From ebac31ca14f4fefc7a03c4dc327b2199c08fd02a Mon Sep 17 00:00:00 2001 From: Sourav Das Date: Wed, 7 Oct 2026 18:15:59 +0530 Subject: [PATCH 001/440] Use current image workflow stages and streamline runtime readiness Build all 54 fresh image templates through ordinary operation authoring: 44 native-stage recipes with Encode Inputs and consumed Guidance, plus ten explicit whole-pipeline tasks. Preserve creator recipes and existing saved workflows. Recognize Transformers and PEFT as standard runtime requirements, show optional optimization install/reload progress, and recover backend startup and browser connections without stale task or workflow updates. Document native uv/npm setup and Windows execution. Keep static SSR test servers isolated from file watching. CI checks against backend e08f606311bbba80d796949486ed1216d41ec753. Validation: npm run check passed, including 2290 Node tests, 34 Python helper tests, formatting, lint, type checks, build and bundle checks. All 103 production files match the backend bundle. Prior source-scoped image and browser evidence is retained separately; this does not claim new GPU or Windows generation. --- .github/workflows/ci.yml | 17 +- AGENTS.md | 6 +- CONTRIBUTING.md | 84 +- README.md | 28 +- docs/README.md | 2 + docs/developer-first-node-ux.md | 3 + docs/image-template-workflows.md | 134 + docs/linux-support.md | 28 +- docs/macos-support.md | 14 +- docs/troubleshooting.md | 32 +- docs/windows-support.md | 125 +- package.json | 6 +- run-dev.ps1 | 1 - scripts/backend-installer-contract.mjs | 17 +- scripts/backend-installer-contract.test.mjs | 27 +- scripts/backend-proxy-lifecycle.test.mjs | 185 + scripts/backend-proxy-lifecycle.ts | 56 + scripts/bounded-browser-process.test.mjs | 4 +- scripts/bundle-budget.mjs | 46 +- scripts/flow-graph-mutations.test.mjs | 14 +- scripts/hugging-face-node-library.test.mjs | 30 +- .../hugging-face-runtime-contract.test.mjs | 45 +- scripts/node-connection-search.test.mjs | 67 + scripts/node-store-requests.test.mjs | 98 + .../registered-block-v2-insertion.test.mjs | 26 +- .../registered-block-v2-route-audit.test.mjs | 116 + scripts/release-contract.mjs | 5 +- scripts/resolved-execution-inputs.test.mjs | 102 +- scripts/run-coordinator.test.mjs | 117 + scripts/server-actions.test.mjs | 89 + scripts/shared-store-requests.test.mjs | 73 + scripts/supervisor-startup.test.mjs | 227 + scripts/template-gallery-harness.test.mjs | 6 +- scripts/template-input-preview.test.mjs | 13 +- scripts/template-operation-fixtures.py | 81 + scripts/template-operation-workflows.test.mjs | 1314 +++++ scripts/websocket-connection.test.mjs | 214 + scripts/workflow-document-origin.test.mjs | 150 + src/App.tsx | 12 +- src/components/RuntimeOptimizationsCard.tsx | 229 +- src/components/StudioPanel.tsx | 11 +- src/components/StudioParameterExplainers.tsx | 7 +- src/components/StudioVariationPlanner.tsx | 36 +- src/components/TemplateBrowserDialog.tsx | 19 +- src/stores/useNodeStore.ts | 20 + src/stores/useStudioStore.ts | 5 + src/stores/useTaskStore.ts | 30 +- src/stores/useWebsocketStore.ts | 317 +- src/stores/websocketMessageHandler.ts | 23 + src/studio/controlledWorkflowValues.ts | 38 + src/studio/controlledWorkflows.ts | 33 +- src/studio/effectiveControls.ts | 21 + src/studio/executionSpecValues.ts | 207 + src/studio/executionSpecs.ts | 2 +- src/studio/graphBridge.ts | 190 +- src/studio/huggingFaceClusterMaterializer.ts | 2 + src/studio/huggingFaceNodeLibrary.ts | 2 + src/studio/optionalRuntimes.ts | 37 +- src/studio/registeredBlockV2AudioRoutes.ts | 24 +- src/studio/registeredBlockV2FanOutRoutes.ts | 278 +- src/studio/registeredBlockV2ImageRoutes.ts | 24 +- .../registeredBlockV2OrdinaryFluxRoutes.ts | 96 +- src/studio/registeredBlockV2Routes.ts | 144 +- src/studio/resolvedExecutionInputs.ts | 14 + src/studio/templateExactness.ts | 26 +- src/studio/templateOperationSelections.ts | 328 ++ src/studio/templateOperationWorkflow.ts | 262 + src/studio/templateWorkflow.ts | 209 +- src/studio/templates.ts | 15 +- src/studio/types.ts | 27 + src/studio/useStudioRunActions.ts | 19 + src/studio/useWorkflowBackendSync.ts | 31 +- src/studio/workflowDocumentOrigin.ts | 14 + src/utils/e2eHooks.ts | 65 +- src/utils/serverActions.ts | 19 +- src/utils/supervisorControl.ts | 123 + src/workflow/connectionRoleSelector.ts | 37 + src/workflow/nodeConnectionMatching.ts | 12 +- src/workflow/visualOperationGroups.ts | 10 +- tests/e2e/studio-mocked/studio-mocked.spec.ts | 983 +++- .../image-template-creator-contracts.v1.json | 4365 +++++++++++++++++ vite.config.ts | 5 +- 82 files changed, 10817 insertions(+), 1156 deletions(-) create mode 100644 docs/image-template-workflows.md create mode 100644 scripts/backend-proxy-lifecycle.test.mjs create mode 100644 scripts/backend-proxy-lifecycle.ts create mode 100644 scripts/supervisor-startup.test.mjs create mode 100644 scripts/template-operation-fixtures.py create mode 100644 scripts/template-operation-workflows.test.mjs create mode 100644 scripts/websocket-connection.test.mjs create mode 100644 scripts/workflow-document-origin.test.mjs create mode 100644 src/studio/controlledWorkflowValues.ts create mode 100644 src/studio/effectiveControls.ts create mode 100644 src/studio/executionSpecValues.ts create mode 100644 src/studio/templateOperationSelections.ts create mode 100644 src/studio/templateOperationWorkflow.ts create mode 100644 src/studio/workflowDocumentOrigin.ts create mode 100644 src/utils/supervisorControl.ts create mode 100644 src/workflow/connectionRoleSelector.ts create mode 100644 tests/fixtures/image-template-creator-contracts.v1.json diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 79a4a43a..434af5e4 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -32,9 +32,17 @@ jobs: uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4 with: repository: sdevil7th/MoDiff - ref: a0d29db8484f8f06f9d42f6782634cd66e1ac996 + # Paired native-uv runtime and ordinary image-template contracts. + ref: e08f606311bbba80d796949486ed1216d41ec753 path: MoDiff persist-credentials: false + - name: Verify the pinned backend supports native setup + working-directory: MoDiff + run: | + if [ ! -f uv.lock ]; then + echo "::error::The pinned backend predates native uv setup. Commit the paired backend changes, then update this workflow's immutable backend ref as documented in CONTRIBUTING.md." + exit 1 + fi - uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4 with: node-version-file: MoDiff-client/.nvmrc @@ -46,15 +54,14 @@ jobs: with: python-version: '3.12' - uses: astral-sh/setup-uv@d0cc045d04ccac9d8b7881df0226f9e82c39688e # v6 - with: - version: '0.11.26' - - name: Install the reviewed CPU backend and test dependencies + - name: Install the native CPU backend and test dependencies working-directory: MoDiff run: | - python -m modiff.install --accelerator cpu --backend-only --non-interactive --json + uv sync --extra cpu --locked uv pip install --python .venv/bin/python -r requirements/test.txt uv pip check --python .venv/bin/python .venv/bin/python -m modiff.preflight --json --fail-on-error + .venv/bin/python scripts/smoke_base_runtime.py - run: npx playwright install --with-deps chromium - run: npm run check - run: npm run check:ui diff --git a/AGENTS.md b/AGENTS.md index 8bfb1b94..4845e826 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -15,9 +15,9 @@ These rules apply to Codex, Copilot-style agents, and any AI tool editing this r - Keep frontend nodes and task surfaces generic. Render the backend's declared dynamic inputs, parameters, outputs, readiness, and install requirements instead of selecting Python classes or maintaining model-specific parameter branches in the client. -- Transformers is an optional backend runtime, not a default client/application dependency. Browsing or opening a - template, loading registry data, and requesting an Auto plan must never install it. Show an explicit install and - consent action for a reviewed optional-runtime profile, then require backend verification before enabling Run. +- Transformers and PEFT are required backend dependencies installed during ordinary setup. Recognize a verified + base runtime without a separate install/activate flow. Browsing templates, discovery, and Auto planning must + never install packages. Additional optional runtimes still require explicit installation and verification. - New UI work is Tailwind/headless-first. Do not reintroduce MUI, Emotion, notistack, styled-components, CSS modules, or another UI framework. - Use `src/theme` for MoDiff colors, Hugging Face-inspired tokens, typography, radii, shadows, z-index values, category colors, style sanitizers, and React Flow helpers. - Use `src/ui` primitives before writing repeated panel, status, field, image, toast, dialog, menu, tab, or toolbar styling. diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 1b4f860b..e03a53f4 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -23,9 +23,9 @@ Good first contributions include reproducible bug fixes, accessibility improveme 1. Fork the public repository, then clone your fork. 2. Add the canonical repository as an `upstream` remote so you can keep the branch current. 3. Create a short-lived branch from the latest `upstream/main`. -4. Use the development installer for integrated work, or `npm ci` for UI-only - work against an already-running compatible backend, and reproduce the issue - before changing code. +4. Set up the compatible backend with native uv commands and this client with + `npm ci`, then reproduce the issue before changing code. UI-only work can use + an already-running compatible backend. 5. Make the smallest coherent change, including tests and docs. 6. Run the required checks and review the complete diff. 7. Rebase or merge the current `upstream/main` according to the repository's accepted workflow; resolve conflicts without discarding unrelated work. @@ -51,33 +51,56 @@ Required client versions: - Node.js `24.12.0` (`.nvmrc`) - npm `11.6.2` (`packageManager` and `engines` in `package.json`) -For setup without repository launchers, use the backend's -[uv developer commands](https://github.com/sdevil7th/MoDiff/blob/feat/generic-diffusers-workbench/docs/developer-setup.md) -and run `npm ci`, then `npm run dev`, in this client checkout. See the -[Windows guide](docs/windows-support.md#developer-setup-with-uv-and-npm) for the -two-terminal flow. The same uv commands work on Linux. +Use native uv and npm commands with the sibling backend and client checkouts. +In the backend terminal, run: -For integrated development with sibling repositories, install the reviewed -backend profile, backend test requirements, and exact client lockfile through -the development installer: +```text +uv sync --extra cpu +uv run --extra cpu python -m modiff.preflight --json --check-port 8088 --fail-on-error +uv run --extra cpu python main.py +``` -```powershell -.\install-dev.ps1 -BackendPath ..\MoDiff -Accelerator auto +For NVIDIA, use `--extra cuda` in each command; for Intel, use `--extra xpu`. +On Apple Silicon, omit the extra. Keep the same extra on sync and run. Use a +separate checkout to try another accelerator; native sync reconciles `.venv`. +AMD vendor-wheel environments use the backend's specialist +[accelerator setup](https://github.com/sdevil7th/MoDiff/blob/develop/docs/accelerator-installation.md). + +In the client terminal, run: + +```text +npm ci +npm run dev ``` +Open the URL printed by Vite and leave the backend running. Transformers and +PEFT are installed during backend setup; normal image and LoRA workflows need +no separate package activation. These commands work on Linux and Windows +PowerShell. The backend's +[developer guide](https://github.com/sdevil7th/MoDiff/blob/develop/docs/developer-setup.md) +and the [Windows guide](docs/windows-support.md#developer-setup-with-uv-and-npm) +cover explicit `uv pip` setup, upgrades, repair, and platform details. + +For UI-only work against an already-running backend, the same `npm ci` and +`npm run dev` commands are sufficient. To use another backend port: + ```bash -chmod +x install-dev.sh run-dev.sh stop-dev.sh -./install-dev.sh --accelerator auto +VITE_BACKEND_PROXY_TARGET=http://127.0.0.1:8088 npm run dev -- --host 127.0.0.1 --port 5173 ``` -For UI-only work against an already-installed backend, install only the client -dependencies exactly from the lockfile: +The repository launchers are optional convenience tools for integrated setup +or specialist reviewed profiles: + +```powershell +.\install-dev.ps1 -BackendPath ..\MoDiff -Accelerator auto +``` ```bash -npm ci +chmod +x install-dev.sh run-dev.sh stop-dev.sh +./install-dev.sh --accelerator auto ``` -Run the client against a compatible sibling backend: +Start the optional integrated launcher after setup: ```powershell .\run-dev.ps1 @@ -88,12 +111,6 @@ chmod +x run-dev.sh stop-dev.sh ./run-dev.sh ``` -For UI-only work, run Vite against an already-running backend: - -```bash -VITE_BACKEND_PROXY_TARGET=http://127.0.0.1:8088 npm run dev -- --host 127.0.0.1 --port 5173 -``` - The [README](README.md) and [troubleshooting guide](docs/troubleshooting.md) cover backend paths, ports, preflight, and platform details. ## Project Map @@ -129,7 +146,7 @@ Read [the architecture guide](docs/modiff-client-architecture.md) before changin The compatible backend may integrate model libraries officially maintained and published by Hugging Face. The browser does not run those libraries or a hosted inference provider. It consumes task-generic execution specifications from the backend and must not select Python classes or duplicate model-specific parameter logic. Hub hosting alone does not establish that a package or repository implementation is an official Hugging Face library. -Transformers-backed execution is optional and consented. Template browsing/opening, registry discovery, and Auto planning may display a missing-runtime requirement but must not initiate installation. The user must explicitly request installation of a reviewed backend optional-runtime profile; Run remains blocked until the backend reports a compatible verified installation. +Transformers and PEFT are required backend dependencies installed during ordinary setup. A verified base runtime must be runnable without a separate install or activation step. Template browsing, registry discovery, and Auto planning must not install packages. Additional optional runtimes still require an explicit backend installation action and verification before Run. For a large component, extract domain behavior into hooks/modules before adding another responsibility. `StudioPanel`, `Workflow`, flow mutations, websocket handling, graph export, and Studio contracts already use that pattern. @@ -296,10 +313,17 @@ This runs formatting, lint, type checking, style audit, unit/contract tests, pro The Linux CI quality job checks out this client and an immutable, compatible `sdevil7th/MoDiff` backend revision as sibling directories. It installs the -backend's reviewed CPU profile and test dependencies before running the same -gate. Update the backend commit in `.github/workflows/ci.yml` when a coordinated -contract change requires it. This setup does not download model weights or -qualify accelerator execution; platform smoke jobs remain client-only. +backend with `uv sync --extra cpu --locked`, installs test dependencies, and +runs preflight and the tiny native image/LoRA smoke before the same client gate. +This setup does not download model weights or qualify accelerator execution; +platform smoke jobs remain client-only. + +For a coordinated change, commit and review the backend first, then replace the +backend `ref` in `.github/workflows/ci.yml` with that actual compatible 40-character +commit SHA and run the paired gates. Keep the ref immutable. The current historical +pin predates native setup and has no `uv.lock`, so the workflow explicitly fails its +native setup check until this release handoff is completed. Do not substitute a +mutable branch or an invented future SHA for the paired commit. The registered Block catalog audit uses a fixed Linux runtime target and mocked device/package probes to reproduce the reviewed catalog on any host. Backend diff --git a/README.md b/README.md index 151e61ff..4a2d17f9 100644 --- a/README.md +++ b/README.md @@ -18,7 +18,7 @@ measured reuse behavior and remaining qualification work. ## Developer setup with uv and npm -Install Git, [uv `0.11.26`](https://docs.astral.sh/uv/getting-started/installation/), +Install Git, [uv](https://docs.astral.sh/uv/getting-started/installation/), Node.js `24.12.0`, and npm `11.6.2`. uv can provision Python 3.12. Use two terminals for the backend and the editable frontend. @@ -29,17 +29,19 @@ then start the backend. These commands work in Linux shells and Windows PowerShe git clone https://github.com/sdevil7th/MoDiff.git MoDiff git clone https://github.com/sdevil7th/MoDiff-client.git MoDiff-client cd MoDiff -uv run --no-project --no-sync --python 3.12 -m modiff.dev plan --accelerator cpu --backend-only --json -uv run --no-project --no-sync --python 3.12 -m modiff.dev setup --accelerator cpu --backend-only --non-interactive -uv run --no-project --no-sync --python 3.12 -m modiff.dev check --json --check-port 8088 --fail-on-error -uv run --no-project --no-sync --python 3.12 -m modiff.dev run +uv sync --extra cpu +uv run --extra cpu python -m modiff.preflight --json --check-port 8088 --fail-on-error +uv run --extra cpu python main.py ``` -The CPU profile is for API/UI development. For NVIDIA inference, replace `cpu` -with `nvidia` in both `plan` and `setup`; other accelerators are covered in the -[full setup guide](https://github.com/sdevil7th/MoDiff/blob/feat/generic-diffusers-workbench/docs/developer-setup.md). Setup preserves an existing `.venv` and -does not download model weights. Use the guide for deliberate environment repair; -ordinary `uv sync` is not supported. +The CPU profile is for API/UI development. For NVIDIA inference, use `--extra cuda` +in each command; for Intel, use `--extra xpu`. On Apple Silicon, omit the extra. +Transformers and PEFT are installed with the base application; ordinary image and +LoRA workflows need no optional-runtime installation or activation. Setup installs +Python packages without downloading model weights. `uv sync` reconciles `.venv` +with the selected profile: use a separate checkout when testing a different +accelerator. See the [full setup guide](https://github.com/sdevil7th/MoDiff/blob/develop/docs/developer-setup.md) for specialized AMD profiles, +explicit `uv pip` commands, repair, and upgrades. **Terminal 2 — frontend:** from the same parent directory, run: @@ -138,7 +140,7 @@ Client development requires: Integrated development also requires: - A sibling MoDiff backend checkout, or its path passed to the launcher -- The backend's managed Python 3.12 environment, installed through the uv commands +- The backend's Python 3.12 environment, installed through the uv commands in the [quick start](#developer-setup-with-uv-and-npm) or its reviewed `install.ps1` / `install.sh` profile - Sufficient RAM, accelerator memory, and disk space for the model being used - Hugging Face authorization for gated model repositories, when applicable @@ -262,6 +264,10 @@ The stop scripts deliberately leave unrelated listeners alone. Their `StopAnyLis See the [Studio user guide](docs/studio-user-flow.md) for tasks, interface areas, workflow tabs, Gallery behavior, setup, failure recovery, and a manual verification checklist. +The [image template workflow guide](docs/image-template-workflows.md) describes +the current developer nodes, explicit whole-pipeline exceptions, preserved +creator settings and historical Gallery examples. + ## Workspace And Memory **Memory → Automatic** asks the backend planner for a known local recipe. The planner evaluates the selected model and task, installed artifacts, backend package versions, accelerator resources, system memory, and offload headroom. Auto enables Run only when the selected candidate reports sufficient compatibility evidence. diff --git a/docs/README.md b/docs/README.md index 8596e766..7d9637ee 100644 --- a/docs/README.md +++ b/docs/README.md @@ -6,6 +6,8 @@ This directory contains durable user, operator, and contributor documentation fo [Developer-first node authoring](developer-first-node-ux.md) covers the unified editor, custom imports, matching sockets and supported image/audio attachments. +The [image template workflow guide](image-template-workflows.md) covers fresh +template graphs, preserved settings and the distinction from historical examples. | Guide | Audience | What it covers | | ----------------------------------------------- | ------------------- | --------------------------------------------------------------------------------------------- | diff --git a/docs/developer-first-node-ux.md b/docs/developer-first-node-ux.md index 7e41baed..238810bd 100644 --- a/docs/developer-first-node-ux.md +++ b/docs/developer-first-node-ux.md @@ -66,6 +66,9 @@ palette showed63 entries, separately from121 upstream catalog entries. New native image starters combine their input encoding stages into **Encode Inputs**. Related Guider and Layers stages appear as **Guidance** where they are connected. +Fresh Qwen/Z-Image templates also present a single actual Guider as Guidance, +shared by encoding and denoising. Z-Image Turbo keeps CFG disabled; paths without +an upstream guider do not add one. See [image template workflows](image-template-workflows.md). Encode Inputs uses the ordinary node layout, scrolling controls and status-strip resize grip. It is not an expandable canvas Block. Backend encoding stages remain separate, with typed conditioning, latent and route-state outputs. Guidance uses diff --git a/docs/image-template-workflows.md b/docs/image-template-workflows.md new file mode 100644 index 00000000..6d4f3636 --- /dev/null +++ b/docs/image-template-workflows.md @@ -0,0 +1,134 @@ +# Image template workflows + +Creating a fresh image template now builds the selected backend operation recipe +as the visible, editable developer workflow. The canvas is the graph that Run +submits. It uses the same ordinary nodes, validation, Automatic/Custom memory +selection, model readiness and output handling as a workflow authored by hand. +Opening an existing saved workflow preserves its graph. + +## Current template inventory + +All 54 image templates retain their creator prompts, seeds, sizes, inference +settings, immutable model revisions and required input roles. Their fresh graphs +use explicit execution-profile selections rather than a family-wide default. + +| Native stage family | Templates | Tasks | +| -------------------------- | --------: | ------------------------------------------- | +| Z-Image Turbo | 7 | Text to image and styles using LoRAs | +| Qwen Image | 10 | Text to image and ControlNet image layout | +| Qwen Image Edit | 3 | Image editing | +| Qwen Image Edit Plus | 7 | Single-image and multiple-reference editing | +| Qwen Image Layered | 1 | Layer decomposition | +| FLUX Schnell, Dev and Krea | 11 | Text to image and styles using LoRAs | +| FLUX Kontext | 2 | Single-image and multiple-reference editing | +| FLUX.2 Klein | 3 | Text to image and image/reference editing | + +These 44 recipes contain real model loading, input encoding, denoising and latent +decoding stages. **Encode Inputs** presents the relevant encoding stages together; +the exported graph retains their distinct backend calls and typed connections. +Image, mask, control and reference inputs remain separate when their roles differ. + +The other ten recipes retain explicit whole-pipeline operations: + +| Whole-pipeline path | Templates | Preserved boundary | +| ------------------------ | --------: | ----------------------------------------------------- | +| Qwen Image Edit Inpaint | 4 | Image/mask preparation and inpaint/outpaint recipe | +| FLUX Fill | 2 | Fill model, image and mask recipe | +| FLUX Canny/Depth control | 2 | Selected control artifact and conditioning contract | +| FLUX Redux | 2 | Selected base/prior models and reference conditioning | + +These tasks lack a reviewed native-stage replacement for their exact selected +artifact and parameter contract. Their graphs contain actual loading and +generation operations, required utility nodes and previews. They do not gain an +encoding or Guidance node merely to resemble another workflow. + +## Guidance and preserved settings + +Qwen and Z-Image recipes contain a real **Guidance** owner whose Diffusers guider +feeds both prompt encoding and denoising. Their **Encode Inputs** stages retain +the authored positive and negative prompts; disabled guidance does not encode +an unused negative. Qwen retains the upstream classifier-free +guidance formulation and the template's scale. The seven Z-Image templates +converted from the standard pipeline preserve its observed two-batch CFG: +guidance is enabled with the original formulation, `positive + scale * +(positive - negative)`, and the creator's scale. This template policy is separate +from the ordinary upstream developer starter, which keeps guidance disabled. + +Studio offers denoising strength and strength variations only when the selected +image task has a reviewed execution binding for that setting. An image input or +an aggregate node's strength port does not establish that its active route uses +the value. Plain Qwen Image Edit, Edit Plus, Layered, and Redux/Kontext/Klein +reference edits do not use this control; inpainting and supported image-to-image +tasks retain it. The template +with the historical ID `qwen_edit_strength_sweep` is a single-image reference +edit, now labelled **Reference Variations**. Its original prompt, seed and +execution route are preserved. An unused historical strength value is not a +claim that the workflow performs a strength sweep. +The thirteen converted Flux and Kontext recipes also use a real Guidance owner +shared by encoding and denoising. Their creator guidance scalar retains the +standard pipeline's true CFG setting. The separate embedded model guidance keeps +the original Gallery's effective value: `3.5` for Flux Dev/Krea and Kontext. +Schnell consumes no embedded guidance tensor; its native scalar `0` and the old +pipeline's inactive default do not affect model output. The old Gallery left the +secondary override disabled, so Kontext used the standard pipeline's `3.5` +default. Its ordinary native developer starter still defaults embedded guidance +to `2.5`. Schnell keeps CFG disabled. Ordinary developer Flux starters keep their guider disabled +at scale `1`; creating a converted template explicitly applies that template's +preserved settings. + +The 31 recipes converted from whole-pipeline loading bind their original +attention backend and enabled VAE slicing/tiling explicitly. The original 13 +native recipes retain inherited attention and unset VAE policies. Schnell's +template preserves its authored 512-token prompt limit; the ordinary developer +starter still defaults to 256, with a reviewed maximum of 512. + +LoRA descriptors preserve their immutable files, adapter names, scales and +order. Native descriptor chains feed the one model owner through +`previous_loras`; they do not modify a second hidden pipeline. Scheduler options, +reference assembly, outpaint placement and the optional upscaler branch retain +their declared recipe values. Every generator initialization retains the seed +and the backend's device/state contract. + +The converted Z-Image LoRA Style and Fast LoRA recipes explicitly retain the +original whole-pipeline adapter name `default`. Their creator settings omitted +the name, so this default is part of the selected execution policy. Original +native recipes with unnamed descriptors retain their generated identities; +explicitly named adapters retain their authored names. + +## Historical Gallery examples + +An existing approved image generated with the previous recipe can remain visible +as **Previous recipe example** when its original prompt, settings, inputs and +model revision still match. It is historical output, not visual qualification of +the new graph. Stale or revoked proof does not qualify either recipe. Changing +the execution selection or its explicit component/guidance/LoRA policy changes the template's +exactness identity; old approvals are not copied onto the new identity. + +Fresh generation and review must record the actual exported graph and consumed +recipe. Structural checks alone cannot establish equal image quality or pixel +parity. Use the backend's [image template validation guide](https://github.com/sdevil7th/MoDiff/blob/develop/docs/image-template-validation.md) +for matched old/new runs, runtime and input identity checks, decoded-image +comparison and the Windows validation procedure. + +## Contributor checks + +The current builder is shared by interactive template creation and the developer +Gallery/workflow-library harness. Harnesses generating a new image graph must +use that selected path. Explicit historical fixtures may keep the previous +builder to test saved managed workflows; production authoring must not use them. + +```bash +npm run test:templates +npm run test:gallery-harness +npm run typecheck +npm run check +npm run check:ui +``` + +`template-operation-workflows.test.mjs` obtains the real selected backend +starters, public capabilities and node schemas without constructing models or +reading operator extensions. It checks all 54 creator contracts, typed graph +exports, component policies, shared guidance and seeds, controlled extras, +save/restore, undo/redo and stale asynchronous construction. Those are contract +tests. Real model generation, paired image comparison, visual review and hardware +qualification remain separate evidence. diff --git a/docs/linux-support.md b/docs/linux-support.md index b27b5726..42c574d0 100644 --- a/docs/linux-support.md +++ b/docs/linux-support.md @@ -19,19 +19,29 @@ sudo apt update sudo apt install -y git curl build-essential ffmpeg libgl1 libglib2.0-0 ``` -The backend installer bootstraps a hash-verified local uv and Python 3.12 when -needed. Install Node 24.12.0 with your normal system tooling. CUDA toolkit/NVCC +Install uv with its official instructions or your package manager; the backend +does not require an exact uv version. uv can provision Python 3.12. Install Node 24.12.0 with your normal system tooling. CUDA toolkit/NVCC is only required for optional packages that compile native CUDA extensions. ## Backend Setup -Developers can use the backend's -[uv setup commands](https://github.com/sdevil7th/MoDiff/blob/feat/generic-diffusers-workbench/docs/developer-setup.md) -to plan, install, check and run the managed environment without shell launchers. -Start the client with `npm ci` followed by `npm run dev` in a second terminal. -Stop each process with `Ctrl+C`. Use a separate checkout for a clean CPU test; -`modiff.dev setup` preserves an existing `.venv` unless `--repair` is explicit. -The guided launcher path is also available: +Use native uv commands for NVIDIA setup: + +```bash +uv sync --extra cuda +uv run --extra cuda python -m modiff.preflight --json --check-port 8088 --fail-on-error +uv run --extra cuda python main.py +``` + +Choose `--extra cpu` for CPU or `--extra xpu` for Intel, and keep the same extra +on sync and run. Transformers and PEFT are mandatory base packages. Start the +client with `npm ci` and `npm run dev` in another terminal. Ctrl+C stops each +process. `uv sync` reconciles the selected environment; test a different profile +in another checkout. The [developer guide](https://github.com/sdevil7th/MoDiff/blob/develop/docs/developer-setup.md) +explains explicit `uv pip`, repair, and upgrades. + +Specialized AMD vendor wheels retain the guided installation path below; +do not reconcile a reviewed ROCm environment with a CPU/CUDA extra. From the backend checkout: diff --git a/docs/macos-support.md b/docs/macos-support.md index 4289128e..6b4ec24e 100644 --- a/docs/macos-support.md +++ b/docs/macos-support.md @@ -16,7 +16,7 @@ Install the common Homebrew packages: ```bash xcode-select --install -brew install node@24 ffmpeg +brew install uv node@24 ffmpeg ``` If Homebrew does not put Node 24 first on your `PATH`, use your normal shell @@ -27,15 +27,17 @@ profile to add it before running the development installer. From the backend checkout: ```bash -./install.sh --accelerator mps -./.venv/bin/python -m modiff.preflight --json --check-port 8088 --fail-on-error -./run.sh +uv sync +uv run python -m modiff.preflight --json --check-port 8088 --fail-on-error +uv run python main.py ``` The Apple Silicon profile keeps the core backend install on normal PyPI wheels so PyTorch can use CPU/MPS support. CUDA-only packages such as `bitsandbytes`, `dfloat11[cuda12]`, Nunchaku, `xformers`, FlashAttention, and SageAttention are not part of the default macOS path. -The installer owns this environment and validates the MPS profile before -promotion. Do not layer a separate pip-managed Torch stack into `.venv`. +Transformers and PEFT are required base packages. Native `uv sync` uses the +committed lock; no optional activation is needed for normal image or LoRA +workflows. Keep operator pip changes in a separately managed environment, or +declare them in the project before using `uv run` auto-sync. Put large model caches on a writable disk with enough space by setting `HF_HOME`, `HF_HUB_CACHE`, or `[huggingface] cache_dir` in `config.ini`. If you change `config.ini`, keep local development on: diff --git a/docs/troubleshooting.md b/docs/troubleshooting.md index 6b54cab2..b3ec3484 100644 --- a/docs/troubleshooting.md +++ b/docs/troubleshooting.md @@ -37,10 +37,10 @@ The launcher also saves its latest report at `artifacts/dev-server-current/backe The supported client toolchain is defined in `.nvmrc`, `package.json`, and `package-lock.json`. 1. Confirm Node `24.12.x` and npm `11.6.x`. -2. For paired development, rerun `./install-dev.sh --accelerator auto` or - `.\install-dev.ps1 -BackendPath ..\MoDiff -Accelerator auto`. Use `npm ci` - directly only for client-only work against an already-installed backend. - Do not regenerate the lockfile just to work around an install failure. +2. For paired development, run `uv sync` with your accelerator extra in the + backend, then `npm ci` here. The combined development installers remain + available for specialized profiles. Do not regenerate the npm lockfile just + to work around an install failure. 3. If the lockfile and manifest intentionally changed together, run `npm install` once as part of that dependency change, review the diff, and return to `npm ci` for validation. 4. If native browser installation fails, retry `npx playwright install chromium` and follow Playwright's platform dependency message. @@ -110,12 +110,24 @@ If direct requests work but proxied requests do not: If using direct server mode, `VITE_SERVER_ADDRESS` must include the protocol and must point to the backend, not the Vite port. -The production bundle derives its supervisor address from the backend address, -using the adjacent port (for example, backend `8096`, supervisor `8097`). Vite's -development proxy settings do not select the production recovery endpoint. -Set `VITE_SUPERVISOR_CONTROL_ADDRESS` explicitly at build time only when the -supervisor uses a different address. This endpoint must stay available while -the model worker is restarting so Stop and queue recovery can work. +Browser refresh closes the previous WebSocket and requests. MoDiff cancels the +old health probe and ignores callbacks from that connection; reconnect requires +a successful backend `/health` response. Vite filters only teardown errors tied +to the closed browser socket. Connection refusal, backend resets while the +browser is still connected, and other errors remain visible. If errors repeat, +record the terminal and stack excerpt and check `/health` directly and through +the proxy; a locally served favicon does not prove the backend is ready. + +MoDiff uses the backend's verified `workerControl` metadata for the supervisor +address. A standalone worker advertises no supervisor, so background queue reads +are skipped. Startup waits up to one second for node/runtime discovery already +in progress, then retains the existing five-second queue restoration bound. +A busy worker or older backend without metadata keeps the trusted loopback +fallback: the adjacent backend port (for example, `8096` → `8097`), or the +explicit build-time `VITE_SUPERVISOR_CONTROL_ADDRESS`. That endpoint must stay +available while the supervised model worker restarts. Temporary health failure +retains the last verified supervisor address; genuine connection failures remain +visible and retries use bounded backoff. Explicit Stop remains immediate. ## Registry Or Studio Nodes Are Missing diff --git a/docs/windows-support.md b/docs/windows-support.md index 01d4c5ca..442a45de 100644 --- a/docs/windows-support.md +++ b/docs/windows-support.md @@ -7,7 +7,7 @@ can use the uv/npm commands below; combined PowerShell launchers are also availa - 64-bit Windows 10/11 - Git -- uv `0.11.26` for the developer commands below; it can provision Python 3.12 +- uv for the developer commands below (no exact version required); it can provision Python 3.12 - PowerShell 5.1 or PowerShell 7+ - Node.js `24.12.0` and npm `11.6.2` - A current NVIDIA driver for CUDA workflows @@ -25,42 +25,60 @@ C:\path\to\projects\ `-- MoDiff-client\ ``` +Maintainers publishing these paired changes should commit and push the backend +first, then obtain that backend commit's full SHA with `git rev-parse HEAD` from +`MoDiff`. In `MoDiff-client/.github/workflows/ci.yml`, replace the historical +`ref` under **Check out the matching backend contract** with that actual SHA +before committing and pushing the client. Keep the backend reference immutable; +do not replace it with a branch name or a guessed future SHA. Client CI checks +the paired backend's `uv.lock` and node contracts, so its old backend pin cannot +validate this migration. Pull both corresponding commits on the Windows test +workstation before running the setup and validation commands below. + +Private comparison HTML and runtime evidence are kept outside both Git +repositories and do not arrive through `git pull`. Copy a supplied standalone +HTML separately to review its embedded old/new images offline. Its numerical +results apply to the recorded same-host/runtime pairs; Linux ROCm and Windows +CUDA are not guaranteed to produce identical pixels. Record Windows hardware, +runtime and outputs separately, and check migration parity against a matched +same-platform baseline. + ## Developer Setup With uv And npm -From a clean backend checkout, install the CPU development profile: +From a clean backend checkout, install the native NVIDIA profile: ```powershell -uv run --no-project --no-sync --python 3.12 -m modiff.dev plan --accelerator cpu --backend-only --json -uv run --no-project --no-sync --python 3.12 -m modiff.dev setup --accelerator cpu --backend-only --non-interactive -uv run --no-project --no-sync --python 3.12 -m modiff.dev check --json --check-port 8088 --fail-on-error -uv run --no-project --no-sync --python 3.12 -m modiff.dev run +uv sync --extra cuda +uv run --extra cuda python -m modiff.preflight --json --check-port 8088 --fail-on-error +uv run --extra cuda python main.py ``` -In a second terminal, from `MoDiff-client`: +Use `--extra cpu` for CPU development or `--extra xpu` for supported Intel +hardware. Keep the same extra on sync and run. In a second terminal, from +`MoDiff-client`: ```powershell npm ci npm run dev ``` -Open the URL printed by Vite. Stop each process with `Ctrl+C` in its terminal. -These commands do not require running a repository PowerShell script or changing -PowerShell execution policy. The backend-only install serves the checked client -bundle too, at . - -Setup installs Python packages, including Torch, without downloading inference -weights. An existing managed `.venv` is preserved; use `check` to inspect it and -`run` to launch it. Test a clean CPU install in a separate checkout from a working -GPU environment. A deliberate profile replacement requires `setup --repair`. -Choose `--accelerator nvidia`, `intel`, or `auto` in both `plan` and `setup` for -the applicable accelerator profile. Optional runtimes retain their explicit -installation and consent flow. - -The backend's [developer setup guide](https://github.com/sdevil7th/MoDiff/blob/feat/generic-diffusers-workbench/docs/developer-setup.md) -explains the managed dependency contract and uv flags. Ordinary `uv sync` and -project-resolving `uv run` are not supported in the accelerator environment. -For named API inputs/outputs and the model-free service example, see the -[service prototyping guide](https://github.com/sdevil7th/MoDiff/blob/feat/generic-diffusers-workbench/docs/service-prototyping.md). +Open the URL printed by Vite. Ctrl+C stops each process. These commands do not +require repository PowerShell scripts or an execution-policy change. Transformers +and PEFT are installed with the backend, with no separate activation for normal +image and LoRA workflows. Setup downloads packages, not inference weights. +`uv sync` reconciles the selected environment; use another checkout to test a +different accelerator. The backend's +[developer setup guide](https://github.com/sdevil7th/MoDiff/blob/develop/docs/developer-setup.md) +also documents explicit `uv pip` commands, repair, and uv upgrades. + +Windows uses PyTorch's default allocator. MoDiff does not set +`expandable_segments:True` there; explicit operator allocator variables are +preserved. Ordinary image workflows run eager/native SDPA without Triton. +Compilation is optional and must pass an executed kernel probe. Workflows that +require compiled FlexAttention fail before weight allocation when the toolchain +is unavailable. If you choose compilation, match +[triton-windows](https://github.com/triton-lang/triton-windows) to your PyTorch +version and validate an actual compiled GPU operation. ## Backend Setup @@ -104,7 +122,7 @@ For combined setup and launch through PowerShell scripts, run from `MoDiff-clien The launcher: - detects the sibling backend or accepts `-BackendPath` -- uses and validates the backend's managed `.venv\Scripts\python.exe` +- uses and validates the backend's `.venv\Scripts\python.exe` - runs the backend preflight before starting a new backend - starts the backend in a dedicated PowerShell window - starts Vite in a second window with the backend proxy configured @@ -167,6 +185,33 @@ Remove-Item Env:VITE_SERVER_ADDRESS -ErrorAction SilentlyContinue - Put Hugging Face caches and disk offload on a drive with adequate free space; configure paths through the backend, not by moving individual snapshot blobs. - Restart the backend after changing packages, drivers, or allocator environment variables. +## Optional Runtime Availability And Recovery + +The current additional optional-package profiles are not qualified for Windows +installation or activation. In **Setup**, **Optional runtimes** should report +their unavailable target and omit **Install** and **Activate** controls. This is +an expected compatibility limit; ordinary image and LoRA workflows use the +installed base Transformers and PEFT packages. Optional compiler probes are a +separate capability check. + +If an existing optional selection reports `repair_required`, return to the +verified base through the normal recovery control: + +1. Finish or cancel active and queued runs, then wait until the queue is idle. +2. Run the backend preflight above. Repair missing base packages with the same + accelerator extra used during setup before attempting the reset. +3. Open **Setup**, find **Optional runtimes**, and choose **Reset to base**. + Review **Reset optional runtime to base?**, then confirm **Reset**. +4. Wait for restart and reconnection. If a custom unsupervised launch asks for a + manual restart, restart that backend normally. Verify `/health` and + `/runtime/status`, then run an ordinary base workflow. + +The reset clears active and previous optional selections and keeps installed +optional files. It does not delete models, workflows, or output history. If no +legacy repair state exists, this recovery case is not applicable; do not create +one merely to test the button. Successful install/activation lifecycle evidence +requires a target that actually publishes qualified actions. + ## Validation Client gates: @@ -190,4 +235,32 @@ Before calling the Gallery functional, also run `npm run test:asset-storage` and `npm run release:assets:gate`, then confirm its pinned Dataset requests succeed in a browser where you are not signed into Hugging Face. +Use the cases below for the actual Windows workstation. Start with a model that +fits the machine and keep the template's original dimensions, steps, seed, model +revision, input images, and adapter settings when checking migration parity. + +| Case | Action and expected result | +| ----------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| Clean base environment | Run the uv/npm setup above, open Setup, and create an image template. Transformers and PEFT are available without an optional install or Activate step. Record the selected Torch build and device. | +| Fresh template graph | Create a new Gallery workflow and inspect its nodes against [Image template workflows](image-template-workflows.md). Native routes use the current developer stages, including real EncodeInputs and Guidance where supported; documented whole-pipeline exceptions retain their exact recipe. Saved workflows keep their existing nodes. | +| Repeated Auto runs | Run the full template, repeat it, then change only the prompt and seed and run again. A compatible resident model must remain usable when current headroom is sufficient. Record the Auto plan and any blocker instead of changing memory policy to hide it. | +| Browser refresh | Refresh during an active run, then after completion. Connection and queue status recover, the active task stays visible, and its output remains available. Keep the Vite terminal and browser console logs if a live connection fails; a canceled request during page teardown alone is not a backend failure. | +| Stop and recovery | Start a generation, press Stop, wait for its terminal status, then run again. The second run must not inherit a stuck task or stale busy state. | +| Model and task branches | Test the cached image families and input-conditioned branches you intend to use, including edit, ControlNet, and inpaint/outpaint. Check the complete input images, geometry, scheduler, guidance, and revision rather than substituting a lighter recipe. | +| Named LoRAs | Run a template with its full ordered adapter set and original scales, then repeat it. Confirm the run receipt retains each artifact identity and adapter name; changing or removing an adapter must affect the next run. | +| Optional runtime availability | Current additional Windows package targets report unavailable and expose no Install/Activate action. Ordinary image and LoRA workflows remain base-ready. Record the target and reason; this result is not a successful install/activation lifecycle test. | +| Legacy runtime recovery | If an existing selection reports `repair_required`, follow **Optional Runtime Availability And Recovery** above and verify the base worker returns ready. Otherwise record this case as not applicable. | +| Optional runtime lifecycle | Only on a target with published qualified actions, use Setup's Optional runtimes controls. Install must reach a clear final state; Activate must show validation, restart, and reconnection until the replacement worker is ready. Refresh during the job and verify restored progress. Current additional Windows targets do not exercise this case. | +| Eager and optional compile | Confirm ordinary image generation works without Triton. If testing compilation, run Probe and wait for its executed-kernel result before enabling it. A workflow that requires unsupported compiled attention must report that limitation before loading weights. | + +A missing base dependency or an unavailable backend is a setup defect. A reviewed +route that exceeds the workstation's capacity, or needs an unsupported optional +kernel, is a separate compatibility result; capture its exact message and +resource plan. Passing the mocked client gates does not establish Windows GPU +compatibility or image parity. The backend's +[image template validation guide](https://github.com/sdevil7th/MoDiff/blob/develop/docs/image-template-validation.md) +documents paired output comparison and the runtime, recipe, and raw-output +evidence to retain. Historical Gallery examples remain historical until a new +execution has its own matching proof. + For integrated static serving, follow [Build and deployment](deployment.md). For listener, connection, download, and accelerator recovery, see [Troubleshooting](troubleshooting.md). diff --git a/package.json b/package.json index 6dd1765b..1a994708 100644 --- a/package.json +++ b/package.json @@ -80,7 +80,7 @@ "test:graph-export": "node --test scripts/flow-graph-export.test.mjs", "test:hugging-face-cluster-drag": "node --test scripts/hugging-face-cluster-drag.test.mjs", "test:hugging-face-node-library": "node --test scripts/hugging-face-node-library.test.mjs", - "test:templates": "node --test scripts/modiff-template.test.mjs", + "test:templates": "node --test scripts/modiff-template.test.mjs scripts/template-operation-workflows.test.mjs", "test:task-templates": "node --test scripts/task-template-contracts.test.mjs", "test:template-assets:local": "node --test scripts/template-default-inputs.test.mjs", "test:template-quality": "node --test scripts/template-quality.test.mjs", @@ -95,12 +95,12 @@ "test:graph-mutations": "node --test scripts/flow-graph-mutations.test.mjs scripts/graph-fixer.test.mjs scripts/block-seed-repair-v2.test.mjs scripts/block-derived-control-repair-v2.test.mjs", "test:graph-visuals": "node --test scripts/graph-visuals.test.mjs scripts/node-measurement-dispatch.test.mjs scripts/node-connection-search.test.mjs", "test:media-viewer": "node --test scripts/media-viewer.test.mjs", - "test:requests": "node --test scripts/media-attachment.test.mjs scripts/node-presentation.test.mjs scripts/service-package.test.mjs scripts/node-store-requests.test.mjs scripts/operation-catalog.test.mjs scripts/operation-authoring.test.mjs scripts/operation-modification-matrix.test.mjs scripts/request-boundary.test.mjs scripts/server-actions.test.mjs scripts/shared-store-requests.test.mjs scripts/studio-output-requests.test.mjs scripts/resolved-execution-inputs.test.mjs scripts/runtime-resources.test.mjs", + "test:requests": "node --test scripts/media-attachment.test.mjs scripts/node-presentation.test.mjs scripts/service-package.test.mjs scripts/node-store-requests.test.mjs scripts/operation-catalog.test.mjs scripts/operation-authoring.test.mjs scripts/operation-modification-matrix.test.mjs scripts/request-boundary.test.mjs scripts/server-actions.test.mjs scripts/shared-store-requests.test.mjs scripts/supervisor-startup.test.mjs scripts/studio-output-requests.test.mjs scripts/resolved-execution-inputs.test.mjs scripts/runtime-resources.test.mjs scripts/websocket-connection.test.mjs scripts/backend-proxy-lifecycle.test.mjs", "test:run-coordinator": "node --test scripts/run-coordinator.test.mjs scripts/run-issue-store.test.mjs scripts/block-runtime-hints-v2.test.mjs", "test:run-activity": "node --test scripts/run-activity.test.mjs", "test:template-input-preview": "node --test scripts/template-input-preview.test.mjs", "test:asset-storage": "node --test scripts/template-assets.test.mjs && node scripts/run-python.mjs scripts/template-gallery-assets.test.py", - "test:workflow-save": "node --test scripts/workflow-save.test.mjs scripts/workflow-backend-sync.test.mjs", + "test:workflow-save": "node --test scripts/workflow-save.test.mjs scripts/workflow-backend-sync.test.mjs scripts/workflow-document-origin.test.mjs", "test:styles": "node --test scripts/modiff-style.test.mjs", "test:unit": "npm run test:styles && npm run test:templates && npm run test:task-templates && npm run test:template-quality && npm run gallery:card-coverage && npm run test:release-contract && npm run test:live-qwen-proof && npm run test:gallery-harness && npm run test:gallery-runner && node --test scripts/generation-campaign-retry-ledger.test.mjs && npm run test:gallery-queue && npm run test:driver-contract && npm run test:hugging-face-node-library && npm run test:modular-hierarchy-v2 && npm run test:block-schema-v2 && npm run test:block-route-selection-v1 && npm run test:block-runtime-v2 && npm run test:block-renderer-v2 && npm run test:block-persistence-v2 && npm run test:composite-migration-ui && npm run test:legacy-cluster-recovery-audit && npm run test:composite-block-capabilities-v2 && npm run test:registered-block-v2-adapter && npm run test:hugging-face-cluster-drag && npm run test:graph-export && npm run test:graph-mutations && npm run test:graph-visuals && npm run test:media-viewer && npm run test:requests && npm run test:run-coordinator && npm run test:run-activity && npm run test:template-input-preview && npm run test:asset-storage && npm run test:workflow-save", "typecheck": "tsc -b --pretty false", diff --git a/run-dev.ps1 b/run-dev.ps1 index ff14cf57..af1a8764 100644 --- a/run-dev.ps1 +++ b/run-dev.ps1 @@ -165,7 +165,6 @@ if (Test-PortInUse -Port $BackendPort) { $backendCommand = @" `$Host.UI.RawUI.WindowTitle = 'MoDiff Backend' Set-Location -LiteralPath '$backendPathEscaped' -`$env:PYTORCH_CUDA_ALLOC_CONF = if (`$env:PYTORCH_CUDA_ALLOC_CONF) { `$env:PYTORCH_CUDA_ALLOC_CONF } else { 'expandable_segments:True' } if (Test-Path -LiteralPath '.\.venv\Scripts\python.exe') { & '.\.venv\Scripts\python.exe' main.py } else { diff --git a/scripts/backend-installer-contract.mjs b/scripts/backend-installer-contract.mjs index 6a9e64e5..ce677959 100644 --- a/scripts/backend-installer-contract.mjs +++ b/scripts/backend-installer-contract.mjs @@ -19,15 +19,13 @@ function readJson(path, label) { } } -function assertUvIsInstallerManaged(pyproject, path) { +function assertUvProjectManaged(pyproject, path) { const header = /^\[tool\.uv\]\s*$/m.exec(pyproject); const afterHeader = header ? pyproject.slice(header.index + header[0].length) : ''; const nextSection = /^\[[^\]]+\]\s*$/m.exec(afterHeader); const section = afterHeader.slice(0, nextSection?.index ?? afterHeader.length); - if (!section || !/^\s*managed\s*=\s*false\s*(?:#.*)?$/m.test(section)) { - throw new Error( - `${path} must declare [tool.uv] managed = false because accelerator profile installers own the environment.`, - ); + if (/^\s*managed\s*=\s*false\s*(?:#.*)?$/m.test(section)) { + throw new Error(`${path} must allow native uv project management.`); } } @@ -47,7 +45,8 @@ function safeRequirementsPath(backendRoot, value, profileId) { export function buildBackendInstallerPackageSet(backendRoot) { const pyprojectPath = join(backendRoot, 'pyproject.toml'); const pyproject = readFileSync(requiredFile(pyprojectPath, 'Backend pyproject'), 'utf8'); - assertUvIsInstallerManaged(pyproject, pyprojectPath); + assertUvProjectManaged(pyproject, pyprojectPath); + const uvLockPath = requiredFile(join(backendRoot, 'uv.lock'), 'Backend uv lock'); const manifestRelativePath = 'modiff/compatibility/accelerators.v1.json'; const manifestPath = join(backendRoot, manifestRelativePath); @@ -84,8 +83,10 @@ export function buildBackendInstallerPackageSet(backendRoot) { return { id: 'backend-installer-profiles', - installStrategy: 'installer-owned-profile-requirements', - uvProjectManaged: false, + installStrategy: 'native-uv-with-specialized-accelerator-profiles', + uvProjectManaged: true, + uvLockPath: 'uv.lock', + uvLockSha256: sha256File(uvLockPath), pyprojectPath: 'pyproject.toml', pyprojectSha256: sha256File(pyprojectPath), runtimeManifestPath: manifestRelativePath, diff --git a/scripts/backend-installer-contract.test.mjs b/scripts/backend-installer-contract.test.mjs index 7f9302cc..74b96162 100644 --- a/scripts/backend-installer-contract.test.mjs +++ b/scripts/backend-installer-contract.test.mjs @@ -6,11 +6,12 @@ import { test } from 'node:test'; import { buildBackendInstallerPackageSet } from './backend-installer-contract.mjs'; -function fixture({ managed = false, requirements = 'torch==2.8.0\n' } = {}) { +function fixture({ managed = true, requirements = 'torch==2.8.0\n' } = {}) { const root = mkdtempSync(join(tmpdir(), 'modiff-installer-contract-')); mkdirSync(join(root, 'modiff', 'compatibility'), { recursive: true }); mkdirSync(join(root, 'requirements', 'profiles'), { recursive: true }); writeFileSync(join(root, 'pyproject.toml'), `[project]\nname = "modiff"\n\n[tool.uv]\nmanaged = ${managed}\n`); + writeFileSync(join(root, 'uv.lock'), 'version = 1\nrevision = 1\n'); writeFileSync( join(root, 'modiff', 'compatibility', 'accelerators.v1.json'), `${JSON.stringify({ @@ -33,12 +34,13 @@ function fixture({ managed = false, requirements = 'torch==2.8.0\n' } = {}) { return root; } -test('package identity follows the installer-owned manifest and profile requirements without uv.lock', () => { +test('package identity binds the native uv lock and specialized profile requirements', () => { const root = fixture(); try { const first = buildBackendInstallerPackageSet(root); assert.equal(first.id, 'backend-installer-profiles'); - assert.equal(first.uvProjectManaged, false); + assert.equal(first.uvProjectManaged, true); + assert.match(first.uvLockSha256, /^sha256:[a-f0-9]{64}$/); assert.equal(first.runtimeManifestRevision, 'test-runtime-contract'); assert.match(first.runtimeManifestSha256, /^sha256:[a-f0-9]{64}$/); assert.match(first.runtimeProfiles.cpu.requirementsSha256, /^sha256:[a-f0-9]{64}$/); @@ -46,21 +48,27 @@ test('package identity follows the installer-owned manifest and profile requirem writeFileSync(join(root, 'requirements', 'profiles', 'cpu.txt'), 'torch==2.8.1\n'); const changed = buildBackendInstallerPackageSet(root); assert.notEqual(changed.runtimeProfiles.cpu.requirementsSha256, first.runtimeProfiles.cpu.requirementsSha256); + writeFileSync(join(root, 'uv.lock'), 'version = 1\nrevision = 2\n'); + assert.notEqual(buildBackendInstallerPackageSet(root).uvLockSha256, first.uvLockSha256); } finally { rmSync(root, { recursive: true, force: true }); } }); -test('package contract rejects uv project management and missing profile inputs', () => { - const managedRoot = fixture({ managed: true }); +test('package contract rejects unmanaged projects and missing profile or lock inputs', () => { + const managedRoot = fixture({ managed: false }); const missingRoot = fixture(); + const missingLockRoot = fixture(); try { - assert.throws(() => buildBackendInstallerPackageSet(managedRoot), /managed = false/); + assert.throws(() => buildBackendInstallerPackageSet(managedRoot), /native uv project management/); rmSync(join(missingRoot, 'requirements', 'profiles', 'cpu.txt')); assert.throws(() => buildBackendInstallerPackageSet(missingRoot), /requirements is missing/); + rmSync(join(missingLockRoot, 'uv.lock')); + assert.throws(() => buildBackendInstallerPackageSet(missingLockRoot), /uv lock is missing/); } finally { rmSync(managedRoot, { recursive: true, force: true }); rmSync(missingRoot, { recursive: true, force: true }); + rmSync(missingLockRoot, { recursive: true, force: true }); } }); @@ -115,10 +123,9 @@ test('README follows the paired install and development launcher contract', () = 'git clone https://github.com/sdevil7th/MoDiff.git MoDiff', 'git clone https://github.com/sdevil7th/MoDiff-client.git MoDiff-client', 'cd MoDiff', - 'uv run --no-project --no-sync --python 3.12 -m modiff.dev plan --accelerator cpu --backend-only --json', - 'uv run --no-project --no-sync --python 3.12 -m modiff.dev setup --accelerator cpu --backend-only --non-interactive', - 'uv run --no-project --no-sync --python 3.12 -m modiff.dev check --json --check-port 8088 --fail-on-error', - 'uv run --no-project --no-sync --python 3.12 -m modiff.dev run', + 'uv sync --extra cpu', + 'uv run --extra cpu python -m modiff.preflight --json --check-port 8088 --fail-on-error', + 'uv run --extra cpu python main.py', 'cd MoDiff-client', 'npm ci', 'npm run dev', diff --git a/scripts/backend-proxy-lifecycle.test.mjs b/scripts/backend-proxy-lifecycle.test.mjs new file mode 100644 index 00000000..9fe56e6f --- /dev/null +++ b/scripts/backend-proxy-lifecycle.test.mjs @@ -0,0 +1,185 @@ +import assert from 'node:assert/strict'; +import { after, before, test } from 'node:test'; +import { EventEmitter } from 'node:events'; +import { createHash } from 'node:crypto'; +import { createServer as createHttpServer, request } from 'node:http'; +import path from 'node:path'; +import { fileURLToPath } from 'node:url'; +import { createLogger, createServer } from 'vite'; +import { chromium } from 'playwright'; + +const ROOT = path.resolve(path.dirname(fileURLToPath(import.meta.url)), '..'); +let loader; +let lifecycleModule; + +before(async () => { + loader = await createServer({ + root: ROOT, + configFile: false, + logLevel: 'silent', + optimizeDeps: { entries: [], noDiscovery: true }, + server: { middlewareMode: true, watch: null }, + appType: 'custom', + }); + lifecycleModule = await loader.ssrLoadModule('/scripts/backend-proxy-lifecycle.ts'); +}); +after(async () => { + await loader?.close(); +}); + +test('only known errors owned by a disconnected browser bypass the proxy error logger', () => { + const lifecycle = lifecycleModule.backendProxyLifecycle(); + const errors = []; + const config = { logger: { error: (message) => errors.push(message) } }; + lifecycle.plugin.configResolved(config); + const proxy = new EventEmitter(); + lifecycle.configure(proxy); + const socket = new EventEmitter(); + const outgoing = new EventEmitter(); + proxy.emit('proxyReqWs', outgoing, new EventEmitter(), socket); + const upstreamFailure = Object.assign(new Error('upstream failed'), { code: 'ECONNRESET' }); + proxy.emit('error', upstreamFailure, {}, socket); + config.logger.error('upstream failed', { error: upstreamFailure }); + assert.deepEqual(errors, ['upstream failed']); + socket.emit('end'); + for (const code of ['ECONNRESET', 'ECONNABORTED', 'EPIPE']) { + const expected = Object.assign(new Error('browser left'), { code }); + outgoing.emit('error', expected); + config.logger.error('browser left', { error: expected }); + } + const unrelated = Object.assign(new Error('refused'), { code: 'ECONNREFUSED' }); + proxy.emit('error', unrelated, {}, socket); + config.logger.error('refused', { error: unrelated }); + config.logger.error('another error with similar text', { error: new Error('ECONNRESET') }); + assert.deepEqual(errors, ['upstream failed', 'refused', 'another error with similar text']); +}); + +async function openSocket(port) { + return new Promise((resolve, reject) => { + const client = request({ + hostname: '127.0.0.1', + port, + path: '/ws?sid=isolated-probe', + headers: { + Connection: 'Upgrade', + Upgrade: 'websocket', + 'Sec-WebSocket-Version': '13', + 'Sec-WebSocket-Key': 'dGhlIHNhbXBsZSBub25jZQ==', + }, + }); + client.on('error', reject); + client.on('upgrade', (_response, socket) => { + socket.on('error', () => {}); + resolve(socket); + }); + client.end(); + }); +} + +test('real websocket proxy treats browser reset as teardown and reports an upstream reset', async () => { + const backend = createHttpServer(); + const backendSockets = new Set(); + backend.on('upgrade', (incoming, socket) => { + backendSockets.add(socket); + socket.on('close', () => backendSockets.delete(socket)); + socket.on('error', () => {}); + const accept = createHash('sha1') + .update(incoming.headers['sec-websocket-key'] + '258EAFA5-E914-47DA-95CA-C5AB0DC85B11') + .digest('base64'); + socket.write( + `HTTP/1.1 101 Switching Protocols\r\nUpgrade: websocket\r\nConnection: Upgrade\r\nSec-WebSocket-Accept: ${accept}\r\n\r\n`, + ); + const payload = JSON.stringify({ task_id: 'retained-task', status: 'running' }); + socket.write(Buffer.concat([Buffer.from([0x81, Buffer.byteLength(payload)]), Buffer.from(payload)])); + }); + await new Promise((resolve) => backend.listen(0, '127.0.0.1', resolve)); + const lifecycle = lifecycleModule.backendProxyLifecycle(); + const errors = []; + const logger = createLogger('silent'); + logger.error = (message) => errors.push(message); + const frontend = await createServer({ + root: ROOT, + configFile: false, + customLogger: logger, + plugins: [ + lifecycle.plugin, + { + name: 'isolated-browser-socket-probe', + configureServer(server) { + server.middlewares.use((incoming, response, next) => { + if (incoming.url !== '/socket-probe') return next(); + response.setHeader('Content-Type', 'text/html'); + response.end(`

connecting

`); + }); + }, + }, + ], + optimizeDeps: { entries: [], noDiscovery: true }, + server: { + host: '127.0.0.1', + port: 0, + watch: null, + hmr: false, + proxy: { + '/ws': { target: `http://127.0.0.1:${backend.address().port}`, ws: true, configure: lifecycle.configure }, + }, + }, + appType: 'custom', + }); + const clients = []; + try { + await frontend.listen(); + const port = frontend.httpServer.address().port; + for (let attempt = 0; attempt < 3; attempt += 1) { + const browser = await openSocket(port); + clients.push(browser); + browser.resetAndDestroy(); + await new Promise((resolve) => setTimeout(resolve, 20)); + } + assert.deepEqual(errors, [], 'browser resets must not emit proxy stack traces'); + const browser = await openSocket(port); + clients.push(browser); + const upstream = [...backendSockets].at(-1); + assert.ok(upstream); + upstream.resetAndDestroy(); + await new Promise((resolve) => setTimeout(resolve, 30)); + assert.ok( + errors.some((message) => message.includes('ws proxy error')), + 'an upstream reset while the browser is connected must remain visible', + ); + errors.length = 0; + const browserProcess = await chromium.launch({ headless: true }); + try { + const page = await browserProcess.newPage(); + for (let refresh = 0; refresh < 3; refresh += 1) { + await page.goto(`http://127.0.0.1:${port}/socket-probe`); + await page.waitForFunction( + () => + document.querySelector('#connection').textContent === 'connected' && + document.querySelector('#task').textContent === 'retained-task:running', + ); + } + await page.close(); + await new Promise((resolve) => setTimeout(resolve, 30)); + assert.deepEqual( + errors, + [], + 'browser refresh and close must preserve handshake/task delivery without proxy stack traces', + ); + } finally { + await browserProcess.close(); + } + } finally { + for (const client of clients) client.destroy(); + for (const socket of backendSockets) socket.destroy(); + await frontend.close(); + await new Promise((resolve) => backend.close(resolve)); + } +}); diff --git a/scripts/backend-proxy-lifecycle.ts b/scripts/backend-proxy-lifecycle.ts new file mode 100644 index 00000000..6d89cc83 --- /dev/null +++ b/scripts/backend-proxy-lifecycle.ts @@ -0,0 +1,56 @@ +import type { Plugin, ProxyOptions } from 'vite'; +import type { Socket } from 'node:net'; + +/** Classify errors only after the browser's own proxied socket has closed. */ +export function backendProxyLifecycle() { + const expectedErrors = new WeakSet(); + const clients = new WeakMap(); + const expectedCodes = new Set(['ECONNRESET', 'ECONNABORTED', 'EPIPE']); + const classify = (error: Error, client: { closed: boolean }) => { + const code = 'code' in error ? error.code : undefined; + if (client.closed && typeof code === 'string' && expectedCodes.has(code)) expectedErrors.add(error); + }; + + const configure: NonNullable = (proxy) => { + proxy.on('proxyReqWs', (request, incoming, socket) => { + const client = { closed: false }; + clients.set(socket, client); + socket.once('end', () => { + client.closed = true; + }); + socket.once('close', () => { + client.closed = true; + }); + // Vite adds its diagnostic listener after this callback. Retain the + // error's ownership so its logger can distinguish navigation from an + // upstream reset while the browser remains connected. + const clientError = (error: Error) => { + client.closed = true; + classify(error, client); + }; + incoming.prependListener('error', clientError); + socket.prependListener('error', clientError); + request.on('error', (error) => classify(error, client)); + request.on('upgrade', (_response, upstream) => { + upstream.prependListener('error', (error) => classify(error, client)); + }); + }); + proxy.on('error', (error, _incoming, response) => { + const client = clients.get(response as Socket); + if (client) classify(error, client); + }); + }; + + const plugin: Plugin = { + name: 'modiff-backend-proxy-lifecycle', + apply: 'serve', + configResolved(config) { + const reportError = config.logger.error.bind(config.logger); + config.logger.error = (message, options) => { + if (options?.error instanceof Error && expectedErrors.has(options.error)) return; + reportError(message, options); + }; + }, + }; + return { configure, plugin }; +} diff --git a/scripts/bounded-browser-process.test.mjs b/scripts/bounded-browser-process.test.mjs index 0a5e08d8..795404de 100644 --- a/scripts/bounded-browser-process.test.mjs +++ b/scripts/bounded-browser-process.test.mjs @@ -42,7 +42,9 @@ test( let stat; do { stat = await readFile(`/proc/${pid}/stat`, 'utf8').catch((error) => { - if (error.code === 'ENOENT') return ''; + // /proc may disappear before open (ENOENT) or after open, before + // read (ESRCH), when Linux finishes reaping the killed process. + if (error.code === 'ENOENT' || error.code === 'ESRCH') return ''; throw error; }); if (!stat || /\) Z /.test(stat)) break; diff --git a/scripts/bundle-budget.mjs b/scripts/bundle-budget.mjs index 9251a263..bb3cd3c5 100644 --- a/scripts/bundle-budget.mjs +++ b/scripts/bundle-budget.mjs @@ -30,7 +30,21 @@ const SOURCE_LICENSES = new URL('../public/THIRD_PARTY_LICENSES.txt', import.met // Required-input preflight, leaf-graph cycle checks and connectable scalar editors // add shared correctness logic: measured largest startup chunk 450.1 KiB. // Keep native creation deferred and bound the chunk at 450.25 KiB. -const MAX_STARTUP_CHUNK_GZIP_BYTES = 450 * 1024 + 256; +// Abortable backend probes, durable runtime status parsing, and regenerated +// route pins measure 461311 bytes here. Allow a bounded 512-byte increase; +// deferred chunk ceilings and the complete startup budget remain independent. +// Exact image-template execution selections add bounded shared recipe metadata. +// Native graph creation stays lazy: measured largest startup chunk is 462529 +// bytes. Allow 1280 bytes for the metadata, without new dependencies. +// Conditional component connector roles and exact dual-Guidance recipe metadata +// measure 463021 bytes. Allow 256 more bytes; native creation remains deferred. +// Verified supervisor origins, ordered health discovery and bounded legacy +// recovery share one control helper. Together with exact consumed-control +// visibility, the measured chunk is 463619 bytes (+567 from 463052). Allow +// 576 bytes; retain lazy authoring and the independent deferred-chunk ceiling. +// Owned metadata waiting and fresh-document hydration add 280 bytes to this +// shared startup chunk (463950 measured). Bound the necessary fix by 320 bytes. +const MAX_STARTUP_CHUNK_GZIP_BYTES = 450 * 1024 + 768 + 1280 + 256 + 576 + 320; // Shared icons initialize in graph-vendor, avoiding an entry/lazy-panel cycle // that captured undefined tab icons and crashed cold production startup. The // Earlier startup measured 589.1 KiB. Shared Block crossing, explicit movement, @@ -87,7 +101,18 @@ const MAX_STARTUP_CHUNK_GZIP_BYTES = 450 * 1024 + 256; // bounded 128 bytes above the previous ceiling, not an unbounded budget reset. // The same authoring fixes measure 624.2 KiB startup with no new dependencies. // Allow 624.5 KiB; individual deferred-chunk ceilings stay fixed. -const MAX_STARTUP_GZIP_BYTES = 624 * 1024 + 512; +// The same changes measure 639616 startup bytes, 128 above the former bound. +// Allow 256 additional bytes without increasing deferred or total ceilings. +// The same image-template metadata measures 640835 startup bytes. Native graph +// authoring and controlled-workflow helpers load only when creation is requested. +// The validated connector and Guidance fixes measure 641325 startup bytes. +// Allow 384 additional bytes without new dependencies or eager authoring imports. +// The same supervisor/consumed-control fix measures 641927 startup bytes +// (+567 from 641360). Bound this shared correctness logic with 576 bytes; +// no new dependencies or eager template-creation imports. +// The same startup fix adds 277 bytes (642255 measured); deferred code falls +// by 115 bytes. Add 320 here without changing lazy boundaries or chunk limits. +const MAX_STARTUP_GZIP_BYTES = 624 * 1024 + 768 + 1280 + 384 + 576 + 320; // Deferred surfaces are measured separately so code splitting cannot hide an // unbounded feature bundle. These ceilings leave room for the reviewed dialogs // and catalog tools while preventing either one oversized deferred chunk or @@ -177,7 +202,22 @@ const MAX_DEFERRED_CHUNK_GZIP_BYTES = 64 * 1024; // 247.4 KiB measured; retain the independent 64 KiB per-chunk limit. // Deferred native Block creation and explicit-interface preservation measure // 248.1 KiB combined. Allow 512 bytes beyond the previous deferred ceiling. -const MAX_DEFERRED_GZIP_BYTES = 248 * 1024 + 512; +// Backend-defined image-template creation, exact parameter bindings and guarded +// atomic insertion measure 257611 deferred bytes. Bound this added feature at +// 3328 bytes above the previous aggregate; the 64 KiB chunk ceiling stays fixed. +// The exact recipe fixes measure 257819 aggregate bytes. Allow another 128 bytes +// while retaining the independent 64 KiB limit for every deferred chunk. +// Validated preservation of the two Z-Image default adapter names adds 263 +// compressed bytes (258082 total). Bound it with 256 additional bytes above +// the prior ceiling; startup, dependencies and individual chunk limits stay fixed. +// Exact consumed-control visibility measures 258292 aggregate bytes (+137 +// from 258155). Allow 128 additional bytes above the previous ceiling; +// retain the independent 64 KiB limit and all lazy authoring boundaries. +// Bounded runtime-discovery waiting, cancellation and owned device normalization +// stay in lazy template authoring. Measured aggregate is 258637 bytes (+345; +// 329 bytes in that helper). Allow 384 bytes above the former 258304-byte cap; +// startup, the 64 KiB per-chunk ceiling and loading boundaries stay unchanged. +const MAX_DEFERRED_GZIP_BYTES = 248 * 1024 + 512 + 3328 + 128 + 256 + 128 + 384; const STATIC_MODULE_REFERENCE = /\b(?:import(?=\s|["'{*])(?!\s*\()|export(?=\s|["'{*]))[^;]*?["'](\.\/[^"'?]+\.js)(?:\?v=[0-9a-f]{16})?["']/g; diff --git a/scripts/flow-graph-mutations.test.mjs b/scripts/flow-graph-mutations.test.mjs index fafa763c..fc2cfd99 100644 --- a/scripts/flow-graph-mutations.test.mjs +++ b/scripts/flow-graph-mutations.test.mjs @@ -1565,10 +1565,18 @@ test('native creation retains deliberately renamed interfaces as explicit contra const prepared = prepareUserBlockCreationV2(draft, configured); assert.equal(prepared.definition.boundary.mode, 'explicit'); assert.equal(prepared.definition.boundary.outputs[0].label, 'Deliberately exposed model'); + // Legacy IDs beginning with '-' or '_' are deliberately remapped. Identify + // the returned root by its exact definition rather than a random draft ID. + const roots = prepared.graph.nodes.filter( + (n) => + n.data.blockInstanceV2?.definitionRef.definitionId === prepared.definition.definitionId && + n.data.blockInstanceV2.definitionRef.contentHash === prepared.definition.contentHash, + ); + assert.equal(roots.length, 1); + assert.equal(roots[0].data.blockInstanceV2.effectiveInterface.boundary.mode, 'explicit'); assert.equal( - prepared.graph.nodes.find((n) => n.data.blockInstanceV2 && n.id === draft.blockNode.id).data.blockInstanceV2 - .effectiveInterface.boundary.mode, - 'explicit', + roots[0].data.blockInstanceV2.effectiveInterface.boundary.outputs[0].label, + 'Deliberately exposed model', ); }); diff --git a/scripts/hugging-face-node-library.test.mjs b/scripts/hugging-face-node-library.test.mjs index 0d75969d..bdbf07f7 100644 --- a/scripts/hugging-face-node-library.test.mjs +++ b/scripts/hugging-face-node-library.test.mjs @@ -1299,10 +1299,10 @@ function payloadWithTransformersTextCluster() { stateKeys: [], components: [ { - name: 'optional_runtime', - type: `huggingface-transformers-peft-5.14.1-0.20.0@sha256:${'9'.repeat(64)}`, - creationMethod: 'explicit_app_setup', - reuseKey: ['optional_runtime'], + name: 'model_runtime', + type: 'modiff.base-model-runtime@sha256:cc281f8fbae5093d68b4dd963a8f80e32b1589991c8cda97a3ec0f26c9e700db', + creationMethod: 'base_installation', + reuseKey: ['model_runtime'], }, { name: 'model', @@ -1334,7 +1334,7 @@ function payloadWithTransformersTextCluster() { url: '', }, }, - contentHash: 'sha256:32f78d82f1912997b1eaaf43a749627d7ccd07b8805bd66e8abaf21b27c6385a', + contentHash: 'sha256:ec00d85eae98ff645e1ead4726c55904a9360513b5e21bdc2473fa1a2720a310', }; body.providers = ['diffusers', 'transformers']; body.definitions.push(transformerDefinition); @@ -3465,6 +3465,26 @@ test('Transformers Blocks insert and materialize their exact generic task graph' assert.equal(transformersSection.entries[0].readiness, 'graph_qualified'); assert.equal(transformersSection.entries[0].readinessLabel, 'Graph qualified'); assert.equal(transformersSection.entries[0].insertable, true); + assert.deepEqual(definition.components[0], { + name: 'model_runtime', + type: 'modiff.base-model-runtime@sha256:cc281f8fbae5093d68b4dd963a8f80e32b1589991c8cda97a3ec0f26c9e700db', + creationMethod: 'base_installation', + reuseKey: ['model_runtime'], + }); + const staleBody = structuredClone(body); + const staleDefinition = staleBody.definitions.find((candidate) => candidate.id === rawDefinition.id); + staleDefinition.components[0] = { + name: 'optional_runtime', + type: `huggingface-transformers-peft-5.14.1-0.20.0@sha256:${'9'.repeat(64)}`, + creationMethod: 'explicit_app_setup', + reuseKey: ['optional_runtime'], + }; + staleDefinition.contentHash = 'sha256:32f78d82f1912997b1eaaf43a749627d7ccd07b8805bd66e8abaf21b27c6385a'; + const staleEntry = libraryCatalogModule + .buildHuggingFaceCatalogSections(libraryModule.parseHuggingFaceNodeLibrary(staleBody)) + .find((section) => section.id === 'transformers_cluster_nodes').entries[0]; + assert.equal(staleEntry.readiness, 'catalog_only'); + assert.equal(staleEntry.insertable, false); const root = clusterGraphModule.createHuggingFaceClusterNode( definition, diff --git a/scripts/hugging-face-runtime-contract.test.mjs b/scripts/hugging-face-runtime-contract.test.mjs index 8ad2fce1..81e1ebf9 100644 --- a/scripts/hugging-face-runtime-contract.test.mjs +++ b/scripts/hugging-face-runtime-contract.test.mjs @@ -29,7 +29,7 @@ test('compatibility UI keeps local actions and has no hosted inference path', () assert.doesNotMatch(websocketHandler, /Hugging Face remote inference/); }); -test('official Hugging Face runtimes remain backend-only and explicitly optional', () => { +test('core Hugging Face runtimes are installed in the backend and discovery never installs packages', () => { const packageManifest = JSON.parse(source('package.json')); const browserDependencies = { ...(packageManifest.dependencies ?? {}), @@ -40,8 +40,9 @@ test('official Hugging Face runtimes remain backend-only and explicitly optional const agentPolicy = source('AGENTS.md'); assert.match(agentPolicy, /official libraries maintained and published by Hugging Face/); - assert.match(agentPolicy, /Transformers is an optional backend runtime/); - assert.match(agentPolicy, /Browsing or opening a\s+template[\s\S]*must never install it/); + assert.match(agentPolicy, /Transformers and PEFT are required backend dependencies/); + assert.match(agentPolicy, /Browsing templates, discovery, and Auto planning must\s+never install packages/); + assert.match(agentPolicy, /base runtime without a separate install\/activate flow/); }); test('optional runtime actions stay generic, explicit, and backend-qualified', () => { @@ -64,20 +65,36 @@ test('optional runtime actions stay generic, explicit, and backend-qualified', ( assert.doesNotMatch(e2eHooks, /e2eOptionalRuntime(?:OverlayIsActive|IsSatisfied)/); }); -test('frontend workflow generation has no library-specific model driver', () => { +test('frontend workflow generation has no library-specific model driver', async () => { const controlledWorkflows = source('src/studio/controlledWorkflows.ts'); const controlledContracts = source('src/studio/controlledWorkflowContracts.ts'); + const operationWorkflows = source('src/studio/templateOperationWorkflow.ts'); assert.match(controlledContracts, /qualityVideoShots: 'modules\.WorkflowControl\.AuthorShotList'/); - assert.match( - controlledWorkflows, - /setParamIfPresent\(nodeId, \['revision'\], adapter\.model\.revision \?\? ''\)/, - 'generic adapter graph construction must forward and clear the backend-owned immutable revision field', - ); - assert.match( - controlledWorkflows, - /setParamIfPresent\(nodeId, \['expected_sha256'\], adapter\.model\.sha256 \?\? ''\)/, - 'generic adapter graph construction must forward and clear the backend-owned content digest field', - ); + assert.match(controlledWorkflows, /loraWorkflowFieldValues\(adapter, index\)/); + assert.match(operationWorkflows, /loraWorkflowFieldValues\(adapter, index\)/); + + const { createServer } = await import('vite'); + const server = await createServer({ + configFile: false, + logLevel: 'silent', + optimizeDeps: { entries: [], noDiscovery: true }, + server: { middlewareMode: true, watch: null }, + appType: 'custom', + }); + try { + const { loraWorkflowFieldValues } = await server.ssrLoadModule('/src/studio/controlledWorkflowValues.ts'); + const model = { source: 'hub', value: 'owner/adapter', revision: 'a'.repeat(40), sha256: 'b'.repeat(64) }; + const fields = (adapter) => + Object.fromEntries(loraWorkflowFieldValues({ model: adapter }, 0).map(({ fields, value }) => [fields[0], value])); + const pinned = fields(model); + assert.equal(pinned.revision, model.revision); + assert.equal(pinned.expected_sha256, model.sha256); + const unpinned = fields({ source: 'hub', value: 'owner/replacement' }); + assert.equal(unpinned.revision, '', 'replacement must clear the previous immutable revision'); + assert.equal(unpinned.expected_sha256, '', 'replacement must clear the previous content digest'); + } finally { + await server.close(); + } for (const path of [ 'src/studio/controlledWorkflows.ts', diff --git a/scripts/node-connection-search.test.mjs b/scripts/node-connection-search.test.mjs index 116c9174..1e6c264d 100644 --- a/scripts/node-connection-search.test.mjs +++ b/scripts/node-connection-search.test.mjs @@ -31,6 +31,73 @@ const definition = (params, action = 'Process') => ({ params, }); +test('backend-declared component role selectors accept only an exact unconnected literal selection', async () => { + const storage = new Map(); + globalThis.localStorage ??= { + getItem: (key) => storage.get(key) ?? null, + setItem: (key, value) => storage.set(key, value), + removeItem: (key) => storage.delete(key), + }; + globalThis.window ??= { + location: { origin: 'http://127.0.0.1:5191' }, + localStorage: globalThis.localStorage, + dispatchEvent: () => true, + }; + const matching = await server.ssrLoadModule('/src/workflow/nodeConnectionMatching.ts'); + const { parseNodesResponse } = await server.ssrLoadModule('/src/stores/useNodeStore.ts'); + const selector = { field: 'model_type', values: { controlnet: 'controlnet_component' } }; + const loader = definition( + { + model_type: { type: 'string', value: 'controlnet' }, + model: { display: 'output', type: 'diffusers_auto_model', connectionRoleSelector: selector }, + }, + 'AutoModelLoader', + ); + const control = definition( + { + controlnet: { + display: 'input', + type: 'diffusers_auto_model', + signalCompatibility: { role: 'controlnet_component' }, + }, + }, + 'Controlnet', + ); + const parsed = parseNodesResponse({ + instance: 'component-contract', + nodes: { 'custom.Workbench.AutoModelLoader': loader }, + }); + assert.deepEqual(parsed.nodes['custom.Workbench.AutoModelLoader'].params.model.connectionRoleSelector, selector); + const compatible = (source) => matching.nodeConnectionSemanticsAreCompatible(source, 'model', control, 'controlnet'); + assert.equal(compatible(loader), true); + for (const value of ['', 'vae', 'unet', 'transformer', 'unknown', undefined, 1, { value: 'controlnet' }]) { + const source = structuredClone(loader); + source.params.model_type.value = value; + assert.equal(compatible(source), false, `unsupported selector ${JSON.stringify(value)}`); + } + const connected = structuredClone(loader); + connected.params.model_type.isConnected = true; + assert.equal(compatible(connected), false, 'a connected selector cannot borrow the stale local literal'); + const missing = structuredClone(loader); + delete missing.params.model_type; + assert.equal(compatible(missing), false); + for (const malformed of [ + null, + [], + {}, + { field: 'model_type', values: {} }, + { field: 'model_type', values: { controlnet: 1 } }, + { field: 'model_type', values: { controlnet: 'controlnet_component' }, extra: true }, + { field: '__proto__', values: { controlnet: 'controlnet_component' } }, + ]) { + const source = structuredClone(loader); + source.params.model.connectionRoleSelector = malformed; + source.params.model.connectionRole = 'controlnet_component'; + assert.throws(() => parseNodesResponse({ nodes: { source } }), /invalid connection role selector/); + assert.equal(compatible(source), false, 'malformed saved declarations fail closed'); + } +}); + test('insertion preserves the discovery policy and rejects stale endpoints without choosing another socket', async () => { const { matchingNodeHandleForInsertion } = await server.ssrLoadModule('/src/workflow/nodeConnectionMatching.ts'); const node = definition({ metadata: { type: 'any', display: 'input' }, image: { type: 'image', display: 'input' } }); diff --git a/scripts/node-store-requests.test.mjs b/scripts/node-store-requests.test.mjs index 7e5ab59d..b8f27d36 100644 --- a/scripts/node-store-requests.test.mjs +++ b/scripts/node-store-requests.test.mjs @@ -18,6 +18,7 @@ let stableHashModule; let studioStoreModule; let flowStoreModule; let originalFetch; +let controlModule; function requestStates() { return Object.fromEntries( @@ -53,6 +54,7 @@ before(async () => { flowStoreModule = await server.ssrLoadModule('/src/stores/useFlowStore.ts'); studioStoreModule = await server.ssrLoadModule('/src/stores/useStudioStore.ts'); nodesStoreModule = await server.ssrLoadModule('/src/stores/useNodeStore.ts'); + controlModule = await server.ssrLoadModule('/src/utils/supervisorControl.ts'); operationContractsModule = await server.ssrLoadModule('/src/workflow/operationContracts.ts'); optionalRuntimesModule = await server.ssrLoadModule('/src/studio/optionalRuntimes.ts'); runReadinessModule = await server.ssrLoadModule('/src/studio/runReadiness.ts'); @@ -61,6 +63,7 @@ before(async () => { }); beforeEach(() => { + controlModule.resetSupervisorControl(); nodesStoreModule.useNodesStore.setState({ nodesRegistry: {}, isLoading: false, @@ -1790,6 +1793,57 @@ test('optional runtime status uses latest-response ordering and clears malformed assert.match(state.discoveryRequests.optionalRuntimes.error, /runtime contract/i); }); +test('optional runtime catalog restores bounded activation jobs through validation and restart', () => { + const job = { + id: 'optjob-Activate1234', + operation: 'activate', + profileId: 'huggingface-transformers-peft-5.14.1-0.20.0', + specDigest: `sha256:${'1'.repeat(64)}`, + createdAt: 1, + updatedAt: 2, + status: 'restarting', + progress: { phase: 'restarting', message: 'Waiting for the replacement worker.' }, + result: { environmentId: 'runtime-2-12345678', requiresActivation: false, restartRequired: true }, + }; + const catalog = optionalRuntimesModule.parseOptionalRuntimeCatalog(optionalRuntimeCatalog({ latestJob: job })); + assert.deepEqual(catalog.latestJob, job); + for (const [status, phase] of [ + ['running', 'validating'], + ['verifying', 'verifying'], + ['ready', 'ready'], + ]) { + const parsed = optionalRuntimesModule.parseOptionalRuntimeJobResponse({ + error: false, + job: { ...job, status, progress: { ...job.progress, phase } }, + }); + assert.equal(parsed.status, status); + } + for (const malformed of [ + { operation: 'execute' }, + { updatedAt: -1 }, + { createdAt: Infinity }, + { id: '../private' }, + { status: 'connected' }, + ]) { + assert.throws( + () => + optionalRuntimesModule.parseOptionalRuntimeCatalog( + optionalRuntimeCatalog({ latestJob: { ...job, ...malformed } }), + ), + /runtime contract/i, + ); + } +}); + +test('optional runtime profiles distinguish verified base dependencies from legacy optional cards', () => { + const payload = optionalRuntimeCatalog(); + assert.equal(optionalRuntimesModule.parseOptionalRuntimeCatalog(payload).profiles[0].baseIncluded, false); + payload.profiles[0].baseIncluded = true; + assert.equal(optionalRuntimesModule.parseOptionalRuntimeCatalog(payload).profiles[0].baseIncluded, true); + payload.profiles[0].baseIncluded = 'true'; + assert.throws(() => optionalRuntimesModule.parseOptionalRuntimeCatalog(payload), /runtime contract/i); +}); + test('requestJson aborts requests at the configured timeout', async () => { globalThis.fetch = (_url, init) => new Promise((_resolve, reject) => { @@ -1973,6 +2027,50 @@ test('runtime discovery normalizes legacy and managed runtime payloads', async ( assert.equal(environment.installation.resumeCommand, './install.sh --resume'); }); +test('runtime discovery publishes supervisor capability and retains it across temporary health failures', async () => { + globalThis.fetch = async () => + jsonResponse({ ready: true, workerControl: { available: true, address: 'http://127.0.0.1:43001' } }); + await nodesStoreModule.useNodesStore.getState().fetchRuntimeStatus(); + assert.deepEqual(nodesStoreModule.useNodesStore.getState().runtimeStatus.workerControl, { + available: true, + address: 'http://127.0.0.1:43001', + }); + globalThis.fetch = async () => { + throw new TypeError('Worker is temporarily restarting.'); + }; + await nodesStoreModule.useNodesStore.getState().fetchRuntimeStatus(); + assert.equal(nodesStoreModule.useNodesStore.getState().runtimeStatus, null); + assert.equal(controlModule.supervisorControlAddress(), 'http://127.0.0.1:43001'); + globalThis.fetch = async () => jsonResponse({ ready: true, workerControl: { available: false, address: null } }); + await nodesStoreModule.useNodesStore.getState().fetchRuntimeStatus(); + assert.equal(controlModule.supervisorControlAddress(), null); +}); + +test('malformed runtime control metadata rejects discovery without replacing the last verified destination', async () => { + globalThis.fetch = async () => + jsonResponse({ ready: true, workerControl: { available: true, address: 'http://127.0.0.1:43001' } }); + await nodesStoreModule.useNodesStore.getState().fetchRuntimeStatus(); + globalThis.fetch = async () => + jsonResponse({ ready: true, workerControl: { available: true, address: 'http://example.com:43001' } }); + await nodesStoreModule.useNodesStore.getState().fetchRuntimeStatus(); + assert.equal(nodesStoreModule.useNodesStore.getState().discoveryRequests.runtime.status, 'error'); + assert.equal(controlModule.supervisorControlAddress(), 'http://127.0.0.1:43001'); +}); + +test('a stale runtime response cannot overwrite current worker-control discovery', async () => { + const first = deferred(), + second = deferred(); + let count = 0; + globalThis.fetch = () => (++count === 1 ? first.promise : second.promise); + const older = nodesStoreModule.useNodesStore.getState().fetchRuntimeStatus(); + const newer = nodesStoreModule.useNodesStore.getState().fetchRuntimeStatus(); + second.resolve(jsonResponse({ ready: true, workerControl: { available: true, address: 'http://127.0.0.1:43001' } })); + await newer; + first.resolve(jsonResponse({ ready: true, workerControl: { available: false, address: null } })); + await older; + assert.equal(controlModule.supervisorControlAddress(), 'http://127.0.0.1:43001'); +}); + test('runtime fingerprint changes invalidate every cached Auto plan', async () => { const cachedPlan = { status: 'ready', checkedAt: 1 }; studioStoreModule.useStudioStore.setState({ diff --git a/scripts/registered-block-v2-insertion.test.mjs b/scripts/registered-block-v2-insertion.test.mjs index f26385f3..967928b2 100644 --- a/scripts/registered-block-v2-insertion.test.mjs +++ b/scripts/registered-block-v2-insertion.test.mjs @@ -477,6 +477,14 @@ function fluxFixture() { repo: 'black-forest-labs/FLUX.1-dev', revision: '3de623fc3c33e44ffbe2bad470d0f45bccf2eb21', }; + // This synthetic interaction fixture follows the published identity. Its + // synthetic compiled bytes are checked separately by pinFixtureRoute; + // these lifecycle tests do not qualify the real backend graph. + const route = routeModule.REGISTERED_BLOCK_V2_ROUTES.find( + (candidate) => candidate.definitionId === definitionId && candidate.admissionId === admissionId, + ); + assert.ok(route); + assert.deepEqual(route.artifact, artifact); Object.assign(definition, { id: definitionId, pipelineClass: 'FluxModularPipeline', @@ -498,7 +506,7 @@ function fluxFixture() { url: 'https://huggingface.co/black-forest-labs/FLUX.1-dev', }, }, - contentHash: 'sha256:cfec41815a507f63620e7b80cb6a18700485ac2520a7472826b1389418bbd7ed', + contentHash: route.definitionContentHash, }); Object.assign(admission, { id: admissionId, @@ -507,11 +515,7 @@ function fluxFixture() { sealedBindingValues: { artifact: artifact.repo, pipelineClass: 'FluxModularPipeline' }, modelDependencies: [{ id: 'model', kind: 'model', repo: artifact.repo, revision: artifact.revision }], adapterContractId: adapterId, - studioExecutionSpec: { - id: 'flux-dev:modular-text-to-image:v1', - contentHash: 'studio-spec-v1-9dd14796', - executionProfileId: 'flux-dev:modular', - }, + studioExecutionSpec: structuredClone(route.studioExecutionSpec), artifact, }); definition.graphAdapterContracts[0] = { ...definition.graphAdapterContracts[0], id: adapterId }; @@ -2506,7 +2510,7 @@ test('workflow replacement during a deferred field action aborts and cleans the }); for (const change of ['workflow', 'edit', 'cancel', 'gesture', 'none']) { - test(`a delayed registered Block switch preserves its owner after ${change}`, async () => { + test(`a delayed registered Block switch preserves its owner after ${change}`, { timeout: 10000 }, async () => { const switching = await server.ssrLoadModule('/src/studio/registeredBlockRouteSwitchV1.ts'); const configured = fixture(); const root = await insertion.createHuggingFaceClusterForGraph(configured.definition, { x: 80, y: 90 }, form()); @@ -2543,7 +2547,13 @@ for (const change of ['workflow', 'edit', 'cancel', 'gesture', 'none']) { (value) => ({ value }), (error) => ({ error }), ); - await entered.promise; + await Promise.race([ + entered.promise, + settled.then((result) => { + if (result.error) throw result.error; + assert.fail('The switch completed before reaching the deliberately delayed request.'); + }), + ]); if (change === 'workflow') { studioStore.useStudioStore.setState({ activeWorkflowTabId: 'different-workflow', workflowCanvasEpoch: 2 }); } else if (change === 'edit') { diff --git a/scripts/registered-block-v2-route-audit.test.mjs b/scripts/registered-block-v2-route-audit.test.mjs index 7691b089..006a59d3 100644 --- a/scripts/registered-block-v2-route-audit.test.mjs +++ b/scripts/registered-block-v2-route-audit.test.mjs @@ -29,6 +29,7 @@ let modelProfiles; let modularConditionalModule; let reviewedModularGraphModule; let routeModule; +let nodeLibraryModule; let server; let snapshot; let storage; @@ -1010,6 +1011,7 @@ before(async () => { modularConditionalModule = await server.ssrLoadModule('/src/studio/huggingFaceModularConditionals.ts'); reviewedModularGraphModule = await server.ssrLoadModule('/src/studio/reviewedModularGraphV2.ts'); routeModule = await server.ssrLoadModule('/src/studio/registeredBlockV2Routes.ts'); + nodeLibraryModule = await server.ssrLoadModule('/src/studio/huggingFaceNodeLibrary.ts'); }); after(async () => { @@ -1018,7 +1020,66 @@ after(async () => { delete globalThis.localStorage; }); +test('the real public library preserves the sealed text-Control placement and rejects unsealed or altered values', () => { + const parsed = nodeLibraryModule.parseHuggingFaceNodeLibrary(snapshot.library); + const definition = parsed.definitions.find( + (item) => item.id === 'diffusers.modular:QwenImageModularPipeline:controlnet_text2image', + ); + const admission = definition.executionAdmissions.find((item) => item.studioMode === 'control_image'); + assert.equal(admission.sealedBindingValues.controlnetOffloadMode, 'none'); + assert.equal(admission.executionParameterSources.includes('controlnetOffloadMode'), false); + for (const value of ['model_cpu', false, null]) { + const invalid = structuredClone(snapshot.library); + invalid.definitions + .find((item) => item.id === definition.id) + .executionAdmissions.find((item) => item.id === admission.id).sealedBindingValues.controlnetOffloadMode = value; + assert.throws(() => nodeLibraryModule.parseHuggingFaceNodeLibrary(invalid), /node-library contract/); + } + const missing = structuredClone(snapshot.library); + delete missing.definitions + .find((item) => item.id === definition.id) + .executionAdmissions.find((item) => item.id === admission.id).sealedBindingValues.controlnetOffloadMode; + assert.throws(() => nodeLibraryModule.parseHuggingFaceNodeLibrary(missing), /node-library contract/); + const editable = structuredClone(snapshot.library); + editable.definitions + .find((item) => item.id === definition.id) + .executionAdmissions.find((item) => item.id === admission.id) + .executionParameterSources.push('controlnetOffloadMode'); + assert.throws(() => nodeLibraryModule.parseHuggingFaceNodeLibrary(editable), /node-library contract/); +}); + +test('actual registered materialization rejects a changed sealed ControlNet offload value before node preparation', () => { + const definition = snapshot.library.definitions.find( + (item) => item.id === 'diffusers.modular:QwenImageModularPipeline:controlnet_text2image', + ); + const admission = definition.executionAdmissions.find((item) => item.studioMode === 'control_image'); + const executionSpec = snapshot.specs.find((item) => item.id === admission.studioExecutionSpec.id); + let instance = clusterInstance.createHuggingFaceClusterInstance(definition, 'sealed-control-placement-rejection'); + instance = clusterInstance.setHuggingFaceClusterExecution(instance, definition, admission.id); + const bindingValues = clusterRuntime.huggingFaceClusterExecutionParameterValues( + admission, + modelProfiles.getFormDefaultsForRegisteredRoute(admission.studioMode, definition.pipelineClass), + ); + const altered = structuredClone(admission); + altered.sealedBindingValues.controlnetOffloadMode = 'model_cpu'; + assert.throws( + () => + clusterMaterializer.materializeHuggingFaceClusterExecutionSkeleton({ + definition, + instance, + admission: altered, + executionSpec, + nodesRegistry: snapshot.registries[executionSpec.id], + bindingValues, + expanded: false, + }), + /sealed or planner binding values/, + ); +}); + test('every explicitly routed admission is an exact backend schema-v6 compiler success with fixed runtime probes', () => { + const parsedLibrary = nodeLibraryModule.parseHuggingFaceNodeLibrary(snapshot.library); + assert.equal(parsedLibrary.definitions.length, snapshot.library.definitions.length); const specs = new Map(snapshot.specs.map((spec) => [spec.id, spec])); const eligibleAdmissions = snapshot.library.definitions.flatMap((definition) => definition.executionAdmissions.filter(eligibleAdmission).map((admission) => ({ definition, admission })), @@ -1073,6 +1134,48 @@ test('every explicitly routed admission is an exact backend schema-v6 compiler s bindingValues, }); assert.equal(skeleton.bindingsComplete, true); + if ( + admission.id === + 'diffusers.cluster-admission:QwenImageModularPipeline:controlnet_text2image:mode:control_image' + ) { + const autoBindingValues = clusterRuntime.huggingFaceClusterExecutionParameterValues(admission, { + ...form, + resourceMode: 'auto', + autoOffload: true, + offloadMode: 'model_cpu', + device: 'cuda:0', + dtype: 'bfloat16', + }); + const autoMaterialized = clusterMaterializer.materializeHuggingFaceClusterExecutionSkeleton({ + definition, + instance, + admission, + executionSpec, + nodesRegistry: snapshot.registries[executionSpec.id], + bindingValues: autoBindingValues, + expanded: false, + }); + const autoSkeleton = finalizedRegisteredAuditSkeleton({ + definition, + instance, + admission, + executionSpec, + skeleton: autoMaterialized, + bindingValues: autoBindingValues, + }).skeleton; + const base = autoSkeleton.nodes.find((node) => node.data.huggingFaceClusterExecutionRole === 'models'); + const auxiliary = autoSkeleton.nodes.find( + (node) => node.data.huggingFaceClusterExecutionRole === 'controlnetModel', + ); + assert.ok(base && auxiliary, 'the actual registered Control graph must retain both model owners'); + assert.equal(base.data.params.auto_offload.value, true); + assert.equal(base.data.params.offload_mode.value, 'model_cpu'); + assert.equal(auxiliary.data.params.auto_offload.value, false); + assert.equal(auxiliary.data.params.offload_mode.value, 'none'); + for (const field of ['device', 'dtype']) { + assert.equal(auxiliary.data.params[field].value, base.data.params[field].value); + } + } const registeredRoute = routeModule.registeredBlockV2Route(definition, admission); const previousRoute = routeModule.REGISTERED_BLOCK_V2_ROUTES.find( (candidate) => candidate.definitionId === definition.id && candidate.admissionId === admission.id, @@ -1182,6 +1285,19 @@ test('every explicitly routed admission is an exact backend schema-v6 compiler s `the exact graph leaves required runtime sockets unbound: ${unboundRequiredInputs.join(', ')}`, ); assert.equal(compiled.definition.source.executionAdmissionId, admission.id); + if (definition.id === 'diffusers.modular:QwenImageEditModularPipeline:image_conditioned') { + for (const dimension of ['width', 'height']) { + const input = compiled.definition.boundary.inputs.find(({ portId }) => portId === `${dimension}_input`); + const output = compiled.definition.boundary.outputs.find(({ portId }) => portId === dimension); + assert.ok(input, `the authored ${dimension} has its own public input alias`); + assert.deepEqual(input.binding, { + nodeId: 'upstream:denoise.input.additional_inputs', + fieldOrPortId: dimension, + }); + assert.ok(output, `the original source-image ${dimension} output remains public`); + assert.deepEqual(output.binding, { nodeId: 'loadImage', fieldOrPortId: dimension }); + } + } if (route && process.env.MODIFF_GENERATE_ROUTE_CANDIDATES !== '1') { assert.equal(compiled.definition.contentHash, route.compiledDefinitionContentHash); assert.equal( diff --git a/scripts/release-contract.mjs b/scripts/release-contract.mjs index 0652d20b..48b0d801 100644 --- a/scripts/release-contract.mjs +++ b/scripts/release-contract.mjs @@ -329,8 +329,11 @@ const workflowRecords = workflowManifest.workflows.map((workflow) => { }); const vite = await createServer({ root: CLIENT_ROOT, + configFile: false, + logLevel: 'silent', + optimizeDeps: { entries: [], noDiscovery: true }, appType: 'custom', - server: { middlewareMode: true, watch: null }, + server: { middlewareMode: true, hmr: false, watch: null }, }); try { diff --git a/scripts/resolved-execution-inputs.test.mjs b/scripts/resolved-execution-inputs.test.mjs index 4f15e981..19e5f036 100644 --- a/scripts/resolved-execution-inputs.test.mjs +++ b/scripts/resolved-execution-inputs.test.mjs @@ -7,7 +7,15 @@ import { fileURLToPath } from 'node:url'; let server, contracts, inputs, outputUtils, profiles; before(async () => { globalThis.window = { location: { origin: 'http://localhost' } }; - server = await createServer({ server: { middlewareMode: true }, appType: 'custom' }); + // These SSR imports never use HMR. Middleware mode alone still watches the + // repository and local Gallery assets, consuming inotify entries in parallel tests. + server = await createServer({ + configFile: false, + logLevel: 'silent', + optimizeDeps: { entries: [], noDiscovery: true }, + server: { middlewareMode: true, hmr: false, watch: null }, + appType: 'custom', + }); contracts = await server.ssrLoadModule('/src/studio/outputContracts.ts'); inputs = await server.ssrLoadModule('/src/studio/resolvedExecutionInputs.ts'); outputUtils = await server.ssrLoadModule('/src/studio/outputUtils.ts'); @@ -18,6 +26,16 @@ after(async () => { delete globalThis.window; }); +test('SSR receipt imports and explicit watch requests allocate no filesystem watchers', () => { + assert.equal(server.config.server.watch, null); + assert.deepEqual(server.watcher.getWatched(), {}); + server.watcher.add([ + fileURLToPath(new URL('../src/studio/resolvedExecutionInputs.ts', import.meta.url)), + fileURLToPath(new URL('../public/template-gallery', import.meta.url)), + ]); + assert.deepEqual(server.watcher.getWatched(), {}); +}); + function capturedOutput(fields, extra = {}) { const evidence = receipt(); evidence.nodes[0].fields = Object.fromEntries( @@ -253,6 +271,37 @@ test('receipt requires exact task attempt/output identity and a summary derived assert.equal(inputs.coerceResolvedExecutionInputs(badOrigin, identity), undefined); }); +test('captured native and whole-pipeline attention/VAE policies survive history and retain ambiguity', () => { + const identity = { taskId: 'actual-task', attemptIndex: 2, nodeId: 'preview' }; + for (const [slicing, tiling] of [ + ['vae_slicing', 'vae_tiling'], + ['enable_vae_slicing', 'enable_vae_tiling'], + ]) { + const capture = receipt(); + Object.assign(capture.nodes[0].fields, { + attention_backend: { value: '_native_math', source: 'literal' }, + [slicing]: { value: true, source: 'literal' }, + [tiling]: { value: false, source: 'literal' }, + }); + Object.assign(capture.summary, { attentionBackend: '_native_math', vaeSlicing: true, vaeTiling: false }); + assert.deepEqual(inputs.coerceResolvedExecutionInputs(capture, identity), capture); + const restored = contracts.coerceStudioOutput( + JSON.parse(JSON.stringify({ id: 'policies', url: '/image.webp', ...identity, resolvedExecutionInputs: capture })), + ); + assert.deepEqual(restored.resolvedExecutionInputs, capture); + const unknown = structuredClone(capture); + unknown.nodes[0].fields.enable_vae_unknown = { value: true, source: 'literal' }; + assert.equal(inputs.coerceResolvedExecutionInputs(unknown, identity), undefined); + } + const mixed = receipt(); + Object.assign(mixed.nodes[0].fields, { + vae_slicing: { value: true, source: 'literal' }, + enable_vae_slicing: { value: false, source: 'literal' }, + }); + mixed.ambiguousFields = ['vaeSlicing']; + assert.deepEqual(inputs.coerceResolvedExecutionInputs(mixed, identity), mixed); +}); + test('every backend capture field survives client history parsing with node-scoped adapter identity', () => { const backend = fileURLToPath(new URL('../../MoDiff/', import.meta.url)); const python = @@ -315,6 +364,57 @@ print(json.dumps(cases)) } }); +test('shared guidance receipts distinguish scale-one CFG formulations and stay scoped to the Guider', () => { + const identity = { taskId: 'actual-task', attemptIndex: 2, nodeId: 'preview' }; + for (const enabled of [true, false]) { + for (const original of [true, false]) { + const capture = receipt(); + capture.nodes.push({ + nodeId: 'guide', + module: 'modules.ModularDiffusers', + action: 'Guider', + fields: { + guider: { value: 'ClassifierFreeGuidance', source: 'literal' }, + guidance_scale: { value: 1, source: 'literal' }, + enabled: { value: enabled, source: 'literal' }, + use_original_formulation: { value: original, source: 'literal' }, + guidance_rescale: { value: 0, source: 'literal' }, + start: { value: 0, source: 'literal' }, + stop: { value: 1, source: 'literal' }, + }, + omittedFields: {}, + }); + Object.assign(capture.summary, { + guidanceScale: 1, + guiderType: 'ClassifierFreeGuidance', + guidanceEnabled: enabled, + guidanceOriginalFormulation: original, + guidanceRescale: 0, + guidanceStart: 0, + guidanceStop: 1, + }); + assert.deepEqual(inputs.coerceResolvedExecutionInputs(capture, identity), capture); + const restored = contracts.coerceStudioOutput( + JSON.parse( + JSON.stringify({ + id: 'guidance', + url: '/image.webp', + ...identity, + resolvedExecutionInputs: capture, + }), + ), + ); + assert.deepEqual(restored.resolvedExecutionInputs, capture); + const wrongScope = structuredClone(capture); + wrongScope.nodes.at(-1).action = 'EncodePrompt'; + assert.equal(inputs.coerceResolvedExecutionInputs(wrongScope, identity), undefined); + const forged = structuredClone(capture); + forged.summary.guidanceOriginalFormulation = !original; + assert.equal(inputs.coerceResolvedExecutionInputs(forged, identity), undefined); + } + } +}); + test('ambiguous or opaque generation inputs are disclosed instead of presenting form defaults as runtime facts', () => { const capture = receipt(); capture.nodes.push({ diff --git a/scripts/run-coordinator.test.mjs b/scripts/run-coordinator.test.mjs index 61b50944..8d04f3b1 100644 --- a/scripts/run-coordinator.test.mjs +++ b/scripts/run-coordinator.test.mjs @@ -17,6 +17,7 @@ let flowStoreModule; let nodesStoreModule; let runIssueStoreModule; let runPreparationModule; +let snackbarModule; let studioStoreModule; let taskStoreModule; let websocketModule; @@ -62,6 +63,7 @@ before(async () => { nodesStoreModule = await server.ssrLoadModule('/src/stores/useNodeStore.ts'); runIssueStoreModule = await server.ssrLoadModule('/src/stores/useRunIssueStore.ts'); runPreparationModule = await server.ssrLoadModule('/src/studio/runPreparation.ts'); + snackbarModule = await server.ssrLoadModule('/src/ui/snackbar.ts'); studioStoreModule = await server.ssrLoadModule('/src/stores/useStudioStore.ts'); taskStoreModule = await server.ssrLoadModule('/src/stores/useTaskStore.ts'); websocketModule = await server.ssrLoadModule('/src/stores/websocketMessageHandler.ts'); @@ -70,6 +72,7 @@ before(async () => { }); beforeEach(() => { + snackbarModule.closeSnackbar(); flowStoreModule.useFlowStore.setState({ nodes: [ { @@ -2512,6 +2515,120 @@ test('a terminal event cannot borrow identity from a different current task', () assert.equal(completed?.client_run_id, undefined); }); +test('Auto cache preparation updates its running task message without changing progress or errors', () => { + const tasks = taskStoreModule.useTaskStore; + tasks.setState({ + currentTask: { + task_id: 'cache-preparation-task', + name: 'Graph execution', + status: 'running', + workflow_tab_id: 'workflow-origin', + client_run_id: 'cache-preparation-run', + progress: 37, + node_progress: 12, + current_node: 'preview', + error: 'Existing diagnostic', + message: 'Preparing the workflow', + }, + taskCount: 1, + }); + const context = { sid: 'session-1', ws: {}, getSid: () => 'session-1', setSid: () => {}, setLoopTimer: () => {} }; + websocketModule.handleWebsocketMessage( + { + type: 'auto_resource_cleanup', + sid: 'session-1', + task_id: 'cache-preparation-task', + performed: false, + message: 'Releasing previous model cache, then checking actual available memory.', + }, + context, + ); + const current = tasks.getState().currentTask; + assert.equal(current.message, 'Releasing previous model cache, then checking actual available memory.'); + assert.equal(current.progress, 37); + assert.equal(current.node_progress, 12); + assert.equal(current.current_node, 'preview'); + assert.equal(current.error, 'Existing diagnostic'); + assert.equal(current.status, 'running'); + assert.equal(current.client_run_id, 'cache-preparation-run'); + assert.equal(current.workflow_tab_id, 'workflow-origin'); + assert.equal(tasks.getState().sessionRuns[0].message, current.message); + assert.deepEqual( + snackbarModule.getToastItems().map((toast) => toast.message), + [current.message], + ); + assert.equal(flowStoreModule.useFlowStore.getState().nodes[0].data.progress, undefined); +}); + +test('Auto preparation cannot change another task or revive a terminal task', () => { + const tasks = taskStoreModule.useTaskStore; + const current = { + task_id: 'different-task', + name: 'Graph execution', + status: 'running', + progress: 42, + message: 'Denoising', + }; + tasks.setState({ currentTask: current, taskCount: 1 }); + const context = { sid: 'session-1', ws: {}, getSid: () => 'session-1', setSid: () => {}, setLoopTimer: () => {} }; + const event = { + type: 'auto_resource_cleanup', + task_id: 'previous-task', + performed: false, + message: 'Checking memory', + }; + websocketModule.handleWebsocketMessage(event, context); + assert.deepEqual(tasks.getState().currentTask, current); + assert.deepEqual(snackbarModule.getToastItems(), []); + for (const status of ['completed', 'failed', 'cancelled']) { + tasks.setState({ currentTask: { ...current, task_id: 'previous-task', status } }); + websocketModule.handleWebsocketMessage(event, context); + assert.equal(tasks.getState().currentTask.message, 'Denoising'); + assert.equal(tasks.getState().currentTask.status, status); + } + assert.deepEqual(tasks.getState().sessionRuns, []); +}); + +test('background cache preparation belongs to its task without notifying the active canvas', () => { + const tasks = taskStoreModule.useTaskStore; + tasks.setState({ + currentTask: { + task_id: 'background-task', + name: 'Background graph', + status: 'running', + workflow_tab_id: 'background-workflow', + progress: 20, + message: 'Preparing', + }, + }); + const context = { sid: 'session-1', ws: {}, getSid: () => 'session-1', setSid: () => {}, setLoopTimer: () => {} }; + websocketModule.handleWebsocketMessage( + { + type: 'auto_resource_cleanup', + task_id: 'background-task', + performed: false, + message: 'Checking actual available memory', + }, + context, + ); + assert.equal(tasks.getState().currentTask.message, 'Checking actual available memory'); + assert.deepEqual(snackbarModule.getToastItems(), []); + assert.equal(flowStoreModule.useFlowStore.getState().nodes[0].data.progress, undefined); + websocketModule.handleWebsocketMessage( + { + type: 'auto_resource_cleanup', + task_id: 'background-task', + performed: true, + reasons: ['previous model cache released'], + }, + context, + ); + assert.deepEqual( + snackbarModule.getToastItems().map((toast) => toast.message), + ['Released stale runtime resources: previous model cache released'], + ); +}); + test('websocket parsing accepts handled Auto events and rejects malformed typed payloads', () => { assert.deepEqual( websocketModule.parseWebsocketMessage( diff --git a/scripts/server-actions.test.mjs b/scripts/server-actions.test.mjs index 684d9199..233c0227 100644 --- a/scripts/server-actions.test.mjs +++ b/scripts/server-actions.test.mjs @@ -10,6 +10,7 @@ const ROOT = path.resolve(path.dirname(fileURLToPath(import.meta.url)), '..'); let actionsModule; let originalFetch; let server; +let controlModule; before(async () => { globalThis.window = { @@ -25,11 +26,13 @@ before(async () => { appType: 'custom', }); actionsModule = await server.ssrLoadModule('/src/utils/serverActions.ts'); + controlModule = await server.ssrLoadModule('/src/utils/supervisorControl.ts'); originalFetch = globalThis.fetch; }); beforeEach(() => { globalThis.fetch = originalFetch; + controlModule.resetSupervisorControl(); }); after(async () => { @@ -44,6 +47,92 @@ function jsonResponse(value, status = 200) { }); } +test('advertised unsupervised workers stop directly without probing a missing control port', async () => { + controlModule.updateWorkerControl(controlModule.parseWorkerControl({ available: false, address: null })); + const requests = []; + globalThis.fetch = async (url) => { + requests.push(String(url)); + return jsonResponse({ error: false }); + }; + await actionsModule.requestExecutionStop(); + assert.deepEqual(requests, ['http://127.0.0.1:5191/stop']); +}); + +test('invalid legacy control configuration still permits the ordinary worker Stop fallback', async () => { + const config = (await server.ssrLoadModule('/app.config.ts')).default; + const previous = config.supervisorAddress; + const requests = []; + config.supervisorAddress = 'http://remote.example:8089'; + globalThis.fetch = async (url) => { + requests.push(String(url)); + return jsonResponse({ error: false }); + }; + try { + await actionsModule.requestExecutionStop(); + assert.deepEqual(requests, ['http://127.0.0.1:5191/stop']); + } finally { + config.supervisorAddress = previous; + } +}); + +test('explicit Stop retains a verified custom control address through metadata failure and polling backoff', async () => { + controlModule.updateWorkerControl( + controlModule.parseWorkerControl({ available: true, address: 'http://127.0.0.1:43001' }), + ); + controlModule.updateWorkerControl(undefined); + controlModule.supervisorControlFailed(); + assert.equal(controlModule.supervisorControlAddress(), null); + const requests = []; + globalThis.fetch = async (url) => { + requests.push(String(url)); + return jsonResponse({ error: false }); + }; + await actionsModule.requestExecutionStop(); + assert.deepEqual(requests, ['http://127.0.0.1:43001/stop']); +}); + +test('worker control metadata rejects malformed, remote, credentialed and non-origin destinations', () => { + assert.equal(controlModule.parseWorkerControl(undefined), undefined); + for (const value of [ + null, + [], + {}, + { available: 'true', address: null }, + { available: false, address: 'http://127.0.0.1:8089' }, + { available: true, address: null }, + { available: false, address: null, arbitrary: true }, + ...[ + 'http://example.com:9001', + 'http://127.0.0.2:9001', + 'https://127.0.0.1:9001', + 'http://user@127.0.0.1:9001', + 'http://127.0.0.1:9001/queue', + 'http://127.0.0.1:0', + 'http://127.0.0.1:65536', + 'http://127.0.0.1:9001?x=1', + 'http://2130706433:9001', + ].map((address) => ({ available: true, address })), + ]) { + assert.throws(() => controlModule.parseWorkerControl(value)); + } + assert.deepEqual(controlModule.parseWorkerControl({ available: true, address: 'http://127.0.0.1:43001/' }), { + available: true, + address: 'http://127.0.0.1:43001', + }); + assert.deepEqual(controlModule.parseWorkerControl({ available: true, address: 'http://127.0.0.1:80' }), { + available: true, + address: 'http://127.0.0.1', + }); +}); + +test('older health metadata cannot replace a newer verified supervisor destination', () => { + const older = controlModule.beginWorkerControlRead(); + const newer = controlModule.beginWorkerControlRead(); + controlModule.updateWorkerControl({ available: true, address: 'http://127.0.0.1:43001' }, newer); + controlModule.updateWorkerControl({ available: false, address: null }, older); + assert.equal(controlModule.supervisorControlAddress(), 'http://127.0.0.1:43001'); +}); + test('execution stop uses the process-external supervisor before the backend worker', async () => { let request; globalThis.fetch = async (url, init) => { diff --git a/scripts/shared-store-requests.test.mjs b/scripts/shared-store-requests.test.mjs index 61d4314b..14bc6c5e 100644 --- a/scripts/shared-store-requests.test.mjs +++ b/scripts/shared-store-requests.test.mjs @@ -12,6 +12,7 @@ let server; let taskStoreModule; let userBlockStoreModule; let originalFetch; +let controlModule; before(async () => { globalThis.window = { @@ -27,6 +28,7 @@ before(async () => { appType: 'custom', }); taskStoreModule = await server.ssrLoadModule('/src/stores/useTaskStore.ts'); + controlModule = await server.ssrLoadModule('/src/utils/supervisorControl.ts'); flowStoreModule = await server.ssrLoadModule('/src/stores/useFlowStore.ts'); userBlockStoreModule = await server.ssrLoadModule('/src/stores/useUserBlockStore.ts'); autoResourceModule = await server.ssrLoadModule('/src/studio/autoResource.ts'); @@ -34,6 +36,7 @@ before(async () => { }); beforeEach(() => { + controlModule.resetSupervisorControl(); taskStoreModule.useTaskStore.setState({ queuedTasks: {}, currentTask: undefined, @@ -42,6 +45,7 @@ beforeEach(() => { taskCount: 0, queueRevision: 0, fetchState: { status: 'idle', error: null, requestId: null }, + supervisorControlError: null, }); flowStoreModule.useFlowStore.setState({ nodes: [], @@ -88,6 +92,75 @@ function userBlock(id, name = id) { }; } +test('known unsupervised worker metadata prevents background control requests', async () => { + controlModule.updateWorkerControl(controlModule.parseWorkerControl({ available: false, address: null })); + let requests = 0; + globalThis.fetch = async () => { + requests += 1; + throw new Error('An absent listener must not be probed.'); + }; + for (let index = 0; index < 20; index += 1) await taskStoreModule.useTaskStore.getState().fetchSupervisorTasks(); + assert.equal(requests, 0); + assert.equal(controlModule.supervisorControlCanPoll(), false); +}); + +test('invalid legacy control configuration has bounded diagnosable polling without an unhandled rejection', async () => { + const config = (await server.ssrLoadModule('/app.config.ts')).default; + const previous = config.supervisorAddress; + config.supervisorAddress = 'http://remote.example:8089'; + let requests = 0; + globalThis.fetch = async () => { + requests += 1; + throw new Error('Untrusted control destinations must not be requested.'); + }; + try { + await taskStoreModule.useTaskStore.getState().fetchSupervisorTasks(); + assert.match(taskStoreModule.useTaskStore.getState().supervisorControlError, /Invalid supervisor control address/); + for (let index = 0; index < 20; index += 1) await taskStoreModule.useTaskStore.getState().fetchSupervisorTasks(); + assert.equal(requests, 0); + } finally { + config.supervisorAddress = previous; + } +}); + +test('failed legacy control discovery backs off while retaining diagnosable failure and later recovery', async () => { + const originalNow = Date.now; + let now = 1000, + requests = 0; + Date.now = () => now; + globalThis.fetch = async () => { + requests += 1; + if (requests === 1) throw new TypeError('Control connection refused.'); + return jsonResponse({ current: null, queued: {}, recent: [] }); + }; + try { + await taskStoreModule.useTaskStore.getState().fetchSupervisorTasks(); + assert.match(taskStoreModule.useTaskStore.getState().supervisorControlError, /refused/); + for (let index = 0; index < 20; index += 1) await taskStoreModule.useTaskStore.getState().fetchSupervisorTasks(); + assert.equal(requests, 1); + now += 5000; + await taskStoreModule.useTaskStore.getState().fetchSupervisorTasks(); + assert.equal(requests, 2); + assert.equal(taskStoreModule.useTaskStore.getState().supervisorControlError, null); + } finally { + Date.now = originalNow; + } +}); + +test('supervisor queue reads use the verified bound port and preserve it while health is unavailable', async () => { + controlModule.updateWorkerControl( + controlModule.parseWorkerControl({ available: true, address: 'http://127.0.0.1:43001' }), + ); + controlModule.updateWorkerControl(undefined); + const requests = []; + globalThis.fetch = async (url) => { + requests.push(String(url)); + return jsonResponse({ current: null, queued: {}, recent: [] }); + }; + await taskStoreModule.useTaskStore.getState().fetchSupervisorTasks(); + assert.deepEqual(requests, ['http://127.0.0.1:43001/queue']); +}); + test('a delayed queue fetch cannot overwrite a newer websocket queue revision', async () => { const call = deferred(); globalThis.fetch = () => call.promise; diff --git a/scripts/supervisor-startup.test.mjs b/scripts/supervisor-startup.test.mjs new file mode 100644 index 00000000..08481a8c --- /dev/null +++ b/scripts/supervisor-startup.test.mjs @@ -0,0 +1,227 @@ +import assert from 'node:assert/strict'; +import { after, before, beforeEach, test } from 'node:test'; +import path from 'node:path'; +import { fileURLToPath } from 'node:url'; +import { createServer } from 'vite'; + +const ROOT = path.resolve(path.dirname(fileURLToPath(import.meta.url)), '..'); +let server, control, nodes, tasks, originalFetch; +before(async () => { + globalThis.window = { location: { origin: 'http://127.0.0.1:5191' }, dispatchEvent: () => true }; + server = await createServer({ + root: ROOT, + configFile: false, + logLevel: 'silent', + optimizeDeps: { entries: [], noDiscovery: true }, + server: { middlewareMode: true, hmr: false, watch: null }, + appType: 'custom', + }); + control = await server.ssrLoadModule('/src/utils/supervisorControl.ts'); + nodes = (await server.ssrLoadModule('/src/stores/useNodeStore.ts')).useNodesStore; + tasks = (await server.ssrLoadModule('/src/stores/useTaskStore.ts')).useTaskStore; + originalFetch = globalThis.fetch; +}); +beforeEach(() => { + control.resetSupervisorControl(); + const discoveryRequests = { ...nodes.getState().discoveryRequests }; + for (const key of ['nodes', 'runtime']) discoveryRequests[key] = { status: 'idle', requestId: null, error: null }; + nodes.setState({ discoveryRequests, runtimeStatus: null, runtimeError: null }); + tasks.setState({ + currentTask: undefined, + queuedTasks: {}, + taskCount: 0, + queueRevision: 0, + supervisorControlError: null, + }); +}); +after(async () => { + globalThis.fetch = originalFetch; + await server?.close(); +}); +function status(key, state, requestId = 1) { + nodes.setState({ + discoveryRequests: { ...nodes.getState().discoveryRequests, [key]: { status: state, requestId, error: null } }, + }); +} +function countedStore() { + let subscriptions = 0; + return { + getState: nodes.getState, + subscribe(listener) { + subscriptions++; + const unsubscribe = nodes.subscribe(listener); + return () => { + subscriptions--; + unsubscribe(); + }; + }, + count: () => subscriptions, + }; +} +function deferred() { + let resolve; + const promise = new Promise((r) => { + resolve = r; + }); + return { promise, resolve }; +} +function response(x) { + return new Response(JSON.stringify(x), { headers: { 'Content-Type': 'application/json' } }); +} +async function background(store = nodes, signal, timeoutMs = 1000) { + if (await control.waitForSupervisorMetadata(store, signal, timeoutMs)) await tasks.getState().fetchSupervisorTasks(); +} + +test('startup waits through owned nodes-to-runtime discovery and avoids a standalone queue probe', async () => { + status('nodes', 'loading'); + const store = countedStore(); + const requests = []; + globalThis.fetch = async (url) => { + requests.push(String(url)); + return response({ ready: true, workerControl: { available: false, address: null } }); + }; + const pending = background(store); + status('nodes', 'success'); + await Promise.resolve(); + assert.equal(store.count(), 1, 'nodes success is not runtime metadata'); + await nodes.getState().fetchRuntimeStatus(); + await pending; + assert.equal(store.count(), 0); + assert.equal(requests.length, 1); + assert.match(requests[0], /runtime\/status$/); +}); + +test('supervised metadata before timeout restores the actual queue at its advertised address', async () => { + const health = deferred(); + status('runtime', 'loading'); + const requests = []; + globalThis.fetch = async (url) => { + requests.push(String(url)); + if (String(url).endsWith('/runtime/status')) return health.promise; + return response({ + current: { task_id: 'active-startup', status: 'running', name: 'Live native run' }, + queued: {}, + recent: [], + }); + }; + const runtime = nodes.getState().fetchRuntimeStatus(); + const pending = background(); + health.resolve(response({ ready: true, workerControl: { available: true, address: 'http://127.0.0.1:43001' } })); + await runtime; + await pending; + assert.equal(tasks.getState().currentTask.task_id, 'active-startup'); + assert.equal(requests.filter((x) => x.endsWith('/queue')).length, 1); + assert.equal(requests.at(-1), 'http://127.0.0.1:43001/queue'); +}); + +test('a busy metadata request falls back once after a bounded wait and later standalone metadata stops polling', async () => { + status('nodes', 'loading'); + const store = countedStore(); + const requests = []; + globalThis.fetch = async (url) => { + requests.push(String(url)); + return response({ current: { task_id: 'busy-worker', status: 'running' }, queued: {}, recent: [] }); + }; + await background(store, undefined, 5); + assert.equal(store.count(), 0); + assert.equal(tasks.getState().currentTask.task_id, 'busy-worker'); + assert.equal(requests.length, 1); + assert.match(requests[0], /^http:\/\/(127\.0\.0\.1|localhost):\d+\/queue$/); + control.updateWorkerControl({ available: false, address: null }); + status('runtime', 'success'); + await background(store); + assert.equal(requests.length, 1); +}); + +test('older successful metadata and failed discovery preserve legacy restoration and genuine errors', async () => { + status('runtime', 'loading'); + const pending = background(nodes, undefined, 1000); + globalThis.fetch = async () => { + throw new TypeError('Actual control connection refused.'); + }; + status('runtime', 'success'); + await pending; + assert.match(tasks.getState().supervisorControlError, /Actual control connection refused/); + control.resetSupervisorControl(); + status('runtime', 'error'); + await background(); + assert.match(tasks.getState().supervisorControlError, /Actual control connection refused/); +}); + +test('known control is immediate even when discovery is busy', async () => { + status('nodes', 'loading'); + control.updateWorkerControl({ available: true, address: 'http://127.0.0.1:43001' }); + const store = countedStore(); + globalThis.fetch = async (url) => { + assert.equal(String(url), 'http://127.0.0.1:43001/queue'); + return response({ current: null, queued: {}, recent: [] }); + }; + await background(store); + assert.equal(store.count(), 0); +}); + +test('cancelled periodic wait unsubscribes, clears its timer and never requests the queue', async () => { + status('nodes', 'loading'); + const store = countedStore(); + const abort = new AbortController(); + let requests = 0; + globalThis.fetch = async () => { + requests++; + throw new Error('Cancelled polling must not fetch.'); + }; + const pending = background(store, abort.signal, 5); + assert.equal(store.count(), 1); + abort.abort(); + await pending; + assert.equal(store.count(), 0); + await new Promise((resolve) => setTimeout(resolve, 10)); + assert.equal(requests, 0); + assert.equal(await control.waitForSupervisorMetadata(store, abort.signal), false); +}); + +test('metadata arriving between initial check and subscription cannot be lost', async () => { + status('runtime', 'loading'); + let subscriptions = 0; + const store = { + getState: nodes.getState, + subscribe(listener) { + subscriptions++; + control.updateWorkerControl({ available: false, address: null }); + status('runtime', 'success'); + const unsubscribe = nodes.subscribe(listener); + return () => { + subscriptions--; + unsubscribe(); + }; + }, + }; + assert.equal(await control.waitForSupervisorMetadata(store), true); + assert.equal(subscriptions, 0); +}); + +test('App uses the same bounded metadata wait for restoration and cancellable initial periodic polling', async () => { + const { readFile } = await import('node:fs/promises'); + const source = await readFile(path.join(ROOT, 'src/App.tsx'), 'utf8'); + assert.match(source, /await waitForSupervisorMetadata\(useNodesStore\)/); + assert.match(source, /await waitForSupervisorMetadata\(useNodesStore, abort\.signal\)/); + assert.match(source, /abort\.abort\(\)/); + assert.match(source, /SUPERVISOR_STARTUP_TIMEOUT_MS = 5_000/); +}); + +test('synchronous completion during registration removes the newly registered subscription', async () => { + status('runtime', 'loading'); + let subscriptions = 0; + const store = { + getState: nodes.getState, + subscribe(listener) { + subscriptions++; + control.updateWorkerControl({ available: false, address: null }); + listener(); + return () => { + subscriptions--; + }; + }, + }; + assert.equal(await control.waitForSupervisorMetadata(store), true); + assert.equal(subscriptions, 0); +}); diff --git a/scripts/template-gallery-harness.test.mjs b/scripts/template-gallery-harness.test.mjs index 6eb5ba65..88f90503 100644 --- a/scripts/template-gallery-harness.test.mjs +++ b/scripts/template-gallery-harness.test.mjs @@ -459,19 +459,19 @@ test('Qwen gallery candidates use the runtime locked settings and hashes', () => width: 1024, height: 1024, promptSettingsHash: 'ps_c32e6c86', - templateLockHash: 'tpl_6b3c93e2', + templateLockHash: 'tpl_76f378d2', }, qwen_low_vram_product_concept: { width: 1024, height: 768, promptSettingsHash: 'ps_2eeea545', - templateLockHash: 'tpl_b90c42f9', + templateLockHash: 'tpl_b9f47949', }, qwen_low_vram_poster_layout: { width: 768, height: 1024, promptSettingsHash: 'ps_124204d1', - templateLockHash: 'tpl_bc67f109', + templateLockHash: 'tpl_e5832679', }, }; diff --git a/scripts/template-input-preview.test.mjs b/scripts/template-input-preview.test.mjs index 816fa4be..e4eef9a8 100644 --- a/scripts/template-input-preview.test.mjs +++ b/scripts/template-input-preview.test.mjs @@ -5,7 +5,13 @@ import { createServer } from 'vite'; import { PROJECT_ROOT, readStudioTemplateIds, renderRuntimeInputTypescript } from './template-default-inputs.mjs'; -const server = await createServer({ server: { middlewareMode: true, watch: null }, appType: 'custom' }); +const server = await createServer({ + configFile: false, + logLevel: 'silent', + optimizeDeps: { entries: [], noDiscovery: true }, + server: { middlewareMode: true, hmr: false, watch: null }, + appType: 'custom', +}); const { bundledTemplateInputPreviewUrl } = await server.ssrLoadModule('/src/studio/templateInputPreview.ts'); const { resolveTemplateAssetUrl } = await server.ssrLoadModule('/src/studio/templateAssets.ts'); const { templateDefaultInputBindings } = await server.ssrLoadModule( @@ -19,6 +25,11 @@ test.after(async () => { const continuationAudioPath = '/template-gallery/runtime-inputs/assets/3807d712e24a94c4b445c2fa950a784bba334f5f665e74964fe4d47a43856230.wav'; +test('static input-preview imports keep filesystem watching disabled', () => { + assert.equal(server.config.server.watch, null); + assert.deepEqual(server.watcher.getWatched(), {}); +}); + test('resolves an exact template input filename through the configured asset source', () => { assert.equal( bundledTemplateInputPreviewUrl('audio/ace_step_audio_continuation.source_audio.wav'), diff --git a/scripts/template-operation-fixtures.py b/scripts/template-operation-fixtures.py new file mode 100644 index 00000000..64552ca4 --- /dev/null +++ b/scripts/template-operation-fixtures.py @@ -0,0 +1,81 @@ +"""Pure, selected backend schemas for image-template authoring tests; no weights.""" + +import contextlib +import io +import json +import os +import sys +import tempfile +from pathlib import Path +from unittest.mock import patch + +sys.dont_write_bytecode = True +sys.path.insert(0, str(Path(__file__).resolve().parents[2] / "MoDiff")) +selections = json.load(sys.stdin) + +with tempfile.TemporaryDirectory(prefix="modiff-template-schema-") as temporary: + isolated = Path(temporary) + os.environ["MODIFF_MANAGED_ROOT"] = str(isolated / "managed") + os.environ["HF_HUB_OFFLINE"] = "1" + from modiff import secret_config + + # Import the configuration with no operator config/token or directory writes. + with patch("configparser.ConfigParser.read", return_value=[]), patch("os.makedirs"), \ + patch.object(secret_config, "huggingface_token", return_value=(None, None)): + from modiff.config import CONFIG + for key in CONFIG.paths: + if key != "app_root": + CONFIG.paths[key] = str(isolated / key) + Path(CONFIG.paths[key]).mkdir(parents=True, exist_ok=True) + CONFIG.hf["cache_dir"] = str(isolated / "hub") + + from modiff.custom_extensions import ExtensionStore + + with contextlib.redirect_stdout(io.StringIO()), patch.object(ExtensionStore, "load_enabled", return_value=None): + from modules import MODULE_MAP + from modiff.operation_catalog import build_operation_catalog + from modiff.operation_starters import resolve_operation_starter + from modiff.server import WebServer, STUDIO_MODEL_CAPABILITIES + from modiff.studio_execution_specs import studio_execution_spec_for_pair + + assert not any(key.startswith("custom.") for key in MODULE_MAP) + contracts, _ = build_operation_catalog(MODULE_MAP, [], catalog_resolver=lambda: {}) + describer = object.__new__(WebServer) + describer.modules = MODULE_MAP + describer._optimization_runtime_context = lambda: ( + "schema-fixture", {"devices": [], "platform": sys.platform}, + {"detected": "cpu", "status": "ready", "execution_ready": True}, + ) + rows, registry = [], {} + + def describe(key): + module, action = key.rsplit(".", 1) + registry[key] = describer._describe_registered_node(module, action, MODULE_MAP[module][action]) + + with patch("modiff.NodeBase.NodeBase.__init__", side_effect=AssertionError("Constructed executable node")): + public_payload = describer._build_model_capabilities_payload() + public_capabilities = public_payload["capabilities"] + for item in selections: + selection = item["selection"] + starter = resolve_operation_starter(MODULE_MAP, contracts, { + "pipelineClass": selection["pipelineClass"], + "task": selection["task"], + "executionProfileId": selection["executionProfileId"], + }) + starter["nodes"] = [{ + "operation": node["operation"], + "node": describer._describe_registered_node(node["module"], node["action"], node), + } for node in starter["nodes"]] + binding = selection["bindingSpec"] + spec = studio_execution_spec_for_pair(binding["modelType"], binding["mode"]) + if spec is None: + raise ValueError(f"Missing template semantic bindings: {binding}") + for _, key, _, _ in spec["roles"]: + describe(key) + rows.append({"id": item["id"], "starter": starter, "spec": spec, + "capability": STUDIO_MODEL_CAPABILITIES[binding["modelType"]]}) + for key in ("modules.ModularDiffusers.Lora", "modules.DiffusersImage.LoadAdapter", + "modules.Spandrel.Upscaler", "modules.Image.Preview"): + describe(key) + json.dump({"recipes": rows, "registry": registry, "capabilities": public_capabilities, + "publicPayload": public_payload}, sys.stdout) diff --git a/scripts/template-operation-workflows.test.mjs b/scripts/template-operation-workflows.test.mjs new file mode 100644 index 00000000..81136d7a --- /dev/null +++ b/scripts/template-operation-workflows.test.mjs @@ -0,0 +1,1314 @@ +import assert from 'node:assert/strict'; +import { readFile } from 'node:fs/promises'; +import { execFileSync } from 'node:child_process'; +import path from 'node:path'; +import { after, before, test } from 'node:test'; +import { createServer } from 'vite'; + +let server, + templates, + exactness, + builder, + groups, + values, + defaults, + fixture, + flowStore, + nodeStore, + studioStore, + lifecycle; +let publicOperations, starterRequests; +before(async () => { + const storage = new Map(); + globalThis.localStorage = { + getItem: (key) => storage.get(key) ?? null, + setItem: (key, value) => storage.set(key, value), + removeItem: (key) => storage.delete(key), + }; + globalThis.window = { + location: { origin: 'http://127.0.0.1:5191' }, + localStorage: globalThis.localStorage, + dispatchEvent: () => true, + }; + server = await createServer({ + configFile: false, + logLevel: 'silent', + optimizeDeps: { entries: [], noDiscovery: true }, + server: { middlewareMode: true, watch: null }, + appType: 'custom', + }); + ({ STUDIO_TEMPLATES: templates } = await server.ssrLoadModule('/src/studio/templates.ts')); + exactness = await server.ssrLoadModule('/src/studio/templateExactness.ts'); + builder = await server.ssrLoadModule('/src/studio/templateOperationWorkflow.ts'); + groups = await server.ssrLoadModule('/src/workflow/visualOperationGroups.ts'); + values = await server.ssrLoadModule('/src/studio/executionSpecValues.ts'); + ({ DEFAULT_STUDIO_FORM: defaults } = await server.ssrLoadModule('/src/studio/modelProfiles.ts')); + ({ useFlowStore: flowStore } = await server.ssrLoadModule('/src/stores/useFlowStore.ts')); + ({ useNodesStore: nodeStore } = await server.ssrLoadModule('/src/stores/useNodeStore.ts')); + studioStore = await server.ssrLoadModule('/src/stores/useStudioStore.ts'); + lifecycle = await server.ssrLoadModule('/src/studio/templateWorkflow.ts'); + starterRequests = await server.ssrLoadModule('/src/workflow/operationStarterRequest.ts'); + const backend = path.resolve('../MoDiff'); + const python = + process.env.MODIFF_BACKEND_PYTHON || + path.join(backend, '.venv', process.platform === 'win32' ? 'Scripts/python.exe' : 'bin/python'); + const script = path.resolve('scripts/template-operation-fixtures.py'); + fixture = JSON.parse( + execFileSync( + process.platform === 'win32' ? python : path.join(backend, 'scripts/with-runtime-env.sh'), + process.platform === 'win32' ? [script] : [python, script], + { + cwd: backend, + encoding: 'utf8', + maxBuffer: 64 * 1024 * 1024, + input: JSON.stringify( + templates + .filter((item) => item.executionSelection) + .map((item) => ({ id: item.id, selection: item.executionSelection })), + ), + stdio: ['pipe', 'pipe', 'pipe'], + }, + ), + ); +}); +after(async () => server?.close()); + +test('the real public capability and every selected starter response pass production wire parsers', async () => { + const nodes = await server.ssrLoadModule('/src/stores/useNodeStore.ts'); + const operations = await server.ssrLoadModule('/src/workflow/operationContracts.ts'); + const support = await server.ssrLoadModule('/src/workflow/operationCatalog.ts'); + const choices = await server.ssrLoadModule('/src/workflow/workflowChoices.ts'); + const payload = fixture.publicPayload; + const capabilities = nodes.parseStudioModelCapabilities(payload); + publicOperations = operations.parseOperationContracts( + payload.operationContracts, + payload.operationContractSchemaVersion, + ); + const pipelines = support.parsePipelineSupport( + payload.pipelineSupport, + payload.pipelineSupportSchemaVersion, + publicOperations, + ); + choices.parseWorkflowModelDescriptors(payload, pipelines, capabilities.capabilities); + for (const row of fixture.recipes) { + const parsed = starterRequests.parseOperationStarter( + row.starter, + row.starter.pipelineClass, + row.starter.task, + publicOperations, + ); + assert.equal(parsed.nodes.length, row.starter.nodes.length, row.id); + } +}); + +test('all image templates select an exact developer operation recipe without changing creator settings', async () => { + const baseline = JSON.parse(await readFile('tests/fixtures/image-template-creator-contracts.v1.json', 'utf8')); + const images = templates.filter((template) => template.example?.mediaType === 'image'); + assert.equal(images.length, 54); + for (const expected of baseline.templates) { + const template = images.find((item) => item.id === expected.templateId); + assert.ok(template, expected.templateId); + assert.deepEqual( + { + lockedSettings: exactness.getTemplateLockedSettings(template), + inputBindings: template.inputBindings ?? [], + workflowBlocks: template.workflowBlocks ?? [], + workflowBlockSettings: template.workflowBlockSettings ?? {}, + }, + expected.contract, + `${template.id} retains the complete creator contract`, + ); + assert.equal(template.executionSelection?.schemaVersion, 1, `${template.id} selects a reviewed operation recipe`); + assert.ok(template.executionSelection.executionProfileId); + assert.ok(template.executionSelection.pipelineClass); + if (template.executionSelection.implementation === 'native_stages') + assert.deepEqual( + template.executionSelection.componentPolicy ?? null, + expected.originalComponentPolicy, + `${template.id} preserves exactly its original component policy`, + ); + } +}); + +test('execution selection changes invalidate current exactness while preserving the historical example', () => { + const template = templates.find((item) => item.id === 'z_image_quick_concept'); + const historical = { ...template, executionSelection: undefined }; + assert.notEqual(exactness.getTemplateLockHash(template), exactness.getTemplateLockHash(historical)); +}); + +test('only the seven converted Z recipes preserve the observed standard-pipeline CFG formulation', () => { + const converted = new Set([ + 'z_image_quick_concept', + 'z_image_product_mockup', + 'z_image_poster', + 'z_image_lora_style', + 'z_image_cinematic_contact_sheet', + 'low_vram', + 'fast_lora', + ]); + const images = templates.filter((template) => template.example?.mediaType === 'image'); + assert.equal( + images.filter( + (template) => + template.executionSelection.pipelineClass === 'ZImageModularPipeline' && + template.executionSelection.guidancePolicy, + ).length, + 7, + ); + for (const template of images) { + if (!converted.has(template.id)) { + if (!['FluxModularPipeline', 'FluxKontextModularPipeline'].includes(template.executionSelection.pipelineClass)) + assert.equal(template.executionSelection.guidancePolicy, undefined, template.id); + continue; + } + assert.deepEqual(template.executionSelection.guidancePolicy, { enabled: true, useOriginalFormulation: true }); + const previous = { + ...template, + executionSelection: { ...template.executionSelection, guidancePolicy: undefined }, + }; + assert.notEqual(exactness.getTemplateLockHash(template), exactness.getTemplateLockHash(previous)); + const starter = fixture.recipes.find((row) => row.id === template.id).starter; + const guider = starter.nodes.find((node) => node.operation.operationId === 'diffusion.guidance'); + assert.equal(guider.node.params.enabled.value, false, 'ordinary upstream developer starter remains disabled'); + assert.equal(guider.node.params.use_original_formulation.value, false); + } +}); + +test('historical approved image remains visible without becoming proof of the current execution selection', async () => { + const template = templates.find((item) => item.id === 'z_image_quick_concept'); + const manifest = JSON.parse(await readFile('public/template-gallery/manifest.json', 'utf8')); + assert.equal(exactness.findManifestEntry(template, manifest), undefined); + const historical = exactness.findHistoricalTemplateManifestEntry(template, manifest); + assert.ok(historical); + const state = exactness.getTemplateExampleUiState(template, selectedForm(template), null, manifest); + assert.equal(state.status, 'historical'); + assert.equal(state.tone, 'neutral'); + assert.ok(exactness.getTemplateCardMedia(template, manifest).mediaPath); + const changedPrompt = { ...template, prompt: `${template.prompt} different scene` }; + assert.equal(exactness.findHistoricalTemplateManifestEntry(changedPrompt, manifest), undefined); +}); + +function selectedForm(template) { + return { + ...defaults, + ...exactness.getTemplateLockedSettings(template), + referenceImages: ['source.png', 'reference-second.png', 'reference-third.png'], + maskImage: 'mask.png', + controlImage: 'control.png', + }; +} + +test('all seven converted Z recipes bind the authored negative text to the real guided encoder', async (t) => { + const converted = templates.filter( + (template) => template.executionSelection?.pipelineClass === 'ZImageModularPipeline', + ); + assert.equal(converted.length, 7); + for (const template of converted) + await t.test(template.id, () => { + const row = fixture.recipes.find((item) => item.id === template.id); + for (const negativePrompt of [template.negativePrompt ?? '', `exclude duplicate objects for ${template.id}`]) { + const form = { ...selectedForm(template), negativePrompt }; + const graph = builder.createTemplateOperationGraph( + template, + form, + row.starter, + fixture.registry, + row.spec, + row.capability, + ); + const api = flowStore + .getState() + .exportGraph('z-negative-conditioning', undefined, { sourceGraph: graph, randomizeSeeds: false }); + const entries = Object.entries(api.nodes); + const encoders = entries.filter(([, node]) => node.action === 'EncodePrompt'); + assert.equal(encoders.length, 1); + const [encoderId, encoder] = encoders[0]; + assert.equal( + encoder.params.negative_prompt?.value, + negativePrompt, + 'the actual encoder retains original and changed nonempty negative text', + ); + const [guiderId, guider] = entries.find(([, node]) => node.action === 'Guider'); + assert.equal(guider.params.enabled.value, true); + assert.equal(guider.params.use_original_formulation.value, true); + assert.equal(encoder.params.guider.sourceId, guiderId); + const denoiser = entries.find(([, node]) => node.action === 'Denoise')[1]; + assert.equal(denoiser.params.guider.sourceId, guiderId); + assert.equal(denoiser.params.embeddings.sourceId, encoderId); + } + }); +}); + +test('only the two converted single-LoRA Z recipes preserve the original whole-pipeline default adapter identity', async () => { + const preserved = new Set(['z_image_lora_style', 'fast_lora']); + assert.equal(fixture.registry['modules.DiffusersImage.LoadAdapter'].params.adapter_name.default, 'default'); + const images = templates.filter((template) => template.example?.mediaType === 'image'); + assert.equal(images.filter((template) => template.executionSelection.loraPolicy).length, 2); + for (const template of images) { + if (!preserved.has(template.id)) { + assert.equal(template.executionSelection.loraPolicy, undefined, template.id); + continue; + } + assert.deepEqual(template.executionSelection.loraPolicy, { defaultAdapterName: 'default' }); + assert.equal( + template.workflowBlockSettings.lora.adapterName, + undefined, + 'the immutable creator literal stays omitted', + ); + assert.equal(template.workflowBlockSettings.lora.additionalAdapters?.length ?? 0, 0); + const previous = { + ...template, + executionSelection: { ...template.executionSelection, loraPolicy: undefined }, + }; + assert.notEqual(exactness.getTemplateLockHash(template), exactness.getTemplateLockHash(previous)); + assert.deepEqual(template.example, previous.example, 'historical output is retained without a new approval'); + } + for (const template of images.filter((item) => item.workflowBlocks?.includes('lora'))) { + const row = fixture.recipes.find((item) => item.id === template.id); + const graph = builder.createTemplateOperationGraph( + template, + selectedForm(template), + row.starter, + fixture.registry, + row.spec, + row.capability, + ); + const api = flowStore + .getState() + .exportGraph('exact-adapter-names', undefined, { sourceGraph: graph, randomizeSeeds: false }); + const loras = Object.values(api.nodes).filter((node) => node.action === 'Lora' || node.action === 'LoadAdapter'); + const settings = template.workflowBlockSettings.lora; + const adapters = [settings, ...(settings.additionalAdapters ?? [])]; + assert.equal(loras.length, adapters.length, template.id); + adapters.forEach((adapter, index) => { + assert.equal( + loras[index].params.adapter_name.value, + adapter.adapterName ?? (preserved.has(template.id) || loras[index].action === 'LoadAdapter' ? 'default' : ''), + `${template.id} retains its exact authored or original default adapter identity`, + ); + }); + } +}); + +test('a default adapter identity policy fails closed on malformed names, extra adapters and incompatible owners', () => { + const source = templates.find((item) => item.id === 'z_image_lora_style'); + const row = fixture.recipes.find((item) => item.id === source.id); + const build = (template, selected = row) => + builder.createTemplateOperationGraph( + template, + selectedForm(template), + selected.starter, + fixture.registry, + selected.spec, + selected.capability, + ); + for (const defaultAdapterName of ['', ' default', 'default ', 'bad\nname', 'x'.repeat(257), 1]) { + const template = structuredClone(source); + template.executionSelection.loraPolicy = { defaultAdapterName }; + assert.throws(() => build(template), /adapter identity policy/); + } + const extra = structuredClone(source); + extra.executionSelection.loraPolicy = { defaultAdapterName: 'default' }; + extra.workflowBlockSettings.lora.additionalAdapters = [structuredClone(source.workflowBlockSettings.lora)]; + assert.throws(() => build(extra), /adapter identity policy/); + const conflict = structuredClone(source); + conflict.executionSelection.loraPolicy = { defaultAdapterName: 'default' }; + conflict.workflowBlockSettings.lora.adapterName = 'authored-other'; + assert.throws(() => build(conflict), /adapter identity policy/); + for (const templateId of ['z_image_quick_concept', 'qwen_layered_portrait']) { + const template = structuredClone(templates.find((item) => item.id === templateId)); + template.executionSelection.loraPolicy = { defaultAdapterName: 'default' }; + assert.throws( + () => + build( + template, + fixture.recipes.find((item) => item.id === templateId), + ), + /adapter identity policy/, + ); + } + const whole = structuredClone(templates.find((item) => item.id === 'flux_fill_inpaint')); + whole.executionSelection.loraPolicy = { defaultAdapterName: 'default' }; + whole.workflowBlocks = ['lora']; + whole.workflowBlockSettings = { lora: structuredClone(source.workflowBlockSettings.lora) }; + assert.throws( + () => + build( + whole, + fixture.recipes.find((item) => item.id === whole.id), + ), + /adapter identity policy/, + ); +}); + +// These are the original whole-pipeline wrapper's separate embedded guidance +// defaults, independently observed in frozen standard-pipeline API recipes. +function preservedEmbeddedGuidance(template) { + return { FluxSchnellPipeline: 0, FluxDevPipeline: 3.5, FluxKreaPipeline: 3.5, FluxKontextPipeline: 3.5 }[ + template.modelType + ]; +} + +test('the thirteen converted Flux recipes preserve true CFG separately from original embedded guidance', () => { + const images = templates.filter((template) => template.example?.mediaType === 'image'); + const converted = images.filter((template) => preservedEmbeddedGuidance(template) !== undefined); + assert.equal(converted.length, 13); + assert.equal(images.filter((template) => template.executionSelection.guidancePolicy).length, 20); + for (const template of converted) { + const policy = template.executionSelection.guidancePolicy; + assert.deepEqual(policy, { + enabled: template.id !== 'flux_schnell_text_to_image', + useOriginalFormulation: false, + distilledGuidanceScale: preservedEmbeddedGuidance(template), + }); + const row = fixture.recipes.find((item) => item.id === template.id); + const ordinary = row.starter.nodes.find((item) => item.operation.operationId === 'diffusion.guidance'); + assert.ok(ordinary, 'the actual selected backend starter declares a CFG owner'); + assert.equal( + ordinary.node.params.enabled.value, + false, + 'ordinary upstream developer authoring retains its conditional-only default', + ); + assert.equal(ordinary.node.params.guidance_scale.value, 1.0); + const graph = builder.createTemplateOperationGraph( + template, + selectedForm(template), + row.starter, + fixture.registry, + row.spec, + row.capability, + ); + const api = flowStore + .getState() + .exportGraph('separate-flux-guidance', undefined, { sourceGraph: graph, randomizeSeeds: false }); + const guide = Object.values(api.nodes).find((node) => node.action === 'Guider'); + const denoise = Object.values(api.nodes).find((node) => node.action === 'Denoise'); + assert.equal( + guide.params.guidance_scale.value, + exactness.getTemplateLockedSettings(template).guidanceScale, + 'actual CFG retains the creator scalar', + ); + assert.equal( + denoise.params.guidance_scale.value, + preservedEmbeddedGuidance(template), + 'actual model forward retains the separate original embedded scalar', + ); + for (const action of ['EncodePrompt', 'Denoise']) { + const consumer = Object.values(api.nodes).find((node) => node.action === action); + assert.equal(api.nodes[consumer.params.guider.sourceId], guide, 'the real same CFG owner feeds both stages'); + } + } +}); + +test('native Schnell exports the creator 512-token recipe rather than the ordinary starter default', () => { + const template = templates.find((item) => item.id === 'flux_schnell_text_to_image'); + const row = fixture.recipes.find((item) => item.id === template.id); + const form = selectedForm(template); + assert.equal(form.maxSequenceLength, 512); + const starterPrompt = row.starter.nodes.find((item) => item.node.action === 'EncodePrompt'); + assert.equal(starterPrompt.node.params.max_sequence_length.value, 256); + const graph = builder.createTemplateOperationGraph( + template, + form, + row.starter, + fixture.registry, + row.spec, + row.capability, + ); + const api = flowStore + .getState() + .exportGraph('schnell-recipe', undefined, { sourceGraph: graph, randomizeSeeds: false }); + const prompt = Object.values(api.nodes).find((node) => node.action === 'EncodePrompt'); + assert.equal(prompt.params.max_sequence_length.value, 512); + assert.equal(prompt.params.prompt.value, template.prompt); + const denoise = Object.values(api.nodes).find((node) => node.action === 'Denoise'); + assert.equal(denoise.params.num_inference_steps.value, 4); + assert.equal(denoise.params.guidance_scale.value, 0); + assert.equal(denoise.params.seed.value, 8427); + const owner = Object.values(api.nodes).find((node) => node.action === 'ModelsLoader'); + assert.equal(owner.params.repo_id.value.value, 'black-forest-labs/FLUX.1-schnell'); + assert.equal(owner.params.revision.value, '741f7c3ce8b383c54771c7003378a50191e9efe9'); +}); + +test('Strength is offered only when the selected image task has a reviewed execution binding', async (t) => { + const { parseStudioModelCapabilities } = await server.ssrLoadModule('/src/stores/useNodeStore.ts'); + const { studioSupportsStrength } = await server.ssrLoadModule('/src/studio/effectiveControls.ts'); + const { capabilities } = parseStudioModelCapabilities(fixture.publicPayload); + const expected = { + qwen_tile_extract: false, + qwen_character_angles: false, + qwen_edit_strength_sweep: false, + character_edit: false, + reference_fusion: false, + qwen_layered_portrait: false, + flux2_klein_edit: false, + flux2_klein_multi_reference: false, + flux_kontext_edit: false, + flux_redux_edit: false, + qwen_inpaint_object_replace: true, + qwen_inpaint_mask_draft: true, + flux_fill_inpaint: true, + flux_fill_outpaint: true, + }; + for (const [id, supported] of Object.entries(expected)) { + await t.test(id, () => { + const template = templates.find((item) => item.id === id); + assert.ok(template, id); + const capability = capabilities.find((item) => item.modelType === template.modelType); + assert.ok(capability, template.modelType); + assert.equal(studioSupportsStrength(template, capabilities, template), supported); + assert.equal( + studioSupportsStrength(template, [], template), + false, + 'missing reviewed execution metadata must not advertise a functional control', + ); + }); + } + for (const modelType of ['FluxReduxPipeline', 'FluxKontextPipeline', 'Flux2KleinPipeline']) { + for (const mode of ['edit_image', 'multi_image_reference_edit']) { + await t.test(`${modelType}/${mode} legacy selection`, () => { + assert.equal(studioSupportsStrength({ modelType, mode }, capabilities), false); + }); + } + } + const oldId = templates.find((item) => item.id === 'qwen_edit_strength_sweep'); + assert.match(oldId.description, /single-image reference edit/i); + assert.doesNotMatch(oldId.label, /strength|sweep/i); +}); + +test('unsupported Strength does not appear in parameter notes or executable variations', async () => { + const { createElement } = await import('react'); + const { renderToStaticMarkup } = await import('react-dom/server'); + const { StudioVariationPlanner } = await server.ssrLoadModule('/src/components/StudioVariationPlanner.tsx'); + const { StudioParameterExplainers } = await server.ssrLoadModule('/src/components/StudioParameterExplainers.tsx'); + const form = { ...defaults, mode: 'edit_image' }; + for (const supported of [false, true]) { + const planner = renderToStaticMarkup( + createElement(StudioVariationPlanner, { + form, + supportsStrength: supported, + onChange() {}, + onRunSweep() {}, + }), + ); + const notes = renderToStaticMarkup( + createElement(StudioParameterExplainers, { + form, + supportsStrength: supported, + }), + ); + assert.equal(planner.includes('Lower strength'), supported); + assert.equal(planner.includes('Higher strength'), supported); + assert.equal(notes.includes('Strength:'), supported); + assert.ok(planner.includes('Next seed'), 'other actual variations remain available'); + } +}); + +test('all54 image recipes construct and export the exact backend developer stages with every declared creator binding', async (t) => { + assert.equal(fixture.recipes.length, 54); + assert.equal( + fixture.recipes.filter( + (row) => templates.find((item) => item.id === row.id).executionSelection.implementation === 'native_stages', + ).length, + 44, + ); + for (const row of fixture.recipes) + await t.test(row.id, () => { + const template = templates.find((item) => item.id === row.id); + const form = selectedForm(template); + const before = structuredClone(row.starter); + const graph = builder.createTemplateOperationGraph( + template, + form, + starterRequests.parseOperationStarter( + row.starter, + row.starter.pipelineClass, + row.starter.task, + publicOperations, + ), + fixture.registry, + row.spec, + row.capability, + ); + assert.deepEqual(row.starter, before, 'construction never changes the resolved backend contract'); + const flat = groups.unpackVisualOperationGroups(graph).graph; + const operations = flat.nodes.filter((node) => node.data.operationAuthoring); + assert.equal(operations.length, row.starter.nodes.length); + assert.deepEqual( + operations.map((node) => node.data.operationAuthoring.operation.operationId).sort(), + row.starter.nodes.map((node) => node.operation.operationId).sort(), + ); + assert.ok( + flat.nodes.every((node) => !node.data.studioOwned), + 'ordinary graph has no stale managed owner', + ); + const owner = operations.find((node) => node.data.operationAuthoring.operation.nodeType === 'loader'); + assert.ok(owner); + const backendOwner = row.starter.nodes.find((node) => node.operation.nodeType === 'loader').node; + for (const field of ['model_id', 'repo_id', 'revision', 'pipeline_class', 'model_type', 'execution_profile_id']) { + if (backendOwner.params[field]) + assert.deepEqual( + owner.data.params[field].value ?? owner.data.params[field].default, + backendOwner.params[field].value ?? backendOwner.params[field].default, + `${field} retains the selected artifact identity`, + ); + } + const revision = owner.data.params.revision?.value ?? owner.data.params.revision?.default; + const expected = values.resolveStudioExecutionSpecValues(form, row.spec, row.capability, { + defaultModelRevision: revision, + }); + const claimed = new Set(); + for (const [role, key] of row.spec.roles) { + const node = flat.nodes.find( + (item) => `${item.data.module}.${item.data.action}` === key && !claimed.has(item.id), + ); + assert.ok(node, role); + claimed.add(node.id); + for (const [boundRole, field, source] of row.spec.bindings) + if (boundRole === role) { + if ( + node.id === owner.id && + ['artifact', 'defaultRevision', 'pipelineClass', 'executionProfileId', 'modelVariant'].includes(source) + ) + continue; + const value = + field === 'guidance_scale' && + node.data.action === 'Denoise' && + preservedEmbeddedGuidance(template) !== undefined + ? preservedEmbeddedGuidance(template) + : node.data.params[field].type === 'model' && typeof expected[source] === 'string' + ? { source: 'hub', value: expected[source] } + : expected[source]; + assert.deepEqual(node.data.params[field].value, value, `${role}.${field} retains ${source}`); + } + } + assert.equal( + new Set(flat.edges.map((edge) => `${edge.target}:${edge.targetHandle}`)).size, + flat.edges.length, + 'each port has one supplier', + ); + const api = flowStore + .getState() + .exportGraph('test-template', undefined, { sourceGraph: graph, randomizeSeeds: false }); + assert.equal( + Object.values(api.nodes).filter((node) => node.module === 'modules.ModularDiffusers').length, + flat.nodes.filter((node) => node.data.module === 'modules.ModularDiffusers').length, + 'Encode Inputs lowers the same actual stages', + ); + const seedConsumers = Object.values(api.nodes).filter((node) => 'seed' in node.params); + assert.ok(seedConsumers.length); + assert.ok( + seedConsumers.every((node) => node.params.seed.value === form.seed), + 'every generator initialization retains the locked seed', + ); + if (template.executionSelection.implementation === 'native_stages') { + assert.ok( + graph.nodes.some((node) => groups.visualOperationGroup(node) === 'inputs'), + 'real encoders are grouped as Encode Inputs', + ); + assert.ok( + !flat.nodes.some((node) => node.data.action === 'DiffusersExecutionRecipe'), + 'native fields are inline rather than inherited unknown utility owners', + ); + } + const guider = operations.find( + (node) => node.data.operationAuthoring.operation.operationId === 'diffusion.guidance', + ); + assert.equal( + graph.nodes.some((node) => groups.visualOperationGroup(node) === 'guidance'), + Boolean(guider), + 'Guidance contains the actual backend-declared guidance owner only', + ); + if (guider) { + assert.equal(guider.data.params.guider.value, 'ClassifierFreeGuidance'); + assert.equal(guider.data.params.guidance_scale.value, form.guidanceScale); + const original = row.starter.nodes.find((node) => node.operation.operationId === 'diffusion.guidance').node + .params; + const policy = template.executionSelection.guidancePolicy; + assert.equal(guider.data.params.enabled.value, policy?.enabled ?? original.enabled.value); + const exportedGuider = Object.values(api.nodes).find((node) => node.action === 'Guider'); + assert.ok(exportedGuider, 'the actual guidance owner is exported for execution'); + assert.equal(exportedGuider.params.enabled.value, policy?.enabled ?? original.enabled.value); + assert.equal( + exportedGuider.params.use_original_formulation.value, + policy?.useOriginalFormulation ?? original.use_original_formulation.value, + ); + for (const [field, value] of Object.entries({ + guidance_rescale: 0, + use_original_formulation: policy?.useOriginalFormulation ?? original.use_original_formulation.value, + start: 0, + stop: 1, + })) + assert.equal(guider.data.params[field].value, value, `preserved upstream ${field}`); + const targets = flat.edges.filter((edge) => edge.source === guider.id && edge.sourceHandle === 'guider_out'); + assert.deepEqual(targets.map((edge) => flat.nodes.find((node) => node.id === edge.target).data.action).sort(), [ + 'Denoise', + 'EncodePrompt', + ]); + } + const policy = template.executionSelection.componentPolicy; + if (policy) { + assert.equal(owner.data.params.attention_backend.value, policy.attentionBackend); + assert.equal(owner.data.params.vae_slicing.value, policy.vaeSlicing); + assert.equal(owner.data.params.vae_tiling.value, policy.vaeTiling); + } else if (owner.data.action === 'ModelsLoader') { + assert.equal( + owner.data.params.attention_backend.value ?? owner.data.params.attention_backend.default, + 'inherit', + ); + assert.equal(owner.data.params.vae_slicing.value ?? owner.data.params.vae_slicing.default, null); + assert.equal(owner.data.params.vae_tiling.value ?? owner.data.params.vae_tiling.default, null); + } + const loras = flat.nodes.filter((node) => node.data.action === 'Lora' || node.data.action === 'LoadAdapter'); + const settings = template.workflowBlockSettings?.lora; + const adapters = settings ? [settings, ...(settings.additionalAdapters ?? [])] : []; + assert.equal(loras.length, adapters.length); + adapters.forEach((adapter, index) => { + const node = loras[index]; + const params = node.data.params; + assert.deepEqual((params.model ?? params.adapter_path).value, { + source: adapter.model.source, + value: adapter.model.value, + }); + assert.equal(params.revision.value, adapter.model.revision); + assert.equal(params.expected_sha256.value, adapter.model.sha256); + assert.equal(params.scale.value, adapter.scale); + if (adapter.adapterName) assert.equal(params.adapter_name.value, adapter.adapterName); + if (adapter.weightName) assert.equal(params.weight_name.value, adapter.weightName); + if (index && node.data.action === 'Lora') + assert.ok( + flat.edges.some( + (edge) => + edge.source === loras[index - 1].id && + edge.target === node.id && + edge.targetHandle === 'previous_loras', + ), + ); + if (index === 0 && adapter.schedulerClass) assert.equal(params.scheduler_class.value, adapter.schedulerClass); + if (index === 0 && adapter.schedulerConfig) + assert.deepEqual(JSON.parse(params.scheduler_config.value), adapter.schedulerConfig); + }); + const upscaler = flat.nodes.find((node) => node.data.module === 'modules.Spandrel'); + if (template.workflowBlocks?.includes('upscaler')) { + assert.ok(upscaler); + assert.deepEqual(upscaler.data.params.model_id.value, template.workflowBlockSettings.upscaler.model); + assert.equal(upscaler.data.params.downscale.value, template.workflowBlockSettings.upscaler.downscale); + assert.equal( + flat.nodes.filter((node) => node.data.action === 'Preview').length, + 2, + 'retains original and upscaled image outputs', + ); + } else assert.equal(upscaler, undefined); + }); +}); + +test('all54 exported image consumers independently retain the preserved creator recipe', async (t) => { + const fields = { + prompt: 'prompt', + negative_prompt: 'negativePrompt', + max_sequence_length: 'maxSequenceLength', + num_inference_steps: 'steps', + guidance_scale: 'guidanceScale', + width: 'width', + height: 'height', + batch_size: 'batchSize', + seed: 'seed', + dtype: 'dtype', + offload_mode: 'offloadMode', + }; + const consumers = new Set([ + 'EncodePrompt', + 'ImageEncode', + 'Denoise', + 'Generate', + 'Edit', + 'Inpaint', + 'ControlGenerate', + 'LoadPipeline', + 'ModelsLoader', + 'AutoModelLoader', + ]); + for (const row of fixture.recipes) + await t.test(row.id, () => { + const template = templates.find((item) => item.id === row.id); + const form = selectedForm(template); + const graph = builder.createTemplateOperationGraph( + template, + form, + row.starter, + fixture.registry, + row.spec, + row.capability, + ); + const api = flowStore + .getState() + .exportGraph('independent-creator-recipe', undefined, { sourceGraph: graph, randomizeSeeds: false }); + let checked = 0; + for (const node of Object.values(api.nodes)) { + if (!consumers.has(node.action)) continue; + for (const [field, formField] of Object.entries(fields)) { + const param = node.params[field]; + if (!param || param.display === 'output') continue; + if (param.sourceId) { + assert.ok( + ['width', 'height'].includes(field) && template.mode === 'outpaint', + `${node.action}.${field} cannot replace the creator recipe with an unexpected supplier`, + ); + assert.equal(api.nodes[param.sourceId].action, 'OutpaintCanvas'); + assert.equal(param.sourceKey, field, 'outpaint generation uses the actual computed canvas geometry'); + continue; + } + const expected = + field === 'guidance_scale' && node.action === 'Denoise' && preservedEmbeddedGuidance(template) !== undefined + ? preservedEmbeddedGuidance(template) + : form[formField]; + assert.equal(param.value, expected, `${node.action}.${field} consumes the preserved creator ${formField}`); + checked++; + } + } + assert.ok(checked >= 8, 'checks actual consumer fields independently of execution spec declarations'); + }); +}); + +test('changed profile, missing LoRA descriptor schema and conflicting suppliers fail without mutating an existing graph', () => { + const row = fixture.recipes.find((item) => item.id === 'flux_lora_cinematic_octane_3d'); + const template = templates.find((item) => item.id === row.id); + const starter = structuredClone(row.starter); + starter.pipelineClass = 'Flux2KleinModularPipeline'; + assert.throws( + () => + builder.createTemplateOperationGraph( + template, + selectedForm(template), + starter, + fixture.registry, + row.spec, + row.capability, + ), + /does not match its backend execution contract/, + ); + const registry = structuredClone(fixture.registry); + delete registry['modules.ModularDiffusers.Lora'].params.previous_loras; + assert.throws( + () => + builder.createTemplateOperationGraph( + template, + selectedForm(template), + row.starter, + registry, + row.spec, + row.capability, + ), + /incompatible/, + ); +}); + +function prepareLifecycleFixture(templateId) { + const row = fixture.recipes.find((item) => item.id === templateId); + const template = templates.find((item) => item.id === templateId); + const studio = studioStore.useStudioStore; + studio.setState({ workflowCanvasHydrated: true }); + const tabId = studio.getState().createWorkflowTab(template.label, undefined, 'template', template.id); + studio.getState().applyTemplate(template); + nodeStore.setState({ + nodesRegistry: fixture.registry, + operationContracts: row.starter.nodes.map((item) => item.operation), + studioModelCapabilities: [ + { + ...row.capability, + studioExecutionSpecSchemaVersion: 1, + studioExecutionSpecModes: [row.spec.mode], + studioExecutionSpecs: [row.spec], + }, + ], + studioExecutionSpecInvalid: false, + }); + return { row, template, tabId, studio, context: studioStore.captureWorkflowOperationContext() }; +} + +test('both Z default adapter identities survive ordinary template creation and workflow import', async (t) => { + if (!publicOperations) { + const operations = await server.ssrLoadModule('/src/workflow/operationContracts.ts'); + publicOperations = operations.parseOperationContracts( + fixture.publicPayload.operationContracts, + fixture.publicPayload.operationContractSchemaVersion, + ); + } + for (const templateId of ['z_image_lora_style', 'fast_lora']) + await t.test(templateId, async () => { + const previous = [flowStore.getState(), nodeStore.getState(), studioStore.useStudioStore.getState()]; + const originalFetch = globalThis.fetch; + try { + const { row, template, studio } = prepareLifecycleFixture(templateId); + const nodeModule = await server.ssrLoadModule('/src/stores/useNodeStore.ts'); + nodeStore.setState({ nodesRegistry: nodeModule.parseNodesResponse({ nodes: fixture.registry }).nodes }); + const form = structuredClone(studio.getState().form); + globalThis.fetch = async () => Response.json(row.starter); + await lifecycle.createImageTemplateOperationWorkflow( + template, + form, + studioStore.captureWorkflowOperationContext(), + ); + assert.equal(studio.getState().graphBinding, null); + const beforeImport = flowStore + .getState() + .exportGraph('z-default-adapter', undefined, { randomizeSeeds: false }); + const loras = Object.values(beforeImport.nodes).filter((node) => node.action === 'Lora'); + assert.equal(loras.length, 1); + assert.equal(loras[0].params.adapter_name.value, 'default'); + const owner = Object.values(beforeImport.nodes).find((node) => node.action === 'ModelsLoader'); + assert.equal(owner.params.lora_list.sourceKey, 'lora'); + const graph = flowStore.getState().toObject(); + const packageModule = await server.ssrLoadModule('/src/studio/workflowPackage.ts'); + const parsed = packageModule.parseWorkflowPackage({ + metadata: { studio: form }, + graph, + restore: { formSnapshot: form, graphSnapshot: graph, graphBindingSnapshot: null }, + }); + assert.ok(parsed); + studio.getState().createWorkflowTab('Imported Z adapter recipe', parsed.snapshot, 'import', 'private'); + assert.equal(studio.getState().graphBinding, null); + assert.equal(studio.getState().graphFinalization, null); + assert.deepEqual( + flowStore.getState().exportGraph('z-default-adapter', undefined, { randomizeSeeds: false }), + beforeImport, + 'normal import retains the complete API packet, identity and model-owner wire', + ); + } finally { + globalThis.fetch = originalFetch; + flowStore.setState(previous[0]); + nodeStore.setState(previous[1]); + studioStore.useStudioStore.setState(previous[2]); + } + }); +}); + +test('both Qwen ControlNet templates retain the exact creator API packet through ordinary creation and import', async (t) => { + if (!publicOperations) { + const operations = await server.ssrLoadModule('/src/workflow/operationContracts.ts'); + publicOperations = operations.parseOperationContracts( + fixture.publicPayload.operationContracts, + fixture.publicPayload.operationContractSchemaVersion, + ); + } + for (const templateId of ['qwen_control_image_layout', 'qwen_packaging_dieline']) + await t.test(templateId, async () => { + const previous = [flowStore.getState(), nodeStore.getState(), studioStore.useStudioStore.getState()]; + const originalFetch = globalThis.fetch; + try { + const { row, template, studio } = prepareLifecycleFixture(templateId); + const nodeModule = await server.ssrLoadModule('/src/stores/useNodeStore.ts'); + const parsedRegistry = nodeModule.parseNodesResponse({ nodes: fixture.registry }); + nodeStore.setState({ nodesRegistry: parsedRegistry.nodes }); + assert.deepEqual( + parsedRegistry.nodes['modules.ModularDiffusers.AutoModelLoader'].params.model.connectionRoleSelector, + { field: 'model_type', values: { controlnet: 'controlnet_component' } }, + ); + studio.getState().updateForm({ controlImage: 'byte-verified-control.png', resourceMode: 'expert' }); + const form = structuredClone(studio.getState().form); + const context = studioStore.captureWorkflowOperationContext(); + const expectedGraph = builder.createTemplateOperationGraph( + template, + form, + starterRequests.parseOperationStarter( + row.starter, + row.starter.pipelineClass, + row.starter.task, + publicOperations, + ), + fixture.registry, + row.spec, + row.capability, + ); + const flatExpected = groups.unpackVisualOperationGroups(expectedGraph).graph; + const expected = flowStore + .getState() + .exportGraph('control-recipe', undefined, { sourceGraph: expectedGraph, randomizeSeeds: false }); + globalThis.fetch = async () => Response.json(row.starter); + await lifecycle.createImageTemplateOperationWorkflow(template, form, context); + assert.equal(studio.getState().graphBinding, null); + const committed = groups.unpackVisualOperationGroups(flowStore.getState().toObject()).graph; + const standalone = committed.nodes.find((node) => node.data.action === 'AutoModelLoader'); + const preparation = committed.nodes.find((node) => node.data.action === 'Controlnet'); + assert.ok(standalone && preparation); + assert.ok( + committed.edges.some( + (edge) => + edge.source === standalone.id && + edge.sourceHandle === 'model' && + edge.target === preparation.id && + edge.targetHandle === 'controlnet', + ), + 'ordinary creation must retain the required ControlNet component wire', + ); + function canonicalApi(api, graph) { + const names = new Map(graph.nodes.map((node) => [node.id, `${node.data.module}.${node.data.action}`])); + return Object.fromEntries( + Object.entries(api.nodes).map(([id, node]) => [ + names.get(id), + { + ...node, + params: Object.fromEntries( + Object.entries(node.params).map(([key, param]) => [ + key, + { ...param, ...(param.sourceId ? { sourceId: names.get(param.sourceId) } : {}) }, + ]), + ), + }, + ]), + ); + } + assert.deepEqual( + canonicalApi( + flowStore.getState().exportGraph('control-recipe', undefined, { randomizeSeeds: false }), + committed, + ), + canonicalApi(expected, flatExpected), + 'ordinary transaction must retain every original setting and typed supplier', + ); + const graph = flowStore.getState().toObject(); + const packageModule = await server.ssrLoadModule('/src/studio/workflowPackage.ts'); + const parsed = packageModule.parseWorkflowPackage({ + metadata: { studio: form }, + graph, + restore: { formSnapshot: form, graphSnapshot: graph, graphBindingSnapshot: null }, + }); + assert.ok(parsed); + const beforeImport = flowStore.getState().exportGraph('control-recipe', undefined, { randomizeSeeds: false }); + studio.getState().createWorkflowTab('Imported ControlNet recipe', parsed.snapshot, 'import', 'private'); + assert.equal(studio.getState().graphBinding, null); + assert.equal(studio.getState().graphFinalization, null); + assert.deepEqual( + flowStore.getState().exportGraph('control-recipe', undefined, { randomizeSeeds: false }), + beforeImport, + 'normal import must preserve every API field and source wire', + ); + const wrongKind = groups.unpackVisualOperationGroups(flowStore.getState().toObject()).graph; + wrongKind.nodes.find((node) => node.data.action === 'AutoModelLoader').data.params.model_type.value = 'vae'; + flowStore.getState().replaceGraph(wrongKind); + assert.equal( + flowStore + .getState() + .edges.some( + (edge) => + edge.source === standalone.id && edge.target === preparation.id && edge.targetHandle === 'controlnet', + ), + false, + 'real reconciliation rejects a different standalone component kind', + ); + } finally { + globalThis.fetch = originalFetch; + flowStore.setState(previous[0]); + nodeStore.setState(previous[1]); + studioStore.useStudioStore.setState(previous[2]); + } + }); +}); + +test('fresh developer template commits once, preserves creator provenance, and restores the same ordinary graph after save/undo/redo', async () => { + const previous = [flowStore.getState(), nodeStore.getState(), studioStore.useStudioStore.getState()]; + const originalFetch = globalThis.fetch; + try { + const { row, template, tabId, studio, context } = prepareLifecycleFixture('z_image_quick_concept'); + globalThis.fetch = async (_url, options) => { + assert.deepEqual(JSON.parse(options.body), { + pipelineClass: template.executionSelection.pipelineClass, + task: template.executionSelection.task, + executionProfileId: template.executionSelection.executionProfileId, + }); + return Response.json(row.starter); + }; + await lifecycle.createImageTemplateOperationWorkflow(template, studio.getState().form, context); + assert.equal(studio.getState().graphBinding, null); + assert.equal(studio.getState().graphFinalization, null); + assert.equal(studio.getState().activeTemplateId, template.id); + const graph = flowStore.getState().toObject(); + assert.ok(graph.nodes.length); + const saved = studio.getState().workflowTabs.find((tab) => tab.id === tabId); + assert.equal(saved.source, 'template'); + assert.equal(saved.snapshot.activeTemplateId, template.id); + assert.equal(saved.snapshot.studioGraphBinding, null); + flowStore.getState().undo(); + assert.equal(flowStore.getState().nodes.length, 0); + flowStore.getState().redo(); + assert.deepEqual(flowStore.getState().toObject(), graph); + studio.getState().createWorkflowTab('Other document'); + studio.getState().switchWorkflowTab(tabId); + studio.getState().hydrateActiveWorkflowCanvas(); + assert.equal(studio.getState().graphBinding, null); + assert.equal(studio.getState().activeTemplateId, template.id); + assert.equal(flowStore.getState().nodes.length, graph.nodes.length); + assert.deepEqual( + flowStore.getState().exportGraph('test-template', undefined, { randomizeSeeds: false }), + flowStore.getState().exportGraph('test-template', undefined, { sourceGraph: graph, randomizeSeeds: false }), + ); + } finally { + globalThis.fetch = originalFetch; + flowStore.setState(previous[0]); + nodeStore.setState(previous[1]); + studioStore.useStudioStore.setState(previous[2]); + } +}); + +test('a delayed template starter cannot overwrite a switched document or edited form', async (t) => { + for (const edit of ['document', 'form']) + await t.test(edit, async () => { + const previous = [flowStore.getState(), nodeStore.getState(), studioStore.useStudioStore.getState()]; + const originalFetch = globalThis.fetch; + let finish; + let requestEntered; + const requestStarted = new Promise((resolve) => (requestEntered = resolve)); + try { + const { row, template, studio, context } = prepareLifecycleFixture('z_image_quick_concept'); + globalThis.fetch = async () => + await new Promise((resolve) => { + finish = () => resolve(Response.json(row.starter)); + requestEntered(); + }); + const pending = lifecycle.createImageTemplateOperationWorkflow(template, studio.getState().form, context); + await requestStarted; + if (edit === 'document') studio.getState().createWorkflowTab('Newer document'); + else studio.getState().updateForm({ prompt: 'An explicit newer prompt' }); + finish(); + await assert.rejects(pending, (error) => studioStore.isWorkflowOperationCancelled(error)); + assert.equal(flowStore.getState().nodes.length, 0); + if (edit === 'form') assert.equal(studio.getState().form.prompt, 'An explicit newer prompt'); + } finally { + globalThis.fetch = originalFetch; + flowStore.setState(previous[0]); + nodeStore.setState(previous[1]); + studioStore.useStudioStore.setState(previous[2]); + } + }); +}); + +test('template creation waits for the latest already-loading runtime without fetching or changing its owned form', async () => { + const previous = [nodeStore.getState(), studioStore.useStudioStore.getState()]; + try { + const { studio, context } = prepareLifecycleFixture('z_image_quick_concept'); + const originalForm = structuredClone(studio.getState().form); + let runtimeFetches = 0; + nodeStore.setState({ + runtimeStatus: null, + fetchRuntimeStatus: async () => { + runtimeFetches++; + }, + discoveryRequests: { + ...nodeStore.getState().discoveryRequests, + runtime: { status: 'loading', requestId: 100, error: null }, + }, + }); + let completed = false; + const pending = lifecycle.waitForTemplateRuntimeDiscovery(context).then(() => { + completed = true; + }); + await Promise.resolve(); + assert.equal(completed, false); + nodeStore.setState({ + discoveryRequests: { + ...nodeStore.getState().discoveryRequests, + runtime: { status: 'loading', requestId: 101, error: null }, + }, + }); + await Promise.resolve(); + assert.equal(completed, false, 'a replacement request is still pending'); + nodeStore.setState({ + runtimeStatus: { packages: { torch: { cuda_available: false } } }, + discoveryRequests: { + ...nodeStore.getState().discoveryRequests, + runtime: { status: 'success', requestId: 101, error: null }, + }, + }); + await pending; + assert.equal(runtimeFetches, 0); + assert.deepEqual(studio.getState().form, originalForm); + studioStore.assertWorkflowOperationContext(context); + } finally { + nodeStore.setState(previous[0]); + studioStore.useStudioStore.setState(previous[1]); + } +}); + +test('runtime waiting cancels promptly on document, canvas or explicit form edits and does not adopt the newer context', async (t) => { + for (const edit of ['document', 'canvas', 'form']) + await t.test(edit, async () => { + const previous = [nodeStore.getState(), studioStore.useStudioStore.getState()]; + try { + const { studio, context } = prepareLifecycleFixture('z_image_quick_concept'); + nodeStore.setState({ + discoveryRequests: { + ...nodeStore.getState().discoveryRequests, + runtime: { status: 'loading', requestId: 110, error: null }, + }, + }); + const pending = lifecycle.waitForTemplateRuntimeDiscovery(context); + const cancelled = assert.rejects(pending, (error) => studioStore.isWorkflowOperationCancelled(error)); + if (edit === 'document') studio.getState().createWorkflowTab('An explicitly newer document'); + else if (edit === 'canvas') studio.setState({ workflowCanvasEpoch: studio.getState().workflowCanvasEpoch + 1 }); + else studio.getState().updateForm({ prompt: 'An explicitly newer prompt' }); + await cancelled; + if (edit === 'form') assert.equal(studio.getState().form.prompt, 'An explicitly newer prompt'); + assert.throws(() => studioStore.assertWorkflowOperationContext(context), /workflow changed/i); + } finally { + nodeStore.setState(previous[0]); + studioStore.useStudioStore.setState(previous[1]); + } + }); +}); + +test('runtime waiting fails explicitly on a failed pending read or bounded timeout and releases subscriptions', async (t) => { + for (const outcome of ['error', 'timeout', 'success-during-subscribe']) + await t.test(outcome, async () => { + const previous = [nodeStore.getState(), studioStore.useStudioStore.getState()]; + const originalNodesSubscribe = nodeStore.subscribe; + const originalStudioSubscribe = studioStore.useStudioStore.subscribe; + let subscriptions = 0; + try { + const { context } = prepareLifecycleFixture('z_image_quick_concept'); + nodeStore.setState({ + runtimeStatus: null, + discoveryRequests: { + ...nodeStore.getState().discoveryRequests, + runtime: { status: 'loading', requestId: 120, error: null }, + }, + }); + const track = (subscribe) => (listener) => { + subscriptions++; + const unsubscribe = subscribe(listener); + return () => { + subscriptions--; + unsubscribe(); + }; + }; + nodeStore.subscribe = track(originalNodesSubscribe); + studioStore.useStudioStore.subscribe = track(originalStudioSubscribe); + if (outcome === 'success-during-subscribe') { + nodeStore.subscribe = (listener) => { + const unsubscribe = track(originalNodesSubscribe)(listener); + nodeStore.setState({ + runtimeStatus: { packages: { torch: { cuda_available: false } } }, + discoveryRequests: { + ...nodeStore.getState().discoveryRequests, + runtime: { status: 'success', requestId: 120, error: null }, + }, + }); + return unsubscribe; + }; + } + const pending = lifecycle.waitForTemplateRuntimeDiscovery(context, 20); + if (outcome === 'error') { + const failed = assert.rejects(pending, /runtime.*read failed/i); + nodeStore.setState({ + discoveryRequests: { + ...nodeStore.getState().discoveryRequests, + runtime: { status: 'error', requestId: 120, error: 'Runtime read failed' }, + }, + }); + await failed; + } else if (outcome === 'timeout') await assert.rejects(pending, /runtime.*timed out.*retry/i); + else await pending; + assert.equal(subscriptions, 0, 'both store subscriptions and the timeout are cleaned up'); + studioStore.assertWorkflowOperationContext(context); + } finally { + nodeStore.subscribe = originalNodesSubscribe; + studioStore.useStudioStore.subscribe = originalStudioSubscribe; + nodeStore.setState(previous[0]); + studioStore.useStudioStore.setState(previous[1]); + } + }); +}); + +test('template-owned normalization preserves available devices and explicit XPU or MPS choices without guessing on unknown runtime', async (t) => { + for (const scenario of [ + { device: 'cuda:0', runtime: null, expected: 'cuda:0' }, + { + device: 'cuda:0', + runtime: { + packages: { + torch: { cuda_available: true, cuda_device_count: 1, cuda_devices: [{ index: 0, name: 'Reviewed GPU' }] }, + }, + }, + expected: 'cuda:0', + }, + { device: 'xpu:0', runtime: { packages: { torch: { cuda_available: false } } }, expected: 'xpu:0' }, + { device: 'mps:0', runtime: { packages: { torch: { cuda_available: false } } }, expected: 'mps:0' }, + { device: 'cuda:0', runtime: { packages: { torch: { cuda_available: false } } }, expected: 'cpu:0' }, + ]) + await t.test(`${scenario.device} → ${scenario.expected}`, () => { + const previous = [nodeStore.getState(), studioStore.useStudioStore.getState()]; + try { + const { studio } = prepareLifecycleFixture('z_image_quick_concept'); + studio.setState({ form: { ...studio.getState().form, device: scenario.device } }); + const context = studioStore.captureWorkflowOperationContext(); + const before = structuredClone(studio.getState().form); + nodeStore.setState({ runtimeStatus: scenario.runtime }); + lifecycle.normalizeTemplateRuntimeDevice(context); + assert.equal(studio.getState().form.device, scenario.expected); + if (scenario.expected === 'cpu:0') assert.equal(studio.getState().form.offloadMode, 'none'); + else assert.deepEqual(studio.getState().form, before); + studioStore.assertWorkflowOperationContext(context); + } finally { + nodeStore.setState(previous[0]); + studioStore.useStudioStore.setState(previous[1]); + } + }); +}); + +test('ordinary Auto ControlNet creation keeps the auxiliary component resident while the base uses model CPU offload', async (t) => { + if (!publicOperations) { + const operations = await server.ssrLoadModule('/src/workflow/operationContracts.ts'); + publicOperations = operations.parseOperationContracts( + fixture.publicPayload.operationContracts, + fixture.publicPayload.operationContractSchemaVersion, + ); + } + for (const templateId of ['qwen_control_image_layout', 'qwen_packaging_dieline']) + await t.test(templateId, async () => { + const previous = [flowStore.getState(), nodeStore.getState(), studioStore.useStudioStore.getState()]; + const originalFetch = globalThis.fetch; + try { + const { row, template, studio } = prepareLifecycleFixture(templateId); + studio.getState().updateForm({ + controlImage: 'original-byte-bound-control.png', + resourceMode: 'auto', + autoOffload: true, + offloadMode: 'model_cpu', + dtype: 'bfloat16', + device: 'cuda:0', + }); + const form = structuredClone(studio.getState().form); + assert.equal(form.autoOffload, true); + assert.equal(form.offloadMode, 'model_cpu'); + globalThis.fetch = async () => Response.json(row.starter); + await lifecycle.createImageTemplateOperationWorkflow( + template, + form, + studioStore.captureWorkflowOperationContext(), + ); + const api = flowStore + .getState() + .exportGraph('control-auto-component-placement', undefined, { randomizeSeeds: false }); + const base = Object.values(api.nodes).find((node) => node.action === 'ModelsLoader'); + const auxiliary = Object.values(api.nodes).find((node) => node.action === 'AutoModelLoader'); + assert.ok(base && auxiliary); + assert.equal(base.params.auto_offload.value, true); + assert.equal(base.params.offload_mode.value, 'model_cpu'); + assert.equal(auxiliary.params.auto_offload.value, false); + assert.equal(auxiliary.params.offload_mode.value, 'none'); + for (const field of ['device', 'dtype']) assert.equal(auxiliary.params[field].value, base.params[field].value); + assert.equal(auxiliary.params.model_type.value, 'controlnet'); + assert.equal( + api.nodes[Object.values(api.nodes).find((node) => node.action === 'Controlnet').params.controlnet.sourceId] + .action, + 'AutoModelLoader', + ); + assert.equal(studio.getState().graphBinding, null); + assert.equal(studio.getState().form.resourceMode, 'auto'); + } finally { + globalThis.fetch = originalFetch; + flowStore.setState(previous[0]); + nodeStore.setState(previous[1]); + studioStore.useStudioStore.setState(previous[2]); + } + }); +}); diff --git a/scripts/websocket-connection.test.mjs b/scripts/websocket-connection.test.mjs new file mode 100644 index 00000000..c30ad02d --- /dev/null +++ b/scripts/websocket-connection.test.mjs @@ -0,0 +1,214 @@ +import assert from 'node:assert/strict'; +import { after, before, beforeEach, test } from 'node:test'; +import path from 'node:path'; +import { fileURLToPath } from 'node:url'; +import { createServer } from 'vite'; + +const ROOT = path.resolve(path.dirname(fileURLToPath(import.meta.url)), '..'); +const originalFetch = globalThis.fetch; +const originalWebSocket = globalThis.WebSocket; +const originalXhr = globalThis.XMLHttpRequest; +const originalSetTimeout = globalThis.setTimeout; +const originalClearTimeout = globalThis.clearTimeout; +let server; +let store; +let sockets; +let probes; +let timers; +let nextTimer; + +class FakeSocket { + static CONNECTING = 0; + static OPEN = 1; + static CLOSING = 2; + static CLOSED = 3; + readyState = FakeSocket.CONNECTING; + constructor(url) { + this.url = url; + sockets.push(this); + } + close() { + this.readyState = FakeSocket.CLOSED; + } + fail() { + this.readyState = FakeSocket.CLOSED; + this.onclose?.(); + } + open() { + this.readyState = FakeSocket.OPEN; + this.onopen?.(); + } +} + +class LegacyProbe { + open(_method, url) { + this.url = url; + } + send() { + probes.push({ + url: this.url, + signal: undefined, + respond: (status) => { + this.status = status; + this.onload?.(); + }, + }); + } +} + +before(async () => { + const storage = new Map(); + globalThis.localStorage = { + getItem: (key) => storage.get(key) ?? null, + setItem: (key, value) => storage.set(key, String(value)), + removeItem: (key) => storage.delete(key), + clear: () => storage.clear(), + key: (index) => [...storage.keys()][index] ?? null, + get length() { + return storage.size; + }, + }; + globalThis.window = { dispatchEvent: () => true, localStorage, location: { origin: 'http://127.0.0.1:5191' } }; + server = await createServer({ + root: ROOT, + configFile: false, + logLevel: 'silent', + optimizeDeps: { entries: [], noDiscovery: true }, + server: { middlewareMode: true, watch: null }, + appType: 'custom', + }); + store = (await server.ssrLoadModule('/src/stores/useWebsocketStore.ts')).useWebsocketStore; +}); + +beforeEach(() => { + store.getState().disconnect(); + sockets = []; + probes = []; + timers = new Map(); + nextTimer = 0; + globalThis.WebSocket = FakeSocket; + globalThis.XMLHttpRequest = LegacyProbe; + globalThis.setTimeout = (callback, delay) => { + const id = ++nextTimer; + timers.set(id, { callback, delay }); + return id; + }; + globalThis.clearTimeout = (id) => timers.delete(id); + globalThis.fetch = (url, init) => + new Promise((resolve) => { + probes.push({ + url: String(url), + signal: init.signal, + respond: (status, body = { error: false, ready: true }) => + resolve(new Response(JSON.stringify(body), { status, headers: { 'Content-Type': 'application/json' } })), + }); + }); +}); + +after(async () => { + store?.getState().disconnect(); + globalThis.fetch = originalFetch; + globalThis.WebSocket = originalWebSocket; + globalThis.XMLHttpRequest = originalXhr; + globalThis.setTimeout = originalSetTimeout; + globalThis.clearTimeout = originalClearTimeout; + await server?.close(); +}); + +async function settle() { + await new Promise((resolve) => originalSetTimeout(resolve, 0)); +} + +function enterHealthRecovery() { + const previousProbes = probes.length; + store.getState().connect(); + store.setState({ reconnectAttempts: 5 }); + sockets.at(-1).fail(); + assert.equal(probes.length, previousProbes + 1); + return probes.at(-1); +} + +test('recovery checks backend health instead of a frontend favicon and rejects HTTP failures', async () => { + const probe = enterHealthRecovery(); + probe.respond(502); + await settle(); + assert.match(probe.url, /\/health$/); + assert.equal(sockets.length, 1); + assert.equal(store.getState().reconnectAttempts, 5); + assert.ok([...timers.values()].some(({ delay }) => delay >= 2000 && delay <= 3000)); +}); + +test('a successful response with an unready or malformed health payload does not reconnect', async () => { + for (const payload of [{ error: false, ready: false }, { ready: true }, { error: false, ready: 'true' }]) { + const previous = sockets.length; + const probe = enterHealthRecovery(); + probe.respond(200, payload); + await settle(); + assert.equal(sockets.length, previous + 1); + store.getState().disconnect(); + } +}); + +test('disconnect aborts its health probe and a late successful response cannot reconnect', async () => { + const probe = enterHealthRecovery(); + store.getState().disconnect(); + probe.respond(200); + await settle(); + assert.equal(probe.signal?.aborted, true); + assert.equal(sockets.length, 1); + assert.equal(store.getState().ws, null); + assert.equal(store.getState().isConnecting, false); + assert.equal(timers.size, 0); +}); + +test('healthy recovery retains the retry budget until the websocket actually opens', async () => { + const probe = enterHealthRecovery(); + probe.respond(200); + await settle(); + assert.equal(sockets.length, 2); + assert.equal(store.getState().reconnectAttempts, 5); + sockets.at(-1).open(); + assert.equal(store.getState().reconnectAttempts, 0); + assert.equal(store.getState().isConnected, true); +}); + +test('stale recovery callbacks cannot replace a newer manually connected socket', async () => { + const probe = enterHealthRecovery(); + store.getState().disconnect(); + store.getState().connect(); + const current = sockets.at(-1); + current.open(); + probe.respond(200); + await settle(); + assert.equal(sockets.length, 2); + assert.equal(store.getState().ws, current); + assert.equal(store.getState().isConnected, true); +}); + +test('disconnect cancels a retry timer even when its callback was already queued', () => { + store.getState().connect(); + sockets.at(-1).fail(); + const timer = [...timers.values()][0]; + assert.ok(timer); + store.getState().disconnect(); + timer.callback(); + assert.equal(sockets.length, 1); + assert.equal(store.getState().ws, null); +}); + +test('a stalled backend health request times out and retries without starting another socket', async () => { + globalThis.fetch = (url, init) => + new Promise((_resolve, reject) => { + probes.push({ url: String(url), signal: init.signal }); + init.signal.addEventListener('abort', () => reject(new Error('cancelled')), { once: true }); + }); + enterHealthRecovery(); + const [timeoutId, timeout] = [...timers.entries()].find(([, timer]) => timer.delay === 5000); + timers.delete(timeoutId); + timeout.callback(); + await settle(); + assert.equal(probes[0].signal.aborted, true); + assert.equal(sockets.length, 1); + assert.equal(store.getState().reconnectAttempts, 5); + assert.equal(timers.size, 1); +}); diff --git a/scripts/workflow-document-origin.test.mjs b/scripts/workflow-document-origin.test.mjs new file mode 100644 index 00000000..84733506 --- /dev/null +++ b/scripts/workflow-document-origin.test.mjs @@ -0,0 +1,150 @@ +import assert from 'node:assert/strict'; +import { after, before, beforeEach, test } from 'node:test'; +import path from 'node:path'; +import { fileURLToPath } from 'node:url'; +import { createServer } from 'vite'; +const ROOT = path.resolve(path.dirname(fileURLToPath(import.meta.url)), '..'); +let server, origin, sync, studio, originalFetch; +const values = new Map(); +const storage = { + getItem: (key) => values.get(key) ?? null, + setItem: (key, value) => values.set(key, String(value)), + removeItem: (key) => values.delete(key), +}; +before(async () => { + globalThis.localStorage = globalThis.sessionStorage = storage; + globalThis.window = { + localStorage: storage, + sessionStorage: storage, + location: { origin: 'http://127.0.0.1:5191' }, + dispatchEvent: () => true, + }; + server = await createServer({ + root: ROOT, + configFile: false, + logLevel: 'silent', + optimizeDeps: { entries: [], noDiscovery: true }, + server: { middlewareMode: true, hmr: false, watch: null }, + appType: 'custom', + }); + origin = await server.ssrLoadModule('/src/studio/workflowDocumentOrigin.ts'); + studio = (await server.ssrLoadModule('/src/stores/useStudioStore.ts')).useStudioStore; + sync = await server.ssrLoadModule('/src/studio/useWorkflowBackendSync.ts'); + originalFetch = globalThis.fetch; +}); +beforeEach(() => { + for (const tab of studio.getState().workflowTabs) origin.forgetFreshWorkflowId(tab.id); + studio.setState({ workflowTabs: [], activeWorkflowTabId: null }); +}); +after(async () => { + globalThis.fetch = originalFetch; + await server?.close(); + delete globalThis.localStorage; + delete globalThis.sessionStorage; + delete globalThis.window; +}); +function tab(id) { + return studio.getState().workflowTabs.find((x) => x.id === id); +} +function response(value) { + return new Response(JSON.stringify(value), { headers: { 'Content-Type': 'application/json' } }); +} +function record(t) { + return { ...t, revision: 1 }; +} + +test('a genuinely new tab skips its first GET and consumes its marker before the ordinary PUT', async () => { + const id = studio.getState().createWorkflowTab(); + const t = tab(id); + const calls = []; + globalThis.fetch = async (url, options) => { + calls.push([String(url), options?.method ?? 'GET']); + assert.equal(origin.isFreshWorkflowId(id), false); + return response(record(t)); + }; + assert.equal(origin.isFreshWorkflowId(id), true); + assert.equal(await sync.readWorkflowForHydration(t), null); + assert.deepEqual(calls, []); + await sync.saveDetachedWorkflowNow(t); + assert.deepEqual( + calls.map((x) => x[1]), + ['PUT'], + ); + assert.equal(origin.isFreshWorkflowId(id), false); +}); + +test('restored legacy revision-zero/source-new documents still read remote authority', async () => { + studio.getState().ensureWorkflowTabs(); + const fresh = tab(studio.getState().activeWorkflowTabId); + const restored = { ...fresh, id: 'restored-document', backendRevision: 0, source: 'new' }; + studio.setState({ workflowTabs: [restored], activeWorkflowTabId: restored.id }); + const calls = []; + globalThis.fetch = async (url, options) => { + calls.push(options?.method ?? 'GET'); + return response({ ...record(restored), title: 'Actual remote title' }); + }; + assert.equal(origin.isFreshWorkflowId(restored.id), false); + assert.equal((await sync.readWorkflowForHydration(restored)).title, 'Actual remote title'); + assert.deepEqual(calls, ['GET']); +}); + +test('lost PUT response consumes fresh authority so retry reads the document the server may have saved', async () => { + const id = studio.getState().createWorkflowTab(); + const t = tab(id); + const calls = []; + globalThis.fetch = async (url, options) => { + calls.push(options?.method ?? 'GET'); + if (options?.method === 'PUT') throw new TypeError('PUT response lost after server save'); + return response({ ...record(t), title: 'Saved by first PUT' }); + }; + assert.equal(await sync.readWorkflowForHydration(t), null); + await assert.rejects(sync.saveDetachedWorkflowNow(t), /PUT response lost/); + assert.equal(origin.isFreshWorkflowId(id), false); + assert.equal((await sync.readWorkflowForHydration(t)).title, 'Saved by first PUT'); + assert.deepEqual(calls, ['PUT', 'GET']); +}); + +test('cancel before first PUT retains fresh authority; aborted dispatch makes StrictMode retry read', async () => { + const id = studio.getState().createWorkflowTab(); + const t = tab(id); + const abort = new AbortController(); + abort.abort(); + assert.equal(await sync.readWorkflowForHydration(t, abort.signal), null); + assert.equal(origin.isFreshWorkflowId(id), true); + const calls = []; + globalThis.fetch = async (url, options) => { + calls.push(options?.method ?? 'GET'); + if (options?.method === 'PUT') throw new DOMException('Page lifecycle ended', 'AbortError'); + return response(record(t)); + }; + await assert.rejects(sync.saveDetachedWorkflowNow(t)); + await sync.readWorkflowForHydration(t); + assert.deepEqual(calls, ['PUT', 'GET']); +}); + +test('all three fresh creation paths mark IDs, while closing, deletion and acknowledgement clear them', () => { + studio.getState().ensureWorkflowTabs(); + const first = studio.getState().activeWorkflowTabId; + assert.equal(origin.isFreshWorkflowId(first), true); + studio.getState().closeWorkflowTab(first); + const replacement = studio.getState().activeWorkflowTabId; + assert.notEqual(replacement, first); + assert.equal(origin.isFreshWorkflowId(first), false); + assert.equal(origin.isFreshWorkflowId(replacement), true); + const created = studio.getState().createWorkflowTab(); + assert.equal(origin.isFreshWorkflowId(created), true); + sync.markBackendWorkflow(tab(created)); + assert.equal(origin.isFreshWorkflowId(created), false); + sync.forgetBackendWorkflow(replacement); + assert.equal(origin.isFreshWorkflowId(replacement), false); +}); + +test('a restored current-document ID never acquires freshness from backendRevision or local serialization', () => { + const id = studio.getState().createWorkflowTab(); + const serialized = JSON.stringify(tab(id)); + origin.forgetFreshWorkflowId(id); + const restored = JSON.parse(serialized); + studio.setState({ workflowTabs: [restored], activeWorkflowTabId: id }); + assert.equal(origin.isFreshWorkflowId(id), false); + assert.equal(serialized.includes('FreshWorkflow'), false); +}); diff --git a/src/App.tsx b/src/App.tsx index 726a4550..05b32479 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -24,6 +24,7 @@ import { ModiffIconButton } from './ui'; import { openRunActivity } from './studio/runActivity.ts'; import { useAutoResourcePlanSync } from './studio/useAutoResourcePlanSync.ts'; import { useWorkflowBackendSync } from './studio/useWorkflowBackendSync.ts'; +import { supervisorControlCanPoll, waitForSupervisorMetadata } from './utils/supervisorControl'; const DeveloperWorkflowLauncher = lazy(() => import('./components/DeveloperWorkflowLauncher')); const GraphFixDialog = lazy(() => import('./components/GraphFixDialog.tsx')); @@ -56,6 +57,7 @@ const WORKSPACE_MIN_WIDTH = modiffLayout.workspaceMinWidth; const SUPERVISOR_STARTUP_TIMEOUT_MS = 5_000; async function boundedSupervisorStartup(fetchSupervisorTasks: () => Promise) { + await waitForSupervisorMetadata(useNodesStore); let timeoutId: number | undefined; try { await Promise.race([ @@ -128,6 +130,7 @@ export default function App() { const fetchSupervisorTasks = useTaskStore((state) => state.fetchSupervisorTasks); const currentTask = useTaskStore((state) => state.currentTask); const taskCount = useTaskStore((state) => state.taskCount); + const workerControl = useNodesStore((state) => state.runtimeStatus?.workerControl); const graphFixDialogOpen = useGraphFixStore((state) => state.dialogOpen); const runIssuesDialogOpen = useRunIssueStore((state) => state.issueDialogOpen || state.failureDialogOpen); const nodeCount = useFlowStore((state) => state.nodes.length); @@ -330,12 +333,14 @@ export default function App() { // remains connected. Reconcile active runs through the process-external // supervisor until the queue is empty; this keeps the visible task state // truthful without navigating away from the user's current workflow. - if (websocketConnected && taskCount === 0) return; + if (!supervisorControlCanPoll() || (websocketConnected && taskCount === 0)) return; let disposed = false; + const abort = new AbortController(); let timer: number | undefined; const pollSupervisor = async () => { + if (!(await waitForSupervisorMetadata(useNodesStore, abort.signal))) return; await fetchSupervisorTasks(); - if (!disposed) { + if (!disposed && supervisorControlCanPoll()) { timer = window.setTimeout( () => { void pollSupervisor(); @@ -347,9 +352,10 @@ export default function App() { void pollSupervisor(); return () => { disposed = true; + abort.abort(); if (timer !== undefined) window.clearTimeout(timer); }; - }, [fetchSupervisorTasks, taskCount, websocketConnected]); + }, [fetchSupervisorTasks, taskCount, websocketConnected, workerControl]); const criticalDiscoveryKeys = useMemo( () => ['nodes', 'runtime', 'hfCache', 'localModels', 'modelCache', 'capabilities'] as const, diff --git a/src/components/RuntimeOptimizationsCard.tsx b/src/components/RuntimeOptimizationsCard.tsx index 86fedb2e..e6bb1bdb 100644 --- a/src/components/RuntimeOptimizationsCard.tsx +++ b/src/components/RuntimeOptimizationsCard.tsx @@ -26,7 +26,7 @@ function post(path: string, body: Record, parse: (value: unk method: 'POST', headers: { 'Content-Type': 'application/json' }, body: JSON.stringify(body), - timeoutMs: 30_000, + timeoutMs: path === '/runtime/optimizations/probe' ? 130_000 : 30_000, parse, }); } @@ -70,8 +70,6 @@ export default function RuntimeOptimizationsCard() { const [runtimeJob, setRuntimeJob] = useState(null); const refreshRevision = useRef(0); const mutationInFlight = useRef(false); - const runtimePolls = useRef(0); - const cutoverPollRevision = useRef(0); const refresh = useCallback(async () => { const revision = ++refreshRevision.current; @@ -105,50 +103,28 @@ export default function RuntimeOptimizationsCard() { void refresh().catch(() => undefined); }, [refresh]); - useEffect( - () => () => { - cutoverPollRevision.current += 1; - }, - [], - ); - - const refreshOptionalRuntimeAfterCutover = useCallback( - async (profileId: string, specDigest: string) => { - const revision = ++cutoverPollRevision.current; - const deadline = Date.now() + 5 * 60 * 1000; - while (revision === cutoverPollRevision.current && Date.now() < deadline) { - await new Promise((resolve) => window.setTimeout(resolve, 1000)); - if (revision !== cutoverPollRevision.current) return; - await fetchOptionalRuntimes(); - const nextCatalog = useNodesStore.getState().optionalRuntimeCatalog; - const nextProfile = nextCatalog?.profiles.find((candidate) => candidate.id === profileId); - if ( - nextCatalog?.processLoadStatus === 'active' && - nextProfile?.specDigest === specDigest && - nextProfile.overlayStatus === 'active' - ) { - const nodes = useNodesStore.getState(); - await Promise.all([nodes.fetchRuntimeStatus(), nodes.fetchStudioModelCapabilities()]); - return; - } - } - if (revision === cutoverPollRevision.current) { - enqueueSnackbar('Runtime activation is still restarting. Refresh Setup before running this workflow.', { - variant: 'warning', - }); - } - }, - [fetchOptionalRuntimes], - ); + // The backend owns setup progress, so reopening Setup or refreshing the page + // resumes the same operation instead of presenting Activate during cutover. + useEffect(() => { + const latest = optionalRuntimeCatalog?.latestJob; + if (!latest) return; + if (optionalRuntimeCatalog.profiles.some((profile) => profile.id === latest.profileId && profile.baseIncluded)) { + setRuntimeJob((current) => (current?.profileId === latest.profileId ? null : current)); + return; + } + setRuntimeJob((current) => + !current || + latest.createdAt > current.createdAt || + (latest.id === current.id && latest.updatedAt >= current.updatedAt) + ? latest + : current, + ); + }, [optionalRuntimeCatalog]); useEffect(() => { if (!runtimeJob || ['cancelled', 'failed', 'ready'].includes(runtimeJob.status)) return; const controller = new AbortController(); const timer = window.setTimeout(async () => { - if (++runtimePolls.current > 2400) { - enqueueSnackbar('Runtime setup polling stopped. Refresh status to continue.', { variant: 'warning' }); - return; - } try { const next = await requestJson( `${config.serverAddress}/runtime/optional-runtimes/jobs/${encodeURIComponent(runtimeJob.id)}`, @@ -156,12 +132,19 @@ export default function RuntimeOptimizationsCard() { ); if ( next.id !== runtimeJob.id || + next.operation !== runtimeJob.operation || next.profileId !== runtimeJob.profileId || next.specDigest !== runtimeJob.specDigest ) throw new Error('The optional-runtime job identity changed.'); setRuntimeJob(next); - if (['cancelled', 'failed', 'ready'].includes(next.status)) void fetchOptionalRuntimes(); + if (['cancelled', 'failed', 'ready'].includes(next.status)) { + await fetchOptionalRuntimes(); + if (next.operation === 'activate' && next.status === 'ready') { + const nodes = useNodesStore.getState(); + await Promise.all([nodes.fetchRuntimeStatus(), nodes.fetchStudioModelCapabilities()]); + } + } } catch { if (!controller.signal.aborted) { setRuntimeJob({ ...runtimeJob }); @@ -222,15 +205,15 @@ export default function RuntimeOptimizationsCard() { label, environmentId ? async () => { - const result = await post( + const job = await post( '/runtime/optional-runtimes/activate', { environmentId, profileId: profile.id, specDigest: profile.specDigest, consent: true }, - parseOptionalRuntimeMutation, + parseOptionalRuntimeJobResponse, ); - enqueueSnackbar(result.message ?? 'Activation selected.', { variant: 'success' }); - setRuntimeJob(null); + if (job.operation !== 'activate' || job.profileId !== profile.id || job.specDigest !== profile.specDigest) + throw new Error('Runtime activation job mismatch.'); + setRuntimeJob(job); await fetchOptionalRuntimes(); - void refreshOptionalRuntimeAfterCutover(profile.id, profile.specDigest); } : async () => { const job = await post( @@ -240,7 +223,6 @@ export default function RuntimeOptimizationsCard() { ); if (job.profileId !== profile.id || job.specDigest !== profile.specDigest) throw new Error('Runtime job mismatch.'); - runtimePolls.current = 0; setRuntimeJob(job); await fetchOptionalRuntimes(); }, @@ -262,98 +244,113 @@ export default function RuntimeOptimizationsCard() { }; const observedReceipts = receipts.filter((receipt) => receipt.kind === 'workload' && receipt.status === 'observed'); - const rollbackToBase = Boolean( - optionalRuntimeCatalog?.activeEnvironmentId && - !optionalRuntimeCatalog.previousEnvironmentId && - optionalRuntimeCatalog.processLoadStatus === 'repair_required', - ); - const rollbackAvailable = Boolean(optionalRuntimeCatalog?.previousEnvironmentId || rollbackToBase); + const resetToBase = optionalRuntimeCatalog?.processLoadStatus === 'repair_required'; + const rollbackAvailable = Boolean(optionalRuntimeCatalog?.previousEnvironmentId || resetToBase); + const runtimeBusy = runtimeJob !== null && !['ready', 'failed', 'cancelled'].includes(runtimeJob.status); return (
Optional runtimes + {optionalRuntimeRequest.status === 'success' && + optionalRuntimeCatalog?.profiles.some((profile) => profile.baseIncluded) ? ( +

+ Image generation and LoRA support are included in the base installation. +

+ ) : null} + {runtimeJob ? ( +
+ {runtimeJob.progress.message} + {runtimeJob.operation === 'install' && ['queued', 'running'].includes(runtimeJob.status) ? ( + + Cancel + + ) : null} +
+ ) : null} {optionalRuntimeRequest.error ? (

{optionalRuntimeRequest.error}

) : optionalRuntimeRequest.status === 'loading' ? (

Loading optional runtimes...

) : optionalRuntimeRequest.status === 'success' && optionalRuntimeCatalog ? ( - optionalRuntimeCatalog.profiles.map((profile) => { - const staged = stagedOptionalRuntimeEnvironment(optionalRuntimeCatalog, profile); - const completedEnvironment = - runtimeJob?.profileId === profile.id && runtimeJob.specDigest === profile.specDigest - ? runtimeJob.result?.environmentId - : undefined; - const canAct = profile.contractState === 'qualified' && profile.cutoverReady; - const environmentId = completedEnvironment ?? staged; - const action = environmentId - ? 'Activate' - : profile.overlayStatus === 'repair_required' || profile.overlayStatus === 'staged_unchecked' - ? 'Repair' - : 'Install'; - const actionable = - canAct && - (environmentId - ? profile.activationAvailable - : profile.installActionAvailable && profile.overlayStatus !== 'active'); - return ( -
- - {profile.label} ({optionalRuntimeTarget(profile)}):{' '} - {optionalRuntimeStatus(profile, optionalRuntimeCatalog.processLoadStatus)} - - {runtimeJob?.profileId === profile.id ? ( -
- {runtimeJob.progress.message} - {['queued', 'running'].includes(runtimeJob.status) ? ( - - Cancel + optionalRuntimeCatalog.profiles + .filter((profile) => !profile.baseIncluded) + .map((profile) => { + const staged = stagedOptionalRuntimeEnvironment(optionalRuntimeCatalog, profile); + const completedEnvironment = + runtimeJob?.operation === 'install' && + runtimeJob.status === 'ready' && + runtimeJob.result?.requiresActivation && + runtimeJob.profileId === profile.id && + runtimeJob.specDigest === profile.specDigest + ? runtimeJob.result?.environmentId + : undefined; + const canAct = profile.contractState === 'qualified' && profile.cutoverReady; + const environmentId = completedEnvironment ?? staged; + const action = environmentId + ? 'Activate' + : profile.overlayStatus === 'repair_required' || profile.overlayStatus === 'staged_unchecked' + ? 'Repair' + : 'Install'; + const actionable = + canAct && + (environmentId + ? profile.activationAvailable + : profile.installActionAvailable && profile.overlayStatus !== 'active'); + return ( +
+ + {profile.label} ({optionalRuntimeTarget(profile)}):{' '} + {optionalRuntimeStatus(profile, optionalRuntimeCatalog.processLoadStatus)} + +
+ {actionable && !runtimeBusy ? ( + changeRuntime(profile, environmentId)} + > + {action} ) : null}
- ) : null} -
- {actionable ? ( - changeRuntime(profile, environmentId)} - > - {action} - - ) : null}
-
- ); - }) + ); + }) ) : (

No optional runtimes.

)} {optionalRuntimeCatalog && rollbackAvailable && - optionalRuntimeCatalog.profiles.some( - (profile) => profile.activationAvailable && profile.cutoverReady && profile.contractState === 'qualified', - ) ? ( + (resetToBase || + optionalRuntimeCatalog.profiles.some( + (profile) => profile.activationAvailable && profile.cutoverReady && profile.contractState === 'qualified', + )) ? ( consent( - rollbackToBase ? 'Roll back optional runtime to base?' : 'Roll back optional runtime?', - rollbackToBase - ? 'Remove the broken active optional environment and restart MoDiff with the validated base runtime. Active and queued runs must be stopped first.' + resetToBase ? 'Reset optional runtime to base?' : 'Roll back optional runtime?', + resetToBase + ? 'Clear optional runtime selections and restart MoDiff with the validated base runtime. Installed optional files are kept. Active and queued runs must be stopped first.' : 'Select the previous validated optional environment and restart MoDiff. Active and queued runs must be stopped first.', - 'Rollback', + resetToBase ? 'Reset' : 'Rollback', async () => { const result = await post( '/runtime/optional-runtimes/rollback', - { consent: true }, + { consent: true, ...(resetToBase ? { targetBase: true } : {}) }, parseOptionalRuntimeMutation, ); enqueueSnackbar(result.message ?? 'Optional runtime rollback selected.', { variant: 'success' }); @@ -362,7 +359,7 @@ export default function RuntimeOptimizationsCard() { ) } > - {rollbackToBase ? 'Rollback to base' : 'Rollback'} + {resetToBase ? 'Reset to base' : 'Rollback'} ) : null}
@@ -428,7 +425,7 @@ export default function RuntimeOptimizationsCard() { }) } > - Probe + {busyId === `probe:${capability.id}` ? 'Probing…' : 'Probe'} ) : null} diff --git a/src/components/StudioPanel.tsx b/src/components/StudioPanel.tsx index efad528a..cb7c1caa 100644 --- a/src/components/StudioPanel.tsx +++ b/src/components/StudioPanel.tsx @@ -56,6 +56,7 @@ import { import { studioLowMemoryFormValues } from '../studio/resourcePlanner'; import { STUDIO_PRESETS, STUDIO_TEMPLATES } from '../studio/templates'; import { exactStudioExecutionProfileForForm } from '../studio/executionSpecs'; +import { studioSupportsStrength } from '../studio/effectiveControls'; import { acknowledgementRequiredForModelRun } from '../studio/modelUsagePolicies'; import { useModelUsageTermsGate } from '../studio/useModelUsageTerms'; import type { StudioAspectRatio, StudioFormState, StudioMode, StudioModelType } from '../studio/types'; @@ -344,6 +345,7 @@ export default function StudioPanel() { backendCapabilitiesAuthoritative: studioModelCapabilitiesAuthoritative, }); const requiredVideos = capability.modeRequirements?.[form.mode]?.requiredVideos ?? []; + const supportsStrength = studioSupportsStrength(form, studioModelCapabilities, activeTemplate); const requiresSourceVideo = requiredVideos.includes('sourceVideo'); const requiresReferenceVideos = requiredVideos.includes('referenceVideos'); const requiresControlVideo = requiredVideos.includes('controlVideo'); @@ -417,12 +419,12 @@ export default function StudioPanel() { ]); useEffect(() => { - if (!runtimeStatus) return; + if (!runtimeStatus || templateGraphPreparing) return; const preferredDevice = getPreferredRuntimeDevice(runtimeStatus); if (preferredDevice === form.device || runtimeDeviceIsAvailable(runtimeStatus, form.device)) return; if (form.device !== DEFAULT_STUDIO_FORM.device && !form.device.toLowerCase().startsWith('cuda')) return; updateAndSync({ device: preferredDevice }); - }, [form.device, runtimeStatus, updateAndSync]); + }, [form.device, runtimeStatus, templateGraphPreparing, updateAndSync]); const handleAspectChange = (aspectRatio: StudioAspectRatio) => { const aspect = ASPECT_OPTIONS.find((item) => item.label === aspectRatio); @@ -1331,7 +1333,7 @@ export default function StudioPanel() { } )} - {capability.supportsImageInput && !isVideoMode && !isPerceptionMode && ( + {supportsStrength && !isVideoMode && !isPerceptionMode && ( <>
)} - {usesPrompt && } + {usesPrompt && } {usesPrompt && ( { diff --git a/src/components/StudioParameterExplainers.tsx b/src/components/StudioParameterExplainers.tsx index 2a08deb2..c452431d 100644 --- a/src/components/StudioParameterExplainers.tsx +++ b/src/components/StudioParameterExplainers.tsx @@ -6,9 +6,10 @@ import { SectionHeader } from '../ui'; type StudioParameterExplainersProps = { form: StudioFormState; + supportsStrength: boolean; }; -export function StudioParameterExplainers({ form }: StudioParameterExplainersProps) { +export function StudioParameterExplainers({ form, supportsStrength }: StudioParameterExplainersProps) { const rows = [ [ 'Seed', @@ -16,7 +17,9 @@ export function StudioParameterExplainers({ form }: StudioParameterExplainersPro ], ['Guidance', `${form.guidanceScale} balances prompt obedience against natural detail.`], ['Steps', `${form.steps} sampling steps sets quality/runtime tradeoff.`], - ['Strength', `${form.strength} controls how much source images can change in edit workflows.`], + ...(supportsStrength + ? [['Strength', `${form.strength} controls how much source images can change in edit workflows.`]] + : []), ['Size', `${form.width}x${form.height} changes composition and exactness hash.`], ['Dtype', `${form.dtype} affects memory use and can affect reproducibility.`], ['Model', STUDIO_MODEL_LABELS[form.modelType]], diff --git a/src/components/StudioVariationPlanner.tsx b/src/components/StudioVariationPlanner.tsx index aa4615b0..d45821c5 100644 --- a/src/components/StudioVariationPlanner.tsx +++ b/src/components/StudioVariationPlanner.tsx @@ -13,6 +13,7 @@ export type StudioVariationOption = { type StudioVariationPlannerProps = { form: StudioFormState; + supportsStrength: boolean; template: StudioTemplate | undefined; onChange: (values: Partial) => void; onRunSweep: (variations: StudioVariationOption[]) => void; @@ -22,32 +23,27 @@ type StudioVariationPlannerProps = { export function StudioVariationPlanner({ disabled = false, form, + supportsStrength, template, onChange, onRunSweep, }: StudioVariationPlannerProps) { const exactEligible = template ? isTemplateExactEligible(template, form) : false; const isVideoMode = VIDEO_STUDIO_MODES.includes(form.mode); - const strengthVariations: StudioVariationOption[] = - form.mode === 'edit_image' || - form.mode === 'multi_image_reference_edit' || - form.mode === 'inpaint' || - form.mode === 'control_edit_image' || - form.mode === 'control_inpaint' || - form.mode === 'layer_decomposition' - ? [ - { - label: 'Lower strength', - detail: `Strength ${Math.max(0, Number((form.strength - 0.1).toFixed(2)))}`, - values: { strength: Math.max(0, Number((form.strength - 0.1).toFixed(2))) }, - }, - { - label: 'Higher strength', - detail: `Strength ${Math.min(1, Number((form.strength + 0.1).toFixed(2)))}`, - values: { strength: Math.min(1, Number((form.strength + 0.1).toFixed(2))) }, - }, - ] - : []; + const strengthVariations: StudioVariationOption[] = supportsStrength + ? [ + { + label: 'Lower strength', + detail: `Strength ${Math.max(0, Number((form.strength - 0.1).toFixed(2)))}`, + values: { strength: Math.max(0, Number((form.strength - 0.1).toFixed(2))) }, + }, + { + label: 'Higher strength', + detail: `Strength ${Math.min(1, Number((form.strength + 0.1).toFixed(2)))}`, + values: { strength: Math.min(1, Number((form.strength + 0.1).toFixed(2))) }, + }, + ] + : []; const videoVariations: StudioVariationOption[] = isVideoMode ? [ { diff --git a/src/components/TemplateBrowserDialog.tsx b/src/components/TemplateBrowserDialog.tsx index fa79648f..d68c566b 100644 --- a/src/components/TemplateBrowserDialog.tsx +++ b/src/components/TemplateBrowserDialog.tsx @@ -41,6 +41,7 @@ import { import { TEMPLATE_GALLERY_MANIFEST_PATH, findManifestEntry, + findHistoricalTemplateManifestEntry, getTemplateCardMedia, getTemplateLockedSettings, parseTemplateGalleryManifest, @@ -241,7 +242,7 @@ function categoryLabel(categoryId: TemplateBrowserCategoryId) { function templateHasPublishedMedia(template: StudioTemplate, manifest: TemplateGalleryManifest | null) { if (manifest) { - const entry = findManifestEntry(template, manifest); + const entry = findManifestEntry(template, manifest) ?? findHistoricalTemplateManifestEntry(template, manifest); if (!entry) return false; return entry.mediaType !== 'video' || Boolean(entry.cardPreviewPath && entry.cardPreviewSha256); } @@ -1074,6 +1075,7 @@ function TemplateBrowserCard({ template: StudioTemplate; }) { const { beforePath, mediaPath: cardMediaPath, thumbnailPath } = getTemplateCardMedia(template, manifest); + const historical = !findManifestEntry(template, manifest) && findHistoricalTemplateManifestEntry(template, manifest); const hasUsageRestrictions = acknowledgementRequiredForTemplate(template).length > 0; return ( @@ -1112,6 +1114,11 @@ function TemplateBrowserCard({ thumbnailPath={thumbnailPath} variant={template.thumbnailVariant} /> + {historical ? ( + + Previous recipe example + + ) : null}
{hasUsageRestrictions ? ( content="Usage restrictions — review before use"> @@ -1235,7 +1242,9 @@ function TemplateRecipeDetail({ requiresTermsReview: boolean; template: StudioTemplate; }) { - const detailManifestEntry = findManifestEntry(template, manifest, { requireCardPreview: false }); + const currentEntry = findManifestEntry(template, manifest, { requireCardPreview: false }); + const detailManifestEntry = + currentEntry ?? findHistoricalTemplateManifestEntry(template, manifest, { requireCardPreview: false }); // Source inputs have their own reviewed hash and do not become invalid merely // because a prompt, graph, or generated-output lock changes. Keep the strict // exactness gate for the result, but resolve the published source separately @@ -1276,6 +1285,12 @@ function TemplateRecipeDetail({ thumbnailPath={thumbnailPath} variant={template.thumbnailVariant} /> + {!currentEntry && detailManifestEntry && template.executionSelection ? ( +

+ Example from the previous recipe. This template now creates editable developer workflow nodes; the new graph + has not been visually qualified by this image. +

+ ) : null}
diff --git a/src/stores/useNodeStore.ts b/src/stores/useNodeStore.ts index a6ba4aad..fa9d3b84 100644 --- a/src/stores/useNodeStore.ts +++ b/src/stores/useNodeStore.ts @@ -20,9 +20,16 @@ import { isHfDownloadComplete, } from '../studio/modelInstall'; import { parseRuntimeEnvironment, type RuntimeEnvironment } from '../studio/runtimeEnvironment'; +import { + beginWorkerControlRead, + parseWorkerControl, + updateWorkerControl, + type WorkerControl, +} from '../utils/supervisorControl'; import { isStudioMode, isStudioModelType } from '../studio/modelCapabilities'; import { parseStudioExecutionSpecs } from '../studio/executionSpecs'; import type { OperationAuthoring } from '../workflow/operationAuthoring'; +import { isConnectionRoleSelector, type ConnectionRoleSelector } from '../workflow/connectionRoleSelector'; import type { OperationContract } from '../workflow/operationContracts'; import type { PipelineSupport } from '../workflow/operationCatalog'; import type { WorkflowModelDescriptor } from '../workflow/workflowChoices'; @@ -202,6 +209,7 @@ export type NodeParams = { onChange?: unknown; onSignal?: unknown; connectionRole?: string; + connectionRoleSelector?: ConnectionRoleSelector; signalCompatibility?: { required?: boolean; values?: Record; @@ -392,6 +400,7 @@ export type RuntimePackageStatus = { export type RuntimeStatus = { ready?: boolean; + workerControl?: WorkerControl; runtime_fingerprint?: string; runtimeEnvironment: RuntimeEnvironment; server?: { @@ -640,6 +649,14 @@ export function parseNodesResponse(value: unknown) { ) { throw new Error(`Node definition ${key} is invalid.`); } + for (const [field, param] of Object.entries(definition.params)) { + if ( + isRecord(param) && + 'connectionRoleSelector' in param && + !isConnectionRoleSelector(param.connectionRoleSelector) + ) + throw new Error(`Node definition ${key} has an invalid connection role selector for ${field}.`); + } }); return { nodes: payload.nodes as unknown as Record, @@ -657,6 +674,7 @@ function parseRuntimeStatus(value: unknown) { return { ...payload, runtimeEnvironment: parseRuntimeEnvironment(payload), + workerControl: parseWorkerControl(payload.workerControl), } as RuntimeStatus; } @@ -1345,6 +1363,7 @@ export const useNodesStore = create()((set, get) => ({ ); }, fetchRuntimeStatus: async () => { + const controlRead = beginWorkerControlRead(); const previousFingerprint = get().runtimeStatus?.runtime_fingerprint; await runDiscoveryRequest( 'runtime', @@ -1356,6 +1375,7 @@ export const useNodesStore = create()((set, get) => ({ parse: parseRuntimeStatus, }), (runtimeStatus) => { + updateWorkerControl(runtimeStatus.workerControl, controlRead); const nextFingerprint = runtimeStatus.runtime_fingerprint; if ( previousFingerprint !== undefined && diff --git a/src/stores/useStudioStore.ts b/src/stores/useStudioStore.ts index f7ebdb72..21604e30 100644 --- a/src/stores/useStudioStore.ts +++ b/src/stores/useStudioStore.ts @@ -2,6 +2,7 @@ import { useSettingsStore } from './useSettingsStore'; import { create } from 'zustand'; import { persist, createJSONStorage } from 'zustand/middleware'; import { nanoid } from 'nanoid'; +import { forgetFreshWorkflowId, markFreshWorkflowId } from '../studio/workflowDocumentOrigin'; import { applyResolvedExecutionInputs } from '../studio/resolvedExecutionInputs'; import { DEFAULT_STUDIO_FORM, @@ -2665,6 +2666,7 @@ export const useStudioStore = create { const state = get(); if (!state.workflowTabs.some((tab) => tab.id === id)) return; + forgetFreshWorkflowId(id); if (id !== state.activeWorkflowTabId) { // Closing a background view must not checkpoint, rehydrate, clear // errors, or reset the active document's pending graph work/history. @@ -2788,6 +2792,7 @@ export const useStudioStore = create, recent?: Task[]) => void; fetchTasks: () => Promise; fetchSupervisorTasks: () => Promise; + supervisorControlError: string | null; updateProgress: (task_id: string, progress: number, message?: string, details?: Partial) => void; markTaskFailed: (task: Task) => void; markTaskCompleted: (task: Task) => void; @@ -349,6 +355,7 @@ export const useTaskStore = create((set, get) => ({ taskCount: 0, queueRevision: 0, fetchState: { status: 'idle', error: null, requestId: null }, + supervisorControlError: null, focusedTaskId: null, setFocusedTaskId: (taskId) => set({ focusedTaskId: taskId }), @@ -380,24 +387,39 @@ export const useTaskStore = create((set, get) => ({ fetchSupervisorTasks: () => { if (supervisorQueueRequest) return supervisorQueueRequest; + let address: string | null; + try { + address = supervisorControlAddress(); + } catch (error) { + supervisorControlFailed(); + set({ supervisorControlError: formatRequestError(error, 'Could not read supervisor task status.') }); + return Promise.resolve(); + } + if (!address) return Promise.resolve(); const ticket = supervisorQueueRequestGate.begin('supervisorQueue'); const queueRevision = get().queueRevision; const request = (async () => { try { - const payload = await requestJson(`${config.supervisorAddress}/queue`, { + const payload = await requestJson(`${address}/queue`, { signal: ticket.signal, timeoutMs: 2_000, parse: parseQueueResponse, }); if (!ticket.isLatest()) return; + supervisorControlSucceeded(); + set({ supervisorControlError: null }); // A websocket queue snapshot that arrived while this emergency request // was in flight is newer and must remain authoritative. if (get().queueRevision === queueRevision) { get().setTasks(payload.current, payload.queued, payload.recent); } - } catch { - // The control plane is an emergency fallback. Normal websocket/HTTP - // connectivity owns visible connection errors. + } catch (error) { + if (!ticket.isLatest()) return; + supervisorControlFailed(); + set({ supervisorControlError: formatRequestError(error, 'Could not read supervisor task status.') }); + // Keep the failure available for diagnostics; normal worker HTTP/WS + // connectivity owns the visible connection state. Failed legacy probes + // back off instead of repeatedly hitting an absent control listener. } finally { ticket.finish(); supervisorQueueRequest = null; diff --git a/src/stores/useWebsocketStore.ts b/src/stores/useWebsocketStore.ts index 1c08c0e4..3e09f31b 100644 --- a/src/stores/useWebsocketStore.ts +++ b/src/stores/useWebsocketStore.ts @@ -7,6 +7,8 @@ import config from '../../app.config'; import { useFlowStore } from './useFlowStore'; import { useSettingsStore } from './useSettingsStore'; import { handleWebsocketMessage, parseWebsocketMessage } from './websocketMessageHandler'; +import { requestJson } from '../utils/requestJson'; +import { beginWorkerControlRead, parseWorkerControl, updateWorkerControl } from '../utils/supervisorControl'; export type WebsocketState = { address: string | null; @@ -23,156 +25,159 @@ export type WebsocketState = { send: (message: unknown) => void; }; -export const useWebsocketStore = create((set, get) => ({ - address: null, - sid: null, - ws: null, - isConnected: false, - isConnecting: false, - connectionTimer: undefined, - loopTimer: undefined, - reconnectAttempts: 0, - - connect: async () => { - if (get().isConnecting) { - console.info('Already connecting to websocket'); - return; - } - set({ isConnecting: true }); - - const timeout = get().connectionTimer; - const loopTimer = get().loopTimer; - if (timeout) { - clearTimeout(timeout); - set({ connectionTimer: undefined }); - } - if (loopTimer) { - clearTimeout(loopTimer); - set({ loopTimer: undefined }); - } - - const curr_ws = get().ws; - if (curr_ws && curr_ws.readyState < WebSocket.CLOSING) { - console.warn('Closing existing websocket before creating a new one'); - curr_ws.onclose = null; - curr_ws.close(); - set({ sid: null, ws: null, isConnected: false }); - } - - const sid = nanoid(10); - const address = get().address || config.serverAddress.replace('http', 'ws'); - if (!address) { - console.error('Cannot connect to websocket: No address provided'); - return; +export const useWebsocketStore = create((set, get) => { + let generation = 0; + let healthProbe: AbortController | undefined; + + const clearPendingConnectionWork = () => { + clearTimeout(get().connectionTimer); + clearTimeout(get().loopTimer); + healthProbe?.abort(); + healthProbe = undefined; + set({ connectionTimer: undefined, loopTimer: undefined }); + }; + + const probeBackend = async (owner: number) => { + if (owner !== generation) return; + const controller = new AbortController(); + const controlRead = beginWorkerControlRead(); + healthProbe = controller; + try { + const address = (get().address || config.serverAddress).replace(/^ws/, 'http'); + const status = await requestJson(`${address}/health`, { + signal: controller.signal, + timeoutMs: 5000, + parse: (value) => { + if (!value || typeof value !== 'object' || !('error' in value) || !('ready' in value)) { + throw new Error('Invalid backend health response.'); + } + if (value.error !== false || typeof value.ready !== 'boolean') { + throw new Error('Invalid backend health response.'); + } + return { + ready: value.ready, + workerControl: parseWorkerControl('workerControl' in value ? value.workerControl : undefined), + }; + }, + }); + if (owner !== generation || controller.signal.aborted) return; + updateWorkerControl(status.workerControl, controlRead); + if (!status.ready) throw new Error('The backend is still starting.'); + // Only a successful websocket handshake resets its retry budget. + get().connect(); + } catch { + if (owner !== generation || controller.signal.aborted) return; + const timer = setTimeout( + () => { + if (owner !== generation) return; + set({ connectionTimer: undefined }); + void probeBackend(owner); + }, + 2000 + Math.random() * 1000, + ); + set({ connectionTimer: timer }); + } finally { + if (healthProbe === controller) healthProbe = undefined; } - - // Create a new WebSocket instance - const ws = new WebSocket(`${address}/ws?sid=${sid}`); - set({ address, ws, sid, isConnected: false }); - - ws.onopen = () => { - if (get().ws !== ws) { - console.info('Ignoring stale websocket open'); + }; + + return { + address: null, + sid: null, + ws: null, + isConnected: false, + isConnecting: false, + connectionTimer: undefined, + loopTimer: undefined, + reconnectAttempts: 0, + + connect: () => { + if (get().isConnecting || get().ws?.readyState === WebSocket.OPEN) { return; } - const timeout = get().connectionTimer; - const loopTimer = get().loopTimer; - if (timeout) { - clearTimeout(timeout); - set({ connectionTimer: undefined }); - } - if (loopTimer) { - clearTimeout(loopTimer); - set({ loopTimer: undefined }); + const owner = ++generation; + clearPendingConnectionWork(); + set({ isConnecting: true }); + + const curr_ws = get().ws; + if (curr_ws && curr_ws.readyState < WebSocket.CLOSING) { + curr_ws.onclose = null; + curr_ws.close(); + set({ sid: null, ws: null, isConnected: false }); } - set({ isConnected: true, isConnecting: false, reconnectAttempts: 0 }); - console.info('Websocket connected'); - }; - ws.onclose = () => { - if (get().ws !== ws) { - console.info('Ignoring stale websocket close'); + const sid = nanoid(10); + const address = get().address || config.serverAddress.replace('http', 'ws'); + if (!address) { + console.error('Cannot connect to websocket: No address provided'); + set({ isConnecting: false }); return; } - set({ sid: null, ws: null, isConnected: false, isConnecting: false, connectionTimer: undefined }); - console.info('Websocket disconnected'); - // clear cache status - useFlowStore.getState().updateCacheStatus([]); - useSettingsStore.getState().setRunningState('one_shot'); - clearTimeout(get().connectionTimer); - clearTimeout(get().loopTimer); - const attempts = get().reconnectAttempts; - const delay = 500 * 2 ** attempts + Math.random() * 1000; - // We retry 5 times, if that fails, we try to ping the server via http - // this is to overcome the browser's websocket backoff mechanism - if (attempts < 5) { - const timeout = setTimeout(() => { - set({ reconnectAttempts: attempts + 1 }); - get().connect(); - console.info('Trying to reconnect...'); - }, delay); - set({ connectionTimer: timeout }); - } else { - const ping = () => { - const request = new XMLHttpRequest(); - request.open('GET', `${config.serverAddress}/favicon.ico`, true); - request.send(); - request.onload = () => { - // server should be alive, try to reconnect the websocket - get().connect(); - set({ reconnectAttempts: 0, connectionTimer: undefined }); - }; - request.onerror = () => { - const timeout = setTimeout( - () => { - ping(); - console.info('Server is still offline. Trying to reconnect...'); - }, - 2000 + Math.random() * 1000, - ); - set({ connectionTimer: timeout }); - }; - }; - ping(); - } - }; - ws.onmessage = (event) => { - if (get().ws !== ws) { - console.warn('Ignoring message from stale websocket'); - return; - } - const message = parseWebsocketMessage(event.data); - if (!message) { - console.warn('Ignoring invalid websocket message'); - return; - } - const sid = get().sid; - handleWebsocketMessage(message, { - sid, - ws, - getSid: () => get().sid, - setSid: (nextSid) => set({ sid: nextSid }), - setLoopTimer: (loopTimer) => set({ loopTimer }), - }); - }; - }, + // Create a new WebSocket instance + const ws = new WebSocket(`${address}/ws?sid=${sid}`); + set({ address, ws, sid, isConnected: false }); + + ws.onopen = () => { + if (owner !== generation || get().ws !== ws) { + return; + } + clearPendingConnectionWork(); + set({ isConnected: true, isConnecting: false, reconnectAttempts: 0 }); + console.info('Websocket connected'); + }; - disconnect: () => { - const timeout = get().connectionTimer; - if (timeout) { - clearTimeout(timeout); - } - const loopTimer = get().loopTimer; - if (loopTimer) { - clearTimeout(loopTimer); - } + ws.onclose = () => { + if (owner !== generation || get().ws !== ws) { + return; + } + clearPendingConnectionWork(); + set({ sid: null, ws: null, isConnected: false, isConnecting: false }); + console.info('Websocket disconnected'); + // clear cache status + useFlowStore.getState().updateCacheStatus([]); + useSettingsStore.getState().setRunningState('one_shot'); + const attempts = get().reconnectAttempts; + const delay = 500 * 2 ** attempts + Math.random() * 1000; + // We retry 5 times, if that fails, we try to ping the server via http + // this is to overcome the browser's websocket backoff mechanism + if (attempts < 5) { + const timeout = setTimeout(() => { + if (owner !== generation) return; + set({ reconnectAttempts: attempts + 1 }); + get().connect(); + }, delay); + set({ connectionTimer: timeout }); + } else { + void probeBackend(owner); + } + }; - set((state) => { - if (state.ws) { - state.ws.close(); - } - return { + ws.onmessage = (event) => { + if (owner !== generation || get().ws !== ws) { + return; + } + const message = parseWebsocketMessage(event.data); + if (!message) { + console.warn('Ignoring invalid websocket message'); + return; + } + const sid = get().sid; + handleWebsocketMessage(message, { + sid, + ws, + getSid: () => get().sid, + setSid: (nextSid) => set({ sid: nextSid }), + setLoopTimer: (loopTimer) => set({ loopTimer }), + }); + }; + }, + + disconnect: () => { + generation += 1; + clearPendingConnectionWork(); + const ws = get().ws; + set({ sid: null, ws: null, isConnected: false, @@ -180,16 +185,22 @@ export const useWebsocketStore = create((set, get) => ({ connectionTimer: undefined, loopTimer: undefined, reconnectAttempts: 0, - }; - }); - }, - - send: (message: unknown) => { - const ws = get().ws; - if (!ws || ws.readyState !== WebSocket.OPEN) { - console.error('Websocket is not ready, cannot send message'); - return; - } - ws.send(JSON.stringify(message)); - }, -})); + }); + if (ws) { + ws.onopen = null; + ws.onclose = null; + ws.onmessage = null; + ws.close(); + } + }, + + send: (message: unknown) => { + const ws = get().ws; + if (!ws || ws.readyState !== WebSocket.OPEN) { + console.error('Websocket is not ready, cannot send message'); + return; + } + ws.send(JSON.stringify(message)); + }, + }; +}); diff --git a/src/stores/websocketMessageHandler.ts b/src/stores/websocketMessageHandler.ts index 1826edc6..0551ff05 100644 --- a/src/stores/websocketMessageHandler.ts +++ b/src/stores/websocketMessageHandler.ts @@ -599,6 +599,29 @@ export function handleWebsocketMessage(message: WebsocketMessage, context: Webso case 'auto_resource_cleanup': case 'runtime_resource_cleanup': { console.info('Runtime resource cleanup', message); + if (message.performed === false && message.message && message.task_id) { + const tasks = useTaskStore.getState(); + const current = tasks.currentTask; + if ( + current?.task_id === message.task_id && + !terminalNodeProgressTaskIds.has(message.task_id) && + !['completed', 'failed', 'cancelled'].includes(current.status ?? '') + ) { + tasks.updateProgress(message.task_id, current.progress ?? 0, message.message); + if ( + shouldApplyWorkflowCanvasMutation( + { + ...message, + client_run_id: message.client_run_id ?? current.client_run_id, + workflow_tab_id: message.workflow_tab_id ?? current.workflow_tab_id, + }, + context, + ) + ) { + enqueueSnackbar(message.message, { variant: 'info', autoHideDuration: 4500 }); + } + } + } if (message.performed) { const reason = message.reasons?.filter(Boolean).join('; '); enqueueSnackbar(reason ? `Released stale runtime resources: ${reason}` : 'Released stale runtime resources.', { diff --git a/src/studio/controlledWorkflowValues.ts b/src/studio/controlledWorkflowValues.ts new file mode 100644 index 00000000..ffc3b66a --- /dev/null +++ b/src/studio/controlledWorkflowValues.ts @@ -0,0 +1,38 @@ +import type { StudioTemplateLoraSettings, StudioTemplateWorkflowBlockSettings } from './types'; + +export type ControlledFieldValue = { fields: string[]; value: unknown }; + +/** Exact settings shared by managed recipes and fresh operation graphs. */ +export function loraWorkflowFieldValues( + adapter: StudioTemplateLoraSettings | undefined, + index: number, +): ControlledFieldValue[] { + const values: ControlledFieldValue[] = [ + { fields: ['scale'], value: adapter?.scale ?? 1 }, + { fields: ['replace_existing'], value: index === 0 }, + ]; + if (adapter?.model) + values.push( + { fields: ['model', 'adapter_path'], value: { source: adapter.model.source, value: adapter.model.value } }, + { fields: ['revision'], value: adapter.model.revision ?? '' }, + { fields: ['expected_sha256'], value: adapter.model.sha256 ?? '' }, + ); + if (adapter?.weightName) values.push({ fields: ['weight_name'], value: adapter.weightName }); + if (adapter?.adapterName) values.push({ fields: ['adapter_name'], value: adapter.adapterName }); + if (index === 0 && adapter?.schedulerClass) + values.push({ fields: ['scheduler_class'], value: adapter.schedulerClass }); + if (index === 0 && adapter?.schedulerConfig) + values.push({ fields: ['scheduler_config'], value: JSON.stringify(adapter.schedulerConfig) }); + return values; +} + +export function upscaleWorkflowFieldValues( + settings: StudioTemplateWorkflowBlockSettings['upscaler'] | undefined, + device: string, +): ControlledFieldValue[] { + return [ + { fields: ['device'], value: device }, + ...(settings?.model ? [{ fields: ['model_id'], value: settings.model }] : []), + ...(settings?.downscale !== undefined ? [{ fields: ['downscale'], value: settings.downscale }] : []), + ]; +} diff --git a/src/studio/controlledWorkflows.ts b/src/studio/controlledWorkflows.ts index 3667aa49..2a817f73 100644 --- a/src/studio/controlledWorkflows.ts +++ b/src/studio/controlledWorkflows.ts @@ -23,6 +23,7 @@ import { type ControlledNodeRole, } from './controlledWorkflowContracts'; import { resolveStudioResourceForm } from './resourcePlanner'; +import { loraWorkflowFieldValues, upscaleWorkflowFieldValues } from './controlledWorkflowValues'; import type { StudioAudioFitSettings, StudioFormState, @@ -323,22 +324,7 @@ export async function addLoraWorkflowBlock( x: basePosition.x + index * 310, y: basePosition.y, }); - setParamIfPresent(nodeId, ['scale'], adapter?.scale ?? 1); - setParamIfPresent(nodeId, ['replace_existing'], index === 0); - if (adapter?.model) { - setParamIfPresent(nodeId, ['model', 'adapter_path'], { - source: adapter.model.source, - value: adapter.model.value, - }); - setParamIfPresent(nodeId, ['revision'], adapter.model.revision ?? ''); - setParamIfPresent(nodeId, ['expected_sha256'], adapter.model.sha256 ?? ''); - } - if (adapter?.weightName) { - setParamIfPresent(nodeId, ['weight_name'], adapter.weightName); - } - if (adapter?.adapterName) { - setParamIfPresent(nodeId, ['adapter_name'], adapter.adapterName); - } + for (const { fields, value } of loraWorkflowFieldValues(adapter, index)) setParamIfPresent(nodeId, fields, value); return nodeId; }); const primaryLoraNode = loraNodes[0]; @@ -349,12 +335,6 @@ export async function addLoraWorkflowBlock( }); setParamIfPresent(audioPipelineNode, ['revision'], settings.baseModel.revision ?? ''); } - if (settings?.schedulerClass) { - setParamIfPresent(primaryLoraNode, ['scheduler_class'], settings.schedulerClass); - } - if (settings?.schedulerConfig) { - setParamIfPresent(primaryLoraNode, ['scheduler_config'], JSON.stringify(settings.schedulerConfig)); - } let connected = false; if (usesDirectDiffusersImage || usesDirectDiffusersAudio) { const flow = useFlowStore.getState(); @@ -453,13 +433,8 @@ export async function addUpscaleWorkflowBlock( 'upscaler', positionNear(decodeNode ?? directImageNode ?? videoDeliverySource, { x: 930, y: 170 }, { x: 330, y: 250 }), ); - setParamIfPresent(upscalerNode, ['device'], form.device); - if (settings?.model) { - setParamIfPresent(upscalerNode, ['model_id'], settings.model); - } - if (settings?.downscale !== undefined) { - setParamIfPresent(upscalerNode, ['downscale'], settings.downscale); - } + for (const { fields, value } of upscaleWorkflowFieldValues(settings, form.device)) + setParamIfPresent(upscalerNode, fields, value); if (qualityVideoGenerateNode && qualityVideoRetainNode) { removeEdgesBetween(qualityVideoGenerateNode.id, qualityVideoRetainNode.id, ['video_out'], ['video']); const generateConnected = ensureConnection(qualityVideoGenerateNode.id, ['video_out'], upscalerNode, ['image']); diff --git a/src/studio/effectiveControls.ts b/src/studio/effectiveControls.ts new file mode 100644 index 00000000..41225dfc --- /dev/null +++ b/src/studio/effectiveControls.ts @@ -0,0 +1,21 @@ +import { exactStudioExecutionSpecForForm } from './executionSpecs'; +import type { StudioFormState, StudioModelProfile, StudioTemplate } from './types'; + +export function studioSupportsStrength( + form: Pick, + capabilities: readonly StudioModelProfile[], + template?: StudioTemplate, +): boolean { + if (!/(?:image_to_image|edit_image|inpaint(?:ing)?|outpaint)$/.test(form.mode)) return false; + const selection = + template?.modelType === form.modelType && template.mode === form.mode ? template.executionSelection : undefined; + const spec = exactStudioExecutionSpecForForm(capabilities, false, selection?.bindingSpec ?? form); + if ( + selection && + (spec?.pipelineClass !== selection.pipelineClass || spec.executionProfileId !== selection.executionProfileId) + ) + return false; + // An image input or an aggregate node port does not establish that the + // selected task consumes this control. Use the reviewed execution binding. + return spec?.bindings.some(([, , source]) => source === 'strength') === true; +} diff --git a/src/studio/executionSpecValues.ts b/src/studio/executionSpecValues.ts new file mode 100644 index 00000000..1164154a --- /dev/null +++ b/src/studio/executionSpecValues.ts @@ -0,0 +1,207 @@ +import { formPatchForAutoCandidate, type StudioAutoResourceCandidate } from './autoResource'; +import { getModelRequirementsForMode, WAN_VACE_REVISION } from './modelProfiles'; +import type { StudioExecutionSpec, StudioFormState, StudioModelProfile, StudioMode } from './types'; + +/** Shared semantic values for backend-declared bindings; no graph mutation or authority. */ +export function resolveStudioExecutionSpecValues( + form: StudioFormState, + spec: StudioExecutionSpec, + capability: StudioModelProfile | undefined, + options: { + candidate?: StudioAutoResourceCandidate | null; + audioTemplateBaseModel?: string | null; + seed?: number | { value: number; isRandom: boolean }; + defaultModelRevision?: string; + } = {}, +) { + const candidate = options.candidate ?? null; + const audioTemplateBaseModel = options.audioTemplateBaseModel ?? null; + const quantizationMode = form.resourceMode === 'expert' ? form.quantizationMode : 'none'; + const bindsDefaultRevision = spec.bindings.some(([, , source]) => source === 'defaultRevision'); + const defaultRevision = options.defaultModelRevision + ? [options.defaultModelRevision] + : (capability?.revisionCandidates ?? []); + if (bindsDefaultRevision && defaultRevision.length !== 1) { + throw new Error('The Studio execution specification requires one reviewed default model revision.'); + } + const bindsAuxiliaryModel = spec.bindings.some(([, , source]) => ['kind', 'repo', 'revision'].includes(source)); + const auxiliaryRequirements = capability ? getModelRequirementsForMode(capability, form.mode) : []; + if (bindsAuxiliaryModel && auxiliaryRequirements.length !== 1) { + throw new Error('The Studio execution specification requires one reviewed auxiliary model.'); + } + const auxiliaryRequirement = auxiliaryRequirements[0]; + if (bindsAuxiliaryModel && !auxiliaryRequirement?.revision) { + throw new Error('The reviewed auxiliary model requires an immutable revision.'); + } + const bindsMotionAdapter = spec.bindings.some(([, , source]) => + ['motionAdapterRepo', 'motionAdapterRevision'].includes(source), + ); + const motionAdapters = auxiliaryRequirements.filter((requirement) => requirement.kind === 'adapter'); + if (bindsMotionAdapter && motionAdapters.length !== 1) { + throw new Error('The Studio execution specification requires one reviewed motion adapter.'); + } + const motionAdapter = motionAdapters[0]; + if (bindsMotionAdapter && !motionAdapter?.revision) { + throw new Error('The reviewed motion adapter requires an immutable revision.'); + } + const controlnetRequirement = auxiliaryRequirements.find((requirement) => requirement.kind === 'controlnet'); + const ipAdapterRequirement = auxiliaryRequirements.find((requirement) => requirement.id === 'sdxl-ip-adapter'); + const bindsReviewedControlnet = spec.bindings.some(([, , source]) => source === 'controlnetRepo'); + const bindsReviewedIPAdapter = spec.bindings.some(([, , source]) => source === 'ipAdapterRepo'); + if (bindsReviewedControlnet && !controlnetRequirement?.revision) { + throw new Error('The reviewed ControlNet component requires one immutable dependency.'); + } + if (bindsReviewedIPAdapter && !ipAdapterRequirement?.revision) { + throw new Error('The reviewed IP-Adapter component requires one immutable dependency.'); + } + const unionControlnet = form.mode.includes('control_union'); + const hasDistinctLastImage = spec.bindings.some(([, , source]) => source === 'lastImage'); + const values: Record = { + ...form, + referenceImages: hasDistinctLastImage ? form.referenceImages.slice(0, 1) : [...form.referenceImages], + quantizationMode, + quantizedComponents: ['transformer'], + deviceMapNone: 'none', + attentionBackend: + typeof form.attentionBackend === 'string' && form.attentionBackend.trim() ? form.attentionBackend : 'auto', + nativeMath: '_native_math', + empty: '', + true: true, + false: false, + depth: 'depth', + addAlpha: 'add alpha', + removeAlpha: 'remove alpha', + regionalCompile: false, + denoiserCache: 'none', + layerwiseCasting: false, + channelsLast: false, + artifact: audioTemplateBaseModel ?? spec.defaultRepo, + defaultRevision: defaultRevision[0], + pipelineClass: spec.pipelineClass, + executionProfileId: spec.executionProfileId, + defaultWorkflow: 'default', + workflowId: + ( + { + image_to_image: 'img2img', + text_to_video: 'text2video', + image_to_video: 'image2video', + video_to_video: 'video2video', + } as Partial> + )[spec.mode] ?? 'text2image', + semanticGeneratorBlock: 'semantic_generator', + workflowPromptEnhancerBlock: 'prompt_enhancer', + workflowTextEncoderBlock: 'text_encoder', + workflowImageEncoderBlock: 'vae_encoder', + workflowDenoiseBlock: 'denoise', + workflowDecodeBlock: 'decode', + kind: auxiliaryRequirement?.kind, + repo: auxiliaryRequirement ? { source: 'hub', value: auxiliaryRequirement.repo } : undefined, + revision: auxiliaryRequirement?.revision, + controlnetKind: controlnetRequirement?.kind, + controlnetRepo: controlnetRequirement ? { source: 'hub', value: controlnetRequirement.repo } : undefined, + controlnetRevision: controlnetRequirement?.revision, + controlnetOffloadMode: 'none', + controlnetWeightVariant: unionControlnet ? '' : 'fp16', + controlnetRouteVariant: unionControlnet ? 'union' : 'ordinary', + controlnetLoadClass: unionControlnet ? 'ControlNetUnionModel' : '', + ipAdapterRepo: ipAdapterRequirement ? { source: 'hub', value: ipAdapterRequirement.repo } : undefined, + ipAdapterRevision: ipAdapterRequirement?.revision, + ipAdapterWeightName: ipAdapterRequirement ? 'sdxl_models/ip-adapter_sdxl.safetensors' : undefined, + classifierFreeGuidance: 'ClassifierFreeGuidance', + motionAdapterRepo: motionAdapter ? { source: 'hub', value: motionAdapter.repo } : undefined, + motionAdapterRevision: motionAdapter?.revision, + wanVaceRevision: WAN_VACE_REVISION, + cannyLowThreshold: 0.1, + cannyHighThreshold: 0.2, + videoCannyLowThreshold100: 100, + videoCannyHighThreshold200: 200, + controlGuidanceStart: 0, + controlGuidanceEnd: 1, + resolution: form.width, + cfgNormalize: false, + useEnglishPrompt: false, + maskThreshold127: 127, + inpaintMaskGrow96: 96, + outpaintMaskGrow0: 0, + text2music: 'text2music', + text2audio: 'text2audio', + cover: 'cover', + continuation: 'continuation', + repaint: 'repaint', + transcribe: 'transcribe', + translate: 'translate', + anyToAnyText: 'text', + anyToAnyImage: 'image', + maxNewTokens: 256, + minNewTokens: 0, + doSample: false, + temperature: 1, + topP: 1, + topK: 50, + numBeams: 1, + repetitionPenalty: 1, + useChatTemplate: true, + bpmNormalized: form.bpm > 0 ? form.bpm : 0, + sampleRate16000: 16000, + sampleRate24000: 24000, + sampleRate44100: 44100, + sampleRate48000: 48000, + numWaveforms1: 1, + numWaveforms3: 3, + referenceWindow15: 15, + targetPeakMinus1: -1, + maxAdjustment12: 12, + boundaryFade001: 0.01, + lastImage: hasDistinctLastImage ? (form.referenceImages[1] ?? '') : '', + poseVideo: '', + faceVideo: '', + backgroundVideo: '', + promptRef: '人物动作的参考视频', + segmentFrameLength: 81, + previousConditioningFrames: 1, + segmentFrameLength77: 77, + previousConditioningFrames1: 1, + motionEncodeBatchSize1: 1, + temporalTileSize80: 80, + temporalOverlap24: 24, + temporalOverlapConditionStrength05: 0.5, + adainFactor025: 0.25, + framepackSampling: 'inverted_anti_drifting', + latentWindowSize9: 9, + trueCfgScale1: 1, + seed: options.seed ?? { value: form.seed, isRandom: form.randomSeed }, + }; + const candidateValues: Record = { + ...candidate, + ...formPatchForAutoCandidate(candidate), + 'installTarget.repo': candidate?.installTarget?.repo, + }; + for (const field of [...spec.autoFields].reverse()) { + if ( + audioTemplateBaseModel && + (field === 'resolvedArtifact' || field === 'artifact' || field === 'installTarget.repo' || field === 'modelRepo') + ) + continue; + const value = candidateValues[field]; + if (value === undefined) continue; + values[ + field === 'resolvedArtifact' || field === 'artifact' || field === 'installTarget.repo' || field === 'modelRepo' + ? 'artifact' + : field + ] = value; + } + values.pipelineQuantizedComponents = quantizationMode === 'none' ? [] : values.quantizedComponents; + values.autoOffload = values.offloadMode !== 'none'; + values.nativeFlashAttention = + candidate?.attentionBackend ?? (form.device.startsWith('cuda') ? '_native_flash' : 'auto'); + values.transformer = values.nativeFlashAttention === '_native_flash' ? 'transformer' : ''; + values.dualTransformer = values.nativeFlashAttention === '_native_flash' ? 'transformer,transformer_2' : ''; + values.dualQuantizedComponents = candidate?.quantizedComponents ?? ['transformer', 'transformer_2']; + values.videoVaeTiling = + form.resourceMode !== 'expert' || + values.offloadMode !== 'none' || + form.width * form.height * form.numFrames > 40_000_000; + values.useGuidanceScale2 = form.guidanceScale2 > 0; + return values; +} diff --git a/src/studio/executionSpecs.ts b/src/studio/executionSpecs.ts index 6d4a7742..d0e3f29b 100644 --- a/src/studio/executionSpecs.ts +++ b/src/studio/executionSpecs.ts @@ -33,7 +33,7 @@ const SPEC_ROLES = listed( 'models|prompt|promptEnhance|beforeEncode|textEncode|duration|conditionEncode|referenceEncode|imageEmbeddings|imageEncode|videoEncode|loadLastImage|controlnetModel|controlnet|loadIPAdapterImage|guider|ipAdapter|denoise|decode|afterDecode|diffusersQuantization|diffusersRecipe|diffusersImagePipeline|diffusersImageGenerate|diffusersUnconditionalGenerate|diffusersPredictMap|diffusersThreeDPipeline|diffusersThreeDGenerate|loadImage|loadControlImage|controlPreprocessor|loadMask|qwenOutpaintCanvas|outpaintCanvas|diffusersImageControl|diffusersImageControlEdit|diffusersImageControlInpaint|diffusersImageLayerDecompose|diffusersImageEdit|diffusersImageInpaint|preview|wanPipeline|wanGenerate|videoExport|loadVideo|loadReferenceVideo|loadControlVideo|loadMaskVideo|loadPoseVideo|loadFaceVideo|loadBackgroundVideo|normalizeVideo|normalizeReferenceVideo|normalizeControlVideo|referencePreprocessor|alignMaskVideo|audioPipeline|audioGenerate|audioExport|loadAudio|loadReferenceAudio|audioLoudnessMatch|audioJoin|audioOperation|dataOperation|dataPreview|dataExport|speechModel|transcribeAudio|transcriptPreview|transformersTextModel|transformersTextGenerate|transformersImageTextModel|transformersImageTextGenerate|transformersAnyToAnyModel|transformersAnyToAnyGenerate|transformersTextPreview|imageOperation|imageUpscaler|videoOperation|videoUpscaler', ); const BINDING_SOURCES = listed( - 'quantizationMode|quantizedComponents|dualQuantizedComponents|pipelineQuantizedComponents|dtype|deviceMapNone|offloadMode|device|attentionBackend|nativeFlashAttention|nativeMath|empty|true|false|ordinary|fp16|transformer|dualTransformer|videoVaeTiling|regionalCompile|denoiserCache|layerwiseCasting|channelsLast|artifact|defaultRevision|modelVariant|pipelineClass|executionProfileId|defaultWorkflow|workflowId|semanticGeneratorBlock|workflowPromptEnhancerBlock|workflowBeforeEncodeBlock|workflowTextEncoderBlock|workflowImageEncoderBlock|workflowVaeEncoderBlock|workflowImageEmbeddingsBlock|workflowDenoiseBlock|workflowDecodeBlock|workflowAfterDecodeBlock|kind|repo|revision|adapterWeightName|controlnetKind|controlnetRepo|controlnetRevision|controlnetWeightVariant|controlnetRouteVariant|controlnetLoadClass|ipAdapterRepo|ipAdapterRevision|ipAdapterWeightName|classifierFreeGuidance|motionAdapterRepo|motionAdapterRevision|wanVaceRevision|mode|autoOffload|prompt|negativePrompt|promptRef|width|height|optionalWidth|optionalHeight|seed|steps|distilledSteps4|guidanceScale|distilledGuidance1|pagScale|pagAdaptiveScale|processingResolution|matchInputResolution|depth|batchSize|eta|classLabel|strength|layers|resolution|cfgNormalize|useEnglishPrompt|outputType|maxSequenceLength|controlImage|controlMode|ipAdapterImage|ipAdapterScale|references|referenceImages|conditionImages|lastImage|maskImage|paddingMaskCrop|outpaintLeft|outpaintRight|outpaintTop|outpaintBottom|outpaintOverlap|outpaintFeather|outpaintFillColor|sourceVideo|referenceVideos|controlVideo|maskVideo|poseVideo|faceVideo|backgroundVideo|maskThreshold127|inpaintMaskGrow96|outpaintMaskGrow0|conditioningScale|controlGuidanceStart|controlGuidanceEnd|cannyLowThreshold|cannyHighThreshold|videoCannyLowThreshold100|videoCannyHighThreshold200|alphaMode|addAlpha|removeAlpha|oneFrame|numFrames|requiredNumFrames|shift|fps|guidanceScale2|useGuidanceScale2|attentionKwargsJson|oneVideo|segmentFrameLength|previousConditioningFrames|segmentFrameLength77|previousConditioningFrames1|motionEncodeBatchSize1|temporalTileSize80|temporalOverlap24|temporalOverlapConditionStrength05|adainFactor025|framepackSampling|latentWindowSize9|trueCfgScale1|text2music|text2audio|cover|continuation|repaint|transcribe|translate|anyToAnyText|anyToAnyImage|sourceAudio|referenceAudio|speechLanguage|speechTimestamps|speechChunkSeconds|speechStrideSeconds|maxNewTokens|minNewTokens|doSample|temperature|topP|topK|numBeams|repetitionPenalty|useChatTemplate|lyrics|audioDuration|extensionDuration|vocalLanguage|bpmNormalized|keyscale|timesignature|repaintingStart|repaintingEnd|audioCoverStrength|sampleRate16000|sampleRate24000|sampleRate44100|sampleRate48000|numWaveforms1|numWaveforms3|referenceWindow15|targetPeakMinus1|maxAdjustment12|boundaryFade001', + 'quantizationMode|quantizedComponents|dualQuantizedComponents|pipelineQuantizedComponents|dtype|deviceMapNone|offloadMode|device|attentionBackend|nativeFlashAttention|nativeMath|empty|true|false|ordinary|fp16|transformer|dualTransformer|videoVaeTiling|regionalCompile|denoiserCache|layerwiseCasting|channelsLast|artifact|defaultRevision|modelVariant|pipelineClass|executionProfileId|defaultWorkflow|workflowId|semanticGeneratorBlock|workflowPromptEnhancerBlock|workflowBeforeEncodeBlock|workflowTextEncoderBlock|workflowImageEncoderBlock|workflowVaeEncoderBlock|workflowImageEmbeddingsBlock|workflowDenoiseBlock|workflowDecodeBlock|workflowAfterDecodeBlock|kind|repo|revision|adapterWeightName|controlnetKind|controlnetRepo|controlnetRevision|controlnetOffloadMode|controlnetWeightVariant|controlnetRouteVariant|controlnetLoadClass|ipAdapterRepo|ipAdapterRevision|ipAdapterWeightName|classifierFreeGuidance|motionAdapterRepo|motionAdapterRevision|wanVaceRevision|mode|autoOffload|prompt|negativePrompt|promptRef|width|height|optionalWidth|optionalHeight|seed|steps|distilledSteps4|guidanceScale|distilledGuidance1|pagScale|pagAdaptiveScale|processingResolution|matchInputResolution|depth|batchSize|eta|classLabel|strength|layers|resolution|cfgNormalize|useEnglishPrompt|outputType|maxSequenceLength|controlImage|controlMode|ipAdapterImage|ipAdapterScale|references|referenceImages|conditionImages|lastImage|maskImage|paddingMaskCrop|outpaintLeft|outpaintRight|outpaintTop|outpaintBottom|outpaintOverlap|outpaintFeather|outpaintFillColor|sourceVideo|referenceVideos|controlVideo|maskVideo|poseVideo|faceVideo|backgroundVideo|maskThreshold127|inpaintMaskGrow96|outpaintMaskGrow0|conditioningScale|controlGuidanceStart|controlGuidanceEnd|cannyLowThreshold|cannyHighThreshold|videoCannyLowThreshold100|videoCannyHighThreshold200|alphaMode|addAlpha|removeAlpha|oneFrame|numFrames|requiredNumFrames|shift|fps|guidanceScale2|useGuidanceScale2|attentionKwargsJson|oneVideo|segmentFrameLength|previousConditioningFrames|segmentFrameLength77|previousConditioningFrames1|motionEncodeBatchSize1|temporalTileSize80|temporalOverlap24|temporalOverlapConditionStrength05|adainFactor025|framepackSampling|latentWindowSize9|trueCfgScale1|text2music|text2audio|cover|continuation|repaint|transcribe|translate|anyToAnyText|anyToAnyImage|sourceAudio|referenceAudio|speechLanguage|speechTimestamps|speechChunkSeconds|speechStrideSeconds|maxNewTokens|minNewTokens|doSample|temperature|topP|topK|numBeams|repetitionPenalty|useChatTemplate|lyrics|audioDuration|extensionDuration|vocalLanguage|bpmNormalized|keyscale|timesignature|repaintingStart|repaintingEnd|audioCoverStrength|sampleRate16000|sampleRate24000|sampleRate44100|sampleRate48000|numWaveforms1|numWaveforms3|referenceWindow15|targetPeakMinus1|maxAdjustment12|boundaryFade001', ); const AUTO_FIELDS = listed( 'resolvedArtifact|artifact|installTarget.repo|modelRepo|pipelineClass|dtype|offloadMode|quantizedComponents|attentionBackend|regionalCompile|denoiserCache|layerwiseCasting|channelsLast', diff --git a/src/studio/graphBridge.ts b/src/studio/graphBridge.ts index 0839bcb3..08d6fda2 100644 --- a/src/studio/graphBridge.ts +++ b/src/studio/graphBridge.ts @@ -36,11 +36,11 @@ import { AUDIO_STUDIO_MODES, STUDIO_MODEL_PROFILES, VIDEO_STUDIO_MODES, - WAN_VACE_REVISION, getModelRequirementsForMode, } from './modelProfiles'; import { formPatchForAutoCandidate, selectedAutoCandidate } from './autoResource'; import { exactStudioExecutionProfileForForm, exactStudioExecutionSpecForForm } from './executionSpecs'; +import { resolveStudioExecutionSpecValues } from './executionSpecValues'; import { syncManagedFormControlAliases } from './managedControlSync'; import { resolveStudioResourceForm } from './resourcePlanner'; import { hashString, stableStringify } from './templateExactness'; @@ -3370,197 +3370,19 @@ function applyExecutionSpecValues(binding: StudioGraphBinding, form: StudioFormS if (candidate && candidate.executionProfileId !== spec.executionProfileId) { throw new Error('The selected Auto candidate does not match the Studio execution specification.'); } - const quantizationMode = form.resourceMode === 'expert' ? form.quantizationMode : 'none'; const audioTemplateBaseModel = binding.nodes.audioPipeline ? activeAudioTemplateBaseModel() : null; const capability = useNodesStore.getState().studioModelCapabilities.find((item) => item.modelType === spec.modelType); - const bindsDefaultRevision = spec.bindings.some(([, , source]) => source === 'defaultRevision'); - const defaultRevision = capability?.revisionCandidates ?? []; - if (bindsDefaultRevision && defaultRevision.length !== 1) { - throw new Error('The Studio execution specification requires one reviewed default model revision.'); - } - const bindsAuxiliaryModel = spec.bindings.some(([, , source]) => ['kind', 'repo', 'revision'].includes(source)); - const auxiliaryRequirements = capability ? getModelRequirementsForMode(capability, form.mode) : []; - if (bindsAuxiliaryModel && auxiliaryRequirements.length !== 1) { - throw new Error('The Studio execution specification requires one reviewed auxiliary model.'); - } - const auxiliaryRequirement = auxiliaryRequirements[0]; - if (bindsAuxiliaryModel && !auxiliaryRequirement?.revision) { - throw new Error('The reviewed auxiliary model requires an immutable revision.'); - } - const bindsMotionAdapter = spec.bindings.some(([, , source]) => - ['motionAdapterRepo', 'motionAdapterRevision'].includes(source), - ); - const motionAdapters = auxiliaryRequirements.filter((requirement) => requirement.kind === 'adapter'); - if (bindsMotionAdapter && motionAdapters.length !== 1) { - throw new Error('The Studio execution specification requires one reviewed motion adapter.'); - } - const motionAdapter = motionAdapters[0]; - if (bindsMotionAdapter && !motionAdapter?.revision) { - throw new Error('The reviewed motion adapter requires an immutable revision.'); - } - const controlnetRequirement = auxiliaryRequirements.find((requirement) => requirement.kind === 'controlnet'); - const ipAdapterRequirement = auxiliaryRequirements.find((requirement) => requirement.id === 'sdxl-ip-adapter'); - const bindsReviewedControlnet = spec.bindings.some(([, , source]) => source === 'controlnetRepo'); - const bindsReviewedIPAdapter = spec.bindings.some(([, , source]) => source === 'ipAdapterRepo'); - if (bindsReviewedControlnet && !controlnetRequirement?.revision) { - throw new Error('The reviewed ControlNet component requires one immutable dependency.'); - } - if (bindsReviewedIPAdapter && !ipAdapterRequirement?.revision) { - throw new Error('The reviewed IP-Adapter component requires one immutable dependency.'); - } - const unionControlnet = form.mode.includes('control_union'); - const hasDistinctLastImage = spec.bindings.some(([, , source]) => source === 'lastImage'); - const values: Record = { - ...form, - referenceImages: hasDistinctLastImage ? form.referenceImages.slice(0, 1) : [...form.referenceImages], - quantizationMode, - quantizedComponents: ['transformer'], - deviceMapNone: 'none', - attentionBackend: - typeof form.attentionBackend === 'string' && form.attentionBackend.trim() ? form.attentionBackend : 'auto', - nativeMath: '_native_math', - empty: '', - true: true, - false: false, - depth: 'depth', - addAlpha: 'add alpha', - removeAlpha: 'remove alpha', - regionalCompile: false, - denoiserCache: 'none', - layerwiseCasting: false, - channelsLast: false, - artifact: audioTemplateBaseModel ?? spec.defaultRepo, - defaultRevision: defaultRevision[0], - pipelineClass: spec.pipelineClass, - executionProfileId: spec.executionProfileId, - defaultWorkflow: 'default', - workflowId: - ( - { - image_to_image: 'img2img', - text_to_video: 'text2video', - image_to_video: 'image2video', - video_to_video: 'video2video', - } as Partial> - )[spec.mode] ?? 'text2image', - semanticGeneratorBlock: 'semantic_generator', - workflowPromptEnhancerBlock: 'prompt_enhancer', - workflowTextEncoderBlock: 'text_encoder', - workflowImageEncoderBlock: 'vae_encoder', - workflowDenoiseBlock: 'denoise', - workflowDecodeBlock: 'decode', - kind: auxiliaryRequirement?.kind, - repo: auxiliaryRequirement ? { source: 'hub', value: auxiliaryRequirement.repo } : undefined, - revision: auxiliaryRequirement?.revision, - controlnetKind: controlnetRequirement?.kind, - controlnetRepo: controlnetRequirement ? { source: 'hub', value: controlnetRequirement.repo } : undefined, - controlnetRevision: controlnetRequirement?.revision, - controlnetWeightVariant: unionControlnet ? '' : 'fp16', - controlnetRouteVariant: unionControlnet ? 'union' : 'ordinary', - controlnetLoadClass: unionControlnet ? 'ControlNetUnionModel' : '', - ipAdapterRepo: ipAdapterRequirement ? { source: 'hub', value: ipAdapterRequirement.repo } : undefined, - ipAdapterRevision: ipAdapterRequirement?.revision, - ipAdapterWeightName: ipAdapterRequirement ? 'sdxl_models/ip-adapter_sdxl.safetensors' : undefined, - classifierFreeGuidance: 'ClassifierFreeGuidance', - motionAdapterRepo: motionAdapter ? { source: 'hub', value: motionAdapter.repo } : undefined, - motionAdapterRevision: motionAdapter?.revision, - wanVaceRevision: WAN_VACE_REVISION, - cannyLowThreshold: 0.1, - cannyHighThreshold: 0.2, - videoCannyLowThreshold100: 100, - videoCannyHighThreshold200: 200, - controlGuidanceStart: 0, - controlGuidanceEnd: 1, - resolution: form.width, - cfgNormalize: false, - useEnglishPrompt: false, - maskThreshold127: 127, - inpaintMaskGrow96: 96, - outpaintMaskGrow0: 0, - text2music: 'text2music', - text2audio: 'text2audio', - cover: 'cover', - continuation: 'continuation', - repaint: 'repaint', - transcribe: 'transcribe', - translate: 'translate', - anyToAnyText: 'text', - anyToAnyImage: 'image', - maxNewTokens: 256, - minNewTokens: 0, - doSample: false, - temperature: 1, - topP: 1, - topK: 50, - numBeams: 1, - repetitionPenalty: 1, - useChatTemplate: true, - bpmNormalized: form.bpm > 0 ? form.bpm : 0, - sampleRate16000: 16000, - sampleRate24000: 24000, - sampleRate44100: 44100, - sampleRate48000: 48000, - numWaveforms1: 1, - numWaveforms3: 3, - referenceWindow15: 15, - targetPeakMinus1: -1, - maxAdjustment12: 12, - boundaryFade001: 0.01, - lastImage: hasDistinctLastImage ? (form.referenceImages[1] ?? '') : '', - poseVideo: '', - faceVideo: '', - backgroundVideo: '', - promptRef: '人物动作的参考视频', - segmentFrameLength: 81, - previousConditioningFrames: 1, - segmentFrameLength77: 77, - previousConditioningFrames1: 1, - motionEncodeBatchSize1: 1, - temporalTileSize80: 80, - temporalOverlap24: 24, - temporalOverlapConditionStrength05: 0.5, - adainFactor025: 0.25, - framepackSampling: 'inverted_anti_drifting', - latentWindowSize9: 9, - trueCfgScale1: 1, + const values = resolveStudioExecutionSpecValues(form, spec, capability, { + candidate, + audioTemplateBaseModel, seed: seedValue(form), - }; + }); + const bindsAuxiliaryModel = spec.bindings.some(([, , source]) => ['kind', 'repo', 'revision'].includes(source)); if (binding.nodes.diffusersImagePipeline && !bindsAuxiliaryModel) { setParamIfPresent(binding.nodes.diffusersImagePipeline, ['conditioning_kind'], 'none'); setParamIfPresent(binding.nodes.diffusersImagePipeline, ['conditioning_model_id'], ''); setParamIfPresent(binding.nodes.diffusersImagePipeline, ['conditioning_revision'], ''); } - const candidateValues: Record = { - ...candidate, - ...formPatchForAutoCandidate(candidate), - 'installTarget.repo': candidate?.installTarget?.repo, - }; - for (const field of [...spec.autoFields].reverse()) { - if ( - audioTemplateBaseModel && - (field === 'resolvedArtifact' || field === 'artifact' || field === 'installTarget.repo' || field === 'modelRepo') - ) - continue; - const value = candidateValues[field]; - if (value === undefined) continue; - values[ - field === 'resolvedArtifact' || field === 'artifact' || field === 'installTarget.repo' || field === 'modelRepo' - ? 'artifact' - : field - ] = value; - } - values.pipelineQuantizedComponents = quantizationMode === 'none' ? [] : values.quantizedComponents; - values.autoOffload = values.offloadMode !== 'none'; - values.nativeFlashAttention = - candidate?.attentionBackend ?? (form.device.startsWith('cuda') ? '_native_flash' : 'auto'); - values.transformer = values.nativeFlashAttention === '_native_flash' ? 'transformer' : ''; - values.dualTransformer = values.nativeFlashAttention === '_native_flash' ? 'transformer,transformer_2' : ''; - values.dualQuantizedComponents = candidate?.quantizedComponents ?? ['transformer', 'transformer_2']; - values.videoVaeTiling = - form.resourceMode !== 'expert' || - values.offloadMode !== 'none' || - form.width * form.height * form.numFrames > 40_000_000; - values.useGuidanceScale2 = form.guidanceScale2 > 0; for (const [role, param, source] of spec.bindings) { const nodeId = binding.nodes[role]; if (!nodeId || !(param in (getNode(nodeId)?.data.params ?? {}))) continue; diff --git a/src/studio/huggingFaceClusterMaterializer.ts b/src/studio/huggingFaceClusterMaterializer.ts index 04f4ca8f..8c628914 100644 --- a/src/studio/huggingFaceClusterMaterializer.ts +++ b/src/studio/huggingFaceClusterMaterializer.ts @@ -207,6 +207,8 @@ export function resolveHuggingFaceClusterBindingValues( admission.sealedBindingValues.true !== true) || (Object.prototype.hasOwnProperty.call(admission.sealedBindingValues, 'false') && admission.sealedBindingValues.false !== false) || + (Object.prototype.hasOwnProperty.call(admission.sealedBindingValues, 'controlnetOffloadMode') && + admission.sealedBindingValues.controlnetOffloadMode !== 'none') || (Object.prototype.hasOwnProperty.call(admission.sealedBindingValues, 'ordinary') && admission.sealedBindingValues.ordinary !== 'ordinary') || (Object.prototype.hasOwnProperty.call(admission.sealedBindingValues, 'fp16') && diff --git a/src/studio/huggingFaceNodeLibrary.ts b/src/studio/huggingFaceNodeLibrary.ts index 956ca1c6..d9a42255 100644 --- a/src/studio/huggingFaceNodeLibrary.ts +++ b/src/studio/huggingFaceNodeLibrary.ts @@ -328,6 +328,7 @@ const SEALED_EXECUTION_BINDING_SOURCES = new Set([ 'controlnetLoadClass', 'controlnetRepo', 'controlnetRevision', + 'controlnetOffloadMode', 'controlnetRouteVariant', 'controlnetWeightVariant', 'ipAdapterRepo', @@ -983,6 +984,7 @@ function executionAdmissions( if ( !bindingSourceSet.has(source) || !SEALED_EXECUTION_BINDING_SOURCES.has(source) || + (source === 'controlnetOffloadMode' && value !== 'none') || (typeof value !== 'boolean' && (typeof value === 'number' ? !(Number.isSafeInteger(value) || (source === 'boundaryFade001' && value === 0.01)) diff --git a/src/studio/optionalRuntimes.ts b/src/studio/optionalRuntimes.ts index 2e14e462..b6ecf2b4 100644 --- a/src/studio/optionalRuntimes.ts +++ b/src/studio/optionalRuntimes.ts @@ -38,6 +38,7 @@ export type OptionalRuntimeProfileStatus = { status: 'missing' | 'present_unqualified' | 'wrong_version'; overlayStatus: 'active' | 'missing' | 'repair_required' | 'staged' | 'staged_unchecked'; satisfiesProfiles: Array<{ profileId: string; specDigest: string }>; + baseIncluded: boolean; }; export type OptionalRuntimeCatalog = { @@ -48,13 +49,17 @@ export type OptionalRuntimeCatalog = { activeEnvironmentId: string | null; previousEnvironmentId: string | null; installBusy: boolean; + latestJob: OptionalRuntimeJob | null; }; export type OptionalRuntimeJob = { id: string; profileId: string; specDigest: string; - status: 'queued' | 'running' | 'cancelling' | 'cancelled' | 'failed' | 'ready'; + operation: 'install' | 'activate'; + createdAt: number; + updatedAt: number; + status: 'queued' | 'running' | 'cancelling' | 'cancelled' | 'failed' | 'ready' | 'restarting' | 'verifying'; progress: { phase: | 'queued' @@ -62,6 +67,10 @@ export type OptionalRuntimeJob = { | 'downloading' | 'installing' | 'validating' + | 'activating' + | 'restarting' + | 'restart_required' + | 'verifying' | 'promoting' | 'ready' | 'cancelling' @@ -72,6 +81,7 @@ export type OptionalRuntimeJob = { result?: { environmentId: string; requiresActivation: boolean; + restartRequired?: boolean; }; }; @@ -341,6 +351,7 @@ function parseProfile(value: unknown): OptionalRuntimeProfileStatus { string(item.contractState); string(item.status, /^(?:missing|present_unqualified|wrong_version)$/); string(item.overlayStatus, /^(?:active|missing|repair_required|staged|staged_unchecked)$/); + if (item.baseIncluded !== undefined && typeof item.baseIncluded !== 'boolean') invalid(); const rawSatisfiedProfiles = item.satisfiesProfiles ?? []; if (!Array.isArray(rawSatisfiedProfiles) || rawSatisfiedProfiles.length > 32) invalid(); const satisfiesProfiles = rawSatisfiedProfiles.map((rawProfile) => { @@ -355,7 +366,11 @@ function parseProfile(value: unknown): OptionalRuntimeProfileStatus { satisfiesProfiles.length ) invalid(); - return { ...(item as unknown as OptionalRuntimeProfileStatus), satisfiesProfiles }; + return { + ...(item as unknown as OptionalRuntimeProfileStatus), + satisfiesProfiles, + baseIncluded: item.baseIncluded === true, + }; } function nullableId(value: unknown, pattern: RegExp) { @@ -448,24 +463,36 @@ export function parseOptionalRuntimeCatalog(value: unknown): OptionalRuntimeCata activeEnvironmentId, previousEnvironmentId, installBusy: payload.activeInstallJob !== null, + latestJob: payload.latestJob === undefined || payload.latestJob === null ? null : parseJob(payload.latestJob), }; } function parseJob(value: unknown): OptionalRuntimeJob { const item = record(value); const progress = record(item.progress); + const timestamp = (value: unknown) => { + if (value === undefined || value === null) return 0; + if (typeof value !== 'number' || !Number.isFinite(value) || value < 0) invalid(); + return value as number; + }; const parsed: OptionalRuntimeJob = { id: string(item.id, jobId)!, profileId: string(item.profileId, runtimeId)!, specDigest: string(item.specDigest, specDigest)!, + operation: + item.operation === undefined + ? 'install' + : (string(item.operation, /^(?:install|activate)$/) as OptionalRuntimeJob['operation']), + createdAt: timestamp(item.createdAt), + updatedAt: timestamp(item.updatedAt), status: string( item.status, - /^(?:queued|running|cancelling|cancelled|failed|ready)$/, + /^(?:queued|running|cancelling|cancelled|failed|ready|restarting|verifying)$/, ) as OptionalRuntimeJob['status'], progress: { phase: string( progress.phase, - /^(?:queued|copying|downloading|installing|validating|promoting|ready|cancelling|cancelled|failed)$/, + /^(?:queued|copying|downloading|installing|validating|activating|restarting|restart_required|verifying|promoting|ready|cancelling|cancelled|failed)$/, ) as OptionalRuntimeJob['progress']['phase'], message: string(progress.message)!, }, @@ -473,9 +500,11 @@ function parseJob(value: unknown): OptionalRuntimeJob { if (item.result !== undefined) { const result = record(item.result); if (typeof result.requiresActivation !== 'boolean') invalid(); + if (result.restartRequired !== undefined && typeof result.restartRequired !== 'boolean') invalid(); parsed.result = { environmentId: string(result.environmentId, environmentId)!, requiresActivation: result.requiresActivation, + ...(result.restartRequired === undefined ? {} : { restartRequired: result.restartRequired }), }; } return parsed; diff --git a/src/studio/registeredBlockV2AudioRoutes.ts b/src/studio/registeredBlockV2AudioRoutes.ts index 1f99840e..130c5476 100644 --- a/src/studio/registeredBlockV2AudioRoutes.ts +++ b/src/studio/registeredBlockV2AudioRoutes.ts @@ -71,8 +71,8 @@ const ROUTES = [ executionProfileId: 'ace-step-audio:direct', id: 'ace-step-v1.5-xl-turbo:audio-continuation:v1', }, - compiledDefinitionContentHash: 'block-definition-v2-a122f3ae', - compiledDefinitionCanonicalSha256: 'sha256:518e7bd06f19fa048bc80259489a6f297dfb75752626a750f617b42213f202a3', + compiledDefinitionContentHash: 'block-definition-v2-28a52ba4', + compiledDefinitionCanonicalSha256: 'sha256:c25e7ae9e0d0f732ae6073317be30b0d75f748170005b6a1061d31589ac81653', boundary: { inputs: [ { @@ -136,8 +136,8 @@ const ROUTES = [ executionProfileId: 'ace-step-audio:direct', id: 'ace-step-v1.5-xl-turbo:audio-repaint:v1', }, - compiledDefinitionContentHash: 'block-definition-v2-4aa91148', - compiledDefinitionCanonicalSha256: 'sha256:20cc7c0bfa6c2615425c88e764dc8bfd0ab8fb4206e9bad2f27cd7b37ac8590e', + compiledDefinitionContentHash: 'block-definition-v2-26e28c26', + compiledDefinitionCanonicalSha256: 'sha256:3a8a8501b79b93452aea3e5edb8940e19e6471bc31866db7dfa7b25242196096', boundary: { inputs: [ { @@ -206,8 +206,8 @@ const ROUTES = [ executionProfileId: 'ace-step-audio:direct', id: 'ace-step-v1.5-xl-turbo:audio-variation:v1', }, - compiledDefinitionContentHash: 'block-definition-v2-605c81eb', - compiledDefinitionCanonicalSha256: 'sha256:b82bfab972e24e5e081efc39c141e48da7ceaf47193dfa3cdab2a01ec8748321', + compiledDefinitionContentHash: 'block-definition-v2-9434a2ed', + compiledDefinitionCanonicalSha256: 'sha256:75150095ad1cfccdab7dc378c68653dc8601c6992f76e22416f30282d927914d', boundary: { inputs: [ { @@ -276,8 +276,8 @@ const ROUTES = [ executionProfileId: 'ace-step-audio:direct', id: 'ace-step-v1.5-xl-turbo:text-to-audio:v1', }, - compiledDefinitionContentHash: 'block-definition-v2-12928a8a', - compiledDefinitionCanonicalSha256: 'sha256:e4648f5fb334813a41b2a736ff2ab37d9bbc5efd9517d675a5d542f4434f1760', + compiledDefinitionContentHash: 'block-definition-v2-0aca6594', + compiledDefinitionCanonicalSha256: 'sha256:549872dbe554d817b288a9fdf71ba9edba4cef2da05ba1f7654381844ad482d7', boundary: { inputs: [ { @@ -354,8 +354,8 @@ const SOUND_ROUTES = [ valueSource: 'pipelineClass', }, ], - compiledDefinitionContentHash: 'block-definition-v2-ccbbada5', - compiledDefinitionCanonicalSha256: 'sha256:58b7b3f4300b7b598cbe2d8f289095ca7415ef0b6ab3da080f2d33d8447d3602', + compiledDefinitionContentHash: 'block-definition-v2-54a4fc37', + compiledDefinitionCanonicalSha256: 'sha256:a710d1fc3243bf54eff644b8a63ce7cb29f62387d9c571e0da5107be7f17a956', controlFanOuts: [ { source: 'dtype', @@ -468,8 +468,8 @@ const SOUND_ROUTES = [ valueSource: 'pipelineClass', }, ], - compiledDefinitionContentHash: 'block-definition-v2-d01a4269', - compiledDefinitionCanonicalSha256: 'sha256:7f790866397ef4fe361e88d19c9b30240a28755b6c65249bc3ed53ac7948e991', + compiledDefinitionContentHash: 'block-definition-v2-42d1ec43', + compiledDefinitionCanonicalSha256: 'sha256:e3b4398c541550a31f692f98fb6f5fb105a700d0ac01f365a28aaa04f24882a1', controlFanOuts: [ { source: 'dtype', diff --git a/src/studio/registeredBlockV2FanOutRoutes.ts b/src/studio/registeredBlockV2FanOutRoutes.ts index fd81e94c..60f89617 100644 --- a/src/studio/registeredBlockV2FanOutRoutes.ts +++ b/src/studio/registeredBlockV2FanOutRoutes.ts @@ -31,8 +31,8 @@ export const REGISTERED_BLOCK_V2_FANOUT_ROUTES = Object.freeze([ { event: 'onSignal', field: 'unet', role: 'denoise', valueSource: 'pipelineClass' }, { event: 'onSignal', field: 'vae', role: 'decode', valueSource: 'pipelineClass' }, ], - compiledDefinitionContentHash: 'block-definition-v2-48f0fcae', - compiledDefinitionCanonicalSha256: 'sha256:eba6e3ccda0d4e42df6f214a0f078ed69492d02353ab98ddca028562248495cf', + compiledDefinitionContentHash: 'block-definition-v2-2d42929d', + compiledDefinitionCanonicalSha256: 'sha256:e9ff8f22373135115fb840ba2a5d80585416eff36f3b79bae5493754c76ba5c3', controlFanOuts: [ { source: 'seed', @@ -79,8 +79,8 @@ export const REGISTERED_BLOCK_V2_FANOUT_ROUTES = Object.freeze([ { event: 'onSignal', field: 'unet', role: 'denoise', valueSource: 'pipelineClass' }, { event: 'onSignal', field: 'vae', role: 'decode', valueSource: 'pipelineClass' }, ], - compiledDefinitionContentHash: 'block-definition-v2-a97bfafa', - compiledDefinitionCanonicalSha256: 'sha256:ad96a30d8be6fa26519349b74498da043fa142f56e9da98cb4425e247c2fd7f3', + compiledDefinitionContentHash: 'block-definition-v2-0b79b71f', + compiledDefinitionCanonicalSha256: 'sha256:875fd05b306a0311a92c02b9fa9256e017a9f918d0cb6bb11e4e8f0b3d7ebaff', controlFanOuts: [ { source: 'seed', @@ -196,8 +196,8 @@ export const REGISTERED_BLOCK_V2_FANOUT_ROUTES = Object.freeze([ valueSource: 'pipelineClass', }, ], - compiledDefinitionContentHash: 'block-definition-v2-b0311110', - compiledDefinitionCanonicalSha256: 'sha256:b1b0a142e3bf001147fb4efde116693512253124fa17c82c71059b9a9c7c4f71', + compiledDefinitionContentHash: 'block-definition-v2-56665bf9', + compiledDefinitionCanonicalSha256: 'sha256:9cbf6546064f195b45839bf9586b1564fbe4bfe450ad58fffd34d0717ffb61a6', controlFanOuts: [ { source: 'seed', @@ -239,8 +239,8 @@ export const REGISTERED_BLOCK_V2_FANOUT_ROUTES = Object.freeze([ pipelineClass: 'Flux2ModularPipeline', workflowId: 'text2image', admissionId: 'diffusers.cluster-admission:Flux2ModularPipeline:text2image:mode:text_to_image', - compiledDefinitionContentHash: 'block-definition-v2-f5576368', - compiledDefinitionCanonicalSha256: 'sha256:329c085960f07c9b064fe7fb5728e6aad7ca5fed335c5a9aba64b5329174135a', + compiledDefinitionContentHash: 'block-definition-v2-f9e02e17', + compiledDefinitionCanonicalSha256: 'sha256:54a3ff59cb9f5aadec1dc0ee01e976e0cd7ad17c8046a53e12dfdc23c342f170', studioMode: 'text_to_image', adapterContractId: 'diffusers.modular-adapter:Flux2ModularPipeline:text2image:mode:text_to_image', studioExecutionSpec: { @@ -281,7 +281,7 @@ export const REGISTERED_BLOCK_V2_FANOUT_ROUTES = Object.freeze([ }, { definitionId: 'diffusers.modular:FluxModularPipeline:image2image', - definitionContentHash: 'sha256:cfc46289b1d8fa9dece5488e5b3dd370df850ecc12bfe614fae778823feaf274', + definitionContentHash: 'sha256:5c44be3b6682adb9a9802a040ff2e5c1eff3765b7bf96f172423bd70f07a6e1f', provider: 'diffusers', surface: 'diffusers_cluster_nodes', definitionKind: 'modular_pipeline_workflow', @@ -292,7 +292,7 @@ export const REGISTERED_BLOCK_V2_FANOUT_ROUTES = Object.freeze([ studioMode: 'image_to_image', adapterContractId: 'diffusers.modular-adapter:FluxModularPipeline:image2image:mode:image_to_image', studioExecutionSpec: { - contentHash: 'studio-spec-v1-02766fd5', + contentHash: 'studio-spec-v1-e492260c', executionProfileId: 'flux-dev:modular', id: 'flux-dev:modular-image-to-image:v1', }, @@ -304,8 +304,8 @@ export const REGISTERED_BLOCK_V2_FANOUT_ROUTES = Object.freeze([ { event: 'onSignal', field: 'unet', role: 'denoise', valueSource: 'pipelineClass' }, { event: 'onSignal', field: 'vae', role: 'decode', valueSource: 'pipelineClass' }, ], - compiledDefinitionContentHash: 'block-definition-v2-2e5d5594', - compiledDefinitionCanonicalSha256: 'sha256:6a198730a7db6de7034a9ed206cbc9668636d63ced20a0f93833dafc7b58a31e', + compiledDefinitionContentHash: 'block-definition-v2-a167d09a', + compiledDefinitionCanonicalSha256: 'sha256:ab3618cb154d9474da6180ec9eacb6bffd43363f9af278b9a37ae0b3472d448a', controlFanOuts: [ { source: 'seed', @@ -335,7 +335,7 @@ export const REGISTERED_BLOCK_V2_FANOUT_ROUTES = Object.freeze([ }, { definitionId: 'diffusers.modular:QwenImageEditModularPipeline:image_conditioned', - definitionContentHash: 'sha256:ad5cf5c57657ff81f831f8da52f2838f5d7cf5ec565ca1659d2f334735a67ce5', + definitionContentHash: 'sha256:3643b52809fca240f2cadf105ec2517b43eaad7e082cacd8fe3016f4a6557a49', provider: 'diffusers', surface: 'diffusers_cluster_nodes', definitionKind: 'modular_pipeline_workflow', @@ -346,7 +346,7 @@ export const REGISTERED_BLOCK_V2_FANOUT_ROUTES = Object.freeze([ studioMode: 'edit_image', adapterContractId: 'diffusers.modular-adapter:QwenImageEditModularPipeline:image_conditioned:mode:edit_image', studioExecutionSpec: { - contentHash: 'studio-spec-v1-3bb31293', + contentHash: 'studio-spec-v1-816ef0a1', executionProfileId: 'qwen-edit:modular', id: 'qwen-image-edit:edit-image:v1', }, @@ -358,8 +358,8 @@ export const REGISTERED_BLOCK_V2_FANOUT_ROUTES = Object.freeze([ { event: 'onSignal', field: 'unet', role: 'denoise', valueSource: 'pipelineClass' }, { event: 'onSignal', field: 'vae', role: 'decode', valueSource: 'pipelineClass' }, ], - compiledDefinitionContentHash: 'block-definition-v2-2082b76c', - compiledDefinitionCanonicalSha256: 'sha256:ab46978dc5e95b945f7a2c45d3e946dc23fad75b0917988593d182de46001a3b', + compiledDefinitionContentHash: 'block-definition-v2-b70c9f3f', + compiledDefinitionCanonicalSha256: 'sha256:7328cfc93b457cffa2b183e82f3ec1ece6b51b4439ed0a981472a5660fb9b980', controlFanOuts: [ { source: 'seed', @@ -373,6 +373,8 @@ export const REGISTERED_BLOCK_V2_FANOUT_ROUTES = Object.freeze([ { portId: 'image', role: 'loadImage', fieldId: 'file', adaptation: 'media_file_path', mediaType: 'image' }, { portId: 'prompt', role: 'prompt', fieldId: 'prompt' }, { portId: 'negative_prompt', role: 'prompt', fieldId: 'negative_prompt' }, + { portId: 'width_input', inputName: 'width', role: 'denoise', fieldId: 'width' }, + { portId: 'height_input', inputName: 'height', role: 'denoise', fieldId: 'height' }, { portId: 'num_inference_steps', role: 'denoise', fieldId: 'num_inference_steps' }, ], outputs: [ @@ -407,8 +409,8 @@ export const REGISTERED_BLOCK_V2_FANOUT_ROUTES = Object.freeze([ { event: 'onSignal', field: 'unet', role: 'denoise', valueSource: 'pipelineClass' }, { event: 'onSignal', field: 'vae', role: 'decode', valueSource: 'pipelineClass' }, ], - compiledDefinitionContentHash: 'block-definition-v2-bb5b329c', - compiledDefinitionCanonicalSha256: 'sha256:47b3fd365c4f79368278924122f757442c785234b567c3206b1b6a9b3e5bacf2', + compiledDefinitionContentHash: 'block-definition-v2-90476e1b', + compiledDefinitionCanonicalSha256: 'sha256:6e9cd027f6ed0b94921d3c04ad7e8c842c138f1c1a2f0d8e1de8dc66f321920a', controlFanOuts: [ { source: 'seed', @@ -457,8 +459,8 @@ export const REGISTERED_BLOCK_V2_FANOUT_ROUTES = Object.freeze([ { event: 'onSignal', field: 'unet', role: 'denoise', valueSource: 'pipelineClass' }, { event: 'onSignal', field: 'vae', role: 'decode', valueSource: 'pipelineClass' }, ], - compiledDefinitionContentHash: 'block-definition-v2-3ca28a94', - compiledDefinitionCanonicalSha256: 'sha256:638e0166263707ea79af288f41d8b1da1f2b0f926886860cdd3270e36c93f5b0', + compiledDefinitionContentHash: 'block-definition-v2-ff9e56bf', + compiledDefinitionCanonicalSha256: 'sha256:d7200ef7ed32b34d6b5d34cce91a90d3410e7e9abb066fa884684b8c7a5e9034', controlFanOuts: [ { source: 'seed', @@ -506,8 +508,8 @@ export const REGISTERED_BLOCK_V2_FANOUT_ROUTES = Object.freeze([ { event: 'onSignal', field: 'unet', role: 'denoise', valueSource: 'pipelineClass' }, { event: 'onSignal', field: 'vae', role: 'decode', valueSource: 'pipelineClass' }, ], - compiledDefinitionContentHash: 'block-definition-v2-da9b1897', - compiledDefinitionCanonicalSha256: 'sha256:a3d9ba025ba193920bb9db2ed23316db9127af10e617b6a4021bafa20a90be8d', + compiledDefinitionContentHash: 'block-definition-v2-1cc2ce9c', + compiledDefinitionCanonicalSha256: 'sha256:74c2ad4edd1dae3b85ec7e52a6ec25fc7a7b05cfe655f626358ed92369b3c0dd', controlFanOuts: [ { source: 'resolution', @@ -571,8 +573,8 @@ export const REGISTERED_BLOCK_V2_FANOUT_ROUTES = Object.freeze([ { event: 'onSignal', field: 'controlnet_bundle', role: 'controlnet', valueSource: 'pipelineClass' }, { event: 'onChange', field: 'model_type', role: 'controlnetModel', valueSource: 'kind' }, ], - compiledDefinitionContentHash: 'block-definition-v2-5bf3b391', - compiledDefinitionCanonicalSha256: 'sha256:8b271c4ef9f4c01dfac1b134a3e39f8afb0ac858b1ec4888b73c8b33fcecbb41', + compiledDefinitionContentHash: 'block-definition-v2-dfa702a0', + compiledDefinitionCanonicalSha256: 'sha256:329ccc4ef902acb293b611fba091ce80844e6329f5fc8b0b288872666e8e1c45', controlFanOuts: [ { source: 'dtype', @@ -672,8 +674,8 @@ export const REGISTERED_BLOCK_V2_FANOUT_ROUTES = Object.freeze([ { event: 'onSignal', field: 'controlnet_bundle', role: 'controlnet', valueSource: 'pipelineClass' }, { event: 'onChange', field: 'model_type', role: 'controlnetModel', valueSource: 'kind' }, ], - compiledDefinitionContentHash: 'block-definition-v2-04434119', - compiledDefinitionCanonicalSha256: 'sha256:d564a947ea0a98abd45c60d877cbd6b156639b7196e87371f0dea6fa018826f5', + compiledDefinitionContentHash: 'block-definition-v2-62b6708c', + compiledDefinitionCanonicalSha256: 'sha256:2b50aac4b1d8866e0a2ed1fb9b6cf85985f414432e665358f8c9873c3201eb63', controlFanOuts: [ { source: 'dtype', @@ -759,8 +761,8 @@ export const REGISTERED_BLOCK_V2_FANOUT_ROUTES = Object.freeze([ { event: 'onSignal', field: 'controlnet_bundle', role: 'controlnet', valueSource: 'pipelineClass' }, { event: 'onChange', field: 'model_type', role: 'controlnetModel', valueSource: 'controlnetKind' }, ], - compiledDefinitionContentHash: 'block-definition-v2-f48c2f2f', - compiledDefinitionCanonicalSha256: 'sha256:bc2384ec55727aa8e149102d8bccaa109af2058b41ca2a0eda73973643ca4045', + compiledDefinitionContentHash: 'block-definition-v2-09cdf13e', + compiledDefinitionCanonicalSha256: 'sha256:003cdc8332a80da42308dc168bae21f83c6d9f3562cc15097db27290b570bbc4', controlFanOuts: [ { source: 'dtype', @@ -861,8 +863,8 @@ export const REGISTERED_BLOCK_V2_FANOUT_ROUTES = Object.freeze([ { event: 'onSignal', field: 'controlnet_bundle', role: 'controlnet', valueSource: 'pipelineClass' }, { event: 'onChange', field: 'model_type', role: 'controlnetModel', valueSource: 'controlnetKind' }, ], - compiledDefinitionContentHash: 'block-definition-v2-8a07df11', - compiledDefinitionCanonicalSha256: 'sha256:81390c2388a55392b537c48cc397fec2f7382acf1d8af132b58f1c1c267e142b', + compiledDefinitionContentHash: 'block-definition-v2-5a1e2248', + compiledDefinitionCanonicalSha256: 'sha256:d5dae690566b36f8bbc8e6c9738223c6ebef27828c8c36bac03b4dc0acb7208a', controlFanOuts: [ { source: 'dtype', @@ -945,8 +947,8 @@ export const REGISTERED_BLOCK_V2_FANOUT_ROUTES = Object.freeze([ { event: 'onSignal', field: 'unet', role: 'denoise', valueSource: 'pipelineClass' }, { event: 'onSignal', field: 'vae', role: 'decode', valueSource: 'pipelineClass' }, ], - compiledDefinitionContentHash: 'block-definition-v2-220c90ed', - compiledDefinitionCanonicalSha256: 'sha256:61668713d64fd668169850dbec95c0e13647fe83fc5ec8fb8ea88fd5ca802c1c', + compiledDefinitionContentHash: 'block-definition-v2-74caa01c', + compiledDefinitionCanonicalSha256: 'sha256:7c3bb7525d2fe74ca4ce65fc0e70da7d11e643fb3864c303c755f61d0a40b10d', controlFanOuts: [ { source: 'seed', @@ -1005,8 +1007,8 @@ export const REGISTERED_BLOCK_V2_FANOUT_ROUTES = Object.freeze([ { event: 'onSignal', field: 'unet', role: 'ipAdapter', valueSource: 'pipelineClass' }, { event: 'onSignal', field: 'guider_out', role: 'guider', valueSource: 'pipelineClass' }, ], - compiledDefinitionContentHash: 'block-definition-v2-2cd6dd4e', - compiledDefinitionCanonicalSha256: 'sha256:281e974dcdd4fc148d63361cd56bc8030d9a3b8e13f055a0deff9e5e1d21f1ca', + compiledDefinitionContentHash: 'block-definition-v2-35caf05c', + compiledDefinitionCanonicalSha256: 'sha256:daf330c7f49ad921b4646da32fd92a06e92220bcd8bf766ce4d4170e5e3465d7', controlFanOuts: [ { source: 'dtype', @@ -1124,8 +1126,8 @@ export const REGISTERED_BLOCK_V2_FANOUT_ROUTES = Object.freeze([ { event: 'onSignal', field: 'unet', role: 'ipAdapter', valueSource: 'pipelineClass' }, { event: 'onSignal', field: 'guider_out', role: 'guider', valueSource: 'pipelineClass' }, ], - compiledDefinitionContentHash: 'block-definition-v2-e46b4fdb', - compiledDefinitionCanonicalSha256: 'sha256:29d06425a375f80ab1766417cd8dd0350e32afb7f84b90bd15c9fbd9b890b2fb', + compiledDefinitionContentHash: 'block-definition-v2-fb229571', + compiledDefinitionCanonicalSha256: 'sha256:a488cd28385440b4e3bb23316fffebfd36123d8df5a446bf19abd7b5d54cbced', controlFanOuts: [ { source: 'dtype', @@ -1232,8 +1234,8 @@ export const REGISTERED_BLOCK_V2_FANOUT_ROUTES = Object.freeze([ { event: 'onSignal', field: 'unet', role: 'ipAdapter', valueSource: 'pipelineClass' }, { event: 'onSignal', field: 'guider_out', role: 'guider', valueSource: 'pipelineClass' }, ], - compiledDefinitionContentHash: 'block-definition-v2-913e939c', - compiledDefinitionCanonicalSha256: 'sha256:ac173b8e930f91b7f3958a4b2a75a7edf0f620b4cb5dfee68f0b78131eb3a024', + compiledDefinitionContentHash: 'block-definition-v2-40894fa2', + compiledDefinitionCanonicalSha256: 'sha256:ae2737cd68c4010155da7e3c2428eb958026a59f2844d7487e63a15b54182180', controlFanOuts: [ { source: 'dtype', @@ -1352,8 +1354,8 @@ export const REGISTERED_BLOCK_V2_FANOUT_ROUTES = Object.freeze([ { event: 'onSignal', field: 'unet', role: 'ipAdapter', valueSource: 'pipelineClass' }, { event: 'onSignal', field: 'guider_out', role: 'guider', valueSource: 'pipelineClass' }, ], - compiledDefinitionContentHash: 'block-definition-v2-768fdeef', - compiledDefinitionCanonicalSha256: 'sha256:013d846e1d2a9afb89ea5c0e43e67c40772ade1417a491ac00500715cd44d558', + compiledDefinitionContentHash: 'block-definition-v2-70a97ed1', + compiledDefinitionCanonicalSha256: 'sha256:f88744a2fe1cb5a6535864fc8e10d6c9ecb9ca5101515b7aefd1528d19cac8e7', controlFanOuts: [ { source: 'dtype', @@ -1459,8 +1461,8 @@ export const REGISTERED_BLOCK_V2_FANOUT_ROUTES = Object.freeze([ { event: 'onSignal', field: 'unet', role: 'ipAdapter', valueSource: 'pipelineClass' }, { event: 'onSignal', field: 'guider_out', role: 'guider', valueSource: 'pipelineClass' }, ], - compiledDefinitionContentHash: 'block-definition-v2-e38f4a19', - compiledDefinitionCanonicalSha256: 'sha256:b9fc5347fd32c144237686acf23e33f6d7623831ea95d7beec161e864be41ddd', + compiledDefinitionContentHash: 'block-definition-v2-e1a3b5c9', + compiledDefinitionCanonicalSha256: 'sha256:683dd9e2a6a59ffe0fa4827bae873794a49b2b50f41a876ccde501c20d86fa84', controlFanOuts: [ { source: 'alphaMode', @@ -1535,8 +1537,8 @@ export const REGISTERED_BLOCK_V2_FANOUT_ROUTES = Object.freeze([ { event: 'onSignal', field: 'unet', role: 'ipAdapter', valueSource: 'pipelineClass' }, { event: 'onSignal', field: 'guider_out', role: 'guider', valueSource: 'pipelineClass' }, ], - compiledDefinitionContentHash: 'block-definition-v2-e19a3e2c', - compiledDefinitionCanonicalSha256: 'sha256:57ca6d4bb06e1c6dd678abde658e0f62b09b5231d35b69f5096777514397e17a', + compiledDefinitionContentHash: 'block-definition-v2-16224cfe', + compiledDefinitionCanonicalSha256: 'sha256:6581dda8e593d6d6819af8fcdb902b491de3ca48fb3c728e10d8b813c7939f2e', controlFanOuts: [ { source: 'guidanceScale', @@ -1567,7 +1569,7 @@ export const REGISTERED_BLOCK_V2_FANOUT_ROUTES = Object.freeze([ }, { definitionId: 'diffusers.modular:ZImageModularPipeline:image2image', - definitionContentHash: 'sha256:3fdc83184b08e3db8fdef40bbb6fb56b7cab5866ebc8f57378f1ec425869eabb', + definitionContentHash: 'sha256:a5e7a24cd656718715683340a05f1ee9fdc44ee66f841742241eb7630dff4dac', provider: 'diffusers', surface: 'diffusers_cluster_nodes', definitionKind: 'modular_pipeline_workflow', @@ -1578,7 +1580,7 @@ export const REGISTERED_BLOCK_V2_FANOUT_ROUTES = Object.freeze([ studioMode: 'modular_image_to_image', adapterContractId: 'diffusers.modular-adapter:ZImageModularPipeline:image2image:mode:image_to_image', studioExecutionSpec: { - contentHash: 'studio-spec-v1-7c743c19', + contentHash: 'studio-spec-v1-66c0f422', executionProfileId: 'z-image:modular', id: 'z-image:modular-image-to-image:v1', }, @@ -1590,8 +1592,8 @@ export const REGISTERED_BLOCK_V2_FANOUT_ROUTES = Object.freeze([ { event: 'onSignal', field: 'unet', role: 'denoise', valueSource: 'pipelineClass' }, { event: 'onSignal', field: 'vae', role: 'decode', valueSource: 'pipelineClass' }, ], - compiledDefinitionContentHash: 'block-definition-v2-ccbe99d9', - compiledDefinitionCanonicalSha256: 'sha256:9247eb2e62a8eb8ae7d3a5afbc62821f6d2bbaed9a566d727327729fa74ba46e', + compiledDefinitionContentHash: 'block-definition-v2-0bfa4331', + compiledDefinitionCanonicalSha256: 'sha256:64256f8f007c43934425d79786da4a7e4c325eea4efb8f05d959221377c174f5', controlFanOuts: [ { source: 'seed', @@ -1636,8 +1638,8 @@ export const REGISTERED_BLOCK_V2_FANOUT_ROUTES = Object.freeze([ revision: '073c3a9db359c31ad0e8aa268d15775473c2176c', }, dynamicFieldActions: [{ event: 'onChange', field: 'model_type', role: 'models', valueSource: 'pipelineClass' }], - compiledDefinitionContentHash: 'block-definition-v2-8b76fbf2', - compiledDefinitionCanonicalSha256: 'sha256:60bf1a04d952428fc139eda543d5d8c4b7e75a293931f60a0d917fe43022ee26', + compiledDefinitionContentHash: 'block-definition-v2-578e0b47', + compiledDefinitionCanonicalSha256: 'sha256:a08be93132f6f8ec890b952bd2b2432bc73988f9787421b243e697f7b557575d', controlFanOuts: [ { source: 'width', @@ -1683,7 +1685,7 @@ export const REGISTERED_BLOCK_V2_FANOUT_ROUTES = Object.freeze([ }, { definitionId: 'diffusers.modular:FluxKontextModularPipeline:image_conditioned', - definitionContentHash: 'sha256:dc9b48bca7430d39f7635b8784f8f99ca19a06d20fea0da50e70457a919cba06', + definitionContentHash: 'sha256:4dbb8f3fd553eace7876f3f2e6a8f8cbd84fe1ac5acb1a0448237135efe53abd', provider: 'diffusers', surface: 'diffusers_cluster_nodes', definitionKind: 'modular_pipeline_workflow', @@ -1694,7 +1696,7 @@ export const REGISTERED_BLOCK_V2_FANOUT_ROUTES = Object.freeze([ studioMode: 'edit_image', adapterContractId: 'diffusers.modular-adapter:FluxKontextModularPipeline:image_conditioned:mode:edit_image', studioExecutionSpec: { - contentHash: 'studio-spec-v1-f0f6abac', + contentHash: 'studio-spec-v1-b143c77f', executionProfileId: 'flux-kontext:modular', id: 'flux-kontext:modular-edit-image:v1', }, @@ -1706,8 +1708,8 @@ export const REGISTERED_BLOCK_V2_FANOUT_ROUTES = Object.freeze([ { event: 'onSignal', field: 'unet', role: 'denoise', valueSource: 'pipelineClass' }, { event: 'onSignal', field: 'vae', role: 'decode', valueSource: 'pipelineClass' }, ], - compiledDefinitionContentHash: 'block-definition-v2-4318a5ba', - compiledDefinitionCanonicalSha256: 'sha256:472a5131dc052395f604ce5a65af27449c5dc90e22da8c773aa4a900cc60e040', + compiledDefinitionContentHash: 'block-definition-v2-0926da6f', + compiledDefinitionCanonicalSha256: 'sha256:437a19b7e3ebfa0c522f4bb291a5ed299b2c991263a837e5868555cc91d36b8b', controlFanOuts: [ { source: 'seed', @@ -1755,8 +1757,8 @@ export const REGISTERED_BLOCK_V2_FANOUT_ROUTES = Object.freeze([ }, artifact: { repo: 'BestWishYsh/Helios-Base', revision: '5c50b6bc90eae9bd815d2a50b0c9877e3fd2cf88' }, dynamicFieldActions: [{ event: 'onChange', field: 'model_type', role: 'models', valueSource: 'pipelineClass' }], - compiledDefinitionContentHash: 'block-definition-v2-a3982c0e', - compiledDefinitionCanonicalSha256: 'sha256:728c14f2862db7d54e511f985e20747306e048a7395115a1f61d0f64cc20c19d', + compiledDefinitionContentHash: 'block-definition-v2-f5004a8f', + compiledDefinitionCanonicalSha256: 'sha256:590767e4387630d66c463380cd8e895a0ab3dfc72a01dcc4d7f685e5fda4cafc', controlFanOuts: [ { source: 'width', @@ -1823,8 +1825,8 @@ export const REGISTERED_BLOCK_V2_FANOUT_ROUTES = Object.freeze([ }, artifact: { repo: 'BestWishYsh/Helios-Base', revision: '5c50b6bc90eae9bd815d2a50b0c9877e3fd2cf88' }, dynamicFieldActions: [{ event: 'onChange', field: 'model_type', role: 'models', valueSource: 'pipelineClass' }], - compiledDefinitionContentHash: 'block-definition-v2-54f74bad', - compiledDefinitionCanonicalSha256: 'sha256:9974c4e627ee1b5cab7d9f639818a01d2884227e36609d91e0a3439db9651b47', + compiledDefinitionContentHash: 'block-definition-v2-e39f4a52', + compiledDefinitionCanonicalSha256: 'sha256:6fdc8011c51729b40cb3be57a7d455f34e71bc7cd3477fe4724e0b47b6abd984', controlFanOuts: [ { source: 'width', @@ -1893,8 +1895,8 @@ export const REGISTERED_BLOCK_V2_FANOUT_ROUTES = Object.freeze([ }, artifact: { repo: 'BestWishYsh/Helios-Distilled', revision: 'b991c0379a018f4de3227d95468237f56066f5bb' }, dynamicFieldActions: [{ event: 'onChange', field: 'model_type', role: 'models', valueSource: 'pipelineClass' }], - compiledDefinitionContentHash: 'block-definition-v2-53b267c1', - compiledDefinitionCanonicalSha256: 'sha256:7a6995885764acd0342ef8a9b7413965a0799de9f63e0afc1f6e14231d0feb9c', + compiledDefinitionContentHash: 'block-definition-v2-fb620788', + compiledDefinitionCanonicalSha256: 'sha256:3edbd1c77b7a4ca1774d883a515447233932ec21cae1fb76ee9fc859808da469', controlFanOuts: [ { source: 'width', @@ -1962,8 +1964,8 @@ export const REGISTERED_BLOCK_V2_FANOUT_ROUTES = Object.freeze([ }, artifact: { repo: 'BestWishYsh/Helios-Distilled', revision: 'b991c0379a018f4de3227d95468237f56066f5bb' }, dynamicFieldActions: [{ event: 'onChange', field: 'model_type', role: 'models', valueSource: 'pipelineClass' }], - compiledDefinitionContentHash: 'block-definition-v2-41eb6919', - compiledDefinitionCanonicalSha256: 'sha256:778fb61f110fea1b956d140441e0e86766af854cdacbef9e2888c3bee3232ec0', + compiledDefinitionContentHash: 'block-definition-v2-31c40e16', + compiledDefinitionCanonicalSha256: 'sha256:99464a7f918e112abbfc388f14c0b8a6cc2c21308179a0085e46a2abb03327dc', controlFanOuts: [ { source: 'width', @@ -2031,8 +2033,8 @@ export const REGISTERED_BLOCK_V2_FANOUT_ROUTES = Object.freeze([ }, artifact: { repo: 'BestWishYsh/Helios-Mid', revision: '477c55427ec0ea774bdebd0fbe736313cfc5a312' }, dynamicFieldActions: [{ event: 'onChange', field: 'model_type', role: 'models', valueSource: 'pipelineClass' }], - compiledDefinitionContentHash: 'block-definition-v2-9efe5819', - compiledDefinitionCanonicalSha256: 'sha256:2869fe70d34f4be1921886622bbb7e3de0c0c07e8c779d8b4bc739168ef7ff5b', + compiledDefinitionContentHash: 'block-definition-v2-20e288e0', + compiledDefinitionCanonicalSha256: 'sha256:f30c63ce1acc80f215af28767c8ca0736610ff82f2ec24b75c250459bb827d5d', controlFanOuts: [ { source: 'width', @@ -2100,8 +2102,8 @@ export const REGISTERED_BLOCK_V2_FANOUT_ROUTES = Object.freeze([ }, artifact: { repo: 'BestWishYsh/Helios-Mid', revision: '477c55427ec0ea774bdebd0fbe736313cfc5a312' }, dynamicFieldActions: [{ event: 'onChange', field: 'model_type', role: 'models', valueSource: 'pipelineClass' }], - compiledDefinitionContentHash: 'block-definition-v2-7bd75aca', - compiledDefinitionCanonicalSha256: 'sha256:50cab79ab6e7127a0a4ee25324c7c4e57ee4671a7d077a1d9059d49c80d8d0d3', + compiledDefinitionContentHash: 'block-definition-v2-3148eac3', + compiledDefinitionCanonicalSha256: 'sha256:b7b8e493d036329a3f445da72de55054972442e5104d5fcad428a70f84acab9e', controlFanOuts: [ { source: 'width', @@ -2177,8 +2179,8 @@ export const REGISTERED_BLOCK_V2_FANOUT_ROUTES = Object.freeze([ { event: 'onSignal', field: 'controlnet_bundle', role: 'controlnet', valueSource: 'pipelineClass' }, { event: 'onChange', field: 'model_type', role: 'controlnetModel', valueSource: 'kind' }, ], - compiledDefinitionContentHash: 'block-definition-v2-35b79900', - compiledDefinitionCanonicalSha256: 'sha256:845bec5499e6aeea83c9f2664f9bc68fe48d93a09f7fedd7408891919ba16453', + compiledDefinitionContentHash: 'block-definition-v2-90a253c9', + compiledDefinitionCanonicalSha256: 'sha256:dd1e5d4402c257cc680c2acf7c160e17f5e90ea647071bad3a4cb0c234b8aef6', controlFanOuts: [ { source: 'dtype', @@ -2273,7 +2275,7 @@ export const REGISTERED_BLOCK_V2_FANOUT_ROUTES = Object.freeze([ }, { definitionId: 'diffusers.modular:QwenImageModularPipeline:controlnet_text2image', - definitionContentHash: 'sha256:4dd6ea5f1694aa9938c7db4e029e630fc1e1c839ec68a3b05d2d5d8358016cf0', + definitionContentHash: 'sha256:1e0391b3be46ce5a365fb4ef82cd7ed2441062992804fc7d3351d4c3ee39b5a0', provider: 'diffusers', surface: 'diffusers_cluster_nodes', definitionKind: 'modular_pipeline_workflow', @@ -2284,7 +2286,7 @@ export const REGISTERED_BLOCK_V2_FANOUT_ROUTES = Object.freeze([ studioMode: 'control_image', adapterContractId: 'diffusers.modular-adapter:QwenImageModularPipeline:controlnet_text2image:mode:control_image', studioExecutionSpec: { - contentHash: 'studio-spec-v1-4a311277', + contentHash: 'studio-spec-v1-a9fa09ce', executionProfileId: 'qwen-image:modular', id: 'qwen-image-2512:control-image:v1', }, @@ -2297,8 +2299,8 @@ export const REGISTERED_BLOCK_V2_FANOUT_ROUTES = Object.freeze([ { event: 'onSignal', field: 'controlnet_bundle', role: 'controlnet', valueSource: 'pipelineClass' }, { event: 'onChange', field: 'model_type', role: 'controlnetModel', valueSource: 'kind' }, ], - compiledDefinitionContentHash: 'block-definition-v2-834c403c', - compiledDefinitionCanonicalSha256: 'sha256:4040634f7a1e86b00fba916b7933ac5c7be10f0002bc2465c52b6f84a15234de', + compiledDefinitionContentHash: 'block-definition-v2-d82b1ee9', + compiledDefinitionCanonicalSha256: 'sha256:d7fc44b57c19790c419ae67df6ca06d4be38b365d6d5d5cda5f8672eefb5a52e', controlFanOuts: [ { source: 'dtype', @@ -2312,18 +2314,6 @@ export const REGISTERED_BLOCK_V2_FANOUT_ROUTES = Object.freeze([ primary: { role: 'controlnetModel', fieldId: 'device' }, mirrors: [{ role: 'models', fieldId: 'device' }], }, - { - source: 'autoOffload', - persistence: 'execution_parameter', - primary: { role: 'controlnetModel', fieldId: 'auto_offload' }, - mirrors: [{ role: 'models', fieldId: 'auto_offload' }], - }, - { - source: 'offloadMode', - persistence: 'execution_parameter', - primary: { role: 'controlnetModel', fieldId: 'offload_mode' }, - mirrors: [{ role: 'models', fieldId: 'offload_mode' }], - }, { source: 'height', persistence: 'instance_input', @@ -2394,8 +2384,8 @@ export const REGISTERED_BLOCK_V2_FANOUT_ROUTES = Object.freeze([ { event: 'onSignal', field: 'unet', role: 'denoise', valueSource: 'pipelineClass' }, { event: 'onSignal', field: 'vae', role: 'decode', valueSource: 'pipelineClass' }, ], - compiledDefinitionContentHash: 'block-definition-v2-82896f2a', - compiledDefinitionCanonicalSha256: 'sha256:c680e81e52e98200764625a6c2a6e529d24e4b9680d726492fb391650751b657', + compiledDefinitionContentHash: 'block-definition-v2-bbf978ff', + compiledDefinitionCanonicalSha256: 'sha256:2fc1a0cfcc1c083acd7c9e580c2fd2b762497f04016f06fdecbe71985f789c06', controlFanOuts: [ { source: 'height', @@ -2458,8 +2448,8 @@ export const REGISTERED_BLOCK_V2_FANOUT_ROUTES = Object.freeze([ }, artifact: { repo: 'BestWishYsh/Helios-Base', revision: '5c50b6bc90eae9bd815d2a50b0c9877e3fd2cf88' }, dynamicFieldActions: [{ event: 'onChange', field: 'model_type', role: 'models', valueSource: 'pipelineClass' }], - compiledDefinitionContentHash: 'block-definition-v2-8bc65c17', - compiledDefinitionCanonicalSha256: 'sha256:44e7237888bd11ca5f0327366f89214d604a8491e7bc14d7459549eb2edac9ae', + compiledDefinitionContentHash: 'block-definition-v2-53447f68', + compiledDefinitionCanonicalSha256: 'sha256:a91952ba99290443d94050f889d103e57982cf75e7d3c013eeffac838debef92', controlFanOuts: [ { source: 'steps', @@ -2508,8 +2498,8 @@ export const REGISTERED_BLOCK_V2_FANOUT_ROUTES = Object.freeze([ }, artifact: { repo: 'BestWishYsh/Helios-Distilled', revision: 'b991c0379a018f4de3227d95468237f56066f5bb' }, dynamicFieldActions: [{ event: 'onChange', field: 'model_type', role: 'models', valueSource: 'pipelineClass' }], - compiledDefinitionContentHash: 'block-definition-v2-2591775b', - compiledDefinitionCanonicalSha256: 'sha256:e1d72f0eec1e44f97f34d9d4bfa6e99e090b75ea1e64a2c54d6631e7c2b48311', + compiledDefinitionContentHash: 'block-definition-v2-7cad2bd4', + compiledDefinitionCanonicalSha256: 'sha256:ee7863c325fe315f05f13d8315f327903802398e397ff2b6ab45a36f78ce86c5', controlFanOuts: [ { source: 'steps', @@ -2557,8 +2547,8 @@ export const REGISTERED_BLOCK_V2_FANOUT_ROUTES = Object.freeze([ }, artifact: { repo: 'BestWishYsh/Helios-Mid', revision: '477c55427ec0ea774bdebd0fbe736313cfc5a312' }, dynamicFieldActions: [{ event: 'onChange', field: 'model_type', role: 'models', valueSource: 'pipelineClass' }], - compiledDefinitionContentHash: 'block-definition-v2-6f9a7bb0', - compiledDefinitionCanonicalSha256: 'sha256:7dc9d65502f391f62a7bba0899fc8a4efad339d9625b71fa0c0cf4990ef27df0', + compiledDefinitionContentHash: 'block-definition-v2-32fbceb9', + compiledDefinitionCanonicalSha256: 'sha256:8f05f80a37edea09b5e68607025cf8a18e52e543e642334ed8681e527d73eb4d', controlFanOuts: [ { source: 'steps', @@ -2609,8 +2599,8 @@ export const REGISTERED_BLOCK_V2_FANOUT_ROUTES = Object.freeze([ revision: '854c04a4c8a53d990b418c7478f0802c0fc8c726', }, dynamicFieldActions: [{ event: 'onChange', field: 'model_type', role: 'models', valueSource: 'pipelineClass' }], - compiledDefinitionContentHash: 'block-definition-v2-ea4b7237', - compiledDefinitionCanonicalSha256: 'sha256:3f3b1fdea5dddb1c47a670a3bf81965bb956f8d49d6b61c11be6e023c3529178', + compiledDefinitionContentHash: 'block-definition-v2-8cdc3b18', + compiledDefinitionCanonicalSha256: 'sha256:51361ccc00845cd953b8b6e027528948446bd1a6021a9fc18d4e1868f673ea46', controlFanOuts: [], boundary: { inputs: [ @@ -2668,8 +2658,8 @@ export const REGISTERED_BLOCK_V2_FANOUT_ROUTES = Object.freeze([ revision: '286be7ce72277246578a3e3cc2487e95ddae5bcf', }, dynamicFieldActions: [{ event: 'onChange', field: 'model_type', role: 'models', valueSource: 'pipelineClass' }], - compiledDefinitionContentHash: 'block-definition-v2-76297a3c', - compiledDefinitionCanonicalSha256: 'sha256:e2039e72e7f7ca5a89fc9ec9d1e3acbc23749f7e9e399ba1c38935dca70efc0e', + compiledDefinitionContentHash: 'block-definition-v2-022a807f', + compiledDefinitionCanonicalSha256: 'sha256:e6c45f4e483a8063066a7d70fdb2d40d807f0d5a6c86f7334b95870f0efb0956', controlFanOuts: [], boundary: { inputs: [ @@ -2715,8 +2705,8 @@ export const REGISTERED_BLOCK_V2_FANOUT_ROUTES = Object.freeze([ }, artifact: { repo: 'Lightricks/LTX-2', revision: '47da56e2ad66ce4125a9922b4a8826bf407f9d0a' }, dynamicFieldActions: [], - compiledDefinitionContentHash: 'block-definition-v2-e8e75314', - compiledDefinitionCanonicalSha256: 'sha256:b0cf1ffe72ef0c03215aed2c434f14e5dea9a240836970bdaa93c42b31ffa45a', + compiledDefinitionContentHash: 'block-definition-v2-6713fdde', + compiledDefinitionCanonicalSha256: 'sha256:a14568bf9d7fcaef54387c98181344cf1993da90953cfc94a670608c7acc6114', controlFanOuts: [ { source: 'dtype', @@ -2789,8 +2779,8 @@ export const REGISTERED_BLOCK_V2_FANOUT_ROUTES = Object.freeze([ }, artifact: { repo: 'Lightricks/LTX-2', revision: '47da56e2ad66ce4125a9922b4a8826bf407f9d0a' }, dynamicFieldActions: [], - compiledDefinitionContentHash: 'block-definition-v2-b21aa7c9', - compiledDefinitionCanonicalSha256: 'sha256:9d1195a13a46332b85f9b5d147200437edc3d8bcb8f896ce54545d57f0f77735', + compiledDefinitionContentHash: 'block-definition-v2-600e7ed3', + compiledDefinitionCanonicalSha256: 'sha256:b96d2420b7aa322626c3bdaec21ddbd575e41bf81da4655b58e49a3cf4df5916', controlFanOuts: [ { source: 'dtype', @@ -2863,8 +2853,8 @@ export const REGISTERED_BLOCK_V2_FANOUT_ROUTES = Object.freeze([ }, artifact: { repo: 'Lightricks/LTX-2', revision: '47da56e2ad66ce4125a9922b4a8826bf407f9d0a' }, dynamicFieldActions: [], - compiledDefinitionContentHash: 'block-definition-v2-44941270', - compiledDefinitionCanonicalSha256: 'sha256:b6df0c45b85c59816b45f15c40f043ce6af6cc926a33af353d418d604afe8997', + compiledDefinitionContentHash: 'block-definition-v2-2b67da8a', + compiledDefinitionCanonicalSha256: 'sha256:87871081192b5953406e98625337786c659ce9c06576ab32e7f9f32ae94e858a', controlFanOuts: [ { source: 'dtype', @@ -2971,8 +2961,8 @@ export const REGISTERED_BLOCK_V2_FANOUT_ROUTES = Object.freeze([ }, artifact: { repo: 'Lightricks/LTX-2', revision: '47da56e2ad66ce4125a9922b4a8826bf407f9d0a' }, dynamicFieldActions: [], - compiledDefinitionContentHash: 'block-definition-v2-3e13c1be', - compiledDefinitionCanonicalSha256: 'sha256:8739656edb8838b65e00ae46e486cd51ac6fc10fc420dd24b7777097d53b0a8e', + compiledDefinitionContentHash: 'block-definition-v2-9082a664', + compiledDefinitionCanonicalSha256: 'sha256:e6784bdd36f1c57267443ae7ab1a0f0baa6ecf9bf139262e3232b936a510441c', controlFanOuts: [ { source: 'dtype', @@ -3044,8 +3034,8 @@ export const REGISTERED_BLOCK_V2_FANOUT_ROUTES = Object.freeze([ }, artifact: { repo: 'Wan-AI/Wan2.2-TI2V-5B-Diffusers', revision: 'b8fff7315c768468a5333511427288870b2e9635' }, dynamicFieldActions: [], - compiledDefinitionContentHash: 'block-definition-v2-b12c8a6e', - compiledDefinitionCanonicalSha256: 'sha256:963c6ac1c76f50760c28168f204ae1f0ff5aef53a41ff6f6d7603d0f11dc853b', + compiledDefinitionContentHash: 'block-definition-v2-57ab747c', + compiledDefinitionCanonicalSha256: 'sha256:8af357163fa004e28e592250a768274589ebea109dd7418edcc18e493f158647', controlFanOuts: [ { source: 'dtype', @@ -3114,8 +3104,8 @@ export const REGISTERED_BLOCK_V2_FANOUT_ROUTES = Object.freeze([ }, artifact: { repo: 'Wan-AI/Wan2.2-I2V-A14B-Diffusers', revision: '596658fd9ca6b7b71d5057529bbf319ecbc61d74' }, dynamicFieldActions: [], - compiledDefinitionContentHash: 'block-definition-v2-1dd7deb3', - compiledDefinitionCanonicalSha256: 'sha256:1e18e336333cc2807d3d533752ca1556f72cc216d7a2abddfb966f9c3092d430', + compiledDefinitionContentHash: 'block-definition-v2-aedf1209', + compiledDefinitionCanonicalSha256: 'sha256:88ab8affb600dced7a9856485b704c2130e69bb30c9b16f297ac2ac73112fdd1', controlFanOuts: [ { source: 'dtype', @@ -3184,8 +3174,8 @@ export const REGISTERED_BLOCK_V2_FANOUT_ROUTES = Object.freeze([ }, artifact: { repo: 'Wan-AI/Wan2.2-T2V-A14B-Diffusers', revision: '5be7df9619b54f4e2667b2755bc6a756675b5cd7' }, dynamicFieldActions: [], - compiledDefinitionContentHash: 'block-definition-v2-10c5e03a', - compiledDefinitionCanonicalSha256: 'sha256:e52297c93ef3887658bf698f6476fa102fb6579206d59c12fde70ad96fc8983d', + compiledDefinitionContentHash: 'block-definition-v2-ddd4f9b0', + compiledDefinitionCanonicalSha256: 'sha256:150e87df4d795674d40afac448f550fd5d4ff8b5398c7d0774e89bddbec268f5', controlFanOuts: [ { source: 'dtype', @@ -3258,8 +3248,8 @@ export const REGISTERED_BLOCK_V2_FANOUT_ROUTES = Object.freeze([ revision: '59e4141466bcb1bf9733eca1bc78be6891c9fbdf', }, dynamicFieldActions: [{ event: 'onChange', field: 'model_type', role: 'models', valueSource: 'pipelineClass' }], - compiledDefinitionContentHash: 'block-definition-v2-19837e7f', - compiledDefinitionCanonicalSha256: 'sha256:64d35d87703f495c1e9b7bfc3afa162895e3ad5e97de79fbb8162621dfb3f0ab', + compiledDefinitionContentHash: 'block-definition-v2-0ff56f56', + compiledDefinitionCanonicalSha256: 'sha256:bc8674758a63eeb97830d1e7a7e7809525e3c6c54da389587e79c7e9d17d4240', controlFanOuts: [ { source: 'fps', @@ -3317,8 +3307,8 @@ export const REGISTERED_BLOCK_V2_FANOUT_ROUTES = Object.freeze([ }, artifact: { repo: 'Wan-AI/Wan2.2-Animate-2-14B-Diffusers', revision: '7d48412d7b903ff3a89f4f5a960d99e1899605a1' }, dynamicFieldActions: [{ event: 'onChange', field: 'model_type', role: 'models', valueSource: 'pipelineClass' }], - compiledDefinitionContentHash: 'block-definition-v2-aaeac40d', - compiledDefinitionCanonicalSha256: 'sha256:f77112cc1947dd32e140176051b06020a7a0fa55e64019cb07d577cb112a2947', + compiledDefinitionContentHash: 'block-definition-v2-32eb6bd4', + compiledDefinitionCanonicalSha256: 'sha256:75d8fd5dde2f9ebc3385342d42fd2ff04bba9c3f8dc9c645d36bd251b58f9eca', controlFanOuts: [ { source: 'fps', @@ -3382,8 +3372,8 @@ export const REGISTERED_BLOCK_V2_FANOUT_ROUTES = Object.freeze([ { event: 'onSignal', field: 'unet', role: 'denoise', valueSource: 'pipelineClass' }, { event: 'onSignal', field: 'vae', role: 'decode', valueSource: 'pipelineClass' }, ], - compiledDefinitionContentHash: 'block-definition-v2-94d0014d', - compiledDefinitionCanonicalSha256: 'sha256:a7d708a8d9d6a913a24109ffbdd82e418a1d57ac30d7eb0574bf904c8cdcc1bc', + compiledDefinitionContentHash: 'block-definition-v2-89d894ac', + compiledDefinitionCanonicalSha256: 'sha256:a69dea917902f513d97c96d96a3eff34d234285de78a69299c3e68bacb646d74', controlFanOuts: [ { source: 'alphaMode', @@ -3472,8 +3462,8 @@ export const REGISTERED_BLOCK_V2_FANOUT_ROUTES = Object.freeze([ { event: 'onSignal', field: 'unet', role: 'denoise', valueSource: 'pipelineClass' }, { event: 'onSignal', field: 'vae', role: 'decode', valueSource: 'pipelineClass' }, ], - compiledDefinitionContentHash: 'block-definition-v2-276340cc', - compiledDefinitionCanonicalSha256: 'sha256:16e01e466bc8ca24abdeffef01eea100eca592aaa25880cb9d967a91741d12b0', + compiledDefinitionContentHash: 'block-definition-v2-d5444e01', + compiledDefinitionCanonicalSha256: 'sha256:fd39932bae9d4afad6f84aee44ecc68ff2c6e9bdd58de063aa0ea9f219612e67', controlFanOuts: [ { source: 'height', @@ -3547,8 +3537,8 @@ export const REGISTERED_BLOCK_V2_FANOUT_ROUTES = Object.freeze([ { event: 'onSignal', field: 'unet', role: 'denoise', valueSource: 'pipelineClass' }, { event: 'onSignal', field: 'vae', role: 'decode', valueSource: 'pipelineClass' }, ], - compiledDefinitionContentHash: 'block-definition-v2-493f50dd', - compiledDefinitionCanonicalSha256: 'sha256:39c7b956b0a811e3be7c96a130257434c3525950a40a1d28dca4a5d6c067c217', + compiledDefinitionContentHash: 'block-definition-v2-abf0f4e0', + compiledDefinitionCanonicalSha256: 'sha256:c87bad6f28c550b6adb46730e7714f243fa084e9ba28889d81624e4fbee1f76b', controlFanOuts: [], boundary: { inputs: [ @@ -3593,8 +3583,8 @@ export const REGISTERED_BLOCK_V2_FANOUT_ROUTES = Object.freeze([ { event: 'onSignal', field: 'unet', role: 'denoise', valueSource: 'pipelineClass' }, { event: 'onSignal', field: 'vae', role: 'decode', valueSource: 'pipelineClass' }, ], - compiledDefinitionContentHash: 'block-definition-v2-5482b115', - compiledDefinitionCanonicalSha256: 'sha256:48a742e34ee3d6b18b22808eafe3c94320e08f6a5ef1f68efdaf9977cb9aae9f', + compiledDefinitionContentHash: 'block-definition-v2-c61df746', + compiledDefinitionCanonicalSha256: 'sha256:60492b24c9be91796394cf23ac0eea15a66310573c52981aa68da1cd53458c74', controlFanOuts: [ { source: 'seed', @@ -3652,8 +3642,8 @@ export const REGISTERED_BLOCK_V2_FANOUT_ROUTES = Object.freeze([ { event: 'onSignal', field: 'controlnet_bundle', role: 'controlnet', valueSource: 'pipelineClass' }, { event: 'onChange', field: 'model_type', role: 'controlnetModel', valueSource: 'kind' }, ], - compiledDefinitionContentHash: 'block-definition-v2-17ccaf31', - compiledDefinitionCanonicalSha256: 'sha256:c092fa6a22c6f4ab4b2f904289018a3657ed623ec9aafc40edf8fbd7718c9132', + compiledDefinitionContentHash: 'block-definition-v2-37779acc', + compiledDefinitionCanonicalSha256: 'sha256:faea12ee4be8c507860065c52cb96e1b62cdc7807fa9361aea8bfbcd5ce86d0a', controlFanOuts: [ { source: 'dtype', @@ -3771,8 +3761,8 @@ export const REGISTERED_BLOCK_V2_FANOUT_ROUTES = Object.freeze([ { event: 'onSignal', field: 'unet', role: 'denoise', valueSource: 'pipelineClass' }, { event: 'onSignal', field: 'vae', role: 'decode', valueSource: 'pipelineClass' }, ], - compiledDefinitionContentHash: 'block-definition-v2-a607b84f', - compiledDefinitionCanonicalSha256: 'sha256:7ee094ae1849a41a2ac3fd47c0a6d424c5e1ddc749809f1b258c49f77151458c', + compiledDefinitionContentHash: 'block-definition-v2-02e2f1d8', + compiledDefinitionCanonicalSha256: 'sha256:ff904c923b57fb164baa13f07857120054f465eddfae664eaa7a29566a00ae2e', controlFanOuts: [ { source: 'height', @@ -3848,8 +3838,8 @@ export const REGISTERED_BLOCK_V2_FANOUT_ROUTES = Object.freeze([ { event: 'onSignal', field: 'controlnet_bundle', role: 'controlnet', valueSource: 'pipelineClass' }, { event: 'onChange', field: 'model_type', role: 'controlnetModel', valueSource: 'kind' }, ], - compiledDefinitionContentHash: 'block-definition-v2-0ade626e', - compiledDefinitionCanonicalSha256: 'sha256:8ea5200cd7551066d7e8806b523632cdb7a5edf4e1a05bf9d0e1fbd4f5ca6abc', + compiledDefinitionContentHash: 'block-definition-v2-9af08e7d', + compiledDefinitionCanonicalSha256: 'sha256:0fda07ec5e79eb30eadc1dad10505c25020e94e722757e3172407f7ff7515291', controlFanOuts: [ { source: 'dtype', @@ -3956,8 +3946,8 @@ export const REGISTERED_BLOCK_V2_FANOUT_ROUTES = Object.freeze([ { event: 'onSignal', field: 'controlnet_bundle', role: 'controlnet', valueSource: 'pipelineClass' }, { event: 'onChange', field: 'model_type', role: 'controlnetModel', valueSource: 'controlnetKind' }, ], - compiledDefinitionContentHash: 'block-definition-v2-5fa1b057', - compiledDefinitionCanonicalSha256: 'sha256:78e1e8b4bed67589c8398e49050e88bf522ad24ee37c542e3784f7947491416e', + compiledDefinitionContentHash: 'block-definition-v2-6340611e', + compiledDefinitionCanonicalSha256: 'sha256:f2eb8b9c898dcc47816bd39f43bc6c5eb0a5f3a02acc5916e04590a9c42a7331', controlFanOuts: [ { source: 'dtype', @@ -4061,8 +4051,8 @@ export const REGISTERED_BLOCK_V2_FANOUT_ROUTES = Object.freeze([ { event: 'onSignal', field: 'unet', role: 'denoise', valueSource: 'pipelineClass' }, { event: 'onSignal', field: 'vae', role: 'decode', valueSource: 'pipelineClass' }, ], - compiledDefinitionContentHash: 'block-definition-v2-a60649bb', - compiledDefinitionCanonicalSha256: 'sha256:34d6b1c97fa49e0b7b892a1a9dee623a1400a252df42e76ec3df1758bf405890', + compiledDefinitionContentHash: 'block-definition-v2-4c7b9c2e', + compiledDefinitionCanonicalSha256: 'sha256:ecc1dc7029c5cdca6d6e3683d1edb74482640b67ab14f1930fc529a75d3df053', controlFanOuts: [ { source: 'seed', @@ -4127,8 +4117,8 @@ export const REGISTERED_BLOCK_V2_FANOUT_ROUTES = Object.freeze([ { event: 'onSignal', field: 'unet', role: 'ipAdapter', valueSource: 'pipelineClass' }, { event: 'onSignal', field: 'guider_out', role: 'guider', valueSource: 'pipelineClass' }, ], - compiledDefinitionContentHash: 'block-definition-v2-60b1e883', - compiledDefinitionCanonicalSha256: 'sha256:9030d7abb48c2c51004c11e0de345780b225bf057a11157a1b36996f5e1c9cbd', + compiledDefinitionContentHash: 'block-definition-v2-e06cffaf', + compiledDefinitionCanonicalSha256: 'sha256:04abe4d7baa483afb3648936fdab74d28b3db09242fe874a5a641f1a36c794d0', controlFanOuts: [ { source: 'dtype', @@ -4253,8 +4243,8 @@ export const REGISTERED_BLOCK_V2_FANOUT_ROUTES = Object.freeze([ { event: 'onSignal', field: 'unet', role: 'ipAdapter', valueSource: 'pipelineClass' }, { event: 'onSignal', field: 'guider_out', role: 'guider', valueSource: 'pipelineClass' }, ], - compiledDefinitionContentHash: 'block-definition-v2-197787ec', - compiledDefinitionCanonicalSha256: 'sha256:1f04e24bcef2ebda39e133ee600674778af64e98f2cf6206d2bd75641785e4dd', + compiledDefinitionContentHash: 'block-definition-v2-5ed9a874', + compiledDefinitionCanonicalSha256: 'sha256:989501bc1de75d1a10f46aa23fe7b1106e2158181016f8ca3ca2547a9f8a2441', controlFanOuts: [ { source: 'dtype', @@ -4378,8 +4368,8 @@ export const REGISTERED_BLOCK_V2_FANOUT_ROUTES = Object.freeze([ { event: 'onSignal', field: 'unet', role: 'ipAdapter', valueSource: 'pipelineClass' }, { event: 'onSignal', field: 'guider_out', role: 'guider', valueSource: 'pipelineClass' }, ], - compiledDefinitionContentHash: 'block-definition-v2-ab9f92cb', - compiledDefinitionCanonicalSha256: 'sha256:967376697ac2a9e3d4cf3661ef70ced72752cc0e8e1d3d80e6777bf18717e5df', + compiledDefinitionContentHash: 'block-definition-v2-1a026169', + compiledDefinitionCanonicalSha256: 'sha256:29a7bc42110de34d89d15df65031781a487739b7f9e1cec1b67baae41e7f7c78', controlFanOuts: [ { source: 'alphaMode', @@ -4451,8 +4441,8 @@ export const REGISTERED_BLOCK_V2_FANOUT_ROUTES = Object.freeze([ revision: '7c64400e1861cc0d7b98d570a1926d5408ec60cd', }, dynamicFieldActions: [], - compiledDefinitionContentHash: 'block-definition-v2-4ae23355', - compiledDefinitionCanonicalSha256: 'sha256:a17ded30bf56e93415bc1e0dd5eb48afdc89c007e35dc62c7fcf61f814c4020f', + compiledDefinitionContentHash: 'block-definition-v2-0de275e3', + compiledDefinitionCanonicalSha256: 'sha256:924911d7ca6469cf12eac8d52e6defce47fd2213cd872b38075555f6a4639073', controlFanOuts: [ { source: 'dtype', @@ -4529,8 +4519,8 @@ export const REGISTERED_BLOCK_V2_FANOUT_ROUTES = Object.freeze([ revision: '7c64400e1861cc0d7b98d570a1926d5408ec60cd', }, dynamicFieldActions: [], - compiledDefinitionContentHash: 'block-definition-v2-3b70cada', - compiledDefinitionCanonicalSha256: 'sha256:4df0816c911fddc6ca5c65f829d9f3db6fc14de57c747d315b9397bace445516', + compiledDefinitionContentHash: 'block-definition-v2-9451bb28', + compiledDefinitionCanonicalSha256: 'sha256:79a3bcc845cafd4d778c08bdb1395ab6900e2bbbbace3e3507fb1018887e4e90', controlFanOuts: [ { source: 'dtype', @@ -4605,8 +4595,8 @@ export const REGISTERED_BLOCK_V2_FANOUT_ROUTES = Object.freeze([ artifact: { repo: 'baidu/ERNIE-Image-Turbo', revision: 'bc68c81e2a1730a394d5fc9fae70713dee940140' }, dynamicFieldActions: [{ event: 'onChange', field: 'model_type', role: 'models', valueSource: 'pipelineClass' }], exactModularGraph: { semanticRoleByPlacementPath: {} }, - compiledDefinitionContentHash: 'block-definition-v2-8e2880d6', - compiledDefinitionCanonicalSha256: 'sha256:d777a3bb8098c6e1a4a37b9442d64df03326ba21697192f9b9c2db4fff094d15', + compiledDefinitionContentHash: 'block-definition-v2-30ecded7', + compiledDefinitionCanonicalSha256: 'sha256:22463a938a56e29da330ea678e98f4e8af80e41207c0f6d0dec283be979e5a19', controlFanOuts: [ { source: 'width', diff --git a/src/studio/registeredBlockV2ImageRoutes.ts b/src/studio/registeredBlockV2ImageRoutes.ts index e31b692e..6a53a049 100644 --- a/src/studio/registeredBlockV2ImageRoutes.ts +++ b/src/studio/registeredBlockV2ImageRoutes.ts @@ -24,8 +24,8 @@ export const REGISTERED_BLOCK_V2_IMAGE_ROUTES: readonly RegisteredBlockV2Route[] revision: 'a6dfb36eca3a3906eb2fd460795adfb844e5fcce', }, dynamicFieldActions: [], - compiledDefinitionContentHash: 'block-definition-v2-128b7e27', - compiledDefinitionCanonicalSha256: 'sha256:4c97573e9f09e33dd3f4ca5fa92caa6a71332e227e0f2575edb59e8a24f6ec7b', + compiledDefinitionContentHash: 'block-definition-v2-895e656d', + compiledDefinitionCanonicalSha256: 'sha256:c6f0a4ad96857ec9f6dd77d79ce991ab5619fea52aebb8033a2e7f0526794954', controlFanOuts: [ { source: 'quantizationMode', @@ -163,8 +163,8 @@ export const REGISTERED_BLOCK_V2_IMAGE_ROUTES: readonly RegisteredBlockV2Route[] revision: 'a6dfb36eca3a3906eb2fd460795adfb844e5fcce', }, dynamicFieldActions: [], - compiledDefinitionContentHash: 'block-definition-v2-4ea6fac1', - compiledDefinitionCanonicalSha256: 'sha256:29c86eb53eb9bc383017c78f93a6f83323b8fe9c190690d2c9468089b155f66a', + compiledDefinitionContentHash: 'block-definition-v2-9a823b87', + compiledDefinitionCanonicalSha256: 'sha256:b7d12d1d1eba3bbf677377ff7d88af12382f9785ce4dabbd280c34d37328a6d2', controlFanOuts: [ { source: 'quantizationMode', @@ -301,8 +301,8 @@ export const REGISTERED_BLOCK_V2_IMAGE_ROUTES: readonly RegisteredBlockV2Route[] revision: 'a6dfb36eca3a3906eb2fd460795adfb844e5fcce', }, dynamicFieldActions: [], - compiledDefinitionContentHash: 'block-definition-v2-7b195a35', - compiledDefinitionCanonicalSha256: 'sha256:db3a4e598d825a308d89c3120027941609914d8584d2ddcb3289591778f73c55', + compiledDefinitionContentHash: 'block-definition-v2-c9d9b3f3', + compiledDefinitionCanonicalSha256: 'sha256:a6b94a6b8800d3f5f32857fa0ce87516f137caf182bb38ae1a28912afd67b62a', controlFanOuts: [ { source: 'quantizationMode', @@ -432,8 +432,8 @@ export const REGISTERED_BLOCK_V2_IMAGE_ROUTES: readonly RegisteredBlockV2Route[] revision: '3de623fc3c33e44ffbe2bad470d0f45bccf2eb21', }, dynamicFieldActions: [], - compiledDefinitionContentHash: 'block-definition-v2-5c79ef1a', - compiledDefinitionCanonicalSha256: 'sha256:456d106b05b927edca75ecc053c7ccd44c2343e676da02e463eb948a7e64e25f', + compiledDefinitionContentHash: 'block-definition-v2-0f612de0', + compiledDefinitionCanonicalSha256: 'sha256:2babb36311ec6a58b45b5fe9872cd588351d8008e6c0515b398304d1e4e7b52f', controlFanOuts: [ { source: 'quantizationMode', @@ -616,8 +616,8 @@ export const REGISTERED_BLOCK_V2_IMAGE_ROUTES: readonly RegisteredBlockV2Route[] revision: '3de623fc3c33e44ffbe2bad470d0f45bccf2eb21', }, dynamicFieldActions: [], - compiledDefinitionContentHash: 'block-definition-v2-56a63dd8', - compiledDefinitionCanonicalSha256: 'sha256:53b16cb361adae1d5c2d7c8d91a614cefc86d39d00dcd2c410595c27babb31f4', + compiledDefinitionContentHash: 'block-definition-v2-76e8b2da', + compiledDefinitionCanonicalSha256: 'sha256:fccb41b34170012a2db22ec7c7ea26d95a6d69b0f86224383cc966b6c7a097ea', controlFanOuts: [ { source: 'quantizationMode', @@ -807,8 +807,8 @@ export const REGISTERED_BLOCK_V2_IMAGE_ROUTES: readonly RegisteredBlockV2Route[] revision: '3de623fc3c33e44ffbe2bad470d0f45bccf2eb21', }, dynamicFieldActions: [], - compiledDefinitionContentHash: 'block-definition-v2-0ab14aa7', - compiledDefinitionCanonicalSha256: 'sha256:d3b2944e1c7db016cecc7fa39ca8af39ee876c0bc7fdcab4baf7500e7b8ad54c', + compiledDefinitionContentHash: 'block-definition-v2-7a4a5cb9', + compiledDefinitionCanonicalSha256: 'sha256:c31dd252e3e34162aabea09e3171e0a7885eebee06a0152ff8b0dad035396a9e', controlFanOuts: [ { source: 'quantizationMode', diff --git a/src/studio/registeredBlockV2OrdinaryFluxRoutes.ts b/src/studio/registeredBlockV2OrdinaryFluxRoutes.ts index 201f86c3..73d76dbd 100644 --- a/src/studio/registeredBlockV2OrdinaryFluxRoutes.ts +++ b/src/studio/registeredBlockV2OrdinaryFluxRoutes.ts @@ -24,8 +24,8 @@ export const REGISTERED_BLOCK_V2_ORDINARY_FLUX_ROUTES: readonly RegisteredBlockV revision: 'e7b7dc27f91deacad38e78976d1f2b499d76a294', }, dynamicFieldActions: [], - compiledDefinitionContentHash: 'block-definition-v2-74b490f1', - compiledDefinitionCanonicalSha256: 'sha256:370d9402d7ea43a81168d9667b8d690bd2b845a1bc46d80c74c850341d2bd169', + compiledDefinitionContentHash: 'block-definition-v2-e29e03b3', + compiledDefinitionCanonicalSha256: 'sha256:132820d038c6c227ba096407e60cd3db611d555e178a04d892cca1db308cf0fc', controlFanOuts: [ { source: 'quantizationMode', @@ -179,8 +179,8 @@ export const REGISTERED_BLOCK_V2_ORDINARY_FLUX_ROUTES: readonly RegisteredBlockV revision: 'e7b7dc27f91deacad38e78976d1f2b499d76a294', }, dynamicFieldActions: [], - compiledDefinitionContentHash: 'block-definition-v2-02a5d275', - compiledDefinitionCanonicalSha256: 'sha256:66cfe61937e59272f26f91128efb2d25ad4699cfe03a74006efc2ddf9b3e531a', + compiledDefinitionContentHash: 'block-definition-v2-8c7bd157', + compiledDefinitionCanonicalSha256: 'sha256:0bbe8720e7eeba31c947d8e6e1848623b1f84b9b702258823f5e1312003cb966', controlFanOuts: [ { source: 'quantizationMode', @@ -335,7 +335,7 @@ export const REGISTERED_BLOCK_V2_ORDINARY_FLUX_ROUTES: readonly RegisteredBlockV }, { definitionId: 'diffusers.composite:Flux2KleinPipeline:multi_image_reference_edit', - definitionContentHash: 'sha256:dd288beb54fafd8136b5644e4b6cd8eac3ce5d5e9d51fd5626488585d4ee3199', + definitionContentHash: 'sha256:75bf8e256043b6b552af4bd25942107d8550d8fdb2d09c0b5332b2a00aab7d48', provider: 'diffusers', surface: 'diffusers_cluster_nodes', definitionKind: 'studio_execution_composite', @@ -347,7 +347,7 @@ export const REGISTERED_BLOCK_V2_ORDINARY_FLUX_ROUTES: readonly RegisteredBlockV studioMode: 'multi_image_reference_edit', adapterContractId: 'diffusers.composite-adapter:Flux2KleinPipeline:multi_image_reference_edit', studioExecutionSpec: { - contentHash: 'studio-spec-v1-756c2d69', + contentHash: 'studio-spec-v1-e7cd0b3f', executionProfileId: 'flux2-klein:direct', id: 'flux2-klein:multi-image-reference-edit:v1', }, @@ -356,8 +356,8 @@ export const REGISTERED_BLOCK_V2_ORDINARY_FLUX_ROUTES: readonly RegisteredBlockV revision: 'e7b7dc27f91deacad38e78976d1f2b499d76a294', }, dynamicFieldActions: [], - compiledDefinitionContentHash: 'block-definition-v2-ec33dfa2', - compiledDefinitionCanonicalSha256: 'sha256:b3bf10a4de4a0ca8b85ae6bff2e751691047635adb352fc8ac8accd3aaef7e1f', + compiledDefinitionContentHash: 'block-definition-v2-b7c35c9b', + compiledDefinitionCanonicalSha256: 'sha256:57a0e5164a3ccd3c0362584e24f87ff5d163e95c97c374ec453513f881cf7611', controlFanOuts: [ { source: 'quantizationMode', @@ -499,8 +499,8 @@ export const REGISTERED_BLOCK_V2_ORDINARY_FLUX_ROUTES: readonly RegisteredBlockV revision: '26afe3a78bb242c0a8bb181dcc8937bb16e5c66c', }, dynamicFieldActions: [], - compiledDefinitionContentHash: 'block-definition-v2-e18b5181', - compiledDefinitionCanonicalSha256: 'sha256:8e3107fcae58954fe2db2625e817f05f84a98463869381ef97ba2491d8ea02cb', + compiledDefinitionContentHash: 'block-definition-v2-fe3776ab', + compiledDefinitionCanonicalSha256: 'sha256:ae2387c2c84f99d9e345cef6a38a9e7b0df0c1892ce17e34d2347b02a08d2375', controlFanOuts: [ { source: 'quantizationMode', @@ -642,8 +642,8 @@ export const REGISTERED_BLOCK_V2_ORDINARY_FLUX_ROUTES: readonly RegisteredBlockV revision: '27c3d8bdc17509b47cf4fd9ba25ab1c7508a69a2', }, dynamicFieldActions: [], - compiledDefinitionContentHash: 'block-definition-v2-4d664fda', - compiledDefinitionCanonicalSha256: 'sha256:c3b11f0968b00aa840f227c7921f2e0c386320ccbbb5c3b43d06fb1a0291ca45', + compiledDefinitionContentHash: 'block-definition-v2-f22a0ae0', + compiledDefinitionCanonicalSha256: 'sha256:56760929e049915df0e0ce35e7a3f77996721c13272be468ef74671bc277e1b4', controlFanOuts: [ { source: 'quantizationMode', @@ -811,8 +811,8 @@ export const REGISTERED_BLOCK_V2_ORDINARY_FLUX_ROUTES: readonly RegisteredBlockV revision: '27c3d8bdc17509b47cf4fd9ba25ab1c7508a69a2', }, dynamicFieldActions: [], - compiledDefinitionContentHash: 'block-definition-v2-92cb2f18', - compiledDefinitionCanonicalSha256: 'sha256:6ca5be9c57b3664ded53b5eba6997d8be7a72512ff7f797309d0541f7a3b24c4', + compiledDefinitionContentHash: 'block-definition-v2-bfa7d8ae', + compiledDefinitionCanonicalSha256: 'sha256:06ed91fe7e5e7c76258b36b5306df707dc3aab745c20406343335c6dd2c8b69f', controlFanOuts: [ { source: 'quantizationMode', @@ -959,8 +959,8 @@ export const REGISTERED_BLOCK_V2_ORDINARY_FLUX_ROUTES: readonly RegisteredBlockV revision: '27c3d8bdc17509b47cf4fd9ba25ab1c7508a69a2', }, dynamicFieldActions: [], - compiledDefinitionContentHash: 'block-definition-v2-02d0d936', - compiledDefinitionCanonicalSha256: 'sha256:26b1de3ed37de949303d4fe077361cc7b33868d9071137258a1b0ce66b993fa4', + compiledDefinitionContentHash: 'block-definition-v2-ce2e8188', + compiledDefinitionCanonicalSha256: 'sha256:4957896f4745990be714467c9ce57706a163f5cd9aba653774e90001e30ec388', controlFanOuts: [ { source: 'quantizationMode', @@ -1135,8 +1135,8 @@ export const REGISTERED_BLOCK_V2_ORDINARY_FLUX_ROUTES: readonly RegisteredBlockV revision: 'fb5e9b1bae41b8c8adcea4ea2a87b74dd298f07a', }, dynamicFieldActions: [], - compiledDefinitionContentHash: 'block-definition-v2-34a2e8de', - compiledDefinitionCanonicalSha256: 'sha256:97a2c24e429d852fb6664db6040aa6c1026c62675739c52461c7204351ceb52d', + compiledDefinitionContentHash: 'block-definition-v2-6795e33c', + compiledDefinitionCanonicalSha256: 'sha256:b48e57bfb5afd96b46df9f69d19f36922edc66997f163fb668828d5a062c7598', controlFanOuts: [ { source: 'quantizationMode', @@ -1304,8 +1304,8 @@ export const REGISTERED_BLOCK_V2_ORDINARY_FLUX_ROUTES: readonly RegisteredBlockV revision: 'fb5e9b1bae41b8c8adcea4ea2a87b74dd298f07a', }, dynamicFieldActions: [], - compiledDefinitionContentHash: 'block-definition-v2-e2098085', - compiledDefinitionCanonicalSha256: 'sha256:347456b53695f0fd0650cd25af90e8afd1aa6ee3c6af23d9d3997193ff893e6d', + compiledDefinitionContentHash: 'block-definition-v2-ae926ebb', + compiledDefinitionCanonicalSha256: 'sha256:d0bc2f5e78afc1e5be79e9bda390ef9bcfdea2459147c555d0eb76873ac29d84', controlFanOuts: [ { source: 'quantizationMode', @@ -1452,8 +1452,8 @@ export const REGISTERED_BLOCK_V2_ORDINARY_FLUX_ROUTES: readonly RegisteredBlockV revision: 'fb5e9b1bae41b8c8adcea4ea2a87b74dd298f07a', }, dynamicFieldActions: [], - compiledDefinitionContentHash: 'block-definition-v2-057db648', - compiledDefinitionCanonicalSha256: 'sha256:792cc7be1c45c993dfbf7aeaba80facc9e6fec03f9fcf6258b596be6bdcc00a7', + compiledDefinitionContentHash: 'block-definition-v2-0e78f83a', + compiledDefinitionCanonicalSha256: 'sha256:13218b8d2cd21d1f4acfd2abd89410cf2cbc8657a87e35b00dd21a9aa1a638ed', controlFanOuts: [ { source: 'quantizationMode', @@ -1628,8 +1628,8 @@ export const REGISTERED_BLOCK_V2_ORDINARY_FLUX_ROUTES: readonly RegisteredBlockV revision: '3de623fc3c33e44ffbe2bad470d0f45bccf2eb21', }, dynamicFieldActions: [], - compiledDefinitionContentHash: 'block-definition-v2-b4c27ece', - compiledDefinitionCanonicalSha256: 'sha256:08baf4a638c718da844ec2a7b2cd9ddc83dd1546b3f71b8dbdd4020dd62eb364', + compiledDefinitionContentHash: 'block-definition-v2-27e367e4', + compiledDefinitionCanonicalSha256: 'sha256:7a880c79b29ee559001dff3ba84f37b87d74f58e61b154cbc39bb5b8224fbe64', controlFanOuts: [ { source: 'quantizationMode', @@ -1783,8 +1783,8 @@ export const REGISTERED_BLOCK_V2_ORDINARY_FLUX_ROUTES: readonly RegisteredBlockV revision: '358293da0354175698b67ec8299acf928313a78a', }, dynamicFieldActions: [], - compiledDefinitionContentHash: 'block-definition-v2-30bd9ae7', - compiledDefinitionCanonicalSha256: 'sha256:abcedb26d926afa06a78ffc61a81805d4d4a10108949ac68f641ce9fdb196c9d', + compiledDefinitionContentHash: 'block-definition-v2-7930f6a9', + compiledDefinitionCanonicalSha256: 'sha256:b6311dd4059f7a91667ae88fd73ed7e035406b5c227139ede45a864fa9653963', controlFanOuts: [ { source: 'quantizationMode', @@ -1938,8 +1938,8 @@ export const REGISTERED_BLOCK_V2_ORDINARY_FLUX_ROUTES: readonly RegisteredBlockV revision: '358293da0354175698b67ec8299acf928313a78a', }, dynamicFieldActions: [], - compiledDefinitionContentHash: 'block-definition-v2-92c5d708', - compiledDefinitionCanonicalSha256: 'sha256:68a0f8c415c8710e2d844a1b9b0a5f1a05fe3329c7f34eacc4a7e7fa3c80ce62', + compiledDefinitionContentHash: 'block-definition-v2-9a62a3f2', + compiledDefinitionCanonicalSha256: 'sha256:8a0e0a064e5df5fc0b935e91e9e7b62347958338816b8ba5f5c5710df7502289', controlFanOuts: [ { source: 'quantizationMode', @@ -2093,8 +2093,8 @@ export const REGISTERED_BLOCK_V2_ORDINARY_FLUX_ROUTES: readonly RegisteredBlockV revision: '24e9dedc4ef646698dc8eb4e18ae2cec3c9fea0d', }, dynamicFieldActions: [], - compiledDefinitionContentHash: 'block-definition-v2-dfffaab9', - compiledDefinitionCanonicalSha256: 'sha256:caa5d40742fea08dd5e6dd3bbb25477cfd5acbd3c48a101cfb39e72d84df4f21', + compiledDefinitionContentHash: 'block-definition-v2-35b1da23', + compiledDefinitionCanonicalSha256: 'sha256:c79a69a72e2f31d515255a435cfe888c8ea293f3340f4c4b4fafc76560d8cf37', controlFanOuts: [ { source: 'quantizationMode', @@ -2253,8 +2253,8 @@ export const REGISTERED_BLOCK_V2_ORDINARY_FLUX_ROUTES: readonly RegisteredBlockV revision: '24e9dedc4ef646698dc8eb4e18ae2cec3c9fea0d', }, dynamicFieldActions: [], - compiledDefinitionContentHash: 'block-definition-v2-87dc8891', - compiledDefinitionCanonicalSha256: 'sha256:2d78f2dc7f18f7b21882657bbb86e957fc27cf2d5d415e70687a10f4c5a5ad6e', + compiledDefinitionContentHash: 'block-definition-v2-55848bf3', + compiledDefinitionCanonicalSha256: 'sha256:a49eabbb5a178b74d6b503b2ed71a4a33b4e16ed990d3a2220f8565ce724efdd', controlFanOuts: [ { source: 'quantizationMode', @@ -2414,7 +2414,7 @@ export const REGISTERED_BLOCK_V2_ORDINARY_FLUX_ROUTES: readonly RegisteredBlockV }, { definitionId: 'diffusers.composite:FluxKontextPipeline:multi_image_reference_edit', - definitionContentHash: 'sha256:ca1fcd513292824c1ca8eda4a029e85f4e58a02de014800088f621c8914cd607', + definitionContentHash: 'sha256:d661ffe6bea33c96883b20c6c3fe7471aa1c407de19fbee75d66350158817e11', provider: 'diffusers', surface: 'diffusers_cluster_nodes', definitionKind: 'studio_execution_composite', @@ -2426,7 +2426,7 @@ export const REGISTERED_BLOCK_V2_ORDINARY_FLUX_ROUTES: readonly RegisteredBlockV studioMode: 'multi_image_reference_edit', adapterContractId: 'diffusers.composite-adapter:FluxKontextPipeline:multi_image_reference_edit', studioExecutionSpec: { - contentHash: 'studio-spec-v1-aa060039', + contentHash: 'studio-spec-v1-0b8e1bfb', executionProfileId: 'flux-kontext:direct', id: 'flux-kontext:multi-image-reference-edit:v1', }, @@ -2435,8 +2435,8 @@ export const REGISTERED_BLOCK_V2_ORDINARY_FLUX_ROUTES: readonly RegisteredBlockV revision: '24e9dedc4ef646698dc8eb4e18ae2cec3c9fea0d', }, dynamicFieldActions: [], - compiledDefinitionContentHash: 'block-definition-v2-30cb9120', - compiledDefinitionCanonicalSha256: 'sha256:979edcbdb2b83f1d2eed972c024f25ddb9b0bce7b619e1a09f9a2fa2524ee874', + compiledDefinitionContentHash: 'block-definition-v2-78cff9ff', + compiledDefinitionCanonicalSha256: 'sha256:a12f1c7c38ed6fb4856dd8aef6a64e5584a1227b9b58a9ab59fcae91a57b43d8', controlFanOuts: [ { source: 'quantizationMode', @@ -2578,8 +2578,8 @@ export const REGISTERED_BLOCK_V2_ORDINARY_FLUX_ROUTES: readonly RegisteredBlockV revision: '8162a9c7b05a641be098422bf2fcf335615c2f28', }, dynamicFieldActions: [], - compiledDefinitionContentHash: 'block-definition-v2-4dff174b', - compiledDefinitionCanonicalSha256: 'sha256:a3deed2f40c626f998eeb1ea3acdaa11701351738f54e03d34df9845571d6da2', + compiledDefinitionContentHash: 'block-definition-v2-6333f021', + compiledDefinitionCanonicalSha256: 'sha256:15741658977fb933ab3db1023af07ecb4464ee92168858075cfced5b95e2980e', controlFanOuts: [ { source: 'quantizationMode', @@ -2694,7 +2694,7 @@ export const REGISTERED_BLOCK_V2_ORDINARY_FLUX_ROUTES: readonly RegisteredBlockV }, { definitionId: 'diffusers.composite:FluxReduxPipeline:edit_image', - definitionContentHash: 'sha256:65144e7c60ab0d412956b20bb7c32eb522a386c187bb903f3821c158cd6cff0a', + definitionContentHash: 'sha256:31ba91eb83a23f7b259e7c43b5941e97c39e85bc393fc8017f947c1e5f60fba7', provider: 'diffusers', surface: 'diffusers_cluster_nodes', definitionKind: 'studio_execution_composite', @@ -2705,7 +2705,7 @@ export const REGISTERED_BLOCK_V2_ORDINARY_FLUX_ROUTES: readonly RegisteredBlockV studioMode: 'edit_image', adapterContractId: 'diffusers.composite-adapter:FluxReduxPipeline:edit_image', studioExecutionSpec: { - contentHash: 'studio-spec-v1-18e2c4ac', + contentHash: 'studio-spec-v1-36b6aa16', executionProfileId: 'flux-redux:direct', id: 'flux-redux:edit-image:v1', }, @@ -2714,8 +2714,8 @@ export const REGISTERED_BLOCK_V2_ORDINARY_FLUX_ROUTES: readonly RegisteredBlockV revision: 'c95859fbf7703ca4d6824b4da4407d7cd0434f81', }, dynamicFieldActions: [], - compiledDefinitionContentHash: 'block-definition-v2-a0ca9c31', - compiledDefinitionCanonicalSha256: 'sha256:73e02e2186436b654b56d5ee0638811dcd953943042ce9931a6289c7a2953b07', + compiledDefinitionContentHash: 'block-definition-v2-58099051', + compiledDefinitionCanonicalSha256: 'sha256:398f5c731d5ae518e40577aba0b1abc95b7ed2e5ed96d683c280e1e6a2e5ebf3', controlFanOuts: [ { source: 'quantizationMode', @@ -2837,7 +2837,7 @@ export const REGISTERED_BLOCK_V2_ORDINARY_FLUX_ROUTES: readonly RegisteredBlockV }, { definitionId: 'diffusers.composite:FluxReduxPipeline:multi_image_reference_edit', - definitionContentHash: 'sha256:df15a0918352cfea0203af283c27529fe2341bdb46f713e66c3368cd5a9e344b', + definitionContentHash: 'sha256:ef7199a55c524eba2858bb197e239a03e1146aacf58551f74ffe4e5c471eaa58', provider: 'diffusers', surface: 'diffusers_cluster_nodes', definitionKind: 'studio_execution_composite', @@ -2849,7 +2849,7 @@ export const REGISTERED_BLOCK_V2_ORDINARY_FLUX_ROUTES: readonly RegisteredBlockV studioMode: 'multi_image_reference_edit', adapterContractId: 'diffusers.composite-adapter:FluxReduxPipeline:multi_image_reference_edit', studioExecutionSpec: { - contentHash: 'studio-spec-v1-a798155c', + contentHash: 'studio-spec-v1-9fc6eba6', executionProfileId: 'flux-redux:direct', id: 'flux-redux:multi-image-reference-edit:v1', }, @@ -2858,8 +2858,8 @@ export const REGISTERED_BLOCK_V2_ORDINARY_FLUX_ROUTES: readonly RegisteredBlockV revision: 'c95859fbf7703ca4d6824b4da4407d7cd0434f81', }, dynamicFieldActions: [], - compiledDefinitionContentHash: 'block-definition-v2-a535fac2', - compiledDefinitionCanonicalSha256: 'sha256:8a3e8bf6d34df5e4be7c025b6ede6af1875f24037f983bf3e0be99cb731d1ddf', + compiledDefinitionContentHash: 'block-definition-v2-86522d82', + compiledDefinitionCanonicalSha256: 'sha256:3e1d961a706a75fd6997a076bb67ed9635382e2025724cf3aaf0b39bbf2cf58e', controlFanOuts: [ { source: 'quantizationMode', @@ -3006,8 +3006,8 @@ export const REGISTERED_BLOCK_V2_ORDINARY_FLUX_ROUTES: readonly RegisteredBlockV revision: '741f7c3ce8b383c54771c7003378a50191e9efe9', }, dynamicFieldActions: [], - compiledDefinitionContentHash: 'block-definition-v2-306484a9', - compiledDefinitionCanonicalSha256: 'sha256:c16aac54e8e76064fd76ef4b1ecee002785d0c8d92e5d89e88510d978040f401', + compiledDefinitionContentHash: 'block-definition-v2-780b7f67', + compiledDefinitionCanonicalSha256: 'sha256:7ff8201369a622b62811b20b7e4a29e5995b4ccc1eedccd2805b54492d8f4cc0', controlFanOuts: [ { source: 'quantizationMode', diff --git a/src/studio/registeredBlockV2Routes.ts b/src/studio/registeredBlockV2Routes.ts index e6ef2a77..53b748b6 100644 --- a/src/studio/registeredBlockV2Routes.ts +++ b/src/studio/registeredBlockV2Routes.ts @@ -177,8 +177,8 @@ export const REGISTERED_BLOCK_V2_ROUTES: readonly RegisteredBlockV2Route[] = Obj pipelineClass: 'AnimaModularPipeline', workflowId: 'text2image', admissionId: 'diffusers.cluster-admission:AnimaModularPipeline:text2image:workflow:official_top_level_blocks', - compiledDefinitionContentHash: 'block-definition-v2-284b1f93', - compiledDefinitionCanonicalSha256: 'sha256:5ab9d0f6ea8b1c857d737be86fccb5c742d326c285f8895470d1768c5012f95f', + compiledDefinitionContentHash: 'block-definition-v2-c84f698e', + compiledDefinitionCanonicalSha256: 'sha256:b0234ebb1fdbb6055ecc3dbab488d4ed0c8bcd3c03a20b2b97e84cc65bd412df', studioMode: 'text_to_image', adapterContractId: 'diffusers.modular-adapter:AnimaModularPipeline:text2image:workflow:official_top_level_blocks', studioExecutionSpec: { @@ -199,8 +199,8 @@ export const REGISTERED_BLOCK_V2_ROUTES: readonly RegisteredBlockV2Route[] = Obj workflowId: 'image2video', admissionId: 'diffusers.cluster-admission:Cosmos3DistilledModularPipeline:image2video:workflow:official_top_level_blocks', - compiledDefinitionContentHash: 'block-definition-v2-6f35cb17', - compiledDefinitionCanonicalSha256: 'sha256:46cd6f89bab6b5835fcfd5a0a03d4c04bce7b8d6ff2b983ee7b7d5f1925db03f', + compiledDefinitionContentHash: 'block-definition-v2-425743b0', + compiledDefinitionCanonicalSha256: 'sha256:7e76444ea94e6c6e994c8d54f23fa9120f9bdd2b1523613bd794b42cdece7870', studioMode: 'image_to_video', adapterContractId: 'diffusers.modular-adapter:Cosmos3DistilledModularPipeline:image2video:workflow:official_top_level_blocks', @@ -248,8 +248,8 @@ export const REGISTERED_BLOCK_V2_ROUTES: readonly RegisteredBlockV2Route[] = Obj workflowId: 'text2image', admissionId: 'diffusers.cluster-admission:Cosmos3DistilledModularPipeline:text2image:workflow:official_top_level_blocks', - compiledDefinitionContentHash: 'block-definition-v2-1606ba66', - compiledDefinitionCanonicalSha256: 'sha256:de23166153b883e72424fb202e8db9d84880ee50a279b41cdde0f1e1ce756d96', + compiledDefinitionContentHash: 'block-definition-v2-753bb2f7', + compiledDefinitionCanonicalSha256: 'sha256:fbb26273304d2908387fdadd43c2f8e57d3cbc98b3c92c561b72326e61189e4b', studioMode: 'text_to_image', adapterContractId: 'diffusers.modular-adapter:Cosmos3DistilledModularPipeline:text2image:workflow:official_top_level_blocks', @@ -288,8 +288,8 @@ export const REGISTERED_BLOCK_V2_ROUTES: readonly RegisteredBlockV2Route[] = Obj pipelineClass: 'Cosmos3OmniModularPipeline', workflowId: 'text2image', admissionId: 'diffusers.cluster-admission:Cosmos3OmniModularPipeline:text2image:workflow:official_top_level_blocks', - compiledDefinitionContentHash: 'block-definition-v2-e876e626', - compiledDefinitionCanonicalSha256: 'sha256:215003e7562f3034968b18646a813e983e635230e775ae5bf58ecb55cbe0fa7f', + compiledDefinitionContentHash: 'block-definition-v2-7743655f', + compiledDefinitionCanonicalSha256: 'sha256:e94c99c5de05f5534e5dfda1ff41befccae2d73e1b4cdbae591683cfa2e7b2c5', studioMode: 'text_to_image', adapterContractId: 'diffusers.modular-adapter:Cosmos3OmniModularPipeline:text2image:workflow:official_top_level_blocks', @@ -329,8 +329,8 @@ export const REGISTERED_BLOCK_V2_ROUTES: readonly RegisteredBlockV2Route[] = Obj pipelineClass: 'Cosmos3OmniModularPipeline', workflowId: 'text2video', admissionId: 'diffusers.cluster-admission:Cosmos3OmniModularPipeline:text2video:workflow:official_top_level_blocks', - compiledDefinitionContentHash: 'block-definition-v2-0427e22d', - compiledDefinitionCanonicalSha256: 'sha256:7fa7f8ad979c893eaed72e40da0aa2d6ec4ae4810c057346a52aafd594dca795', + compiledDefinitionContentHash: 'block-definition-v2-4af2026a', + compiledDefinitionCanonicalSha256: 'sha256:06d464cc4edb73756804473fc4541a02df22846efa0422b66b2cf1eda28bdf89', studioMode: 'text_to_video', adapterContractId: 'diffusers.modular-adapter:Cosmos3OmniModularPipeline:text2video:workflow:official_top_level_blocks', @@ -373,8 +373,8 @@ export const REGISTERED_BLOCK_V2_ROUTES: readonly RegisteredBlockV2Route[] = Obj workflowId: 'image2video', admissionId: 'diffusers.cluster-admission:Cosmos3OmniModularPipeline:image2video:workflow:official_top_level_blocks', - compiledDefinitionContentHash: 'block-definition-v2-82c4f911', - compiledDefinitionCanonicalSha256: 'sha256:73fafe169792cf6d4622c3209921dae27c9d3ea15e735e9b8986d8179a1b42dc', + compiledDefinitionContentHash: 'block-definition-v2-7bd2b99a', + compiledDefinitionCanonicalSha256: 'sha256:b6a59b6aaed673851757930d94945adaeb9c07259f17418782379ae71fa56dd2', studioMode: 'image_to_video', adapterContractId: 'diffusers.modular-adapter:Cosmos3OmniModularPipeline:image2video:workflow:official_top_level_blocks', @@ -424,8 +424,8 @@ export const REGISTERED_BLOCK_V2_ROUTES: readonly RegisteredBlockV2Route[] = Obj workflowId: 'image2video_with_sound', admissionId: 'diffusers.cluster-admission:Cosmos3OmniModularPipeline:image2video_with_sound:workflow:official_top_level_blocks', - compiledDefinitionContentHash: 'block-definition-v2-9ec99676', - compiledDefinitionCanonicalSha256: 'sha256:32b7c1981c97a0980b2f76d796c5e207505d1f09270816e3a3cdd0bbde335e18', + compiledDefinitionContentHash: 'block-definition-v2-5a2a7245', + compiledDefinitionCanonicalSha256: 'sha256:5d20b3064d878a812e5b319b80deeb19d78956de4552ee9b3513025d502f834e', studioMode: 'image_to_video_with_audio', adapterContractId: 'diffusers.modular-adapter:Cosmos3OmniModularPipeline:image2video_with_sound:workflow:official_top_level_blocks', @@ -475,8 +475,8 @@ export const REGISTERED_BLOCK_V2_ROUTES: readonly RegisteredBlockV2Route[] = Obj workflowId: 'text2video_with_sound', admissionId: 'diffusers.cluster-admission:Cosmos3OmniModularPipeline:text2video_with_sound:workflow:official_top_level_blocks', - compiledDefinitionContentHash: 'block-definition-v2-122d1f28', - compiledDefinitionCanonicalSha256: 'sha256:03639f23d27be0c1bd3b68e55da2468fd9b99b7d3f10e92b9860dbaabfaf5736', + compiledDefinitionContentHash: 'block-definition-v2-c464c985', + compiledDefinitionCanonicalSha256: 'sha256:3696fce1604d53e8d82b2a589c530df2a003eb80fbeebd81ec49c1d7a265a9bb', studioMode: 'text_to_video_with_audio', adapterContractId: 'diffusers.modular-adapter:Cosmos3OmniModularPipeline:text2video_with_sound:workflow:official_top_level_blocks', @@ -525,8 +525,8 @@ export const REGISTERED_BLOCK_V2_ROUTES: readonly RegisteredBlockV2Route[] = Obj workflowId: 'video2video', admissionId: 'diffusers.cluster-admission:Cosmos3OmniModularPipeline:video2video:workflow:official_top_level_blocks', - compiledDefinitionContentHash: 'block-definition-v2-a538d013', - compiledDefinitionCanonicalSha256: 'sha256:247c30b3c8cf8b9bcb670bebc1be69f90d4982d12ac2205ac35d16beefdaa70a', + compiledDefinitionContentHash: 'block-definition-v2-cc5f9eae', + compiledDefinitionCanonicalSha256: 'sha256:3856af80674b25d1c834cdfacc3cb480dfa826342956362ef3423431706cf9a7', studioMode: 'video_to_video', adapterContractId: 'diffusers.modular-adapter:Cosmos3OmniModularPipeline:video2video:workflow:official_top_level_blocks', @@ -576,8 +576,8 @@ export const REGISTERED_BLOCK_V2_ROUTES: readonly RegisteredBlockV2Route[] = Obj workflowId: 'video2video_with_sound', admissionId: 'diffusers.cluster-admission:Cosmos3OmniModularPipeline:video2video_with_sound:workflow:official_top_level_blocks', - compiledDefinitionContentHash: 'block-definition-v2-941e9cd6', - compiledDefinitionCanonicalSha256: 'sha256:9f6ebf2c7bc9e14d0dc5593ec51c2dc576da4b5bdf042e8d0c465f258a6f4a77', + compiledDefinitionContentHash: 'block-definition-v2-c847218f', + compiledDefinitionCanonicalSha256: 'sha256:ee4b4dc911d5a24b4c2f0d68a850e8264d72e12678dd0a887d0b344c76917031', studioMode: 'video_to_video_with_audio', adapterContractId: 'diffusers.modular-adapter:Cosmos3OmniModularPipeline:video2video_with_sound:workflow:official_top_level_blocks', @@ -626,8 +626,8 @@ export const REGISTERED_BLOCK_V2_ROUTES: readonly RegisteredBlockV2Route[] = Obj pipelineClass: 'Flux2KleinBaseModularPipeline', workflowId: 'text2image', admissionId: 'diffusers.cluster-admission:Flux2KleinBaseModularPipeline:text2image:mode:text_to_image', - compiledDefinitionContentHash: 'block-definition-v2-0b0487a2', - compiledDefinitionCanonicalSha256: 'sha256:d9e408fb234d60a8166a94faae48c2a8b3e88df5523f0bf10e900946a984a6c6', + compiledDefinitionContentHash: 'block-definition-v2-80434355', + compiledDefinitionCanonicalSha256: 'sha256:181e301310ed58a5a29b5f44a93169e065e4db8af2e0f95873d634c7be2118c0', studioMode: 'text_to_image', adapterContractId: 'diffusers.modular-adapter:Flux2KleinBaseModularPipeline:text2image:mode:text_to_image', studioExecutionSpec: { @@ -647,8 +647,8 @@ export const REGISTERED_BLOCK_V2_ROUTES: readonly RegisteredBlockV2Route[] = Obj pipelineClass: 'Flux2KleinModularPipeline', workflowId: 'text2image', admissionId: 'diffusers.cluster-admission:Flux2KleinModularPipeline:text2image:mode:text_to_image', - compiledDefinitionContentHash: 'block-definition-v2-c886d3bd', - compiledDefinitionCanonicalSha256: 'sha256:e9baf8403e04eb348c128ab09c704ba922b6050945a6d9e020ec2b47f939bd5f', + compiledDefinitionContentHash: 'block-definition-v2-6e3e66a8', + compiledDefinitionCanonicalSha256: 'sha256:47d68c080635d8c8ee645a971d83da4f8045a26151e448fbf0e296056324b821', studioMode: 'text_to_image', adapterContractId: 'diffusers.modular-adapter:Flux2KleinModularPipeline:text2image:mode:text_to_image', studioExecutionSpec: { @@ -664,17 +664,17 @@ export const REGISTERED_BLOCK_V2_ROUTES: readonly RegisteredBlockV2Route[] = Obj }), diffusersRoute({ definitionId: 'diffusers.modular:FluxKontextModularPipeline:text2image', - definitionContentHash: 'sha256:62849ec066216880296fb58948653a716f0a4a83849e54858378eb0e74cd4b88', + definitionContentHash: 'sha256:ee8f7ec37ad0edb5b9a77653f1d08faac5d9e606f4c92cf7457b15fad9d9412f', pipelineClass: 'FluxKontextModularPipeline', workflowId: 'text2image', admissionId: 'diffusers.cluster-admission:FluxKontextModularPipeline:text2image:mode:text_to_image', - compiledDefinitionContentHash: 'block-definition-v2-a35f7fd5', - compiledDefinitionCanonicalSha256: 'sha256:db65a154f942d0038e4ffe69de770abcfa2a3461beea753f180fe58216fee975', + compiledDefinitionContentHash: 'block-definition-v2-cd492a0a', + compiledDefinitionCanonicalSha256: 'sha256:a4412304b971bdbd21e22b53ef2fb1d948ce54eda63c2d166449d018c8bb276b', studioMode: 'text_to_image', adapterContractId: 'diffusers.modular-adapter:FluxKontextModularPipeline:text2image:mode:text_to_image', studioExecutionSpec: { id: 'flux-kontext:modular-text-to-image:v1', - contentHash: 'studio-spec-v1-f66959c0', + contentHash: 'studio-spec-v1-923966f5', executionProfileId: 'flux-kontext:modular', }, artifact: { @@ -685,17 +685,17 @@ export const REGISTERED_BLOCK_V2_ROUTES: readonly RegisteredBlockV2Route[] = Obj }), diffusersRoute({ definitionId: 'diffusers.modular:FluxModularPipeline:text2image', - definitionContentHash: 'sha256:cfec41815a507f63620e7b80cb6a18700485ac2520a7472826b1389418bbd7ed', + definitionContentHash: 'sha256:e675188cacb5c82f1b54304acd11f952b1a459320cda293aecc53f9a4b838503', pipelineClass: 'FluxModularPipeline', workflowId: 'text2image', admissionId: 'diffusers.cluster-admission:FluxModularPipeline:text2image:mode:text_to_image', - compiledDefinitionContentHash: 'block-definition-v2-394bf2b4', - compiledDefinitionCanonicalSha256: 'sha256:e6b63c81cc52b11dd51061fd4b476ffe468434c9fe32b185328b459c1295581c', + compiledDefinitionContentHash: 'block-definition-v2-aa8e4872', + compiledDefinitionCanonicalSha256: 'sha256:42b7d587e57d57dc4b64f33aff2499702606c138535ea46d1eef5968e6185cc6', studioMode: 'text_to_image', adapterContractId: 'diffusers.modular-adapter:FluxModularPipeline:text2image:mode:text_to_image', studioExecutionSpec: { id: 'flux-dev:modular-text-to-image:v1', - contentHash: 'studio-spec-v1-9dd14796', + contentHash: 'studio-spec-v1-f595d0f7', executionProfileId: 'flux-dev:modular', }, artifact: { @@ -710,8 +710,8 @@ export const REGISTERED_BLOCK_V2_ROUTES: readonly RegisteredBlockV2Route[] = Obj pipelineClass: 'MiniMaxMusic3ModularPipeline', workflowId: 'default', admissionId: 'diffusers.cluster-admission:MiniMaxMusic3ModularPipeline:default:workflow:official_top_level_blocks', - compiledDefinitionContentHash: 'block-definition-v2-f1af8629', - compiledDefinitionCanonicalSha256: 'sha256:adfcd515b6ef10ded0a08c9ddb9192ff1d1ed62726ce9799afdfaa586ed6da30', + compiledDefinitionContentHash: 'block-definition-v2-3c88b72c', + compiledDefinitionCanonicalSha256: 'sha256:38023aaf03efe36f3e12c19197b93a263fe1cc5335625f365c2f3db3072b1148', studioMode: 'text_to_audio', adapterContractId: 'diffusers.modular-adapter:MiniMaxMusic3ModularPipeline:default:workflow:official_top_level_blocks', @@ -735,8 +735,8 @@ export const REGISTERED_BLOCK_V2_ROUTES: readonly RegisteredBlockV2Route[] = Obj pipelineClass: 'MiniMaxH3ModularPipeline', workflowId: 't2va', admissionId: 'diffusers.cluster-admission:MiniMaxH3ModularPipeline:t2va:workflow:official_top_level_blocks', - compiledDefinitionContentHash: 'block-definition-v2-45a9136f', - compiledDefinitionCanonicalSha256: 'sha256:092cfe42a28a983f5284b427ba4510c5d0b6d89781c63ccfbe3df8bbcbb85bb5', + compiledDefinitionContentHash: 'block-definition-v2-01c724e8', + compiledDefinitionCanonicalSha256: 'sha256:d5ef563b039d44d505393c1007b721f600eebac77a703d5e961371dde78bbfb0', studioMode: 'text_to_video_with_audio', adapterContractId: 'diffusers.modular-adapter:MiniMaxH3ModularPipeline:t2va:workflow:official_top_level_blocks', studioExecutionSpec: { @@ -770,8 +770,8 @@ export const REGISTERED_BLOCK_V2_ROUTES: readonly RegisteredBlockV2Route[] = Obj pipelineClass: 'MiniMaxH3ModularPipeline', workflowId: 'fl2va', admissionId: 'diffusers.cluster-admission:MiniMaxH3ModularPipeline:fl2va:workflow:official_top_level_blocks', - compiledDefinitionContentHash: 'block-definition-v2-c1ae6fb5', - compiledDefinitionCanonicalSha256: 'sha256:a00c9f0c5afd8b196e43723880a8d7d61ef911291fca4bc24b32fcb467dc2e42', + compiledDefinitionContentHash: 'block-definition-v2-c40b4ca0', + compiledDefinitionCanonicalSha256: 'sha256:090367942f8455637c9fd78155f14838d88a4917621d183b21d27a48913afaf5', studioMode: 'first_last_frame_to_video_with_audio', adapterContractId: 'diffusers.modular-adapter:MiniMaxH3ModularPipeline:fl2va:workflow:official_top_level_blocks', studioExecutionSpec: { @@ -807,8 +807,8 @@ export const REGISTERED_BLOCK_V2_ROUTES: readonly RegisteredBlockV2Route[] = Obj pipelineClass: 'MiniMaxH3ModularPipeline', workflowId: 'ref2va', admissionId: 'diffusers.cluster-admission:MiniMaxH3ModularPipeline:ref2va:workflow:official_top_level_blocks', - compiledDefinitionContentHash: 'block-definition-v2-b5357247', - compiledDefinitionCanonicalSha256: 'sha256:a1d07b12f000d65c78ded811cffea8592189a287e8cf578098e0535e6d6a433d', + compiledDefinitionContentHash: 'block-definition-v2-869a9ab6', + compiledDefinitionCanonicalSha256: 'sha256:f9c8926e94718c87016b813e1225a8f84f3c8831a8ff747733062379328d584b', studioMode: 'reference_to_video_with_audio', adapterContractId: 'diffusers.modular-adapter:MiniMaxH3ModularPipeline:ref2va:workflow:official_top_level_blocks', studioExecutionSpec: { @@ -843,8 +843,8 @@ export const REGISTERED_BLOCK_V2_ROUTES: readonly RegisteredBlockV2Route[] = Obj pipelineClass: 'QwenImageModularPipeline', workflowId: 'text2image', admissionId: 'diffusers.cluster-admission:QwenImageModularPipeline:text2image:mode:text_to_image', - compiledDefinitionContentHash: 'block-definition-v2-6b8aec11', - compiledDefinitionCanonicalSha256: 'sha256:69f834ff7e2ecfe1dc908b4b00422eb70addd38d4542e688ec08616ceb9f9fc8', + compiledDefinitionContentHash: 'block-definition-v2-14029f56', + compiledDefinitionCanonicalSha256: 'sha256:ec3a009adf709adb5a681fe1d0982eb747132793946c1666c2a168cddba5a22a', studioMode: 'modular_text_to_image', adapterContractId: 'diffusers.modular-adapter:QwenImageModularPipeline:text2image:mode:text_to_image', studioExecutionSpec: { @@ -894,8 +894,8 @@ export const REGISTERED_BLOCK_V2_ROUTES: readonly RegisteredBlockV2Route[] = Obj pipelineClass: 'StableDiffusionXLModularPipeline', workflowId: 'text2image', admissionId: 'diffusers.cluster-admission:StableDiffusionXLModularPipeline:text2image:mode:text_to_image', - compiledDefinitionContentHash: 'block-definition-v2-b3e1fd2f', - compiledDefinitionCanonicalSha256: 'sha256:ca34a09936fb146c958509d450521f23b81d8340c658af65b20d9077a9773a17', + compiledDefinitionContentHash: 'block-definition-v2-b1f55fde', + compiledDefinitionCanonicalSha256: 'sha256:e75243c9e6314fbd1d0e4a01e0c84a44e5760e60aa3af2c3066538177b8f67c7', studioMode: 'text_to_image', adapterContractId: 'diffusers.modular-adapter:StableDiffusionXLModularPipeline:text2image:mode:text_to_image', studioExecutionSpec: { @@ -911,17 +911,17 @@ export const REGISTERED_BLOCK_V2_ROUTES: readonly RegisteredBlockV2Route[] = Obj }), diffusersRoute({ definitionId: 'diffusers.modular:ZImageModularPipeline:text2image', - definitionContentHash: 'sha256:999c63312a43b65b5b58d3db3bffc1be6219bf85d52bb367cd850aa3df6ef711', + definitionContentHash: 'sha256:d510dc9c19615055df7dc04cc26bcf1e02d5bd65573d23091e791d95acea596c', pipelineClass: 'ZImageModularPipeline', workflowId: 'text2image', admissionId: 'diffusers.cluster-admission:ZImageModularPipeline:text2image:mode:text_to_image', - compiledDefinitionContentHash: 'block-definition-v2-313615c7', - compiledDefinitionCanonicalSha256: 'sha256:ed8e8167d52e42d7225529b54d967f217332b9a479881613acb516c44f756736', + compiledDefinitionContentHash: 'block-definition-v2-76f3693f', + compiledDefinitionCanonicalSha256: 'sha256:d6a1c705d11c32135c17e6dac80b60c207ccaff42cdeb4b9f43a36f7e55a6ca0', studioMode: 'modular_text_to_image', adapterContractId: 'diffusers.modular-adapter:ZImageModularPipeline:text2image:mode:text_to_image', studioExecutionSpec: { id: 'z-image:modular-text-to-image:v1', - contentHash: 'studio-spec-v1-59451306', + contentHash: 'studio-spec-v1-fe4320cf', executionProfileId: 'z-image:modular', }, artifact: { @@ -932,13 +932,13 @@ export const REGISTERED_BLOCK_V2_ROUTES: readonly RegisteredBlockV2Route[] = Obj }), transformersRoute({ definitionId: 'transformers.composite:HuggingFaceAnyToAnyModel:image_to_text', - definitionContentHash: 'sha256:0ebbe9e39e10f4a9cc8a73516e30a12525f4583ac86e6a8c608f6e7dcbe8eb49', + definitionContentHash: 'sha256:b27f1c2bc6056bfba7d13fcd33fe5eb3de06711bee741fd277d6cdee3bfe343a', libraryRevision: '1655280bb75959cc1cb85529a2a8b26e7016072e', pipelineClass: 'HuggingFaceAnyToAnyModel', workflowId: 'image_to_text', admissionId: 'transformers.cluster-admission:HuggingFaceAnyToAnyModel:image_to_text', - compiledDefinitionContentHash: 'block-definition-v2-0afedc2e', - compiledDefinitionCanonicalSha256: 'sha256:ad4632f5f78ba0c1daf9c7f7135ffdb8d37ee6b8b1b7147f84ee395f468b3b51', + compiledDefinitionContentHash: 'block-definition-v2-6cbc7b66', + compiledDefinitionCanonicalSha256: 'sha256:2739db94bfd626c92945716852ce3c185ab0accc0c7c0e13e1ade06fdbe22454', studioMode: 'image_to_text', adapterContractId: 'transformers.composite-adapter:HuggingFaceAnyToAnyModel:image_to_text', studioExecutionSpec: { @@ -959,13 +959,13 @@ export const REGISTERED_BLOCK_V2_ROUTES: readonly RegisteredBlockV2Route[] = Obj }), transformersRoute({ definitionId: 'transformers.composite:HuggingFaceAnyToAnyModel:text_generation', - definitionContentHash: 'sha256:6451d8b0daacc5353b0b294d8d51d1f2d1c9e4215c047d0d28bc87f1591ced0c', + definitionContentHash: 'sha256:6e367669c70439a86ee47cdd6f789a7fd0847b2a1c6b19c112a06c0612e3c4f6', libraryRevision: '1655280bb75959cc1cb85529a2a8b26e7016072e', pipelineClass: 'HuggingFaceAnyToAnyModel', workflowId: 'text_generation', admissionId: 'transformers.cluster-admission:HuggingFaceAnyToAnyModel:text_generation', - compiledDefinitionContentHash: 'block-definition-v2-e1b6efdd', - compiledDefinitionCanonicalSha256: 'sha256:7c1f79f4ddf0999d91740bb2fc3eec814ac71be39817aaf2a2bd235239290591', + compiledDefinitionContentHash: 'block-definition-v2-7c6f1774', + compiledDefinitionCanonicalSha256: 'sha256:54d99f46f680a3c23d99ca3131f246c2f6e8ed8abd1fe376cb5acb1198cea710', studioMode: 'text_generation', adapterContractId: 'transformers.composite-adapter:HuggingFaceAnyToAnyModel:text_generation', studioExecutionSpec: { @@ -981,13 +981,13 @@ export const REGISTERED_BLOCK_V2_ROUTES: readonly RegisteredBlockV2Route[] = Obj }), transformersRoute({ definitionId: 'transformers.composite:HuggingFaceAnyToAnyModel:text_to_image', - definitionContentHash: 'sha256:0bb39f76a9d6c6b489d907dc670ea3099c314b3c36988c10e93c3f0de644d253', + definitionContentHash: 'sha256:b4094a74c10e93af2a5e4ae42c3af9168d68230ad0f5b561a94ce7d0a40dc024', libraryRevision: '1655280bb75959cc1cb85529a2a8b26e7016072e', pipelineClass: 'HuggingFaceAnyToAnyModel', workflowId: 'text_to_image', admissionId: 'transformers.cluster-admission:HuggingFaceAnyToAnyModel:text_to_image', - compiledDefinitionContentHash: 'block-definition-v2-ff70bec5', - compiledDefinitionCanonicalSha256: 'sha256:62f98ac93547e764029737f5eb2d6079d08d118db99a9ee7f4ad6fddf0579f29', + compiledDefinitionContentHash: 'block-definition-v2-e0d6cc7b', + compiledDefinitionCanonicalSha256: 'sha256:f7cd2cf1ad0e09144898591afe1d37ef78949a77702664eb3f56e104a3ed6d2c', studioMode: 'text_to_image', adapterContractId: 'transformers.composite-adapter:HuggingFaceAnyToAnyModel:text_to_image', studioExecutionSpec: { @@ -1013,13 +1013,13 @@ export const REGISTERED_BLOCK_V2_ROUTES: readonly RegisteredBlockV2Route[] = Obj }), transformersRoute({ definitionId: 'transformers.composite:HuggingFaceCTCSpeechRecognitionModel:speech_to_text', - definitionContentHash: 'sha256:dccbc1cfef44ccc331d3db8983a2c93fc2d59469017808ba7ccf03df3e8de8ce', + definitionContentHash: 'sha256:0c03dcd8f16cf19c33a827aa802f22294eb20d9dceee73bfacd73b6f1a9ef67d', libraryRevision: '22aad52d435eb6dbaf354bdad9b0da84ce7d6156', pipelineClass: 'HuggingFaceCTCSpeechRecognitionModel', workflowId: 'speech_to_text', admissionId: 'transformers.cluster-admission:HuggingFaceCTCSpeechRecognitionModel:speech_to_text', - compiledDefinitionContentHash: 'block-definition-v2-0538acfd', - compiledDefinitionCanonicalSha256: 'sha256:93e0da40072e8dc625e17572072eb85ac10dbf2b4a658357e351098b1ce3220a', + compiledDefinitionContentHash: 'block-definition-v2-e6518c32', + compiledDefinitionCanonicalSha256: 'sha256:4b8f73034ef9305d920807d13e61b0adee8d150cc66b9bea486f9636e7275342', studioMode: 'speech_to_text', adapterContractId: 'transformers.composite-adapter:HuggingFaceCTCSpeechRecognitionModel:speech_to_text', studioExecutionSpec: { @@ -1040,13 +1040,13 @@ export const REGISTERED_BLOCK_V2_ROUTES: readonly RegisteredBlockV2Route[] = Obj }), transformersRoute({ definitionId: 'transformers.composite:HuggingFaceImageTextToTextModel:image_to_text', - definitionContentHash: 'sha256:f74e416634ea113f92450a83fcd523da128a05ed4e7e410ca10b3366a8e29e5f', + definitionContentHash: 'sha256:b697aed7022d71cfc88fc7c2148a8d38d333aa45f9ad0a368a1637201662eb1d', libraryRevision: '7e3e67edbbed1bf9888184d9df282b700a323964', pipelineClass: 'HuggingFaceImageTextToTextModel', workflowId: 'image_to_text', admissionId: 'transformers.cluster-admission:HuggingFaceImageTextToTextModel:image_to_text', - compiledDefinitionContentHash: 'block-definition-v2-911b1c05', - compiledDefinitionCanonicalSha256: 'sha256:1d2d81a9f5de42cba994a09593c4f7c6530bdc6910a470162d1dc28054b46edd', + compiledDefinitionContentHash: 'block-definition-v2-3c0bfa38', + compiledDefinitionCanonicalSha256: 'sha256:d8d9ed01b347337fbf789b7b71f2a1de970299955e19b1bfc8421f2e7701bd51', studioMode: 'image_to_text', adapterContractId: 'transformers.composite-adapter:HuggingFaceImageTextToTextModel:image_to_text', studioExecutionSpec: { @@ -1067,13 +1067,13 @@ export const REGISTERED_BLOCK_V2_ROUTES: readonly RegisteredBlockV2Route[] = Obj }), transformersRoute({ definitionId: 'transformers.composite:HuggingFaceSpeechRecognitionModel:speech_to_text', - definitionContentHash: 'sha256:f79474c9e3aad63a287de2bf4b9cfe7297675fa578ebdcca7799a5fba31e594e', + definitionContentHash: 'sha256:17b47dc26205a701bad727b50907bc24b9816c6d7834dfed43e7bc2335950a34', libraryRevision: '169d4a4341b33bc18d8881c4b69c2e104e1cc0af', pipelineClass: 'HuggingFaceSpeechRecognitionModel', workflowId: 'speech_to_text', admissionId: 'transformers.cluster-admission:HuggingFaceSpeechRecognitionModel:speech_to_text', - compiledDefinitionContentHash: 'block-definition-v2-9572427b', - compiledDefinitionCanonicalSha256: 'sha256:afc2e974a19b5082ce0dc1529d734a32439f61cc8795a56ad59db39285ac379f', + compiledDefinitionContentHash: 'block-definition-v2-300b958a', + compiledDefinitionCanonicalSha256: 'sha256:11f618eedc9411b66cf4ddf5b881afaac9596b46b34310463b53c7de1e2ba5f3', studioMode: 'speech_to_text', adapterContractId: 'transformers.composite-adapter:HuggingFaceSpeechRecognitionModel:speech_to_text', studioExecutionSpec: { @@ -1094,13 +1094,13 @@ export const REGISTERED_BLOCK_V2_ROUTES: readonly RegisteredBlockV2Route[] = Obj }), transformersRoute({ definitionId: 'transformers.composite:HuggingFaceSpeechRecognitionModel:speech_translation', - definitionContentHash: 'sha256:75d167281041d1167dbf58218baf996551fd76553b123f21269f7fee0b9c2908', + definitionContentHash: 'sha256:15f3404a34e00ba28a575788a5737ec2f2f8d2dc79faf76602c4245c66a912de', libraryRevision: '169d4a4341b33bc18d8881c4b69c2e104e1cc0af', pipelineClass: 'HuggingFaceSpeechRecognitionModel', workflowId: 'speech_translation', admissionId: 'transformers.cluster-admission:HuggingFaceSpeechRecognitionModel:speech_translation', - compiledDefinitionContentHash: 'block-definition-v2-d24f88d0', - compiledDefinitionCanonicalSha256: 'sha256:a29af182025a23d62f6bb7f619783d771d52775870dfcdd8eeb2176ab778bfd4', + compiledDefinitionContentHash: 'block-definition-v2-b3cd5206', + compiledDefinitionCanonicalSha256: 'sha256:1e62c70e37a7db4e23ee832e13a07c64a19340f7724a83c5b4604c353ff8f748', studioMode: 'speech_translation', adapterContractId: 'transformers.composite-adapter:HuggingFaceSpeechRecognitionModel:speech_translation', studioExecutionSpec: { @@ -1121,13 +1121,13 @@ export const REGISTERED_BLOCK_V2_ROUTES: readonly RegisteredBlockV2Route[] = Obj }), transformersRoute({ definitionId: 'transformers.composite:HuggingFaceTextGenerationModel:text_generation', - definitionContentHash: 'sha256:32f78d82f1912997b1eaaf43a749627d7ccd07b8805bd66e8abaf21b27c6385a', + definitionContentHash: 'sha256:ec00d85eae98ff645e1ead4726c55904a9360513b5e21bdc2473fa1a2720a310', libraryRevision: '12fd25f77366fa6b3b4b768ec3050bf629380bac', pipelineClass: 'HuggingFaceTextGenerationModel', workflowId: 'text_generation', admissionId: 'transformers.cluster-admission:HuggingFaceTextGenerationModel:text_generation', - compiledDefinitionContentHash: 'block-definition-v2-d433f9be', - compiledDefinitionCanonicalSha256: 'sha256:898427024ec85e94bcc6c0dc89e43a6c11285a8f2d975ca25f35b49982f74888', + compiledDefinitionContentHash: 'block-definition-v2-320abdc3', + compiledDefinitionCanonicalSha256: 'sha256:f79469eda4c455a71348d07856f47f74466e94b6a8fbd3130fd97a93c4ae444d', studioMode: 'text_generation', adapterContractId: 'transformers.composite-adapter:HuggingFaceTextGenerationModel:text_generation', studioExecutionSpec: { diff --git a/src/studio/resolvedExecutionInputs.ts b/src/studio/resolvedExecutionInputs.ts index 6778a8e6..cf98f093 100644 --- a/src/studio/resolvedExecutionInputs.ts +++ b/src/studio/resolvedExecutionInputs.ts @@ -60,6 +60,11 @@ const inputNames: Record = { pipeline_class: 'modelType', auto_offload: 'autoOffload', offload_mode: 'offloadMode', + attention_backend: 'attentionBackend', + vae_slicing: 'vaeSlicing', + enable_vae_slicing: 'vaeSlicing', + vae_tiling: 'vaeTiling', + enable_vae_tiling: 'vaeTiling', output_type: 'outputType', quant_config: 'quantConfig', conditioning_scale: 'conditioningScale', @@ -76,6 +81,15 @@ const inputNames: Record = { // Mirror the backend's scoped capture contract. Auxiliary revisions must never // overwrite the base model's identity; unknown fields still reject the receipt. const nodeInputNames: Record> = { + 'ModularDiffusers.Guider': { + ...inputNames, + guider: 'guiderType', + enabled: 'guidanceEnabled', + use_original_formulation: 'guidanceOriginalFormulation', + guidance_rescale: 'guidanceRescale', + start: 'guidanceStart', + stop: 'guidanceStop', + }, 'DiffusersImage.ControlComponent': { model_id: 'controlComponentRepo', revision: 'controlComponentRevision', diff --git a/src/studio/templateExactness.ts b/src/studio/templateExactness.ts index e38c7da8..fa4bb87b 100644 --- a/src/studio/templateExactness.ts +++ b/src/studio/templateExactness.ts @@ -206,7 +206,7 @@ export function parseTemplateGalleryManifest(value: unknown): TemplateGalleryMan } export type TemplateExampleUiState = { - status: 'reviewed' | 'exact' | 'modified' | 'blocked' | 'unverified' | 'non_exact'; + status: 'reviewed' | 'exact' | 'historical' | 'modified' | 'blocked' | 'unverified' | 'non_exact'; label: string; tone: 'success' | 'warning' | 'error' | 'neutral'; modifiedFields: Array; @@ -321,6 +321,7 @@ export function getTemplateLockHash( lockedSettings: getTemplateLockedSettings(template), modelRevision, mediaType: template.example?.mediaType ?? 'image', + ...(template.executionSelection ? { executionSelection: template.executionSelection } : {}), ...(workflowLock ? { workflow: workflowLock } : {}), }), )}`; @@ -424,6 +425,17 @@ export function findManifestEntry( ); } +/** Approved media from the unchanged creator recipe before its execution + * selection changed. It is display provenance, never proof of the new graph. */ +export function findHistoricalTemplateManifestEntry( + template: StudioTemplate, + manifest: TemplateGalleryManifest | null | undefined, + options: { requireCardPreview?: boolean } = {}, +) { + if (!template.executionSelection) return undefined; + return findManifestEntry({ ...template, executionSelection: undefined }, manifest, options); +} + export function getTemplateExampleUiState( template: StudioTemplate, form: StudioFormState, @@ -448,6 +460,15 @@ export function getTemplateExampleUiState( manifestEntry, }; } + const historical = findHistoricalTemplateManifestEntry(template, manifest); + if (historical) + return { + status: 'historical', + label: 'Previous recipe example', + tone: 'neutral', + modifiedFields, + manifestEntry: historical, + }; if (template.example?.status === 'blocked') { return { status: 'blocked', label: 'Blocked', tone: 'error', modifiedFields }; @@ -484,7 +505,8 @@ export function getTemplateCardMedia( template: StudioTemplate, manifest: TemplateGalleryManifest | null | undefined, ): TemplateCardMedia { - const manifestEntry = findManifestEntry(template, manifest); + const manifestEntry = + findManifestEntry(template, manifest) ?? findHistoricalTemplateManifestEntry(template, manifest); const bundledSourcePreview = template.outputKinds?.[0] === 'audio' ? template.inputBindings diff --git a/src/studio/templateOperationSelections.ts b/src/studio/templateOperationSelections.ts new file mode 100644 index 00000000..684fbcdb --- /dev/null +++ b/src/studio/templateOperationSelections.ts @@ -0,0 +1,328 @@ +import type { StudioTemplateExecutionSelection, StudioTemplateId } from './types'; + +const STANDARD_Z_TEMPLATE_IDS: StudioTemplateId[] = [ + 'z_image_quick_concept', + 'z_image_product_mockup', + 'z_image_poster', + 'z_image_lora_style', + 'z_image_cinematic_contact_sheet', + 'low_vram', + 'fast_lora', +]; + +const STANDARD_FLUX_TEMPLATE_IDS: StudioTemplateId[] = [ + 'flux_schnell_text_to_image', + 'flux_dev_expert_text_to_image', + 'flux_lora_cinematic_octane_3d', + 'flux_lora_ghibli_story', + 'flux_lora_oil_painting', + 'flux_lora_film_noir', + 'flux_lora_retro_comic', + 'flux_lora_watercolor', + 'flux_lora_paper_cutout', + 'flux_lora_photoreal_documentary', + 'flux_krea_text_to_image', + 'flux_kontext_edit', + 'flux_kontext_multi_reference', +]; + +function recipes(ids: StudioTemplateId[], selection: StudioTemplateExecutionSelection) { + return Object.fromEntries( + ids.map((id) => [ + id, + { + ...selection, + ...(PRESERVED_PIPELINE_POLICIES[id] ? { componentPolicy: PRESERVED_PIPELINE_POLICIES[id] } : {}), + ...(['z_image_lora_style', 'fast_lora'].includes(id) ? { loraPolicy: { defaultAdapterName: 'default' } } : {}), + ...(STANDARD_Z_TEMPLATE_IDS.includes(id) + ? { guidancePolicy: { enabled: true, useOriginalFormulation: true } } + : {}), + ...(STANDARD_FLUX_TEMPLATE_IDS.includes(id) + ? { + guidancePolicy: { + enabled: id !== 'flux_schnell_text_to_image', + useOriginalFormulation: false, + distilledGuidanceScale: id === 'flux_schnell_text_to_image' ? 0 : 3.5, + }, + } + : {}), + }, + ]), + ); +} + +// These fresh native recipes previously used the whole-pipeline recipe's +// explicit VAE/attention settings. Original native recipes keep their defaults. +const PRESERVED_PIPELINE_POLICIES: Partial< + Record> +> = Object.fromEntries([ + ...STANDARD_Z_TEMPLATE_IDS.map((id) => [id, { attentionBackend: '_native_math', vaeSlicing: true, vaeTiling: true }]), + ...[ + 'qwen_text_rendering', + 'qwen_poster_logo_text', + 'qwen_product_mockup', + 'qwen_low_vram_text_rendering', + 'qwen_low_vram_product_concept', + 'qwen_low_vram_poster_layout', + 'qwen_upscale_finish', + 'high_quality', + 'flux_schnell_text_to_image', + 'flux_dev_expert_text_to_image', + 'flux_lora_cinematic_octane_3d', + 'flux_lora_ghibli_story', + 'flux_lora_oil_painting', + 'flux_lora_film_noir', + 'flux_lora_retro_comic', + 'flux_lora_watercolor', + 'flux_lora_paper_cutout', + 'flux_lora_photoreal_documentary', + 'flux_kontext_edit', + 'flux_krea_text_to_image', + 'flux_kontext_multi_reference', + 'flux2_klein_text_to_image', + 'flux2_klein_edit', + 'flux2_klein_multi_reference', + ].map((id) => [id, { attentionBackend: 'auto', vaeSlicing: true, vaeTiling: true }]), +]); +function native( + pipelineClass: string, + executionProfileId: string, + modelType: StudioTemplateExecutionSelection['bindingSpec']['modelType'], + mode: StudioTemplateExecutionSelection['bindingSpec']['mode'], + task: string = mode, +): StudioTemplateExecutionSelection { + return { + schemaVersion: 1, + pipelineClass, + executionProfileId, + task, + bindingSpec: { modelType, mode }, + implementation: 'native_stages', + }; +} +function pipeline( + pipelineClass: string, + executionProfileId: string, + modelType: StudioTemplateExecutionSelection['bindingSpec']['modelType'], + mode: StudioTemplateExecutionSelection['bindingSpec']['mode'], + note: string, +): StudioTemplateExecutionSelection { + return { + schemaVersion: 1, + pipelineClass, + executionProfileId, + task: mode, + bindingSpec: { modelType, mode }, + implementation: 'whole_pipeline', + note, + }; +} + +/** Curated fresh recipes, not global model defaults or execution authority. */ +export const IMAGE_TEMPLATE_EXECUTION_SELECTIONS: Partial> = + { + ...recipes( + STANDARD_Z_TEMPLATE_IDS, + native( + 'ZImageModularPipeline', + 'z-image:modular', + 'ZImageModularPipeline', + 'modular_text_to_image', + 'text_to_image', + ), + ), + ...recipes( + [ + 'qwen_text_rendering', + 'qwen_poster_logo_text', + 'qwen_product_mockup', + 'qwen_low_vram_text_rendering', + 'qwen_low_vram_product_concept', + 'qwen_low_vram_poster_layout', + 'qwen_upscale_finish', + 'high_quality', + ], + native( + 'QwenImageModularPipeline', + 'qwen-image:modular', + 'QwenImageModularPipeline', + 'modular_text_to_image', + 'text_to_image', + ), + ), + ...recipes( + ['qwen_control_image_layout', 'qwen_packaging_dieline'], + native('QwenImageModularPipeline', 'qwen-image:modular', 'QwenImageModularPipeline', 'control_image'), + ), + ...recipes( + [ + 'qwen_product_ad_composite', + 'qwen_product_relight', + 'qwen_logo_texture', + 'reference_fusion', + 'qwen_multi_reference_product', + ], + native( + 'QwenImageEditPlusModularPipeline', + 'qwen-edit-plus:modular', + 'QwenImageEditPlusModularPipeline', + 'multi_image_reference_edit', + ), + ), + ...recipes( + ['character_edit', 'qwen_edit_plus_single_image'], + native( + 'QwenImageEditPlusModularPipeline', + 'qwen-edit-plus:modular', + 'QwenImageEditPlusModularPipeline', + 'edit_image', + ), + ), + ...recipes( + ['qwen_character_angles', 'qwen_tile_extract', 'qwen_edit_strength_sweep'], + native('QwenImageEditModularPipeline', 'qwen-edit:modular', 'QwenImageEditModularPipeline', 'edit_image'), + ), + ...recipes( + ['qwen_layered_portrait'], + native( + 'QwenImageLayeredModularPipeline', + 'qwen-layered:modular', + 'QwenImageLayeredModularPipeline', + 'layer_decomposition', + ), + ), + ...recipes( + ['flux_schnell_text_to_image'], + native('FluxModularPipeline', 'flux-schnell:modular', 'FluxModularPipeline', 'text_to_image'), + ), + ...recipes( + [ + 'flux_dev_expert_text_to_image', + 'flux_lora_cinematic_octane_3d', + 'flux_lora_ghibli_story', + 'flux_lora_oil_painting', + 'flux_lora_film_noir', + 'flux_lora_retro_comic', + 'flux_lora_watercolor', + 'flux_lora_paper_cutout', + 'flux_lora_photoreal_documentary', + ], + native('FluxModularPipeline', 'flux-dev:modular', 'FluxModularPipeline', 'text_to_image'), + ), + ...recipes( + ['flux_krea_text_to_image'], + native('FluxModularPipeline', 'flux-krea:modular', 'FluxModularPipeline', 'text_to_image'), + ), + ...recipes( + ['flux_kontext_edit'], + native('FluxKontextModularPipeline', 'flux-kontext:modular', 'FluxKontextModularPipeline', 'edit_image'), + ), + ...recipes( + ['flux_kontext_multi_reference'], + native( + 'FluxKontextModularPipeline', + 'flux-kontext:modular', + 'FluxKontextModularPipeline', + 'edit_image', + 'multi_image_reference_edit', + ), + ), + ...recipes( + ['flux2_klein_text_to_image'], + native('Flux2KleinModularPipeline', 'flux2-klein:modular', 'Flux2KleinModularPipeline', 'text_to_image'), + ), + ...recipes( + ['flux2_klein_edit'], + native('Flux2KleinModularPipeline', 'flux2-klein:modular', 'Flux2KleinModularPipeline', 'edit_image'), + ), + ...recipes( + ['flux2_klein_multi_reference'], + native( + 'Flux2KleinModularPipeline', + 'flux2-klein:modular', + 'Flux2KleinModularPipeline', + 'edit_image', + 'multi_image_reference_edit', + ), + ), + ...recipes( + ['qwen_inpaint_object_replace', 'qwen_inpaint_mask_draft'], + pipeline( + 'QwenImageEditInpaintPipeline', + 'qwen-edit:direct-inpaint', + 'QwenImageEditModularPipeline', + 'inpaint', + 'Retains the reviewed standard masked-edit semantics; native mask/generator parity has not been established.', + ), + ), + ...recipes( + ['qwen_outpaint_aspect_template', 'qwen_outpaint_draft'], + pipeline( + 'QwenImageEditInpaintPipeline', + 'qwen-edit:direct-inpaint', + 'QwenImageEditModularPipeline', + 'outpaint', + 'Retains the reviewed canvas preparation and standard masked-edit semantics; native parity has not been established.', + ), + ), + ...recipes( + ['flux_fill_inpaint'], + pipeline( + 'FluxFillPipeline', + 'flux-fill:direct', + 'FluxFillPipeline', + 'inpaint', + 'The pinned upstream Fill task uses its complete specialized pipeline.', + ), + ), + ...recipes( + ['flux_fill_outpaint'], + pipeline( + 'FluxFillPipeline', + 'flux-fill:direct', + 'FluxFillPipeline', + 'outpaint', + 'The pinned upstream Fill task uses its complete specialized pipeline.', + ), + ), + ...recipes( + ['flux_control_canny'], + pipeline( + 'FluxControlPipeline', + 'flux-canny:direct', + 'FluxCannyPipeline', + 'control_image', + 'The pinned upstream Canny task uses its specialized control transformer pipeline.', + ), + ), + ...recipes( + ['flux_depth_control'], + pipeline( + 'FluxControlPipeline', + 'flux-depth:direct', + 'FluxDepthPipeline', + 'control_image', + 'The pinned upstream Depth task uses its specialized control transformer pipeline.', + ), + ), + ...recipes( + ['flux_redux_edit'], + pipeline( + 'FluxReduxPipeline', + 'flux-redux:direct', + 'FluxReduxPipeline', + 'edit_image', + 'Retains the exact base pipeline and Redux prior conditioning at this upstream pin.', + ), + ), + ...recipes( + ['flux_redux_multi_reference'], + pipeline( + 'FluxReduxPipeline', + 'flux-redux:direct', + 'FluxReduxPipeline', + 'multi_image_reference_edit', + 'Retains the exact base pipeline and ordered Redux prior conditioning at this upstream pin.', + ), + ), + }; diff --git a/src/studio/templateOperationWorkflow.ts b/src/studio/templateOperationWorkflow.ts new file mode 100644 index 00000000..539d2641 --- /dev/null +++ b/src/studio/templateOperationWorkflow.ts @@ -0,0 +1,262 @@ +import { nanoid } from 'nanoid'; +import type { CustomNodeType } from '../stores/useFlowStore'; +import type { NodeData } from '../stores/useNodeStore'; +import { connectionTypesAreCompatible } from '../theme/connectionTypeCompatibility'; +import { + createOperationStarter, + operationAuthoring, + type OperationGraph, + type OperationStarter, +} from '../workflow/operationAuthoring'; +import { operationOwnsModel } from '../workflow/operationContracts'; +import { createNodeFromRegistry } from '../workflow/nodeFactory'; +import { groupNewOperationGraph } from '../workflow/visualOperationGroups'; +import { CONTROLLED_WORKFLOW_NODE_KEYS } from './controlledWorkflowContracts'; +import { loraWorkflowFieldValues, upscaleWorkflowFieldValues } from './controlledWorkflowValues'; +import { resolveStudioExecutionSpecValues } from './executionSpecValues'; +import type { + StudioExecutionSpec, + StudioFormState, + StudioGraphRole, + StudioModelProfile, + StudioTemplate, +} from './types'; + +const OWNER_IDENTITY = new Set(['artifact', 'defaultRevision', 'pipelineClass', 'executionProfileId', 'modelVariant']); + +/** Construct one ordinary, visible graph from the backend's exact starter and + * declared semantic bindings. This is authoring, never an execution receipt. */ +export function createTemplateOperationGraph( + template: StudioTemplate, + form: StudioFormState, + starter: OperationStarter, + registry: Record, + spec: StudioExecutionSpec, + capability: StudioModelProfile, +): OperationGraph { + const selection = template.executionSelection; + if ( + !selection || + starter.pipelineClass !== selection.pipelineClass || + starter.task !== selection.task || + spec.modelType !== selection.bindingSpec.modelType || + spec.mode !== selection.bindingSpec.mode || + spec.pipelineClass !== selection.pipelineClass + ) { + throw new Error('The template operation recipe does not match its backend execution contract.'); + } + const graph = createOperationStarter(starter, { x: 80, y: 120 }); + const owners = graph.nodes.filter((node) => operationOwnsModel(operationAuthoring(node)?.operation)); + if (owners.length !== 1) throw new Error('The template needs exactly one declared model owner.'); + const owner = owners[0]!; + const adapterName = selection.loraPolicy?.defaultAdapterName; + const lora = template.workflowBlockSettings?.lora; + if ( + selection.loraPolicy !== undefined && + (typeof adapterName !== 'string' || + !adapterName || + adapterName !== adapterName.trim() || + adapterName.length > 256 || + [...adapterName].some((character) => character.charCodeAt(0) < 32) || + !owner.data.params.lora_list || + template.workflowBlocks?.filter((block) => block === 'lora').length !== 1 || + !lora || + Boolean(lora.additionalAdapters?.length) || + (lora.adapterName !== undefined && lora.adapterName !== adapterName)) + ) + throw new Error('The template adapter identity policy needs one compatible native LoRA descriptor.'); + const ownerProfile = owner.data.params.execution_profile_id; + if (ownerProfile && (ownerProfile.value ?? ownerProfile.default) !== selection.executionProfileId) + throw new Error('The backend resolved a different template execution profile.'); + const roles = new Map(); + const claimed = new Set(); + for (const [role, key, x, y] of spec.roles) { + const matches = graph.nodes.filter( + (node) => `${node.data.module}.${node.data.action}` === key && !claimed.has(node.id), + ); + if (matches.length > 1) throw new Error(`The template role ${role} is ambiguous.`); + const node = matches[0] ?? createNodeFromRegistry(key, registry, { x, y }); + if (!node) throw new Error(`The backend registry is missing the template role ${role}.`); + if (!matches.length) { + // Execution stages must come from the resolved starter. Only the + // backend-declared media/configuration/auxiliary roles supplement it. + if (starter.nodes.some((item) => item.operation.nodeKey === key)) + throw new Error(`The template operation role ${role} is missing.`); + graph.nodes.push(node); + } + claimed.add(node.id); + roles.set(role, node); + } + const revisionField = owner.data.params.revision; + const revision = revisionField?.value ?? revisionField?.default; + const values = resolveStudioExecutionSpecValues(form, spec, capability, { + ...(typeof revision === 'string' ? { defaultModelRevision: revision } : {}), + }); + const set = (node: CustomNodeType, names: string[], value: unknown) => { + const name = names.find((field) => node.data.params[field]); + if (!name) throw new Error(`The template setting ${names[0]} is not declared on ${node.data.label}.`); + const field = node.data.params[name]!; + field.value = + field.type === 'model' && typeof value === 'string' ? { source: 'hub', value } : structuredClone(value); + const hint = operationAuthoring(node); + if (hint) hint.authored = [...new Set([...(hint.authored ?? []), name])]; + }; + if (selection.componentPolicy) { + const policy = selection.componentPolicy; + set(owner, ['attention_backend'], policy.attentionBackend); + set(owner, ['vae_slicing'], policy.vaeSlicing); + set(owner, ['vae_tiling'], policy.vaeTiling); + } + for (const [role, field, source] of spec.bindings) { + const node = roles.get(role)!; + // The selected backend profile owns its exact repository, revision and + // class. A semantic binding spec may also serve a reviewed family variant + // (Schnell/Krea); it must not overwrite that resolved identity with Dev. + if (node.id === owner.id && OWNER_IDENTITY.has(source)) continue; + const value = values[source]; + if (value === undefined) throw new Error(`The template setting ${source} has no declared value.`); + set(node, [field], value); + } + // A real starter Guider owns the scale shared by encoding and denoising. + // Keep the declared scalar binding as a mirror of the creator form rather + // than leaving the now-hidden denoiser field as the effective control. + const guidance = graph.nodes.filter( + (node) => operationAuthoring(node)?.operation.operationId === 'diffusion.guidance', + ); + if (guidance.length > 1) throw new Error('The template has several guidance owners.'); + if (guidance[0]) set(guidance[0], ['guidance_scale'], form.guidanceScale); + if (selection.guidancePolicy) { + const guider = guidance[0]; + const policy = selection.guidancePolicy; + const flux = ['FluxModularPipeline', 'FluxKontextModularPipeline'].includes(selection.pipelineClass); + if (!guider || (!flux && selection.pipelineClass !== 'ZImageModularPipeline')) + throw new Error('The template guidance policy has no compatible declared owner.'); + set(guider, ['enabled'], policy.enabled); + set(guider, ['use_original_formulation'], policy.useOriginalFormulation); + if (flux) { + const scale = policy.distilledGuidanceScale; + const denoisers = graph.nodes.filter( + (node) => operationAuthoring(node)?.operation.operationId === 'diffusion.denoise', + ); + if (typeof scale !== 'number' || !Number.isFinite(scale) || scale < 0 || scale > 20 || denoisers.length !== 1) + throw new Error('The FLUX template needs its separate reviewed distilled guidance scale.'); + set(denoisers[0]!, ['guidance_scale'], scale); + } else if (policy.distilledGuidanceScale !== undefined) { + throw new Error('The template distilled guidance policy requires a FLUX pipeline.'); + } + } + const connect = (source: CustomNodeType, sourceNames: string[], target: CustomNodeType, targetNames: string[]) => { + const sourceHandle = sourceNames.find((name) => source.data.params[name]); + const targetHandle = targetNames.find((name) => target.data.params[name]); + const left = sourceHandle && source.data.params[sourceHandle]; + const right = targetHandle && target.data.params[targetHandle]; + if ( + !left || + !right || + left.display !== 'output' || + !(right.display === 'input' || right.isInput) || + !connectionTypesAreCompatible(left.type, right.type) + ) + throw new Error(`The template connection from ${source.data.label} to ${target.data.label} is incompatible.`); + const existing = graph.edges.find((edge) => edge.target === target.id && edge.targetHandle === targetHandle); + if (existing) { + if (existing.source !== source.id || existing.sourceHandle !== sourceHandle) + throw new Error(`The template has competing suppliers for ${target.data.label}.`); + return; + } + graph.edges.push({ + id: `edge-${nanoid()}`, + source: source.id, + sourceHandle, + target: target.id, + targetHandle, + type: 'default', + }); + }; + for (const [source, output, target, input] of spec.edges) { + const from = roles.get(source)!; + const to = roles.get(target)!; + const supplied = graph.edges.find((edge) => edge.target === to.id && edge.targetHandle === input); + const assembly = + supplied && + graph.nodes.find( + (node) => node.id === supplied.source && operationAuthoring(node)?.operation.nodeType === 'reference_assembly', + ); + if (assembly && from.data.module === 'modules.Image' && from.data.action === 'Load') { + // Kontext's published multi-reference starter owns the composition stage. + // Feed its one declared media input rather than bypassing it with the + // single-image semantic binding spec. + const required = starter.requiredInputs.filter( + (item) => + item.operationId === operationAuthoring(assembly)!.operation.operationId && + assembly.data.params[item.field]?.type === 'image', + ); + if (required.length !== 1) throw new Error('The template reference assembly input is ambiguous.'); + connect(from, [output], assembly, [required[0]!.field]); + } else connect(from, [output], to, [input]); + } + const utility = (key: string, index: number) => { + const node = createNodeFromRegistry(key, registry, { x: 80 + index * 420, y: 760 }); + if (!node) throw new Error(`The backend registry is missing ${key}.`); + graph.nodes.push(node); + return node; + }; + for (const block of template.workflowBlocks ?? []) { + if (block === 'lora') { + const settings = template.workflowBlockSettings?.lora; + if (!settings) throw new Error('The template LoRA contract is missing.'); + const adapters = [settings, ...(settings.additionalAdapters ?? [])]; + const native = Boolean(owner.data.params.lora_list); + const nodes = adapters.map((adapter, index) => { + const node = utility( + native ? CONTROLLED_WORKFLOW_NODE_KEYS.lora : CONTROLLED_WORKFLOW_NODE_KEYS.directLora, + index, + ); + for (const { fields, value } of loraWorkflowFieldValues(adapter, index)) { + // Native descriptors are assembled before ModelsLoader applies the + // ordered list; replace_existing is a pipeline-mutation switch. + if (native && fields[0] === 'replace_existing') continue; + set(node, fields, value); + } + if (adapterName !== undefined) set(node, ['adapter_name'], adapterName); + return node; + }); + if (native) { + for (let index = 1; index < nodes.length; index++) + connect(nodes[index - 1]!, ['lora'], nodes[index]!, ['previous_loras']); + connect(nodes[nodes.length - 1]!, ['lora'], owner, ['lora_list']); + } else { + const consumers = graph.edges.filter((edge) => edge.source === owner.id && edge.sourceHandle === 'pipeline'); + if (consumers.length !== 1) throw new Error('The template LoRA pipeline consumer is ambiguous.'); + const consumer = consumers[0]!; + graph.edges = graph.edges.filter((edge) => edge.id !== consumer.id); + connect(owner, ['pipeline'], nodes[0]!, ['pipeline']); + for (let index = 1; index < nodes.length; index++) + connect(nodes[index - 1]!, ['output'], nodes[index]!, ['pipeline']); + connect( + nodes[nodes.length - 1]!, + ['output'], + graph.nodes.find((node) => node.id === consumer.target)!, + [consumer.targetHandle!], + ); + } + } else if (block === 'upscaler') { + const preview = roles.get('preview'); + const input = graph.edges.find((edge) => edge.target === preview?.id && edge.targetHandle === 'image'); + if (!preview || !input) throw new Error('The template has no image output to upscale.'); + const upscaler = utility(CONTROLLED_WORKFLOW_NODE_KEYS.upscaler, 0); + for (const { fields, value } of upscaleWorkflowFieldValues(template.workflowBlockSettings?.upscaler, form.device)) + set(upscaler, fields, value); + const upscalePreview = utility(CONTROLLED_WORKFLOW_NODE_KEYS.preview, 1); + upscalePreview.data.label = 'Upscaled Image'; + connect( + graph.nodes.find((node) => node.id === input.source)!, + [input.sourceHandle!], + upscaler, + ['image', 'images'], + ); + connect(upscaler, ['images', 'output', 'image'], upscalePreview, ['image']); + } else throw new Error(`The image template does not declare support for ${block}.`); + } + return groupNewOperationGraph(graph); +} diff --git a/src/studio/templateWorkflow.ts b/src/studio/templateWorkflow.ts index 60c33654..7cb86d00 100644 --- a/src/studio/templateWorkflow.ts +++ b/src/studio/templateWorkflow.ts @@ -20,6 +20,9 @@ import { selectedAutoCandidate, } from './autoResource'; import { getTemplateLockedSettings } from './templateExactness'; +import { DEFAULT_STUDIO_FORM } from './modelProfiles'; +import { getPreferredRuntimeDevice, runtimeDeviceIsAvailable } from './runReadiness'; +import { exactStudioExecutionSpecForForm } from './executionSpecs'; import { materializeTemplateDefaultInputs } from './templateInputs'; import { waitForGraphNodeMeasurements } from '../workflow/graphLayout'; import { @@ -112,6 +115,135 @@ function blankCurrentCanvas() { }); } +/** Observe an existing runtime read; template creation never starts discovery. */ +export async function waitForTemplateRuntimeDiscovery(context: WorkflowOperationContext, timeoutMs = 120_000) { + assertWorkflowOperationContext(context); + if (useNodesStore.getState().discoveryRequests.runtime.status !== 'loading') return; + await new Promise((resolve, reject) => { + let observing = false; + let settled = false; + let unsubscribeNodes = () => {}; + let unsubscribeStudio = () => {}; + const finish = (error?: unknown) => { + if (settled) return; + settled = true; + clearTimeout(timeout); + unsubscribeNodes(); + unsubscribeStudio(); + if (error) reject(error); + else resolve(); + }; + const inspect = () => { + if (!observing || settled) return; + try { + assertWorkflowOperationContext(context); + const state = useNodesStore.getState(); + const discovery = state.discoveryRequests.runtime; + if (discovery.status === 'loading') return; + if (discovery.status !== 'success' || !state.runtimeStatus) + throw new Error(discovery.error || 'Runtime discovery is not ready. Retry opening the template.'); + finish(); + } catch (error) { + finish(error); + } + }; + unsubscribeNodes = useNodesStore.subscribe(inspect); + unsubscribeStudio = useStudioStore.subscribe(inspect); + const timeout = setTimeout( + () => finish(new Error('Runtime discovery timed out. Retry opening the template.')), + timeoutMs, + ); + observing = true; + inspect(); + }); +} + +/** Apply the existing device fallback while this transaction still owns the form. */ +export function normalizeTemplateRuntimeDevice(context: WorkflowOperationContext) { + assertWorkflowOperationContext(context); + const runtime = useNodesStore.getState().runtimeStatus; + if (!runtime) return; + const form = useStudioStore.getState().form; + const device = getPreferredRuntimeDevice(runtime); + if (device === form.device || runtimeDeviceIsAvailable(runtime, form.device)) return; + if (form.device !== DEFAULT_STUDIO_FORM.device && !form.device.toLowerCase().startsWith('cuda')) return; + assertWorkflowOperationContext(context); + useStudioStore.getState().updateForm({ device }); + advanceWorkflowOperationContext(context); +} + +/** Shared by interactive creation and the template generation harness. */ +export async function createImageTemplateOperationWorkflow( + template: StudioTemplate, + form: StudioFormState, + context: WorkflowOperationContext = captureWorkflowOperationContext(), +) { + assertWorkflowOperationContext(context); + const selection = template.executionSelection; + if (!selection || template.example?.mediaType !== 'image') + throw new Error('Select an image template operation recipe.'); + // Preserve the pre-loading graph so edits during lazy module loading remain + // protected by the ordinary transaction's exact signature check. + const previousGraph = structuredClone(useFlowStore.getState().toObject()); + const [ + { createTemplateOperationGraph }, + { requestOperationStarter }, + { commitOperationGraph, operationGraphSignature }, + ] = await Promise.all([ + import('./templateOperationWorkflow'), + import('../workflow/operationStarterRequest'), + import('../workflow/operationGraphTransaction'), + ]); + assertWorkflowOperationContext(context); + const signature = operationGraphSignature(previousGraph); + const nodesStore = useNodesStore.getState(); + const spec = exactStudioExecutionSpecForForm( + nodesStore.studioModelCapabilities, + nodesStore.studioExecutionSpecInvalid, + selection.bindingSpec, + ); + const capability = nodesStore.studioModelCapabilities.find( + (item) => item.modelType === selection.bindingSpec.modelType, + ); + if (!spec || !capability) + throw new Error('The selected template execution specification is unavailable. Refresh model capabilities.'); + const starter = await requestOperationStarter( + selection.pipelineClass, + selection.task, + nodesStore.operationContracts, + undefined, + selection.executionProfileId, + ); + assertWorkflowOperationContext(context); + const registryKeys = [ + ...spec.roles.map(([, key]) => key), + ...(template.workflowBlocks?.includes('lora') + ? ['modules.ModularDiffusers.Lora', 'modules.DiffusersImage.LoadAdapter'] + : []), + ...(template.workflowBlocks?.includes('upscaler') ? ['modules.Spandrel.Upscaler'] : []), + ]; + if (registryKeys.some((key) => !useNodesStore.getState().nodesRegistry[key])) { + await useNodesStore.getState().fetchNodes(); + assertWorkflowOperationContext(context); + } + const graph = createTemplateOperationGraph( + template, + form, + starter, + useNodesStore.getState().nodesRegistry, + spec, + capability, + ); + assertWorkflowOperationContext(context); + commitOperationGraph(graph, context, signature, `Create ${template.label}`); + // Fresh developer graphs are owned by their ordinary nodes. A Studio + // receipt for another topology must never govern this new document. + useStudioStore.getState().clearGraphBinding(); + useStudioStore.getState().saveActiveWorkflowTab(true); + advanceWorkflowOperationContext(context); + return { warnings: [] as string[] }; +} + export async function createWorkflowFromTemplate(template: StudioTemplate): Promise { const studio = useStudioStore.getState(); const workflowTabId = studio.createWorkflowTab(template.label, undefined, 'template', template.id); @@ -143,51 +275,61 @@ export async function createWorkflowFromTemplate(template: StudioTemplate): Prom } const inputDefaults = await materializeTemplateDefaultInputs(template); assertWorkflowOperationContext(context); + await waitForTemplateRuntimeDiscovery(context); + assertWorkflowOperationContext(context); useStudioStore.getState().applyTemplate(template, inputDefaults); advanceWorkflowOperationContext(context); + normalizeTemplateRuntimeDevice(context); useStudioStore.getState().saveActiveWorkflowTab(true); after = useStudioStore.getState().form; await waitForTemplateCanvasPaint(); assertWorkflowOperationContext(context); - let result = await createOrUpdateStudioGraph(after, context); - assertWorkflowOperationContext(context); - if (after.resourceMode === 'auto') { - const initialPlanKey = autoPlanKeyForForm(after); - const plan = useStudioStore.getState().autoResourcePlans[initialPlanKey] ?? (await fetchAutoResourcePlan(after)); + if (template.executionSelection && template.example?.mediaType === 'image') { + const result = await createImageTemplateOperationWorkflow(template, after, context); + warnings = result.warnings; + graphCreated = true; + } else { + let result = await createOrUpdateStudioGraph(after, context); assertWorkflowOperationContext(context); - if (!plan.error) useStudioStore.getState().setAutoResourcePlans({ [initialPlanKey]: plan }); - useStudioStore.getState().setAutoResourcePlan(plan); - if (autoPlanIsReady(plan, after)) { - const target = currentAutoResourcePlanTarget(plan, after, useStudioStore.getState().graphBinding); - if (target) { - useStudioStore.getState().setLastError(target); - } else { - const patch = formPatchForAutoCandidate(selectedAutoCandidate(plan, after), after); - useStudioStore.getState().applyAutoResourcePlan(plan, patch); - advanceWorkflowOperationContext(context); - after = useStudioStore.getState().form; - result = await createOrUpdateStudioGraph(after, context); + if (after.resourceMode === 'auto') { + const initialPlanKey = autoPlanKeyForForm(after); + const plan = + useStudioStore.getState().autoResourcePlans[initialPlanKey] ?? (await fetchAutoResourcePlan(after)); + assertWorkflowOperationContext(context); + if (!plan.error) useStudioStore.getState().setAutoResourcePlans({ [initialPlanKey]: plan }); + useStudioStore.getState().setAutoResourcePlan(plan); + if (autoPlanIsReady(plan, after)) { + const target = currentAutoResourcePlanTarget(plan, after, useStudioStore.getState().graphBinding); + if (target) { + useStudioStore.getState().setLastError(target); + } else { + const patch = formPatchForAutoCandidate(selectedAutoCandidate(plan, after), after); + useStudioStore.getState().applyAutoResourcePlan(plan, patch); + advanceWorkflowOperationContext(context); + after = useStudioStore.getState().form; + result = await createOrUpdateStudioGraph(after, context); + assertWorkflowOperationContext(context); + } + } + } + graphCreated = true; + warnings = result.warnings; + for (const block of template.workflowBlocks ?? []) { + try { + await applyWorkflowBlock(block, after, template, { graphPrepared: true, workflowContext: context }); assertWorkflowOperationContext(context); + } catch (error) { + if (isWorkflowOperationCancelled(error)) throw error; + const message = error instanceof Error ? error.message : String(error); + warnings.push(`${template.label} could not add the ${block} block: ${message}`); } } - } - graphCreated = true; - warnings = result.warnings; - for (const block of template.workflowBlocks ?? []) { - try { - await applyWorkflowBlock(block, after, template, { graphPrepared: true, workflowContext: context }); - assertWorkflowOperationContext(context); - } catch (error) { - if (isWorkflowOperationCancelled(error)) throw error; - const message = error instanceof Error ? error.message : String(error); - warnings.push(`${template.label} could not add the ${block} block: ${message}`); + const finalized = await waitForStudioGraphFinalization(15_000, context); + assertWorkflowOperationContext(context); + if (!finalized) { + throw new Error(`${template.label} graph preparation timed out. No incomplete graph was kept; try again.`); } } - const finalized = await waitForStudioGraphFinalization(15_000, context); - assertWorkflowOperationContext(context); - if (!finalized) { - throw new Error(`${template.label} graph preparation timed out. No incomplete graph was kept; try again.`); - } await waitForGraphNodeMeasurements(() => useFlowStore.getState().nodes, 500); assertWorkflowOperationContext(context); await useFlowStore.getState().arrangeGraph({ history: false }); @@ -199,6 +341,7 @@ export async function createWorkflowFromTemplate(template: StudioTemplate): Prom if (isWorkflowOperationCancelled(error)) throw error; assertWorkflowOperationContext(context); graphError = error instanceof Error ? error.message : String(error); + graphCreated = false; blankCurrentCanvas(); useStudioStore.getState().setGraphBinding(null); useStudioStore.getState().setGraphFinalization(null); diff --git a/src/studio/templates.ts b/src/studio/templates.ts index 264fb57d..3c6af148 100644 --- a/src/studio/templates.ts +++ b/src/studio/templates.ts @@ -10,6 +10,7 @@ import type { StudioTemplateReadinessPolicy, StudioTemplateWorkflowBlockSettings, } from './types'; +import { IMAGE_TEMPLATE_EXECUTION_SELECTIONS } from './templateOperationSelections'; import { DEFAULT_STUDIO_FORM, MINIMAX_MUSIC3_REVISION, @@ -2005,24 +2006,25 @@ const BASE_STUDIO_TEMPLATES: StudioTemplateSource[] = [ }, { id: 'qwen_edit_strength_sweep', - label: 'Qwen-Image-Edit — Image Edit: Strength Comparison', + label: 'Qwen-Image-Edit — Image Edit: Reference Variations', mode: 'edit_image', modelType: 'QwenImageEditModularPipeline', category: 'edit', - tags: ['before/after', 'sweep', 'compare'], + tags: ['before/after', 'edit', 'compare'], difficulty: 'advanced', thumbnailVariant: 'contactSheet', - inputRequirements: { sourceImage: true, referenceImages: 1, sampleAssets: ['source image for strength sweep'] }, + inputRequirements: { sourceImage: true, referenceImages: 1, sampleAssets: ['source image for editing'] }, vramEstimate: QWEN_NATIVE_MEMORY_ESTIMATE, runtimeEstimate: `${QWEN_EDIT_RUNTIME_ESTIMATE} per candidate`, - description: 'Image-to-image edit starting point for strength sweeps.', + description: + 'A single-image reference edit. Explore prompt and seed variations; this route does not use denoising strength.', presetId: 'balanced', - example: example(6110, `${QWEN_EDIT_RUNTIME_AFTER_INPUT} per sweep candidate`), + example: example(6110, `${QWEN_EDIT_RUNTIME_AFTER_INPUT} per edit`), predictability: { ...predictability(6110), exactnessNotes: [ ...predictability(6110).exactnessNotes, - 'Sweep variants are deliberately Modified because strength, seed, guidance, or steps change.', + 'Variants are deliberately Modified when prompt, seed, guidance, or steps change.', ], }, }, @@ -3916,6 +3918,7 @@ function withVideoDeliveryWorkflow(template: StudioTemplateSource, index: number const normalized = withTemplateRecipeDefaults( { ...template, + executionSelection: IMAGE_TEMPLATE_EXECUTION_SELECTIONS[template.id], inputBindings: [ ...(template.inputBindings ?? []).filter((binding) => binding.origin !== 'template'), ...generatedInputBindings.filter( diff --git a/src/studio/types.ts b/src/studio/types.ts index d13ab584..56b224cd 100644 --- a/src/studio/types.ts +++ b/src/studio/types.ts @@ -1568,6 +1568,31 @@ export type StudioTemplatePredictability = { requiredModels?: StudioModelRequirement[]; }; +export type StudioTemplateExecutionSelection = { + schemaVersion: 1; + pipelineClass: string; + task: string; + executionProfileId: string; + /** Existing backend recipe supplies semantic field/utility bindings only. */ + bindingSpec: { modelType: StudioModelType; mode: StudioMode }; + implementation: 'native_stages' | 'whole_pipeline'; + /** Explicit old whole-pipeline component policies for converted recipes. */ + componentPolicy?: { + attentionBackend: 'auto' | '_native_math'; + vaeSlicing: boolean; + vaeTiling: boolean; + }; + guidancePolicy?: { + enabled: boolean; + useOriginalFormulation: boolean; + /** FLUX true CFG and transformer embedded guidance are distinct controls. */ + distilledGuidanceScale?: number; + }; + /** Original whole-pipeline default identity for a single native descriptor. */ + loraPolicy?: { defaultAdapterName: string }; + note?: string; +}; + export type StudioTemplate = { id: StudioTemplateId; label: string; @@ -1585,6 +1610,8 @@ export type StudioTemplate = { requiredBackendCapabilities?: string[]; workflowBlocks?: StudioTemplateWorkflowBlock[]; workflowBlockSettings?: StudioTemplateWorkflowBlockSettings; + /** Exact fresh-workflow choice; never applied to an existing saved graph. */ + executionSelection?: StudioTemplateExecutionSelection; videoDelivery?: 'native' | 'spatial_upscale'; /** * `user_supplied` marks a runnable bring-your-own-model recipe whose card diff --git a/src/studio/useStudioRunActions.ts b/src/studio/useStudioRunActions.ts index 38cc5d72..b84389ab 100644 --- a/src/studio/useStudioRunActions.ts +++ b/src/studio/useStudioRunActions.ts @@ -319,6 +319,25 @@ export function useStudioRunActions({ async (templateId: string) => { const template = STUDIO_TEMPLATES.find((item) => item.id === templateId); if (!template) return; + if (template.executionSelection && template.example?.mediaType === 'image') { + const context = captureWorkflowOperationContext(); + setIsWorking(true); + try { + const { createWorkflowFromTemplate } = await import('./templateWorkflow'); + assertWorkflowOperationContext(context); + const result = await createWorkflowFromTemplate(template); + if (result.graphError) throw new Error(result.graphError); + } catch (error) { + if (!isWorkflowOperationCancelled(error)) { + const message = String(error); + useStudioStore.getState().setLastError(message); + enqueueSnackbar(message, { variant: 'error', autoHideDuration: 7000 }); + } + } finally { + setIsWorking(false); + } + return; + } if (useFlowStore.getState().nodes.length > 0) { useStudioStore.getState().createWorkflowTab(template.label, undefined, 'template', template.id); } diff --git a/src/studio/useWorkflowBackendSync.ts b/src/studio/useWorkflowBackendSync.ts index 13ee3656..54d29317 100644 --- a/src/studio/useWorkflowBackendSync.ts +++ b/src/studio/useWorkflowBackendSync.ts @@ -4,6 +4,7 @@ import { useStudioStore } from '../stores/useStudioStore'; import { RequestError, requestJson } from '../utils/requestJson'; import { stableStringify } from './templateExactness'; import type { WorkflowTab } from './types'; +import { forgetFreshWorkflowId, isFreshWorkflowId } from './workflowDocumentOrigin'; function clientId() { const key = 'modiff-workflow-client-id'; @@ -78,6 +79,7 @@ export function isWorkflowTabClosed(id: string) { } export function markWorkflowTabClosed(id: string) { + forgetFreshWorkflowId(id); closedWorkflowIds.add(id); persistClosedWorkflowIds(); } @@ -89,11 +91,13 @@ export function markWorkflowTabOpen(id: string) { /** Record a server-originated document so websocket updates are not echoed back. */ export function markBackendWorkflow(tab: WorkflowTab) { + forgetFreshWorkflowId(tab.id); backendSignatures.set(tab.id, contentSignature(tab)); pendingSignatures.delete(tab.id); } export function forgetBackendWorkflow(id: string) { + forgetFreshWorkflowId(id); backendSignatures.delete(id); pendingSignatures.delete(id); closedWorkflowIds.delete(id); @@ -126,6 +130,8 @@ export function clearDirtyMarkerForExactBackendDocument(id: string) { } async function putWorkflow(tab: WorkflowTab, signal?: AbortSignal) { + // Consume before dispatch: a lost/aborted response may still have saved remotely. + forgetFreshWorkflowId(tab.id); const payload = await requestJson(`${config.serverAddress}/workflows/${encodeURIComponent(tab.id)}`, { method: 'PUT', headers: { 'Content-Type': 'application/json' }, @@ -144,6 +150,20 @@ async function putWorkflow(tab: WorkflowTab, signal?: AbortSignal) { return backendWorkflowTab(payload); } +export async function readWorkflowForHydration(tab: WorkflowTab, signal?: AbortSignal) { + if (isFreshWorkflowId(tab.id)) return null; + try { + const payload = await requestJson(`${config.serverAddress}/workflows/${encodeURIComponent(tab.id)}`, { + signal, + timeoutMs: WORKFLOW_SYNC_TIMEOUT_MS, + }); + return backendWorkflowTab(payload); + } catch (error) { + if (error instanceof RequestError && error.status === 404) return null; + throw error; + } +} + /** Persist a complete backend document without implicitly opening it as a browser tab. */ export async function saveDetachedWorkflowNow(tab: WorkflowTab) { const saved = await putWorkflow(tab); @@ -272,16 +292,7 @@ export function useWorkflowBackendSync() { // other saved document remains available from My workflows or a run. for (const tab of store.workflowTabs) { if (isWorkflowTabClosed(tab.id)) continue; - let backendTab: WorkflowTab | null = null; - try { - const payload = await requestJson(`${config.serverAddress}/workflows/${encodeURIComponent(tab.id)}`, { - signal: controller.signal, - timeoutMs: WORKFLOW_SYNC_TIMEOUT_MS, - }); - backendTab = backendWorkflowTab(payload); - } catch (error) { - if (!(error instanceof RequestError && error.status === 404)) throw error; - } + const backendTab = await readWorkflowForHydration(tab, controller.signal); if (cancelled) return; if (backendTab && !tab.dirty) { markBackendWorkflow(backendTab); diff --git a/src/studio/workflowDocumentOrigin.ts b/src/studio/workflowDocumentOrigin.ts new file mode 100644 index 00000000..a22baa05 --- /dev/null +++ b/src/studio/workflowDocumentOrigin.ts @@ -0,0 +1,14 @@ +// This page's generated IDs only: never persisted or inferred from saved metadata. +const freshWorkflowIds = new Set(); + +export function markFreshWorkflowId(id: string) { + freshWorkflowIds.add(id); +} + +export function isFreshWorkflowId(id: string) { + return freshWorkflowIds.has(id); +} + +export function forgetFreshWorkflowId(id: string) { + freshWorkflowIds.delete(id); +} diff --git a/src/utils/e2eHooks.ts b/src/utils/e2eHooks.ts index 748b4a69..28c8e8a2 100644 --- a/src/utils/e2eHooks.ts +++ b/src/utils/e2eHooks.ts @@ -31,6 +31,7 @@ import { PLANNING_STUDIO_TEMPLATES, STUDIO_TEMPLATES } from '../studio/templates import { getFormDefaultsForMode } from '../studio/modelProfiles'; import type { StudioTaskTemplateSkeleton } from '../studio/taskTemplateContracts'; import { materializeTemplateDefaultInputs } from '../studio/templateInputs'; +import { createImageTemplateOperationWorkflow } from '../studio/templateWorkflow'; import { ensureStudioAutoPlanReadyForRun } from '../studio/useStudioRunActions'; import type { UserBlockDefinition } from '../studio/types'; import { createUserBlockNode, normalizeUserBlockDefinition } from '../studio/userBlocks'; @@ -91,6 +92,7 @@ type ModiffE2EHooks = { listTemplates: (includePlanning?: boolean) => GalleryTemplateSummary[]; listTaskTemplateSkeletons: () => StudioTaskTemplateSkeleton[]; applyTemplate: (templateId: StudioTemplateId, formOverrides?: Partial) => Promise; + applyLegacyTemplateForTest: (templateId: StudioTemplateId, formOverrides?: Partial) => Promise; applyTaskTemplateSkeleton: (templateId: string, formOverrides?: Partial) => Promise; applyControlledWorkflowBlockForTest: ( block: ControlledWorkflowBlockForTest, @@ -155,6 +157,7 @@ declare global { // Auto has finished. This is isolated to the E2E bridge; normal Studio runs keep // the selected template and Auto contracts unchanged. let pendingGalleryFormOverrides: Partial = {}; +let pendingGalleryTemplateId: StudioTemplateId | null = null; let managedGraphFinalizationForTest: Promise | null = null; const GALLERY_GRAPH_FINALIZATION_TIMEOUT_MS = 120_000; @@ -211,11 +214,18 @@ async function applyTaskTemplateSkeleton(templateId: string, formOverrides: Part useStudioStore.getState().saveActiveWorkflowTab(true); } -async function applyTemplate(templateId: StudioTemplateId, formOverrides: Partial = {}) { - const template = [...STUDIO_TEMPLATES, ...PLANNING_STUDIO_TEMPLATES].find((item) => item.id === templateId); - if (!template) { +async function applyTemplate( + templateId: StudioTemplateId, + formOverrides: Partial = {}, + legacyForTest = false, +) { + const selected = [...STUDIO_TEMPLATES, ...PLANNING_STUDIO_TEMPLATES].find((item) => item.id === templateId); + if (!selected) { throw new Error(`Unknown Studio template: ${templateId}`); } + // Explicit fixture for saved managed-workflow regressions. Fresh authoring + // and Gallery harnesses always use the current selected operation recipe. + const template = legacyForTest ? { ...selected, executionSelection: undefined } : selected; await useNodesStore.getState().fetchStudioModelCapabilities(); if (!useStudioStore.getState().workflowCanvasHydrated) { @@ -230,6 +240,7 @@ async function applyTemplate(templateId: StudioTemplateId, formOverrides: Partia const inputDefaults = await materializeTemplateDefaultInputs(template); useStudioStore.getState().applyTemplate(template, inputDefaults); pendingGalleryFormOverrides = { ...formOverrides }; + pendingGalleryTemplateId = template.id; if (Object.keys(formOverrides).length > 0) { useStudioStore.getState().updateForm(formOverrides); } @@ -242,6 +253,13 @@ async function applyTemplate(templateId: StudioTemplateId, formOverrides: Partia }); try { const context = captureWorkflowOperationContext(); + if (template.executionSelection && template.example?.mediaType === 'image') { + await createImageTemplateOperationWorkflow(template, useStudioStore.getState().form, context); + await waitForGraphNodeMeasurements(() => useFlowStore.getState().nodes, 500); + await useFlowStore.getState().arrangeGraph({ history: false }); + useStudioStore.getState().saveActiveWorkflowTab(true); + return; + } // Materialize the loader graph before validating Auto's selected target. // The app-wide Auto sync is paused by this template transition while the // caller owns the initial graph and the subsequent plan commit. @@ -355,6 +373,12 @@ function arrangeWorkflowGraphSnapshot(graph: { nodes?: CustomNodeType[]; edges?: } async function runActiveTemplate(): Promise { + if ( + !useStudioStore.getState().graphBinding && + pendingGalleryTemplateId && + STUDIO_TEMPLATES.find((item) => item.id === pendingGalleryTemplateId)?.executionSelection + ) + return runOperationTemplateGraph(); const websocket = useWebsocketStore.getState(); const sid = websocket.sid; const templateId = useStudioStore.getState().activeTemplateId; @@ -458,6 +482,12 @@ async function runActiveTemplate(): Promise { } async function runPreparedTemplateGraph(graph: APIGraphExport): Promise { + if ( + !useStudioStore.getState().graphBinding && + pendingGalleryTemplateId && + STUDIO_TEMPLATES.find((item) => item.id === pendingGalleryTemplateId)?.executionSelection + ) + return runOperationTemplateGraph(graph); const websocket = useWebsocketStore.getState(); const sid = websocket.sid; const templateId = useStudioStore.getState().activeTemplateId; @@ -494,6 +524,33 @@ async function runPreparedTemplateGraph(graph: APIGraphExport): Promise { + const websocket = useWebsocketStore.getState(); + const sid = websocket.sid; + if (!sid || !websocket.isConnected) throw new Error('MoDiff websocket is not connected.'); + const validation = validateCurrentRun({ + sid, + isConnected: websocket.isConnected, + includeStudio: false, + showDialog: false, + }); + if (!validation.canRun) { + const issue = validation.blocking[0] ?? validation.issues[0]; + throw new Error( + issue?.details ? `${issue.message} ${issue.details}` : (issue?.message ?? 'The template graph is not ready.'), + ); + } + const { context, response } = await coordinateGraphRun({ sid, ...(preparedGraph ? { preparedGraph } : {}) }); + if (!context) throw new Error('Template run context was not captured.'); + return { + templateId: pendingGalleryTemplateId, + taskId: typeof response.task_id === 'string' ? response.task_id : null, + sid, + startedAt: context.startedAt, + response, + }; +} + function applyNodeDefinitionForAction(action: string, params: Record) { const node = useFlowStore.getState().nodes.find((item) => item.data.action === action); if (!node) { @@ -1056,6 +1113,8 @@ export function installE2EHooks() { listTemplates, listTaskTemplateSkeletons, applyTemplate, + applyLegacyTemplateForTest: (templateId: StudioTemplateId, overrides?: Partial) => + applyTemplate(templateId, overrides, true), applyTaskTemplateSkeleton, applyControlledWorkflowBlockForTest, refreshTaskTemplateContracts: async () => { diff --git a/src/utils/serverActions.ts b/src/utils/serverActions.ts index 9574345b..4d16eaf6 100644 --- a/src/utils/serverActions.ts +++ b/src/utils/serverActions.ts @@ -1,5 +1,6 @@ import config from '../../app.config'; import { requestJson, RequestError, type RequestOptions } from './requestJson'; +import { supervisorControlAddress } from './supervisorControl'; export type ServerActionResult = Record & { error?: boolean | string; @@ -119,13 +120,17 @@ function serverAction( } export function requestExecutionStop() { - return serverAction( - '/stop', - 'Could not stop the current execution.', - { method: 'POST' }, - undefined, - config.supervisorAddress, - ).catch(() => serverAction('/stop', 'Could not stop the current execution.', { method: 'POST' })); + let address: string | null = null; + try { + address = supervisorControlAddress(true); + } catch { + // A rejected legacy control configuration must still permit the worker's + // ordinary Stop endpoint. Never request the untrusted control origin. + } + if (!address) return serverAction('/stop', 'Could not stop the current execution.', { method: 'POST' }); + return serverAction('/stop', 'Could not stop the current execution.', { method: 'POST' }, undefined, address).catch( + () => serverAction('/stop', 'Could not stop the current execution.', { method: 'POST' }), + ); } export function cancelQueuedTask(taskId: string) { diff --git a/src/utils/supervisorControl.ts b/src/utils/supervisorControl.ts new file mode 100644 index 00000000..7a039876 --- /dev/null +++ b/src/utils/supervisorControl.ts @@ -0,0 +1,123 @@ +import config from '../../app.config'; + +export type WorkerControl = { available: boolean; address: string | null }; + +let knownControl: WorkerControl | undefined; +let retryAt = 0; +let failures = 0; +let readSequence = 0; +let appliedRead = 0; + +function loopbackControlAddress(value: unknown): string { + const match = + typeof value === 'string' && value.length <= 128 + ? /^http:\/\/(127\.0\.0\.1|localhost|\[::1\]):([0-9]+)\/?$/.exec(value) + : null; + if (!match) throw new Error('Invalid supervisor control address.'); + const url = new URL(match[0]); + const port = Number(match[2]); + if (!Number.isInteger(port) || port < 1 || port > 65535) throw new Error('Invalid supervisor control address.'); + return url.origin; +} + +export function parseWorkerControl(value: unknown): WorkerControl | undefined { + // Missing metadata belongs to older backends. It is not evidence that a + // previously advertised supervisor disappeared during worker replacement. + if (value === undefined) return undefined; + if (!value || typeof value !== 'object' || Array.isArray(value)) throw new Error('Invalid worker control metadata.'); + const record = value as Record; + if ( + typeof record.available !== 'boolean' || + Object.keys(record).some((key) => !['available', 'address'].includes(key)) + ) + throw new Error('Invalid worker control metadata.'); + if (!record.available) { + if (record.address !== null) throw new Error('Unavailable worker control must have no address.'); + return { available: false, address: null }; + } + return { available: true, address: loopbackControlAddress(record.address) }; +} + +export function beginWorkerControlRead() { + return ++readSequence; +} + +export function updateWorkerControl(control: WorkerControl | undefined, read = beginWorkerControlRead()) { + if (!control || read < appliedRead) return; + appliedRead = read; + if (control.available !== knownControl?.available || control.address !== knownControl?.address) { + failures = 0; + retryAt = 0; + } + knownControl = control; +} + +export function supervisorControlCanPoll() { + return knownControl?.available !== false; +} + +type ControlDiscoveryStore = { + getState: () => { + discoveryRequests: { nodes: { status: string }; runtime: { status: string } }; + }; + subscribe: (listener: () => void) => () => void; +}; + +/** Await only discovery already owned by startup; a busy/older worker still gets legacy recovery. */ +export async function waitForSupervisorMetadata(store: ControlDiscoveryStore, signal?: AbortSignal, timeoutMs = 1000) { + if (signal?.aborted) return false; + const initial = store.getState().discoveryRequests; + if (knownControl || (initial.nodes.status !== 'loading' && initial.runtime.status !== 'loading')) return true; + return new Promise((resolve) => { + let unsubscribe = () => {}; + let timer: ReturnType | undefined = undefined; + let settled = false; + const finish = (proceed: boolean) => { + if (settled) return; + settled = true; + unsubscribe(); + if (timer !== undefined) clearTimeout(timer); + signal?.removeEventListener('abort', cancel); + resolve(proceed); + }; + const cancel = () => finish(false); + const check = () => { + const { nodes, runtime } = store.getState().discoveryRequests; + if (knownControl || nodes.status === 'error' || runtime.status === 'success' || runtime.status === 'error') { + finish(true); + } + }; + unsubscribe = store.subscribe(check); + if (settled) { + unsubscribe(); + return; + } + signal?.addEventListener('abort', cancel, { once: true }); + timer = setTimeout(() => finish(true), timeoutMs); + // Subscribe before rechecking so completion/cancellation cannot fall between reads. + if (signal?.aborted) cancel(); + else check(); + }); +} + +export function supervisorControlAddress(explicitAction = false): string | null { + if (!supervisorControlCanPoll() || (!explicitAction && Date.now() < retryAt)) return null; + return knownControl?.address ?? loopbackControlAddress(config.supervisorAddress); +} + +export function supervisorControlFailed() { + failures += 1; + retryAt = Date.now() + Math.min(5000 * 2 ** Math.min(failures - 1, 4), 60_000); +} + +export function supervisorControlSucceeded() { + failures = 0; + retryAt = 0; +} + +/** Clear process-local discovery when starting a new isolated client context. */ +export function resetSupervisorControl() { + knownControl = undefined; + readSequence = appliedRead = 0; + supervisorControlSucceeded(); +} diff --git a/src/workflow/connectionRoleSelector.ts b/src/workflow/connectionRoleSelector.ts new file mode 100644 index 00000000..9fa4b979 --- /dev/null +++ b/src/workflow/connectionRoleSelector.ts @@ -0,0 +1,37 @@ +export type ConnectionRoleSelector = { field: string; values: Record }; +const owns = (value: object, key: string) => Object.prototype.hasOwnProperty.call(value, key); + +/** Resolve a declared component kind without evaluating a supplier or field action. */ +export function isConnectionRoleSelector(value: unknown): value is ConnectionRoleSelector { + if (!value || typeof value !== 'object' || Array.isArray(value)) return false; + const selector = value as Record; + if ( + Object.keys(selector).length !== 2 || + !owns(selector, 'field') || + !owns(selector, 'values') || + typeof selector.field !== 'string' || + !/^[a-z][a-z0-9_]{0,63}$/.test(selector.field) + ) + return false; + if (!selector.values || typeof selector.values !== 'object' || Array.isArray(selector.values)) return false; + const values = Object.entries(selector.values); + return ( + values.length > 0 && + values.length <= 16 && + values.every( + ([key, role]) => + /^[a-z][a-z0-9_]{0,63}$/.test(key) && typeof role === 'string' && /^[a-z][a-z0-9_]{0,63}$/.test(role), + ) + ); +} + +export function selectedConnectionRole( + selector: unknown, + params: Record, +) { + if (!isConnectionRoleSelector(selector)) return undefined; + const field = params[selector.field]; + if (!field || field.isConnected) return undefined; + const value = field.value ?? field.default; + return typeof value === 'string' && owns(selector.values, value) ? selector.values[value] : undefined; +} diff --git a/src/workflow/nodeConnectionMatching.ts b/src/workflow/nodeConnectionMatching.ts index ef375957..c43fea45 100644 --- a/src/workflow/nodeConnectionMatching.ts +++ b/src/workflow/nodeConnectionMatching.ts @@ -1,6 +1,7 @@ import type { NodeData, NodeParams } from '../stores/useNodeStore'; import { connectionTypes, connectionTypesAreCompatible } from '../theme/connectionTypeCompatibility'; import { nodeConnectorParam, nodeConnectorParams } from '../studio/nodeConnectorResolution'; +import { selectedConnectionRole } from './connectionRoleSelector'; export type HandleDirection = 'source' | 'target' | null | undefined; @@ -57,12 +58,17 @@ function declaredSignalCompatibilityIsSatisfied( signalParam: NodeParams | undefined, contractParam: NodeParams | undefined, contractNode: NodeData, + signalNode: NodeData, ) { const declaration = contractParam?.signalCompatibility; if (!declaration) return true; if (declaration.role) { const acceptedRoles = Array.isArray(declaration.role) ? declaration.role : [declaration.role]; - if (!signalParam?.connectionRole || !acceptedRoles.includes(signalParam.connectionRole)) return false; + const role = + signalParam && 'connectionRoleSelector' in signalParam + ? selectedConnectionRole(signalParam.connectionRoleSelector, signalNode.params) + : signalParam?.connectionRole; + if (!role || !acceptedRoles.includes(role)) return false; } const signal = signalParam?.signal; if (!signal) return declaration.required !== true; @@ -104,8 +110,8 @@ export function nodeConnectionSemanticsAreCompatible( if ( !declaredSignalOptionsAreCompatible(sourceParam, targetParam) || !declaredSignalOptionsAreCompatible(targetParam, sourceParam) || - !declaredSignalCompatibilityIsSatisfied(sourceParam, targetParam, targetNode) || - !declaredSignalCompatibilityIsSatisfied(targetParam, sourceParam, sourceNode) + !declaredSignalCompatibilityIsSatisfied(sourceParam, targetParam, targetNode, sourceNode) || + !declaredSignalCompatibilityIsSatisfied(targetParam, sourceParam, sourceNode, targetNode) ) return false; return true; diff --git a/src/workflow/visualOperationGroups.ts b/src/workflow/visualOperationGroups.ts index 2d114ac0..6515f19c 100644 --- a/src/workflow/visualOperationGroups.ts +++ b/src/workflow/visualOperationGroups.ts @@ -385,10 +385,12 @@ export function groupOperationStages( const members = scope.filter((node) => stageKind(node) === kind); if ( kind === 'guidance' && - (members.length < 2 || - !graph.edges.some( - (edge) => members.some((node) => node.id === edge.source) && members.some((node) => node.id === edge.target), - )) + (members.length === 0 || + (members.length > 1 && + !graph.edges.some( + (edge) => + members.some((node) => node.id === edge.source) && members.some((node) => node.id === edge.target), + ))) ) continue; if (members.length) diff --git a/tests/e2e/studio-mocked/studio-mocked.spec.ts b/tests/e2e/studio-mocked/studio-mocked.spec.ts index 2b6a0062..f56e9262 100644 --- a/tests/e2e/studio-mocked/studio-mocked.spec.ts +++ b/tests/e2e/studio-mocked/studio-mocked.spec.ts @@ -8,6 +8,13 @@ import net from 'node:net'; import path from 'node:path'; import { fileURLToPath } from 'node:url'; import { attachResizeObserverDiagnostics, installResizeObserverDiagnostics } from '../resize-observer-diagnostics'; +import { IMAGE_TEMPLATE_EXECUTION_SELECTIONS } from '../../../src/studio/templateOperationSelections'; +import type { NodeData } from '../../../src/stores/useNodeStore'; +import type { StudioExecutionSpec, StudioModelProfile } from '../../../src/studio/types'; +import type { OperationStarter } from '../../../src/workflow/operationAuthoring'; +import type { OperationContract } from '../../../src/workflow/operationContracts'; +import type { PipelineSupport } from '../../../src/workflow/operationCatalog'; +import type { ApiGraphExport } from '../../../src/types/api'; test('Advanced numeric values and step buttons fit a narrow scrolling node', async ({ page }) => { page.setDefaultTimeout(15_000); @@ -66,6 +73,23 @@ test.beforeEach(async ({ page }) => { test.afterEach(async ({ page }, testInfo) => { if (process.env.MODIFF_TRACE_RESIZE === '1') await attachResizeObserverDiagnostics(page, testInfo); + if (process.env.MODIFF_TRACE_STARTUP === '1' && testInfo.status !== testInfo.expectedStatus) { + const diagnostic = await page + .evaluate(() => { + const state = window.__MODIFF_E2E__?.getState(); + return ( + state && { + lastError: state.studio.lastError, + canvasTransition: state.studio.canvasTransition, + graphFinalization: state.studio.graphFinalization, + nodeCount: state.flow.nodes.length, + discovery: state.nodes.discoveryRequests, + } + ); + }) + .catch(() => undefined); + console.error('[startup final state]', JSON.stringify(diagnostic)); + } }); async function verifyCompactDialog(page: Page, dialog: Locator, label: string) { @@ -518,6 +542,7 @@ declare global { edges: Array<{ id: string; source: string; target: string }>; viewport: { x: number; y: number; zoom: number }; }; + exportAuthorizedApiGraph: () => ApiGraphExport; setGraphScenarioForTest: ( scenario: | 'empty' @@ -634,6 +659,9 @@ let mockOptionalRuntimeDelayMs = 0; let mockOptionalRuntimeActions = false; let mockOptionalRuntimeRollbackToBase = false; let mockOptionalRuntimeJobState: 'idle' | 'running' | 'ready' | 'cancelled' = 'idle'; +let mockOptionalRuntimeActivationState: 'idle' | 'validating' | 'restarting' | 'verifying' | 'failed' = 'idle'; +let mockOptionalRuntimeJobUnavailable = false; +let mockOptionalRuntimeBaseIncluded = false; let mockAdvertiseStudioExecutionSpecs = false; let mockReadyProofStatus: 'declared_safe' | 'live_proven' = 'declared_safe'; @@ -4282,6 +4310,117 @@ function mockGraphQualifiedQwenNodeDefinitionParams(action: 'EncodePrompt' | 'De return params; } +type ImageTemplateSchemaFixture = { + recipes: { id: string; starter: OperationStarter; spec: StudioExecutionSpec; capability: StudioModelProfile }[]; + registry: Record; + capabilities: StudioModelProfile[]; + publicPayload: { operationContracts: OperationContract[]; pipelineSupport: PipelineSupport[] }; +}; +let imageTemplateSchemaPromise: Promise; + +async function imageTemplateSchemas() { + const python = + process.env.MODIFF_BACKEND_PYTHON || + path.join(BACKEND_ROOT, '.venv', process.platform === 'win32' ? 'Scripts/python.exe' : 'bin/python'); + const script = path.join(CLIENT_ROOT, 'scripts', 'template-operation-fixtures.py'); + const command = process.platform === 'win32' ? python : path.join(BACKEND_ROOT, 'scripts', 'with-runtime-env.sh'); + const args = process.platform === 'win32' ? [script] : [python, script]; + // These are the real, source-derived authoring contracts, with no model + // construction or generation. Each scenario receives an isolated copy. + imageTemplateSchemaPromise ??= new Promise((resolve, reject) => { + const child = execFile( + command, + args, + { + cwd: BACKEND_ROOT, + env: { ...process.env, PYTHONDONTWRITEBYTECODE: '1' }, + timeout: 90_000, + maxBuffer: 64 * 1024 * 1024, + }, + (error, stdout) => { + if (error) return reject(error); + try { + resolve(JSON.parse(stdout)); + } catch (parseError) { + reject(parseError); + } + }, + ); + child.stdin!.end( + JSON.stringify(Object.entries(IMAGE_TEMPLATE_EXECUTION_SELECTIONS).map(([id, selection]) => ({ id, selection }))), + ); + }); + return structuredClone(await imageTemplateSchemaPromise); +} + +function includeImageTemplateBindings(capabilities: StudioModelProfile[], fixture: ImageTemplateSchemaFixture) { + // Legacy form fixtures did not need labels while their operation support + // list was empty. The unified workflow browser now consumes these choices. + for (const capability of capabilities) + capability.label ??= + fixture.capabilities.find((source) => source.modelType === capability.modelType)?.label ?? capability.modelType; + const selected = new Map(fixture.recipes.map((row) => [`${row.spec.modelType}:${row.spec.mode}`, row.spec])); + for (const source of fixture.capabilities) { + const specs = source.studioExecutionSpecs?.filter((spec) => selected.has(`${spec.modelType}:${spec.mode}`)) ?? []; + if (!specs.length) continue; + const existing = capabilities.find((capability) => capability.modelType === source.modelType); + if (!existing) { + capabilities.push(source); + continue; + } + existing.modes = [...new Set([...existing.modes, ...specs.map((spec) => spec.mode)])]; + existing.runnableModes = [...new Set([...(existing.runnableModes ?? []), ...specs.map((spec) => spec.mode)])]; + // Keep an explicitly authored legacy fixture for the same backend task. + // Fresh native tasks still receive their current source-derived bindings. + const replacements = specs.filter( + (candidate) => + !existing.studioExecutionSpecs?.some( + (spec) => + spec.modelType === candidate.modelType && + spec.mode === candidate.mode && + spec.pipelineClass === candidate.pipelineClass, + ), + ); + existing.studioExecutionSpecs = [ + ...(existing.studioExecutionSpecs ?? []).filter( + (spec) => !replacements.some((candidate) => candidate.mode === spec.mode), + ), + ...replacements, + ]; + existing.studioExecutionSpecModes = existing.studioExecutionSpecs.map((spec) => spec.mode); + const selectedProfiles = new Set(specs.map((spec) => spec.executionProfileId)); + existing.executionProfiles = [ + ...(existing.executionProfiles ?? []).filter((profile) => !selectedProfiles.has(profile.id)), + ...(source.executionProfiles ?? []) + .filter((profile) => selectedProfiles.has(profile.id)) + .map((profile) => ({ + ...profile, + modes: profile.modes.filter((mode) => existing.runnableModes!.includes(mode)), + })), + ]; + // Legacy authoring mocks predate base-runtime requirements. A capability + // must publish one coherent requirement across all of its profiles. + const baseRequirement = { + schemaVersion: 1 as const, + delivery: 'base' as const, + requiredNow: false, + profileIds: [], + state: 'base_satisfied' as const, + reason: 'base_runtime', + }; + existing.executionProfiles = existing.executionProfiles.map((profile) => ({ + ...profile, + optional_runtime_delivery: 'base', + optionalRuntimeRequirement: { ...baseRequirement, executionProfileIds: [profile.id] }, + })); + existing.optionalRuntimeRequirement = { + ...baseRequirement, + executionProfileIds: existing.executionProfiles.map((profile) => profile.id), + }; + } + return capabilities; +} + async function installMockRoutes(page: Page, options: { graphQualifiedQwenCluster?: boolean } = {}) { mockAdvertiseStudioExecutionSpecs = true; mockFileUploadCalls = 0; @@ -4309,6 +4448,7 @@ async function installMockRoutes(page: Page, options: { graphQualifiedQwenCluste }); } const reviewedArtifactSelections = await mockReviewedArtifactSelections(); + const imageSchemas = await imageTemplateSchemas(); const workflows = new Map>(); const userBlocks = new Map>(); let workflowRevision = 0; @@ -4730,9 +4870,14 @@ async function installMockRoutes(page: Page, options: { graphQualifiedQwenCluste ); }); await page.route('**/nodes**', async (route) => { + const templateRegistry = { + ...imageSchemas.registry, + ...mockRegistry, + 'modules.ModularDiffusers.Lora': imageSchemas.registry['modules.ModularDiffusers.Lora'], + }; const routedRegistry = options.graphQualifiedQwenCluster - ? { ...mockRegistry, ...mockGraphQualifiedQwenRegistry } - : mockRegistry; + ? { ...templateRegistry, ...mockGraphQualifiedQwenRegistry } + : templateRegistry; const nodes = Object.fromEntries( Object.entries(routedRegistry) .filter(([key]) => { @@ -4812,10 +4957,14 @@ async function installMockRoutes(page: Page, options: { graphQualifiedQwenCluste }); }); await page.route('**/model_capabilities**', async (route) => { - const capabilities = mockStudioExecutionCapabilities(); + const capabilities = includeImageTemplateBindings(mockStudioExecutionCapabilities(), imageSchemas); if (options.graphQualifiedQwenCluster) { const index = capabilities.findIndex((capability) => capability.modelType === 'QwenImageModularPipeline'); - if (index >= 0) capabilities[index] = mockGraphQualifiedQwenExecutionCapability(); + if (index >= 0) + capabilities[index] = { + ...mockGraphQualifiedQwenExecutionCapability(), + label: capabilities[index]!.label, + }; } await route.fulfill({ status: 200, @@ -4823,10 +4972,48 @@ async function installMockRoutes(page: Page, options: { graphQualifiedQwenCluste body: JSON.stringify({ schemaVersion: 2, capabilities, - studioExecutionSpecs: capabilities.flatMap((capability) => capability.studioExecutionSpecs), + studioExecutionSpecs: capabilities.flatMap((capability) => capability.studioExecutionSpecs ?? []), + operationContractSchemaVersion: 3, + operationContracts: imageSchemas.publicPayload.operationContracts, + pipelineSupportSchemaVersion: 1, + pipelineSupport: imageSchemas.publicPayload.pipelineSupport, }), }); }); + await page.route('**/operations/starter', (route) => { + const selection = route.request().postDataJSON(); + const recipe = imageSchemas.recipes.find( + (row) => + row.starter.pipelineClass === selection.pipelineClass && + row.starter.task === selection.task && + (!selection.executionProfileId || + IMAGE_TEMPLATE_EXECUTION_SELECTIONS[row.id as keyof typeof IMAGE_TEMPLATE_EXECUTION_SELECTIONS] + ?.executionProfileId === selection.executionProfileId), + ); + return route.fulfill({ + status: recipe ? 200 : 400, + json: recipe?.starter ?? { error: 'Unknown template execution selection' }, + }); + }); + // This response exercises the ordinary graph submission UI only. It is a + // transport fixture and never evidence of hardware or model qualification. + await page.route('**/auto_resource/workflow', (route) => + route.fulfill({ + json: { + schemaVersion: 1, + graphHash: `sha256:workflow-auto-v1:${'a'.repeat(64)}`, + plannedGraphHash: `sha256:workflow-auto-v1:${'b'.repeat(64)}`, + canAutoRun: true, + issues: [], + message: 'Mock workflow planning', + patches: [], + loaders: [], + requirements: {}, + available: {}, + sharedMemory: false, + }, + }), + ); await page.route('**/custom_modules', async (route) => { await route.fulfill({ status: 200, contentType: 'application/json', body: JSON.stringify({ modules: [] }) }); }); @@ -4881,8 +5068,15 @@ async function installMockRoutes(page: Page, options: { graphQualifiedQwenCluste const method = route.request().method(); const profileId = 'huggingface-transformers-peft-5.14.1-0.20.0'; const digest = 'sha256:8e1b0b6b2baa891d4551caa3cde4d59708eced0fd74c1333b68a1aab7ff924b5'; + if (mockOptionalRuntimeJobUnavailable && method === 'GET') { + await route.abort('connectionrefused'); + return; + } const job = () => ({ id: 'optjob-AbCdEf123456', + operation: 'install', + createdAt: 1, + updatedAt: mockOptionalRuntimeJobState === 'ready' ? 3 : 2, profileId, specDigest: digest, status: mockOptionalRuntimeJobState === 'idle' ? 'queued' : mockOptionalRuntimeJobState, @@ -4904,6 +5098,32 @@ async function installMockRoutes(page: Page, options: { graphQualifiedQwenCluste ? { result: { environmentId: 'runtime-2-12345678', requiresActivation: true } } : {}), }); + const activationJob = () => { + const ready = mockOptionalRuntimeQualified && mockOptionalRuntimeProcessStatus === 'active'; + const phase = ready ? 'ready' : mockOptionalRuntimeActivationState; + return { + id: 'optjob-Activate1234', + operation: 'activate', + createdAt: 4, + updatedAt: ready ? 6 : 5, + profileId, + specDigest: digest, + status: ready ? 'ready' : phase === 'validating' ? 'running' : phase, + progress: { + phase, + message: ready + ? 'The runtime is loaded and MoDiff is ready.' + : phase === 'validating' + ? 'Validating the runtime before activation.' + : phase === 'restarting' + ? 'MoDiff is restarting. Waiting for the replacement worker.' + : phase === 'failed' + ? 'Runtime activation could not be verified. Refresh Setup and inspect runtime status.' + : 'Verifying the loaded runtime and backend readiness.', + }, + result: { environmentId: 'runtime-2-12345678', requiresActivation: false, restartRequired: true }, + }; + }; if (mockOptionalRuntimeActions && method === 'POST' && url.pathname.endsWith('/install')) { mockOptionalRuntimeMutationCalls += 1; expect(route.request().postDataJSON()).toEqual({ profileId, specDigest: digest, consent: true }); @@ -4919,7 +5139,7 @@ async function installMockRoutes(page: Page, options: { graphQualifiedQwenCluste await route.fulfill({ status: 200, contentType: 'application/json', - body: JSON.stringify({ error: false, job: job() }), + body: JSON.stringify({ error: false, job: url.pathname.includes('Activate1234') ? activationJob() : job() }), }); return; } @@ -4942,21 +5162,19 @@ async function installMockRoutes(page: Page, options: { graphQualifiedQwenCluste consent: true, }); mockOptionalRuntimeProcessStatus = 'restart_required'; + mockOptionalRuntimeActivationState = 'restarting'; await route.fulfill({ - status: 200, + status: 202, contentType: 'application/json', - body: JSON.stringify({ - error: false, - restartRequired: true, - restarting: true, - message: 'MoDiff is restarting.', - }), + body: JSON.stringify({ error: false, job: activationJob() }), }); return; } if (mockOptionalRuntimeActions && method === 'POST' && url.pathname.endsWith('/rollback')) { mockOptionalRuntimeMutationCalls += 1; - expect(route.request().postDataJSON()).toEqual({ consent: true }); + expect(route.request().postDataJSON()).toEqual( + mockOptionalRuntimeRollbackToBase ? { consent: true, targetBase: true } : { consent: true }, + ); await route.fulfill({ status: 200, contentType: 'application/json', @@ -4987,9 +5205,10 @@ async function installMockRoutes(page: Page, options: { graphQualifiedQwenCluste contractState: mockOptionalRuntimeQualified || mockOptionalRuntimeActions ? 'qualified' : 'candidate_unqualified', cutoverReady: mockOptionalRuntimeQualified || mockOptionalRuntimeActions, - installActionAvailable: mockOptionalRuntimeActions, - activationAvailable: mockOptionalRuntimeActions, - status: 'missing', + installActionAvailable: mockOptionalRuntimeActions && !mockOptionalRuntimeBaseIncluded, + activationAvailable: mockOptionalRuntimeActions && !mockOptionalRuntimeBaseIncluded, + baseIncluded: mockOptionalRuntimeBaseIncluded, + status: mockOptionalRuntimeBaseIncluded ? 'wrong_version' : 'missing', overlayStatus: mockOptionalRuntimeRollbackToBase ? 'repair_required' : mockOptionalRuntimeQualified @@ -5033,6 +5252,12 @@ async function installMockRoutes(page: Page, options: { graphQualifiedQwenCluste }, activeInstallJob: mockOptionalRuntimeJobState === 'running' ? { ownerKind: 'optional_runtime', ownerId: profileId } : null, + latestJob: + mockOptionalRuntimeActivationState !== 'idle' + ? activationJob() + : mockOptionalRuntimeJobState !== 'idle' + ? job() + : null, }), }); }); @@ -5967,6 +6192,9 @@ test.beforeEach(() => { mockOptionalRuntimeActions = false; mockOptionalRuntimeRollbackToBase = false; mockOptionalRuntimeJobState = 'idle'; + mockOptionalRuntimeActivationState = 'idle'; + mockOptionalRuntimeJobUnavailable = false; + mockOptionalRuntimeBaseIncluded = false; mockTemplateGalleryInstallCalls = 0; mockTemplateGalleryInstalled = false; mockReadyProofStatus = 'declared_safe'; @@ -7165,7 +7393,9 @@ test('optional runtime setup is GET-only and keeps a pending target non-actionab await page.waitForFunction(() => Boolean(window.__MODIFF_E2E__), null, { timeout: 30_000 }); await page.evaluate(() => window.__MODIFF_E2E__!.setWebsocketConnection({ sid: 'mock-sid', isConnected: true })); await page.evaluate(async () => { - await window.__MODIFF_E2E__!.applyTemplate('z_image_quick_concept', { resourceMode: 'auto' }); + // Keep this historical pending-target fixture independent of fresh native + // template creation; ordinary image creation is covered separately. + await window.__MODIFF_E2E__!.applyLegacyTemplateForTest('z_image_quick_concept', { resourceMode: 'auto' }); window.__MODIFF_E2E__!.openWorkspacePanelForTest('setup'); }); @@ -7223,8 +7453,8 @@ test('optional runtime setup is GET-only and keeps a pending target non-actionab mockOptionalRuntimeDelayMs = 500; await page.getByTestId('setup-refresh').click(); await expect(disclosure).toContainText('Loading optional runtimes'); - await expect(profile).toHaveCount(0); mockOptionalRuntimeDelayMs = 0; + await expect(disclosure).not.toContainText('Loading optional runtimes'); await expect(profile).toContainText('active'); expect(mockOptionalRuntimeMutationCalls).toBe(0); }); @@ -7268,10 +7498,14 @@ test('qualified optional runtime setup requires consent and supports progress, c const activateDialog = page.getByRole('dialog'); await expect(activateDialog).toContainText('restart MoDiff'); await activateDialog.getByRole('button', { name: 'Activate', exact: true }).click(); - await expect(disclosure.getByText(/restart required/)).toBeVisible(); + await expect(disclosure.getByTestId('optional-runtime-progress')).toContainText('Waiting for the replacement worker'); + await expect(activate).toHaveCount(0); expect(mockOptionalRuntimeMutationCalls).toBe(4); mockOptionalRuntimeQualified = true; mockOptionalRuntimeProcessStatus = 'active'; + await expect(disclosure.getByTestId('optional-runtime-progress')).toContainText('MoDiff is ready', { + timeout: 5_000, + }); await expect(disclosure.getByText(/active\./)).toBeVisible({ timeout: 5_000 }); // Runtime activation rehydrates the workspace. On an empty graph its task // launcher can reopen, so dismiss it before interacting with Setup again. @@ -7284,9 +7518,78 @@ test('qualified optional runtime setup requires consent and supports progress, c await expect.poll(() => mockOptionalRuntimeMutationCalls).toBe(5); }); -test('a broken active optional runtime can be rolled back to the base runtime', async ({ page }) => { +test('base image generation and LoRA dependencies do not expose legacy optional install or activation controls', async ({ + page, +}) => { + mockOptionalRuntimeActions = true; + mockOptionalRuntimeBaseIncluded = true; + mockOptionalRuntimeJobState = 'ready'; + await ensureFrontend(); + await installMockRoutes(page); + await page.goto(FRONTEND_URL, { waitUntil: 'domcontentloaded' }); + await page.waitForFunction(() => Boolean(window.__MODIFF_E2E__), null, { timeout: 30_000 }); + await dismissTaskLauncher(page); + await page.evaluate(() => window.__MODIFF_E2E__!.openWorkspacePanelForTest('setup')); + const disclosure = page.getByText('Optional runtimes', { exact: true }).locator('..'); + await expect(disclosure).toContainText('Image generation and LoRA support are included in the base installation.'); + await expect(disclosure.getByRole('button', { name: /^(Install|Activate|Repair)$/ })).toHaveCount(0); + await expect(disclosure.getByTestId('optional-runtime-huggingface-transformers-peft-5.14.1-0.20.0')).toHaveCount(0); + await expect(disclosure.getByTestId('optional-runtime-progress')).toHaveCount(0); + expect(mockOptionalRuntimeMutationCalls).toBe(0); +}); + +test('optional runtime activation survives refresh and worker disconnection without premature readiness', async ({ + page, +}) => { + mockOptionalRuntimeActions = true; + mockOptionalRuntimeJobState = 'ready'; + mockOptionalRuntimeActivationState = 'validating'; + await ensureFrontend(); + await installMockRoutes(page); + const openSetup = async () => { + await page.waitForFunction(() => Boolean(window.__MODIFF_E2E__), null, { timeout: 30_000 }); + await dismissTaskLauncher(page); + await page.evaluate(() => { + window.__MODIFF_E2E__!.setWebsocketConnection({ sid: 'mock-sid', isConnected: true }); + window.__MODIFF_E2E__!.openWorkspacePanelForTest('setup'); + }); + }; + await page.goto(FRONTEND_URL, { waitUntil: 'domcontentloaded' }); + await openSetup(); + const disclosure = page.getByText('Optional runtimes', { exact: true }).locator('..'); + const progress = disclosure.getByTestId('optional-runtime-progress'); + await expect(progress).toContainText('Validating the runtime'); + await expect(disclosure.getByRole('button', { name: 'Activate', exact: true })).toHaveCount(0); + await page.reload({ waitUntil: 'domcontentloaded' }); + await openSetup(); + await expect(progress).toContainText('Validating the runtime'); + mockOptionalRuntimeActivationState = 'restarting'; + mockOptionalRuntimeProcessStatus = 'restart_required'; + await expect(progress).toContainText('Waiting for the replacement worker'); + mockOptionalRuntimeJobUnavailable = true; + await page.waitForTimeout(1600); + await expect(progress).toContainText('Waiting for the replacement worker'); + await expect(progress).not.toContainText('MoDiff is ready'); + mockOptionalRuntimeJobUnavailable = false; + mockOptionalRuntimeActivationState = 'verifying'; + await expect(progress).toContainText('Verifying the loaded runtime'); + await expect(disclosure.getByRole('button', { name: 'Activate', exact: true })).toHaveCount(0); + mockOptionalRuntimeQualified = true; + mockOptionalRuntimeProcessStatus = 'active'; + await expect(progress).toContainText('MoDiff is ready'); + await page.reload({ waitUntil: 'domcontentloaded' }); + await openSetup(); + await expect(progress).toContainText('MoDiff is ready'); + await expect(disclosure.getByRole('button', { name: 'Activate', exact: true })).toHaveCount(0); + expect(mockOptionalRuntimeMutationCalls).toBe(0); +}); + +test('a broken optional runtime can explicitly reset to base when legacy activation controls are unavailable', async ({ + page, +}) => { mockOptionalRuntimeActions = true; mockOptionalRuntimeRollbackToBase = true; + mockOptionalRuntimeBaseIncluded = true; mockOptionalRuntimeProcessStatus = 'repair_required'; await ensureFrontend(); await installMockRoutes(page); @@ -7296,14 +7599,15 @@ test('a broken active optional runtime can be rolled back to the base runtime', await page.evaluate(() => window.__MODIFF_E2E__!.openWorkspacePanelForTest('setup')); const disclosure = page.getByText('Optional runtimes', { exact: true }).locator('..'); - const rollback = disclosure.getByRole('button', { name: 'Rollback to base', exact: true }); + const rollback = disclosure.getByRole('button', { name: 'Reset to base', exact: true }); await expect(rollback).toBeVisible(); await rollback.click(); const dialog = page.getByRole('dialog'); await expect(dialog).toContainText('validated base runtime'); + await expect(dialog).toContainText('Installed optional files are kept'); expect(mockOptionalRuntimeMutationCalls).toBe(0); - await dialog.getByRole('button', { name: 'Rollback', exact: true }).click(); + await dialog.getByRole('button', { name: 'Reset', exact: true }).click(); await expect.poll(() => mockOptionalRuntimeMutationCalls).toBe(1); }); @@ -7460,6 +7764,9 @@ test('Developer defers template indexes until first open and never refreshes the ) as Record; expect(requestCounts).toEqual(onceWhenNeeded); + await dismissTaskLauncher(page); + await page.getByTestId('left-tab-templates').click(); + await expect(page.getByTestId('left-open-template-browser')).toBeVisible(); await openTemplateBrowser(page); await expect.poll(() => requestCounts.autoPlans).toBe(1); await expect.poll(() => requestCounts.manifest).toBe(1); @@ -8194,7 +8501,8 @@ test('schema-v2 capabilities hide and block an exact model task pair the backend // generation graph, so retain and observe the published state without // waiting for that unrelated finalization timeout. void window - .__MODIFF_E2E__!.applyTemplate('qwen_control_image_layout', { + // Existing managed document fixture; fresh image templates use ordinary operation graphs. + .__MODIFF_E2E__!.applyLegacyTemplateForTest('qwen_control_image_layout', { resourceMode: 'expert', controlImage: 'mock-control.png', referenceImages: ['mock-control.png'], @@ -8272,7 +8580,8 @@ test('mocked Studio restores legacy template tabs as managed without moving thei await installMockRoutes(page); await page.goto(FRONTEND_URL, { waitUntil: 'domcontentloaded' }); await page.waitForFunction(() => Boolean(window.__MODIFF_E2E__), null, { timeout: 30_000 }); - await page.evaluate(() => window.__MODIFF_E2E__!.applyTemplate('z_image_quick_concept')); + // Existing managed document fixture; fresh image templates use ordinary operation graphs. + await page.evaluate(() => window.__MODIFF_E2E__!.applyLegacyTemplateForTest('z_image_quick_concept')); const legacyReloaded = page.waitForEvent('load'); await page.evaluate(() => { @@ -8983,7 +9292,9 @@ test('the unified editor inspect a node with the library closed, preserving grap .poll(async () => (await read()).nodes.find((node) => node.id === nodeId)?.params.prompt.value) .toBe('Inspector edit on the original graph'); await page.keyboard.press('Escape'); - await page.locator('.react-flow__pane').click({ position: { x: 100, y: 80 } }); + // Invoke the graph shortcut after the dialog restores its non-editable trigger. + await expect(editable).toHaveCount(0); + await expect(trigger).toBeFocused(); await page.keyboard.press('Control+z'); await expect .poll(async () => (await read()).nodes.find((node) => node.id === nodeId)?.params.prompt.value) @@ -9193,7 +9504,8 @@ test('ordinary operation graphs preserve native edits through model/task preview await dialog.getByRole('button', { name: 'Add starter to canvas', exact: true }).click(); await useOrdinaryStageFixture(page); await expect(dialog).toHaveCount(0); - await expect.poll(() => page.evaluate(() => window.__MODIFF_E2E__!.getState().flow.nodes.length)).toBe(4); + // Qwen's prompt encoder and denoiser share the actual Guidance node. + await expect.poll(() => page.evaluate(() => window.__MODIFF_E2E__!.getState().flow.nodes.length)).toBe(5); await page.getByRole('button', { name: 'Arrange graph', exact: true }).click(); const promptId = await page.evaluate( () => window.__MODIFF_E2E__!.getState().flow.nodes.find((n) => n.action === 'EncodePrompt')!.id, @@ -9225,8 +9537,16 @@ test('ordinary operation graphs preserve native edits through model/task preview await panel.getByRole('button', { name: 'Inspect selected node', exact: true }).click(); const stageInspector = page.getByRole('dialog', { name: 'Node inspector', exact: true }); await stageInspector.getByRole('tab', { name: 'Implementation', exact: true }).click(); - await expect(stageInspector).toContainText('Retained settings'); + // FLUX now consumes this negative prompt through its real CFG encoder. + await expect(stageInspector).toContainText('negative_prompt — User override'); await expect(stageInspector).toContainText('watermark'); + expect( + await page.evaluate( + () => + window.__MODIFF_E2E__!.getState().flow.nodes.find((n) => n.action === 'EncodePrompt')?.params.negative_prompt + .value, + ), + ).toBe('watermark'); await stageInspector.getByRole('button', { name: 'Close', exact: true }).click(); const inspect = () => page.evaluate(() => { @@ -9239,12 +9559,12 @@ test('ordinary operation graphs preserve native edits through model/task preview }); await expect .poll(inspect) - .toEqual({ pipeline: 'FluxModularPipeline', prompt: 'Copper observatory at sunrise', count: 4 }); + .toEqual({ pipeline: 'FluxModularPipeline', prompt: 'Copper observatory at sunrise', count: 5 }); await page.locator('.react-flow__pane').click({ position: { x: 100, y: 80 } }); await page.keyboard.press('Control+z'); await expect .poll(inspect) - .toEqual({ pipeline: 'QwenImageModularPipeline', prompt: 'Copper observatory at sunrise', count: 4 }); + .toEqual({ pipeline: 'QwenImageModularPipeline', prompt: 'Copper observatory at sunrise', count: 5 }); expect( await page.evaluate( () => window.__MODIFF_E2E__!.getState().flow.nodes.find((n) => n.action === 'EncodePrompt')?.id, @@ -9253,7 +9573,7 @@ test('ordinary operation graphs preserve native edits through model/task preview await page.keyboard.press('Control+Shift+z'); await expect .poll(inspect) - .toEqual({ pipeline: 'FluxModularPipeline', prompt: 'Copper observatory at sunrise', count: 4 }); + .toEqual({ pipeline: 'FluxModularPipeline', prompt: 'Copper observatory at sunrise', count: 5 }); expect( await page.evaluate( () => window.__MODIFF_E2E__!.getState().flow.nodes.find((n) => n.action === 'EncodePrompt')?.id, @@ -9273,7 +9593,7 @@ test('ordinary operation graphs preserve native edits through model/task preview await expect(dialog).toHaveCount(0); await expect .poll(inspect) - .toEqual({ pipeline: 'FluxModularPipeline', prompt: 'Copper observatory at sunrise', count: 5 }); + .toEqual({ pipeline: 'FluxModularPipeline', prompt: 'Copper observatory at sunrise', count: 6 }); await page.keyboard.press('Control+Shift+s'); await expect(page.getByTestId('save-workflow-dialog')).toBeVisible(); await page.getByTestId('save-workflow-name').fill('Operation authoring'); @@ -9283,7 +9603,20 @@ test('ordinary operation graphs preserve native edits through model/task preview await page.waitForFunction(() => Boolean(window.__MODIFF_E2E__?.getState().studio.workflowCanvasHydrated)); await expect .poll(inspect) - .toEqual({ pipeline: 'FluxModularPipeline', prompt: 'Copper observatory at sunrise', count: 5 }); + .toEqual({ pipeline: 'FluxModularPipeline', prompt: 'Copper observatory at sunrise', count: 6 }); + expect( + await page.evaluate(() => { + const { nodes, edges } = window.__MODIFF_E2E__!.getState().flow; + const guider = nodes.find((node) => node.action === 'Guider'); + return { + negativePrompt: nodes.find((node) => node.action === 'EncodePrompt')?.params.negative_prompt.value, + guidanceTargets: edges + .filter((edge) => edge.source === guider?.id && edge.targetHandle === 'guider') + .map((edge) => nodes.find((node) => node.id === edge.target)?.action) + .sort(), + }; + }), + ).toEqual({ negativePrompt: 'watermark', guidanceTargets: ['Denoise', 'EncodePrompt'] }); await page.screenshot({ path: test.info().outputPath('operation-authoring.png'), animations: 'disabled' }); expect(errors).toEqual([]); }); @@ -9352,12 +9685,12 @@ for (const workspace of ['expert'] as const) { await expect(review).toHaveCount(0); // Applying a graph replacement clears selection and closes the contextual inspector. await expect(inspector).toHaveCount(0); - await expect.poll(inspect).toEqual({ ...before, pipeline: 'FluxModularPipeline' }); + await expect.poll(inspect).toEqual({ ...before, pipeline: 'FluxModularPipeline', count: 5 }); await page.locator('.react-flow__pane').click({ position: { x: 100, y: 80 } }); await page.keyboard.press('Control+z'); await expect.poll(inspect).toEqual(before); await page.keyboard.press('Control+Shift+z'); - await expect.poll(inspect).toEqual({ ...before, pipeline: 'FluxModularPipeline' }); + await expect.poll(inspect).toEqual({ ...before, pipeline: 'FluxModularPipeline', count: 5 }); inspector = await openOwner(); await inspector.getByLabel('Replacement task', { exact: true }).click(); await page.getByRole('option', { name: 'image to image', exact: true }).click(); @@ -9369,7 +9702,7 @@ for (const workspace of ['expert'] as const) { await expect(review).toHaveCount(0); // Applying a graph replacement clears selection and closes the contextual inspector. await expect(inspector).toHaveCount(0); - const expected = { ...before, pipeline: 'FluxModularPipeline', count: 5 }; + const expected = { ...before, pipeline: 'FluxModularPipeline', count: 6 }; await expect.poll(inspect).toEqual(expected); await page.keyboard.press('Control+Shift+s'); await expect(page.getByTestId('save-workflow-dialog')).toBeVisible(); @@ -10274,7 +10607,14 @@ test('new workflows stay neutral and ordinary node clicks dismiss the launcher', return current.flow.visibleNodeCount; }) .toBeGreaterThan(0); - await expect(page.getByTestId('studio-task-model-summary')).toContainText('Z-Image Turbo'); + await expect(page.getByTestId('studio-task-model-summary')).toContainText('Custom graph'); + expect( + await page.evaluate( + () => + window.__MODIFF_E2E__!.getState().flow.nodes.find((node) => node.action === 'ModelsLoader')?.params.repo_id + .value, + ), + ).toEqual({ source: 'hub', value: 'Tongyi-MAI/Z-Image-Turbo' }); await page.getByTestId('topbar-new-workflow').click(); await expect(page.getByTestId('task-launcher')).toBeVisible(); @@ -10525,7 +10865,8 @@ test('mocked imported assets fill active Studio input slots', async ({ page }) = await dismissTaskLauncher(page); await page.evaluate(async () => { try { - await window.__MODIFF_E2E__!.applyTemplate('qwen_control_image_layout', { + // Existing managed document fixture; fresh image templates use ordinary operation graphs. + await window.__MODIFF_E2E__!.applyLegacyTemplateForTest('qwen_control_image_layout', { controlImage: '', referenceImages: [], }); @@ -10553,7 +10894,7 @@ test('mocked imported assets fill active Studio input slots', async ({ page }) = await page.evaluate(async () => { try { - await window.__MODIFF_E2E__!.applyTemplate('qwen_inpaint_object_replace', { + await window.__MODIFF_E2E__!.applyLegacyTemplateForTest('qwen_inpaint_object_replace', { referenceImages: [], maskImage: '', }); @@ -10592,7 +10933,7 @@ test('mocked imported assets fill active Studio input slots', async ({ page }) = await page.evaluate(async () => { try { - await window.__MODIFF_E2E__!.applyTemplate('ace_step_audio_continuation', { + await window.__MODIFF_E2E__!.applyLegacyTemplateForTest('ace_step_audio_continuation', { sourceAudio: '', }); } catch { @@ -11534,7 +11875,8 @@ test('mocked workflow artifact requirements are contextual and role grouped', as await page.evaluate(async () => { try { - await window.__MODIFF_E2E__!.applyTemplate('qwen_control_image_layout', { + // Existing managed document fixture; fresh image templates use ordinary operation graphs. + await window.__MODIFF_E2E__!.applyLegacyTemplateForTest('qwen_control_image_layout', { controlImage: 'mock-control.png', referenceImages: ['mock-control.png'], resourceMode: 'expert', @@ -12217,7 +12559,8 @@ test('controlled workflow families seal and restore exact schema-v3 graph proofs await page.evaluate( async ({ id, overrides }) => { try { - await window.__MODIFF_E2E__!.applyTemplate(id, overrides); + // Existing managed document fixture; fresh image templates use ordinary operation graphs. + await window.__MODIFF_E2E__!.applyLegacyTemplateForTest(id, overrides); } catch (error) { throw new Error(`${id}: ${String(error)}`); } @@ -12359,7 +12702,8 @@ test('controlled LoRA labels base-only Auto history until its exact artifacts ar await page.goto(FRONTEND_URL, { waitUntil: 'domcontentloaded' }); await page.waitForFunction(() => Boolean(window.__MODIFF_E2E__), null, { timeout: 30_000 }); await page.evaluate(() => window.__MODIFF_E2E__!.setWebsocketConnection({ sid: 'mock-sid', isConnected: true })); - await page.evaluate(() => window.__MODIFF_E2E__!.applyTemplate('flux_lora_cinematic_octane_3d')); + // Existing managed document fixture; fresh image templates use ordinary operation graphs. + await page.evaluate(() => window.__MODIFF_E2E__!.applyLegacyTemplateForTest('flux_lora_cinematic_octane_3d')); await page.evaluate(() => window.__MODIFF_E2E__!.openWorkspacePanelForTest('studio')); await expect(page.getByTestId('studio-run-readiness')).toContainText('Base recipe ran here'); @@ -12428,7 +12772,8 @@ test('Studio sticky prompt seals the measured header gap while the right panel s await page.goto(FRONTEND_URL, { waitUntil: 'domcontentloaded' }); await page.waitForFunction(() => Boolean(window.__MODIFF_E2E__), null, { timeout: 30_000 }); await page.evaluate(() => window.__MODIFF_E2E__!.setWebsocketConnection({ sid: 'mock-sid', isConnected: true })); - await page.evaluate(() => window.__MODIFF_E2E__!.applyTemplate('z_image_quick_concept')); + // Existing managed document fixture; fresh image templates use ordinary operation graphs. + await page.evaluate(() => window.__MODIFF_E2E__!.applyLegacyTemplateForTest('z_image_quick_concept')); await page.evaluate(() => window.__MODIFF_E2E__!.openWorkspacePanelForTest('studio')); const promptToolsToggle = page.getByTestId('studio-section-toggle-prompt-tools'); @@ -12871,7 +13216,7 @@ test('active workflow snapshot wins when the fast canvas cache belongs to anothe await expect(page.getByTestId('studio-prompt-input')).toBeVisible(); }); -test('2x Product Upscale waits for discovery and builds its pinned finishing block', async ({ page }) => { +test('legacy 2x Product Upscale restores its pinned finishing block and comparison', async ({ page }) => { mockInstalledRepos.clear(); mockInstalledRepos.add('Qwen/Qwen-Image-2512'); mockInstalledRepos.add('unsloth/Qwen-Image-2512-unsloth-bnb-4bit'); @@ -12885,10 +13230,9 @@ test('2x Product Upscale waits for discovery and builds its pinned finishing blo await page.waitForFunction(() => Boolean(window.__MODIFF_E2E__), null, { timeout: 30_000 }); await page.evaluate(() => window.__MODIFF_E2E__!.setWebsocketConnection({ sid: 'mock-sid', isConnected: true })); - await openTemplateBrowser(page); - await page.getByTestId('template-browser-search').fill('Product Upscale'); - await page.getByTestId('template-browser-create-card-qwen_upscale_finish').click(); - await expect(page.getByTestId('template-browser-dialog')).toBeHidden(); + // Saved managed workflows retain their finishing-stage comparison controls. + // Fresh Gallery graphs are ordinary operation graphs, covered independently. + await page.evaluate(async () => window.__MODIFF_E2E__!.applyLegacyTemplateForTest('qwen_upscale_finish')); await expect .poll(async () => { @@ -13207,6 +13551,16 @@ test('mocked Studio blocks missing models, marks loader red, and keeps local tab 'true', ); await focusedModelDialog.getByTestId('model-manager-close').click(); + // The remaining assertions exercise persisted managed graph controls and + // exact old cache ownership. Fresh Gallery creation above stays native. + await page.evaluate(async () => { + try { + await window.__MODIFF_E2E__!.applyLegacyTemplateForTest('z_image_quick_concept'); + } catch (error) { + if (!(error instanceof Error) || error.message !== 'No compatible local artifact was found for Auto.') + throw error; + } + }); await expect(page.getByTestId('studio-prompt-input')).toBeVisible(); await expect(page.getByTestId('studio-pinned-graph-inputs')).toBeVisible(); @@ -13328,7 +13682,8 @@ test('mocked Studio blocks missing models, marks loader red, and keeps local tab await assertUnifiedWorkspace(page, 'expert'); await page.evaluate(async () => { - await window.__MODIFF_E2E__!.applyTemplate('z_image_quick_concept', { resourceMode: 'expert' }); + // Existing managed document fixture; fresh image templates use ordinary operation graphs. + await window.__MODIFF_E2E__!.applyLegacyTemplateForTest('z_image_quick_concept', { resourceMode: 'expert' }); }); const graphAfterSecondUpdate = await page.evaluate(() => window.__MODIFF_E2E__!.getState()); const expertStudioRoles = graphAfterSecondUpdate.flow.nodes @@ -13344,8 +13699,8 @@ test('mocked Studio blocks missing models, marks loader red, and keeps local tab expect(graphAfterSecondUpdate.flow.edges.length).toBeGreaterThanOrEqual(graphAfterRunBlock.flow.edges.length); await page.evaluate(async () => { - await window.__MODIFF_E2E__!.applyTemplate('z_image_quick_concept', { resourceMode: 'expert' }); - await window.__MODIFF_E2E__!.applyTemplate('z_image_quick_concept', { resourceMode: 'expert' }); + await window.__MODIFF_E2E__!.applyLegacyTemplateForTest('z_image_quick_concept', { resourceMode: 'expert' }); + await window.__MODIFF_E2E__!.applyLegacyTemplateForTest('z_image_quick_concept', { resourceMode: 'expert' }); }); await expect .poll(async () => { @@ -13413,7 +13768,7 @@ test('mocked Studio blanks the canvas while creating a template workflow', async }; }) .toEqual({ - nodeCount: 5, + nodeCount: 6, transition: null, }); @@ -13475,7 +13830,7 @@ test('mocked Studio blanks the canvas while creating a template workflow', async .toEqual({ activeTemplateId: 'z_image_quick_concept', transition: null, - visibleNodeCount: 5, + visibleNodeCount: 6, }); const transitionSamples = await page.evaluate(() => { type TemplateGraphSample = { @@ -13504,9 +13859,10 @@ test('mocked Studio blanks the canvas while creating a template workflow', async expect(sample.runDisabled).toBe(true); expect(sample.runTitle).toBe('Preparing graph'); }); - await expect(page.getByTestId('studio-task-model-summary')).not.toContainText('Custom graph'); - await expect(page.getByTestId('studio-run-readiness')).toContainText('Ready'); - await expect(page.getByTestId('studio-prompt-input')).toBeVisible(); + await expect(page.getByTestId('studio-task-model-summary')).toContainText('Custom graph'); + await expect(page.getByTestId('studio-run-readiness')).toContainText('Graph ready · Auto check at Run'); + await expect(page.getByTestId('studio-prompt-input')).toHaveCount(0); + await expect(page.locator('.react-flow__node').getByRole('textbox', { name: 'Prompt *', exact: true })).toBeVisible(); }); test('low-VRAM Auto template remains finalized across repeated Run planning', async ({ page }) => { @@ -13539,7 +13895,8 @@ test('low-VRAM Auto template remains finalized across repeated Run planning', as await page.evaluate(() => window.__MODIFF_E2E__!.setWebsocketConnection({ sid: 'mock-sid', isConnected: true })); await seedLegacyManagedWorkflow(page, 'text_to_image'); await page.evaluate(async () => { - await window.__MODIFF_E2E__!.applyTemplate('low_vram'); + // Existing managed document fixture; fresh image templates use ordinary operation graphs. + await window.__MODIFF_E2E__!.applyLegacyTemplateForTest('low_vram'); }); await expect @@ -13621,7 +13978,8 @@ test('busy one-shot action becomes Queue and submits once without stopping activ await page.evaluate(() => window.__MODIFF_E2E__!.setWebsocketConnection({ sid: 'mock-sid', isConnected: true })); await seedLegacyManagedWorkflow(page, 'text_to_image'); await page.evaluate(async () => { - await window.__MODIFF_E2E__!.applyTemplate('low_vram'); + // Existing managed document fixture; fresh image templates use ordinary operation graphs. + await window.__MODIFF_E2E__!.applyLegacyTemplateForTest('low_vram'); }); await expect(page.getByTestId('studio-run-readiness')).toContainText('Ready'); @@ -13782,7 +14140,8 @@ test('restored finalized exact workflow queues without replaying field actions o await page.evaluate(() => window.__MODIFF_E2E__!.setWebsocketConnection({ sid: 'mock-sid', isConnected: true })); await seedLegacyManagedWorkflow(page, 'text_to_image'); await page.evaluate(async () => { - await window.__MODIFF_E2E__!.applyTemplate('low_vram', { resourceMode: 'expert' }); + // Existing managed document fixture; fresh image templates use ordinary operation graphs. + await window.__MODIFF_E2E__!.applyLegacyTemplateForTest('low_vram', { resourceMode: 'expert' }); }); await expect @@ -13862,7 +14221,8 @@ test('transient Auto planner failure does not report an installed Z-Image model await page.evaluate(() => window.__MODIFF_E2E__!.setWebsocketConnection({ sid: 'mock-sid', isConnected: true })); await seedLegacyManagedWorkflow(page, 'text_to_image'); await page.evaluate(async () => { - await window.__MODIFF_E2E__!.applyTemplate('z_image_quick_concept'); + // Existing managed document fixture; fresh image templates use ordinary operation graphs. + await window.__MODIFF_E2E__!.applyLegacyTemplateForTest('z_image_quick_concept'); }); await expect(page.getByTestId('studio-run-readiness')).toContainText('Ready'); @@ -13901,7 +14261,8 @@ test('backend declarative bindings synchronize both generic Layered actions afte await page.evaluate(() => { void window - .__MODIFF_E2E__!.applyTemplate('qwen_layered_portrait', { + // Existing managed document fixture; fresh image templates use ordinary operation graphs. + .__MODIFF_E2E__!.applyLegacyTemplateForTest('qwen_layered_portrait', { referenceImages: ['mock-layer-source.webp'], resourceMode: 'expert', width: 1000, @@ -14001,14 +14362,16 @@ test('backend declarative bindings synchronize both generic Layered actions afte .toEqual([1024, 1024]); }); -test('mocked Studio renders generic Qwen template skeleton without waiting on Modular fields', async ({ page }) => { +test('fresh Qwen template uses ordinary native stages without legacy field refresh', async ({ page }) => { mockInstalledRepos.clear(); mockInstalledRepos.add('Qwen/Qwen-Image-2512'); mockInstalledRepos.add('unsloth/Qwen-Image-2512-unsloth-bnb-4bit'); mockDownloadCalls = 0; mockIncludeQuantizationNode = true; mockIncludeOutpaintNode = true; - mockDynamicModularFields = true; + // Native starters consume their declared stage schema. The historical + // empty-stage fixture is reserved for whole-pipeline independence. + mockDynamicModularFields = false; await ensureFrontend(); await installMockRoutes(page); await page.goto(FRONTEND_URL, { waitUntil: 'domcontentloaded' }); @@ -14040,8 +14403,8 @@ test('mocked Studio renders generic Qwen template skeleton without waiting on Mo .toEqual({ activeTemplateId: 'qwen_low_vram_product_concept', transition: null, - visibleNodeCount: 5, - finalization: 'complete', + visibleNodeCount: 6, + finalization: undefined, }); await expect @@ -14049,33 +14412,33 @@ test('mocked Studio renders generic Qwen template skeleton without waiting on Mo async () => { const current = await page.evaluate(() => window.__MODIFF_E2E__!.getState()); const pipelineNode = current.flow.nodes.find( - (node) => node.action === 'LoadPipeline' && node.module === 'modules.DiffusersImage', + (node) => node.action === 'ModelsLoader' && node.module === 'modules.ModularDiffusers', ); const generateNode = current.flow.nodes.find( - (node) => node.action === 'Generate' && node.module === 'modules.DiffusersImage', + (node) => node.action === 'Denoise' && node.module === 'modules.ModularDiffusers', + ); + const encoding = current.flow.nodes.find((node) => node.label === 'Encode Inputs'); + const promptNode = encoding?.blockInstanceV2?.effectiveGraph.nodes.find( + (node) => node.data.action === 'EncodePrompt', ); const pipelineEdge = current.flow.edges.find( - (edge) => - edge.source === pipelineNode?.id && - edge.target === generateNode?.id && - edge.sourceHandle === 'pipeline' && - edge.targetHandle === 'pipeline', + (edge) => edge.source === pipelineNode?.id && edge.target === generateNode?.id, ); return { finalization: current.studio.graphFinalization?.status, - promptValue: generateNode?.params?.prompt?.value, + promptValue: promptNode?.data.params?.prompt?.value, offloadMode: pipelineNode?.params?.offload_mode?.value, - quantizedComponents: pipelineNode?.params?.quantized_components?.value, + pipelineClass: pipelineNode?.params?.model_type?.value, pipelineEdge: Boolean(pipelineEdge), }; }, { timeout: 10_000 }, ) .toEqual({ - finalization: 'complete', + finalization: undefined, promptValue: await page.evaluate(() => window.__MODIFF_E2E__!.getState().studio.form.prompt), offloadMode: 'model_cpu', - quantizedComponents: [], + pipelineClass: 'QwenImageModularPipeline', pipelineEdge: true, }); }); @@ -14182,7 +14545,8 @@ test('mocked Studio keeps exact direct Qwen Expert graphs independent of unused await expect(page.getByTestId('studio-panel')).toBeVisible(); await assertUnifiedWorkspace(page, 'expert'); await page.evaluate(async () => { - await window.__MODIFF_E2E__!.applyTemplate('qwen_low_vram_product_concept', { + // Existing managed document fixture; fresh image templates use ordinary operation graphs. + await window.__MODIFF_E2E__!.applyLegacyTemplateForTest('qwen_low_vram_product_concept', { resourceMode: 'expert', quantizationMode: 'bnb_4bit', dtype: 'bfloat16', @@ -14225,7 +14589,8 @@ test('mocked Studio consumes the exact execution-profile Expert CUDA policy', as await seedLegacyManagedWorkflow(page, 'text_to_image'); await page.evaluate(async () => { - await window.__MODIFF_E2E__!.applyTemplate('qwen_low_vram_product_concept', { + // Existing managed document fixture; fresh image templates use ordinary operation graphs. + await window.__MODIFF_E2E__!.applyLegacyTemplateForTest('qwen_low_vram_product_concept', { resourceMode: 'expert', quantizationMode: 'bnb_4bit', dtype: 'float16', @@ -14262,7 +14627,8 @@ test('mocked Studio derives Expert quantization choices from the exact execution await page.waitForFunction(() => Boolean(window.__MODIFF_E2E__), null, { timeout: 30_000 }); await page.getByTestId('launcher-mode-advanced_workflow').click(); await page.evaluate(async () => { - await window.__MODIFF_E2E__!.applyTemplate('qwen_low_vram_product_concept', { + // Existing managed document fixture; fresh image templates use ordinary operation graphs. + await window.__MODIFF_E2E__!.applyLegacyTemplateForTest('qwen_low_vram_product_concept', { resourceMode: 'expert', quantizationMode: 'none', }); @@ -14287,7 +14653,8 @@ test('mocked Studio preserves Expert quantization only when the target execution await page.waitForFunction(() => Boolean(window.__MODIFF_E2E__), null, { timeout: 30_000 }); await seedLegacyManagedWorkflow(page, 'text_to_image'); await page.evaluate(async () => { - await window.__MODIFF_E2E__!.applyTemplate('qwen_low_vram_product_concept', { + // Existing managed document fixture; fresh image templates use ordinary operation graphs. + await window.__MODIFF_E2E__!.applyLegacyTemplateForTest('qwen_low_vram_product_concept', { resourceMode: 'expert', quantizationMode: 'bnb_4bit', }); @@ -14322,7 +14689,8 @@ test('mocked Studio exposes and binds generic PAG controls for the exact PAG pro await page.waitForFunction(() => Boolean(window.__MODIFF_E2E__), null, { timeout: 30_000 }); await seedLegacyManagedWorkflow(page, 'text_to_image'); await page.evaluate(async () => { - await window.__MODIFF_E2E__!.applyTemplate('qwen_low_vram_product_concept', { + // Existing managed document fixture; fresh image templates use ordinary operation graphs. + await window.__MODIFF_E2E__!.applyLegacyTemplateForTest('qwen_low_vram_product_concept', { resourceMode: 'expert', quantizationMode: 'none', }); @@ -14599,7 +14967,8 @@ test('mocked Studio consumes the exact execution-profile Expert MPS policy', asy await page.getByTestId('launcher-mode-advanced_workflow').click(); await page.evaluate(async () => { - await window.__MODIFF_E2E__!.applyTemplate('qwen_low_vram_product_concept', { + // Existing managed document fixture; fresh image templates use ordinary operation graphs. + await window.__MODIFF_E2E__!.applyLegacyTemplateForTest('qwen_low_vram_product_concept', { resourceMode: 'expert', quantizationMode: 'bnb_4bit', dtype: 'bfloat16', @@ -14712,7 +15081,8 @@ test('the unified editor preserves the exact Qwen graph and automatic resources' await seedLegacyManagedWorkflow(page, 'text_to_image'); await expect(page.getByTestId('studio-panel')).toBeVisible(); await page.evaluate(async () => { - await window.__MODIFF_E2E__!.applyTemplate('qwen_low_vram_product_concept', { + // Existing managed document fixture; fresh image templates use ordinary operation graphs. + await window.__MODIFF_E2E__!.applyLegacyTemplateForTest('qwen_low_vram_product_concept', { resourceMode: 'auto', device: 'cuda:0', }); @@ -14973,7 +15343,8 @@ test('mocked Auto Run atomically submits the selected resident Qwen recipe and r await page.waitForFunction(() => Boolean(window.__MODIFF_E2E__), null, { timeout: 30_000 }); await page.evaluate(() => window.__MODIFF_E2E__!.setWebsocketConnection({ sid: 'mock-sid', isConnected: true })); await page.evaluate(async () => { - await window.__MODIFF_E2E__!.applyTemplate('qwen_low_vram_product_concept', { + // Existing managed document fixture; fresh image templates use ordinary operation graphs. + await window.__MODIFF_E2E__!.applyLegacyTemplateForTest('qwen_low_vram_product_concept', { resourceMode: 'auto', device: 'cuda:0', steps: 7, @@ -16729,7 +17100,8 @@ test('mocked Studio blocks a schema-v2 Auto plan that targets a different manage await page.evaluate(() => window.__MODIFF_E2E__!.setWebsocketConnection({ sid: 'mock-sid', isConnected: true })); await page.evaluate(async () => { try { - await window.__MODIFF_E2E__!.applyTemplate('qwen_low_vram_product_concept', { + // Legacy fixture setup preserves the managed loader binding under test. + await window.__MODIFF_E2E__!.applyLegacyTemplateForTest('qwen_low_vram_product_concept', { resourceMode: 'auto', device: 'cuda:0', }); @@ -16764,7 +17136,8 @@ test('mocked Studio binds schema-v2 Auto to the exact managed loader repository' await page.waitForFunction(() => Boolean(window.__MODIFF_E2E__), null, { timeout: 30_000 }); await page.evaluate(() => window.__MODIFF_E2E__!.setWebsocketConnection({ sid: 'mock-sid', isConnected: true })); await page.evaluate(async () => { - await window.__MODIFF_E2E__!.applyTemplate('qwen_low_vram_product_concept', { + // Legacy fixture setup preserves the managed loader repository binding. + await window.__MODIFF_E2E__!.applyLegacyTemplateForTest('qwen_low_vram_product_concept', { resourceMode: 'auto', device: 'cuda:0', }); @@ -16805,7 +17178,8 @@ test('mocked Studio image preview actions and progress ignore stale websocket me await seedLegacyManagedWorkflow(page, 'text_to_image'); await expect(page.getByTestId('studio-panel')).toBeVisible(); await page.evaluate(async () => { - await window.__MODIFF_E2E__!.applyTemplate('qwen_low_vram_product_concept', { + // Legacy fixture setup preserves managed Generate receipts and preview roles. + await window.__MODIFF_E2E__!.applyLegacyTemplateForTest('qwen_low_vram_product_concept', { resourceMode: 'auto', device: 'cuda:0', }); @@ -17305,7 +17679,8 @@ test('startup run recovery preserves the selected saved workflow until explicit await page.goto(FRONTEND_URL, { waitUntil: 'domcontentloaded' }); await page.waitForFunction(() => Boolean(window.__MODIFF_E2E__)); const identity = await page.evaluate(async () => { - await window.__MODIFF_E2E__!.applyTemplate('z_image_quick_concept'); + // Legacy fixture setup preserves the saved managed workflow snapshot. + await window.__MODIFF_E2E__!.applyLegacyTemplateForTest('z_image_quick_concept'); const { useStudioStore } = await import('/src/stores/useStudioStore.ts'); useStudioStore.getState().saveActiveWorkflowTab(false); const state = useStudioStore.getState(); @@ -17411,7 +17786,8 @@ test('active node execution follows its exact workflow across tabs, notification await page.waitForFunction(() => Boolean(window.__MODIFF_E2E__), null, { timeout: 30_000 }); await page.evaluate(() => window.__MODIFF_E2E__!.setWebsocketConnection({ sid: 'mock-sid', isConnected: true })); await page.evaluate(async () => { - await window.__MODIFF_E2E__!.applyTemplate('z_image_quick_concept'); + // Legacy fixture setup preserves the managed Generate task origin. + await window.__MODIFF_E2E__!.applyLegacyTemplateForTest('z_image_quick_concept'); }); const identity = await page.evaluate(() => { @@ -17708,7 +18084,8 @@ test('previous video and audio renders open in-app without replacing the current await page.evaluate(() => window.__MODIFF_E2E__!.setWebsocketConnection({ sid: 'mock-sid', isConnected: true })); const videoState = await page.evaluate(async () => { - await window.__MODIFF_E2E__!.applyTemplate('wan_vace_cinematic_text_to_video'); + // Legacy fixture setup preserves managed media output receipts. + await window.__MODIFF_E2E__!.applyLegacyTemplateForTest('wan_vace_cinematic_text_to_video'); const current = window.__MODIFF_E2E__!.getState(); const exporter = current.flow.nodes.find((node) => node.module === 'modules.Video' && node.action === 'Export'); if (!exporter) throw new Error('Video export node is missing.'); @@ -17800,7 +18177,8 @@ test('previous video and audio renders open in-app without replacing the current await expect(mediaExport).toHaveCount(0); const audioState = await page.evaluate(async () => { - await window.__MODIFF_E2E__!.applyTemplate('ace_step_text_to_audio'); + // Legacy fixture setup preserves managed audio output receipts. + await window.__MODIFF_E2E__!.applyLegacyTemplateForTest('ace_step_text_to_audio'); const current = window.__MODIFF_E2E__!.getState(); const exporter = current.flow.nodes.find((node) => node.module === 'modules.Audio' && node.action === 'Export'); if (!exporter) throw new Error('Audio export node is missing.'); @@ -17933,7 +18311,8 @@ test('session activity and generation notifications open the originating workflo await page.waitForFunction(() => Boolean(window.__MODIFF_E2E__), null, { timeout: 30_000 }); await page.evaluate(() => window.__MODIFF_E2E__!.setWebsocketConnection({ sid: 'mock-sid', isConnected: true })); await page.evaluate(async () => { - await window.__MODIFF_E2E__!.applyTemplate('z_image_quick_concept'); + // Legacy fixture setup preserves managed task and preview attribution. + await window.__MODIFF_E2E__!.applyLegacyTemplateForTest('z_image_quick_concept'); }); const workflowId = await page.evaluate(() => window.__MODIFF_E2E__!.getState().studio.activeWorkflowTabId); @@ -18321,6 +18700,7 @@ test('a recovered native worker crash opens an explicit failure with a lower-mem }); test('mocked Studio leaves newly-created Expert Qwen quantization node expanded', async ({ page }) => { + // Legacy fixture setup preserves the Expert quantization utility node contract. mockInstalledRepos.clear(); mockInstalledRepos.add('Qwen/Qwen-Image-2512'); mockInstalledRepos.add('InstantX/Qwen-Image-ControlNet-Union'); @@ -18351,7 +18731,7 @@ test('mocked Studio leaves newly-created Expert Qwen quantization node expanded' await assertUnifiedWorkspace(page, 'expert'); await page.evaluate(() => { void window - .__MODIFF_E2E__!.applyTemplate('qwen_control_image_layout', { + .__MODIFF_E2E__!.applyLegacyTemplateForTest('qwen_control_image_layout', { resourceMode: 'expert', quantizationMode: 'bnb_4bit', dtype: 'bfloat16', @@ -18493,7 +18873,8 @@ test('mocked Studio builds registered Diffusers edit, inpaint, and control facad for (const item of cases) { await page.evaluate( async ({ templateId, overrides }) => { - await window.__MODIFF_E2E__!.applyTemplate(templateId, overrides); + // Legacy fixture setup preserves registered facades and managed edges. + await window.__MODIFF_E2E__!.applyLegacyTemplateForTest(templateId, overrides); }, { templateId: item.templateId, overrides: item.overrides }, ); @@ -18562,7 +18943,8 @@ test('mocked Studio wires Qwen inpaint through generic Diffusers image nodes', a await page.getByTestId('launcher-mode-advanced_workflow').click(); await expect(page.getByTestId('studio-panel')).toBeVisible(); await page.evaluate(async () => { - await window.__MODIFF_E2E__!.applyTemplate('qwen_inpaint_mask_draft', { + // Legacy fixture setup preserves the saved generic inpaint topology. + await window.__MODIFF_E2E__!.applyLegacyTemplateForTest('qwen_inpaint_mask_draft', { referenceImages: ['mock-source.png'], maskImage: 'mock-mask.png', quantizationMode: 'bnb_4bit', @@ -18652,7 +19034,8 @@ test('mocked Studio wires generic Qwen outpaint graph with generated canvas and await seedLegacyManagedWorkflow(page, 'outpaint'); await expect(page.getByTestId('studio-panel')).toBeVisible(); await page.evaluate(async () => { - await window.__MODIFF_E2E__!.applyTemplate('qwen_outpaint_draft', { + // Legacy fixture setup preserves the saved outpaint canvas and mask topology. + await window.__MODIFF_E2E__!.applyLegacyTemplateForTest('qwen_outpaint_draft', { referenceImages: ['mock-source.png'], quantizationMode: 'bnb_4bit', dtype: 'bfloat16', @@ -18773,7 +19156,8 @@ test('mocked Studio blocks Qwen outpaint when backend canvas node is missing', a await expect(page.getByTestId('studio-panel')).toBeVisible(); await page.evaluate(async () => { try { - await window.__MODIFF_E2E__!.applyTemplate('qwen_outpaint_draft', { + // Legacy fixture setup preserves the legacy canvas capability guard. + await window.__MODIFF_E2E__!.applyLegacyTemplateForTest('qwen_outpaint_draft', { referenceImages: ['mock-source.png'], quantizationMode: 'bnb_4bit', dtype: 'bfloat16', @@ -18827,7 +19211,8 @@ test('mocked Studio blocks Expert Modular Qwen 4-bit mode when backend quantizat await assertUnifiedWorkspace(page, 'expert'); await page.evaluate(async () => { try { - await window.__MODIFF_E2E__!.applyTemplate('qwen_control_image_layout', { + // Legacy fixture setup preserves the Expert auxiliary quantization guard. + await window.__MODIFF_E2E__!.applyLegacyTemplateForTest('qwen_control_image_layout', { resourceMode: 'expert', quantizationMode: 'bnb_4bit', dtype: 'bfloat16', @@ -19037,7 +19422,8 @@ test('mocked dynamic node definitions update node and field metadata without val await page.evaluate(() => window.__MODIFF_E2E__!.setWebsocketConnection({ sid: 'mock-sid', isConnected: true })); await seedLegacyManagedWorkflow(page, 'text_to_image'); await page.evaluate(async () => { - await window.__MODIFF_E2E__!.applyTemplate('qwen_low_vram_product_concept', { + // Legacy fixture setup preserves the managed Generate metadata contract. + await window.__MODIFF_E2E__!.applyLegacyTemplateForTest('qwen_low_vram_product_concept', { resourceMode: 'auto', device: 'cuda:0', }); @@ -20106,12 +20492,13 @@ test('generic text and model-source actions debounce queries and send the latest ) .toBe(true); - const initialRepositoryRequestCount = requests.filter((request) => request.fieldKey === 'repository').length; // Test debounce time, not host scheduling latency under a concurrent GPU - // workload. A nominal 150ms wall-clock wait may resume after the debounce. + // workload. Install before the pause target so host delay cannot make it past; + // take the baseline after initial timers have settled during that setup jump. const frozenTime = new Date(); - await page.clock.install({ time: frozenTime }); + await page.clock.install({ time: new Date(frozenTime.getTime() - 60_000) }); await page.clock.pauseAt(frozenTime); + const initialRepositoryRequestCount = requests.filter((request) => request.fieldKey === 'repository').length; await repositoryInput.fill(selectedRepository); await page.clock.runFor(150); expect(requests.filter((request) => request.fieldKey === 'repository')).toHaveLength(initialRepositoryRequestCount); @@ -22090,7 +22477,8 @@ test('managed Auto keeps the exact interactive graph and only contains advanced await page.waitForFunction(() => Boolean(window.__MODIFF_E2E__), null, { timeout: 30_000 }); await page.evaluate(() => window.__MODIFF_E2E__!.setWebsocketConnection({ sid: 'mock-sid', isConnected: true })); await page.evaluate(async () => { - await window.__MODIFF_E2E__!.applyTemplate('z_image_quick_concept'); + // Legacy fixture setup preserves managed Auto controls and graph roles. + await window.__MODIFF_E2E__!.applyLegacyTemplateForTest('z_image_quick_concept'); window.__MODIFF_E2E__!.openWorkspacePanelForTest('studio'); }); @@ -22335,7 +22723,8 @@ async function sharedSavedBlockLifecycle(page: Page, workspace: 'auto' | 'expert await page.goto(FRONTEND_URL, { waitUntil: 'domcontentloaded' }); await page.waitForFunction(() => Boolean(window.__MODIFF_E2E__), null, { timeout: 30_000 }); await page.evaluate(async () => { - await window.__MODIFF_E2E__!.applyTemplate('z_image_quick_concept'); + // Legacy fixture setup exercises saved V1 Generate/Preview block lifecycle. + await window.__MODIFF_E2E__!.applyLegacyTemplateForTest('z_image_quick_concept'); }); await assertUnifiedWorkspace(page, workspace); const initialNodeCount = await page.evaluate(() => window.__MODIFF_E2E__!.getState().flow.nodes.length); @@ -22629,7 +23018,8 @@ test('existing canvas nodes drag into User Nodes and the three persistence choic }); await page.goto(FRONTEND_URL, { waitUntil: 'domcontentloaded' }); await page.waitForFunction(() => Boolean(window.__MODIFF_E2E__), null, { timeout: 30_000 }); - await page.evaluate(async () => window.__MODIFF_E2E__!.applyTemplate('z_image_quick_concept')); + // Legacy fixture setup exercises adoption of saved V1 Generate/Preview nodes. + await page.evaluate(async () => window.__MODIFF_E2E__!.applyLegacyTemplateForTest('z_image_quick_concept')); expect(await page.evaluate(() => window.__MODIFF_E2E__!.selectNodesByAction(['Generate', 'Preview']))).toBe(2); await installLegacySelectedBlock(page, 'Editable render'); @@ -22813,7 +23203,8 @@ async function sharedCollapsedBlockControls(page: Page, workspace: 'auto' | 'exp await page.goto(FRONTEND_URL, { waitUntil: 'domcontentloaded' }); await page.waitForFunction(() => Boolean(window.__MODIFF_E2E__), null, { timeout: 30_000 }); await page.evaluate(async () => { - await window.__MODIFF_E2E__!.applyTemplate('z_image_quick_concept'); + // Legacy fixture setup preserves collapsed V1 outputs and editable disclosures. + await window.__MODIFF_E2E__!.applyLegacyTemplateForTest('z_image_quick_concept'); }); await assertUnifiedWorkspace(page, workspace); const selectedCount = await page.evaluate(() => { @@ -25780,9 +26171,9 @@ async function openDeveloperWorkflows(page: Page) { } for (const [task, , count, output] of [ - ['text_to_image', 'QwenImageModularPipeline', 5, 'modules.Image'], - ['image_to_image', 'FluxModularPipeline', 6, 'modules.Image'], - ['edit_image', 'FluxKontextModularPipeline', 6, 'modules.Image'], + ['text_to_image', 'QwenImageModularPipeline', 6, 'modules.Image'], + ['image_to_image', 'FluxModularPipeline', 7, 'modules.Image'], + ['edit_image', 'FluxKontextModularPipeline', 7, 'modules.Image'], ['text_to_audio', 'StableAudioPipeline', 3, 'modules.Audio'], ['image_upscale', 'SpandrelImageUpscaleV1', 3, 'modules.Image'], ] as const) { @@ -25887,6 +26278,125 @@ test('one editor starts in Workflows and offers Templates explicitly', async ({ await expect(page.getByTestId('template-browser-create-card-z_image_quick_concept')).toBeVisible(); }); +test('Gallery creation survives CPU runtime discovery while capabilities are pending', async ({ page }) => { + mockInstalledRepos.clear(); + mockInstalledRepos.add('Tongyi-MAI/Z-Image-Turbo'); + await ensureFrontend(); + await installMockRoutes(page); + const fixture = await imageTemplateSchemas(); + await page.route('**/nodes**', (route) => + route.fulfill({ status: 200, json: { instance: 'mock', nodes: { ...mockRegistry, ...fixture.registry } } }), + ); + await page.goto(FRONTEND_URL, { waitUntil: 'domcontentloaded' }); + await openTemplateBrowser(page); + let releaseCapabilities!: () => void; + let releaseRuntime!: () => void; + const capabilitiesPending = new Promise((resolve) => { + releaseCapabilities = resolve; + }); + const runtimePending = new Promise((resolve) => { + releaseRuntime = resolve; + }); + const starterRequests: unknown[] = []; + const forbiddenMutations: string[] = []; + page.on('request', (request) => { + if (new URL(request.url()).pathname === '/operations/starter') starterRequests.push(request.postDataJSON()); + if (request.method() === 'POST' && /\/(graph|execute|install|download)(?:[/?]|$)/u.test(request.url())) + forbiddenMutations.push(request.url()); + }); + await page.route('**/model_capabilities**', async (route) => { + await capabilitiesPending; + await route.fulfill({ status: 200, json: fixture.publicPayload }); + }); + await page.route('**/runtime/status**', async (route) => { + await runtimePending; + await route.fulfill({ + status: 200, + json: { + ready: true, + packages: { torch: { available: true, cuda_available: false, cuda_device_count: 0, cuda_devices: [] } }, + }, + }); + }); + try { + // Refresh the actual discovery requests as network-fixture setup only. + // Creation itself uses the visible Gallery action, never a graph builder. + await page.evaluate(async () => { + const { useNodesStore } = await import('/src/stores/useNodeStore.ts'); + void useNodesStore.getState().fetchStudioModelCapabilities(); + void useNodesStore.getState().fetchRuntimeStatus(); + }); + const modal = page.getByTestId('template-browser-dialog'); + await modal.getByTestId('template-browser-create-card-z_image_quick_concept').click(); + await page.waitForFunction( + () => window.__MODIFF_E2E__?.getState().studio.canvasTransition?.type === 'template_graph_building', + ); + const beforeRuntime = await page.evaluate(async () => { + const { useStudioStore } = await import('/src/stores/useStudioStore.ts'); + const state = useStudioStore.getState(); + return { device: state.form.device, offloadMode: state.form.offloadMode, formEpoch: state.workflowFormEpoch }; + }); + releaseRuntime(); + await page.waitForFunction(async () => { + const { useNodesStore } = await import('/src/stores/useNodeStore.ts'); + return useNodesStore.getState().runtimeStatus?.packages?.torch?.cuda_available === false; + }); + await page.evaluate( + () => new Promise((resolve) => requestAnimationFrame(() => requestAnimationFrame(() => resolve()))), + ); + await test.info().attach('cpu-runtime-mid-template-transaction', { + body: JSON.stringify( + { + beforeRuntime, + afterRuntime: await page.evaluate(async () => { + const { useStudioStore } = await import('/src/stores/useStudioStore.ts'); + const state = useStudioStore.getState(); + return { + device: state.form.device, + offloadMode: state.form.offloadMode, + formEpoch: state.workflowFormEpoch, + transition: state.canvasTransition, + }; + }), + }, + null, + 2, + ), + contentType: 'application/json', + }); + releaseCapabilities(); + await expect(modal).toHaveCount(0); + await expect.poll(() => starterRequests.length).toBe(1); + await expect( + page.locator('.react-flow__node').filter({ has: page.getByText('Encode Inputs', { exact: true }) }), + ).toHaveCount(1); + await expect( + page.locator('.react-flow__node').filter({ has: page.getByText('Guidance', { exact: true }) }), + ).toHaveCount(1); + const result = await page.evaluate(() => { + const hooks = window.__MODIFF_E2E__!; + hooks.setWebsocketConnection({ sid: 'cpu-template-creation', isConnected: true }); + const graph = hooks.exportAuthorizedApiGraph(); + return { + studio: hooks.getState().studio, + owner: Object.values(graph.nodes).find((node) => node.action === 'ModelsLoader'), + }; + }); + expect(result.studio.activeTemplateId).toBe('z_image_quick_concept'); + expect(result.studio.form.seed).toBe(4201); + expect(result.studio.form.prompt.trim().length).toBeGreaterThan(0); + expect(result.studio.form.device).toBe('cpu:0'); + expect(result.studio.form.offloadMode).toBe('none'); + expect(result.owner?.params.device.value).toBe(result.studio.form.device); + expect(result.owner?.params.offload_mode.value).toBe('none'); + expect(result.studio.canvasTransition).toBeNull(); + expect(forbiddenMutations).toEqual([]); + } finally { + releaseCapabilities(); + releaseRuntime(); + } +}); + test('Templates opens an editable workflow in the unified editor', async ({ page }) => { mockInstalledRepos.clear(); mockInstalledRepos.add('Tongyi-MAI/Z-Image-Turbo'); @@ -25903,6 +26413,23 @@ test('Templates opens an editable workflow in the unified editor', async ({ page const read = () => page.evaluate(() => window.__MODIFF_E2E__!.exportWorkflowGraph()); await expect.poll(() => page.evaluate(() => window.__MODIFF_E2E__!.getState().studio.canvasTransition)).toBeNull(); const graph = await read(); + const apiGraph = await page.evaluate(() => { + window.__MODIFF_E2E__!.setWebsocketConnection({ sid: 'template-guidance-test', isConnected: true }); + return window.__MODIFF_E2E__!.exportAuthorizedApiGraph(); + }); + const guiders = Object.entries(apiGraph.nodes).filter(([, node]) => node.action === 'Guider'); + expect(guiders).toHaveLength(1); + const [guiderId, guider] = guiders[0]; + expect(guider.params.guider.value).toBe('ClassifierFreeGuidance'); + expect(guider.params.guidance_scale.value).toBe(1); + expect(guider.params.enabled.value).toBe(true); + expect(guider.params.use_original_formulation.value).toBe(true); + expect( + Object.values(apiGraph.nodes) + .filter((node) => node.params.guider?.sourceId === guiderId && node.params.guider.sourceKey === 'guider_out') + .map((node) => node.action) + .sort(), + ).toEqual(['Denoise', 'EncodePrompt']); await assertUnifiedWorkspace(page, 'expert'); await expect(page.getByRole('dialog')).toHaveCount(0); expect(await read()).toEqual(graph); @@ -25910,6 +26437,130 @@ test('Templates opens an editable workflow in the unified editor', async ({ page expect(await read()).toEqual(graph); }); +test('Schnell template keeps its full creator token limit through ordinary authoring and reload', async ({ page }) => { + await ensureFrontend(); + await installMockRoutes(page); + const fixture = await imageTemplateSchemas(); + await page.route('**/model_capabilities**', (route) => route.fulfill({ status: 200, json: fixture.publicPayload })); + await page.route('**/nodes**', (route) => + route.fulfill({ status: 200, json: { instance: 'mock', nodes: { ...mockRegistry, ...fixture.registry } } }), + ); + await page.goto(FRONTEND_URL, { waitUntil: 'domcontentloaded' }); + await openTemplateBrowser(page); + const modal = page.getByTestId('template-browser-dialog'); + await modal.getByTestId('template-browser-category-all').click(); + await modal.getByTestId('template-browser-use-flux_schnell_text_to_image').click(); + await modal.getByTestId('template-browser-create-flux_schnell_text_to_image').click(); + await expect(modal).toHaveCount(0); + const read = () => + page.evaluate(() => { + const hooks = window.__MODIFF_E2E__!; + hooks.setWebsocketConnection({ sid: 'schnell-token-recipe', isConnected: true }); + const graph = hooks.exportAuthorizedApiGraph(); + const prompt = Object.values(graph.nodes).find((node) => node.action === 'EncodePrompt'); + const denoise = Object.values(graph.nodes).find((node) => node.action === 'Denoise'); + const owner = Object.values(graph.nodes).find((node) => node.action === 'ModelsLoader'); + return { + template: hooks.getState().studio.activeTemplateId, + transition: hooks.getState().studio.canvasTransition, + model: owner?.params.repo_id.value, + tokens: prompt?.params.max_sequence_length.value, + steps: denoise?.params.num_inference_steps.value, + scale: denoise?.params.guidance_scale.value, + seed: denoise?.params.seed.value, + }; + }); + const expected = { + template: 'flux_schnell_text_to_image', + transition: null, + model: { source: 'hub', value: 'black-forest-labs/FLUX.1-schnell' }, + tokens: 512, + steps: 4, + scale: 0, + seed: 8427, + }; + await expect.poll(read, { timeout: 30_000 }).toEqual(expected); + await page.reload({ waitUntil: 'domcontentloaded' }); + await page.waitForFunction(() => Boolean(window.__MODIFF_E2E__?.getState().studio.workflowCanvasHydrated)); + await expect.poll(read).toEqual(expected); +}); + +for (const [templateId, search, scale, negativePrompt] of [ + ['z_image_lora_style', 'Coastal Rescue Documentary', 0.8, ''], + [ + 'fast_lora', + 'Product Hero', + 0.65, + 'contact sheet, multiple helmets, duplicate product, cropped helmet, changing shell proportions, extra visor, extra vents, invented controls, text, logo, label, overprocessed texture, clutter, low detail, broken visor, floating product, noisy adapter artifacts', + ], +] as const) + test(`${templateId} Gallery creation and reload preserve the original default LoRA identity`, async ({ page }) => { + mockInstalledRepos.clear(); + mockInstalledRepos.add('Tongyi-MAI/Z-Image-Turbo'); + mockInstalledRepos.add('youknownothing/v1-realism-v1-adapter-ZIT-lora'); + await ensureFrontend(); + await installMockRoutes(page); + const fixture = await imageTemplateSchemas(); + await page.route('**/model_capabilities**', (route) => route.fulfill({ status: 200, json: fixture.publicPayload })); + await page.route('**/nodes**', (route) => + route.fulfill({ status: 200, json: { instance: 'mock', nodes: { ...mockRegistry, ...fixture.registry } } }), + ); + await page.goto(FRONTEND_URL, { waitUntil: 'domcontentloaded' }); + await openTemplateBrowser(page); + const modal = page.getByTestId('template-browser-dialog'); + await modal.getByTestId('template-browser-category-all').click(); + await modal.getByTestId('template-browser-search').fill(search); + await modal.getByTestId(`template-browser-use-${templateId}`).click(); + await modal.getByTestId(`template-browser-create-${templateId}`).click(); + await expect(modal).toHaveCount(0); + await expect.poll(() => page.evaluate(() => window.__MODIFF_E2E__!.getState().studio.canvasTransition)).toBeNull(); + const read = () => + page.evaluate(() => { + const hooks = window.__MODIFF_E2E__!; + hooks.setWebsocketConnection({ sid: 'z-default-adapter-browser-proof', isConnected: true }); + return hooks.exportAuthorizedApiGraph() as ApiGraphExport; + }); + const graph = await read(); + const nodes = Object.entries(graph.nodes); + const one = (action: string) => { + const matches = nodes.filter(([, node]) => node.module === 'modules.ModularDiffusers' && node.action === action); + expect(matches).toHaveLength(1); + return matches[0]; + }; + const [adapterId, adapter] = one('Lora'); + const [ownerId, owner] = one('ModelsLoader'); + const [guideId, guide] = one('Guider'); + const [encoderId, encoder] = one('EncodePrompt'); + const [, denoise] = one('Denoise'); + expect(adapter.params.adapter_name.value).toBe('default'); + expect(adapter.params.scale.value).toBe(scale); + expect(adapter.params.model.value).toEqual({ + source: 'hub', + value: 'youknownothing/v1-realism-v1-adapter-ZIT-lora', + }); + expect(adapter.params.revision.value).toBe('fd6d52d1199ad47f73c18db58339ad01ef766fa7'); + expect(adapter.params.expected_sha256.value).toBe( + '1fe0487cfe69b31f6d93ec1a1a6e49f75e9ff77adc8d845380ba7352a3931190', + ); + expect(adapter.params.weight_name.value).toBe('v1-realism.safetensors'); + expect(owner.params.lora_list).toMatchObject({ sourceId: adapterId, sourceKey: 'lora' }); + expect(guide.params.guider.value).toBe('ClassifierFreeGuidance'); + expect(guide.params.enabled.value).toBe(true); + expect(guide.params.use_original_formulation.value).toBe(true); + expect(guide.params.guidance_scale.value).toBe(1); + for (const node of [encoder, denoise]) + expect(node.params.guider).toMatchObject({ sourceId: guideId, sourceKey: 'guider_out' }); + expect(encoder.params.text_encoders).toMatchObject({ sourceId: ownerId, sourceKey: 'text_encoders' }); + expect(encoder.params.negative_prompt.value).toBe(negativePrompt); + expect(denoise.params.unet).toMatchObject({ sourceId: ownerId, sourceKey: 'unet_out' }); + expect(denoise.params.embeddings).toMatchObject({ sourceId: encoderId, sourceKey: 'embeddings' }); + expect(await page.evaluate(() => window.__MODIFF_E2E__!.getState().studio.graphBinding)).toBeNull(); + await page.reload({ waitUntil: 'domcontentloaded' }); + await page.waitForFunction(() => Boolean(window.__MODIFF_E2E__?.getState().studio.workflowCanvasHydrated)); + await expect.poll(async () => (await read()).nodes).toEqual(graph.nodes); + expect(await page.evaluate(() => window.__MODIFF_E2E__!.getState().studio.graphBinding)).toBeNull(); + }); + test('Developer Workflows abandons pending creation when switching documents', async ({ page }) => { await openDeveloperWorkflows(page); const modal = page.getByTestId('task-launcher'); @@ -25934,7 +26585,7 @@ test('Developer Workflows abandons pending creation when switching documents', a await page.getByRole('button', { name: 'New workflow tab', exact: true }).click(); await modal.getByTestId('workflow-task-edit_image').click(); await expect(modal).toHaveCount(0); - await expect.poll(() => page.evaluate(() => window.__MODIFF_E2E__!.getState().flow.nodes.length)).toBe(6); + await expect.poll(() => page.evaluate(() => window.__MODIFF_E2E__!.getState().flow.nodes.length)).toBe(7); const readGraph = () => page.evaluate(() => { const graph = window.__MODIFF_E2E__!.exportWorkflowGraph(); @@ -25958,15 +26609,17 @@ test('Developer Workflows abandons pending creation when switching documents', a await expect(page.getByLabel('Search workflows')).toBeVisible(); }); -test('Template reload retries automatic planning when late hydration changes document ownership', async ({ page }) => { +test('legacy template reload retries automatic planning when late hydration changes document ownership', async ({ + page, +}) => { mockInstalledRepos.clear(); mockInstalledRepos.add('Tongyi-MAI/Z-Image-Turbo'); mockIncludeQuantizationNode = true; await ensureFrontend(); await installMockRoutes(page); await page.goto(FRONTEND_URL, { waitUntil: 'domcontentloaded' }); - await openTemplateBrowser(page); - await page.getByTestId('template-browser-create-card-z_image_quick_concept').click(); + await dismissTaskLauncher(page); + await page.evaluate(async () => window.__MODIFF_E2E__!.applyLegacyTemplateForTest('z_image_quick_concept')); await expect.poll(() => page.evaluate(() => window.__MODIFF_E2E__!.getState().studio.canvasTransition)).toBeNull(); await page.getByTestId('topbar-save-workflow').click(); let release!: () => void; @@ -28169,6 +28822,13 @@ test('saved workflow browsing bounds mounted rows and searches the full library' test('successful node status is not presented as a warning after recovery', async ({ page }) => { await ensureFrontend(); await installMockRoutes(page); + // A dead mock websocket retries with a new sid and correctly revalidates the + // graph, clearing synthetic statuses. Keep this presentation fixture connected. + await page.routeWebSocket('**/ws**', (socket) => { + socket.send( + JSON.stringify({ type: 'welcome', sid: new URL(socket.url()).searchParams.get('sid'), instance: 'mock' }), + ); + }); await page.route('**/nodes**', (route) => route.fulfill({ json: { @@ -28213,6 +28873,19 @@ test('successful node status is not presented as a warning after recovery', asyn const node = page.locator('.react-flow__node[data-id="recovered-node"]'); await expect(node).toBeVisible(); await waitForOperationGraphToSettle(page); + await page.waitForFunction(async () => { + const [{ useWebsocketStore }, { useNodesStore }, { useStudioStore }] = await Promise.all([ + import('/src/stores/useWebsocketStore.ts'), + import('/src/stores/useNodeStore.ts'), + import('/src/stores/useStudioStore.ts'), + ]); + return ( + useWebsocketStore.getState().isConnected && + Boolean(useWebsocketStore.getState().sid) && + useStudioStore.getState().workflowCanvasHydrated && + Object.values(useNodesStore.getState().discoveryRequests).every((request) => request.status === 'success') + ); + }); // Publish the simulated runtime result after initial graph validation, just // as a real completion arrives after the node has mounted. await page.evaluate(async () => { @@ -28443,7 +29116,7 @@ test('task sidebar preserves the current document and explicit Save promotes its await expect .poll(() => page.evaluate(() => window.__MODIFF_E2E__!.getState().studio.activeWorkflowTabId)) .not.toBe(first); - await expect.poll(() => page.evaluate(() => window.__MODIFF_E2E__!.getState().flow.nodes.length)).toBe(6); + await expect.poll(() => page.evaluate(() => window.__MODIFF_E2E__!.getState().flow.nodes.length)).toBe(7); await page.getByTestId(`workflow-tab-${first}`).click(); expect(await page.evaluate(() => window.__MODIFF_E2E__!.getState().flow.nodes.map((n) => n.id))).toEqual(original); await page.screenshot({ path: test.info().outputPath('shared-task-sidebar.png'), animations: 'disabled' }); @@ -28609,3 +29282,83 @@ test('scalar input editors preserve fallback values when a socket is connected a await expect(prompt).toBeEnabled(); await expect(prompt).toHaveValue('Saved fallback prompt'); }); + +test('standalone startup awaits owned metadata and fresh workflow reload retains remote hydration', async ({ + page, +}) => { + await ensureFrontend(); + await installMockRoutes(page); + let queueRequests = 0; + const documents: Array<{ id: string; method: string }> = []; + const missingDocuments: string[] = []; + page.on('request', (request) => { + const match = /\/workflows\/([^/?]+)$/.exec(new URL(request.url()).pathname); + if (match) documents.push({ id: decodeURIComponent(match[1]!), method: request.method() }); + }); + page.on('response', (response) => { + if (/\/workflows\/[^/?]+$/.test(new URL(response.url()).pathname) && response.status() === 404) + missingDocuments.push(response.url()); + }); + await page.route('**/queue', (route) => { + queueRequests++; + return route.fulfill({ json: { current: null, queued: {}, recent: [] } }); + }); + await page.route('**/nodes', async (route) => { + await new Promise((resolve) => setTimeout(resolve, 120)); + await route.fallback(); + }); + await page.route('**/runtime/status**', async (route) => { + await new Promise((resolve) => setTimeout(resolve, 220)); + await route.fulfill({ + json: { + ready: true, + workerControl: { available: false, address: null }, + packages: { torch: { available: true, cuda_available: false, cuda_device_count: 0, cuda_devices: [] } }, + }, + }); + }); + await page.goto(FRONTEND_URL, { waitUntil: 'domcontentloaded' }); + await expect(page.getByTestId('task-launcher')).toBeVisible(); + const id = await page.evaluate(() => window.__MODIFF_E2E__!.getState().studio.activeWorkflowTabId!); + await expect.poll(() => documents.filter((x) => x.id === id).length).toBeGreaterThan(0); + expect(documents.filter((x) => x.id === id)[0]!.method).toBe('PUT'); + expect(missingDocuments).toEqual([]); + expect(queueRequests).toBe(0); + const before = documents.length; + await page.reload({ waitUntil: 'domcontentloaded' }); + await expect(page.getByTestId('task-launcher')).toBeVisible(); + await expect.poll(() => documents.slice(before).filter((x) => x.id === id).length).toBeGreaterThan(0); + expect(documents.slice(before).find((x) => x.id === id)!.method).toBe('GET'); + expect(missingDocuments).toEqual([]); + expect(queueRequests).toBe(0); +}); + +test('startup metadata wait preserves supervised active-run restoration at the advertised control address', async ({ + page, +}) => { + await ensureFrontend(); + await installMockRoutes(page); + const addresses: string[] = []; + await page.route('**/queue', (route) => { + addresses.push(route.request().url()); + return route.fulfill({ + json: { + current: { task_id: 'metadata-startup-run', status: 'running', name: 'Native worker is busy' }, + queued: {}, + recent: [], + }, + }); + }); + await page.route('**/runtime/status**', async (route) => { + await new Promise((resolve) => setTimeout(resolve, 220)); + await route.fulfill({ + json: { ready: true, workerControl: { available: true, address: 'http://127.0.0.1:65532' } }, + }); + }); + await page.goto(FRONTEND_URL, { waitUntil: 'domcontentloaded' }); + await page.waitForFunction( + () => window.__MODIFF_E2E__?.getState().tasks.currentTask?.task_id === 'metadata-startup-run', + ); + expect(addresses.length).toBeGreaterThan(0); + expect(addresses.every((url) => url === 'http://127.0.0.1:65532/queue')).toBe(true); +}); diff --git a/tests/fixtures/image-template-creator-contracts.v1.json b/tests/fixtures/image-template-creator-contracts.v1.json new file mode 100644 index 00000000..a5ecf4b8 --- /dev/null +++ b/tests/fixtures/image-template-creator-contracts.v1.json @@ -0,0 +1,4365 @@ +{ + "schemaVersion": 1, + "templates": [ + { + "templateId": "z_image_quick_concept", + "contract": { + "lockedSettings": { + "mode": "text_to_image", + "modelType": "ZImageModularPipeline", + "prompt": "Create a realistic documentary product photograph of one unbranded compact rescue-equipment case used inside a mountain storm lookout. The compact tabletop case has a rigid wet-graphite rectangular shell with softly rounded corners, two small black mechanical latches, one flat burnt-orange silicone pull tab, a continuous dark gasket seam, four tiny rubber feet and no other parts. It is a closed passive case: no lamp, lens, display, dial, antenna, speaker, button, glow or electronic component. Use a natural eye-level 50 mm three-quarter view with the complete case on a scratched timber table, sharp latch and gasket detail, correct feet and contact shadow, and a rain-streaked window with blue-gray mountain weather softly out of focus behind it. Light the scene only with cool overcast window light and weak warm room bounce. Preserve dark graphite material detail, realistic rain beads, restrained highlights and fine film grain, with no cross symbol, branding, lettering, labels, typography or cinematic fantasy glow.", + "negativePrompt": "", + "width": 1024, + "height": 1024, + "seed": 4201, + "randomSeed": false, + "steps": 8, + "guidanceScale": 1, + "resourceMode": "auto", + "dtype": "bfloat16", + "quantizationMode": "none", + "autoOffload": true, + "offloadMode": "model_cpu", + "strength": 0.8, + "layers": 4, + "outpaintLeft": 256, + "outpaintRight": 256, + "outpaintTop": 0, + "outpaintBottom": 0, + "outpaintOverlap": 24, + "outpaintFeather": 8, + "outpaintFillColor": "black", + "sourceVideo": "", + "maskVideo": "", + "controlVideo": "", + "sourceAudio": "", + "referenceAudio": "", + "lyrics": "", + "audioDuration": 30, + "extensionDuration": 15, + "vocalLanguage": "en", + "repaintingStart": 0, + "repaintingEnd": 10, + "audioCoverStrength": 0.5, + "shift": 3, + "bpm": 0, + "keyscale": "C", + "timesignature": "4/4", + "numFrames": 81, + "fps": 16, + "conditioningScale": 1, + "guidanceScale2": 0, + "outputType": "pil", + "maxSequenceLength": 512, + "attentionKwargsJson": "" + }, + "inputBindings": [], + "workflowBlocks": [], + "workflowBlockSettings": {} + }, + "originalComponentPolicy": { + "attentionBackend": "_native_math", + "vaeSlicing": true, + "vaeTiling": true + } + }, + { + "templateId": "z_image_product_mockup", + "contract": { + "lockedSettings": { + "mode": "text_to_image", + "modelType": "ZImageModularPipeline", + "prompt": "Campaign objective: create a premium tabletop launch photograph for LumaPod Brew, a pocket espresso-capsule warmer designed for boutique travel kits. Show one palm-sized appliance with a matte ivory ceramic shell, brushed-brass heating ring, charcoal silicone base, precise lid seam, one recessed indicator, and no invented controls. Compose a front three-quarter view at counter height with an 85 mm product lens; place the warmer slightly right of center and arrange exactly three capsules as a restrained diagonal foreground rhythm. Use a dark honed-slate cafe counter, soft overcast morning window key from camera left, white-card fill, a narrow warm rim on the brass, controlled reflections, crisp microtexture, realistic contact shadows, shallow background bokeh, and generous editorial negative space.", + "negativePrompt": "", + "width": 1024, + "height": 1024, + "seed": 4202, + "randomSeed": false, + "steps": 8, + "guidanceScale": 1, + "resourceMode": "auto", + "dtype": "bfloat16", + "quantizationMode": "none", + "autoOffload": true, + "offloadMode": "model_cpu", + "strength": 0.8, + "layers": 4, + "outpaintLeft": 256, + "outpaintRight": 256, + "outpaintTop": 0, + "outpaintBottom": 0, + "outpaintOverlap": 24, + "outpaintFeather": 8, + "outpaintFillColor": "black", + "sourceVideo": "", + "maskVideo": "", + "controlVideo": "", + "sourceAudio": "", + "referenceAudio": "", + "lyrics": "", + "audioDuration": 30, + "extensionDuration": 15, + "vocalLanguage": "en", + "repaintingStart": 0, + "repaintingEnd": 10, + "audioCoverStrength": 0.5, + "shift": 3, + "bpm": 0, + "keyscale": "C", + "timesignature": "4/4", + "numFrames": 81, + "fps": 16, + "conditioningScale": 1, + "guidanceScale2": 0, + "outputType": "pil", + "maxSequenceLength": 512, + "attentionKwargsJson": "" + }, + "inputBindings": [], + "workflowBlocks": [], + "workflowBlockSettings": {} + }, + "originalComponentPolicy": { + "attentionBackend": "_native_math", + "vaeSlicing": true, + "vaeTiling": true + } + }, + { + "templateId": "z_image_poster", + "contract": { + "lockedSettings": { + "mode": "text_to_image", + "modelType": "ZImageModularPipeline", + "prompt": "Create a finished vertical photographic poster for a heritage seed library. Set the exact title \u201cHERITAGE SEED LIBRARY\u201d in large, clean, dark-sage sans-serif type across the upper field; render those three words exactly once and include no other text, numbers, logos or typographic marks. On a worn oak potting table, arrange one open archival seed box containing small unprinted kraft envelopes, dried bean pods, a brass hand trowel, loose dark soil, and a few living nasturtium leaves. Every object rests naturally under gravity; nothing floats or glows. Frame the still life in the lower half with a natural 50 mm editorial camera and leave the upper forty percent as a softly textured limewashed wall for later typography. Use asymmetrical but balanced spacing, clean print margins, and one clear hierarchy. Use soft north-window daylight, gentle warm bounce from the timber, realistic paper fibers, soil granules, oxidized brass and leaf translucency. Keep an earthy umber, sage and faded-cream palette with restrained film grain and no neon color or synthetic light.", + "negativePrompt": "", + "width": 768, + "height": 1344, + "seed": 4203, + "randomSeed": false, + "steps": 8, + "guidanceScale": 1, + "resourceMode": "auto", + "dtype": "bfloat16", + "quantizationMode": "none", + "autoOffload": true, + "offloadMode": "model_cpu", + "strength": 0.8, + "layers": 4, + "outpaintLeft": 256, + "outpaintRight": 256, + "outpaintTop": 0, + "outpaintBottom": 0, + "outpaintOverlap": 24, + "outpaintFeather": 8, + "outpaintFillColor": "black", + "sourceVideo": "", + "maskVideo": "", + "controlVideo": "", + "sourceAudio": "", + "referenceAudio": "", + "lyrics": "", + "audioDuration": 30, + "extensionDuration": 15, + "vocalLanguage": "en", + "repaintingStart": 0, + "repaintingEnd": 10, + "audioCoverStrength": 0.5, + "shift": 3, + "bpm": 0, + "keyscale": "C", + "timesignature": "4/4", + "numFrames": 81, + "fps": 16, + "conditioningScale": 1, + "guidanceScale2": 0, + "outputType": "pil", + "maxSequenceLength": 512, + "attentionKwargsJson": "" + }, + "inputBindings": [], + "workflowBlocks": [], + "workflowBlockSettings": {} + }, + "originalComponentPolicy": { + "attentionBackend": "_native_math", + "vaeSlicing": true, + "vaeTiling": true + } + }, + { + "templateId": "z_image_lora_style", + "contract": { + "lockedSettings": { + "mode": "text_to_image", + "modelType": "ZImageModularPipeline", + "prompt": "Create a four-panel photoreal documentary style study of the same coastal rescue engineer at a working lifeboat station, using the selected realism LoRA consistently. Identity lock: the same weathered woman in her early forties, short dark curls, small scar above the left eyebrow, navy waterproof jacket with one orange shoulder yoke, gray knit layer and no logo in every panel. Panel plan: waist-up portrait beside the open boathouse door; wide view checking a real orange rescue boat; close hands fastening a steel radio clip; three-quarter portrait in wind-driven spray. Use genuinely different camera distances while preserving face, clothing and station identity. Natural overcast daylight, wet fabric, believable skin pores, salt-stained steel, documentary 35 mm grain and grounded real-location backgrounds. This must look photographed, never like a toy, mascot, illustration, animation or glossy 3D render.", + "negativePrompt": "", + "width": 1024, + "height": 1024, + "seed": 4210, + "randomSeed": false, + "steps": 8, + "guidanceScale": 1, + "resourceMode": "auto", + "dtype": "bfloat16", + "quantizationMode": "none", + "autoOffload": true, + "offloadMode": "model_cpu", + "strength": 0.8, + "layers": 4, + "outpaintLeft": 256, + "outpaintRight": 256, + "outpaintTop": 0, + "outpaintBottom": 0, + "outpaintOverlap": 24, + "outpaintFeather": 8, + "outpaintFillColor": "black", + "sourceVideo": "", + "maskVideo": "", + "controlVideo": "", + "sourceAudio": "", + "referenceAudio": "", + "lyrics": "", + "audioDuration": 30, + "extensionDuration": 15, + "vocalLanguage": "en", + "repaintingStart": 0, + "repaintingEnd": 10, + "audioCoverStrength": 0.5, + "shift": 3, + "bpm": 0, + "keyscale": "C", + "timesignature": "4/4", + "numFrames": 81, + "fps": 16, + "conditioningScale": 1, + "guidanceScale2": 0, + "outputType": "pil", + "maxSequenceLength": 512, + "attentionKwargsJson": "" + }, + "inputBindings": [], + "workflowBlocks": ["lora"], + "workflowBlockSettings": { + "lora": { + "model": { + "source": "hub", + "value": "youknownothing/v1-realism-v1-adapter-ZIT-lora", + "revision": "fd6d52d1199ad47f73c18db58339ad01ef766fa7", + "sha256": "1fe0487cfe69b31f6d93ec1a1a6e49f75e9ff77adc8d845380ba7352a3931190", + "byteSize": 170128272, + "license": "apache-2.0" + }, + "weightName": "v1-realism.safetensors", + "scale": 0.8 + } + } + }, + "originalComponentPolicy": { + "attentionBackend": "_native_math", + "vaeSlicing": true, + "vaeTiling": true + } + }, + { + "templateId": "qwen_text_rendering", + "contract": { + "lockedSettings": { + "mode": "text_to_image", + "modelType": "QwenImageModularPipeline", + "prompt": "Create a square launch poster for the fictional sparkling tea VERDA 03. Render the exact large headline text \"VERDA 03\" at the top in crisp white geometric sans lettering, with the smaller readable line \"YUZU MINT SPARKLING TEA\" below it. Place a slim emerald can on a frosted glass plinth, condensation beads, softbox reflections, lime peel accent, strict centered layout, premium beverage advertising finish, and high contrast between typography and background.", + "negativePrompt": "misspelled VERDA 03, extra letters, warped typography, unreadable subtitle, deformed can, smeared logo, low contrast, blur", + "width": 1024, + "height": 1024, + "seed": 5101, + "randomSeed": false, + "steps": 50, + "guidanceScale": 4, + "resourceMode": "auto", + "dtype": "bfloat16", + "quantizationMode": "none", + "autoOffload": true, + "offloadMode": "model_cpu", + "strength": 0.8, + "layers": 4, + "outpaintLeft": 256, + "outpaintRight": 256, + "outpaintTop": 0, + "outpaintBottom": 0, + "outpaintOverlap": 24, + "outpaintFeather": 8, + "outpaintFillColor": "black", + "sourceVideo": "", + "maskVideo": "", + "controlVideo": "", + "sourceAudio": "", + "referenceAudio": "", + "lyrics": "", + "audioDuration": 30, + "extensionDuration": 15, + "vocalLanguage": "en", + "repaintingStart": 0, + "repaintingEnd": 10, + "audioCoverStrength": 0.5, + "shift": 3, + "bpm": 0, + "keyscale": "C", + "timesignature": "4/4", + "numFrames": 81, + "fps": 16, + "conditioningScale": 1, + "guidanceScale2": 0, + "outputType": "pil", + "maxSequenceLength": 512, + "attentionKwargsJson": "" + }, + "inputBindings": [], + "workflowBlocks": [], + "workflowBlockSettings": {} + }, + "originalComponentPolicy": { + "attentionBackend": "auto", + "vaeSlicing": true, + "vaeTiling": true + } + }, + { + "templateId": "qwen_poster_logo_text", + "contract": { + "lockedSettings": { + "mode": "text_to_image", + "modelType": "QwenImageModularPipeline", + "prompt": "Design a print-ready portrait poster for the fictional exhibition \"MATERIAL CULTURE\" using a refined photo-led editorial layout, not a synthetic 3D render. Render exactly three text elements and nothing else: the dominant title \"MATERIAL CULTURE\", the subtitle \"DESIGN ARCHIVE\", and the date \"SEP 06\u201421\". All three must be readable, correctly spelled, and aligned to one disciplined grid; do not generate microcopy. Use one documentary macro photograph of layered handmade paper, a bone folder and a single red binding thread as the visual field. Keep real paper fibers, tool wear and natural shadows, with the title integrated into clean warm-white negative space rather than placed over busy texture. Use black type, warm paper whites and one restrained vermilion accent. Maintain generous margins, typographic hierarchy, optical spacing and a credible contemporary museum-print finish.", + "negativePrompt": "wrong title, misspelled MATERIAL CULTURE, misspelled DESIGN ARCHIVE, wrong date, extra text, microcopy, random symbols, chrome ring, glowing orbit, synthetic 3D object, cluttered grid, illegible date, broken kerning, print artifacts", + "width": 768, + "height": 1344, + "seed": 5102, + "randomSeed": false, + "steps": 50, + "guidanceScale": 4, + "resourceMode": "auto", + "dtype": "bfloat16", + "quantizationMode": "none", + "autoOffload": true, + "offloadMode": "model_cpu", + "strength": 0.8, + "layers": 4, + "outpaintLeft": 256, + "outpaintRight": 256, + "outpaintTop": 0, + "outpaintBottom": 0, + "outpaintOverlap": 24, + "outpaintFeather": 8, + "outpaintFillColor": "black", + "sourceVideo": "", + "maskVideo": "", + "controlVideo": "", + "sourceAudio": "", + "referenceAudio": "", + "lyrics": "", + "audioDuration": 30, + "extensionDuration": 15, + "vocalLanguage": "en", + "repaintingStart": 0, + "repaintingEnd": 10, + "audioCoverStrength": 0.5, + "shift": 3, + "bpm": 0, + "keyscale": "C", + "timesignature": "4/4", + "numFrames": 81, + "fps": 16, + "conditioningScale": 1, + "guidanceScale2": 0, + "outputType": "pil", + "maxSequenceLength": 512, + "attentionKwargsJson": "" + }, + "inputBindings": [], + "workflowBlocks": [], + "workflowBlockSettings": {} + }, + "originalComponentPolicy": { + "attentionBackend": "auto", + "vaeSlicing": true, + "vaeTiling": true + } + }, + { + "templateId": "qwen_product_mockup", + "contract": { + "lockedSettings": { + "mode": "text_to_image", + "modelType": "QwenImageModularPipeline", + "prompt": "Campaign objective: generate a high-end studio launch photograph for AsterMist, a fictional lavender sleep spray positioned as quiet, clinical luxury. Product design: one translucent pale-lavender glass bottle with visible wall thickness, clear liquid meniscus, satin-silver atomizer, fine dip tube, and a perfectly rectangular warm-white paper label. Typography: the exact centered brand line must read \"ASTERMIST\" in black uppercase lettering, with the smaller exact line \"LAVENDER SLEEP SPRAY\" directly below; no other visible words or symbols. Composition and camera: eye-level front three-quarter hero view through an 85 mm macro product lens, bottle centered slightly right, label plane nearly parallel to camera, sharp label and atomizer, gentle focus falloff into a pale limestone sweep. Lighting and finish: large diffused key at upper left, white-card fill, narrow lavender rim, controlled vertical softbox reflections, dewy stone reflection, natural contact shadow, subtle condensation, calm silver-lilac-charcoal palette, premium cosmetic retouching without plastic surfaces.", + "negativePrompt": "misspelled ASTERMIST, wrong subtitle, extra letters, duplicate bottles, warped label rectangle, bent atomizer, missing dip tube, plastic-looking glass, opaque liquid, harsh glare, floating product, cluttered props, low-detail reflections", + "width": 1024, + "height": 1024, + "seed": 5103, + "randomSeed": false, + "steps": 50, + "guidanceScale": 4, + "resourceMode": "auto", + "dtype": "bfloat16", + "quantizationMode": "none", + "autoOffload": true, + "offloadMode": "model_cpu", + "strength": 0.8, + "layers": 4, + "outpaintLeft": 256, + "outpaintRight": 256, + "outpaintTop": 0, + "outpaintBottom": 0, + "outpaintOverlap": 24, + "outpaintFeather": 8, + "outpaintFillColor": "black", + "sourceVideo": "", + "maskVideo": "", + "controlVideo": "", + "sourceAudio": "", + "referenceAudio": "", + "lyrics": "", + "audioDuration": 30, + "extensionDuration": 15, + "vocalLanguage": "en", + "repaintingStart": 0, + "repaintingEnd": 10, + "audioCoverStrength": 0.5, + "shift": 3, + "bpm": 0, + "keyscale": "C", + "timesignature": "4/4", + "numFrames": 81, + "fps": 16, + "conditioningScale": 1, + "guidanceScale2": 0, + "outputType": "pil", + "maxSequenceLength": 512, + "attentionKwargsJson": "" + }, + "inputBindings": [], + "workflowBlocks": [], + "workflowBlockSettings": {} + }, + "originalComponentPolicy": { + "attentionBackend": "auto", + "vaeSlicing": true, + "vaeTiling": true + } + }, + { + "templateId": "qwen_low_vram_text_rendering", + "contract": { + "lockedSettings": { + "mode": "text_to_image", + "modelType": "QwenImageModularPipeline", + "prompt": "Create a compact square label study for the fictional stationery brand \"KITE & ANVIL\". Render the exact main text \"KITE & ANVIL\" in clean black serif lettering on a warm white paper tag, with the smaller readable line \"FIELD NOTE NO. 12\" below it. Keep the scene low-VRAM friendly: one paper tag clipped to a single charcoal notebook, soft window light, subtle paper fibers, tidy tabletop shadow, centered composition, and no extra typography beyond the requested words.", + "negativePrompt": "misspelled KITE & ANVIL, wrong ampersand, extra words, unreadable small line, warped tag, duplicate notebooks, clutter, blur", + "width": 1024, + "height": 1024, + "seed": 5111, + "randomSeed": false, + "steps": 50, + "guidanceScale": 4, + "resourceMode": "auto", + "dtype": "bfloat16", + "quantizationMode": "none", + "autoOffload": true, + "offloadMode": "model_cpu", + "strength": 0.8, + "layers": 4, + "outpaintLeft": 256, + "outpaintRight": 256, + "outpaintTop": 0, + "outpaintBottom": 0, + "outpaintOverlap": 24, + "outpaintFeather": 8, + "outpaintFillColor": "black", + "sourceVideo": "", + "maskVideo": "", + "controlVideo": "", + "sourceAudio": "", + "referenceAudio": "", + "lyrics": "", + "audioDuration": 30, + "extensionDuration": 15, + "vocalLanguage": "en", + "repaintingStart": 0, + "repaintingEnd": 10, + "audioCoverStrength": 0.5, + "shift": 3, + "bpm": 0, + "keyscale": "C", + "timesignature": "4/4", + "numFrames": 81, + "fps": 16, + "conditioningScale": 1, + "guidanceScale2": 0, + "outputType": "pil", + "maxSequenceLength": 512, + "attentionKwargsJson": "" + }, + "inputBindings": [], + "workflowBlocks": [], + "workflowBlockSettings": {} + }, + "originalComponentPolicy": { + "attentionBackend": "auto", + "vaeSlicing": true, + "vaeTiling": true + } + }, + { + "templateId": "qwen_low_vram_product_concept", + "contract": { + "lockedSettings": { + "mode": "text_to_image", + "modelType": "QwenImageModularPipeline", + "prompt": "Campaign objective: create a premium industrial-design hero image for \"MICA DROP\", a compact portable desk humidifier for calm home offices. Product design: one squat matte-sage cylinder with a softly chamfered top, narrow annular mist outlet, translucent smoked-glass water window showing a believable waterline, and one flush circular brass power button no larger than eight millimeters placed near the upper-right front edge. Add precise part seams and a charcoal silicone foot; do not create a central dial, rotary knob, speaker grille, or invented controls. Typography: print the exact small label \"MICA DROP\" once on the front in crisp charcoal geometric lettering; keep it level, centered, and fully readable. Composition and camera: landscape 4:3 campaign frame, low eye-level front three-quarter hero view that clearly reveals the right side and elliptical top, 85 mm product lens, full humidifier and its base occupying no more than fifty-five percent of the image and positioned on the left third, sharp focus on button and label, shallow falloff, generous editorial negative space across the right half. Set and lighting: pale limestone desk, warm-gray seamless background, one blurred eucalyptus stem far behind the product, large soft key from upper left, gentle cool fill, narrow warm rim on brass, realistic contact shadow, controlled glass reflection, delicate mist catching the rim light. Finish: quiet Scandinavian art direction, physically plausible matte polymer, brass, glass, water, and vapor microdetail; polished campaign realism rather than a generic white-background render.", + "negativePrompt": "misspelled MICA DROP, duplicate label, extra devices, extra buttons, oversized brass control, central dial, rotary knob, speaker grille, centered front-on catalog view, product filling the frame, cropped base, warped cylinder, uneven seams, floating product, plastic-looking brass, opaque water window, noisy smoke cloud, hard-edged mist, cluttered background, flat frontal lighting, weak contact shadow, generic white cube render, low detail", + "width": 1024, + "height": 768, + "seed": 5112, + "randomSeed": false, + "steps": 50, + "guidanceScale": 4, + "resourceMode": "auto", + "dtype": "bfloat16", + "quantizationMode": "none", + "autoOffload": true, + "offloadMode": "model_cpu", + "strength": 0.8, + "layers": 4, + "outpaintLeft": 256, + "outpaintRight": 256, + "outpaintTop": 0, + "outpaintBottom": 0, + "outpaintOverlap": 24, + "outpaintFeather": 8, + "outpaintFillColor": "black", + "sourceVideo": "", + "maskVideo": "", + "controlVideo": "", + "sourceAudio": "", + "referenceAudio": "", + "lyrics": "", + "audioDuration": 30, + "extensionDuration": 15, + "vocalLanguage": "en", + "repaintingStart": 0, + "repaintingEnd": 10, + "audioCoverStrength": 0.5, + "shift": 3, + "bpm": 0, + "keyscale": "C", + "timesignature": "4/4", + "numFrames": 81, + "fps": 16, + "conditioningScale": 1, + "guidanceScale2": 0, + "outputType": "pil", + "maxSequenceLength": 512, + "attentionKwargsJson": "" + }, + "inputBindings": [], + "workflowBlocks": [], + "workflowBlockSettings": {} + }, + "originalComponentPolicy": { + "attentionBackend": "auto", + "vaeSlicing": true, + "vaeTiling": true + } + }, + { + "templateId": "qwen_low_vram_poster_layout", + "contract": { + "lockedSettings": { + "mode": "text_to_image", + "modelType": "QwenImageModularPipeline", + "prompt": "Create a portrait-format photographic campaign artwork for a fictional coastal film week, built around one real place rather than floating graphic text. Show the weathered entrance of a small 1930s seaside cinema at blue hour after rain: glazed teal tile, dark timber doors, wet pavement, one warm tungsten wall lamp, and the Atlantic horizon glimpsed at the end of the street. Use documentary architectural photography with believable reflections, straight verticals, fine material wear, and restrained offset-print grain. Above the doors is one physical three-row milk-glass marquee. Its removable black letters read exactly \"TIDELINE\" on row one, \"COASTAL FILM WEEK\" on row two, and \"OCT 12\" on row three. This single marquee is the artwork\u2019s complete typographic hierarchy. Frame the entrance low in the portrait with generous rainy sky above it, a quiet asymmetrical composition, deep teal and warm amber color separation, and enough environmental detail to feel like a real cultural venue rather than a layout mockup.", + "negativePrompt": "warped architecture, plastic materials, impossible reflection, floating sign, illegible marquee letters, extra building, crowd, neon nightclub, cartoon, illustration, blur", + "width": 768, + "height": 1024, + "seed": 6219, + "randomSeed": false, + "steps": 50, + "guidanceScale": 4, + "resourceMode": "auto", + "dtype": "bfloat16", + "quantizationMode": "none", + "autoOffload": true, + "offloadMode": "model_cpu", + "strength": 0.8, + "layers": 4, + "outpaintLeft": 256, + "outpaintRight": 256, + "outpaintTop": 0, + "outpaintBottom": 0, + "outpaintOverlap": 24, + "outpaintFeather": 8, + "outpaintFillColor": "black", + "sourceVideo": "", + "maskVideo": "", + "controlVideo": "", + "sourceAudio": "", + "referenceAudio": "", + "lyrics": "", + "audioDuration": 30, + "extensionDuration": 15, + "vocalLanguage": "en", + "repaintingStart": 0, + "repaintingEnd": 10, + "audioCoverStrength": 0.5, + "shift": 3, + "bpm": 0, + "keyscale": "C", + "timesignature": "4/4", + "numFrames": 81, + "fps": 16, + "conditioningScale": 1, + "guidanceScale2": 0, + "outputType": "pil", + "maxSequenceLength": 512, + "attentionKwargsJson": "" + }, + "inputBindings": [], + "workflowBlocks": [], + "workflowBlockSettings": {} + }, + "originalComponentPolicy": { + "attentionBackend": "auto", + "vaeSlicing": true, + "vaeTiling": true + } + }, + { + "templateId": "qwen_control_image_layout", + "contract": { + "lockedSettings": { + "mode": "control_image", + "modelType": "QwenImageModularPipeline", + "prompt": "Packaging objective: turn the supplied control image into an orthographic premium folding-carton design proof for the fictional expedition notebook brand \"NORTHSTAR FIELD NOTES\". Control contract: preserve every outer flap, central and side-panel proportion, fold boundary, main front label rectangle, lower specification modules, circular feature marks, and yellow footer bars from the control image. Directly below the main label, retain two separate outlined specification boxes in their original positions: one small box on the left containing exactly one circular mark, and one wide box on the right containing exactly three circular marks. Keep all four marks inside those two front-panel boxes, never on the side panels. Keep the layout straight-on and centered; do not fold, rotate, crop, merge, relocate, or invent panels. Front-panel copy: set the exact readable brand \"NORTHSTAR FIELD NOTES\" in a compact black grotesk, with the smaller line \"EXPEDITION SERIES 04\". Use the lower modules for short technical copy and icons only; the side panels may carry restrained grid lines and small vertical product information. Material and finish: warm-white FSC paperboard, fine uncoated fiber, crisp black keylines, muted mustard-yellow technical badges, shallow blind emboss on the brand block, precise print registration, subtle scored fold channels, and physically plausible paper thickness along the outer cut edge. Presentation: neutral warm-gray proofing table, orthographic 90-degree camera, even D50 studio light with gentle relief shadows only at score lines, clean prepress/editorial art direction, generous clear space, and sharp readable print detail across the full board.", + "negativePrompt": "ignored control layout, folded box, rotated dieline, missing flap, merged panel, shifted label block, warped fold, broken symmetry, cropped edge, invented window, misspelled NORTHSTAR FIELD NOTES, unreadable series line, random copy, duplicated badge, muddy yellow, glossy plastic paper, heavy cast shadow, perspective distortion, messy registration, low detail", + "width": 768, + "height": 768, + "seed": 5201, + "randomSeed": false, + "steps": 36, + "guidanceScale": 4, + "resourceMode": "auto", + "dtype": "bfloat16", + "quantizationMode": "none", + "autoOffload": false, + "offloadMode": "none", + "strength": 0.8, + "layers": 4, + "outpaintLeft": 256, + "outpaintRight": 256, + "outpaintTop": 0, + "outpaintBottom": 0, + "outpaintOverlap": 24, + "outpaintFeather": 8, + "outpaintFillColor": "black", + "sourceVideo": "", + "maskVideo": "", + "controlVideo": "", + "sourceAudio": "", + "referenceAudio": "", + "lyrics": "", + "audioDuration": 30, + "extensionDuration": 15, + "vocalLanguage": "en", + "repaintingStart": 0, + "repaintingEnd": 10, + "audioCoverStrength": 0.5, + "shift": 3, + "bpm": 0, + "keyscale": "C", + "timesignature": "4/4", + "numFrames": 81, + "fps": 16, + "conditioningScale": 1.2, + "guidanceScale2": 0, + "outputType": "pil", + "maxSequenceLength": 512, + "attentionKwargsJson": "" + }, + "inputBindings": [ + { + "id": "qwen_control_image_layout-control-image-defaults", + "label": "Reviewed control image", + "mediaType": "image", + "origin": "template", + "requiredAt": "workflow_start", + "field": "controlImage", + "defaultAssets": [ + { + "id": "qwen_control_image_layout-control-image", + "label": "Reviewed control image", + "mediaType": "image", + "previewPath": "/template-gallery/inputs/qwen_control_image_layout.before.png", + "runtimePath": "/template-gallery/runtime-inputs/assets/b748201353f02543c2a48920bb514c2741366151df45bf6c4904aeb0f32f1a67.png", + "runtimeSha256": "sha256:bytes:b748201353f02543c2a48920bb514c2741366151df45bf6c4904aeb0f32f1a67", + "fileName": "qwen_control_image_layout.control_image.png" + } + ] + } + ], + "workflowBlocks": [], + "workflowBlockSettings": {} + }, + "originalComponentPolicy": null + }, + { + "templateId": "z_image_cinematic_contact_sheet", + "contract": { + "lockedSettings": { + "mode": "text_to_image", + "modelType": "ZImageModularPipeline", + "prompt": "Output one landscape 2x2 cinematic storyboard sheet with exactly four widescreen frames separated only by narrow black gutters; include no title, labels, captions, numbers, or interface marks. Story continuity: the same covert operative in a tailored black suit and concealed earpiece crosses a luxury midnight gala inside one marble mansion under warm golden chandeliers. Preserve the same face, hair, suit, lighting, architecture, and tense elegant mood in all four frames. Frame one, upper left: low-angle wide entrance with the operative crossing the marble floor and guests in the foreground. Frame two, upper right: close over-shoulder view at the champagne bar with a security guard reflected in a mirror. Frame three, lower left: tight profile close-up of the earpiece and watchful eyes behind a foreground glass. Frame four, lower right: long symmetrical hallway exit with dramatic vanishing lines and the operative moving away. Each frame must be a genuinely different camera distance, angle, pose, and story beat while remaining a clean premium 16:9 movie still. Keep the four cells aligned, equally sized, sharp, and readable at thumbnail scale.", + "negativePrompt": "borders, labels, captions, UI, panel dividers, duplicate tiles, inconsistent identity, blurry frames, low quality", + "width": 1344, + "height": 768, + "seed": 4301, + "randomSeed": false, + "steps": 8, + "guidanceScale": 1, + "resourceMode": "auto", + "dtype": "bfloat16", + "quantizationMode": "none", + "autoOffload": true, + "offloadMode": "model_cpu", + "strength": 0.8, + "layers": 4, + "outpaintLeft": 256, + "outpaintRight": 256, + "outpaintTop": 0, + "outpaintBottom": 0, + "outpaintOverlap": 24, + "outpaintFeather": 8, + "outpaintFillColor": "black", + "sourceVideo": "", + "maskVideo": "", + "controlVideo": "", + "sourceAudio": "", + "referenceAudio": "", + "lyrics": "", + "audioDuration": 30, + "extensionDuration": 15, + "vocalLanguage": "en", + "repaintingStart": 0, + "repaintingEnd": 10, + "audioCoverStrength": 0.5, + "shift": 3, + "bpm": 0, + "keyscale": "C", + "timesignature": "4/4", + "numFrames": 81, + "fps": 16, + "conditioningScale": 1, + "guidanceScale2": 0, + "outputType": "pil", + "maxSequenceLength": 512, + "attentionKwargsJson": "" + }, + "inputBindings": [], + "workflowBlocks": [], + "workflowBlockSettings": {} + }, + "originalComponentPolicy": { + "attentionBackend": "_native_math", + "vaeSlicing": true, + "vaeTiling": true + } + }, + { + "templateId": "qwen_product_ad_composite", + "contract": { + "lockedSettings": { + "mode": "multi_image_reference_edit", + "modelType": "QwenImageEditPlusModularPipeline", + "prompt": "Create one premium magazine advertisement by combining the two supplied references. Input 1 defines the restrained editorial grid, generous warm-white margins and disciplined typography hierarchy. Input 2 defines the immutable ASTERMIST lavender sleep-spray bottle. Build a believable bedside ritual context: place exactly one ASTERMIST bottle at normal cosmetic scale on a honed limestone nightstand beside one folded linen eye mask and a small dried-lavender stem. A softly blurred bed and dawn window belong to the same quiet room; every object rests on the same physical surface with coherent perspective, contact shadows and window light. Preserve the bottle\u2019s pale-lavender glass, liquid level, dip tube, satin-silver atomizer, clear cap and rectangular label. Keep both exact label lines readable: \u201cASTERMIST\u201d and \u201cLAVENDER SLEEP SPRAY\u201d. Do not enlarge it into architecture, a sculpture or a surreal monument. Use Input 1 only for layout discipline. Add exactly one clean headline in the upper negative space: \u201cNIGHT RITUAL\u201d. Include no other campaign copy. Use black editorial type, warm stone, muted lavender and natural blue dawn light with realistic glass refraction and premium photographic grain. The output must read as one real-location commercial photograph, not a pasted packshot or fantasy composite: matching scale, lens, light direction, color spill, focus falloff and surface contact, with no collage edge, halo, floating product, unrelated scenery or arbitrary object replacement.", + "negativePrompt": "headline, body copy, caption, logo, any printed text, fake letters, gibberish typography, graphic panel, neon studio backdrop, collage edges, mismatched perspective, closed cube, solid block, glowing glass, floating product, missing platform, missing person, missing lake reflection, contradictory refraction, wrong vessel proportions, duplicate vessel, synthetic illustration, arbitrary neon, unrelated props covering product", + "width": 1024, + "height": 1024, + "seed": 6201, + "randomSeed": false, + "steps": 4, + "guidanceScale": 1, + "resourceMode": "expert", + "dtype": "bfloat16", + "quantizationMode": "none", + "autoOffload": false, + "offloadMode": "none", + "strength": 0.8, + "layers": 4, + "outpaintLeft": 256, + "outpaintRight": 256, + "outpaintTop": 0, + "outpaintBottom": 0, + "outpaintOverlap": 24, + "outpaintFeather": 8, + "outpaintFillColor": "black", + "sourceVideo": "", + "maskVideo": "", + "controlVideo": "", + "sourceAudio": "", + "referenceAudio": "", + "lyrics": "", + "audioDuration": 30, + "extensionDuration": 15, + "vocalLanguage": "en", + "repaintingStart": 0, + "repaintingEnd": 10, + "audioCoverStrength": 0.5, + "shift": 3, + "bpm": 0, + "keyscale": "C", + "timesignature": "4/4", + "numFrames": 81, + "fps": 16, + "conditioningScale": 1, + "guidanceScale2": 0, + "outputType": "pil", + "maxSequenceLength": 512, + "attentionKwargsJson": "" + }, + "inputBindings": [ + { + "id": "qwen_product_ad_composite-reference-images-defaults", + "label": "Reviewed reference images", + "mediaType": "image", + "origin": "template", + "requiredAt": "workflow_start", + "field": "referenceImages", + "defaultAssets": [ + { + "id": "qwen_product_ad_composite-reference-image-1", + "label": "Reviewed reference image 1", + "mediaType": "image", + "runtimePath": "/template-gallery/runtime-inputs/assets/e0ab22f77f5d966d7868f8950f79702dc6d156d0eaef3e06205097558d5c5bb2.webp", + "runtimeSha256": "sha256:bytes:e0ab22f77f5d966d7868f8950f79702dc6d156d0eaef3e06205097558d5c5bb2", + "fileName": "qwen_product_ad_composite.reference_image_1.webp" + }, + { + "id": "qwen_product_ad_composite-reference-image-2", + "label": "Reviewed reference image 2", + "mediaType": "image", + "previewPath": "/template-gallery/inputs/qwen_product_ad_composite.before.webp", + "runtimePath": "/template-gallery/runtime-inputs/assets/a7b61f36043354596eb01e702474300b222cb32e304bcf259506cad03917ce9b.webp", + "runtimeSha256": "sha256:bytes:a7b61f36043354596eb01e702474300b222cb32e304bcf259506cad03917ce9b", + "fileName": "qwen_product_ad_composite.reference_image_2.webp" + } + ] + } + ], + "workflowBlocks": ["lora"], + "workflowBlockSettings": { + "lora": { + "model": { + "source": "hub", + "value": "lightx2v/Qwen-Image-Edit-2511-Lightning", + "revision": "d74eba145674fd7e31b949324e148e21e7118abd", + "sha256": "22226e8d05d354bb356627d428809f5afd7819399b077238a2b70a82883a904f", + "byteSize": 849608296, + "license": "Apache-2.0" + }, + "weightName": "Qwen-Image-Edit-2511-Lightning-4steps-V1.0-bf16.safetensors", + "scale": 1, + "schedulerClass": "FlowMatchEulerDiscreteScheduler", + "schedulerConfig": { + "base_image_seq_len": 256, + "base_shift": 1.0986122886681098, + "invert_sigmas": false, + "max_image_seq_len": 8192, + "max_shift": 1.0986122886681098, + "num_train_timesteps": 1000, + "shift": 1, + "shift_terminal": null, + "stochastic_sampling": false, + "time_shift_type": "exponential", + "use_beta_sigmas": false, + "use_dynamic_shifting": true, + "use_exponential_sigmas": false, + "use_karras_sigmas": false + } + } + } + }, + "originalComponentPolicy": null + }, + { + "templateId": "qwen_product_relight", + "contract": { + "lockedSettings": { + "mode": "multi_image_reference_edit", + "modelType": "QwenImageEditPlusModularPipeline", + "prompt": "Create one high-end fragrance campaign photograph from two references. Input 1 is the immutable blue-hour mineral-spa vanity scene; Input 2 is the immutable ASTERMIST lavender sleep spray. Preserve Input 1\u2019s square crop, long honed-limestone counter, carved basin and brass faucet at left, empty counter area at lower right, lime-plaster wall, coastal window, linen shelf, eucalyptus niche, camera height, cool window key and restrained warm shelf light. Do not move the basin, faucet, window, shelf or counter, and do not turn the scene into a studio backdrop. Place exactly one ASTERMIST bottle upright on the existing empty lower-right limestone counter, occupying between twenty-five and thirty percent of the image height. Its complete base must touch that original horizontal counter plane directly. Do not add a pedestal, plinth, block, shelf or raised display surface. Preserve its cylindrical lavender glass body, visible liquid level, internal dip tube, silver collar, clear cap, spray nozzle, label proportions and the exact readable two-line copy \"ASTERMIST\" and \"LAVENDER SLEEP SPRAY\". Do not float, crop, duplicate or redesign it. Relight the transparent bottle from the room: cool window fill through the lavender liquid, one restrained warm edge from the shelf light, physically plausible wall thickness and refraction, and a soft contact shadow across the porous limestone. Keep controlled label glare that leaves both lines readable. The matte counter must never mirror the bottle or label text. Match the source lens, focus falloff, grain, color response and low-contrast blue-hour atmosphere. The result must read as a real location campaign photographed in one exposure, not a pasted packshot: coherent scale, perspective, contact, refraction and color spill, with no collage edge, halo, contradictory shadow, synthetic glow, random text, extra packaging or altered background.", + "negativePrompt": "misspelled ASTERMIST, misspelled LAVENDER SLEEP SPRAY, unreadable label, oversized bottle, duplicate bottle, redesigned pump, missing dip tube, floating base, cropped product, invented pedestal, raised plinth, new stone block, mirrored label on stone, wrong reflections, mismatched lighting, altered architecture, moved pool, warped packaging, hard cutout edge, synthetic glow, arbitrary neon, low detail", + "width": 1024, + "height": 1024, + "seed": 6202, + "randomSeed": false, + "steps": 4, + "guidanceScale": 1, + "resourceMode": "expert", + "dtype": "bfloat16", + "quantizationMode": "none", + "autoOffload": false, + "offloadMode": "none", + "strength": 0.8, + "layers": 4, + "outpaintLeft": 256, + "outpaintRight": 256, + "outpaintTop": 0, + "outpaintBottom": 0, + "outpaintOverlap": 24, + "outpaintFeather": 8, + "outpaintFillColor": "black", + "sourceVideo": "", + "maskVideo": "", + "controlVideo": "", + "sourceAudio": "", + "referenceAudio": "", + "lyrics": "", + "audioDuration": 30, + "extensionDuration": 15, + "vocalLanguage": "en", + "repaintingStart": 0, + "repaintingEnd": 10, + "audioCoverStrength": 0.5, + "shift": 3, + "bpm": 0, + "keyscale": "C", + "timesignature": "4/4", + "numFrames": 81, + "fps": 16, + "conditioningScale": 1, + "guidanceScale2": 0, + "outputType": "pil", + "maxSequenceLength": 512, + "attentionKwargsJson": "" + }, + "inputBindings": [ + { + "id": "qwen_product_relight-reference-images-defaults", + "label": "Reviewed reference images", + "mediaType": "image", + "origin": "template", + "requiredAt": "workflow_start", + "field": "referenceImages", + "defaultAssets": [ + { + "id": "qwen_product_relight-reference-image-1", + "label": "Reviewed reference image 1", + "mediaType": "image", + "previewPath": "/template-gallery/inputs/qwen_product_relight.before.webp", + "runtimePath": "/template-gallery/runtime-inputs/assets/f791a809c0df307cd7dafa8c54ae86bbe4c53d73afdacb2183ff8cdbeac994c2.webp", + "runtimeSha256": "sha256:bytes:f791a809c0df307cd7dafa8c54ae86bbe4c53d73afdacb2183ff8cdbeac994c2", + "fileName": "qwen_product_relight.reference_image_1.webp" + }, + { + "id": "qwen_product_relight-reference-image-2", + "label": "Reviewed reference image 2", + "mediaType": "image", + "runtimePath": "/template-gallery/runtime-inputs/assets/a7b61f36043354596eb01e702474300b222cb32e304bcf259506cad03917ce9b.webp", + "runtimeSha256": "sha256:bytes:a7b61f36043354596eb01e702474300b222cb32e304bcf259506cad03917ce9b", + "fileName": "qwen_product_relight.reference_image_2.webp" + } + ] + } + ], + "workflowBlocks": ["lora"], + "workflowBlockSettings": { + "lora": { + "model": { + "source": "hub", + "value": "lightx2v/Qwen-Image-Edit-2511-Lightning", + "revision": "d74eba145674fd7e31b949324e148e21e7118abd", + "sha256": "22226e8d05d354bb356627d428809f5afd7819399b077238a2b70a82883a904f", + "byteSize": 849608296, + "license": "Apache-2.0" + }, + "weightName": "Qwen-Image-Edit-2511-Lightning-4steps-V1.0-bf16.safetensors", + "scale": 1, + "schedulerClass": "FlowMatchEulerDiscreteScheduler", + "schedulerConfig": { + "base_image_seq_len": 256, + "base_shift": 1.0986122886681098, + "invert_sigmas": false, + "max_image_seq_len": 8192, + "max_shift": 1.0986122886681098, + "num_train_timesteps": 1000, + "shift": 1, + "shift_terminal": null, + "stochastic_sampling": false, + "time_shift_type": "exponential", + "use_beta_sigmas": false, + "use_dynamic_shifting": true, + "use_exponential_sigmas": false, + "use_karras_sigmas": false + } + } + } + }, + "originalComponentPolicy": null + }, + { + "templateId": "qwen_packaging_dieline", + "contract": { + "lockedSettings": { + "mode": "control_image", + "modelType": "QwenImageModularPipeline", + "prompt": "Objective: turn the supplied dieline or structural control image into a premium retail package for the fictional traditional-pigment maker \"TIDELINE MINERAL PIGMENTS\" while keeping the control geometry authoritative. Structural contract: preserve every panel boundary, fold and cut direction, glue flap, product-window position, handle or tab, label-safe zone, front/side hierarchy, and dominant outer silhouette. Do not move folds to accommodate decoration. Graphic system: use unbleached warm-gray paperboard, deep indigo block printing, one restrained oxidized-copper foil line, a clear exact front-panel title \"TIDELINE MINERAL PIGMENTS\", and the smaller exact line \"COASTAL SET 06\". Add a sparse hand-drawn mineral strata diagram and compact pigment-safety icons; avoid the yellow technical-grid visual language used by the separate layout-control template. Material and camera: show one assembled, manufacturable carton standing on a pigment-stained oak workbench in a working ceramics studio, with subtle paper tooth, accurate creases, clean die-cut edges, slight edge wear, soft north-window key light, white-card fill, grounded shadow, eye-level three-quarter package view, and crisp focus across the front plane. Include restrained background evidence of the craft\u2014two ceramic test tiles, a stone mortar, and folded linen\u2014without obscuring the package. Output contract: one manufacturable-looking package mockup with straight typography, consistent print registration, intact folds, no melted corners, no impossible window, and no decoration crossing structural seams unintentionally.", + "negativePrompt": "flat unfolded proof, yellow grid design, warped panels, broken folds, missing flap, unreadable TIDELINE MINERAL PIGMENTS, misspelled COASTAL SET 06, wrong silhouette, floating carton, melted edge, decoration across seam, synthetic plastic paper, impossible window, duplicate package, clutter covering package, arbitrary neon, messy shadows", + "width": 768, + "height": 768, + "seed": 5202, + "randomSeed": false, + "steps": 36, + "guidanceScale": 4, + "resourceMode": "auto", + "dtype": "bfloat16", + "quantizationMode": "none", + "autoOffload": false, + "offloadMode": "none", + "strength": 0.8, + "layers": 4, + "outpaintLeft": 256, + "outpaintRight": 256, + "outpaintTop": 0, + "outpaintBottom": 0, + "outpaintOverlap": 24, + "outpaintFeather": 8, + "outpaintFillColor": "black", + "sourceVideo": "", + "maskVideo": "", + "controlVideo": "", + "sourceAudio": "", + "referenceAudio": "", + "lyrics": "", + "audioDuration": 30, + "extensionDuration": 15, + "vocalLanguage": "en", + "repaintingStart": 0, + "repaintingEnd": 10, + "audioCoverStrength": 0.5, + "shift": 3, + "bpm": 0, + "keyscale": "C", + "timesignature": "4/4", + "numFrames": 81, + "fps": 16, + "conditioningScale": 1.1, + "guidanceScale2": 0, + "outputType": "pil", + "maxSequenceLength": 512, + "attentionKwargsJson": "" + }, + "inputBindings": [ + { + "id": "qwen_packaging_dieline-control-image-defaults", + "label": "Reviewed control image", + "mediaType": "image", + "origin": "template", + "requiredAt": "workflow_start", + "field": "controlImage", + "defaultAssets": [ + { + "id": "qwen_packaging_dieline-control-image", + "label": "Reviewed control image", + "mediaType": "image", + "previewPath": "/template-gallery/inputs/qwen_packaging_dieline.before.png", + "runtimePath": "/template-gallery/runtime-inputs/assets/b748201353f02543c2a48920bb514c2741366151df45bf6c4904aeb0f32f1a67.png", + "runtimeSha256": "sha256:bytes:b748201353f02543c2a48920bb514c2741366151df45bf6c4904aeb0f32f1a67", + "fileName": "qwen_packaging_dieline.control_image.png" + } + ] + } + ], + "workflowBlocks": [], + "workflowBlockSettings": {} + }, + "originalComponentPolicy": null + }, + { + "templateId": "qwen_character_angles", + "contract": { + "lockedSettings": { + "mode": "edit_image", + "modelType": "QwenImageEditModularPipeline", + "prompt": "Create a 2x2 character turnaround contact sheet from the source character image. Preserve the character identity, face shape, hair, outfit materials, color palette, age, body proportions, and core silhouette. Render four clean views in one image: front close portrait, three-quarter view, low-angle hero view, and wide full-body view. Keep lighting, background style, and rendering quality consistent across all four panels. Do not change the character into a different person. No labels, no panel borders, no captions.", + "negativePrompt": "identity drift, different outfit, different face, borders, labels, captions, inconsistent lighting, extra limbs, warped anatomy", + "width": 1024, + "height": 1024, + "seed": 6203, + "randomSeed": false, + "steps": 50, + "guidanceScale": 4, + "resourceMode": "auto", + "dtype": "bfloat16", + "quantizationMode": "none", + "autoOffload": true, + "offloadMode": "model_cpu", + "strength": 0.8, + "layers": 4, + "outpaintLeft": 256, + "outpaintRight": 256, + "outpaintTop": 0, + "outpaintBottom": 0, + "outpaintOverlap": 24, + "outpaintFeather": 8, + "outpaintFillColor": "black", + "sourceVideo": "", + "maskVideo": "", + "controlVideo": "", + "sourceAudio": "", + "referenceAudio": "", + "lyrics": "", + "audioDuration": 30, + "extensionDuration": 15, + "vocalLanguage": "en", + "repaintingStart": 0, + "repaintingEnd": 10, + "audioCoverStrength": 0.5, + "shift": 3, + "bpm": 0, + "keyscale": "C", + "timesignature": "4/4", + "numFrames": 81, + "fps": 16, + "conditioningScale": 1, + "guidanceScale2": 0, + "outputType": "pil", + "maxSequenceLength": 512, + "attentionKwargsJson": "" + }, + "inputBindings": [ + { + "id": "qwen_character_angles-reference-images-defaults", + "label": "Reviewed reference image", + "mediaType": "image", + "origin": "template", + "requiredAt": "workflow_start", + "field": "referenceImages", + "defaultAssets": [ + { + "id": "qwen_character_angles-reference-image-1", + "label": "Reviewed reference image 1", + "mediaType": "image", + "previewPath": "/template-gallery/inputs/qwen_character_angles.before.webp", + "runtimePath": "/template-gallery/runtime-inputs/assets/4b1b8d9e351abd437f2ffff90cc6a958160a87863ba4d8e85a0aa80a37e7a10e.webp", + "runtimeSha256": "sha256:bytes:4b1b8d9e351abd437f2ffff90cc6a958160a87863ba4d8e85a0aa80a37e7a10e", + "fileName": "qwen_character_angles.reference_image_1.webp" + } + ] + } + ], + "workflowBlocks": [], + "workflowBlockSettings": {} + }, + "originalComponentPolicy": null + }, + { + "templateId": "qwen_tile_extract", + "contract": { + "lockedSettings": { + "mode": "edit_image", + "modelType": "QwenImageEditModularPipeline", + "prompt": "Look at the uploaded contact sheet image. Focus only on the selected tile or the strongest cinematic frame if no tile is explicitly marked. Recreate that single tile as a standalone full-frame high-resolution image. Match the subject, pose, composition, camera angle, lighting direction, color palette, mood, background geometry, and visual style as closely as possible. Do not include the rest of the grid, borders, labels, captions, UI, or neighboring tiles.", + "negativePrompt": "grid, neighboring tiles, borders, labels, captions, low resolution, compression artifacts, changed subject, changed camera angle", + "width": 1344, + "height": 768, + "seed": 6204, + "randomSeed": false, + "steps": 50, + "guidanceScale": 4, + "resourceMode": "auto", + "dtype": "bfloat16", + "quantizationMode": "none", + "autoOffload": true, + "offloadMode": "model_cpu", + "strength": 0.8, + "layers": 4, + "outpaintLeft": 256, + "outpaintRight": 256, + "outpaintTop": 0, + "outpaintBottom": 0, + "outpaintOverlap": 24, + "outpaintFeather": 8, + "outpaintFillColor": "black", + "sourceVideo": "", + "maskVideo": "", + "controlVideo": "", + "sourceAudio": "", + "referenceAudio": "", + "lyrics": "", + "audioDuration": 30, + "extensionDuration": 15, + "vocalLanguage": "en", + "repaintingStart": 0, + "repaintingEnd": 10, + "audioCoverStrength": 0.5, + "shift": 3, + "bpm": 0, + "keyscale": "C", + "timesignature": "4/4", + "numFrames": 81, + "fps": 16, + "conditioningScale": 1, + "guidanceScale2": 0, + "outputType": "pil", + "maxSequenceLength": 512, + "attentionKwargsJson": "" + }, + "inputBindings": [ + { + "id": "qwen_tile_extract-reference-images-defaults", + "label": "Reviewed reference image", + "mediaType": "image", + "origin": "template", + "requiredAt": "workflow_start", + "field": "referenceImages", + "defaultAssets": [ + { + "id": "qwen_tile_extract-reference-image-1", + "label": "Reviewed reference image 1", + "mediaType": "image", + "previewPath": "/template-gallery/inputs/qwen_tile_extract.before.webp", + "runtimePath": "/template-gallery/runtime-inputs/assets/6224e9ee47765858f2ec0c33679140d020cf3ad6e4fa2fa4557ef50f811aef0e.webp", + "runtimeSha256": "sha256:bytes:6224e9ee47765858f2ec0c33679140d020cf3ad6e4fa2fa4557ef50f811aef0e", + "fileName": "qwen_tile_extract.reference_image_1.webp" + } + ] + } + ], + "workflowBlocks": [], + "workflowBlockSettings": {} + }, + "originalComponentPolicy": null + }, + { + "templateId": "qwen_logo_texture", + "contract": { + "lockedSettings": { + "mode": "multi_image_reference_edit", + "modelType": "QwenImageEditPlusModularPipeline", + "prompt": "Create one photorealistic architectural monogram using two references with strict roles. Input 1 defines the immutable centered modular M silhouette, proportions, three vertical legs, two diagonal joins, negative counters and square margins. Input 2 defines only the deep forest-green bookmatched marble, sparse pale veins, honed reflectivity and narrow aged-satin-brass bevel. Preserve Input 1\u2019s exact outer contour, central V notch, lower counters, baseline and symmetry. Fill only the face of the M with the forest-green marble from Input 2, align one quiet bookmatch seam through its center, and wrap the complete outer and inner perimeter with one narrow continuous aged-brass bevel. Do not convert the M into another letter, add a duplicate outline, close either counter or thicken one leg differently. Mount the finished M flush on one warm off-white lime-plaster wall under soft raking daylight from upper left. Use realistic stone depth, sparse veins that continue across joins, fine brass grain, a restrained contact shadow and subtle photographic falloff. Output one premium architectural identity photograph with no word, caption, extra letter, icon, screw, cable, cobalt blue, chrome, enamel, neon, frame or decorative clutter.", + "negativePrompt": "changed M silhouette, second letter, word, caption, closed counter, asymmetric leg, broken bevel, busy veins, cracked stone, cobalt blue, chrome, enamel, neon, screw, cable, clutter, low contrast", + "width": 1024, + "height": 1024, + "seed": 6205, + "randomSeed": false, + "steps": 4, + "guidanceScale": 1, + "resourceMode": "expert", + "dtype": "bfloat16", + "quantizationMode": "none", + "autoOffload": false, + "offloadMode": "none", + "strength": 0.8, + "layers": 4, + "outpaintLeft": 256, + "outpaintRight": 256, + "outpaintTop": 0, + "outpaintBottom": 0, + "outpaintOverlap": 24, + "outpaintFeather": 8, + "outpaintFillColor": "black", + "sourceVideo": "", + "maskVideo": "", + "controlVideo": "", + "sourceAudio": "", + "referenceAudio": "", + "lyrics": "", + "audioDuration": 30, + "extensionDuration": 15, + "vocalLanguage": "en", + "repaintingStart": 0, + "repaintingEnd": 10, + "audioCoverStrength": 0.5, + "shift": 3, + "bpm": 0, + "keyscale": "C", + "timesignature": "4/4", + "numFrames": 81, + "fps": 16, + "conditioningScale": 1, + "guidanceScale2": 0, + "outputType": "pil", + "maxSequenceLength": 512, + "attentionKwargsJson": "" + }, + "inputBindings": [ + { + "id": "qwen_logo_texture-reference-images-defaults", + "label": "Reviewed reference images", + "mediaType": "image", + "origin": "template", + "requiredAt": "workflow_start", + "field": "referenceImages", + "defaultAssets": [ + { + "id": "qwen_logo_texture-reference-image-1", + "label": "Reviewed reference image 1", + "mediaType": "image", + "previewPath": "/template-gallery/inputs/qwen_logo_texture.before.webp", + "runtimePath": "/template-gallery/runtime-inputs/assets/124415536a8071baccf8821232ad79a0a8ceec30ae62617c91a8d7a0b59d0a8c.webp", + "runtimeSha256": "sha256:bytes:124415536a8071baccf8821232ad79a0a8ceec30ae62617c91a8d7a0b59d0a8c", + "fileName": "qwen_logo_texture.reference_image_1.webp" + }, + { + "id": "qwen_logo_texture-reference-image-2", + "label": "Reviewed reference image 2", + "mediaType": "image", + "runtimePath": "/template-gallery/runtime-inputs/assets/9328061557396ef591a9f4a6242abf1cdd61082846518726c3114f746ccedd63.webp", + "runtimeSha256": "sha256:bytes:9328061557396ef591a9f4a6242abf1cdd61082846518726c3114f746ccedd63", + "fileName": "qwen_logo_texture.reference_image_2.webp" + } + ] + } + ], + "workflowBlocks": ["lora"], + "workflowBlockSettings": { + "lora": { + "model": { + "source": "hub", + "value": "lightx2v/Qwen-Image-Edit-2511-Lightning", + "revision": "d74eba145674fd7e31b949324e148e21e7118abd", + "sha256": "22226e8d05d354bb356627d428809f5afd7819399b077238a2b70a82883a904f", + "byteSize": 849608296, + "license": "Apache-2.0" + }, + "weightName": "Qwen-Image-Edit-2511-Lightning-4steps-V1.0-bf16.safetensors", + "scale": 1, + "schedulerClass": "FlowMatchEulerDiscreteScheduler", + "schedulerConfig": { + "base_image_seq_len": 256, + "base_shift": 1.0986122886681098, + "invert_sigmas": false, + "max_image_seq_len": 8192, + "max_shift": 1.0986122886681098, + "num_train_timesteps": 1000, + "shift": 1, + "shift_terminal": null, + "stochastic_sampling": false, + "time_shift_type": "exponential", + "use_beta_sigmas": false, + "use_dynamic_shifting": true, + "use_exponential_sigmas": false, + "use_karras_sigmas": false + } + } + } + }, + "originalComponentPolicy": null + }, + { + "templateId": "qwen_layered_portrait", + "contract": { + "lockedSettings": { + "mode": "layer_decomposition", + "modelType": "QwenImageLayeredModularPipeline", + "prompt": "Decompose the supplied image into three ordered editable RGBA layers while faithfully preserving the complete photographed content. Overall image description: at blue hour on an alpine observatory deck, one adult woman astronomer in a navy field jacket and charcoal trousers stands center-right with both empty hands relaxed beside her body. One physically separate brass-and-matte-black refractor telescope on a complete three-leg tripod occupies the lower-left foreground without touching or overlapping the woman. A white observatory dome, a standard-height open doorway, a metal safety rail, mountain silhouettes and a clear deep-blue sky form the background. Occluded-content description: reconstruct the uninterrupted deck, rail, observatory wall, mountains and sky behind the woman and telescope so hiding a layer does not reveal an obvious cutout hole. Keep the source identity, pose, scale, eye-level 50 mm perspective, blue-hour lighting and object placement. Preserve the measured source relationship: the complete telescope assembly is about ninety-four percent of the woman\u2019s visible height, its tube length is about fifty-one percent of her visible height, and a clear gap of about three percent of the image width separates the telescope from her body. Keep the entire telescope and all three grounded tripod feet coherent in one place without a detached tube, mount or tripod fragment elsewhere. Produce useful alpha boundaries and a recomposition that matches the source without bright fringe, dark matte, duplicated feature, missing content or flattened depth.", + "negativePrompt": "merged layers, empty layer, jagged alpha, halos, detached telescope fragment, duplicated tripod, person-telescope overlap, wrong relative scale, broken background, flattened depth", + "width": 640, + "height": 640, + "seed": 7102, + "randomSeed": false, + "steps": 30, + "guidanceScale": 4, + "resourceMode": "auto", + "dtype": "bfloat16", + "quantizationMode": "none", + "autoOffload": true, + "offloadMode": "model_cpu", + "strength": 0.8, + "layers": 3, + "outpaintLeft": 256, + "outpaintRight": 256, + "outpaintTop": 0, + "outpaintBottom": 0, + "outpaintOverlap": 24, + "outpaintFeather": 8, + "outpaintFillColor": "black", + "sourceVideo": "", + "maskVideo": "", + "controlVideo": "", + "sourceAudio": "", + "referenceAudio": "", + "lyrics": "", + "audioDuration": 30, + "extensionDuration": 15, + "vocalLanguage": "en", + "repaintingStart": 0, + "repaintingEnd": 10, + "audioCoverStrength": 0.5, + "shift": 3, + "bpm": 0, + "keyscale": "C", + "timesignature": "4/4", + "numFrames": 81, + "fps": 16, + "conditioningScale": 1, + "guidanceScale2": 0, + "outputType": "pil", + "maxSequenceLength": 512, + "attentionKwargsJson": "" + }, + "inputBindings": [ + { + "id": "qwen_layered_portrait-reference-images-defaults", + "label": "Reviewed reference image", + "mediaType": "image", + "origin": "template", + "requiredAt": "workflow_start", + "field": "referenceImages", + "defaultAssets": [ + { + "id": "qwen_layered_portrait-reference-image-1", + "label": "Reviewed reference image 1", + "mediaType": "image", + "runtimePath": "/template-gallery/runtime-inputs/assets/965240cf250a9074a7adab394c76070674cf517bed42b6c4647112d17dec84de.webp", + "runtimeSha256": "sha256:bytes:965240cf250a9074a7adab394c76070674cf517bed42b6c4647112d17dec84de", + "fileName": "qwen_layered_portrait.reference_image_1.webp" + } + ] + } + ], + "workflowBlocks": [], + "workflowBlockSettings": {} + }, + "originalComponentPolicy": null + }, + { + "templateId": "qwen_outpaint_aspect_template", + "contract": { + "lockedSettings": { + "mode": "outpaint", + "modelType": "QwenImageEditModularPipeline", + "prompt": "Extend the source documentary portrait of a marine field researcher into a wide environmental photograph while preserving the original person, facial identity, waterproof jacket, pose, scale, central crop, horizon, camera height, lens perspective and overcast light. Generate only a level continuation of the same low basalt foreshore outside the source: similarly sized layered black rocks, shallow tide pools, sparse low wind-bent grass and uninterrupted distant gray water. Keep the shoreline elevation low and continuous; do not introduce cliffs, coves, headlands or large new landforms. Match rock scale, atmospheric depth, cloud structure, grain, focus falloff and shadow softness across both transitions. Keep the original image visually anchored in the center. Do not add another person, duplicate equipment, repeat rock patterns, stretch the body, change the face, or turn the new borders into a painted or fantastical landscape.", + "negativePrompt": "repeated rock patterns, stretched subject, changed face, duplicate person, extra equipment, broken horizon, mismatched weather, changed original crop, obvious seam, painted landscape, fantasy glow", + "width": 1344, + "height": 768, + "seed": 7302, + "randomSeed": false, + "steps": 12, + "guidanceScale": 4, + "resourceMode": "auto", + "dtype": "bfloat16", + "quantizationMode": "none", + "autoOffload": true, + "offloadMode": "model_cpu", + "strength": 1, + "layers": 4, + "outpaintLeft": 256, + "outpaintRight": 256, + "outpaintTop": 0, + "outpaintBottom": 0, + "outpaintOverlap": 96, + "outpaintFeather": 48, + "outpaintFillColor": "black", + "sourceVideo": "", + "maskVideo": "", + "controlVideo": "", + "sourceAudio": "", + "referenceAudio": "", + "lyrics": "", + "audioDuration": 30, + "extensionDuration": 15, + "vocalLanguage": "en", + "repaintingStart": 0, + "repaintingEnd": 10, + "audioCoverStrength": 0.5, + "shift": 3, + "bpm": 0, + "keyscale": "C", + "timesignature": "4/4", + "numFrames": 81, + "fps": 16, + "conditioningScale": 1, + "guidanceScale2": 0, + "outputType": "pil", + "maxSequenceLength": 512, + "attentionKwargsJson": "" + }, + "inputBindings": [ + { + "id": "generated-outpaint-canvas", + "label": "Expanded source canvas", + "mediaType": "image", + "origin": "graph", + "requiredAt": "downstream", + "producer": { + "role": "qwenOutpaintCanvas", + "output": "image" + } + }, + { + "id": "generated-outpaint-mask", + "label": "Boundary mask", + "mediaType": "image", + "origin": "graph", + "requiredAt": "downstream", + "producer": { + "role": "qwenOutpaintCanvas", + "output": "mask" + } + }, + { + "id": "qwen_outpaint_aspect_template-reference-images-defaults", + "label": "Reviewed reference image", + "mediaType": "image", + "origin": "template", + "requiredAt": "workflow_start", + "field": "referenceImages", + "defaultAssets": [ + { + "id": "qwen_outpaint_aspect_template-reference-image-1", + "label": "Reviewed reference image 1", + "mediaType": "image", + "previewPath": "/template-gallery/inputs/qwen_outpaint_aspect_template.before.webp", + "runtimePath": "/template-gallery/runtime-inputs/assets/d898e00f3be4b28e237f71acf8024ad3715a657e1fcf3aeaf57279468dff7a76.webp", + "runtimeSha256": "sha256:bytes:d898e00f3be4b28e237f71acf8024ad3715a657e1fcf3aeaf57279468dff7a76", + "fileName": "qwen_outpaint_aspect_template.reference_image_1.webp" + } + ] + } + ], + "workflowBlocks": [], + "workflowBlockSettings": {} + }, + "originalComponentPolicy": { + "attentionBackend": "auto", + "vaeSlicing": true, + "vaeTiling": true + } + }, + { + "templateId": "qwen_inpaint_object_replace", + "contract": { + "lockedSettings": { + "mode": "inpaint", + "modelType": "QwenImageEditModularPipeline", + "prompt": "Mask contract: replace only the small masked charcoal box on the entryway console with one handcrafted stoneware keepsake chest; treat the complete unmasked entryway as immutable. Replacement design: preserve the original box outer width, height, depth, position and rectangular silhouette so the new chest fills the masked footprint. Construct four straight vertical stoneware walls, softly chamfered corners, uninterrupted rectangular faces, a narrow unglazed clay foot and one flat fitted dark-walnut slab lid. Finish the body in deep forest-green low-sheen celadon with subtle horizontal hand-finishing texture and a thin cork gasket line. Integration: match the source camera perspective, focus plane, soft left window light, warm wall bounce, texture scale, grain, wall tone and exposure; ground the stoneware chest with one physically correct contact shadow, a restrained broad glaze highlight facing the window, and believable base occlusion, then feather the boundary without a halo. Preserve the source crop, doorway, switch plate, hooks, folded scarf, ceramic bowl, basket, wall color, console geometry and every region outside the mask.", + "negativePrompt": "changed unmasked pixels, visible mask boundary, wrong scale, mismatched lighting, floating object, altered background", + "width": 1024, + "height": 1024, + "seed": 6131, + "randomSeed": false, + "steps": 8, + "guidanceScale": 4, + "resourceMode": "auto", + "dtype": "bfloat16", + "quantizationMode": "none", + "autoOffload": true, + "offloadMode": "model_cpu", + "strength": 1, + "layers": 4, + "outpaintLeft": 256, + "outpaintRight": 256, + "outpaintTop": 0, + "outpaintBottom": 0, + "outpaintOverlap": 24, + "outpaintFeather": 8, + "outpaintFillColor": "black", + "sourceVideo": "", + "maskVideo": "", + "controlVideo": "", + "sourceAudio": "", + "referenceAudio": "", + "lyrics": "", + "audioDuration": 30, + "extensionDuration": 15, + "vocalLanguage": "en", + "repaintingStart": 0, + "repaintingEnd": 10, + "audioCoverStrength": 0.5, + "shift": 3, + "bpm": 0, + "keyscale": "C", + "timesignature": "4/4", + "numFrames": 81, + "fps": 16, + "conditioningScale": 1, + "guidanceScale2": 0, + "outputType": "pil", + "maxSequenceLength": 512, + "attentionKwargsJson": "" + }, + "inputBindings": [ + { + "id": "qwen_inpaint_object_replace-reference-images-defaults", + "label": "Reviewed reference image", + "mediaType": "image", + "origin": "template", + "requiredAt": "workflow_start", + "field": "referenceImages", + "defaultAssets": [ + { + "id": "qwen_inpaint_object_replace-reference-image-1", + "label": "Reviewed reference image 1", + "mediaType": "image", + "previewPath": "/template-gallery/inputs/qwen_inpaint_object_replace.before.webp", + "runtimePath": "/template-gallery/runtime-inputs/assets/9f9f9685db5e9f8e1c162a0515151b03912c84777727b38682b65839db501ae6.webp", + "runtimeSha256": "sha256:bytes:9f9f9685db5e9f8e1c162a0515151b03912c84777727b38682b65839db501ae6", + "fileName": "qwen_inpaint_object_replace.reference_image_1.webp" + } + ] + }, + { + "id": "qwen_inpaint_object_replace-mask-image-defaults", + "label": "Reviewed mask image", + "mediaType": "image", + "origin": "template", + "requiredAt": "workflow_start", + "field": "maskImage", + "defaultAssets": [ + { + "id": "qwen_inpaint_object_replace-mask-image", + "label": "Reviewed mask image", + "mediaType": "image", + "runtimePath": "/template-gallery/runtime-inputs/assets/e14e0fb4bccace254e3430bbddd49728980e5445b988eff1ae8164f135d1cc8d.png", + "runtimeSha256": "sha256:bytes:e14e0fb4bccace254e3430bbddd49728980e5445b988eff1ae8164f135d1cc8d", + "fileName": "qwen_inpaint_object_replace.mask_image.png" + } + ] + } + ], + "workflowBlocks": [], + "workflowBlockSettings": {} + }, + "originalComponentPolicy": { + "attentionBackend": "auto", + "vaeSlicing": true, + "vaeTiling": true + } + }, + { + "templateId": "character_edit", + "contract": { + "lockedSettings": { + "mode": "edit_image", + "modelType": "QwenImageEditPlusModularPipeline", + "prompt": "Restyle only the source singer into a realistic coastal field-recording presenter while preserving her exact face shape, age, warm skin tone, gaze direction, hairstyle and copper streak, hand positions, microphone, pose, crop, camera perspective, and the complete rocky-coast background. Replace the silver jacket with one tailored rust-brown waxed-canvas field jacket: matte weathered fabric, dark navy wool collar, reinforced shoulder panels, two believable brass snaps, and one narrow slate-blue scarf tucked naturally inside the collar. Keep the garment correctly fitted around both shoulders, elbows, wrists, and microphone grip. Treat every non-clothing region as structurally locked. Keep the distant ship as a comparably small, soft, out-of-focus silhouette in the same upper-left distance; preserve the horizon, water highlights, rocks, amber practical lights, hair flyaways, face, hands, microphone, cable, crop, focus, and original warm late-afternoon illumination. The result must remain a documentary photograph, not science fiction, fashion illustration, or animation.", + "negativePrompt": "identity drift, different face, changed hairstyle, missing copper streak, changed pose, changed hands or microphone, extra fingers, extra limbs, plastic skin, changed ship position, enlarged ship, sharp ship, changed horizon, changed rocks or water, moved practical lights, translucent clothing, neon, armor, cyberpunk, illustration, mismatched jacket lighting, malformed seams, warped eyes, visible edit boundary, text, watermark", + "width": 1024, + "height": 1024, + "seed": 6101, + "randomSeed": false, + "steps": 4, + "guidanceScale": 1, + "resourceMode": "expert", + "dtype": "bfloat16", + "quantizationMode": "none", + "autoOffload": false, + "offloadMode": "none", + "strength": 0.8, + "layers": 4, + "outpaintLeft": 256, + "outpaintRight": 256, + "outpaintTop": 0, + "outpaintBottom": 0, + "outpaintOverlap": 24, + "outpaintFeather": 8, + "outpaintFillColor": "black", + "sourceVideo": "", + "maskVideo": "", + "controlVideo": "", + "sourceAudio": "", + "referenceAudio": "", + "lyrics": "", + "audioDuration": 30, + "extensionDuration": 15, + "vocalLanguage": "en", + "repaintingStart": 0, + "repaintingEnd": 10, + "audioCoverStrength": 0.5, + "shift": 3, + "bpm": 0, + "keyscale": "C", + "timesignature": "4/4", + "numFrames": 81, + "fps": 16, + "conditioningScale": 1, + "guidanceScale2": 0, + "outputType": "pil", + "maxSequenceLength": 512, + "attentionKwargsJson": "" + }, + "inputBindings": [ + { + "id": "character_edit-reference-images-defaults", + "label": "Reviewed reference image", + "mediaType": "image", + "origin": "template", + "requiredAt": "workflow_start", + "field": "referenceImages", + "defaultAssets": [ + { + "id": "character_edit-reference-image-1", + "label": "Reviewed reference image 1", + "mediaType": "image", + "previewPath": "/template-gallery/inputs/character_edit.before.webp", + "runtimePath": "/template-gallery/runtime-inputs/assets/b9909f4cbff8af6e97be6d1e4923c67687eee41dbd64b051a018866781da12ab.webp", + "runtimeSha256": "sha256:bytes:b9909f4cbff8af6e97be6d1e4923c67687eee41dbd64b051a018866781da12ab", + "fileName": "character_edit.reference_image_1.webp" + } + ] + } + ], + "workflowBlocks": ["lora"], + "workflowBlockSettings": { + "lora": { + "model": { + "source": "hub", + "value": "lightx2v/Qwen-Image-Edit-2511-Lightning", + "revision": "d74eba145674fd7e31b949324e148e21e7118abd", + "sha256": "22226e8d05d354bb356627d428809f5afd7819399b077238a2b70a82883a904f", + "byteSize": 849608296, + "license": "Apache-2.0" + }, + "weightName": "Qwen-Image-Edit-2511-Lightning-4steps-V1.0-bf16.safetensors", + "scale": 1, + "schedulerClass": "FlowMatchEulerDiscreteScheduler", + "schedulerConfig": { + "base_image_seq_len": 256, + "base_shift": 1.0986122886681098, + "invert_sigmas": false, + "max_image_seq_len": 8192, + "max_shift": 1.0986122886681098, + "num_train_timesteps": 1000, + "shift": 1, + "shift_terminal": null, + "stochastic_sampling": false, + "time_shift_type": "exponential", + "use_beta_sigmas": false, + "use_dynamic_shifting": true, + "use_exponential_sigmas": false, + "use_karras_sigmas": false + } + } + } + }, + "originalComponentPolicy": null + }, + { + "templateId": "qwen_edit_strength_sweep", + "contract": { + "lockedSettings": { + "mode": "edit_image", + "modelType": "QwenImageEditModularPipeline", + "prompt": "Use the source image as a controlled strength-sweep test: transform the cafe interior into a quiet midnight reading lounge while preserving the original camera angle, furniture positions, window geometry, and perspective. Change only mood, lighting, and materials: walnut tables, blue velvet chairs, brass lamp pools, rain outside the windows, warm practical lights, and a refined cinematic finish.", + "negativePrompt": "over-editing, moved furniture, changed room geometry, inconsistent perspective, blown highlights, identity drift, warped structure", + "width": 1024, + "height": 1024, + "seed": 6110, + "randomSeed": false, + "steps": 40, + "guidanceScale": 4, + "resourceMode": "auto", + "dtype": "bfloat16", + "quantizationMode": "none", + "autoOffload": true, + "offloadMode": "model_cpu", + "strength": 0.8, + "layers": 4, + "outpaintLeft": 256, + "outpaintRight": 256, + "outpaintTop": 0, + "outpaintBottom": 0, + "outpaintOverlap": 24, + "outpaintFeather": 8, + "outpaintFillColor": "black", + "sourceVideo": "", + "maskVideo": "", + "controlVideo": "", + "sourceAudio": "", + "referenceAudio": "", + "lyrics": "", + "audioDuration": 30, + "extensionDuration": 15, + "vocalLanguage": "en", + "repaintingStart": 0, + "repaintingEnd": 10, + "audioCoverStrength": 0.5, + "shift": 3, + "bpm": 0, + "keyscale": "C", + "timesignature": "4/4", + "numFrames": 81, + "fps": 16, + "conditioningScale": 1, + "guidanceScale2": 0, + "outputType": "pil", + "maxSequenceLength": 512, + "attentionKwargsJson": "" + }, + "inputBindings": [ + { + "id": "qwen_edit_strength_sweep-reference-images-defaults", + "label": "Reviewed reference image", + "mediaType": "image", + "origin": "template", + "requiredAt": "workflow_start", + "field": "referenceImages", + "defaultAssets": [ + { + "id": "qwen_edit_strength_sweep-reference-image-1", + "label": "Reviewed reference image 1", + "mediaType": "image", + "previewPath": "/template-gallery/inputs/qwen_edit_strength_sweep.before.webp", + "runtimePath": "/template-gallery/runtime-inputs/assets/a6d165bd87e2c57ab8cf71fa15de9d8724fccf5782c16c34c25dc77934751676.webp", + "runtimeSha256": "sha256:bytes:a6d165bd87e2c57ab8cf71fa15de9d8724fccf5782c16c34c25dc77934751676", + "fileName": "qwen_edit_strength_sweep.reference_image_1.webp" + } + ] + } + ], + "workflowBlocks": [], + "workflowBlockSettings": {} + }, + "originalComponentPolicy": null + }, + { + "templateId": "reference_fusion", + "contract": { + "lockedSettings": { + "mode": "multi_image_reference_edit", + "modelType": "QwenImageEditPlusModularPipeline", + "prompt": "Create one photorealistic furniture campaign by fusing two references with explicit roles. Input 1 defines the immutable lounge-chair identity: low curved back flowing into both arms, deep seat, walnut outer shell, four short splayed feet, complete proportions and front three-quarter view. Input 2 defines only the cobalt vitreous-enamel and champagne-aluminum surface language. Preserve Input 1\u2019s chair silhouette, ergonomic seams, seat depth, arm thickness, walnut rear shell and all four mechanically attached feet. Apply deep cobalt enamel only to two inset outer-arm panels and use brushed champagne aluminum only on the four feet and their small mounting plates. Keep the main seat and inner back in understated charcoal wool so the chair remains usable; do not coat cushions in hard enamel. Place the single complete chair in a quiet sunlit rammed-earth hotel reading room with one tall arched opening, pale terrazzo floor and no other furniture. Use a 70 mm eye-level camera, warm side light, cool fill, an accurate grounded shadow, fine wool fibers, walnut pores, enamel depth, directional metal grain and restrained editorial negative space. Output one coherent manufactured chair photographed in a real interior. No second chair, floating feet, changed silhouette, melted join, full-metal cushion, generic studio cyclorama, arbitrary neon, text, logo, person or decorative clutter.", + "negativePrompt": "changed chair silhouette, two chairs, missing foot, floating leg, broken arm join, enamel cushion, all-metal seat, mismatched perspective, material confusion, glossy plastic wool, cluttered room, arbitrary neon, text, logo, person, low detail", + "width": 1024, + "height": 1024, + "seed": 6102, + "randomSeed": false, + "steps": 4, + "guidanceScale": 1, + "resourceMode": "expert", + "dtype": "bfloat16", + "quantizationMode": "none", + "autoOffload": false, + "offloadMode": "none", + "strength": 0.8, + "layers": 4, + "outpaintLeft": 256, + "outpaintRight": 256, + "outpaintTop": 0, + "outpaintBottom": 0, + "outpaintOverlap": 24, + "outpaintFeather": 8, + "outpaintFillColor": "black", + "sourceVideo": "", + "maskVideo": "", + "controlVideo": "", + "sourceAudio": "", + "referenceAudio": "", + "lyrics": "", + "audioDuration": 30, + "extensionDuration": 15, + "vocalLanguage": "en", + "repaintingStart": 0, + "repaintingEnd": 10, + "audioCoverStrength": 0.5, + "shift": 3, + "bpm": 0, + "keyscale": "C", + "timesignature": "4/4", + "numFrames": 81, + "fps": 16, + "conditioningScale": 1, + "guidanceScale2": 0, + "outputType": "pil", + "maxSequenceLength": 512, + "attentionKwargsJson": "" + }, + "inputBindings": [ + { + "id": "reference_fusion-reference-images-defaults", + "label": "Reviewed reference images", + "mediaType": "image", + "origin": "template", + "requiredAt": "workflow_start", + "field": "referenceImages", + "defaultAssets": [ + { + "id": "reference_fusion-reference-image-1", + "label": "Reviewed reference image 1", + "mediaType": "image", + "previewPath": "/template-gallery/inputs/reference_fusion.before.webp", + "runtimePath": "/template-gallery/runtime-inputs/assets/283b1cfb32b15fe6b31a29dce1f2b96026c1ad0826bf3f24aebebf4b6f9a4f07.webp", + "runtimeSha256": "sha256:bytes:283b1cfb32b15fe6b31a29dce1f2b96026c1ad0826bf3f24aebebf4b6f9a4f07", + "fileName": "reference_fusion.reference_image_1.webp" + }, + { + "id": "reference_fusion-reference-image-2", + "label": "Reviewed reference image 2", + "mediaType": "image", + "runtimePath": "/template-gallery/runtime-inputs/assets/39428f00f67b49fc6d624617df2964c9f869de21e7e188ef5b231ae04c4aeacc.webp", + "runtimeSha256": "sha256:bytes:39428f00f67b49fc6d624617df2964c9f869de21e7e188ef5b231ae04c4aeacc", + "fileName": "reference_fusion.reference_image_2.webp" + } + ] + } + ], + "workflowBlocks": ["lora"], + "workflowBlockSettings": { + "lora": { + "model": { + "source": "hub", + "value": "lightx2v/Qwen-Image-Edit-2511-Lightning", + "revision": "d74eba145674fd7e31b949324e148e21e7118abd", + "sha256": "22226e8d05d354bb356627d428809f5afd7819399b077238a2b70a82883a904f", + "byteSize": 849608296, + "license": "Apache-2.0" + }, + "weightName": "Qwen-Image-Edit-2511-Lightning-4steps-V1.0-bf16.safetensors", + "scale": 1, + "schedulerClass": "FlowMatchEulerDiscreteScheduler", + "schedulerConfig": { + "base_image_seq_len": 256, + "base_shift": 1.0986122886681098, + "invert_sigmas": false, + "max_image_seq_len": 8192, + "max_shift": 1.0986122886681098, + "num_train_timesteps": 1000, + "shift": 1, + "shift_terminal": null, + "stochastic_sampling": false, + "time_shift_type": "exponential", + "use_beta_sigmas": false, + "use_dynamic_shifting": true, + "use_exponential_sigmas": false, + "use_karras_sigmas": false + } + } + } + }, + "originalComponentPolicy": null + }, + { + "templateId": "qwen_multi_reference_product", + "contract": { + "lockedSettings": { + "mode": "multi_image_reference_edit", + "modelType": "QwenImageEditPlusModularPipeline", + "prompt": "Create one photorealistic catalog finish-transfer photograph using two references with strict roles. Input 1 defines the immutable full-size road-touring bicycle geometry and studio camera: two equal 700C wheels, complete double-triangle frame, fork, compact drop handlebar with two brake hoods, saddle, front disc brake, crank, chain, rear cassette, derailleur and connected pedal pair. Input 2 defines only the deep cobalt vitreous-enamel finish, narrow polished bevel and brushed champagne-aluminum grain. Preserve Input 1\u2019s wheel diameter, wheelbase, straight frame tubes, frame-triangle topology, fork alignment, handlebar, brake and drivetrain layout, side three-quarter camera, neutral warm-gray sweep, ground line and clean margins. Apply deep cobalt enamel only to the steel frame and fork; use brushed champagne aluminum only for both wheel rims, crank, hubs and small fittings; retain black rubber tires, dark leather saddle and dark handlebar tape. Add exactly one intentional down-tube wordmark: VELA. Render the four adjacent uppercase letters VELA as one uninterrupted word in a geometric sans-serif, reading left to right along the down tube. Use no hyphen, dash, dot, punctuation, gap, separator or extra mark between any letters. Both black tire sidewalls may retain only a pair of short symmetric non-letter reflective registration dashes; they must contain no readable characters. No other letters, numbers, logo, badge or symbol anywhere. Keep the complete bicycle fully visible at eighty-five to ninety-six percent of the image width, both tires on the same ground line, both wheels differing in apparent diameter by no more than eight percent, and all components physically connected. Output one believable premium bicycle catalog photograph with controlled reflections, readable spokes, realistic tire compression and fine studio grain. No duplicate bicycle, extra wheel, oval wheel, bent frame, broken fork, impossible chain, floating pedal, cropped tire, display plinth, loose hardware, person, scenery, random text, arbitrary neon or illustration.", + "negativePrompt": "person, rider, duplicate bicycle, extra wheel, unequal wheels, oval wheel, bent frame, missing frame tube, broken fork, impossible chain, extra crank, floating pedal, cropped tire, readable tire-sidewall text, tire brand, tire label, V-ELA, V ELA, misspelled VELA, hyphen inside VELA, punctuation inside VELA, separator inside VELA, extra letters, extra words, numbers, logo, badge, symbol, enamel tires, display plinth, loose hardware, scenery, arbitrary neon, illustration, low detail", + "width": 1024, + "height": 1024, + "seed": 6120, + "randomSeed": false, + "steps": 4, + "guidanceScale": 1, + "resourceMode": "expert", + "dtype": "bfloat16", + "quantizationMode": "none", + "autoOffload": false, + "offloadMode": "none", + "strength": 0.8, + "layers": 4, + "outpaintLeft": 256, + "outpaintRight": 256, + "outpaintTop": 0, + "outpaintBottom": 0, + "outpaintOverlap": 24, + "outpaintFeather": 8, + "outpaintFillColor": "black", + "sourceVideo": "", + "maskVideo": "", + "controlVideo": "", + "sourceAudio": "", + "referenceAudio": "", + "lyrics": "", + "audioDuration": 30, + "extensionDuration": 15, + "vocalLanguage": "en", + "repaintingStart": 0, + "repaintingEnd": 10, + "audioCoverStrength": 0.5, + "shift": 3, + "bpm": 0, + "keyscale": "C", + "timesignature": "4/4", + "numFrames": 81, + "fps": 16, + "conditioningScale": 1, + "guidanceScale2": 0, + "outputType": "pil", + "maxSequenceLength": 512, + "attentionKwargsJson": "" + }, + "inputBindings": [ + { + "id": "qwen_multi_reference_product-reference-images-defaults", + "label": "Reviewed reference images", + "mediaType": "image", + "origin": "template", + "requiredAt": "workflow_start", + "field": "referenceImages", + "defaultAssets": [ + { + "id": "qwen_multi_reference_product-reference-image-1", + "label": "Reviewed reference image 1", + "mediaType": "image", + "previewPath": "/template-gallery/inputs/qwen_multi_reference_product.before.webp", + "runtimePath": "/template-gallery/runtime-inputs/assets/47e56fd165fd2610f34e952191d74e061269b9703ae9fd7f571491f38ce4992c.webp", + "runtimeSha256": "sha256:bytes:47e56fd165fd2610f34e952191d74e061269b9703ae9fd7f571491f38ce4992c", + "fileName": "qwen_multi_reference_product.reference_image_1.webp" + }, + { + "id": "qwen_multi_reference_product-reference-image-2", + "label": "Reviewed reference image 2", + "mediaType": "image", + "runtimePath": "/template-gallery/runtime-inputs/assets/39428f00f67b49fc6d624617df2964c9f869de21e7e188ef5b231ae04c4aeacc.webp", + "runtimeSha256": "sha256:bytes:39428f00f67b49fc6d624617df2964c9f869de21e7e188ef5b231ae04c4aeacc", + "fileName": "qwen_multi_reference_product.reference_image_2.webp" + } + ] + } + ], + "workflowBlocks": ["lora"], + "workflowBlockSettings": { + "lora": { + "model": { + "source": "hub", + "value": "lightx2v/Qwen-Image-Edit-2511-Lightning", + "revision": "d74eba145674fd7e31b949324e148e21e7118abd", + "sha256": "22226e8d05d354bb356627d428809f5afd7819399b077238a2b70a82883a904f", + "byteSize": 849608296, + "license": "Apache-2.0" + }, + "weightName": "Qwen-Image-Edit-2511-Lightning-4steps-V1.0-bf16.safetensors", + "scale": 1, + "schedulerClass": "FlowMatchEulerDiscreteScheduler", + "schedulerConfig": { + "base_image_seq_len": 256, + "base_shift": 1.0986122886681098, + "invert_sigmas": false, + "max_image_seq_len": 8192, + "max_shift": 1.0986122886681098, + "num_train_timesteps": 1000, + "shift": 1, + "shift_terminal": null, + "stochastic_sampling": false, + "time_shift_type": "exponential", + "use_beta_sigmas": false, + "use_dynamic_shifting": true, + "use_exponential_sigmas": false, + "use_karras_sigmas": false + } + } + } + }, + "originalComponentPolicy": null + }, + { + "templateId": "qwen_inpaint_mask_draft", + "contract": { + "lockedSettings": { + "mode": "inpaint", + "modelType": "QwenImageEditModularPipeline", + "prompt": "Inside the mask only, repaint the existing cream enamel surface of the same mug in muted dark burgundy vitreous enamel. Do not generate a new mug. Preserve its exact outer silhouette, rim diameter, body width, height, base footprint, handle position, handle opening, and full occupancy of the original object area. This is a color-and-surface edit only: do not shrink, narrow, move, duplicate, replace, or place anything behind or beneath the mug. Retain the existing dark-green rolled rim and the existing handle geometry. Give the burgundy enamel a believable slightly uneven fired surface, two or three pinhead cream flecks, restrained soft highlights, and subtle wear only on the exposed rim edge. Keep the front completely unbranded and text-free; add no badge, logo, symbol, lettering, decorative image, lid, saucer, coaster, pad, paper, cloth, shadow-card, backdrop, straw, cable, grip band, rubber base, or separate accessory. Match the field-desk perspective, grounded contact shadow, believable mug scale, neutral morning daylight, and warm canvas bounce. Preserve the field notebook, pencil, basalt samples, folded map, tent seams, support pole, open flap, background edges, crop, focus, and every unmasked table texture unchanged; blend the feathered mask edge without a dark or bright halo.", + "negativePrompt": "changed unmasked area, rectangular patch, dark patch behind mug, bright patch behind mug, visible mask boundary, shrunken mug, narrowed mug, wrong object scale, moved mug, floating mug, duplicate mug, changed silhouette, inconsistent texture, broken rim, warped handle, grip band, rubber base, text, badge, logo, symbol, lid, saucer, cloth, backdrop, straw, cable, clock, watch, dial, altered notebook, map, rocks or tent", + "width": 1024, + "height": 1024, + "seed": 6130, + "randomSeed": false, + "steps": 16, + "guidanceScale": 4, + "resourceMode": "auto", + "dtype": "bfloat16", + "quantizationMode": "none", + "autoOffload": true, + "offloadMode": "model_cpu", + "strength": 1, + "layers": 4, + "outpaintLeft": 256, + "outpaintRight": 256, + "outpaintTop": 0, + "outpaintBottom": 0, + "outpaintOverlap": 24, + "outpaintFeather": 8, + "outpaintFillColor": "black", + "sourceVideo": "", + "maskVideo": "", + "controlVideo": "", + "sourceAudio": "", + "referenceAudio": "", + "lyrics": "", + "audioDuration": 30, + "extensionDuration": 15, + "vocalLanguage": "en", + "repaintingStart": 0, + "repaintingEnd": 10, + "audioCoverStrength": 0.5, + "shift": 3, + "bpm": 0, + "keyscale": "C", + "timesignature": "4/4", + "numFrames": 81, + "fps": 16, + "conditioningScale": 1, + "guidanceScale2": 0, + "outputType": "pil", + "maxSequenceLength": 512, + "attentionKwargsJson": "" + }, + "inputBindings": [ + { + "id": "qwen_inpaint_mask_draft-reference-images-defaults", + "label": "Reviewed reference image", + "mediaType": "image", + "origin": "template", + "requiredAt": "workflow_start", + "field": "referenceImages", + "defaultAssets": [ + { + "id": "qwen_inpaint_mask_draft-reference-image-1", + "label": "Reviewed reference image 1", + "mediaType": "image", + "previewPath": "/template-gallery/inputs/qwen_inpaint_mask_draft.before.webp", + "runtimePath": "/template-gallery/runtime-inputs/assets/a2f8ac6f5937d6e618b48ce9947153b8233ff7a82dcf67f28766d20b9917d730.webp", + "runtimeSha256": "sha256:bytes:a2f8ac6f5937d6e618b48ce9947153b8233ff7a82dcf67f28766d20b9917d730", + "fileName": "qwen_inpaint_mask_draft.reference_image_1.webp" + } + ] + }, + { + "id": "qwen_inpaint_mask_draft-mask-image-defaults", + "label": "Reviewed mask image", + "mediaType": "image", + "origin": "template", + "requiredAt": "workflow_start", + "field": "maskImage", + "defaultAssets": [ + { + "id": "qwen_inpaint_mask_draft-mask-image", + "label": "Reviewed mask image", + "mediaType": "image", + "runtimePath": "/template-gallery/runtime-inputs/assets/29722ed072feec11cd36adce7b6cb48483bff3f05776048b93f960b5554ab533.png", + "runtimeSha256": "sha256:bytes:29722ed072feec11cd36adce7b6cb48483bff3f05776048b93f960b5554ab533", + "fileName": "qwen_inpaint_mask_draft.mask_image.png" + } + ] + } + ], + "workflowBlocks": [], + "workflowBlockSettings": {} + }, + "originalComponentPolicy": { + "attentionBackend": "auto", + "vaeSlicing": true, + "vaeTiling": true + } + }, + { + "templateId": "qwen_upscale_finish", + "contract": { + "lockedSettings": { + "mode": "text_to_image", + "modelType": "QwenImageModularPipeline", + "prompt": "Create a final-pass architectural visualization of a cliffside micro-library built from dark timber and translucent glass. Show a readable entrance sign \"TIDE INDEX\", evening ocean mist, warm interior shelves, crisp window mullions, natural rock contact shadows, fine material detail, and clean edges suitable for a later upscale block.", + "negativePrompt": "compression artifacts, noisy texture, blurry edges, warped sign text, impossible structure, melted windows, over-sharpened halos", + "width": 1024, + "height": 1024, + "seed": 7201, + "randomSeed": false, + "steps": 50, + "guidanceScale": 4, + "resourceMode": "expert", + "dtype": "bfloat16", + "quantizationMode": "none", + "autoOffload": true, + "offloadMode": "model_cpu", + "strength": 0.8, + "layers": 4, + "outpaintLeft": 256, + "outpaintRight": 256, + "outpaintTop": 0, + "outpaintBottom": 0, + "outpaintOverlap": 24, + "outpaintFeather": 8, + "outpaintFillColor": "black", + "sourceVideo": "", + "maskVideo": "", + "controlVideo": "", + "sourceAudio": "", + "referenceAudio": "", + "lyrics": "", + "audioDuration": 30, + "extensionDuration": 15, + "vocalLanguage": "en", + "repaintingStart": 0, + "repaintingEnd": 10, + "audioCoverStrength": 0.5, + "shift": 3, + "bpm": 0, + "keyscale": "C", + "timesignature": "4/4", + "numFrames": 81, + "fps": 16, + "conditioningScale": 1, + "guidanceScale2": 0, + "outputType": "pil", + "maxSequenceLength": 512, + "attentionKwargsJson": "" + }, + "inputBindings": [], + "workflowBlocks": ["upscaler"], + "workflowBlockSettings": { + "upscaler": { + "model": { + "source": "hub", + "value": "amd/realesrgan-x4plus/RealESRGAN_x4plus.pth", + "revision": "bda69abcaf525425b371622349e975245ae090c2", + "sha256": "4fa0d38905f75ac06eb49a7951b426670021be3018265fd191d2125df9d682f1", + "byteSize": 67040989, + "license": "bsd-3-clause" + }, + "downscale": 0.5 + } + } + }, + "originalComponentPolicy": { + "attentionBackend": "auto", + "vaeSlicing": true, + "vaeTiling": true + } + }, + { + "templateId": "qwen_outpaint_draft", + "contract": { + "lockedSettings": { + "mode": "outpaint", + "modelType": "QwenImageEditModularPipeline", + "prompt": "Extend the source documentary bakery photograph into a wider editorial frame while keeping both bakers, their anatomy, white workwear, the long shaped dough, central wooden bench, brick oven, fire, camera height, lens perspective, depth of field, and mixed cool-window and warm-fire light unchanged. Generate only plausible continuation outside the original borders: more of the same flour-dusted timber bench, a restrained brick wall and tall blue-hour window on the left, and the oven masonry plus one dark preparation shelf on the right. Match brick courses, bench thickness, floor line, grain, color temperature, focus falloff, smoke haze, and shadow direction. Add no people, loaves, signs, clocks, lamps, cables, or decorative props. Blend both boundaries with narrow invisible seams. Keep the two original bakers at their existing scale and positions; do not duplicate limbs, repeat tools, stretch the bench or oven, mirror the fire, or alter the square source region beyond the feathered overlap.", + "negativePrompt": "extra person, duplicate baker, extra limb, malformed hand, duplicated dough, repeated tool, stretched bench, bent brick courses, mirrored fire, mismatched lighting, changed central crop, obvious seam, border haze, sign, letters, clock, lamp, cable, decorative clutter", + "width": 1344, + "height": 768, + "seed": 7301, + "randomSeed": false, + "steps": 20, + "guidanceScale": 4, + "resourceMode": "auto", + "dtype": "bfloat16", + "quantizationMode": "none", + "autoOffload": true, + "offloadMode": "model_cpu", + "strength": 1, + "layers": 4, + "outpaintLeft": 288, + "outpaintRight": 288, + "outpaintTop": 0, + "outpaintBottom": 0, + "outpaintOverlap": 24, + "outpaintFeather": 8, + "outpaintFillColor": "black", + "sourceVideo": "", + "maskVideo": "", + "controlVideo": "", + "sourceAudio": "", + "referenceAudio": "", + "lyrics": "", + "audioDuration": 30, + "extensionDuration": 15, + "vocalLanguage": "en", + "repaintingStart": 0, + "repaintingEnd": 10, + "audioCoverStrength": 0.5, + "shift": 3, + "bpm": 0, + "keyscale": "C", + "timesignature": "4/4", + "numFrames": 81, + "fps": 16, + "conditioningScale": 1, + "guidanceScale2": 0, + "outputType": "pil", + "maxSequenceLength": 512, + "attentionKwargsJson": "" + }, + "inputBindings": [ + { + "id": "generated-outpaint-canvas", + "label": "Expanded source canvas", + "mediaType": "image", + "origin": "graph", + "requiredAt": "downstream", + "producer": { + "role": "qwenOutpaintCanvas", + "output": "image" + } + }, + { + "id": "generated-outpaint-mask", + "label": "Boundary mask", + "mediaType": "image", + "origin": "graph", + "requiredAt": "downstream", + "producer": { + "role": "qwenOutpaintCanvas", + "output": "mask" + } + }, + { + "id": "qwen_outpaint_draft-reference-images-defaults", + "label": "Reviewed reference image", + "mediaType": "image", + "origin": "template", + "requiredAt": "workflow_start", + "field": "referenceImages", + "defaultAssets": [ + { + "id": "qwen_outpaint_draft-reference-image-1", + "label": "Reviewed reference image 1", + "mediaType": "image", + "previewPath": "/template-gallery/inputs/qwen_outpaint_draft.before.webp", + "runtimePath": "/template-gallery/runtime-inputs/assets/862e292caa1759156fffde5cfccda8b97ec622514258f81986188cf63a836ea9.webp", + "runtimeSha256": "sha256:bytes:862e292caa1759156fffde5cfccda8b97ec622514258f81986188cf63a836ea9", + "fileName": "qwen_outpaint_draft.reference_image_1.webp" + } + ] + } + ], + "workflowBlocks": [], + "workflowBlockSettings": {} + }, + "originalComponentPolicy": { + "attentionBackend": "auto", + "vaeSlicing": true, + "vaeTiling": true + } + }, + { + "templateId": "low_vram", + "contract": { + "lockedSettings": { + "mode": "text_to_image", + "modelType": "ZImageModularPipeline", + "prompt": "Create a cinematic industrial-design story frame for Kepler Pin, a modular desk lamp used in a compact architect studio during a rainy blue-hour evening. Hero design: one circular brushed-brass shade, slim charcoal stem, weighted speckled-stone base, precise hinge hardware, braided black cable, and a warm pool of light grazing an open folded blueprint. Build clear foreground, midground, and background depth without adding another hero object: cropped drafting pencils and tracing-paper curls in the foreground, the lamp on a worn walnut desk in the midground, and softly blurred material samples, pinned sketches, and rain-streaked windows behind it. Use a low eye-level 50 mm three-quarter view, warm practical light against cool window ambience, believable brass anisotropy, stone pores, paper fibers, contact shadows, subtle reflections, and restrained film grain. Keep geometry stable and render no readable text.", + "negativePrompt": "extra lamps, competing hero objects, chaotic clutter, readable writing, noisy shadows, melted brass shade, broken hinge, floating base, weak silhouette, flat catalog lighting, blurry render", + "width": 1024, + "height": 1024, + "seed": 4204, + "randomSeed": false, + "steps": 8, + "guidanceScale": 1, + "resourceMode": "auto", + "dtype": "bfloat16", + "quantizationMode": "none", + "autoOffload": true, + "offloadMode": "model_cpu", + "strength": 0.8, + "layers": 4, + "outpaintLeft": 256, + "outpaintRight": 256, + "outpaintTop": 0, + "outpaintBottom": 0, + "outpaintOverlap": 24, + "outpaintFeather": 8, + "outpaintFillColor": "black", + "sourceVideo": "", + "maskVideo": "", + "controlVideo": "", + "sourceAudio": "", + "referenceAudio": "", + "lyrics": "", + "audioDuration": 30, + "extensionDuration": 15, + "vocalLanguage": "en", + "repaintingStart": 0, + "repaintingEnd": 10, + "audioCoverStrength": 0.5, + "shift": 3, + "bpm": 0, + "keyscale": "C", + "timesignature": "4/4", + "numFrames": 81, + "fps": 16, + "conditioningScale": 1, + "guidanceScale2": 0, + "outputType": "pil", + "maxSequenceLength": 512, + "attentionKwargsJson": "" + }, + "inputBindings": [], + "workflowBlocks": [], + "workflowBlockSettings": {} + }, + "originalComponentPolicy": { + "attentionBackend": "_native_math", + "vaeSlicing": true, + "vaeTiling": true + } + }, + { + "templateId": "fast_lora", + "contract": { + "lockedSettings": { + "mode": "text_to_image", + "modelType": "ZImageModularPipeline", + "prompt": "Create one premium industrial-design hero photograph of a fictional courier helmet named Relay Nine. Show one complete helmet only, centered in a confident helmet-left three-quarter view on a low warm-gray museum plinth. Product identity: compact graphite shell, a continuous narrow amber visor strip, brushed-titanium lower rim, three small rear cooling slots, and one flush circular comms port on the visible side. Keep the helmet physically plausible, wearable, and free of branding, text, or decorative controls. Use a chest-height 70 mm product camera, a soft overhead rectangular key, a narrow cool rim, realistic graphite microtexture, restrained amber transmission, titanium anisotropy, precise seams, a grounded contact shadow, and the pinned realism-LoRA finish. Keep the background quiet and the full silhouette unobstructed.", + "negativePrompt": "contact sheet, multiple helmets, duplicate product, cropped helmet, changing shell proportions, extra visor, extra vents, invented controls, text, logo, label, overprocessed texture, clutter, low detail, broken visor, floating product, noisy adapter artifacts", + "width": 1024, + "height": 1024, + "seed": 7423, + "randomSeed": false, + "steps": 8, + "guidanceScale": 1, + "resourceMode": "auto", + "dtype": "bfloat16", + "quantizationMode": "none", + "autoOffload": true, + "offloadMode": "model_cpu", + "strength": 0.8, + "layers": 4, + "outpaintLeft": 256, + "outpaintRight": 256, + "outpaintTop": 0, + "outpaintBottom": 0, + "outpaintOverlap": 24, + "outpaintFeather": 8, + "outpaintFillColor": "black", + "sourceVideo": "", + "maskVideo": "", + "controlVideo": "", + "sourceAudio": "", + "referenceAudio": "", + "lyrics": "", + "audioDuration": 30, + "extensionDuration": 15, + "vocalLanguage": "en", + "repaintingStart": 0, + "repaintingEnd": 10, + "audioCoverStrength": 0.5, + "shift": 3, + "bpm": 0, + "keyscale": "C", + "timesignature": "4/4", + "numFrames": 81, + "fps": 16, + "conditioningScale": 1, + "guidanceScale2": 0, + "outputType": "pil", + "maxSequenceLength": 512, + "attentionKwargsJson": "" + }, + "inputBindings": [], + "workflowBlocks": ["lora"], + "workflowBlockSettings": { + "lora": { + "model": { + "source": "hub", + "value": "youknownothing/v1-realism-v1-adapter-ZIT-lora", + "revision": "fd6d52d1199ad47f73c18db58339ad01ef766fa7", + "sha256": "1fe0487cfe69b31f6d93ec1a1a6e49f75e9ff77adc8d845380ba7352a3931190", + "byteSize": 170128272, + "license": "apache-2.0" + }, + "weightName": "v1-realism.safetensors", + "scale": 0.65 + } + } + }, + "originalComponentPolicy": { + "attentionBackend": "_native_math", + "vaeSlicing": true, + "vaeTiling": true + } + }, + { + "templateId": "high_quality", + "contract": { + "lockedSettings": { + "mode": "text_to_image", + "modelType": "QwenImageModularPipeline", + "prompt": "Create a photorealistic documentary editorial image inside a century-old neighborhood bakery during the first production hour before sunrise. Show one experienced baker in plain white work clothes shaping a long row of sourdough loaves on a scarred beech bench, with a second worker naturally blurred near the brick oven. Hands, tools, flour, dough weight and body posture must be anatomically and physically believable. Use a chest-height 35 mm camera from the end of the bench, warm practical oven light balanced by cool blue window light, real flour dust in the air, worn tile, linen cloth, steel trays and subtle steam. Preserve documentary imperfection, natural skin texture and realistic depth rather than symmetrical fantasy staging. The result must resemble a high-end real-location magazine photograph: no conservatory, orchids, cream overcoat, centered mannequin pose, CGI surfaces, theatrical spotlights or rendered text.", + "negativePrompt": "conservatory, greenhouse, orchids, curator, cream overcoat, CGI render, illustration, animated look, plastic skin, extra fingers, distorted hands, floating tools, duplicated bread, impossible oven, theatrical spotlights, oversaturated colors, soft focus", + "width": 1024, + "height": 1024, + "seed": 5104, + "randomSeed": false, + "steps": 50, + "guidanceScale": 4, + "resourceMode": "auto", + "dtype": "bfloat16", + "quantizationMode": "none", + "autoOffload": true, + "offloadMode": "model_cpu", + "strength": 0.8, + "layers": 4, + "outpaintLeft": 256, + "outpaintRight": 256, + "outpaintTop": 0, + "outpaintBottom": 0, + "outpaintOverlap": 24, + "outpaintFeather": 8, + "outpaintFillColor": "black", + "sourceVideo": "", + "maskVideo": "", + "controlVideo": "", + "sourceAudio": "", + "referenceAudio": "", + "lyrics": "", + "audioDuration": 30, + "extensionDuration": 15, + "vocalLanguage": "en", + "repaintingStart": 0, + "repaintingEnd": 10, + "audioCoverStrength": 0.5, + "shift": 3, + "bpm": 0, + "keyscale": "C", + "timesignature": "4/4", + "numFrames": 81, + "fps": 16, + "conditioningScale": 1, + "guidanceScale2": 0, + "outputType": "pil", + "maxSequenceLength": 512, + "attentionKwargsJson": "" + }, + "inputBindings": [], + "workflowBlocks": [], + "workflowBlockSettings": {} + }, + "originalComponentPolicy": { + "attentionBackend": "auto", + "vaeSlicing": true, + "vaeTiling": true + } + }, + { + "templateId": "flux_schnell_text_to_image", + "contract": { + "lockedSettings": { + "mode": "text_to_image", + "modelType": "FluxSchnellPipeline", + "prompt": "Create a photorealistic editorial landscape photograph of coastal conservation work after a rain shower on a windswept Atlantic headland. Show an experienced dry-stone mason in a mustard rain shell and navy work trousers repairing one storm-damaged field wall. The mason kneels side-on with both gloved hands setting one flat gray slate into a clear gap; the wall is built from irregular local stone laid in stable overlapping courses with visible through-stones and small packing stones, never mortar or impossible balancing rocks. Build a detailed working foreground around the repair: a wooden wheelbarrow holding sorted slate, one canvas tool roll with a mason hammer and two chisels, a taut yellow string line between short stakes, a folded waterproof site plan, muddy boot prints, and separate neat piles of large face stones and small packing stones. Every tool rests naturally and the worker has believable anatomy, grip, weight and ground contact. Use a natural eye-level 35 mm camera from the wet footpath. Let the repaired wall lead diagonally from the near left toward the worker at center, with rough grass, a distant white cottage, layered sea cliffs and gray Atlantic water receding on the right. Keep the horizon level and the perspective documentary rather than heroic. Use cool late-afternoon overcast light with one weak sun break catching wet slate edges, believable water-darkened stone and fabric, restrained reflections, natural gray-green color, fine documentary grain, and no signs, letters, logos or rendered text.", + "negativePrompt": "", + "width": 1024, + "height": 1024, + "seed": 8427, + "randomSeed": false, + "steps": 4, + "guidanceScale": 0, + "resourceMode": "auto", + "dtype": "bfloat16", + "quantizationMode": "none", + "autoOffload": true, + "offloadMode": "model_cpu", + "strength": 0.8, + "layers": 4, + "outpaintLeft": 256, + "outpaintRight": 256, + "outpaintTop": 0, + "outpaintBottom": 0, + "outpaintOverlap": 24, + "outpaintFeather": 8, + "outpaintFillColor": "black", + "sourceVideo": "", + "maskVideo": "", + "controlVideo": "", + "sourceAudio": "", + "referenceAudio": "", + "lyrics": "", + "audioDuration": 30, + "extensionDuration": 15, + "vocalLanguage": "en", + "repaintingStart": 0, + "repaintingEnd": 10, + "audioCoverStrength": 0.5, + "shift": 3, + "bpm": 0, + "keyscale": "C", + "timesignature": "4/4", + "numFrames": 81, + "fps": 16, + "conditioningScale": 1, + "guidanceScale2": 0, + "outputType": "pil", + "maxSequenceLength": 512, + "attentionKwargsJson": "" + }, + "inputBindings": [], + "workflowBlocks": [], + "workflowBlockSettings": {} + }, + "originalComponentPolicy": { + "attentionBackend": "auto", + "vaeSlicing": true, + "vaeTiling": true + } + }, + { + "templateId": "flux_dev_expert_text_to_image", + "contract": { + "lockedSettings": { + "mode": "text_to_image", + "modelType": "FluxDevPipeline", + "prompt": "Create a high-end documentary photograph inside a working coastal aircraft-restoration hangar during a winter rainstorm. Show one experienced mechanic inspecting the exposed radial engine of a 1940s aluminum seaplane. Frame the aircraft nose, engine, near wing root and both pontoons while the tail continues naturally outside the square crop. The aircraft rests on locked maintenance stands with both pontoons grounded, and every hose, cylinder, fastener and tool has believable mechanical scale and attachment. Compose a wide chest-height 35 mm view through a partially open hangar door, with rain streaks and the gray harbor outside, the mechanic and engine on the right third, a rolling tool chest and oil-stained work mat in the foreground, and timber roof trusses receding into depth. Preserve natural anatomy, safe working posture and clear spatial layers. Use cool storm daylight balanced by warm overhead shop lamps, realistic oxidized aluminum, wet concrete reflections, worn cotton coveralls, restrained color and fine editorial grain. Keep the fuselage completely unlettered: no decal, serial, writing, emblem, symbol or logo. No floating parts, invented aircraft geometry, duplicate person, plastic surface or theatrical glow.", + "negativePrompt": "", + "width": 1024, + "height": 1024, + "seed": 8402, + "randomSeed": false, + "steps": 28, + "guidanceScale": 3.5, + "resourceMode": "auto", + "dtype": "bfloat16", + "quantizationMode": "none", + "autoOffload": true, + "offloadMode": "group_cpu", + "strength": 0.8, + "layers": 4, + "outpaintLeft": 256, + "outpaintRight": 256, + "outpaintTop": 0, + "outpaintBottom": 0, + "outpaintOverlap": 24, + "outpaintFeather": 8, + "outpaintFillColor": "black", + "sourceVideo": "", + "maskVideo": "", + "controlVideo": "", + "sourceAudio": "", + "referenceAudio": "", + "lyrics": "", + "audioDuration": 30, + "extensionDuration": 15, + "vocalLanguage": "en", + "repaintingStart": 0, + "repaintingEnd": 10, + "audioCoverStrength": 0.5, + "shift": 3, + "bpm": 0, + "keyscale": "C", + "timesignature": "4/4", + "numFrames": 81, + "fps": 16, + "conditioningScale": 1, + "guidanceScale2": 0, + "outputType": "pil", + "maxSequenceLength": 512, + "attentionKwargsJson": "" + }, + "inputBindings": [], + "workflowBlocks": [], + "workflowBlockSettings": {} + }, + "originalComponentPolicy": { + "attentionBackend": "auto", + "vaeSlicing": true, + "vaeTiling": true + } + }, + { + "templateId": "flux_lora_cinematic_octane_3d", + "contract": { + "lockedSettings": { + "mode": "text_to_image", + "modelType": "FluxDevPipeline", + "prompt": "cinematic_octane, 3D Portrait, 3d render. One adult female deep-sea engineer in a centered chest-up portrait, with her complete head, both shoulders, and the full broad pressure collar visible inside the frame. Sharp focus on both symmetrical eyes. Damp short black hair with individual strands, natural skin pores, and one thin healed scar crossing only her right eyebrow; intact skin, no blood, bruise, swelling, or open wound. Plain graphite diving suit with crisp woven fabric and one broad oxidized-brass pressure collar with fine brushed-metal microtexture. Controlled cinematic CG depth, cool cyan key light, restrained warm amber rim light, realistic material response, no text, logo, watermark, or extra person.", + "negativePrompt": "", + "width": 768, + "height": 1024, + "seed": 9371, + "randomSeed": false, + "steps": 24, + "guidanceScale": 3, + "resourceMode": "auto", + "dtype": "bfloat16", + "quantizationMode": "none", + "autoOffload": true, + "offloadMode": "group_cpu", + "strength": 0.8, + "layers": 4, + "outpaintLeft": 256, + "outpaintRight": 256, + "outpaintTop": 0, + "outpaintBottom": 0, + "outpaintOverlap": 24, + "outpaintFeather": 8, + "outpaintFillColor": "black", + "sourceVideo": "", + "maskVideo": "", + "controlVideo": "", + "sourceAudio": "", + "referenceAudio": "", + "lyrics": "", + "audioDuration": 30, + "extensionDuration": 15, + "vocalLanguage": "en", + "repaintingStart": 0, + "repaintingEnd": 10, + "audioCoverStrength": 0.5, + "shift": 3, + "bpm": 0, + "keyscale": "C", + "timesignature": "4/4", + "numFrames": 81, + "fps": 16, + "conditioningScale": 1, + "guidanceScale2": 0, + "outputType": "pil", + "maxSequenceLength": 512, + "attentionKwargsJson": "" + }, + "inputBindings": [], + "workflowBlocks": ["lora"], + "workflowBlockSettings": { + "lora": { + "model": { + "source": "hub", + "value": "aixonlab/FLUX.1-dev-LoRA-Cinematic-Octane", + "revision": "3ab70503ba8df37565d0212e2876ec48e35e7cb4", + "sha256": "cad317378978ba03438c9f00a4fa5ef0628c4a65937c69b8420feaee5e780f81", + "byteSize": 171969432, + "license": "FLUX.1-dev non-commercial" + }, + "weightName": "cinematic-octane.safetensors", + "adapterName": "cinematic_octane", + "scale": 0.8, + "additionalAdapters": [ + { + "model": { + "source": "hub", + "value": "prithivMLmods/3D-Render-Flux-LoRA", + "revision": "6b32a1624d3fdfab4d518223e8311731dd432cd8", + "sha256": "64e2788c9d236a3e5f62323baa8853116e2a9c7df41cd2a048141eb22cd46d89", + "byteSize": 612747200, + "license": "CreativeML OpenRAIL-M adapter; FLUX.1-dev base non-commercial" + }, + "weightName": "3D_Portrait.safetensors", + "adapterName": "render_3d", + "scale": 0.18 + } + ] + } + } + }, + "originalComponentPolicy": { + "attentionBackend": "auto", + "vaeSlicing": true, + "vaeTiling": true + } + }, + { + "templateId": "flux_lora_ghibli_story", + "contract": { + "lockedSettings": { + "mode": "text_to_image", + "modelType": "FluxDevPipeline", + "prompt": "Ghibli style original-character story illustration on a broad rural station platform safely separated from the railway. Show two complete travelers together in the foreground: a young bicycle courier with a short chestnut bob, round brass goggles, teal rain cape, bicycle, and one red travel satchel; beside her, a visibly elderly woman station keeper with silver-gray hair, a wrinkled kind face, forest-green uniform, and her own smaller red travel case. They pause together before departure with warm, familiar expressions. Keep both people, both bags, and the entire bicycle on the platform, never on the rails. A small cream local train is stopped behind them across the platform edge. Lush mossy forest after rain, warm late-afternoon light, hand-painted cel-animation background, no existing franchise character, logo, lettering or watermark.", + "negativePrompt": "", + "width": 1024, + "height": 768, + "seed": 9361, + "randomSeed": false, + "steps": 30, + "guidanceScale": 3.5, + "resourceMode": "auto", + "dtype": "bfloat16", + "quantizationMode": "none", + "autoOffload": true, + "offloadMode": "group_cpu", + "strength": 0.8, + "layers": 4, + "outpaintLeft": 256, + "outpaintRight": 256, + "outpaintTop": 0, + "outpaintBottom": 0, + "outpaintOverlap": 24, + "outpaintFeather": 8, + "outpaintFillColor": "black", + "sourceVideo": "", + "maskVideo": "", + "controlVideo": "", + "sourceAudio": "", + "referenceAudio": "", + "lyrics": "", + "audioDuration": 30, + "extensionDuration": 15, + "vocalLanguage": "en", + "repaintingStart": 0, + "repaintingEnd": 10, + "audioCoverStrength": 0.5, + "shift": 3, + "bpm": 0, + "keyscale": "C", + "timesignature": "4/4", + "numFrames": 81, + "fps": 16, + "conditioningScale": 1, + "guidanceScale2": 0, + "outputType": "pil", + "maxSequenceLength": 512, + "attentionKwargsJson": "" + }, + "inputBindings": [], + "workflowBlocks": ["lora"], + "workflowBlockSettings": { + "lora": { + "model": { + "source": "hub", + "value": "alvarobartt/ghibli-characters-flux-lora", + "revision": "ed846114c71efc525e7f5a51e274dc976bb970a8", + "sha256": "5216bd7eeb12bf6f18cd5d40cb090831796b28aca7446577d08c5a7e4a09dc63", + "byteSize": 171969336, + "license": "flux-1-dev-non-commercial; personal-use-only" + }, + "weightName": "ghibli-characters-flux-lora.safetensors", + "adapterName": "ghibli_style", + "scale": 0.8 + } + } + }, + "originalComponentPolicy": { + "attentionBackend": "auto", + "vaeSlicing": true, + "vaeTiling": true + } + }, + { + "templateId": "flux_lora_oil_painting", + "contract": { + "lockedSettings": { + "mode": "text_to_image", + "modelType": "FluxDevPipeline", + "prompt": "A realistic oil painting of one weathered lighthouse keeper carrying a brass storm lantern along a cliff path at dusk, the lighthouse beam beginning to sweep across a darkening sea while a squall approaches beyond the headland. Large simple composition, one complete figure, wind-bent grass, restrained earth and ultramarine palette, strong textured brushwork, soft distant background, believable anatomy and a clear journey toward the lit doorway.", + "negativePrompt": "", + "width": 1024, + "height": 1024, + "seed": 8451, + "randomSeed": false, + "steps": 28, + "guidanceScale": 3.5, + "resourceMode": "auto", + "dtype": "bfloat16", + "quantizationMode": "none", + "autoOffload": true, + "offloadMode": "group_cpu", + "strength": 0.8, + "layers": 4, + "outpaintLeft": 256, + "outpaintRight": 256, + "outpaintTop": 0, + "outpaintBottom": 0, + "outpaintOverlap": 24, + "outpaintFeather": 8, + "outpaintFillColor": "black", + "sourceVideo": "", + "maskVideo": "", + "controlVideo": "", + "sourceAudio": "", + "referenceAudio": "", + "lyrics": "", + "audioDuration": 30, + "extensionDuration": 15, + "vocalLanguage": "en", + "repaintingStart": 0, + "repaintingEnd": 10, + "audioCoverStrength": 0.5, + "shift": 3, + "bpm": 0, + "keyscale": "C", + "timesignature": "4/4", + "numFrames": 81, + "fps": 16, + "conditioningScale": 1, + "guidanceScale2": 0, + "outputType": "pil", + "maxSequenceLength": 512, + "attentionKwargsJson": "" + }, + "inputBindings": [], + "workflowBlocks": ["lora"], + "workflowBlockSettings": { + "lora": { + "model": { + "source": "hub", + "value": "dtthanh/flux_oil_painting_lora", + "revision": "1118ed195c7304ffc52a6cd42b41a520ef749cd9", + "sha256": "6de4e6d451ad7690db7185cf84235bf9c15c80aaeb69793fb6647fab62bdd704", + "byteSize": 38421064, + "license": "apache-2.0 adapter; FLUX.1-dev base non-commercial" + }, + "weightName": "flux-oilpainting1.3-00001.safetensors", + "adapterName": "oil_painting", + "scale": 0.85 + } + } + }, + "originalComponentPolicy": { + "attentionBackend": "auto", + "vaeSlicing": true, + "vaeTiling": true + } + }, + { + "templateId": "flux_lora_film_noir", + "contract": { + "lockedSettings": { + "mode": "text_to_image", + "modelType": "FluxDevPipeline", + "prompt": "One exhausted night-shift radio operator discovers an urgent handwritten warning emerging from a teletype machine in an empty 1940s newsroom, one hand stopping above the paper while the other reaches for a black telephone, rain streaking the tall window and a clock approaching midnight, low Dutch camera angle, hard venetian-blind shadows, cigarette haze without a visible smoker, in the style of FLMNR, high contrast black and white, one clear dramatic decision, no modern device, logo or watermark.", + "negativePrompt": "", + "width": 1024, + "height": 1024, + "seed": 8452, + "randomSeed": false, + "steps": 28, + "guidanceScale": 3.5, + "resourceMode": "auto", + "dtype": "bfloat16", + "quantizationMode": "none", + "autoOffload": true, + "offloadMode": "group_cpu", + "strength": 0.8, + "layers": 4, + "outpaintLeft": 256, + "outpaintRight": 256, + "outpaintTop": 0, + "outpaintBottom": 0, + "outpaintOverlap": 24, + "outpaintFeather": 8, + "outpaintFillColor": "black", + "sourceVideo": "", + "maskVideo": "", + "controlVideo": "", + "sourceAudio": "", + "referenceAudio": "", + "lyrics": "", + "audioDuration": 30, + "extensionDuration": 15, + "vocalLanguage": "en", + "repaintingStart": 0, + "repaintingEnd": 10, + "audioCoverStrength": 0.5, + "shift": 3, + "bpm": 0, + "keyscale": "C", + "timesignature": "4/4", + "numFrames": 81, + "fps": 16, + "conditioningScale": 1, + "guidanceScale2": 0, + "outputType": "pil", + "maxSequenceLength": 512, + "attentionKwargsJson": "" + }, + "inputBindings": [], + "workflowBlocks": ["lora"], + "workflowBlockSettings": { + "lora": { + "model": { + "source": "hub", + "value": "dvyio/flux-lora-film-noir", + "revision": "7a7ff13bbae807a2db6c2e4918f3e13bb1265e60", + "sha256": "2970393ce5376e982a594808c1ff0a87f9cec5ddc0da2c094d2a4305d4079324", + "byteSize": 172070512, + "license": "flux-1-dev-non-commercial" + }, + "weightName": "5ee2c3c6409f4618a134b883da64d04e_pytorch_lora_weights.safetensors", + "adapterName": "film_noir", + "scale": 1 + } + } + }, + "originalComponentPolicy": { + "attentionBackend": "auto", + "vaeSlicing": true, + "vaeTiling": true + } + }, + { + "templateId": "flux_lora_retro_comic", + "contract": { + "lockedSettings": { + "mode": "text_to_image", + "modelType": "FluxDevPipeline", + "prompt": "c0m1c style vintage 1930s comic strip panel on a city-hall rooftop: one night watchman yanks down a red emergency lever beside an enormous brass alarm bell as a meteor streaks high across the open sky toward the sleeping city below. Show the lever, bell, watchman and distant meteor as four clearly separate objects with readable cause and effect. Include exactly one large speech balloon. Inside it print exactly these three uppercase words, including the middle word: \u201cWAKE THE CITY!\u201d The balloon must read WAKE THE CITY!, not WAKE CITY, and no other text may appear. Bold ink contours, limited vermilion teal and cream printing, coarse halftone dots, dramatic diagonal composition, aged paper edges, no telescope, cannon, firearm, beam, extra panel, duplicated limb or watermark.", + "negativePrompt": "", + "width": 1024, + "height": 1024, + "seed": 9362, + "randomSeed": false, + "steps": 28, + "guidanceScale": 3.5, + "resourceMode": "auto", + "dtype": "bfloat16", + "quantizationMode": "none", + "autoOffload": true, + "offloadMode": "group_cpu", + "strength": 0.8, + "layers": 4, + "outpaintLeft": 256, + "outpaintRight": 256, + "outpaintTop": 0, + "outpaintBottom": 0, + "outpaintOverlap": 24, + "outpaintFeather": 8, + "outpaintFillColor": "black", + "sourceVideo": "", + "maskVideo": "", + "controlVideo": "", + "sourceAudio": "", + "referenceAudio": "", + "lyrics": "", + "audioDuration": 30, + "extensionDuration": 15, + "vocalLanguage": "en", + "repaintingStart": 0, + "repaintingEnd": 10, + "audioCoverStrength": 0.5, + "shift": 3, + "bpm": 0, + "keyscale": "C", + "timesignature": "4/4", + "numFrames": 81, + "fps": 16, + "conditioningScale": 1, + "guidanceScale2": 0, + "outputType": "pil", + "maxSequenceLength": 512, + "attentionKwargsJson": "" + }, + "inputBindings": [], + "workflowBlocks": ["lora"], + "workflowBlockSettings": { + "lora": { + "model": { + "source": "hub", + "value": "renderartist/retrocomicflux", + "revision": "46f73222df6c97c9f56c3bef42a11979ba5d5aeb", + "sha256": "af31beee9ea67955d36425f25624d2585fa31271680013e5c9731690aeb78f9d", + "byteSize": 229879376, + "license": "creativeml-openrail-m adapter; FLUX.1-dev base non-commercial" + }, + "weightName": "Retro_Comic_Flux_v2_renderartist.safetensors", + "adapterName": "retro_comic", + "scale": 0.9 + } + } + }, + "originalComponentPolicy": { + "attentionBackend": "auto", + "vaeSlicing": true, + "vaeTiling": true + } + }, + { + "templateId": "flux_lora_watercolor", + "contract": { + "lockedSettings": { + "mode": "text_to_image", + "modelType": "FluxDevPipeline", + "prompt": "AQUACOLTOK watercolor painting on clean white cotton paper with exactly two complete people. On the near half of a narrow footbridge, one mountain trail engineer kneels and secures the final plank. On the far bank, one hiker stands and waits safely, fully visible and clearly separate from the engineer. Show the bridge connecting both banks, a turquoise stream below, one red survey flag and one compact tool satchel beside the engineer, and pale alpine peaks dissolving into mist. Transparent pigment blooms, confident indigo and burnt-sienna linework, generous unpainted margins, clear cause and effect, no extra people, lettering, logo or photorealistic rendering.", + "negativePrompt": "", + "width": 1024, + "height": 1024, + "seed": 9363, + "randomSeed": false, + "steps": 28, + "guidanceScale": 3.5, + "resourceMode": "auto", + "dtype": "bfloat16", + "quantizationMode": "none", + "autoOffload": true, + "offloadMode": "group_cpu", + "strength": 0.8, + "layers": 4, + "outpaintLeft": 256, + "outpaintRight": 256, + "outpaintTop": 0, + "outpaintBottom": 0, + "outpaintOverlap": 24, + "outpaintFeather": 8, + "outpaintFillColor": "black", + "sourceVideo": "", + "maskVideo": "", + "controlVideo": "", + "sourceAudio": "", + "referenceAudio": "", + "lyrics": "", + "audioDuration": 30, + "extensionDuration": 15, + "vocalLanguage": "en", + "repaintingStart": 0, + "repaintingEnd": 10, + "audioCoverStrength": 0.5, + "shift": 3, + "bpm": 0, + "keyscale": "C", + "timesignature": "4/4", + "numFrames": 81, + "fps": 16, + "conditioningScale": 1, + "guidanceScale2": 0, + "outputType": "pil", + "maxSequenceLength": 512, + "attentionKwargsJson": "" + }, + "inputBindings": [], + "workflowBlocks": ["lora"], + "workflowBlockSettings": { + "lora": { + "model": { + "source": "hub", + "value": "SebastianBodza/Flux_Aquarell_Watercolor_v2", + "revision": "a565b2140a05f1eece244514f90d2e29b3b1d45d", + "sha256": "e63e44417df35456f425329ad4334143a8bc9fd10316345730ade434106b050e", + "byteSize": 171969424, + "license": "flux-1-dev-non-commercial" + }, + "weightName": "lora.safetensors", + "adapterName": "watercolor", + "scale": 0.9 + } + } + }, + "originalComponentPolicy": { + "attentionBackend": "auto", + "vaeSlicing": true, + "vaeTiling": true + } + }, + { + "templateId": "flux_lora_paper_cutout", + "contract": { + "lockedSettings": { + "mode": "text_to_image", + "modelType": "FluxDevPipeline", + "prompt": "An original folktale scene of a small village astronomer climbing a moonlit hill to relight a fallen star lantern before dawn, layered midnight-blue hills, amber village windows, silver clouds and one winding path built from visibly cut textured paper with raised edges and soft cast shadows, Paper Cutout Style, coherent foreground middle ground and sky layers, simple readable silhouette, no existing character, text, logo or plastic 3D render.", + "negativePrompt": "", + "width": 1024, + "height": 1024, + "seed": 8455, + "randomSeed": false, + "steps": 28, + "guidanceScale": 3.5, + "resourceMode": "auto", + "dtype": "bfloat16", + "quantizationMode": "none", + "autoOffload": true, + "offloadMode": "group_cpu", + "strength": 0.8, + "layers": 4, + "outpaintLeft": 256, + "outpaintRight": 256, + "outpaintTop": 0, + "outpaintBottom": 0, + "outpaintOverlap": 24, + "outpaintFeather": 8, + "outpaintFillColor": "black", + "sourceVideo": "", + "maskVideo": "", + "controlVideo": "", + "sourceAudio": "", + "referenceAudio": "", + "lyrics": "", + "audioDuration": 30, + "extensionDuration": 15, + "vocalLanguage": "en", + "repaintingStart": 0, + "repaintingEnd": 10, + "audioCoverStrength": 0.5, + "shift": 3, + "bpm": 0, + "keyscale": "C", + "timesignature": "4/4", + "numFrames": 81, + "fps": 16, + "conditioningScale": 1, + "guidanceScale2": 0, + "outputType": "pil", + "maxSequenceLength": 512, + "attentionKwargsJson": "" + }, + "inputBindings": [], + "workflowBlocks": ["lora"], + "workflowBlockSettings": { + "lora": { + "model": { + "source": "hub", + "value": "Norod78/Flux_1_Dev_LoRA_Paper-Cutout-Style", + "revision": "5cdd7ac47ad1b99f705ac2a03a39d480d34abb5d", + "sha256": "1863f382199698b8b756d98ecd8060698d5928ed30009cd16f0531f142e4057b", + "byteSize": 171969408, + "license": "FLUX.1-dev terms" + }, + "weightName": "Flux_1_Dev_LoRA_Paper-Cutout-Style.safetensors", + "adapterName": "paper_cutout", + "scale": 0.9 + } + } + }, + "originalComponentPolicy": { + "attentionBackend": "auto", + "vaeSlicing": true, + "vaeTiling": true + } + }, + { + "templateId": "flux_lora_photoreal_documentary", + "contract": { + "lockedSettings": { + "mode": "text_to_image", + "modelType": "FluxDevPipeline", + "prompt": "A natural documentary photograph of a rural veterinarian examining an injured tawny owl inside a working wildlife rescue clinic at dawn. Show one veterinarian in plain navy scrubs supporting the owl with both gloved hands while a rehabilitator adjusts one small examination lamp, stainless worktable, folded cotton towel, transport crate and rain-dark trees visible through the window. Eye-level 50 mm lens, practical window and lamp light, realistic skin, feathers, fabric and metal, restrained color, believable anatomy and hand contact, no glamour pose, illustration, CGI, logo, text or duplicated animal.", + "negativePrompt": "", + "width": 1024, + "height": 1024, + "seed": 8456, + "randomSeed": false, + "steps": 28, + "guidanceScale": 3.5, + "resourceMode": "auto", + "dtype": "bfloat16", + "quantizationMode": "none", + "autoOffload": true, + "offloadMode": "group_cpu", + "strength": 0.8, + "layers": 4, + "outpaintLeft": 256, + "outpaintRight": 256, + "outpaintTop": 0, + "outpaintBottom": 0, + "outpaintOverlap": 24, + "outpaintFeather": 8, + "outpaintFillColor": "black", + "sourceVideo": "", + "maskVideo": "", + "controlVideo": "", + "sourceAudio": "", + "referenceAudio": "", + "lyrics": "", + "audioDuration": 30, + "extensionDuration": 15, + "vocalLanguage": "en", + "repaintingStart": 0, + "repaintingEnd": 10, + "audioCoverStrength": 0.5, + "shift": 3, + "bpm": 0, + "keyscale": "C", + "timesignature": "4/4", + "numFrames": 81, + "fps": 16, + "conditioningScale": 1, + "guidanceScale2": 0, + "outputType": "pil", + "maxSequenceLength": 512, + "attentionKwargsJson": "" + }, + "inputBindings": [], + "workflowBlocks": ["lora"], + "workflowBlockSettings": { + "lora": { + "model": { + "source": "hub", + "value": "XLabs-AI/flux-RealismLora", + "revision": "1965e17d2e745fcbf8f4004bdbdf603421ef37a8", + "sha256": "0a83a924b822b70b5e458d27935ebfa7713edaee04ff9f194209525354031eca", + "byteSize": 22431400, + "license": "flux-1-dev-non-commercial" + }, + "weightName": "lora.safetensors", + "adapterName": "photoreal", + "scale": 0.85 + } + } + }, + "originalComponentPolicy": { + "attentionBackend": "auto", + "vaeSlicing": true, + "vaeTiling": true + } + }, + { + "templateId": "flux_kontext_edit", + "contract": { + "lockedSettings": { + "mode": "edit_image", + "modelType": "FluxKontextPipeline", + "prompt": "Edit the source photo. Keep the bottle outline, pump, label, exact ASTERMIST and LAVENDER SLEEP SPRAY text, camera, background, and shadow fixed. Change only the lavender body to brushed graphite metal, clear cap to frosted glass, and silver collar to amber metal. Match light, perspective, grain, reflections, and contact shadow. No shape drift, moved parts, duplicate edges, or misspelled text.", + "negativePrompt": "", + "width": 1024, + "height": 1024, + "seed": 8443, + "randomSeed": false, + "steps": 28, + "guidanceScale": 3.5, + "resourceMode": "expert", + "dtype": "bfloat16", + "quantizationMode": "none", + "autoOffload": true, + "offloadMode": "group_cpu", + "strength": 1, + "layers": 4, + "outpaintLeft": 256, + "outpaintRight": 256, + "outpaintTop": 0, + "outpaintBottom": 0, + "outpaintOverlap": 24, + "outpaintFeather": 8, + "outpaintFillColor": "black", + "sourceVideo": "", + "maskVideo": "", + "controlVideo": "", + "sourceAudio": "", + "referenceAudio": "", + "lyrics": "", + "audioDuration": 30, + "extensionDuration": 15, + "vocalLanguage": "en", + "repaintingStart": 0, + "repaintingEnd": 10, + "audioCoverStrength": 0.5, + "shift": 3, + "bpm": 0, + "keyscale": "C", + "timesignature": "4/4", + "numFrames": 81, + "fps": 16, + "conditioningScale": 1, + "guidanceScale2": 0, + "outputType": "pil", + "maxSequenceLength": 512, + "attentionKwargsJson": "" + }, + "inputBindings": [ + { + "id": "flux_kontext_edit-reference-images-defaults", + "label": "Reviewed reference image", + "mediaType": "image", + "origin": "template", + "requiredAt": "workflow_start", + "field": "referenceImages", + "defaultAssets": [ + { + "id": "flux_kontext_edit-reference-image-1", + "label": "Reviewed reference image 1", + "mediaType": "image", + "previewPath": "/template-gallery/inputs/flux_kontext_edit.before.webp", + "runtimePath": "/template-gallery/runtime-inputs/assets/a7b61f36043354596eb01e702474300b222cb32e304bcf259506cad03917ce9b.webp", + "runtimeSha256": "sha256:bytes:a7b61f36043354596eb01e702474300b222cb32e304bcf259506cad03917ce9b", + "fileName": "flux_kontext_edit.reference_image_1.webp" + } + ] + } + ], + "workflowBlocks": [], + "workflowBlockSettings": {} + }, + "originalComponentPolicy": { + "attentionBackend": "auto", + "vaeSlicing": true, + "vaeTiling": true + } + }, + { + "templateId": "flux_fill_inpaint", + "contract": { + "lockedSettings": { + "mode": "inpaint", + "modelType": "FluxFillPipeline", + "prompt": "Mask contract: replace only the masked source region with a compact walnut-and-brass tabletop radio; preserve all unmasked people, hands, props, typography, background geometry, camera framing, and source pixels conceptually unchanged. Replacement design: low rectangular smoked-walnut cabinet, woven charcoal speaker cloth, two knurled brass dials, one narrow amber frequency scale without readable station text, small rubber feet, and a believable size relative to adjacent objects. Integration: continue any hidden tabletop and background through the old object, match local lens perspective, horizon, focus plane, texture scale, grain, and exposure, then ground the radio with correct contact shadow, cast-shadow softness, nearby color spill, reflections, and foreground occlusion. Use the full mask without leaking across its boundary. Result: one seamless source photograph with no halo, pasted edge, floating base, repeated texture, warped radio, extra knobs, changed unmasked content, mismatched lighting, or low-detail fill.", + "negativePrompt": "", + "width": 1024, + "height": 1024, + "seed": 8404, + "randomSeed": false, + "steps": 50, + "guidanceScale": 30, + "resourceMode": "expert", + "dtype": "bfloat16", + "quantizationMode": "none", + "autoOffload": true, + "offloadMode": "group_cpu", + "strength": 1, + "layers": 4, + "outpaintLeft": 256, + "outpaintRight": 256, + "outpaintTop": 0, + "outpaintBottom": 0, + "outpaintOverlap": 24, + "outpaintFeather": 8, + "outpaintFillColor": "black", + "sourceVideo": "", + "maskVideo": "", + "controlVideo": "", + "sourceAudio": "", + "referenceAudio": "", + "lyrics": "", + "audioDuration": 30, + "extensionDuration": 15, + "vocalLanguage": "en", + "repaintingStart": 0, + "repaintingEnd": 10, + "audioCoverStrength": 0.5, + "shift": 3, + "bpm": 0, + "keyscale": "C", + "timesignature": "4/4", + "numFrames": 81, + "fps": 16, + "conditioningScale": 1, + "guidanceScale2": 0, + "outputType": "pil", + "maxSequenceLength": 512, + "attentionKwargsJson": "" + }, + "inputBindings": [ + { + "id": "flux_fill_inpaint-reference-images-defaults", + "label": "Reviewed reference image", + "mediaType": "image", + "origin": "template", + "requiredAt": "workflow_start", + "field": "referenceImages", + "defaultAssets": [ + { + "id": "flux_fill_inpaint-reference-image-1", + "label": "Reviewed reference image 1", + "mediaType": "image", + "previewPath": "/template-gallery/inputs/flux_fill_inpaint.before.webp", + "runtimePath": "/template-gallery/runtime-inputs/assets/b7c221b367738177e32fece56067d743df96282a6ccb2afd040ee89ea0a8f678.webp", + "runtimeSha256": "sha256:bytes:b7c221b367738177e32fece56067d743df96282a6ccb2afd040ee89ea0a8f678", + "fileName": "flux_fill_inpaint.reference_image_1.webp" + } + ] + }, + { + "id": "flux_fill_inpaint-mask-image-defaults", + "label": "Reviewed mask image", + "mediaType": "image", + "origin": "template", + "requiredAt": "workflow_start", + "field": "maskImage", + "defaultAssets": [ + { + "id": "flux_fill_inpaint-mask-image", + "label": "Reviewed mask image", + "mediaType": "image", + "runtimePath": "/template-gallery/runtime-inputs/assets/16f6ea27b5d7cfaed106e2e694572bbe92b7c7e2a43835b3f4313a748f510f74.png", + "runtimeSha256": "sha256:bytes:16f6ea27b5d7cfaed106e2e694572bbe92b7c7e2a43835b3f4313a748f510f74", + "fileName": "flux_fill_inpaint.mask_image.png" + } + ] + } + ], + "workflowBlocks": [], + "workflowBlockSettings": {} + }, + "originalComponentPolicy": { + "attentionBackend": "auto", + "vaeSlicing": true, + "vaeTiling": true + } + }, + { + "templateId": "flux_control_canny", + "contract": { + "lockedSettings": { + "mode": "control_image", + "modelType": "FluxCannyPipeline", + "prompt": "Control contract: strictly follow the supplied Canny control image as the authoritative architecture for massing, roofline, facade divisions, openings, stairs, perspective, horizon, and primary edges; do not move, omit, or invent major structural lines. Appearance brief: render the controlled structure as a compact coastal research pavilion built from board-formed concrete, low-iron glass, dark bronze mullions, weathered timber soffits, and a shallow reflecting pool. Add only scale-appropriate doors, railings, interior desks, dune grass, and one distant person where the control geometry permits. Camera and light: retain the control viewpoint and vanishing lines, wide 32 mm architectural lens, late-afternoon overcast key with a warm break near the horizon, soft interior practicals, grounded environmental shadows, realistic glass reflections, subtle sea haze, restrained gray-bronze-amber palette, and crisp material microtexture. Output must honor the edge map while remaining photographic: no warped facade, shifted windows, extra floor, broken stairs, ignored control lines, cluttered foreground, impossible reflection, flat light, blur, or rendered labels.", + "negativePrompt": "", + "width": 1024, + "height": 1024, + "seed": 8405, + "randomSeed": false, + "steps": 50, + "guidanceScale": 30, + "resourceMode": "expert", + "dtype": "bfloat16", + "quantizationMode": "none", + "autoOffload": true, + "offloadMode": "group_cpu", + "strength": 0.8, + "layers": 4, + "outpaintLeft": 256, + "outpaintRight": 256, + "outpaintTop": 0, + "outpaintBottom": 0, + "outpaintOverlap": 24, + "outpaintFeather": 8, + "outpaintFillColor": "black", + "sourceVideo": "", + "maskVideo": "", + "controlVideo": "", + "sourceAudio": "", + "referenceAudio": "", + "lyrics": "", + "audioDuration": 30, + "extensionDuration": 15, + "vocalLanguage": "en", + "repaintingStart": 0, + "repaintingEnd": 10, + "audioCoverStrength": 0.5, + "shift": 3, + "bpm": 0, + "keyscale": "C", + "timesignature": "4/4", + "numFrames": 81, + "fps": 16, + "conditioningScale": 1, + "guidanceScale2": 0, + "outputType": "pil", + "maxSequenceLength": 512, + "attentionKwargsJson": "" + }, + "inputBindings": [ + { + "id": "flux_control_canny-control-image-defaults", + "label": "Reviewed control image", + "mediaType": "image", + "origin": "template", + "requiredAt": "workflow_start", + "field": "controlImage", + "defaultAssets": [ + { + "id": "flux_control_canny-control-image", + "label": "Reviewed control image", + "mediaType": "image", + "previewPath": "/template-gallery/inputs/flux_control_canny.before.png", + "runtimePath": "/template-gallery/runtime-inputs/assets/3d03ee22a3d29068f30f18afcb31e86ea455fbfbe1ca5aa172cf633a26f21339.png", + "runtimeSha256": "sha256:bytes:3d03ee22a3d29068f30f18afcb31e86ea455fbfbe1ca5aa172cf633a26f21339", + "fileName": "flux_control_canny.control_image.png" + } + ] + } + ], + "workflowBlocks": [], + "workflowBlockSettings": {} + }, + "originalComponentPolicy": { + "attentionBackend": "auto", + "vaeSlicing": true, + "vaeTiling": true + } + }, + { + "templateId": "flux_krea_text_to_image", + "contract": { + "lockedSettings": { + "mode": "text_to_image", + "modelType": "FluxKreaPipeline", + "prompt": "Create a natural editorial portrait of one ceramic artist in a sunlit coastal workshop, hands resting beside a half-finished cobalt vase. Preserve believable anatomy, clay dust, linen texture, wood grain, and an uncluttered silhouette. Compose a waist-up 50 mm view with the artist on the right third, shelves receding softly behind, warm window key from camera left, cool skylight fill, realistic contact shadows, restrained film color, and no rendered text, duplicate hands, plastic skin, warped pottery, or stock-photo staging.", + "negativePrompt": "", + "width": 1024, + "height": 1024, + "seed": 8406, + "randomSeed": false, + "steps": 28, + "guidanceScale": 3.5, + "resourceMode": "expert", + "dtype": "bfloat16", + "quantizationMode": "none", + "autoOffload": true, + "offloadMode": "group_cpu", + "strength": 0.8, + "layers": 4, + "outpaintLeft": 256, + "outpaintRight": 256, + "outpaintTop": 0, + "outpaintBottom": 0, + "outpaintOverlap": 24, + "outpaintFeather": 8, + "outpaintFillColor": "black", + "sourceVideo": "", + "maskVideo": "", + "controlVideo": "", + "sourceAudio": "", + "referenceAudio": "", + "lyrics": "", + "audioDuration": 30, + "extensionDuration": 15, + "vocalLanguage": "en", + "repaintingStart": 0, + "repaintingEnd": 10, + "audioCoverStrength": 0.5, + "shift": 3, + "bpm": 0, + "keyscale": "C", + "timesignature": "4/4", + "numFrames": 81, + "fps": 16, + "conditioningScale": 1, + "guidanceScale2": 0, + "outputType": "pil", + "maxSequenceLength": 512, + "attentionKwargsJson": "" + }, + "inputBindings": [], + "workflowBlocks": [], + "workflowBlockSettings": {} + }, + "originalComponentPolicy": { + "attentionBackend": "auto", + "vaeSlicing": true, + "vaeTiling": true + } + }, + { + "templateId": "flux_kontext_multi_reference", + "contract": { + "lockedSettings": { + "mode": "multi_image_reference_edit", + "modelType": "FluxKontextPipeline", + "prompt": "Use the first reference as the fixed ASTERMIST bottle and the second only for cobalt ceramic color, warm studio light, and tactile material. Keep the bottle silhouette, pump, label, exact text, camera, crop, and background fixed. Change only the body to brushed cobalt enamel and collar to champagne aluminum. Match source reflections, grain, focus, and shadow. Do not add the potter, pottery, objects, controls, seams, duplicate edges, or new text.", + "negativePrompt": "", + "width": 1024, + "height": 1024, + "seed": 8407, + "randomSeed": false, + "steps": 28, + "guidanceScale": 3.5, + "resourceMode": "expert", + "dtype": "bfloat16", + "quantizationMode": "none", + "autoOffload": true, + "offloadMode": "group_cpu", + "strength": 1, + "layers": 4, + "outpaintLeft": 256, + "outpaintRight": 256, + "outpaintTop": 0, + "outpaintBottom": 0, + "outpaintOverlap": 24, + "outpaintFeather": 8, + "outpaintFillColor": "black", + "sourceVideo": "", + "maskVideo": "", + "controlVideo": "", + "sourceAudio": "", + "referenceAudio": "", + "lyrics": "", + "audioDuration": 30, + "extensionDuration": 15, + "vocalLanguage": "en", + "repaintingStart": 0, + "repaintingEnd": 10, + "audioCoverStrength": 0.5, + "shift": 3, + "bpm": 0, + "keyscale": "C", + "timesignature": "4/4", + "numFrames": 81, + "fps": 16, + "conditioningScale": 1, + "guidanceScale2": 0, + "outputType": "pil", + "maxSequenceLength": 512, + "attentionKwargsJson": "" + }, + "inputBindings": [ + { + "id": "flux_kontext_multi_reference-reference-images-defaults", + "label": "Reviewed reference images", + "mediaType": "image", + "origin": "template", + "requiredAt": "workflow_start", + "field": "referenceImages", + "defaultAssets": [ + { + "id": "flux_kontext_multi_reference-reference-image-1", + "label": "Reviewed reference image 1", + "mediaType": "image", + "previewPath": "/template-gallery/inputs/flux_kontext_multi_reference.before.webp", + "runtimePath": "/template-gallery/runtime-inputs/assets/a7b61f36043354596eb01e702474300b222cb32e304bcf259506cad03917ce9b.webp", + "runtimeSha256": "sha256:bytes:a7b61f36043354596eb01e702474300b222cb32e304bcf259506cad03917ce9b", + "fileName": "flux_kontext_multi_reference.reference_image_1.webp" + }, + { + "id": "flux_kontext_multi_reference-reference-image-2", + "label": "Reviewed reference image 2", + "mediaType": "image", + "runtimePath": "/template-gallery/runtime-inputs/assets/9f421cdc0fa80b3aae368bd3b20a8f6f05942ec461f88541f01aec5390468897.webp", + "runtimeSha256": "sha256:bytes:9f421cdc0fa80b3aae368bd3b20a8f6f05942ec461f88541f01aec5390468897", + "fileName": "flux_kontext_multi_reference.reference_image_2.webp" + } + ] + } + ], + "workflowBlocks": [], + "workflowBlockSettings": {} + }, + "originalComponentPolicy": { + "attentionBackend": "auto", + "vaeSlicing": true, + "vaeTiling": true + } + }, + { + "templateId": "flux_fill_outpaint", + "contract": { + "lockedSettings": { + "mode": "outpaint", + "modelType": "FluxFillPipeline", + "prompt": "Outpaint only beyond the supplied source boundaries to widen the same documentary photograph of a traditional bookbinder at a workbench. Keep the complete original center image, hands, open book, bone folder, linen thread, cutting mat, bench edge, camera, exposure and focus conceptually unchanged. Continue the real workshop at both sides with asymmetric shelves of paper, one small cast-iron book press, cropped binding hand tools and natural window falloff, all at correct 50 mm perspective and scale. Match wood grain, paper texture, shadow direction, film grain and color temperature across both seams. Deliver one continuous wide photograph with the single original worker and naturally varied workshop detail.", + "negativePrompt": "", + "width": 1536, + "height": 1024, + "seed": 8408, + "randomSeed": false, + "steps": 50, + "guidanceScale": 30, + "resourceMode": "expert", + "dtype": "bfloat16", + "quantizationMode": "none", + "autoOffload": true, + "offloadMode": "group_cpu", + "strength": 1, + "layers": 4, + "outpaintLeft": 256, + "outpaintRight": 256, + "outpaintTop": 0, + "outpaintBottom": 0, + "outpaintOverlap": 24, + "outpaintFeather": 8, + "outpaintFillColor": "black", + "sourceVideo": "", + "maskVideo": "", + "controlVideo": "", + "sourceAudio": "", + "referenceAudio": "", + "lyrics": "", + "audioDuration": 30, + "extensionDuration": 15, + "vocalLanguage": "en", + "repaintingStart": 0, + "repaintingEnd": 10, + "audioCoverStrength": 0.5, + "shift": 3, + "bpm": 0, + "keyscale": "C", + "timesignature": "4/4", + "numFrames": 81, + "fps": 16, + "conditioningScale": 1, + "guidanceScale2": 0, + "outputType": "pil", + "maxSequenceLength": 512, + "attentionKwargsJson": "" + }, + "inputBindings": [ + { + "id": "flux_fill_outpaint-reference-images-defaults", + "label": "Reviewed reference image", + "mediaType": "image", + "origin": "template", + "requiredAt": "workflow_start", + "field": "referenceImages", + "defaultAssets": [ + { + "id": "flux_fill_outpaint-reference-image-1", + "label": "Reviewed reference image 1", + "mediaType": "image", + "previewPath": "/template-gallery/inputs/flux_fill_outpaint.before.png", + "runtimePath": "/template-gallery/runtime-inputs/assets/bf4dbaa55b83b19ca56c691e9d1a10d3b838ff2fec926aaea6b526561c68f8e6.png", + "runtimeSha256": "sha256:bytes:bf4dbaa55b83b19ca56c691e9d1a10d3b838ff2fec926aaea6b526561c68f8e6", + "fileName": "flux_fill_outpaint.reference_image_1.png" + } + ] + }, + { + "id": "flux_fill_outpaint-mask-image-defaults", + "label": "Reviewed mask image", + "mediaType": "image", + "origin": "template", + "requiredAt": "workflow_start", + "field": "maskImage", + "defaultAssets": [ + { + "id": "flux_fill_outpaint-mask-image", + "label": "Reviewed mask image", + "mediaType": "image", + "runtimePath": "/template-gallery/runtime-inputs/assets/799d82b016a108d4b6902500b4226afd5d2391f4a7b0693af75255425c943a5e.png", + "runtimeSha256": "sha256:bytes:799d82b016a108d4b6902500b4226afd5d2391f4a7b0693af75255425c943a5e", + "fileName": "flux_fill_outpaint.mask_image.png" + } + ] + } + ], + "workflowBlocks": [], + "workflowBlockSettings": {} + }, + "originalComponentPolicy": { + "attentionBackend": "auto", + "vaeSlicing": true, + "vaeTiling": true + } + }, + { + "templateId": "flux_depth_control", + "contract": { + "lockedSettings": { + "mode": "control_image", + "modelType": "FluxDepthPipeline", + "prompt": "Strictly follow the supplied depth map as authoritative for the camera, boat-repair shed geometry, timber ribs, workbench positions, skiff hull, open doorway, floor plane and occlusion. Render a real working wooden-boat repair shed on an overcast morning: one partially restored clinker-built fishing skiff resting securely on two timber trestles, old structural framing, steel hand tools, two naturally coiled ropes, scattered sawdust and cool daylight entering through the open doors. Preserve every major depth boundary and vanishing line while adding only scale-compatible construction detail. Use natural documentary exposure, believable worn timber, oxidized metal, fibrous rope, grounded furniture and directional floor shadows.", + "negativePrompt": "", + "width": 1024, + "height": 1024, + "seed": 8409, + "randomSeed": false, + "steps": 50, + "guidanceScale": 30, + "resourceMode": "expert", + "dtype": "bfloat16", + "quantizationMode": "none", + "autoOffload": true, + "offloadMode": "group_cpu", + "strength": 0.8, + "layers": 4, + "outpaintLeft": 256, + "outpaintRight": 256, + "outpaintTop": 0, + "outpaintBottom": 0, + "outpaintOverlap": 24, + "outpaintFeather": 8, + "outpaintFillColor": "black", + "sourceVideo": "", + "maskVideo": "", + "controlVideo": "", + "sourceAudio": "", + "referenceAudio": "", + "lyrics": "", + "audioDuration": 30, + "extensionDuration": 15, + "vocalLanguage": "en", + "repaintingStart": 0, + "repaintingEnd": 10, + "audioCoverStrength": 0.5, + "shift": 3, + "bpm": 0, + "keyscale": "C", + "timesignature": "4/4", + "numFrames": 81, + "fps": 16, + "conditioningScale": 1, + "guidanceScale2": 0, + "outputType": "pil", + "maxSequenceLength": 512, + "attentionKwargsJson": "" + }, + "inputBindings": [ + { + "id": "flux_depth_control-control-image-defaults", + "label": "Reviewed control image", + "mediaType": "image", + "origin": "template", + "requiredAt": "workflow_start", + "field": "controlImage", + "defaultAssets": [ + { + "id": "flux_depth_control-control-image", + "label": "Reviewed control image", + "mediaType": "image", + "previewPath": "/template-gallery/inputs/flux_depth_control.before.png", + "runtimePath": "/template-gallery/runtime-inputs/assets/2e202069a584ee5ada91e2deaea6bf7b92a94f4816e669e695d7cb64d5a1cb0e.png", + "runtimeSha256": "sha256:bytes:2e202069a584ee5ada91e2deaea6bf7b92a94f4816e669e695d7cb64d5a1cb0e", + "fileName": "flux_depth_control.control_image.png" + } + ] + } + ], + "workflowBlocks": [], + "workflowBlockSettings": {} + }, + "originalComponentPolicy": { + "attentionBackend": "auto", + "vaeSlicing": true, + "vaeTiling": true + } + }, + { + "templateId": "flux_redux_edit", + "contract": { + "lockedSettings": { + "mode": "edit_image", + "modelType": "FluxReduxPipeline", + "prompt": "Create a natural-color documentary variation of the source watchmaker photograph. Use the source as the visual reference for one elderly watchmaker, his hand-held wristwatch, dark wool cardigan, repair bench, parts drawers, north-facing window and camera on the sill. Keep these recognizable visual cues while allowing Redux to create a new coherent composition rather than claiming pixel-exact preservation. Show the watchmaker seated at one bench, examining one complete watch above a shallow tray containing a few brass gears, with tweezers and small steel tools grounded on worn wood. Use honest north-window daylight, realistic skin, wool, glass, brass and timber texture, restrained color, fine reportage grain, natural anatomy, practical object scale and one plausible 50 mm camera perspective.", + "negativePrompt": "", + "width": 1024, + "height": 1024, + "seed": 8410, + "randomSeed": false, + "steps": 28, + "guidanceScale": 3.5, + "resourceMode": "expert", + "dtype": "bfloat16", + "quantizationMode": "none", + "autoOffload": true, + "offloadMode": "group_cpu", + "strength": 1, + "layers": 4, + "outpaintLeft": 256, + "outpaintRight": 256, + "outpaintTop": 0, + "outpaintBottom": 0, + "outpaintOverlap": 24, + "outpaintFeather": 8, + "outpaintFillColor": "black", + "sourceVideo": "", + "maskVideo": "", + "controlVideo": "", + "sourceAudio": "", + "referenceAudio": "", + "lyrics": "", + "audioDuration": 30, + "extensionDuration": 15, + "vocalLanguage": "en", + "repaintingStart": 0, + "repaintingEnd": 10, + "audioCoverStrength": 0.5, + "shift": 3, + "bpm": 0, + "keyscale": "C", + "timesignature": "4/4", + "numFrames": 81, + "fps": 16, + "conditioningScale": 1, + "guidanceScale2": 0, + "outputType": "pil", + "maxSequenceLength": 512, + "attentionKwargsJson": "" + }, + "inputBindings": [ + { + "id": "flux_redux_edit-reference-images-defaults", + "label": "Reviewed reference image", + "mediaType": "image", + "origin": "template", + "requiredAt": "workflow_start", + "field": "referenceImages", + "defaultAssets": [ + { + "id": "flux_redux_edit-reference-image-1", + "label": "Reviewed reference image 1", + "mediaType": "image", + "previewPath": "/template-gallery/inputs/flux_redux_edit.before.webp", + "runtimePath": "/template-gallery/runtime-inputs/assets/2e0ec8892660785e322468d0153fd2dadf7a4d920fce2d7d4a0b686a8fe8515d.webp", + "runtimeSha256": "sha256:bytes:2e0ec8892660785e322468d0153fd2dadf7a4d920fce2d7d4a0b686a8fe8515d", + "fileName": "flux_redux_edit.reference_image_1.webp" + } + ] + } + ], + "workflowBlocks": [], + "workflowBlockSettings": {} + }, + "originalComponentPolicy": { + "attentionBackend": "auto", + "vaeSlicing": true, + "vaeTiling": true + } + }, + { + "templateId": "flux_redux_multi_reference", + "contract": { + "lockedSettings": { + "mode": "multi_image_reference_edit", + "modelType": "FluxReduxPipeline", + "prompt": "Wide photoreal documentary. Preserve the first reference pose: the woman courier stands beside her single complete dark city bicycle on the shoulder of the rainy underpass road, one hand holding the saddle and the other holding the handlebar. Show her full body and the entire bicycle in clean side profile with both round wheels fully visible. Preserve the bicycle mechanics from the courier reference: two brake levers, routed brake cables, one small round white front lamp mounted at the head tube, complete crankset, two crank arms and pedals, chain, fork, saddle, mudguards and rear rack. Use the second reference for unmistakable concrete columns, long wet road, ceiling beams, lights and deep vanishing point toward the bright exit. Rust-red jacket, one woman, one bicycle, natural anatomy, plausible scale and grounded contact shadows. No riding pose, duplicates, CGI, collage or text.", + "negativePrompt": "cartoon, animation, illustration, oil painting, painterly texture, CGI render, plastic skin, split screen, collage seam, duplicate person, extra limbs, malformed hands, deformed bicycle, warped wheel, broken frame, floating bicycle, impossible reflection, glowing headlamp, text, watermark", + "width": 1024, + "height": 1024, + "seed": 8413, + "randomSeed": false, + "steps": 50, + "guidanceScale": 2.5, + "resourceMode": "expert", + "dtype": "bfloat16", + "quantizationMode": "none", + "autoOffload": true, + "offloadMode": "group_cpu", + "strength": 1, + "layers": 4, + "outpaintLeft": 256, + "outpaintRight": 256, + "outpaintTop": 0, + "outpaintBottom": 0, + "outpaintOverlap": 24, + "outpaintFeather": 8, + "outpaintFillColor": "black", + "sourceVideo": "", + "maskVideo": "", + "controlVideo": "", + "sourceAudio": "", + "referenceAudio": "", + "lyrics": "", + "audioDuration": 30, + "extensionDuration": 15, + "vocalLanguage": "en", + "repaintingStart": 0, + "repaintingEnd": 10, + "audioCoverStrength": 0.5, + "shift": 3, + "bpm": 0, + "keyscale": "C", + "timesignature": "4/4", + "numFrames": 81, + "fps": 16, + "conditioningScale": 0.7, + "guidanceScale2": 0, + "outputType": "pil", + "maxSequenceLength": 512, + "attentionKwargsJson": "" + }, + "inputBindings": [ + { + "id": "flux_redux_multi_reference-reference-images-defaults", + "label": "Reviewed reference images", + "mediaType": "image", + "origin": "template", + "requiredAt": "workflow_start", + "field": "referenceImages", + "defaultAssets": [ + { + "id": "flux_redux_multi_reference-reference-image-1", + "label": "Reviewed reference image 1", + "mediaType": "image", + "previewPath": "/template-gallery/inputs/flux_redux_multi_reference.before.webp", + "runtimePath": "/template-gallery/runtime-inputs/assets/7f1ea58485fa7802765b9fbbf0e6957e8607261c91669fdcc44cbed80c6fb309.webp", + "runtimeSha256": "sha256:bytes:7f1ea58485fa7802765b9fbbf0e6957e8607261c91669fdcc44cbed80c6fb309", + "fileName": "flux_redux_multi_reference.reference_image_1.webp" + }, + { + "id": "flux_redux_multi_reference-reference-image-2", + "label": "Reviewed reference image 2", + "mediaType": "image", + "runtimePath": "/template-gallery/runtime-inputs/assets/4b800b6a362c9ad7755858a3ec2affbda8706c5a71578ced35b80432fd234741.webp", + "runtimeSha256": "sha256:bytes:4b800b6a362c9ad7755858a3ec2affbda8706c5a71578ced35b80432fd234741", + "fileName": "flux_redux_multi_reference.reference_image_2.webp" + } + ] + } + ], + "workflowBlocks": [], + "workflowBlockSettings": {} + }, + "originalComponentPolicy": { + "attentionBackend": "auto", + "vaeSlicing": true, + "vaeTiling": true + } + }, + { + "templateId": "flux2_klein_text_to_image", + "contract": { + "lockedSettings": { + "mode": "text_to_image", + "modelType": "Flux2KleinPipeline", + "prompt": "Create an editorial material-study photograph in a sunlit conservation studio. Hero subject: one hand-cast translucent cobalt glass cube with a precise silhouette, subtly irregular thick glass walls, trapped microbubbles, internal refraction, and physically accurate blue caustics. Place it on layered pale limestone and crumpled archival linen, with a cropped brass caliper and color swatch entering the far foreground as supporting scale cues, never competing subjects. Compose a low front three-quarter 70 mm view with the cube on the right third, diagonal late-afternoon window light crossing the table, a long prismatic shadow, cool reflected fill, softly receding plaster shelves, and visible dust motes. Deliver tactile stone grain, glass edge highlights, linen fibers, grounded contact, rich foreground-midground-background depth, and no labels, duplicate cubes, warped edges, blacked-out glass, floating geometry, or sterile white-cyclorama staging.", + "negativePrompt": "", + "width": 1024, + "height": 1024, + "seed": 173, + "randomSeed": false, + "steps": 4, + "guidanceScale": 1, + "resourceMode": "auto", + "dtype": "bfloat16", + "quantizationMode": "none", + "autoOffload": true, + "offloadMode": "model_cpu", + "strength": 0.8, + "layers": 4, + "outpaintLeft": 256, + "outpaintRight": 256, + "outpaintTop": 0, + "outpaintBottom": 0, + "outpaintOverlap": 24, + "outpaintFeather": 8, + "outpaintFillColor": "black", + "sourceVideo": "", + "maskVideo": "", + "controlVideo": "", + "sourceAudio": "", + "referenceAudio": "", + "lyrics": "", + "audioDuration": 30, + "extensionDuration": 15, + "vocalLanguage": "en", + "repaintingStart": 0, + "repaintingEnd": 10, + "audioCoverStrength": 0.5, + "shift": 3, + "bpm": 0, + "keyscale": "C", + "timesignature": "4/4", + "numFrames": 81, + "fps": 16, + "conditioningScale": 1, + "guidanceScale2": 0, + "outputType": "pil", + "maxSequenceLength": 512, + "attentionKwargsJson": "" + }, + "inputBindings": [], + "workflowBlocks": [], + "workflowBlockSettings": {} + }, + "originalComponentPolicy": { + "attentionBackend": "auto", + "vaeSlicing": true, + "vaeTiling": true + } + }, + { + "templateId": "flux2_klein_edit", + "contract": { + "lockedSettings": { + "mode": "edit_image", + "modelType": "Flux2KleinPipeline", + "prompt": "Preserve the source cube geometry, camera angle, crop, limestone slab, background, focus, and light direction. Change only the cobalt glass to transparent emerald green glass with physically consistent transmission, refraction, highlights, and colored spill. Keep every edge and shadow anchored to the original photograph; do not add objects, reshape the cube, move the camera, replace the surface, introduce text, or alter unrelated pixels.", + "negativePrompt": "", + "width": 1024, + "height": 1024, + "seed": 174, + "randomSeed": false, + "steps": 4, + "guidanceScale": 1, + "resourceMode": "auto", + "dtype": "bfloat16", + "quantizationMode": "none", + "autoOffload": true, + "offloadMode": "group_cpu", + "strength": 1, + "layers": 4, + "outpaintLeft": 256, + "outpaintRight": 256, + "outpaintTop": 0, + "outpaintBottom": 0, + "outpaintOverlap": 24, + "outpaintFeather": 8, + "outpaintFillColor": "black", + "sourceVideo": "", + "maskVideo": "", + "controlVideo": "", + "sourceAudio": "", + "referenceAudio": "", + "lyrics": "", + "audioDuration": 30, + "extensionDuration": 15, + "vocalLanguage": "en", + "repaintingStart": 0, + "repaintingEnd": 10, + "audioCoverStrength": 0.5, + "shift": 3, + "bpm": 0, + "keyscale": "C", + "timesignature": "4/4", + "numFrames": 81, + "fps": 16, + "conditioningScale": 1, + "guidanceScale2": 0, + "outputType": "pil", + "maxSequenceLength": 512, + "attentionKwargsJson": "" + }, + "inputBindings": [ + { + "id": "flux2_klein_edit-reference-images-defaults", + "label": "Reviewed reference image", + "mediaType": "image", + "origin": "template", + "requiredAt": "workflow_start", + "field": "referenceImages", + "defaultAssets": [ + { + "id": "flux2_klein_edit-reference-image-1", + "label": "Reviewed reference image 1", + "mediaType": "image", + "previewPath": "/template-gallery/inputs/flux2_klein_edit.before.png", + "runtimePath": "/template-gallery/runtime-inputs/assets/d5ba3943d6c0a264860ba0cde18d87e2d9554a3f7328308f4d771e082a9e0c24.png", + "runtimeSha256": "sha256:bytes:d5ba3943d6c0a264860ba0cde18d87e2d9554a3f7328308f4d771e082a9e0c24", + "fileName": "flux2_klein_edit.reference_image_1.png" + } + ] + } + ], + "workflowBlocks": [], + "workflowBlockSettings": {} + }, + "originalComponentPolicy": { + "attentionBackend": "auto", + "vaeSlicing": true, + "vaeTiling": true + } + }, + { + "templateId": "flux2_klein_multi_reference", + "contract": { + "lockedSettings": { + "mode": "multi_image_reference_edit", + "modelType": "Flux2KleinPipeline", + "prompt": "Use the first reference as the exact composition and geometry anchor for one worn hiking boot resting on a damp trail rock. Use the second reference only for indigo woven-canvas texture, rust-orange stitching and dark waxed-leather material evidence. Preserve the single boot silhouette, sole construction, complete lace path, camera, crop, scale, mossy rock, background focus and overcast light. Transform only the existing boot-panel materials: apply the three reference materials coherently with correct weave direction, purposeful seam placement, natural edge wear, firm contact shadow and restrained moisture. Deliver one continuous outdoor product photograph with an unchanged sole and one physically complete boot.", + "negativePrompt": "", + "width": 1024, + "height": 1024, + "seed": 175, + "randomSeed": false, + "steps": 4, + "guidanceScale": 1, + "resourceMode": "auto", + "dtype": "bfloat16", + "quantizationMode": "none", + "autoOffload": true, + "offloadMode": "group_cpu", + "strength": 1, + "layers": 4, + "outpaintLeft": 256, + "outpaintRight": 256, + "outpaintTop": 0, + "outpaintBottom": 0, + "outpaintOverlap": 24, + "outpaintFeather": 8, + "outpaintFillColor": "black", + "sourceVideo": "", + "maskVideo": "", + "controlVideo": "", + "sourceAudio": "", + "referenceAudio": "", + "lyrics": "", + "audioDuration": 30, + "extensionDuration": 15, + "vocalLanguage": "en", + "repaintingStart": 0, + "repaintingEnd": 10, + "audioCoverStrength": 0.5, + "shift": 3, + "bpm": 0, + "keyscale": "C", + "timesignature": "4/4", + "numFrames": 81, + "fps": 16, + "conditioningScale": 1, + "guidanceScale2": 0, + "outputType": "pil", + "maxSequenceLength": 512, + "attentionKwargsJson": "" + }, + "inputBindings": [ + { + "id": "flux2_klein_multi_reference-reference-images-defaults", + "label": "Reviewed reference images", + "mediaType": "image", + "origin": "template", + "requiredAt": "workflow_start", + "field": "referenceImages", + "defaultAssets": [ + { + "id": "flux2_klein_multi_reference-reference-image-1", + "label": "Reviewed reference image 1", + "mediaType": "image", + "previewPath": "/template-gallery/inputs/flux2_klein_multi_reference.before.webp", + "runtimePath": "/template-gallery/runtime-inputs/assets/1d993540e914f0e2d230f1133b57ae14bb837829237a53c89613fcdef6699995.webp", + "runtimeSha256": "sha256:bytes:1d993540e914f0e2d230f1133b57ae14bb837829237a53c89613fcdef6699995", + "fileName": "flux2_klein_multi_reference.reference_image_1.webp" + }, + { + "id": "flux2_klein_multi_reference-reference-image-2", + "label": "Reviewed reference image 2", + "mediaType": "image", + "runtimePath": "/template-gallery/runtime-inputs/assets/fc326ed56f9e5de83262a0a1bc4ce85f4b4b291d654a05efa4a32fc133f97a3f.webp", + "runtimeSha256": "sha256:bytes:fc326ed56f9e5de83262a0a1bc4ce85f4b4b291d654a05efa4a32fc133f97a3f", + "fileName": "flux2_klein_multi_reference.reference_image_2.webp" + } + ] + } + ], + "workflowBlocks": [], + "workflowBlockSettings": {} + }, + "originalComponentPolicy": { + "attentionBackend": "auto", + "vaeSlicing": true, + "vaeTiling": true + } + }, + { + "templateId": "qwen_edit_plus_single_image", + "contract": { + "lockedSettings": { + "mode": "edit_image", + "modelType": "QwenImageEditPlusModularPipeline", + "prompt": "Source contract: preserve the photographed product identity, silhouette, proportions, controls, logo spelling, camera angle, crop, background geometry, and depth of field. Change only the tabletop setting into a quiet rain-lit hotel desk with dark walnut, one folded linen napkin, and a soft window reflection; keep the product fixed in place. Match source perspective, key-light direction, exposure, contact shadow, reflections, texture scale, grain, and occlusion so the edit reads as one photograph. Do not redesign the product, add controls, move branding, duplicate objects, change the lens, create halos, or alter unrelated details.", + "negativePrompt": "identity drift, changed product geometry, misspelled branding, moved controls, duplicate product, changed camera angle, pasted edge, halo, mismatched light, floating base, clutter, blur", + "width": 1024, + "height": 1024, + "seed": 8501, + "randomSeed": false, + "steps": 40, + "guidanceScale": 4, + "resourceMode": "auto", + "dtype": "bfloat16", + "quantizationMode": "none", + "autoOffload": true, + "offloadMode": "model_cpu", + "strength": 0.8, + "layers": 4, + "outpaintLeft": 256, + "outpaintRight": 256, + "outpaintTop": 0, + "outpaintBottom": 0, + "outpaintOverlap": 24, + "outpaintFeather": 8, + "outpaintFillColor": "black", + "sourceVideo": "", + "maskVideo": "", + "controlVideo": "", + "sourceAudio": "", + "referenceAudio": "", + "lyrics": "", + "audioDuration": 30, + "extensionDuration": 15, + "vocalLanguage": "en", + "repaintingStart": 0, + "repaintingEnd": 10, + "audioCoverStrength": 0.5, + "shift": 3, + "bpm": 0, + "keyscale": "C", + "timesignature": "4/4", + "numFrames": 81, + "fps": 16, + "conditioningScale": 1, + "guidanceScale2": 0, + "outputType": "pil", + "maxSequenceLength": 512, + "attentionKwargsJson": "" + }, + "inputBindings": [ + { + "id": "qwen_edit_plus_single_image-reference-images-defaults", + "label": "Reviewed reference image", + "mediaType": "image", + "origin": "template", + "requiredAt": "workflow_start", + "field": "referenceImages", + "defaultAssets": [ + { + "id": "qwen_edit_plus_single_image-reference-image-1", + "label": "Reviewed reference image 1", + "mediaType": "image", + "previewPath": "/template-gallery/inputs/qwen_edit_plus_single_image.before.webp", + "runtimePath": "/template-gallery/runtime-inputs/assets/e90e99e27cdd9b6ab7478a05199df2fdf7dce650d700ef2ceb55da7fb206b715.webp", + "runtimeSha256": "sha256:bytes:e90e99e27cdd9b6ab7478a05199df2fdf7dce650d700ef2ceb55da7fb206b715", + "fileName": "qwen_edit_plus_single_image.reference_image_1.webp" + } + ] + } + ], + "workflowBlocks": [], + "workflowBlockSettings": {} + }, + "originalComponentPolicy": null + } + ] +} diff --git a/vite.config.ts b/vite.config.ts index 0cfbf718..830535b9 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -8,6 +8,7 @@ import { createHash } from 'node:crypto'; import fs from 'fs'; import path from 'path'; import { pathToFileURL } from 'url'; +import { backendProxyLifecycle } from './scripts/backend-proxy-lifecycle'; import { resolveTemplateAssetViteContract, serializeTemplateAssetSource, @@ -15,6 +16,7 @@ import { } from './scripts/template-asset-source-contract.ts'; const backendProxyTarget = process.env.VITE_BACKEND_PROXY_TARGET || 'http://127.0.0.1:8088'; +const proxyLifecycle = backendProxyLifecycle(); const checkedInTemplateAssetSource = JSON.parse( fs.readFileSync(path.resolve(__dirname, 'src/studio/templateAssetSource.json'), 'utf8'), ); @@ -215,6 +217,7 @@ const backendProxy = Object.fromEntries( target: backendProxyTarget, changeOrigin: true, ws: route === '/ws', + ...(route === '/ws' ? { configure: proxyLifecycle.configure } : {}), }, ]), ); @@ -223,7 +226,7 @@ const baseConfig: UserConfig = { // Concurrent qualification frontends must not replace each other's // optimized dependency files and trigger navigation during a gesture. cacheDir: process.env.MODIFF_VITE_CACHE_DIR || 'node_modules/.vite', - plugins: [react(), tailwindcss(), compactProductionChunksPlugin(), shellAssetVersionPlugin()], + plugins: [react(), tailwindcss(), proxyLifecycle.plugin, compactProductionChunksPlugin(), shellAssetVersionPlugin()], server: { proxy: backendProxy, hmr: process.env.MODIFF_GALLERY_STABLE !== '1', From 76ea5eba869306140b9b6210702a87890c84c746 Mon Sep 17 00:00:00 2001 From: Sourav Das Date: Wed, 7 Oct 2026 18:31:13 +0530 Subject: [PATCH 002/440] Update transitive packages to pass the dependency audit Update brace-expansion to patched 1.1.21/5.0.12 and source-map-js to 1.2.2 within existing dependency ranges. Preserve direct requirements, dependency topology and the CI audit threshold. Refresh the production source-map-js license notice and pair CI with backend 36d36d9e594ce0212abfb3d825ef72044b401215. Validation: fresh npm ci; audit reports zero vulnerabilities; lock integrity, production licenses and advisory/ordinary package smoke checks pass. Full npm run check passed with 2290 Node tests and 34 Python helper tests. All 103 rebuilt files match the refreshed backend bundle; only its license notice changed. --- .github/workflows/ci.yml | 2 +- package-lock.json | 18 +++++++++--------- public/THIRD_PARTY_LICENSES.txt | 2 +- 3 files changed, 11 insertions(+), 11 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 434af5e4..cc7921df 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -33,7 +33,7 @@ jobs: with: repository: sdevil7th/MoDiff # Paired native-uv runtime and ordinary image-template contracts. - ref: e08f606311bbba80d796949486ed1216d41ec753 + ref: 36d36d9e594ce0212abfb3d825ef72044b401215 path: MoDiff persist-credentials: false - name: Verify the pinned backend supports native setup diff --git a/package-lock.json b/package-lock.json index 6bffc778..2bb47f9d 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1795,9 +1795,9 @@ } }, "node_modules/@typescript-eslint/typescript-estree/node_modules/brace-expansion": { - "version": "5.0.9", - "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-5.0.9.tgz", - "integrity": "sha512-ScQ4IuvIEF1TMlP7Zt+vjJ//9zlPb2SDcxWxM3bk8s6t6GGdJ7KO1dCcTidOPJKePW30LE/2cT7wCyPho9/Wxg==", + "version": "5.0.12", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-5.0.12.tgz", + "integrity": "sha512-YovQ3rzhaLMIrDjNDMkNS01tea93qhEhG5xy8f6+R0l+dw3Ki+5sCoIoI942iuLZTHWogWktgwVDhU09iNEimQ==", "dev": true, "license": "MIT", "dependencies": { @@ -2079,9 +2079,9 @@ } }, "node_modules/brace-expansion": { - "version": "1.1.18", - "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.18.tgz", - "integrity": "sha512-Edep/X9fGqVNmzKBVsDYIOtD+z1tuezV70LBjdCst9Tqu76lsnvRiZ6oTic1n+/BIwX6QDGAO94PN4N2SADvtw==", + "version": "1.1.21", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.21.tgz", + "integrity": "sha512-9zeA+KLZNNzglF2TPKRQEDyx6Yby7daAkuy8MiPzpXPsYDWi/DRM8jmwUDxokQjYqBpv5DgPiwD4h4ZZSy1Ujw==", "dev": true, "license": "MIT", "dependencies": { @@ -3685,9 +3685,9 @@ } }, "node_modules/source-map-js": { - "version": "1.2.1", - "resolved": "https://registry.npmjs.org/source-map-js/-/source-map-js-1.2.1.tgz", - "integrity": "sha512-UXWMKhLOwVKb728IUtQPXxfYU+usdybtUrK/8uGE8CQMvrhOpwvzDBwj0QhSL7MQc7vIsISBG8VQ8+IDQxpfQA==", + "version": "1.2.2", + "resolved": "https://registry.npmjs.org/source-map-js/-/source-map-js-1.2.2.tgz", + "integrity": "sha512-KGj/8Y43x35aZVDtt+J4mK1hoLGHULMYfSkODJNQjNDC3oW1PqPoxMwo0pLUsWM/UEGzON/NxeHywEfNXNP3Vw==", "license": "BSD-3-Clause", "engines": { "node": ">=0.10.0" diff --git a/public/THIRD_PARTY_LICENSES.txt b/public/THIRD_PARTY_LICENSES.txt index d9f81d82..a9c7ecb9 100644 --- a/public/THIRD_PARTY_LICENSES.txt +++ b/public/THIRD_PARTY_LICENSES.txt @@ -4454,7 +4454,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ================================================================================ -source-map-js@1.2.1 +source-map-js@1.2.2 Declared license: BSD-3-Clause ================================================================================ From c7af71571d51298427a4ee28205d02f5ccec7efa Mon Sep 17 00:00:00 2001 From: Sourav Das Date: Thu, 8 Oct 2026 03:30:45 +0530 Subject: [PATCH 003/440] Simplify image workflow stages and migrate masked Qwen templates Retain the existing Encode Inputs and Guidance workflow while adding reversible Model Setup, Prepare Mask and Image Output groups and opt-in component wiring. Use declared guidance meanings for safe model changes, restore exact archived runtime settings, and preserve declared inputs and Block customization on import and adaptation. Move four reviewed Qwen masked Gallery recipes to the ordinary native builder. Cover creator, grouping, bundle, persistence and recovery behavior and pair CI with the reviewed backend contract commit. --- .github/workflows/ci.yml | 4 +- README.md | 4 + docs/developer-first-node-ux.md | 61 +- docs/image-template-workflows.md | 18 +- docs/modiff-client-architecture.md | 48 +- package.json | 2 +- scripts/bundle-budget.mjs | 8 +- scripts/encoding-node-presentation.test.mjs | 18 + scripts/flow-graph-mutations.test.mjs | 57 + scripts/media-attachment.test.mjs | 299 + scripts/operation-authoring.test.mjs | 677 + scripts/operation-catalog.test.mjs | 127 + ...operation-component-bundle-inputs.test.mjs | 206 + scripts/operation-component-bundle.test.mjs | 249 + scripts/template-operation-fixtures.py | 3 +- scripts/template-operation-workflows.test.mjs | 475 +- src/components/BlockNodeV2.tsx | 2 +- src/components/EncodingNode.tsx | 21 +- src/components/EncodingNodeControls.tsx | 2 +- src/components/EncodingNodeMenu.tsx | 31 +- src/components/OperationGraphControls.tsx | 15 +- src/components/OperationModelPicker.tsx | 56 +- src/components/OperationOwnerControls.tsx | 2 +- src/components/StageNodeControls.tsx | 70 + src/components/VisualStageControls.tsx | 89 +- src/stores/flowGraphMutations.ts | 12 + src/stores/useFlowStore.ts | 2 +- src/studio/executionSpecValues.ts | 1 + src/studio/graphFixer.ts | 2 + src/studio/qwenInpaintNativeCandidate.ts | 29 + src/studio/requiredGraphInputs.ts | 2 + src/studio/templateOperationSelections.ts | 50 +- src/studio/templateOperationWorkflow.ts | 80 + src/workflow/componentBundleInputs.ts | 50 + src/workflow/encodingNodePresentation.ts | 9 +- src/workflow/guidanceNodeFields.ts | 3 +- src/workflow/operationAuthoring.ts | 266 +- src/workflow/operationComponentBundle.ts | 163 + src/workflow/operationContracts.ts | 155 +- src/workflow/operationControlTransfer.ts | 68 + .../visualOperationGroupProjection.ts | 207 + src/workflow/visualOperationGroups.ts | 406 +- tests/e2e/studio-mocked/studio-mocked.spec.ts | 447 + .../guidance-control-contract.v1.json | 23652 ++++++++++++++++ .../qwen-component-bundle-contract.v1.json | 1145 + 45 files changed, 28981 insertions(+), 312 deletions(-) create mode 100644 scripts/operation-component-bundle-inputs.test.mjs create mode 100644 scripts/operation-component-bundle.test.mjs create mode 100644 src/components/StageNodeControls.tsx create mode 100644 src/studio/qwenInpaintNativeCandidate.ts create mode 100644 src/workflow/componentBundleInputs.ts create mode 100644 src/workflow/operationComponentBundle.ts create mode 100644 src/workflow/operationControlTransfer.ts create mode 100644 src/workflow/visualOperationGroupProjection.ts create mode 100644 tests/fixtures/guidance-control-contract.v1.json create mode 100644 tests/fixtures/qwen-component-bundle-contract.v1.json diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index cc7921df..ac442067 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -32,8 +32,8 @@ jobs: uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4 with: repository: sdevil7th/MoDiff - # Paired native-uv runtime and ordinary image-template contracts. - ref: 36d36d9e594ce0212abfb3d825ef72044b401215 + # Paired guidance, component-bundle and native masked-template contracts. + ref: 123ede05172fe6049922af014e0bfb5b1dff7aa1 path: MoDiff persist-credentials: false - name: Verify the pinned backend supports native setup diff --git a/README.md b/README.md index 4a2d17f9..d3107758 100644 --- a/README.md +++ b/README.md @@ -267,6 +267,10 @@ See the [Studio user guide](docs/studio-user-flow.md) for tasks, interface areas The [image template workflow guide](docs/image-template-workflows.md) describes the current developer nodes, explicit whole-pipeline exceptions, preserved creator settings and historical Gallery examples. +The [developer authoring guide](docs/developer-first-node-ux.md) covers optional +Model Setup, Prepare Mask and Image Output groups, reversible component bundle +wiring, and the existing inspection/reuse controls. These explicit actions keep +saved graphs and template defaults intact. ## Workspace And Memory diff --git a/docs/developer-first-node-ux.md b/docs/developer-first-node-ux.md index 238810bd..7d2703df 100644 --- a/docs/developer-first-node-ux.md +++ b/docs/developer-first-node-ux.md @@ -116,17 +116,68 @@ Existing workflows are not regrouped on open. Their loader inspector's and **Add image / audio input…** where supported. That explicit attachment action opens the supported-role/source chooser; it is not a permanent form and ordinary typed wiring does not require it. Audio sources retain upload, playback and seek. -Individual implementation nodes -remain available. Grouping changes encoder runtime IDs once, so a first run may -recompute encoding; opening details or collapsing field sections does not change runtime identities. +Individual implementation nodes remain available. Grouping changes the selected +stages' runtime IDs once, so a first run may recompute encoding or recreate loader +ownership. Opening details or collapsing field sections does not change runtime identities. Shared seed controls still update across the visual boundary. Grouping does not grant model capabilities or Automatic memory qualification. Whole-pipeline operations remain whole-pipeline operations; no fake encoder is inserted. A group with manually nested containers or mirrored custom interfaces requires explicit structural editing/ungrouping before automatic task adaptation. -New audio grouping recipes, Model Setup, Prepare Mask and Image Output are -follow-on candidates; video simplification remains deferred. +New audio grouping recipes and video simplification remain deferred. + +## Optional image stages + +**Workflow stage actions** in the loader’s Node inspector, or inside an existing +Model Setup node, offers these explicit groups when the existing model branch +contains the required nodes: + +- **Group model setup** combines the loader with connected built-in LoRA + descriptors/adapters or quantization/execution-recipe configuration. A bare + loader stays Load Models. Unrelated loaders, ControlNet, Guidance and shared + modifiers remain separate. +- **Group mask preparation** combines Load Image and the existing Outpaint + Canvas utility only when its canvas and mask outputs feed the same declared + inpaint/outpaint consumer. Geometry, margins, overlap, feathering and file + selection stay on those original fields. A plain inpaint mask loader has no + new preprocessing step. +- **Group image output** combines a declared native image decoder with its + directly connected Preview Image nodes. Whole-pipeline output already goes + straight to Preview, so that single node is not wrapped. + +These groups use the ordinary node shell, with real controls and declared +sockets. Image Output displays the existing backend preview. Use their options +menu to inspect the implementation, configure interfaces, separate stages or +explicitly save a reusable node. Separate and grouping are one Undo step; +refresh keeps the chosen layout and settings. Saving snapshots current values +and creates independent reusable instances through the same User Node contract. + +Model Setup retains the model picker and Change model / task review. Applying a +change adapts its complete connected workflow, including Encode Inputs and +Denoise outside the wrapper. Cancelling leaves the graph unchanged. Existing +saved workflows and new template defaults are not automatically regrouped. +Grouping folds real canvas nodes/wires into a V2 interface; executable stages, +component wires, backend cache policies and the executor stay the same. + +The same menu offers **Use component bundle** and **Expose components** when +actual operation contracts declare that a loader aggregate supplies exact scoped +component members to the existing stage inputs. The initial backend prototype +publishes this relation for Qwen native text to image. It keeps the same loader, +Encode Inputs, Guidance, Denoise and Decode implementations; four raw loader +component connections become three aggregate connections, reducing this graph +by one wire. It does not replace the shared, per-run Guidance strategy with the +bundle's default guider. There is no model-name dispatch in the client action. + +An independent component supplier, modifier path, literal component override or +custom aggregate cannot prove the backend's sealed loader/member identity, so +that entire consumer keeps its existing ordinary component connections. Breakout +restores the declared raw loader connections while keeping explicit overrides. +Both actions use one Undo transaction and persist on refresh; reusable V2 +snapshots and unrelated branches retain their existing authority. Backend checks +still enforce actual object identity, component roles, loader ownership and +runtime generation. This is explicit opt-in wiring; template defaults and saved +graphs are not automatically converted. Broader component facades remain deferred. ## Connection guidance diff --git a/docs/image-template-workflows.md b/docs/image-template-workflows.md index 6d4f3636..de54eeb2 100644 --- a/docs/image-template-workflows.md +++ b/docs/image-template-workflows.md @@ -16,23 +16,31 @@ use explicit execution-profile selections rather than a family-wide default. | -------------------------- | --------: | ------------------------------------------- | | Z-Image Turbo | 7 | Text to image and styles using LoRAs | | Qwen Image | 10 | Text to image and ControlNet image layout | -| Qwen Image Edit | 3 | Image editing | +| Qwen Image Edit | 7 | Image editing, inpainting and outpainting | | Qwen Image Edit Plus | 7 | Single-image and multiple-reference editing | | Qwen Image Layered | 1 | Layer decomposition | | FLUX Schnell, Dev and Krea | 11 | Text to image and styles using LoRAs | | FLUX Kontext | 2 | Single-image and multiple-reference editing | | FLUX.2 Klein | 3 | Text to image and image/reference editing | -These 44 recipes contain real model loading, input encoding, denoising and latent +These 48 recipes contain real model loading, input encoding, denoising and latent decoding stages. **Encode Inputs** presents the relevant encoding stages together; the exported graph retains their distinct backend calls and typed connections. Image, mask, control and reference inputs remain separate when their roles differ. -The other ten recipes retain explicit whole-pipeline operations: +The four Qwen masked-edit/outpaint templates use real native stages with a +backend-owned compatibility path for their original image preparation and final +mask composite. Their dimensions, strength, crop padding and outpaint canvas +settings stay explicit. Ordinary developer starters keep their native defaults; +saved workflows retain their own route and values. Matched original outputs and +Auto/repeat checks on local ROCm remain separate from Windows or cloud hardware +qualification. Changing a fresh template's execution selection invalidates its +current exact-template evidence while retaining the historical example. + +The other six recipes retain explicit whole-pipeline operations: | Whole-pipeline path | Templates | Preserved boundary | | ------------------------ | --------: | ----------------------------------------------------- | -| Qwen Image Edit Inpaint | 4 | Image/mask preparation and inpaint/outpaint recipe | | FLUX Fill | 2 | Fill model, image and mask recipe | | FLUX Canny/Depth control | 2 | Selected control artifact and conditioning contract | | FLUX Redux | 2 | Selected base/prior models and reference conditioning | @@ -76,7 +84,7 @@ to `2.5`. Schnell keeps CFG disabled. Ordinary developer Flux starters keep thei at scale `1`; creating a converted template explicitly applies that template's preserved settings. -The 31 recipes converted from whole-pipeline loading bind their original +The 35 recipes converted from whole-pipeline loading bind their original attention backend and enabled VAE slicing/tiling explicitly. The original 13 native recipes retain inherited attention and unset VAE policies. Schnell's template preserves its authored 512-token prompt limit; the ordinary developer diff --git a/docs/modiff-client-architecture.md b/docs/modiff-client-architecture.md index 9861f03d..88b3da48 100644 --- a/docs/modiff-client-architecture.md +++ b/docs/modiff-client-architecture.md @@ -213,6 +213,47 @@ still owns values, interfaces and execution. Inspection is read-only; Separate stages is an explicit undoable structural edit. The interface inspector includes visible optional encoding sockets and labels their deferred stage preparation. +Optional image Model Setup, Prepare Mask and Image Output use that same ordinary +node shell and `BlockInstanceV2` contract. `visualOperationGroups` selects only +existing eligible leaves: a loader with connected built-in descriptor/configuration +utilities, an exact Load Image/Outpaint Canvas pair feeding both image and mask +to the same masked consumer, or a declared image decoder plus its direct previews. +Single loaders/whole-pipeline previews and unrelated/shared modifiers are not +wrapped. Explicit stage actions leave other instances untouched and commit one +history transaction; opening documents and current template defaults do not +opt into these additional groups. Output preview bindings use the existing V2 +preview inventory and backend output-slot authority. Model Setup's projected +loader resolves back to its unpacked runtime owner for the complete ordinary +workflow planner, rather than adapting only the wrapper's implementation. Values, +configured interfaces, immutable reusable snapshots and explicit save/separate +behavior keep their existing authority. +Optional groups retain ordinary type-inferred scalar editors even when registry +fields omit `display`. An empty or suppressed field label uses its field name +in the explicit interface; the original leaf field and value remain unchanged. +`visualOperationGroupProjection` contains the ordinary renderer/store's +read-only projection and shared-value planning. Structural grouping stays in +the deferred `visualOperationGroups` planner; Guidance's asynchronous schema +edit loads regrouping only when requested. Public graph helper exports and +the same graph transaction remain unchanged. + +`operationComponentBundle` adds explicit **Use component bundle** / **Expose +components** actions through those same workflow stage controls. It consumes +parsed `semantics.suppliedBy` declarations and exact scoped component members; +it does not dispatch on model names. The first backend declaration is native +Qwen text to image. Existing loader-to-stage component fanout is replaced only +where the aggregate provides those exact inputs, preserving loader and stage +IDs, creative controls, the separate Guider, and unrelated branches. Independent +suppliers, modifier paths, literal overrides and alternate aggregate sources +leave the entire consumer's raw path unchanged because static type compatibility +cannot prove the backend's sealed component identity. Breakout restores raw +connections without replacing explicit inputs. Required-input/fix projection uses +`componentBundleInputs`; backend object/role/owner/generation checks remain the +execution authority. Each action commits the existing full-graph transaction, +including visual-stage unwrapping/restoration and Undo. This prototype reduces +Qwen T2I's four loader component edges to three, and leaves template defaults and +previous documents unchanged. No alternate executor or hidden implementation +collapse is introduced. + Guidance interface edits record explicitly removed field bindings in optional `presentation.removedControlBindings` on the instance. The bounded, unique `{nodeId, fieldId}` list is visibility metadata, not an execution toggle. Removing @@ -273,9 +314,10 @@ then stays mounted so focus changes do not discard open dialog state. Running from a V2 Block root or internal Block selects all enabled terminal branches in that semantic scope and their contained upstream dependencies. -Outside suppliers are removed before validation and lowering, including public-input -suppliers; stored internal fallbacks remain available. Whole-workflow execution keeps -the crossing wires. Missing +Wired outside suppliers and their upstream owners remain in the dependency closure +before validation and lowering, including public-input suppliers. Disconnected +unrelated owners remain outside selected execution. Stored internal fallbacks +remain available. Missing previews never mean "run the whole workflow". Disabled descendants are excluded; an entirely disabled/non-executable selection produces an actionable error. The representative node used for run metadata still prefers a terminal media diff --git a/package.json b/package.json index 1a994708..98d6b561 100644 --- a/package.json +++ b/package.json @@ -95,7 +95,7 @@ "test:graph-mutations": "node --test scripts/flow-graph-mutations.test.mjs scripts/graph-fixer.test.mjs scripts/block-seed-repair-v2.test.mjs scripts/block-derived-control-repair-v2.test.mjs", "test:graph-visuals": "node --test scripts/graph-visuals.test.mjs scripts/node-measurement-dispatch.test.mjs scripts/node-connection-search.test.mjs", "test:media-viewer": "node --test scripts/media-viewer.test.mjs", - "test:requests": "node --test scripts/media-attachment.test.mjs scripts/node-presentation.test.mjs scripts/service-package.test.mjs scripts/node-store-requests.test.mjs scripts/operation-catalog.test.mjs scripts/operation-authoring.test.mjs scripts/operation-modification-matrix.test.mjs scripts/request-boundary.test.mjs scripts/server-actions.test.mjs scripts/shared-store-requests.test.mjs scripts/supervisor-startup.test.mjs scripts/studio-output-requests.test.mjs scripts/resolved-execution-inputs.test.mjs scripts/runtime-resources.test.mjs scripts/websocket-connection.test.mjs scripts/backend-proxy-lifecycle.test.mjs", + "test:requests": "node --test scripts/media-attachment.test.mjs scripts/node-presentation.test.mjs scripts/service-package.test.mjs scripts/node-store-requests.test.mjs scripts/operation-catalog.test.mjs scripts/operation-component-bundle-inputs.test.mjs scripts/operation-component-bundle.test.mjs scripts/operation-authoring.test.mjs scripts/operation-modification-matrix.test.mjs scripts/request-boundary.test.mjs scripts/server-actions.test.mjs scripts/shared-store-requests.test.mjs scripts/supervisor-startup.test.mjs scripts/studio-output-requests.test.mjs scripts/resolved-execution-inputs.test.mjs scripts/runtime-resources.test.mjs scripts/websocket-connection.test.mjs scripts/backend-proxy-lifecycle.test.mjs", "test:run-coordinator": "node --test scripts/run-coordinator.test.mjs scripts/run-issue-store.test.mjs scripts/block-runtime-hints-v2.test.mjs", "test:run-activity": "node --test scripts/run-activity.test.mjs", "test:template-input-preview": "node --test scripts/template-input-preview.test.mjs", diff --git a/scripts/bundle-budget.mjs b/scripts/bundle-budget.mjs index bb3cd3c5..5cd33be3 100644 --- a/scripts/bundle-budget.mjs +++ b/scripts/bundle-budget.mjs @@ -217,7 +217,13 @@ const MAX_DEFERRED_CHUNK_GZIP_BYTES = 64 * 1024; // stay in lazy template authoring. Measured aggregate is 258637 bytes (+345; // 329 bytes in that helper). Allow 384 bytes above the former 258304-byte cap; // startup, the 64 KiB per-chunk ceiling and loading boundaries stay unchanged. -const MAX_DEFERRED_GZIP_BYTES = 248 * 1024 + 512 + 3328 + 128 + 256 + 128 + 384; +// Reviewed guidance transfer, component-bundle authoring, optional stage +// controls and native masked recipes measure 267262 deferred bytes. Read-only +// visual projection keeps structural grouping out of startup. Exact archived +// runtime restoration and the native recipe checks add 1316 bytes to the last +// reviewed build. Bound these features and relocation at 8.5 KiB above the +// former aggregate cap; startup and both per-chunk caps stay fixed. +const MAX_DEFERRED_GZIP_BYTES = 248 * 1024 + 512 + 3328 + 128 + 256 + 128 + 384 + 8704; const STATIC_MODULE_REFERENCE = /\b(?:import(?=\s|["'{*])(?!\s*\()|export(?=\s|["'{*]))[^;]*?["'](\.\/[^"'?]+\.js)(?:\?v=[0-9a-f]{16})?["']/g; diff --git a/scripts/encoding-node-presentation.test.mjs b/scripts/encoding-node-presentation.test.mjs index b2e144a9..5db91090 100644 --- a/scripts/encoding-node-presentation.test.mjs +++ b/scripts/encoding-node-presentation.test.mjs @@ -86,3 +86,21 @@ test('Guidance presentation excludes unrelated recipes and scopes to image/audio outside.effectiveGraph.nodes.forEach((n) => (n.data.operationAuthoring.operation.task = 'other_task')); assert.equal(presentation.isFocusedStageNode(outside), false); }); + +test('optional visual stages use the ordinary node shell and keep custom reusable names', () => { + for (const kind of ['setup', 'mask', 'output']) { + const instance = { + definitionSnapshot: { displayName: 'My reusable stage', source: { provider: `modiff.visual-stages.v1/${kind}` } }, + effectiveGraph: { nodes: [{ data: {} }] }, + }; + assert.equal(presentation.isFocusedStageNode(instance), true); + assert.equal(presentation.isFocusedStageNode({ ...instance, effectiveGraph: { nodes: [] } }), false); + } + assert.equal( + presentation.isFocusedStageNode({ + definitionSnapshot: { source: { provider: 'user' } }, + effectiveGraph: { nodes: [{ data: {} }] }, + }), + false, + ); +}); diff --git a/scripts/flow-graph-mutations.test.mjs b/scripts/flow-graph-mutations.test.mjs index fc2cfd99..6732fe88 100644 --- a/scripts/flow-graph-mutations.test.mjs +++ b/scripts/flow-graph-mutations.test.mjs @@ -1,4 +1,5 @@ import assert from 'node:assert/strict'; +import { readFile } from 'node:fs/promises'; import { after, before, beforeEach, test } from 'node:test'; import path from 'node:path'; import { fileURLToPath } from 'node:url'; @@ -1609,3 +1610,59 @@ test('cycle validation supports expanded internal reconnects without adding exte ); assert.deepEqual({ nodes, edges }, before); }); + +test('operation hydration restores only declared missing hidden input sockets while preserving widgets and live actions', async () => { + const fixture = JSON.parse( + await readFile(new URL('../tests/fixtures/qwen-component-bundle-contract.v1.json', import.meta.url), 'utf8'), + ); + const { parseOperationContracts } = await server.ssrLoadModule('/src/workflow/operationContracts.ts'); + const operation = parseOperationContracts(fixture.contracts, 3).find( + (item) => item.nodeKey === 'modules.ModularDiffusers.DecodeLatents', + ); + const stored = node('decode', { + latents: { type: 'latents', display: 'input', required: true, onSignal: 'untrusted_saved_action' }, + }); + Object.assign(stored.data, { + module: 'modules.ModularDiffusers', + action: 'DecodeLatents', + operationAuthoring: { schemaVersion: 1, operation, defaults: {}, retained: [] }, + }); + const live = { + latents: { type: 'latents', display: 'input', hidden: true, onSignal: 'current_live_action' }, + pipeline_components: { type: 'diffusers_modular_pipeline_components', display: 'input', hidden: true }, + foreign_components: { type: 'diffusers_modular_pipeline_components', display: 'input', hidden: true }, + hidden_width: { type: 'int', display: 'number', hidden: true, default: 64 }, + hidden_mode: { type: 'string', display: 'select', hidden: true, default: 'native' }, + hidden_default: { type: 'float', hidden: true, default: 0.75 }, + preview: { display: 'ui_image', type: 'image', dataSource: 'file' }, + }; + nodeStoreModule.useNodesStore.setState({ + nodesRegistry: { [operation.nodeKey]: { ...stored.data, params: live } }, + }); + const before = structuredClone(stored); + flowStoreModule.useFlowStore.getState().replaceGraph({ nodes: [stored], edges: [] }); + const params = flowStoreModule.useFlowStore.getState().nodes[0].data.params; + assert.equal(params.foreign_components, undefined, 'an absent socket from another route must stay absent'); + for (const field of ['pipeline_components', 'hidden_width', 'hidden_mode', 'hidden_default', 'preview']) { + const hydrated = { ...params[field] }; + delete hydrated.isConnected; + assert.deepEqual(hydrated, live[field], field); + } + assert.equal(params.latents.required, true); + assert.equal(params.latents.onSignal, 'current_live_action'); + assert.deepEqual(stored, before, 'hydration must not mutate the saved document'); +}); + +test('missing hidden socket hydration preserves legacy behavior without a parsed operation hint', () => { + const missing = { type: 'components', display: 'input', hidden: true }; + const definition = node('legacy', { missing }); + nodeStoreModule.useNodesStore.setState({ nodesRegistry: { 'modules.Test.legacy': definition.data } }); + for (const hint of [undefined, { schemaVersion: 1, operation: { ports: [] }, defaults: {}, retained: [] }]) { + const stored = node('legacy', {}, { ...(hint ? { operationAuthoring: hint } : {}) }); + flowStoreModule.useFlowStore.getState().replaceGraph({ nodes: [stored], edges: [] }); + assert.deepEqual(flowStoreModule.useFlowStore.getState().nodes[0].data.params.missing, { + ...missing, + isConnected: false, + }); + } +}); diff --git a/scripts/media-attachment.test.mjs b/scripts/media-attachment.test.mjs index 004ebbfa..ec8dd1ec 100644 --- a/scripts/media-attachment.test.mjs +++ b/scripts/media-attachment.test.mjs @@ -56,6 +56,305 @@ const registry = { }, }; +test('optional stage groups retain executable leaves, previews and exact mask geometry', async () => { + const visual = await server.ssrLoadModule('/src/workflow/visualOperationGroups.ts'); + const runtime = await server.ssrLoadModule('/src/studio/blockRuntimeV2.ts'); + const starter = starters.find((s) => s.pipelineClass === 'FluxModularPipeline' && s.task === 'text_to_image'); + const graph = visual.groupNewOperationGraph(authoring.createOperationStarter(starter, { x: 0, y: 0 })); + const owner = graph.nodes.find((n) => n.data.action === 'ModelsLoader'); + const decoder = graph.nodes.find((n) => n.data.action === 'DecodeLatents'); + const image = decoder.data.operationAuthoring.operation.ports.find( + (p) => p.direction === 'output' && p.types.includes('image'), + ); + graph.nodes.push({ + id: 'preview', + type: 'custom', + position: { x: 1600, y: 0 }, + data: { + module: 'modules.Image', + action: 'Preview', + label: 'Preview Image', + params: { + image: { type: ['image', 'latent'], display: 'input' }, + preview: { type: 'url', display: 'ui_image', dataSource: 'output' }, + output: { type: 'image', display: 'output' }, + export: { type: 'str', display: 'text', value: '0' }, + }, + }, + }); + graph.edges.push({ + id: 'preview-edge', + source: decoder.id, + sourceHandle: image.name, + target: 'preview', + targetHandle: 'image', + }); + assert.deepEqual(visual.availableOperationStageGroups(graph, owner.id), ['output']); + const before = visual.unpackVisualOperationGroups(graph).graph; + const grouped = visual.groupOperationStages(graph, owner.id, ['output']); + const output = grouped.nodes.find((n) => visual.visualOperationGroup(n) === 'output'); + assert.equal(output.data.label, 'Image Output'); + assert.equal(output.data.blockInstanceV2.effectiveGraph.nodes.length, 2); + assert.deepEqual(output.data.blockInstanceV2.definitionSnapshot.previews, [ + { nodeId: 'stage-preview', outputPortId: 'preview', mediaType: 'image', primary: true }, + ]); + assert.equal(runtime.blockViewModelV2(output.data.blockInstanceV2).previewViews.length, 1); + const selected = runtime.expandBlockGraphV2ForExecution(grouped.nodes, grouped.edges, output.id); + assert.ok( + ['ModelsLoader', 'EncodePrompt', 'Denoise', 'DecodeLatents', 'Preview'].every((action) => + selected.nodes.some((node) => node.data.action === action), + ), + 'selected Image Output keeps the original upstream dependency closure', + ); + for (const original of graph.nodes.filter((node) => visual.visualOperationGroup(node))) + assert.equal( + grouped.nodes.find((node) => node.id === original.id), + original, + 'other stage wrappers retain exact state', + ); + const separated = visual.unpackVisualOperationGroups(grouped).graph; + const signature = (g) => ({ + nodes: g.nodes + .map((n) => [ + n.data.module, + n.data.action, + Object.fromEntries(Object.entries(n.data.params).map(([key, p]) => [key, p.value ?? p.default])), + ]) + .sort(), + edges: g.edges + .map((e) => [ + g.nodes.find((n) => n.id === e.source).data.action, + e.sourceHandle, + g.nodes.find((n) => n.id === e.target).data.action, + e.targetHandle, + ]) + .sort(), + }); + assert.deepEqual(signature(separated), signature(before)); + assert.deepEqual(visual.availableOperationStageGroups(grouped, owner.id), []); + const completed = runtime.setBlockPreviewStateV2( + output.data.blockInstanceV2, + { nodeId: 'stage-preview', outputPortId: 'preview' }, + { + mediaReference: '/file/output.png', + taskId: 'preview-task', + status: 'complete', + }, + ); + const withPreview = { + ...grouped, + nodes: grouped.nodes.map((node) => (node.id === output.id ? runtime.createBlockRootNodeV2(completed) : node)), + }; + const projected = visual.unpackVisualOperationGroups(withPreview); + assert.equal( + projected.graph.nodes.find((node) => node.data.action === 'Preview').data.params.preview.value, + '/file/output.png', + ); + const restored = visual.restoreVisualOperationGroups(projected.graph, projected); + assert.deepEqual( + restored.nodes.find((node) => node.id === output.id).data.blockInstanceV2.previewStates, + completed.previewStates, + ); + const maskStarter = starters.find((s) => s.pipelineClass === 'FluxFillPipeline' && s.task === 'outpaint'); + assert.ok(maskStarter, 'use the backend declared whole-pipeline masked task'); + const maskGraph = authoring.createOperationStarter(maskStarter, { x: 0, y: 0 }); + const maskOwner = maskGraph.nodes.find((n) => n.data.operationAuthoring.operation.decomposition === 'loader'); + const consumer = maskGraph.nodes.find((n) => + n.data.operationAuthoring.operation.ports.some((p) => p.name === 'mask_image' && p.direction === 'input'), + ); + maskGraph.nodes.push( + { + id: 'source', + type: 'custom', + position: { x: -800, y: 0 }, + data: { + module: 'modules.Image', + action: 'Load', + label: 'Load Image', + params: { + file: { type: 'str', display: 'filebrowser', label: false, value: '/source.png' }, + image: { type: 'image', display: 'output' }, + }, + }, + }, + { + id: 'canvas', + type: 'custom', + position: { x: -400, y: 0 }, + data: { + module: 'modules.DiffusersImage', + action: 'OutpaintCanvas', + label: 'Outpaint Canvas', + params: { + image: { type: 'image', display: 'input' }, + width: { label: 'Canvas width', type: 'int', value: 1344 }, + height: { label: 'Canvas height', type: 'int', value: 768 }, + feather: { label: 'Mask feather', type: 'float', value: 8 }, + canvas: { type: 'image', display: 'output' }, + mask_image: { type: 'image', display: 'output' }, + width_out: { type: 'int', display: 'output' }, + height_out: { type: 'int', display: 'output' }, + }, + }, + }, + ); + for (const [source, sourceHandle, target, targetHandle] of [ + ['source', 'image', 'canvas', 'image'], + ['canvas', 'canvas', consumer.id, 'image'], + ['canvas', 'mask_image', consumer.id, 'mask_image'], + ['canvas', 'width_out', consumer.id, 'width'], + ['canvas', 'height_out', consumer.id, 'height'], + ]) + maskGraph.edges.push({ id: `${source}-${sourceHandle}`, source, sourceHandle, target, targetHandle }); + const mask = visual.groupOperationStages(maskGraph, maskOwner.id, ['mask']); + const maskRoot = mask.nodes.find((n) => visual.visualOperationGroup(n) === 'mask'); + assert.equal(maskRoot.data.label, 'Prepare Mask'); + assert.equal( + maskRoot.data.blockInstanceV2.effectiveInterface.controls.find((control) => control.binding.fieldId === 'file') + .label, + 'file', + 'the real Image.Load hidden field label receives a valid interface name', + ); + assert.deepEqual( + maskRoot.data.blockInstanceV2.effectiveInterface.controls + .filter((control) => ['width', 'height', 'feather'].includes(control.binding.fieldId)) + .map((control) => [control.binding.fieldId, control.label, control.defaultValue]), + [ + ['width', 'Canvas width', 1344], + ['height', 'Canvas height', 768], + ['feather', 'Mask feather', 8], + ], + 'registered utilities infer scalar editors from their types without a display declaration', + ); + assert.deepEqual(signature(visual.unpackVisualOperationGroups(mask).graph), signature(maskGraph)); + const wrong = structuredClone(maskGraph); + wrong.edges = wrong.edges.filter((e) => e.sourceHandle !== 'mask_image'); + assert.deepEqual(visual.availableOperationStageGroups(wrong, maskOwner.id), []); +}); + +test('Model Setup retains loader ownership, ordered descriptors, task adaptation and independent reuse', async () => { + const visual = await server.ssrLoadModule('/src/workflow/visualOperationGroups.ts'); + const runtime = await server.ssrLoadModule('/src/studio/blockRuntimeV2.ts'); + const schema = await server.ssrLoadModule('/src/studio/blockSchemaV2.ts'); + const persistence = await server.ssrLoadModule('/src/studio/blockDefinitionPersistenceV2.ts'); + const starter = starters.find((s) => s.pipelineClass === 'FluxModularPipeline' && s.task === 'text_to_image'); + const graph = visual.groupNewOperationGraph(authoring.createOperationStarter(starter, { x: 0, y: 0 })); + const owner = graph.nodes.find((n) => n.data.action === 'ModelsLoader'); + for (const id of ['lora-a', 'lora-b']) + graph.nodes.push({ + id, + type: 'custom', + position: { x: -800, y: 0 }, + data: { + module: 'modules.ModularDiffusers', + action: 'Lora', + label: id, + params: { + model: { type: 'string', display: 'modelselect', value: { source: 'hub', value: id } }, + scale: { type: 'float', display: 'slider', value: id === 'lora-a' ? 0 : 0.4 }, + previous_loras: { type: 'custom_lora', display: 'input' }, + lora: { type: 'custom_lora', display: 'output' }, + }, + }, + }); + graph.edges.push( + { id: 'ordered', source: 'lora-a', sourceHandle: 'lora', target: 'lora-b', targetHandle: 'previous_loras' }, + { id: 'descriptors', source: 'lora-b', sourceHandle: 'lora', target: owner.id, targetHandle: 'lora_list' }, + ); + const grouped = visual.groupOperationStages(graph, owner.id, ['setup']); + const setup = grouped.nodes.find((n) => visual.visualOperationGroup(n) === 'setup'); + assert.equal(setup.data.label, 'Model Setup'); + assert.equal(setup.data.blockInstanceV2.effectiveGraph.nodes.length, 3); + assert.equal(setup.data.blockInstanceV2.effectiveGraph.edges.length, 2); + const semanticOwner = setup.data.blockInstanceV2.effectiveGraph.nodes.find( + (n) => n.data.action === 'ModelsLoader', + ).nodeId; + const ownerId = visual.visualOperationOwnerId(grouped, semanticOwner, setup.id); + assert.equal(ownerId, `${setup.id}/${semanticOwner}`); + const sealed = runtime.replaceBlockEffectiveInterfaceV2(setup.data.blockInstanceV2, { + boundary: setup.data.blockInstanceV2.effectiveInterface.boundary, + controls: setup.data.blockInstanceV2.effectiveInterface.controls.map((control) => + control.binding.nodeId === semanticOwner && control.binding.fieldId === 'repo_id' + ? { ...control, sealed: true } + : control, + ), + }); + const protectedGraph = { + ...grouped, + nodes: grouped.nodes.map((node) => (node.id === setup.id ? runtime.createBlockRootNodeV2(sealed) : node)), + }; + const replacement = structuredClone(starter); + replacement.nodes.find((node) => node.operation.decomposition === 'loader').node.params.repo_id.value = + 'example/different-model'; + const protectedBefore = structuredClone(protectedGraph); + assert.throws( + () => authoring.planOperationChange(protectedGraph, ownerId, replacement, { replaceModel: true }), + /sealed/, + ); + assert.deepEqual(protectedGraph, protectedBefore); + const target = starters.find((s) => s.pipelineClass === 'FluxModularPipeline' && s.task === 'image_to_image'); + const plan = authoring.planOperationChange(grouped, ownerId, target); + const flat = visual.unpackVisualOperationGroups(plan.graph).graph; + assert.ok( + flat.nodes.find((n) => n.data.action === 'ModelsLoader').data.operationAuthoring.operation.task === + 'image_to_image', + ); + assert.ok( + flat.nodes.some((n) => n.data.operationAuthoring?.operation.nodeType === 'vae_encoder'), + 'the complete connected branch adapts outside Model Setup', + ); + assert.equal(flat.nodes.filter((n) => n.data.action === 'Lora').length, 2); + assert.deepEqual( + plan.graph.nodes.find((n) => n.id === setup.id).data.blockInstanceV2.definitionSnapshot, + setup.data.blockInstanceV2.definitionSnapshot, + ); + const control = setup.data.blockInstanceV2.effectiveInterface.controls.find( + (c) => c.binding.nodeId === 'stage-lora-a' && c.binding.fieldId === 'scale', + ); + assert.equal(schema.blockInstanceValueV2(setup.data.blockInstanceV2, control.controlId), 0); + const changed = runtime.setBlockInstanceValueV2(setup.data.blockInstanceV2, control.controlId, 0.7); + const definition = persistence.reusableBlockDefinitionFromInstanceV2(changed, { + choice: 'new', + definitionId: 'my-setup', + displayName: 'My model setup', + }); + const instances = ['first', 'second'].map((instanceId) => + schema.createBlockInstanceV2(definition, { + instanceId, + position: { x: 0, y: 0 }, + size: { width: 400, height: 540 }, + }), + ); + assert.equal(schema.blockInstanceValueV2(instances[0], control.controlId), 0.7); + const edited = runtime.setBlockInstanceValueV2(instances[0], control.controlId, 0); + assert.equal(schema.blockInstanceValueV2(edited, control.controlId), 0); + assert.equal(schema.blockInstanceValueV2(instances[1], control.controlId), 0.7); + const shared = structuredClone(graph); + const other = { ...structuredClone(owner), id: 'other-model' }; + shared.nodes.push(other); + shared.edges.push({ + id: 'shared-descriptors', + source: 'lora-b', + sourceHandle: 'lora', + target: other.id, + targetHandle: 'lora_list', + }); + assert.ok( + !visual.availableOperationStageGroups(shared, owner.id).includes('setup'), + 'a modifier shared with another loader is not claimed exclusively', + ); + shared.edges = shared.edges.filter((edge) => edge.id !== 'shared-descriptors'); + shared.nodes.push({ ...structuredClone(shared.nodes.find((node) => node.id === 'lora-a')), id: 'lora-c' }); + shared.edges.push( + { id: 'shared-chain', source: 'lora-a', sourceHandle: 'lora', target: 'lora-c', targetHandle: 'previous_loras' }, + { id: 'other-chain-owner', source: 'lora-c', sourceHandle: 'lora', target: other.id, targetHandle: 'lora_list' }, + ); + assert.ok( + !visual.availableOperationStageGroups(shared, owner.id).includes('setup'), + 'indirectly shared descriptor chains also retain separate ownership', + ); +}); + test('removed dynamic Guidance controls stay hidden without resetting execution values', async () => { const visual = await server.ssrLoadModule('/src/workflow/visualOperationGroups.ts'); const runtime = await server.ssrLoadModule('/src/studio/blockRuntimeV2.ts'); diff --git a/scripts/operation-authoring.test.mjs b/scripts/operation-authoring.test.mjs index 1d1168e0..356ec7c2 100644 --- a/scripts/operation-authoring.test.mjs +++ b/scripts/operation-authoring.test.mjs @@ -2216,6 +2216,683 @@ test('a whole-pipeline round trip restores custom text to the dedicated prompt s assert.equal(returned.graph.nodes.find((node) => node.id === wire.target).data.params.prompt.isInput, false); }); +function declaredGuidance(pipeline = 'FuturePipeline', options = {}) { + const item = starter(pipeline); + const node = item.nodes[1]; + const controls = { + guider: { type: 'string', display: 'select', value: 'ClassifierFreeGuidance' }, + enabled: { type: 'boolean', display: 'switch', value: true }, + use_original_formulation: { type: 'boolean', display: 'switch', value: false }, + guidance_scale: { type: 'float', display: 'number', value: 3.5 }, + }; + Object.assign(node.node.params, controls); + const control = { + technique: 'classifier_free', + parameter: 'scale', + compatibilityScope: 'diffusers.classifier_free.v1', + scaleMeaning: 'cfg_prediction_mix', + enabled: 'boolean_field', + enabledField: 'enabled', + formulation: 'boolean_field', + formulationField: 'use_original_formulation', + selectorField: 'guider', + selectorValue: 'ClassifierFreeGuidance', + negativeConditioning: 'pipeline_scoped_when_enabled', + negativeConditioningScope: pipeline, + ...options, + }; + for (const [name, field] of Object.entries(controls)) { + node.operation.ports.push({ + name, + semanticName: name, + direction: 'input', + roles: ['value'], + types: [field.type], + required: false, + hidden: false, + semantics: { + kind: 'value', + scope: null, + state: null, + owner: 'none', + members: [], + ...(name === 'guidance_scale' ? { control } : {}), + }, + }); + } + return item; +} + +test('an unchanged route attachment retains authored hidden runtime values while a new task adopts its defaults', () => { + const recipe = starter(); + recipe.nodes[0].node.params.repo_id = { + type: 'model', + display: 'modelselect', + value: { source: 'hub', value: 'org/model' }, + }; + for (const stage of recipe.nodes) { + stage.node.params.runtime_variant = { + type: 'string', + display: 'select', + hidden: true, + options: ['native', 'compatible'], + value: 'native', + }; + stage.operation.ports.push({ + name: 'runtime_variant', + semanticName: 'runtime_variant', + direction: 'input', + roles: ['value'], + types: ['string'], + required: false, + hidden: true, + semantics: { kind: 'value', scope: null, state: null, owner: 'none', members: [] }, + }); + } + const graph = authoring.createOperationStarter(recipe, { x: 0, y: 0 }); + graph.nodes.forEach((node) => { + node.data.params.runtime_variant.value = 'compatible'; + }); + const preserved = authoring.planOperationChange(graph, graph.nodes[0].id, recipe, { preserveValues: true }); + assert.ok(preserved.graph.nodes.every((node) => node.data.params.runtime_variant.value === 'compatible')); + const nextTask = structuredClone(recipe); + nextTask.task = 'image_to_image'; + nextTask.workflowId = 'image_to_image'; + for (const stage of nextTask.nodes) { + stage.operation.task = nextTask.task; + stage.operation.workflowId = nextTask.workflowId; + } + const changed = authoring.planOperationChange(graph, graph.nodes[0].id, nextTask, { preserveValues: true }); + assert.ok(changed.graph.nodes.every((node) => node.data.params.runtime_variant.value === 'native')); + const nextModel = structuredClone(recipe); + nextModel.nodes[0].node.params.repo_id.value = { source: 'hub', value: 'org/other-model' }; + const replaced = authoring.planOperationChange(graph, graph.nodes[0].id, nextModel, { + preserveValues: true, + replaceModel: true, + }); + assert.ok(replaced.graph.nodes.every((node) => node.data.params.runtime_variant.value === 'native')); + const rebound = structuredClone(recipe); + for (const stage of rebound.nodes) { + stage.operation.binding = { ...stage.operation.binding, values: { runtime_variant: 'native' } }; + } + const bound = authoring.planOperationChange(graph, graph.nodes[0].id, rebound, { preserveValues: true }); + assert.ok(bound.graph.nodes.every((node) => node.data.params.runtime_variant.value === 'native')); + const reset = authoring.planOperationChange(graph, graph.nodes[0].id, recipe, { + preserveValues: true, + restoreDefaults: true, + }); + assert.ok(reset.graph.nodes.every((node) => node.data.params.runtime_variant.value === 'native')); + for (const [sourceSelector, targetSelector, expected] of [ + [{ source: 'local', value: '/models/model' }, { source: 'local', value: '/models/model' }, 'compatible'], + ['org/model', 'org/model', 'compatible'], + [{ source: 'hub', value: 'org/model' }, { source: 'local', value: 'org/model' }, 'native'], + [{ source: 'unknown', value: 'org/model' }, { source: 'unknown', value: 'org/model' }, 'native'], + [{ source: 'hub', value: ' ' }, { source: 'hub', value: ' ' }, 'native'], + [{ source: 'hub', value: ['org/model'] }, { source: 'hub', value: ['org/model'] }, 'native'], + [ + { source: 'hub', value: 'org/model', sha256: 'old' }, + { source: 'hub', value: 'org/model', sha256: 'new' }, + 'native', + ], + ]) { + const source = structuredClone(graph); + source.nodes[0].data.params.repo_id.value = sourceSelector; + const target = structuredClone(recipe); + target.nodes[0].node.params.repo_id.value = targetSelector; + const result = authoring.planOperationChange(source, source.nodes[0].id, target, { preserveValues: true }); + assert.ok( + result.graph.nodes.every((node) => node.data.params.runtime_variant.value === expected), + `Exact durable owner identity: ${JSON.stringify([sourceSelector, targetSelector])}`, + ); + } +}); + +function archivedHiddenRuntimeFixture() { + const recipe = starter(); + recipe.nodes[0].node.params.repo_id = { + type: 'model', + display: 'modelselect', + value: { source: 'hub', value: 'org/model' }, + }; + for (const stage of recipe.nodes) { + stage.node.params.runtime_variant = { + type: 'string', + display: 'select', + hidden: true, + options: ['native', 'compatible'], + value: 'native', + }; + stage.operation.ports.push({ + name: 'runtime_variant', + semanticName: 'runtime_variant', + direction: 'input', + roles: ['value'], + types: ['string'], + required: false, + hidden: true, + semantics: { kind: 'value', scope: null, state: null, owner: 'none', members: [] }, + }); + } + const graph = authoring.createOperationStarter(recipe, { x: 0, y: 0 }); + graph.nodes.forEach((node) => { + node.data.params.runtime_variant.value = 'compatible'; + }); + const next = structuredClone(recipe); + next.task = next.workflowId = 'image_to_image'; + for (const stage of next.nodes) stage.operation.task = stage.operation.workflowId = next.task; + const away = authoring.planOperationChange(graph, graph.nodes[0].id, next).graph; + const owner = away.nodes.find((node) => node.data.action === 'Load'); + return { recipe, away, owner, archive: owner.data.operationAuthoring.inactiveDrafts[0] }; +} + +test('exact archived route return restores its authored hidden runtime literals together', () => { + const { recipe, away, owner } = archivedHiddenRuntimeFixture(); + const before = structuredClone(away); + const returned = authoring.planOperationChange(away, owner.id, recipe); + assert.ok(returned.graph.nodes.every((node) => node.data.params.runtime_variant.value === 'compatible')); + assert.ok(returned.review.preserved.some((message) => /runtime settings.*inactive draft/i.test(message))); + assert.deepEqual(away, before, 'return preview must not alter the archive or current workflow'); + const reset = authoring.planOperationChange(away, owner.id, recipe, { restoreDefaults: true }); + assert.ok(reset.graph.nodes.every((node) => node.data.params.runtime_variant.value === 'native')); +}); + +test('bound hidden identity selectors stay under fresh binding authority during runtime draft recovery', () => { + const { recipe, away, owner, archive } = archivedHiddenRuntimeFixture(); + for (const [index, stage] of recipe.nodes.entries()) { + stage.node.params.bound_identity = { type: 'string', hidden: true, value: 'exact' }; + stage.operation.binding.values.bound_identity = 'exact'; + stage.operation.ports.push({ + name: 'bound_identity', + semanticName: 'bound_identity', + direction: 'input', + roles: ['value'], + types: ['string'], + required: false, + hidden: true, + semantics: { kind: 'value', scope: null, state: null, owner: 'none', members: [] }, + }); + archive.nodes[index].data.operationAuthoring.operation = structuredClone(stage.operation); + archive.nodes[index].data.params.bound_identity = { ...stage.node.params.bound_identity, value: 'stale' }; + archive.nodes[index].data.operationAuthoring.authored = ['runtime_variant', 'bound_identity']; + } + const returned = authoring.planOperationChange(away, owner.id, recipe); + assert.ok(returned.graph.nodes.every((node) => node.data.params.runtime_variant.value === 'compatible')); + assert.ok(returned.graph.nodes.every((node) => node.data.params.bound_identity.value === 'exact')); +}); + +test('regrouping unchanged stages and returning to their snapshot derives the actual customization state', async () => { + const visual = await server.ssrLoadModule('/src/workflow/visualOperationGroups.ts'); + const runtime = await server.ssrLoadModule('/src/studio/blockRuntimeV2.ts'); + const ordinary = graph(); + const grouped = visual.groupVisualStages(ordinary, [ordinary.nodes[1].id], 'inputs'); + const initial = structuredClone(grouped); + const root = grouped.nodes.find((node) => node.data.blockInstanceV2); + const same = visual.groupVisualStages(ordinary, [ordinary.nodes[1].id], 'inputs', root); + const sameInstance = same.nodes.find((node) => node.id === root.id).data.blockInstanceV2; + assert.equal(sameInstance.customization.state, 'unchanged'); + assert.deepEqual(sameInstance.definitionSnapshot, root.data.blockInstanceV2.definitionSnapshot); + assert.deepEqual(sameInstance.effectiveGraph, root.data.blockInstanceV2.effectiveGraph); + + const promptControl = root.data.blockInstanceV2.effectiveInterface.controls.find( + (control) => control.binding.fieldId === 'prompt', + ); + const parameterEdit = structuredClone(grouped); + const parameterRoot = parameterEdit.nodes.find((node) => node.id === root.id); + parameterRoot.data.blockInstanceV2 = runtime.setBlockInstanceValueV2( + parameterRoot.data.blockInstanceV2, + promptControl.controlId, + 'Public override', + ); + assert.equal(parameterRoot.data.blockInstanceV2.customization.state, 'parameters_changed'); + const parameterUnpacked = visual.unpackVisualOperationGroups(parameterEdit); + const parameterRegrouped = visual.restoreVisualOperationGroups(parameterUnpacked.graph, parameterUnpacked); + assert.equal( + visual.unpackVisualOperationGroups(parameterRegrouped).graph.nodes.find((node) => node.data.action === 'Denoise') + .data.params.prompt.value, + 'Public override', + 'regrouping materializes and keeps the public parameter override', + ); + assert.equal( + parameterRegrouped.nodes.find((node) => node.id === root.id).data.blockInstanceV2.customization.state, + 'structure_changed', + 'materialized parameter overrides differ from the immutable base graph', + ); + + const changed = structuredClone(ordinary); + changed.nodes.find((node) => node.data.action === 'Denoise').data.params.prompt.value = 'Changed prompt'; + const edited = visual.groupVisualStages(changed, [ordinary.nodes[1].id], 'inputs', root); + assert.equal( + edited.nodes.find((node) => node.id === root.id).data.blockInstanceV2.customization.state, + 'structure_changed', + ); + const restored = visual.groupVisualStages( + ordinary, + [ordinary.nodes[1].id], + 'inputs', + edited.nodes.find((node) => node.id === root.id), + ); + const restoredInstance = restored.nodes.find((node) => node.id === root.id).data.blockInstanceV2; + assert.equal(restoredInstance.customization.state, 'unchanged'); + assert.deepEqual(restoredInstance.definitionSnapshot, root.data.blockInstanceV2.definitionSnapshot); + assert.deepEqual(restoredInstance.effectiveGraph, root.data.blockInstanceV2.effectiveGraph); + assert.deepEqual(grouped, initial, 'regrouping never mutates the reusable snapshot or original instance'); +}); + +for (const [name, change] of [ + [ + 'another archived owner', + ({ archive }) => { + archive.nodes[0].data.params.repo_id.value = { source: 'hub', value: 'org/other' }; + }, + ], + [ + 'another archived revision', + ({ archive }) => { + archive.nodes[0].data.params.revision = { type: 'string', value: 'other' }; + }, + ], + [ + 'another archived task', + ({ archive }) => { + archive.nodes[0].data.operationAuthoring.operation.task = 'outpaint'; + }, + ], + [ + 'changed archived binding', + ({ archive }) => { + archive.nodes[1].data.operationAuthoring.operation.binding.values.other = 'bound'; + }, + ], + [ + 'changed archived value port', + ({ archive }) => { + archive.nodes[1].data.operationAuthoring.operation.ports.find((p) => p.name === 'runtime_variant').semanticName = + 'another_runtime'; + }, + ], + [ + 'changed destination visibility', + ({ recipe }) => { + recipe.nodes[1].node.params.runtime_variant.hidden = false; + }, + ], + [ + 'changed destination type', + ({ recipe }) => { + recipe.nodes[1].node.params.runtime_variant.type = 'int'; + }, + ], + [ + 'rejected destination value', + ({ recipe }) => { + recipe.nodes[1].node.params.runtime_variant.options = ['native']; + }, + ], + [ + 'archived runtime wire', + ({ archive }) => { + archive.edges.push({ + id: 'runtime-wire', + source: 'external', + sourceHandle: 'value', + target: archive.nodes[1].id, + targetHandle: 'runtime_variant', + }); + }, + ], + [ + 'archived connected marker', + ({ archive }) => { + archive.nodes[1].data.params.runtime_variant.isConnected = true; + }, + ], + [ + 'fresh runtime wire', + ({ recipe }) => { + recipe.edges.push({ + source: 'diffusion.load_models', + sourceHandle: 'models', + target: 'diffusion.denoise', + targetHandle: 'runtime_variant', + }); + }, + ], + [ + 'removed destination runtime port', + ({ recipe }) => { + recipe.nodes[1].operation.ports = recipe.nodes[1].operation.ports.filter((p) => p.name !== 'runtime_variant'); + }, + ], + [ + 'fresh connected marker', + ({ recipe }) => { + recipe.nodes[1].node.params.runtime_variant.isConnected = true; + }, + ], + [ + 'new bound runtime selector', + ({ recipe }) => { + recipe.nodes[1].operation.binding.values.runtime_variant = 'native'; + }, + ], +]) + test(`archived hidden runtime restoration is atomic and reviewed with ${name}`, () => { + const value = archivedHiddenRuntimeFixture(); + change(value); + const before = structuredClone(value.away); + const result = authoring.planOperationChange(value.away, value.owner.id, value.recipe); + assert.ok(result.graph.nodes.every((node) => node.data.params.runtime_variant.value === 'native')); + assert.equal(result.review.required, true); + assert.ok(result.review.attention.some((message) => /runtime settings.*archived.*defaults/i.test(message))); + assert.deepEqual(value.away, before, 'failed restoration keeps the original archive intact'); + }); + +test('explicitly compatible CFG settings transfer across families without moving conditioning ownership', () => { + const source = authoring.createOperationStarter(declaredGuidance(), { x: 0, y: 0 }); + source.nodes[1].data.params.guidance_scale.value = 7; + const before = structuredClone(source); + const changed = authoring.planOperationChange(source, source.nodes[0].id, declaredGuidance('OtherPipeline')); + const stage = changed.graph.nodes.find((node) => node.data.action === 'Denoise'); + assert.equal(stage.data.params.guidance_scale.value, 7); + assert.equal(stage.data.operationAuthoring.retained.length, 0); + assert.equal( + stage.data.operationAuthoring.operation.ports.find((p) => p.name === 'guidance_scale').semantics.control + .negativeConditioningScope, + 'OtherPipeline', + ); + assert.deepEqual(source, before, 'Preview does not mutate the original workflow.'); +}); + +test('reviewed control aliases transfer by declared meaning rather than field labels', () => { + const source = authoring.createOperationStarter(declaredGuidance(), { x: 0, y: 0 }); + source.nodes[1].data.params.guidance_scale.value = 7; + const target = declaredGuidance('OtherPipeline'); + const node = target.nodes[1]; + node.node.params.true_cfg_scale = node.node.params.guidance_scale; + delete node.node.params.guidance_scale; + const port = node.operation.ports.find((p) => p.name === 'guidance_scale'); + port.name = 'true_cfg_scale'; + port.semanticName = 'true_cfg_scale'; + const changed = authoring.planOperationChange(source, source.nodes[0].id, target); + const stage = changed.graph.nodes.find((node) => node.data.action === 'Denoise'); + assert.equal(stage.data.params.true_cfg_scale.value, 7); + assert.equal(stage.data.operationAuthoring.retained.length, 0); +}); + +test('unchanged model attachment preserves unresolved distilled values and wires without authorizing model transfer', () => { + const recipe = declaredGuidance(); + recipe.nodes[0].node.params.repo_id = { + type: 'model', + display: 'modelselect', + value: { source: 'hub', value: 'org/model' }, + }; + recipe.nodes[1].operation.ports.find((p) => p.name === 'guidance_scale').semantics.control.enabled = 'model_config'; + recipe.nodes[1].operation.ports.find((p) => p.name === 'guidance_scale').semantics.control.enabledField = null; + const source = authoring.createOperationStarter(recipe, { x: 0, y: 0 }); + source.nodes[1].data.params.guidance_scale.value = 7; + source.nodes[1].data.params.guidance_scale.isInput = true; + const input = { + id: 'external-guidance', + type: 'custom', + position: { x: -400, y: 0 }, + data: { + module: 'modules.Test', + action: 'Scalar', + label: 'Guidance value', + params: { value: { type: 'float', display: 'output' } }, + }, + }; + source.nodes.push(input); + source.edges.push({ + id: 'external-guidance-wire', + source: input.id, + sourceHandle: 'value', + target: source.nodes[1].id, + targetHandle: 'guidance_scale', + }); + const preserved = authoring.planOperationChange(source, source.nodes[0].id, recipe, { preserveValues: true }); + assert.equal(preserved.graph.nodes.find((n) => n.data.action === 'Denoise').data.params.guidance_scale.value, 7); + assert.ok(preserved.graph.edges.some((e) => e.id === 'external-guidance-wire')); + const reset = authoring.planOperationChange(source, source.nodes[0].id, recipe, { restoreDefaults: true }); + assert.ok( + reset.graph.edges.some((e) => e.id === 'external-guidance-wire'), + "Resetting unconnected creative defaults preserves the unchanged model's connected distilled control.", + ); + const different = structuredClone(recipe); + different.nodes[0].node.params.repo_id.value = { source: 'hub', value: 'org/other-model' }; + const changed = authoring.planOperationChange(source, source.nodes[0].id, different, { replaceModel: true }); + assert.equal(changed.graph.nodes.find((n) => n.data.action === 'Denoise').data.params.guidance_scale.value, 3.5); + assert.ok(!changed.graph.edges.some((e) => e.id === 'external-guidance-wire')); +}); + +test('empty negative text is a supplied condition, while wired or absent conditioning remains unresolved', () => { + const direct = (negative) => { + const value = declaredGuidance('OtherPipeline', { + negativePromptField: 'negative_prompt', + negativePromptPolicy: 'empty_string_is_condition', + }); + value.nodes[1].node.params.negative_prompt = { type: 'string', display: 'text', value: negative }; + value.nodes[1].operation.ports.push({ + name: 'negative_prompt', + semanticName: 'negative_prompt', + direction: 'input', + roles: ['value'], + types: ['string'], + required: false, + hidden: false, + semantics: { kind: 'value', scope: null, state: null, owner: 'none', members: [] }, + }); + return value; + }; + const source = authoring.createOperationStarter(declaredGuidance(), { x: 0, y: 0 }); + source.nodes[1].data.params.guidance_scale.value = 7; + const supplied = authoring.planOperationChange(source, source.nodes[0].id, direct('')); + assert.equal(supplied.graph.nodes.find((n) => n.data.action === 'Denoise').data.params.guidance_scale.value, 7); + const absent = authoring.planOperationChange(source, source.nodes[0].id, direct(undefined)); + assert.equal(absent.graph.nodes.find((n) => n.data.action === 'Denoise').data.params.guidance_scale.value, 3.5); +}); + +test('a direct-pipeline scale must preserve the effective CFG switch after transfer', () => { + const source = authoring.createOperationStarter(declaredGuidance(), { x: 0, y: 0 }); + source.nodes[1].data.params.guidance_scale.value = 0; + const target = declaredGuidance('OtherPipeline', { enabled: 'scale_gt_one', enabledField: 'guidance_scale' }); + const changed = authoring.planOperationChange(source, source.nodes[0].id, target); + const stage = changed.graph.nodes.find((node) => node.data.action === 'Denoise'); + assert.equal(stage.data.params.guidance_scale.value, 3.5); + assert.ok( + stage.data.operationAuthoring.retained.some((entry) => entry.field === 'guidance_scale' && entry.value === 0), + ); + assert.equal(changed.review.required, true); +}); + +test('wired guidance policy is unresolved even if the inline fallback looks compatible', () => { + const source = authoring.createOperationStarter(declaredGuidance(), { x: 0, y: 0 }); + source.nodes[1].data.params.guidance_scale.value = 7; + source.nodes.push({ + id: 'policy', + type: 'custom', + position: { x: 0, y: 0 }, + data: { + module: 'custom.Policy', + action: 'Value', + params: { value: { display: 'output', type: 'boolean' } }, + }, + }); + source.nodes[1].data.params.enabled.isInput = true; + source.edges.push({ + id: 'enabled-wire', + source: 'policy', + sourceHandle: 'value', + target: source.nodes[1].id, + targetHandle: 'enabled', + }); + const changed = authoring.planOperationChange(source, source.nodes[0].id, declaredGuidance('OtherPipeline')); + const stage = changed.graph.nodes.find((node) => node.data.action === 'Denoise'); + assert.equal(stage.data.params.guidance_scale.value, 3.5); + assert.ok( + stage.data.operationAuthoring.retained.some((entry) => entry.field === 'guidance_scale' && entry.value === 7), + ); + assert.equal(changed.review.required, true); +}); + +test('external CFG scale wiring is preserved only for an explicitly compatible target policy', () => { + const source = authoring.createOperationStarter(declaredGuidance(), { x: 0, y: 0 }); + source.nodes[1].data.params.guidance_scale.value = 7; + source.nodes.push({ + id: 'scale', + type: 'custom', + position: { x: 0, y: 0 }, + data: { + module: 'custom.Scale', + action: 'Value', + params: { value: { display: 'output', type: 'float' } }, + }, + }); + source.nodes[1].data.params.guidance_scale.isInput = true; + source.edges.push({ + id: 'scale-wire', + source: 'scale', + sourceHandle: 'value', + target: source.nodes[1].id, + targetHandle: 'guidance_scale', + }); + const compatible = authoring.planOperationChange(source, source.nodes[0].id, declaredGuidance('OtherPipeline')); + assert.ok(compatible.graph.edges.some((edge) => edge.id === 'scale-wire')); + const target = declaredGuidance('OtherPipeline'); + target.nodes[1].node.params.use_original_formulation.value = true; + const incompatible = authoring.planOperationChange(source, source.nodes[0].id, target); + assert.ok(!incompatible.graph.edges.some((edge) => edge.id === 'scale-wire')); + assert.ok(incompatible.graph.nodes.some((node) => node.id === 'scale')); + assert.equal(incompatible.review.required, true); + assert.ok(incompatible.review.attention.some((message) => /disconnect/i.test(message))); + const threshold = authoring.planOperationChange( + source, + source.nodes[0].id, + declaredGuidance('OtherPipeline', { enabled: 'scale_gt_one', enabledField: 'guidance_scale' }), + ); + assert.ok(!threshold.graph.edges.some((edge) => edge.id === 'scale-wire')); + assert.ok(threshold.graph.nodes.some((node) => node.id === 'scale')); + assert.equal(threshold.review.required, true); + assert.ok(threshold.review.attention.some((message) => /disconnect/i.test(message))); +}); + +test('actual CFG contracts never use a wired scale fallback to prove the destination activation policy', async () => { + const { readFile } = await import('node:fs/promises'); + const fixture = JSON.parse( + await readFile(new URL('../tests/fixtures/guidance-control-contract.v1.json', import.meta.url)), + ); + const { compatibleOperationControlTransfer } = await server.ssrLoadModule( + '/src/workflow/operationControlTransfer.ts', + ); + const contract = (pipeline, nodeKey) => { + const operation = fixture.contracts.find((item) => item.pipelineClass === pipeline && item.nodeKey === nodeKey); + assert.ok(operation); + return operation; + }; + const node = (operation, values) => ({ + id: operation.pipelineClass, + type: 'custom', + position: { x: 0, y: 0 }, + data: { + module: operation.nodeKey.slice(0, operation.nodeKey.lastIndexOf('.')), + action: operation.nodeKey.split('.').at(-1), + params: Object.fromEntries(Object.entries(values).map(([field, value]) => [field, { value }])), + }, + }); + const sourceContract = contract('StableDiffusionXLModularPipeline', 'modules.ModularDiffusers.Guider'); + const targetContract = contract('FluxPipeline', 'modules.DiffusersImage.Generate'); + const nativeContract = contract('FluxModularPipeline', 'modules.ModularDiffusers.Guider'); + const control = (operation) => operation.ports.find((port) => port.name === 'guidance_scale').semantics.control; + const source = node(sourceContract, { + guider: 'ClassifierFreeGuidance', + enabled: true, + use_original_formulation: false, + guidance_scale: 7, + }); + const target = node(targetContract, { guidance_scale: 7, negative_prompt: '' }); + const native = node(nativeContract, { + guider: 'ClassifierFreeGuidance', + enabled: true, + use_original_formulation: false, + guidance_scale: 7, + }); + const compatible = (destination, destinationContract, connected = new Set()) => + compatibleOperationControlTransfer( + source, + 'guidance_scale', + control(sourceContract), + destination, + 'guidance_scale', + control(destinationContract), + connected, + new Set(), + ); + assert.equal(compatible(target, targetContract), true, 'the known literal retains enabled CFG'); + assert.equal( + compatible(target, targetContract, new Set(['guidance_scale'])), + false, + 'a wire can supply zero regardless of its fallback', + ); + assert.equal( + compatible(native, nativeContract, new Set(['guidance_scale'])), + true, + 'native boolean activation does not depend on the unknown scale', + ); + source.data.params.guidance_scale.isConnected = true; + assert.equal(compatible(target, targetContract), false, 'the connected field marker must also stay opaque'); + assert.equal(compatible(native, nativeContract), true); +}); + +for (const [name, change] of [ + [ + 'different formulation', + (item) => { + item.nodes[1].node.params.use_original_formulation.value = true; + }, + ], + [ + 'disabled guidance', + (item) => { + item.nodes[1].node.params.enabled.value = false; + }, + ], + [ + 'another guider technique', + (item) => { + item.nodes[1].node.params.guider.value = 'OtherGuidance'; + }, + ], + [ + 'unknown component enablement', + (item) => { + const control = item.nodes[1].operation.ports.find((p) => p.name === 'guidance_scale').semantics.control; + control.enabled = 'model_config'; + control.enabledField = null; + }, + ], + [ + 'unrelated compatibility scope', + (item) => { + item.nodes[1].operation.ports.find((p) => p.name === 'guidance_scale').semantics.control.compatibilityScope = + 'reviewed.unrelated.v1'; + }, + ], +]) { + test(`guidance transfer retains the edited value for review with ${name}`, () => { + const source = authoring.createOperationStarter(declaredGuidance(), { x: 0, y: 0 }); + source.nodes[1].data.params.guidance_scale.value = 7; + const target = declaredGuidance('OtherPipeline'); + change(target); + const changed = authoring.planOperationChange(source, source.nodes[0].id, target); + const stage = changed.graph.nodes.find((node) => node.data.action === 'Denoise'); + assert.equal(stage.data.params.guidance_scale.value, 3.5); + assert.ok( + stage.data.operationAuthoring.retained.some((entry) => entry.field === 'guidance_scale' && entry.value === 7), + ); + assert.equal(changed.review.required, true); + }); +} + test('matching guidance labels do not establish cross-family guidance semantics', () => { const source = starter(); const target = starter('DistilledPipeline'); diff --git a/scripts/operation-catalog.test.mjs b/scripts/operation-catalog.test.mjs index 982ea3e3..a29695ac 100644 --- a/scripts/operation-catalog.test.mjs +++ b/scripts/operation-catalog.test.mjs @@ -1,6 +1,7 @@ import assert from 'node:assert/strict'; import { after, before, test } from 'node:test'; import { createServer } from 'vite'; +import { readFileSync } from 'node:fs'; let server, contracts, catalog; before(async () => { @@ -84,6 +85,132 @@ test('v3 accepts scoped state and exact existing bindings without a family union assert.equal(catalog.operationPortCompatibility(output, value.ports[0]), 'incompatible'); }); +function cfgControl(pipeline = 'FutureModularPipeline') { + return { + technique: 'classifier_free', + parameter: 'scale', + compatibilityScope: 'diffusers.classifier_free.v1', + scaleMeaning: 'cfg_prediction_mix', + enabled: 'boolean_field', + enabledField: 'enabled', + formulation: 'boolean_field', + formulationField: 'use_original_formulation', + selectorField: 'guider', + selectorValue: 'ClassifierFreeGuidance', + negativeConditioning: 'pipeline_scoped_when_enabled', + negativeConditioningScope: pipeline, + }; +} + +function controlledOperation() { + const value = operation(); + value.ports = [ + { + name: 'guidance_scale', + semanticName: 'guidance_scale', + direction: 'input', + roles: ['value'], + types: ['float'], + required: false, + hidden: false, + semantics: { kind: 'value', scope: null, state: null, owner: 'none', members: [], control: cfgControl() }, + }, + ]; + for (const [name, type] of [ + ['guider', 'string'], + ['enabled', 'boolean'], + ['use_original_formulation', 'boolean'], + ]) { + value.ports.push({ + name, + semanticName: name, + direction: 'input', + roles: ['value'], + types: [type], + required: false, + hidden: false, + semantics: { kind: 'value', scope: null, state: null, owner: 'none', members: [] }, + }); + } + return value; +} + +test('v3 accepts additive reviewed control semantics without changing legacy contracts', () => { + const value = controlledOperation(); + assert.deepEqual(contracts.parseOperationContracts([value], 3), [value]); + const legacy = operation(); + assert.deepEqual(contracts.parseOperationContracts([legacy], 3), [legacy]); +}); + +test('the actual backend guidance fixture round-trips all published family policies', () => { + const fixture = JSON.parse( + readFileSync(new URL('../tests/fixtures/guidance-control-contract.v1.json', import.meta.url), 'utf8'), + ); + assert.equal(fixture.schemaVersion, 1); + assert.equal(fixture.contracts.length, 33); + assert.deepEqual(contracts.parseOperationContracts(fixture.contracts, 3), fixture.contracts); + const cfg = fixture.contracts.filter((c) => c.operationId === 'diffusion.guidance'); + assert.equal(cfg.length, 8); + for (const c of cfg) { + const controls = c.ports.filter((p) => p.semantics.control); + assert.equal(controls.length, 7); + for (const port of controls) { + assert.equal(port.semantics.control.technique, 'classifier_free'); + assert.equal(port.semantics.control.negativeConditioningScope, c.binding.pipelineClass); + } + } + for (const c of fixture.contracts.filter((c) => c.operationId === 'diffusion.denoise')) { + const control = c.ports.find((p) => p.name === 'guidance_scale').semantics.control; + assert.equal(control.technique, 'embedded_distilled'); + assert.equal(control.enabled, 'model_config', 'Discovery cannot infer the connected transformer configuration.'); + assert.equal(control.negativeConditioningScope, null); + } + const standard = fixture.contracts.filter((c) => c.decomposition === 'pipeline'); + assert.equal(standard.length, 22); + for (const contract of standard) { + for (const port of contract.ports.filter((p) => p.semantics.control?.technique === 'classifier_free')) { + assert.equal(port.semantics.control.negativePromptField, 'negative_prompt'); + assert.equal(port.semantics.control.negativePromptPolicy, 'empty_string_is_condition'); + } + } +}); + +test('v3 rejects malformed guidance control declarations instead of trusting labels', () => { + for (const mutate of [ + (c) => { + c.technique = 'anything'; + }, + (c) => { + c.parameter = 'pipeline'; + }, + (c) => { + c.compatibilityScope = ''; + }, + (c) => { + c.enabledField = null; + }, + (c) => { + c.formulationField = '__proto__'; + }, + (c) => { + c.selectorValue = null; + }, + (c) => { + c.negativeConditioningScope = 'OtherPipeline'; + }, + (c) => { + c.scaleMeaning = 'distilled_model_embedding'; + }, + (c) => { + c.extra = true; + }, + ]) { + const value = controlledOperation(); + mutate(value.ports[0].semantics.control); + assert.throws(() => contracts.parseOperationContracts([value], 3), /operation contract/i); + } +}); + test('v3 rejects ambiguous bindings, unsafe selectors and malformed semantics', () => { for (const mutate of [ (c) => { diff --git a/scripts/operation-component-bundle-inputs.test.mjs b/scripts/operation-component-bundle-inputs.test.mjs new file mode 100644 index 00000000..4c66169f --- /dev/null +++ b/scripts/operation-component-bundle-inputs.test.mjs @@ -0,0 +1,206 @@ +import assert from 'node:assert/strict'; +import { after, before, test } from 'node:test'; +import { readFileSync } from 'node:fs'; +import { createServer } from 'vite'; + +let server, contracts, bundle, required, fixer; +const fixture = JSON.parse( + readFileSync(new URL('../tests/fixtures/qwen-component-bundle-contract.v1.json', import.meta.url)), +); +before(async () => { + server = await createServer({ + configFile: false, + logLevel: 'silent', + optimizeDeps: { entries: [], noDiscovery: true }, + server: { middlewareMode: true, watch: null }, + appType: 'custom', + }); + contracts = await server.ssrLoadModule('/src/workflow/operationContracts.ts'); + bundle = await server.ssrLoadModule('/src/workflow/componentBundleInputs.ts'); + required = await server.ssrLoadModule('/src/studio/requiredGraphInputs.ts'); + fixer = await server.ssrLoadModule('/src/studio/graphFixer.ts'); +}); +after(async () => { + await server?.close(); +}); + +function graphFor(action = 'EncodePrompt') { + const node = (operation, id) => { + const params = Object.fromEntries( + operation.ports.map((port) => [ + port.name, + { + type: port.types.length === 1 ? port.types[0] : port.types, + display: port.direction === 'output' ? 'output' : 'input', + required: port.required, + ...(port.required && port.semantics.kind !== 'component' ? { value: 'supplied' } : {}), + }, + ]), + ); + const parts = operation.nodeKey.split('.'); + return { + id, + type: 'custom', + position: { x: 0, y: 0 }, + data: { + module: parts.slice(0, -1).join('.'), + action: parts.at(-1), + label: parts.at(-1), + params, + operationAuthoring: { schemaVersion: 1, operation: structuredClone(operation), defaults: {}, retained: [] }, + }, + }; + }; + const source = node( + fixture.contracts.find((c) => c.decomposition === 'loader'), + 'loader', + ); + const target = node( + fixture.contracts.find((c) => c.nodeKey.endsWith(`.${action}`)), + 'stage', + ); + return { + nodes: [source, target], + edges: [ + { + id: 'bundle', + source: 'loader', + sourceHandle: 'pipeline_components', + target: 'stage', + targetHandle: 'pipeline_components', + }, + ], + }; +} + +test('the actual backend facade fixture preserves required fields and round-trips typed member alternatives', () => { + assert.equal(fixture.schemaVersion, 1); + assert.equal(fixture.contracts.length, 4); + assert.deepEqual(contracts.parseOperationContracts(fixture.contracts, 3), fixture.contracts); + for (const action of ['EncodePrompt', 'Denoise', 'DecodeLatents']) { + const graph = graphFor(action), + target = graph.nodes[1]; + for (const port of target.data.operationAuthoring.operation.ports.filter((p) => p.semantics.suppliedBy)) { + assert.equal(port.required, true); + assert.equal(bundle.operationInputIsSuppliedByBundle(target, port.name, graph), true); + } + assert.deepEqual(required.inspectRequiredGraphInputs(graph.nodes, graph, {}), []); + const plan = fixer.buildGraphFixPlan({ ...graph, registry: {} }); + assert.ok( + !plan.issues.some((i) => i.kind === 'missing_input' && i.targetNodeId === target.id), + 'Graph Fix agrees that the declared connected bundle supplies the required members.', + ); + } +}); + +for (const [name, mutate] of [ + [ + 'disabled source', + (g) => { + g.nodes[0].data.uiState = { disabled: true }; + }, + ], + [ + 'disabled bundle socket', + (g) => { + g.nodes[1].data.params.pipeline_components.disabled = true; + }, + ], + [ + 'missing member', + (g) => { + const port = g.nodes[0].data.operationAuthoring.operation.ports.find((p) => p.name === 'pipeline_components'); + port.semantics.members = port.semantics.members.filter((m) => m.name !== 'text_encoder'); + }, + ], + [ + 'wrong member type', + (g) => { + g.nodes[0].data.operationAuthoring.operation.ports + .find((p) => p.name === 'pipeline_components') + .semantics.members.forEach((m) => { + m.type = 'WrongComponent'; + }); + }, + ], + [ + 'wrong source scope', + (g) => { + g.nodes[0].data.operationAuthoring.operation.ports.find((p) => p.name === 'pipeline_components').semantics.scope = + 'OtherPipeline'; + }, + ], + [ + 'wrong role', + (g) => { + g.nodes[0].data.operationAuthoring.operation.ports.find((p) => p.name === 'pipeline_components').roles = [ + 'value', + ]; + }, + ], + [ + 'wildcard socket', + (g) => { + g.nodes[0].data.params.pipeline_components.type = 'any'; + }, + ], + [ + 'missing wire', + (g) => { + g.edges = []; + }, + ], + [ + 'duplicate supplier', + (g) => { + g.edges.push({ ...g.edges[0], id: 'second' }); + }, + ], +]) { + test(`${name} does not satisfy required components or suppress their readiness finding`, () => { + const graph = graphFor(); + mutate(graph); + assert.equal(bundle.operationInputIsSuppliedByBundle(graph.nodes[1], 'text_encoders', graph), false); + assert.ok(required.inspectRequiredGraphInputs(graph.nodes, graph, {}).some((i) => i.fieldId === 'text_encoders')); + }); +} + +test('hiding a connected declared bundle is presentation; inspection preserves the graph', () => { + const graph = graphFor(); + graph.nodes[1].data.params.pipeline_components.hidden = true; + const before = structuredClone(graph); + assert.equal(bundle.operationInputIsSuppliedByBundle(graph.nodes[1], 'text_encoders', graph), true); + assert.deepEqual(graph, before); +}); + +test('malformed alternatives never acquire supply authority from a saved hint', () => { + for (const mutate of [ + (a) => { + a.input = 'absent'; + }, + (a) => { + a.members = []; + }, + (a) => { + a.members = ['text_encoder', 'text_encoder']; + }, + (a) => { + a.members = ['missing_component']; + }, + (a) => { + a.members = ['scheduler']; + }, + (a) => { + a.members = ['tokenizer']; + }, + (a) => { + a.extra = true; + }, + ]) { + const graph = graphFor(); + const operation = graph.nodes[1].data.operationAuthoring.operation; + mutate(operation.ports.find((p) => p.name === 'text_encoders').semantics.suppliedBy); + assert.throws(() => contracts.parseOperationContracts([operation], 3), /operation contract/i); + assert.equal(bundle.operationInputIsSuppliedByBundle(graph.nodes[1], 'text_encoders', graph), false); + } +}); diff --git a/scripts/operation-component-bundle.test.mjs b/scripts/operation-component-bundle.test.mjs new file mode 100644 index 00000000..ad124969 --- /dev/null +++ b/scripts/operation-component-bundle.test.mjs @@ -0,0 +1,249 @@ +import assert from 'node:assert/strict'; +import { after, before, test } from 'node:test'; +import { execFileSync } from 'node:child_process'; +import path from 'node:path'; +import { readFileSync } from 'node:fs'; +import { createServer } from 'vite'; + +let server, authoring, bundle, visual, starters; +before(async () => { + const storage = new Map(); + globalThis.localStorage = { + getItem: (key) => storage.get(key) ?? null, + setItem: (key, value) => storage.set(key, value), + removeItem: (key) => storage.delete(key), + }; + globalThis.window = { + localStorage: globalThis.localStorage, + location: { origin: 'http://localhost:5191' }, + dispatchEvent: () => true, + }; + server = await createServer({ + configFile: false, + logLevel: 'silent', + optimizeDeps: { entries: [], noDiscovery: true }, + server: { middlewareMode: true, watch: null, hmr: false }, + appType: 'custom', + }); + authoring = await server.ssrLoadModule('/src/workflow/operationAuthoring.ts'); + bundle = await server.ssrLoadModule('/src/workflow/operationComponentBundle.ts'); + visual = await server.ssrLoadModule('/src/workflow/visualOperationGroups.ts'); + const backend = path.resolve('../MoDiff'); + const python = + process.env.MODIFF_BACKEND_PYTHON || + path.join(backend, '.venv', process.platform === 'win32' ? 'Scripts/python.exe' : 'bin/python'); + const script = path.resolve('scripts/operation-starter-fixtures.py'); + starters = process.env.MODIFF_STARTER_FIXTURE + ? JSON.parse(readFileSync(process.env.MODIFF_STARTER_FIXTURE, 'utf8')) + : JSON.parse( + execFileSync( + process.platform === 'win32' ? python : path.join(backend, 'scripts/with-runtime-env.sh'), + process.platform === 'win32' ? [script, '--image-audio'] : [python, script, '--image-audio'], + { cwd: backend, encoding: 'utf8', timeout: 120000, maxBuffer: 32 * 1024 * 1024 }, + ), + ); +}); +after(async () => server?.close()); + +function graph(pipeline = 'QwenImageModularPipeline') { + return authoring.createOperationStarter( + starters.find((item) => item.pipelineClass === pipeline && item.task === 'text_to_image'), + { x: 0, y: 0 }, + ); +} +function owner(graph) { + return graph.nodes.find((node) => node.data.action === 'ModelsLoader'); +} +function semanticEdges(graph) { + // Expand only explicitly supplied component inputs for comparison. Real + // bundle objects/ownership and raw override precedence are backend tests. + return graph.edges + .flatMap((edge) => { + const target = graph.nodes.find((node) => node.id === edge.target); + const operation = authoring.operationAuthoring(target)?.operation; + const leaves = operation?.ports.filter((port) => port.semantics?.suppliedBy?.input === edge.targetHandle) ?? []; + if (!leaves.length) return [edge]; + return leaves + .filter( + (port) => !graph.edges.some((other) => other.target === edge.target && other.targetHandle === port.name), + ) + .map((port) => { + const source = graph.nodes.find((node) => node.id === edge.source); + const outputs = authoring + .operationAuthoring(source) + .operation.ports.filter( + (output) => + output.direction === 'output' && + output.name !== edge.sourceHandle && + output.semantics.kind === 'component' && + port.semantics.members.every((member) => + output.semantics.members.some( + (candidate) => candidate.name === member.name && candidate.type === member.type, + ), + ), + ); + assert.equal(outputs.length, 1); + return { ...edge, sourceHandle: outputs[0].name, targetHandle: port.name }; + }); + }) + .map((edge) => [edge.source, edge.sourceHandle, edge.target, edge.targetHandle]) + .sort(); +} + +test('actual declared Qwen bundle rewires existing leaves reversibly without changing controls or guidance', () => { + const ordinary = graph(); + const loader = owner(ordinary); + ordinary.nodes.find((node) => node.data.action === 'EncodePrompt').data.params.prompt.value = 'Keep my prompt'; + ordinary.nodes.find((node) => node.data.action === 'Guider').data.params.guidance_scale.value = 0; + const before = structuredClone(ordinary); + assert.deepEqual(bundle.availableOperationComponentBundleActions(ordinary, loader.id), ['bundle']); + const bundled = bundle.setOperationComponentBundle(ordinary, loader.id, 'bundle'); + assert.deepEqual(ordinary, before, 'planning is read-only'); + assert.deepEqual(bundled.nodes, before.nodes, 'no loader, stage, parameter or runtime identity is replaced'); + assert.equal( + bundled.edges.length, + ordinary.edges.length - 1, + 'four component fanout edges become three aggregate edges', + ); + assert.equal( + bundled.edges.filter((edge) => edge.source === loader.id && edge.sourceHandle === 'pipeline_components').length, + 3, + ); + assert.deepEqual(semanticEdges(bundled), semanticEdges(before)); + assert.deepEqual(bundle.availableOperationComponentBundleActions(bundled, loader.id), ['components']); + const exposed = bundle.setOperationComponentBundle(bundled, loader.id, 'components'); + assert.deepEqual(exposed.nodes, before.nodes); + assert.deepEqual(semanticEdges(exposed), semanticEdges(before)); + assert.deepEqual(bundle.availableOperationComponentBundleActions(exposed, loader.id), ['bundle']); +}); + +test('bundle and breakout preserve explicit component overrides and an unrelated branch', () => { + const ordinary = graph(), + loader = owner(ordinary); + const denoise = ordinary.nodes.find((node) => node.data.action === 'Denoise'); + ordinary.nodes.push({ + id: 'override', + type: 'custom', + position: { x: -400, y: 0 }, + data: { + module: 'custom.Components', + action: 'Transformer', + params: { model: { type: denoise.data.params.unet.type, display: 'output' } }, + }, + }); + ordinary.nodes.push({ + id: 'unrelated', + type: 'custom', + position: { x: -400, y: 400 }, + data: { + module: 'custom.Text', + action: 'Value', + params: { value: { type: 'string', display: 'text', value: 'untouched' } }, + }, + }); + ordinary.edges = ordinary.edges.filter((edge) => !(edge.target === denoise.id && edge.targetHandle === 'unet')); + const override = { + id: 'explicit-override', + source: 'override', + sourceHandle: 'model', + target: denoise.id, + targetHandle: 'unet', + }; + ordinary.edges.push(override); + const before = structuredClone(ordinary), + unrelated = ordinary.nodes.at(-1); + const bundled = bundle.setOperationComponentBundle(ordinary, loader.id, 'bundle'); + assert.deepEqual( + bundled.edges.find((edge) => edge.id === override.id), + override, + ); + assert.equal( + bundled.nodes.find((node) => node.id === unrelated.id), + unrelated, + ); + assert.deepEqual(semanticEdges(bundled), semanticEdges(before)); + const exposed = bundle.setOperationComponentBundle(bundled, loader.id, 'components'); + assert.deepEqual( + exposed.edges.find((edge) => edge.id === override.id), + override, + ); + assert.deepEqual(semanticEdges(exposed), semanticEdges(before)); +}); + +test('component rewiring uses visual stage projection while keeping wrappers, values and canonical leaves', () => { + const ordinary = graph(), + loader = owner(ordinary); + const grouped = visual.groupNewOperationGraph(ordinary); + const roots = grouped.nodes.filter((node) => visual.visualOperationGroup(node)); + const before = visual.unpackVisualOperationGroups(grouped).graph; + const bundled = bundle.setOperationComponentBundle(grouped, loader.id, 'bundle'); + for (const root of roots) { + const after = bundled.nodes.find((node) => node.id === root.id); + assert.equal(visual.visualOperationGroup(after), visual.visualOperationGroup(root)); + assert.deepEqual( + after.data.blockInstanceV2.definitionSnapshot, + root.data.blockInstanceV2.definitionSnapshot, + 'immutable reusable definition content remains unchanged', + ); + } + const lowered = visual.unpackVisualOperationGroups(bundled).graph; + assert.deepEqual(lowered.nodes.map((node) => node.id).sort(), before.nodes.map((node) => node.id).sort()); + assert.deepEqual(semanticEdges(lowered), semanticEdges(before)); + const exposed = visual.unpackVisualOperationGroups( + bundle.setOperationComponentBundle(bundled, loader.id, 'components'), + ).graph; + assert.deepEqual(semanticEdges(exposed), semanticEdges(before)); +}); + +test('an aggregate alone, missing exact supplied members, or a custom bundle grants no rewrite authority', () => { + const other = graph('FluxModularPipeline'); + assert.deepEqual(bundle.availableOperationComponentBundleActions(other, owner(other).id), []); + const ordinary = graph(), + loader = owner(ordinary); + loader.data.operationAuthoring.operation.ports + .find((port) => port.name === 'pipeline_components') + .semantics.members.forEach((member) => (member.type = 'custom.Unreviewed')); + assert.deepEqual(bundle.availableOperationComponentBundleActions(ordinary, loader.id), []); + assert.throws(() => bundle.setOperationComponentBundle(ordinary, loader.id, 'bundle'), /No declared component/); + const literal = graph(), + literalOwner = owner(literal); + const literalDenoise = literal.nodes.find((node) => node.data.action === 'Denoise'); + literalDenoise.data.params.pipeline_components.value = { reference: 'explicit opaque bundle' }; + const literalResult = bundle.setOperationComponentBundle(literal, literalOwner.id, 'bundle'); + assert.ok( + !literalResult.edges.some( + (edge) => edge.target === literalDenoise.id && edge.targetHandle === 'pipeline_components', + ), + ); + assert.deepEqual(literalResult.nodes, literal.nodes, 'a literal aggregate remains unchanged'); + const custom = graph(), + customOwner = owner(custom), + encode = custom.nodes.find((node) => node.data.action === 'EncodePrompt'); + custom.nodes.push({ + id: 'custom-bundle', + type: 'custom', + position: { x: 0, y: 500 }, + data: { + module: 'custom.Components', + action: 'Bundle', + params: { output: { type: 'diffusers_modular_pipeline_components', display: 'output' } }, + }, + }); + const edge = { + id: 'custom-bundle-wire', + source: 'custom-bundle', + sourceHandle: 'output', + target: encode.id, + targetHandle: 'pipeline_components', + }; + custom.edges.push(edge); + const bundled = bundle.setOperationComponentBundle(custom, customOwner.id, 'bundle'); + assert.deepEqual( + bundled.edges.find((item) => item.id === edge.id), + edge, + ); + assert.ok( + bundled.edges.some((item) => item.target === encode.id && item.targetHandle === 'text_encoders'), + 'explicit alternate aggregate preserves its raw fallback', + ); +}); diff --git a/scripts/template-operation-fixtures.py b/scripts/template-operation-fixtures.py index 64552ca4..fb85014a 100644 --- a/scripts/template-operation-fixtures.py +++ b/scripts/template-operation-fixtures.py @@ -75,7 +75,8 @@ def describe(key): rows.append({"id": item["id"], "starter": starter, "spec": spec, "capability": STUDIO_MODEL_CAPABILITIES[binding["modelType"]]}) for key in ("modules.ModularDiffusers.Lora", "modules.DiffusersImage.LoadAdapter", - "modules.Spandrel.Upscaler", "modules.Image.Preview"): + "modules.Spandrel.Upscaler", "modules.Image.Preview", + "modules.DiffusersImage.OutpaintCanvas"): describe(key) json.dump({"recipes": rows, "registry": registry, "capabilities": public_capabilities, "publicPayload": public_payload}, sys.stdout) diff --git a/scripts/template-operation-workflows.test.mjs b/scripts/template-operation-workflows.test.mjs index 81136d7a..e6df0a52 100644 --- a/scripts/template-operation-workflows.test.mjs +++ b/scripts/template-operation-workflows.test.mjs @@ -17,7 +17,7 @@ let server, nodeStore, studioStore, lifecycle; -let publicOperations, starterRequests; +let publicOperations, starterRequests, qwenInpaintCandidate, qwenInpaintCandidateFixture; before(async () => { const storage = new Map(); globalThis.localStorage = { @@ -40,6 +40,7 @@ before(async () => { ({ STUDIO_TEMPLATES: templates } = await server.ssrLoadModule('/src/studio/templates.ts')); exactness = await server.ssrLoadModule('/src/studio/templateExactness.ts'); builder = await server.ssrLoadModule('/src/studio/templateOperationWorkflow.ts'); + qwenInpaintCandidate = await server.ssrLoadModule('/src/studio/qwenInpaintNativeCandidate.ts'); groups = await server.ssrLoadModule('/src/workflow/visualOperationGroups.ts'); values = await server.ssrLoadModule('/src/studio/executionSpecValues.ts'); ({ DEFAULT_STUDIO_FORM: defaults } = await server.ssrLoadModule('/src/studio/modelProfiles.ts')); @@ -70,9 +71,211 @@ before(async () => { }, ), ); + const { qwenInpaintNativeCandidateSelection } = await server.ssrLoadModule( + '/src/studio/templateOperationSelections.ts', + ); + qwenInpaintCandidateFixture = JSON.parse( + execFileSync( + process.platform === 'win32' ? python : path.join(backend, 'scripts/with-runtime-env.sh'), + process.platform === 'win32' ? [script] : [python, script], + { + cwd: backend, + encoding: 'utf8', + maxBuffer: 64 * 1024 * 1024, + input: JSON.stringify( + [ + 'qwen_inpaint_object_replace', + 'qwen_inpaint_mask_draft', + 'qwen_outpaint_aspect_template', + 'qwen_outpaint_draft', + ].map((id) => ({ id, selection: qwenInpaintNativeCandidateSelection(id) })), + ), + stdio: ['pipe', 'pipe', 'pipe'], + }, + ), + ); }); after(async () => server?.close()); +test('four fresh Qwen masked templates preserve creator settings and use actual native stages', async (t) => { + const operations = await server.ssrLoadModule('/src/workflow/operationContracts.ts'); + const payload = qwenInpaintCandidateFixture.publicPayload; + const contracts = operations.parseOperationContracts( + payload.operationContracts, + payload.operationContractSchemaVersion, + ); + for (const row of qwenInpaintCandidateFixture.recipes) + await t.test(row.id, () => { + const template = templates.find((item) => item.id === row.id); + const before = structuredClone(template); + const form = selectedForm(template); + const starter = starterRequests.parseOperationStarter( + row.starter, + row.starter.pipelineClass, + row.starter.task, + contracts, + ); + for (const action of ['ModelsLoader', 'ImageEncode']) { + const field = starter.nodes.find((item) => item.node.action === action).node.params.inpaint_compatibility; + assert.equal(field.value ?? field.default, 'native', 'generic starter retains its native policy'); + } + const graph = builder.createTemplateOperationGraph( + template, + form, + starter, + { ...fixture.registry, ...qwenInpaintCandidateFixture.registry }, + row.spec, + row.capability, + ); + assert.deepEqual(template, before); + assert.equal( + template.executionSelection.implementation, + 'native_stages', + 'fresh templates select the reviewed native masked recipe', + ); + const flat = groups.unpackVisualOperationGroups(graph).graph; + const api = flowStore + .getState() + .exportGraph('qwen-native-candidate', undefined, { sourceGraph: graph, randomizeSeeds: false }); + const nodes = Object.values(api.nodes); + for (const action of ['ModelsLoader', 'EncodePrompt', 'ImageEncode', 'Denoise', 'DecodeLatents', 'Guider']) + assert.equal( + nodes.filter((node) => node.module === 'modules.ModularDiffusers' && node.action === action).length, + 1, + action, + ); + assert.equal( + nodes.some((node) => ['LoadPipeline', 'Inpaint', 'DiffusersExecutionRecipe'].includes(node.action)), + false, + ); + const encode = nodes.find((node) => node.action === 'ImageEncode'); + const denoise = nodes.find((node) => node.action === 'Denoise'); + const prompt = nodes.find((node) => node.action === 'EncodePrompt'); + const loader = nodes.find((node) => node.action === 'ModelsLoader'); + assert.equal(loader.params.inpaint_compatibility.value, 'whole_v1'); + assert.equal(encode.params.inpaint_compatibility.value, 'whole_v1'); + assert.equal(denoise.params.width.value, form.width); + assert.equal(denoise.params.height.value, form.height); + assert.equal(denoise.params.num_inference_steps.value, form.steps); + assert.equal(denoise.params.strength.value, form.strength); + assert.equal(prompt.params.prompt.value, form.prompt); + assert.equal(prompt.params.negative_prompt.value, form.negativePrompt); + assert.ok(nodes.filter((node) => node.params.seed).every((node) => node.params.seed.value === form.seed)); + assert.equal(new Set(flat.edges.map((edge) => `${edge.target}:${edge.targetHandle}`)).size, flat.edges.length); + const canvas = nodes.find((node) => node.action === 'OutpaintCanvas'); + if (row.id.startsWith('qwen_outpaint_')) { + assert.ok(canvas); + assert.equal(denoise.params.width.value, canvas.params.width.value); + assert.equal(denoise.params.height.value, canvas.params.height.value); + assert.deepEqual( + [denoise.params.width.value, denoise.params.height.value], + [1344, 768], + 'the original rectangular canvas and denoising noise use the same geometry', + ); + for (const [field, formField] of Object.entries({ + width: 'width', + height: 'height', + left: 'outpaintLeft', + right: 'outpaintRight', + top: 'outpaintTop', + bottom: 'outpaintBottom', + overlap: 'outpaintOverlap', + feather: 'outpaintFeather', + fill_color: 'outpaintFillColor', + })) + assert.deepEqual(canvas.params[field].value, form[formField]); + for (const [node, field, output] of [ + [encode, 'image', 'canvas'], + [encode, 'mask_image', 'mask_image'], + [prompt, 'image', 'canvas'], + ]) { + assert.equal(api.nodes[node.params[field].sourceId], canvas); + assert.equal(node.params[field].sourceKey, output); + } + } else assert.equal(canvas, undefined); + }); +}); + +test('private Qwen candidate inherits authored crop padding and honors explicit overrides including null', async () => { + const row = qwenInpaintCandidateFixture.recipes.find((item) => item.id === 'qwen_inpaint_object_replace'); + const operations = await server.ssrLoadModule('/src/workflow/operationContracts.ts'); + const payload = qwenInpaintCandidateFixture.publicPayload; + const contracts = operations.parseOperationContracts( + payload.operationContracts, + payload.operationContractSchemaVersion, + ); + const starter = starterRequests.parseOperationStarter( + row.starter, + row.starter.pipelineClass, + row.starter.task, + contracts, + ); + const template = templates.find((item) => item.id === row.id); + const form = { ...selectedForm(template), paddingMaskCrop: 96 }; + for (const [options, expected] of [ + [{}, 96], + [{ paddingMaskCrop: 24 }, 24], + [{ paddingMaskCrop: null }, null], + ]) { + const graph = groups.unpackVisualOperationGroups( + qwenInpaintCandidate.createQwenInpaintNativeCandidateGraph( + template, + form, + starter, + { ...fixture.registry, ...qwenInpaintCandidateFixture.registry }, + row.spec, + row.capability, + options, + ), + ).graph; + const encode = graph.nodes.find((node) => node.data.action === 'ImageEncode'); + assert.equal(encode.data.params.padding_mask_crop.value, expected); + const api = flowStore + .getState() + .exportGraph('qwen-native-crop', undefined, { sourceGraph: graph, randomizeSeeds: false }); + const packetEncode = Object.values(api.nodes).find((node) => node.action === 'ImageEncode'); + assert.equal(packetEncode.params.padding_mask_crop.value ?? null, expected); + } +}); + +test('fresh Qwen masked compatibility rejects missing or different reviewed workflow identities', () => { + const row = qwenInpaintCandidateFixture.recipes.find((item) => item.id === 'qwen_inpaint_object_replace'); + const template = templates.find((item) => item.id === row.id); + for (const workflowId of [null, 'image_conditioned']) { + const starter = structuredClone(row.starter); + starter.workflowId = workflowId; + const before = structuredClone(starter); + assert.throws( + () => + builder.createTemplateOperationGraph( + template, + selectedForm(template), + starter, + fixture.registry, + row.spec, + row.capability, + ), + /requires the reviewed image_conditioned_inpainting workflow/, + ); + assert.deepEqual(starter, before); + } + const starter = structuredClone(row.starter); + const owner = starter.nodes.find((item) => item.operation.nodeType === 'loader'); + owner.operation.binding.values.workflow_id = 'image_conditioned'; + assert.throws( + () => + builder.createTemplateOperationGraph( + template, + selectedForm(template), + starter, + fixture.registry, + row.spec, + row.capability, + ), + /requires the reviewed image_conditioned_inpainting workflow/, + ); +}); + test('the real public capability and every selected starter response pass production wire parsers', async () => { const nodes = await server.ssrLoadModule('/src/stores/useNodeStore.ts'); const operations = await server.ssrLoadModule('/src/workflow/operationContracts.ts'); @@ -510,7 +713,7 @@ test('all54 image recipes construct and export the exact backend developer stage fixture.recipes.filter( (row) => templates.find((item) => item.id === row.id).executionSelection.implementation === 'native_stages', ).length, - 44, + 48, ); for (const row of fixture.recipes) await t.test(row.id, () => { @@ -559,6 +762,10 @@ test('all54 image recipes construct and export the exact backend developer stage }); const claimed = new Set(); for (const [role, key] of row.spec.roles) { + if (role === 'loadMask' && ['qwen_outpaint_aspect_template', 'qwen_outpaint_draft'].includes(template.id)) { + assert.ok(flat.nodes.some((node) => node.data.action === 'OutpaintCanvas')); + continue; + } const node = flat.nodes.find( (item) => `${item.data.module}.${item.data.action}` === key && !claimed.has(item.id), ); @@ -1312,3 +1519,267 @@ test('ordinary Auto ControlNet creation keeps the auxiliary component resident w } }); }); + +test('actual Qwen Edit and T2I contracts retain exact API inputs through ordinary creation and workflow import', async (t) => { + const operations = await server.ssrLoadModule('/src/workflow/operationContracts.ts'); + publicOperations ??= operations.parseOperationContracts( + fixture.publicPayload.operationContracts, + fixture.publicPayload.operationContractSchemaVersion, + ); + const nodeModule = await server.ssrLoadModule('/src/stores/useNodeStore.ts'); + const packageModule = await server.ssrLoadModule('/src/studio/workflowPackage.ts'); + const canonical = (api) => { + const names = new Map(Object.entries(api.nodes).map(([id, node]) => [id, `${node.module}.${node.action}`])); + assert.equal(new Set(names.values()).size, names.size, 'this fixture needs unique executable node roles'); + return Object.fromEntries( + Object.entries(api.nodes).map(([id, node]) => [ + names.get(id), + { + ...node, + params: Object.fromEntries( + Object.entries(node.params).map(([field, param]) => [ + field, + { ...param, ...(param.sourceId ? { sourceId: names.get(param.sourceId) } : {}) }, + ]), + ), + }, + ]), + ); + }; + for (const templateId of ['qwen_character_angles', 'qwen_text_rendering']) + await t.test(templateId, async () => { + const previous = [flowStore.getState(), nodeStore.getState(), studioStore.useStudioStore.getState()]; + const originalFetch = globalThis.fetch; + try { + const { row, template, studio } = prepareLifecycleFixture(templateId); + nodeStore.setState({ nodesRegistry: nodeModule.parseNodesResponse({ nodes: fixture.registry }).nodes }); + const form = structuredClone(studio.getState().form); + const expectedGraph = builder.createTemplateOperationGraph( + template, + form, + row.starter, + fixture.registry, + row.spec, + row.capability, + ); + const expected = flowStore + .getState() + .exportGraph('qwen-hydration', undefined, { sourceGraph: expectedGraph, randomizeSeeds: false }); + globalThis.fetch = async () => Response.json(row.starter); + await lifecycle.createImageTemplateOperationWorkflow( + template, + form, + studioStore.captureWorkflowOperationContext(), + ); + const created = flowStore.getState().exportGraph('qwen-hydration', undefined, { randomizeSeeds: false }); + assert.deepEqual(canonical(created), canonical(expected), 'hydration retains the exact selected starter API'); + const flat = groups.unpackVisualOperationGroups(flowStore.getState().toObject()).graph; + for (const node of flat.nodes) { + if (node.data.module !== 'modules.ModularDiffusers') continue; + const operation = operations.parseOperationContracts([node.data.operationAuthoring?.operation], 3)[0]; + assert.equal( + Object.hasOwn(node.data.params, 'pipeline_components'), + operation.ports.some((port) => port.name === 'pipeline_components'), + `${node.data.action}: bundle socket applicability follows this route's actual contract`, + ); + } + const graph = flowStore.getState().toObject(); + const parsed = packageModule.parseWorkflowPackage({ + metadata: { studio: form }, + graph, + restore: { formSnapshot: form, graphSnapshot: graph, graphBindingSnapshot: null }, + }); + assert.ok(parsed); + studio.getState().createWorkflowTab('Imported exact Qwen recipe', parsed.snapshot, 'import', 'private'); + assert.deepEqual( + flowStore.getState().exportGraph('qwen-hydration', undefined, { randomizeSeeds: false }), + created, + 'normal workflow import preserves every API setting, component and media source', + ); + if (templateId === 'qwen_text_rendering') { + const bundle = await server.ssrLoadModule('/src/workflow/operationComponentBundle.ts'); + const owner = flat.nodes.find((node) => node.data.action === 'ModelsLoader'); + const bundled = bundle.setOperationComponentBundle(graph, owner.id, 'bundle'); + const expectedBundle = flowStore + .getState() + .exportGraph('qwen-hydration', undefined, { sourceGraph: bundled, randomizeSeeds: false }); + flowStore.getState().replaceGraph(bundled); + assert.deepEqual( + flowStore.getState().exportGraph('qwen-hydration', undefined, { randomizeSeeds: false }), + expectedBundle, + 'declared bundle inputs and every supplier remain intact during graph replacement', + ); + const bundledGraph = flowStore.getState().toObject(); + const parsedBundle = packageModule.parseWorkflowPackage({ + metadata: { studio: form }, + graph: bundledGraph, + restore: { formSnapshot: form, graphSnapshot: bundledGraph, graphBindingSnapshot: null }, + }); + assert.ok(parsedBundle); + studio + .getState() + .createWorkflowTab('Imported bundled Qwen recipe', parsedBundle.snapshot, 'import', 'private'); + assert.deepEqual( + flowStore.getState().exportGraph('qwen-hydration', undefined, { randomizeSeeds: false }), + expectedBundle, + 'normal import retains all declared aggregate connections', + ); + } + } finally { + globalThis.fetch = originalFetch; + flowStore.setState(previous[0]); + nodeStore.setState(previous[1]); + studioStore.useStudioStore.setState(previous[2]); + } + }); +}); + +test('all four actual Qwen native inpaint candidates preserve their full API packets through normal import', async (t) => { + const operations = await server.ssrLoadModule('/src/workflow/operationContracts.ts'); + const payload = qwenInpaintCandidateFixture.publicPayload; + const contracts = operations.parseOperationContracts( + payload.operationContracts, + payload.operationContractSchemaVersion, + ); + const nodeModule = await server.ssrLoadModule('/src/stores/useNodeStore.ts'); + const packageModule = await server.ssrLoadModule('/src/studio/workflowPackage.ts'); + for (const row of qwenInpaintCandidateFixture.recipes) + await t.test(row.id, () => { + const previous = [flowStore.getState(), nodeStore.getState(), studioStore.useStudioStore.getState()]; + try { + const template = templates.find((item) => item.id === row.id); + const form = selectedForm(template); + const registry = { ...fixture.registry, ...qwenInpaintCandidateFixture.registry }; + const starter = starterRequests.parseOperationStarter( + row.starter, + row.starter.pipelineClass, + row.starter.task, + contracts, + ); + const candidate = qwenInpaintCandidate.createQwenInpaintNativeCandidateGraph( + template, + form, + starter, + registry, + row.spec, + row.capability, + ); + const expected = flowStore + .getState() + .exportGraph('qwen-native-import', undefined, { sourceGraph: candidate, randomizeSeeds: false }); + nodeStore.setState({ nodesRegistry: nodeModule.parseNodesResponse({ nodes: registry }).nodes }); + flowStore.getState().replaceGraph(candidate); + assert.deepEqual( + flowStore.getState().exportGraph('qwen-native-import', undefined, { randomizeSeeds: false }), + expected, + 'initial replacement retains the complete actual native API packet', + ); + const graph = flowStore.getState().toObject(); + const parsed = packageModule.parseWorkflowPackage({ + metadata: { studio: form }, + graph, + restore: { formSnapshot: form, graphSnapshot: graph, graphBindingSnapshot: null }, + }); + assert.ok(parsed); + studioStore.useStudioStore + .getState() + .createWorkflowTab('Imported Qwen native candidate', parsed.snapshot, 'import', 'private'); + assert.deepEqual( + flowStore.getState().exportGraph('qwen-native-import', undefined, { randomizeSeeds: false }), + expected, + 'normal import retains whole_v1 owner/encoder settings, every media source and exact geometry', + ); + } finally { + flowStore.setState(previous[0]); + nodeStore.setState(previous[1]); + studioStore.useStudioStore.setState(previous[2]); + } + }); +}); + +test('all four actual Qwen native recipes recover their coherent runtime settings after switching tasks and returning', async (t) => { + const operations = await server.ssrLoadModule('/src/workflow/operationContracts.ts'); + const authoring = await server.ssrLoadModule('/src/workflow/operationAuthoring.ts'); + const contracts = operations.parseOperationContracts( + qwenInpaintCandidateFixture.publicPayload.operationContracts, + qwenInpaintCandidateFixture.publicPayload.operationContractSchemaVersion, + ); + const awayRow = fixture.recipes.find((item) => item.id === 'qwen_character_angles'); + const awayContracts = operations.parseOperationContracts( + fixture.publicPayload.operationContracts, + fixture.publicPayload.operationContractSchemaVersion, + ); + const awayStarter = starterRequests.parseOperationStarter( + awayRow.starter, + awayRow.starter.pipelineClass, + awayRow.starter.task, + awayContracts, + ); + for (const row of qwenInpaintCandidateFixture.recipes) + await t.test(row.id, () => { + const template = templates.find((item) => item.id === row.id); + const starter = starterRequests.parseOperationStarter( + row.starter, + row.starter.pipelineClass, + row.starter.task, + contracts, + ); + const candidate = qwenInpaintCandidate.createQwenInpaintNativeCandidateGraph( + template, + { ...selectedForm(template), device: 'cpu:0', autoOffload: false, offloadMode: 'none' }, + starter, + { ...fixture.registry, ...qwenInpaintCandidateFixture.registry }, + row.spec, + row.capability, + ); + const source = structuredClone(candidate); + const originalApi = flowStore + .getState() + .exportGraph('qwen-task-return', undefined, { sourceGraph: candidate, randomizeSeeds: false }); + const owner = groups + .unpackVisualOperationGroups(candidate) + .graph.nodes.find((node) => operations.operationOwnsModel(node.data.operationAuthoring?.operation)); + const away = authoring.planOperationChange(candidate, owner.id, awayStarter).graph; + const archived = structuredClone(away); + const awayOwner = groups + .unpackVisualOperationGroups(away) + .graph.nodes.find((node) => operations.operationOwnsModel(node.data.operationAuthoring?.operation)); + const returned = authoring.planOperationChange(away, awayOwner.id, starter); + const flat = groups.unpackVisualOperationGroups(returned.graph).graph; + for (const action of ['ModelsLoader', 'ImageEncode']) + assert.equal( + flat.nodes.find((node) => node.data.action === action).data.params.inpaint_compatibility.value, + 'whole_v1', + `${action}: exact task return restores the authored compatibility setting as one coherent set`, + ); + assert.ok(returned.review.preserved.some((message) => /runtime settings.*inactive draft/i.test(message))); + assert.deepEqual(candidate, source, 'the original recipe remains immutable'); + assert.deepEqual(away, archived, 'the inactive draft remains immutable'); + const returnedApi = flowStore + .getState() + .exportGraph('qwen-task-return', undefined, { sourceGraph: returned.graph, randomizeSeeds: false }); + assert.deepEqual(returnedApi, originalApi, 'the exact task return retains the full valid CPU-host API packet'); + const previous = flowStore.getState(); + try { + flowStore.getState().replaceGraph(returned.graph); + assert.deepEqual( + flowStore.getState().exportGraph('qwen-task-return', undefined, { randomizeSeeds: false }), + returnedApi, + 'normal graph replacement and export retain the recovered runtime settings', + ); + } finally { + flowStore.setState(previous); + } + const reset = groups.unpackVisualOperationGroups( + authoring.planOperationChange(away, awayOwner.id, starter, { restoreDefaults: true }).graph, + ).graph; + for (const action of ['ModelsLoader', 'ImageEncode']) + assert.equal( + authoring.operationFieldValue( + reset.nodes.find((node) => node.data.action === action).data.params.inpaint_compatibility, + ), + 'native', + `${action}: explicit defaults reset retains the selected starter's runtime setting`, + ); + }); +}); diff --git a/src/components/BlockNodeV2.tsx b/src/components/BlockNodeV2.tsx index ff5671ae..29a639bc 100644 --- a/src/components/BlockNodeV2.tsx +++ b/src/components/BlockNodeV2.tsx @@ -31,7 +31,7 @@ import NodeContent from './NodeContent'; import BlockSaveDialogV2 from './BlockSaveDialogV2'; import BlockInterfaceDialogV2 from './BlockInterfaceDialogV2'; import BlockCrossingPortsV2 from './BlockCrossingPortsV2'; -import { visualOperationGroup } from '../workflow/visualOperationGroups'; +import { visualOperationGroup } from '../workflow/visualOperationGroupProjection'; const OperationOwnerControls = lazy(() => import('./OperationOwnerControls')); const BlockDetailDialogV2 = lazy(() => import('./BlockDetailDialogV2')); diff --git a/src/components/EncodingNode.tsx b/src/components/EncodingNode.tsx index 4621e13a..b8db244e 100644 --- a/src/components/EncodingNode.tsx +++ b/src/components/EncodingNode.tsx @@ -1,4 +1,4 @@ -import { memo, useCallback, useLayoutEffect, useMemo, useState } from 'react'; +import { lazy, memo, Suspense, useCallback, useLayoutEffect, useMemo, useState } from 'react'; import { type NodeProps } from '@xyflow/react'; import { useShallow } from 'zustand/react/shallow'; import { useFlowStore, type CustomNodeType } from '../stores/useFlowStore'; @@ -18,14 +18,21 @@ import NodeInspectionDetails from './NodeInspectionDetails'; import BlockInterfaceDialogV2 from './BlockInterfaceDialogV2'; import BlockSaveDialogV2 from './BlockSaveDialogV2'; import BlockCrossingPortsV2 from './BlockCrossingPortsV2'; +import { + visualOperationGroup, + VISUAL_STAGE_LABELS, + VISUAL_STAGE_NAMES, +} from '../workflow/visualOperationGroupProjection'; +const StageNodeControls = lazy(() => import('./StageNodeControls')); /** Dedicated frontend node; the existing stage contract only binds values, * persistence and execution. It never expands into a canvas container. */ const EncodingNode = memo((node: NodeProps) => { const instance = node.data.blockInstanceV2!; const guidance = isFocusedGuidance(instance); - const label = guidance ? 'Guidance' : 'Encode Inputs'; - const stagesLabel = guidance ? 'guidance' : 'encoding'; + const kind = visualOperationGroup({ ...node, position: instance.presentation.position })!; + const label = VISUAL_STAGE_LABELS[kind]; + const stagesLabel = VISUAL_STAGE_NAMES[kind]; const view = useMemo(() => blockViewModelV2(instance), [instance]); const [inspectOpen, setInspectOpen] = useState(false); const [interfaceOpen, setInterfaceOpen] = useState(false); @@ -68,11 +75,15 @@ const EncodingNode = memo((node: NodeProps) => { - ) : ( + ) : kind === 'inputs' ? ( + ) : ( + Loading stage controls…

}> + +
), actions: ( setDocsOpen(false)}>
-

- {guidance - ? 'Guidance combines the related Guider and Layers configuration. Schedulers and adapters remain separate nodes.' - : 'Text and image stages both run when present. Collapsing a section only hides its fields. Load media separately and connect its output to the relevant input.'} -

+

{description}

{blockOperationGraphV2(node.data.blockInstanceV2!).nodes.map((stage) => (

{stage.data.label}

diff --git a/src/components/OperationGraphControls.tsx b/src/components/OperationGraphControls.tsx index 05339685..d66330b7 100644 --- a/src/components/OperationGraphControls.tsx +++ b/src/components/OperationGraphControls.tsx @@ -21,7 +21,11 @@ import { import { requestOperationStarter } from '../workflow/operationStarterRequest'; import { commitOperationGraph } from '../workflow/operationGraphTransaction'; import NodeInspectorDialog from './NodeInspectorDialog'; -import { groupNewOperationGraph } from '../workflow/visualOperationGroups'; +import { + groupNewOperationGraph, + visualOperationOwnerId, + visualOperationGroup, +} from '../workflow/visualOperationGroups'; type Preview = { starter: OperationStarter; @@ -60,6 +64,7 @@ export default function OperationGraphControls({ ); const selected = nodes.find((n) => n.selected && n.data.operationAuthoring); const selectedHint = selected ? operationAuthoring(selected) : null; + const visualBlock = blockId && nodes.find((node) => node.id === blockId && visualOperationGroup(node)); useEffect(() => { pending.current?.abort(); @@ -88,9 +93,11 @@ export default function OperationGraphControls({ assertWorkflowOperationContext(context, { includeForm: false }); if (JSON.stringify(useFlowStore.getState().toObject()) !== signature) throw new Error('The graph changed. Request a fresh preview.'); + const effectiveOwnerId = visualOperationOwnerId(snapshot, loader, blockId); + const visualOwner = effectiveOwnerId !== loader; const plan = !change ? null - : blockId + : blockId && !visualOwner ? (await import('../workflow/operationLegacyBlockChange')).planOwnerBlockOperationChange( snapshot, blockId, @@ -98,7 +105,7 @@ export default function OperationGraphControls({ starter, { replaceModel: Boolean(executionProfileId) }, ) - : planOperationChange(snapshot, loader, starter, { replaceModel: Boolean(executionProfileId) }); + : planOperationChange(snapshot, effectiveOwnerId, starter, { replaceModel: Boolean(executionProfileId) }); if (controller.signal.aborted) return; assertWorkflowOperationContext(context, { includeForm: false }); if (JSON.stringify(useFlowStore.getState().toObject()) !== signature) @@ -203,7 +210,7 @@ export default function OperationGraphControls({

{preview.starter.nodes.map((n) => n.node.label).join(' → ')}

- {blockId + {blockId && !visualBlock ? 'The result updates the editable graph inside this Block.' : 'The result is an editable canvas graph.'}{' '} Run checks model files, runtime support, required inputs and resources. diff --git a/src/components/OperationModelPicker.tsx b/src/components/OperationModelPicker.tsx index aaa025bf..ff9d392e 100644 --- a/src/components/OperationModelPicker.tsx +++ b/src/components/OperationModelPicker.tsx @@ -25,6 +25,7 @@ import { operationOwnsModel } from '../workflow/operationContracts'; import { rememberTaskModel } from '../workflow/taskModelPreferences'; import { ModiffButton, ModiffDialog, ModiffDisclosure, ModiffSearchInput } from '../ui'; import { formatRequestError } from '../utils/requestJson'; +import { visualOperationOwnerId } from '../workflow/visualOperationGroups'; type Review = { plan: OperationChangePlan; @@ -125,29 +126,40 @@ export default function OperationModelPicker({ ); if (controller.signal.aborted) return; assertWorkflowOperationContext(context, { includeForm: false }); - const baseline = node.data.blockProjectionOwnerId - ? null - : await requestOperationStarter( - hint.operation.pipelineClass, - hint.operation.task!, - operations, - controller.signal, - ); + const ownerId = visualOperationOwnerId( + snapshot, + node.data.blockProjectionNodeId ?? node.id, + node.data.blockProjectionOwnerId, + ); + const visualOwner = ownerId !== (node.data.blockProjectionNodeId ?? node.id); + const baseline = + node.data.blockProjectionOwnerId && !visualOwner + ? null + : await requestOperationStarter( + hint.operation.pipelineClass, + hint.operation.task!, + operations, + controller.signal, + ); if (controller.signal.aborted) return; - const plan = node.data.blockProjectionOwnerId - ? (await import('../workflow/operationLegacyBlockChange')).planOwnerBlockOperationChange( - snapshot, - node.data.blockProjectionOwnerId, - node.data.blockProjectionNodeId ?? node.id, - starter, - { replaceModel: !restoreDefaults, restoreDefaults }, - ) - : (!restoreDefaults && baseline && planPristineOperationChange(snapshot, node.id, baseline, starter)) || - planOperationChange(snapshot, node.id, starter, { - replaceModel: !restoreDefaults, - restoreDefaults, - baseline, - }); + const plan = + node.data.blockProjectionOwnerId && !visualOwner + ? (await import('../workflow/operationLegacyBlockChange')).planOwnerBlockOperationChange( + snapshot, + node.data.blockProjectionOwnerId, + node.data.blockProjectionNodeId ?? node.id, + starter, + { replaceModel: !restoreDefaults, restoreDefaults }, + ) + : (!visualOwner && + !restoreDefaults && + baseline && + planPristineOperationChange(snapshot, ownerId, baseline, starter)) || + planOperationChange(snapshot, ownerId, starter, { + replaceModel: !restoreDefaults, + restoreDefaults, + baseline, + }); if (controller.signal.aborted) return; assertWorkflowOperationContext(context, { includeForm: false }); if (operationGraphSignature(useFlowStore.getState().toObject()) !== signature) diff --git a/src/components/OperationOwnerControls.tsx b/src/components/OperationOwnerControls.tsx index 19e53d36..557f1d79 100644 --- a/src/components/OperationOwnerControls.tsx +++ b/src/components/OperationOwnerControls.tsx @@ -8,7 +8,7 @@ import { operationAuthoring } from '../workflow/operationAuthoring'; import { workflowChoices } from '../workflow/workflowChoices'; import { ModiffDisclosure, ModiffFieldShell, ModiffSelect } from '../ui'; import OperationGraphControls from './OperationGraphControls'; -import { visualOperationGroup } from '../workflow/visualOperationGroups'; +import { visualOperationGroup } from '../workflow/visualOperationGroupProjection'; const VisualStageControls = lazy(() => import('./VisualStageControls')); const OperationModelPicker = lazy(() => import('./OperationModelPicker')); diff --git a/src/components/StageNodeControls.tsx b/src/components/StageNodeControls.tsx new file mode 100644 index 00000000..81aa8bb4 --- /dev/null +++ b/src/components/StageNodeControls.tsx @@ -0,0 +1,70 @@ +import type { NodeParams } from '../stores/useNodeStore'; +import type { CustomNodeType } from '../stores/useFlowStore'; +import { blockOperationGraphV2, blockViewModelV2 } from '../studio/blockRuntimeV2'; +import { operationOwnsModel } from '../workflow/operationContracts'; +import { visualOperationGroup } from '../workflow/visualOperationGroupProjection'; +import { ModiffDisclosure } from '../ui'; +import { BlockOwnerChoices } from './OperationOwnerControls'; +import NodeContent from './NodeContent'; + +/** The same exposed fields, model planner and preview authority as Block V2, + * presented within the ordinary node shell. No second state or executor. */ +export default function StageNodeControls({ + node, + updateStore, +}: { + node: CustomNodeType; + updateStore: (param: string, value: unknown, key?: keyof NodeParams) => void; +}) { + const instance = node.data.blockInstanceV2!; + const view = blockViewModelV2(instance); + const setup = visualOperationGroup(node) === 'setup'; + const owners = new Set( + blockOperationGraphV2(instance) + .nodes.filter((n) => operationOwnsModel(n.data.operationAuthoring?.operation)) + .map((n) => n.data.blockProjectionNodeId), + ); + const controls = instance.effectiveInterface.controls.filter( + (control) => + !( + setup && + owners.has(control.binding.nodeId) && + ['repo_id', 'model_id', 'model_type'].includes(control.binding.fieldId) + ), + ); + const groups = [...new Set(controls.map((control) => control.group ?? 'Settings'))]; + return ( +

+ {setup ? : null} + {groups.map((group) => ( + + (control.group ?? 'Settings') === group) + .map((control) => [control.controlId, view.controlParams[control.controlId]!]), + )} + updateStore={updateStore} + module="MoDiff" + action="Stage" + mode="controls" + /> + + ))} + {view.previewViews.map((preview) => ( +
+ undefined} + module="MoDiff" + action="StagePreview" + mode="controls" + executionStatus={preview.status} + /> +
+ ))} +
+ ); +} diff --git a/src/components/VisualStageControls.tsx b/src/components/VisualStageControls.tsx index d2bedd9f..b88ef796 100644 --- a/src/components/VisualStageControls.tsx +++ b/src/components/VisualStageControls.tsx @@ -1,4 +1,5 @@ import { useState } from 'react'; +import { useShallow } from 'zustand/react/shallow'; import { Ellipsis } from 'lucide-react'; import { useFlowStore, type CustomNodeType } from '../stores/useFlowStore'; import { captureWorkflowOperationContext, useStudioStore } from '../stores/useStudioStore'; @@ -16,16 +17,40 @@ import { unpackVisualOperationGroups, visualOperationGroup, type VisualOperationGroup, + availableOperationStageGroups, + visualOperationOwnerId, } from '../workflow/visualOperationGroups'; import MediaAttachmentControls from './MediaAttachmentControls'; import { useNodesStore } from '../stores/useNodeStore'; +import { + availableOperationComponentBundleActions, + setOperationComponentBundle, + type OperationComponentBundleAction, +} from '../workflow/operationComponentBundle'; import { executableMediaOperations, mediaAttachmentChoices } from '../workflow/mediaAttachment'; /** Workflow-local presentation actions; saving a reusable definition is separate. */ export default function VisualStageControls({ node }: { node: CustomNodeType }) { const [error, setError] = useState(null); const [attachOpen, setAttachOpen] = useState(false); - const kind = visualOperationGroup(node); + const graph = useFlowStore(useShallow((state) => ({ nodes: state.nodes, edges: state.edges }))); + const root = node.data.blockProjectionOwnerId && graph.nodes.find((n) => n.id === node.data.blockProjectionOwnerId); + const kind = visualOperationGroup(root || node); + const ownerId = visualOperationOwnerId( + graph, + node.data.blockProjectionNodeId ?? node.id, + node.data.blockProjectionOwnerId, + ); + let available: VisualOperationGroup[] = []; + let bundleActions: OperationComponentBundleAction[] = []; + try { + if (!node.data.blockProjectionOwnerId || (root && visualOperationGroup(root))) { + available = availableOperationStageGroups(graph, ownerId); + bundleActions = availableOperationComponentBundleActions(graph, ownerId); + } + } catch { + // Ambiguous/shared ownership retains the existing planner restrictions. + } const operations = useNodesStore((state) => state.operationContracts); const support = useNodesStore((state) => state.pipelineSupport); const canAttach = @@ -39,8 +64,8 @@ export default function VisualStageControls({ node }: { node: CustomNodeType }) const graph = useFlowStore.getState().toObject(); const context = captureWorkflowOperationContext(); const next = group - ? groupOperationStages(graph, node.id, [group]) - : unpackVisualOperationGroups(graph, new Set([node.id])).graph; + ? groupOperationStages(graph, ownerId, [group]) + : unpackVisualOperationGroups(graph, new Set([root ? root.id : node.id])).graph; if (next === graph && !kind) throw new Error('No eligible ungrouped stages on this model branch. Existing groups are unchanged.'); commitOperationGraph( @@ -55,6 +80,23 @@ export default function VisualStageControls({ node }: { node: CustomNodeType }) setError(failure instanceof Error ? failure.message : 'Could not group these stages.'); } } + function applyBundle(action: OperationComponentBundleAction) { + try { + const graph = useFlowStore.getState().toObject(); + const context = captureWorkflowOperationContext(); + const next = setOperationComponentBundle(graph, ownerId, action); + commitOperationGraph( + next, + context, + operationGraphSignature(graph), + action === 'bundle' ? 'Use component bundle' : 'Expose components', + ); + useStudioStore.getState().saveActiveWorkflowTab(true); + setError(null); + } catch (failure) { + setError(failure instanceof Error ? failure.message : 'Could not change these component connections.'); + } + } return (
@@ -64,23 +106,30 @@ export default function VisualStageControls({ node }: { node: CustomNodeType }) - {kind ? ( - apply()}>Ungroup stages - ) : ( - <> - {!node.data.blockProjectionOwnerId ? ( - <> - apply('inputs')}>Group input encoders - apply('guidance')}>Group guidance - - ) : null} - {canAttach ? ( - requestAnimationFrame(() => setAttachOpen(true))}> - Add image / audio input… - - ) : null} - - )} + {available.map((group) => ( + apply(group)}> + { + { + inputs: 'Group input encoders', + guidance: 'Group guidance', + setup: 'Group model setup', + mask: 'Group mask preparation', + output: 'Group image output', + }[group] + } + + ))} + {bundleActions.map((action) => ( + applyBundle(action)}> + {action === 'bundle' ? 'Use component bundle' : 'Expose components'} + + ))} + {kind ? apply()}>Ungroup stages : null} + {canAttach ? ( + requestAnimationFrame(() => setAttachOpen(true))}> + Add image / audio input… + + ) : null} {attachOpen ? ( diff --git a/src/stores/flowGraphMutations.ts b/src/stores/flowGraphMutations.ts index 809ea986..73aeb5b6 100644 --- a/src/stores/flowGraphMutations.ts +++ b/src/stores/flowGraphMutations.ts @@ -10,6 +10,7 @@ import { setBlockPresentationV2, } from '../studio/blockRuntimeV2'; import { enqueueSnackbar } from '../ui/snackbar'; +import { operationAuthoring } from '../workflow/operationAuthoringHint'; import { handleEdgesChange, reconcileGraphConnections } from './flowConnectionMutations'; import type { CustomNodeType, FlowStore } from './useFlowStore'; import { useNodesStore } from './useNodeStore'; @@ -45,6 +46,7 @@ function withLiveFieldContracts(nodes: CustomNodeType[]) { const definition = registry[`${node.data.module}.${node.data.action}`]; const liveParams = definition?.params; const storedParams = node.data.params; + const operation = operationAuthoring(node)?.operation; const params = Object.fromEntries( Object.entries(storedParams).map(([fieldKey, storedParam]) => { const liveParam = liveParams?.[fieldKey]; @@ -68,6 +70,16 @@ function withLiveFieldContracts(nodes: CustomNodeType[]) { ); for (const [fieldKey, liveParam] of Object.entries(liveParams ?? {})) { if (hasOwn(storedParams, fieldKey)) continue; + // The generic registry contains sockets for other pipeline/task modes. + // An authored operation's selected contract owns its missing inputs; + // UI fields and hidden scalar defaults still hydrate normally. + if ( + operation && + liveParam.hidden && + liveParam.display === 'input' && + !operation.ports.some((port) => port.direction === 'input' && port.name === fieldKey) + ) + continue; if (liveParam.display?.startsWith('ui_') || liveParam.hidden) params[fieldKey] = { ...liveParam }; } return { ...node, data: { ...node.data, params } }; diff --git a/src/stores/useFlowStore.ts b/src/stores/useFlowStore.ts index 3759c36d..1de8d914 100644 --- a/src/stores/useFlowStore.ts +++ b/src/stores/useFlowStore.ts @@ -1,5 +1,5 @@ import { remapOperationAuthoring, sharedOperationInput } from '../workflow/operationSharedInputs'; -import { planVisualSharedInput } from '../workflow/visualOperationGroups'; +import { planVisualSharedInput } from '../workflow/visualOperationGroupProjection'; import { isFocusedStageNode, isFocusedGuidance } from '../workflow/encodingNodePresentation'; // Derived from cubiq/Mellon-client and modified by the MoDiff project. diff --git a/src/studio/executionSpecValues.ts b/src/studio/executionSpecValues.ts index 1164154a..3830da18 100644 --- a/src/studio/executionSpecValues.ts +++ b/src/studio/executionSpecValues.ts @@ -58,6 +58,7 @@ export function resolveStudioExecutionSpecValues( const hasDistinctLastImage = spec.bindings.some(([, , source]) => source === 'lastImage'); const values: Record = { ...form, + paddingMaskCrop: (form as StudioFormState & { paddingMaskCrop?: number | null }).paddingMaskCrop ?? null, referenceImages: hasDistinctLastImage ? form.referenceImages.slice(0, 1) : [...form.referenceImages], quantizationMode, quantizedComponents: ['transformer'], diff --git a/src/studio/graphFixer.ts b/src/studio/graphFixer.ts index 3234e53d..b8a21be4 100644 --- a/src/studio/graphFixer.ts +++ b/src/studio/graphFixer.ts @@ -14,6 +14,7 @@ import { reviewedLoopRepairEdgeV2 } from './reviewedLoopRepairV2'; import type { HuggingFaceNodeLibraryBlockDefinition } from './huggingFaceNodeLibrary'; import { isBlockRootV2Node, nodeConnectorParam, nodeConnectorParams } from './nodeConnectorResolution'; import type { RunReadinessIssue } from './types'; +import { operationInputIsSuppliedByBundle } from '../workflow/componentBundleInputs'; export type GraphFixConfidence = 'safe' | 'choice'; export type GraphFixExternalAction = 'open_model_manager' | 'open_assets' | 'open_setup' | 'inspect_node'; @@ -900,6 +901,7 @@ export function buildGraphFixPlan(context: GraphFixContext): GraphFixPlan { if (blockInputHasFieldControl(target, targetHandle)) return; if (!inputIsRequired(targetHandle, targetParam, Boolean(target.data.skipParamsCheck))) return; if (validIncoming.has(`${target.id}:${targetHandle}`)) return; + if (operationInputIsSuppliedByBundle(target, targetHandle, context)) return; if (missingOutputTargetIds.has(target.id) && connectedOutputs.length === 0) return; const issueId = candidateId('missing-input', target.id, targetHandle); const candidates = missingInputCandidates(issueId, context, target, targetHandle, targetParam); diff --git a/src/studio/qwenInpaintNativeCandidate.ts b/src/studio/qwenInpaintNativeCandidate.ts new file mode 100644 index 00000000..4e462f79 --- /dev/null +++ b/src/studio/qwenInpaintNativeCandidate.ts @@ -0,0 +1,29 @@ +import type { NodeData } from '../stores/useNodeStore'; +import type { OperationGraph, OperationStarter } from '../workflow/operationAuthoring'; +import { createTemplateOperationGraph } from './templateOperationWorkflow'; +import { qwenInpaintNativeCandidateSelection } from './templateOperationSelections'; +import type { StudioExecutionSpec, StudioFormState, StudioModelProfile, StudioTemplate } from './types'; + +/** Parity tooling delegates to the same ordinary builder as fresh templates. + * Explicit crop overrides remain useful for bounded differential tests. */ +export function createQwenInpaintNativeCandidateGraph( + template: StudioTemplate, + form: StudioFormState & { paddingMaskCrop?: number | null }, + starter: OperationStarter, + registry: Record, + spec: StudioExecutionSpec, + capability: StudioModelProfile, + options: { paddingMaskCrop?: number | null } = {}, +): OperationGraph { + const selection = qwenInpaintNativeCandidateSelection(template.id); + const candidate = { ...template, executionSelection: selection }; + const paddingMaskCrop = + options.paddingMaskCrop !== undefined ? options.paddingMaskCrop : (form.paddingMaskCrop ?? null); + if ( + paddingMaskCrop !== null && + (!Number.isSafeInteger(paddingMaskCrop) || paddingMaskCrop < 0 || paddingMaskCrop > 8192) + ) + throw new Error('The Qwen candidate crop padding must be a bounded nonnegative integer or null.'); + const candidateForm = { ...form, paddingMaskCrop }; + return createTemplateOperationGraph(candidate, candidateForm, starter, registry, spec, capability); +} diff --git a/src/studio/requiredGraphInputs.ts b/src/studio/requiredGraphInputs.ts index c7def634..67f6ff48 100644 --- a/src/studio/requiredGraphInputs.ts +++ b/src/studio/requiredGraphInputs.ts @@ -5,6 +5,7 @@ import type { NodeData } from '../stores/useNodeStore'; import type { RunReadinessIssue } from './types'; import { runtimeProgressTarget } from './userBlocks'; import { connectionTypesAreCompatible } from '../theme/connectionTypes'; +import { operationInputIsSuppliedByBundle } from '../workflow/componentBundleInputs'; /** Inspect current declarations on the same lowered graph used by Run. */ export function inspectRequiredGraphInputs( @@ -42,6 +43,7 @@ export function inspectRequiredGraphInputs( return source?.display === 'output' && connectionTypesAreCompatible(source.type, saved.type); }); if (supplied) continue; + if (operationInputIsSuppliedByBundle(node, field, graph)) continue; const target = visible.some((item) => item.id === node.id && !item.hidden) ? node.id : (owners.get(node.id) ?? runtimeProgressTarget(visible, node.id) ?? node.id); diff --git a/src/studio/templateOperationSelections.ts b/src/studio/templateOperationSelections.ts index 684fbcdb..1a98a371 100644 --- a/src/studio/templateOperationSelections.ts +++ b/src/studio/templateOperationSelections.ts @@ -118,6 +118,31 @@ function pipeline( }; } +/** Exact masked-template selection shared by fresh creation and parity tooling. + * Generic developer starters keep their upstream native defaults. */ +export function qwenInpaintNativeCandidateSelection(id: StudioTemplateId): StudioTemplateExecutionSelection { + if ( + ![ + 'qwen_inpaint_object_replace', + 'qwen_inpaint_mask_draft', + 'qwen_outpaint_aspect_template', + 'qwen_outpaint_draft', + ].includes(id) + ) + throw new Error('This template has no reviewed Qwen native inpaint candidate.'); + return { + ...native( + 'QwenImageEditModularPipeline', + 'qwen-edit:modular', + 'QwenImageEditModularPipeline', + 'modular_inpainting', + 'inpaint', + ), + componentPolicy: { attentionBackend: 'auto', vaeSlicing: true, vaeTiling: true }, + note: 'Native masked stages preserve the reviewed whole-template preprocessing and composite through an owned compatibility adapter.', + }; +} + /** Curated fresh recipes, not global model defaults or execution authority. */ export const IMAGE_TEMPLATE_EXECUTION_SELECTIONS: Partial> = { @@ -246,24 +271,13 @@ export const IMAGE_TEMPLATE_EXECUTION_SELECTIONS: Partial operationOwnsModel(operationAuthoring(node)?.operation)); if (owners.length !== 1) throw new Error('The template needs exactly one declared model owner.'); const owner = owners[0]!; + const qwenMaskedCompatibility = + [ + 'qwen_inpaint_object_replace', + 'qwen_inpaint_mask_draft', + 'qwen_outpaint_aspect_template', + 'qwen_outpaint_draft', + ].includes(template.id) && + selection.implementation === 'native_stages' && + selection.pipelineClass === 'QwenImageEditModularPipeline' && + selection.executionProfileId === 'qwen-edit:modular' && + selection.task === 'inpaint' && + selection.bindingSpec.modelType === 'QwenImageEditModularPipeline' && + selection.bindingSpec.mode === 'modular_inpainting'; + if ( + qwenMaskedCompatibility && + (starter.workflowId !== 'image_conditioned_inpainting' || + operationAuthoring(owner)?.operation.binding?.values.workflow_id !== 'image_conditioned_inpainting') + ) + throw new Error('The Qwen masked template requires the reviewed image_conditioned_inpainting workflow.'); const adapterName = selection.loraPolicy?.defaultAdapterName; const lora = template.workflowBlockSettings?.lora; if ( @@ -258,5 +277,66 @@ export function createTemplateOperationGraph( connect(upscaler, ['images', 'output', 'image'], upscalePreview, ['image']); } else throw new Error(`The image template does not declare support for ${block}.`); } + // Only these fresh, reviewed recipes select the backend's owned compatibility + // adapter. Generic starters and existing saved graphs retain their own values. + if (qwenMaskedCompatibility) { + const padding = (form as StudioFormState & { paddingMaskCrop?: number | null }).paddingMaskCrop ?? null; + if (padding !== null && (!Number.isSafeInteger(padding) || padding < 0 || padding > 8192)) + throw new Error('The Qwen crop padding must be a bounded nonnegative integer or null.'); + const exact = (action: string) => { + const nodes = graph.nodes.filter( + (node) => node.data.module === 'modules.ModularDiffusers' && node.data.action === action, + ); + if (nodes.length !== 1) throw new Error(`The Qwen masked template requires exactly one ${action} stage.`); + return nodes[0]!; + }; + const encode = exact('ImageEncode'); + const prompt = exact('EncodePrompt'); + set(owner, ['inpaint_compatibility'], 'whole_v1'); + set(encode, ['inpaint_compatibility'], 'whole_v1'); + set(encode, ['padding_mask_crop'], padding); + set(exact('Denoise'), ['width'], form.width); + set(exact('Denoise'), ['height'], form.height); + if (template.id === 'qwen_outpaint_aspect_template' || template.id === 'qwen_outpaint_draft') { + const canvas = createNodeFromRegistry('modules.DiffusersImage.OutpaintCanvas', registry, { x: -560, y: 440 }); + if (!canvas) throw new Error('The public OutpaintCanvas operation is missing.'); + for (const [field, value] of Object.entries({ + width: form.width, + height: form.height, + left: form.outpaintLeft, + right: form.outpaintRight, + top: form.outpaintTop, + bottom: form.outpaintBottom, + overlap: form.outpaintOverlap, + feather: form.outpaintFeather, + fill_color: form.outpaintFillColor, + })) + set(canvas, [field], value); + const imageEdge = graph.edges.find((edge) => edge.target === encode.id && edge.targetHandle === 'image'); + const maskEdge = graph.edges.find((edge) => edge.target === encode.id && edge.targetHandle === 'mask_image'); + const promptEdge = graph.edges.find((edge) => edge.target === prompt.id && edge.targetHandle === 'image'); + if ( + !imageEdge || + !maskEdge || + !promptEdge || + promptEdge.source !== imageEdge.source || + promptEdge.sourceHandle !== imageEdge.sourceHandle + ) + throw new Error('The Qwen outpaint template has ambiguous source media.'); + const source = graph.nodes.find((node) => node.id === imageEdge.source)!; + const maskLoader = graph.nodes.find((node) => node.id === maskEdge.source); + if (!maskLoader || maskLoader.data.module !== 'modules.Image' || maskLoader.data.action !== 'Load') + throw new Error('The Qwen outpaint template has no standalone mask role to replace.'); + graph.edges = graph.edges.filter((edge) => ![imageEdge, maskEdge, promptEdge].includes(edge)); + if (graph.edges.some((edge) => edge.source === maskLoader.id || edge.target === maskLoader.id)) + throw new Error('The Qwen outpaint mask role has another consumer.'); + graph.nodes = graph.nodes.filter((node) => node.id !== maskLoader.id); + graph.nodes.push(canvas); + connect(source, [imageEdge.sourceHandle!], canvas, ['image']); + connect(canvas, ['canvas'], encode, ['image']); + connect(canvas, ['mask_image'], encode, ['mask_image']); + connect(canvas, ['canvas'], prompt, ['image']); + } + } return groupNewOperationGraph(graph); } diff --git a/src/workflow/componentBundleInputs.ts b/src/workflow/componentBundleInputs.ts new file mode 100644 index 00000000..24806558 --- /dev/null +++ b/src/workflow/componentBundleInputs.ts @@ -0,0 +1,50 @@ +import type { Edge } from '@xyflow/react'; +import type { CustomNodeType } from '../stores/useFlowStore'; +import { connectionTypes, connectionTypesAreCompatible } from '../theme/connectionTypeCompatibility'; +import { operationAuthoring } from './operationAuthoringHint'; +import { operationOwnsModel } from './operationContracts'; + +/** Declared graph supply only. The backend still verifies sealed roles and generation. */ +export function operationInputIsSuppliedByBundle( + node: CustomNodeType, + field: string, + graph: { nodes: CustomNodeType[]; edges: Edge[] }, +) { + const operation = operationAuthoring(node)?.operation; + const port = operation?.ports.find((p) => p.name === field && p.direction === 'input'); + const alternative = port?.semantics?.suppliedBy; + if (!alternative || node.data.uiState?.disabled) return false; + const input = operation!.ports.find((p) => p.name === alternative.input && p.direction === 'input'); + const target = node.data.params[alternative.input]; + if (!input || !target || target.disabled || !(target.isInput || target.display === 'input')) return false; + const incoming = graph.edges.filter((e) => e.target === node.id && e.targetHandle === alternative.input); + if (incoming.length !== 1) return false; + const edge = incoming[0]!; + const source = graph.nodes.find((n) => n.id === edge.source && !n.data.uiState?.disabled); + if (!source) return false; + const output = source.data.params[edge.sourceHandle ?? '']; + const owner = operationAuthoring(source)?.operation; + const declared = owner?.ports.find((p) => p.name === edge.sourceHandle && p.direction === 'output'); + const transport = 'diffusers_modular_pipeline_components'; + if ( + !output || + output.display !== 'output' || + output.disabled || + !operationOwnsModel(owner) || + !declared?.roles.includes('component') || + declared.types.length !== 1 || + declared.types[0] !== transport || + connectionTypes(output.type).length !== 1 || + connectionTypes(output.type)[0] !== transport || + connectionTypes(target.type).length !== 1 || + connectionTypes(target.type)[0] !== transport || + declared.semantics?.kind !== 'component' || + declared.semantics.scope !== input.semantics?.scope || + !connectionTypesAreCompatible(output.type, target.type) + ) + return false; + return alternative.members.every((name) => { + const required = input.semantics!.members.find((m) => m.name === name); + return required && declared.semantics!.members.some((m) => m.name === name && m.type === required.type); + }); +} diff --git a/src/workflow/encodingNodePresentation.ts b/src/workflow/encodingNodePresentation.ts index 48a72dbb..ad37c700 100644 --- a/src/workflow/encodingNodePresentation.ts +++ b/src/workflow/encodingNodePresentation.ts @@ -35,7 +35,14 @@ export function isFocusedGuidance(instance: BlockInstanceV2 | undefined) { } export function isFocusedStageNode(instance: BlockInstanceV2 | undefined) { - return isFocusedImageEncoding(instance) || isFocusedGuidance(instance); + return ( + isFocusedImageEncoding(instance) || + isFocusedGuidance(instance) || + (['setup', 'mask', 'output'].some( + (kind) => instance?.definitionSnapshot.source.provider === `modiff.visual-stages.v1/${kind}`, + ) && + Boolean(instance?.effectiveGraph.nodes.length)) + ); } /** Rendering only: never remove a declared boundary or an existing connection. */ diff --git a/src/workflow/guidanceNodeFields.ts b/src/workflow/guidanceNodeFields.ts index d68631e5..f72e0bdc 100644 --- a/src/workflow/guidanceNodeFields.ts +++ b/src/workflow/guidanceNodeFields.ts @@ -7,7 +7,7 @@ import { captureWorkflowOperationContext } from '../stores/useStudioStore'; import { blockOperationGraphV2, blockControlParamsV2 } from '../studio/blockRuntimeV2'; import type { BlockInstanceV2 } from '../studio/blockSchemaV2'; import { isFocusedGuidance } from './encodingNodePresentation'; -import { unpackVisualOperationGroups, restoreVisualOperationGroups } from './visualOperationGroups'; +import { unpackVisualOperationGroups } from './visualOperationGroupProjection'; import { operationGraphSignature, commitOperationGraph } from './operationGraphTransaction'; import { requestJson } from '../utils/requestJson'; import config from '../../app.config'; @@ -147,6 +147,7 @@ export async function updateGuidanceField(rootId: string, logicalId: string, val pending.delete(id); } } + const { restoreVisualOperationGroups } = await import('./visualOperationGroups'); const restored = restoreVisualOperationGroups(next, unpacked); commitOperationGraph(restored, context, signature, 'Edit Guidance'); } diff --git a/src/workflow/operationAuthoring.ts b/src/workflow/operationAuthoring.ts index 92c02c6a..0de3fdfd 100644 --- a/src/workflow/operationAuthoring.ts +++ b/src/workflow/operationAuthoring.ts @@ -9,6 +9,7 @@ import type { OperationContract } from './operationContracts'; import { operationAuthoring } from './operationAuthoringHint'; export { operationAuthoring } from './operationAuthoringHint'; import { operationPortCompatibility } from './operationCatalog'; +import { compatibleOperationControlTransfer } from './operationControlTransfer'; import { createNodeFromRegistry } from './nodeFactory'; import { acceptsOperationValue as acceptsValue } from './operationFieldValue'; import { operationScope } from './operationScope'; @@ -71,7 +72,12 @@ function endpointLabel(node: CustomNodeType | undefined, field: string | null | } function semanticName(node: CustomNodeType, field: string, direction: 'input' | 'output') { - const declared = port(node, field, direction)?.semanticName; + const contract = port(node, field, direction); + if (contract?.semantics?.control) { + const control = contract.semantics.control; + return `${control.technique} ${control.parameter}`; + } + const declared = contract?.semanticName; const value = declared || ''; return value .toLowerCase() @@ -103,14 +109,44 @@ function isAuthored(node: CustomNodeType, name: string, field: NodeParams) { ); } -function transferableSetting(source: CustomNodeType, sourceName: string, target: CustomNodeType, targetName: string) { +function transferableSetting( + source: CustomNodeType, + sourceName: string, + target: CustomNodeType, + targetName: string, + sourceConnected: ReadonlySet, + targetConnected: ReadonlySet, +) { const a = port(source, sourceName, 'input'); const b = port(target, targetName, 'input'); - if (!a || !b || a.semanticName !== b.semanticName) return false; - // Backend v3 contracts do not yet distinguish distilled, true CFG and CFG - // guidance semantically. Do not invent that equivalence from their labels. + if (!a || !b) return false; + const left = a.semantics?.control, + right = b.semantics?.control; if ( - /guidance|cfg/i.test(a.semanticName) && + a.semanticName !== b.semanticName && + !(left && right && left.technique === right.technique && left.parameter === right.parameter) + ) + return false; + if (left || right) { + if ( + !left || + !right || + !compatibleOperationControlTransfer( + source, + sourceName, + left, + target, + targetName, + right, + sourceConnected, + targetConnected, + ) + ) + return false; + } else if ( + (/guidance|cfg|guider/i.test(a.semanticName) || + operationAuthoring(source)!.operation.operationId === 'diffusion.guidance' || + operationAuthoring(target)!.operation.operationId === 'diffusion.guidance') && operationAuthoring(source)!.operation.pipelineClass !== operationAuthoring(target)!.operation.pipelineClass ) return false; @@ -119,6 +155,16 @@ function transferableSetting(source: CustomNodeType, sourceName: string, target: return operationPortCompatibility({ ...a, direction: 'output' }, b) !== 'incompatible'; } +function isGuidanceSetting(node: CustomNodeType, name: string) { + const declared = port(node, name, 'input'); + return Boolean( + declared && + (declared.semantics?.control || + /guidance|cfg|guider/i.test(declared.semanticName) || + operationAuthoring(node)?.operation.operationId === 'diffusion.guidance'), + ); +} + function reviewValue(value: unknown) { let result: string; if (typeof value === 'string') result = value; @@ -396,12 +442,173 @@ export function planOperationChange( throw new Error('Preserving all current values is only supported within the same pipeline.'); const before = new Map(scope.map((n) => [operationAuthoring(n)!.operation.operationId, n])); const draft = createOperationStarter(starter, root.position); + const connected = new Map>(); + for (const edge of [...graph.edges, ...draft.edges]) { + if (!edge.targetHandle) continue; + if (!connected.has(edge.target)) connected.set(edge.target, new Set()); + connected.get(edge.target)!.add(edge.targetHandle); + } + const canTransfer = (source: CustomNodeType, sourceName: string, target: CustomNodeType, targetName: string) => + unchangedControl(source, sourceName, target, targetName) || + transferableSetting( + source, + sourceName, + target, + targetName, + connected.get(source.id) ?? new Set(), + connected.get(target.id) ?? new Set(), + ); const nextOwner = draft.nodes.find((node) => operationOwnsModel(operationAuthoring(node)?.operation))!; + const ownerFields = [ + 'repo_id', + 'model_id', + 'repo_source', + 'revision', + 'execution_profile_id', + 'reviewed_variant', + 'trust_remote_code', + 'conditioning_model_id', + 'conditioning_revision', + 'conditioning_kind', + 'execution_recipe', + ]; + const sameOwner = (left: CustomNodeType, right: CustomNodeType) => + operationAuthoring(left)!.operation.binding?.pipelineClass === + operationAuthoring(right)!.operation.binding?.pipelineClass && + ['repo_id', 'model_id'].some((name) => { + const value = operationFieldValue(left.data.params[name]); + if (typeof value === 'string') return Boolean(value.trim()); + if (!value || typeof value !== 'object' || Array.isArray(value)) return false; + const selector = value as Record; + return ( + (selector.source === 'hub' || selector.source === 'local') && + typeof selector.value === 'string' && + Boolean(selector.value.trim()) + ); + }) && + ownerFields.every((name) => + deepEqual(operationFieldValue(left.data.params[name]), operationFieldValue(right.data.params[name])), + ); + const sameModel = sameOwner(root, nextOwner); + // Keeping an unchanged executor and model preserves its unresolved runtime + // policy. It does not infer a distilled scale's meaning for a different model. + function unchangedControl(source: CustomNodeType, sourceName: string, target: CustomNodeType, targetName: string) { + const previousOwner = returning?.nodes.find((node) => operationOwnsModel(operationAuthoring(node)?.operation)); + const exactReturn = + previousOwner && sameOwner(previousOwner, nextOwner) && returning?.nodes.some((node) => node.id === source.id); + if ( + (!sameModel && !exactReturn) || + sourceName !== targetName || + (options.restoreDefaults && !connected.get(source.id)?.has(sourceName)) + ) + return false; + const a = operationAuthoring(source)?.operation, + b = operationAuthoring(target)?.operation; + const left = port(source, sourceName, 'input'), + right = port(target, targetName, 'input'); + return Boolean( + left?.semantics?.control && + right?.semantics?.control && + a && + b && + a.nodeKey === b.nodeKey && + a.operationId === b.operationId && + deepEqual(a.binding, b.binding) && + deepEqual(left, right), + ); + } const archived = operationAuthoring(root)!.inactiveDrafts ?? []; const returning = archived.find((item) => item.routeKey === routeKey(nextOwner)); const inactiveByOperation = new Map( (returning?.nodes ?? []).map((node) => [operationAuthoring(node)!.operation.operationId, node]), ); + function hiddenRuntimeValue( + source: CustomNodeType, + target: CustomNodeType, + name: string, + wired: ReadonlySet, + ) { + const a = operationAuthoring(source)!, + b = operationAuthoring(target)!; + const field = source.data.params[name], + destination = target.data.params[name]; + const input = port(source, name, 'input'); + return Boolean( + a.operation.nodeKey === b.operation.nodeKey && + a.operation.operationId === b.operation.operationId && + a.operation.task === b.operation.task && + a.operation.workflowId === b.operation.workflowId && + deepEqual(a.operation.binding, b.operation.binding) && + field?.hidden === true && + destination?.hidden === true && + input?.semantics?.kind === 'value' && + deepEqual(input, port(target, name, 'input')) && + !wired.has(name) && + !connected.get(target.id)?.has(name) && + !field.isConnected && + !destination.isConnected && + isAuthored(source, name, field) && + !Object.prototype.hasOwnProperty.call(a.operation.binding?.values ?? {}, name) && + !Object.prototype.hasOwnProperty.call(b.operation.binding?.values ?? {}, name) && + connectionTypesAreCompatible(field.type, destination.type) && + acceptsValue(destination, operationFieldValue(field)), + ); + } + const runtimeSettings = (returning?.nodes ?? []).flatMap((node) => + Object.entries(node.data.params).flatMap(([name, field]) => { + const hint = operationAuthoring(node)!; + const input = port(node, name, 'input'); + return (field.hidden === true || input?.hidden) && + input?.semantics?.kind === 'value' && + isAuthored(node, name, field) && + !Object.prototype.hasOwnProperty.call(hint.operation.binding?.values ?? {}, name) + ? [{ node, name }] + : []; + }), + ); + const returningOwners = (returning?.nodes ?? []).filter((node) => + operationOwnsModel(operationAuthoring(node)?.operation), + ); + const restoreRuntime = + !options.restoreDefaults && + runtimeSettings.length > 0 && + returningOwners.length === 1 && + sameOwner(returningOwners[0]!, nextOwner) && + routeKey(returningOwners[0]!) === returning!.routeKey && + inactiveByOperation.size === returning!.nodes.length && + returning!.nodes.every((node) => { + const operation = operationAuthoring(node)!.operation; + const matches = draft.nodes.filter( + (target) => operationAuthoring(target)!.operation.operationId === operation.operationId, + ); + const target = matches[0] && operationAuthoring(matches[0])!.operation; + return ( + matches.length === 1 && + target && + operation.nodeKey === target.nodeKey && + operation.task === target.task && + operation.workflowId === target.workflowId && + deepEqual(operation.binding, target.binding) && + operation.ports.length === target.ports.length && + operation.ports.every((input) => + deepEqual( + input, + target.ports.find((p) => p.name === input.name && p.direction === input.direction), + ), + ) + ); + }) && + runtimeSettings.every(({ node, name }) => { + const target = draft.nodes.find( + (item) => operationAuthoring(item)!.operation.operationId === operationAuthoring(node)!.operation.operationId, + ); + const wired = new Set( + returning!.edges + .filter((edge) => edge.target === node.id && edge.targetHandle) + .map((edge) => edge.targetHandle!), + ); + return target && hiddenRuntimeValue(node, target, name, wired); + }); const changes: string[] = []; const diagnostics: string[] = []; const reviewChanges: string[] = []; @@ -409,6 +616,11 @@ export function planOperationChange( const addPreserved = (message: string) => { if (!preserved.includes(message)) preserved.push(message); }; + if (restoreRuntime) addPreserved('Restore runtime settings from this exact model’s inactive draft.'); + else if (runtimeSettings.length && !options.restoreDefaults) + diagnostics.push( + 'Runtime settings remain archived because they cannot be safely restored; the selected route’s defaults apply.', + ); const idMap = new Map(); const replacements = new Map(); const changedIds = new Map(); @@ -447,12 +659,16 @@ export function planOperationChange( const params = structuredClone(fresh.data.params); if (restored && !options.restoreDefaults) { for (const [name, field] of Object.entries(restored.data.params)) { + if (restoreRuntime && runtimeSettings.some((item) => item.node === restored && item.name === name)) { + params[name] = { ...params[name], value: structuredClone(operationFieldValue(field)) }; + continue; + } if ( publicSetting(field) && params[name] && publicSetting(params[name]) && isAuthored(restored, name, field) && - transferableSetting(restored, name, fresh, name) && + canTransfer(restored, name, fresh, name) && acceptsValue(params[name], operationFieldValue(field)) && !Object.prototype.hasOwnProperty.call(next.operation.binding?.values ?? {}, name) && !operationOwnsModel(next.operation) @@ -473,6 +689,21 @@ export function planOperationChange( const retained = [...previous.retained]; const modelChanged = previous.operation.binding?.pipelineClass !== next.operation.binding?.pipelineClass; for (const [name, originalField] of Object.entries(old.data.params)) { + // Reattaching a socket to this exact route must keep its authored runtime + // mode. Hidden execution settings never migrate to another task, model, + // implementation or schema, and never override a bound selector. + const targetField = params[name]; + if ( + options.preserveValues && + !options.restoreDefaults && + sameModel && + routeKey(root) === routeKey(nextOwner) && + hiddenRuntimeValue(old, fresh, name, connected.get(old.id) ?? new Set()) + ) { + params[name] = { ...targetField, value: structuredClone(operationFieldValue(originalField)) }; + addPreserved(`Keep runtime settings for unchanged ${old.data.label}.`); + continue; + } // Preserve compatible creative defaults, not task-bound selectors or // controls absent from the destination. Authored overrides still go // through the normal review path below. @@ -482,7 +713,7 @@ export function planOperationChange( publicSetting(params[name]) && !Object.prototype.hasOwnProperty.call(next.operation.binding?.values ?? {}, name) && acceptsValue(params[name], operationFieldValue(originalField)) && - (operationOwnsModel(previous.operation) || transferableSetting(old, name, fresh, name)); + (operationOwnsModel(previous.operation) || canTransfer(old, name, fresh, name)); // A direct socket connection is not a request for a new creative example. // Retain default-backed visible values too, through the same schema and // semantic checks used for explicit overrides. Model-change behavior is @@ -529,7 +760,7 @@ export function planOperationChange( ) && target && publicSetting(target) && - (operationOwnsModel(previous.operation) || transferableSetting(old, name, fresh, name)) && + (operationOwnsModel(previous.operation) || canTransfer(old, name, fresh, name)) && connectionTypesAreCompatible(field.type, target.type) && acceptsValue(target, field.value); if (allowed) { @@ -588,7 +819,7 @@ export function planOperationChange( targetField.display === 'output' || !connectionTypesAreCompatible(entry.field.type, targetField.type) || !acceptsValue(targetField, entry.field.value) || - !transferableSetting(entry.old, entry.name, targetNode, targetName) + !canTransfer(entry.old, entry.name, targetNode, targetName) ) return []; const targetKey = semanticName(targetNode, targetName, 'input'); @@ -658,7 +889,7 @@ export function planOperationChange( targetField.display === 'output' || !connectionTypesAreCompatible(field.type, targetField.type) || !acceptsValue(targetField, field.value) || - !transferableSetting(old, name, targetNode, targetName) + !canTransfer(old, name, targetNode, targetName) ) return []; const targetKey = semanticName(targetNode, targetName, 'input'); @@ -727,7 +958,8 @@ export function planOperationChange( field.hidden || field.display === 'output' || targetTaken.has(`${candidate.id}:${name}`) || - !connectionTypesAreCompatible(oldNode.data.params[oldField]?.type, field.type) + !connectionTypesAreCompatible(oldNode.data.params[oldField]?.type, field.type) || + (isGuidanceSetting(oldNode, oldField) && !canTransfer(oldNode, oldField, candidate, name)) ) return []; const match = oldField === name ? 3 : key && key === semanticName(candidate, name, 'input') ? 2 : 0; @@ -822,7 +1054,15 @@ export function planOperationChange( source: changedIds.get(edge.source) ?? edge.source, target: changedIds.get(edge.target) ?? edge.target, }; - if (!obsolete.has(edge.source) && !obsolete.has(edge.target) && compatibleEdge(adapted, nodes)) edges.push(adapted); + const previousTarget = graph.nodes.find((node) => node.id === edge.target); + const nextTarget = nodes.find((node) => node.id === adapted.target); + const controlCompatible = + !previousTarget || + !nextTarget || + !isGuidanceSetting(previousTarget, edge.targetHandle ?? '') || + canTransfer(previousTarget, edge.targetHandle ?? '', nextTarget, adapted.targetHandle ?? ''); + if (!obsolete.has(edge.source) && !obsolete.has(edge.target) && controlCompatible && compatibleEdge(adapted, nodes)) + edges.push(adapted); else if ( proposedDraftEdges.some( (candidate) => diff --git a/src/workflow/operationComponentBundle.ts b/src/workflow/operationComponentBundle.ts new file mode 100644 index 00000000..cf4eae91 --- /dev/null +++ b/src/workflow/operationComponentBundle.ts @@ -0,0 +1,163 @@ +import { nanoid } from 'nanoid'; +import type { CustomNodeType } from '../stores/useFlowStore'; +import type { OperationGraph } from './operationAuthoring'; +import { operationAuthoring } from './operationAuthoringHint'; +import { operationPortCompatibility } from './operationCatalog'; +import type { OperationPort } from './operationContracts'; +import { operationScope } from './operationScope'; +import { restoreVisualOperationGroups, unpackVisualOperationGroups } from './visualOperationGroups'; + +export type OperationComponentBundleAction = 'bundle' | 'components'; + +type Consumer = { node: CustomNodeType; input: OperationPort; output: OperationPort; leaves: OperationPort[] }; + +/** Exact declared component members are required for this reversible wiring + * action. Tensor types, model names and a generic aggregate socket alone do + * not establish that it can replace a particular component input. */ +function supplies(output: OperationPort, input: OperationPort) { + const left = output.semantics, + right = input.semantics; + return Boolean( + left?.kind === 'component' && + right?.kind === 'component' && + left.owner === 'same_loader' && + right.owner === 'same_loader' && + left.scope === right.scope && + right.members.length && + right.members.every((member) => + left.members.some((candidate) => candidate.name === member.name && candidate.type === member.type), + ) && + operationPortCompatibility(output, input) !== 'incompatible', + ); +} + +function consumers(graph: OperationGraph, ownerId: string): Consumer[] { + const scope = operationScope(graph, ownerId); + const owner = scope.find((node) => node.id === ownerId)!; + const outputs = operationAuthoring(owner)!.operation.ports.filter((port) => port.direction === 'output'); + return scope + .filter((node) => node.id !== ownerId) + .flatMap((node) => { + const inputs = operationAuthoring(node)!.operation.ports.filter((port) => port.direction === 'input'); + return inputs + .filter((input) => inputs.some((port) => port.semantics?.suppliedBy?.input === input.name)) + .flatMap((input) => { + const leaves = inputs.filter((port) => port.semantics?.suppliedBy?.input === input.name); + const candidates = outputs.filter( + (output) => + supplies(output, input) && + leaves.every((port) => + port.semantics!.suppliedBy!.members.every((name) => + output.semantics!.members.some( + (member) => + member.name === name && + port.semantics!.members.some( + (expected) => expected.name === name && expected.type === member.type, + ), + ), + ), + ), + ); + return candidates.length === 1 ? [{ node, input, output: candidates[0]!, leaves }] : []; + }); + }); +} + +function componentOutput(owner: CustomNodeType, input: OperationPort) { + const candidates = operationAuthoring(owner)!.operation.ports.filter( + (port) => port.direction === 'output' && supplies(port, input), + ); + return candidates.length === 1 ? candidates[0] : undefined; +} + +function changes(graph: OperationGraph, ownerId: string, action: OperationComponentBundleAction) { + const owner = graph.nodes.find((node) => node.id === ownerId)!; + const remove = new Set(); + const add: OperationGraph['edges'] = []; + for (const consumer of consumers(graph, ownerId)) { + const existing = graph.edges.filter( + (edge) => edge.target === consumer.node.id && edge.targetHandle === consumer.input.name, + ); + const bundled = existing.find((edge) => edge.source === ownerId && edge.sourceHandle === consumer.output.name); + if ( + existing.length > 1 || + (consumer.node.data.params[consumer.input.name]?.value ?? + consumer.node.data.params[consumer.input.name]?.default) != null + ) + continue; + if (action === 'bundle') { + if (existing.length && !bundled) continue; // A deliberately supplied alternate bundle wins. + // Backend bundles seal actual member identities to this loader. A type- + // compatible custom supplier or literal cannot prove that identity here. + // Leave that whole consumer's ordinary component path unchanged. + const competing = consumer.leaves.some((input) => { + const drivers = graph.edges.filter( + (edge) => edge.target === consumer.node.id && edge.targetHandle === input.name, + ); + if (drivers.length > 1) return true; + if (drivers[0]) + return drivers[0].source !== ownerId || drivers[0].sourceHandle !== componentOutput(owner, input)?.name; + return (consumer.node.data.params[input.name]?.value ?? consumer.node.data.params[input.name]?.default) != null; + }); + if (competing) continue; + const ordinary = graph.edges.filter( + (edge) => + edge.source === ownerId && + edge.target === consumer.node.id && + consumer.leaves.some( + (input) => edge.targetHandle === input.name && edge.sourceHandle === componentOutput(owner, input)?.name, + ), + ); + if (!ordinary.length) continue; + ordinary.forEach((edge) => remove.add(edge.id)); + if (!bundled) + add.push({ + id: `edge-${nanoid()}`, + source: ownerId, + sourceHandle: consumer.output.name, + target: consumer.node.id, + targetHandle: consumer.input.name, + }); + } else { + if (!bundled) continue; + const required = consumer.leaves.filter( + (input) => + !graph.edges.some((edge) => edge.target === consumer.node.id && edge.targetHandle === input.name) && + (consumer.node.data.params[input.name]?.value ?? consumer.node.data.params[input.name]?.default) == null, + ); + const outputs = required.map((input) => componentOutput(owner, input)); + if (outputs.some((output) => !output)) continue; // Retain an aggregate that cannot be safely broken out. + remove.add(bundled.id); + required.forEach((input, index) => + add.push({ + id: `edge-${nanoid()}`, + source: ownerId, + sourceHandle: outputs[index]!.name, + target: consumer.node.id, + targetHandle: input.name, + }), + ); + } + } + return { remove, add }; +} + +/** Availability uses the same exact wiring plan as the action itself. */ +export function availableOperationComponentBundleActions(graph: OperationGraph, ownerId: string) { + const ordinary = unpackVisualOperationGroups(graph).graph; + return (['bundle', 'components'] as const).filter((action) => changes(ordinary, ownerId, action).remove.size > 0); +} + +/** Rewire existing implementations only. The backend owns actual component + * objects, identity/override validation and execution; Undo owns exact history. */ +export function setOperationComponentBundle( + graph: OperationGraph, + ownerId: string, + action: OperationComponentBundleAction, +): OperationGraph { + const unpacked = unpackVisualOperationGroups(graph); + const { remove, add } = changes(unpacked.graph, ownerId, action); + if (!remove.size) throw new Error('No declared component connections can be changed on this model branch.'); + const next = { ...unpacked.graph, edges: [...unpacked.graph.edges.filter((edge) => !remove.has(edge.id)), ...add] }; + return restoreVisualOperationGroups(next, unpacked); +} diff --git a/src/workflow/operationContracts.ts b/src/workflow/operationContracts.ts index 8831a2b8..370e27e1 100644 --- a/src/workflow/operationContracts.ts +++ b/src/workflow/operationContracts.ts @@ -1,3 +1,21 @@ +/** Reviewed value-transfer meaning; neither tensor compatibility nor execution permission. */ +export type OperationControl = { + technique: 'classifier_free' | 'embedded_distilled'; + parameter: 'scale' | 'rescale' | 'enabled' | 'formulation' | 'start' | 'stop' | 'technique'; + compatibilityScope: string; + scaleMeaning: 'cfg_prediction_mix' | 'distilled_model_embedding'; + enabled: 'boolean_field' | 'scale_gt_one' | 'always' | 'model_config'; + enabledField: string | null; + formulation: 'boolean_field' | 'original' | 'diffusers' | 'embedded'; + formulationField: string | null; + selectorField: string | null; + selectorValue: string | boolean | null; + negativeConditioning: 'pipeline_scoped_when_enabled' | 'none'; + negativeConditioningScope: string | null; + negativePromptField?: string; + negativePromptPolicy?: 'empty_string_is_condition'; +}; + /** Backend declarations, not execution permission or a graph recipe. */ export type OperationSemantics = { kind: 'value' | 'media' | 'component' | 'conditioning' | 'latents' | 'state' | 'pipeline' | 'opaque'; @@ -5,6 +23,8 @@ export type OperationSemantics = { state: string | null; owner: 'same_loader' | 'none'; members: { name: string; type: string }[]; + control?: OperationControl; + suppliedBy?: { input: string; members: string[] }; }; export type OperationPort = { name: string; @@ -126,7 +146,19 @@ export function boundedText(value: unknown, limit = 2048): string { } function parseSemantics(value: unknown, pipeline: string, workflowId: string | null): OperationSemantics { - const item = record(value, ['kind', 'scope', 'state', 'owner', 'members']); + const hasControl = + typeof value === 'object' && value !== null && Object.prototype.hasOwnProperty.call(value, 'control'); + const hasSupplier = + typeof value === 'object' && value !== null && Object.prototype.hasOwnProperty.call(value, 'suppliedBy'); + const item = record(value, [ + 'kind', + 'scope', + 'state', + 'owner', + 'members', + ...(hasControl ? ['control'] : []), + ...(hasSupplier ? ['suppliedBy'] : []), + ]); if ( !['value', 'media', 'component', 'conditioning', 'latents', 'state', 'pipeline', 'opaque'].includes( String(item.kind), @@ -145,12 +177,98 @@ function parseSemantics(value: unknown, pipeline: string, workflowId: string | n return { name: identifier(member.name), type: boundedText(member.type, 1024) }; }); if (new Set(members.map((m) => m.name)).size !== members.length) invalid(); + if (hasControl && item.kind !== 'value') invalid(); + let suppliedBy: OperationSemantics['suppliedBy']; + if (hasSupplier) { + if (item.kind !== 'component') invalid(); + const supplier = record(item.suppliedBy, ['input', 'members']); + if (!Array.isArray(supplier.members) || !supplier.members.length || supplier.members.length > 16) invalid(); + const names = supplier.members.map(identifier); + if (new Set(names).size !== names.length) invalid(); + suppliedBy = { input: identifier(supplier.input), members: names }; + } return { kind: item.kind as OperationSemantics['kind'], scope: item.scope as string | null, state: item.state === null ? null : identifier(item.state), owner: item.owner as OperationSemantics['owner'], members, + ...(hasControl ? { control: parseControl(item.control, pipeline) } : {}), + ...(suppliedBy ? { suppliedBy } : {}), + }; +} + +function parseControl(value: unknown, pipeline: string): OperationControl { + const hasNegativePrompt = + typeof value === 'object' && + value !== null && + (Object.prototype.hasOwnProperty.call(value, 'negativePromptField') || + Object.prototype.hasOwnProperty.call(value, 'negativePromptPolicy')); + const item = record(value, [ + 'technique', + 'parameter', + 'compatibilityScope', + 'scaleMeaning', + 'enabled', + 'enabledField', + 'formulation', + 'formulationField', + 'selectorField', + 'selectorValue', + 'negativeConditioning', + 'negativeConditioningScope', + ...(hasNegativePrompt ? ['negativePromptField', 'negativePromptPolicy'] : []), + ]); + if ( + !['classifier_free', 'embedded_distilled'].includes(String(item.technique)) || + !['scale', 'rescale', 'enabled', 'formulation', 'start', 'stop', 'technique'].includes(String(item.parameter)) || + !['boolean_field', 'scale_gt_one', 'always', 'model_config'].includes(String(item.enabled)) || + !['boolean_field', 'original', 'diffusers', 'embedded'].includes(String(item.formulation)) || + !['pipeline_scoped_when_enabled', 'none'].includes(String(item.negativeConditioning)) + ) + invalid(); + const cfg = item.technique === 'classifier_free'; + const negativePromptField = hasNegativePrompt ? identifier(item.negativePromptField) : undefined; + if (hasNegativePrompt && (!cfg || item.negativePromptPolicy !== 'empty_string_is_condition')) invalid(); + const compatibilityScope = boundedText(item.compatibilityScope, 128); + compatibilityScope.split('.').forEach(identifier); + const enabledField = item.enabledField === null ? null : identifier(item.enabledField); + const formulationField = item.formulationField === null ? null : identifier(item.formulationField); + const selectorField = item.selectorField === null ? null : identifier(item.selectorField); + const selectorValue = + item.selectorValue === null || typeof item.selectorValue === 'boolean' + ? item.selectorValue + : identifier(item.selectorValue); + if ( + ['boolean_field', 'scale_gt_one'].includes(String(item.enabled)) !== (enabledField !== null) || + (item.formulation === 'boolean_field') !== (formulationField !== null) || + (selectorField === null) !== (selectorValue === null) || + (typeof selectorValue === 'string' && selectorValue !== 'ClassifierFreeGuidance') + ) + invalid(); + if ( + item.scaleMeaning !== (cfg ? 'cfg_prediction_mix' : 'distilled_model_embedding') || + item.negativeConditioning !== (cfg ? 'pipeline_scoped_when_enabled' : 'none') || + item.negativeConditioningScope !== (cfg ? pipeline : null) || + (cfg + ? item.formulation === 'embedded' + : item.formulation !== 'embedded' || (selectorField !== null && typeof selectorValue !== 'boolean')) + ) + invalid(); + return { + technique: item.technique as OperationControl['technique'], + parameter: item.parameter as OperationControl['parameter'], + compatibilityScope, + scaleMeaning: item.scaleMeaning as OperationControl['scaleMeaning'], + enabled: item.enabled as OperationControl['enabled'], + enabledField, + formulation: item.formulation as OperationControl['formulation'], + formulationField, + selectorField, + selectorValue, + negativeConditioning: item.negativeConditioning as OperationControl['negativeConditioning'], + negativeConditioningScope: item.negativeConditioningScope as string | null, + ...(hasNegativePrompt ? { negativePromptField, negativePromptPolicy: 'empty_string_is_condition' as const } : {}), }; } @@ -221,6 +339,41 @@ export function parseOperationContracts(value: unknown, schemaVersion: unknown): parsePort(port, v2, wholePipeline, v3, binding?.pipelineClass ?? pipelineClass, workflowId), ); if (new Set(ports.map((port) => `${port.direction}:${port.name}`)).size !== ports.length) invalid(); + for (const port of ports) { + const supplier = port.semantics?.suppliedBy; + if (supplier) { + const input = ports.find((p) => p.name === supplier.input && p.direction === 'input'); + if ( + port.direction !== 'input' || + !port.roles.includes('component') || + supplier.input === port.name || + !input || + !input.roles.includes('component') || + input.types.length !== 1 || + input.types[0] !== 'diffusers_modular_pipeline_components' || + input.semantics?.kind !== 'component' || + input.semantics.scope !== port.semantics!.scope || + supplier.members.length !== port.semantics!.members.length || + !supplier.members.every((name) => { + const required = port.semantics!.members.find((m) => m.name === name); + return required && input.semantics!.members.some((m) => m.name === name && m.type === required.type); + }) + ) + invalid(); + } + const control = port.semantics?.control; + if (!control) continue; + for (const [name, types] of [ + [control.selectorField, typeof control.selectorValue === 'boolean' ? ['bool', 'boolean'] : ['string', 'text']], + [control.enabledField, control.enabled === 'boolean_field' ? ['bool', 'boolean'] : ['float', 'int', 'number']], + [control.formulationField, ['bool', 'boolean']], + [control.negativePromptField ?? null, ['string', 'text']], + ] as const) { + if (name === null) continue; + const referenced = ports.find((p) => p.name === name && p.direction === 'input'); + if (!referenced || !referenced.types.every((type) => (types as readonly string[]).includes(type))) invalid(); + } + } return { pipelineClass, task, diff --git a/src/workflow/operationControlTransfer.ts b/src/workflow/operationControlTransfer.ts new file mode 100644 index 00000000..1e909a5a --- /dev/null +++ b/src/workflow/operationControlTransfer.ts @@ -0,0 +1,68 @@ +import type { CustomNodeType } from '../stores/useFlowStore'; +import type { OperationControl } from './operationContracts'; + +function controlPolicy( + control: OperationControl, + node: CustomNodeType, + connected: ReadonlySet, + override?: { field: string; value: unknown }, +) { + const value = (name: string | null): unknown => { + if (!name || connected.has(name) || node.data.params[name]?.isConnected) return undefined; + if (override?.field === name) return override.value; + const field = node.data.params[name]; + return field?.value ?? field?.default; + }; + if (control.selectorField && value(control.selectorField) !== control.selectorValue) return null; + if (control.negativePromptField && typeof value(control.negativePromptField) !== 'string') return null; + let enabled: boolean; + if (control.enabled === 'always') enabled = true; + else if (control.enabled === 'boolean_field') { + const field = value(control.enabledField); + if (typeof field !== 'boolean') return null; + enabled = field; + } else if (control.enabled === 'scale_gt_one') { + const field = value(control.enabledField); + if (!(typeof field === 'number' || (typeof field === 'string' && field.trim())) || !Number.isFinite(Number(field))) + return null; + enabled = Number(field) > 1; + } else return null; // Component configuration cannot be inferred from a stored scalar. + let formulation = control.formulation; + if (formulation === 'boolean_field') { + const field = value(control.formulationField); + if (typeof field !== 'boolean') return null; + formulation = field ? 'original' : 'diffusers'; + } + return { enabled, formulation }; +} + +/** Check the prospective destination policy, including a transferred toggle or scale. */ +export function compatibleOperationControlTransfer( + source: CustomNodeType, + sourceField: string, + sourceControl: OperationControl, + target: CustomNodeType, + targetField: string, + targetControl: OperationControl, + sourceConnected: ReadonlySet, + targetConnected: ReadonlySet, +) { + if ( + sourceControl.technique !== targetControl.technique || + sourceControl.parameter !== targetControl.parameter || + sourceControl.compatibilityScope !== targetControl.compatibilityScope || + sourceControl.scaleMeaning !== targetControl.scaleMeaning || + sourceControl.negativeConditioning !== targetControl.negativeConditioning + ) + return false; + const a = controlPolicy(sourceControl, source, sourceConnected); + const field = source.data.params[sourceField]; + const b = controlPolicy(targetControl, target, targetConnected, { + field: targetField, + // A connected value can differ from its stored fallback. It remains + // opaque only when the destination activation/formulation needs it. + value: sourceConnected.has(sourceField) || field?.isConnected ? undefined : (field?.value ?? field?.default), + }); + // Negative tensors keep their distinct pipeline ownership. This only transfers a scalar policy. + return Boolean(a && b && a.enabled === b.enabled && a.formulation === b.formulation); +} diff --git a/src/workflow/visualOperationGroupProjection.ts b/src/workflow/visualOperationGroupProjection.ts new file mode 100644 index 00000000..3a30a0e7 --- /dev/null +++ b/src/workflow/visualOperationGroupProjection.ts @@ -0,0 +1,207 @@ +import type { CustomNodeType } from '../stores/useFlowStore'; +import type { NodeData } from '../stores/useNodeStore'; +import type { BlockJsonValue } from '../studio/blockSchemaV2'; +import { blockOperationGraphV2 } from '../studio/blockRuntimeV2'; +import { blockConnectionTargetsV2 } from '../studio/blockCrossingConnectionsV2'; +import { setBlockFieldValuesV1 } from '../studio/blockContainerEditingV1'; +import type { OperationGraph } from './operationAuthoring'; +import { remapOperationAuthoring, sharedOperationInput } from './operationSharedInputs'; + +/** Read-only visual projection and shared value writes used by the ordinary + * renderer/store. Structural grouping stays in its on-demand planner module. */ +export type VisualOperationGroup = 'inputs' | 'guidance' | 'setup' | 'mask' | 'output'; +export const VISUAL_STAGE_PROVIDER = 'modiff.visual-stages.v1/'; +export const VISUAL_STAGE_LABELS = { + inputs: 'Encode Inputs', + guidance: 'Guidance', + setup: 'Model Setup', + mask: 'Prepare Mask', + output: 'Image Output', +}; +export const VISUAL_STAGE_NAMES = { + inputs: 'encoding', + guidance: 'guidance', + setup: 'model setup', + mask: 'mask preparation', + output: 'image output', +}; + +/** Presentation provenance only; never execution permission or a model selector. */ +export function visualOperationGroup(node: CustomNodeType): VisualOperationGroup | null { + const source = node.data.blockInstanceV2?.definitionSnapshot.source; + if (source?.kind !== 'user') return null; + return ( + (Object.keys(VISUAL_STAGE_LABELS) as VisualOperationGroup[]).find( + (kind) => source.provider === `${VISUAL_STAGE_PROVIDER}${kind}`, + ) ?? null + ); +} + +/** A projected visual loader still owns the complete surrounding workflow. */ +export function visualOperationOwnerId(graph: OperationGraph, ownerId: string, blockId?: string) { + const root = blockId && graph.nodes.find((node) => node.id === blockId); + return root && visualOperationGroup(root) ? `${root.id}/${ownerId}` : ownerId; +} + +function plainNode(node: CustomNodeType, id: string): CustomNodeType { + const data = structuredClone(node.data); + delete data.blockProjectionOwnerId; + delete data.blockProjectionNodeId; + delete data.blockProjectionKind; + for (const field of Object.values(data.params)) { + if (field.fieldOptions) { + delete field.fieldOptions.blockBindingV2; + } + } + return { id, type: node.type, position: { ...node.position }, data }; +} + +/** Read the current effective graph (including public overrides), without Run validation. */ +export function unpackVisualOperationGroups(graph: OperationGraph, onlyIds?: ReadonlySet) { + return projectVisualOperationGroups(graph, onlyIds, true); +} + +// Value edits only read this projection; they never adapt or regroup its nodes. +function projectVisualOperationGroups( + graph: OperationGraph, + onlyIds: ReadonlySet | undefined, + adapting: boolean, +) { + const roots = graph.nodes.filter((node) => visualOperationGroup(node) && (!onlyIds || onlyIds.has(node.id))); + const ids = new Set(roots.map((node) => node.id)); + const members = new Map(); + const projected = new Map(); + const semantic = new Map>(); + const nodes = graph.nodes.filter((node) => !ids.has(node.id) && !ids.has(node.data.blockProjectionOwnerId ?? '')); + const internalEdges: OperationGraph['edges'] = []; + for (const root of roots) { + const instance = root.data.blockInstanceV2!; + if ( + adapting && + instance.effectiveGraph.nodes.some( + (node) => node.parentNodeId || node.containerInterface || node.modularDiffusers, + ) + ) + throw new Error('Ungroup nested additions before adapting this visual stage group. Nothing changed.'); + const view = blockOperationGraphV2(instance); + const map = new Map(instance.effectiveGraph.nodes.map((node) => [node.nodeId, `${root.id}/${node.nodeId}`])); + semantic.set(root.id, map); + members.set(root.id, [...map.values()]); + for (const node of view.nodes) projected.set(node.id, map.get(node.data.blockProjectionNodeId!)!); + for (const node of view.nodes) { + const semanticId = node.data.blockProjectionNodeId!; + const raw = instance.effectiveGraph.nodes.find((member) => member.nodeId === semanticId)!; + const plain = plainNode( + { ...node, data: { ...(raw.data as unknown as NodeData), ...node.data } }, + map.get(semanticId)!, + ); + for (const preview of instance.previewStates) { + if (preview.binding.nodeId !== semanticId || !preview.mediaReference) continue; + const field = plain.data.params[preview.binding.outputPortId]; + if (field?.display?.startsWith('ui_')) field.value = preview.mediaReference; + } + const hint = remapOperationAuthoring(node.data.operationAuthoring, (id) => projected.get(id) ?? id); + if (hint) plain.data.operationAuthoring = hint; + const layout = instance.presentation.internalLayout[semanticId] ?? { x: 24, y: 100 }; + plain.position = { x: root.position.x + layout.x, y: root.position.y + layout.y }; + nodes.push(plain); + } + internalEdges.push( + ...view.edges.map((edge) => ({ + ...edge, + id: `${root.id}/${edge.id}`, + source: projected.get(edge.source)!, + target: projected.get(edge.target)!, + })), + ); + } + const rootById = new Map(roots.map((node) => [node.id, node])); + const edges = graph.edges + .filter((edge) => !ids.has(String(edge.data?.blockProjectionOwnerId ?? ''))) + .flatMap((edge) => { + const endpoints = (id: string, handle: string | null | undefined, direction: 'input' | 'output') => { + const root = rootById.get(id); + if (!root) return [{ id: projected.get(id) ?? id, handle }]; + if (!handle) throw new Error('A visual group connection is missing its socket.'); + const targets = blockConnectionTargetsV2(root, handle, direction); + if (!targets.length) throw new Error('A visual group connection no longer resolves. Nothing changed.'); + return targets.map((target) => ({ id: semantic.get(id)!.get(target.nodeId)!, handle: target.fieldOrPortId })); + }; + const sources = endpoints(edge.source, edge.sourceHandle, 'output'); + const targets = endpoints(edge.target, edge.targetHandle, 'input'); + return sources.flatMap((source) => + targets.map((target, index) => ({ + ...edge, + id: index ? `${edge.id}/mirror-${index}` : edge.id, + source: source.id, + sourceHandle: source.handle, + target: target.id, + targetHandle: target.handle, + })), + ); + }); + const result = { nodes, edges: [...edges, ...internalEdges] }; + if (new Set(nodes.map((node) => node.id)).size !== nodes.length) + throw new Error('Visual group node identity collision.'); + return { graph: result, roots, members }; +} + +/** Shared seed/value edits still span the loader's complete ordinary graph. */ +export function planVisualSharedInput(graph: OperationGraph, nodeId: string, field: string, value: unknown) { + if (!graph.nodes.some(visualOperationGroup)) return null; + const source = graph.nodes.find((node) => node.id === nodeId); + let targetId = nodeId; + if (source?.data.blockProjectionOwnerId) { + const owner = graph.nodes.find((node) => node.id === source.data.blockProjectionOwnerId); + if (!owner || !visualOperationGroup(owner)) return null; + targetId = `${owner.id}/${source.data.blockProjectionNodeId}`; + } else if (source && visualOperationGroup(source)) { + const surface = source.data.blockInstanceV2!.effectiveInterface; + const control = surface.controls.find((item) => item.controlId === field); + const port = surface.boundary.inputs.find((item) => item.portId === field); + const binding = control + ? { nodeId: control.binding.nodeId, fieldId: control.binding.fieldId } + : port + ? { nodeId: port.binding.nodeId, fieldId: port.binding.fieldOrPortId } + : null; + if (!binding) return null; + targetId = `${source.id}/${binding.nodeId}`; + field = binding.fieldId; + } else if (!source?.data.operationAuthoring?.sharedInputs?.some((item) => item.field === field)) return null; + const unpacked = projectVisualOperationGroups(graph, undefined, false); + const shared = sharedOperationInput(unpacked.graph.nodes, unpacked.graph.edges, targetId, field); + if (!shared) return null; + const updates = new Map>(); + const ordinary = new Map(); + for (const member of shared.members) { + const root = unpacked.roots.find((root) => unpacked.members.get(root.id)?.includes(member.node.id)); + if (root) { + const targets = updates.get(root.id) ?? []; + targets.push({ nodeId: member.node.id.slice(root.id.length + 1), fieldId: member.field }); + updates.set(root.id, targets); + } else { + ordinary.set(member.node.id, member.field); + } + } + return { + nodes: graph.nodes.map((node) => { + const targets = updates.get(node.id); + if (targets) { + const instance = setBlockFieldValuesV1(node.data.blockInstanceV2!, targets, value as BlockJsonValue); + return { ...node, data: { ...node.data, blockInstanceV2: instance } }; + } + const key = ordinary.get(node.id); + if (!key) return node; + const hint = node.data.operationAuthoring!; + return { + ...node, + data: { + ...node.data, + params: { ...node.data.params, [key]: { ...node.data.params[key], value: value as never } }, + operationAuthoring: { ...hint, authored: [...new Set([...(hint.authored ?? []), key])] }, + }, + }; + }), + edges: graph.edges, + }; +} diff --git a/src/workflow/visualOperationGroups.ts b/src/workflow/visualOperationGroups.ts index 6515f19c..67c16d3c 100644 --- a/src/workflow/visualOperationGroups.ts +++ b/src/workflow/visualOperationGroups.ts @@ -1,40 +1,44 @@ import { nanoid } from 'nanoid'; import type { CustomNodeType } from '../stores/useFlowStore'; -import type { NodeData } from '../stores/useNodeStore'; import { blockDefinitionContentHashV2, blockGraphHashV2, + canonicalBlockStringifyV2, createBlockInstanceV2, normalizeBlockDefinitionV2, normalizeBlockInstanceV2, type BlockControlV2, type BlockDefinitionV2, type BlockJsonObject, - type BlockJsonValue, type BlockPortV2, + type BlockPreviewBindingV2, } from '../studio/blockSchemaV2'; -import { blockOperationGraphV2, createBlockRootNodeV2 } from '../studio/blockRuntimeV2'; -import { blockConnectionTargetsV2 } from '../studio/blockCrossingConnectionsV2'; -import { setBlockFieldValuesV1 } from '../studio/blockContainerEditingV1'; +import { createBlockRootNodeV2, parameterCustomizationState } from '../studio/blockRuntimeV2'; import type { OperationGraph } from './operationAuthoring'; import { operationAuthoring } from './operationAuthoringHint'; import { operationScope } from './operationScope'; import { operationOwnsModel } from './operationContracts'; -import { remapOperationAuthoring, sharedOperationInput } from './operationSharedInputs'; +import { remapOperationAuthoring } from './operationSharedInputs'; import { workflowTaskCategory } from './workflowTaskBrowser'; +import { connectionTypesAreCompatible } from '../theme/connectionTypeCompatibility'; +import { hasInlineScalarControl } from '../studio/inlineScalarControl'; -export type VisualOperationGroup = 'inputs' | 'guidance'; -const PROVIDER = 'modiff.visual-stages.v1/'; -const LABELS = { inputs: 'Encode Inputs', guidance: 'Guidance' }; - -/** Presentation provenance only; never execution permission or a model selector. */ -export function visualOperationGroup(node: CustomNodeType): VisualOperationGroup | null { - const source = node.data.blockInstanceV2?.definitionSnapshot.source; - if (source?.kind !== 'user') return null; - if (source.provider === `${PROVIDER}inputs`) return 'inputs'; - if (source.provider === `${PROVIDER}guidance`) return 'guidance'; - return null; -} +import { + visualOperationGroup, + unpackVisualOperationGroups, + VISUAL_STAGE_LABELS, + VISUAL_STAGE_PROVIDER as PROVIDER, + type VisualOperationGroup, +} from './visualOperationGroupProjection'; +export { + visualOperationGroup, + visualOperationOwnerId, + unpackVisualOperationGroups, + planVisualSharedInput, + VISUAL_STAGE_LABELS, + VISUAL_STAGE_NAMES, + type VisualOperationGroup, +} from './visualOperationGroupProjection'; function stageKind(node: CustomNodeType): VisualOperationGroup | null { const operation = operationAuthoring(node)?.operation; @@ -42,105 +46,149 @@ function stageKind(node: CustomNodeType): VisualOperationGroup | null { return null; if (['text_encoder', 'vae_encoder', 'image_encoder'].includes(operation.nodeType)) return 'inputs'; if (['guidance', 'guidance_layers'].includes(operation.nodeType)) return 'guidance'; + if (operation.nodeType === 'decoder' && workflowTaskCategory(operation.task ?? '') === 'Image') return 'output'; return null; } -function plainNode(node: CustomNodeType, id: string): CustomNodeType { - const data = structuredClone(node.data); - delete data.blockProjectionOwnerId; - delete data.blockProjectionNodeId; - delete data.blockProjectionKind; - for (const field of Object.values(data.params)) { - if (field.fieldOptions) { - delete field.fieldOptions.blockBindingV2; - } - } - return { id, type: node.type, position: { ...node.position }, data }; -} +const nodeKey = (node: CustomNodeType) => `${node.data.module}.${node.data.action}`; +const SETUP_UTILITIES = new Set([ + 'modules.ModularDiffusers.Lora', + 'modules.DiffusersImage.LoadAdapter', + 'modules.DiffusersRuntime.PipelineQuantizationConfigV2', + 'modules.DiffusersRuntime.DiffusersExecutionRecipe', +]); -/** Read the current effective graph (including public overrides), without Run validation. */ -export function unpackVisualOperationGroups(graph: OperationGraph, onlyIds?: ReadonlySet) { - return projectVisualOperationGroups(graph, onlyIds, true); -} - -// Value edits only read this projection; they never adapt or regroup its nodes. -function projectVisualOperationGroups( - graph: OperationGraph, - onlyIds: ReadonlySet | undefined, - adapting: boolean, -) { - const roots = graph.nodes.filter((node) => visualOperationGroup(node) && (!onlyIds || onlyIds.has(node.id))); - const ids = new Set(roots.map((node) => node.id)); - const members = new Map(); - const projected = new Map(); - const semantic = new Map>(); - const nodes = graph.nodes.filter((node) => !ids.has(node.id) && !ids.has(node.data.blockProjectionOwnerId ?? '')); - const internalEdges: OperationGraph['edges'] = []; - for (const root of roots) { - const instance = root.data.blockInstanceV2!; - if ( - adapting && - instance.effectiveGraph.nodes.some( - (node) => node.parentNodeId || node.containerInterface || node.modularDiffusers, +/** Select existing, connected implementations only. Never manufacture a mask, + * decoder or modifier from a model name, task label or repository. */ +function operationStageMembers(graph: OperationGraph, ownerId: string, kind: VisualOperationGroup) { + const scope = operationScope(graph, ownerId); + if (kind === 'inputs' || kind === 'guidance') { + const members = scope.filter((node) => stageKind(node) === kind); + return kind === 'guidance' && + members.length > 1 && + !graph.edges.some( + (edge) => members.some((node) => node.id === edge.source) && members.some((node) => node.id === edge.target), ) - ) - throw new Error('Ungroup nested additions before adapting this visual stage group. Nothing changed.'); - const view = blockOperationGraphV2(instance); - const map = new Map(instance.effectiveGraph.nodes.map((node) => [node.nodeId, `${root.id}/${node.nodeId}`])); - semantic.set(root.id, map); - members.set(root.id, [...map.values()]); - for (const node of view.nodes) projected.set(node.id, map.get(node.data.blockProjectionNodeId!)!); - for (const node of view.nodes) { - const semanticId = node.data.blockProjectionNodeId!; - const raw = instance.effectiveGraph.nodes.find((member) => member.nodeId === semanticId)!; - const plain = plainNode( - { ...node, data: { ...(raw.data as unknown as NodeData), ...node.data } }, - map.get(semanticId)!, - ); - const hint = remapOperationAuthoring(node.data.operationAuthoring, (id) => projected.get(id) ?? id); - if (hint) plain.data.operationAuthoring = hint; - const layout = instance.presentation.internalLayout[semanticId] ?? { x: 24, y: 100 }; - plain.position = { x: root.position.x + layout.x, y: root.position.y + layout.y }; - nodes.push(plain); + ? [] + : members; + } + const ordinary = graph.nodes.filter( + (node) => !node.parentId && !node.data.blockInstanceV2 && !node.data.blockProjectionOwnerId, + ); + const scopeIds = new Set(scope.map((node) => node.id)); + const owner = scope.find((node) => node.id === ownerId)!; + if (workflowTaskCategory(operationAuthoring(owner)?.operation.task ?? '') !== 'Image') return []; + if (kind === 'setup') { + const members = new Set([ownerId]); + let changed = true; + while (changed) { + changed = false; + for (const node of ordinary.filter((node) => SETUP_UTILITIES.has(nodeKey(node)) && !members.has(node.id))) { + // Descriptor/configuration suppliers feed the loader; a whole-pipeline + // adapter consumes its pipeline. Every edge must be a declared socket. + const connected = graph.edges.some((edge) => { + if (!( + (members.has(edge.target) && edge.source === node.id) || + (members.has(edge.source) && edge.target === node.id) + )) + return false; + const source = graph.nodes.find((n) => n.id === edge.source)?.data.params[edge.sourceHandle ?? '']; + const target = graph.nodes.find((n) => n.id === edge.target)?.data.params[edge.targetHandle ?? '']; + return ( + source?.display === 'output' && + Boolean( + target && + (target.display === 'input' || target.isInput) && + connectionTypesAreCompatible(source.type, target.type), + ) + ); + }); + if (connected) { + members.add(node.id); + changed = true; + } + } } - internalEdges.push( - ...view.edges.map((edge) => ({ - ...edge, - id: `${root.id}/${edge.id}`, - source: projected.get(edge.source)!, - target: projected.get(edge.target)!, - })), + const shared = graph.edges.some( + (edge) => + ((members.has(edge.source) && edge.source !== ownerId) || + (members.has(edge.target) && edge.target !== ownerId)) && + ordinary.some( + (other) => + other.id !== ownerId && + operationOwnsModel(operationAuthoring(other)?.operation) && + (edge.source === other.id || edge.target === other.id), + ), ); + if (shared) return []; + return members.size > 1 ? ordinary.filter((node) => members.has(node.id)) : []; } - const rootById = new Map(roots.map((node) => [node.id, node])); - const edges = graph.edges - .filter((edge) => !ids.has(String(edge.data?.blockProjectionOwnerId ?? ''))) - .flatMap((edge) => { - const endpoints = (id: string, handle: string | null | undefined, direction: 'input' | 'output') => { - const root = rootById.get(id); - if (!root) return [{ id: projected.get(id) ?? id, handle }]; - if (!handle) throw new Error('A visual group connection is missing its socket.'); - const targets = blockConnectionTargetsV2(root, handle, direction); - if (!targets.length) throw new Error('A visual group connection no longer resolves. Nothing changed.'); - return targets.map((target) => ({ id: semantic.get(id)!.get(target.nodeId)!, handle: target.fieldOrPortId })); - }; - const sources = endpoints(edge.source, edge.sourceHandle, 'output'); - const targets = endpoints(edge.target, edge.targetHandle, 'input'); - return sources.flatMap((source) => - targets.map((target, index) => ({ - ...edge, - id: index ? `${edge.id}/mirror-${index}` : edge.id, - source: source.id, - sourceHandle: source.handle, - target: target.id, - targetHandle: target.handle, - })), + if (kind === 'output') { + const decoders = scope.filter((node) => stageKind(node) === 'output'); + const members = new Set(); + for (const decoder of decoders) { + const outputs = operationAuthoring(decoder)!.operation.ports.filter( + (port) => port.direction === 'output' && port.types.includes('image'), ); - }); - const result = { nodes, edges: [...edges, ...internalEdges] }; - if (new Set(nodes.map((node) => node.id)).size !== nodes.length) - throw new Error('Visual group node identity collision.'); - return { graph: result, roots, members }; + const previews = ordinary.filter( + (node) => + nodeKey(node) === 'modules.Image.Preview' && + node.data.params.preview?.display === 'ui_image' && + graph.edges.some( + (edge) => + edge.source === decoder.id && + outputs.some((port) => edge.sourceHandle === port.name) && + edge.target === node.id && + edge.targetHandle === 'image', + ), + ); + if (previews.length) { + members.add(decoder.id); + for (const preview of previews) members.add(preview.id); + } + } + return ordinary.filter((node) => members.has(node.id)); + } + const task = operationAuthoring(owner)!.operation.task; + if (!['inpaint', 'outpaint'].includes(task ?? '')) return []; + const members = new Set(); + for (const canvas of ordinary.filter((node) => nodeKey(node) === 'modules.DiffusersImage.OutpaintCanvas')) { + const image = graph.edges.find( + (edge) => + edge.source === canvas.id && + edge.sourceHandle === 'canvas' && + scopeIds.has(edge.target) && + edge.targetHandle === 'image', + ); + const mask = + image && + graph.edges.some( + (edge) => + edge.source === canvas.id && + edge.sourceHandle === 'mask_image' && + edge.target === image.target && + edge.targetHandle === 'mask_image', + ); + const source = graph.edges.find( + (edge) => edge.target === canvas.id && edge.targetHandle === 'image' && edge.sourceHandle === 'image', + ); + const loader = + source && ordinary.find((node) => node.id === source.source && nodeKey(node) === 'modules.Image.Load'); + if (mask && loader) { + members.add(canvas.id); + members.add(loader.id); + } + } + return ordinary.filter((node) => members.has(node.id)); +} + +export function availableOperationStageGroups(graph: OperationGraph, ownerId: string): VisualOperationGroup[] { + const unpacked = unpackVisualOperationGroups(graph); + const grouped = new Set([...unpacked.members.values()].flat()); + return (Object.keys(VISUAL_STAGE_LABELS) as VisualOperationGroup[]).filter((kind) => { + const members = operationStageMembers(unpacked.graph, ownerId, kind); + return members.length > 0 && members.every((node) => !grouped.has(node.id)); + }); } /** Compose ordinary leaves into the existing V2 contract; no library write. */ @@ -184,6 +232,7 @@ export function groupVisualStages( const inputs: BlockPortV2[] = [], outputs: BlockPortV2[] = [], controls: BlockControlV2[] = []; + const previews: BlockPreviewBindingV2[] = []; for (const node of members) { for (const [field, param] of Object.entries(node.data.params)) { const connected = graph.edges.some( @@ -191,13 +240,23 @@ export function groupVisualStages( (edge.source === node.id && edge.sourceHandle === field && !selected.has(edge.target)) || (edge.target === node.id && edge.targetHandle === field && !selected.has(edge.source)), ); + if (param.display === 'ui_image' && kind === 'output') + previews.push({ + nodeId: remap(node.id), + outputPortId: field, + mediaType: 'image', + ...(previews.length ? {} : { primary: true }), + }); if ((param.hidden && !connected) || param.display?.startsWith('ui_')) continue; const type = Array.isArray(param.type) ? param.type.join('|') : (param.type ?? (param.display === 'layerconfig' ? 'dict' : undefined)); if (!type) continue; const id = `${remap(node.id)}:${field}`; - const label = param.label ?? field; + // Ordinary fields may intentionally omit their visible label (for + // example Image.Load.path). The explicit Block interface still needs a + // non-empty name without changing the original leaf field. + const label = (typeof param.label === 'string' && param.label.trim()) || field; if ( param.display === 'output' || (!bound.has(`${node.id}\0${field}`) && (param.display === 'input' || param.isInput || connected)) @@ -211,7 +270,9 @@ export function groupVisualStages( }); } if ( - (param.display || (kind === 'guidance' && !param.isInput)) && + (param.display || + (kind === 'guidance' && !param.isInput) || + (['setup', 'mask', 'output'].includes(kind) && (!param.isInput || hasInlineScalarControl(param)))) && !['input', 'output'].includes(param.display ?? '') && !param.signal && !bound.has(`${node.id}\0${field}`) @@ -240,7 +301,9 @@ export function groupVisualStages( ? operationAuthoring(node)?.operation.nodeType === 'text_encoder' ? 'Text' : 'Image' - : 'Guidance', + : kind === 'guidance' + ? 'Guidance' + : node.data.label?.trim() || VISUAL_STAGE_LABELS[kind], }); } } @@ -299,12 +362,12 @@ export function groupVisualStages( const base: Omit = { schemaVersion: 2, definitionId: `definition-${rootId}`, - displayName: old?.definitionSnapshot.displayName ?? LABELS[kind], + displayName: old?.definitionSnapshot.displayName ?? VISUAL_STAGE_LABELS[kind], source: { kind: 'user', provider: `${PROVIDER}${kind}` }, graph: { ...innerGraph, graphHash }, boundary: { mode: 'explicit', inputs, outputs }, controls, - previews: [], + previews, ownership: { kind: 'user', definitionMutable: true }, }; const definition = normalizeBlockDefinitionV2({ ...base, contentHash: blockDefinitionContentHashV2(base) }); @@ -334,7 +397,7 @@ export function groupVisualStages( if (old) { // The reusable definition is immutable. Adapt only this workflow's effective // graph/interface; current public values were materialized by unpack above. - instance = normalizeBlockInstanceV2({ + const adapted: typeof instance = { ...instance, definitionRef: old.definitionRef, definitionSnapshot: old.definitionSnapshot, @@ -347,6 +410,15 @@ export function groupVisualStages( baseGraphHash: old.customization.baseGraphHash, effectiveGraphHash: graphHash, }, + previewStates: instance.previewStates.map( + (preview) => + old.previewStates.find( + (prior) => + prior.binding.nodeId === preview.binding.nodeId && + prior.binding.outputPortId === preview.binding.outputPortId && + prior.binding.mediaType === preview.binding.mediaType, + ) ?? preview, + ), presentation: { ...instance.presentation, expanded: old.presentation.expanded, @@ -354,7 +426,11 @@ export function groupVisualStages( ? { removedControlBindings: structuredClone(old.presentation.removedControlBindings) } : {}), }, - }); + }; + // A task return can recover the exact original graph and interface. Derive + // the state from the retained snapshot before enforcing the V2 invariant. + adapted.customization.state = parameterCustomizationState(adapted); + instance = normalizeBlockInstanceV2(adapted); } const root = createBlockRootNodeV2(instance, { selected: previous?.selected }); const endpoint = (id: string, handle: string | null | undefined) => `${remap(id)}:${handle}`; @@ -379,26 +455,19 @@ export function groupOperationStages( ownerId: string, kinds: VisualOperationGroup[] = ['inputs', 'guidance'], ) { - const scope = operationScope(graph, ownerId); + const unpacked = unpackVisualOperationGroups(graph); + const grouped = new Set([...unpacked.members.values()].flat()); let next = graph; for (const kind of kinds) { - const members = scope.filter((node) => stageKind(node) === kind); - if ( - kind === 'guidance' && - (members.length === 0 || - (members.length > 1 && - !graph.edges.some( - (edge) => - members.some((node) => node.id === edge.source) && members.some((node) => node.id === edge.target), - ))) - ) - continue; - if (members.length) + const members = operationStageMembers(unpacked.graph, ownerId, kind); + if (members.some((node) => grouped.has(node.id))) continue; + if (members.length) { next = groupVisualStages( next, members.map((node) => node.id), kind, ); + } } return next; } @@ -420,6 +489,21 @@ export function restoreVisualOperationGroups( // a Python encoder instance merely to retain a visual wrapper's identity. let graph = next; for (const root of unpacked.roots) { + for (const control of root.data.blockInstanceV2!.effectiveInterface.controls.filter((control) => control.sealed)) { + const id = `${root.id}/${control.binding.nodeId}`; + const before = unpacked.graph.nodes.find((node) => node.id === id)?.data.params[control.binding.fieldId]; + const after = next.nodes.find((node) => node.id === (replacements[id] ?? id))?.data.params[ + control.binding.fieldId + ]; + if ( + !after || + canonicalBlockStringifyV2(before?.value ?? before?.default) !== + canonicalBlockStringifyV2(after.value ?? after.default) + ) + throw new Error( + `The sealed ${control.label} control would change. Separate these stages or configure their interface before adapting the model or task. Nothing changed.`, + ); + } const previousMembers = unpacked.members.get(root.id)!; const retained = previousMembers .map((id) => replacements[id] ?? id) @@ -432,11 +516,7 @@ export function restoreVisualOperationGroups( ); const owner = previousOwner && graph.nodes.find((node) => node.id === (replacements[previousOwner.id] ?? previousOwner.id)); - const added = owner - ? operationScope(graph, owner.id) - .filter((node) => stageKind(node) === kind) - .map((node) => node.id) - : []; + const added = owner ? operationStageMembers(graph, owner.id, kind).map((node) => node.id) : []; graph = groupVisualStages(graph, [...new Set([...retained, ...added])], kind, root); } return graph; @@ -451,63 +531,3 @@ export function visualGroupOwners(graph: OperationGraph, groupId: string) { operationScope(unpacked.graph, node.id).some((member) => members.includes(member.id)), ); } - -/** Shared seed/value edits still span the loader's complete ordinary graph. */ -export function planVisualSharedInput(graph: OperationGraph, nodeId: string, field: string, value: unknown) { - if (!graph.nodes.some(visualOperationGroup)) return null; - const source = graph.nodes.find((node) => node.id === nodeId); - let targetId = nodeId; - if (source?.data.blockProjectionOwnerId) { - const owner = graph.nodes.find((node) => node.id === source.data.blockProjectionOwnerId); - if (!owner || !visualOperationGroup(owner)) return null; - targetId = `${owner.id}/${source.data.blockProjectionNodeId}`; - } else if (source && visualOperationGroup(source)) { - const surface = source.data.blockInstanceV2!.effectiveInterface; - const control = surface.controls.find((item) => item.controlId === field); - const port = surface.boundary.inputs.find((item) => item.portId === field); - const binding = control - ? { nodeId: control.binding.nodeId, fieldId: control.binding.fieldId } - : port - ? { nodeId: port.binding.nodeId, fieldId: port.binding.fieldOrPortId } - : null; - if (!binding) return null; - targetId = `${source.id}/${binding.nodeId}`; - field = binding.fieldId; - } else if (!source?.data.operationAuthoring?.sharedInputs?.some((item) => item.field === field)) return null; - const unpacked = projectVisualOperationGroups(graph, undefined, false); - const shared = sharedOperationInput(unpacked.graph.nodes, unpacked.graph.edges, targetId, field); - if (!shared) return null; - const updates = new Map>(); - const ordinary = new Map(); - for (const member of shared.members) { - const root = unpacked.roots.find((root) => unpacked.members.get(root.id)?.includes(member.node.id)); - if (root) { - const targets = updates.get(root.id) ?? []; - targets.push({ nodeId: member.node.id.slice(root.id.length + 1), fieldId: member.field }); - updates.set(root.id, targets); - } else { - ordinary.set(member.node.id, member.field); - } - } - return { - nodes: graph.nodes.map((node) => { - const targets = updates.get(node.id); - if (targets) { - const instance = setBlockFieldValuesV1(node.data.blockInstanceV2!, targets, value as BlockJsonValue); - return { ...node, data: { ...node.data, blockInstanceV2: instance } }; - } - const key = ordinary.get(node.id); - if (!key) return node; - const hint = node.data.operationAuthoring!; - return { - ...node, - data: { - ...node.data, - params: { ...node.data.params, [key]: { ...node.data.params[key], value: value as never } }, - operationAuthoring: { ...hint, authored: [...new Set([...(hint.authored ?? []), key])] }, - }, - }; - }), - edges: graph.edges, - }; -} diff --git a/tests/e2e/studio-mocked/studio-mocked.spec.ts b/tests/e2e/studio-mocked/studio-mocked.spec.ts index f56e9262..dbd0a806 100644 --- a/tests/e2e/studio-mocked/studio-mocked.spec.ts +++ b/tests/e2e/studio-mocked/studio-mocked.spec.ts @@ -29362,3 +29362,450 @@ test('startup metadata wait preserves supervised active-run restoration at the a expect(addresses.length).toBeGreaterThan(0); expect(addresses.every((url) => url === 'http://127.0.0.1:65532/queue')).toBe(true); }); + +async function openOptionalStageTemplate(page: Page, templateId: string, search: string, reviewTerms = true) { + await page.setViewportSize({ width: 1920, height: 1200 }); + await ensureFrontend(); + await installMockRoutes(page); + const fixture = await imageTemplateSchemas(); + await page.route('**/model_capabilities**', (route) => route.fulfill({ status: 200, json: fixture.publicPayload })); + await page.route('**/nodes**', (route) => + route.fulfill({ status: 200, json: { instance: 'mock', nodes: { ...mockRegistry, ...fixture.registry } } }), + ); + await page.goto(FRONTEND_URL, { waitUntil: 'domcontentloaded' }); + await openTemplateBrowser(page); + const browser = page.getByTestId('template-browser-dialog'); + await browser.getByTestId('template-browser-category-all').click(); + await browser.getByTestId('template-browser-search').fill(search); + await browser.getByTestId(`template-browser-use-${templateId}`).click(); + await browser.getByTestId(`template-browser-create-${templateId}`).click(); + if (reviewTerms) { + const terms = page.getByRole('dialog', { name: 'Review model terms', exact: true }); + const agreement = terms.getByRole('button', { name: 'I have reviewed and agree — Create graph', exact: true }); + await expect(agreement).toBeVisible(); + await agreement.click(); + } + await expect(browser).toHaveCount(0); + await expect.poll(() => page.evaluate(() => window.__MODIFF_E2E__!.getState().studio.canvasTransition)).toBeNull(); + await assertUnifiedWorkspace(page, 'expert'); + await page.getByRole('button', { name: 'Arrange graph', exact: true }).click(); +} + +async function optionalStageApi(page: Page) { + return page.evaluate(() => { + const hooks = window.__MODIFF_E2E__!; + hooks.setWebsocketConnection({ sid: 'optional-stage-contract', isConnected: true }); + const api = hooks.exportAuthorizedApiGraph(); + const identities = new Map(Object.entries(api.nodes).map(([id, node]) => [id, `${node.module}.${node.action}`])); + // These single-branch fixtures have one instance per implementation key. + // Compare consumed parameters and source/port bindings across explicit + // grouping, whose normal V2 lowering owns new runtime node IDs. + if (new Set(identities.values()).size !== identities.size) + throw new Error('Ambiguous optional-stage fixture identity'); + return Object.fromEntries( + Object.entries(api.nodes).map(([id, node]) => [ + identities.get(id), + { + ...node, + params: Object.fromEntries( + Object.entries(node.params).map(([field, value]) => [ + field, + { ...value, ...(value.sourceId ? { sourceId: identities.get(value.sourceId) } : {}) }, + ]), + ), + }, + ]), + ); + }); +} + +test('optional Model Setup and Image Output preserve native stages, task review, separate, Undo and reusable save', async ({ + page, +}) => { + await openOptionalStageTemplate(page, 'flux_lora_ghibli_story', 'ghibli'); + const graph = () => page.evaluate(() => window.__MODIFF_E2E__!.exportWorkflowGraph()); + const before = await optionalStageApi(page); + const owner = (await graph()).nodes.find((node) => node.data.action === 'ModelsLoader')!; + const loader = page.locator(`.react-flow__node[data-id="${owner.id}"]`); + await loader.locator('header').first().click(); + await page.getByRole('button', { name: 'Inspect node', exact: true }).click(); + await page + .getByRole('dialog', { name: 'Node inspector', exact: true }) + .getByRole('button', { name: 'Workflow stage actions', exact: true }) + .click(); + await page.getByRole('menuitem', { name: 'Group image output', exact: true }).click(); + await page.keyboard.press('Escape'); + const output = (await graph()).nodes.find((node) => node.data.label === 'Image Output')!; + const outputNode = page.getByTestId(`output-node-${output.id}`); + await expect(outputNode).toBeVisible(); + await expect(outputNode.getByTestId(`stage-preview-${output.id}`)).toBeVisible(); + expect(output.data.blockInstanceV2!.effectiveGraph.nodes.map((node) => node.data.action).sort()).toEqual([ + 'DecodeLatents', + 'Preview', + ]); + expect(await optionalStageApi(page)).toEqual(before); + await loader.locator('header').first().click(); + await page.getByRole('button', { name: 'Inspect node', exact: true }).click(); + await page + .getByRole('dialog', { name: 'Node inspector', exact: true }) + .getByRole('button', { name: 'Workflow stage actions', exact: true }) + .click(); + await page.getByRole('menuitem', { name: 'Group model setup', exact: true }).click(); + await page.keyboard.press('Escape'); + const setup = (await graph()).nodes.find((node) => node.data.label === 'Model Setup')!; + const setupNode = page.getByTestId(`setup-node-${setup.id}`); + await expect(setupNode).toBeVisible(); + expect(setup.data.blockInstanceV2!.effectiveGraph.nodes.map((node) => node.data.action).sort()).toEqual([ + 'Lora', + 'ModelsLoader', + ]); + expect(await optionalStageApi(page)).toEqual(before); + await expect(setupNode.getByRole('button', { name: 'Expand block', exact: true })).toHaveCount(0); + await setupNode.getByRole('button', { name: 'Model Setup options', exact: true }).click(); + await page.getByRole('menuitem', { name: 'Inspect implementation', exact: true }).click(); + const implementation = page.getByRole('dialog', { name: 'Model Setup implementation', exact: true }); + await expect(implementation.getByRole('heading', { name: 'Load Models', exact: true })).toBeVisible(); + await implementation.getByRole('button', { name: 'Close', exact: true }).click(); + const starters = await operationStarterFixtures(); + await page.route('**/operations/starter', (route) => { + const request = route.request().postDataJSON(); + const starter = starters.find((item) => item.pipelineClass === request.pipelineClass && item.task === request.task); + return route.fulfill({ status: starter ? 200 : 400, json: starter ?? { error: 'Unknown fixture task' } }); + }); + await setupNode.getByRole('button', { name: 'Change model / task', exact: true }).click(); + await setupNode.getByLabel('Replacement task', { exact: true }).click(); + await page.getByRole('option', { name: 'image to image', exact: true }).click(); + await setupNode.getByRole('button', { name: 'Preview model / task change', exact: true }).click(); + const review = page.getByRole('dialog', { name: 'Review model / task change', exact: true }); + await expect(review.getByRole('heading', { name: 'Review model / task change', exact: true })).toBeVisible(); + await review.getByRole('button', { name: 'Cancel', exact: true }).click(); + expect(await optionalStageApi(page)).toEqual(before); + await setupNode.getByRole('button', { name: 'Preview model / task change', exact: true }).click(); + await review.getByRole('button', { name: 'Apply graph change', exact: true }).click(); + await expect + .poll( + async () => + (await graph()).nodes + .find((node) => node.id === setup.id)! + .data.blockInstanceV2!.effectiveGraph.nodes.find((node) => node.data.action === 'ModelsLoader')!.data + .operationAuthoring!.operation.task, + ) + .toBe('image_to_image'); + expect( + (await graph()).nodes + .find((node) => node.data.label === 'Encode Inputs')! + .data.blockInstanceV2!.effectiveGraph.nodes.some( + (node) => node.data.operationAuthoring?.operation.nodeType === 'vae_encoder', + ), + ).toBe(true); + await page.locator('.react-flow__pane').click({ position: { x: 40, y: 140 } }); + await page.keyboard.press('Control+z'); + await expect.poll(() => optionalStageApi(page)).toEqual(before); + await setupNode.getByRole('button', { name: 'Model Setup options', exact: true }).click(); + await page.getByRole('menuitem', { name: 'Separate model setup stages', exact: true }).click(); + await expect(setupNode).toHaveCount(0); + expect(await optionalStageApi(page)).toEqual(before); + await page.locator('.react-flow__pane').click({ position: { x: 40, y: 140 } }); + await page.keyboard.press('Control+z'); + await expect(setupNode).toBeVisible(); + await outputNode.getByRole('button', { name: 'Image Output options', exact: true }).click(); + await page.getByRole('menuitem', { name: 'Save as reusable node…', exact: true }).click(); + const save = page.getByTestId(`save-user-block-choices-${output.id}`); + await save.getByLabel('Node name').fill('My decoded image output'); + await save.getByRole('button', { name: 'Save as new node', exact: true }).click(); + await expect(save).toHaveCount(0); + expect(await optionalStageApi(page)).toEqual(before); + await page.reload({ waitUntil: 'domcontentloaded' }); + await expect(page.getByTestId(`setup-node-${setup.id}`)).toBeVisible(); + await expect(page.getByTestId(`output-node-${output.id}`)).toBeVisible(); + expect(await optionalStageApi(page)).toEqual(before); +}); + +test('optional Prepare Mask keeps the exact outpaint source, canvas, mask and geometry across edit, separate and reload', async ({ + page, +}) => { + await openOptionalStageTemplate(page, 'flux_fill_outpaint', 'fill outpaint'); + // Setup an existing, task-correct ordinary outpaint composition. The current + // Gallery starter intentionally has separate image/mask loaders; this case + // verifies grouping/edit/history for a graph already using the registered + // canvas utility, not a claim that Gallery creates mask preprocessing. + await page.evaluate(async () => { + const { useFlowStore } = await import('/src/stores/useFlowStore.ts'); + const { useNodesStore } = await import('/src/stores/useNodeStore.ts'); + const { createNodeFromRegistry } = await import('/src/workflow/nodeFactory.ts'); + const { prepareWorkflowForManualInsertion } = await import('/src/studio/manualGraphInsertion.ts'); + const graph = useFlowStore.getState().toObject(); + const consumer = graph.nodes.find( + (node) => + node.data.operationAuthoring?.operation.task === 'outpaint' && + node.data.params.image && + node.data.params.mask_image, + )!; + if (!consumer) + throw new Error( + `Missing declared masked consumer: ${JSON.stringify(graph.nodes.map((node) => ({ module: node.data.module, action: node.data.action, task: node.data.operationAuthoring?.operation.task, fields: Object.keys(node.data.params) })))}`, + ); + const image = graph.edges.find((edge) => edge.target === consumer.id && edge.targetHandle === 'image')!; + const mask = graph.edges.find((edge) => edge.target === consumer.id && edge.targetHandle === 'mask_image')!; + const canvas = createNodeFromRegistry( + 'modules.DiffusersImage.OutpaintCanvas', + useNodesStore.getState().nodesRegistry, + { x: -300, y: 400 }, + ); + if (!canvas || !image || !mask) throw new Error('Missing exact registered outpaint fixture'); + for (const [field, value] of Object.entries({ + width: 1536, + height: 1024, + left: 128, + right: 128, + top: 0, + bottom: 0, + overlap: 24, + feather: 8, + })) + canvas.data.params[field].value = value; + consumer.data.params.width.isInput = true; + consumer.data.params.height.isInput = true; + const edges = graph.edges.filter((edge) => edge.id !== image.id && edge.id !== mask.id); + if (edges.some((edge) => edge.source === mask.source || edge.target === mask.source)) + throw new Error('Mask fixture has another consumer'); + edges.push({ + id: 'mask-source-canvas', + source: image.source, + sourceHandle: image.sourceHandle, + target: canvas.id, + targetHandle: 'image', + }); + for (const [output, input] of [ + ['canvas', 'image'], + ['mask_image', 'mask_image'], + ['width_out', 'width'], + ['height_out', 'height'], + ]) + edges.push({ + id: `mask-canvas-${input}`, + source: canvas.id, + sourceHandle: output, + target: consumer.id, + targetHandle: input, + }); + prepareWorkflowForManualInsertion(); + useFlowStore + .getState() + .replaceGraph({ nodes: [...graph.nodes.filter((node) => node.id !== mask.source), canvas], edges }); + }); + await page.getByRole('button', { name: 'Arrange graph', exact: true }).click(); + const graph = () => page.evaluate(() => window.__MODIFF_E2E__!.exportWorkflowGraph()); + const before = await optionalStageApi(page); + const owner = (await graph()).nodes.find((node) => node.data.action === 'LoadPipeline')!; + const loader = page.locator(`.react-flow__node[data-id="${owner.id}"]`); + await loader.locator('header').first().click(); + await page.getByRole('button', { name: 'Inspect node', exact: true }).click(); + await page + .getByRole('dialog', { name: 'Node inspector', exact: true }) + .getByRole('button', { name: 'Workflow stage actions', exact: true }) + .click(); + await expect(page.getByRole('menuitem', { name: 'Group image output', exact: true })).toHaveCount(0); + await page.getByRole('menuitem', { name: 'Group mask preparation', exact: true }).click(); + await expect + .poll(async () => { + if ((await graph()).nodes.some((node) => node.data.label === 'Prepare Mask')) return 'grouped'; + return ( + ( + await page.getByRole('dialog', { name: 'Node inspector', exact: true }).getByRole('alert').allTextContents() + ).join('; ') || 'waiting' + ); + }) + .toBe('grouped'); + await page.keyboard.press('Escape'); + const prepared = (await graph()).nodes.find((node) => node.data.label === 'Prepare Mask')!; + const node = page.getByTestId(`mask-node-${prepared.id}`); + await expect(node).toBeVisible(); + expect(prepared.data.blockInstanceV2!.effectiveGraph.nodes.map((node) => node.data.action).sort()).toEqual([ + 'Load', + 'OutpaintCanvas', + ]); + expect(await optionalStageApi(page)).toEqual(before); + const consumer = (await graph()).nodes.find( + (node) => + node.data.operationAuthoring?.operation.task === 'outpaint' && + node.data.params.image && + node.data.params.mask_image, + )!; + const consumerKey = `${consumer.data.module}.${consumer.data.action}`; + const feather = node.getByLabel(/^Mask feather$/i); + await feather.fill('0'); + await feather.press('Enter'); + await expect(feather).toHaveValue('0'); + const edited = await optionalStageApi(page); + expect(edited['modules.DiffusersImage.OutpaintCanvas'].params.feather.value).toBe('0'); + expect(edited[consumerKey].params.mask_image.sourceKey).toBe('mask_image'); + expect(edited[consumerKey].params.width.sourceKey).toBe('width_out'); + expect(edited[consumerKey].params.height.sourceKey).toBe('height_out'); + await node.getByRole('button', { name: 'Prepare Mask options', exact: true }).click(); + await page.getByRole('menuitem', { name: 'Separate mask preparation stages', exact: true }).click(); + await expect(node).toHaveCount(0); + expect(await optionalStageApi(page)).toEqual(edited); + await page.locator('.react-flow__pane').click({ position: { x: 40, y: 140 } }); + await page.keyboard.press('Control+z'); + await expect(node).toBeVisible(); + await expect(feather).toHaveValue('0'); + await page.reload({ waitUntil: 'domcontentloaded' }); + await expect(node).toBeVisible(); + await expect(feather).toHaveValue('0'); + expect(await optionalStageApi(page)).toEqual(edited); +}); + +test('optional declared component bundle preserves Qwen stages, controls, breakout, Undo and reload', async ({ + page, +}) => { + await openOptionalStageTemplate(page, 'qwen_text_rendering', 'qwen', false); + const graph = () => page.evaluate(() => window.__MODIFF_E2E__!.exportWorkflowGraph()); + const original = await graph(); + const before = await optionalStageApi(page); + const owner = original.nodes.find((node) => node.data.action === 'ModelsLoader')!; + const loader = page.locator(`.react-flow__node[data-id="${owner.id}"]`); + const menu = async () => { + await loader.locator('header').first().click(); + await page.getByRole('button', { name: 'Inspect node', exact: true }).click(); + await page + .getByRole('dialog', { name: 'Node inspector', exact: true }) + .getByRole('button', { name: 'Workflow stage actions', exact: true }) + .click(); + }; + await menu(); + await page.getByRole('menuitem', { name: 'Use component bundle', exact: true }).click(); + await page.keyboard.press('Escape'); + const bundled = await graph(); + expect(bundled.nodes.map((node) => node.id).sort()).toEqual(original.nodes.map((node) => node.id).sort()); + expect(bundled.edges.length).toBe(original.edges.length - 1); + const api = await optionalStageApi(page); + for (const key of [ + 'modules.ModularDiffusers.EncodePrompt', + 'modules.ModularDiffusers.Denoise', + 'modules.ModularDiffusers.DecodeLatents', + ]) { + expect(api[key].params.pipeline_components.sourceId).toBe('modules.ModularDiffusers.ModelsLoader'); + expect(api[key].params.pipeline_components.sourceKey).toBe('pipeline_components'); + } + expect(api['modules.ModularDiffusers.EncodePrompt'].params.prompt).toEqual( + before['modules.ModularDiffusers.EncodePrompt'].params.prompt, + ); + expect(api['modules.ModularDiffusers.Guider']).toEqual(before['modules.ModularDiffusers.Guider']); + expect(api['modules.ModularDiffusers.Denoise'].params.seed).toEqual( + before['modules.ModularDiffusers.Denoise'].params.seed, + ); + await menu(); + await page.getByRole('menuitem', { name: 'Expose components', exact: true }).click(); + await page.keyboard.press('Escape'); + expect(await optionalStageApi(page)).toEqual(before); + await page.locator('.react-flow__pane').click({ position: { x: 40, y: 140 } }); + await page.keyboard.press('Control+z'); + await expect.poll(() => optionalStageApi(page)).toEqual(api); + await page.reload({ waitUntil: 'domcontentloaded' }); + await page.waitForFunction(() => Boolean(window.__MODIFF_E2E__)); + await expect.poll(() => optionalStageApi(page)).toEqual(api); + await menu(); + await expect(page.getByRole('menuitem', { name: 'Expose components', exact: true })).toBeVisible(); +}); + +for (const templateId of [ + 'qwen_inpaint_object_replace', + 'qwen_inpaint_mask_draft', + 'qwen_outpaint_aspect_template', + 'qwen_outpaint_draft', +] as const) + test(`Qwen Gallery ${templateId} preserves its selected stages and exact inputs through export, normal import and refresh`, async ({ + page, + }) => { + await openOptionalStageTemplate(page, templateId, 'qwen', false); + const api = () => + page.evaluate(async () => { + const sid = 'qwen-gallery-hydration'; + window.__MODIFF_E2E__!.setWebsocketConnection({ sid, isConnected: true }); + const { useFlowStore } = await import('/src/stores/useFlowStore.ts'); + return useFlowStore.getState().exportGraph(sid, undefined, { randomizeSeeds: false }); + }); + const before = await api(); + const selection = IMAGE_TEMPLATE_EXECUTION_SELECTIONS[templateId]!; + const executable = Object.values(before.nodes); + const form = await page.evaluate(() => window.__MODIFF_E2E__!.getState().studio.form); + if (selection.implementation === 'native_stages') { + for (const action of ['ModelsLoader', 'EncodePrompt', 'ImageEncode', 'Denoise', 'DecodeLatents', 'Guider']) + expect( + executable.filter((node) => node.module === 'modules.ModularDiffusers' && node.action === action), + ).toHaveLength(1); + expect(executable.some((node) => ['LoadPipeline', 'Inpaint'].includes(node.action))).toBe(false); + const owner = executable.find((node) => node.action === 'ModelsLoader')!; + const encode = executable.find((node) => node.action === 'ImageEncode')!; + const prompt = executable.find((node) => node.action === 'EncodePrompt')!; + const denoise = executable.find((node) => node.action === 'Denoise')!; + expect(owner.params.inpaint_compatibility.value).toBe('whole_v1'); + expect(encode.params.inpaint_compatibility.value).toBe('whole_v1'); + expect([denoise.params.width.value, denoise.params.height.value]).toEqual([form.width, form.height]); + expect(denoise.params.num_inference_steps.value).toBe(form.steps); + expect(denoise.params.strength.value).toBe(form.strength); + expect(prompt.params.prompt.value).toBe(form.prompt); + expect(prompt.params.negative_prompt.value).toBe(form.negativePrompt); + if (templateId.startsWith('qwen_outpaint_')) { + const canvasId = Object.keys(before.nodes).find((id) => before.nodes[id].action === 'OutpaintCanvas')!; + const canvas = before.nodes[canvasId]; + expect(canvas).toBeTruthy(); + expect([canvas.params.width.value, canvas.params.height.value]).toEqual([form.width, form.height]); + expect(encode.params.image).toMatchObject({ sourceId: canvasId, sourceKey: 'canvas' }); + expect(encode.params.mask_image).toMatchObject({ sourceId: canvasId, sourceKey: 'mask_image' }); + expect(prompt.params.image).toMatchObject({ sourceId: canvasId, sourceKey: 'canvas' }); + } + } else { + expect(selection.implementation).toBe('whole_pipeline'); + expect(executable.some((node) => node.action === 'LoadPipeline')).toBe(true); + } + const foreignSockets = await page.evaluate(async () => { + const [{ useFlowStore }, runtime, { operationAuthoring }] = await Promise.all([ + import('/src/stores/useFlowStore.ts'), + import('/src/studio/blockRuntimeV2.ts'), + import('/src/workflow/operationAuthoringHint.ts'), + ]); + const graph = useFlowStore.getState().toObject(); + return runtime + .expandBlockGraphV2ForExecution(graph.nodes, graph.edges) + .nodes.filter((node) => { + const operation = operationAuthoring(node)?.operation; + return ( + operation && + Object.hasOwn(node.data.params, 'pipeline_components') && + !operation.ports.some((port) => port.name === 'pipeline_components') + ); + }) + .map((node) => `${node.data.module}.${node.data.action}`); + }); + expect(foreignSockets).toEqual([]); + await page.getByTestId('topbar-export').click(); + const downloadPromise = page.waitForEvent('download'); + await page.getByTestId('topbar-export-workflow-package').click(); + const download = await downloadPromise; + const downloadedPath = await download.path(); + expect(downloadedPath).toBeTruthy(); + const packageBytes = await fs.readFile(downloadedPath!); + const workflowPackage = JSON.parse(packageBytes.toString('utf8')) as { apiGraph: ApiGraphExport }; + expect(workflowPackage.apiGraph.nodes).toEqual(before.nodes); + await page.getByTestId('left-tab-assets').click(); + await page.getByTestId('left-open-gallery-library').click(); + await expect(page.getByRole('heading', { name: 'Output Gallery', exact: true })).toBeVisible(); + await page.getByTestId('gallery-import-workflow-input').setInputFiles({ + name: `${templateId}.json`, + mimeType: 'application/json', + buffer: packageBytes, + }); + await page.waitForFunction(() => { + const state = window.__MODIFF_E2E__!.getState().studio; + return ( + state.canvasTransition === null && + state.workflowTabs.find((tab: { id: string }) => tab.id === state.activeWorkflowTabId)?.source === 'import' + ); + }); + await expect.poll(api).toEqual(before); + await page.reload({ waitUntil: 'domcontentloaded' }); + await page.waitForFunction(() => Boolean(window.__MODIFF_E2E__)); + await expect.poll(api).toEqual(before); + }); diff --git a/tests/fixtures/guidance-control-contract.v1.json b/tests/fixtures/guidance-control-contract.v1.json new file mode 100644 index 00000000..ee2d4fe6 --- /dev/null +++ b/tests/fixtures/guidance-control-contract.v1.json @@ -0,0 +1,23652 @@ +{ + "schemaVersion": 1, + "contracts": [ + { + "pipelineClass": "StableDiffusionXLModularPipeline", + "task": "text_to_image", + "operationId": "diffusion.guidance", + "nodeKey": "modules.ModularDiffusers.Guider", + "nodeType": "guidance", + "blockName": null, + "decomposition": "bundle", + "support": "declared", + "ports": [ + { + "name": "model_type", + "semanticName": "model_type", + "direction": "input", + "roles": ["value"], + "types": ["string"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "guider", + "semanticName": "guider", + "direction": "input", + "roles": ["value"], + "types": ["string"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [], + "control": { + "technique": "classifier_free", + "parameter": "technique", + "compatibilityScope": "diffusers.classifier_free.v1", + "scaleMeaning": "cfg_prediction_mix", + "enabled": "boolean_field", + "enabledField": "enabled", + "formulation": "boolean_field", + "formulationField": "use_original_formulation", + "selectorField": "guider", + "selectorValue": "ClassifierFreeGuidance", + "negativeConditioning": "pipeline_scoped_when_enabled", + "negativeConditioningScope": "StableDiffusionXLModularPipeline" + } + } + }, + { + "name": "guidance_scale", + "semanticName": "guidance_scale", + "direction": "input", + "roles": ["value"], + "types": ["float"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [], + "control": { + "technique": "classifier_free", + "parameter": "scale", + "compatibilityScope": "diffusers.classifier_free.v1", + "scaleMeaning": "cfg_prediction_mix", + "enabled": "boolean_field", + "enabledField": "enabled", + "formulation": "boolean_field", + "formulationField": "use_original_formulation", + "selectorField": "guider", + "selectorValue": "ClassifierFreeGuidance", + "negativeConditioning": "pipeline_scoped_when_enabled", + "negativeConditioningScope": "StableDiffusionXLModularPipeline" + } + } + }, + { + "name": "guidance_rescale", + "semanticName": "guidance_rescale", + "direction": "input", + "roles": ["value"], + "types": ["float"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [], + "control": { + "technique": "classifier_free", + "parameter": "rescale", + "compatibilityScope": "diffusers.classifier_free.v1", + "scaleMeaning": "cfg_prediction_mix", + "enabled": "boolean_field", + "enabledField": "enabled", + "formulation": "boolean_field", + "formulationField": "use_original_formulation", + "selectorField": "guider", + "selectorValue": "ClassifierFreeGuidance", + "negativeConditioning": "pipeline_scoped_when_enabled", + "negativeConditioningScope": "StableDiffusionXLModularPipeline" + } + } + }, + { + "name": "use_original_formulation", + "semanticName": "use_original_formulation", + "direction": "input", + "roles": ["value"], + "types": ["boolean"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [], + "control": { + "technique": "classifier_free", + "parameter": "formulation", + "compatibilityScope": "diffusers.classifier_free.v1", + "scaleMeaning": "cfg_prediction_mix", + "enabled": "boolean_field", + "enabledField": "enabled", + "formulation": "boolean_field", + "formulationField": "use_original_formulation", + "selectorField": "guider", + "selectorValue": "ClassifierFreeGuidance", + "negativeConditioning": "pipeline_scoped_when_enabled", + "negativeConditioningScope": "StableDiffusionXLModularPipeline" + } + } + }, + { + "name": "enabled", + "semanticName": "enabled", + "direction": "input", + "roles": ["value"], + "types": ["boolean"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [], + "control": { + "technique": "classifier_free", + "parameter": "enabled", + "compatibilityScope": "diffusers.classifier_free.v1", + "scaleMeaning": "cfg_prediction_mix", + "enabled": "boolean_field", + "enabledField": "enabled", + "formulation": "boolean_field", + "formulationField": "use_original_formulation", + "selectorField": "guider", + "selectorValue": "ClassifierFreeGuidance", + "negativeConditioning": "pipeline_scoped_when_enabled", + "negativeConditioningScope": "StableDiffusionXLModularPipeline" + } + } + }, + { + "name": "start", + "semanticName": "start", + "direction": "input", + "roles": ["value"], + "types": ["float"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [], + "control": { + "technique": "classifier_free", + "parameter": "start", + "compatibilityScope": "diffusers.classifier_free.v1", + "scaleMeaning": "cfg_prediction_mix", + "enabled": "boolean_field", + "enabledField": "enabled", + "formulation": "boolean_field", + "formulationField": "use_original_formulation", + "selectorField": "guider", + "selectorValue": "ClassifierFreeGuidance", + "negativeConditioning": "pipeline_scoped_when_enabled", + "negativeConditioningScope": "StableDiffusionXLModularPipeline" + } + } + }, + { + "name": "stop", + "semanticName": "stop", + "direction": "input", + "roles": ["value"], + "types": ["float"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [], + "control": { + "technique": "classifier_free", + "parameter": "stop", + "compatibilityScope": "diffusers.classifier_free.v1", + "scaleMeaning": "cfg_prediction_mix", + "enabled": "boolean_field", + "enabledField": "enabled", + "formulation": "boolean_field", + "formulationField": "use_original_formulation", + "selectorField": "guider", + "selectorValue": "ClassifierFreeGuidance", + "negativeConditioning": "pipeline_scoped_when_enabled", + "negativeConditioningScope": "StableDiffusionXLModularPipeline" + } + } + }, + { + "name": "guider_out", + "semanticName": "guider_out", + "direction": "output", + "roles": ["component"], + "types": ["custom_guider"], + "required": false, + "hidden": false, + "semantics": { + "kind": "component", + "scope": "StableDiffusionXLModularPipeline", + "state": null, + "owner": "same_loader", + "members": [] + } + }, + { + "name": "layers_config", + "semanticName": "layers_config", + "direction": "input", + "roles": ["value"], + "types": ["layers_config"], + "required": false, + "hidden": false, + "semantics": { + "kind": "opaque", + "scope": "StableDiffusionXLModularPipeline", + "state": null, + "owner": "none", + "members": [] + } + } + ], + "workflowId": "text2image", + "binding": { + "values": { + "model_type": "StableDiffusionXLModularPipeline" + }, + "pipelineClass": "StableDiffusionXLModularPipeline" + } + }, + { + "pipelineClass": "QwenImageModularPipeline", + "task": "text_to_image", + "operationId": "diffusion.guidance", + "nodeKey": "modules.ModularDiffusers.Guider", + "nodeType": "guidance", + "blockName": null, + "decomposition": "bundle", + "support": "declared", + "ports": [ + { + "name": "model_type", + "semanticName": "model_type", + "direction": "input", + "roles": ["value"], + "types": ["string"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "guider", + "semanticName": "guider", + "direction": "input", + "roles": ["value"], + "types": ["string"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [], + "control": { + "technique": "classifier_free", + "parameter": "technique", + "compatibilityScope": "diffusers.qwen.normalized_cfg.v1", + "scaleMeaning": "cfg_prediction_mix", + "enabled": "boolean_field", + "enabledField": "enabled", + "formulation": "boolean_field", + "formulationField": "use_original_formulation", + "selectorField": "guider", + "selectorValue": "ClassifierFreeGuidance", + "negativeConditioning": "pipeline_scoped_when_enabled", + "negativeConditioningScope": "QwenImageModularPipeline" + } + } + }, + { + "name": "guidance_scale", + "semanticName": "guidance_scale", + "direction": "input", + "roles": ["value"], + "types": ["float"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [], + "control": { + "technique": "classifier_free", + "parameter": "scale", + "compatibilityScope": "diffusers.qwen.normalized_cfg.v1", + "scaleMeaning": "cfg_prediction_mix", + "enabled": "boolean_field", + "enabledField": "enabled", + "formulation": "boolean_field", + "formulationField": "use_original_formulation", + "selectorField": "guider", + "selectorValue": "ClassifierFreeGuidance", + "negativeConditioning": "pipeline_scoped_when_enabled", + "negativeConditioningScope": "QwenImageModularPipeline" + } + } + }, + { + "name": "guidance_rescale", + "semanticName": "guidance_rescale", + "direction": "input", + "roles": ["value"], + "types": ["float"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [], + "control": { + "technique": "classifier_free", + "parameter": "rescale", + "compatibilityScope": "diffusers.qwen.normalized_cfg.v1", + "scaleMeaning": "cfg_prediction_mix", + "enabled": "boolean_field", + "enabledField": "enabled", + "formulation": "boolean_field", + "formulationField": "use_original_formulation", + "selectorField": "guider", + "selectorValue": "ClassifierFreeGuidance", + "negativeConditioning": "pipeline_scoped_when_enabled", + "negativeConditioningScope": "QwenImageModularPipeline" + } + } + }, + { + "name": "use_original_formulation", + "semanticName": "use_original_formulation", + "direction": "input", + "roles": ["value"], + "types": ["boolean"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [], + "control": { + "technique": "classifier_free", + "parameter": "formulation", + "compatibilityScope": "diffusers.qwen.normalized_cfg.v1", + "scaleMeaning": "cfg_prediction_mix", + "enabled": "boolean_field", + "enabledField": "enabled", + "formulation": "boolean_field", + "formulationField": "use_original_formulation", + "selectorField": "guider", + "selectorValue": "ClassifierFreeGuidance", + "negativeConditioning": "pipeline_scoped_when_enabled", + "negativeConditioningScope": "QwenImageModularPipeline" + } + } + }, + { + "name": "enabled", + "semanticName": "enabled", + "direction": "input", + "roles": ["value"], + "types": ["boolean"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [], + "control": { + "technique": "classifier_free", + "parameter": "enabled", + "compatibilityScope": "diffusers.qwen.normalized_cfg.v1", + "scaleMeaning": "cfg_prediction_mix", + "enabled": "boolean_field", + "enabledField": "enabled", + "formulation": "boolean_field", + "formulationField": "use_original_formulation", + "selectorField": "guider", + "selectorValue": "ClassifierFreeGuidance", + "negativeConditioning": "pipeline_scoped_when_enabled", + "negativeConditioningScope": "QwenImageModularPipeline" + } + } + }, + { + "name": "start", + "semanticName": "start", + "direction": "input", + "roles": ["value"], + "types": ["float"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [], + "control": { + "technique": "classifier_free", + "parameter": "start", + "compatibilityScope": "diffusers.qwen.normalized_cfg.v1", + "scaleMeaning": "cfg_prediction_mix", + "enabled": "boolean_field", + "enabledField": "enabled", + "formulation": "boolean_field", + "formulationField": "use_original_formulation", + "selectorField": "guider", + "selectorValue": "ClassifierFreeGuidance", + "negativeConditioning": "pipeline_scoped_when_enabled", + "negativeConditioningScope": "QwenImageModularPipeline" + } + } + }, + { + "name": "stop", + "semanticName": "stop", + "direction": "input", + "roles": ["value"], + "types": ["float"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [], + "control": { + "technique": "classifier_free", + "parameter": "stop", + "compatibilityScope": "diffusers.qwen.normalized_cfg.v1", + "scaleMeaning": "cfg_prediction_mix", + "enabled": "boolean_field", + "enabledField": "enabled", + "formulation": "boolean_field", + "formulationField": "use_original_formulation", + "selectorField": "guider", + "selectorValue": "ClassifierFreeGuidance", + "negativeConditioning": "pipeline_scoped_when_enabled", + "negativeConditioningScope": "QwenImageModularPipeline" + } + } + }, + { + "name": "guider_out", + "semanticName": "guider_out", + "direction": "output", + "roles": ["component"], + "types": ["custom_guider"], + "required": false, + "hidden": false, + "semantics": { + "kind": "component", + "scope": "QwenImageModularPipeline", + "state": null, + "owner": "same_loader", + "members": [] + } + }, + { + "name": "layers_config", + "semanticName": "layers_config", + "direction": "input", + "roles": ["value"], + "types": ["layers_config"], + "required": false, + "hidden": false, + "semantics": { + "kind": "opaque", + "scope": "QwenImageModularPipeline", + "state": null, + "owner": "none", + "members": [] + } + } + ], + "workflowId": "text2image", + "binding": { + "values": { + "model_type": "QwenImageModularPipeline" + }, + "pipelineClass": "QwenImageModularPipeline" + } + }, + { + "pipelineClass": "QwenImageEditModularPipeline", + "task": "edit_image", + "operationId": "diffusion.guidance", + "nodeKey": "modules.ModularDiffusers.Guider", + "nodeType": "guidance", + "blockName": null, + "decomposition": "bundle", + "support": "declared", + "ports": [ + { + "name": "model_type", + "semanticName": "model_type", + "direction": "input", + "roles": ["value"], + "types": ["string"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "guider", + "semanticName": "guider", + "direction": "input", + "roles": ["value"], + "types": ["string"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [], + "control": { + "technique": "classifier_free", + "parameter": "technique", + "compatibilityScope": "diffusers.qwen.normalized_cfg.v1", + "scaleMeaning": "cfg_prediction_mix", + "enabled": "boolean_field", + "enabledField": "enabled", + "formulation": "boolean_field", + "formulationField": "use_original_formulation", + "selectorField": "guider", + "selectorValue": "ClassifierFreeGuidance", + "negativeConditioning": "pipeline_scoped_when_enabled", + "negativeConditioningScope": "QwenImageEditModularPipeline" + } + } + }, + { + "name": "guidance_scale", + "semanticName": "guidance_scale", + "direction": "input", + "roles": ["value"], + "types": ["float"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [], + "control": { + "technique": "classifier_free", + "parameter": "scale", + "compatibilityScope": "diffusers.qwen.normalized_cfg.v1", + "scaleMeaning": "cfg_prediction_mix", + "enabled": "boolean_field", + "enabledField": "enabled", + "formulation": "boolean_field", + "formulationField": "use_original_formulation", + "selectorField": "guider", + "selectorValue": "ClassifierFreeGuidance", + "negativeConditioning": "pipeline_scoped_when_enabled", + "negativeConditioningScope": "QwenImageEditModularPipeline" + } + } + }, + { + "name": "guidance_rescale", + "semanticName": "guidance_rescale", + "direction": "input", + "roles": ["value"], + "types": ["float"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [], + "control": { + "technique": "classifier_free", + "parameter": "rescale", + "compatibilityScope": "diffusers.qwen.normalized_cfg.v1", + "scaleMeaning": "cfg_prediction_mix", + "enabled": "boolean_field", + "enabledField": "enabled", + "formulation": "boolean_field", + "formulationField": "use_original_formulation", + "selectorField": "guider", + "selectorValue": "ClassifierFreeGuidance", + "negativeConditioning": "pipeline_scoped_when_enabled", + "negativeConditioningScope": "QwenImageEditModularPipeline" + } + } + }, + { + "name": "use_original_formulation", + "semanticName": "use_original_formulation", + "direction": "input", + "roles": ["value"], + "types": ["boolean"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [], + "control": { + "technique": "classifier_free", + "parameter": "formulation", + "compatibilityScope": "diffusers.qwen.normalized_cfg.v1", + "scaleMeaning": "cfg_prediction_mix", + "enabled": "boolean_field", + "enabledField": "enabled", + "formulation": "boolean_field", + "formulationField": "use_original_formulation", + "selectorField": "guider", + "selectorValue": "ClassifierFreeGuidance", + "negativeConditioning": "pipeline_scoped_when_enabled", + "negativeConditioningScope": "QwenImageEditModularPipeline" + } + } + }, + { + "name": "enabled", + "semanticName": "enabled", + "direction": "input", + "roles": ["value"], + "types": ["boolean"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [], + "control": { + "technique": "classifier_free", + "parameter": "enabled", + "compatibilityScope": "diffusers.qwen.normalized_cfg.v1", + "scaleMeaning": "cfg_prediction_mix", + "enabled": "boolean_field", + "enabledField": "enabled", + "formulation": "boolean_field", + "formulationField": "use_original_formulation", + "selectorField": "guider", + "selectorValue": "ClassifierFreeGuidance", + "negativeConditioning": "pipeline_scoped_when_enabled", + "negativeConditioningScope": "QwenImageEditModularPipeline" + } + } + }, + { + "name": "start", + "semanticName": "start", + "direction": "input", + "roles": ["value"], + "types": ["float"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [], + "control": { + "technique": "classifier_free", + "parameter": "start", + "compatibilityScope": "diffusers.qwen.normalized_cfg.v1", + "scaleMeaning": "cfg_prediction_mix", + "enabled": "boolean_field", + "enabledField": "enabled", + "formulation": "boolean_field", + "formulationField": "use_original_formulation", + "selectorField": "guider", + "selectorValue": "ClassifierFreeGuidance", + "negativeConditioning": "pipeline_scoped_when_enabled", + "negativeConditioningScope": "QwenImageEditModularPipeline" + } + } + }, + { + "name": "stop", + "semanticName": "stop", + "direction": "input", + "roles": ["value"], + "types": ["float"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [], + "control": { + "technique": "classifier_free", + "parameter": "stop", + "compatibilityScope": "diffusers.qwen.normalized_cfg.v1", + "scaleMeaning": "cfg_prediction_mix", + "enabled": "boolean_field", + "enabledField": "enabled", + "formulation": "boolean_field", + "formulationField": "use_original_formulation", + "selectorField": "guider", + "selectorValue": "ClassifierFreeGuidance", + "negativeConditioning": "pipeline_scoped_when_enabled", + "negativeConditioningScope": "QwenImageEditModularPipeline" + } + } + }, + { + "name": "guider_out", + "semanticName": "guider_out", + "direction": "output", + "roles": ["component"], + "types": ["custom_guider"], + "required": false, + "hidden": false, + "semantics": { + "kind": "component", + "scope": "QwenImageEditModularPipeline", + "state": null, + "owner": "same_loader", + "members": [] + } + }, + { + "name": "layers_config", + "semanticName": "layers_config", + "direction": "input", + "roles": ["value"], + "types": ["layers_config"], + "required": false, + "hidden": false, + "semantics": { + "kind": "opaque", + "scope": "QwenImageEditModularPipeline", + "state": null, + "owner": "none", + "members": [] + } + } + ], + "workflowId": "image_conditioned", + "binding": { + "values": { + "model_type": "QwenImageEditModularPipeline" + }, + "pipelineClass": "QwenImageEditModularPipeline" + } + }, + { + "pipelineClass": "QwenImageEditPlusModularPipeline", + "task": "edit_image", + "operationId": "diffusion.guidance", + "nodeKey": "modules.ModularDiffusers.Guider", + "nodeType": "guidance", + "blockName": null, + "decomposition": "bundle", + "support": "declared", + "ports": [ + { + "name": "model_type", + "semanticName": "model_type", + "direction": "input", + "roles": ["value"], + "types": ["string"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "guider", + "semanticName": "guider", + "direction": "input", + "roles": ["value"], + "types": ["string"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [], + "control": { + "technique": "classifier_free", + "parameter": "technique", + "compatibilityScope": "diffusers.qwen.normalized_cfg.v1", + "scaleMeaning": "cfg_prediction_mix", + "enabled": "boolean_field", + "enabledField": "enabled", + "formulation": "boolean_field", + "formulationField": "use_original_formulation", + "selectorField": "guider", + "selectorValue": "ClassifierFreeGuidance", + "negativeConditioning": "pipeline_scoped_when_enabled", + "negativeConditioningScope": "QwenImageEditPlusModularPipeline" + } + } + }, + { + "name": "guidance_scale", + "semanticName": "guidance_scale", + "direction": "input", + "roles": ["value"], + "types": ["float"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [], + "control": { + "technique": "classifier_free", + "parameter": "scale", + "compatibilityScope": "diffusers.qwen.normalized_cfg.v1", + "scaleMeaning": "cfg_prediction_mix", + "enabled": "boolean_field", + "enabledField": "enabled", + "formulation": "boolean_field", + "formulationField": "use_original_formulation", + "selectorField": "guider", + "selectorValue": "ClassifierFreeGuidance", + "negativeConditioning": "pipeline_scoped_when_enabled", + "negativeConditioningScope": "QwenImageEditPlusModularPipeline" + } + } + }, + { + "name": "guidance_rescale", + "semanticName": "guidance_rescale", + "direction": "input", + "roles": ["value"], + "types": ["float"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [], + "control": { + "technique": "classifier_free", + "parameter": "rescale", + "compatibilityScope": "diffusers.qwen.normalized_cfg.v1", + "scaleMeaning": "cfg_prediction_mix", + "enabled": "boolean_field", + "enabledField": "enabled", + "formulation": "boolean_field", + "formulationField": "use_original_formulation", + "selectorField": "guider", + "selectorValue": "ClassifierFreeGuidance", + "negativeConditioning": "pipeline_scoped_when_enabled", + "negativeConditioningScope": "QwenImageEditPlusModularPipeline" + } + } + }, + { + "name": "use_original_formulation", + "semanticName": "use_original_formulation", + "direction": "input", + "roles": ["value"], + "types": ["boolean"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [], + "control": { + "technique": "classifier_free", + "parameter": "formulation", + "compatibilityScope": "diffusers.qwen.normalized_cfg.v1", + "scaleMeaning": "cfg_prediction_mix", + "enabled": "boolean_field", + "enabledField": "enabled", + "formulation": "boolean_field", + "formulationField": "use_original_formulation", + "selectorField": "guider", + "selectorValue": "ClassifierFreeGuidance", + "negativeConditioning": "pipeline_scoped_when_enabled", + "negativeConditioningScope": "QwenImageEditPlusModularPipeline" + } + } + }, + { + "name": "enabled", + "semanticName": "enabled", + "direction": "input", + "roles": ["value"], + "types": ["boolean"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [], + "control": { + "technique": "classifier_free", + "parameter": "enabled", + "compatibilityScope": "diffusers.qwen.normalized_cfg.v1", + "scaleMeaning": "cfg_prediction_mix", + "enabled": "boolean_field", + "enabledField": "enabled", + "formulation": "boolean_field", + "formulationField": "use_original_formulation", + "selectorField": "guider", + "selectorValue": "ClassifierFreeGuidance", + "negativeConditioning": "pipeline_scoped_when_enabled", + "negativeConditioningScope": "QwenImageEditPlusModularPipeline" + } + } + }, + { + "name": "start", + "semanticName": "start", + "direction": "input", + "roles": ["value"], + "types": ["float"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [], + "control": { + "technique": "classifier_free", + "parameter": "start", + "compatibilityScope": "diffusers.qwen.normalized_cfg.v1", + "scaleMeaning": "cfg_prediction_mix", + "enabled": "boolean_field", + "enabledField": "enabled", + "formulation": "boolean_field", + "formulationField": "use_original_formulation", + "selectorField": "guider", + "selectorValue": "ClassifierFreeGuidance", + "negativeConditioning": "pipeline_scoped_when_enabled", + "negativeConditioningScope": "QwenImageEditPlusModularPipeline" + } + } + }, + { + "name": "stop", + "semanticName": "stop", + "direction": "input", + "roles": ["value"], + "types": ["float"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [], + "control": { + "technique": "classifier_free", + "parameter": "stop", + "compatibilityScope": "diffusers.qwen.normalized_cfg.v1", + "scaleMeaning": "cfg_prediction_mix", + "enabled": "boolean_field", + "enabledField": "enabled", + "formulation": "boolean_field", + "formulationField": "use_original_formulation", + "selectorField": "guider", + "selectorValue": "ClassifierFreeGuidance", + "negativeConditioning": "pipeline_scoped_when_enabled", + "negativeConditioningScope": "QwenImageEditPlusModularPipeline" + } + } + }, + { + "name": "guider_out", + "semanticName": "guider_out", + "direction": "output", + "roles": ["component"], + "types": ["custom_guider"], + "required": false, + "hidden": false, + "semantics": { + "kind": "component", + "scope": "QwenImageEditPlusModularPipeline", + "state": null, + "owner": "same_loader", + "members": [] + } + }, + { + "name": "layers_config", + "semanticName": "layers_config", + "direction": "input", + "roles": ["value"], + "types": ["layers_config"], + "required": false, + "hidden": false, + "semantics": { + "kind": "opaque", + "scope": "QwenImageEditPlusModularPipeline", + "state": null, + "owner": "none", + "members": [] + } + } + ], + "workflowId": "default", + "binding": { + "values": { + "model_type": "QwenImageEditPlusModularPipeline" + }, + "pipelineClass": "QwenImageEditPlusModularPipeline" + } + }, + { + "pipelineClass": "QwenImageLayeredModularPipeline", + "task": "layer_decomposition", + "operationId": "diffusion.guidance", + "nodeKey": "modules.ModularDiffusers.Guider", + "nodeType": "guidance", + "blockName": null, + "decomposition": "bundle", + "support": "declared", + "ports": [ + { + "name": "model_type", + "semanticName": "model_type", + "direction": "input", + "roles": ["value"], + "types": ["string"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "guider", + "semanticName": "guider", + "direction": "input", + "roles": ["value"], + "types": ["string"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [], + "control": { + "technique": "classifier_free", + "parameter": "technique", + "compatibilityScope": "diffusers.qwen.normalized_cfg.v1", + "scaleMeaning": "cfg_prediction_mix", + "enabled": "boolean_field", + "enabledField": "enabled", + "formulation": "boolean_field", + "formulationField": "use_original_formulation", + "selectorField": "guider", + "selectorValue": "ClassifierFreeGuidance", + "negativeConditioning": "pipeline_scoped_when_enabled", + "negativeConditioningScope": "QwenImageLayeredModularPipeline" + } + } + }, + { + "name": "guidance_scale", + "semanticName": "guidance_scale", + "direction": "input", + "roles": ["value"], + "types": ["float"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [], + "control": { + "technique": "classifier_free", + "parameter": "scale", + "compatibilityScope": "diffusers.qwen.normalized_cfg.v1", + "scaleMeaning": "cfg_prediction_mix", + "enabled": "boolean_field", + "enabledField": "enabled", + "formulation": "boolean_field", + "formulationField": "use_original_formulation", + "selectorField": "guider", + "selectorValue": "ClassifierFreeGuidance", + "negativeConditioning": "pipeline_scoped_when_enabled", + "negativeConditioningScope": "QwenImageLayeredModularPipeline" + } + } + }, + { + "name": "guidance_rescale", + "semanticName": "guidance_rescale", + "direction": "input", + "roles": ["value"], + "types": ["float"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [], + "control": { + "technique": "classifier_free", + "parameter": "rescale", + "compatibilityScope": "diffusers.qwen.normalized_cfg.v1", + "scaleMeaning": "cfg_prediction_mix", + "enabled": "boolean_field", + "enabledField": "enabled", + "formulation": "boolean_field", + "formulationField": "use_original_formulation", + "selectorField": "guider", + "selectorValue": "ClassifierFreeGuidance", + "negativeConditioning": "pipeline_scoped_when_enabled", + "negativeConditioningScope": "QwenImageLayeredModularPipeline" + } + } + }, + { + "name": "use_original_formulation", + "semanticName": "use_original_formulation", + "direction": "input", + "roles": ["value"], + "types": ["boolean"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [], + "control": { + "technique": "classifier_free", + "parameter": "formulation", + "compatibilityScope": "diffusers.qwen.normalized_cfg.v1", + "scaleMeaning": "cfg_prediction_mix", + "enabled": "boolean_field", + "enabledField": "enabled", + "formulation": "boolean_field", + "formulationField": "use_original_formulation", + "selectorField": "guider", + "selectorValue": "ClassifierFreeGuidance", + "negativeConditioning": "pipeline_scoped_when_enabled", + "negativeConditioningScope": "QwenImageLayeredModularPipeline" + } + } + }, + { + "name": "enabled", + "semanticName": "enabled", + "direction": "input", + "roles": ["value"], + "types": ["boolean"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [], + "control": { + "technique": "classifier_free", + "parameter": "enabled", + "compatibilityScope": "diffusers.qwen.normalized_cfg.v1", + "scaleMeaning": "cfg_prediction_mix", + "enabled": "boolean_field", + "enabledField": "enabled", + "formulation": "boolean_field", + "formulationField": "use_original_formulation", + "selectorField": "guider", + "selectorValue": "ClassifierFreeGuidance", + "negativeConditioning": "pipeline_scoped_when_enabled", + "negativeConditioningScope": "QwenImageLayeredModularPipeline" + } + } + }, + { + "name": "start", + "semanticName": "start", + "direction": "input", + "roles": ["value"], + "types": ["float"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [], + "control": { + "technique": "classifier_free", + "parameter": "start", + "compatibilityScope": "diffusers.qwen.normalized_cfg.v1", + "scaleMeaning": "cfg_prediction_mix", + "enabled": "boolean_field", + "enabledField": "enabled", + "formulation": "boolean_field", + "formulationField": "use_original_formulation", + "selectorField": "guider", + "selectorValue": "ClassifierFreeGuidance", + "negativeConditioning": "pipeline_scoped_when_enabled", + "negativeConditioningScope": "QwenImageLayeredModularPipeline" + } + } + }, + { + "name": "stop", + "semanticName": "stop", + "direction": "input", + "roles": ["value"], + "types": ["float"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [], + "control": { + "technique": "classifier_free", + "parameter": "stop", + "compatibilityScope": "diffusers.qwen.normalized_cfg.v1", + "scaleMeaning": "cfg_prediction_mix", + "enabled": "boolean_field", + "enabledField": "enabled", + "formulation": "boolean_field", + "formulationField": "use_original_formulation", + "selectorField": "guider", + "selectorValue": "ClassifierFreeGuidance", + "negativeConditioning": "pipeline_scoped_when_enabled", + "negativeConditioningScope": "QwenImageLayeredModularPipeline" + } + } + }, + { + "name": "guider_out", + "semanticName": "guider_out", + "direction": "output", + "roles": ["component"], + "types": ["custom_guider"], + "required": false, + "hidden": false, + "semantics": { + "kind": "component", + "scope": "QwenImageLayeredModularPipeline", + "state": null, + "owner": "same_loader", + "members": [] + } + }, + { + "name": "layers_config", + "semanticName": "layers_config", + "direction": "input", + "roles": ["value"], + "types": ["layers_config"], + "required": false, + "hidden": false, + "semantics": { + "kind": "opaque", + "scope": "QwenImageLayeredModularPipeline", + "state": null, + "owner": "none", + "members": [] + } + } + ], + "workflowId": "default", + "binding": { + "values": { + "model_type": "QwenImageLayeredModularPipeline" + }, + "pipelineClass": "QwenImageLayeredModularPipeline" + } + }, + { + "pipelineClass": "ZImageModularPipeline", + "task": "text_to_image", + "operationId": "diffusion.guidance", + "nodeKey": "modules.ModularDiffusers.Guider", + "nodeType": "guidance", + "blockName": null, + "decomposition": "bundle", + "support": "declared", + "ports": [ + { + "name": "model_type", + "semanticName": "model_type", + "direction": "input", + "roles": ["value"], + "types": ["string"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "guider", + "semanticName": "guider", + "direction": "input", + "roles": ["value"], + "types": ["string"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [], + "control": { + "technique": "classifier_free", + "parameter": "technique", + "compatibilityScope": "diffusers.classifier_free.v1", + "scaleMeaning": "cfg_prediction_mix", + "enabled": "boolean_field", + "enabledField": "enabled", + "formulation": "boolean_field", + "formulationField": "use_original_formulation", + "selectorField": "guider", + "selectorValue": "ClassifierFreeGuidance", + "negativeConditioning": "pipeline_scoped_when_enabled", + "negativeConditioningScope": "ZImageModularPipeline" + } + } + }, + { + "name": "guidance_scale", + "semanticName": "guidance_scale", + "direction": "input", + "roles": ["value"], + "types": ["float"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [], + "control": { + "technique": "classifier_free", + "parameter": "scale", + "compatibilityScope": "diffusers.classifier_free.v1", + "scaleMeaning": "cfg_prediction_mix", + "enabled": "boolean_field", + "enabledField": "enabled", + "formulation": "boolean_field", + "formulationField": "use_original_formulation", + "selectorField": "guider", + "selectorValue": "ClassifierFreeGuidance", + "negativeConditioning": "pipeline_scoped_when_enabled", + "negativeConditioningScope": "ZImageModularPipeline" + } + } + }, + { + "name": "guidance_rescale", + "semanticName": "guidance_rescale", + "direction": "input", + "roles": ["value"], + "types": ["float"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [], + "control": { + "technique": "classifier_free", + "parameter": "rescale", + "compatibilityScope": "diffusers.classifier_free.v1", + "scaleMeaning": "cfg_prediction_mix", + "enabled": "boolean_field", + "enabledField": "enabled", + "formulation": "boolean_field", + "formulationField": "use_original_formulation", + "selectorField": "guider", + "selectorValue": "ClassifierFreeGuidance", + "negativeConditioning": "pipeline_scoped_when_enabled", + "negativeConditioningScope": "ZImageModularPipeline" + } + } + }, + { + "name": "use_original_formulation", + "semanticName": "use_original_formulation", + "direction": "input", + "roles": ["value"], + "types": ["boolean"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [], + "control": { + "technique": "classifier_free", + "parameter": "formulation", + "compatibilityScope": "diffusers.classifier_free.v1", + "scaleMeaning": "cfg_prediction_mix", + "enabled": "boolean_field", + "enabledField": "enabled", + "formulation": "boolean_field", + "formulationField": "use_original_formulation", + "selectorField": "guider", + "selectorValue": "ClassifierFreeGuidance", + "negativeConditioning": "pipeline_scoped_when_enabled", + "negativeConditioningScope": "ZImageModularPipeline" + } + } + }, + { + "name": "enabled", + "semanticName": "enabled", + "direction": "input", + "roles": ["value"], + "types": ["boolean"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [], + "control": { + "technique": "classifier_free", + "parameter": "enabled", + "compatibilityScope": "diffusers.classifier_free.v1", + "scaleMeaning": "cfg_prediction_mix", + "enabled": "boolean_field", + "enabledField": "enabled", + "formulation": "boolean_field", + "formulationField": "use_original_formulation", + "selectorField": "guider", + "selectorValue": "ClassifierFreeGuidance", + "negativeConditioning": "pipeline_scoped_when_enabled", + "negativeConditioningScope": "ZImageModularPipeline" + } + } + }, + { + "name": "start", + "semanticName": "start", + "direction": "input", + "roles": ["value"], + "types": ["float"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [], + "control": { + "technique": "classifier_free", + "parameter": "start", + "compatibilityScope": "diffusers.classifier_free.v1", + "scaleMeaning": "cfg_prediction_mix", + "enabled": "boolean_field", + "enabledField": "enabled", + "formulation": "boolean_field", + "formulationField": "use_original_formulation", + "selectorField": "guider", + "selectorValue": "ClassifierFreeGuidance", + "negativeConditioning": "pipeline_scoped_when_enabled", + "negativeConditioningScope": "ZImageModularPipeline" + } + } + }, + { + "name": "stop", + "semanticName": "stop", + "direction": "input", + "roles": ["value"], + "types": ["float"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [], + "control": { + "technique": "classifier_free", + "parameter": "stop", + "compatibilityScope": "diffusers.classifier_free.v1", + "scaleMeaning": "cfg_prediction_mix", + "enabled": "boolean_field", + "enabledField": "enabled", + "formulation": "boolean_field", + "formulationField": "use_original_formulation", + "selectorField": "guider", + "selectorValue": "ClassifierFreeGuidance", + "negativeConditioning": "pipeline_scoped_when_enabled", + "negativeConditioningScope": "ZImageModularPipeline" + } + } + }, + { + "name": "guider_out", + "semanticName": "guider_out", + "direction": "output", + "roles": ["component"], + "types": ["custom_guider"], + "required": false, + "hidden": false, + "semantics": { + "kind": "component", + "scope": "ZImageModularPipeline", + "state": null, + "owner": "same_loader", + "members": [] + } + }, + { + "name": "layers_config", + "semanticName": "layers_config", + "direction": "input", + "roles": ["value"], + "types": ["layers_config"], + "required": false, + "hidden": false, + "semantics": { + "kind": "opaque", + "scope": "ZImageModularPipeline", + "state": null, + "owner": "none", + "members": [] + } + } + ], + "workflowId": "text2image", + "binding": { + "values": { + "model_type": "ZImageModularPipeline" + }, + "pipelineClass": "ZImageModularPipeline" + } + }, + { + "pipelineClass": "FluxModularPipeline", + "task": "text_to_image", + "operationId": "diffusion.guidance", + "nodeKey": "modules.ModularDiffusers.Guider", + "nodeType": "guidance", + "blockName": null, + "decomposition": "bundle", + "support": "declared", + "ports": [ + { + "name": "model_type", + "semanticName": "model_type", + "direction": "input", + "roles": ["value"], + "types": ["string"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "guider", + "semanticName": "guider", + "direction": "input", + "roles": ["value"], + "types": ["string"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [], + "control": { + "technique": "classifier_free", + "parameter": "technique", + "compatibilityScope": "diffusers.classifier_free.v1", + "scaleMeaning": "cfg_prediction_mix", + "enabled": "boolean_field", + "enabledField": "enabled", + "formulation": "boolean_field", + "formulationField": "use_original_formulation", + "selectorField": "guider", + "selectorValue": "ClassifierFreeGuidance", + "negativeConditioning": "pipeline_scoped_when_enabled", + "negativeConditioningScope": "FluxModularPipeline" + } + } + }, + { + "name": "guidance_scale", + "semanticName": "guidance_scale", + "direction": "input", + "roles": ["value"], + "types": ["float"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [], + "control": { + "technique": "classifier_free", + "parameter": "scale", + "compatibilityScope": "diffusers.classifier_free.v1", + "scaleMeaning": "cfg_prediction_mix", + "enabled": "boolean_field", + "enabledField": "enabled", + "formulation": "boolean_field", + "formulationField": "use_original_formulation", + "selectorField": "guider", + "selectorValue": "ClassifierFreeGuidance", + "negativeConditioning": "pipeline_scoped_when_enabled", + "negativeConditioningScope": "FluxModularPipeline" + } + } + }, + { + "name": "guidance_rescale", + "semanticName": "guidance_rescale", + "direction": "input", + "roles": ["value"], + "types": ["float"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [], + "control": { + "technique": "classifier_free", + "parameter": "rescale", + "compatibilityScope": "diffusers.classifier_free.v1", + "scaleMeaning": "cfg_prediction_mix", + "enabled": "boolean_field", + "enabledField": "enabled", + "formulation": "boolean_field", + "formulationField": "use_original_formulation", + "selectorField": "guider", + "selectorValue": "ClassifierFreeGuidance", + "negativeConditioning": "pipeline_scoped_when_enabled", + "negativeConditioningScope": "FluxModularPipeline" + } + } + }, + { + "name": "use_original_formulation", + "semanticName": "use_original_formulation", + "direction": "input", + "roles": ["value"], + "types": ["boolean"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [], + "control": { + "technique": "classifier_free", + "parameter": "formulation", + "compatibilityScope": "diffusers.classifier_free.v1", + "scaleMeaning": "cfg_prediction_mix", + "enabled": "boolean_field", + "enabledField": "enabled", + "formulation": "boolean_field", + "formulationField": "use_original_formulation", + "selectorField": "guider", + "selectorValue": "ClassifierFreeGuidance", + "negativeConditioning": "pipeline_scoped_when_enabled", + "negativeConditioningScope": "FluxModularPipeline" + } + } + }, + { + "name": "enabled", + "semanticName": "enabled", + "direction": "input", + "roles": ["value"], + "types": ["boolean"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [], + "control": { + "technique": "classifier_free", + "parameter": "enabled", + "compatibilityScope": "diffusers.classifier_free.v1", + "scaleMeaning": "cfg_prediction_mix", + "enabled": "boolean_field", + "enabledField": "enabled", + "formulation": "boolean_field", + "formulationField": "use_original_formulation", + "selectorField": "guider", + "selectorValue": "ClassifierFreeGuidance", + "negativeConditioning": "pipeline_scoped_when_enabled", + "negativeConditioningScope": "FluxModularPipeline" + } + } + }, + { + "name": "start", + "semanticName": "start", + "direction": "input", + "roles": ["value"], + "types": ["float"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [], + "control": { + "technique": "classifier_free", + "parameter": "start", + "compatibilityScope": "diffusers.classifier_free.v1", + "scaleMeaning": "cfg_prediction_mix", + "enabled": "boolean_field", + "enabledField": "enabled", + "formulation": "boolean_field", + "formulationField": "use_original_formulation", + "selectorField": "guider", + "selectorValue": "ClassifierFreeGuidance", + "negativeConditioning": "pipeline_scoped_when_enabled", + "negativeConditioningScope": "FluxModularPipeline" + } + } + }, + { + "name": "stop", + "semanticName": "stop", + "direction": "input", + "roles": ["value"], + "types": ["float"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [], + "control": { + "technique": "classifier_free", + "parameter": "stop", + "compatibilityScope": "diffusers.classifier_free.v1", + "scaleMeaning": "cfg_prediction_mix", + "enabled": "boolean_field", + "enabledField": "enabled", + "formulation": "boolean_field", + "formulationField": "use_original_formulation", + "selectorField": "guider", + "selectorValue": "ClassifierFreeGuidance", + "negativeConditioning": "pipeline_scoped_when_enabled", + "negativeConditioningScope": "FluxModularPipeline" + } + } + }, + { + "name": "guider_out", + "semanticName": "guider_out", + "direction": "output", + "roles": ["component"], + "types": ["custom_guider"], + "required": false, + "hidden": false, + "semantics": { + "kind": "component", + "scope": "FluxModularPipeline", + "state": null, + "owner": "same_loader", + "members": [] + } + }, + { + "name": "layers_config", + "semanticName": "layers_config", + "direction": "input", + "roles": ["value"], + "types": ["layers_config"], + "required": false, + "hidden": false, + "semantics": { + "kind": "opaque", + "scope": "FluxModularPipeline", + "state": null, + "owner": "none", + "members": [] + } + } + ], + "workflowId": "text2image", + "binding": { + "values": { + "model_type": "FluxModularPipeline" + }, + "pipelineClass": "FluxModularPipeline" + } + }, + { + "pipelineClass": "FluxKontextModularPipeline", + "task": "text_to_image", + "operationId": "diffusion.guidance", + "nodeKey": "modules.ModularDiffusers.Guider", + "nodeType": "guidance", + "blockName": null, + "decomposition": "bundle", + "support": "declared", + "ports": [ + { + "name": "model_type", + "semanticName": "model_type", + "direction": "input", + "roles": ["value"], + "types": ["string"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "guider", + "semanticName": "guider", + "direction": "input", + "roles": ["value"], + "types": ["string"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [], + "control": { + "technique": "classifier_free", + "parameter": "technique", + "compatibilityScope": "diffusers.classifier_free.v1", + "scaleMeaning": "cfg_prediction_mix", + "enabled": "boolean_field", + "enabledField": "enabled", + "formulation": "boolean_field", + "formulationField": "use_original_formulation", + "selectorField": "guider", + "selectorValue": "ClassifierFreeGuidance", + "negativeConditioning": "pipeline_scoped_when_enabled", + "negativeConditioningScope": "FluxKontextModularPipeline" + } + } + }, + { + "name": "guidance_scale", + "semanticName": "guidance_scale", + "direction": "input", + "roles": ["value"], + "types": ["float"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [], + "control": { + "technique": "classifier_free", + "parameter": "scale", + "compatibilityScope": "diffusers.classifier_free.v1", + "scaleMeaning": "cfg_prediction_mix", + "enabled": "boolean_field", + "enabledField": "enabled", + "formulation": "boolean_field", + "formulationField": "use_original_formulation", + "selectorField": "guider", + "selectorValue": "ClassifierFreeGuidance", + "negativeConditioning": "pipeline_scoped_when_enabled", + "negativeConditioningScope": "FluxKontextModularPipeline" + } + } + }, + { + "name": "guidance_rescale", + "semanticName": "guidance_rescale", + "direction": "input", + "roles": ["value"], + "types": ["float"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [], + "control": { + "technique": "classifier_free", + "parameter": "rescale", + "compatibilityScope": "diffusers.classifier_free.v1", + "scaleMeaning": "cfg_prediction_mix", + "enabled": "boolean_field", + "enabledField": "enabled", + "formulation": "boolean_field", + "formulationField": "use_original_formulation", + "selectorField": "guider", + "selectorValue": "ClassifierFreeGuidance", + "negativeConditioning": "pipeline_scoped_when_enabled", + "negativeConditioningScope": "FluxKontextModularPipeline" + } + } + }, + { + "name": "use_original_formulation", + "semanticName": "use_original_formulation", + "direction": "input", + "roles": ["value"], + "types": ["boolean"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [], + "control": { + "technique": "classifier_free", + "parameter": "formulation", + "compatibilityScope": "diffusers.classifier_free.v1", + "scaleMeaning": "cfg_prediction_mix", + "enabled": "boolean_field", + "enabledField": "enabled", + "formulation": "boolean_field", + "formulationField": "use_original_formulation", + "selectorField": "guider", + "selectorValue": "ClassifierFreeGuidance", + "negativeConditioning": "pipeline_scoped_when_enabled", + "negativeConditioningScope": "FluxKontextModularPipeline" + } + } + }, + { + "name": "enabled", + "semanticName": "enabled", + "direction": "input", + "roles": ["value"], + "types": ["boolean"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [], + "control": { + "technique": "classifier_free", + "parameter": "enabled", + "compatibilityScope": "diffusers.classifier_free.v1", + "scaleMeaning": "cfg_prediction_mix", + "enabled": "boolean_field", + "enabledField": "enabled", + "formulation": "boolean_field", + "formulationField": "use_original_formulation", + "selectorField": "guider", + "selectorValue": "ClassifierFreeGuidance", + "negativeConditioning": "pipeline_scoped_when_enabled", + "negativeConditioningScope": "FluxKontextModularPipeline" + } + } + }, + { + "name": "start", + "semanticName": "start", + "direction": "input", + "roles": ["value"], + "types": ["float"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [], + "control": { + "technique": "classifier_free", + "parameter": "start", + "compatibilityScope": "diffusers.classifier_free.v1", + "scaleMeaning": "cfg_prediction_mix", + "enabled": "boolean_field", + "enabledField": "enabled", + "formulation": "boolean_field", + "formulationField": "use_original_formulation", + "selectorField": "guider", + "selectorValue": "ClassifierFreeGuidance", + "negativeConditioning": "pipeline_scoped_when_enabled", + "negativeConditioningScope": "FluxKontextModularPipeline" + } + } + }, + { + "name": "stop", + "semanticName": "stop", + "direction": "input", + "roles": ["value"], + "types": ["float"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [], + "control": { + "technique": "classifier_free", + "parameter": "stop", + "compatibilityScope": "diffusers.classifier_free.v1", + "scaleMeaning": "cfg_prediction_mix", + "enabled": "boolean_field", + "enabledField": "enabled", + "formulation": "boolean_field", + "formulationField": "use_original_formulation", + "selectorField": "guider", + "selectorValue": "ClassifierFreeGuidance", + "negativeConditioning": "pipeline_scoped_when_enabled", + "negativeConditioningScope": "FluxKontextModularPipeline" + } + } + }, + { + "name": "guider_out", + "semanticName": "guider_out", + "direction": "output", + "roles": ["component"], + "types": ["custom_guider"], + "required": false, + "hidden": false, + "semantics": { + "kind": "component", + "scope": "FluxKontextModularPipeline", + "state": null, + "owner": "same_loader", + "members": [] + } + }, + { + "name": "layers_config", + "semanticName": "layers_config", + "direction": "input", + "roles": ["value"], + "types": ["layers_config"], + "required": false, + "hidden": false, + "semantics": { + "kind": "opaque", + "scope": "FluxKontextModularPipeline", + "state": null, + "owner": "none", + "members": [] + } + } + ], + "workflowId": "text2image", + "binding": { + "values": { + "model_type": "FluxKontextModularPipeline" + }, + "pipelineClass": "FluxKontextModularPipeline" + } + }, + { + "pipelineClass": "FluxModularPipeline", + "task": "text_to_image", + "operationId": "diffusion.denoise", + "nodeKey": "modules.ModularDiffusers.Denoise", + "nodeType": "denoise", + "blockName": "denoise", + "decomposition": "block", + "support": "declared", + "ports": [ + { + "name": "embeddings", + "semanticName": "embeddings", + "direction": "input", + "roles": ["value"], + "types": ["embeddings"], + "required": true, + "hidden": false, + "semantics": { + "kind": "conditioning", + "scope": "FluxModularPipeline", + "state": null, + "owner": "same_loader", + "members": [] + } + }, + { + "name": "width", + "semanticName": "width", + "direction": "input", + "roles": ["value"], + "types": ["int"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "height", + "semanticName": "height", + "direction": "input", + "roles": ["value"], + "types": ["int"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "seed", + "semanticName": "seed", + "direction": "input", + "roles": ["value"], + "types": ["int"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "num_inference_steps", + "semanticName": "num_inference_steps", + "direction": "input", + "roles": ["value"], + "types": ["int"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "guidance_scale", + "semanticName": "guidance_scale", + "direction": "input", + "roles": ["value"], + "types": ["float"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [], + "control": { + "technique": "embedded_distilled", + "parameter": "scale", + "compatibilityScope": "diffusers.flux1.embedded.v1", + "scaleMeaning": "distilled_model_embedding", + "enabled": "model_config", + "enabledField": null, + "formulation": "embedded", + "formulationField": null, + "selectorField": null, + "selectorValue": null, + "negativeConditioning": "none", + "negativeConditioningScope": null + } + } + }, + { + "name": "image_latents", + "semanticName": "image_latents", + "direction": "input", + "roles": ["value"], + "types": ["latents"], + "required": false, + "hidden": false, + "semantics": { + "kind": "latents", + "scope": "FluxModularPipeline", + "state": null, + "owner": "same_loader", + "members": [] + } + }, + { + "name": "strength", + "semanticName": "strength", + "direction": "input", + "roles": ["value"], + "types": ["float"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "unet", + "semanticName": "unet", + "direction": "input", + "roles": ["component"], + "types": ["diffusers_auto_model"], + "required": true, + "hidden": false, + "semantics": { + "kind": "component", + "scope": "FluxModularPipeline", + "state": null, + "owner": "same_loader", + "members": [ + { + "name": "transformer", + "type": "diffusers.models.transformers.transformer_flux.FluxTransformer2DModel" + } + ] + } + }, + { + "name": "scheduler", + "semanticName": "scheduler", + "direction": "input", + "roles": ["component"], + "types": ["diffusers_auto_model"], + "required": true, + "hidden": false, + "semantics": { + "kind": "component", + "scope": "FluxModularPipeline", + "state": null, + "owner": "same_loader", + "members": [ + { + "name": "scheduler", + "type": "diffusers.schedulers.scheduling_flow_match_euler_discrete.FlowMatchEulerDiscreteScheduler" + } + ] + } + }, + { + "name": "guider", + "semanticName": "guider", + "direction": "input", + "roles": ["component"], + "types": ["custom_guider"], + "required": false, + "hidden": false, + "semantics": { + "kind": "component", + "scope": "FluxModularPipeline", + "state": null, + "owner": "same_loader", + "members": [ + { + "name": "scheduler", + "type": "diffusers.schedulers.scheduling_flow_match_euler_discrete.FlowMatchEulerDiscreteScheduler" + }, + { + "name": "transformer", + "type": "diffusers.models.transformers.transformer_flux.FluxTransformer2DModel" + } + ] + } + }, + { + "name": "latents", + "semanticName": "latents", + "direction": "output", + "roles": ["value"], + "types": ["latents"], + "required": false, + "hidden": false, + "semantics": { + "kind": "latents", + "scope": "FluxModularPipeline", + "state": null, + "owner": "same_loader", + "members": [] + } + }, + { + "name": "out_width", + "semanticName": "width", + "direction": "output", + "roles": ["value"], + "types": ["int"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "out_height", + "semanticName": "height", + "direction": "output", + "roles": ["value"], + "types": ["int"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "doc", + "semanticName": "doc", + "direction": "output", + "roles": ["value"], + "types": ["string"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + } + ], + "workflowId": "text2image", + "binding": { + "values": {}, + "pipelineClass": "FluxModularPipeline" + } + }, + { + "pipelineClass": "FluxKontextModularPipeline", + "task": "text_to_image", + "operationId": "diffusion.denoise", + "nodeKey": "modules.ModularDiffusers.Denoise", + "nodeType": "denoise", + "blockName": "denoise", + "decomposition": "block", + "support": "declared", + "ports": [ + { + "name": "embeddings", + "semanticName": "embeddings", + "direction": "input", + "roles": ["value"], + "types": ["embeddings"], + "required": true, + "hidden": false, + "semantics": { + "kind": "conditioning", + "scope": "FluxKontextModularPipeline", + "state": null, + "owner": "same_loader", + "members": [] + } + }, + { + "name": "width", + "semanticName": "width", + "direction": "input", + "roles": ["value"], + "types": ["int"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "height", + "semanticName": "height", + "direction": "input", + "roles": ["value"], + "types": ["int"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "seed", + "semanticName": "seed", + "direction": "input", + "roles": ["value"], + "types": ["int"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "num_inference_steps", + "semanticName": "num_inference_steps", + "direction": "input", + "roles": ["value"], + "types": ["int"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "guidance_scale", + "semanticName": "guidance_scale", + "direction": "input", + "roles": ["value"], + "types": ["float"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [], + "control": { + "technique": "embedded_distilled", + "parameter": "scale", + "compatibilityScope": "diffusers.flux1.embedded.v1", + "scaleMeaning": "distilled_model_embedding", + "enabled": "model_config", + "enabledField": null, + "formulation": "embedded", + "formulationField": null, + "selectorField": null, + "selectorValue": null, + "negativeConditioning": "none", + "negativeConditioningScope": null + } + } + }, + { + "name": "image_latents", + "semanticName": "image_latents", + "direction": "input", + "roles": ["value"], + "types": ["latents"], + "required": false, + "hidden": false, + "semantics": { + "kind": "latents", + "scope": "FluxKontextModularPipeline", + "state": null, + "owner": "same_loader", + "members": [] + } + }, + { + "name": "unet", + "semanticName": "unet", + "direction": "input", + "roles": ["component"], + "types": ["diffusers_auto_model"], + "required": true, + "hidden": false, + "semantics": { + "kind": "component", + "scope": "FluxKontextModularPipeline", + "state": null, + "owner": "same_loader", + "members": [ + { + "name": "transformer", + "type": "diffusers.models.transformers.transformer_flux.FluxTransformer2DModel" + } + ] + } + }, + { + "name": "scheduler", + "semanticName": "scheduler", + "direction": "input", + "roles": ["component"], + "types": ["diffusers_auto_model"], + "required": true, + "hidden": false, + "semantics": { + "kind": "component", + "scope": "FluxKontextModularPipeline", + "state": null, + "owner": "same_loader", + "members": [ + { + "name": "scheduler", + "type": "diffusers.schedulers.scheduling_flow_match_euler_discrete.FlowMatchEulerDiscreteScheduler" + } + ] + } + }, + { + "name": "guider", + "semanticName": "guider", + "direction": "input", + "roles": ["component"], + "types": ["custom_guider"], + "required": false, + "hidden": false, + "semantics": { + "kind": "component", + "scope": "FluxKontextModularPipeline", + "state": null, + "owner": "same_loader", + "members": [ + { + "name": "scheduler", + "type": "diffusers.schedulers.scheduling_flow_match_euler_discrete.FlowMatchEulerDiscreteScheduler" + }, + { + "name": "transformer", + "type": "diffusers.models.transformers.transformer_flux.FluxTransformer2DModel" + } + ] + } + }, + { + "name": "latents", + "semanticName": "latents", + "direction": "output", + "roles": ["value"], + "types": ["latents"], + "required": false, + "hidden": false, + "semantics": { + "kind": "latents", + "scope": "FluxKontextModularPipeline", + "state": null, + "owner": "same_loader", + "members": [] + } + }, + { + "name": "out_width", + "semanticName": "width", + "direction": "output", + "roles": ["value"], + "types": ["int"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "out_height", + "semanticName": "height", + "direction": "output", + "roles": ["value"], + "types": ["int"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "doc", + "semanticName": "doc", + "direction": "output", + "roles": ["value"], + "types": ["string"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + } + ], + "workflowId": "text2image", + "binding": { + "values": {}, + "pipelineClass": "FluxKontextModularPipeline" + } + }, + { + "pipelineClass": "Flux2ModularPipeline", + "task": "text_to_image", + "operationId": "diffusion.denoise", + "nodeKey": "modules.ModularDiffusers.Denoise", + "nodeType": "denoise", + "blockName": "denoise", + "decomposition": "block", + "support": "declared", + "ports": [ + { + "name": "embeddings", + "semanticName": "embeddings", + "direction": "input", + "roles": ["value"], + "types": ["embeddings"], + "required": true, + "hidden": false, + "semantics": { + "kind": "conditioning", + "scope": "Flux2ModularPipeline", + "state": null, + "owner": "same_loader", + "members": [] + } + }, + { + "name": "width", + "semanticName": "width", + "direction": "input", + "roles": ["value"], + "types": ["int"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "height", + "semanticName": "height", + "direction": "input", + "roles": ["value"], + "types": ["int"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "seed", + "semanticName": "seed", + "direction": "input", + "roles": ["value"], + "types": ["int"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "num_inference_steps", + "semanticName": "num_inference_steps", + "direction": "input", + "roles": ["value"], + "types": ["int"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "guidance_scale", + "semanticName": "guidance_scale", + "direction": "input", + "roles": ["value"], + "types": ["float"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [], + "control": { + "technique": "embedded_distilled", + "parameter": "scale", + "compatibilityScope": "diffusers.flux2.embedded.v1", + "scaleMeaning": "distilled_model_embedding", + "enabled": "model_config", + "enabledField": null, + "formulation": "embedded", + "formulationField": null, + "selectorField": null, + "selectorValue": null, + "negativeConditioning": "none", + "negativeConditioningScope": null + } + } + }, + { + "name": "image_latents", + "semanticName": "image_latents", + "direction": "input", + "roles": ["value"], + "types": ["latents"], + "required": false, + "hidden": false, + "semantics": { + "kind": "latents", + "scope": "Flux2ModularPipeline", + "state": null, + "owner": "same_loader", + "members": [] + } + }, + { + "name": "unet", + "semanticName": "unet", + "direction": "input", + "roles": ["component"], + "types": ["diffusers_auto_model"], + "required": true, + "hidden": false, + "semantics": { + "kind": "component", + "scope": "Flux2ModularPipeline", + "state": null, + "owner": "same_loader", + "members": [ + { + "name": "transformer", + "type": "diffusers.models.transformers.transformer_flux2.Flux2Transformer2DModel" + } + ] + } + }, + { + "name": "scheduler", + "semanticName": "scheduler", + "direction": "input", + "roles": ["component"], + "types": ["diffusers_auto_model"], + "required": true, + "hidden": false, + "semantics": { + "kind": "component", + "scope": "Flux2ModularPipeline", + "state": null, + "owner": "same_loader", + "members": [ + { + "name": "scheduler", + "type": "diffusers.schedulers.scheduling_flow_match_euler_discrete.FlowMatchEulerDiscreteScheduler" + } + ] + } + }, + { + "name": "latents", + "semanticName": "latents", + "direction": "output", + "roles": ["value"], + "types": ["latents"], + "required": false, + "hidden": false, + "semantics": { + "kind": "latents", + "scope": "Flux2ModularPipeline", + "state": null, + "owner": "same_loader", + "members": [] + } + }, + { + "name": "doc", + "semanticName": "doc", + "direction": "output", + "roles": ["value"], + "types": ["string"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + } + ], + "workflowId": "text2image", + "binding": { + "values": {}, + "pipelineClass": "Flux2ModularPipeline" + } + }, + { + "pipelineClass": "QwenImagePipeline", + "task": "text_to_image", + "operationId": "diffusion.generate_image", + "nodeKey": "modules.DiffusersImage.Generate", + "nodeType": "pipeline", + "blockName": null, + "decomposition": "pipeline", + "support": "declared", + "ports": [ + { + "name": "latents", + "semanticName": "latents", + "direction": "input", + "roles": ["value"], + "types": ["tensor"], + "required": false, + "hidden": true, + "semantics": { + "kind": "latents", + "scope": "QwenImagePipeline", + "state": null, + "owner": "same_loader", + "members": [] + } + }, + { + "name": "prompt_embeds", + "semanticName": "prompt_embeds", + "direction": "input", + "roles": ["value"], + "types": ["tensor"], + "required": false, + "hidden": true, + "semantics": { + "kind": "opaque", + "scope": "QwenImagePipeline", + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "pooled_prompt_embeds", + "semanticName": "pooled_prompt_embeds", + "direction": "input", + "roles": ["value"], + "types": ["tensor"], + "required": false, + "hidden": true, + "semantics": { + "kind": "opaque", + "scope": "QwenImagePipeline", + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "negative_prompt_embeds", + "semanticName": "negative_prompt_embeds", + "direction": "input", + "roles": ["value"], + "types": ["tensor"], + "required": false, + "hidden": true, + "semantics": { + "kind": "opaque", + "scope": "QwenImagePipeline", + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "negative_pooled_prompt_embeds", + "semanticName": "negative_pooled_prompt_embeds", + "direction": "input", + "roles": ["value"], + "types": ["tensor"], + "required": false, + "hidden": true, + "semantics": { + "kind": "opaque", + "scope": "QwenImagePipeline", + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "masked_image_latents", + "semanticName": "masked_image_latents", + "direction": "input", + "roles": ["value"], + "types": ["tensor"], + "required": false, + "hidden": true, + "semantics": { + "kind": "latents", + "scope": "QwenImagePipeline", + "state": null, + "owner": "same_loader", + "members": [] + } + }, + { + "name": "generator", + "semanticName": "generator", + "direction": "input", + "roles": ["value"], + "types": ["generator"], + "required": false, + "hidden": true, + "semantics": { + "kind": "opaque", + "scope": "QwenImagePipeline", + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "prompt_2", + "semanticName": "prompt_2", + "direction": "input", + "roles": ["value"], + "types": ["text"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "negative_prompt_2", + "semanticName": "negative_prompt_2", + "direction": "input", + "roles": ["value"], + "types": ["text"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "num_images_per_prompt", + "semanticName": "num_images_per_prompt", + "direction": "input", + "roles": ["value"], + "types": ["int"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "sigmas", + "semanticName": "sigmas", + "direction": "input", + "roles": ["value"], + "types": ["float"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "text_encoder_out_layers", + "semanticName": "text_encoder_out_layers", + "direction": "input", + "roles": ["value"], + "types": ["int"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "caption_upsample_temperature", + "semanticName": "caption_upsample_temperature", + "direction": "input", + "roles": ["value"], + "types": ["float"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "max_area", + "semanticName": "max_area", + "direction": "input", + "roles": ["value"], + "types": ["int"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "_auto_resize", + "semanticName": "_auto_resize", + "direction": "input", + "roles": ["value"], + "types": ["bool"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "image_reference", + "semanticName": "image_reference", + "direction": "input", + "roles": ["value"], + "types": ["image"], + "required": false, + "hidden": true, + "semantics": { + "kind": "media", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "prompt_embeds_scale", + "semanticName": "prompt_embeds_scale", + "direction": "input", + "roles": ["value"], + "types": ["float"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "pooled_prompt_embeds_scale", + "semanticName": "pooled_prompt_embeds_scale", + "direction": "input", + "roles": ["value"], + "types": ["float"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "joint_attention_kwargs", + "semanticName": "joint_attention_kwargs", + "direction": "input", + "roles": ["value"], + "types": ["object"], + "required": false, + "hidden": true, + "semantics": { + "kind": "opaque", + "scope": "QwenImagePipeline", + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "attention_kwargs", + "semanticName": "attention_kwargs", + "direction": "input", + "roles": ["value"], + "types": ["object"], + "required": false, + "hidden": true, + "semantics": { + "kind": "opaque", + "scope": "QwenImagePipeline", + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "ip_adapter_image", + "semanticName": "ip_adapter_image", + "direction": "input", + "roles": ["value"], + "types": ["image"], + "required": false, + "hidden": true, + "semantics": { + "kind": "media", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "negative_ip_adapter_image", + "semanticName": "negative_ip_adapter_image", + "direction": "input", + "roles": ["value"], + "types": ["image"], + "required": false, + "hidden": true, + "semantics": { + "kind": "media", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "ip_adapter_image_embeds", + "semanticName": "ip_adapter_image_embeds", + "direction": "input", + "roles": ["value"], + "types": ["tensor"], + "required": false, + "hidden": true, + "semantics": { + "kind": "opaque", + "scope": "QwenImagePipeline", + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "negative_ip_adapter_image_embeds", + "semanticName": "negative_ip_adapter_image_embeds", + "direction": "input", + "roles": ["value"], + "types": ["tensor"], + "required": false, + "hidden": true, + "semantics": { + "kind": "opaque", + "scope": "QwenImagePipeline", + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "control_mode", + "semanticName": "control_mode", + "direction": "input", + "roles": ["value"], + "types": ["int"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "use_kv_cache", + "semanticName": "use_kv_cache", + "direction": "input", + "roles": ["value"], + "types": ["bool"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "pipeline", + "semanticName": "pipeline", + "direction": "input", + "roles": ["pipeline"], + "types": ["image_diffusion_pipeline"], + "required": true, + "hidden": false, + "semantics": { + "kind": "pipeline", + "scope": "QwenImagePipeline", + "state": null, + "owner": "same_loader", + "members": [] + } + }, + { + "name": "image_contract", + "semanticName": "image_contract", + "direction": "input", + "roles": ["value"], + "types": ["object"], + "required": false, + "hidden": true, + "semantics": { + "kind": "opaque", + "scope": "QwenImagePipeline", + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "prompt", + "semanticName": "prompt", + "direction": "input", + "roles": ["value"], + "types": ["text"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "negative_prompt", + "semanticName": "negative_prompt", + "direction": "input", + "roles": ["value"], + "types": ["text"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "width", + "semanticName": "width", + "direction": "input", + "roles": ["value"], + "types": ["int"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "height", + "semanticName": "height", + "direction": "input", + "roles": ["value"], + "types": ["int"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "seed", + "semanticName": "seed", + "direction": "input", + "roles": ["value"], + "types": ["int"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "num_inference_steps", + "semanticName": "num_inference_steps", + "direction": "input", + "roles": ["value"], + "types": ["int"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "guidance_scale", + "semanticName": "guidance_scale", + "direction": "input", + "roles": ["value"], + "types": ["float"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [], + "control": { + "technique": "classifier_free", + "parameter": "scale", + "compatibilityScope": "diffusers.qwen.normalized_cfg.v1", + "scaleMeaning": "cfg_prediction_mix", + "enabled": "scale_gt_one", + "enabledField": "guidance_scale", + "formulation": "diffusers", + "formulationField": null, + "selectorField": null, + "selectorValue": null, + "negativeConditioning": "pipeline_scoped_when_enabled", + "negativeConditioningScope": "QwenImagePipeline", + "negativePromptField": "negative_prompt", + "negativePromptPolicy": "empty_string_is_condition" + } + } + }, + { + "name": "image_guidance_scale", + "semanticName": "image_guidance_scale", + "direction": "input", + "roles": ["value"], + "types": ["float"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "use_guidance_scale_2", + "semanticName": "use_guidance_scale_2", + "direction": "input", + "roles": ["value"], + "types": ["bool"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "guidance_scale_2", + "semanticName": "guidance_scale_2", + "direction": "input", + "roles": ["value"], + "types": ["float"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "pag_scale", + "semanticName": "pag_scale", + "direction": "input", + "roles": ["value"], + "types": ["float"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "pag_adaptive_scale", + "semanticName": "pag_adaptive_scale", + "direction": "input", + "roles": ["value"], + "types": ["float"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "control_guidance_start", + "semanticName": "control_guidance_start", + "direction": "input", + "roles": ["value"], + "types": ["float"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "control_guidance_end", + "semanticName": "control_guidance_end", + "direction": "input", + "roles": ["value"], + "types": ["float"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "layers", + "semanticName": "layers", + "direction": "input", + "roles": ["value"], + "types": ["int"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "resolution", + "semanticName": "resolution", + "direction": "input", + "roles": ["value"], + "types": ["int"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "cfg_normalize", + "semanticName": "cfg_normalize", + "direction": "input", + "roles": ["value"], + "types": ["bool"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "use_en_prompt", + "semanticName": "use_en_prompt", + "direction": "input", + "roles": ["value"], + "types": ["bool"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "strength", + "semanticName": "strength", + "direction": "input", + "roles": ["value"], + "types": ["float"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "padding_mask_crop", + "semanticName": "padding_mask_crop", + "direction": "input", + "roles": ["value"], + "types": ["int"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "max_sequence_length", + "semanticName": "max_sequence_length", + "direction": "input", + "roles": ["value"], + "types": ["int"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "output_type", + "semanticName": "output_type", + "direction": "input", + "roles": ["value"], + "types": ["string"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "images", + "semanticName": "images", + "direction": "output", + "roles": ["value"], + "types": ["image"], + "required": false, + "hidden": false, + "semantics": { + "kind": "media", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "latents_out", + "semanticName": "latents_out", + "direction": "output", + "roles": ["value"], + "types": ["tensor"], + "required": false, + "hidden": true, + "semantics": { + "kind": "latents", + "scope": "QwenImagePipeline", + "state": null, + "owner": "same_loader", + "members": [] + } + }, + { + "name": "width_out", + "semanticName": "width_out", + "direction": "output", + "roles": ["value"], + "types": ["int"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "height_out", + "semanticName": "height_out", + "direction": "output", + "roles": ["value"], + "types": ["int"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + } + ], + "workflowId": null, + "binding": { + "values": {}, + "pipelineClass": "QwenImagePipeline" + } + }, + { + "pipelineClass": "QwenImageImg2ImgPipeline", + "task": "edit_image", + "operationId": "diffusion.generate_image", + "nodeKey": "modules.DiffusersImage.Edit", + "nodeType": "pipeline", + "blockName": null, + "decomposition": "pipeline", + "support": "declared", + "ports": [ + { + "name": "latents", + "semanticName": "latents", + "direction": "input", + "roles": ["value"], + "types": ["tensor"], + "required": false, + "hidden": true, + "semantics": { + "kind": "latents", + "scope": "QwenImageImg2ImgPipeline", + "state": null, + "owner": "same_loader", + "members": [] + } + }, + { + "name": "prompt_embeds", + "semanticName": "prompt_embeds", + "direction": "input", + "roles": ["value"], + "types": ["tensor"], + "required": false, + "hidden": true, + "semantics": { + "kind": "opaque", + "scope": "QwenImageImg2ImgPipeline", + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "pooled_prompt_embeds", + "semanticName": "pooled_prompt_embeds", + "direction": "input", + "roles": ["value"], + "types": ["tensor"], + "required": false, + "hidden": true, + "semantics": { + "kind": "opaque", + "scope": "QwenImageImg2ImgPipeline", + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "negative_prompt_embeds", + "semanticName": "negative_prompt_embeds", + "direction": "input", + "roles": ["value"], + "types": ["tensor"], + "required": false, + "hidden": true, + "semantics": { + "kind": "opaque", + "scope": "QwenImageImg2ImgPipeline", + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "negative_pooled_prompt_embeds", + "semanticName": "negative_pooled_prompt_embeds", + "direction": "input", + "roles": ["value"], + "types": ["tensor"], + "required": false, + "hidden": true, + "semantics": { + "kind": "opaque", + "scope": "QwenImageImg2ImgPipeline", + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "masked_image_latents", + "semanticName": "masked_image_latents", + "direction": "input", + "roles": ["value"], + "types": ["tensor"], + "required": false, + "hidden": true, + "semantics": { + "kind": "latents", + "scope": "QwenImageImg2ImgPipeline", + "state": null, + "owner": "same_loader", + "members": [] + } + }, + { + "name": "generator", + "semanticName": "generator", + "direction": "input", + "roles": ["value"], + "types": ["generator"], + "required": false, + "hidden": true, + "semantics": { + "kind": "opaque", + "scope": "QwenImageImg2ImgPipeline", + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "prompt_2", + "semanticName": "prompt_2", + "direction": "input", + "roles": ["value"], + "types": ["text"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "negative_prompt_2", + "semanticName": "negative_prompt_2", + "direction": "input", + "roles": ["value"], + "types": ["text"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "num_images_per_prompt", + "semanticName": "num_images_per_prompt", + "direction": "input", + "roles": ["value"], + "types": ["int"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "sigmas", + "semanticName": "sigmas", + "direction": "input", + "roles": ["value"], + "types": ["float"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "text_encoder_out_layers", + "semanticName": "text_encoder_out_layers", + "direction": "input", + "roles": ["value"], + "types": ["int"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "caption_upsample_temperature", + "semanticName": "caption_upsample_temperature", + "direction": "input", + "roles": ["value"], + "types": ["float"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "max_area", + "semanticName": "max_area", + "direction": "input", + "roles": ["value"], + "types": ["int"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "_auto_resize", + "semanticName": "_auto_resize", + "direction": "input", + "roles": ["value"], + "types": ["bool"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "image_reference", + "semanticName": "image_reference", + "direction": "input", + "roles": ["value"], + "types": ["image"], + "required": false, + "hidden": true, + "semantics": { + "kind": "media", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "prompt_embeds_scale", + "semanticName": "prompt_embeds_scale", + "direction": "input", + "roles": ["value"], + "types": ["float"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "pooled_prompt_embeds_scale", + "semanticName": "pooled_prompt_embeds_scale", + "direction": "input", + "roles": ["value"], + "types": ["float"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "joint_attention_kwargs", + "semanticName": "joint_attention_kwargs", + "direction": "input", + "roles": ["value"], + "types": ["object"], + "required": false, + "hidden": true, + "semantics": { + "kind": "opaque", + "scope": "QwenImageImg2ImgPipeline", + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "attention_kwargs", + "semanticName": "attention_kwargs", + "direction": "input", + "roles": ["value"], + "types": ["object"], + "required": false, + "hidden": true, + "semantics": { + "kind": "opaque", + "scope": "QwenImageImg2ImgPipeline", + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "ip_adapter_image", + "semanticName": "ip_adapter_image", + "direction": "input", + "roles": ["value"], + "types": ["image"], + "required": false, + "hidden": true, + "semantics": { + "kind": "media", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "negative_ip_adapter_image", + "semanticName": "negative_ip_adapter_image", + "direction": "input", + "roles": ["value"], + "types": ["image"], + "required": false, + "hidden": true, + "semantics": { + "kind": "media", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "ip_adapter_image_embeds", + "semanticName": "ip_adapter_image_embeds", + "direction": "input", + "roles": ["value"], + "types": ["tensor"], + "required": false, + "hidden": true, + "semantics": { + "kind": "opaque", + "scope": "QwenImageImg2ImgPipeline", + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "negative_ip_adapter_image_embeds", + "semanticName": "negative_ip_adapter_image_embeds", + "direction": "input", + "roles": ["value"], + "types": ["tensor"], + "required": false, + "hidden": true, + "semantics": { + "kind": "opaque", + "scope": "QwenImageImg2ImgPipeline", + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "control_mode", + "semanticName": "control_mode", + "direction": "input", + "roles": ["value"], + "types": ["int"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "use_kv_cache", + "semanticName": "use_kv_cache", + "direction": "input", + "roles": ["value"], + "types": ["bool"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "pipeline", + "semanticName": "pipeline", + "direction": "input", + "roles": ["pipeline"], + "types": ["image_diffusion_pipeline"], + "required": true, + "hidden": false, + "semantics": { + "kind": "pipeline", + "scope": "QwenImageImg2ImgPipeline", + "state": null, + "owner": "same_loader", + "members": [] + } + }, + { + "name": "image_contract", + "semanticName": "image_contract", + "direction": "input", + "roles": ["value"], + "types": ["object"], + "required": false, + "hidden": true, + "semantics": { + "kind": "opaque", + "scope": "QwenImageImg2ImgPipeline", + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "prompt", + "semanticName": "prompt", + "direction": "input", + "roles": ["value"], + "types": ["text"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "negative_prompt", + "semanticName": "negative_prompt", + "direction": "input", + "roles": ["value"], + "types": ["text"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "width", + "semanticName": "width", + "direction": "input", + "roles": ["value"], + "types": ["int"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "height", + "semanticName": "height", + "direction": "input", + "roles": ["value"], + "types": ["int"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "seed", + "semanticName": "seed", + "direction": "input", + "roles": ["value"], + "types": ["int"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "num_inference_steps", + "semanticName": "num_inference_steps", + "direction": "input", + "roles": ["value"], + "types": ["int"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "guidance_scale", + "semanticName": "guidance_scale", + "direction": "input", + "roles": ["value"], + "types": ["float"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [], + "control": { + "technique": "classifier_free", + "parameter": "scale", + "compatibilityScope": "diffusers.qwen.normalized_cfg.v1", + "scaleMeaning": "cfg_prediction_mix", + "enabled": "scale_gt_one", + "enabledField": "guidance_scale", + "formulation": "diffusers", + "formulationField": null, + "selectorField": null, + "selectorValue": null, + "negativeConditioning": "pipeline_scoped_when_enabled", + "negativeConditioningScope": "QwenImageImg2ImgPipeline", + "negativePromptField": "negative_prompt", + "negativePromptPolicy": "empty_string_is_condition" + } + } + }, + { + "name": "image_guidance_scale", + "semanticName": "image_guidance_scale", + "direction": "input", + "roles": ["value"], + "types": ["float"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "use_guidance_scale_2", + "semanticName": "use_guidance_scale_2", + "direction": "input", + "roles": ["value"], + "types": ["bool"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "guidance_scale_2", + "semanticName": "guidance_scale_2", + "direction": "input", + "roles": ["value"], + "types": ["float"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "pag_scale", + "semanticName": "pag_scale", + "direction": "input", + "roles": ["value"], + "types": ["float"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "pag_adaptive_scale", + "semanticName": "pag_adaptive_scale", + "direction": "input", + "roles": ["value"], + "types": ["float"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "control_guidance_start", + "semanticName": "control_guidance_start", + "direction": "input", + "roles": ["value"], + "types": ["float"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "control_guidance_end", + "semanticName": "control_guidance_end", + "direction": "input", + "roles": ["value"], + "types": ["float"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "layers", + "semanticName": "layers", + "direction": "input", + "roles": ["value"], + "types": ["int"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "resolution", + "semanticName": "resolution", + "direction": "input", + "roles": ["value"], + "types": ["int"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "cfg_normalize", + "semanticName": "cfg_normalize", + "direction": "input", + "roles": ["value"], + "types": ["bool"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "use_en_prompt", + "semanticName": "use_en_prompt", + "direction": "input", + "roles": ["value"], + "types": ["bool"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "strength", + "semanticName": "strength", + "direction": "input", + "roles": ["value"], + "types": ["float"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "padding_mask_crop", + "semanticName": "padding_mask_crop", + "direction": "input", + "roles": ["value"], + "types": ["int"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "max_sequence_length", + "semanticName": "max_sequence_length", + "direction": "input", + "roles": ["value"], + "types": ["int"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "output_type", + "semanticName": "output_type", + "direction": "input", + "roles": ["value"], + "types": ["string"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "images", + "semanticName": "images", + "direction": "output", + "roles": ["value"], + "types": ["image"], + "required": false, + "hidden": false, + "semantics": { + "kind": "media", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "latents_out", + "semanticName": "latents_out", + "direction": "output", + "roles": ["value"], + "types": ["tensor"], + "required": false, + "hidden": true, + "semantics": { + "kind": "latents", + "scope": "QwenImageImg2ImgPipeline", + "state": null, + "owner": "same_loader", + "members": [] + } + }, + { + "name": "width_out", + "semanticName": "width_out", + "direction": "output", + "roles": ["value"], + "types": ["int"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "height_out", + "semanticName": "height_out", + "direction": "output", + "roles": ["value"], + "types": ["int"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "image", + "semanticName": "image", + "direction": "input", + "roles": ["value"], + "types": ["image"], + "required": true, + "hidden": false, + "semantics": { + "kind": "media", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "reference_strength", + "semanticName": "reference_strength", + "direction": "input", + "roles": ["value"], + "types": ["float"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + } + ], + "workflowId": null, + "binding": { + "values": {}, + "pipelineClass": "QwenImageImg2ImgPipeline" + } + }, + { + "pipelineClass": "QwenImageInpaintPipeline", + "task": "inpaint", + "operationId": "diffusion.generate_image", + "nodeKey": "modules.DiffusersImage.Inpaint", + "nodeType": "pipeline", + "blockName": null, + "decomposition": "pipeline", + "support": "declared", + "ports": [ + { + "name": "latents", + "semanticName": "latents", + "direction": "input", + "roles": ["value"], + "types": ["tensor"], + "required": false, + "hidden": true, + "semantics": { + "kind": "latents", + "scope": "QwenImageInpaintPipeline", + "state": null, + "owner": "same_loader", + "members": [] + } + }, + { + "name": "prompt_embeds", + "semanticName": "prompt_embeds", + "direction": "input", + "roles": ["value"], + "types": ["tensor"], + "required": false, + "hidden": true, + "semantics": { + "kind": "opaque", + "scope": "QwenImageInpaintPipeline", + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "pooled_prompt_embeds", + "semanticName": "pooled_prompt_embeds", + "direction": "input", + "roles": ["value"], + "types": ["tensor"], + "required": false, + "hidden": true, + "semantics": { + "kind": "opaque", + "scope": "QwenImageInpaintPipeline", + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "negative_prompt_embeds", + "semanticName": "negative_prompt_embeds", + "direction": "input", + "roles": ["value"], + "types": ["tensor"], + "required": false, + "hidden": true, + "semantics": { + "kind": "opaque", + "scope": "QwenImageInpaintPipeline", + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "negative_pooled_prompt_embeds", + "semanticName": "negative_pooled_prompt_embeds", + "direction": "input", + "roles": ["value"], + "types": ["tensor"], + "required": false, + "hidden": true, + "semantics": { + "kind": "opaque", + "scope": "QwenImageInpaintPipeline", + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "masked_image_latents", + "semanticName": "masked_image_latents", + "direction": "input", + "roles": ["value"], + "types": ["tensor"], + "required": false, + "hidden": true, + "semantics": { + "kind": "latents", + "scope": "QwenImageInpaintPipeline", + "state": null, + "owner": "same_loader", + "members": [] + } + }, + { + "name": "generator", + "semanticName": "generator", + "direction": "input", + "roles": ["value"], + "types": ["generator"], + "required": false, + "hidden": true, + "semantics": { + "kind": "opaque", + "scope": "QwenImageInpaintPipeline", + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "prompt_2", + "semanticName": "prompt_2", + "direction": "input", + "roles": ["value"], + "types": ["text"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "negative_prompt_2", + "semanticName": "negative_prompt_2", + "direction": "input", + "roles": ["value"], + "types": ["text"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "num_images_per_prompt", + "semanticName": "num_images_per_prompt", + "direction": "input", + "roles": ["value"], + "types": ["int"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "sigmas", + "semanticName": "sigmas", + "direction": "input", + "roles": ["value"], + "types": ["float"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "text_encoder_out_layers", + "semanticName": "text_encoder_out_layers", + "direction": "input", + "roles": ["value"], + "types": ["int"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "caption_upsample_temperature", + "semanticName": "caption_upsample_temperature", + "direction": "input", + "roles": ["value"], + "types": ["float"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "max_area", + "semanticName": "max_area", + "direction": "input", + "roles": ["value"], + "types": ["int"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "_auto_resize", + "semanticName": "_auto_resize", + "direction": "input", + "roles": ["value"], + "types": ["bool"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "image_reference", + "semanticName": "image_reference", + "direction": "input", + "roles": ["value"], + "types": ["image"], + "required": false, + "hidden": true, + "semantics": { + "kind": "media", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "prompt_embeds_scale", + "semanticName": "prompt_embeds_scale", + "direction": "input", + "roles": ["value"], + "types": ["float"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "pooled_prompt_embeds_scale", + "semanticName": "pooled_prompt_embeds_scale", + "direction": "input", + "roles": ["value"], + "types": ["float"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "joint_attention_kwargs", + "semanticName": "joint_attention_kwargs", + "direction": "input", + "roles": ["value"], + "types": ["object"], + "required": false, + "hidden": true, + "semantics": { + "kind": "opaque", + "scope": "QwenImageInpaintPipeline", + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "attention_kwargs", + "semanticName": "attention_kwargs", + "direction": "input", + "roles": ["value"], + "types": ["object"], + "required": false, + "hidden": true, + "semantics": { + "kind": "opaque", + "scope": "QwenImageInpaintPipeline", + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "ip_adapter_image", + "semanticName": "ip_adapter_image", + "direction": "input", + "roles": ["value"], + "types": ["image"], + "required": false, + "hidden": true, + "semantics": { + "kind": "media", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "negative_ip_adapter_image", + "semanticName": "negative_ip_adapter_image", + "direction": "input", + "roles": ["value"], + "types": ["image"], + "required": false, + "hidden": true, + "semantics": { + "kind": "media", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "ip_adapter_image_embeds", + "semanticName": "ip_adapter_image_embeds", + "direction": "input", + "roles": ["value"], + "types": ["tensor"], + "required": false, + "hidden": true, + "semantics": { + "kind": "opaque", + "scope": "QwenImageInpaintPipeline", + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "negative_ip_adapter_image_embeds", + "semanticName": "negative_ip_adapter_image_embeds", + "direction": "input", + "roles": ["value"], + "types": ["tensor"], + "required": false, + "hidden": true, + "semantics": { + "kind": "opaque", + "scope": "QwenImageInpaintPipeline", + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "control_mode", + "semanticName": "control_mode", + "direction": "input", + "roles": ["value"], + "types": ["int"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "use_kv_cache", + "semanticName": "use_kv_cache", + "direction": "input", + "roles": ["value"], + "types": ["bool"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "pipeline", + "semanticName": "pipeline", + "direction": "input", + "roles": ["pipeline"], + "types": ["image_diffusion_pipeline"], + "required": true, + "hidden": false, + "semantics": { + "kind": "pipeline", + "scope": "QwenImageInpaintPipeline", + "state": null, + "owner": "same_loader", + "members": [] + } + }, + { + "name": "image_contract", + "semanticName": "image_contract", + "direction": "input", + "roles": ["value"], + "types": ["object"], + "required": false, + "hidden": true, + "semantics": { + "kind": "opaque", + "scope": "QwenImageInpaintPipeline", + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "prompt", + "semanticName": "prompt", + "direction": "input", + "roles": ["value"], + "types": ["text"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "negative_prompt", + "semanticName": "negative_prompt", + "direction": "input", + "roles": ["value"], + "types": ["text"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "width", + "semanticName": "width", + "direction": "input", + "roles": ["value"], + "types": ["int"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "height", + "semanticName": "height", + "direction": "input", + "roles": ["value"], + "types": ["int"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "seed", + "semanticName": "seed", + "direction": "input", + "roles": ["value"], + "types": ["int"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "num_inference_steps", + "semanticName": "num_inference_steps", + "direction": "input", + "roles": ["value"], + "types": ["int"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "guidance_scale", + "semanticName": "guidance_scale", + "direction": "input", + "roles": ["value"], + "types": ["float"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [], + "control": { + "technique": "classifier_free", + "parameter": "scale", + "compatibilityScope": "diffusers.qwen.normalized_cfg.v1", + "scaleMeaning": "cfg_prediction_mix", + "enabled": "scale_gt_one", + "enabledField": "guidance_scale", + "formulation": "diffusers", + "formulationField": null, + "selectorField": null, + "selectorValue": null, + "negativeConditioning": "pipeline_scoped_when_enabled", + "negativeConditioningScope": "QwenImageInpaintPipeline", + "negativePromptField": "negative_prompt", + "negativePromptPolicy": "empty_string_is_condition" + } + } + }, + { + "name": "image_guidance_scale", + "semanticName": "image_guidance_scale", + "direction": "input", + "roles": ["value"], + "types": ["float"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "use_guidance_scale_2", + "semanticName": "use_guidance_scale_2", + "direction": "input", + "roles": ["value"], + "types": ["bool"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "guidance_scale_2", + "semanticName": "guidance_scale_2", + "direction": "input", + "roles": ["value"], + "types": ["float"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "pag_scale", + "semanticName": "pag_scale", + "direction": "input", + "roles": ["value"], + "types": ["float"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "pag_adaptive_scale", + "semanticName": "pag_adaptive_scale", + "direction": "input", + "roles": ["value"], + "types": ["float"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "control_guidance_start", + "semanticName": "control_guidance_start", + "direction": "input", + "roles": ["value"], + "types": ["float"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "control_guidance_end", + "semanticName": "control_guidance_end", + "direction": "input", + "roles": ["value"], + "types": ["float"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "layers", + "semanticName": "layers", + "direction": "input", + "roles": ["value"], + "types": ["int"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "resolution", + "semanticName": "resolution", + "direction": "input", + "roles": ["value"], + "types": ["int"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "cfg_normalize", + "semanticName": "cfg_normalize", + "direction": "input", + "roles": ["value"], + "types": ["bool"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "use_en_prompt", + "semanticName": "use_en_prompt", + "direction": "input", + "roles": ["value"], + "types": ["bool"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "strength", + "semanticName": "strength", + "direction": "input", + "roles": ["value"], + "types": ["float"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "padding_mask_crop", + "semanticName": "padding_mask_crop", + "direction": "input", + "roles": ["value"], + "types": ["int"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "max_sequence_length", + "semanticName": "max_sequence_length", + "direction": "input", + "roles": ["value"], + "types": ["int"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "output_type", + "semanticName": "output_type", + "direction": "input", + "roles": ["value"], + "types": ["string"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "images", + "semanticName": "images", + "direction": "output", + "roles": ["value"], + "types": ["image"], + "required": false, + "hidden": false, + "semantics": { + "kind": "media", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "latents_out", + "semanticName": "latents_out", + "direction": "output", + "roles": ["value"], + "types": ["tensor"], + "required": false, + "hidden": true, + "semantics": { + "kind": "latents", + "scope": "QwenImageInpaintPipeline", + "state": null, + "owner": "same_loader", + "members": [] + } + }, + { + "name": "width_out", + "semanticName": "width_out", + "direction": "output", + "roles": ["value"], + "types": ["int"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "height_out", + "semanticName": "height_out", + "direction": "output", + "roles": ["value"], + "types": ["int"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "image", + "semanticName": "image", + "direction": "input", + "roles": ["value"], + "types": ["image"], + "required": true, + "hidden": false, + "semantics": { + "kind": "media", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "reference_strength", + "semanticName": "reference_strength", + "direction": "input", + "roles": ["value"], + "types": ["float"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "mask_image", + "semanticName": "mask_image", + "direction": "input", + "roles": ["value"], + "types": ["image"], + "required": true, + "hidden": false, + "semantics": { + "kind": "media", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + } + ], + "workflowId": null, + "binding": { + "values": {}, + "pipelineClass": "QwenImageInpaintPipeline" + } + }, + { + "pipelineClass": "QwenImageEditPipeline", + "task": "edit_image", + "operationId": "diffusion.generate_image", + "nodeKey": "modules.DiffusersImage.Edit", + "nodeType": "pipeline", + "blockName": null, + "decomposition": "pipeline", + "support": "declared", + "ports": [ + { + "name": "latents", + "semanticName": "latents", + "direction": "input", + "roles": ["value"], + "types": ["tensor"], + "required": false, + "hidden": true, + "semantics": { + "kind": "latents", + "scope": "QwenImageEditPipeline", + "state": null, + "owner": "same_loader", + "members": [] + } + }, + { + "name": "prompt_embeds", + "semanticName": "prompt_embeds", + "direction": "input", + "roles": ["value"], + "types": ["tensor"], + "required": false, + "hidden": true, + "semantics": { + "kind": "opaque", + "scope": "QwenImageEditPipeline", + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "pooled_prompt_embeds", + "semanticName": "pooled_prompt_embeds", + "direction": "input", + "roles": ["value"], + "types": ["tensor"], + "required": false, + "hidden": true, + "semantics": { + "kind": "opaque", + "scope": "QwenImageEditPipeline", + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "negative_prompt_embeds", + "semanticName": "negative_prompt_embeds", + "direction": "input", + "roles": ["value"], + "types": ["tensor"], + "required": false, + "hidden": true, + "semantics": { + "kind": "opaque", + "scope": "QwenImageEditPipeline", + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "negative_pooled_prompt_embeds", + "semanticName": "negative_pooled_prompt_embeds", + "direction": "input", + "roles": ["value"], + "types": ["tensor"], + "required": false, + "hidden": true, + "semantics": { + "kind": "opaque", + "scope": "QwenImageEditPipeline", + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "masked_image_latents", + "semanticName": "masked_image_latents", + "direction": "input", + "roles": ["value"], + "types": ["tensor"], + "required": false, + "hidden": true, + "semantics": { + "kind": "latents", + "scope": "QwenImageEditPipeline", + "state": null, + "owner": "same_loader", + "members": [] + } + }, + { + "name": "generator", + "semanticName": "generator", + "direction": "input", + "roles": ["value"], + "types": ["generator"], + "required": false, + "hidden": true, + "semantics": { + "kind": "opaque", + "scope": "QwenImageEditPipeline", + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "prompt_2", + "semanticName": "prompt_2", + "direction": "input", + "roles": ["value"], + "types": ["text"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "negative_prompt_2", + "semanticName": "negative_prompt_2", + "direction": "input", + "roles": ["value"], + "types": ["text"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "num_images_per_prompt", + "semanticName": "num_images_per_prompt", + "direction": "input", + "roles": ["value"], + "types": ["int"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "sigmas", + "semanticName": "sigmas", + "direction": "input", + "roles": ["value"], + "types": ["float"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "text_encoder_out_layers", + "semanticName": "text_encoder_out_layers", + "direction": "input", + "roles": ["value"], + "types": ["int"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "caption_upsample_temperature", + "semanticName": "caption_upsample_temperature", + "direction": "input", + "roles": ["value"], + "types": ["float"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "max_area", + "semanticName": "max_area", + "direction": "input", + "roles": ["value"], + "types": ["int"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "_auto_resize", + "semanticName": "_auto_resize", + "direction": "input", + "roles": ["value"], + "types": ["bool"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "image_reference", + "semanticName": "image_reference", + "direction": "input", + "roles": ["value"], + "types": ["image"], + "required": false, + "hidden": true, + "semantics": { + "kind": "media", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "prompt_embeds_scale", + "semanticName": "prompt_embeds_scale", + "direction": "input", + "roles": ["value"], + "types": ["float"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "pooled_prompt_embeds_scale", + "semanticName": "pooled_prompt_embeds_scale", + "direction": "input", + "roles": ["value"], + "types": ["float"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "joint_attention_kwargs", + "semanticName": "joint_attention_kwargs", + "direction": "input", + "roles": ["value"], + "types": ["object"], + "required": false, + "hidden": true, + "semantics": { + "kind": "opaque", + "scope": "QwenImageEditPipeline", + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "attention_kwargs", + "semanticName": "attention_kwargs", + "direction": "input", + "roles": ["value"], + "types": ["object"], + "required": false, + "hidden": true, + "semantics": { + "kind": "opaque", + "scope": "QwenImageEditPipeline", + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "ip_adapter_image", + "semanticName": "ip_adapter_image", + "direction": "input", + "roles": ["value"], + "types": ["image"], + "required": false, + "hidden": true, + "semantics": { + "kind": "media", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "negative_ip_adapter_image", + "semanticName": "negative_ip_adapter_image", + "direction": "input", + "roles": ["value"], + "types": ["image"], + "required": false, + "hidden": true, + "semantics": { + "kind": "media", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "ip_adapter_image_embeds", + "semanticName": "ip_adapter_image_embeds", + "direction": "input", + "roles": ["value"], + "types": ["tensor"], + "required": false, + "hidden": true, + "semantics": { + "kind": "opaque", + "scope": "QwenImageEditPipeline", + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "negative_ip_adapter_image_embeds", + "semanticName": "negative_ip_adapter_image_embeds", + "direction": "input", + "roles": ["value"], + "types": ["tensor"], + "required": false, + "hidden": true, + "semantics": { + "kind": "opaque", + "scope": "QwenImageEditPipeline", + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "control_mode", + "semanticName": "control_mode", + "direction": "input", + "roles": ["value"], + "types": ["int"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "use_kv_cache", + "semanticName": "use_kv_cache", + "direction": "input", + "roles": ["value"], + "types": ["bool"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "pipeline", + "semanticName": "pipeline", + "direction": "input", + "roles": ["pipeline"], + "types": ["image_diffusion_pipeline"], + "required": true, + "hidden": false, + "semantics": { + "kind": "pipeline", + "scope": "QwenImageEditPipeline", + "state": null, + "owner": "same_loader", + "members": [] + } + }, + { + "name": "image_contract", + "semanticName": "image_contract", + "direction": "input", + "roles": ["value"], + "types": ["object"], + "required": false, + "hidden": true, + "semantics": { + "kind": "opaque", + "scope": "QwenImageEditPipeline", + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "prompt", + "semanticName": "prompt", + "direction": "input", + "roles": ["value"], + "types": ["text"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "negative_prompt", + "semanticName": "negative_prompt", + "direction": "input", + "roles": ["value"], + "types": ["text"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "width", + "semanticName": "width", + "direction": "input", + "roles": ["value"], + "types": ["int"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "height", + "semanticName": "height", + "direction": "input", + "roles": ["value"], + "types": ["int"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "seed", + "semanticName": "seed", + "direction": "input", + "roles": ["value"], + "types": ["int"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "num_inference_steps", + "semanticName": "num_inference_steps", + "direction": "input", + "roles": ["value"], + "types": ["int"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "guidance_scale", + "semanticName": "guidance_scale", + "direction": "input", + "roles": ["value"], + "types": ["float"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [], + "control": { + "technique": "classifier_free", + "parameter": "scale", + "compatibilityScope": "diffusers.qwen.normalized_cfg.v1", + "scaleMeaning": "cfg_prediction_mix", + "enabled": "scale_gt_one", + "enabledField": "guidance_scale", + "formulation": "diffusers", + "formulationField": null, + "selectorField": null, + "selectorValue": null, + "negativeConditioning": "pipeline_scoped_when_enabled", + "negativeConditioningScope": "QwenImageEditPipeline", + "negativePromptField": "negative_prompt", + "negativePromptPolicy": "empty_string_is_condition" + } + } + }, + { + "name": "image_guidance_scale", + "semanticName": "image_guidance_scale", + "direction": "input", + "roles": ["value"], + "types": ["float"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "use_guidance_scale_2", + "semanticName": "use_guidance_scale_2", + "direction": "input", + "roles": ["value"], + "types": ["bool"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "guidance_scale_2", + "semanticName": "guidance_scale_2", + "direction": "input", + "roles": ["value"], + "types": ["float"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "pag_scale", + "semanticName": "pag_scale", + "direction": "input", + "roles": ["value"], + "types": ["float"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "pag_adaptive_scale", + "semanticName": "pag_adaptive_scale", + "direction": "input", + "roles": ["value"], + "types": ["float"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "control_guidance_start", + "semanticName": "control_guidance_start", + "direction": "input", + "roles": ["value"], + "types": ["float"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "control_guidance_end", + "semanticName": "control_guidance_end", + "direction": "input", + "roles": ["value"], + "types": ["float"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "layers", + "semanticName": "layers", + "direction": "input", + "roles": ["value"], + "types": ["int"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "resolution", + "semanticName": "resolution", + "direction": "input", + "roles": ["value"], + "types": ["int"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "cfg_normalize", + "semanticName": "cfg_normalize", + "direction": "input", + "roles": ["value"], + "types": ["bool"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "use_en_prompt", + "semanticName": "use_en_prompt", + "direction": "input", + "roles": ["value"], + "types": ["bool"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "strength", + "semanticName": "strength", + "direction": "input", + "roles": ["value"], + "types": ["float"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "padding_mask_crop", + "semanticName": "padding_mask_crop", + "direction": "input", + "roles": ["value"], + "types": ["int"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "max_sequence_length", + "semanticName": "max_sequence_length", + "direction": "input", + "roles": ["value"], + "types": ["int"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "output_type", + "semanticName": "output_type", + "direction": "input", + "roles": ["value"], + "types": ["string"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "images", + "semanticName": "images", + "direction": "output", + "roles": ["value"], + "types": ["image"], + "required": false, + "hidden": false, + "semantics": { + "kind": "media", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "latents_out", + "semanticName": "latents_out", + "direction": "output", + "roles": ["value"], + "types": ["tensor"], + "required": false, + "hidden": true, + "semantics": { + "kind": "latents", + "scope": "QwenImageEditPipeline", + "state": null, + "owner": "same_loader", + "members": [] + } + }, + { + "name": "width_out", + "semanticName": "width_out", + "direction": "output", + "roles": ["value"], + "types": ["int"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "height_out", + "semanticName": "height_out", + "direction": "output", + "roles": ["value"], + "types": ["int"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "image", + "semanticName": "image", + "direction": "input", + "roles": ["value"], + "types": ["image"], + "required": true, + "hidden": false, + "semantics": { + "kind": "media", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "reference_strength", + "semanticName": "reference_strength", + "direction": "input", + "roles": ["value"], + "types": ["float"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + } + ], + "workflowId": null, + "binding": { + "values": {}, + "pipelineClass": "QwenImageEditPipeline" + } + }, + { + "pipelineClass": "QwenImageEditPlusPipeline", + "task": "edit_image", + "operationId": "diffusion.generate_image", + "nodeKey": "modules.DiffusersImage.Edit", + "nodeType": "pipeline", + "blockName": null, + "decomposition": "pipeline", + "support": "declared", + "ports": [ + { + "name": "latents", + "semanticName": "latents", + "direction": "input", + "roles": ["value"], + "types": ["tensor"], + "required": false, + "hidden": true, + "semantics": { + "kind": "latents", + "scope": "QwenImageEditPlusPipeline", + "state": null, + "owner": "same_loader", + "members": [] + } + }, + { + "name": "prompt_embeds", + "semanticName": "prompt_embeds", + "direction": "input", + "roles": ["value"], + "types": ["tensor"], + "required": false, + "hidden": true, + "semantics": { + "kind": "opaque", + "scope": "QwenImageEditPlusPipeline", + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "pooled_prompt_embeds", + "semanticName": "pooled_prompt_embeds", + "direction": "input", + "roles": ["value"], + "types": ["tensor"], + "required": false, + "hidden": true, + "semantics": { + "kind": "opaque", + "scope": "QwenImageEditPlusPipeline", + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "negative_prompt_embeds", + "semanticName": "negative_prompt_embeds", + "direction": "input", + "roles": ["value"], + "types": ["tensor"], + "required": false, + "hidden": true, + "semantics": { + "kind": "opaque", + "scope": "QwenImageEditPlusPipeline", + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "negative_pooled_prompt_embeds", + "semanticName": "negative_pooled_prompt_embeds", + "direction": "input", + "roles": ["value"], + "types": ["tensor"], + "required": false, + "hidden": true, + "semantics": { + "kind": "opaque", + "scope": "QwenImageEditPlusPipeline", + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "masked_image_latents", + "semanticName": "masked_image_latents", + "direction": "input", + "roles": ["value"], + "types": ["tensor"], + "required": false, + "hidden": true, + "semantics": { + "kind": "latents", + "scope": "QwenImageEditPlusPipeline", + "state": null, + "owner": "same_loader", + "members": [] + } + }, + { + "name": "generator", + "semanticName": "generator", + "direction": "input", + "roles": ["value"], + "types": ["generator"], + "required": false, + "hidden": true, + "semantics": { + "kind": "opaque", + "scope": "QwenImageEditPlusPipeline", + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "prompt_2", + "semanticName": "prompt_2", + "direction": "input", + "roles": ["value"], + "types": ["text"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "negative_prompt_2", + "semanticName": "negative_prompt_2", + "direction": "input", + "roles": ["value"], + "types": ["text"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "num_images_per_prompt", + "semanticName": "num_images_per_prompt", + "direction": "input", + "roles": ["value"], + "types": ["int"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "sigmas", + "semanticName": "sigmas", + "direction": "input", + "roles": ["value"], + "types": ["float"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "text_encoder_out_layers", + "semanticName": "text_encoder_out_layers", + "direction": "input", + "roles": ["value"], + "types": ["int"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "caption_upsample_temperature", + "semanticName": "caption_upsample_temperature", + "direction": "input", + "roles": ["value"], + "types": ["float"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "max_area", + "semanticName": "max_area", + "direction": "input", + "roles": ["value"], + "types": ["int"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "_auto_resize", + "semanticName": "_auto_resize", + "direction": "input", + "roles": ["value"], + "types": ["bool"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "image_reference", + "semanticName": "image_reference", + "direction": "input", + "roles": ["value"], + "types": ["image"], + "required": false, + "hidden": true, + "semantics": { + "kind": "media", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "prompt_embeds_scale", + "semanticName": "prompt_embeds_scale", + "direction": "input", + "roles": ["value"], + "types": ["float"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "pooled_prompt_embeds_scale", + "semanticName": "pooled_prompt_embeds_scale", + "direction": "input", + "roles": ["value"], + "types": ["float"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "joint_attention_kwargs", + "semanticName": "joint_attention_kwargs", + "direction": "input", + "roles": ["value"], + "types": ["object"], + "required": false, + "hidden": true, + "semantics": { + "kind": "opaque", + "scope": "QwenImageEditPlusPipeline", + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "attention_kwargs", + "semanticName": "attention_kwargs", + "direction": "input", + "roles": ["value"], + "types": ["object"], + "required": false, + "hidden": true, + "semantics": { + "kind": "opaque", + "scope": "QwenImageEditPlusPipeline", + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "ip_adapter_image", + "semanticName": "ip_adapter_image", + "direction": "input", + "roles": ["value"], + "types": ["image"], + "required": false, + "hidden": true, + "semantics": { + "kind": "media", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "negative_ip_adapter_image", + "semanticName": "negative_ip_adapter_image", + "direction": "input", + "roles": ["value"], + "types": ["image"], + "required": false, + "hidden": true, + "semantics": { + "kind": "media", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "ip_adapter_image_embeds", + "semanticName": "ip_adapter_image_embeds", + "direction": "input", + "roles": ["value"], + "types": ["tensor"], + "required": false, + "hidden": true, + "semantics": { + "kind": "opaque", + "scope": "QwenImageEditPlusPipeline", + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "negative_ip_adapter_image_embeds", + "semanticName": "negative_ip_adapter_image_embeds", + "direction": "input", + "roles": ["value"], + "types": ["tensor"], + "required": false, + "hidden": true, + "semantics": { + "kind": "opaque", + "scope": "QwenImageEditPlusPipeline", + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "control_mode", + "semanticName": "control_mode", + "direction": "input", + "roles": ["value"], + "types": ["int"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "use_kv_cache", + "semanticName": "use_kv_cache", + "direction": "input", + "roles": ["value"], + "types": ["bool"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "pipeline", + "semanticName": "pipeline", + "direction": "input", + "roles": ["pipeline"], + "types": ["image_diffusion_pipeline"], + "required": true, + "hidden": false, + "semantics": { + "kind": "pipeline", + "scope": "QwenImageEditPlusPipeline", + "state": null, + "owner": "same_loader", + "members": [] + } + }, + { + "name": "image_contract", + "semanticName": "image_contract", + "direction": "input", + "roles": ["value"], + "types": ["object"], + "required": false, + "hidden": true, + "semantics": { + "kind": "opaque", + "scope": "QwenImageEditPlusPipeline", + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "prompt", + "semanticName": "prompt", + "direction": "input", + "roles": ["value"], + "types": ["text"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "negative_prompt", + "semanticName": "negative_prompt", + "direction": "input", + "roles": ["value"], + "types": ["text"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "width", + "semanticName": "width", + "direction": "input", + "roles": ["value"], + "types": ["int"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "height", + "semanticName": "height", + "direction": "input", + "roles": ["value"], + "types": ["int"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "seed", + "semanticName": "seed", + "direction": "input", + "roles": ["value"], + "types": ["int"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "num_inference_steps", + "semanticName": "num_inference_steps", + "direction": "input", + "roles": ["value"], + "types": ["int"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "guidance_scale", + "semanticName": "guidance_scale", + "direction": "input", + "roles": ["value"], + "types": ["float"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [], + "control": { + "technique": "classifier_free", + "parameter": "scale", + "compatibilityScope": "diffusers.qwen.normalized_cfg.v1", + "scaleMeaning": "cfg_prediction_mix", + "enabled": "scale_gt_one", + "enabledField": "guidance_scale", + "formulation": "diffusers", + "formulationField": null, + "selectorField": null, + "selectorValue": null, + "negativeConditioning": "pipeline_scoped_when_enabled", + "negativeConditioningScope": "QwenImageEditPlusPipeline", + "negativePromptField": "negative_prompt", + "negativePromptPolicy": "empty_string_is_condition" + } + } + }, + { + "name": "image_guidance_scale", + "semanticName": "image_guidance_scale", + "direction": "input", + "roles": ["value"], + "types": ["float"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "use_guidance_scale_2", + "semanticName": "use_guidance_scale_2", + "direction": "input", + "roles": ["value"], + "types": ["bool"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "guidance_scale_2", + "semanticName": "guidance_scale_2", + "direction": "input", + "roles": ["value"], + "types": ["float"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "pag_scale", + "semanticName": "pag_scale", + "direction": "input", + "roles": ["value"], + "types": ["float"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "pag_adaptive_scale", + "semanticName": "pag_adaptive_scale", + "direction": "input", + "roles": ["value"], + "types": ["float"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "control_guidance_start", + "semanticName": "control_guidance_start", + "direction": "input", + "roles": ["value"], + "types": ["float"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "control_guidance_end", + "semanticName": "control_guidance_end", + "direction": "input", + "roles": ["value"], + "types": ["float"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "layers", + "semanticName": "layers", + "direction": "input", + "roles": ["value"], + "types": ["int"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "resolution", + "semanticName": "resolution", + "direction": "input", + "roles": ["value"], + "types": ["int"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "cfg_normalize", + "semanticName": "cfg_normalize", + "direction": "input", + "roles": ["value"], + "types": ["bool"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "use_en_prompt", + "semanticName": "use_en_prompt", + "direction": "input", + "roles": ["value"], + "types": ["bool"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "strength", + "semanticName": "strength", + "direction": "input", + "roles": ["value"], + "types": ["float"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "padding_mask_crop", + "semanticName": "padding_mask_crop", + "direction": "input", + "roles": ["value"], + "types": ["int"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "max_sequence_length", + "semanticName": "max_sequence_length", + "direction": "input", + "roles": ["value"], + "types": ["int"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "output_type", + "semanticName": "output_type", + "direction": "input", + "roles": ["value"], + "types": ["string"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "images", + "semanticName": "images", + "direction": "output", + "roles": ["value"], + "types": ["image"], + "required": false, + "hidden": false, + "semantics": { + "kind": "media", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "latents_out", + "semanticName": "latents_out", + "direction": "output", + "roles": ["value"], + "types": ["tensor"], + "required": false, + "hidden": true, + "semantics": { + "kind": "latents", + "scope": "QwenImageEditPlusPipeline", + "state": null, + "owner": "same_loader", + "members": [] + } + }, + { + "name": "width_out", + "semanticName": "width_out", + "direction": "output", + "roles": ["value"], + "types": ["int"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "height_out", + "semanticName": "height_out", + "direction": "output", + "roles": ["value"], + "types": ["int"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "image", + "semanticName": "image", + "direction": "input", + "roles": ["value"], + "types": ["image"], + "required": true, + "hidden": false, + "semantics": { + "kind": "media", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "reference_strength", + "semanticName": "reference_strength", + "direction": "input", + "roles": ["value"], + "types": ["float"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + } + ], + "workflowId": null, + "binding": { + "values": {}, + "pipelineClass": "QwenImageEditPlusPipeline" + } + }, + { + "pipelineClass": "QwenImageEditInpaintPipeline", + "task": "inpaint", + "operationId": "diffusion.generate_image", + "nodeKey": "modules.DiffusersImage.Inpaint", + "nodeType": "pipeline", + "blockName": null, + "decomposition": "pipeline", + "support": "declared", + "ports": [ + { + "name": "latents", + "semanticName": "latents", + "direction": "input", + "roles": ["value"], + "types": ["tensor"], + "required": false, + "hidden": true, + "semantics": { + "kind": "latents", + "scope": "QwenImageEditInpaintPipeline", + "state": null, + "owner": "same_loader", + "members": [] + } + }, + { + "name": "prompt_embeds", + "semanticName": "prompt_embeds", + "direction": "input", + "roles": ["value"], + "types": ["tensor"], + "required": false, + "hidden": true, + "semantics": { + "kind": "opaque", + "scope": "QwenImageEditInpaintPipeline", + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "pooled_prompt_embeds", + "semanticName": "pooled_prompt_embeds", + "direction": "input", + "roles": ["value"], + "types": ["tensor"], + "required": false, + "hidden": true, + "semantics": { + "kind": "opaque", + "scope": "QwenImageEditInpaintPipeline", + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "negative_prompt_embeds", + "semanticName": "negative_prompt_embeds", + "direction": "input", + "roles": ["value"], + "types": ["tensor"], + "required": false, + "hidden": true, + "semantics": { + "kind": "opaque", + "scope": "QwenImageEditInpaintPipeline", + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "negative_pooled_prompt_embeds", + "semanticName": "negative_pooled_prompt_embeds", + "direction": "input", + "roles": ["value"], + "types": ["tensor"], + "required": false, + "hidden": true, + "semantics": { + "kind": "opaque", + "scope": "QwenImageEditInpaintPipeline", + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "masked_image_latents", + "semanticName": "masked_image_latents", + "direction": "input", + "roles": ["value"], + "types": ["tensor"], + "required": false, + "hidden": true, + "semantics": { + "kind": "latents", + "scope": "QwenImageEditInpaintPipeline", + "state": null, + "owner": "same_loader", + "members": [] + } + }, + { + "name": "generator", + "semanticName": "generator", + "direction": "input", + "roles": ["value"], + "types": ["generator"], + "required": false, + "hidden": true, + "semantics": { + "kind": "opaque", + "scope": "QwenImageEditInpaintPipeline", + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "prompt_2", + "semanticName": "prompt_2", + "direction": "input", + "roles": ["value"], + "types": ["text"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "negative_prompt_2", + "semanticName": "negative_prompt_2", + "direction": "input", + "roles": ["value"], + "types": ["text"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "num_images_per_prompt", + "semanticName": "num_images_per_prompt", + "direction": "input", + "roles": ["value"], + "types": ["int"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "sigmas", + "semanticName": "sigmas", + "direction": "input", + "roles": ["value"], + "types": ["float"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "text_encoder_out_layers", + "semanticName": "text_encoder_out_layers", + "direction": "input", + "roles": ["value"], + "types": ["int"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "caption_upsample_temperature", + "semanticName": "caption_upsample_temperature", + "direction": "input", + "roles": ["value"], + "types": ["float"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "max_area", + "semanticName": "max_area", + "direction": "input", + "roles": ["value"], + "types": ["int"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "_auto_resize", + "semanticName": "_auto_resize", + "direction": "input", + "roles": ["value"], + "types": ["bool"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "image_reference", + "semanticName": "image_reference", + "direction": "input", + "roles": ["value"], + "types": ["image"], + "required": false, + "hidden": true, + "semantics": { + "kind": "media", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "prompt_embeds_scale", + "semanticName": "prompt_embeds_scale", + "direction": "input", + "roles": ["value"], + "types": ["float"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "pooled_prompt_embeds_scale", + "semanticName": "pooled_prompt_embeds_scale", + "direction": "input", + "roles": ["value"], + "types": ["float"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "joint_attention_kwargs", + "semanticName": "joint_attention_kwargs", + "direction": "input", + "roles": ["value"], + "types": ["object"], + "required": false, + "hidden": true, + "semantics": { + "kind": "opaque", + "scope": "QwenImageEditInpaintPipeline", + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "attention_kwargs", + "semanticName": "attention_kwargs", + "direction": "input", + "roles": ["value"], + "types": ["object"], + "required": false, + "hidden": true, + "semantics": { + "kind": "opaque", + "scope": "QwenImageEditInpaintPipeline", + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "ip_adapter_image", + "semanticName": "ip_adapter_image", + "direction": "input", + "roles": ["value"], + "types": ["image"], + "required": false, + "hidden": true, + "semantics": { + "kind": "media", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "negative_ip_adapter_image", + "semanticName": "negative_ip_adapter_image", + "direction": "input", + "roles": ["value"], + "types": ["image"], + "required": false, + "hidden": true, + "semantics": { + "kind": "media", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "ip_adapter_image_embeds", + "semanticName": "ip_adapter_image_embeds", + "direction": "input", + "roles": ["value"], + "types": ["tensor"], + "required": false, + "hidden": true, + "semantics": { + "kind": "opaque", + "scope": "QwenImageEditInpaintPipeline", + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "negative_ip_adapter_image_embeds", + "semanticName": "negative_ip_adapter_image_embeds", + "direction": "input", + "roles": ["value"], + "types": ["tensor"], + "required": false, + "hidden": true, + "semantics": { + "kind": "opaque", + "scope": "QwenImageEditInpaintPipeline", + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "control_mode", + "semanticName": "control_mode", + "direction": "input", + "roles": ["value"], + "types": ["int"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "use_kv_cache", + "semanticName": "use_kv_cache", + "direction": "input", + "roles": ["value"], + "types": ["bool"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "pipeline", + "semanticName": "pipeline", + "direction": "input", + "roles": ["pipeline"], + "types": ["image_diffusion_pipeline"], + "required": true, + "hidden": false, + "semantics": { + "kind": "pipeline", + "scope": "QwenImageEditInpaintPipeline", + "state": null, + "owner": "same_loader", + "members": [] + } + }, + { + "name": "image_contract", + "semanticName": "image_contract", + "direction": "input", + "roles": ["value"], + "types": ["object"], + "required": false, + "hidden": true, + "semantics": { + "kind": "opaque", + "scope": "QwenImageEditInpaintPipeline", + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "prompt", + "semanticName": "prompt", + "direction": "input", + "roles": ["value"], + "types": ["text"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "negative_prompt", + "semanticName": "negative_prompt", + "direction": "input", + "roles": ["value"], + "types": ["text"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "width", + "semanticName": "width", + "direction": "input", + "roles": ["value"], + "types": ["int"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "height", + "semanticName": "height", + "direction": "input", + "roles": ["value"], + "types": ["int"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "seed", + "semanticName": "seed", + "direction": "input", + "roles": ["value"], + "types": ["int"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "num_inference_steps", + "semanticName": "num_inference_steps", + "direction": "input", + "roles": ["value"], + "types": ["int"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "guidance_scale", + "semanticName": "guidance_scale", + "direction": "input", + "roles": ["value"], + "types": ["float"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [], + "control": { + "technique": "classifier_free", + "parameter": "scale", + "compatibilityScope": "diffusers.qwen.normalized_cfg.v1", + "scaleMeaning": "cfg_prediction_mix", + "enabled": "scale_gt_one", + "enabledField": "guidance_scale", + "formulation": "diffusers", + "formulationField": null, + "selectorField": null, + "selectorValue": null, + "negativeConditioning": "pipeline_scoped_when_enabled", + "negativeConditioningScope": "QwenImageEditInpaintPipeline", + "negativePromptField": "negative_prompt", + "negativePromptPolicy": "empty_string_is_condition" + } + } + }, + { + "name": "image_guidance_scale", + "semanticName": "image_guidance_scale", + "direction": "input", + "roles": ["value"], + "types": ["float"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "use_guidance_scale_2", + "semanticName": "use_guidance_scale_2", + "direction": "input", + "roles": ["value"], + "types": ["bool"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "guidance_scale_2", + "semanticName": "guidance_scale_2", + "direction": "input", + "roles": ["value"], + "types": ["float"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "pag_scale", + "semanticName": "pag_scale", + "direction": "input", + "roles": ["value"], + "types": ["float"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "pag_adaptive_scale", + "semanticName": "pag_adaptive_scale", + "direction": "input", + "roles": ["value"], + "types": ["float"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "control_guidance_start", + "semanticName": "control_guidance_start", + "direction": "input", + "roles": ["value"], + "types": ["float"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "control_guidance_end", + "semanticName": "control_guidance_end", + "direction": "input", + "roles": ["value"], + "types": ["float"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "layers", + "semanticName": "layers", + "direction": "input", + "roles": ["value"], + "types": ["int"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "resolution", + "semanticName": "resolution", + "direction": "input", + "roles": ["value"], + "types": ["int"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "cfg_normalize", + "semanticName": "cfg_normalize", + "direction": "input", + "roles": ["value"], + "types": ["bool"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "use_en_prompt", + "semanticName": "use_en_prompt", + "direction": "input", + "roles": ["value"], + "types": ["bool"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "strength", + "semanticName": "strength", + "direction": "input", + "roles": ["value"], + "types": ["float"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "padding_mask_crop", + "semanticName": "padding_mask_crop", + "direction": "input", + "roles": ["value"], + "types": ["int"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "max_sequence_length", + "semanticName": "max_sequence_length", + "direction": "input", + "roles": ["value"], + "types": ["int"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "output_type", + "semanticName": "output_type", + "direction": "input", + "roles": ["value"], + "types": ["string"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "images", + "semanticName": "images", + "direction": "output", + "roles": ["value"], + "types": ["image"], + "required": false, + "hidden": false, + "semantics": { + "kind": "media", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "latents_out", + "semanticName": "latents_out", + "direction": "output", + "roles": ["value"], + "types": ["tensor"], + "required": false, + "hidden": true, + "semantics": { + "kind": "latents", + "scope": "QwenImageEditInpaintPipeline", + "state": null, + "owner": "same_loader", + "members": [] + } + }, + { + "name": "width_out", + "semanticName": "width_out", + "direction": "output", + "roles": ["value"], + "types": ["int"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "height_out", + "semanticName": "height_out", + "direction": "output", + "roles": ["value"], + "types": ["int"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "image", + "semanticName": "image", + "direction": "input", + "roles": ["value"], + "types": ["image"], + "required": true, + "hidden": false, + "semantics": { + "kind": "media", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "reference_strength", + "semanticName": "reference_strength", + "direction": "input", + "roles": ["value"], + "types": ["float"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "mask_image", + "semanticName": "mask_image", + "direction": "input", + "roles": ["value"], + "types": ["image"], + "required": true, + "hidden": false, + "semantics": { + "kind": "media", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + } + ], + "workflowId": null, + "binding": { + "values": {}, + "pipelineClass": "QwenImageEditInpaintPipeline" + } + }, + { + "pipelineClass": "QwenImageControlNetPipeline", + "task": "control_image", + "operationId": "diffusion.generate_image", + "nodeKey": "modules.DiffusersImage.ControlGenerate", + "nodeType": "pipeline", + "blockName": null, + "decomposition": "pipeline", + "support": "declared", + "ports": [ + { + "name": "latents", + "semanticName": "latents", + "direction": "input", + "roles": ["value"], + "types": ["tensor"], + "required": false, + "hidden": true, + "semantics": { + "kind": "latents", + "scope": "QwenImageControlNetPipeline", + "state": null, + "owner": "same_loader", + "members": [] + } + }, + { + "name": "prompt_embeds", + "semanticName": "prompt_embeds", + "direction": "input", + "roles": ["value"], + "types": ["tensor"], + "required": false, + "hidden": true, + "semantics": { + "kind": "opaque", + "scope": "QwenImageControlNetPipeline", + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "pooled_prompt_embeds", + "semanticName": "pooled_prompt_embeds", + "direction": "input", + "roles": ["value"], + "types": ["tensor"], + "required": false, + "hidden": true, + "semantics": { + "kind": "opaque", + "scope": "QwenImageControlNetPipeline", + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "negative_prompt_embeds", + "semanticName": "negative_prompt_embeds", + "direction": "input", + "roles": ["value"], + "types": ["tensor"], + "required": false, + "hidden": true, + "semantics": { + "kind": "opaque", + "scope": "QwenImageControlNetPipeline", + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "negative_pooled_prompt_embeds", + "semanticName": "negative_pooled_prompt_embeds", + "direction": "input", + "roles": ["value"], + "types": ["tensor"], + "required": false, + "hidden": true, + "semantics": { + "kind": "opaque", + "scope": "QwenImageControlNetPipeline", + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "masked_image_latents", + "semanticName": "masked_image_latents", + "direction": "input", + "roles": ["value"], + "types": ["tensor"], + "required": false, + "hidden": true, + "semantics": { + "kind": "latents", + "scope": "QwenImageControlNetPipeline", + "state": null, + "owner": "same_loader", + "members": [] + } + }, + { + "name": "generator", + "semanticName": "generator", + "direction": "input", + "roles": ["value"], + "types": ["generator"], + "required": false, + "hidden": true, + "semantics": { + "kind": "opaque", + "scope": "QwenImageControlNetPipeline", + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "prompt_2", + "semanticName": "prompt_2", + "direction": "input", + "roles": ["value"], + "types": ["text"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "negative_prompt_2", + "semanticName": "negative_prompt_2", + "direction": "input", + "roles": ["value"], + "types": ["text"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "num_images_per_prompt", + "semanticName": "num_images_per_prompt", + "direction": "input", + "roles": ["value"], + "types": ["int"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "sigmas", + "semanticName": "sigmas", + "direction": "input", + "roles": ["value"], + "types": ["float"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "text_encoder_out_layers", + "semanticName": "text_encoder_out_layers", + "direction": "input", + "roles": ["value"], + "types": ["int"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "caption_upsample_temperature", + "semanticName": "caption_upsample_temperature", + "direction": "input", + "roles": ["value"], + "types": ["float"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "max_area", + "semanticName": "max_area", + "direction": "input", + "roles": ["value"], + "types": ["int"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "_auto_resize", + "semanticName": "_auto_resize", + "direction": "input", + "roles": ["value"], + "types": ["bool"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "image_reference", + "semanticName": "image_reference", + "direction": "input", + "roles": ["value"], + "types": ["image"], + "required": false, + "hidden": true, + "semantics": { + "kind": "media", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "prompt_embeds_scale", + "semanticName": "prompt_embeds_scale", + "direction": "input", + "roles": ["value"], + "types": ["float"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "pooled_prompt_embeds_scale", + "semanticName": "pooled_prompt_embeds_scale", + "direction": "input", + "roles": ["value"], + "types": ["float"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "joint_attention_kwargs", + "semanticName": "joint_attention_kwargs", + "direction": "input", + "roles": ["value"], + "types": ["object"], + "required": false, + "hidden": true, + "semantics": { + "kind": "opaque", + "scope": "QwenImageControlNetPipeline", + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "attention_kwargs", + "semanticName": "attention_kwargs", + "direction": "input", + "roles": ["value"], + "types": ["object"], + "required": false, + "hidden": true, + "semantics": { + "kind": "opaque", + "scope": "QwenImageControlNetPipeline", + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "ip_adapter_image", + "semanticName": "ip_adapter_image", + "direction": "input", + "roles": ["value"], + "types": ["image"], + "required": false, + "hidden": true, + "semantics": { + "kind": "media", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "negative_ip_adapter_image", + "semanticName": "negative_ip_adapter_image", + "direction": "input", + "roles": ["value"], + "types": ["image"], + "required": false, + "hidden": true, + "semantics": { + "kind": "media", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "ip_adapter_image_embeds", + "semanticName": "ip_adapter_image_embeds", + "direction": "input", + "roles": ["value"], + "types": ["tensor"], + "required": false, + "hidden": true, + "semantics": { + "kind": "opaque", + "scope": "QwenImageControlNetPipeline", + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "negative_ip_adapter_image_embeds", + "semanticName": "negative_ip_adapter_image_embeds", + "direction": "input", + "roles": ["value"], + "types": ["tensor"], + "required": false, + "hidden": true, + "semantics": { + "kind": "opaque", + "scope": "QwenImageControlNetPipeline", + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "control_mode", + "semanticName": "control_mode", + "direction": "input", + "roles": ["value"], + "types": ["int"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "use_kv_cache", + "semanticName": "use_kv_cache", + "direction": "input", + "roles": ["value"], + "types": ["bool"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "pipeline", + "semanticName": "pipeline", + "direction": "input", + "roles": ["pipeline"], + "types": ["image_diffusion_pipeline"], + "required": true, + "hidden": false, + "semantics": { + "kind": "pipeline", + "scope": "QwenImageControlNetPipeline", + "state": null, + "owner": "same_loader", + "members": [] + } + }, + { + "name": "image_contract", + "semanticName": "image_contract", + "direction": "input", + "roles": ["value"], + "types": ["object"], + "required": false, + "hidden": true, + "semantics": { + "kind": "opaque", + "scope": "QwenImageControlNetPipeline", + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "prompt", + "semanticName": "prompt", + "direction": "input", + "roles": ["value"], + "types": ["text"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "negative_prompt", + "semanticName": "negative_prompt", + "direction": "input", + "roles": ["value"], + "types": ["text"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "width", + "semanticName": "width", + "direction": "input", + "roles": ["value"], + "types": ["int"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "height", + "semanticName": "height", + "direction": "input", + "roles": ["value"], + "types": ["int"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "seed", + "semanticName": "seed", + "direction": "input", + "roles": ["value"], + "types": ["int"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "num_inference_steps", + "semanticName": "num_inference_steps", + "direction": "input", + "roles": ["value"], + "types": ["int"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "guidance_scale", + "semanticName": "guidance_scale", + "direction": "input", + "roles": ["value"], + "types": ["float"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [], + "control": { + "technique": "classifier_free", + "parameter": "scale", + "compatibilityScope": "diffusers.qwen.normalized_cfg.v1", + "scaleMeaning": "cfg_prediction_mix", + "enabled": "scale_gt_one", + "enabledField": "guidance_scale", + "formulation": "diffusers", + "formulationField": null, + "selectorField": null, + "selectorValue": null, + "negativeConditioning": "pipeline_scoped_when_enabled", + "negativeConditioningScope": "QwenImageControlNetPipeline", + "negativePromptField": "negative_prompt", + "negativePromptPolicy": "empty_string_is_condition" + } + } + }, + { + "name": "image_guidance_scale", + "semanticName": "image_guidance_scale", + "direction": "input", + "roles": ["value"], + "types": ["float"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "use_guidance_scale_2", + "semanticName": "use_guidance_scale_2", + "direction": "input", + "roles": ["value"], + "types": ["bool"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "guidance_scale_2", + "semanticName": "guidance_scale_2", + "direction": "input", + "roles": ["value"], + "types": ["float"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "pag_scale", + "semanticName": "pag_scale", + "direction": "input", + "roles": ["value"], + "types": ["float"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "pag_adaptive_scale", + "semanticName": "pag_adaptive_scale", + "direction": "input", + "roles": ["value"], + "types": ["float"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "control_guidance_start", + "semanticName": "control_guidance_start", + "direction": "input", + "roles": ["value"], + "types": ["float"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "control_guidance_end", + "semanticName": "control_guidance_end", + "direction": "input", + "roles": ["value"], + "types": ["float"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "layers", + "semanticName": "layers", + "direction": "input", + "roles": ["value"], + "types": ["int"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "resolution", + "semanticName": "resolution", + "direction": "input", + "roles": ["value"], + "types": ["int"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "cfg_normalize", + "semanticName": "cfg_normalize", + "direction": "input", + "roles": ["value"], + "types": ["bool"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "use_en_prompt", + "semanticName": "use_en_prompt", + "direction": "input", + "roles": ["value"], + "types": ["bool"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "strength", + "semanticName": "strength", + "direction": "input", + "roles": ["value"], + "types": ["float"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "padding_mask_crop", + "semanticName": "padding_mask_crop", + "direction": "input", + "roles": ["value"], + "types": ["int"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "max_sequence_length", + "semanticName": "max_sequence_length", + "direction": "input", + "roles": ["value"], + "types": ["int"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "output_type", + "semanticName": "output_type", + "direction": "input", + "roles": ["value"], + "types": ["string"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "images", + "semanticName": "images", + "direction": "output", + "roles": ["value"], + "types": ["image"], + "required": false, + "hidden": false, + "semantics": { + "kind": "media", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "latents_out", + "semanticName": "latents_out", + "direction": "output", + "roles": ["value"], + "types": ["tensor"], + "required": false, + "hidden": true, + "semantics": { + "kind": "latents", + "scope": "QwenImageControlNetPipeline", + "state": null, + "owner": "same_loader", + "members": [] + } + }, + { + "name": "width_out", + "semanticName": "width_out", + "direction": "output", + "roles": ["value"], + "types": ["int"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "height_out", + "semanticName": "height_out", + "direction": "output", + "roles": ["value"], + "types": ["int"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "control_image", + "semanticName": "control_image", + "direction": "input", + "roles": ["value"], + "types": ["image"], + "required": true, + "hidden": false, + "semantics": { + "kind": "media", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "conditioning_scale", + "semanticName": "conditioning_scale", + "direction": "input", + "roles": ["value"], + "types": ["float"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + } + ], + "workflowId": null, + "binding": { + "values": {}, + "pipelineClass": "QwenImageControlNetPipeline" + } + }, + { + "pipelineClass": "QwenImageLayeredPipeline", + "task": "layer_decomposition", + "operationId": "diffusion.decompose_layers", + "nodeKey": "modules.DiffusersImage.LayerDecompose", + "nodeType": "pipeline", + "blockName": null, + "decomposition": "pipeline", + "support": "declared", + "ports": [ + { + "name": "latents", + "semanticName": "latents", + "direction": "input", + "roles": ["value"], + "types": ["tensor"], + "required": false, + "hidden": true, + "semantics": { + "kind": "latents", + "scope": "QwenImageLayeredPipeline", + "state": null, + "owner": "same_loader", + "members": [] + } + }, + { + "name": "prompt_embeds", + "semanticName": "prompt_embeds", + "direction": "input", + "roles": ["value"], + "types": ["tensor"], + "required": false, + "hidden": true, + "semantics": { + "kind": "opaque", + "scope": "QwenImageLayeredPipeline", + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "pooled_prompt_embeds", + "semanticName": "pooled_prompt_embeds", + "direction": "input", + "roles": ["value"], + "types": ["tensor"], + "required": false, + "hidden": true, + "semantics": { + "kind": "opaque", + "scope": "QwenImageLayeredPipeline", + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "negative_prompt_embeds", + "semanticName": "negative_prompt_embeds", + "direction": "input", + "roles": ["value"], + "types": ["tensor"], + "required": false, + "hidden": true, + "semantics": { + "kind": "opaque", + "scope": "QwenImageLayeredPipeline", + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "negative_pooled_prompt_embeds", + "semanticName": "negative_pooled_prompt_embeds", + "direction": "input", + "roles": ["value"], + "types": ["tensor"], + "required": false, + "hidden": true, + "semantics": { + "kind": "opaque", + "scope": "QwenImageLayeredPipeline", + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "masked_image_latents", + "semanticName": "masked_image_latents", + "direction": "input", + "roles": ["value"], + "types": ["tensor"], + "required": false, + "hidden": true, + "semantics": { + "kind": "latents", + "scope": "QwenImageLayeredPipeline", + "state": null, + "owner": "same_loader", + "members": [] + } + }, + { + "name": "generator", + "semanticName": "generator", + "direction": "input", + "roles": ["value"], + "types": ["generator"], + "required": false, + "hidden": true, + "semantics": { + "kind": "opaque", + "scope": "QwenImageLayeredPipeline", + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "prompt_2", + "semanticName": "prompt_2", + "direction": "input", + "roles": ["value"], + "types": ["text"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "negative_prompt_2", + "semanticName": "negative_prompt_2", + "direction": "input", + "roles": ["value"], + "types": ["text"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "num_images_per_prompt", + "semanticName": "num_images_per_prompt", + "direction": "input", + "roles": ["value"], + "types": ["int"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "sigmas", + "semanticName": "sigmas", + "direction": "input", + "roles": ["value"], + "types": ["float"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "text_encoder_out_layers", + "semanticName": "text_encoder_out_layers", + "direction": "input", + "roles": ["value"], + "types": ["int"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "caption_upsample_temperature", + "semanticName": "caption_upsample_temperature", + "direction": "input", + "roles": ["value"], + "types": ["float"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "max_area", + "semanticName": "max_area", + "direction": "input", + "roles": ["value"], + "types": ["int"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "_auto_resize", + "semanticName": "_auto_resize", + "direction": "input", + "roles": ["value"], + "types": ["bool"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "image_reference", + "semanticName": "image_reference", + "direction": "input", + "roles": ["value"], + "types": ["image"], + "required": false, + "hidden": true, + "semantics": { + "kind": "media", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "prompt_embeds_scale", + "semanticName": "prompt_embeds_scale", + "direction": "input", + "roles": ["value"], + "types": ["float"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "pooled_prompt_embeds_scale", + "semanticName": "pooled_prompt_embeds_scale", + "direction": "input", + "roles": ["value"], + "types": ["float"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "joint_attention_kwargs", + "semanticName": "joint_attention_kwargs", + "direction": "input", + "roles": ["value"], + "types": ["object"], + "required": false, + "hidden": true, + "semantics": { + "kind": "opaque", + "scope": "QwenImageLayeredPipeline", + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "attention_kwargs", + "semanticName": "attention_kwargs", + "direction": "input", + "roles": ["value"], + "types": ["object"], + "required": false, + "hidden": true, + "semantics": { + "kind": "opaque", + "scope": "QwenImageLayeredPipeline", + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "ip_adapter_image", + "semanticName": "ip_adapter_image", + "direction": "input", + "roles": ["value"], + "types": ["image"], + "required": false, + "hidden": true, + "semantics": { + "kind": "media", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "negative_ip_adapter_image", + "semanticName": "negative_ip_adapter_image", + "direction": "input", + "roles": ["value"], + "types": ["image"], + "required": false, + "hidden": true, + "semantics": { + "kind": "media", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "ip_adapter_image_embeds", + "semanticName": "ip_adapter_image_embeds", + "direction": "input", + "roles": ["value"], + "types": ["tensor"], + "required": false, + "hidden": true, + "semantics": { + "kind": "opaque", + "scope": "QwenImageLayeredPipeline", + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "negative_ip_adapter_image_embeds", + "semanticName": "negative_ip_adapter_image_embeds", + "direction": "input", + "roles": ["value"], + "types": ["tensor"], + "required": false, + "hidden": true, + "semantics": { + "kind": "opaque", + "scope": "QwenImageLayeredPipeline", + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "control_mode", + "semanticName": "control_mode", + "direction": "input", + "roles": ["value"], + "types": ["int"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "use_kv_cache", + "semanticName": "use_kv_cache", + "direction": "input", + "roles": ["value"], + "types": ["bool"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "pipeline", + "semanticName": "pipeline", + "direction": "input", + "roles": ["pipeline"], + "types": ["image_diffusion_pipeline"], + "required": true, + "hidden": false, + "semantics": { + "kind": "pipeline", + "scope": "QwenImageLayeredPipeline", + "state": null, + "owner": "same_loader", + "members": [] + } + }, + { + "name": "image_contract", + "semanticName": "image_contract", + "direction": "input", + "roles": ["value"], + "types": ["object"], + "required": false, + "hidden": true, + "semantics": { + "kind": "opaque", + "scope": "QwenImageLayeredPipeline", + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "prompt", + "semanticName": "prompt", + "direction": "input", + "roles": ["value"], + "types": ["text"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "negative_prompt", + "semanticName": "negative_prompt", + "direction": "input", + "roles": ["value"], + "types": ["text"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "width", + "semanticName": "width", + "direction": "input", + "roles": ["value"], + "types": ["int"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "height", + "semanticName": "height", + "direction": "input", + "roles": ["value"], + "types": ["int"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "seed", + "semanticName": "seed", + "direction": "input", + "roles": ["value"], + "types": ["int"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "num_inference_steps", + "semanticName": "num_inference_steps", + "direction": "input", + "roles": ["value"], + "types": ["int"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "guidance_scale", + "semanticName": "guidance_scale", + "direction": "input", + "roles": ["value"], + "types": ["float"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [], + "control": { + "technique": "classifier_free", + "parameter": "scale", + "compatibilityScope": "diffusers.classifier_free.v1", + "scaleMeaning": "cfg_prediction_mix", + "enabled": "scale_gt_one", + "enabledField": "guidance_scale", + "formulation": "diffusers", + "formulationField": null, + "selectorField": "cfg_normalize", + "selectorValue": false, + "negativeConditioning": "pipeline_scoped_when_enabled", + "negativeConditioningScope": "QwenImageLayeredPipeline", + "negativePromptField": "negative_prompt", + "negativePromptPolicy": "empty_string_is_condition" + } + } + }, + { + "name": "image_guidance_scale", + "semanticName": "image_guidance_scale", + "direction": "input", + "roles": ["value"], + "types": ["float"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "use_guidance_scale_2", + "semanticName": "use_guidance_scale_2", + "direction": "input", + "roles": ["value"], + "types": ["bool"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "guidance_scale_2", + "semanticName": "guidance_scale_2", + "direction": "input", + "roles": ["value"], + "types": ["float"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "pag_scale", + "semanticName": "pag_scale", + "direction": "input", + "roles": ["value"], + "types": ["float"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "pag_adaptive_scale", + "semanticName": "pag_adaptive_scale", + "direction": "input", + "roles": ["value"], + "types": ["float"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "control_guidance_start", + "semanticName": "control_guidance_start", + "direction": "input", + "roles": ["value"], + "types": ["float"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "control_guidance_end", + "semanticName": "control_guidance_end", + "direction": "input", + "roles": ["value"], + "types": ["float"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "layers", + "semanticName": "layers", + "direction": "input", + "roles": ["value"], + "types": ["int"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "resolution", + "semanticName": "resolution", + "direction": "input", + "roles": ["value"], + "types": ["int"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "cfg_normalize", + "semanticName": "cfg_normalize", + "direction": "input", + "roles": ["value"], + "types": ["bool"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "use_en_prompt", + "semanticName": "use_en_prompt", + "direction": "input", + "roles": ["value"], + "types": ["bool"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "strength", + "semanticName": "strength", + "direction": "input", + "roles": ["value"], + "types": ["float"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "padding_mask_crop", + "semanticName": "padding_mask_crop", + "direction": "input", + "roles": ["value"], + "types": ["int"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "max_sequence_length", + "semanticName": "max_sequence_length", + "direction": "input", + "roles": ["value"], + "types": ["int"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "output_type", + "semanticName": "output_type", + "direction": "input", + "roles": ["value"], + "types": ["string"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "images", + "semanticName": "images", + "direction": "output", + "roles": ["value"], + "types": ["image"], + "required": false, + "hidden": false, + "semantics": { + "kind": "media", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "latents_out", + "semanticName": "latents_out", + "direction": "output", + "roles": ["value"], + "types": ["tensor"], + "required": false, + "hidden": true, + "semantics": { + "kind": "latents", + "scope": "QwenImageLayeredPipeline", + "state": null, + "owner": "same_loader", + "members": [] + } + }, + { + "name": "width_out", + "semanticName": "width_out", + "direction": "output", + "roles": ["value"], + "types": ["int"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "height_out", + "semanticName": "height_out", + "direction": "output", + "roles": ["value"], + "types": ["int"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "image", + "semanticName": "image", + "direction": "input", + "roles": ["value"], + "types": ["image"], + "required": true, + "hidden": false, + "semantics": { + "kind": "media", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "reference_strength", + "semanticName": "reference_strength", + "direction": "input", + "roles": ["value"], + "types": ["float"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + } + ], + "workflowId": null, + "binding": { + "values": {}, + "pipelineClass": "QwenImageLayeredPipeline" + } + }, + { + "pipelineClass": "FluxPipeline", + "task": "text_to_image", + "operationId": "diffusion.generate_image", + "nodeKey": "modules.DiffusersImage.Generate", + "nodeType": "pipeline", + "blockName": null, + "decomposition": "pipeline", + "support": "declared", + "ports": [ + { + "name": "latents", + "semanticName": "latents", + "direction": "input", + "roles": ["value"], + "types": ["tensor"], + "required": false, + "hidden": false, + "semantics": { + "kind": "latents", + "scope": "FluxPipeline", + "state": null, + "owner": "same_loader", + "members": [] + } + }, + { + "name": "prompt_embeds", + "semanticName": "prompt_embeds", + "direction": "input", + "roles": ["value"], + "types": ["tensor"], + "required": false, + "hidden": false, + "semantics": { + "kind": "opaque", + "scope": "FluxPipeline", + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "pooled_prompt_embeds", + "semanticName": "pooled_prompt_embeds", + "direction": "input", + "roles": ["value"], + "types": ["tensor"], + "required": false, + "hidden": false, + "semantics": { + "kind": "opaque", + "scope": "FluxPipeline", + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "negative_prompt_embeds", + "semanticName": "negative_prompt_embeds", + "direction": "input", + "roles": ["value"], + "types": ["tensor"], + "required": false, + "hidden": false, + "semantics": { + "kind": "opaque", + "scope": "FluxPipeline", + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "negative_pooled_prompt_embeds", + "semanticName": "negative_pooled_prompt_embeds", + "direction": "input", + "roles": ["value"], + "types": ["tensor"], + "required": false, + "hidden": false, + "semantics": { + "kind": "opaque", + "scope": "FluxPipeline", + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "masked_image_latents", + "semanticName": "masked_image_latents", + "direction": "input", + "roles": ["value"], + "types": ["tensor"], + "required": false, + "hidden": true, + "semantics": { + "kind": "latents", + "scope": "FluxPipeline", + "state": null, + "owner": "same_loader", + "members": [] + } + }, + { + "name": "generator", + "semanticName": "generator", + "direction": "input", + "roles": ["value"], + "types": ["generator"], + "required": false, + "hidden": false, + "semantics": { + "kind": "opaque", + "scope": "FluxPipeline", + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "prompt_2", + "semanticName": "prompt_2", + "direction": "input", + "roles": ["value"], + "types": ["text"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "negative_prompt_2", + "semanticName": "negative_prompt_2", + "direction": "input", + "roles": ["value"], + "types": ["text"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "num_images_per_prompt", + "semanticName": "num_images_per_prompt", + "direction": "input", + "roles": ["value"], + "types": ["int"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "sigmas", + "semanticName": "sigmas", + "direction": "input", + "roles": ["value"], + "types": ["float"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "text_encoder_out_layers", + "semanticName": "text_encoder_out_layers", + "direction": "input", + "roles": ["value"], + "types": ["int"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "caption_upsample_temperature", + "semanticName": "caption_upsample_temperature", + "direction": "input", + "roles": ["value"], + "types": ["float"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "max_area", + "semanticName": "max_area", + "direction": "input", + "roles": ["value"], + "types": ["int"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "_auto_resize", + "semanticName": "_auto_resize", + "direction": "input", + "roles": ["value"], + "types": ["bool"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "image_reference", + "semanticName": "image_reference", + "direction": "input", + "roles": ["value"], + "types": ["image"], + "required": false, + "hidden": true, + "semantics": { + "kind": "media", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "prompt_embeds_scale", + "semanticName": "prompt_embeds_scale", + "direction": "input", + "roles": ["value"], + "types": ["float"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "pooled_prompt_embeds_scale", + "semanticName": "pooled_prompt_embeds_scale", + "direction": "input", + "roles": ["value"], + "types": ["float"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "joint_attention_kwargs", + "semanticName": "joint_attention_kwargs", + "direction": "input", + "roles": ["value"], + "types": ["object"], + "required": false, + "hidden": false, + "semantics": { + "kind": "opaque", + "scope": "FluxPipeline", + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "attention_kwargs", + "semanticName": "attention_kwargs", + "direction": "input", + "roles": ["value"], + "types": ["object"], + "required": false, + "hidden": true, + "semantics": { + "kind": "opaque", + "scope": "FluxPipeline", + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "ip_adapter_image", + "semanticName": "ip_adapter_image", + "direction": "input", + "roles": ["value"], + "types": ["image"], + "required": false, + "hidden": false, + "semantics": { + "kind": "media", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "negative_ip_adapter_image", + "semanticName": "negative_ip_adapter_image", + "direction": "input", + "roles": ["value"], + "types": ["image"], + "required": false, + "hidden": false, + "semantics": { + "kind": "media", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "ip_adapter_image_embeds", + "semanticName": "ip_adapter_image_embeds", + "direction": "input", + "roles": ["value"], + "types": ["tensor"], + "required": false, + "hidden": false, + "semantics": { + "kind": "opaque", + "scope": "FluxPipeline", + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "negative_ip_adapter_image_embeds", + "semanticName": "negative_ip_adapter_image_embeds", + "direction": "input", + "roles": ["value"], + "types": ["tensor"], + "required": false, + "hidden": false, + "semantics": { + "kind": "opaque", + "scope": "FluxPipeline", + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "control_mode", + "semanticName": "control_mode", + "direction": "input", + "roles": ["value"], + "types": ["int"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "use_kv_cache", + "semanticName": "use_kv_cache", + "direction": "input", + "roles": ["value"], + "types": ["bool"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "pipeline", + "semanticName": "pipeline", + "direction": "input", + "roles": ["pipeline"], + "types": ["image_diffusion_pipeline"], + "required": true, + "hidden": false, + "semantics": { + "kind": "pipeline", + "scope": "FluxPipeline", + "state": null, + "owner": "same_loader", + "members": [] + } + }, + { + "name": "image_contract", + "semanticName": "image_contract", + "direction": "input", + "roles": ["value"], + "types": ["object"], + "required": false, + "hidden": true, + "semantics": { + "kind": "opaque", + "scope": "FluxPipeline", + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "prompt", + "semanticName": "prompt", + "direction": "input", + "roles": ["value"], + "types": ["text"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "negative_prompt", + "semanticName": "negative_prompt", + "direction": "input", + "roles": ["value"], + "types": ["text"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "width", + "semanticName": "width", + "direction": "input", + "roles": ["value"], + "types": ["int"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "height", + "semanticName": "height", + "direction": "input", + "roles": ["value"], + "types": ["int"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "seed", + "semanticName": "seed", + "direction": "input", + "roles": ["value"], + "types": ["int"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "num_inference_steps", + "semanticName": "num_inference_steps", + "direction": "input", + "roles": ["value"], + "types": ["int"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "guidance_scale", + "semanticName": "guidance_scale", + "direction": "input", + "roles": ["value"], + "types": ["float"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [], + "control": { + "technique": "classifier_free", + "parameter": "scale", + "compatibilityScope": "diffusers.classifier_free.v1", + "scaleMeaning": "cfg_prediction_mix", + "enabled": "scale_gt_one", + "enabledField": "guidance_scale", + "formulation": "diffusers", + "formulationField": null, + "selectorField": null, + "selectorValue": null, + "negativeConditioning": "pipeline_scoped_when_enabled", + "negativeConditioningScope": "FluxPipeline", + "negativePromptField": "negative_prompt", + "negativePromptPolicy": "empty_string_is_condition" + } + } + }, + { + "name": "image_guidance_scale", + "semanticName": "image_guidance_scale", + "direction": "input", + "roles": ["value"], + "types": ["float"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "use_guidance_scale_2", + "semanticName": "use_guidance_scale_2", + "direction": "input", + "roles": ["value"], + "types": ["bool"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "guidance_scale_2", + "semanticName": "guidance_scale_2", + "direction": "input", + "roles": ["value"], + "types": ["float"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [], + "control": { + "technique": "embedded_distilled", + "parameter": "scale", + "compatibilityScope": "diffusers.flux1.embedded.v1", + "scaleMeaning": "distilled_model_embedding", + "enabled": "model_config", + "enabledField": null, + "formulation": "embedded", + "formulationField": null, + "selectorField": "use_guidance_scale_2", + "selectorValue": true, + "negativeConditioning": "none", + "negativeConditioningScope": null + } + } + }, + { + "name": "pag_scale", + "semanticName": "pag_scale", + "direction": "input", + "roles": ["value"], + "types": ["float"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "pag_adaptive_scale", + "semanticName": "pag_adaptive_scale", + "direction": "input", + "roles": ["value"], + "types": ["float"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "control_guidance_start", + "semanticName": "control_guidance_start", + "direction": "input", + "roles": ["value"], + "types": ["float"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "control_guidance_end", + "semanticName": "control_guidance_end", + "direction": "input", + "roles": ["value"], + "types": ["float"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "layers", + "semanticName": "layers", + "direction": "input", + "roles": ["value"], + "types": ["int"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "resolution", + "semanticName": "resolution", + "direction": "input", + "roles": ["value"], + "types": ["int"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "cfg_normalize", + "semanticName": "cfg_normalize", + "direction": "input", + "roles": ["value"], + "types": ["bool"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "use_en_prompt", + "semanticName": "use_en_prompt", + "direction": "input", + "roles": ["value"], + "types": ["bool"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "strength", + "semanticName": "strength", + "direction": "input", + "roles": ["value"], + "types": ["float"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "padding_mask_crop", + "semanticName": "padding_mask_crop", + "direction": "input", + "roles": ["value"], + "types": ["int"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "max_sequence_length", + "semanticName": "max_sequence_length", + "direction": "input", + "roles": ["value"], + "types": ["int"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "output_type", + "semanticName": "output_type", + "direction": "input", + "roles": ["value"], + "types": ["string"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "images", + "semanticName": "images", + "direction": "output", + "roles": ["value"], + "types": ["image"], + "required": false, + "hidden": false, + "semantics": { + "kind": "media", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "latents_out", + "semanticName": "latents_out", + "direction": "output", + "roles": ["value"], + "types": ["tensor"], + "required": false, + "hidden": false, + "semantics": { + "kind": "latents", + "scope": "FluxPipeline", + "state": null, + "owner": "same_loader", + "members": [] + } + }, + { + "name": "width_out", + "semanticName": "width_out", + "direction": "output", + "roles": ["value"], + "types": ["int"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "height_out", + "semanticName": "height_out", + "direction": "output", + "roles": ["value"], + "types": ["int"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + } + ], + "workflowId": null, + "binding": { + "values": {}, + "pipelineClass": "FluxPipeline" + } + }, + { + "pipelineClass": "FluxImg2ImgPipeline", + "task": "edit_image", + "operationId": "diffusion.generate_image", + "nodeKey": "modules.DiffusersImage.Edit", + "nodeType": "pipeline", + "blockName": null, + "decomposition": "pipeline", + "support": "declared", + "ports": [ + { + "name": "latents", + "semanticName": "latents", + "direction": "input", + "roles": ["value"], + "types": ["tensor"], + "required": false, + "hidden": false, + "semantics": { + "kind": "latents", + "scope": "FluxImg2ImgPipeline", + "state": null, + "owner": "same_loader", + "members": [] + } + }, + { + "name": "prompt_embeds", + "semanticName": "prompt_embeds", + "direction": "input", + "roles": ["value"], + "types": ["tensor"], + "required": false, + "hidden": false, + "semantics": { + "kind": "opaque", + "scope": "FluxImg2ImgPipeline", + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "pooled_prompt_embeds", + "semanticName": "pooled_prompt_embeds", + "direction": "input", + "roles": ["value"], + "types": ["tensor"], + "required": false, + "hidden": false, + "semantics": { + "kind": "opaque", + "scope": "FluxImg2ImgPipeline", + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "negative_prompt_embeds", + "semanticName": "negative_prompt_embeds", + "direction": "input", + "roles": ["value"], + "types": ["tensor"], + "required": false, + "hidden": false, + "semantics": { + "kind": "opaque", + "scope": "FluxImg2ImgPipeline", + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "negative_pooled_prompt_embeds", + "semanticName": "negative_pooled_prompt_embeds", + "direction": "input", + "roles": ["value"], + "types": ["tensor"], + "required": false, + "hidden": false, + "semantics": { + "kind": "opaque", + "scope": "FluxImg2ImgPipeline", + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "masked_image_latents", + "semanticName": "masked_image_latents", + "direction": "input", + "roles": ["value"], + "types": ["tensor"], + "required": false, + "hidden": true, + "semantics": { + "kind": "latents", + "scope": "FluxImg2ImgPipeline", + "state": null, + "owner": "same_loader", + "members": [] + } + }, + { + "name": "generator", + "semanticName": "generator", + "direction": "input", + "roles": ["value"], + "types": ["generator"], + "required": false, + "hidden": false, + "semantics": { + "kind": "opaque", + "scope": "FluxImg2ImgPipeline", + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "prompt_2", + "semanticName": "prompt_2", + "direction": "input", + "roles": ["value"], + "types": ["text"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "negative_prompt_2", + "semanticName": "negative_prompt_2", + "direction": "input", + "roles": ["value"], + "types": ["text"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "num_images_per_prompt", + "semanticName": "num_images_per_prompt", + "direction": "input", + "roles": ["value"], + "types": ["int"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "sigmas", + "semanticName": "sigmas", + "direction": "input", + "roles": ["value"], + "types": ["float"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "text_encoder_out_layers", + "semanticName": "text_encoder_out_layers", + "direction": "input", + "roles": ["value"], + "types": ["int"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "caption_upsample_temperature", + "semanticName": "caption_upsample_temperature", + "direction": "input", + "roles": ["value"], + "types": ["float"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "max_area", + "semanticName": "max_area", + "direction": "input", + "roles": ["value"], + "types": ["int"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "_auto_resize", + "semanticName": "_auto_resize", + "direction": "input", + "roles": ["value"], + "types": ["bool"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "image_reference", + "semanticName": "image_reference", + "direction": "input", + "roles": ["value"], + "types": ["image"], + "required": false, + "hidden": true, + "semantics": { + "kind": "media", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "prompt_embeds_scale", + "semanticName": "prompt_embeds_scale", + "direction": "input", + "roles": ["value"], + "types": ["float"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "pooled_prompt_embeds_scale", + "semanticName": "pooled_prompt_embeds_scale", + "direction": "input", + "roles": ["value"], + "types": ["float"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "joint_attention_kwargs", + "semanticName": "joint_attention_kwargs", + "direction": "input", + "roles": ["value"], + "types": ["object"], + "required": false, + "hidden": false, + "semantics": { + "kind": "opaque", + "scope": "FluxImg2ImgPipeline", + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "attention_kwargs", + "semanticName": "attention_kwargs", + "direction": "input", + "roles": ["value"], + "types": ["object"], + "required": false, + "hidden": true, + "semantics": { + "kind": "opaque", + "scope": "FluxImg2ImgPipeline", + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "ip_adapter_image", + "semanticName": "ip_adapter_image", + "direction": "input", + "roles": ["value"], + "types": ["image"], + "required": false, + "hidden": false, + "semantics": { + "kind": "media", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "negative_ip_adapter_image", + "semanticName": "negative_ip_adapter_image", + "direction": "input", + "roles": ["value"], + "types": ["image"], + "required": false, + "hidden": false, + "semantics": { + "kind": "media", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "ip_adapter_image_embeds", + "semanticName": "ip_adapter_image_embeds", + "direction": "input", + "roles": ["value"], + "types": ["tensor"], + "required": false, + "hidden": false, + "semantics": { + "kind": "opaque", + "scope": "FluxImg2ImgPipeline", + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "negative_ip_adapter_image_embeds", + "semanticName": "negative_ip_adapter_image_embeds", + "direction": "input", + "roles": ["value"], + "types": ["tensor"], + "required": false, + "hidden": false, + "semantics": { + "kind": "opaque", + "scope": "FluxImg2ImgPipeline", + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "control_mode", + "semanticName": "control_mode", + "direction": "input", + "roles": ["value"], + "types": ["int"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "use_kv_cache", + "semanticName": "use_kv_cache", + "direction": "input", + "roles": ["value"], + "types": ["bool"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "pipeline", + "semanticName": "pipeline", + "direction": "input", + "roles": ["pipeline"], + "types": ["image_diffusion_pipeline"], + "required": true, + "hidden": false, + "semantics": { + "kind": "pipeline", + "scope": "FluxImg2ImgPipeline", + "state": null, + "owner": "same_loader", + "members": [] + } + }, + { + "name": "image_contract", + "semanticName": "image_contract", + "direction": "input", + "roles": ["value"], + "types": ["object"], + "required": false, + "hidden": true, + "semantics": { + "kind": "opaque", + "scope": "FluxImg2ImgPipeline", + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "prompt", + "semanticName": "prompt", + "direction": "input", + "roles": ["value"], + "types": ["text"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "negative_prompt", + "semanticName": "negative_prompt", + "direction": "input", + "roles": ["value"], + "types": ["text"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "width", + "semanticName": "width", + "direction": "input", + "roles": ["value"], + "types": ["int"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "height", + "semanticName": "height", + "direction": "input", + "roles": ["value"], + "types": ["int"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "seed", + "semanticName": "seed", + "direction": "input", + "roles": ["value"], + "types": ["int"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "num_inference_steps", + "semanticName": "num_inference_steps", + "direction": "input", + "roles": ["value"], + "types": ["int"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "guidance_scale", + "semanticName": "guidance_scale", + "direction": "input", + "roles": ["value"], + "types": ["float"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [], + "control": { + "technique": "classifier_free", + "parameter": "scale", + "compatibilityScope": "diffusers.classifier_free.v1", + "scaleMeaning": "cfg_prediction_mix", + "enabled": "scale_gt_one", + "enabledField": "guidance_scale", + "formulation": "diffusers", + "formulationField": null, + "selectorField": null, + "selectorValue": null, + "negativeConditioning": "pipeline_scoped_when_enabled", + "negativeConditioningScope": "FluxImg2ImgPipeline", + "negativePromptField": "negative_prompt", + "negativePromptPolicy": "empty_string_is_condition" + } + } + }, + { + "name": "image_guidance_scale", + "semanticName": "image_guidance_scale", + "direction": "input", + "roles": ["value"], + "types": ["float"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "use_guidance_scale_2", + "semanticName": "use_guidance_scale_2", + "direction": "input", + "roles": ["value"], + "types": ["bool"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "guidance_scale_2", + "semanticName": "guidance_scale_2", + "direction": "input", + "roles": ["value"], + "types": ["float"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [], + "control": { + "technique": "embedded_distilled", + "parameter": "scale", + "compatibilityScope": "diffusers.flux1.embedded.v1", + "scaleMeaning": "distilled_model_embedding", + "enabled": "model_config", + "enabledField": null, + "formulation": "embedded", + "formulationField": null, + "selectorField": "use_guidance_scale_2", + "selectorValue": true, + "negativeConditioning": "none", + "negativeConditioningScope": null + } + } + }, + { + "name": "pag_scale", + "semanticName": "pag_scale", + "direction": "input", + "roles": ["value"], + "types": ["float"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "pag_adaptive_scale", + "semanticName": "pag_adaptive_scale", + "direction": "input", + "roles": ["value"], + "types": ["float"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "control_guidance_start", + "semanticName": "control_guidance_start", + "direction": "input", + "roles": ["value"], + "types": ["float"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "control_guidance_end", + "semanticName": "control_guidance_end", + "direction": "input", + "roles": ["value"], + "types": ["float"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "layers", + "semanticName": "layers", + "direction": "input", + "roles": ["value"], + "types": ["int"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "resolution", + "semanticName": "resolution", + "direction": "input", + "roles": ["value"], + "types": ["int"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "cfg_normalize", + "semanticName": "cfg_normalize", + "direction": "input", + "roles": ["value"], + "types": ["bool"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "use_en_prompt", + "semanticName": "use_en_prompt", + "direction": "input", + "roles": ["value"], + "types": ["bool"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "strength", + "semanticName": "strength", + "direction": "input", + "roles": ["value"], + "types": ["float"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "padding_mask_crop", + "semanticName": "padding_mask_crop", + "direction": "input", + "roles": ["value"], + "types": ["int"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "max_sequence_length", + "semanticName": "max_sequence_length", + "direction": "input", + "roles": ["value"], + "types": ["int"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "output_type", + "semanticName": "output_type", + "direction": "input", + "roles": ["value"], + "types": ["string"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "images", + "semanticName": "images", + "direction": "output", + "roles": ["value"], + "types": ["image"], + "required": false, + "hidden": false, + "semantics": { + "kind": "media", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "latents_out", + "semanticName": "latents_out", + "direction": "output", + "roles": ["value"], + "types": ["tensor"], + "required": false, + "hidden": false, + "semantics": { + "kind": "latents", + "scope": "FluxImg2ImgPipeline", + "state": null, + "owner": "same_loader", + "members": [] + } + }, + { + "name": "width_out", + "semanticName": "width_out", + "direction": "output", + "roles": ["value"], + "types": ["int"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "height_out", + "semanticName": "height_out", + "direction": "output", + "roles": ["value"], + "types": ["int"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "image", + "semanticName": "image", + "direction": "input", + "roles": ["value"], + "types": ["image"], + "required": true, + "hidden": false, + "semantics": { + "kind": "media", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "reference_strength", + "semanticName": "reference_strength", + "direction": "input", + "roles": ["value"], + "types": ["float"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + } + ], + "workflowId": null, + "binding": { + "values": {}, + "pipelineClass": "FluxImg2ImgPipeline" + } + }, + { + "pipelineClass": "FluxInpaintPipeline", + "task": "inpaint", + "operationId": "diffusion.generate_image", + "nodeKey": "modules.DiffusersImage.Inpaint", + "nodeType": "pipeline", + "blockName": null, + "decomposition": "pipeline", + "support": "declared", + "ports": [ + { + "name": "latents", + "semanticName": "latents", + "direction": "input", + "roles": ["value"], + "types": ["tensor"], + "required": false, + "hidden": false, + "semantics": { + "kind": "latents", + "scope": "FluxInpaintPipeline", + "state": null, + "owner": "same_loader", + "members": [] + } + }, + { + "name": "prompt_embeds", + "semanticName": "prompt_embeds", + "direction": "input", + "roles": ["value"], + "types": ["tensor"], + "required": false, + "hidden": false, + "semantics": { + "kind": "opaque", + "scope": "FluxInpaintPipeline", + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "pooled_prompt_embeds", + "semanticName": "pooled_prompt_embeds", + "direction": "input", + "roles": ["value"], + "types": ["tensor"], + "required": false, + "hidden": false, + "semantics": { + "kind": "opaque", + "scope": "FluxInpaintPipeline", + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "negative_prompt_embeds", + "semanticName": "negative_prompt_embeds", + "direction": "input", + "roles": ["value"], + "types": ["tensor"], + "required": false, + "hidden": false, + "semantics": { + "kind": "opaque", + "scope": "FluxInpaintPipeline", + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "negative_pooled_prompt_embeds", + "semanticName": "negative_pooled_prompt_embeds", + "direction": "input", + "roles": ["value"], + "types": ["tensor"], + "required": false, + "hidden": false, + "semantics": { + "kind": "opaque", + "scope": "FluxInpaintPipeline", + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "masked_image_latents", + "semanticName": "masked_image_latents", + "direction": "input", + "roles": ["value"], + "types": ["tensor"], + "required": false, + "hidden": false, + "semantics": { + "kind": "latents", + "scope": "FluxInpaintPipeline", + "state": null, + "owner": "same_loader", + "members": [] + } + }, + { + "name": "generator", + "semanticName": "generator", + "direction": "input", + "roles": ["value"], + "types": ["generator"], + "required": false, + "hidden": false, + "semantics": { + "kind": "opaque", + "scope": "FluxInpaintPipeline", + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "prompt_2", + "semanticName": "prompt_2", + "direction": "input", + "roles": ["value"], + "types": ["text"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "negative_prompt_2", + "semanticName": "negative_prompt_2", + "direction": "input", + "roles": ["value"], + "types": ["text"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "num_images_per_prompt", + "semanticName": "num_images_per_prompt", + "direction": "input", + "roles": ["value"], + "types": ["int"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "sigmas", + "semanticName": "sigmas", + "direction": "input", + "roles": ["value"], + "types": ["float"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "text_encoder_out_layers", + "semanticName": "text_encoder_out_layers", + "direction": "input", + "roles": ["value"], + "types": ["int"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "caption_upsample_temperature", + "semanticName": "caption_upsample_temperature", + "direction": "input", + "roles": ["value"], + "types": ["float"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "max_area", + "semanticName": "max_area", + "direction": "input", + "roles": ["value"], + "types": ["int"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "_auto_resize", + "semanticName": "_auto_resize", + "direction": "input", + "roles": ["value"], + "types": ["bool"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "image_reference", + "semanticName": "image_reference", + "direction": "input", + "roles": ["value"], + "types": ["image"], + "required": false, + "hidden": true, + "semantics": { + "kind": "media", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "prompt_embeds_scale", + "semanticName": "prompt_embeds_scale", + "direction": "input", + "roles": ["value"], + "types": ["float"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "pooled_prompt_embeds_scale", + "semanticName": "pooled_prompt_embeds_scale", + "direction": "input", + "roles": ["value"], + "types": ["float"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "joint_attention_kwargs", + "semanticName": "joint_attention_kwargs", + "direction": "input", + "roles": ["value"], + "types": ["object"], + "required": false, + "hidden": false, + "semantics": { + "kind": "opaque", + "scope": "FluxInpaintPipeline", + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "attention_kwargs", + "semanticName": "attention_kwargs", + "direction": "input", + "roles": ["value"], + "types": ["object"], + "required": false, + "hidden": true, + "semantics": { + "kind": "opaque", + "scope": "FluxInpaintPipeline", + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "ip_adapter_image", + "semanticName": "ip_adapter_image", + "direction": "input", + "roles": ["value"], + "types": ["image"], + "required": false, + "hidden": false, + "semantics": { + "kind": "media", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "negative_ip_adapter_image", + "semanticName": "negative_ip_adapter_image", + "direction": "input", + "roles": ["value"], + "types": ["image"], + "required": false, + "hidden": false, + "semantics": { + "kind": "media", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "ip_adapter_image_embeds", + "semanticName": "ip_adapter_image_embeds", + "direction": "input", + "roles": ["value"], + "types": ["tensor"], + "required": false, + "hidden": false, + "semantics": { + "kind": "opaque", + "scope": "FluxInpaintPipeline", + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "negative_ip_adapter_image_embeds", + "semanticName": "negative_ip_adapter_image_embeds", + "direction": "input", + "roles": ["value"], + "types": ["tensor"], + "required": false, + "hidden": false, + "semantics": { + "kind": "opaque", + "scope": "FluxInpaintPipeline", + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "control_mode", + "semanticName": "control_mode", + "direction": "input", + "roles": ["value"], + "types": ["int"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "use_kv_cache", + "semanticName": "use_kv_cache", + "direction": "input", + "roles": ["value"], + "types": ["bool"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "pipeline", + "semanticName": "pipeline", + "direction": "input", + "roles": ["pipeline"], + "types": ["image_diffusion_pipeline"], + "required": true, + "hidden": false, + "semantics": { + "kind": "pipeline", + "scope": "FluxInpaintPipeline", + "state": null, + "owner": "same_loader", + "members": [] + } + }, + { + "name": "image_contract", + "semanticName": "image_contract", + "direction": "input", + "roles": ["value"], + "types": ["object"], + "required": false, + "hidden": true, + "semantics": { + "kind": "opaque", + "scope": "FluxInpaintPipeline", + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "prompt", + "semanticName": "prompt", + "direction": "input", + "roles": ["value"], + "types": ["text"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "negative_prompt", + "semanticName": "negative_prompt", + "direction": "input", + "roles": ["value"], + "types": ["text"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "width", + "semanticName": "width", + "direction": "input", + "roles": ["value"], + "types": ["int"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "height", + "semanticName": "height", + "direction": "input", + "roles": ["value"], + "types": ["int"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "seed", + "semanticName": "seed", + "direction": "input", + "roles": ["value"], + "types": ["int"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "num_inference_steps", + "semanticName": "num_inference_steps", + "direction": "input", + "roles": ["value"], + "types": ["int"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "guidance_scale", + "semanticName": "guidance_scale", + "direction": "input", + "roles": ["value"], + "types": ["float"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [], + "control": { + "technique": "classifier_free", + "parameter": "scale", + "compatibilityScope": "diffusers.classifier_free.v1", + "scaleMeaning": "cfg_prediction_mix", + "enabled": "scale_gt_one", + "enabledField": "guidance_scale", + "formulation": "diffusers", + "formulationField": null, + "selectorField": null, + "selectorValue": null, + "negativeConditioning": "pipeline_scoped_when_enabled", + "negativeConditioningScope": "FluxInpaintPipeline", + "negativePromptField": "negative_prompt", + "negativePromptPolicy": "empty_string_is_condition" + } + } + }, + { + "name": "image_guidance_scale", + "semanticName": "image_guidance_scale", + "direction": "input", + "roles": ["value"], + "types": ["float"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "use_guidance_scale_2", + "semanticName": "use_guidance_scale_2", + "direction": "input", + "roles": ["value"], + "types": ["bool"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "guidance_scale_2", + "semanticName": "guidance_scale_2", + "direction": "input", + "roles": ["value"], + "types": ["float"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [], + "control": { + "technique": "embedded_distilled", + "parameter": "scale", + "compatibilityScope": "diffusers.flux1.embedded.v1", + "scaleMeaning": "distilled_model_embedding", + "enabled": "model_config", + "enabledField": null, + "formulation": "embedded", + "formulationField": null, + "selectorField": "use_guidance_scale_2", + "selectorValue": true, + "negativeConditioning": "none", + "negativeConditioningScope": null + } + } + }, + { + "name": "pag_scale", + "semanticName": "pag_scale", + "direction": "input", + "roles": ["value"], + "types": ["float"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "pag_adaptive_scale", + "semanticName": "pag_adaptive_scale", + "direction": "input", + "roles": ["value"], + "types": ["float"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "control_guidance_start", + "semanticName": "control_guidance_start", + "direction": "input", + "roles": ["value"], + "types": ["float"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "control_guidance_end", + "semanticName": "control_guidance_end", + "direction": "input", + "roles": ["value"], + "types": ["float"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "layers", + "semanticName": "layers", + "direction": "input", + "roles": ["value"], + "types": ["int"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "resolution", + "semanticName": "resolution", + "direction": "input", + "roles": ["value"], + "types": ["int"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "cfg_normalize", + "semanticName": "cfg_normalize", + "direction": "input", + "roles": ["value"], + "types": ["bool"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "use_en_prompt", + "semanticName": "use_en_prompt", + "direction": "input", + "roles": ["value"], + "types": ["bool"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "strength", + "semanticName": "strength", + "direction": "input", + "roles": ["value"], + "types": ["float"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "padding_mask_crop", + "semanticName": "padding_mask_crop", + "direction": "input", + "roles": ["value"], + "types": ["int"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "max_sequence_length", + "semanticName": "max_sequence_length", + "direction": "input", + "roles": ["value"], + "types": ["int"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "output_type", + "semanticName": "output_type", + "direction": "input", + "roles": ["value"], + "types": ["string"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "images", + "semanticName": "images", + "direction": "output", + "roles": ["value"], + "types": ["image"], + "required": false, + "hidden": false, + "semantics": { + "kind": "media", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "latents_out", + "semanticName": "latents_out", + "direction": "output", + "roles": ["value"], + "types": ["tensor"], + "required": false, + "hidden": false, + "semantics": { + "kind": "latents", + "scope": "FluxInpaintPipeline", + "state": null, + "owner": "same_loader", + "members": [] + } + }, + { + "name": "width_out", + "semanticName": "width_out", + "direction": "output", + "roles": ["value"], + "types": ["int"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "height_out", + "semanticName": "height_out", + "direction": "output", + "roles": ["value"], + "types": ["int"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "image", + "semanticName": "image", + "direction": "input", + "roles": ["value"], + "types": ["image"], + "required": true, + "hidden": false, + "semantics": { + "kind": "media", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "reference_strength", + "semanticName": "reference_strength", + "direction": "input", + "roles": ["value"], + "types": ["float"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "mask_image", + "semanticName": "mask_image", + "direction": "input", + "roles": ["value"], + "types": ["image"], + "required": true, + "hidden": false, + "semantics": { + "kind": "media", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + } + ], + "workflowId": null, + "binding": { + "values": {}, + "pipelineClass": "FluxInpaintPipeline" + } + }, + { + "pipelineClass": "FluxKontextPipeline", + "task": "edit_image", + "operationId": "diffusion.generate_image", + "nodeKey": "modules.DiffusersImage.Edit", + "nodeType": "pipeline", + "blockName": null, + "decomposition": "pipeline", + "support": "declared", + "ports": [ + { + "name": "latents", + "semanticName": "latents", + "direction": "input", + "roles": ["value"], + "types": ["tensor"], + "required": false, + "hidden": false, + "semantics": { + "kind": "latents", + "scope": "FluxKontextPipeline", + "state": null, + "owner": "same_loader", + "members": [] + } + }, + { + "name": "prompt_embeds", + "semanticName": "prompt_embeds", + "direction": "input", + "roles": ["value"], + "types": ["tensor"], + "required": false, + "hidden": false, + "semantics": { + "kind": "opaque", + "scope": "FluxKontextPipeline", + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "pooled_prompt_embeds", + "semanticName": "pooled_prompt_embeds", + "direction": "input", + "roles": ["value"], + "types": ["tensor"], + "required": false, + "hidden": false, + "semantics": { + "kind": "opaque", + "scope": "FluxKontextPipeline", + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "negative_prompt_embeds", + "semanticName": "negative_prompt_embeds", + "direction": "input", + "roles": ["value"], + "types": ["tensor"], + "required": false, + "hidden": false, + "semantics": { + "kind": "opaque", + "scope": "FluxKontextPipeline", + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "negative_pooled_prompt_embeds", + "semanticName": "negative_pooled_prompt_embeds", + "direction": "input", + "roles": ["value"], + "types": ["tensor"], + "required": false, + "hidden": false, + "semantics": { + "kind": "opaque", + "scope": "FluxKontextPipeline", + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "masked_image_latents", + "semanticName": "masked_image_latents", + "direction": "input", + "roles": ["value"], + "types": ["tensor"], + "required": false, + "hidden": true, + "semantics": { + "kind": "latents", + "scope": "FluxKontextPipeline", + "state": null, + "owner": "same_loader", + "members": [] + } + }, + { + "name": "generator", + "semanticName": "generator", + "direction": "input", + "roles": ["value"], + "types": ["generator"], + "required": false, + "hidden": false, + "semantics": { + "kind": "opaque", + "scope": "FluxKontextPipeline", + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "prompt_2", + "semanticName": "prompt_2", + "direction": "input", + "roles": ["value"], + "types": ["text"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "negative_prompt_2", + "semanticName": "negative_prompt_2", + "direction": "input", + "roles": ["value"], + "types": ["text"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "num_images_per_prompt", + "semanticName": "num_images_per_prompt", + "direction": "input", + "roles": ["value"], + "types": ["int"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "sigmas", + "semanticName": "sigmas", + "direction": "input", + "roles": ["value"], + "types": ["float"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "text_encoder_out_layers", + "semanticName": "text_encoder_out_layers", + "direction": "input", + "roles": ["value"], + "types": ["int"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "caption_upsample_temperature", + "semanticName": "caption_upsample_temperature", + "direction": "input", + "roles": ["value"], + "types": ["float"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "max_area", + "semanticName": "max_area", + "direction": "input", + "roles": ["value"], + "types": ["int"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "_auto_resize", + "semanticName": "_auto_resize", + "direction": "input", + "roles": ["value"], + "types": ["bool"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "image_reference", + "semanticName": "image_reference", + "direction": "input", + "roles": ["value"], + "types": ["image"], + "required": false, + "hidden": true, + "semantics": { + "kind": "media", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "prompt_embeds_scale", + "semanticName": "prompt_embeds_scale", + "direction": "input", + "roles": ["value"], + "types": ["float"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "pooled_prompt_embeds_scale", + "semanticName": "pooled_prompt_embeds_scale", + "direction": "input", + "roles": ["value"], + "types": ["float"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "joint_attention_kwargs", + "semanticName": "joint_attention_kwargs", + "direction": "input", + "roles": ["value"], + "types": ["object"], + "required": false, + "hidden": false, + "semantics": { + "kind": "opaque", + "scope": "FluxKontextPipeline", + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "attention_kwargs", + "semanticName": "attention_kwargs", + "direction": "input", + "roles": ["value"], + "types": ["object"], + "required": false, + "hidden": true, + "semantics": { + "kind": "opaque", + "scope": "FluxKontextPipeline", + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "ip_adapter_image", + "semanticName": "ip_adapter_image", + "direction": "input", + "roles": ["value"], + "types": ["image"], + "required": false, + "hidden": false, + "semantics": { + "kind": "media", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "negative_ip_adapter_image", + "semanticName": "negative_ip_adapter_image", + "direction": "input", + "roles": ["value"], + "types": ["image"], + "required": false, + "hidden": false, + "semantics": { + "kind": "media", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "ip_adapter_image_embeds", + "semanticName": "ip_adapter_image_embeds", + "direction": "input", + "roles": ["value"], + "types": ["tensor"], + "required": false, + "hidden": false, + "semantics": { + "kind": "opaque", + "scope": "FluxKontextPipeline", + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "negative_ip_adapter_image_embeds", + "semanticName": "negative_ip_adapter_image_embeds", + "direction": "input", + "roles": ["value"], + "types": ["tensor"], + "required": false, + "hidden": false, + "semantics": { + "kind": "opaque", + "scope": "FluxKontextPipeline", + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "control_mode", + "semanticName": "control_mode", + "direction": "input", + "roles": ["value"], + "types": ["int"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "use_kv_cache", + "semanticName": "use_kv_cache", + "direction": "input", + "roles": ["value"], + "types": ["bool"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "pipeline", + "semanticName": "pipeline", + "direction": "input", + "roles": ["pipeline"], + "types": ["image_diffusion_pipeline"], + "required": true, + "hidden": false, + "semantics": { + "kind": "pipeline", + "scope": "FluxKontextPipeline", + "state": null, + "owner": "same_loader", + "members": [] + } + }, + { + "name": "image_contract", + "semanticName": "image_contract", + "direction": "input", + "roles": ["value"], + "types": ["object"], + "required": false, + "hidden": true, + "semantics": { + "kind": "opaque", + "scope": "FluxKontextPipeline", + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "prompt", + "semanticName": "prompt", + "direction": "input", + "roles": ["value"], + "types": ["text"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "negative_prompt", + "semanticName": "negative_prompt", + "direction": "input", + "roles": ["value"], + "types": ["text"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "width", + "semanticName": "width", + "direction": "input", + "roles": ["value"], + "types": ["int"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "height", + "semanticName": "height", + "direction": "input", + "roles": ["value"], + "types": ["int"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "seed", + "semanticName": "seed", + "direction": "input", + "roles": ["value"], + "types": ["int"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "num_inference_steps", + "semanticName": "num_inference_steps", + "direction": "input", + "roles": ["value"], + "types": ["int"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "guidance_scale", + "semanticName": "guidance_scale", + "direction": "input", + "roles": ["value"], + "types": ["float"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [], + "control": { + "technique": "classifier_free", + "parameter": "scale", + "compatibilityScope": "diffusers.classifier_free.v1", + "scaleMeaning": "cfg_prediction_mix", + "enabled": "scale_gt_one", + "enabledField": "guidance_scale", + "formulation": "diffusers", + "formulationField": null, + "selectorField": null, + "selectorValue": null, + "negativeConditioning": "pipeline_scoped_when_enabled", + "negativeConditioningScope": "FluxKontextPipeline", + "negativePromptField": "negative_prompt", + "negativePromptPolicy": "empty_string_is_condition" + } + } + }, + { + "name": "image_guidance_scale", + "semanticName": "image_guidance_scale", + "direction": "input", + "roles": ["value"], + "types": ["float"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "use_guidance_scale_2", + "semanticName": "use_guidance_scale_2", + "direction": "input", + "roles": ["value"], + "types": ["bool"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "guidance_scale_2", + "semanticName": "guidance_scale_2", + "direction": "input", + "roles": ["value"], + "types": ["float"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [], + "control": { + "technique": "embedded_distilled", + "parameter": "scale", + "compatibilityScope": "diffusers.flux1.embedded.v1", + "scaleMeaning": "distilled_model_embedding", + "enabled": "model_config", + "enabledField": null, + "formulation": "embedded", + "formulationField": null, + "selectorField": "use_guidance_scale_2", + "selectorValue": true, + "negativeConditioning": "none", + "negativeConditioningScope": null + } + } + }, + { + "name": "pag_scale", + "semanticName": "pag_scale", + "direction": "input", + "roles": ["value"], + "types": ["float"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "pag_adaptive_scale", + "semanticName": "pag_adaptive_scale", + "direction": "input", + "roles": ["value"], + "types": ["float"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "control_guidance_start", + "semanticName": "control_guidance_start", + "direction": "input", + "roles": ["value"], + "types": ["float"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "control_guidance_end", + "semanticName": "control_guidance_end", + "direction": "input", + "roles": ["value"], + "types": ["float"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "layers", + "semanticName": "layers", + "direction": "input", + "roles": ["value"], + "types": ["int"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "resolution", + "semanticName": "resolution", + "direction": "input", + "roles": ["value"], + "types": ["int"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "cfg_normalize", + "semanticName": "cfg_normalize", + "direction": "input", + "roles": ["value"], + "types": ["bool"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "use_en_prompt", + "semanticName": "use_en_prompt", + "direction": "input", + "roles": ["value"], + "types": ["bool"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "strength", + "semanticName": "strength", + "direction": "input", + "roles": ["value"], + "types": ["float"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "padding_mask_crop", + "semanticName": "padding_mask_crop", + "direction": "input", + "roles": ["value"], + "types": ["int"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "max_sequence_length", + "semanticName": "max_sequence_length", + "direction": "input", + "roles": ["value"], + "types": ["int"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "output_type", + "semanticName": "output_type", + "direction": "input", + "roles": ["value"], + "types": ["string"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "images", + "semanticName": "images", + "direction": "output", + "roles": ["value"], + "types": ["image"], + "required": false, + "hidden": false, + "semantics": { + "kind": "media", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "latents_out", + "semanticName": "latents_out", + "direction": "output", + "roles": ["value"], + "types": ["tensor"], + "required": false, + "hidden": false, + "semantics": { + "kind": "latents", + "scope": "FluxKontextPipeline", + "state": null, + "owner": "same_loader", + "members": [] + } + }, + { + "name": "width_out", + "semanticName": "width_out", + "direction": "output", + "roles": ["value"], + "types": ["int"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "height_out", + "semanticName": "height_out", + "direction": "output", + "roles": ["value"], + "types": ["int"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "image", + "semanticName": "image", + "direction": "input", + "roles": ["value"], + "types": ["image"], + "required": true, + "hidden": false, + "semantics": { + "kind": "media", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "reference_strength", + "semanticName": "reference_strength", + "direction": "input", + "roles": ["value"], + "types": ["float"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + } + ], + "workflowId": null, + "binding": { + "values": {}, + "pipelineClass": "FluxKontextPipeline" + } + }, + { + "pipelineClass": "FluxKontextInpaintPipeline", + "task": "inpaint", + "operationId": "diffusion.generate_image", + "nodeKey": "modules.DiffusersImage.Inpaint", + "nodeType": "pipeline", + "blockName": null, + "decomposition": "pipeline", + "support": "declared", + "ports": [ + { + "name": "latents", + "semanticName": "latents", + "direction": "input", + "roles": ["value"], + "types": ["tensor"], + "required": false, + "hidden": false, + "semantics": { + "kind": "latents", + "scope": "FluxKontextInpaintPipeline", + "state": null, + "owner": "same_loader", + "members": [] + } + }, + { + "name": "prompt_embeds", + "semanticName": "prompt_embeds", + "direction": "input", + "roles": ["value"], + "types": ["tensor"], + "required": false, + "hidden": false, + "semantics": { + "kind": "opaque", + "scope": "FluxKontextInpaintPipeline", + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "pooled_prompt_embeds", + "semanticName": "pooled_prompt_embeds", + "direction": "input", + "roles": ["value"], + "types": ["tensor"], + "required": false, + "hidden": false, + "semantics": { + "kind": "opaque", + "scope": "FluxKontextInpaintPipeline", + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "negative_prompt_embeds", + "semanticName": "negative_prompt_embeds", + "direction": "input", + "roles": ["value"], + "types": ["tensor"], + "required": false, + "hidden": false, + "semantics": { + "kind": "opaque", + "scope": "FluxKontextInpaintPipeline", + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "negative_pooled_prompt_embeds", + "semanticName": "negative_pooled_prompt_embeds", + "direction": "input", + "roles": ["value"], + "types": ["tensor"], + "required": false, + "hidden": false, + "semantics": { + "kind": "opaque", + "scope": "FluxKontextInpaintPipeline", + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "masked_image_latents", + "semanticName": "masked_image_latents", + "direction": "input", + "roles": ["value"], + "types": ["tensor"], + "required": false, + "hidden": true, + "semantics": { + "kind": "latents", + "scope": "FluxKontextInpaintPipeline", + "state": null, + "owner": "same_loader", + "members": [] + } + }, + { + "name": "generator", + "semanticName": "generator", + "direction": "input", + "roles": ["value"], + "types": ["generator"], + "required": false, + "hidden": false, + "semantics": { + "kind": "opaque", + "scope": "FluxKontextInpaintPipeline", + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "prompt_2", + "semanticName": "prompt_2", + "direction": "input", + "roles": ["value"], + "types": ["text"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "negative_prompt_2", + "semanticName": "negative_prompt_2", + "direction": "input", + "roles": ["value"], + "types": ["text"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "num_images_per_prompt", + "semanticName": "num_images_per_prompt", + "direction": "input", + "roles": ["value"], + "types": ["int"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "sigmas", + "semanticName": "sigmas", + "direction": "input", + "roles": ["value"], + "types": ["float"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "text_encoder_out_layers", + "semanticName": "text_encoder_out_layers", + "direction": "input", + "roles": ["value"], + "types": ["int"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "caption_upsample_temperature", + "semanticName": "caption_upsample_temperature", + "direction": "input", + "roles": ["value"], + "types": ["float"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "max_area", + "semanticName": "max_area", + "direction": "input", + "roles": ["value"], + "types": ["int"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "_auto_resize", + "semanticName": "_auto_resize", + "direction": "input", + "roles": ["value"], + "types": ["bool"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "image_reference", + "semanticName": "image_reference", + "direction": "input", + "roles": ["value"], + "types": ["image"], + "required": false, + "hidden": false, + "semantics": { + "kind": "media", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "prompt_embeds_scale", + "semanticName": "prompt_embeds_scale", + "direction": "input", + "roles": ["value"], + "types": ["float"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "pooled_prompt_embeds_scale", + "semanticName": "pooled_prompt_embeds_scale", + "direction": "input", + "roles": ["value"], + "types": ["float"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "joint_attention_kwargs", + "semanticName": "joint_attention_kwargs", + "direction": "input", + "roles": ["value"], + "types": ["object"], + "required": false, + "hidden": false, + "semantics": { + "kind": "opaque", + "scope": "FluxKontextInpaintPipeline", + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "attention_kwargs", + "semanticName": "attention_kwargs", + "direction": "input", + "roles": ["value"], + "types": ["object"], + "required": false, + "hidden": true, + "semantics": { + "kind": "opaque", + "scope": "FluxKontextInpaintPipeline", + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "ip_adapter_image", + "semanticName": "ip_adapter_image", + "direction": "input", + "roles": ["value"], + "types": ["image"], + "required": false, + "hidden": false, + "semantics": { + "kind": "media", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "negative_ip_adapter_image", + "semanticName": "negative_ip_adapter_image", + "direction": "input", + "roles": ["value"], + "types": ["image"], + "required": false, + "hidden": false, + "semantics": { + "kind": "media", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "ip_adapter_image_embeds", + "semanticName": "ip_adapter_image_embeds", + "direction": "input", + "roles": ["value"], + "types": ["tensor"], + "required": false, + "hidden": false, + "semantics": { + "kind": "opaque", + "scope": "FluxKontextInpaintPipeline", + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "negative_ip_adapter_image_embeds", + "semanticName": "negative_ip_adapter_image_embeds", + "direction": "input", + "roles": ["value"], + "types": ["tensor"], + "required": false, + "hidden": false, + "semantics": { + "kind": "opaque", + "scope": "FluxKontextInpaintPipeline", + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "control_mode", + "semanticName": "control_mode", + "direction": "input", + "roles": ["value"], + "types": ["int"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "use_kv_cache", + "semanticName": "use_kv_cache", + "direction": "input", + "roles": ["value"], + "types": ["bool"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "pipeline", + "semanticName": "pipeline", + "direction": "input", + "roles": ["pipeline"], + "types": ["image_diffusion_pipeline"], + "required": true, + "hidden": false, + "semantics": { + "kind": "pipeline", + "scope": "FluxKontextInpaintPipeline", + "state": null, + "owner": "same_loader", + "members": [] + } + }, + { + "name": "image_contract", + "semanticName": "image_contract", + "direction": "input", + "roles": ["value"], + "types": ["object"], + "required": false, + "hidden": true, + "semantics": { + "kind": "opaque", + "scope": "FluxKontextInpaintPipeline", + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "prompt", + "semanticName": "prompt", + "direction": "input", + "roles": ["value"], + "types": ["text"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "negative_prompt", + "semanticName": "negative_prompt", + "direction": "input", + "roles": ["value"], + "types": ["text"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "width", + "semanticName": "width", + "direction": "input", + "roles": ["value"], + "types": ["int"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "height", + "semanticName": "height", + "direction": "input", + "roles": ["value"], + "types": ["int"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "seed", + "semanticName": "seed", + "direction": "input", + "roles": ["value"], + "types": ["int"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "num_inference_steps", + "semanticName": "num_inference_steps", + "direction": "input", + "roles": ["value"], + "types": ["int"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "guidance_scale", + "semanticName": "guidance_scale", + "direction": "input", + "roles": ["value"], + "types": ["float"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [], + "control": { + "technique": "classifier_free", + "parameter": "scale", + "compatibilityScope": "diffusers.classifier_free.v1", + "scaleMeaning": "cfg_prediction_mix", + "enabled": "scale_gt_one", + "enabledField": "guidance_scale", + "formulation": "diffusers", + "formulationField": null, + "selectorField": null, + "selectorValue": null, + "negativeConditioning": "pipeline_scoped_when_enabled", + "negativeConditioningScope": "FluxKontextInpaintPipeline", + "negativePromptField": "negative_prompt", + "negativePromptPolicy": "empty_string_is_condition" + } + } + }, + { + "name": "image_guidance_scale", + "semanticName": "image_guidance_scale", + "direction": "input", + "roles": ["value"], + "types": ["float"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "use_guidance_scale_2", + "semanticName": "use_guidance_scale_2", + "direction": "input", + "roles": ["value"], + "types": ["bool"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "guidance_scale_2", + "semanticName": "guidance_scale_2", + "direction": "input", + "roles": ["value"], + "types": ["float"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [], + "control": { + "technique": "embedded_distilled", + "parameter": "scale", + "compatibilityScope": "diffusers.flux1.embedded.v1", + "scaleMeaning": "distilled_model_embedding", + "enabled": "model_config", + "enabledField": null, + "formulation": "embedded", + "formulationField": null, + "selectorField": "use_guidance_scale_2", + "selectorValue": true, + "negativeConditioning": "none", + "negativeConditioningScope": null + } + } + }, + { + "name": "pag_scale", + "semanticName": "pag_scale", + "direction": "input", + "roles": ["value"], + "types": ["float"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "pag_adaptive_scale", + "semanticName": "pag_adaptive_scale", + "direction": "input", + "roles": ["value"], + "types": ["float"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "control_guidance_start", + "semanticName": "control_guidance_start", + "direction": "input", + "roles": ["value"], + "types": ["float"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "control_guidance_end", + "semanticName": "control_guidance_end", + "direction": "input", + "roles": ["value"], + "types": ["float"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "layers", + "semanticName": "layers", + "direction": "input", + "roles": ["value"], + "types": ["int"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "resolution", + "semanticName": "resolution", + "direction": "input", + "roles": ["value"], + "types": ["int"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "cfg_normalize", + "semanticName": "cfg_normalize", + "direction": "input", + "roles": ["value"], + "types": ["bool"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "use_en_prompt", + "semanticName": "use_en_prompt", + "direction": "input", + "roles": ["value"], + "types": ["bool"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "strength", + "semanticName": "strength", + "direction": "input", + "roles": ["value"], + "types": ["float"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "padding_mask_crop", + "semanticName": "padding_mask_crop", + "direction": "input", + "roles": ["value"], + "types": ["int"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "max_sequence_length", + "semanticName": "max_sequence_length", + "direction": "input", + "roles": ["value"], + "types": ["int"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "output_type", + "semanticName": "output_type", + "direction": "input", + "roles": ["value"], + "types": ["string"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "images", + "semanticName": "images", + "direction": "output", + "roles": ["value"], + "types": ["image"], + "required": false, + "hidden": false, + "semantics": { + "kind": "media", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "latents_out", + "semanticName": "latents_out", + "direction": "output", + "roles": ["value"], + "types": ["tensor"], + "required": false, + "hidden": false, + "semantics": { + "kind": "latents", + "scope": "FluxKontextInpaintPipeline", + "state": null, + "owner": "same_loader", + "members": [] + } + }, + { + "name": "width_out", + "semanticName": "width_out", + "direction": "output", + "roles": ["value"], + "types": ["int"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "height_out", + "semanticName": "height_out", + "direction": "output", + "roles": ["value"], + "types": ["int"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "image", + "semanticName": "image", + "direction": "input", + "roles": ["value"], + "types": ["image"], + "required": true, + "hidden": false, + "semantics": { + "kind": "media", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "reference_strength", + "semanticName": "reference_strength", + "direction": "input", + "roles": ["value"], + "types": ["float"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "mask_image", + "semanticName": "mask_image", + "direction": "input", + "roles": ["value"], + "types": ["image"], + "required": true, + "hidden": false, + "semantics": { + "kind": "media", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + } + ], + "workflowId": null, + "binding": { + "values": {}, + "pipelineClass": "FluxKontextInpaintPipeline" + } + }, + { + "pipelineClass": "FluxFillPipeline", + "task": "inpaint", + "operationId": "diffusion.generate_image", + "nodeKey": "modules.DiffusersImage.Inpaint", + "nodeType": "pipeline", + "blockName": null, + "decomposition": "pipeline", + "support": "declared", + "ports": [ + { + "name": "latents", + "semanticName": "latents", + "direction": "input", + "roles": ["value"], + "types": ["tensor"], + "required": false, + "hidden": false, + "semantics": { + "kind": "latents", + "scope": "FluxFillPipeline", + "state": null, + "owner": "same_loader", + "members": [] + } + }, + { + "name": "prompt_embeds", + "semanticName": "prompt_embeds", + "direction": "input", + "roles": ["value"], + "types": ["tensor"], + "required": false, + "hidden": false, + "semantics": { + "kind": "opaque", + "scope": "FluxFillPipeline", + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "pooled_prompt_embeds", + "semanticName": "pooled_prompt_embeds", + "direction": "input", + "roles": ["value"], + "types": ["tensor"], + "required": false, + "hidden": false, + "semantics": { + "kind": "opaque", + "scope": "FluxFillPipeline", + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "negative_prompt_embeds", + "semanticName": "negative_prompt_embeds", + "direction": "input", + "roles": ["value"], + "types": ["tensor"], + "required": false, + "hidden": true, + "semantics": { + "kind": "opaque", + "scope": "FluxFillPipeline", + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "negative_pooled_prompt_embeds", + "semanticName": "negative_pooled_prompt_embeds", + "direction": "input", + "roles": ["value"], + "types": ["tensor"], + "required": false, + "hidden": true, + "semantics": { + "kind": "opaque", + "scope": "FluxFillPipeline", + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "masked_image_latents", + "semanticName": "masked_image_latents", + "direction": "input", + "roles": ["value"], + "types": ["tensor"], + "required": false, + "hidden": false, + "semantics": { + "kind": "latents", + "scope": "FluxFillPipeline", + "state": null, + "owner": "same_loader", + "members": [] + } + }, + { + "name": "generator", + "semanticName": "generator", + "direction": "input", + "roles": ["value"], + "types": ["generator"], + "required": false, + "hidden": false, + "semantics": { + "kind": "opaque", + "scope": "FluxFillPipeline", + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "prompt_2", + "semanticName": "prompt_2", + "direction": "input", + "roles": ["value"], + "types": ["text"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "negative_prompt_2", + "semanticName": "negative_prompt_2", + "direction": "input", + "roles": ["value"], + "types": ["text"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "num_images_per_prompt", + "semanticName": "num_images_per_prompt", + "direction": "input", + "roles": ["value"], + "types": ["int"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "sigmas", + "semanticName": "sigmas", + "direction": "input", + "roles": ["value"], + "types": ["float"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "text_encoder_out_layers", + "semanticName": "text_encoder_out_layers", + "direction": "input", + "roles": ["value"], + "types": ["int"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "caption_upsample_temperature", + "semanticName": "caption_upsample_temperature", + "direction": "input", + "roles": ["value"], + "types": ["float"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "max_area", + "semanticName": "max_area", + "direction": "input", + "roles": ["value"], + "types": ["int"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "_auto_resize", + "semanticName": "_auto_resize", + "direction": "input", + "roles": ["value"], + "types": ["bool"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "image_reference", + "semanticName": "image_reference", + "direction": "input", + "roles": ["value"], + "types": ["image"], + "required": false, + "hidden": true, + "semantics": { + "kind": "media", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "prompt_embeds_scale", + "semanticName": "prompt_embeds_scale", + "direction": "input", + "roles": ["value"], + "types": ["float"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "pooled_prompt_embeds_scale", + "semanticName": "pooled_prompt_embeds_scale", + "direction": "input", + "roles": ["value"], + "types": ["float"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "joint_attention_kwargs", + "semanticName": "joint_attention_kwargs", + "direction": "input", + "roles": ["value"], + "types": ["object"], + "required": false, + "hidden": false, + "semantics": { + "kind": "opaque", + "scope": "FluxFillPipeline", + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "attention_kwargs", + "semanticName": "attention_kwargs", + "direction": "input", + "roles": ["value"], + "types": ["object"], + "required": false, + "hidden": true, + "semantics": { + "kind": "opaque", + "scope": "FluxFillPipeline", + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "ip_adapter_image", + "semanticName": "ip_adapter_image", + "direction": "input", + "roles": ["value"], + "types": ["image"], + "required": false, + "hidden": true, + "semantics": { + "kind": "media", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "negative_ip_adapter_image", + "semanticName": "negative_ip_adapter_image", + "direction": "input", + "roles": ["value"], + "types": ["image"], + "required": false, + "hidden": true, + "semantics": { + "kind": "media", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "ip_adapter_image_embeds", + "semanticName": "ip_adapter_image_embeds", + "direction": "input", + "roles": ["value"], + "types": ["tensor"], + "required": false, + "hidden": true, + "semantics": { + "kind": "opaque", + "scope": "FluxFillPipeline", + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "negative_ip_adapter_image_embeds", + "semanticName": "negative_ip_adapter_image_embeds", + "direction": "input", + "roles": ["value"], + "types": ["tensor"], + "required": false, + "hidden": true, + "semantics": { + "kind": "opaque", + "scope": "FluxFillPipeline", + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "control_mode", + "semanticName": "control_mode", + "direction": "input", + "roles": ["value"], + "types": ["int"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "use_kv_cache", + "semanticName": "use_kv_cache", + "direction": "input", + "roles": ["value"], + "types": ["bool"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "pipeline", + "semanticName": "pipeline", + "direction": "input", + "roles": ["pipeline"], + "types": ["image_diffusion_pipeline"], + "required": true, + "hidden": false, + "semantics": { + "kind": "pipeline", + "scope": "FluxFillPipeline", + "state": null, + "owner": "same_loader", + "members": [] + } + }, + { + "name": "image_contract", + "semanticName": "image_contract", + "direction": "input", + "roles": ["value"], + "types": ["object"], + "required": false, + "hidden": true, + "semantics": { + "kind": "opaque", + "scope": "FluxFillPipeline", + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "prompt", + "semanticName": "prompt", + "direction": "input", + "roles": ["value"], + "types": ["text"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "negative_prompt", + "semanticName": "negative_prompt", + "direction": "input", + "roles": ["value"], + "types": ["text"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "width", + "semanticName": "width", + "direction": "input", + "roles": ["value"], + "types": ["int"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "height", + "semanticName": "height", + "direction": "input", + "roles": ["value"], + "types": ["int"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "seed", + "semanticName": "seed", + "direction": "input", + "roles": ["value"], + "types": ["int"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "num_inference_steps", + "semanticName": "num_inference_steps", + "direction": "input", + "roles": ["value"], + "types": ["int"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "guidance_scale", + "semanticName": "guidance_scale", + "direction": "input", + "roles": ["value"], + "types": ["float"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [], + "control": { + "technique": "embedded_distilled", + "parameter": "scale", + "compatibilityScope": "diffusers.flux1.fill_embedded.v1", + "scaleMeaning": "distilled_model_embedding", + "enabled": "model_config", + "enabledField": null, + "formulation": "embedded", + "formulationField": null, + "selectorField": null, + "selectorValue": null, + "negativeConditioning": "none", + "negativeConditioningScope": null + } + } + }, + { + "name": "image_guidance_scale", + "semanticName": "image_guidance_scale", + "direction": "input", + "roles": ["value"], + "types": ["float"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "use_guidance_scale_2", + "semanticName": "use_guidance_scale_2", + "direction": "input", + "roles": ["value"], + "types": ["bool"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "guidance_scale_2", + "semanticName": "guidance_scale_2", + "direction": "input", + "roles": ["value"], + "types": ["float"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "pag_scale", + "semanticName": "pag_scale", + "direction": "input", + "roles": ["value"], + "types": ["float"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "pag_adaptive_scale", + "semanticName": "pag_adaptive_scale", + "direction": "input", + "roles": ["value"], + "types": ["float"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "control_guidance_start", + "semanticName": "control_guidance_start", + "direction": "input", + "roles": ["value"], + "types": ["float"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "control_guidance_end", + "semanticName": "control_guidance_end", + "direction": "input", + "roles": ["value"], + "types": ["float"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "layers", + "semanticName": "layers", + "direction": "input", + "roles": ["value"], + "types": ["int"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "resolution", + "semanticName": "resolution", + "direction": "input", + "roles": ["value"], + "types": ["int"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "cfg_normalize", + "semanticName": "cfg_normalize", + "direction": "input", + "roles": ["value"], + "types": ["bool"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "use_en_prompt", + "semanticName": "use_en_prompt", + "direction": "input", + "roles": ["value"], + "types": ["bool"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "strength", + "semanticName": "strength", + "direction": "input", + "roles": ["value"], + "types": ["float"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "padding_mask_crop", + "semanticName": "padding_mask_crop", + "direction": "input", + "roles": ["value"], + "types": ["int"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "max_sequence_length", + "semanticName": "max_sequence_length", + "direction": "input", + "roles": ["value"], + "types": ["int"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "output_type", + "semanticName": "output_type", + "direction": "input", + "roles": ["value"], + "types": ["string"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "images", + "semanticName": "images", + "direction": "output", + "roles": ["value"], + "types": ["image"], + "required": false, + "hidden": false, + "semantics": { + "kind": "media", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "latents_out", + "semanticName": "latents_out", + "direction": "output", + "roles": ["value"], + "types": ["tensor"], + "required": false, + "hidden": false, + "semantics": { + "kind": "latents", + "scope": "FluxFillPipeline", + "state": null, + "owner": "same_loader", + "members": [] + } + }, + { + "name": "width_out", + "semanticName": "width_out", + "direction": "output", + "roles": ["value"], + "types": ["int"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "height_out", + "semanticName": "height_out", + "direction": "output", + "roles": ["value"], + "types": ["int"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "image", + "semanticName": "image", + "direction": "input", + "roles": ["value"], + "types": ["image"], + "required": true, + "hidden": false, + "semantics": { + "kind": "media", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "reference_strength", + "semanticName": "reference_strength", + "direction": "input", + "roles": ["value"], + "types": ["float"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "mask_image", + "semanticName": "mask_image", + "direction": "input", + "roles": ["value"], + "types": ["image"], + "required": true, + "hidden": false, + "semantics": { + "kind": "media", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + } + ], + "workflowId": null, + "binding": { + "values": {}, + "pipelineClass": "FluxFillPipeline" + } + }, + { + "pipelineClass": "FluxControlPipeline", + "task": "control_image", + "operationId": "diffusion.generate_image", + "nodeKey": "modules.DiffusersImage.ControlGenerate", + "nodeType": "pipeline", + "blockName": null, + "decomposition": "pipeline", + "support": "declared", + "ports": [ + { + "name": "latents", + "semanticName": "latents", + "direction": "input", + "roles": ["value"], + "types": ["tensor"], + "required": false, + "hidden": false, + "semantics": { + "kind": "latents", + "scope": "FluxControlPipeline", + "state": null, + "owner": "same_loader", + "members": [] + } + }, + { + "name": "prompt_embeds", + "semanticName": "prompt_embeds", + "direction": "input", + "roles": ["value"], + "types": ["tensor"], + "required": false, + "hidden": false, + "semantics": { + "kind": "opaque", + "scope": "FluxControlPipeline", + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "pooled_prompt_embeds", + "semanticName": "pooled_prompt_embeds", + "direction": "input", + "roles": ["value"], + "types": ["tensor"], + "required": false, + "hidden": false, + "semantics": { + "kind": "opaque", + "scope": "FluxControlPipeline", + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "negative_prompt_embeds", + "semanticName": "negative_prompt_embeds", + "direction": "input", + "roles": ["value"], + "types": ["tensor"], + "required": false, + "hidden": true, + "semantics": { + "kind": "opaque", + "scope": "FluxControlPipeline", + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "negative_pooled_prompt_embeds", + "semanticName": "negative_pooled_prompt_embeds", + "direction": "input", + "roles": ["value"], + "types": ["tensor"], + "required": false, + "hidden": true, + "semantics": { + "kind": "opaque", + "scope": "FluxControlPipeline", + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "masked_image_latents", + "semanticName": "masked_image_latents", + "direction": "input", + "roles": ["value"], + "types": ["tensor"], + "required": false, + "hidden": true, + "semantics": { + "kind": "latents", + "scope": "FluxControlPipeline", + "state": null, + "owner": "same_loader", + "members": [] + } + }, + { + "name": "generator", + "semanticName": "generator", + "direction": "input", + "roles": ["value"], + "types": ["generator"], + "required": false, + "hidden": false, + "semantics": { + "kind": "opaque", + "scope": "FluxControlPipeline", + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "prompt_2", + "semanticName": "prompt_2", + "direction": "input", + "roles": ["value"], + "types": ["text"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "negative_prompt_2", + "semanticName": "negative_prompt_2", + "direction": "input", + "roles": ["value"], + "types": ["text"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "num_images_per_prompt", + "semanticName": "num_images_per_prompt", + "direction": "input", + "roles": ["value"], + "types": ["int"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "sigmas", + "semanticName": "sigmas", + "direction": "input", + "roles": ["value"], + "types": ["float"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "text_encoder_out_layers", + "semanticName": "text_encoder_out_layers", + "direction": "input", + "roles": ["value"], + "types": ["int"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "caption_upsample_temperature", + "semanticName": "caption_upsample_temperature", + "direction": "input", + "roles": ["value"], + "types": ["float"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "max_area", + "semanticName": "max_area", + "direction": "input", + "roles": ["value"], + "types": ["int"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "_auto_resize", + "semanticName": "_auto_resize", + "direction": "input", + "roles": ["value"], + "types": ["bool"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "image_reference", + "semanticName": "image_reference", + "direction": "input", + "roles": ["value"], + "types": ["image"], + "required": false, + "hidden": true, + "semantics": { + "kind": "media", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "prompt_embeds_scale", + "semanticName": "prompt_embeds_scale", + "direction": "input", + "roles": ["value"], + "types": ["float"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "pooled_prompt_embeds_scale", + "semanticName": "pooled_prompt_embeds_scale", + "direction": "input", + "roles": ["value"], + "types": ["float"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "joint_attention_kwargs", + "semanticName": "joint_attention_kwargs", + "direction": "input", + "roles": ["value"], + "types": ["object"], + "required": false, + "hidden": false, + "semantics": { + "kind": "opaque", + "scope": "FluxControlPipeline", + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "attention_kwargs", + "semanticName": "attention_kwargs", + "direction": "input", + "roles": ["value"], + "types": ["object"], + "required": false, + "hidden": true, + "semantics": { + "kind": "opaque", + "scope": "FluxControlPipeline", + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "ip_adapter_image", + "semanticName": "ip_adapter_image", + "direction": "input", + "roles": ["value"], + "types": ["image"], + "required": false, + "hidden": true, + "semantics": { + "kind": "media", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "negative_ip_adapter_image", + "semanticName": "negative_ip_adapter_image", + "direction": "input", + "roles": ["value"], + "types": ["image"], + "required": false, + "hidden": true, + "semantics": { + "kind": "media", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "ip_adapter_image_embeds", + "semanticName": "ip_adapter_image_embeds", + "direction": "input", + "roles": ["value"], + "types": ["tensor"], + "required": false, + "hidden": true, + "semantics": { + "kind": "opaque", + "scope": "FluxControlPipeline", + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "negative_ip_adapter_image_embeds", + "semanticName": "negative_ip_adapter_image_embeds", + "direction": "input", + "roles": ["value"], + "types": ["tensor"], + "required": false, + "hidden": true, + "semantics": { + "kind": "opaque", + "scope": "FluxControlPipeline", + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "control_mode", + "semanticName": "control_mode", + "direction": "input", + "roles": ["value"], + "types": ["int"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "use_kv_cache", + "semanticName": "use_kv_cache", + "direction": "input", + "roles": ["value"], + "types": ["bool"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "pipeline", + "semanticName": "pipeline", + "direction": "input", + "roles": ["pipeline"], + "types": ["image_diffusion_pipeline"], + "required": true, + "hidden": false, + "semantics": { + "kind": "pipeline", + "scope": "FluxControlPipeline", + "state": null, + "owner": "same_loader", + "members": [] + } + }, + { + "name": "image_contract", + "semanticName": "image_contract", + "direction": "input", + "roles": ["value"], + "types": ["object"], + "required": false, + "hidden": true, + "semantics": { + "kind": "opaque", + "scope": "FluxControlPipeline", + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "prompt", + "semanticName": "prompt", + "direction": "input", + "roles": ["value"], + "types": ["text"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "negative_prompt", + "semanticName": "negative_prompt", + "direction": "input", + "roles": ["value"], + "types": ["text"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "width", + "semanticName": "width", + "direction": "input", + "roles": ["value"], + "types": ["int"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "height", + "semanticName": "height", + "direction": "input", + "roles": ["value"], + "types": ["int"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "seed", + "semanticName": "seed", + "direction": "input", + "roles": ["value"], + "types": ["int"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "num_inference_steps", + "semanticName": "num_inference_steps", + "direction": "input", + "roles": ["value"], + "types": ["int"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "guidance_scale", + "semanticName": "guidance_scale", + "direction": "input", + "roles": ["value"], + "types": ["float"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [], + "control": { + "technique": "embedded_distilled", + "parameter": "scale", + "compatibilityScope": "diffusers.flux1.control_embedded.v1", + "scaleMeaning": "distilled_model_embedding", + "enabled": "model_config", + "enabledField": null, + "formulation": "embedded", + "formulationField": null, + "selectorField": null, + "selectorValue": null, + "negativeConditioning": "none", + "negativeConditioningScope": null + } + } + }, + { + "name": "image_guidance_scale", + "semanticName": "image_guidance_scale", + "direction": "input", + "roles": ["value"], + "types": ["float"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "use_guidance_scale_2", + "semanticName": "use_guidance_scale_2", + "direction": "input", + "roles": ["value"], + "types": ["bool"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "guidance_scale_2", + "semanticName": "guidance_scale_2", + "direction": "input", + "roles": ["value"], + "types": ["float"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "pag_scale", + "semanticName": "pag_scale", + "direction": "input", + "roles": ["value"], + "types": ["float"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "pag_adaptive_scale", + "semanticName": "pag_adaptive_scale", + "direction": "input", + "roles": ["value"], + "types": ["float"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "control_guidance_start", + "semanticName": "control_guidance_start", + "direction": "input", + "roles": ["value"], + "types": ["float"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "control_guidance_end", + "semanticName": "control_guidance_end", + "direction": "input", + "roles": ["value"], + "types": ["float"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "layers", + "semanticName": "layers", + "direction": "input", + "roles": ["value"], + "types": ["int"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "resolution", + "semanticName": "resolution", + "direction": "input", + "roles": ["value"], + "types": ["int"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "cfg_normalize", + "semanticName": "cfg_normalize", + "direction": "input", + "roles": ["value"], + "types": ["bool"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "use_en_prompt", + "semanticName": "use_en_prompt", + "direction": "input", + "roles": ["value"], + "types": ["bool"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "strength", + "semanticName": "strength", + "direction": "input", + "roles": ["value"], + "types": ["float"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "padding_mask_crop", + "semanticName": "padding_mask_crop", + "direction": "input", + "roles": ["value"], + "types": ["int"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "max_sequence_length", + "semanticName": "max_sequence_length", + "direction": "input", + "roles": ["value"], + "types": ["int"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "output_type", + "semanticName": "output_type", + "direction": "input", + "roles": ["value"], + "types": ["string"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "images", + "semanticName": "images", + "direction": "output", + "roles": ["value"], + "types": ["image"], + "required": false, + "hidden": false, + "semantics": { + "kind": "media", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "latents_out", + "semanticName": "latents_out", + "direction": "output", + "roles": ["value"], + "types": ["tensor"], + "required": false, + "hidden": false, + "semantics": { + "kind": "latents", + "scope": "FluxControlPipeline", + "state": null, + "owner": "same_loader", + "members": [] + } + }, + { + "name": "width_out", + "semanticName": "width_out", + "direction": "output", + "roles": ["value"], + "types": ["int"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "height_out", + "semanticName": "height_out", + "direction": "output", + "roles": ["value"], + "types": ["int"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "control_image", + "semanticName": "control_image", + "direction": "input", + "roles": ["value"], + "types": ["image"], + "required": true, + "hidden": false, + "semantics": { + "kind": "media", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "conditioning_scale", + "semanticName": "conditioning_scale", + "direction": "input", + "roles": ["value"], + "types": ["float"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + } + ], + "workflowId": null, + "binding": { + "values": {}, + "pipelineClass": "FluxControlPipeline" + } + }, + { + "pipelineClass": "FluxControlImg2ImgPipeline", + "task": "control_edit_image", + "operationId": "diffusion.generate_image", + "nodeKey": "modules.DiffusersImage.ControlEdit", + "nodeType": "pipeline", + "blockName": null, + "decomposition": "pipeline", + "support": "declared", + "ports": [ + { + "name": "latents", + "semanticName": "latents", + "direction": "input", + "roles": ["value"], + "types": ["tensor"], + "required": false, + "hidden": false, + "semantics": { + "kind": "latents", + "scope": "FluxControlImg2ImgPipeline", + "state": null, + "owner": "same_loader", + "members": [] + } + }, + { + "name": "prompt_embeds", + "semanticName": "prompt_embeds", + "direction": "input", + "roles": ["value"], + "types": ["tensor"], + "required": false, + "hidden": false, + "semantics": { + "kind": "opaque", + "scope": "FluxControlImg2ImgPipeline", + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "pooled_prompt_embeds", + "semanticName": "pooled_prompt_embeds", + "direction": "input", + "roles": ["value"], + "types": ["tensor"], + "required": false, + "hidden": false, + "semantics": { + "kind": "opaque", + "scope": "FluxControlImg2ImgPipeline", + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "negative_prompt_embeds", + "semanticName": "negative_prompt_embeds", + "direction": "input", + "roles": ["value"], + "types": ["tensor"], + "required": false, + "hidden": true, + "semantics": { + "kind": "opaque", + "scope": "FluxControlImg2ImgPipeline", + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "negative_pooled_prompt_embeds", + "semanticName": "negative_pooled_prompt_embeds", + "direction": "input", + "roles": ["value"], + "types": ["tensor"], + "required": false, + "hidden": true, + "semantics": { + "kind": "opaque", + "scope": "FluxControlImg2ImgPipeline", + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "masked_image_latents", + "semanticName": "masked_image_latents", + "direction": "input", + "roles": ["value"], + "types": ["tensor"], + "required": false, + "hidden": true, + "semantics": { + "kind": "latents", + "scope": "FluxControlImg2ImgPipeline", + "state": null, + "owner": "same_loader", + "members": [] + } + }, + { + "name": "generator", + "semanticName": "generator", + "direction": "input", + "roles": ["value"], + "types": ["generator"], + "required": false, + "hidden": false, + "semantics": { + "kind": "opaque", + "scope": "FluxControlImg2ImgPipeline", + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "prompt_2", + "semanticName": "prompt_2", + "direction": "input", + "roles": ["value"], + "types": ["text"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "negative_prompt_2", + "semanticName": "negative_prompt_2", + "direction": "input", + "roles": ["value"], + "types": ["text"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "num_images_per_prompt", + "semanticName": "num_images_per_prompt", + "direction": "input", + "roles": ["value"], + "types": ["int"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "sigmas", + "semanticName": "sigmas", + "direction": "input", + "roles": ["value"], + "types": ["float"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "text_encoder_out_layers", + "semanticName": "text_encoder_out_layers", + "direction": "input", + "roles": ["value"], + "types": ["int"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "caption_upsample_temperature", + "semanticName": "caption_upsample_temperature", + "direction": "input", + "roles": ["value"], + "types": ["float"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "max_area", + "semanticName": "max_area", + "direction": "input", + "roles": ["value"], + "types": ["int"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "_auto_resize", + "semanticName": "_auto_resize", + "direction": "input", + "roles": ["value"], + "types": ["bool"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "image_reference", + "semanticName": "image_reference", + "direction": "input", + "roles": ["value"], + "types": ["image"], + "required": false, + "hidden": true, + "semantics": { + "kind": "media", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "prompt_embeds_scale", + "semanticName": "prompt_embeds_scale", + "direction": "input", + "roles": ["value"], + "types": ["float"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "pooled_prompt_embeds_scale", + "semanticName": "pooled_prompt_embeds_scale", + "direction": "input", + "roles": ["value"], + "types": ["float"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "joint_attention_kwargs", + "semanticName": "joint_attention_kwargs", + "direction": "input", + "roles": ["value"], + "types": ["object"], + "required": false, + "hidden": false, + "semantics": { + "kind": "opaque", + "scope": "FluxControlImg2ImgPipeline", + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "attention_kwargs", + "semanticName": "attention_kwargs", + "direction": "input", + "roles": ["value"], + "types": ["object"], + "required": false, + "hidden": true, + "semantics": { + "kind": "opaque", + "scope": "FluxControlImg2ImgPipeline", + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "ip_adapter_image", + "semanticName": "ip_adapter_image", + "direction": "input", + "roles": ["value"], + "types": ["image"], + "required": false, + "hidden": true, + "semantics": { + "kind": "media", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "negative_ip_adapter_image", + "semanticName": "negative_ip_adapter_image", + "direction": "input", + "roles": ["value"], + "types": ["image"], + "required": false, + "hidden": true, + "semantics": { + "kind": "media", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "ip_adapter_image_embeds", + "semanticName": "ip_adapter_image_embeds", + "direction": "input", + "roles": ["value"], + "types": ["tensor"], + "required": false, + "hidden": true, + "semantics": { + "kind": "opaque", + "scope": "FluxControlImg2ImgPipeline", + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "negative_ip_adapter_image_embeds", + "semanticName": "negative_ip_adapter_image_embeds", + "direction": "input", + "roles": ["value"], + "types": ["tensor"], + "required": false, + "hidden": true, + "semantics": { + "kind": "opaque", + "scope": "FluxControlImg2ImgPipeline", + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "control_mode", + "semanticName": "control_mode", + "direction": "input", + "roles": ["value"], + "types": ["int"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "use_kv_cache", + "semanticName": "use_kv_cache", + "direction": "input", + "roles": ["value"], + "types": ["bool"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "pipeline", + "semanticName": "pipeline", + "direction": "input", + "roles": ["pipeline"], + "types": ["image_diffusion_pipeline"], + "required": true, + "hidden": false, + "semantics": { + "kind": "pipeline", + "scope": "FluxControlImg2ImgPipeline", + "state": null, + "owner": "same_loader", + "members": [] + } + }, + { + "name": "image_contract", + "semanticName": "image_contract", + "direction": "input", + "roles": ["value"], + "types": ["object"], + "required": false, + "hidden": true, + "semantics": { + "kind": "opaque", + "scope": "FluxControlImg2ImgPipeline", + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "prompt", + "semanticName": "prompt", + "direction": "input", + "roles": ["value"], + "types": ["text"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "negative_prompt", + "semanticName": "negative_prompt", + "direction": "input", + "roles": ["value"], + "types": ["text"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "width", + "semanticName": "width", + "direction": "input", + "roles": ["value"], + "types": ["int"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "height", + "semanticName": "height", + "direction": "input", + "roles": ["value"], + "types": ["int"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "seed", + "semanticName": "seed", + "direction": "input", + "roles": ["value"], + "types": ["int"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "num_inference_steps", + "semanticName": "num_inference_steps", + "direction": "input", + "roles": ["value"], + "types": ["int"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "guidance_scale", + "semanticName": "guidance_scale", + "direction": "input", + "roles": ["value"], + "types": ["float"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [], + "control": { + "technique": "embedded_distilled", + "parameter": "scale", + "compatibilityScope": "diffusers.flux1.control_embedded.v1", + "scaleMeaning": "distilled_model_embedding", + "enabled": "model_config", + "enabledField": null, + "formulation": "embedded", + "formulationField": null, + "selectorField": null, + "selectorValue": null, + "negativeConditioning": "none", + "negativeConditioningScope": null + } + } + }, + { + "name": "image_guidance_scale", + "semanticName": "image_guidance_scale", + "direction": "input", + "roles": ["value"], + "types": ["float"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "use_guidance_scale_2", + "semanticName": "use_guidance_scale_2", + "direction": "input", + "roles": ["value"], + "types": ["bool"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "guidance_scale_2", + "semanticName": "guidance_scale_2", + "direction": "input", + "roles": ["value"], + "types": ["float"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "pag_scale", + "semanticName": "pag_scale", + "direction": "input", + "roles": ["value"], + "types": ["float"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "pag_adaptive_scale", + "semanticName": "pag_adaptive_scale", + "direction": "input", + "roles": ["value"], + "types": ["float"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "control_guidance_start", + "semanticName": "control_guidance_start", + "direction": "input", + "roles": ["value"], + "types": ["float"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "control_guidance_end", + "semanticName": "control_guidance_end", + "direction": "input", + "roles": ["value"], + "types": ["float"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "layers", + "semanticName": "layers", + "direction": "input", + "roles": ["value"], + "types": ["int"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "resolution", + "semanticName": "resolution", + "direction": "input", + "roles": ["value"], + "types": ["int"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "cfg_normalize", + "semanticName": "cfg_normalize", + "direction": "input", + "roles": ["value"], + "types": ["bool"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "use_en_prompt", + "semanticName": "use_en_prompt", + "direction": "input", + "roles": ["value"], + "types": ["bool"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "strength", + "semanticName": "strength", + "direction": "input", + "roles": ["value"], + "types": ["float"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "padding_mask_crop", + "semanticName": "padding_mask_crop", + "direction": "input", + "roles": ["value"], + "types": ["int"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "max_sequence_length", + "semanticName": "max_sequence_length", + "direction": "input", + "roles": ["value"], + "types": ["int"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "output_type", + "semanticName": "output_type", + "direction": "input", + "roles": ["value"], + "types": ["string"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "images", + "semanticName": "images", + "direction": "output", + "roles": ["value"], + "types": ["image"], + "required": false, + "hidden": false, + "semantics": { + "kind": "media", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "latents_out", + "semanticName": "latents_out", + "direction": "output", + "roles": ["value"], + "types": ["tensor"], + "required": false, + "hidden": false, + "semantics": { + "kind": "latents", + "scope": "FluxControlImg2ImgPipeline", + "state": null, + "owner": "same_loader", + "members": [] + } + }, + { + "name": "width_out", + "semanticName": "width_out", + "direction": "output", + "roles": ["value"], + "types": ["int"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "height_out", + "semanticName": "height_out", + "direction": "output", + "roles": ["value"], + "types": ["int"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "image", + "semanticName": "image", + "direction": "input", + "roles": ["value"], + "types": ["image"], + "required": true, + "hidden": false, + "semantics": { + "kind": "media", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "reference_strength", + "semanticName": "reference_strength", + "direction": "input", + "roles": ["value"], + "types": ["float"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "control_image", + "semanticName": "control_image", + "direction": "input", + "roles": ["value"], + "types": ["image"], + "required": true, + "hidden": false, + "semantics": { + "kind": "media", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "conditioning_scale", + "semanticName": "conditioning_scale", + "direction": "input", + "roles": ["value"], + "types": ["float"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + } + ], + "workflowId": null, + "binding": { + "values": {}, + "pipelineClass": "FluxControlImg2ImgPipeline" + } + }, + { + "pipelineClass": "FluxControlInpaintPipeline", + "task": "control_inpaint", + "operationId": "diffusion.generate_image", + "nodeKey": "modules.DiffusersImage.ControlInpaint", + "nodeType": "pipeline", + "blockName": null, + "decomposition": "pipeline", + "support": "declared", + "ports": [ + { + "name": "latents", + "semanticName": "latents", + "direction": "input", + "roles": ["value"], + "types": ["tensor"], + "required": false, + "hidden": false, + "semantics": { + "kind": "latents", + "scope": "FluxControlInpaintPipeline", + "state": null, + "owner": "same_loader", + "members": [] + } + }, + { + "name": "prompt_embeds", + "semanticName": "prompt_embeds", + "direction": "input", + "roles": ["value"], + "types": ["tensor"], + "required": false, + "hidden": false, + "semantics": { + "kind": "opaque", + "scope": "FluxControlInpaintPipeline", + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "pooled_prompt_embeds", + "semanticName": "pooled_prompt_embeds", + "direction": "input", + "roles": ["value"], + "types": ["tensor"], + "required": false, + "hidden": false, + "semantics": { + "kind": "opaque", + "scope": "FluxControlInpaintPipeline", + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "negative_prompt_embeds", + "semanticName": "negative_prompt_embeds", + "direction": "input", + "roles": ["value"], + "types": ["tensor"], + "required": false, + "hidden": true, + "semantics": { + "kind": "opaque", + "scope": "FluxControlInpaintPipeline", + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "negative_pooled_prompt_embeds", + "semanticName": "negative_pooled_prompt_embeds", + "direction": "input", + "roles": ["value"], + "types": ["tensor"], + "required": false, + "hidden": true, + "semantics": { + "kind": "opaque", + "scope": "FluxControlInpaintPipeline", + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "masked_image_latents", + "semanticName": "masked_image_latents", + "direction": "input", + "roles": ["value"], + "types": ["tensor"], + "required": false, + "hidden": false, + "semantics": { + "kind": "latents", + "scope": "FluxControlInpaintPipeline", + "state": null, + "owner": "same_loader", + "members": [] + } + }, + { + "name": "generator", + "semanticName": "generator", + "direction": "input", + "roles": ["value"], + "types": ["generator"], + "required": false, + "hidden": false, + "semantics": { + "kind": "opaque", + "scope": "FluxControlInpaintPipeline", + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "prompt_2", + "semanticName": "prompt_2", + "direction": "input", + "roles": ["value"], + "types": ["text"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "negative_prompt_2", + "semanticName": "negative_prompt_2", + "direction": "input", + "roles": ["value"], + "types": ["text"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "num_images_per_prompt", + "semanticName": "num_images_per_prompt", + "direction": "input", + "roles": ["value"], + "types": ["int"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "sigmas", + "semanticName": "sigmas", + "direction": "input", + "roles": ["value"], + "types": ["float"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "text_encoder_out_layers", + "semanticName": "text_encoder_out_layers", + "direction": "input", + "roles": ["value"], + "types": ["int"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "caption_upsample_temperature", + "semanticName": "caption_upsample_temperature", + "direction": "input", + "roles": ["value"], + "types": ["float"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "max_area", + "semanticName": "max_area", + "direction": "input", + "roles": ["value"], + "types": ["int"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "_auto_resize", + "semanticName": "_auto_resize", + "direction": "input", + "roles": ["value"], + "types": ["bool"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "image_reference", + "semanticName": "image_reference", + "direction": "input", + "roles": ["value"], + "types": ["image"], + "required": false, + "hidden": true, + "semantics": { + "kind": "media", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "prompt_embeds_scale", + "semanticName": "prompt_embeds_scale", + "direction": "input", + "roles": ["value"], + "types": ["float"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "pooled_prompt_embeds_scale", + "semanticName": "pooled_prompt_embeds_scale", + "direction": "input", + "roles": ["value"], + "types": ["float"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "joint_attention_kwargs", + "semanticName": "joint_attention_kwargs", + "direction": "input", + "roles": ["value"], + "types": ["object"], + "required": false, + "hidden": false, + "semantics": { + "kind": "opaque", + "scope": "FluxControlInpaintPipeline", + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "attention_kwargs", + "semanticName": "attention_kwargs", + "direction": "input", + "roles": ["value"], + "types": ["object"], + "required": false, + "hidden": true, + "semantics": { + "kind": "opaque", + "scope": "FluxControlInpaintPipeline", + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "ip_adapter_image", + "semanticName": "ip_adapter_image", + "direction": "input", + "roles": ["value"], + "types": ["image"], + "required": false, + "hidden": true, + "semantics": { + "kind": "media", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "negative_ip_adapter_image", + "semanticName": "negative_ip_adapter_image", + "direction": "input", + "roles": ["value"], + "types": ["image"], + "required": false, + "hidden": true, + "semantics": { + "kind": "media", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "ip_adapter_image_embeds", + "semanticName": "ip_adapter_image_embeds", + "direction": "input", + "roles": ["value"], + "types": ["tensor"], + "required": false, + "hidden": true, + "semantics": { + "kind": "opaque", + "scope": "FluxControlInpaintPipeline", + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "negative_ip_adapter_image_embeds", + "semanticName": "negative_ip_adapter_image_embeds", + "direction": "input", + "roles": ["value"], + "types": ["tensor"], + "required": false, + "hidden": true, + "semantics": { + "kind": "opaque", + "scope": "FluxControlInpaintPipeline", + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "control_mode", + "semanticName": "control_mode", + "direction": "input", + "roles": ["value"], + "types": ["int"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "use_kv_cache", + "semanticName": "use_kv_cache", + "direction": "input", + "roles": ["value"], + "types": ["bool"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "pipeline", + "semanticName": "pipeline", + "direction": "input", + "roles": ["pipeline"], + "types": ["image_diffusion_pipeline"], + "required": true, + "hidden": false, + "semantics": { + "kind": "pipeline", + "scope": "FluxControlInpaintPipeline", + "state": null, + "owner": "same_loader", + "members": [] + } + }, + { + "name": "image_contract", + "semanticName": "image_contract", + "direction": "input", + "roles": ["value"], + "types": ["object"], + "required": false, + "hidden": true, + "semantics": { + "kind": "opaque", + "scope": "FluxControlInpaintPipeline", + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "prompt", + "semanticName": "prompt", + "direction": "input", + "roles": ["value"], + "types": ["text"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "negative_prompt", + "semanticName": "negative_prompt", + "direction": "input", + "roles": ["value"], + "types": ["text"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "width", + "semanticName": "width", + "direction": "input", + "roles": ["value"], + "types": ["int"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "height", + "semanticName": "height", + "direction": "input", + "roles": ["value"], + "types": ["int"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "seed", + "semanticName": "seed", + "direction": "input", + "roles": ["value"], + "types": ["int"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "num_inference_steps", + "semanticName": "num_inference_steps", + "direction": "input", + "roles": ["value"], + "types": ["int"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "guidance_scale", + "semanticName": "guidance_scale", + "direction": "input", + "roles": ["value"], + "types": ["float"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [], + "control": { + "technique": "embedded_distilled", + "parameter": "scale", + "compatibilityScope": "diffusers.flux1.control_embedded.v1", + "scaleMeaning": "distilled_model_embedding", + "enabled": "model_config", + "enabledField": null, + "formulation": "embedded", + "formulationField": null, + "selectorField": null, + "selectorValue": null, + "negativeConditioning": "none", + "negativeConditioningScope": null + } + } + }, + { + "name": "image_guidance_scale", + "semanticName": "image_guidance_scale", + "direction": "input", + "roles": ["value"], + "types": ["float"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "use_guidance_scale_2", + "semanticName": "use_guidance_scale_2", + "direction": "input", + "roles": ["value"], + "types": ["bool"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "guidance_scale_2", + "semanticName": "guidance_scale_2", + "direction": "input", + "roles": ["value"], + "types": ["float"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "pag_scale", + "semanticName": "pag_scale", + "direction": "input", + "roles": ["value"], + "types": ["float"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "pag_adaptive_scale", + "semanticName": "pag_adaptive_scale", + "direction": "input", + "roles": ["value"], + "types": ["float"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "control_guidance_start", + "semanticName": "control_guidance_start", + "direction": "input", + "roles": ["value"], + "types": ["float"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "control_guidance_end", + "semanticName": "control_guidance_end", + "direction": "input", + "roles": ["value"], + "types": ["float"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "layers", + "semanticName": "layers", + "direction": "input", + "roles": ["value"], + "types": ["int"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "resolution", + "semanticName": "resolution", + "direction": "input", + "roles": ["value"], + "types": ["int"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "cfg_normalize", + "semanticName": "cfg_normalize", + "direction": "input", + "roles": ["value"], + "types": ["bool"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "use_en_prompt", + "semanticName": "use_en_prompt", + "direction": "input", + "roles": ["value"], + "types": ["bool"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "strength", + "semanticName": "strength", + "direction": "input", + "roles": ["value"], + "types": ["float"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "padding_mask_crop", + "semanticName": "padding_mask_crop", + "direction": "input", + "roles": ["value"], + "types": ["int"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "max_sequence_length", + "semanticName": "max_sequence_length", + "direction": "input", + "roles": ["value"], + "types": ["int"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "output_type", + "semanticName": "output_type", + "direction": "input", + "roles": ["value"], + "types": ["string"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "images", + "semanticName": "images", + "direction": "output", + "roles": ["value"], + "types": ["image"], + "required": false, + "hidden": false, + "semantics": { + "kind": "media", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "latents_out", + "semanticName": "latents_out", + "direction": "output", + "roles": ["value"], + "types": ["tensor"], + "required": false, + "hidden": false, + "semantics": { + "kind": "latents", + "scope": "FluxControlInpaintPipeline", + "state": null, + "owner": "same_loader", + "members": [] + } + }, + { + "name": "width_out", + "semanticName": "width_out", + "direction": "output", + "roles": ["value"], + "types": ["int"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "height_out", + "semanticName": "height_out", + "direction": "output", + "roles": ["value"], + "types": ["int"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "image", + "semanticName": "image", + "direction": "input", + "roles": ["value"], + "types": ["image"], + "required": true, + "hidden": false, + "semantics": { + "kind": "media", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "reference_strength", + "semanticName": "reference_strength", + "direction": "input", + "roles": ["value"], + "types": ["float"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "mask_image", + "semanticName": "mask_image", + "direction": "input", + "roles": ["value"], + "types": ["image"], + "required": true, + "hidden": false, + "semantics": { + "kind": "media", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "control_image", + "semanticName": "control_image", + "direction": "input", + "roles": ["value"], + "types": ["image"], + "required": true, + "hidden": false, + "semantics": { + "kind": "media", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "conditioning_scale", + "semanticName": "conditioning_scale", + "direction": "input", + "roles": ["value"], + "types": ["float"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + } + ], + "workflowId": null, + "binding": { + "values": {}, + "pipelineClass": "FluxControlInpaintPipeline" + } + }, + { + "pipelineClass": "FluxReduxPipeline", + "task": "edit_image", + "operationId": "diffusion.generate_image", + "nodeKey": "modules.DiffusersImage.Edit", + "nodeType": "pipeline", + "blockName": null, + "decomposition": "pipeline", + "support": "declared", + "ports": [ + { + "name": "latents", + "semanticName": "latents", + "direction": "input", + "roles": ["value"], + "types": ["tensor"], + "required": false, + "hidden": true, + "semantics": { + "kind": "latents", + "scope": "FluxReduxPipeline", + "state": null, + "owner": "same_loader", + "members": [] + } + }, + { + "name": "prompt_embeds", + "semanticName": "prompt_embeds", + "direction": "input", + "roles": ["value"], + "types": ["tensor"], + "required": false, + "hidden": false, + "semantics": { + "kind": "opaque", + "scope": "FluxReduxPipeline", + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "pooled_prompt_embeds", + "semanticName": "pooled_prompt_embeds", + "direction": "input", + "roles": ["value"], + "types": ["tensor"], + "required": false, + "hidden": false, + "semantics": { + "kind": "opaque", + "scope": "FluxReduxPipeline", + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "negative_prompt_embeds", + "semanticName": "negative_prompt_embeds", + "direction": "input", + "roles": ["value"], + "types": ["tensor"], + "required": false, + "hidden": true, + "semantics": { + "kind": "opaque", + "scope": "FluxReduxPipeline", + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "negative_pooled_prompt_embeds", + "semanticName": "negative_pooled_prompt_embeds", + "direction": "input", + "roles": ["value"], + "types": ["tensor"], + "required": false, + "hidden": true, + "semantics": { + "kind": "opaque", + "scope": "FluxReduxPipeline", + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "masked_image_latents", + "semanticName": "masked_image_latents", + "direction": "input", + "roles": ["value"], + "types": ["tensor"], + "required": false, + "hidden": true, + "semantics": { + "kind": "latents", + "scope": "FluxReduxPipeline", + "state": null, + "owner": "same_loader", + "members": [] + } + }, + { + "name": "generator", + "semanticName": "generator", + "direction": "input", + "roles": ["value"], + "types": ["generator"], + "required": false, + "hidden": true, + "semantics": { + "kind": "opaque", + "scope": "FluxReduxPipeline", + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "prompt_2", + "semanticName": "prompt_2", + "direction": "input", + "roles": ["value"], + "types": ["text"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "negative_prompt_2", + "semanticName": "negative_prompt_2", + "direction": "input", + "roles": ["value"], + "types": ["text"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "num_images_per_prompt", + "semanticName": "num_images_per_prompt", + "direction": "input", + "roles": ["value"], + "types": ["int"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "sigmas", + "semanticName": "sigmas", + "direction": "input", + "roles": ["value"], + "types": ["float"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "text_encoder_out_layers", + "semanticName": "text_encoder_out_layers", + "direction": "input", + "roles": ["value"], + "types": ["int"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "caption_upsample_temperature", + "semanticName": "caption_upsample_temperature", + "direction": "input", + "roles": ["value"], + "types": ["float"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "max_area", + "semanticName": "max_area", + "direction": "input", + "roles": ["value"], + "types": ["int"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "_auto_resize", + "semanticName": "_auto_resize", + "direction": "input", + "roles": ["value"], + "types": ["bool"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "image_reference", + "semanticName": "image_reference", + "direction": "input", + "roles": ["value"], + "types": ["image"], + "required": false, + "hidden": true, + "semantics": { + "kind": "media", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "prompt_embeds_scale", + "semanticName": "prompt_embeds_scale", + "direction": "input", + "roles": ["value"], + "types": ["float"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "pooled_prompt_embeds_scale", + "semanticName": "pooled_prompt_embeds_scale", + "direction": "input", + "roles": ["value"], + "types": ["float"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "joint_attention_kwargs", + "semanticName": "joint_attention_kwargs", + "direction": "input", + "roles": ["value"], + "types": ["object"], + "required": false, + "hidden": true, + "semantics": { + "kind": "opaque", + "scope": "FluxReduxPipeline", + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "attention_kwargs", + "semanticName": "attention_kwargs", + "direction": "input", + "roles": ["value"], + "types": ["object"], + "required": false, + "hidden": true, + "semantics": { + "kind": "opaque", + "scope": "FluxReduxPipeline", + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "ip_adapter_image", + "semanticName": "ip_adapter_image", + "direction": "input", + "roles": ["value"], + "types": ["image"], + "required": false, + "hidden": true, + "semantics": { + "kind": "media", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "negative_ip_adapter_image", + "semanticName": "negative_ip_adapter_image", + "direction": "input", + "roles": ["value"], + "types": ["image"], + "required": false, + "hidden": true, + "semantics": { + "kind": "media", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "ip_adapter_image_embeds", + "semanticName": "ip_adapter_image_embeds", + "direction": "input", + "roles": ["value"], + "types": ["tensor"], + "required": false, + "hidden": true, + "semantics": { + "kind": "opaque", + "scope": "FluxReduxPipeline", + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "negative_ip_adapter_image_embeds", + "semanticName": "negative_ip_adapter_image_embeds", + "direction": "input", + "roles": ["value"], + "types": ["tensor"], + "required": false, + "hidden": true, + "semantics": { + "kind": "opaque", + "scope": "FluxReduxPipeline", + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "control_mode", + "semanticName": "control_mode", + "direction": "input", + "roles": ["value"], + "types": ["int"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "use_kv_cache", + "semanticName": "use_kv_cache", + "direction": "input", + "roles": ["value"], + "types": ["bool"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "pipeline", + "semanticName": "pipeline", + "direction": "input", + "roles": ["pipeline"], + "types": ["image_diffusion_pipeline"], + "required": true, + "hidden": false, + "semantics": { + "kind": "pipeline", + "scope": "FluxReduxPipeline", + "state": null, + "owner": "same_loader", + "members": [] + } + }, + { + "name": "image_contract", + "semanticName": "image_contract", + "direction": "input", + "roles": ["value"], + "types": ["object"], + "required": false, + "hidden": true, + "semantics": { + "kind": "opaque", + "scope": "FluxReduxPipeline", + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "prompt", + "semanticName": "prompt", + "direction": "input", + "roles": ["value"], + "types": ["text"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "negative_prompt", + "semanticName": "negative_prompt", + "direction": "input", + "roles": ["value"], + "types": ["text"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "width", + "semanticName": "width", + "direction": "input", + "roles": ["value"], + "types": ["int"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "height", + "semanticName": "height", + "direction": "input", + "roles": ["value"], + "types": ["int"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "seed", + "semanticName": "seed", + "direction": "input", + "roles": ["value"], + "types": ["int"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "num_inference_steps", + "semanticName": "num_inference_steps", + "direction": "input", + "roles": ["value"], + "types": ["int"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "guidance_scale", + "semanticName": "guidance_scale", + "direction": "input", + "roles": ["value"], + "types": ["float"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [], + "control": { + "technique": "embedded_distilled", + "parameter": "scale", + "compatibilityScope": "diffusers.flux1.embedded.v1", + "scaleMeaning": "distilled_model_embedding", + "enabled": "model_config", + "enabledField": null, + "formulation": "embedded", + "formulationField": null, + "selectorField": null, + "selectorValue": null, + "negativeConditioning": "none", + "negativeConditioningScope": null + } + } + }, + { + "name": "image_guidance_scale", + "semanticName": "image_guidance_scale", + "direction": "input", + "roles": ["value"], + "types": ["float"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "use_guidance_scale_2", + "semanticName": "use_guidance_scale_2", + "direction": "input", + "roles": ["value"], + "types": ["bool"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "guidance_scale_2", + "semanticName": "guidance_scale_2", + "direction": "input", + "roles": ["value"], + "types": ["float"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "pag_scale", + "semanticName": "pag_scale", + "direction": "input", + "roles": ["value"], + "types": ["float"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "pag_adaptive_scale", + "semanticName": "pag_adaptive_scale", + "direction": "input", + "roles": ["value"], + "types": ["float"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "control_guidance_start", + "semanticName": "control_guidance_start", + "direction": "input", + "roles": ["value"], + "types": ["float"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "control_guidance_end", + "semanticName": "control_guidance_end", + "direction": "input", + "roles": ["value"], + "types": ["float"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "layers", + "semanticName": "layers", + "direction": "input", + "roles": ["value"], + "types": ["int"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "resolution", + "semanticName": "resolution", + "direction": "input", + "roles": ["value"], + "types": ["int"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "cfg_normalize", + "semanticName": "cfg_normalize", + "direction": "input", + "roles": ["value"], + "types": ["bool"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "use_en_prompt", + "semanticName": "use_en_prompt", + "direction": "input", + "roles": ["value"], + "types": ["bool"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "strength", + "semanticName": "strength", + "direction": "input", + "roles": ["value"], + "types": ["float"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "padding_mask_crop", + "semanticName": "padding_mask_crop", + "direction": "input", + "roles": ["value"], + "types": ["int"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "max_sequence_length", + "semanticName": "max_sequence_length", + "direction": "input", + "roles": ["value"], + "types": ["int"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "output_type", + "semanticName": "output_type", + "direction": "input", + "roles": ["value"], + "types": ["string"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "images", + "semanticName": "images", + "direction": "output", + "roles": ["value"], + "types": ["image"], + "required": false, + "hidden": false, + "semantics": { + "kind": "media", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "latents_out", + "semanticName": "latents_out", + "direction": "output", + "roles": ["value"], + "types": ["tensor"], + "required": false, + "hidden": true, + "semantics": { + "kind": "latents", + "scope": "FluxReduxPipeline", + "state": null, + "owner": "same_loader", + "members": [] + } + }, + { + "name": "width_out", + "semanticName": "width_out", + "direction": "output", + "roles": ["value"], + "types": ["int"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "height_out", + "semanticName": "height_out", + "direction": "output", + "roles": ["value"], + "types": ["int"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "image", + "semanticName": "image", + "direction": "input", + "roles": ["value"], + "types": ["image"], + "required": true, + "hidden": false, + "semantics": { + "kind": "media", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "reference_strength", + "semanticName": "reference_strength", + "direction": "input", + "roles": ["value"], + "types": ["float"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + } + ], + "workflowId": null, + "binding": { + "values": {}, + "pipelineClass": "FluxReduxPipeline" + } + }, + { + "pipelineClass": "FluxControlNetPipeline", + "task": "control_image", + "operationId": "diffusion.generate_image", + "nodeKey": "modules.DiffusersImage.ControlGenerate", + "nodeType": "pipeline", + "blockName": null, + "decomposition": "pipeline", + "support": "declared", + "ports": [ + { + "name": "latents", + "semanticName": "latents", + "direction": "input", + "roles": ["value"], + "types": ["tensor"], + "required": false, + "hidden": false, + "semantics": { + "kind": "latents", + "scope": "FluxControlNetPipeline", + "state": null, + "owner": "same_loader", + "members": [] + } + }, + { + "name": "prompt_embeds", + "semanticName": "prompt_embeds", + "direction": "input", + "roles": ["value"], + "types": ["tensor"], + "required": false, + "hidden": false, + "semantics": { + "kind": "opaque", + "scope": "FluxControlNetPipeline", + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "pooled_prompt_embeds", + "semanticName": "pooled_prompt_embeds", + "direction": "input", + "roles": ["value"], + "types": ["tensor"], + "required": false, + "hidden": false, + "semantics": { + "kind": "opaque", + "scope": "FluxControlNetPipeline", + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "negative_prompt_embeds", + "semanticName": "negative_prompt_embeds", + "direction": "input", + "roles": ["value"], + "types": ["tensor"], + "required": false, + "hidden": false, + "semantics": { + "kind": "opaque", + "scope": "FluxControlNetPipeline", + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "negative_pooled_prompt_embeds", + "semanticName": "negative_pooled_prompt_embeds", + "direction": "input", + "roles": ["value"], + "types": ["tensor"], + "required": false, + "hidden": false, + "semantics": { + "kind": "opaque", + "scope": "FluxControlNetPipeline", + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "masked_image_latents", + "semanticName": "masked_image_latents", + "direction": "input", + "roles": ["value"], + "types": ["tensor"], + "required": false, + "hidden": true, + "semantics": { + "kind": "latents", + "scope": "FluxControlNetPipeline", + "state": null, + "owner": "same_loader", + "members": [] + } + }, + { + "name": "generator", + "semanticName": "generator", + "direction": "input", + "roles": ["value"], + "types": ["generator"], + "required": false, + "hidden": false, + "semantics": { + "kind": "opaque", + "scope": "FluxControlNetPipeline", + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "prompt_2", + "semanticName": "prompt_2", + "direction": "input", + "roles": ["value"], + "types": ["text"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "negative_prompt_2", + "semanticName": "negative_prompt_2", + "direction": "input", + "roles": ["value"], + "types": ["text"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "num_images_per_prompt", + "semanticName": "num_images_per_prompt", + "direction": "input", + "roles": ["value"], + "types": ["int"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "sigmas", + "semanticName": "sigmas", + "direction": "input", + "roles": ["value"], + "types": ["float"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "text_encoder_out_layers", + "semanticName": "text_encoder_out_layers", + "direction": "input", + "roles": ["value"], + "types": ["int"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "caption_upsample_temperature", + "semanticName": "caption_upsample_temperature", + "direction": "input", + "roles": ["value"], + "types": ["float"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "max_area", + "semanticName": "max_area", + "direction": "input", + "roles": ["value"], + "types": ["int"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "_auto_resize", + "semanticName": "_auto_resize", + "direction": "input", + "roles": ["value"], + "types": ["bool"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "image_reference", + "semanticName": "image_reference", + "direction": "input", + "roles": ["value"], + "types": ["image"], + "required": false, + "hidden": true, + "semantics": { + "kind": "media", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "prompt_embeds_scale", + "semanticName": "prompt_embeds_scale", + "direction": "input", + "roles": ["value"], + "types": ["float"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "pooled_prompt_embeds_scale", + "semanticName": "pooled_prompt_embeds_scale", + "direction": "input", + "roles": ["value"], + "types": ["float"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "joint_attention_kwargs", + "semanticName": "joint_attention_kwargs", + "direction": "input", + "roles": ["value"], + "types": ["object"], + "required": false, + "hidden": false, + "semantics": { + "kind": "opaque", + "scope": "FluxControlNetPipeline", + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "attention_kwargs", + "semanticName": "attention_kwargs", + "direction": "input", + "roles": ["value"], + "types": ["object"], + "required": false, + "hidden": true, + "semantics": { + "kind": "opaque", + "scope": "FluxControlNetPipeline", + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "ip_adapter_image", + "semanticName": "ip_adapter_image", + "direction": "input", + "roles": ["value"], + "types": ["image"], + "required": false, + "hidden": false, + "semantics": { + "kind": "media", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "negative_ip_adapter_image", + "semanticName": "negative_ip_adapter_image", + "direction": "input", + "roles": ["value"], + "types": ["image"], + "required": false, + "hidden": false, + "semantics": { + "kind": "media", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "ip_adapter_image_embeds", + "semanticName": "ip_adapter_image_embeds", + "direction": "input", + "roles": ["value"], + "types": ["tensor"], + "required": false, + "hidden": false, + "semantics": { + "kind": "opaque", + "scope": "FluxControlNetPipeline", + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "negative_ip_adapter_image_embeds", + "semanticName": "negative_ip_adapter_image_embeds", + "direction": "input", + "roles": ["value"], + "types": ["tensor"], + "required": false, + "hidden": false, + "semantics": { + "kind": "opaque", + "scope": "FluxControlNetPipeline", + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "control_mode", + "semanticName": "control_mode", + "direction": "input", + "roles": ["value"], + "types": ["int"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "use_kv_cache", + "semanticName": "use_kv_cache", + "direction": "input", + "roles": ["value"], + "types": ["bool"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "pipeline", + "semanticName": "pipeline", + "direction": "input", + "roles": ["pipeline"], + "types": ["image_diffusion_pipeline"], + "required": true, + "hidden": false, + "semantics": { + "kind": "pipeline", + "scope": "FluxControlNetPipeline", + "state": null, + "owner": "same_loader", + "members": [] + } + }, + { + "name": "image_contract", + "semanticName": "image_contract", + "direction": "input", + "roles": ["value"], + "types": ["object"], + "required": false, + "hidden": true, + "semantics": { + "kind": "opaque", + "scope": "FluxControlNetPipeline", + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "prompt", + "semanticName": "prompt", + "direction": "input", + "roles": ["value"], + "types": ["text"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "negative_prompt", + "semanticName": "negative_prompt", + "direction": "input", + "roles": ["value"], + "types": ["text"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "width", + "semanticName": "width", + "direction": "input", + "roles": ["value"], + "types": ["int"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "height", + "semanticName": "height", + "direction": "input", + "roles": ["value"], + "types": ["int"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "seed", + "semanticName": "seed", + "direction": "input", + "roles": ["value"], + "types": ["int"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "num_inference_steps", + "semanticName": "num_inference_steps", + "direction": "input", + "roles": ["value"], + "types": ["int"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "guidance_scale", + "semanticName": "guidance_scale", + "direction": "input", + "roles": ["value"], + "types": ["float"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [], + "control": { + "technique": "embedded_distilled", + "parameter": "scale", + "compatibilityScope": "diffusers.flux1.embedded.v1", + "scaleMeaning": "distilled_model_embedding", + "enabled": "model_config", + "enabledField": null, + "formulation": "embedded", + "formulationField": null, + "selectorField": null, + "selectorValue": null, + "negativeConditioning": "none", + "negativeConditioningScope": null + } + } + }, + { + "name": "image_guidance_scale", + "semanticName": "image_guidance_scale", + "direction": "input", + "roles": ["value"], + "types": ["float"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "use_guidance_scale_2", + "semanticName": "use_guidance_scale_2", + "direction": "input", + "roles": ["value"], + "types": ["bool"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "guidance_scale_2", + "semanticName": "guidance_scale_2", + "direction": "input", + "roles": ["value"], + "types": ["float"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [], + "control": { + "technique": "classifier_free", + "parameter": "scale", + "compatibilityScope": "diffusers.classifier_free.v1", + "scaleMeaning": "cfg_prediction_mix", + "enabled": "scale_gt_one", + "enabledField": "guidance_scale_2", + "formulation": "diffusers", + "formulationField": null, + "selectorField": "use_guidance_scale_2", + "selectorValue": true, + "negativeConditioning": "pipeline_scoped_when_enabled", + "negativeConditioningScope": "FluxControlNetPipeline", + "negativePromptField": "negative_prompt", + "negativePromptPolicy": "empty_string_is_condition" + } + } + }, + { + "name": "pag_scale", + "semanticName": "pag_scale", + "direction": "input", + "roles": ["value"], + "types": ["float"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "pag_adaptive_scale", + "semanticName": "pag_adaptive_scale", + "direction": "input", + "roles": ["value"], + "types": ["float"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "control_guidance_start", + "semanticName": "control_guidance_start", + "direction": "input", + "roles": ["value"], + "types": ["float"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "control_guidance_end", + "semanticName": "control_guidance_end", + "direction": "input", + "roles": ["value"], + "types": ["float"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "layers", + "semanticName": "layers", + "direction": "input", + "roles": ["value"], + "types": ["int"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "resolution", + "semanticName": "resolution", + "direction": "input", + "roles": ["value"], + "types": ["int"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "cfg_normalize", + "semanticName": "cfg_normalize", + "direction": "input", + "roles": ["value"], + "types": ["bool"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "use_en_prompt", + "semanticName": "use_en_prompt", + "direction": "input", + "roles": ["value"], + "types": ["bool"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "strength", + "semanticName": "strength", + "direction": "input", + "roles": ["value"], + "types": ["float"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "padding_mask_crop", + "semanticName": "padding_mask_crop", + "direction": "input", + "roles": ["value"], + "types": ["int"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "max_sequence_length", + "semanticName": "max_sequence_length", + "direction": "input", + "roles": ["value"], + "types": ["int"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "output_type", + "semanticName": "output_type", + "direction": "input", + "roles": ["value"], + "types": ["string"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "images", + "semanticName": "images", + "direction": "output", + "roles": ["value"], + "types": ["image"], + "required": false, + "hidden": false, + "semantics": { + "kind": "media", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "latents_out", + "semanticName": "latents_out", + "direction": "output", + "roles": ["value"], + "types": ["tensor"], + "required": false, + "hidden": false, + "semantics": { + "kind": "latents", + "scope": "FluxControlNetPipeline", + "state": null, + "owner": "same_loader", + "members": [] + } + }, + { + "name": "width_out", + "semanticName": "width_out", + "direction": "output", + "roles": ["value"], + "types": ["int"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "height_out", + "semanticName": "height_out", + "direction": "output", + "roles": ["value"], + "types": ["int"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "control_image", + "semanticName": "control_image", + "direction": "input", + "roles": ["value"], + "types": ["image"], + "required": true, + "hidden": false, + "semantics": { + "kind": "media", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "conditioning_scale", + "semanticName": "conditioning_scale", + "direction": "input", + "roles": ["value"], + "types": ["float"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + } + ], + "workflowId": null, + "binding": { + "values": {}, + "pipelineClass": "FluxControlNetPipeline" + } + }, + { + "pipelineClass": "FluxControlNetImg2ImgPipeline", + "task": "control_edit_image", + "operationId": "diffusion.generate_image", + "nodeKey": "modules.DiffusersImage.ControlEdit", + "nodeType": "pipeline", + "blockName": null, + "decomposition": "pipeline", + "support": "declared", + "ports": [ + { + "name": "latents", + "semanticName": "latents", + "direction": "input", + "roles": ["value"], + "types": ["tensor"], + "required": false, + "hidden": false, + "semantics": { + "kind": "latents", + "scope": "FluxControlNetImg2ImgPipeline", + "state": null, + "owner": "same_loader", + "members": [] + } + }, + { + "name": "prompt_embeds", + "semanticName": "prompt_embeds", + "direction": "input", + "roles": ["value"], + "types": ["tensor"], + "required": false, + "hidden": false, + "semantics": { + "kind": "opaque", + "scope": "FluxControlNetImg2ImgPipeline", + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "pooled_prompt_embeds", + "semanticName": "pooled_prompt_embeds", + "direction": "input", + "roles": ["value"], + "types": ["tensor"], + "required": false, + "hidden": false, + "semantics": { + "kind": "opaque", + "scope": "FluxControlNetImg2ImgPipeline", + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "negative_prompt_embeds", + "semanticName": "negative_prompt_embeds", + "direction": "input", + "roles": ["value"], + "types": ["tensor"], + "required": false, + "hidden": true, + "semantics": { + "kind": "opaque", + "scope": "FluxControlNetImg2ImgPipeline", + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "negative_pooled_prompt_embeds", + "semanticName": "negative_pooled_prompt_embeds", + "direction": "input", + "roles": ["value"], + "types": ["tensor"], + "required": false, + "hidden": true, + "semantics": { + "kind": "opaque", + "scope": "FluxControlNetImg2ImgPipeline", + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "masked_image_latents", + "semanticName": "masked_image_latents", + "direction": "input", + "roles": ["value"], + "types": ["tensor"], + "required": false, + "hidden": true, + "semantics": { + "kind": "latents", + "scope": "FluxControlNetImg2ImgPipeline", + "state": null, + "owner": "same_loader", + "members": [] + } + }, + { + "name": "generator", + "semanticName": "generator", + "direction": "input", + "roles": ["value"], + "types": ["generator"], + "required": false, + "hidden": false, + "semantics": { + "kind": "opaque", + "scope": "FluxControlNetImg2ImgPipeline", + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "prompt_2", + "semanticName": "prompt_2", + "direction": "input", + "roles": ["value"], + "types": ["text"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "negative_prompt_2", + "semanticName": "negative_prompt_2", + "direction": "input", + "roles": ["value"], + "types": ["text"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "num_images_per_prompt", + "semanticName": "num_images_per_prompt", + "direction": "input", + "roles": ["value"], + "types": ["int"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "sigmas", + "semanticName": "sigmas", + "direction": "input", + "roles": ["value"], + "types": ["float"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "text_encoder_out_layers", + "semanticName": "text_encoder_out_layers", + "direction": "input", + "roles": ["value"], + "types": ["int"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "caption_upsample_temperature", + "semanticName": "caption_upsample_temperature", + "direction": "input", + "roles": ["value"], + "types": ["float"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "max_area", + "semanticName": "max_area", + "direction": "input", + "roles": ["value"], + "types": ["int"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "_auto_resize", + "semanticName": "_auto_resize", + "direction": "input", + "roles": ["value"], + "types": ["bool"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "image_reference", + "semanticName": "image_reference", + "direction": "input", + "roles": ["value"], + "types": ["image"], + "required": false, + "hidden": true, + "semantics": { + "kind": "media", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "prompt_embeds_scale", + "semanticName": "prompt_embeds_scale", + "direction": "input", + "roles": ["value"], + "types": ["float"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "pooled_prompt_embeds_scale", + "semanticName": "pooled_prompt_embeds_scale", + "direction": "input", + "roles": ["value"], + "types": ["float"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "joint_attention_kwargs", + "semanticName": "joint_attention_kwargs", + "direction": "input", + "roles": ["value"], + "types": ["object"], + "required": false, + "hidden": false, + "semantics": { + "kind": "opaque", + "scope": "FluxControlNetImg2ImgPipeline", + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "attention_kwargs", + "semanticName": "attention_kwargs", + "direction": "input", + "roles": ["value"], + "types": ["object"], + "required": false, + "hidden": true, + "semantics": { + "kind": "opaque", + "scope": "FluxControlNetImg2ImgPipeline", + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "ip_adapter_image", + "semanticName": "ip_adapter_image", + "direction": "input", + "roles": ["value"], + "types": ["image"], + "required": false, + "hidden": true, + "semantics": { + "kind": "media", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "negative_ip_adapter_image", + "semanticName": "negative_ip_adapter_image", + "direction": "input", + "roles": ["value"], + "types": ["image"], + "required": false, + "hidden": true, + "semantics": { + "kind": "media", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "ip_adapter_image_embeds", + "semanticName": "ip_adapter_image_embeds", + "direction": "input", + "roles": ["value"], + "types": ["tensor"], + "required": false, + "hidden": true, + "semantics": { + "kind": "opaque", + "scope": "FluxControlNetImg2ImgPipeline", + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "negative_ip_adapter_image_embeds", + "semanticName": "negative_ip_adapter_image_embeds", + "direction": "input", + "roles": ["value"], + "types": ["tensor"], + "required": false, + "hidden": true, + "semantics": { + "kind": "opaque", + "scope": "FluxControlNetImg2ImgPipeline", + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "control_mode", + "semanticName": "control_mode", + "direction": "input", + "roles": ["value"], + "types": ["int"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "use_kv_cache", + "semanticName": "use_kv_cache", + "direction": "input", + "roles": ["value"], + "types": ["bool"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "pipeline", + "semanticName": "pipeline", + "direction": "input", + "roles": ["pipeline"], + "types": ["image_diffusion_pipeline"], + "required": true, + "hidden": false, + "semantics": { + "kind": "pipeline", + "scope": "FluxControlNetImg2ImgPipeline", + "state": null, + "owner": "same_loader", + "members": [] + } + }, + { + "name": "image_contract", + "semanticName": "image_contract", + "direction": "input", + "roles": ["value"], + "types": ["object"], + "required": false, + "hidden": true, + "semantics": { + "kind": "opaque", + "scope": "FluxControlNetImg2ImgPipeline", + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "prompt", + "semanticName": "prompt", + "direction": "input", + "roles": ["value"], + "types": ["text"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "negative_prompt", + "semanticName": "negative_prompt", + "direction": "input", + "roles": ["value"], + "types": ["text"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "width", + "semanticName": "width", + "direction": "input", + "roles": ["value"], + "types": ["int"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "height", + "semanticName": "height", + "direction": "input", + "roles": ["value"], + "types": ["int"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "seed", + "semanticName": "seed", + "direction": "input", + "roles": ["value"], + "types": ["int"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "num_inference_steps", + "semanticName": "num_inference_steps", + "direction": "input", + "roles": ["value"], + "types": ["int"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "guidance_scale", + "semanticName": "guidance_scale", + "direction": "input", + "roles": ["value"], + "types": ["float"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [], + "control": { + "technique": "embedded_distilled", + "parameter": "scale", + "compatibilityScope": "diffusers.flux1.embedded.v1", + "scaleMeaning": "distilled_model_embedding", + "enabled": "model_config", + "enabledField": null, + "formulation": "embedded", + "formulationField": null, + "selectorField": null, + "selectorValue": null, + "negativeConditioning": "none", + "negativeConditioningScope": null + } + } + }, + { + "name": "image_guidance_scale", + "semanticName": "image_guidance_scale", + "direction": "input", + "roles": ["value"], + "types": ["float"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "use_guidance_scale_2", + "semanticName": "use_guidance_scale_2", + "direction": "input", + "roles": ["value"], + "types": ["bool"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "guidance_scale_2", + "semanticName": "guidance_scale_2", + "direction": "input", + "roles": ["value"], + "types": ["float"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "pag_scale", + "semanticName": "pag_scale", + "direction": "input", + "roles": ["value"], + "types": ["float"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "pag_adaptive_scale", + "semanticName": "pag_adaptive_scale", + "direction": "input", + "roles": ["value"], + "types": ["float"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "control_guidance_start", + "semanticName": "control_guidance_start", + "direction": "input", + "roles": ["value"], + "types": ["float"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "control_guidance_end", + "semanticName": "control_guidance_end", + "direction": "input", + "roles": ["value"], + "types": ["float"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "layers", + "semanticName": "layers", + "direction": "input", + "roles": ["value"], + "types": ["int"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "resolution", + "semanticName": "resolution", + "direction": "input", + "roles": ["value"], + "types": ["int"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "cfg_normalize", + "semanticName": "cfg_normalize", + "direction": "input", + "roles": ["value"], + "types": ["bool"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "use_en_prompt", + "semanticName": "use_en_prompt", + "direction": "input", + "roles": ["value"], + "types": ["bool"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "strength", + "semanticName": "strength", + "direction": "input", + "roles": ["value"], + "types": ["float"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "padding_mask_crop", + "semanticName": "padding_mask_crop", + "direction": "input", + "roles": ["value"], + "types": ["int"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "max_sequence_length", + "semanticName": "max_sequence_length", + "direction": "input", + "roles": ["value"], + "types": ["int"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "output_type", + "semanticName": "output_type", + "direction": "input", + "roles": ["value"], + "types": ["string"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "images", + "semanticName": "images", + "direction": "output", + "roles": ["value"], + "types": ["image"], + "required": false, + "hidden": false, + "semantics": { + "kind": "media", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "latents_out", + "semanticName": "latents_out", + "direction": "output", + "roles": ["value"], + "types": ["tensor"], + "required": false, + "hidden": false, + "semantics": { + "kind": "latents", + "scope": "FluxControlNetImg2ImgPipeline", + "state": null, + "owner": "same_loader", + "members": [] + } + }, + { + "name": "width_out", + "semanticName": "width_out", + "direction": "output", + "roles": ["value"], + "types": ["int"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "height_out", + "semanticName": "height_out", + "direction": "output", + "roles": ["value"], + "types": ["int"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "image", + "semanticName": "image", + "direction": "input", + "roles": ["value"], + "types": ["image"], + "required": true, + "hidden": false, + "semantics": { + "kind": "media", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "reference_strength", + "semanticName": "reference_strength", + "direction": "input", + "roles": ["value"], + "types": ["float"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "control_image", + "semanticName": "control_image", + "direction": "input", + "roles": ["value"], + "types": ["image"], + "required": true, + "hidden": false, + "semantics": { + "kind": "media", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "conditioning_scale", + "semanticName": "conditioning_scale", + "direction": "input", + "roles": ["value"], + "types": ["float"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + } + ], + "workflowId": null, + "binding": { + "values": {}, + "pipelineClass": "FluxControlNetImg2ImgPipeline" + } + }, + { + "pipelineClass": "FluxControlNetInpaintPipeline", + "task": "control_inpaint", + "operationId": "diffusion.generate_image", + "nodeKey": "modules.DiffusersImage.ControlInpaint", + "nodeType": "pipeline", + "blockName": null, + "decomposition": "pipeline", + "support": "declared", + "ports": [ + { + "name": "latents", + "semanticName": "latents", + "direction": "input", + "roles": ["value"], + "types": ["tensor"], + "required": false, + "hidden": false, + "semantics": { + "kind": "latents", + "scope": "FluxControlNetInpaintPipeline", + "state": null, + "owner": "same_loader", + "members": [] + } + }, + { + "name": "prompt_embeds", + "semanticName": "prompt_embeds", + "direction": "input", + "roles": ["value"], + "types": ["tensor"], + "required": false, + "hidden": false, + "semantics": { + "kind": "opaque", + "scope": "FluxControlNetInpaintPipeline", + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "pooled_prompt_embeds", + "semanticName": "pooled_prompt_embeds", + "direction": "input", + "roles": ["value"], + "types": ["tensor"], + "required": false, + "hidden": false, + "semantics": { + "kind": "opaque", + "scope": "FluxControlNetInpaintPipeline", + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "negative_prompt_embeds", + "semanticName": "negative_prompt_embeds", + "direction": "input", + "roles": ["value"], + "types": ["tensor"], + "required": false, + "hidden": true, + "semantics": { + "kind": "opaque", + "scope": "FluxControlNetInpaintPipeline", + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "negative_pooled_prompt_embeds", + "semanticName": "negative_pooled_prompt_embeds", + "direction": "input", + "roles": ["value"], + "types": ["tensor"], + "required": false, + "hidden": true, + "semantics": { + "kind": "opaque", + "scope": "FluxControlNetInpaintPipeline", + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "masked_image_latents", + "semanticName": "masked_image_latents", + "direction": "input", + "roles": ["value"], + "types": ["tensor"], + "required": false, + "hidden": false, + "semantics": { + "kind": "latents", + "scope": "FluxControlNetInpaintPipeline", + "state": null, + "owner": "same_loader", + "members": [] + } + }, + { + "name": "generator", + "semanticName": "generator", + "direction": "input", + "roles": ["value"], + "types": ["generator"], + "required": false, + "hidden": false, + "semantics": { + "kind": "opaque", + "scope": "FluxControlNetInpaintPipeline", + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "prompt_2", + "semanticName": "prompt_2", + "direction": "input", + "roles": ["value"], + "types": ["text"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "negative_prompt_2", + "semanticName": "negative_prompt_2", + "direction": "input", + "roles": ["value"], + "types": ["text"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "num_images_per_prompt", + "semanticName": "num_images_per_prompt", + "direction": "input", + "roles": ["value"], + "types": ["int"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "sigmas", + "semanticName": "sigmas", + "direction": "input", + "roles": ["value"], + "types": ["float"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "text_encoder_out_layers", + "semanticName": "text_encoder_out_layers", + "direction": "input", + "roles": ["value"], + "types": ["int"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "caption_upsample_temperature", + "semanticName": "caption_upsample_temperature", + "direction": "input", + "roles": ["value"], + "types": ["float"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "max_area", + "semanticName": "max_area", + "direction": "input", + "roles": ["value"], + "types": ["int"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "_auto_resize", + "semanticName": "_auto_resize", + "direction": "input", + "roles": ["value"], + "types": ["bool"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "image_reference", + "semanticName": "image_reference", + "direction": "input", + "roles": ["value"], + "types": ["image"], + "required": false, + "hidden": true, + "semantics": { + "kind": "media", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "prompt_embeds_scale", + "semanticName": "prompt_embeds_scale", + "direction": "input", + "roles": ["value"], + "types": ["float"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "pooled_prompt_embeds_scale", + "semanticName": "pooled_prompt_embeds_scale", + "direction": "input", + "roles": ["value"], + "types": ["float"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "joint_attention_kwargs", + "semanticName": "joint_attention_kwargs", + "direction": "input", + "roles": ["value"], + "types": ["object"], + "required": false, + "hidden": false, + "semantics": { + "kind": "opaque", + "scope": "FluxControlNetInpaintPipeline", + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "attention_kwargs", + "semanticName": "attention_kwargs", + "direction": "input", + "roles": ["value"], + "types": ["object"], + "required": false, + "hidden": true, + "semantics": { + "kind": "opaque", + "scope": "FluxControlNetInpaintPipeline", + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "ip_adapter_image", + "semanticName": "ip_adapter_image", + "direction": "input", + "roles": ["value"], + "types": ["image"], + "required": false, + "hidden": true, + "semantics": { + "kind": "media", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "negative_ip_adapter_image", + "semanticName": "negative_ip_adapter_image", + "direction": "input", + "roles": ["value"], + "types": ["image"], + "required": false, + "hidden": true, + "semantics": { + "kind": "media", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "ip_adapter_image_embeds", + "semanticName": "ip_adapter_image_embeds", + "direction": "input", + "roles": ["value"], + "types": ["tensor"], + "required": false, + "hidden": true, + "semantics": { + "kind": "opaque", + "scope": "FluxControlNetInpaintPipeline", + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "negative_ip_adapter_image_embeds", + "semanticName": "negative_ip_adapter_image_embeds", + "direction": "input", + "roles": ["value"], + "types": ["tensor"], + "required": false, + "hidden": true, + "semantics": { + "kind": "opaque", + "scope": "FluxControlNetInpaintPipeline", + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "control_mode", + "semanticName": "control_mode", + "direction": "input", + "roles": ["value"], + "types": ["int"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "use_kv_cache", + "semanticName": "use_kv_cache", + "direction": "input", + "roles": ["value"], + "types": ["bool"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "pipeline", + "semanticName": "pipeline", + "direction": "input", + "roles": ["pipeline"], + "types": ["image_diffusion_pipeline"], + "required": true, + "hidden": false, + "semantics": { + "kind": "pipeline", + "scope": "FluxControlNetInpaintPipeline", + "state": null, + "owner": "same_loader", + "members": [] + } + }, + { + "name": "image_contract", + "semanticName": "image_contract", + "direction": "input", + "roles": ["value"], + "types": ["object"], + "required": false, + "hidden": true, + "semantics": { + "kind": "opaque", + "scope": "FluxControlNetInpaintPipeline", + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "prompt", + "semanticName": "prompt", + "direction": "input", + "roles": ["value"], + "types": ["text"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "negative_prompt", + "semanticName": "negative_prompt", + "direction": "input", + "roles": ["value"], + "types": ["text"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "width", + "semanticName": "width", + "direction": "input", + "roles": ["value"], + "types": ["int"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "height", + "semanticName": "height", + "direction": "input", + "roles": ["value"], + "types": ["int"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "seed", + "semanticName": "seed", + "direction": "input", + "roles": ["value"], + "types": ["int"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "num_inference_steps", + "semanticName": "num_inference_steps", + "direction": "input", + "roles": ["value"], + "types": ["int"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "guidance_scale", + "semanticName": "guidance_scale", + "direction": "input", + "roles": ["value"], + "types": ["float"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [], + "control": { + "technique": "embedded_distilled", + "parameter": "scale", + "compatibilityScope": "diffusers.flux1.embedded.v1", + "scaleMeaning": "distilled_model_embedding", + "enabled": "model_config", + "enabledField": null, + "formulation": "embedded", + "formulationField": null, + "selectorField": null, + "selectorValue": null, + "negativeConditioning": "none", + "negativeConditioningScope": null + } + } + }, + { + "name": "image_guidance_scale", + "semanticName": "image_guidance_scale", + "direction": "input", + "roles": ["value"], + "types": ["float"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "use_guidance_scale_2", + "semanticName": "use_guidance_scale_2", + "direction": "input", + "roles": ["value"], + "types": ["bool"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "guidance_scale_2", + "semanticName": "guidance_scale_2", + "direction": "input", + "roles": ["value"], + "types": ["float"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "pag_scale", + "semanticName": "pag_scale", + "direction": "input", + "roles": ["value"], + "types": ["float"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "pag_adaptive_scale", + "semanticName": "pag_adaptive_scale", + "direction": "input", + "roles": ["value"], + "types": ["float"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "control_guidance_start", + "semanticName": "control_guidance_start", + "direction": "input", + "roles": ["value"], + "types": ["float"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "control_guidance_end", + "semanticName": "control_guidance_end", + "direction": "input", + "roles": ["value"], + "types": ["float"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "layers", + "semanticName": "layers", + "direction": "input", + "roles": ["value"], + "types": ["int"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "resolution", + "semanticName": "resolution", + "direction": "input", + "roles": ["value"], + "types": ["int"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "cfg_normalize", + "semanticName": "cfg_normalize", + "direction": "input", + "roles": ["value"], + "types": ["bool"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "use_en_prompt", + "semanticName": "use_en_prompt", + "direction": "input", + "roles": ["value"], + "types": ["bool"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "strength", + "semanticName": "strength", + "direction": "input", + "roles": ["value"], + "types": ["float"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "padding_mask_crop", + "semanticName": "padding_mask_crop", + "direction": "input", + "roles": ["value"], + "types": ["int"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "max_sequence_length", + "semanticName": "max_sequence_length", + "direction": "input", + "roles": ["value"], + "types": ["int"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "output_type", + "semanticName": "output_type", + "direction": "input", + "roles": ["value"], + "types": ["string"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "images", + "semanticName": "images", + "direction": "output", + "roles": ["value"], + "types": ["image"], + "required": false, + "hidden": false, + "semantics": { + "kind": "media", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "latents_out", + "semanticName": "latents_out", + "direction": "output", + "roles": ["value"], + "types": ["tensor"], + "required": false, + "hidden": false, + "semantics": { + "kind": "latents", + "scope": "FluxControlNetInpaintPipeline", + "state": null, + "owner": "same_loader", + "members": [] + } + }, + { + "name": "width_out", + "semanticName": "width_out", + "direction": "output", + "roles": ["value"], + "types": ["int"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "height_out", + "semanticName": "height_out", + "direction": "output", + "roles": ["value"], + "types": ["int"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "image", + "semanticName": "image", + "direction": "input", + "roles": ["value"], + "types": ["image"], + "required": true, + "hidden": false, + "semantics": { + "kind": "media", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "reference_strength", + "semanticName": "reference_strength", + "direction": "input", + "roles": ["value"], + "types": ["float"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "mask_image", + "semanticName": "mask_image", + "direction": "input", + "roles": ["value"], + "types": ["image"], + "required": true, + "hidden": false, + "semantics": { + "kind": "media", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "control_image", + "semanticName": "control_image", + "direction": "input", + "roles": ["value"], + "types": ["image"], + "required": true, + "hidden": false, + "semantics": { + "kind": "media", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "conditioning_scale", + "semanticName": "conditioning_scale", + "direction": "input", + "roles": ["value"], + "types": ["float"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + } + ], + "workflowId": null, + "binding": { + "values": {}, + "pipelineClass": "FluxControlNetInpaintPipeline" + } + }, + { + "pipelineClass": "Flux2Pipeline", + "task": "text_to_image", + "operationId": "diffusion.generate_image", + "nodeKey": "modules.DiffusersImage.Generate", + "nodeType": "pipeline", + "blockName": null, + "decomposition": "pipeline", + "support": "declared", + "ports": [ + { + "name": "latents", + "semanticName": "latents", + "direction": "input", + "roles": ["value"], + "types": ["tensor"], + "required": false, + "hidden": false, + "semantics": { + "kind": "latents", + "scope": "Flux2Pipeline", + "state": null, + "owner": "same_loader", + "members": [] + } + }, + { + "name": "prompt_embeds", + "semanticName": "prompt_embeds", + "direction": "input", + "roles": ["value"], + "types": ["tensor"], + "required": false, + "hidden": false, + "semantics": { + "kind": "opaque", + "scope": "Flux2Pipeline", + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "pooled_prompt_embeds", + "semanticName": "pooled_prompt_embeds", + "direction": "input", + "roles": ["value"], + "types": ["tensor"], + "required": false, + "hidden": true, + "semantics": { + "kind": "opaque", + "scope": "Flux2Pipeline", + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "negative_prompt_embeds", + "semanticName": "negative_prompt_embeds", + "direction": "input", + "roles": ["value"], + "types": ["tensor"], + "required": false, + "hidden": true, + "semantics": { + "kind": "opaque", + "scope": "Flux2Pipeline", + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "negative_pooled_prompt_embeds", + "semanticName": "negative_pooled_prompt_embeds", + "direction": "input", + "roles": ["value"], + "types": ["tensor"], + "required": false, + "hidden": true, + "semantics": { + "kind": "opaque", + "scope": "Flux2Pipeline", + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "masked_image_latents", + "semanticName": "masked_image_latents", + "direction": "input", + "roles": ["value"], + "types": ["tensor"], + "required": false, + "hidden": true, + "semantics": { + "kind": "latents", + "scope": "Flux2Pipeline", + "state": null, + "owner": "same_loader", + "members": [] + } + }, + { + "name": "generator", + "semanticName": "generator", + "direction": "input", + "roles": ["value"], + "types": ["generator"], + "required": false, + "hidden": false, + "semantics": { + "kind": "opaque", + "scope": "Flux2Pipeline", + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "prompt_2", + "semanticName": "prompt_2", + "direction": "input", + "roles": ["value"], + "types": ["text"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "negative_prompt_2", + "semanticName": "negative_prompt_2", + "direction": "input", + "roles": ["value"], + "types": ["text"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "num_images_per_prompt", + "semanticName": "num_images_per_prompt", + "direction": "input", + "roles": ["value"], + "types": ["int"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "sigmas", + "semanticName": "sigmas", + "direction": "input", + "roles": ["value"], + "types": ["float"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "text_encoder_out_layers", + "semanticName": "text_encoder_out_layers", + "direction": "input", + "roles": ["value"], + "types": ["int"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "caption_upsample_temperature", + "semanticName": "caption_upsample_temperature", + "direction": "input", + "roles": ["value"], + "types": ["float"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "max_area", + "semanticName": "max_area", + "direction": "input", + "roles": ["value"], + "types": ["int"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "_auto_resize", + "semanticName": "_auto_resize", + "direction": "input", + "roles": ["value"], + "types": ["bool"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "image_reference", + "semanticName": "image_reference", + "direction": "input", + "roles": ["value"], + "types": ["image"], + "required": false, + "hidden": true, + "semantics": { + "kind": "media", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "prompt_embeds_scale", + "semanticName": "prompt_embeds_scale", + "direction": "input", + "roles": ["value"], + "types": ["float"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "pooled_prompt_embeds_scale", + "semanticName": "pooled_prompt_embeds_scale", + "direction": "input", + "roles": ["value"], + "types": ["float"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "joint_attention_kwargs", + "semanticName": "joint_attention_kwargs", + "direction": "input", + "roles": ["value"], + "types": ["object"], + "required": false, + "hidden": true, + "semantics": { + "kind": "opaque", + "scope": "Flux2Pipeline", + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "attention_kwargs", + "semanticName": "attention_kwargs", + "direction": "input", + "roles": ["value"], + "types": ["object"], + "required": false, + "hidden": false, + "semantics": { + "kind": "opaque", + "scope": "Flux2Pipeline", + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "ip_adapter_image", + "semanticName": "ip_adapter_image", + "direction": "input", + "roles": ["value"], + "types": ["image"], + "required": false, + "hidden": true, + "semantics": { + "kind": "media", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "negative_ip_adapter_image", + "semanticName": "negative_ip_adapter_image", + "direction": "input", + "roles": ["value"], + "types": ["image"], + "required": false, + "hidden": true, + "semantics": { + "kind": "media", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "ip_adapter_image_embeds", + "semanticName": "ip_adapter_image_embeds", + "direction": "input", + "roles": ["value"], + "types": ["tensor"], + "required": false, + "hidden": true, + "semantics": { + "kind": "opaque", + "scope": "Flux2Pipeline", + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "negative_ip_adapter_image_embeds", + "semanticName": "negative_ip_adapter_image_embeds", + "direction": "input", + "roles": ["value"], + "types": ["tensor"], + "required": false, + "hidden": true, + "semantics": { + "kind": "opaque", + "scope": "Flux2Pipeline", + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "control_mode", + "semanticName": "control_mode", + "direction": "input", + "roles": ["value"], + "types": ["int"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "use_kv_cache", + "semanticName": "use_kv_cache", + "direction": "input", + "roles": ["value"], + "types": ["bool"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "pipeline", + "semanticName": "pipeline", + "direction": "input", + "roles": ["pipeline"], + "types": ["image_diffusion_pipeline"], + "required": true, + "hidden": false, + "semantics": { + "kind": "pipeline", + "scope": "Flux2Pipeline", + "state": null, + "owner": "same_loader", + "members": [] + } + }, + { + "name": "image_contract", + "semanticName": "image_contract", + "direction": "input", + "roles": ["value"], + "types": ["object"], + "required": false, + "hidden": true, + "semantics": { + "kind": "opaque", + "scope": "Flux2Pipeline", + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "prompt", + "semanticName": "prompt", + "direction": "input", + "roles": ["value"], + "types": ["text"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "negative_prompt", + "semanticName": "negative_prompt", + "direction": "input", + "roles": ["value"], + "types": ["text"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "width", + "semanticName": "width", + "direction": "input", + "roles": ["value"], + "types": ["int"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "height", + "semanticName": "height", + "direction": "input", + "roles": ["value"], + "types": ["int"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "seed", + "semanticName": "seed", + "direction": "input", + "roles": ["value"], + "types": ["int"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "num_inference_steps", + "semanticName": "num_inference_steps", + "direction": "input", + "roles": ["value"], + "types": ["int"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "guidance_scale", + "semanticName": "guidance_scale", + "direction": "input", + "roles": ["value"], + "types": ["float"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [], + "control": { + "technique": "embedded_distilled", + "parameter": "scale", + "compatibilityScope": "diffusers.flux2.embedded.v1", + "scaleMeaning": "distilled_model_embedding", + "enabled": "model_config", + "enabledField": null, + "formulation": "embedded", + "formulationField": null, + "selectorField": null, + "selectorValue": null, + "negativeConditioning": "none", + "negativeConditioningScope": null + } + } + }, + { + "name": "image_guidance_scale", + "semanticName": "image_guidance_scale", + "direction": "input", + "roles": ["value"], + "types": ["float"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "use_guidance_scale_2", + "semanticName": "use_guidance_scale_2", + "direction": "input", + "roles": ["value"], + "types": ["bool"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "guidance_scale_2", + "semanticName": "guidance_scale_2", + "direction": "input", + "roles": ["value"], + "types": ["float"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "pag_scale", + "semanticName": "pag_scale", + "direction": "input", + "roles": ["value"], + "types": ["float"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "pag_adaptive_scale", + "semanticName": "pag_adaptive_scale", + "direction": "input", + "roles": ["value"], + "types": ["float"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "control_guidance_start", + "semanticName": "control_guidance_start", + "direction": "input", + "roles": ["value"], + "types": ["float"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "control_guidance_end", + "semanticName": "control_guidance_end", + "direction": "input", + "roles": ["value"], + "types": ["float"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "layers", + "semanticName": "layers", + "direction": "input", + "roles": ["value"], + "types": ["int"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "resolution", + "semanticName": "resolution", + "direction": "input", + "roles": ["value"], + "types": ["int"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "cfg_normalize", + "semanticName": "cfg_normalize", + "direction": "input", + "roles": ["value"], + "types": ["bool"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "use_en_prompt", + "semanticName": "use_en_prompt", + "direction": "input", + "roles": ["value"], + "types": ["bool"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "strength", + "semanticName": "strength", + "direction": "input", + "roles": ["value"], + "types": ["float"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "padding_mask_crop", + "semanticName": "padding_mask_crop", + "direction": "input", + "roles": ["value"], + "types": ["int"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "max_sequence_length", + "semanticName": "max_sequence_length", + "direction": "input", + "roles": ["value"], + "types": ["int"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "output_type", + "semanticName": "output_type", + "direction": "input", + "roles": ["value"], + "types": ["string"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "images", + "semanticName": "images", + "direction": "output", + "roles": ["value"], + "types": ["image"], + "required": false, + "hidden": false, + "semantics": { + "kind": "media", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "latents_out", + "semanticName": "latents_out", + "direction": "output", + "roles": ["value"], + "types": ["tensor"], + "required": false, + "hidden": false, + "semantics": { + "kind": "latents", + "scope": "Flux2Pipeline", + "state": null, + "owner": "same_loader", + "members": [] + } + }, + { + "name": "width_out", + "semanticName": "width_out", + "direction": "output", + "roles": ["value"], + "types": ["int"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "height_out", + "semanticName": "height_out", + "direction": "output", + "roles": ["value"], + "types": ["int"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + } + ], + "workflowId": null, + "binding": { + "values": {}, + "pipelineClass": "Flux2Pipeline" + } + } + ] +} diff --git a/tests/fixtures/qwen-component-bundle-contract.v1.json b/tests/fixtures/qwen-component-bundle-contract.v1.json new file mode 100644 index 00000000..af3b15e3 --- /dev/null +++ b/tests/fixtures/qwen-component-bundle-contract.v1.json @@ -0,0 +1,1145 @@ +{ + "schemaVersion": 1, + "contracts": [ + { + "pipelineClass": "QwenImageModularPipeline", + "task": "text_to_image", + "operationId": "diffusion.load_models", + "nodeKey": "modules.ModularDiffusers.ModelsLoader", + "nodeType": "loader", + "blockName": null, + "decomposition": "loader", + "support": "declared", + "ports": [ + { + "name": "model_type", + "semanticName": "model_type", + "direction": "input", + "roles": ["value"], + "types": ["string"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "repo_id", + "semanticName": "repo_id", + "direction": "input", + "roles": ["value"], + "types": ["string"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "reviewed_variant", + "semanticName": "reviewed_variant", + "direction": "input", + "roles": ["value"], + "types": ["string"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "device", + "semanticName": "device", + "direction": "input", + "roles": ["value"], + "types": ["string"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "attention_backend", + "semanticName": "attention_backend", + "direction": "input", + "roles": ["value"], + "types": ["string"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "vae_slicing", + "semanticName": "vae_slicing", + "direction": "input", + "roles": ["value"], + "types": ["boolean"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "vae_tiling", + "semanticName": "vae_tiling", + "direction": "input", + "roles": ["value"], + "types": ["boolean"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "inpaint_compatibility", + "semanticName": "inpaint_compatibility", + "direction": "input", + "roles": ["value"], + "types": ["string"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "trust_remote_code", + "semanticName": "trust_remote_code", + "direction": "input", + "roles": ["value"], + "types": ["boolean"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "revision", + "semanticName": "revision", + "direction": "input", + "roles": ["value"], + "types": ["string"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "workflow_id", + "semanticName": "workflow_id", + "direction": "input", + "roles": ["value"], + "types": ["string"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "modiff_pipeline_identity", + "semanticName": "modiff_pipeline_identity", + "direction": "input", + "roles": ["value"], + "types": ["object"], + "required": false, + "hidden": true, + "semantics": { + "kind": "opaque", + "scope": "QwenImageModularPipeline", + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "auto_offload", + "semanticName": "auto_offload", + "direction": "input", + "roles": ["value"], + "types": ["boolean"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "offload_mode", + "semanticName": "offload_mode", + "direction": "input", + "roles": ["value"], + "types": ["string"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "unet", + "semanticName": "unet", + "direction": "input", + "roles": ["component"], + "types": ["diffusers_auto_model"], + "required": false, + "hidden": false, + "semantics": { + "kind": "component", + "scope": "QwenImageModularPipeline", + "state": null, + "owner": "same_loader", + "members": [ + { + "name": "transformer", + "type": "diffusers.models.transformers.transformer_qwenimage.QwenImageTransformer2DModel" + } + ] + } + }, + { + "name": "vae", + "semanticName": "vae", + "direction": "input", + "roles": ["component"], + "types": ["diffusers_auto_model"], + "required": false, + "hidden": false, + "semantics": { + "kind": "component", + "scope": "QwenImageModularPipeline", + "state": null, + "owner": "same_loader", + "members": [ + { + "name": "vae", + "type": "diffusers.models.autoencoders.autoencoder_kl_qwenimage.AutoencoderKLQwenImage" + } + ] + } + }, + { + "name": "controlnet", + "semanticName": "controlnet", + "direction": "input", + "roles": ["component"], + "types": ["diffusers_auto_model"], + "required": false, + "hidden": true, + "semantics": { + "kind": "component", + "scope": "QwenImageModularPipeline", + "state": null, + "owner": "same_loader", + "members": [] + } + }, + { + "name": "lora_list", + "semanticName": "lora_list", + "direction": "input", + "roles": ["value"], + "types": ["custom_lora"], + "required": false, + "hidden": false, + "semantics": { + "kind": "opaque", + "scope": "QwenImageModularPipeline", + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "text_encoders", + "semanticName": "text_encoders", + "direction": "output", + "roles": ["component"], + "types": ["diffusers_auto_models"], + "required": false, + "hidden": false, + "semantics": { + "kind": "component", + "scope": "QwenImageModularPipeline", + "state": null, + "owner": "same_loader", + "members": [ + { + "name": "text_encoder", + "type": "transformers.models.qwen2_5_vl.modeling_qwen2_5_vl.Qwen2_5_VLForConditionalGeneration" + }, + { + "name": "tokenizer", + "type": "transformers.models.qwen2.tokenization_qwen2.Qwen2Tokenizer" + } + ] + } + }, + { + "name": "unet_out", + "semanticName": "unet_out", + "direction": "output", + "roles": ["component"], + "types": ["diffusers_auto_model"], + "required": false, + "hidden": false, + "semantics": { + "kind": "component", + "scope": "QwenImageModularPipeline", + "state": null, + "owner": "same_loader", + "members": [ + { + "name": "transformer", + "type": "diffusers.models.transformers.transformer_qwenimage.QwenImageTransformer2DModel" + } + ] + } + }, + { + "name": "vae_out", + "semanticName": "vae_out", + "direction": "output", + "roles": ["component"], + "types": ["diffusers_auto_model"], + "required": false, + "hidden": false, + "semantics": { + "kind": "component", + "scope": "QwenImageModularPipeline", + "state": null, + "owner": "same_loader", + "members": [ + { + "name": "vae", + "type": "diffusers.models.autoencoders.autoencoder_kl_qwenimage.AutoencoderKLQwenImage" + } + ] + } + }, + { + "name": "scheduler", + "semanticName": "scheduler", + "direction": "output", + "roles": ["component"], + "types": ["diffusers_auto_model"], + "required": false, + "hidden": false, + "semantics": { + "kind": "component", + "scope": "QwenImageModularPipeline", + "state": null, + "owner": "same_loader", + "members": [ + { + "name": "scheduler", + "type": "diffusers.schedulers.scheduling_flow_match_euler_discrete.FlowMatchEulerDiscreteScheduler" + } + ] + } + }, + { + "name": "image_encoder", + "semanticName": "image_encoder", + "direction": "output", + "roles": ["component"], + "types": ["diffusers_auto_model"], + "required": false, + "hidden": true, + "semantics": { + "kind": "component", + "scope": "QwenImageModularPipeline", + "state": null, + "owner": "same_loader", + "members": [] + } + }, + { + "name": "pipeline_components", + "semanticName": "pipeline_components", + "direction": "output", + "roles": ["component"], + "types": ["diffusers_modular_pipeline_components"], + "required": false, + "hidden": false, + "semantics": { + "kind": "component", + "scope": "QwenImageModularPipeline", + "state": null, + "owner": "same_loader", + "members": [ + { + "name": "guider", + "type": "diffusers.guiders.classifier_free_guidance.ClassifierFreeGuidance" + }, + { + "name": "image_processor", + "type": "diffusers.image_processor.VaeImageProcessor" + }, + { + "name": "pachifier", + "type": "diffusers.modular_pipelines.qwenimage.modular_pipeline.QwenImagePachifier" + }, + { + "name": "scheduler", + "type": "diffusers.schedulers.scheduling_flow_match_euler_discrete.FlowMatchEulerDiscreteScheduler" + }, + { + "name": "text_encoder", + "type": "transformers.models.qwen2_5_vl.modeling_qwen2_5_vl.Qwen2_5_VLForConditionalGeneration" + }, + { + "name": "tokenizer", + "type": "transformers.models.qwen2.tokenization_qwen2.Qwen2Tokenizer" + }, + { + "name": "transformer", + "type": "diffusers.models.transformers.transformer_qwenimage.QwenImageTransformer2DModel" + }, + { + "name": "vae", + "type": "diffusers.models.autoencoders.autoencoder_kl_qwenimage.AutoencoderKLQwenImage" + } + ] + } + }, + { + "name": "quant_config", + "semanticName": "quant_config", + "direction": "input", + "roles": ["value"], + "types": ["quant_config"], + "required": false, + "hidden": false, + "semantics": { + "kind": "opaque", + "scope": "QwenImageModularPipeline", + "state": null, + "owner": "none", + "members": [] + } + } + ], + "workflowId": "text2image", + "binding": { + "values": { + "model_type": "QwenImageModularPipeline", + "workflow_id": "text2image" + }, + "pipelineClass": "QwenImageModularPipeline" + } + }, + { + "pipelineClass": "QwenImageModularPipeline", + "task": "text_to_image", + "operationId": "diffusion.encode_prompt", + "nodeKey": "modules.ModularDiffusers.EncodePrompt", + "nodeType": "text_encoder", + "blockName": "text_encoder", + "decomposition": "block", + "support": "declared", + "ports": [ + { + "name": "prompt", + "semanticName": "prompt", + "direction": "input", + "roles": ["value"], + "types": ["string"], + "required": true, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "negative_prompt", + "semanticName": "negative_prompt", + "direction": "input", + "roles": ["value"], + "types": ["string"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "max_sequence_length", + "semanticName": "max_sequence_length", + "direction": "input", + "roles": ["value"], + "types": ["int"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "text_encoders", + "semanticName": "text_encoders", + "direction": "input", + "roles": ["component"], + "types": ["diffusers_auto_models"], + "required": true, + "hidden": false, + "semantics": { + "kind": "component", + "scope": "QwenImageModularPipeline", + "state": null, + "owner": "same_loader", + "members": [ + { + "name": "text_encoder", + "type": "transformers.models.qwen2_5_vl.modeling_qwen2_5_vl.Qwen2_5_VLForConditionalGeneration" + }, + { + "name": "tokenizer", + "type": "transformers.models.qwen2.tokenization_qwen2.Qwen2Tokenizer" + } + ], + "suppliedBy": { + "input": "pipeline_components", + "members": ["text_encoder", "tokenizer"] + } + } + }, + { + "name": "guider", + "semanticName": "guider", + "direction": "input", + "roles": ["component"], + "types": ["custom_guider"], + "required": false, + "hidden": false, + "semantics": { + "kind": "component", + "scope": "QwenImageModularPipeline", + "state": null, + "owner": "same_loader", + "members": [ + { + "name": "guider", + "type": "diffusers.guiders.classifier_free_guidance.ClassifierFreeGuidance" + } + ] + } + }, + { + "name": "embeddings", + "semanticName": "embeddings", + "direction": "output", + "roles": ["value"], + "types": ["embeddings"], + "required": false, + "hidden": false, + "semantics": { + "kind": "conditioning", + "scope": "QwenImageModularPipeline", + "state": null, + "owner": "same_loader", + "members": [] + } + }, + { + "name": "doc", + "semanticName": "doc", + "direction": "output", + "roles": ["value"], + "types": ["string"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "prompt_input", + "semanticName": "prompt", + "direction": "input", + "roles": ["value"], + "types": ["string"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "pipeline_components", + "semanticName": "pipeline_components", + "direction": "input", + "roles": ["component"], + "types": ["diffusers_modular_pipeline_components"], + "required": false, + "hidden": false, + "semantics": { + "kind": "component", + "scope": "QwenImageModularPipeline", + "state": null, + "owner": "same_loader", + "members": [ + { + "name": "text_encoder", + "type": "transformers.models.qwen2_5_vl.modeling_qwen2_5_vl.Qwen2_5_VLForConditionalGeneration" + }, + { + "name": "tokenizer", + "type": "transformers.models.qwen2.tokenization_qwen2.Qwen2Tokenizer" + } + ] + } + } + ], + "workflowId": "text2image", + "binding": { + "values": {}, + "pipelineClass": "QwenImageModularPipeline" + } + }, + { + "pipelineClass": "QwenImageModularPipeline", + "task": "text_to_image", + "operationId": "diffusion.denoise", + "nodeKey": "modules.ModularDiffusers.Denoise", + "nodeType": "denoise", + "blockName": "denoise", + "decomposition": "block", + "support": "declared", + "ports": [ + { + "name": "embeddings", + "semanticName": "embeddings", + "direction": "input", + "roles": ["value"], + "types": ["embeddings"], + "required": true, + "hidden": false, + "semantics": { + "kind": "conditioning", + "scope": "QwenImageModularPipeline", + "state": null, + "owner": "same_loader", + "members": [] + } + }, + { + "name": "width", + "semanticName": "width", + "direction": "input", + "roles": ["value"], + "types": ["int"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "height", + "semanticName": "height", + "direction": "input", + "roles": ["value"], + "types": ["int"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "seed", + "semanticName": "seed", + "direction": "input", + "roles": ["value"], + "types": ["int"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "num_inference_steps", + "semanticName": "num_inference_steps", + "direction": "input", + "roles": ["value"], + "types": ["int"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "guidance_scale", + "semanticName": "guidance_scale", + "direction": "input", + "roles": ["value"], + "types": ["float"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "image_latents", + "semanticName": "image_latents", + "direction": "input", + "roles": ["value"], + "types": ["latents"], + "required": false, + "hidden": false, + "semantics": { + "kind": "latents", + "scope": "QwenImageModularPipeline", + "state": null, + "owner": "same_loader", + "members": [] + } + }, + { + "name": "strength", + "semanticName": "strength", + "direction": "input", + "roles": ["value"], + "types": ["float"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "controlnet_bundle", + "semanticName": "controlnet_bundle", + "direction": "input", + "roles": ["value", "component"], + "types": ["custom_controlnet"], + "required": false, + "hidden": false, + "semantics": { + "kind": "conditioning", + "scope": "QwenImageModularPipeline", + "state": null, + "owner": "same_loader", + "members": [ + { + "name": "guider", + "type": "diffusers.guiders.classifier_free_guidance.ClassifierFreeGuidance" + }, + { + "name": "pachifier", + "type": "diffusers.modular_pipelines.qwenimage.modular_pipeline.QwenImagePachifier" + }, + { + "name": "scheduler", + "type": "diffusers.schedulers.scheduling_flow_match_euler_discrete.FlowMatchEulerDiscreteScheduler" + }, + { + "name": "transformer", + "type": "diffusers.models.transformers.transformer_qwenimage.QwenImageTransformer2DModel" + } + ] + } + }, + { + "name": "route_state_in", + "semanticName": "route_state_in", + "direction": "input", + "roles": ["value"], + "types": ["modular_route_state"], + "required": false, + "hidden": false, + "semantics": { + "kind": "state", + "scope": "QwenImageModularPipeline:text2image", + "state": null, + "owner": "same_loader", + "members": [] + } + }, + { + "name": "unet", + "semanticName": "unet", + "direction": "input", + "roles": ["component"], + "types": ["diffusers_auto_model"], + "required": true, + "hidden": false, + "semantics": { + "kind": "component", + "scope": "QwenImageModularPipeline", + "state": null, + "owner": "same_loader", + "members": [ + { + "name": "transformer", + "type": "diffusers.models.transformers.transformer_qwenimage.QwenImageTransformer2DModel" + } + ], + "suppliedBy": { + "input": "pipeline_components", + "members": ["transformer"] + } + } + }, + { + "name": "guider", + "semanticName": "guider", + "direction": "input", + "roles": ["component"], + "types": ["custom_guider"], + "required": false, + "hidden": false, + "semantics": { + "kind": "component", + "scope": "QwenImageModularPipeline", + "state": null, + "owner": "same_loader", + "members": [ + { + "name": "guider", + "type": "diffusers.guiders.classifier_free_guidance.ClassifierFreeGuidance" + } + ] + } + }, + { + "name": "scheduler", + "semanticName": "scheduler", + "direction": "input", + "roles": ["component"], + "types": ["diffusers_auto_model"], + "required": true, + "hidden": false, + "semantics": { + "kind": "component", + "scope": "QwenImageModularPipeline", + "state": null, + "owner": "same_loader", + "members": [ + { + "name": "scheduler", + "type": "diffusers.schedulers.scheduling_flow_match_euler_discrete.FlowMatchEulerDiscreteScheduler" + } + ], + "suppliedBy": { + "input": "pipeline_components", + "members": ["scheduler"] + } + } + }, + { + "name": "latents", + "semanticName": "latents", + "direction": "output", + "roles": ["value"], + "types": ["latents"], + "required": false, + "hidden": false, + "semantics": { + "kind": "latents", + "scope": "QwenImageModularPipeline", + "state": null, + "owner": "same_loader", + "members": [] + } + }, + { + "name": "route_state_out", + "semanticName": "route_state_out", + "direction": "output", + "roles": ["value"], + "types": ["modular_route_state"], + "required": false, + "hidden": false, + "semantics": { + "kind": "state", + "scope": "QwenImageModularPipeline:text2image", + "state": null, + "owner": "same_loader", + "members": [] + } + }, + { + "name": "doc", + "semanticName": "doc", + "direction": "output", + "roles": ["value"], + "types": ["string"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "pipeline_components", + "semanticName": "pipeline_components", + "direction": "input", + "roles": ["component"], + "types": ["diffusers_modular_pipeline_components"], + "required": false, + "hidden": false, + "semantics": { + "kind": "component", + "scope": "QwenImageModularPipeline", + "state": null, + "owner": "same_loader", + "members": [ + { + "name": "scheduler", + "type": "diffusers.schedulers.scheduling_flow_match_euler_discrete.FlowMatchEulerDiscreteScheduler" + }, + { + "name": "transformer", + "type": "diffusers.models.transformers.transformer_qwenimage.QwenImageTransformer2DModel" + } + ] + } + } + ], + "workflowId": "text2image", + "binding": { + "values": {}, + "pipelineClass": "QwenImageModularPipeline" + } + }, + { + "pipelineClass": "QwenImageModularPipeline", + "task": "text_to_image", + "operationId": "diffusion.decode_latents", + "nodeKey": "modules.ModularDiffusers.DecodeLatents", + "nodeType": "decoder", + "blockName": "decode", + "decomposition": "block", + "support": "declared", + "ports": [ + { + "name": "latents", + "semanticName": "latents", + "direction": "input", + "roles": ["value"], + "types": ["latents"], + "required": true, + "hidden": false, + "semantics": { + "kind": "latents", + "scope": "QwenImageModularPipeline", + "state": null, + "owner": "same_loader", + "members": [] + } + }, + { + "name": "route_state_in", + "semanticName": "route_state_in", + "direction": "input", + "roles": ["value"], + "types": ["modular_route_state"], + "required": false, + "hidden": false, + "semantics": { + "kind": "state", + "scope": "QwenImageModularPipeline:text2image", + "state": null, + "owner": "same_loader", + "members": [] + } + }, + { + "name": "vae", + "semanticName": "vae", + "direction": "input", + "roles": ["component"], + "types": ["diffusers_auto_model"], + "required": true, + "hidden": false, + "semantics": { + "kind": "component", + "scope": "QwenImageModularPipeline", + "state": null, + "owner": "same_loader", + "members": [ + { + "name": "vae", + "type": "diffusers.models.autoencoders.autoencoder_kl_qwenimage.AutoencoderKLQwenImage" + } + ], + "suppliedBy": { + "input": "pipeline_components", + "members": ["vae"] + } + } + }, + { + "name": "images", + "semanticName": "images", + "direction": "output", + "roles": ["value"], + "types": ["image"], + "required": false, + "hidden": false, + "semantics": { + "kind": "media", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "doc", + "semanticName": "doc", + "direction": "output", + "roles": ["value"], + "types": ["string"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "pipeline_components", + "semanticName": "pipeline_components", + "direction": "input", + "roles": ["component"], + "types": ["diffusers_modular_pipeline_components"], + "required": false, + "hidden": false, + "semantics": { + "kind": "component", + "scope": "QwenImageModularPipeline", + "state": null, + "owner": "same_loader", + "members": [ + { + "name": "vae", + "type": "diffusers.models.autoencoders.autoencoder_kl_qwenimage.AutoencoderKLQwenImage" + } + ] + } + } + ], + "workflowId": "text2image", + "binding": { + "values": {}, + "pipelineClass": "QwenImageModularPipeline" + } + } + ] +} From c0c4dcfa839e72893b8583768c4a8f56ff42ce6c Mon Sep 17 00:00:00 2001 From: Sourav Das Date: Thu, 8 Oct 2026 09:06:21 +0530 Subject: [PATCH 004/440] Pair client CI with refreshed backend coverage checkpoint Use the reviewed backend commit containing the coordinated generated-inventory refresh and Windows acceptance plan. The workflow changes only its immutable backend ref; client source, production assets, CI permissions and actions are unchanged. --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index ac442067..bc2a15a0 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -33,7 +33,7 @@ jobs: with: repository: sdevil7th/MoDiff # Paired guidance, component-bundle and native masked-template contracts. - ref: 123ede05172fe6049922af014e0bfb5b1dff7aa1 + ref: ccca4a1e318fc74279a0172642bb693396d3e4ff path: MoDiff persist-credentials: false - name: Verify the pinned backend supports native setup From 223cb461a66c344ad64a5827e2dd62c284d30835 Mon Sep 17 00:00:00 2001 From: Sourav Das Date: Thu, 8 Oct 2026 10:14:16 +0530 Subject: [PATCH 005/440] Document browser test setup and pair the Instinct runtime fix --- .github/workflows/ci.yml | 2 +- CONTRIBUTING.md | 12 ++++++++---- 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index bc2a15a0..05d117ca 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -33,7 +33,7 @@ jobs: with: repository: sdevil7th/MoDiff # Paired guidance, component-bundle and native masked-template contracts. - ref: ccca4a1e318fc74279a0172642bb693396d3e4ff + ref: 27698452a21ecd19fa4446413886f6bccb6f7446 path: MoDiff persist-credentials: false - name: Verify the pinned backend supports native setup diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index e03a53f4..c7ad4116 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -306,10 +306,14 @@ Keep Add custom node, the strict response parser and backend hash-bound imports Run the complete local CI-equivalent gate before requesting review: ```bash +npx playwright install chromium npm run check ``` This runs formatting, lint, type checking, style audit, unit/contract tests, production build, and bundle budget. +The request/proxy regression tests also launch Chromium. On a fresh Linux host, +install its system dependencies with `npx playwright install-deps chromium` +using an account with administrator access before running the gate. The Linux CI quality job checks out this client and an immutable, compatible `sdevil7th/MoDiff` backend revision as sibling directories. It installs the @@ -320,10 +324,10 @@ platform smoke jobs remain client-only. For a coordinated change, commit and review the backend first, then replace the backend `ref` in `.github/workflows/ci.yml` with that actual compatible 40-character -commit SHA and run the paired gates. Keep the ref immutable. The current historical -pin predates native setup and has no `uv.lock`, so the workflow explicitly fails its -native setup check until this release handoff is completed. Do not substitute a -mutable branch or an invented future SHA for the paired commit. +commit SHA and run the paired gates. Keep the ref immutable. The selected backend +must contain its reviewed native setup contract and `uv.lock`; the workflow +checks these before setup. Do not substitute a mutable branch or an invented +future SHA for the paired commit. The registered Block catalog audit uses a fixed Linux runtime target and mocked device/package probes to reproduce the reviewed catalog on any host. Backend From d889c1d1e817b5d646f3da16fa54938b749dc5fa Mon Sep 17 00:00:00 2001 From: Sourav Das Date: Thu, 8 Oct 2026 10:49:13 +0530 Subject: [PATCH 006/440] Resolve supervisor controls through configured backend tunnels --- app.config.ts | 14 +- docs/troubleshooting.md | 12 ++ scripts/node-store-requests.test.mjs | 31 +++ scripts/server-actions.test.mjs | 256 +++++++++++++++++++++++++ scripts/shared-store-requests.test.mjs | 29 +++ scripts/websocket-connection.test.mjs | 38 ++++ src/stores/useNodeStore.ts | 2 +- src/stores/useWebsocketStore.ts | 10 +- src/utils/supervisorControl.ts | 72 ++++++- src/vite-env.d.ts | 1 + vite.config.ts | 3 + 11 files changed, 459 insertions(+), 9 deletions(-) diff --git a/app.config.ts b/app.config.ts index 1e3949dc..2712a257 100644 --- a/app.config.ts +++ b/app.config.ts @@ -1,9 +1,13 @@ // Derived from cubiq/Mellon-client and modified by the MoDiff project. const serverAddress = import.meta.env.VITE_SERVER_ADDRESS || window.location.origin; +// Vite supplies a derived development value too; only the operator's +// override can describe a nonadjacent tunneled supervisor destination. +const supervisorAddressExplicit = + import.meta.env.MODIFF_SUPERVISOR_CONTROL_EXPLICIT ?? Boolean(import.meta.env.VITE_SUPERVISOR_CONTROL_ADDRESS); function backendAddress() { - if (!import.meta.env.DEV) { + if (!import.meta.env.DEV || import.meta.env.VITE_SERVER_ADDRESS) { return serverAddress; } if (import.meta.env.VITE_BACKEND_PROXY_TARGET) { @@ -22,11 +26,13 @@ function backendAddress() { } } +const backendTransportAddress = backendAddress(); + function supervisorAddress() { - if (import.meta.env.VITE_SUPERVISOR_CONTROL_ADDRESS) { + if (supervisorAddressExplicit && import.meta.env.VITE_SUPERVISOR_CONTROL_ADDRESS) { return import.meta.env.VITE_SUPERVISOR_CONTROL_ADDRESS; } - const backend = backendAddress(); + const backend = backendTransportAddress; try { const url = new URL(backend); const backendPort = Number(url.port || (url.protocol === 'https:' ? 443 : 80)); @@ -43,7 +49,9 @@ function supervisorAddress() { const config = { serverAddress, + backendAddress: backendTransportAddress, supervisorAddress: supervisorAddress(), + supervisorAddressExplicit, }; export default config; diff --git a/docs/troubleshooting.md b/docs/troubleshooting.md index b3ec3484..1e76c446 100644 --- a/docs/troubleshooting.md +++ b/docs/troubleshooting.md @@ -129,6 +129,18 @@ available while the supervised model worker restarts. Temporary health failure retains the last verified supervisor address; genuine connection failures remain visible and retries use bounded backoff. Explicit Stop remains immediate. +When using an SSH tunnel, forward both the backend and supervisor ports. For +example, if backend `8088` and supervisor `8089` are forwarded to local `18088` +and `18089`, open `http://127.0.0.1:18088`. The client resolves that verified +adjacent pair through the local tunnel instead of contacting local `8089`. +Development uses the actual backend proxy target, or an explicit +`VITE_SERVER_ADDRESS`, rather than the frontend port. A custom nonadjacent +supervisor mapping requires an explicit loopback +`VITE_SUPERVISOR_CONTROL_ADDRESS` when building or serving the client. An +unresolved mapping makes no supervisor request; Stop can still use the ordinary +backend endpoint. Direct backends retain their advertised custom supervisor +port, and remote or malformed supervisor destinations remain rejected. + ## Registry Or Studio Nodes Are Missing Studio builds from the live `/nodes` registry. A client profile does not create backend support by itself. diff --git a/scripts/node-store-requests.test.mjs b/scripts/node-store-requests.test.mjs index b8f27d36..9b5b1db6 100644 --- a/scripts/node-store-requests.test.mjs +++ b/scripts/node-store-requests.test.mjs @@ -2046,6 +2046,37 @@ test('runtime discovery publishes supervisor capability and retains it across te assert.equal(controlModule.supervisorControlAddress(), null); }); +test('runtime discovery resolves a published adjacent supervisor through the configured production tunnel', async () => { + const config = (await server.ssrLoadModule('/app.config.ts')).default; + const previous = { ...config }; + Object.assign(config, { + backendAddress: 'http://127.0.0.1:18088', + supervisorAddress: 'http://127.0.0.1:18089', + supervisorAddressExplicit: false, + }); + try { + globalThis.fetch = async () => + jsonResponse({ + ready: true, + server: { host: '127.0.0.1', port: 8088, scheme: 'http' }, + workerControl: { available: true, address: 'http://127.0.0.1:8089' }, + }); + await nodesStoreModule.useNodesStore.getState().fetchRuntimeStatus(); + assert.equal( + nodesStoreModule.useNodesStore.getState().runtimeStatus.workerControl.address, + 'http://127.0.0.1:18089', + ); + assert.equal(controlModule.supervisorControlAddress(), 'http://127.0.0.1:18089'); + globalThis.fetch = async () => { + throw new TypeError('Owned tunneled worker restarting.'); + }; + await nodesStoreModule.useNodesStore.getState().fetchRuntimeStatus(); + assert.equal(controlModule.supervisorControlAddress(), 'http://127.0.0.1:18089'); + } finally { + Object.assign(config, previous); + } +}); + test('malformed runtime control metadata rejects discovery without replacing the last verified destination', async () => { globalThis.fetch = async () => jsonResponse({ ready: true, workerControl: { available: true, address: 'http://127.0.0.1:43001' } }); diff --git a/scripts/server-actions.test.mjs b/scripts/server-actions.test.mjs index 233c0227..40aeb16c 100644 --- a/scripts/server-actions.test.mjs +++ b/scripts/server-actions.test.mjs @@ -133,6 +133,200 @@ test('older health metadata cannot replace a newer verified supervisor destinati assert.equal(controlModule.supervisorControlAddress(), 'http://127.0.0.1:43001'); }); +async function withControlConfiguration(overrides, run) { + const config = (await server.ssrLoadModule('/app.config.ts')).default; + const previous = Object.fromEntries(Object.keys(overrides).map((key) => [key, config[key]])); + Object.assign(config, overrides); + try { + return await run(config); + } finally { + Object.assign(config, previous); + } +} + +const advertisedBackend = { host: '127.0.0.1', port: 8088, scheme: 'http' }; +const adjacentControl = { available: true, address: 'http://127.0.0.1:8089' }; + +test('production tunnel Stop uses the configured adjacent supervisor and never the remote-local port', async () => { + await withControlConfiguration( + { + serverAddress: 'http://127.0.0.1:18088', + backendAddress: 'http://127.0.0.1:18088', + supervisorAddress: 'http://127.0.0.1:18089', + supervisorAddressExplicit: false, + }, + async () => { + controlModule.updateWorkerControl(controlModule.parseWorkerControl(adjacentControl, advertisedBackend)); + const requests = []; + globalThis.fetch = async (url) => { + requests.push(String(url)); + return jsonResponse({ error: false }); + }; + await actionsModule.requestExecutionStop(); + assert.deepEqual(requests, ['http://127.0.0.1:18089/stop']); + requests.length = 0; + globalThis.fetch = async (url) => { + requests.push(String(url)); + if (requests.length === 1) throw new TypeError('Owned supervisor tunnel unavailable.'); + return jsonResponse({ error: false }); + }; + await actionsModule.requestExecutionStop(); + assert.deepEqual(requests, ['http://127.0.0.1:18089/stop', 'http://127.0.0.1:18088/stop']); + }, + ); +}); + +test('direct and DEV-proxied backend metadata preserve the actual custom supervisor port', async () => { + await withControlConfiguration( + { + serverAddress: 'http://127.0.0.1:5191', + backendAddress: 'http://127.0.0.1:8088', + supervisorAddress: 'http://127.0.0.1:8089', + supervisorAddressExplicit: false, + }, + () => { + assert.equal( + controlModule.parseWorkerControl(adjacentControl, advertisedBackend).address, + 'http://127.0.0.1:8089', + ); + assert.equal( + controlModule.parseWorkerControl({ available: true, address: 'http://127.0.0.1:43001' }, advertisedBackend) + .address, + 'http://127.0.0.1:43001', + ); + }, + ); +}); + +test('a nonadjacent tunneled supervisor requires a trusted explicit override and otherwise Stop uses only the worker', async () => { + await withControlConfiguration( + { + serverAddress: 'http://127.0.0.1:18088', + backendAddress: 'http://127.0.0.1:18088', + supervisorAddress: 'http://127.0.0.1:18089', + supervisorAddressExplicit: false, + }, + async (config) => { + const custom = { available: true, address: 'http://127.0.0.1:43001' }; + const unresolved = controlModule.parseWorkerControl(custom, advertisedBackend); + assert.deepEqual(unresolved, { available: true, address: null }); + controlModule.updateWorkerControl(unresolved); + assert.throws(() => controlModule.supervisorControlAddress(), /supervisor.*configured backend/i); + const requests = []; + globalThis.fetch = async (url) => { + requests.push(String(url)); + return jsonResponse({ error: false }); + }; + await actionsModule.requestExecutionStop(); + assert.deepEqual(requests, ['http://127.0.0.1:18088/stop']); + config.supervisorAddressExplicit = true; + config.supervisorAddress = 'http://127.0.0.1:19001'; + controlModule.updateWorkerControl(controlModule.parseWorkerControl(custom, advertisedBackend)); + assert.equal(controlModule.supervisorControlAddress(), 'http://127.0.0.1:19001'); + config.supervisorAddress = 'http://remote.example:19001'; + assert.throws( + () => controlModule.parseWorkerControl(custom, advertisedBackend), + /Invalid supervisor control address/, + ); + }, + ); +}); + +test('control translation rejects metadata authority outside a matching loopback adjacent pair', async () => { + await withControlConfiguration( + { + backendAddress: 'http://127.0.0.1:18088', + supervisorAddress: 'http://127.0.0.1:18089', + supervisorAddressExplicit: false, + }, + (config) => { + for (const metadata of [ + null, + [], + {}, + { ...advertisedBackend, host: 'example.com' }, + { ...advertisedBackend, host: '127.0.0.2' }, + { ...advertisedBackend, host: 'user@127.0.0.1' }, + { ...advertisedBackend, port: '8088' }, + { ...advertisedBackend, port: 0 }, + { ...advertisedBackend, port: 65536 }, + { ...advertisedBackend, scheme: 'file' }, + { ...advertisedBackend, host: '::1' }, + ]) { + assert.deepEqual(controlModule.parseWorkerControl(adjacentControl, metadata), { + available: true, + address: null, + }); + } + for (const address of [ + 'http://example.com:18088', + 'http://user@127.0.0.1:18088', + 'http://2130706433:18088', + 'http://127.0.0.1:65536', + ]) { + config.backendAddress = address; + assert.deepEqual(controlModule.parseWorkerControl(adjacentControl, advertisedBackend), { + available: true, + address: null, + }); + } + config.backendAddress = 'http://127.0.0.1:65535'; + assert.deepEqual(controlModule.parseWorkerControl(adjacentControl, advertisedBackend), { + available: true, + address: null, + }); + config.backendAddress = 'http://backend.example:18088'; + config.supervisorAddress = 'http://127.0.0.1:19001'; + config.supervisorAddressExplicit = true; + assert.equal( + controlModule.parseWorkerControl(adjacentControl, advertisedBackend).address, + 'http://127.0.0.1:19001', + ); + }, + ); +}); + +test('loopback IPv6, default ports and a custom health transport retain bounded control resolution', async () => { + await withControlConfiguration( + { + backendAddress: 'http://127.0.0.1:8088', + supervisorAddress: 'http://127.0.0.1:8089', + supervisorAddressExplicit: false, + }, + (config) => { + assert.equal( + controlModule.parseWorkerControl(adjacentControl, advertisedBackend, 'http://127.0.0.1:28088').address, + 'http://127.0.0.1:28089', + ); + config.backendAddress = 'http://[::1]:18088'; + config.supervisorAddress = 'http://[::1]:18089'; + assert.equal( + controlModule.parseWorkerControl( + { available: true, address: 'http://[::1]:8089' }, + { host: '::1', port: 8088, scheme: 'http' }, + ).address, + 'http://[::1]:18089', + ); + config.backendAddress = 'http://localhost'; + config.supervisorAddress = 'http://localhost:81'; + assert.equal( + controlModule.parseWorkerControl( + { available: true, address: 'http://127.0.0.1:43001' }, + { ...advertisedBackend, port: 80 }, + ).address, + 'http://127.0.0.1:43001', + ); + assert.equal( + controlModule.parseWorkerControl( + { available: false, address: null }, + { ...advertisedBackend, host: 'example.com' }, + ).address, + null, + ); + }, + ); +}); + test('execution stop uses the process-external supervisor before the backend worker', async () => { let request; globalThis.fetch = async (url, init) => { @@ -168,6 +362,7 @@ test('the real Vite config derives the supervisor from the backend rather than t loaded.config.define['import.meta.env.VITE_SUPERVISOR_CONTROL_ADDRESS'], JSON.stringify('http://127.0.0.1:65531'), ); + assert.equal(loaded.config.define['import.meta.env.MODIFF_SUPERVISOR_CONTROL_EXPLICIT'], 'false'); assert.equal(loaded.config.server.proxy['/huggingface'].target, 'http://127.0.0.1:65530'); } finally { if (priorBackend === undefined) delete process.env.VITE_BACKEND_PROXY_TARGET; @@ -177,6 +372,64 @@ test('the real Vite config derives the supervisor from the backend rather than t } }); +test('development configuration distinguishes proxy transport, direct backend and explicit supervisor overrides', async () => { + const priorBackend = process.env.VITE_BACKEND_PROXY_TARGET; + const priorSupervisor = process.env.VITE_SUPERVISOR_CONTROL_ADDRESS; + process.env.VITE_BACKEND_PROXY_TARGET = 'http://127.0.0.1:9000'; + try { + for (const [directBackend, supervisorOverride, expectedBackend, expectedSupervisor] of [ + [undefined, undefined, 'http://127.0.0.1:9000', 'http://127.0.0.1:9001'], + ['http://127.0.0.1:19000', undefined, 'http://127.0.0.1:19000', 'http://127.0.0.1:19001'], + [undefined, 'http://127.0.0.1:29001', 'http://127.0.0.1:9000', 'http://127.0.0.1:29001'], + ]) { + if (supervisorOverride) process.env.VITE_SUPERVISOR_CONTROL_ADDRESS = supervisorOverride; + else delete process.env.VITE_SUPERVISOR_CONTROL_ADDRESS; + const loaded = await loadConfigFromFile( + { command: 'serve', mode: 'test' }, + path.join(ROOT, 'vite.config.ts'), + ROOT, + 'silent', + ); + assert.ok(loaded); + assert.equal( + loaded.config.define['import.meta.env.MODIFF_SUPERVISOR_CONTROL_EXPLICIT'], + String(Boolean(supervisorOverride)), + ); + const bundle = await build({ + configFile: false, + root: ROOT, + logLevel: 'silent', + build: { + write: false, + minify: false, + lib: { entry: path.join(ROOT, 'app.config.ts'), formats: ['cjs'] }, + rollupOptions: { output: { exports: 'named' } }, + }, + define: { + 'import.meta.env.DEV': 'true', + 'import.meta.env.VITE_SERVER_ADDRESS': directBackend ? JSON.stringify(directBackend) : 'undefined', + ...loaded.config.define, + }, + }); + const module = { exports: {} }; + runInNewContext(bundle[0].output[0].code, { + module, + exports: module.exports, + window: { location: { origin: 'http://127.0.0.1:5191' } }, + URL, + }); + assert.equal(module.exports.default.backendAddress, expectedBackend); + assert.equal(module.exports.default.supervisorAddress, expectedSupervisor); + assert.equal(module.exports.default.supervisorAddressExplicit, Boolean(supervisorOverride)); + } + } finally { + if (priorBackend === undefined) delete process.env.VITE_BACKEND_PROXY_TARGET; + else process.env.VITE_BACKEND_PROXY_TARGET = priorBackend; + if (priorSupervisor === undefined) delete process.env.VITE_SUPERVISOR_CONTROL_ADDRESS; + else process.env.VITE_SUPERVISOR_CONTROL_ADDRESS = priorSupervisor; + } +}); + test('execution stop falls back to the worker endpoint when the supervisor is unavailable', async () => { const requests = []; globalThis.fetch = async (url, init) => { @@ -210,6 +463,7 @@ test('production recovery follows the serving backend port instead of the develo for (const [origin, override, expected] of [ ['http://127.0.0.1:8096', undefined, 'http://127.0.0.1:8097'], ['http://127.0.0.1:8088', undefined, 'http://127.0.0.1:8089'], + ['http://127.0.0.1:18088', undefined, 'http://127.0.0.1:18089'], ['http://127.0.0.1:8096', 'http://127.0.0.1:18000', 'http://127.0.0.1:18000'], ]) { const bundle = await build({ @@ -238,7 +492,9 @@ test('production recovery follows the serving backend port instead of the develo URL, }); assert.equal(module.exports.default.serverAddress, origin); + assert.equal(module.exports.default.backendAddress, origin); assert.equal(module.exports.default.supervisorAddress, expected); + assert.equal(module.exports.default.supervisorAddressExplicit, Boolean(override)); } } finally { if (priorBackend === undefined) delete process.env.VITE_BACKEND_PROXY_TARGET; diff --git a/scripts/shared-store-requests.test.mjs b/scripts/shared-store-requests.test.mjs index 14bc6c5e..0916065b 100644 --- a/scripts/shared-store-requests.test.mjs +++ b/scripts/shared-store-requests.test.mjs @@ -161,6 +161,35 @@ test('supervisor queue reads use the verified bound port and preserve it while h assert.deepEqual(requests, ['http://127.0.0.1:43001/queue']); }); +test('an unmapped custom supervisor is diagnosed with bounded backoff and no local service request', async () => { + const config = (await server.ssrLoadModule('/app.config.ts')).default; + const previous = { ...config }; + Object.assign(config, { + backendAddress: 'http://127.0.0.1:18088', + supervisorAddress: 'http://127.0.0.1:18089', + supervisorAddressExplicit: false, + }); + let requests = 0; + globalThis.fetch = async () => { + requests++; + throw new Error('Unmapped supervisor must not request another local service.'); + }; + try { + controlModule.updateWorkerControl( + controlModule.parseWorkerControl( + { available: true, address: 'http://127.0.0.1:43001' }, + { host: '127.0.0.1', port: 8088, scheme: 'http' }, + ), + ); + await taskStoreModule.useTaskStore.getState().fetchSupervisorTasks(); + assert.match(taskStoreModule.useTaskStore.getState().supervisorControlError, /supervisor.*configured backend/i); + for (let index = 0; index < 20; index++) await taskStoreModule.useTaskStore.getState().fetchSupervisorTasks(); + assert.equal(requests, 0); + } finally { + Object.assign(config, previous); + } +}); + test('a delayed queue fetch cannot overwrite a newer websocket queue revision', async () => { const call = deferred(); globalThis.fetch = () => call.promise; diff --git a/scripts/websocket-connection.test.mjs b/scripts/websocket-connection.test.mjs index c30ad02d..e4097e18 100644 --- a/scripts/websocket-connection.test.mjs +++ b/scripts/websocket-connection.test.mjs @@ -16,6 +16,8 @@ let sockets; let probes; let timers; let nextTimer; +let control; +let config; class FakeSocket { static CONNECTING = 0; @@ -78,10 +80,14 @@ before(async () => { appType: 'custom', }); store = (await server.ssrLoadModule('/src/stores/useWebsocketStore.ts')).useWebsocketStore; + control = await server.ssrLoadModule('/src/utils/supervisorControl.ts'); + config = (await server.ssrLoadModule('/app.config.ts')).default; }); beforeEach(() => { store.getState().disconnect(); + store.setState({ address: null }); + control.resetSupervisorControl(); sockets = []; probes = []; timers = new Map(); @@ -185,6 +191,38 @@ test('stale recovery callbacks cannot replace a newer manually connected socket' assert.equal(store.getState().isConnected, true); }); +test('health discovery binds a custom websocket tunnel to its own supervisor and ignores stale metadata', async () => { + const previous = { ...config }; + Object.assign(config, { + backendAddress: 'http://127.0.0.1:8088', + supervisorAddress: 'http://127.0.0.1:8089', + supervisorAddressExplicit: false, + }); + try { + const metadata = { + error: false, + ready: true, + server: { host: '127.0.0.1', port: 8088, scheme: 'http' }, + workerControl: { available: true, address: 'http://127.0.0.1:8089' }, + }; + store.setState({ address: 'ws://127.0.0.1:18088' }); + const older = enterHealthRecovery(); + assert.equal(older.url, 'http://127.0.0.1:18088/health'); + store.getState().disconnect(); + store.setState({ address: 'ws://127.0.0.1:28088' }); + const newer = enterHealthRecovery(); + newer.respond(200, metadata); + await settle(); + assert.equal(control.supervisorControlAddress(), 'http://127.0.0.1:28089'); + older.respond(200, metadata); + await settle(); + assert.equal(control.supervisorControlAddress(), 'http://127.0.0.1:28089'); + assert.equal(older.signal.aborted, true); + } finally { + Object.assign(config, previous); + } +}); + test('disconnect cancels a retry timer even when its callback was already queued', () => { store.getState().connect(); sockets.at(-1).fail(); diff --git a/src/stores/useNodeStore.ts b/src/stores/useNodeStore.ts index fa9d3b84..21d00e09 100644 --- a/src/stores/useNodeStore.ts +++ b/src/stores/useNodeStore.ts @@ -674,7 +674,7 @@ function parseRuntimeStatus(value: unknown) { return { ...payload, runtimeEnvironment: parseRuntimeEnvironment(payload), - workerControl: parseWorkerControl(payload.workerControl), + workerControl: parseWorkerControl(payload.workerControl, payload.server), } as RuntimeStatus; } diff --git a/src/stores/useWebsocketStore.ts b/src/stores/useWebsocketStore.ts index 3e09f31b..1826e115 100644 --- a/src/stores/useWebsocketStore.ts +++ b/src/stores/useWebsocketStore.ts @@ -43,7 +43,9 @@ export const useWebsocketStore = create((set, get) => { const controlRead = beginWorkerControlRead(); healthProbe = controller; try { - const address = (get().address || config.serverAddress).replace(/^ws/, 'http'); + const customAddress = get().address; + const address = (customAddress || config.serverAddress).replace(/^ws/, 'http'); + const backendAddress = customAddress ? address : config.backendAddress; const status = await requestJson(`${address}/health`, { signal: controller.signal, timeoutMs: 5000, @@ -56,7 +58,11 @@ export const useWebsocketStore = create((set, get) => { } return { ready: value.ready, - workerControl: parseWorkerControl('workerControl' in value ? value.workerControl : undefined), + workerControl: parseWorkerControl( + 'workerControl' in value ? value.workerControl : undefined, + 'server' in value ? value.server : undefined, + backendAddress, + ), }; }, }); diff --git a/src/utils/supervisorControl.ts b/src/utils/supervisorControl.ts index 7a039876..3779018d 100644 --- a/src/utils/supervisorControl.ts +++ b/src/utils/supervisorControl.ts @@ -20,7 +20,59 @@ function loopbackControlAddress(value: unknown): string { return url.origin; } -export function parseWorkerControl(value: unknown): WorkerControl | undefined { +function loopbackEndpoint(value: unknown): { host: string; port: number; origin: string } | null { + const match = + typeof value === 'string' && value.length <= 128 + ? /^https?:\/\/(127\.0\.0\.1|localhost|\[::1\])(?::([0-9]+))?\/?$/.exec(value) + : null; + if (!match) return null; + const port = Number(match[2] ?? ((value as string).startsWith('https:') ? 443 : 80)); + if (!Number.isInteger(port) || port < 1 || port > 65535) return null; + const url = new URL(value as string); + return { host: url.hostname.replace(/^\[|\]$/g, ''), port, origin: url.origin }; +} + +function advertisedBackendEndpoint(value: unknown): { host: string; port: number } | null { + if (!value || typeof value !== 'object' || Array.isArray(value)) return null; + const server = value as Record; + if ( + !['127.0.0.1', 'localhost', '::1', '[::1]'].includes(server.host as string) || + typeof server.port !== 'number' || + !Number.isInteger(server.port) || + server.port < 1 || + server.port > 65535 || + !['http', 'https'].includes(server.scheme as string) + ) + return null; + return { host: (server.host as string).replace(/^\[|\]$/g, ''), port: server.port }; +} + +function resolvedControlAddress(address: string, server: unknown, backendAddress: string): string | null { + // A trusted explicit override is the only authority for a custom tunnel + // mapping. Neither advertised hosts nor arbitrary port deltas can supply it. + if (config.supervisorAddressExplicit) return loopbackControlAddress(config.supervisorAddress); + const backend = loopbackEndpoint(backendAddress); + const advertised = advertisedBackendEndpoint(server); + const control = loopbackEndpoint(address); + if (!backend || !advertised || !control) return null; + // All accepted hosts refer to this machine. A matching backend port keeps + // its actual custom/ephemeral control listener rather than assuming +1. + if (backend.port === advertised.port) return address; + if (control.host !== advertised.host || control.port !== advertised.port + 1 || backend.port === 65535) return null; + if (backendAddress === config.backendAddress) return loopbackControlAddress(config.supervisorAddress); + // A custom websocket endpoint is operator configuration too. Bind health + // metadata to that endpoint, never the unrelated default backend origin. + const target = new URL(backend.origin); + target.protocol = 'http:'; + target.port = String(backend.port + 1); + return loopbackControlAddress(target.origin); +} + +export function parseWorkerControl( + value: unknown, + server?: unknown, + backendAddress = config.backendAddress, +): WorkerControl | undefined { // Missing metadata belongs to older backends. It is not evidence that a // previously advertised supervisor disappeared during worker replacement. if (value === undefined) return undefined; @@ -35,7 +87,13 @@ export function parseWorkerControl(value: unknown): WorkerControl | undefined { if (record.address !== null) throw new Error('Unavailable worker control must have no address.'); return { available: false, address: null }; } - return { available: true, address: loopbackControlAddress(record.address) }; + const address = loopbackControlAddress(record.address); + // Older backends omit server metadata. Preserve their existing advertised + // address behavior while new metadata can identify tunneled transports. + return { + available: true, + address: server === undefined ? address : resolvedControlAddress(address, server, backendAddress), + }; } export function beginWorkerControlRead() { @@ -102,7 +160,15 @@ export async function waitForSupervisorMetadata(store: ControlDiscoveryStore, si export function supervisorControlAddress(explicitAction = false): string | null { if (!supervisorControlCanPoll() || (!explicitAction && Date.now() < retryAt)) return null; - return knownControl?.address ?? loopbackControlAddress(config.supervisorAddress); + if (knownControl) { + if (!knownControl.address) { + throw new Error( + 'The supervisor cannot be resolved through the configured backend. Set a trusted loopback VITE_SUPERVISOR_CONTROL_ADDRESS.', + ); + } + return knownControl.address; + } + return loopbackControlAddress(config.supervisorAddress); } export function supervisorControlFailed() { diff --git a/src/vite-env.d.ts b/src/vite-env.d.ts index fd03f9c6..5eab88e0 100644 --- a/src/vite-env.d.ts +++ b/src/vite-env.d.ts @@ -3,6 +3,7 @@ interface ImportMetaEnv { readonly VITE_SERVER_ADDRESS: string; + readonly MODIFF_SUPERVISOR_CONTROL_EXPLICIT?: boolean; readonly VITE_MODIFF_TEMPLATE_ASSET_MODE?: 'local' | 'huggingface'; readonly VITE_MODIFF_TEMPLATE_ASSET_REPO?: string; readonly VITE_MODIFF_TEMPLATE_ASSET_REVISION?: string; diff --git a/vite.config.ts b/vite.config.ts index 830535b9..e790289c 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -368,6 +368,9 @@ export default defineConfig(({ mode, command }) => { ? { 'import.meta.env.VITE_BACKEND_PROXY_TARGET': JSON.stringify(backendProxyTarget), 'import.meta.env.VITE_SUPERVISOR_CONTROL_ADDRESS': JSON.stringify(supervisorControlTarget), + 'import.meta.env.MODIFF_SUPERVISOR_CONTROL_EXPLICIT': JSON.stringify( + Boolean(process.env.VITE_SUPERVISOR_CONTROL_ADDRESS), + ), } : {}), }, From 7ed2ab0b6856e29419d34f7ae0e9c2d1dca67f6c Mon Sep 17 00:00:00 2001 From: Sourav Das Date: Thu, 8 Oct 2026 10:54:38 +0530 Subject: [PATCH 007/440] Pair CI with the reviewed cloud compatibility checkpoint --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 05d117ca..ce2734b5 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -33,7 +33,7 @@ jobs: with: repository: sdevil7th/MoDiff # Paired guidance, component-bundle and native masked-template contracts. - ref: 27698452a21ecd19fa4446413886f6bccb6f7446 + ref: ff93a8a831827c7eb627f0b0a6c8c7cae59c7347 path: MoDiff persist-credentials: false - name: Verify the pinned backend supports native setup From 2173626aeea0aefca6c448662e0f4e3cf4c809fd Mon Sep 17 00:00:00 2001 From: Sourav Das Date: Thu, 8 Oct 2026 11:15:41 +0530 Subject: [PATCH 008/440] Pair CI with refreshed backend publication metadata --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index ce2734b5..2c7bb587 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -33,7 +33,7 @@ jobs: with: repository: sdevil7th/MoDiff # Paired guidance, component-bundle and native masked-template contracts. - ref: ff93a8a831827c7eb627f0b0a6c8c7cae59c7347 + ref: 41d59959df02833409ea795a35c731beb56b88d9 path: MoDiff persist-credentials: false - name: Verify the pinned backend supports native setup From 7461b8fa2a60fc4823603e2486847ce3be7f2df7 Mon Sep 17 00:00:00 2001 From: Sourav Das Date: Thu, 8 Oct 2026 12:22:48 +0530 Subject: [PATCH 009/440] Preserve media inputs through workflow edits Refresh Run readiness when optional loader files change. Reuse an unambiguous preserved media source for newly required inputs with the same declared role during model changes, while retaining user-authored values and rejecting conflicting roles or cycles. Add real-contract migration and mounted-picker browser regressions. Combined npm run check and focused browser regressions pass; full browser suite and live AMD retests are tracked separately. --- docs/deployment.md | 16 +- docs/developer-first-node-ux.md | 10 +- scripts/bundle-budget.mjs | 6 +- scripts/media-attachment.test.mjs | 238 ++++++++++++++++++ scripts/operation-starter-fixtures.py | 12 +- src/studio/useRunReadinessIssues.ts | 2 + src/workflow/operationAuthoring.ts | 15 ++ src/workflow/operationMediaMigration.ts | 126 ++++++++++ .../e2e/studio-mocked/runReadinessFixture.tsx | 50 ++++ tests/e2e/studio-mocked/studio-mocked.spec.ts | 131 ++++++++++ 10 files changed, 595 insertions(+), 11 deletions(-) create mode 100644 src/workflow/operationMediaMigration.ts create mode 100644 tests/e2e/studio-mocked/runReadinessFixture.tsx diff --git a/docs/deployment.md b/docs/deployment.md index 5fbc1ab5..bf03b937 100644 --- a/docs/deployment.md +++ b/docs/deployment.md @@ -137,13 +137,15 @@ That gate also checks emitted module identity: static imports, dynamic imports per module. Duplicate URLs create independent workflow stores and can break portable export. Shared Lucide dependencies initialize in `graph-vendor` so lazy panels cannot capture undefined icons through an entry-chunk cycle. The -startup graph ceiling is 613 KiB gzip, with a 439 KiB largest startup chunk. -Explicit default-equal edit provenance and validation of bounded inactive -model drafts bring measured startup to about 612.1 KiB. Their synchronous -validation stays with the editor; model-change planning and right-panel forms -remain lazy. No dependency was added. Deferred code is separately bounded by -the budget script. Test cold panel startup, -native portable import/Save/export, and browser resource URLs on the built app. +startup graph ceiling is 642304 gzip bytes, with a 464000-byte largest startup +chunk. The reviewed media-migration build measures 642098 startup bytes and +463792 bytes for its largest startup chunk. Model-change planning and +right-panel forms remain lazy. Preserving one declared media source across +new required inputs adds 746 deferred gzip bytes, from 267236 to 267982; +the reviewed deferred aggregate ceiling is 268160 bytes. The existing +65536-byte deferred-chunk ceiling and dependencies stay fixed. Test cold +panel startup, native portable import/Save/export, and browser resource URLs +on the built app. When updating selected loader field metadata, regenerate the paired `BlockDefinitionV2` catalog and frontend identity pins together. This metadata diff --git a/docs/developer-first-node-ux.md b/docs/developer-first-node-ux.md index 7d2703df..170b9bc4 100644 --- a/docs/developer-first-node-ux.md +++ b/docs/developer-first-node-ux.md @@ -108,8 +108,14 @@ are not silently repaired or structurally rewritten when opened. the canvas, with one Undo to restore the combined node. Inspection never turns the node into an enclosing Block. 5. Change model/task through Load Models. Compatible values and external branches - are retained; incompatible changes still require the normal review. Save and - refresh retain the presentation and values. + are retained; incompatible changes still require the normal review. An existing + image/audio source also supplies newly required inputs with the same declared + media role and compatible type when the preserved source is unambiguous. + Different roles and already authored inputs remain separate. Save and refresh + retain the presentation and values. + +Uploading or removing a source file updates Run readiness immediately, including +optional loader pickers connected to required workflow inputs. Existing workflows are not regrouped on open. Their loader inspector's **Workflow stage actions** menu offers **Group input encoders**, **Group guidance** diff --git a/scripts/bundle-budget.mjs b/scripts/bundle-budget.mjs index 5cd33be3..3b1094b2 100644 --- a/scripts/bundle-budget.mjs +++ b/scripts/bundle-budget.mjs @@ -223,7 +223,11 @@ const MAX_DEFERRED_CHUNK_GZIP_BYTES = 64 * 1024; // runtime restoration and the native recipe checks add 1316 bytes to the last // reviewed build. Bound these features and relocation at 8.5 KiB above the // former aggregate cap; startup and both per-chunk caps stay fixed. -const MAX_DEFERRED_GZIP_BYTES = 248 * 1024 + 512 + 3328 + 128 + 256 + 128 + 384 + 8704; +// Preserving one declared media source across new required inputs adds 746 +// deferred gzip bytes (267236 -> 267982 measured). Its role, source, literal +// and cycle guards stay in the existing lazy authoring chunk and reuse nanoid. +// Allow 768 bytes; startup, dependencies and both per-chunk caps stay fixed. +const MAX_DEFERRED_GZIP_BYTES = 248 * 1024 + 512 + 3328 + 128 + 256 + 128 + 384 + 8704 + 768; const STATIC_MODULE_REFERENCE = /\b(?:import(?=\s|["'{*])(?!\s*\()|export(?=\s|["'{*]))[^;]*?["'](\.\/[^"'?]+\.js)(?:\?v=[0-9a-f]{16})?["']/g; diff --git a/scripts/media-attachment.test.mjs b/scripts/media-attachment.test.mjs index ec8dd1ec..9312e661 100644 --- a/scripts/media-attachment.test.mjs +++ b/scripts/media-attachment.test.mjs @@ -642,6 +642,244 @@ test('fresh sources keep masks distinct and share the same declared image across ); }); +function qwenImageMigrationSource() { + const source = starters.find((s) => s.pipelineClass === 'QwenImageModularPipeline' && s.task === 'image_to_image'); + const target = starters.find( + (s) => s.pipelineClass === 'QwenImageEditPlusModularPipeline' && s.task === 'edit_image', + ); + assert.ok(source && target, 'both actual backend routes are published'); + const graph = authoring.createOperationStarter(source, { x: 0, y: 0 }); + const owner = graph.nodes.find((node) => node.data.action === 'ModelsLoader'); + owner.data.params.auto_offload.value = false; + owner.data.params.offload_mode.value = 'none'; + const choice = attachment + .mediaAttachmentChoices( + source.nodes.map((node) => node.operation), + source.pipelineClass, + ) + .find((item) => item.role === 'image'); + const attached = attachment.planMediaAttachment(graph, owner.id, source, choice, registry); + const image = attached.nodes.find((node) => node.data.module === 'modules.Image' && node.data.action === 'Load'); + image.data.params.file = { type: 'str', display: 'filebrowser', value: ['inputs/source-product.png'] }; + return { source, target, graph: attached, ownerId: owner.id, imageId: image.id }; +} + +test('actual image-to-image model migration preserves one image source across all new declared consumers', async (t) => { + const visual = await server.ssrLoadModule('/src/workflow/visualOperationGroups.ts'); + const { useFlowStore } = await server.ssrLoadModule('/src/stores/useFlowStore.ts'); + const { inspectRequiredGraphInputs } = await server.ssrLoadModule('/src/studio/requiredGraphInputs.ts'); + for (const grouped of [false, true]) + await t.test(grouped ? 'visible encoding group' : 'ordinary leaves', () => { + const fixture = qwenImageMigrationSource(); + const graph = grouped ? visual.groupNewOperationGraph(fixture.graph) : fixture.graph; + const original = structuredClone(graph); + const plan = authoring.planOperationChange(graph, fixture.ownerId, fixture.target); + const flat = visual.unpackVisualOperationGroups(plan.graph).graph; + const consumers = flat.nodes.filter((node) => ['ImageEncode', 'EncodePrompt'].includes(node.data.action)); + assert.equal(consumers.length, 2); + for (const consumer of consumers) { + const port = consumer.data.operationAuthoring.operation.ports.find((item) => item.name === 'image'); + assert.equal(port.semanticName, 'image'); + assert.equal(port.semantics.kind, 'media'); + assert.equal(port.required, true); + assert.deepEqual( + flat.edges + .filter((edge) => edge.target === consumer.id && edge.targetHandle === port.name) + .map((edge) => [edge.source, edge.sourceHandle]), + [[fixture.imageId, 'image']], + 'the original image output, not a new source or mask, supplies both declared roles', + ); + } + assert.deepEqual( + flat.nodes.find((node) => node.id === fixture.imageId), + fixture.graph.nodes.find((node) => node.id === fixture.imageId), + ); + assert.deepEqual(graph, original, 'planning leaves the source graph and its immutable group snapshots unchanged'); + assert.ok( + !inspectRequiredGraphInputs(plan.graph.nodes, flat, {}).some((issue) => + /needs image before running/u.test(issue.message), + ), + ); + const api = useFlowStore + .getState() + .exportGraph('media-migration', undefined, { sourceGraph: plan.graph, randomizeSeeds: false }); + for (const consumer of consumers) { + const submitted = Object.values(api.nodes).find((node) => node.action === consumer.data.action); + assert.equal(submitted.params.image.sourceId, fixture.imageId); + assert.equal(submitted.params.image.sourceKey, 'image'); + assert.equal(submitted.params.image.display, 'input'); + } + }); +}); + +test('media migration keeps distinct roles, existing values, disabled sources and absent declarations unresolved', async (t) => { + const { preservedMediaFanout } = await server.ssrLoadModule('/src/workflow/operationMediaMigration.ts'); + const operationNodes = (graph) => graph.nodes.filter((node) => node.data.operationAuthoring); + for (const [name, change] of [ + [ + 'reference role', + ({ port }) => { + port.semanticName = 'reference_image'; + }, + ], + [ + 'mask role', + ({ port }) => { + port.semanticName = 'mask_image'; + }, + ], + [ + 'control role', + ({ port }) => { + port.semanticName = 'control_image'; + }, + ], + [ + 'component role', + ({ port }) => { + port.roles = ['component']; + }, + ], + [ + 'state scope', + ({ port }) => { + port.semantics.scope = 'OtherOwner'; + }, + ], + [ + 'missing semantics', + ({ port }) => { + delete port.semantics; + }, + ], + [ + 'hidden port', + ({ port }) => { + port.hidden = true; + }, + ], + [ + 'optional port', + ({ port }) => { + port.required = false; + }, + ], + [ + 'hidden field', + ({ field }) => { + field.hidden = true; + }, + ], + [ + 'disabled field', + ({ field }) => { + field.disabled = true; + }, + ], + [ + 'existing value', + ({ field }) => { + field.value = ['inputs/another-product.png']; + }, + ], + [ + 'disabled source', + ({ image }) => { + image.data.uiState = { disabled: true }; + }, + ], + [ + 'incompatible source', + ({ image }) => { + image.data.params.image.type = 'audio'; + }, + ], + [ + 'no preserved driver', + ({ after, image }) => { + after.edges = after.edges.filter((edge) => edge.source !== image.id); + }, + ], + [ + 'previously required but disconnected', + ({ previousPrompt, port, field }) => { + previousPrompt.data.operationAuthoring.operation.ports.push(structuredClone(port)); + previousPrompt.data.params.image = structuredClone(field); + }, + ], + ]) + await t.test(name, () => { + const fixture = qwenImageMigrationSource(); + const before = structuredClone(fixture.graph); + const after = authoring.planOperationChange(fixture.graph, fixture.ownerId, fixture.target).graph; + const prompt = after.nodes.find((node) => node.data.action === 'EncodePrompt'); + after.edges = after.edges.filter((edge) => !(edge.target === prompt.id && edge.targetHandle === 'image')); + const port = prompt.data.operationAuthoring.operation.ports.find((item) => item.name === 'image'); + const previousPrompt = before.nodes.find((node) => node.data.action === 'EncodePrompt'); + change({ + before, + after, + prompt, + port, + field: prompt.data.params.image, + previousPrompt, + image: after.nodes.find((node) => node.id === fixture.imageId), + }); + const snapshot = structuredClone({ before, after }); + assert.deepEqual(preservedMediaFanout(before, after, operationNodes(before), operationNodes(after)).edges, []); + assert.deepEqual({ before, after }, snapshot, 'rejected fanout is read-only'); + }); +}); + +test('media migration preserves occupied sockets and rejects competing drivers and cycles', async (t) => { + const { preservedMediaFanout } = await server.ssrLoadModule('/src/workflow/operationMediaMigration.ts'); + const operationNodes = (graph) => graph.nodes.filter((node) => node.data.operationAuthoring); + for (const mode of ['occupied', 'two sources', 'two handles', 'cycle']) + await t.test(mode, () => { + const fixture = qwenImageMigrationSource(); + const before = structuredClone(fixture.graph); + const after = authoring.planOperationChange(fixture.graph, fixture.ownerId, fixture.target).graph; + const prompt = after.nodes.find((node) => node.data.action === 'EncodePrompt'); + const current = after.edges.find((edge) => edge.target === prompt.id && edge.targetHandle === 'image'); + if (mode !== 'occupied') after.edges = after.edges.filter((edge) => edge !== current); + if (mode === 'two sources' || mode === 'two handles') { + const alternative = structuredClone(before.nodes.find((node) => node.id === fixture.imageId)); + if (mode === 'two sources') { + alternative.id = 'another-image'; + before.nodes.push(structuredClone(alternative)); + after.nodes.push(alternative); + } else { + for (const graph of [before, after]) + graph.nodes.find((node) => node.id === alternative.id).data.params.alternate = { + type: 'image', + display: 'output', + }; + } + const sourceHandle = mode === 'two sources' ? 'image' : 'alternate'; + for (const graph of [before, after]) { + const encoder = graph.nodes.find((node) => node.data.action === 'ImageEncode'); + graph.edges.push({ + id: `competing-${graph === before ? 'before' : 'after'}`, + source: alternative.id, + sourceHandle, + target: encoder.id, + targetHandle: 'image', + }); + } + } + if (mode === 'cycle') after.edges.push({ id: 'downstream-source', source: prompt.id, target: fixture.imageId }); + const snapshot = structuredClone({ before, after }); + const result = preservedMediaFanout(before, after, operationNodes(before), operationNodes(after)); + assert.deepEqual(result.edges, []); + assert.equal(result.attention.length, mode === 'occupied' ? 0 : 1); + assert.deepEqual( + { before, after }, + snapshot, + 'existing wires, conflicting sources and cycles are preserved for review', + ); + }); +}); + test('custom mirrored interfaces reject adaptation without mutating their source or values', async () => { const visual = await server.ssrLoadModule('/src/workflow/visualOperationGroups.ts'); const baseline = starters.find( diff --git a/scripts/operation-starter-fixtures.py b/scripts/operation-starter-fixtures.py index 60ce7898..c26c1147 100644 --- a/scripts/operation-starter-fixtures.py +++ b/scripts/operation-starter-fixtures.py @@ -42,7 +42,12 @@ ("StableDiffusionXLModularPipeline", "inpaint"), ("QwenImageEditPlusModularPipeline", "multi_image_reference_edit"), ) - if "--image-audio" in sys.argv: + if "--selection" in sys.argv: + index = sys.argv.index("--selection") + if len(sys.argv[index + 1:]) != 2: + raise ValueError("--selection requires a pipeline class and task") + selections = (tuple(sys.argv[index + 1:]),) + elif "--image-audio" in sys.argv: selections = sorted({(c["pipelineClass"], c["task"]) for c in contracts if c["task"] and operation_owns_model(c) and not ("video" in c["task"] or c["task"] == "flf2v" @@ -64,5 +69,10 @@ } for node in result["nodes"] ] + if "--selection" in sys.argv: + result["testMediaLoaderRegistry"] = { + f"{module}.Load": describer._describe_registered_node(module, "Load", MODULE_MAP[module]["Load"]) + for module in ("modules.Image", "modules.Audio") + } results.append(result) json.dump(results, sys.stdout) diff --git a/src/studio/useRunReadinessIssues.ts b/src/studio/useRunReadinessIssues.ts index 3707c40b..8a701781 100644 --- a/src/studio/useRunReadinessIssues.ts +++ b/src/studio/useRunReadinessIssues.ts @@ -64,6 +64,8 @@ export function useRunReadinessIssues({ sid, isConnected, includeStudio = true } param.required || param.isInput || param.display === 'input' || + // Optional loader pickers can supply a required downstream media input. + param.display === 'filebrowser' || /repo|model|checkpoint|ckpt|safetensors|lora|vae|controlnet|adapter/i.test(key), ) .map(([key, param]) => `${key}:${JSON.stringify(param.value ?? param.default ?? '')}`) diff --git a/src/workflow/operationAuthoring.ts b/src/workflow/operationAuthoring.ts index 0de3fdfd..cd03c2f1 100644 --- a/src/workflow/operationAuthoring.ts +++ b/src/workflow/operationAuthoring.ts @@ -10,6 +10,7 @@ import { operationAuthoring } from './operationAuthoringHint'; export { operationAuthoring } from './operationAuthoringHint'; import { operationPortCompatibility } from './operationCatalog'; import { compatibleOperationControlTransfer } from './operationControlTransfer'; +import { preservedMediaFanout } from './operationMediaMigration'; import { createNodeFromRegistry } from './nodeFactory'; import { acceptsOperationValue as acceptsValue } from './operationFieldValue'; import { operationScope } from './operationScope'; @@ -1111,6 +1112,20 @@ export function planOperationChange( ) edges.push(structuredClone(edge)); } + const media = preservedMediaFanout(graph, { nodes, edges }, scope, migrated); + for (const edge of media.edges) { + edges.push(edge); + addPreserved( + `${endpointLabel( + nodes.find((node) => node.id === edge.source), + edge.sourceHandle, + )} → ${endpointLabel( + nodes.find((node) => node.id === edge.target), + edge.targetHandle, + )} connection for the same declared media role`, + ); + } + diagnostics.push(...media.attention); if (rebuiltManagedConnections) reviewChanges.push( `Rebuild ${rebuiltManagedConnections} model-owned connection${rebuiltManagedConnections === 1 ? '' : 's'} for the selected model; no user-created nodes are removed.`, diff --git a/src/workflow/operationMediaMigration.ts b/src/workflow/operationMediaMigration.ts new file mode 100644 index 00000000..8956d3c7 --- /dev/null +++ b/src/workflow/operationMediaMigration.ts @@ -0,0 +1,126 @@ +import type { Edge } from '@xyflow/react'; +import { nanoid } from 'nanoid'; +import type { CustomNodeType } from '../stores/useFlowStore'; +import type { OperationGraph } from './operationAuthoring'; +import { operationAuthoring } from './operationAuthoringHint'; +import type { OperationPort } from './operationContracts'; +import { connectionTypesAreCompatible } from '../theme/connectionTypeCompatibility'; + +function mediaRole(port: OperationPort | undefined): string | null { + const semantics = port?.semantics; + if ( + !port || + port.direction !== 'input' || + port.hidden || + !port.semanticName || + port.roles.includes('component') || + port.roles.includes('pipeline') || + semantics?.kind !== 'media' || + semantics.owner !== 'none' || + semantics.scope !== null || + semantics.state !== null + ) + return null; + const kinds = port.types.filter((type) => type === 'image' || type === 'audio').sort(); + return kinds.length === 1 ? JSON.stringify([port.semanticName, kinds[0]]) : null; +} + +/** Reuse an existing material source for a newly declared input of the same role. + * Component ownership, different media roles and ambiguous drivers never fan out. */ +export function preservedMediaFanout( + before: OperationGraph, + after: OperationGraph, + previous: CustomNodeType[], + targets: CustomNodeType[], +): { edges: Edge[]; attention: string[] } { + const previousIds = new Set(previous.map((node) => node.id)); + const targetIds = new Set(targets.map((node) => node.id)); + const added: Edge[] = [], + attention = new Set(); + const ports = (node: CustomNodeType) => operationAuthoring(node)?.operation.ports ?? []; + const drivers = new Map>(); + for (const edge of before.edges) { + if (!previousIds.has(edge.target) || previousIds.has(edge.source)) continue; + const old = previous.find((node) => node.id === edge.target)!; + const role = mediaRole(ports(old).find((port) => port.name === edge.targetHandle)); + if (!role) continue; + // Only a successfully preserved connection can authorize an additional one. + const retained = after.edges.some((candidate) => { + if ( + candidate.source !== edge.source || + candidate.sourceHandle !== edge.sourceHandle || + !targetIds.has(candidate.target) + ) + return false; + const target = targets.find((node) => node.id === candidate.target)!; + return ( + !target.data.uiState?.disabled && + mediaRole(ports(target).find((port) => port.name === candidate.targetHandle)) === role + ); + }); + if (!retained) continue; + const source = after.nodes.find((node) => node.id === edge.source); + const output = source?.data.params[edge.sourceHandle ?? '']; + if (!source || source.data.uiState?.disabled || !output || output.hidden || output.display !== 'output') continue; + if (!drivers.has(role)) drivers.set(role, new Map()); + drivers.get(role)!.set(JSON.stringify([edge.source, edge.sourceHandle]), edge); + } + function wouldCycle(source: string, target: string): boolean { + const visited = new Set(), + pending = [target]; + while (pending.length) { + const node = pending.pop()!; + if (node === source) return true; + if (visited.has(node)) continue; + visited.add(node); + for (const edge of [...after.edges, ...added]) if (edge.source === node) pending.push(edge.target); + } + return false; + } + for (const target of targets) { + if (target.data.uiState?.disabled) continue; + const operation = operationAuthoring(target)?.operation; + if (!operation) continue; + const old = previous.find((node) => operationAuthoring(node)?.operation.operationId === operation.operationId); + for (const port of operation.ports) { + const role = mediaRole(port), + field = target.data.params[port.name]; + if ( + !role || + !port.required || + !field || + field.hidden || + field.disabled || + !(field.display === 'input' || field.isInput) || + after.edges.some((edge) => edge.target === target.id && edge.targetHandle === port.name) || + (old && + ports(old).some( + (previousPort) => + previousPort.name === port.name && previousPort.required && mediaRole(previousPort) === role, + )) + ) + continue; + const value = field.value ?? field.default; + if (value !== undefined && value !== null && value !== '' && (!Array.isArray(value) || value.length)) continue; + const candidates = [...(drivers.get(role)?.values() ?? [])]; + if (candidates.length > 1) { + attention.add( + `The ${port.semanticName} input has several preserved sources. Connect the new required inputs explicitly.`, + ); + continue; + } + const driver = candidates[0]; + if (!driver) continue; + const output = after.nodes.find((node) => node.id === driver.source)!.data.params[driver.sourceHandle ?? '']!; + if (!connectionTypesAreCompatible(output.type, field.type)) continue; + if (wouldCycle(driver.source, target.id)) { + attention.add( + `The preserved ${port.semanticName} source would create a cycle. Connect the new required input explicitly.`, + ); + continue; + } + added.push({ ...driver, id: `edge-${nanoid()}`, target: target.id, targetHandle: port.name }); + } + } + return { edges: added, attention: [...attention] }; +} diff --git a/tests/e2e/studio-mocked/runReadinessFixture.tsx b/tests/e2e/studio-mocked/runReadinessFixture.tsx new file mode 100644 index 00000000..0c7fd5c3 --- /dev/null +++ b/tests/e2e/studio-mocked/runReadinessFixture.tsx @@ -0,0 +1,50 @@ +import { createRoot } from 'react-dom/client'; +import { ReactFlowProvider } from '@xyflow/react'; +import FileBrowserField from '../../../src/fields/FileBrowserField'; +import { useFlowStore } from '../../../src/stores/useFlowStore'; +import { useRunReadinessIssues } from '../../../src/studio/useRunReadinessIssues'; + +// eslint-disable-next-line react-refresh/only-export-components -- Isolated mounted-hook test entry point. +function ReadinessProbe() { + const { issues } = useRunReadinessIssues({ sid: 'mock-sid', isConnected: true, includeStudio: false }); + const file = useFlowStore( + (state) => state.nodes.find((node) => node.id === 'readiness-upload-source')!.data.params.file!, + ); + return ( + <> + + {JSON.stringify(issues.filter((issue) => issue.code === 'media_file_input_missing'))} + +
+ + +
+ + ); +} + +export function mountRunReadinessProbe() { + const host = document.createElement('div'); + document.body.appendChild(host); + createRoot(host).render(); +} diff --git a/tests/e2e/studio-mocked/studio-mocked.spec.ts b/tests/e2e/studio-mocked/studio-mocked.spec.ts index dbd0a806..774bb647 100644 --- a/tests/e2e/studio-mocked/studio-mocked.spec.ts +++ b/tests/e2e/studio-mocked/studio-mocked.spec.ts @@ -9301,6 +9301,137 @@ test('the unified editor inspect a node with the library closed, preserving grap .toBe(before.nodes.find((node) => node.id === nodeId)!.params.prompt.value); }); +test('mounted run readiness follows an optional loader file used by a required operation input', async ({ page }) => { + await ensureFrontend(); + const python = + process.env.MODIFF_BACKEND_PYTHON || + path.join(BACKEND_ROOT, '.venv', process.platform === 'win32' ? 'Scripts/python.exe' : 'bin/python'); + const script = path.join(CLIENT_ROOT, 'scripts', 'operation-starter-fixtures.py'); + const selectionArgs = [script, '--selection', 'QwenImageModularPipeline', 'image_to_image']; + const { stdout } = await promisify(execFile)( + process.platform === 'win32' ? python : path.join(BACKEND_ROOT, 'scripts', 'with-runtime-env.sh'), + process.platform === 'win32' ? selectionArgs : [python, ...selectionArgs], + { + cwd: BACKEND_ROOT, + env: { ...process.env, PYTHONDONTWRITEBYTECODE: '1' }, + timeout: 90_000, + maxBuffer: 32 * 1024 * 1024, + }, + ); + const [starter] = JSON.parse(stdout) as (OperationStarter & { + testMediaLoaderRegistry: Record; + })[]; + expect(starter?.pipelineClass).toBe('QwenImageModularPipeline'); + expect(starter?.task).toBe('image_to_image'); + const imageEncoder = starter!.nodes.find( + (item) => + item.operation.nodeKey === 'modules.ModularDiffusers.ImageEncode' && + item.operation.ports.some((port) => port.name === 'image' && port.direction === 'input' && port.required), + )!; + expect(imageEncoder).toBeDefined(); + await page.goto(`${FRONTEND_URL}/control-state-matrix.html`, { waitUntil: 'domcontentloaded' }); + await page.evaluate( + async ({ encoder, registry }) => { + const [{ useFlowStore }, { useStudioStore }, { useNodesStore }, { mountRunReadinessProbe }] = await Promise.all([ + import('/src/stores/useFlowStore.ts'), + import('/src/stores/useStudioStore.ts'), + import('/src/stores/useNodeStore.ts'), + import('/tests/e2e/studio-mocked/runReadinessFixture.tsx'), + ]); + const loader = structuredClone(registry['modules.Image.Load']!); + loader.label = 'Load Image'; + loader.params.file = { + ...loader.params.file, + label: 'Source image', + display: 'filebrowser', + value: [], + fieldOptions: { fileTypes: ['image'], multiple: true }, + }; + // The real loader picker is optional in the registry. Its typed connection + // to this actual backend operation makes the file necessary for this run. + if (loader.params.file.required || loader.params.file.isInput) + throw new Error('Expected optional picker metadata'); + useNodesStore.setState({ nodesRegistry: { ...registry, [encoder.operation.nodeKey]: encoder.node } }); + useStudioStore.getState().clearGraphBinding(); + useFlowStore.setState({ + nodes: [ + { + id: 'readiness-upload-source', + type: 'custom', + position: { x: 80, y: 100 }, + data: loader, + }, + { + id: 'readiness-required-image', + type: 'custom', + position: { x: 600, y: 100 }, + data: { + ...encoder.node, + operationAuthoring: { + schemaVersion: 1, + operation: encoder.operation, + defaults: {}, + retained: [], + }, + }, + }, + ], + edges: [ + { + id: 'readiness-required-image-wire', + source: 'readiness-upload-source', + sourceHandle: 'image', + target: 'readiness-required-image', + targetHandle: 'image', + }, + ], + viewport: { x: 0, y: 0, zoom: 1 }, + }); + useFlowStore.getState().resetHistory(); + mountRunReadinessProbe(); + }, + { encoder: imageEncoder, registry: starter!.testMediaLoaderRegistry }, + ); + const readiness = page.getByTestId('mounted-media-readiness'); + await expect(readiness).toContainText('Load Image needs a file before running.'); + const source = page.getByTestId('readiness-upload-picker'); + await page.route('**/file', (route) => { + if (route.request().method() !== 'POST') return route.fallback(); + return route.fulfill({ json: { path: ['@data/images/readiness-source.png'] } }); + }); + const before = await page.evaluate(async () => { + const { useFlowStore } = await import('/src/stores/useFlowStore.ts'); + return useFlowStore.getState().toObject(); + }); + await source.locator('input[type="file"]').setInputFiles({ + name: 'readiness-source.png', + mimeType: 'image/png', + buffer: Buffer.from( + 'iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mP8/x8AAwMCAO+jRZkAAAAASUVORK5CYII=', + 'base64', + ), + }); + const fileValue = () => + page.evaluate(async () => { + const { useFlowStore } = await import('/src/stores/useFlowStore.ts'); + return useFlowStore.getState().nodes.find((node) => node.id === 'readiness-upload-source')!.data.params.file + .value; + }); + await expect.poll(fileValue).toEqual(['@data/images/readiness-source.png']); + // Keep the hook mounted: no refresh, graph replacement, registry publication, + // queue event or Studio edit may be needed to clear a successful upload. + await expect(readiness).toHaveText('[]'); + expect( + await page.evaluate(async () => { + const { useFlowStore } = await import('/src/stores/useFlowStore.ts'); + return useFlowStore.getState().edges; + }), + ).toEqual(before.edges); + await source.getByRole('button', { name: 'Remove media', exact: true }).click(); + await expect.poll(fileValue).toEqual(['']); + await expect(readiness).toContainText('Load Image needs a file before running.'); +}); + test('Fix opens a required Block input without changing Creator workspace or memory policy', async ({ page }) => { await ensureFrontend(); await installMockRoutes(page); From d65f3eac9c539a8054be6e1185698f6b3b22c981 Mon Sep 17 00:00:00 2001 From: Sourav Das Date: Thu, 8 Oct 2026 12:35:38 +0530 Subject: [PATCH 010/440] Test image workflow edits against the matching backend --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 2c7bb587..4cc3b1cf 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -33,7 +33,7 @@ jobs: with: repository: sdevil7th/MoDiff # Paired guidance, component-bundle and native masked-template contracts. - ref: 41d59959df02833409ea795a35c731beb56b88d9 + ref: 2197bec10c1c56805a5858efa9a8ecde03991ba3 path: MoDiff persist-credentials: false - name: Verify the pinned backend supports native setup From 9f376c0804e1e8ed1e9b5fc57cb454fd34c9383a Mon Sep 17 00:00:00 2001 From: Sourav Das Date: Thu, 8 Oct 2026 14:17:03 +0530 Subject: [PATCH 011/440] Use captured task evidence in Gallery subtitles --- docs/modiff-client-architecture.md | 6 +- scripts/resolved-execution-inputs.test.mjs | 73 ++++++++++++++++++- src/components/OutputGalleryPanel.tsx | 4 +- src/studio/outputTaskDisplay.ts | 12 +++ tests/e2e/studio-mocked/studio-mocked.spec.ts | 34 ++++++++- 5 files changed, 121 insertions(+), 8 deletions(-) create mode 100644 src/studio/outputTaskDisplay.ts diff --git a/docs/modiff-client-architecture.md b/docs/modiff-client-architecture.md index 88b3da48..a6728e38 100644 --- a/docs/modiff-client-architecture.md +++ b/docs/modiff-client-architecture.md @@ -1457,8 +1457,10 @@ without changing graph values or execution ownership. `resolvedExecutionInputs` can carry backend `graphTasks` alongside captured call arguments. The client validates each owner against the receipt's captured Modular loader and model identity. A unique supported task updates the output label while -leaving its saved form untouched. Legacy receipts remain readable; incomplete or -ambiguous graph recognition does not invent a task. This metadata grants no +leaving its saved form untouched. Gallery labels a receipt with absent, null or +conflicting task recognition as **Task not uniquely captured**, rather than using +the saved form's task. Only outputs without a consumed-input receipt retain their +historical task label. This metadata grants no execution or resource authority and adds no frontend model-family dispatch. History model labels and Gallery filters also use the validated captured model diff --git a/scripts/resolved-execution-inputs.test.mjs b/scripts/resolved-execution-inputs.test.mjs index 19e5f036..850106f6 100644 --- a/scripts/resolved-execution-inputs.test.mjs +++ b/scripts/resolved-execution-inputs.test.mjs @@ -4,7 +4,7 @@ import { createServer } from 'vite'; import { spawnSync } from 'node:child_process'; import { fileURLToPath } from 'node:url'; -let server, contracts, inputs, outputUtils, profiles; +let server, contracts, inputs, outputUtils, profiles, tasks; before(async () => { globalThis.window = { location: { origin: 'http://localhost' } }; // These SSR imports never use HMR. Middleware mode alone still watches the @@ -20,6 +20,7 @@ before(async () => { inputs = await server.ssrLoadModule('/src/studio/resolvedExecutionInputs.ts'); outputUtils = await server.ssrLoadModule('/src/studio/outputUtils.ts'); profiles = await server.ssrLoadModule('/src/studio/modelProfiles.ts'); + tasks = await server.ssrLoadModule('/src/studio/outputTaskDisplay.ts'); }); after(async () => { await server?.close(); @@ -554,6 +555,76 @@ test('graph task evidence replaces stale history labels while preserving the sav } }); +function taskHistoryOutput(graphTasks) { + const evidence = receipt(); + evidence.nodes.push({ + nodeId: 'loader', + module: 'modules.ModularDiffusers', + action: 'ModelsLoader', + fields: { model_type: { value: 'QwenImageEditPlusModularPipeline', source: 'literal' } }, + omittedFields: {}, + }); + evidence.summary.modelType = 'QwenImageEditPlusModularPipeline'; + if (graphTasks !== undefined) evidence.graphTasks = graphTasks; + return contracts.coerceStudioOutput({ + id: 'task-alias', + url: '/image.webp', + taskId: 'actual-task', + attemptIndex: 2, + nodeId: 'preview', + mode: 'text_to_image', + formSnapshot: { mode: 'text_to_image', steps: 50 }, + resolvedExecutionInputs: evidence, + }); +} + +const taskOwner = { loaderId: 'loader', pipelineClass: 'QwenImageEditPlusModularPipeline' }; + +test('ambiguous consumed task stays explicitly uncaptured across history reload without borrowing the form', () => { + let output = taskHistoryOutput([{ ...taskOwner, task: null }]); + for (let reload = 0; reload < 2; reload++) { + assert.equal(tasks.outputTaskDisplay(output), 'Task not uniquely captured'); + assert.equal(output.mode, 'text_to_image'); + assert.equal(output.formSnapshot.mode, 'text_to_image'); + assert.equal(output.formSnapshot.steps, 50); + assert.equal(inputs.outputModelKey(output), 'QwenImageEditPlusModularPipeline'); + output = contracts.coerceStudioOutput(JSON.parse(JSON.stringify(output))); + } +}); + +test('missing and mixed consumed task evidence never uses the historical global task', () => { + const output = taskHistoryOutput(); + assert.equal(tasks.outputTaskDisplay(output), 'Task not uniquely captured'); + for (const graphTasks of [ + [], + [{ ...taskOwner, task: null }], + [ + { ...taskOwner, task: 'edit_image' }, + { ...taskOwner, loaderId: 'other', task: 'text_to_image' }, + ], + [ + { ...taskOwner, task: 'edit_image' }, + { ...taskOwner, loaderId: 'other', task: null }, + ], + [{ ...taskOwner, task: 'unrecognized_task' }], + [{ ...taskOwner, task: 'constructor' }], + ]) { + output.resolvedExecutionInputs.graphTasks = graphTasks; + assert.equal(tasks.outputTaskDisplay(output), 'Task not uniquely captured'); + } +}); + +test('unique consumed task labels override stale history, and only receipt-free records retain legacy labels', () => { + for (const task of ['edit_image', 'multi_image_reference_edit']) { + const output = taskHistoryOutput([{ ...taskOwner, task }]); + assert.equal(tasks.outputTaskDisplay(output), profiles.STUDIO_MODE_LABELS[task]); + assert.equal(output.formSnapshot.mode, 'text_to_image'); + } + const legacy = taskHistoryOutput(); + delete legacy.resolvedExecutionInputs; + assert.equal(tasks.outputTaskDisplay(legacy), 'Text to image'); +}); + test('depth receipt preserves model-default resolution and false input matching through history parsing', () => { const value = receipt(); value.nodes[0] = { diff --git a/src/components/OutputGalleryPanel.tsx b/src/components/OutputGalleryPanel.tsx index 9041ec07..692815fb 100644 --- a/src/components/OutputGalleryPanel.tsx +++ b/src/components/OutputGalleryPanel.tsx @@ -29,7 +29,7 @@ import { useStudioStore, } from '../stores/useStudioStore'; import { useWebsocketStore } from '../stores/useWebsocketStore'; -import { STUDIO_MODE_LABELS } from '../studio/modelProfiles'; +import { outputTaskDisplay } from '../studio/outputTaskDisplay'; import { encodedVideoMetadata, videoOutputSummary } from '../studio/outputUtils'; import { validateCurrentRun } from '../studio/runReadiness'; import { coordinateGraphRun } from '../studio/runCoordinator'; @@ -77,7 +77,7 @@ function outputSubtitle(output: StudioOutput) { : isVideoOutput(output) ? ` | ${videoOutputSummary(output)}` : ` | ${size || 'image'}`; - return `${output.modelLabel}${template} | ${STUDIO_MODE_LABELS[output.mode]}${media} | ${seed === undefined ? 'Seed not captured' : `Seed ${seed}`}`; + return `${output.modelLabel}${template} | ${outputTaskDisplay(output)}${media} | ${seed === undefined ? 'Seed not captured' : `Seed ${seed}`}`; } function isAudioOutput(output: StudioOutput) { diff --git a/src/studio/outputTaskDisplay.ts b/src/studio/outputTaskDisplay.ts new file mode 100644 index 00000000..76b18bb7 --- /dev/null +++ b/src/studio/outputTaskDisplay.ts @@ -0,0 +1,12 @@ +import { STUDIO_MODE_LABELS } from './modelProfiles'; +import type { StudioOutput } from './types'; + +export function outputTaskDisplay(output: StudioOutput): string { + const receipt = output.resolvedExecutionInputs; + if (!receipt) return STUDIO_MODE_LABELS[output.mode]; + const task = receipt.graphTasks?.[0]?.task; + const label = task && STUDIO_MODE_LABELS[task as keyof typeof STUDIO_MODE_LABELS]; + return typeof label === 'string' && receipt.graphTasks!.every((item) => item.task === task) + ? label + : 'Task not uniquely captured'; +} diff --git a/tests/e2e/studio-mocked/studio-mocked.spec.ts b/tests/e2e/studio-mocked/studio-mocked.spec.ts index 774bb647..aa93e9d5 100644 --- a/tests/e2e/studio-mocked/studio-mocked.spec.ts +++ b/tests/e2e/studio-mocked/studio-mocked.spec.ts @@ -28330,7 +28330,9 @@ for (const workspace of ['expert'] as const) { } for (const workspace of ['expert'] as const) { - test(`${workspace} Gallery keeps recognized graph task after history reload`, async ({ page }) => { + test(`${workspace} Gallery keeps recognized and ambiguous graph task labels after history reload`, async ({ + page, + }) => { await ensureFrontend(); await installMockRoutes(page); const output = { @@ -28377,7 +28379,13 @@ for (const workspace of ['expert'] as const) { unavailableFields: [], uncapturedNodeIds: [], truncated: false, - graphTasks: [{ loaderId: 'loader', pipelineClass: 'StableDiffusionXLModularPipeline', task: 'image_to_image' }], + graphTasks: [ + { + loaderId: 'loader', + pipelineClass: 'StableDiffusionXLModularPipeline', + task: 'image_to_image' as string | null, + }, + ], }, }; const custom = structuredClone(output); @@ -28385,11 +28393,20 @@ for (const workspace of ['expert'] as const) { custom.resolvedExecutionInputs.nodes[0]!.fields.model_type!.value = 'CustomModularPipeline'; custom.resolvedExecutionInputs.summary.modelType = 'CustomModularPipeline'; custom.resolvedExecutionInputs.graphTasks[0]!.pipelineClass = 'CustomModularPipeline'; + const edit = structuredClone(output); + edit.id = 'ambiguous-edit-history'; + edit.resolvedExecutionInputs.nodes[0]!.fields.model_type!.value = 'QwenImageEditPlusModularPipeline'; + edit.resolvedExecutionInputs.summary.modelType = 'QwenImageEditPlusModularPipeline'; + edit.resolvedExecutionInputs.nodes[1]!.fields.num_inference_steps!.value = '40'; + edit.resolvedExecutionInputs.summary.steps = '40'; + edit.resolvedExecutionInputs.graphTasks = [ + { loaderId: 'loader', pipelineClass: 'QwenImageEditPlusModularPipeline', task: null }, + ]; await page.route('**/studio_outputs**', (route) => route.fulfill({ status: 200, contentType: 'application/json', - body: JSON.stringify({ error: false, outputs: [output, custom], revision: 1 }), + body: JSON.stringify({ error: false, outputs: [output, custom, edit], revision: 1 }), }), ); await page.goto(FRONTEND_URL, { waitUntil: 'domcontentloaded' }); @@ -28420,6 +28437,17 @@ for (const workspace of ['expert'] as const) { expect(stored.formSnapshot.mode).toBe('text_to_image'); expect(stored.formSnapshot.modelType).toBe('ZImageModularPipeline'); expect(stored.formSnapshot.steps).toBe(9); + await page.getByTestId('gallery-filter-QwenImageEditPlusModularPipeline').click(); + await expect(inspector.locator('h2')).toContainText('Task not uniquely captured'); + await expect(inspector.locator('h2')).not.toContainText('Text to image'); + const ambiguousMetadata = JSON.parse((await inspector.locator('pre').textContent())!); + expect(ambiguousMetadata.steps).toBe(40); + expect(ambiguousMetadata.resolvedExecutionInputs.graphTasks[0].task).toBeNull(); + const ambiguousStored = await page.evaluate(() => + window.__MODIFF_E2E__!.getState().studio.outputs.find((item) => item.id === 'ambiguous-edit-history'), + ); + expect(ambiguousStored!.mode).toBe('text_to_image'); + expect(ambiguousStored!.formSnapshot.mode).toBe('text_to_image'); if (reload === 0) await page.reload({ waitUntil: 'domcontentloaded' }); } await page.getByTestId('gallery-inspect-view').locator('h2').scrollIntoViewIfNeeded(); From d52a8ea6a0463c9519df29b3fa631289e2b1aba8 Mon Sep 17 00:00:00 2001 From: Sourav Das Date: Thu, 8 Oct 2026 15:38:05 +0530 Subject: [PATCH 012/440] Distinguish image sources in multi-model workflows --- docs/modiff-client-architecture.md | 9 + scripts/bundle-budget.mjs | 7 +- scripts/media-attachment.test.mjs | 223 ++++++++++++++++++ src/components/MediaAttachmentControls.tsx | 29 +-- src/workflow/mediaAttachmentSources.ts | 110 +++++++++ .../studio-mocked/mediaAttachmentFixture.tsx | 40 ++++ tests/e2e/studio-mocked/studio-mocked.spec.ts | 212 +++++++++++++++++ 7 files changed, 608 insertions(+), 22 deletions(-) create mode 100644 src/workflow/mediaAttachmentSources.ts create mode 100644 tests/e2e/studio-mocked/mediaAttachmentFixture.tsx diff --git a/docs/modiff-client-architecture.md b/docs/modiff-client-architecture.md index a6728e38..255aeb8e 100644 --- a/docs/modiff-client-architecture.md +++ b/docs/modiff-client-architecture.md @@ -271,6 +271,15 @@ for equal media roles, keeps masks separate from alpha-mask outputs, and reports missing/incompatible loader definitions. It does not touch existing documents, invent media for text-only routes, or infer a tensor from a path-only field. +The media attachment source picker retains the exact node/port values and graph +ordering. Friendly node/field labels add the nearest upstream declared model +repository or local-source context; remaining identical labels use visible branch +ordinals. Read-only Block projections resolve effective controls and exact output +bindings, with immutable instances cached. Unresolved retained crossings add no +display context and remain available for ordinary repair. This context is +presentation only: all existing source choices, stale-selection checks, task +planning, ownership and cycle validation remain unchanged. + Readiness also checks required file pickers in the selected executable closure. A connected loader output does not satisfy an empty required source file. Current registry declarations cover historical loader snapshots without modifying their diff --git a/scripts/bundle-budget.mjs b/scripts/bundle-budget.mjs index 3b1094b2..f6d79181 100644 --- a/scripts/bundle-budget.mjs +++ b/scripts/bundle-budget.mjs @@ -227,7 +227,12 @@ const MAX_DEFERRED_CHUNK_GZIP_BYTES = 64 * 1024; // deferred gzip bytes (267236 -> 267982 measured). Its role, source, literal // and cycle guards stay in the existing lazy authoring chunk and reuse nanoid. // Allow 768 bytes; startup, dependencies and both per-chunk caps stay fixed. -const MAX_DEFERRED_GZIP_BYTES = 248 * 1024 + 512 + 3328 + 128 + 256 + 128 + 384 + 8704 + 768; +// Ordinary media-source labels add upstream repository/local context and +// visible branch ordinals without changing ports or attachment authority. +// Measured deferred aggregate is 268690 bytes (+588 from 268102); reuse the +// existing Block projection and cache immutable instances. Allow 640 bytes; +// startup, dependencies and both per-chunk ceilings remain unchanged. +const MAX_DEFERRED_GZIP_BYTES = 248 * 1024 + 512 + 3328 + 128 + 256 + 128 + 384 + 8704 + 768 + 640; const STATIC_MODULE_REFERENCE = /\b(?:import(?=\s|["'{*])(?!\s*\()|export(?=\s|["'{*]))[^;]*?["'](\.\/[^"'?]+\.js)(?:\?v=[0-9a-f]{16})?["']/g; diff --git a/scripts/media-attachment.test.mjs b/scripts/media-attachment.test.mjs index 9312e661..81bc35f8 100644 --- a/scripts/media-attachment.test.mjs +++ b/scripts/media-attachment.test.mjs @@ -45,6 +45,229 @@ before(async () => { }); after(async () => server?.close()); +test('media source labels distinguish same-pipeline repositories and same-repository branches without changing ports', async () => { + const { mediaAttachmentSources } = await server.ssrLoadModule('/src/workflow/mediaAttachmentSources.ts'); + const starter = starters.find((s) => s.pipelineClass === 'QwenImageModularPipeline' && s.task === 'text_to_image'); + const branches = ['Qwen/first', 'Qwen/second', 'Qwen/first'].map((repo) => { + const graph = authoring.createOperationStarter(starter, { x: 0, y: 0 }); + graph.nodes.find((n) => n.data.action === 'ModelsLoader').data.params.repo_id.value = { + source: 'hub', + value: repo, + }; + return graph; + }); + const graph = { nodes: branches.flatMap((g) => g.nodes), edges: branches.flatMap((g) => g.edges) }; + const decoders = graph.nodes.filter((n) => n.data.action === 'DecodeLatents'); + const before = structuredClone(graph); + const options = mediaAttachmentSources(graph.nodes, graph.edges, 'image'); + const images = options.filter((o) => decoders.some((n) => JSON.parse(o.value)[0] === n.id)); + assert.deepEqual( + images.map((o) => o.value), + decoders.map((n) => JSON.stringify([n.id, 'images'])), + ); + assert.deepEqual( + images.map((o) => o.label), + [ + 'Decode Latents · Images · Qwen/first · Branch 1', + 'Decode Latents · Images · Qwen/second', + 'Decode Latents · Images · Qwen/first · Branch 2', + ], + ); + assert.deepEqual(graph, before, 'display context never changes model identity, settings or graph'); +}); + +test('media labels follow current wires and model edits while retaining shared and cyclic sources', async () => { + const { mediaAttachmentSources } = await server.ssrLoadModule('/src/workflow/mediaAttachmentSources.ts'); + const starter = starters.find((s) => s.pipelineClass === 'QwenImageModularPipeline' && s.task === 'text_to_image'); + const graph = authoring.createOperationStarter(starter, { x: 0, y: 0 }); + const owner = graph.nodes.find((n) => n.data.action === 'ModelsLoader'); + const decoder = graph.nodes.find((n) => n.data.action === 'DecodeLatents'); + owner.data.params.repo_id.value = { source: 'local', value: '/models/shared' }; + const selected = JSON.stringify([decoder.id, 'images']); + const read = () => mediaAttachmentSources(graph.nodes, graph.edges, 'image'); + assert.equal(read().find((o) => o.value === selected).label, 'Decode Latents · Images · Local: /models/shared'); + owner.data.params.repo_id.value = 'org/updated'; + assert.equal(read().find((o) => o.value === selected).label, 'Decode Latents · Images · org/updated'); + graph.edges.push({ id: 'cycle-for-review', source: decoder.id, target: owner.id }); + assert.ok( + read().some((o) => o.value === selected), + 'cycle checks remain the actual attachment planner responsibility', + ); + graph.edges = graph.edges.filter((e) => e.source !== owner.id); + assert.equal(read().find((o) => o.value === selected).label, 'Decode Latents · Images'); + graph.nodes = graph.nodes.filter((n) => n.id !== decoder.id); + assert.ok(!read().some((o) => o.value === selected), 'removed ports cannot remain selectable'); +}); + +test('Block output labels resolve effective model controls and exact declared and crossing ports', async () => { + const { mediaAttachmentSources } = await server.ssrLoadModule('/src/workflow/mediaAttachmentSources.ts'); + const schema = await server.ssrLoadModule('/src/studio/blockSchemaV2.ts'); + const runtime = await server.ssrLoadModule('/src/studio/blockRuntimeV2.ts'); + const crossing = await server.ssrLoadModule('/src/studio/blockCrossingConnectionsV2.ts'); + const starter = starters.find((s) => s.pipelineClass === 'QwenImageModularPipeline' && s.task === 'text_to_image'); + const graph = authoring.createOperationStarter(starter, { x: 0, y: 0 }); + const owner = graph.nodes.find((n) => n.data.action === 'ModelsLoader'); + owner.data.params.repo_id.value = { source: 'hub', value: 'org/original' }; + const decoder = graph.nodes.find((n) => n.data.action === 'DecodeLatents'); + const inner = { + nodes: graph.nodes.map((n) => ({ nodeId: n.id, nodeType: n.type, data: n.data })), + edges: graph.edges.map((e) => ({ + edgeId: e.id, + sourceNodeId: e.source, + sourcePortId: e.sourceHandle, + targetNodeId: e.target, + targetPortId: e.targetHandle, + })), + }; + const definition = { + schemaVersion: 2, + definitionId: 'user:source-label', + displayName: 'My image branch', + source: { kind: 'user' }, + graph: { ...inner, graphHash: schema.blockGraphHashV2(inner) }, + boundary: { + mode: 'explicit', + inputs: [], + outputs: [ + { + portId: 'rendered', + label: 'Result', + valueType: 'image', + required: false, + binding: { nodeId: decoder.id, fieldOrPortId: 'images' }, + }, + ], + }, + controls: [ + { + controlId: 'source-model', + label: 'Model', + binding: { nodeId: owner.id, fieldId: 'repo_id' }, + valueType: 'string', + order: 0, + }, + ], + suggestedInputs: [], + previews: [], + ownership: { kind: 'user', definitionMutable: true }, + }; + definition.contentHash = schema.blockDefinitionContentHashV2(definition); + const instance = schema.createBlockInstanceV2(definition, { + instanceId: 'source-label-block', + position: { x: 0, y: 0 }, + size: { width: 400, height: 500 }, + }); + const block = runtime.createBlockRootNodeV2(instance); + const before = structuredClone(block); + const handle = crossing.blockCrossingHandleV2({ direction: 'output', nodeId: decoder.id, fieldOrPortId: 'images' }); + const options = mediaAttachmentSources([block], [], 'image', { nodeId: block.id, handleId: handle }); + assert.deepEqual( + options.map((o) => o.value), + [JSON.stringify([block.id, 'rendered']), JSON.stringify([block.id, handle])], + ); + assert.ok(options.every((o) => o.label.startsWith('My image branch · ') && o.label.endsWith(' · org/original'))); + assert.deepEqual(block, before, 'Block definition, interface and values remain immutable'); + const changed = runtime.createBlockRootNodeV2( + runtime.setBlockInstanceValueV2(instance, 'source-model', { source: 'hub', value: 'org/edited' }), + ); + assert.ok(mediaAttachmentSources([changed], [], 'image').every((o) => o.label.endsWith(' · org/edited'))); + assert.ok( + mediaAttachmentSources([block], [], 'image').every((o) => o.label.endsWith(' · org/original')), + 'immutable-instance cache never retains another instance edit', + ); + const { useFlowStore } = await server.ssrLoadModule('/src/stores/useFlowStore.ts'); + const originalState = useFlowStore.getState(); + const originalFetch = globalThis.fetch; + let requests = 0; + globalThis.fetch = async () => { + requests++; + throw new Error('No network in imported-edge regression'); + }; + try { + const target = { + id: 'retained-input-target', + type: 'custom', + position: { x: 800, y: 0 }, + data: { + module: 'custom.Values', + action: 'Input', + label: 'Input', + params: { input: { type: 'str', display: 'input' } }, + }, + }; + const edge = { + id: 'retained-input-as-output', + source: block.id, + sourceHandle: crossing.blockCrossingHandleV2({ direction: 'input', nodeId: owner.id, fieldOrPortId: 'repo_id' }), + target: target.id, + targetHandle: 'input', + }; + useFlowStore.getState().replaceGraph({ nodes: [block, target], edges: [edge] }, { clearRemovedCache: false }); + const imported = useFlowStore.getState(); + assert.equal(imported.edges[0].id, edge.id, 'ordinary import retains the broken wire for explicit repair'); + let sources; + assert.doesNotThrow(() => { + sources = mediaAttachmentSources(imported.nodes, imported.edges, 'image'); + }, 'unresolved display context must not hide valid source choices'); + assert.deepEqual( + sources.map((o) => o.value), + [JSON.stringify([block.id, 'rendered'])], + ); + assert.throws( + () => crossing.blockConnectionTargetsV2(imported.nodes[0], edge.sourceHandle, 'output'), + /wrong direction/, + 'the original endpoint authority still rejects a wrong-direction wire', + ); + assert.throws( + () => + mediaAttachmentSources(imported.nodes, imported.edges, 'image', { + nodeId: block.id, + handleId: crossing.blockCrossingHandleV2({ + direction: 'output', + nodeId: owner.id, + fieldOrPortId: 'repo_id', + }), + }), + /missing or has changed direction/, + 'source enumeration must not swallow an invalid selected socket', + ); + assert.equal(requests, 0); + } finally { + useFlowStore.setState(originalState); + globalThis.fetch = originalFetch; + } +}); + +test('audio and custom source titles retain order, types, visibility and opaque selector safety', async () => { + const { mediaAttachmentSources } = await server.ssrLoadModule('/src/workflow/mediaAttachmentSources.ts'); + const data = (id, label, params) => ({ + id, + type: 'custom', + position: { x: 0, y: 0 }, + data: { module: 'custom.Media', action: 'Source', label, params }, + }); + const nodes = [ + data('a', 'My recording', { + clip: { type: ['audio', 'image'], display: 'output', label: 'Clip' }, + secret: { type: 'audio', display: 'output', hidden: true }, + stopped: { type: 'audio', display: 'output', disabled: true }, + }), + data('b', 'My recording', { clip: { type: 'audio', display: 'output', label: 'Clip' } }), + data('metadata', 'Metadata', { + repo_id: { display: 'modelselect', value: { source: 'hub', value: { token: 'never-stringify' } } }, + }), + ]; + const edges = [{ id: 'metadata', source: 'metadata', target: 'a' }]; + assert.deepEqual(mediaAttachmentSources(nodes, edges, 'audio'), [ + { value: JSON.stringify(['a', 'clip']), label: 'My recording · Clip · Branch 1' }, + { value: JSON.stringify(['b', 'clip']), label: 'My recording · Clip · Branch 2' }, + ]); + assert.deepEqual( + mediaAttachmentSources(nodes, edges, 'image').map((o) => o.value), + [JSON.stringify(['a', 'clip'])], + ); +}); + const registry = { 'modules.Image.Load': { type: 'custom', diff --git a/src/components/MediaAttachmentControls.tsx b/src/components/MediaAttachmentControls.tsx index 2f6c5cd4..dadc404f 100644 --- a/src/components/MediaAttachmentControls.tsx +++ b/src/components/MediaAttachmentControls.tsx @@ -1,4 +1,4 @@ -import { useEffect, useRef, useState } from 'react'; +import { useEffect, useMemo, useRef, useState } from 'react'; import { useNodesStore } from '../stores/useNodeStore'; import { useFlowStore, type CustomNodeType } from '../stores/useFlowStore'; import { assertWorkflowOperationContext, captureWorkflowOperationContext } from '../stores/useStudioStore'; @@ -13,7 +13,7 @@ import { requestOperationStarter } from '../workflow/operationStarterRequest'; import { commitOperationGraph, operationGraphSignature } from '../workflow/operationGraphTransaction'; import { ModiffButton, ModiffDisclosure, ModiffFieldShell, ModiffSelect } from '../ui'; import { formatRequestError } from '../utils/requestJson'; -import { nodeConnectorParam, nodeConnectorParams } from '../studio/nodeConnectorResolution'; +import { mediaAttachmentSources } from '../workflow/mediaAttachmentSources'; export default function MediaAttachmentControls({ node, @@ -29,6 +29,7 @@ export default function MediaAttachmentControls({ const operations = useNodesStore((state) => state.operationContracts); const support = useNodesStore((state) => state.pipelineSupport); const nodes = useFlowStore((state) => state.nodes); + const edges = useFlowStore((state) => state.edges); const [selected, setSelected] = useState(''); const [sourceKey, setSourceKey] = useState( initialSource ? JSON.stringify([initialSource.nodeId, initialSource.handleId]) : '', @@ -46,26 +47,12 @@ export default function MediaAttachmentControls({ choices.find((item) => item.key === selected) ?? choices.find((item) => item.task === hint?.operation.task) ?? choices[0]; + const kind = choice?.kind; + const sources = useMemo( + () => (kind ? mediaAttachmentSources(nodes, edges, kind, initialSource) : []), + [nodes, edges, kind, initialSource], + ); if (!choice || (node.parentId && !node.data.blockProjectionOwnerId)) return null; - const sources = nodes.flatMap((candidate) => { - const params = { ...nodeConnectorParams(candidate) }; - if (initialSource?.nodeId === candidate.id) { - const initial = nodeConnectorParam(candidate, initialSource.handleId); - if (initial) params[initialSource.handleId] = initial; - } - return Object.entries(params) - .filter( - ([, field]) => - field.display === 'output' && - !field.hidden && - !field.disabled && - (Array.isArray(field.type) ? field.type : [field.type]).includes(choice.kind), - ) - .map(([handle, field]) => ({ - value: JSON.stringify([candidate.id, handle]), - label: `${candidate.data.label} · ${field.label ?? handle}`, - })); - }); async function attach() { if (!choice || pending.current) return; const controller = new AbortController(); diff --git a/src/workflow/mediaAttachmentSources.ts b/src/workflow/mediaAttachmentSources.ts new file mode 100644 index 00000000..26647111 --- /dev/null +++ b/src/workflow/mediaAttachmentSources.ts @@ -0,0 +1,110 @@ +import type { Edge } from '@xyflow/react'; +import type { CustomNodeType } from '../stores/useFlowStore'; +import { nodeConnectorParam, nodeConnectorParams } from '../studio/nodeConnectorResolution'; +import { blockOperationGraphV2, blockProjectionNodeIdV2 } from '../studio/blockRuntimeV2'; +import { blockConnectionTargetsV2 } from '../studio/blockCrossingConnectionsV2'; +import { operationOwnsModel } from './operationContracts'; +import { nodeDisplayLabel } from './nodePresentation'; + +const blockViews = new WeakMap>(); + +/** Read-only display context, never an ownership or connection decision. */ +function sourceContexts(nodes: CustomNodeType[], edges: Edge[]) { + const byId = new Map(nodes.map((node) => [node.id, node])); + const incoming = new Map(); + const add = (source: string, target: string) => incoming.set(target, [...(incoming.get(target) ?? []), source]); + const endpoints = (id: string, handle: string | null | undefined, direction: 'input' | 'output') => { + const node = byId.get(id); + if (!node?.data.blockInstanceV2 || !handle) return [id]; + try { + return blockConnectionTargetsV2(node, handle, direction).map((binding) => + blockProjectionNodeIdV2(node.id, binding.nodeId), + ); + } catch { + // Retained broken wires have no display context; attachment validation still owns repair. + return []; + } + }; + for (const node of nodes) { + if (!node.data.blockInstanceV2) continue; + const instance = node.data.blockInstanceV2; + const view = blockViews.get(instance) ?? blockOperationGraphV2(instance); + blockViews.set(instance, view); + for (const child of view.nodes) byId.set(child.id, child); + for (const edge of view.edges) add(edge.source, edge.target); + } + for (const edge of edges) + for (const source of endpoints(edge.source, edge.sourceHandle, 'output')) + for (const target of endpoints(edge.target, edge.targetHandle, 'input')) add(source, target); + return (nodeId: string, handle: string) => { + let next = endpoints(nodeId, handle, 'output'); + const seen = new Set(); + while (next.length) { + const current = next.filter((id) => !seen.has(id)); + current.forEach((id) => seen.add(id)); + const context = new Set(); + for (const id of current) { + const node = byId.get(id); + if (!node) continue; + for (const key of ['repo_id', 'model_id']) { + const field = node.data.params[key]; + if ( + !field || + field.isConnected || + (!operationOwnsModel(node.data.operationAuthoring?.operation) && field.display !== 'modelselect') + ) + continue; + const value = field.value ?? field.default; + if (typeof value === 'string' && value) context.add(value); + else if (value && typeof value === 'object' && 'source' in value && 'value' in value) { + if ((value.source === 'hub' || value.source === 'local') && typeof value.value === 'string' && value.value) + context.add(value.source === 'local' ? `Local: ${value.value}` : value.value); + } + } + } + if (context.size) return [...context].join(', '); + next = current.flatMap((id) => incoming.get(id) ?? []); + } + return ''; + }; +} + +export function mediaAttachmentSources( + nodes: CustomNodeType[], + edges: Edge[], + kind: 'image' | 'audio', + initialSource?: { nodeId: string; handleId: string }, +) { + const context = sourceContexts(nodes, edges); + const sources = nodes.flatMap((candidate) => { + const params = { ...nodeConnectorParams(candidate) }; + if (initialSource?.nodeId === candidate.id) { + const initial = nodeConnectorParam(candidate, initialSource.handleId); + if (initial) params[initialSource.handleId] = initial; + } + return Object.entries(params) + .filter( + ([, field]) => + field.display === 'output' && + !field.hidden && + !field.disabled && + (Array.isArray(field.type) ? field.type : [field.type]).includes(kind), + ) + .map(([handle, field]) => { + const model = context(candidate.id, handle); + return { + value: JSON.stringify([candidate.id, handle]), + label: `${nodeDisplayLabel(candidate.data)} · ${field.label ?? handle}${model ? ` · ${model}` : ''}`, + }; + }); + }); + const counts = new Map(); + for (const source of sources) counts.set(source.label, (counts.get(source.label) ?? 0) + 1); + const ordinals = new Map(); + return sources.map((source) => { + if (counts.get(source.label) === 1) return source; + const ordinal = (ordinals.get(source.label) ?? 0) + 1; + ordinals.set(source.label, ordinal); + return { ...source, label: `${source.label} · Branch ${ordinal}` }; + }); +} diff --git a/tests/e2e/studio-mocked/mediaAttachmentFixture.tsx b/tests/e2e/studio-mocked/mediaAttachmentFixture.tsx new file mode 100644 index 00000000..9edfaf46 --- /dev/null +++ b/tests/e2e/studio-mocked/mediaAttachmentFixture.tsx @@ -0,0 +1,40 @@ +import { createRoot } from 'react-dom/client'; +import MediaAttachmentControls from '../../../src/components/MediaAttachmentControls'; +import { useFlowStore } from '../../../src/stores/useFlowStore'; +import { ModiffButton } from '../../../src/ui'; + +// eslint-disable-next-line react-refresh/only-export-components -- Isolated mounted-control test entry point. +function MediaAttachmentProbe({ + ownerId, + otherOwnerId, + sourceId, +}: { + ownerId: string; + otherOwnerId: string; + sourceId: string; +}) { + const owner = useFlowStore((state) => state.nodes.find((node) => node.id === ownerId)!); + return ( +
+ + + useFlowStore + .getState() + .setParamWithHistory(otherOwnerId, 'repo_id', { source: 'hub', value: 'Qwen/Qwen-Image' }) + } + > + Use the same source model + + useFlowStore.getState().removeNodes(sourceId)}>Remove selected source + useFlowStore.getState().undo()}>Undo source edit + useFlowStore.getState().redo()}>Redo source edit +
+ ); +} + +export function mountMediaAttachmentProbe(ownerId: string, otherOwnerId: string, sourceId: string) { + const host = document.createElement('div'); + document.body.appendChild(host); + createRoot(host).render(); +} diff --git a/tests/e2e/studio-mocked/studio-mocked.spec.ts b/tests/e2e/studio-mocked/studio-mocked.spec.ts index aa93e9d5..1970206f 100644 --- a/tests/e2e/studio-mocked/studio-mocked.spec.ts +++ b/tests/e2e/studio-mocked/studio-mocked.spec.ts @@ -29968,3 +29968,215 @@ for (const templateId of [ await page.waitForFunction(() => Boolean(window.__MODIFF_E2E__)); await expect.poll(api).toEqual(before); }); + +test('mounted media source picker distinguishes model branches and follows edits, removal and Undo', async ({ + page, +}) => { + page.setDefaultTimeout(15_000); + await ensureFrontend(); + const python = + process.env.MODIFF_BACKEND_PYTHON || + path.join(BACKEND_ROOT, '.venv', process.platform === 'win32' ? 'Scripts/python.exe' : 'bin/python'); + const script = path.join(CLIENT_ROOT, 'scripts', 'operation-starter-fixtures.py'); + const args = [script, '--selection', 'QwenImageModularPipeline', 'image_to_image']; + const { stdout } = await promisify(execFile)( + process.platform === 'win32' ? python : path.join(BACKEND_ROOT, 'scripts', 'with-runtime-env.sh'), + process.platform === 'win32' ? args : [python, ...args], + { + cwd: BACKEND_ROOT, + env: { ...process.env, PYTHONDONTWRITEBYTECODE: '1' }, + timeout: 90_000, + maxBuffer: 32 * 1024 * 1024, + }, + ); + const [starter] = JSON.parse(stdout) as OperationStarter[]; + expect(starter!.task).toBe('image_to_image'); + await page.goto(`${FRONTEND_URL}/control-state-matrix.html`, { waitUntil: 'domcontentloaded' }); + const ids = await page.evaluate(async (starter) => { + const [ + { useFlowStore }, + { useNodesStore }, + { createOperationStarter }, + { mountMediaAttachmentProbe }, + schema, + runtime, + crossing, + ] = await Promise.all([ + import('/src/stores/useFlowStore.ts'), + import('/src/stores/useNodeStore.ts'), + import('/src/workflow/operationAuthoring.ts'), + import('/tests/e2e/studio-mocked/mediaAttachmentFixture.tsx'), + import('/src/studio/blockSchemaV2.ts'), + import('/src/studio/blockRuntimeV2.ts'), + import('/src/studio/blockCrossingConnectionsV2.ts'), + ]); + const branches = ['Qwen/Qwen-Image', 'Qwen/Qwen-Image-2512', 'Qwen/Qwen-Image'].map((repo) => { + const graph = createOperationStarter(starter, { x: 0, y: 0 }); + graph.nodes.find((node) => node.data.action === 'ModelsLoader')!.data.params.repo_id!.value = { + source: 'hub', + value: repo, + }; + return graph; + }); + const owners = branches.map((graph) => graph.nodes.find((node) => node.data.action === 'ModelsLoader')!.id); + const decoders = branches.map((graph) => graph.nodes.find((node) => node.data.action === 'DecodeLatents')!.id); + useNodesStore.setState({ + operationContracts: starter.nodes.map((node) => node.operation), + pipelineSupport: [ + { + pipelineClass: starter.pipelineClass, + coverage: 'declared', + reason: 'Actual backend starter contracts for this isolated picker regression.', + equivalentTo: [], + upstreamTasks: [], + tasks: [ + { + task: starter.task, + execution: 'adapter', + decomposition: 'stages', + operationIds: starter.nodes.map((node) => node.operation.operationId), + executionProfileIds: [], + dependencies: 'ready', + runtimeRequirements: [], + }, + ], + }, + ], + }); + const saved = createOperationStarter(starter, { x: 0, y: 0 }); + const savedOwner = saved.nodes.find((node) => node.data.action === 'ModelsLoader')!; + savedOwner.data.params.repo_id!.value = { source: 'hub', value: 'Qwen/Qwen-Image-2512' }; + const savedDecoder = saved.nodes.find((node) => node.data.action === 'DecodeLatents')!; + const inner = { + nodes: saved.nodes.map((node) => ({ nodeId: node.id, nodeType: node.type!, data: node.data })), + edges: saved.edges.map((edge) => ({ + edgeId: edge.id, + sourceNodeId: edge.source, + sourcePortId: edge.sourceHandle!, + targetNodeId: edge.target, + targetPortId: edge.targetHandle!, + })), + }; + const definition = { + schemaVersion: 2 as const, + definitionId: 'user:media-label-import', + displayName: 'Saved image branch', + source: { kind: 'user' as const }, + graph: { ...inner, graphHash: schema.blockGraphHashV2(inner) }, + boundary: { + mode: 'explicit' as const, + inputs: [], + outputs: [ + { + portId: 'rendered', + label: 'Result', + valueType: 'image', + required: false, + binding: { nodeId: savedDecoder.id, fieldOrPortId: 'images' }, + }, + ], + }, + controls: [], + suggestedInputs: [], + previews: [], + ownership: { kind: 'user' as const, definitionMutable: true }, + }; + const block = runtime.createBlockRootNodeV2( + schema.createBlockInstanceV2( + { ...definition, contentHash: schema.blockDefinitionContentHashV2(definition) }, + { instanceId: 'media-label-import-block', position: { x: 0, y: 800 }, size: { width: 400, height: 500 } }, + ), + ); + const broken = { + id: 'retained-input-as-output', + source: block.id, + sourceHandle: crossing.blockCrossingHandleV2({ + direction: 'input', + nodeId: savedOwner.id, + fieldOrPortId: 'repo_id', + }), + target: 'retained-input-target', + targetHandle: 'input', + }; + useFlowStore.getState().replaceGraph( + { + nodes: [ + ...branches.flatMap((graph) => graph.nodes), + block, + { + id: broken.target, + type: 'custom', + position: { x: 900, y: 800 }, + data: { + module: 'custom.Values', + action: 'Input', + type: 'custom', + category: 'test', + label: 'Input', + params: { input: { type: 'str', display: 'input' } }, + }, + }, + ], + edges: [...branches.flatMap((graph) => graph.edges), broken], + viewport: { x: 0, y: 0, zoom: 1 }, + }, + { clearRemovedCache: false }, + ); + useFlowStore.getState().resetHistory(); + mountMediaAttachmentProbe(owners[0]!, owners[1]!, decoders[1]!); + return { owners, decoders, brokenEdgeId: broken.id }; + }, starter!); + const probe = page.getByTestId('mounted-media-attachment'); + const picker = probe.getByRole('button', { name: 'Media input source', exact: true }); + await picker.click(); + const first = 'Decode Latents · Images · Qwen/Qwen-Image · Branch 1'; + const second = 'Decode Latents · Images · Qwen/Qwen-Image-2512'; + const third = 'Decode Latents · Images · Qwen/Qwen-Image · Branch 2'; + await expect(page.getByRole('option', { name: first, exact: true })).toBeVisible(); + await expect(page.getByRole('option', { name: third, exact: true })).toBeVisible(); + await expect( + page.getByRole('option', { name: 'Saved image branch · Result · Qwen/Qwen-Image-2512', exact: true }), + ).toBeVisible(); + expect( + await page.evaluate( + async (id) => + (await import('/src/stores/useFlowStore.ts')).useFlowStore.getState().edges.some((edge) => edge.id === id), + ids.brokenEdgeId, + ), + ).toBe(true); + await page.getByRole('option', { name: second, exact: true }).click(); + await expect(picker).toHaveText(second); + await probe.getByRole('button', { name: 'Use the same source model', exact: true }).click(); + await expect(picker).toHaveText(third); + await picker.click(); + await expect( + page.getByRole('option', { name: 'Decode Latents · Images · Qwen/Qwen-Image · Branch 3', exact: true }), + ).toBeVisible(); + await page.keyboard.press('Escape'); + await probe.getByRole('button', { name: 'Remove selected source', exact: true }).click(); + await expect(picker).toHaveText('Add Load Image'); + let starterRequests = 0; + await page.route('**/operations/starter*', (route) => { + starterRequests += 1; + return route.abort(); + }); + await probe.getByRole('button', { name: 'Attach input', exact: true }).click(); + await expect(probe).toContainText( + 'The selected source is no longer compatible. Choose a source for this input role.', + ); + expect(starterRequests).toBe(0); + await probe.getByRole('button', { name: 'Undo source edit', exact: true }).click(); + await expect(picker).toHaveText(third); + await probe.getByRole('button', { name: 'Undo source edit', exact: true }).click(); + await expect(picker).toHaveText(second); + await probe.getByRole('button', { name: 'Redo source edit', exact: true }).click(); + await expect(picker).toHaveText(third); + expect( + await page.evaluate( + async (id) => + (await import('/src/stores/useFlowStore.ts')).useFlowStore.getState().nodes.some((node) => node.id === id), + ids.decoders[1]!, + ), + ).toBe(true); + await page.screenshot({ path: test.info().outputPath('media-source-model-branches.png'), animations: 'disabled' }); +}); From 1171fc723968afa6a0782ce1a45dc34d0749ac0a Mon Sep 17 00:00:00 2001 From: Sourav Das Date: Thu, 8 Oct 2026 16:03:25 +0530 Subject: [PATCH 013/440] Pair client CI with the reviewed ROCm workflow backend --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 4cc3b1cf..37342861 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -33,7 +33,7 @@ jobs: with: repository: sdevil7th/MoDiff # Paired guidance, component-bundle and native masked-template contracts. - ref: 2197bec10c1c56805a5858efa9a8ecde03991ba3 + ref: fec0f6577dac3d45bee6462147e75dbdc895bea4 path: MoDiff persist-credentials: false - name: Verify the pinned backend supports native setup From dff82ee0393b101c04246a749741c4c661749716 Mon Sep 17 00:00:00 2001 From: Sourav Das Date: Thu, 8 Oct 2026 18:38:26 +0530 Subject: [PATCH 014/440] Check client against processor-compatible backend --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 37342861..ac2db94e 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -33,7 +33,7 @@ jobs: with: repository: sdevil7th/MoDiff # Paired guidance, component-bundle and native masked-template contracts. - ref: fec0f6577dac3d45bee6462147e75dbdc895bea4 + ref: 82d8a0bb51baef5aa02239ff5c6dad425527ccc2 path: MoDiff persist-credentials: false - name: Verify the pinned backend supports native setup From 579472eb2b6865024c0993eb11c3d94c3901630e Mon Sep 17 00:00:00 2001 From: Sourav Das Date: Thu, 8 Oct 2026 21:47:18 +0530 Subject: [PATCH 015/440] Preserve Gallery image collections in full-size previews --- scripts/media-viewer.test.mjs | 60 +++++++++++++ src/components/OutputGalleryPanel.tsx | 6 +- src/utils/mediaViewer.ts | 13 +++ tests/e2e/studio-mocked/studio-mocked.spec.ts | 90 +++++++++++++++++++ 4 files changed, 166 insertions(+), 3 deletions(-) diff --git a/scripts/media-viewer.test.mjs b/scripts/media-viewer.test.mjs index 426d54c3..f4bd11f2 100644 --- a/scripts/media-viewer.test.mjs +++ b/scripts/media-viewer.test.mjs @@ -413,3 +413,63 @@ test('runtime optimization contracts fail closed and documentation URLs allow on /^https:/, ); }); + +test('Gallery collection full-size previews retain recorded URL order and selected item identity', () => { + const urls = [ + '/file?file=%40data%2Fstudio%2Foutputs%2Flayer0.webp', + '/file?file=%40data%2Fstudio%2Foutputs%2Flayer1.webp', + '/file?file=%40data%2Fstudio%2Foutputs%2Flayer2.webp', + ]; + const opener = mediaViewer.outputImageLightboxOpener({ + url: urls[2], + displayType: 'image_collection', + mediaItems: urls.map((url, index) => ({ url, index: 2 - index })), + }); + assert.deepEqual( + opener.images, + urls.map((url) => 'http://127.0.0.1:5191' + url), + ); + assert.equal(opener.currentIndex, 2); + assert.equal(opener.dataType, 'url'); + assert.equal(opener.mimeType, null); +}); + +test('Gallery collection selection follows canonical URL filtering without admitting unsafe schemes', () => { + const urls = [ + 'javascript:alert(1)', + '/file?file=first.webp', + 'data:image/svg+xml,', + ' /file?file=selected.webp ', + 'file:///tmp/untrusted.png', + 'blob:http://127.0.0.1:5191/untrusted', + 'data:text/html,', + 'data:image/png;base64,AAAA', + ]; + const opener = mediaViewer.outputImageLightboxOpener({ + url: ' /file?file=selected.webp ', + displayType: 'image_collection', + mediaItems: urls.map((url, index) => ({ url, index })), + }); + assert.deepEqual(opener.images, [ + 'http://127.0.0.1:5191/file?file=first.webp', + 'http://127.0.0.1:5191/file?file=selected.webp', + 'data:image/png;base64,AAAA', + ]); + assert.equal(opener.currentIndex, 1); +}); + +test('Gallery single images and empty collections retain the ordinary one-image fallback', () => { + const url = '/file?file=single.webp'; + for (const output of [ + { url, displayType: 'image', mediaItems: [{ url: '/file?file=other.webp', index: 0 }] }, + { url, displayType: 'image_collection', mediaItems: [] }, + { url, displayType: 'image_collection' }, + ]) { + assert.deepEqual(mediaViewer.outputImageLightboxOpener(output), { + images: ['http://127.0.0.1:5191/file?file=single.webp'], + currentIndex: 0, + dataType: 'url', + mimeType: null, + }); + } +}); diff --git a/src/components/OutputGalleryPanel.tsx b/src/components/OutputGalleryPanel.tsx index 692815fb..0873fa31 100644 --- a/src/components/OutputGalleryPanel.tsx +++ b/src/components/OutputGalleryPanel.tsx @@ -43,7 +43,7 @@ import { } from '../studio/workflowPackage'; import { ImageFrame, ModiffBadge, ModiffButton, ModiffChip, ModiffFileInput, ModiffIconButton } from '../ui'; import { cx } from '../utils/classNames'; -import { imageUrlLightboxOpener } from '../utils/mediaViewer'; +import { imageUrlLightboxOpener, outputImageLightboxOpener } from '../utils/mediaViewer'; type GalleryView = 'grid' | 'inspect' | 'compare' | 'lineage'; type GalleryAssetKind = 'generated' | 'imported'; @@ -510,7 +510,7 @@ export default function OutputGalleryPanel({ modalView = false }: { modalView?: setSelectedOutputIds([output.id]); setView('inspect'); } else { - setLightboxOpener(imageUrlLightboxOpener([output.url])); + setLightboxOpener(outputImageLightboxOpener(output)); } }} > @@ -655,7 +655,7 @@ export default function OutputGalleryPanel({ modalView = false }: { modalView?: setSelectedOutputIds([output.id]); setView('inspect'); } else { - setLightboxOpener(imageUrlLightboxOpener([output.url])); + setLightboxOpener(outputImageLightboxOpener(output)); } }} /> diff --git a/src/utils/mediaViewer.ts b/src/utils/mediaViewer.ts index 40dd50dd..74be3bc3 100644 --- a/src/utils/mediaViewer.ts +++ b/src/utils/mediaViewer.ts @@ -1,10 +1,23 @@ import type { LightboxOpener, MediaViewerItem } from '../stores/useSettingsStore'; +import type { StudioOutput } from '../studio/types'; +import { sanitizeImageArtifactUrl } from './imageArtifacts'; /** Resolved output URLs must not use the raw-base64 node image representation. */ export function imageUrlLightboxOpener(images: string[], currentIndex = 0): NonNullable { return { images, currentIndex, dataType: 'url', mimeType: null }; } +/** Open a recorded image collection in its existing order after canonical URL filtering. */ +export function outputImageLightboxOpener(output: Pick) { + const candidates = + output.displayType === 'image_collection' && output.mediaItems?.length + ? output.mediaItems.map((item) => item.url) + : [output.url]; + const images = candidates.map(sanitizeImageArtifactUrl).filter((image): image is string => image !== null); + const selected = sanitizeImageArtifactUrl(output.url); + return imageUrlLightboxOpener(images, Math.max(0, images.indexOf(selected ?? ''))); +} + export const MEDIA_PLACEHOLDER_DATA_URL = "data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 2 2'%3E%3Cpath fill='%2320252d' d='M0 0h2v2H0z'/%3E%3Cpath fill='%23343b47' d='M0 0h1v1H0zm1 1h1v1H1z'/%3E%3C/svg%3E"; diff --git a/tests/e2e/studio-mocked/studio-mocked.spec.ts b/tests/e2e/studio-mocked/studio-mocked.spec.ts index 1970206f..b6372142 100644 --- a/tests/e2e/studio-mocked/studio-mocked.spec.ts +++ b/tests/e2e/studio-mocked/studio-mocked.spec.ts @@ -30180,3 +30180,93 @@ test('mounted media source picker distinguishes model branches and follows edits ).toBe(true); await page.screenshot({ path: test.info().outputPath('media-source-model-branches.png'), animations: 'disabled' }); }); + +test('mocked Gallery opens every ordered collection image before and after history reload', async ({ page }) => { + await ensureFrontend(); + await installMockRoutes(page); + const mediaPaths = [0, 1, 2].map((index) => `@data/studio/outputs/ordered-layer-${index}.webp`); + const mediaItems = mediaPaths.map((backendPath, index) => ({ + index, + url: `/file?file=${encodeURIComponent(backendPath)}`, + backendPath, + displayType: 'image', + label: `Layer ${index + 1}`, + taskId: 'ordered-layers-task', + clientRunId: 'ordered-layers-client', + runInputHash: 'ordered-layers-input', + attemptIndex: 0, + width: 2, + height: 2, + })); + const output = { + id: 'ordered-layers-output', + url: mediaItems[0]!.url, + displayType: 'image_collection', + modelType: 'QwenImageLayeredModularPipeline', + modelLabel: 'Ordered collection', + mode: 'layer_decomposition', + prompt: 'Keep all three recorded layers.', + taskId: 'ordered-layers-task', + clientRunId: 'ordered-layers-client', + runInputHash: 'ordered-layers-input', + nodeId: 'preview', + attemptIndex: 0, + createdAt: 1, + mediaItems, + }; + let graphPosts = 0; + page.on('request', (request) => { + if (new URL(request.url()).pathname === '/graph' && request.method() === 'POST') graphPosts += 1; + }); + await page.route('**/studio_outputs**', (route) => { + expect(route.request().method()).toBe('GET'); + return route.fulfill({ + json: { error: false, outputs: [output], revision: 1 }, + }); + }); + await page.goto(FRONTEND_URL, { waitUntil: 'domcontentloaded' }); + for (let reload = 0; reload < 2; reload += 1) { + await page.waitForFunction(() => Boolean(window.__MODIFF_E2E__)); + await dismissTaskLauncher(page); + await page.getByTestId('topbar-gallery').click(); + const gallery = page.getByTestId('gallery-panel'); + await expect(gallery.getByTestId('gallery-output-0').getByRole('img')).toHaveCount(3); + // Both existing full-size entry points must preserve the collection. + if (reload === 0) await gallery.getByTestId('gallery-open-0').click(); + else await gallery.getByRole('button', { name: /^Root \| Ordered collection \|/ }).click(); + for (let index = 0; index < 3; index += 1) { + const dialog = page.getByRole('dialog', { + name: `Image ${index + 1} of 3`, + exact: true, + }); + await expect(dialog).toHaveCount(1); + await expect(dialog.getByRole('heading', { name: `Image ${index + 1} of 3`, exact: true })).toBeVisible(); + const image = dialog.locator('img.max-h-full.max-w-full'); + await expect(image).toHaveCount(1); + await expect(image).toBeVisible(); + await expect + .poll(() => + image.evaluate((element: HTMLImageElement) => ({ + file: new URL(element.currentSrc).searchParams.get('file'), + width: element.naturalWidth, + height: element.naturalHeight, + })), + ) + .toEqual({ file: mediaPaths[index], width: 2, height: 2 }); + await expect(dialog.getByRole('button', { name: /^Show image [123]$/ })).toHaveCount(3); + if (index < 2) await dialog.getByRole('button', { name: 'Next image', exact: true }).click(); + } + await page.getByRole('button', { name: 'Previous image', exact: true }).click(); + await expect(page.getByRole('dialog', { name: 'Image 2 of 3', exact: true })).toHaveCount(1); + await expect(page.getByRole('heading', { name: 'Image 2 of 3', exact: true })).toBeVisible(); + await page.getByRole('button', { name: 'Show image 1', exact: true }).click(); + await expect(page.getByRole('dialog', { name: 'Image 1 of 3', exact: true })).toHaveCount(1); + await expect(page.getByRole('heading', { name: 'Image 1 of 3', exact: true })).toBeVisible(); + await page.getByRole('button', { name: 'Close preview', exact: true }).click(); + expect((await page.evaluate(() => window.__MODIFF_E2E__!.getState().studio.outputs[0]))!.mediaItems).toMatchObject( + mediaItems, + ); + if (reload === 0) await page.reload({ waitUntil: 'domcontentloaded' }); + } + expect(graphPosts).toBe(0); +}); From bfad8134b82f6b77affbd10599a71740c578cae1 Mon Sep 17 00:00:00 2001 From: Sourav Das Date: Fri, 9 Oct 2026 03:06:11 +0530 Subject: [PATCH 016/440] Refresh stable registered Block routes and pair backend CI Keep the 17 reviewed Block routes usable with the current stable runtime contracts. Cover ordinary model/task Apply, connected media fan-out and preserved authored prompts. Update the Transformers admission fixture and retain rejection of the old Git-runtime identity. Pair CI with backend5f38a40af6d9f3befbd4c744a4700ab9865e323d using the existing native uv CPU setup. Full frontend check and unit suite passed; the matching backend passed5,291 tests and11,331 subtests. The bundled client and all1,934 paired source files matched the reviewed versions before publication. --- .github/workflows/ci.yml | 4 +- scripts/hugging-face-node-library.test.mjs | 18 ++- .../operation-modification-matrix.test.mjs | 97 ++++++++++++++++ src/studio/registeredBlockV2Routes.ts | 104 +++++++++--------- 4 files changed, 166 insertions(+), 57 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index ac2db94e..3e08cec3 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -32,8 +32,8 @@ jobs: uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4 with: repository: sdevil7th/MoDiff - # Paired guidance, component-bundle and native masked-template contracts. - ref: 82d8a0bb51baef5aa02239ff5c6dad425527ccc2 + # Paired stable runtime, workflow bindings and registered Block contracts. + ref: 5f38a40af6d9f3befbd4c744a4700ab9865e323d path: MoDiff persist-credentials: false - name: Verify the pinned backend supports native setup diff --git a/scripts/hugging-face-node-library.test.mjs b/scripts/hugging-face-node-library.test.mjs index bdbf07f7..8b135525 100644 --- a/scripts/hugging-face-node-library.test.mjs +++ b/scripts/hugging-face-node-library.test.mjs @@ -1300,7 +1300,7 @@ function payloadWithTransformersTextCluster() { components: [ { name: 'model_runtime', - type: 'modiff.base-model-runtime@sha256:cc281f8fbae5093d68b4dd963a8f80e32b1589991c8cda97a3ec0f26c9e700db', + type: 'modiff.base-model-runtime@sha256:98449d8d9faca739ce5914f6c5ce25cf75b3fabde10c90a1c2818574f362adeb', creationMethod: 'base_installation', reuseKey: ['model_runtime'], }, @@ -1334,7 +1334,7 @@ function payloadWithTransformersTextCluster() { url: '', }, }, - contentHash: 'sha256:ec00d85eae98ff645e1ead4726c55904a9360513b5e21bdc2473fa1a2720a310', + contentHash: 'sha256:af0665a30de76d2a10de99d3fc64ede348efcde4620eb7972e6696673722ed33', }; body.providers = ['diffusers', 'transformers']; body.definitions.push(transformerDefinition); @@ -3467,10 +3467,22 @@ test('Transformers Blocks insert and materialize their exact generic task graph' assert.equal(transformersSection.entries[0].insertable, true); assert.deepEqual(definition.components[0], { name: 'model_runtime', - type: 'modiff.base-model-runtime@sha256:cc281f8fbae5093d68b4dd963a8f80e32b1589991c8cda97a3ec0f26c9e700db', + type: 'modiff.base-model-runtime@sha256:98449d8d9faca739ce5914f6c5ce25cf75b3fabde10c90a1c2818574f362adeb', creationMethod: 'base_installation', reuseKey: ['model_runtime'], }); + const historicalBaseBody = structuredClone(body); + const historicalBaseDefinition = historicalBaseBody.definitions.find( + (candidate) => candidate.id === rawDefinition.id, + ); + historicalBaseDefinition.components[0].type = + 'modiff.base-model-runtime@sha256:cc281f8fbae5093d68b4dd963a8f80e32b1589991c8cda97a3ec0f26c9e700db'; + historicalBaseDefinition.contentHash = 'sha256:ec00d85eae98ff645e1ead4726c55904a9360513b5e21bdc2473fa1a2720a310'; + const historicalBaseEntry = libraryCatalogModule + .buildHuggingFaceCatalogSections(libraryModule.parseHuggingFaceNodeLibrary(historicalBaseBody)) + .find((section) => section.id === 'transformers_cluster_nodes').entries[0]; + assert.equal(historicalBaseEntry.readiness, 'catalog_only'); + assert.equal(historicalBaseEntry.insertable, false); const staleBody = structuredClone(body); const staleDefinition = staleBody.definitions.find((candidate) => candidate.id === rawDefinition.id); staleDefinition.components[0] = { diff --git a/scripts/operation-modification-matrix.test.mjs b/scripts/operation-modification-matrix.test.mjs index c3a3cc42..41f59925 100644 --- a/scripts/operation-modification-matrix.test.mjs +++ b/scripts/operation-modification-matrix.test.mjs @@ -284,3 +284,100 @@ test('modular image graph to GLM keeps authored controls, custom prompt wiring a await server.close(); } }); + +test('ordinary same-pipeline profile and task Apply retains exact workflow bindings through visual groups', async () => { + const selections = [ + ['nano-image', 'text_to_image', 'cosmos3-nano:official-modular-workflow'], + ['super-image', 'text_to_image', 'cosmos3-super-text-to-image:official-modular-workflow'], + ['nano-video', 'text_to_video', 'cosmos3-nano:official-modular-workflow'], + ].map(([id, task, executionProfileId]) => ({ + id, + selection: { + pipelineClass: 'Cosmos3OmniModularPipeline', + task, + executionProfileId, + bindingSpec: { modelType: 'Cosmos3OmniModularPipeline', mode: task }, + }, + })); + const profiles = JSON.parse( + execFileSync( + process.platform === 'win32' ? python : path.join(backend, 'scripts/with-runtime-env.sh'), + process.platform === 'win32' + ? [path.join(root, 'scripts/template-operation-fixtures.py')] + : [python, path.join(root, 'scripts/template-operation-fixtures.py')], + { cwd: backend, encoding: 'utf8', maxBuffer: 64 * 1024 * 1024, input: JSON.stringify(selections) }, + ), + ); + const server = await createServer({ + root, + configFile: false, + logLevel: 'silent', + define: { 'import.meta.env.VITE_SERVER_ADDRESS': JSON.stringify('http://127.0.0.1:5191') }, + optimizeDeps: { entries: [], noDiscovery: true }, + server: { middlewareMode: true, watch: null }, + appType: 'custom', + }); + try { + const a = await server.ssrLoadModule('/src/workflow/operationAuthoring.ts'); + const contracts = await server.ssrLoadModule('/src/workflow/operationContracts.ts'); + const request = await server.ssrLoadModule('/src/workflow/operationStarterRequest.ts'); + const groups = await server.ssrLoadModule('/src/workflow/visualOperationGroups.ts'); + const operations = contracts.parseOperationContracts( + profiles.publicPayload.operationContracts, + profiles.publicPayload.operationContractSchemaVersion, + ); + const recipes = profiles.recipes.map((row) => + request.parseOperationStarter(row.starter, row.starter.pipelineClass, row.starter.task, operations), + ); + const owner = (graph) => + graph.nodes.find((node) => contracts.operationOwnsModel(a.operationAuthoring(node)?.operation)); + function checkBindings(graph, recipe) { + const flat = groups.unpackVisualOperationGroups(graph).graph; + for (const { operation } of recipe.nodes) { + const node = flat.nodes.find((n) => a.operationAuthoring(n)?.operation.operationId === operation.operationId); + assert.ok(node, operation.operationId); + assert.deepEqual(a.operationAuthoring(node).operation.binding, operation.binding); + for (const [name, value] of Object.entries(operation.binding.values)) + assert.equal(a.operationFieldValue(node.data.params[name]), value, `${operation.operationId}.${name}`); + } + const loader = owner(flat); + assert.equal(loader.data.params.workflow_id.value, recipe.workflowId); + assert.equal(a.operationAuthoring(loader).operation.binding.values.workflow_id, recipe.workflowId); + return flat; + } + for (const grouped of [false, true]) { + let graph = a.createOperationStarter(recipes[0], { x: 80, y: 100 }); + const loader = owner(graph); + // The actual failed production starter had an empty hidden loader field. + // A fresh reviewed Apply must replace that stored value with its binding. + loader.data.params.workflow_id.value = ''; + loader.data.operationAuthoring.authored = ['workflow_id']; + const prompt = graph.nodes.find((node) => node.data.params.prompt); + prompt.data.params.prompt.value = 'Keep my authored caption through model and task changes.'; + prompt.data.operationAuthoring.authored = ['prompt']; + if (grouped) graph = groups.groupNewOperationGraph(graph); + const before = structuredClone(graph); + const ownerId = loader.id; + for (const preserveValues of [false, true]) { + const plan = a.planOperationChange(graph, ownerId, recipes[1], { replaceModel: true, preserveValues }); + const next = checkBindings(plan.graph, recipes[1]); + assert.equal(owner(next).data.params.repo_id.value.value, 'nvidia/Cosmos3-Super-Text2Image'); + assert.equal(owner(next).data.params.reviewed_variant.value, 'nvidia/Cosmos3-Super-Text2Image'); + assert.equal( + next.nodes.find((node) => node.data.params.prompt).data.params.prompt.value, + 'Keep my authored caption through model and task changes.', + ); + assert.equal(owner(next).data.params.revision.value, 'daf3d374804be4c512c2135568a7cb95d4341d79'); + assert.deepEqual(graph, before, 'Previewing a change must not mutate the source graph.'); + const video = a.planOperationChange(plan.graph, ownerId, recipes[2], { replaceModel: true }); + checkBindings(video.graph, recipes[2]); + const returned = a.planOperationChange(video.graph, ownerId, recipes[0], { replaceModel: true }); + checkBindings(returned.graph, recipes[0]); + const reset = a.planOperationChange(returned.graph, ownerId, recipes[0], { restoreDefaults: true }); + checkBindings(reset.graph, recipes[0]); + } + } + } finally { + await server.close(); + } +}); diff --git a/src/studio/registeredBlockV2Routes.ts b/src/studio/registeredBlockV2Routes.ts index 53b748b6..d9bbf269 100644 --- a/src/studio/registeredBlockV2Routes.ts +++ b/src/studio/registeredBlockV2Routes.ts @@ -194,13 +194,13 @@ export const REGISTERED_BLOCK_V2_ROUTES: readonly RegisteredBlockV2Route[] = Obj }), diffusersRoute({ definitionId: 'diffusers.modular:Cosmos3DistilledModularPipeline:image2video', - definitionContentHash: 'sha256:7857742482c24d43b2d77323df353fa1b12278f5b837b49d545484ffdbb95658', + definitionContentHash: 'sha256:2ddca728c630c291d65f385f868dc9f9fb1cbc0501e76f0d0964c28628c2a7f0', pipelineClass: 'Cosmos3DistilledModularPipeline', workflowId: 'image2video', admissionId: 'diffusers.cluster-admission:Cosmos3DistilledModularPipeline:image2video:workflow:official_top_level_blocks', - compiledDefinitionContentHash: 'block-definition-v2-425743b0', - compiledDefinitionCanonicalSha256: 'sha256:7e76444ea94e6c6e994c8d54f23fa9120f9bdd2b1523613bd794b42cdece7870', + compiledDefinitionContentHash: 'block-definition-v2-81287b36', + compiledDefinitionCanonicalSha256: 'sha256:0e8d7b1660a8ed723190db87a490bac261f7b74a73e1332e8d9c0165d82eb605', studioMode: 'image_to_video', adapterContractId: 'diffusers.modular-adapter:Cosmos3DistilledModularPipeline:image2video:workflow:official_top_level_blocks', @@ -243,13 +243,13 @@ export const REGISTERED_BLOCK_V2_ROUTES: readonly RegisteredBlockV2Route[] = Obj }), diffusersRoute({ definitionId: 'diffusers.modular:Cosmos3DistilledModularPipeline:text2image', - definitionContentHash: 'sha256:4409aa4211d08f3ef9b077e625c7a4d7a1b9c5db9613280ec052b843df65f86e', + definitionContentHash: 'sha256:07a8feafa3ec60f926eded40f3e6e58c3f07466e36fc451bb501ac36699961a1', pipelineClass: 'Cosmos3DistilledModularPipeline', workflowId: 'text2image', admissionId: 'diffusers.cluster-admission:Cosmos3DistilledModularPipeline:text2image:workflow:official_top_level_blocks', - compiledDefinitionContentHash: 'block-definition-v2-753bb2f7', - compiledDefinitionCanonicalSha256: 'sha256:fbb26273304d2908387fdadd43c2f8e57d3cbc98b3c92c561b72326e61189e4b', + compiledDefinitionContentHash: 'block-definition-v2-018828f1', + compiledDefinitionCanonicalSha256: 'sha256:e5e8aaeeba8dc9e4a15fb3d47613a3c0f056bc2304551ae4c617c698470e1fec', studioMode: 'text_to_image', adapterContractId: 'diffusers.modular-adapter:Cosmos3DistilledModularPipeline:text2image:workflow:official_top_level_blocks', @@ -284,18 +284,18 @@ export const REGISTERED_BLOCK_V2_ROUTES: readonly RegisteredBlockV2Route[] = Obj }), diffusersRoute({ definitionId: 'diffusers.modular:Cosmos3OmniModularPipeline:text2image', - definitionContentHash: 'sha256:a02f4ed18fb79aa0ddb0638271da60da6f30e3349d1a456a962fc669497f6896', + definitionContentHash: 'sha256:3a7bd74c7f53fd38fc10995f03ce6a42afd74a0c7091f2125d4cc25bdf3d255f', pipelineClass: 'Cosmos3OmniModularPipeline', workflowId: 'text2image', admissionId: 'diffusers.cluster-admission:Cosmos3OmniModularPipeline:text2image:workflow:official_top_level_blocks', - compiledDefinitionContentHash: 'block-definition-v2-7743655f', - compiledDefinitionCanonicalSha256: 'sha256:e94c99c5de05f5534e5dfda1ff41befccae2d73e1b4cdbae591683cfa2e7b2c5', + compiledDefinitionContentHash: 'block-definition-v2-0ce25fb5', + compiledDefinitionCanonicalSha256: 'sha256:5f302683f9276144ea57163659d81c07e59366134318054c29d1eed602a96437', studioMode: 'text_to_image', adapterContractId: 'diffusers.modular-adapter:Cosmos3OmniModularPipeline:text2image:workflow:official_top_level_blocks', studioExecutionSpec: { id: 'cosmos3-nano:modular-text-to-image:v1', - contentHash: 'studio-spec-v1-590066ce', + contentHash: 'studio-spec-v1-91ed105d', executionProfileId: 'cosmos3-nano:official-modular-workflow', }, artifact: { @@ -325,12 +325,12 @@ export const REGISTERED_BLOCK_V2_ROUTES: readonly RegisteredBlockV2Route[] = Obj }), diffusersRoute({ definitionId: 'diffusers.modular:Cosmos3OmniModularPipeline:text2video', - definitionContentHash: 'sha256:96567aeb09464cf1954dc9a7bb27cbb85dcb86c66c786edcf3704de87936d395', + definitionContentHash: 'sha256:ad06a48f8ba2426c12c12ffcdb0e3359c51202bf62ac08f65dffe2de2732035a', pipelineClass: 'Cosmos3OmniModularPipeline', workflowId: 'text2video', admissionId: 'diffusers.cluster-admission:Cosmos3OmniModularPipeline:text2video:workflow:official_top_level_blocks', - compiledDefinitionContentHash: 'block-definition-v2-4af2026a', - compiledDefinitionCanonicalSha256: 'sha256:06d464cc4edb73756804473fc4541a02df22846efa0422b66b2cf1eda28bdf89', + compiledDefinitionContentHash: 'block-definition-v2-c47dd522', + compiledDefinitionCanonicalSha256: 'sha256:f88d3e110a9c32a1147fcdcdd62a7ed58eee6917c0c1a6172a547da4db7957b8', studioMode: 'text_to_video', adapterContractId: 'diffusers.modular-adapter:Cosmos3OmniModularPipeline:text2video:workflow:official_top_level_blocks', @@ -368,13 +368,13 @@ export const REGISTERED_BLOCK_V2_ROUTES: readonly RegisteredBlockV2Route[] = Obj }), diffusersRoute({ definitionId: 'diffusers.modular:Cosmos3OmniModularPipeline:image2video', - definitionContentHash: 'sha256:f78db372dd865b906fdb0a7066de65347d1a24d8cff131e59a31bfe7aa205c6e', + definitionContentHash: 'sha256:457912dac82bfff5cb8fd4403bad6fffed6068bef8e7279c72f2f53bbb54b296', pipelineClass: 'Cosmos3OmniModularPipeline', workflowId: 'image2video', admissionId: 'diffusers.cluster-admission:Cosmos3OmniModularPipeline:image2video:workflow:official_top_level_blocks', - compiledDefinitionContentHash: 'block-definition-v2-7bd2b99a', - compiledDefinitionCanonicalSha256: 'sha256:b6a59b6aaed673851757930d94945adaeb9c07259f17418782379ae71fa56dd2', + compiledDefinitionContentHash: 'block-definition-v2-d6210e3a', + compiledDefinitionCanonicalSha256: 'sha256:1e23ec3ee45452cb836b3abe55f4a518cd5325cb4944be6e9a7c1e2049a18f3d', studioMode: 'image_to_video', adapterContractId: 'diffusers.modular-adapter:Cosmos3OmniModularPipeline:image2video:workflow:official_top_level_blocks', @@ -419,13 +419,13 @@ export const REGISTERED_BLOCK_V2_ROUTES: readonly RegisteredBlockV2Route[] = Obj }), diffusersRoute({ definitionId: 'diffusers.modular:Cosmos3OmniModularPipeline:image2video_with_sound', - definitionContentHash: 'sha256:a84afddaea8d2b500578d3631da63da13a5a66d4e5d56b031d064a129dade59c', + definitionContentHash: 'sha256:fc665e24a4d847d256a9f47002b5f89ad2642d324af7e80a6c69ee560eacb511', pipelineClass: 'Cosmos3OmniModularPipeline', workflowId: 'image2video_with_sound', admissionId: 'diffusers.cluster-admission:Cosmos3OmniModularPipeline:image2video_with_sound:workflow:official_top_level_blocks', - compiledDefinitionContentHash: 'block-definition-v2-5a2a7245', - compiledDefinitionCanonicalSha256: 'sha256:5d20b3064d878a812e5b319b80deeb19d78956de4552ee9b3513025d502f834e', + compiledDefinitionContentHash: 'block-definition-v2-89c93c1f', + compiledDefinitionCanonicalSha256: 'sha256:37107c1f32f3af4f81c1d9a0a2072ae210851452688b132b922a74834f83d144', studioMode: 'image_to_video_with_audio', adapterContractId: 'diffusers.modular-adapter:Cosmos3OmniModularPipeline:image2video_with_sound:workflow:official_top_level_blocks', @@ -470,13 +470,13 @@ export const REGISTERED_BLOCK_V2_ROUTES: readonly RegisteredBlockV2Route[] = Obj }), diffusersRoute({ definitionId: 'diffusers.modular:Cosmos3OmniModularPipeline:text2video_with_sound', - definitionContentHash: 'sha256:4db805bbc53fee04ec30dcdcb4c5071c3382b8e8f74ef70633f2ba207c10d791', + definitionContentHash: 'sha256:fe2d8f5a648c2067fea5f9ea37aefea500876c14afb4ae882592a739f14b54e8', pipelineClass: 'Cosmos3OmniModularPipeline', workflowId: 'text2video_with_sound', admissionId: 'diffusers.cluster-admission:Cosmos3OmniModularPipeline:text2video_with_sound:workflow:official_top_level_blocks', - compiledDefinitionContentHash: 'block-definition-v2-c464c985', - compiledDefinitionCanonicalSha256: 'sha256:3696fce1604d53e8d82b2a589c530df2a003eb80fbeebd81ec49c1d7a265a9bb', + compiledDefinitionContentHash: 'block-definition-v2-146cfebb', + compiledDefinitionCanonicalSha256: 'sha256:3ab0f3eae9e9f202da682f6fe2a46c42e77e3ce65058953be7725689fb9c585b', studioMode: 'text_to_video_with_audio', adapterContractId: 'diffusers.modular-adapter:Cosmos3OmniModularPipeline:text2video_with_sound:workflow:official_top_level_blocks', @@ -520,13 +520,13 @@ export const REGISTERED_BLOCK_V2_ROUTES: readonly RegisteredBlockV2Route[] = Obj }), diffusersRoute({ definitionId: 'diffusers.modular:Cosmos3OmniModularPipeline:video2video', - definitionContentHash: 'sha256:c9c1f6f35c193e0ddbe5ffa157d2c6eee1e524a9bf0db84f3c86f09d38380237', + definitionContentHash: 'sha256:2fac2f20b5407bb5a8c9637cb355890612ecc9c00eb87c3da42d4c7811152bb4', pipelineClass: 'Cosmos3OmniModularPipeline', workflowId: 'video2video', admissionId: 'diffusers.cluster-admission:Cosmos3OmniModularPipeline:video2video:workflow:official_top_level_blocks', - compiledDefinitionContentHash: 'block-definition-v2-cc5f9eae', - compiledDefinitionCanonicalSha256: 'sha256:3856af80674b25d1c834cdfacc3cb480dfa826342956362ef3423431706cf9a7', + compiledDefinitionContentHash: 'block-definition-v2-c311ea45', + compiledDefinitionCanonicalSha256: 'sha256:6b1d3057b1498c433c7dca516514814f70cb51b3b8b45c234126aee6edf6955f', studioMode: 'video_to_video', adapterContractId: 'diffusers.modular-adapter:Cosmos3OmniModularPipeline:video2video:workflow:official_top_level_blocks', @@ -571,13 +571,13 @@ export const REGISTERED_BLOCK_V2_ROUTES: readonly RegisteredBlockV2Route[] = Obj }), diffusersRoute({ definitionId: 'diffusers.modular:Cosmos3OmniModularPipeline:video2video_with_sound', - definitionContentHash: 'sha256:1a8968646a4dd01095139376314c5ec63fd52947291de8446bc45ce55dbc9be7', + definitionContentHash: 'sha256:1cd89a799236f2835ce9c751996bc655f3c87a46b1964165ce5d95d147319779', pipelineClass: 'Cosmos3OmniModularPipeline', workflowId: 'video2video_with_sound', admissionId: 'diffusers.cluster-admission:Cosmos3OmniModularPipeline:video2video_with_sound:workflow:official_top_level_blocks', - compiledDefinitionContentHash: 'block-definition-v2-c847218f', - compiledDefinitionCanonicalSha256: 'sha256:ee4b4dc911d5a24b4c2f0d68a850e8264d72e12678dd0a887d0b344c76917031', + compiledDefinitionContentHash: 'block-definition-v2-0afff4e1', + compiledDefinitionCanonicalSha256: 'sha256:c71373df32cedd642686c0c0ea9ce8359aa20966f63e0167d4e359fddb4a0019', studioMode: 'video_to_video_with_audio', adapterContractId: 'diffusers.modular-adapter:Cosmos3OmniModularPipeline:video2video_with_sound:workflow:official_top_level_blocks', @@ -932,13 +932,13 @@ export const REGISTERED_BLOCK_V2_ROUTES: readonly RegisteredBlockV2Route[] = Obj }), transformersRoute({ definitionId: 'transformers.composite:HuggingFaceAnyToAnyModel:image_to_text', - definitionContentHash: 'sha256:b27f1c2bc6056bfba7d13fcd33fe5eb3de06711bee741fd277d6cdee3bfe343a', + definitionContentHash: 'sha256:d89605fa08b83901218a0e71e1c6960b9ae218a555d2954bc7f2e0d3243aceaa', libraryRevision: '1655280bb75959cc1cb85529a2a8b26e7016072e', pipelineClass: 'HuggingFaceAnyToAnyModel', workflowId: 'image_to_text', admissionId: 'transformers.cluster-admission:HuggingFaceAnyToAnyModel:image_to_text', - compiledDefinitionContentHash: 'block-definition-v2-6cbc7b66', - compiledDefinitionCanonicalSha256: 'sha256:2739db94bfd626c92945716852ce3c185ab0accc0c7c0e13e1ade06fdbe22454', + compiledDefinitionContentHash: 'block-definition-v2-a60ca3d1', + compiledDefinitionCanonicalSha256: 'sha256:2190f7d585de304a8fe9caffbaf39f7883bb2db96246cf80b7de2ddd64fec6be', studioMode: 'image_to_text', adapterContractId: 'transformers.composite-adapter:HuggingFaceAnyToAnyModel:image_to_text', studioExecutionSpec: { @@ -959,13 +959,13 @@ export const REGISTERED_BLOCK_V2_ROUTES: readonly RegisteredBlockV2Route[] = Obj }), transformersRoute({ definitionId: 'transformers.composite:HuggingFaceAnyToAnyModel:text_generation', - definitionContentHash: 'sha256:6e367669c70439a86ee47cdd6f789a7fd0847b2a1c6b19c112a06c0612e3c4f6', + definitionContentHash: 'sha256:615587459ff7cebc84ea36e7d05734ee8804215658ce1b4f25bb2c4a97f27664', libraryRevision: '1655280bb75959cc1cb85529a2a8b26e7016072e', pipelineClass: 'HuggingFaceAnyToAnyModel', workflowId: 'text_generation', admissionId: 'transformers.cluster-admission:HuggingFaceAnyToAnyModel:text_generation', - compiledDefinitionContentHash: 'block-definition-v2-7c6f1774', - compiledDefinitionCanonicalSha256: 'sha256:54d99f46f680a3c23d99ca3131f246c2f6e8ed8abd1fe376cb5acb1198cea710', + compiledDefinitionContentHash: 'block-definition-v2-98d35ccc', + compiledDefinitionCanonicalSha256: 'sha256:33d284ed5e8249e00ac3c8bde5d8352b7fdac81ed3a0f4ba33e1ca35ff9d3e43', studioMode: 'text_generation', adapterContractId: 'transformers.composite-adapter:HuggingFaceAnyToAnyModel:text_generation', studioExecutionSpec: { @@ -981,13 +981,13 @@ export const REGISTERED_BLOCK_V2_ROUTES: readonly RegisteredBlockV2Route[] = Obj }), transformersRoute({ definitionId: 'transformers.composite:HuggingFaceAnyToAnyModel:text_to_image', - definitionContentHash: 'sha256:b4094a74c10e93af2a5e4ae42c3af9168d68230ad0f5b561a94ce7d0a40dc024', + definitionContentHash: 'sha256:df4432a0400f508f556a85b26908545806439d0d194655eb4f7ba3118217e273', libraryRevision: '1655280bb75959cc1cb85529a2a8b26e7016072e', pipelineClass: 'HuggingFaceAnyToAnyModel', workflowId: 'text_to_image', admissionId: 'transformers.cluster-admission:HuggingFaceAnyToAnyModel:text_to_image', - compiledDefinitionContentHash: 'block-definition-v2-e0d6cc7b', - compiledDefinitionCanonicalSha256: 'sha256:f7cd2cf1ad0e09144898591afe1d37ef78949a77702664eb3f56e104a3ed6d2c', + compiledDefinitionContentHash: 'block-definition-v2-4b41d421', + compiledDefinitionCanonicalSha256: 'sha256:bf3b046b6256f215afbe9ad91230ac1ac29b12b14e92cf43ecd70591755e92ad', studioMode: 'text_to_image', adapterContractId: 'transformers.composite-adapter:HuggingFaceAnyToAnyModel:text_to_image', studioExecutionSpec: { @@ -1013,13 +1013,13 @@ export const REGISTERED_BLOCK_V2_ROUTES: readonly RegisteredBlockV2Route[] = Obj }), transformersRoute({ definitionId: 'transformers.composite:HuggingFaceCTCSpeechRecognitionModel:speech_to_text', - definitionContentHash: 'sha256:0c03dcd8f16cf19c33a827aa802f22294eb20d9dceee73bfacd73b6f1a9ef67d', + definitionContentHash: 'sha256:954f72a11f3a58fa754d7ce48d99f24542249763a44ad38aa22353155ea9705e', libraryRevision: '22aad52d435eb6dbaf354bdad9b0da84ce7d6156', pipelineClass: 'HuggingFaceCTCSpeechRecognitionModel', workflowId: 'speech_to_text', admissionId: 'transformers.cluster-admission:HuggingFaceCTCSpeechRecognitionModel:speech_to_text', - compiledDefinitionContentHash: 'block-definition-v2-e6518c32', - compiledDefinitionCanonicalSha256: 'sha256:4b8f73034ef9305d920807d13e61b0adee8d150cc66b9bea486f9636e7275342', + compiledDefinitionContentHash: 'block-definition-v2-0c01cce0', + compiledDefinitionCanonicalSha256: 'sha256:0895926d45d8e4a3ee091b07f83d49f752b3db94c56cc532c632ca97be71291d', studioMode: 'speech_to_text', adapterContractId: 'transformers.composite-adapter:HuggingFaceCTCSpeechRecognitionModel:speech_to_text', studioExecutionSpec: { @@ -1040,13 +1040,13 @@ export const REGISTERED_BLOCK_V2_ROUTES: readonly RegisteredBlockV2Route[] = Obj }), transformersRoute({ definitionId: 'transformers.composite:HuggingFaceImageTextToTextModel:image_to_text', - definitionContentHash: 'sha256:b697aed7022d71cfc88fc7c2148a8d38d333aa45f9ad0a368a1637201662eb1d', + definitionContentHash: 'sha256:c7d227bfc8326cb6226d743567b227522d13f19a3d3c2bd470543a6a001e2b7e', libraryRevision: '7e3e67edbbed1bf9888184d9df282b700a323964', pipelineClass: 'HuggingFaceImageTextToTextModel', workflowId: 'image_to_text', admissionId: 'transformers.cluster-admission:HuggingFaceImageTextToTextModel:image_to_text', - compiledDefinitionContentHash: 'block-definition-v2-3c0bfa38', - compiledDefinitionCanonicalSha256: 'sha256:d8d9ed01b347337fbf789b7b71f2a1de970299955e19b1bfc8421f2e7701bd51', + compiledDefinitionContentHash: 'block-definition-v2-e9893ba9', + compiledDefinitionCanonicalSha256: 'sha256:1906d818c547cacb60ffec873a74f8ea15b3d84f4338ec0f7851adb94529dc6a', studioMode: 'image_to_text', adapterContractId: 'transformers.composite-adapter:HuggingFaceImageTextToTextModel:image_to_text', studioExecutionSpec: { @@ -1067,13 +1067,13 @@ export const REGISTERED_BLOCK_V2_ROUTES: readonly RegisteredBlockV2Route[] = Obj }), transformersRoute({ definitionId: 'transformers.composite:HuggingFaceSpeechRecognitionModel:speech_to_text', - definitionContentHash: 'sha256:17b47dc26205a701bad727b50907bc24b9816c6d7834dfed43e7bc2335950a34', + definitionContentHash: 'sha256:a21e7830c191772b5ab010ec49323040a2eea14e1c605db597b02818529aa4b4', libraryRevision: '169d4a4341b33bc18d8881c4b69c2e104e1cc0af', pipelineClass: 'HuggingFaceSpeechRecognitionModel', workflowId: 'speech_to_text', admissionId: 'transformers.cluster-admission:HuggingFaceSpeechRecognitionModel:speech_to_text', - compiledDefinitionContentHash: 'block-definition-v2-300b958a', - compiledDefinitionCanonicalSha256: 'sha256:11f618eedc9411b66cf4ddf5b881afaac9596b46b34310463b53c7de1e2ba5f3', + compiledDefinitionContentHash: 'block-definition-v2-2c4721c8', + compiledDefinitionCanonicalSha256: 'sha256:7e8f62c07fba28a95ba7696e4a1e3d9fa792ed2f7b53530471bb7fa1130db599', studioMode: 'speech_to_text', adapterContractId: 'transformers.composite-adapter:HuggingFaceSpeechRecognitionModel:speech_to_text', studioExecutionSpec: { @@ -1094,13 +1094,13 @@ export const REGISTERED_BLOCK_V2_ROUTES: readonly RegisteredBlockV2Route[] = Obj }), transformersRoute({ definitionId: 'transformers.composite:HuggingFaceSpeechRecognitionModel:speech_translation', - definitionContentHash: 'sha256:15f3404a34e00ba28a575788a5737ec2f2f8d2dc79faf76602c4245c66a912de', + definitionContentHash: 'sha256:0a1f5c8087a342a6c40058aeb066263809f0858d8882d7d4335e64e39cd8f00e', libraryRevision: '169d4a4341b33bc18d8881c4b69c2e104e1cc0af', pipelineClass: 'HuggingFaceSpeechRecognitionModel', workflowId: 'speech_translation', admissionId: 'transformers.cluster-admission:HuggingFaceSpeechRecognitionModel:speech_translation', - compiledDefinitionContentHash: 'block-definition-v2-b3cd5206', - compiledDefinitionCanonicalSha256: 'sha256:1e62c70e37a7db4e23ee832e13a07c64a19340f7724a83c5b4604c353ff8f748', + compiledDefinitionContentHash: 'block-definition-v2-8b117080', + compiledDefinitionCanonicalSha256: 'sha256:c2de7d568c29ebdfe6aab418151bd4490878ed3269ebc4eed2732c5fcf7383c7', studioMode: 'speech_translation', adapterContractId: 'transformers.composite-adapter:HuggingFaceSpeechRecognitionModel:speech_translation', studioExecutionSpec: { @@ -1121,13 +1121,13 @@ export const REGISTERED_BLOCK_V2_ROUTES: readonly RegisteredBlockV2Route[] = Obj }), transformersRoute({ definitionId: 'transformers.composite:HuggingFaceTextGenerationModel:text_generation', - definitionContentHash: 'sha256:ec00d85eae98ff645e1ead4726c55904a9360513b5e21bdc2473fa1a2720a310', + definitionContentHash: 'sha256:af0665a30de76d2a10de99d3fc64ede348efcde4620eb7972e6696673722ed33', libraryRevision: '12fd25f77366fa6b3b4b768ec3050bf629380bac', pipelineClass: 'HuggingFaceTextGenerationModel', workflowId: 'text_generation', admissionId: 'transformers.cluster-admission:HuggingFaceTextGenerationModel:text_generation', - compiledDefinitionContentHash: 'block-definition-v2-320abdc3', - compiledDefinitionCanonicalSha256: 'sha256:f79469eda4c455a71348d07856f47f74466e94b6a8fbd3130fd97a93c4ae444d', + compiledDefinitionContentHash: 'block-definition-v2-df16f12e', + compiledDefinitionCanonicalSha256: 'sha256:f7e2508df6e110e8cec7b355d1f8087c19048c700dfdd1e912c87741c2961c53', studioMode: 'text_generation', adapterContractId: 'transformers.composite-adapter:HuggingFaceTextGenerationModel:text_generation', studioExecutionSpec: { From 8a73addca7a8ef0a222a68c4fb72523a0bab7b05 Mon Sep 17 00:00:00 2001 From: Sourav Das Date: Fri, 9 Oct 2026 10:54:37 +0530 Subject: [PATCH 017/440] Preserve reviewed Windows validation fixes before Linux integration --- docs/auto-mode-design.md | 8 + docs/cluster-engineering-lessons.md | 14 + docs/modiff-client-architecture.md | 44 +- package.json | 2 +- scripts/block-runtime-v2.test.mjs | 274 ++++++ scripts/compatibility-panel.test.mjs | 73 ++ scripts/graph-visuals.test.mjs | 8 +- scripts/modiff-template.test.mjs | 25 + scripts/node-store-requests.test.mjs | 32 + .../registered-block-v2-insertion.test.mjs | 26 + .../registered-block-v2-route-audit.test.mjs | 1 + scripts/run-activity.test.mjs | 156 +++- scripts/run-coordinator.test.mjs | 63 ++ scripts/template-operation-workflows.test.mjs | 55 +- scripts/websocket-connection.test.mjs | 36 + src/components/CompatibilityPanel.tsx | 20 +- src/components/ModelManagerDialog.tsx | 3 +- src/components/RunQueuePanel.tsx | 10 +- src/components/Workflow.tsx | 9 + src/stores/flowNodeMutations.ts | 2 +- src/stores/useFlowStore.ts | 11 +- src/stores/useSettingsStore.ts | 3 +- src/stores/useStudioStore.ts | 32 +- src/stores/useWebsocketStore.ts | 11 + src/stores/websocketMessageHandler.ts | 4 + src/studio/autoResource.ts | 10 + src/studio/blockPreviewPersistenceV2.ts | 44 +- src/studio/blockRuntimeV2.ts | 41 +- src/studio/executionSpecValues.ts | 3 +- src/studio/huggingFaceClusterInsertion.ts | 26 +- src/studio/huggingFaceClusterRuntime.ts | 7 +- src/studio/legacyBlockMovementV2.ts | 11 +- src/studio/modelProfiles.ts | 14 +- src/studio/runActivity.ts | 11 +- src/studio/runCoordinator.ts | 18 +- src/studio/templateOperationSelections.ts | 7 +- src/studio/userBlocks.ts | 1 + src/utils/checkpointStorage.ts | 43 + tests/e2e/studio-mocked/studio-mocked.spec.ts | 141 ++- tests/fixtures/ctc-catalog-insertion.v1.json | 810 ++++++++++++++++++ 40 files changed, 2015 insertions(+), 94 deletions(-) create mode 100644 scripts/compatibility-panel.test.mjs create mode 100644 src/utils/checkpointStorage.ts create mode 100644 tests/fixtures/ctc-catalog-insertion.v1.json diff --git a/docs/auto-mode-design.md b/docs/auto-mode-design.md index c94aa423..66f0c40a 100644 --- a/docs/auto-mode-design.md +++ b/docs/auto-mode-design.md @@ -177,6 +177,9 @@ If any step is missing, keep the profile visible as Expert-only or blocked with ## Custom and multiple-Block workflow Auto The information button beside Resources opens Workflow resources in the right panel. +Managed Studio workflows expose the same whole-workflow assessment and Auto check, +with their selected-model options shown separately. A selected-model compatibility +estimate does not establish combined workflow eligibility. The existing source-recipe assessment remains read-only. **Check Auto execution plan** also validates the actual executable graph through `POST /auto_resource/workflow` (`schemaVersion: 1`, `graph` containing the existing @@ -227,6 +230,11 @@ current values, external connections and preview references survive; the reusabl library definition is not rewritten. Missing exact source metadata remains an explicit diagnostic. +Every Automatic run, including a managed Studio workflow, obtains this complete +plan before submission. The backend requires its receipt before runtime +preparation; a primary-model candidate alone cannot authorize the complete graph +or overwrite its planned resource fields. + Run checks the graph again after planning and updates only supported visible resource controls. A `workflowAutoPlan` receipt binds the resulting API graph by hash. At dispatch the backend verifies the hash and re-plans against current diff --git a/docs/cluster-engineering-lessons.md b/docs/cluster-engineering-lessons.md index 15153c8d..feed03f0 100644 --- a/docs/cluster-engineering-lessons.md +++ b/docs/cluster-engineering-lessons.md @@ -124,6 +124,15 @@ not evidence of harmless compilation. Inspect pressure promptly, distinguish a kernel OOM kill from an assumed driver failure, and verify supervisor/UI recovery before retrying a known failed or cancelled task. +On Windows, freed CPU tensors can leave committed pages in Torch's bundled +mimalloc allocator while the process is idle. Empty model registries, a small +GC-visible tensor sample and `torch.cuda.empty_cache()` do not establish that +host memory was returned. Compare a bounded allocate/free reproduction with +process commit and OS availability, then repeat the original model sequence. +The existing pre-import startup policy defaults `MIMALLOC_PURGE_DELAY=0` on +Windows and preserves an explicit operator value. Document its allocation +performance tradeoff; an allocator-only reproduction is not model fit proof. + ## Native edits and dynamic input types A successful run seeded through numeric test data does not prove the same field @@ -600,6 +609,11 @@ runtimes or rewrite graph inputs. - Test legacy NanoID prefixes, public wires, completed previews, mixed selections, missing destinations and Undo/Redo. Native evidence must use actual selection and drag gestures; a reducer test alone does not prove toolbar behavior. +- Composing complete Blocks preserves each child's local primary preview. The + new outer Block keeps its own primary, or the first child primary in graph + order, and retains later child previews as secondary outer previews. Prove + sibling and mixed-node composition without weakening the one-primary schema + invariant or changing child definitions, values, hierarchy, or wires. ## Auto owner lifetimes and computed controls diff --git a/docs/modiff-client-architecture.md b/docs/modiff-client-architecture.md index 88b3da48..45d326a0 100644 --- a/docs/modiff-client-architecture.md +++ b/docs/modiff-client-architecture.md @@ -87,6 +87,11 @@ Mutation logic is split into: The store persists only nodes, edges, and viewport under `modiff.flow`. Runtime, history, and in-flight state are not persisted. A legacy `reactflow` key is migrated when present. +Native Delete uses `removeElements` in one history transaction, including selected +nodes, descendants, incident edges and separately selected edges. The existing +Block deletion checks run before removing any selected wires. One Undo restores +the complete graph; a rejected structural deletion leaves the selection intact. + Encode Inputs uses the ordinary node surface. Supported inactive image-encoding sockets are derived read-only from backend operation contracts. Connecting one uses `encodingNodeConnection` and the existing route planner to materialize real @@ -942,6 +947,20 @@ account action and install recovery uses the backend's structured error code. ## Websocket And Task State +Every welcome refreshes authoritative runtime readiness, including after worker +replacement or package repair. The existing discovery request gate discards older +responses so they cannot restore stale Setup errors after the replacement is ready. +During HTTP recovery, a validated new backend instance also triggers one runtime +read while health is unready. Setup can therefore show repair requirements before +the readiness gate permits reconnecting. Repeated probes for the same instance +do not repeatedly inspect the runtime, and stale connection probes cannot refresh it. + +Fresh executable attention bindings use the authored automatic policy unless a +reviewed candidate explicitly supplies another backend. The disabled registered +compiler skeleton retains its existing metadata identity; qualification replaces +its provisional attention values before enabling children. A CUDA device does +not by itself authorize forced native flash attention. + - `src/stores/useWebsocketStore.ts` owns connection/session identity, reconnect state, and loop timers. - `src/components/WebsocketProvider.tsx` connects the store to React lifecycle. - `src/stores/websocketMessageHandler.ts` validates/routes runtime messages. @@ -1004,8 +1023,18 @@ Tab arrangement is browser-local presentation. `moveWorkflowTab` resolves source and destination IDs against current state and changes only the array order. Pointer previews stay outside the store until drop; structural tab changes cancel an in-flight gesture. Backend document-sync signatures are order-independent. -The bounded local checkpoint selects active/dirty/recent tabs but preserves their -original relative order, both when writing and restoring older checkpoints. +The local checkpoint selects at most twelve active/recent saved tabs and retains +every dirty tab, preserving their original relative order both when writing and +restoring older checkpoints. Unsaved edits must not disappear merely because +more tabs are open. A failed browser storage write leaves editing usable and +shows a persistent warning to Save or export before refreshing. Flow, settings, +and Studio use the shared `checkpointStorage.ts` adapter so failed writes cannot +abort canvas edits or panel actions. The warning clears only after every failed +storage key has recovered; a successful unrelated write cannot clear it. +Background sync durably saves +recovery drafts on the backend; explicit Save places the current document in +the named workflow library. Neither can be assumed to have succeeded while +its persistence request is failing. `src/components/StudioPanel.tsx` is a UI composition layer over those modules. It must not become the owner of graph execution, network parsing, or long-lived domain state. @@ -1473,3 +1502,14 @@ Block preview projections retain source-field artifact metadata only when its URL and available task identity match the current instance media reference. Older cached artifacts stay in the immutable source snapshot but cannot override a newer rendered output, including after save/reload or explicit legacy conversion. + +Durable Block text previews display the text value from the exact task and +field, rather than the retained `.txt` download URL. Only an explicit current +preview slot for the active workflow can advance the preview to a different +task. New Block creation excludes output preview fields from editable controls; +existing saved definitions remain intact. Legacy preview controls also project +the matching instance preview and cannot display stale source artifacts. + +Queue rows and tooltips give completed/cancelled/failed states priority over +retained progress messages. Failure diagnostics remain visible, including for +older backend receipts. diff --git a/package.json b/package.json index 98d6b561..93854955 100644 --- a/package.json +++ b/package.json @@ -96,7 +96,7 @@ "test:graph-visuals": "node --test scripts/graph-visuals.test.mjs scripts/node-measurement-dispatch.test.mjs scripts/node-connection-search.test.mjs", "test:media-viewer": "node --test scripts/media-viewer.test.mjs", "test:requests": "node --test scripts/media-attachment.test.mjs scripts/node-presentation.test.mjs scripts/service-package.test.mjs scripts/node-store-requests.test.mjs scripts/operation-catalog.test.mjs scripts/operation-component-bundle-inputs.test.mjs scripts/operation-component-bundle.test.mjs scripts/operation-authoring.test.mjs scripts/operation-modification-matrix.test.mjs scripts/request-boundary.test.mjs scripts/server-actions.test.mjs scripts/shared-store-requests.test.mjs scripts/supervisor-startup.test.mjs scripts/studio-output-requests.test.mjs scripts/resolved-execution-inputs.test.mjs scripts/runtime-resources.test.mjs scripts/websocket-connection.test.mjs scripts/backend-proxy-lifecycle.test.mjs", - "test:run-coordinator": "node --test scripts/run-coordinator.test.mjs scripts/run-issue-store.test.mjs scripts/block-runtime-hints-v2.test.mjs", + "test:run-coordinator": "node --test scripts/run-coordinator.test.mjs scripts/compatibility-panel.test.mjs scripts/run-issue-store.test.mjs scripts/block-runtime-hints-v2.test.mjs", "test:run-activity": "node --test scripts/run-activity.test.mjs", "test:template-input-preview": "node --test scripts/template-input-preview.test.mjs", "test:asset-storage": "node --test scripts/template-assets.test.mjs && node scripts/run-python.mjs scripts/template-gallery-assets.test.py", diff --git a/scripts/block-runtime-v2.test.mjs b/scripts/block-runtime-v2.test.mjs index cd0c4ce2..f8eeb6d6 100644 --- a/scripts/block-runtime-v2.test.mjs +++ b/scripts/block-runtime-v2.test.mjs @@ -514,6 +514,125 @@ function instance(id = 'instance-a', values = { prompt: '', steps: 0 }) { }); } +function composedTextPreviewFixture(id, value) { + const leaf = { + id: 'text', + selected: true, + type: 'custom', + position: { x: 0, y: 0 }, + data: { + type: 'custom', + module: 'modules.Primitive', + action: 'Text', + params: { + text: { type: 'str', display: 'textarea', value: 'creator text' }, + output: { type: 'str', display: 'output' }, + preview: { type: 'text', display: 'ui_text', dataSource: 'output', hidden: true }, + }, + }, + }; + const definition = schema.migrateUserBlockDefinitionV1({ + id: `definition-${id}`, + name: id, + version: 1, + nodes: [leaf], + edges: [], + inputs: [{ id: 'text-input', label: 'Input', type: 'str', nodeId: leaf.id, paramKey: 'text' }], + outputs: [{ id: 'text-output', label: 'Output', type: 'str', nodeId: leaf.id, paramKey: 'output' }], + exposedParams: [{ id: 'message', kind: 'graph-param', label: 'Message', nodeId: leaf.id, paramKey: 'text' }], + createdAt: 1, + updatedAt: 1, + }); + const root = runtime.createBlockRootNodeV2( + schema.createBlockInstanceV2(definition, { + instanceId: id, + position: { x: 0, y: 0 }, + size: { width: 300, height: 300 }, + values: { message: value }, + }), + ); + root.selected = true; + return { root, leaf }; +} + +for (const count of [2, 3]) { + test(`composing ${count} connected Blocks keeps all child previews with one outer primary`, async () => { + const creation = await server.ssrLoadModule('/src/studio/userBlockCreationV2.ts'); + const roots = Array.from( + { length: count }, + (_, index) => composedTextPreviewFixture(`sibling-${index}`, `edited text ${index}`).root, + ); + const graph = { + nodes: roots, + edges: roots.slice(1).map((root, index) => ({ + id: `wire-${index}`, + source: roots[index].id, + sourceHandle: 'text-output', + target: root.id, + targetHandle: 'text-input', + })), + }; + const before = structuredClone(graph); + const draft = creation.createUserBlockDraftV2(graph, []); + assert.equal(draft.ok, true); + const prepared = creation.prepareUserBlockCreationV2(draft, draft.block); + const parent = prepared.graph.nodes.find((node) => node.data.blockInstanceV2).data.blockInstanceV2; + assert.equal(parent.definitionSnapshot.previews.length, count); + assert.equal(parent.definitionSnapshot.previews.filter((preview) => preview.primary).length, 1); + assert.match(parent.definitionSnapshot.previews.find((preview) => preview.primary).nodeId, /sibling-0/); + const local = parent.definitionSnapshot.graph.nodes.filter((node) => node.containerInterface); + assert.equal(local.length, count); + for (const node of local) + assert.equal(node.containerInterface.previews.filter((preview) => preview.primary).length, 1); + const execution = runtime.expandBlockGraphV2ForExecution(prepared.graph.nodes, prepared.graph.edges); + const leaves = execution.nodes.filter((node) => node.data.action === 'Text'); + assert.equal(leaves.length, count); + assert.equal(execution.edges.length, count - 1); + for (const [index, node] of leaves.entries()) assert.equal(node.data.params.text.value, `edited text ${index}`); + for (const edge of execution.edges) { + assert.equal(edge.sourceHandle, 'output'); + assert.equal(edge.targetHandle, 'text'); + } + assert.deepEqual(graph, before, 'composition must preserve input graph and immutable child snapshots'); + }); +} + +test('composing an ordinary preview with a nested Block preserves the outer primary and child interface', async () => { + const creation = await server.ssrLoadModule('/src/studio/userBlockCreationV2.ts'); + const { root, leaf } = composedTextPreviewFixture('nested-text', 'nested edit'); + leaf.id = 'outer-text'; + leaf.data.params.text.value = 'outer edit'; + const graph = { + nodes: [leaf, root], + edges: [{ id: 'outer-wire', source: leaf.id, sourceHandle: 'output', target: root.id, targetHandle: 'text-input' }], + }; + const before = structuredClone(graph); + const draft = creation.createUserBlockDraftV2(graph, []); + assert.equal(draft.ok, true); + const prepared = creation.prepareUserBlockCreationV2(draft, draft.block); + const definition = prepared.definition; + assert.equal(definition.previews.length, 2); + assert.deepEqual( + definition.previews.filter((preview) => preview.primary).map((preview) => preview.nodeId), + ['outer-text'], + ); + assert.equal( + definition.graph.nodes.find((node) => node.containerInterface).containerInterface.previews[0].primary, + true, + ); + const execution = runtime.expandBlockGraphV2ForExecution(prepared.graph.nodes, prepared.graph.edges); + const leaves = execution.nodes.filter((node) => node.data.action === 'Text'); + assert.equal(leaves.length, 2); + assert.equal(execution.edges.length, 1); + const outer = leaves.find((node) => node.data.params.text.value === 'outer edit'); + const nested = leaves.find((node) => node.data.params.text.value === 'nested edit'); + assert.ok(outer); + assert.ok(nested); + assert.equal(execution.edges[0].source, outer.id); + assert.equal(execution.edges[0].target, nested.id); + assert.deepEqual(graph, before); +}); + test('outside LoRA connects to an undeclared internal input and survives collapse, persistence and explicit moves', async () => { const crossing = await server.ssrLoadModule('/src/studio/blockCrossingConnectionsV2.ts'); const persistence = await server.ssrLoadModule('/src/studio/blockDefinitionPersistenceV2.ts'); @@ -2229,6 +2348,161 @@ test('saved Block previews resolve exact retained media without changing graph o assert.equal(reopened.nodes[0].data.blockInstanceV2.previewStates[0].mediaReference, output.url); }); +test('retained Block text stays text and only an exact current slot advances its task', async () => { + const { withDurableBlockPreviewsV2 } = await server.ssrLoadModule('/src/studio/blockPreviewPersistenceV2.ts'); + const users = await server.ssrLoadModule('/src/studio/userBlocks.ts'); + const creation = await server.ssrLoadModule('/src/studio/userBlockCreationV2.ts'); + const leaf = { + id: 'text-leaf', + selected: true, + position: { x: 0, y: 0 }, + type: 'custom', + data: { + label: 'Text', + module: 'modules.Primitive', + action: 'Text', + type: 'Text', + params: { + text: { type: 'str', display: 'textarea', value: 'Original text' }, + output: { type: 'str', display: 'output' }, + preview: { type: 'text', display: 'ui_text', dataSource: 'output', hidden: true }, + }, + }, + }; + const draft = users.createUserBlockFromSelection({ nodes: [leaf], edges: [] }, 'Text Block'); + const prepared = creation.prepareUserBlockCreationV2(draft, draft.block); + const root = prepared.graph.nodes.find((node) => node.data.blockInstanceV2); + const binding = root.data.blockInstanceV2.previewStates[0].binding; + const original = runtime.setBlockPreviewStateV2(root.data.blockInstanceV2, binding, { + taskId: 'text-task', + mediaReference: 'Original text', + status: 'complete', + }); + const nodes = [runtime.createBlockRootNodeV2(original)]; + const output = { + id: 'text-output', + taskId: 'text-task', + displayType: 'text', + nodeId: runtime.blockProjectionNodeIdV2(root.id, binding.nodeId), + fieldKey: binding.outputPortId, + value: ['Original text'], + url: '/file?file=retained.txt', + backendMediaPath: '@data/retained.txt', + mediaItems: [{ value: ['Original text'], url: '/file?file=retained.txt', backendPath: '@data/retained.txt' }], + }; + assert.equal(withDurableBlockPreviewsV2(nodes, [output]), nodes); + const broken = [ + { + ...nodes[0], + data: { + ...nodes[0].data, + blockInstanceV2: { + ...original, + previewStates: original.previewStates.map((preview) => ({ ...preview, mediaReference: output.url })), + }, + }, + }, + ]; + assert.equal( + withDurableBlockPreviewsV2(broken, [output])[0].data.blockInstanceV2.previewStates[0].mediaReference, + 'Original text', + ); + assert.equal(withDurableBlockPreviewsV2(broken, [{ ...output, fieldKey: 'other' }]), broken); + const newer = { ...output, id: 'new-text', taskId: 'new-task', value: ['Edited text', 'Second text'] }; + const slot = { + workflowTabId: 'text-workflow', + nodeId: output.nodeId, + fieldKey: output.fieldKey, + status: 'ready', + currentOutputId: newer.id, + }; + const current = { workflowTabId: 'text-workflow', previewSlots: { slot } }; + const refreshed = withDurableBlockPreviewsV2(nodes, [newer, output], current); + assert.equal(refreshed[0].data.blockInstanceV2.previewStates[0].mediaReference, 'Edited text'); + assert.equal(refreshed[0].data.blockInstanceV2.previewStates[0].taskId, 'new-task'); + assert.equal(withDurableBlockPreviewsV2(nodes, [newer], { ...current, workflowTabId: 'other' }), nodes); + assert.equal(withDurableBlockPreviewsV2(nodes, [newer]), nodes); +}); + +test('newly created Blocks expose editable text but exclude output preview controls', async () => { + const users = await server.ssrLoadModule('/src/studio/userBlocks.ts'); + const leaf = { + id: 'text-leaf', + selected: true, + position: { x: 0, y: 0 }, + type: 'custom', + data: { + label: 'Text', + module: 'modules.Primitive', + action: 'Text', + type: 'Text', + params: { + text: { type: 'str', display: 'textarea', value: 'Editable text' }, + output: { type: 'str', display: 'output' }, + preview: { type: 'text', display: 'ui_text', dataSource: 'output', value: 'Old preview' }, + }, + }, + }; + const draft = users.createUserBlockFromSelection({ nodes: [leaf], edges: [] }, 'Text Block'); + assert.equal(draft.ok, true); + assert.deepEqual( + draft.block.exposedParams.map((param) => param.paramKey), + ['text'], + ); + assert.ok(Object.values(draft.blockNode.data.params).some((param) => param.display === 'ui_text')); + assert.equal(leaf.data.params.preview.value, 'Old preview'); +}); + +test('legacy exposed preview controls project current instance output without rewriting their contract', async () => { + const users = await server.ssrLoadModule('/src/studio/userBlocks.ts'); + const creation = await server.ssrLoadModule('/src/studio/userBlockCreationV2.ts'); + const leaf = { + id: 'legacy-text', + selected: true, + position: { x: 0, y: 0 }, + type: 'custom', + data: { + label: 'Text', + module: 'modules.Primitive', + action: 'Text', + type: 'Text', + params: { + text: { type: 'str', display: 'textarea', value: 'Text input' }, + output: { type: 'str', display: 'output' }, + preview: { + type: 'text', + display: 'ui_text', + dataSource: 'output', + value: 'Old preview', + artifacts: [{ url: 'Old preview', taskId: 'old-task' }], + }, + }, + }, + }; + const draft = users.createUserBlockFromSelection({ nodes: [leaf], edges: [] }, 'Legacy Text'); + draft.block.exposedParams.push({ + id: 'legacy-preview-control', + kind: 'graph-param', + label: 'Preview', + nodeId: leaf.id, + paramKey: 'preview', + }); + const prepared = creation.prepareUserBlockCreationV2(draft, draft.block); + const root = prepared.graph.nodes.find((node) => node.data.blockInstanceV2); + const original = root.data.blockInstanceV2; + const changed = runtime.setBlockPreviewStateV2(original, original.previewStates[0].binding, { + taskId: 'new-task', + mediaReference: 'Current preview', + status: 'complete', + }); + const control = Object.values(runtime.blockControlParamsV2(changed)).find((param) => param.display === 'ui_text'); + assert.equal(control.value, 'Current preview'); + assert.deepEqual(control.artifacts, []); + assert.deepEqual(changed.definitionSnapshot, original.definitionSnapshot); + assert.deepEqual(changed.effectiveGraph, original.effectiveGraph); + assert.deepEqual(changed.values, original.values); +}); + test('preview updates remain instance-local run state and preserve semantic authority', () => { const current = instance('preview-instance', { prompt: 'preview prompt', steps: 8 }); const authorized = schema.normalizeBlockInstanceV2({ diff --git a/scripts/compatibility-panel.test.mjs b/scripts/compatibility-panel.test.mjs new file mode 100644 index 00000000..5e1a09f1 --- /dev/null +++ b/scripts/compatibility-panel.test.mjs @@ -0,0 +1,73 @@ +import assert from 'node:assert/strict'; +import { after, before, test } from 'node:test'; +import path from 'node:path'; +import { fileURLToPath } from 'node:url'; +import React from 'react'; +import { renderToStaticMarkup } from 'react-dom/server'; +import { createServer } from 'vite'; + +const ROOT = path.resolve(path.dirname(fileURLToPath(import.meta.url)), '..'); +let server; +let Panel; +let studio; + +before(async () => { + globalThis.window = { location: { origin: 'http://127.0.0.1:5191' } }; + server = await createServer({ + root: ROOT, + configFile: false, + logLevel: 'silent', + optimizeDeps: { entries: [], noDiscovery: true }, + server: { middlewareMode: true, watch: null }, + appType: 'custom', + }); + Panel = (await server.ssrLoadModule('/src/components/CompatibilityPanel.tsx')).default; + studio = (await server.ssrLoadModule('/src/stores/useStudioStore.ts')).useStudioStore; + // SSR uses the store's initial snapshot. Render the explicitly configured + // fixture rather than hydration defaults; no browser/application store is changed. +}); +after(async () => { + await server?.close(); +}); + +const binding = { + mode: 'text_to_image', + modelType: 'ZImageModularPipeline', + nodes: {}, + managedNodeIds: [], + managedEdgeIds: [], + fingerprint: 'managed-resource-fixture', + createdAt: 1, + updatedAt: 1, + controlled: { contractIds: ['lora.diffusers-image.v1'] }, +}; + +for (const selected of [false, true]) { + test(`managed resources include a whole-workflow check with selected model ${selected}`, () => { + const candidate = { id: 'primary-recipe', modelRepo: 'test/model', proof: { status: 'live_proven' } }; + Object.assign(studio.getInitialState(), { + graphBinding: binding, + autoResourcePlan: selected + ? { + schemaVersion: 1, + candidates: [candidate], + selectedCandidate: candidate, + } + : null, + }); + const markup = renderToStaticMarkup(React.createElement(Panel)); + assert.equal(markup.includes('data-testid="workflow-resource-assessment"'), true); + assert.equal(markup.includes('data-testid="plan-workflow-auto"'), true); + assert.equal(markup.includes('Whole workflow'), true); + if (selected) { + assert.equal(markup.includes('Base recipe ran here'), true); + assert.equal(markup.includes('test/model'), true); + } + }); +} + +test('ordinary resources retain exactly one whole-workflow assessment', () => { + Object.assign(studio.getInitialState(), { graphBinding: null, autoResourcePlan: null }); + const markup = renderToStaticMarkup(React.createElement(Panel)); + assert.equal((markup.match(/data-testid="workflow-resource-assessment"/g) ?? []).length, 1); +}); diff --git a/scripts/graph-visuals.test.mjs b/scripts/graph-visuals.test.mjs index a5acebec..c84d9317 100644 --- a/scripts/graph-visuals.test.mjs +++ b/scripts/graph-visuals.test.mjs @@ -3565,8 +3565,8 @@ test('backend execution specs materialize exact image, video, and audio recipes const i2vGenerate = i2vNodes.find((item) => item.id === i2vBinding.nodes.wanGenerate).data.params; const i2vImage = i2vNodes.find((item) => item.id === i2vBinding.nodes.loadImage).data.params; assert.deepEqual(i2vQuantization.components.value, ['transformer', 'transformer_2']); - assert.equal(i2vRecipe.attention_backend.value, '_native_flash'); - assert.equal(i2vRecipe.attention_components.value, 'transformer,transformer_2'); + assert.equal(i2vRecipe.attention_backend.value, 'auto'); + assert.equal(i2vRecipe.attention_components.value, ''); assert.equal(i2vRecipe.vae_tiling.value, true); assert.equal(i2vPipeline.pipeline_class.value, 'WanImageToVideoPipeline'); assert.deepEqual(i2vPipeline.model_id.value, { @@ -3614,8 +3614,8 @@ test('backend execution specs materialize exact image, video, and audio recipes assert.equal(ti2vPipeline.revision.value, 'b8fff7315c768468a5333511427288870b2e9635'); assert.equal(ti2vPipeline.execution_profile_id.value, 'wan-22-ti2v-5b:direct'); const ti2vRecipe = ti2vNodes.find((item) => item.id === ti2vBinding.nodes.diffusersRecipe).data.params; - assert.equal(ti2vRecipe.attention_backend.value, '_native_flash'); - assert.equal(ti2vRecipe.attention_components.value, 'transformer'); + assert.equal(ti2vRecipe.attention_backend.value, 'auto'); + assert.equal(ti2vRecipe.attention_components.value, ''); assert.equal(ti2vRecipe.vae_tiling.value, true); const ti2vGenerate = ti2vNodes.find((item) => item.id === ti2vBinding.nodes.wanGenerate).data.params; assert.equal(ti2vGenerate.scheduler_flow_shift.value, 5); diff --git a/scripts/modiff-template.test.mjs b/scripts/modiff-template.test.mjs index e7547735..54415c35 100644 --- a/scripts/modiff-template.test.mjs +++ b/scripts/modiff-template.test.mjs @@ -169,6 +169,31 @@ test('an installed Expert-only artifact remains ready in Model Manager without a assert.equal(autoResourceModule.modelInstallIsReady(false, expertOnlyPlan), false); }); +test('model Ready detail follows complete Auto artifacts instead of an incomplete install destination', () => { + const missing = 'The installed snapshot does not include the exact revision and files required by this workflow'; + const plan = { + error: false, + selectedCandidate: { + id: 'complete-external-snapshot', + installed: true, + artifactStatus: { installed: true, complete: true }, + artifactValidation: { repairRequired: false }, + }, + }; + assert.equal(autoResourceModule.modelInstallIsReady(false, plan), true); + assert.equal( + autoResourceModule.modelInstallReadyReason(false, missing, plan), + 'Required model artifacts are complete and available for this workflow.', + ); + assert.equal( + autoResourceModule.modelInstallReadyReason(true, 'Available in the configured cache', plan), + 'Available in the configured cache', + ); + const incomplete = { ...plan, selectedCandidate: { ...plan.selectedCandidate, artifactStatus: { complete: false } } }; + assert.equal(autoResourceModule.modelInstallIsReady(false, incomplete), false); + assert.equal(autoResourceModule.modelInstallReadyReason(false, missing, incomplete), null); +}); + test('every public Studio template resolves an exact canonical workflow contract', async () => { const manifest = JSON.parse( await readFile(path.join(ROOT, '..', 'MoDiff', 'data', 'workflow-library-manifest.json'), 'utf8'), diff --git a/scripts/node-store-requests.test.mjs b/scripts/node-store-requests.test.mjs index b8f27d36..07eb2099 100644 --- a/scripts/node-store-requests.test.mjs +++ b/scripts/node-store-requests.test.mjs @@ -19,6 +19,7 @@ let studioStoreModule; let flowStoreModule; let originalFetch; let controlModule; +let websocketMessagesModule; function requestStates() { return Object.fromEntries( @@ -55,6 +56,7 @@ before(async () => { studioStoreModule = await server.ssrLoadModule('/src/stores/useStudioStore.ts'); nodesStoreModule = await server.ssrLoadModule('/src/stores/useNodeStore.ts'); controlModule = await server.ssrLoadModule('/src/utils/supervisorControl.ts'); + websocketMessagesModule = await server.ssrLoadModule('/src/stores/websocketMessageHandler.ts'); operationContractsModule = await server.ssrLoadModule('/src/workflow/operationContracts.ts'); optionalRuntimesModule = await server.ssrLoadModule('/src/studio/optionalRuntimes.ts'); runReadinessModule = await server.ssrLoadModule('/src/studio/runReadiness.ts'); @@ -2071,6 +2073,36 @@ test('a stale runtime response cannot overwrite current worker-control discovery assert.equal(controlModule.supervisorControlAddress(), 'http://127.0.0.1:43001'); }); +test('a replacement worker welcome refreshes runtime readiness and fences the old response', async () => { + const oldRead = deferred(); + const replacementRead = deferred(); + let runtimeReads = 0; + nodesStoreModule.useNodesStore.setState({ + instance: 'old-worker', + runtimeStatus: { ready: false, packages: { transformers: { available: false } } }, + }); + globalThis.fetch = (url) => { + const pathname = new URL(url).pathname; + if (pathname === '/runtime/status') return ++runtimeReads === 1 ? oldRead.promise : replacementRead.promise; + if (pathname === '/nodes') return Promise.resolve(jsonResponse({ nodes: {}, instance: 'replacement-worker' })); + if (pathname === '/studio_outputs') return Promise.resolve(jsonResponse({ outputs: [] })); + throw new Error(`Unexpected request: ${pathname}`); + }; + const older = nodesStoreModule.useNodesStore.getState().fetchRuntimeStatus(); + websocketMessagesModule.handleWebsocketMessage( + { type: 'welcome', sid: 'same-session', instance: 'replacement-worker', current: null, queued: {}, recent: [] }, + { sid: 'same-session', setSid: () => {}, getSid: () => 'same-session', setLoopTimer: () => {} }, + ); + const welcomeRuntimeReads = runtimeReads; + replacementRead.resolve(jsonResponse({ ready: true, packages: { transformers: { available: true } } })); + for (let turn = 0; turn < 10; turn++) await new Promise((resolve) => setImmediate(resolve)); + oldRead.resolve(jsonResponse({ ready: false, packages: { transformers: { available: false } } })); + await older; + assert.equal(welcomeRuntimeReads, 2); + assert.equal(nodesStoreModule.useNodesStore.getState().runtimeStatus.ready, true); + assert.equal(nodesStoreModule.useNodesStore.getState().runtimeStatus.packages.transformers.available, true); +}); + test('runtime fingerprint changes invalidate every cached Auto plan', async () => { const cachedPlan = { status: 'ready', checkedAt: 1 }; studioStoreModule.useStudioStore.setState({ diff --git a/scripts/registered-block-v2-insertion.test.mjs b/scripts/registered-block-v2-insertion.test.mjs index 967928b2..cdc31710 100644 --- a/scripts/registered-block-v2-insertion.test.mjs +++ b/scripts/registered-block-v2-insertion.test.mjs @@ -3,6 +3,7 @@ import { createHash } from 'node:crypto'; import { after, before, beforeEach, test } from 'node:test'; import path from 'node:path'; import { fileURLToPath } from 'node:url'; +import { readFileSync } from 'node:fs'; import { createServer } from 'vite'; const ROOT = path.resolve(path.dirname(fileURLToPath(import.meta.url)), '..'); @@ -1279,6 +1280,31 @@ test('a fresh Qwen registered route rejects matching stale ambient defaults and ); }); +test('fresh CTC catalog insertion preserves its declared word timestamps instead of generic segment defaults', async () => { + const fixture = JSON.parse(readFileSync(path.join(ROOT, 'tests/fixtures/ctc-catalog-insertion.v1.json'), 'utf8')); + const definition = fixture.catalogDefinition; + const entry = fixture.compiledEntry; + libraryStore.useHuggingFaceNodeLibraryStore.setState({ + library: fixtureLibrary([definition], []), + loaded: true, + error: null, + }); + globalThis.fetch = async (url) => { + assert.ok(String(url).includes('/huggingface/registered-block-v2?')); + return new Response(JSON.stringify({ error: false, schemaVersion: 1, entry }), { + status: 200, + headers: { 'Content-Type': 'application/json' }, + }); + }; + const ambient = modelProfiles.getFormDefaultsForRegisteredRoute('speech_to_text', definition.pipelineClass); + assert.equal(ambient.speechTimestamps, 'segment'); + assert.equal(entry.values.timestamps, 'word'); + const root = await insertion.createHuggingFaceClusterForGraph(definition, { x: 80, y: 90 }, ambient); + assert.equal(root.data.blockInstanceV2.values.timestamps, 'word'); + assert.deepEqual(root.data.blockInstanceV2.definitionSnapshot, entry.definition); + assert.equal(blockRuntime.blockViewModelV2(root.data.blockInstanceV2).controlParams.timestamps.value, 'word'); +}); + test('a backend-defined route without a legacy Studio profile retains compiled creator defaults', async () => { const configured = fixture(); const witness = configureFixture(configured); diff --git a/scripts/registered-block-v2-route-audit.test.mjs b/scripts/registered-block-v2-route-audit.test.mjs index 006a59d3..44aa6ce3 100644 --- a/scripts/registered-block-v2-route-audit.test.mjs +++ b/scripts/registered-block-v2-route-audit.test.mjs @@ -91,6 +91,7 @@ web._runtime_choice_capabilities_cache = build_runtime_capabilities( torch_module=SimpleNamespace( version=SimpleNamespace(hip="reviewed-contract", cuda=None), cuda=SimpleNamespace(is_bf16_supported=lambda: True), + backends=SimpleNamespace(cuda=SimpleNamespace(is_flash_attention_available=lambda: True)), nn=SimpleNamespace(attention=object()), ), package_available=lambda _name: False, diff --git a/scripts/run-activity.test.mjs b/scripts/run-activity.test.mjs index 337f15f2..6c9d9fe7 100644 --- a/scripts/run-activity.test.mjs +++ b/scripts/run-activity.test.mjs @@ -16,6 +16,26 @@ let taskStoreModule; let server; let originalFetch; +test('Queue terminal details supersede stale progress while retaining failure diagnostics', () => { + const stale = { + message: 'Running modules.Primitive.DataViewer', + phase: 'executing', + current_step: 2, + total_steps: 4, + }; + assert.equal(activityModule.runActivityDetailForTask({ ...stale, status: 'completed' }), 'Completed'); + assert.equal(activityModule.runActivityDetailForTask({ ...stale, status: 'cancelled' }), 'Cancelled'); + assert.equal( + activityModule.runActivityDetailForTask({ ...stale, status: 'failed', error: 'Load failed' }), + 'Load failed', + ); + assert.equal( + activityModule.runActivityDetailForTask({ status: 'failed', message: 'Worker exited' }), + 'Worker exited', + ); + assert.match(activityModule.runActivityDetailForTask({ ...stale, status: 'running' }), /Running|2/u); +}); + before(async () => { const storage = new Map(); globalThis.localStorage = { @@ -256,7 +276,134 @@ test('same-text run notifications remain individually actionable by task', () => ); }); -test('the browser crash checkpoint remains bounded and always retains the active workflow', () => { +test('the browser checkpoint preserves every dirty document beyond twelve tabs', () => { + const tabs = Array.from({ length: 15 }, (_, index) => ({ + id: `unsaved-${index}`, + title: `Unsaved ${index}`, + createdAt: index, + updatedAt: index, + dirty: true, + source: 'manual', + snapshot: { + nodes: [ + { + id: `text-${index}`, + position: { x: index, y: 0 }, + type: 'custom', + data: { module: 'modules.Primitive', action: 'Text', params: { value: { value: `Keep ${index}` } } }, + }, + ], + edges: [{ id: `wire-${index}`, source: `text-${index}`, target: `viewer-${index}` }], + }, + })); + const checkpoint = studioStoreModule.workflowTabsForLocalCheckpoint(tabs, 'unsaved-14'); + assert.deepEqual(checkpoint, tabs); + const store = studioStoreModule.useStudioStore; + const before = store.getState(); + try { + store.setState({ workflowTabs: tabs, activeWorkflowTabId: 'unsaved-14' }); + assert.deepEqual(JSON.parse(localStorage.getItem('modiff.studio')).state.workflowTabs, tabs); + } finally { + store.setState(before); + } +}); + +test('checkpoint quota failure visibly requests preservation and clears only after a successful write', () => { + const write = localStorage.setItem; + const warn = console.warn; + const store = studioStoreModule.useStudioStore; + const messages = []; + try { + console.warn = (...args) => messages.push(args); + localStorage.setItem = () => { + throw new DOMException('Full', 'QuotaExceededError'); + }; + store.setState({ launcherDismissed: true }); + store.setState({ launcherDismissed: false }); + const warnings = snackbarModule.getToastItems().filter((item) => item.id === 'studio-checkpoint-write-failed'); + assert.equal(warnings.length, 1); + assert.equal(warnings[0].persist, true); + assert.match(warnings[0].message, /Save or export unsaved workflows before refreshing/); + localStorage.setItem = write; + store.setState({ launcherDismissed: true }); + assert.equal( + snackbarModule.getToastItems().some((item) => item.id === 'studio-checkpoint-write-failed'), + false, + ); + } finally { + localStorage.setItem = write; + console.warn = warn; + store.setState({ launcherDismissed: false }); + } +}); + +for (const label of ['flow', 'settings']) { + test(`${label} mutations survive checkpoint quota failures with a visible preservation warning`, () => { + const store = label === 'flow' ? flowStoreModule.useFlowStore : settingsStoreModule.useSettingsStore; + const before = store.getState(); + const write = localStorage.setItem; + const warn = console.warn; + const mutation = label === 'flow' ? { viewport: { x: 17, y: 19, zoom: 0.75 } } : { isRightPanelOpen: false }; + try { + console.warn = () => {}; + localStorage.setItem = () => { + throw new DOMException('Full', 'QuotaExceededError'); + }; + assert.doesNotThrow(() => store.setState(mutation)); + for (const [key, value] of Object.entries(mutation)) assert.deepEqual(store.getState()[key], value); + assert.equal( + snackbarModule.getToastItems().filter((item) => item.id === 'studio-checkpoint-write-failed').length, + 1, + ); + } finally { + localStorage.setItem = write; + console.warn = warn; + store.setState(before); + } + }); +} + +test('checkpoint warning clears only after every failed namespace has recovered', () => { + const flow = flowStoreModule.useFlowStore; + const settings = settingsStoreModule.useSettingsStore; + const studio = studioStoreModule.useStudioStore; + const before = [flow.getState(), settings.getState(), studio.getState()]; + const write = localStorage.setItem; + const warn = console.warn; + const failed = new Set(['modiff.flow', 'modiff.settings']); + try { + console.warn = () => {}; + localStorage.setItem = (name, value) => { + if (failed.has(name)) throw new DOMException('Full', 'QuotaExceededError'); + return write.call(localStorage, name, value); + }; + assert.doesNotThrow(() => flow.setState({ viewport: { x: 17, y: 19, zoom: 0.75 } })); + assert.doesNotThrow(() => settings.setState({ isRightPanelOpen: false })); + studio.setState({ launcherDismissed: true }); + assert.equal( + snackbarModule.getToastItems().filter((item) => item.id === 'studio-checkpoint-write-failed').length, + 1, + ); + failed.delete('modiff.flow'); + flow.setState(before[0]); + assert.equal( + snackbarModule.getToastItems().some((item) => item.id === 'studio-checkpoint-write-failed'), + true, + ); + failed.delete('modiff.settings'); + settings.setState(before[1]); + assert.equal( + snackbarModule.getToastItems().some((item) => item.id === 'studio-checkpoint-write-failed'), + false, + ); + } finally { + localStorage.setItem = write; + console.warn = warn; + [flow, settings, studio].forEach((store, index) => store.setState(before[index])); + } +}); + +test('the browser crash checkpoint bounds saved tabs and retains every dirty and active workflow', () => { const tabs = Array.from({ length: 40 }, (_, index) => ({ id: `workflow-${index}`, title: `Workflow ${index}`, @@ -268,8 +415,13 @@ test('the browser crash checkpoint remains bounded and always retains the active })); const checkpoint = studioStoreModule.workflowTabsForLocalCheckpoint(tabs, 'workflow-2'); - assert.equal(checkpoint.length, 12); + assert.equal(checkpoint.length, 15); assert.ok(checkpoint.some((tab) => tab.id === 'workflow-2')); + assert.ok(tabs.filter((tab) => tab.dirty).every((tab) => checkpoint.includes(tab))); + const savedTabs = tabs.map((tab) => ({ ...tab, dirty: false })); + const savedCheckpoint = studioStoreModule.workflowTabsForLocalCheckpoint(savedTabs, 'workflow-2'); + assert.equal(savedCheckpoint.length, 12); + assert.ok(savedCheckpoint.some((tab) => tab.id === 'workflow-2')); assert.deepEqual( checkpoint, tabs.filter((tab) => checkpoint.includes(tab)), diff --git a/scripts/run-coordinator.test.mjs b/scripts/run-coordinator.test.mjs index 8d04f3b1..1f64be63 100644 --- a/scripts/run-coordinator.test.mjs +++ b/scripts/run-coordinator.test.mjs @@ -3411,6 +3411,69 @@ function workflowPlan(ready) { }; } +test('managed Studio Auto checks the complete execution graph and refuses before submission', async () => { + studioStoreModule.useStudioStore.setState({ + form: { ...studioStoreModule.useStudioStore.getState().form, resourceMode: 'auto' }, + graphBinding: { + mode: 'text_to_image', + modelType: 'ZImageModularPipeline', + nodes: { preview: 'preview' }, + managedNodeIds: ['preview'], + managedEdgeIds: [], + fingerprint: 'managed-auto', + createdAt: 1, + updatedAt: 1, + }, + }); + const requests = []; + globalThis.fetch = async (url, init) => { + requests.push({ url: String(url), body: JSON.parse(init.body) }); + return String(url).endsWith('/auto_resource/workflow') + ? jsonResponse(workflowPlan(false)) + : jsonResponse({ task_id: 'must-not-submit', sid: 'session-1', message: 'queued' }); + }; + await assert.rejects( + coordinatorModule.coordinateGraphRun({ + sid: 'session-1', + preparedGraph: graph(), + studioContext: { clearChangedPreviews: false }, + }), + /No reviewed recipe/, + ); + assert.equal(requests.length, 1); + assert.ok(requests[0].url.endsWith('/auto_resource/workflow')); + assert.deepEqual(requests[0].body.graph.nodes, graph().nodes); + assert.equal(studioStoreModule.useStudioStore.getState().currentRunContext, null); + assert.equal(Object.keys(taskStoreModule.useTaskStore.getState().queuedTasks).length, 0); +}); + +test('managed Studio Auto retains the whole graph receipt and correlation through runtime metadata', async () => { + studioStoreModule.useStudioStore.setState({ + form: { ...studioStoreModule.useStudioStore.getState().form, resourceMode: 'auto' }, + }); + const requests = []; + globalThis.fetch = async (url, init) => { + requests.push({ url: String(url), body: JSON.parse(init.body) }); + return String(url).endsWith('/auto_resource/workflow') + ? jsonResponse(workflowPlan(true)) + : jsonResponse({ task_id: 'managed-whole-auto', sid: 'session-1', message: 'queued' }); + }; + const result = await coordinatorModule.coordinateGraphRun({ + sid: 'session-1', + preparedGraph: graph(), + studioContext: { clearChangedPreviews: false }, + }); + assert.equal(requests.length, 2); + assert.ok(requests[0].url.endsWith('/auto_resource/workflow')); + assert.ok(requests[1].url.endsWith('/graph')); + assert.equal(result.submittedGraph.runtimeHints.workflowAutoPlan.graphHash, workflowPlan(true).plannedGraphHash); + assert.equal(result.submittedGraph.runtimeHints.resourceMode, 'auto'); + assert.equal(result.submittedGraph.runtimeHints.source, 'studio'); + assert.equal(result.submittedGraph.runtimeHints.clientRunId, result.context.clientRunId); + assert.equal(result.submittedGraph.runtimeHints.runInputHash, result.context.runInputHash); + assert.equal(result.response.task_id, 'managed-whole-auto'); +}); + test('Auto refuses a stale plan if the workflow changes while planning', async () => { studioStoreModule.useStudioStore.setState({ form: { ...studioStoreModule.useStudioStore.getState().form, resourceMode: 'auto' }, diff --git a/scripts/template-operation-workflows.test.mjs b/scripts/template-operation-workflows.test.mjs index e6df0a52..f76d5a41 100644 --- a/scripts/template-operation-workflows.test.mjs +++ b/scripts/template-operation-workflows.test.mjs @@ -18,6 +18,25 @@ let server, studioStore, lifecycle; let publicOperations, starterRequests, qwenInpaintCandidate, qwenInpaintCandidateFixture; +const automaticAttentionZTemplates = new Set([ + 'z_image_quick_concept', + 'z_image_product_mockup', + 'z_image_poster', + 'z_image_lora_style', + 'z_image_cinematic_contact_sheet', + 'low_vram', + 'fast_lora', +]); +test('fresh Z recipes use automatic attention without changing VAE or adapter controls', () => { + for (const id of automaticAttentionZTemplates) { + const template = templates.find((item) => item.id === id); + assert.deepEqual(template.executionSelection.componentPolicy, { + attentionBackend: 'auto', + vaeSlicing: true, + vaeTiling: true, + }); + } +}); before(async () => { const storage = new Map(); globalThis.localStorage = { @@ -327,8 +346,10 @@ test('all image templates select an exact developer operation recipe without cha if (template.executionSelection.implementation === 'native_stages') assert.deepEqual( template.executionSelection.componentPolicy ?? null, - expected.originalComponentPolicy, - `${template.id} preserves exactly its original component policy`, + automaticAttentionZTemplates.has(template.id) + ? { ...expected.originalComponentPolicy, attentionBackend: 'auto' } + : expected.originalComponentPolicy, + `${template.id} retains its reviewed component policy`, ); } }); @@ -401,6 +422,36 @@ function selectedForm(template) { }; } +test('shared execution bindings do not infer forced flash from a CUDA device', async () => { + const cluster = await server.ssrLoadModule('/src/studio/huggingFaceClusterRuntime.ts'); + const form = { ...defaults, device: 'cuda:0', attentionBackend: 'auto' }; + const spec = { bindings: [], autoFields: [], defaultRepo: 'reviewed/model' }; + const admission = { executionParameterSources: ['nativeFlashAttention', 'transformer', 'dualTransformer'] }; + for (const policy of ['auto', '_native_math', '_native_flash']) { + const authored = { ...form, attentionBackend: policy }; + const expected = { + nativeFlashAttention: policy, + transformer: policy === '_native_flash' ? 'transformer' : '', + dualTransformer: policy === '_native_flash' ? 'transformer,transformer_2' : '', + }; + const resolved = values.resolveStudioExecutionSpecValues(authored, spec, undefined); + assert.deepEqual(Object.fromEntries(Object.keys(expected).map((key) => [key, resolved[key]])), expected); + assert.deepEqual( + cluster.huggingFaceClusterExecutionParameterValues(admission, authored, null, ['transformer'], '', false), + expected, + ); + } + const candidate = { attentionBackend: 'native' }; + assert.equal( + values.resolveStudioExecutionSpecValues(form, spec, undefined, { candidate }).nativeFlashAttention, + 'native', + ); + assert.equal( + cluster.huggingFaceClusterExecutionParameterValues(admission, form, candidate).nativeFlashAttention, + 'native', + ); +}); + test('all seven converted Z recipes bind the authored negative text to the real guided encoder', async (t) => { const converted = templates.filter( (template) => template.executionSelection?.pipelineClass === 'ZImageModularPipeline', diff --git a/scripts/websocket-connection.test.mjs b/scripts/websocket-connection.test.mjs index c30ad02d..a247a28d 100644 --- a/scripts/websocket-connection.test.mjs +++ b/scripts/websocket-connection.test.mjs @@ -16,6 +16,7 @@ let sockets; let probes; let timers; let nextTimer; +let nodeStore, originalRuntimeRead, runtimeReads; class FakeSocket { static CONNECTING = 0; @@ -78,6 +79,8 @@ before(async () => { appType: 'custom', }); store = (await server.ssrLoadModule('/src/stores/useWebsocketStore.ts')).useWebsocketStore; + nodeStore = (await server.ssrLoadModule('/src/stores/useNodeStore.ts')).useNodesStore; + originalRuntimeRead = nodeStore.getState().fetchRuntimeStatus; }); beforeEach(() => { @@ -86,6 +89,12 @@ beforeEach(() => { probes = []; timers = new Map(); nextTimer = 0; + runtimeReads = 0; + nodeStore.setState({ + fetchRuntimeStatus: async () => { + runtimeReads += 1; + }, + }); globalThis.WebSocket = FakeSocket; globalThis.XMLHttpRequest = LegacyProbe; globalThis.setTimeout = (callback, delay) => { @@ -107,6 +116,7 @@ beforeEach(() => { after(async () => { store?.getState().disconnect(); + nodeStore?.setState({ fetchRuntimeStatus: originalRuntimeRead }); globalThis.fetch = originalFetch; globalThis.WebSocket = originalWebSocket; globalThis.XMLHttpRequest = originalXhr; @@ -149,6 +159,32 @@ test('a successful response with an unready or malformed health payload does not } }); +test('an unready replacement health instance refreshes runtime once without reconnecting', async () => { + const probe = enterHealthRecovery(); + probe.respond(200, { error: false, ready: false, instance: 'broken-worker' }); + await settle(); + assert.equal(runtimeReads, 1); + assert.equal(sockets.length, 1); + const retry = [...timers.entries()].find(([, timer]) => timer.delay >= 2000 && timer.delay <= 3000); + timers.delete(retry[0]); + retry[1].callback(); + probes.at(-1).respond(200, { error: false, ready: false, instance: 'broken-worker' }); + await settle(); + assert.equal(runtimeReads, 1, 'Repeated unready probes must not repeatedly read runtime metadata'); + assert.equal(sockets.length, 1); +}); + +test('a stale unready health response cannot refresh runtime for a newer connection', async () => { + const probe = enterHealthRecovery(); + store.getState().disconnect(); + store.getState().connect(); + sockets.at(-1).open(); + probe.respond(200, { error: false, ready: false, instance: 'stale-worker' }); + await settle(); + assert.equal(runtimeReads, 0); + assert.equal(store.getState().isConnected, true); +}); + test('disconnect aborts its health probe and a late successful response cannot reconnect', async () => { const probe = enterHealthRecovery(); store.getState().disconnect(); diff --git a/src/components/CompatibilityPanel.tsx b/src/components/CompatibilityPanel.tsx index 1d908501..f8ae834d 100644 --- a/src/components/CompatibilityPanel.tsx +++ b/src/components/CompatibilityPanel.tsx @@ -90,13 +90,16 @@ export default function CompatibilityPanel() { if (!selected) { return ( -
-
- - No model substitution + <> + +
+
+ + No model substitution +
+

Select a Studio model to inspect local compatibility.

-

Select a Studio model to inspect local compatibility.

-
+ ); } @@ -236,7 +239,12 @@ export default function CompatibilityPanel() { return ( <> +
+

Selected model

+

+ Model options apply to this selection. Check the whole workflow above before running. +

Automatic memory selects a supported local resource recipe. Custom keeps your configured technical settings. Switching preserves the workflow’s nodes, connections and creative controls. diff --git a/src/components/ModelManagerDialog.tsx b/src/components/ModelManagerDialog.tsx index dcd18ee2..03651c90 100644 --- a/src/components/ModelManagerDialog.tsx +++ b/src/components/ModelManagerDialog.tsx @@ -30,6 +30,7 @@ import { autoResourceInstallTarget, fetchAutoResourcePlans, modelInstallIsReady, + modelInstallReadyReason, type StudioAutoResourceInstallTarget, type StudioAutoResourcePlan, } from '../studio/autoResource'; @@ -397,7 +398,7 @@ function SupportedProfileRow({ ? progress.error : 'This gated Hugging Face repository needs an accepted license and a configured read token.' : ready - ? status.reason + ? (modelInstallReadyReason(status.runnable, status.reason, autoPlan, form) ?? status.reason) : failed && progress?.error ? progress.error : (installTarget?.reason ?? compatibility.detail); diff --git a/src/components/RunQueuePanel.tsx b/src/components/RunQueuePanel.tsx index a43c5a75..ab70569c 100644 --- a/src/components/RunQueuePanel.tsx +++ b/src/components/RunQueuePanel.tsx @@ -10,12 +10,12 @@ import { ModiffButton, ModiffTooltip } from '../ui'; import { openRunActivity, runActivityLabelForTask, + runActivityDetailForTask, runActivityTargetForTask, type RunActivityStatus, } from '../studio/runActivity'; import { useSettingsStore } from '../stores/useSettingsStore'; import { cx } from '../utils/classNames'; -import { executionProgressDetail, executionProgressFrom } from '../studio/executionProgress'; type QueueButtonProps = { children: string; @@ -78,11 +78,7 @@ function RunActivityRow({ }: RunActivityRowProps) { if (!task) return null; const label = runActivityLabelForTask(task, taskId); - const detail = - executionProgressDetail(executionProgressFrom(task)) || - task.error || - task.message || - `${label} · ${fallbackStatus}`; + const detail = runActivityDetailForTask(task, fallbackStatus); return ( content={detail} placement="top"> {(tooltipProps) => ( @@ -317,7 +313,7 @@ export default function RunQueuePanel() { {runActivityLabelForTask(run, run.task_id || run.id)} - {run.error || run.message || run.task_id || run.sid} + {runActivityDetailForTask(run, run.status ?? 'completed')} diff --git a/src/components/Workflow.tsx b/src/components/Workflow.tsx index 4d50dbe7..2c6b1b39 100644 --- a/src/components/Workflow.tsx +++ b/src/components/Workflow.tsx @@ -1184,6 +1184,15 @@ function Workflow() { maxZoom={1.5} colorMode={'dark'} deleteKeyCode={['Backspace', 'Delete']} + onBeforeDelete={async ({ nodes: removedNodes, edges: removedEdges }) => { + // React Flow normally emits edge removal before node removal, which + // would create two history entries for one keyboard action. + useFlowStore.getState().removeElements( + removedNodes.map((node) => node.id), + removedEdges.map((edge) => edge.id), + ); + return false; + }} proOptions={{ hideAttribution: true }} // Composite execution children can be outside the viewport even while // their root is collapsed. Their retained graph edges still require diff --git a/src/stores/flowNodeMutations.ts b/src/stores/flowNodeMutations.ts index 8ba77342..899599c5 100644 --- a/src/stores/flowNodeMutations.ts +++ b/src/stores/flowNodeMutations.ts @@ -39,7 +39,7 @@ export function addFlowNode(node: CustomNodeType, set: FlowStoreSet, get: FlowSt } export function removeFlowNodes(ids: string | string[], set: FlowStoreSet, get: FlowStoreGet) { - removeFlowNodesInvariant(ids, set, get); + return removeFlowNodesInvariant(ids, set, get); } export function removeFlowEdges(ids: string | string[], get: FlowStoreGet) { diff --git a/src/stores/useFlowStore.ts b/src/stores/useFlowStore.ts index 1de8d914..d5be73ab 100644 --- a/src/stores/useFlowStore.ts +++ b/src/stores/useFlowStore.ts @@ -12,6 +12,7 @@ import { nanoid } from 'nanoid'; import type { ApiGraphExport } from '../types/api'; import { migrateLocalStorageKey } from '../utils/persistMigration'; +import { createResilientCheckpointStorage } from '../utils/checkpointStorage'; import { arrangeGraphNodes } from '../workflow/graphLayout'; import { handleConnect, @@ -188,6 +189,7 @@ export type FlowStore = { addNodeWithConnection: (node: CustomNodeType, connection?: CustomConnection) => void; removeNodes: (ids: string | string[]) => void; removeEdges: (id: string | string[]) => void; + removeElements: (nodeIds: string[], edgeIds: string[]) => void; clearWorkflow: () => void; replaceGraph: (replacement: FlowGraphReplacement, options?: ReplaceGraphOptions) => void; getParam: (id: string, param: string, key: K) => NodeParams[K] | null; @@ -1641,6 +1643,13 @@ export const useFlowStore = create()( removeEdges: (ids: string | string[]) => { get().withHistory('Remove edges', () => removeFlowEdges(ids, get)); }, + removeElements: (nodeIds, edgeIds) => { + get().withHistory('Delete selection', () => { + // A rejected Block deletion must also retain the selected wires. + if (!removeFlowNodes(nodeIds, set, get)) return; + removeFlowEdges(edgeIds, get); + }); + }, clearWorkflow: () => { get().withHistory('Clear workflow', () => clearFlowWorkflow(set, get)); useHuggingFaceClusterRuntimeStore.getState().clearAuthorities(); @@ -2668,7 +2677,7 @@ export const useFlowStore = create()( }), { name: FLOW_STORAGE_KEY, - storage: createJSONStorage(() => localStorage), + storage: createJSONStorage(createResilientCheckpointStorage), version: FLOW_STORAGE_VERSION, migrate: (persisted) => normalizePersistedFlowState(persisted), merge: (persisted, current) => ({ diff --git a/src/stores/useSettingsStore.ts b/src/stores/useSettingsStore.ts index 8afb3dd8..1963a22d 100644 --- a/src/stores/useSettingsStore.ts +++ b/src/stores/useSettingsStore.ts @@ -6,6 +6,7 @@ import type { TemplateBrowserCategoryId } from '../studio/templateBrowser'; import type { FocusedModelManagerTarget, WorkspacePanelTab } from '../studio/types'; import type { ImageArtifact } from '../utils/imageArtifacts'; import { migrateLocalStorageKey } from '../utils/persistMigration'; +import { createResilientCheckpointStorage } from '../utils/checkpointStorage'; import type { MediaKind } from '../studio/mediaCapabilities'; import { unifiedWorkspaceSettings } from '../studio/workspaceMode'; @@ -284,7 +285,7 @@ export const useSettingsStore = create localStorage), + storage: createJSONStorage(createResilientCheckpointStorage), merge: (persisted, current) => { const value = unifiedWorkspaceSettings(persisted) as Partial; return { diff --git a/src/stores/useStudioStore.ts b/src/stores/useStudioStore.ts index 21604e30..4d1eefb4 100644 --- a/src/stores/useStudioStore.ts +++ b/src/stores/useStudioStore.ts @@ -49,6 +49,7 @@ import { STUDIO_TEMPLATES, getPreset } from '../studio/templates'; import { adoptManagedWorkflowGraph, inferStudioFormFromWorkflow } from '../studio/workflowInference'; import { migrateLocalStorageKey } from '../utils/persistMigration'; import { createLatestRequestGate, formatRequestError, requestBlob } from '../utils/requestJson'; +import { createResilientCheckpointStorage } from '../utils/checkpointStorage'; import type { MediaArtifact } from '../utils/imageArtifacts'; import { autoPlanKeyForForm, autoResourcePlanTargetMatches, type StudioAutoResourcePlan } from '../studio/autoResource'; import type { @@ -724,9 +725,9 @@ function sameWorkflowDocument(left: WorkflowTab, right: WorkflowTab) { const MAX_LOCAL_WORKFLOW_TABS = 12; /** - * Workflow documents are backend-owned. localStorage is only a bounded crash - * checkpoint for tabs currently in use; mirroring a large saved-workflow - * library here can exceed the browser's per-origin quota. + * Saved workflow documents are backend-owned. Keep their browser checkpoint + * bounded, but retain every dirty document: its unsaved edits may exist only in + * this browser. Preserve the original tab order in both cases. */ export function workflowTabsForLocalCheckpoint(tabs: WorkflowTab[], activeWorkflowTabId: string | null) { const ranked = [...tabs].sort((left, right) => { @@ -736,7 +737,14 @@ export function workflowTabsForLocalCheckpoint(tabs: WorkflowTab[], activeWorkfl return right.updatedAt - left.updatedAt; }); const retained = new Set(ranked.slice(0, MAX_LOCAL_WORKFLOW_TABS)); - return tabs.filter((tab) => retained.has(tab)).slice(0, MAX_LOCAL_WORKFLOW_TABS); + const retainedIds = new Set([...retained].map((tab) => tab.id)); + for (const tab of ranked) { + if (tab.dirty && !retainedIds.has(tab.id)) { + retained.add(tab); + retainedIds.add(tab.id); + } + } + return tabs.filter((tab) => retained.has(tab)).slice(0, Math.max(MAX_LOCAL_WORKFLOW_TABS, retained.size)); } function normalizePersistedStudioState( @@ -1502,20 +1510,6 @@ function isNonEmptyPreviewValue(value: unknown) { const STUDIO_STORAGE_KEY = 'modiff.studio'; migrateLocalStorageKey('studio', STUDIO_STORAGE_KEY); -const resilientStudioStorage = { - getItem: (name: string) => localStorage.getItem(name), - removeItem: (name: string) => localStorage.removeItem(name), - setItem: (name: string, value: string) => { - try { - localStorage.setItem(name, value); - } catch (error) { - // The full documents remain on the backend. A failed browser checkpoint - // must not break tab switching or a notification click. - console.warn('Could not update the local Studio checkpoint; backend workflows remain available.', error); - } - }, -}; - export type WorkflowOperationContext = { workflowTabId: string | null; canvasEpoch: number; @@ -3151,7 +3145,7 @@ export const useStudioStore = create resilientStudioStorage), + storage: createJSONStorage(createResilientCheckpointStorage), partialize: (state) => ({ selectedMode: state.selectedMode, form: state.form, diff --git a/src/stores/useWebsocketStore.ts b/src/stores/useWebsocketStore.ts index 3e09f31b..4e4de790 100644 --- a/src/stores/useWebsocketStore.ts +++ b/src/stores/useWebsocketStore.ts @@ -6,6 +6,7 @@ import config from '../../app.config'; import { useFlowStore } from './useFlowStore'; import { useSettingsStore } from './useSettingsStore'; +import { useNodesStore } from './useNodeStore'; import { handleWebsocketMessage, parseWebsocketMessage } from './websocketMessageHandler'; import { requestJson } from '../utils/requestJson'; import { beginWorkerControlRead, parseWorkerControl, updateWorkerControl } from '../utils/supervisorControl'; @@ -28,6 +29,7 @@ export type WebsocketState = { export const useWebsocketStore = create((set, get) => { let generation = 0; let healthProbe: AbortController | undefined; + let probedRuntimeInstance: string | undefined; const clearPendingConnectionWork = () => { clearTimeout(get().connectionTimer); @@ -56,12 +58,20 @@ export const useWebsocketStore = create((set, get) => { } return { ready: value.ready, + instance: + 'instance' in value && typeof value.instance === 'string' && value.instance.trim() + ? value.instance + : undefined, workerControl: parseWorkerControl('workerControl' in value ? value.workerControl : undefined), }; }, }); if (owner !== generation || controller.signal.aborted) return; updateWorkerControl(status.workerControl, controlRead); + if (status.instance && status.instance !== probedRuntimeInstance) { + probedRuntimeInstance = status.instance; + void useNodesStore.getState().fetchRuntimeStatus(); + } if (!status.ready) throw new Error('The backend is still starting.'); // Only a successful websocket handshake resets its retry budget. get().connect(); @@ -175,6 +185,7 @@ export const useWebsocketStore = create((set, get) => { disconnect: () => { generation += 1; + probedRuntimeInstance = undefined; clearPendingConnectionWork(); const ws = get().ws; set({ diff --git a/src/stores/websocketMessageHandler.ts b/src/stores/websocketMessageHandler.ts index 0551ff05..e5991f3f 100644 --- a/src/stores/websocketMessageHandler.ts +++ b/src/stores/websocketMessageHandler.ts @@ -440,6 +440,10 @@ export function handleWebsocketMessage(message: WebsocketMessage, context: Webso console.info('Websocket sid changed'); } const instance = message.instance ?? ''; + // Reconnect may follow package repair or a worker replacement. Use the + // discovery request gate so an older runtime response cannot restore + // the previous worker's Setup state. + void useNodesStore.getState().fetchRuntimeStatus(); if (instance !== useNodesStore.getState().instance) { const workflowContext = captureWorkflowOperationContext(); const schemaPending = useStudioStore.getState().graphBinding ? markStudioGraphDefinitionPending() : false; diff --git a/src/studio/autoResource.ts b/src/studio/autoResource.ts index 6e9dfe96..61f7f0dc 100644 --- a/src/studio/autoResource.ts +++ b/src/studio/autoResource.ts @@ -611,6 +611,16 @@ export function modelInstallIsReady( return installedRunnable || autoPlanIsReady(plan, form); } +export function modelInstallReadyReason( + installedRunnable: boolean, + installedReason: string, + plan: StudioAutoResourcePlan | null | undefined, + form?: Pick, +) { + if (installedRunnable) return installedReason; + return autoPlanIsReady(plan, form) ? 'Required model artifacts are complete and available for this workflow.' : null; +} + function candidateRepo(candidate: StudioAutoResourceCandidate | null | undefined) { const repos = [ candidate?.installTarget?.repo, diff --git a/src/studio/blockPreviewPersistenceV2.ts b/src/studio/blockPreviewPersistenceV2.ts index 4f16b9fe..123a1143 100644 --- a/src/studio/blockPreviewPersistenceV2.ts +++ b/src/studio/blockPreviewPersistenceV2.ts @@ -26,13 +26,31 @@ export function withDurableBlockPreviewsV2( : undefined; const currentOutput = slot?.status === 'ready' && slot.currentOutputId - ? outputs.find((output) => output.id === slot.currentOutputId) - : undefined; - const currentUrl = currentOutput?.mediaItems?.[0]?.backendPath - ? currentOutput.mediaItems[0].url - : currentOutput?.backendMediaPath || currentOutput?.backendImagePath - ? currentOutput.url + ? outputs.find( + (output) => + output.id === slot.currentOutputId && + output.nodeId === slot.nodeId && + output.fieldKey === slot.fieldKey && + (!output.workflowTabId || output.workflowTabId === current?.workflowTabId), + ) : undefined; + const isText = preview.binding.mediaType === 'text'; + const textReference = (output: StudioOutput) => { + const values = Array.isArray(output.value) ? output.value : [output.value]; + return values.find( + (value): value is string => typeof value === 'string' && Boolean(value.trim()) && value.length <= 8192, + ); + }; + const currentUrl = + isText && currentOutput?.displayType === 'text' + ? textReference(currentOutput) + : isText + ? undefined + : currentOutput?.mediaItems?.[0]?.backendPath + ? currentOutput.mediaItems[0].url + : currentOutput?.backendMediaPath || currentOutput?.backendImagePath + ? currentOutput.url + : undefined; if (currentOutput?.taskId && currentUrl) { if ( preview.taskId === currentOutput.taskId && @@ -47,6 +65,20 @@ export function withDurableBlockPreviewsV2( for (const output of outputs) { // Never substitute the most recent output from this node or another task. if (output.taskId !== preview.taskId) continue; + if (isText) { + // A retained .txt URL is an export asset, never the displayed text. + // Repair older saved previews only using this task's exact field. + if ( + output.displayType !== 'text' || + output.nodeId !== blockProjectionNodeIdV2(node.id, preview.binding.nodeId) || + output.fieldKey !== preview.binding.outputPortId + ) + continue; + const reference = textReference(output); + if (!reference || reference === preview.mediaReference) return preview; + previewChanged = true; + return { ...preview, mediaReference: reference }; + } const items = output.mediaItems ?? []; const exactItem = items.find( (item) => diff --git a/src/studio/blockRuntimeV2.ts b/src/studio/blockRuntimeV2.ts index 64f72bda..97429b22 100644 --- a/src/studio/blockRuntimeV2.ts +++ b/src/studio/blockRuntimeV2.ts @@ -362,6 +362,22 @@ function optionalValue(value: BlockJsonValue | undefined) { return value === undefined ? {} : { value: cloneJson(value) }; } +function currentPreviewValue(base: NodeParams | undefined, preview: BlockPreviewStateV2 | undefined) { + if (preview?.mediaReference === undefined) return {}; + return { + value: preview.mediaReference, + // Immutable source artifacts must not override a newer instance preview. + artifacts: Array.isArray(base?.artifacts) + ? base.artifacts.filter( + (artifact: unknown) => + isRecord(artifact) && + artifact.url === preview.mediaReference && + (!preview.taskId || (artifact.taskId ?? artifact.task_id) === preview.taskId), + ) + : [], + }; +} + /** Body controls. They intentionally do not use input/output display modes. */ export function blockControlParamsV2(instanceValue: BlockInstanceV2): Record { const instance = normalizeBlockInstanceV2(instanceValue); @@ -373,6 +389,12 @@ function controlParamsForNormalizedInstanceV2(instance: BlockInstanceV2): Record instance.effectiveInterface.controls.map((control) => { const base = sourceParam(instance, control.binding.nodeId, control.binding.fieldId); const display = base?.display === 'input' || base?.display === 'output' ? undefined : base?.display; + const preview = base?.display?.startsWith('ui_') + ? instance.previewStates.find( + (state) => + state.binding.nodeId === control.binding.nodeId && state.binding.outputPortId === control.binding.fieldId, + ) + : undefined; return [ control.controlId, { @@ -386,6 +408,9 @@ function controlParamsForNormalizedInstanceV2(instance: BlockInstanceV2): Record hidden: false, ...(display ? { display } : { display: undefined }), ...optionalValue(blockInstanceValueV2(instance, control.controlId)), + // Older creation dialogs also exposed output previews as controls. + // Project current run state without changing that saved contract. + ...currentPreviewValue(base, preview), ...(control.defaultValue === undefined ? {} : { default: cloneJson(control.defaultValue) }), ...(control.required === undefined ? {} : { required: control.required }), disabled: Boolean(control.sealed) || Boolean(base?.disabled), @@ -480,21 +505,7 @@ function previewViewsForNormalizedInstanceV2( label: base?.label ?? 'Preview', type: base?.type ?? binding.mediaType, display: PREVIEW_DISPLAY_V2[binding.mediaType], - ...(preview.mediaReference === undefined - ? {} - : { - value: preview.mediaReference, - // A saved source field can retain artifacts from an earlier run. - // Its URL must not override the current instance's media reference. - artifacts: Array.isArray(base?.artifacts) - ? base.artifacts.filter( - (artifact: unknown) => - isRecord(artifact) && - artifact.url === preview.mediaReference && - (!preview.taskId || (artifact.taskId ?? artifact.task_id) === preview.taskId), - ) - : [], - }), + ...currentPreviewValue(base, preview), fieldOptions: { ...(isRecord(base?.fieldOptions) ? cloneJson(base.fieldOptions) : {}), blockPreviewBindingV2: { diff --git a/src/studio/executionSpecValues.ts b/src/studio/executionSpecValues.ts index 3830da18..2b391c84 100644 --- a/src/studio/executionSpecValues.ts +++ b/src/studio/executionSpecValues.ts @@ -195,7 +195,8 @@ export function resolveStudioExecutionSpecValues( values.pipelineQuantizedComponents = quantizationMode === 'none' ? [] : values.quantizedComponents; values.autoOffload = values.offloadMode !== 'none'; values.nativeFlashAttention = - candidate?.attentionBackend ?? (form.device.startsWith('cuda') ? '_native_flash' : 'auto'); + candidate?.attentionBackend ?? + (typeof form.attentionBackend === 'string' && form.attentionBackend.trim() ? form.attentionBackend : 'auto'); values.transformer = values.nativeFlashAttention === '_native_flash' ? 'transformer' : ''; values.dualTransformer = values.nativeFlashAttention === '_native_flash' ? 'transformer,transformer_2' : ''; values.dualQuantizedComponents = candidate?.quantizedComponents ?? ['transformer', 'transformer_2']; diff --git a/src/studio/huggingFaceClusterInsertion.ts b/src/studio/huggingFaceClusterInsertion.ts index ad99ab59..eb2ddc93 100644 --- a/src/studio/huggingFaceClusterInsertion.ts +++ b/src/studio/huggingFaceClusterInsertion.ts @@ -29,6 +29,7 @@ import type { StudioFormState, StudioMode, StudioModelType } from './types'; import { createCatalogOnlyModularBlockRootV2 } from './catalogOnlyModularBlockV2'; import { fetchRegisteredBlockV2CompiledCatalogEntry } from './registeredBlockV2CompiledCatalog'; import { compositeChildNodeId } from './compositeNodes'; +import { runtimeOptionValues } from './runtimeOptions'; export { HUGGING_FACE_CLUSTER_DRAG_PREFIX } from './huggingFaceClusterDrag'; @@ -626,12 +627,33 @@ export async function createHuggingFaceClusterForGraph( ...compiled.definition.controls.map(({ controlId }) => controlId), ...compiled.definition.boundary.inputs.map(({ portId }) => portId), ]); + // Legacy form defaults can be broader than this exact task's choices. + // Preserve the compiled catalog default when an inferred seed is invalid + // for any field driven by its public control or boundary input. + const seededValues = Object.fromEntries( + Object.entries({ ...seededParameterOverrides, ...executionParameterOverrides }).filter(([valueId, value]) => { + const control = compiled.definition.controls.find(({ controlId }) => controlId === valueId); + const input = compiled.definition.boundary.inputs.find(({ portId }) => portId === valueId); + const bindings = control + ? [control.binding, ...(control.mirrorBindings ?? [])] + : input + ? [input.binding, ...(input.mirrorBindings ?? [])].map(({ nodeId, fieldOrPortId }) => ({ + nodeId, + fieldId: fieldOrPortId, + })) + : []; + return bindings.every(({ nodeId, fieldId }) => { + const node = compiled.definition.graph.nodes.find((item) => item.nodeId === nodeId); + const param = record(record(node?.data.params)?.[fieldId]); + return !param || param.options === undefined || runtimeOptionValues(param.options).includes(String(value)); + }); + }), + ); const values = Object.fromEntries( Object.entries({ ...compiled.values, ...suggestedValues, - ...seededParameterOverrides, - ...executionParameterOverrides, + ...seededValues, }).filter(([valueId]) => acceptedValueIds.has(valueId)), ) as Record; const instance = createBlockInstanceV2(compiled.definition, { diff --git a/src/studio/huggingFaceClusterRuntime.ts b/src/studio/huggingFaceClusterRuntime.ts index 6e3c4538..a858a424 100644 --- a/src/studio/huggingFaceClusterRuntime.ts +++ b/src/studio/huggingFaceClusterRuntime.ts @@ -159,6 +159,7 @@ function selectedBindingValues( candidate, quantizableComponents, modelVariant, + false, ); return Object.fromEntries( admission.executionParameterSources.flatMap((source) => @@ -182,14 +183,18 @@ export function huggingFaceClusterExecutionParameterValues( candidate: StudioAutoResourceCandidate | null = null, quantizableComponents: readonly string[] = ['transformer'], modelVariant: string = admission.artifact?.repo ?? '', + provisional = true, ): Record { const selectedQuantizedComponents = form.quantizationMode === 'none' ? [] : jsonClone(candidate?.quantizedComponents ?? [...quantizableComponents]); const attentionBackend = candidate?.attentionBackend ?? (typeof form.attentionBackend === 'string' && form.attentionBackend.trim() ? form.attentionBackend : 'auto'); + // Preserve the disabled compiler skeleton's existing metadata identity. + // Enabled children receive the authored/qualified policy via selectedBindingValues. const nativeFlashAttention = - candidate?.attentionBackend ?? (form.device.startsWith('cuda') ? '_native_flash' : 'auto'); + candidate?.attentionBackend ?? + (provisional ? (form.device.startsWith('cuda') ? '_native_flash' : 'auto') : attentionBackend); const values: Record = { ...form, bpmNormalized: form.bpm > 0 ? form.bpm : 0, diff --git a/src/studio/legacyBlockMovementV2.ts b/src/studio/legacyBlockMovementV2.ts index b840f15c..4923802e 100644 --- a/src/studio/legacyBlockMovementV2.ts +++ b/src/studio/legacyBlockMovementV2.ts @@ -320,7 +320,16 @@ export function migrateLegacyHierarchyV2( delete updated.mirrorBindings; return targets.length > 1 ? { ...updated, mirrorBindings: targets.slice(1) } : updated; }); - base.previews.push(...definition.previews.map((preview) => ({ ...preview, nodeId: map.get(preview.nodeId)! }))); + // A child's primary remains local to its interface; the outer Block owns + // one primary even when several valid child Blocks are composed together. + const hasOuterPrimary = base.previews.some((preview) => preview.primary); + base.previews.push( + ...definition.previews.map((preview) => ({ + ...preview, + nodeId: map.get(preview.nodeId)!, + ...(hasOuterPrimary && preview.primary ? { primary: false } : {}), + })), + ); } // Older ordinary group membership was stored on React Flow nodes. for (const node of copy.nodes as CustomNodeType[]) { diff --git a/src/studio/modelProfiles.ts b/src/studio/modelProfiles.ts index 8ed017a6..14ac735d 100644 --- a/src/studio/modelProfiles.ts +++ b/src/studio/modelProfiles.ts @@ -4332,7 +4332,8 @@ export const STUDIO_AUTO_MODEL_REQUIREMENTS = { modelType: 'HuggingFaceTextGenerationModel', supportedModes: TRANSFORMERS_TEXT_STUDIO_MODES, autoStatus: 'manual_only', - minimum: 'CPU or accelerator execution with the pinned safetensors snapshot and optional Transformers runtime.', + minimum: + 'CPU or accelerator execution with the pinned safetensors snapshot and the required base Transformers runtime.', recommended: 'Use the reviewed SmolLM2 135M Instruct float32 profile with bounded token controls.', qualityDefaults: 'Deterministic generation, at most 256 new tokens.', artifacts: [SMOLLM2_135M_INSTRUCT_REPO], @@ -4343,7 +4344,8 @@ export const STUDIO_AUTO_MODEL_REQUIREMENTS = { modelType: 'HuggingFaceImageTextToTextModel', supportedModes: TRANSFORMERS_IMAGE_TEXT_STUDIO_MODES, autoStatus: 'manual_only', - minimum: 'CPU or accelerator execution with the pinned safetensors snapshot and optional Transformers runtime.', + minimum: + 'CPU or accelerator execution with the pinned safetensors snapshot and the required base Transformers runtime.', recommended: 'Use the reviewed SmolVLM 256M Instruct float32 profile with one bounded local image.', qualityDefaults: 'One image, deterministic generation, at most 256 new tokens.', artifacts: [SMOLVLM_256M_INSTRUCT_REPO], @@ -4354,7 +4356,7 @@ export const STUDIO_AUTO_MODEL_REQUIREMENTS = { modelType: 'HuggingFaceAnyToAnyModel', supportedModes: TRANSFORMERS_ANY_TO_ANY_STUDIO_MODES, autoStatus: 'manual_only', - minimum: 'Expert-only execution with the pinned safetensors snapshot and optional Transformers runtime.', + minimum: 'Expert-only execution with the pinned safetensors snapshot and the required base Transformers runtime.', recommended: 'Use the reviewed Janus Pro 1B bfloat16 profile after acknowledging the pinned model terms.', qualityDefaults: 'Bounded text generation or native 384x384 image generation.', artifacts: [JANUS_PRO_1B_REPO], @@ -4365,7 +4367,8 @@ export const STUDIO_AUTO_MODEL_REQUIREMENTS = { modelType: 'HuggingFaceSpeechRecognitionModel', supportedModes: SPEECH_STUDIO_MODES, autoStatus: 'manual_only', - minimum: 'CPU or accelerator execution with the pinned safetensors snapshot and optional Transformers runtime.', + minimum: + 'CPU or accelerator execution with the pinned safetensors snapshot and the required base Transformers runtime.', recommended: 'Use the reviewed Whisper Tiny float32 profile and bounded local audio.', qualityDefaults: '30-second chunks, 5-second stride, segment timestamps.', artifacts: [WHISPER_TINY_REPO], @@ -4376,7 +4379,8 @@ export const STUDIO_AUTO_MODEL_REQUIREMENTS = { modelType: 'HuggingFaceCTCSpeechRecognitionModel', supportedModes: ['speech_to_text'], autoStatus: 'manual_only', - minimum: 'CPU or accelerator execution with the pinned safetensors snapshot and optional Transformers runtime.', + minimum: + 'CPU or accelerator execution with the pinned safetensors snapshot and the required base Transformers runtime.', recommended: 'Use the reviewed Wav2Vec2 Base 960h float32 CTC profile and bounded local audio.', qualityDefaults: '30-second chunks, 5-second stride, word timestamps.', artifacts: [WAV2VEC2_BASE_960H_REPO], diff --git a/src/studio/runActivity.ts b/src/studio/runActivity.ts index 646b13be..fc526075 100644 --- a/src/studio/runActivity.ts +++ b/src/studio/runActivity.ts @@ -10,7 +10,7 @@ import { backendWorkflowTab, markBackendWorkflow, markWorkflowTabOpen } from './ import { enqueueSnackbar } from '../ui/snackbar'; import { requestJson } from '../utils/requestJson'; import { runtimeProgressTarget } from './userBlocks'; -import { executionProgressFrom } from './executionProgress'; +import { executionProgressDetail, executionProgressFrom } from './executionProgress'; export type RunActivityStatus = 'queued' | 'running' | 'completed' | 'failed' | 'cancelled'; @@ -64,6 +64,15 @@ export function runActivityLabelForTask(task: Task | SessionRun, fallback = 'Gra return usableWorkflowName(task.workflow_title) || usableWorkflowName(task.name) || fallback; } +/** Terminal status takes precedence over progress retained in older receipts. */ +export function runActivityDetailForTask(task: Task | SessionRun, fallbackStatus: RunActivityStatus = 'queued') { + const status = task.status ?? fallbackStatus; + if (status === 'completed') return 'Completed'; + if (status === 'cancelled') return task.error || 'Cancelled'; + if (status === 'failed') return task.error || task.message || 'Failed'; + return executionProgressDetail(executionProgressFrom(task)) || task.message || status; +} + function taskForActivity(taskId: string) { const state = useTaskStore.getState(); return ( diff --git a/src/studio/runCoordinator.ts b/src/studio/runCoordinator.ts index 286832a3..5bd3b6a6 100644 --- a/src/studio/runCoordinator.ts +++ b/src/studio/runCoordinator.ts @@ -96,6 +96,7 @@ export async function coordinateGraphRun({ } else await prepareHuggingFaceClustersForRun(clusterInstanceIds); } const manualMode = useStudioStore.getState().form.resourceMode === 'expert'; + const wholeWorkflowAuto = !manualMode; // An exact catalog/source receipt does not carry executable resource hints. // Every custom graph, including one untouched registered Block, must plan // the lowered execution scope before it can submit in Auto. @@ -189,7 +190,9 @@ export async function coordinateGraphRun({ let exportedGraph = lowerModularComposition ? lowerModularComposition(preparedGraph ?? currentFlowGraph) : (preparedGraph ?? currentFlowGraph); - if (workflowAuto) { + // Managed Studio graphs retain their existing source-authority checks above, + // and every Auto run also plans its complete lowered execution scope. + if (wholeWorkflowAuto) { exportedGraph = await ( await import('./workflowAutoExecutionV2') ).prepareWorkflowAutoExecutionV2(exportedGraph, legacyPreparation); @@ -281,16 +284,21 @@ export async function coordinateGraphRun({ ? applyStudioRuntimeHints(graphWithRegisteredBlockRuntimeHints, identity) : graphWithRegisteredBlockRuntimeHints; const graphWithExecutionAuthority = workflowAuto + ? graphWithManagedMetadata + : applyHuggingFaceClusterRuntimeHints(graphWithManagedMetadata, { strict: !manualMode }); + // Studio/Cluster metadata may replace runtime hints. Restore the independent + // whole-workflow receipt after those existing provenance projections. + const graphWithWorkflowAutoPlan = wholeWorkflowAuto ? { - ...graphWithManagedMetadata, + ...graphWithExecutionAuthority, runtimeHints: { - ...graphWithManagedMetadata.runtimeHints, + ...graphWithExecutionAuthority.runtimeHints, resourceMode: 'auto' as const, workflowAutoPlan: exportedGraph.runtimeHints!.workflowAutoPlan, }, } - : applyHuggingFaceClusterRuntimeHints(graphWithManagedMetadata, { strict: !manualMode }); - const submittedGraph = applyRunCorrelationHints(graphWithExecutionAuthority, identity, { + : graphWithExecutionAuthority; + const submittedGraph = applyRunCorrelationHints(graphWithWorkflowAutoPlan, identity, { targetNodeId: executionTargetNodeId, formSnapshot: exactRunForm, }); diff --git a/src/studio/templateOperationSelections.ts b/src/studio/templateOperationSelections.ts index 1a98a371..19aef39f 100644 --- a/src/studio/templateOperationSelections.ts +++ b/src/studio/templateOperationSelections.ts @@ -51,12 +51,13 @@ function recipes(ids: StudioTemplateId[], selection: StudioTemplateExecutionSele ); } -// These fresh native recipes previously used the whole-pipeline recipe's -// explicit VAE/attention settings. Original native recipes keep their defaults. +// These policies apply only to newly created recipes. Saved graphs retain their +// authored controls. Automatic attention avoids the forced math working set on +// constrained devices; VAE slicing and tiling remain explicit. const PRESERVED_PIPELINE_POLICIES: Partial< Record> > = Object.fromEntries([ - ...STANDARD_Z_TEMPLATE_IDS.map((id) => [id, { attentionBackend: '_native_math', vaeSlicing: true, vaeTiling: true }]), + ...STANDARD_Z_TEMPLATE_IDS.map((id) => [id, { attentionBackend: 'auto', vaeSlicing: true, vaeTiling: true }]), ...[ 'qwen_text_rendering', 'qwen_poster_logo_text', diff --git a/src/studio/userBlocks.ts b/src/studio/userBlocks.ts index c5c94e52..7df620c7 100644 --- a/src/studio/userBlocks.ts +++ b/src/studio/userBlocks.ts @@ -85,6 +85,7 @@ function editableParamEntries(node: CustomNodeType) { ([key, param]) => param.display !== 'input' && param.display !== 'output' && + !USER_BLOCK_PREVIEW_DISPLAYS.has(param.display ?? '') && !param.hidden && !param.isInput && !['image', 'output', 'images', 'latents'].includes(key), diff --git a/src/utils/checkpointStorage.ts b/src/utils/checkpointStorage.ts new file mode 100644 index 00000000..f799ef96 --- /dev/null +++ b/src/utils/checkpointStorage.ts @@ -0,0 +1,43 @@ +import type { StateStorage } from 'zustand/middleware'; +import { closeSnackbar, enqueueSnackbar } from '../ui/snackbar'; + +const CHECKPOINT_WRITE_WARNING_KEY = 'studio-checkpoint-write-failed'; +const failedCheckpointKeys = new Set(); + +function checkpointRecovered(name: string) { + if (failedCheckpointKeys.delete(name) && failedCheckpointKeys.size === 0) { + closeSnackbar(CHECKPOINT_WRITE_WARNING_KEY); + } +} + +/** Keep workspace mutations usable when a browser checkpoint cannot be written. */ +export function createResilientCheckpointStorage(): StateStorage { + // Resolve here so createJSONStorage preserves its usual unavailable-storage + // behavior during SSR. Each method still reads the storage object's current API. + const storage = localStorage; + return { + getItem: (name) => storage.getItem(name), + removeItem: (name) => { + storage.removeItem(name); + checkpointRecovered(name); + }, + setItem: (name, value) => { + try { + storage.setItem(name, value); + checkpointRecovered(name); + } catch (error) { + const firstFailure = failedCheckpointKeys.size === 0; + if (!failedCheckpointKeys.has(name)) { + console.warn('Could not update the local workspace checkpoint.', name, error); + } + failedCheckpointKeys.add(name); + if (firstFailure) { + enqueueSnackbar( + 'Changes could not be stored in this browser. Save or export unsaved workflows before refreshing.', + { key: CHECKPOINT_WRITE_WARNING_KEY, variant: 'warning', persist: true }, + ); + } + } + }, + }; +} diff --git a/tests/e2e/studio-mocked/studio-mocked.spec.ts b/tests/e2e/studio-mocked/studio-mocked.spec.ts index dbd0a806..a924d95d 100644 --- a/tests/e2e/studio-mocked/studio-mocked.spec.ts +++ b/tests/e2e/studio-mocked/studio-mocked.spec.ts @@ -14443,7 +14443,7 @@ test('fresh Qwen template uses ordinary native stages without legacy field refre }); }); -test('Wan A14B resident I2V templates retain VAE tiling and configure both native-flash experts', async ({ page }) => { +test('Wan A14B resident I2V templates retain VAE tiling and automatic attention', async ({ page }) => { mockInstalledRepos.clear(); mockInstalledRepos.add('Wan-AI/Wan2.2-I2V-A14B-Diffusers'); mockDownloadCalls = 0; @@ -14520,8 +14520,8 @@ test('Wan A14B resident I2V templates retain VAE tiling and configure both nativ pipelineClass: 'WanImageToVideoPipeline', offloadMode: 'none', vaeTiling: true, - attentionBackend: '_native_flash', - attentionComponents: 'transformer,transformer_2', + attentionBackend: 'auto', + attentionComponents: '', referenceImages: ['mock-rally-keyframe.webp'], referenceEdge: true, }); @@ -16439,8 +16439,8 @@ test('backend Studio execution specs materialize exact image, video, and audio r expect(ti2v.pipeline?.model_id?.value).toBe('Wan-AI/Wan2.2-TI2V-5B-Diffusers'); expect(ti2v.pipeline?.revision?.value).toBe('b8fff7315c768468a5333511427288870b2e9635'); expect(ti2v.pipeline?.execution_profile_id?.value).toBe('wan-22-ti2v-5b:direct'); - expect(ti2v.recipe?.attention_backend?.value).toBe('_native_flash'); - expect(ti2v.recipe?.attention_components?.value).toBe('transformer'); + expect(ti2v.recipe?.attention_backend?.value).toBe('auto'); + expect(ti2v.recipe?.attention_components?.value).toBe(''); expect(ti2v.recipe?.vae_tiling?.value).toBe(true); expect(ti2v.generate?.scheduler_flow_shift?.value).toBe(5); expect(ti2v.generate?.use_guidance_scale_2?.value).toBe(false); @@ -16479,8 +16479,8 @@ test('backend Studio execution specs materialize exact image, video, and audio r executionProfileId: 'wan-text-to-video:direct', }); expect(wanT2v.pipeline?.pipeline_class?.value).toBe('WanPipeline'); - expect(wanT2v.recipe?.attention_backend?.value).toBe('_native_flash'); - expect(wanT2v.recipe?.attention_components?.value).toBe('transformer'); + expect(wanT2v.recipe?.attention_backend?.value).toBe('auto'); + expect(wanT2v.recipe?.attention_components?.value).toBe(''); expect(wanT2v.generate?.scheduler_flow_shift?.value).toBe(5); const wanVaceT2v = await page.evaluate(async () => { @@ -29809,3 +29809,130 @@ for (const templateId of [ await page.waitForFunction(() => Boolean(window.__MODIFF_E2E__)); await expect.poll(api).toEqual(before); }); + +for (const selection of ['connected-node', 'edge-only', 'mixed'] as const) { + test(`native Delete ${selection} is restored by one Undo`, async ({ page }) => { + await ensureFrontend(); + await installMockRoutes(page); + await page.goto(FRONTEND_URL, { waitUntil: 'domcontentloaded' }); + await page.waitForFunction(() => Boolean(window.__MODIFF_E2E__)); + await dismissTaskLauncher(page); + await page.evaluate(async (selection) => { + const [{ useFlowStore }, { useStudioStore }] = await Promise.all([ + import('/src/stores/useFlowStore.ts'), + import('/src/stores/useStudioStore.ts'), + ]); + useStudioStore.getState().clearGraphBinding(); + const nodes = ['source', 'target', 'other'].map((id, index) => ({ + id: `delete-${id}`, + type: 'custom' as const, + position: { x: 100 + index * 320, y: 160 }, + selected: id === 'target' && selection !== 'edge-only', + data: { + type: 'custom' as const, + module: 'modules.Test', + action: 'Utility', + label: id, + category: 'Test', + params: { + input: { type: 'string', display: 'input', value: '' }, + output: { type: 'string', display: 'output' }, + }, + }, + })); + const edges = ['target', 'other'].map((id) => ({ + id: `delete-edge-${id}`, + source: 'delete-source', + target: `delete-${id}`, + sourceHandle: 'output', + targetHandle: 'input', + selected: id === 'other' && selection !== 'connected-node', + })); + useFlowStore.setState({ nodes, edges, viewport: { x: 0, y: 0, zoom: 0.7 } }); + useFlowStore.getState().resetHistory(); + useStudioStore.getState().saveActiveWorkflowTab(true); + }, selection); + await expect(page.locator('.react-flow__node')).toHaveCount(3); + await page.getByTestId('topbar-resource-policy').focus(); + const signature = () => + page.evaluate(async () => { + const { useFlowStore } = await import('/src/stores/useFlowStore.ts'); + const state = useFlowStore.getState(); + return { + nodes: state.nodes.map((node) => node.id).sort(), + edges: state.edges.map((edge) => edge.id).sort(), + }; + }); + const original = await signature(); + await page.keyboard.press('Delete'); + const deleted = { + nodes: selection === 'edge-only' ? original.nodes : ['delete-other', 'delete-source'], + edges: selection === 'mixed' ? [] : [selection === 'edge-only' ? 'delete-edge-target' : 'delete-edge-other'], + }; + await expect.poll(signature).toEqual(deleted); + await page.keyboard.press('Control+z'); + await expect.poll(signature).toEqual(original); + await page.keyboard.press('Control+Shift+z'); + await expect.poll(signature).toEqual(deleted); + }); +} + +test('managed Studio resources and Auto Run check the whole graph before submitting', async ({ page }) => { + mockInstalledRepos.clear(); + mockInstalledRepos.add('Tongyi-MAI/Z-Image-Turbo'); + await ensureFrontend(); + await installMockRoutes(page); + const plans: Array<{ graph: { nodes: unknown; paths: unknown } }> = []; + let submitted = 0; + await page.route('**/auto_resource/workflow', async (route) => { + plans.push(route.request().postDataJSON()); + await route.fulfill({ + json: { + schemaVersion: 1, + graphHash: `sha256:workflow-auto-v1:${'a'.repeat(64)}`, + plannedGraphHash: `sha256:workflow-auto-v1:${'b'.repeat(64)}`, + canAutoRun: false, + issues: ['The complete workflow needs a reviewed auxiliary recipe'], + message: 'Whole workflow refused by the test transport', + patches: [], + loaders: [], + requirements: {}, + available: {}, + sharedMemory: false, + }, + }); + }); + await page.route('**/graph', async (route) => { + submitted++; + await route.fulfill({ json: { error: false, task_id: 'must-not-submit', sid: 'mock-sid', message: 'queued' } }); + }); + await page.goto(FRONTEND_URL, { waitUntil: 'domcontentloaded' }); + await page.waitForFunction(() => Boolean(window.__MODIFF_E2E__)); + await page.evaluate(() => window.__MODIFF_E2E__!.setWebsocketConnection({ sid: 'mock-sid', isConnected: true })); + // Seed a saved managed document; the actions under test are native. + await page.evaluate(() => window.__MODIFF_E2E__!.applyLegacyTemplateForTest('z_image_quick_concept')); + await waitForOperationGraphToSettle(page); + await setWorkflowResourceMode(page, 'auto'); + expect(await page.evaluate(() => Boolean(window.__MODIFF_E2E__!.getState().studio.graphBinding))).toBe(true); + const readExecution = () => + page.evaluate(async () => { + const { useFlowStore } = await import('/src/stores/useFlowStore.ts'); + const graph = useFlowStore.getState().exportGraph('mock-sid'); + return { nodes: graph.nodes, paths: graph.paths }; + }); + const before = await readExecution(); + await page.getByTestId('topbar-workflow-resources').click(); + await expect(page.getByTestId('workflow-resource-assessment')).toBeVisible(); + await expect(page.getByTestId('compatibility-panel')).toContainText('Selected model'); + await page.getByTestId('plan-workflow-auto').click(); + await expect(page.getByTestId('workflow-auto-plan')).toContainText('Auto needs attention'); + await expect(page.getByTestId('workflow-auto-plan')).toContainText('reviewed auxiliary recipe'); + expect(plans).toHaveLength(1); + expect({ nodes: plans[0]!.graph.nodes, paths: plans[0]!.graph.paths }).toEqual(before); + await expect(page.getByTestId('studio-run')).toBeEnabled(); + await page.getByTestId('studio-run').click(); + await expect.poll(() => plans.length).toBe(2); + await expect(page.getByText(/Auto cannot run this workflow: The complete workflow needs/u).first()).toBeVisible(); + expect(submitted).toBe(0); + expect(await readExecution()).toEqual(before); +}); diff --git a/tests/fixtures/ctc-catalog-insertion.v1.json b/tests/fixtures/ctc-catalog-insertion.v1.json new file mode 100644 index 00000000..84a8876b --- /dev/null +++ b/tests/fixtures/ctc-catalog-insertion.v1.json @@ -0,0 +1,810 @@ +{ + "schemaVersion": 1, + "generatedFrom": "modiff.huggingface_node_library and modiff.registered_block_v2_catalog; static contract, no model execution", + "catalogDefinition": { + "blockContractHash": "sha256:795270a92acbb34cd3e7361c9a9e95fc214245040235af6632f6597b34574850", + "blockPlacements": [ + { + "blockDefinitionId": "transformers.composite-block:LoadCTCSpeechRecognitionModel:sha256:1bd3283e8aba82dd23dc86d62b3893eda2b36c0f7908cde557ff1b121fd068a2", + "legacyPath": "speechModel", + "order": 0, + "path": ["speechModel"] + }, + { + "blockDefinitionId": "transformers.composite-block:Load:sha256:300ea7e970ebec08786628eb728c46bd6723ac9b162541842fa08688311f0018", + "legacyPath": "loadAudio", + "order": 1, + "path": ["loadAudio"] + }, + { + "blockDefinitionId": "transformers.composite-block:TranscribeCTCAudio:sha256:998d2a8ed0551651630a4188249b9184ef745f67239146d21758066f1cbd7f44", + "legacyPath": "transcribeAudio", + "order": 2, + "path": ["transcribeAudio"] + }, + { + "blockDefinitionId": "transformers.composite-block:DataViewer:sha256:d5cea36cedfc670d40d83078a9bad133fcad3635f1e40d902396a3015ac64ff9", + "legacyPath": "transcriptPreview", + "order": 3, + "path": ["transcriptPreview"] + } + ], + "blocksClass": "AutoModelForCTC", + "components": [ + { + "creationMethod": "base_installation", + "name": "model_runtime", + "reuseKey": ["model_runtime"], + "type": "modiff.base-model-runtime@sha256:cc281f8fbae5093d68b4dd963a8f80e32b1589991c8cda97a3ec0f26c9e700db" + }, + { + "creationMethod": "from_pretrained", + "name": "model", + "reuseKey": ["model", "revision", "dtype", "device"], + "type": "AutoModelForCTC" + } + ], + "contentHash": "sha256:0c03dcd8f16cf19c33a827aa802f22294eb20d9dceee73bfacd73b6f1a9ef67d", + "definitionKind": "studio_execution_composite", + "description": "Cluster Node containing an exact reviewed ASR loader, local audio input, bounded transcription action, and preview.", + "executionAdmissions": [ + { + "adapterContractId": "transformers.composite-adapter:HuggingFaceCTCSpeechRecognitionModel:speech_to_text", + "artifact": { + "repo": "facebook/wav2vec2-base-960h", + "revision": "22aad52d435eb6dbaf354bdad9b0da84ce7d6156" + }, + "bindingSources": [ + "artifact", + "defaultRevision", + "device", + "dtype", + "executionProfileId", + "pipelineClass", + "sourceAudio", + "speechChunkSeconds", + "speechStrideSeconds", + "speechTimestamps" + ], + "claim": "static_graph_contract_compatible", + "definitionId": "transformers.composite:HuggingFaceCTCSpeechRecognitionModel:speech_to_text", + "dynamicFieldActions": [], + "executable": false, + "executionParameterSources": ["device"], + "id": "transformers.cluster-admission:HuggingFaceCTCSpeechRecognitionModel:speech_to_text", + "instanceInputBindings": [ + { + "bindingSource": "dtype", + "input": "dtype" + }, + { + "bindingSource": "sourceAudio", + "input": "audio" + }, + { + "bindingSource": "speechChunkSeconds", + "input": "chunk_length_seconds" + }, + { + "bindingSource": "speechStrideSeconds", + "input": "stride_length_seconds" + }, + { + "bindingSource": "speechTimestamps", + "input": "timestamps" + } + ], + "modelDependencies": [], + "publication": { + "autoEligible": false, + "executable": false, + "insertable": true, + "liveProof": false, + "readiness": "graph_qualified", + "reasons": [ + { + "code": "runtime_resource_admission_required", + "message": "The materialized Cluster graph must pass runtime, artifact, and resource checks before Run is enabled." + }, + { + "code": "live_output_review_pending", + "message": "The exact Cluster execution route has not received approved visible-frontend live-output evidence." + } + ], + "schemaVersion": 1 + }, + "reasons": [], + "schemaVersion": 4, + "sealedBindingValues": { + "artifact": "facebook/wav2vec2-base-960h", + "defaultRevision": "22aad52d435eb6dbaf354bdad9b0da84ce7d6156", + "executionProfileId": "wav2vec2-base-960h:ctc-direct", + "pipelineClass": "AutoModelForCTC" + }, + "status": "admitted", + "studioExecutionSpec": { + "contentHash": "studio-spec-v1-32eb7d06", + "executionProfileId": "wav2vec2-base-960h:ctc-direct", + "id": "wav2vec2-base-960h:speech-to-text:v1" + }, + "studioMode": "speech_to_text" + } + ], + "executionClaim": "discovery_only", + "graphAdapterContracts": [ + { + "actionSequence": ["speechModel", "loadAudio", "transcribeAudio", "transcriptPreview"], + "adapterId": "speech_to_text", + "id": "transformers.composite-adapter:HuggingFaceCTCSpeechRecognitionModel:speech_to_text", + "requiredInputs": ["dtype", "audio"], + "schemaVersion": 1, + "source": "mode", + "stateEdges": [], + "upstreamBlockSequence": [ + "modules.HuggingFaceSpeech.LoadCTCSpeechRecognitionModel", + "modules.Audio.Load", + "modules.HuggingFaceSpeech.TranscribeCTCAudio", + "modules.Primitive.DataViewer" + ], + "upstreamWorkflowId": "speech_to_text" + } + ], + "id": "transformers.composite:HuggingFaceCTCSpeechRecognitionModel:speech_to_text", + "inputs": [ + { + "default": "float32", + "description": "Model weight and compute dtype.", + "name": "dtype", + "required": true, + "type": "str" + }, + { + "default": null, + "description": "Local audio input for speech recognition.", + "name": "audio", + "required": true, + "type": "audio" + }, + { + "default": 30.0, + "description": "Bounded audio chunk length.", + "name": "chunk_length_seconds", + "required": false, + "type": "float" + }, + { + "default": 5.0, + "description": "Bounded overlap between chunks.", + "name": "stride_length_seconds", + "required": false, + "type": "float" + }, + { + "default": "word", + "description": "CTC timestamp detail: none or word.", + "name": "timestamps", + "required": false, + "type": "str" + } + ], + "integrationStatus": "reviewed_transformers_contract", + "label": "Wav2Vec2 Base 960h \u2014 Speech to Text", + "libraryRevision": "22aad52d435eb6dbaf354bdad9b0da84ce7d6156", + "mutable": false, + "outputs": [ + { + "default": null, + "description": "Normalized output from the reviewed Transformers task action.", + "name": "result", + "required": true, + "type": "object" + } + ], + "ownership": "library", + "pipelineClass": "HuggingFaceCTCSpeechRecognitionModel", + "pipelineKind": "sequential", + "provider": "transformers", + "publisher": "huggingface", + "requiredInputAlternatives": [], + "requiredInputs": ["dtype", "audio"], + "rootBlockDefinitionId": "transformers.composite-block:HuggingFaceCTCSpeechRecognitionModelSpeechToTextComposite:sha256:795270a92acbb34cd3e7361c9a9e95fc214245040235af6632f6597b34574850", + "schemaVersion": 6, + "stateKeys": [], + "steps": [ + { + "className": "LoadCTCSpeechRecognitionModel", + "description": "Existing MoDiff node modules.HuggingFaceSpeech.LoadCTCSpeechRecognitionModel used by this reviewed Transformers composite.", + "kind": "block", + "path": "speechModel" + }, + { + "className": "Load", + "description": "Existing MoDiff node modules.Audio.Load used by this reviewed Transformers composite.", + "kind": "block", + "path": "loadAudio" + }, + { + "className": "TranscribeCTCAudio", + "description": "Existing MoDiff node modules.HuggingFaceSpeech.TranscribeCTCAudio used by this reviewed Transformers composite.", + "kind": "block", + "path": "transcribeAudio" + }, + { + "className": "DataViewer", + "description": "Existing MoDiff node modules.Primitive.DataViewer used by this reviewed Transformers composite.", + "kind": "block", + "path": "transcriptPreview" + } + ], + "suggestedInputs": { + "schemaVersion": 1, + "source": { + "kind": "modiff_task_starter", + "label": "MoDiff task starter", + "url": "" + }, + "values": {} + }, + "surface": "transformers_cluster_nodes", + "taskContractId": "transformers.task.speech_to_text.v1", + "taskId": "speech_to_text", + "workflowId": "speech_to_text", + "workflowKind": "sequential" + }, + "compiledEntry": { + "catalogDefinitionId": "transformers.composite:HuggingFaceCTCSpeechRecognitionModel:speech_to_text", + "catalogDefinitionContentHash": "sha256:0c03dcd8f16cf19c33a827aa802f22294eb20d9dceee73bfacd73b6f1a9ef67d", + "admissionId": "transformers.cluster-admission:HuggingFaceCTCSpeechRecognitionModel:speech_to_text", + "compiledDefinitionCanonicalSha256": "sha256:4b8f73034ef9305d920807d13e61b0adee8d150cc66b9bea486f9636e7275342", + "definition": { + "schemaVersion": 2, + "definitionId": "transformers.cluster-admission:HuggingFaceCTCSpeechRecognitionModel:speech_to_text", + "displayName": "Wav2Vec2 Base 960h \u2014 Speech to Text", + "description": "Cluster Node containing an exact reviewed ASR loader, local audio input, bounded transcription action, and preview.", + "source": { + "kind": "transformers_catalog", + "catalogCategory": "transformers", + "provider": "huggingface", + "library": "transformers", + "libraryRevision": "22aad52d435eb6dbaf354bdad9b0da84ce7d6156", + "pipelineClass": "HuggingFaceCTCSpeechRecognitionModel", + "blocksClass": "AutoModelForCTC", + "workflow": "speech_to_text", + "manifestDefinitionId": "transformers.composite:HuggingFaceCTCSpeechRecognitionModel:speech_to_text", + "manifestContentHash": "sha256:0c03dcd8f16cf19c33a827aa802f22294eb20d9dceee73bfacd73b6f1a9ef67d", + "executionAdmissionId": "transformers.cluster-admission:HuggingFaceCTCSpeechRecognitionModel:speech_to_text", + "repository": "facebook/wav2vec2-base-960h", + "repositoryRevision": "22aad52d435eb6dbaf354bdad9b0da84ce7d6156" + }, + "graph": { + "nodes": [ + { + "nodeId": "loadAudio", + "nodeType": "custom", + "semanticRole": "loadAudio", + "data": { + "type": "custom", + "module": "modules.Audio", + "action": "Load", + "params": { + "audio": { + "type": "audio", + "display": "output", + "label": "Audio" + }, + "channels": { + "type": "int", + "display": "output", + "label": "Channels" + }, + "duration_seconds": { + "type": "float", + "display": "output", + "label": "Duration" + }, + "file": { + "type": "str", + "display": "filebrowser", + "label": false, + "fieldOptions": { + "fileTypes": ["audio"], + "multiple": false + } + }, + "filename": { + "type": "str", + "display": "output", + "label": "File" + }, + "preview": { + "type": "url", + "display": "ui_audio", + "dataSource": "filename" + }, + "sample_rate": { + "type": "int", + "display": "output", + "label": "Sample Rate" + } + }, + "skipParamsCheck": false + } + }, + { + "nodeId": "speechModel", + "nodeType": "custom", + "semanticRole": "speechModel", + "data": { + "type": "custom", + "module": "modules.HuggingFaceSpeech", + "action": "LoadCTCSpeechRecognitionModel", + "params": { + "device": { + "type": "string", + "label": "Device", + "default": "cuda:0", + "options": { + "cuda:0": { + "schemaVersion": 1, + "value": "cuda:0", + "label": "cuda:0", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "cpu:0": { + "schemaVersion": 1, + "value": "cpu:0", + "label": "cpu:0", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "cpu": { + "schemaVersion": 1, + "value": "cpu", + "label": "cpu", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + } + } + }, + "dtype": { + "type": "string", + "label": "DType", + "default": "float32", + "options": [ + { + "schemaVersion": 1, + "value": "float32", + "label": "float32", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "float16", + "label": "float16", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "bfloat16", + "label": "bfloat16", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + } + ] + }, + "execution_profile_id": { + "type": "string", + "label": "Execution Profile", + "default": "", + "disabled": true, + "hidden": true, + "fieldOptions": { + "noValidation": true + }, + "value": "wav2vec2-base-960h:ctc-direct" + }, + "model": { + "type": "speech_recognition_model", + "display": "output", + "label": "Model" + }, + "model_id": { + "type": "string", + "display": "modelselect", + "label": "Model", + "disabled": true, + "fieldOptions": { + "noValidation": true, + "sources": ["hub", "local"], + "filter": { + "hub": { + "className": ["Wav2Vec2ForCTC"] + }, + "local": { + "className": ["Wav2Vec2ForCTC"] + } + } + }, + "value": { + "source": "hub", + "value": "facebook/wav2vec2-base-960h" + } + }, + "pipeline_class": { + "type": "string", + "label": "Pipeline Class", + "default": "AutoModelForCTC", + "disabled": true, + "hidden": true, + "fieldOptions": { + "noValidation": true + }, + "value": "AutoModelForCTC" + }, + "resolved_artifact": { + "type": "string", + "display": "output", + "label": "Resolved Artifact" + }, + "revision": { + "type": "string", + "label": "Revision", + "default": "", + "disabled": true, + "value": "22aad52d435eb6dbaf354bdad9b0da84ce7d6156" + } + }, + "skipParamsCheck": false + } + }, + { + "nodeId": "transcribeAudio", + "nodeType": "custom", + "semanticRole": "transcribeAudio", + "data": { + "type": "custom", + "module": "modules.HuggingFaceSpeech", + "action": "TranscribeCTCAudio", + "params": { + "audio": { + "type": "audio", + "display": "input", + "label": "Audio", + "required": true + }, + "chunk_length_seconds": { + "type": "float", + "label": "Chunk length", + "default": 30, + "min": 0, + "max": 30 + }, + "duration_seconds": { + "type": "float", + "display": "output", + "label": "Duration" + }, + "model": { + "type": "speech_recognition_model", + "display": "input", + "label": "Model", + "required": true + }, + "segments": { + "type": "collection", + "display": "output", + "label": "Segments" + }, + "stride_length_seconds": { + "type": "float", + "label": "Chunk stride", + "default": 5, + "min": 0, + "max": 10 + }, + "text": { + "type": "string", + "display": "output", + "label": "Text" + }, + "timestamps": { + "type": "string", + "label": "Timestamps", + "default": "word", + "options": [ + { + "schemaVersion": 1, + "value": "none", + "label": "none", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "word", + "label": "word", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + } + ] + }, + "transcript": { + "type": "any", + "display": "output", + "label": "Transcript" + } + }, + "skipParamsCheck": false + } + }, + { + "nodeId": "transcriptPreview", + "nodeType": "custom", + "semanticRole": "transcriptPreview", + "data": { + "type": "custom", + "module": "modules.Primitive", + "action": "DataViewer", + "params": { + "output": { + "type": "string", + "display": "output", + "label": "Output" + }, + "preview": { + "display": "ui_text", + "label": "Preview", + "dataSource": "output" + }, + "value": { + "type": "any", + "display": "input", + "label": "Data" + } + }, + "skipParamsCheck": false + } + } + ], + "edges": [ + { + "edgeId": "edge:loadAudio:audio:transcribeAudio:audio", + "sourceNodeId": "loadAudio", + "sourcePortId": "audio", + "targetNodeId": "transcribeAudio", + "targetPortId": "audio" + }, + { + "edgeId": "edge:speechModel:model:transcribeAudio:model", + "sourceNodeId": "speechModel", + "sourcePortId": "model", + "targetNodeId": "transcribeAudio", + "targetPortId": "model" + }, + { + "edgeId": "edge:transcribeAudio:transcript:transcriptPreview:value", + "sourceNodeId": "transcribeAudio", + "sourcePortId": "transcript", + "targetNodeId": "transcriptPreview", + "targetPortId": "value" + } + ], + "executionOrder": ["loadAudio", "speechModel", "transcribeAudio", "transcriptPreview"], + "graphHash": "block-graph-v2-f9d675ac" + }, + "boundary": { + "mode": "explicit", + "inputs": [ + { + "portId": "dtype", + "label": "dtype", + "valueType": "string", + "required": true, + "binding": { + "nodeId": "speechModel", + "fieldOrPortId": "dtype" + } + }, + { + "portId": "audio", + "label": "audio", + "valueType": "audio", + "required": true, + "binding": { + "nodeId": "loadAudio", + "fieldOrPortId": "file" + } + }, + { + "portId": "chunk_length_seconds", + "label": "chunk length seconds", + "valueType": "float", + "required": false, + "binding": { + "nodeId": "transcribeAudio", + "fieldOrPortId": "chunk_length_seconds" + } + }, + { + "portId": "stride_length_seconds", + "label": "stride length seconds", + "valueType": "float", + "required": false, + "binding": { + "nodeId": "transcribeAudio", + "fieldOrPortId": "stride_length_seconds" + } + }, + { + "portId": "timestamps", + "label": "timestamps", + "valueType": "string", + "required": false, + "binding": { + "nodeId": "transcribeAudio", + "fieldOrPortId": "timestamps" + } + } + ], + "outputs": [ + { + "portId": "result", + "label": "result", + "valueType": "any", + "required": true, + "binding": { + "nodeId": "transcribeAudio", + "fieldOrPortId": "transcript" + } + } + ] + }, + "controls": [ + { + "controlId": "dtype", + "label": "dtype", + "binding": { + "nodeId": "speechModel", + "fieldId": "dtype" + }, + "valueType": "string", + "defaultValue": "float32", + "required": true, + "order": 0, + "group": "Inputs", + "help": "Model weight and compute dtype." + }, + { + "controlId": "audio", + "label": "audio", + "binding": { + "nodeId": "loadAudio", + "fieldId": "file" + }, + "valueType": "string", + "required": true, + "order": 1, + "group": "Inputs", + "help": "Local audio input for speech recognition." + }, + { + "controlId": "chunk_length_seconds", + "label": "chunk length seconds", + "binding": { + "nodeId": "transcribeAudio", + "fieldId": "chunk_length_seconds" + }, + "valueType": "float", + "defaultValue": 30, + "required": false, + "order": 2, + "group": "Inputs", + "help": "Bounded audio chunk length." + }, + { + "controlId": "stride_length_seconds", + "label": "stride length seconds", + "binding": { + "nodeId": "transcribeAudio", + "fieldId": "stride_length_seconds" + }, + "valueType": "float", + "defaultValue": 5, + "required": false, + "order": 3, + "group": "Inputs", + "help": "Bounded overlap between chunks." + }, + { + "controlId": "timestamps", + "label": "timestamps", + "binding": { + "nodeId": "transcribeAudio", + "fieldId": "timestamps" + }, + "valueType": "string", + "defaultValue": "word", + "required": false, + "order": 4, + "group": "Inputs", + "help": "CTC timestamp detail: none or word." + }, + { + "controlId": "device", + "label": "Device", + "binding": { + "nodeId": "speechModel", + "fieldId": "device" + }, + "valueType": "string", + "defaultValue": "cuda:0", + "order": 5, + "group": "Generation" + } + ], + "suggestedInputs": [ + { + "suggestionId": "creator-example", + "label": "MoDiff task starter", + "values": {} + } + ], + "previews": [ + { + "nodeId": "loadAudio", + "outputPortId": "preview", + "mediaType": "audio", + "primary": true + }, + { + "nodeId": "transcriptPreview", + "outputPortId": "preview", + "mediaType": "text" + } + ], + "ownership": { + "kind": "registered", + "definitionMutable": false + }, + "contentHash": "block-definition-v2-e6518c32" + }, + "values": { + "dtype": "float32", + "audio": null, + "chunk_length_seconds": 30, + "stride_length_seconds": 5, + "timestamps": "word", + "device": "cuda:0" + }, + "internalLayout": { + "speechModel": { + "x": 24, + "y": 24 + }, + "loadAudio": { + "x": 24, + "y": 384 + }, + "transcribeAudio": { + "x": 504, + "y": 24 + }, + "transcriptPreview": { + "x": 984, + "y": 24 + } + }, + "internalLayoutMode": "root" + } +} From e2f535dd03814bb269c1e02c42a38a88cd546990 Mon Sep 17 00:00:00 2001 From: Sourav Das Date: Fri, 9 Oct 2026 12:48:03 +0530 Subject: [PATCH 018/440] Make optional-runtime status recovery visible and bounded Pause missing, malformed, identity-mismatched and older job responses with a visible error and last known progress. Retry transient status faults with bounded backoff. Retry status reads the same durable job; installation and activation remain explicit and busy operations continue to block duplicate mutations. Select the reviewed workflow branch in paired uv/npm setup instructions and their existing command-contract assertions. Bound the measured 457-byte deferred UI increase with a reviewed 512-byte allowance; startup and per-chunk budgets, dependencies and loading boundaries remain unchanged. Validation: required npm check stages passed; bundle check passed after the bounded feature allowance. Complete npm check:ui passed 3 shared-control tests and 253 mocked Studio tests. Real rendered focused cases include status-only recovery, refresh/cutover and no duplicate mutations. Real package activation, GPU generation and Windows qualification remain separate evidence. --- README.md | 29 ++++--- scripts/backend-installer-contract.test.mjs | 13 +-- scripts/bundle-budget.mjs | 6 +- scripts/request-boundary.test.mjs | 34 ++++++++ src/components/RuntimeOptimizationsCard.tsx | 55 ++++++++++-- src/studio/optionalRuntimePolling.ts | 25 ++++++ tests/e2e/studio-mocked/studio-mocked.spec.ts | 86 +++++++++++++++++++ 7 files changed, 224 insertions(+), 24 deletions(-) create mode 100644 src/studio/optionalRuntimePolling.ts diff --git a/README.md b/README.md index d3107758..2689b93c 100644 --- a/README.md +++ b/README.md @@ -7,10 +7,10 @@ MoDiff Client is the graph-first web interface for the MoDiff generative-media b The client is built with React 19, TypeScript, Vite, Tailwind CSS, Headless UI, Zustand, Lucide React, and [`@xyflow/react`](https://reactflow.dev/). For Qwen-Image 2.1, use the generic image nodes in Workflows. The backend's -[integration guide](https://github.com/sdevil7th/MoDiff/blob/feat/generic-diffusers-workbench/docs/qwen-image-21.md) +[integration guide](https://github.com/sdevil7th/MoDiff/blob/fix-ui-ux-issues/docs/qwen-image-21.md) explains attention-context reuse, runtime requirements and current qualification limits. -The [image demo guide](https://github.com/sdevil7th/MoDiff/blob/feat/generic-diffusers-workbench/docs/image-demo.md) lists the tested workflows, settings, +The [image demo guide](https://github.com/sdevil7th/MoDiff/blob/fix-ui-ux-issues/docs/image-demo.md) lists the tested workflows, settings, measured reuse behavior and remaining qualification work. > [!IMPORTANT] @@ -22,12 +22,15 @@ Install Git, [uv](https://docs.astral.sh/uv/getting-started/installation/), Node.js `24.12.0`, and npm `11.6.2`. uv can provision Python 3.12. Use two terminals for the backend and the editable frontend. +The setup and workflow updates described here are on `fix-ui-ux-issues` in both +repositories. Select that branch until these changes are released on `main`. + **Terminal 1 — backend:** clone both repositories into the same parent directory, then start the backend. These commands work in Linux shells and Windows PowerShell. ```text -git clone https://github.com/sdevil7th/MoDiff.git MoDiff -git clone https://github.com/sdevil7th/MoDiff-client.git MoDiff-client +git clone --branch fix-ui-ux-issues https://github.com/sdevil7th/MoDiff.git MoDiff +git clone --branch fix-ui-ux-issues https://github.com/sdevil7th/MoDiff-client.git MoDiff-client cd MoDiff uv sync --extra cpu uv run --extra cpu python -m modiff.preflight --json --check-port 8088 --fail-on-error @@ -40,7 +43,7 @@ Transformers and PEFT are installed with the base application; ordinary image an LoRA workflows need no optional-runtime installation or activation. Setup installs Python packages without downloading model weights. `uv sync` reconciles `.venv` with the selected profile: use a separate checkout when testing a different -accelerator. See the [full setup guide](https://github.com/sdevil7th/MoDiff/blob/develop/docs/developer-setup.md) for specialized AMD profiles, +accelerator. See the [full setup guide](https://github.com/sdevil7th/MoDiff/blob/fix-ui-ux-issues/docs/developer-setup.md) for specialized AMD profiles, explicit `uv pip` commands, repair, and upgrades. **Terminal 2 — frontend:** from the same parent directory, run: @@ -53,7 +56,7 @@ npm run dev Keep the backend running at and open the URL printed by Vite for the editable frontend. Press `Ctrl+C` in each terminal to stop it. -See the [full developer setup guide](https://github.com/sdevil7th/MoDiff/blob/feat/generic-diffusers-workbench/docs/developer-setup.md) for accelerator prerequisites, +See the [full developer setup guide](https://github.com/sdevil7th/MoDiff/blob/fix-ui-ux-issues/docs/developer-setup.md) for accelerator prerequisites, optional runtimes, repair, and bundled-app setup. ## Install and run MoDiff @@ -61,15 +64,15 @@ optional runtimes, repair, and bundled-app setup. Clone both repositories into the same parent directory. The backend installer automatically finds this sibling client, installs its locked Node.js toolchain and packages, downloads the verified Gallery assets, and bundles the frontend. -The backend [installation guide](https://github.com/sdevil7th/MoDiff#install-and-run) +The backend [installation guide](https://github.com/sdevil7th/MoDiff/tree/fix-ui-ux-issues#install-and-run) is the canonical source for installer profiles, prerequisites, repair, and platform support. Linux or macOS: ```bash -git clone https://github.com/sdevil7th/MoDiff.git MoDiff -git clone https://github.com/sdevil7th/MoDiff-client.git MoDiff-client +git clone --branch fix-ui-ux-issues https://github.com/sdevil7th/MoDiff.git MoDiff +git clone --branch fix-ui-ux-issues https://github.com/sdevil7th/MoDiff-client.git MoDiff-client cd MoDiff ./install.sh --accelerator auto ./run.sh @@ -78,8 +81,8 @@ cd MoDiff Windows PowerShell: ```powershell -git clone https://github.com/sdevil7th/MoDiff.git MoDiff -git clone https://github.com/sdevil7th/MoDiff-client.git MoDiff-client +git clone --branch fix-ui-ux-issues https://github.com/sdevil7th/MoDiff.git MoDiff +git clone --branch fix-ui-ux-issues https://github.com/sdevil7th/MoDiff-client.git MoDiff-client cd MoDiff .\install.ps1 -Accelerator auto .\run.ps1 @@ -113,7 +116,7 @@ Use `run.sh` or `run.ps1` unless you are editing frontend source code. In the editor, **Export → Service package** exposes named scalar inputs and persisted preview outputs for the same lowered API graph. See the backend's -[service guide](https://github.com/sdevil7th/MoDiff/blob/feat/generic-diffusers-workbench/docs/service-prototyping.md) +[service guide](https://github.com/sdevil7th/MoDiff/blob/fix-ui-ux-issues/docs/service-prototyping.md) for the CLI, environment manifest and model-free example. ## Repository Pairing @@ -387,7 +390,7 @@ require Custom memory. See the backend custom-node guide for contracts and examp Approved Modular blocks that omit model ports receive a **Models** input when their Python contract requires components. Connect **Load Models → Pipeline Components** to reuse compatible loaded weights. This does not download missing -block-specific models. See the backend’s [custom-node guide](https://github.com/sdevil7th/MoDiff/blob/feat/generic-diffusers-workbench/docs/custom-nodes.md) +block-specific models. See the backend’s [custom-node guide](https://github.com/sdevil7th/MoDiff/blob/fix-ui-ux-issues/docs/custom-nodes.md) for the VAE reconstruction example and component requirements. Blocks with official component types also expose **Load Models — [block name]** after approval. Select pinned, downloaded sources for its components, use **Custom** diff --git a/scripts/backend-installer-contract.test.mjs b/scripts/backend-installer-contract.test.mjs index 74b96162..5890791f 100644 --- a/scripts/backend-installer-contract.test.mjs +++ b/scripts/backend-installer-contract.test.mjs @@ -120,8 +120,8 @@ test('README follows the paired install and development launcher contract', () = assert.ok(installStart > quickStart, 'Developer quick start must precede launcher installation'); const quick = readme.slice(quickStart, installStart); for (const command of [ - 'git clone https://github.com/sdevil7th/MoDiff.git MoDiff', - 'git clone https://github.com/sdevil7th/MoDiff-client.git MoDiff-client', + 'git clone --branch fix-ui-ux-issues https://github.com/sdevil7th/MoDiff.git MoDiff', + 'git clone --branch fix-ui-ux-issues https://github.com/sdevil7th/MoDiff-client.git MoDiff-client', 'cd MoDiff', 'uv sync --extra cpu', 'uv run --extra cpu python -m modiff.preflight --json --check-port 8088 --fail-on-error', @@ -139,9 +139,12 @@ test('README follows the paired install and development launcher contract', () = assert.ok(developmentEnd > developmentStart); const development = readme.slice(developmentStart, developmentEnd); - assert.match(readme, /git clone https:\/\/github\.com\/sdevil7th\/MoDiff\.git MoDiff/); - assert.match(readme, /git clone https:\/\/github\.com\/sdevil7th\/MoDiff-client\.git MoDiff-client/); - assert.match(readme, /https:\/\/github\.com\/sdevil7th\/MoDiff#install-and-run/); + assert.match(readme, /git clone --branch fix-ui-ux-issues https:\/\/github\.com\/sdevil7th\/MoDiff\.git MoDiff/); + assert.match( + readme, + /git clone --branch fix-ui-ux-issues https:\/\/github\.com\/sdevil7th\/MoDiff-client\.git MoDiff-client/, + ); + assert.match(readme, /https:\/\/github\.com\/sdevil7th\/MoDiff\/tree\/fix-ui-ux-issues#install-and-run/); assert.match(development, /\.\/install-dev\.sh --accelerator auto/); assert.match(development, /\.\/run-dev\.sh/); assert.match(development, /\.\\install-dev\.ps1 -BackendPath \.\.\\MoDiff -Accelerator auto/); diff --git a/scripts/bundle-budget.mjs b/scripts/bundle-budget.mjs index f6d79181..73c2a9b4 100644 --- a/scripts/bundle-budget.mjs +++ b/scripts/bundle-budget.mjs @@ -232,7 +232,11 @@ const MAX_DEFERRED_CHUNK_GZIP_BYTES = 64 * 1024; // Measured deferred aggregate is 268690 bytes (+588 from 268102); reuse the // existing Block projection and cache immutable instances. Allow 640 bytes; // startup, dependencies and both per-chunk ceilings remain unchanged. -const MAX_DEFERRED_GZIP_BYTES = 248 * 1024 + 512 + 3328 + 128 + 256 + 128 + 384 + 8704 + 768 + 640; +// Bounded optional-runtime status retries, visible stale-progress errors and +// status-only recovery measure 269147 deferred gzip bytes (+457 from 268690). +// Allow 512 bytes for this correctness fix in the existing lazy workspace; +// startup, dependencies and both per-chunk ceilings remain unchanged. +const MAX_DEFERRED_GZIP_BYTES = 248 * 1024 + 512 + 3328 + 128 + 256 + 128 + 384 + 8704 + 768 + 640 + 512; const STATIC_MODULE_REFERENCE = /\b(?:import(?=\s|["'{*])(?!\s*\()|export(?=\s|["'{*]))[^;]*?["'](\.\/[^"'?]+\.js)(?:\?v=[0-9a-f]{16})?["']/g; diff --git a/scripts/request-boundary.test.mjs b/scripts/request-boundary.test.mjs index d90606ef..2c24f56f 100644 --- a/scripts/request-boundary.test.mjs +++ b/scripts/request-boundary.test.mjs @@ -11,6 +11,7 @@ const SRC = path.join(ROOT, 'src'); let fileApiModule; let originalFetch; let requestModule; +let optionalRuntimePolling; let templateGalleryInstall; let server; @@ -40,6 +41,7 @@ before(async () => { appType: 'custom', }); requestModule = await server.ssrLoadModule('/src/utils/requestJson.ts'); + optionalRuntimePolling = await server.ssrLoadModule('/src/studio/optionalRuntimePolling.ts'); templateGalleryInstall = await server.ssrLoadModule('/src/studio/templateGalleryInstall.ts'); fileApiModule = await server.ssrLoadModule('/src/utils/backendUpload.ts'); originalFetch = globalThis.fetch; @@ -61,6 +63,38 @@ function jsonResponse(value, status = 200) { }); } +test('optional setup status retries transient failures with bounded delay and preserves the error', () => { + for (const options of [ + { kind: 'network' }, + { kind: 'timeout' }, + { kind: 'http', status: 408 }, + { kind: 'http', status: 429 }, + { kind: 'http', status: 503 }, + ]) { + const error = new requestModule.RequestError('Status temporarily unavailable.', { url: '/job', ...options }); + const first = optionalRuntimePolling.optionalRuntimePollingFailure(error, 1); + assert.equal(first.message, error.message); + assert.equal(first.retryDelayMs, 1500); + assert.equal(optionalRuntimePolling.optionalRuntimePollingFailure(error, 7).retryDelayMs, 5000); + assert.equal(optionalRuntimePolling.optionalRuntimePollingFailure(error, 8).retryDelayMs, null); + } +}); + +test('missing, invalid and identity-mismatched setup status pause without fabricating a job outcome', () => { + for (const error of [ + new requestModule.RequestError('Job not found.', { kind: 'http', status: 404, url: '/job' }), + new requestModule.RequestError('Invalid JSON.', { kind: 'invalid_json', status: 200, url: '/job' }), + new requestModule.RequestError('Invalid payload.', { kind: 'invalid_payload', status: 200, url: '/job' }), + new Error('The optional-runtime job identity changed.'), + ]) { + const failure = optionalRuntimePolling.optionalRuntimePollingFailure(error, 1); + assert.equal(failure.retryDelayMs, null); + assert.equal(failure.message, error.message); + assert.equal('status' in failure, false); + assert.equal('job' in failure, false); + } +}); + test('production source keeps raw fetch calls inside the request transport boundary', async () => { const violations = []; for (const filename of await sourceFiles(SRC)) { diff --git a/src/components/RuntimeOptimizationsCard.tsx b/src/components/RuntimeOptimizationsCard.tsx index e6bb1bdb..8a5596bb 100644 --- a/src/components/RuntimeOptimizationsCard.tsx +++ b/src/components/RuntimeOptimizationsCard.tsx @@ -10,6 +10,7 @@ import { type OptionalRuntimeJob, type OptionalRuntimeProfileStatus, } from '../studio/optionalRuntimes'; +import { optionalRuntimePollingFailure, type OptionalRuntimePollingFailure } from '../studio/optionalRuntimePolling'; import { formatRequestError, requestJson } from '../utils/requestJson'; import { enqueueSnackbar, ModiffButton, ModiffDisclosure } from '../ui'; import { @@ -68,6 +69,9 @@ export default function RuntimeOptimizationsCard() { const [loading, setLoading] = useState(true); const [loadError, setLoadError] = useState(null); const [runtimeJob, setRuntimeJob] = useState(null); + const [runtimePollingFailure, setRuntimePollingFailure] = useState< + (OptionalRuntimePollingFailure & { jobId: string }) | null + >(null); const refreshRevision = useRef(0); const mutationInFlight = useRef(false); @@ -121,8 +125,19 @@ export default function RuntimeOptimizationsCard() { ); }, [optionalRuntimeCatalog]); + useEffect(() => { + setRuntimePollingFailure((current) => + current && + (!runtimeJob || current.jobId !== runtimeJob.id || ['cancelled', 'failed', 'ready'].includes(runtimeJob.status)) + ? null + : current, + ); + }, [runtimeJob]); + useEffect(() => { if (!runtimeJob || ['cancelled', 'failed', 'ready'].includes(runtimeJob.status)) return; + const failure = runtimePollingFailure?.jobId === runtimeJob.id ? runtimePollingFailure : null; + if (failure?.retryDelayMs === null) return; const controller = new AbortController(); const timer = window.setTimeout(async () => { try { @@ -137,7 +152,19 @@ export default function RuntimeOptimizationsCard() { next.specDigest !== runtimeJob.specDigest ) throw new Error('The optional-runtime job identity changed.'); - setRuntimeJob(next); + if (next.updatedAt < runtimeJob.updatedAt) + throw new Error('The optional-runtime job status is older than the last known progress.'); + if (controller.signal.aborted) return; + setRuntimePollingFailure(null); + setRuntimeJob((current) => + current?.id === runtimeJob.id && + current.operation === runtimeJob.operation && + current.profileId === runtimeJob.profileId && + current.specDigest === runtimeJob.specDigest && + next.updatedAt >= current.updatedAt + ? next + : current, + ); if (['cancelled', 'failed', 'ready'].includes(next.status)) { await fetchOptionalRuntimes(); if (next.operation === 'activate' && next.status === 'ready') { @@ -145,17 +172,20 @@ export default function RuntimeOptimizationsCard() { await Promise.all([nodes.fetchRuntimeStatus(), nodes.fetchStudioModelCapabilities()]); } } - } catch { + } catch (error) { if (!controller.signal.aborted) { - setRuntimeJob({ ...runtimeJob }); + setRuntimePollingFailure({ + jobId: runtimeJob.id, + ...optionalRuntimePollingFailure(error, (failure?.failures ?? 0) + 1), + }); } } - }, 750); + }, failure?.retryDelayMs ?? 750); return () => { controller.abort(); window.clearTimeout(timer); }; - }, [fetchOptionalRuntimes, runtimeJob]); + }, [fetchOptionalRuntimes, runtimeJob, runtimePollingFailure]); const runAction = async (busyKey: string, action: () => Promise) => { if (mutationInFlight.current) return; @@ -273,6 +303,21 @@ export default function RuntimeOptimizationsCard() { ) : null}

) : null} + {runtimePollingFailure && runtimePollingFailure.jobId === runtimeJob?.id ? ( +
+ + {runtimePollingFailure.message} Last known progress is shown.{' '} + {runtimePollingFailure.retryDelayMs === null ? 'Status checks paused.' : 'Retrying automatically.'} + + setRuntimePollingFailure(null)}> + Retry status + +
+ ) : null} {optionalRuntimeRequest.error ? (

{optionalRuntimeRequest.error}

) : optionalRuntimeRequest.status === 'loading' ? ( diff --git a/src/studio/optionalRuntimePolling.ts b/src/studio/optionalRuntimePolling.ts new file mode 100644 index 00000000..101c7db0 --- /dev/null +++ b/src/studio/optionalRuntimePolling.ts @@ -0,0 +1,25 @@ +import { formatRequestError, RequestError } from '../utils/requestJson'; + +export type OptionalRuntimePollingFailure = { + message: string; + failures: number; + retryDelayMs: number | null; +}; + +/** A lost status read never changes the durable job's outcome or identity. */ +export function optionalRuntimePollingFailure(error: unknown, failures: number): OptionalRuntimePollingFailure { + const transient = + error instanceof RequestError && + (error.kind === 'network' || + error.kind === 'timeout' || + (error.kind === 'http' && + error.status !== undefined && + ([408, 425, 429].includes(error.status) || error.status >= 500))); + return { + message: formatRequestError(error, 'Could not verify the setup status.'), + failures, + // Retry ordinary worker cutover failures, but stop a persistent outage + // from polling forever. Explicit Retry status reads the same job again. + retryDelayMs: transient && failures < 8 ? Math.min(750 * 2 ** Math.min(failures, 3), 5_000) : null, + }; +} diff --git a/tests/e2e/studio-mocked/studio-mocked.spec.ts b/tests/e2e/studio-mocked/studio-mocked.spec.ts index b6372142..44b7fa85 100644 --- a/tests/e2e/studio-mocked/studio-mocked.spec.ts +++ b/tests/e2e/studio-mocked/studio-mocked.spec.ts @@ -7584,6 +7584,92 @@ test('optional runtime activation survives refresh and worker disconnection with expect(mockOptionalRuntimeMutationCalls).toBe(0); }); +for (const failure of ['missing', 'malformed', 'identity', 'regressed'] as const) { + test(`optional runtime polling exposes ${failure} status and retries only the same job on request`, async ({ + page, + }) => { + mockOptionalRuntimeActions = true; + mockOptionalRuntimeJobState = 'running'; + await ensureFrontend(); + await installMockRoutes(page); + let unavailable = true; + let reads = 0; + await page.route('**/runtime/optional-runtimes/jobs/*', async (route) => { + reads += 1; + if (!unavailable) return route.fallback(); + const job = { + id: failure === 'identity' ? 'optjob-Different1234' : 'optjob-AbCdEf123456', + operation: 'install', + profileId: 'huggingface-transformers-peft-5.14.1-0.20.0', + specDigest: 'sha256:8e1b0b6b2baa891d4551caa3cde4d59708eced0fd74c1333b68a1aab7ff924b5', + createdAt: 1, + updatedAt: failure === 'regressed' ? 1 : 2, + status: 'running', + progress: { phase: 'installing', message: 'Installing reviewed artifacts into the isolated stage.' }, + }; + await route.fulfill({ + status: failure === 'missing' ? 404 : 200, + contentType: 'application/json', + body: JSON.stringify( + failure === 'missing' + ? { error: true, message: 'The setup job could not be found.' } + : { error: false, job: failure === 'malformed' ? {} : job }, + ), + }); + }); + await page.goto(FRONTEND_URL, { waitUntil: 'domcontentloaded' }); + await page.waitForFunction(() => Boolean(window.__MODIFF_E2E__), null, { timeout: 30_000 }); + await dismissTaskLauncher(page); + await page.evaluate(() => window.__MODIFF_E2E__!.openWorkspacePanelForTest('setup')); + const disclosure = page.getByText('Optional runtimes', { exact: true }).locator('..'); + const error = disclosure.getByTestId('optional-runtime-status-error'); + await expect(error).toContainText('Last known progress', { timeout: 3_000 }); + await expect(error).toContainText('paused'); + await expect(disclosure.getByTestId('optional-runtime-progress')).toContainText('Installing reviewed artifacts'); + await expect(disclosure.getByRole('button', { name: /^(Install|Activate|Repair)$/ })).toHaveCount(0); + const pausedReads = reads; + await page.waitForTimeout(1_600); + expect(reads).toBe(pausedReads); + unavailable = false; + mockOptionalRuntimeJobState = 'ready'; + await error.getByRole('button', { name: 'Retry status', exact: true }).click(); + await expect(error).toHaveCount(0); + await expect(disclosure.getByRole('button', { name: 'Activate', exact: true })).toBeVisible(); + expect(reads).toBeGreaterThan(pausedReads); + expect(mockOptionalRuntimeMutationCalls).toBe(0); + }); +} + +test('optional runtime polling reports a transient disconnect and resumes without a duplicate mutation', async ({ + page, +}) => { + mockOptionalRuntimeActions = true; + mockOptionalRuntimeJobState = 'running'; + await ensureFrontend(); + await installMockRoutes(page); + let unavailable = true; + let reads = 0; + await page.route('**/runtime/optional-runtimes/jobs/*', (route) => { + reads += 1; + return unavailable ? route.abort('connectionrefused') : route.fallback(); + }); + await page.goto(FRONTEND_URL, { waitUntil: 'domcontentloaded' }); + await page.waitForFunction(() => Boolean(window.__MODIFF_E2E__), null, { timeout: 30_000 }); + await dismissTaskLauncher(page); + await page.evaluate(() => window.__MODIFF_E2E__!.openWorkspacePanelForTest('setup')); + const disclosure = page.getByText('Optional runtimes', { exact: true }).locator('..'); + const error = disclosure.getByTestId('optional-runtime-status-error'); + await expect(error).toContainText('Retrying', { timeout: 3_000 }); + await expect(error).toContainText('Last known progress'); + await expect.poll(() => reads).toBeGreaterThan(1); + await expect(disclosure.getByRole('button', { name: /^(Install|Activate|Repair)$/ })).toHaveCount(0); + unavailable = false; + mockOptionalRuntimeJobState = 'ready'; + await expect(error).toHaveCount(0); + await expect(disclosure.getByRole('button', { name: 'Activate', exact: true })).toBeVisible(); + expect(mockOptionalRuntimeMutationCalls).toBe(0); +}); + test('a broken optional runtime can explicitly reset to base when legacy activation controls are unavailable', async ({ page, }) => { From 7cb6263f0d7543e76c82411bac15a4cfdee49123 Mon Sep 17 00:00:00 2001 From: Sourav Das Date: Fri, 9 Oct 2026 12:51:20 +0530 Subject: [PATCH 019/440] Pair client CI with the reviewed native setup backend --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 3e08cec3..65d22cee 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -33,7 +33,7 @@ jobs: with: repository: sdevil7th/MoDiff # Paired stable runtime, workflow bindings and registered Block contracts. - ref: 5f38a40af6d9f3befbd4c744a4700ab9865e323d + ref: ad79f3a8067febb338980e2838cec1bc7086b199 path: MoDiff persist-credentials: false - name: Verify the pinned backend supports native setup From 2e46642b2120fec2110f294f467b32f14929097a Mon Sep 17 00:00:00 2001 From: Sourav Das Date: Fri, 9 Oct 2026 13:31:37 +0530 Subject: [PATCH 020/440] Retry transient runtime HTTP errors without JSON responses --- scripts/bundle-budget.mjs | 5 +- scripts/request-boundary.test.mjs | 21 ++++++ src/studio/optionalRuntimePolling.ts | 4 +- tests/e2e/studio-mocked/studio-mocked.spec.ts | 64 ++++++++++--------- 4 files changed, 63 insertions(+), 31 deletions(-) diff --git a/scripts/bundle-budget.mjs b/scripts/bundle-budget.mjs index 73c2a9b4..768e4b33 100644 --- a/scripts/bundle-budget.mjs +++ b/scripts/bundle-budget.mjs @@ -236,7 +236,10 @@ const MAX_DEFERRED_CHUNK_GZIP_BYTES = 64 * 1024; // status-only recovery measure 269147 deferred gzip bytes (+457 from 268690). // Allow 512 bytes for this correctness fix in the existing lazy workspace; // startup, dependencies and both per-chunk ceilings remain unchanged. -const MAX_DEFERRED_GZIP_BYTES = 248 * 1024 + 512 + 3328 + 128 + 256 + 128 + 384 + 8704 + 768 + 640 + 512; +// Retrying non-JSON transient HTTP errors adds 14 bytes to the workspace chunk. +// The versioned aggregate measures 269341 bytes; allow 128 additional bytes +// for this correction, keeping startup, per-chunk and loading limits unchanged. +const MAX_DEFERRED_GZIP_BYTES = 248 * 1024 + 512 + 3328 + 128 + 256 + 128 + 384 + 8704 + 768 + 640 + 512 + 128; const STATIC_MODULE_REFERENCE = /\b(?:import(?=\s|["'{*])(?!\s*\()|export(?=\s|["'{*]))[^;]*?["'](\.\/[^"'?]+\.js)(?:\?v=[0-9a-f]{16})?["']/g; diff --git a/scripts/request-boundary.test.mjs b/scripts/request-boundary.test.mjs index 2c24f56f..dfb36755 100644 --- a/scripts/request-boundary.test.mjs +++ b/scripts/request-boundary.test.mjs @@ -80,6 +80,27 @@ test('optional setup status retries transient failures with bounded delay and pr } }); +test('optional setup status uses transient HTTP status when the real transport receives non-JSON errors', async () => { + for (const [status, retryDelayMs] of [ + [503, 1500], + [200, null], + [404, null], + ]) { + globalThis.fetch = async () => + new Response('Service Unavailable', { + status, + headers: { 'Content-Type': 'text/html' }, + }); + await assert.rejects(requestModule.requestJson('/runtime/optional-runtimes/jobs/optjob-AbCdEf123456'), (error) => { + assert.equal(error.kind, 'invalid_json'); + assert.equal(error.status, status); + assert.equal(optionalRuntimePolling.optionalRuntimePollingFailure(error, 1).retryDelayMs, retryDelayMs); + assert.equal(optionalRuntimePolling.optionalRuntimePollingFailure(error, 8).retryDelayMs, null); + return true; + }); + } +}); + test('missing, invalid and identity-mismatched setup status pause without fabricating a job outcome', () => { for (const error of [ new requestModule.RequestError('Job not found.', { kind: 'http', status: 404, url: '/job' }), diff --git a/src/studio/optionalRuntimePolling.ts b/src/studio/optionalRuntimePolling.ts index 101c7db0..e1ffa648 100644 --- a/src/studio/optionalRuntimePolling.ts +++ b/src/studio/optionalRuntimePolling.ts @@ -12,7 +12,9 @@ export function optionalRuntimePollingFailure(error: unknown, failures: number): error instanceof RequestError && (error.kind === 'network' || error.kind === 'timeout' || - (error.kind === 'http' && + // Proxies can return an HTML error while a worker is restarting. + // The transport retains its HTTP status even when JSON parsing fails. + ((error.kind === 'http' || error.kind === 'invalid_json') && error.status !== undefined && ([408, 425, 429].includes(error.status) || error.status >= 500))); return { diff --git a/tests/e2e/studio-mocked/studio-mocked.spec.ts b/tests/e2e/studio-mocked/studio-mocked.spec.ts index 44b7fa85..05c079b1 100644 --- a/tests/e2e/studio-mocked/studio-mocked.spec.ts +++ b/tests/e2e/studio-mocked/studio-mocked.spec.ts @@ -7598,7 +7598,7 @@ for (const failure of ['missing', 'malformed', 'identity', 'regressed'] as const reads += 1; if (!unavailable) return route.fallback(); const job = { - id: failure === 'identity' ? 'optjob-Different1234' : 'optjob-AbCdEf123456', + id: failure === 'identity' ? 'optjob-GhIjKl654321' : 'optjob-AbCdEf123456', operation: 'install', profileId: 'huggingface-transformers-peft-5.14.1-0.20.0', specDigest: 'sha256:8e1b0b6b2baa891d4551caa3cde4d59708eced0fd74c1333b68a1aab7ff924b5', @@ -7624,6 +7624,7 @@ for (const failure of ['missing', 'malformed', 'identity', 'regressed'] as const const disclosure = page.getByText('Optional runtimes', { exact: true }).locator('..'); const error = disclosure.getByTestId('optional-runtime-status-error'); await expect(error).toContainText('Last known progress', { timeout: 3_000 }); + if (failure === 'identity') await expect(error).toContainText('job identity changed'); await expect(error).toContainText('paused'); await expect(disclosure.getByTestId('optional-runtime-progress')).toContainText('Installing reviewed artifacts'); await expect(disclosure.getByRole('button', { name: /^(Install|Activate|Repair)$/ })).toHaveCount(0); @@ -7640,35 +7641,40 @@ for (const failure of ['missing', 'malformed', 'identity', 'regressed'] as const }); } -test('optional runtime polling reports a transient disconnect and resumes without a duplicate mutation', async ({ - page, -}) => { - mockOptionalRuntimeActions = true; - mockOptionalRuntimeJobState = 'running'; - await ensureFrontend(); - await installMockRoutes(page); - let unavailable = true; - let reads = 0; - await page.route('**/runtime/optional-runtimes/jobs/*', (route) => { - reads += 1; - return unavailable ? route.abort('connectionrefused') : route.fallback(); +for (const failure of ['disconnect', 'non-JSON503'] as const) { + test(`optional runtime polling reports a transient ${failure} and resumes without a duplicate mutation`, async ({ + page, + }) => { + mockOptionalRuntimeActions = true; + mockOptionalRuntimeJobState = 'running'; + await ensureFrontend(); + await installMockRoutes(page); + let unavailable = true; + let reads = 0; + await page.route('**/runtime/optional-runtimes/jobs/*', (route) => { + reads += 1; + if (!unavailable) return route.fallback(); + return failure === 'disconnect' + ? route.abort('connectionrefused') + : route.fulfill({ status: 503, contentType: 'text/html', body: 'Service Unavailable' }); + }); + await page.goto(FRONTEND_URL, { waitUntil: 'domcontentloaded' }); + await page.waitForFunction(() => Boolean(window.__MODIFF_E2E__), null, { timeout: 30_000 }); + await dismissTaskLauncher(page); + await page.evaluate(() => window.__MODIFF_E2E__!.openWorkspacePanelForTest('setup')); + const disclosure = page.getByText('Optional runtimes', { exact: true }).locator('..'); + const error = disclosure.getByTestId('optional-runtime-status-error'); + await expect(error).toContainText('Retrying', { timeout: 3_000 }); + await expect(error).toContainText('Last known progress'); + await expect.poll(() => reads).toBeGreaterThan(1); + await expect(disclosure.getByRole('button', { name: /^(Install|Activate|Repair)$/ })).toHaveCount(0); + unavailable = false; + mockOptionalRuntimeJobState = 'ready'; + await expect(error).toHaveCount(0); + await expect(disclosure.getByRole('button', { name: 'Activate', exact: true })).toBeVisible(); + expect(mockOptionalRuntimeMutationCalls).toBe(0); }); - await page.goto(FRONTEND_URL, { waitUntil: 'domcontentloaded' }); - await page.waitForFunction(() => Boolean(window.__MODIFF_E2E__), null, { timeout: 30_000 }); - await dismissTaskLauncher(page); - await page.evaluate(() => window.__MODIFF_E2E__!.openWorkspacePanelForTest('setup')); - const disclosure = page.getByText('Optional runtimes', { exact: true }).locator('..'); - const error = disclosure.getByTestId('optional-runtime-status-error'); - await expect(error).toContainText('Retrying', { timeout: 3_000 }); - await expect(error).toContainText('Last known progress'); - await expect.poll(() => reads).toBeGreaterThan(1); - await expect(disclosure.getByRole('button', { name: /^(Install|Activate|Repair)$/ })).toHaveCount(0); - unavailable = false; - mockOptionalRuntimeJobState = 'ready'; - await expect(error).toHaveCount(0); - await expect(disclosure.getByRole('button', { name: 'Activate', exact: true })).toBeVisible(); - expect(mockOptionalRuntimeMutationCalls).toBe(0); -}); +} test('a broken optional runtime can explicitly reset to base when legacy activation controls are unavailable', async ({ page, From a098d630f61cc869bee2bb35e52df93e7071813b Mon Sep 17 00:00:00 2001 From: Sourav Das Date: Fri, 9 Oct 2026 14:02:06 +0530 Subject: [PATCH 021/440] Preserve model preview across empty UI metadata refresh --- scripts/operation-authoring.test.mjs | 134 ++++++++++++++++++++++ src/components/OperationGraphControls.tsx | 10 +- src/workflow/operationGraphTransaction.ts | 19 ++- 3 files changed, 156 insertions(+), 7 deletions(-) diff --git a/scripts/operation-authoring.test.mjs b/scripts/operation-authoring.test.mjs index 356ec7c2..b1d970ea 100644 --- a/scripts/operation-authoring.test.mjs +++ b/scripts/operation-authoring.test.mjs @@ -478,6 +478,140 @@ test('review ignores derived operation availability but protects values, wires, } }); +test('a reviewed model change survives delayed empty uiState enrichment without losing Undo or sibling metadata', async () => { + const { useFlowStore } = await server.ssrLoadModule('/src/stores/useFlowStore.ts'); + const { captureWorkflowOperationContext } = await server.ssrLoadModule('/src/stores/useStudioStore.ts'); + const { commitOperationGraph, operationGraphSignature } = await server.ssrLoadModule( + '/src/workflow/operationGraphTransaction.ts', + ); + const flow = useFlowStore.getState(); + flow.replaceGraph(graph()); + flow.resetHistory(); + let before = flow.toObject(); + delete before.nodes[0].data.uiState; + delete before.nodes[1].data.uiState; + const sibling = structuredClone(before.nodes[1]); + sibling.id = 'independent-reviewed-stage'; + delete sibling.data.operationAuthoring; + before.nodes.push(sibling); + flow.replaceGraph(before); + before = flow.toObject(); + const context = captureWorkflowOperationContext(); + const signature = operationGraphSignature(before); + const plan = authoring.planOperationChange(before, before.nodes[0].id, starter('OtherPipeline')); + const enriched = structuredClone(before); + enriched.nodes[0].data.uiState = {}; + enriched.nodes[1].data.uiState = {}; + enriched.nodes[2].data.uiState = {}; + flow.replaceGraph(enriched); + assert.notEqual( + JSON.stringify(flow.toObject()), + JSON.stringify(before), + 'Exercise the actual delayed metadata difference.', + ); + assert.equal(operationGraphSignature(flow.toObject()), signature); + commitOperationGraph(plan.graph, context, signature, 'Change model after presentation refresh'); + assert.equal(flow.toObject().nodes[0].data.params.pipeline_class.value, 'OtherPipeline'); + assert.deepEqual(flow.toObject().nodes.find((node) => node.id === sibling.id).data.uiState, {}); + assert.deepEqual( + flow.toObject().nodes.find((node) => node.id === sibling.id).data.params, + enriched.nodes[2].data.params, + ); + assert.equal(useFlowStore.getState().historyPast.length, 1); + flow.undo(); + assert.equal(flow.toObject().nodes[0].data.params.pipeline_class.value, 'FuturePipeline'); + flow.redo(); + assert.equal(flow.toObject().nodes[0].data.params.pipeline_class.value, 'OtherPipeline'); +}); + +test('preview normalization preserves every nonempty UI setting and authored graph mutation', async () => { + const { useFlowStore } = await server.ssrLoadModule('/src/stores/useFlowStore.ts'); + const { captureWorkflowOperationContext } = await server.ssrLoadModule('/src/stores/useStudioStore.ts'); + const { commitOperationGraph, operationGraphSignature, operationGraphPreviewSignature } = await server.ssrLoadModule( + '/src/workflow/operationGraphTransaction.ts', + ); + const flow = useFlowStore.getState(); + flow.replaceGraph(graph()); + const original = flow.toObject(); + delete original.nodes[0].data.uiState; + original.nodes[1].data.params.seed = { type: 'int', value: { value: 4109, isRandom: false } }; + const previewSignature = operationGraphPreviewSignature(original); + const signature = operationGraphSignature(original); + const empty = structuredClone(original); + empty.nodes[0].data.uiState = {}; + assert.equal(operationGraphPreviewSignature(empty), previewSignature); + assert.equal(operationGraphSignature(empty), signature); + for (const mutate of [ + (value) => { + value.nodes[0].data.uiState = { collapsed: false }; + }, + (value) => { + value.nodes[0].data.uiState = { collapsed: true }; + }, + (value) => { + value.nodes[0].data.uiState = { disabled: false }; + }, + (value) => { + value.nodes[0].data.uiState = { disabled: true }; + }, + (value) => { + value.nodes[0].data.uiState = { blockExpanded: false }; + }, + (value) => { + value.nodes[0].data.params.pipeline_class.value = 'AnotherModel'; + }, + (value) => { + value.nodes[1].data.params.seed.value.value = 4110; + }, + (value) => { + value.nodes[1].data.params.seed.value.isRandom = true; + }, + (value) => { + value.nodes[1].data.operationAuthoring.authored = ['prompt']; + }, + (value) => { + value.nodes[1].data.operationAuthoring.operation.binding.values = { task: 'image_to_image' }; + }, + (value) => { + value.nodes[1].data.params.prompt.value = 'Edited prompt'; + }, + (value) => { + value.nodes[0].position.x += 1; + }, + (value) => { + value.edges[0].targetHandle = 'different-port'; + }, + (value) => { + value.nodes[0].data.label = 'Edited label'; + }, + ]) { + const changed = structuredClone(original); + mutate(changed); + assert.notEqual(operationGraphPreviewSignature(changed), previewSignature); + assert.notEqual(operationGraphSignature(changed), signature); + flow.replaceGraph(changed); + assert.throws( + () => commitOperationGraph(original, captureWorkflowOperationContext(), signature, 'Stale'), + /changed/, + ); + } + for (const uiState of [null, [], { arbitrary: {} }]) { + const changed = structuredClone(original); + changed.nodes[0].data.uiState = uiState; + assert.notEqual(operationGraphPreviewSignature(changed), previewSignature); + assert.notEqual(operationGraphSignature(changed), signature); + } + for (const field of ['hidden', 'disabled']) { + const changed = structuredClone(original); + changed.nodes[1].data.params.prompt[field] = true; + assert.notEqual( + operationGraphPreviewSignature(changed), + previewSignature, + 'The UI preview check gains no broader availability waiver.', + ); + } +}); + test('an application failure rolls the whole graph back and does not create a history entry', async () => { const { useFlowStore } = await server.ssrLoadModule('/src/stores/useFlowStore.ts'); const { captureWorkflowOperationContext } = await server.ssrLoadModule('/src/stores/useStudioStore.ts'); diff --git a/src/components/OperationGraphControls.tsx b/src/components/OperationGraphControls.tsx index d66330b7..64aebcff 100644 --- a/src/components/OperationGraphControls.tsx +++ b/src/components/OperationGraphControls.tsx @@ -19,7 +19,7 @@ import { type OperationStarter, } from '../workflow/operationAuthoring'; import { requestOperationStarter } from '../workflow/operationStarterRequest'; -import { commitOperationGraph } from '../workflow/operationGraphTransaction'; +import { commitOperationGraph, operationGraphPreviewSignature } from '../workflow/operationGraphTransaction'; import NodeInspectorDialog from './NodeInspectorDialog'; import { groupNewOperationGraph, @@ -84,14 +84,14 @@ export default function OperationGraphControls({ pending.current = controller; const context = captureWorkflowOperationContext(); const snapshot = useFlowStore.getState().toObject(); - const signature = JSON.stringify(snapshot); + const signature = operationGraphPreviewSignature(snapshot); setBusy(true); setError(null); try { const starter = await requestOperationStarter(pipeline, task, operations, controller.signal, executionProfileId); if (controller.signal.aborted) return; assertWorkflowOperationContext(context, { includeForm: false }); - if (JSON.stringify(useFlowStore.getState().toObject()) !== signature) + if (operationGraphPreviewSignature(useFlowStore.getState().toObject()) !== signature) throw new Error('The graph changed. Request a fresh preview.'); const effectiveOwnerId = visualOperationOwnerId(snapshot, loader, blockId); const visualOwner = effectiveOwnerId !== loader; @@ -108,7 +108,7 @@ export default function OperationGraphControls({ : planOperationChange(snapshot, effectiveOwnerId, starter, { replaceModel: Boolean(executionProfileId) }); if (controller.signal.aborted) return; assertWorkflowOperationContext(context, { includeForm: false }); - if (JSON.stringify(useFlowStore.getState().toObject()) !== signature) + if (operationGraphPreviewSignature(useFlowStore.getState().toObject()) !== signature) throw new Error('The graph changed. Request a fresh preview.'); setPreview({ starter, plan, context, signature }); } catch (e) { @@ -126,7 +126,7 @@ export default function OperationGraphControls({ try { assertWorkflowOperationContext(preview.context, { includeForm: false }); const flow = useFlowStore.getState(); - if (JSON.stringify(flow.toObject()) !== preview.signature) + if (operationGraphPreviewSignature(flow.toObject()) !== preview.signature) throw new Error('The graph changed after this preview. Close it and request a fresh preview.'); if (preview.plan) commitOperationGraph(preview.plan.graph, preview.context, preview.signature, 'Change operation model or task'); diff --git a/src/workflow/operationGraphTransaction.ts b/src/workflow/operationGraphTransaction.ts index eb002f95..e12e82c6 100644 --- a/src/workflow/operationGraphTransaction.ts +++ b/src/workflow/operationGraphTransaction.ts @@ -2,9 +2,20 @@ import { useFlowStore } from '../stores/useFlowStore'; import { assertWorkflowOperationContext, type WorkflowOperationContext } from '../stores/useStudioStore'; import type { OperationGraph } from './operationAuthoring'; -function reviewNode(node: OperationGraph['nodes'][number]) { - if (!node.data.operationAuthoring) return node; +function previewNode(node: OperationGraph['nodes'][number]) { + const uiState = node.data.uiState; + // A derived facade refresh may materialize the default empty object. Only + // that representation equals absence; every nonempty UI setting is an edit. + if (!uiState || Object.getPrototypeOf(uiState) !== Object.prototype || Object.keys(uiState).length) return node; const copy = structuredClone(node); + delete copy.data.uiState; + return copy; +} + +function reviewNode(node: OperationGraph['nodes'][number]) { + const reviewed = previewNode(node); + if (!reviewed.data.operationAuthoring) return reviewed; + const copy = structuredClone(reviewed); for (const field of Object.values(copy.data.params)) { // Connection/field actions recompute availability asynchronously. These // flags are not edits to a value, port contract, binding, or layout. @@ -14,6 +25,10 @@ function reviewNode(node: OperationGraph['nodes'][number]) { return copy; } +export function operationGraphPreviewSignature(graph: OperationGraph) { + return JSON.stringify({ ...graph, nodes: graph.nodes.map(previewNode) }); +} + export function operationGraphSignature(graph: OperationGraph) { return JSON.stringify({ ...graph, nodes: graph.nodes.map(reviewNode) }); } From 3e4f49c627f992ab7ec5b6ec3330d849255c2b2e Mon Sep 17 00:00:00 2001 From: Sourav Das Date: Fri, 9 Oct 2026 14:03:32 +0530 Subject: [PATCH 022/440] Pair client CI with reviewed recovery backend --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 65d22cee..86869e6f 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -33,7 +33,7 @@ jobs: with: repository: sdevil7th/MoDiff # Paired stable runtime, workflow bindings and registered Block contracts. - ref: ad79f3a8067febb338980e2838cec1bc7086b199 + ref: 18445cf985732c3c59d22b5931d72150fa49a284 path: MoDiff persist-credentials: false - name: Verify the pinned backend supports native setup From 3859605aa8feaa292f932127c2863780123e81e7 Mon Sep 17 00:00:00 2001 From: Sourav Das Date: Fri, 9 Oct 2026 15:02:37 +0530 Subject: [PATCH 023/440] Prepare exact full-image recipes with generic stage and safety contracts --- README.md | 5 +- docs/windows-support.md | 2 +- package.json | 2 +- scripts/bundle-budget.mjs | 12 +- ...e-full-native-template-candidates.test.mjs | 714 ++++++++++++++++++ scripts/image-model-usage-policies.test.mjs | 95 +++ .../workflow-library-auxiliary-sources.mjs | 44 ++ scripts/workflow-library-contract.mjs | 25 + scripts/workflow-library-dead-nodes.mjs | 140 +++- ...flow-library-dependency-contracts.test.mjs | 89 +++ scripts/workflow-library-generator.mjs | 39 +- scripts/workflow-library-verify.mjs | 39 +- src/components/TemplateBrowserDialog.tsx | 51 +- src/studio/executionSpecValues.ts | 2 + src/studio/modelProfiles.ts | 2 + src/studio/modelUsagePolicies.ts | 33 +- src/studio/templateModelSelection.ts | 33 + src/studio/templateOperationSelections.ts | 14 + src/studio/templateOperationWorkflow.ts | 41 + src/studio/templateReadiness.ts | 225 +++++- src/studio/templates.ts | 117 +++ src/studio/types.ts | 9 + 22 files changed, 1698 insertions(+), 35 deletions(-) create mode 100644 scripts/image-full-native-template-candidates.test.mjs create mode 100644 scripts/image-model-usage-policies.test.mjs create mode 100644 scripts/workflow-library-auxiliary-sources.mjs create mode 100644 scripts/workflow-library-dependency-contracts.test.mjs create mode 100644 src/studio/templateModelSelection.ts diff --git a/README.md b/README.md index 2689b93c..f913b9fc 100644 --- a/README.md +++ b/README.md @@ -480,13 +480,16 @@ in [Template Gallery asset storage](docs/template-gallery-assets.md). Run the same complete static/unit/build gate used by CI: ```bash +npx playwright install chromium npm run check ``` +The request/proxy regression tests in this gate also use Chromium. On a fresh +Linux host, install its system dependencies with `npx playwright install-deps chromium`. + Run the mocked Studio browser suite: ```bash -npx playwright install chromium npm run check:ui ``` diff --git a/docs/windows-support.md b/docs/windows-support.md index 442a45de..31ae3551 100644 --- a/docs/windows-support.md +++ b/docs/windows-support.md @@ -217,8 +217,8 @@ requires a target that actually publishes qualified actions. Client gates: ```powershell -npm run check npx playwright install chromium +npm run check npm run check:ui ``` diff --git a/package.json b/package.json index 98d6b561..c0703962 100644 --- a/package.json +++ b/package.json @@ -80,7 +80,7 @@ "test:graph-export": "node --test scripts/flow-graph-export.test.mjs", "test:hugging-face-cluster-drag": "node --test scripts/hugging-face-cluster-drag.test.mjs", "test:hugging-face-node-library": "node --test scripts/hugging-face-node-library.test.mjs", - "test:templates": "node --test scripts/modiff-template.test.mjs scripts/template-operation-workflows.test.mjs", + "test:templates": "node --test scripts/modiff-template.test.mjs scripts/template-operation-workflows.test.mjs scripts/image-full-native-template-candidates.test.mjs scripts/image-model-usage-policies.test.mjs scripts/workflow-library-dependency-contracts.test.mjs", "test:task-templates": "node --test scripts/task-template-contracts.test.mjs", "test:template-assets:local": "node --test scripts/template-default-inputs.test.mjs", "test:template-quality": "node --test scripts/template-quality.test.mjs", diff --git a/scripts/bundle-budget.mjs b/scripts/bundle-budget.mjs index 768e4b33..533b651e 100644 --- a/scripts/bundle-budget.mjs +++ b/scripts/bundle-budget.mjs @@ -44,7 +44,9 @@ const SOURCE_LICENSES = new URL('../public/THIRD_PARTY_LICENSES.txt', import.met // 576 bytes; retain lazy authoring and the independent deferred-chunk ceiling. // Owned metadata waiting and fresh-document hydration add 280 bytes to this // shared startup chunk (463950 measured). Bound the necessary fix by 320 bytes. -const MAX_STARTUP_CHUNK_GZIP_BYTES = 450 * 1024 + 768 + 1280 + 256 + 576 + 320; +// Two full-image recipe declarations and their reviewed terms add 1374 gzip +// bytes to the same startup chunk (465247 measured). Authoring stays deferred. +const MAX_STARTUP_CHUNK_GZIP_BYTES = 450 * 1024 + 768 + 1280 + 256 + 576 + 320 + 1536; // Shared icons initialize in graph-vendor, avoiding an entry/lazy-panel cycle // that captured undefined tab icons and crashed cold production startup. The // Earlier startup measured 589.1 KiB. Shared Block crossing, explicit movement, @@ -112,7 +114,9 @@ const MAX_STARTUP_CHUNK_GZIP_BYTES = 450 * 1024 + 768 + 1280 + 256 + 576 + 320; // no new dependencies or eager template-creation imports. // The same startup fix adds 277 bytes (642255 measured); deferred code falls // by 115 bytes. Add 320 here without changing lazy boundaries or chunk limits. -const MAX_STARTUP_GZIP_BYTES = 624 * 1024 + 768 + 1280 + 384 + 576 + 320; +// The same recipe metadata measures 643554 total startup bytes (+1378). +// Allocate 1536 bytes for this feature, preserving the existing four assets. +const MAX_STARTUP_GZIP_BYTES = 624 * 1024 + 768 + 1280 + 384 + 576 + 320 + 1536; // Deferred surfaces are measured separately so code splitting cannot hide an // unbounded feature bundle. These ceilings leave room for the reviewed dialogs // and catalog tools while preventing either one oversized deferred chunk or @@ -239,7 +243,9 @@ const MAX_DEFERRED_CHUNK_GZIP_BYTES = 64 * 1024; // Retrying non-JSON transient HTTP errors adds 14 bytes to the workspace chunk. // The versioned aggregate measures 269341 bytes; allow 128 additional bytes // for this correction, keeping startup, per-chunk and loading limits unchanged. -const MAX_DEFERRED_GZIP_BYTES = 248 * 1024 + 512 + 3328 + 128 + 256 + 128 + 384 + 8704 + 768 + 640 + 512 + 128; +// Exact Custom recipe readiness and selection measure 271404 deferred bytes. +// Allocate 2048 bytes above the prior cap; the 64 KiB per-chunk limit stays fixed. +const MAX_DEFERRED_GZIP_BYTES = 248 * 1024 + 512 + 3328 + 128 + 256 + 128 + 384 + 8704 + 768 + 640 + 512 + 128 + 2048; const STATIC_MODULE_REFERENCE = /\b(?:import(?=\s|["'{*])(?!\s*\()|export(?=\s|["'{*]))[^;]*?["'](\.\/[^"'?]+\.js)(?:\?v=[0-9a-f]{16})?["']/g; diff --git a/scripts/image-full-native-template-candidates.test.mjs b/scripts/image-full-native-template-candidates.test.mjs new file mode 100644 index 00000000..7ed4cdfa --- /dev/null +++ b/scripts/image-full-native-template-candidates.test.mjs @@ -0,0 +1,714 @@ +import assert from 'node:assert/strict'; +import { execFileSync } from 'node:child_process'; +import { readFile } from 'node:fs/promises'; +import path from 'node:path'; +import { after, before, test } from 'node:test'; +import { createServer } from 'vite'; +import { canonicalAuxiliaryTerminalBinding, verifyNoDeadWorkflowNodes } from './workflow-library-dead-nodes.mjs'; +import { + attachCanonicalAuxiliaryBinding, + parseCanonicalAuxiliarySources, +} from './workflow-library-auxiliary-sources.mjs'; + +const candidateIds = ['flux2_dev_text_to_image', 'cosmos3_super_text_to_image']; +const expected = { + flux2_dev_text_to_image: { + repo: 'black-forest-labs/FLUX.2-dev', + revision: '26afe3a78bb242c0a8bb181dcc8937bb16e5c66c', + pipeline: 'Flux2ModularPipeline', + profile: 'flux2:modular', + seed: 20260905, + actions: ['ModelsLoader', 'EncodePrompt', 'Denoise', 'DecodeLatents', 'Preview'], + }, + cosmos3_super_text_to_image: { + repo: 'nvidia/Cosmos3-Super-Text2Image', + revision: 'daf3d374804be4c512c2135568a7cb95d4341d79', + pipeline: 'Cosmos3OmniModularPipeline', + profile: 'cosmos3-super-text-to-image:official-modular-workflow', + seed: 1143, + actions: [ + 'ModelsLoader', + 'WorkflowCosmos3OmniTextEncode', + 'WorkflowCosmos3OmniDenoise', + 'WorkflowCosmos3OmniDecode', + 'WorkflowCosmos3OmniAfterDecode', + 'Preview', + ], + }, +}; +let server, publicTemplates, candidates, builder, exactness, groups, operations, starterRequests, flowStore; +let defaults, fixture, backendCaption, backendCaptionBytes; +let readiness, usagePolicies; +const backend = path.resolve('../MoDiff'); + +before(async () => { + const storage = new Map(); + globalThis.localStorage = { + getItem: (key) => storage.get(key) ?? null, + setItem: (key, value) => storage.set(key, value), + removeItem: (key) => storage.delete(key), + }; + globalThis.window = { + location: { origin: 'http://127.0.0.1:5191' }, + localStorage: globalThis.localStorage, + dispatchEvent: () => true, + }; + server = await createServer({ + configFile: false, + logLevel: 'silent', + optimizeDeps: { entries: [], noDiscovery: true }, + server: { middlewareMode: true, watch: null }, + appType: 'custom', + }); + const module = await server.ssrLoadModule('/src/studio/templates.ts'); + publicTemplates = module.STUDIO_TEMPLATES; + candidates = candidateIds.map((id) => module.PLANNING_STUDIO_TEMPLATES.find((item) => item.id === id)); + assert.ok(candidates.every(Boolean)); + builder = await server.ssrLoadModule('/src/studio/templateOperationWorkflow.ts'); + exactness = await server.ssrLoadModule('/src/studio/templateExactness.ts'); + readiness = await server.ssrLoadModule('/src/studio/templateReadiness.ts'); + usagePolicies = await server.ssrLoadModule('/src/studio/modelUsagePolicies.ts'); + groups = await server.ssrLoadModule('/src/workflow/visualOperationGroups.ts'); + operations = await server.ssrLoadModule('/src/workflow/operationContracts.ts'); + starterRequests = await server.ssrLoadModule('/src/workflow/operationStarterRequest.ts'); + ({ useFlowStore: flowStore } = await server.ssrLoadModule('/src/stores/useFlowStore.ts')); + ({ DEFAULT_STUDIO_FORM: defaults } = await server.ssrLoadModule('/src/studio/modelProfiles.ts')); + const python = process.env.MODIFF_BACKEND_PYTHON; + assert.ok(python, 'Use the declared ordinary native CPU environment, not a managed optional overlay.'); + fixture = JSON.parse( + execFileSync(python, [path.resolve('scripts/template-operation-fixtures.py')], { + cwd: backend, + encoding: 'utf8', + maxBuffer: 64 * 1024 * 1024, + input: JSON.stringify(candidates.map((item) => ({ id: item.id, selection: item.executionSelection }))), + env: { ...process.env, PYTHONDONTWRITEBYTECODE: '1' }, + }), + ); + backendCaptionBytes = await readFile(path.join(backend, 'data/cosmos3-super-t2i-publisher-caption.v1.json')); + backendCaption = JSON.parse(backendCaptionBytes); +}); +after(async () => server?.close()); + +function build(template, options = {}) { + const row = structuredClone(fixture.recipes.find((item) => item.id === template.id)); + row.capability = structuredClone(fixture.capabilities.find((item) => item.modelType === template.modelType)); + options.mutateRow?.(row); + const contracts = operations.parseOperationContracts( + fixture.publicPayload.operationContracts, + fixture.publicPayload.operationContractSchemaVersion, + ); + const starter = starterRequests.parseOperationStarter( + row.starter, + row.starter.pipelineClass, + row.starter.task, + contracts, + ); + const form = { ...defaults, ...exactness.getTemplateLockedSettings(template), ...options.form }; + const graph = builder.createTemplateOperationGraph( + template, + form, + starter, + fixture.registry, + row.spec, + row.capability, + ); + const flat = groups.unpackVisualOperationGroups(graph).graph; + const api = flowStore.getState().exportGraph('private-full-image-template-cpu', undefined, { + sourceGraph: graph, + randomizeSeeds: false, + }); + return { row, starter, form, graph, flat, api, nodes: Object.values(api.nodes) }; +} + +test('private full-model recipes do not alter the historical 54 public image recipes or publish proof', () => { + assert.equal(publicTemplates.filter((item) => item.example?.mediaType === 'image').length, 54); + for (const template of candidates) { + assert.equal( + publicTemplates.some((item) => item.id === template.id), + false, + ); + assert.equal(template.example.status, 'blocked'); + assert.equal(template.difficulty, 'blocked'); + assert.ok(template.example.blockReason); + for (const field of ['outputPath', 'mediaHash', 'runtimeFingerprint', 'verificationTimestamp', 'thumbnailPath']) + assert.equal(template.example[field], undefined); + assert.equal(template.executionSelection.implementation, 'native_stages'); + assert.equal( + template.executionSelection.guidancePolicy, + undefined, + 'Do not copy FLUX.1 true-CFG policy into embedded guidance.', + ); + } +}); + +test('both candidates export ordinary native nodes, exact owners and the original 50-step BF16 recipe', async (t) => { + for (const template of candidates) + await t.test(template.id, () => { + const { nodes, flat, api, form } = build(template); + const recipe = expected[template.id]; + assert.deepEqual(nodes.map((node) => node.action).sort(), [...recipe.actions].sort()); + assert.equal( + nodes.some((node) => ['LoadPipeline', 'Generate', 'DiffusersExecutionRecipe', 'Guider'].includes(node.action)), + false, + ); + const owner = nodes.find((node) => node.action === 'ModelsLoader'); + assert.equal(owner.params.repo_id.value.value, recipe.repo); + assert.equal(owner.params.revision.value, recipe.revision); + assert.equal(owner.params.model_type.value, recipe.pipeline); + const declaredProfiles = fixture.capabilities.flatMap((capability) => capability.executionProfiles ?? []); + const profile = declaredProfiles.find((item) => item.id === recipe.profile); + assert.ok(profile, 'The exact backend execution profile must exist.'); + assert.equal(profile.pipeline_class, recipe.pipeline); + assert.equal(profile.default_repo, recipe.repo); + if (template.id === 'cosmos3_super_text_to_image') + assert.deepEqual(profile.optional_runtime_profiles, ['cosmos-guardrail-0.3.1']); + if (owner.params.execution_profile_id) assert.equal(owner.params.execution_profile_id.value, recipe.profile); + assert.equal(owner.params.dtype.value, 'bfloat16'); + assert.equal(form.quantizationMode, 'none'); + assert.equal(owner.params.quant_config.sourceId, undefined); + assert.equal(owner.params.quant_config.value, undefined); + assert.equal(owner.params.offload_mode.value, 'none'); + assert.equal(owner.params.auto_offload.value, false); + assert.equal(owner.params.trust_remote_code.value, false); + assert.equal(form.resourceMode, 'expert'); + assert.equal(form.randomSeed, false); + const denoise = nodes.find((node) => /Denoise$/u.test(node.action)); + assert.equal(denoise.params.num_inference_steps.value, 50); + assert.equal(denoise.params.guidance_scale.value, 4); + assert.equal(Number(denoise.params.seed.value), recipe.seed); + if (template.id === 'flux2_dev_text_to_image') { + const nativeDenoise = flat.nodes.find((node) => node.data.action === 'Denoise'); + const guidance = nativeDenoise.data.operationAuthoring.operation.ports.find( + (port) => port.name === 'guidance_scale' && port.direction === 'input', + ).semantics.control; + assert.equal(guidance.technique, 'embedded_distilled'); + assert.equal(guidance.compatibilityScope, 'diffusers.flux2.embedded.v1'); + assert.equal(form.maxSequenceLength, 512); + } + const imageDimensions = nodes.find( + (node) => node.params.width?.value !== undefined && node.params.height?.value !== undefined, + ); + assert.equal(imageDimensions.params.width.value, 1024); + assert.equal(imageDimensions.params.height.value, 1024); + assert.ok(flat.nodes.some((node) => operations.operationOwnsModel(node.data.operationAuthoring?.operation))); + assert.equal(Object.values(api.nodes).filter((node) => node.action === 'Preview').length, 1); + }); +}); + +test('Cosmos publisher text comes from the actual backend starter and all safety-stage dependencies remain intact', () => { + const template = candidates.find((item) => item.id === 'cosmos3_super_text_to_image'); + const { api, nodes, flat, row, starter } = build(template); + const prompt = nodes.find((node) => node.action === 'WorkflowCosmos3OmniTextEncode'); + const sourcePrompt = starter.nodes.find((item) => item.node.action === 'WorkflowCosmos3OmniTextEncode').node.params + .prompt; + assert.equal(prompt.params.prompt.value, sourcePrompt.value ?? sourcePrompt.default); + assert.deepEqual(JSON.parse(prompt.params.prompt.value), backendCaption); + assert.deepEqual(Buffer.from(prompt.params.prompt.value, 'utf8'), backendCaptionBytes); + assert.equal(template.prompt, '', 'Do not duplicate the publisher caption in frontend recipe data.'); + const promptNode = flat.nodes.find((node) => node.data.action === 'WorkflowCosmos3OmniTextEncode'); + assert.equal(promptNode.data.operationAuthoring.authored?.includes('prompt') ?? false, false); + assert.equal(prompt.params.num_frames.value, 1); + for (const node of nodes.filter((item) => item.module === 'modules.ModularDiffusers')) { + assert.equal(node.params.workflow_id.value, 'text2image'); + if (node.action !== 'ModelsLoader') assert.equal(node.params.pipeline_class.value, 'Cosmos3OmniModularPipeline'); + } + const roleIds = new Map( + row.spec.roles.map(([role, key]) => [ + role, + Object.entries(api.nodes).find(([, node]) => `${node.module}.${node.action}` === key)[0], + ]), + ); + let wires = 0; + for (const [source, output, target, input] of row.spec.edges) { + const param = api.nodes[roleIds.get(target)].params[input]; + assert.equal(param.sourceId, roleIds.get(source)); + assert.equal(param.sourceKey, output); + wires += 1; + } + assert.equal(wires, 8); + assert.equal(api.nodes[roleIds.get('preview')].params.image.sourceId, roleIds.get('decode')); + assert.equal(api.nodes[roleIds.get('afterDecode')].params.state_in.sourceId, roleIds.get('decode')); + assert.equal(api.nodes[roleIds.get('afterDecode')].params.block_path.value, 'after_decode'); + assert.equal( + nodes.some((node) => node.action.includes('Distilled')), + false, + ); + assert.equal( + template.requiredBackendCapabilities.includes('modules.ModularDiffusers.WorkflowCosmos3OmniAfterDecode'), + true, + ); +}); + +test('backend default is only initial provenance: authored text and later intentional clears export unchanged', () => { + const template = candidates.find((item) => item.id === 'cosmos3_super_text_to_image'); + const authored = 'An intentionally different complete image caption.'; + const { graph, flat, nodes } = build(template, { form: { prompt: authored } }); + const prompt = nodes.find((node) => node.action === 'WorkflowCosmos3OmniTextEncode'); + assert.equal(prompt.params.prompt.value, authored); + const promptNode = flat.nodes.find((node) => node.data.action === 'WorkflowCosmos3OmniTextEncode'); + assert.ok(promptNode.data.operationAuthoring.authored.includes('prompt')); + promptNode.data.params.prompt.value = ''; + // Normal saved graph/export does not reapply a fresh-template policy. + const api = flowStore + .getState() + .exportGraph('intentional-clear', undefined, { sourceGraph: flat, randomizeSeeds: false }); + assert.equal( + Object.values(api.nodes).find((node) => node.action === 'WorkflowCosmos3OmniTextEncode').params.prompt.value, + '', + ); + assert.equal(graph.nodes.length > 0, true); +}); + +test('backend-default preservation fails closed without an exact declared text binding and nonempty starter default', () => { + const template = candidates.find((item) => item.id === 'cosmos3_super_text_to_image'); + const badField = structuredClone(template); + badField.executionSelection.backendDefaultInputs = ['artifact']; + assert.throws(() => build(badField), /needs one declared text binding/u); + assert.throws( + () => + build(template, { + mutateRow: (row) => { + const item = row.starter.nodes.find((node) => node.node.action === 'WorkflowCosmos3OmniTextEncode'); + item.node.params.prompt.value = ''; + item.node.params.prompt.default = ''; + }, + }), + /is missing or already authored/u, + ); + assert.throws( + () => + build(template, { + mutateRow: (row) => row.spec.bindings.push(['prompt', 'negative_prompt', 'prompt']), + }), + /needs one declared text binding/u, + ); +}); + +test('an immutable fresh recipe rejects a same-class artifact/revision or missing exact public profile', () => { + const template = candidates.find((item) => item.id === 'cosmos3_super_text_to_image'); + for (const mutation of [ + (row) => { + row.starter.nodes.find((item) => item.node.action === 'ModelsLoader').node.params.repo_id.value = { + source: 'hub', + value: 'nvidia/Cosmos3-Nano', + }; + }, + (row) => { + row.starter.nodes.find((item) => item.node.action === 'ModelsLoader').node.params.revision.value = 'a'.repeat(40); + }, + (row) => { + row.capability.executionProfiles = row.capability.executionProfiles.filter( + (profile) => profile.id !== template.executionSelection.executionProfileId, + ); + }, + ]) + assert.throws(() => build(template, { mutateRow: mutation }), /different immutable template model artifact/u); + for (const mutate of [ + (recipe) => { + recipe.modelArtifact.value = 'nvidia/Cosmos3-Nano'; + }, + (recipe) => { + recipe.modelArtifact.revision = 'a'.repeat(40); + }, + ]) { + const other = structuredClone(template); + mutate(other); + assert.throws(() => build(other), /different immutable template model artifact/u); + } + const withoutMediaRevision = structuredClone(template); + delete withoutMediaRevision.example.modelRevision; + assert.ok(build(withoutMediaRevision).graph.nodes.length); + assert.throws( + () => + build(withoutMediaRevision, { + mutateRow: (row) => { + row.starter.nodes.find((item) => item.node.action === 'ModelsLoader').node.params.revision.value = 'a'.repeat( + 40, + ); + }, + }), + /different immutable template model artifact/u, + ); + withoutMediaRevision.modelArtifact.revision = 'main'; + assert.throws(() => build(withoutMediaRevision), /different immutable template model artifact/u); +}); + +function runnableCandidate(template) { + // A CPU fixture exercising separate Custom admission; it publishes no recipe or proof. + return { + ...structuredClone(template), + difficulty: 'advanced', + readinessPolicy: 'runnable', + example: { ...template.example, status: 'unverified' }, + }; +} + +function customContext(template) { + const capabilities = structuredClone(fixture.capabilities); + const capability = capabilities.find((item) => item.modelType === template.modelType); + const profile = capability.executionProfiles.find( + (item) => item.id === template.executionSelection.executionProfileId, + ); + const optionalId = profile.optional_runtime_profiles?.[0]; + profile.optionalRuntimeRequirement = { + schemaVersion: 1, + delivery: optionalId ? 'optional_overlay' : 'base', + requiredNow: Boolean(optionalId), + profileIds: optionalId ? [optionalId] : [], + executionProfileIds: [profile.id], + state: optionalId ? 'active' : 'base_satisfied', + reason: 'Exact CPU fixture runtime requirement.', + }; + const requirements = + capability.modeRequirements?.[template.mode]?.modelRequirements ?? capability.additionalRequirements ?? []; + const artifact = capability.artifactSelections?.find( + (item) => item.repo === template.modelArtifact.value && item.modes.includes(template.mode), + ); + const baseFiles = + artifact?.downloadFiles ?? + (capability.defaultRepo === template.modelArtifact.value ? capability.downloadFiles : undefined); + const hfCache = [ + { + id: template.modelArtifact.value, + complete: true, + installed: true, + planned_revision: template.modelArtifact.revision, + planned_files: baseFiles ?? [], + }, + ...requirements.map((item) => ({ + id: item.repo, + complete: true, + installed: true, + planned_revision: item.revision, + planned_files: item.downloadFiles ?? [], + })), + ]; + const digest = `sha256:${'a'.repeat(64)}`; + return { + form: { + ...defaults, + ...exactness.getTemplateLockedSettings(template), + mode: template.mode, + modelType: template.modelType, + }, + hfCache, + localModels: [], + modelCacheDiagnostics: { locations: [] }, + nodesRegistry: fixture.registry, + studioModelCapabilities: capabilities, + runtimeStatus: { + ready: true, + runtimeEnvironment: { profileVerified: true, executionReady: true }, + packages: Object.fromEntries( + ['torch', 'diffusers', 'transformers', 'peft'].map((name) => [name, { available: true }]), + ), + missing_required_packages: [], + }, + optionalRuntimeCatalog: optionalId + ? { + profiles: [ + { + id: optionalId, + specDigest: digest, + cutoverReady: true, + contractState: 'qualified', + overlayStatus: 'active', + }, + ], + processLoadStatus: 'active', + activeOptionalRuntimeSpecs: [{ profileId: optionalId, specDigest: digest }], + } + : null, + // A missing Auto proof is deliberately not an installation/runtime waiver. + autoResourcePlan: { + status: 'needs_setup', + readiness: 'expert_only', + issue: { category: 'device' }, + compatibility: { + state: 'expert_only', + severity: 'warning', + code: 'manual_only', + summary: 'Auto unqualified', + detail: 'No Auto fit has been qualified.', + source: 'backend_auto_planner', + }, + }, + }; +} + +test('explicit resolved Custom recipes check exact prerequisites without requiring or claiming an Auto fit', async (t) => { + for (const template of candidates) + await t.test(template.id, () => { + const recipe = runnableCandidate(template), + context = customContext(recipe); + const result = readiness.getTemplateReadiness(recipe, context); + assert.equal(result.status, 'ready'); + assert.equal(result.label, 'Custom · experimental'); + assert.equal(result.tone, 'warning'); + assert.equal(result.compatibility.source, 'backend_execution_profile'); + assert.equal(result.compatibility.code, 'custom_recipe_experimental'); + assert.match(result.summary, /hardware fit and output quality remain experimental/u); + assert.equal(result.issues.length, 0); + assert.deepEqual(result.modelInstallTargets, []); + assert.equal(readiness.getTemplateReadiness(template, context).status, 'planning'); + }); +}); + +test('Custom readiness rejects wrong same-family defaults and preserves exact install revision/files', () => { + const recipe = runnableCandidate(candidates.find((item) => item.id === 'cosmos3_super_text_to_image')); + const context = customContext(recipe); + context.hfCache = context.hfCache.filter((item) => item.id !== recipe.modelArtifact.value); + context.hfCache.push({ id: 'nvidia/Cosmos3-Nano', complete: true, installed: true }); + let result = readiness.getTemplateReadiness(recipe, context); + assert.equal(result.status, 'needs_model'); + assert.deepEqual(result.missingModelRepos, [recipe.modelArtifact.value]); + assert.equal(result.modelInstallTargets[0].revision, recipe.modelArtifact.revision); + assert.equal( + result.modelInstallTargets.some((item) => item.repoId === 'nvidia/Cosmos3-Nano'), + false, + ); + context.hfCache.push({ + id: `${recipe.modelArtifact.value}-other`, + complete: true, + installed: true, + planned_revision: recipe.modelArtifact.revision, + }); + assert.equal(readiness.getTemplateReadiness(recipe, context).status, 'needs_model'); + context.hfCache.push({ + id: recipe.modelArtifact.value, + complete: true, + installed: true, + planned_revision: 'b'.repeat(40), + }); + result = readiness.getTemplateReadiness(recipe, context); + assert.equal(result.modelInstallTargets[0].repair, true); + assert.equal(result.issues.find((item) => item.repoId === recipe.modelArtifact.value).category, 'model_integrity'); + context.hfCache[context.hfCache.length - 1] = { + id: recipe.modelArtifact.value, + complete: false, + installed: false, + planned_revision: recipe.modelArtifact.revision, + repair_required: true, + }; + result = readiness.getTemplateReadiness(recipe, context); + assert.equal(result.modelInstallTargets[0].repair, true); + assert.equal(result.modelInstallTargets[0].actionLabel, 'Repair'); +}); + +test('Custom readiness retains required safety artifacts and their exact reviewed selections', () => { + const recipe = runnableCandidate(candidates.find((item) => item.id === 'cosmos3_super_text_to_image')); + const context = customContext(recipe); + assert.ok(context.hfCache.length >= 2); + const safety = context.hfCache[1]; + const capability = context.studioModelCapabilities.find((item) => item.modelType === recipe.modelType); + const dependency = ( + capability.modeRequirements?.[recipe.mode]?.modelRequirements ?? capability.additionalRequirements + ).find((item) => item.repo === safety.id); + dependency.downloadFiles = ['README.md']; // Exercise the generic declared file contract in this CPU fixture. + safety.planned_files = [...dependency.downloadFiles]; + context.hfCache[1] = { ...safety, planned_revision: 'c'.repeat(40) }; + const result = readiness.getTemplateReadiness(recipe, context); + assert.equal(result.status, 'needs_model'); + assert.equal(result.modelInstallTargets.find((item) => item.repoId === safety.id).repair, true); + assert.equal(result.modelInstallTargets.find((item) => item.repoId === safety.id).revision, safety.planned_revision); + assert.deepEqual(result.modelInstallTargets.find((item) => item.repoId === safety.id).files, safety.planned_files); +}); + +test('Custom memory never waives broken base runtime, profile identity, optional activation, or required image inputs', () => { + const template = candidates.find((item) => item.id === 'cosmos3_super_text_to_image'); + for (const mutate of [ + (recipe, context) => { + context.runtimeStatus.runtimeEnvironment.profileVerified = false; + }, + (recipe, context) => { + context.runtimeStatus.runtimeEnvironment.executionReady = false; + }, + (recipe, context) => { + context.runtimeStatus.packages.transformers.available = false; + }, + (recipe, context) => { + context.runtimeStatus.packages.peft.available = false; + }, + (recipe, context) => { + context.runtimeStatus.missing_required_packages = ['transformers']; + }, + (recipe, context) => { + context.studioModelCapabilities = []; + }, + (recipe) => { + recipe.modelArtifact.value = 'nvidia/Cosmos3-Nano'; + }, + (recipe) => { + recipe.modelArtifact.revision = 'd'.repeat(40); + }, + (recipe, context) => { + context.optionalRuntimeCatalog = null; + }, + (recipe, context) => { + context.optionalRuntimeCatalog.processLoadStatus = 'restart_required'; + }, + (recipe, context) => { + context.optionalRuntimeCatalog.activeOptionalRuntimeSpecs[0].specDigest = 'wrong'; + }, + (recipe, context) => { + const capability = context.studioModelCapabilities.find((item) => item.modelType === recipe.modelType); + const profile = capability.executionProfiles.find( + (item) => item.id === recipe.executionSelection.executionProfileId, + ); + profile.optionalRuntimeRequirement.state = 'staged'; + }, + ]) { + const recipe = runnableCandidate(template), + context = customContext(recipe); + mutate(recipe, context); + const result = readiness.getTemplateReadiness(recipe, context); + assert.equal(result.status, 'needs_backend'); + assert.equal(result.decision.state, 'blocked'); + } + const recipe = runnableCandidate(template), + context = customContext(recipe); + context.form.resourceMode = 'auto'; + assert.equal(readiness.getTemplateReadiness(recipe, context).status, 'needs_setup'); + recipe.inputRequirements = { referenceImages: 1 }; + context.form.resourceMode = 'expert'; + assert.equal(readiness.getTemplateReadiness(recipe, context).status, 'needs_input'); +}); + +test('template terms identify the declared full checkpoint rather than a static family default', () => { + const template = structuredClone(candidates[0]); + const policy = Object.values(usagePolicies.MODEL_USAGE_POLICIES).find((item) => + item.repository.includes('FLUX.1-dev'), + ); + assert.ok(policy, 'Use an existing reviewed policy; do not invent terms for the private new candidates.'); + template.modelArtifact = { source: 'hub', value: policy.repository, revision: 'd'.repeat(40) }; + const selected = usagePolicies.templateUsagePolicies(template).find((item) => item.repository === policy.repository); + assert.equal(selected?.revision, template.modelArtifact.revision); + const cosmosPolicies = usagePolicies.templateUsagePolicies(candidates[1]); + assert.ok( + cosmosPolicies.some((item) => item.repository === 'nvidia/Cosmos-Guardrail1' && item.acknowledgementRequired), + ); +}); + +test('canonical native workflows keep declaration-bound auxiliary terminals and reject every unused branch', async (t) => { + const template = candidates.find((item) => item.id === 'cosmos3_super_text_to_image'); + const built = build(template); + const workflow = { id: `${template.modelType}:${template.mode}`, modelType: template.modelType, mode: template.mode }; + const source = { + executionSpec: built.row.spec, + operationContracts: operations.parseOperationContracts( + fixture.publicPayload.operationContracts, + fixture.publicPayload.operationContractSchemaVersion, + ), + }; + assert.throws(() => verifyNoDeadWorkflowNodes(workflow, built.flat), /outside every output dependency path/); + workflow.auxiliaryTerminalBinding = canonicalAuxiliaryTerminalBinding(workflow, built.flat, source); + assert.equal(workflow.auxiliaryTerminalBinding.executionSpecId, built.row.spec.id); + assert.equal(workflow.auxiliaryTerminalBinding.executionSpecContentHash, built.row.spec.contentHash); + assert.equal(workflow.auxiliaryTerminalBinding.terminals.length, 1); + verifyNoDeadWorkflowNodes(workflow, built.flat, source); + assert.throws(() => verifyNoDeadWorkflowNodes(workflow, built.flat), /authoritative.*source contract/); + const byAction = (graph, action) => graph.nodes.find((node) => node.data.action === action); + const cases = { + 'missing mandatory post-processing': (graph) => { + graph.nodes = graph.nodes.filter((node) => node.data.action !== 'WorkflowCosmos3OmniAfterDecode'); + }, + 'missing SDK decode-state dependency': (graph) => { + const id = byAction(graph, 'WorkflowCosmos3OmniAfterDecode').id; + graph.edges = graph.edges.filter((edge) => edge.target !== id || edge.targetHandle !== 'state_in'); + }, + 'wrong model owner class': (graph) => { + byAction(graph, 'ModelsLoader').data.params.model_type.value = 'OtherModularPipeline'; + }, + 'wrong SDK stage': (graph) => { + byAction(graph, 'WorkflowCosmos3OmniAfterDecode').data.params.block_path.value = 'denoise'; + }, + 'wrong workflow context': (graph) => { + byAction(graph, 'WorkflowCosmos3OmniAfterDecode').data.params.workflow_id.value = 'text2video'; + }, + 'forged operation metadata': (graph) => { + byAction(graph, 'WorkflowCosmos3OmniAfterDecode').data.operationAuthoring.operation.operationId = + 'diffusion.denoise'; + }, + 'duplicate declared stage': (graph) => { + graph.nodes.push({ ...structuredClone(byAction(graph, 'WorkflowCosmos3OmniAfterDecode')), id: 'extra-stage' }); + }, + 'invented AfterDecode image port': (graph) => { + const preview = byAction(graph, 'Preview'); + const edge = graph.edges.find((row) => row.target === preview.id && row.targetHandle === 'image'); + edge.source = byAction(graph, 'WorkflowCosmos3OmniAfterDecode').id; + edge.sourceHandle = 'image'; + }, + 'extra dependency into auxiliary terminal': (graph) => { + graph.edges.push({ + id: 'extra-input', + source: byAction(graph, 'Preview').id, + sourceHandle: 'output', + target: byAction(graph, 'WorkflowCosmos3OmniAfterDecode').id, + targetHandle: 'action', + }); + }, + 'duplicate source for required SDK input': (graph) => { + const edge = graph.edges.find( + (row) => row.target === byAction(graph, 'WorkflowCosmos3OmniDenoise').id && row.targetHandle === 'state_in', + ); + graph.edges.push({ ...edge, id: 'duplicate-input' }); + }, + 'undeclared isolated branch': (graph) => { + graph.nodes.push({ id: 'stray', data: { module: 'modules.Image', action: 'Load', params: {} } }); + }, + 'disabled mandatory post-processing': (graph) => { + byAction(graph, 'WorkflowCosmos3OmniAfterDecode').data.uiState = { disabled: true }; + }, + }; + for (const [name, mutate] of Object.entries(cases)) + await t.test(name, () => { + const graph = structuredClone(built.flat); + mutate(graph); + assert.throws(() => verifyNoDeadWorkflowNodes(workflow, graph, source)); + }); + await t.test('forged manifest terminal, source identity and absent binding stay closed', () => { + const forged = structuredClone(workflow); + forged.auxiliaryTerminalBinding.terminals.push({ role: 'stray', nodeId: 'stray' }); + assert.throws(() => verifyNoDeadWorkflowNodes(forged, built.flat, source), /metadata differs/); + const wrongSource = structuredClone(source); + wrongSource.executionSpec.mode = 'text_to_video'; + assert.throws(() => verifyNoDeadWorkflowNodes(workflow, built.flat, wrongSource), /source contract/); + const changed = structuredClone(workflow); + changed.auxiliaryTerminalBinding.executionSpecContentHash = 'studio-spec-v1-ffffffff'; + assert.throws(() => verifyNoDeadWorkflowNodes(changed, built.flat, source), /metadata differs/); + }); + const flux = build(candidates.find((item) => item.id === 'flux2_dev_text_to_image')); + verifyNoDeadWorkflowNodes({ id: 'unchanged-full-flux' }, flux.flat); +}); + +test('canonical generator and verifier parse the same independent source before emitting an auxiliary binding', async () => { + const template = candidates.find((item) => item.id === 'cosmos3_super_text_to_image'); + const built = build(template); + const selected = [fixture.capabilities.find((item) => item.modelType === template.modelType)]; + const parsed = await parseCanonicalAuxiliarySources(fixture.publicPayload, selected, server); + const source = parsed.sources.get(`${template.modelType}|${template.mode}`); + assert.ok(source); + assert.equal(parsed.sources.has('Flux2ModularPipeline|text_to_image'), false); + const workflow = { id: `${template.modelType}:${template.mode}`, modelType: template.modelType, mode: template.mode }; + attachCanonicalAuxiliaryBinding(workflow, built.graph, parsed); + assert.ok(workflow.auxiliaryTerminalBinding); + verifyNoDeadWorkflowNodes(workflow, parsed.unpackGraph(built.graph), source); + const changed = structuredClone(fixture.publicPayload); + changed.capabilities.find((item) => item.modelType === template.modelType).studioExecutionSpecs[0].contentHash = + 'studio-spec-v1-ffffffff'; + await assert.rejects( + parseCanonicalAuxiliarySources(changed, selected, server), + /Invalid Studio execution specification/, + ); + const unrelated = await parseCanonicalAuxiliarySources( + fixture.publicPayload, + [{ modelType: 'Flux2ModularPipeline' }], + server, + ); + assert.equal(unrelated.sources.size, 0); + assert.equal(unrelated.unpackGraph(built.graph), built.graph); + const ordinary = { id: 'ordinary', modelType: 'Flux2ModularPipeline', mode: 'text_to_image' }; + const before = structuredClone(ordinary); + assert.equal(attachCanonicalAuxiliaryBinding(ordinary, built.graph, unrelated), ordinary); + assert.deepEqual(ordinary, before); +}); diff --git a/scripts/image-model-usage-policies.test.mjs b/scripts/image-model-usage-policies.test.mjs new file mode 100644 index 00000000..02b82eb9 --- /dev/null +++ b/scripts/image-model-usage-policies.test.mjs @@ -0,0 +1,95 @@ +import assert from 'node:assert/strict'; +import { createHash } from 'node:crypto'; +import { readFile } from 'node:fs/promises'; +import { after, before, test } from 'node:test'; +import { createServer } from 'vite'; + +let server, policies, profiles, templates, artifactCatalog, captionProvenance; + +before(async () => { + globalThis.localStorage = { getItem: () => null, setItem() {}, removeItem() {} }; + globalThis.window = { location: { origin: 'http://localhost' }, localStorage: globalThis.localStorage }; + server = await createServer({ + configFile: false, + logLevel: 'silent', + optimizeDeps: { entries: [], noDiscovery: true }, + server: { middlewareMode: true, watch: null }, + appType: 'custom', + }); + policies = await server.ssrLoadModule('/src/studio/modelUsagePolicies.ts'); + profiles = await server.ssrLoadModule('/src/studio/modelProfiles.ts'); + templates = await server.ssrLoadModule('/src/studio/templates.ts'); + artifactCatalog = JSON.parse(await readFile('../MoDiff/data/model-artifact-catalog.json', 'utf8')); + captionProvenance = JSON.parse( + await readFile('../MoDiff/data/cosmos3-super-t2i-publisher-caption-provenance.v1.json', 'utf8'), + ); +}); + +after(async () => server?.close()); + +test('full FLUX2 dev terms are distinct from FLUX1 and bind to the reviewed artifact', () => { + const policy = policies.usagePolicyForRepository(profiles.FLUX2_DEV_REPO); + const pin = artifactCatalog.repositoryPins.find((item) => item.repo === profiles.FLUX2_DEV_REPO); + assert.equal(policy.reviewedRevision, pin.revision); + assert.equal(pin.license, 'flux-non-commercial-license'); + assert.equal(policy.acknowledgementRequired, true); + assert.equal(policy.useScope, 'license_review_required'); + assert.equal(policy.access, 'huggingface_gated'); + assert.match(policy.shortSummary, /v2\.1/); + assert.match(policy.shortSummary, /non-commercial, non-production/); + assert.match(policy.shortSummary, /filtering or manual review/); + assert.doesNotMatch(policy.shortSummary, /FLUX\.1/); + assert.equal(policy.termsUrl, `https://huggingface.co/${pin.repo}/blob/${pin.revision}/LICENSE.md`); + assert.notEqual(policy.id, policies.usagePolicyForRepository(profiles.FLUX_DEV_REPO).id); + assert.equal(policies.repositoryRequiresHuggingFaceGate(pin.repo), true); +}); + +test('Cosmos Super uses its public OpenMDW terms while mandatory Guardrail keeps separate gated terms', async () => { + const policy = policies.usagePolicyForRepository(profiles.COSMOS3_SUPER_T2I_REPO); + const pin = artifactCatalog.repositoryPins.find((item) => item.repo === policy.repository); + assert.equal(policy.reviewedRevision, pin.revision); + assert.equal(policy.reviewedRevision, captionProvenance.revision); + assert.equal(pin.license, 'openmdw-1.1'); + assert.equal(policy.termsUrl, captionProvenance.publisherLicenseUrl); + const license = await readFile(`../MoDiff/${captionProvenance.licenseFile}`); + assert.equal(createHash('sha256').update(license).digest('hex'), captionProvenance.licenseFileSha256); + assert.equal(policy.access, 'public'); + assert.equal(policy.useScope, 'commercial_allowed'); + assert.equal(policy.acknowledgementRequired, true); + assert.equal(policies.repositoryRequiresHuggingFaceGate(pin.repo), false); + assert.match(policy.shortSummary, /license and applicable origin notices/); + assert.match(policy.shortSummary, /no output-use restrictions/); + const guardrail = policies.usagePolicyForRepository(profiles.COSMOS3_GUARDRAIL_REPO); + assert.equal(guardrail.access, 'huggingface_gated'); + assert.equal(guardrail.useScope, 'license_review_required'); + assert.notEqual(policy.id, guardrail.id); + assert.notEqual(policy.termsUrl, guardrail.termsUrl); +}); + +test('exact full-model template/install acknowledgements match and change on artifact or policy drift', () => { + for (const id of ['flux2_dev_text_to_image', 'cosmos3_super_text_to_image']) { + const template = templates.PLANNING_STUDIO_TEMPLATES.find((item) => item.id === id); + assert.ok(template); + assert.equal(template.example.status, 'blocked'); + assert.equal( + templates.STUDIO_TEMPLATES.some((item) => item.id === id), + false, + ); + const required = policies.acknowledgementRequiredForTemplate(template); + const base = required.find((item) => item.repository === template.modelArtifact.value); + assert.ok(base, 'Create must review the exact selected full model, not the static family default.'); + assert.equal(base.revision, template.modelArtifact.revision); + const install = policies.acknowledgementRequiredForRepository(base.repository, base.revision); + const key = policies.usagePolicyAcknowledgementKey([base]); + assert.equal(key, policies.usagePolicyAcknowledgementKey(install)); + assert.notEqual(key, policies.usagePolicyAcknowledgementKey([{ ...base, revision: 'f'.repeat(40) }])); + assert.notEqual(key, policies.usagePolicyAcknowledgementKey([{ ...base, policyVersion: 'changed' }])); + if (id === 'cosmos3_super_text_to_image') + assert.ok(required.some((item) => item.repository === profiles.COSMOS3_GUARDRAIL_REPO)); + } + assert.ok( + policies + .acknowledgementRequiredForModelRun({ modelType: 'Flux2ModularPipeline', mode: 'text_to_image' }) + .some((item) => item.repository === profiles.FLUX2_DEV_REPO), + ); +}); diff --git a/scripts/workflow-library-auxiliary-sources.mjs b/scripts/workflow-library-auxiliary-sources.mjs new file mode 100644 index 00000000..9699407e --- /dev/null +++ b/scripts/workflow-library-auxiliary-sources.mjs @@ -0,0 +1,44 @@ +import { canonicalAuxiliaryTerminalBinding } from './workflow-library-dead-nodes.mjs'; + +/** Parse independent backend source declarations; never use manifest metadata + * as authority for an auxiliary execution terminal. */ +export async function parseCanonicalAuxiliarySources(payload, selectedCapabilities, moduleServer) { + const selected = new Set(selectedCapabilities.map((capability) => capability.modelType)); + const capabilities = payload.capabilities.filter( + (capability) => + selected.has(capability.modelType) && + capability.studioExecutionSpecs?.some((spec) => spec.auxiliaryTerminalRoles?.length), + ); + if (capabilities.length === 0) return { sources: new Map(), unpackGraph: (graph) => graph }; + const specParser = await moduleServer.ssrLoadModule('/src/studio/executionSpecs.ts'); + const operationParser = await moduleServer.ssrLoadModule('/src/workflow/operationContracts.ts'); + const { unpackVisualOperationGroups } = await moduleServer.ssrLoadModule('/src/workflow/visualOperationGroups.ts'); + const operationContracts = operationParser.parseOperationContracts( + payload.operationContracts, + payload.operationContractSchemaVersion, + ); + const sources = new Map( + capabilities.flatMap((capability) => + specParser + .parseStudioExecutionSpecs( + capability.studioExecutionSpecs, + capability.modelType, + capability.runnableModes, + capability.executionProfiles, + ) + .filter((executionSpec) => executionSpec.auxiliaryTerminalRoles?.length) + .map((executionSpec) => [ + `${executionSpec.modelType}|${executionSpec.mode}`, + { executionSpec, operationContracts }, + ]), + ), + ); + return { sources, unpackGraph: (graph) => unpackVisualOperationGroups(graph).graph }; +} + +export function attachCanonicalAuxiliaryBinding(record, graph, parsed) { + const source = parsed.sources.get(`${record.modelType}|${record.mode}`); + if (source) + record.auxiliaryTerminalBinding = canonicalAuxiliaryTerminalBinding(record, parsed.unpackGraph(graph), source); + return record; +} diff --git a/scripts/workflow-library-contract.mjs b/scripts/workflow-library-contract.mjs index e901c35b..ce98b1b0 100644 --- a/scripts/workflow-library-contract.mjs +++ b/scripts/workflow-library-contract.mjs @@ -2,6 +2,31 @@ function paramValue(node, key) { return node?.data?.params?.[key]?.value; } +/** A canonical graph records both visible artifacts and backend-declared + * dependencies for its exact task. This is metadata, not installation or proof. */ +export function canonicalWorkflowRequiredArtifacts(graph, capability, mode) { + const artifacts = new Set(); + for (const node of graph?.nodes ?? []) { + for (const field of Object.values(node?.data?.params ?? {})) { + const value = field?.value; + if (value?.source === 'hub' && typeof value.value === 'string' && value.value.length > 0) + artifacts.add(value.value); + } + } + if (artifacts.size === 0 && capability.defaultRepo) artifacts.add(capability.defaultRepo); + for (const requirement of [ + ...(capability.inputContracts?.[mode]?.modelRequirements ?? []), + ...(capability.modeRequirements?.[mode]?.modelRequirements ?? []), + ...(capability.additionalRequirements ?? []), + ]) { + if (Array.isArray(requirement.requiredForModes) && !requirement.requiredForModes.includes(mode)) continue; + if (typeof requirement.repo !== 'string' || !requirement.repo.trim()) + throw new Error('A required canonical workflow dependency has no repository.'); + artifacts.add(requirement.repo); + } + return [...artifacts]; +} + const FORBIDDEN_ATTENTION_BACKENDS = new Set(['aiter', 'aiter_fa2_hub']); const APP_DATA_COLLISION_REFERENCE = /^(@data\/(?:audio|images|videos)\/[^/]+?)_[A-Za-z0-9_-]{6}(\.[A-Za-z0-9]+)$/; diff --git a/scripts/workflow-library-dead-nodes.mjs b/scripts/workflow-library-dead-nodes.mjs index 134504f7..fba271db 100644 --- a/scripts/workflow-library-dead-nodes.mjs +++ b/scripts/workflow-library-dead-nodes.mjs @@ -1,3 +1,5 @@ +import { canonicalJsonHash } from './canonical-json.mjs'; + const OUTPUT_NODE_KEYS = new Set([ 'modules.Audio.Export', 'modules.Image.Preview', @@ -94,7 +96,134 @@ function intentionalDisabledManagedFallbackNodeIds(graph) { return new Set([fallback.id]); } -export function verifyNoDeadWorkflowNodes(workflow, graph) { +/** Bind an auxiliary terminal to independently supplied backend source + * declarations. Manifest metadata alone can never declare an output root. */ +export function canonicalAuxiliaryTerminalBinding(workflow, graph, source) { + const spec = source?.executionSpec; + if ( + !spec || + spec.schemaVersion !== 1 || + spec.modelType !== workflow.modelType || + spec.mode !== workflow.mode || + !Array.isArray(spec.auxiliaryTerminalRoles) || + spec.auxiliaryTerminalRoles.length === 0 || + !Array.isArray(source.operationContracts) + ) + throw new Error(`${workflow.id} has no matching authoritative auxiliary-terminal source contract.`); + const nodes = graph.nodes ?? [], + edges = graph.edges ?? []; + const roles = new Map(); + for (const [role, key] of spec.roles) { + const candidates = nodes.filter((node) => nodeKey(node) === key); + if (candidates.length !== 1) + throw new Error(`${workflow.id} auxiliary source role ${role} is missing or ambiguous.`); + roles.set(role, candidates[0]); + } + const owner = nodes.find((node) => nodeKey(node) === `${spec.loaderModule}.${spec.loaderAction}`); + const ownerClass = owner?.data?.params?.model_type ?? owner?.data?.params?.pipeline_class; + if ( + ownerClass?.value !== spec.pipelineClass || + owner?.data?.operationAuthoring?.operation?.pipelineClass !== spec.pipelineClass + ) + throw new Error(`${workflow.id} auxiliary workflow changes its declared model owner.`); + for (const [from, sourceHandle, to, targetHandle] of spec.edges) + if ( + edges.filter((edge) => edge.target === roles.get(to)?.id && edge.targetHandle === targetHandle).length !== 1 || + !edges.some( + (edge) => + edge.source === roles.get(from)?.id && + edge.sourceHandle === sourceHandle && + edge.target === roles.get(to)?.id && + edge.targetHandle === targetHandle, + ) + ) + throw new Error(`${workflow.id} is missing an authoritative auxiliary-workflow dependency.`); + const terminals = spec.auxiliaryTerminalRoles.map((role) => { + const node = roles.get(role), + key = nodeKey(node); + const contracts = source.operationContracts.filter( + (contract) => + contract.nodeKey === key && + contract.pipelineClass === spec.pipelineClass && + contract.task === spec.mode && + contract.support === 'declared', + ); + if (contracts.length !== 1) + throw new Error(`${workflow.id} auxiliary stage has no unique authoritative operation contract.`); + const contract = contracts[0], + actual = node.data?.operationAuthoring?.operation; + for (const field of [ + 'operationId', + 'nodeKey', + 'nodeType', + 'blockName', + 'decomposition', + 'pipelineClass', + 'task', + 'support', + ]) + if (actual?.[field] !== contract[field]) + throw new Error(`${workflow.id} auxiliary stage differs from its authoritative operation.`); + const statePort = contract.ports.find( + (port) => + port.direction === 'input' && + port.required && + port.semantics?.kind === 'state' && + port.semantics.owner === 'same_loader', + ); + const componentPort = contract.ports.find( + (port) => + port.direction === 'input' && + port.required && + port.semantics?.kind === 'component' && + port.semantics.owner === 'same_loader', + ); + const prefix = `${spec.pipelineClass}:`; + if ( + !statePort?.semantics.scope?.startsWith(prefix) || + componentPort?.semantics.scope !== spec.pipelineClass || + contract.decomposition !== 'block' + ) + throw new Error(`${workflow.id} auxiliary stage has no declared owned SDK state dependency.`); + const workflowId = statePort.semantics.scope.slice(prefix.length); + const expected = { pipeline_class: spec.pipelineClass, workflow_id: workflowId, block_path: contract.blockName }; + if ( + actual.workflowId !== workflowId || + actual.binding?.pipelineClass !== spec.pipelineClass || + owner.data.params?.workflow_id?.value !== workflowId + ) + throw new Error(`${workflow.id} auxiliary stage changes its SDK workflow context.`); + for (const [field, value] of Object.entries(expected)) + if (node.data.params?.[field]?.value !== value || actual.binding?.values?.[field] !== value) + throw new Error(`${workflow.id} auxiliary stage changes a declared SDK binding.`); + const expectedIncoming = spec.edges + .filter(([, , target]) => target === role) + .map(([from, sourceHandle, , targetHandle]) => `${roles.get(from).id}\0${sourceHandle}\0${targetHandle}`) + .sort(); + const actualIncoming = edges + .filter((edge) => edge.target === node.id) + .map((edge) => `${edge.source}\0${edge.sourceHandle}\0${edge.targetHandle}`) + .sort(); + if ( + canonicalJsonHash(actualIncoming) !== canonicalJsonHash(expectedIncoming) || + edges.some((edge) => edge.source === node.id) + ) + throw new Error(`${workflow.id} auxiliary stage is not its exact declared terminal.`); + return { + role, + nodeId: node.id, + nodeKey: key, + operationId: contract.operationId, + pipelineClass: spec.pipelineClass, + task: spec.mode, + workflowId, + blockName: contract.blockName, + }; + }); + return { schemaVersion: 1, executionSpecId: spec.id, executionSpecContentHash: spec.contentHash, terminals }; +} + +export function verifyNoDeadWorkflowNodes(workflow, graph, authoritativeSource) { const nodes = graph.nodes ?? []; const edges = graph.edges ?? []; const nodesById = new Map(nodes.map((node) => [node.id, node])); @@ -113,7 +242,14 @@ export function verifyNoDeadWorkflowNodes(workflow, graph) { throw new Error(`${workflow.id} has no preview, export, or data output node.`); } - const used = new Set(outputNodes.map((node) => node.id)); + let auxiliaryIds = []; + if (Object.prototype.hasOwnProperty.call(workflow, 'auxiliaryTerminalBinding')) { + const expected = canonicalAuxiliaryTerminalBinding(workflow, graph, authoritativeSource); + if (canonicalJsonHash(workflow.auxiliaryTerminalBinding) !== canonicalJsonHash(expected)) + throw new Error(`${workflow.id} auxiliary-terminal metadata differs from its authoritative source binding.`); + auxiliaryIds = expected.terminals.map((terminal) => terminal.nodeId); + } + const used = new Set([...outputNodes.map((node) => node.id), ...auxiliaryIds]); const pending = [...used]; while (pending.length > 0) { const nodeId = pending.pop(); diff --git a/scripts/workflow-library-dependency-contracts.test.mjs b/scripts/workflow-library-dependency-contracts.test.mjs new file mode 100644 index 00000000..caef3fd8 --- /dev/null +++ b/scripts/workflow-library-dependency-contracts.test.mjs @@ -0,0 +1,89 @@ +import assert from 'node:assert/strict'; +import { execFileSync } from 'node:child_process'; +import path from 'node:path'; +import { before, test } from 'node:test'; +import { canonicalWorkflowRequiredArtifacts } from './workflow-library-contract.mjs'; + +const hub = (repository) => ({ value: { source: 'hub', value: repository } }); +const graph = (repositories) => ({ + nodes: repositories.map((repository) => ({ data: { params: { model: hub(repository) } } })), +}); +let capabilities; + +before(() => { + assert.ok(process.env.MODIFF_BACKEND_PYTHON, 'Use the declared ordinary native CPU schema-fixture environment.'); + const fixture = JSON.parse( + execFileSync(process.env.MODIFF_BACKEND_PYTHON, [path.resolve('scripts/template-operation-fixtures.py')], { + cwd: path.resolve('../MoDiff'), + encoding: 'utf8', + input: '[]', + maxBuffer: 64 * 1024 * 1024, + env: { ...process.env, PYTHONDONTWRITEBYTECODE: '1' }, + }), + ); + capabilities = fixture.capabilities; +}); + +test('visible owner and adapter artifacts retain their order and suppress a same-family default fallback', () => { + const input = graph(['publisher/selected-model', 'publisher/adapter', 'publisher/selected-model']); + assert.deepEqual( + canonicalWorkflowRequiredArtifacts(input, { defaultRepo: 'publisher/family-default' }, 'edit_image'), + ['publisher/selected-model', 'publisher/adapter'], + ); + assert.deepEqual( + canonicalWorkflowRequiredArtifacts({ nodes: [] }, { defaultRepo: 'publisher/default' }, 'text_to_image'), + ['publisher/default'], + ); +}); + +test('canonical Cosmos Super metadata retains both exact backend-required safety dependencies', () => { + const capability = capabilities.find((item) => item.modelType === 'Cosmos3OmniModularPipeline'); + const requirements = capability.inputContracts.text_to_image.modelRequirements; + assert.equal(requirements.length, 2); + assert.ok(requirements.every((item) => /^[a-f0-9]{40}$/u.test(item.revision))); + assert.deepEqual( + canonicalWorkflowRequiredArtifacts(graph(['nvidia/Cosmos3-Super-Text2Image']), capability, 'text_to_image'), + ['nvidia/Cosmos3-Super-Text2Image', ...requirements.map((item) => item.repo)], + ); + assert.equal(capability.autoEligible, false); + assert.equal(capability.galleryEligible, false); + assert.equal(capability.liveProof, false); + assert.deepEqual(capability.qualifiedModes, []); +}); + +test('declarations for other tasks are excluded and missing dependency identities fail closed', () => { + const capability = { + inputContracts: { + edit_image: { modelRequirements: [{ repo: 'publisher/edit-required' }] }, + text_to_image: { modelRequirements: [{ repo: 'publisher/text-required' }] }, + }, + modeRequirements: { + edit_image: { + modelRequirements: [{ repo: 'publisher/edit-required' }, { repo: 'publisher/legacy-edit-required' }], + }, + text_to_image: { modelRequirements: [{ repo: 'publisher/legacy-text-required' }] }, + }, + additionalRequirements: [ + { repo: 'publisher/shared' }, + { repo: 'publisher/edit-only', requiredForModes: ['edit_image'] }, + { repo: 'publisher/not-required', requiredForModes: [] }, + { repo: 'publisher/shared', requiredForModes: ['edit_image'] }, + ], + }; + assert.deepEqual(canonicalWorkflowRequiredArtifacts(graph(['publisher/selected']), capability, 'edit_image'), [ + 'publisher/selected', + 'publisher/edit-required', + 'publisher/legacy-edit-required', + 'publisher/shared', + 'publisher/edit-only', + ]); + assert.throws( + () => + canonicalWorkflowRequiredArtifacts( + graph(['publisher/selected']), + { additionalRequirements: [{}] }, + 'text_to_image', + ), + /dependency has no repository/, + ); +}); diff --git a/scripts/workflow-library-generator.mjs b/scripts/workflow-library-generator.mjs index 20096a0c..7f07139d 100644 --- a/scripts/workflow-library-generator.mjs +++ b/scripts/workflow-library-generator.mjs @@ -2,6 +2,7 @@ import { existsSync, mkdirSync, readFileSync, rmSync, writeFileSync } from 'node import { homedir } from 'node:os'; import { dirname, join, resolve } from 'node:path'; import { chromium } from 'playwright'; +import { createServer } from 'vite'; import { canonicalJsonHash as hash, stableJsonValue as stable } from './canonical-json.mjs'; import { closeWorkflowBrowser, @@ -13,11 +14,16 @@ import { } from './workflow-library-browser-session.mjs'; import { installEphemeralWorkflowStorage } from './workflow-library-ephemeral-storage.mjs'; import { + canonicalWorkflowRequiredArtifacts, normalizePortableWorkflowDataReference, normalizePortableWorkflowFieldState, normalizePortableWorkflowNodeOffload, } from './workflow-library-contract.mjs'; import { retainUnselectedCurrentWorkflowRecords } from './workflow-library-manifest-state.mjs'; +import { + attachCanonicalAuxiliaryBinding, + parseCanonicalAuxiliarySources, +} from './workflow-library-auxiliary-sources.mjs'; const ROOT = process.cwd(); const BACKEND_ROOT = resolve(process.env.MODIFF_BACKEND_DIR || join(ROOT, '..', 'MoDiff')); @@ -274,15 +280,6 @@ function applyCatalogArtifactPins(graph, artifactPins) { return graph; } -function requiredArtifactsForGraph(graph, defaultRepo) { - const artifacts = new Set(); - for (const node of graph?.nodes ?? []) { - for (const repository of hubRepositoriesForNode(node)) artifacts.add(repository); - } - if (artifacts.size === 0 && defaultRepo) artifacts.add(defaultRepo); - return [...artifacts]; -} - async function main() { const capabilities = await loadCapabilities(); const artifactPins = await loadArtifactPins(); @@ -294,6 +291,20 @@ async function main() { if (requestedPair && selectedCapabilities.length !== 1) { throw new Error(`The requested workflow pair is not uniquely runnable: ${requestedPair}.`); } + const parserServer = await createServer({ + root: ROOT, + configFile: false, + logLevel: 'silent', + optimizeDeps: { entries: [], noDiscovery: true }, + server: { middlewareMode: true, watch: null }, + appType: 'custom', + }); + let auxiliarySources; + try { + auxiliarySources = await parseCanonicalAuxiliarySources(capabilities, selectedCapabilities, parserServer); + } finally { + await parserServer.close(); + } const installedChrome = join( process.env.PLAYWRIGHT_BROWSERS_PATH || join(homedir(), '.cache', 'ms-playwright'), 'chromium-1228', @@ -578,7 +589,7 @@ async function main() { supportTier: capability.supportTier, qualificationStatus, ...qualificationDimensions(qualificationStatus), - requiredArtifacts: requiredArtifactsForGraph(graph, capability.defaultRepo), + requiredArtifacts: canonicalWorkflowRequiredArtifacts(graph, capability, mode), requiredInputs: capability.inputContracts?.[mode] ?? [], pipelineClasses: capability.pipelineClasses ?? [], sourceTemplateId: template.id, @@ -587,6 +598,7 @@ async function main() { graphPath: relativePath, graphHash, }; + attachCanonicalAuxiliaryBinding(record, graph, auxiliarySources); (isSupported ? records : experimentalRecords).push(record); } } @@ -642,7 +654,11 @@ async function main() { qualificationStatus, ...qualificationDimensions(qualificationStatus), variant: 'lora-theme', - requiredArtifacts: requiredArtifactsForGraph(graph, capability.defaultRepo || adapterRepo), + requiredArtifacts: canonicalWorkflowRequiredArtifacts( + graph, + { ...capability, defaultRepo: capability.defaultRepo || adapterRepo }, + template.mode, + ), requiredInputs: capability.inputContracts?.[template.mode] ?? [], pipelineClasses: capability.pipelineClasses ?? [], sourceTemplateId: template.id, @@ -651,6 +667,7 @@ async function main() { graphPath: relativePath, graphHash, }; + attachCanonicalAuxiliaryBinding(record, graph, auxiliarySources); (isSupported ? records : experimentalRecords).push(record); } diff --git a/scripts/workflow-library-verify.mjs b/scripts/workflow-library-verify.mjs index b30cf1f0..176f81aa 100644 --- a/scripts/workflow-library-verify.mjs +++ b/scripts/workflow-library-verify.mjs @@ -1,10 +1,12 @@ import { createHash } from 'node:crypto'; +import { execFileSync } from 'node:child_process'; import { existsSync, readFileSync } from 'node:fs'; import { join, resolve } from 'node:path'; import { createServer } from 'vite'; import { canonicalJsonHash, stableJsonValue as stable } from './canonical-json.mjs'; import { workflowNodeAttentionBackendError, workflowNodeDeviceOffloadError } from './workflow-library-contract.mjs'; import { verifyNoDeadWorkflowNodes } from './workflow-library-dead-nodes.mjs'; +import { parseCanonicalAuxiliarySources } from './workflow-library-auxiliary-sources.mjs'; const ROOT = process.cwd(); const BACKEND_ROOT = resolve(process.env.MODIFF_BACKEND_DIR || join(ROOT, '..', 'MoDiff')); @@ -33,6 +35,8 @@ if (!Array.isArray(manifest.workflows) || manifest.workflows.length !== expected } const pairs = new Set(); +let authoritativeAuxiliarySources = new Map(); +let unpackCanonicalGraph; function graphLayoutSignature(graph) { return stable( @@ -133,7 +137,12 @@ function verifyWorkflow(workflow, expectedTier, graphLayout) { const raw = readFileSync(graphPath, 'utf8'); const graph = JSON.parse(raw); verifyCanonicalLayout(workflow, graph, graphLayout); - verifyNoDeadWorkflowNodes(workflow, graph); + const dependencyGraph = workflow.auxiliaryTerminalBinding ? unpackCanonicalGraph(graph) : graph; + verifyNoDeadWorkflowNodes( + workflow, + dependencyGraph, + authoritativeAuxiliarySources.get(`${workflow.modelType}|${workflow.mode}`), + ); const nodeIds = new Set((graph.nodes ?? []).map((node) => node.id)); for (const node of graph.nodes ?? []) { if (node.parentId && !nodeIds.has(node.parentId)) { @@ -726,6 +735,34 @@ const layoutModuleServer = await createServer({ }); try { const graphLayout = await layoutModuleServer.ssrLoadModule('/src/workflow/graphLayout.ts'); + const sourceBoundWorkflows = [...manifest.workflows, ...(manifest.experimentalWorkflows ?? [])].filter((workflow) => + Object.prototype.hasOwnProperty.call(workflow, 'auxiliaryTerminalBinding'), + ); + if (sourceBoundWorkflows.length > 0) { + const python = process.env.MODIFF_BACKEND_PYTHON; + if (!python) + throw new Error( + 'Auxiliary-terminal verification requires the declared native MODIFF_BACKEND_PYTHON schema environment.', + ); + const fixture = JSON.parse( + execFileSync(python, [join(ROOT, 'scripts', 'template-operation-fixtures.py')], { + // The fixture imports the paired first-party source. The manifest's + // graph root may be a separate review tree and is not source authority. + cwd: resolve(ROOT, '..', 'MoDiff'), + input: '[]', + encoding: 'utf8', + maxBuffer: 64 * 1024 * 1024, + env: { ...process.env, PYTHONDONTWRITEBYTECODE: '1' }, + }), + ); + const parsed = await parseCanonicalAuxiliarySources( + fixture.publicPayload, + sourceBoundWorkflows, + layoutModuleServer, + ); + authoritativeAuxiliarySources = parsed.sources; + unpackCanonicalGraph = parsed.unpackGraph; + } const selectedSupported = requestedPair ? manifest.workflows.filter((workflow) => `${workflow.modelType}|${workflow.mode}` === requestedPair) : manifest.workflows; diff --git a/src/components/TemplateBrowserDialog.tsx b/src/components/TemplateBrowserDialog.tsx index d68c566b..b703c1d5 100644 --- a/src/components/TemplateBrowserDialog.tsx +++ b/src/components/TemplateBrowserDialog.tsx @@ -124,7 +124,9 @@ function templateAutoForm(template: StudioTemplate) { }); } -const templateAutoPlanEntries = STUDIO_TEMPLATES.map((template) => { +const templateAutoPlanEntries = STUDIO_TEMPLATES.filter( + (template) => template.executionSelection?.memoryPolicy !== 'custom_experimental', +).map((template) => { const form = templateAutoForm(template); return { form, planKey: autoPlanKeyForForm(form), templateId: template.id }; }); @@ -333,6 +335,8 @@ export default function TemplateBrowserDialog({ entry = false }: { entry?: boole const localModels = useNodesStore((state) => state.localModels); const modelCacheDiagnostics = useNodesStore((state) => state.modelCacheDiagnostics); const runtimeStatus = useNodesStore((state) => state.runtimeStatus); + const studioModelCapabilities = useNodesStore((state) => state.studioModelCapabilities); + const optionalRuntimeCatalog = useNodesStore((state) => state.optionalRuntimeCatalog); const nodesRegistry = useNodesStore((state) => state.nodesRegistry); const installHfModel = useNodesStore((state) => state.installHfModel); const modelIndexesRefreshing = useNodesStore((state) => @@ -510,10 +514,21 @@ export default function TemplateBrowserDialog({ entry = false }: { entry?: boole localModels, modelCacheDiagnostics, runtimeStatus, + studioModelCapabilities, + optionalRuntimeCatalog, nodesRegistry, modelIndexesRefreshing, }), - [hfCache, localModels, modelCacheDiagnostics, modelIndexesRefreshing, nodesRegistry, runtimeStatus], + [ + hfCache, + localModels, + modelCacheDiagnostics, + modelIndexesRefreshing, + nodesRegistry, + runtimeStatus, + studioModelCapabilities, + optionalRuntimeCatalog, + ], ); const effectiveFilter = useMemo( @@ -529,7 +544,10 @@ export default function TemplateBrowserDialog({ entry = false }: { entry?: boole [autoResourcePlans], ); const runtimeEstimateForTemplate = useCallback( - (template: StudioTemplate) => localRuntimeEstimate(autoPlanForTemplate(template)), + (template: StudioTemplate) => + template.executionSelection?.memoryPolicy === 'custom_experimental' + ? null + : localRuntimeEstimate(autoPlanForTemplate(template)), [autoPlanForTemplate], ); const isExperimentalTemplate = useCallback( @@ -724,10 +742,10 @@ export default function TemplateBrowserDialog({ entry = false }: { entry?: boole const pendingTermsPolicies = modelUsageTerms.pending?.policies ?? []; - const installRepo = async (repoId: string, repair = false) => { + const installRepo = async (repoId: string, repair = false, selection?: { revision?: string; files?: string[] }) => { setInstallingRepo(repoId); try { - await installHfModel(repoId, sid, { repair }); + await installHfModel(repoId, sid, { repair, ...selection }); setAutoResourcePlans(await loadTemplateAutoPlans(true)); } catch (error) { console.error(error); @@ -736,8 +754,15 @@ export default function TemplateBrowserDialog({ entry = false }: { entry?: boole } }; - const requestInstallRepo = (template: StudioTemplate, repoId: string, repair = false) => { - modelUsageTerms.request('install', acknowledgementRequiredForTemplate(template), () => installRepo(repoId, repair)); + const requestInstallRepo = ( + template: StudioTemplate, + repoId: string, + repair = false, + selection?: { revision?: string; files?: string[] }, + ) => { + modelUsageTerms.request('install', acknowledgementRequiredForTemplate(template), () => + installRepo(repoId, repair, selection), + ); }; const openSetup = () => { @@ -996,8 +1021,8 @@ export default function TemplateBrowserDialog({ entry = false }: { entry?: boole onCreate={() => { requestCreateFromTemplate(selectedTemplate); }} - onInstallRepo={(repoId, repair) => { - requestInstallRepo(selectedTemplate, repoId, repair); + onInstallRepo={(repoId, repair, selection) => { + requestInstallRepo(selectedTemplate, repoId, repair, selection); }} onOpenAssets={openAssets} onOpenModels={openModels} @@ -1232,7 +1257,7 @@ function TemplateRecipeDetail({ manifest: TemplateGalleryManifest | null; onBack: () => void; onCreate: () => void; - onInstallRepo: (repoId: string, repair?: boolean) => void; + onInstallRepo: (repoId: string, repair?: boolean, selection?: { revision?: string; files?: string[] }) => void; onOpenAssets: () => void; onOpenModels: () => void; onOpenSetup: () => void; @@ -1360,7 +1385,7 @@ function TemplateRecipeDetail({
{readiness.issues.length === 0 ? ( - + Create a graph tab, build the graph, and then run when you are ready. ) : ( @@ -1377,7 +1402,9 @@ function TemplateRecipeDetail({ icon={} disabled={installingRepo === target.repoId} aria-label={`Install ${target.repoId}`} - onClick={() => onInstallRepo(target.repoId, target.repair)} + onClick={() => + onInstallRepo(target.repoId, target.repair, { revision: target.revision, files: target.files }) + } > {installingRepo === target.repoId ? 'Installing...' : (target.actionLabel ?? 'Install')} diff --git a/src/studio/executionSpecValues.ts b/src/studio/executionSpecValues.ts index 3830da18..4c28c453 100644 --- a/src/studio/executionSpecValues.ts +++ b/src/studio/executionSpecValues.ts @@ -96,6 +96,8 @@ export function resolveStudioExecutionSpecValues( workflowImageEncoderBlock: 'vae_encoder', workflowDenoiseBlock: 'denoise', workflowDecodeBlock: 'decode', + workflowAfterDecodeBlock: 'after_decode', + oneFrame: 1, kind: auxiliaryRequirement?.kind, repo: auxiliaryRequirement ? { source: 'hub', value: auxiliaryRequirement.repo } : undefined, revision: auxiliaryRequirement?.revision, diff --git a/src/studio/modelProfiles.ts b/src/studio/modelProfiles.ts index 8ed017a6..ca4a17e0 100644 --- a/src/studio/modelProfiles.ts +++ b/src/studio/modelProfiles.ts @@ -559,6 +559,8 @@ export const HUNYUAN_VIDEO_15_LICENSE_REPO = 'tencent/HunyuanVideo-1.5'; export const HUNYUAN_VIDEO_15_LICENSE_REVISION = '9b49404b3f5df2a8f0b31df27a0c7ab872e7b038'; export const COSMOS3_DISTILLED_T2I_REPO = 'nvidia/Cosmos3-Super-Text2Image-4Step'; export const COSMOS3_DISTILLED_T2I_REVISION = 'aa0d5a57b7b045d68daa60fbacd84ec723c7cb7b'; +export const COSMOS3_SUPER_T2I_REPO = 'nvidia/Cosmos3-Super-Text2Image'; +export const COSMOS3_SUPER_T2I_REVISION = 'daf3d374804be4c512c2135568a7cb95d4341d79'; export const COSMOS3_DISTILLED_I2V_REPO = 'nvidia/Cosmos3-Super-Image2Video-4Step'; export const COSMOS3_DISTILLED_I2V_REVISION = 'cd55ce81bc5cea51a09c37cd7652144e7278f049'; export const COSMOS3_NANO_REPO = 'nvidia/Cosmos3-Nano'; diff --git a/src/studio/modelUsagePolicies.ts b/src/studio/modelUsagePolicies.ts index aa24eca8..9f35cf49 100644 --- a/src/studio/modelUsagePolicies.ts +++ b/src/studio/modelUsagePolicies.ts @@ -7,6 +7,10 @@ import { ANIMATELCM_MOTION_REVISION, COSMOS3_GUARDRAIL_REPO, COSMOS3_GUARDRAIL_REVISION, + COSMOS3_SUPER_T2I_REPO, + COSMOS3_SUPER_T2I_REVISION, + FLUX2_DEV_REPO, + FLUX2_DEV_REVISION, FLUX_DEV_FP8_REPO, FLUX_DEV_REPO, FLUX_DEV_REVISION, @@ -126,6 +130,33 @@ function hunyuanVideo15Policy(repository: string, reviewedRevision: string): Mod * repository name, a license substring, a GPU type, or a template id. */ export const MODEL_USAGE_POLICIES: Readonly> = Object.freeze({ + [FLUX2_DEV_REPO]: { + id: 'flux-non-commercial-license-v2.1:flux2-dev', + repository: FLUX2_DEV_REPO, + useScope: 'license_review_required', + acknowledgementRequired: true, + shortSummary: + 'FLUX Non-Commercial License v2.1 limits model use to non-commercial, non-production purposes. Output use follows separate restrictions. Content filtering or manual review, applicable AI-disclosure duties, and other terms apply; commercial model use requires separate authorization.', + termsUrl: `https://huggingface.co/${FLUX2_DEV_REPO}/blob/${FLUX2_DEV_REVISION}/LICENSE.md`, + modelCardUrl: `https://huggingface.co/${FLUX2_DEV_REPO}/tree/${FLUX2_DEV_REVISION}`, + access: 'huggingface_gated', + reviewedRevision: FLUX2_DEV_REVISION, + policyVersion: '2026-10-09', + reviewedAt: '2026-10-09', + }, + [COSMOS3_SUPER_T2I_REPO]: { + id: 'openmdw-1.1:cosmos3-super-text2image', + repository: COSMOS3_SUPER_T2I_REPO, + useScope: 'commercial_allowed', + acknowledgementRequired: true, + shortSummary: + 'OpenMDW-1.1 permits commercial and non-commercial use. Distribution must retain the license and applicable origin notices; independent rights clearance and other terms apply. The license imposes no output-use restrictions. Mandatory safety dependencies have separate terms.', + termsUrl: 'https://openmdw.ai/license/1-1/', + access: 'public', + reviewedRevision: COSMOS3_SUPER_T2I_REVISION, + policyVersion: '2026-10-09', + reviewedAt: '2026-10-09', + }, [ANIMA_REPO]: { id: 'circlestone-labs-non-commercial-license-v1:anima-base-v1', repository: ANIMA_REPO, @@ -338,7 +369,7 @@ function workflowArtifacts(template: StudioTemplate) { export function templateUsagePolicies(template: StudioTemplate): ResolvedModelUsagePolicy[] { const profile = getProfileForArtifactMode(STUDIO_MODEL_PROFILES[template.modelType], template.mode); const dependencies: Array<{ repository: string; revision?: string }> = [ - { repository: profile.defaultRepo }, + { repository: template.modelArtifact?.value ?? profile.defaultRepo, revision: template.modelArtifact?.revision }, ...getModelRequirementsForMode(profile, template.mode).map((requirement) => ({ repository: requirement.repo, revision: requirement.revision, diff --git a/src/studio/templateModelSelection.ts b/src/studio/templateModelSelection.ts new file mode 100644 index 00000000..24e2b4b0 --- /dev/null +++ b/src/studio/templateModelSelection.ts @@ -0,0 +1,33 @@ +import type { StudioModelProfile, StudioTemplate } from './types'; + +/** Exact backend ownership for a fresh recipe, independent of Auto and media + * qualification. It grants no package installation or execution permission. */ +export function resolveTemplateModelSelection(template: StudioTemplate, capabilities: StudioModelProfile[]) { + const selection = template.executionSelection; + if (!selection) return null; + const matching = capabilities.filter((item) => item.modelType === selection.bindingSpec.modelType); + if (matching.length !== 1) return null; + const capability = matching[0]!; + const profiles = capability.executionProfiles?.filter((item) => item.id === selection.executionProfileId); + if (profiles?.length !== 1) return null; + const profile = profiles[0]!; + if ( + template.modelType !== selection.bindingSpec.modelType || + template.mode !== selection.bindingSpec.mode || + profile.model_type !== selection.bindingSpec.modelType || + profile.pipeline_class !== selection.pipelineClass || + !profile.modes.includes(selection.bindingSpec.mode) || + !/^[A-Za-z0-9][A-Za-z0-9._-]{0,95}\/[A-Za-z0-9][A-Za-z0-9._-]{0,95}$/u.test(profile.default_repo) + ) + return null; + const artifact = template.modelArtifact; + const revision = artifact?.revision ?? template.example?.modelRevision; + if ( + !revision || + !/^[a-f0-9]{40}$/u.test(revision) || + (artifact && (artifact.source !== 'hub' || artifact.value !== profile.default_repo)) || + (template.example?.modelRevision && template.example.modelRevision !== revision) + ) + return null; + return { capability, profile, repository: profile.default_repo, revision }; +} diff --git a/src/studio/templateOperationSelections.ts b/src/studio/templateOperationSelections.ts index 1a98a371..df6a88ed 100644 --- a/src/studio/templateOperationSelections.ts +++ b/src/studio/templateOperationSelections.ts @@ -256,6 +256,20 @@ export const IMAGE_TEMPLATE_EXECUTION_SELECTIONS: Partial(); const claimed = new Set(); for (const [role, key, x, y] of spec.roles) { @@ -126,6 +145,14 @@ export function createTemplateOperationGraph( set(owner, ['vae_slicing'], policy.vaeSlicing); set(owner, ['vae_tiling'], policy.vaeTiling); } + const backendDefaultInputs = new Set(selection.backendDefaultInputs ?? []); + for (const source of backendDefaultInputs) { + if ( + !['prompt', 'negativePrompt'].includes(source) || + spec.bindings.filter(([, , name]) => name === source).length !== 1 + ) + throw new Error(`The template backend default ${source} needs one declared text binding.`); + } for (const [role, field, source] of spec.bindings) { const node = roles.get(role)!; // The selected backend profile owns its exact repository, revision and @@ -134,6 +161,20 @@ export function createTemplateOperationGraph( if (node.id === owner.id && OWNER_IDENTITY.has(source)) continue; const value = values[source]; if (value === undefined) throw new Error(`The template setting ${source} has no declared value.`); + if (backendDefaultInputs.has(source as 'prompt' | 'negativePrompt') && value === '') { + const hint = operationAuthoring(node); + const declared = node.data.params[field]; + const backendDefault = hint?.defaults[field]; + if ( + !declared || + typeof backendDefault !== 'string' || + !backendDefault.trim() || + hint?.authored?.includes(field) || + (declared.value ?? declared.default) !== backendDefault + ) + throw new Error(`The template backend default ${source} is missing or already authored.`); + continue; + } set(node, [field], value); } // A real starter Guider owns the scale shared by encoding and denoising. diff --git a/src/studio/templateReadiness.ts b/src/studio/templateReadiness.ts index 364f2930..0fe6b7da 100644 --- a/src/studio/templateReadiness.ts +++ b/src/studio/templateReadiness.ts @@ -22,6 +22,9 @@ import type { StudioTemplateModelArtifact, } from './types'; import { backendNodeKeysForCapability } from './templateBackendCapabilities'; +import { resolveTemplateModelSelection } from './templateModelSelection'; +import { optionalRuntimeBlockState, type OptionalRuntimeCatalog } from './optionalRuntimes'; +import type { StudioModelProfile } from './types'; export { isTemplateBackendCapabilityRecognized, templateBackendNodeKeys } from './templateBackendCapabilities'; export type TemplateReadinessStatus = @@ -52,6 +55,8 @@ export type TemplateReadinessContext = { nodesRegistry: Record; autoResourcePlan?: StudioAutoResourcePlan | null; modelIndexesRefreshing?: boolean; + studioModelCapabilities?: StudioModelProfile[]; + optionalRuntimeCatalog?: OptionalRuntimeCatalog | null; }; export type TemplateReadinessResult = { @@ -59,10 +64,18 @@ export type TemplateReadinessResult = { label: string; tone: TemplateReadinessTone; summary: string; - compatibility: StudioCompatibilityAssessment; + compatibility: + | StudioCompatibilityAssessment + | (Omit & { source: 'backend_execution_profile' }); issues: TemplateReadinessIssue[]; missingModelRepos: string[]; - modelInstallTargets: Array<{ repoId: string; repair?: boolean; actionLabel?: string }>; + modelInstallTargets: Array<{ + repoId: string; + repair?: boolean; + actionLabel?: string; + revision?: string; + files?: string[]; + }>; missingInputs: string[]; missingBackendCapabilities: string[]; decision: RunReadinessDecision; @@ -143,6 +156,7 @@ function workflowModelRequirements(template: StudioTemplate): StudioModelRequire id, label, repo: artifactRepoId(artifact), + revision: artifact.revision, kind: 'adapter', requiredForModes: [template.mode], description: `${label} pinned by ${template.label}.`, @@ -194,10 +208,217 @@ function needsLocalCompatibilityProof(template: StudioTemplate) { return false; } +/** Custom recipe admission checks prerequisites, never an Auto fit or media proof. */ +function customRecipeReadiness(template: StudioTemplate, context: TemplateReadinessContext): TemplateReadinessResult { + const selected = resolveTemplateModelSelection(template, context.studioModelCapabilities ?? []); + const issues: TemplateReadinessIssue[] = []; + const modelInstallTargets: TemplateReadinessResult['modelInstallTargets'] = []; + const missingRepos: string[] = []; + const backendIssues = missingBackendCapabilities(template, context.nodesRegistry); + const inputIssues = missingInputLabels(template, template.inputRequirements); + const planningOnly = + template.readinessPolicy === 'planning' || + template.difficulty === 'blocked' || + template.example?.status === 'blocked'; + const checkingModels = context.modelIndexesRefreshing === true; + const addSetup = (id: string, title: string, detail: string, category: RunReadinessIssueCategory = 'package') => + issues.push({ id, category, blocking: true, tone: 'error', title, detail, action: 'open_setup' }); + + if (planningOnly) + issues.push({ + id: 'planning', + category: 'graph', + blocking: true, + tone: 'info', + title: 'Planning template', + detail: template.example?.blockReason ?? 'This experimental recipe has not been admitted for normal use.', + action: 'open_planning', + }); + if (context.form?.resourceMode !== 'expert') + addSetup( + 'custom:memory', + 'Custom memory required', + 'This experimental recipe declares Custom settings; no Auto fit is qualified.', + 'environment', + ); + if (!selected) + addSetup( + 'custom:contract', + 'Exact backend recipe needed', + 'The declared profile, model artifact and immutable revision must match the backend contract.', + 'backend', + ); + if (!hasRegistry(context.nodesRegistry)) + addSetup( + 'backend:registry', + 'Backend contract needed', + 'Connect to the backend and refresh its node registry.', + 'backend', + ); + backendIssues.forEach((capability) => addSetup(`backend:${capability}`, 'Backend contract needed', capability)); + const runtime = context.runtimeStatus; + if ( + runtime?.ready !== true || + runtime.runtimeEnvironment?.profileVerified !== true || + runtime.runtimeEnvironment?.executionReady !== true || + (runtime.missing_required_packages?.length ?? 0) > 0 || + ['torch', 'diffusers', 'transformers', 'peft'].some((name) => runtime.packages?.[name]?.available !== true) + ) + addSetup( + 'custom:base-runtime', + 'Standard runtime needs repair', + 'Verify the installed accelerator runtime and required Torch, Diffusers, Transformers and PEFT packages.', + ); + if (selected) { + const requirement = selected.profile.optionalRuntimeRequirement; + const declaredOptional = selected.profile.optional_runtime_profiles ?? []; + const invalidRequirement = + declaredOptional.length > 0 && + (!requirement || + !requirement.executionProfileIds.includes(selected.profile.id) || + (requirement.requiredNow && !requirement.profileIds.some((id) => declaredOptional.includes(id)))); + const runtimeBlock = optionalRuntimeBlockState(requirement, context.optionalRuntimeCatalog ?? null); + if (invalidRequirement || runtimeBlock) + addSetup( + 'custom:optional-runtime', + 'Recipe runtime needed', + invalidRequirement + ? 'Refresh the exact backend runtime requirement for this recipe.' + : `${requirement?.reason ?? 'Required recipe runtime is not active.'} (${runtimeBlock})`, + ); + + const artifactSelection = selected.capability.artifactSelections?.find( + (item) => + item.repo === selected.repository && item.revision === selected.revision && item.modes.includes(template.mode), + ); + const requirements: StudioModelRequirement[] = [ + { + id: `${template.id}-base`, + label: selected.profile.id, + repo: selected.repository, + revision: selected.revision, + kind: 'base', + downloadFiles: + artifactSelection?.downloadFiles ?? + (selected.capability.defaultRepo === selected.repository ? selected.capability.downloadFiles : undefined), + }, + ...getModelRequirementsForMode(selected.capability, template.mode), + ...workflowModelRequirements(template), + ]; + if (!checkingModels) + for (const requirement of requirements) { + // Exact recipe checks must not accept a different repository with a matching substring. + const exactCache = context.hfCache.filter((entry) => + typeof entry === 'string' + ? entry === requirement.repo + : entry && typeof entry === 'object' && (entry as { id?: unknown }).id === requirement.repo, + ); + const cache = getRepoCacheStatus( + requirement.repo, + exactCache, + context.localModels, + context.modelCacheDiagnostics, + { revision: requirement.revision, files: requirement.downloadFiles }, + ); + if (cache.runnable) continue; + const repair = + cache.repairRequired || + exactCache.some((entry) => { + if (!entry || typeof entry !== 'object') return false; + const status = entry as { complete?: unknown; installed?: unknown; repair_required?: unknown }; + return status.complete === false || status.installed === false || status.repair_required === true; + }); + missingRepos.push(requirement.repo); + const actionLabel = repair ? 'Repair' : 'Install'; + modelInstallTargets.push({ + repoId: requirement.repo, + revision: requirement.revision, + files: requirement.downloadFiles, + repair, + actionLabel, + }); + issues.push({ + id: `model:${requirement.repo}`, + category: repair ? 'model_integrity' : 'model', + blocking: true, + tone: repair ? 'error' : 'warning', + title: repair ? 'Exact model package repair required' : 'Model package missing', + detail: `${requirement.repo}${requirement.revision ? ` @ ${requirement.revision}` : ''}: ${cache.reason}`, + action: 'install_model', + repoId: requirement.repo, + repair, + actionLabel, + }); + } + } + if (checkingModels) + issues.push({ + id: 'model-index-refresh', + category: 'model', + blocking: true, + tone: 'info', + title: 'Checking installed models', + detail: 'Refreshing the local model index before reporting recipe prerequisites.', + }); + inputIssues.forEach((input) => + issues.push({ + id: `input:${input}`, + category: 'asset', + blocking: true, + tone: 'warning', + title: `${input} required`, + detail: 'Add the declared required input before running this workflow.', + action: 'open_assets', + }), + ); + const decision = buildRunReadinessDecision(issues.map(runIssueForTemplateIssue), { preparing: checkingModels }); + const category = decision.primaryIssue?.category; + const status: TemplateReadinessStatus = planningOnly + ? 'planning' + : decision.state === 'preparing' + ? 'preparing' + : decision.state !== 'blocked' + ? 'ready' + : category === 'backend' || category === 'package' + ? 'needs_backend' + : category === 'model' || category === 'model_integrity' + ? 'needs_model' + : category === 'asset' || category === 'user_input' + ? 'needs_input' + : 'needs_setup'; + const copy = statusCopy(status); + const summary = + status === 'ready' + ? 'Required packages, exact model artifacts and inputs are available. This uses Custom memory; hardware fit and output quality remain experimental.' + : (issues[0]?.detail ?? 'Review the declared recipe prerequisites.'); + return { + status, + label: status === 'ready' ? 'Custom · experimental' : copy.label, + tone: status === 'ready' ? 'warning' : copy.tone, + summary, + compatibility: { + state: status === 'ready' ? 'ready' : status === 'needs_model' ? 'needs_model' : 'needs_setup', + severity: 'warning', + code: 'custom_recipe_experimental', + summary: 'Custom memory · experimental', + detail: 'Checks recipe prerequisites without claiming Auto hardware fit or validated output quality.', + source: 'backend_execution_profile', + }, + issues, + missingModelRepos: Array.from(new Set(missingRepos)), + modelInstallTargets: Array.from(new Map(modelInstallTargets.map((target) => [target.repoId, target])).values()), + missingInputs: inputIssues, + missingBackendCapabilities: backendIssues, + decision, + }; +} + export function getTemplateReadiness( template: StudioTemplate, context: TemplateReadinessContext, ): TemplateReadinessResult { + if (template.executionSelection?.memoryPolicy === 'custom_experimental') + return customRecipeReadiness(template, context); const profile = STUDIO_MODEL_PROFILES[template.modelType]; const autoReady = autoPlanIsReady(context.autoResourcePlan, context.form); const autoInstallTarget = autoResourceInstallTarget(context.autoResourcePlan, context.form); diff --git a/src/studio/templates.ts b/src/studio/templates.ts index 3c6af148..cc254a91 100644 --- a/src/studio/templates.ts +++ b/src/studio/templates.ts @@ -3964,6 +3964,123 @@ function withVideoDeliveryWorkflow(template: StudioTemplateSource, index: number const NORMALIZED_STUDIO_TEMPLATES: StudioTemplate[] = [ ...BASE_STUDIO_TEMPLATES.map(withVideoDeliveryWorkflow), + // Private qualification candidates: their original full-model contracts are + // explicit, but no output, Auto, Gallery or execution proof is claimed. + withTemplateRecipeDefaults( + { + id: 'flux2_dev_text_to_image', + label: 'FLUX.2-dev — Text to Image: Morning Light Teapot', + mode: 'text_to_image', + modelType: 'Flux2ModularPipeline', + category: 'flux', + tags: ['flux2', 'photography', 'product', 'full-model'], + difficulty: 'blocked', + executionSelection: IMAGE_TEMPLATE_EXECUTION_SELECTIONS.flux2_dev_text_to_image, + modelArtifact: { + source: 'hub', + value: 'black-forest-labs/FLUX.2-dev', + revision: '26afe3a78bb242c0a8bb181dcc8937bb16e5c66c', + }, + requiredBackendCapabilities: [ + 'modules.ModularDiffusers.ModelsLoader', + 'modules.ModularDiffusers.EncodePrompt', + 'modules.ModularDiffusers.Denoise', + 'modules.ModularDiffusers.DecodeLatents', + 'modules.Image.Preview', + ], + vramEstimate: '113 GB full BF16 weights plus execution memory; no offload qualification claimed', + runtimeEstimate: 'Full-model image timing remains pending', + description: + 'Generate a detailed studio product photograph with the full FLUX.2-dev model and visible native stages.', + presetId: 'flux_fast', + example: { + mediaType: 'image', + status: 'blocked', + lockedSeed: 20260905, + modelRevision: '26afe3a78bb242c0a8bb181dcc8937bb16e5c66c', + lockedSettings: { + width: 1024, + height: 1024, + randomSeed: false, + steps: 50, + guidanceScale: 4, + maxSequenceLength: 512, + dtype: 'bfloat16', + quantizationMode: 'none', + resourceMode: 'expert', + autoOffload: false, + offloadMode: 'none', + }, + expectedOutput: { width: 1024, height: 1024 }, + runtimeEstimate: 'Pending measured full native workflow execution', + blockReason: 'Full native workflow execution, seeded repeat and image review are pending.', + }, + }, + [ + 'A photorealistic close-up of a handmade blue ceramic teapot on a wooden workbench in a sunlit pottery studio. A single small green plant sits to its left. Warm sunlight enters through a window on the right, casting soft shadows across the table. Fine glaze texture and subtle fingerprints are visible on the teapot. On the front of the teapot, the painted words "MORNING LIGHT" are crisp and readable. Natural colors, calm composition, shallow depth of field, 35 mm photography.', + '', + ], + -1, + ), + withTemplateRecipeDefaults( + { + id: 'cosmos3_super_text_to_image', + label: 'Cosmos 3 Super — Text to Image: Publisher Caption', + mode: 'text_to_image', + modelType: 'Cosmos3OmniModularPipeline', + category: 'concept', + tags: ['cosmos3', 'publisher-recipe', 'full-model', 'safety-checked'], + difficulty: 'blocked', + executionSelection: IMAGE_TEMPLATE_EXECUTION_SELECTIONS.cosmos3_super_text_to_image, + modelArtifact: { + source: 'hub', + value: 'nvidia/Cosmos3-Super-Text2Image', + revision: 'daf3d374804be4c512c2135568a7cb95d4341d79', + }, + requiredBackendCapabilities: [ + 'modules.ModularDiffusers.ModelsLoader', + 'modules.ModularDiffusers.WorkflowCosmos3OmniTextEncode', + 'modules.ModularDiffusers.WorkflowCosmos3OmniDenoise', + 'modules.ModularDiffusers.WorkflowCosmos3OmniDecode', + 'modules.ModularDiffusers.WorkflowCosmos3OmniAfterDecode', + 'modules.Image.Preview', + ], + vramEstimate: '132 GB full BF16 weights plus execution and mandatory safety memory', + runtimeEstimate: 'Full-model image timing remains pending', + description: + 'Run the original 50-step Cosmos 3 Super image recipe with the backend-owned publisher caption and mandatory safety checks.', + userGoal: + 'Inspect and edit the publisher caption, denoising and safety-checked decoding stages in one ordinary graph.', + presetId: 'flux_fast', + example: { + mediaType: 'image', + status: 'blocked', + lockedSeed: 1143, + modelRevision: 'daf3d374804be4c512c2135568a7cb95d4341d79', + lockedSettings: { + width: 1024, + height: 1024, + randomSeed: false, + steps: 50, + guidanceScale: 4, + numFrames: 1, + dtype: 'bfloat16', + quantizationMode: 'none', + resourceMode: 'expert', + autoOffload: false, + offloadMode: 'none', + }, + expectedOutput: { width: 1024, height: 1024, frames: 1 }, + runtimeEstimate: 'Pending measured full native workflow execution', + blockReason: + 'Mandatory guardrail access/runtime and full native workflow execution, seeded repeat and image review are pending.', + notes: + 'The fresh graph inherits the exact resolved backend publisher caption; it remains editable. This is the original full model, not its separately published four-step variant.', + }, + }, + ['', ''], + -1, + ), // Keep new authored recipes independent of the legacy positional input/poster // indexes. This recipe has no source media and no published example yet. withTemplateRecipeDefaults( diff --git a/src/studio/types.ts b/src/studio/types.ts index 56b224cd..ae8e5255 100644 --- a/src/studio/types.ts +++ b/src/studio/types.ts @@ -315,6 +315,8 @@ export type StudioTemplateId = | 'flux_redux_edit' | 'flux_redux_multi_reference' | 'flux2_klein_text_to_image' + | 'flux2_dev_text_to_image' + | 'cosmos3_super_text_to_image' | 'flux2_klein_edit' | 'flux2_klein_multi_reference' | 'wan_vace_video_to_video' @@ -1576,6 +1578,11 @@ export type StudioTemplateExecutionSelection = { /** Existing backend recipe supplies semantic field/utility bindings only. */ bindingSpec: { modelType: StudioModelType; mode: StudioMode }; implementation: 'native_stages' | 'whole_pipeline'; + /** Fresh authoring only: an empty initial text input retains its resolved + * backend default. Authored text and subsequent edits always take priority. */ + backendDefaultInputs?: Array<'prompt' | 'negativePrompt'>; + /** Explicit initial recipe policy; Auto and Gallery qualification stay separate. */ + memoryPolicy?: 'custom_experimental'; /** Explicit old whole-pipeline component policies for converted recipes. */ componentPolicy?: { attentionBackend: 'auto' | '_native_math'; @@ -1612,6 +1619,8 @@ export type StudioTemplate = { workflowBlockSettings?: StudioTemplateWorkflowBlockSettings; /** Exact fresh-workflow choice; never applied to an existing saved graph. */ executionSelection?: StudioTemplateExecutionSelection; + /** Declared immutable artifact for this fresh recipe's backend model owner. */ + modelArtifact?: StudioTemplateModelArtifact; videoDelivery?: 'native' | 'spatial_upscale'; /** * `user_supplied` marks a runnable bring-your-own-model recipe whose card From 6d54bf8028d7a717d883bceb1f124a1f1abf8835 Mon Sep 17 00:00:00 2001 From: Sourav Das Date: Fri, 9 Oct 2026 16:45:56 +0530 Subject: [PATCH 024/440] Publish exact experimental full image templates with honest variant labels --- .github/workflows/ci.yml | 2 +- public/assets/cosmos3-super.card-poster.png | Bin 0 -> 383760 bytes public/assets/cosmos3-super.card-poster.svg | 35 ++++++++++ public/assets/flux2-dev.card-poster.png | Bin 0 -> 405617 bytes public/assets/flux2-dev.card-poster.svg | 38 ++++++++++ ...e-full-native-template-candidates.test.mjs | 55 ++++++++++++--- scripts/image-model-usage-policies.test.mjs | 6 +- scripts/modiff-template.test.mjs | 38 ++++++++-- scripts/template-gallery-harness.test.mjs | 4 +- scripts/template-operation-workflows.test.mjs | 10 ++- scripts/template-quality.test.mjs | 58 +++++++++++++++- src/components/TemplateBrowserDialog.tsx | 14 ++-- src/studio/templateBrowser.ts | 10 ++- src/studio/templateQuality.ts | 65 ++++++++++++++---- src/studio/templates.ts | 28 ++++---- src/studio/types.ts | 2 + tests/e2e/studio-mocked/studio-mocked.spec.ts | 49 +++++++++++++ vite.config.ts | 2 + 18 files changed, 352 insertions(+), 64 deletions(-) create mode 100644 public/assets/cosmos3-super.card-poster.png create mode 100644 public/assets/cosmos3-super.card-poster.svg create mode 100644 public/assets/flux2-dev.card-poster.png create mode 100644 public/assets/flux2-dev.card-poster.svg diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 86869e6f..251453e8 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -33,7 +33,7 @@ jobs: with: repository: sdevil7th/MoDiff # Paired stable runtime, workflow bindings and registered Block contracts. - ref: 18445cf985732c3c59d22b5931d72150fa49a284 + ref: 3b7cab86f5ddb17baf7a34d5b98ff40efb2736f1 path: MoDiff persist-credentials: false - name: Verify the pinned backend supports native setup diff --git a/public/assets/cosmos3-super.card-poster.png b/public/assets/cosmos3-super.card-poster.png new file mode 100644 index 0000000000000000000000000000000000000000..5179df9204efa7988afb2e4ce9b41abeefb57c49 GIT binary patch literal 383760 zcmY(Kc{r5)|F?@m8G}196GN6LBr_8+wz5~2O7?wkv5&D6(To^-7}=67*+TZE7zP|jUO&)MV>*B7{Har?nC_}8KRR`a4)~SU zf`JD3VSD>#dF++4e8g1XF@zb%9Sw?fMoZFX-No^^$XRD|-DB+}h^lu- zl3X-}S?~0Rw(Lx=epWncN8%7bIKstwhwHT)sMR*i1Qry+Z`;oiV9rn9GCm6@yI zTm2Rcr$$M1Qo!xmMAw}+N-S}hayNW&kt^XG$HHDF@dj)P|LNlB>oRYDIdcvnMlCrL zDQS=R?BVhN)jB^_ya6faaBp!vEX5QTUW2moRv0NF@>hy9i?XHe{i@cz=jQu$lN+)S#_{nLCSe0lHgeymOAbibvl*Iu zm%Vu9pu)zGQ%8MtqBo(7QvA@#yFA_bFhL=L@s{+9Gw@x#t$U0kwhqF8?0WFztH@O8^DsBgzU%R6waO&* zLHMEcgSYv_wjwRX8|2QFE{Zd%)`x@DwJ+`?j#!aT7E&B^gHNi*PwebUaHXMgV`kb9u#FfaNhE!eC7endH# z7>sXYeW?v&h2!vA3a@6LUF@hTvHl0=A=zA|12R@65!NzIqZ&K#yw9F)boZ0lh< z?hA97RYH~B*nYH3&yP?~U(rW$&Xz<5aAurgm1ESu@P?SI)!;;6LSuZ3cxdW%U7IE@ zUs`DDf2g{T@gm=By~6ktjl>jKZ$0cXaok>ZSwy~<=1JX4W#no>#Tg6<|2*z3F(ZkJ zO7+~AP%Nj}*cJ=J2X<}UJ=DkmdnWg)V(&-Db#h)|)trA-eXVAUa^BAr8R6axQoF(Y zs6OICNu$H|CYw^F=4)}hx^w0Aru_lC%wO9my;Jd|$&A6sK-?PpyY$NiN}&NQFW+0GfB5~&{!pb0=|7qFq4K2t<9y^7bbPO?z6%<2>S#y{ z(Abnv8Dh$OGr)6$YyJuS{joPk3Tv^nwXGFp$R#^2`My2whBqCbRXz6~c_Jq3syYZu zdGqt73RJg!&2mQD2frGAHQb2|$`2Tm*Qw1S!n&kHocHnGQcyP%2NWzpWn6mS2R$>cEb2job&+ zcEiD8x5VceMoDjGZE&SOI^zhIeg`N02ZE!2Xq3>0|7V~er9p6E(8V1~#ujTiv+AlX1)^-7>_|eU05GwNLU%Sr#@A9s(}K6NV781SHyey&}yZ zMZ>?++yksC>=R| z{fXSDdg>mizUU)5ukvlf)MkQ3Fb>){49ZrTU&%X#G5D|s4T-ZR)Gfh0ef>BWuVz6; z3rIZ$c+FRHzAYo}n#wkOuwEsI#93tOSYK@a^mb^dtD|io`6y%3tlec`zb(`$S&YwS zAJ3{(@AI4EL(z9y_8H8C z5quZQQ57*#y!6`rUDSxklaUc)=^k2DB!*fSRU6)#3~CoJyc$;9J%1+nOyQvPC`?p5YYON`UTT-xDZZRR=gLn8Ua-%KxidTEo;Rwry;@+~{%J=X}S1r%xfp{NEOm0%kVTgoa;xN}UTQ>+N{t78i433ZFP4e00 zf2QY7rnO7&I1Jg6qP}5$N|FbUBQINRgC3b)@sdOM6s@@>Bf^#u(k6bx@LSx<${I+G zom@!*n-XHt(L27~QfeuXE}!%5@LlP2m#)SVVxY^K7}h0#JoEYrM4s6R!dqs^?UMEG z@t=sDkMy8wo730ySmVgpd|ax!HMWgL*KOJE85w3>MQWX>2y3(?BXm`%U%^-#1vhH+ z2%nudfz^S~x~w7**&@F>cqXRpP49(5gtIv4Mr&1vAh!zb#ilGr*mvM%5W+;)SK+$4e3Vvv_VMRc0`j= zZus5^S3{>u>AU_hur)brsDr@)U7LCzJKfHZo=j|MVU)s8ys{yVNIe>1SR~|DR~c8$)yS<y$ z!Gk+4``Mh~{c?|_#dC`L{l1LZf`ON-@}3B6i>vcYnc0+16{tj}L3>S&yJ- z`z?KuUmoG4Ukvx#H-G&$rFG4ZNxmurRP!@wbYizIq;+{wbelJBVppE`+Rjm+4^{l4 zC4_Sgs@|XkK}eA3l#o%-x8A|kaJrE(q07Y&qGdT-mjWNfYpm$>mCK&y?}6J?iSlRI z@s!KnCCis(>f;i%4IT2fFY~`8p6vzYLl*SS0U|P9gLWY`(XLe%Pb!vtB)tf%b)AkX zw9TjQ&V@e~jp2asF%NZpg|d-Wb&e8Bhx<9*OD1$iU~LXp~m|M-Il{m6)2&) ztBC9p{0xL9b0!{~;j}M~Q{zJYdFi-;;3nKTsDEXV@9^pOfL?@2dAO}mR(jd8?3X%3t`*)}Z;%(VD%ln4QDHw*`NDhrFWFOG+^d4u{<@qtwv<=sY9h$9 zu&$n{73m)Njo-0VeNc4NY5SL-bd+sMTd1y?!<>w4&n>^iKOz=0;8-6+WyzFP9nIX2 zy;_2uJF9xLI=!{8w1m|5AYxOGU*Iu~g`D}gnpKGlF3TqG%!*|gl9=W&=S5QNn?oU! zqcmMhpK6HHNQT8u+K@4H8b7Wp`If0!6h1BZgyHqcdUIyCl6q8>HCTIZt2NJH9m;Mm z&MY7-+}uMY-|;mQCmxUdBZ|!;O8xL$WI+LW%7l*tCyDl%L05lz!U!gy=sPh`;MlP zZT0(%h0uZh&;931oFH%^Ar855eVKZcf{k(w&yY)a-s?(7mZAiW81ReaX)|JHzl5sK zPMPI-1zU5R!Bp?Z@Ek@l6v#Tu*R{UmySTGBCq*pY@SXc&Mc&0%W2#j~j{Fz}Ms=j% zb{cEZxqo8fX^2;v*2SB;RdPb_8;uyd)9nHiptL0DV z;`Je46e7+!8$`jP9UsI$NHqMpP`YcUgF`<^Un*CK5i30P!>Z}yZ>#0xS-LqC0UjL8D1_scXD5I!qCoBD&YwmMsSZH=?WZ*_WB4McsJ&YN=_ z5BVR=fB6^YTRw4$yX~K*7xwhilWAu1t(gnV`~t->9@VjP1^B=B99H*7^6O1~Cq$-! zodhpZzc<2<{3awljI)ZXK1Evl&IGPCd?4x%H-tpGUqI8H8w)!^y}P4P%PVJeJ9jvs zh(FHxr^kc-`bW+ju)VvrpSGr|cGugsBns?ax-k#esmsKOTEl$CzwBkw4qI{*EG197 z4BvXB;PL{gZ?kgGbmTzojhf}q8!fLVw!TIx3bGk9PQ`M;Vl(TFCABYTLq)bi+xzd% z_thK!{H^mD2G3Bc*S>t{#JltanR7QNKbUmFyjFG{xk}eihdx%WT|1*qPaDwopO*rE z)V?yhrIX4(ZljL1)R=#nk(8g9OK274tJRR?#}|Fxn7T$z*V)hS=)F2b zH9JDJrlFFCUx)DzoVCxQZ;OK8ltl5Cp3+ioo+p5MX_Szjcr9F)gc2gWlId;smbPcx zHx^*Kuy#PBr9y~};&^E~PmKn#!Q(z1%ZF~C#1uE@* zAxS6!&lq|D+oK?F0c;n{C$`fFxlx~B)H@S%9s}6E4-&%B5Akk4!r_NJbZp1$4%!q8 zkVdL5GGBw7_@HB9Hd6TL=YAThZI1UszSBwa*%Y|C`hK-&@e^EHCWK+cNJ*`C_sj}4 z{?fW(0qx5!9BAUVw<5|fX{{&0XK+T5|q3_BF*)W?b-BHOKkIF9_s;*wV$sVuj zT53ZsvEKDKo#5@l>z$nE>LH^dO3E#Xh4QHd8d*QD?;jqXosw>Y(12;HO7ALrl-oQ` zGe7)rSM3Y{{PWq9c4v_yNT7vepfGc8io3KbSOwn}RK!h*A>kvROS_&yKE)b-DQjFYEg~AsO}jKkt)@7ay2yyk5$(B=CfuqJCzycrC>whc6S`G)+64L7 z_GK%yd(nlxUxmz8mdLtZJxbvR06vs7G!Z++D1D(H0QkC2;JhZ8S!|1rPy*P$iVqNs zI4;={$7;BVC`OO?d(+~#R0fAdWXTN8pv3&ji^-u(v(ehAJ@ATZ>6D*a1CCBC-6ie~ zj|Ga4ffIUbksvvKovbp=_1t7l$f~y4&=YwuJxnKu2I~iom}r{w`qRHfrdVHDCMZu9UHMjOIrV^x1k>7$ytEE zxKCL`P>0~Aizu2eQELc#=@()}a_XC0nqRq!H?EmrzcY^=&42aC$W`{J`Z=}dIwXQ2 zZ0XZ6cXS&Wj!-kTHc<2L2cN96i1igskX5h$VR|PUSJP=zRj;HTcIad&)+8=DhWro@ zKG11Y%q4xdcrpuDLORcnK!!~Q_&>+p72STA1 z@X#u0St~aPT6E618ui6>$HlekfpVWyl>5T(-ciJwHx{7wp#MQTA3w`N?v33fHYH@7 z4Jr;eaWmED2X}53iClhW6bVV-MV#$>BkzXM*{JI(`L;sigftdxXEE$TSfSjC-}Q6H zhNp+;+kdw?4a&6lz~nynQe-yBa{I{s;6jYj3A}rg%>;-#tn*NC=CvOaHhhX$YD<3* zxSb2J_ETQfhvn|$sUul1z3lOu`zwQ+XA8$9@o5iJ)6>s1^)G=sTl!?0Ww6RDWTz&6~USrFB-luT2^uDIsy4dOs0cS)OKyb+Yk39)7w0h@1*sJG6 zvm%_A=BvZG;00nM+%5(RswQ2w3r7 zT;-Kn^8fU;ugWKPLF=(KRsF`!-H7&ySn1T(r)M9G8c9exLuRFT3@2ile_hl4ea~TB znr(E-EvkD2tT5mUB=z*H*}n9@L|cVs;e!wF{5qf4aZDYaZipXjGU3SYFj#A{PkBGf z`K-GoQXclFui|1;ntdPnmd{Y!#P53J6fl~34~yzLXoWo}_LYg;?h5{Pu-QkQc(p1m z8mt%P)LN46spY1BfnKcaa?hNhU09E;=wTS1ecr_W9ZH@&!HT1N3Gz4qeYAeu=Xvo_ zy2Vc6=7Pu2vWffg!@8I|LM`o=^6Xa!_uqu9Vp7j$r>prKU!MGa@ZJ&gC%9)wY9c@ z$U(Jm2VxiU)y>+ol#&-j3rzZ5r25sBQJTTpv>&RA+(cWvJH%-;R;mXc`eBGBM!LN1Q0nM+WvkeGARWEVK&r!u?zzm`x$A<^m1o7yW6zp*wozu>D)U zbZwsCM>xy<5xEFK#QS>m6EZEB@0H2#kujvYiqsdmDUo!PqW|K&T-k)qlOnwmJaesM zTeog|Ns~s5)-z6*Pb7NUR6Y`bV!Ydni_xqL0X9TF#rY?!^B40Osr1lBtT)*-aj?wm-!JVZ3pwkDRN=4Rx0+dqKN$68-y2 zy!8=nH0Mi$Z(4s1HBi+%4@zVp5*gIyv~Co33Oqt@J}cM~rFW^?rSCjo-7>&+d|-Z- zeN#W*vAL7)+9|STmUUWJ{!Ur`6@7)d>+xEXz1I^YB=g_OTHupz@*@YTl2Qe^&t{$g z{29jjQOZk3D3HZ}H&>S=509vP4nx7e3m+$B-^(i!LwyGCmYu>*AYY;SE~TqG>)yl2 zJe{ML6^(D}uJ*rY*Eh6aFk>=$9SK^x%E$+#@g_X1Ab8Oo<0<0HiBcDdm=`jc6OLMF z4!DJ+2}}%qrlo%vK-d=Jv)){yq<)m?l<9d0$p#0V)GUeJ!akl)c#!G#5f}dIKpb;|BI2#pe4y zus*S+^$93BZD@D=lrSnM4;W;B^|~h3Mq~c<1o9>tv&6PV=q+rrchV58T)3zkAL%Wo*kByp z?OPc=KF2V{AV_3eWT~_zw0W3P*^@;r(&1g_Iu90q8XyGSasMCbL(I|*-d0^UICS9|XFE%|*6 zxE;vciS`;L?QFp3w;>dOg&1?JVRy3gO^`1IlnS;V${zQ%GeA_S%cZ@xbEc9WGyHKl8S<8w)%?JC@ zIpm0G;{DVjV3Z&^0s=Z#8qWEqJw%SX0E49N%Mqzjl}?ki?k*$$=jS&unAYJxb#5+O z`aW3Z)rvC2dO#>KB`4J9m;ZS=+Wh2 zZCsG!4MK0LFrGDu; z+=SFlucX>4F1zfp3XS#tx{UU&{6tyte>wB{ia2!|xk>i4bU^yBbFX=cAyj4Y%Lo+{ zf8z@0qTQe@-PBFO- zVFixp?@=R2uja|3OX7D`TV-u3WJ8~14qXHy`iGq~tZ+M!_Z27i@qNn{P9UJSR?30v zwD!UM*r9jcmIOD_7o1aUBQoF&T|FdzZn^<%AFcsr*57maG=_V%B|)^kU|EF;vqF~< zEF^(;f>><_5#P}e!(pUI8fZM3U~Pl#@U@cksMr|NDe`KRHZ#8yl=pVWVN9^n0II&WEa|G&610TWosQ|cj>QH=F=mPrrp|->1r33$fytVqyG_UjPCvCY*! z8T@-PetdSum50@nOd`2Fj(!tMZV^N7hB%%8x=rU(4{b}_?oiU)_5>|OtlC`0u18yK z<4Jvxlhbzq-kOrcY5lgP-9_igwOHGmPHXJrej8Gi};o8NSAd{*Cf3f~LzukI;yv;L{ z`{7NX6+d>0xqS(#bzNB?hV@Jd&HEbvW)}lx2AJveX<9{G@pC7RZ#KArZaq1Mf5HA` zJXl{rW%c6cA4&*A5__`A*XXUgl1??tm)vUe5YA;@p%-x+tC%8J ztWn1W`0U`m6g~zVgkpS`^J}>a-j$dC)pmLddi`U$!sUr)ogXMdQ+~Bfl90FI z#B4w>Aj5Q8>zea+A)8lYC-gAXf<36}O{^_QD)~|>ID>K4RP;s``QSf0wC2LflfK1QmJk@aIQU4rETEjGt--r11zBia z;S7P;k}{@2AEWri_F|>Qa1~7mRiEk%$N93l04wf2|1`v>ZO7_LN-5fuBCXPSt8ZE* zV%r<-pxU3GtLLuT>G!uRP1xE4@04jg2G>z9%a0$lN{z@oaBhuhXxWk{OwiUiiUo%R zG!W_SU7Aa7aKCf+&7z_ScMu8w(tp#IfvZq*CZ@hempLV|Fws1h!zdk9&XtQ^JF5E+t zq)_0fJNSJ0@o4t@xRiiqx8Dn_o(Y_80p#bl?BPS+$*fnA;E&*_q@5q>pXVe6_S|ti z_>d}q@T-5I9xqxKSs&*ewfk$7`u%)?0dUOim=$>PM~q^wj4a2VcgxdBwn`{$YtmHZV~pE@P(4z zPP%&EOWoegT5$K$=8t2gL}WE60gR6=zVO@e?UssT7UJbeU~eI0_0?gY?b|SRazbmZ zDw6Y6(Y?qkg64zI{i2V^jhA?E!?h;23j%K&w|pYCPrM8QESbcin0R?Wys2)PCOlA^ z^ZRPk+MfL{?zfhH=);j4z_o%`^}(V8H(cHYh79LXU&gCj>X%xkb;$wo3c%4+4KUGk zEfd*f4`?_1Hv2xVn52?edE9rpVb(}Ws+m!;Qr7Hrzrma#*rK{9w=+er9!}#SUx*29 zC5EQ80F)nC|5^jVIlH(ErAR30esc&fW}M6P>hE@haU-9K83qQex*%op)Ph2n$Bz&H zCH>J_uSG?x9hx%Bv01T~XZBDs!`nX4xbrj3O)Jaxr$I#f^Oz7awsK%!s?LPl_3%v! zDn%34&{SQsg`|NKKShqzrbcX8+Y#L&n3>(@QCx;X=H^wM7*=2^Ni%+LXJANI(wkDf zW*E3@etKyzc^UsMtyxLUce9iOlu0&G5Z=|+^dy_w?=>Dqxbglhfod2Kn z7e>q$wb4P3(7yyn%&ULi>}oBDm|7Z)KKt;V8vQfhfQj400Pe*Od8rYeLBbslRB#7R zt*py6biUr9;*|lR%$pWj+FA2skKMOj70kcOh+MBS8H~Q;ZR0z}{it?#*?qX72oFT{ zIShKx>3NU(D7+E(l0JQDT%t)RKh!tB$VPUfVarBkL#8QFpHLv&giR8~X&vs`h-VCs_k0{p&4} zV=Bb9JWa9^Ca^a@lZT?AYFmHIKR*wYVH*c6j?k|8Y)EDo}su)bCD zkUc^pAsfMADb>0@s_0tP)xBgb2IfG8fPwP2;%|Ob$i2z@!8S*wgS5eGFUJT~`O*=v9$y7ht2 zr`_Br8v<%B&Lw~fS&DXeUyP;(x*Q5uGR`BFr2Go>E1#!DjvyZ_oqsG8=dyD%lS-2< z@R#s4>zV~H8!RGVXA|%z)Oa_Oj&+68o;%{N=e7K-{feRulg1mvKtc(S3!PR%h|D4n zwnNSvC@W^o3BTg~IB$#1SDJqvP7}ic%d9a)cpxt6l=$ks9kxv2u??{sn||yJ$qCXD zBX-x8%f6aeLb&DH2;CtHRN5&&HN~1!Nm3 zjbWdiH?zQc&^dvS`J4uUl~MUP<9qhUSXF_j`XoXU@`%uGNYq`UxcnR5-_R!YMNU*- z5CQ7_K%dCN7g%YtL-h2*n1ReVS8U~>;IbnyS%|hg*sWt(EqaWYdDp=lESk7*cy?{) z=POxPC8&FMS&W+Nb_qQ_0%(81NcGk(cR6$_hDH%chdNHeA@4tbnV!rg$1gML;gHDW z&HG$SA%4!5MlAC(uJ_iA>)OJFDD8U5MpyO`1z=!!U)&Kk-$5#o7jDj(m-`pQ^P>(g zrSfduOS)3_u4=TH7=Hg?dOCE-oL->JV&&m_pg{A4HXX)ZzFS(hR_JYj-8O*r`9zNE zQ9Z9$rsIYmmM+N3PuFlI+)2djXH!*IwS{47z}9~=v)*!^0MO)FlHk~dMhN~Vz5EH) zTRj4`&qI9)&)7kOr-QCrx6N@!TNF_XXZ>zVdB5dNQD{BLfQ zep_lh93l+FI*ax~v9_V2pYSk^2*Z*{g6(9&SzhbrGqt2#DH8-8KJ=)KpKecdHRFQD zNg)dNWOck*+jR8y@<+oibP*pZ#T2%2@AIvg2;4QTs8>|Y5Swkh zV@`C&;4wrDvlESBU%nP4jMjO!GP>WVdnm2%-T@+NHERLi@TGJnc5oDgQ#N#-fFr*) zM5q>wf+uzlIr~9832MXqL(JWR9{hQyCbHw zD6mat;acb#n<op5SJj&|n04q*<6R-`&TSMlDa%$F)X8ME~$-vG%Ai`Ptmr($%@ zY=x}4)V#WBXD-AIR}r<&N(>EM;iP*q7ap4S6l<($E`pJQn@k1AP^RtAsEt?|k4BG* zF+Z+1ejP_g_%93iDi0W6QmiqNk?rEw#cy^T=&ialj3NXobwMchy=OVRy@46hwWcI@ z<);3-*Nor$1iWmF(};aIRCKO~zaJ)Ru$CzmYC{Ows)Sf$r^Pk{bvjUh8vD07W%7<@ z)w0p2@?YH_F_9w*GP1a$?h12@rAz7$s^=sNZ%KCG`U9cY`3yM zafQk4rQ|FVJ7(uhvN~2R22}ZR*b;)J`jb~9ATZ)!8T3%#r$4BZ%j7Y8r9uhQIa8#* zO6RPIe=u*g?ho!bD~Rdfgxmd$Ondc6el<|Xb;gQ;(+{brfA%!yK1GU~tQMVKDwnOk z7eg6uF%>O$xB5pEc&7Gjv_`}oRrAnieMy*i#b4pA78zy5;rNT^U%&l5cB|scX#s1> zmfsDeGbC))wK@^MP5R(j;tk~Y)qXbz?4{*{F0%V4r(bQ`Ic=1#jcj!epvaky@*Q0o zK2ROP=UtnVk)y6u=T|IXT1?V!+rRz5<&b`dUJCGPed!lhq-wlI1-f>C? z$6F`Lq)V;4suq-n*_uaoKe4!7Bys-Rd4`RD6?@r9+d1=3C%I#cac3drS>2e>O2}eWt(1enI znl9IJ|Im2efhfXR4ZPIOW{DW^4_la6a=hBDtsbmL6c&Z);9CHcq{LWK3b?Aw!yo@%FJ!`p!H^-q)PMSy7DM*Xm?%@6OtR) zPEYwU%rU|!lJ!MZBPlJlXPdYM)o`ZtXV_83FzifX4<$Hm=+3WqL6c+TmIIceG|OjU ztuxmodM0Ee`k44@V){H8`0I9B49KhN;5dav^F*N4(>ZPN6tl7gTG*YNMZDY|X zQsiB(<)MPX{mX|*LIe9QX!&!gS>W1;ZW%4G(8~I^da!-6nf`LCyWyE|!fL#2GJAKK zkHansu-{izN>L%J;>_+n_%~;D)e7N8s$T~s=)EUY&ez5sIqCYOm&%t-ERRLEFABJu zVm_N(PG$w^3w1)o1>IX(`l}apP^f|K`M@t%xSY_TeJP?=S@{O`26VqbIDL2} zr7u%y@w*?}O=nIynG|&s$&4k&*DH(#R;k7gC)s}2ZF}GW?`!s`<`}9K@3F>qvjKsy zOQp1 zWkOp;x^I&+%t}wC&P6O-Iur?Xze3+RW7ahDq#pi1&j_OeyYkhDSeSonZ~BJu=|OyIY2UX#axg zm>~Tv7_mf0{aHnu=$7Zo%cb=>BOQt(jkxXm38QM3Czciul!j-Hasf-5n%A$om;G0< zcVd?8(Ih7!`pW;z_@t}P?K)|bH$S_&)$qL>{xAjHa=B4?pz4Te$k_~n`xlx=nEyGl z9XnuM`xaV`$ftA=-bB~5h4yj~@DENzdr*2U-=Kds*r|iVVSzhFwg3 z>v|y*T&>O*Eyk}$Z>41nE+wa%;kqsoi#9g?l0M7x7d9bYZnt6Vi@tOd(}a>dv>mLw z%%p?1(S{%ifp?&yp0lfyux4X4XHRk^O~g%KXt!S)3f#1E0mLnSfQp$8P!@KtC)qPc z4V-?h{t1Pu&o&2Gf4-6xJP61#1RZ0`Rp7JRA{YKxeoN+yd^Rzi6;aJO9qztDIbjYVn;qizFlw!mU?RM5lscTt>$|=DG&~0_W z#-{e(du6GskML;AW+oEQNsq$DDLx)c32uQVy)9Ve|Ku7#@u?B{~S&;4jIm|0aE5DkUKwu|5O;G-fx*l$1gldU&sw>EFb zr`5J09guuo^*@H^v(;a|wkZu9fbubR@sVnN{wvi#yDWS$`dY#A)0c3@f?lKU`TS?Hu!5V*1-{mkrnE8E$0j$)Ne4X0JzBV#tvF zl8-z;mtXp=ZfACmt0AL;%EC&$q_}PW5F)X~l;{tk`2Lu55A>}{37ZZ^Od{wLy+2P~ zQ5eH3c(``04kN##c3%fyvTqg6FX)Ef{LvQpzb-gmb}BJ*Smnqw?3pQb$nS#mk8@Y4;eaq;dk=Aprz=rFwe@B*6C)q!NOUBCd=N3K0l`K^K zRj4x4rpsH_A48dY?Xlca+g@fU_pLF(Q;HgxAR#|3E(y7h*D%W8cE^8|V_ zHWecWY(Lj;7w)m*{ka@H?%A%FdEZm7ANkR5Ad{KM#$4 z=-iPHBqoORY|5dYjBoe2qtPzQ;+IEi!+BG9&;g6;SZXjJojVW!G3R`>lq>-9Ce`5t z8_9yLrtq6~q4)<^TFr`_VPEYcn6c0OxSaAKTqMy8%RW34>$X^%Pz|WKKxL>Qx7`^4 z^L=BK*~xHbV66z%1!2)DF{ZGR_R!9%ZrjYh5j$=-59c>#1U6*D|sZ37qC&%L~8`(kN>ey6nQQn!+7~g?Gr>6gfo^e4W7Kc2b62 z&zx~^yPjp+GZoc;8UH`Ieo=8V+B>&cB zPxOlaZr6yBT%%?KbEaGgX=L#WQVW}0S#fyqD0lPg=kQBc%RlKS?CJl7e7=St0_73v z_s`(r`IW=w3mgi+p38Ci_HjrB?+a9ExSlY+6y@F5PfK}KKY!ofUC(e_mTp&Tc8Q<{ zPp^OI^t5dT~Da7fov@|s(5LuLQ6@oWqHXp#PVYM`cEd}0-a1}%fw4wD6pY20k4QN z+PM3a@9hHSq6J1!%-IjD@fq9faYD_K0`4838@tGypf{e3n#EwD373pe11?S^Qxb~A zm52{)V}QWo3!AQA6C(IkJb$^Zj-l_6kY^#&vd4ffG-2eha69!?K28-W9xKlM8awWV zE^@+C?1Wv&>$<$TZZ;6naB50i73C+^AKK+x$v=-6v)lN@mvP}Hdd!X7SArj!SpUtV zjNnou7aYYTy-dR>x2;3@VZ2JErog}Z9=zva5kI+xTMtmAJP^YCNcE~3dynnu_V<}O zvZN5Rp35Sy!ig~#1{dEKu~P<7wa}PHidR2FpSB6|TR`LiSg-^duTDZbP5l4S>7jzS z>TANA1c2s8ff-Vezi}HEs^}_T2#)%0cUq#dV@Ezs3#d(dRuG$FcG*gR1<5-ntR*FD zW%N^Q@m{8s`M?-qYWh(|S-+eh(I4;bo=GX7by`V<0(WuX?E=DEb|RNQaq8zdA0^!4 zAD{Z@Xj3-1 zHiGYPw=azHLE796E2H9IxNBK86AxF(Iy3=SQ!nS$=2oS${x7+YlyBKI`sQKyqJVoQ zI@p6JEy&^Vy^JAR9{XltToPaAKty-dz|~Z-7gZG171w>NlfiC9&yDX+V!=%k@=BEP zl5)YTxZ2s0FEo#D(Ndh}4eXtPYRkyj&}VBcj4N zl3Dp=-z60P>RmL|;3?dySZmF7=chy&%7ge!2Z#CVx9bXs)^`8jvsd9eI@S#BkiVk! z`J0aK=tju8LO*n32~g>+7N*tp3#{dz{6jp75LT%fo!>b?v?5f06^Tg9ws-(l#Kxq( zO9K;I0{7)WB1sRs0c*$ z{DNa2GwOL*Pz9^v2cVZeTcRZRj8&L~(O4E7YD7j_WYcc{NS7TRMJRqc?ol_l>;bXug*gbXu>f8c+r_fT zfaLd?_D452ccd6^o?Mw?DgO1bWT3lby`q!h29VcR)#xu|ZL_~_rT`*|>jSpMIAF(k zrV?B%;*@`p3+BO@>6wyZvh8QSvc35GUp41?j&HWtFx|wncD4nf#3m|(+Qwq zXzzD%qjVmy2Sry63Z6Vbfs!E$nPS$J#_>*%dhI1sOohvCFZ4O;h@7vFaFOUJS6GKm zT;kD~m*Y3P5R#*`G!IBh5v_pvUj?{% z7yfGYmCvuwExvu4#cwC&-umE$3*|4>Ck@PNsV{1&rf?)iB%L_-_8vdy6PN#Ded6F|3R^8{PTpf*BT?lS z!S<#Pg{>^RZ*H@xi1xg71D_9DkXEIfxtiek*9hEm??+LF{)n97o&43qxno2+tI}L? zt7}q!tE@SHRcGzcfBHSuH0E&T-ikw_|GgCT&2Gu+k+`WziaFYgCENCH=T*zjZwt?3 z1G+`re#ifK!W=j#7$ca^9V3AVnQyb)KORrPYLl^xjPIVcKsFZBlB@v+J^OY zE9W35H)L&^3&ySs0JHyR>^H@U$o9dRAL%|1MDKy&d~$IufYHnOuxP`QJ^x|~aLvuS zK*^26`|DTX3i)!uuxWxhm2QUcf5DX-x zOWHsXk&pxvYI<(`cO*S`Lbm6ew^(_^GB0bCVX#ncjm+h3l7*coT3FcaQ-Y5XCDwLx@M5~l`)a3=pZ~Ui;+H&& z{-X8v6jYqz@ckch)vHH@W?4fyIA>|rdm%;H}SGd||E8%5OC~|<|7&nX{(?226&tKrp@wbQ}?4|@ptc%Zd zdraDF*%;&{wAy;o%A+Dk+Lm}cStb`+M`?xTwvGfkLJ7$~-!r<+{j6!ZxEK=DsD0YQ zfnsuxuP`?rUL-+pC)IO6!j||tjFn)QGFFpiT4q1p;tqfcFw@SRp*O)HNb~al*s)Q` zcPEIR-pTyxmc!V)WyQHhd-Y6_-Qh$V<~ll*8yFC>Oi@&rKgmB)PVob3_sxyALK(Am zZBWSP;+hi}ADKaUW}@$kJa-*xykPNp$W9A=gGY-E`f^)B6^T*)T<)sCY_#=o~W(hcRKI&SY3s z9l`5W@$HL(`x3C@HrZ;tNx6Hw7GdLw_Sb3UB?2o-{+AX?qz{+>hp$(}YA6Un^dFUU zZPvdym~P$ql_F(F{TazZ4*>e4E=I10eNrf|o@R&@ss0}>g`Z2Ej3v!jDTh4^(RsG$ zVz$4Ata8&&&o=8v4v42dWVAlXp=Id3uiF&lOEQ@l`glY|t?H2M-%5(A%WR!G<*pypwtfvsi5E{KP8pH| zP291Ga}9&w%=&Nno=jt$xO6|ogSYxR5MnnI;XC&h-=xR|nt(=gcgH|pA!l5RN99M8 zu&o=FKwJ$}gKgz-vAJH7JxU=E?|T$w6r}y=P0cuH93#QGYV+VWBP2^mhdwE&`WHA@ z)8HQEMX-4-#1b`+@RMu0Xb}e3Jyb5wS6H$u>#3Za zT6_#OsmW*WHLnPdq;D*eCg>u8z}qvC%T%ni<1HC7^Ycjz#amv8pX?gy9#9tcEJS<4 zX!bu=Y&i2ZV8t@Y49wh@zE38SP}DgDJNEyO4zAmo8GDA;BOcsV;;^)$cJGK#6!*`d z0>e=vx|P0VuWZlAJ0l#7!!rdCbR_d!#xi)PCL?*&gq^b^!paEyrc`AutxtJrc^bb5 zI`1EY&5FuwK-Z@!DYQiN@EpRPvZ=%iYNxgbaXS1;Q(ihfdZ{|ITyr$nKnc&#*x&q@ zr?*7R>=5g9`~pT!AH&2skG>-H2eRoMfv-M|E~ z9<7jN(eiN&K_Z<(rAxUr_Ryecqzn6XMbtl@PjrhUgUhe;qhopd&Baa2KEDN8ujD0? z*DX+Cv8nET!EVkq$&!4~lF3D;39KBYRlYKNpQfP2ww+XTd>gJunN)l4&Ghs}_S*Td zWUgWL7RkGzos}t$abQX^%e-6J(mU}Y*1GBtF}6=E7@K=Y`f1K3o3ac|&UMRtv#lnN z4J{I~Edh*4#`5F#2iF&NZKZW~?nUa-9+Vvpy=u|xJmH5DDR+i}N? zZf6wz$3Dk5pkPnv9~!6%3IfOWe8lK|D@o$-dJblhOoMx}K#2`p^xARm^n_$VBpv}A zUL*3&+Kq)_3^xyG3f>bTkr8)JDDwc$&+1F9tsG{L7#rLtziA(Rz*&)}3Mse2sRCONL?-g)qDRwW z18$w~!!=x7Rgge}uHlaJpKXc#+TTWU{=J4&EMp-zU1(kD6p;N}@p(!$DSx!4Z!DH9 zc3XORjG@ja7?V(85*W#~?s4ldpN?RYKaO*n+1vI||GBY5(oWEEO#9NoxrfI8lBmdm zb%0TslsD`-McL)6Hq<{B1KX{f1UyP4{@87o25YgWMzx+-MmWYc<&-Rb%?DrW_J~kr z>-jy{dk7M+mkx09PRx9@K4%^xM-xkSNDRE-#Ht|m=j>ryuR>quJr=78X;>likl5yD z``V|f+aqB;@Wk2e>x02`%ODXh}uY&|_kEEn2wU<7rLk-Ja`;yRiBO4zH*Sq04D?+yZ#pQ7O zv_=O3UKhSC`{{vnrC$Ue#eH)nIsb@5O#!~*m9-{*G#_x?AxB-1&xoJX{G~{F{A)2| zLa6)9=atQq92U(WdoHzOKXILYj0%mYWG`xdig)pC^{qqa$Nq7MAgYH#l`H#aT>W&3 zSfm7vh~*Sc&s zBJ)bJoh`PClhXBsd{#wMAf1!y%}|PZPx$WpKPx5XfJc)M^S{t#1;2(8VGx~rc<}BL z*>BGj0cgU_a*?+kLGgf{EcFuk@~s%bPC=+U@i1vl)K$I;lJ%FQAKCyUJyml6CshJ& z`%VW>xbT>?*Ictn9GKd0XvtA^*&o?REiJg*pWvfPSHsjo?6m_wS)sSB3fqWws4paU zCm|p~P49Vkcw{Ml{e?N-03$4{XMwEJ?1@=nuL2(}8}dyXDtoA*TGY+zvf@4N2_P`7`+*DVuhine z04pthVcU5sc|>tH{|Lk(UY9L92C@98plXeGx>E8og55ecDYD*FFO zu`asGAskNX2ak~4Swcx#`F=7TFGq_EQZNqcS%1V&dqPY}v`f`(Y@abItjN4Y7pE-_ zmffpBm-RC|)nNy>+ezSu&)X$#gpBAU*Ap6z4URMUU%X(QeqnpWPrCUg-ck~z88qLIR#MW&HaO#3|o3OYd2=9K01i^cFnm@J?!T3 zVgS9&J0;O4*qtpp$8m+KA$rTK3(3CA_0hT%Q25TR^zn=Ccfnx>o7``1vH*<uq-CL2ZoT`mhLUq)dK@tCi+OS5s^d@B4UdjQJz2pCgHVt@%(gCRXHsZdZq&;4TL9pWeU zRHwF&__FM6K9SYm;WfEv0wy(_uuGCMa+3(V%9-pePS!KJ=7|me&Ut_yxtz*Rh0PZObSy|8 zHJ`FI_oG`+(+kQpz_cySn2M8-SklN}ct$nT31-bETe3Uc*%f+9*TjS%%i=A8RO@0# z8F{TKP&<9>K|<%mxk^%&#yd3jH4dC8`9lh#{naan6!U-jJkE`r_()_zV|L%H+0e;M zWckMlM0>p`TsvnoO$$Ydy&M@4t#MbR*Ta${k~`&4lk*h1FxD?;ApK9CG}+L)w}ynJ zWn4oz!jkqwE}dzdfsmMm3>FIKOfl+8@T-~6J67S7@=>h%vMelFLfC}YrsC3~ z@r}~(P?L&0Bk+`NTnrRGE8yq1`kypA4Za{h?ZDq}K3J$-;>?k0Xg<)6dJZhtJ za5OSJ<+UomKVMTL@*xD|Ff*T?ezJ2ZY&~BpvRd zS?=9fKoa?rTOKukx6Za!ip zh{Mlpygo0c7-n6Q`|=!g$)n3KC|62*%z#Qftx|mANk9&oIw7RYQ|ZdEC_}?Qg8L`c z6`q;112{!%jSuz~4Cd_woEZpW-6?ltBLt~mv8U!xd#M?>pGDhzzGo5uFl2f=O5rI+ z;>Qj9ACMxnsY;(KKor6A@UQ<5C%@xTZzi>XiA<3U5^|}1n~Gy7Xg1SD36C~ysi^ceEpNNWSmTdp zk6=QQuDsz4*QF`D5NSHhnG$PD>t|tOo`cQdPW78gH}Cvjec-Hl>cUolY@5*Ryh5*K z%VVQ1$x5-$Jn-i8@X@f({JQc_yg!&eqPAa+?zLw2?{Y1fk?As+>que|!spWFJgbtU zE>sgDgq!Wo)e!`UY4qC<85*Xm)`h~i{%gSg#pBohE5Tx^jY3Itc1eP$#M|?k2dtNP z^!4k{VkyreZBVu&3FH3>wV_D%y_&Do;Dl2QgH%C?IGjpFNEqB6b2x272xcp07wC}y zN`bbkE`E2+l5FY=LsvM-V6xf#yMHa z-nxhlsU5x%ehI4in>_N0`H)l%4JhmhwCb8DT%GQ-_W!NgKT-|d9|M&;$k#~{no!X? zYq5jqn#d0jwPZQH4-HRWCg*NsS_xHAvI_O`MIr6bhpil6PqPmIfoa+=0@T-3W6_45 zioWMK^d3jE2-4x4qa@)MolcifQsOWtBoO+3*{JH~m6DgizMtDs@8x+=dbOx4(EYn0 zG_9j_uhLE;SYzzqG=r3_^A0hY389ybS?0XTFCuz!5i^!u>U!y2&cw<9&6=N9aX{sJ zTjDhJgrV5Zxu=S#?d?_W-b<=kY57iXb?#ea6PHD~`21?0B`@a8`)&ACcVOf}lBKZZ zDJQekS~D^vBxxovirDz%G(SwEMM(lLtk-Sy8{%d+s|OlOQ_UUYdj+?wM>=H<1*`I* z*=mzy9S|ryBjH8QDf96!8_}vU81kb}BocwzwxP+c zs_4eH>U_Bj+sd99-Ih!7(IEvMY`<@&rb2=4T7ae3Di;({IshqoM&`Im6w}kU;sNK* z7=t-yLYIhUXv*6_!Om&!LIIdeJ!O5*quX%D;ie>pmJ%qTV;v-`vr712A>>ZGCKU6) zHH)xRck5ncLK-`kSc3O=&2Xtpjaj9629owTX!9;dVsG~C2P2$!lag$!eY3E!=Lr=M!Un-#e-*04ZE zER(mfu^pzIDfex2XRC3YnhtHLgV+Rtb_?o-ZTn+Ny+ddQk6<1cP@)rdByEvOrnQj zV+Z8Ia_(_k7dvJ><89z+4Zr^}2=jmAZCb4@F!f_kZhd$cpXx;6fnxq__(7)~*>fAd zneq0!%qHVz5CLX~dM<_hKdd~=`C@dwgC~v+{EDMkGa*-brRQNFwzko~YwAwMyh;pQ zpP5edWAu1&@iC^5|EG+Oy0mE$$i49WW&^ey=6u`|D?(hTyd{!ShW4 zXS95r$!Gq3tC^?r0iTK55HhtE1*W7JGH;I zC!OlBIJO|SaHfV6^Zp}q8|5h;>~W{InQ6OBa@_>xm_Rsb=Z+hK5VadH14?_Km7-7v z*wjvQ=uGD*Q=#eGpX83o(0^h143`?}?}OXRQom3!7H8Z`1{!-iHQs1x>lsLAW?)qoP>M zT2o){$d z6x+$PfHHpQl%G)$FE+I~?ZA_(Hum$FmCuB`l|81~*z0SaE|FxGuGXg7SPoNw+QeA~ zM){!p)B;;S2zM#dwavTP5!YWn8@Aq?nX(HmW|SO51`*&Qa-fbN!DRZ)6OKZa(-*m> zkr2gEUS<po2IKRBY=C2a-^rJrn4H^>~0yH)0^1|`-Db1t1F;pCIJ z0Rjx;9?FcSlL#8Nx5QiM;^17 z@ov2~V}BK9R%wag9lwlDZU0C8amzxafGdmM4|nI9l!;ZUm34no^v;ptiBLHWXUYro z@_L%K-CjwrGr+YEr#Ov0phk6Xu@KG)P{fCrb>9mF`p)2b0x;p2fraB~fdi-mPq59-0>hZQ5{`Y0c8PJavY zf3WHNg`Lv-nF*A*Hl`+Jmy9ljrgUGR2rqig z{*{dxTB)R-R}lJlzG+krd16Wknk-FJh^2cZaGu^&Efa!AIEaLJ^mza$>v8}j-bhJR z2(K7u`0}*r4_iF)Vj<7hGk*)FJ&H`bT91tqGpvd~nYi6-v&*TZ3pCv0NJ6c+(DRB= zTxMry0S;|pbpS8%!SnX1X7*C1)Eq5OHDiSXr$*t1e|rI!{XOIxMTp7%H|C}w|7YkF z8qVhmGcw6h-Z>s2Yh}++UFDl5EDT*p0mR z0I4<)$FcrFr1Ri6xRM%byiGzus#+-y;%rQVLruBd9~0gYr`> zc`$pYnBGJQElRwQEb3Ai)dzjW_0lP?N_B(i+aoBVFVuu;(3TF573E>aT*B~6?sBUW z0YW>UU3o;kvQUn1<3SF+b?B_I{u202DwGMaS&vXM{tpsQH_YIi9<$~QtS0BAdV7Vn zf}d(%$juA4*8_1Q6X%{mRcmJTKWt44KQM7gziqESV9!x@@Q6CMAwjUBThAM1 zW)k@3Fb%ZOs-A(d4t0~4=_No|>*nr$eXl1ZUiUF&qLjZTB*-Z^?y?AT#!KjoO9&v` zoqc!T#q->P88}}66V%QJ(4zWLhP!t>c`j07Wy(DQv+vQzX7)ejQch5U?mptRakXLH zrjs_NpSLT`wxn1V=)`!?!r z07MV(oKTQGVC+`s$+dS7dI!~5bru@gs_Y2M-Qv*|X#*gQX%>i#G$;bh7NA>do~T2+ z>E_-m1uMI1{BeFP2jG&-B}hWpO_#egb60AnXVg-QUy8YaJACO!+U)ruSi}fXG6=Sb z>%K*)5xY^bCEO^${r?BUb2tjN_kmOZt#feqT;!~wENUu7Dxxf$02iQ_2NxgxbN_KZ z^{~LB-j6wHuyydd_LNV+X>YVcX;FpI8NV~3u;<|-6j^Q{jgBR|5v#s%R^5Mn-v#iX z*!$^~mGj*qe^BSa0P*JHOG__i-8@S_L(LQ}STGQ9T~IH2ws)?Qo{6upp?!Ic@DFiA zcJ9Gac0Ej|?yIr4n}6S^9JrKc6#OW&NHU{^ZIkBot9QjwAf_1|-(9G7Q9rq(9`q>> zddodfqdy)Ge6OwX4Adj+zi&q3RF6$ry)a@CILUZJarML`P*r2`+lf$-_@p_RPTZRXX`wo~WOAI!ZSG!Zo7TV=a*I;aW(j6ZyYIJp*+K!?_2{n%fq1@3&SYKuA45 zeg1|pAILb)!Mv%8AFqqUO$+&00r5I6n{wBMf^UzRMM?i_IqZXou6#x3wTVypsk%G& z?3vr3K8M+KxS2TD6UDN7-oU%Ex6)EjP8`XPJdi_tv8L?GZ5KJ}H7_vuY0P&wh4G3D z?KKhuy7A*{jP!g)U3?j2Ucqt<-1lmlc5E<@NGr+P>^z}C2EUbyw#ps4sD%! z1k5NyClTTrxh)R#=3{O^D)O`xbroBB72&QWwgwjhB>pli&XJ-3bp2`l+2g%*^GTUS z^*$On4B>A+Gf&;+U=|K`@u7JL=1zZQSDc@!HpXSa%Zvyb?i_t7G!yhNi^mCFLc@Cq zt$5F$QZvg=6kI$2fB*gJIHH&ZeZ4wcunPjk;vTb~sTOVdF*?k{hn34N)c*Vu;>L+R zd_XM&vTMbFa}2wYR%&;-cDo}44pFt=u^YrJW`)}zH4XL@n^v{%DF#1JA4@_wul~9J z;ZveC+m49v$RlhT&i4n!O(fcMMyYKz8unDl3?6_Jw$SgoROK9wzDqAKPlWllP`LNhQmyR6s{A>zKDcVc-vfhY0+ZW z76UrY6u)s*A~GmzaCmP~+mSJu95`Er}xIJ{+{yKDA3sq+ar zG`hA6BThI|nz+%z=~I9**syB`Q&7Xp*0-%q9_KqM)2%s|*t<36&{vpLRpa}?Ja(@L zqHo>el7tC`6~I$`)E$33x{cku0?D)u9^7*SrMurWN4YP|SJSu{40{E5bRRpQ_i}OM zx;}&V@NtSkjplY0hQjKg11M?>8Ong_^X^VO+S3 zKD)POcAsWOvNZ{XZ-a`xb3bHMoks{p9@RcieO9lBQ;imvLzTD&|3 z@5)k9#9lkNewkL@S=ha`x>NV!wYW?zA+exeL4}?6^~5zhEq2-Y(A?r*Uu46kxIGKNYWpLwRHW{kcC@w6#zE!sIPd1S;fH~WR2 zPc?SA)Llzt-{xV~e}5e|2A)#66Gu9W>->_8d1fK)3VO>MDM>XHqRUvYR>GDe0~ZA% z#mLlb;eC+Z`Xh3EMt_K8qNVU+o@!hAlV4C-%Z@8iU3V}_SbbYtc#qrMiHmw}+EDX5 z(teAtgxz5H>6$geH>IQZWn036?QRg6@noM3vrSs0=Zj52i|J5)35{b4)TULlQ@y8B zRe9Yi7kcVw1$5uFV6+^GFribsm2+{Ap!`Ad5T}Q*YI_nb=U%ILD55955?jD2mTz!d zd&uPl=BN8K9lL$8#(gU^)((mGP^YZn42?~$b74npB#yo3j}|<)Gg4#z_&Y+9Z%0nW z^W(wI5q9F$GkOV<+-_O&6!cis=mt{|Sz+1%DqM@QP^tOnVBTdXzsA}(3KNzaK0 zGCoozh3i!Q-Vfdy)gS(RN#j{!J#33WUqPPrMrblu8MQufV=*=||4*3sCEM{^p5rhq zwu@T0WPW`hB^In~8qv(r`<(MUrn45qxS{uKkry(qJ6n5=*C^5$`dkB5u#EA#py{#~ zK^mk&@iK{PE6;bTGY=96cM8eKd$kMOvR+;LG)s|^uW-=oPG7wrFFYo>6O8cQt=kx_ z+s}l1PFuq98MZ&7Y|BLUli_D`NPLA^(|XmMjsU?u#4D#Ef$SYQiEordR3Y&T(81zEcUz`4Y(HA&N!u%;ra@f_3tZd?M|Tl-fTTF!7Ff>!PI zh%PHmV?(QH9u{=`9>^5tP!Q~zfOQVI=KF9kur)GeUdSF@TDFQZm#MPWoR3PHTYPNP z9C=q#_)G*DPg`2D(*lS7}Q_K5@b6Gm}Sgpo&BMy8efpbJPz=l)}pw$=QuBhBbLJcZNw z(Gm}-QxQo!Nh)%YyP9@7%or(_>e&$(Z&9Nn+?}m{`!mx-r$AsoX7M}qh30^Ks&`}& zPH*YP1js7q32l588>>crY>1eNFP1n zlm95QXBLPH)k`s&FTF<|NWQQVC`T+<&S~`Z^!$qqOA+pWej4Pf`6e4hMBxI|M3d`7 zQjz047Pm0>8ssx+mb$>$VRG|njqT_U4B z5#JO2@d}x8>%aHz4r5uB>%Js@o)|2aJ0?9AgddwFjagj#z?Z_0H2=5UOy2*3W9W^w zE}CW@dq~9N?4Z+vF$u=&!S(Ap9k#39*eB-)O$tB=zHoYKTj8#aG+TOg!4@p7`8AzJ zAFrWAC8u<$neO{&*kAt|!XXb~X6a@8h9XKIL1s^eNxdv><$G#O1%-!FX5nzx+$|+vlBZ3jz2hlW36U74>jI( z^3Sn|ma1~)!`H5PoS;vpC-BcFjyZax;xkEGIXZO0#5f0DFf;+m8W9K!-eNnXiNI-+#DK^%lo?Qd9#wd@o9V4(X&y2 zp)adcIMR@eg5lXe>}n^w3(9`Ox!a(GJO)Z2RTu+1eq-!L=Mt**Cs2ZpI(R*xuzdk0Upl31AZrY{6L z=|?X41y$A&d>OtSYb6}MQkilJU5|U=rZ*XUFk|?>iKE`SeOs~ce;!5F`r#`w_yHsy zgQ}T-fZtTgM8BCP+xhke?I_^t`DEp;-aBwoMyM|EHf7JLbIe&<3`mu1wkOph?Q(3c z>6ZjK(v{YWik|pbg3wE0t8aO$S=wvG4Pe30n`Frr=jFws{4!6@k}_l_;?rp?mJ>$; z`txL5j$to#|0El<+XRj{Wsj&X0*N#=@IP<&xu?pkXWOl`b6c;ZI=-a3C!{ge-p z5QK)bQ`k`<+uKgLw!d29w(LcDS`xy0CU-%w$TLE!L9NHdije1cmdU;g)_-wkHx{G! z;FYNgukL>gwJ z>j*A_T5V2!za)pK!-szW>^+2e2(m(V8&}tT*SUOV6(+VjWJoc8pQ<(^Xm8IQ;gbnG zd-#!g-A+Tjz|K>){U9pvPHRM(E$5|cJ^Jaht6aYEn$*U0W6@4a$F(8NoCmISFKM9X zf^EN-tra(0T6(D)=UnbX%UgQcWORa~D7jF5pDL3ega--6z#uAIUW$%uJeq#}Ebz&K zmUXW+YsX|yq|zdF#Eh<%>cWHYs*H6xZ@V;*(8E`3?pV)PHMi93CMGpS+s!Y01R+Lv zc7*a6)Z`P=p_(^Dz8=j%J8m<`g3;-u;E^S2;y;Isppqwsc%B`39Ugxp>niDnG zklqlscRyI=rP&R4RZ{fcuYXiPGjOV?A#}T$j{ffv%Z_6HV03}dv8NFT5t3BgQay#$B`76-f!UZxB z5o`<0I{De{ei8cL`#d3wB0rjwb+RH!4#8#}?P=9h7x2~l?w&8!F=mvJA8UWDZ=duQ zm2VUx`XX?5I37?c&hP-^mn6X`pd*yY>8G-_i&G>^;B3sL>iYiTFxDc!O5qo=EpQ63 zW(O4FLsK9R@!k8XtOub}M@9MURjz?id>^~icjI*O$0;grj3i#?Vqv6RW!mH@*?<{xGX$z)=(yry6xEuR6o3Hiu z74VaFd*ME7>0H_He~aA1z_)d~hg+0*|JWl}{IOuFnCL4Su(U@nw{$48(XIMM!I6CW?u3uU&#jpVq)=WvU3=2SyZcGT%F*34w-T^Ik zceSpoyGtIuH|~lHe~09VDoTJ+s_^#f0ne`DX}2DR+Cx&jtA2IzamC*P!1mXU0-gvz z6@E<0%NNFP<`|0)4sLyI=xe7U2G>9Z;xqu9*0ie${jtn2DLgF1 z^Z4JZx=ww8E^xQeYDNOA$LevPsQ9Up>lifB5ejn0ZFQBuvvWei|E`;aA|#PT*2M)NOzI?s-gJ* z3UvQ+xteJY?I=S=z!=>}7j-eJ6%xD^*2gKH{D_$E-rO$>jiVR7Tj{<>PWwMAp0TEu z-REmL3S`2Kw+6b~grXD!?2@eU^>v3GBPr#_IjDb%uxrD58@wkOwo~EwX5>7ak=24? zBg~NJoA}sci_sCM67#DmW+vs)GqW_mF?upq&>KrD+$>6I^%+qwe``i6h~%`&7m6s5 zr~fci6Mi=~Na?KTP$$5vqx;ZFg#E|shb?Y`NPuH zfZe$TuQ(!tZvBwgdqjF2m--4}tO3T*$Q#k5nt4dBA)_^f?Dbf6ZtZdE5Tr^A?%qN3 zJCUjbr+|WS>M>);O{y2V>zdd}yR^u>8!JS@uYNPJr~78z=ZySl1Ml-gD9c}*V00b> z9e;cCNrkIjes_gD63pIxdlG(4h_1~ph2bJGm{}rjm&8HsxExpGe9Q}tEikS3Tk&8B z7E(wte_7D`oiOMsS@u`e0tu0960tgFV$~@dv`&j6B{Ss+@kKqmiGD{GuNUB9a6aWG1Tad zdBl!ap^9;gpb<{c@3#wBszt${nI zt6cp5&niYKb3)P~ZL}&aJ$GoFfM)(iq1R%8TTS?!p**8mxlT>qA6YAIsMlgfSYc-; z<|4ez#?C(|On7R_4jE@01Ousf9N%=&Eb-|0g07c}-AmrELXr!|G3%1)ryf2!(Y$Ij zcq!V^{pLy{12W51-oZ`zXQt5zeg(h&Q4qhR-(+3&&&%WGqdLj`PW*UyoyjiPPIGF? zLstx^@43bca1xriQB}Z1bat4_K#(JyVKXw5?zwzkC1W$I#tNIqp~M-bO4Wy^uWQC$ zUtz?y6b|lEeSc4T{JG^7#w}DC!^>RhyC#e7hExUEpwc(OCeL;->VX}MU>u>c`g|0n zQ8`y65hoHrTw*Cv9KvwSpZt_(c}q&iAIWYrbo{Oygu>bBHmPoPNHfUY=KHN^0n8MO zP}D^*e~`iD;P*6a&3#W>VyFL{fgSAlUWxB^xNlyqnsyM_<(fmodIL0}FUg+<;V?RF zc^JP==LG|Rz_}dXb+*2s?84%mmXJp#bijhh)Egjy_I!CI_jtW_TOwYS*!jsEux3FW z=C7%K*AM9|en_3&tV$Bw!}nvvae#fawyV42Er53H?6TLyljWTC;&kWq%9gz4BhSmj ziK%#HUq}RlZL*?G3yUu)i~m`b!u0Q|6w}!cXRmhc|Y84*KLP(784tmy0KL(j)BLTEQ6k!`!-~rYzMe3vtdTV(E!3#8ITAo)Xaz z!H2fKia~jg#L9dH+b9I#B;R2rY{d3`%pRBbZt=u^;0S&X{qOxUC~@dHv9(lp{4%H1 zS=O^s3g*@q6}=+xOb~YPIxmO5S5;&c*5afxF^<00}N`XfZwiuCa=i=SO!uq$6MWuNhhbXga z-L}_QAUm&7Vw-6~_qEvIgyF{#Z=xq`k#E?wL(8m(gX!bcZ0GuT^#))b_qCsX)f^m= z`ewzS09J5?8-4Mlk3Do@2+1Ke;t8U0*odBdg6POsO0?OH6H6{pdS+g7EmAV!nnJ@{ z&q9$)BTn!+ewl6bI|#$iX=6?^=VioO6WqmvLipSOPmt#N0Hr; z2<|tDnGbwIO0aBZ|Mmh-f39AjZCqVtF2iU_xIe3&`B`f!KAMsiO^(ifYl7eab6GsbXY9%qfn2tSgRfc4jIvHDIT zk2aKXnG*h)k|9|7hO}_ZhQflg?N`^DQ2M3t_mbPnYqi^01AIU)v7VFjI>J-@xSO>5 z2IAXl=8RPB-j#z^B$d%R{>8%K%}ud~CBg_kMA59Y_p@Hc%=8oBmd4!S4QlHCU+@ktYS z6|cp2KAU>JJ{v!@>3vDU#h*>=U#!8QdY>Q2VCFY#Cez)vOx>nOR;v%Kw-OY#%!h4l zk8)fk?s_f|A4N&}>|%Y(j&Mvz;8X4w3Pvqe=8K=KjqZ2X!6C2o=QVl>eK1|x`hoVI zJH$t+q&TQgtmO916rbDrwb(_4jRcJzOTF;ABLR=T_J00@UfWUc!-*;O_Fa4?_~4$y zyEp_MSv7%szll&-@CSeNY4FNXWS#47a-Bu^kag;=y3V5s8V}bADTe)b@0?Gz>wI@T zPoD0_K9v_kF&uK&?IMT7G$z)2`@}IS9-Y%}(`9`l6LxFTP~rJ9=sMq870y50Fuc#i zGjIYYxK_K?_rh)e##U-VE8p(p9{OWqSBXu*`Ac2b^6D-=&-hSNwKG`BJFbmae`;r# z=evXw+l3#Q`?hNJ*eRLtU*2&(ytuWc?kHsYUV1E~w3Pdjm5PPbhj=cwpYHL^xpS6Y z$4mE{HB3fvU3Qos?~4%dQ2jm^LmkajRCu+>xcc8Hly3)PG z(VRt^6cxU>KM;3qTt89-?=WkJ-R#hn9$cc+IZjBblVoW=_A(zemPQ#QezNl*SB8WhT$=vK`(!R? zpl*NBLU-VX`$Xujynt6Qcl9mI{Jhgl(2id#ZBuOB7U@ZUnRiLY^>O_boPPDeM3lz# zgOhaqSq9HLceZXV*S{Ce_#A+m9JVjYh7@rr1zTdQIBu4B;Mz!b)puRX6uq+ zVCA{`!0lihpE5^!d>=o%JGwtqrg;42?a>T-|1zp(r!9OlYT`ME)WPk+jDqhogk+yH1X_k{LXa{8TBv z$MDT6-+aaSFFX60YscY|Cs(TR3>zc(#pGQd-^6V9Hsh_z*v+WScMz`_$&;JD%5)u) z;mRlZdoieWc1fhN*to>;L!N6Jm1vffWA}*RV&$>p9tNy_uj5_)lc@oGO7-s+bD z)(LS5I<{mN+l)OHxcYCbufOC8wa>CztRuQ8J84JjWSY+0{0G6$}HU`aL!=sqpDxp{hPh>+hR`b7A}`L6A~j=z!|AZ3-Jj91TYBKMJuo*nK($37rM82F_ogd*V|LPF6<8O zMeb2A`XwUXZy~H(jl4S|)G0w$Za0VQa>}AVq?ocI#^=65&>YMpYoCT%z2zgilZpMG zpd$gTMJ55o9+hY&dA;iX*3aj!oAH7!(2+0#yKa-1_armX$dJ5#Oh7n;t^iJMV}dkf zMLrr-rnq-CV2ax{m#?AE&`r3(&bh=*HX=CA472$8-l$w4LRo>z=Jdzv6^b~MOWQ_Y zHlNc<+m9qsb>?^PLT$@qBt%4L=;f%uqCbJ=>o#Q+iU)LRS`OYHdRLzW%HaoxUZ{xM zaYWr4|bXR^&@<{M-2%hh~@48QjpBux2mrw~%VhNw*nX{Ev3m)QBjdrkdXz(9} zzHYmR9gk})84d_tCpLEFG$cQ)-Ly1b?Ob@2D2{}CJv*AwP%E2Ae0!*Qyv4MAht$q9 zWdiSbyo_=#i|pHrVh}*@KG^%kZkJ8dFQMwb5>?m1aM0n>JLdW5r~*HP%bSC+43*s^ z^Dru)y47J%<9YYgi8SUUj~O!kTuJ5K<0otzA9oRKdism_oj)ehx)-4WE3=$sWR`Be zO<8t{M7@KsD9-Q^hf&JMwr7di-$hghN0pXHkZ*C%IObAj6bFMqq#G(o_|D_|kBBXk zMKhGlQ*Hlc{Ax~boEg3MlCRE_ob49MKie&&1a=E84UnaFF;faqu~Hd%fkdRQ5j;(! zRN^^V&f^BB{UB)+j%6W7(24yl^fvfhCAphAEgR3sK$UneP!f_5ZvdKozPR-R0qCnc zKk_Dv2M`9E(>&}KB;$8}-kTXZm{kt%^Sf#NZL$jNk(Y*Y%!`7+8owhFjP=&l#+ad3 z6G@iO?xS80F8N(8J7{wl=G~p7*c~WVeX1e9JxQKKiyQXc7CAY>O;5a#+!pY7Pocj~ zL{F+WHsSf{SO(D?TiXghJTGyga&n7@z}}W^mLE}#v%y)Cf9uhnaK`#ijGP>gn(wpw zW*lE`)IRy0?CM)3PIB_+aP8y|d%(%v@$H(eW{qCr+6Lv5%lIh-1~)}DzPBhUIiIiX z-ZQ|PE-3K2D(iQPDkKezJj?WtPyWlDA`i_0K{z#kOrzXbQEmovtE&s(yE;lS!JTR~rW&4ZZU z_n!E!+{s?c-f>AzT@b?|wa=JxUt;w{iF*{)@M5z9L=F!IH$6dAtiM^Y3 zHYWbOhpOgZ^_&hm5pFx|75SE2?gJ_LC!@YiYbSnjPrZoN_VhfKEEk$~J@(piZtTx! zY_iuKE3ejKOI*iyWBOFYVdybOGvUdccjarDkK%FZnd{p6udDX*CVs_^$Aqu6?@Bz> z4{Dir=AvF?t6=r880noRkdA)Dc1>X9dJ<$vzZg}2=_e;ku`;JM=YJu=DZ{P z|DozV{Min>H{h1Gv=k{tY@$_rZ$WETwW->B@4boL+Cr+-C}I`0soIS_YtI<9M-ZFX z<4vFE_q?C?{Ri^R{r#T%zOQqgbFQmy*5H6Fa8>5_(PVNBBw_49f|BIhwHn?-zgu=B zHVC=1BkDh^9dzF8Z(1f;7J4%Oil5t+-dP7XvgvkF$juWb!!;&i9>+eRn&jJI+ZQ)& zIu3B?*-sUgiw&(d12W`tfd4Tg!0#y}7T(YEN>ozJi~4!0tjN6h4Z??T*~OwjSxhQZ zkwvoYr(RsQ9PM*>H_)`m6;`iMD5iS{j%zLn?+!VzWo)wx`+lNTA&SDP&L4wtTk83#j;Cw!LevI0GA1NSe_4R7~% z8>QcCW%%EhxrCpU%78DB@MI}PNTdSUkaQ=n?}puoyj^*ZaoG&gasG1YWQeL6A-zxT z{U`C>lH*le?SA9UyHtgXM}arV2jC$5@`}sA(B0UlnRTL`hYv2A*v`U&c6KlOln*xx z${sk6WwdBF?`Yl}Y+%aQ?~iWxJL9^WFa#S>N-hq5z2-i1F=c_)J4FFWGAF=5j4i{` z8;C0c>H}a1V1O)Oy8Ql7oxOz{1VEj)mR|E?_qznJ`{Qh9RGs^0vA2U6r?;0H4KYo7 ze&_VJXS%lZtTk*rzhROQ@WKD2hx(7Ew)_x5cX;_Pcszsxbc?M)1W z9~i6`cya_;-n8DI`Z@@?b)q!B+CU06{|WOObIHV2*2X9HHhLG@{I+eJ|0?_K68-4Y zF}k{Uy}j@wNc@Lku63qq`Yt}NKM?u)=6(+PpjSzcwE0YP_B2zoU=DKx|GL*Ks(aPI z%QVm|bt-w4U2rC>ot(ztN9V>riEi={)=elMZ`Tf@-;OG6W}cV{R6pOTmGM87Tku0? z=r@<1945QccJId3tE4QJ>R?QCIk%%%auagv(QR_ z>6I__s%A`Z*&lKEj~8sD2G21#-Fg-IR{t%UUYw3Fzf0l+&-Behl;JPr-078F|APXd zBp!VEh*JYS$|~`s@`>|H!R3@dBVY-y8OgMfjjH zGOv$z7KW~$2Q7M2E7cS?*Bl*`{|aipEcY;HgKiHT=Pu0MTpxFzp_(hOrSL^aQ_(f% z{+pn}Rid*jow(yT?|EM(!}LR;+dr)ZL3X^Ly;Jzvyu2KZm-NLwByFry#1I4F6{81K7e?md6R^Skcma_ow84Rv93Ma@u-KASF8frbM&0X1J$1)f+nFWjt9eP8 zL;3S=?eakPqc>u88RkW0NU@ATs)KpsdFeqv(nx_ECp8U`FVk*uLIXIk7RUEnv~AxO z*PN-PiZ89{5bnNed%{ACD6SnA6p)jD59o?Vyo8DB+`;P60XV0B)S0+n_W$jue)d@Ls^6Y%tTZC>5{W#aElPT>~d-HQNuaT9r2Y z7M99_5KhPV57e0#4NWU2t*JL-oy*dy1Uhkgb^E|39+2VKqby!?9~2Yyf`0sUPt)O(QcGlepk`_D*^D)d&b~Mg<5iDANhjqm*#$|5 z?)e9#7F?>NhF{|KEsXdrs~MQRTfLZ#VeB-2wzfBL-h^Ga{?vRG^!sw&xasot49!^^ zXXrR)I}{i$b4I(y$lE5_gzpR`nmF%YxVaZ(w@#|T{i{m#zBu;k!|%&WcZBr$QX}Kv zhA8A2K+Bm)?`=Z2+Q(jjb=I|JMJOx6}j@qe`TBvuW@H9sq$`X%co+;*0!=yydpK4jeQ6HbftmzJ|oF{}G0 zxMyTnzrN)ezP^l;ymZUFKh8hI@2bxAPX|hK4gisljQ{fgvti4|*|7bq;zl_tZ}|3q zNlkmQMT_ei{?8!!tORtIMTxkWsFomI3BJk1Dz~{L=H)51&A%AeaF1P|qC0|jI?LNQ ze;a4i6)e!k2R3o3p8cibceuiwc4>PKpS-x<_wFy(T7+MJ(=pz^2fiT$pWeIfC0#Xs z<9k7Vg)z?BOTE30FT{Z70YS8aR$iz4g-hcI~^< zkyOx(xXgYBC6qZQ@(%Pllo8dMNtOmZCpT7vgO{()h#0d`zhN?Zlo`S@GX58mDwcXX zTYHYpJHMvb#BcebE9Tm_o5jc8AItKWZnlw-&P)O*j?4Ra`>@E~k=GwKkF~m4?f%o; z90|Xn2|7l7-ZkP46h>Z_50fI#@i>EPGP)o!_doFla)S>zpq+jDlS<;ZN((Xr&Bv_G zo5N47ty5LrnvJeFXL|>3?_MIBzRCG7Y-;NgkdN`+f_&3utG^Yhg2HuBAZ>{jbK(>h zdJ;4mN=t{1e!sQ7aaYd0NP$KhM~7w%UW@d5_QhQaOP8JuL(6zEb>7iSRqut`w|+dj zQ~CI(2{nlR=Zl`BC|#7Qq|Ok+0$HMhvuN2=d5mpsVCbFd-KWO&-6h#Od8go{B}BD{ z_#9nI=iIN~zI+Q|&4{=cH07quS$RIh)j?F6KlOc##5I3 zUIJGQHajk^Ily}4{YlYKC;Ix$m3bel!Pl%W?fx?-+ zf)F?Zv~H=KJz#djx=jH!A7`!A5E1$$SEZ5&Uk zn-=fG$MnbWLL&|`AirX*Zfpka{FeIO5vhK-sx)%r(ZsQWIfLDU_lZPWifF?Psw)jOtqXi1XZ^AMMe)9`G`1VW#!}$ zzL>hR8Cn#~a_=(@(|y8cn4sNM!^yHLbh^0c-9drOwd93VNo%ViJ-^BMs=dFM^6K(J zh74K(b<*8Cp1RBBHjPB&6?)U5gEU7Q`0$m4Z!sxoHPrbY8=yz$| zj-%}Y@i7oP<*#vfYgGkx-0e|TH5{F`2{BW1wx5eUs7r^KM_ zC(V6${y1nA6xfA-QH3c~ZoGYP6Lvn(&F&L*;mGx^kGpH=j`XMk4ADt;9wAEJan2N#c+ z7}b_Y5g4Gw7rzs1dFp3td42?{$-?>p9IxTQ%qn`61}lJ(-m&UV)YcwtqyIE0;k z#F5E^w@ovTYK)vgjXut)SpOdGM;@s@-f?P2I7I|d@J(Qrpqc6DU`Ipxk)^6*jdCWF zC4dXB(fyy90M_Fv%NT>U2gymHMy}-yu7*ltOkKQMRI1eyZQRVbAAakT)6;0)T*spX z+aj8Zy(%G9tgvN_`^;YMEho=e!SLD&;{8;6vhI#H#V#*D(T+C*`#gnk*D(PDsIvHdYFFc~q$_ZHWeG_J3iCjjpE3 zbyAn{kO_M~3WJt$^?vRranIzkqQ<90d>(x*6){#t91B#Ve-#mDmklb4c{E`yWYRHB zGQy!y73UJE{0?K#7g7-Hj=-y__Lh$r8g(ztVbK+MRR5^U;E9WKdQ<3gBB>-yKq$$h zlw+M44o_I(JLyl+)UU1j2z4y(P0{x~90E|rmn%kPJ9+)7^pst#!eqEQ*b)Dw^>#LX zeyAp6hH@qGJMy6LZpsS9CvA85DJwwZVljUYkPn@cPv}FS31%5ZdH@a{2>(uVtDif zgI!kqRJ#KHiZTWYuhcwbeL>rj!;P*b)uu2 z9fSohayCX5LM1j=Of3FF%rAzY`xp6)9U1s4NRYp#orP2OqkH@Zo}}~K z^iOXTC2ja6d*#GH80)vvK$+shgPR_T>k&7M)`6W?*I=crU_#n33DbPgCXxzo}b-0CF%Eju`_G=46NF4hg zRhF43Hw^Tfpxcp_SO2=;hkj^ zd!!iwu$C8RJS*DtGu3$xe{C=*mK%zta}9017GQM`W&YV>$+5cox~lzon>y@+h<%V) zyE1xHVa#HmV5e9QVTTS~*863HYX>Q!ML}Y9W>9bc!XLu_aRKqEiCeTZf~WR{Rz3xhF?fMeb8{3*hl9CeerC zF}NZ)HY5XDURa+_e_S!8W)C0AN0ZdmGdeCbG7^x>`cD9_ZW2QGg=WgvLU-Rtqq{|2dECMhko56=cQ)&&-Imsd?~@Vc_6lcKQ}5pKkd(}(1}-NkBryed0LhT zvU|z(*)!UljP=~yjL?gfe=|stYs8#hdWfXV&Y4WhxJCgRhB|f+=i13_Pr;qWs`@QT znTxoG)HfRiex&vooK60+cbuwRC7O?FHebERzumk9TVu0)?(y7gC1CTr3CV^Zwp`M- zHNPA}5Y=4ZH5k8utiQlAfP=6)cI##MtGyWw9`h{r?Y300!JQ1>+Qdm zzhhStY&d6ZklYzEkiZ6;*a#=@d`XnwH$$b#)Q8tb%cpc~kp64yJuNa@Z=?1C-WM~| zIeq89PbN38j2caE^FEP`KKv3Lxp~ z5(e$)kqF?i#|1>_^g^TwY@V`-vo3^-%r$|b7pvk)>plUc0 z%-;FJT$xfhoG?Flgs6&8fP9EQJXildGo0#a5tgpP$sX=^Fh}^-bt2{C>~XH6_qivz zQ3L_M3FZcPwm5ww@9@+0>g%)IpwEqdu+xRsg3MN#)II-;Kd8|-M^XGmgl5bU8mv}q38v@=fB+cJCNN>ZpWQK4oK$`X` zhmCW<%Snj@mFBt-bk|MCS6f-zgnYBzF5w_y+ry1M#Q78N$i{Cex*Inizg*|BR-*?Y z^=RRSCKFm|J>$AJfldC+_dU*tY!eD~YC?ykW8qYNLC+muM(k0D6QOLn1C&T4cdL#C!|mQpi~c(tl4^8`23Am6$;Zoc1|AVcJlqH zJ(q5>kw8IALy9;`|1+_Y&`NZPRE4zyRQ(Z+K6mGq6^Rmc$R=IQTi zueL7tA5b;aHPKlg+mtbffjM&0*e@|ksOgN3C+!xPfolquCedlmtBzK`Brb{^m`^2{ z3zw0QsU5IH#TK||$aboF<;f+QKJ7$8?```85qFWOhZm1z4FQI9<9r9*MnO6Rp@i)m z0HmBS&O5^ zP4t};el(~X=zH2j9#S&gJzWM=)M;#B-4uDaJ9Ya9PnVffGbSEOyC-76cv_ETo%&B# z&2wJ@cAn84O~*UVM1WRPl)Qe&O5uPjJUB+`X9@VefvEYDpSZX^-C-8EulR6U-j7|M zw7rB{ZMRpw1k4|QA%=0EV{FRvM791I^a~0Sv=C{APy|cr1p=e zNeGRM0{2&Z#ch*gw;l)gJag&4E8G(MThpw)>4r<%4D_7D%k-4)d{v6`_kzEq;~wyv z>ro?03ete6a_I;223egao2NA$fvX97ZYrG?w79im_0lQ|UGTsuxl0|yaj?-u z=}Ci5qm-95j%y;lm>lYozL%Phw+NL!)NWhJ_mor>MruQO^_zk%ceu-yS@#v_=Rafb z%=F>ij_S<~TIFMPR+Wxh70xzX(I8`|gl0-a@^wY7wi^A(#0OHbX-<{QQCiDxYOD7} zkJGGP4j=x6P;zf$C#p-<4Kzfa3ii*?De)c`Rg`VOEwB?KN;cQPKOAC)p;MQO^MJoj=S&Hu_Iw)n~T({nl zBu>g{wa;%f%g9~wE6L?}kEn4<08y_hoo|1Sbqw6}Fv;T#aUwHxSsj@9<}dC&T0AgM zs2LBseKRA!U0ncfE9PA;{$s?g;pAR>pl`A(GRP7BwkFnr>>XIuC}{OfCZo8}f%R`r zeMh2;c{Gvr7@tIT6}so;397+m^tHjMc8l%q4T$actS{R!LD#Z(tIfQ=V&H+(j9BAH zpfjU5mYyQDIc4p)yzO{?i!XXy<5I+_s`WRv@+ZyC*=RgDiHFhr_H@@!{>s9VD(Ky} z=xO!OwQ~znhc}Lwh`tydsZl4ykadi)pOi`3ezEPY)Im&U#`#|nP-$~k^z^pl=5WTB z%)#64vrbZ&ER4=TYv>8A47d?ejAWnV>o172F64Zk%|^|mu2?{=t@)9`(@)}IM#l!& zM4kN+vcY?nhNv1^`*jpX@upnytI8(j%W!6o)}Bq5>HG-Qk4{9#EfiyGdJJp$a{?0^ zb~nm!f`;TiTtX>o-9i2QP(1R=C5=O+-SHPmvSVn0r;3Gq4~4m4^kj+WlLo4DGSDMq zZ)#twWKT+_Tq4S9Avyo8tq}>SF94TRsCk|0O`c|Qx;)#9+9=G#Q+_o^Pue9z%2_d} zxHr-&k0Tq$!W^{oUX+#OIQHzpiQRa&Hi%C$E?vt3X$6?t8-xu2x)?w*T5Z zh(3X`@0ctUwHx0EFJ#VmF~56)A@W*Cn2af*rw%ZTpIgF{E?o1bg*QF00kfY866H2$ ztrEXvgYnQr&#Ve>ZtP|rNP95OxD%D2t{ZU|zezE7#e#G$>iA1JOsaVVlb*lqNigdh zsz7yckc>jyY|sruR_TW6bKPax9tV=xbYCkCO8c&+Ip^cAn-*ioP0K48ycVL2POUC> zdT}A2_`%+5-D#=+=Ucsn+h>jS^Fn_&_I4kONnTV&{X$8086M7!XmdF~yY)9>^Et_O z4)k5!hR6Bv@_qY#&{J3dOAjEXZz8SvwzBKEz5xl?YXlWAsP6DUe^M&WDD(|UcQ;vB z$2uymcWUvzTSz$(ba#g@QlXavf7t}w*X(GB3H~6cVtwP7Q}k|}oWu=y!5%sKG!2TH zRovncJt_JTGK^(6Qx9ILz1-PIa>sE%s99E?l;OEI zksse+Ht6_JRp^(%jCMynq#0mBFQUA=>dsxzVB&cEster@D@8KCFRJ4Ckv!ckhqBj| zt`Lw5R)YxvP!`nb5T6xG&Qz4LOTkYP3~nOfmoWn-jsRQ?3DCY49waH8>xm?p;)NJ4 z*%q5Ff#ECIVsO2<(mK#ycc4#R;A6U@23b!9(Q)wf!=H6dEOad4@#%n?2(mysj~S0o z8QDMeX1;(CedH}_4^+keyeqR;@XYkx$udsNp1N? zQnACa`SH`p@A6qy)XY<2D9%#6Ihe*{Oy%e9Q39ytlBaLFwX%IO-%Lb|>-)w>M@Xp1A~B6aDCq?;4S}A%wdJ~`3aRo?)g5!H zrDw^OC3uxbxu6>w#sJ8ucfdWEK)A&{7&P4SG;!c{vVi1Ox&CtlpS6|M+LnLod+ccQ zsg|gWZXxwL3a4nx@2}XhpPEaYOTDhB`XOR?sT{-H$__U9>7aEGY>o;33(VZuhL_`y zIMUI7X4u+HH|;Ji8Z_R-SO1`V-!**5h5Czl?_Ye(!o4Wh5ELf`*DNr-38)#{-9RH$ zOp6yj#5ckN1PgE_ka*|WJde=TSV|w6_>mQ!AuOH5o*RJ))-a?;0r-|-urjlhjFwZG zux^&AXQ08qx69>gYR8cP}%oRO$ASy~7?x6~yv;1)d-MZ!Y zEUguf`lqI>CDo@zQexaj0|Q{kQZ?zV zQ2n;=JN^h*aJ*>^>{Whn?-)`RU+2o`gEO&nEc}?F;*eFKP0>e&OA0SM@+ufG!R#@x z@5u`?h=Wd^3pC)_6l~3G1d4Q5Ljo_BDu2<}_@8x{?{)qshH&q=rSHam#uD|;qPd~S zLE-OOzhMwxzk`wopv*3YRofGi?m0lUv_<>D-e1UDzckp?PApUVBTFur2!%av52>9n ztkwE+ZIsdE#IT3{kbzcsiV!mt-}EKnp}7e8@!R9ykr_Iq1Fu_3Y#A%3ujKn$EC!ddj*tI4po6# zL(1mFtCMFHIwbi5_)lDw;8 zoOs_hKS95A!cd}l+I=@e$d`C)m8wBJA#=>9ecqGEs#q7-=_l#OgKPa|r+5Ez?yQ?p z0ucM3i8IxP5-sZNgYdj255G?h;Bi<+yI2^Ka(O#jBC8Dc#zFxuqq%q8TP~U&bpEge zEIotKoJa}u-*xXyH#>7c#_m(+5>U2wGPIjI4YC3Ufca%)BW2(%ptu#lg4sPCz?Z{C zD$l_%mQTCAU5eT4mXkN`;r!~@&5o#>yt5RUJ-*JAE(rc9p zYVoPFh>VAB(=fxwn34EyIJ&4Ys@iMXZq{MDiGA^B$uA6L)PmXz4uI431@#Uk%oh4?Xp&pK0_+4F{U;T}zLGI+Ztj1ai2*t?5G9 zF!6Hjj0np~|GBs1O(*21L;J-4{mKZ7lZgZ^I@?xiAP5&XZUbPi#`1-?S3qm zlVzf*mcEv1*tXB3xTTV1S2c;7u-P9b;X`~Lzxi^ z20CRbnKlLj>0IJJQQHwzI_98h$4dV&mDh!`WIV`^iy%L@tpOOdg^;3dR;BJcphlFa zaTiIGHh;RA4$0HQPjgPaubf*VF*kWnG0=OG(7KZdmVPZ)DKzj4mg7O6M#uYT`dwio zg2a<_vrvbsEGK%h^KGbEW+9^&7;hKKI&F-?k0`vWgiNu;PM$?>a4&JFgbijhm_M32 zWuKETPXmxadwTe~fnjuI_&>YtCb4G-A|Ods`zl}EHd2N}J(EjHp7QK&H}kBGQnaQb zPN5VV9AK|$a_Wy&b9c&()_)nFX{BD?{o&OX%b_~(E*Ob3p_aEg*+eyw{`cVA zd2LlY_j>Pqo5I67Xd9ZjE2tm&lnfCUjGsALE!r6~u~yp49f_AQFu>hSS7C%oFnfdp z;#TsgOV~~51YqJ}=ibH3kX@J4+h07?MFyW|Qv?)TCP6uk_P)oR_qI@H6h63ngk9Yu z;Ik-!hC+2?SGS^%o>F2JgLKS~=VAaS&u9$pJaE8`NUpig$&2Cao7oNJJvl&3lUUgj z%Bt_MOeYtiWd}v30YV+^D|A2{6&?zlC$`1)Qg!{qj@8KFYEhApp2$=N*6T*9dpO z{!$9O+6*gJ?fT#AHzSn})%G`;nYc}#8Z&hIY!zJ#W8fxK^B}SYZ}n{CjEkBZ7KSzy zB74r~DC5emnbq$UwLdrP@!8?6^*z)LJED#t`H#e)){OU z7MR<7pUE>GU7c`Tvi8wgV}GHyg5qvhMYY=hw^Vb+%b7&`hAJ5^Zpc7m;Nrg$R+Ior zK$lzwnKt#RYl*P;FWEC1$9-2bMa>m?DG16S^C~ zd>h3&iAu?;Pc7;#^LmKgh?zI^`{2t*T(i_7>7%BcE*MaVGq0Sv7jJeuoh6gO3Ml16 ze~lBb#XU@b>^#m`y6n@Bhk^q39}R|{(OJpALSX`wU9w{MIU=f(oN&{i;XQaQ#&e%X z@7wQ{pN32aJY)k?q)qFb+55|DSf?tiQVHBw?P*#dDCAoF4B-1yCy@`$*PH9Y$(*st zY2zly)1SJKa6)=Y*IsXi5uXwB9x~(5bXyonwtYCx%aKrg1$dIhYTp@q75%yipK!u- zDiFzQ^sryZ9qe3t{?pn2_$IZuR5e28KbTX_esACTIOsb2D5JJ3hc)(pQ`FLCYOfk*!w>ifd34uQn8lD)q!2_B}3`G z7_=vUsXKiVPXqiMXg?u+x{~32=OzF67=p0fS~+}m9TC4`HsmlQIy8~d*q3Z5dC+n? zc!B=tO8wtt0{n7ki?$27VK^p9FJ06~E4g;<_Ca+B zFlp~9KUGznU9T-EE`ak{8>d@!<4Q3j0EEdOeuX-JB&4?WTO|&BBm!Jwl|CAV;ZL3l z%j4Kpk#q}-`m(B{e-Nn{wnzaQS}j?7%?~wM!rka!>cz>w39524=Sbk5xjOv-XpQq_ zGm%dffKlL-7EFfJ&n1JISPoq6pSzQR``C*Qtry&H-Ms>+|1b4oOUl63KHR(LACE|i zE%ETK-=7>$tU_Ra;8%CT3;V}Y)Ccc9lj@+ZD}s?bD1n08<;Jusx(d9FcSNeYtk-@f zvB>Pa4S;`1G~st66z?Gv^m^Lt*%rA^-n>OpTK$IFvA|B1v+nJlzk1TF1A-x~R5w)g zIO_d7QI+cYH3X#i97{t^yCJSAqKIshEmz(x@o4EHWpR_`WNGtjly@{P)5_t#C1Fxl zY>5;!uyVh!HRMBMi;mu>k2X?UK1yNb4G5mUSrA;fDBL`{zd@%8 z^11b`Zr8OZZiy5t<_TU!l|f$ zUSFiQKZV6%Wmq~%uZruGAu3_?&GacdcnSOHzPy!7oiXm55hs2E*!3&MmEu`s23`z% z(!BUrHm@k#3&17s@~e#!N`h_ub2ediU`yPKxd#)wWcY&H@;YJPxf=7#QjcJDyT-4| zES13q1gqmq@tQKYMoQV^FUH@KwaMhCE=VYa;N0BVpD83A8%Go z_FIvuhtS497fVkq@@@4^*Sx=7?#~)mddz$MzhLU@SF@4GO|gvb+DA?{l6@XFXAt}U zL8&4~rE)v^?BZ{{27CBl8W!y!mBP|d-hp6x0zr{GW8S_aa${O~J3}1UeG>vp#{A}pWq-59iA-ouIc=@_^PTXnq zo)Lx}9t%rZr~mKyRQmm7%G`fsg1qUp?=|E3pYgq0yF*9sxCmWmyrX`C8KIeNHH;YrM4x-Htot0H8>8nY7!FBt|@n@5hhf3uZkA7!0?KxLYE#stau-I(Y zJB-mHm0u(U;Go=m!HqZh^Bk5$4TdA6aQ{d?Hmt$}xfX zfvW@nh7qJq#IQaoXR}I(Pk?N{Zg;?R@gx4Jj!b4iX(OCbAx18Kj>jb@UPhDZOG_i+w0 z_>g(ezwzdw^G1U`&`40w?P;ChQ06b2hrR(mD6I~|ck>@VKoM27Kf~b)G=u!i((gn( zD-0Wrc3zBI&K5Z$z9$*?C5*;^JEp{7muEDYPq`CV|HlP9HD3dcm;q4qo@saA!$B6_ z+@yKO`+dc8B^1{qvW^v=K2MiSXO)rVccKFAQ8V={r3y{3)p?NAl4Z}Ma+;i%FSHvA zk3)=-UmBK2J{D=K>Yi^C$5IA!8?e)-EK%u$VXKMKS%lulO>(8NWOO#aVs9R$NUwE( zOCpi^>fMu?k93ST?|Ij%y3}>s`pyG-XTSuG#XJZUll%jPRx^w7Uf(l)g|Xr zL{z!XDuot{pHX;&ek0m{j2S5S=%@E)DT`nOJvH!4Spf_#eNDF|?EU!$X~mLn@!!b@ zwi7y2o`XxBHsF4}i5HwtoVn`aGuKpEw6rG=AHnx4k2g=s?K*-r-*@X8QW-{Q%GkYC za*)|p3|weJ_Uyrn?~Kzqp404#_@`@5#Q#`X(Oq<_@*7*}IQ1$|g!wFLJMx$rbFgb^ zcUa%LZNZcUS?q&Yew%@$IzN?sD6)aLI0mIOhzbwJ@%LwWu}Dp?V})N2Bu!{tkc{$D zK__N*;6{BcQdH;HiatsD`$)?_OoA_TvDM^Dg(nV_=M9gAPtQoQzP79ymZlR0SVkBB z{jpROSKh?lm%3aa(QhQ?^=TLD0p7h`6d=$G(EgYvZz(fE#t|T_V?QnA1u*L8rnB7m)a+EraQ;4oL}bZe7g*p%cJ=@6R{eCHXEODtTQX?joVG)(f%6U zm&>@N^2(*UfD3b?EoH~f6La;F;4DS2E~!8qUgNSulewkz&7Bt9_bB>G2=!Hqr(57v zt#4=}Elvjx(p@jnkpG%59~s0eGTbPS``b3oJ$VaT{_2@hBDnHyP7lP-Q{b^!58j5K z3UA5YOP*RNl4f1)Hn~)&&2O0>oY1eU$@oi1c00(VMV4cbJX=dwpWcIf&@yzs=Bv#c zy2zqprT25i#|#6%)mlCqY?!82rDN$VRrm=ECQ9B)v8q2zI4`7m9>EM`F-YTApoTvG z;L;|?kGG2rX6avEoU(9+)td>K{8WKy#+`3-uvq_io=avrC}1tN)N4+?PKe=Rib!Ap zt_Qy*R+3r+GNiq$er)9iv=f=@@_L*GJfO}M*9P!VZ-m5~VWzE>MGlM=9uP_sg?%8# zwLpjzy^-ojskvL#OB9h!om3x=>ru>fs=IQGrsX3j$r0_P5Kz#Om$a^8GI0X}6#?x( z3qid2po2uDm3NuP<+gq zxOOg=|MYgy{fyg(S|!{kqy|@@vtLEwudl1x47#LnT}lJ&URcxG(edFdcp?QXsoB?q z=LjKwXS!Kic3<}HK-_{^ojHkHiRPrO@&(d`BqAQzMLkuOWPwtabgq$StWu32**C z6ntMRR@5&x;@BJTa(1Wj{PWH7IjmXR*IW!Ck3roALtYB_9e3HSd|ley@xx6iOR!Fo zv`J0T4=UdVBH;S4~C(sQx!P!-k7}wI-GVu)SdI)`762O1HE?%e}*DDY~ca*rs zLV5-pZ(wk-GlUm|8e)ryCe<>AnWy`sQu@B$2z9U9>W8Y8W1c>W>|b=bC5{)a_&@r- zZ11f|QJSE^q#E~h>`CHag9@Nu&B~Z9J9OKR!wSj4)?Tsgr+oiagyxoR*!Q4ZlR~2P z&sCWh$)D~2nO8~*p1q6Z1}6*lSS#nVf_mvtt-uqh0BCQQttfEViK z49fDi4if%|A3VyOz|OCQkf(f~rB2Ev6}lTi6T!t|;G*I^wfYJM9?E`KlQcZSFchgH z%%HVi2`MHl_azv9Brujff*k`_Wm>#e`^gk`KIU`sm~oN`#(m`YqIEqJipdCAXt8!(?F;U zcA{A9{TsM7b1&25{7pRvnh*8s$_f}y{IT&`MSU2|8dvFQxbaKi()^td4VJV!A5bGs ziod^u60()Gn+a6K6_@<#BJBQ*=XJe)kwSoW^TI6YtmZ2fS@z z5q;ss_#{4k-33XCJJ{KKCBF2oS0~(GRctyW`|B7<;U3~tB`06K64k+svs()uNyi@D z8w;V$NOxq?k`RNz-mxowD^{MAV6Hz=`WyR7Q3dWtqT@qIKZ)P;WaFJfJWOzkjWkJo z2oXU)@CxQY4{oDFF;AYkbQURT=Gye>DYf)$@`KKqRIshU5p$3a zY!#7ql{u{wE4s2gxw5CgUg4K*f`2__rS0LtRSbZPurgi%QCNu4?^ILUkhKN|oF;B7 z4I^dxD1H(m;Qo?Germd-e6kvQ@XqrmxMG7MIv5MRSIX-7M3-!A;BQ`>rn)C#+{UUi z`G^7~(_qgAVI5U@+w>42E&9gNorn3Gkse73X8Ne2+M|;lJj7B|z3ZzSt{I%plk!EP zLxrG@ljidnz1N$}Lt9#o}U9xQUs(J;DVpf*>fb5hZVjM9kfVWj3cd(74cB4%fvQ?a!OpoF&n8bOff)$?>Q~+LGty{Ip+m%T z!48irm!NfXa{~UF0hH}GknlS}{l&JfnvAsg17n9gJC5xjz2M8zalUHdnzjC&v={Z0CHi};^pzM-yin?p* zj}=~xqg>p?RTls~38Sleh(w&xCCx=qX#jG@@zUP^qVld%;EZUaZw0l&)EPn4`TIg| zZ!TS^AhEIUWv-S(mUq-27UR-UEhn$3&&xpM?@j4lg1K^01TSdVxFC zR>RRzF4?44C3?Lyw;OAB`12wN0ODC!Em;tFpd{u?-^8kbn?AkVr?UiXjXRg!{ox;b zM)(8!Q|bBB)^XxPnrOAYj#ucqU5z|nFYpJ6^VvIt4)*(@AuK~c|2eHCS9%s3z`@_d zCBbeWFoW0+H$yB7MDi0?nV~?P`(g%ra%&C}1QFtG!2vUi0<5!|#L}QP4IB@s^ATW8 zyF>;cQEYi(UeQf~TAN|4k7XAZllTy3V%N_%L@CdT_Ml(VV;(QTJf!xe{{kKYmX$no zk6RMpqy#Voa{NDRon>6pVf*$4L_!27IVoi*5)wn20V<4;5Rne)DP5yMP^7yX>1LFq zAR*n|$fP$KMvKo6@B9A0dS37n_`tU7cb&)aJ&qFzpun{5{LV#XDA%i&eF2Ftz@421 z;x{rYR-Ol~Gb8`>*;Z>wg6zG_hhb1#`|FHy@W@DsZs@`L&xy`OTM zEBpn4QKtTli?Wr=YNGu`L_I7A*3|1875Bw*WyLFo#wo;_=~;AqaR8G0Q9lCEWShbt zRuUKyhWn^?KDNo!l>eECK~gGdGt>KKNulVN98*=h(X$!&*TBDqbB;+81KdB3Eegb; zabb!^^M$-N0eSj{-=7>Ij{-H@fLX-8a*{Gmym7fkd4Z#gFogj;0olEw^V~eS1~GWr z%c8d`?+1STH)$ItJcPM;rWr6vlYo4FHfD|UdAk_BglW8|XJ@yA^cBZ>*P(7%4wBGs zxK+E1-=QcK7gG>UdT#Jl_3@3Fekr&Ajs(@wavU?z%R;Bio^`UO{X}WkUU$pb=K9BC z4Z00_6QcI!YDr0KcQ!)*9YQ>pc;0d&efx91!_Q>O@C7Yrj?22(y9JvdWx57`q4rMPGhMrE|3ba`K{=1pzR=SFxj+r&Gw+RRlogcQ! z>gHq(PA#^I`2@qb99v+njxf))$Qh{apleRz8%3sUKjc*);JIH}NwhOrZbaOH=7ih~bjmlAT@mTRj!T1h{O4COCSZ%AW=0EGXd zvCtcrW>dT~MFHe#?=ksH*sewW%>})F0}9=mLEJ4!9(8PKsAtWHbCoVEzx~!JE7Chh=!;< zEKXiJp?QDCn2SJ%kTcwqFlzaf2s{nx472M5uT4;S%R zVXa%fOHkSkP?;zN;41Y(bEo&&y_^vCdELM=%$ggmn3?d2Lq+nJH=kOCl}+PPjaL$} zVDh=tpsI8H_)rJ9UnW8e7D1(1m}U~pi$P*%q?^rH!O`0sx2CWg$fQa|uzw%N?HnRM za>{i=va+dSo*@3!$(z7#hyoS!C;uP^zk0fgn80L?PB8z0Ebob%pTBYL!rQch}Vt?$3*3!@nNmMHQ<=5j!(;?)Rn;) zsxEOekxje|kdanLm>sEjbf_@4KzSpwUw-Y@eAwtlezVGkyE?vB|A*l2-53z>&spX^ zz|uOHNRyIAI{NpC7Clmn{=@Ykq8_CAO*Y<3MY~2t_SNKtDU1tZYFgI-Zw7SvSIC5k63b{bE^9%uF2reRWYk1HNkq>v8{s%mB+z ze(Mroj*{^}xcWF@2@s!XFC>EN5$OTchJaNzBfAFJ_sNt;Yn{ruIK@ZrH&zzVVG8zCN($b^P*$ z!DpjyK;xAHVdaJne~-|EZ+;irPSd~nZDKxG7TH2*8CRUH-Q{c zp*=d)*k;#Sjv1XGVpo=JE;n6~v{5X>%5Sc6HPtmnoqWJS2I~LTF}tn^t(%+Cgv^}r zLW(5x>|BUGn7eGN;0A1#@`0824JDx@BRh{yz6bA>7!3AY#Qr!b6EJaWcfnm7WR8ai za_)e>Q%Ao&tUbp3irG~9$5h|9PfR@20);Avk`wC{wZpo#^gdBln2$#sKfbcRddEmR zCF9CEt{}P^KV!QdYtWhW{`S$WIA_e5#m69OsY!m%c!^w(MZJj7vib(c+xjr;D$(32 zoUmwaB2@H^qC8`?_4<4)dlnX~*18A0T}AP2_I?Y3#Zs;52umW zgVgj~rcR|g_yKn|a)iC3n@Uc#$Yl8yU!^B+#iw5Cq%QbPre;YNu--nGGmkjrJ#8_) zDa~sZv2HU{I`;U*iT`FLMrOvoO`tY<-1*z1M_y@{VK;9nocwNV2zLINbSU~CX^18c z-!Cn&OYdvSu%_zMB*%s@yN#LnI&KzbQ4L5#dv_H;9Rx>plmDE#CHBac(Cl9bm+NS{ z!;#yxKvAMkbPP!j3HC!iF`WJ|Ht_@YQVH4j@8hCx0fc z#noho1Sj9476u`(hrKAW-5XHwC#N0U7H5p!N$KMjsCzmtqR^5#HGbaQCm)O5!8;?m zKd1khK&i&Dab(y%w%U2VDPv6G6PqUWd*ZH!%Y+Sx<$54^$P?Jz%@bL!+xtk5PGwCK_R}z z*gf_CW&i-vB>IB=JPqs)I&&CZ&Wfv*ykBr<i!Ovm(ZgO!q1-%@Gpvi!sYVXAw&qS}cau`8rDOof@R~A7p1=;!0MpG5{4?QJr z6Ssg7=jzqsoh)0XsC=vAE&g?2`Q-ouf;3T~t{-B!YBEGKe#k(rqY;2wPbx|U4Y73Z zyHmf+rQ&nwk8k~u_JBf;;mIqwFOv~4$Hm&k%}S{G+BALvB8EuTKAc3L-4amR#!ILO zh9|27yDtF}^cF3&16eN-*cQccQ_aNRt!BynCYLy&BFh2E;Gv&S)YLwA@iM@N($+%XobU)Leo|`~;)n)? z9QrBavB6%WQixISma`!uo$otE+bGF;uC27`^VdD@O)pw2Yvc2ocbLAmbNI)F7mz#h zQ_$U^vwzIEqcEaKUR4HH1nfzn-$jeW!t3mYxE21gcEl#wp0Oc*I25>yM;X?JEhd5x zf3qq#u3pIS5^lX^oTvTld5fAax<3%OnmWlj!(_FjU2_A#4~1*U13ej8Ve;n1)h!Ei z2|=D(5v+aR#PbyPkKWUm&K!Dghxv^7Xq!IwC$U+1^+oajAW$?Pz;`KD9y@2jK<{se zVZ9teb9T!1qtfvKMF}1mbmpz)deaIP06aZj1Z0PFCp090xL=x*I?3Pxxj23>8am}b zJru3P>S6h*P2~}V4PoSmS&iw#IGMWM7-D|KE25Ggz+dOZS4Lj?E<9cD^BAtKi6Gbx zr~iqbDYe2E4j(hOw40~vJA5K?47G6;zLt}E$a-(;aBocai@J$NUJL&wrq(jL1$F!D z;_@2-MD%E-(!Xnc4oc2WwTh1FCt8zdZO8HiEP7s_^`+y5ZC>3H|kj4A3Q6;DaqjRP@3E$82rv;n_UwcqW~ zrWTF#Qxm=YAPcsp+MT*uR;9{l;;KlVEorV$5x#xjzbn=_78<0uPZu3!lq0+&0@N3j zZ^%<_0WB2)Fidrw)m{!k|l``+s zrFGFUd7QshoVveCTdGHAHW^O0fPuYQ^$SK&=5M5`OAmq zZ}j!0g@cG`gZD&@#}x6@{8fhpiypG*Veh&>{Cr!amOKy*Z>CE-ZULGq@KsoD6AM^+ z;=|J)0+(GQsf|D^_qEg#pcoA##LaJti5iPKDzar_*(BqEj1I3S;|mJyv>Y={S<@7` z7<+&ci4V6+2`n4*FN_3`v?(`I;Z0u#u^GJjvivRq2@qU4KuYNL67-~HZRY;vR>8je zBmC*X4+?40D<^UA(GF$}6uJ4Oa5O+*slSQIZ9-<3#Z_ID;$cztdOx*&s21 zv_%c^F1SUbD@ZL|Mg6!FJ&fHRn$eunCU)eS?Lz0yWZS8XYJ!(VOaVsZR0=8*nlpGE z50LOkzwI=@GE1ok{NbL?uxptGOZv24P|-N@({Ht=IbbfQaIDB<)tEV-qVNb2kd0oqT_WS-uaR*lSi3~`Y}s3S<^fSA z^xJY3y~M4UNUFo3og)DZxa z7xOEw^;suwdkLAQ$%v%k&_~y|c_y)^_8jaB>sJ)q$gkHIdgQ$Bvz)pw=CA%*oqlN3 z5pm`a&WFaoo9HrHZQvE8v!LPFU^S*j&^x6~f3r9yj$GIGIL(krHI*MVJ5E3rZ2{GG(h3XvuEfW z;rWpuhuWzxjmNSW;<}1_Q#FScy{}z~1R5i^@1>4XtNF>SINm)|kbTRR5M@NQL5?k$ zTy_Mn-<^A~=S%*xR@!eFU@HCCoVrrnXh7?+r_Z`}xF}>MFMK*0(tSiwkX~(y3>n1p zNJd$Te!Qw6XLU(dC*6)9Vj@*#TGh1Pz@oCdq2e)p1tWl9yR|Y;n!~hvk9t{W~l$!!tOP!S%HJ;WfY%E ze^1USX-V>jTx&o+`a`}f*P*Iojc3Au?5eGgt()Lv#Ba*83~~Se=Bf-q?`;?tedJAv za-AZKFhqZ)NM-~iBGati1pEl=#dqzG2l5Y!aQSOsTCgb0#Ys3rL-i??Mb%fW0qVk^ z)$($^Pihg*6nYa0p8kwdbU^*n{!_?PoeXl1CRM7N!EKaw6wj=JZV@G0t(O>3-r(-JmxtF;GrQ+#h-s}Mc^-Y^-T{U8#wCDmJkDa>Nh}BELLri{U@f_}26ds-h_K`|)0ZRaH+#m?rOYVM$_fU8b`}^&} zpiq9%{?(5$FQU5v{n2P>R}y~SJ?=wdt+NKi?Y$&Yr^A)5sfSJ*6Qpr(es=RsRh0(Z zaMQZ$HeuEjFRQK`ABDI{rh>@SrN{uXs;|qBWqD=jKCBTFxC@RWq_td?p)A1T=VAM* z7JQmGAn@8%1}^?AJy&w-8$0(ip#Ira!(KG$_>XxGo=~u6ggTJYB;)Us<)zda@l;#ty8h&9f$CDdj6VyR|2;S%3ZQALCSps8Ghis}d__=_H) z3CG?x;rsrb4#z}GaI}2oYvc4j@Cv_ab-oj$G@p6jk~<^l8clp#++|^_)gkTL!U}oE zD}V^p^TEksu7hCMe?hQ!ZQ$LqeNdE@aBlnCCA@6B7&A&WZrLVJz;FxTg!|7xNt5s& ztDNB9Y0$xb&Mc;ig3PM5^io1CJ)h*#LYMfzcLxO8NtOR!6l~DdKhU`@YUsLd;G3Qd z6p+m^f;ESs(%i&MVbzNoHl}Ww_byEf8EaDwuvu-Vd zr%$Ms)nz~QnlPc+Eo*x!=O0)$NUl0u&j14N{EA^cNEmY7y7gv$mEkJMsW$DQP3;|$ly%o=GOyl1!qZdbxLd4X|>Thd* z<~CQFr*f0t0=7}5h8`=ry-m}Km=AN_u);*>)^nGdz5YvU+mWHx*sA5I;dSTkgq~Xm z><$^!AV9~T({h%*w$;QvjA5r3-}b<|{xRLVa-Qw6FQrB_jvfzDrUnBHkLpxVmgmB< zo;dqp-6PI}hJx6H)D0T<{k0&@d(@sN16kK#Ynl>0O^elF0QWLUeg27ZThESCFA9_% zeraPiOq7q3qt`6TW50Mc94FeQsdr0YtHk7sEH0aGvWhpk>&YNd6lnX@m6=?`kF0K5 zQ!@Uy#?JEyeo627Q*}0!=!f4$F>I)YUO)9tmBe93kx{?^(KCld$fw_I-U!$BV)7{3 zm&P^u&py~5k!5zXn<2>l%cRq=g(hP5K0@y`kR9FMMBIqi#T-%!peYNEcTmCD{6*yj zz>YlhyqI$P^ENvj*o)*gJ}Ks-^JDidjnU4!O#+WAE0!5sSav@YHCQS7y6-8|`{^~# zSI?e>M?06Gv~*j$44gSE{I~$J@s|1X$oO32h$zWZXPcf|_ubk~F8z#FL-t}SV*j%Qfa)LRa3!Wy@}} z+SKf!N;0q8Kz<3#1NUvcU&muYJtBK!gRgPXT9-K%#gJ< zL5#coIWIi#16Y%amCDpc;AxS?hn9)59&aTD6<&s8^6{Fdg(4kmWbH+r2jXu;b5-rntll6I1C}R{hkIG#)XdL z%zcNt`B^>EC-V99ktrO9P*EX9sJ4j3wvjRwGVr#h}I#uv3-4v^z>w;Y!5+%+NQjw|tZ=vXXY z+zKLQb7%rS|E@s5ifSWpVqfrJjEf^U$Hq<3YXT(-fYk;vs1@9l`z*Jvq~+Xzi-F6a zKfk7~SDRnZbta(Z-t(T|pv`e#kgQ zZky4_wLi<2HnfwgX)FDrp#2c%Oz}-f$Lz#!^-srs)IPa1b%G%(gD7g+EEqQQTP;EL zYXDMMHT|0FhI=SX$t0FNtNuN)az-u1rBHu0b2!|!Ue$~#`S=Fo9^pX$&Sjd@yQqEh zi;R9p(pc7~F&yqccVK7b&2Lj?kt451t^PO~{$ci5OFfr_m-eAJgfBhe&&*KRvS!Y$ z>9nth1OUZX^!BZl%Zd%*hJbA#Wdq!j$pVV))3TOB6 z4Q;#y=8LD=OpqSdzwv{4zrg^7Z8et~xYh?7ZZ%EoS8bs*h(Lj`IUJZrVbGCs91 z=^eMc>|-kNre3XBjWD`?XD?aLch{*uR?#*a1wQblqxUGzu6Klj>{#!!(4x~wzB0=2(R;qr+Uw1iQm3XC&($_k3HWU=Ktp0P5`gmx zLkY%lc`5K5r6xKuhG1DND`T19iCZ)d24(JYn}jOveHr(#-3h5Zf%lux)E``PHOc@M zj`{s9GgJcUjMWOlHn6^%S+c&l~VGZ*%sW9Q;(Tov~U6-nK<0 zpT+nkT)4k)hkMvGUNnovA39uTKXvT|UqDon_z;5_Y=6?X$sGA&x~7;mp+D>XXH)u@ zOD|t3h)OJj_i@jQP?U457nkQA&%eF?fPYrco{`f4O5 zBs@G%D?Rsv^?q-5PRANaY3s;T#@MustHv&FFIO+j?@<+#SG{|P1bt!!RjKmV4;*l( znRG9i)8NWh#Osxr7Yk$lR}jz0_`pj!wLIaJje+$<)411~>a3VsNd24G_q#eA2djcA z8p{pTuqFT%d4wu~y>f$_LL|3SVzrgl6N}PhI6hBQi+EOT9r}W!eR3#PS(kL2cN+%4!U2T*hdO)*p*m^QjZ6|T#>9;227D8| zqy0?nCUG*4M_)E!MS9lAUWb9FO*n>;laI6zzF~HO#6;`Jh*of3oieL7F5W5 zkL1yl&#&d2zTrRQ`U;Hq*~#w}ynFJcw6|^O6JYn8U0>M_0?$qK zHmsd$fLN1lS>8^87VP^TE-bp_aZIgMGcsq7Md7LuJLM5cf9f64AFmuXlM)O(uI!Ex zz&rVaH9D)2r+#hzhk^5C+HG4@EXgvPgh$tUsn~j9USE}Zt!aD)zPD01w5(wiNW{VD z77Im7Df|oD8{aLtl4?z&Nf-?n0Zlq>e`+GxRMnP$RFvu^uz>v~7H`T!-S+n5o_f(# zORz{9>zsvnUk#?rsM|vC35W@n4+s)f0`9A!0TSebXTv@-G^uWa9V*?tZlkd{c{!V< zG_?~~UZQ;AlMb_zxtiVX$oa2s?h?k&L_Z%xzO&hQFHzGVWJzevUO(QrykW{uuxf7! zoVu@m=UUUhzg5^6;+p=tAJj4b>KN&M=YLv&s}+m5*|wlI-;}9>%d3RqhOSjiaAN-L zO)k08lac?x;T06ezFOCmq4FsP8l4nlG5DwJ4`~R%hA+^~r`&8G`c(8w`PxRT!Fol5 zM;?#}e#A`b+E$u8k~p8vKKyHs-aeWCbX_eG!K~|uLtY;y`^%js)yrsQn!kU3X>L#) zBIWwj6&e?w2FT9*y`gIV_w!BF^HT%lumq5>Q~26H&t#DZ3>blS)}2&F|DcdeI=mBisi@D(!~|Cj>3JpM zt25(>c+h&H>>a@F6K*F_kvFdjZsmA*&4n{Yy!am%&T`u-V4h;mcu^cNOxEa~8ET{n z^9z0R7%{_Ib`7x!z-`+qEg0rHcb-_?A7zVt-Y28`V3ao1in2 zHSvF{Kyiv<%f=TGL&1@B+PZjmey;}4~R(>tlPY|ZD`dnKSpd4gbX!Z zmY}zWhW(H0s+4D)qfdN^627J^%-J;e<NY;S^k+ zb!BWC0YXbfI+mSwiA!ZCASQb_yCx)=s>-H?P|7rzm`k)3!L+x1R-Nj^QzyEB*LcexD36Azw zN^kWUG%@UAf|0c5SrQsAAU&FeQ~vSaw?BYu4j;^Yf3)n2P|HT#=Ct(7=lbROC>6)? z`5wcedy`74J_X;c9dEN>BTRX?JX3P`9#!q{V#b;uort@WZ&vcXN>UX(XtKXVeh%H( znKpva00Yt0d*BGp__iz|ofeRmhPP6h@b`~x`;Tpb>P(oo^?cp_oOSbDsio3cmUZ4@EveP;JdJ)-O$xUF2`;@6>Wej#Cmzc0q`3eW%?8O zpgHX7L2D$#wJ+qAG5Y0X3Xs8wiaqcLKPKxD`8{bzB)*?=;iTUl0CQ`mdE~yI1d+$( z*{31nSQ4}Qo0-Z^dfa*)B0+#sd<PLCb=l9wTeHFF-AqOmj!&vAyy;Gyd>-IeDoa`( zY6-=gVu4zCi%E$^ycM^N-NU5qiiUpoOPUd!5TR8t!>HLk%#kpbAfZA0VZGA8=6S>X z2Zh~jDV(xegLqx+j$TM0j`KU=%nHAcB^^aZ?(g+wWD6&wvzV2*bvL1S^a*8>~o4gpWsy+v>ZeXl%!7$e%uMwmg+o-VYfI6k5oGSaKd6hhOyxf4xuH z76SyU+5E$XyLaYxU|yJhavnFsk)-uM2WVO5QD%Pu`Oh4=3p+J=A#t)}u0GvsZr}4y zp7Gu_aM{rT>1i88*u9c53;joT_ai}LDvasDft|nRS=0IR7V&a+zcnloj;HBvoQo70 z73of81Bf1&k$rMCz_^^a!;c9Oym8mk)0p%APr=us*Iy*J6etQ-q#8ll8Aa+1?rj>I zcT-0NC_6N7Y)W+e>O2yVc!j$7`d&IFaPp>OODfuLcTk<)87a)baaS}bbl9FOb@Jd=L{F%XGp} zj#Ib2FQMx*6gvv~l^49|WBrysV^oP%$h;yez&bqg@Ix)LzZUL>=0C>!*Y_S_!!jds zEt$f8d|5VI`YMOk1-P`pwWD6ujqd;^Y#5S5k$jo}O`$s^@dw?dooE`Gazx#~4NCE( ze;1I*RUE-R2S$-SmW=jqlBp(}Gnz|4tLk-^xj)e3y1`IhbSE@=+>GX@6TeHL$;4a6 zPY{6em3E3E4CIHNZ-8xooRv*%4ON;^7`OrzINJng=qYx2Bjf5P3B4G5vGeZB1%P&;0Ui{w*Cu2+`IXNZ};x3 z%FY}BH}dC0h{qB351#Hae2qoAU>NJhA>fgWAtG~W6nPmd^~LF@Nn_JU!LO&32%FA| zNE5@Klcz`b(V2HDS1F^IKU7kkjQ`~Ld~@o|j`8(qF{iQl_5y$t3tJc0xV_Q!eyTEI zoN2IBTocc=EYaMF=+JV5S5MbZd(UmRkEM4!Y3r1f>km+9YBcE?jbWngIL|)tw)j@a zpCPpSi25Dy4+a{yov&va591l&*|1wT!9)k_9r=5V%I7k0m%L?FimWJFr5wHDhTB=Ypek4)8<&-l*BACM-#+3GJ6Wnxdew7!9;nSg!) zwuL9+=e@4Ib`sa``48z0$zcQ$p9qZYzlJW-`D<5Tql{e{%1$zGktNKSxQ4R6gjT8R z!Ts0`51cedv^CqWLof{2?1Nzhds*K%$u&F0Y67{?w;qOA5br^Q-m*zLztdj`usGgu z1u1tdj-Y$rn`%^Si98*xKGE1ozIs2_Kjy3{+RMqgg=AB8%shM_Zib zTpV{8d!iq@rYKEh{J|*xAwzrwW+b+pg^IlzkDW%!Y<9`Y?YzeFGIc`^>r+x)pnbUP zkG$)SuMuW%hgR4CV zIB7;EULj-k4w9M)WPGu1qt=fYW7A@L5L)8Z7!uj?X!l01>o?lO<5IK9WucDqlu9eo zhtT{6x_Lv3A)dpG*3vi)MfD}?vW z@FNGvV!H?;_Bx{^rLdA~tW$35GcQ#7*TUO?fDI*}$p-%)dd;n=*($CdX#Z`>2iX_n zR{7~3cgST|MSViwyXCP|*%R8Nhn0s#&N2~~Z#npwOou8zL0P={fleb0V9bHYH@7>;6?V}Muj*)RT~ zi;gxKmy=-x#rHBxYoCI(0nQx{!zH%~_6t32(245XNqeMlJZ`;IKYQijk$M2F*UNYF zjUu}@-l$A?4!X+a-FqAX5X~Q{Uiw-74eg%I@JqnDN9s?F@e~sn$5inBW3M^*1O>EH z(R^RHpih@B-I)jN+G5(bcq_>^L;~*vMqRuT8K;Vye^;KG_2(o#f31<%KaaI-{6)INF_R_HnBEJ}`n!JLGgt!A!N+=hk zcZKgwzqTMwceI`NYf+t!@)VjcLL6eaB8=8{EqSXwpZy}B;L@o+ z?WDi*S`HJ^{~JMH)^L#gC?uhJAJ-#jYk?N9uxrxj1__C!boErQaev;_$p-W!Z%_MM z6^uiWm4@n)vrnzHZm$H9v*V?;NsXK4DJAujsUOmq3^C*EV|gVFy&P(qDT2t}Savnd zG;z0s(cJ8&=Voc-=yyW%r@QpF%~uUrRKvlna=^pf%DGivSG_`lRW29*jJB_-CFE;KruMdjtVlFR+tZUzS;C|6^ ze;2C#B@KV3WFIF$cs&zD&=Dk@Vz7_e#|^RvxK8))qD?-a?`P07T>^Ao!Uy&P?1i<3 zC&Y+Phd5~rDAL1%MwZUAMo|>4IflZ`RFX69emWi^icjv#zw-U*;F3LW?Vf5C~+%JWcq6@%pd+ zB>tkm^WFj0oUU6HU02=%l7o^bpCr>9cc>HIY3r&Am_)jAKedErilw3^NG<9ZQV`{N z;VM`kN|T+cd5f>+COmlwRg$N-shkmA*?=Iasv|H!8oI|-yJVJkGz6e4lxGu9pLGWo zL9AQ8fFvB(j+#zp92dVY)Xchve48@3jTB@#Y9{)h7GTy}l=g8=(q;aGM?3IR{tn^3 znESK4>xNr4RBgq)g1rfAGNqs1x_* z_`)tN^NzX2=*g$WELiiEBxuQ-$UqX`a^G{%4**Z)ciOaCsY!RI6*I2pf&2YGdb{_h@R_YX8)1wL3Ck4>fB< zzq@@Ke$$l3v>V8$tiZ!eWHvi9vAXf51|f`zRSzyvyw&=g+O&A*EnzyUzY3x~QIq|+ zPdK+*Zn-hM4l7vk$-i4n`z!Y2RabZ$-nK%Z4Cb{q}lN(lN%ZFYn)@gT9OVN6u1<8BNZS z1F)55V-&lqK&bOV^UsIwFtxI^5CUcR6)CS9c-^LHB0%C`(Yj{tzV+On6CTn107)2H zOj57XwNOHLUF0Q+P|!A0)nVGM=#~tRn^8}-CPeqUYfqe}o>#}JW~#$zVeKz_q7@QC zy_n|*Yl)*G5(zn!qHl85Jsfsc1puw*ni~H!xNmRtuj{0tOqR3gc+bftWjsG@N1;c} z+KGp5X+UXnptpqM;Lo{%W(A&$OXQl3fK|O{R`kv`k;sP;p0)q>fxAsr2uypq%tKy1`pV0mNnZiDgL z;B(_b+otV#9`EfcNwMv&3+BDc8uO2$f{0R)fTm@o{6ANSUDp#MwLE2CiLVy^s5!ZX z+3H?QB9n=qs5&XYSmDD{bJ^%GDuu`r3D(Hi#2;znWEBO4oK)7W+u^iLnYbsW~721cNa&@T^Pv3qq> z@65VpVNEkX<8spFdoJ$!`+!6D#I4cExp^Ucu8zGga+8xqd>SspBWI^j%P+=d?$#j6 z(vU*2lDS~u#^VgGgyzdm8 zE?m;^K~7G8C7l-Asiy|UlHv55=FwgYBJ@QH^gfJX;a35wo(l-m#25OLXghdv!*Tco z`c7TZa5A5wzELn+uv_5$6yM78RGECT*8dg^1X-j)fs`<>T7Nt53;prY*n%c~#-MZY zwM^Nu9~b%-SRJ|Y3#?NF8#3OrkfQbxyjtEEV3n5w^(2E8u*$2!n|jX9q*-|#*quaBZy&N&JA7`A;4pu|r7Xz+ETowFA+x;f>zvY+}cHohTFJ>&nb?{~#s66)94akQ9Bk|4D!=lAOj1i+Uz~ z`IaGQ^x*z7E1w@h3}gAOEe^sMiA*iofvjwESsoK!k5KnC{GFQeX@Q{XBQTJ8Oom*+xF$FRRR z<YtrDbc1Zsf3M8@^F4&%@vEY8S6=}jWd;-1BS_AO-S3S z-Pk-I4`O)A>Ggp6UySNeHc)4pv#X~tQUYOMi5?T3a#&(tO3n9~_^zu5Y`UsKwNw^7 zb7Fl32lp9fh}*|uB$;)NAN;%Vixs{)otZz3x4X zbMah~y{>+~*7)L$RQETakEWhHpq{$%-xfo6RAE3Z@ z)Y6F=vp~d)@}V$yQvv*72lYr?zY!t%!V_{$jWGE`y~Dy2@(0(6STH;o`6QSV!+UO2 zPUj)3bviBQJ$b*X8TSXpbd}z&(tvO|k+_C?4W+7^+(gO}62Zmmxr ze`9~#vzM3|$5*w!RkbcSXKl@rF(ZM942>*~a=Q~y?=x)sy=P3~pn~GH-7E0dAo~Zu zmpkdyx?_zFuK)MIuto$A){kIqf5HcdXNin8Af{y&6>>EdMUeU9gvI~{lff!n!3i*_ z1-Cy(sJ1ZhA^`L<`x9Br&_3`UbO5_uFFuOpqk{C}ys2S$)mC-*?*aJ+I`dg{l}+h2 zr;lkyL^8Kv7l^sI-8yXHKO2kwHo65FmM z=v4S?%}3?*JrKFlgs18{5}7UjnSI zW5T0#C9j)XBk}Jd2D8Y#-06rJ`pOWpSnY?#^_sf&TbY`!2%yB|;NI*p`naXaW!0r$ z7gvzZ2!Cws~8SbS94^`$)Cg%8iKa*g!bg1q4$qm1-7^^ez+L99-W1r(^8DBZV@(D)o?|JlTa362pLiRdR_}>g}>ArRvEX zy`-RE^SPE~qF|=pgeC4ok-9NeMeU%~ba6tx6Y=!8=+*LLXRO`Se^%-kOw4^^A0$M& zwmG%{i}_MqrG{>~_g~%55QHr`s-#2plJ48S=yEQNxT5CGnXXX{g=l{9TTH|iXz|fI z!}94w(y}ilGtO4VYG+6}e|Go3mkQmG{$co^lRcQ1^r&c1kTj$%PN`d7Lxf_JV8Kip zP}N@e_eIqQVFIQ7EaAzmIQQ@guFyccRx+UjZE0`E>wGM&>%E!GE|MOc1m6GhvEIqn zd5O2_Hn`_*Q=0}9XJgV}k9&M}S}nI0J$7~N4xehia~mkFoj=~I3>XOj25=j9?rFGd zFpzZ7+k7c%Tzu<*iZnTU+2xnX6hgv-sdKvjp$mj}fTKw5x>qNM$P@1OFg@FE%as*u z4_Bt8_DLYLOY$%jWBZK=z*34PX_woX2V5ZN{Eel-@kT5epSq_+rJYv*cZE?jM{|Nu zk_85rIhNwOd238zuI9kU?EtdqC`Gt}dfA!CQx$(*EvW{fp#F4e_JmN>wNPxb`UyRHNk50Age%1xe2(ePqYz4bo zURlFhvg4$_ZCWz3Ab-gMfqKRJ#HUq>Fnchp{D~OSRQhP-Se2}mol&&?IbWL5dMQ`7 zta-vVSgtG!#4?BztWeSZQ!*(~%zpbLy|dG6#RxvVyz&rdC+8Y_{ukwm9uuM;($qrf zvf+q?D3dgAUv5|smy}MtIT>qtmOgg+p*jMHxY*!}QB;`2frc_1HDF>32>u+faE=Www> zxc_9*VFPaRuXwrB(Z^S`JYGj5viW6#*58yRg{^ym+vfG`k831mVP-k_qWnUrA4D_4 zZSMS_(uZ=Ul^X)Q4o5aCU39=3gs5*a2H4zENEAMp&igYpq(SA;5yssNSwl@1#4&(4 z>b3*I)j-5w&1-hcuoc9}O(~6t8h)yFM=f;Xj?Yh}7ZKo+9T|xgtGs-%Q1Plh(c6(D z1T=B}4G8vI#&f`Kh1xrQ+`@~J*UkJM2U@kXhGUtSofsL~KCKj^v;S!US-M~PD#6@+W`s0fvd35}Mu$BE%la}3oCVH!9W?hOH zsL9dY@<1;0Dd4FYOx;2AzQ{8#QRFya?{jsw`0eW+xciBCRzp0*-eF{4>MgKg>BPKmyDYO-TC}$MgTF`p%%H8m?Ov6%~XB8=wLz3L>2dNLOi( zA|TSGi8Q5!-U5k=2uc&_Ehs3xhh7q;*U$+NAoS2ffDl63J-+Yv-8*;2AC5mTFo%8C zUV9Zhb8QnPX66yeGkK&oM%hm~RSSo0pR%F1$a6qC(>a1CBZu1H$o>(1Dv8i0_GxGC zc{1kLz()0=9yVD3Z|;;q@3qM|=tM9x^nrOX85CI}H{-ge>p$xdeqMg+MrBT-&|d+n zG0E^3#=j?bh9+USKGjEybjFWUcUD4>(Mt(%d_&YKiW6hn21qxj!j_I8&vnSTiT$0} z`U2DA+g8c{!QZd#l-h^DoQU1gdCF0Vffc44P?UzA9&Kr^K?HtF7-~It`xiH)%^9j+ zCdpx6pK)(dBP3srux?9D=8Whx^!I+Tm-7u+B@*!u&-#YXBb1+#PpX&hUGj(ypDQrT z4PLb)XscTwgDHf8!$k~=)(@j^2<07{U;munn#nb%5A}J9$K5M>2Bkcb459pyG>3(f zn)D(^5AG7Lm+u;%ZS(sy#;XzGMjNhr^ZgNj?WXUJ$rrj~k&BQvInh}taknAbyG|OH zW2#^-A~n0@tjuXJA^hUE92^MiGz;KJdH>Q1aqv&WznUkbPRx)KMs7|9{Wg8fH|}jI zd@xCjRXvz!=e7!3S%V#JmBIXR^vHc^ej9)+VX6nr7zS0Ac?c7r9{b`(%IlMflT
HEr!hOgY*(U{5E^Nflrh-UAx2lkaOVrf)Y6l3IT6V?+E9TE zIBgP(XMm}0+Suqm{dC~CcQpFA_fw4j;P=@N15@huCxOBvLH^?|oIi4A1+(MxTm<*d zif&J)*Z+*Nw$U_rs_g@0pGNMK#^hTA&3IcJw?zluUs!ilK0D(>zxQdrBRCWIdO*07 z@z}NhRGehQybII*-5hYat03w>V|)oT;`w++`{xP$x2qzrWW5Z0HQR^1e~UT0{w}B; z;Xe*YR_8KINq#0}W`~8@iR-+`Iz@F^?CWwa*Cg# zx1;47nRrnV@a*xE28)k_&Y1;fAC6_eHpw|r$@NOB_e*)xhzj@8Z zJxk72pJg!oVRayC>%#YCcFic_oO-X`;dbl+j=U@Y#dW&ZF|zz(?X!Vn#giH!-0tt{ zb-&}f?Oh--@c+4vGu)KbHGSK6cmNOBUrED;29PN9-@WUBBHN79yvUq;(U-H?K!D&1DKtCReBg{m<2;VO(uYAE4PJyDj!?HzHo<8-o8EY)K5f1m$J~xJ za7CD8g*p38d=9=Xa{@@T*b5q>y4TW83Y4YP^s9U?lyuWdp3hv9GFQXJyEv@X=rt?_`(uc`0E zPhOIx`L~;?d@HKveNv~znxGArM<#8Ztn@_$3)NQ#4a9vke7knLqiHMby+2#6MAEwd z_9}g*)s?!RmKD=F^>5Ub;7s6E?(E42>~~$O_rBf9`C9a<@6K_2;9o&%{P=!zPH#=5 z@8wSKEOu!Yjse5pl^vffz~s&r!B-m!_8PuttU$q;Vf^K!!crjvFl$izZC>7$m!Cp{ zj65;gK31BL>j8&R8St{!n^*ID#d_*gC&Zs5w3q-dF_wQv8-aymA+4RKpGPA8?AvQ@ zye5wlUW00!x()MmL&k2FXk(Ek#THcA@FNXT~8-hoS>x!sttX)16T0OrJY#w(|I00Tf*e}wY~ z%>AYK{e(&+>UW0K;B-8Md$tqW{gg|KMGm^M4)UM$%_GT~flI1aiV@pWASXQ=-}OR6 zEv9_Xt4MC~wTXrH$Ycqt273ei_aq7Prlr!xZ3^%^U-z0}%tkOjlM;CRben5hZ}x4n zx$(yYyP_zqmIQ8rI%bl0t(jA%EaoMoq0wJ2C*_yR8UesU7*3dr`ZY%Gx>g>o|!19}K zJKPsE{<#JVO%EKH@NML)%~Z8JN-#F%JOA0(bgiwU5?KEN=KkpYt9(tO1mqBxs-BSQeg+@eKp{`1h`>9?_E-&Ao!7OjL3PLLKUWr3Dz z#~@#36_}{Ma<`ng*jYgRWlef#&68A(FHgPizu=6{kbTNQ7{Jq(2^iW;uHc+Z!ELsb zQ@9XJ3piv?DHGPX*|69WM&1}@hhNNBSq)4*>Fs;UjvWZx`DV}+QNdRf&R$-pfbnqX zLpb&a&qu;h6q9t{hByV6Qa})#0oWpzYM9fEEDJDd4JV%on+=0eM(S^|6@K|C8PgAs z>KNY3LJ`o7+jZ?p>AIG$p62P-!Yb(qC$B2J?+nCUjm zm>>8zK1;1uy@I@juQ$TEGHchXX5ULHy&CD4gEy~S&D5*2Gt4cXnw;BKA~5!{22^%i zvl7gIXCwXvSqe>X+(M7Odjg^sFW|J4vdxdRW;iaTjsUy6FZbYr$;llofwlxkV_{kOiw!MjuHf~2%$xWN>1JmBtIouHe zeq<{$ZST{yvicQ*sg>tg7~aN<8A47z*@=w_=*7-blBP2KS6U7xC<>M5Yq7RiQ-R$t zXlZ=s5=@DZ9j|{xF?XWf6d1E`t!^*k45U~O%yKWc_$y| zO>j~roT37sFqs#Wn=_%f_bAyWXgLc_*^5Oo<9FE$N%}JZIV{!<%qA7T86Sl1V9`tv za6Gah4-}O)t@MbNDv~8(2zjON5#C7ikF^W1T?7G4+85W+qsixG6915cf4-H(WC^%M z48SNLsxr82s+HOn#|-JwhYdC1w&hzyVWZ68{X3@!Mh)8y*Q|Fxm|ofTCdryGN9vuv z|KMtudIX!#iYDn(s#o2~y@;VkieRFb^DjG=kU5xXqLR|SGv??#seQLe4nK*L-qZnfBzIZRV90k7H!(!WfP(~&@Kehro!M*5ZfHKvu@K2ksK~7VN+^l<1o*U->Ke2?nRWeM{-KCDSGs>D6!$r)% zCwoYT=f+P5kXsFo_*8rNH zW|><(vhX{Co!dh>6?yMmlq;1(s>e8j`bB#hQvgW;Y_nB68qGM#s(l=Yv*bgqGBjb(pgHyaxvBK!_UE*uwC^X(}l z1e3AW^eIQt&FmU5u-~n(RGAKOBk=?74~nrtCP@J>LAEdG}yPg$0ESVL4cuuO6@IGBWuRXIo*;fwJi zQ-H()D4m3XY;D+7Gb6Lq+^VxpA3aIGANay)ws4Oi4zRA_I5ncMFno7aFxJy`E4KGc z-GmR#pZ2r+qMGMuoFufH%?0|QFsqW^+(dQu^Yf%`TR!Z+ov=Rd-wFfAi<}?)wfu7^ z16OCmkb0hTU2&URU0E<^jbdF(rH=|s3g*TRehxeO~iUSWv`j@HY6}U3+tW|DZw!^TRMm{wQG#D}c+qdVXD8JmJ z#?+*aON@LS=Pk+t7O>}w62AZVvbW~4dIBaeWuZUmt_{S`YSdX%B#{CD`uf^Q0lRo1 z-Jqf4k`E}!YRcO>oyBq?X=g!(FbI3MvCT1Sx(EV#7!MBF5hQHE4uq?GF;;mNQ3%DP zuInddr5HzjIR-r@NcjROw+FjAx8 zOQ0RdtzQ;@GWA5Vf_+cr7x6PSL30X)MO>E_o?Z5b29V4(M@0D=9salpwLH;){9ZQ_ zx3H3Xo`2Ud*;IsjzFNF?;>7I^yW1TBmknU_OfgkaPGXdVi(1~ z`Kv6TTLeY(oZpPCKxgz~In_2hg<<~DvLwQGT!GF4V5p5@t_rK|H>%Ngjl-KN!zTsa zZh*^YnbcKQv@*4723W7`--E)h#QrZA&~+)6%Y!Jt)`ff1dR||7nOcodo7I0ClWaeX z%{R;pb11dFHh<@TLLy`_SDgMfh(P!IWY}Z5Fh6|i`kIMO-3n@Q**WZpR0B z@$j0!+un>O9Rj@`?=rw}C_w9?#!wfeUHYKsrV!}9Ig8nY4lr|W0|A#|bM!fWdF-{(;;QjWRezicim@eG z4N-=lnmnFdAio{d{}c~IAaC}ZdI(4cU-G+E0B5n{o%>)KMpvlCTmzEfOE?FD*VYQh z$i-6;KMJbk^yAXVyMf84>K%l_K5D8YequC53Jm z5)@!O5LmT+cyuI>Trp&Z*ynU!7+z5gDI&mkqPJ~g3=K+D2cJo28i#;-ipo^?I@Rdg zkII4+rVt7)XvPuIX8l=peEg}q^Dj0SqX3=e-SQbX6}+b#3H{Ku!WQ{K{M8}Q#@y7U z4{A3v7EG$vdrZEimiS-&m1D9&j$nteT0!bUwGhR)0Chfr1NfHz2a{Qu=EumbyG2_W zUzJwr7^+qSxWbuozUZp}1<31px@}Wm>V$D<_;c;3xYu9S`f3i6u;pS>=A&aGNwPIS zj=6BqwL?I#_L5-O(%==(ZlNRW+vY-uD81HF)LK%S6693(>|K6??w{Art{Tn+E=L7; zg0WY=Qn9+8rNU#$XIy;Oi&;L%$FFakG22eKz*?~=abD=1p2~7Ery4DyV7QPg(;;>1 z&F>migv{KUHs9V5lQNxWV*YED5^QJz0DKfRv`k<>E%|dcruel-(~z)U%FZuvu=@;Y z{Ld@hXIIj8rRjVsmfQa5c@(L+Og~-qXd4z1=zICw&d-e$bkoukH7cV9>lRw$ z*7A`^2w~1MsmlWqV;&J8rJw?7$G#LsKNz+w(oUB$Xu5baPrX};wXfV8mNBIJQC;If zo2!n-e+{7jH!%Zm=CBr2uZtEeMIf!mmbv&>@?8D@_S|lDyIQkeCk5T;dW_M>6^LMY zuYe%@>-31=DKyEoNkGE_cRm-kbJl{f&Dl|eq(oj}zK zCoX9PAfX3H3~L4bPz%A;X4a3Jo_xXPj?T*cxjO6hn;1q{9;?@{(4yEZsqJ_s-5_BSgY==<#j2dE6cvop z{@ow)v-@B9o)78Vm-v^w$uk>$-cZu8X;Yi-bAV;yNO-_%rfT)QJWcp7$6+xXhw$K2#|5ozPD~cwU%Z%D+N0e*+)7Jmdi5XeN|R7{kT3j1ObHO|#$o~w zL%%2cYSa*Ym0X2R0`*!NwYLw&f{jZ&vtKQ>WPfAX4my|O?4wch5p^J(-pVW#@uV&7>X4H}8P-}W+GIIAA`>dkP(Pt*3 zE6H1)06$BeEp_K{>kYLTS&?M3=Xe_1-{hI*D8a|B2MCNdaKUG$$}!EvF(&DUKe%#j zWbl)&h1>eI+29Dn9BeVMem9FwgOT_0s;}~4xlsp`+iZ`_e59`XJx+J8c*~4;x#P%s zB1ysiTuQJ6kVp7|r21Tx+pPF?`B9yxpv~c~6B`zvR#Zyg0;9`af(t7e__x0Du(dxJ zez=MI_VZR9Hr&Q<^77ppblb9UETcU3H$6 zV4qp->Y$XC=|zIPBHs z{sem<)haU#Zu`aYV-eQ#M0+Ps3_n066v~>i1`i-V1jv4F;_%M8a`tA~y-Bt~&R#Z! z{|pS51`7x91pb~v4RBN=a$o^_xv2i*+OU}G?>qJ%pAN189+_-GN2hC8iXyuWx82xR z5VBCzr&&DZHhyDAQ7b0X_n}l#KqXLR(VGv@a%rtz4!}*aJ?g7(V2jBUAZvHW@M#mv znQmEC2_Pv&X6<*3)a$6b>TOj68McIXH8@YDOW4cF{la4(7*`47!>#LA|hjaL(4 zFH1>Ah9moh|3v9)p5;~?eOx7L?^#r$Tiwv zXY+V5KnFM%MMWB1K7T}@?lhv07T*pG!@9)4oXR_M70kWB)kLo6yxev(8x3Mt|3%a- zpL+T`+0tVzCsy@~&_P08-xNL&0(932C~oNIWs*8=V9Og>Fnl8iWCcM^QMJ2zjGFP= z%fE^Mg7l3geyKoW##4E(v1B;Dk&p+%#}-z^0yQUrf!5iu5mnm1?`Z6^6sf@7!i@@= z1{Ump>|XzU%lN@MN}rEe1oQnfc}B95fA*ogdsW`psr391-z%2@$1?ypZrn8N`iIvx zb>#1v>|N>6)pA3_+;yGaW3-+z>r<)iA?3wQfMe>1N}#TPZQJ(8vmb{)+PQovbiUbp zX3_{P8}+sQ-K>-B`X!LzS*^2%QO3(c9Gx;g;#MtyFwx5=nv)Ee)2u#~{L*<~6Rw{5 zvo}$5{O}U!@wmeo^Y)O_t#WKtEnNHqdYM)mH*3PrOu<#KV$r}6rZm1TuMGF9^>o?0 z`oosq!VXdQB30#QOb4eYYS2;UH8rSm+5|vb)=_dT+#5+X-SNT$=HBQP3wOnkBj;tc zzuOEFPY;J3qEw&yv2Rk*0cG~4y-DJYOWD0>N^2H?4pH2*-nf=Vf^`6azEM_-jxq;1 z^<~UbvVq;mrQdh_rFZ|Ng?l}v?a4(uYJ}yZE8a`G+U}xx{VCG)Fv*}s z_FQlv_S(=O!*k2GcJ?Ss$sJ|4Qkr#&MrAwz-LZh|0qxhaS((? zJoWPhxcIEUOyESkIG_=6EUx#{k3)sUn0qJcDN?+$xsv9|&jq6L1wga%yxY?peCd{Q&wsA-l3uX@R5fo@F0K0Ym zXlvPrJdZHi4`NhcmvTe3rR8wgF%YC1*vU$s=L!FHg{Kc zFJNAO&1}dlDF|FKpw^L6RG#aAs&W#dg7bU`Ga?U=tv@)jtZPjWE)EJ3h+e;(7D=3e&3f3$N?tn>KgUQJ z`f#eYX)9WLI(V@KH=fQtePLy|$!W8uRSyfCa{aai#)f(C{o#{~rJD;$`Fa;x@>phDDS5PG!r@j1`35dof@R z0H``NV6rLQc)z5oavP}3MF;jsJx=;1YM=(MEWULeDiL)=ytVWK^g(xWk1|Vm-@Hb^-Kn0JJ5sB8ir}sO;n;5SyVW~J06HS{DFcRoQ zJ4djg8&|=2tNkH;=*}`LpIKe4JpWOHpxVw^mGQ#e!QH-85+N#JqzLCn`>_vV5~s*awzU3#6$VJi?<1FW83pb8w?7%wpqXPXY_%A z_brDN3mj&LLVbq)wQYE8oH7Y2Yub6YK{{48`;Pv&<{f}qU--Z# zp~@`d&X-!VP8P2L=!Jgy8Gys{pLEbJ%}sIjJ#OH=kuB+R zbh;g=%zfLFsnWFm)ij~FFn_bo4&~E9U>q|Pnv@29=Bm)mmo8=1ogjbF$$18Fr%1P< z9{{l6U233g#jI6k9FvG<*O8?z(u)gc#RQkGF?|>FVi}fr+};61qAw`x9!L}*kovXU z`8J+`nz#D3kI8iwHj7&wz0y{rj0)sJDR&)k)N#%jYG1O$k|_kaO~9atUu!e{Rz&V7 zP1=t{lLiX^b>tc|o<*(=Vt(``iCY{X{pqNoNrB(fH#Ksjwta}%?F3a?sM^t*|5N@M z|4kCWUyF=^-yiQVEkSi;9K|gK;u-y}`U_6|P@gLgU31`PEe~rWm6)n@T&G(NCHKXE z2PV9M@aVIws!?xL#}E8OYcD?o7}c=h&v`z%>-)S21aC%T&u_MakXdi&VdzDrk%s_S{pwxzIOFEZndjsCO~LiN z$zQTg0l^lQ?p~1g&5h{dkr94I4S5!ZyVY#?RiRS?=ZA&O22M2or9d}|E%xyZ2eVFP z-C2kGmElRLPtV+2(XI#aVxHi?(Jf&!=e0vvpfDm-mstrkrk&W+5uUj@1Pznu_#(tnWTB8(HLjBG;C`u^GOwoxqwHlztM-R zYaJN^a+XwQpWT|92KVCX3ci-^@>ywA4|QWE9hOqr{u;(B3Kfr85Vd{&M0h%!+lv11 zarPY-kW+oM83Cz2J5oEfNP%os&MP7?a23cw-w^%_r(`o3sRYhoVn9&HL0Ih!Hzn1$ zR%vr0Rz+V~!aRr~Kf6~C+77xs;n6G4PbJbZ(IJFZon(n-LehqW;^I#m1_{UM1NCb8 zB&oVSVd{2;e)(u(0C%`0s1`8gh9J|*>|!TORL+MSu7gqJlo59lr(MS`C=ca1QS3eLl6R;kq4G*ZEaRvSZ+F=EF>Zjsx zIFq;-3*Aq~r~s)lC8tJa5UDQjY~n3)Q_zq7d8D=A?KiA3Z?%$T>$g0jIrO=UwK6~Q z@WuPTkX0Hl#PbZAs?RHRE-}gCVCAI83^N$`MhkiJsG*6@z zC@a`~=~UF%hqTrVSTf`r6THW|DSO2feYQQ~Z=S&*C?<%}eb>aaxZ|c`TBcN$lJ45F zviG>yCG3Kxj_XS3o+~x-t{~vT*dlK*G!HH`t`xeUn3)29co&TO_+d0bZQ!@<;k-NN zgPl|FQnp^?oPnF{=zZA+iyAr9iLi*Q#LbVuAW61~_%HM8=QqbK+&B7mBlHrR&{0O6W_3mA>tFjXHE;LreEfXzV2WxU)_6qZgaxhL zNsi+QH|iGZ6y}3r`26|2jn*Wk-2jNyh{jHCW%ytolVEK@9YAsJE&t20BEL*kBt0;h z{#n%Iy~i^SO4nRElg|Ea#!$#1E3KzIc)Re|#I%U?=yS1#NKwoO+w!i(sBm0<&@eBG zw;=%=U+WFG;iV_wpxzA_1)H_q)XTB3cCteWAz6EM_v)%_T#FSAQ8tW2?J`S}NZ#$byhH7;1d2r*D(9FMjr@Z02svV%Gd$%Z@qphj!%IIU#EM6Ghd`Spt`&xTw4sb=7#*+-WscV{o)}{ z$#kBnkFqsNhxuTB*ghBQW_52(x|>ly!^d?YAr&D%#i$PtK7^rmhw!csZXVY2T5Q)x zHk$c8)i$>~kv7pLV(3_kn3Q0>PDE)7AUmguUQ5Z@ZmDo89i%g<40X6XnA#6SwoWLZ z&dXz=dCeSwmtS=EfR^mkvp~M%y$>VTHl>_7e1aa0 zxwsM+oKJo2+OiI*Q;ldZWDTzdK+Ul4-OlU2*Ol&+5^wJtAUDtuz0%pG7q2Y9jk0Zp ztgFTsB9)B&X2ga+U2`kPu^nugfQ{z3q+VeT&2sBze+6v4Q?XA4KN(p zJlGZu0$(~bpzq@{4C-pfvSdaE&Qx%`!OZyUH3?&D!`KK^T7}JrOj!hR0ID^Yfn%-> z>quy)0-K@V5PEGEa%G&c34%9w0?UN6B;WI%8E9&lgiIK4%2Y3=$1PfPC2|a3^wi0T z;q#l`R@X)nsu0kc0Vo7Q#0_d+jp>?2-z_Z9(NU!ct1*|fnfUo|R_Z%HfM8{;)S_sg zLqU&|eUYWJm=tgT7vOD>8EWO43&N$Tm{l*@pvK1w|vf(Zq5&UB$jN3B!fWZ7H zgY~Oo39miKTgddA{bA3UN8hbwBG-g=O$=MJSY%{z-D(ugZui=>#<4o$VvDhwO4+fa zF-h27bXiER%Y%z}g;TlNUpIqH^WL!q1JxyXg;xgHQ-Sm2en?@PN5B6yN_xRr$66+F zkLvIxdS`X{$vRR%G`)Nt4pus{W9{o_T%~;!F>FaEUG?_oggP&1K{l%lV!dx~C@+RE zeY;FpQck3m|6xgGW)4~|+Tr*BY6pc=IuiZ`pQHV~n779o1$eyh>q zWt{<_m=y$=_Wbhu-fREPh4>~uujM1Ing>3`TnxU#4+M*3;NLaEcN<=9aoruOJ00it zkJX}}inpaCsqj4yLpOgHsRzWfTb19{300iddaE`Y$SUwLM+^35>odFvV#=986kBM8*eCy+CQf< zlkJrvlY#V;c9$D(U@|m?v-Tr{KMtU1Uv~Mdp_7*}mcDMPyOPMA;g;t96jiIuKjfTv zNrwZxH)Hs2I+UD_nC1oxyQOc{ybqK+!DC&wGdq=)DeKZv3k0YYs4+?1!VH?@-oc&A z6#k6}w;s7E1ibx04X67hNFerAC`pa^%MJhr12GEgh*;&LlsYZqX&G0<_lQL9wKJK9 zNxJ)fEAJF%dMi5ltQeI${KcRWij6=J2AK6R%%fTn9Il7|`|l)EUkyL75ZhqezH7q3 zT~)cac}9Ceir)+^t!P=y&CwQAooO>kE$x)j){FbcN7ryy9r}HNu?l1|7171ZjZLi_ zI{9iFcRuK7aBhzBN6T!eG3)6lHBYf)!13)tGU>D{O{d)}<&=bcgQ$viaNwzwB6d-> zI_HIsVr|t+)_R#-5;@iNhcXtvBguTk@jx%$f#GWdfJnNGNzNoowikjN%PNL)E!=8* zh2o5dFOH`)cGk=n54A=6;Q}*p)?~u;GwQGojJ7qxX!dFOD1uN@!g(gwBS@otiUSj{ zypb3sf>PEInO(^OIBJ!t%(#3b&A!qm|B|hDZ$9qr8!M&n>|z#WpL0E_>xe6~wXh#z z+YD)6^V<&FXx`(vF$!8J&hEDzt$6#wNHBlhFsuIS2rKIaR_8-_BSEV|H(jxsijacr zOqgR9rGj2vX=;tpWZ8|$^gggL>OKi;)=vP}&3B+PG`nr`wiDK{gt{$FZtE9Yf0kHc z(TX#cyZCNv0NpAw6-Ol4++XexV7TB`UwLZ<=9fq4&>5knPOsAi71Vk{___mc0~;=VI1x`6W#5^McGY>N>Hmru#K30B_wP(8u?B zAGL8v*bEc+UoIdD2d6MNQBJ_Aj+xaAI$m6qPiFc%UwnH)_uWsQA8b{FVM&k8dxk47 zowVmVd0f-rQiA56Q?>Yu+|NB9g}jT^{O8dn2QJMkZ_UqDJ!Gr;#Wr|3?eWOtm;XM! zc%z_?ISp~7^!uTw)2ogc%_t0cuT@@Hn2e@5qWxDgrkCJ>14KJE$Oq<8@*!Bl?}LdL z%we(PU>arGOg|uHsZjftaM#Lei(it~MMX^jrKp&>y+q(!5ne8-EV9V^$kag4{(9|% zq=Sq+ugbN&kcEU9?dZb=Ze$ueuluyRhZ!=^m`C%YR>xZOPY`-z@_e6Pvsuu3%_^pB&-a;T9~Mh_=wufpdl2S~u1 zbA#`GcwE17AJ7?arBpCIuDyZ#y5q9+ee6tk6T8d{IhfJ;jNqeizab0p5}+C)vWQ^e z9x|VQ*4)PB7=8Vx6826n(gsAiLAT7|NL2SaoOtof$r3iu$q6_9~CV(LUJf4;_@o^$ml z@B725T7oka8_Yh1NAq2epLgmye=I&VJg)PM^qw@iJov3g>M7p!F4rUpbZ}{&l9-9s zY4y@)izyBW*E69&LSB}wjNzAdI|&7^b5xT1P_jKs-~H*4=LcVjO7)L&4czj&Bo z(o@zv9<@4A0~TNK8>K0f6yNB5&#uoe=W4bTnL*vO#O3ig*ZulHJlvTFG@(x5h!K=kP3&Qx?%AsYsk1dd<)DoZL%SvB1 zdpV5s_Syulq$-G))!Hk!Ct1v=--(=zFCLLo->fDd0=ENV213FNQ>i*=v%PQo?2cEt z^Y+Sh#sT&kia8^o;(-gzQe$qia83!N3x6y5LVyx1VpVoE`toCy@l;w!n@#A`FN19* z$-gS3!P_5vn1VZg)L>6& zg+;K8&VF7X{2?jrFNtu9HJ-U&UZi>3v$Yv5Cbn3aUq+jD7 z0<|*~4<&j#Fyp>kg>&jK3Yfu*q@+M^ym0!{*k_RYlTpv9Wnyxj9bcA3hZlKy(c5Q& z^908Wl-0oRGXkU8af(z#1PrXlaR)6;v+;a*nLx>Wl}MA3##_LY4zkIAkg)3VQ# z#~#ni*Vjn89`g(wIG)`?XvDuiJby#uWcK1);2N#7LdAbj<2eav~T}A{Cxm zc)%l+>QtE-c;DN-)Jd6L&r)0KQ|s;4c`q57nBq67tyl3nUDutOO)7Wl>NaJ!qAl93;d9W3bo-L zn;%m#fD+@*y^6^X-NJmgHxeBqG*?nxo$M>)=RF)hWu>-01F=iUdxuA+Dr6+j+fHn% zVnXi<@Fzavl}k=cZGSs>Ip4k)oE*>VP$DllZ>(F|8s3h?uNuUmQ}wL zqf=jslvpvXdVWZ+CV6T61ch0OV_la>Tv-bl9USMCR>^{*%AaAXJA;+KLZ(Y%K;Yf_W76;eds2G@I>Xq!LZ;ia z{s%(L-QAthpNPrwY7yp8*imPa`Uy;W88aZTU39hna8n`6k6?OCPCKSx|88#Qhpro@ z=Fe3WqZZd{a~pYnwWZ0rsNh5=(VBo@*G_nc&wu*SzGS^{O>2ySMR&Sv%|@e}=Y5gR z?uh!=MBTao;)~Xl0*Z-c@$JShO6OAAr+cTzc?~RUK#?n7A$v;7N}=~|C|-x9{(1W# znN82PMLB&Q;|A{cPHmv{*K-pz+yp6a@aUvp;I`R&g}ham+tt3Klly&5D>35^17a^s zKS3e-S1%G3T)Jlgo1Y}@DAkTs^u|UJ=F90`Y&14L9uF}t(FIpQVw_=i%NA3&jool% z9pq~cC41Wp>bL!JC~Ky&gT`{}chL%k);d;6%%f+k&?~8Nm+yM}n4FGh&u;CRcDQ?b z{;Ru`c~OI_!}j{KMvk?L)MlCUQUeYXeRo?O9YL;q8pnzFw>g6lmKr$HHr`f7I^~y) z<&0I)Cjv4c>UB1TF^6zPqBd(CAC3C9uG#5i??9Z_)!Mc{&-EhxDbcXH znuZ2p=BCS{Ui4oms}H9T8{JXVv?3^Ws^(D%Pb8rS{SW4{@!oWfHb{AZaieW*)vS7b zY{`aL4XU0}ATC`*?k{_@vfs5W51yYM(9>tmUMx6xriIii%nVNSG_2J+Sr_uG1zZZ- zm_^ON2sna%0I=`j{848i+bR;N;@Z*tsZ@jKym6bS1iU7G3iGFT+b?faOV@wXgo|gM zBJFYb^mBe4dVlDhYkOTECEF~Qcma%}*We*{u=V-i=eTd&SVDQT&&vh&vxGx|os)xp zSU0Dj=atM`T82hV<*V)c?7NU^+%X4JPp$Xeqm6m$XT03L`-HH|`wCf|!y}!7?eFAC zw2#$?L}?2Po=}yu%CV8>QPpd$x0EWp=s3xaa&Pp|Y8V;tAcf+oZgp$^MYkSwcc{;0yB z1rtRqi+rnM<2il4&n!hn&NK`Sje$2%hwPX|JH4;R8n44P+j!-XAD$Y$-unnW(8fjn z`tq7XK+po8aa}N1&!SdYPUX}3$M&9tKb;YS=N(m7hBJDS1?h-ip-0YSo?MfHgg8kBC}20uOC2xtoAI!$^?vrU6>c|8RYxjm-I!+k zsjNGLshBv*AevKJOIE{yURM22ViqXDyC z5M*9Hz2^%N679fnf<06aQr&q!JBTr@S4}>5UE(HBcj+x9VIjGyEAW3wYJ`hj*W}yW zk8PE=9(d^+Mqf2S(NWB^-vNh?iDgH7fC1yj;qvN=MJ6;qt0BR8<#gk@k7&N6#+?^u z*Q26NWC6{{A?w!UvcnEU|Rq6;b_+fhhOzN+mj+n z5Bzq!^o@1hmilATY~zJE;+aE~o=wUc>q?bGh+o{%&($rmVz8^-XR@B64P`^T7Bz?v zC>a@hdJtUb!a^=BEGpc0+1gw`U^OGspX@3PdLnkr|M*>|)Yq*cHZDt1y#6Vf*Ky9$SCmH+7us!o|FEw#Hf9#+0}z5Xm35aj2?>Yu6W+^ z@sc^X9h0KhyQ>=7)9%=~C+W{z$D7*iwZ$m8Gu4>Xz4t7qFJZ$R?7up}QXKVs2OH1z z`DgtZ=It-fV)@3q#548qn!G!0yd4+vW<7^UAggyilfKGrf8(^T%tLzLiF1OX>G!-y z|2_~zF&R_h;c*T!ll`S#>T%tx2jTiJWf z=y!kYG=%wE4N_XUCPQY0MFDWg@qRLZm%;P~P#c~?kt;s|N{+7G@PJ|)ogZS4{5 zghGFXmA22(DwJT4JNF(vrhHBK^%|6{XR)Cy-#XvN9^O6Lz1jB)#I|;0Hk}e2aKk%1 zFbRDf-Mh0I5tJl6*PJ8s3K6H?Fi;xi!&40Gstw!rE9G6&wsG}2XEL2crt7%Jbj;qo zsM@i&zSruw?PR|imGG1J;X&Y!>&u=$q~XB}Z#6m@tecp;+}QjxSAsgi&w?-XN~Kz4 zv|&93j7IYY8Q<}E?Do{}~Q{%Z-+?cYL#JAL4UbPTdGreiW{T z{P;j`0HHQ?jl00SO2}Cc_|y4#^lVrjH;zqMlrQckOj%I!&N2y%yc`&l)}p>Xtu(nK zg&9BitPFE;Nrww|-+dlD5)C^XU2~FzdY+Y2XTSbnP6@|!tcV0ypJ~Uh_@Fw+)A&Gv ze^f#<4UUD|Ze*-}gYCCw@yf@6)M?d1FDN$>IbSlJpF6Ky@s{z>4ZGIR568dT^$KeK zv+E!#!5or|N!yM4R?~c%eUqR}RR=9u)zMZ-@2$UL489f>C;QJTFk_Q9UfF+pH8^nN zc}(Qgf@@zld1YlPZNjD!J6L0|Df`u6aOy~aXj}YD_SXL)>%703?6zqA*+8jc0U}LA zK?Ny^^b!>X6$BA!La2eLbV3hBKdRC@k=~^@r57QzKp;vlp@a^h_mBkc>pAy~`@{VM z9D}j*y7yYooO3N!ho=n`JE1{t;XYG6rBKEMZmEg_i&5+b07KBSA{$=dY2Mde_zP6N zhgb9X3%`M9_4io(unh`GYeAQttF9<}i3vvSh-$|H$VU zN_nNU$#uHlxOwe_HgZ8IbWpk0bv^?{@A_$cY07md2U@E@KAg1oS&2zIUS3%;cE?^H z(X=0DI#+A4(lB)Vz^=LTq<%!UG~X(L*17C9I7V$1E+$R~ko2856_EqBCF70ZsS0H~ zOt0@qX-3iokA>&snc&o^6^E1|h1220K^FVI?w4L6t} zcuN`lna7IlS23#d7f#@hnuCpLpTkXl7P{*KlMz!nH|e9Ec6Jct);9wT0@_Sw{%8aBj_{I$o5*%`Fy7Qo z0(5~irGHu+a*85XBnV8qyn4mgXeFpu8aosm{DpO|U-O^OMkb94roaAaqZf*K>S^mF zD_T`N#{Sy!7VV`3a_0wR;hU|6+m^J=dyDK=Z4KX*wP{{+=j@o6o+y67o3M3<`+TX6 zEnXriff!up3EP?3A51DzyE1f+pIHRDwjf?2o4$Us+U?V8;`>Sy7<;gRDyPgJ*-Lw}c zjlX}?WznB5CUC**ao))d?Z;R|>PMw2?V*~(e1yiI&F|iSEGnnFJYT>b;HPLa-Ok$i zbvyE=aii+|8{LMK&9{!6W9sZo^Ch1!H`PM^q3GssNth>+6AhV&Z!T8e#8~kH|Mk6R z6y~(=V?0@coj&$C$#%y0ffbVJ5DO3^-SBTycQgc1uu7`%C#|5xK<-Bu4YP>d_0 zWR#C@iyfLS!cT`5LaEf`3x4z@gj40*pk}fcsn^%%ly>+tNY{GuX3t|=N1H`1siz)$ z#*LoLAYiDtPHFVMgU<#Z4cpt!oc_J(y-zWDywJYkpn&U`m0Nrv7#qVP`~Fa?et#lA zcDmqVnK7iKhQ zpQc>qux}#k>IPgj{;?Ghz-W8~*btOlsiVp)vJTDX4tXRC4AU+b&CY9UdL5u;?+i5v zg^Y>+tCqG6-XS2;pc_XP=2KQM@01%}=8xwc?#Zq;+JqCv#$4L*Crfo)rC&Wp_y|@> z1mrDIr9`_xx>8jY?8ad89`@^F{PhovA+~gF(74FHjypP=pU#wLxnKgTCm{e*9ZaK= zmfeNMYDp`emyt*En+-kRb*w&N%QK48<#;S7SYwIoCt`@x>y?A*o~j$om*acRRx_&g zB@-qee0XZA_DpX#bb?RLbM3{>)fAFYGHq^J-E*g91^?gy6|AS@;yuTU;!|+kvHPiJ zR}Wtd!P+Jrmj}HXRoYn_s#hPkPRM_yCQV||G|r|-T4;gW)S*2Tha=kJ2Bm zxi4$nL<-}gnqkXqHs@x!INr|+(Uhd;=3C_AybZ>}9o_t#d}sjI>l9W(+HTGFpg z`tvXHx`G+Ov9lHmhd9Dj4LK>NcQ0J^`zW(Z45-V$5s`wBRZv=@r+cY--C=EC$~z!f6E?B{DR1dBa~N}2 zm^=%wTurXvL3LRF^Ksv<-zj>MjrVvsr=w`zw$&9QbhU<*CiSCT(fHlK z(vVK+16Z8`4gW@Pd^s|~J7Er=u5x~GBf_e_k8S4BU)-09ZDqDrVMkcO!B~fyWTxIs zi@OL{vk&N~4Ru*L`|@Rd&k>yw=Ht?k1MPul>s@}DAdfPa#G?lV1s#`yBD4+_kD&jS!#A#{gNhUx`_!_qPB^dY=xmtJU2U*n^mAIzy0=bsZIQT z0-AFgGlZTyBF=+F>sa*>-@UPZK75y&Sw)qeRQt((ou3fTqx*ax`(KjMmY>%;=5_EZ z(|0D5*Q=$Q4#qz!Mntpm*TEoevSgyLp46o8^x!FZNOGEdeAp*TqQ-GtfN*aY61vMk@B~@Q%RE&jWAD?OCfZNV3V!vq z<;Wi2e>7-hW7z5gYjlW+c6xW})!D&wO?xuIK#;5U=g$XYa-kkQT<<0Zb$}t`iA~q8 z*EBXNF20p)@9a(d?(ts3Z<&v<=tt2cux|4g%7x6CmtG1O(+`hIPA+i~TC3E85P_*V;#w$^1}bO_v;`Im`M}`>zSYW9P%k>|z>});n0mcRHPd=w zPq-PiGRhbXp*J^X%y5a}@H8FR)rsa=y zn|aWNmnT#4P&qv%&mlLl=F)q1l?9|Y)l;QiX5dy#dZ11(dfm#y>0-{qK$E->hLwR^ zps#G^>*b2cY3O8&>yS*8ZdRzw>KjfeNcU^`{a7>7&6k3hgZXyBbNj@b%vx}#FQ#oU zPEUma5w(b`ia`cSNp9Zy!ISl>ecplw<*}%o>m6`N!P()s&R6UgF1+b{i%?nwh2G>6 z3uc>yH`cIm_g{~JMTc=oO}UbIg2P$8X3jwyXM_CcS^FisY7<^z?sf8he|&vCKATZg zAxK$#=&BD;P~0+^$OzI5oSK;Z$~N-{6&h-^-n_3%qLLYh3gb&edCH$Rep`$zNeqD$ zeK3a5qB_OMeU_bk-rfCodd!WnqV-I#@VSD9F%}p!4y{90*A&rOvZyFnaKFkF!^ZV7 z+hO17I#eE|F>k*sU&9}5t7 zPT&s?$-XByfUk+uYrr%ka%A}cOt zrk!j@tk+oFYfk?~^qmTFGFofcO$T-y^muj%`3doPZn=7A9b5*+MV+|zzivfKEQ|uW z)6#lP@8KoN#zN?|yH?*a3Q|I>eh>Huc~tR2&lTqT8wj*64pzT^2I%SYPMKcO{l(qV zJaPG4p*B?nu3(IEIIlzGQ+luD1D0yYjHNF7fM~3!hHG&eTSgvj)&%;gVe7#a*n`~@ zFKn&J(S{2v&Uh!VT&;iXc$^Sq*GMfi0k%WO!F2o%l-|4T|5l?^ppk|O%_2il%Y{R} z>kWsG1x{)5j{;0wlYD5^eY90EJMS%Qt(tDrwr<_R)X6ZHa01Tz;E!P`br{j?vcI=@ zq#9TEZV6xuj46O(E~PELvKQQ*_f?l;pf07{OVUQu0I z-SV(kT@viMepjH*CqC~j-E8Wm*?vh*{5~AqGi<5+T#&@2K?um`g!ESI{d;K2^q1}A z9{Q(m9&*;1x*JT{{+l3+r!n0u8R^&yB{I!^tkB0#;FFi8l zZn+`6qJ3mEI>Y!SqKhG-DyDotaJ1{j{x%u=iw@F>E zvv(;rT+`vOzq>xZOB?$Npx$VlY-*>GWx5%DiuwHrc+uFNHm{v_azv2bby8LRrYXCh z-8CSZ+}veI-UNtJGGd8G%F<~AbTDqM8F*x@Q5faq=%c|?Fz9Auqd#2{zI@CnpsFHQ z{}GaeWWJAoKe&R8+`v&Xmko~a834^{2BnX1^#H-$aZ6IcH7s)E1hG6Mo%FN29{+-`N zJgm-$eZMxcHIY>E&3)!%@CMmhynzBSZ!4*$lB=P|V~4KyeIkX*>q8e0Wz#4GY8Qv= zL2Vkb6^dRm>(=9^$pW{p(t-bX*7RrFG0|@U zv)zy8BT{7CpRdtp;=N{Hd~%j_UVOUr4#BcCpA(YM*$~~jd#}B+KvA&E+HZ7Smm468 z7grFzL`aYZ8rRF9C!0-iBCe*wy?JM2wOe(b_V8_X42XW za(9exp+7Z+W`qMphf|CyxP(axVi+^UqpRM(ew|D=1A)IIQgLqhueVn?TJ2vC$FU+r zenI5?=cHu;1{pxwCzYYC=$bd+GU{M%QK7t+b&1yC4U&{52k>N^A6{c6~M%)XiN#h?uW zS^U1#Yq(6P?d)pc|5A4RU7Ng~_p*i#vTHy}HZG+Hd!&ODwCclY#=wMk27NPaPSvx%~C z?oiWjibdi;FkErt`+(AR`5^IyqGemTLkzIf$PgFeQNLx#zmhE4lpyhYJ*vwzmG;h0 zht?VBN);czB)<92(=_H)l%hUk-D1_Wf>{SN7YqvW7b>BU9d9K0kzT~}~+=Uc% z_aW{qlzz(h0L4Omrw~GXu9u%Lpg29BUY6SVZKl_gE!nkMK_m*b;PZ?yt76^0m*u?50+I|*CajZWJ_h~iGf)Cu@>@b zFg;<6LZ}&2fs&^G^p)uTy$CMo0V&7%E7f=z;q`=@r_po2ZY^(mqN!q*+7Z!RR3zC{$v!?ASC3=aR@v!?&k@Npx@g(_3JsI zeE#4ozdn~247Gg!?V%s&B^u(g;5S&?lTmub-hWNfZ$z(LeRJW^RzgYB<5Gm%wNM!i z%snq-UJTyV%?ZlIqBOG>hHA*KpCKE40dzeQ%gQh9K&QC{p!?ECY=E!%EsO5~C1Ub2 z3rWOFQb39Dr=1}d3{G6CaB%a_a3x~oT2Y5(AQsH_Qk#7eQw-KJ<85FMcy}l9LwMb^ zfI_XR+s1ut-Sv&WH_vqn32J&=`5H;j*aGy6S3PcH;B?^Cf0>e^@WwLePUs6PVQcHpQ2^ z%g62h`-Jc47ya^>`#TS(%yjAul+U>C_Ueb=+oC52&pNp&{3~hwvR#X(CoR&f-<%)K zUjp7aMf(y%F&IoPI%AFe8y4hsNI&hhwvunsbVT)$m%Iz(J$JJVda(j?(PtLh+1`-Y zYLXf~-LvnSw%AoB=z8(=6*|sb&?Nx5v9x1+%K(3wu70K3*L}0`&|G7;h1F*(LC;vp z>qy+ZM^*rOhnVf`>pi4Nf9;gPMV;V0SNt)jGl#6#aN6cwN?woi^_>aVO!e?w=6nPh zv6&YLPrb5hZfr8qI#dar9k(cdXJ5nA-8H}0xn4!t+BDh;%Ue`G-M9Dg>A%-`SUj!4 zCs10Gj&2~|=8?1P9~v>*o=fxgO|q?e?0l{2(}J4madM=luzMn+ylbm$`@H{QJ7AjI zj!9FZh1c7AQ?dCYryJ5Hl#T#Z9`E^ZX8F~9@x*qF>e})8rVni@-*?h-#4I>uc(`h5 zsdveB0W&K-+*H01<{}}aUZv)^vqLA~J}=diBtN%46c|(<~%tMS^hF=7Tb;MOn#@P;pLLguZ>hx zSct+9fb~!V%+<>@M$P7HEE8s(>-dvagEU|gQ~U#iCexEl4SKt_DWm8y z^@~v2+#EQuQMceW zG96vCH(cu5$Ry9lMa;y&G<>-RK2sTcuv zTO0|O-*DK30xMTj=}RcRVWkZf{oh`^;Zv@OJOrYZSrM{3iL88MrM^%+=v+*2lz^YL zSd*m!rdhJS*tXg$-@rL|6lPxGW~4hk;~;}{avNFT?TrJvpsJ0TgBUi0CcE8I{d0Pm zsc9I9qS?I@@f0mqON2A#SfJTOx{asb7LBfuzAIqgs-1Deub1FYg{tzPI%EjwZ zHK$2+*s<3cC@lPDY;8Q*&?_~uHt3tDW#L*{ND6r~JJmcr9X(~L85BJ3C6&6(7Dc$l z+t~SietHGrB|^qa_F9{Gcr5e?8yiq(`{9;}MXVF=CKyh~rI>i?c3I>%$}Hws=(%f7 z+s++wRrUPt8i^4J;=CtpeZHfVecr|zE)#mC>Qmd#+b($iaA=A#p0j8-Y-HMNRyBg7 zStW`C`;ppOnwmg0-0ANhDjX?-RRVeUDorWxjx~w2`z{U_1V4PW}p4%~~%W9%i<;e{ZX1tmzG#3=hMuI#E*SSY)VM*sHAL z`A18`|6>7S6|eP#hG-ul)f+-(@2%!#Z~75YC7paLTyIa&v4;t~|qx z-dW5Cwf;(d(j#&L{4L}0q;XKy`#{Xy4?rwC?7+k*ukjy6b;6;?>FIVT7-!VV(IaB+}`#`vXv5VNwh^TNH$K znHaJ+f!g5}J2qrpafw=F%1dJY`8$2Tx>4dm5Qv-1-_n=s0Ky%Z_QF@EG7zTAPdtAO#Be|nwlKvA@~=kHZZYb zD508~R==!Xhxdy34LsK?ojtqYREySHe7EhOp`oZ8xjunOXe zj_hC&#uM&52s5jGKGk=}+4>vRZ}a4~#26}+%kKeicgsaYw&%O>I<@A*0WSO6+`78^ zC&|izEWB@yuhQQ)M!D?Up9s-nuC*NC_3yB7jzY;Cr}b8~5{I=O*zhZdL-&Opn>)sS z?k|P9A%ZrUQnfC7*Adua*OH8o`^+ZfV-BsCq1=rqDuT6s`)ChzI1SZ#o3Gy}16a!0 z>es(fLr%BG3GQ2;KXg3*GBKh*F)YL4|+V=J-zLkjLg(1~MSeFL%RZ&3|7~ zuaPh7H|X`x$6mi~w>lnoPa0q0Qg}nzbDm)Qw=5K9O+#8u>SN>UUtW)?=y7Iob4CF{ z#a9Jo(^)KS!+xT7?1zkoA&+No+-`h$E78+FE!EgvT>~{~`lo84Org;DYmgn56-KEBfc~}1YsT2CB9BZ>1Z*<4lxA)aY z_^RVG86_M@cTg(kdSQp{Uj4vOpJJ9@pFvLJQ{sDUS$5oM{q&T={^y|b9CJXWZ6*($ z4%aJi`%Jwl&sblF5~zsCI6v$~1w|tUC(R!AIN5d%ns0-I62!;BB>vKLJ$k ztm3@zR$VX-um6G)rwB@tvOV4xD;11m?NyhEZE9NR?d0`7ds_0m)be@h`>#X6M{Y`S z4wI77N~ct>r7=F%YBy)E?Ol^_>cgB=CP~XkhH6BRCYufOV$GuWbz z8Ctun?7&XWNBTAD%Y|{KzueTvlevc_ZpxYIva4|jQ8d;Ee<`St#KX5qA2iXLdv`}N z4*cGXw0PBF|N9_ptG9h=H-H^RY){OOhb&nc6khX8y>P1oA2sP)V@`8l`~@P@Z|YwTCGAqYqX^Q`)x zJISv$y1p`XAAbNpZI)M23G2OFZ?(|yRFdHzsPB>?RG&I~#pdL_t!@1>wbaeIL7;^D zav@8r(RTb7VP9IaeF^I7s#2K|^rFTH*VCYUj9f<^>1Qu{3KPTj-_*xWPHCz2J?a_v z?I)q#OHZZsBC@NL<#vs)KVLxVpbVv=(@^Ay68$FUfI7Le&WfyHhPG_<@`#bQx88{0 z-qVJ|4V200j_)&GYLh;S9{ED^pF2t3n+?07o_ABxG=fWW?U_%Kx8|Rh?=LR?owc-G zzj-jq7|ihD$b<+OkwE5TW?GrbB@`NW#^Z-DyOykacgJTy0%D} zju!@iDee8}Q_i%WC9;jBcxzRkVkebrvFL9xd#aV;iohw})aK_+lJ}ASj!~jpxqqD< z+3Ub*Y&B>@=NwdvanekND+g`sluv01zv>SD{p!FH4&hdz%d_Xz7*=X||FmM>yc=4` zq@>`czZnwi)E+Q6*v(bNQdM<3Ak1QB@6o{!)$Zt(F&J{28&$qja zQ&d?l12#ZS#&|r}v<_M;`)YK}*O3flG=!(eYRY*G?`Jn-u?gO%h(m%mpA?e1*4gak zzMAD!dgeX^YJV{L```fYvty0wcXgtE{2a1<^J5a31U;F&KAHDU>sQxJIdi{f8fqz< zjR|W#BJVC!I?H-O_DNIJ@q{MwYJpw`!l=V`*n_dH^@13|XTszh{zzsl>zx0GK#XBg zpH2fHDb%LbI~)w)vE;g&Ux|0YNd4X&sonHGo?JZ^8}d<_u+J`F1G(fRdEx0#q$Vw| zE8zjmae!GmYvK>tcu7x`x>$+t4O3|1(4M-JNTx&yVM0RUy(nDM>rp91?P3pVmqR!V z@s!`mb&u52puR-CroAxfX)i`YaNCd6iUx6{wirHh^a5yIeHw!|h2r2e+z2&{+QiV@l3-^PY7J)@I=VL6GCNU12@qJ%PAU3&p z$|rGTB3fa+MHR0=L-r&zhxYRQbv>twr5`j?y#Sf<0C;lUA(I8L`o(=s-&scArhSc3 zJmpu9;V*|Ad}_nblUF6Kq(rBFy3SJeLATGykQd>;ZcKoq>Sob>s8o$x1yPE_p?7=) zPi>R+J(=S%4-^{chus&7ec20@h%aHFav6j zUc$@+cI)9H#ib&#K3|{Do}WE)@|HF(qtXs9t>DZ&VJ+<8g}&bFVa<)8odSc%t|95J zmBSOf%kI*HM~AcW)6|oz5%^GFt4?kn7@bN?U#ufIAG^qXARDw-IWBiC?N~FoQ{C#&Ly+vkI+mM*>qn_whr*<&O$|G94EmL z=s778?n@u`d~cY=-cuWKo0O}QL|}SHNx%J7E8JY8Hx3CpKtB3pk{~J<@pGDPdz4>s zBFOJy(BeZ*u{2^ujqbf>o)(|@ zTbu~$`VM3W2yKR5SyoC@#H4CA4|+0$?eu-pcd@m% zi*^<|?Y#t5LUz;^>NW=Qh9T0>yW25%FQ1KFr=_!S4h&q>n`k9v1mw_82xtym3WRlB z(T_e6$0*BhRD=7S)iXP~`=u~|mxn!s59F&N+4~!3!>$TcA$u`uzT4}i-qnaS12y){ z>XVbIN~P_9_>mFppEI;I%|vNyT=z z+M3fi#%6;l3mNREMpAgQ_i-q4>Z5HA{=^@2&~zOGByqhq29{1Xhej-rDixi3&3Z5) zvAXVrBN^~uQ^pQ&?j|u_I1|5r9<*&!D}A{-0V~ew6PR%3$VkLYmlq*pzdorPD#KF3 z_p84BzYqFrx3Ze4bD3XhI!6Xawt)&NOc1_-fVZCvt|@yb^f$~_h;*HAdZlJ7QM=vd= zdXB3C*mm2`l{eU~4QT6=4`u|ar(N~>o8eC#yj?DhtQO^^g2Wy2%oO*Qetl@DTm5NW z(s0s*;(IIbuY{F@@kXD>VJDO@HC$yjdxj$Ua3eT1{O^*aKdQXVI|(C2KDI6@0ruE2 zr-5AGSF|O}3(#$^K?zlL@^3Q=FeXofM#)gk^4R|-Z+|+$JTe(Op2->uV;F4;9_4_dY;KQODv+#o9zVPuq_!}Cz)TaU8gc6YZ+kLQ# zlD7vm`$RuH_1}@y1Fn3iThx`u(EV6`% z*sxk2jbS4c_Kvbx6`KH?8_PGZU;f@5o3$gO8JNJbD+d=Dwo8GvX=D$^T-t6F{YJ_+ z5y64+g;bm(j&tnJgDupi%ajXc(rxmjTEarrd+kTe0n~K*&FL~FB*fVBIDgFTWMQ+n zFo{3t%HFP$PcC^|6>H~l%ee1+*W?Yi)oQ?1dRIESxco24+8)KxZ_t*G z_lujNuur%f2VXKqlEKol2VR~W$#3PWNzJj(BMvRu7hOtA>kn4BqJ6PnY0914QG3t5 zyU>Xdv|j^F+Rzz#`0JCnIIk|a{3E;rU}a~ z0F&BPPgVhcK-3PdXo=T*{tN2VhY#lRDgO^YItt^)3DVbm0R+Dymvl+zRkUUpVF$hNXq3RKFUe~`Vf*)V61wTZcZXZ_?;D5Lbi(x*&( zZpy&8WN8}tOQojb`h1p>*L+J1OV>#U@YX7BMbO(Ht#2-P03MjN(A-=dXfst0+dK!| zA>LEvjyE!K9W_J6a&9(KrWnNE7N?cwvsFhB=&x^rsrK>#73D#Fm9AVkwK7@ zhX5={2~`&au_VM0%N*>=5--RKg^0p^G)T>BOx*;ZDf-yjmj7ONT?PaUu}DP0^?VFd zP$f8G(Huw=Te@>jEqOkwO#*e9JCuG#LV8R&aZi^FjqI#gLU25N*kmx?y!>pKxk(_# z03F6z!5U2Yf{3kGyMZ~g`OH=LfoATzGWx`|^OvA`!;R4)p3OdC^cr%ed&`p~x9_E- z3Ag(B)75BS7wm!R5-MdKOIw~lm6MC+>Jip^*w`=|XQ`%lTlZ+aDolZDq$%yOHS;)z zHSHle(hsn2tZ5Gb2K$NIr_HvG>y1EH32%vMNQIl7t`-)iB}-U$SU{$YPUG!PoxS1* zOm321v*W(sSMGUK` zIUMmy5BJ$BYY4DW&MA@FhNw3k7b{$X3*U{me)uq6hb<^L9CO?B6VfDDw;JzHj0_DA z-o6kO`}EbTGPgq16N39?wqOTSm5N+%%l2+S;(hRLZx-m$@^>Ak8>gLAnAaJL z2kw31okQPv3)D+Cz!e=k=y7_2d_psX@(FJ8HAG+1o<68sI`qmVC# zU(2^{J5(Dge@eb!7qD42cfcpRT{Ee=8Gmh5gU01H{vofVq-1eX5{Ly$6&vkGpm>3X zG&=N;891eIU#*r% zV||GP`efIpX_iuFkY?w)*}IyW83IO3CHDZ6AH7ogTj(QCF#rqf^Rw%UKY2-~t{?Sxs^mM`u>il-uZ zi?*EP=clg|pUkYj;0p=btm|piKK&YeH2)zjNqW=6P3#`+;|hURcUrCElgQk&XmmSR z<9=HB#S(=^=aLVWJLZ62W-98E!|}U+2cYXwktb>LH|u=k%BFHMIP%{fPzNP2LZQVr z{{Y!CLz89Z^aUix1C)k_xbya-*oT>dB(N+^%Ln#xFYyTdFuRBES)+5cm-`E(%uCz! z)3Pop9@)D3&fB=)nLS2yUD>@VjYGTlW{!AoZOs&V;pX(cmzp=jU;BLTx|_0J!YiN_ zzvm*Xaj5-;7ppF;q^l&N>?Zt;Y@Hnbuw12|yI*?|#NAb(*VYJbP6c!5WSTJI`?^dw z93*lIALn5D&oPC7Jg}2ib=Ij$de}JL_K!kID~|1LHQ;6j!)lpg2P@s0*+@IclR9V~ z&y&P?XQ{Z(Wu~N|2GT$+Dl{vvsPNrFWXXNmE(K+TD8`Z{6Ej3~z@jg3#meIZocWMJ z&-VXiV_AWFTSM|~mqb5r>wp;&v0bK5m+5*6H1rm8SxB6hC*jMcUHx|oQ`jt=BN_BM z;c)gr1F6pQLPHvdpT3H{3On1XU>F3b3^sxTXZ#c;V}Wc_Ndc@T_*2P!zU)^1LnEqO zzO77L+JE>Ld*@{)C@GVL)YW(`_{PCXW`CE&j|o#({mIcY5N!$!Hh znS|HDZI7W`+I&Z&)P{t!c_Q`zTH)NH=Rx|iAE+s?u&!vPI z{u1F-1|bsMFv2_vTi|CTFl4x3wU7{}$ec%iD|w$&I=sBH7!ou@wS(aQ)M5x(7>bS- z1_xod%*j?3f$h1tS{8oh&#OR|a1mIA=l#xNum1ATyLS*4%^if6FP9t@AWeD^EX4W5 zm5XsK)jMi<2YueMqpoxMGdA3;0~Ws{z8suwtk+z zZh&U}=Qo@owZ0zltRQWE2+WF2whT}%{`ikwvDxzl2%Q^Encn-(eXTFW5}aMLXKu?g z%y4H-N?Jy1r*)jumB^kz%NyZvX7O1Vk&$kZ}PMXgAFN$LPJ74*`sd`wLjYbZ{vpx|z8iO&8+|G&d<t53F!=+5>T zANh2r;^sg&tKT14S1N+f|Hr#jAdmtN@c6eo`EIg$8$qU{pP$pec8}|gn+%i@5X7}q z=yr`%;`{D0a-?*A(gn-50!+f+ss`7CNW{fO_lTI_YtP+wu|gi%U9CCQ(2>EIY2CsV zk!SQmG_s`UZz-2h7cOEEwZ}VU0Fi(|^x@%`vzQj?I8Y;akszWOXVF1%O@fvnGG@Op z7gvD};N)fJ;*i<}g9IU9eo7)&D7Tdq2?0`IYNShN=n9@OQ&CWsxa${smaivYI2GLs z*R4Xwb++ShxOEg`#dwdohRWA>LGGNEWev06)Ngc+I21h$#Nx~sEqHs(>7>zyBD$(d zf?1DBKC_v_#WOjR-_}PE5pW46I!3UtAG$?dS82=_;G;{4k)p5kP%BJ)$~y9v{)q^P z`tWsLbKSELEWv8S41f0@M=d2mhKez#4_o3pGA=B%rF{uCdTOKaGQ zm#AQ(;qE7=|9ts!-$_<|-Gip{e~G<_sL||sL5w9k{JQ|`U?X%l)!f~6sXYnbaP`su zH}YvriM!3^@}i(Xnn$8pxxu~BV?RIktR<4@$mJrEUutk~CKB(y{rBpJ@) zDnZ7s;D+R;VCPIHP&tlgk-a|Le`0OzeucRjhi>r`Z;!OLZ$u>shjWx@=*dIwH>-jhm|C_fx)gxR31_O&5UfomuF0hq;dnF}V-;_G zmHYsvCZmbs|B2)PXR2z$(EbXc6F$|^*tsU4t+54$CJvq*R4r8gpbj{#%e3U_Ot?v0HAP_@oidt`k$ckZz-Wyc%EkU2jJx$1kZ#3{JT%@bLl@h-?g#a~v40o$KG z*7-ig5?sm2Cbu_r{^7asa2fVKa2m)G{PPMdHmAAg8`KCdVjI^rz*^6EJ>gL8%%u1HW_G3cj)h(F8pm(J2NaZ#)BX zI~B*~PZ8p1<%o+VCZ;R{BKNtQj#+_3nRwxis%vwF9VzEqtyCh3BWF$}b{NmlS*}1l z1J}9xUsxTKn?wJ{0{RcXf6S}vGvWhX-EsfE8Gy+QyoW3Ws;mO4xPZyX20u^kHxCvH z_lv}oHP7^-HP50fA2~aFid{+NjmUqU?Q?bv)k@b@OdRJux+NOpD&+r)m zxeG~Z$>ik!k5HgPk52!v2>(|wBwHL~mD;YWfq1)8eos5%m2)R5Nl5{K=2=Wh=-x7y z%g-SDQ#VDpgaKQVwc*?Q7)t@h6d?bBUi?l`Z2f>r9JBG*RPXEgP10`ZTKo}`2)sMM z*Ir?>FeZu2EQIyP^6+d(yjFeJ=}@NzBr81nBy#N_z{D95??7ww{nRLrP|YB2vO@*8 z><;I~kTmpdf!E^e*5(rFhG zek|6i9zxt)E>9LXRNOdRmg*@iD#R#uj5vfYpHcB=k<~^4ez?T?S1DIv;QWt^Z<~G- zhh#1F&eYn~0@wGw%$*Fqlec+zo_n|%XP#DBgBUJ3Zda%039U&S;#;`Gc~ zgtCmZn80^=*=)7V2clba0&1-AjS-Ju9a;lz9%%HLCV7e6PL)t-^(K?0_zoJ)G-nr| z@3)+~pRX!SsJSb@P>sF&e19rCQuf|dGLCz=o>wXX{cNb2JfqeYqd)mN+g42(Ft|v#VCL-Cs2`EXe)y{&8oLlo@7wCb#`3u9#9F(59D}RaT;HC5N_UM3UYyHv7-?yER==|(ni51hl5ZA zSxyg)w7XZbafskQRDo1puj!PLTVo39!DdFTvtIJ%?DNO}dkZp(dx-h%LZ>MBpK)`RB!5e~hWe>MQ3HxC)^(9k+G+LY zkw0)g-mbk_SCR8a4xnL%A8j^-hzzv62-xk~<%qCPtU*K!QQXN{Ce(&!O2BM++ya7n zn(Zm3v$#5RQN@F);;WyKKwBBmO}sQs{M%t%1kV&m79n#Hv9dI3&f0<^DDZnY0hrm6Y1<9HS%8FG?T^(ET|~BAA=%!uA_l_t=>Fx&}H1KB||XWMpT9> z$Ql@lL&#PX3spBY6$J>%-)Pyoofi{9To^W8Gjwja7m1Jg5Lt}FlOBU;QLS}~1|((E z_qdj#E6|%L0a*Mt>?)fA+fo#DwtaRA3j-_-fTd>Q=msE$mIc@#jA~*r))9x-2HOaP z;M+WWY4@SYpR~dO>J!t>$0-^Ge@7@katr{XAtD6nV`ryp0!w z3(Jld8v6Bq3UV8@Y2wf*&cu~#Id{sRV#u#z#FPhQW~Vd9`i04=}4NbuR^Ev zM}GqL4_3NAG&{w#3!JdP%ZHGGv0pt^P+b60<(8_Bm&fnUjhmg}3}!dCQz}xCzR3I9 z|BOKm=4{hv=^&j|cRn{tkuHr*UMb9*(TLrXkQWl$f;_Uug>1uSDvIscneGlZ72vpK^J2x>Tu1p+8L}tc+fSTj1T&fw#B8rD>8Y^7If}HVH6JWN$6_cI=Sr++yVfs zgX!bTO{w#aoufO=*jIt+R1C`tMmRX%!dCF|$&0!y^7q)jZSw?f?;ZFT^RmzNyrfGL zzc-4Urs}N^nT!Wm8^*v7WvQB503%oM3>22dn-_|75Zn+?NOd#3OPq4B%1jJ@IAT86 zX6Yf$O*DJd!T7nY)BJ{iQS3G^KMxGE0?079*G$;uSY#0}>EjHTS`)(`EhY#8(_|vn zo6A2APZD+)l{eDmjV@V1GPK|EhyIu*yA+QGAvg|VpBBY_;{(p)A^{YJ2#Jemak&}Z zFJ^T20cSJE_L_?;aIDRXwC9Yxet?>OFC{4%frDV1!|5lg{v6~TEnW}IaCu8o^>6>c z4%je+t^h;D?aL`jH2W0MGK+Y{(Ek`e#=nIaoZNL{SYl|MGUn$aT3!#a1(KBja!9Ja zsLROF<{~wfxQtXdp4dQwii^m5Is#u_>4^U#LcdtVwzVq90HDADmbTm?1%SO(tA&F5 zbCzNWkz`Aa6*h)M>+kc?6LqPdbWLQ44s?`7YWXs|%e<4OU{n!xG)qsEiR-u&qh^4y z<^Gljzd;lWJbw)9242_)6@6NkF~mhCCa$7r5#c3rB2C`HhPqM7#u^E95giV9ox}kW zz;E{T11YWjA0whPRv&MU0Ayfs*4y&(iI`eJnpr=i0LN+-LtzJ%3_x4Rv)Mz>2gK#6 zwDdd}^5T8HWBxcQj8Eu}PUTT6Tg8fI-EL1F`ZR&X?v#Z;?tJ^gsZtDweh2b)Vu#0V zIIR8l@noF!Rm_&R$dzQHyPAX{+ar zAQs>AjX7^n_PNz_U@9%p%jZ`K%%!Q$$sNfW#eE=9LFk?>m^(uXeYURmi6LW#(;05{{=9Dcb zgNy{NYQlidy{o^h*izfJ zjYkyECGfiHk+6KB;cP7lIM70B3EAD%KXn{`hQYe|RG0L>@to7e=$M{~5Gc$u>h4sS zDNli_4ciG_Eh}Z%&hl%C?K9G`7eNFj26sF=*#p6th>Sxh51w33lmeWLp1F$DRwXTV z((sEB=xpR34toI!43SJcHcrK6G5>hXqRKT8|S0)vwyf+ zFbw^@I7nGehatc&?2@XhbVPT-_L71Ki?kQNH0dctI zKHC4!c-dcD!rh(AX2ygoyJmIue_TK(@|N8iFCZ!4iLH1DWPQb-$0V!r;Z+YuO~s$d zhtQb^+9;(gM($5|>p}0Pm&}U%FB2j=fO~^_Z?!s>O)_0lCIOIQ&fJ+u==M;d>-F(p zKcyv{#}i^NYmjk-VcZX@5ME&F$t#*~eNm})onJC!QEMf)sPIwTQ?&|g3V2PZLDa@s z6uLWKXLR-HDI#AP8R)=MSNW29rt`p5ltuv`V=dgpWA2%Xxz z73YQO!^3UUbG%orFD=E6v2;6WSRq9IN#p!!ZalE`=!@VSlknPTLJXc*n=k-_a|3~l zt=zVDDU~3MWgrm;VN28}fHJG=Fa!R7bzs4K1 z?@S#kcNTq0)xA}ScDI+u%`Q6WJv_ImU5&;z{~41uu16-5i4gxL3=OcUi|<%HK^q4u z4*D7vCCYo*F}#R`wgdVJiB}#|+p64FsFQLRkVF0r?kgwMuCj8H69RTO7eA%0S_}v0 za&i&PR(`bq{R2HBPMUmMH4hF5lhbitN4#fZ0G{=Gen4*sF|QJ^9wNzP-n zp2$Z{Aa*FdZ5gwq2%^v)3UaQ|w%lLQ5nmAnii+Q7p9M5I8IZxm0r76)vPiV~s-*%N zpu8ARA$Xt&B3<$ZZX02 z@t-L`SYt5DJ~JcTcfv9;k=4p!{yck9i&RX2A1ANT4TCBFYZhx62E-#+y}*2 zQf7sE^9BU!;Z{r3u=orV!)iyap-ci%9mE<(*Cfak2>udpr&T?Qs|pZMF-d-Oc*Rw=MeVV2nR?}I0q4!l58hmfvO?h0y>sz@&a zoq%P>N>IC?p04j-S&)!=zNjiSOUT;H#m1Z$GOF=s>dR2)(P68cB!+k@szoh%s z8<48`8At{MLP!+SB{}udx56mU&)wKE#ZGlHFaeWVZG*bCVDm#Nux-Tg2IY3g4w(%+ zcJ~w3n_|YL>aQNgYWh?E;lEKTt!ks+@Vq= z7|zOxqnP7rnw6kbLPSKZRC6_{2*LmhOtKJnd`|5=qz+mb@xk_pCw5%+hgPc4zaL7* zx7Yi7>2;ReMt(LE>O`!%CQ2<^mGgpxv7K6h) zE7>HePYJ>x5uliCbL3x;^b>doX`m<9KA zJG!|LrzN=?c0ml=6I;u~`Y#Nds(*`$%JAI!?q@Yj1m@JDsPndJ3A3mn%$#L8@WpO; z3m~U!jV%{jXQ5CaeAax!yBt%zN>5*LF9r}L#)lt^yp|Go9+6=P_-f>?BI;sD1~Vt0 z{|ESWVJQF9o7Q6YiJfE+AO{GRFOyiK-H3=YTwrBf?@c$|Q{?pH^U4d_81dP>KNOHy zxcHVT1LJcRqIo#0PHMT4FH*$cQV93LVu-C0+gH;ziwIf@ZWy!FUir=oWnuW2@@aws z3Jz3{G{}&Pmx&g~i@X3Sk;geT*Aue=gu1mIO{~1-!W$-!0h})>z?=J&$6XD zkwGS2kFg9O8WS&3@CnJ}!dK^z1KxHMc0%Sc2t<+FhzOC`%{mX{!GzPpTagMuW16D za>Z%!AX?x+2NvJ0bRSpV$tXyLydWMJ16(ES4FO#oz&aWdJc&_WRhTz)HROCk}LS4+Y zrXaK3?^$m>-m{s$Qnk`LyJ{HTi>)_8dp1K8LmF1t`e9Wk#U2@ z^y7tCQk!WNvw0X8M&p{fQ>T%Mb5E92xbnFZ1rd?gu837q(vIm6)YlQVEFO_3Y_WXi zlzv`H)7r`#$vMVcmqe@eHmRdQmpm^L@+C0CfBwCvzDh-S=!FW~Y=7>i^0V+ODZ@@P z!FV~KuSSltFJV^-1fz))1 z{MdxvH(oFe7;R$!jX<4&f5d!9BIr{~p|t1sw?Gq!mR(?5rIackH7==Sl0O2M?Cfgo!Fl?7m^3Omg+Oov2OvA-t@@15FX`D!yl%B zVdCYg)EU9>cU$*uMX^{lMu$f8&n;t!WAMGJWlaFJ+t72O1gI6&Q`m=JA4u&oB@qR2 zEf)st=EuaSpNKN4uwGWs3lpLxHhH1xfZ_=u+6yxQbw>|4gWIi@nid9M48Z3gf0Cvu zCE9HOq@0Zqth+sKrcJh)HI9vW3rGh8vf&-Do%MSh)`27ecyx>8{MBc|osh(vnD zC853uN|Nx@>Kogz@f&tl{BWwV@zZm~cJP0xrlwX*F8|-gb;Q6X@B;PHVPYNTMq)g0 zhj87I+z{y>II z+o>E2Hdpe5%b&cL^%?Li6wfZs+Yw+!`PB%o^LoAf*#Y|Hvl7?PF*ggAkG;>- z#hN}UU?wwh3+ApTUiK(3^-^c%ZavjR{L_7uNuW`N4R~Q@`sUPDJC(jjsBOTF#2W#T zS8s*2j**uSMU9aV2^eIbq{5|2>?TkAeq5?*B)ZE4P6lI$R7P>hKvtdBo$hOMLS)gR=-Q(-n=YR(iH4vxYR_w~g9>mo|I zzPYqRs%c1K812HeFX1k>{dw%A5v#%(;AG+FE9PbWjHb40=pQ$;UBZrzMM9KaHFq63{aU75n7k0io|B5buS3ecRm^Bcrr|VpI2c`I|El#q@ zNqLYfMx3;PZkk0PSDh9!E)af^Um;5`>@q20I)Eh1|1b)$(eG+@8P2?ZY>C)I>yyK` zd5atqBeRIoe?KXEU=+pu1$u+gQ+X29T{HRUj4!w+n6wtK;#0sIf|6LEWNKYtUM;pWOO9>zh z3d%ANUH6S>8mI3o3dLCR8}atvcw|jE*ZVv?btDEF(#3am(PGtX;qjE96re!}x&Q(P zl*yOBlxgq^w@w4%EC(n~|GjFgke*7>SiVK8VNB!8P$TFDn&Px5vz;wWG(#+mu=({H-iz@|KE#-{72<;d{2IYdCPZP>d#Z;N^3Er6!w4)gBJY*2~fcyS849$O2 znsIJHr0w<9_nSblRqR`DxORE9M$hZ3fE=F+)t2JTmH3$gjL74NBI3MYi^>6WSjV*i zNy)o{l@dW<{r)EyU5w{=2KH|z-_ql^2z@d~6w81ozvS@tBmLoRy}q~NgkKY{+{V}* z-l(~~ge!bm#B`vvhl^<<^Z&J5OrE0ZFcuT7HRAEahIiOehnW9`vkfF7p1c{A(Y9PQ z)7Z}rZNG8qb!r0SGdxf?FEj?7Mu)2!TUwD-ta}toa#RQ=m3(SaL3Q}BM&M4BI*FdTx^BUA;RfxTZ1f^ zK=L%*_5U#^hEgt&*$>KgxH}{f<#$O#A;@M@Hh->e{e$scpZw8+B z`2{g9h4tO)H`nj%n9(lFAHsEuS)rtImZ{Q>YY6JZu68fgIcSFX`Al} z;+_@}rfhWp4%XtPUD7LS&p&habL^nufO(subFdX9LEzi-yU;$!Sk(PZA%Q3}AcV&% z49 zd#L(_*B0tY-sI*4h$<<6D%?d}+afoJ)(U|T3^T{+ixABlyHLDVD(!XJSrzL0poP9o zCg%kH+RL2v&8F{%I>yXCkqZmfnUH|3SFjVwBcE@rZ0;bWnf4PYWcwEcEXjFCph7e7 z+jkGZ4nqNB2Esq#+IWGHexLIl4hvbi1I}~mh+wgvE zRkS9-sUdU_fGW8nDu!ykBh@#{nMl=PiH!PjOS; z9MZgvMpWf4%03gB)Y94jP+V&tt_sY}7SdwcArQLVb8mQoYBE7kv`FnVfM!UCLUm|C zod;Iq>_tq#y`Zq(5xp@a#49EKdjg=e#`$iCE^4ru-z&?snV`@v>xl}!WX-4s)k-~{ zBUGCM2M+J*fTU@Jo#n8hC&>jzQ^~apTT`dRHLM2ad3TqS=i=f>kMj(zM z=3|&Uf4l=p^TZOzN!@9IfPz|D^s0YVu$MQOWIF7Xp;dvCCw#j-eT)BfVG#?Gqu&@Y zNro4nI=_q`=cwSrJ3sL)U+m?9>l=FILa*%oos?<_ z&3nVch~fFi3~fo;Zv}E~pR>VQXQFU~D6{A&-7rfwCb_#h9>2g;2P=XcwcGZ5j-@3j zm@g$O`5grva7^fkG63Z4r(`^2IJ_ah8)YK9$t|#6WjM6)E!jM?`2Z}dc z)s(okS#Qyq<}GLWKK81X?7QKqr`VXm!4vYhRPlX*lU~W%!pKXV*CB3$E*KvmW^}$f z%i}S@l~YChda?r`K5-B{mNJB>-buI*c`srXhm3??cSH_Oc=uOc>@2Ao4?dfo-+JV3 zw-)fl9A3&O=t$%|y$Zo+J;NElUmD4aeuk zH~SmL22tY2_dj#SVV2@TrPM#jrZhdU+^na3lP!67QGYilS6S`oeY*iU^^#U~7Wr|) zaF^~0n<#%D>e1Gf`sP(yPTf3nAalOo_>z2jUA75SCHH(FxjO}`hr#qDid zf2=}IJ8_27ice@&g}f$2=GL8}`JWfBTfLFI0~$Xjt4K8aoqGS!wB^d$S51I!@>I9eZxdK-dL}6@!}sqr&mRo| z)~Pr8Kfeb|-6p3#G+~AAr z*b8bD5qa71a|h{E{o2|v4f1U_h4UnciG0vH12!;oSi^xTV3 zF7zjhgb5A<0xGOr(TLMgSanjOdz}t_{e^gvx)^IzqP)Dkv zAif&$AA6g;YxdqpV(>YeKV38`Z&#e7kb^T=oHX|aYxS-UhtU(EHLFogy8K6mL}Q!= z7p`boksrl63g1E|wbc!t`8_`MOWi^s4xDHK_SW9xf9$QwfLN>gYgdYFW7jtP9#UqF zO4%wJtSIFAN`XOMCdWDG#1hLt|17Kb~xFWAxswc~3 z%F(mK*xOY7Tk@nB*hY|1vsD*$L{Kr7CH}ySBmHX#WWiO$+?I2sq7b`+kJ=YQJqf~( zB7jkFg%@>GP{04Y0ySrF?X!|YCSQh}|DF@mZ~}RBCg>5H|LtV6Vx0>Covjvo!>g*% zZI`~|MFa=_P9e3Kz1Iun2nTwS+f0X49!S*(SXee>jBTYWRi;{pRhudW+_+x2LNkC6(bt?DdQM&RU-Yp4FIeP z!rCvvILDW)as>Ua4xfNH6m~TK;f(AL5gG>CIsq0Q7=ZKvE}S?L_)-LV2QW%0RErkd z1va>*rHztsE#Ul^vb|Z66NR(~)ThLE1PbMr!{h`V!M5qEq<{N$TTQ8k1Ph%cQ%5*rO*sl71(| z_A>9&`P8a_RYNuC|5#xTol3d0k8N96L%TdoZjpT!;h}f%cY9HVhbQjYw_mdaXGXYB zo5_hs+sYu^TSAd;$!J`Pkwzd=o&330DMK@~Re_PfpFD?Bptj7^W&90_e^!Dzz4wNA z?<3?oVzqGnw$l*P#WU{sL27%ZldabIZWz>b`PTP?QAJ zxIzK#!W7Z;F!=T$ZBfR`#i}q))TBDb4>2A7!1ZB!(oX$!DgO$G9Iz1(IsCBx038_z z3&CVf5V)cB=mvBB(U&V=fRqykdw)P|iL^|0B$u$TPTVE$OJ>2Msj!BM{ zsmS(^kh_nxKZaXd%=cTo@c|4wTB^B;o)6eX(tKyk*u_)y3W_tOjqmBc@fMDyL)?4n z@&RC>a|n0a91zk`fH~e3xxT!CKv1kM={E5S%)5vdy|(8XbgUD{y&gu>w`M3 z*tB{=fD+{=#XA!K-F(+AjYJ|3jVafF8lnFe*Zh5lx;@kZP)t~m5N!EW&-e2-b9eq^ z@a~h2NT5>anp~jEoD3JvlPO{OQ*@mvA!Bwqg-PVFc(v_w?!iaNBcdi))}_^15o`O# z2Q+ocZ@mpD_+KXQF_ zH~HzaPs)F3UjnwARv#y|r4W`jo-$^x))haP`VB(D^loxCkA3sEDva`XHyTs_smFhH zEuva1|G(5`v6U{H&j;&&Iuz=j8iEXI)S-}4Zh>mpOZKD(?*X^&@1j`B!ymL^rqP|0 zV>SkJir{9kYv1Qh=$4IEVFVoj0neg!U7HVCR7KzU$B?dDh5J?vF;2beyHxr=F5rof zPx%pu!$&&Q>Wq>ep%%8R5=|FR&*Hm7kBj0T!vZ!%@vT=kyZZ-<3ev7l%r6=g=g5a? zm>GNXu7vg74OzJw?}-CN;&`Xdp#VDI8nve4JGuc25^?>zF`Nm|{Vn2zLK!zX9vOcX zg}G286MMU;f)V5BB=twgR}sz50Z-vgnQ~-Qbz^tqD?KMcv%gVlYgR8HwG;_f1%aUhuEk&D-d*jW|i-U_nNuY$Ak=n7w3 z`MPLOmb0#M6WDJ{xDq2#=_TcFB#A@*boaSb=f_}l-2K4~L^g)J|c0rXW{Ot&EVX{@+R0vcp zHeM*NI6V(UrkO&o4v7K12nh;}iA;+`PbJZzYUY{Vi$GvnOTD!iVSSXeKGEDmwm<-j z4$T!D*0?y5(rytiYaiMc4zTAIwOeGCDl|`)Vo3C-K}R%0>qCsIBuaYc(Q4C<7K7zo z*2*2dCxed9mNuFnjxbK{q?yPRvvowYwjt+TX`wLx0zoRmVcH#-sJpl6$xYqiWeDY< zHa8^Zszu!WipyBv)VcQwQRQ*M30DO08x?Vxr<5X~XDv%M-m$t>bb#2{*&pRtR-?AN zb*bgH^f$80tScmgJrIkb5x!Bk@j$cYkdSz8O zedAF=E_?82ao0d%P}fQTb#XZ}?zL;CH@%$|*KxEda(>Y#a-Bt=1@`=HD~Wu>tB{h9 z%4t)7zV!%Ki$)p;c+vwmG<-GfSwIM|d)Y(o{_vU$#qiP%8NBc}gG-qGCn0XyUjij|2L)tixQn4_&+DF#xBib; zcErXS8T_#^DY%-Hc@nzPiXRPXNY6rx^JaMAg5@##1z=1Avt{*_ve1?`6{8(ZF36aK z!ps(p(`k?(>W}3@rukMhFarJmrPNc<>bk;5&FP#SGPTUkm(a*}OJ`FH<#Gum>?d7qLb+#T?_Ic>bGMNP zE^w#9l&#>F_tD)LUvDLssW=*eisb=%_(x7|RUFj%X#F%}$!_$cT3JWR2D6M>cIIXgw0R{DN9!so_Xb-kBUKY6 zUhh*=uMXc&Uv3koQdAW~Y}Eg*09$|kmi@vQMlgsRtn_`csa%}w;X)1`DEQm$nf)s4 zXgyK}>fG0rF1(o2RbAlOA3T=?WEthr=XXUi#LQaG%t-a4Ex1@kE$hPNsHh)49O(a& zTV)B~jMILB$~v{6OrzmNI#<=p*7jq(SI!*|PY{6_IQo~htb3Km=C1F~d>sGpgIpWx zFbSuPbSlMb>_abgP2wwUf0Pwi>lbHQ_t(uKJB+*fx)-w7>n3prWcScpf4TD4tQ^Lu z8R9=IpIjGheb&y5cWX{(fAif?{g+;KTOh{VsphfGdIXu?zb2dlQS_ zRy8q_VDt5p?$QudStit08h#6Gk~@x~flb~+^uJZiP~Q|_9i$io3{?eXD> zfq{XMBFgMOjLpY;HJ4eb=ATIeZBf^wdVgAR(@wK%K9Qw7Y&8XzFHoCtx{OlC^O_+8 z?w4pf@hsk#ccrJ^CHp#?`}A~NE!f|o@BGofLRjn83}q2@nSawbve>Z`UGgF~T2^v9 zNzvG5vBZ z9N&^Zy4V;&TYvW$;^b2Zg zW;PaVMO%1Ynl;XkyYHP>^qYSJ$B2OJSYpAL=xDTUJOjyNsvG};HN5x7JsKph-_y52 z(v0oe!tx625BI026lvM}!rhS2>v319Qmwm-)kt0^{h=?C)>dE##WB98L5(wL{)+8S z?5c)DHx_iWkS2H(HS_arfP!b5wRZ0YKJ3Md#bRQaE!F8!vdeL~!0G%FO-8`RxQR^n zm$2+)51>lT_07H1%FjZ<9nL&zy-o!;uJ=mcJLF4mbJjjfph&umG4+pKAdml&BVeCt2| zQk8J(>pD+$aJNMJ>qq*{WRI=4`pO15jY+4Qjx0Lf3!+E6^t9h@tjZOPnsOovtK=Gr#F3Ln2 z9{NO*!iphP?lUMS_px$avx6<8y(BJZCSKH2ELtC*!=gH*Z9MYD_k&=?Ikz#%r}>>K zU$abdb8K1Sj+ljgr^!vE%HLLHQpE+D*hdAyPoAR3ldKXp?|Pjq#x;^}$ewIprkOZx zOCHCkf830tQ}kJ=gEi(Rt84d)nHz1arF{5RP<<4wza%1L|1q{rWh*8xo!~qNclmw$ zBjr#|`}pVWmKvd7Tx^~_!G6Z*es;#v3^rZwZ{{V7g8C|aRflRab6+;WOetzcqk>MZ zL`4NPsp+Z1Z`Jk}tqp-p{3>Q{@1rA>jMSIF>cWx6^A&ebcM?3B)nSf=#c1vU*9haF zpdTZ-%wYWdr_G(b;%YrZS&n^CyRG-~VKUndlD_-7hdQobrFF$Me$EpfFAxC#Ncl-l zD>^Mya_yaF6Z5vZrmU04h9gNvGc*C!)-S4JGLf1f(bKK2w;L+8S|^Y!5%~G3&#(1^ z`@|+S@uTd?i9J)t{tLWSxg1Gek3hQDVqH5LOk%~l?1C3Z2#qt7KT|DsAfoGxlNAnT z7%^EdTIt257+)K$5+8433SCQ$^lrTO*nO14$%1g0FuEmclp_}|`VzhJl{OJo%l%AK zYfuCXi98y$8jGDY@fqLJW>qP;z9HY)Hsc}gn4=FRF9!O{pniK|KzTdW8}}8Z4-a|1 z`MO3;SZi}W6?Q@&?`g{VbYD(G>-LF&ZzUeZJI#N-ta~!km^Iik-ZQP-#aY*cb9@fE zSWvz;1gmlG{w}`&^c@j@&X}Z{hxsj(ngGE<^sEE1MV;BXWzE{xFut>&Hh1&NLUZ%k zV~?0cyprX^_J=~sPB(%P9OaX__?*f2F#dz-ZsL}5?uw|Z>xN?uC)jU(PWE`bPDHTk zKp5w#U*+O?tvBh}$xx0AG0SKxqZsUvF7SHZSkc?}n-7=K<}X`zlhFn*(dEtTkZSMu z4n>Oxz;k?Y@a=cT<{LEHk3q7q5Xgdy zEN5V^{!^`rmZ@>em!(O^=QVwsn|S>JL9bmt_RP8AO@irRQ_7co&jy&&F#j7d9V`Ee zehni{ZEn=h&G9`TAr-EI^0O)vSgTaMlt1u4OUcXpH^PHro~FKMk~yP+S{nV^v96B1 zF#n7Y{|*f@e?{{7n>k_kY)>qLrKrrwXos z!R=qP={~H{6n1hVcPE-R=nAj;bqqGIsvXABx5W>bO|8?(-?Hg-Om^)klaTb?!aTKa z4C$G3l-h%t#2HEXHN{!B>E@4W!JO8=rhe3Ji3wzLKbec;udrTuFW|F+omP0H*cMFR zW=OE121BINQwx!=VqGcRi~==CWXN1L#;G7DTY0dEbtx`xu*Bh&t?k+(+)%gX*PB%N z5P=G>Jxr%;&9<)Ycv)rI4|qRfckU>pb5v30SJ&`BrFlbZXq+4oL!19Cht+2+V2;;F z_i5IhH1z|J>|$L=CzHUyFe_i1u5ekt?NUxoF0-KPUii#}$M(->b3PS0OGSv5M46KB zboA(imYzp9JR@cx~gi)4>TqXB{wW44-S6YpvNbQZ1!`6zcNG3>)#lF#OANg z4c5Hh3TX`H&&l$ljdeY_YrdbiTwL_ns zwmGzs?~2{;bhfmmp~qUHss~$7F*n`)Bt~@#^d`m{7imCjLO=ANA88Uc0~*?OrAl*P z$gPs<_1z`@kYT8v((jUd)r0uYL6=&2rV0t5V=d0Dg?Q-P?5um zI(W)ha=I0~U@PK$$QCo-PHuv`j+}2eShlk^s4T*#avKny z$F8&}K`DM!H)8C3K1ytlwHyjFn0Nv6c)Pv!w!9m&bYZEUAEWm|I$GB6N9O{gU)s=k z3tgK|p7j!3)U|$IE`ZaI{RYi6Kikd``h>o_?7dsCCZ zflJe@u1c1)wq0k=TSedBqsf!Hq3JWA7S};z*sJ<=v+e#8&d}2X{MEQ^*Q`umu5yPN z?&^c>NQEG|Bv5dF`;vjgOT$4yr~05e+XA-Vso#uAk>fwoxAgDBj{Lk;nK|lb5j_Gn zN0|!r>xFZpF2~^E?5%YqsppV_66c%r$K}#L#u`qIFD{=+frjYvO>9JeV!F{;f~NqG z5>l*FF+HAz^6Q+|?<%3~C6`GRE`gl2!H|0~5O@H{a_k zywQJDO<+@RU>&mVJ>iRpD8X5n761OicJbAk&WoAYuVSawk<4At!^|az*XEvvF?tTP zvEDlkbM(I2=?;@>NhX8h-en_bwMp;(7hzQ+w{y~W-?YqmFD2B46(l>23CYi$ID66{ zu6_R^SA?U4qOY=5Z7u{9Tk#nWT7P@yCQV7$>>MjTUy`P}KU6>Gi{tl7Po}&#bKdBm zIG$Aib?r?1h#K$i1_aF7{jM6gCcC)2**WAsFSfy+nA;i&y13%+y4w=Wwz^J zJsb0S`}2H*lR~d&C11V{@lj+)cZgdpj|PoMcLM&4;N%zZ{_F=eYvo~n#;Yd}J1ckM zMv-}o;T3w8)J6;mC#4zULsqg=!5oMA^t7nAv=qO~gqt%020V3XsFy^yH9+!E_&hP@+k@)e;E z>|D`ydeu&~??gJiTRECO+kxQwc?9Qa?he^I1PV^8>FeHX4Bvi7_g5HCAgV`tMJdmw6%L&Lhh;OOV0zS=i|A>;a)4g&J9GPx3C!j|@d0IF9+h|u+ zcO~}Ik3YTb(m9e*aQP0yuzEbwh*LY>88JlW*+fplVSDSFHJ$^$0lMg)9~9MI@2K%i z$XR#XzxJj0bAuYIkf-bqfr{M`o;Bm4p1WRO9JaD2_Zoi(!0S>K6Oa3yw>hax1!~q> zCy#uplEfMBG~FQ!$*$Il=huT=;(2 z3!N*SoY?rOoDa9@$zJs9%98Orp=*huVcQztMLCGKNg=c+Yb;eiO#RaP1L(jP#!M+;3*W#tTZ^ zCa{J5>t7uau5MISWEzMmsR$nf0@xs97Hu2QHq+m$5d0%N5Xbr%uOpQZ*>L>f`luun zvfS1@lYmu;ZoGgqLW;JMp!gZm{rJxF+ZqCTTW>LD&|$t$Cx#1!fNG9IeF^8~i*F&B zF|-KcR-cRQhS)SE`pvf2oJQ_W(p!bC5zW|=mo25-+XVb%(+Zz634q<=E~9O*!sM zUuWMwWZ8`%3wKT0DvZ3{F;y`rv9CRLpOECyr)1d5`uwwIW9ZaWGT3gQD|J{d-zcJ$ zouk9~E+IJ-9B$BEkjUu!Yx(CdE_zXCf{tp{qLpY?g{;>TI}hu{k}q;OjV$iVGTY(W zJflP5nYD zc}rRk$Nl<+cj?{yX1u=T+PBD_?zX;;BlNtJ-1-{flS;#nA88Sfi||Ykv{!_g}@at&H^M@E1aCPb@x; zULi@X@(rBI!Hj?;%)2ei{|`}b;n!6A|Bv4mpdyMOAtj(7(hZ|jVt|B*bi-hDk4dYf z#E`BH1cXuB2AMi8(pLM?!Mo@&*S$8>^#nSo$FkCU9V@6e@d-`pX%86tgn~! zr_KKs9$#TV2Z8aDaH1sSSxKDW|F7yWMo`WUw77hpjQW9n=`lS>bWBa0cp6l!vvk~f ze_mnd)mb)Lt12<;=VrFW6)Jo`1`~Ad!4& zgCr^EU1*W;N|-rFGFuhwToyq3BS&Pk-A9dyifZO4wkU5_%GV$1_54wtz)|Z%dd>_l z@9hjb{t6XDw-sQ#-}~>C^@hv>D;4KMRBTAwMv(j0G=uhAG<)p{mb+ zH&stc!BWE(y{z9aik81wsE6P@1=7zVDs8^*%w zKaUbA`a*>#PmOG@RvOz;A2=NhkFooy*C|FbY{e`MJ7|byyV0mbz|hOm5_rJCa6fU~ z4G)e?ie0-rtbaM4RNLasSDr@n|E5RC8vMd7$jzFa@V?6V0y-#t-73frt>6jRZ@26e zpc;%$)mYXipx-4^6_@%e&NKLn5=&nZt$H(!{ zZ*>UtfYTqI_j3<&eXnFOyOPErYHCwU{8!)Y^mK~s4mZ*mbaL&?E!7;z_N{BL#{bOH1Ma1Pua-6zT~yzW`0b^jlR|{e z63T~4re5tg^!cNKeWR+$Yc{xhU|hGxjQm4B`(Ym+wa&sd8gv4X$Jcf0z^U!@Nz8_A z+IjuN21ALF$%8UXr`^##=XZun(Z58M2pBEB^%e^34a-^w1Z2G7-LjPn?nA2>D$Q*? zie`w?Q(+_~RmkG~-km1b9YhRfV_zZ;eKasDg{tnlD73cZbG+)prU#mgpRyjsGE=^u|)&5V^bSV$%l3?g@{7 z^B9pzlP4RT5;5cteRVt?h4KH!!Pu-?4KT4U3loH^JQZf}?iZEs$>dEtP*#q!HYr5w zB#;dh1FT9tl|T{AmdVmJ37?)U6)g&XK8zgneN^cT))=duIrFxV0YsMdjO1E8r+DoN zLxI7Ibbx8YF=!X?XybefXINKAl)=X-=?xc$sGA6QaYxovUgu|Rklw4}&Di^}r-y*E zOpi)KJ0i5942e8goY!IMkOGinr%Q9_{mA1 z0DM4sE*A;Lnyqbxz*fp>E7c_HwKTOBiy9b|qLsym(`aO?a7;C-Bbf3Dm2@!?l>M6p z)|^n*TR0znzKdKo3Ocl09X9cUj<%WhcojOYGOrS(z%=VMa6qCY8SnTuVu|Z3Ap1qF?^sEWl2E?FM8tp8=4a<>l<)n>|iW z$C|OGFACPx4s)yjtB$9UuE@6PTldV2DBgDWDTH3`YFWMmokjt5A#G7iRa`}9)Wpnj zf0OyNLVGv!e%NA=8jeKdc(r#!|NVoJv!UTgaebtwnZ-1b7GI?%`)l`p^d<0Nv41TJ zaqi{y2o1`Q7}A5`0$NFtw|;rF$KN*uG!VzBzoSl3RQCe?3Io=eFVCfCk11wZUnzB# zNvfk7cV>T~3v#JK9`+a56{8lVS3Rm_SDr`t%Qbi`rILzw(3{>;m_>1ktjEDh!EV>99~iQ3FU3!O9nvlx~0Dv$Q^10#S1 z%&e4T6@k|+c5HQyR*4~J(Qi#N>`hy^wi2>i8{+@#Bg+~T`b#XiPT+6HNb9V;ho`Vd zS^6+<6_wYU-;}@A@+L9EG~0Vgw8Bn#%x({Gv5sa3|5-{vSfLHw#-wFlu4~iZ=eEe# z6CJlj+x5GrYW={V4t9+R;jrYgXMEli*G(Dam^ZQw!Mt(B&WD6|0~Nyh0W0seotnBX zs*(WyHl?Y=uzH&wz1)aheTDxyQNL+?r+6MW9dOtS9yGcg|6&GCDRi z_ySMlody;*rvvJS*b9sBh2PLItf|v8b=Sf1vTj2Q=M<2q7-FaC6dpn&C zHIcWP`i^o)s&IOo^BD$v4s9s6(P4;Sc)edlF4DU27VSi5m@MWoU8rYNSByC;ckZcO z0K&a+->871x?%H5Iy-5&R^9R~V?!ewMh)Ea?vt_}~_#e*6OX@^& zD=?`&_2-hO4v(T)*V<$ui&S}oLn9Y7vxqGG7IaJ;g_q8EHJ|@EJGn^VA0+{HaBv{4 zM*DTaqnfaw+q$&#ko_sCD9oAg?RXBV+TY!dtV-Ix9v()?7q7ZQ)(xxtAb>RcxbZoL zGhxT&*jncoy~a|Y#ZC>mjXyG^HV=be9n>vP0;b2QEySxa-H;2@GdjPW@XZ$NDdq)lC+^)fBdfC7+JA5JkOv zBR@qu)+$0XR7X6=C(Hay!sae-G=zKoDz)1by_T9%u(OR4npv&(BBL)mPFqn= z)QY0qm}xt<1fmt{N~CtW{T>*~?fi`P>QOpgpILZKf_VMkcM;8cAx3K;MfyLLn*|rk z`slewX7%4vP9&dE&FwP^gMW30QC5dO+Uxdd8eFW{_{@&32V&|4N4d3%P zk8R^zJ$%Mu_TX;$eucSgCHwiOMgCetqq>p3zxE*pI-^LA2GN<(!NII!-6*Swa|wpF zsh=gvAp5n4J|)n?V`N=W+ma)$%s!5i^0V}i6V>x}xxv96Xa8RHIlg*MWjKB7dnhI&QZ0Du>s9h)Z)GLuRz_gK~lu#)Z?Nd=D z&C#)N_1fd4V?N2RAbwZuS7Tw^L?pk2lbZkbc|Ll(e|Ybu&l|D#dO%+(bDgrkXecot z#p3%f{T-0MY2qfTYg}zADa5P4yXTJt@t;pqYje|n`WKf3TU@AGpen>kU1tYmrh}#1 z|5;ozfV(ukM30INIUg(BUyym_V=0{4YQ1DQ?Z?s8luvvy`n}Xk6BagKkfb-{CLXDUZ=|$&G}36Z-|z!f-bz z0S;VSKu|RpjBT7k>H;1qSEbpMGWNL;S7j&3i>ns zqBBiGs%!is!AL}}$Y5)0*_CTs%8xl z1l9{LNghoVeP_$tYrD2r5BvAVX_FROyQfGgd8THDqi5Xx1vgy|_U%P?l>b|M?b1F5OzB*&gv)`tjcnULRJK zCcGQ?fqUj8e}3_nwxVbXjwSmbPESLicN;o&Cm?g|u$#y=KI0mj+1kp=vC2y5y@w1R zA4p#;X2L}a4G{+Fypn1`yTA;4XaXKJ$=Y3Xj|I2(!ewOYX*2gHy{aZH|j9+%UQ9g*lXxD`B_F#G3d9+8C@_;3v9ldSn*ML<-EGk z;`(5DTNB*-PIDl@=IWh;;nY|~G51CH=2t^u+-7g1KPbnRgcz$@9Kgm|+kTdKs0%g+ zfq|$SuhF-CWY`(haP}cC>!AKTgHhIxFCsH@pQfw}7$D4Eim?Zco>pjJm6~wYtJn|B zvmfsn%WZ$GI3KR{8`JK7ZL8{2F7YTL6BJJ#+#BFGCE#t^ASFNGxZY>(PcDqnOgrLx z^|E*8{(1@Iw{GiCz{iz$WBevDLb~GrUPRkA8cEw&QdpA<337a3D!P2aa;Z=mD$Ve& zatnoE%D0E=`(uWRmak0D-vwS@Uh+q1`rbFHK|gR9i=Fq+$@!;j$^iF?TuJ&sKwiM_ z-&la%QlDXt@_l_mWSXv;u9U?#d=8)M%J)uQp#GUVC`DU4kh0M<%Kf7eZu5tpb%&|j zSPqxc!h+Pa>|fHmJS2Eb0lMonJap96D*_-xkiAVYAXpE0mZjLMCw8cz4Dx}%Z6_mG&b5)J~`CYT3l#tn1OZ-z32G@Jv$dEkS)IBA|r7g ze=uLi9!BllJiwVSOe;8igrL0L1{a~8_k%(toYv4|6nj!4Dn|6@Oh0LT#z*i#*&je{ zuWcS#)O+px$un7<5Six`NP{Q6uq_$a#lfY>I=LDT&$8aycr9Wlbo8@-ZgOxg zYyA78QEr>NRwUcA0#_-X&pgrfgk-sT_5wBEBy^!&K5I_*iM{dwfFpZZF0DyEDHe5L30BY9kucu(GWpKMCNg(u}yR3E3wWx?c^n&hQ%==a)Y2zCR5Yn68 zqNz(^#NnR5*=Rwb%V>jlfe0Hja*Rf+ADxhKtK4ID*I1!#@YEpy>8Xm`gogYa_*R3k z_$J`2uzOe_Y!-0ru-q<9m|T-~`Y>-jf7zE4bH!EG^HP|}`qC~%@Pc7c)#D_dOV=pq z`~3M&OEiOrlPu%b!+jI~L_OB)Cnfs9t;>6l*nla;n6hZvmAG)8TeyUeU4C_FhSpL-J3)>I%xn)=M6{RJJ!p^KM1K=z zFyb%*c4$$7BQTRMy`0tk31cW6-$~nKc?Va+I-t8y-OuZO`{I}QHR@~U3G|aD$E(Px zSJPb`=t0eNX>28u@Ct5{Kei%?h~N6<+v#=mr9&Ozz1yWbRMK@J^3XBR_1#|166e6v zanwMUdjDA1&eK_O2>hx6r-MngbQ>V5RU@0Sgq>G^?U}^pd8X+&HFRpGYfJN2I&F+r zVW5qjK)3Oe#>Tx>_mLt{7=)->gp1lGj3OlLTP&y|**lqxsM4UIti*M3kubE+y&z8b=$9yMkcB4UyAJ^UAIQ7=-co8!io|gBCRij0n`^$f z&CT?dwC&mOi{e{JJcU9t0DH4q-{FX(_Pc+oCy|VTZ~Pt9w15nWXe5)zezB!*&E=Jj z5ou!4So)oVD_yYuniIOh*4u=XBf`Pc^GP?TewOoZ^WK?*xtGg)1yJJE5}E@mYdt1$ zibXl>u?Nqc{S#y)R?K%bxHMQ!i_Of3tlYWJEQ$}VSxg6hgo@%e=ju1FoN!^9k{0&K zmj+Hdcf!v8@*TlUOxA}0^5k>dZcC%$Vovjw;D;@gg6@kKRLH5dj5g)cbH-V-vHo&I zvq}`j;+J`TZPcI)-hjB`t%c!_z{2;uTnsB}K3!Ph+&E<~o3m3D5FOW0O=;ZE)Wy5c zv^pK0N|lTBHdl^vM_}Z3GJGydkS~<)&sTKhmE3_JNG7WxZ>%@S_oflpe2B zY%%<3U+8?*Nn@XyVh+(Wdf6fZeNGurG7`4qL+SFnipiPEE+ zDf5%ZXNGm27<8(!yeOaDU2pU*Z`Zs34L;v+HP_z`7rj~^j!BzI^c2n_?P>pGRX|lG z5w^{{aQs(NF*u5x_VVqnCz**rRr?T(^}T-7O~irfK#kw}wr2`zQGtR!t{be(5f(cl zY1lcqP);kE%U&%1HbyvE;B-^TGP3}Vpq%F-ehcSTl)m~N85%dV6Qbv_>w-I|!+EDk zzdi8Pr8vX5ce2RkcX|Gk>4$1`a)ZV>duwBQRjsb67MxSM#DE92q)}$%^EgmX>70x1 zg1$mmNt8V?f=s};@?8X#iYJrtD!IqUWDTRSSf7Po@oI}#kLWc`y)qM(Y%_1HDF6Bv zji=`jilFK~`B~ei6*>?ubT|HO272q^Y2*9oXH76b57BiRH>tpqXggPWMx2z)9#&hK z`HU572{anKnCQBD-_+;WqMgL*(nyWNU?< z;egNuysu&4{d_GYO}NkQ7sW**vr&m>Y5rrAoiM7*j4cs)ub!;;^9^T}xwzZwDYOVk z+n4sD76TX@GSy3~k%0I|8(e4Chi=6N^wamVKTG0_u{0NgLPf7zz7NvhirM7LIHHq5 zpWK%j6EA|(jRYcXMwV5UlzcE^pJwXI%|yTnCnJxrb?X|F9QK|Y-fy};1cENrBgbf) z%69t3;WECzu&y+d&ecVAy-{C(lP1sA)=n@TBaVl_l~?M{ma(Voo&CNWl0dI?r4f3p zvv6uxZR*pocMQ&F?fYXokO7}T2hDWJDUt8ki_hs?Iahac-LyHPw`mUSw2%(_g8Tq~ z!zx>nn~{hNyB~X<2oD^5&=4#m6_auFHJKTM4b+{f_e)P9ka}%>&`gYe8u(Ya^8ADF zy^(MM`WHtgO*P(wc}X)e=ZgI4;&W&(fUj?i&!FV}2%t#i3}i`Wx&l4$?c*)^b?4RT z`TI8`b0t~?W|WoE(Z^Ncsv^~P-A+Xjs>2%R2UL-P5%m%^?;%S40K6zCO@F1sMs#mw z1SYtwM)gWl^g278o@}Wus_BdAyN&^w^LCH6rV#6~$2!7)R(x&|Hr2+y?AsfR$#HsC zuNhpOy&CY=hD1a?SsK9w#e~~s8KK-toPP-NN}yP0TDNt4YSTSixHVift}~`>;iZj> zhj#m5m2o@Ro*DW*=iGtW=@b>G*Na)r98o3a2^1u$c2A9heIP?mzGYfP#(aZ`74l3M zxlS9ZNBWjl&8bwxmW+BR=QZTvw_o9Sit^TWaxPCoO-5}L9c|M9j-yCLqU)!#{-g~V zQ^(HJpdYEvByvd^{g1i8t&kgcAf2+TR#Vc_!aG8eC3Cc+*rDIv zqlL2pIyDkz?t8U3CVnix zd%QA!;b~W@o#{6wHE@1#he~M*Kw5c~i?WKyNkCOyY}OvtrGzw;4(yc3Mt|Tl24~ce zZ1vvoy{^o+nwQ_9SM?ru(JSWnV)jQ~wojIKrUUwW?HymuUmUM#gdA*aiLj@zpKXuo znUt#`jHL-P&<0Cq52GA>RJ#Az^nh=>1-8jwev#a|b3b#vgHh%jvW7UXPt7qm3t7B{ zls$N|X5zPZZYJxLKv(En=`v+3jTa19ov|bRdSfBW$c+%Xl5PaPJ1cB<6)|kX^s+2% zP-<wU+0vNkol(i(nu70GUwg%L_-sgNbBL8|AD|=l}D>9YV_wtVw=x{m5^rVsy zcs6e)9#}s}Dt7oU+^O(PYjm!DszBnGgGSM{JojRBc$d&<8k;t(a*@;)5hO(G8 zpdn=fK3Ipjz(Kr5D&VQ*f`jXLTPhNM`Bgj5i`(CI`m8Qs`s|z5f!W#G0DOj*)NMTY znowKSa3xU#v=N*xJT*+VTZ0oSY5VN15;+pLh#P_T)%4ue;^K*|`OyPC-gyqauQL6C zISr#<_XXvA*lLaTmvKYBN7kezNV)4@7O7$k44S>V;q1K|4LjUjnDzgA9 zH$Ty{b@9ffnPFtl&dLVD|JeK56?>RHse5_2-;S~wLbBFWJG9EQmvhdRUtJ_3MOoN| zF=85lPhHNF;t_#NY8lv1V8N?<%M#Ck+2Fu7zs5-i3!&p+zJAw^G_(=va8VqBX;@!k@g{6>co+ zW#`QB8w5A)Z(#ygq|DAo6gf49z^*<>1bCp~jYJbMbhf(OlZ_qit96uyDgT3tju3ve zUOO#e&Nto=o}l4{ywS5hl^bpnVIF%b6hZmrGbLCRrz}KTypwb%>ZgWeUN|-b&Hoi; zDLiQak;>HuSU2(5$81PHxN)1S7bX6K%U7JciuGT z_c96;p{;sDJmiHwe5eX&&44LFlz~o=&agUy!+qw02d)dkpq>yw1xw-}1!LT(0i0H! zNlWH2rN9pj6{fuRRqVZePfPRbi_Oe@j4hN&#^(=nF@1gmHTTcckTl>Xyw&|3vogm^ z*qbOu=)_m6L$et=feRi&j;{!@OrnWskCtdbejwbYx2Yh}vJYb(gQIIbHfA`romVa_wAgAqdV=Ta(e_ z9EjuN$PQl91{0Zwg4MpGD7nkgv{{i7$et*)(N^Oi0eo0LelZQy(DwxIB`TUMA+Z_b zXC>3RsE*>)B^}?wJ*%9J2kt_Qj=tT~4;^c^xHI8m8!~HsjI+{C-YcYhlHjHNCq-g- z2L@5J%l?SLu;Es{Q+W#QQ~zI^>6zCX#rLt!Vv6%EO_zTK`Rno66(dpxe-V6&l_9F? zXl_Nq9joxkD(me`!{WZCDPW_eN~Gy-weQr%TEOn12h_>5%Hr~@KZe{ZI!y#Zl&8IL zYOrWMYO=rTos90CEZ?ZaCuInid-n)$w0T_nua@uB`wnlfTEo&L4!XQi%#&q4v-zp0 z`{nXueIxCiOcTE>hpQ)t*BbV3u}E#rbx3X6Up+}Z?d;3=x$j6A+A%&`5{*gG`UCGJ zsYKP{#cz4ocv&6BV*JNLJksPw)0Rj`D(C!HMxjoVR=Q8)we~Yw|Be|oU2Pb|4+J_d zi4^&s5$}96n3fpBdPWFZXO@FpeKk0%GZCA0-LMvSeEOc7<@F{{`yZd@939~Y+P{PA zd=DNY(8x@}oLi(`0l&?wp`*~zc5Th+q=2>i^XpRAqWzrjIWiAB0_BctpuDDY7dAfz z{i6qeraMi?Vf?n!bYk?IK0GEK5d20F{HepzEA%qg6)a~1R5ZMk#B>0%VHOSOo){yjW?~mF1^ZVxew%?>X)i^BefL+FZ zRK|5O%Nd5s#WWikqVG_xVL1@$z<=2RkGxu)*z0fVJ}QiqC6qZa5a*0lMMSrs$zh{Q z;gW#Uyl);68_w@x;Yu?NSIFym+PsDxrvZCdYoqq{v7DyQX`!#4(?nU_$sLm%4vh?1 z2VJ~W28nJ9L~H+6%;AhqU#8n8JxjY#9OjuhC8ev>zuQ#&A9m&`i;sUGGR zV2S!VGF8%=vm8@IZYBBS@rC?^f|lL-u>sjbi!LB<8)h+df-T0=U9s%fXQM84i)-`O)(4-IrFM1w-PVFuZocrWn|I^}Ky5+GpLLdB z-^hkW!PjwQ)jVu}#LRd0!{S{*;g~}MLQ}lMd zP>pS6KMItWlJ;1P2VcUd*DQ;~jc0_Ik|xoIf;5x5UznQySfZw9^Lm~At6<^2m2+ny zf%A>0F7t;Gr~T)v(H@y0Vc%HVn^%n*PdE5Y>MW8aE(h63v9@c?zo+#Ub{vBMSmuAc z13>LDjl1pN)*9^I9GsXR{<6|Y<-mM8Z;-3mJeR`yB+LAxDk02IqbFK@sz;<2|HTjZ zV$amZen|JKYPO7qb1Tsz1=-KEz0XuD(E;XKa8cpveNw$a_o z0stR%-!KG#k?c#Tq=7woB&zmH?1=Y=L`Q|hqS`|4pXqBH|?F1~}!kb+li^J!p zZo|@q)>61UEHiD1LGeM~*%xD<%wKkOdS&`L)JQQ|``&<4csV z=wsoh8#M!9U8t>*bje1ZW>X-(P`qIwv9n@|K8I5?bNGavU%4-?@0O9v*&;GSc7tia ziCGz<3D|ENh9xwVZd79YPRHzAyn%S(DM^zfnDdX{DDi-^At|$i%JDvyohEs!6rQs) zWTWe>3-g|^-@q9|;HTDZT9M4*y?~u0bnZCsG$0=sza4BIwONgKV7aQ|b&((>a;j}O zb9DNN&z7zbD{vL5$1}eg!*A4DTySOkHe16%=9zEA^O{d#TigN1@pZ7vUT>7A$+IDd zdCzJ(4JrUs(uJEX3cT2R=p49}ZVK%w9_-it>dkp1Io{}WI%;+@1EqDDz2&=a3I61! z*{oGLdm63j=dh@VvA-P6+bh=qSS1}~K>aU=^`d=`}>f8n9_wP4>PE+M8W11Je$44&S2M&gj zK*CQ0pr(639bX-E=c%iv7!#7t!={yL7;nWDsiJI#?6iMS+*@{VnEr}yzdub%&*I}s z^>B7We>>AMwO^1r$%hO?w zBmX6!*{guM{RI>)cS(S6d$(jg?;Oyodt0>S%P^I(ljdz0%UgY&(ExAGRj;RxDE`jn}?gXdDF#bniea~OrXOi>4F=-hTD+*j&{Ac@49gPCGN=)-x-#qAA5x zmyGw3EOjMh$`$O>27;lr)V06`NnI(5##sj2y|3HM+>*wRl%3fz(u<(11 z49)A|8#sh|Wu1wI@VvFRPRZG}j@;>luP#gA>ISE{;gWfkC=KuY*Mc>POfrrlqx!X~ zrn8yzFz8;KB^lB3nwFwP0hOZ0B`TdLtbme^Wnk^raPu&W@v3S@<+cLOW{G?e7-`O!sDq?^%wpbdQJ!?xxVS zOuZIMa$;s2g#&1Tp&EOd4KuHsCie~(^k+(7feV3k=Ocs;0Ty-umSeO2{~=yuPTT>JV?TS<|L9^*bN)2T^Y#C_nOBAGK_| z?&S#TA_YQOa-`=O*eyR<`cdc=LEhc1apwt8b7ydPPZ&1a{r&K|{ZI*sy2i>~9cYei zdAF=eudMB+2@dk(sFijFJfClFa4y|VI&B@El6T{fHwp?}q;cQNH@FW=JGy?FTIPN! zLvX1kZT)C^us=SK0-z#}b2Wp@?6)rGuLku>GZS0$WS4gB25g(l&XZ>v?7QEuZml7X z*~p>vqV|VeoN!7UL*RKcxamx88Y$j_4MO#7?Pk+dO5gT;T;<$zhFOj zO7X)YqBtcA6UXy(z%@FYM?NzSU@Y7s6y|tt*x`Xt5bX;hvcWH472i~bH7IGhwbU^)u zw{xC_GrIcdyw({bUV)yn1V$#oKxv^W% z+aiA287t+s{F8m{Nub>h0YC0Co#P*cZq1ForRxv~rxaLZQ~(($+@8@;XwHuRzFDsf zT+P9~z4u9ijR#LoOAd2y(0@+c5X!u_T@lJEHaQYepL^Lz;ZX@I`oWf6DjpL(!xY={ zNY5UspBIyDNQ-N}F|Dd6gpM2U3)Q@*SZU$sUo_2*=hFiSpC`UlQgXFBK52gutKBC{ z$|*$87fDwAoXy;UW04rf3MAr1)UMH8arXzFO-N1_w3L#CrCWh+b2r`GG87TMuc+YE ze*w@%^2B%M|7gunZ5Dd8p5M`~sAC?-Go-Tq1+q{%p+v?6%lJm^x*&0c=@#B6?>1c~ zr&X-$uHF_}^Q`V;)lP!wDjF!P3Yl!>JaQ#wv~jT`*|9!ek81nvskm%8T8*)m^NMdd ztNTjWzi!=0Dv5g4s-xT7eX8*Db3A2!4}i^_ldU^k*d1U@Gf9zEw2A74k2omQy!|do zdtZ;*ImUwShJ1!a2zT!25;vbJ-HJ~S_j;eE2R6A{+I_K}R?bBO@51YRdKB$Y$tnGw zFO>NmqO4ug)8%g18ZfbeE3`8l513pKs_Jx2rDE!{Jc}=8RD>~&Q%s6_=C zcTXl5PH>fYP!VT_{Vm%Md_FNqS3b1%uXbt7U|C?wLR8N1At&6jS#j`62wkTpX!1Z`s_hVkPuyWb3R-rEKJ{Lqf(LWh7-`{c~i zN2xowO`-k1QT>>kZFIMPbIq1?`N5*ds@1jxjX9dwbvo~Z`6WNX^_XNTBL5f|#>Wm# zT7R$6rJ>QoFOT1#pC;Errsz4fesaDos08EcfLr);@hAa*^bTfuOt{gih9R}}ft;Ns z$-G7ZVHz6=oXV%ON%NN1eBI@~FO&60-hMj6NFQ67*|vovU$SL=c$ApYDBnttu!PsX zqb8!Qbv*D;3zYmiY@TDy`Awg1ovd_!eg}x2FJ9%*<4EUi82gCS_kGrmuyWmBoH6S< zsi`k+J>r4aV0V?(ca^J;3YAt*B;!?O!ca%wd8||)vfU4CUi1^haI&>gl=tvso*2OQ zKh|e7FhtiaPORh|vMSklz#bVV#swXR3521+F&k=FJB^Pn+^u0Q3i>je$tkjaGLP+q zB>#dE&a9FaY^XS)_2-TWmy3b-{4aC2Tu_P=_dkpq_wA>(`i*T}(}7Or1}@G7WyA2y zrT^Z5rIt=v>hK2-#9#E@f$2W1={nt`%4zCXKx-{;9cfx-mBUOz>Ojf-R>KwTe68E; zU)ju4XQ||>z*jxT$->`coo)aFnm<*DNyW9NQb=*8P-gzxu?}dUVdhKz+S$)5F@xoK zQ0o1((Y<$(0j!4iBYlsQzM*PGJyUzau{oc6re<199Y+`+h`c(Y6o(}Rda;6vWog|p67l|{wQN*MYO@n&LZ~YXLzw}8o zh6}@PP7Upo&b#L$P2+;0PRSSgXKycQC`kFn8rw~pSW4Wk=SpfY+5kv)#gXXof3pB4 zu~#mLp*vMnqbh~gl#vFyH~aMvII^34#Ka(cvmv(kXqKoPrfL%Uflv)%I1x`s0} zW+#2_B&i@&fGX`jxy{4&!Kb+95Jnh~$VP{p$)t83!MM{uy*!+#-NuhaGidZ_dMfJ@EKS+2A{?osa6 z&|_-1JL$IL&K|F;H%*_UVlJS2FaC_#=|w;9BkS%WQXIbATqup*UHA;Ww*+C|-JP}7fU?tem zTAq&A?$m>GD_%;f-a82*^xR;$#ZS@~c$uxa9@lkV=Hu0By6wS_#!k(D@NQ8$O)o<) z*JX>SQVln4>aM6$9WjpySK(cy(Ow!Fm40`tp3b@N$xTruxJleI)))wj;km?d%GO>j z$FKIoWu5E~=0Ce6eQ`3Xbe=5pUcyZW94{G-%ajd(d<*--%AA!Rn|VtV4g>&kTHkHl zU>k0@(N2NZNPK>)sIhA9X-(JeJ!1e%2Y+^)QT{+KrI!}{s{1)2QWs_7y(q}Z1h5*b zE?pWVl1%s$0?shoi3X)0s zbf(D%{0Tw87-(Gx@8Y(Mau*p*Q#1c5Ju{SlVr=Ha5{x@X_?-Xvt=>!5Mqp0ku_NQc&t}4Bpp~?BBJ7qx=f1XcCVRxHW5bJ_FgyW{Wqn= z1^K@{O$9okVJzw7nr^v$n!qCq`x3@G11XR`t#a6J*K6Tj;$lUV#n7G(H1iu(==aKJ zT8A0h^h+%AVk9xhwSP35F2^Gq_geW4f()~MiNENquIAKI>yC(|eI-oGA=_d9AqgoU z$=9>X9~@&+g-q_pX-t=4$G;=;`6W9~^?*NCmZ)MGZNg%$U&CeTyx3j|k@iJc#qJwN z-RP!cyZ^40S$;N$TZ4tWM6w}LuuzCTbl^1udAFE5jCE4!qqVA=!}HsH-Y`WlOXP7% zKb;$0gheWQ6wf$pgJX%uh=2DoK|JplIE50580HiZ%`}%e1^*B0N$b#*{SbJ*PWL8RGGSJQry5305f(<@vKZknPF@3K!Hw+?;BY)J=fo3c6M_sIYwvh56uAzNs7y4 zL7Q0Cf#Z=ruwcRajfD7^1S{oA%A*u{-5UJfuEK;MyTO_lU4c+!tP7nb$=#Y+IU){gXKzO{NdLJ);|J>7F9ZoYVy)ee0=M@RSQ{?-Xxr zu~kgpS~00X8uu<6q42U-Y(N_xp0(7ih;{ia zPffNQM$@*rx zydYcDXUYY`SzGoyGd7^G$(Nfmn*Hv8n_aH5Fo7{ORNhxgi+d^3N_R}Q#(rg2Cl2sz zeshmlDVDaD)P{Fk@b3!-*&Tn({HluYkJa}sS2;tO#>H&)(BAfC z)0b)8pYG4gD-UEfkbNh-q-3G;`CC_yA=`N-*95l_TzSdhSm~KQA{?a*muFWTl=6f6hQV z{$K6AS%uRJUp~2=!N}TbEm-yFw#V1Z{e;-SgQSrf zGss}BNz3Q?hX^k7h;pxyxL&rlQ`wetkg^c5-_QSnhp=uctt8^`yiB_J2FxO1bCc6scx( z0#)6vsllwJ`wRO@bjp&tqj~XLW3tXXeD7=sNGXkVC&KF zb|tSaY;ydPOv?SAPdQ!wqP>8k7wqj_0=b?F5@Vp}hiT-=ciE;XK>=}+BU|+YHfUM{ z-s4gm?aND>8AkV&Wp8>)4%8^i8-0#OK!1U&Z) zi?xc_*u*`DTyh)OG-9N3J~PqS(c-Ab+{&2(R@s+{Jv6^2Cb zLBcHR0~CPzoPT8aD*t+!vCgJwce**svgdZPlRC0Lqn;qkd1W5bnWe#6_X;Rrhi{FFLnZT{?fl1hq6l~kPxy1DNj;?jG>gar- z)C)=rVMfz!JOvD|LGD-Ib6s!xl+~E_WzL!bsA8V%KeUN85G~hn?05?bFoveO1KxUZ&j0&HC*>l&mcApezcVU$MH?1VL=tG03i@M(xg|BB3%@S^se-#p-We~fWD3A+@oz74CvgS7+#vsv1von}H%CnC-!mZ)x>ZO9iz6^fDSGYBaTZSJ_ zKABqv4xTG24-!8UeSaw4@$OS?_}<$uyn1dJE%<>9L$Of|kalBZO z{5#J?G?pd@6N+zY5PWSih@?)1!by?l5#N<6loaEM-!N;He>5sfj_4P5vc-|b{jR&! z{ZebP$+McFGQ$1bL1)?z8#Fu;9}0kZ-0cg4ibJj!?i-a4+ddKyr;8fFTT0&M$P87y z$0f0IYRUqTI`Y|;s`M?U9>1!tOQi_C;kh%F)+r1|Q_-^-AG+N?g0^wI8n>b1XLi}} z)!m38*MVqMz&Tq*oAo)%gOznvEY}siu@`YgkHDZ1gapNA-PhuLv)x z6QoqbE)X$E6YHU+<7uWS=Qa8BEmjm?tqoXxp4J|7eL54|PC3`DKiKuHyCluL3+2&M9U7C}kuM z8N1M41D$INxgQ{i+iFE+mTS~OE-6esXUFlW0mu&Z0ze)&ANX_avK1;ctV1E}&~ zQs?qPWwhW#%o3t^O*92TYovVadDnQ}WI2><6&fg7{c@J(Iiz>zFWxrQHHw5TLHpLM zhfFkWLUM%Or;iF7G<5_x)B?*>|0rAl`=A{4oU^^d|;K51>!6zAXvzCVV^+4w@)+V$+F zLU#*#%-vYH&S7j7^seZ8b}d3y?RlZiEqW|{YmY~OQ&6b-rayfzr*7$W@(b1E50a$1q( z<&a2;+wo5Mx)(OvBJW(o4uRy`5XkC)dzR(RT;;m2!g1z3`nck6~G~^*CSF&~tQH+yI@o4fJToWy1Xe*U*L<|Lr=MaDqIBL%R$W%r*~@O4fl+ z1#E7(XHHjEsM6E=md`K`Ppu*bp5G=qqC;g zfkHH6r&b2kdp$39`=pcZgFE5%hrdF!i>6+)U3Z>8xfqLW3eQfnlB zT}T{-P6h@Pg>JRXQsv3BN=4*4(G;&Q#aVMq*{j-RhX4mp$3VC7N?f0{c&;9;{gnRX zHa#C?$y!rQg0zC`^MlT$wEIAsb1L1II*nJPI%t>k6n`VeqwHAV(abk(2PJYdVyGsi;%pys^pn(dWuU%?D(Vl$QqebJW$jJ5 zcr%;@a`^jN1+8+ShcwN}ksw*6}< zMc$|DlZmvpidF`v^B;DikZ74GQ2?ILytM>dAcTFvRZTCl?F`(bG_a#h)xYD~n#2p! zfFWV5n)7onXbFuv-TJ%(8BKQu?oj5TFrZwwLrtry*(-Mb2gv68OJ*hEs)wga@H9s8gzO0q;TNqFw7#)5R&Vicl z?*7KL%;*x5Pqys6!q^I{GiDfLavOhk`E-`s;9jCN77LO#b{Yc-a%%uwN<7cwlsW)M zX!#<^lIK3yPL+0eStsW_ApR89&N$$bchS+>F7cOfJDxXTI?^{;JdB<;)5(Ycen9PS z;Osi}W3Ib;cw+T*P1V=&v1;kyr{|@@rlyIq&tlfre`#Tbjx^#=PfAyJ) zh0jLRTZ936A&?uONrKl8Wy}an8c?_Eyt4WEDha_p)zR?gi|+NGG%09<`yMrbz`c9( zWh47)_IZzTFLbJiO^2p0AXM+VyHP=gKJ@1miu-0_t6-P89aT}3YG&wm##dJ0N-l(E zWnPe9xUD)gzJD3+cgTA|F%Sji?^Iks@pGy|$uglHU~2@`rE&&<5z?p83G69n{sA>R z(e8^<)m>C+Gd7YV(^o13n)!7zI=1;4?`M&@o_n;SKpvE(#%p)u@gr7jiV=C~wb#dE zOz$0~<%zV^V|UXy`J2gN#Pm@Jccx!FZJM^BO@q%F#`}r*um^&iTESDOR*w?Y@}8=* z`knGEy2~L-`DKr#;LY%keKrD$Av}~9E`z@A9&xXbU$v6U286`E)++tjEl#Ca&-rmY zf@O29xUY_kXZH0ltfGredoH#TLK$RP+95@Fo!jXVinmh#h7nVFiIvTS_yiN7_iSrN zr^Z_PDOFU+FPjZO`O7+f64$?Lw~n!akytCH0?4QtG6QWO;I3LHArjpAR zl2IXp-23^rt~z!B{z&ZH0dx18F6HDxbOWd7Wxac`RU41!U0|2H7VY2f6vtUFP3=AN zVY=RVJ#n2D(y6&HqpHKI;f*vsy2>7@83SZyl>Q#*i>neoNF}oy zAG~x=5B?6$G!j!=+&6yb7!E_fGOKlE3&)QLb##j>gXQh#ICOkuU0Zn-0cg3K^zdla zZ0jkHY}HVP{q6Rq6L^1Cg;_aUnvXgCYIz0i8%>Q^$v8~nWA&o64F1KS#!%R3&%~AS zQ>3C_wwh>kIm^w6vMv=8eZbZhO2%_hkN~!74G5GOHkg~78ECWT+L8M5e8#GAU7Ff) zr6_gJ$8Rk3L+><|%0xo)*z!lbRmH3H(b!`;qNSqT?j11lYc@493U5C&c29f(i^T=a zL<-~2L2ZilpN(@Nx_If4Hed&@VZGP+oXK%6Nq<4I_P)6BYjgu#TArF-Y(Yb9uED&v zvJ1VTqfwWTesX#6(T%7zM~hnH%wg@6q~@}L-G+;Y16LN&vva_JWxliug@p|&T2=YE z6m*jqHU=(=qugD=%NhWG1FiMi+((+T2Be3@bbq5_6Iw~6{eaunpp^y-^|aq-Ty_Vp zY=3m*kqJeVS7Z zpe(~BHl>^#q2S$B!pp;)Le63r}8vgTRM5h=jSD>(<)p&48wpj7bOWY z$WGWz3)Zoi<_jV3AIlofnT%g|hfvNLc|Fg*&s*ev?5Situg{E@cFnHkQ#_&XgX+8* z#n`fkgC^@2WP;wBM2RoZw8D}st<+4Bk_Pghp!&lUto(>-%=9&S;AW04F`VhoREA7a z(X+?>+B}v^Xw^Z)VT0fn^pqwAW=ox_$fd{%wz##b=6an^9F0s`fw z7xP;Y1h%!ORfEoxE>`Xa)c1xuP)$R^2{%%dsina$T<2^X%!GjZ3h(gt6nDW1j5Hpp z5#8Hs#Y}VhZE|01wIdkIG^1XumC?i94X$u$bA4lGm1J`{Jbz)A3GDwFCA?s%{g^! zzCUncWgmV7Dic!yBS*~PB?(>IbDtBlmM8sZgHcO&wZ+}PzC_`px_-z6N%yuBPBhx{ z6UCX_qLR}0Q=f``(ty8UET2<*8U6ivr_SX(;B;|i+j9O+3zCx8an_zj{Q&ddPuzGG z`z-mXAy+iLuVF+sqJk>)IHvyX7CyE31Jov( zclF{#$<~fVhYPSRiCx9_5WCN^9?>mmgx`F9M_H=3Rz(;^^IVxm`u#X>2PgCsrzeeG zh+54btiK2$ZC8e2W!)sl^8isR9%TPf8h<>>4Ha3!@xa{QCF_y4X^UmoS2=coC9PM&y&|5YwV1;(BLswN42E)A7Aq{%IH3 zUOa?9m5*RE2#v^ytfYNUTjOye8iGP(ft};eJ%3Tk--1$URbdLzC@Oh*92IS43f`3Oy30VZx8ZMi7m@TtVpC%%T$L=bP5dTXJl^>~Gg*0W} zQ;Vt>{((IVOpDK$Ohk$}qi||$hoAhNTnadcr*P8lxL=iPh z(Vh}kIQs@!`;%11SZ8lU>v~>7`rb2T-%gV1)$9CaWzHh5$q9H;oHF1sbW8Yh#&%c7 z{Ie~OcdAi3F-vnE%x|es8!6K^@KrBu&Ox?{bxm3Dz=VXL*Ik2EpS4R=)%bzco4{mP zqmT5UU5x?cU%!i~Y!SA+s3rp_ANIK$B@2K6NTq~)nH1Z<4g(@+l`9Cb`(_BI=x2!5 z$Ti>V(mup{7pWmdQGSMw7fulS20?WdQ_m?6rnihS8~ihz{5`^bVb8;X1D3b?O)E~W zhY8xtrdZXC=PRRoGPPd)L~vRoyfFiCxf-}$RSbrg@RpTpx`^l`1NsUW6t2&^iQogf zAT=ZIdNQ@5oIBUx53n(Voxv4OKnT6H$j4Vo06={uEO zOX3p?)ZBusN*@Xar`5SQ9A%4g~;8AFtuDllCtAQNr@M8N;SBQhnmYY_Q-BZj>7bTw$0R3dW=Jw`=}!2=36X zSLT_lFogHzGfL*v=u#?rHaI^YA9!4Mw`KoMD$%#fCrnt3TBG%JE;1BX3hO4_^ZWhAyj_qKEo-bvTia?agJU_ByKcgSgR))s zgfTv-Yzc?m;@?;5btR^_pd0ksXT-PN1G@wPG9j0-%h0=-~^^oT(y z+Awk2nrjy?Otk{*lf^_uy=Wp7tXwq?G(p^uMQkeD3^}Iu2((>2Zub+Psmd#v023jH z9|!1cycN)e<#89}3RY{rQg*5#o>@T0D!$NiQ%nH8N_#Vi0ZGAC@i}>fy~0)0A01jJ z45S4wAV2M;d->8E{*X|o@#AR?m&~vjac*U4IzsnaqV-a0Ep(l)&Wbs82sN$jL>K$i}qOo(*)?j6F_o5QTm@(5cuK`?1-0M~*sf1cEKT z=r2|w8nkazEASevRSmkq8PGC-H|cuF+kG4ptn2eKEI}7cn@6sV1(X|UT^*HpK>YvX zEYEOP`Rkj%%}dv)=4Vvo?sH;go`DgoTN;NChFAoggovDb&ajx^Zw^bZz zexpq&dBU~~=P6}uM1P(8Zrw&@?EPG_MaTU|61p50q@4l|o)Z3kijP!PGxK_qn?YMy zFA=k*8S24LXz%GR^riwa7OmeEOjaKKO>G3_{c4vVG!rXaGMP``o|F}m`srMiWX4U9 z`XVbt<^<~l_?w($4crmYTKwu1?+WLeq56aNM<*ivon%~rBwbuHY3{Mp3sQdX(sjXI z^D#jF=YTvwTEE|eei8A9Pw)y5cKrRm**5(F{^n6D1 z>`~|Wc?@=ro^e-@G^z@51#mUCw+-!C>yup-4}V&dNy`W1Xc*QVt=EJdvj_txP&s$m z#%_`tm`wCqPJ~hh{xhf&L)8GB!Bf{jeEUYL%J6C=Wy0_kCkYlOp2C`;uYyI1h|mXu zEIkzDrrfa7gyF3;Opk|$#FtKtIe}Z7VvY+0_|YU5BXD0d{m6yKaA19L9J@z}_C_R# zdA$FEY>()I6u2KwMgEKGHA6S*$^Mr@y@2%e--%VKBpa$g#x}`B&PJ~_J70~WAfW=X5jb$;?`(OX&**h* z@kc@X%(2Viwil@0#~fFMDVfUdS2J$-G-`=JQ?*#WHVPm5&dmA@nEmqWt^};SC2ZiV zp@JoZLDTEMpuVYI*l9>tkN-YWSu|e!4poDkhs=-_PNFK6g+jL#_vNcPHc?YPB-fFd zFYQ)H9~!}{Vr1);69G{aQ%UvX;)76>^U{$iVQE|C%3PUVCm2#XjNbr`lN+yortc= zegjG+Xnh;!@;f?K4L(iVO?a+c7C|p1XS{q@lUdN8j_t{vit0N4rxZBeN#J?(N^}^_ zWCtaM?5EDyHfXfReN5#-Ugnr+|2Znug{eAFQ$y;D1_-wY@MT+pYp0s@+h~aHWfHlY zDyed%U3$?20T5fjobP_`Ff}M254;AsJq`fk#WVBgfLim!r2i?~8$s7uA4 z*kwa-5s(W=e*^42=p`*j{SaUW{s_$ z{ZftR+3sii=9+(QF1 zHpU*?eogFCq>&w7)%arU(lz`tVkyXEu$q)0D9*x2bJfK)H%J-L>Y-||@bT`r`Rrny zjd*g9w1jPbZ#i#uxxARnRXsU_$MRfie;3@L<}F`YrcvRg{KvX=-Nce&{2K_*E?l?^ zVJ9`$(cZl0S?3x1LrI+|kl1E##1DN54m_&LPQXYR=Q^(zM-bsu^I&Qa|96MK9qqhE zq_^igvknG+iY-La*I$CKg6_*e8PwcMEomF)s1CvOQ?z&XAQ{nA;AD{NpQb^vMcl%l z$y5}kEFkBbygi%ZoH%82Qz70?-x3WO+fJ}RcG!g??a~J>0;YnGDpk?3Ji8Xo`Javf z=d9e1cb>_8yrh6=BP~Vb?U_DrjG{!i|@!Arl|`T3w{_ z7bdB3yJ_x@)?4Hy5f(ERrBRDgUILm0wlI(q-RO^3D-%m#?{M4OuHpJS@mo6&J=5I& zRcDZTbi68P|8_3>7RKVvU9eDis^rHqsj>(8uhMATU<4>CRsVqutD%*EPAdves)@Yb zHMsT=L?Q!HLjuPiv6_v7zNvSqsb6g_J1-BOrd#P;tNQw`BpV4KOZ+mjyF$m-rePsB z6odi`ZE-Y&y1nOHx*mQ(3t|CUu)x_=A4&*WWy0HgVH+yqN3N02auZOR?qbmu%mDhO zC>wjV%aAc~pKVD(XA?(CPNOg2r@yufj&Ey|OTui6Dc0o$-B0!NfK(0r&Ex?g9j|#B ztR}9pa=%b&D!N>SJSstkFe$TaERYd=vFexAZ8Eq6`)ewPn73M$@lgje?O1Z3%K$?F zdrqC_>;}ZIw$zxiSa}vk{qbAF`y7ptjrYU)GOTdxpKSWzIuVaR3>w@ib0)7_FA_zE zypV!2KZ?lMjg7IXLg)f@wEMM^v+U`jHZMMgm5w(+hal}jqq)yEmKv%(QZDgk*hWKs z=CuBzKTu2C+(g>q6t;0S)I0)&YPk6rKlU$E0HKb3X5}7U*2Na2Tb11J zT0{jnAcCe)fHmMCI09O<&KebQzivQ@qYXr~q8wt0(38wkcou@P5AFg`1&oAG!3<3V zOcJ*?1{S$U`TUyWC3F}$|HmKbBnh@u2liL-6`GCv#954>527e#xHeDqkE2U(!`E0W z1XajA&HGE#q=>{Nz`n+_q3@saj(X9@-s}f{?1zoHgJFO+=Fw*`(aGl@5iSAmkakU> zV%{gO=>x=PD3C0wrM1vH-u;_^s>T9&t+bbXEH=Kh45L=WDiqf;c`&?UTS5SxO!F!f z=wfWVMZFD=?&vx=Sa;L~yM!T{%69&;w$k4ZpyU4uhrO9DcK0gRv<;6io@86p4&4(( z`TjOI;V1!2-Eri$(!yZ*FsNj4BRFaGN^ULu<+D(aY?nE%tZ;t-h`!^FW?HBB35De) z5T@s*{lm%#WsINaE|t;?O(mM90j9y%QEnZHu%>3=%9s8cb#8Gd>OjjX1rId;xyFre zc^QDV78?)To{}y|I=S3ZJee-@;$8YCz)k=BO%8e@Rj_eCs z0X(XNzTIuF0{0)pV#qHJSC&m`jRfD}D5)rgGwEAR~<0)NQhasrqM5+JoC%S{y>To6?sXdA4TcW6JIB5NhC*{Q%>yizK}$;_?1yvg9&e zbNU6b)Emyk1U)dgl4(0g=Q~xs?D@x~Hu_V|u@L6_6)}w+bR#y4PPUw0ig4s_Ft3wIlR(}mje|fWGeCYo z?or4yO1sA0HpSJ40voSy7~(c1HraG%f8hAssSjuf_T)6#=zQS;CJqYugwc-q{=v$Z z2L)4d=Eam6_>(z18Qv2uB8JMnhStU1A83bYZ&tjx4u=Z^rbaeVjL$8;@#^@VEA}P= zT4Z^mUv$gKtdJm_kc2D7O|C~vfs_5OS=PvP5HZdN4HlQB_wNclPdwDec)bbrz2DGO zekBx@-jmdzij=udPeaNL_2qhky!VnPjg-F!-#rFik|<_?^tdRCUpUolJh~+nrhri` z#MK`2m_O|#xI|tFOEHOgC(7nf_%GqG=S>gG-KFFAz3K};)NDk3kNNXBUj5At!PBo^r?;|5|K`6aF*+?PD&H=i|umYtA)!|d?miehS z0Y0`v0C-S-DrsR8jaKa3ms^vOPp;7(j6}3=yLL5>+7pLvTttQv&>u=`4UU@nHpMzp zXY8rdZqyLqp1KA#|@exjE9pM;;Qjv0Gvn>;r9lM`Y&)vkTkJxV*nQYSL~Y|T`> zDea5s>7GzWYFYKbv$oBuc~)g7v;5tj#oLEGog;1H3{u_VQPR_ub*RsaQTZ zdW{pP)kH+L@xF$Z*W9c)=Db6C0DXrQ>NGCqA}t$oQQ-l3qdQ7R5>TeOXC0|Y0Plm-8UxQE3!&h z++##ybUDBHy@wtPs$xK80q~puR2Eh?s zu}x7)Rx7q}B}ReI(`w)S5+j{zxZsBAAFNkKZN&DieWsV&<5amjjcm=CS@6#^>9%65 zs|4Q~nsrwuB0O^zR?EQy688qaSaSXrI}gv54S1IIT)pR+vScuMit_n8x=3b0W}d^= z*A{8k%^W10+f126(K|D@{CjoTqiK&CkC{(<&vfMWbZ70b1H^B|gHIVav6yiVnew@u zE@r!2|AL}v5nptYVAKLHfr4)JIdx#!UNhOe$yI|z$XFjx6UX;{Lkg9eIGx(mW?n=0 z0-c&CXHQyt4~}L(5V`*iveBmh#1e|+@<{r&fq7kH)}yy;SL>Zi4a#@ea%Lk!HY11P zR(5l=s?jIk1)V+sA)>&Bx|TaVGPS!c^~(Y(J%N-Dt47LN2PN)_amq6;ZR^cgo?z+7 z-NKdggVKLnc~IQI$|_Z}!XB2JGo71i0l{E5xamrqP@i=aee?B?**`~Q3a}Mg&9@li zhmH|!FfNj^Scj>xIkqQIQF|l)97a>SNl@Dgw9g1A3}Kc7d39R9QL$+Ky~H+nPTmF> zUm*J>_Xd$_F2#sU{05-c-YIln`*k&Y;|aQ``%H>WJKQ?1+aVj4%L*$&d#Pi!D-yUb zIRrggVWNuLYWK{bUVP0oV=>WvehI5p?Y$7kX)@K90?yzP&y zjeGGWmwZRi?C?Efxrw~$ChELDp|+jeabem?uOH+Is1we(PY}G0hI|o(R5ZF$Mz`a_ z%B9U?uR$^GeXy$-_!N=wb=da`f5hI<@k1Gr>}8%dXEuO8JXXjx>0+;H+Dwx^WaN^H z;Q3)Z9{FxM3ZiDj!*EH3^Pjdc{B8E7W*P$L*z2c4>rC>W#(LKNS2d;&t!T-6=D9(o zOi69Ry(X%wVV`+37w6JbYwZ2l;^@Czffh|=CIJkrJat@UmkGI!t>T9OG=bTDEe+nD zVIyhL48LMl)9p}|+u##-k}qK@Hf{Nl4XK@WEz^@6Qq(Mw+3!JRHc*L9vxaxs?|o#y zd!xzJFwXq>t3wzXtnHCI;1`&5>!N`mv4G}<>xjNkPql^<+@v0*;JW(G0DM`~*DYZ< z+#z@udk^^ODgFeAc$5|2v|%K?H7Y-|L;{g@VCJSRv%vc1>mH2D_tSEx>X(Rc0W|2` zQ2Boi1QGY_gE#KbFB8ja!;R|=R|*K9g~}K0WX}3ku=u51JM$wI64UVtrPsQb=TINn z{x}MOthIG`>+oHos@HRJc}|yWgP#%vfL_7UMU;q8InLwW_53Nj8+3T?b!=d6&Bv+8S;edn@l8bn)aR9^T?|Z%V zcU+-jM89E0JBAJ=etPBsM{}ClicyFc+_b1bYGZ*hphlF6hUIpY-apoXh(A)}4p=39 zY=j4?68?XfPCeJN_@t>~2I-jR|>t}Gcvikby zr9RA>1K&`rwB_Ii##Jh+HrbI3|5!vdbHV4o)-vOSvOy7&9Ak>iDhb|(x3fWr*9&l; z3a&Hi^Cu|qI))Sa&Q&RkcwJgeD-5yp0ap@7t^kC@U3D(nn(4Y_C}&_&Q2rpvh8s(p zkeR*jIDY8$tJmbq4TS;C+&qXM@{jBMMftT6j>IZQ(39xp zsP}!f#8>fs#YC`dLZ9=tT_Ze{`};g-?mH2{nQcNX0H7hWdmQ@=EfpmP{+^@?v z7QvNd&2-ZbSF6Zk=DS{Z*5*k*Wm20;j8uBXmn%2&`J2^4r71>R%n1J;g6Vw?_niRmq`HfS)B$q@SL z!Mmv%QnPa-kd7wD&{}+uN6UQ6bkXe`*!rLYiKD;+3Lbms=*|!|f5TPtjg+XgrT_Td z0CGQMWqf1WwauPB-gqEyMrC(%04NbSt$x0~7dF3Lo@qoj>&A&&FF|)lJKWGk2Pe@9 znn~V7c+nKJKCR9l9C;~j$dgy5+sbVH)wLQAa5!W2|I<5uhDhoGqDAS%q(8b;Wsf~0 zNU%0<(0R?z0GJRr+b=-9o~S}z&VJYR{PB>arKSeLAQ~>L4!91S*C4pT6TmdU9Ao|p zh6njt7Z|Cq0AvP(1zD)b^OhtScGQ-$9G!EbF5!6>vpBfp`lSOnB8RDpjJ8W@%L51Ty1^0;4n@J@2V z$ptfbA1w>am=U{7>#p8E_oqN`U`%!jc-#x`U*r+it8uJYKOA(yD%unjT+ds(^_IRMPWB#|}SFf+MXb&0| zWEh*qHpp4LK&7{Y>-q#+B~05p#kLGC>VyMfD4lX%L;JX)xT&m9XyK03KCrwBq{v7z zwfiizLKgXb<1_r8X)flYyskge4{>)LsI+XTF7)@=qD?p>@6NusZkZ?+-EVKt^bZ_( z^j2=9Vg^Z@Cepk*%_KtJ4xku%WP2HGRc{*1TR3Hyw!7B#qI^NbjKm+r_G_)OpBYChi>(KoL2a)L@tW_ z8hBf`n6Qhhrchc^oQ-E8*^RVmOIIUdzL$Le(E{r2t>BdRQ zEB6bIr^r)eF8#M;U;_yr5Ts)B9z2$k<9!GuSS4IDRQ<+Cw!}m@V%uRzGZujZpNVIw z5xsHcDpwW5H4E7LJAK#iyinPW;$9}3!OHiEOM*cIzuC(4q9r<{*(iW{M5%e3v84IN z%{VABzBc-)WPt?rMM4r4cxyUKT43ZZ1wau#n(+<@+H2N0bMeV~MCI_Cw*6<2ky{mc zvIN-U-5tMc^5k|A#!$ehmK1##x=Retk>7T%YEA?xr|JD%nG_bkCLbS`4MZI8JUw$( zt}9abwd3!X>tZN7du=RQL^i|YkzFDEGg>R!8JqOl_-hm0*3UCm9sEa~0^88@bvzaj>dIP`L|>Cf=J%O zyE9Pf;on`EGoD+szq+_)JQUvf@5aU=ZYlX_C1w#KZr0VZ$j(a3}z&&ZZg+=>pVI}p-X_Ftk6A|C< zFfD(7y63m2PjsYN9iH@inQiiPsK!B`zPzSIpHBe<_1j^cDe;ML^qw@Jm>U$`@qMkJ zk!Ink|Ma=x<{Q6`+iK9Lg2ou*Ztg1KrnhTSM7`Ww?}L_f!`olp{+$11 zMz<&~vdy0Fk;1gfll4;ae$-JmRA(|$_-GvJ`QnGnSd%Obs4cT8$GO93Q}pGH*#y-V z_S5l-$Jy3=OZ#kn+O`Lqax;h9%gHV-oA?R;WPkjpTPo}o-7`V=&Cx@T&qN-4i!~14 z*%CAv8;e%Tf3>Xt;}UxR%IpOVIue9expX(dpg8ayHHC8YN4;TdKcCvUOoybpZ+p&jvLK;RkFs| z|2B)*C9yZwqaBKpIfXL>6wX#L8Ji_Q_V}tlKo?lTW3Q#qXw|)T7jkKV*GN1s!z*Ll ziZ+ve?Avon>^10io=@5S+1(QAvEaaAt1B#0zy3aMd%&@6=031)@kL$VG&`fdWBTPw z!ZpbJ(_a?p)lJycoTtofoK4$zSE(yxc356&{S|qqYZx}k|MBd_ueTL0VITDO(MkF| zl+UMEZmU+$=EHw3K4iH3ncrs^EoqnauR_Hr0jatK0Ia3*mr5oNiQXRtjy)+%)n3R-^o?&nBqRk`|oVvT7O;j z^>+9&>TUnt>ugD>J;h^d_I>k7ib~zq{P&2qHj+PU$oSeFjgDRSUtg`6RFlgy-vqP|>=`gbTDt{mDsP&c_sXy&)sBDf~=9qoMZ2O{Q z^`TDRMqQZa8zU9lon>`{?RRNCr553?FGq!{T)$4b3`rks3aJdHENn-3%2wK)kd>wU z_8^?cZi5jQ_*2%nR~P9a_iWutD;vF(sAM0@K4*fV)XF>vt~Yi>TD0bd3>6tzz8ViPG5c;rWZQLlL)B9 ze7<-I(?obbEWD2sN}-WM+iR+& zGszge$q{2AiiEF;+z9Fh5uMf^D(R!B77)+I8kIJs6(Sx8B-aTT^>@K-03j0ygb$R` zD@=Gwe2|BHwXUZTf2n71>IlijvSS5rhPgN0RIV9x#*}-YS$trWc+x>-Y9qP(3|y>1 zLr@?V2@Rzs$2tJ^@63KJ*u_qq8mb{u2or4@cGa*iOB7eF%(8h_M;JIG&ts@T9cM&l zSPJY#8-{>#E->5ueO120wD5LKazH=;CfxPTHG-X_3sS^Ct_7{$rNTJ@3Ic1Iag0!B zCUn%b8?U0U$Nc>7A_b0#isK$bgN zTCc&4FXCIpHtD~$rLQu~n;?%h)G}r3jt-~oT&_(ls#iHv(3|@dZ;C$X*R~^eZiuNg z%6<~_r;Pg%`!ae10_FG(bvh4%z4#&R^;wwngrXMwNlO+vpWCoaT&P}??fcA9=E>{H ziho?+WLiX1@M790B7S6~^qZ>-e6c$1!01S|wWIk`xrw<;*_N<#ZGT{V;_kenzuoof z3XI#>v46OOEazUIP1ea1+^tJbfKK5WBjv#Bs3$muQ$}Z(f}VSotoFq%dg1flX+{@k z=)_X#hq03fN=q%NCj_flk!EdwEPDnQXgIG#cmv(F+%m13q~4;rE=%(FzUyRU5!cD) zD)T#g=iQZ?A8LueP=5sR^I8o#$L*S|-=%mnv&W(q?~d1Z=6pX(rv2RBl-0X7_{&Ys zbz(|Hi74RFJ1PR0wo1L6wbceWMuj zLQH{B2lIHEX(#se$(2;(&_YjBNJ;t^3f$Pf}imAyl=l~VJ?4k zlY{-+!qk-3T)+G+KwEwiL)i5QX(ZCNCYF?2(0O0(y3g>JZ>9k*vS z?0o8b#4UyMX@QGTp1^b|?Dj7gN~fSqs#8@uhYsuc3sq3to?6&I1}pf)9T7#0Ltb1uXO#RvxQTOeA1Ezg;hsN}y5hc&EX_5zW^d&1RL4+BgL-VFo6czjQK63g_-BxuneN=1lM~u0 zSAIW=f!W5-Vy##68eDBHUidfNt7bPW9@+&bH(FA0y?26rx@&r`UL&4oeXUR2zT)L; zO=e>h8kmbzoq=81SHT4bh2VE=n;8LqYy79JsR;zr0yMrwsty-@Rh66gET3nD=0qkE zB{b?bl-umk{^5P_dVkSN#lTEJ<1OffwF@h6M?k(vS&dX56aEWn(k{>KKx62 zrEYRZ@xK+#)eh`+SM;S5n$nM|&@QxdcuTjCCN|jm`)bfZjlz;dJY3DLjE1b{Q6t;5 zuV4Xt!Vxz1$7N<1#+j+L2^Xi`j$ieE7}8VS!>+QE=+T>cIRO{=&0+)tx*A}4&@y2W zFqM}XIMs3?$GT5ROa^YzeHfKycXGDLl|C4IzLj}w{~n0jk(8YmHa!J1l|QCLYEPIeLovt1gC5LRVDqCUL>0uxY|QAb0JW5 zD~ck-vPCr~VH^mYKd|X%cK^(CIeeEICwc|EWBtn)!x_VA?+^{ldXc)0)U@hqU-dVY zvz%#n&hi=dK@}#NkKcvs6U1T3V)(0+>EftK2Bew65=iwqWOuQDtN)i=0l z0KYP4MQvPvYw1a0kxaQkHk0oVNt@rR>U&=+jS3@t?>;oyRH^FYV&CwdiG`O%L_Vla ztQ-_=6OwbF{OT2JT1R%$4;00NU|pMQ)=ZUz!%uQ^XNOd}*s%if@E63xXc=DH#3taH zyR@+i?ig8-S#Q$fmQU!f#R(Rtb!5nxC%Z}?zMS=4^TYq%7q|eM>P47OsrG?2Kj(!c z?5;@{9tlC3X<@((4ZoWYM&v?j{Tn7@_$PfkDOZZZKPLXN^i2`!EjitI|2Y}W`GMq{ zTsMkE9ou*&6C_wsQz_mdcjweSV#PoUR?2K}(L|7Zb<_6q-2Gd<;!zjrCF z{t4r8DbquGMO+_ z3JSN}d!)^!^^6ZYCD7CD^=Msiri;;hOw_3V&!0JF_Ft=KiUJ1B;2Id&pf^V-g@yV+_ib(UL4c7`I`;YhWAE9 zo^OW22QfvNFBUtezeN7NWMh5A`(>BcHSuMv2^)cn>%RZd=N}~of$TyJ`06ZqrVAi;#6gpTarhM?YhPrfP)$d9Ya?SvJAH&ieNv2tFo1B&M8d8+!n(=j+=G;b&|_ zqYBh3{DoWkSZ%-$5=Ofi`oDKUY!mNIzbCK)VK;}v1z1ybCKeeAE1IkKY{(4;! zK0sa;WOf{w6Kt4jlnSl^G(U>S88-S(g*ejy_8 znr!y|bD++NYTb72fa#%uK>KD{+Oh-eh-&wrvmo4^+5CYIHYsII9J&;=j(B0*=(zI> zZ}yfHB885AuB^!Z86#$#lwh9o@{E#c-7EjmA2$|XX{-t}77GdLI24M${~p((UN`<@ zrR#hYf_bMZxFp44Pv(skW7ymjf>;H9HigctJX+>9^_n*(|E|IP9*)uGbepD5+fUT{0wt`0Ox`;ZD$!@ zMMBWlMFD?$qj|&jproCEYBtlJquE*l1h$WDht9jTL1THC7JTAom6m=W>PRRc-kcG~ z){mF*pV*v$1y1qx7??x5G|3G&D4wFfH+4CE`d~fDT%}D*_*=VZ`3@luF@8Er zkn1o5v7vyr@cxu9^3UQt0_8gx@OO@>G16cbARaYf%QY z9g;}T;5oxk$=W6B!sYw^vII1w7NfXD{y|Jzx27uI9)i0uI%knK_OrDNqh}*a`di6d zhNvfQOrKlcK=)qSl=b%%p_~)mqHnL-Cqp9LBraUGer+Sef@r(*zNb5N)JizD^^QdE zRv92Pv|MjJF^~9yT&WWK_7{S-zq*B{u>a?qcQ0WEMhdn%ld3>oJ+EhXr}hTb@8c9Q zK2kU*gndDS1zBrX)#au#A^P-GrPkftb3IVXNBN#|!yo)~)^8~;Hx?A1^YH6M>Lzwc z1b7ogj^GgPeHApw3jP?xtq5 zv@A;%Fc>Th&1)97uCqwN=~}Zht@0z)`5GCvVmPgkZIdw`Wd;@V#-6cFoyDki#igqf z%tf>3{?S@6da0$K`d3mu1>|602@52%wXAdx1m7`aA?mN~BrSEL&x;8Ff0(EG&Hg@R zAcpk9)fE5dT;{*50UePOedgY512PYI1sBTo95ZSnG^D2gOfz;vU3jbCDxY}Eh{Iwy zt3_>)tvs<{)c(871F2U@)QI=@89*vC7@lh{u68X(s+UzS>@z$o`pw<>ewaSNTuWTI{Ud{FFXeANYz^Uf z)O(6`g7H@~B-)NFpB*I)DvRGC+v#39prx@qZF@>bj4cMWJnTaE911iUL(2h)%b!v7 zA0UL)J39tJETUABVLYn2e|2A3q+5kyl-0iQRZ~zs^;C>HgB-T}-h;us$2tH1bCN&K zl$=_e)t>mes@=T!G$=wBQfHxoeI*uq&Pe)1y*!4&zvjD~ck^~FA8W#Y#OQxRj{l0$ z-4q3T5(U3%3GS)X;DYsySLC6JRdrlFMLgk%-QE#|0__`p-@8{j=k=i@j@xK{Oiecl=2S;1z3DPIb?89Row06l=?oOS=1Q0<)nhak@VF zSzGM-yzlE|LjEjT4}FcRL-@dm7&<0&DR0h6TSsDlhHDe|?zxX%&ZPc2Dssh-zN>lN zOd^VeKD6@xUZrf>c`tvdVf~`)-o-gPxqQ-SnZnKx4}PyXurlwV0A=cEWPmbY=seeK z^)%w#1~Kw>ZNzlO?eU+O64ctsXn@h1Y*vIXV@1`@_!%eSBKGqRF#x794X9 z+MV+TCHFbMqvGPqo$bc)^~HyP{0@einSf-OFy8VI-Rn6%)$GU%FVr`{9lVF9N+`)1 zcwAKZ(;?C#Byc~GbRP1m|9Cot)#%VTII-u@OT63B$1|z0Ln8S~teJ0n7i6JJpPyec z+o)gQn2MbP)@J=}@DzTyPgO5vIkC~4DIuT@dDqvNtV-EpRL9P`iY0;n!32>$?b;UL z8|Zx1VX><5WrHm%m4RD1+Hso`3im%imYj2E-mu(eV;o{ ze^T<#=um^7j=K1}NQ5mizP7>c+ojtKaf<$eu% zy$)+RUVE>K)%!v+w)(^H?45RBhy^_F?dho{3|_Wh;)S4F;R`@PF0p$SX-?%lNT( znH;@a60I5^7&4O1UXeJ`vpI?DXiLvKB8zwuSm`J;i^Sl7zX!&`*1O%o+bCn)8vh()v=iw5gDn z{k^H<>B1`l|1iP{G?`hCN`MSdB|Sm?UN?G855N#2iaJK^-1+U7P(kJE#%S;z@EkYX zl)XQgF;4#l zUSU5&M;v86)t!!_CABnGX$xBag#MmQM(tg})KjpDKC{Tp?jH2sr$h95N^rvgO1F_a z)v+CR*c(KhNSbpy>~;X{4CfvE)E)Kr+FTI#C#a)?R#qk$NlW;|&)3m`Lw(6GLZJZl z4@n$ULkb)yCcZW=@YPvQbML*6ArBGEpiVioY{qyxHMVJCUqwBA$9~qSoOxA#|GO-8 zLmeGJisgD>5^&hPQG(jlL>zTuKrZtk{CasmF+SbuF3zuw0@|QlQCrsnTQAaRIbiDi zL7#vz1-XZdkv@wlC%qqRBwuaX#fZ^%V@Gu!7`u;+fsQxT2SAYd5d3dP*`5^p0sn(W z+QvmNZKv8$x)eui`|M1cpFnSC!F<;~wx5|YGhGPGQzWCEoySRTOJCC-&`UH?I;6e@4$4+IgWH}FlcuDQ>!fHog-(x8cU#;^))Rc?7oz^v*h zlblRBLU!yEqm&kVC%}|yf~@kck`FkrZ9)vSZR=rT$jLKh2Cjko z@c(!<*rBTrUi310!41{OCTdZ?Ns;$a ztYLkwx14KAP6=ySa0LP{Pm4?1{I?BYQC)ph0aRe*S`(qa(ZX-=$i-da8Q8JCmOtQ2oz zNJegy(6dMB{{Nc=pveT$5@K+)H{RPIv_!ttdH?m&CD367kD1jNj|ZhOXqXbV1|*p6 zFN_?w-n}Q_*{&Ys?xKQT|7hJ2Q7Ig^5GkaPU38TdT%Jl8Wxvkzu{Qsiq~YKeu^)7a zCD970f5u}=lD~Q#GNHSplcXFF?H-Dq@AEYM(yrlmxcuD!n`CEUC_=uj=jj4Mw z@f#Hl_b&^uYXDAp3z4V#A7k@UnOJpB6tiZTTs1D%xyPggY_8u_{q9$q0D-$+$c(b> zIOlbuYJmp*?=@XXu}e%-$W+F0yLEJe@^=KQn0T>I6CCDQ#I5Ro3dvn2>)1Xi66o zQVbRJT4d$@Z7(tlH%3G3)m3lLOx#T&hCt4NnfVSA# zb_BqjxC<0R{rRYwtSI-52*pzCA=95hv;i*Vya5s~M|AE&JMYf$9%$c1JY!A>)ZThm zU4|x_^1;i6GC2oKe=(v&kfytLo$*-7+k!s~3|bnvI}o^1C?0q?qwKSnbh6sy25@%> zSUj}r!ulp?p^LtQKcxIA2{%bqEc4si^}50aSN<_3Wg=iyn*-JtFsj5aoJ7VCAvB`S z0BGg;rhHhFPedb zV4NoJOe%XJ`={#XfW`m$Vg7|{Z7{6&wW8OZ}d-3{wteHEOHz@H)PW3xuJ7N_Q=HeKpm_;w%xjxuwM>F-;kWyAbh63(fo%hpU zw+lnHwV!?qQE+6eeDW_k-xtg!B<@xPlefR$5B`-oUUxK-6YD%vasID3ZuqWrPcRz# z&DA*v+94q4KP%K&bDzKkJlqj{{|fm>Mkv+mH^ZP*|29O+51uXkY?a809J^c4krTlB zYxad(=ISRoCk9xty!0VerI>KyTG%eS6zvu$E%c$55Htg>sua`f4jrJ9hwk~RGF8B6KU61ZZ~Dh!DXC8Y3eiTm zt znkbS^2XSAV_B(xmyuMDepiE}6AGgMf)g3L$@(!(r71stX2_>7lO+@y=GUT?7a7{aK zt_+2hPA+qbDhp*S97cMC=JP7ZVmxY|DLJ6&0`$G&TRnyZUZ3TB9BqRno-zg4NvH)M z?E*2bYk|R2ZV&5rf&$wmk%!?MwO0k|4kMP>_zFwP<(4MvD#xbh;<3ClitpCJKIGjO z!K&gGzbogdl71_ihK_g_Q&OsnFRoGNen}HuoW3+2&2*z)AhT|}78DT`U2o_E{^TivT))L?CEy$a)A(R2QiG1BTU=ptHoO*ctFnbf!usbjK%+ z?c@VGRyCRl#n=DtW=GtRNOvK1`xXf0K*G|VjU0@jetK0mzwx^f$<7Jj(E?XvY;G*?h*1zI!!epfO7P`#mSTSdOcr;0&vvSa1q zI?uUOu!ZqzmEH_6`7(2%zI2*+byXZR$k&;`ls@Shz2wo{Z z9lqt9+}58K{--5;^9o}kbV1V0uS3{0{>|8%KsIH8VLvY(skbEY(h(|1%rm{I@S)#e|v0c*een2-p+f%DdR8Kh%$ zibqdJvNG>xP#^Hi93!%HP|31=sIT!AFz5hH-~S*`E=)lB`EJ#d0^%hsZ&RL zFw%?<&2#I~&Wu3Q24rKvqyf(aKAP0DBf@E6IDWUKA3j?llzpZ6c4x{Onz98As*v&Z z?3PKws(E`2$Zf!JoOvKaG~or^zn)eeo{T}-x6R4YH`C|l=9t#Em<@u+fi9FJ-e@+A zPY0HaucJ-Rh#l{CfaO*)WSf>vG*NZ?maC7SXRlzWSq?Hp*@N(;`Ldd+T?Df1ElG$= z+Qb}E-B9bgJ5XmpOZHo;hW07Gl!T%Z7s?)G?uWH8iXb>-l0W#ZL+t?bP6gA*C@LEcw#=2z{ASCb%3R{(@?M5Buy%j@UHY-MU$wYD z?t0L0-85gZZW)&71vHRuS)ne z8FnWCp?y7Z{> zTqCDnZWflXDEM8n5#~C5(&Lg{@=YB--Zont@cl2-*e#c633n}BMjB99+@kOD>7IH0 z63@+LA#FJvAEIG7c)*^D%;M8T?FD1K4IQt%w!35aJuvd_D?{6kZ1Es`STxh^yk;Pw zkrEFw9yuapt_>)7yr~^;n`t?ACu?JQt00a#OW_h_9=P{84t8B_14NA5lwpb4TxkGo zkIB)D7>p2gqH$)NXDmiXbBMx9dNI)cruGky=@o>4U7Q2C%{`)bVq?U0Qyf3na+ zLaKpP38w<4813ytIu-}$2N+px*fEl4w&uID4zQa9`{WOwE~hF#PhskJI$*4G$KongyUV%Hgx&4?*}p8sk;6Z;X6g=P z_{g1uXF|_wtK|V1iXfcUY1@=SiEkdj>n9nk%q~m0zcQlEisLhPWA3oq=^~~~fA-BY zApOY(vHvwjdOiK?q+G1%61%b>*}-_vnOwz0{Jn-2;=+Bt{b!O_Tw#K^aTvwFq*Tll zF8Q>CW2)#XhorNZQ1`9B3)$%vQ?2>AfO^r{>byF|C+WO7SG8|-ePW<)9ST|% z1pl;-qv0Co$CW_T7hoh2pXejnNQh}<%mkodDoz&hic(B~%LeYEOW#Po9|TKKoK880 z`2~H4kskOcN<12e%Pz$*Ml#MBrr+`it3t;OiDL8o6{sLcF^i*FV{W}0!WV1OuSDj# z(im)Z@|l>J)yj)nX;w&v0XR1Jh#re#RDH@?cB5 zw~FVyFim%@dka;k$^(YXt}~yoq`=RGLvIhuIeC=^@QM$Rf)jYXi#|u5$6R$hk zFf{k-`I?@N88i*h*@GjfpHqwNG8#CrI{%vm0CrC3kMy7FOQQF^SC-W!HSNt`$4flG zgsxtBgs=Mo@i=~%2U%n0 zET;TGPM5bmdrD_Id=U8UX0+0N2#>W%-j8)p$G+^wr1=Uf&B|Rjy*HRZWpDSLGmlJ? z#ottpVEr1|b;s>P@2LOXGccr(a@Xbmm@YG%y8qZRSaHnk#{UV`DqFoL+*tMU+c_rFDc%DKMoy+ivbHHe(R!pul0USfYD9dr8Q)Y4NHr7twaP>=5aCgv9M z-@1xi*&tQePSs-eYU#dH-F)x6?#&&tz@L?ia3yHUbdN`G@bgNDg(c?j_`0^WW0RU{ zecWBxUNO`^==)-eDzaw&YcEXF)K7?$1~f~-o+Qp>81V}I*r!x+FXFtJmEo_&wJaK( zjj?%>&*Nhwyq%-1t*wpw6B3>kmwrtpt-FZYXO{WG@RS`=aff6BROG<(y5{&jU@gtt z0sU5#n97Gw9XeK}UMIl*91;VKCKUqqp3!*UIjWwJ0I28{QDd z@q%wKt4-Ah)aRG|Vm=fXtaNDOl^(6OiF>G@-oSBa4cz$w)f#$9H8E5!Q{qKX*~BoW z8N~p{2|vL4pZJ8M~%-4F=3DisC_h`9HYE@#Vbb=AS4y}8u`{H_DwOY06_e8f5qE#C&d`kie?-wU9XIwZ^iZ^laeU7l{4`JDG(>4c()s|A0Q_;82g{eeNFcxblRf^Ho2F6ptsE287ChX8}rU{ z5|w05q51Z3uNa)5tSg_xEw0is_86I5D~=pGOfNfsdkHB{<#R9WXhewcJxp(WB&LwuTvUF6QKdbMFA_&%|1&qwHnHldU#{;#9+4qu;+G1yJNt{(zMk%yw=i zjz}c-y``j9{)sX~FDS8zHttr?sYkMeS%n*i*NYD~C(NHqM?y<&gH zk84tW=&a<{FBsR*JPrlEmy}yF`-cSXDuqtVSBk`+6I2|U(w2cuHZMIQae|K59vl`= zRoN|JnSEFvnjeRknjd3@u8%=kS8w7C2`?$rGg+NbsRE+sDIlp^VM9hRD-CSGOVYR>>$2`0=%Gq>HS4Q0lL!GnMJE zHv73P2X9tK<0-i%IqTtNlKP<+hV~~a{xf>f6Jw_8FN?{`Yg9L@r&ipCIxzuT6Vs;* zq#^Wg`7T~PO82~unbTl_I-4Twh(0gqbak^6ZhQ~8_zv#%BT;wp9h*dsb;p|n=|_7p za^E+I4@P1g;4u%7PFwxWjJ2jepSGM;`}uI4dQT^`0-p)AWA_F1*pt(n(7JBbwLbW_ z!i`*?hW7~9$lQes3JLaeSXZla_6l>fF@oIGLvsE#Q(G%txV&W5QX>E3y4Y9UsM|h$ zVLhV^T-I)*fmi+Hl!Dh{LrZ^&5uv>+_MYa3l$9w(IrqliGaKJmvPEnvA*>PcG1)Q6 z3y=BK+2oEl*;@Er%1SGjU!Ly>-4IK_H?m&XsLMG)i+J>ZwrT@y6}RU;Jdy^^j~VO= zHf}dFHNUg#s(~f1mlYQq2B77N`{BhP@=ENE&0TfHjozt?h~WQJyyZPCiX&Bt^&R$)--~H4)D>O{oSy97c;r{77&lb@p*&Bg!Z7G^5_gA|Cg>d$pa@6wDCrt|fWPl{E z)x4eM1S%Ij6|frBzId+mc~`DF^SBstWqO8xyun+y_qM`)HlAL4Ek6yy zi^d4}`?q^PGb{UqR7YCk46F~@&PgR zm29bHd!2rOG+5hO5+@sr#dh-#Y}8WtMyw&DqCY9kJMs^37|tvF{@OLSj5mj_$apd6 z(7hta>v!j^Iu=VQ7Jo=Ca`wZ$TtTaPQMG|b5Qk%=mbbR>3ut8gi#&MxbC}zkiMKfX zpP*AYn&!ph%(4tQeGUCPNogb&0a)qATjQ#(4(%jk>wC2 z2HlfyUa^eoipw6iRaej34F0iD>#yb`AhFI6nXcXyQjg;P@VD%y(pPk%cULpj4_R1= zglk7j&fC@xWormFVc3sV#vX&4GuU9gN-Ywt?4f}7yUaVz+IoZXTb+M)#_6TmIb%#IhrdzkiugNYf_mhkZ`BHA( z`{(D>CdwhdH}CeLXDY0Fjvr9Zd7~fM7@B4*$j=wTHX71lM~N_UqbzE5a>Sf5$2Xcj zCQEc6k3&5~qgwTEMFCT<`-`(p>fmTdL&afF2$8bnr*L zD$4kQ39Zv$;?m9bPj*9q=RAyFHfj7oM={`e>16Fs-9dn5|FWIhK4G@bV*=EH1 zm>QhfoL%+Hv-~f??GFPNC~NAxpyC6=47>yFf%trV`O&p+DmrOOOF#XJ(Ti1!HHpB! z;CU*xJ2qwb;*tG?(vWFAjclG9Ll)H;DmSoKPA2xj{5Hs?Gt<6%sp7|j^bA;gLgt@5 zjoY8)F{73Bq)`7L0_^BRaWtVzjF;mR5s}~dOY34nd0eTYe%wO&kKaz&R9_p8nZHYZnZ+)|$_pJl3eJo1 zTmOz{QV0DgZ1gxDxeMRrPH2C0ok3Oc__Hd>AQ7?rYM1!lVY8|_@bFd`7N*GCi{9}QipIBb$qej(jsI>w3PV*YR3DSZwUv70krJtw1aG1M%NvJfj8Pn%Pl{_;2 zW^c}I`tQ%n=kd?XW*n9x1D*D+f6UN3`&Q>lhVt7(@NB4F0jJQ0iG`)I0GQsgi9(!BN{pM&Q0k&OoJy}|( z@b&}W9ST;Khf78W;q%tH9iREk`VGW+ZuY^!Ssxt`t;kPlorxR1|3mr>?I_O&It3zj zLIez}C{7Lnysxcu=&^0_I&(@&5m9%Bw4bkG{4u*&uD*xY-YsMVQzR9!+W_siwyjBt z_xUIDy>`TCrYETHoP*-_hJLl%u175;=rNw0Csv6EZRmcK$BPYz_pGVVV|kHkTI5JB zV_;T|nFEx0g(7#)=aR=Z<%tm^eTgmslj{W=lZ6Ajko4qgkG5JGX-lA~ghYLn6udD`hqbg_D@j3(2X}ZatGdb@Yu|=iRWhiL zd1@g&rrpFU$^6Mm=vT<``MDB>V#lZ=wZ9qlL{6hHSwSiPk1v8kd!5QBLT`tUuyk=q zJd1f+(rdK z*19}HRtAxvia{i>75n6B7QSnLXJ{caPebie?)$DKEl;)6;Zg77u-a3G-JN)*ju-yN zAFSKGSOXakJ^qei?)TA_liX2eO3YT`$>V7&h?9&s`;YL>X9fg$tyxi426NzOPYU~r znBy^l(DFp^pEH#$$e_IiZ@HSf8p7ctjA=zT~gtKVp)p^kat6{XQf{ za3QG~Sag5Y6236V3${@h-!)@j=;P`MC~4P9d05kvQSfyN9gY`IDO0B6(5UKmy^+cCtTYy3ha zccK_N6B1xl_Cj1mRnm27pAx?^zt^MCBOY}fd{~#Yr+|My26NGg5c4Uo$<=bNRBq0P zj9kAD|6F?VZ_tT2FrVbvn`GOU!%HQGgilQ0haEJPtGQH7r7#BBPfhDnP`U-sP z^v)u@@t*=A4x7h49`ymfp}{{9Oi~W-gJkC%?3^ywe?L$If}LjkiUQX^Ncz)yFvnko z7&E(_VP;DLV6b1hwi<;B#O5;!f9JgHoX^ZLpDHVxWBta&Mj9j-*W`*);G2>9cBp~P zXO7?c8fVoHFs%6ed4ZwFP9bwK_lKMuR z8{a1y52qY_$EyyN^X{EqGDaNj^$<1{Ac$&2HL)_Ya-Ac-*XgQ<5=2Im*~auO)>2Ku zBYwfs#;xM@p~P+l>&tm(kM)0I>sUqWp7%Dpk$os7U% zH$aNt6tzgH_a257yU^RA80?p_ASKJgV&J5qPUaNnj5L{u9 z+5WAFlRq~utMcm!0nGOD-Vcy~^41{@Pf%{~wdx`Hs#9AFmB|NW+B)*ZajHhZ#<=?k zIPl;;ENF(=F2+8!%%Y1x+p9%w<93p#Ee@?Qv<0HxGgh18sujRXa7o8m9cpi&4&{hU zKhC3D4^dVfO|g}DYzVyv4mys7QH@RC zaPQF2Wc(bAJmhDMfjc%mR_PgaP~PzY8Iiy~^tMa7`faN(e>!^sbx|A(8Zf`NW3c(V z;8maxYyk$_SGg#{TF?wU8LP)ZzO7ynxI3HCd^ww*srKh_7 zyT2TmHTA>J^k82U`KX_)ml`I_9<3$|_)62Hi`LKw2Xs0H7O+r8iyCW!V(CYD;&UXl zT_Va98%IAPVp)}F2dT%{GY6D@%BlObcqX8ah;$5Xr&Ks|y4o9B(G%VVE51*=c7p`( z?J)mD_im)*8!5;r3l30XmU}Vm^!14!wUm)$)SUqe28~?%p7!}*W#w)`%(Hio+yw?* z=1Br*AbN$*lbEbtury|N61&$Lgu7pWARM*(&~D-(3CE0|5FH>g(}Q&K5%EL1>mOCR zN;_}T3g12R(hB;$jcw)vEB*Ax{mPAI#)SNQ{|I)$@;>jl%X>+XP_*B@nI0fsqIN3( zUd3fi=4IBb)KH$aUahe3xITr+yN21@m6?~jY%jXL3{Fl0_Et{4D&xS`r#|&!J>#e* zQ+cE3&9jL59@k0UGos=Ewvi+C_wlCLqTXsJcO`lIUnVrqTAG~DwYp^VCqC7kq=B3yD41Ftj?@g8acnc;}dLifD(x(z<1F+$HYI z@Bwt(o_sYGikV~_aOb8Qe%k+FeuVoddDDsZwLum`eK6Fj9k&vUjtOuZbCc3msHJbx z1HGrJ3Ylw7sS}vSOW1l+_kOjP=AXHkBoKiWKAM6%wJzw>T&-yTIf))OX!6}d+6)YX0 zfi>u(>2mP;XM84;#m#S^-3EBU4?IfswgvHbqG}V8-gt}8zJ&E;N3*~7W2#F z`-E%-gS7TV#zkyikK77=@MG9=rY4y!<8>S&+to-N8Znl>FR5wkVJTvr?#{ZxN>0qH zC|)+d#S^5hFUR5`nqvCt_kjPC-oW#FKkGtz7f>(1Z7M0R6#V3RKgwq+rf&R2UgMT3 zfVck@-u0z@uh6fCS1y(P51V=)sD1JCjn%2Y5Uw8r)G8DvrL@Y3u=6jP-{$}{--u&d zE-=xbF?J618O@}Z+XUh%B4bSJrY458|>+a+sUq;&SO0;j%< zFGl&v6+}^52=oOe2UcNB^+!Es^FZ1MGMZ_QsNL3w@>J#SELU?_07aRH1W+uTc}s6f#^Y=M>vufMVhqTlL*)gdLd(5aA@3 zxm^+zyjB(~E=}j=sSYPOlz~Q*XAE_)sPP8Y|L%6VEFLiBP6k1e8uRG>mm6@ za9p4Nr?V-&fRw_Y{Vg$4;neO|Q{%5rr?G%$E_AzclZ>851m^r{6%SrG-0JDd5|PFq z8s7snn*zgjJFxVXpgm*Z2iwg58b$A{Hw6&nO0`_T@@B12l1iIkVd*$?+0! zsIPHQQm&9g96L^31TmP(iS6EYP`#B8qP{YkG4OuGEm9%h&t-?Q3YU=rFXW#qm?(#nCp9E{X zZDz}aUug5+8dv#mji<%)MwPn>K_Wf1JVSl24mq{@7|o-3MyM$ZKo&KzYb_@3Ook-Y zNCYB3EPzz9%8#Ik?%i8t24^|uK3FEt2Xum%dTsLu2Yv{>KqmyVf+^xX^sVXJn+-TU zG|9&Sc*0ocjCENDo8Ln}R_SZ!laKGT)XMXczT0|HN}mJn14+h3%%Yg#<*eP*cBQ36 zuYKc4ibSDwfs4jV@NDPTYk^X)I`b}>8v3=)UHsB3=LpJw8E>tq%yZ_$8p1s83!TV! z8A23mRtH6)``%z^14a|+?Vy|Kz1SJluahG_eaoXXQ${@VnG9u_c?jLgvNGecv?(^Y z>eRPQHIAGW_<|+ZC3rc6{hWJ*XRiq;PgduR&kz|wg!6Q0bZFc3Gci7Vv$KRNi^8FC z%E8_75#sZH7lf9{iNGT1wd-n!sli8S#+~8xl&=GP7b;h3X*?@Exs2=mSv z5$V_3_e;ar!uc+dUbXObP~mTn8Z^?{XBUJ&w)C2U@&1>yG9^ToKFk1DGdgjev235V zMKN|EMrsuWJ^lekJ8a>4ocxF@V6YYsav1mM)^nerq?X<#kH)hh%Q3(CuxrYj))7}; zPHJVRHAlE^0Z!-s^SQpoRJGCc#&IASaQZAAa=%lpRHDtS>hC4B8FZ!U0&S3VT544Z(2Al$v%is=|vzLBbXMJB+Gmuay@UQNLOe`&|?SL>YN z%KhV}V3wZn4jnVRVRo-&vEXeRVm?QGDpqK=+cc#m@y@sLDvS1p3A?N)lHtW(%PbqO zxU$!BruqH~F+86#FkB92HJuRhj_u9`0}oV(MG?SFUF(MmLLdDEF{$ho9P$AG+JbAr z?kb}3jevUa)ZA=RiRoqKZDf0Mg{q6O!s}MRMw51{a&czjbR7~ZE1PIP8M+FyIp%NL8%b1(fzD{+d|9iS^``XN#SONt||I9WflTG;g(es5^V+PE!TP|vfFuYAaFf2?Sh z+Vc3pnP|^%oUEEFt+Go3nUYpy4a3ucc6>R4h*`muELU#(pntj&$S+g5L!wxl{mxtPzWB^ zH~82IP#V>z`Bvgk>P{m$&?q8wm%?HPcv}@7!1HuPVuB_8!HVA`ANxtL&9$y)Apyo6 zA98wm&WM6qc+b2!x%lWlZ&J5LwWg|<>Za~5#D`yuj^5a$tF714&P{t|)>bYmAcHY$ zWLyxAp=sCt)BK<~=Z6F!-`0v|^o=Kn>OEbIMLgYdWKaCgm=*4}#M_!g>rhh-)|tK8 zj+7zQy#M~AuQ0c=o8G`ha-8*J3(-9wyO zch>d`-{nZ%lOh9utiPOG_fE1(>XS(QA+aZ^W37|W^E|psP-^-4vzV)pO`e#p&aTeI zLC1eG0>89lwV1Ek7@PzI^Lz?e=;XVw0{FBp5&SgBmPJ5C6=)lhk_XTl*M)~0p9Khr zI2f`4k{_#oup;9HvF)$1mSN!w))F>=VY$mki&C$D5B7@MEe}gc?Id=6e^q*~?PD{v z=bNbdB~vwpN{+CuhT*v1ojvnPk7uo3V$U+Goo1^zCpTlMtj)*1E%_=1%5#xVm!^4UE}+4|{zJ8PDIzxzZNh~3ZJz$d+<$Pe*Pi)2~KegOqD zc8nX7{Uq2R%2=M>z4G3lDyGjbGKy}{ae09iiekDGdUL?&|8aGmK}~&MxVC~K22on* z2m%7qksd^<(mO~m3DQgGgrL%-_YztJqzgy~>4Z)I>AgcjuhQF%{_cP7%$-SQ_;kXY zea_nNde*zvUbRH06lU|i{SiM+*fRr>Gv#|!8qxm*nphsUPTg<^Me}Jnl`c zD9e^uv>34rIOI*rb^iEbJ@hE9^z--b_!tVSPYs&%sh$d!p;$UYPg)4f{d7GJn(riBixNxGAVHg@r+_sz0PIm6tdT(UV2g&{ zh};7A7xYk)XVNtKt-%I&hg3v&KI0wJz(mBaXmvLdAllDhgE`6bj#AA7xJ~`^SMvK@Ic+^Ckbk^qB3lo_L->}UTmiMKbFPXZm$Az zUlMU|m44C;#ApVfq@#P{S@}aBGJ0|>k5&NxdhJ#dE0r2%1q?npcL52;heh(4dB?#heNGPGMQiWgKDh{deDz9B0lHSPt_k-7^%&Y zelD}KN z>xkqHT8H9ajCy8^N%&0?CWI1O?3_rl0T!wptk<5A??l|m$x3^6e1?W-0K?r1>Yrl* zxpwt>@SQGyFj6xem`cOpRdEnXk%QVir-?AaOTv4T5aLTk}6`7JcYiRYsm zjo+heX<3MTErnGo^~0Ek+eYB;%ZTkPgR$C|@^`QgML|zjPH3z-W3sbK46292b3PED{3T(!(F5;RQgDh*478H@$`cPF z1D~)Q<54Veo;7z_*)%r^d*BmxT-)t<)tvR+c>{QVkB5TS$8XV`aj%kh;~4~Z(+5m= z854&Gx)xb<2)@gfXv$jA@ziujNiz9RfXX8oaMzaik2R;*e=JMMha6Bssu?#jqO0!;lO*j0?*8-$WS^y&FR(|MPslLi;VX#njutT{zI^pT(W zAT<@zU%oK?r948Vh$V&5;y?yyt z-RNXKkJ=_~2`*vb^|HEZ%m~BheC3{GS)Tp;y+F{V3$xlQANDE92x5mc$1WE1r*8u^ z39e+V492pehv9&Az7vYhM091=vNm7PykNw>SkK5nLZ{<|X7ZB^1Iz|lix!wkZ3Xgl zl!H4Tr^NM1Cor!>9-H@qr3kLGoxt7BQ8qTBAr2nZ>w z)}nYrUr+XzF0M=iaN0bwhz9T95}^NE0;;xZUPqzMW=~BEm&M&%F$7DwoG0vR7;d#E z#@HM-?ID;T-J&+8RldK~qa;o=b%np7SScB&!E4!58Suf=^eoh4z*mFdA})OU1@Sw zQMRl@c3{dE48??A9*_byTL$_buz>Dp1ZRhx?mYc{j6ezFem!T#)N{O)8Yj#q0W;>* zbXBd3?=|n0i9e^XQsk?Vn)WxL&W|AuDHob7J9B4rE`Ur7|d^&qRFT$+g z>MAv^B(E83?yo)%BsN+F;KvK6W@JB!2AGT$aA3$%7+bNZMVy2#%ww*80AY3J3$_+k zugRu{OXTwM&;w~w6C7k3w`)MG;Ju$xTCYZOJ_I?->XVi}tr!PI! zoM3wZ_V;h>`HV2LozCY=rcvhw;f~`Lp9_Y!Alrb&W@q|}m7u1(57t4fxvbT?27?5M zX~NjrUbHFZoE{{fo~E!$@E#ho|9~z-90UsNbEK#m2zDr&mNdc`K}J{#xgb2%6XbTZ z5>M)YPP@Z@oWOZJX0^VARLjW2--@5Y+ZK4I1IZYt^jXe#7^b2&Yjw z?hFH9MnKfS@#+d3l6=&Eza4~(Esbh1@s}LKqCt2ZU0v-4e73Jg{&?cWcI7gDIn4yc zh`9#ts&&{w8cd~bFWu5^@3D|AFm$U3y0ont>3WkCX3^8t`OX4kj^Qr%`6wYH><$Dl z1`$D}zukd^SZV6~ySrM`lOIJ&iv6!18qNr@B=v~3&Gbg_HaTqJnY>@$xjj%Ye7q>! z(UiiV_qo-XTB5s+;?iK_9ac?#{v1HB*=n*^-b4Se_mLKmFU8gVP8v_*z;Co9uY*R$ zSTR|-B8C%%dUHSZhXssdbY3q+?=>SDZH6&V?~sl23%i#hDf__GqFg|G+nU(bATUy@ z{GG?~!=GV$w_?Mp{uFz6qfIhqOpNgO+Eb$+5b?B$e0Gs(KLJ!@QeZ=?H_D7UVwk|j8 z;d=@O%ooY$5@?P9+`F+S7RC<&VP0~mybvOw#^A*+KoMt2vLL4g^A(F?ir2BYXbsL$ z1E4zJX+n8Tk3zKgJxQ1j*v&laMR(1#d{{Z(uj|5Vj8^Rs>^~9clYv=w1_A2*TAriHeYj zF0;>CFXDB4AdHI@_0VutBFzQeJ9YlTFrmJPDkuBJh0loxTsegsj_7E`pY?}wYSl{ zz{`s{)*8^8x22f}j{Nric~d4__P>`ES?NR`md59OT(iH7*SKl8ljZ7)3VckLbA8x0 z;M-W}I=&%bgBvv+Zrm%2g&}^ZjlDCNIcFvEO#wf02)blS+}OSKo--76;Cxp56#UvR zyYxYPy<)3WN2aquvGltHDMTH|Up4DUk?Mjk_$!AO*NUcK%9(1*DU*SE>&bQzm+Q=V z-!_4VD3hZZ%=%Bo=CX;Q2_f`@JB|TtP_IAMFVJs)Y-+p{<9mulhn>C0g~Z~F)QlNi zY|z(Zd$yXNnj;pkP$>D`2_VDvOok1&2{j*O-?=pCet9Mk{XZ6v4PJ46O13!xQpL$y zNra_yRjcXXZQS)j;)3-XARX^2sL*~{pT1Ku0N513`FnidXcCoz^tW`rJF7;A;_^E( z%@qhSc4i5r$&AMUW<6%@?NbaV5hCQ$|L{-Qj$OR2vD$MTHxvc;$ej5yu|4gpcai<$ z(2IE$d9@d8Zr8bIGxomlLzfmC_1HV=Pt@HXLU`L1xunHYrD~C}VRx810gl?P9ZUQ& zZ1^OAL@)i9hvjE9ZybRx8M~(+JPAVC`-Ezps~pPur5T{AO(mIqCbB@b>cD7A4cr`% z72mec=M_CB7~TUO+dzy(0GDV)G}CNnI$%lo@|G0zsXo0E*?}HqZfCWM9!{*gxAmx{ znO~-a(4z+A5Bof$BJL!i*-Z=|m&yg@-$v%M>9&qp);55nqGPymawH?uP?3qLpw}{q zBP+QKxXpkJZKnqBfbB2BggA3wDy*uvKekGh$^ddQ2FR$Q4kTf%_0Mw>aaX0aP(>0O zk1XAXZr{5i#488J=|vG+q;I1j3Vz6%nygQyie#>_D@?2@J#W#K8a#es4_a@bf5o@t zp#EY45BtDv)ZXnh*YA8{TltaS2qDQ@BOm9pQY|lVN0H$)FP#`2pE|j@$=Q2CNKY@gBBwOs{cl4uI3FIM6ED^XxP|7IR zQiip1_$?mg_n_}uxE36ra|N}lB__hn(v6#OzVnS9U!2FSy-3`8u$h#5Wj;ra z7)bZ=EU@UXjjBwJO94rFVT7dHX3rT0cTCfFP!=?!+>BzwC#C5n8P)-81*;-t+7-j* z-(c!3D>HkKnJd-08IXk^3M>tpJI#DvB%OZRr63;p8F736VR?wI;akeHCFgUX@a4+; z&m(IAC0V~BDJ;I+$0(zsoO3N38;4J8YOF|pLrD;?&|=iC zsfXT-kgc3tr4u27w~Mze`8@|l7)E-&04SUwlcNMNMxO89b9_#>a(Is$a*DT^r%ip} znmx+LxnN0A$gx}WiP15XTkEgn6WaGl?5pu-JsENi@_en&mZ=HtQn7qGIux|-cOiG1 zIuNP%J18%vOW*w^KMhiY4#3#O5sv7@o~zN6BH+qoq_x3XnFG)3UJ*)L`Px9E-|$`d#UgW9)xQ@ZsAs(F73Xq`ClVNb&Tvg;=UY9M?= z};X{)5&Z&QpbEgk`Zq zJJBP8pbJGy2=9MHdIP};2M}L%(bE+q-e=*k2c6Bh#cTBew{ohI^HqjZC zM`i=zYaLZ#C~4h9?PZVv9<4^i`U|*6EGCpB`k+k{a9Pl6TsxQ+BIZe0&PFP2YKW(diZVQQoo7*~ zMM;7ITt0d@G`V;~~KEV~os4{I`qTZA#OzL5Xg+ zoQ7;%oK!}4p(zSm%BPjS z{#8CFEH(9>`4s&^ywmB^0yPt!*fK$^l&21;VGxDH~M_5mLmRf#&e? zggf}M&0W?%FOo?mZP7bU4KuZVmvgpJb47~%3pzEK+*Pvz3sC^)FaQBrgczm+jU?~| zTe4zRoVTu=5DiTZ^6y@R<1gQ3ArW6lD%ssFGy9rsiT_zrX6&vmPK>>J9a1w&w(?6# zZo*R>3W~NPp$+RZDa`iFD2VcJQ(Ck1ZY%4pyC&~v#qVV_-2ZPgid76_NMoRA3tE*D zW|NHbtXw&i_U&#|?RBS{?y(Jo#PzMT$s0Y2xxiR@Ols!|6tw@~(B6EUC<%<`7J7#j zzxY&>TdwOF#yvflGaj_Q6>OW{di-(FoNy1P;-h01dBb6N5|#tf{$Ndfia12ekHoFQ zbdTes?>vXRmP}I!;NB(!r`jhcowF|8Ty zH+WP`{gZ-Z@dcCa8H@1Ii89^+F|){1ORz|6(%t9Qv!Dd?eA&t`U{d?=8b|1Y-3k;5 zxr6lJfw+`J7>uj%nURJS^FBQb>lgN!2z*T>_c!>YWxYz41vyU_DJdxlnHOb)Pm7vr z(Wj}W2DTzBxxp#jKM}+(NdZZox)6GidAFp*mNDf!HRzX6zvz~qlYPw(QJwPO^;^8P z6%!{kZyuBy*P^5sf1=3`c%%sa!!MONuR?3v-(i@>Z1Gq&qqtF~6RFu@ZrVSWJ=hKj z-Ilp3y#BPiMC_YH(ur@}lF(=5+s!*hKM1@lf#MtggqCCet8g0>pQk!bvK72)Fw@&# zwC2d`lJi6x;sJ?Y;><_m6saQMdr6{b4cs^O=%=&uPhaUbJbXA?)dA19F@?AJ%ceA2 zaqMcu3&*SrfFLeARhc%7=?<3UzJh6b&~kO>y9#`gpTJcfJ_=%d z<`nob_vV8C-@{C8muLvOXnn-8L|FYUmNU%g0oHLjAE(Dn5r!$LIqS$1zm@6QBm`k1 z5DekwrFgx`ai5b>GwGe>jgrv}2siAeKpOG)j)FcLPZ&(^9dZv~P+ z;D5lRMw}oC1vXU9z||95XI9^n&R|Zz<2JZ37?CAAH5pAaI;lk7)%EW8JDHgxM1Qjt zRRjtY0I3Oc!I0&?r0&mtz{?oD>#W`02L6{FXhlWeS*`hzDb8gRV8%&dR4k8J;v1Zr zium@A3$~9n-H6VeG#2hBRICM@pGdg-5{G3w2mV(v1Q*oZ{iKhk=`V7e&|ZOL?s1ba z`W4Mgm+bec`{GCaD-?p6gxz7Wo|O8zZH5p4U*h5s&8m^{kF*6W6Z`wJ0o%YndGNlr zfDO{^$sw+imEOlhX(9Hx?Xj2>S%gdq-_mq0N4(!ggzkKvn`~nklq^X@F%TJzL0Rw; zyn#8!XC0_<5Cy)Ur@di9<67wiK!DVE(gPGEugg+-rLL3S&$KMev9&u{^^_SJ zifFIr;KU^W{9r(6NDAb;Q^8vmtl8)aFGt{fVhbSF6HFNExiI9+yC01Mt}?HTxW|=$ z514SL5Su|s=)1(GgZdHzLEuG49}L}nf6uR@R#wKWS!f(2SyZ=F2<(-&l(jah5NQ@u zrmc$WCBE&AEB;#t)o%Ko>Y@1y^9JF-9%0i(zte||bSzj+093&GjcgR@$KV5kQ^g7` zE{UMOIe{qowD9CsA0a4^*)k`dDbb2qYhHoGJicV z2k*luYDxAD&S1Y1f7#Hf;Wzo6!U6u<* zvlvzQ5wm~DCuEwJ2AIMRhsiz{TVp5tjJK4yql7D_KU-XHM9nowcx9500ym(`6ui%C zctjSCz(&L-7;{c`)kfmmbSSer>t@`;!%JXN*3bWj%^l}IlP`*r1_d>>whmLk=hZxX zqVI_ubh+=^c`El6)>wxrhgTr|2fY|4Mt62R33O#IX%*Z(I#CTM3WRv!+vJENO0L`sg;()aCa7SO8g9 zhYts@ptCm-k5f`#wmCs2ovX72t03R&;h-*((U7-bonMKDNN%lZ?DsO%I{}v2-AZTk zqRo@;^H=RUXZFo>-0K*Ldb^EJRa(Y1hrw6vZ*Fo6a5$&&(J7pDb9mZr>W2O8`6jeDyBdAhwRM_SEwvmrQkC8lTfb@G*|XzNvD zR%KT4O&cA@#|^L5YhRejMRyx+C{g~vEPwvbn?`F%zbgS=#2Bg*9-! zy6k?{_t@1bmj=EOIuF}YRq(>?UiH3)vmWene0Sg+=9 zwFxx3o*aOiC^~hzH=Q;YEQ>GF9;5Fv%xep)ZwWKiy7qdfAKfj(&h|-t=UdV)$Eo$P#$NQ38JKy?2acm z11Qyd8Oy83HIvKi)VaFNYWZPuU2OiU3yDeI)W zA?|PJP&&p=SG-=mhVVZAdmtPAbReQyGKO7omzL2+k_nL9hRPBnv*1GG&W{5h7oyEJo z*ZI^xmLf+{Ab;Q&96`_`5YCqfx9;{=U(ek<9qcdO8IL@^wWsoew#jW`iycz2uy>9u znxB3ZVX@+oLyh6?J+4J1Y_Jb>HS`$)&wX&>ej2S7#ql zIpfsr5{!>lNOzl}>ckdqf z&3^r7j1K0=^i**jVbeK{BVFrs3kFu?{Y}xRpXcFy~BZ%)c?wtE_~*uMnkF~1g)59NzA{#fJK-zsxR z-cJi_T&&xt3Gtp!>ZY*D7+eE(FMN)6U{%)>X^&WYOFajzDGKeE`(nyRhzF*%NKSN) z+%-3R>@=x)R^R&4jaC?Tx^O)%>Q&>Ysd+-0s61>E6+)Uj%8r9*X}qll9^)gu9nz!7 zWt-ibl$)cI8|?h=Z zO^Y`o@$}ypHx!tEaEgc`O38OV^_dTmFUtBBpUu-1?Vo`-NiI^zTM|ZpLsLWI#Cs0Q zzdE*>)KW-dl3O%js;}d{lceEGb&OxQPjFQR?t(Dhab;s}lQ5EU?Nu;jw2D6I95UKm zM1N{S5aBFfRFmiQbxn)QE7MPzP9fxnX7n9Ta9-RGG zc@zGiF_N6JpHPkKUtB|`O5ixD=fjN@X|hAbs?iDj<~Yg=yi{tcF5TGo0VpeizIVs% zQT=V5RU9Qi67LRwm+YNHvdM<9jtRO-FFuOSGk zSiHw*gSYSKtoO#}FzHFCveRYp71s$iZURowbkEMrnm=w>S%jOmXfXlkeqUi597BUae&;{5*ZB zOW5~g{Qqks!aLzMz{`KRvM`i_F?wx7r@VqS*#*(t^SniiXWbIHe&NUK%zIc$AxSGc zxg`x^tiD6X=NBDn`ZG7?Iqzp@AkHxmyuZO+=pSqOQ&$<$U`qO_n3r@rE;{AE+Q&h~ zOH1>MNUwF|)gPR9=kG!>*Gkg@uygchRVXpPqO^PRmiD|9-3{V|DXw3ZO)YrD2xIj` zrj-xM{c$T4e88XJuGcr0``Fp}{cQ~3(4~sRnnoWl6#8*~b_&3+*x+^j^#g@B>`g!M z$T<2w%5*YGc_lpJQU0`3i?WN^+jiBj;yj6^_Jr;3CSu&7itU(qox&&NOKO^?m)JZ%TC}UaOTyvG_ z{A>FvgcZd9HKgFqtH+(PRxp-tgxg>X&HvCMpOkaowGNN#cn*py5!h!}JJoB{T7HTr zl-IGklK=mDQ#{^C0$($x=tVIUFfov6J^fxLOrUE7p~Xz84JrT|OnJUI^Qcd%YIgl? zPLZ~ry~lJ{4VTi!wInh zzodX{fqZwyP@2AYHG(-Y!mIJ_ z*KD4ozVlUQrw{3^@?@xUhF!Ij|I)Wl6|=yQY8ZJqZU<+g&1B5IMv2cV zm11+bez^?gnfj$rE%!YXH>ByD{-ATUmakPO8u~8#C->6S{6$-QH*-@?0P-RwU@6$^ zSOSI>AE03$Q!zT1J5cy`LaJxFw~9P%u<0D9hMyOnTsrzzPdW+oK|u#{f)Pbl`bY64 zpwe=E7jOoA<o1%#7^=1z{Mu~cGhQznf ze*MyTzS?^@nY?OiYs)IBYHI)_R{JNO-8DAhYVgL8x&LZq>f(AmgJw2tGARJ$6r`LVUqHfNuYu)M>Qb zX(N_OK04c-B~81*r0tV-@s+P3@~$(pk>tjAu1@F7w*FALomqltd|h`AN;u~yEB3Aq zJB_)WCq5;w*)=v^1$5HE7vBT{9)A@shOhlOgIb1BPVw4Kd=qhTt)Q8#wmkeLz+T-r zR}`Vv*;)S1^p60pF^K*B{QTv@F~Csk-bl63yyr=|oy@jiSW>yi&Q`Fwte_ytG!flQ z_4*{sYnL~jd0+QF4@>OVrZAHqm((2YU?a%Pb8o&9`Cwv0Q$)vRPx^N0=nm%!Au5yt zF7i@;;8Os5pPdZ3*VJP7ZRk{Q7Rik(J&wOSF@B(QJXrgjravxrbXmGz?Q7P}T2Wkc z*vpmnX{LN(IJx6td2y{-$EoR{Oc-j};-WMw=-Bo{9pq@te74(*(6w)$K3NP>!}C=e zw7=40nAXm8V8g<3ak&kpjHw>4IOX##6$(b_>|6!mf2fO<)caWfjfC4=Hu%%zGhCE^ z9pAXg0*~)jkhscMpi&TX?#A9AUu2g5s+zrtuLG!@j$lDTjXB#0F5l(Ft6YjM!U%ZZ zBm0|Ws*W*g!=vnyOGisVKDyP8IV5XqZeKFAdtwk3Yh)(@KYg>A;5txWQC`Hlk)Aoq zuWaPlo@r&?N$3z}wz85TUWoL#lq;z^;dZtRnb*F_dC5oCnZ{RP>q8OBvnx46r_Egh(JFvl z;cnAST?ut)(>e7~7PcOn+{;qIF92XQj9lLC1nf*z?X(MQ60tBS+LP?@F*3gG-(=`l zb+R;plNI7HMBJ>8cwB8_IVtDxdw-nwuGr>uqOP+O!||U@Bim6IOJ#&1yCBUs2y8Va zT?AYdFs&;-7i(+K_CP$u1Kxi=by$Y`({HSoO&bG_I zaASz_m(~6+&U%>DoZY-rO|elGQ((1tyI_@glXd^;2>|K1x|Gl-G2#9G2Z8ik29d@; zA#m48y%ce%cIjA=e8ILqmtmsTy3nQn>mK8ckNV3T||y_JZe2nv6&W8 z@GZ-m7~c2tE|rVGANAOm-VD4lT<&~acN)VWF-g}TQcHF<=emd{9xSJx{B@?Pqu#kb zE_Ajb3KFZ%mQ8JQ8UX+W1)HPjWC zW)wS3d_Pl=BPzV<@hJqvP(CT4@?4bzInUOp3*_f6dz4mrE^SeU6~tL{z`Y9=W|PuPgyNZ2k05XWnUghNm0Y z?(-$EBZo&Lxr5(z7q;CsN2`3O9=%D$U?N*X`&%*m3%qaGp|a5zc9;ruG+ykzF+GF`*k zg#=HzZc(EbLP)%uLlbUpX~5$)RC6?Kz1;e#-g+*Y)T%EEp&(K2a&W6_j+Km(GAKOq z#EO1R&nR;7HOYE2V zk&WSUF27O(Y-RYuEmd=KqQ-iX|7hsr?;~o1I(t6e_vQa%0V>r_EI%uZ4@dOv^?7sk z2-{;jMQw2ZYnTl+uk*s7&Iz@+TXKFT%ygn248sO%fA4on5aFOan-*QBCz9O6^lM;K8MNa6B> zmx`RXj*CpPob1hqpT5%};@M^8H9DoK9OS>rdZ#{H?5~GVkjF^D2~G}-qC#V>MzNbJ z{%brr4&~V{#eg$BmfodX-q>dTs<_x5<=xsy{ssx?ad}CQRgR>09eS(1CM(!Wr2O(y zQDCL8izxgnuQ2r@f59R5wrQ7_0fHFEVE+|lwe*X}gz|_j^B;fA>#QA@?)y@x6_396 z$9iOiFZosKt5;kK`!CuVB=|OC5mk`sj0VHsCkmX$M;~RQ5Ch~05Q|LnkTSjzaj0VJ zvEBW{oqZl3iNs8$(Wd5KM!v`E+vWBtQ(}kWP@~iS^6vQo?Ny#iN_=Iy`Rir;6YBX& ztg5BjkI~H_Wn)-h5GFFsXSp)vM53ZLHUm46d~+gEZG5mOalW^5+m37A9jkE>Qc&k2 z*UR%PK2X`#*!`Q$j6VaplAWj5ZomC(##J&4ngTZ@m8hwH|EO5KK%3(AGA3ntV_?5X z0=BnUDJr_0%So8-d>E97rUflyUU(nRl{Xr4)LFnj7F#v0gw(1XefJrbA`-8Jp9Jp= z-Iq38&Wo0^nNpUC9xuh_JHYLR@!?oL9l-9?*@Syz?Y=)x%w#@_3*ouhT-o55^vmi17ogtTbrRue3kavb}n4U?xrWCFHNkNOOX`Y z1Uu89a;s)(zcunYf>!wZ6W`pbyxfp{c`e=1nR|s7?_2|^;weYMQlWYS(TO`Z<8sxV zxkeOX7ntb;B^zqz_0~{hp`RQ6r?gASIqSU%?W4$I!-3hl%iNOmCpy2XtS(1Ng%HwQ zp4yneTj7qbit1TPW|fe=)XkFcLW%9^g!yVSEh{-$)3ra-_Dxp(BxfXwKbl>yJ>l&K$V%D`MX#*izxmBvG~DGP zJ@m!5r;##pIL_4e+>kjOU>dy;3COvcR<0w`z zn6Edp%0C}2HE(ZVPoJHSPW{jnXd0VKxV^#2dnC%JW|J<`RO>T)z%|o!tjn`8EE$_P zQ|bbTE~5)Map#BEaB6RKA9B?nC)At|SKb7W&U?EoQ_b!R70@-E=1iBQabHi_luUY# zhg@}ozQMzX?N2`%T&)YAE`>Nql&yc{LF8KFho^AoXEX%ysMwy+@$M$*J0ONAkbBil z7m7nxgR4NNGXb@uTdyMChAUta({}EI-yK(7U-ti%9l*O z4|xAJ-JDWLDo5NaT4$Zl;!euv&v(HRoHGCQ@;yVoL+Uhh7m69tIqO7F6aV#IN49)* zkb!%0lmS*5^X2%S9`YY#qv{(Y5s~Y5mH+(MuO=w_jYxB@XJ&7IFOWz^M6N1*$=AOx zAF<6nV1nx)P}F|o@wIkQ%2C~Pu=7?i(K=(>UTN1%o08CMkRtFdVN}J_Dh)H)7=?YB zH%zXB-ZlYu+CHBIw5(a1jN$5I)I8bJ0FtjH5U7l%#&y!R?pl`0~GcBlc|t3r8SUFCr*M3L@}ucBQ4m3 z65UzO`FaXO0LE$;LEbPBVMjD~^)>HW8h)}_c)i)u2{`(;za&Hcn6s^9)M0_u>DuW? zF8p}sxS^1vx5>Ef(ik&ThHxRL)+>htvOLQ3Ld>ZS4U)P|2{e<B*0+hq?fp9B#B7$a0-Di;S#GrZ_T3<9!O>#zfySS&fQ&Dia+fF4 z`}B$2yBG&+eGhZef<(OAsKV1wn{7c7}5@b5Q5ydyhIk?OdxJ3@pK<=-Od|COi#jBDlm5L%>uqu9e@nwIA(tU-E|jA+Lswj$mk7oH;ZRY(f8InSyM6n96?+XuNG1Rl7OI^9#)cJ%4bKW=Z?BF z>-9K?QU5Pt_ldzM~So;U}$PeYEu8dX4yX<$O*@2>H251 zZf7A>hs<(4R^oF7>G1KC8qCIiQvSO8!0Wzx&mG2af|t*7`qQcxrZ$VOe&ZL{u1h`Q zD&}gNx8-#<@y&Ylqz3ONZF_J7R}+~QIVD%BaE_$m(G~BBJ1dKVV@D7>?=_N5$n)!TH1c+wO@y_b^f8uPxV2rsuEfG z*@Z!JV-fGc%tDaIRiz+&EqRlZikMu6GUzpuD`H&&*18s0L-y0Ucaip>y#BDc;FaBX zovhqKIv=&m<<9EjDYqs5EWWoY(^cUma^Tv8ms0p`%B5LSsW*Ec?m?b-U}&OhgGD16 zyGE?$FNY%BHr(lK>_V-{Dj$bqS>}-e=fr$Vy@Qok0b1U5KG6GDmapgNy+=~a z5y8F;HuL8K7j;(t?%T#q5F~4F9$Rkd5dFn+rkmqzV47juu5c;VvA&@&qqLOM>HIOZ zIM~s^c>2KECMfJ!-H~SU1Dk5W*H!qd>&!ZKg5F@XdTvjU1SGe_Ccrn2sX9iFw!DvRjBn<=)Rf3NU0hw- zScdpboi%Q!OQMdz3oc<#aE;{*^Wjj>hqH!aj;Uo@(#}h7d_%tJoEjAE)z)@)F5@PG z;Ci7OBX9L+8t#5N6IMF76PJGu+u#QFnd;NS%5L?7f^YG zS~OQIqf=PZ`#W+pbRwI-)n;{i+UUP?WG2rLf8`C*3q<9^|hi_2}nA6DTq{&>hOM=WFjy9(xm7Iuk zsxqpYJ)@=h_)n;3YcgEte(q3EPyKV?)J#02l<7Xb9seIjh;cI8~B194hL;5R}N&W1R7zmo|XHt0=HPW^pm+@ zq|}RYM>!t38{JhX2a?g~>=TMKQ+*cM_NJ~MSs#>|oh`bBc7@>e<(<^`bEoT;@2D$f zZak$(XO>tlzjR*iS^5`Rh8WoXv06(@Aw~teWXIA58nD$(nkeu@dy9 z$;O6F=ELHyACf=Di+PZsUv5g9mqZbC!ploJk0peucTa%a_QxY@$+YuTUgIf^-oYbp z%@uqu1@z?HtFG>FtjaryXMX;j4H=9{-w^`}y9WG%2hTS-xj19Y$&HQY&0p02jX_GZq;3wI6!UchKyym4$^j19U0EK->u_&T6CeaE&ihT3&C+Q zifW7|*=cm|p~Cfo3U+&{+z!JoejTx&R=IEeZ-CR5;FCUxn1Tay_MC>NxERw zX8oj#tIop2M#PqK%KvR>>276N<@vQh%PbkLaA-+zk4((N->~UK?-RW$$Eu10j{E#~ zPoO~Hx2|74SE=c_!niR&5J-8y5;Y{gw2KKw@GJ4N7Fx{o(|Xzi5f}3&?8JGlAP2Re zdsoH%L+vWi7-z4^l2V6EdBUXN_1IFWz_zG%W5wAhsxzXBMiib|_jO8b{OWjjz@gyf zH&ri);p%6zDZMuN>&ViG*_7AS14-jTkg@yWDS}mUk6IEGI^>2m#;=v8RZ=-=22}G( zUKJ7R=k(csZW9y()B&OuvD_PrxfQo7c^I^2(g>r-^z--^q3w9 zHJi=rSCvi)@#YURK8U7*2)fb0R%->O-RMNTmb!wG?rull{&eOtkCMh1ON2&njI_nG zxwx+z67gP$&64_(x~28|*lfP<1W*XL&gC_yu#voP8bpNzjfw40iGU0`EYHu>} z-~<=R20`|)a8YD55N6e+v<@CgmL83KpBNEK^F}<^b%o`cYgG7w#K!7rHe5~YF|V~5 z$Z%_CtSTZNmH|kAtx1rsaai7#=9?p(0 z2_sh0kH<#qesvfNIb$jq*oo-2IO}bOvduT%&)3o-U&Y#3@o02U@?qfFP}XA?auupZ zh_21kVM_xgLNk}It!B&q!ig$-P3+QH^t7`9*V$6uzkVtAQjk@Xc7H21)QBaS3d#0} zj@+=^p1NtfV&6zG5XXM$U|43ByTR16%)zSH^XXtGXW~ojpFNyEYXFlGVX*WL*2H#7 z-H*J`_m~E->X^4Dbs%9TukPG8C5VAba9^H(gZGy|kDF05Cdq;;X7mAw$o8*YCM!!T zxv5>2Os$3q0F7V`5ymb>SK9m)I`RO5afxqm)M5rJuDr${!AY zo@SE|t`4dkIn=_gCnzgQ&aS2Ay^9paCw{B!5HJKc!R@Qd|M*Sqf@&5kt2`40!kfNl zJ1qwvUrXf}kB}&l7Hu9^^?nRZaNKvGJlgWz>aX*4-l_dc(}&R;iAwc1?okgAQ=>)#%~W%`ZV+#Ule_got`aFGjE9t3Qo5Uin3G z5>O>2yQ0%dR-TQ_c&E$xO4s|#qvqS>E2;R&8Atn~vorqDU~I54 zM?!&^(|xojW=aI;x>A|sLZ4}v&X2`>{p}DOddihhU=-j^b}kti7jwL+Q+Q3F>t$Gf zvDXvSSZnQhc`_)clFsiv7KV5hRB3SDB0(Xzq;Kr$0hMzZV#K`qia&_s4nAv@8Y>@2 zHrl2c$}@JvD({7*4m&joy4dMo$2Fw?6UJ z^b>nddkL?Fu=r38>$CNb;`bPkp*L2u3ksaOyLaEg0QCQ2fAB_XfUk-IFEo39qZ};t z&5{&)?rh)tb z%Z|g)|H8X}D|L72U}W1~38__Bi*nKkU4ZR>jR(Hke=4(Kb4VSJH#$m43#47fi0$Ry zajG-=d8DKB=hK|;|AGx!QP;J-qxE4Yf%iv4LaP)?UuP>b*e`9&n9UhRT((;Ww7k-Q z&_dq1;#2JF4;9*FVDsZ3CqtHQ&-<24hZQ#7c~bkUy6L`WMn~3{Z4YqUJ+59gh)4KV zDfAr=ekwftvrosU{~H&dy_MoP`c-H|mI!VKFK*MtpSo??MMI1v=jPw9TJu3Mi)D0^ zhX~|WIgy%#bhpo6eHOJlV7y%^%3^T8T4 zKJpSuy^1+pWDybY)qUsvuL5eTbUsVhrQlGDumVYB>2XnH8d>y~4RLq-2|eSYW4|^0 z+j^Q@Eo;@BS(fvgCMDAMvX_uJfFzmGb!4$@9+N zs%cHL=Cf-C{Hg}QV3x6AuITcC^5c za6qehk)tbDP!64-C{CKbXU#YcK=;WkPQY8}iuy=&)~Jpu4>t3!ZI(06qON7@Z*xY4g}n)?E!Bm z;oXR)YG22^2+}z(qt;UNuU3Y>6#l|7S_lUv_eO`H=&bXac0+n`iG4niugB%P_W`f` z=8#mp-A`7>`QfZ0s*$D1#=Iy6il=j7drH)Eje^%HI;JSakei4`n($+Kl%n<5#`hH4 z?Ga<)Sl>y=ow{2$_YDvv0`s zCyKv?hD4mK=zh;oDKh=tHAnkCiRDZPX0lsqI_QU=#A6G+m&C7a-1VBbBV}b^StUy4 z(eh4pQVXnTE|rwZYB-$l^dPC-2($2q6bH{OF5?gq>Rp=mO|KS&G7Ehk(unJgui zFvkWKJMQd&Yb>OWyyTZg&Tz@}!E7v!fGTWmj$ZRIjRIXQ8r6@V1F5lE*g}ggNuAOV zo0tT&hHFHfWZ^ch8!264EtS#n4ED4^JySwl2N$i2&CaDeCHArNo+~u;9K7a=J9sm@mFn@f7NyiuULyWH zl_0h!^j&(uM!%}5j?k-FDw1U_vCju@n!Ll#4h^p4EyZ#>l_ z2*D$KjO@ASAn__irAXL>R;i;K247WLJ0CNSEu&W(uPC0~~T0eq}S} zFlo=I0G@nfoxi)n@uO4U-H({&4#*m+*nkK#-5AQv{nT8t_jpZ=~rb#4Vf zIH+acwx~$sv!~#1ju#*L$JAxExm?gP?rB`zGI*UrU(-6f;(&hv7Z>rY!#m@r+zs#& zBgEAB(msS&%*XFe3zf{?hN+^R_j!Axcs>Z6nIj|q{(Q23+%WuxKz(Uzvou+tCU+!- zAD^W3yo3-*E}hOG4Bu?q+~0}nAW~c0eHRZ`#LiTdm6h2K$ESRkqJuKrp9|T~Sek?H z8(|4Eun61vom-}SUj-C|lYI#WPfxzY(pBXeqhDyjmLp#9&Y1&Bf)G^TdeeUNe4TH{ z+Tn%s`Zzw^XpD3TtIZF~+fP@^`ty-1RrrmzwnA?#kjW-21Bk74n|at%1J4K_WH@Az z`q>XdLA$vd^j>%&ai$D9MKnX-N64Ggbk6V4QEx;$CT#nf9XEj^X_!g$UD&G01*_7v zmDUrR4ujJLN(;j6vemmsMYN(&@tqTwJ9v>icz4)258&XJ!3tS)Xb`O^$ybw|d{; z+C8&S6=KNidR~zO3CdS9mia6d?k=1hW?Ex%rTNx(|Ia&Q`{1b1;aCbMrv~{Fwqq)E zn|eI##r!zi>SM*4$2kE+xH~mVxvxpE##x%2uGg$XQSA%Pi+>i-tf4@Zj%ok~>idq*sBP4r@GR{zxTmx$-rJM|+v(4ynx(#N#UVPViH(QxgeBdSUC z@RO6*7~q4zNOoPmLdo+6LqHD?$u%6fqhqQu%dn%ZeEKY3km5#mf8bo!@Jpb4E70by zH9n}{OoWS)VTS8N5AA8|O{Dc*de^3Ijz}n#Iz+u4&eAA39a!><=9-*mM!XUl>hHL9 zDqN!1BOPJOwx^|!`M;%TxYZAct)k}jtDR8g@4cRDZ~rO4wdj1&6wxX=9V0nfW`4cx zcRcR5FWBU_oqcVV_Amw*tFZ=_J@%5^@!|$`8R(aFeLj72TuhxA$U$yVr64`Ewnahpj)>b_V6}Hh}2?04P(6dHmve{3}$S z-b|Ai(5(V~gCIHhWM=-~l+IoIi=wgxcE=QC`?iF$S`wx?#4z%pcAYn4*VL9a3X$`W z5-bSpaO1}(J=}lePGp282Z7}+0D4o>PQpb0PiyyQR4qfCYwC|I-gm*^DJ2tNEe)Eg z7AULw>z7}4HSbH>7(~IIo9rJg97{|IZN?-BeC>QEp&{0Aoz#cxn8Iy^-kQF)ItdaL zsk5QPl(wBdv1cVDO!H8oe-rKbqvUu6ru8$7qIxYtLT6;uH#@6-!s|~bp?JmF=d+f= z9&!kBuq1_0U)aTUX#y>pK3(lNG5&yjJZGZ%`XkonCfMZ|9STM#g@PwWfjN)&3Y9G% za))STHYR6nWSR=DaKcSRL9H))O`%U_cabSzC$ZfbtZQ(o;;D_GhR*8 zWYzI4MDTL*rWR#(5mH*ZleJ0XXSC8BF|H|Izq?2&%P(Jd9peXsjdv4_@Q;jsv)!HI zzx+CBYV&kXzTo}O(@9xBu?_n1aNA_aG;RO-y3m}yRWPB${7?7OwRfEaFI6(8*XfJm zIf1sk>wZ3{7c6M1GXe~^t<`Q&q`b`=|6#4qgL_mI(tk7bQ0>Xg;|xEo%+f)jo2=J^ z3jPfJjV_WTA~wIuV8>R`L0|1{uRj?W78IFM^@n6gzgL~n=d|9aTR zz<69s`9`OXuWK&9JWfYO2(2Ge21PU-4CkFD!1wde=jR#r@1Yk6t4FifXOq2MPrVlg z2F~`UpYi7Ih*jW(2Q@D|iRYw!jD&V(_dZje-3Fn)wRv&Xmav#@KYP8c%PH9iK>FC!=H2PcWbg#&ng&|wxO5xr{lBUn>qAP{EkkaFv7^i&1Zj0=BV!O zKgo!bO$T51ES(ZKqS2(Lx*Sa_oE(kSu4b8~wcLfD)Af9I&$S{*lZ26NEg}X!m$s*A z*Jyj(PU$%MKemMSU<$2gDIH2pW|v2&u%9F0{P_2l*1qU=Rx|q5RjKKPz1kYj)GmW( zvGC=q$MN<_yo30bvi7zT&B+#mLn^Xfjhd)JkB%QYt6p`_O2Be{W?VGfSWCRas$em0 zG$DTNm8cFe!(1P6Mto7K1vY7TI$v8XTSf*id(CfPOJsfdhq{1n2drxKXGrWe9QL>B zj$U6h-CVRkF>I-ws42}ZhbRtLMmL-eEDIICh90iE$z9`+Gj6`#VWMKl z!>?y)>)MFfe;a2eP=3H}>ldXA0NQv9qrf5hSJm%28)^@eR&_aRjm2g$)J1Ylr?cjv zTC1CR{3qJ>ja|+%5(@<1e?_%>#q4gWZ5!LL;T2^FPS^Y^QXE+V}l|w`-K&buc zdz0c(T5EOQ@Qxvj2K+PU$fGpNqssC$J*}+R>!hk*^~R$beB6~a%n321()PUXy zp_6X@W_W;3aEXZA?%gADZEND!k2J zk}_^D@;+PQMaCOxx6{(jo$HnmN{0xMyi$jk4bvv4J+d@jW;el+GU7U12N%P#f-@Ju zf=yZNN!>eHf_&RBKS8H)2rG@jsPJlpaQ8!Q)4rEf`pCs>ha8!Y-tr=O(}p_xoU$Hz zkk+cuPW};o>GrS)aZYgUWq~O#Sb+C>Y%|@&<@s{3au~Y)^LVjmwvgLQ@L-k$ztvKmu3wg*AhX6D=eZlmBM z*NcdtCg;@+CZk*ha*_w~m3WEz^}2%a%Pm{#HwamcIGEDRP01owX{x~YoFB%@P|f4c z%?sJ9vJPyCtHW(ukJN^}uNYR-)jLLv%MIO#(V9k{$U@JQovX!#CY0FUHiBlh@hf^IokEC5!d`#QCmoj@#%+dx8?R1dF$t!v4h0x==-#+itu9 zvY{sLo!;!)jfgI7)25?Np4|vyG629bb>MYicr#pDUZ|&z7XT6Gb*0K zZahb6Ujqvp*AHmr9_rg3ok(F4=#VBuZAES$-`#QJ-^$Ll`=#f_M#7jL_>`wXgWbFK zGW>-Q2ON#=USy@XsP# zkd}0LA{1JznfLO;tcp=Z6N-AVIFZV?z4Q9dR5X83`b8w?jVE%wQa~gOTo(MMe40%Q z8bM-G>sqaSV&f}N7-Q^PlqLQ!pRIpm`vd0c>hl(e6AGH>OdJ;;iz7RrOS#YtM)tqq ziFkbc#945ieN}yM8rEhm>-m0Ji+G{7mM}IVIFu2H1HtEscgwbCD@^Cf)OBn0g>DMp z;Fd=GiHlQm&^vy9{vDq}fDHIhnp8{Rnb&^TNQshyg61SgadE)N;c;_>N^xAYABdox z3x``JAR4`=8ax>$_l`~lFOQ@_H2II(+F$b84R z@j#H=7f>GI_&aTP3C9GrA0jiWW4I#T95|}59dlper63)XM%4YYD1CpPXcM(*CG@*$ zb0&e<)JyGpEpxTn!=!7v%TEqsk$XHURvdf=+ULY;rKX}wWjd<#pZ*UNZWL<63jujQ z9tltMSnr}Z+R~}t`E9)ovEUj?3et(dHgo1#u;dy_{9N59v!%w^w#OSY*ni0L%5J9U zt6OmxR2db=^$O8VfK9qBX~B$_^5%08xfigWtqZ`4|NIXABT1HtvP79$K7JZXw7lGP zCr0H1S1**lE%zQRBT;|%=TS;Uji|1&um$s6&@C2_RF44SoS_$E#s{UxRpQ0oZYn4r=sSylpqvYFFz+`q0-X8He=( z1fW67Fqg6CI_2%-YdJgf8pHkZNO$t>dJ}-#vt%Cj@_N9wsZHj;Nm^x;-t0ga51^CZ zMLsmZtlv){?L?T*dk$pv8li>F&Aeq?6o$jjhB>W@hbv#smQRiwHsuRn_oQ2nQw!Vo zKOT^`BuP2eqn{iKTp$S?ceC?DwKvW-n`Xb_!uq9cz+sT|#pYdEqB`^?cw9q6op_rD zAk=dD3x=hDcfUWw=kEa~==TqF%QBRo_(dW&#smWhgO5|z7*O&g<~$w~#SblhXp=HA z#+V;{cQ{%+?F%uf$U08aniDF4b;tvlYOY?Qk9L}w_FPP>>gc3Wa*PUZKA{APgebuJ zBm7!YIAo3oBoJe@dJXKCs?hL01-7SDKp$JNdES}E1KJ514mVY=t+2bxrb4NiO#Zd4 z8#|Z|BeFb6AI+#)rgT6gdS6;h(tBpiK?{?JQKk>A`5)K=uwU$Oab|#eESdi8SFz@a zU$@e3&(=S&tl6Fhww@U?I%=o4#Ab{&F@Zm@L8Q%v9fYFt5*qgs66!8GZ!dn}nL*d39AWlO zw3_2)^XB2CXJL=&<%RbheWk4`7t1E47d@AFKdPU}FQz7OXXNs$gzt1v%5c1n+z%L2 z5v{X0Qxg?^i;DyN380=v1l5>xdQixLy5{>~KG^zDz*5Rr!HLS%vkZsbr=3ngF&bZ5 zZ&}L5-<@iR12Wo^m0$b3{!7j8|9qis{+R@mGqjS_EIXLXwN`cXm>?=S_=~%PjBnwA z`d|E=6FC>FCUddY0T@sr^=b;)$S2Y#m`bM9x~kuo=Vsfy|PphqP>C5OTI({Gv# z16D|4fmL4EW3nDVfMf$H9Kqu-EOB z09tuo!~k}7VfsbAHj5v-&D)PG2PIpVHE&CXic_~i(8(b4M8un!y>G}Np~v$J`@dC% z6YA(SBW#qxZf2ud5(ZaO*GpDZKyCHB^!g}O?C19S#r5IN69djqh$lu*<)Od*!k|xo ze;a|eJ^ODKz;?>8)=TQk7jBP#h7l+F__@!?v3h^b@K17sz`i?-dSdY7JVJ@4AIDZ6 z`mWu{@7kkFPsXYw&_jZ>epPBRoYd3|t!ALn*gh-5Gd;FlCI}~F+Oo}A$2Jpgu6~K> z6R~U1xCkuPxYvY6%j%C6QTQ)d>V~@!1ru(Y@#4FGPd)!!+glJhl@MjglfS!j@9Vz= z(-*U{HhVJcDZnX9Z;3y6RR5Qy7Za7@tywGnC$;Dq$^?FPUK{_uN4U@h~Vxd{7kv~LdxPl$t4et>-U(xf7OC{ zwc+LBlli*Mbl#&2oxx$>Ly6rl26tCoV>UH&5XJ!I+y`3^a3rPX4y4XRk{@uh(Y9e7 z+0zb8Cimn+c;yMU6@KtKMIyHlsnKGopbJx+^JON1!0}(CHsLH(07X>_-n!9H zTRV&amH{w&yPF;khLq7n=OPj2m89I6`GCnjX$5jYt`ho#jwbzCOR;q&6LWP3gJW?l6yXe62@wP_#uX7ZiA3q^qHLOZ^6WS{$e(4A3%S6| zaknsRt=8}CaP_sB%dy=NIq~QhDInVUFOHgGOB!_ikT*e%RwF@~>pwhd7_MrT7E9L8 zNb;FhClF6CUl6pNuIAS#eZcF6GETOJ?3`-!|M7|KP2*mj)OpCu8$0BegczPw&95qQO5F5Gyns11y8KCP z5Ukk5$lX18JOs_)xgmYKF2u;7KJ$4ZT%vynCYpQCna~nZ12(qgvxu1ZNfhyjk{6%_ z8%M>CE&rugCnN-u1l^0v&o4iE2vOX~&Q@%DLmDS71b9>eceykiM9Y(;JqLiddy8)R zf}}=?ERFB)9$tCe6^bs?qIc1koLJ($Adgh~UxIb&Hc{ph)yAt9$-?n;2z8ThEIX&|3(>Jmo#3rX~8e6*mbMFM^06jOv7DQwS1`yCFClclVkjs z7bGnh=+iV%#pC=erzc!?fhILzSIk$pYs7DC*3fiifoUd~u@^9;0a+>eXMHS}2kIgv zpVA_oSRuyC%b?vjmvO9pNv#L}c*ZFu+|M9(7aB7fT`174`F$;9{QpnbA z>u;1iMt%E7;RwwkDJvD`8#@I+wg;7gl8&|+_Y}OeZe&;zc$eeaE<+d~paPU-YQ-I|YVxs`}#}3KOHc7(1~Q3_e`Q ze%1n5dTv@>Y_pvIBYN@3ngyWN-{^uIWq@^gfNHHuZKXh$1c?ffXBE$-3uqPTUkHT) zFh~pLV5K5c<<4asz9ya^4Rhu2$MgrU;m<(KY_Y9{0=X$>sg> zc_oioWIoVu6m&ox(Aqsk62Ej_PU-~H2LG0eX#UgvE5vbmdW<_agSW)Y8k|=gw-e_~ z9fOSFf0l#+m=_2a{g)?e)l1V}x=1hPrJ9RuR$*!B#3BWKfEul0)n?z0pyTs;&?4KG zXfn+y*sW7ZIh^R-D5zU?764j&3Of+8mc$fHv~+^gzX=#L{*IVfH#(m&(w}4ou%?pG zU@O^Mx=>G-ky)id>Wc_7(85y{`}0&Zpse^WaxVh+w?*NM`yWG23<7#upHKQ8-ji$@ zbe_Vs86ZXyI%8D19xr6ujGNpz>R7lk5~H^rn+K4@;Pb=Mo1Y($&{lJ@Fm$U~qG`-$ zEXF7WegfP>$*C{;EcE=Gf>TnyWd30U+FscH3q|>g=KWT7q7mJID&}Iq_lwI8&+U|I z*j-wBM&9P74w+L)WTY{cSkM zo*eXUUauHl?*fm#!COC5$*#JR`E9dkZ>kEf?>s+M)HZhj{Hf3uivRgs(A}^ve_4D9 ztjgqg8<0gG@<}${?ML^lCxz&Bewmf9bv;Pp?iCYC%S`e&o6dbzqQY)r?%d;b3u!PF zlQryZqvfcylL1#}DU{(2PXxO}MH}&UVL#-$v@7cZz$05ngEI?4aI;h`ykf+fItYC7dQbUqKhvkLt0 zdw~Ou(AveZ2fR=!Y^Wxv2pg*w5&M5od|EBo+=8HUh8@%R7T|bvqX8rcw1>dz$=tT+RGR9FS%oDGe;ivZN6do8Qv#MuDbrb2_3#AfFsf^vE zVx7M@*U&nx<4XJWv0`-9OGEw@W`ZU~*nv*)_Ai!$UM(km*1>(|vS8Gg*dl%>EAn8U zmmiSN+%6_}4qf8(=zsKNv5mj_h?}%KRCpemFhA5)29-Wia7+*l3R}>d6?QNzAI!?l`G%hKAsa~IH&NI)Qv%QFt zuHQ`iS*3K%#vz*38?%kphG9LTcWhhvqEYwYhJ6vL`8-Z#Hu00MuNu)@z=pg zphFrnY(Djx%oB@iJtMOV49cYDnSuc7m{4OUhk&5h$3f*^&gO~`OUwyP#1_xSGzy=m zgF+w{9nc(rNrYYz_zattg52Q)zP28f#KB+vVkgF_R3YkBg%lWsv-RsZ=c;3Wx=7cfP(NEEdpZ z-jCC5?W!ywEK{m@IsIgl$;yI*p0?FO2rs2}{8aB*dMhDU$UV_?&jCy8R7SXt@^GiB z@+=W9p_J&S*U8;fucH<$g#+#bNrWWI+==;ZTx)k$H6}FI#+b_{nWe?2^C|rcV^5HP z)N3$_<9k`RGeDZ6u4W-wEsIf^n9yz(aEC@)Si476M}3B`)!1|;=KIsl7gmf|jN`$R zIG#ybZK!}F{r8GAqX_c-aDCz&R@;$%abHY8Cey>#h0TLJF|N!JYjc7TZ)1>=-V(Lx z*C=hLT*h0$!2Jb(*`N{EA{(_*L;zGXeDed*oSPp6=>5eth=uTwS@M-%D7JlKgP=P! z_ZAuPLTl%-I1_3qB%fw=Q#v#x;1QXak3Ir{h~y=DT!+*+NCHlfFGa8B^Hl!MGicf` zKkIlgQWq*UaUX-A&0)oF-q5t%6}3=3 z9hTlb7faG$WModVm~MMAiCJ^ObkzS~iM-V#F`Z;~{g0^Qx4XG8obDO803Cfc_!Ny% zO~>$91Bfdsp$@c5(zPZ&pMy77D1|>dlOK5T1WEzkE#a1+%@jO|Ugqb3)CZS`)&JdK z5f$-SHtJObH>{hj^~v!A;Ot^CLu(^}p;#wNx)!ln0GbEvIrkcg8!~1h8-yFpP&^|{ zf98lV`W0?n-z!Wnh1oRUehMK(Ct`wCe)ksBX+9Z(r+(?)NO0;>Dt#;$Zh#gk%p6~) zkr4C`d;D_SbpUL&%u9SGY4`)1<582VBi$`oS?QGeWar@!Nn`$qat3ARec&KIlLIKK zienpRw;PYHbQ!`paavu8r)L86Yd)LIGbZEQDRT+Vy)sm8J?0>-(;DwY{ z%s+4nE*5InO5!zj(O){(J1bAJpokzO>uUWA#e26Z!Y_YHtr+p#I{#9BR#S8sHM5(7 zfPy_v`W|5!fR)N9C3!5IKg)I>V!{X^O^&IojJsdZTrllUH1z)Yl>A{digL@qhg9$x zs+2akNm>5lGWG{XBq#4HRM_t*&N0eoGQkBdtsh&TGM9AUf|uD11xjg*MbZz8^2?*J zPtVR0H=UVC+s4Bl9lFvQ$fzQIP*aa~aGO1oihpJzg3X0oC>p@>&~C338rlPS@r7o} zU>rsSo3Trh-%6(qIOAIT-{a;hzkWJR|B1v<$?_xay3O7{G&YXR#7XTc`Lt4^bk&jZ z`JdY$YQd812%!9!xZa0qycrzqM|2T#y)#AaZ}XSyJ-dL$_AU|yH!A!$3sC!50U}6w zOE(V#G-0FcpNihU`Thvew-FNb#%|dAMXGG{KLn7;V<%+rhcbtp@9!hDGaMoB2e|$2 zxNNFCnm025^Tr~Ty#lbAsiy-!eNLdXvHVuzeJ1=bGttnk=|(8Pyjdhju`gI4W1AG? zmOVjza)-_LygU;ZxQ3uR^Ql|K17!%u~bsmbP54-m)5v^Y%?Eeu0SG!a*ZcJz*eaF~@Ibab7TTcn|gK zpSHO@)MP!z8kB0J1bIN=&e#XHtv}uNK1gCz{?GaKQ3foy;-#5OH!ScMK*u0>fBPj9 zRj#lA|2OnQC*E!=` zH;n*<)2Eb-Gqf*}>qJtcyp;}qg`Oec4&|B99%w#3!<$zH55mxNJhWRoANHX4=B6C_%O}YYJ=V^Gr~pb zupxxJ(^y$H#imlWe|l9<60Myde_O_JUn1D5$A1OJ1eu3V zwEh7W8BjEsA2Jre%AjF;95pev4B46Rwo8m zA*1g~pL$DN^z1|or)Ne)RTfVEo}ls)uN~3p(!&;%)XqY#Z_aYSoP{^0(f+8l6R6M& z^jnb6TX@l7RRBlG7kxzNRQeNl)sWx1dGxPK*=948!Q~YLFMf*{!sz*J1fba08r{Cf zC2w&C`eIyp3Dvil;wdqk!xIYyuyBdCfxYXIEoTHzj}tQokQxLKiTYj1W5wX;o^s*W zX+`Z!_0C4Xn!FO?!B`YL@uXawCb4~wmyb6_1p{cF+(z1wz=46nWOPo^V@l{%26iM# z80gh_9@7&-5*Ey57tFE8sN2Y`mRC&yxq|UOEE`YCmB$07+oVDV9B4qlVvHS_a0|0O z|AgU-k|bccf_@Oegh=EuY2zG&gKC@;6fW}?ett(ECmwL_aBm^t~FlI(@iJ;Ugi6so_*)SmR5ujrnsCwhi2Arr-rglFmT-f zQ_&YvgFqwC$*gOyDB;vx!~&p61diD9hWfR*Hxzj+s!2?$wZxo zPYAi?`cw@;XPq|TUp0}B&9ZCocyOeD0)@Aec96WxH*;2qwv1=+y{zAW)0hw-M7cjM z*ut&)H-%#3W2@__@I}3vw17$(_$U{Q-Rhkt0Cbdrxix~>_Vo&4+b(r^A|m|>G|UGk z13l}GL>=^#3ed-;(Tw=66?&FZAuWipcmiK8V$KPf3JcT2D@Uj$Bp(cs#|E?*OA(o& z0TTrF7ctdyhC>|facNg?0Gb{=q3 z=$|y%A`e4*S5#y0ed77nq)yL3Rdung?LDRKy%O|{=1xm%u$m`=U55`pNS@SZCawf!GJT zTqK83Mdv|m+7iKs+~MjD7js=Gnn1swcanfJ4u`(W3C4tVM;NmOkRRV(Z(^Gd$`+*M zI;=$S;xHR`YUdnP7=MQ}zgn>wo}tFK9?RP*dL{&Vn)v+ftZ6nO&}s;Rk&zQ|@Y04t z^(&7+`y~KL2;1q_5s<6&mV z39qf!!$9re-p~Kzu8DF+`=@BJnWfF+Tt>pY&KeMQ-@jVghwvhb+4MsU{Tqs&m&6L+ z5j~Ba`MW@>NljazfnB0gJK5b{?#EMGXq0F9KCbTSlwGae9G<2`{QtLt7vO@ z_(R@4Lf`@fg?Go+vV}o_S13#_xGdxv4FXU+`X;uk@aSgbnQLpZ%D% zQ7S-!4$Lnp&#Us_`~l1ypTM6G)MRl)LSaA)F3}5GhndUx_G(~5B&I#@?lsXzz?Ps^ zOT9f4a>)e=nzad@$Li)*R}U3U+q9IoH+T(X^knp(0Dw8dAE@Y@$XB@W`Fy0Eg1pWU zU28_q=1o)*_QS9(Xrx+tNo>T}?=PT%rj+BjfG4`^VFH3e(Cd8_rn>#A0mC=T zp=tmFe0)U~alWM4->TMbE#%4`)&0F!z-RG4{fXeM{@GoKWVZjkJmlaOrf0 zmBtboa-tKf(1<O^+r*rG4Nzh5D>~k=BVEkWW?quTmS>UUqtF_Ny*9y&*cP zb;A>b|BqTGBtw&A|6(Ay&HlDsLTg3b8VjhJFt*MyEAb>A;wKU*LLKh_tY<(lmxG0 z?yHs&%eH-HB+^L0U&f~^L2}u&6a-ieWPv*S^KG4dmkkKG-zd|D71l@O*y=yBSm8~L za|f<}k{e!Iaj#rouNJl3>f@D-+-J6aPcXcsmfiXkdsq-qR4acY2((KwrHJS-K! zImbIb07~sKT+D>CIvV=I^tEzj%t{n?oYval!nrW092i`o4jlh`NR^L{Hf?^b-4!k~ zlvq(e#n6}*9+Q^oTQ3a&2F-YORl#_)C*1LzT3K94wwTD17p=g zRub^=1!2C@!S)BTHl)-_aNG~Kcx-MKBfqBUahdX(jnueK%{H#kq)0CVO%;I6U1~3e z7j^6u^?pXb(nMphhn21g-E^FlZ!tUH%I8zjoIJ^t#2V*nOEqY1$0XBEMnR+oH2 zb50c_x_jXiUxJl>Bd3f(b`jiFq0JWRU3)*$otfy{#L|Es?A{|lgZ%~-i`!ayzRXxk zt1(l3$!chL0pV}DkimF-$OS~-i9l2XEQkRT8kyO)7dMAXyjWC*S2>(wLsRqMtEKjO7T`EMu%=#ex7g=`=8Eic5+n0%BMjy{iSm9xbmsp zR(6@-+UDlb#@37V|7HQ4OhD&>7E<8=xS^d7)UJVvB3^$Yv-^`JnZerZfZ4mFL6ylO zR>vIAvrtPJ;nU4h^Yfh5H3}q`RLmL@8{NJWELUPmm-a?(5+RqL!*k0@cPR0j6}9B3 zD@0N6mS1jwzuAZ;Beet z7Cej~N~~jz*J}II^1YFlbIdiRDN)aBM>3u%YE-EnSCpg{>qF8j>)0Fm=$d}Pb~Id` zJl1Ls_Ny6xO+eg7Y9LoPW^U{|E$a(vOjC-nByiS&=+owle(Ir6uoQ2(_CoEI48BSV5_OC-hu9BjZ!FArSU4vR3Y8t zztYEXIBr97dFps7zk#*Rsb88j;s*s(%yIpUfy$e5z0!-Ii)#n4=V~)$UQ_tAXW<}r ze!lokO#bk&YlUQPM>&aR_1XZ-g^fGORQ*+VE*>lx>}fYx|`0sF)1dKp7D zG-Z5yo#{OCO<|z`@Pi0Ce~`Bb!LB%8O=d|+C}$w9(Fz&Silg1 zR>(yT7G5x(2H+Lccp{J{{L`WV7J$aGxlu2jq4@<}YP6801!7f`%&e5kf59ovbi$9kMzNU-9gBbeim(W(DX z-F~hgrwW{KFX5yzsQsg_q2813nUtUxSMkN~`8{_17IrwnyXVQZ$vSrP1znynR)%3( zm~CR=NwXWjGGy-yHrcQuSy5bJPp!F9E;m*|uUQ4P=}}#iJ)Oh|QZi7_P-ndTA=D)% zgzki<#6SULAGaHmjb#0|;|3=et>MRSqorR2es# zT-dw3RTnz3xQmypl+2`I-)880GmbxI-hRP{zUQa%`1qO*4^pi=vzA9Q=+M zLLHla4BC8}jQ?KHw7-ukWzK(QMl^I=!^Tl)yhqD|!abey^6t^p9SjuEAAX049Ry8@ zp@)HIOxqUa=9X3%t$PT$RIggPYH8sdrPrx5=l=Dy@9WES@4FoBWzI@S{H#A-dE$FM z(N?>gp~F_#fMdds&G22e!r%pqVTHljFwtFQKscHb_892C{`g_X-q>*TEaE4*HT>A_ zny>hXhSdmlXpTu(5>b}q1+Bv5qA^F+3}xLR1-272&&eOrYA!>F&vGN72=!$(3lLCl zqZGP_EZdZ1?wj!i%G?(M2222f3sfI1lyvz57>_y7e;HUSOlKq@a|t}x@m{?8f{W}@ zmy6uL=yp?aE`_y5XWeNamg!n$kiv{US~wTzrR3g^sjt`}cfq5FH_Mp<{^FJcbf=7S`kFku{{NbJ9)LHW~dAdX3ToALHE_k$x3G*y}&^Z>Ccir2Kubk~>o z@LZ*12xMRZjvuxZW<%*(db>X^tf1dfqnYmn215(mQ`Zl-Res;glImb_mDw>R9(AHK zL_5KN*9JxseSCgCRO6%;ak1<7zx^C9G#m@*mXNKWEio}5m;&BWB_HOW(}F24A;9HMPK+!e<|46#EF9i{7!R)Upkq#=WWVSc)gub`bagnk4(~SAunm;ftM2*q% z05DiOSai90dYZm?mBNwy!wQu>*oq}6C?M@vnpd>ssk>Ron66j5+BdwY@gBTat7I^# zj&pztXu9zu`+_l3d9xt8>%}2bq)JOh0W2;H+IG|swFdFyzwC^@@~Lh*I8Ykf-eF3< zA~X=S8)|5;v<#yh9{K>h*R7d4)cTXTZzT7+5ntg7F0+Z7d2Clp%kRE5q0#BXIhSyU zWV@J(QqIhnk!wVJv=;G z?XewmdSi7FLPL>LrJ$AzY^+Rf2R(83NUzSS<1#xaJ~aTFUQQVMfA{bP=;QB@SDxd4 z2>o_)yWN6luNDRUT=M00 z1~Lm?HQV!IW^M=6?|55vrkK!#otGPLg=e5A7A*jBV*SnjZ`6tE&65pX3${cO{oMH6 zkM}m-I{v(xNM}cipO559&6-J%L^N>Yq@W_)PJNdaB7W>PnVfh|78PY&?hjATtzqtJ zNw}aic6Ew+t-@#!u5Ge}?CzdJZN-3B&;SMm(!U9)b?&>_;ndXssz>Zzu5gY($7U&YU(TsXX7;oy`bUBCjdXBF$7 zCic_vcu4|k(uoWmYfu^H@2Y4~@rj8EL#+^mSd{ds~eXqv~7XKPj9jq6`40>3vbVeI0sAacW)e)5N|WuTVo3X zFDrH=F)}Rp8@oRBXMg`z!J6!5Z62|79>x+(Sm;!v8qjLA;eGE}MmPGKh!dhX1b@&U z>;Lie-a$>KQUCY4uHst2hJci;(wme>hs2ep(mP0r(jvWgk|+pBmnI!VI!G6gl0<6g zMS2arL+A;qZ}xe9&pVSpGLxA*bC>JB&iS5mK3_kJ@tRGs}+8kzQ`J)1`F? z?6B+SRUXMMx`7NRcuo|U*sQ68If{GUarif#SaiZv)rv#WW=92AZoZT&9C06&%0+n} zf8M$&FW(&4d2LU|bJ?X))LBqT)kHl=JrAyX>X~mpPw2hVfombPRb(FtsNzTe2mNlB zzf~L$*cYLA*Gyj!k8*N;zr;JWZtcXw{9TWcFX(Aoy>ho!ELAiIOxZ-_?RX%D=qOd!oYpP49*q z(^&`74_sZ56!Veza%$nc=1PZS=S1gwy`;_fhhS>Tpyd^h42ym2HrV^1qEYnBf*3Yh zNSho!_cl*(bJAK}D+i-QrfYWR^5g6{&2ucME1z^M7oQ?}NezgAu8pCBq=$T#0m_Dy zwoxf2#k)p`#36aaPU4(fwmyGO#s6XF*RC|iuvyUxgCIOoUkjM8(#N}@Vp4%;W$|%r zCq0(<1NN3Z8$g=#>5gb43yw&<$IxdS#Afh|S0(>UU*$_}kTDbsC=z3XfVh zp9?yDamOTmAcgX-PsKGIH}H<-?=s^NCN?(x zVWa3$U@jWx6u)ISDjls6aT{itELM)UX;ns*-V ztmIq}M*hX3b{8x7f2~K1)hn}Li8Z_|lac?v{_cWuA4o3*LL({G?+l z#1E3W&&VC&Cct4#S3B$lVr(?Awgnfp4?+hrw9PU)tG&m!#Ln`p%S2>=Qu5D&1=bl& z3I^U5Jar=IM@HS$PWl09ypXX;g{&#}P=uU6&JlY{xqczS6>|KInI4^d5wDJAzZ<1SF zIoOh90;erwtQ>Zu=;kD%R-SWG_qrio`y{^w%HaotE^;{{{9^NbSdXNyM+lA@cPt+^4Y<}B50Ld zrbvyV&6cQ1k7Q7&u@TD23eF%wV(>3&nyJWV1bZBt#*60e}uE z^)2!%6ZU!AE1BR{TkX@4#DyT-;z*8n->;WbSXL9nH{eA#Y#0}NLtHA>po+Hkn+>>@ z>ewGFyRDp>&8FhMK`qKvUVyQT^=Qe)}gS6lGrrqdxH+enV zR%-k1>hWM&{~~a;kiocHo5QV`jvrY0u&}Ry=LoLD3aR)1pB5mna!$@0%ZHna`wk^K z$zUk|bWhVg8ARylbETjh#L|JfUsen$kJ|3^WdYt5^XRz1c5MpczyG_iw-8dZlAwio zHC6eR{EfHKk{v>H@?D@%U<-?SNu9QXBikCOeQ}mGMfE4%^K*j+seGJ4s|QMWXW2XW zXPf8z@Wb(vxvHoEc3+O*HwFqem-!&|r^f;yM)1jDk_S?f?atnKTPoMZQ4G~JoV_O30C2xiv*Eq?!&23kXdTA^ickI(vDA>y@mZHeqwq>al}zFSkxb~%9+lX3o^`lm7i`V*CcG^%)u zz7Vu5CI6R>4m$KS*D-{#$vX66T+^}hvL`#GI_UHHe`}6V5*A z$jZ`^6WQbdm}h|al{X&TY?Ae7vcB+@aMz#NR>CI~;h{rtwQAZnooqa?po3IlF0y!n z(D^L!xD%G7_$q7O0{*dB70!DnCzJH-BtH4Nnt>`eZ`zqh2J%0Bbwc{h$Wp1-0}11| zBF6u{Tgqp>eMdB?JvQh$}Zbper5)S(yvdJ zLTU9i73LOsGJZ-eWCgMMOC3cJiMP7?ch)>_(L?qclFAuB9BB!*q@Gf9-f_x$wzrUY zR|_Cxyts6k)~lRzT&=qaDWn!v6<ImTs!}+c181{TOedm(yE5eT+Q|ehF250 z(>S>q%QAvD*EG2=E;PG%y*nit55^2k)ITOz)UuKa|b+9S5fa0Pon z)ob~$bu|n!DG>~wPzHiMOxuc>Vd>!}-9izfN<+Wdoqth32>NkmEBMTxoYimQysgWh z(&>m^9;*_wBu+3XRx4IgdEn69x_(@c1nLy{ARf?jdX(i}+F*oOX2zvk>`YgI53Ngy z_egXeY%2KB|8#Qa3H^Lj{#6OWFBY4Sy>*zbYPR_H7RJ_J7Nd?NriXqLnlKQ~nVzU% zkP+j8xt!SRQC>br7gOq4QpFHQ*BrYwTYeUP4XzA4GkWZ==2TS9)RQ$^6>RXUP~4oEkH4I&+Q%i^jbRPa3z_MoJMW@z1HJKjnU5uEO zxMU?Wb*aVUjGs+yfdTGGV=@NF|Pu0IIK>PptmR{y^Da}|H`5EiS3Ne zd>OJTFGozBUYO)eRRID=zdan8jxPF72{I{*bc`O*@6K4V*KFsWm`*| zT1_@#8~eI?3JB+G4@f%;bBi(XGLOBrjUL(4^+vQC>~7`sS;57l(o?il6AxmnilZx$zM z8gf7s8(^!uH~^^DuCMx1c|51d?lNI1)z9~8r7GGl_MuE|;kIRL>@6w1?4qI(T>x?_ zVVtE%p2$rO zC69OGTIvnX@Am(C*&ZFy(As*^myop6d7^CmQfl{lzH@Vfz-(LnF5Wxo6D}AARrqE^ z>9urf=*h2Z4Q^d2&mYuH4#uipxiXy&!zZXGeS6Jm{57&P9 zAlnXeUat^0rsq!VEO#>3(N356!%@}Jzwzhke^76S^MI)ju@&l1+#X6gwtuE(&gxuI zQ|}lleTe~~_qQB)(w&aq)wrmS*Cg>Xa)IS{rW@8YzBJ>}Kgp4Qqk}r8OQ*z0{-j?= zxAc}*j~J|E=Wh)k7dJSZ67;k}cNiF>7TwY_UD_BRtETj|J?5fikb56$< z7*TV^fi-xr1AHHoxAq?mIo7WK*Z;*aqPHBo~^>RcmyY}wWG?`Ss;`7F(AxXP}! zp%N<4eLT7CsAsmB@1dEsMW=_UVyzEscfy8$s(0=mzs*C>dOt6?X`5X8yvBN&JZ=?) zW(Y`564H@Jhs|zMvKBWL2@Xb|ma+W?ZCtsY6J_vk-+S;UGx7BN8|wYnIzUT~-ceUd zp9TqvHrJvxr$<+o1*juVn~nY}mQ`7B1HB;jg1!6lOv>={H=fw}_}cmbk*$i~1wciM z&$}+o7=9UGE&r#KdQ7neT_KiGO-pGza;O;-@Ktx}$jEq}9m7*JK9+d%yX#2L2M@av z*MV=lyFuTT>E!9NkmvjFsftt|k*2E$?}GC4F`rU$3>J=xX<^T`wpk}>WP%fPRm>zE zMv36d)OlUvAcVBuzX*G7D75sgJ)$zdWwzy2ew=~m&DO&{C$}tcz>C;TrSXXgzH)<- zvnJM`x;G}^w?Z?WR;OI(CPkV24=Vg*O9Vl~&BPMl?&vV$mu`aj$Jtd*fgQG26)pR3 z7;GR2Et8+li+dvkz|XL<4|2bBju`{MxzhS;;D?@=w*`A?dYH7}$t^B0~gAJ<9M zUuIC{pYgKRA@48zW5bM=^(FWZ$6S&s`_pJnR;cNe4%(i210l+LY_sot8{+pdj7cQ`mTCV$>?owyRUY73n@r`1zvVrK^KI?m@4BfWv_1| z<$mUc*NkNuvZ@Z?*+-IFDUUoXvZYzxQ5d9B7pd=?->KZ!Fpyy>=S*7lU0E7^vVCJ; z9z}cSU9+>3sqw)9W&E|A-Enm)gx5<@`=u}lJSLpmWL(eiYsgFQ?<^GjabW;yBtVa$t>(Wb27L`9h;JM-&(3f-={W{Hz(|2}Li z(KYDsk8im;Nu<@_H$8kUr(paoaiggP!HCOUo6d=L2p z070ASU>SVEv$TxC1rdG)uXX@Dz9W|?fQ#*287}zFBAC>T=L*`nxID}md@&KGg!aHf zAmn@YH>&uvTqr{~z`JqxBau4_{`iaqt1x^v5b@46r}hFrpU}066cQGt;49N9@r)QeHsTm;8r@p?pU*gZ`#;EpT{i1qp>fqhGobm%dXelo`bO%;{-51QtYZ>6lmd-h0klZiK}M+rv-pyD??wm zpsJsjUc8lj0|_N3O^}mkc6`Ha3-Ew6lm|=vM0uyn4rl+0e!X`*)2o>42E7q&u9w!U zW~gIzOL*IYz2j#u`+t@&Nwt|c{_;jEZtM97pvAjplk2bi}>WOnB*I}*5 z45kjLlbQey8KrX4@^sLJ&C;u)qfIMF+O5*@EIsHyc> z+v_S0=IGc>W3KL$ktH|StBM9kDZx5E1$7)RQ;eXC-WqiP(76IrQ)bdtA4%r(&^b?6 zciCcN(eI5m4NUM&+v!P?m->7jjRreiR!$x$TWh&C$88(b;RVM~#c1bs-En6#>}58~ zQhU>QRBr3nrg+DVT0b-`gCD+XE+&I#xCP%nZRmGhXuRVUk2sJ4o!4(}uHw?~x{dGG z99j!z{lVe2V{o|8pRhUk0Vt(_6lc!B3xD_kMmnajn{mYMmbdjEZI0!uljmqMxies_ zqLEjT*G(DpJ^1$w`}!uZ4=zO|Ebt`T&HmzSknzVIH%FwXr24O?TDm zGF%#*TUsK165oBu1e)7^>=#~P<|QV(aR;x>{gjFIX1@z>FOe_<6@y-4!Myzg!>}(P z{+rhT={kYzdUs}|;VI>8s^>m>Cy#`AHyWVVU4Adk8Xg*icWD{l$ZZ`~t~RunhD}}m z>#8%v{Uq=#pNISlB}uBrsr{%*R{5s)<-(4yAG%DR?9zkE)ql|WG@V^+88N3X?#!3q z8#S6*`iuT_AH{1_wFInA0;_NS@3S3Qz|V3sdUS=`uFRv(ZUG=3sRrB}35x#m6mQ_# zFp%b=cBA9e>x#;hDC};w?;?L;yjr))w$exB?WwiWD*Sy%RG}>(?{qqqJpJ0xY!g!J z8hnAl2D=|c!~GWAS5@m`b!MbJ^v6!|!Gta-;}em=$^F(hW3SM5S=Ns?4?C7mWQOzX zA5ikez%chC*MjU#XDbaj=UwAbwvMWgtBwUnEXGCVjTM%r>?q=Co7^?T+b;MNO(^lNu)q`8*pSik?%zX!=_F-1DJLd`O zALVXDE5KfX$b0q^U-k##vf{%YK^xokEoAt+tR`*-$m{8&G4`RwT1k7toBbbwyK!1@ zE%0GHhku~^mR}ay;VPVKZ^gj0fVd}H7k3-;B zWZ1ye*x~sW#M@^-@klU?GWoKGvbGo3g-G%Br`@O;;J?vgq~P1ak}E<8;g(b!xYx85 zaTXf%fxU4rEB$=#DYYy%s6m8k-mEOfkrACcEz>*U>~)$#q3(;p#f%0V@=2B5A@8ul07qP_`nXeskzKQngbJ^ zj(2=uwoeh6d(_}i`!GZU_2$ngl-25mT=Y^Rt}Z)KsE7P}Hsz-FWcPRDshGYph5o~k zc*%}KimK#7x9$&d7MSf^GC!Zd#nCt)o9Mir@&utj@l+05w9RNH@2au3S2u;`t4%5a zvd^9}jYg)=CzW;z0AInkgcFmk6ZA#&3wDI<6RaL3Ddn#Tt3_fY;#N5}E#YTuEyHcK zT?B{bN`9-&2hV(JV5Ze6FA45eDW`j zRNCL574bcGuJfhV7-D3U!nBA#ZI5?GlH>ZNwJ|}6Pn|q37IF9B4cj0jPM&#lm@|;j zqVweD<4L+}Gz!Q!L$Z!ta39fij|9gzb(wn>O}UyY@KR=OxV1X)tE4mjNT+F5Wn^5} zI(PsOD^i74Sel&i;wRs=a;)rer~%ctbh5aJWO3m@5-!tf;tL`-NSj9 z5>k@bpEPffeW>e9wSm+o23(M%>rwny^vUmANoK0a%paJVID>izr2e$=BC55vN;T>Y>;@CEt4yQ#s9>>VtFW^Y3hZ zxFZjd6i*D2I-}wG(|#g{%x-M=eBy+2RZV1 zXfztJvDawXWOv=Vt;Tn1Fx53o{tLIj3fJ80L=J~a!vo+zVc_pXZ%_w@1G}B-KESXp18~!R=nviGwBh% zUenF@E5lUoyf15!;V&CC-E%#Y`>?)-e-9s-3f<4&=s3HZpkBfw^kM~NE*Suh{WYM+Ika|A!?fM_(kAu}Wo67!sTgO;J zA@1j@sW$00ikBZ^1aGfFk3xaL#K_uH$`@UZX4mCt4f#iYKd_6&`h(EkFgj=lwbeXx zo&?HLueg?~J6wrm^)IEhK3rLT`;n&|vrRKz1j+(QnnK7Bn+w*mJ>he@>ddJ>kE^!8L(d@%l zY3LA0F>9pmMIeqEEQQyzZ&0C`^Z* z;8765;jo45F6UHy^LdhrIdRr28u8|D_NpM9rHLr@-@UN39OP0ZgxpVB0c)RE?Hqo9 zK5&Ch(_1N8rn<2WtX0&dx?Hr|a!qz4{195D!@ zgg)&_x*-N9&il3E!Y%8x7At3u=%LpkC1~X!e$(2mGtPn(Nrcdu3HQGG(dHu_*gqST ze>-t72R@|k$~=K#U2+k+xZsz`^%|UHU%cCNwpQXo?I(%Eq z0{QmU_YhgLJ6(?L1FATxFb;$m^G>4Gv7kwtaMzkCG&OALN8S4o z#2Z}&^PNhG9+sM(I3RT27Vb8^-G(?@77N~vY-*dM{Yqia2#T)W8BhS7vQ%R4djdJe zmvnn}EW&g=NMQq6h~r&|MKC3^l6sNb;*eK+b@Q-vFcn2g#lqsyVlM7)uA<+b$@x)s z5F{Ncn6@vrP!l9H-v!jg{L?lofjhbrqdo8fhktoMNys41w|gjU2d|;f*oePUgOww_ ziVEGojR?E1m3#AKU~vYS_s3^+W$pd;6qO}j%Vt-2TkC7G`57W0@wNity}y@xSVPW~ z{=KsPh!v%Ar~WoSUzV0m!9!4_(5G9vI#+qUa<`&|KAGK0SiS<_eLx@5x(JW6;lPMC z?9IbQQS2TT*8eTrUao_Oqo?*Ges7);4i{due+J#azWGsyLu%X{EJ)+=lHr?+Xyz}; zZ+|oKfg9R?CyP#c5dSL`U*(}V{l*cRoG!^1-PEp*N37=4<`P;E%VGy}^WJeS+S8LZbnqbk?vo)4Aiu4`E;kk~ zvQlZ=xfqP1v7DrTp0d0FTF$v5@z9e>u7g}mW2E7Smm6_2_%?J4E;NEk(XXVb$!2#2 z@U1YS(~mL25sH1 zjr}xd1E+N$s00Py{TUCE7-e;iCHJ6*9;Q)q0i;d}0}EI4WIW&+b;jdd6mWralOy+ixY&-Z1EvKXEC%JYcw=V|K$ZCb>d+7XD1B# zaf(Ov@$lm;2#j_GiVeUkju5XSXpKbx zNRzp%QM(TyitWjtJGAwckcVCLj%Pbo@`n>L3@htNJp&MfOb|;W8tO&%nYe~-s#`GG z0MC&YjX&$T2_QFIY~ucQqv1^5Xm8E#n$z+dDFJ5|2h5MdO@%|uE>6JISwQgdJS32&YVJlD z0snl2qFlzqPV(w1k#9IVKg7@MNP?eu|5*$wKrDU0QaT&`U|Ty{EXYk94UY?;jC=?% zF~d^N%gU=3!#Czy7XCs6?zi`+wauQTS!XbW#s(o2g&BC`@MoPu0ze~HxqfC#2DR8; z>&j|`pab)`tR=I|-*m)lnwJ`Te!H`zq;G&z4UUH>ewUFxr}{`ZtQTH6o|>Onp8e}~ zIyM&u{gzH)j#4qkLu=D`^J6QbmU^-zoFB}@IWqr(I;ZPd*G`vR`{=CxPW!*G^6sv* z%S;f(<>|k&RuWXu*V|7eJbEW&xD>j<%VS*;fGfV87LYz4jgAhz*2viUE=Kt^iQM5P_|=oNU968E$Qz4y*n~x1&4R zCTM&ljgqgvNE@;R2a}WV03?OQjmud;k~YFbJ%mu|)EB8hKdg6ece>AwvAmAqU{XBz zC?Y=hs7(X^_Mm5_@nM8g@M#z>cn<<1pCKEu)%ezh8<-ayMBD;C%uVt9scT$c*Nn(%KYIld{xFB-{Ok)#usg;`$Xg06p8CPls5j{X-a}dl{sCP z8_4@i1|2Ub_8O@Svf%8N2EZp_Si(HhK`RL+lQR}PHX;lr_VI%+F2D$)dti4DF!VpBMmu5%szUi<*Ef0GXqb37i9I?X>~+2LFnq0M7)}&C)qy3JDgr(bH!0|3GhhE}`@fa4c%C`#+hL|wF>snYp`4sCOI z4^2$1vYNjUP3w~|zI6QBE9m<#ORkF2>}BrXD{>Z)P&E%F$>gq1^%D<6WUl(p;r^*t zpLQ*E!f~F-iWHK(`5#*Ej1)7kyN{qls|7#^B*5;#(cyd0Ih4{&7E*U}VV#$?% z4Q_0faEoNf^z%>Gy6NwT(L!vxp*Qy~BB&=|T16E{8m1J`!O>G6gxCg9=b3>dG#O1J zVz}h=6@p|;uC(=+_j<(#V{SHe5bgcNCQ3zy_rtPR0?e*A&v~#7O6=U{MnEy!3o#;> zNGO@yf^3M&Sl=}eBO7SG&1~rMbnD0dVYEH&%9IFsGZai+RE|e5tqNdNWv~H9qJE;k zkdTX0KQz%H=CSm?EQ8yJG%GnTiUPLI(f*dUuHx}8q}vSJ$QR&H>mJd(sL156&Df3z z^hx1xE3xlVOukO*=|DcKs)fgxr3uRANYisTmrC^mkr*)hS?C|E6eG*v$Av*SZ+S1z z(`WZ?=T3z&>5g+6+y;4qB}49|DG;uxt+fqw$>q4@I%+1E)fF19YhPcxiRocWywq08 z*@B?-Up%92P)?+p0PSM^IprDu^ocljkB*}`(vr`#j{{7)Fp|CD! ze8ao{s|c*k0y+(c|I?K62zD3L+rpC(Afddy)*XFrDSnv)zP!B2cmwOg)SCdLy!j)}7i37Ny^eDFS9hozVb;9&UVD1@ogbr8bwmsfUzWb^|dbR713Ai?2UQO`&g ze(}(fLnI|z`nZx^O4~2RciNKI!Q+p$K&dFw3(1sVCv@GBVe*AD;mVL?QL@oNB?mJ0 zL=GEn6Lr!;D?q(5N#_M5c5uopi@%1O4Asv> zd^$<>EqVYpznC9-@~6p zDN763UUUpe&qopXh-3AH8R0Lttc4sVRGk`b;B9MVbGB}6bc$7e zvL1Fp08j$1bF^6U>6%=#2o z8tG{Vs|!0C*$W@UQu;PGHnE+uaftEZf%Ws5t&WN_?Nle-sRM0ask0|99D5;ZVOu8= z=6o3no<~Rm`p*rp?@>}giSB&S))Gn8*nb%=qS`(jFe34TkkDJz?d57J2RpWcdip5i0RB|!M>m81l zB?sx0NgBg>MdbX%Y2=dDQUM_GT;mV9#XGM)%wBC*ZxB}AD1H?Qh&CtQ=g`;O2MJdS z@^g5FPDqCWxjnzUYPyV!Jx;JgA$)Bku?7^J$HktM{m%gZD0o>iVCkn2Bj|6;TzoL5GKU6rogS;p8xnzu`PoU;5#Y4l}j z({Fxl`icDr_){B*F8ltoq#$jF`j10vXo-L%G|Twoy0V8`n03{*5=ehEUDX)K&&CCt zhO6_MeB_C)>)mmtS6%q|@O_?`;+u&=tj}M13>?<#yxd5g7QB&b&Ky;Ky-SKW!O`$I zK~Saet5H)Zz@KB)v`7|rTs}MvW7IB^-G@GFC2&>AZmtL`Q0wbs%^M+z%^)1*I2Yx+ z^-s6Qe20%mGxh-}`60}INUAVnI59uOOP$orKMWgnQ{XBjE<7+hxcgh7_Q%|tv*l2Q z_w$86FP?tyKIeaN8`fZho$_5fy!*6{*!f*7*SZW}w^;<;8PK}jW{(wZ!$C*%r;Gpa z%b5Kk6x}=I>6Pyl!9^JYC>>{me>B7dP4L69+$-AuK8U#T?^ct|hM!G%+Gv`hzS7|! zmf(h}7eUJ%%t;P|PbO#=Xi^6FNp)OwHev9|!QjEqwJg93$Q?Uv+&cl!oFH{bAfZ3k zpCD{}Zv8ZU7+&GzNxI`;sr_JhSgV2M=UK36GZ)(|QvXX+Ml){s(RmYyiK*AMVWrHW zbY5=(&UMGct0il{egMGNQLgwWXQlp^x)6CESO?VK0l_z;@ZZYVlP87Li8XWZL$bPo zUrU*V&#e&VSo2Ez$?wR6IQ%^R3> zXxn1D)3!!u7JKnU??*jT%q@zM_mVkhz7(xzJAE_yMx;)Mg!2#+Prc-;fxivBOXPF{ zH{P=H#yzZL19jXhikr7cxyQ(6Wj&rIvT;4X)1r(~+qA$kyVu(2PBklM`ekmY-jx?K z5FANd#8om&HC!yL{CdJghlFNP&+T+EAzfK%gYHLc^@%;?1I-6sk#9YakAwL+S*4?I ziq-sg2+K5)q4KW*Pu~hjKDMDhuHn-^U{k6j*UsLD#q0P>6>~q0m;HZEpyo*W({C;4Td`d~M~;^0?{XG6I_ zt>2p?l?H|cugpaM*^fzA5W$Ea`?S!cc4F-#skduT_W$!Yjhjf%5M-k8v97@l=2mn z;*mdBy5|(A_X_SY7th>$hrdX*@FM9vInt@f_Uc_McSU)vmrc+`deJhb+W*r6{`P3P z#^T;5MzFA(uzrxN8eN*Mr4}h@(-(;2^{9LY6>yz%x!uB0xX_(AI)AD29d^p4ELU+f znD>kQRimF~_cojbOlI^eJ@xVqE{C*zifdE4ud3!QQYmz^=wqgZGh@caqm&5>s6!xy zHEUs&o7nzceXr`jD;#;tF6pI*)=Q6noBE{ex?B(VjQON0g~~+k8y%E=j`?-J7J1U< zq<5FWsM=gK{uwM>xngZ**xdYQk*@Riws0fl!<&A>-gX-0!gIAd%(aCjm5qAPp=o1* zg8~6bJC0h|`yV{M0Yhx@y1mQ=w*P2r3Qb_(DPpxHaHPrCl6WdQzv!n#(=&(AJDkIxVh->G)|d>Y z4+s81U^}jmRZX6v_xQK2NdjSlrqW{{a>Ya<@36+bm3+)?3o0GJgMNj(N$8)m(MxAB z*}0NXO*SvF2jwAmr;_itn3>y-|17(`%R5+7t>I`3`Y4tbu|j_4DXdK72|o6dxS5up zB;W_t9r~=P8ouIvg%`j~PYZth=(c&6yC-yefR|BBn5dmpFTAO#v20s-Yp?_unVu@e zSyHFZ!^q)P^675J8yipvJugs|4#1A^+3cd|1)OeY(o!V{kmK=50{`p$Ru#4OQhgS_ zg1Q$xni@9$*lDv$#m&UsZHao{yFY7NYnym;4kOzw(fnWXHX-V#Rb?7!z@vS}HZtqO zUP<4=8u#UI7N*NLgzx7vs%0U zOF4T0V;w&}yTN)oYyY|5ezcOB?Bg9hbccA#o;r53=7{I{jKAky_=f~Zqu|=K1;>Bg zPhS!~%q;n{T<)}Gxa}u%?a4(b($L;CW+|DH{1)g4|NUpL;$cKT@K)Q#X{V0zmDFH} z95dMPwWpZQHdpRqO!6vQgwaOC0nnJCADDce;5l&kix&`}`i?K!63sP3;vtKiJSt94 z&lTSp5F`mb>oU0+@@Dz+r1X>01eeRpH;VFPIbL9R7|RB?mSiwpRq6N6%;Xw{_wXrL*9H=Nq=G8~{@%3B{4JFF?EIB!LAHHuS{E_P3I66j+neR$ znH+&&#;^grW;;EK$7U5Air<_Y9`^|v`mpV{`LFcai6ElZHdW+{7!V78%JcBJGW3#M zUg#l7+>E2H`3AQ)qp>OvT$4qLoq2{a|GI7oqiM|Dq^`mE$0&}r5lvOK=|mOeO~yI; zZHr3F%4#Nl@f-SX7HuG;y@30;2;Y!PwFnw(cg2+0SX-}rE3bs019tJ~3p7 zxT7qg0@MgGzaKuF4giLR0{H(?n$R*;Yv&LW%DyKDmNa$mm0{&$xi1&Z8)N!@t5A!@ zzKf&QQgVu%wmbq>IkJ^SD&T|3JpXxy?u~H=$YB9t}+!WV4k>J z@#VdzJ-=`WvloKz6e^P{ArzA6^3U)77gCvWFU97V*y2|1v+^0ZldBpjAI&@lb~G)8 zVr@7yZniVaAYuFATC!JGlUtZR@$o%r+Hgt5y6<{wBA#c}kg}Yx)C1;nd+|8C>j;Tr za>#I0%9r3#<63LRn{B)RIC51!YN>p&WlflGZkRbC&-8%HafZG<{1wPwb4V$cTG1celL&Xy! z*)SZO+Uu=FYyG`(74*>7je95SA14s*jzsHo4-u_iZ8N#q&96M<>BU5ANBkKD^xuww zvM2SJ3ALTm%h9?5Txyn&H<|x!Z)D8z_$P?t&0Tnh^3IZlBXOR-EDc=%$x~Ox^Sd8@ zx12dW>l2@^`0Vv9yvn%Ru85#g&&KB-J&s-H$(`qS>U-C| z7n?P61GpdXDlW3O=t|<-oG*otpca z_aE>qleo+kqYTgd{$NAr1WCMvthK$V*vblj>E3IinLr^Ll&mMMeEV}B-eJ{M*0O9k z8aXEAiQ;r(6iJO>IRPr3#u znC5&VBY4m$aFGlwxtHJb_~cCJ#su^0=5CEixV3t1<+V0v@paG($J#j2iVqRC&kPy% zi~{?T2OE}5iQD5}Z$NiQmxpy@xCS1d2y5=cdy2|x+vv18p8|MC553V#olk;0y6U&) z)31tk{cNgW?d}9YLEl&39$V+v-G6YsOV7+}!1o#;QcMy;G*d0OsV687wtLi-67^zc zxSn1);l(ti9?S)t2gr7*DbA-4a#Bhd%#n_Ngx?TYhMjuTHlJo6%5q0T@D7A}YL(;pd@Q zlYshM-;tsl@^!sy>A;Pcx4?fUJ5<%w!@E2xD%swQRyMfbQw_I$mG-4)^0f13RdKhi zWOURk*2;48>!Dp{9o94PJHUiDl|X&IPt<8!$G7wV7nyM!g;~(?A?%sZ-V+UuD#$8^C z(X*B=`(^sKGCkig8?au;kqq=YVc!#a)`v>k>JX@vFmkB2W=OOFIXgX0J7!f{9? z((riiQXs(9V~k`sAZ;U1DX6=TY>|9QT2M>WTc3Z_8;veL<$Si|@KTbe&f4|uQ9>90z}wQCOREZI50Xaze}eODBAV+cD8>Aif#sbTzW> zWoDn(?T}S^$PnAqcM+m9%peDqGB0?DiF)=%2)LtZr)I%@ww$(?7@?QCboBm`v{yp3 z5D5CtrlINE*Xv#^R>46cwaBl5oV*XhOOt@iO{m4t+{CYa4$QhHe4%Hv)3CBtV1VEr zNOY^Sq&9D>&0>A_d#Am}>|<}G`a%mm+X17Ea5G8AfxPQqS(%^6MM^_QlM}@8(8L(( z-iB02*tcvwn+K&u>D>8!;^`q{?H21JXx=DqK1L5qR*WpMyJ)}V$*do@cD}3}?(%E7 zI%0-jE9v8Zuk?U}u&GuGzjhw@$oIO6=Ml8aGKD+Io-yXGLAR|}J(HNH)?48H{2piE zQw6);_gnuTU2h!~Rr`L8KZ=SVDJ>-+-5^~mrF3`KAl=O%NGKpkGcbUZbmx%5kV6az zNXO9KHROAIKHtyp_g(8eI1T8r13nmW7dPJ+_F91}ek7WVFlXZyK04f(J2KNufbzJ6v)6~Hf9 zg2t7Btkx;#%GGd)|Cj~VwgF8(*Lb7ynO%LMU)bDFHIDK$Qum(v97G1OEK?jhZI+2C z%{bG&he7*`!dsWu5e^3kb;49?_-dvC6T{&3>nI#&^MX;cV#)+66~fatZ_?}c8c`YE6;fDjUqH9(jzV+ju^LK2 zORC&RmuY;^iXHn$wza|dTnnFdJ6g$ivYWx;4J@8EqY00m$h6Z@X)-IcXUw zV@!i0l5j&gB#!@Ah_z`SmOZm|-r#WoRJBtT!v8ZGM#jzva6sKoe{A@P;Wlw-Dpd|y zxt_|vtljsJ2n*kr*7X~hsomKmv)>Pm!^PG&iEl}ttVKUB(Edd4-W=PhP}-7Q^T(fl z_Sqn(l1PC9l%F$9Gt45$i<9T8i0(&GHGo(~6@W88R0377H1KKrH&(a4w9ShVri3wt z;6q9|Atw_}+I2Mn0urtF##p zj*IzHCLi&n6cH zHGfl##&%!EsJa-zxuAaIATEN{{%f=6v$rkpWaISjniKuY%$1C11PK6h%M++VK_Z7K z#S?j4AiIx=<9DnQC%Evnkhv$d;c^6pW>9$d-Ocj| zku6{5RbX}T%G7}ZQ&(o=s^(uU^Z(!AE0R1|PgDn~P;g3eJb7Dr_`sg>mE>{c8^mkk z2n<&KEX}OvwEcqhi&SJ^R7s$;{8Z+44wv&3ZW*5|MI$Ax)|uH$;%SL+fp&^r;#Eo8 z!`vRA(>Fq`b|nn(vh_JZOPv92cyN%3?FX>?%VFz!fjA1y77S+Nwo~haPlnPc3|K$RtDjsraMW`~7 zpQv@v&%X5{`SqW6f30RmIL?tFutUo#l(X)jx$)J>G&B|9aW-kk*mVFfRz7xZiji@6 zfRScUWpQxUkP#YW=m<=94saW!+P1Fo=P#7KNr2k1y1E+9FIc|V=6d_*8zq^?^-o+w zA&yJT3tI8ZIYrDYF_%L$1~>Pw6U>+)+LGIxb#W@nM;ei(_}#hm{7K{_KfB~F^%tKo-kvZ2!{SAwM&)PpCE4)Cr=#IDu=-s$sh}?W z3~Qq~cPrr?eu}_U|6MFILk*Vv@UGoUH)#E@i@NZ3hi%cNV$;9IjI5BAuC5F(f;6j@ zFCOESpT4*HK-;Yt>24DQBjoEMG&#{Q#0ov~m2%2~@O^Nlj2dRq>;oI#A(0Le-hlOs zS!70?4<2{cjvZKDf|cF&HO0cU0V@&(%W~sq^mb1U;r0nNDE+bSLvr&j9A2@f>JrY~ zz-9l~v#2zI5w6I_-;#ztIdONA;CJ;~K=8)I^{%dtYd5sG+YA{%_gx=?-ux@~SlKJF z`Lks84XC1`&E_ZG?dNDTFe%=mDfv?loqyd746$)%1)Zka%;D$C_CmvWTqC{?^R14k zAe0o@aBYN%Xf4lkKVP2b2IM%LN@4M|?{(iOHa;P_8J-N0QM`LP?#(K&Xuwp@O?!Jb zdYn%CvK4Q8jK2$@_G64Xe;htsdD?%h|8YOT;@JH=6xO{F0uR^J6L=uv@9EF)mczKH z#&V90k}f)a;IBx&`%@|eI5vs#i;GPy%JB{|@l;bL4s9i+l$<{D;o!l5FE|zGIDqIr z(R)6lOY*>bKVgt0>ziX&B)gR2J6;Dfa_lqa&YNVs%IsHo zY-rD87J!HkkQ8I=2CTu6sX81QIBIjIA6>9dIcm`pP#d2KP`A->k;@r9FlO-i!Eyz4 z#DJ@w&_<4Ss1ip?17?NivenAl1pw+g7Fi)=gV9ItCK|b>fjiaBukJz-I!)Q%!;KS( zHTwb-+)cD(5GwkYrLQlt$pvU5)lbX|UebZG2}mB~GfL^|h^uML{p1OFDz$oo62ilG z!(s1T+!KxAdfT}Cv!P=4QU^_%O2mgT6L`nCanNdGVeydJ+hMNhHr%`ILd^7P*FFMo zxi)H=v&QhkVWA#$l02WTTV@=VZGjSPbUJAYyGQ-5`HWtVgMGE+rV(qgo4C?$ok4V~ zOf@7WmYj;P347OOT}*+M6O}-vk}U=FUQ)8O*?^jgTH!<0ZY?LR2(!Vl<{GP)uHR%_ zEpONPA^Tuo+bwyFDsPycaSCiJpZMAUd-qDPS5jcd;-2K`Wk<$0Uc%|(0*5Rp>wZ|Vy&lmQ)_VYq~2&|Tct^>YTDK6c-xdH@H z(PCscl2sJ@I%1K{`$3vf8>>tu{%%JBQ|b{ViPnWb7_EG+DU~loZsxKvuP0fjhK#P< z_#JhjA6x0K+zxOK($LfwzKZL*zVBrVoU++tbN&+bx&4RFF9r{}ZhGc+hVre%|9K&w z@)upHb_ONZmb!|A-Xv&_rI>gR)MqriMs^iX*q1l2NGx8TaPI|Oxk9gak-EAMesQzBGxKz>p7V$BV6 zp;(i6M%)Ec4w1;KKWGfOu`}WWiR%f?P+cpoJ4IvX_6>>Fh3zbB7pH8-H| z#VRpd9P_rcGuJhaBP3@qdn9Ki%xs;g$KjGUc2l~PiZV_$Naes2fbxHo+g)kq{SQGz z$zVQ(lOS8INGkhAaoy!5b%JoAU@m2XA+u14ZO4*2-;|kcxN5$WxX;+}^G`PUWHrF1 z#S5#G%pX2ELa9Wg+P^aN@^Wperz+fbqE+T@5{)0T@H0l!=l12n`hPFrr1LZCRz!Xz zcLGcI+*wUWuv*5c!8GEXBxkSr^#^S&ZAtSB$vsI~llZ@CmGCw3=uFlcsyFQhM2`R#G26s1Dbnt*RW z>KuL@&C#$3_^`40)KDiTgsCy zUU$7JTdelo3-_d~cQk469ZU1%yw`9$yPAIHG}nCC{uq3_HVJ6#N4w2O@M**j$M4Q1 z=PVE+Dptgn!Z8_M+HZ?5Xu<=L4m{>hnflv$|9K``gg?3XfVg54ZI_+!M+z-6Bv7h4 z{s_-cYO?lgqVa}RWqSLgecn-VV5bVNH)y0J`IUch_%MI>1T~CWbDw{DnpgV6dS=#fQlU__L}5;; zKQPPcnD1j%NO=E^^^gnNNVqDazglNRZNejjuO&}{zkQVFAA=gdWZMulc@HlhyVtJB z1yoTbM=AykwS!Xy?$R}&y(U~`={ zsC>S%$#Vq_Lx<@jJMT@vsC?PLqa}9k77q{b!rUc9KJ#e{54B-~_1G0B<)q_GC3xqj zXF8eL%6M&HqHcw$``xz`?i=S|Q}A6rX1m7$e*0xc%0;_OpjcCO`Qw2imnkPd`%$m*NE}uezT7fftrLvm+Hr6?n4=Jam>AOFZhzzmLUFx{VpB30Y9&JMZsdF zy@uN3>tS0lryvkCj0GcE6VQ#M0B#cM!MSIjEXb(upBgHQ-@!NfnaMR}d zA^1>=W9&`js9I+RlK}h-tG5jEh4L$Ze>Zp&f3?2S7-*B?+s4%f+<09eQ1bDMcZ3w$ z;g+jVwn&_G^^-U^@fV#Yb4UPdc-TzRzW^7H?>U8`BnLS8l)^0^$ql=xY%?4&J3{cfU_VMEbI>>&E3nn{1v04&98Nqd->H(!-vqpRwp!B@unyml3=#n zL6)m%pJ9&6J`qh7`@G{q|Fnm_R9x3sAViq_PSWrEkQ;$0OUV>IaZsOwDIX{;Ga=A8 z^u#@3!nm>D&aT`jL>)BMrp0zHa%8~D_ONp@nlD!xn6?!S*(+aR7yX``U5%w5DjYm0 zBxfyf7U=gXa&lIbGfNZ}Ls~ZCFjrGh-$2Ls%evKYx_ADRF4lr~Iw}3!_xqkTJD(o!~LR;fu~Uc{Cv>6DrH z50!a4N?MYsM5UTkS(wLrZmwZOs8&;qbUoT@H0xb!Fm*dq1+KMDew~V%`|h32kqwA^ zme1kr#o`I9BH%=|?QrTAzwL0fCc-q3n&BI~qV2ph0V(cvkKcYj;Vgk3$*pMdSehEO z1e!AlluyCI>*T7Y0!ZS?3Ybl<8BPsyze~EsOpUd^^-ZyV3yI_5qwPczhjWV&T+%!} z@=N2TXRwYb$s3nHB^gi=J8JftKLh)_V5;#wf01b!VP0)WqPS?F4)?|ZOt&|oC*6Xb zu^C*~m|)`9!p}N;0eO zhxevd;3E1b)9-&#uEYNw%CB$y2)#aSOdVrsB#H3dpg}oK0G^YF;I@tI|kY(LVIIx#P3G#M;qT zX~TA#?>h!Hf+rm*OprHsBu9gH%rVqrg1o%E%{K7Jq9o_x_F!OuOz=Ng?&y>`DnE#J z*fG0pLzA$8N3alz4K}0vPDlQ$2}?-=-MBUhkN5cRqes+WqfBXAZp#F%5;KT zxttSkQBi5%)#?Jny<)Uv|Ml9Hn$kS$`tqcbW)h z1v9I>hMGFqm&x!XV_o%*bgr4rh=>w&7thP-q~}*(4CN`SG511M?ili%dhox_wFEY&Cv9&RSG@Y zx)=oXWz48zFBA!9OJ#4{#nR`+ru(x=6H|$18yn?2c3cs*-6#j!f+_+!|Mr<^qr2LIu7MwwfiFP~Dz<)- zTMSoj=}LfdCHe(uh%YLW!&)e6tGkWb5z?*J+e|Kpu=Nw(5W+#p%MF`Pr0@U{2Bp3A zzrU82yj&Ch0QfRA32iSZlM%4beFSx%noO78Ept~7T(m{^eZHk&5@wXcH!+Z%qF4x4 zx5De~vv!-0$mXzPHedBbL4iV6?jj4IlEmQiL0$baKBLQXqaXN`k*nfV6p^Ey`=ViS zZn6oHOP87`s&aCY{X|sY^a#o?UXOupjE@sd(yc)eW*1WYu)P6ewoMEbJ}7fASius- zsVNsWHrxduSW7b9HKEwyj8@AdG22O`6L=flyB<4iPQ|uhfbkL-(9Ku5?s!G#62ON( z2|CWYo|PRKNHpU)2kTY2O~lj;i+LR8!z-veUB6B%+gJErBS}gWOCl(RwS^+3=g#)uJYr9ciNa~0#2t!bM1x7v(hq?DN7gI(AC~1 z4Id}#Z)2tWS0^ULOvG-^qSlx(=ZT+`;5~{o=hwh1F$+b0pMe<)#W)#zxAxM^Js>94 ze?@8p#(V_Wyn0^gu>PHxo2qtZM=3)Fs50lx8n_MgVlU-rwX9x*u$mXRwgPI-Fzt!3 zv=8LjDp$Ny?YRB7iT=EdQ7^ahlsJ`0cQR=#>b_SmHn6%wj0;RGxcEEMcQhX{(g@o2 zQyoL)yTh+aX$bL68kCwIUhi(h9r)^2y$si-t?Dewd6|t2)<`K()3{7g+9W?j>TuxN zxcYk5+kML$KlsJP-sdhYH`DdMrfSA`94EP%YGEv_EbXmQGX*k$xJPiTmrt9lDg-@I zX9$6-C`}hXO{tRR(Ko7ix{8+Zv`KeAg9*JDJ{_^gY;cxz9~zv&%1L6k$qYn&h?ed) zwEM@SUqHxtF_5%J{hJB@OOu-hOI;(kvstDB)rs~qNf{*-l}uo)Y8kM*MwW8%rxW7I z|I9tBB9-#m#_#<-U>%iCbXt_tMTHcnd~G zdJHmu{+jT`vm9lRQ}ay*@ZKyO-dL(4X?<(9G}7$lO;zr?b&4<%so|(gcKR_MB}TlN z-w~_s^joiX5B^zJXnvQ3oRiC|q-X^wPi8r*_Fm3E^0q8z6huvh4|e`^H5|{aqJhFKaS!W(;Ui0-0)f2o|6Q7#T2~g?^h_z?X-z0K&sQed)b<6 z&I;(plF+iG`txstU*vKZAacBn78Jskt$!zD8@vmz>08Ca>E?{2pj8bBT&Cwbp?omq zJN$V6=0qnltfA%OY|J!n`nlAtObgu1qsqdjdqIo~wqH=bP;2>luC+IY#{Y5wSl1vG zbe!$Hc#nv}Oh!Rsy*XOKbWMD=stzPBbNy-cs_fRn%hEq~a)&Y7?udwSx1WTQ*y{l4 zep_f5to+tD&Ry0@OJpyhGhf)+mg{^WrX;YFMQl%_JtF{9%~lY{=_(pp)E2&x?H6#~$+}EUU9DJD*H*>6ONeGX#2n(xa~>v|ZV?Fjl z$Q!zPL`w0`-jw@(n67cGt4GWqijgK|!}7L0V_sV6QAD82^#qNJZ5p2`TY4MMVx6- zXU%Ez(UIm$&=)c4=i#eUglyq^80Ug_!4IX~{7hAMXEoZ{CvAAClb%U2-qPR{&tr!E z8mWoj#P|axX#o71`Ha-Mh$k)UhIf$BitMzRb*FjhQCkM?$7XKz2iv(Lak#wM_dPSlW zj{4gP93%xbU%MD+TT0n(YEl+jfM4D4ObGLrarz@m7ND6XMD}~hzCJUsv6>Tu+e2bW z+r4R@>#P3uXO%-7muVc=6Rr7h68W1zY5iQ={})IqV>iY)KyVZ za+q&i`3j=7mOKig+F1SC(D{$;*tv1aqEGs+Vb3Td8~=~_4O2JtS;JoiRzpCkUfpHV zn~Ijx<+w@H?s&_+9)X6yO-In)d@Ik{_d6nd$=`ElC+jE%;j)!)aCw>_AkQi2Fjrs) zH0c-vitjHflJG|^x_5`E-Y-=NnMlx=3$$HqmRFB`p^l&M-{9!s5b(MmjkV4iF=`j} zm^5zMzsgOZoILnav2Z~C1uS}*h=w}DT_*^|Qhi!CJSexG;Te|#QFoGx)5z)8pdr5Z ze{0RFC-1aQo2!dlsegxA7g(e9d&AZ6Z^?HTD^H2S-1ye;z+wpsuE~N_r zlq$CzCnrf*M&6QURo^Z|7JCk5Nv6JXC$w(j>l2K391O$ah0P=&MD2}W7u}Fdai73s z;lt}%Ymk1J;vE!tZw3_=5oz~9Qp%E9=mxLi1jM6-{Rso!1Cqw zmgo?^eiXGB>=#ZMQP1vVeMxf8=leUkZ&+-0kYguBHe&32RsMkuO|kQ)Gn@!g(XmNT^>PJa)tdI?zV1K zq5kW#2}B9NGcGl(0e*@y*egH`Lm9L#(?rv_+fq{+Rlh+~wfoR+Yz-1AC^oFww zm@WWJgovorJwoxC*MVbqILf(gDLf12b=I^R8z6CishM>@1!P>;`7ij~@+|PVuGUS` zHs436-f#Bq2ss%|y{T;=rml zl~=fz5cO7hq zmAGa-D8T<$^qyaB<;ZB?0%eRIg(J~ganUMYvMrC zx)rxnmaINo%v_z^5UXU;8_DQ9obDpTGxjUDmfqe)+EtPa{c_J|ByXuz+#iP(60f#N z`M*R4B%#8yti?j5s%zipW*s&o$tehBvtO8-%SFZ7TkMx*m_3% zFL@Zj`T&2f^|1zLE(h9Q}LCZyys%;Y7e3A*rCo8o9n>_ zN!*%zkSt2*z0|i+tIN%W;4&>AOqnoU)eQZg8vO@JPWAE2E@ZJwr(fOMFEvhEY(i%a ztdu(^wSi2NYRBYM5Q4cIUWkPEI-D)u*&~V??iSu+t&wyk2(=T@2vNpiTrc<8Q0T5GOw>_Le7E?rs!m@5i%K@Bo79nHUP_LK6(+}<#lq;H)Mmzk%%EJP$ci6gdDYCjS zH*_>9ivPtB1W%VWgYCVIa7ig(Tf2D$PZ=bbFo#BDlXLEtYm&2ikGqt~c*UxAZuYhE zwfBa*;0>_v82h6!Mf7=#O`F)T!yF`Tg-5aQwt!s!l?$!)#SN23PXcP+bImdJ^y^x#(daa8OUq% zU^(EJ2j`n+=I*)RMbPhIm1%}8W z=#aks&{ERhb)f@?jE75gh*xYbt@LS}&2CvZ&MT>?BZaYVJ0#{t69k!)X4Qabz*dES z9-^%CqFRj?w?nif={O#ib3{#m+q?h9T8R`t67VSK{tq%>SP=FZnFYIr_J0M+ z|JM90(uBA5cqtpBccHW4VMgZvLb^cuhyIpZb;%j zCOWX&GgXTo(wFFKj7_3-e%&v3-wTaK8>I=Xnzb5O|5kd!pp*)b<*e2oRvzZYf`Wd2BtHF%7C) zjf`abWN~WwFmf<5y{2UVq`)s#>~2fW^jY7?^BvR0njN4A<`G%->Qor*G+OOY=_lU< zRQ2_mu|!6)al9#0phgRiH9bPLXgWRHLAxlJl&01eF*ze?d%<^;oQR!%j^A8X!ZJE3 z6ik{uEWElRr_Qq4+Hdxv=^I#IOS|ekMz&q9(gv-0n+DzzJQ4Z|t=Z`WOo+%Zkg=o) zg;X$YZxKz3QQ%23bu&+lEA&TdYHFkHB5sO_KY!8zr0FPdavydxc$no(0}oP!w}$oQsGkL6=QrS*-+9jpPgQzLWH9B z{9>%0amf1^`@GPU(gDr4I^ije3EN4I%oFTZ6$EGWQ|+rhWsa7^K6x*yb&ig08huE} z&;0F<#oN+XCy1<`yQG?p^kCPgN48#1zZn}1HRPJuTGuxKaTpT4>)g}Pp-;92f{(OGs@2bR{M5(FF8G=N4C5% zM?}a>t2R0nd4Xfz{5zgFp=f?$iuF26!ef5^`rL@LK&qnEZ8H`Kj|U%ZZSch49RaA6 z_Pzt&%q{BNjY#@d<9l)LIV&W2JamBX8}?(^!M5SNu%UWchSgFfwM&pQ@NybtLLtTa z?c_!6u)PWm?#{Q!tm@fkB5+!fS=IP2vK7hI>D{LmmZWeAX5szv@5Mna6c*tr=$DeXfN!i!)CuKPPtgoKEt2BIjx_UzZ%=g`)4#~GfP&99e zdp%$Ko}LvVpTEZR;(U2ksj%+Y_F`K&hGd){uINv0W!-k#TodFNGT+p|-FxlvTuQUS zxdiN;3{(lXaQplyPXnG>vjchFrV9x^&>2By`V1Tsx8-%&uc`R%y$G=-pjx4`=ujgEJz(6`my7e>H!JyA$#UNdc4DPWqEy9dOh&e@D2K-Fkb4Rn^g<+xznkYYr zUf@E{H^zey_`pEX8ts6PDyL|3^*ZrPnQyXQF+9DtVDdUhB@f8%`N;FnUjuOxAXf_M zG1U@}Nnnqmmbm)W(0;YM66HOWQFBmg4?ad5jsW9O*d>12!tRkSyob=jZ!J=5?{8=fW>sGg5}Zg6M8Y!oJ@sF}RwwnX>Mr=htYk0?(IG{fmOQvhFc`xp z^%J6)l95ZdqC=LX`nW8u&{D3;&4GQ*-~|9-L=H~I=7fnD(LXtR_9)Df6wrF;Xrl7u zHvOtKBe4NpbLwMeNw@Rq9romC&CX9ebQ6R<^(XQQzYKo`#`Wyyx_(-RA!tEb4* z8r%y26H`yMS#agOU|;W311y5VcOM<4%ykB>iUz&b5(*!7uw3ypxPpJajGORmucMz! zmmddcwVQ;B+dF2-`>ZzbJsA+WoIM%a67C8O;cYe_156{9; zUDBG4V+KO*kE1XpPevChRfED~U_uKwyUyU7Bn-^Y?k5ood(EfaUs`M1*eZucb`!&p z8rhAdR{SJ^I#iRH1ja%E8{dHk>asDkO#OzS46oQxwfG90l_Pi!uyXT`H8r3##*mWk1~z%Ioqf?49Q+==a}P zl7-+U2WAwD)9+0J_l(h}S?HR;!pkwvO>G z)JAvNTrOW%HP$0XLGezN zOQWWaH%c9dsFwe6{8%07_pvM^b7Ix6dVh`^e!Y*vqiBmR)zX#uHhtE?7!!E7w7h!m z7`#E+ezmcdVk%+lxN=^(n!pCX-d^3O7IU%d9Y2i>Y*-M;yo+90jXg_mcyQ#EbaV=O z6&L7RFSU{)N=i%`cPG9J6B)f&$@UAk%c|TpzDR7xi!)77T#pv9ocb%nO5}Y6w|K-1 zI$dFk#OXg$fvO+ou&LYy>aZvD=hUeB9=?+1Q3@Y&!GpOupnghVAe7SL`09A{Ikrc{ z=w`F|q(EIWiWHvfPB^`Q&Nh6gvhn-nYbv-6BDE{Kj)HMLlvR}VbA)+fs-|3{L8=mo z+%SDfvr8R)pGCQg5kf}(kE{j*R#YvpXt$K@A!#myyV)v7@jt8)_5t{EaUZnan$d(y z3u=41jD(w|D#g+9wM#{4X$1rHW`NW^K+_S8F>yy#g&)!JibC3Dll?hqM*XVCp1w5~Ki|*jFgPh$ z8wQIJoyJeVvO=$kAP-Sr)>5~6NkcLOm?@wxV~($Vf4~~9R2z~zvoD@!6<4Lweq0xY zuNJ>^or&%yb$V*kjn)8M*f|HfD#KQM4>b{m?!90<&Oq}X7l(@sc%kB=E^O zoEZ|cbLz(D=T@s6)fsziBRedomXTsgRVHU>_rRnvw!(5P++MRf!TqWQL4EB$gsS8Y7uJlehjKv_jdZGEb6M`gZe?k_271C)N8>*Zux>s6 zQX>xqR2J~NM8#1wk@V73_i-apcuuf+Wgj-qVbimKsIM%tmRRdMKi9w zdh;|xH%ud`1QBVEh)i!Qw!hHP*3xGw7LRUv6dQqE>6e

C@rz^Z2GnL7-vDl2qjmW}&h)wV7;O=pHK}vETH#40fpq;KEsAm6uX42sg-~5yf0NE|MT`XyS-YPa`))P71uVzKC`r4BO1QSQv%hue_uhe|A*(P34tCEJuDfAMFmYC7hXn=;b~m* zh$#ZkqdxfX@t7Ki*ui&nPxg@iRnsC>k;mH7pC^)vgu3hDi;$r@+)!Yk(vK)!#XKL7 zMlqNk6b)8fM-KUi2$zb?PrSS0nATf+t|T=FGXsRHRJvP6Cm6YX|2&f#@+#sw0bY2} zbMP?BRbIo#%xod}Iltrah}d_Cvs1z)AOVk9WKv1k{oQr!{xgTWuE;3PHqja!#1v(z zQ-e6n$yyIscTr;K222r6|H}jYPP}aI+TA&hu>O@gx8Fk=zO3%9fDcgi-cp^h`-htI z7h?40wm(r6tVA;PaBUet=RPQO1MRn1siCjsFW|Vs&WT>hb!yMBsIo-DHjL}>f$K!L zC+n5`odNJJT51t=FZaKJ9)39f}O7G~LWm`mVcG-{i?|v0NSBbbgV_y5Xwj z%l|7mt_*CiSeucgqN~D9WTW+?bd^Y)eT@#S#KkN~i9fKE`!#6Jwo1|&8~xmUKBAu> z!}{m@n~{Mhv^ilVJl==Wrg###(PPrTCBMoSEp-iYYd`v;A(v4D#>?4YM?aaBu+I7G z9A|VhVc@vYaHd8k2jZ9Q9|NuLW31so!TSE&a1lfFB}tSC!iSAL#GEXiW5o|??`TJS&jSLCi8%Fh9CBwuonSWwoo zOt9IMH z`-*&%SR+>Po0>ApQ*mE0e=gV}`%U)sZa!c~e?f;bj2IFQmB4e% zKA?SPek}ht=WQsk#>&*FJFb`xRYx>p-8 zTpx@oK;w6}lKjUU5$0AKTd2%LcAJMCu9hl^wW#}m;LqNhp#mlID`mvXq7b@7rA2Q# zH_GRdj1W_c0=soRZ5A$JwKxLTLYM$f3V04| z$2$*L@#f#3eqieo)QhjS7&ZQ^*jBau`sUrFa!zwSm5S%P8zI)8|DHV?qd!TBy({PG z_Brua30vM73K0hL_v@j)U#SY{(!_u?jnoa{>8%bP!0LwTc!ndXWLm2#l8ZTuOW94+ zelWBq{j^?WYw1}= zU}LWNFAklDoYC>BA|)g-Lo9AaWUx}3X8QOuy<&&TzMGy&lDDXoD|c^AhHz)w>a@MK zCr*}M4E{MjgP}C*ap&|?x@y@o$UIPyJ)YE`Wo2c!&@4!0GoHF@x^#`ek4nQYVC{ zid-9c&Sz{T7}2FhhR#ch3s?XnDcyO$$<=Y+JyHZ~$2=prvUgFOGqSS=ty z7o_`6h$%sOa;*TLWnpqG3rII%4g{GcrV8W^zDgF4E5b|waaE08sQr=Zc8J(4C(a#C z+Q-eAE#Z64<&n&z&+I?^nkq%qIcv|z(gTIKdeEZv#NdxO0VIphbJfM^8x>zm*CqnB zKwHkEF!(b4cAE@vuJn}`7#g)U4;qQ75U-pwN#9~r&IhHs7uR&t&=0#|VC6A}Y|M(+LG|1bc zIC*49Jj{OM^uLGoBN=Ou?w_NwhKM2jOvv2^2hhLe0Jpo!D{ti-#Y&(##(oZ*E<&6C zZ$aRVc^7K`btebqzeOkPL5vkeV^}>Ap(*B$DCE%}6d-LC`buMX7^;WGFgO35_odDN z;4YVoGp~_)5N~e!pz>I-SvFvmtfF%~bVSjZJDPapaKAAc-t|6H(e& zKR%|}`CDsr)93dBi`V<7fa^Jf{gx`)q!MHHc8v$Sd$}?@K$s3$_*fYa)H(o4XU8t) z@izap;iY{hihY~OwA z$yuzY&_vN-E>ep=>B5E)<#w`EX@%@vw<3FvJ}m=h$>uhe`+h%<<0>=XUF&%b-C{lj z9LEYOEGMk*q^2GX?D-SrD5uNRUB^iMwav(bzpo$?$`=j(BCAVG!6@h_kmxTw?*A6h z0aiEfyW398R|ora`AZ_p_F$YWz;Ewa0jVKInL=1+6fvE1 z3M$Q|ta`V^={4C<5nlKQD<91D=ebh7Z3yP%!#M5WBs<0!R@n>)J&=&H?%yj_wnqke z1;Tb;*yC@>h^rirk3BA>)z&dMEb4qewc*l3o#Y-tz~62z)a^CMxL%pRLxBypm%SWT zuHF=S7&RCh=vhd%)!6DCk7?|6TLuUO;D6s>S1tG%9fcTUKadbrR6R7;aj_B5!7=Um zEKsl1P(q%zQ;2HXpSxx7t4r+X13YRB3+=hD>gI{S{&PHH|1jX-5A`oU26c4eODIS& zj$Uvi84LBG9s0aK26q6fT`Y>AVto*+W?7pOriQoQ^m%ntNlKi4uKLUUX71)v;8$=s zb!2RB<(BD=ST_IL!VvPpXT^4N!WVd@YD-gRMKn|L;}pSgw>nESB+?sZB(SqPH5G zdRlsYM>hfDTUNk;srF5Zzxl{%#Y#-cUT!X6jEVi2!I=Fj>D9(;?Z=PS_Jt;NDO9i= znrO)uAiBlXfH3*rj-@reQARCibCA9Sl7JH{>Cm1V&;BmH8>?M1A_;8_d6)m@vTk}> zO(D`!M>Fjt9H~J;B4zF$Qxq6?|7Pf;s=)IiIYwH@J1uO3B(ck7*|=rFFcgCaai%*b z+L)vdSk9&kbS+p>;?DE~H<=2N8PygArBoX=t;)+Ks(EIsA`}q(dcZ`Z>FIyG`mKhm z#bFXgX7TT-i^`0ZVmYcT>d=-q0=X~;TsKwCPQV*Jo0s7=jcjs#K3@mgUn;;xQ@;rZ z!dkBI2u)j??7~}Zc&}WEWJz@eeKRPNMNldV%PN@9jS0g(KmbGo3b*KjJ&#gFg;tPb z)mWaIB|<1k6>HZ=H{E*@(Hu9xlEs5>yDDH7{k;w|Tll>o6iWit?+wCc9SA3BcaIV=~Qp`t1b2Z3u@0( zOD1MXYstif%j4Gy@$+EG50w<`K&LuUSxP#Yb+{BdcqFZZSK#g>)L;R zlroOU=?0zx-n^%kLcsK~+E?bK0}q!BYdw7C=$L3hoohT-?2)K+mg>gp{++o>B`mSE zP#7lB*Jg4SB>*Wwsc`#wC0h`O1NVLHeedhDW9v~YJm+0y zJtJ*q6}ua1>p{;Na^j`zL#t)d>M0~#-^0|*8mr)U#3zl#VMn~w!*;n60MK9)X!iVm zuMl2V2m9`au%ZGYXmAX0X>!1y#&zl$->Snjepa%Q_U5I9{D;g~&;9zb#)tS`s%jCu zh*Ugau2Wbj6gRtZ1dM-f$<Cg0?PdT9io+HVqQ(G*rmD{;zh4DJ znuQBI2;6iM zPiaAyWT}=RS3);s9z*_pnPoHhqqjAN?lUEK_pMVyN3LD!xWn{^6@u~SuFF658TuF1 z7x+(pr6GQ7H`;Up8SwAMZ;JPn0#wO+=EuAn7`|=cuTXgK$ zX8bAOz-!7(gK)h|b=#2JRtnc82D1@t`jtnDbW&MZ*^xx5OV5048@MO`8DvnznclL= zmo7iP4w*41#<&Czh&3~+8k4>wt9(iq_v2q)<4A5HPJWu&GGDL-i}WYlK9YwftBuYh zLP7YIX(Wx?JMGJtwy8s?Hx@$L-Rw@ZdwV-} zyR>&RetUF#LvS1Ff53J-?_f9Q`7n_=rD~n7!YpxG2^etvQIH5_LCbi=reeTQaJxLu z(SpufURtfT#dD&XS#)3wB9MxqjSO7{<{SCC4Yd^bkWhBzdJw!zOIgb48(0=K)9{8WDoduGIv ze?-37*nY)*l#R`bTJt!CbGrTuB92v6SAQTep>Uf-921}SuPdoKEvIJI$8UCd@15NC z0g{J0BbH6JS4_`=EeEBTq5h>V#p*hqxVsmN5gMyG_C&6?KC@3=ZN;7O&Q!;yUn=c` zVajXlW_=K53~lJPjK^6PidVmLaR*kg{--Oco-UpPaAc<6UKM27TGu1cy;33 zoeliQrro<~{!28sT7vHBlUHk>T?TIw{P$};(wo@lws*a3J4AfGGt@@`c5as+h4XKN z`C@ctS2fLPrHqM!KU893s4>CUu0r(AnJmEK_W&8y2hq}5mE_QQ{zp#93_ge{269~2b+5k%6`Qv6IYS^JfPYK?}7RMY_TWd_UCdPEyYls9l2}sIf3R8=J_?LW? z8_DD9O2NQDXXWa;$el`R`=!?8VQ^soOUS08$#3%kjLl-=aP)3U*31sh2}INvOz3j- z%b{0adnX$9K(H9DDUmt~s1Yf=n2vjek$b{}oUVNeAt|+d{WvVdDC4n6v`haoUAL`F zxW3f)Wp_Jn9d0@4&NTx#GVbz&_-AJLbf{zDv@7n%`wQL0A$^Vu5|===>622nrCCM3 z@w{1M5oHZ!z#_IwG2;gZo9vurxe#^!efXKKb{@sMn;DT871kD`p?)i6?D@P}rMl-y zH@{yPO^P2aQ$mgb4knuu>W!)Og6j@;=kuqH_JbpB&!hT)b%%I0i>&yFm#r@v}Yrm*1)MzF6oM8)^M^23H=&MkhG zacZ9V#1?X)FH-~$waUDIj?tx_)l6fB{jW8xwR0m<`Jf> zzx|oQlS;jW7bJV_CL_K>g=aR=2d2NGW!YDX?1~#cbh2>iOkd@{ulSfzFBBy`p{~5U z4IJ)yTtp#Ut(cj^0R_94RJ7dFp?d=Hb7?tzYUg;;Nc(UFzqajKSCIXAB@O@}h-el+ z7ddQYZO0Yi7tG0x6cu1r0CII2ujVQ&X1xCX(mY>8_dk}P;By$cx%dS9HT7`?dt6HF zXd--2_63PF4gRPDS@K`!vc78|@pBr%LS9qoocdQ;U@dGv{|X<7PLTk)-&_%3(BB^_ z<@7;aAuuVgLPAv!eEYEw5CBdBi8-VX1W=oS#sCOD8B8R4RM{%ikPqf!OHXh(Wi+;5 z6eQ1JITDsjkH1j8jx*H4iuAM>wmx-vENs~OYGN1s#C$?z+hA;^N{h7FZ6a18tT|NE z<9r&G+`#@x?_jIHtB+Zu-XQj0-_q9xkg~@wMHgJ3>mKYJTd%I!%)654A3Uj{wyXTA zO31=PoY&`BQw8kBR4w{wsvpn;tj9R{6)hD zmulgLJOBDK(Tv=lkY}Vh=aZ};lQhexCe$a%jp`Vj;>pr5t@6z3NSb+QITfVLxPV{S zfGn(B%uQ0CN!XmtCbBgI6Swd3bA4@)M6rDga-iZ{dVIqFHMqH@g|CSC#~L!?fBTni zUsN4yJ{ih6*C-VgLfv$ZagsMho>4wa(=hK(Ciu&D@n$0qE!MPEk+Y>yOI75!kR!p% z;PeI1kjmKgS-yS5ZDixl-P13JY#BS9(9}=By;nqn&lPELaR6SNNrE zH0V6v3V!o@=f7;1ph$7^_nU|1IA1Ttiqt!0+UN$2&HZYWQe#c>*nKpu&ukrfH(j!# z2P?{k{X%ugS%_;{xTQDig#Fb!g0=K&?Zzv8p7-3T;w2iOEpb;+uEpEiEGOFQxH3-JwB5x(n}&P1-!N!yDm9?A!7Cu@yawE3{KjupC|g~I5Tm- zZXmenlVSDm*>mwfddCh88gwSsil>h=8Pd9BOWWC+rAW@Ya4gG4j>s5owpKU{{$|AE zAcQ_1FBE8BTwQ$UGM#5->A#G_9#vXr-D@*ZZmXoyGner5Q}6OmxAS@l1YLck9T@(5 zTK+gKK+R+f&JA5>W`Ghf4OXVgA=oYAXdCi_)GQlKc?$2@!Gm^C+!o$#?u)~}>PI{; zZP%V=;UOjFGsr#O`|cWPv&CLYU>%;t=|X@Q&SzT6@>E*Oq7&)V z^a6bRilpX};X!V^+S=IPL_)w$vkSQ!HZ=i>k<0l{(rTHcJCX3lc(?7t;9=pW8}S7f zBRuH1a4>zV2&sAhQM*~WF2$*~8-+$R|9aQ|ggUlmqL{1W+5TUPbL8}qEaH+!PTD^N z&_MhT6}vdM4|KBidmO_QId~Lv=f84lCHJZmTP%J^eMSzaqhEvle;%hN3I;?Zj1Q>X z1+&t?=0grF(yv1HgxkOg{ZKn0{&&MZize-fJ3vBuL5PsVGQ@*C|yJrj1!0j z%{!m>#U8Io%Z&%H)`Ed^x)8}n8iopwOs?K41H@K>KQqvg0$&<|MR2q%Cwj~pc)8wI z4PK*KZtd7@MmVtbRwO%Z^^YbPQC<##kIXymV5~_Lj6~Np^Wn>B{K1QocU$Z!QSnP| z;md@Ngk?lmGt;eG^EfdMUu?9PPZXM^ILxDzC zu>qNFfd`jqvI_$e+hOYxXVJ-`#PsIUinaHXuDGGg7bAkGZj89a>@Bf`DPowu?vXJA zd!>ND&23t=Ho!UEoZ3YiRG|Gc&S49*?o~ zpUA`Pl#zt#_zpw^uTwLtqxqWF+g5D2VUj-MqJi@?#5AC42d$l zuGH5E_PM!)54LS|*F7VPF5BNzIBxrqfH}@8qR#Zc6Amv@ zVlrvsa{pxbW-HS53UCI+aq9RTN?=(7Io2Mmx7O+WGY_%SNrGX|e(ZH{<{s{oaOIDE zq)Favo_KwO+@?2v3M5iqn+dk*Ji8W>){<;xj+k@+fp$cu`jcM>SQ9mc9t`(~0!oLf z&ddxi#^8pbjsG+T_5fL>#C}5|qUu!Zk5VKG>>;3)7LYk$P$PV-N33&PUEL#VkYN5~f zS)zw7btaz5)yvHCa&xAa`pJNrm?-0NPVc;u-`H1i21C% z>YwZjU99g_9~t{k@?jK6J}~?@`2Z5JWVXGf%QnV2PUV4nF6Ri6d+X`$oqy*~J*3 z$i2e0D&AJH7(EJZKLQJ-*wg!V79-@|Ez)}uJH~yCK4%927G{^=w=e+-rxJmbzuKYK zPI47J6DLR}{TwO`VFcM2* zH{f03gD&J}ep{Mh@74z52~`dAbMQcXv$d zb9pMC*3z{n?A04+)pO8{y5EHrGv5M8swOqEslqL-Pu;o!nDF$GI)>q~qk6$ifXOmd z-jJ{6wH|I-=?}+5OqH`y`zfL5@XZ^)4j>q3tTCKlje2*wqwypNsuy1UuHmHW`aK8! zBPdVilaIO6^RVgcV&o&ev^zw1$F^9o22mh9d z7@OrS!-kKZMB)seVt4948PMeRWe~ymbR9bPux)U%Acaqp1i(UO)a3@bi<*g~D6=@0 z{tq(bvoyE_D{i_>i5N;F2Nq>U5p(__A1y;wS*Kvx1r`2OWa=%cD3`Mzum+nd?i3+j zAv6kn2qFB*XSjJrKx0cx z=X2^MJ3K|}o=u&uR&-tJ2jtFfwkncOMmzw($PGg-1wSBRDil}Lwx$zsWK6k`?xM*^ z@t?#lr>B|qfk3j(GcqoXkw;IIS;UUQ)q6H{BjN;Xd1TaRob^q#{32xH?R%8(ZfEd+ z^aJ8R<5Y9+#JStN%*=I}31s?OjO6}{P1< z5>cI~jJiw(%?~CX{{g}K{qoPt+x+$PJwG+_yTmH`Dyy)$I?s!Z?8A>7dP8-krmrp? zCn@TdvxHu~Cdlpin}ks4Pstz$RSm575c3b7h-cnk>D329UQYOtigFcDA`-%>=$vw3 zRk$z3v_|4g)@M1gh!CNt7SiLMojgd_{-eJH7-r~V0msUITu1A5Kq~4rH*Y%tOec@b znAA9!7xihV<^(6=tOWIIiLBWA-gHoEVZ`3uMX;}2MAAbtZE~yW`E~m+o7$bcvi(YmI|b19$K~E%K*+lFx%& zTJq#Q;?j40qB?SEJzXC6XiN8@A-&}wNFJHH=hu!-tDk!uF(n(==Z!=ST-BW2_;AT? z3t$60-FTopwwVV=GNh=js&^Z?k@LlMBCCe}NUnZ=tp6rPZB3p4bMo*UPX&ZcCZK>| zkJYbaLDS`4OM4aG{*I@?$?5tYHDkN(p%{Lr2j)qIaol_MsaQT5B=ob3K%Bk5F z4abS=EW|OYcpuPK0Vxf3CHc}H&k2LmQN+bFDR}ePqT=Ey?x<#(sKR|>0V*d2{SxPZQ*|@Y%bE^C~&dfazhYm;D^!8Jh9$hkOnb-0~B37 zef8D?Xxe#-3>reoLed|}bsuA+^EIPmEy^cz-s_xX)OFM_<|Io7@&&!8ujq|)9ILQf zGVP5^c^2{5v=Dgt7Vy8wcx1({0>5Qn{crS65$u41{(P65qQG^m;pX!1?*0(Ccm=<$ zEP-)AL<%L!D`{{C3C?euPL>KGBaV&X`JD{YGdylhPg7g@ij&V4*J^D?IZkBt)-AQT z@E&6gb+Cy97em$J9WOp+0U#Hlh=EF~Y0e~a$faUPk7LA8%p(oo!2FMh1>xj60T)~I zARs;QGXmhn%K^Ojz#JN?yJUK}4i{A4Hw2d{btpW>c0ghm` zLPRJs=E4j5f#@5kH%|wgC75NLG&hn!xjppt}hp6Lj$^wi&cHxV9 z(Tjdl0^yHKq$?sw8$~4N1^4KL8x{KcKKeW=T)xhyen*Y>5CVEWl%h0@X4+dV z5~gzS)mexMvQ*je2`(txVx6n=UX(l%U}fkotQh051+vdPlAFeIg<65J?P<6#?V(L6 z&kGG`fw`W5SZWn+gL4;XYl=0okyi&E$`}nQ+svHt)G#=v8lB%D`X7&PEF>sOBaYqy zVf!{^9Vev>?Z2&1pQNO|Lwb;<05m@Tvtcb5PkNn2DB@~OjYZW|wiHM{r`$cY5oBaf zfZ6QTI4UlVde$7tYKS%L)mUnjt67|-l4#E+fc@}Dr*9gIs~)rNe`XaFqC_s{qeM<+ z(z~1@TZ0Yt_@0tp*L04wiP_L710j?;CAF1IG>C+AH9`9RWsklfG-M$EToz(rB}<+0 z)AGoa**sTmwA7acEN6d zb)h%=DX?4F;LYaxzA$PT?OzS?w-~NurW)GxgE=sHXB5pQ#HxM6mYLVQO3D$`|BDQyM^&4wlEit}*h* zc=u53rf@_1zY>A$X`&3)Me}D4#l%4|Wa^n8qoU)M*Ba=_{wox0R>X6 zEgy<mso^AX6_=+8xZb3iBvrCbC^tyZZK z$|i>ZkMtgEo_o6lB|FT>Vpv?YWToFdg7)${&t|iMz==gKj`M))Hq|p(EiYM3UkvF_ z1K$31Z8tfNC3GoECZ$1A2k)5vIxsO#BH-vKc>wdCt+<>2Qttp7(h0;zL>0B`fcAib zVoKm`iRAv&D{|7npmcLTQTMgCo?bPUj#x8d4WEvl-=(2LK@BH|tn=b-VJDIU5*YL< z-CuFc+E$uP;t}fUQ05;#VPuPC@~tY9mTm)s|E#B&3J@gkU;qnCzAf|*DFr``5d0N+ zAA5lJ=T`_e5uJX&A42U#B3U!1!a(~SEZsr`hva@E#S0#FQjL4hM9({Al4w^~BmYKM zHmG@QH2v4hZWDTYsb=c2B`Tz@3!RN7+~Ys!Og$t$Cg6 zTRUDm8Qu_O#!Tqe_m{ZLoL7TgEoe+9%HOQG7BG+?z-@2dh7a zyX6ytzkMy0j4wIb!9c3zyvKQt|0|;g)wdtF4RgSPi!{giqswCHnl{4!JUj#Fmnga| zw=beCY|=w{PvaI`Rximi#=4%f*~Jx+1aJpxtQN^U0$!enWNMT|Xu{#KG%DI7OAp2Y zVgv2RexI}A8lUBUDIk#x1nGb#!MS_g6^HAsy~voNLzxcj-1%&}N-(n#_a?wh(Ia_g z8j080gNUc+p;-(Dh434pPn)j0RQCW);uJp8SwxZ^Sz$*G~|HmiVr~i5Z2hSq1c-jzx z&g6fU`Ia{SOW*x6-}gHWlfNFOU!D|q>C-Fu3#~=2@{yp-D3ElV=ckt|8`)-; zrE4xz9iIs@aUVQa`;TBC5kQ~O2#S2*`2y8o^LloY;V)C3zy7q_A?uQdv?ysh2`GZ? zR87k{A{i&H+2ckY!org0X6=$RPEXY{kh6cK1A2M=XK(jvxz1H$bP$!C9emEgR z)e)us+_21|emM?E{@jJ7(WQpgY$?e7Qf~7F^4VY_=2JoaWJzHM@ekwyGH2y7;T=|< zvQi+v=;TQ*>0G+}q&zP%QF$YBe^PZft*{SPnbMuWQ}&wC4{ZAliEgg?B zN;+ByfEf*uhn9NziFgV z0p2O}z@-i8hG<(q=@1Vw?el3gR4exWqVDi! zx5((oAb7Xr=jdpISW@lutl=1ltH5P-f!}7JE+IhNl4jRx{&(SrMjjT+Ca-|%gV!;j zv6RB~c2y28UTD!CYW}h1N%Xn+v4Cc&n>mT9|HFfX6EU?T@YKUypH#n^FL~%J{1-!# z3y7JaBfL(l1y_I+DaU25HQG%$FiJ_~O;Sb}PUG+iRmvC)*t{6`~B9T(0yV0(<+#3eJ&74V%o?9LdCV*)_%?{1dCTqU8Oib`;=;* zfl`b)c@OvD@euwJptS0TrRZ!PQX!q^d^_Q;z-H8(KRmv&PRBzJG))EdG0T01u z%3^a#*f9vQnXcahQJTZHU>tA(OMNOhM>+c1wRt7cR(?6e;(dKBerR5HXL~`TkNukB zYm!yec9pKPPRUD+25fylatT+nG{ksJk^!Qs|H5AQ%)(8DsT2izTkq-BD?Wq*(x(hX zf77SzhGDKa{jlUsSkV2GbXGSD;z?kHN+=ptQ$^h^_kEP0g(>b97bnxXw2cIVP31v5 zKt{Z)nN)yN^+K{_=PPb!8a|j!c~hJc71Nyxkg%_R-v9fe#!+F{ed2#6dKK4lt#Y%~ za;kDWRCY7$|IK#|q#XkAMb6G!{%BcfmH`hyf-Qfh21PH0l#S{RTh`lOBRLy5M<Ff2)mzc~M2*h}FenpDtbzx)+J}xGyAPT8i{eO`r7y4) z+x;FFuSwL@?A^4{&Iy7nIg&}B>0EoU$V&dv9On0~8p zeL?vszw5!~i|f7V&?l6cry=XL3VIvu(3QJa4>FP-5TpH0R}l_SnH2cUV}WFwhJ}-% zd+-TM^hu+0DWf6Fxk2}-b~p_XwtNuM8aB+L`P3Inlv|g4$FE*%o;0xui&a=YBXvkv zRcY&5vsC(2bA8|04WeiA_4o_-i^OV;=R zs1fv;94Mb)+IUY%|6l!)+{h)Fo~L~h$#Su>3uS6ljcqn66C%A2`GY;cXi8oz$;2IsUM@GCe9b1sS?Sfd|xW0w=bE z`=QQA|I6i>htqAt`ENgtoAWwPX=6C+&Y3Z36*X8pm&<+rE zQl>9Ir3K1)aqmjg?><2c+2oFePh>M45Doxs)a*5X4m7~$Y4$5Bl_8PH%--JcaJjql zja;fYP2YQ0YAuz(cb-fXz`$Kh8D291&CoRtmmBG~5jiphEq-UUe%EtLW>|ALb<|>x z`;cSsA!Lr}WEMit-|wk{+Tasoqc<<)WDmK0)GA}t(s3~DN<09RS=oZLs>4S-(w@*= zV$NK3>MPOaaxzO^lQgY{)}vRSUlW%?RSwz>>oF9bpUXoyUh;4JUU@otlyuds%$IOk z?|bW^l{9}&=){KA+Wrp$(f^m_jrysh2Bes@a?P!%4_`=JID_P?9>`$&a331J4Qdx^ zO1QQrogLSBRtpl3AXzS3w;H%Qfm!+O{Xy-oXzGBE`veR~vU&7w*165z&k4Wa`DQ?< zuHa``q9s3$V>15L-F9huRrX>8%GR#Zj8o__!`Skk{MZkFnDLL-bQZq>*X=3=?(N^j zkR@{5&YK&_7q2iMs=v|8Tr9 zhS43|3wkT;oo8cpzA5pi?8EsWCW979h)SEo1RHkxN1mV%o!Ci=gsa<#Cei!lOLe>6 z3%4L6F%vPgXW>)~SWZvK0#aqw^d!}6zP_LPY%a{~=Z-v!NN@3x`&>17P6=_Jb=l^R zOz4TAV~n-!jV#u#w3Vx2NX?c~Cj!ULD}ThrdVDWj>Vd2Y?ZfY$9`;&pX@yV?eczWI{b~16BTV-z4z*#D>;*Rg`iSw%s9l00Xxn1(fvY5&Rf!$ z0-d$49@u5ILtC|anYJ_z2@5G9Sl_A93QlPe9=zWlh3tG?Vl~_!n6nZb@=55?_GA#}cO0q?fiK16b`S z=D9<{G;=dE*Qh3vWH`rFl%#=}6Us3tS}LdyD=a_Zy;&!AF!3uXN!Pk+sS&>uIv2ec zpTv3$6gP~s;rLO(gGHqLE#?fJOqC{2bimSUXI!6mtqqH0e3S{-0+&GdJDJ46?8w0w z_y-e7*9Tse6uxV5KjkEgTuW^91zV@sUbIy1OqL|0H?PU~&kyW*v4vQP?w|S{6|ekI zkD9$n^1mK2P36?m&BPBibQt%_5A&MhezmR&kB^ibVsQIj)^KUstmV*%_|=5f$>;2U zUsf+%Nujd-i}osQvM>ki1Ym~MM6_;fZ*<~yuF8WrdAGKT{EzM0lZ(8I?f2dA5op2& zWh{{+uQ00BN=xN6ES#FY-~=IFyw*rW7V#6ZbRjbScydZ3bd!0hi?86Exa7@;!~G?7&Xs0$$ERqd_$rPX&t;`Q z?`(Xqphhn6jQ4$4jHKAT)=pdOe&0~QGVi)(rjjQXsxG8&cHbGELhJfoz}m(O73x^I z5O2>B>NF+;E8Wr^Z*WJeRk@8)S-Cy9m}k`}fR6BjvP{fx_?YlZLGbr${ z7Z9G;e6i*q3>o=YIHgIyzh$SE^FRR1q!OyyHz_HWpwKU#bV`ho=gNa}fgMK0&fFg% z*uZTxav`ixl;HNX&78^j`MF@V0WHh1C92?8j{ydzktC#UY_+U=UWk667e=eA(Sa~2 zw((+MrA54~jD`&KxTqGFgqe?c4!HBjc;cglWS#WaI2o7Dg z4f=rwd_8k#ycmp~dcLHkvqH*E)(k2rJgr@UoX|ZuTz6O!89Ws;fTrD@3j*f?RnBdm zZ!7c?YH-9?`Qv&%rg)Nv=x4#p9p6WS2cvD3L*G#k&*PN#@-2G9LW#pg z^XV<8Zq3WJV&8EBAFa(HEd#G}=|YP9T8a{3Ze;3 zN922sUw3u61Nbeip3@C7x*V<&pMHok`Rh^HYbe|aju8P z`Vze3bd=6cGsAo4FwPv1Cq64gl6-)&jGMMzBgk~gvG=tcV?#EBmwtYckNv9R1B`wk zB=Z~sEHR03{jSKjBH8l%0s=Pmww-Q+s!bCxSWH>$!(_|L9Ahu@z(%}0 z5K{X*Qgl5gIwR!@w>p#f${$!PUH8~CUEJXH!mo-U(je+kwp2Pg6pJ}&$Z&sT2Dw@; z9(`w5uX?~w9yRm(FL`38i8FvO`;z4H2V)+oietO)c67LFHhjBw?PhG-{8`E1fy~YP zO_&fm17+!MKCSSXIM;7(wi*%3&W(xcQn#IKD_|sBmbpFLqY`+};?lq6P3P9is7(M2mNjtS4HrPeH@662at zptLYgu?I)cH1Y8VePZwrK5-|}%&-|f#xCGrTP(izBt#8^`3bKl&yeWU#td=Mu>lti z{CHE^I$dif!<~QwT@oH$D-vt*M8}DP?gy*5Q^07@6cjj$sB6QKD}D@w)xRj&2$&J= z!XjC4u^x0O9CA9SPYpgnof1PYC3nt*q%s%VD*szis166iuJ=nxGe{y}6JphFN|VVs z3Ao=K?>fI-Qfsej=dOOXqGR%O>pAU=?pf0dk#eJAf2_k{5Va;o)^D6%hjjVY zMCP{a;4NLrWX#2K-1-<=H~p1V4qls4)tDb3VrNl4p4fgTD&)d5XP6u5YdQQt2KKW$TfHnDDfZ8j`JqIFZdYhE>bzv3ijvF8Fyw>)(^jAT$Zs-v&M zbB3Fk-Y9Zwo*U37OgYTkUFa2h_rJP@IKGcnVu-;&Ewq=1sp2j8bha(nO`2h5Qc8w6 zHg-23ra8D8+?%cwvDZ&Ca-dP&afu?_d@P?>Wc|8)z_d{1L5CdSE{VX`&qh}I(%yKu zO#!_X-~68pDPW(hFL1At%PX`rPjwooG7bq%zpieArhoLYe;72o z$TxYl+(AuJs_Es*7>sG$ar`WWEm`gH=#TpJs77ft|k(=*LZ& zq;NO~y`UCPAL5`v_+{Hd&7`&D26o7p`PXiSy^e_mKA~J^hh_3DM>qJ0Iq7n;FKL4G zfM)1V^fhMJ4swumz^>(eAEu$E_+cATRH%zcxZY!`$$!qS#?N!--Yqw+O>=%+F8$|a zP5aD#yEKX%2t}&$o3=xH&(kSr)b7mTVxH)QT>n6q#iu~ok%gCnRN`eILU)YFVg05w z(=$cj|1jXO?o`faull(og;pW6lOqfCS&a5XP_7@#mD14G9mgcb*i!MJS(Iu8e{-YD z608ASWO5ZPcKT2pai#}aD`6bukg;ksOIQ7*{0pX>%j%dhwJnB7rv#msNk0XGyE}>m zI*KHI^sK8+b3CQLMAgpRgP0zf$e(6v738_bka^-~Iu$I%f3{q(F2W>?T_AR_$Z>6r zA2B@?=Aom{^WG+?mCx&lRwTq<`+l=6kb|iRq1pk#u6s~}+_(q*7D^q?x5TMf?b~Ik zlG=4CM1fB;T+5+^Ad5~tF5DB>Aln%mp2S5a`Au5r^oNC%v?3urcPn8d`38F ze|HE>BUY~Frr3>CzDT=XmxY8Psn9f=nsZXIcRjubYhan@qu^Wh(4Vx0F<9}5F~HcFsanWv zei%BwjVP6W8A<9;QTQ=V0L&3q*w-tqsW+-l$x_kq98S#ovzvv=IB3y*hj08FtjH3m$;$cgq`eqc09p>Jz-m&gs`+hLKnY$tF(_; z8JAC96;@#fN~>>=iLk8tKrOYULzLbWeVWAT1pYvZ2*q>bcj-E~tl-6UG~hB^Wf@7= z5t85)&fKG4SXhaK3tW@3AS!Cybo$k+#2Dh#9`Uu<9IrsBYtX4&&cRb8*u1| zr{MP%178S9TNwRtrN`)w{^_eMohU!vFjgH`(e!OEXYTTtV0ZeD_$s1$3w5*Me^M2p z{Fb3JJUsmLwqHf@JkvJ)x?QEE{MxgBl5}K&Vbku%^cQ-s?6PhcJz+pJE!$2!bxGF~ zLYSRdMpc-6z%7;7?&t3;6D6@$q%kILQ6;rP?reh3$zcNtWn*k1KdXw%IvC-+sVN`Y zF20XGqU6NzD&-g|&MXaZRvXuDK#S0_#Tcc2oc7{AOs%UcHgkk_{5~OLXPC=G8l|QF zO58jGrToq$+9>QC65Ra(MlR=0!tmJHIb?Nk%Y+@7-h)+v(sz-Ml3a{_M}A^5$D;Y# zzRNzVaqzK=w|tZnLmOvma~1qUaC=oh9WJ*b3_P-Mq-ZvV*U9oziS$czWsN0~mU*8P z^@lt8Qa`V$$lnl>KPgEBTIh>5)|PzG-)7C;pXbV3?j|THedZ;kshp^&ews$(obO1l zrJRUYTcg~w@h2=ggFI4a9dF=dM2z2`GsJ?zlas0Y&+#s&x_n-AiK&ts*=TT46=B=? zPmiHrcu@-*kG;Mdj91KkimZ=@^p@f~xmB0_m6hPB8?8G#`exkj?dKnqRVK%M{%41x z9>A|r^+74k)$VMY>gJil%=y44kGatL>5l@)Ew3pqPl2Fcp98Fh9!zYaxR>=4<9B(G zzhL^KC0mYR7nH3Y_v*dTvgX(2VKWJ;UBoL5Pph`@k6B|2CVq2g!ue|(`2suLgi+Zb z5hywoZvJwKs}qrhrzYhI7qZ;slO*R#tTrX22RQ=quR) z#$xZc-0GD5p7VX<CT= zl8NE#So$K?QI%SY_hm@fs{B~Wop4#WI?JvjUv>%j9 z&ZD-?p#~r7->%B%1(rZuNxy{07-#F4-3R)Cyae%HL|7_M37+8$}+# zZ`r^{Lc!`C>0->gYuAgVQph;(jS7ntgSCGN@}Xr{4{bKM&_+zq+9dt)3_%^UvZlU3oxLk=7JZ;V*0gUxt`dyeSQ+vXi;J0QAcmJF_V(uIjj38{OZDu8+_6 z{YBR8`ROa+3&~YPj^*beKs3H@&k@~U5{(tetxY`Yox7YEqL<;SO`Umbv>IEwS;Q8{ zpS7w+CR4tp8aspYhU@eNIc(@VxU-|j<6ca+#;0HYr-am;mH9#1Bhu5X>aYdP2%>Ru zJc{FE@*(bG+ODGe`h=-ZIsf$n#*iwOhm9u%e3WpbVj?hlp1|?k{`$eaW{BJhsQ^MD~9?d$!}GHo{{@L1_6M>{$~- z(&&u~;eg3*^TBP~Z-+ zjbBtRiZO}7*eAcAB&|6e6~9u6)uGip(8SoD6?vy=`tH8p0Mil^_%Tl-S_nZjnZB9x zq+4*2zciFGtEZ*=!G{~Ya=&p%y3cv5M|}hM>E?^r=~#MWuclKAO0>e*Re-mj8E{}`F=x0 zgARW{!fY>kSRXf7NY?wqjUfA~TXPEzkO^P1wE$?ecW$lzDWUv|lrnZGKqH z4P!@_1IAVmvg6B2MbF1C6!l^R$ys=H@^7V|=?298y$e#S-K}n0Q&f@#Fseo)sRU07 z=5EgxbumY3f$g<5leaFy2!%7QY#?%(u=`VOd5W@#rCwc zd;S}KdYp!Md_ll2I&SCgR=ZKcE0k+n`!{4fw zdx&L4axfKePN!Cgw6Xm3eW<ZMD)h2Ct*;=nLIF4nE8R z9KprkqsLX@#=i^JN6d>U8R60ahf_SA6ZI(x?Qsn(Di@%q!)f}m+VUGQ>|$`W zFW$gW5B)A?_TZz2MQc~nCi$8>%q*YDk~$m7F=RoiYB zD>x9o{XY@MMTEu)oyx(N&5!C-GM)Yhf%_GZv>for#@MfBfOY8qo_1?j7 zh5h?~nn*&3M2#9miB1xo6fH^!i4wi8=&W9Y1Ytw;P7s~dqIa^oRic;GEz4@lE|%Tj z$@6@k@62z;KRX6v&N=tF-`91$u6w>XYT=X2@jzfRq08xs88YQ1+7X!**sAeON`^mL zYqE)#Io9%3tIb4Yrj`LMO|8}Xv1)Kx>#U`oWz8j@*`Cvtmk3r{n*J#f4ztbWCTqUN zAF&qjox{?CrUC6eRrN#my9wrkqaMR6DGyFmo0|%k2F)+6kd(KTvO-HJ?tU-}Sxekt z8=IM>uJo|V!7pxlJeuXHQ!Ebw5M(W`CSL9E^MrjZMXTnI z*IdsSd8rU)P}P4e+Uka#p4#RdS_Sn8sjlpL-R*z}cuwj;ul%4U?oAGIJE4IHiy>f6f98u3>9K!yZ^z|I8~*t zwq5{i8?nmMZ${fx)UD&dt=9JTl@~-tFPS0tw{~VY!y^Bc#^$TQ1OpKTUP~8=nfkvH zqPKu$X#L^0%^lk{54zFmO^4#1u~h+G5trX32YmMjC(3prx#C z=W{?_lwv+1Pd$=iqi%@c1a|}~{c-1UV$Ny!?*L;!BB=ZJEy{$J{2tZh zo2}<$SNuGVsmpbMPke(NgCSSh6+I?Ce3cIS@-_>jK z#_P7h`i&{WSQzmHX?lrie*FU`Ag%L2&)8uYH|nEb5g@ zM(Z89ceB&d4@-7ER3C8U>-7C(SBf(>zQse!5Sx+HnZD)&mUoph0NwcJ`*DkDjAM+k zLXIFM;0EtfQ zPO9A|8<}V<8H2;lH!Ux|HCrRir?Co34Wd@`v{aGCR>N@gJwTiEF!7cmGp>qCjQ`s8 zQQS!r^kpQ&YR4+Nf>U+TM|$K5*^jyILcW5RWbd4pB`qZW!leg zWm%*@mw4{bwI9)C6O7i(P0wnCoDj!PH$A1TRS9=yuBHTMEA;;jquS!SR@YPmq0W0D zz9y3_@~EtXcl43Fw7donC+a|V=_<9MY?T-Nzv1OPO<`9|eepRt$G{8hd0ON18k=8| zCL&s7T!R@F28R0jU@C68Z3>X@kGq?aZm!J%VTJDsUOfztGg9S0 zhg-9W&AV=tW-7lacy+T+gPsq{oMn;V)`|-kgHS8mUCyZM&j^lCTP9LPh}@B^iDs+5 zA{W2i{2apR$H$wfW+=uf_GR9hGadldGlE@`_Ntgg=Y>g((%<#!TbnJK^f-MGfkn8= zaZJoTUgc*p>Ed)Kq<2iU7%Hd?9+^mcCm#yG7AX?n?97?KrPN&_t3XRF{3*=p)aVRs zTPGLeas*Y6lQgRyQmATH5K$7V8Oa^jg3yD+u8Amxz3X8oTNeAaCtw}vx?wkH)EBGV zJXH%FwwSL6I}fWRWd^TJw*~Gn2c44=b>Jl-*!4Wk3v{w`cZM_YO#=)9>DBC;UR^7m z<74xXH-V?yw!4UiACLkW~G1|2h)Xq)Lz-NX|Df*sD)N|3{Q1BBfi4k zCXqy@O9CWndrUEsh3PvJHyP)rsS1f-rRvEgfB5IDw|Aw60cmn`xVn4(j|DR3Ni@Yv4(7j92z7>0%6>2Q6XN7Ix=)>JR87FR~WR~z^H{=gZB5(>8vf6LTxVip5%gIOxgLK z>3IiUFb#5Xy3#90AZtI%2gR6m=ms=drxOm612@1Un#yv4Gf77Hcp`3O>FL>lGGVg4 z-4gekICE4=7%{zUWaQevT$U#ab%vuaCxnO>8fq+rKH>-B#QG|k(;0%*zc&m#&2QNB z6ZaB}o@-m19j06a?@aH_J@vU930ek0GX`1@yEOw)*V{eu5BaaazWse$Xz1#@G!=E+kbs>P0Z7SrBXVO^3o@=2y zWQixH#7#$`H>D}Kh9KOYqjcT=++p8hJ;DQr!54_&=E%~$CR$b(Y9*j(MDw1{$!Mwk zMbO1eiw`Cw9J}Xp7$bi~DnT_j-~rc^&YE${coKiL_n_K-baV{vQ+jB6)_LMrjQ}mG&j7Bd>+s}yZ=dUP_Q8Ks*q@TB9ZoiQ zm6OuDX~2jwx%==@V-}5J{cBO>|C__IA;Ih)LLp{gAvzdSRK|uCC#>pL?J>v2BOFr zUkR87m4Q=)789dO?0RtXn4lORk3nnCcH(8-4T*sI%3?u*TuKw zvy$lCcvjPX#FxGBB*=;gXYOS0TDg?9UY^Weo93cxClnH4^3B#ZP9fIG&kl2BO}0CxHYI4d9&~{qU21LjvcMB(@H3gXeF+zO9lj}J z@9i_Xwv|>olR78VQs6;p=flzUYCeSjVJ^eR0GI$$X!dlpEtMt@DK1|{61BTJmuqdG zg!Nv6I+E_HY3$F{IycFo@m|hLJGjo{Jv1Vh4eLzkG1g@2xTdZlV9?|~OET@$u-W59 z*s7}tIDXCA9`M&_r_9*UlSSIsJ-2RCA`6pJwUMtYooz$(J zdCJ1FICNAynm_h=FuW~WPAT=%&2|hcZup&f{eN13qJOK@BVP|Kl!zyHyhH6(S6|B} z%jV5E3%$#PgWLBv&V8nelJQa1+|%W(-k5)|H7|M(^5avTqlJ|JUm9aZY05I5;R;= z^Fm1z*W5HvATbEuao>K;V0d2l=PaehaldX+$6nkhXl2zI?b~lhCe*NjdNxzY~;P!)8x{x;_w-=N0Ku^|(~fKssQ#LygjZ zS6=p@>U_)Y`b1l^9B}gJ;#R=L<4a~feEs5~GHV@UR8kAJH)tih&F?bIt9|XFnUG#@ zZ0~kCDPEEN2j2T!sLA`%THK`RBB$BY{Cw7sI4FcbWmUGfe?qOupLwki3Q+dO1>yl% z@zQeb?dPqR(IWw`SZdZYye@a;FPrrc$6`eKzpSUW{v0!|_WrvwPywMb|L?QEtL-jl zM`RDlqwW26JCy^G(}8$pLJX^PX?xt!R!=x_H-<3HL|jES^&7vJ&PI6dZdDZwaO!;j z>5&+>JT=W`@QH7+C6NoNsn*DuvfilPE! z9T`NRv||v8((b>^>GqXUJ*b0Oqng;i%>P8%QaM@&kNZt4zI&XgFfAOtk4?5YJ%e#o z@w2PRYQpyURhCb7L_+>0te)PRX8!bjkJqZE1IqLb`hDj^%mg$n!}xWBG1J=i283R( z0(m?)$;p&8VgFnybhNZ-Dw9Q*LJyd-Eh4Kj0m8x^8%@Q~Y2wLNlD>EcNR7-($)y2X zqBw|@&QH--N=j(@9sfbj;~%jTZ&)osiP5#IB5v}J*>k00|GokK1eFrxVl5(F0i6aI^X}@zy<>gDZu%s1 zM*gNtGfSG}C68H&U}q&m>==oTNqym!4^#81-P86+%0CCGYzs~`{ilDeg9jqMycMb2 zQ4JX@6U&vV2_n~*Fk*UuYQx0#-2&{$un~5$AL9XBV`%EFFMT43-7t~5$Wl~r(oh^a zEw5|@X_JmPIcU|~Gj&sRW-cUXls!h825nS#r?($&L1#if&pKCcKt}@hppN?PE8q3X zQiWKI{fBXF$Z^Ec=p`%hXZ!hId(y0cElm4iX*+hdkaBt5L2atV^X%GgJCQ8Aaej%W zcK=M7byjTRWEuFce%DFbHlx2__z72c3xrqD?QGH3@{? zw+WNkCWf_e0pQg8-yaf)CTQm3?%OYO5^M&9Eg&DO9y}S$%}s)2M03_y>3yov^FXp# z6lj13wnHK+>uQ@_HcV5D+0zN1vtn^dAq_SN*K?-ieOz>Ckhpn4eM&%p7f zUO*UXefd6+SGMbLU_9!dQd7d<8T*xGN2Y?K_U)mv2Z{4V_H^j2fvvKbcTLP>fA|$E zU8H+!UW}C87ZXuMsZ?i?rX^DGD8<#h7E*MVBu#RDk8%Vp{^zp&`e&5p%o|9`50~jz zg#Gd8?LxW<+(*58>T)l345-r{;$?mW)~^4L1U_zSu2gB^1ay=bwQ?$ohFn;FX=T@q z+S#4ugHBU~yF82I>$;Ued06ebXsNqv#2j;wFfeIhZ6y3V%bS`ys&7XNLaxWk_{1%v z6i(OlMma}1^!N9G`Wg$O$y-%i%1k@=duhqi2f(czL>?k-!cU)e^?o;>BB`kl(%8iILB*HI1@IFDdjz<7Y!+dB!CR6UUNTj997@#xo|S;=fz1YQ=mDuk&RGJ&pIP1 z?awbwinhFKGuIO4Ws+RhOqiRLxR^1<$=4o6lh#|JLKvU(r{~lBM8qNfnqG9Z`UOAJ zLwI-IAFASNziGP&Lt4UrFAD9-1SbWSc*0?H6Bk|ahC>&>8zk(2wpzsPXi;_E?Hx|{ zUV2FBAmwCL$?UFTM2kUT#m^~ZlwE=G@szzqsSHp+-PBl@YT318;qhV6RGBQd={bjC ziEE2@DD)&!ez1awD?wkBCC84xid6~C;$w3sAsR(a)IRM?s_ z?l^JM3ei&C0o3&-Rk7NK`orjagpBlkD6Og+#T1id$xdocs>rJ3=1EH~zaIcfZ-Nr6Bv@x+3B`cVQ*Y@6cm(=<#~{J zsTjd)k3bwWTcXnEEVNCHFK#cM`TyKn%!!SqN$*n?kqYPMkRgc#1aff&o}^F*_3&O% zZE$Zv)0mRBjM>v?uQ@p+tQaJrW_xwp0gTQ8F8hgkra|bEd3oH$@w!1WqQQKd&`a1_ zS!~c|Z9P~Z1jcK4E#P;9IU4ZMpe0NjSw%p1WA@^?ZIA)TZrI13_Np}Nd;{9-P+C6# zBY)mOgDB}aCTN(RE>Z@GRegCHG+Qff9JI2&*WB(oU2vqA`n}HiuekVL%ii$L5?+Xa zuAbj-a9%4Y%v$)3>`-a*wdp@|4(dH4`#hZP)yHk*HU=zh9Rz%Pqbol4dh^~)16p8z zuY9ANI2Y|{Iw0n=g1h`n#MAD7XF=eXL2}2+OLpflXh8a&pBvF*n%~%KFY=6XH(jT_ zw;p{cpj;3$l$|mA({qkNO&2PU|2jO9V~;l6pUA9pcZDez#yI#Kyb%-ou1VE$>)q3r zN?&?k{6C>4)Y9UCfKznD78GS8-b{Tbq{OeSo;I)I!C9XL2?#2z{(Tkf(KJ^hJ!w^X zPmk|UL)+^Q9nkx#hqv#qAzLEMK}HVMA6-2n4QtAg?987^vm3g2Hr5iTDlx3E(BoJ4 zW_8aV=}|cMLkB1ugp)u6DK(#Ng%`?YfaTI9(aR1?h06o;ywNgtpt`G|++?cBS(cC} zCPdP_gg=`T6^22CJcd0K!i)j-VvZv|YT=Z9B+8p&?CYrOzh);uEa^MxlHJ{IT9BcV z(ilC5Y~DsyP0E1?tCyqSKisTc`;AdX9#|kXSp#d2MlRmq?{YqY>4x6LFK) z%|X+dHvjJ7CLn$d5ol6p@U zvlv`HTn+9wk8537=(jT+I6j7kx1Eyg*LTyF>$mm=Wp@7^q&+pI=A2tkV{F3(h`)85 zBQDFPQ^3pHU)1ij$)6vX@)KuqCQXDUFB~B~mSWd;wX?#1MYGKvv}1bJ@He)H^>Q17 z5(+j!fZ=uRXG3&gTCcCW?ZX=q!(-ziVVa#{hy z2gjX9i;DOZ?EZW+tG-CB`&1osVqG^WrF_j{KUqa%!#R>f&uC8I%H1i!22^!g_UZX` zWlC1656b3=U3n!p4NYT?PJB*iPcD876tb2>Ni0b3buXH~V9>dqzVqF30zxHh7iLKh z1N}84(5Dk;(*3zTU8HT<$�_1(hK$GrpG0K+9DgQC&pdl|BO zqILzZl;YliPwoJBNu)&S7DD<>K_~sQc*}{Q*KUr2bi4ya6&vUj{u--4^ggs-zgess z%8e3QL)HGcw0AJSPLvRt}osz4zd(S&ym<Lrz*5Kv=@ws9Xb2-Vna}Y_{ zYSCtXHlbK(4zCT+Tnr>ei!U98?Mw%up=8c2W}SP@PJRwc?(1sCLxJ&#kTER5BxZY& zao^v8Xw7ItIGy02%qK9Nu8&78VG&-?3SukxD9ey_4o#rNM+*_=8)gxa^7aK^t^B2U`S(z6}THk8$b+E$XH7UkKzM6fS@Vy)pqJ77IxiWVrk!{)gT}!?d5^k5PpqDb*gdw22Di!K^vgECKyJR3 z|M=nair1CdX2U#lns=u0T3s0+ulymvcc+2T!x$vt(|4IFp^6e#cO(t3zZ-Vpi~6LL zCH8^&;ghZ#y`@7h*{P%8p-Zv1-ztq8m;TEPvxSHb!T6c7B7Q)Akl9!#tY7$3dRpHw zz}9?LO=V|FWegP)L+ctf*2}(j<+ONV1M^M%_3dl@vj?iA(loIE_(%heq^gdBuZRG7 zVT%SEP)&zq%i{;2X$HndU!Q*V+|*c0TI~3cYnX*Xs$D)wjYWa}7yYYx>aI$0I+3h7 z3tmQTzr>P1=1pNi!(T%9-KF?+H2?)B_vGMKe-nw975 z)!}}XH?%Y!BJsVk`i=FyC)Y;1iX|Jad)T9)Zt5i$ zX;uqHq&W!Lw-?@iwjRje4h(+yphkb+{We5(cSv!~IvtHBu$l*5a>$=q${)oC?Gtf_ z$`qDco(I9i3(de?Wx|TkFd;(2K;Ch=-z;0eUHmdy~hJeey)MF*|2&x;O zXW?4WU1zp`vGNzO#C?3wQ7?j6L)_JqKZ4=CEYXI6n}tiRP{ZW(_T2$SA^k7LluL)d zjA_yk{`=_k!YV9kN60W@_ES_6zwy(WZTo#ABiT8^Y0@R$q}UsAafWnkxM6HRYf`fk zhbS&R-B|RimpxL~p?crPWL*hZHRNL7j#BMo(D=(g&hh`W07rekB1??d z6_RPlXVPy+16C+Ww`rM9j>vQ01*5D~`id(&gMqc3x$IR&_dH?w1mUJvW7x&>3DGN_BC?wwLS;%_ORH4#&~|4xh{%%#oMkGDC3r#EZ{uwoca9%kEM z=^38K(jeKXK^)Xb_D8)YN)5MQjeQ2X?`76~FLX9b zpKj_(SDvMNIR+u|PCiR%h+k(yd)}U=R#n}*;#Z-k+or@BO;Squ#bL2uTMM!S+AF>v zfJ~!7npSzPT*q%t(H)Z`C|D&%4eQg=K8j*IL=iXR`ioOdebN!xXIa_6-FVI&HinUAEdG*#vBR8kgdiVUdPWA&WVRS|wvju*v3e$7H zqfCfRX{>E0S#i0yZ!u6!)q0gtXew}~+AFr`<0Ed(m(08Rs1s>~pR4DxR7+C}FMIHG z6){8((@=fm%bzTbsi}sHh`!pu>AUT6D zD&bWr2t~G!aM(!3)`SB(tK_KF$E_V?SwjLB#p*DqHP@1IF7j8{S8-plj6h>Q3`e-=ojU2w>S^N7nCF-dGpN(=@<*cH-4x% z(^w8Y!=^;u4SMYIw}fBQS?vTcQzOreEp~G9Ii0#2T>f>kM*w(aaG5oD{leMI zEyHxJE>>Ip5grgdBk#e(+oFp2r@wv-%IVX`_}F% zz6$rHVoyBi7<8CA$i+41cq28@)2vtavR#xy#$!Iy(4t-DY0c7loT5a_8DgG*a&BWM zG^5iEv6iSfRE#D%0A;9otQ#|BOw2O4Fnqt}MCvKuymN)Ntj)cZNHPir~=^wy`}E;Sc@N~f7k8&5jX;Z?`L z+F~4CRbTvJx*dl? z@s!{DZwgJeuby4hG!&*-5ZgF1;wIAdClCrA$0bhLjU=x{jL?s$I}4y$LKUPeI(cw} z$hT4o_427Cs>#-f0()U@=qx{U2Y^&qih_B2s?*Gi2P1ohQFga;-QuM15E;_ihY#KV z=ubtfpq|ZNd@&83Yxz0?Y+OKhq{rR;^*g5xzUT+U%=oiCi>efK>{oFWo)6}8HAra4 zVyVugzr&nJ(W#3AeI7WwT|f^GLmRFbDZQ7a$-GTA|Eb`=j#AuJr-|o;6+9!36w1Tz&^lF|u#w&Cr}#t9TaW@T_cqD2pupTN6?Z+%}Z%!;?$pPx44j5Pr7A!9qc)0K!FoA~K_X zZI)ZOcP^H>K5$*Ht~@IZak#!YqZ?feyz9s+@qF2YKIMIEJ(k}GeS98thy^xDHkZ?K z?c4c&0Op}A=(m*be3}}B!3@eB$rDh)=)GC4I1h4^%p~oh@(C6h4b}f$_&5m$(`Wg`ao13E2jOUt=r*=4(n;7xI@EPbNR-N-F^rXJ*?O%~Z_QFlnkd&;L zMx8XB$#4iLlGg&?dm7$ds-wvtKGI5F0x$Qvg1t)lU@&aE6%rMdQ?U;)lXMNnHh9>LG z@djm}?cvB}9?ryfgYt54={)CBI@{L`6Kzb&m0SVz8k~sv>0zCgP(h|c)qHLH0rBED zG|w-3gf52b>tfF9Ba^a-SRC<`27$Y$!8+sKo4r_9d#-#LUaug1u$yUmidxLZuRdTz zc#TODH=G^4*9pCK`@QRtn2H9sMQwFwLe$9ONtsV}{9uJI4qp+tgb(g+7I*fw!xM@T zg>5ddA$Yd2m;YW=3^`8P^{?OF+0k@e`%30?3zC^m20MD92kluY+#8>-Eim<6hxcOJ zR+`ihE#|Z3^?N)YlT!gl6-PKdT27^KXvYtlE}o9Ny9|Z&=MPS2HU};q5lrt&x1jA= zFUw=Z3ALwdb8TlJua?aLGA=GI-xl{X13Ht|9K2#>oaflHWFa~5Czx^!Q!7TtRH|)y z;P_dQHALfE=^@jBf$kc**Pme#*q4J8jwPt&I3A;(gh<@<_}#Sjh@CoJG4!*>dImIw zT8Fr9_;x!<(aLTr^&*n=N%d+Q<$b3lUzn(N(Tl2xds6QKo>#$0{HySwAhmBC4= zH;bE5bCcC=tTF(Od_JqN<8lh;*6w|(%=4Tz^FrsD7N<=oKqPmxb=OEK#~h!8js2jW zzXiLDXc3%IqHWp_;sLM~MINZJfcp`9i>3b}Xx-iK>kEk-2En*D@}kA|mO%$K{2Vl5 zle1TI!n^IdK5xWQ>!AIQWQ9b#Ko1PI$}EaF+|-N6h_6N5q*iG;zwomwD7}Csu>6a1 z{z`f1t`M#8vsi>x31`{8BCd*wx_Zx6$2B3hazb{h5DxW^{b<)^0K;BAG zb5wBna>^`@+~QGEQ2xo?JO+T)nZQ2}?B^fGLd;y%H$0=o;-uV}5xB~ABuh}`$15K_ zptBH{Yqeh|1LM)SAk1vQ`53`Vr5)3{Q{fLNO2Ef}87~|t5S_h*t7G+B!WsDy#u2aj zBQaG$xJ^gRMIb3C-*^ZZy+H`#*W&(XdTrJkry0%M;(?CGWG`A_1%`V7Np)G)~`NJlzoT-<&E8U*Z5S#~QYu9%#sW%xcIVWYO5`Egw8s z@;5VFr$z%h$#>}rKg_wErtX-e(QiUieFY^9{TH{mNBem}BpkPoXx*vu+Y3U)O7Azw z?hZ@Nm=LgPF&F6Tz)vLttD^7D-E>x8|MP=eZ7~;|PJq#9a=0lzMf5+YXbUvkAKcUa z$@M^+v`dPKy0qR3W_+ABYYA)uNvKSBtu< z_uy$&8)mJh)LZrR#c5>aR68Z%Y$`e!`^M@(PJN=cap&k-*&O#@FppRFnUOZ48+t!;(pUC+ykM_UskBW?CQ|9TD?QBatzk3|XPyV|m+tUoLQSkU z`UVp4dql0G-K4|C0eS&E#KJ8a5)V0_OY#gO4Efbv zI|7C~O9klKT0CTU@MS(HgVh`^3`;?aNkEm?o`M;;nGnktVJ|(+1P3YZ%*xPGm~BTfL$fex!mO9lKE-z;z4%0OigPCR2kSW++-mmHAQXwM~mUXi`S>3xLR0tCXXP|J$^~SK=YX(gwQ_LZ>ETh)dL%4TL&*i8dhRjgFkG*U;IDr1 z-*hLkql-8eA;B>MH_5Q}B!@+aTGR8|z|_xfWs*!puZX;&VAsAw4XWXwk~DkKuxPn6 z|LA{MG}a^*Ag>ce`Ziu&y*?{#r$X7F1*sc~EFUp&71fUWCxU%a`bAM8Gj!MfO{_92 z{@hgWX6rgColZdR`hRk1rLqUpI2P~zvQu?+^@XGE{Y-I5QXIGx1EJA8CDQl zj?l@^1Gk}@ulg-@sh;QG{ht=#uqomCkCILp3sF?)_%KXcU7Qgm!NA*G#37aC48EKjFY@qZ#CB`?0pGE2fLvx$t;!{+1KrWtZ4(j2U^pJIpE}Mw`I-OGC{ju_3;%|~5;%G)^D{TpJ ze0|@f&C}y@MChVWegSteRNt+aO#Sy^&&BZ;LW*`mAynx;>kA`S?>;Z4fQkp3f?4OZq_N1c{hHPca#}iv~wxfsA522`O8=By|?-C zrivCs^tls_5{K8gq1dYLOstXE4L>Q~0&2fl40%7bXi-G0l_z;lx2zqLpojcFB>D$f znk;&ox|+2$KvwkV#ZVSSPKP3AYDj>rifHXJTjYsugdf?7%A)+(W246RTV*Ho@fIEe zZ?+DN%)C5Q#IF6Ds&B6#vh|g2#FCoP!)$K6+{3*L`-ep5^QHIzdCNx`6*G;@cOgF{ zdtX}Js`uNKmd~OBrs?j**KSa3YOcdVbcRWG1c4}-Zz`Y?W^=mxJz~-o(2aR7gH@lB`YMGtlC_R& zd;v0iuj|a&H3gG2c1c&_*bok*@h7tx1~`F+rpLG?19gyj(cH?L%q~lI-{C+d{mh4p zESA6o;tt#0rk-r&KLB;PRJ_`ApWx#_(J!HIWjfzn(GHuIc9o4KN&0jJYn%ygKrOpD zQN8i!%9Tln-g3Y1YybC6!7nKL?Yu@BshxUi9d%HSUj{fZ(mJ8eGJ8iSb&MoRCwe8- zg2}gUi}RRvNN%40Cq3BE=>aSpr_bB9QuUYH!w->m?3Of!>X#Pjaz}^^ox~DEP=fDN zoriAKxUGn&+f*%gW-bXYQw(iGT(}oqRO$ZFWH*Mc3y0%QQcAGhQcOb<$EQDC05Kh03;vOXE_*S+nJipETX% z|LAr;AGqtsy*XS;Xhb&BwVfJfuUa|?F>jvJTl)!UIiyYH#geYN=Vwl+H69rEEM*r} zr31K`r5An1-poXl?>;3`Ux|X|i;?McxrxXxfO7^;88X-9_vHBuZn74BwzV#Hq)yUg zO4URE?auwNC*aSvJ29h`z`KC?`fR7`Vw8u*T1xs!kF60(B45v8F?~FgXMrMTK2@KO zi>oyWQkNC{n1yoa|p+G@=3NUopqToPza9nn>t@3rP;(Ly`o$loqB)L;HW51 zCMWAJhXJGG`=3!dZ(dQ7&xpnWHB43C%BVX&P@L0idf~E{_i?wC+*rm}y4}s*^l}|5 zcm@CA_=szKRBgf7U7JFsgoiUzjz+VjBCvm6(-{SHx17Zn@@Gg{o}q?g7XR<*qG)wH zn7m#AZFUGa8Tnc$AcclJHf&#OC*LaA51LNHOidD7(3U}MC!O4-YLQD03b|Ehs5Y6YN_s|&%buHkK9QXks$S^K9T@i;2i0_A5`RW_K z=!+Y95wjw%;0jJ=EB>ieuf%tjCev+4IbtQO>_#F$H-1sj<;*DE!Q!txWm9G+pSG`9 z_WgxrxI5H!_7(Vb%j(C~pEvUEMS{KKovJ%TMb*FiPUs3AT_Lv=X$HSkDvpPI`Ard1 zEc+V8{>nPI<{=q|mzkHA;VOLlP+t-_730V=50XY7d9jUh- zymX>~Q6dTZHPe(Caw)fmKy)w}>WK!zdli@o<9l?3O`Z0^-sl`+l$m(YG#)v;LtuLc zuu^L1*!IPSjTI0oD64*Db-H~`P~ zk1j+Xiy=9rSV+;`dROlUIuOa;U01uLbgPL97W03tOk!-5Jxta#_R3ERuIkH#Lu9ny z240I(zZIzZMC7?KwJ^-v>Zbcx`G7%8t#zbGa+7So@3Zi~*nztPRS@B5=Fhx6jSv@2 zEwPQ%^hT($_xlVlZz?{dvbNaZQ|-D~PH?0o;9~zVW*p1Z8;hZ)dNR@S(nHD4W6F_5uRcfd2xYS;#p$u1%Kd4(SyI*UV<$t<$Z2k{7 zXAJVg<`kNOVI+lFHf`j#XS1a-ERxmsI~4xN+UZ4i^o~4BPUc$sSmpw`kkNu4-2>$5Er}E*w%xGyiB11rf_Po zg{fvVV1%do|DUn?s?)YiLXBh9VTZD}PWl<0Vg-kRh&cFOPU1kT0K+4)daw-HPkMC9 zXU-Z6t`#gbp5dir!A{PVYBg+kDb_1D!iFxJF>qX*tmoq~0T8=M_BAb*_(JZBph9{p>k?Av?6 z)j091D^~s16hcwHm2irMd&UAO)Z8_eqbUaryeyo$BLXRpEgdLgTnCkg)mPu!u{@2l z@>Ko8Xwfal2Jo;&uWx#ss^sl;1WW09Wq$wV-O*rn z0t1n1e%Mv%yz=JLi}W_4u@$t~+k@CCf7TI>Yd?*9h#JqsYsJ!ebBYg2F|I)s!K=&S>v`vW z7Ozi|iqBensJ>8qNwg08{+c(UM{o6BxiY=0?5+wF!wHm5Twl70pUXwOmB{#7N=E-? zvuPSwIQ5tmJR8@i^J=KVhE`YK z_JILhX@1Cx%37~clKIzO(X1ugu|5gKso0nIOL5AAh;A}IK-;&rm+`Z#LX`}WH()uC!H>~Yc@DE(lftdc zqT%wX?4z_N*PW9rrG4N3X#rH3^pd=9wj=YqWfx;MH9#k#&ugVEZ}3~bRQkP<4HF}&Y+9Ok7iC>%r+cz#eipB=E;s6i=@JI)I?m5um! z5!OC|Ox^aH2`jh>wMVTYXK;D^(O*iL$oP6=mq}}9|NZ$slmBq%$accFa!RMw83`ew zX95)@GVaU?PmsD&fNUiBoHFkw>1GhP~1Y<*hPH5*!42{6v~@fo^}JZMaQ z>6`!QrxOG>xCO_!x)CbhMX&5dSMV>DWF5hgxsO3cCs@{o<&vFHpFSu$oswBb_!3q6 zH=MH7ck9IoviqNM_q`;u3j3SPSqfy)RepT|KkX&s-zzJ@Fi+zgxV9l~sz=0Z#pan_ zXlDC+uC2X}UOBVZin5Q-=r3>|oRkpqA)gMJQ88h`JEu-%2YmH~E->Go)!xxtb2Mt< zPx^R+QCK&iOfPwE0#~=6Xp$%!V*P$YYw|c&Ti$$LUwZu1DC^QWrXYaz3 z!kKQE6#mg5h`%%jLAq)Uk`3+IIoRckF z4pL<=1iinUtV{;=={W_lZ~EKIvi}jyt`cnvbdwydQ! zvGwy!bw;#F*2+9XDZFvTFUbE)5}EUFA$F+!rb8*9-xki5aWn%Y$_V4-5{+|=OZYmn zia_Jb5svUec_OP^8@dYABY7jbo#G)<(Vla^jX=THF!192ZJ?OpGOc-vYSMha<5*8h zMu|)*?L^%p44tNSyLZ~Q%Of>b`Iq~bfBjudueUy1BviSU@_3#*$N+{qvXXb@MvZBJu)NY`t8CM+1t}6_bwnRzV94^?;vay#o1(Og=tZWV=?wEed&VQ6?dhl(*8!fB@b^HQKO4ipSUEG6s5l(XX0I= zXgwM)aK1$A;FeBS$>s}9WxWR`K9RkZr1{TQV)nG}A}{=HX8o2~0L-Ayb282vPO;NH9dZQsg)-5K6*Ex=937^;CTZmPT zGB_UF!rK=;_eWX-vF`b@s2Y96@feC@-|Lmn^qL=xhSWSr2DStpF`M1LmmQQkZ2q!k zGzxqlI&&T&al|so-5VJP*`CU@VZzP8vZdbl>eVRn>ZU)#_c0M@dYj+?|BEaP_Vo9L zj#tVc#g(LWb6zg7U9W9JZVd&D=gV{W!RH@9cVts zv>Lwc8TJQd@ze(^vf0NY(=`Cc7*zW#Wj8e*yoDVUdUSI~F_)$)wJ^Nxn!6P41 zg&LN${a=9;rj@4S^g{1vNm-(*z1lsGCeBX&wpLotFI|jfYqa~)bGsP=>gT`lUKeU; z$VX}_H)?q4bJ$4deFM&l%3w`?Vtwjmbh@XZ9!PqxWw8rrzw9a*({XimNXyhtXTHO& z3CYIPy*rLNOtb>S!?#+bHgTsAwj^&q7i7$)1GfcG(=?_gtAKV*2{RwXikU49aB z9!#u&IYLV?sjIZi^lM|1{?U>_2_JrVH1jR_v)Dd-m$_9*F%s>;ZO=4JpT$#p;sYNJ z7^rwT9N^w1@&8fv)p1R>?ccYefQrDRrIaBdodTm2+z=5&x*L@4*a#H_BqgLnK)OM? zgh|5&2#khNqkD9`7x(jdKF{y{pV+SJJkF!O(IW9A`a(^^nFY)~La)-(Q9r14@3mGc z{-WhrEfl4#&qv)@ag^P1IgC5pycAXLt2Q4`bU<7k@#uQPi#Pmsm#*;J(&s}c2O^yJ z@%rFLffjX>)b#oCx(N?YFLhF~W`aD=RO`4&j`&8x+O+QxmAkvc^iK*a*jvZ7tLi3U za#iK7=01T1DIf-~P1R<@mhc>pj`{OJ^#@kDs@J(s+U*M?Yt+{4PIyeVC=LRWHy~0k5KHsoLU1cU^?EEf}ZC^l@7d z2QkawA`7yKXcruvCEG;$6WLB6&0k&6yB0EP4)>U_Yf2;iPrQf3{5}eBKBVyYSpX(X zZAfF)3O-nQaADrOucB9daOQ_)rzsVy^sNW~h1p;A8QD($qGQ+nx2QR7_UKP{MI;$c z;ODPSm&jW7=3g&tv<(99PikyPU~@jeAY;X9xo;`$2km1dhwaRpc5*m`-XysI8gM;*0?sMnjwJnEjw3Ki=%XG`--|o_E%$k_&7Qg_ApZ-$bO>5t2x^I}7iqxh_-u$=sT zZcqg%L8av{V`q|QH!=9ah`#=M3l8XS20+e}&LtH>?nPNePu9&}ZTf(e&mgt_7~HA{gDzQdSmhPlz zfzJTEX@m9!5snTR_7ak`~<~JG@6u)XNkoP^7EB7d9qp;)( zq6H&UhQ!-_Sy2LCl$cr?5!+Yi&srKb2d#|t9BwS}TumP711sbC0Bfx#e4w81al_&o zdNe5Qe8K2=;4*Q9nGNfHHx?&ME0&Zxv( zsX3Z7#d^YLZ!GeXM^B0%oSjdL1RGBMHy<&M^w+tMv=nE0Pe-_xRT&3PkFyt){y6*= zqE>G_&bMe#v@YuD7hV)zz5n^Ww+zWT0#t`tuW{c{qFk%Q?ohI)@@4r9y^WkG|8!ltB zpg0{XVXrnu+!Q84co)=2K9p8XmYhyws%g$IkCEJWy-iY?M1b&kE;d_o`M&8X?)H(M zV!XZ5s>>tr(2N71go(oNP34YqTRY?zS}{+4NDgOXZw>krZ?#M0sos@Lr9)Xvx%f@WBGXcXk>@`b0*vs>YdT#4%~@>(7o+|0(fW>XmMo3V?+^{8 zRdS6K(-OMRYW4BASzR@NNNuOYAc;HQa;uP0rHZcnMFN~Zgg`bzRrBGGvYF9N?IT6Y z{?23i^viXbt8kS@_#CYb8OR^`a56 zW&X(5;Pz{RyrVN&PZEdBf)vx!Q-DIp_s&^@29^xUrZS*Mbt zW$g}Kh8dp*A>IkC^^I8*u5;QxaTnUoe33^zFPOiA10l~{a;i{|#MKe?6Wd@jw@W-z zx`6okvAEw9PjzR|MdH(Ug_7ar@QGo=wAjnkp+#C=64t}LKWmOoN}_GWd$E)v=B3Zs zGxqf&Ulj*_lztUgZpfZGa>Ek!>kpkMN-JG^O-FjOuYDH3FXKBZUbv7EwoW{?}!lhM#8VmJFhd)8-dKY>v; zuR@*wMWCuTP|c?l?sal>nO*NJtYQ2n6dn>=y?cj@w| z#Fnw*(@}F`F=oV!KgSF(HrZdJhDLmu-^QkXW);dr_{DA&mz_p|0ezKK3GgkK0M6m( zg3;!Og?Wz?&#KE%L7@s2Q@v))FMq%)AN4*j!Wf!(Fb9ND1H*H=9LpwKbIVacliBoE zpA+@?3TMPclMLn9-HG>QM|5{-Uo{mB>MRETl@q-d)Oq3ie+6|6yl|Z^|D6Sh8Ld5s z9+O0I25-W5To(>qp~rpUB)85!n!78cTBjq5SY8C0idkj|2_tbmq&oJV>XqH`moi1u z4-+VRiL-}MS`uFvru;&-c0nb8l#=N3H9hHP#79tn@DCxcf0j82?2Y8&Hc_`b@lC+; z>g=sv35tyUaF6xqc;)VtxF31-UCDMc>b!*43H0J&?#}}9M{QY~2tL1%iUt9CxB3BQ zxJ3qVW)Pi8_;!NM%Kb3mN$xpfIU!EA{IfIogdm6cw*e#^!eo*F+zn|`8dYtyA9b9^ zXPEgO1Syro5iT9jV(NB!YK%@7jLuWpx2A|EmjR~Wh@QPCM&;5Wm&eVId!x2yCV90f zn``DAT6enNRXlroaCPN@D3mG5tVHGV->VJd@=(Z;4H_`h`DVfa{ZTm}Ckmot)A*z& z56DF?i?K5m&-ffbK7M}PA={spx6tGMtz&`vCHF*o*^-)qbx?euCCDc+p<#5_mSY$_$Z6( zWVfXPHd1*CJ|+>!(vac5l`L`)@_L$AJZ#kPi+)wL{~m|uv2^rQhZT_R9x$~aar#^m z`>)J2HS*1pML;E_Jge-7ob!>)$&|BV&f+ ztFJCkI$PYY`eX>VQ9u#-)0bhqfdSiqZgIGRd?Z0m`w@dPNsx{Jb0|W*mw}&a`5UKs zkCTsvaa}2UcNf4F0+fXK0sWH);RO0YH=LGP*|TcV1AiEBO1CT$UVAPtl<(Aq05qq; zzF6~Pgdb(H&;727^xNt^lqT*WF15zLEUt|a%*7uJeirX-jR?F+jiksWjP-4o87}r_LQDM3;^3g>VGozD32jm`DPvnO8_ zoRl%x6f@Jv!4T%A&1RL0P_ivg(|bU!sntJ9t7*jh%p!V*UohmluVv=fTy4+#O*hOw z)$)To?5SOy*QD2)S>kh(FttFHRb2?^qUSHA1QP=$8gb~HcQ&1)+bFKK{lf(#aOVUiXEclZy+$9Bq`!w*}w<5hFK;<`pY!em-dp4Hp zRt+8~)a?_UD{L~%2v%1MB1sF(cAk&x(W=pxBCQrE7%=FC+NyonmZLD)sQU&Xf9_2k5-RNB$~aMmWq*VeUPRuwtq@ zf-%y-YN^tRgUa`;LSW113+bTZ&YvA!bw09LVPX-vcE978KCG#*P0d8#>)5%Yf3lTa za)zzxy&W${L^^$hF+%J$2MIK6W@3zdm-I?ymWI`AmH>g$+2fefsiQBY;lE(8?Va(1 zIqpWp1sy9|4}PjB2>zjS8}@y~-u&14RNUb29i2E)K=GtWG=1*4Udg`6auLKCX!?il zP?8>+267w;4FK+&+w_rDi^d|9_ESd?ZGAEYCJM}BlpfTTz%NKbio*sYEYsLBJo7HQUA6*7hcd(e2NT9e*74GGx2~}?io0G)P{m^mYe0c^YCtvYM z>C6N(P!g8bVnYkQLn|H14d^^F-qSwH(UzE69V#E5z%G~y1cs7)o@tSz#Mrf3boAvJ zqI_KLX)6BgP+q<5cDx(f*HOPR!icWbh_Q1JD$=IypZqi252dO;JFOD8gC zewSxLv+&p#IC?Um){Od_5vdCARr+LlE5*^b56fwf3f6w}?spl|`^T_Q#7rT{F9HQ4 z)nC$uMamkAxHXs=Ml^RaF#%if?$utO5OIm2crh{){qdzr{2L~hl!^Bc>EN>Q?}NSL zp@~{}ls6bc@#WMOxKi3tHO&8;LaEX9YB%LSKFbTEume<2!&TlMZov+{ehz-?ie)*R z(lhA(Ww>$v$Qr?^1#|sFw4~~4yi%DUt=;m|^^CgFM+&)<;(UDkFrK9QrJUPO%|fQG zwF}roSAjBJVE!K*L!TlO%B>dzY9n!m*Oul6Yxn^Br^sgk`55^WeX8mT1Js4A^KkxoJxyM!t@4Zjc zbh-D{YpXXck`dy5MYDB$n%m;N(Io&Df%r9&YB`wxVMG(Urx2(Ze{hglQE&O2@i*9-U%>cR^#Yh0BuOM{SHR^VWP1IB7dp$jH zNm$>NQc}LgxaBZKr#r3K={t(!UW!d8l-3Rsj4gkTbnv$azRkeuTeZR|fX2g6% zxc7$kl9Ds#A(anf2vHa@rEC~3SX?qYUQAz}a^-#S25+@5R4l0SnWuu3mbkhT$?Of* zQVC9PF84hwMRs1?dAIEwmfrcW@}M~Q)%k{aW9vz0 z>*r3iRXD{Qv-nS=&sIMw~npUk2W#-Jk$DMr(h$rSRD(ARMSnOenwaG(rW7ieEPcBIFB zouuPW$8h?}s~G_g%5uBMZP!po%BA zFMB7Oo6OjugDBm~y(EvB#`zSHcaq*a1DLDDLbCHE1G$4GPsSMsvjgMT@nLM$K1TqT z+(b4IU2ljkZ@eO3I99YiqZ<7j9820Bye{bcRKs3^9tb0rGjBECPbS*ob;12KSP?k){3f&i`R8_Mm$aGuVV}` zqX-SaC$DW%MrO`T#a?1H zS+cMX>UcsRNH|Z`Z|fVW&66C%DpnXHb;4rm#6sYZ@6R^@Vtrn^6;4g>y25JbLW#L- zhMcNjVIcjz*EDub9A+s*Z zd;k)6A90~*_`bauA~w%W^~*vg31WHYaEnKQ$s}yb>SI?uXie~#zXM>ylKgNI_54M3s(Kp%^cKmtyc!}WUtkDuICy{PIrZ4On6CQV z2^=900J&QPzwhKJkC4;RLx;cn^j{!F3bm^!(?8mAr_xBt9VWFdcs{u(n6W`m+_Bk> znh(aXK48fQrcX>C||=3l5N|F5qj zmG5dxtpZ9#(_-B8_10$wp`x}JF>)iV&v|3Qkz-gS#E;jlVwR6!YnSsY&|gU3VUVuK zp)oy^TG)EgK9(}MtnoNl+|lKQ`ZSBz2Au$+7@sh_MsW0MkHc(ad1!91ph|L*<=(?u zPZ9^;qzcc|3Zd&3!@%=m2`~6|gp?WX_Sc6@>ahQew2^Z5zHpW2U^d3U=Tf6o&#~ub zJ~PC9V;8b@)sfqB+LPv!u(U5(Lb*2Gpt1v z_#DMKF0B=8v9@*z&DV#;G8Hx{V)|cM8wd@B-NeP0hmrgLq8Z0K2q0b5yS{+H7FStt z`}nA7sy8VoaBl@iev}!15JfxPZFtwE0zCk8qkCPW#;azTqKPK>zNM_$uL=8sK`{sW z=jR<1xck;kcG3s+K03zGSXHnca!GiG2~v-PTq_u7d&F_)mO+uB?XxMIVxv?B5ug>~3IgfL@{+X&0PxA? z|L-uK)U7|(%pN8Pq%9;+PGQpf(CI2>Ab{`*IQ1&xnHsUyT;EhDta7Ohru|69?2XTF zVD?(u3d)U3^Ie`;DzgJLJ-ARh`xDRf>paKl&W@U0cfJ$g<*Z5!od7bL?*d|`+H^X} zYacfP-iU#Q*$F>s=N9lJcE%@8; zGQ@Z8tl;n(xkD=L>=ptAeep&%ypDxi!8-{pnSxTQcQrx+NDaXDFwu%*ZjEuAS%XAd zY5g-!o4#oOF4%UoYJNzoSeFw*aT0mTw-7;Bj8xNK@$U2$X3lvRWFb-G|NXJlC#% z9zM6d9_7Q1e}~#yfBdL!Ha9?Jm`$ZHx3hS=l%pL_i*5`vhVb2ig4{z-xlh- zZa@(C_b6WMGr0Ix5WIy;#WVZ~**NhiJbcGzh2NM5M;zW2Sot`Z^D3xUD6#Ziv~9;u z#|xc$smvqB62TWzKDKwb8s%AYZj12gwJe9r>_xcnwY*JFrm40?EUq6tc%$z;{hbR_ zJVInUbNmN$b==#KKCL?NWx=i1vwRTlnCIa&HS1&K;Ayl~`f()7>cB3?m1?2#@1DlU zDCl;5C+!_1|2&D1*rID^U2v`asR|Q8#yzH=;C8pqrXI+7xXuPfsYFqE9sY7^<&m}1 z6^vgvm+9p@tFxy&qnhmn*5F8fsGx#GT#yH3C@eTaHt20*FroVqdC}IE=1FI8)#gW_ zBdxWNhtjx21|!YjqgW@#kf4y!P42Y6;*C66vS{{-E!B`)8X5pHY_Fa;}@cg3-;-=D(>)9yS@Cm@xF_Et% zZNL0LA#qnZ*KcnP#OEvU;}b7g;uxDh|2vd?3#t50oD`18+i|ux($8+8x-(6Ded9Z@ z+~+3B_#4OV+iy{7;5YtK>f>yhpYyuWWxP!D_I?fX*qNf+GFN;cz*6@7O>B2hKnSlk zJc7+eF+Y0YBvH|jw-#o+`+iG{G~D#yYk3CbfNX1kM=d! zPTy##fGLMBXdo1v7q>nXLyF!6G%523{(5yVe#TQ8x%?+Ky)0PzVGujZLAEhllG;F9 z&&Xf((-of|hVHRaBLe`+$;t0Cpfh&4uWhzgGw-^&7%R;dgn(zt^+2pC8O3a*)!++E z>EfF^;|^2sJfP6Z$j`Pf2!$)Z1BeF8PbGgMi7FI8z3!3{lBv({BfJ$&@k+yGGAoek zZWlfaf$C7{av|zYtdEXLkPOB`!~-9@_LAjg_y8;gRKb{@!Mk}OD&VwTEz#y(1~Q~q z&f}7A!{!U2FBRq0F=lRVq;1S0Vc6Z=4@1CGDD!kJ6k~)hp+_|UN>7RKy<{@G^WM^J zPg^1AICNph2~n2)dU?1(rMYw19RK@Q?N=5+-ly0 zNvWm!#SFZz#1{M!^0bFX_&>Cue|wCdVQnFb8ciBor(q;Cz)6R(oOyvb!~;7`xa%g# z+iswYWBMzEC8)Uhac@iE>=W%6U6J;GRLerx+~1(N8{4 zl#+Ho7_bd39dw)>jb0daD5zIu-*U>Ui2>cYt$KSVOLbaYveN__3`pcFOh>p~+?5xa zpOUG;uOwMf?ygk)!$elK{`lP|S-`9;MYMXH73Br4TmeUdHRQ=*st&n=#CIHUc%?tG z8-aJ-ZuX7Ov{-HDl*;Uk&CVb;IMTfiLr!A$H-r7<&d8*XmrAdeh^}y1H9qT0(|qq% zym8o8aiw;Kc&m`QIIpme22?nKhf`^8&8EkFTN)K4?V^y{f@Wv^w+@Bd|47)UNNRur zi}@w1D=Ub#zAHvsp-O?waY7RMfsmWci}cr^yCJzrr46h8!@|*s>|&^!;6pLPnkpw> ziKIx(XASD#mTCwluWgd=&$Big7fwEOoW649CF$1*qH((NY4@?Wqj4O8ipbWOpezHV zq~!3*ZGP9=`r}%Nw`lTt3iN~BP+)zr1V?WNR-mLJ-^lIf6u?myaGeu_NT!0Yz^bGA zqOi`y2+i-EDQd5k9Sorh2UhfVs`uaVzZ{p4?B5JL7hm@#@%*mfbS2p^a-zr>@}?yv zKr8r9B14hl9lHFA-$m*j;%BkKT5eS)JyzmLQkR2Z3N`lpVG>&xeVSpx2Rsn?rz5&qD}MnXqCLm?Uf zG3EadlNT>JW5T$f-FNv39Rhx#Btb3g+l4}41}(r%)`unEORAHim=Ka=W8EHpeC^q+ z`9II*q6AK6tiaU8q$xBS7{UVD@b2o&(x`#Hh*ShoNRf_2%h1;e!Mdrh0!fKO+yxN@ zC0#wm<^brca&2?8xo9Fe0Uo#YldDisL& zzfR~0zD(2wJgciF7nGv7cjzocyexLsa-TvUgL}7F)^`6Htko5KCiqT?1)Q|DBgoci z5@2RtxBBaO%7c}dKb(PTw8h}|M9F0a3Ucw)ROJDJnfj!2_W~yIb#qoXg8HKC zzP)5^&$yYc=S%d~Cz{^tcUK87Ae67uN4;ljE%MuH@Y&*#nnWgGJIG+i%}6JucX-;G z1wZs|39E>NE}vU!k%1^QQRxqR&G4;&)=Rms;KhfIE89tUNf#Ay$+RN(Yc*_ZHgg#c@OtIxbS3CL=kO>EN zrd!IFTXUwhmprUP;)!T?gRs#O*jvY}-CAkBGn0R96$6R4=EKy^{5Mk5DX&$%QjkF= zpbXl!699ZVS>LS6~9k4xw{s{yQIg_o>!bkKglJ!TsH`3E4yMDYAy+OcHLF%$Cx zF31yZ%l0b6x|;V!WbAGW)1zS=NUOt5rV+Eg8#Z4Sq9{Wr^hzAq#OQ(15SEsOCW-FT z7G(B50&rjM59YrflQNhry1moi{O4f`AW3&+f+?Mp*ZS~{UOltQqbpyHir?%X%W^W} z;=@~@Ai!jb@X#tp_Sb)GoUw-)D2XKD16t8t-ZB!Hz#EpVDw|0O0&wJJ-I)gv?K(FA8%a5VdUK7?zo+_jS8*;(AG`a zP_`gohjH;<8megR(zRO8ZlxirLHo(D=sSJQb(rNPziK<{3}I^Tl=6L(rk`bANZFp#p}g0pMl8CI zrkvDJUleRBFYeE5j~G%R#+eCg-KqKfbqqieF+fj1D#Kg>2bGLLaxafd~iCFkp)JNS~Ycz|5Un6TQ9o0|F?< zgF5BfbhmM?os=W0>+@*@<9J&n=wE`jo1M!MgD^NtZuimPfxvi)Xt}ata0KWY%QL0- z-qeG=HI%cdS>_QyH|{GdEO3$vb|lG2j%2b@TqBNHmEmT>y9+-8ER_S5_#l7u?f`n? z7Su@Z%`vEyaSz~!{B{H8t{kWHw!^)Da`CwDjvy!`YG}Ib`T4#2x@w0BqGA)H*q^AAFp`JP3{gjGGA=G$+Wbe)$gn<#hB- z>b6>}D@k#o!_q#^vV0F1)PBEl8A`mRrHfa@Brkc0_FKe(3(U zIlzCAYxqm(6CH-^*M17PJ!TdCdhXQD)E)AYIv7r0ZTTK)+EE~M^V+bPHwDdI@ec=A z@Xh5sQWY9E&k#HIC`=WrYcvWips+%TDKB}gn7gwV+};Ii ztHGw}u(i`AutR&?gWoHR(&xqoL!ay<;$R~DzYdLjf!@u~B!yJQu=r(5SH{HO5$Q+k zDh;QyARmPwvcI2}7!g1>AT_#lbWB23nEPgP_e9wN*hvsp0Q>LWgdvRp?K{yFBafK?}Zc>`Lt|CD0$$7=RI24sY zEkEJeU@c6_+~v=H*x+!IzqkEsj$)^e^ic_^5SLe(Lxv@y^tZrm;D$~FOlay9Lf+h_ zZaVzu@xR4Cxx^1z3)@o-5_wC!>!Uz3(uCwhhKBFMV#!@gBz3byrn&wT+XRY&Aqm)R zf@lVLUSsshNY+#E9|?dvC-vZ~T#m_Ds88td5#6IL`T*OkmUwp8|JWuwHXYt2Jv=7X zvP%52e=m_z?e~``9U;oBuvQCzUi?R2k{>zN(}0GKj&NU#kN($h>_%nTzx3k!w$r3h zpk}7X?=eqehJ66{c|C#8siYTbDs5O!QJs&_z$Tcw5TJ2{l*VA^W{ zRJVQyCFc2Ke_sd8xv_-VH8u%I}r<6Ka=DNLhdhYH0+ZnbWLrqVPj z4pTEp|1n!uu1yNqU#LerDsq+RgU5k&z|?18IpdOojpdFhXfmU_kzNOQLxT*|7lKD{ zY|&je5s#1Dj8v7(&PgA+i@N%SSY|2iC#OTby_62kuMZq88@?2)m>Z4?a!b@{QCIEyJefp0L z1JaZH0;1rd6u;pzooA*0vMJ2ktTk-%uXLN$&?m1ZU$zhgQ@Q+3u_zbR?V+?7R+0vz zV=d)rodUaOgn^zQ!0c~tG&VtsH^dNDVQRmuRJ6|83-kmH1#4mySb%^N(Vf~QUD>HD z5XOC`BkRxqGT~*(sIqncOOu8PEP08tP^J=~2%ch*lM}qblr9GDegjI%pcPk^ zC#4ltqtu%v1?h+xRqi^5__WV3KLsRSe{7J!PZD21h1A;r z(-MS&N%VqZaNhE@FaOgLl$1p9*Kz1i1IXiH`$!=#hF;=DS`j&+KiNONWsDh!NijWo zsFjLVf*vQxGR|Kq+%3 zu^Yej$tL9sp6C%p4sH#HVTfKjm?+uB$&8Q9UKII8pZC&NXUq3j&h4}oi7G>wT1c#` zI;~LR-c!Y0ZTICoeYaIaa@_zmh<%{=f4AP3AMxgh7QIb^V-pg;Q)>)#NxOWO&E={-rLOnW~RR;y03I0@mQL6RstWSBDC0=M4K&XPi-3*vkI#QNg+K|mx z4iz5qeZLHaM!a&~bcqB39F91X?T0#q0b5fM11IDXztW7~8$b~x_nJO+3#e(T zbeuM;rZg200G1XNB&@&=!NRd~M+a~%NYwuk)Tc`Lr z({fIqHt>K8>wWMVx05N+Elw2FTs+K?goE*ggYhjuvwmD4 zfD|RCI1fX%(&98MD{g_8m-_x#Lj0V!>5zUzBK)-_o(?)uOEx2;2)2bb@ZTX2| z32TCxHVf}B8X=BzZ}~P!8!N7sQiZ%~^hgG1(~!NoihK)?dg9*!B8RyFXbG2-f=bQ9 z68WZ|$!iy-y$vPdxo?=oC0(-D4Yo<~`}RkuX}&E*#uOBB_4-$yvE|@pYJ~R?cjeIP zNp(@YN3SMNQvN@=Iq)l<4ULcY1^^msJ$`Qs0LJ418vZ4I>tq_e?d9aLG;YnS`x_vH z3>v=Z9D#e)z{l4T8}-Dh-m`7z)Hkl{HfzxR@?-mYh&CT6!FjaQR>I$xJ>|`gl};&{mOB95Q#ECc$tQG7{z}rzQ{eGkVJVGRcfVIS}rBc$a}PYRs%l5$>t6g ziQb+l-#o!pHq|juA5?2T4XH}F&>a=>7%x4 zTf+PEJM&%h&H6eWBS#KGa90??zIY*8ssZ?>S{`1Qs)g&%ZiYL=0eX8=`{=5MQ4;KV zuym-?w9-s!rS;2r4+DsOaZdveB+bXZbF{o}x`_JDVXnWdKDx3|x^3$tIan57w)nI} zui-L9V_maU`|pwgCeWdYWa6@|ng=54AVNoJ)c+x(J4``hYO|LfEy?@+d2#00jp5ow zk*<7eU!q+J!>xiT zt}AneL}W}7o(C(cuA7kj{^Vy4mirjadn!`+;lDY`5SLY*TpnF@sbM__-{V~(Kt|Tf zT&=HQsd%H(ps#AfN?zZA0+W7`)XNJuhzA)YFU9pX5S%f4pMUb5X(x30)$p8?&xg|| z@3raP!^O?rI}z}Haa_|@=6yAT88pLlnn{eD z0-o0d@TQt7b_dVW;9L0u>Q2Q%T!T>cpo*(W_fPZN1etC&&%POymfHwKFW3mP&&@FV zsE94PjFvPUeC}1&bJgAM+wgKiSL13ny_}A)s~-Rj6JLmhb8Dhiire8@C0ZYDxeZ8W z_^o0)nG3cf;>`PLEAq#&cAjh{>lS~$&?|2PA?A|x#p|f&HJS9~oD13^pBln-q-gI7 zh}f%8ByZ~kJA1NcQKdJyUs%up0paQj93Jt3&y9%H?>=Obhq8Rz(D}nCCliwG{)sx_ z{W`1CZJvvNe`v^c#?E`=vUsxQmus_2tt)~a^)vJ?$A4!58%MkDvg$2~LlKFXbf1|e znxj2?0U&}V6p~Rt&Y0^QdL#M?Al{E63_TQ&fJ)2G{T~gUZZ?O7B4v8mXmmlYxzNIQ zgtyXQ+T!sHbNdKnh@SId?a}O?KWpzOq+h<5Jq)I9YKqUOMZ68#IIY zOG(@5066KNKyqGc6BQ6}S{Qkj+5~63{+d%Zg4=1+)h8uqTVn3EmJlUVGFdD>Pb9Jt zc+5GNS#M<^2I*a5=ze)k3VF<&Rke{k)Dx{LdIsj=Pnn%wu>A3E*K20zuhx%6j|%96 zDATY26I$T1$Ehecuhu^+)vvBNLU*RY&s#g0Bpn@P0BZi{(aN5o`hh#Ut+1 zT_F_j;Ab*9m<2h}C_JT2hdgQC3!-@t)SxtKM)pSjeGV00ygWvG?9dLWIt0-=A59}( zdWJo&W93cI--%nFodJ&ivTcl4jqC0Zl~wUny_rqbVNb{YZm^hKd9tx3t(WMa{`=bv zblHoy_t|IRNQf4nkw5Qtz3B3?)c_q=T=Cj;*|ybNcstC_{>Bv0R<%EciPHet6cnYw zfYz%w*LZsvJukn=jmwk_phX^pfXUBY=#OaoqVm4JaWmU6cZfZS;AJlCF-p ztyCabd?$uK6vmg%G}`T#U-|~P5}L#!yaz%+Ywp1b2?3(a{AK?M7}d(ed^9aZ4taD_%Dj$DVP&6v8L#Pg9bX&I`200fFAn0^BT?pWL$?n; znZA!Juh+d_-Lu)e-GwTRM%%+Uz9Q~2c#R#$#xKijd@uSf-EoEj)d*7R)EV@@;r%g6nK%dl< z!kk^VRchZR58o5h?miUy{J;pl2ox&;d@*5|o zX21UP=c$AWpXCu{#0T=6Jd}ekQm+B{{=3$0gsIId2TwxLp6-)EKDf#6si3l{UV>!f zPrM2H^%EH6`yp)c*>Pkv$LD^Jf5MF;$rKOql-s+iB*?B6PzezW%OPYbbD`Bk>0NNiL}M>tmyTZ@=W~OfB}rH$9g3@K`~rf~;$6=`jQozG=$e z8T{ITwb>V0RSMv9uKyx~Ug~ozZfUd2#uK1~B8>rAM@CK!Mh{Vuk!Jv8g|B@#ojU^} zH7gY=34-Otl}v`ue8jRk(F(SHZ_m$shMAZZH{SpF!y6b~z0qf()w1<)*=!cRGZTN* z5(enK$`^Z>04XpYD11g5+IQPZ7>SIeIGpA6-<%O46m98fS~XH0AiM)3deQnb4g4N- zgH;s2fapK(qe36;Z4Eqs6!%=3W@DE#+>r|srIj;wba`O9J#FZ6LVtaD?@Z{=q*j@B zq7oZ>OYxL`Eh^fxgFCZla->=*Rr3?QrT;#V_l5iR?K)f@8&mE(1D}kU)P-d-|5V19 zYL$&jsKl%0|n;-HlKBY-*I|s0mQavHNL< z4nPEbtxv25fzb*+gDbcZy zXHYymc8o5}sq>&~vP9AkTwe@}nz-rpXZoF6zK_2)Ec|p+k7;Eo!5B_D;`<2&wl1!0 zuEQYZgBzg%BkN)b&8s@3~%Jk_MB|0+PU#ug~7{%4Jb+&itr@Jai0V^>$%(|sNQqAs)(G0Ev`bQ^t7tV$q=CVEiO zKFIP$675U)Xt|ms{miT8 z*LBRV0JU~yTw2xT#=b4#xWrq2Nhm?qr#C-YwchNXtfRKC&;N55FAtR0VM$sOGRo{d zG~ms|FSBy97duM%@YXsSZUb*9P%$J!`Yi`4Fexsdx`=xKt?hOx1nIRTx6s)J8{&!5 zV%$sb+c#8dFCYq=M|Tpfp{9|Mo&WOQ1|vYz6z21P{xtR)He_@rr;WQFtbl-u((FAf zLP@5|Yni16n|YsNe>u_V`C?uAZD6;+@ReiE5Zbsk-#cg_k5N8f-rJhz0+^8GHBxhx zGZf}Wd&dBSEgfk7TNMOvsq`h+p3id)Ucb9@;N4Nt7>PTWvP>-yH~<^7L;SC$%&uj| zQAvlHMlRmEyFl5!`NzR+#=xyxW1nqVLr7!n#5zSB73Cw#R$(soq-|B9$pjk`YUR88 zZ^@miX*DnsZz$!m^x(`xx1zSesEzgT#vLf!NJWp@2J+QMmLKx*hv_B4uPv|TsPo#C zYG&JCtT326l(?NOt#Uayi4vP+ zcEqTGu*oEDUmq=52kK|`H-&rl*4Sb3!qIG(Pn6dNQ-e~{7Q0g->(>YH)nEOYVjY^T zi*8_W<86e_V@a&h+ONO9q8^AOdxVY_>ku`Js_`H?00V_O12PdLCkXY&1ugA>&A;wE zP$KcqZ7>ZD8~+4`!&TnWW{A;8O`j1&uG3||V^s;3lI{ZjG$69Mb@fMQ`~MO3-Em2N z(f{?avMKc`GjmW`S(%x+7gm-w9F@6eIdkD&h*XwlIWo(IBO97KCr-#nag(Xw0#w{6 zxBvlx-_z&&`~H6aKD?fXbMHOpea=1i-1lK$%f{{ojz#4@RoFBXh$8b~1V4wRzhl`P z@l{E0R8t@lcws$VB~$)RAl-uPTCaRm{s|4k?*9u=sU;)LcD0t;c`w(gksTsY415pO zz0e>HR#6=~WBb=EQwuYjX{42jb_PEM7V+venj+c>*E@a8WE=+j8{o*Bm8{dHe~`wm zX2`5$nkVcJx&tL24rX-$qgB^Hc77x)8vG#H#Px_t-o>!vjtp$OcK70|WEGGLDOZqnTgRowD?yft;!j7v$c$pGynqVDKMxmi#wV;tg`y zcjCnzFodoQS=q}8B#j+o945+9c!z(HKdt=dYv0vgU;s&)a(nb^Lw1XP+2@gu&PRy# ze~0y=tglJD+tMPbqA*D-ShY1#3ABd0%r)P1&% z#!K9jDRR>{&wcGW^3CPxU$zI}#lKi_+UF9ZbS!xtkj1b?BlPHBKYE*3+-w)xzSgx0 z`1hwvz_tIRw?K1UmjL%W5d_J%mx z+sWAW@1esfE&54V2K)9xe~a$zmdBD>4=0ZK?_JYgRD-HSX_b%uG%t)?ov~s8WM9Y+ ztUn4$kJ`icF^BU39k=yA8wrcLaa6OM`Ep;=Uu_%)NNnQuAg`9#w^iC#TJ&rGIK(%G zKB(hHTIo1dY(I&?#iiQUJ_;{x0tV&kbCz+`bjbYrw$~=dYg`cEx6@UcDh%XeIj{(0 zy%q`IA?Xz6VICQL47h3LxsAozesY*7C)t{mTTj1ZTKIj6)5+l9jwa$g(QMq6Q8**n z`G%zb>xtst9_%wK5ZDl)npNwt4XeaL%XRG zAv({89E3%TR$)N5suI__HBXHrSO31KwM07f`G0c(WaC|mrB}X@D`Z^KcRts`FR7@? z^$z}cRcSBsxU#5&8b8ezoW{^RR4F_c$=-x{a^AJaY9u{f(g6bpxl)A|C8797evrnexk|LsRMhE`WUl z@agMR;G0MN3U3|V0gJkPIu7S|&ieF=DUW-<0v zhT~di#e9tPt*$g*u_Y@dVeurQOi29kNydFzzIvwjgNf_3xibl@G?&mpNG(`Pa=SCt zs88oYvUe5}*n1Z40cXR1rTenbyiQ;q{7Do1s7~xj=I&1o0$sLKlIqs^@r|E?zvfu* z*7RhZ?oO}g9nY81>d!la2U46Huh#jjdwnrM&%#;kw9iQ7nDx?9 zz&;PHGi*slpWI_pc0!AiRK;wxsnySA!ao{0pR@)Vdm7G%m2_U#DzvXV{PT4O5oB;> zjeqfa<%3A|Ry!p4dvzQ&7%A^l{_jRqdmPC+#`u~HLH&<` zN|hV!iFt|>lmyN39Ygby<@hw@M&cdCg;q?B~s(g z1cBmW9CsJ&#`sm;2ftSwdwe-l=AT(xegBY2!sg1wgJ(bQJgfFm!Tb5Gg`dN*3w~dd zi@t-j8XlK{cc3{t3(0Y?M+*KK5if${>{bGObTqDw%np5P2|*kjd|7+Id2n-{@XX@s zIm0?1J>Szr{Og!5;;D6F@=6&Gs|ARn{*T3$ApM@? zW5Q-l-|PWJRf`NoJBF>wz8eZY<$({*HAWj{cyk|K9?4c5JEfevQ}(PSgX&SgKlSEL zxsG-&BtH`TpwsBiDr2{)7a&cfH~(P;W1!1ceu5t^5(t`w`daeZ{qO&;?-KvM2pzLwZA}GIm$+4l`#ck={}6y)(xl6u?01#X;I8 zPNuSfrt8m5bk8aS{N{+jo%ib6TyLT`7vZlf#j9VmV?9&5B_rEQU&~J~-vOu8nalGC z{CFbo2Zo+ZoxHsMDzG>%Z)Uj8ebN}@)~#M>*lwkhswmx_&*IGWnp@Xxui zQ&pQ>$n+b;a%Z={=4?)6-Vp|2`|puE#K&a$}Sa^cBSSXgG2 zg)rAjFV;#l0hv*Ha0 zni8jS-MGky_vyK)&w&$WEg)NaTH&#p*R)+&+)J$kDHGZ*hdliI(tLA`=VYZ;)G{kb zhyPG%ydU3I1CEt0Uehab?v@U)b*@!{{b~aurrGS5~N>GDD zk-!hjnb-zt_V(bL26a9yJ{Q&u0OQQ7r-P&ojpLe3fM>pywb31;yKXJ~YQ6tFSNf92 znG{7kyxkfjf@8BI#G?#+FoFgjTs-}*+Rg5UdpQs56|vNq+h{D-ZM=Qp(R_1xocvb{ zh6vuzFw86T;q>%`t^T+U;3r7!{f}UpVtuR^ zW_y8YXsM=yRAUyNVsBA@h8vt5et*v)$y6TDbI{qr4uz)9ESexg4e~Cf-Qp^zsEMTX@S(y)Z!C#r+ ziR|qh<_|7pg&??fv{~$&U0vIw))2&t`{7iDvi=lC348m1-2T4zT~QLvI=7ZA9^mr@ zYEQor8ud@^vbAH!ReC0V9=Hw6Q%nk`UA_)&_G*%Pb{CPmNBKYB!i409AbeQB^^EGM zhco*@9>C0!V5V@5^{vpS|>XlJV zFl%enKl)~`p?Eq7rhQH3Y@0=s0bqs2#BIeWdUEeM8x4rzkin<8*+A=a_oyzcvJyDp znVo-@^Ob2&uj{^XRW7#q(L@Kic=n~0d6>9e8{$H8Yoq@V`2m^}%c3K|d<;B@7J3ux z{rXd^B#Jc)nh zu5-VX-l$*gemP>K8f|t}zii4eF^uZayTsd;aJ5uXuN`W)h9g@3}aoT^g}l9o1SQyO!Wtcerh_oTuWwi&wZ; z5AcG)Z8tjN)0b~t)*89xoc#2wtP@3a6%ed3j0EoT-sWcazTl0=DVpHb-d#W#FxluF z*~wKrOysYYt{IpvCo>msd(P@g(l$>6?%z`M7gA#7jwr^D^YacNH-o-lCzbH_QWW4L zbu&I30u*lPc-~tv1{d;Nc`IAx)L6W`uK9Iu{?h;&O|T-ln;yTs4`TyBLsPqUz(LFD z_07T~W@72p@9u;VPd)uQ?IhO~`aDBz#L@E7k=GNA)o2j@NJ+csw+4E0$A6->zxF83 zc&>f%Y+G}hd=(vpxO-<@CZl94+zW9cPhp>fV6XKL?4#L9e+BgSceN76Z02{D7T>$_ z=ACK2vOV!pz?do8kdrc_SODXL+aY#3_!~eu>(1!t#RzmDF2KWcCw_LBD|82Zn-H%rv0sQpAhyx#e z*8MKZc~$UY_8uLI1PWsQf)a`)st%afZ)0QmdY@kH?>31?0OL&WwWodXBDtl=~OOBOt=_zwrR(KqcAuHAK>7wy9j+p*=pq&svIi2TVW5ok+t z#UG<;qxiDzFHT_bD_6Er>-xMSMyH%*4m#1~fBn_B4-1q8>ory;)qG8XpL_UerdP z`yWt1k#Tv4Zc>!GX0W;4Ki&AOl-g*`H=3yxS9V)?Z?j2wH#uV&_2^ln>uar@uG0?|MA`S}7qoS@PLJzCTE3NdzAG@4*g&1x<&)I40z&d2`<&WH@6| z`hu4p1#f)`!Ec=X|4OLQB0cazD{J66-m=@26v)rpT5U6E(=T8P+8Csb<$lTFKY{;- z3_c+6pB2+mvKL)~#AoLAg~m)}`#u``!Hs{@effWL0TkZ2jMaV#VFsCP1;$L$M0Jo0 zdeBo{;*Og3eRpiLC(c)FA5PCbn^XMe#di?l%&`d1=>Y_h8E< zki87%Z5U94!m~Or)IDoOGvNpOURt*#>tAdAcMzYlD4UOSoGjm@a#M%G-$8$B&xKsKkJ?di#9=G4tp-PK4`MaC}_#Uw}5(0rv6c3G9BnThSQ zuS(zg+(2h(-FD-+dM~8O3-4SdU3PhY+BJ2I0i@x`>PbF&&LSn`z?m`Pfg{3r!s(_Lln9dEZ-!OS><-!^a;Q;%z8v?C}6%9DY&bS9^9)^DL$sB^g7W#+U|v`nbIezi?GPEM!J!sfnx5d>@4TdFaB}O ze4k+%nv^4aatK@>Jka&^ZrYL0Dg&uF`Qxh)h&F49ER(Fu9c(SCn`(h_#{AHH7i8K; zIbc@$W*DQo5B5JYP10NK6%Cy^)U(q~?aI#LvmJkEiQhJjLT|xE6-o=MDH7h>I$_-RkQuEeUU1#S;-e z<58{R0FytPJO<^_#%J`N8HY`6ljSDp0m*^jwjBtQx4>R{h|(7Cp(Sdj3Ut%TKA-58 zXx362?M&bugmssb8M_EueezKL3+8)O-mAe)=t%Jp4Ud^$OY}8W70V78(a}-ksx$>* zy(wJsUHmy=i04|TuhwCSj1Q|lD*ycR&6$kTJfo zdoi@dOnysx_*bq`C^(?lU!I+0ati6K6|endH3ae4@ka2mv2U5+B8eV7`>%z*+=-+( zw%JF7XXo!C133l!G54^N$zCF9EuX5f)yCSXx2~mv=Ft#!QX{q+ll}`YKOd>`uRCN+ zv|o;px!17k_a3Y5HJd?~?cnBz#r}qwr+!YCi9EkgHBioxrijz*qUqvuiUY!2%_^u* zRMaQs2l|?W-@htY9sqrUd-qh+erch@aJjnNfic5UCnHzl=8h@K91tjG$j8N(79ISx z2(OpOI%Lf+%qYBg;puqFg}D1^}4_`WU;lhc>OC|hOf90v#TZ=N>G^fqh z5<*p)H@AVu;Et!uj(O-_2POD~j}6Tk+=gR4oK^~YX~Z&nwW{FG-v@bDmi8I3m(h&e z3ccWtjO75r2zLoR18w5IUME!8qkZ-y$?ATG5?$Evps`$c;YaBFPo!|8F(@&GC1B=l zriwyNhE-Z0kP!EdXCBCoptninHmz=0$n_2l7RV{yho^u3ISu(G=a%N==vR(+b zbIN@g9|z_B%5m{<6g<0&cM6+*J))nj8@W;hjha+KSB4)w>DB(JkR@75F5FdUq54bZ zpP?9-BW)D9l-AiIw^;?Lv86@)CUOO&;5_3{*PmKWT?|g0*+e z$YHzF_p4t=A9@%k26WS&&^2P+Az9{$PlGqkz%FbFxz@6d zERSNl&8e~;jX2AZ#Ta8upzKCBv7VXJ=-&Mj3LhA?C`qe0=67S!Rqm$|8yx;Keq}}H z#k&rh53E^VzFm1Ucj|z*r3Pqjvl4D6FuWiw1KsLWNz{+Yxt& zUlt6Ufc>K|Zamz1Gkah3T<=`DP3L3YN~_^qae!S)PD%a&A!j`g?U}h6tpHR9k{GGN zaQaadjru=3)4M#Q#Q5l#pd`v`gugf&rEHd5r^j%wku! zMs9;w=s{oZ=KM2xI_Hg&A9LgP1F`Y(oB{P*ME_2xc95&)h6pTY~-Mt4@RO2C!CBF40X1{N~55zQ(0LOrOoUO}Q{Q7mw1ysH&#6W= zff=Vf`8(3o52|&T*>`MCX>6QC64ro^iglhA@OwsgWlOVEek+W^aA9 z7g7*@qQRTb2^>`4NP^F8_3w*ekceJbh#OQmu_9?#zC}Gb9=@K={$8T@eXEyfk651Z zPWZ+EOWRhuV_&Oz$KmqGTA}r?3eovNkZ^toV@%W4XSm}{J32i1D8GVZU#w)Vas9$G@=E(XO3&qUm`ko5$r<-e8D!}j>Q7Qfx%5iLP))>FkGrmrVS4FzA! zX-_mJdrI~8HAqxsLpC?QE&gqoAPhN4vk8S?`K$8;sHq7f;>4g$~!$_!GevfLG zOr-j5;(Cu8GAlh2IwueRX?zR>5)| zMOPwJ*#qoo3S{;YWt_865uHbR&W)u6FZ-hGYpyTjR=P|iD#mLbVZ&q($WHD-dXLxn zY+|y6jGRLkOLwJ4zYA=rIYLijGHD8WdRl7Bx~KIpdYntq>W3F`!GQ{c6vypRPm{-!1TY>asi1*$r#zzARE@QEy>FX)qM;t`Hi8Im|@8c}e zSU)i->!KeZjtujK%9S!Gr#<8@Q@@anpytZRZ00NoX4372l`%xp6!@~NJ)9$s#vE^$ zAEoH{uhcPQZz2gDTi$++_bGi2c2%obl%swSzl_4-57K`ZupJjU$ktl$RtGYS%q8_- zs@X1sqL9BI1m8exeFo=`sn@T)qqKx3GFQ~~(CbJF8A4BPXEzh&*cA~tL~}TfNzpxl z3noV`D{9zZdF};l-qvXP9CYGj-~`Z5aXcKmF|8Q3e92Efkvta%;W*;=+Q)cbiZq)y z+0_@7OoFNVbf$qQFN$bTnsGg=qH!KxqRV~V4cVd_<#DQ8(0+avS-j9vm7*by=8;mb zY@M;@fPF`EdvB5zFCw)zJDd>Iu)h0WeUI5R1%x}B^*8w{g#Dq5)k-~k%FKyw6}_Y< z$D|Pp{kC2)Z+KY?J0gfAP54%9QzQea2^}4Nx&33^@~>_kKbhWE^Z+@UZ$k8yyt6rO zPDD&JA}g$AOtV_60h2N@M~#P@*;EW_M3HO3>=23cQYPhRR$k!G+2bfhq(JGSF3phK zYiuT+^MhMu@4mUFU;ktUNfEU3$zF8VH~Qxyd_rYTc^~{0h5eAO;isTMS@VFUqDwD_ ztW?IaFw}%kUm6ii4pfV;6X$w}@?*hHy?76%6P^r#tD=+Dt_*&6n{!&w$<7bbUlW+X z81EO%c|YO^@OgqAIWvl;S_WN6O9twwIoLHy^=ExG+`^wSzYq3q4rV&&4?xOU{Ax3~ zP#hFzqX;@!zS?g;NmYZKe!#zuLbrZZh_!y50IBv+_3e5b_?W^HW$AJ@f$Wms_^7QI4Tx$ttPuuH7FPj@8s4 zUMONlB`?z7lR1M4`)UgkcJLA056g#dhRkgInjC5WrnEv3QJ@G?)`yp)xbx+{iTEsO zZC)9pasDDFHb$zVIg*+*CgRcvYyvPr!le7z5v>*yMJK0QhmgdJBkGaY-?J_`O4%X= zH)*~B(q?{R5ZUJQvJ~DA4OuN!y($jL%I7URL!d$qWWDBrRO5Dw5}cUPE*pi)pK6$^ zIXv81o~ew@%omFD|K6#uT%4^;j!bLN0n)H0kjI z_f5st1gzU2qqiVL2ZCxcr`Tmjh0?;nqdLk}lYhFIr}1khQl`Q#vd8r@!;8Hn$eo#g z232smo9kv^8ChGzP%R?`FFwFShs^1jnVF_bEg`cd?Soja8vps6OyY20VY1T5C8tK8 z@Nn1Z4KR~NWX_UwA-38vBvaT zUofCFP=Sb*z0$w%%nf@t&ck~|-N#l>uLym`X1wmLjyu9NK{q=E$ zOXI3bnC)}+I+H$AnQ^FOhrpN8hi$63&y!UJNca(LZ3rZCJ~NJin3&}E4cy?y{283& z(d*stzyAQ%qC7ODi{@9*8xcP0H6D(~WO5dzxXYmEhlmo|W;ql-0|iqeJRf&<^+JU| zc$dz<9*{EM2i9cdBhheIAxa-Mkd&YDrkpeH&XK2@ZE@1U(uz%Y%w1f}RR+w)g@Z%1 zt}87nb=j!dT#wg`31FW>{u0@Y%Zu>0YTo>67#r!c_8ZHFj;TOu1XC!7k9U^hh`CLH z&am~Px^{{gQ4`gAEVPOe$02BHdQ%{Zf}ksuxwR;|?DmqMkvTvp@0m5mJ%2WN)UnyaT6T_FHJxK$Xv3B{|Lf{q*w z^8KiOpRpJ-)A4|&<3%#$jWm@wR&-%ZjA-sKT=UExQOg#Ny@T1S z&vuMvK@tx6A#O~TtQIx;)dLVKD2XpAYT+0HXaefM4p9N&%T*KRy53SSx`tQgcr-u`vq327+G%L^R$HhN((Ue;;*U|7#9_4T<&rGni`>^`CE~zsZ;GUoUEbmy&k@G&pJD>q()dBooU>qSz2 zB~kl54y0Q}%beZOJ2;>3l4z9VU>42xYgs6wDUFpXuuzEA>a~*brn=~eX6TFrq_Qr& zP^HcXLe2GHO&9+0aX^{QI8!@Uq(i~duoX+eEf%RAj;gTNMnT)!HL9Uc%;?S3c41>} z!wkXKYzeclPV8n-_m{(I?K2?t#!?Xl{EP-WhSE3_tE682IRLNizb>TMCRBaT_Ll!> zvdmq~i}oEd2^|@o_+8bGD6xb#ZgzRIApXR>D9$00N-6Ur5S|N*`q2Yc_Fq-pBe#C^ zk-WB5LS3m}=ZcHpuQEsxI0=*n!;IR5fxABT9LnK#+anESHN)pua!GNb1(r^|Vv`+$ z!a5`hx!OV*(?WCJP5B!2H8=x2lE1EA6}# zVk(+hi)+^l_gT9li4qZs;U{+Msa$T3{LsjE<~Bgdyzl%sbt*HvZwc4bkiA%?8 zU4bY!3N!V1Z18y4gpEK%S)^N|j3BCBPluz(A!l@!zG~l&!`rJ35-W#VtK3SS)CPS= zaJUw_`REY#C0dG)A^B;XWtq#}w+W2RByym8Fj2%T0a||}34O_~C2Eft7z}}b5d2v1 zK>5Ke&(eA}=?q=1Xu2ErJLtsR=$zP>w{wWoN z2pNMEV(E;X$M;Dj=tqqyl4SVLYyf(}umX9pwQK2_@p9F|_ijJ=A|m|di@W|%^nc~vlE;BezuRImCE7hOKrLZ2)RVP` z;+FxWEEh1Dxw(^yH@%(C=fHRZy1a6nVPuWC<@3Gj`*~8(%>%(>?ue+x0nk^gCnjbI zi=Nq;xvZ^6!XHH!2j#_Nr9lTyZZO%PszX1iKtSoSX(S_?_v`gFPI)zEKB)9nSi?H? z^On(R_v1YEcnkXR=h$XBWzA;YjQAK|_tcuA$^fQCYP-wAk+DwnkGGy-1G?_!qG7sK zY+sL#%tpbPZoKCf${l;A7a>bww=@aY$c&}sE;t-lzUc#4rs6 z^jigxTHQwBOp51=c#oeHZAyc!yPDA>ulIfadC|+v$u56gurXjc^`Z{wBjhA^H~hMc zw2tgvG8$+VO&Gx860%sGE}wCQCow~6^{(IgdEUBiRhW$9;5h@d`C-xI1^s*Az{hjP zQOi0)t9@pMIV&?4`V(rMB1SI+ce*fO5)VHpVb7 zvVL(c+1vG-OX`+DQ_m$z3)7rW&|4`IJR%p#j%kp)vMDK;7FxMqvS8bMTW$1|_qLN$ zlf;Nb&_O459Ph1PBv7~q`(Z~K*yp`X?d-8+W8=K08)bjOSlpCna0`t6eALn@2P>{stncL>_%3lz@5Qd6>uBMim=Ud`+O7^tS7?dSLr!$?)1IEy_fDb#D4pkp? zg6CEH9@ZNB;WKvb+s@!5AB2yShIfH{;=-@cfr^SCPTf?MaHF*a6+D-Y$*8R) zm_?EDt{iI7nj-N0m9}WS9e~5~IB+7cej{|}y+@zcfg&B+<_paLc;0VKRVOwMXT7Pe zQs>R6WS6~bi{_V5;6toYnU82UnmTQ!_G}*du5fGlM|*NbnIG}^;j4)!<@w#U zB6njqHtE4ycL%FX%#zF&l=}PnhF1ES&+;Fsr|GIGE0eH84X3S$|HfzAo|)SSOO3d1 zEBEDW$gKmN(6ca~0_AMgwmXZlal1z3Tmhi)>11}s&wjjfh;hN*D7-$asFgLhvreB1 zB5ycBnwr*KB$sU;XRYs8l5$QS7s1LEesV)<)$w!jewf15+`@9(+EBiodR|k&a-?2B z&DJ=o6lfM|o?|W3c?G4?&3xAl4MY8Ow{RFm)d&2vp%kxIL}}RV+(zZSp=e~pj6cag z^lEglRUQ-Go$8eB;8~p=>ev*Wb0KS9pElL2K-d3{-})_w2%_T5YKAtNNA$j;I|YsCkV#75J%u2>)%nS;;oMBqzTcLi74&Cp zlcY-1kd_a2@=3B_TT5vmIOv8pKUtf#6X3{xtn#tftggn~(E4@3X=|W-u*x$rF%n=F zH+ywIMlYJxJJr16yEwuF4`Yj6)3XuFCg2wT#Fjt3KRROBQEOawX&(H!ipQ*c`-X(x zF4H-uM6t28AjDkuBhDU?l1q^~c9zSV0{+_Eu0+YK=@e2XHBLzejALj~<1@Swp?zK6rAU|*UY^$J|1O(Wl( zi0fadaV14~$3DDp0HA%(1*qf~T<|hJ!KxlfVBM&PZ4tt*ASE5Uo%6r5?s6W4`XF-M zc`D5dQwQX7&kv#VXFMvvxwtbW@BTC^^FLQdb#|!*Muj@hAStq2Db5vIm9hVu3!tVn zU>>D>&W@Oz5a2MYFY%7Tyl5d8qxEHa1h-b6jePt*?ikjsUmNS1f8DLqzC!u>)gb8Rx-j2Dr1pSBGe!JaYD#yzvs>?xZPkjh#pRchzr0_X>eBqhOl8Kf0%!m358$YQCj_UB z50o3Z$4EK_P>|eQHs%ig)c!JUGeqUifzL3IN#EHI0YOedt2aG5VKB;y7IcngpwQh= zU@~-Zcl!DEwzNZO;s>4asO_Mpt&`Q!>}T?ZGlnI7I$<}G>ZGHVQr?4O%Tw|d ztw|zzT9B^X?H&l404?Dl6>L{Y%wD|DdnrLY9*)?;uJ;<0vR zbIyZn3Zoh6 zvvO^Z4-3+FAv`VsAIjQZ){Eg%LQU8R=gRbvCAoJ>b9 z>r>_On*F%tO<+A$tr`{y+>*vGz;5=HnI(VLFe$%ok!1C+E&lze?oevraHulFUO*eSD#smnjX_ z5#w}Uv=-zhJL!br%~P=+7^Z_nj(GM-WM+m#N5j(e{&Lt@6Don!!hf1YU9b}*A@wUG zA}RD77)V+-c)~fzA`U%SjVc{z;Vg76(2oc^rHiaYr*rVP+2Sf%^C5P1^c-UJ*3b4b zFV~?3kNSNhiO~#&Hqh`Rzrey!xq~&&s)f`;$euazG}Q0*B%^e`g&);`I>NVk(=wndwW-(5ixs zE~k-P^i zl@+p!UVl*Hi2dwCx1BFmec$!j34gy%WHdjb>Qu;(FpP=eRYUn|gy%@t0I~FnWxRIe z%Do_qXJWeNGS!1z87{E1M86AxCCcinPD0O4JxcU^XJMZ2xC9qSO@_=CpzJpYC?7|F z)*M%%V_)hvRIg<`|2Si2&XHM{y6krYB<(ig=uIY5>; zV4}L@Dt#blu{9Aa*m96UuWL{uJptmD8E-sgZPtXgE0nxyB*e0L$N}mYy*b3Wa~bUD z6gB>?mPigHZI}@7g3vzO*DI#X{d2=S;^}F}R(tMjYvJ%s6r&gEQWO<1fP~925 zFwcLyr=jYljq{CTN{xO;<-^FUPF;Dd4aUSIBWj@nHC`S~hi^VlCP%g!Ete(v@z<=5 zPDprYyY{L+_^dKNUJsfm+v63uaP!67k61z;qCe6K0{I?9ql(&X_2CC|p#o-%6tE@i z1+zfV#wi!%24knOepBt!%vA>`-V~vBF+Eq5*s?yWLwSOsObeQXQFdC#)q>{HFxjSw zqs$-%U!ksfeN^$)=)OdLL^#mDZGVY=!&GUXf?ApUoHIlwr$a=mh4Ffj&Q9)_L9f`<2pf%K9oJ` zHryjaL60RI!8DFU?6*@RY*956){b$63C- za@&^N}Ak5@+zFaOGXTEIfEgTkVe)=;=G{*Z?dU>`{n z-co>->|76!E`l|eHm`f!ST8%Z|4rv?o0keTnG!-<2FV(SU(D8G{Ys~AO_i_Q8`#Jf z)kn+`nGa|xRI}*S0Ynvc`JySEM<$}oUa;o+ko2e(XI(uR=%1VS2#cOvusle*8vK~^y}%N z-gLi9e{uNtClhegL^*64y3r?%W+a(uL>8@LGNkixhWSX#c3m6eJ=&d(CsQL7lk;xY z{PWL<_Jt!26o>^MIn{!ZqzupOi!_I ztv7)ocmo{bXV6oV?Srx4C{OA=3H0yIsuM4}cY9FtzqcEv{2a&LpYCbt?AaIhMtj>M zg`eSzx;7B-aiEfGKgN%^gF{^1v#={Qf1Nss)|4x1e&ypH%ua`HnX!{fVe593stA7L zj6&>8WW>N>{4$B(!Kc7iZgXZX8ZS4^r6nh$g`*(*`e=*FTjXCsb_{;Ck}ndyiD@b1 zRu{0~>(!LukeOOA99J;H$m%Ok#LV^oJ%hkN6(M@H!tOk@?`&4drSTf~Z?jW$b5SsV z9LHva;~8k-Uyh_l2wg4i29_PgQLqCAKjIU2y8SYA?U0;VrF|#Rw{JDZO%ClGkg$T( ztE;g#Jt|<_{5Sd=U`i9`qQevfzA^C(4hz%m*>%MIY;FT@)@-R^lMmc>pJi@YeLG%M z10S;ztW}`KP(wvQ0hk{-QMypLGn*x=(|Cl-R|JE3VMW*|f`7WSN1T~?_Na$@C! z90U4nuQ0Bj*=033m9pd~C_a*`pfw&7g{7Kc1a?IBfO4P<9lkMwW@(=JSZt>*^H zbbke{=s$(_D`mJ`=7eNhtHYy!W)*kHnB{l_fq3ZbiLgbDf5Yq8@9mzs}P^p@mt=_VrK1F;DvZfYtB?={35TnL*xn z`J-r0dm3fGrWTTM1h@}ylW1sr>rlXytwf;z;tzNp=T~kSqkdK--Ou(jCRjxaji8W4 z%zWUs`n2AjK2HHT6_`FYIiP%XEMfqtP}^*mKyT&nS@Q^Lz$!?9;OTEZ3(IZFuNO4| zj|i5Pq9@7yA$iT)w(C3!>b-2q!vZm<A8D6rpKv^YZ7x1}P{Gu$yZT|Gdnc|vaO-8| zLXQ55K1I7E^+o**6W-MXd0dibA2DK)Xb`c|FBzR)!zhAEGksM^a&ke7 zPkOUkUEcwu`9_YG7f6$Dl#rBOgcQo5wo4}wTbx6-vVEWJo0(j}mDEZw=%CEc+!EZxl= z{NCTae{TO?L z%%kxqDAkjJ7BB5Z48Hv#(EdNmoATn5J|A-mmPFa2Kk_#d4QT$K zGBNgE?<_hH{Au?zudRJ7*8gJDjC1_d8W7XWZ#i9+vsqn8eLn}x75N`21;n5?!{N&RJSgT)Mw>JElVV}?1bhhO%s6X?=(a;Tc(7qr+Jz8F3XO%~M%@BR_(#>uf$1sw+wbyZ|V-8SK&cTIsoo#iTyZ$@f>9 zMNd0*=6v=#VhSn?3Mf)*l0M({w&2+u4sCRs;n7qrB-7V5OmaVOxF9^d93v(5D}RF8 zI>fG3p2^6=i8HXR=kW@0rHKL!_I_lTMNmyPSUE?@Xb9 znQQUKgjR`+5%0IU99L?#VLJFHrn zuVW_Y+~vdrQc;F^DL?r+VihD@5@QU@HrEH{pIHmHe@80!LJ0LapO+S<0p@r^Psh7d zcrWw>2m>aCLVHUmXp>9}Qn#lXZNs$1IU zH~meQPs4_3=I$T+Ah~6t4BwIZ3e!WY^f7CI_ zJ!L|o*;lCUGvC(B+Y$D6IToAuKSH4Q7Tn}hyIQ1T+c&Ai- za}UgNMXNb1SD2E(m9~wjE&pAGpyOs_zx!@vKkd|ITrL^{%&=WdVsrRHO2j~`&l0l= zO4wUk>-pV1_w|MsSt9h!J>|~%8ciH!(YdZJtac?q(0(i({V}4{I8lt7UhD^i5vi{( z=PASW&)$`5I7#Z@W>%6QnaMb2%Eeoog)TB8%Hz{pwwgPS zs0lDoi;>faSn)P3h7w~r21%DoMq9`XoT6tV_^}>W6xF#~N+SGgsTZF>+2l1*R z==ATPZ61-2(e*9Xa*r$zeYd%Gl+cumoVaGUxVnLG=E%&q5MpLLOI% zGj-eL6=9Q^iyzBY+EOUI(=~dKIXbP+BWfYV*rB>bxL`4S{e(NLuSP5c@L0nW z6)zTxFnlKarkI9WBm@|{`4<`VbE;a} z>eOC@U^)n{ zO@p~RNweKNdWXvlCP$Ee@mOb$=~t9$?szsD6-@vIq@h+o%St8J_{hx2AP$d*eDQVx zk_CVsDcskaNL$_}vqgB)qNt_)k0Ip;qFkNY27udl)^@`lM`jV=*3Gt$+!}~I+CvHt zzke+p%y*nF{<^>(_$I?rTnmdQojrL99fh*qNUz4(_T&6QoKAe5iwyFhBZ@aNTj8Bx zk~rh=9m9V00`g$~n2s5jU!f}SBq?&n;)2L-32ybJvDKtU6Y_T!ZP{9QM4uQ0A$B>7 zU1chZXn1zFk3)Sp+8bX>z>kv@Emj1$keXfnY)w$vC$y%SSL2nsRHlSwBbrw zxI1vm&Kq4+4e9v!YnEvPVm#Gu4*PLyI-!6(ci)*d`Zp;7jtKA$&t$+PqDLI_9)!*!a8c|_OEuf8xY@pzTI!hhNR$(Wd?r#2(2 z5WfEN^)XawzQcWt{Zj;M&?#ov{%IKGH~~09EmE1Gf$3aE0ikI@95*)_(jUfc%gFMKe}-5~V+`0;XRI zUtS@c8@=f0IYZ+|e*5ys#^WprCeU1ZIPDI7L*(sBBLYJY*pqT-_9v=bV8lS~=}<8S z2NLx2Ruq!G@BHVd&dgyJF&eb)766&8-X<*aeIcSZ`jhyeF`lE&U>bRcqwO|vMG!`wYCorTmw zBw2qLXMF?PPkr<*P{EKkU{z8FDkXuylPYY~h)tVQ9p}k}5>8?32^y+-?*nXZs)*;N zUG$sE$?(Z8x~>i9t@d1d5prfQ7Xxg#Yt}mOO41m(8aq9uH%02LT*K;zSxSH8{x^s! zRRl^z@T~H1_%5V)lIGDZwUjBKxQoggkUzhD!A~0dv5N9LH&*fWZ*M|StVEv zctja95~Lf5fm<>x7o#T8$Iipp=d|EmzQN_9F?#WlMRMdCx3%Mz z_Makasz{|Lo&%E6@g2Gyb6(%Mp7f-ZZXPcm9#Kmd8%MP3N5#dcg=C6X9duvYx&X%= zMv`|@tZ@NUbyj2C<-b|fTc3Z8aIvdudHe|tmPdwP?GE^ijPc5PB4faiqBNnV4ln?Y z>VR?e_*6JGt(G!>@9ruEH33K%qz$5>OaRDoO;r`X#P^!(aR_qd?@fJ@e?|A(!DxoY zvB8~EXRdwtJ{0(Y>))|DW|ucFEA_daP{N{5+^6>gBj@Y>TgfFvLC??l_^z7A{2^r&sU^9L zxv~=l825%y8^5E`*ZlalpKJ!>6Ajj$Fri15)}xTvh(nUt%szYwdytmCOJ)zAflZL*GV;Ga8tHdaURAFhCcsful@&pS}CR&(G#pZ=@XTD!pL^G&(9+Rplx%vSn@U{Vk(eS+KN1 zhYAaOy~fcS^M^Ox6P{UNHh@p>P=;YccBJmi;%g*Bw7RZ){pfZ)NyIKE!6uDE?p78a zK#Bx?PbYcoF3*l}2Mr0x7bV*qkeE*7eJ4zg9SOicxK_E!tiB4d5@(||>fL|>CZ zMOx~=HtS0{OqJTwhI`t%_R7t4$UOATpwN-13blB0zGc&4 zn>~*m5XovXF^Ukoo}r-GmUK;rD|RF6wRa59BMKXA(+LMMQjLI2*8Yz^tNL)I#l@jz z=9utK-3!Tq1lplk6~e|Zqe68iyCeUGFydPzE^tTLC?y|#zqEEV9N~~v0}uSXXwYsa zV}#~Zaxopg;Ma0RG2;&3wI!7Fwk}AGxM_9xw+c}%C+UidhK1l=`E6Non9)3a(3){#@+SpcEjNb$cqgdL%l+dRS_lCW&TWVJfn~n+n2rE$*P*v8c}i zJvEI4&u$&A8qUxwM(DFP7O}!l<=7vkwH0v48YXF~de9!9;?=1lR_u~4P8%t$FVWB< z50JSeK6bnMKB4#WUbsqAd3%Z=ZCbka>FD|Wy*<*~A&9>`C?ua9<&%}mRIexWGGi1& z2Vpm}kiHic-BY?1RTgD{nAu(jQr5|Mt^7j{6-kIN#9=#Gj z0_h@S-~(O7F{NJmj!@X;+S);=$k|cz*kN)~V@N^)dUR~;BtfllWjR)t`eJ}NY@Av`&Q%~QoVTN5 z&(ux0?(Fv*woDbo8^_?*QA;{n)t5m>G<1MS43IyjiVSDvotq@gBs;1U0?#@JU& z?c9y7ogpv@l~9Esc&cJXTUG<`e+98hWDS`XhuAj*+WWbyqC(P3XDXwKm)=>L~_ z4J=UV_8}wV*(+yWMDQ0<)_uu?u)0E~UuwmF`;)j7^$YFNKNW*l0bl%+nEVi#A;!U- zp5BH-6z%$BW|D@3sxa*DXR&4#Pc45j?}cA>jWZzlcxJI-eB}|hF?W}!G5AFM@cjwC zBsv$T!2B9DPM8Hd>(+(!7O{J5-D=(>JZ$uw$ivaS>IPoeW)mmh{5>(NQp)h#0>v>T zgKqYhO0)-aOUnXH$Q3PEz7)=AC$YHR+I_3{D!2MC&kAmZTQL8tG=se*IHaZ)y6o1y zrUz><%MtAaZznk8PS2m%8@YaSJnfE8a{#PpEke6ZL)2mEWeft-KRSqOkKEE}~#mwYbz*wnExOR@WZ{V@8qY^QO!!P+tIGCz9Mx}tkVM0Yj zj}IRSJ@~C#e|RV+5_;?9o4e|!N_TdGFOpNlyvKw#-uuckaPn@Bl@$ICx5R}#;@THyjD*Rfx5{a1x-`I^1u|XgB7TE z^^sL7)}wcMuI$C!t@h^_ad5C>8d0HOz<3px53`c@bCnpGZjSy&`bs}TN2)>Lj#bZh z3NH-DPMh|P4(!D`fYTw(@2G_(U!FD7P?vGF=;HjT&ta%(2*)kjL6X^Cr4rsK-7cLT z%TCG#O6$~2tZ^HFVQ;cl!dIS8N z^)-Ftz){>l58o<}@0>j|6uf1DK$C9|?ldI_XcUCuYWm9Rm@DO&(hHZ2r> zTsp*c^D!i~>kcN_#n_d8x$qW85uwkrKhoz|^x^~z)RHr?s}?qXaw5fETK5*L!!U}2 z#i4Q*enC(7pETDsY9b3bqbY-mi8>(<-ks~~i7X>*0gx1KIF%8oop30RW>ZtmCx3b+ z)}{L;f~bPC z>|>-%njrCf(<)f^x68p_dnqRm)irR4lEwr^06bqCKy88n4fv7v1a? zXRtS3z66mc<>=(-YV>^0btF#*ddMW^xu3Je(jtU{DqrxcR!4jq_`54+X7uO#Sn_#- z5`fz@wK5O3$HP;`uNs9%M2<=`f|~7^yze##I17jYN`6Pxt<@$2tKBQ6xhm2Qzi+)o z$U=Un$CXBktaEx(FKT-?VWxc`Bcn*SeZgPdi*?iM{$?tAY!M&*X zcycfcxet@Lb~SHMmGUklFF;en&Hnfa4V^3bmT}NJl1KcLHv;V;5!o+n>v_F)&>b7P z6w*-<7_vIUFb9hZ3{(ztMtgPiTLgH0f|~#d57o=@aM{>K{nk7jo#a~^0B)cC@=}-D zbKlJ`c55<~mn*&ONg)RcahxG0%C+A%ck8eqJwd! z=c~?fC!``ZpIhfI_q*A}VEK_w-M72>N!!6TifS&=x|idW z`6kcS9$t@ZURgOzpl44vZtcc5r!JA|%4I(-KGyTTE(xyCe$fy^u4)jKduu_RWWOHe4mMAuVUmbyJ8|kH#Gj!K#K;7po#xoE zdQJ+FTI$n&SW07D!mAmbiJPv{>njb@%aumA)|Wbai+eO8=Z!R$!v6HsUY`AS>c5IE z7~BOpXY?v0Jw3mgoa6N0*t`QOd3aOKvsYg(&tw~K0;#WFl)i`q$;=E5&(mi04K7_W zQj+1vjBrc}$u_twA-lj)dE@oJnJC<=bGu#}zbQ4G>iKV|eDvyFPatzJ8Ttd#^<8?T z6I_O{-Z4AUDeE@K>-F~4GF8g+UBusyv=;sNRpFH_qEHqSO2}t53Laz=ID+09Pv{;# zg^=KRJrhkrN=ks~3{5vF$=J{Y@4yR^&wEDfu;@_wP9Cp?+q`6@*~Al^rKv7P^xRt@$LtyC0&9w_hxqPEipD%XE3?GTEDTH zNhmKOcmKf9bSzf61KT;9`=Z(cM-~jWo4ZdggHu6<{u{)=`vy^vBKVuC&ThGFPwd~HX7V=}$*b4)``a|BmlsTlE~ZC! zy1$qXJqREuZIgX2<%dF~jJ}TR5yNhIzTCyP?Ih-WZNo4Yb30ADJzce?H)ru%u$x9& zri-Qew!KUOc;rtv;b~Ux4G-s_nsTw_QlluCH2aO-=HHj{R!cKBAXd+Czx2J{OHK7$ z$Z1dX{@izV#*Ld#nkB=F!N&xtQJmm=#X5 z!)er#F;S!~!oe`>S$3@uYGCVoPTS%(>{P7pt6UQ=FW|m-dS14-d-96zu|MvJ=`EYk z?RMQ7nFW7Uf8*@JyBrvq`2QiU=)$NR~&-2@`F2oq<#JS*iEXbbq@%~ z-f_`Rph;MKJ0^GRLgYo__;&(r(uRe`ky~wxXE9RbQk9*i?<&2zYgl?GM?q(vB<(WO0K!g3x z3C!-23`h&%WDy){zEpAo&V{$&YD-C%+YjtwK{H3}dYenw&W!Em>3~4kuK(B4c8>kF zQh$o%=&MB*HrZen_5S1YYDm_=$Y+_gW++!*GU24RuUtC>XFSBHC zpl17|ji;@_jqb(zja_-8sd|q4FXcT)Ug{oo>6%~esQCK&B8#ZDcXrry&VgXd>0twm ze?NmpFmleyPqrFER76OgM&k^YRLuq~O`yVgc5C8fIC2#>-W;-~gMA-8WhCk-8%yC* z>3DRmq~r45w&UMckv`a-yUk!cPcI4Yxj=S~Ccv@BP2eYqB6i+N@%%2Hwq7w!ffBQs zgqvG1==O)Nu1afR9F83)l*9X1fwmIoFI3|PA*zi?o3;*ebiW`IcrNBuinzknVjoh_ z_m?R|UCKGDip4j9WTE7JVbD?bf6myiUo%ZEO+5IyFi}p{Y$xk0z@(r*x_XM^-%?pvK6b<51|K4s{Z z0cK@BM?vne)Giy=WAZm#y{T8zuRnfo5f#*GuvAu>2hNJ?g^)wy)*&wKt9nA)v6tt6 zchPfyzl7+FkUel+&eJ*SQaYF4maKT(X<}kRvDgmqq1HB7l+umhb!kRBQ&|58zkX|C z-?7Hyu~>X|4`h>tOwxCNG@XDno&Jb1%Tx4vXfO4{r2|`O#ufg)agXf3lo!?NT=S5nZ_%$GQ*DN<Rr$%Ms;YTl)5RB zDzoP>3dvE)^>KLXEeT`(M|8qkQ>3t0E~66e5}#?Af|xDs1Uw=01YvzoXi`Sgw1*>8 zhZ#rqU5%$dy>dGyaH>?)h)_MiFYPFrkD0W&nR4hLC0P)tQ%(-wwQAQ>JKJ zk%F9u-k*T)ZwF zc=lK#55M&f`QM<_V6o^RlY(Fh3ztC`mDdz$C` zC?S{oR{T*eMBmtNIp>26xxq7aKb-1AA7gJDhk<+Cgqc%mGHj)|rj&yZRjcO>yQA_* zAp{84T~ohq>+9|4-5O5PeDE9W~r zDfr^`Pyu({_!pziQ66?w?6;X`%!NgwZT9r`y2mn25)X`NeDSfR z9x(hFexO+^lLS@EmL8?fVb$ZTV$(aSL~~M(Dn4Xt!En_Nk*wLHe2|I!`;bwrJKNFu z_;R@L4$Da)NjHv+8oRaBR*A(I!y05wB*I}RR)}h3DDKY4ZbkR>LAco&MZDI~=UV4! z_+c2O_-@CksnfEv^G|;+`fuI2IBMb2&VixZ_wkC{HU$W&Q0d}wKR%(Q=^ z=jrmDD>!jf=rM{aRJ=b7JN;L!+g#doPW29PWGY4HE8D58e8(0Qn|k?})ZUbUj|V^6 znx!tL1~9BVKR<8MxBp@vMFfMkgG3I093DgwLSj1f>a7pc_2j(r^1K zkTCz^U41fw`HryHMm?DqQ$EXnay}(R?>ELcZ}u*|O%&0!rI9i+70YM6q@R{S_~%nr z11*ae0>4T!a1eN*@gyn7m*jU6`+zq z!H6A0!%Z;bX<3eZI&=0EuYv-tN)aWgsiqW&kt`o%$8cCrgKM=?B( zQ4%#A)qy%0v+V;^Br>T<>t3*@?FX9(9e=$6wolfd^#p}$)`OXsr+r8vpk1-sGVn#n zJNsbsJJGUDahh*W5(VQSGc(^Jw)cLy&F0hXgs>B;J13+!eWN9ou%uQUfxc_hp(+W} zMz{$12(}Mpvd=2x&K29v%-ruM=yZIr=I)2Lwo+IA@xN*>D4T`aA}a+fx?I>2)-o;Q zTv>2TjQUWXCIrr;MVHrnch@XsoP|g^u3Gxqu~x@ghk@FV<=KLzTUt!k)3zxak~dcM zgeP<}dm9tcA$`FSClq-~$V2MjOOnZFMNA@D#*{Wu{7!=mu9GXP4x@;scy@+40fWNY zt%?Gisa;p=A^BD2UG@3mZJpdcDd+z2Rqn5ur;52t&md>_kU!g>QNveq0uw8qtBcQx}1^mC< z-1nX}X_O%YaN_Pc=RO^-a$eu6q3$qEv3uI6)5`VqKgMJ=)zEOGU$zkLudI|LyJMIt z&h)V;jz{sYk@`|PP;=NL;pbdki2Yt}Twe%k5HAK&!)XPNhqwNb2vy$|5M)u85mJ{K zuQ5SvdZ~;tR9VS*QYbygF!?QcFpNinBJQCVZi=v%3WAtAldDBb^n)pFEbFdhFf5Us}v!{+kO+pp^%TJAo z{M?Nc(ZFA0{o?=oo}_-7f^8;IRIHLnkynJ1;Qq*kP57??8kK=2a+dwhJ-IOmwV@Q( zJ#1g}9|yvWgm1>);iwWDb(_rBB%V|)Cb+R8)YOiy^EPCjGlD9AE0JgRZ=dILyxu)A@oPzjQ*E=|;# zua9>!Lu@J@qTyMH4Q+F6H~yYFaEZ$)c@91tRRZOHIn{*=Bm|ex2$uLk4Rs6VeBBwN zjCj!}jPs z<-?jP`Lx!X_TnPvu))D0R^_9uBug6H@)k3DIC7v5_ssRgurGTrryGx@rPg$~m@$6I zUXh0sMzs7dj2vLNuwNY1ApIA~V^m=ScfWm1@$t2~cqf`5mDtC5L z9<#vcoV@V-{$s&E2YNgie}UjnUK_=mzxZ&)aQ|kGILb^Ph%p)KXML3ZU{I3eosE(} z&K7)jyykt`@VH5E$%?pD%9CKlUWw8^9ACv|2x0Jxt|czIXpNo=-6u=&o%EioQq z*!W8En{)R9dc4*3n{A#mbKdJ{Cb9gyI@6pp8T! z8f>vA)(xt`<#w+*l-!C@)`;uAhjGGnt}{-_>jf zZi)H{i5WLqO}4s+0%aPH)nZiEWW>SB$R2A=wBYEN)u9{wPFe`G+HjD8=G|9>@jSdZ z*7C)Ps^#qTynkLfGvU4Eu9g$ths*~Q6=Q#N!3@#lgL1vB4q%!&IJQZoX5CGGtl0WX zBHJIC3)2>~5B;8BfX5pPQA3l}I16)eRO#OaSz~sm8%)Fdlq~tuW?Ed=~{swx<9<%D)jB~uQsO6d#fqq z++>E8ppR~(G%watS8Ijn#AvDVFQbbHXr&p(jP}@md`JMX(yo&w33Ml{91ggc%fzGl z-6A0jk411pX1Bm;>^rrShAqRjzt`s(+5taOH7~Or-Jzc{nZCT%m_a|PlA#iVbf(sQ zEMS1Rd~&fgsn;8OS0!jsA?#09$QHM~YIj*XejgxNKHL+mlPD9yciA=6&MZ_07N8qK z^x#?XqCPXTMwm-t$OFb$MPGjt61Ci$4cBxtZ7#}y)}=A=oO}jK)_oKqpIMY*Ky=}W zI7N2|(Yea#oiXE6Xp@nFxN5WDBxHe$VSd>Rq$&rxUtIAYLjAGjvtJO_~Op4<7_XV{ycT`&fSR-&P3~v5Vh~EDh1m-OSwM*qB58 zQ=7T&1(1fN3-5gO<($AzJX?o&4`mwG>fN>6&ik7+I`Y`u2eVauoRvl0)NkbE7}1Wt zt`Nif`$&`Oxy~3y+h^H8eU7s4Z8p%mBwIH0!i8#_>LfomtG`ltEn*cpfOfmUVqJJ5 zRv6m_{(aVy5k+MhO_vDW%G)-pPa0nWOc1O#A43igzU^H1&UyC+$!5t8J{YeXCErrcRV z<#5C`Qqx+Jc2r{ZjCIDM?&xk@gK!*$oR^vNl=1eNtU!^SNOHBmgGq9|GnIhP4~BzH z@yqPbcyIdms+vdWWf_G3Oe4SK`a-tvmlHXm(&Ho96?~H+pA{D0CJEFijzzUx4oOLW zh;WJ6+V|mj|Mh!Rf*I(Ucc<$zR-R%t)ZAdrmA*$hx`h{Kr>|KLDhFDDl!q2t@c-)z zQ1^XzLdIHQ<{qTIjnA%%H*0d4rW>Y=?Q*>JNL@5mqK^&H5t|`aNN`kkTSFwv8ot%N zLk`(95MOCO%$+Q=Qbukr9~EQvykHOZ`EiC30% zm##l)X4lDVEk!jo$`ZtrdK;1;D1XmKxRDezV&G6XqmAiTx8le`IF(FF7PeCJuSLkwhzW5m?^JU_*|d%KSOpoQSY1HXjS7er=D9A5*FyColkF4Y@B;h@D+ zc}I=iZG)E~8(I4yN0WN<+dbQQE`}~&_@c37p@vM(;I|i0;p!Sa!9_0D{|MHxYk5SC zpUG;RYN!kPg`HtyW18!LDkI24kWxl_g>qAQ{V~fMoIR#>YrqE(1Y_ z1NKwPyZSO*rB9hmfy6sPCkdHv0tef?sd;@EL7`*S9D(<*KIgw zmWuM4l8m&3xJTo)Yw=2(y zA{kh;cwSQwwe3u>CDUjzxJIxjf}CTw6PY^|M!9e$5ZJH%X6TVdMR#I6k1u23XNh3XVGT%tR_HAdC3+&Ny>0P;P z8^3-@d5rozUN=KQ7{*=ka4BcPKf>7JH_47bwdPkGCAd?uBFR)12><30C%L zwQS2cJID&z+@YH2{!y}d+l~sYsIjaLHDY5Fu z09inrTq{*$6PeT(ehUN*J1N3imv=#HV?rmgWt6UpG^uk_y1cVAH7o9p0@Sy+E=IQD z!GG+jj%JAEcdNupah09f&31ihKGNkWBwwZ2kowQoKJ1u2E3q;2@$tsyvHIMLyJ6R( zxf(cX$yTpNp7wOcG0ufQU!*!egGvsbR@$*z6AfYXHGbf(LKvVU? zF=mS#M8=1JL*bo{iJy&nS(7nY^S&NPN;T}?vJ;LVZ{e$VNl?;nr*gg-u|jJbli(_& z+fKr(n)usavw@;bWO$J#!+PONeNRkL2n2Mr)=}U%_pJ`b+lp|u*vbs~5(|fy8hm6V zi69b@R9C&^U{iQ+Zc%2HDZ6wzwwf?{-5PvaNFy%fre%xY@aE<9Pe#&L$w2xqxpZr0 z*NkbumMBaZ@7L&FT=2FJXMaSCilRssM3gVaVa3<`-Tw7wt{kBlWUGu~X1Zaz3@2@> zTd-2c|0;=A+;CeaR`<|Na19`1ZJ}&ae{0(CG8QHJmAb^mripl*X+Ou}f~60uoAujH z+@rtVW%7UNI|F|mcj`|)ewt&dWuX{r*l;z(y-NOsKdRv9lhM;zyDWhONZ(X&Q23VI zYPJ&jQYEOXWepLAZWArDP8)CIKH1aMQlb>Mn_i%ow#%-w75h|vBu$>k3+o}!(-i%_ zBOxs$CErfaU1Qp8qjy+}j6~egS?qj;Mg+P#h1+|2TftlN| zUQo&5Ta#o$>>%KShXr~P=4$vnl4e=LllMdB$Ffp*3vLD4yK(a*nV@d~@-!qP6>`DQHM z{KV)sy~pLw)rixoK<1~5a}SaeN$_Q+r#DOg@Fk6ruy78t`yaye>|ZHyLH3GM-SL?- zIVz2UM%m84QZkh?%mw^536FYQ2tQubBDuJ64|hOp@K3f12XbIB@-iQPD2aelqBJ3y z2rt+_mG1AocF?O0kCLZb&~jbCFCbED(K!{ECd?wk<06BC*=~)A)_T2Bx6{i&v&C5) zqUW*mB!;xpsF}@F5T{N~G05&9L3(^q8Vdjl<2#)u@!*cA4Q;>p7y0bTEv%FNOn82s zU%X#*AkwT7IwqgR%2h@n15E;;W-{dTJcD??oZ`hwn7pmN@jT=DQRKBL%$ z>-r$x3czG1)G@N5N=&83g;w}}otCa^dMAiF+FkA(qW9BRsvgdyHAdy^a&EHRS+awB z8Ft~a_FEmP;keeXHU(|(uFh{@5_Bh-}KR5J1PQwR3^@GT2yjH25IrFgilq1I}sOG@pFh{?tTYvR_b+(8!lF}ds^2{Pxcxt>RHEo4l zy$k?4&yl0eKbSM(ga+|Bv{PB(D6aB8j`$zxD`XW@3LA?plINbc5=>u;2Jdu@K@ z$B!~Di;|Vi*|oH&H$oxi<&Hr5uJrg>z0H&5qsI{RfQDeOJ6CB_`{;{j)LV2jCi_M> zZak`w|A72QJEHd<>!c*OzL!Yl%7(m?F6JRjTSkkWUPG1b$H2BJ8GgYpPAzROX?}G- zc$^srsJ<#l>jsM~5^HUNTUJ~2@8&g9jbz{hrkxx-FAocO8o@Mb@R0UQPo3I(`YH5YZQK89hnAX2#Y#nX!c6SPKPhxr3|fnrI8ItD*5#~I z503fuK=oknf$2^t=%y_5CO(n|uZ+S%s_0|EJL#pw8KR;>$u3ljkD%BdUA=Tg(GLad zSA7yS(^!VewNxpwxT$U#KNtmaau`K|0QRYzm5yP6=BgNB4j@L^B|0w&g|d&Wrc|q7 z`6P>fu0*?jQcuAS8pG_=M&A|;DXy?v7)YFPZ89}Ne*cyKW}bjnShkO;UxbKrGUNmI z(MDLmPtfJt#Np!^-(Qn29B1pzvn<&{WckIS_H=?QkQsvJNGi5;!Jh|}_tz2D5V~Yr z{p5v&$hjHZ@a>N{1~z+}A~$7g4a!oUwGe9K>*CBlkEI{?4V_MNhOISB`CKwVabVK; z8Qi0MQYkszOBPRv*20byD13mPeo+76G6$XjuEa7AS$O}Fp5-6svBPuN$FyczIyJ4M6!ktlV?Cpd)d-2w5*qQqOj3tPlp z_}`B|-aG{d18c7Yem!L!j#2fKh2AY<^Q(U77v_Snw4mC5r-@h@DN1DJzDJP37KPmB zden_;5Y!(0Q%Cg1oM1h~Kks0GMt^wUA;>pnc)b|PtSu`fEN7csr}=0|Wjc4OoIXS? zo~;fP)6dp&gS@2z{nNTxy^aol0l8?w5X(3=xd1(p zhmb*~iQ~Wc%IJonwjG=$oAnpJkS0j@;ow0Ewx6!k1&V0b6wX0TN5WbEk=8)aSxn2( zw8zuA%w8GZiQ3m_>)+jw(05^1zT}L{u9r$6z)D~E=rR$rZ0qk?3T|}I?73UW?L@S)tK-Q= zcp7QXUGRo?!2nhjZoOl1r_c}IyM8*E8U+BsJK z!wmlS+KJxwKs_;cMJaGZl6N+DC}WK{g{8@QKh(W`Kz54n3y}5f;qJYi6&%PIs2vDm zQ{v<+QaV1$J?9hgsX_!lOo?=A5=9r&>jtbgw`9@a~Xmkz*fCv$Oj z3=f=rB-^YsdP+8eu!si zp!I5u#&2s0Sz&K!p`H#V5|sXJB{AX~1<@KSrZQ#1BkCY{VlNwl;t~eO&jp-XY~0mn zgyc7LY#Eat(d#S1zFtBHKT{0_?5#IIJ%L1V@o(5bI=)K^Du;Q=Hr(7Z%amed$Efk7 z>+(?%iPNB^B!O1*6K;Z@Ruq+u*9lXcM7SLSa5hW^Q zyGO470^D|u;xN+H-QaK-pHi>sxreDCQ?fl!Eg0v4haPCZ1GFC`%?RS%zSM;Jo^J~lU)iuXn1sus^ zK&F|J1aUq!5`tMT_aA#yZy=`x{z8g`99yti@=>9t{wO+TpgZ0Tbn?606Y44%C@`9N zt8U>s!qs)5+xl%Jw?!m$ zs1b>wVH5;LQo5uD6$A+h=^UiHL+Kbwl#mipx{)sF?rzBehOVJ`H`jIF&;NOj_p4t7 zj@f(G?_B3vi{pL$XCPiU_V&CDw=7*;uE>V^-Hi9UBx5W59EJeBvgDrpDwbMSk4P@17@^h_;#Wmu^k>wJa*g7Ev=3@>wVm#H9uzbqSwI9C0! z^x@V*Ws^s0I$eullw7z1kv19O{d`A;&g{P-asge2YzczU_Is6u9i-}ATl;O<{I7{K zzthkbwfXUGI_~c$C(7|b+gqF2`+q`+fDwCEz66?+0Ty#kXmZIO@8_y+>EdifLl$U4 z7JiEXq>{XH^EOvl6~16)3Jh#(Hc>0X=Y_>pNB{X~K$!i~#$;8NE}>fPmp&QjiS6+IxO9z@v$1D*a=G|GQbrv9}ENvBg=DdXn{%=jYDF;TE7%(JPJN z@KWF=Pwq1KY4;o&_KZ|hPJ~8rgX9TM$(F&@9!XEQN$DPs1=nFQB^yXkph%0!vu=-z z2F_%u#NPvBNQy{xXDXvB54Of3>Vc6M!a)kSEkt)?`HPGzGY)`i(6@a!83Q;ZlJvPOl1Saq=`7n1(!1yEA7vmG7Y?a6it* zW9($g!+z0%E9c{fv}zRn6X^FhYvjX;&L>M+4W4r9o&)bEJq-hsavu4PcE`{nM=2eh9MYB0p>#G;Mx#_KMA%Kq{D8sr;&TLKM-T*D%l zAIu0QDqLdLkc@coQcm~e-O*1j8vc4KlP@a4t54mU`bc#>z9=9UO=&ST3m?|V%9XJK z@NX+FZhoNTqQ*BB8TR4?0xKR1%SpnuCO($BvUo!AOX>_VITASBRyrtuypR8&rF(3QwyOkR zYkVaN1{*Gpb@{wA!vY=wioV7ZG=CYLbF!8ii1*+f2YxNo(lp}N43MA5^CtO4o8L(k zY$*o3npDt(BLjz6h&Q-+nvX<9@--MWe}|7Ik+V6CP$+jNdJ2Y3goo%Ik#<`@V9w;t z4C(in16IALCSqC^fz#>0>pseT18+C+(TU+D`S7+Y!Oh0cdWCbQ9i~fb}aKe)RD#85QKKZ?Xxz%i>N|+p+bNI za5=Z0$M}51S8ch!B`>ax`#B6

_Tu(*TX)@}CxGdoV9c8pR;?Jp77H>W!lurxl9} z?`Lq(PJ>o6_H&7rAs;t9V-w}~z9Uw$dNn4LT z^G|crX&FM zA@+@kN&^~+vZ9H*lMZHBjqe6nxC2WGOt`<7edh~`FBr@cR1N9s z8PijjeuUv!)mrsKnBcw2kf^!qXWuJb7P&{+k}(5e#MXCohr&Fm?BNNf)7JSrP{)Mvb5T8F&d4 z0r3S%iLp4v5WdOf@CHdLP;g*D*}O9{5KtwxJf^UNTkIFEsa}+(7qrzh6;B==oR_z^ z>3*_z4}EW(;mqrORzkbGV5 zFViGXxkvoljM&GO=E253g-Y)_V0PjeF}us9gtpZqTW0r+QQNX@w_f3B4neNyjP)(8 zC7GLC7Mi*E6EiwHVz5$4eOps~Nz5vWtsU{e{pv{eq~m<%8I9f9hm_Fp>e6rf6U|eM zh7-qMd}De|tq#v5&SG3bG%fEaH@!5Yg_Uc%O{M}<0=i1x(OgOawsGj3{n-c50R!+hR%(JgGLRAVrq( zEwIZ}q?e8AIWz@}(aD&NjY>x_*~yT#l_wWFd8H3V!VgVM8KNf}X#G(`Texi+5NzS4 zmRz~nwaDY~EYiIxm#nIpNi-s`%T6mmC>5;ME^7QVsK=nvPbR44JPu+~D)jeNSqN|5 z)culTP4l28^H0WfK0z(-vIw`10;-No19&q@g6sEq(VkBOY0Myu3UJ*>Gr5vq@rGRC zCqF)Ajf=>w>JFHapgpsS>t3#A$00Z41pk_bseDPA;B2PjWTPa4Hv7=`;+JY2bL1wt z$8?&G?_Ki`;NZs&-Bpcl;%QzvAe5Tz-+6R~M$9dk#U%e}HaLZF165XdnI_zgZvrEG zX&?K*0m#Z1*$%7(B}^+bX+n%GZMt_VNkJKoA5%IyJW?)G;T*aDbp z7jl(m0y(sX12<-4oV|BZTiIL2^3z|d!|aF$9PwR_!(@otQXJRUvYwe)a{D7+oQz(Z z$CXemalrq@xL(e)iD{8%OHhx-_N<^1$09mXzJZ2r3$LRPrEkF=JID4@mU2`Wg_Q}5 z2&U8{9SW2Ys6XW>@LB!{ko+MoDC2isR9(As&ztx>t>CdYcd1s^1+> z?T$WhoKSp|LJ($3n*4KX&{zgD;6-6%BA)Mv=oq1fU6U=1_wT(j<<)AB>v?2^za98D z?5_fUxJ%U(`)7i9FyeneE|=36SVwgW0dZ`e|HeDm^D=ZF{GGLuT7f*!A4<3sej0J* z{G!6f-6D3#M6-8#GCU!VM! z1uXJBherHI{UD%kD1Kykuz4rX(twUXoB+wj%c*eCtO5G^G+?8FMENqA~fmG0iX(23Qmo>xc|ks z|3nEH{Y#u%-v;%h83ian@)ilN<|W;unhN(>^&&UhQd)*qle(=n)xw#|!mO>tW;XNbs3e(pw3c zipBl{KXg8!YgNeRoe3Y$+VEEA_CV(_OSlh$$*bX(=6W+UOM9w;&tQKo;BH?=6yF?u z*{CGga85wHep%FwU#9;oK)>>0hLz>V2saP?`1{P$gx*A4O_X}Eb(Ib8Zp7g{12Jr# zmpEAYP~*?N?iXATNpfy-x|CTnx(Yp@Q|GKT!23e%gPU{stw4Ur^uG-dsLVTIL1AOH z;u#s7L_ik|ElF=#TRUayGB`x@cStFnwnXP^D4*253Q90Ku-h9mYW+=@hcIA)29ywL zy17gB4VVPP>uZ3C$j6v()AqskRZY{1-Pr8izrDO)#GI32z9(%R8Yn#qL4SoP(}~h> zCLvtj_kSst1Uror$Ja7LvKNHH05?W_`BY1f;D3uDaxmElA7?d8Nk<+E z4vae{DHwG8;q?QgkdXhQkZV-`@mym&IJRyOr%>+GYO7czq{VHSr2SnkVyeatpQ?Q; ztQA9VV0hF8i26wUvQ6?w%fAsnYh0PgZ)7{!Kwu)*`gpwxK`F({lUjMhzx8F;j~ z$$vO6n5-wDX{*C-=YF!%K7Ob4;oSHuOr4hWJR>o%==%*g*&AAI*HHZ`DMbB(0tnV!!0XwCM&n?esKqBSWo)v2s!&D zk0Ok1M;P@JSp2JY-Xm@^hiFX(t>DK~Jr}#(+Biu*%yYUkFM4e7e4?uALI-Jy9t->V zo$b^`bKlxNQt;J^V%tlBf;`CRQR=+GKBxX}VSgeDY(w|imGC>DEuNuTo$+@9TWToA z_@%kO&K}(fu}nh(xSeiCMN_0}=^gGA!4}hm-t+ivE+B9yyw5R8pNe#B z+%XFv;ditZ$8K2!HvRYf%{HP$ekTfF?88SJselypaGi9ezXU38{3&}O2-|e9_vwrU zg^ZoPjqY(P=-cD5Vh$ow4axazoH`-0$Nfg{n8B*v;z;h@bGt})^YIuOW3_c25d)qN zxbM(_!P#~9fJ=wmel8!_>`kH&Z#@1!{%Y+x@D+A%qorUlWrWmF3Iy|H;E)sTxw}|A zC}z=`8rK-aQ(5qZ(C&^_Y6@^*CWrTV{L#-O5#wDf0`yy6w{Co~TWdiQj+Q zUas8|-QSHEGPxyC1O($cnFsuYtUhXky3-vJ2_ zZY|LMc`WvGR9|P5gFVVl6V8J=k6CELw+%#V0_=-B{ynf0Z8SULppCs*b$8?eCi2No zNg=(i$#-FS6n~fc2;#2zv+c#$K?;Qv`&y4;qKM|WLn1nPIV!UI?u|ot*JzE1cF8|E zPAcl-Y@X=*&%q1`+_kfpP7A(E&!)>yCgSg!6S$ail47bXA!?3F>_5aF+GVOl&4`=6 zgDA&q`~Do9-EVN!VDjQ9FoQ7%1>KU|+>Yycx7XiWrMmU7@o~e|$my6}CK$` z*E9zn2cV7W@b^*k>M$w7ybYjFmoz&Ou`R+-&Bqg~=I}?_>JCHM@k5F(D;Z+UabONr zR&mc16)$mkdg({U!|wlMiQoX1i1Dbwc!r`O`F3+GAe)mvjZXr3^7R=sY|?6cMuu0tSeBJ28&l`ZAm-{`wTK?8OJJvqVu?y&dFPaiajy znF5u8+^4R7suyDspSY_1>0rivpt};W4;abia)MPlf?d<)`8#e^5guYWvg!K+g}rhC zmEp?c2OrLOPH#b##4X$>p*eI{v)B9n>_w76W?b%tX0ozbK`Q8Cx!%lHV z%32L3FNhMIPU$4B+pL&LU=wICkoH2V4 zyqx(NzkRV5g*zQuvG^Vs75AsmhK*x=Eefc*c6Wg;3|Ii~Y@NEZVBDkzw}*dW(}p80 zi}Wc8vme$5g_;Y44#8$-fo22YsYS4m`|7u~H}( z9sroA$uBePKcSC-S8r+X|RoV2oXZ*Xh zZ&0mRIrx?( zqk}Zm^q%|CXF%=a9Ydr;nhWoL))NdnI1depa!L{oza$A(q7I}4XGSYBR{Zn+F4nq7 z>36q?{3;^MrwX}3(i7Ck0WGA6QTTZ=kIzjIr0(ZIMxm?A&xsL;b-JeW41uUEIZPJ^dlCZ(W+ z>IDDxHQ~!Iug7o^vo{FXgp_yM5LA+%#kschglsB>a#!WPc+_n3KkMmjiS)ESgFQzy!PjlebM@9fAeP@y& zzu2A^dzqVJgqoWXe|P8`{1@CmfT$~C(%z!9l&$E39bgOl`bQI8sFMssD8^X}A!h}$ z4k0LET$I)Bj0BsF0`Zoz>oMK`%^b$xN`O{5r|F1q0qnQl` zezhG$^c?yy)iJoIanK4kZfC9yyOWTrzSdF(2}v zodJBv*e$avXjwdHz|C%Sa86p}sx@`^S192QY?GJ>ENGbw+GsYxA0HuM6#HsT-1nk< zN5onIk!Y0i_`yc;)E?v9UR@SplkAP9#k(;w4f+G2YG-*on4 zQXmrW4p|%vta+I{L?z8tKPv1nosUdN1Y~G%7{AQ~gx}^6-F(m3yMX2|I>%_4v%F zcP~?}9wgZO)Eb9GRB9+48BCd{y2&`T55EkIo^o(*4VK`~bnR4A@4dQZUo)a?4VVg! z7GC#Y6HA<4*#HfhYteweG#wCQ*Z%apw7SlG7u@|~zM~iQ#2Y2JpY7QLxGka*^mv=K zU#&e~GiDGwUB)o-8Ol5f_a-Tn07fa~Dh??e+!(0+5_tr4+?yD=H zpzle%h@Mx6+a;xCa?HQ}FDXS0 zbT9C{4ejTQ=jsD!L+u(ebVDUwIYp{4ta4)&&gM#25OCPx+ZETL3*L}j#Y#G;n{Vwh zLj1fdB`n5`KUmvbyk@-mq$U@1!bOWq-e?@-An!MP*^E=7HNO;PF3EPAGZgC#9 zl(6weUv;3=D^v)=5d>_Y2L|>{93Xs}=4SCP1C~DmO2U795>W7Q19{B@rft?3@aSr% zYtt+!Se|o|=zhVT2BBCCR+6EtxF#^yCpgmN)K%;ZR4D()CV?YyfN2E#+cCxHGB_}M z_aBiY^YbhAcmK;shmS>h(U}R;?2asQVN3%+(ceS$Dx{H7g3ivD)WWN5T^VUu0 z1l)AMCLcS+SBg-2&@y~H!XpFRJM+_Nx6}r{M9D8kK59~_alb3w){2O#DaygeyI0Z> z{L9l((nAm#LKMt+ajp`a=Q-JrUyS6^f;-rA9{x9j3KC0;ni2RQQ_IFP@2@=qcJqVdaVDkNnlJ0xacb)K!2p+Fs4@PGb0Dq>dral4VbR~ z0W|eH_)$_pM78w&3GWSWh;p-;A&ZPD&M7*&o`2L6`YpWxP3V@US-}1DGEJYv7a#&+ znsYat6LrY%3-{d39muEGbAZ$*Yaf#c7k^K)e@!cTP;GQvk8OEp1Kzy!oU=$@7|*P*#-VdKe;pVUKG|PSrk1$d=hY$pGHge?*c7;nf8BXK~;yo;I|{ z=AmEcE`Na;)feM0lBwPz?a@lnW))Q6^c%j<*tMH7%5sUBijxh%n{;1hi*$;7fPPeIe}5)wudv-fN-kUXu8KSP?6SicAvO%60_qGFz~B9P4cr?eeKfMxGFD}xeUu^A1`&h zUw#6%tp|tl9onaQ7k$e|K{mO8qX9tvF4mp<_$&5OUoA^+o#VAkHl zbZ*^rwaN~IDe(SVg0`Q)V7NCBK6>)Qnp!F-l4YOVZaeUoYe)~!gjaPHL%!aP=tZYLj-6Ay1Hh8#>X=3qrUgZjg&)QiRGSd9BoB!CKzxq)s=(BHp2NUA)^PgQWq>X zVC`+*Rov3LG(b-Oc02rpDwJ`%h-rMwSxV)o3?uHBC{^vDu%%wID$AsMz&D`x$-#;F z&no1^G+^^d9^&tpfTtWns6s^Rtd_SP>8Hr~F( zlTmx6&H~M~-dwZ`%R)k*Ig%X(ny*A{=hGzZhD#2kz`BAnp=ouL`67spZNj+STr(b+ z%~dks=1L^wwuppwe=ke2un6rMYjxdGOf3eEsghq_^Tq4&6^4~l@Fltn z5|Ez}q0QxRTFk;qR`0{63HhN5X<&X}13}HOq-;@FbI}AT4C^YjxD_l=qS-zKI?bz9&UTmjbItnlMS=DMoEQ zJ9UytkP;4@Jb;1jjo?hdjCz0QmgHd1(^UxMoWLw ztN;r<+BoDYZ}!3qzxZNS4`n5YFPB5&FcCC48Or+Hg?8VOSLQuvD*H3OXtTWDPMWUA?aP2HS)W*7&d6*9T}C@R0$`)+#{Ig8ph{i{KV0{72&Lu>mI%tRZ%Hd}z|9}sHaWv98 zU9+Rnr+iXc1ZonHr%3TMr%V4IiuB~$XoE|y0Wg1u;&8i5Q@=LUxB{-7_!j=z_5>v zfQ9TFH&W<2`hHLUZMiD_B5}0}+~|)zt>4ZZn6W;J<^5e}4o`^WYRQlmZ>FAc6J<;A z6VA8(8Qg-u!FJo_W;vg#hqebPp75(}7AN}EXiWeMf=5kzq$5Hsbt4nPYIKlayXzjT zlT*-ZZRUeoI@Gl$g18?#1&0R4hnZvx1%KS(s)K!Dl8D<_S!f>wF_WELyW>{DE|K5$ zIsmVb+$;d^c!^=r?VxPOGOor-s=N?dUC8-k8t7hQk==;T8Kk2iz4%dRtO_|_O^ekOyK> zi=j);3Lw5!iv7Q3Ia@V!b0dTG+Nw&3nT+?rEo&c)g&!(rxqt4)M<_57c^p@%^Q(x@ znW$)clu9QcNkDQG`3pNM_z5=L1hj)G45g*OF{xYs#=qC6sy>2d+q5V*+pK19lP<`> zqngxYgGVpqSK-hCQE5l`?VJJ6Ct82n?G+iHDd{`LV@26b`BB?kI=Zg!BCItj;&|Wx zUDIY`mc!}+C4P~b{Lt-;mbTbp5K>^9-ncQ{)xT4~HX!1Ac@f}9MRffA#T_i=7Yu$_ zb^1{LZ{~38=VNNIX5TzVett;$-S|62G3zktdipwZM3FNV_@~S_BhSl2nKxyqx6RpF zr7wA092c7L}dU&SNg>&|16iZJ;RX z6z`NJZv*y-R`Gj3F|TB!?ZnUeE5(1z28P`&l3ahe?xVKzbr$|uWR97~54!doq@g`0 z69!pTNLMT=L_b)8e4q_E`7|i0BH1b&DPq6mB$R^3-5|{mE_}n28*_B>skY%Ye@q|; zqOee=)3#(k;K}aAsO?qn%)rLNUT1syO;NSnLVl&!7DoI!@`*QE!&-DyMX}}x<$EQrzUc{N7p~h; z7lUT|rG{*TC-zZdAzxuY@^+&Yh`*-koBPEY1%Q2FyOc%TghW_??>mWx#zTr-&%JW!UVH^ zgGUmXsMj})`koj5cJ!#3KdG{g8by-G?Oembl@Qjf@C$~|V)Wc!H)%?eehHbzC+qFl zsnO{+olRMnA>UcbRa{xKXl3Ypj;&m^?f`x?i1wH!i=dydJPj)KoJ5DHEqq<>s>c)oR z>C)5TPpDBz$fs*gYK3tMDwvcs1kvP~M0r%o9IR#b8M^WASxt{$kg_iZBaYFx)#Jg( zuu28F3!6Z=p-mx)GlS!Zyr0-!XDEO)Z7zH$5}cF+OuYEu3@6rl?n#tz*rZdC~4+ zzY@B=KBdGV!bMQ#{aS)07ZdzXvYDW472v>h9gGICBp znLC)I09B@9IhlivJmUqAhH1za{*?DCOUi^4;MstV_duD*W0=Un_il)OGeeC~do*aR z(vQj!5r>9ZDt$UBtV>U!RaD`CKkiawqBf`sZa%Za2)@T8Itbsbu#sEwYV)r4G>&?Q zK_sa3GG-u^|0J8-%h&yER9a@T#a}CN0NiZ*X(ur0okX7^|BC0GNx9bCUd*#7vAvY| z_Ec-pnSg#}W{ocuJYyldoiO_6gOmHrSR$$@1S*} zZ9VdS;>55ir+|)-#A(E-f?YpG(=1>%O>2vk=T}1C5KTsMgy(U!JS|qO*W!y$b!d3! zQ{zWm2e3@;mBdyCiV|mW5)-U0L zSal8#d~#-9W5ZtmxTh-Qm z0@E`Q#9br)iSHH)Px6`H_jJe38C5y6pCmj)(xAU3A0iVLdB1X%Zn172P5!cKwGx_( zzMGjKG{6jc+Lmnk6Y@$ugPDe7b1#xI5?q}61VlNe`Q}G~@7~lq`#A$uTl8j+ajODO zFJni!D3dZq%J8oJ@WO1JKb}PsGSn|L@78Qymjpy?D$Bz*-A?o8Hgfa8CU&n zV?ojL)Z{0mfywMb)UnmW#jJ-bO=`v07;F947<+^L1ax4V{?N%Y%@*V15 zSuc2**Pmm;-{BbXO7X&ib+>ltyD0;=IFhmQY<_JHsYUoze~B?x9-8h>x1@ppgn;8+ zlh6-aQ(A?BRO><;V4sb1TWNS+nMElF=7cP6Zu9VyHX1T$JxzbJ7Bcrh&6HWh;PVij zzgLj6Pp9OzZYXJtLYrP^cI%cy)4*L06PI3D7}GnG)~(l?NjO*;gl19TVrS>qlC5(V zU#d^;2bbvtlOdThVbH#(OALMiGhMDeV*PTf!&3bew5BnmWNclz4qQZ>MvE@0ECEOl zh1<^o4*VOVf_j8?iDeCIhI;(_8>|oGkVqqrR7(Y!)^aElf6UJx^_?%Pc^fpg z(!9rtZk7%)Ej)OTYvb>I5zOr2 zAV}`L*sQ?D66R_=!jU@7z+gk}8m%&SBu0EQAW@A#Pri!x+KRUox*BwqxT*G?_G;|~ z{W%q=+gMt))#G>V&wq6#?OEASyubgIy`l1KFd;Q`P~a>%%Imznt;O>C@{suN7W=%* zyr0kr?u8st-RTwCjnm9#fdtZuyse=Nv~U@BI3VP`!#Z*f$81d>U8*iz^=~4Q&~H7) zY?qeOt|N$H+n(p+5>@E0vbMELeGy_Tm?)y{*{XxoqWoDN(RL3dv0vth+cGZRXMeLA zYI(h>)KFqGIsPg_&}P_O;*h!$w&i=>e{&u9uD0WVJt+}CtpGIr$G|r+k_=iGLMPkYqbfcE0(_M_3l+$amO82(vB0p6Zg|=->GHO zfChi5g)i=?%hon|@>KDQFQJo_#=z$8w5$0rJ~T11`r_W1M(Cu#>JQ9Se9{_ghR-OK zGe+9?r~_m5;TIVug$t7}@3XWO=m?yD{AKH=ks+oealF2XaHaXQ)7=oea4z5I){)o_8f>3~n6q}Bme(tEY&p5*|xwR6bXH?{tlW z;)5HmjmEMNJwG_vyN(wqtiP$apo&z#AmH%4VG*w}Degkd9@YBV#R~r!oaVghU$CW7 z9(aIj2CF?C?uqM79kDo!dy|yrWi*yyNewkZ?~Wg9F66xKmwP$huHtd?3UM=QJL|Nz zx14r08+I*U=+=|8)|VnKSX28UU4)9E%c#kxYfP`8 zn1x!z28++xL9FZS#f9(5-*Dq%jg*EDAP#MxMR!6F-}};=z-LJnq7CPsQDQgUlz%yP zAK5#uXTs`N4tn}i1uFUUt*0s$OUQ`D&%KNrEQG4;E;<8PX6IVV)FK>9ZsjXnmu2~{2Z_Or-J?*obj zAbPW!F)aEiKKZ%vt<(rKFp*9Ez?S+cP{4ajgG21Yp@76qn{}3+_c0ElKW*w|dtZb}-OaUJ1ub_TulEQC@K>%s z98C{y*z>Hk7TQYoU6Q50`h|H$rG3>laQSAL=lia)_8}Kxs>Ah@30;S^W+B47y5EL# zn4Nmp?VxmJtw6Nc*Wjc^tfQQ?L|^kZ#La|;z}4GYkIOC!UCaqPd7rqu!^n9sX4l&u zy*5THaoL%PZG5oF#r0wTiAKYfUtmP9g$_-n#6^+*)p_nS=t-p181UyNz`eY6;diYT575i9hF=Hb09Rs9DcN52OW* zI}A6(kY*~-B>S8TRbDR53hAFOX{5Oaa=VyxEZ@|493>x8C^mgM&J)<87YS2F(z&VE z4|6EWrVRv4Q8eyeO>m@6J|ZF}j3Q9b-OFsh>G$o~oVmHAR@$W})7bx%V=E(kWb|Ja z(6E{zuSDOvzBkxue)H$2YJbgjJoE9@z<@;Ea(3av&g1G;`;q>}{bd2p6hHMm4Dbfv z_x!NzOQCKXM}59N|*YW6CgwbeM-HUF%Cv&1n%850qizJGHf zaZy^6LzQq9hq>;3gZMrE_8Us%dgV->`lfbk%kyTdh;G&)Kqfdc&9kk~R?lHGz|0uV zZNIs+x_i}_Ik%tXN?*N+U70LUy|LL6VfC$HFO0Y@UK|rR!+-PE)uYEA8=-Rrn&?j{ zM)bsGVHyP8PnMpGBS36@W@wxiGp8h4S9+5i-k&fn@%yYK%ava}fErP0JCZsyt|n@8E+lag zlhmJ-uVUnu?YlYqB;qE;acJXaFRRj;GFPIA`G>e1xf0zsRLwV8>e#-O04JRkcUl$9nh7P z>MptLD^KBjR@8VYgKn5Mfq2mg9xoC5?A7r0c{#foY&HWwvaVfQ?u>-vObvDhlfFS= zCP!9)xX0g6GGfAH-+uQpTq0ZVgOYe6KAm%0H_@dkxM{ZPEmz5jg^iyMy8E^j?=gfT1J-t{Tg^ZxPbQ5lS6I zyH@!Yq^Jcti^m&ZcdyEW^0*y}6Sw;$-4|FC|IlBLWEAXt@R|5qM=gFjpNCqn6A#%h zLvaEZYD(ql&X*RRAD*x8fe!Kn2>2)v@TjfX;g_Voik8<4&>4+F&ktuui3nZ0ZtnqG zDxP098BfXv#Is6NYHi1sse`q(URYQdrm# z98J#aAhMp~{*l+)SyB*pq$Ie!-RL$q`w7ld=;`3OoFLEPtq+AXo(lM4jwF567yk<4 z&lP_87h8Iu-bPW~6=zwg zdNG6E{UW)&dtk5d&43mCkNdGo!lqqG3sa5WSBFJgh!Ib0)%Zq~F#>oNXow?`se)V| zPK0(ZzlL7d3+>?im5f>9IpoPxyGQzhI4Vj+_E3e@6s_%qeXwb;lB-7(C!o z2Re#gr1|hb9@S$FT0q z(1nsN59+rDe_`FOWl~h}&9eyWa|p;)!v4ay(YwH7HT`RZcP)J_s)%mx>=IN&qwWb5 z@u)h>dEe#X@OhUe>4AmHZG0kI-=#unxva(yi(iJe7p_n@^){O1zn9e1B#;uT1(nY= ze1lSJF}95r4kLDG=AC>?pPe;OW}5F+-$3JOV28Gn)2p$nviSbl15V$oc#J5fo09Ju z2!g&V(`{MLd}ko&hNC0KD)+vEBz_9=EIqp(B|dduct!r{bo|a#Rb$DYF^LaDzEx*e zJqS+E4v~t6J%JlUusdNqedtarc^H8S@yjS0W#nqV@ zxv({Fcg^2X>($ce480~9R>94$emJ|Jyni6`1X?c&8x@ur@t~^0%amnrukNm*2jt0A>tSr@Bel9&{G8 z1@H4KM;`oswG+D6z`%WQ7pSNJ0aZxfNZ`F4eqOtllMe__QX9N?(0v4bv_Gg69w4Qi%y%K3H=k1=%>BX>(c{lL9-%f#FFJh)ZIqa}E7RWe2<8CVVCaG_K zDYf6jlkD1dzT#@YWEt4O;_W!kl)Q4bEKm&2+kXb&T4zSOVUyt^#JSf^PRU{rrFp2e+- zE8kqSh-+CJ3J^IR56NMfe14?AVY^U2`U}q3@kS{sbjYFef@q~t$BW#w9X@5yRvQLw zp*2gHodLG(rtUtglGa$KdTO2E15gn&jW{U!*NlqSbQYBFCUMG?;8RT(jKnX1i7Ap+ z&eO`YN>9MN%KZ5m_{J$O-Tz2(Tl1E>!5=M0w!`8Y4a(mRu}?{j!yiD#HO;&9yka*{ zrT z3q1BACILt8j5K@NN}iIR?X@i8Cz+jZADg@$&A{cc*1r|WNY;AkSSzat^G z(6`-~$^{?}Ib9&%QaSbl_tu1m)^ngri!Gp$MI!wWcsT`~qdecCK()8kTn`!f;nS4} z3_StBm=0hSz$p68{}iF0;*b#V>6E+1X>U+$I#B|)wM}9Mw_^aYv1X~m$piRKWHWzX6MJ;UX zm0D>K^MLrcJT00H(zTWNDu zdhC1!3ml?_=a48@?a6x&+>ZJ0s{NduUbs{JHvFM@T}rSPE9LR#$1xrjEtAyhrcGgq z>8aLkZj;2z;XTjm)bx3{b4M-xA#6)| zTezLTE#zXn+}prVoHHjC z*Ys+{sy1+3ML{q3TP@vMNPo@T6VI2`6u9-fuj3@9%?I4vNS>H=_d;=#mdKk+eV3$E zJn=n#@}02-t+eB|eD%=>pTb-y^I$vltoL4e7?AIlw&_``Mdj1PyNJ@#1>xqSg4_xK zf-b08OD`Z$H*|9;#+o6^>3%EoU&bDWfOM+pkJ81|^F#O4lh90!Do0Vcb=q;l`PX#k z9M80c#w zkdYDx{jiW7mgs1WpnwE){SM~b3*?uAEdvCsA_(3oJFi2adUl~ySR?CA z*+L-27K&kb;m~S{9n>`%r#FA^=WJq03N*^cn^Mra3rp&Lu{?&ZAanpH?upB^t|Unu zcVZ@5$ph8yGv3S)ouziNxAc+(qLhQK=yhzZJ!woivF<(Q2-r&+#*8=rjKt$*mdee* zH<$Q?!s*KkcndIJ8d8IC9dxea!nxgT9@0x||6$f8#ut*E2Kdj!pu3{F2a9TlN8uGr z>*@yt;O&+ksS@P-v+-Z&qtc`5#Z5_TLd191!oKYrhqgmwnz;pJdbMK*-=fNwV%B{7 zAX0b47$9P9>l3Z2X1kzit-d5WzkLC4nnL+q-?foEAB`oWlX`YGAe46n$D`K0A_b$(hV}Qu>287m&{q8xBCVO|$qD2$GjA(y zn^~ev#pV*Hx*9fK3YJ!vyY)D@MQ{XKpqtYd;}c=k%1xPOi!Cqyw|={2Dq*XIneVfC z9~P)T?=+EG-uof#e`bv!Q#=dC{91su`w#mX0My#|Kd|Pj&02`6diM#Ct&#*Fpe24p zd(;{(MA;l{rNtlSF*O4}4RwZcqb$@yuF`e-^1`K)cTef@8@e~2)kcm9kQ2337!cPq zxz?k7J$pe9{TgUDi8+%d7w*{Ik|5|LSWsm?zM?k0< zIEOroCx9qRZt~KwmBcji?og_*h5wD()aZpq|4=j(e%d3cm%+R?)&T)~Jr~6xep_J* z{ae50spZvhTfN44V;b#~#G@U}-_C^5S3iFTtCBwnB~hXJ(~B_$C-XCe6ME+~SuDvb zf@)on!`nYcEWJ|p=_oI9e?frr>2c-B_AaNFn(Qz7_Q0?)GaaD_C~QyzkU2|+#eNg0 z_M!}J3>Aa37dAORKL+xI(cm*lakn2Sim>sdsyJEaHckF8>eM<{n%2y6Jv``J>iw!= zsao#$F0=chmI~*?7w^WYf6>vaPmEI$xsOPnQguo_U$h-lo`kCfY3*1nnW||P4yY}r z1FrKtX<504fJ`oL6>*^Cu91$nAL~kNQAN$F?@t#B^m9RVlh@SZYQ&ae#|x~4xWtC( zRW??n`uES8P-ts#-t;r^NvGw=7fhptM5QdTCLpU*V;+to^ zj^T=Q#t)7kq%TDy$$w2ENDnN2lm)>6!%zQTR!N%4D*ZTXizo;e>6HrX?3zk7S~2;G ztm&`kh_#QMao4Vtz(|QX@lWNG9hORc$+$&s)nk12OUkY5&2e$-8c&xXUD++-Hj2KG zq_Xeb34PJQ!J}iL>1owRq*p@X$=pGuOAU4Da_u0}MY3_*HjA=-@Ns*Zcu)5Vp(bdY zWp*|gXosN+aUXe;t!7u~`xDrQYLt}(3|XW)Y~yHViJH8gkOOs)Fw9?Uy??!bN{?7w zaxg*fG;uffc{8{$?c;T0(CymE@^m8#?;{m9Vk7H$Ru$y3VY0ySMa{wM?Z$_`*OPyH zK4`fs*y{6XIpPIMm8QXVkxr}muVQTFgg{|5W>Mh7Rw+s&wJLcma~i1OJ87!q448$( z{pL|;8IXZY+(SKp;v6eNBu4`WU1a_&e#+TrffPsYAnucU7NUFS6ubdQ8j+YyslVX zM7aX^($y;z^8stySxo>?oNyR|r>U2-7$x@|2!WcELV~@UN z-h3;J&6%9K&~4lkkVJm#W_pxh6urDpsI+`c0P0ZVWd&WY^>H#0QTAT0x1`N75h~u4 zdpiAMtW9{2#ftpjzT20~pqAZHzx9ZVZ^cMg@?n9<$KBs>0!gU~jLlIbFG-nQc{TkD zsKoQ;!rnKDrkxNy6}8{)&5l)L-Z-Tlz`M2x<{V~3{}xT+5%_nk%?u$T3T;LyF&0bi zsHcC~P15OC1*!#!wrlQcZU356-dfXfF9?{sVU7;%Zd68xB93@RyaYqL);zc=+B}=W z4i%3SR(8T9oB~M!*2gK^8yA=c`^P?Wn(<#0jPvA?6P9m|HDn|9zeXpZEL2?EeS>N_ zpKCz|-ZkaeuUPdJZFmIyj8Xy1Zk{pf1S) zL-m3+;n0@7Kr83IT0~|Yp=ZL)*aKKgA2=M5~^T3>rH3^YNiZPkvWg zVb>1c=;cv+#OkVyFc*2?*j>p7C{;6JsX{qAZuz&Oa0U5o`I@a9TV_D-tnX24-m|Bw z?LY$Tf-&R~j5!J1mmI@6 z=++=2)-Z3LFS@v<(tg6Quf@R4__t)>_V?C&H%j33>D^Fhr^RW1pSurAe|&a#y7!l6X^`&#I&lc~wW?buGq$z=O=a5V^RHZ7nL5?q6Cz}j z3H_p)mA{GM|0boCwO$E0k4}l3l}Xk<_cW%mEWCBbTn0NHYc}FSFisjX%YllO-CdeB~vIDau90uOlcx()Uw88Bwr=8>m;hH%x7V9 zpfFW#t6(futP0Hf6As_k4xg+!nqpsSmyGb5`j$|W7cs5M25VR^U#8y&YDA1_Cu+gB z%cpA|G&A*1MC4c5Z-}!U31rltTud5I_Sp@7zxzC-Ywwig&d2OVU8_iX_l@6T?^{7D z_T?uKR>hezvlNW`#ha4zAb2e!GbJaeb^2{`QnI4?%@EF%%jS#)iwPwf2=psom{0I6 zJ#hF#2W!e%b|`b|L8$qv>S515;*1l!k*BmMUi~}xG}o|1Fls%ck2Z8}*Oy$^S&qQ? z=R_i9s7tEPy^52H6`6B5^L`EAq`Y~Fac)a?4plSqqP}*p6u~L|k3!$-1vEZqr_7GRuz3rgJGpa^ zLN^rt$>kyxgfAx%K&0~~l+}_Xk(woeYaxXWTU7eKiMZm-OYG8KIiT%!kUwpe^``Qu zb2k4Cq&yOJs@bbm1-lvM%9y>U>D6H1I9zwtHn?rX<@@%BTG>%nt>hleye#74KVe zd`Va(MiaQGew4oa>eYWrbhE1GMzwQtvML>6S=r`{1A-hT2xo|~#-{vnd10aw{=>te%u*Pjr2?Bv zppZC(qVGSo?ib--YJ_LcaEl+F=jB&D)3QUPoc=9QG~Ur74XJL}1q%*5DMOfqeS3ln_m8Fn3 zzX4@(frJY~g`g|ep%KDpjLp6vM5W4auCUnYs~PW^YrMumzf)f_$c?5%t;o*Fh9z=! z!&3YhEw{jiw6<-E%by!-FG}5=oHk~}CFm1ZW?vLVO)b#Eu^OaIIwrsbJ)Na0Fw+eC zGGTg6=%!-T>sU%>lqTmh&Tw4UTB<)@=#LUB1&hw0optulfV` zS=uk9*sJ-?d|3xgP2(5sSAZWdv$on$5a;%@xx=tL`^o)SD1rKm1DMc_Gx`vqcC)yi zefynK%ViD1vh(g9(qD;Nfg@3&h}+2ZKbTg@oJ#v=d)wFgg;6K?nCEcW*e(;?i(bpaDWiQwbopCtvy8L+EptQC{<_4wqMDm#Au}L!n_SJQy zMD23gS%fTyv0+CbZJUSXY)Bv#c&ccOp}R9`&1lLwYfxzT$dz>Ga$~!2XQnb0x+*3K zBhhSS@N;eOy5LXT-`WYhQTUgj?Iotg&+Iy1JEdTHw!87xY`?H0JNaSAjsD-|BUYcl zk7iG$9X7=-qK~LqkvxSyBT1`4GdVn6t@hxb=#9<%BMgWh-{LOSx|fue4{};8BJvvk z86ZzpfmcUprX#GvG%ABu<^jpu>XOZ?FLS6FMfO{)z|^2i3r&6(7b%8t<@Z7BGD znJQbRkeG}HESTb`y)ZjFEflN!QZF>`8jK>Qp8S=(nS7Muqka`UxH&M4i$$ke3r&zy z47kF)qQmzT{%j!`Y!-}<&Wg8^ZfA$R4S*_H^DBt=h`;$}!JVM2={j+Al->4WM+7uNmP0-3G&^<705$pabs5@!5fN-JO# z>E2(4*uHqC!8vf`9;hZ3Li7w6ZLE)vheQlzF9P*Wiu6?#`H^NYv{&SZvT0Y2((Bl|7QDwYYY*7~62GGvD=^6s>qJDQzZg8cn>;k8@?syy-g^@jfE3STSpP+BZ# zmp|^B20XIA>T4Qro&8GM?WnNOQ( z%lAGwN#kkX`dSd#e>VUVIHd?&JPAPwI>iy{!8aDOt$*HN-Y#6mv<0Kc_?pPoEtX@u z4lp&nbKfmYycu(mJeQv!KeD;3nY3_J&N5-d=OD~Qo0|!>nX`!FQ+pH`I%%WpovV$? zEk4co%ttELi^%~9%10gim`N#qriU)2v7{Nli|k%bWr_xrKvW86xX<;NU#>t_MwWq8{pVH)iGxZSE~$$8>|M+nGHe3-=s9XDZ5){+tT| z?375~Lgp~vye?O*)g6I`0wM;6<$2P+%@qEZ&uexNlG$2B|Duo!-fGWl^JY_McsL=M-pP*uNBh1F-HdDI zIlOWhVL95&!~WPMDdhYUaZf7yfq$%qd4;~?@3EvmU(!mAc8KO87owjcW3fH(|@}H@l(EzXxJV-d3*7 zx(SetAwgX!iWuQ~a&zZ>MCO@XU`!MJ%F48Q%BBgSWKQgmWc(IZr7XT!-CDapQ{zst zPX*eBlsuA|D2^2{XqtC!H5m+kzw0&|zZu&$Q`NeD4&^i@7k*@bDPTp@03~O)w_QaMH%xeRZat_vh&7X>Wmx>-T`nV9-%!>$rIluc$E&inO zs`~IP>w*9ei6KDJjT^hbf40;=yPbo)PEvK?eKn9FT5o7}iQjCnZogup>eIx~W~$p1 z;3P&jmC)Kk_^eu*|GBxRX@5XcKqTU?KuTkj;^|?U6#(_UVh$FyZ~kLWr@jtIb!dC;7w&Upf++Y1TO(IUtDc`Fjr>aL-hy0ecDjys3*4YG zvs1W=qO6}85wr9<+&Qz;gRO+K8UA#ZCgmeIdtb0_^Fr^PhJR|~6P}7hxEc^c0>qJ; zghP?oY<&UpUk`&^hUoI>@k<2h-@cfToy8g7t}O#BM~-5S?vA?0vSon8Y^r-A9s~1Z z2FhjE(l!ivP$ySWD*12N0$(HCc-xs3>K*2Hog3NgF!x&v2p;?57rQMi+TRDg!*|9w z8}5bt{_18O;YY7K%14cO+VN}t-yA8DHEV$aim2B>VK~@Qw&y{iH9-=H$~` zN0adeM)i7ZNI@1Q4)=*jt4RL<*nB%K_8~*W`{h`YY2p6L#Z{xMhw<0=yhqv0Vef*NXQrCg14)x(cZf_ z11?2YYhL1{iU{#>{|K?4KWdRgVN z*yv%5%PiE>OJP@LB-IY484H$5QrrX~b>ENJhUU9l(b9PU+avG;F>yxc0Q| zjXFnCcKd&HUWG4+>u)=vnH8(hodwcTThMhDlZ}_*nrl;Ml!8>&uy7Qm>w;nclCf{5 z*JeD}+owT&J+Vy8g)i?O!qS#PoAP5D3vM4gl{Fb4=Qlmj!<~Fw#!LiD{*rdl-U%|! zH7xqn*nK{2O)XUnsT)DK>Hg&7r^`0~>p-l~(S|(C{C7ZH{hrJ7YA&WUA?W9*{qg?r z#pc}s;o|oTU+!c}iLG#m>h0LrMhC6k5nCyG&Sf4Kry|tyUvc91xci7NIqh*eYjF!- ze0P494P3kh`}dT$>OtMQ`&zR=>a2XPA!O};R3_*DsLZ1B?q&18TE+hji;5z3x58Zf zmxHj#!VIF+LBXrMF9Swn=@z{Au=l!5zR!gYyQjc5xu&R!ci1T9RND=%zS2$)j>uKec{Q97c(H_5t<#TXQ_8s(`P;^VZA6n;25SN%y4 zO*|w`D}&i7@d7gWa^GtzYYM{lrx=A}wqgPz;o*d`{BlRuDddq$8^-jN7kqrm@QT*K zc(L)$Iq`=o9j`EiNNSy}-fNR)FyzhJql9V&ju2|MElQbTGF=LRQV|MM54{=b3N@!K zr2JL0a}M!5GqgMHcjE=u->GagY+evAZ^J7q>b($|ht*Fh@Y+W7j;E0)wN{x`Eo@G} zP12XPe2d1yBZ2x@dkYHMyEv=)uuniHOZEG&@%;c97@e$eVR1m&CeVd4lp(<3Jl>*g z2ew>Yn%zc-oXH1`xw;pKo9XPfyv7l{g)R`2Sv-pK1BV<$z9g%V$8#w8TBEh=N6L2f z4p-|NF1SgD4eJD4uVty+2}U8vaR) zZn(e6^j)C=8SPN10?o2YHGGfG%p$d6!}yx>WFU5PndOT4p|V*#<&uvgb@M|Ir&eoQ zHWy>RHM$BD(PaG44&Xg_-dsw<57PF`jiXuWa%^tYMC-Ps<|-QsXXJl5wV`}IU@fDt zPrkqMr#Zy0h)xK&k{{mN284yTo-R!PN%pdCsP}W$@SAJ%Y28cT-yZHqSw^8>8hl(P zcam8}<~8EeWZ=ss4JF4dQ&+m0(|Bwnw^~dnf2%WP7rl_1$%>N7iW?O;poLnMF^-!_ zsnhNvPPYeHm3M%yowKlAYb%pOQ=q*{m<XB1&o@7=asoP@a$?$$;oT|} z^Q2h|jgFJA0i{Rfo^y^<(1~2aM5;yRoi>=5g|fpz3jowT*Ki?ygOyhrzHF6|=xJ|8 z7)oky4hvZg>!J?V*s3+cg9hm321}&ET;$EGJ|V~bpYP7VHV#ZA?z#S58(um+?#nN> zHrK2VI(K|QJER)Hwz^$14xsHA$XGur#~67eNl0@W+s*RrjHTLk1K6cM2a7yzw%Q*! zz9E^zK$_LK9$$PY@4&@l-j(TJhT}bFr&^AFHbG7FV8C zHVuhsc@X5PwMMs4C^{nam|Tr>?X$MS9ocTddSw|jH+ zEdM?NGI-HQfmQ92PF-;QTCmt>qT_b_1NQ#w@{w5om^F(!WGwBypG(``_i=0XS!ykS`gbun;xp7eqi@6v5WGeLUQcI{Hll%AVH| z*qJ0kOKMQ^nG1O9;=+upmFVCeSJqBz=*{_da)dfhhxhb~b=0o8Or#HG;7{WD(wEyJ z=r%u;K3hq4qUR2vo>)#GfQEY&mX7O;nO#`lgu3-~Ng5Ox3|d~wh)MbHtP{}0KjQ`P z@XlNxa*{EVnq-U6>qlAm_9ga>|A9&1DI0wO4(e?!kxh*s!H!WG|}2?y5&ZjW?sepoB;I11!H%$dhcE|CTx|mB#-MVpiG4cDDMh( zU24EG?^s`P$+13Q2MU*>Kr)_+uL_YqnSD9@&4!WdE`>Ru+KoWeL!20+$$7Evh*8Fs zw&^zZ2s2C=ZcBvzcP@eTvB=N=(*l5}Q|EyTP3ygytT!uISeP}>d_YjwC>b8+v}>mB zggDVR7a2UFKa?y#^)0}>)g|&l6F}J3P~UwL$|m#$ z(f;==WfQQpe^12{tEwj)fip0`7sn{RYf$ zzY_xI?RJ*Yh{OpIqn2&iWax9o58KGm4`p`I0QqTUm7ryQV#%S1#c4~w2xft*di`k@ z*P|xVSR29qcpoZb<39nWC$UWfJrU*!Zc5)Yj;lII_zjM&3c^^PBmsQTUSO+4`ATBo z?=tmm*+NAf;GCKUv@!Ipyz9WhnM*-{){-pAf6AE=MHz=$E2;a@lEcAc>7q zVoN5%LCETt3$Yj6WxQZx%B{4{1sMIX@LNreWy4d@*iVs@4g+rcANX(lfZ2LCVrN6< z!^oNbDB{i)>tGQzje6ofWyVW&1*;t6awjO1%n7Y*rqFc=aR2FO0AnjmK&j)==S~wt zJ1~vDD>i=^+f<2;+=F1v8Q(}#wdeB<*b#v)xSalA`&pa60&^z=4K;~_raDE%3&Qk% zbu6ezE|NgWa0P-Lhm$)fx_xAc?PcrzImHwLzb8Ga0lyH!m}dmxW6Ur<7LD8ceIs6y zRvq=1l%PSBCfK8WNC<8EE7WJ{HxxYGHHUCnBo3GpLcJJezk2mZ)s*R9%8a3(CMd?7 zy($CU&D!5rFuO@e%~aaSZ}n{*zV6Ie-c|R-ssoN$GnFwg)i8RwNeb2dK=HWt#*O!U25QTCTb6A>3Qmse~0;V(qE zo;l{yRth)(vS8YSy6E0v(t~H1t@d$K`7xa<6_FQShcxIuc@wMWn%YwIGw9Cor67RV zfSjdUVS{~yd(es0BJ$}BX*?+Vwc4}F+_)P&wpHf|C;u`Jx<5|n)>bW(7to+aC^Gsn zDNlsJV*TphH?a%jP5&~vKt6Ly<*Ref&THlNd}(sKLblPEu#-^Uy5}P8m{i+F@ECm&^GB+ z&vUuU78@T4R9UfhipfRI!mP$$;-nSj_YVHIV8?;NmKu$F@ENU^2czDaYm54JH1~Jx zEh$?AG~=jMl;0)*w)$0-n^oMXXIaP?9W=utVBEHEZq4@iU4dAx`C=5R@Fx(`_P3Ia z=Mf{^5XK6=8~UX6B$MfB3AjJ-8i>YpLT4Be*r z=KN>usq1*p>aYdNhK>BX=CIg<#ZMu0q7}6#md6kmFleBsgbtzXep1Gql;{TtFg)WT zYO$$^ZoS??{%6dbb3Ym-9Nw>9-Mn`=XCQ&{X$;&j!L$&LZwMTl{A=7@#hx?NjW};9 zk%*@+&CquStbN+IKQh63h`$w)liAO-ho<0R8-pM{^w_OrUH@;76rxLeV)!&`*UL4F z1Kg9mBVB0Kb>wg3ie^tkCM*)TnMyZZhS`3$X^ak~eJ!VPvr_yVR^uap5o?>KBDo3+X}MH z%=>0ASiQ-87ZZuiNWj!n5x^XEQldT|nzAMof@ulBqd;CUr#0^zlfj1>icoqlY@?=m zIsPZx$ophwF}VJ?P%%Y=x^}yvR7G|F_ro|nrNt16H}k9gb{Sv1`>+__x0>Rm`e@qX z&BBQ>11HmD13EI@kkN3Zub5crskKw0B}DA%{MT38`ge4OO2ltf_xQBC)P%PdjTJVA zP}f-!fX(!;y$BPnT30l)pLmh6$p#4IxUOU#wM3c)(3VGgXY50^>Me=i6n(zN+J&y+ zDRkHV`ywan*t7o$6f?sv5Kdep*@4Fn`4dq2V=8|}d#*?pM7buOGV^T4AsF9*orl^* z_9aG>?SI^yV>VZdh18Id&(!tQ^CKMb+f&r)jxz&iCx&HABDNI8XDZ$?L@L{k*ci?W z3z(qwqLu(2WyZ4|_59XVYlb^*4W~6{^N;_8Y4=lmY6DBAE$CFoosSKK!?%UVoNmUt z9j7D-#Rw(T@rslC=pe>O z%H)8z>j$d^r=dNK&52Ho85EOEcZ8SmiolIl_`^VxDG^OKY6vIfN@xl~@ zVWymD29>LkF@`pd+Qlg>k*b+syj5sa1+a7{l-VJc{6lELYj?A=F@)YrOYjNZ_~|bF zPJ9&`gsN<3e9(g?$7wRx=svW7zhzl7QwA~)2z6p?!h$gLdFZrp^Rjc&`CH4uQ(yFy zB8ddJDsCvm4!ScknDhp`m2FyqryZ{fa0n&Ut3x~xHni?tPB6~X*#HFr5JuRHc7b_V zSQSd+V2=f3bu=DV)@O6G4zhNup}218WY(NPU4IFrl|!X%Ros`;Ro|VRZwNy?OVOmF z8@tJ0HJaQJy!68igX;Fk)2}VW99k{u3y?|xwg-~?0b@4*$eVfyOc}v0`^%Mv-2NEd zZTrNaH=KXi^XGI&)W6`zCDH^R{s*2hvs0=a{jbc>{oil$n!ae{iLWp=Ba~Sl>q_w5 zFD8wg-j`_0nxNei!f#o|LIXomMvrD2{q7HcAIc7DS8tz@%YCv}(d?potMSgCyVak~ zv+qCzuP5$mZ~10h_Hqz@5>sAY_!)Qyco8I2;&0L$FLg+cZp?V7^=auPH2^m$7VW9%rM21Yt-H>uk zX`ABkfCf1DiX_bHP5Xo2fcLf{v-<(nw7nWz)qt5#1&nTWXv%lxTpNV3>BcM5SJzlG z7pb`-Hq&tYG=`B|di;zJW1^g zA1!2)ApmOrJ~ljaFzPAS?gF{rQd84qZwvq9-yO!?Opyi zA+UFO@{rYP4q%?!w^E0rgI{}nqWI;m@V0L0dsM7X*pEzW0uk`)$}jMP@E5j|D44WR z)QC|fadzHr=GV6!fqyTFBSzI88Q5YrCjZ{5AC_!b;gfwQE2(?Qq{XgEJ=!Hmy=8s)%Xe<{*UmZe4JP`s%qq+7 zAAzI}_e*VOsc6Vpo^drg%wkheR)XK`z9aJq_?GJ7I13pEZ;t(vI!6HZ(2V6S3-WYV z?(0q>$HtOWK=Ryv^PqvWCQwZmss;1M#Z4p>MV&3bUO%Rly*9#a(A{USrO72%NmPx0 z8WLqB_r9mpQI~I3-Hj*wk{HtzNQLR$B`RLtFp5*S=knj^OSFxkV@2}&R~c-rNq38{ zC^hPhoPXuQs#EE1+pmhQ#3mSCx~^R*rem1TQTWDvGc_ZA_#)`xC%*_Qy>Jm@G0y62#sXu&D%CMf?@ z_llABw~<~$E|ao^*4E1j7p*-!b!L|0nx#b3xUTY_2}vmqDsUC5HqN>wn7?ZHKaZ(+ zzsm+bidDv>gw~q(**NaRc$?af|Mc(8X-U*{4){Bn>I6OWj#>R!R^#5tuU~RKSEIUH zeBaqe2kecUWG(AVclwqnuPdiOVeeiok&YVfP2hplz1{zPhP{fBnIV(K2$#N90`5F`1h*L6Y5#5+dwDdc>*Q}u8y$xAMltE{(gN;L*WKA7YXbK};Rr$lsZOC4Xz zem#PHyPoLpREo!}s7jP9YM;FVPt0i?G@OUUFrj1jXgT(KP1g50A zxCbUh8>;&BeaPmu59`bhz&^|cG>Whaw=nj1^^z8XdSz^E3+CJ{pt!S*L2h>zjiN38 zDm)FIi2Qil^HwNi=;Ddt6#qA_dULT0m7H%r*+xIenn-MFzSs5gf|OB*^hWFDTVE5E zX3ee(H#EPwsKoovul^l{vnAI9xR@#u|CxaLvz!gL3Qr8rC#tbmd>--8<-%zz8VVOb z^9c$bU@t8rNIN}nG{e47_#*W-<$iCGO1uj7|FnQ5o3ZC_+VK%;iHKL(TDz`(^&y#TO)shR<&7ab(@etz6D3 z#Kr&rT)>0>{fb+bCer0Iz4-d@{l5Fx_i=%oIn)`g>YnHI!jw1KSFlf|tt9muvK3f# zuSmyT%wo&FQ9-TgauYv$Rc`*T_M;#c4J_I4>#L+x=f+a!2vCl!_n`H+f`-tW!J4E! zOccEU7V@{OVx%YCzGoiQ6+FFswHm4L)sVTxrCmzie0J?I^w9l=)BevlG`To&KwH}3 zk18N+|D8fpBp&t{^cSOS<|2P1ShW~3=-%A69>=9{jlDl^t|0w(dR7C=uyD#1Zx8yS zB2${DbPXfzB8UDA#58h(XbA<35f+(bK2*c-bzi?9QVAKE57^_y>e+3dZBAT16ny5Q z7d?PK`FI;*-*-1vY#MgOq6hXN4b?{NB4Uk&&~@}&@V+@??~ro<^y0b-Tq}(UWQ0h6 zRSQeJ#zdono{#uaB+s8uj4Mw3`?UJzoLuk7w^ZlLOnLIDfX($(H*K48wpSx+^)4!R zJ5Qf`lt=~ih^h~`zj1uv6l$n?L4Bh_A6@gOxGNTy@m#jz)dM!|UE65Hty4oMm5KoI zoa^gPeUfa>NQh=I1Id|Eu~;wpkI$Ndbgu9y2H(b2>Q63rJ-YorhpXH2qA2n|s@3zK zyNoUCE1+V!Txm?tug{R=>L|8Zm39bDZ{2RtyQe7eUt(!L#LcMo%XNiqzkefQgH*N^ z1fOM9zUT5&@*ml&zvUF;+w4$U3TBC`ihhwZ>2U~GS`+qaS_t=Z>tAC(a3Ak(aB?5} zDq~dpQ2%en?OnaNa!qVb_s=FD&cAX3d7Gat7WDU-f=35)zl;d57`jWiZpB218tz9OU4c~5u=hyBsNcO6Bh@?8+;LKicLW^A+uT@4veLKt-*`U4N*w-_63RQ zG`_rl$;$7$NZ}4X%aU?Wg`R`nO}7ve&jnOI+jKQd*6F|M+V*fm02?ZD(N^v(_BTiM za8<8*uo*k%(zR4|ms(39Am~X&#RIuVX_PnDZv|OuUliKQjvjn5d*x#&&qE0Cplh?X zHPIt)N6j-{M^`plP2%{{(W7oH_p3e<%f5(4ZKup-<(Z$$2wk1_WE6V?;DN>Gdg{gAfF zTiFANTm!289>jC-o5lJyM}kX-A~f&tdHW5Qm~rk(kJ|DzTadES1a)2nkgHf5N-RB& zBq*?yW!Wydt6NvYFX1?DkS^>Ubj=i&UdVbO=5*qC>K31MCjcbAucUow z^xv23_mx`JMPH4bZ}rupSpK*2oz1dUvov-@6`i1pZdL2PE}v05e9_v#U6sprDi3+~ zcW?RA!L^UoxX%j{>?zCX?-DH}F2+7n(df7N#3gr@Lu^o4Xj~9R>CVq*2HKGu{Lx-C zDf#G$*07p0mL;H3q6hC(qTxd5Cx5V;s zlneL2Fe5$A+yH>YUr)>WuKT5P*(B-gdSmweTA7-=8kZ83CC=U2-A`tBVGH*++p!*Q>f01*cvy|A zHBSsp`^`Ir&6XPHwh6P?W_M6|eZNDqU_Ef+bEtRQ%P3Pp`aAFZt)j%T?k^y7T&gflV}K3APY4eUKL)Ah85l`d>0y#wHxO``a$cI$GhLUsNfF%-TDl zH?w|u%Kfe{@e`L@igPxnrnEgYE1?yEPoSCy@4V2%w~l8_xegzG0sRoJuk3JD+_ZjB z+1<9jCukn1Wm>C$gYrYGQNj_-a`D|m+1|L>6v6wVMW0oj8h%~w)Que#YBTu_RMT#C zNcYvyw#3F+%54OGUbKpFR(Rl{=`y)Gog;FoV=Byul#Oe!lB?=J7PiPFLabDB=N-kzO?kl1pL3^Y>W@1yTDkwY%9b zvVJjhOd)}dST#$b+r`ggbLskaJXah1{Hgavc`^+LUyW=@zcV+$z7|^2ddj)9f9A`J zPyXSi9Abhj>*2o^){fqbO{WH^Jw0~%f5>_Zzb3=Bf7n7&WJpRgq(wr3jZldZB1khz zfx(n!V}OJr5+fYlB@&}kS_}qKV<<5i91Wus0WseTz3=CFexLUbQ2F3>p2zvk!|?D$ z_0@Z#SMX?*fd1>n)9)a&PLhs|cuI~;xsT~e0P|{pxAAXNTnjrouE@|YL8MSEQrFU^ zA)0M}V?#r&JNo_(56!CY^lK)CE=X_Orvwi>E2NaH!KUJ5CcEYcEp#CNY(lMs; z%1`$T`Kpid+#sJsl+<;KHeL{#x#$JyxW&U*oKx?C@Wfq%U}#^Yh}GmGYZr zZXslD&fKFf&AoA0t6!Yo>$0tJ1D8jJHfvNw_8rsEEgR8I%<~U?L=;LJ^+*ycPpg?6 zy!d1;PF*<9(Ogd;TS6*u%`%NwJtiv&LDM(KvfwEolj!po)=^r*YBo`CM0w|^RrsU% zm}u8Kzmk^@e%yt=`cCh=*ww}|W-+K7N9MWlA=VT%Xs(7XCD9nG+JwSaJ%0-Th(op~ z?&9(Mx$_zfc{j*WC$4=C?05!vHfrPMPYb_=(Qzb7$=A2Rk1V9Y+LhqRvzO*RKZw=V z>XJbbYnciNBOu92EdKsq$$YPNE+Lp5Q}kuZW!9 z{uQAiy2B@sNy8>L<~*kGd5UF}S85_Q$9ZcU$0clf%H;_N&AuYSseQzs&|2Mk?e-D* zbVT6fMtsm|4R7Ocr`26yn8ta9Qx;FYvB?@*jMu-EnZapsc!z-$*r`YU!R4~LYn@vr zwB~W!IP65OXEbxVgpVanrJY?oT>e%yN3#8X;i(HUrwW99k8tsEY;r=S z%>zJ7OfpeoCBe9>SI!DXlIt;8ZY!;rb})`|BOjN%n{8iWt^B#^3t%$l8y0+|KlFgi zJ7oJ-nmbX3Js`1^>~%uhxV_|-Em|S-gF0tdUjFUXswUjeFBa|b#Q`QLw!GLtyPU0qiPl$IT&RJYyBeMq4L@;I7c{hka=+%F zI$(;f=O`c>ZfbM;ip5oJ+u8MwDaQ~I%a43KQR%seY-10M74*%gaMYWV;n)ix4|yHl zS0C>@nbkvbU$SK}e##OuK7o!+Ut`@SU1HJqhcAUHhfI9-*gL%B$6SXEp7$SfZTang8gb&>u<3ouJ8e6`++K#I6f5K;1_U(GY-E*slj(f*nu9YI5y?W;*=omiyX(o%p z-p;W>Js*{iJD;({)gE?8Fc)6joBisv_kcNC1%=I&L2LMt_ib`vXhT(8_gubVsd z_Kr72<>vPbeOreQH+SvxtcJEO*hrvXY@8D;Ho46#++N8z_xXv7nUmUk!&NIK1KiC- zeptW1NNm!G8rnOM*xTS51^;76)#iP3VQH$|QV*nE-Mc&Sm~_Kh0)dLjcD!tgWco(r zFT^@8kW<|Tt4dKh@LhEs z02*Z2F*$ehDGe{%Z#ejK{1EYthxA1x@`}yTqbeY! z9pAxohk9tPM3>`>JAp>mC44m3F%m8>xkm1*trq=DsP)Z&o&s{cL6PofVOA(@o1Z*7 zOJUZjJc6w-6oNMi9X1&j~2 zKGo5|(!!veNncU6jj`5GOwj8M7j1&7jAVb1>#Gvm9Lg+RO!Z%8Y|c=qLJfB#MKG(2 z*s-)R=fl;nQ|?s!r;*xKblZ^pitnDeG`RsCcuBqb_^qG}*7uE{oZ*952(WDg4xhs; zdbFp3lxH?gH-jHDY$p+7Tlzzr-OjYHgn5q^*{8Oyb?|Fg*YwwH-S(@-gS~>s`sjML|h@? zdU!Im$w+KcD?_SHEG4lw#uTf%W%C?&R7qqehwe6DA)!q;8gBSy!-w z<&vz>d*r4|RAU1wmg^Gld1H&!e-MHQpM6{-7TkkBn{4VHZpY~VBZGZps*tmG=I96f|I2E}_^NAZhLb>Id6xsAENVzW4rV09yTH`? z5W;R;33gq=1ZR%W2olR9<^u`r0cjq3z1Z?z>vzoqLoSi+7@ER! z)qIoRvjvs#not4WEmN-jeyoMrH(=3#K%E(^Bx*H5!+u?j8t-h zqoy-PI>e>U-2t{9Y~@973g#ysBMW35vw5+VCF88^8HU(GC{c*9+nX&HKo-6Jk5rgg z+dR+EwtZ%dEdthqNdF_F(zq9Ri>4ttW)tfufr&QZZe8k&_i56$xx@5*P~Pz8OI1Tv zn$~HP6dfa-xAhR+N9NC5V#>2Uo;hINb#8@8RDfI0M;k;#u!5A}FS%YJT5N&+(CZn_ z$;PcOt(pz1c~W^4xZi=$0A8u`6z+~gmE6HwaW?u!CX%1r7obyn7x-K}N8JRV>}Urz zc;#+2ulg<``-98(6#>}US@k(>r2XY&<&8lL|3@xrULog)Vsf=BuJsZvPH2^#vdk0N zj{$i?jjlq6$Nb!%1rUQd)@=`PLq1!(_FgDkRG|Bk*4?$$vtiC(G0S>=xsX>Xu=T{f z_Qqv}(j~rpNn<{VVx?w*T>oI`Lff;AO|~Vy zA+M?|Pfzki9Zo&1Pp#=7`_~meSWSn#(%~~xdTO9B{rXt~*yLf6y$b*OGWiFS zrT*Q3f@K#dvUn`a2LK7J%F8BEsfp))Ku^Ks!S$N1Y%=!@iU>vR%IE*9bKdP>aZ-_l>dbfEYYRawm3U@*B3p_BI?=q z(CN5O;=+y~2}h0J)eWMApu?yfQwFP{JeoL3cl=xi#HIXstn{bv04N!p>Hv(3{M*Dx*OQ>uLpQ}r`X3lyX;z$NQfE4;f)e`~xRAEEz;BAWh4Wt!Rf@HKQ; z(64gV=lPme)-Y@`nT;Q*`369mRX!cXeQ=X$oVY6DBJ-#Qf8mjb*R>Hr(y9FHsDWB& zTu(`$W(LiBih6q+zCY!0j*5VX{Uy}QhR4L%!(zX#K;NGiwzPHl3Aex61ewQVHk-zk z(&>8V(1bCb&;MS2!1y9-CT*{xy_rG4?fh#+oB5l!+Lv}Us%LHOZEc8p%XZia~Vl@4uCFU4X}Fi?Xm zT&}@MD^6q}Quh*p*XR4gQ;e(V3>vfe#AP!rqWIE_%{yZGE?t|FhLpJ`;T{9rq*Hk( zo9q#AVX1=eB{Q;f3CcY)dG>%4WXUs(?RX{2%$f5n#aYs^DAN&V@wl?0y*mO#??Mft zTgA7Cppv?6nCO|odL<^u+cm&0UnZSTUINq`ET!ZzaMIXNDWHY07{wQUjR+a%CFOt~ z+Hk{6-Y5{xxHp zlzjtbN%Y;1zo|}u-bJ~+1SFi7htDG7^ocT@KcznDia1fCex%KU%uOvJJmFI z0A^@eEU7~&E<`;LLPHpvv$NhoS}&I* zM6-;}v2#6$thGK_n9y*1TOR=0QJG?_wW0WLJm%49-F5@-c%@@#Ap0IU0+?qRnI(`&c5=@g02_*w#2{quDd~XoM=yO;!W+yX&2Er!Dp9uI(<3 z-CI-rB#D^Y&?iyU`tOO({1AD&-z z&gQWJspwXf;q<8T%;yT0X}vCHPwC|SK(6o z4W(?Nkn<-{*P<54l&WfA=S-vi8ZT9%L}Xx(RjSefVT?j)=m>%D87fGke)1={Nv#T7 zBG^KpS74c0_qo@*)mOfft+HsGKAM}7JW+}ntLmvEXL=m26X{^F~6;+ z)}4c>2C{(H7Cv?4ow2m}1={(IZRTMR=2eN}lw*Y_3{wNtGlf=o>=@4t z4+Zf+F>DUAM(&#Axj!KSGRx2Rl<~(Zd(?(f8ExVS)Th_1tIYrLa9dE}&3c?!CktsO z2V-XF;>WIx0t5rLs$0bXA~+M&W@z1K`_#Di4#`L^Cuz(f_dF%Itlck&$o@4U(U}7d z&bSbm0V0+ihLj2iB_=T?(vT?ZK&Dz4W)h$EKFKcHtW#dtr0CD-h&ykA^;(~PGQ?>_ zV%h#@AvL!Ho{IBt2guPPv7o zHaPA*LAL7F5KB_-%T2Zt#x)h!`PXm$C3j->&-lN?Zd43Iweqt|AjKEQKXVTNEZA-x z=3B)p=O6Ga8GI0NWxF(IOn|Mv^~FTH3VPnHhC#Z@V(7@uJ3vLc`MX~)GTi=gS@%t| zbNcJ$b^9$17eX49CR_9JnqJ%IN{^Zncjr!@;<3z@m>=Jll#G$@RL;?wHFfU4PRfnH zXnD5J0a0gi#cInqogi*h-EN6>O27FJ5u`{{Av39`;zVvWi~0KBmE2$3O%ca+-U@%U zJ{wPKmOj>B+E)?BU;Dj3#ZdjU9*joKkwes!hy%$1x-L`|py!v!w+oHbX7Ae2 zEQm2l^U7ol$5rxo=NMMKhgv4@?7qs2&LP{SmI0lX2_w15RM_$cwlU}=^-s!nT|nNQ z_u|MelXIsT6`|qGX#C{{@NgqRLT*dg(d>g7ux_aWzQ#oHemAKLCy%@IKoW>&DDHJd?fZDiV8Q=(#m=Ez5bknN3n1IaTDE=0?MEpdP(7w#^Hp)Pls#5`}M-5 zp^ya&Ht0mndqT)p!9=B(BECtaD~<^t=sUN5tA|z+`f8dRaJZ6WypZbzwsjF#%#p;+ z4Z35^L2xx#x7l=?br~5R%O+7)IwRHkOqZrD>-xTWjP};KH_Xj)ql<@uFN3Icl>|V4 zxW)}~^Fnfi2G-W4)f=O(j6#4(@0=-FkGZBp8uvO;Hh*H66k}+yp*HPqAp&h*oY+%H zsJdQ)>?XyGy`CUi=*=!F3eWiFjVTaJLR#A7;##-$d=18b_H3!!l>R)|;S0Purnp7U zQP*AVW1mT5RBo{br^yu~b8KI5GFyI@<*$eOcaME|S+#-ly&a6{NN{Pz6|pzuo0)UQu-+{zqkzfDQVYak<$%fP?Tsg z`az$&_Q!Vg&B-%2YFINDvzl2oVD#CmOu!Dtl29qwF<2m8w zzfj@-U7jf6EIHn-KpVojA>}QlGN;Z)Js6BgFn$3v3OaK<2WT;kC_KS>1pUa7OD$Kb zJ|Dze7fqL0ANcLH(JszNWpg|2CLk8nf6RS}4nP7-Y{4u=MZh*4(&v!k1r>ZWa&vpp z!Y{%07vYj66CDnCh z!vLhi{cg-^bULdsXmaS(T`{v57E)Au5B=Acg9G0)ajNL7L;x_%vMm05S?zkBz*Y+w z5`;4_C?S>gtC?)qZ59x>kcPUN!0cqpZwawszT&y!Hz}`I%11u?+~@6`8Do82JIFhI-T94~NCFMx3VdMnvD*P<>o9pZM~aYL0a16Lz1&DZ@nE$ zZC%7s{YEy};Sb0|Vyv6xI7LJA$3{DUB{=TUn623#Yj6B`$LD&6DHy{Rs$!X+wYx>V z{siK7=aJ8l7~p+rsKhNO^iSr!3_%MaQoL_!z0Fy)SnsEYU9;FT#(g{+TWSFtg!=c| z=8wfZP>bwoJr&jUbyJ~So{`Y~cai|^E?zgWTQqa}u8J`DjpaD$zshtWRsjGSeJR*y zUMg7W9DxS-Q1!b7$mvAiN6saxnn+r6r_ipeSxzEcph6jR*ZWmoAHA;)p)p*`ymnEx zX4_jFmbee@yoPyuiJvYeCQHxR>efEwNI~e!r^=c;SvBJ)m1mIQaV8dLEgu(i(Zuy{ z%H;Ep$4reuRz$!(AA{7^grh(YU_y8((~DboW*nrsg&LMz6Ne4>(Y+#>4RO4tpb9m& zS_u!P)4A+AC(&J18BW(V6ejQU%`qQu+zY}%?y-3bn}iwn_R2pE1{{r?byZ6JR$7wx zx(tlB_~fBWWXp%d;>zBzyoj5P1LhCSaDzTPz{)|t zN=e#ZqxggfLg8A+xM`-uQp-X0TU`Z57(IBweF?k&t{%W?i1IG8#6HwgFvpxl4$y_? zR6kiMPTll#92ye!{3Qpy;Kxx#rn8AW@xpA~Bs`lm&68%&JTAvo*qMyYhkX4qZSQ8Y z^)dRHd$j}GYg$CL)JdLseLzxB@&El<>DAFkhaj&^n`HnnST22=|D48s($C*<0eI4K z0vY`Ne?-o;J6;M4R$h(BlHvOnl9RmMPIkyY?XQm+9Li7DYSpN8fs$Ls9uRfW)8vq2 z+D6U8XJ27`gZm}>h~hOM8ZOyW9zF4E8k=JZ-9Cz$|6@IY3K@mJ5h=g9Zvo}F8 zH!R^1Bclh3l+|a0uLp(LE4?PYiaycdiQu|Klq)=&?BwI8HHkaM35H0O&6EF-!uMH$ z!sHLyONv}`4Kxj~YTx1f61a{^m30X-TuWXu2 zk`qR^`t$`>n&1==$IzA!dY6FmfMxJqj)>@VG>Vr1@FJU>xwD9G>5&4#9!;vALczI@nHslFDu{@ON_*r?zrrZv+bV9Nf$NjfhLUXZAsxqqYaj zw&*?9l`$#T_)cUl6gxQzd~-z;YukzL%d5U@b(>uMz8PqY8eqt)KdTj zTMC;ybZrX9WF#PTBUnbK_qibC^(__E!iwA8hKJiX635h5980do2DUSxpT|ON8vwge z45;7~C3vmBfb}$KFZAxSw@4XaWiSmf$v6ToPqQh^j#|DinVd9#BFV;(^O(Q!W?8iG z?d)mW{|?nEYmg6gwkXW_FlcKU)$ygvK*SnU+2pA9PK^sXX;4_UQnas{{#|-Fb7s>v zdf6Wa^(RnJ6$ynMGfR_!ZC7(Q6D#E=XJ{Uf*306sleWg2v$?H1jg~Z?^T(_XXrStM z?dqP!u`Yal!)T$Ae`KOfTIKC}&9f>KedRRIp>+wD40eGr8+TieYL(a3md3^@Ae`N7 za>feym$JXQtF3^@K&e^tKga+)Iy-<~3ir(4DWsuwdNMk|s@Tk>$sfdq)bb6GJeqp$ zYhu&fa*I20&-*jJJ5VV*Bllu^Qhtx{Q`e@KT}QdlR|)MO{vib=&nrIzpKdDL+ClU_ zc6vTs*7O>WjyepadY&!L=uVEDI#kCw^T|}a16H~4HakR-+>^Z2r`aoBZ8z|8Qhs(_ zuqX z&}eCvxJulTx+u>tI@W3#vNnfcE??YNbw7)G_h2`r6~#hS;~lo_eRr!rc;EQ$y)(aj zrK<4q!T{6rKZwDu)Gg|kBIMLNh?<=5oGi@!Cy}OY2rwj(E$Mn7d~`KeqvLj8pu9q0 zCPT2M-xe|3W(Atiy9h0PBQ2cO4~2Vs(&AVHjUiPi*1C;h0IHe@T2h$0N0L9)q&|L5g8a0m z{G$PBeMy06bH4gw{8wyW1u+8m+;NR4}bbR+Fe?YVH;Co)Qv+9GTfQUW7wSK^VZNhZJ{#yKK%9VWq?$z`` zAmHQ5`BE391ZGg#wDL#vrR6&%{UZKu(=>@+-N@k|1mHl*`WBmx{8Q^}gco%ybonQ* zl-<{R=ci})nKr&vxPEz_%9-O8rrR~vGirC)Wdz08m20ZxA=w8r<3VbAU<6wA7NS zdyEVu*Q(aIJiLEy8;PQLm=xV8e-kDWG4!*B`DtaE93bz*;h08kUOZ+ggI&|x+DNC~ ztvXU~gC&qy&{@p%%?ru`zs^HiXH&jTz;fZ>Yn>F3rt%v#7*P}zWPr;=6zN7|;w2Du z{hGf!0 z?g8XW#gn9y=`=ucgx4xRHWN+M!wDB-j?RW3TapGxH;nX+s(+t>itpo$VE(`YU^c`V z)yPr!8a)is(2Hf8zUg``R`b6>kvqgopseHN=P&I)0Iw*I+A=lA1F*AvnDAdKlBXn# zxl;>oG^Ph?(v|XXK5FWoApGjdlC}%gqLiO6^LkHJ4=t&lXJAiH==&S$2yG1&nh(@f z&~EgX1SbG*bh8g9jibQknN;0OpueXK3y2BtO8s7v4cMur4g5B~BY2nqd6&g7M%BK;JI8!@2JViVd80p`~rB z?f?O~9N*WybY+^BAV?afMcu*j37agQ`{Bwdm%fBH?0ZU#bJ0BkPKgDEk7l1(V)8k? zy-rNJY5cm4)V(c(h0;PlB%EQosi{aNy_RRNtzi-vAhu2F*p@NoHdiX8^n)qw{7k!4)e74ch>M_zk*r&27>$h9sT`Scm_jlBF zr^PL!1Q?^nA(T8rfg@9gc1QEn*!S9xSuIDq_x-5no(Fiar%vX+>=CDgVMANx8ysQg zF5hyQa{=@Ca*0hN(Bh$9ZdZO3sx$`k?~ za0bZ%GPDn{ksC-pxiH7HJe&9e(Qzj?xYY*aB{-%iECbWS4JHS6+1lXEmcG$dI>1}^ z8KPq=@g4ptk5!kZl=yMue6(9U1|w#xaxv-$6D6470Rx7G;-?p-`IC_b*D}5^Q4g*r z_vp&TaHRnpQd_D#!=#srxXBdGd*or56w@s` zPk-uq3*sWrb&s{>=8m*xoV@OJsouKQ_iLFS?d$>dJkLxkPqYC$OkGMdUwWhDKqo zG=NhLBE}>x38E@1Fn6*oU7SZ{88Xyx>;$?@5u5y=xI0mI7`Ru;5*>1j1%swo>^^bH zp@ZCmJ(czW*kEuHig#Dm3pwPM(KW;<9~*F`?q z(FVj_rOoXb-h!whNbB~*b@CW@NkUopUtUKfT?Tnj|il54JTi@2{<;s;n!wX!Jfx zuJ?UCfiH6Wc#J66*7;)rEOXr;qGrp`Cxrq~vPyVM|CXg;tC+fB!(F=z#rrSH+dqW|tpT==T;wx{gZ!(4Yv!y!bkz{> zr~%gx&1P0n{sR<9_2$nN@;SHB>zA9P;6ekx&ttfkt+alf@5-rZ&VF10SWZ0E%xhI1 zJRUUP2s7^d%;F5(Z5)IC9^4a-pq{=AAgXF}cq_pa6&6BUm{E zbZnl`Io6=nc4&>5icakWCXYy1UEdH!f~RppL%-ZZt~8tgc8KMI$-iGh86yfqW_TDr z=b0SVKhNkxvQZbFMJj_GVZGwRfF_-kP6K@Ug*P})yI*;+Ul?fAlb*!qFX!eBOZ>9l0$`X=>D2mjEKMuF9N zIGKXo@IY+rGJze{wxE1$nVx0re&i9W-H|(n!Q5=jtY^xWsFNuqp8CSA z=Xb5?kA!t#>imiNS&QeZ(DthvGvcE`^_b#)ZDjZB%V4!xtkzSaJI#$0NxK+e?(9TX zkYo==Ju)K)8qIf9mb2V+=679{0eSf|R^+Q0Y^{Ph5vaoP`>nsGhWb{qdYr0b8n!&u zvV#7)g!eO}74dKWggN)C_toM^pXjRh$6JARFkscHTFk**YK2JnchncR=K|+eo8`pJ zH^VqGK_8`x{Nk-39Hs+4P0oQCzc5in{L@!QftYDfl-KI8&~fTPJ(BxlL2^Yvt=R1y zV;6n`Q~BiZ2HC92)B-&-#=HSjV3hA1S$wJ;NNMpc-gw0RU%K@;@nBlsRx$r)n9_65 z)#je>+LVO1nHt)!*q&)AUFkAcy2Qu-`z#A9;F!OEa#ks+9tkpxy<{~RqA2fDe_0Qi+%pVQ;r~ztlK5R-G<3PnXwtUV)MFf1e?l923&^NXn&I?D{;g!i}9|dv_IlVL!QfYpTamPW2 zsW=fZf`dzLHRD#RcviE}DElDnMS`}+(}T0}0J?EeJNPyQ!>es|CxqH(-+M8YKa zzbOaQ6{-^3%jpq7rF1@N>9h>$o1#FNcUV{-7Gy6doXU;hM+pnxi?M3sYYLH`+K}S} zl2V~%)u#=+&0u%B%(|8)Vp9;0ZHUnMtTuNMB}cZH~h}?KSv#qFnYvJag2?mB=C2iow6I0)iV{wG*f*rI*gXjNKod z!Lz?v&42=jq$$dcXJk$ywc-0y4RUg|U3X};-AlrybinltZrj`~pLsSYa7Aq(9i@Nr zD1WL{UFfq}!G+%+CnbxX*q2py4L;(itU&jbIF5L79#%w4?@o@XnV0-rR0h}YnetfD z|0e?hk2l=qGgc+@kw2!b_x%k){7CoB+Ba@~eNojoHT(4V(D1AL zrMG6?4S#SK<(uEHw#HbhI{fkgHLveFwT^vt>{gGdQ0cH#BaKsfIw{U#lP+d9eARxE z?v^z%$`?7`eb0y1yp46+SyKv~(F=;ZXv+eU<&^)Q7zF%Z3_@)hDLanr2Q1$r7mk=j zxVL28+*DSsf*nON0f5n(09g_2tpC!``c$Jf&vhoxDcqLjW+w##1NPO>FvUOfI_(K= zdNl~j-ru|^ohOze2LvIS4uQ86=Io3DZT{`;=Lu5hBvvO{poG*H`7~_u!#Q_UMIYz( z+9+%!NNG3yP6JLv-#-DnMSKIH#ZD8Q#bCZmWf>0y8XHXETZz>5;Ccaj8Z z^O=&XWNfvm3Ut6@NhZb{kjIt{bc9{_;PN?1pZ*3Q0AU&+iZ)OVex+*3Oz{!ZV~C+G zPMz=NoC*`>f~gZssrF;?)t<48g?eVVmTM@Qe_}LE4vx3}AL(?>YIMw8xw@l6S}_0P zS#+9^d?zv_l-GZlH}%Z}zx^g}6pd(nq6?c3v`vzP{F0l$^4+-A5)~y!q`USwkoaKb z%)jh|UHsm0dRmw~;**xRGMe%(75+Hd2Lt%v%^l0TYPs1Iga%5xs}C&NhFXD}AAWMF zt@T$a8s>ez`I~`#M1!PfxC=)fu9ZNi)F{@n5{(Js3WCb8zhBD;q+IJ50a13;5Hk{N@>?Ot3y+d(7mLze4%ex2@4li-P8eX{p-Gic6fN>CX;r+}amL(-xhS z17>{#3TW^0Y;F6T#dM5GM5%1UX~+7Wzi`(`NwI5tw&tAQGygMdrfvL+4_|4#Yd(U_ z`&ZrI-vBiMxWmQ_<>vo*n9a8OMDtiZpscndEA zS_MH7T*JR}Dnip7Z||K%NePzxr(dM|*bsUS%2kF)Z#ERkA>I6P= zh%sCe$>?*w8Tr4Jq=4%PNN7s}nsHR(Qa1B4FL`eLFRC!^#ZtY!t-gqA zhwH$`bz8aeH&}}nbk47@EhxZMu@EQzQOyPIzho71r%M{1(LV%V#F*n&&E{OW2YR)glM1>;TG%nXO&aMHqJ#f|QezCeM4>My3APv<% z&IqeXO+Uq5EMo<@nzBecID#9rj*(y0WouitVM+9>!T$vnIVuRl8iKqjDi99)Hg?U} z`h3NZiEekYZ6u=Ox!gg{hur46yMzifHQV>K0rK{PT03y=gnI#cjfh(rTQIE9ha9HEF z8!tiHxCw}WHz_I(n-aWaC04+wNSz4{2~7B)#xcarRA?(Ef)Rc!kg%uPrCtEInfTOf z65!AI48xuQe?Gm#A!QOk=0FIpg33MbV@O*x1o3@+`0{3JvrW!3cNNi52h6IUNJcEi zaJw&Wn>7@yI20DFOYKJ7?b$xjDsi=d07b;SG8s~_a=kL()PTNBBhXMP%9&C?^SZO0ML5PHf`D`;L= z89$xooFQa=MIo$jzQ=%vck{H3Wf9i{yU~fH|0Jea` zwDaI@y69jW#2AIlc$KA!Ck$X!X+cXlUM*`2Y*OOb{^IU73~IJ?CZmsz8BU)2WOZKH z_t!o4n0+SGUM<}i8S`pEZ$zvnqFe4I2_d2Iq*LirgY4?B3XW1XdD@n7PW$9xX~Z&eEZrX>vp(V6^d4Wjw1^tVj0lG69Yhdub@+a$`1o&6XQgI0%NseLV2_{X_+RBHI0yM~X> zjq4VOm<#E)v`MVt*e1aqU8m~S$$#!K?L8=uL! zPnOy&XZ>;~mP>lJDp2Zt@2eYM$6mf|qe$JI^SjgNQW9IXp>0vbiM!>~G3%hi_6Xga zGn{=p@3G;I`@{vz^Y3Cn5bu?5!2X4`_t6+3z+_vnw4Qd*fQ58OnJZz|ypMQpELr97 z0dN9M1nAShiRluoolPn!OM59MuF{kIihV#AMAdD&DIz*+X!RetoCR2nDyIQFnd@Q^ z%n(;N@(ytnOlxC(TPAF}xteXF8n*suRzDAA`K$2yCk4R-1IgtBYl ziv}FFU>8a9B%r=i{KDZU3ZA-Z>B6j@u%Jr`&iXTYCjn_KjhIxSy^w&hqW}{4#1I`F zpTw&*pR0*Yu( zm7H>kx1%-y#TzHT(3tNX*2>46)dzTNm((6$eP`cV z`GY{QTyGY^PS%GF&qD!LY_?6UC-6Y}o|%Kn{(GVv;Mzo-97p~qD(!g&^52+4)c-%` zaQMpz1c-LAy%vjfEn_!UcjK7Xg9`;$+TNUG)5_RcV-RcFxa?MVESd{dTwe+^;!n@8Rf+ylP-?gRJsdH}oPyCBk?i0-=SUnEcEpH`l!fv=PF0HY?s6%Swr&))Za zNmP|LQOsUZRQDsfVRXo4MRk`imT32@&$hzjc^><>j2WEnaLrs^p`59>K3HEicf)Ut zFmx*4?$|~9__p$!g`Z}711Zy5j6D;=rhxU9X+8DLI^~Fd@G3m>?2TTV=s7 z2&R4GWT`M$RQlQa5KI5Q=xbTi_BPYXQIcEL#A`O=PEnjFo80A|ZN-LPHVi#uZaa#G zT;g0umTrbsO=Dl3PxfGPe-~XQ>!8?Y>wE%mDsiqAgngsfEqx23s9Uh1+3chI)4ASa z)6}0Nsb#?zp%6z4A_Uf3m8yNMflXc#C0xGmo==e*M<&I6uY7G^j}=F<0U9?xldmu# z5mB#Cj~0qD;_6&w!e$P~NylgtqDk6*+}+e?(~QUA2NfsmrZ~2iX~3O(ZdrOI zsaKD~OHM>NP9#$w=+g*>$t4f@aD0mcegKd~A}K*SyfCIr{u!xtp{9Rv0$7YRP5&Pgoj!kLq##MW~9W=&h0j zAVsS!YFvTj7Q%xy&eAt0@BF+v9^GFD!uLM|Aj4J1>Yg^k+B{%Qb5lleWGhb8}7W>C-{P2%=ebS*S#xad=PZJ6&&TxG+h4YCduqFv{zoiB}K38{jzHP{AC$ z`>yS=5GN~PQx&>CKLF*C+_v6A2Lw}b3Jg!js zIfj1J+!TDaF1J0_($7^J^VVL~;oHZ_&8mXMmEJW>CKHw4&^cT#07p3f1J#hfol9tw z2Up>Q-~JQq!!p59Q@HW+B+lBZ0u0eM760T=nHCaa+&EhPV<1)*BVkp%l_cFKS6rtKC2X$)HkcLG0VaPSNHTQdE z96GLvF&$DOG_w)X|->=uV|HJysJi&^!4Hd&^aPHb) zrmFO28Bj87nB4y_GR;m~W1$C56_l*BWTFcE;Tp05SY_1_9NruK5cS#Hxs0N?CSy4n zpNi{VfR3j#6(-Yra8O_cfPG;k<}XDcs`dACn2sGjft4ybt}Y}$*(5zA90)o95Yg%S zs}26CHCr^78la23O4C|rrTc}G7+bKnzBF#yNZbf_^Gh_OzO-kMWPa(psbIe*{LFb;c)UkO&t{S8#)a|c$93>*J?bx_hmG#>5;p7gYBPc9=YM? zvo1Os6oGHK3EF#BTvEGzRMk?fA$6s#fKl33Ul76$E<<$!Ucz6e9O7OU0Md=7rT!GP zJTrfo7+Y&WoHSEURcv`dx4&}z%9SZp+wsHO0AGE-wB681#cdRaKHA$XL^kPzIML=i z1@+v>&kfIAr6?64-2&Uf==iOs-11;bSorvjCx?_Kib6>2*7g|rDmC2WD=*Q(`H zdyf?-*=7BFI^CoDD=eXpkAhE7&4y5F_`8hLA63QfLJ8|nyW?e)JMCj%Vui>zFzDiS zuX|?=HQhk%+=I3syRDozIVl!8d^#)qNXOkBFJ85+3RZE9AOFAWOl{IX$OKvrQM&+$ zx{L`R>YPsQ1U2dwJ^f3pSk7OPFe#z8H-yZ;j_|L(DVsH{d^K&6;wctC9?Hivk94nZ zE+QG6$gfP>dy#zTCXXA2Z*QWuas>V#*dF&QeO%vYhU0x?TS&KPwIvV`El8x=EYtvR z!}x^VH8M5)7YJnKsr|&gj@`D-CsM{?e#C)Zb6HVC4fHp1qPU;Khl1sknv{FgrXzh& zHXqgkL;&YDc@MQ@1UVnPi!H7?lH>w6^O{ZeEpVFSUFgtD@OA71F@w@BuPN>($p*%3 zM2eKwm|xbhpu}GIJF-$M;mrBE$Ape^RbT|QbL@p1Im75q$0_-~uv<+7mR{Fg=#Joo z?Dmpn_M3sXT0A@-%3*oWz$f;^D{z zTmVHk_iO$uXoyPH;_Dn4HSwT0NhmbdDhL;|9@%lD&mj~S5j)wd+7L0dqm^JU#H_G) zR?VuEQr=$Y5-i0;s+9+V_ck8MgW(#}oQ!z!W(-#x45v2;c*{PXubJ&6Ge+soQ^H^SOh8)u+Z5wHA<@$Q1H zzq8^GRHv$$QC`Z*^CB_mXnbaL3*cA!hi8={6Lzc8)tdBaQTRi9%Syw^5S&iN3q zD`I|X>OfBY|AS}Z{QQN(E+AW!MkBcU}D-4TJ0sJ zNwOWntX5itBwpzm>7i#pv$p{SPag^!9VSdhe!-`KJXeF7LCaI?x`Da+UnD{{wSF^Z zlQv;r=_jHo(mIA2ePRHL_Rim|jY>icS3=WJtiPUcU*6W%UvlQg4*M>%I!J?G4ocUl zJ3>WE)Skf?Z#Blvy1B0x>7sFQKogR1E!9|E3+R#*R)F@-rd7A9`SFWatLN7Mhek&^ z+>vH=KAYZQLm!adId3d!1TQAgKJiz?q2K1@W?+{ zSiPJ<{0PVR&^?1)z;KFoG^L!SEt$j&4x9WKvTLwwFjX$~DCQK_7zWJS0^my-%&3<9 zxR?Tz*ZVFZ03(3ZLzx+{RdZ?Vn-m(ENOyw{Y^WT|4Rqdws|r_eOGzY;0B^4@Xec+;b29;7_1g^fcKNsOTA%ynuX&qBv=zh&u9jY0X;gR2@-}7`UglD zr5=gNezFMU!$97%_6~4Q5SFwzM%7N@lsfB)pA%1e;2H%=()zukOqI0c5}1)&QehL9 xz;t77<&fnt=s@niXaV>HvfqkCEVJ;U{|zmyjOhRX literal 0 HcmV?d00001 diff --git a/public/assets/cosmos3-super.card-poster.svg b/public/assets/cosmos3-super.card-poster.svg new file mode 100644 index 00000000..33234479 --- /dev/null +++ b/public/assets/cosmos3-super.card-poster.svg @@ -0,0 +1,35 @@ + + Cosmos 3 Super editorial workflow illustration + An original vector caption and image diagram with encoding, denoising, decoding and safety stages. This is editorial artwork; a generated image example is pending. + + + + + + EDITORIAL WORKFLOW ILLUSTRATION + Cosmos 3 Super + From a detailed caption to an image. + Publisher caption workflow + Native stages, including safety checks. + Generated image example pending. + + + + CAPTION + + + + + + + IMAGE · ILLUSTRATED + + + + + + + CaptionEncode inputsDenoiseDecodeSafety check + + Illustration only · Full-model template · Image output not yet published + diff --git a/public/assets/flux2-dev.card-poster.png b/public/assets/flux2-dev.card-poster.png new file mode 100644 index 0000000000000000000000000000000000000000..0e724d087a0ec7462c840e607a447c89bdca3a5b GIT binary patch literal 405617 zcmY(KWmpqn8>m54RLUR*G7wO5bO<8_0SW1D7^6X8qeh4#ATWn?2%|eUI+YmR-AIpa zR1`ha@B7ZV&M)BN7hJpE_kQl@ej~Irlqv2o+#w<&qELD9T!)D0CgEEWt6SFyU!Za# zZA3(OiBz6H)ALQ+yLw&fJ?*s>9ypz#a`lKMLjC#up5|Ank?M~qNVpYL+y=QA1d|73tblI?~h9f{ux)!`z=#*_J^<`*z(Uv9|eow&C6R-TeJ2VEmIc$ zhcK$wt3yr8BzN_!?O6N%$gMs}*BrJxTIsoQbqV{@6Yhkp$5Ei{XHeaQ8m8<)(BZvV`6rK^p%KskhjZId^sl-PG^c_r7ksxUJ-Sv{ zmj7TPZX*`xt!dPr&F(%Grurbt(;e@ZI5i$;xl3z0)`m-wlE!s8Zq6FjDY(Sbece`L zWR;_LxlecHzW!qsflg&M!a*`g7jK8?Ke$>As0thl02 z&QkL}*C93z>lVDX9Q}WPZ8$WqY=+BN0teM3%l7N+qxnB3j6Rw%b^Cl;En)F%&EATM zIb8 z=8Q0E%*Mv6*G8CMQ%zTiKUEJS*L?cjecgA8+uRWKa;G+4K}tIQx8?_ZRfF7lC9+@n z^9Nt7uQjk*x_+Zsl~}v9veG=Pba`B{T;b8VPq~9xsUM#$l8PD78Dd%*p1Lxg=nE!Hlb9nY!<|lkBIdLDW>kpO%<+N3{7THO{ zUcV3&A2PkIM9b~fF_nSNv@HI?LDwItfbJ{1zZx~-XgqvR^{CAjsN0AGMn%RXXy>Dc zJA#UjWr@l8Zc(*G%(c7 zH>79y^BCR7j$RXpLe+_c`&&zIrCT;`e_ADahu&$+{+5dxnKTw`0;hDxm-;Z%LR^tv zigci6$*K{-%zn;$O-^=?coJ~eU?}odi(ifId2xa2dC?woR}W6V;LlUm1VQkFZPDq( z7xgGxay)Oxl!SyCqX$;8!@Yq#yvG^E1{Uq6&chm6C4=8l>OpSBvz}+QqlZ9$Vxpmg zF0hmFQo87yym(5&-)6+zJeLZh|J=<2O zE^U>haL7E=Vk6HrT&gzq_CC1(z~jSG^>} zQx4+ge7tt^-Dk3N^2N=rse^agNe@TJ!WG`}6{nGiCFRG1omicA9an-i^aE=M-^1K)|l}7vtvzEEbVH#SrhOi?|(PIUiR`o*QF%R?i?i0(WcqlH1dKV5Q?(7Op15t2d=VDLuzMc=~XOSi5 z)Z48(uatFjQuHD*l4yNrZ7k99C<`Rf;&nncpDky8`$ z0e!Tq*st>SQ_s$Oq>G#ND7Po|==9%jYNzZZenl)(TwT}teD?EuWNVHlKhSGBV=*Un z<922!%DrU{*4RBX*XsaNOXm;}~6));wBnK&=dzVDQx2P--*m9CfG6T1VYa zR0RKmCx?wu!?G;b>8f-ofii20W+d|nyJVeN8p4!pW?qI4JAUL#9qjl8QkD{TM_*>e}{84stAV*Hk4mrOl= z7k17#63iqHrsvaIozpqbx0_{E@Va6neR$~ z2co`8-W#*i4F4i8h~=pjHi(8yFSHl>f%rpn3f!c7FOXibD?1KGMs5ILJ_}G@InJ-o zK_E+abMF3`daZ5p7b9Ay`F%|yk2@su$%?<*STT1xh7jeiiy;cLpMFjnubv=>O;ACx z;umY_Gi8629%|^>fg$1wjRWd`RPDjDALb5x+l^>_(D&ZC%%=+2 zh_xJaHS<|cpNFZ@_;CJQ;tXl9jT40p$xNTHlzXOx!_3%@B)rE&?COxQv1O}TsCjzx za`dh-jw_OZF{ppD?CKP6?p{%kaVs?a0okG@E?<5iH$-u&5SEZ$KB(vVRP3_rJD2in z??2D5Nw0@mNnXrpX>0t};Az-zGQC>iY$)8S-^J>#Jr|lUB}EcnuzmUP+sC1 zqfc4;6rY9f9#C$6z6xf2Kt-zQbGGONdwxJA8Z$p2d?OfbfpLXc^sNHra3v*P<1*dn zYM=ZfH&CigLUTfz0^A3C)tS~V5X@^~ybkUbND1g-kTDwU%kC$Q;;Tz+axnscZ%c1cP*(M~hx+ym7Iq}tbD}XL z1CgKjnAjAOifoW4C%;u*ZP~t)q`g^%mj*Ey34cqWsp?-Bblto!-Cl?pXy4@}eC#}W z0a&4qw4Ceq(H8)waXa?+SHDuNPpt#q^h5p~<}Q##M%EB3_IspCMwD-I!xS=9^!OG} zXvpKN-K({v%xA_^XkgYBn|q&c>SpxXs|%!*x)9(d3lLIzQ{~`99d##(#lX`qqPN%3 zF|r|$lJmPH4-cHv`{us()*2t-SQk_+?bnFOd6$xIlepqRNt9bU@+RAXwp@Ckv>sc= z$0~=kO7)8@N~##U(*?*8a6}c90s=R~8pb4kTV8zgRqx>5Vzl;^N=?_%>}G@=P{bPA z7Q`AKTY1m*>p99*%+x;lBh@7tZ1lZ!vmDCjr?fIL-4;?X+Z`s<-tE$6Vj0k7|0Y54 zBJb33A`lccGQD*snnI!t?+lR=(=hkIv%Ix5RlHbcYgi4S@h%-YE|G;H%U1}*)HZ4&?c2o!JhuPJC z&(;8G#M5V$1#HS8PRe<$E}@agHa(SQH1^9HZmZ!K05 z&d?Y^+y^LDQj$uD+b(HE@R>Wn8S7JF!>QDt_yKjFCRx?%@$K|n$`z%CjzJ;*-4^?| zg{$z$dtp;?KK2HPhs2D8Q>;V*&vosQSh3Y{8)e!r@E=qbm2JTS{xS8=&J(f?k+(=w za>0>)jkQ8zSCs(n6LrlknYcE;ys+_Pl-QrguW{iuC^5_Zjl%g;o#?7l9Hz_4#8#3Y zSNH_iIyqZpoh5#W9ny${^|OuQg^{T_bm7{NXPT{hu!I;V#m&OIpwnR+>BXA69wZ-r zdhACgFg2}#AV@F1Vt{DQsNb8A>0L&e$M6$)hP7P*S>kDnr5(e_?ZT8d?585hCgr>o z!oBJ=^Vsp&q;mgj??ZQ~1g3At@1b-5A$nP{ta+jZ z^G;29JJs*^4$I`y>FA_K8MMC-9Kg?7rc*5V{0GZsQ9pLaGcih6Q20A(dv79Se6DZ z()_YrB4JI6ScD$3BalU4dGxF!4e{B2tfe&1d{C{KYb5t#Ent1rOpkC>mv6s2-JZ+< zK;kUNiTagJF0Tw;&kR5F|KU`cJtR+I9%Q`Dl?XO=z@0?$1Qwc2a0L4nWWIJA+WzD6 zm*D3WT5-Q6gT0+Jx30bQ*}da+zCFhnv$!|$&}kKvU}c+C&Q~Vhg%RX;wJYK%QuZu% zwK>2~4)tRBeALGJ3O`3(%j%fmE$3|pCRC>;YeWz6sTRpA(@FBijLY<1FWEv!Nef)6 zi$W;+TjCX737$<1oy$aE>{)ri;0T)W&buX9?&o1e-Pbvn3uP34RNIwW`8HNAaNh+- zUTZ_66#FA{LUjV9x9*UD((Vq}HW`sHJ6S2hjZ*|M%>1y5-ybeZ@*HU=O0C~sW=e0-ikKvEL$zG2S#`ZLA|Px~h;YfJ_6^zhU%Q!x-NAfGae1VJuHIN{0s!Kc}L zLh2!L8GJjq@n?bgshG&TGFG{tj-&S=qEzI8Yzj6=ZjcN`b9~OV{vS?A@|y}}Cn6Hu z5c+`)Qzwk*sJg@H1%H5dbY?t1G~1!7Quz zTVOYsng1QM8dO#QD@y{2U<|aj#h%uB3zWLQ7?yBGy-CUByEbMcS5XoX`A& z8dGAhtHcNXl9@_81D2R|G$c)PUu*0SAO+fmTcR&-9dFSwiB(bVd z-a{grmHx(ul%|`pQI)qaZKPiwYRcN*3(Tnmp<8Pwom%!XdYn`UV=|e~HzONMPd__yb*SzWkP%lH1-#G<%f;EtD`AG9gq;XY9A zN~X0Tx+l5v=dfFmUB(smj50IFVn$uD2`VLqFckHydC<6vcPzN;Zs0EPG5z9n()(`7 z5^;QTx6xtY2m?C~S(id4 z7+YqbNRN{PL3W%-r&PNZV|wH|I-*+QUcdU9nQ?itKk^=*M`nL+@*M?yrk@f{k@%}I zV4#Fvw92k;K;B-n!rPELeGamoe8)ckXm(X}q2qL;_8P8Xcf-Scw|~KiHoY;h%U*qp zrQGElsd;93-b`g6L``Lq3<6uCSW-uYpah8THm4cFJQ9vAl5<(hS`bHGZnD3 zTUp>-gsHG`{{egwouL%?ts6VZsL+1ENLIKE8<{>r$7#93ix&J7@hK^`M{VPhpSS#b zr5$J2R6qhIIY*w$dhgay?x{|ZeZ}w)2TZ%LS#LWx*$lWTSW{l5TR+PsCH=jsqwrdY zk5qu2M=G&~g>1hHOV;yg`Sc`8qx!})%oJZY1xM2SmqI^t3lkf~LFD>*ExNG@jk%NV z`ygi(wGlQdK(T!n(Lug)UdZ+(dC4|wM0hGz^P0wH1ZJ-~qawRk@uwyc#{F2uF6MRR zi_&(jDk>_|&YpOYz$Tvukpx0Gcu;uqT#dsBY)pEjjdNWE9<5hmhS$!*~wxrQ&E zpzb)9-?BoF%jx=LKddD1e<*?fOaJnJg86L4W>E9b8v_P5TdiEXJKLX<)ovOKZy{m4 z%r;zGKWf(>aiW02A7&lk@$oJ+;hsV1qZ>Q)8Tx6g+$UgmDW;M|9eR(<7`C7GGwZ0` zutvC3@%W#>gCAa;Kc$I9{MbHdd47ivmrmlTPCiy)H_m}|JinzR6D!i2TUMn_(%nbLB7dBlo+0O*sQq}ET42tRZY^n|`_ z>qVYjsSUN#N_psN2u`3bk>(*S8CZWHau&KGCUsy!Linhy(nrZutyY4yX2x&qZUvh0 z`Lm&GzNue=5}uLayhy6Fbd)ohs%*Sdr1A$rN~%r(F|vwb5PU>LLFi+Gijtkd01f1w z;{zCyBGbI6#8kF zFbJq{l+~%H_S%=)K;wK!!+JD&H)uN8{H0=Y!fpw~Bq7v;V{*o*Vg2tHOsKGr0&5j<8Jd}1=cXF?W+V%H$B5{mWHW&3ZAS~5jnlTTP?x%`!&vr*tn~|p! z6bG<3FgwvafYtU)iomqP-+=iydYh|lXrwC#(tf_N1q|#a)A(S=MU8p<7OEaOYwQf` z4EtUH{XSd!PfUlSx5(@aZ}{@O|Mh%(cCb2o)B4mAB62ehSMSz-;|?iyc_kja)- zxNLbIFA<9@=NMkx`$HOS5_4|u_Y$*2T-_hKZ?3HmUpRG=?dK`m#hYFHnX)g?$Y%&@ zk$k`5LzF)I#+)29n!&+3S)cJhuYSKePblnUgj>$zU&(tCVqpZs_j-RdcMRJbf0k(S2vaM;u zkKUs0voi*QC3*QCOK?qalF_odWqQb$1F=)YD{G$`8Zv_{iUGQQju9-CC;EKq@*GSy zgmZm|2-M$T-znyEcAxkXOe`uqVvD}1+b@*~Lje|sOjVARc!c!746Ct)a|9dJpAZR? z`Aj2rien(M==Hh23@4DypMz}(sAOd4E^f?uYWUn`1uq*x_^qw+uqw0TX2M{`gMtZB zhCtzNCgvckH&m9HX8Fim*$wuW${$Wu!BvhZW3yAWY=Y0QYW4wf%mXVFk|xdqZ_ zCOs`Yz~y-XUz_fNm$)3dua$3ZlL$At_n2vq%@MRg`_8nXaC0a!zr4b z9sJ~8nlU9Cx*R*cj(4Tq*@50@0Ow;cc{_X6laO!J%QULslf5Pmme!ud`?qSnis5cv zu>k@$=WxA>vI1Qb(E%E`k9K0pSfu0F8kjSWM$7V5a%bzE^RqAbT|MC`cLxQvf=xi! zl5j-bG!{=7Ii27wN$scVHlLvpxJaszOZ_V@gUafEvp}pAZ7m-FnEqe4Ph<4lHm`2< zYvo~eCVx}fU)vKVt#=ML7?|A+Y}vn@L`M`9^i*bsbH`S_Ufs{DmV%DD*Nd;C+sxBL z-2`~-l6oN~9p|a9=q2+kE>wyM?lpYs8QrHNiX;H&Uy4QA_^*Y0+?f@gLVZ%Qz{fY`+4XTZ97V2;m?on5n8EaPTx6ycc z-yzKWBp&ZVhqP)ZjXmJOrEytwV!UR72@fvGamOW!nlIVm05JUA7(be$y_J_hsr%G( zbbZ=A`nC)oYe-&Qm4=lTK^D20^gYe+w0~oDAk34PQc&=4mg_dtSg%ajTmv`Udv0e^ zuq+lORdw?B%9z*-%P$92^$25M1_GsgQv*TSuc#Ao4JgB^vq*9MPm>G?dvqI zfRaYK{~zqXO~#3WK5K33jGBj^08ULfvBPffiK@!QSLK@w?Q>Hhlg!S;$7J&hXu4Kp zwOSsmS9}+c?W5iKBE=5z?-pS_c|-|)=}>gGJ0bYgXMM+*>4&snPSY3Zi^k{37&6`g zD7$-UqLdxkp~;0W>BxFn!fcVZx#lu{ENft)O9%MJsoV6~?o>>Rz2Cavnn5!O=dZ{C z^WlyQ28+#<){vcMy{C*Rr{0Dc8t!EedU=}MHf)+n9E7eRzop;fVDzZX@!4nr%li{= z-_9(!sIOe)2Hz*~H{3YwaTS5@kHn1kkulV5V)=b1_VlK7xw3kEh_-<=_xH9VdnZ`V zzPxxjY41D0hAe%YC{`YP6Pm`u^G*NJ%=CHdofLJGimtU8bi^|Sq~j*#(?pJBYUbZ8 za54B;`)SEZLhI^a32_io@$RQ6Jwu;w#o)61@ zY?gAnzp+jKQct)JNo@W+n2)dpvQ4%B=kP0`TefJzWs=OpZd!r9DuO#jbFDc`%5EC5Mt$7N!7>` zpc5X#M)ssF%tATXq+*q5C)sKWDm3Z1se+w!+JHULb8T53}^2@sD^oV zJSN<$X)C9`1hkhQlId3HOH7H%f?gKSnrT@F5WRgyP|*R=H+(X+5ILo~FPkGL{Vi zdObUyTJy7PVhG<+W3!%TqZ>U%aa+gAE*&w7VD=kj4lv^dL*vJ&C7iuv z`^gQXL!vo^VB0Q`seD%ANXr|XT9j{Y7NGN$kg|yEnbYei>1hflx5>O|E-KhYJ2eY7VzA$UXzyuunm# z%XHWl(|`D^0*$afXmtO->s)>#Kw3x}5gEsI|0W(XH?c2A^yU^=yfDuuW!2z`U&ajr z&9l_KSeO@f{HCeo+n2rKKH4K4mM|1(hcgrWAm9pZ82aQRFVdeJ+=>$Xt9BA_*I_sZ z@%=G=0aqIoOt!7^hX6{hvS8ZfAJ${SOrH$x+^8DF3#1@#v+Ltr1lxMZLnxy7G?UT- z!2_YVg0D(Xv04WL=P6EIss?^sDL=Tel(?BLR^8CeP<2sm76$e8Jfi_^mGun0t?UtS zw9JF}RV7dAB+{Gv=+phAiu>%RI=%5Z;WlRgCMp8;Z?5LB9kU{-BNssvbx#NCl zMqaF77pM9v>-{Y)^RwHVVL1i;18Qj)OT34(kVdG%{?;H>3I~EODj20+PT% zz1}snsL)s#<_k_$5gSB0!rgCn65Y=ETj7(&KPPkKmvAioAUaPUj2%w1hq={&+B5Bz z!*p*={p3D|L~kU;Y4*kSc}h3-hjOOfq-7kuDy^NA_0QdLsW>s47T>v1S~PNlYwf9& zP|}`ov=e&;_U>AV9W*Np3uB&|@|qzoM;|vFBeu1HZU@;7wts#a?gp5ioAnJy244y) z7)!G4H=P|^StH9z7(SmIPhsYGDn83?WqjgYg3kjBmx$p^24e2Z&-~L`l{T9fYd+my z$YV}4^k(V%(Mr;Dh?4|wmFlLO8XlZ_nA8ydJidgb2IMkdbQ0@&WsdSD_D`LRByiZI zjuN^JlnXa{VBf=&tbVi4MM{9d&NO^Pu$1i&sPB%0R;{2_MOHS{*)mkg*yQA!QKLUQ zB_x#t#4nIS0C}^hM8aWAaQpnBErB%Z`)OaM-f$_|-U3Rf-V}o;50nkb|3!I)0j3U! zW5hdo6Xj9IH!Z)ACGI`>ge6q~U+eM)fcQ>$1L+2El$RXy?X623r2^g0$9Mg?6s_X~ zGuaN)s4vd!e4y`CJbiqi9~6@kZuHfc)1QJQJu#p&rW_k@ujK9t1f#Cb^^b|ug48^w za6pC~sZKYb@jc)%E79$W0`N7sj8}4!#0OC5sDKy1L^($R?|5XiD$Y#}EThy6mkPtl zIuXQ6?a-dESIXn?G+p~##R6_g8sm-kxVw;#QF$V$$DuWD?nfJZq_3w{dxV|y6G?fU zm4+xNlbV!U`+)x_K5N%LATgP+bj_Wq18j0jCX8lc%b5avQ!zc524U6B)}g92Mi72< zmV0+QEcE@u!n3cR+S{CfcSq#}37-_6#esFgTNa!|$@h5>hjFk{(cKy7C!{!t(u9ehx?Cr9d|tsPSBa zc@l9M?1?t~?yg36*1lALz1tRBqT$ol7hriH7~NigA!K%0Wlwba59(v;5DNUJliVtVIfX`mR+W}-T7vw?iD@LxZ8kW z7_|(NOOQSHxNy>VH!-i35|?bRL21vO7YgIZ2eaFjd))_9Y>)Nvz4Z&Taa7^Lyg>8q zZ4aC<&$72vR^MIjYfU>_9lg8cx-HUWWR;K}8<(z=5Hp7uOx_f?umX{V_K1!4Y9yWL zd?IXldwbO$0<}peyK}!k@|plscMw)sy*-A42^IGfPxV*My-?gRO&oFdcBsZ}J-eSg zuiIZi$cH!5W@kGXJ7GO^B_~9_DN~iDn?uSppkbPBWnaMM=CGLVkL}Up0j_}=Hdhao zEV%#hSfM^xI-N~Sv%Km#=FO%$J6nt2%T@hX=O8cqm}`<)6K1BR&5smoK=K*48t}U{ z6r|b_1yI`Q%IdJ7@1E!1g^n zv80$FgKabHaPfX)(-T24C+Wd6hcL`unpSL;<$*p|GYT&5;v z`fa1>ABnjuuDbdNS@#9n)^Z%d%Kv3~$Bf~&JOzxK;df)xaBVmbvKp1w&w+^4Ilc36 zsP`mDkwYlUCPs34iOH&S@5$V>xllJ+ghLQA6>tK>hd zT-kNQM`8@*lmSeqw{k{V&YG_=#Cw6JWq8;P4ND5F&Gghw>b~j3^L^8wKu1`)*mRs+ zk6RU*+0Y*=r8D>k^Z4CKCbGJp1eUkI&+F19p7fPwSSxwdKAG`bW@7S9IL5+G$e$cH z0^;3xSJHXC4ef?ek8|2g6wD-Bj^5iA>%R3Ud6PbJ6#s17&nuWUML+JxrH6{N>vHmlbnFsL?p2HX2k|%4gH!)Q@hQ1a z@*L80pWt|0WF~R#Ca~{CN{>Z!k3OC*RQunV%TvclQ!QjGk>wI{qftXM0@8A=BOlMwaFo9;T#9PWof(8PI;VENhb=-8xUM$wBm$ITO8MXWx4br*~aIPRO{2(JC+bD*dqD!mt&y5AopXTog7evA>i^HS*)ct`g7Ti}0+SF^otJuB;^WzBfij5g8pXSZz zH$$Au#Lt<+MMrZ9TVAH>aIlxRwq5cVH^J%5apWb8TIVw<2>#peGV}G?I-UJ5*!gn5 z^qamf!O$~6sQHWOON_b4JWDeBM{^JhRi(ad?O*pUNd_iSkyTAXE1r}PWEOze2P9Hu zb09FUPLtE^vb)q8IVbD*O-IVYnxJmrwmb=!y0`_Xcgo{&yZqE~fQl&OO@y7d;n>0> z;g1P@Hcto!FiqNANGaJskbb};$msk3kbaDuK;~J_szW&{$AKBWwxw1bHc!}ugYS{y z#zUV7e-r<)eV;D6eE1Q3M|cvMAeEfMUJ?GD$cXXMP6EYtB&>rQS?Jg3hUq~^A>J9c zg}_#>mdV44Ng~pVDiEw%LIe z&kcs9kJvj4Ak=1|)CY)At(HMLBcLIe`Yse7!<)B{O3+&j0B<|(DV1o{h+8YQ+`m;Yx z9z11@7ucOW5)D6ZRsH4rrsM&O*FNl!ldf4TId$@&&*0$@zp-&=mP^WTOGo)`&)X9F0F?3gT6}81OJ+$} z`V0>&nn+6SH+_pq|I+wj{GMkWD#OtFYsGeH<;t%IKXwidi5OaL&l!(TKPFU|?R-y~ zE}#F^^IvcB{A?j{AdJB7{jM5b>wHay$}^|!6OzFfrFg4-dt(!1-COU29>)*tFbiWD zi+l#B8b8iBT+{0z$>1JaP9+P~9Z&HVGeO{J|Ef!L+cW0*Q7zOnK1{ z>=OA;tMjZhn9u0U=&)qu?zeCHmEM0Ie^=47+I^d2dG8%+5Bi1zxGxw+nR^amf@uB% zNc_(Q{Dpfqa-9PX_)^v~0W#!Ztg*1Sh4w)ZlcKSzq!@DC(t$TM$_JPTbtnh}0x9si8pS!bgfr4&9g z{uR^dp~nd}0hU`}zK4IoC!7w5oxW$ejl-yUxiGa-pG4mFfjm8w_$f) zPh$fcZV}Hhih4lkTT#zyGe{x_?%w+{T4G#W@Gwy-KXLne3U?zCgA{r95kD=j@?+=C zFq#OVxp&p`p)oW;aj#oC5V@gQ1AdM<6Pz0Uj&wguA!Iu~=N|u}`z6c@8KxV4)~Un1 zIaAdU!MT-VqRFh)H}4{iyyMvQ9{=zGh%E0}0cSSMymIWqLyg&<$qR?>|8dVs&C5U^ zCcD%kU1#~_IsNvNCDBsb|7JTrUqzbKV0P~@!k%gR?5_(t<&{->8yO=@ER#^i($j0( zYiTx)g!~@T2vU>wuA{6AXG64pwkuRC$N^t17ep_N;2QKzntPiV&Cdw+R_Kz{Bf_C<(0RXWFPN6GaO~goo7Dxsk`)aPMrAfLF;yYO@6>0%I_F=0~B zmf!y5R4cq|ZTqHSZ>xw9Xgqu)NHPj_oHZ&&B#X85GUWKj~|5U(i;#<=1N2qpY7?A4e z&quIE2O00n)4Z6*KWqj1YE$V)AgVN3zv&afFLb01j6@jupep>omx7%3(}*M(jMUK@ z{+^mkZoGE;YJV@iEO@`UN0Q0nbujvrUj27(nW!-#3Q1!u{C{TkG#V9^ctdYZAI0wW%w?$XX$R!rN9_W4;J@-2xVN-Q`r=B@2~K zH~!5wpG#)_s5*?`c*Y{#MiC4N?TSom{Vgq53@Lm)^J z7fdO{`+P`6gHM$m*3TuA*=zX!b@*x$+}0A7FD(wY-A~4zmoZ$~7l%P14o6mIKu7Ei?pALZb6DfZm@}>vQzsLADyfWJL}bRu&8= znDY%3e*9h$ystGHGb0|P|KM^!y>`7&+j2mj!}a@l(A3UCg0VU6;cvoPnAp!d{p7IO zR*#t^>nVA!RA$Cx(bxz5v7VVOIb%`^NN!2Vzojr8!6otTq&45T zTMECgnzAN}Y_-_Wdl3~O9oHvsBp(S}W4wxd1h?gf(Gxy1Qn=jYu;h}hU}}ZkvHQ34 z?qIm?342AgM9@UJwS3V+esQwA5v9%>&O9GZ>~vwON@X+bdB9vno|MzhJ1xnLvM@fW zpW}5@))imdo!QY`pemwwT+T5t0miV*jJqDdo!kHlV6qmwdXUQiFV;u*1Wt>*LD2YM zNbj{Lh|I~N$tbgWQjk`^x7AX(3y^C3tHWAvAoicl z7vRcQrScjAZ$r4HyTe7CM5G)9JKaC``IBS)vR>aj=S-+M(m?8N}0unZoa^VB5l z_)FTz81oqCI`un`0s@3{HjfE=U}RRao<}{vz6;zN9FwHP&(|1}gxV|=$yLBR2x-z& zgn13cWYt`kjw>^83d4@5M7=4c!DS1)LqVmzF`2NB+ucw9!vFMS zigiO27M1hoG3v^fglh724h2VF%bN#kgl#Yy_}^{tDUHm+PP!58Yyw}v>{Pd56W;f_ zxXxr(al?n*gQkufE)@$y(A*0)Wrl$#pGyBHkA4Us!|!3bF>(2VP0;^DItxR1&vUb3 zZVivguSce06^D7Bz*88un*|S>Jqka4@7-PfIb9)MH*%YP@`0T8R_Z7)+NpMN2G6oq zU^Yy~E7ap}R}8k~Eg4ggT5}?GLlf-)U&otGz!v_F0NmH~LOLHWf4}zyam~T}HS>Y- zu9=6IqJhs9(AQjz(gOLjqivTYiX+&&aPZ#j;0tBpNopblIBC+h2KzwLydMJ%_kHAB zx}$ofsVNT~KTyrk_UL96riMfoO`h}J85XWV@+lB#d64{lOMK#d;C;xjZRaL&RIKbo z_#=1_5W-1v+hBjp4V@$ z3aY|WxVt!q_c9)LJ)$z<)TnE*6KX)+mbb?33Hhm)B)jlQJ~pTQ?Izd-h*azPm_X0x z4@#3>g!rm|N_li~>a1k#M$h-R%MoFMpw|LqK0Nv`^q4hx_&TQcmIPz_Brm%*4&HAl zAOv}n6S}%hcx<)cc{2WN=(n?gL|XX^JO$)!uPrpLK*6^KH`6(jSQI8M5EEk~s5|+C zgIDMq`bx#4V`F5+v$gopr+|B z*+cwd9HaLpyl@VJA9FUpfI!Yl84WA=#q3>Yb4;IvGT;cN$JDD){tbhCc`JkeSkO_KK0Iq{y`=Nq4et{H&FFhypuT1Suak?QFY^6vt~05XkQ9RMgovIx zDGlybY6axChYVjYGN-ow-|BQf{OmtzenAzi127WP#TLRMv3d7J6J@9bPsx92e^fjB zEt-#2Nn_46UFej16RI&8t7?*@o~8kAA3>aa8*o(b1@9yW69daosW{o|N)>7LwO)2V z0dC3Eakh!w?{@p{M65-jQ7mz!ykP)`s_{MsW6pDWV7g+wl_dvmLg?lhE}$kU2enaR zw#}7Pc%H~Jjl`5&?_iIPU8EN=1f8$7x0$Dpy2HW$QbTV0u0n=2p%eun8ORVPP(9fIFuuj3zHZA+CF+}5grn}(h@$U~F!}Y*^4ftDxM+w__A(2x+Tr!41qIjftJWvT2 z7MfKxk~H)BqI=vL`Zvs}$-9@I4QOs}x3fyxqfTL&8PTribU9g-3=ZQRqoS<(RirKL z2r13jrC-5wn5V-CnND9HI2s=^xV!^ux3Vdsg6++&JdZ!sE-U!^vi8w1;NF$>TWFRP zUZl|>gUoXC=XX6zfJZ}OoxZ)kD0H&c!~FJa8OI##^T(&gwu5%(F+3tN8?n!(z+0dy zaQ;}h#NfeLn#3&+CJS-zE-A661dG49^Mt+r(rY`J&v5uBIV>`-N5aNy%C%9yt7(pQ zsqNmm)fDs2n94lirLARsR{uJ0X~(2`x<`!$!COt-Rt7tvz|5c zVX9Hnwq;{o?^BzTxu+rru`$g-pYc@3w=?ZCxP~Tt26^AMeYlP=5XAdzqkM3+6+b5L;{m=yzpSKBX0WkJ9 zJ0?e7T3Vow+mY!8P=M};#lq2J^|(W)Mw?_Iu~oeZ7tF{iEvQ`Fn^AJIn=g7AA2{$QR>MvCHtrSYOU zHIkhKKV4KoSt(fgE|8oIvvWC~hE#O{AXz|Fxu!ig3cqg$& z=a;$A7+%2(mAb0HWYr_^(45D!Ji84_lL(_N zs~d>qncs0Cys$C1vsnN4?ADNR6}yxqOOr52+(f>gFl17}^Zsv^j~;SGabpK}04YgB z9{l`eaL*GROJyB74GUEb3lo%akD9a{?&YRLyGNpvT~@h_-Mwz=e6X(h*orVYP@W&j zlry&5ETTjd2~qaDcI&6nb7uT@qwl49uVMKa)|9m*;S6ff#G?}tC~c?rQ*`}zq8gRE z7auXLpI*Kaf%vg!JI@_|L3YU!nGoEQ61&c2J+00DmbY-863d||qx2t67iVOXXu4AT zykt-ZTY)w=%=6n4-<`42SB~lwq^g8^^aUHE>9?+NpO)n+M8*cN$4?*DnpU!}H|`2; zCQ;elR&EwFJNfcHgai!z zx?BhY<=*m_4}*t9Cl6c2SKs&3cGm=rjsATPcKMviQYo0wv=WN^cEy&AbdR#dGD||x zXoy0nJfPYCOoG3}DJlB^rOR+uhy?rDE)2xkoBOb@v^;96g^h5vW$BnxW>uJ|OkU2u z(nD0Kas!Zv^NA5j@_4TilDLw%k^Vl;50x!V?TA0u&t-avAgT0G!^9gjx*`94cblhc zshoNqV|3+6{bhWfX55%c)gwczSiBEpR*0Yf35gMh2PVr#u32QaJIRtV_c6p}~G(wNgi0 zd!Z3;Ik@8vNp5(B(1!f@!Vokpb^C7ir@`9c32ySZfy+wa%vbo9Bn;mU2t(2b#0~z+ zeCYd;2S(f_#@`dEa&L&4y?Wh5H#Im?C3ENGcgH6(NqkNCdV(=)7^Cb0ePcM5wb*vW z*Jxu)*c5{dzH9n%D?sJz6Y8^e5|s8RE3c$~PrDGS&+b*u+*8jX2J*NH2ErYClyo&G zY@*>bzIg2@w6@W0?N#T3t{M~g@VJL_X>b4s31dBj07NBVkndRHss2>Q29Uql7p3CW z$RxHiR+}kH*)Hz8*7^jR1`)zHL)Rd~*C||`e99i+>y26jyFxWzlBLxtEVL4B3X#<> zG|S^48H=>0Wlh7n+0jQ?@miuhacM00lD>eqeFc_I`9HzjeZn|-i67KHZ<)>5b{&GQ z`Op0+ubNHW$u&6vH9+vg^~zj|F7$1)kf&oaT`tFBmY&56G(AVUPij?aOuhiAT){u7 z+%!9R!jFrS;E{w`9yz)1!IDC@=FYVq#pb;5nnyzCaeZe8!`}57hz5{H=zZ(BhYGJ; zPMZfVnlq6tHv8=|j|_hpHLMkxD+b~>-g@2J;au`1Af5E;*#<02O1J?e66+P1XIaFo z785-YjhutqEZH1>Xn(^GFwS=2mV&ktTzpzS+N+6&@4+o4jdy=F-wKrZ^!ub{(Ih9l zlfrULJ^q<~=7SrzshXYX=WdMB88AeceP!ilvE>}LREYKKBEzhc-M<}`?b3J&KcRVU zF1OH{N@ilp4xl_?p*2jx15aGlumLt-jr(YM@H?3*8j(G4s1=9r|5HM?7eF`-O@ovh zewbUYd>Sj{AQ2%8)m`uH1wq;Jj3$A%gK;QW6uX?Kb9_tAs2IrTUJrEd z`u7Fw-jQrD3Hp3XwhLFJvm2J( zm@4sRN=K^03#0V6mUFu6Z%LZKm-m7fb`z#pyAqe{A`+`qB5L=km3EvpG|)=;$?_@{ z%i(^gef8m)0eJ%d=xiXP3-)&${dMof5Qm=U{|bL)_z=V;mOUJdE5pt<&3)RdzuG%v z{!9pk)eemSf&+=Y|;c z%OAVrJjjyxqxXyc>U~rCF6BP*vGTj#-U@~x**tu}JTZtaqICBbDP426-XOzS$?B}W zLlZ7lK}F-~26BtM)O-c>nzHU>R-fc6B~4M~1E>uZY!9D4)Ro^*ld1>1SVtITLS7e7 z=#ms-f2*eVcDQG{F9x|>6c)6}BeIPpTuo~{-?d99j*ROo;I`)((5CA5x~Nc1X=Lnj z$5FB%TuTyDfMPmjMKL0bN6*UwKtAkbvh1JQI= z%>iP)CY*>86I6kIQg<$?(KlE&X`*Fb_bR5+xBB~z`#nW0KYJMl^iYk@Q2}YT87S1j zOfq2b{vWk(5krOS567)OW4?tSUz>f6N|Gf;2Vi}SEk0JaNTEN{;z;|+OT>S0me(?V zM@HhF3@+W5o)1EvYDS7U!;dtovWM6CRe@wU?cn{!yK(GM_D|liGV6hzPxNHo7aM4k z&3b&GuYL7iotp9a0{8J_Fd}V%VkL`~;<>3G;l;a}#sa{hh=6^}XAyUEQ~q9b`2d+3 z_oJuH8d-6nvkNUsj-jPK36Yq#5}tt4{VSyW22B_=BT{#q?j?Ccv2Qg%t-#%d3O zW~RT2_m&Avdz^mwTc-2=m8}4BkIkx)WJ;X8=^DQO#2@oC-U_BWCOj6SPVo=F_qfLI zX?k8iIXIwSjgsl9G4e_pH$e&Zp@(M#?>b=rmHWCL#+lh)P4o$K>Ppg@JQ2=9{T)oe z2zJ>8;_gAp8{k}k86Wef=^r6yY)QJom6|k)k#dcE)70z)sqyKo_4E1hdI|5Iv>Se~ zb;GUKwbi1H82Y^!bJIoh09d9JHtdZnn@wn5cZj!lic#Iq@yWay+id_gK;`Tq8!#@S?|M2xJ9~W#yjCb8{j8ZAcG1TDsj+H*3<}XtVE@t-sJ1*DC%!Q8W&ZYwYxXR)zEb@ zk<-%?iSkF*2up;wM*cESwUHdIP@omfRAL?ZTce{jdp!nArb0LI0WLqLs@OfXe$RkrAuqmCSIPw+e;dnV zVG5271wOYF&~cLSV<~wXy~Ja|1C=!W3INvHp|3qLE4{T|AlexT`(a9lx@0Wv3My6(MTg z76-AAYuNt5{#{82XEufrA?1g~y`N3>af*b!jfXl3y555ppU2CBN&N?3?BjP@OqOvc zz$wK4WNAx|wZ4vdRMj&Sm4&Eau8sO*tzl&jh<|IsVplnO)T7!&LFN%0znB9kZumpm zFTTKw&P;qFDM(em!r%RM=f50p5hfwDg5KM$3gns1+_eQU8QCEd43$G2|=GPqA` zq5=`ijo~v5uQfJQv}vQ69(Wn=oR=99#u0Oy3dox!VVoh%ovzY#*4n%z?W{T@DwOk)Pn65D? zngYxr_z&*@F}%(n#Xnx6fo?UkEb=dO6{GYOjKt z{)K2||AuItpIAw8iQK_J_)ba^0hSJ}aXVdp^&TVM;Xzb%TPIf*lx_{{m0C6J~H0v^ZyqXQrBAM0> z6^9^!p&|s}(*wM{8_TpE@}^TaqZKGSRV`Pj54~3?5*p5l=uhafc6N?=W}P4@)O_vG zhYmR5UAg|}1+ZNco;1X?NW-Ip6~_Zm&2nJ2Lal9!JUmx;cm5HMEt&_07xvik_ox|u zgiPd;$oo;^=hrWYm9+qv>Bh4LkSZsKO&&G#c5dtp|3aKka~q97<1H2qH&L$G6yy9~ z9xW8VkayoYm95{)*mrDxLDiF{KfiI;^ZR-o?wxrzchkP`J;KKVT$?KewD6XH2);Rh z;1?pDJ}gt{+okv!FQ)?uoq#1_`D$LsyTi)WN=cs9e|r62mUd>Vtn!SRopbb3);P_4 z9Xy5~4a8FyK8?*(DN%cRMd-3?N-pet>}yg3yCt%d*)qCmGR;`OU*ILlUI~{<*LKjN zVZp3@%%7Ftt;K}7kI(TY0)HPrVx#zGnCEY=jsqoL4o}~ns4?oR>B4p*4Gk2(`?-cj zMU|7vb{76McMpEWZ4Gdk4=`)UxYvSTOfZPd3OTdn1;?E$*mm_NJ}q=N248JY;9b+mH5u`7B9!t_dp2spnd5@NLyKQ_QK=^_(x%an5|9FLlbUA z2OIj>*e!v+UGt|@WB0;3!=n;JsKsWNjNh?KuH;3--nkv&CJPSo_liO_an{&O9o z5n@&*UkRWe0M7+9gq4jST?8S;n;DRZpS$rHeV-qIV$iA4Xx>jiV)N@waQM-qrBhw9 z7bOF0Rt|v8QhlV3i;xtHW0n(V_2D=oZY}AI5+fIxy;6#sQM|%Leyb?%;f;4(K1#8h z#?$Mv^E~8)x~)8*3g}WE0T@b~WiZF$5A*%nX(iW1%jT7?jT{-58a{!?1dbw_udkM^ zzCq?z6DEa4*ShA2pIdnbdQ-u8_`@qq_fJE**{ucl4+qptZ&iD2CMDVlH8!g?-(v9& zTcz6ocB9O5(-iG`Pm73oc;mJEDVzUd zxL=pz*ThybM6g* zkGwze)Jfqwg30Vr8JA&R&d}cR{rckFDa1T;u%f375x$viW-tnFy`{07zX4XQaV zC7o zD`DT2lwk3r@1jwx)~a(3db0Zr=;S*sFgL{(e~N2Ry=0_6L^BKPwopH5VR`$eX5V6HwebPYTAuEA$9+9MWC9@b*yDT;7EC%+VXx zbr>jjeDnCD;ca6YErl)!Gv2`76~M7FoHUnXGjvLe+wDDcJ1=ztfwg zu7d429#mdC_OaKFeKiMo`MflVed`B6T0Td!;NJEWCgWr`yK6995mFKOLvBF-MQKj- zV7z|6(I3)&(5oytYpZWyWk9?#4n^iaP6NBC1%C1U3q#T3R9 z>$;&7e(#;Ar3(;rN1nz{2HV6 z1jt(Pv87Ibib}`6*LEB-$M)o4aqWSD-I^LNwsT1SSUyYbuH5a{l7T?T>#US})QH{0MKV zdVA`k@;CZaJ4>C+Jd- z2Q<$!wW`_A3yUJE+FoyHc_gQ9S+K>guNg2J5z@G(jIO3if~k2gfRZ5RFIoP$yf&GU@m9 z)ZEzITn$T>Pc`hoD8V#wEFi>FQK2KMc;>^4K0S&hy{XcVF266nW|wTxkn$u}7P~4d zZGU-UR(|LY?whfP!amCGF3`O+mt-#5@FpF`Z;W4D`=YU(6FN2645#D+5<8Uq``HaqyBzI+;4P#U_>(Qt9O=@;O~s(j2L*3QA+OJ{wR9mA)@G!N5~uHrgw; z8r(fzVD5X}lcN$-dJMtx#8B&A+~j;w8`7_R;KE>cgsG5(>A z#U|$P2}29FBv|J=C&YhT$|R4HQ`O9%v!VA#L0DPe4b|(m9HSR2#=+Z?9iMgV1YL>9 ztTzA%Kcp6|vue8PFAF}@dWAiD_FPBeE} z4Xd+&=kRNoL$8&9{Q+eN^eWAy8gL6vaj6tuRpKFNt(_d_?}&TR4`AP+vpr<$|1=S% z3k-r=F4CQ@2f;QImi;y@la82B5TZ=< zx?0YJf-^15Ya zq5WwhBy0}}-p&IcnlpghY?A)HWeHxn2NrEsC?Jmb@>C6dt?W5U z8$*Vnud&Njv z_QnsSM%la>37pC>Yhtg!FN};91OA4Qg&d0()xG3}?S!S(^^RYEZt91x+gpLe2pnbd zJ9ek{KgJPM3tl22x(&`*tB@G zz;|SM7je-qVGo_`?i9`7H4DI>A6s3JpD)smTe<6|Kle1B;^@hC91C&;f6^+?Vro{I zh&>mS4Hpq%rhr16ti)*ENsXBE2$gu(k#Qa$YrW$+|mo)BE=-n^NZ$79jcsfj3R$(hG_gxK4&B zZ3RNIgO0Xcz-zfh#vqqbhX1;{m*X2F?*M0L5~_Se?Ttn+_APvN!?3zYr#)Qh=xm<1 zCh*=J7yR-IY9$l@K&)_sJ}t4?(q(WJWRg*4)9jnlj7}&w5A!yeuuh{rpS=DkeYsK~ zW_0|1_2u9;zf4t{_>cXT z8vq_D8z<$OLv&FW_dP=QRFLX;W|b&D8ev`1|IKm>A!9qhC#o#%5d^n02Ek1FQk?oI z#b2p`RaUhP)51co34EJ>1b){)0zdHx-*u5hp0T=_KNo2%g{AGfVQIzaFYp6saRIUd z`KB_pv_!ucNKs@xSVm}^&bursn$T#owK^RAH0h(yj)8DHUz{%uKMy5Wk}%Kozl?{3 zZALdFV+*EO_Ahk7BqlIr_ESJ-AH1|z=OmZu4ULW3U2QQe)Mi?l(Q!TsF^tQ7evjc>s zl7=*n4Q&JPN&UL_-K=dApzp7V9HmuHNdUL!tj4vbQ9?XNfBX}sRSM2ACl}Cw4B1bS z?jBTrx2#j$&?!bzA}T%Fl?n^ts8y$$pHfC;iVQ&inQDFf!zD>gfVr>x`ES??1gu^K z`d1zb8w+07rtKwYIEdtCnWFVcVp55jT3_OXfq`nkfbV3pLb@FGz%dU^9ga2>fz+2x zYRcl5&40|Q7}Vb24yWHADU<}SCPufr91Qo@5)*5Gq7xQQ^gs^xgac99;gFkZjQAwb z=OwtF!WHK--(|TtICcC!8+cK-&2s|E316&txE@lZAVox`9Z(P=9cC~PO^v`)dSunl zDe}}CGP+q93t82W8GYfBo0Rp+%8#(qBJr*7PbV1-pfXd%sAIbh#`=?5ef@T9d>c|i z%pcK2pwGkhgWq*5BV+PTqp618l!mz~m$rqG!SV}{wcx;Fmf3PM3o#$Qjr;|`BM?ZS z0*Ww&Jw~f;7CR}R8%E9Cg~#v(PnZv#4-Vr1-$%soDR|U+wY} z8Q+VW$p-XwZiHc+!!rfLNwf`n6~veXweyBm3AHJd7Y=SeaOKpK5zCC9eYmzL%T?&A zEbScVKq4Hf_ZXR@XhQgAc>S*%bdA|p2wr3M0cnwYLdqjEvXmvWfLp)rNgHgU&Cz&O zK~=!3(q{wYw~nYw(0AB;K07;uge+)eJv^DfFFmr~4FImtSnmg;jx4!}0H)kJzm3r zC+6V>cDUP4jwcmU;AFMIgT$@YQ{d) zkcqLydY;n0^EY9}&h5d-0w;~r(@WEM`E^Z)taV1Py~Z}8Yv;C-JI)t}24@S!l9`_g zWwuC#d>yGam2u&z%u_c94-?FGDFFb-F$8$ypC z8OH&TOQpttKpC|H3a$iKzyB$};A)uD z4h(&500-a2(#1mT#Km~7*P2%tLJA)VD=p19GXBDd_3Bxk%d*9T7(s;?#XtGl3X|)9 zBmj6^h{_D7Rl&b({cDbCQ5hiB!X_5ZWQuR;{AuIvpb5N6fu_+cHs94cHjwnF%GI1?&n=&crtno`XGS1j7p zysM5=gp>>zphep3XfWdGk4vH$M)i0U^EjOK0#f}v_)TJ?x_@oK*X}(Io_%6C#*Juj zW&WG2CD0qw)=@MxY7cTu|J9*l*jZ*yt{_p`lBu|yQnIt4vE5M~<62`BJV7q)p2;;y zeJiMYUtLSNs?4&#Vm{Wb=DkbobmosF*r{#rQ#iob&(+4=CyGVR=!R#g1o1*D|D_q@F zVVN#nu(YxH{&7BEWTwwei-~nicTu@#0inJM&^kP?mb|o^Y+E0~0%RW5!;?OK7)G)= zwO56u7OzZxybjqqVM3$zOw-N|$M!_bflz{uBmrTXtFn7&K0+x}T(xhqCjg0rg!S*Z zDKlBqma?2k+Zo<5a;7%2OzfiQ46*DAzkVT*AZP`8{xbFo8yR}6oE66{zsEkm6Xl!CBgL;b%R(3ut^Ehk zj+I*79^`)d{)oy%R>v9n7e-rPz3&|F{EY!cpZ@VeEO7xe?s+<$QWL+H{JkEFvn z+gDQc1S4C)(|SZvmSaB=_BnMdP(QZ5Mgd*^{nnxOq`g<)jE%<9G+ZuCfp&t7n-VYd z&un#^n z;O+5Omd1lB-Sx}*cCq`Wx$15uZFQE#MVFCWW>$X1o{^l3Yot!yFRaErS=kFig;bQ& z8U7AVUG-(i3f(lr*L6I}t2bE0QB=e}g63BOa-MTorhDUEEektBKpXKPL5w0+nBFFb zyww`);?ALEKZyUl2WDPWo>&EvAn2o?9Ysn2z^#$|M=RjAVwmd8*{(L_x!GH{^3{qG z;B{1hiX3syAZXP(QP1zNB-3{*BJX3I+!9!~Pl^VVU79=qlQ)Kw14*=fsy$T(bdaRK zMc2m)h8mpuy!I9W;<_-p`jTquVi$i?iGsuGIgibOt7W9`sV@L#+BLeOHYc{~Hh-p8 z>wAt+IcS5BrnMaLE5dQ)SGNa5Wfa9c_YR!kSJ`$K6B4`W=O_X1tIi1;BS<33QU*Dc zDz-05%emHfn=Kcr@10`q`beX!vMaoEP{F^I+O1t_+x1oc^1HnsBQ2?yoYa@VP#~mTu2MbWOSk;so&Cx7YbV;N~QPQ~l0`H%=$@x%4L^F@9qq zCh;qVLkDSZ)`b+$GH=dJc$Hy@GW4|}u_Re}_z7h}H5p@3J*a{LI`XK8_R>=fvpo4E z>vN7kf&3xGvmP1!T??TZ*agsZX0C{}dmv}D6Rf=&qks56JEP{xeAjIx&JE9(+2QgM z5+~uB2FGY%yd-m&@&YVnIEoP zWS+FT6I9IM>I~~D{cqK$9(gdD6*s7<{y10Bw&R3Vy6pLfE849CPA>2Js z>hj^YKO=k$t8#Iv;~eW&s5UDa?&(z(Us_tz%lcr=uV^^EofCaX<2+|N@~nAii31EF zV5AebIM^|SdG6N2SAvGW;qpm5*3|v>`)vnq(flA#Vs>1!k(DiaplX$dg}YLNsR}w? zvzHf^U|nh{71vK@Ea(0Ddm9V4;9l#{eJe{w4?7n#+u8BqG73>P@#=oTjzQA?0LU*otwR3WXf?uAw>0Ky$lrs*X;{-P^gD8K| zr!TebQjiHBUt1F&GAY<8z8ko%5*0&tgi`o@ zxp)M-KirK2BIeqd(P4Wx^OpRdUa&vB_>(LdVD4pOi%DQ-i>ERrDd7?hVq@;ltV3f1 zl>#N?&c%m3%x?-wTX&qlQ9if?xlrP~e?i0V)HMHOOYF0O?Qb@-&Y^l5{~WkFMVVzq zVKrHV)jwCq+w1rhVlB~fN4 zK=~=U*|W#t;0Ts3W|Jp*SU8xJiGRz@$`fa1p*X(YXeQC-;=3jyx}pANnJz=3o_=EY zasGc^0I-QE64=BvOKR(;*;cG(GWYK;u=lSH zKb4$U%==tIeYX?|jT&b;jT)U6d1AsfB0M>0LTFK}I>VWV9yepF@8;v1Rfz6TD_t*1 za%R_7V=)uughtATGaj9=i^*C$S-%c}kpdNq+yrPaBkme^h__EsJnB8LvtU_b2?{Lm z(9;*!dVh4|&CPkPV)geYh zJR_klTIiW|mdMO;ZL~c8k7B!iEoMpzn0Q{<47V^u63~;YwX~EtOwKQ1K8O)noyAk& zXXngFBmFpdr0`ZMGDH zki6nnLZ`BelM!yl75!_Ps7W$V-4)o~+wYgyO;cqER&#!x2EkclT3N$r7I?O! ztY`9eRg0JAMBcBu4?tq$(~l_^F3v7A;3+~p5Q6;PWlnLgR_JHu_k`P63|Zy;axf`q zsITZ!OWkFE_6_eaT?I|^gL@fumY#bSp2fCC$EZ)uBBz5~`sTo@qyUxXTY27d%rx`s zq;6>&MAW*a1oKv`c?$;>89Qa7QK?a;dsZnt9>$8DwgIjY&CE_b1!^0w^O4ZiS#A<2 zA7UIS+{@wo`Ai#q*Rw$4>3(IROxiuRrV3i zRnce&K$Tde-_HtW#|!XG|M~aq0$OR)@6b-_*AgBr(Vez(UD_GetTFw&LrhP~xP13` zuG-9PPa>|GOX#SczKm>ei~M8@v`u}FM=~sxz~FR(w$lcK0Np0Uwa4iIIal6S_WZF& zFsexfG+6A`nrk?F$q#IBG1*m;GpN#7`fL`uL`Np%sER=i%k`KfbKpW`&PW@8`}8kf z;!{8M_L>mq+0tou-J*H!;^N`8@Y8944K!ZwD^?-8Iry=_4J+2gH(nX~t~ef|{@(ru zA}e7faKkH!%U{g%l4}}8gXDJi@gp70`P@4vP+I-e# z?`+37JlDu6P@Gr`AEJ@h!d41{0{?!euaR;LsW_x8rj#1B?R2kzHXRM>)))RNc zNm>3jmXDDjSd(vb`z~!zD0p_oeB>l{8wH~){Sie2Y_{=V0rh0g`S;^A&eHE*4`NeN zrgZ1rHzh7d=?sf6|2=h9rRPYym8-L>LqCBz{J>P-(R!Be*Nb(4a)Li=GnWk5J7GFy z78D@(J>$W5TJY6`|Kfba@iTeKm0M(X4d&*TtS%^RTKlqR8LC710|3ulR%v8TWg>n< z?Ld68|J=~ zZ;w?U4%~Putr#GV4ZJBFK;*Lm8^H@}Bm6OWx5+@%pMuAAkrsf5fzlZuR&5o{n4X#Z znOZtV`i3yzuD+TOjx{KZ;_!xox>=@71etJkolQRCi}2LIVavEFH5Rr@OJZ4W7vs>E zyaVTUD;j^Gkvx2kW@>~z*Xv0Tm<2(Z^Ji}o%;F++An0T9N>l{Wj&{W`Ke z=PapI$8Q#3&W%vlqv`$>{nXBxY{LM)5vf0LsIhmG_KDhM7jhTcjHE`u6oiN zUK?*cDSv~H_6Rfc^K-(^zb`Ta3Kv|=kYdiPHbk;}(>(QXLt@r>nB0ZYs{$!=h7Ehn zTz3cR`S zx=74!)|$Rwn{OxODKoZQRVP?gm#dK9d@|^v~+C77lR^NHring1J zy$sgRKa67yz*rWnM;Tnp6t4sz^$CsNSej%_PQuvvXEK5(P+JE!&93gAzA zb|D6-@Z!N4+2sM@y)PH&#bzff+l)p3OWAc{Dp?8-J0UI{R-{v`DG<^~Z8WtD&@SFt z5)BfaRa>v>G^-jKHlkJC0H41o_E~os_ET4T%iE3`y#?;--lzs=zKSTflurDcvOA`D zK-(BgvflQ3G~+u-Q2mnvhu;%PY*d1 zDL&?j0hd-!;$tJ>9W5*M2XZ?zKfV)Y2K47l{0#1YiINiA%^;X!bi7@9&{Fxs!X+^9 z#zUg_YLHU#uA#rY~?iWOA{SOl5zBR>atA(o)Z*^w-nI(==YV@;p8liV;MCob8r9)q zy;c3z5Q6Zjn!e#<))GxJF&Ea>m3xo#?T#)kdQ3=&3`!CND%L8k^c*}%$pra&`|KKG z2``fmhG!=nld^Mr!gvpBem4yUX!V&m#S)K{O=+ERCx}4EoC5BfD=1=JbmKt_L`|#i z)~+5_NT^g#;yoc0aWL@*x=TB)cbMXd`8IiBdb$N?!rNHGfWT7@E%LJ9j;^2!_KsRH z_tKO9&3oLiw;TDkEL=?$Y}cGJCirsA?nQ-ZbC5u(G)2xCi~?`z8aXHM zNS4BNIe21Y%!-Xf*gv+it|*J@ALu!q@rtk9OU;WO*JbKk29C?}cZ3fp7PV;|DM!4} z<>D2~lWlV8-LK;lQy{UqT4Ff24NO@4`?C8H`m1*o$c+0nfJDM>=zXezv*%8ZD>?xP z8ocBWSs7ZrV0N_JL{skF@g)|I;S24}ksaJwY*>^{yvwzlKUZ=Q>x5O4qWkbt{~TU+9cc)Tb#LDU~{ zVeU&-K6nCA|LxNwALfR&OX8#$Kp{il76^TpATT|DLN(v)h~WG0{;B0?Y4(_ixZJ(E zIy8U6OkA(EwU;-`&GPce3r?p_5v@REy_R3)%dZL6Ovx+OWR2Rz<)XbDX}d;Ol`&6OHcb}?%j))N` zu?FL@(taQ1*7R~Ff1^>q=o9A!0({*QmtamMEgcrqN!PTE#Ht6Vp@ymP4ZO7elMzaB zEtLin?J}*B{Mt!?DG)VN?)O(~Z+j<|zp&u-u@2V7fmgIJ=GsM?k5nakYhwy%NQ)TY zdowpDHTp)^GpabTCX^xU5WeM2`roYqLS~BoHurHqPCw18_kG9-kv3$`j2=yXk**2m z+JFw+4pI-L_aB#Zq}M9``fNWZDu5Gh;WEl`N$(`Gv6i-?C;;d@{oJ@Bl()6m(=*xY z+*!6!jYoNaTp1FLPNDo*p@1FT$AkK_2GZvuhxu#mt#C{^mcs{&D zCwELyY1g<)2bYr0k_L#)$#5|NXvi|MsUHeqQO+t1RCa*h0G2=w-3nuO+>B!|e(ZwK z?&4w8pnn$UbHogkOx$K<=`jA)yWiKFX3P5i81leWYRan-KoNiY82+!e16E0i-v7ZM zK3c#pUm%pNL4Cikw6^L?sFWDY4G?w-Z%wC0WziqrMFK<9^#{T#{!>e65G`@)G7*tO z%1AGtr06zpOHL=RrZ5#ST1BH>Y?ZY;Xt9T;vo2A-dwUVh|GwYL)mA=TMbqViJInAh z14A{|MT_TIY(W2c0oi5`Dfv0ku+Wn7tHO%G>asGQ8(`iSIU#bl<2IP`Y9Ui(z^Wa~ zI46m_uB*Wpik$rBMI2_|Kh_TD@pkl564xcQPdi=ijg?zwxP$;*;U%UNq2XzJql0O- ztF^sj#ON+I#b}#vv5e)E8m>C!eFkJYG*C3dBc*V9Ym*{g2pQspVidpVw6c&_S_8l@ zd!;IxS^{lTV=M|1S~lU`1=p+_m)YGT=dbs23Zgq_j1uZ9^Wo~ncc%N2?*7_%ARI+o zm;F{zQTe7ipZu7PboK}f>h2f4mwncE@Jeth`(IY0=Bx*L>CFq}?&BWxlJtkVq$Ts= zK^qx)+?;vBl{dH~>&jd|Ju9yydR{`U4&=Qk2~)vkaP#m~a=sCtlm@}=+tiPW$EOBu zR+H$nUlfddGyuaHoo)wiE$%6n&Ph3R4ZYz%`c`akToJ=0JBRSuY2<<)@7=tbF|0qD zVy;Itd}=zUVm_Yp^5^p2_=zLl>Z|5^`F(mPZrTB{S>wn&dq#Wu!*eY>dD^Mr;CI#i zbL*2ugzv_(=3LOg)m~Nlg=A=4^+>$0hz4T}iVhXf++lbE@P&!tgxo8+hO+Dt+IauGKAV8KF46Ut3{Td&X95keTlBUi{R2 zjnhVbvfjI-nLyJPaj`9NvV69drn@n)e(8E;D0I?bonw9yf7M?#f9iUQdh@%3EA@QQ zvm4{`ruK|0&1<*BUv6CBRKeqSwIXc;&Bfku#d#;!E_rj`JnW{Tc+htG(K>q#3RH&@ zKhHTHskbZH8rnB(KKjty83EtFk^%nHt&TpIKP768S_4L!iw9A@XUiXk@1Cz*?fjJS zHJq5@u$@m{lUgcLzMAnwBb(Xkg?%@-_0N7u$X==R2WtKv;@X8blZXsVQQC@hd}enZ zn60^@Ir!j~I%hF~v*}3ev&qXW;Y4cXk;K8Z1HW9Y8t|&VYv=jCDS-y|1UuMqg)7DD z#BOjS?EU!M$9#o5H2TxUF5|nj=epgkQWK{wo`xqyzUN&ZQbB4{!#~07sHrMil!EjY zsrea_W3#a7lMASDm_C=h7#OKnFGK3aRCBG^B1dLo_huloZm`}!pH@s+IqQ&o812T- z1oc}Ed|!tnV*O~@MP?gQQPcY`e=d&~^glRPsxk?^`-EB0<|{?uW3bL=%BD+$^>kCy zOpX9F)#@5KvJ1P&%s=aNZpAf;z7l#g|25t2Ge#!VDdb6Jy#LsZ&9irWMitxXPLQ3f znUkwi6P)et zJCVFB8dxNj@ZEFT=8Jpl3_Fn$g`GAtpM*3I_^zokH(xeo+6A>m_*Us$2ysS;0e=eI zYNQm2*LAp3U%r!pXbOp+^HbCHS)|g-Eh||Z+Fo38i&soP_s|3Wz2=;P=Brr)k6_=G ziDK_nsxie>ek7gu*@5qQr^GKqUmWjK)Y>P_fUPwoJayr~x7lgasX0XPYPefwn|9-# z$015n(Pvj5HMnqM)r?3#@2kv+?m12qy`b}5Dfo?%SiXNA8?AWdtep=-s@EO!`<$2d zet@5_EAHUzn_QBL9@#j=!GD**e}4cTta%dTgX1|I-$Rr%8<&{FChC&Vx7a}P9kCni9|i z&n~*WU;wPppw9+cI$!cD24Pd>i;@c8Gsq2qk0;7l!4P7PMU&cW$&C(9&GEteyg7qE ztNK@dU!dM8HORZxeW_~emWpPyOf8>#_5K;-qlwyrj>MA%kUfyh8-7`46s^1e2=7GS z1drs1q4W7|`b=T~UsuuNz)PLbsW}Z~-wX6JR=)UICu}Lb>yfDn&5S8F?bOHXyzaf! z?*LXv`{4n~OhmDzq(w z9_Zr@phAY6qvp@b`|omDz<~81)y3Y6L_YTrtXwz!KI-QclIT=AL z54YF%47aagF3hjY>Q6^vwtbU*SM3bWBFuDG-<{9c?Fq=t<+#_K?z0;oqT=>-FJK3B zdS`)2c>*gTz^&NstN84&=r`-Gb?;h|!kQV^4pcGFu1SaQZ0+TA_Q^={x9FLc71B$L z-S+|sl)i^p7~NS^T{G9>Ldl}m4NHA^c@MN1Y3OA+wWbi@e|(`Up{C6W@i$Z9*nekY z27C`1tX3v{sX6y5QqAEi1EW5?b`PLPnlf>>?!_kFXE;kQ@0$S%V#L0$PSfvJuP)fH z?u3w$LZ8c+O6Gz{{IzE7T}YUo)s>|^{8>9LOFeIv>GXeyI?Jf2qpt1SD6L3IjDmE7 zN`r`ibazP(NH+{IN=Sor4&B`y(#_D_4MQ{J!0`UPpXYwwFMe>jSj(BsKG(j^*}n_$ z)<}c6!NrgNO@kkKqJ~wnQ<{bNLHtafVRE{D-%ACw__F*AcP7U+kY6yIO#rxhB71jH z!ghiJm3V^I%e}rSZ@)t2FktOJnoN$h_Lm}%7?t?4aD2~%l`)~G?(0thZK4LQ;6n!z z{=9@jJit@SVV6Z5Cn%!4wn`353shu^t&8T6(?8q)hz-vvbd*h}kL>(s9CU!}==dh` zay?<&Wkx2F4bVmzCW8OXfhkLqWa1r)@7UO~Q`0IC?LyR?KXQaR3_H0(xSZ-L@C66g zh3`u5@O#)??i-OzN4e9}!0FqyI6QT?OMB6?9JZah4o>M(r(9(Vcp5Ms6YYK|aGiBi z`CM_Q&0kLFKK=A4E_F*EU42T7e}o#KOZD(Cc_w@_Ytee8ny%j_3d%qoWlgvChC^ZZ zXwZs#2JU6+-3EAYTg{r+U1k@peKHtzyUBL4Z9k;nN!$_?uGe)X`WY@ftbbdQ4n->p zAcq%0Cux=bF8Ha)YxKJ7t)>nR^!@3hmea3JJ5kG zUkA&_+341XQ$j$8Eunf|VXde1&`;dw4p&|J>+aB)C9AvQAwU77qL)W0R*pP~^{)ic zQhcksUuL#bSKQqf-xi}c2=laYq1T(GXkWeQ=-P$qocz>l@NJ)em(-f<)v^Cho6A^| zy!O>eC6?QM*Hs_rF3KVmvfT$>a><(q_2E{mY$N=(U!l-*a{p z?u0_`=I;8|NnI{2S;dlNCEw8ilb^@3ei~jAfy;up>j^Wn0GcPYMB0nX>zg_y&-E?g z=!$<=CR^5${pNCx{{5c-VeZtsHkDyd(S$>D_?m%*-C4QBRo~^fAa^Ruw&$8M9f&Ac z0`76HwM)poN^rj&g<->#`a5MxQ$TArfAEwXdULtccHd#Y+;YF{dcF#UI8>Lmvy&2p zB=&u$G-5+xWS{$Kn)-w~;RGbS=yXhnmyrOJ7*}j4gSp$%4m1&5pu@q!ahYK8J6D34M{Zr#o^#_0ogKf&Umta%|+yDM@vS^5{I?eemtvj6fj6Z8(iP9e{#APUYnuP zv;@|`j^pSkKg%%H>N2)lpv#L-KL46D3w90h$ZBJcr^z%Z{!j$)d@@6ut$_76_9%4? zR*TRA@bbwNX!UB7#bsQ+*Vv*{5*sWeL3dF-fh+w@s{;2V>4g&qnR<@j;%lobtQ#?rMMhhME9y+G(Yo(nZZwxF7OPByUWAUS7I%VBFtrOA5N z32e!%9iH2M$HkScqft;l7pJ2ZJKg>PIF)es=@!P$^u4&3gF?LoTk~I@&R^UMa!0W? zZy`^^7qzsmhFn;BQfE_~=eELg&Qe*4mQl>@Hv z(Zmqg2E+aPE`?Hd(UFStbtaoGY7J;)4an&qE(=7@EZ9JEJfG@~)V^Uq&DHr4pM8#` zo{QhdD>Ha$W3ehr1ODq>pYXyzG5ie2%;l(@udEtx_l+A6UjmUk;7zPv zO8Zogwk>?dR?IVevLb=mW#`3Gw`b$Dd}dWg8fhcI^k%fRh!j_m!`>Qswxh@hNw(?y ztVOXh@gNea4*O`FQ9@8*`rGRuf=C@iRo-6L(aBwIvW z#Zu28-*C8}boqM9Q)$qM2(pqMrGH;L(5jDqCVX4$S?GCD11oLPK;QMXE)2qU_S|>3 z(Tk@?bfC>r!A8d^?UURi#(T)!M3PiW*LK(XHxPQK&;P80LH?Au#mTqPnO_qM?aal( zF_?4Pe0XCU|Ex7J^+kam9I`AB_78BeiULmbazXCs|yb2;2AFjeCw ze6)F!Ri|0(7DanMlAEIrb!N_$HpL4DPc2=RN8wGgMYwfLM#&5Ma&JSSajk#QMMp#G zb}lX5xo|zC!!!TZcC26%yrxvj=i#9OPBqxXLNQQW=gY><1e+bIC9iWFtH_1_dI6_c zS1pr*fc?DhUj4h@UcS)%>JG$r-T8PI1mrGmZk^54TkfjJx;fM(Zy)b2>y~T-ud8A& zC4XRbaR^(xg$`*tkv52v8Xil(;I}FH17NWmrbGkVilW!q%5i<`W~26XYz$o8C6(3LGS#WDIcMNChySdx61iaW>cfE`mSBT0 zq99^R`#W^R8i^UJ+<_P-K%o{m)cg^jspOhT;m{?-ra>Pj%+vNqX1Ck;p5^A*Kv0ZW z93FapGn6O-_4bTrAX&vfJiU&nfHwq_3&o*36dx-R-*Pnn{0K z0&(vNTZT+GzEc#d}OK0y_(*)T16HN5_^_ZD*b7+G^$x;?x!8k{|j zj?j4DV9%`=K6*M>do^%Ah{IwRYHKTV1}(nHCkuVr>L zREgZ@q~%YxTT{?>SVFgyO(@UkX|DU7!dqAbv5IW8EDY0r_xh8^X>Mk!5IWl;RUgyP zraq>Syf$mW81dfm3rzH^1X#Z^01|x+ebb#j5CBwmc!VV@iyRfbBn792Bn4sc?%T>- zHU}OHr6&&l`2+7Yhf@uP3mHn6pFZUx5)Bbyjg^{u9wDOE&<1Ad^`!L|MG*wXy!lb7 z;9WUAH=fI>TF2*7p&VX$7QR|_d;799;E6?5%Ar=k&aZC5dglQx3}ELFSgB+Y<=|P?lpA71(mbo1l-#j9 zWI(pfeq^);@AunF^t@FD^0I5%(I484o zM0<~$VEO*SRYDKqXX36`|D)6cRuTY{`?{`w(QJD|D89Yez>EmO~ytD9XY`IyQ&PNeHrWdDWyS2pi8t6W45~vW#Q7wA&V@ zHMvNEgmcmD3ljHX{T3}XoGPJ?Jl+x$8QVd_k7rb1bq;lBMqP~rw~Ai5`q8Hy{c;0R zvAN3bA?d+pX(|`hT`+b;G8q?2}_))|QkAuLodTc?q;6yN$D%QPOz{#otLEV#AVpAGo*RIB#v+ zFJZo<8JXEQqUU&z(CEsW)t*lKkdmHYu8$ZmLxIJZR!(sENuh)up+x0ty7FyIa zd2e@-@1Aq>R`w?qCXDT>hvfcA*$PLy3pcDU^WH62OvH#65{o|H{O5ngQwDlLR$Sgbxz)0SMHz^5{oo+SS zU50mI{T%KeLXNh2od%-z@mlY7(J}gU7b|S~s9_|v*6@oS_c^AkHEJ64!o5&~z3b+g zznE(4Z8j`*bbcy-&z@fh&2fT1(hgNU{^QckOccZcw>u`_W4cT0ZAwkzeK6_pK$%Y2 zMpG-ol-4sjg7zWr;%5^{hI&7YAeX3kL6~-|gW_xFt-|5k*pPZ_t~g2n*IL~WKZzAw zM7@<3tH+hYyOkK}_AA}#Rm1n!atw?}M!ZX8q+4X)!d_X$ctv+s(MUSUr_1DU!n2=C z?13NKXnt#`eoZ(MDU$0?cxOsVss73D;iLY2;ylsknC=l7AQ5`tF63XXpwlC!f3bo< zMmW>|W`yI={a;47UkXXR(gBCb1^>Y0AgP!LSLU;P(#G7V#IsD;HPhBYUZep)H^6~? zFaGITNCzV%+AALZldDd&Q$+fX@uw$HlUr-&_EuP5fNZ&ce1l@A=0pR;6Zgeq{5u^O zV;D8CWMsU0{=WDa0)weRvQ^SqXQE7rpB@ANASr53U|0MNR=SZ5nS0DiByV6!5Ey;+ zg!@|r))Sk0r|H1EA=lt|p61(vGkrH`cA^5z%VcNQhY7i>FL<30nES0@8%qz$El5K7 zxsFu${4=lFMmBHdCQdDglKsV|s>fy{_@1S*tnRp`c0EPA3q((WM(^-1vzF!yX_NI! zi>azoP zX=>K`joMPa8lE=l!GapQH1s>zX#M8DLt3nv%wIP79L7T?ffSb7aW-^!U*E8KW^UIpAlz_(jHnx29Jp`l`zE#Zf9r%}r!t`ajcvora7U(`W7 zZuC{#guhmA(VuHP3V~Rcr>Jo04OxM zcww=c&jxHtNb2WwMb-f zqZ+($bTr*{ZVvG%8YQA3Cfl5~)72xm#g5RK3d}YEiea>9dZMX)FD7$gF)@aAhS?+a z`yRg3ein&o0KLe_OCMkB(n}m|HIIPM1VLEzM@M?SvSUYa#Yb32v3wJ`vneY4bot$e z(Ske7q(VjnWdBmta|38m2rl^3Z9(h$`_g2A6M6khnY&ha3v?}4AF^jzk~Bb}?&4J; zDx`Y-Q@H_qVJ@nM(Y^@P^;JLX^DD0NK8^#Y`!f8no0xR;akIoV+ud9>8p}s6uCQ}HQGEKR5ZXl^5SoL~n}*re`}S4B_G||s z_lxJ@LR;CySNw**R&Y;Z##L+FyEqr9m$yo@Tm*oo$24FIUmaL3(R<){&(FGs^|N5| zbG56YAhUDjg+;@5GhOO!AzdnJ5Rq~Xg?XU2fm2+?rXIbee%;rs{zcRd@&>v+dJ1~p zq3cVxR+uRl-bAIha_6TDbikSXIeR8SWI2+2mU@~JUE;E^`@l}=_aYB30k7S}DCd8k z6k>Pv%6$0`#$p`vxl#k<3JO5nSKs2ZaSB+Q{%%UBUzJ+@hq0JRRG)7UR0ma&7=F-U z-XwoX#g7d!ln)R29eVy+nlAkwZy$#7msQN^@_swppCXl`a{8ugI7eUAA>2ahCl{2!B9bomLk{mQm(S8B1dUc|? zX!AvP4njD&Zl4;jKKmU;LaOA<@vhD{r4(0G;OkFzCL)MI%|ib-*9m(PjtKJ?us_98 z>`KdcI+Nps1l0wGJHG7&LmMC8HplwbseRm`FA{w?1tGdY8rW_kEXYZ`-5urX`fw2; zk>;G+qedKFUp@ess%{eAD8qiIQe$!iJm#q{B{5HmW|C%c{7ovtz~r6yDtXhVVODDS z2gP?uJK%t>xCFWe{`Hllz`n8RA!32ET@c}Y#iZJq*r)}RU@xn-$OFN`RElCc`7-5j zZ2;dIpI^dqKdHUiVCxi4xqBzHH5#{Mb+UY?pr{hgc;PNgvF?LAI@rF`)H@kraD z?|6%sPbsXAE|^;o#9Z3D_hk%yl358iHfr8_luU(AsI1P_8oXp(43QHy*(_2o5-6pPU?32=AipZ4aj!w>n zU679MuC~IJv~yv{q|I^pWf!qgaaf3fQ>H*_gKYGo3qg0#9Gj59YoDOx7rcGII z-(IOE2l>1pb7ZS!L19k3vJoC64E)w!xNfJoxZ8W&<4!G22(5ELr12OhFB(bjxa%n{6y)gAM+NULq9$jSOuAUkkC|N7uOuZsXR<#WDGnSBK998Joi|{FdQ;_ zLv0k$KmPs4#)@%bu6l0J=9y5+XxCDyWQn37rnd9(-54fwfiIluCUHxl9u zJE&GUE~$a;E-OB)WBNoq!CaFvBTu+X4}fo$O1Pmz^h$;eB8D|Mn5a#RnmahuQJPmo_oUg?38ry=S&CPRsb;-Z?jmTsUGGun+p?jIdzi70XmD|<&>NJ?`^aaTBx{=XCtzkmd zyfD~MKk0fFV-9um`W`)6e>GE9SB6KiwR}_wFcyMwyiS~wU*;TY+r@ia9uGUttgh+H z@F#@}b7+^YhPR-`2)eS)VkMMLU_$)kOQ`WXP=$R)`~~#DGcH9%b7Ynj1(Kx8|Clx% z+H`1~;v93gLvnJI?|Cd6my%pUr*~T{9WJaWaOddRkCr@oY>gkc+5)9*sUg8zW1Cgf z$mK`L_*T{pcwJD<)mT>@;Y0$yz-zlttZ2Q8h5DoObqC`@ru0&#TfrV(my$a>hy{uH zw&yQ--bQn<@EtbPvIUHc1*y2r`-Jg!^Y{976;BcU#PsvTYb0lmw8Ov^Jr0yfN_42oA1?eaM z3Y8uEb2_#3^}%BJ6A_gx)oz|~KDB}XhnncouGbk7Rl$lALwC+*a(3A1j|CNdnsRdo zBP~94V{*nf@>G6vjYL&*P(|&uY~vSXF100>pIyGbkGQxZRvY{ z@^JO*4VF-#rrp4vWVea|BZnj_fKAyDc>Pl3Xk%slMP|&)8Avxq00Oco6REg1mq<;s z&pE)kUwnM?OPL}_(ICH@wf$JQ9|(c1#94i3-Ofh+UQ`sdSS0)+1qmMux3m? z_m;FdHR711laE3(H*_WKFQTpD1Z|Je)b~HeN-Wsix46a_4r99d+t=9WyIP|+E}CwN zk#$okY;`X|M{EnEHm%6K%H4FA^v4%}*;rSUmpe*dhu`np;|n59yA`uSaRu!+<1epG zGNq4$qOMBhnc2vG;qtsH9QfTMFfY7#OihlelODYk%CT?!3BP%SxYX9)e8Y3~#zGlE zkh%}O)DhShiA#aBPQDN*Zusk_zpb7UFOY9H?G9c~P@5LH@Vjys52n43TwFqxl#Fj; z`PrWv$4+qs6@ZOeeRcwhJu38B1x~U({-%CE=;~|T;9Ba)4WRpZ=sa*W($6-$tuB-l z?s+lS>g_TyRCX`)p(zhR2R;jy3xVd_mU@Dr2Z|LZfxc})CdfmDC8Lt8uiuDj-I47f-xIEImt zFG(iIh)^oj0y#K{EBmtlENujqFKPsFD94NU^UC)ws1!t zu0j9o1?%pM%+BbOIum;8YqsD@?w=v52_jexe4>~ z&2M5lPxgl)ZON;(;Fcttx(h#+@AF~pkG5|EtNx$PmGyS{6RlyyR@U%+G9y(NOn&XAJ$G&+H6kpq}z1)fk;=U$w`IkTC zh|=K-EpZ*Azp`#|KXWnnW+bq610@JLD}AUNu%7CXAA8w~>Sw@fTdK_$lWr(#zxR^h2h0T}witTaW|wgFnX{2Suk-!yWZLNfMd>-sunBq%eVI8xi{G{UbJ@fb4)q$u4i@#KeNF}nf#cU*%N2jsBNC*87@zR6(>Q_ zn4xFf4f5>Eb~!`zTEKTGc(?3^tolSus$jd;g~3wb(`n4q(wyIT$>m&M7YAQ7GU%$> zfT3WUMGdXfv%jw2X*@$_7jb;1DI^vN-)Myse)7OsfeSq8d9v8Cf05ct9!g4|#`a{)>tyVR+G8O*DhFGop7wuyGIZv)Z zT2(XlyW?`Rs~?XW|E`wU^Ea9+tpvg~-9}fd^h)a&eb8&>Or>?w=Pd8FPdZz*dDH9h8kc@jLR@dx zdzKECw+(Bn)hYb?W>~q8@6mCV{ObW7MtH)|H>r~sKhiIpk3&znY>z`Db4hUP%FBQ0 zL1vs^wNJ(b%r z;$A!Q9%TX5orXz_pn)`no5GkV(3kF;u9QCM=&3oP_eaTd)GeX>mbL?TWzC=Xkd#bx zOM-504pSGcEX}9y`Z(8E-M=5Pb4PIbHZ zR2B>O0M%zr|B+RviTHVvUlE+Lh82!+$5b6~G^gkHd{IO)rxf#ct`r8RbRer5v_1DA zBzn_9kVep?gk5vc3ok4QIru0CHy^8H&ld4iPGaJrMUo2M{xgOj5aYzoliieenQhBP z#|_$Ck6yrJU|he8MR$6gI8z?K!PT?$+0aa>pFvp`%sB1N@c;ZOyK*Kw@(yXM>qC?M zp2&J38mTc}7Hqu$e_z0gdDH4?zXVmV*s2*&BX`z@+$gKJ+%!;7*04qij;h%N3IjA; zz4B9JDLGTpOUo9!=TxQXOGJT6OeDgHeA@-j_yP21^8>}V@Bx<(L0 z7r2du%b$GlF@-|IT~~2ob=G5S@aU7CJI+XpQm;DE6xv&f^Xa1bLHfJO0|*YE*9qKJ zcn8<}ba~H@cG6w`;#^8z);Jw#m%1PH_g&_=fgnM$;Z@_Tg6BRbH2m(1W}C57R3g%+F(cwq0?f-n+#7&Dd)UhKO z&n7gL8t4N%kOl$$-xW6Uf7J~&;eg}=FG2uGVj`c_FGkzHD8xpA8Qz_!0;ZvdrGT>5m z{8ZC-ULzIrra*1={1*^(?s6t-#_AaqsaJzVhs5;u8=(;0Q)CdsKV5>^8#=&bVSj_% zqVq*k4})|EN5#I?Vfm)`{$S+<@2m56={V}BJ7`_)_}+ZVNg2v}I3x3sLLv5bkLHit ziBti#!SQ&)0m3NpLoJwrJI?cqIs7cvx&pkXVl(2lNJxE+-&g;9rr&)uh!FwPq? zYGAB?uNCKkq*)UrPqM1Csu`-8Ejd0YYi$^t9$vEZiCh@5T%@c2HNA?V)Ur^kpiL!6 zCbgR7Sm8vZ3>EK3eEOo~{PDwdSf$tP`I*wx;!SXVu7I`6aswpFoAq|IJ{?nkU*uF= z!|g{dubG~o7G1!go4eu>t3xpb4#rz2HyOlIjiqj5csazgoJHF+1b&!dCEWOM(Hvna z3*t}JzR=NGK7$V-op@7WvJzjc143z~u1?=!+6%@Uv}}JY zclK;;9Q>?p`e2wHcWv^IKqjm-cl_C!y|dUd3j=$DTj%NX@jUBAv3JE$3R72z?R{i< zrE{n0yygG?=gmO;7XFiyAl|#&c(2&iHHXh8uvZt22xAu;eaa9f8hh~sj9(gM#hIOw zCL5{C3Bj|b!#r+#5=`WduPk>@c;8-!gkQgwAIb<+++few-xDYf3i(MT^LpcP#QSx?)<#M)FW5}dN!kc`jUxGcg+dL=5V%+{2MP|(EFgcao%KAh;dhoBw}=1r0v`PdcwiKgoG+5g{^28; zs@dJR>XJdYVCkfN_1EV=OiemUgGN8?_%g^4HAd)e+j!aZxG!5T-m{be#r0_(_^{&w zFIEU@lFvFQrsy~1kaVr97B31nY6Zxg%?50X6@8XEr3dL)XyM81n){fz*`0*kL+Bew z4rXOvf46Q4LGVqZPoJS)B9r_BgWScMB5Tw@FxxTiS1;ZCb{t&py#SgTim=$Nmc8iq zxrZNuGlalbJ`9yAiJnmVdAI56)(wxoE@Cavr>|HAT$+Q6mJRgZ9m1L95V&6@uyFyi z^+O;-#pN1_I?IwlZg86^!1aqiF!}zu5O5bn~p(6JlEE<#nR~z z!D(ueRr>DP=Vbf`&e^KyO)+5tAFMMDmZ6OVngNb4UaIBen_uPU>q$7iJ6Wj>M;d-Y z4&-w*JvNiI1@J{DbL#eoW$#pZ{Wx`(byvM;@AkvDp{UNm``FX}7U+N>|K>V> z3VIXv_EfRI?~Z^&)3z_H3xfm3<2^S}n;Do<_~8@HOlcS-<;A0<5XO$J#4{@$ zr#%u{0_2&H;Sx`~lE?{fT81tUxW7!3$Cayct#b>QV4j`PgNejaHiArk8(yl?BOI%^ zz|6}>TzSYB|H%`E z=c7y(HoImkK~sj}ITk_bp8ncSY3;z}#Q9GT1Inz?uv-5v2oHJ{(~7*Gx<3#W4IV7N zfk)2D2-`ljP9N^pX4~V!y{tI~wwQ zfEaUC0?7Kc+GOMahQQ6+3GtB^_0S@>)ShwP6K+v5hjj~V($`Qn;aWMX>!j+jee5+Y zV_KV2#&8gWGrO>h6hRmTtMkfRGQW^QceVKik64WE_x^t+IJqyi?h~m&>2tF6w(KaO zv;pKD-_0lzaML>$9m&=;M)5_;@*IO8?Q3`yQidlYcmQJ~jm@+xNYY-V2nCu>g0IEjmG+b*jLqNtq!gmR`xIQ*1{vU_reOX#U}pOy^YAE5ga(6w; zZhPd~L`Fgs9mM#9ts2w&Tfv1h?sH0U%Z@%wlDaH+wr3i)lBMkLy8Y|K#eXSlkBLS9 z9C?@F>p+)IJu10l9e=^8w3R$MI5J48DKB2dDo%|Kwt&gw zpHQ2KhrAHWNmiC-kuel1bo2Hb`mAF4+h~I17ZAl8!5PkpEoUXEuk#8p*xf-OBNe0= z<;l%od`P$12!=$y{qv0%E-JZ`^2E9vsSmu737_~sXm9h-wwpykxPTR9sfPQsg3{0e z0?_?BwT;({|8yqc7|=bLgC^Ikdxk9=u~fn%Z|zfJkH7A1MeNVP<92h{#(pyAq-b3d zFi?q#(BHdjYPn>u(eC<1>g!qz+*t|?M+(7oL+883a4FUdVhK|b9LUAmL!8UfpQQ7Z z!kV6wroq&#M`<*%VF={mp2}gbVEG}R?lj>5SHuq4#1;TxYvBOm#U1NYi=8E$4LmiR zztl|m(nKC&b}lEs|6FdMIQpU}<>Z$Jj+JSDDuQ7* z7_S>yO%2(>D)G2*W19Kj6Vdsp#j;R1e`kt>3TG_%*M%U~p5GdKEW zOsAo*!5)6YcGjO!Ow6Fsx~zfg+{VrRFX7BA_I^k%p|w6(q+CRw>k`<2wydf{&&~mGbonn*%h$G^f4S6FStRVSCVA^O`^d%!BJh@HWDREEIDd>w>BA<>X zUFHul^+_olRfL8U=82AcJm}L-km4AB(b=uY!#`q}kNRJJWoMGJEUC=*mn`^hJz_O% zxhH4l)Wu5K!ss}q5vo_KC*^0$8?8+D6b`n-Jl2#0iYJXbIFbxaQQ2LTXX!f zWA`Z$+V5oAHC*aGQ`#P&nq=2J#46`;5h5QP#wogMoyRB0`2$-S*l5Q_DC^4LFJw9R zF&M;YLNr{tC7GPY_1lisp4EvUjIo>7Lm_?&P>2$|=L|C8t%h1~y{4z#(HK z=b$N1QPp{BQK4itQp{Ov+z9@=JyDq0Jb&(dDOegPsD}*Az|XzbjSB*jsZ_v6EI+?zE9-(ZwA3&=b)(^4Ry{qfr&9k{Vt(e~?$_2G zd-6@eV?%ymsQo|572lgdP!iosYK1+NvBzMiM9Lw(m7QR<6#_&QtBfIFC zYkc4cg4}p0RCU}brQ1e@^#(^60IQHW!2OZi0#HmHH>9Zs9}?kLA5^n|8!$g9Lg3E~ z%wjGTCrlG8zH|jxh60Q>qye`p(68*KJ|#bdlWf$RasRG4)LbPzC2RuG10aIxsKEaM zUE{WkP{{yTAHj^Iq{QuZUGlegR*&ePe{jtuGDhS$OhTALyJ#YDVor(ir`z`vOj65& zHmPXh*aIO1EQ|-g|3@1de;3{6Ac_4WyC-=KL#v-X<-~kakb6!HTLw55lOhnn_1Cwr zKRLvQC(`_*=&|^G=+tt3^tXdX;=CRO0E7E}xD}CH3XnOzI_LibZYrFk+%o&C^){F8 z))>xY^gj~*)BI)~>|S}{@=8z+H6~Z?Dra)nM5a8oF8@H5>}cUlCwDg?nblnN`Kmd_cTfoAQQlRD&onVI8#2DM z9_XG&N7_R^C63q^^!xvMNBZP5WV_Q;g-71Y6HrISPky)k_FFsbrV$*L2C~9(L&;OefuvK~q)czzoWK1I zjO`ql@bjz?>t{?`UbH7o;oqw&@0#%1x%f|KQ(rmctuIojl=^rp83Ehm#bI?i*>k|h zfW1Bol36`<_#7){{FX7%PnnzRKV1kQ1clpoQLRdr%yb8kKdLM%B6Zpdf$0aQmpXM# zUZSE&=mpjv6Q6iId0?577$&sE{^othiem|8Qhon$Pfz@t1gT{0c=*+W^@c8bF7h6; zpA6Vh!0LTRgDNq>lQ_q;>se5oY!2tst`&plv82T^yus-qANoS=K0Ylua z(bfbmSw27G;X2VLueYn|#SHHIUc12{^mwLq`Sp?a|7xYpV%TXQ1<0eFQuv-`C~D)k zDOXRzU&!4IVS(S=D_L-e*u$=Zctb@zoGwcx-6635RQu+7axe?ol*#v!edN3WJTiF7 ze!rKsua>fnJC$#u1Sc!Voggq6|&) zo7OtC{5`tq1X_(M$ofn-6V%gLCiBxpRkC=MWBhW#lMFv%3l=mYq=ErKOlQ*UK=8_j zTZqCaYyURxZC%=9zXKR?>76{8KY#UTn{Uc|q+S`m-Qxr%`#oU6{4ZXQo_K#U0v`fP zPng#bo~CxX4#A5-UOiDLc?>inoYg@c3i9Eqp z6{pYnWVPDTrelh07^m|`Yhr1B$KIjRA2$FkQf%!-n#_@N=O%ET{a$xg&$X9OT?B=W z|3^a2o0GXe`W7}GxipN}1FQt?1G)V#2z-53!f$c$n;r!q%9IBUE4N1x)k7=iPn#RL z2S9-*`7&>51PySRs8^3PLJ@YdytA~GhvYQC_`E}cL-yhlJMSEdq44Sh5m^+M@&FMX{mwu+AU`Qb@m!X~AwZr?`_8DFMmaVgH`*s-FDf*&hsR z!NW;+52OP>dQW`|fA+t2gJ<=m?H%Ai@Eoc(Qk?!|x?i`S?B##g+~-bB z6Z;}u<&+5#ZAI{ZO6w(7SC^WUd-9+#uSR|_*cm%aeuoFv?Nq>(jqTGTEE}Ie#q8a} zW7_uGhK6-0n2Oni(!dPn%S!SwmS{Br_L5?9`{ztElZXJulhWrD%p`7NQn4NBD{0bd zx%iV?N|OwydsSH|#;Q*GUBY0Uhp#2Lo#&~w-m25zG={xZ0)s5_t^ex<&?oH~7`~zQ zad}XU6K-#+?9yIQVs=^;}L)Np2&?odL#Oe>V6Y#8l$u7d|C z!{>UXwfTEx3GXgQNxp=~HNzN8$@_*&DdLd643?5qsE{3Fo2c0?$syp393AbUqJ1tN zYOr@Rn`+=$Py&`AnGTeOKTN-o`7^-Wj4ev6Cv00Fy7O3cNAhnWK)}NPvG|8DnXZXX zS@0t(@LoS`Ju}Y%J1Y;7Pw`2~MP;EUa+8>uq7C}J%JyaVylRaOWWwft?b-D8vS$fo zSIAut5?UO0Sb09S=+g1u0o-ba^_F)S_0sd`HpW5y9>w9g3U&54>T$X0d&(5`N;{G0 zpGqqwsLPkXU1j=)MI$e^ZG8H5YBs8&$V+Fpf7hD6xMYjs-Nn;r3eB}Ex*Y?Se=JCQ zBCp|Y-Q2Phiq9;$K$wPSn8lrkNNxXYo^oHWw3S>P|o5g$WH;I{P;? z@(!?uTb8zLM;_9=V5i3@ zFu0RbStYtXVg+W@`;ccX%n}a}FVZ%9_@}+E zy6f~aDduiYPq!=WzjuKs1$6J2zRM8{Xv1TL8FMEHg4?RKCj6gtg))7#X5ZQ$c8WlK z>D_3n7CL&sIF)_&^(RBK1!}h5b?Y#krt-%eQ_JITTE41d$@QuE-O-#fIh;nAY(-lI zeugfJKa#aeDhv#E-Xo(mIfzN$4rKIB^qLvbAC`{{s#2<9%&6Jx4cg4dQxoswAH6qv zq|RKh&sHZ)%Ig3F{(XX!jI_gGPFjdTb*&M^2~UzV896W4-L8&-jBG*(TQnK5#CKc#%>+=)V! zwZ!7-43-|QeD$W!|GDRxNS!*ZA zFeQB8iGd%SrVhTZ&LUH+JuJ^UTE5?sBA$YW~bg|k^?9HJedGu$86 zQj9rIcUjHMvDF!+!tpC}N=KW+YfY5LzZlO7pnchU>CZk@i)wpEamlXjrVNbHPl|%c zQX#1urU-?Do{|T}XOAlB)ApK5SOu$6uzH)z%M$=ms4tW9-CuAzGI?#j>aS?~ z(7!MEFNU*#bCR?hp!|w1ikVk-m^)%x>Xz{z_&%dpUBd^o^WRdve0OGneiaj`crwRU zL%y=Atk=29I;3JS&p!m&ijwlo!D&40f5;Dgd8VX(EmDN{b`<$^?l<`Jjy~i}IXU6O z)?Hu`xoE-*2h6O*VF+0^ivAY~Q@6&l^veXN`pHxzWw4Qn0VjE8aExEyLhrZu;E-1Y znDUpO?FT4geADX;4feh{PB^|~`gVo>!$8Xsj>u!D*>@RjA8EKe{43Q%?>~VT;qr>& z%jL@lhgq0JpuxXOr5#5kH&jJTId4$>g3L2h%}kJ|Rz$KPA&L{tG^r9duE#r!QEe(F z{k)YxEax`l6zqW+LdEqhM7&s=9B7$ue9WUw2!o20tje?8NNAKN%4x9vnbpNgmYiD1;n|M?n!X@w?g zf9uW@!e;%_FHn%_Lw2Ab85=JnUWohAUF?5VXTfo2!N<8ODi*|skXX+15zSQ)`-Pk?i^UI#87Frtj#$#PEWeH~l@3AE9x+b_f8O^z( z>c%;{1N5RfO^wZY)!#aPed;aEC(gp;OeDpCXdBi1YMkw#ZR0yRvex|iJS4nJ#UPp# z2Qn+FFs*q~#)n^DKro+L&`5viC9MkLlUPN+P-qNRGW@WUAlBW{_AUfl7{A-eN3;CQ zx(ATniS3e~LN6shGhiLD0s)i#m)dVhpG%Qn)r9HPYAo3VdM%3QWnGPxL8hvT%%E6wEpydPUxA_GDGMaoXrzT8fd zZBRISm?M{D|IQJxb#MWx91R`XeRis>jk z#1+~?HH{=)eOZEhbE(!P)pLBxvwnUp@qaN}QqXhwdKuk(Vfn+Vf$Oa&TjLS@${?8RJiJ3&*S^hcuG}VIJxWg1L~q>dj66Il969=p+XHklJVkMtx7(qRMw~wK#brAT=GSw)LvICn|6y z3(AF9{`vdcXgwTbH22FCD=GAM0o36jM~i^nHQzh^>W4i)TcW;KqJ@>feb_d%23P=X zTLGm(V~*2N)~%BihiFdiC8G_#0HcXlTyTnnxO~tjuyyRaA|6h__^yv^lre50CZ)6X zWCr{Bq13EX{YTHJ@NhMBC%`QF!oY?=8)U_8WDWb5i+ zH+D7aqT0Mzz78k~k_#jF{2D?GvC>;tq8OWSQ<4F)NfuB?R{5=r@{d?WVaE^a^G{zsnpai;V#LcxixpqvVb`{R_I7Vs%p`1}!f z{;5JQ32zJ>nrIEdW1zBlF&dXV!0*!^EN=SYs`(HfA0HR1pDv0P2p2ZXXMT+4U>ln} z?1})|dHNsa6+*BaZlXCzLo=E1!f7S@CxeE*YiLr7RUSshfWv=vnhAYg8<6nF)?l^{ zGOh=QjiO@te-Or@Cc*7~Kg~F^hg*VHg=Mz~#rIT?k&y+>Kd(J!RxP4eE238~qCfD* zV(S}R!iJV?7ZRy0{q%$~5S#e9D#4SfO|YqUte{q~mkiFt1L#O)=i3D!%ToCmdS=}5 znS8N*LT5PTQ}(9)17^Ho>`OWInMBJnSsjF0v35L_>_`fSd!u^ze1g7KhRobF_}SB?;J8Nf9Tz-prqs8D+`(>+QxSOxa{_ zl}Bq*u2Y^pm~n!oM*fgZ(}6A;t&Xp}~!g{xySkn2jiRAz{_2&-syOI<%$+ zq>gOFY}-u+m7kAe#q6~E?*8Yr;1V6$Qb_}Yc^O8mesVevJdmci07OTFJzdqY*jcqg zSlM`-`>#;pU?v9u4((*r2I{#Tsug#gkJKuE#F0ccSfhMrdw&fy3PhAdICe-1)L)r% zWh_gh&8_Bi9bz11A}z75Jy9)}_kj{5Xg?f?`58B5)!>oyB00P6)f*))^%8S~mjC{S zNYhXVOJf9Kq@exfzJk+7(l8O6wI}(f#SX+Oz~6q;PH)CMM!yP`X2EUaoEdJ}VT{t` zD-38EPG^6uE*7Vz{b$GOe_Viad@?Qj@XJ0Sd|-RhgZQFJ&a&^b_|y&Os*Vq?DfSQZ<=}L!b}e z+QxpPk>)Iv_ zIv&MyebnEww9=ZJWw=fLL{e#2u7p+<Sj;|X(PpC~h@C`1RpTNzfKt%J08tWJ`A`Jdk_l{!7o zb`{@6{0wTjoakrG7Hqr)-<&7EvIc)ms_)5^{dU6Rg{HU)Ao>p4mM&Jc-N*+A40sOhwwk7j`_@Oe>~kAHD(12K%kE{G8&)@br@5e8P4&4Q&=1 zN%FRl_pc${ge1TUxK^iK=A>-IUq&#O4#jIS@zvqy5XGIOildvjscV1 zoAQI`Y~`N)7QcoLUJkagZl6TItF9ND55@q}`viwAO(KUoX?*y0B3nYGYrhZFn#u=m zl|D0;lu}GI;y3+G3Q?>Wp`snY$_J8$tf+p#*B8BU}bisv+H zA!^9c58PVG4SeGc()Il%6*M%&3{?#-7NI~W>lo-#j|Vgo;Z;Cn>Sn-_5r5w;28D9@ zJPGBPIhQw2aKq7~8R=d0;L1hq$b%6_IRm(isug!w-GbF$AAX$}EqcSPW}E!+?_KcW zM-$AhMm^imLrkb!UDk;I!ilcQ{N9nVMx4;$Y?5(gg4r-h={TAB7Zj{JSe@{|*&^J` z4Ag3oLzQT%MyBlqmA!@NUOlB7zv8NkO6Okv#oh9;6i~*ZESeL4Ld+yx9({4ryYX@@tAa=-W<f7sveHr5>)7m#xU_uS<_rFJIAO4PUOdQ}B@@OS$3V)#Z zB&6+T{>@DV`7Unehl4Ej9*f4R*Oh+@z^#=jo;C-_KpFocdD(wR9#wv6=k3$_$e%#L z_=qd4Vi*8lN>9k9*UJq8e}NW5Fv=wCHj{S2+fBQ;kPTo~XZn*nr<^J~=bkjY0+?UC3_Jmhg7~YAeP+tqsa3z*D_M z_-9cN+B?*6Hy-qL{L5r@Qt)ZrAs5J0Vz2%rqG*7|JT+A}-73`{XajUwgX z9J(iLngw*TR%a*jg?4aTX)Juyo(^Ps5@$jBH?LL|R0^Hb4MKktD<{rP1Y4gn@jKS` zyuAWqM!OVZuv$~sEQ4tmZx>%3%FFUDx2~@z3Vw;$-)e14#K_zyDI4ETZgCwqT_{cd zIKU#Fi1)R(uR@TL<`(jD)J#(Bf}UZGldvtRRu@I{d&A2TTPJC!T|TDdi`0=uVGDNw z+YEwau_pzjnumwGQ(|?jGiUydYp(Y!dwo+ob%HIK=O_Y4AOA`~Q$Gp;B@hm0Q|~Vr zXCUvL(ooymMjKqYNZyq|3Ya8OKsP>sK&6uI%l)FYV;|4_Qb>+q&ohI0d z`H-9fqt#{qjTEnW`N(X+0Rp=pF$;g9*5S)C-=HzR1cii%UkcWz$2X z6%X5C-`lpN9DE5R4ybWO4pm^SnJaoR_{PMSnhP)pm5KQ78_5(spH5o<7Qe?j%!URT z^A!$;7Bq9D1}&7@IVcMki~^D02KtrR=WI9geT_Wdh zu1Y%BGsl4`_0tr?l38+@I_BJGPBinIAiZ)Ml0jV~E+9lO{vUKd%yl`?m%*X3C{ksX z3z}n?&w-v!M!U%-8UvuFFyP@tTT@ffmmU2L5+zZ-XTM!YwV{qwXiRl-xV#ye1su3t zL`axA$VvE6n66kV?ezUbp-Dg9xJ%D}AM;X+z8vbWvW^AhGEJ%!rZXk>+$!~3ns9-a zVa3$=l=CRpG2&n|&vMxu##z)1TpYvsvd}f9jA8ni1&XK9XO}x527xFtj=^A}X=rmHu2-ZpKj~*;-&PW0X955CX+aWydR3WVDOo;50Th zd_#lqR1aj7IHa~#9o0yBfdQK@Lw7yX%EKp}5AKrqz(1F+cxBOs*~ZGUn3EYV7snq( z7XAj0@*Rf>sZlln+trI=EhL>r_!HJN}*^gKLgb?jW4+ zr8q|eKS`L0p9Hn)HEne0>DGu5n-Iv$=~r4O*fm0J`SlC)>fC&SXuZ^@EPk*@jQxf0 z3532hmLYaWl=j1R?D&g2PQ7mz`^1)ckn0AAoQ1|nI19Fn{>1E5Y27Y_=q2Uw>^i7) z>wv#Q2C;o)rzIU#+ zYYn&|&8mcTH89R7zg72B)Wvi1XSHyX4__hR;c;Sj{fW5JBc*sGeYYGsa^+@3XjiX- zSs=3c@kso5`c~izy~QV!4^^^)4w8w9&d<-}=3%?FejgC0ZsiM5s7kf_^PB9Q(loMs-24XF*$tZk z&w|W=)rBYs#U9QWkU$0~Up#4P`zvQI`L;TKMQdtj?n2V1z#OId1^?oDi;m= zhQ>ALGH@?rj5CG1V9R{t4Cu6R=mP}(M$@(CrJRhA@a8VF3|tks<%HhLArKd!3;e2N zTIt}xmt@U&yP?dSD_)4!WTFK8=S!VFO^!-K8S~y7hqpSP=u7%XzQziAiJkJwXOajw z?gu=%n@Ofxxtgk>@+4Ci8%5n2%A~I+-?7s=&UO9eNI(pAT}VBZ8icMpLpUI<0t9~@ ztTs}THhc7CenL@!N@GL;aiWZzQi^^?<4oCy!*T2$@F!U3Yn%NK{3!*Ih}Tzi;(DJB z!^4dZP~gduge{mtvI)?V2~J6WVZLbNDOh|`l{`h6B03z3k`W*}RjZtxi=x_lMj#Lw z|95YxyeddG0aj$ejCH|;Z^dpn+u5-Q2xq{eAK%$M zGd27#fLB_lMV?+?&I&a_H9MSNx@_cGRy=fkzxZ=bc4wr_RWg=MLU|GOjp3bjAO>wu zKn@!&Rrv?K9on%eC;_BsCn9D`#&bj=K{x?`?b5B+DW_|OPZV$>0kD{!@mibZ>fOu&+fo- zbZfwgIrYqc^gBoDk{$7e0|wf-(<1IabF`7^mDTsHfy zE^V9JkbqlfN1q{)C-E}{pG*@krG=Em<`BE(k+TaAb3Li*8HtxP;}!?g4UJDXv0|R+ z7DV|7snG%|9F>8^q;X# z3tns;Exdk++qA(T)s|Wo!Y8D8d)b$Q*Tb&~bMR#Ali(>3ux9~}^>68inLx*TC$tW2 z6F)RZn#vh2K)eV@I6?$^j9$l`Jz!In6TPkEjNG3ZrpOif=n`(k@zNC^a8uC%AinNi ztXlt{9yowZh^V`bCF9)orB8B!Mv7C$U#&`HZl-f4SxGee&`t<=6`Yh(yXQk9hA=%0 zE0A!PADG{2frqkgA=g^?d3#6y$BMh9>RCxw!Xv9@ z8LG5ZOM1V;fQ}zx(;FU}`B#!Rqs4%J63@ZA&r^h7+^Rc?*OvUC=>!R7#mVPLr~T{6 zy7v^{Q|0|M=_n~(rC!9yf$K7JmCmmV1E2W+Pr)~v0|LBQ*_Zi{S8Jp$iVSZW zX+_eMCOO03NOqUwhFER@a=1%jcwX=QtAh;u^^R<3ea*f$Cfq1AqiE0XTa6B{qOtlh z1-OPr9*$yHtq#n+ZoDw9S1}D`G#aJj2G+~yY*r+s&vPs8Qph4SLtso#hbGX5MP*A5 znN+8EO*?s_usz1}^XcxWLb!)*`Gl8);XIKPu;|nIo8YRq6&Io$;ib9RO|6#@{mM;? zf;Hhz9k^^1*_`EnMZ~cMEC+`NA-0%|VZGcynOv+v+%nfb^X|P3P3$+wKMenV0FU~q z9PtlsCg8Qy$2!CB>NsDSt?m+{*O4sPkbVjcplN@^%uXD!+@H!xBUw#uf*S^}SIn1j zzN+6r+Ym%n(Zl(JGQqz*8)8e88rR0ZXEe0U>m_9^va+UrsTXhKnzU;5zLM@mY#Wnu zaBKLKr4i>6KUu}Hn5krjQLWBt`fz@7*eFeqv1KAa0u@p;mg+E%nYL>vA;@p2LPrR%Cym23gr zvQ!q}ZHkGY3$f*Za{%<5R~z%kTMm|-@cPqlWL7AKC$s$Gu$5TjSUiTM(h2kMAWyu) zKvNjPu9FgTG(HD0?n>(Vpj9g-#E|k=v&^Y&UXG8Pz*wIj9A~Lo8koS3L3A zw8=O{N^KB0do(h;Q1@>#)fWzFC3DWxf~|af8o2D>ww;mRI@%R zeAHm1iB21*zT81ofI%)@F$s>_R~Mpj4qP;6vB)>sj6WqmG>T=ce!w>x^lH2Z0pD*Fk zDbl@RzC6sd98Y@;dqf@GWH~(2!~M9uL`Z+^Pf8R*fa7VjoMvaOPRMu3hU8TY~BJO6wr3@UipfL(|jFD6&3;4qC2GFfG0UoXC z!{WfZ7D?Mu`I5rCh&QQ7KhnJW$<|8A}ST@P}rg2v$P;#xDU8eg>NLosAY*y702l%8r=P_q}-L4@$7%Z-G#1X5@LwA?g9Wo($D_77!J^*MfvdWUbHr$!NkS)0K{7uv!2MKbibr_t{! zlVg1=2Xyc~$^Wz5jA_ZIldEvkPHZgZxYvt;^nhFW>L~Lx2wy=uC4x*fq>;Alqz@jY zdBs*mzD|VW!&B(_qSZ~y-(oLYW<0&1-gRUZL5r_j|J&{gSlp2Ld$yCI5^K^fxK{yv zQ(!UoUy0;=W6IgP?uI#EWXd3N! zy|&stS41rgtqiPZO=!#~VBW}*etv?R40MmrxfwnE&uSA7SZxxIU!iAcUoJVni;VyV zV_wX$#b;_~y*+Fdcu4_%VR5-i#EZ+Bf+-oFGqa}KsMN@Kk9ec%dYV;__5vI}6CyKJ z7Y#MqtI~-wjll;9>ZdaBPJ+1xvn=4Gx z+hevei_XKpNS!iW#HHFsf|PycxV46F*OwQIQvypd;D1(!4#z z!CNwd&C75gW__oXwljHKsWz@e)dukE1<;zAy9SXb67AjR)Cv6$xKg@n?`6O3%iLmS zd*XfC=Xg3OGdmURuk>6pD^$Egj<;X%{pVKaFgK(jy~Omo`?}eaLDq7DW!u6FtzZAV zas{4qBUGnIrA4^@{N+*mjP=EP_y@Q0pH`7ZElLt2C#!P~r;dZ-4&NS*;|n=#KF_vl zuUqPWslw{^`5`v^)O5?BlpS^PS1&}BQ`nHGsK7}cXzZGuZ)d6Jm3_@$Y_XEC2tkow0o}D`uXXF ze%O^&QNdAUm|zUEWE45NS_Yo85}k9J<`uk$(*No815WQ9^|^l748>_dyvrM!6~$LC zQD|yFMjmVh`BELM?A-gd%qJ-Uzl~hSdu^$Jx&ATOmzKUxy!$Kavz9FoUQk7yTNj1D zcsNYSw70}V)7fT{VVRaOv=6;!hQj6T5QSpcoRl_$37wl1UvF$ShIv|h7OIdZm!&ux zkjM3gRz*Wy5?LoWe0C-JR_5qjf`lViekY^8Hq0FdSDsPzV4ZfKUl+^-3_Zv_5Z*);L?i=A?u=< zDFW81A4y-D$fNI>)9i6A`fwwL-oMkH48*_IGtUu-lGIM31sZ7k=?@~HR@kq;NRsk6 z^98y>iBbSaE?+iHduimlVX`UaY|XkVMYuP|EK_hJxs5-nG<%f?vzi1oIzRa@F%K(@PPYh0MN z?mp|jM3DhXk>yc7LR6{`^|aOt3p%X7M@qLal>gQ^sSe0E4HS|H{o+XNF_-TL_?I_|OK5v18 z>WXV%FJ)qI{_wTAGN0zk{phX}X_0?^r}w&#J4Cn2!HFF{ts+S*RyWws^3o$ue2qJ0 z*oM=QLIg}n9lu#y~}Mktp!qhXcjC^ zQiNncvf%;pG(FXPj(Lft$u=;i_(EGSb4&mQb7ACY?A9BdtQ1d4|4gvcH8z3fcjQ3> z6aQdafyIG%7#kJKuOsIF93G)VhjV|GF-}K42phC&xnOg$vc%vDru{k%WhB~cROlQ4Ib9=ibQ<|i%aBH*4CX-CSi?sMg#}jMyB>DCc_vBZN z?{~ST?q^JY6_ksxPr@>bt|lfn^`}mdr11~SNN(IG%*@9V64#INI36dC9p6+Ms}Eb# z{NLX*8HRrUB^tUDY1)uN3+UVL-P>(OU_Sk$@`qVS!@wh3f&oDE5!M|C^O>U1V%>?!#?VkOVD{eBnnkM2jExz zT22Xuv*WQMtxJc1wJ?%R_rSbRcg@j8^H>Y z>xM$)Qde1VBr^bJecpKATCb**Uk5~^e)TDbwcwwr5tCY>Sf0i?foayNLb(7{$cRy7 zl?tS6pW2=~%Ffr1QqLjRh)}z9s==2CJp?S(izqD61I>0BekvpSeq35`IcFtJhgqDl zsi`h-_|dcKRGvG;Zpf>_hXlSDqXZ8bMGrsdI%+p#4+br(3UJ9($yyMYAHi?kI`%rv z4<-aNmV+vMyI#$?DVaWA)Cr_o29tik?`jO>^)_sbih4?LS`eUZE8s}cmVg?j%JVCB zd(@G(T3^I9@Y8Lq221$UQaJI(l-OYltl-HS$C(#gL-R9`=0JL#E;7$~-y^-OVJ*@} zY#8hs2t6rmlqWE^Oe=cinD#XJVG{{Aep3Y}HZ)tOrK!nj_$9_xB?e^Tf1{A9UgW7h zZtk_IUW9yBasE&O1UVM^G-S8E5m7aXl!bJDuS~e$J$DnfF!@O>p`@U-1a2oA#lCi1 zX7n_Eka^EGkPvtv=wghy>kzDXxOMO{dGM+=8$3?|E?;57PKlG$%{XjC1G% zXPOZePbo6ffiP`IzVZyIl+c=y&e>~O0-)D8=ob&cNHTwKrSwnrrIyQxa3nBe;$?in zJl1V48U3vesDh)Qc)?*#hMi63>Bg3EaG3bgHvf*@cp1iDZT2mlU&RS|5rigA(o00K$3EX z1v;<{!*Bbx+-oeE#POG$Ep4qA8WX_Buo!;OV`MGlcYC8d70kwl`!7Ik;Eahcre{;) zx&_D~b9rkfBd;zYRY_&`6YcBUpIuW&qGGyK>@Hoprl(i$$(_VusAH}5(kO!>5e86? zff*Lb;rJqPF$KaF;a_dPxY!jowj)JzlyCSc>HQe?!hJ6v%AY1SO4yqvMbAgAh7o@_ z+w#u__KSUNZESbe1J9h%;s4#mqH~jThWYk)U4r}& zE3-iF2y>cCC?WjQPbA%XCDKv^u&9)}p0%22I`W86+wmj!WkWa-H?_XXA}9vD6QVmQ zT5g4+c!-w#BvFZ&oh$kS;(>EW{H0=^ap;@0vop+WjHUG_^+1EzWFwS+=P{t^gu=#W zdFknEywjyI>)`$DlhfbS*mxCD26mXU`eqGIx>(#N^hI+LS>`^NIwJ2Y=qe2#=%WNj zhkHjUX6@bmkxzXum5v_(!*AB(&CO@@Im?(1nmHoNv-Yp{?mft-u1R^uMG_H~OA6_} z{hz%zs9v^7iWvSm)W2D}V_4lW?}Ft6j_v1{9#D_h&>M6Pr`wmxlIuQIS$H(2+oDzjfSxmk51UaD+6sU49Zc(~8a zGWd4;x$LYi>*46a;C@)k;Mdk?pQE^Sft!`@U)jbj9x|U#wywxJ&dRA}9hAFDTnCaz zq)Q(_&gCe5c`I5~<(Pi*L`DQ66Nlmjoxsgxg%bm1a*5~dY<2YR5TIou;*ncda}4fI zL7vcJDxnx~PX0I<(=LqSTn_FV@WnTCbSjmC1q&{1Rp}@QyDo7WLv6TZy-Ney^a`*cq#m@W0t4 zQ+9oUTBWfFXxpVtqqBx_8mV&W(5e#WGR6j{0Zpm!PS_mylXOiTa2q*wnmIQ3g*9NZ z+%OhepE1r9hLfheAtYU7HJNeQ_C9-s zd4HTndaly}^(X!_*LC-BTQz&v(MnW*OI{8A^&^M3{U_31=G{Y-&-rCj#(id#?-34j z(C6ytpG-jb&9-%3cH9E(tPsYCsD+g@!&{&qAU|-+e0h4MDSa9}d~hNQ_4JyVC6)j2 zWeaE4y+iJWDn{R$D1&xzZ4hQ(pCnDj;EFneTGZd1XkKfdgvGhiQb_VSI;rT_CG*(8 z(?XREX55|+KCd8-@X(Jg^nC{;R~}4G8WCpSssnT54n^|#wGSr0(!x8Dg;j8iKsiNzdSxz%8bQsUH=Bf3c7s;tY zlqCcd2nm>$ct02Xb}zC5a2n!URP-*l#t7l}fF!zo+IYN!Bxrd+Ea`XNr%#+6)xLPu3(4xNwlV)%<@1^Zg&xWz}c!%-f+2GEMf`}?hM@{52X zeb0jejz1JbfkU3&Iy`~KGnaiK4;g9Xw;{oT``m1wyNdqYA)k6IA7=e(mU?{5h$PW_ zD5>|kUOcpuBEP!T=-8f7S$o_M7Wwr_W1X>EAb7CT$kt1Dk5-I@9dNCe^$@%tvsn9su|`+*Rpyx!N-JunY!Am3>)e_v$6+n-;!4whN9#R z^aya!TW5Lr!mE#6Vxu#jF<|Aq+!P>}Ao<**ioCEv%LTC2hwZ>(z}yEwGSkb=s}EG~ z(lYxaK+;nUAd>=f;c#tes)Op=_%4g-gmTHh5p?k;EHBiO5&>tyaEe(RP_Mu#Uj9y( zpXGojuRlMz9y3R5JER0A0}Z2oABO(cD?x3pz`WalawysZPo3MqS> zPQ*9xPpReiYsBb6k4?ANSae`?H~c6U?R^y@%RodIo&lhqBggK$rD< z?fZBJzn6GLcl`(b7zX5?!$CYfgNuXb5Qks3cE2^SzWsTH330etg=D56KFznoeX)Gb zkWai$MLdT_3@%FN+l6PuwyEB6#`UFh4$ILx4;Qn`$dTTtHLrJw`pq%pp0m#O)2sgJ z8Bj@n#iP#kEvp4*a`0b)XnZpVaz21M>XN&7*sXUtkijxA@UpWnAz^d{!P|RPHYzi0 ztLlgtu*a@p!PJslW`7q}ux~@V$4N6D&-pUQ0^hUWkvLz@x%S35OA5HZkWF~< ze3oP@+y9!*U?OK6-=Y~qJBml!^o#d0@_$^w_#hP?LlR#TJ0V~^mhmMzaM(hoNs8FDvO?K%=oWTvR*JRP5?8iOnU-ee_g6dX+)XSP4P5AQM>d zT>lo9SX@}Sh{nW5)1c3q2U|Z2E*o%-IB2*J%AGoHV@Cz(`$C z6$sQEcfnjg7Fc<0UF@1A&Oz;#h2D7VpnL$1`ixNc?E3!hX zi}v)}h5Vnh(I2i0M#0zQ55KG|zMXUbffe4-nAUG%k4{M0TlCaKh8 zSzy?CMG(@;r+~X*a-cj}mc-itOgO4%vlJ@7F#f2DNulLJVN}n_6nRBA&##@@{Z2d2 zsfCr)0#Aq?PSXGNKjwxJXdE`xtTi4(!hhe<65F+5nB1F}17OVT1fyEDyxgSlD>|7` zLY0{1LuJ@(arYsbJd|FNpv_3e4E4tOv!8f>N*}sO{2R&F^Pn)LyKFZ-xPNGxYndv#8)%Qky^cI>Yj_rp)tUJX*?M?I$9^Ss+>kHU1 z7YZ<%-**wJ@Uk&8G%{Pj#NE`ZevE3Ah;rJnYHq&>I6<{%qB43rSHPgqsJkyZ~YcJJoQs_(%R(8S9hp&zUp>GVEaZ&~y?@lm*} z@3;#l@V!ev4Z06D<1B;EsS$Gs@w6V-3?yoN-);f&jNufTs)DtmwICXyl3C44&c+#U z)VyIljJTKsy)k}8kn8h#5f=7k7>vQFBOE_yPJ#|~ouE~L%!Gt0a8MvLGkx`Z74MC= z8HxOrt9cr~Nh!yU%~*l$>b%?mtbH;!GzJ{j+O+K)Hdef^yZ0JxCKUtN&~uJJf!YUi zTqsYI^i{h5MT@QpdxTT6<8wXthh&<*#w$z&UU7nqNgocS@jHzoN*PlKEm*m+bRsqq zMEk3)tpz=^E2W5vERDv`kppV?5RVK2_hsIg z-#}cWR!sfr!Yfrp&bWe+4_(H@MQ+!_eY7FX>c+KKC%e~@ky;F8-bXlDo{v$!E8oW- zs@zsPJTAp5?!l%2gq&$Q`o3J3>ANyKEOUqTus0z5Gl;h%q7UeL^-MKceJK{jFEBLL zf?1){LcW|`QTe2O-(!5~5aAUx_>NNM7ZJS)FIu?n)aDjgR2mRPJF<;-gyC7m=5L!yB-YSu zZjDCMg0+|}8vR<}=^Sr!-v?Ljo?VZM_$EjU#UJ7Wf^f}AcEDD_ybEiH^&Zy!ojCpD zHb#@*$y$=_vy7{Sl4qL(3Zammc9W4)>FXDVGX7H@3v6LLaOSzy_G zY2v7QU6Az?^L!h%92!!v9Ii`kGSf?yq`9c3-i9Cr7K=PT98Xfw;CUqzd8j5tmXu){ z_j-*;x4T#a8RN9kMJtKOvsj{qT_j4Wdt#M8RBp2s-uGcq^U7fqF9T*fa~pogqC>9J zCVjl&rUgwsoPaF3gIxTd{i2g!2Mg+^tK*9#U#9rKl*E@#OG28_Rlr zBB(4bQ+eyeppQPHxcqirq9R7UNXe)V{=`o{$j%u^SMrOhe~{NSr*}2@=wj-LU8+@c z%8ar4n*$J$PR7{dSah_fkEXv#5RY1WrIw@)y#xoV$Zq=KymbKqK9pwl4EzP%!1o?d zT7$71alkz8JVrkWH0p9leNHOVe(lLARx^V8p1eX9hv`rOco-ZciUQ&QD@s$HvnU{E z1o>G-gvkZxh)Kc>6X2rcAAMC~bH_;Wzfb$gwu;0Z^~>6cRhRGk}J0>{LC4{%&8+qDIeP_Z!WG@Mt%2(E>6rlOZ?E4rpN;{qso8KDSW-AI zeDbYEy?p$9Qkaf1Y8E*K54L*$K#hneG*8$8W*8a(wQ z!Z7=AD%v6Mj7S`K-tobxPY-DH7hIl+Yl-b)JD2thgn1vEx0kBWm$`JRzQyJJFgg1A z=htkLXU|v5MVDE`=F3*0Rt@?EyPmWB)jtm$C}WA#+}&y;W-9m$4}dsUC5%2rY4G8` zApRCoZGNuiIx>)C0_~b0$pz$jP%Bl`w%CUjn?Bx2cwlBrr-4~~O5Y-(g|Zx~{l)Gf z1^=z>$y#0A=oB6Qe1ZLZvdr=&85Ur6}Zayb1RI^eTl85Zeg8pV5_H!y>AWh zZ(H{FMOCgE~I;F3n4tl7Jq{EeKGw8hEroF9Mstj`IJD zdS4rLXj8y4HZ%YOA)H{^{83vu3fg3DI<~$K&67c#RLQN-_>>sQFP&=b-%4ZI3n1lc zX;q4n2)cP%sXxWlXy^v%t8ef{sKniOO694b>sTSZF+jakduSYbk{gcR$bMLgNrmiTsKtb znpxulr*{^2C79+YP?&|9>=nWmJ^i_qG_Iq%=bcNFz0L zN(~ay-HmihgGzUINq2Wk_t0I^F?8qf-ah~L_m#z33~Qe`XYXrY0iSER14i> zp9SK+QV`A#h0^sAVEhWgpn?R~fIj^5a>veR{TF&CDlk2!opIOgA|dv}8$jW~eFV7F zW6J}x1tMc}ULR(|@>$vNg69nX%e*tkitV+bPGD)Cf2iy1Y{JLQ8P^bd1*JrEaz04+ zV1f*x;T8dMbKPRzHiJk4Mu{wV(C!P;2 zI2mwPYkfs~?>QrK)|H(M@LnR-35Y8exQ9#H1=#WV6=&-k6h^iQC~|gVm>O}IWsYI0 zq$}eCo!_}|*Q`zc-aPdqt$jc5s6X*EG1=CrMzab09~K}dbS$N|s5q!1u?jzJd4{J? zOhtGsu05STlI=FhZ%wP$Swa%Z7RmQMh4(hC0bo9Dfq2A%_946n;jy|a`^ z@5fln5+Nq-3hRsDDd=qhSNnDr@I$hd8{y37u0)oim5uRKc}1NGMaBc6vC0Lt1bcLi z@&C*OJ`B=2$c5taOUs%*be9jyQ0Mqc5<^TUI^UxDqJ`4CG*r1!N&s4I({h#>o>Vm> zihhuw*d+l)&HwibE0!Bv?i3}qbITnvG?AeH;w04|#^4wnT@^`0zK}q$sqHAJI`VY5 zWA!d4luitz_jJM>)5xE+fxU5pf{k5b&L$W?yDLt+RAhKIMaK?b?J#LrCA~5nGr33D zHKJFTTRzAdk_5hXkwCW6O6j@_Bm7LJ6s}dh|s4@~9n_;5Xa)sc{i1!Zj_trMmC7XNB&irJ;1F2U_&n#b!= z+eLW&&djIG$6E=ZYuijtW0D}$+99n9_xJ*`8}7^6h7MTUiN|x`BAcbVORv6(g2__X zWx`Be8dvL`we4e~%T{Nrl^oxbl1qEP7wP?9A)m|cXRP$2sMJ;No}VJ&y$7Vy3yLVB zGZ8iFv;lV9o$2u2&VES;wxxbr47~&^Crc1YZ-RLIe|4RF!XCp(ZdM<2D5)3B!E!e@bjYsA$kl;DKzUMWZ`|squNO;&{B3YC`!%|kH-!Tfl|jBT838){>y6vKcooL zCXM~CjH09pKp8C)*k&EWsH_)o>qIR`tK?C!(qQnoLF)jr+9WpJt^*C5nFBXx8-?vb zJV3FJ1B~9>XvGN(qA^|t@lU? zHQL+awN_iXOzBy=;`+JGC`-Tm=Nc-jl}+Lw4^X4uI_geR7`!$K8@@pl`5^;3BF+~3 zX+B;4xhE)XqQBCkTf|H>a4-$9uC}M{W$zLgeO47bFJxib4%wd%a?w5qCG<*5xIDQy z)_bo0CEs{^&4CmMy-F7eIuQ|L|2(T`+%vj9j4k^rCMn}STUqSQT}`IWY2#+bsx$P& zts%$O5!US_tGQhuv~TaB<281zlkRbRlj-?b<55iqXth2YW<-I97TPtJktl^$dFEk-%U`5_E^#oH%1K0i$8XVIXoQ$V5a^ zTq0-=BB*jdw!mp0PQg#`SJdxle-8pF`DZyB^L`=C7^b8oZd3UGYA#5#^ALaV0`T>v z%f}kN1HT>yHI9)Sg1@wgW9LNY0G?^B|FT(5x9O+e#%_2I+mJK?W)L{Z45-nC(WBO$ zrQb}48Yg1@mAmE3%OOC$+MoZQ==(J!9$WR6*!JtlaY!rbX~5}bR2L( z&5z?N9H}4*i5ei7;Pb$py`7v#QVJYL@EJ4iGJj#Hs?Ue?5wtDz{7}o)es}bIljOnv zj1GsJ%e8LmMBbgrc@LGZ>MV^-NUUVR%D76_yq04lJO2Jc5&7;nkV3n)qa8RqN{li3 z;=K7MR>kwN%b3^tu(M@}zPdobBm;~3W9W+}CSu0Qy)QqT!Z8V= ze<~N4QYT%}AKu48oWG?jL4tY8q?JhI!9GQf*+y7%#ZzLt$~4k)+^PklucLU0mbPFV z<+ig!(5}ey19pIWf!DoZu;<3KZy!bRtb7n{jups@jWdVPrdM*0-3<9uA<{KVzWJ&| zot$1S2CP(tHp#106>2+U&F+!uKgI!=tu^bG%96WkOJo-)P*mYSgh%+AY*-l~UnPh_ zg&39669h>PBffYp)xH3Ph@`>Z?CYeQ@8^g!qPYSYu>VcX5Bl0-x(q8J?zYge#HY2#7iv3hi4 z>sYe30L(9kpS_%~{Y`*J`!H=c=z(!$b5ERObIu|@ixvC43PfbAh!`xw<$3AW-D{M2YjFO(@dC7v*a zLKSa_PxP8bRW-{#LSeR-f2-Ocu%;NM;`TZI6J^wBA_L z@L$j&X`eKov22k`hWf2Nt=>HS4cz5|FQ-R53dmTH$1KAzP8J`jTK9A7^0LX1q*3zZ zN4O*UKXHLEz_npCS_H^`=vjUTVzj(e$kJ)xcy-7->D@vi4)*-nHTnOe70_A2Y_Y8SAI6e)M$-JVM@XQ%vFlA z9lO9woNB~H(r83{8M7rKa)*_hjp0IG?eH+hBNk&cl6)w8`EYZb^P5zd+b4RrY!jsd z7IgJol(z!z?!ZkYJIq^ETZ&UwQ(NlV#b2YF9`m1{3kytf_e#WG6gNZ~x#tDhJnW;B zk@unz2t1uP;~vj@pc3bVAEQJPe5~#&pk@DOQgUxFstyR}kai6cik**H{YH-dL7G0K zO>fTW8%anOkC^W-QlW8`Z$U3|RNG#?Jz{iE07tUOkRA*xwSBtf--YX$blejq7l*Y&G>l8txp&e$QkPOoN%Feh4HG*qf-=2F zg*x5|91Z$B%$Mj{!wyJ~fqv@5u4Sp#$KE+_pHV_&j&d}OHa z=Ll|J5`4vROjK^kdQRtOsk`IVYx%MZ2ti16jdk=Hl<(+rFHqpN?ZkEJfcGu$Qo@Q0 z-|<K_ffBF(9Y@;{Ec2`%}!S6b-~{-Bg|^?>1w`?q>b9kvc;3*3cR0inJ!isncNgJuAG<}nDC~?q z6ZuvVtdFFDjktN{z0*8b=<-;$;roBagR`xRvqvBgK>0|y`7L-dd)Vat?u7FSD;uY( z93$XSuWA=mZCz-86}Ylk1@K{0lB^-+qI(O=eHES2hHOqjb^J`F_qa}qtwFIro0@s| z87-PCKu#*WVlQ+yWleGqTfGNxHb+vLGW(0C@)*V9KJR3wHCoEQSl^5#K*SKj4G`3p zzyg91a_{|`af%`S0$MgEfDUIhfD%_mdT$FU!VE%)P<>GQyMTfEwIdqU#5;eL)S-Ly zghJV-dUStvHxawcXzG7 zHaSBk@WvGsEG2i5qf{Q2oyfD^lk*`N>)2ZGbMqH+kP+&rw*DoDO=Omx4A0Gzei(d9 z&a7BI8~{S_J&%Z&eS{7 z6wCnQD(GkETbbe0rd=;Gfup6}G|`QAf))xtNU(mWlTd)0iGMDJk;U*M9N ztntC7#n7T<=4APCi>u@K$5RDH%3r;KVxKW`Uuvnpsmr$w@S}8FcnQ*z#vIr($2ySY zd*dcagzJN3h0aRNfXv65xE&ww%?@@Zw~EdYW~TpP0qD0vtxGzOnL{pW$TdA$WZy%t zCDLTQ=R9U);<2eifgKFcFi|94rY&Ub?s6Vi1ESp_kWpCJpkYQ2@q+HnPjwy(06&bm zAebVkak&Io9oJP8V?8MZ)E9qP2!K949n9y+Qgy%q7~E8lIrMYK?tmCnesc>6cNrZ^ z1fc(}J&q)FOvWTIxfUgRvtk+&_Rg7ZaR*QtV{)-m?z%QQvMMsE75t0*V;G?_jhk~h zh&Q{uXEO>5Kd6mIV0HZo{7Ka-8d@CznFGb?B%qB_0Dkw0)S-{NrIE&Ye#CxYmcY4u zx;RD5cAn!Gh?~2T+sJ50%gos1p z^HE!`hgz`UO5+6|$;|!R$S_i0m*>t27mEja@4I1XS@+?kb)&9Il+Po!()?^>(4Cp2 z0efn_x>XoC#b+5k$Esn<7&pJHWGhJeps|615fdxhwLPVgGKf>jUxW4LA_{+zfLaMl z6br)aF;^gnLK|@`SKyTYh zf9uMO%y%fv&j36Fd}ZHLy_e1H_#2y)RibpTy%>TTpY&0w*vRSWEoGP>IuKrXkjC(K z1TnO^Hazwo8;$pzLqf_m7k+4f9Mai6F2fVhKtKc5sSLx4>qmn&B|PST6i=04M1_D8 zKLt*y7*8)~oCyb!zSU)J8Y6Tr@#y2Fj6lJS`7~!GEn4g=vUdVO#FdpFOO@u~)7v#*p@%#C_Cu9DbDihL z8LGs`lg$Xe_B2bdD&8pZC!8@;^5f(I4eZjCea*RLB!Qz)y*sv^!}7s{kVnP)mpY3l!&ViCkiKXYt@-SPvsvWFi6hQ>RIXX zsdw-oC-?rtKD6NuzQcmuIn73{$JX5{Z@rl|f=0VBT)@0qiblcBpTfJeH&=JS2$b5N zi$1zhRSEm7hU%U*)wKV(GOuvG3eFU~aNO2Tt*U+z>?Q)tP)k{<{<=o&d#5!;mO8MM zBbtN2-RHgRP$q~+I-tE$q4v|Q4LwHcJtML8xjlG^WNNL}u{i7FJri0{HKt3lrh&R( zV3S#Ma$K3ha%$~;Q@I(4}T z01^oNwSDu*b`E~C0^hc#2|ekfMfm^vT!9MetXLkS3U&590EnN68KcxSC?je;weJj& zrIZPw+hrPNoK5=pA3O0h$bU>2NL3o*Zs2c!`6Wat)D%*^5iGJ2?1u@O0!)=z6#WyN zj!jOKeUCM`i6#$fJ4M9aeZ2ph)inyZ>8zqfLz^O_0q)Wa>Kt8xFK*2sYKiWfEh~+^ z>Fh+%JF|a*lLK)qil#wtci*3R=VO z%0U+HIw~)FR-joCWC>@ZZ!Q6wv>|7ig&}&`#j%n?C7nuH{_gzaRp^_0$qL_|7jD;1 ziLcO*%Mw^0Lglw&GN9^8JBV%ZQx6O|L#Gu#22b$sd!i-xjQ0i_Se<$dwn4w#upEbi z=J<^2FEe(~htUY?ld*N&qidl=bZLg7V@(Ztn8s;=WEZS&DH2pb>7P93GRe3EJsGcg zQ6NKJ9R=rN<*!L8es@~7d5vIa+=uGHu^bziz3)oK+}4L{Ji|nweP1F1XQN?Xoc1Ik_$En)gp_yiyP`&q4NC_V$8 zOQTP+ICH)1{^zP z8)t_1GQ+Rpd?d8^&aWi~_&}mW>5`;g1(XxBQ24cr;G^F2Q3s47R!<_Q5HK`s|H>PB zz4UpH#R=L_Wp?{7h5m;=sX?wx_LrO#()qd43}2{-tqIe97ey%^&zn2Wt{dsY%~#bk zw9!#U0mWrLZyH|tMQBIL!~*;(G!U90u!FJS)y@yS;6())h{+LnOH1G2=3{5i-GB+5 z0NXiLAdwR%pUGPCKaj+PL5I4kk$ng5wG~eOH1Zupg^F;ztL&kt!>uvY_{AFysA0TrvbFofNCsJv3Ao8-LQk{U|<) z9N{q@xsU{CaD7rDLnng5Mc%Hd7lcE7AjDUBf0%V^OZ=;8+R_Hm_qXHht0}LU87a2EhA4-+p zk(n92$YHVY&xDal6S)1VHmj)-j1s0 ztBD0wRn?5AumaDEL&x@0f98C_bdS5#)$@pFj}ZZ_>!yF|j5BnJwDWe1y-1O8zDM%3 zpP#h8cZ`-{h-!H(4W1-pNjLEEDZMW2oy;K68la=RKddKZu<}X(^Bke-?UXUIZhiTY z6um%>Ih7uQr$Lwi5H-!S))uxG*6WZo4xd^s=&Jo@~nUft05cFef<)ywB*m(;` z!&E=V%W4K1&fjxdLFhJ+XujZZY*{_S-+8lpB;ZMrE4=(Buxp%GlcQywVld7P#Y3rGjr0oZ0Jn^oH4O2EXGHmn_VHJe44+cq?kT-K&_Q z+?uxV2Bw0Kn4;6;>gC9R8^1(C%#{NT6AL95QlQjIeUmYY#k>qmTC@5)yD7zsen`BqYRVJ0~Rg3(gT^nd3@@&(HxToIe1HeKL8r zaB-}BnA^8Vz%^#NC>byu&tVdm+>Jput}8ipA1pT)K$llB!z!{)iKSp04xv$}MVA!c zvrBlH_#aB40rABY2qySgpH-BA+ky-RLhB}d2f}!}jiJdc|Mb^1FhW3UT`*@Un)+Zr zXAcF1Jh>fzV}e8l;WOQj^kd7C2RD}`#x_^B`5*q`_d%61Eb0m6ze(yB+U`PmfUg%T z0*A(|{g6zL!GS(cduT5?Lm8E_d6c&m>7NX{W?TufwV8Rz^>D@bxpjTic2{xK44_!d z#WqjXzMpv2bX<)OKWtaZK=vG7TD|)b$nW5cu-#zmF|Bia<^zlaIT)=I1~;uYnF7zf z6}JmxOn8KfE zemL;l&9RBBzs>^Ks7ONGJ_Ce|7ASZefn~9))Du%6Zk+$*-!kS>sNYYuvnprNWGO%E zOBaM>ux*DOtjtv=eAHkFW6KHVVdI|iUm{Ok>fva_3s4{4>>|_?rs*{a-BFRwsrIY? zpZJ^3G2N_KHnEyRZ7WO?2u|L)FBnXqYnaJvf*wCVjpJXL#Rqo3XGJ)w*-MMIv!-SS zIK0S8vFKSjt&2+FLDh#sGEh^(RPrq7(})b<1_&s>ApqK* zJ0cCHgajy*oJ=+TJ3mo}B|+MLzyTUsz^K|z8V++k0`DMGqFYK{2hm{T_aKEd+xT#dqS9m5M;v&;MRb*UIRf{IQxGe}-TuE2qGs}tE zT={Kd@

meJrMvJ$R75Vt)O9Sb!nd3E^$f((-}e4P2DHp{BzT3IO9wK_LBqq6jO^ z1i;~t@d|*-#;)`HvYxgIgdT<6!_&l(&sUjhW`$P;W>~q zzD#J&Hg9j7uRPNkpNZ$Ol0>_B$_%~HzGOUByy>E@@f zX)qke>L06#Z748psE-9`Y-Z?Yk{ORHl+i*d9FZRO5JDAIbtS0%@=!=PV!U4l;J}Owq+L;!6K}OE0r^mlRA;<<%d8 zO@loS$5IxmNR`~9D|&X1j)Xdf=(eu;THbeqg?qipjEsGg#Bz9nogumZ_#o7w7rE+_ zl$4vmCXxUT<>?>_! zcLaD$ph>S>PJBM**RBc;p5z%XuY8KY3o(id#5|*UA{9f#!lP^|j$7KRd-j~{m*aai zT({f4w_Rc>nVmug^&!`KRoB8GXq5oUj#O5<3GpTW~auNy@7Ke zaQ#m19S2$H{TP_S5lUNaA_=B{EVvOcozwYlE|lOnCUCNP<1tS6Y)>D+uwi+oJ_Yu9 zB6@Zl6M|1gW`5_TW_PL5k-)83c!k0Lw~*3yu6@`{=%hE3|4Au`#J@8%ljo}Y`6|Mt zL9oWLM%2cAX|2t~D;0(L{_bJ*Sr{02ZsWO)(D$EQ{(3B5?e$$%%)shg>*OCilm4f{ zM_<3f`%i?==5qQTNt;w5?0W*B5z)2PkErTm_-Aj6ENV|~u0&a5c&v{v@Xb%bNDq@! zC7eU{U;;DrTkA0aCyGxgn;K756F@@fp!YKwEd-k}p2Q6havZ!x zN|{Y=LyfakCM}URBBtHjGeW0P0dyD+=}kkQN@(g1YFjO0_XGpfEk9S5$crIb0r7J@ zx2|1DU2lnZiM4jl(qG4-3_?8HrLa(x(Mx$JT7Ba!p#& znsY2`Pe;i~j}$1375Pu*VEfZ>9eC7;6(!{B(#oeho!)JFc{^J$g94L%Ow~Cm*L*)e zyhuoA<7B_IoUHA>hby0ld&gA-ECFQsnE(KWyds817;gn2%bP0EZM`a1GZ)hNHw6Q` z*n+;|&ovQgy%cP_j~)`scmhY5{iHYk%wBJxm_J#hchwh5&)?wdIz1!tA3m%-Beuf5+z6)dQSz+@(vV%l}+f?dWME!T*IGn>e zzJGGnBPHzR{cuilVkfpKxONS_DFnzK=d|6dsr(CF`ZAKicre`e^sJU7A}+A{U%R#P zVcggs^7iB`@j^oJaCiRX&g<^y3?cspNFJq3r4B{aGOl!?->NPCukb2B;bn1m{LCtg zv>f_O)QGF(8JlhC-sSYfRn^K5We0>+QPf>&*cj(bES-sT#Wij$IwnbC>!e}eL?c^#wZ1r!}kM0!Y(YjK%+X|UEhnl`;(^LgRDl%4J_Ssh?V`)0qnY(^Tf&Mq)=uz&}3n@)O1}>V#WIp!W+bM6c4NluRL`m@+}$){R$r5WcZ=HJ)J!yNupu6`_PQ#ELdux zEn^HUJh&@Fw2GC=VP91&?O1YE3Tvr!!~jV!g%r07miy30&}f>or#{sAZ5wnvZMMV? zDH>Lu;g>`%Es)HUc*#b&4jDG+2?JAwA(CvzNBGh0PAj4$s#kY}n^&UrIzV4k zVu*j}ZE5_#P<2u4c$-TkD?KmK)xqB{4hg*f-<>RKHm!&hs!~1rrHww8?47K$gVgQ1 zAKI|_ZV2!4xTIOdHzSvxXzAu+SxU!Xx0f_G(tqkR81B)-6++QlH`-oNOm=Rko~90R zCZL~G?~~wG0G@Agm=z7fOc^{gbQ4((3X~29#Y3p0WFe3IsmyAeG&pT0>9~^NV^Idnox38>sgccnEZA6HuxXrdh+(nxZg#y)J8%873hhtL*U>{Q0EgO}Z5C!Ht~yX;OsN z$~oRqB}Bd>2!v$c6Y2aJ{!S%ezW1?Wg|k!716Y- zGcgN?0ml{U(jn3Q*ZDzG1DgHM;zArS1Nr!JE3;3hukKZuR$86}7G1Q3yMEkd;{mV& zleRShz}}pV`Q5h_4X39%LRvwV>IxFsO6^~rC_k)0{;@OqtL;|72Uf zS{%>b<+s}hU#3jgPgPG8kazQ)*CgCdgaJgVjGzml3m}-A1}t_&je@SZU3i9H2@F;En3?+&+kI-f6baW3GRQg z^_lL5JM5;r5H5kx??+#u^PY0GpY}4x;z}d6Peqq8A9(|x>dgq5z)nq#*bB8OwX1sg zNSxA6RbG%mf7E?)+8L^CgOT|YBtOVm^a6%XZo#dwLsR2X#8Y+FuSgI_?=G1U$3&nRwM81^$+_YF#SqP}rx3gE$lT@U14>cKS@*S| z`}Yb+Iub7$M(b}3&nkW_B;Wv%Hq%bXyK~?s+$p9@UX3qUcIt3M3&dpNzMp0H>$BMcTcO^^(qGUFZL8J@$CU z4t1WI#xmhE7*L@#iQwn4Rks&kRMM?)1%{7bw!96kEYwGMgF=7JbWIwbLOR7BoKFM6 zp29XVWLLnR3cU+gFp{ZDRW}Uo!!wcy|NR3qih^-~sj|fmp4?R6S+MGOGV+o-W9@mk zo6qHV*`fWUb$8j|y>4bK?{8<{iRI;KRzueuxFr#PVGK7Y0~g?#FSgt z&~fJq3GwemB57PpVwGGI*18w$L`C7FN?_sy}&ZZ3TT|ob~}NKYcrGtUE*U+kX@sb zpBjF6$%}(Ou3s9Gd91{=%rMi5mRKsF!w~L6X>k{Qi0dC}1+sj3HtN6=CDedX`n6za z>05~^$~|vxH;%tT7hdLH0=x4llx~);^U_$tmkmg#KocOBY>8cT$Bi$qj%!!n^74t# zr;E`3m`m?k>8l8Zq67*T|CBQmyK#rQQ@E(}%5XjbhM23Ci7Tcx2!!^@m%b%UTKS~1`s$d8WGJ6d>I`0qOm^8xy0_p z^$fp3o#_>ysasI$%sBPpqjs;&-Uy^$SJjG;TU&7M=pcTzOl?&KGCnpNHD+CWf{)F$ zt?%X99uqrGW13|?kPPTXukfo#M+#kk%dLaiKEe**aM!Q(jlxy%QWyFk5eo%4>zBy# z7&LvC7JsW%tNpI+e==ySsnp$Zy!T})nLRKn{JFC3DdmnEQ)OM*Ud-%&^Wg3z-!W4l*mcG4s3ns7uXSxL)eKAe?p#s`yj?62G^9VSc zHjjvdMGRu@K)6*vnCFEHX{_;XNeEr_P?50lFcr1~Qym2Exs^H7q_i1DwTd?BYJv9w zPNPAUn8^nyhAgLhf)LVf(_Gd&-??;7Kgq3Ww`wdI(^BJWY%Yb9D7ow4{ZDn6T1&_;4Mjw_Bk^LIQ;xtZn`!1u_y91xr1UoJ6$dW( zybv_)f6yd>+`*acAsp@9oF8*H_Zz;J(Imm~LHq3OsQ7GdT;z{)#@&agtFbaV21`3bEHORylfj#(*qTiHcDo<@L2r z*BoTFWbK8ac1EPJoY*g>3c6|eoaA6!rNkUe^j-0ck>Xk$3*w0xvZ#m`Reh38c%b#D zW0oV2eF=tp_j;sQ1ll)OJ*#j*9P_VVzhr2RQ}E{lsBG4#5LX+Z3psBl@{uwHf`x`S54gnLKedpW~*J z&W5(#=|3m%-|ANSv9gOHMBj04`wtnc?@ER(Gt^by1+K44Y1cWZ{ES@x*3Hrg<1jV7IKXLWDRs@F`i;MzR^tS2p|xfag(6Lrkp6 z$-q-WWJ5K4h!A+{Ne z#%=MYUdHroWdBUBXo=*9bc>bf5m|(?9?)r%Jf^Ty7i~8S!T9m?7FM*xLKtH*=&CU9 zu^3b{Ob%kDcK+bsDT#kmQ&_8sAZ=uC=LZY3Q-_EFzt?9+uwPpI+5k}zjS#=7TS3C& zL2)UEbFk!vgLri@NuwfvqDEYDC%s^?w_ZpJW>dKU8>j&b1(f0Yj)E9(ZlA$tWbp};$ejluD#c&252C_W18g380 zBopm>;XbZWMkK(ye-k<9K*Zr73ca#MIqUMT_;=5~d+0_aLghO~lW^D|py#hP>Y0AJ zmUZ(08mBoOpBg*T_NH3B#G-G|d2GrU0=(4j9J}zoKLcCb8)jloq-Hw?JC)d=Pyzco z=l3K(RcM&I4T7wf)!h7q5$#x)s*<;>2~C1z9fX+K0=rpz@$dPmULJ!TUkZ}s5m1L7 za%zA363C7q%yg*ijGW9A*B3<^^qvDDLwU2L&fy%jld-2pQac^pVn zRbh2fhlBlrt6s2!ojQ!AGab%W z^@vTZ8&l4U-9E+~(UI0LWfJHit~qL|2D0x*RX;ZaDB+YZ871*-vMcVi<6^WH65%9y za|ECCSAF}JDWc6ImxbuDZtwCHl)tF$dh0yM_@YTz)a*--s<#ntas8OC8&;3F7c*1b z%}eq~YU0%orwHNM*IJ$w_V}m+5~skopqJKAFcr*?|Apk->#udKTbHm~;gw%*^l1PY z)=E#$S82Sjh-2=HgrR!kFTlw?VnxbZJO5JNWOlUad$SWxZb)Yzr{Qv0>4fKDcY*$k z#lN$&p-{e-Cby_-G{(O)Rx3e2<|MF-2NA}7vb|J~EJRImf8|H-bMlaLTT*c~X zyZ7z3R|ixm%zPewC9WIjq-W(Biz}*JPk3`x!BmTJ0H?aZVXD8ChM>f+Na>|tqovd> z2cVL~aK}Dwa&UbpBXJpto*lU!r6FEgPP;rRAhK;YQL(KcbYV;Eep_$=C0-S}n6sU+ zL@GZvvUD|OB@u*(nF;PtB|+>T%gg6t2Iynd!RIxlh?TQh1E<5urmPjeD`F593|K#O z8>@yS%i)7reKDujZ8o`u&OTB)hL8tHU^L13En8e`8Uzdq;sYi5`XiIaKI3x=pTC-m z8MW#V@IAIeA$Mkd5i5$aS1t8}IDen>%7Eh5A};!`8g8s7e)IP*jrNjtFn7P| z9eRJx!TsL}us@5^O`QU2Y_}ybe>RwG>Iy%j*zuWDb>v)@*6+gUmLP)ZJPsj2DZFa0 zl_i-Y!UQii`c1in$w)^Rfp+w3;Q#GRX7mhGL=|!jP0qwLRaCD*{@q&0K?}Uwvc?DS zey6AqOtV|{v>!WBOlH*zB-Axnhd%jTug3HXkCRKzwbN7E(w=<>}b$;!2vzk-mi1T~5p`SSUGBQYIal7NLji&-4Y04SfBoHjmD^?~8x({JX z<3LZo5)LQNXX|2@2HpqmELK#L1YLU$qR zMp+!=6cJQx9nQgztn*~m*o~&;ACKnDcD!xK;tj<9nhquY+bHiylrgNzK2;RPhqj+m z^EF5oU1N`}YqqIms{5mNd~7m}3xDzV)E!QD)wC`k`ev(+CnrD+3FUUO5M9X8`K+tC zbzR08@BNPbj@=Xeg}a&(SL5CRs*;CYgTZ=1YMNa}1bcwKD~L5fEwV-FW3$qH#I(v* z!tyhdolS)TZ#xcxUdq_VH87|1dz~<5u`x4Esw5RwF*Dp%6_d71atr?&G=`CkAYzhP zPC=b(N+yiykaOZV3c?v4g~pojpshD5RKKfJfmh!lV@O?QCzpp8xD1AC?O|cQb5PYLVNSW0aG|VI)dz6hE-3T!mOUCq%Shf{oH?zx23M`&7k$& z`Eewm7MbyBoxP5}Y?5l4|3e)!8DcdUVvOoRvNK&|` z9G1;39;ce$GHB@QJX?1HQk7P9HEO-4h$7=pwo`3*Z4%R6WZX85B8BdjFG21ZBZJFJ z-jgpy8{&Wc8{gjq^t=?!Yk6rX78wx*wYD+#>z0SfBi3k>DD)B(CS#i*H}fj-rs1|( zjhw@lXL!z?(dX{`omiH>5-#tlOM_ya>4VQ-k(g8R`uY$RgSjVWle>8xvM;Ku+LcF$ zTCWTUW#ft4K^j2@HJ5oQ=6*S1IeazFhTqFpn%L96!R#89jSsv7oojsUW@3%=1J!RO zms$uXavTGBS}j>k#mf1@A>63@EMFlqfo(ulB#@M$%=g$v(n5rmN^%YR%&dnV7qmKT()*HTh4OYA&SF36JZO>{yC(zoA*Z4-v@?x zWiv4YC}%O@w{(T{1#Q9RG1EQA^eCGqC9anUdP7HRFE+M{x517{RIG9a+^C)K_QLzZ ziQ!mKujbKW5qj4k_tC^Fo)Z?wBy&U=CfCN95A-R<>cl~(EH{o>blZMsn{BJn5wvy? z{5&fjZ$}*S3da4IoRl`hp`gHsupGXx3-H>Tj)w6-@26!HZ?`*@hPAsJk(1_AEj>$; zWeXnEz_J0!f}LX1_$gsiB~GFVuY|64=WBc@@8+h{WX2M`bl?g9U3bIt(aDc(l25W> zER8?EYNaxAyy>WRmCVW;8|7Si9WaNFls@xq^xP;;Fu!IT<7Q8wP==;A;*(B2Dok(F zc!OZK#OHapXBZxkgFd{f$^&cY*uL$7YCPSUJ$n*Gpo`v&ZIuOmpcD=SU)sy!$OiOO zqL;V>?xgJLJR?@JVaq1mVeF77XJe-BRYc7S9fNE~X*CXEs`6=p@?k|0IOE^-u8grO ze^R-9`^>ldpI5?Iuy>QYdY8@HEmhtjPNh?eaihkEr0p$_e@%F0M}iu=$%Lcp-@Q#C z76G6B9~R(^`@6;@yF~5hco=UV3pcC7p4`>}X~Euy=H6vfMFbf=!pZIuderL!)Tqi| zN)%lNUxdur7)iti+2%GyNOVf)KGS*6La|AKmyu^8Cwj>{o)%QI5%#APuM<=fh-tLL z;t2F)x_X*n!p{5B1_zZCV8j8xfl=Rj`hdaDt6>~}HVR{t9?3^qW%Ds3M6w@h1GvY2 z|No<+xvwzFMpnZ#bjcCpQYg4XExKkD>h=zi9~g(<=cp@zh82_UxRp6xrX4BI{_YBt zw$KZDg-L4a?QMR%d{nny4&n>0Rz8cV`+Q~0jAju;dlzv9~-BHSBSn62n zwq9(t@$&9Tp9n+x1zAlV$!O=iv09SeV*yK*-oz$|<-n~__Eu*7(MNZ+=MEwuX;Rt)7nw~-^y4oD)Zrp*(J;Y%!SXnp zAj4-jq2iBil{ZTEjkj9I$t)NO+boMd=A`wOP=Et->GlQ8)MpvZZ+IlPF(!q^@bnq_ z{@=W+mB_`a3Cz0|rGwPP`A1G)$HTyy=1+pVPotjOsGVF`{Z0~k!CG|Q38Ze8N z1Brm$Ov8oRQt@gESRX7KR)Iczr<|2cnFP~GRE4$9kXS*Ry9708c!brneKwNYDd#>z zr9?c!n3?N8AO*5IQ(#qdNwg6NxUw&m*A+n__bnKkklS_pyZNDgkSA{xB($5U4ZCS^ zT}}1nP$~H>Hgq2`xz81hg(QmHL4&C)=r!+pE&0 zOfT_T*88H-)chcp;?kt{4Qb)+$%8xJUQRn^G+lk@JM7soY!Z3QWnZ(B%<6w<3uTq@ zw&A_rl-OppRoZT74_f_e;lW-|_Ud*E9pE)P*&} z3ua}xwjT1)Ii{`O;$EYcGS{s~adk?uM>}lMzUxaF&>uMu=nrSo0+`w^Nv~`#Y8!9QijKI`%et)6R13 zdzW;(b+oySg*dbm?HY!d@hN^_Fd9%c8k_K8HxPbTRh8HV{X;G_FR76Ciqew*AIcz$ zd_XIs#AHP|JYXvx*4Rk${_{b>*A-_5J;L*CJcb=TBvND6m9}$Lb6{ zw*o2z{2`rk^2By)LW03Z#A%jsEQQ&1@9 zg|@jR$S$!ycl{E@mlWEg_rPy&!)ip+XJFQYLodr6e~<9{UlZ?dTD={PO@wcDTaniZ z&DFQ^@CqK0cWZdFU%~z0jLlbhEqq><&OL;d*Hph#G{vZFwgEF)S`ny*2uVkq87v3z z(*KZ#8tko-g!ube>$m-im1g!W* z7k+dxP{m5j{8WYK2k09`DX)|CzF5nJyr#K(Ybx!l5yS=Q8_Q9>phh>ZEk~(=AW5;L z;`;YcL#+e70YCICn7=nDD#m2SOD3L@aP=(J{-YX-0Vw_3Nl`PfvNWsv(_~K;byG%# z`?%d0!N`9^Lli`EOT$7v+Twe(7h-bBlbQUJxK2U$*28LhD=iF^=ngv^b?DNz7{M$KF93do1Q`eVgMI+Mg z%KoN@Oj@FsSrZ;bMCBw3$Wm|?xG0c4annhu!K;+fbE|tA@7GF-?RL%qSvAmGuEMA+;owxR zvRaa?Mxc)Cl9cmc^>L+x@_a!-Q$fa^R8bqvg9q_M^_s7lc>hBoyds;QOUYNAn<^yk z_-Fv6pD`l9$kbIQHpRwf-Q^u$m+D~dbPh2xlO~Hc$5Zzws!=G*Te3(hoa$IeXe6;5 zZuB$h3{i&nZT`nXQX_eTd?9L1R)B1aYuksOz&n5G>I#U`ZvEVlm7TSYkvQV{GETx@eN_BHkzj}!HCLJH7j3q6;<37^a1s=t4;AW zTTSN9D-Ppc>EkiS!I!asEVq`NG!@PN?u@c5nQRt=nL^q_+_&<~MPsicBYzzo)s__X zh||H6)!|-9CilUWq^l33!E7U%MM5^$o1)E^k^B6QPkD-irt*7iH7UAbxNndJNd`_Z ziatoe>j(~g!E|O&nL9x0J8w}y`>Z%9!?xyX_OFla+WJFaehn#6i1o}@U+)i>O!9N$ zZ8w{}w{@Z4h3;FPY`k=Wcl}TwnXG%bU-^W};Cg{Jr-t8u0i0&jlI7cXC@MElU`dPl zS{&%GlyQoyb1_5N&338|W{wNr7x-npBEa7YT+clCBHldcH4#{*_dS6vLl|*&D#*ML z>`fP4Mre`np0$&%)9mPu6rrnIH?zq@lQeQ;NIUCRy=FG&FJn8h;BMCNNG}*J2x6Jnp;VeLHSBpmpAg@&x9}P9Qh0 zpSSwBu-ZZ-(MRN8eIab`e|nX+>*M#(HQZ*N9)^TFR0%X~lt%@DDUcvk&$;j3_b zquv-bOt5q>pm|%@f3MKY|H0O;r6_42sbV2Yc_&KUr_r7(&8w#|%;zQ*?;EkdE2mz| zuARE!FYpXvZY@3B>Y35!J)-^PC5OqHhE-AB__K3g|C9a0jmDxME7NN}p1&*H8<6VX z0qT-1MXpj=Bagc6m7du9S8Bsvrs-sQ+g@Qr#&V@dFGFlUJn4G%coe!h$(A2ALJc)S zVnPHiAcP}EBMrq?j#`qgt0kxV)H$Ze>?pAh$Hwk?lx$t|0Bk;8R?$=#Qtn_BADp}> zSIJPFn_KHY2{ItnWA9f$`@!~Kb^79Prs#eCiAQOH%gy8VO7*|}WkfGCqS;HE?d$q- z;`{VVjG(VxOC1LzQKci|Em2x%C%caeQ5+9LTQk2%U|m6F{UI74!92kdo(Volbl=Q4 z3nIo|wkU|!P6~~wKq(DJajl~{Zzn(X;4n@qRvZ7LQIQSKN;-&z6K}vvRzB%|WBrC2 zr6^>}i|b$zVXdaX1FPnLi00{7+Fc#NF6@#SSC{LMh2F zBvWmM{f=3Vnx@zq>g##;RKTb3>>;z~;mYBdn-Q+LvGB|csE#Kvs=#!F z!zEI?%&;(nM`)7{dxj{J`cobolORmqzPZM2hYQ^Hliz&J^C?IMp8)YAqP$8M&)RAC z6w}LtMfo{Vxoy*>`;mD=Z!WD$xpDjvl=bue&G?R%KVF2rRR$_gq}ML~_M;^DeUWtb zqn`aq1B)No3n=d^Lz;0J_n%)<-1*fVJ4vf2?Z3)3aN4u>HRZuYwRJhK$sQ0aw7B}# z0qIf@8Od7t1T(;X+`vFH6nQGSWna*bzc`oC%JDt^$tyF>;tKUKA?-YU+J&IKSjEaNCU2@bsJ!bWzu!uNMlh=3M!a`Q+LR>^e)?PG5(6a0391(uP-eQ*r=Wlqy_;SG z8h{^w84Jl*$ryk&HT|0`+^d>)AsIpU8C3!v>uxUa^0d*Ctrg%29k*jKYq`p!95m-{06FzLeKVciePX#`fysv+3pPojuOt z%E@^=K7GJ%7iVB{7I(lz={2(JSbyl~aS1@;m6JXT!htpUXCnT+WueQ}{U^VHTSTNO z?2ctlc4Co?A1n@&T5j1ub8hnf#b5m)_2(;ANu*~P&(6bSol{w8-Z^hEH9d@~qdKYj zy_yo$xb=m}XA{dWeLfR0D6J9!^21M>N^Zs6(#i{M?Gg8!Wjve6_L%Yg%R-3HsPC+9 zIhbs|x|+Kt5dB z(dMD|h+3o%ecvC0br+85)R*B>t~ML(glg_P8&A}p=#>^5lr*W@hGZ(7sIIVXnj32< z+Q+;4Mcvjv|5#FdSU*@HQ3@V@Pd>~*wWKRYf*w(Jnu(ITLA=}S{dYGJxDzQvf#iPqs6bVd znS;RoPEP`l;~B2h(O<2yrD(&RADim?*OzqEJtOkW2y8$f*#o112cae-B!k=4h02pc zGlKm%`F)b%`VlN3MdT=%MPg?g@vTJY=dPJWtPd|dR8E=Cwd*t(qiRVMtRIm)c0*%R z)|WUgS527~oJ4MHO?LDvCte3D2?@bl3K9Tuf^5qgbU)dt4sx}ir2QCT((vpPM z!9Z@>IEJX&PXi9b`|Jxw3y=z`4BM3^dhoF!7tC+dD7`_LBm-g|C}k6$ZVC5$m9JPK z_|m6nGMG8%1Bm&d;7h>^toE;@;N;Wa473cKcMSDIRf8bb`d=2ze@6&_`2kH0aqpH0 z)T*gfvVX=*Bh~80DrZ~?m-NVzc8d1J)35@eDCrnM95+iD*d<0fc2w7RUb2c6WM+HV zn%!u-5L8)~(rni}eV9^weNd^R`Sf6xW-OSPQPQ%r+ghubm*sN#iz!!0@KmMiLGav3 z&)NfDpqEg8g!jg?WlMCeJDBF~^PjbjULOB>-*)mV%^+%Ri{Br=WaVQLIhoGImHy^i zcTmVyWXTOmjpPnd%MCj1cfXQVeiyie`b;LYJo`=%U(@sY-AYS-hF@)6xoNyeuzf8` zxBJfM$gg@OzPR!WsiTuP|E9x!;E*Ne+v$x5HqG+pt@LxoAB#nEvtH-M2OKL2Jocjn zvEF~1r{mMylYeZB#MRA0jvXEHCe%eucBf@TEN-k1Ow8VMzZ7#9lfs;AM2#>Uh?MsANADn?3dCeI>^o9m(*{DkB_VDATg3S7aPpq0mHkPqCQ67d=n_~a`0?C-|$ zHFwltv<${4V`q(i8l#p?2aNYqD-6kM`EHP-IhEJ?;--N0ZKn|9o{&tDYj9z#Zgt9Q}+i^{m3Vk*06 zNlYA_8}!6zBWGQvV?}3t)Jl2J(^G$9KGPaNGpM!2V6=0JQ_kxY2ytOuh$|9(o#w`}{YL4YD=kT}WB zJ>*#?+XXfY`=pb#I+;9f!6h^~G3*8YImJSS&_p+J4;F6CN7;ZG3VAZEJu7445rkZ6 zC+ObIG767akH}YKG%HK!7#Nq-(DT;lX*U~xp(N}C5)5u7aLf5hN6~QL0rWkx6#BxkEYaRUeD?#(!&IJm477(wM9ieVe2n?c{>?s1$oUpE#|P| z?qsFc2unSA9iB2O^)4rS1*{1ZXheo~-MoCgnQ4MwaOywle21?ZvwZ!v$NuX+8viIU zU11=#7uSTc@;Hd?r1!KwBh;h% zA$^_Th$w$km>T4Ci|j6=x7idwf8$N1sY%nTt>j3E-sNHsi;ajIg>5bJfp_!by^#}6 z@~GILz-}W>ErsNBn!En14@}<<*HGY;bSM?>VFBHqC%^x)PR2I0@^S9eICzdDrOHbwGzkD!$tCC0>_HgB+;8WpnK?U$u@2>mLE~$4a3zxRxRxN;c#a& z;5Ro%^FNpRr(Y?!l?%EDv1sjk{}9GF;i;W?FL8r7=jMl58~NLXj1{l{L7Pp2?gKQ9 z8d3 zW!K~5ZQaw?e~D8qI5`9rQEHuP)W4X0rh!lGp0QXzw-=0F4`_@W(b))lDvy1b<}OdW zG4l8k{085+m^{u1y?EQrK`3k=;=tY#xYT({eYF$YdH;fKB+`C=jsN0gBSUA2!$rmV zbW_<}*Uw^heR3Vpe?cH*`ss31 z3EMoJqJDGFMCjIYns)NM-B+Ac&e(u%br0yHhwaroYN$6>kr;{I73Vab<}*@%lgg@PTK(~>oi*ID z58V|?X0+4AEKI!#gt1T#R-_uCR2$%iZltakVih2vTE$AtJSt{=T>~-uH*B{Q`eLW_-2_*5n zy1w6s-ZgV)^ZD!i&CsiOb8$!r3C2D+IVHjfP=^Q+D_tP~TbbVF>2qAyDKRoCZ~EKk6UR4r(Xl0(7U{CAYyX{g(rVs_uahJ)Jskf-Nga zW}raUG)EoAdq!PT%n=M9W3Lf_>EP&b5>ydsMfbK2L?R)W6Fv>H;8R9G6IEMYyoYaB z;8cwUNIn()#?&Gp=0H7~78r{t0G>!42LHO^B}aZSxL zuNDq7-6^f+!SQZn2%ooKr+O?L)1bh~csUOkWkNH&ZxbwiU8C33w87-@)6csJx9zwm z!4*jJA6}t9XqrsbI+tmMrkCOJ)FnQoHmKK!@MXx^%znKk0CFWL=R4_WnQ_@zF~}U+ zX3NhIcD(v@)A3!=&(yWP@9U z6fCoFd4wxZcSC1ge^)1rCgQ2i9 z`!Uc(E)^Gfw3Ca?R@fx6BfV{KdtN{i+bifH_TB680w7{}u;I7X&1$QxIq z7_m?RdK#aO(@?<9J6CAWnxs*fBQ-rtA_cl_mD$En#TeKJl>RLhQJ=yd+uXpEG3xD|PH*6KqYFa|n@%9U@Gby3$&oU=&YxCf+s8#vnyuFBTh~4Pon8Gr zaq^Y;M3M-dhv)@G`_Qak9JN%Fco}A4k<2emT8S(vM+;nZ3u!F3?uF6`oF7{#w7$Au zk5B2+R?ZgeuyDrzNSZr2I=Lh>A-IUa!KJgtx!qNH znfWTO!_5Jo-PAvNP09v(JSF#bQC3%%*%`)Ot6VavSD6_S`*8qR{&1B6Ca4fdQBC($&MTM4e9g<8WIPTWBsM zAB_)Mx_@Ccl4Sco7SQYa-PmKPk9q&%2T?Rh7KY~RO@EAPR^w5tJTI#}+P$voWy}~o ziHC2#>VLYH;KfZ|!8RD%=`f-RqPd^e{E}_I?DCEq-bt)&Veo6-f*ACZLSJ}|M%ii; z_sy?T39LEOSo$cm&+4S|=FI%v&hNUsTN+9hwIng5Nb+h1jB9d)9R?sOp_`ILLGYm) zQk_X?vLS=*8UhB?CZSRN%Mgv$XK=Yy!L*v_P5SDUoJ@=a_jL_1qumT-wb592Z5?Mk zR{h;}rPz2sj#Em4rpXmk-$`} zFDa6fo!~Ekd_$mLF%0=KF4gPc72g816gShzLC^4ha38ClG8V3mCJ!7d(tDbxy;($< zWTnwzsL^3iNo5iiUSpUJ_H;KY-6Cd>J3WOsu&T62>J9Ko{%~4Y^l1Kz$v7QVk-lg> z9!uXRwQJlhuk*#LtsRuSftnHjv77k~01L&;=*EMvIq8cobF}xS^VFhh{;CXsLrBG) zT8!PN1a}pXjsjbs_L~hGiqHmPQbCejPY0_?%1c*v#i%utKicd~^(cNUkyL6Z<6c{- zZoW9|(QexAd-&!SWbH?|L;Y#umx+VS{oYiLU(K% z3JqW4-qTv`{yAszf~{^n~~n@SJZ&RIO*-_Vx<=eERoeL z6P+C8RztRQUWdX|kza2uJZ-=pFRH8E(M=Pr7coDst}tUc62}@&t=VDhR3Nf~hA<;Q zgLI%Eu3%1oOOQsoC3inaHA0D>c7kPbz6PvhAT9IHfki z=zWBLo6&%)z4{~6U+r8O<;*>=(H<8_uQ4Mnz84%R3|Z+Jcwe1Uhmo)Mq)ufXV~*bE-$L zxOp$q(SLEobRAkLZz;5U`>VZivsbI9X>mzuj{jl=HQet!i>XISEg!eGc~r!fV$@`o zA&o2k?AL7ZSIXW08aSi>c}q9;O^S+F!@jK#y!hw6IBsR}9+==2JB@1FjVX@&$^rsx z=MN2OoSNx%kN6tD@ey}VtpOGP>3V+u*z`bHKG&2mO) zP~H<~O^;blre+ZGIg#e_-3e^D*oQGm6@M(2Nzk8sYnhRMHJ5SZ*LhAzIxVXgFfaLV zN5}=_NgSvhgu#Dz-a?PqB@Dt6duJ?yl8-Ke{z+=lD0ZegF+jIMe^C77m$-Iq6uq;~;Xk=I42 zjkUEmY>>5p}98M)Xal%_x8f+|IDv+Tf2d}UO>F`szz=}UcbO4q>u3fUj4rd1%{d#*B_ zJ~I14_XQdOh`{8!DDk%*$4KE=H@AD7t?{9=uWp8~OoT@#$0v1;TlB0^=45iAv-yy^ z1#RY+$;9~5_8OpE!@cERxED-fJ0VLgr`vx46^#wEue4oXvD~SLKRU0jj`YqnQ+bmd zzB4pSzkns2em zkNGbU<26#q?qulu8{9M}PMTktX+6YeRXa+#ESZK_Wvu~ghX1a6mMiF-A3-m)U$147 z+|bTCr?3^x+f&A`^gDZx!nDT>jV_;RJOdR;pS+p7uvjJ8ubjs3TxDFj|E+6s?5cPu zAYk8h7jx{{`SkDg#+Z5CY;4?V3fD~&Ws+=AF}*0r5)|f(^ZGpLR7B)#w-QUks~jh` zX5SsZxG;rO0X3)>->&8kJ}6eDJ?bGw`t^ra6_$NND2Ew`U}C37b&h}$<+M0@MHZ*S5q-QTtxth%5bBUt>olm_t;dE zJvQJIO9f3hlQ;03)1-F!{@5B@Niy*}EHA6~nzpa?8`Z~jopFUxXt$a`Xw*fK1*LxCz)IUl}QK0E%r@=e9MoEA~q5k zYe2yAN-`i*A=n6UHRwyv^Zgv5Bpq4F9Xo52vPM#=Xw$&jrxX#&22JjdQtvD-uVrfmb#!KlH=&QZuGPjFX9V{HXN8uRPXF(AGxP1Wup=$ zWiE$<-$zSW1}UIhi3F?bqd;FTInQ1*om*`*klm?;6)|azpQdAvraIjT8J(B&n}0tq zpt&^{Ov1EV>v*}7_}3qYYIHm-zgqUvRTLMO_b};EwTj_paZ~2LYiqPja&Bb(RpOzO zv0&qE*m%Q0Lk8IhprIi`$_2|(92K-C3zsGn4=WjwsKCMW%BgymgOF@Ub%W2ccE3js z@HSW0W1&yHlosZZ$WHa&lzYiS`Cq!8uWl4styN2UY4+bn^jlm}z({JEO}@4}%@UM( z&IRz9ySJH17Nm!{EC}a$2`1L530U<=SUYJ_OaAQ*XeD6b(JR*1Q}|odu9m3beTMRv-aENPdWjn|NSfGhxMvOytEOx> zR1bV}{3xaL3Eoh*Ji`WPvEFeif16&W(z6Azn0;Q959T-ArPX3-jgnXmX*!y*uXZ+< zkWh)FlW_mF^N?Grp|LT)F+bmSa@ZU1J74Et?|yZ0iht2oKb~4cW*r43>_T*qYwRDVqwc+D_U?l+r0v4-1JLIE=)P>llc7)W%&Ef z2h{kbuG_W%LFUFTS9*L+u~SoSWr2yn2;sMzzuxCX+l)_p)!(GBq$THh(L~P}_|jzH ztjx9h&+v&VPT>omuYKZ#kUN$9C){i*kwq_+W{R;%HSlO3yG zTfPD<-yDcy1(q#R=rpjHq!#t`FjDyY%ioYDGojBjXj=HTTDX&fk4;G2`*%4atgpcv z_a6EFE~rdMpK1EQC?(jhhIMKu!i;fiswPn~+b(iGC>yJzmrAf9Zs>#hDk zrmMC*%Dp9IrIniNZBz$!Na=qbjKDpT_iD0ZR21o=koXwPWc_iqA3uDE{@vB#1=bOx zG^m@6&bP9H>qonP33Z5cXXLPz^Oco&7tH#P#LZ?y0(S3104oUSMn84R_C``#Zh z9*L^r4ICj0~#2bcQdx{ z*2^~%=gOy5091JV_!tyVRA>PpzW>R6%FQNi%(21aI#enJ|^}bNqebVjMki! zETUd{{64i`yLzO7GpvM9_6Ym7Px#J^3lU)mMcs()T};nr*JL1TC@$+e6+Skf@cf{T zG184&1NL+dpQdigy`x)l(4wXti{p_+Ws6KtZA8W1(v-?v#IQ((#F+M-&mY;{SWjr! z4GcG4n9%20*Vu?iK0N3q8;sy&?7Z%7l)&4^9Oa$s}Fdns&CK2gJ?+3(OCuq zBqDjP$m-%kaXD&WGNjIu8Xya;kgNxW&*C7ndG0R28rBy}6ke^O^ zdU)kSE=cqS=Q*o6`^P8Qw=w0esE~jU!9PPaKyry3;1TE-4Yutk_~Kx^`3D+CeYUth z)j_2tmb8AEhO*}~mUyd#_SX{)#EIF2$*2f=xXEm&P$LE~-K^eIFb!${Am`?Q`{bG2 zem{I%iQyXrh{hO6j-*ihSn8_4rFRoMqpW|g2s64MaDjb{NNK>#V1yv$LRrOYF@g-k z*Be&Batw+dAQq{|3u8*FRxdl)YuX!){)Z~ul#7rS`1J||+-_;2H{Xn9b&~*`7OMmM z_R_ubLkw_aD0f9TY)0*?!?c=``7Ljl(vHD|bQuQK|4MlzCz;~~9BCv^lEE!^s}D<8 z`JZk3=jIC*%hWJrRn>{Bo%49tns{NLYtQSx58r=xI((bKkCQThoE)~kvq^#}rgq6^ zffLmae$$wFs%v?)Zl?aU-^uqWQ3@o45AcW6MybPL9b|B5+h+74S@^ajvjXQ zG~YD6{)YB^>nT+J`NB@&5?aR_S|9!;JBuH;G-pYRx>TRzUKQF0 zr%gg29*AqKcmeJ#W;@tLAsbB))gLRv{-rB53QM2n%tbZSfZ<^6Vx0MPf8!&&ttx9C zM*%`4V*O}3-aqV#nTiN9`*hbm&l?eAQXwt6>h!!Sr2k^1ZaB+z~$#ZQF9+ z^E+7!Z2@)U@a!s(kP+xnZ@GRq;di5%=XdJ(SK_AaPqc0fv+=vl+i+QsAn#%F3+@dq zRHXCJN2E6oPU&B^A2d^zqkV%~=UyL(Ro82n2=Lrxo31#^I=ADTmp2ExHP!t%=Tb?5 z!QG#Oov^CO1|x>%#y>e!pQ~zyXG1MhRa( zwR3y#AovBLaUg(sH<4dxT{}K5$H?ox3>}Ot6y86F(?{jhpzIX?BI;XE5ehU zdC7dwS_fD>$A*`lE+_|y^=`IB2)L56VP`DUJAjXGaJPo3{PVrcm?^tGYNE$r7MyY6R&4 zk0I}y=8iMQK@&%B$G4rqQ`xMo7CTpnjaFPeJg0F&?Q>n?0+C5HHtJXJgvwLI5tf5wGv&4! zHUi+5-nh<6qT5D14^H%`5Sg4K@4vY*gtjF}7c?DBh`BK>lJz_2v;B_X%?WQFdy=Tf ze6HGF6h-mQL1=U%7Ys)1ewC?e!|tOdv0+a7gi=^FK~WmB3`uO3H!X1M?aQ+0>~i2v zcSU$^@@X>lyH!g@c-O#Q#Y?&rS2jnnb2L9GxZA56paXnIiq+Kd3vbNtc|Dep;FiEx zNcW#5V~6~^m0`o|mz1P{vIq}MlLR(xy{jz8=-icV`^rxYbf zrZw6fZhq9PPw@2#Y*mj;eieB4u-x!4gNrGaLC1hNjy#O8kUH|6z9`O-KwIUd_kFh< zrPopPHV{G{<$`mOuceulKLsY4qc(sVw?dRa?KC9Rp-zA$;o0gbmROlPUrI)hCNvcU z&}$Z6xCvm@B-v-KegrTB^~7wp2VhB{>;?5ceqZ&q;C(Jpqo($U7&0?`QE+Se-`lMN zD8h#>CV=4!MqxFS03N?%%KHW=D}JrGBJ_MQFL zM=maAO;ve%&#X^3>3z{z*;qu}g21Mkpo!LMJE}1M>@HiHLa~fl?$a*GUln4#9!Rp4 zpMwl)(u}}A#w$KH;a6vfprj_RR+~y#(>;xdL1OE6%P&*iSO$@-QdfR3>HZVkvnH~; zNiW+4Fat#b5`;uK;JP=}BSo(#(;$Gn5hCZ|lR&TB(um{4x*aauTx*U2^frd6-!ybMkzh@Ea zLPLZe+0zjA5U?<>o$33rH>4~P+zYr=%Jk-U!c*TUkQ4|K){TEnI5wGm2YpUYWlpEs zKT4hH($Sf-oVR1RmArAu_H*-G`l!ah#9rzJi~j?62IRzEWViI2$TKR@EiaPg8e`43 zt#5lnKZflas;-t$HhkP*kX+e3LDXC=u0YI>p2kmDMi~2vLRY4rjDUvIx(+Q=kH5>R zPt|xcUh6!ox!DC6iB|S5S*2>m<&x}msX^b!ZI@ZR-cAS8Rd2RDJ`~z>(AAFWtc}uU zLT?#*u~$VuSavvb*smqaq}P-N=L*u3mBMhuKpO_VVqtETk9Io z?ZmnI+T0@TzkHW1etrM9KUA%L7cgh}-ro$JsrItobP@II7x#)bQ@W&+1+J$jgFrbx z_hK=UrgiMt(aHdNQ$#y!@#l`mA@hHe3DdB1JFSt`@^YqUN3>2W8PR$7!e2! z*`^#pvt<$QMR2q|DuHCHIGgIlg8i-5sMzEPAGeTG_=L61a&dj8A;G{+DMDE(ejUua zQmR;m0XXoK{)#cC&t)QhVY349h@pbUq@VBB5DZ7Oc{fhx5e0O^_@<+iV0ay)xF0!4vkOiYU7cf8H+t<$RGe* z4q2G$hoLb*d5pqf%>b<|7ZCdJ&o)DUw~$mh-iBc$TtJ-)ni@$fj>cLF_UzO%!tNS# zSlqXnjbND#ap!hv$Eqqh&VrBuo>2m#pNI;8bvvq1hIs^^F>kynv$lZ%AW{evk zX2#wmjuU_9sX+=(iLBqvv6q|L6!s}Cz4~?(IA~kH>q)2i)o3uu3lt{zI~!w>-n%0Z z2^>+u1}{)6Lab<~gkW0^$fA+NBM@Uku7K*x)`L`*rU27i3?rM}X2iPskNeSVda)^l z)T93eL2&%%HCG`$d#xjy47AUk@_~*WZ%;7WVKoDprKZIV722!j=QV`b7h>C*?x%&X3VqA2FH-~H6gJ>8Z`m>^E1SK=hX2@lM2=A7 zl9%#cBiI=990=C7zZcgpS8Go+#xH72G>2 zJ}dRQ(>ey|&`?tBUWhodp?_IPdD`?X`nP)p0V{p31f{Iq3y_P?g2hawK|ODpH+^WS zEj;)4fu8)D;sje%Awd)-d~*_%i9jw4F&u|VQis1Lj#HwtGFOQr5&zx0+de8jq(ftp zrmR)>REOm1pqe`%B}|$@!1#&y_W(fK9|vWF!YjLH2H0^o436t{Y#IA6!LF~F;>&Qi z?BJWtc>?zx;&5sTkZeiBFV&b@_p3c>`{J`m84?=ln=W>*#rq4Ui3NQk>Pg~y(SVy8 zYt|XdIT;WDFya02kR!_)#fe zj={cBxT>z;7j_GT-V@14Q(f)Y2Lb8~>?@BVv2TG`i`FIdl7{EcwDDeou9#$;T8f3~ za*nBsBa<751X!Kq!h99iNUZ#ZAno-I`j3pMZzd=S?BkfxZ_nk?eRr~qs0oI)xk=k+ z22rK1NY5Cks#T1Z8OQ(+wy0+BKsR(_SiiLI@Ac@{ zn&r`PZ7IeK>OS*?rMqk$JDZ;P=bLk?j7{$&$tHlD zy^V3h0R|GC;O^(jGk~G$&GZSPekqi!;j+kDcTI7jUxf7w^}(aeD!L%GUqAANsK6~i zpae4*T2YU$*P(LC_k>7djIGy~%J}3P={)FGw02Wl?W@Q!!`)(7n(TOD`YRVD3Fn;u+b}* zksu!^zF{!JMXa+7Q0(imyTBU-NxY-D*jy=#XSXd&^eoYA3VK-AdOZa&B;axU6T>@J=+Jz@W>-`^Q#a(5i`|1{c7;+1_wb+{${mWFa zrK4Il1dIR?>q8Bza(&OfJ*~KF+fWKMCmt^iM2@kvOFn(D~`{gb;gkVkGGIlvQHLWz+fZ0B+}Vy`cgJ z-MdzFdJn%l=n^Z}!VZ;=C)MwH(1ywWOxp{fUb*4XBTj@wRD92jUdMXsHEJD}2Yfs| z&)UpZ=GR<(*Y6~B*BkUy-9-W@j`C>SfFiE_BN6GoJWwnI;RE+DzqqBdrpVu!8vBWQ9M$SV{o0CAs;#3t1gHvah?BbC(3*j;Pxs~RxMv0= zV^NsJDVIeVBV)b0gOg$|Ydf+3Wg$o$IA`s!&z2CpZ@&$M;H(N%i_6IC5o;773l$n~ z$gqWm4g}1(T0pR<2$O^n`e8SdKuR|Q#`0Ai`E>quYGeP^Y}q(kNMpEw4{;LBsX_ouARBwX zvQU7@%8wP*&?||p*?+bC(~fC$_btyIEhfEqSe2DA8}eV`AzjyV`H1zGEZAY194}e# z5DK8$`;~1Ce`vY=(*>j+&8B$6*&FNTH@O}IgbO^anqJaZLQeqF@UC4u`fe-KA&}Gr z3NCxx9T~8xvH)zn%13-aghYDB>cS(S8dHF&+(%7NsjQ9>2^KysyQ$$*2!{jWa2HAL zUUNp+syRN&8TX^x?B~O48nY7+9~;&(joT=3a$D?m{WN>2#wQ_G$OFN3BjNVX9j1|I zV=m33IPIsd;jz6HzeCh#{RKfE4kUx4Vc_9^c@!lYc|cCmzJ(8_zvq)Vi` zb7&Yk6r_jlZibnGA%_|UewWYlf4*z|dCB6%u&y=NdG5WBeSCV%o)hK?*A-prR!vRfkE5sOb@xVh zOqj>0W3n$oD^o`lX(G~{-NJ>-^QHv+Y)RSYJwajG@knKoLRq4CPHdGN3psNkNvlM3(8(|A#p;ncG1QfQhgidcfM_|eyHLxwE0D$$Q}X19g4Y6QqK246#6 z$U`Vzjb0Ruly&f>K8%SnB|zeZ5$ge;ec3ALOoyFb8?7KG;2_i`0F&OW32%Q(T%st_ zFilfr`n_ksFpwF;K+R4=0l!RFcGmo(_;i|4!(O9DVqv)cd2(O@V53~kXH zW&zLjVKLz@^JMYR-?eovKu?n^V?@aG9SR&R5b=w3Eh(W8z%~DylnGy~ zbXpN-8Es_C2wGNvItIFN^CT>oh-fzwXw7MbK4+3f)o{EXn$~*^2nlokZtuSYY$>?4 zL)d%n!BkXg|B~STXLJ9%M4Fxw12v;yYyGmc9AfKnn+DHc86i14z0jkkRFYkNO9IU6 zxVrKeNR0%VsiV?ZcA<9)oOq8Lgn3&$wm*Ln#+P|NRAx;k!=0(q+pH1(5eMHj&uonP z0nx?_B8gD-lX)M$dvakt@-|wGPk1VQnmzCYW`MbRjmFN?*4>I8byC=y#LgZHjjvopU;Q|6QH>YFpu)a0~&+56HIia;19Rt}9? zKoe4-aqvu0| z^J7+NoM|#?3;P+07|%4fT|-f>*AZr1-&&)UVi^KurD3ktwAKW|@gX|?&A^4z^cHXh z{#}f3(qqgaw+H%VtUOsv&EO9n0T~>99l8B--=+cBFJTr(L+%~0s2o%u|5`4kg?iSP za!T*J(yPi0uEH?$gK!^ul9sgOLh}z^{rS=Fy=cmMT++x)zd(QRtnj!Kz|BJEvK}+& zh%)?@1l}X0%AV?hTGLMJC2A$<=A^0Yh1&{_%zJ*bv+n8I7}ZRjmvDdtSG z#GNSeV~E_(GzDH%9{LOd3w_fh3{`(m3ess$D5$Wj{F@k0Z5j+v1MvcOK!2!It5<_w z*BN|JY1ZS+{Ui56VoJVu3=%fu?)q`BsJU~hCuc> zi5og~Pv?L2IFPYM_yVePX50_UA_Rrr`HAh~TZ~;l$|WHe5^Ro!5B!r*@2>F8-<7VkC4tgQP)N1+1193o(`xbKiKxW=GM^^c$ zMK{qrmGy+5O4!X~;I~*Q58dgL9`Mv#zw~(hqms1c5;gpF&BsaBkrWi|e|OWTvR=@H zI&re}a7Sq={8{;HvZnP$j23Cl3NL-od0GY-vjvZfPCEG_H_RqnUj)2UGAZ|9Z#uhF zRWzwiXC_yg`~DAU7TKHnzFMgHj=mZ=Cv;S_wH`lQc!uOlO=UgxiYa?j14RTY$z@YR zQv_!6Ir16MbO0`B=~)Bcga)4eDkm`ujr-r@*LzAJqVZHD_|?q4uX^RGu-#Kym#M7c z5zG6-W!-M6uS8?+&-Ym0_bxwK2_!MkuwL-?75L_0VW}BEfUfy)UR_m;Zg~gFv^_&U z4|uzkeu3{2%wP%G@l9dMcjpxf^~4C>r1b4CzvKTmGCr<`0;e?W2|w}73iA2nu*u+w zj_#Y}0MQU8FVGuHl2I$lCWK0KM5d5YM^Jf*=72fxX%OSZ z@T|H%h2-^@=y$dx3|&8)Nxm2-2vxfuBd^xTLelE03(q>&1RQ7&`1I=9C;f{oGH+bp4jicdY0Ty{ z{A>I62YzT%9JQ#!^xiqXoO6wt4W@LWhY$G0_8va}$^)dvlFy_U@kM&8{~$|sXPv3c z+$Jx0?qzAwk;+7=FfX%Iti5B6u*^?kN9jV;=rm8lj;3aR1xbT#s0qz4%K1`e%DE)* zL}d3Y<2s19pC;(LN+XwlncspxsM6Z{`q$ZyIh8-Z+TLjpV$}JphmB&Wc3M1R!ky-r zMM%C?ABLQTQtyFQ)T<=r`I|NS-n8ZTn0R}{WifCS61wzPv@t}fEp+rXGMI?_If&Fs zUf=88@8QP416|}zs;gl3xg_n7+jogdi$9EQxNRy2@TbFw#g@*1Od=TKDfAw6s!o+F z=WRunG*ofiJOYVH{h}iNi&w5##rw~u#(j{=-BzXPqqmE4c4hNoZc2~ZQlQR9{j=_= zPWDRPU9 zImy3+<6WSNIwvwK;9An9y>khM(3)`~PYz$Jt4)~|MN&4ChP@e?Q<(VOaywkL8sw?B zXH0sKieGMWCE6GOAQH8H$IFm-eK-wQi3Pq=bk-*+fB3!Kz*0yYr9s3>HMIA7=0Q`k zij}C48Kt99v~rbjQ3ed@#(&PI$uVgr1sY3{j(iG;pVT~ zmSiZuz@J02mnoIiI0CjZM_mrR4R3qyZlt~K0IL2OMq5`=T#Z72-A&8NhOjp1L6T8I z#qjKJ!@$|a-OGp~*UB_QBq2e@m_am*+42d`f^m%U7J>+rn#rq$fX&IG`T?Y5SnErE zI{~w-4<56ND6*}QuX-+i7GH|&-Rj%Mp$L~R5NZ`uJ%J}t!p5;>9aEr{c=vv33^UjXp!EB6>?iut8*+{mM;;5Z%CGTRv3xesfIeF=VEW7mj zNS!b3YQg>w<(Hp@F{qI=-QT|aU6~N<^nt}&`;pIj-E`W=7o-7;)?7a$S`)Y?@^C%h zjq0}uFXoE9a;qjF?eCV~!RNwm|Hxjmz-hOWx1TQ|Z2lkg9?|bF z_)S=phuN<^CtADr0^}o40U)IFl}&4(C%vfVZmER)|Dl{_hTnB>Lay<1+4!jo9eAKD z36sn??LMPH%t#4bYY`sjYaU#a)YY}NatRu~JxRqgbr{u$o!C*or<99C?i!V=l$EMm zFwDEe;{U3HdTMVD>F=h_8hJeLvW;S__8Ngxm70%s&3S$!?M%H*2HVzL}YJU};i~QICuyx5^%~HlY~O zQ;?Z9s9WTs>m%5`%7o+F7%hD3LnE6g{Gz#PMzr#E=FG<-d$4uYR^%&DyIB%dv6uhr z1z0FvPaf?N`bPP~R=IulWD^=IZ<+=R2a`N=h%ESIx6+&A^sYGpP$t0M{%I+s^|Gh5 z`%{J1s+ir>2+N(a*j~7j-g{(7ij9b9&~^Q3PEcbVXG3T7J91rb1*4oYo8727b|!W| z2mRn;OJG^ExaL@MFkJ7^0EpVmV&)59d5KXs5N@9njiIe-%1>_3-caki!q0syt93)k z$@c8LU3+lwZ6`v49B=VH+4xNzy;4TRb%1@n zIh<*~?+yuR5>ve&5T`9_TGe7P_CL#+qHBhQgx%F5W~|;$QBEm7?7E)_kv*Htr*Zm{ z?dc`(NlP}`NK@##)(aAmumBCB5CJ{~9N;oFQ3%&4I_TV8fF zLPocmciY|Txod}5akg+V)tHjxn7ZV?0V6)#1Hw^wcTrK(r=zN&ol=L9Y2`5z4M88! zE*`Jw^ngqLl3}(VuQjgol?rCzT9ayCc77QmE9tTkPK)%~{d}L43dXaDap6RxAbrSF zqng=~c;T~X8BLzwKR&|&S6ITJiVT~!--xazUCpv;+0z!@sebueV^vX+FC@XS!g)ic zvC0oYq6fmAt1)^FV&p<)gvHrKerm-<-#9B@>N!?ug+q&MlOMg#jcUsrrGKoAd>?xD z*#jAE!cU!r6wx5x)|70mhBVI8gWFJGOcGAN9& zWeqwy$5kZurIX8=SlP+kVrD!iYpKVzyRW;{r-gj>{&WzQ-so(kWcz#cNnMOK-&I-R znw(#Jf3b#q%31l?Bl88xWLrmdYp7n^_-iHH2osJSqhL8j3pLRazQ+O9YE_UQPCgTy z?pa1?jJiG}UKYk~*ZxiZ1ZsL3o~h|5Bn5JT794WbBGnPnuVsrv+TnT>9vnp9j_`F8l?YL@8WW#Crx{Hph!z0Ux$!uDhj?wO2Rvg~N+)19aJ^6qC|j(0CIMySo=G&p){wg#1uh z+uy6p|H(_{{wo(uI12vAyTLm*gud7o(~@H*y~NMGzrShQlvVua13|K$R~ydD8C+_K zi7obDu^f&7b{W6LN5}7riSSdU;W2v=*)T*4!d#UP<&W7_AhtTdQH&N=zE-EP63U=x zsWrRXoT_hr@8+558m|T#Lu&$mN9$ zk4LA#CMTh?Ar*HFP!k!+1S-ZgBqn(b~Od z9wA4Xv%{9jcFh37=h;VprjkJ;(TA3>&cmZ0id^n`3>IUi>$xZFN3tWfl89#>(t zoQ|%CRg;aZXRs}6IiYD{k~B{Yt*HIS0yon?JY<%5qTW_~Es~*VH21~It)6ono1x-J z$#oft#TVwMm3Z(ZOL~?MXCTs+(dw1AnVA8MGBN{+AByCUZu9k@^Sus;{LtYnKi3}k zXYrq(-W+-#JZxhILm0y7CgZ(Y_3)=vJP&62Jk_}zyqW!MiI7G3!o>*J@zL#Z$RJ@JdqERO7@kG-r zX&~#m%t%CP^*8I0qavg#{+Tpr?^y9e4sD1Bk2UWrWc7D^lk!GdYxa9-xc4CGY4E%H zg02b0020W3E`QOeR*ki{8t439q{$RGxf>XjBZ|Eacn_7Ui3gaqz+si^^Cw~+@%XVIPfzCpov->hW?T4=A$Z(k_Gn5mzmE?) z-4iPT?IgaftUIxy@7$11is(h0a85h6?`kTi>}kwlEs!QqHyb|9JiYOly-(#WN)ajY zXC9||r?Cn+D_lge>xxx)md59d!F6H(Yc+4X=w@Ixf&;%BcDf0I>`9a zF*2y(C^5E?<&#l3^yRYq2?YCes%36)I-JY-P&{q5{I0iL{;gt;G#D=|J{QInVH&Mz z^ajoXx=#WHJ`>lG}!4N9zS0jR?vL3HK*E2jiTPPa_vCpas%F&l1`LyUD>6yvFp z_qBgz6>Ht&N}b!#dFYwjtsI=*xM+`%pu61uU6S1i-+mXov`FNXbf9yl6GRGpGk6ts zs^F-~s@pTN+hnD{Ey$x{v&!f<7FMF4FV~BQ^ePcspFb_tRN6v0{ff%mT#b!8i>rxX zT7u(4XuSm!EEl|pEJ<`Tg)N)-}?EcxOyxP z3e)hnMxdIV8G2)ac*M){fr9<&cP~)n7L&Bc_ibmtUEoW%k|edtf(nWjE~BDc2kk9u zu>m>ncR9NvXt1%WYEDXBbfy1{m~FJ$(Y*s`aPHw#zQ@u3c&(w=rVxjR6Josg;IJ!v z`qjP3)zm!GdsQ|MZ1m{Xf68f`8M!*GxjwOxK1&Mxn)n;lt0r>Pg7oYWDlLpg29hX^`aVf-!wGw zL7M7bvDvW_Hg;-(i`RlKG@6X=CN<(dR<6=!98rDPh@*T$`-4*5zm)1ovN3t_mp|}b z!)3r#6Dv{32~eM7wk~^hK4ym`-=q}zmvnDk-Mec=O7PaMcI{q1vdof{DEwIK*UQnM z+x^>>#^?M3|0x%G*;P^QNq1#W>RxB~pd$?pARwVn*jH?Bb+@hORhA6ZcC)=thp%*3 z+LQCS9!9%u#J9N&8>BIA8N#1kb){mCDKp6C7E*s|bDgjZ{?h)^J$Ks0@k~dKV%AMV zqKku?#%ya)g4OOJatkdyw01AOnj`;Eb5d2uO`8zgPKp_9EhV4Mveq;C6;C>Vjkn-m zLOL=z`>k&%E7#_fmib=~AzBHmD?%$qJn0rgA$43m>C;C-Enu3aB(QViVku1UWs*)yo<3xM8{a{ZRk@tPzV3LyWp)Xs!d*2=}X~x+G}c zRmRn<9r(}!Yj{Gbml@z*LO%7@t_->f%x=!qL#_kTq$|WFr1n1=Za8zFzHR=`8bc)F z#9{e%sN=?4@L4lotbt z1*zFkhw<8egH_(0(k%lVLYds-#nv$}7-+HR=^(`#@M*s*hb{#v+SBXbQQn@^&43^8 zrxb5hsuM05=wjCGEGOKJj=J3mvB!}xR2#0pGJN{=+CA>r*JTghM-sEh)+Vrs?UM*3 zP6t0BD}zi^o&(QA9M0wuQ1*eB%F0(L#hKTp;#C$@DQo3>$-=2! zW8D7C;-)CB|I1CD_Y!-~xx*$1zH#RfIE1AkzyouMeLo0*kA&3M`jq((?& z`8G{dHE}8FZ2q2ZeUm!)#W>Vk+W6H{N$(J>m#y_=ei9Upq>lDViS1`=FG!|7Dim z(&ygr0W%+9JECw~<~20|AMIq!RY?_#Cam1@Qg^p(Qm=EAdiF|%f)QYD8zf&R5~zV0 z!5;%2>PC|#`V#caP)s}pz!b^owwBhOWoteB4<4yP0%m@fMMBDNg1)r^GeJS9VHS}Q z;LRyq8lLJ+{STKC0r~S@ucY=Z^EgpWl0)H_dVGhho`~YA*%}Y4A5YgEdfXQxt%Y9k z?!53AS$HG))pwxW6q&a&-U9xwpfalcjnUe;nX{BpX%5k3+8_W4)O`_-K^*buq>LY` zXcZegV_oUVbOUH+oX$I9x|cEh)LG;#Tn#X@@TH!t?h%OuwqG%9bWF|MtIL0HiR;>>^zY`+JI}erL8n8y%An zbdy0t7-TV(E0KK4`s>S2mE0uU>1BJW3N)7;l0TeoWU?FhpuRi0nF9^4 zX*`CXBsL3h3IC*Wh-Usj+C?+zQ}wW;&)|Rv?aZO#eRsZeFphP_6_4J$3P}rIm?B<; zg!ho7kg2d1Hu_Vu#x5fC^u2M&F@El4*Ms6#ZE01<%rmu%9!ZcntNRCJp(~3<)ZSzF z0|}nwozdG^!k8avJ#McxN96(QbtkGt>Qx6S6>{C?n7c;KQtY8RR8%=9>h*!R3d$D0 zGL2pT(P?ZnhOR1_i*|UDFFUBVY&i>(N)WV{amp3TY#r_TP7BJP{E-^)Y)7^)ahO`+ zKh4(5FHU%xg29n(1<&seweL0cVtgVxfl`u#Btg7`co-b zf?Kxo2piA>p3HXk^&Vb-^`wC$z<;3}p?YH~>ckeT+y9BLp{Q)UtCH3^0L%jGEVgGn zH0W5(!mN|>nRD7ZTPa6}H0lWjt*&%kPefx5*%x`1_?Q35cD|R!R%Cy&Edi=5HU(D1 zS~elZ4YGHSKdsMBmQ~0x8QMKVEUu;!aR0sD85j11p2MTc- zCSA8zYa;cpg~BR$6YQ}PHxgCpa`WWfN{u=eQ_Z07v`+Fxyz2G=RS&hJ=alIB-MiE> z$*J@hySLQ7BK6iFe`7Lj(LZ?qRlEQRXiC!CCmxwyv5ve+P!&L0+L=O(y_KqX%;#f| zYVhm39yHR|;6pVA&%4+&5x=zJ|w1jKm*Vl)wQ}E{UT@z#>Jl$v2{mUwf zAbnAO(`E(zuQ2$zM|`sa!oRBA=wDMFXijBnU9&>IT0|0OfCCggr+-5IGx6I8S#c1Y z1u6v6&C5cl)UizOA+Ji_G9(>Y(CwyN@@!*#i4%7>)Ew$>h%^w}^{kICdebxZzDE?0 z8fVEcN`6^-a}abBXaIqnj|7~}F5R`%aDbh_^WuHNuJ8f~d8&N^nGajEJJF@zCW@0vMzS%shFg1i`u?7h=c%u!|o6l7Lz&uJS8g{C$v znw3^_xmQ@p10+(k zF9$C+0q}EVz(N-oKO!wD>y6FCj6M~(2?c8sUV8ik&@EAk_&neY3bK|lcXBRmz3M(n zO9n}`(6Brbm!F4d017(EVu-Qo!~pm#d8+~~|6`5OVI_bn2S~x4UTzN{&H|uo-Xc{1 zgkbOqR~)j{JRC`CooHG{{?KnZ#fcLH{aq4hx4DY*YmQk_d|3O4k!5Z?`%d3BNh@P9 za>o8>JgSLzrYpPA8m@q6Yeq%jNV(X(?AWKAeNuI3e0{d&)Cr5ssnlKU)w<>)U0=L> z5RbNHZ+MH0wHH>6!^N*F_y^16MnOu&H7tNOi`2U>OKZah;6g*b(=UtTuT`}}TY7=a zO~TXnkAZ1ai>nF=dr6zd&_XilDR+f+?tQ+Xhw=b~cp87Ju^njrl;r!UpC0Q^y(ZJd zb@_ibl4HEZie=HqK}+vw*~Nv?GK z-qAUrv)VA)z&~pJ`-0^mPCXHEgYJq?YSZhB_(iLUl`?ZIFZDn}|BOa;_ja4TkL@LA z^>69Cmru;2eqYkCO;o|gc%>iOL%+fpKPVA3`KFI8EJp14X2UJfWQ4>UunxJ9*PTV2 z;K_JToUq%PtCZH@r={m!yR~0is%*rdHx(p_=Bm^60ncd^!g@-hdgmq5$kr<;!?_rT z!fSbkCMWpQ1e^N&Hp!#qJ?6CjF_gDEIevReO`7y|htnJ{?o^6`KjJwINa6cGqQz?( z0&E$QZOXHz1^(q(%)&<`2$SumH&R$v&bK}Y_W`%-#(x|hJs z{KefFVh{)L)o98bJn}5zBv+GV=9#Qyi^UJLevn8*DFLk=tVorUVV5EiR+*pJ;GER^ z>)lIK+G_Vc5e2>Y+s$a0LJ3?P0B*+U!MMJwb&%;5?6b%CQ?mED>tB?zr|{`EtBSB zSY-tHFA1X}orom@(lTe1vf?*Yu|MMCd&)gIGV2@2T1g)YFsX~N(V6U}>dG0ltYfHO?USz0;~{Y!>&hDL>wKYEz<}A9LqR-FDzjy>N^>63$uIoSFe{}RFO<*|MKiF|UOe|7D|3Gb zuY6$yOz!_eJVg@*pT-MQ$A)vK2CdY`|2OjDztGJ8FYn?Hxw#EJ&QCzh`{J?H>d$LFZIrsI*{*!6S-AkeL3NMYlXr0eF}0HAC;z4+^U6Rgl8U9 zCHV;=YhKB^G%M0RPV4a{B8b`(lc-?f8-@f|L>1S&Sbxl9v^P}UN?*g@vkVvpE80}| zsq73$pwA<44)w7aaeLW;umne(Ls5cCV!}nweMkNg)K=!p9EZw(|12cCuB^{_K%H#W zyz-ghKRvU8+qLx$$81(q9r$3j`Diik5nq!wE2rxHrwvU5fh6OKZnsI(|83kG#bqrd z4YoRSp+INl&LZbjV|sYmswm50S?2}gXdAEVLr zF0U6Z3^V$i78$Scv700pug9bE-=K$`9@Cc*{XrWBe|wNB1{3{ctR_=;*OOyGG6pka zFg63x!Vu3!d^^WRldNXg?N;DfhC!eU3YQQY9I{MVSCYLLqAr)-KbEK-wr%f&vGOhUYGoAx5apRb3dqKX})ZMN_VA* z>&fCpsJ7RlX7bf8Hvs#OD$9P?`!ol*=yWl3`5)jAZ!ZVGb(JiwBFw^)bLY+>4|rb4 z3~@hUaXY=#Cxu!93-uS`_muVAwJ;8~wYG*8d3MXb!2wk7&0!mLrDEZGvWecKrZa`3 zKFmCHQ56hImC^o5@j4W~DJC!o3MwJ+@j^D9x{;uqcy!8)dur6cReo%h)vyiho;NqP zz}jp2frZnWQ}KP$2SV>Cm!ECTJ0ATB<}e@6v$uBhVqLKy;Poo z8^*|xXJz~io@%%E?@+DOyYFc^R=oEnv^s-St7Cp@0sRK4^`(uSwu99hkWznKDHFce}8!CT6T1!9A)(K9)Bb&Yj#cQ&?n`6ym+ zOMp!n0iA1iN|*aD95LgAEN*e{QmlY{9Cg<%hjuPv*AkCWq7D)5@WJ-$EV)b3Lf*VBX6PiCRg48 zAGC?ciP(5=UjZTZI4X<)K>sWI8Zj^Nz3%y-y zL5o7>$c|XxzpU(c=JtZl$9ie1*lc{0akmk5T~qd6=64S%xodJh-N5bg7$?uYh%gD< z-CWu|Yg=ki@#*1b_s3ig{ciWzO6j_6gRdZFb}Lmb7hCi=T95ZRbUpmc(Qw^%T5FBBB7P}f@r-Jls&Bd>QC8H9F?fKrQbnQ6{szR^#GyY;4&H=wCW4P z#O72x z`N2=I87SSsbi|dD{&0HA?npWsy3*CQd)pF#db$*2_+-z}d1-UqB5omQ^Kx_|%fhk_ zn#PZv=vwjLN^r+i7`^RxK)Q*5A<0Augkr~+3?<=~F#5oCH!jfo&5GmB&pO%j?kWjY4aN__P27BOD_hMLglq1bm&*1uo`c;jJUPvW zvt6s#>%-U#+T)q1)q2P!Y_ckI_F$!Fe1uR4g|8t>hA5`W&YV*{$=VLI@3+QKV|E$N z7uz+cIYE9bWahSW-xkJ1uLoAVm&H3+@*)=@@BL#pYAq^b-_=GEO&!$d&hZp78F$DU zj@@;>-R(I~dWrt_bgTsNsEk2krIM64tL>0jELz1wm$JHx$g*lj(Ekpep2F+jx|mhm zIuwdd_}ojLtMC*35pig=Qh86_wWM}=4ISewzMdGzWpgjUlf-1Y1F){;+-){`?4+ZN zqwVY|`I-kowijD#3oX5WkYgD0yCITHVw=y_Vej=+WIUld;kF(g6TS6;ZP~NGzHFRl z|I7^d?#biUF(kEcRD^nT3SX?gX3kcl*lxQs2$1Yq(bO+8QeCz^aLRaC(+6 z9N!BpdlV7Hb`PvOBL@6mY=p`QEUWA7Ei`s07^$wI_wzeDi{e&z3cNSBwLMV&1BJ0R zbf|BJT3YeK&$w+q>XJ;&a$!0Sd+3Bc+S9M|IxLp|3(A#*c1MU-AMwOZM6 zGg5-RzsJqP6UVZB_em?aE0d-u`14NIy!@#B_cwHmT{d{fE*y96;C-s&KIt}81@;;FhH?tloCibqnX@Yqrbow1@5waajStMN<3xL=f zqvy|4RsEr@1h4hH<`0e-?mQQ~gN{>RpuMu5H4m?*81e0b9C52Su3cp1!9mg;^PE@4 zJIn!OaBi%5AD%sr$`sW(0f8?9w)QRF=vFs+MK9!^tQ8ua3vQ0MAGYp&Gg)mbt>$Y= zyj400KTx^8fipQ2U=)x8qsI({G+oHNFd%c~aIG{-qmpvI7GkkfAbwoyeL&gyiA;+l zF}20&uw1hRt9skbL_j`gN9$_uhfF<>pL;>WZOK?i3FRH9H=+=>Yqo2 z{}_d=UUHET%)Jh-Yz9J5sC#E(q%BpZ>pvUVD5MBh6_C5O3we9eerlHciY`~hiE(Lm zRr9z~x(}^;^>XjYd?YxbFI?p&B)W0*H5Bk%5ly#1VmL^A6~6auAC1VXDjL3Vd*VWv z)~u1#b<{HceSjubRv}U?UJXs>8T1t$j4|Bq2CK!&6g}ZnP;H7BMJlVT`1n0DEK<@{1ve|2m zg56OLTi5DLi$c_-@qSr$@?m-IQenTX@$ds;M;}PNcAs}C5fu8oO~6lYy?_9QAsc;& zO;%T+^kJvwbB7H^q!{!cw2l=nR#^Q`@K&v6J+J8uQC;S*^gCfcAaB_+6OIE_oEuS@ zc{Y;^leo7o+SGhLNKg?u#b2@t`t7g*h1sx4_g_}Ni76Wy(PyG{pC!}p3|J*0T(W<^ zIl{)^B?Py?pni7vq0V5&hV%U9Q6CF>lPjs{Ktg(0_(3`k_G)3p(Spg5H_#Hid{@%i z>9v8+)7sLq3BI^%j5{zeFhUq{`}Ljq8nH1n&V$-qXN`022FEbV%~jc3o8c} zOv;P-1zw-C{IXAGRJSq@R|WlKv>V!NR(uA1ny*E3QF1{S!v-e%aE-L_ zHJ*|>Q~J8sZKEiJ?VbbN+z zCNP2W)wh~mUwLg-yB`^?B%u>yiD)eND8yyY=oX|*>3C*ZC>8XDE_^OZ2+AsN&)740 z53X7|9J7d}`)R!gZ0XX_XgU$T<6skU$GCV1o3)s*y^88^>IjpgXk%;dz>3QC_^YWd z*WoCv+xOkRqnXZ;3^Dg*FNkLnA|=$Cqx4MZCvVQ3`S8`+HCh~O{~?-UN?>LWQt5I! z|4}-|ePUhi>&Mk1?2bf55jg}A#FX1Z|x*i?&TSat^bxByy&iw9C_&cVo zJe{CcGH7<2>BP53Ns3FW6Jq&w-NH_Von?ClmvK2poc0B=St=rE{F%f1XqB#wpZ0VI zsHxZzn+f-oy8K3nRa24QMnwv#C-9@gSFv2nRnV_mYV;vmbPqb^*V^U2P%sR&GZZX8 zP`O3e#HG=<*;x_ZW!L`jj9melGurnni5_S$~v?N?AAe zaM3eyo5O2&!~4cF2}@0a$2=f($+c0XATBBUKEl4tFf4ZH_0~M=M}b;PU-VQDyu~Du z*upsJZTCj)paG+ZL+|F?)b8AeM6H1d8SiuV8?6LSK_bX|_nw7JrWC6UdRCMVLknsk z!W|b*5T&Olp`C5etnBNW*WZ7V=?4XNO7)!EhCDxgd?uvz2IrZev@o?>Nw&YUlcVT0 zk4a9$oMvjJH*e6@%uE3I7=&4~6%DYzt+yPJ1yDdozU94v+KdilzGAibT@;7tF$X(M zS?b4buX3~4mZ{bS9$@}1i4dUYS9#omnLWzKV6|jV?x`7nb3r_@=6T`n)PTOyP-a(=V`L`Z9JwVz!Dqq~FgoM6b6SVP}B<6B;78;FLWj=vL`Tlh-7 zjjsB+$WrX^hus+~kM_66Zm*gI+`+t|dlKhx;9Vzry|r+mAmk;s)6g{9zTPzDH{chu z^QLT|FusCN4q2X|Z2)7(cxd}gScx~EW$TGbI@{WBiRumg+0aW>6pOfi&!=Jr;zK5-R7v@at;6Dl1y(dKsEL z(Ux&~xtX(k=8s;}2M1WfvYCQ5PQ$ckiI=$m_K;_&j2dFkpYXLuf*5r|^RAQ;~sR(!b`v-P8mEc zd>VS%d5kG(tC0E(Uk*I%@q!}}!=vD!iG3Tg5z2``mz^;P!R;~+p?G8Bs!#15!V_q$ zckn9(A!36>T0e*I4iK)~)WrGkPh(l43Js{wvmf4a9rVFF%mZ~5qhm!^-P3ik@T`Ej zv7j5I@Gd%BPj7fnbk*ycDK5RC$Loxli*l(k07g-=|BhptQT!5%tp_!Wh-tTcq8nwO zR$&TQ|6vPTejUWnr7m+Z+6m@`Rj*ym7OArD6Qe)1Hx(6d&&(GDsL@S3a1Lt+$M@Hy zz7yBypaSa|)Ha=E8{1a_lT|52_qw5FwzzNjMyC6I#>x%9MnqL-XXCJdDJ<}IfH zAd-s9djD~jg|5a_q?MvhXRE`)w-nedrp$LtB?AK`?(<`l0o-#1c$ltYb@xx?{ z-J)X1{5|`y-h+i|q4%cCLIw9#q@q2%R^IWH9BLlBs%VzzyY=bgviAV7Q@#{t)>f%p z`GCDpCc`(grPq+>87Du*`cTQN9$9cc4!%Q(HgDYVKy2gU8;W!MP1HOA|VF zkDu_CiGNx<=nr3jVooQViOh(nt*H_75r+m65T<|7xSDa8k7qr|YHxy^J-kKDq?lm) zS*mWQNFef;C#p1@LQ6mMJhuW=QuQ%%o8#EM>P~cluua7e$QK=zy#-_^28+xdR{6a7 zl}QEeK;op1(F{%RkeNWDTOtHCcv0)_ALR%=I!U=T|=npi}7zjR3bOi?O1mM=i*7g=E zb0I_N?$#F(h&Ta(&=5k^PMrAv^#Y7emxRe?8}~BXVY@WyV@~4O^`Wcmizwi4(}6t` z-}Mt`lM})uUJZWd`+x4o_i*cLIa9RVx#G;uN`q`}(U`Sns4liFaPl1>y0L8 zM7iuA`^6p|3}kUNMw5%THa5%(V@HLHIVP3{L=FrD4zj^jKDpOqE6x5%6Wh3Bo^2-W zn4z^5Z6mDfZXb*F+IcXYNfOP$_cBbZ^Mw080<>1uzn_Hl9IfgPyzNi~;3LraYSUhh z4j@4eGWoy}2ZB&$@TY;6B~B!b{70=W#!#ciB%TFsd4Wd^o_Q+s_CCq=?M05z;su!u z?3i$l(ZAY3+uPuDw9(XI$8l4WC4a)6c?A)0+7j51e28XHlg+H;;(dQDo3<4Fh42GZ zi#|sW$hh;pPpb9Jmz;}0pv!P>&t)K>Sav>g@1z0qu=Cj_XB>A4b?kX`erVA`q>Bca zo*_bptC-cxg7ce*;d8H_uINu3Z+V`dl4(}fZ@#0gSg^u|LoMxR{{>im3R^g4& zsvI|3-kko*DfYG)KS7X)R+f9%KaBWedI-5IX?$4fQYLl%MM(DV=Ny!q1Mc)MO|7|e zb7XdSsH@z`fgA`5L+f<4SbO7vvFUjAJ6rbzSGUQy(7(a&)-9l$kGN?w{I6dRac9Xn zhr&O#m)k z%k3_OIgRC7Kwp!3bwzy#k}l|W`2EFPh(Z6p+rakzk~l63yEVeo3c)2?Ive#px;B8# zHh#|XA9va^7y!4XpQ&`AL;I88UT~OSK;>w2-ZlB4k~8SQxA?qhI|$Pm6brLh7+vaD zq2x_WbZwO$_dMhcN}C-y&;ed19wR;GlwAk+m%N{d|I_dH@>u=n$8D&WE%TfAJC6+d zP+sE%3r#`RYqxEFyJ$hDI-9ORJSH8da;-X^EN zzKQ)bZc+2`@YOO{!fASu)jQw*{0BsrR=d(u95g&~hpH9#89cpEHhA0QbF!O}eb7i~ z4|l&1NvM?Ya1ip6J}`N`(+6nHI*{o&q~}9Aulnj%AKkU0WYc&t2OTm|f|RW>I$bFZ zQ@Bz~>76=YEbm2KVzRlyefM35tpy{fkV?vBiIdakXht zX|S2Vp5FQ%MnR%DK}bj0raeb}*~9j@%cRn@rkjmyopNNb-MMkpFm1 zjZ$KtCN?_v120{)yPW3igeWE9T5AyvxDU{#+(dD4@y)vAga1wjp*Yi3i!*1~IC; zesVuOHW3Qia`gU`EGJ-Kj+$JEfNt!qli3KL$V#Wu&Y1rrc;oN|4yH2yqc;{V-gW@ffOsw=VE}Za{mGx@caqD`OB8O(x5P69{vT6k;nrl> zw|^A{6$DXf5D^8XN7q0_1SO^*-7PVC^guwm6eI==q`NyO(l8i}!~p5s=mBHn-SfW3 z^E-b3z_#Pwb>H`Op6B;EKT;4WrI^Z85f%DmP2~3-i{Jj+H?li(5(=JcBqQBs_Wg1^ zq`&m;G7(Ghc02NREbZJ?m?bd}nc4^2GGTAfL62Yz0Gw>}*Qrz{OT7$Tc7 zq+bzVG`~qYCB8hg>2tBbKtDrDz$M)i`qL~QwuQu@<)L@H=^|SSu2wSiW*mDQ8WbtK zwR94^L7)<7gR)Gh{_aldTp|>D+pPd7(g51_NuyKQ;2Ws_QbF{Uzi2yTo}wnQi_ixh z%Xb^0<_RgfLQE}$9zjj@m5Bogj0B9#eZi%hxYa6KacEKfv z{8x7(@EJRS-U^>HPLbZ$>fi>p6>g7u7hyFj7i>@fYKT69yKSo$hiN#!UB$d6t4RAi zczlf0lR^sn9LeWs%PwV?z+a!*+8L|qvEZ^{#N#seep$jtUn!a$oxd>&epo;A%%C{^ zr0-!3-d?8C`VdN*p~1l%AwN=xzo&i}{Ge2%#~f?^v#S z3i{YB%!qrE@=4BqSx=8H&us@=FsFtni;O5~Of#xlwNf=%b>p!|HMJ8FKP^ z{1$19zT9I9x^NyyV|a*%$H}>j{IY)JG?^Gx6qa!~UP6uUgRw-<^m!CtgI3?z6B6lO zk@YqU{V06eq)7{b(d-zWeD#B0=d#JUW0qOIsQ8l<;Sl=b0v4LzXmjR(-5cV7;eWBLXB%N(kcb1QUy2z*gQGj@vsziRSMK(Uz#BG3TnjJ zp^Sg@=&4v7QY3iaS?7Si?aY~7n1rfp?t6p&_qGeSx9WoDSJ8PZCwDUM+CajcT|6Vd zYM!)=6snV=J%23%`F&W99ewhEbr*?p_MtL8vxS6KV+5&m6<<$~=H4C8I!UV1q(=I` zZo+jVeK`+Z}K;J%V#Fbck55NarK8{KZStIGw!OEmi5wWFo=+zn9mwLe;Js+ zo`IG^-u~a+Pr8f;046p$EgvR{T%*<5eEcT(o z#c1i=8z&H>c3DBQkJDOCO~Aw?$H_Lt~xq|DwtM{qrMS#MH0_89WPzzW!*uCui^`6$EMT96~ird~V1Gy~k|%rWV7-gdOt zi)m0(+BM}({y3CpF#FEa+A7O_*iFTE&)YW%4^=TvoeqIltGvnlF6yby=aV(t*4m<>X28wrye&Z^S?7zXEy#coHy_3UPcDz8jGzPYfO6Gj!2Z)<^}yuni7AiSTp)oBx(oQEBlAU0(>fIL7Vu^H)U;;l(fe(x+VN52|ld6 zC$o5V?k2I|BO{u<=e2q;_t02wNDYgS1S{B+t358MV*Etcjm zB3i4+k}=>F@Ml`!f{;9{TjvK;x-^zc$>rxl#$E$*OQc_!+$$>(aT%kU zh+5xy@n?CA>;GW^V+vkQM7`@&6A}!_d>JCh+XiEn0!n4DBm%-B)B47dUDd|S;=lq3pbvBe*5B+m14EY@xu`) z^~X$(Ta&&fZ^b|4`Qc@m4Cks*1F3Q@E@WkSIc0Q; z`c?&#i(kl1OMBv1l6`PT(}evExJ`Ps$!RxiD)xX>(07hanPo!y?8ol-dn%lGCYKJp zlvi31G>Nmr{9OSS1ROU;>@`u$%}VQ{dgf-W^foaVO05E7hCpJIdB(?a110))((GxX zv>q^ms270mrx8Ejg@swm--?ooGcoY0pJ_l5?y)LPs4CO1 zs!;9F?-|n4UOcZ3`X>EQo?20c8`D0Ia^j#sD+&fhl>)X;RA}q1U@?|YXFSqdW&m^w zth8X1xlap{-Mmrzv_QtAg-!iz`CLJq5mWZ00zWHcr-^5~)R;X0}~8$?tJpiR#Yn$9Bs3U8pf+aN6-zIr-PDr+uX@ zxR{M-*Nm@;sC0Z+uH*e;@JFano2i@;UIV1|WbS9U-7`bPyYoPZX1BeAl&ADpi%3)m zxu31b>h@24Gf0YN{(nQ^%kQ)A-bort|1tX^Lc;o$f{&o5bXVn?CUYK2nXR|dr^X@{ zW}hnJhc!K!kNOtZtpm6fS5rvSxb3%X>a?s%(H0Z$%KY1CUQd_sga$oAZ~WH_n32h{ zfG9>dD7m`@p}O{6@&cb_bC&oTQ66v z^S)c0NyOg1c<#sUcuDXxdhR<)I8c37XHc1lv#*Mhjqs`L)wGj8<{zBKdnZDZ+oKlZ zFk6&FCtW|Yk&D`MI}1iMFDZE!ZuNXBVdR zM|s43x3I~EFa331OkL2cF(4kktFvydM^)p zY1|97t0)RHaybZ@mR;mDxqMN)rp?`X@6nQgL$oD2hxkpW*CVN6Fgyo_h>+ zO1rpGY-tQ2%ZDFuveHL%r!!8$QUPy#pQzYavkBF|A8G2Wn=O>g4Ssi@O`U2>F?+KQcEgL3 z>M}BmL}ny)f7g(>3XaY{6Rssj^0#D!Z7AlCwl#X}>Q=h4=JlDQJSm-+{%6Y#W5LeuHv6eoY>` z=btDEYQ%^pvTUo9I)X|G^gLxv07g>`oX2ebT_B!_<3On;7nE9xav&Ll88vB*Of?>r5g z<=%znZ2GU-3pWQKX;qjumZ0p?Xx=xe2@{>%cXQxW=UMMXZeC$^(>HaJV6T1z|YTP@8ff^ z>o@94Pi$#uxd_SHmeKcJmpfS<2d0-M{2rPh$9_=K{&gPWxw$(1&oo_!6RC3Uf=`If-?(arnzX$XtIE>FOWJ%xK z3IhVG`9Awt6iU}ovy8r37SVzb>r6`v*{dZ5K>I)Z}!-_3tzY+!!p*;u8=h)Fq$g_8jJOB}j^ zx!mVy(pwZ$QA zi^tQpI`vu4ZF+EVML1#Ng6a4od}wk?+#~8o84;|n$A@MY}3i+F3Sxg%4Clg?9gd{ZuwN`gOt(4PgguIfxf5`RpfPH zjIp%lvW3sX7QT!kbm0_L;gO!KucvRmb7_PLfw%g={oOzYE z++yl7jeapg<@#rT6TDKt`2`>iV^%YGryYQAn)P8A(i`h-E0O;=Nd`1J>Ox#B09?jW zW~(1?a_hvx;&`VE5H=XMxOrll%JBK|t?6N;=y(ra`c;IgwT zkzwMqluu#2Ws_aK1s)Oix!lxtwfeR&U1R#%qnvG}{_!Z^f>n1?Jqe)}UBcrr-}cs| zFk&)uBc5Hk9zY^+CiohYbOdmkc=<;VdLC)3M~t4|+c#1Yn-=&wYYeC!?X@zFY)U@S zq}?od-pxd>5G&|!9YH0`XYe09RF$*r>vsZ!t*1g7Glh&x>d4~jB;d>Aq`RLX!i;9t zF4pnhM!OM0q*FBCoBvt;C6&i^-xkU7o8K4)vjF0auZUuo-Q8`JNu!hOqqxaRodNOg3h z{p4_ha9m}03w(e0H1^(>qCsOiuI!&zTie2+KGu$uPub1tkc-hsZyyWhL_|DI-BAW& zM7v&3N4{Z={+MoM;zDZ0`~RSwnRkF>Vks=m{(_zjSv8*>x0hVjjYEej86h=dvZ=%4 z9$Bx~NjQm!BUN)os%7rDa3*#9X|Dx#7t8q0$SZ z@*^$pO;QXWi}I*mg6SElI+1A@Te^tPlOZ{U+%+_U<}AxB4m%7yT$inXx^4em|Gigp z(oo(szJB^eX|lv0o|~7~r06SrxZqBo5l4ANF|fTG@~6M#&)^44Dna!W7s}J%x_F15 z)slrtrXJR;DQ=5}8N*30rKOb`wrD)$bvA2voNX3vto$-U?@3#h3Lo!k1h?{74E_bapYpm= z^Q<}HPXQQRl7S!6$atYk;jzypZ|& z3^$4}?QuJN!{*+n4PFi%1V_4w8y_Q^am~Kf0f!ZJ7JfFoOfe~>(#~@xm(#c+%qEM) zV{_l#tANvmo3F}?2d?BBaP9>%_BLDJ_-^+7NxEHqr#k$A`vF~;%ls`i7=p6qTI>?a zC5=`|>7A1MepoDCI(Rue`w354_^aE#e;&lY5+8%-j{E9Brq6XI(ZlG4mWpEOXQ?vC zg9InE54IhTk;2X6jd_H9ba$;8zYp^Tj+!Bdqb-f(LO*+m$UEhy^u6O^wtX$qNY%x0 z?e{~O->8(n2>SQb@yL{cq+7wft_Vr;p=eRP>dIUxfZrj@qLkY|^Re+fbS8gG6iDIj zHJ@i>Ot7aHMSR-saTkwVEkca&?=t77@I`PS ze?1M3BV)4V%jvwsWZN%ZS1(`)8Bh`QqTDO_CriCbO<1c?cwSGnR_WBmCUTUTBX$V=OdiHNq#nH6ug>&ULNifX;js2eMu$<=4ZW&R#)Q9yle1EGY<==2 z0vyrEDu3YV)`uZ}Nr!bmfwcN6w>2i-Gv+VT!8lnlhxKGXhrr4<7K~p|#Y%Im{7!fg zvaGYWd~hI!A;Y_)UxeitL)CCk1muObKa0D+mO&)2XNm-vF}rg#uUBP+VSIwH*M_85 z{?t&X<<|Ipsxia7WXM2kmH+TvKBZ__{ZV=oxf10U^dmj^$K53Lqxg?(pYk(~Lv`3i z-fsY(f>PbP?5EQE8dOfp5gP|k(EuL8t>Q!O7_eqq>PTNzG}}1URKl(85{iEt?g8Vq z=VkU-uSmfXh75d<=DL_PM4v_;TUM}7$!v(53-erqq{8PKpe*e2@ZQWehvI~V27c-D zKgp1I-|OpdzPba*%A%aL?i?wMaP#NIv$HaDa*JcjMoYhA{B%@JuB+^P&0%P{D5WIj z!6TWjbGpZ=M|sopP;Am~#5L=mSsRWB->9>&6_b$#x^>{7(;@3xE^k$T>HoAFY}8cUcXF4-1*5aeMLs33L@+SUQG)H465#4t}SzzX&l=iE-mu;Ofk4 zna|XT->Pj2g{<3!>z8+R+Ky(i#DGOYx4qmMs+TnVy(hA|$6}j7Xf#p-6Z#?#SJcv-a5!|P5(c2E~^z=Vl!Cvl{B(pA( zzn6)Z%7wBj_WzoqSyO2$+dM-eZG#a!wT9q ziUYh>ij>sBW7p%AHq6Iu+K*#4*p1}yOBOV8z$e-A@Ss;y$psv6C2PuG_H;Q;dCQf0 z6df-$LG7ExSJ>5%ivq`AkcF4n)zGb*E8{t#Rh&n#VZidEsJYu{pa8;vR7ELaCMQr zA#KZ8J8X0wii4i+T)B=Gzc+tp3tT?YF+P~yV3(=T>c0N5D*L3*jdvWqzP+Mmp6LFL9Qa;LnYWw075yv@^~ZG6U6Es&MZW>8%zbb@TmZ<> z*X6MJ3q}intw_a{Gi16yxNw@$d_g{YgeF_*JVdiYEJmO-;Ttj8oLbs<3h_#3eHnrC z7iDBEcqR0bJOtA!0bOsNOg5gBZDI=oef><&Gcy&TczdUc>7@vx>eO`Jsi+ZL55n38 zok~x*I)pnlt=nUH%lhSA=1Ytvz!)>fE2>pzcPi>ch3A?t9f`+OQaN{20>F9pcRG?*aT4+A(HDM&dSN{ zf)_~B=n;z`)(PlgwNoHt5FwbXl&yi^VUg0o zt%=hx?4sN=$j;W?f%#f2OkTEiCwhz%XWI*}v+E&iND3fzMH#E!NdAD;+&NO>&-6US z%e#%8)1VuwxJ~?y5vyGZ^aBO^b58hePwZk|wR0`0UX}0;7b-~uBrKW`PFqWe7r8}w z0fodecEoAo4!hTv-j6QblTDXhT1Ms(l8r>X$;D`ATlA0Cj@iXKs}FN;{dyB-SrcNq zdDzml2XaWOHa~E2B6cA%@n^GP_4mkBQyUJy(bZUvPeHNv@=$B#XzQgFxy3eO1h}%W zQ5o*B?JGZ1e|T`X*v>P_G*84EIQsgT7*8heQP6fU_3u9;>%XjJA9G?6gIyVn;6~!g z@tFCN1?>yl1-$~3L%}?Qrgq=^sk6=6>9wtzh99wn#YSQ;h~|#Xn}52%9e)UF>fvx2 z&6?P`JUircmb?Dm+OMjkO-=12;`x3@K>$v9XQp5{fr0ZWGgG_Ildn`xuY`SzMbcQf zJK* znZD8@lPBHHYo};3x89ohL{K@3pWkPQLe6(AHH>(s>e+7}>$TNCYwu6EYWECi*kueD z<^Ao43pT;y*oQ6(5Yp9Wg!+}m3qcbf!qf>!w$6y?wi%(9a!{pfuFwLJJ*VX14_SUXGJQ1yjuz8Oidi#BLAnbv#vsnw*-XL+Zbsj2? z-Y(M>dnpajvz$Tp1?gw`?U%7(ju(4mXm8eeueq`vl#h;WvduyX@!&{F-W6rhP5r{r zw|-b=yD?{jp@O4fuRmirZ@#xIF<_Bwv5CkKC4ZK>9BVoLr-pc1W7F1x-{Q`kxkcJ= zKJEy}vzxZq`IoYGN%wROdwKgDQ)kk)u2ds8K>DDbJtvwCt-Cu&CT+$Fpzd)f%k^? z?}^Bru}IUA8Zl_(n-#LRo4-68-yr>>wcDRsFieh?^wz+1?yyA&FexXI8?!|WZ`{sP z2y#@Ul9;Ai&o@`Lwo;x9`J<%AqY{7va0%Un9B*cbMSCa?@F`Mc2Tuf6=2);c{1o{Z+IZh@h1LMEg1*r_DAP|=(wvB#u~)mVm*?VU&~SYc z7e4cj%mv*B8*wZdeLf^8e=uj##8ebZ{+Nvl?gjj+*Nc2p<18s-g&Y~3fGIg`rPN=p zZ3sZmo802`udBOo_X2~%jIX3V^Slhs3HfK;V{*CHJ)j}Oz^-?RU6n8vZS=(DQ;>W& zsHcM&9yr#11La#5#2A-zTV7+|>GYXDeRQp(rGQ zJ_GXSDMl=9YN5uK@pt>XISlkPBdi%^Xyg};uD>jOxQ_N8TsJg_!kLl>md54Jmj%_K zSUgH^qTYFJhB7dzZRZLnkMQekmcuRXKdmAQvSFI@pWBdc!h*5hIQt|9iNI8AetGbT ztIt`78iH`j(C*t?55Tv)(_g~!{^H-CzMc~+-G1Td-^*q~>>)TouVi%8_GB+6bRMhi zY}BI(LxRQu(@C#wsHo(w23fB5$7s^^cQN_iz3}(OI)7!ou;93pe!#Ce6FGTJd%A%M z9(3!)1io)?UqqhJ0NRDl;TN=8%%mlDl#t_K5S zCA@0z-gKXJzy&>!aCFs*!Q2Y)JuNykzP4xP=3)^oz!ajXyV$>6-c?-A*&)zW7H~$q z!V@bphAEuNAS?Yq91W%SJK^MT&}-DITfD=kfGIO4JAhTp!H(eq^B`h?DQ#|XL+GmLMEYEf<)LNpVb6-j$Zw+|Mj zwnP`3p#mkg`O6X~|DA*6OZeYwu03|xP|{!(;>3T6bgAE;-^;BZ<}?{A!r;qW%CF)w zK|UMuf`Z`X)g$lTmaxp`Elu`q@0~S4r20|T zq0n;&-6qcW+SGjSxq0vNUQGJmpBNcPpTh{xUak%%@>%?n5{{GJbGWzweVT8os0A3m zaHip5Yy53vc4G9AlGneNwy)i6%ivc0U?ga8NN{Q7iy7evT9aRogimSc*dPrPr1M+1 zo#g#?x5W?_e+qm&9ZR58qoc2^3sQNJ>LQ9?Z}lRM&vZ!psP_falhX>nQpWAJrUMSc z{4X~?7S$e8(Nm|{QHigYOo@Yg02Q)`GZTMz_fED3+5K_$UG(XEAl)5w>t`SLct`!} z2LSEo6I=7Jo}7f-zbp9cVgJ;ClgTzosaLMzT2@JP(RuIcnZ{`LcSW1Sx>;V$-!KDn z6wdMWw2cM6pwo5MJ$sieAk|Hecig76DSw2Bt~t+=my_UwES1m>xGi>!_sE0w@dHOFsgup;lpAW`ppFGK7Iq@Ri8P5` zmqtO5yVl%C8y8(&d5*y&4z|Ml+mCA}DASd@!eL-EKu5X;w3)u@5yJY{eBbwQ%+E(dk?QpX0`d~y!nc2@LYpz`)RDnyld~u z+AY8Hh{DHf&xaw4#7y?t)6Ebk*{fQui%edghDVkHju_B;68s0Y@ch;<)%KxdW83N> zc~87Vc`H_@H`9L@CMe_By-AHTi5hK0khUfjRzTdT(R3rLv0pJB{8-!N9r$7~G&=bU(TN$^^=Vif&w z+TvtCD02s02kuQ$L&>`1ov>b|+@J@3W<$RAqJt&D8!bVA-|B2f?W-*TS3_|Q#=e;I z3NO7;`*q3+?@i3&yx(B3LFlg_;o7~pE68~;!q9toXDYqwa5F@+-y~;%&Z$>(2aCX$ z`(oyF+v7y3zX}RJGHApG+RM9~K)GApCl3{m);$u9D%=Z~zyEEvnA5b!Hl7$0J!s;{ zp9$}_T=8a}h4l^x46+PM`UAirlCCoqzWxDw-1TVBo+g{j17YHVreme&v>Qmi{`AxU z<70aCvG=_o2UJ&1sLog7ayL`3C16sjLh34dC0QU{i?z@XICr<41V}sMmUjubJ=zh^dh6Zdjol~&d+&ka&im9o2 zm1@E9vD7LiNzJs^E#)3ncmxS&!h%s@xk8fMwz4hC!-S#{XEp11k1Zbd)mH*)`PqqI2itLRmFZGc@(X9bvCl4gVLHY-gIu$-cA>$i@Uu*w-=Cp*#6;YEENZy#nd~_a5+3=b0 z2Mf2OsuB}}OQ%5v9Pq5>YUcPiu;=aVg?`ioc-XST?1>b2%^@hClnR#wcP-h@-iiu4Smsc zCXE&hM=>!}#3vYAHL1DBc0Sntj>qPJd++HL>hHeuzGR3XV@Qe^~WBI!(>I0H5k^U*O;F`$uxPxM|v;pCc z&!D;jRfeiq&h)f|c!lhhpnB`lP#K#hM^!Y#T|tMrx)xt-m7pGV*g%%BS>EQaw2b-r zI@96YsicVkbehBhu})C-YBTsDEeqt?&ypnOGP}VL;ctf;3EqbM$q|E}s;16YS7Aqy zz3lUCIRh(QGpnU9yFR|pXRh;s_eDP{LB3fL)w0oZD55L9dC6hDBM*EYqD?B<%??-LNHY1ny5)T_cH=F;1d_vYT zgpl+sJ5yo2T}aL|K(0^7t#ragBQXsf2J z*DXrFTK(MD7h)8tjAmJ~P&TI$`OZZF>)tQzRvJZTF4Kb$3xw;51veO*DEc;Y9kZC{ zmS@*WhitBk^`tZw_~f2Yub$pp-GI~&r`icB6(CdbIywQio$v-UvF?g-d&g?~%QHd6 zczC2hDN``Frj^_~d3Id!bmm2pXPr8X{GYI_?BRTkK?8WE>ZEDU;=C$HM<7^X?IWyD zqxV;VFNzI8BpeUh9?`oGnMit0r4L{DTp3vZ$D&_D7~+xa*!H6|lWp{=>^E-ZG)=x2 z>;Bwt;`7d!#uyz!CAk7pDp?ctIj=1B7$L(&+~hse(R`$s;hJUQwnbq$beuC>>IHx^ z#*D~cR}%kY(6cuUexqO3z9UdojDsQ3u($WF-rAT}mHBPqx30Oj!tylJkgd`E(bN{- z^}_Y6kWj64-aq5+YhBJH8fIBpuA5ca-$?~T zycW_L<8veVp}VDSCW$|G(jSvB=Yk>+Zr9ZGz6qg($kZ2n8nw1;ZU^cA;+T8$M>RL{5OHvcdF zToDbfNHZ{78)-cUyD)-3(sO0d2Rq;*f}3S^`%bpW8v zpC+70{bT<7au6jK3-rLQpf7vjZ=Zg4z~$x;QHv($I!eg_SvJ#X33LNLXr0`7{Z1I# z`?)vy-JN!B?ghP?r=$!5vztN6AR<_6?_0iO{VW^=mxm=i-@SG>iaLz{nefodd*yZf zEd~9vX^LO2gE`<#R@sbGQ+hXYI>ajPTdKNuKcb9q(4{xO4X8<(U8YDVKt01pbZIZXh?DkGfe^wLt zunF6;oZ^PUPcjg#u%{bYL8^&Gqp$RQp`s#TVA7$i4i>ostfuwQbrYt?tp0}wHW^;W zTR*bQaN|u!)}2|dg{sc5aZ>SBlefG3&nrMCN*=$uz8tW}mXQ3|t&4V$+6kOSD$O~e zC{J&*oWZtVg#6KMkK7fNvJZ(o(n#uB5_$_5kKE{|$T6(yKK7&2Ou?B+DyjAB0JJEg zI!p`Qx5ty7R}aYM%=D>qb7|hQ%q8t3Y@SH*NS@mS&wD?ZF@BaaJLn8)OAGl`aWAF2 zaDA|p?_GrDBe&dSZ#5cCmN9$l#A(o`-dQS#jDdFSE_0>UamvBj*GA6>pA*unIa#lI z&ce1i#r?^9L7Vcme`!Co=C~q@5?7K8UnzqufDahQqoj(XbpLJFhRZQmhazEgTBv6V9$xi!#665^h;r zh>0)C2(f)~o$1G`)prqm)=!%{ZwVVLMR1Si=#~Qb&@3us3LW;ge&JJ!4c3-If+6e( z@_A{CP^RCC;xC?7Zt`~DqWiaopw(vPz9q-7ZxOjj{r~_AI~=R~N}^C5x-?FIE$@$O zvd8XYpgEK_pp1o42XU%(*1F|Algp{uOyd3mJJgLYv&7b8dw!vCccL@F2I<$?TXBFP z?(S_Fd0yqDWqMQJ$ZK!+CvbxP{AWe@+1gIByedA%-IH}jDRf`avo|@fMf9qs*~N7tl9SMDY=(1r{!js$xb6-5<=x;;PVsS_0xJ03Xd z|IG)&=kn}Wznye;7f-DH(0!+0{UINhW!j`=K|TgsvQ%)-u7La}&F#>e)~}5WMyQZh z`K^j)?`x^KYMxok3E+Z2N@Y5z(B8WyTy26oA89CbD6$olH_q=f;Zk2?LqD+bv8igy ze3`7NirfE=WXAN?g^`cQk3* zmVa|;U!$!nb>ptreW`K3y;Zw8^XQn*!20kty|rAD{Tr#lyYDn@|fh z?5oeh?-V5^6;Jb^!uO1;mqC^bqtZ1yUsLU`?@E83M)H`4D(h}4yZ3+3<*nfMe*AWm zeEiGO=GRy{IV9bmj~v1M!aAYu0t}pzJh$mo}1HjP-$f&)wW#Q z>ue|Gk#@0`+Pviz5=7eaWvR*Avu%9GJF(*TdgO88O0pgspSsU)^x3Rl*oYSNd z=TA_&+Vj2IcXZ}f?{!6xiO8I6@;sBu{6NlrWWHMN4@^l;ZSE+&k)O1l_tx_Wls1Y~ zp`&mg)A2KU390^b%d`7~yYtbQ9n-w6$a5J*3C&wtV)Hz7S*Tbbt})*78ij`bDd*VyBVtrGi+5)a-4ZI)3hoA?-{0Kk#V|Jrapgo z{4=PBPsLpdbs)c~1xs%b9Xu)Sp0J*z5i04i@$UtjTsCy*z+J}1LMR!MiTBPlUJ`f@ zfpZ?<#a2uMqScB}?iZT!U96|sO(`4~tQJe>-^Nu{>p}1yF__KN{{(aNmX&k~j6e!< z7z;HKC1xsJ7dcA5H~wof;~;#kYL$P#z0p)ka+Q!4aNnlSpoo|p1u_pma=^|(07}I> zJ$hjcWJNA$Kj0Rq|0}U#^zTkp?EBc9xFWkh?H!{^66-D2^~11H{od$)%Yo7+2I5hG zL*r5XB6Lsw-Nk8yw$+fjJ;U|y}`k0f$ z)N=AyL4#sb@ab~W(tyw#i4+@=Aoyb0Zv-joITqJu7kP+({#uFP zmw!0(lbv605fRI{@@rDc@l`LC${3Qn(tyBi#KVH8ld+lqS0W4EONHg8t$m|hI6m}j z2N7Iwrv5r6TO_je&786RGYpM9>s_YF?)cQNv+t3qmzoDz4P17&Vp4}8+YbRypNNvVwmo60Eyy0?j&=}*2&+~!Y%5HsMKO#-=?5rBV=(w?mu@`aFZ%* z>L8U;r=fNPk*Ih0^>VY1-GASNX8sI%p9uVswf##l@I^eo;K|>5raT>L3g3F)qsf%c zah8y0SE|dA7S=-!t{%)|ynXtF70D6|y$){rZQ(dCxW|vQ>+Zfz`M5`w%IsY-%sig` zi3YlouM6qVqlkNC%Vtp_>cReqRlW9_kIBQIH(vVOPzexW;tzen7U3v-6Q+A$7%TGY zZ$z@R8-zW$({$&y3w)(~bR7qhU@$rv=fiY3E8IHnTfJRmG zkKr+rA<9f8*2g0HNLK6j(r!D9%>`Cd+yC_fB5ABBsg?A@&2Lxh&n83mrr&nFK*zEu zyGM`1I+5${lswu`B3SZ=Ny6b%bn10}w(xT6heJ;u@YHVqZ9cXCctkBJ{!1jRlb$p{ z!Nw}i_bmnQVI3-z6UKqutgieFfaPrutc5?e?J)aT9!@V(Og36#BgFKd*(5!sWH*K2 zS0CKYO@iw^1K#=x3G>p%ytc9uM$tm9)lwX&YN1U+2k1@!Ykqexyk(}9j#lD;E%=!| zsKv@HA(gG(tVQ2$gYxs)=<}#9ra^|%lv~1DK7JC+Z?`qqNq*QyyU)5JR&bBFAJ`YY zj=n%3fVFtH!pl29mxTnVtu=YiZCzFom)SVP-qB)8)xPuh1oP9Aq6tE#ekm$rc$LPi zhXE`E286Qf|%Lk_!spIS-{}G2i#(>KFC=L$a_0cyn_)rZw6nJstk$gK=d4 zE=oPn`IUsQhO@B7{tib-3+)6bqvy&PfU^E|W7t&hJAmasZ`}1A4;l-_Xn!v3*)u?) z3)X4`*Yb4A^Y&AiRu{52B@mVjKt4gOnT<*(bMjB6LpvEd`2-^>sRCQsi_M?KL_KDx zVl~j!w*IL%NlL~nCqFPIFm>`_`3g_`Qbq@3C&Nnb<;V#~WYP&IM2lJ4y&hWoJz`Fe zy3QSCMvwhjnqPW)LntJ$AJ*6T?xqk|M6}_L>FILIXm+HPd0vioud!!YmsE+yMWP7a3!d zKkSn3Zvyt<3=m|;zsvHr&X{`;aKf%mAQvdpdv|+U9At-XCekvpCo}N$esuL1sIE*g z{#D*iN|?Ro&UO5DiM!lq;@g3drG1jl)+|sPjdu^Lw-t$` z)?FN_1QRTD8I$Fn90q=w3Ym=5qpIP7$w9Nuxl6v4709@XF)zD1IM{&&A9Ko2*lZ1d zs1Mo_po}6`yw2aQ(WPb4j%_&BvSSS%78kL~U9!w2vTC`(Q(Ok8f7^_Z@Z23{gxYVy zN5Whp($TN2IjrdbM>PxA)hq!!oJS&E0LfDNV*UO<%GFH6jFz_nC8@9hN;dMLFCsUk zh9mh%x5f5fuRj%jpnHZx-+!wDNP(T4b*{@{lFsiXt9@tZQ>39#?hd5La;xA6tC#7kNo0jFW> zq2kNFsX|iCCiJ%xg>EjA-JPxWO{MbZDrXzotTY3|-(I8bFziuHH?5I;=F&u(Ttr&A zCAcd9A|?}6kpSRRi_L{*(GQ%8M?YZkONTuaUqme^AgwhlFyOIWyT zt+v3kRrBoOc+D%?Ba0Q5h7-B^DjQ38Dx`*?U&dKzL+g$_0%5xL-u34u$9>XQbIZWR zNzKq#gdLmKz4*|4u37SL#nvd2b0YPd@?guAW2J5LYr*AYH@5L~&Mk>ella2I<8DUl zqXb6QP_HD~XkokV&L84(f-y*)z~?pR$9-e)M80oLhpb}e%+Z6NUyHcu$!j9JFb_YF zOr>{j&u46(Xs*@R=*Q~Id+Re4CL$UiB-`8Ri5BRtS5~GZ!ae;8Zz=VEd3_!Y(V5T% z{Ueyaj#ex$ocuW^QgzTy({$AnYa40Bp{;P!9w@376~St+_mo@zdndZ{i?bRA(cVf{ zQu%#2W#}1om$Ru=)E0e?)FE4@9bezzz$UBZ$C|g+fZZBQyJ{kR-zbl3d+Mwtg%x#_ z?8`t-K55qa=GPQfH*YhnJ7+(q{rcj|{x_L|+D+#@z9_R18=GtjQBBI&ct_e6ZC07G z9U-VM<1Py`14?Re_=%@m-yCoo&SsjMum4n9tghzz_Y=CJ{ysorOJS<&Byx>XaQ88f z-CmiRyYFX}-=bqy*% zX4!%G=Bs5M&aZELbqAy(g??DnAo;X}vow_(Of2lONI=+|`*+1wh<4USY3 zb>CHM$Nz|bDIr}Fz4FZ7qwVb8lZ>>do2q@#UZri*tv`p}%@0oZQbHMXQeH2;R|)Tr zEo%86vflZx(mre(%{7xJTa%k?+qSi;mA$f?Fio~?+nj7$lU|-(2Ov6&r`Oe0-rt zimo71USK!?fmQODll}<9B`QpZTuuqq>8ClEpWr^Pv$vr2S)CLqa-lxa!Ij50oB&2) z8obn}nltM>(#Ufog}=s-x3XPGqkGLj{UR`KBT26=t>o8$MRKZiF9 zoGxc?3N}Iiw``I!sg)?{ytg-$#gowUcbPwWleab*BYYzjW_3n>0~P*zsGr3E@q`Ke49v(ksvS>%2`XK>1o-y)$1n--CP z_%hAdtm0ZBn-Jk8Sy#aG_t>6085j(98r)SBscu@`FOHSQ zui(TnJeaW6-9J?FThwPyH71Deb$^q}#DzCEQ&4m@^AcccdlQi^ftOu4SZu|JT*nCY zQ^u)Onb~%j!V|PJb#cWgM}1~dg9QERg{^H5ee`)BzN<>!3Jxj zD|d|td)XE|;Ap66l16;6Ek3h`os-X|#{=cF8a=iWi$lE}#}El}I`4nyT&~u$Sl@kD zq@_2y#bN4sdcQ}`_Wxx|!_{r)U|*?R&Rf)!XH$Ot_~!-yK;5{Vc@YzWb1fw-4C$L4 zW)j*-+&dP6Hew*i*=_&xRS>=Uj~)zT5p$kX-@J^N$FB)nTjgZ zbD}l7=`;(b2r+d>n}OQ;oCL5mbP@^?iTCf6`0uy1j3RYd4a zx*07`3>K_p4%4_=b%GAB7RZ{QP%lyJHzlN>kd7{+5Jtw0cXd320exdL0K1b{zkcGl z5Bx$zQr&~4s0&O(Csoku2%Br~Xd$Bv4oR=yj<=|vfsHE@P@rbWAO)0-6;G(Z@JjMv zQ;@@9pPmw66Z_}4S0&)(sTll9_U03&y^@HNz? z(A^ZW$lT#F_=r>R2(`huqSXw1*rQ@zir}Gz`cfAdGw;BP(OLI1%&pUy_hWNV- z&vZXs(>9+Q)N-;jLyFByVs*m4bF!)?;f+nO6~4BWgE>tj4F?D!N6J>#$Qk775kP@f zsIbqF0wxjBh_-vfa;#y~K@qD!+6hrEU$LfSbW>-LZi;cO(gO9!O~SSCaW;1$38{c* zY*H`s14AL?e-sZjNR%JKOtS% zSfBwmQQhAsjF_}pp2>GhhwXm=r7Jp2S7tgdBNssbTt84Thjp}SyX!ga^L-)7m&rCv zs43`|r;b;uZw{@#<833HOVE%c)#=VBCxNTDn=)o28rEn4EUl z0&V+ES%yVkqn@t;!xjV`N#rPfVC$pT2#S$Kv#QQL!}9QIPIYH#M|o^va6d#hk(!zk zaC|JTD%-|<=|0-(8#qAUpD_$(kW2tE*rHwt-=uGR0lxGP(x$1Cce!y_3$B?XF8Lih z6%I6t7-8@@Z>_STN42Os0J+&6u-EEpi<+>x{_Af!dBC=4EScz|B*ZJvuW`R^E}d8J zCPJ$?AGv8*Y%#*Hquj#m<<-cdSZdDfX9PmH82k0u>^{+-C<{UTp&@99QZ=Du6Xc4C z2MC&RXxdb8|7h(eX%N4(<9|tZxw)3aEw?yRUGS8dXvB@bcdo1mP^e)#1w8B9dw5)b zDJk{d1g9GeIdNx6R;vaFS#WZj*C~i+#zg8-75}X1%aKM!)qul|qlI3F!_wI{NT0_-cew zIJd>}ypmG+*Wn#AtU}KOINkdawHXq$Lo30@Y3O0{`1hZspY>~@*R4iwbJ=_h&*R(X zwB1_61&NSfIxk;`7x^X!S%`yvY{4p)msdG$K*IHJM zT=|!I^M7Zd91Y5lKP6cImkY2j%U^vZ5ays+c%=GCJtaqGLivT&n+s%KHH1#P&Az3Mw^@o5;KP@x?GkD;NCpZy?x^E0?ze4{h*%XUMl z>KXh_GE3#=3LCNIz3QmnlPk)j=tCdl!|#f}&iac;H1Am&BW_0;XV6JJrkW4j)gwbl zjQ(T;cjKmZwuFgB+AyCyk^!ko6q(Il)Rnnk7E!LPi-X1(;j|4l*9AX~*l-wC;OXog z`I`WaKKjVOG&(&0zXkZ})q_Ix9S9J|S93xTV26dZl?chaA8PnX%~*7@l$~{{koC@; zRd))ybH7;6=ZC+*-R-B!#TNx8CY{?9p#EL=ODNnK0>$&6TW@DTks#SBdiqY;TbNZ9 zazhDchK)(V`9}9y88xT9*Gt=V9n1eEWoy_uIf%qwg=9+aF`TTs{OSOF^@qwC0V@>h)ep^z&#XHD(gSXWI}#5yjnW z3ctu6blQ~EdB!K`_98eYno=X^Cpi;ryuhu{b3y$tK7NXI*(H?lsjxy~tYU6(V-T{V z0}p(HR0K+=xbpnt2okt&40|dtQo4?R&iDjJpM|61C*AA zsvCfIov(q|AuAQgpp4GP`R9x%bOLGTh%Rz)EnP^0_S^ePNg6^ zx_1mO9#_>h+#JCv2v+D;yB8}w3J2vkjkxv|u`ZGYT;?B+S}a}@H$;?IMwDHhAq~mh z@+nnmAD1>+y_?BDQ$S9_mY1ee$z_%$<>{BuVe!nAmh`KOQ*KmJ0C#En2$rB|?DD=q z@EgK|`=~bEnS8b9zWXGge3OJHIH2<@4d%a)&0y&M=jhQN$cGLo3tXIxexsvOna)E~ zB}=I1CuG+~>+PYTT1F4E7)%~623hZ4r@MEqj~*kjm9r4>*i^08a{Al;^h)Qo#c^Z&sa>WR7{G#b9TnVW>9F>D@x*Euf+5JM~JD=dYdC3Q$|VV14D$s0=8XB<<#-StiSl*YewV zze;qieL7zAT46akJbwzS+5_cL}1O}Ng(GXAt62y z{Dl!s)Jn)sjk#!%n(L96?kY zPKw@P;ZE4*D4DhAok84s1pIv2x!w?Yc_e|ZW7jj(ZJ?z2EPp2uzF|JG)jcYI2v+bM z2Krl+cdGX{K7o+r$E^&e!J;Z>_a0%v5Xb8Ih4=GyO5_vQ61qYXN4`pq4W0-S>%sXS z7gK9vD%nxy>-ummVOY=~0cM||U2Zx5h&ZA=xj|DFd7A;6X+ahFs+lZA#FH-*Qo20* z%t_<~?RYi&x8OJ`JigjoDtomUAXb(xv8ySl)BIUsxkGbu{gpMi2{Ux|xizsw!Vd>%W?6ae&%7C(n;`zG7Ju&Ak zg^Sk1Pup4#a&ZNXA|glbLs(je>6lPsX$Ot>Om-{W$y%8=;LYo=;ie^ zoqCarQ%nrt3jp|vsomb`+)q~B|EK~*DKHBf;!f{9X`e7jN5>?2*xK?NsXIS^bjNM3 z&nCDOvl(>Zd)eI#;S4Jt`or2jqR@Y+$0?+>XQZ@yy+v?PA#N(IT5;P{iMXY6d@7A; z(R)IVY#K)_7o=8y6Z5*Kmq|Z>7y~$G)k=3odIQelf1&V(Q?fD*4e3jlR9yTrFTA=J zZ_t-0to3c?-qb25ab(G%I@9d8%i_z_8D833S!t#e`+nT%#sU-F-qY^4? ziV(ud-FP%3fOgf6g*sB$jM-Her5z!FTz(%J3RY58A^Ez@ie3VR49d zC72s!ZU?vF-RJqr9`vE{Ly-U5eTv}v%G%42lEL~K%i@bGjn+ytklo19K9uE7dg*sBHW0RV>-pVYdQJCB|a-!!&vIK{9GIm0MkD(I-A*M?%t zW@$?EI-ROK>YnFidCAd&36Ci~RP*ie3mA_5a=x>l9eK7RgiL?K(;+0Gk9JZdWQay@ z8jK-TdihKGjuz@^P8-}E3_Uoukm`zOL$Z4U6k#aq}KL!wRvV*qOwkbZ^1!NCch zp)Zwq*(AK9N0Jd*+bgzAYL7_KT{9_KQdDZy?Oz|;SnNuKb{Chy?#h>krO?sItsiB^ zcqB|YKw1Sp0Bm$ZVdJ5NTJPHa#~l?D~E`nE_#uu%~BGaR?Q1w6nYq$Uze1!c@A2) zbeQgaPzdJZM73Y%Zw1V+{O!%@KNs>m>@;;pP2P&|V!2rytDpZ;pPCxdjj(F<@Nu__ z^T`zuL_ZXsR2YYU%^k84PfN+B0 zRk1;Jv2)uDFWi;VRqr_2K;NhuC#Yh$#52{y)7x@h0&p>`F=GGbhBoJN*b)D9@ zfY$@7o1foF1#khyyQ#EmHS@L@b74wU_044=-f6x^6`Hnsr;{#Q|yZzIb>RvRvQT5P7-z=ir_19?%O@B{xUl%TQA-mrrP#! zrz!6blLMPA;oFrcK6p6UPx92`K+$6X(%UYAMUJ8Z7-at6)RjFr>;S2B))0qwfLJ|b?^ATQ;1P`vYH}(w3P)IOLE!~ zF+tFKlihb%G?9QjsM!eE*wel5%Ip9bpI6&aN0P6cRacv}_F&Jd^Sk%s(S#x2*>rmS z8=SH$r^Y)SM<~S)uso@0T-_+~&B#Ty8~+s!ZPWJaiAG(WSLKCld~Mc2xL=D-p&2VQ zSZV4S5Mg1cjnxs#0ah$))LM3Q$epqZxJZZn-700^AaE=^GoW0g;>hIF=g{Bz)o{Nr zqQ<(l=16n>qr6bh0uWOa#*k!w{jMckfjB8N;u5GPO~l50jDJ`i3wrVzqEfQ9w5ewLSe{cKwISM4-GDyb z=3-XfLOQ)->J#4Xo%x&RZ+|XKTV+lRM;Tbh8k66euK#fJka7r&3aRa7S|TzJWMf6pB)z zbLnu#FXQ2nsWKpVEIn^?yRh zqHVsyJK5qA-R@xdFktSp?k1f89dd-4G|RTocbEJ|riN zA1!6{^syNR96dxvCT_n&-U^oQDU+znG~d#eQOx`F;EdBZ9ZlXCSe62+6z;2jASa}s zMtqvT4(7JbEw3+cbFnKkyu!i1jDOxEBcUMm<*~99**QD?F0pg=KIz$IRMJB)Zd6E{ zLuq1!7HbRa+vs(y_IGS_FkXm4DlZl?mHxc(2>eh-G8G3J6iktC2Ar`KHxqZbDrU8P zVP|H)Ii6qt8Zwr!GB!4{b!lMZaHZo8tnPX2%{ZX2_+-uKfmBbhrTftkq}#Knwtn8| z=Ib3`R?al#0FlP$gFewf(svL^-TS(?1;e`6Na&W&z{Ft+7`+sVG z!o{}d;{Z-w&izKz6Bw8lnSbo$5)UuxEVWrC$*Ucpgio?3A)j;;mBkv~S1&?#0CdUJ z+?yXe8=N-aVwJ*$_z7gXVvDfSedEJ4X4X^xHNz-c#G=cnrC&C7i~ zvHE}Tr!oO=ltid~C=q~*(+$Wu!Rp_HYo1X7057JmOi)kMFZ&}WdzI5lrq)yg5l__A zNiH7t=`-2#yU-(Zmd3~CMi1c3>;DTm_qc8e^r#v7#f7PreD_j|>kcvY*aeKO2*Z~K z8x1JnZg-zN8(8gJq_tcium3OZ)R02TSGv;u7j4sHpjG3aRP4^&V|5gOk9ClK=q)_t z06|tp>yL^6GfsrTk%4;!S>}%u$@7_=LddqeNg{Zh#08e5V_yI`ITmwV-%J#chm zXzk$+BD_To-g9T;HjXWwj%c(nZvg;+=e5x_>K*`KZpCl(mQ#-aZ)jy{YiY@l92y$> zl3&I2UY5s@oR^nZR#s=Fs^*zd(pc4R_a;}W)>3km*J0H9>Hgfk z+1ld_of9JOS@wpUJHi#f%)*51^uR-DQN5}}uhXz?+AxnM^$7e1Y$)OiI6jR|#_gi> zQ_+kkzh}J+tdgVRJ^q_8(#hODi#=!cz+cDESuI&v!1FSNUGh5i6O}uB4X+3}rb}Z3 zwxPBTS?*{`_dntm#-0orgLqR{TINx1&R5<*cmMr`*_D5$CRui4r@=`!Mx51X+{z8> zR;^C+(GUC#bK+P0&W+|pnTbX^Ns9J9HCyDd3>b{G;bv@b9i2)cG8j@#HzB}~g!$Bw z2*6at6m4udJN@Cl3?go=}Y_auD-u~PFaC65-u8djN!yeu0^bWjY^1b#AaUmob?h8*igk3U?7hV^<&h zH?W(?x$7p|ax1-y6i1doV-a1=RaU&>`q z+U2$PA2}aicl?uilHs+G=d`(TDRSVI;zerX=`o{C&&@NqM{&Il-f%(nyt*5hvvU9U z!aLgo;_Kd}&-ee%vxQn^6Qz5zqY+r0YC718FUX`I6|6}@tM;rAD(2774)_5f>7|BR zwgin{j&aebDOr8Zv6!@U^vIe~f7nRPf~9w_LxWx+PdWFScy~SeS{*m}$6%1VSQ+w3 z)78=47KNZOcyoR<^J)J&3pQ9*2nHq_mS+@ryK+gIGqS_r@vf#7UAVeilof$Y@1VJ% zT3bp_5n?&=gRX72Yv8jdl+-IrIYSpZsVmNQf;S_4rY@Dxal~a$VsOwa{Lu+g<2r5R za>!?pxC?Cr(W>O5F0`dU)3B6ArDnv?99KQ5X&j+uE%yph{_l$fx+U^zE>es_9|JDF zr^rM+YO#+218<^&2ON0sTz?|3;QWV&t7uzuA6$btvbG`U{JNbbmhWh*TzfSCZ{> zQJ(c@Tb)=@v$+Sm(Z&JZWE55yz$vBV*s`AjaM0sqwV~rRJn00r6<1b_d^eSSco}H` z-+A@H?HMGPvgV6W&AQOW3zQeMKOwBZ;Iv(9>v#-!k~(wt^=|pNEZIce4BXqZB|m(` zB*;)O_kj-I+WzZdtaFs8JHf#*u1J3}edkvVmPwe{fU!_tl8NIWf>)n3SF;DFSn66O z{pgDKq0A8>k&n*BfVLss{APABU$LU(@@pNcEBfWth^zm0wPOxJ%ZQ#M+Vt@cjF*^o2v6Cr%L!pS#CP>jBgMrUd$( zX@@`Ii_p`>t8HqUY-B}<;qI}#qG_ch{-s)GZdbP1$^e%c_Ht$ztE+N02i^U9&-KVx ziqxgVRa}&k)$?qeKT8VRrgpND|GDtAp!kNduYDOx-}q?ELrG7^Pd_`uC(u?qsfn*E zp3_v>gnS*E$q~jQV2V5(lDY**@Uil8rjs!BY_cU2&@=DAvA^K8D15z{dii?IH+{_Z z0N>@b$o>0qhVUYb!U)v$ir^3xV_U|%F&;NCAGiGx< zx15qjl3xo!!S^9WKC1_E{{wF3qn=|_@jclnI-^N;^P<^x^G6_!LcM}oPVGkUVNs(F zF8FW!e{tzW3{mB~{bp7HuA(E5XN>-+HEUsHbLQ6`!}};7jZVtBk^HaKQvPtUOl=G> zJcS3t)9`UbaMK>S+Wz^nIgINH65o`)El7XL)qtv_WzkWB@6W3Mlx2oM#E?|L{s@|p zi|B4B-_=v=AL6O43a~9USqfrwW46KspIO~PY3a)-!<^FCsi(t*2b8U;E&9A0mhJul z)vb&9!2%~nvdho$q=DG48O6TTQ>l86#We@Pg55Mr|m)?c9v6*tI_Q< z+9tgo$^qPV@FuC~Fc>Z|>bxYDm*~)X)e<;1jP%xF{Js~@%yh0_^j8KsedgvEt zASm^Wv^IFk=|xUr97_{hK;T=gPiHLCA8nJ!^*YgRW!&+UkFR=umCA298@QiGQ%yao zt3gC;Rj={vtnV&SG*ewDoy&klna7}T7a6_SE$dbDF!!kpwh%W9KijuFrN06QQ&ooaIaiJ0jb_vToXzAhCV zDzjdmOzQ;vDT69({RWmBYBh3u6K z>2D*8j&?)u;(Y%-q~i$(n2i2?CZ3z7e{v_7s3<;95>JP{C2^vnur#>L@28f-Mc;KJv_@4CSt8NgOf_8;UnSPj_wyM6BYTx(z zjF!Fu#0KAob~RCMNQmh^kI}Hl{26{1Z4=X79U5EJlr+w=2@ZXJb67;w5jM2E_hHEKCP;0~oRGSQ7(;k!Vx zrYwKs6<2`%RHw~7wFBG5Kl3IlzT(%__Kv*Q0wJ4~7UxPE&MCzt55Ksoj%@il`_3`_ z0Uru(5Emyj7@u0ra!fAmKaYwJMA)(vK6K}_QGcpeja<;2{WQAMHtlrOF8uy8iW**K zDQAcn!ii%n{_@s9{4L}qby#xp)#>N?RV$0No7{P)E0OU{jGPrq<(UkSvx9O5G z601WzOBo)KY5+AMpTD*D@0~oR2cfUnbREQkZIU0vu32`1QxQBxX7{=5P~PbzQXtqQSRBf;i$f@MtRC~M5R%fv6tweLn15>-0Z1sktDl0b_TC8 z^jI+RHX@%4j0IbBR(a|wQI2h*K%BDa>2^UqNIA6||ym z8;zgrJx2+%F49%;Zq174@g%4Z!szoFp#fjm4vQhf(dnk?M37I*{$xRy`u;26^DIL8L zwiavtMuZAWdJbkNJv=<*_kQ3Ht%^@@+HTP}#y8U6nTb9kEp{?UYJtX+@+;jsl4Uceu=s-! zFN#jR3 z=cR+6wET?qg?Z&$tzQ0V>=uRq+-XN)^w|1j@(6MAo;a7X=TE}AC4{=^BJW7=G*_yY zEN8PZEck{sT5qKN61p{d_og-4Lp7=zRC7L=oPW|ImYF7AKj)K2&Q&a&tQR1&+*8*Q z3f=XiwCBEk)7Y2RTt$brfRoS&8<0%H%lBo(`V$b1!TcgVXl-K_G{qaRz#>T%{swOE ziKLNwg;|LF(k&P#MdO>4*59xY|F-hfuXK(}KtEGM!s)GhbmzwXPgd=9p~&H*qhQNf zM@%ma|DxJFGFn*D-hvRU7N(cX#s8E|na@h8IBL*mKM~v-g-dON-KoY#@U;z2p9w_56yTcc*EFcG60~xN9?0PmvE#^}EPBn^i~= zfxu^(J%iX&PBrR^DUpO!-s+jSllx9X3@Dg1;&7HG`=9KaJ3Q z5^=(%Vt?lLXnn}4V2w6fO@8R+# zodAYC3NgOR7m2GEc<|xY7*R8E!R$bKT#jZD#YdO=NXVIY>QGTF<^w)}lJIL4xDLwG`0Ojr?L-gw{5H?=UUpU6F8yZP;!g^@Gi`a#PXcVP%C2yIx zo!8@(`Km+~J}eLFaBpQc?zlZ?QQ2Z3=$@8Thx*ue2s2BUSA0VWd2{&hV&HK+s5C&B zI6Iesl6@ZErS>bb?y~LvWb>c!sYqa|3~vDls@;q3n}x;M#H&86D##I+)x|SaHj8bI zx3zunWwpC6wva8@4)L@MA-06lL|{kecOhqX4(|t%!RCokfN;;1(Rlfcon*|%>y@7!e+>>`P^81-(hQ4CzhUi$Hx*OK3 zSo3OaAGgWf&WFyo~mW>!AT>uMy_O-HVoCQUUU!39KsR7Vy zNq7({u(xeWfc%xyh;mKUj!i0PfA<9-d1<|$_M$)VMI&bQDClxCc-ro&NUEX&AjOah z3vXTKV3qYb)}#L~-F=CJ^MrQ5q0c0I=Ckpup{0)q3- z@x7NesT8M#B5lLC`pA3s>)TU%VCY@>k0*PD!t9AVlo@xQ$6g}k6!}UIWjWcP0@<=`MJbra~K{SPgd`|;`gEwUC@@Ddw?@4V7;leBWC%PkyND1 z4BC7R%T>ET={U3%%K8L#uGRxkHGbG*k%DFjYd+Ij2-&=4!Gd&Q{|{AX-kbazR{-4O z`TnjPlh5mkL&r}|Z#VDl%kJ45oLGOktMuG!>PfStRPA|>Dr$YTXnIwb#fWMvHL6*+ z2c&&)=iod}=tI+KQ)yi*=h=w+;(M0FBX_0JB!(XPT-Dd_scj`H$5zzOx|BbzIq2&t z_w^4;vag;{ze-AZRrktLlKMauP#)q)OYExkB|oiO`Hh~OEC|-A_>y_csZT>(V;rfD zhd;b>XP-L5M^O5n`aeqP!@O+2kO9@7e-+`NzRvBTW|)4E-p%W|U98Q+!#m=wcAS-6 z`TDhbR|pXuT5dTR>Jw2E3zjdxa0SHQ&czyvELp$G-ymtdPo!YB0C?L)u3+UF{h z{Lx0_&iK9O5=XncQ@;wdo9KjRxqFr(pQ>~SMV@~gQ@=fU3-}SiK<~s}0_O@i3kK1O z=G}wjLrF2lD}B9=h)DDvS-6onUw?Su>1VC-w({atpVDfAY&+oxGIl=~e1^k>qTt`< z1^E(+!y$~pM!r`0e5LRx1c?$YF0HAlV_;({&qTcI;S!507D+(&-k$Go>QPb5;C@o= z5X~Y>qF9>aQ({hv0MneQZ>|YxlQP)qm9ac{Fk6p-%wm`nsaKFH|KpW)R+R%DEQ@j_ ziD&T;HveV*e)hN4B#>1(Gy?Yz1AqE7zTc495Vr*iTX03aOm%p%UXT~p&nFKFB;vyo z@_qwmZlvmHaV3DG&M?d<17C1oGcvdZOSei>zxCC22wPZvov`H9I)SSM(Aw)fZ|Z zLt0%uF2cw9;-i#vL=Zg<$%(W9Wz-}9C0f<{I*+>fV3Gt{m)+k&%vXT0x5#|0vf%SD zVLnD63HCvmyNC#H4du`n=&)*|@{$CHYU{vjqHMy%79G0{m=vCv?z+0!X|j^sLJ&LZH_*Z*2v&98Sbk2U z|K4tNEGmHthewE?^bNBPcso=u?b(E{e-Ele$#r0+7SK9}3XTwR7SLy;0sJmMdBSEY+aVt$ zbAdVP0(Ml#h`w3WUJ;vJ!qH4YNSH`s~ryNPm^gW_)NqEUN^+doLJT-pcQzFoZO*2jSW5!2F%>|{SfA2b-N*st1WQXQEOI9D z=HsHV^v)6{WCOz1K{m7I(iV-{9$a`Y)tAg_EM(Bo=GYbx|JdZ_$f89gzL1<{OnaUI z&Nw&j30Rp;9`0m*Ox`1ny!}!4MZdi-39wM0Dq%HL%aLD#DWHOmCwL3W`d=>KV65$n z_>>yMFhiDsKFi$U#ahaEOc}g&{j|um6kP(QM3cfISwC`RT4Ee8uV^|zY`Tj4+o==m zP@DLhdJ6KX{`C(PcVxUSJ9{|~BCOoO5{T2wiY0vau&JqC;<%3DTOVKK;|j60Q4q+z zcNsvQZ8QAPm>|V(F+}3>z2aHIy>VR;okt_*SOik~i1r)X{fN46z7!LM!jijwv>`=( zS@MX>uMe08WQcuzR@vh|(Y3NpXc;Noi^f+NvmD%u!ZTQnO1E;**VtOoslmh?>mE28 zv*eFj;MGj=(IW&cTS=4Bg=GkI_XO|Gf0G1ba^512K+hohE16_&i)bVa>2nF#KHUZt zWx{-`>OJ_?Ea~f11V!(10TIj5gTq@e+-!Zm3ki-~&!kFW*JY6--*|N4uW(uJZ7Xa62Q9cH69^vh~d zY4xx&uMm;l8afzNjO=X?T+`y_9G@~=t6f{UIWQ_2-M?#cG-7{XGx(cHcmQ zKpc5a2ph3N_SGKb2(&%{a3CZU`?oxt1iJz12jj0IjAkAT?gaCrG% z@E(l~9*RkOUMCM5EQGlANh0B)wK*8HLtUf?_@}iJ{H^OgS4Tc8j9hRyi=9X*n+P}` z4^3V5Zb^*ddMRIfH!*t*6SNw==|(j(9Uo&!8A8j0UKMD<>s_HNnkFwDJjG*AcvmTd z|3Px*`Y2G!mQO!?!>SgE#Zug0i>)z|@U>3stM#xt$JAoqT;Q=VZP2*ReAYa9A~x4MyXeXFkhuYm z+;u%D@<*S$4-}Hf5DXDNC>)k&*&~&b_1ejt<)rOv3qza&;xDAUN3TeCAL&HqN>_Vg zP+tYmgjvUfB}ZgV$BSzxHoMolD32)exEc9GILFGyz>CI-S`D7GyGFF>=FAc-D3i`IC>&ax&5D1^6>Nj>FsPJ`GMr0g)EjsqRgbRY`9} z)^2mpDA}kGN=3V&&x?az3}CPXJcLfsVc8oFhHb(1klfQN?|4jqmjnv(yW5%QBF4_u zQAB*@Njrqr)b2{^qlxVcQJ{UVEceZXyCUztBy>Sq$c=QCU4<`xOJ4criS3yZmCU@S z7{~O53#$M+ig#kdyXlJWVn2t~w?V~R+>I#x*KAzzRrlI2wAtXF*c1tn7x!xzRy`;8 z(ZnjI4YRitRgVDHc7i4*l%&LVD5< zxnYe|o$pe*SRwp6G~9T!v7HO!H(UX@J@XUBNGGA&n&YhYWAr;X# zZAkjtdWc3I!GtJpMR=MLPF|pe7O?>f+$v7blNLvqYXVV45B`!y438HK8>_KSeD;(V zd@{K0L?F2gmcs>FEQ2WInP+g(R3FVpG5I|GX79XG>y?#6wIOnpbSPV^1f5iciyAAX zY?*Ai{uO*H-q*h_r&xQH;+{^a`pDX3cy(qRK9CdygM<_$bQC_1#NRNsp=OFebIeWY9bNT0!jQJ_%tJ$6I!F*;)s zwXwm%S5(TPR7sQ~AzSVUX^7}9d%Ufz?1)@R2kIyu#Q#XXptuItKuJ*ms7gp*TTf47 zZL2D3@ux{435M>*d^LHw!Em&#bQo9bBTQOmzf07|B+B}PQ=S6T*k;p|QRbD>Gqc?` z^%mI4Tlk}8IyCA@SwZRh`a}i>AAxKCe$C?|yJ7J}2Y`oIbgC)#_ee8h2{mAo83lPP zHT8rUK40%5nJ9eyV_|#xrORqd@7z1mf29aI7r{ZPI9=_13~UMS-tDX~-z&tMxN2PG z=M)}v(3|>9N(1_83h;YLbCS`rm|=93K3s?UG<*LM-s8qACAw=T3CDU-@c#w zxh}3ezK<{x$g=|df2-DcH0~TPRbe+O*?lNPX#%*eU8|B4adhLl(C~18HZ2 z<+JpI%Rdx(7{4;-o&Xt%BjaJI%Fgeeh?rl59(4E5!nO(Jm2KED<3wd))C_3MutQKW z4>(UEXd75F<9qhF&i80S_Km#XVz5CXI`~&;RmCZz&K_1;dn8;HtW=fnUoAU5X(g*5 zX;6K-Xh&BDoCwCwPYGk55X43_GR9=*U|lFk{hp#N$TY)X5WQYinSMMCvNKdk{f-I1oACvu(zLhszB|R?lkar1p|k&58FgD zC*4)}L{E-^N~f&s6^@d($JnkF{FG?J;jVr2>b2!77vG?uJyL4vq#1n&EN`C13`kZu z6DnFwh?HsX$t;Kc9-5-6vO>;PpmRjz>r-QOiADDyE)QW_h(chCc$Wu%oXf2=J6*(2wWZ`+nbWa#AS$Ca*5v)mDIju zA)pV1E_y@oz-;&`4T%{TfxHq=_+`ITYnRD00vrbql>cMdQ^!F953;9TFAhZlFSCem zy*NTCofO-Zp*38hZ`y*t{dmSCA?1q>LKvaM#c5=_e2c~Upi@`uAi<`_W7 zEgGL<2*b*pHK`fmh#8GmUlf+-5ea249puUNj%wssI}hz4k0D1YX0(Sa$ChfXH{3{R#k5FEDGgYl>r=FjVU zNtDU+1lBA`7S5Awy5OlgN8CR9y$2ngP&We}b5Q4cFY8SAv4tgjfl)Y}Z-~aEtB29I zM){aEV}i1^y+;LXe`!P4x!aTZ9@T04l*|uLCa22dzUO)0Qhs!_iWl#^D=a)oQF8Hw zphNB*`-qu(F^lA6Ypp0trCJ>;=yo*X8OTWfjlL?T7SBT znCZTS7zm-Bqn|+u@#jmyW*)nxot!frLmz^g$=i23e;x2FfA{Y6;(BExYLb9=Dm zQ-V+O-r`0g#N45S;y6?U?7C7yBqQkW3Bx`CQbUuiS^I>~tmMPrVIN@b;lYD#Sk*77 zgfK&4`KbZ$m*5BHFMUYZA3n-eN@K<2ut&lqXo&!XQYN>H>s5+|W8MM&Idc6)ocFbo z*!Zhw@|re^bWVsm5^R&jj)e-CVB4;^d+O{rXFy`rULO3k=P7uSz!urLr`F{g8I0F( z?AaZz?rS_7I7~}u6b|9bED^o=9@munGNXkWI5u@Wg+Kv*v6y%@bi;g>Ta=)mY|K&- z#@H~>mqjh~Rx!QZLU|exMFH=3)w=}5;(y3VDY+n8;!o*H2NS)eW)5z~Ab7Ufo(-KRr3 zs+G;W77M02$;I0gjnFIeR*O|zBw18nAx86F@1@nq!tYI4_kH91Q>$m2l*FB~TCsGS zbn2@tsxZEElR|bUhQ)xh&%KB}>i(H~bMz<6PLyJVR(mPIn?;v3%a+3nc@UH=sBC5!DSFwnB_8jQ(BW$Yc+LAc_6_ zOZh~TcF}63BMNfL3ztNqJU4q?` zbE6QX1!>uQ7$gTqbMdg zf4mkyJHNIoBc^;fybtZK4f%J_ogH&7HEvRS2jz(EQAg{o-AM8mFjq(L?B0_zOOIre z;nvS;gx*4)d|%r!(uBIMr!!|LE0$H7g+KTAaP_+p6MJ_bo$AcNRri5jF( z(ijL+S%I+r7M*y_FxAl$7EG3OHtB&u|DT4;GTZ@g&qM3jj$0hy(H^;M4I(5)IVToB zhktmh^>_%W1kzt^m#}ae>?LtqRIv%J$9<#C5MOO!mP%>Z0N;jJk4nd{wHN13w<$`r zQ~t=Q_?Ra!R}_hMr=x3}EA18=PDFhkPB2CJ%S_wVIjW0vfh5i7K9vz$!!2NuCcJDoOAkjRVi0_#!uTM zXP%NyOJ+UuAX=s~f1A4Kg{S0`T7D?2YZ_T=V1!H7bb>tVDL2i{|Jfiu{YSs9z(qkc z%k&F=z_S6(Ks~cTKh%9q!dvOJGT$3Smdd_; zK;(Lp?yh-uZeo*JgZf`0#Zfmy5=n~finm}@f-rQD564>XWt!K=hYhMHSj%TYK0J+V zPwyvzdqW09wUhM4g>YQ*sG2Fcnq5HzSB^%4(Qjqd1>S*pjZ6?y;|nS;W=k8!vx2{r zjFwZtwjSM{99OASP3`k#~+{Gkv!#nyQj_J$&K<_ zHx)6%E7R9518Q9MnYknbvJ7yz$hT{01@KqbZ_Z;Di;oKAzUr&>z5jB#_95~|*BXwj zKW6Wo6(OJ3?}PonvO50_m7aTWeKb&%?d^;?TQ-gc^HGKnFp-1GBaOwgO5)lre$Ltq zyw!Znij3ZtV|Q2c;?wC&9gb@oH0RT$<7&$kfB8w-1F9MQiH1VH)SoRgDc{!Q8MkW0s6W~mi#})TwkGq;XXnx6pJp=;8NNuVs|)xh3c6J zUHCB7E}Wh_l+o&wbG4hq@U}&A|MOJhj7$Htf0#K|0m_kg+e^=%3PblhBD~3Q50-m24jRjZ}W- zvZj@nny4G=Nefvi^-TO;YML+ZeXxqOSSW3r6pna6_XpKe6K&T&b}B0RlJ4&^qJ^v2 zUXr4Tt%Ss1BoLhvZ)7Bx$;SDqh`;kBKCIlP8*J5pxelE3qxajOm@q{o^;H-Bo zrD=tvMmHZq`v}x9NJKNJ$2p=(N0)f4!$>>og_T=5Q;O%@Qj;orWL9|RLUIRF1VE>I(oL)p+ zeh4A4^grq-Kg2wr@@?|kd_j~hC5!}C(S>IXSxOMZ$#1m=0mG@4-paU64~yDyc&j>$ zQzhzdtbG#CO2Ei9GC;?@G)8zpK20}3hlpP<);u{c%0I&9pIGIKukz4B`Ea3nDz@ml zJwK2BcZaIT)GH{$KbPyey*TT?*D0Pi zMDYCdw{5Z$qvm=R*|By4C7*sgL@GW4z{Py3V}n62xg*U$e8!KVu8YUj4p+&&aR&-qLOPlb#a* z{lD&=h2|`XNVYU)-GjNBd07p|f3N3#hGeuc2#Vp3!zgFz(cPb>H#5z%>|7fCW;T4) z6Yl4VpI^t7IVRqi>viyfM}{zujeM@>!Z>}_Dv0pIoSm-c!7Ibqt2v~D{I+4SM2b5` zkhedPUl4L@<2=5Xsn2!LBjIpYhN3!V{ebkMQ9a|62g?0w-e6w(d&&FagB=>NQitN} zbTa^Q;z)agtMu2L)5)Fu=XJi{h%}E?BZt!KSoL$`^}#NTR&>@o^(jwS4M5+;TaOOS z46;W1`6oRir^u#P-O1#wIXzvoI7>s~XB1!jBx9d#m3@SU2yN)3s|QUhmq~gnfmwLrO651vJkW!s7^k?OU;823F7EV)JwQz(Ncl><4G5Hx~*N8U_RY zQR;NXxg|HHy$1gp5l%R*G1)eZRvOQ^LKz3r`(fl|AR-#_ca%-Qi^%&n<;nIHbG)I$ z?}%kT49sy2Ze0!4aVSJmOvMr+@V<8tl22wShh)Bgsf+#-=f9)Puse&x z(i0?MS zKQu9tx0i>Q?`&_|qF#oLy2^?NYU66pR^>~`l@7e#PV*wmNn|hiNv9bo_;?TpV>JNxk~dz zTZFDXW05qvS#cctvWCG8G5e&7&h_+tn}~HhYZ(y#IhwLkA${W3IHDoau9ywlSv;%Y zSzVk9dg4Yd)(xfeGHY|>h`V{^hBTKbYbJA%pwd4wIK$Jv@7>-LY5sbOM@O`efO0Nq z$PFQGS08`oHoCxgaRPb!BjDnM@#TrB|NXbbk+;2iU4Pt<-^t@L-UyxUqX7f*>1q|_ z)wW2XQoyqV5i$pX3;aU?c&Af>GdO)N9T=hm-kC#i-ZrG*?MV4{ETSFL zh1&7hv$t3or+Gr=EYMJ4pGw-ol#_@F1W2Rbz;eLDqpj_is)zk?c%z;Fu zO&LYX)(d>YFeV9usde2<`cFym4N0f&xcv={Z|JI_>Qb|4C_3tSiBw!oiWgf#F3`C6 zFtIU(`}TT=975`>cbvhATDuxjuwLB#I1%PNU|ytJDxYkcq%YK(tJNZ+^-N+uoqA_> zX{D)u1h&A)jozrSi_bT2cdPMNRb3-}1*X zDdOnCMHGHZNFV?1uL*tm`07+{^t&Q=@1VR4AQi%@vO#fLT2t8K#U+2bR`81KxA~@F zO;>w^Jb4CbO8NWi(-~1T*EboHy{qY&sf`|dOxzV!*)D;N-nFpCI--L)MaB1Qx-ICF zJ@#=G7-GT5MQ<*o*eeutn$a6eduN8faK4mgMX-=0Jvjs8B#*0-(}3}<1~05zo49K- zf#Y_ckWgXo{%6~M?2izjITN>wzNf~V#vQdD%G_uEa;!^j*BVgQ=Ld?1$^SEWbj1G; z6~Ftb5RBE^8oR&p<1t^I(*;Uc4T*ls|DxvRaXZ-^fKCLt={?D#=mNcDM`Ll|>(eI-X^$tL3LhKH0pxC7 zwx9^KNKzOl{%50>k1z{gTJVegVXjP(*X4b3#Qan6iBjs-0IiQL0Vk zug+*#o}BQE>#{EpPod}P?gg}rFx&2&X_i&vzhV^OwKStw1N)@S)mA>})LT{ac%9mv z2+6&qtpx6)T5Z2b@WYsW-yi*ztG#Je*@^8u-=|+Kt7GdAoA>Zzs@%p(OJnlS47Yy7 z<%E1K!mw7eJlyFV=X&;@D}m~Tb#fcopS<14R?8vq$6`A000;usR;%pB#D=sF}13uj$^n#)N$SDz~ z&pJJ}uZb?Gf1a96b%G%(4c0-v)LpjKu1MkP2y+PN@{#b#%I@d=shm?pJ%N*?$WX^0^lEphynM5$I z8h?+6kE&-;e4Im?;)Blp-uZ#eKR{P*sVoz)Yzr#}Ho9>_l~x$JO3R&rk(v)Z!p0Y> zU|o>k_5S=GC(g_BBY|tG((xdd(ks>(^B{c{k2jksab1x#3ZW9!Vg8%Df}%2o@06qv zZu!JPMI0oA+F4k7xXJJ!fjA@07c6}c(cJc@9i=Z7GagiMWKMQLkrP}D8)yLXka8+6 zIodyzQT1R|`~)QpVGq%5)A1!R#Ub+H5;fNOeo_uT1zj6Rk;Makj&%3{*Pte`PpRR_ z$z_Q?>MtL7^O)}m2x3l;yFKw5QZBgqC(U|o%Q0ke>t*4rR-1+LmOh0-7(ZszWt${{ z3c)(^ahitVid|&^=i^s?@n|)o=PSs*+c1XPnZHYmviosb|gUE*R$6%r0i-!Y28>q7$~5XSwu8zHP+mTug@7 z2z10tm2D~{{OqkB^@0y-E2@@W87@ei)+sE_eo#fzS=e-~t#>r9hYo{TY66M#Pym*= zJ7{>A-S>}WMTb|1~yzDJ%GWK33yR5rr%&JX?X`@Z(L{4SFYGdDk?|y{#WwR5so%_#K}P!pCQ&bNAO~3 zpltpd8SE$|04VT6S#AxH8PK!602~1)@KuU-0g}_nKV@+duX74&gFmNU=8E!d7#gXq zzbQ?x0KR8!3h)RFaUoYQ>-hv0RUrO^AN_rIe{%o-c@UdGlttFtrQD)6;GsD%C2rjG zW8ZdX+j{e-K8-%D#n{TvsV~ZFAulm{iQkCL2}F&VLtKYU-W#f|qqtPT^5}l1l>p5{ z8a!nHt$%~RZX53@H6-9hs;{XuipiQekSxY^PsVp468PzLde4bfNMmEHKS-8pE0vs#&|Nbz`v927VCRTg}kZ$|*`l4mUVC@t=lh?3Q0aX`cHgfGMU6#jG zQqO+MrtQ12{TN=F5UNjGWKi@70LGY_wEdIRbA z8eOBhizWvQ6~Z@57e_ne8+jN8Tnha91ac;Z``_X4n~%&OB9P34Si)x;O~7!_Fz^)e zfigJD5`)uoJz7D-KXTOy;+h9!PfoYxY@adL|1%rVn%>_du>AkO6#Z4mcx(5kft&}c(|G-@w zPdu%)cmvJo3u2)PQV5J2cIa>3^GYosG8+QY0bYQ`#L+G2m9%;sIK z@|e@89(On9M5SRJX{SNkJPC^aR5g$7hj5LM5UsFN!Z~}vE>-{DACZ?3dm&XEZ-PMy z!fr&MugY*)kVkO5PvT`q=@_RWGwSf^;I1?=Od+-}-fD^N#Mu1Hb1&NXAL(*h7ZGr| zAa@=Fx%=FUgZfgdn#5B)RB4AZ$98;$8y?H6;0i*Jv)Fj0P3hZpC#-P}wXCi}t5ZA{ zFN}6xBgD*btrFik0O;oOL7t)gL z0_YfHg zApsrfB`Q|}SKLL7AErI2=O{G5~ z^}kRI+@_R^St}+Qg~{DSx(^##Oiq;u3{j4v2aYxGy*IJONh5`hKhK^m_^AvVl7&Uj zw1dB@qN}JWAE6Y_i4x+sEp&0;l;+w@=a-*UG+Vp7j%;%<=uZttBjdlBZjz=+#N4zE zb-9q$RSxguoWyla)8?j9nPksy&%3cnc+)mZuZ}CC7OOT20vhez81qN} z#Z%z)qvGXH9f`x0TeNGIsy|+5_@0UZpwu zJ&jil2AqSWKwMJmmPb{N?JrWzEUS;36EcYoRSRS_QN-g*LvDZi@!Qhi8u({7{H~$e ze%v$l*)t5x$OX3V=G( zFNZ??Nw}JjEvK2f1kc&XMH_9nPP)IYp)hT=y@xVdHw89hTD?@#X*eYOYL!Y%mRAZa z$CxIWjay;b(M`QVo~;(zm%pc~7{f`^!Yo?*hCjJ@TB~3}#rg|8yDPk6UEDBc_4!N! zM_Dy>VcxC6kd}fHWXXFukL4J< zI`*BzIRTUXny5eR^Z+{kc{h6=4JUM(M6cBjNYz9sQuojeIEL^i>yN#Iwn^W+(x`wB zuY0SFytlDEY5>TRa9g`^vhih0_pcXVPn=tVP<4UFHA?s&t8|NPEDkH-pF^QtnY%T= zOUZ(P%E>ra5*5{p?D!0E@nCon4wPROXseldJnqzx%6cQUDH534*QV?^?%0WOxbqj) z7EEAkgNG{T*#7llMu&{Ej#D)c(EZ#$PiVOTHUxqb@ZU5c;5ro071fT zw7B??i9&ARWPEa^0v&BA7EUYAD^aWNUhRqavVp!)V@$rB>g@7;z3doAS`f{XJR}fy z5KXv5*eY|mKbz$We@;2hpOQ2KHIWG|6S%pPMRl60?d2TRG9ukrQS^H^=TA4JIai@IB{50gtM~^r)E|BY9YLZb4De+$uN*r2oh<~ua(0Zz{ z6sL;R7C#7SMa4j2M7bT^;@sI$Q>Ea1U1w+VH)nplyZSzBM1@v^sp58qKGorU*M_G} z`I}1lO7Y=v*}3UaeVNAU40^8%*%n4!_MDex75gl44(k-9(^-nUKdcCPB@3DP;-Y~R z>}5l6c;&G%Yc3881}5GFn1a2Ct(XuEl^iE-qHQ?GA=JD7Q&r19-{%9gw5`)u&l!)e zfX(}T;iU%MlsyMa-P-P(^d0PobN~Y=bK|tplbJ8kenmA=(kT2rc*xm$J z@%;ClNsYoZx|iI#_TgznYX-skpGhnFxN9qO;u_=dMPpW9hX~!X-E2}q?S+6pktY6o2_b_UBqF0rc}rsW_Rm-rq5}e#=}U8 zr_{$8+pMFJPjp;Aipti)MNADDOVp#y$xcdlCv^sIL1`*H)aHSCyGh%Mff3*UkHa^?R~0*u!6OesxZXPPwUmX^EsS>?A*t{;w6`dmILBf*$N{>M$Ek$aMN z#q*6+8Fbh?iTv?VfffKa$*Pvn&QOBX_Mh>CZyuRc{Y{So(Ycw zsgyrq%wha_V@YeFVDnes$cE4%N}=ZsH`W=YUMD3!Vd7@GaAC+0m@Y@ka3?0Auu;RB zPbJJY*`U6U%4?5O{b)Sc=^t(k~&1F%y z73d1KKp2-9d2utVKkgUFu#Y@0D+_SCGng7(b>L{n!Sc zr43J8TA)T+e5L5CJJZuCxmxq76E}a(KsvJ*KBQqy$(R*P*srKM=p{F^!dcUT)oETxzKfLrV%olCG2xFq|h^El1?O)aEPa~K$i{`p_tV>&lOrw!S=TX zYcM&^qWIjhX%CAE&knz+Kz|RsBF*oI)z>z|{ayNaaMPL5x(i;haI)Q;et&TtCVf#C zYkCn+*V^jkXp2TzJYH#wyiI8}y}~e|v) z4ERTh3FgQEzHHpj@wNX&~LWWp5xI7hS@kg8r)8H29u2K>W{9m z1hucfquMj`yqL>b_M~mSPV)NFt?ZOmi6Y||jD7W!UiNA}&u-)~HRx21xj6ao=?^L~V+x zQ_8tXv%mphP}LA4$JeZm4qF)|6lRJe1-q0bXZu9{L3+zzgxa`Ygpgn%g5 zQv1Hf0-YgNZx5Uh7Vcu=T)6c#)8HcrmgcuYnj7|)0;y+TYQII|uy#BHQkUz-iaXr6 z@rB8sANHRKO#t&)S1@EKwtr7k5p%d2qMqNgAd!d<;i( zO>-klAT3@Vh!{~XYckZc4z%8A%0*dA};~X~eb5w?NT>O(=aRJ={jVDB} z>Ygwj(1p$y88KgDEl8t(ovPoP+_J3FU|ir3upAZB@X z>Wv^3@jU)|g5UAzAznCtN>9kh`>NI(4jRt@8s;dT!?6BB-Ws+;n%D2NiAJ>RnY&{m zBPG~@icI{1p!>!SZ{xkua_i3UvWsb}M@NRp!sS%S!_kzIM_g&SajWZ;PYc504m17X zdqmMy4RY{^7YD-i?0D)SNjaU`?(afplZA0;(=DP>kMRL zxxY2Vp^CNnF5u%vWXvXf%lCGF{6K2?a4c~S<`>68S&8sE8d&z90)CORzB7lcriwo@dSo{R z2G*FPHS1?H(#O5L4Ldr^*biA} zwH$3qWO}rS(Xm1$GHz)!Uhs|-n8PLt~cCN7)Z6we$kd)rDok0R_fOD>n$a)fCz`gG6liG zrO9^E;E|S32EsULek3@1;nLH|FS`q}*?H3qUJv?m&Db%8zE95Fw+Oecm9B9!wnKj| zKLy-)Dz;9P#X%{+2L!g4_&6pF7{s?v25m>S13eK<0`}_nF~u+LW`G0}3qC^t>ikI~ z@+f4;n_uUNd}PCkG}SV44a%ieafP6E4PS`$iW%S?Eg=mrO>?EsyQl)ckaR^eBHI;jA=w*>C})klLHkFB&%0A?-yzAyg{OLC2Cvs)XSke*&N-Y$^6#m za9~6Qfz9GtOisx9F{P&tf%>SM}JMQe^zgU6h*qUz@}ao^j1R$jl4IpRYxQbZVyag zNDh~!_}u16*TF8mfa}~XkG_guBW7Objk=l5n@ujh7DkD#hpWRP~`D zKXIXS6Mm9H@gU)Pmd?|JEFLJYKPu9awi**Mt(lj`2{o;V^l9Z$}(Dvy5u z?WL^0(7H(9CtP!m+#xwK*dS9sea;|9=sKR2M<{Az0lihI{RFnIVuP|$A}TB2R2sVd zsUbhRSXMcs5omxiWf}UZTIFWQ1WHoa9vpTH?uZT-tQ#-I+bN(;;O|z3 z-D~`y=ncJY`udIS4@pmKpi_Xwvc>vxh?&Rv17b(Q%ylGlex~_~VtLMgW~9ONe$Ieb ztfYJ;@E)<9jI7>j@g0hhaEbgTcUi~I&igiv_?xJ~yjO9**iKiC`A1iAZ8Kqg@3->Z zK8bBHpKYhfY0KeXK@8TFJ1=gnpcf6xrHkHjGq)Qy8Hn2+4M|DO;)zLEzZb_dy-UA~ zMem+p3oquHP=c2lc1&Tik|jOJNl* z!6GL2iC++Ir&{oUp2~v;RL$__-o?_#fifbO{rx`JAed%K5pz&-<4zCe;n<2y}36m$^Q|*AuL(@E)-~Xx@p}SdwW2(U^C3!IzA5Y`hM13Sg(p?u$LGUK1S} z&Yxe~v>?Yd$UKeGC|b{sTM=vbvCDJZp0ep%nGgIeH=u^2%^jJOviTV&l-<6ecRzND z|7iwAz~jN{aN0%7e7K-8kes~b%B+ZHhW54_uX7a2{pRhETr$>E~N!L=pvm`&P0r_ zV;pAALbMe~iV+8W2PXbwZ+pzHI~YuwFs=_SPkne0USW4X@;_7fUtf=WHO-+~^qzTQ zb~#d^)5=7JWzPE~F5y^XFyr z*A|eMQWfK-^&ob24sFo#oe_@m&Irec-GFP z`8Ep{}z0ax1VVt-ZW{PsLeWYJ_d*=4}_YPG@NhqrWrBts;Lo7HWKytD5u z4v}h9%<48*yg~Tq&rfrQg!Ib{cJ-5c{qYHXxD>X<8?jf$*zpJ$TfQ zh&wfIE|yDpf*(?CLrEhGfFCXC*E!*CbXq1`lFS@qTGU#;hM9EA-LKr&j;XE+{`$XR zCg`o^^CGvKFv6%|dtMS*x$+CE=!Ejht4Q6-Z_#1`+kg=Be|rH&I$MQfY%Da=2nXdd zsY^K(Rj9;X@^%y^r}Iv7++p@yL^fM4VQ=;JjcPe{se6!g%JC!qn}O=yOsx1HfwV;D z1$ljK?!;#WgQu-S`7q1Dra? zFT_$#S**a!NRl|ywp&wK8CWygX&J1EECN5&FsE5oXK_LzZXi}fX!@kX6FQvPxVxP} zL$BA8t3(&#yS&6L^Duob;Xe)A3~G5Ic(75i<9|3@8RWC{B zEg!W`0vs8)wh~#!tNo>4S)QEsT)($>GUZ9KW{P$9X9bVaOeCfw_~oR|>n+m$MZW*$zfs&h8WRqrKp^0Z$2 zc*-<5U6^0wD;-=OXqa6eEyHNe&g{Ssjt@&Wyoj1VGU?ve9xjNB?h&fHj@|t5S2N0O zj-UCh-Y_pSm+|_IdUd}JFq^wWw%(yshkZtbL>BJ0yEB7K<}(}4=JlG9cgy;E3ty3< zdnPX8-{n0hPj6Qe53bsNWZmCCES$GBJdtR)!HrDuy3uI)i1d*@goi19zp9T~cAdLr zpK7nE@OEy#KIUw>YlNkH9PBK$?C&!?EDuQQ%>4>E2k{~flc>f=Y%&j*h>|=5uIVq= zZ)7|cdFlWB0oA+gBmy`2p&u!JcM+C8X(=sdm=3yX)2>R(EFk(Ikw}%4ldhJ@a6B!7 zc*mi~%1NVKmICmSSAzhmaL_TPhM5IDjA`)c_>x66^t`m{x^9e`Jc%f3axXZ1j0w<6v~Q2 z{G_)aFouWf{i&w7iR;)`kVyu_5{=Pur<3^;EF28sOO4KEK?{XKrjC&G15E_bDT<7! z$BpM4%R7sRC(2@$D^MH(8e*H28P%D+V{K`iG-{fBHU4}5iI(sD{EbCw@4U#1$x02k zLYl}~pyLK)uO0J<+pd$~A@4Jy;1|FKH6ur|Rf3{p(w611@zV(sb8oVtSWtksDqX~z z@krYGMi~H>pHEmEYg>y|mW(!j^*j8vTW6Y=bhbg*#~d%7MXOU&kYCT(;I=Z|%9)46 z#v+!GL*pKn_-{FnN?VT6b7fx5BdSvVBE#SB2~w=|UxN^Dl$sy^1mc6=3aa0Bu-T0) z2MvJD*&{}!{0n2XEzE4A=edRb9=)DA&#?Dis0~r*W)*6nQ)XyKOKZW&^!+eWCrM`T zA7lSP3|tzStB&Y%T=(@rpbL>_L9VttYFcOx>G|JY;prqHE%zpDZc-VHOAK`o#I zK02s`{lx`Xo{!i-SQ3DuN@~=)OhxcN%PKxr+3kCOH3|jkxSB19hZ350nO|1~qQec^ zGh<;jmJo#x&_{zu!tzywfBQhTEy0mgV{7oucg2i5Uc31>!W1+8oa!>}DiWM`!b4OQ zFYn08_G?9?ntYzwj=YhvOY?zTkuhzz+~J$u$$Ogm5Uvc=8 zko_!0mbS!m%8B4xp6AoG$iLa%McCeJ(`Tf7~0|x9v~nZJu$`(7O&p<2u(;!(C}K)fS#g` zN~cNMPK3=_J8}n`(|_hp>}p!~4fboAnDF3C}~yx=5^TH6o*&Y zN8}2>RAz*KYuJpW4))4jEVm^BV4=cRqfPd`|2h)jh6c3U^u^4-_d`M4?#npD` zo}V0|t!FFJnJXq?l5uo!qqF!>#D90(L76Wlkpq_~*M^J}ifV9@#EU1+?$LzJd)JQM zhxTvy+X&^BAt)UQ`WG#5ZK8+gI|&^c#vHUZ~nl`Bl5j04eD>ihcj3y0L67hz^d{jf-EExf#g#E zN2p}Ql$D^-%#|}z26hLdeKTdNe`s#9`osm$e1C{YKbY0;+_0%InC_mV$hbmTMK&@U z9kiS+?TNih45-`X22qq58qbL$eJ(wByxn9ybfUiboVOdzq$Hy24olL%;R3Vp^ zC8sz*stIq8#~(Uf=y&L`6Z|k}7VkQLjhk86J7>+R0ps?+)oDv|lzym~8x^!;ft2K5T8bjeM~A<(gl3OPqn#V-{8GdnXot4JYqTDr|St5=fqVz`kaw!v|=F=4Ct?*}|5E3MrCK2Cp&TY2#v_=!mSloHggvioEhSel?VEadhvY3X7H%ah$=3QKTp3) zmN3%O$7nuUeUP!FP3@i;0!R^$(zCZ4A0pj`KMbLG`j!sdCT}=@y%zdz+*~c3K&6xK7yrUrJA@|>M-CR z^ov2m3FtFtv(Y{0*>#%pphb*TsAPIUx!6|Y)N(Gj8PWW)x%Vc1?(o+P_h76yl&9;* z?+Sc0bN^f;9S8`#eA5UEtlruO3$#qO^?C+?MwUP(;c)wJr=B*e(9kTCWnq?)#xIEOh*gd+YxyG zdpOsc{o1~{sNJG|4|W-o>2Y_!U9?8L>hI`W6X+enC$UegJjy9B!tUVaxU`TeDR?<@ z{bgBmmD)OYVPUnDMx_jTvO3TC9@^*dzyyVZ^w`DR8#rrDSK8v`;#xnuubdJumtEA= z93@p!m2k{Li84HBgQwPJbMcg3D5j5N$oAS zwHP8Uh7>CC4VXAZ+%gZvGIYVa@g#lUuk1kNwbgz6BKvr@>VOb7f_DEjdYaR^+qUbw z#1A$^LO-ld@F1`V0hHcsZYy?3N>7NCn2nYf&^L%azpO3HMc8XA-v z2H1TkiW9mNkg!4@nG0rk*mUqm2?-5vW=gKrVnn9AuGq(!NTrXL_1xb~-xXK9UffXm z-temK>v5Hojk!)`?C4E3(E^)qw>#esz7G2MG!n(0>FsbycRdk~n#;P42j--DyKsEB z=Kpyc(lOD;HEK9-P+^vsvGf^sAv+LBFC>IY1!0mdrNaoH6ZCb70Rf|tMRNXe@(PCD z{ldeFVPTtxj?^dNVKF2tq)iBU{Jb(7;$%Spo-P>2?P6gm^68xF^t1=EBs;U>V7#Ht zLPgd~S+|Fgf04_yLKEUW!x(X^-ea)D#!fZm!4Bg!_l0;)n-^l&)2Rc`PhygHT2j_| zwk}%7LW5Y6mPa@(Pz(yuQ47`yEyY=Hc#6CR%Kl+(U1TYYX$r}gi)w&NZUc5J?wv0l zE1?uk?UGrQpk!Q(Q!Oj8kctNG1+B}|F62;G7b{dqQoZ(J(CQdyLnB!M7+eZ2R;E!EChXVELxbm0%f)-P z4Grh2veB`zoC{%zq}lj7tum(mN|Zeq(QY?1ezvw-m+=ujtP#{CYzOE<$2E648Vnb~ zN+Kb&v==5xCCVoSzs#Xa+Tx6SFJXapcA0i+tpqvMJUKs)@-IamuSNN-uz-zLTU|zv zA+g4Oqtd(CUFC<$BQZXgBwep!pmF>YCY7l0qUhM@epeIE$GbZdrMcN@`~rDpdyVsk zElCL7$AkA@e9c&AOL-~^l8L`pIN8Z^1t=*o#lP?E(c@s5MX3)7yEWlN*n|DsAlZ@>#hJX7B7sv zf|(Lxx}KE45;c*g9Aq`=M7IN^{nk_F<(=OhBvgbNaB~+}4ET3Wwen_CFXLdR zaa{dV{(;SQ3k?DhRl(mxEwuiw*NnmmRXx=D9EuC7MINySV3Yb>y5`)k0}+rGKfZT# z-e7)9W}jDa!P_f;+LK;oOF@AbAB#gwk+!(i zJL^G)-tQ-z?)YXY*UV&)i;W>DNsH2KbpApGKr}ukcUX_O>b*HwHR&(GcLQCyOig9| zYy;gNB}PvCgxX+~MDGOt4O>V4+gZ~3gXwdDOY740Y{dt@-$6^)C4n2e5lNw} zB=r}CX+`TJah(U6T0cGrVHlawLHLL*rAd2A-}qFkciyp>aIhyVV^EA@!k&pmpqe^9 zZBcJM4++HP4O-IffsC$r`uBeuA5T_X+~+b0jqYSqrH>kADLt#TH67h%IvLPtnipo}-?@I*Enn=JWVA z%A!T|=w!`5H#g3Q;-B?5y=bneiO|sAJ@a?;N zex|GyF5MFOK8W4ndrSIM-Ts)x#p2ex&CSSTcc}KW`VC z^QtqY2+#VW--%+NJdmPR%Q?v8xOq9!{GkR z(mjE#k7CDHybjTJjVBwO(98ubZG28QHik-NYq6m(ah%4#T^B6_f6?~x+ha}g1k;@Z z3IT@f`;W{BsDPxIhH96Fl99~F-AU4fM?MHivgxEwUGaN6Ji%)1MCmGbJpge5{!49v zW3c!(0)@{EOC`zH*HMNl!~HkjF6HdR1$q$qGKnNdRyjZ7eMFaXyFL?j z9Hb@vk^Y>DBzAuUxjRu!ZYqc;@DdUXBF8{Hv@Jk@$#Y9q&{N5va&j=5z4Dw*Zk-d| z;xEO7op?KcGxy;3sl`@;-cm4AzJck^FBoW4elf3vVzd=Qwl6lR&@pc)NMUG3yvPMT zV(YfG0|{xLK0vT&J<}M(Jh2YV;;Epoe=58-%K6>@dhue}G*GY*@sNzGNMuJ?Y`UP# zYLz}fv5)qm7+Sp+hGTRW`GWHoqzBpU7?=r-6=oH0xoSy~oERi7#L-ZE7Vk{fa`tvt zfL8r=JEV{08v*AUyyF2H&InCHF1v~SQ&gMx%ILBBpDWr9r8K3KqhjnFd2VWPtB-Yl z(qv?u2TkPS65gE$=B(CkiVd=V&OHw-Ps||7`2{3}oWV7H=Rc^WRN7$bBH*Q&tU?V+ z#G4PeaJhl8;0%xWlchh@9M-PWMU{Yji4z)PBOD*DM#^dEhZo9dmV-6uMNJ`t7b@bV zNt|r*IZNezSRQeo+Bfy{p6=ytu1q=wLzJI*X{miF!GSC;U2eprocVQq5_s;z-OD`# ztG)e==J3y8J;dLr>gk|v#LOahKaHNI(*)B_V${u2zNLq0*OpH2t2V!v##P<9y!Ah3 z7uQp6^uAB{+F)Gt=mqBP_pP{mG(MLqos;O&vSyJe(G#rRrJ_;T1FQ3EYWDP)>?6b} z=<^3dE8;fNpcYalq?oM2MGQUm;S3i8e+BLHBmVwi=v}m$;X7BDHVG=YFX-hbeJyiM z(6?1iBMJD`Kftdi)G(P6403vyW{yV7?$cTJwAE!PuaKc?(XvcSn)xok&B9y)CcJqQ zU*k^o$eeeXodxL1@y6afuo;igQ|c|>rxeGMJ}G$k)4oF%MdAZ+pGgOFpww=bg9xpO zH;vexuDCkHv`UueP@pm`-9}`GN+qUUxd1?Fo<>BE zd@hWh1RD4q1?n3uu*|XW2oaX>3|4;%s75P*;_7592uuQsBE^ah;#+%Ii8u>uG;#aR zAn!nN!D?SM*4|3F{*3AuD(=_o>E>jx!Owf7_XH&X)8ouivghyru5{ruim?m3?T!R7 zPb~?f*WEVke#OTI&E{Md$5g5zacI?VjuJ_&(F98_87~)zo)%<~NKP4WYo3AV$hjwhpbVk?ZD=g|AC9*f5bz@c)86jkkuryH^Zp`LG4>ph-!Ah+f&Q)Z`* z@^AOl6V37^D!+C|dRRw}M@&cma`dQdJ*z}26gry7a4K%-~Z8}G^21Q4^{j2C*XIf|69FKxl3+4$lpC&6kUcv zJlbKw(t1QMjcnXLaOr%hk*tG_QL?TMcuO6iR>quLG$v5fqIDbi!{J#rCK5k(TuVRVu3&;|&VbZLlm_u4YY`q>?RHH84GGimx(=7vKMnse+wrFBD4*lvpT!|g1 zM%YLfu^&Oq$Y;-L zV%!rlw&Z^bA=~-;z}|M1pz3#~JR#F@JJiN=l8u9#xGcq?Ia%x#Jvyg%Fw(kU>tL_! zpn;(YfE&biTlPS$B4@RVTD$|#QHbVCjf)&hPaq6}PM!~9_H$)!3Mb+SfWkW+f#Q>6OE&3y7&9&j|Q z!46%V>iO3X<|l-5C!iM`N8gy1`vb48Y!O_#>*Bs2eJQudNW{&P!-!R-Bqi6bUHN%N zr<`<(9?O}N0VB39CiE-JxrhN)sUhP^qI}Fu;+Gad+LvT`D~SA_Vp>NaWs(o#jUu%( zsjQoKg+)*?b7lQ#{&0kS1zpMl6n{zM_x|pgTM=}F)bUk?3c0=121FaEe`aXrdrz$onGesN+p z@A+Er`f^~uwxOYMcWq5^IQECDG1PXtxvUkRi!#*H=q&?B45JNDF+xM3xTiutgywVh zcg>Or9j&U*#K7_?9GT$bEb{+x0rbRQAw09lh8F*9B5?m4QX9=-LZ>m4P%6E@p8-Kz zX-t(gL=83#`a#3lEED1>Z|urssB?Kd`^lc;q&EZ(Q(pTs|AW?09s(bZ+M??NcB$0ZGKL zVEaeTrG|rIx5{&(o~6Ip+Rq$oULR6LziyO`2x#ZHbTf8cT$6QqZjeKyY(ARoymLm8 zyn)`Mo!gnY^7yW|S6ezLV?u{E4OaZxJq8u~v1cm%AAM8|bGX0yg>d`*6AW`YJdP zH(?CDgz@+vl6l~d7p^{RAJ(+p_>t{QJ88A8AI17_4>&sL&7)>#d>;&9;kHmF9N3qDA8USXX1Agrv0rf_&O(|@9(a{ zRR?}?yZ#kxw`8t)2=LO>!F~n;!!VMvJe@IT{rZT2o&$i-q33nwmcJyFyUBi=cwg6hjQ?@8+^V^hF&Jr$oT zf8*L^NA7WWt17hM4wGkR^&3;As=9K>p9n#*(03!p_v1DFj7$yayuRz$FBgLzuScC! zPcu}8ji$J*uh#=8SR}FUw*rS``hI&SrRC0F?x~)v=-5A1sGwpZ;s`-d+2T!Ee2(th)I>(z4waxixy z?-rh0f15*gI?vI$K0V@Ja#k*T+WB%A;Iv=XUvueo-PrYf_;?dr1{-#13%Cgobv+)~ zQ%%{;y2>+?`S^a)ljA|hW9nA^0)tuZ7ZT)gmoL}_c32HDZHn3=dc$efSQFD^K`Rd!DQ*9}d( zS|VCa>UH2m*fi!t*5bdFMFfAC`dKT-PH=pK4~ONaaa49tg6AGU24bZX=>e4R{T`ee zzY$#a(WDOvS=147Vj{UHbbG<9f(KK)fbDJVvUv2@IX$V5!Y9G^lLo3EvCSMzTh~x8 zm;bpNveb^?Kyk*EFmM7&grX6}6yVOw8E?+In-A?qXOTb;-~v)nKeR+J8{|m>fGJFh zAR=s|sjTy^xG(*fYYhAaNolkyugG%&r4p(?4IWu;0mLNX#NnpQ(=?#u_6?|thI$&j zNAaB_U^96WtH*LrfO$oZ3SQxs{Y6J%eXeojD6u)UOU^7J9|wyv;A^NgMKOHLFcm&N zJ~$YiPuFXYOmFjWrnMZP$Be*&A|r7_mXCU^*FO`E?H`mrT2qAQz|sH&HBww3()Cn} zru!NXXzcB1PG}2)_X?^7AY~D8pA85g`^@nM+^UFGQ&fto;YzZEs}qSQ3e$y;JHaWd z%e;)|lM5NYp?DuOig$y>r6p|c)B#I3P!aQiG*!SLRZFSi^#g9ek)Y7KNy6+q%a}fI zf?{{I*pI_6+Br)P1@JT8iFe%Au5(>%OMhYfRcibVm=#}<*dt6K$T@YNX6B8vX#!Ix zBQa*d-_Ev8EjRIInA($>asHX!{@7+JC}Otp=K)6%HY>oi;n4ZxP;a+|B5_Fxb*JX@ zzusR68bax~cCmw1!?9!S)wtaQ9?O>tw|-|^bF25uM$fMMh)Yym`%$@_ds}Osbspq> zuhHCj?YHHT*0qYH!xottgG*h!NewC|FQ>>&jFzC{{-jPea2mVP&VuV zkCd%1Q$!t?x33R3C^^1mvMav6c~&DD*voFmyCN?$C_Y7wv8R4#sx>cnyN&_kZe;9Z z$3!CTtI}Nomm`3K6q%!s96_pnyBQT-zEc{)3b*ISu>q&CHU6(erz@PM{ly!*)vwcV zkNt+v>w>a>TIFp^uHP%Cw$XE#sGo(wVD}yvAdLOe@A%px$o935RZ*hc(PY0KuQwAL zV}B>%a}2033}xf(p@GcJMzR85n)&mG(;939A#x=a?85Dq36y{Blw%P&uTb_st|(#j z^K{Q3(LB`v6$3Y1*`yIxQ@12#+IcEkx+0FS_;#$!xFD`!u_iK(bjmZu& zZhM*4w!P0jw>_A+2Jd%OJJ^a5_|CM1lGryN(SDKNMJS69Ad1WQU4q7_VxhJE*;(Ee zA@$OSxK>uM{=Pzy;v`Zd`{|8QNUMZK{PiPJL)a!CT58)A{X3RSq*P?MLBl zoda^V94lIZe(h+H9j+l;aSQsij6XxbYc8&h7>3Xsaw&keY8_O@Pl5|{We)qBIMrwA zP5~gu{Qb6NLiC>=ghWe z`ofdD*0=HW4=@|n&)7bcijf|a`0qEo60UC!&+Pt|+t~`L`k?q;TTT16FIK24(V=4V zxtEQ){v{3csxWk^E4K>5J)~1JkhMsP!tIFKcgaK_mN+v9a$lE5 zs_!RKoQ-qS`zLzMwT)e$j{|(oj(>0Eb{yTlHZWQVo6D0g=}%0PD2r#L;)hvo&MDRa zu0c}Cy~SbDQa@{xe89K8KE7r`V^WN5_eH<8fL3@8sf6{PXZtV%~6u z7?;T5=^HW`3@jI?_i_opqW^Kih*;?`P?8J@k^Ta7G6?dn#h`jO^4@20etu*$O9@Ix zW2%bS3pU>LtaNdf&qm{E6g04i$7Ue}%5yKdHV> zMC=+%xISr&pHjj(M30Lv3;B(ZRF6^-c;FSqqpURn{=yLc?Y20%2sxXDE}07?t~-SY!VOuQKu9(SqDM7}^5PeK!b$M!HBY2$0PhmG-8X)5 z#mdjv17OJk{9(2(4{jO;XKoU}h|4*_L^-Yq{2vE+Yg(Ort-qlhPU7(7#?&HNb@-fn zopzJ0FbvA(K6mA&XAl#O(^xe-t6Uuy_I3!HF-*5I!5wRF-%-hUW60IG)>djO{fCdkLgtEkU{PMgv~OvH6^Hp+>CKXU z13{N2lmkwnM81r`j2Hksy!1ixK~nIBK$I=NPJ*9!@`PIkhbXC3_pX>T(m21p$!AFn zD>60meI_>K_$^&0S$p9}h=~j+lgCnowPT_ut35?S1g=|{nx=efAre$ya}j{+ftw%I zkUx2MU|-s71wWHLrO`ulh4oU+Drw@Eid#v>anWja<|66d& z$l=`^IB5V`gtG%}F&x0A|7H%;obSBACJ!wR!ZKS8pC;Y-#r8hbjj*oQ(OT*)*S3n- zZ1m!MsUtt%uNC*V#uL0^L0YVzxqo(w%DuxOl+Kk{HuCE5l{;tsrnaIB!6gGUy$IQx~M10hkh->1!Vwf!)+ z_!roio}LC;%PO4J*inuX>WAvUZy+Af7G_xKxudpmSMp+=!7fng8$^E8V)&WF&`0+- zD%o#nsuG-k5k|DL+Bs2oH5<*8RW(}Frw+pdSMSG;0n#%*WT&t-!?*xV-*DKXsrAs+VMDR3}rE2L6Va-~;?lOql~%?UC#GkzIK+ zj5FW{GBHDrI-kzRz41rEnKb3osr;Ci?gC_-Q7YBD0Ba&!P7ToHJD-?QP*@j!gC@T< zP~d<|#2=}mnh7D!$vZ+J;40&#c>~Bf62+oQ$3sxRBgKi=g{U!KA@aKUPp*07-6f9y zaRIbj+v7aEa|)Gri_(r=JBd~@B`W%qer8J_j@dWMe{FH$VSOq%$2s*bh+k5G=xr>d zML64Ji_>Zn7hoL4X2vAtV8QPxLTyY{Wi~9<`LKXHgL1KwC88XzVL)utHiWo|-X6KW zvn{&aE%C~9b)CNVTK|<;t`IX+0r*jcF-pbU><;9743`w<<9Nn9(!7A|5db<2gLsxu zkO6rYehj|QBm@pXU*C2w_v_V39Rc&wLO^dsE#-xVdkq%e_Me&LP`aYHBGz;99q(hH zn<^?4(1I-%IT<2wdjPb(*soKf-+vA0Hbe>NPm`Ecy4qcF^R{9Vb-mR~Zx~KiSDh+o znFgAm9j};>2x`*%YZ;WHK`MRxWx;$;oS(FXh$w&Y&ccQ`akzNkR3- znV*~Ej3B)BN%IQ40K7zX_Tr{5zvoN7b@V zW?Oezkny0bEJucFfwd;y6gnVJQFCP^sS->qJ&LyC;Y6bL!wRF=Dv-+^yc{+pjKy2S zd`dVG+U8A4_(_{^XR%Bq+%K+|m$A=vD45i>=PC?wTh|0CZ?b zDxmD(FYW79m2BS{jSamH$@_bY!3WXS^Rc$h^K?a(6KH2u+T~&lfc<{C0X|JmN{0lT zbnNPj`kTI?qxy)xvurmdf`*bhAz`$4KEoxV>SSUylHI}5M6VkC9A9gOh8@~-W|Dig zi=k>{N)0ol3?^zoK-lG;N^){ikGVDJlA^&{P~yY-O+)Tv{bz8HFdkM8 znywoSpf@(c?mu2X^p_X>{S34c3tdTIY&AneBeMIS7@$N?&Y;$MItbspgj^Wmc5^cS zCkJeFvkIq_u#rCgpCBOAY(OGQ*N=li2QDnC(CED1^*9N*w%DxUv$T;dZnbuhKCG%3 zvMetbTlO;ll8{j|9hO3Q;Vb@tPNKG4XkE0~z1f|%4kq9Ez-z(GURo!2TH1fup7B{& zeC+cthI90P;370m?hUELc`Wpu6}?a?gShZe*6-Qi%>VG)o{lXgrZTM7oN8xCxm>;tT%xT`>a2S6R{N{9wV5WnCV=}@ zDeH4wMJU7agw(bOZkV*v*5r-C-q89)aLHe(akTb~-;=?1%E2Lu>^LH32G^c}kr+Rp zaF-|gE^sX$>Sj49xBpDwJ{Y*BP|#{cR_n>p;HoNjTx`{B%SP9bct7jgyXudC82h*x z&9_OoBm7DXKgB$j#4UG|13k*75|@MGb>dS>RW!imABlQzGH|L(K{SR831A_n!>LGW z;YPZ-F%^onb^fw137&B)NzvkXc>4K*v!>&!Z%VY|CU&*6-RYrzH@?PiNA+Zx=f^5p#O_+(#VmgB zw&{7u-c;?wG1bEZwm;#kl=f`_um5w#)UMRpSKskn(d%u&+nr$Ck4qLxKFG8;%3klh z<|;lW4v>xfrgm(iMYuHaqoPHo#%XzK7iB0;k_$04nzOm3OY@Zu zJ@?KjwS++ZKuOh3ndtJJfrNy~NjI#U4gqIifQio4NvEfq5)B3Y)G{W?A-gXX?qAsO zbDsU!t!PZB8_IZzmL@KXwl9&;TuEUE#ZlfqDPf6@T#w_La6v26mVzLrUs^eAhZ7+$$0tnkXcW1hSypYrLt zA;^&DOfRoac5OK;+v61fVE@HT-77bT7n#wc0z)xNhBfr4pswo1s=`F7p zvH5dyDg!`kSan1_ja50n2Aj4DvY?Q_d`wXh;UzBwa=M$z z^+k7d%X}=Z-}FL;E%5BnVK&m;o-$`@Fi^N6X#iXHVi^pR)yNdWf%LvK#h%%^0!a-4SVY?>{b}jTZ=$74d{}oXBcIqcmva;G;%C#ENiZ@0k|YSvRrNZ% zoL&QXah5fw4ZI5qcqU`P2AqDKX-)xur{(1mGnf$CtCVGac zyuf-d70>?PM~;Kn){0raM4H(_IeC21FGWdd~ zB9(Xl5r-*KXSR*hwE*kpvb<+@#tF2Ar(_ZS+7Mrxobd11tMcDqGGC16$(H(yHh|j3 zTn@nEFAbu*@i4p{u>r`FwPI&e5w~r=ruqgj_#;6F)Uk8Rsvh^Qn`U{N%3&fx9Ov_# zf_M0$=XXfxJ3K6%yJvepUeH`$j@wm_WUHdKnWkN?n2G(anDyZ?YZg^y$2?!D@~IKL zAGiYN^k&&@?3pOvq>oWV*X{oKGyB{tqzkY){!f?dj~wf?y+VVf#r*1jdt?>J89CdR z1G+3%1*B6wy;#_7wlH5)pX0o|7ca^W&JG8cg$^(mML?R0Q6fa-%FTrYh+WNsTP8C+ z2WT?hU1?_Ab%3kBpgATRou&h_oDa$u*sg6CU$4hS>M!q0gkANWRm#j5eXqvJh$w=1 ztB;#6bFoDHa%09_2?>i`n;qFBYLf|YU)ldv>hyEmHIuqM^l8|8)!OzYD2p5~;H^xg ze43tLwm9TlXF0P}pR_9da++hN%08CxhxHxv#lA>)O))>Zl>;xrQ;n0U`TahYlEg*L zsqYJsbzsqUS(DbHq5F_Yr}g3|3SKJJFic@^i?4U@?fHQpff6K_aE&d!##eyFxsMA= zuWSq1Af3@cSUG3)&&NRt#QBF8UhCuqf22l@vEvf{BUo8_U+SE{G&T=}Sw)nm*lUdA zF0X*70^B|BCQK1Krqg>g)}tfo_gJa9qpFKV)%0(M`Onts*KWbr-P|eNmDa6wyEg3H zn;i@Ixkkmjrei8f@*yOx53MW=RV%qzg^E>{R^i0g+1J;+Km{ zEh8@d0O6_56YZ{xqqA_Kwg>?*n9Ydm_Nl0zkazAYmnB(wiHr=RH_Cv=HRb*IsI13! z^A7{Rsn_PSG*?p7rXkhGN(JMU%da zt4n23Mcd00+h~7^&yClhN7l5~)P#;`33Wzd#CgQagu&_GKgHTN zYhCu{!CCaw?Z3+%oQagwmaTNIm@m`n4jgof%6%^bF_2vIC2X9o`NcrkyG z!}T+RnkmrEC9GE{63Yn*mRpl}%w|q_!b&0osF1=Q1Bg=;$_DiT^YC((bmfisi8nM9_=txIT0%&+#qahZ z|5+TcWH`o0exLUOi)n)3W`<81q`kk<67-1)Ez3M{R(r_luzo|)_C3c+&9Mj*aQ%zd zlnGiSJ91&c!9k|yAC!(-aw0V^`@MYbf8^e_Un#~ly2#7&Xb6wIVCA)A@taLXu~hF& zl?#EX?v1MT3htOS*b%iUOXeh`O>EO2Qa-qcB(81iH0Cgu*vY;t;YBh~b`xUn%>Pl` zsyC~7A@X1hHzN{A2H%33$|v5+-_bh3q&QDC}S)!12l$l&t$l`WwX@Igod z1{NQORSw){xh@lpr`^u>M=R>RFA)tn1Y=&iEABL8)mknPt@#}}j@68odX}1HFO_q$ zMPm-K9X|aNY^yfP8pY`XwsJQbwzrGedB@qdhVo{vdJub52>2`SqFvjnD6KS~x0hD? zjMxmmu2>9q-Zn1`j%O3(zToRA+mB|=>JGAJTz0y~yiT9HlWb@#dsh7dnew}_;wAPU z`~d^TCANTtelE@^9jdj19Obn39GU>#AKi6En@HYNvbQ2JIel4WL?4yi-hGY~$grk5 zw?QbNgb)*R!MU2TNJzW84S(8nMZZ-ppG)a(ZNMPe94QfN&8f~CEL%3X7+Yc#Lcj9B z8LW#?Eye&YdC4vdlQm&PN9nCpVH)@aQerjuG$ulNiKoNsz*pD<9`1CnS~o$3ugn8$ zy-!QcDs7o^f=$h|@LU1^aegHIMRZ|A1@A&5bkShF#Gka<5Jc=N!<2;P-h|_o)y~;& zm~FCBV<1iipcZo&Uq1wVG{S*f`LQ8!&06mn`-byhnUxASYjAq|WXArRB^cnh<(24R zM|LJD&|?EEGFk#l5m?A$M%w7dSv+q?OEWst?MGWclViy zLAK9pdurDAOgSS{b<#-2-rtcoGUHC!hKQ`gzJ=#A5ATaSq`+6`rH)Z{bPlRrM6O-; zKbr3i?blay7nR&`Z&+r}YUY9lLSN>rpM)3mq#Jg%K`0v}wDscp*OgP+uyPGft>k09 z)n(J`AKtS(FFU#;>=~)jr8BVBy(5dRmJgEGOcUjYV|>-_B2$FcjpbW0xjtsu8%R>z z)x~I7MoUuXFp1y801c}FEADs2A{2342U`zJWr35iXbgdJ#+fI~%(%fxO5vQuPx4&>|xM0gH5DPG9KH_iA<&0XjXZE5 zeWI5pKu0M+z=-DGkp5-Cg~F2c3k9BcyN+|(3;kIBrNS43{brs88muc&&&b6){@4y$ z-w6Ep8&NGtzqxM}&a4gp{z^x$?(G3}f0}8JQsar?l)|}mODij<36Ce#Kuhq@m4~$? z?sFrv!@YcW&U(9BSUVObOyW0RkY(_Yy*xrPPk)uJK$xL8Dsg8JG0wku+omTbls&_@ z6fmK*)DSi_MD2f(`#>(O?lid*`0|5;sjG2cM|+UuX(yf8XP6vSYZyDWpfh3-Nc*c8 zNGPpjPzX0nMHLUI_?tD@9*rG&U0C!xmwH8PA1Va3lJ-r)d3?^w_=+>SoSh@**ICF` z;&hbz*i3a^HAja}lGR%miW!)o#uf&-wfg-y>ND1O z*7%oA%~;P4c(a?&e6R2GhH8z4nx02qUp7np>$XR*kDsMqlh!N9KIw?QDqouy{ZU_g zyd)C2>Q&Btj-_ZiA=UoUSmh#1&tFvwOsg{cSO|8s||y?G%03(8|Komg9DD8C0U_szUt$mq3nZVmDi z|N1MF8Okl(Ir>Pu1(id^U=Kx69C}WpH%mcI-23tK@nwjsC^Ld$2+!FD4F!cB52&5S zKOe9miYX?+SEF=MS=O*k9M(xvwwujJ@UVF36obS; z^}uAOwCPDd(SdkWli|4AFa*!V1SY|C8bdK+q$Z$ZZ2tnvEhP6}gpS-Txm5;UM2Xz+ z)s;$K;k!Q-;ph4I{!g;J7*uGT4I(+2lRI{MlKFwC%`Sroj2A$|d;C-S@z2ojazw6f zlzkM_UJCgP&PWxM39XeRMc4SKC^It!TBuy9&RlaA*B>vc&)@WJB`WRfwhxc;C8`5v z`fgXacyd?L+5FGZ^y~8dqwb$5JsUJg5I9EsI1CJW9yB%|r=kSLO**fC zMJ10-9pSw2r`^^;*I9^h8-thLl~_2Jhv#bK%N+GYC_qEdj3m9!)ly~x$8q{kSUzuCZbKZ3bsmObk3ri zM=i4Ah+`j4sXY>)kOmyTCrMAMz(|J?MRl4d?h2;W)4J&-QN7 zNV+qyNQxN)oi<#&9s%2o?o5b;6WbCCPViajo?H~V;1TZwzo(U~+gD~`mmAfB6#M$7 zk}=L>{=c!dnK8#nMH*9nD`=>I1_OZ39>Xb(X7u2aw!05xt8k|n5<`cn`+oi|g}wA2 zyGLgxmH}xYX4sJz!UGw=Mt+Bk$yLK=!!N_dEyihVK550HUU`EWC1J05-k9ec-8pRbGAX6NY>1p*r{H~nShPhXp9 zTT{0e@Zm?y#85|j(N+QQOsautM+~z_g@V!?avc2|YcNIu5Acgj480w)t>ZA|^vCtp z3e1L?fsZD`MWKug(En6~+5Oi9-Xx~HpvfL&+zxr>xNS5fzR6=NMCl88^yF>y$d z5WUCc6#AKq{tlGadMg^)D;VbW>l48>{V-UOkh_s{43>f8f*JYBS;Ttlu!}B;c8}J&g&@|R{tXGKu5^=DkWlpn&r@14zmVa|EBrsA-omZPH}3yNK>>m9F8 zaT)8S`aLt^rKj@tr@G>o*Zto6U$UnCj;xXWS_uN$Dj&WVF|`BH!&Vz4WRxXQeB~hJ zGBP42xK=$o7$lB1;|hszpG{+G?)@G`Y5lGq%^(zQS}jDo3`4W<1Cb5Qm1YTsW(foG zj@8x2%kMlkecET3)7yh1;aRQqYm!=+5ids`uJ8+7*pwQTjvJMoHt>-OrC@i#h7(~M z`lk&TdBJ$~=S|QVKopmNhqMF(2jS{fewUgCB`LOg4{LrM(H5Qg(b$x#PHjBhVfrH# zKQ2LH00|Y*Y0GxG*kR18K*65GS|Vhlj(B9fIi^`46rQ>mpOM-n8)l1#ltH?HvXcgC&t^U6?8NSGdpkY91-DTM*$%4aHQk zW#tGBn@>((2(x5hE<)PJNU6Ht<@i%Ku@x(1Q0VKWso3hk>6xay0*?U}y+Lg9`WG)* zBRZ3Oz3-`NFGDkW+%RzvrL`AkJNWKSHlWSR@1t%#Gy9&ce;+&NzBdXX3qjA0YQwI1 zIcX%*eT}_Mi2SAWO&7MS%pI=1=nSMLX84nr19LE0v;*&64&d zAa$ZJ@}oYITxXq+j4ACjF#G}rWlYFfx>mE3pRBoU_is|qAsc_WVj|OGo>!TAk-$52 z>Z7sDYPP+M>@~H5SQDSP=&NmHX-~AhpuJ9_(Pi!-lvx4YrOE6jz0>(h{+28ANg}K% zCP7Heka6Jngo^bE0-WVCbW_giuMml!epA0cBH6Usj-Ct9lT_*yPP{%>c5gkJ=J~=ldHt&`HF0{KBSgqGOUK`{a+i~}D_19d> znWU%H$RnTaqK}qx*=XivS!7tDaEOxtd`rkgnyROFbK}az%hQ4xeXjm#jq zdA~+=>%o9vRQ+&$L+^2Ea#rI_4J*vR)KV5(?W(Xp)b?VB3W*W}clW4rTH912ZHbUA z=J@X$yCKxvx&&QfZ<9&BuoCmZbamTeMDgi4+uH0(>FFsb>;ZjlOQV3*p~qEadiwza zK5M!+CU(X#Z)yox(h2nQ4!nq_`7D`tl>=rMWl)H_oC@(P%Nr7iLCUzpQpI54uBUr*a>F}^ll^?7v z`Q|9b_}Ef!XoRxFYP@k|GTJ`jzmjOnIfeAz*U~F__P85PMs2YNGcxm#)->n*#cwOM z#B=MxiemsYdH(}PrghvWkVVPs`3jqy^Wt)_LrB>4^$g40dj_bnbUA$xqOyW-Dx#yf6ssK5KDin0rtFWZT>5U?WK zFv5nM_JIDFw)}(X$GepEZ+*XR^@OrWu*&p)R@pCn2deZ^rEPSbNzrM17ceh3#Zl?C zxS*e)i?yk~wxPKjD)(XKCeGx&{y#0?s5xR|@Tz}Q?YbDGry^9`?DfRcUWL;=3~ff$2@qH-^9!J9@%1($?_PkKXi#p@gKA!^3WY(i^i&pPtiJ8UAz3U8`EfJT7caHI%^6)~V}2P!V*REAgVCtJbR8(~ zA}**J(L$?@W<824qyZ_{9ClE}0)ZN_+LSJ~gpSNkWhjDI->) z1TQ3t76bKtG20NW#TE`jGbSK{u{Oh;G^kqL(l|x(rxo1|r;|e;{sFUIAXigp{k7|I z>1_`H^lcUcR{CW$1!JbJrZ&FZ{6Aoq27h@RpMy+ zL#>KV*f%vBOJreYU(60=lN{~y)j0Y@Ty zg|PFHXsbULMLClS_1;_Qu;Y~}4skTzlfnVpt*dYrzl7k(J2?0a50%$i75Gfzb3F&* zK`DLr#jiG$<@ql;fS&N(Dem;SiK*$|br)K8F?&p$lai#>6d_l5v|shI=YmOrV`7~7 z=&S)~si5@uFJtjV5u)#B`Z*0g1RNpO&W)XnM6v;?aLo^*+_<0YKcm{ zs@TL~%?9Axwk&DJS()Zmi075gRPz{7YE%8CCQ$0tCj;P$x*pDSbvR!s)RNbh}R z*D_??7Ju+vDJHg(=I4(wpu@e5L7%M?-}ltMr29e-2G2=+J}$~PL&3uD%WTuMl8cfh zTq-g$7GHaa@o))om*xu0kij6Wuy6}g-4Zbv*S^A7}_+X$OLlW_CTbb8RETJOcp+z+nyc5F(x1M2uM0LCkbb_cL z_NSPViOtvg#@Hrq%dd9@mzci>8il%jJQ(0p?YK{bPO5f7Fi8uH=(*facib0kq-jNc zOcv@MkqIQj$Q(u>Ue9lg-ncC$_6Vg^XHJzK?oT&Wb<8C>A3P!kqGwp92f1lS!hdm1 znMy4Hy4tn|n}V#@oJP6Y!815K6za#6Pz&V>Y!i{-NuG zjZeS6h2%PfS(s7`*e?oJjj|zeDOck$oC8`L`_ZJcT5{O9p_bT8hJMAIimU+Pampet zH?Bma=WTjA;%z|cF2rH^GU&9%EB|FTfHJfPX<74Il1Z2vkr7lAzaa$(aLJqW{B;RJ zvLs49vT^=XOGVINm`Iafr3(<8NSCEShg@1HE^WBl8>}EHlKb+BVZW!RgC`@eR`=V8 zHWIOv&E_E;VQ!4knMPC1pq|ElYi16X$Gn2X!-8Ba8toxwO~Z+IG&$wJ%N<85tV-}m z+(RFMASHO6RtD$NspRSeGN6N&S8L9)$HVoseD(1R3~eTE!o74+2+DubAh`EooO#~{ z`qujpt%ga+yKi58qAEZ}wkklTLSlGS>wB_ru_S)fVLEEk*)n@ZPrYY5Pj9$BoCnYp<3WPbaox;jPv?p_170Z_ z$cHrtnr=7~S(xy%DKd*AuRL|dGp&OtPG-4;TC5b&>Af_wJbEv@xPIsi?4?;5t%jwe zOQdGm)ULt&QkW|Ncq-+$e(Lx2gXhg2vjj|DFWGBVEE%Mw{?T4KQU`}^ZkQ-yMX^e8 zai9*meC|k042};@&(;kR62v4wY5y*XtN#^wkoiNHyOz7#&@9<4sjz*GWk|NlBFSy9 z)85bqYsgz;TZgXyEs7v>DR$<>-Ka6=wjqFw_F&e1y=EbgGEuDkTND`oU;Z(~n|m%n z>&F)^9sVTdG_y+ao0+z=vRhxwv5bJ^sS`q|1SKBxtsK3azPBN{@$ueE};v0&>TQ_fqbJhwl+ihmTu8&11 z0*Ksa?(V4%Gk@{vxA`DOeQ+sO=*3Z!vZr01eq`8I9Xu;a9K0&G9FE&nJQCsjC&I+K z)<#Z!Ozq>ob#>4bJ+xH_i74OA(d5v6fAud!gizVxN}SATpxkcvw;aC4Zz$o#tK!x) z_l*x$dr!ohxG(awo)=rs`br<~W82D}{{8kCzgM=k8Q!}YW_{b-(GVWvqa6LSu&U?O zN3^Ytxm;-{VnTuCj&n+;sschQPhi-*6fNvae9-j zzCXd{HZ}TR#>0byhJ$;v9_r|WVs!CC(e3E>BKENr=F3KE)od5OwB`oF&UKE4hsCJ( zwg%!QhY4!Q-&z@b4HZP~4JtyS&`ytqFcgA9Br%Y8L(LC~^>wtmG*=3Of}i4%DRCb3 zgGUsQ-0t_-ZJaB)!hsg$y3=Uc|F`+5TsW~d=!RKYuK{E#8pUq?<_2GTy3M+{IX_vt zni5)mcruDr^hb)OvVHCxM}yNz@6zyC@Z>U0wE5ZPeXhP-nP4V}=*aFKS~AchPrw_O z1lI9_;XaZ+uW2(9k_n>H2;JghoI)jOaYrh2gM3VL!h}hcx1`2IATDn!c1nrG(6*wE z5z|j&*pI`?T1LsB;ro$r2fH4>j8l2uQilG7S?K~5Io*u#Wc57V<-sB18a^&3{Ruj8 zz{S6un|dORr7Mb6p*O|6Xuop`!tSX>e(`TKI0=DwWa6A`L6bin+(g8DR;QYHN1_OV zt{urKwd|}K^BHc5jhFAk?+8^v2e+f}x?1Vj(8>B}oYl^qp&C(^+J^AQkV|epM(yVx zdkYKavbkUu1}ppg=TorAEJrMmO%!p%(GEt~xE*jKQ2VPSD{z|2%07U# zb`AKLW(r;;M1_1DQNyO*=sW#b9m=;+%;3x$(Lm3IHd7t(<-SepU$ZObChf8>Q7FSt zb>EyRbN87WG*ykkWt*Ab749)3&Zi3kFqGdDdat< z>fmOs1++EM+|zxUDWfGnXUt0CvN1kf;g-6%qNOoCutby8#?Z^WUfcx&a<3x8ZUhvk zZcI+;#M1l@k9W+-m_M92Nx#Wt6rAH3iqcY!liC0wG(&GB!$@{|Hoztw2H1&cq(vPUX z7q>v^th9!q)T&}+g|c>!6}Hbt?LSgMv&a71`dO`#pYLhUP1Gr)eY@`_uBPl@wQl2I zlf85D*z?&!dnd{INcAv%ZB*3FWFUGgI#iJU>76p{rb=k==-=fiSDKXyLe8C6;r<(y zm%GPkh=W$>m5+r3eNstgoW7>1*xgZ4qP`mx08 zy*~OWWz{R{o~xJ%KKN4Wt2lVHh(iq4bu7)rowvR*aX9A(9%|$edkti4DpS=;bNLkl zl!_Tjio@eHt?KwZ-V%UlJ6l@ZH;3}N4Xb(Cgx**C+8Nc^o)%dlq_-K|3W#9;rv(I; zjS%`VD|%MHrsh+j4pNC3txztIX3?rARMhhigZF_Aw{OF3h3mt%=O04gHu6_IZt&wMl?V+4={@Be)6-cb!E zwlNsk(NgL=CvK0#nQYH;pDM{0q>hEp+OE}%l$WLk`dYzlfJe+z{2+qEjXduvuK207 zJW%+i8eV8b|9;Rw*NRDUmgZ#NL}W1pqDA zJ8HrDPdipkYo~A|EJUO>zfay9S``E>({K2bU0=h_vKbAh+HK8`_U~(d{#_*Y7Y^dv z;h4kPWL#{rdrkyvh&@KB2n%}+wr6&>dw7w^9a*o*o}f*t`Xq8w9`J_U!}?-T*5S?8 zM(@6v=@i$aEn`yv3{GaV7?impBn1TCVI(OZ>PrbTA*xN(uj?``{ODwy9a^sKYMc6T%JP} z&>byJo@ynA#2J{tc0Kk@F1GX0Dk3>t_8b|I$|FKcA#Y^3>p#Q%0WC$0TE;;fYPia% z%Z-ap`=S@>*8VB~3`UjHT}A>CMbSvZ%L;AcN?!hxe8y=I#Y^W#Vsj=t=@q{FaTOtV ze0_^T@NbP9YLt3kfFI#0*M`fJX{Br*Qgs=lgT3F07Ix#VV@@0CjftIV70gH?*A~wg z)Fxr?t})k4|W56BB(%}0kEU+-eC7;iayIka0O2|0Sh1ff1Q8bJ#H01PgLHbP_wa+Z)= z+N>nV&TS#hbrdxLT@OexD?P=N^Ur(upnX(XF~-Qyz?Rj7KNZc6rWGvc;J>7dHh0r z^wOq^ZTO33y&29L1O>x_5?6QzHg;ENKo!xN=dQKo+8sL;B&k+4_K8))(S3WNvbFQu zF3e5QDD1WgzoO^kgywwS+?eTDL8o$2ap;p2{BuEE zUmhK~6?E+&=0lhRjMyEE5qp@x%Dvkqt^%8_5s3DN4P5^14eHf5TJi18hJvrwJe^2W z@5#uZQh$Pf2lT;z0$8?CqW3=5^I+<8hnCwiBF%u;?33%#29oA^KKV(-8ofCYq_rZ;ffcDWl6 zv5UixkJ-H(g$lH&uyjkU)YuqJhA%L$uP~;15LL{F+_;)=4)IKRA%8IA+B=@xzXm60 z{@J_dou66UY=q=`c-wEhhc0@It*|1(F3Sf2FK&J@}1tG&cZ zDnF^tz32^hZsj+qMf&7Gnc zjpV1V%IT=9>|j7O_AR`h5WKySKsG<*63MSwt<_gct`rGoC3Bs8GQ7TZ=E!CI1MPbj zeuedeqm-)eE_p-g3v|F=GrXu3z)$qQ-h^}bR*w)+RBuEDkPxNH5KJ-35ulaCh!h9{ z*#ab0Z59SkDj`#Slm`!Pa}e8!!NIl1N|rm{D^1nv0S>Fc-8wT^hRVaqz^hS2OA}?2 zp?KTwY@UQ~VuCg)cQgB21QYr%p6j(j#Eh1ls47|ts;Dp4f( zCFw+Sul)b%aXAZZT_f9Qk0ouwM`zQjTTZ|0}96PM$5xE*`dhvW!2}N z?w`5K@c@Gyll{)6=Q2|zYtrF&`uT?eev5Kq4 zD`9@{!K%oZjP4pz(&wGg-|b8yYKUCOJ2h(8Fq^&o>ApxQ*$12taSXzvL;tXBhkN9u zAlut&TP3Qw2Z2?^D0+cia8zLsC*bRVx*PuotLU&xv`TeN2+-%{Rf)}KrNm_!+m|>8 zi7zjh1+JNLgiL)1^Kk`sgX1HA=oRy&T(JK0`EgU{q}=B>wYLk2sQ7CxRp^FZAvTgF z>N8-+Y%DJ-YxD{j|AmewuIbG^Vl1MC89Y~j>Bfib)+cJXH~t)+BTHshiOK^-sipof z>A&toT72Q!0#<<;a>C{2^+Tiaavn@+MAt}G0X8~nH$2Hqk^F$PK#Y1&M;z7{iA-em zvi1?QYPrnD@l5q@r2<3Kaj`~~Lx!t3ke%bg^|yz~%zCwVjayKFMK9dj4dwxHD3x&B z8+z&pLceNre%>NCCI@O&99MG!bkakSotZQk5$)2XUY^;Z9*W|@$8_n1pAJ?PNrpc5 z8OePZ>jR+q+}cL4{b0R{*t7sYEtLYzt6@Pom*D?Z{O+z2$9>MHU>#%EfL8GL)6?}N zE=`N-IxbdLMtvB$G^hN=Km&2Wc7feeKKVBKH8myVl9D1j3Geg8i)xGmMNFtKLr(!I z;?9+mwSr=GrR=klx#e;q9}Yh-(vSeT;DE=Gw|7ezrf zoNip_rebV|@usQgrm&4KUL5Z+1&KnD8B2ac)^;8G89K!_Drav;v!p1w3ui7tA*^?k z0eU2+he9Xs{{IXmj4;e%^28t-pQH%c9CEGUG)nUtV4j8R9f*AY#X{d3`Jqe|Pe@A= zFNY-;4<)AR&J-isV_mgb5kNIR{zfNW_w^TFR;@g)JY3|2PLTKIg>?_MQdv&`DnF3} zm`$nTh9hHjA##>5p^tvTu-0?n^W}D_74{PnDqa8-{msZKy8rY;L5?BEN5fgU0$F-a z5*yIr_5YzQX>L|QBmm&j);?)TE(x2*na(2EJCFV2Q+7!kWwl?*NV`{QNo}*MC^~w< zo1Ve@gvP3o*kA=}Az>H08{r_%xg_^m(Kj6Q``JRMO*u+*B5P<>+&^JN(Nn`U(*4WG z#&<7TtE>jee3kC0KGPrTFnGbDhyNuWOcRq+M@ODf2$}KMBzW!N-2j_A}>#Zg$HfBnC zSJ3%w;N#>d?v-++dD={X4}NF}{YCJf!i0acv!9HzX3DIpz0ZYqJz^bKTbYDW@SkW| zOn!vqF6j(lVRagDi#V+`JLyhOMOo#n@pJO^UdK^~Z@L!73a+nW{3>X(x|rJO`@oTVVp%1a}do)14=#AT1vzB z>v=03K9!NUOu1>rO5Jr;z1N&dh|i-@GC8zNCpy?RD4hTqh0GCr5oMVV?lVf7=+n`d z=3c=-8RRZy@DbaXgZor$m&YQ58ha!OQ~KGpoHo=bvnqCsnT}y1f9{hX`gD+@PqkBd zocN32XPeuAJ67fz)A{*(y{PCYpvkCswIU`w;Al*piiD>u^ zwD#??WUZx8mEgj`_p}7}*=%%`b`lp=Q-EF1XX+Jko14Vo51#5fXBh0{!TR30L-4KY zi$0bxBws2_e}9vEubc*hetiSzkKc}rl&1xd#;Jdbm&cFV<|ZJ~L7K5t5t0VqK!wur zX}4VGTav?+S)ZDNqM9W)Z(P{?rRmWAs~IEnJ>kix*QPj@XjbIAe~4Wt|Bc5iUB@s5 z07aD`4hE%~DWKyyR)Zu~zB&Aee?Mi{ky0C0oPGNx`by7WdNj&Dou{)74IVkNd~CyX z7-P0G$o&r)Pej&_qc@Rq8{{pLJQ^tZ4&7ipNI_OG4InR%9hn}Jhu}p%mmeJDfQb(M z72Kt`5PXGjby4H);mMIcdk5o(r8T#Z;z+mc*1C9e^G^xl{3WsBLPISP*24SH4pCA3 z{s%57qCo!6j(9CsTawq)xeV8Z5mXiKNb{oaHUom|P6rey%J@7N)5yTw`Hq7=`|kg= z0MVV}5ZkZ2kyvuYX`w%RW^LCPzq5)8d3%wRh?`U~$mT`hk&%*O4d^h>q-XpT&Ai}d zzdjvVH5rgg1AiV=*O0ZvRUn`wWu8JC8473km9Zxm*2e6|_(jEawi;7mB3MDmWL)ku zfon1WPjU(q)GnOk-~u#2aQ0~gk+x53%PP$m=s^_Au&6(6ozIYrr)2MxoyE)0xcGpk z`j_1Tv*D8gL=nKZ@C=VSDi>J4bZBsJ)AeYG7EhKlZjT(Xolz}BrFrn1=?&_LYB|y4y zW>mf|M?KWaB>TWmZ+kTOqRq6ax8y`cCmj7m#-pF9~}! zo4QW&wuVk&-=Y9Xt?LMFAGyDjVH`RIJ2H(0dHjb62t#fmj6PZ~+EmtuW*sI090u9K zb){&u3i{zss>&#d*Cq+&zX~K@r|(hD_=%-%W`zi)EeK{4mIcizvP%m`e}G}?2pLDm zP{yw7+Co^f)VYzcA^h5pU(8-D*H3=nsQ7IVO$g8o4(ACU0Hp8knEl3AhY^RD|H&|a zt?~7TBqm9lSU2&p`56l0*yewFED;odP^7`+w$_TC64wDbcuPNnbB0?{?i|a#WQOkt!)s2XVezmbQ z(?`P>!vX39>gf_d?o(SD)OUOJ{TYhN$}Z`;Gk5xeDpVu!fs7YhC0N#+8(2q%sf<42^M|`UE-|iU>L3_H;$7#8mFrz;v}dF|we`AT~dMYs`InKSO%( zwBJsCtq2#yzaDJXyCCEdNnY+TcumGUz+3BCy?X5aN=*Kq_M_Pb>FF?RW1G) z{Z@gP6>dFp9B_)9M^Eibw)UV;-Ri1jIj>UPdA!<@l?CrNdz)MhiDNud;J z3pj~oq<+3FhBrNLXp!s1irsq7uRV=;&G1dvZ8V8}lS1sQHJ3Qm2{y&paoo3WI0i_6~sG9Ph4upSKpQ3ENwg&gXJ`NA5tx<45+{E2=u{57y61ryYuzx5fpH~-n)cFY5qE4&Umfk4x+(dp(_}mW~Gnn`q+Md zb-2=qSdbAornEHzU+!`kPph`AWsHhnSB~~a-3frN6+9g&V?^tHuHX$;S&vd#Eb8-;MBEGHgUyZ!ntu(H;-AEXhzPP?RTxh+G7|dDr@}f{}jVk^z z=Eq%^?(}@AvG7)kz>p$+4>jQNvDK5O?nd}}rpo7lFIUjh0u@SD3b@ zTZOm*Pg7N)kDiaSar{kL?oZ8jDXi=ypZ%AV*6xmbAHDU6hBMSt=sqi*m(`Dpop1l} zXs|@iFg^O$h!CgpwH%aPuHT#YV5xeTV2q49i_s5lUG-SJtCGTc6E$@YX?lhlF3Dhh zsWu%Rb`kZ4XU41OFTYWU+Y# z?e5HIp#{93=Z?-R&_#@9z-$I9ZG*{O{db-hEXMc3+(^`d4i`S`w^{~V_OV@(InW*mHcKP<5{(aFY~!v#LE=_*l1vRh zB7sHe?@6DDR5*or-kd=;oA>0#%i3mb@CIJ=47xc2OAKbS2qiYKf1S1at%c@TKa~{; z({e;u8A&Hjw4D7ZQVLl(Sh`r}31c)34cEc34>*h$wOecd)arLxHg0u&H0;(~HuR_C zHo(uiH$!@R;I+)a#5;~sBWqn;BIycU_orm)W_ug3$I~xyHfCe6Vb~B;^?uED> zA%@lpgCo=IkCjqKYxe`FBCmIXn6@-6DsE3*Sjmu^trBdf;$YnJO=+}P=Kh@di&P06 z)_fHcHgDr&x&!>8#AS9L_^9n3{w_wG+g%VS;3);%=+xlY>o_8BdNhj@6R#Gzx+oX_ z=#xKDU+qjWQ(IUB8m6&d`{QZnf3qI@c%CYQE)jw*^r_?JC-FH?6W*(HxUM0v;~8Er z92GDw&i_v!$;Nm_>&B_~?y_mkZ%b5ki}#ptuFQLfzO&O`$%=PwUAEA%A)IwYAjx6I z!?1X_=6707?}>jqXBh9vd#Ba9Gs9=MN6c+lq72UA@*2s}23B`#wI?U=FqQn6l!Wp~ z{4Y45!%k{&gs7fsg@;p@qRAf-+1$@qn%m^sU7;j%7j<3jXwXtj8}-n^c8`AM(gpeB z@ON+P3@Z(5Q2jPE_G@mD-CRz~#+qXrBK2NIu8b{XFVs$vfQVE|nx^mML9-#peS?o$ zzw<-pn#UU3v-{H3h8#}Zd^F`^dkK0>y$IHB++?63B98uC<|=L{^14+2p_oP74T0Hz zGBt9Elq&cK$^#a4Gac_14Ks0ewcbZ3>pNdr>}EAqi23}?Gq@P02?j|ah!#>VfdMz$ z1d(ym;z>-bBP~4vc5}-YL77xy06A#E7SS_m-KUWA@}6e_R<9+-s+Qm7$~uMt#SVz6 zo`8dKz5Agi$9A`KRhO#)+;7w*fa(I9+mYtWrPnfBGvcjwQj>HOwPv@6kh#a^O~CxP ze#@`ZwnyLAt&@kc-1|8dqepVXO=v^GtC7Y=HZkO<))j-7n#5gs2h(+}f)>@k>_+)p z9kukQ|8PWoytP*VEg>f?J_dO!1>ErSUBn2-NxA$2@z~Ou4DnSf&JYK zyTfVp?}_>$r(zoO1)OZ}q^T2R(ianS+F~q1r_(Z9IV?|^p|8AR0>DLSsv~aT5s)GU z_M}n#e$BI?K1VHu&$UNnaYUU5%Q%7OPSI0aRK`0g5mp$wLk(s z?T5D$tK}N5Kz13#P4!G)Ny+2P6R8F`;gWZ^4-|u$@wpo3kYw+WPm}rVNYX^}`zaKY zbTm2_IUW#PAuDxeW1>P=UrAmx_HeMj75!>(prSl9=cCe}1`^<`F79F0*Zf)ozG>u7 zlTVOC5EU)<?pUXzE~`-#x0j2s z+*TaF#%Pol2o|C8cR$8GO+_nZ;ReXMbvr!th(BG$R&&cP&!kAl2q;Mq!q&m)9pGUv zSekFD)FE-0eeHP&;3cDmM_|Z0Kb_8H%hXsqnr<~&&jtD3H6Z@DJ6H>~+|C_1f!9Bq z(q>iWYGr560B0#lstv#0?VKRhkZoKsm!)g}KYVw7=(ec_&bPBCMy=`|QU+YeDIG<@ zCX21g4%G0c{cEQVs}r3-TfMtjmA2=soft#n4sXOjt`l_>It#YTNeuMj2!2eS5q(tZ zbH!!1=HLH{{C($Tou|VyY)oWuPvYwmg^6tZo%EHHPsjDlxp0cTju5gHhr2@$o&4*k z1oSmMXm!wNx{>rKcDSUcjvaS@jl7vI#o#(c#Lm3gj`Z~3KI74LH#~c~Y<)T|1$$4P z*TqSSy0zvuU$$O53V*-}g~Qkk>n-Qvd)|L@-wp8Fy3bsD%u_M`C)9GedIAQG;`O$d zEh%^GjqF`m*)NHTx7?Qa7BpROvz1r>-7KpY1{!_am-6ihxKD9;pBw$&ShdskF(W?P zGvG1>y-7M3cZ7G|j5QVuKEXclDqUPNtv3cN(s~~{OF_i~J3T|LbO5>1bbwZ}fVipo zuAy=JP9AUoizm^cY6o>oMZEnk!0+jdK+i{D)%mgWB#rKiiR)5qfzD*@`oGw_F!a|2 z_L?GAT2>n$>V7K2^D*rEn#WcQ z^f+qVxD1x{4Z$~Gk==T{IeJZv&?>+BKP}+lSOqsag0)=fqF=wNbLS}>Is+Zq9>Od> zy@rqTaCE{@4IN0}9Xm1tQlcTAZfsH4S%=`W*5?cJ#~%t$7rj=ExDFlrVFI0;6%M~m zyM^W@OT?QWGaYZ|p!}4d+H8gn-dA;=d9n-VxgG6LFHfK2LMb!o5HBbXldf?We(D8Ok9`SS0so?!!zLvfIb8Y!*Yt>~i3x}A)y;9t9dZaPE zc3b)1PxDWsLHdmO^~W&bX#R>8*xB9%W7BT@fm5^ZwCr~H*y!rjBnvxS&mG1`e0X=T z#D6IT<^Hofn-kAx$cB~r$Exup0w%W9VIsG|$|R67I@eH{zU00ZNIPj`?XiTZu>1bK z<8^u1>wGy|L$|Buko)USpZS<;u}QEOfI9a8lCjqCyEK58(JyPf^TLP0-AJHrH?Vre zbso0yQmyqN>G>p)_*(<3@c9vo!0Lo3;ckunIh=((S~)=4sQo~{Npym8!P`TBzNpjp z)`rna^34 zZCsi2b8KR6yp`j3lcr{HjTzAFF~#?$GWnbP!t+iLkQDsiTurmII#frU1Xu_j(=a6@ z(M#Iv|K@7C5d-tEHBY}!qX#pl-G~IGqMHWC)9}5Hc#Z97ZW4Swm$h%YC}^a-ibVxw)t&Sv%%w-e?7F0b_COe-b`v##l{Be z5tK5PFknm&*uFFVrENZrnN^#XK>)LT+5WIi5gfE|t7)4rnq9bc3BZ)s*k*qi7m}rV@g36%HGnP+U)WWI?z7yM9;cO`HhKdn=nR( z{uxBu>my|{Tcvuh)XmA(Z9lN{g^rqT{7 z)2G5l?;Y^R_ZgOHEW~^lebTZ!t{-L0Nw=$e355U1;g$^e ztSNZ-*Q#0&OtO5N+a%UjUQ=Rkyf~}NHk&Pc2cKih>>rkjPY2w={{s#`eT6oc137Fy z;1*XTGU{x5L3vh0Ln`;r_{tZ{qx>F5bVF$KdeZyXSuz_bWAEo#n@=k|*t(7f9UsOY z5&J5I7x50B{=2ce_wj}h#3gx|@k}YK3 zqCH;9u_`vb*w9AQoDH>KPLw#9+F_gRH?X$lN7VFPD&8n4S^9C_`0Z(01 zj@#F_!}0w@OOF#u&u0mOL>Uz1WFM2!Sy_|BZYGYJ05t);Rl#Rrxy^{idr#uCnJJ!e zeS<-4^vL%+#kt6nRZ2{pGgOK(E5Ow*FaS}!bd3Cq?t4Tx@?8&I;=dwNPMyngTkTo& zT7Jqoe)KjkP_fY>POWuBaJkioxHVbvU*~t6r@eYBwZa{vkV5S0+F^Cxy{CeTwHq0= zL|ec7Ff%YVxgYlrbzAz%;rMt}G>_SX`+0rpI;!$Ig50s=pg%s1dJO^TTxqU+mywZD zZJ@Z>k>V7n9!Is`$4Ah9|Z!3-wjj0svOZy_9X4e+Hh@cI^iR*E3sV_Z09_ zlM@F;c34*MSpIpbXnB9~NwV zj6qq>AUK}ZxQge)WkeYCt5-&xs;*_dJ1K@L@R`CNy?%OcxwC@5(qVtmWgu0sR`)aN z<=)qlR)4#G{t_YiU6GZ>dg`Y7I+-Gtct}>EE!q3RoQ||5ql>D)0JAQg`6oXYfT9d2 zv`{-B*wvf<0#!kYv(1Uo=sLy5zL>9!DLsr>M4QX05T@DI_u*e}Z#M?8uoyW0fk6Y$ z>YX^h;pB!;aY%Zm@e~Md2bU3!~eK!CuTBNUUafO069F$ zODpu7*aBGfg09V{a(tpcWvLZ0yvo(Hi+d<4sQP!}-=cw4h2uuJ#c|JUN&D@^Ikb8E zakujTyld=wJhB%jk+C~wQ(lbwtAefjY2cgF0^w0Dah3j329u9RUlZF(jqqZ~H}P5l zf03B^G2Qwy+B^OtnVc1YuYi(?0F#qq;G1?mU_}lAc)hH{?I^=~sqJ96q%l%F5X<|6 zLk85HU7r+8F!rPrcSw=1_CdVnGXA)Stv;$%`;V0*T7>a*(=Bmk*swB*@Nrk{7p|(z zR_ievC;x+2y9Pe9x2bKB-tb(^K6_1u~ zAXhza$=|NAdW52&s{JOd{hHifkbk=U41+L-kl#<_kHr}>($4J*-vD+ZYSg+Bc$FP zUIAVB*=~0gmtch%TkF@_I#Lc%6*#BV-42f-JW>1oEUzN9LfmvNoP1r+y9!~X z951@iJw??_cI3&XYZ)pmNnIq~e?nzhTURC0kN?-cKb*>Vp=-JU@Ps}MN$DX67jL~O z_PL5Aa(kmv+j+l#yzy^s>n2D1^ladm3v8vn;KgO}nM<}Ku>SeuH3u$jbbn;OcVCNpvhnur9k20DLqJ$)nL@c=1UbqvuiA%qW!g$vw8#Meh)?ZT_i{hW$M8GznfRev$sWW=Vl+Zw6ndkzoaeL@Y#`1xURi=Hci5wC2guSO#Y% z+X;R<^fFNAEjTq+jP|q92Ur$BM3a}msDMpdvxknXyk&GMP}-)lBoC*6sIKK#LrJ=3 ztQ6qoZO=W%S<`9*1Gmonyyn<&%FiysI%&*SZ97V)5YX>zo$U8_{|A#DtV zR-D%#3`T-$EADRweq<5v2OUSE8`u-cm-pTHwLp3qChA(G>M_d$5M@&=NtgOe5I^4y`d%R~(_Lna=K zh?!JI9=%`|4>e+0qcJj!A`3mrg1t7MYs?umhy$h}dxi35Y6s#I1mJQO&224_02>}W zW5fByIfI+Qi9At>7M0p(ueDVP+BBAqbSWIBBbjRB<<~yGQTN)F%YFY;-D7_aTY5a( z@4`LXpO-Jo^soq`P>s)IcS>Q5cO>F{=h`@hR2R2s)O+OL6?t`4 zUCaXmNvuBDa;^pj#MUz;Y{s46Wf^@w#%+roNt{PoAi2!@h<~wU)5Y+qoaL{)d^Ya4 z>zCa19S+P6-az}ue*vVGmQ}f1x(3{+#?CG3%)bPJo?OvI<;?uI`Zj6U68GXxd6>h+ z?WU?4Y-(MSSLv$FBhm@e$G3#${eVf9_A}^Vf=~(&&oJv0gIvwe-C?G5Ura0D&?{1RSYyIAQvFLMMPJ zxm0uNL>YSm6JsEB97SAX(*>orm8Aw{m?C{#h%L+Tx+T+|vc_xwYT-zBkOo!zHzXnk|7c{q9C(H9@mgc7%Whh{-N+R#nv6QxB`7zyC_jhIX#`*~g zgi!5+%Qymrh7%))W??G_H80PjRozCQzTqN4O{i)Vg%G43NB8el^J!t)U@fS~Sm#66 zHSiXL{Nxk6IAW-pg%SmSXR2zjJ&PZQgtKsjFhlezC?d^q{PM zbzRAZk4oypl}x{vHTgd+U}|tYh}OpY2HC((yIt2Os4(*8i_R8Q;U)v3k%Ci5VhA%k z`G1L`Nd|sicJ43izn%1D1)f8Hzx>qFawLsY?!C~B^=4UgX! zqX7ky5>#`YJ8%BZOYNyU52qptk;pDAs4TsJ_;%>twNat1LR4S;*+E^qaf$R zYw{#7snBuHFM5JpopkT`ztwK6b8&TA&GiLB+qnQlM19MDMN6u(R+hBZyL#B(p?{0a z=(22H$^nT6JBK*FCp_(>DO!Lt8zSRg4xH=aCO{Y```-y|52*6$b5iq#J~P#4))H!~ zS!6}pWD<<>aCq2PJ`VkvgsIZSy6l}!0x`dQK+ezC{cTG&iW`0_ ze-&?IGOvE9Q;>O!wIlkZ@@p_M=CdCfFFDUG{4nR66T$&}8w367roEh$E)psY6-2)7 zl!i2Y{U>7dZuGK|7#Z$pQ#v9d{{M7den`hx_VAmb*1ERz+!q^y3J`4 z|JQ@etN#VS>(-?sFew|al%sEPDP)+jx58KWT8$yP2DL=k5)@iw53IpYVS%XRwWiU@ zpH-@MUuT~pYMk-L#^lQi2j<>Z=_hxzh7G@EUx_-q+kK*TA%tk3uL!<^LIAfc{LTYNJ z)Phk=fLF@EoLE;91Pz*p7+rT;KdAPdty4J~4vmd0mF9w^O7@Msd%Te)O4;{(1cOt6D>x;Y-uQ zVvQQMErtYHtOS5>Eo!C9j3BEdcx$d5OClz6u@%xj`W2M{Cdil@cfn?|FJit*p=mF| zGZTY?{!0(qJ(E+YW^J?>rv4*(xm0Zy?{wc^GXwg!J2jt z&=N}*fiA+!ZT(u@<%>${$=_!GXnGY}b5<(Wz`U;v`BXc0dU`7G_f}?9NfAP(`3eVy z8@&2RW;Svaa0NZlz?hNTZg;2c*?%}K@0S63xzAZi{h@rk#1r>|&r2s4z8o`cnUpBJlp#P* zds}wFf{0irDr_bLVU|$=3WGmYao-gE>W2t~Z$bo@@SZGyZP~gwUI=w$`9gj0Y&K2l z0}yASzY~g?B2Sp}5KoRj9;Ovs4JY14cVyjw&I7SvO@ZCeycdHg-8XC@y?TrEJn+AR z?v3^$S@jl9i^yEYWeSA)FtY4Lv|<)Qzo)4fWYW?k(^#A?WwX|68S*{)^F zRXOAvCh|NU{i({!%S$f@S}h?JG|ZVigh65?7iQGp4;x>$V9h?1=Ney@0LajNPfvns z@V}UtD{0i$pwI2{YJ5bms`5cO)a-V+nAWF1(&g##a&UQt6aM>xFshC0E(E;!@B&j! zgZa`bdF;+YlU6EEHQm<`{C&pq0e*+eD-t{$c2soKv*R<3WL9EmN@RYK{i3EBs}29O z7&Z-{*uV{+3TU-U@wx85hcO|XppnsW!lTY0FQlcNI7%53=chVfcY9>lVEb?2L ze!e_rnUsvU;8FR5Lr}I7=1J~R7(pDtAraCf`TE_eHknoZsKOPhsAvv13;!c6)qIjZ zLOS{K%6VY_fTSR9NXJuxez13!T(m)ZU6pWJwNB)I_J-Nar%vC%S+M|>K8uAs!p_9J zF@X&W-)4L#r7NYZB(G}5cm(MJmJ|v2GfzjaS;k6aH<-M$iES;R;#u8q)2@a;>P3^!3b;}~h>!nAJv|aqqDBm*v z^j1>L$kSVUhp1dlZjI1Epbp4=MUPS_7i+C9j&>RC@txq*}2He!|M6Sae4jXHc zr~PZAT@hi@YZleK}2(vXY7jh`Sr2rs;KhJ~Hb82*l)jD1O zEM5>+Dzy^D?H^JPJrv6XpArH@=L|@j7_~Mty^7*qzv2o^M9?z{tpVPAJw%C6_-ax>ge4+^s(Z_F=;-mdWzztubHhCA{j>4l$EJA_baerR5KEj9A6qI% z&k^M#uocjlmL(1(>7tJLJMd4~m!+@P;U>LVw$?N<5|nP9hck|D}ge z=Qi#Lx!dEh6Vk;t7BdXp378I1#Ymafy#9MXq5<=LYhJb!VOjhy?d3}2muS^^G zJn44($)nJ(DiX>5l?G;Ak(PPh==cH_LRb@I2uF|F>9SbrHJG2Lc z#hKJYSR`3IlV+9iG|a<;CozJ_VH1#A!kHcF z4s_WWqBXDqE&?Y7=i5mh7%1*#2zISkjMO}|y+`tEVl0GjuZ|I)wabH&A@Fy{{4q^N z#ak9_`Qk_dmM_L!CzI(t65JLa^Q%kiuU)N#^T3AvCxO}$A%Z57pi?V zUUj`2gsmmF>e29mhmE&+p^F*vW(%XGr5hX%-PU|FD_NkVNpn;4mvnsMvAF2i2SOrW z=bLwG)crvO>k}P8*D%99>`hCfO`SFXt?v|TL1zoGCm zHg%-Utr<7Hd~OD}YvFQ}nPg_u6-YFBDtOwp`axm|wW2ux>!qwH?xvvE;yO6Ym|*i{ z_F!4Kvk2!ZtfMxIHuQ9yUy|CQ?X7P4Y;I1TR1T zc$8YgdB)Vce5YaX-fUu{c8UpPJuA@#4)H`GZOo>=a6RnZDd^+H8grLj?C+BaIUAmU z@(rTlb_FjW zrh8pSFipjpB}ogA&%ifZu9@@wvWO8Yo^;>Xa0#{X#ocpUyyeKQ%uJ20;I{#Gh>(XSc$R{a@Yy6fwf%A1>r%fS;kW@S=s-2qP^4yWdGcIiU(Figu48n6rd^GzSncI6;mp(T%VU_fFKa3-eY7Y4-yY(a_ z^rUkkWToWdc4d7Qc<1mkizDd%w06W09HhA6G*WDIMT?P!H|6VUKD3k$IPbPlQAAnY zKh$@Fh~wb&8a?0bB8}{2+71zMmZZAG^b!2v97tdED^Pvtbpis$(4 zqQ_RAs7cSrNUG5!{qb@-X2{@L+viHlf#&qk#fQtD*V=FC=JDR=BF;~t0|>D!@Br0x zn#K=9z(&(+3pJ0oW)50d{-Mss4+5wV8l!@>md_IPW?MDeyW5l0q6ed%|2g2%KF1uJgXw84>8LHU=R2FHW77PCb+ekfq@nBObz9gq^J=@0M<{k0 ze{(GH-C#14xBSr2OsCnii8)L|&#f(6G=XWq!zgfmRb)Kj9dyLC1{qxBFugy=>59Kw z-f{?!PR96ISeIJZe0ch1&58b951Xwmm3{48bksi#N;rEE=&rh4Hapa*X*Yj+edhL8 zb%Xdp5E$tQ1NS^2f$AtAZH;gRl{0F|lLS821YpyBeZ|3xLJ;Qpuk02-6Qusy4<~%U zTQYoEACAY(biriqhqC)IpOE*}nt~I&YK!Ar3IHg(o$S*1Qiq_Q9gp4CNUJtSt1n}2 zl6Sk&z|?V_J>8x@(^%DWaP1P+Bk*wq>=@aL6)8c)c>dz-JQIb=ua|x^j49~&ByK~% z%CgmYnjNR#o#*(z(DM}VavwYKTif$&_Fba@U}K}zSP#?It>N=*;^%BRQV|lA*IZo` z(gKU{V0)6V#XqGvRZh3{F^Ae|<>k|~!FL6|FQV>Y<2{_Z>snqw-K`ucJuI9q)JIPV z)1*NMT>I#Eezc8Za`|4)yR`2xQ5-JW>81I-Zlr)^Czhu3?2n6bU%Hsy{(ig;nz`7t z;np<*e%ki#L;Zhj_XarrOKPkFgc^Tvhu)Nv_JBMbm94kUqHeHS5{*(0Vf ziI=W`$txBZ1>I;lj%ntmy4kq51Ugng{J5qL?Y zmo{1RLu5kLtfGhtoGreg`5rY^YN==Ty<(0xlI2k`$F#_L&rB4vdW&b*RpFCyc;j-Q zU2VKueJnDwfW~7Z9@p;@!bPO;I8XLD;G)_YoN^NPn$CMEJE9L=V&~FfTy`v+l^a-> zwLNnR_k@>)SFS>(!@Z~z5M)f7F)(PYfZPe?52v0|ro^YU(*S|Bpdu`cqU~%~h@1(M zfQ-GqZnJa^6VfBWMLBtyOP`l%(8X^Iu%QQjy+HecXa6SM1M~eyWcj{Ew5)7A?RZ?# zZdh&X53+XbcZ=H;1pmvJD>^}6dkxv$NH(Uo+l;h>=df#rm^mZ$i7|#s@ zMu6d_q_~AdG~>aDfzNBRzrk(7MC!D_+4xLOD&Ul0f?d+!yNl^fv0c=1wQT@Du-4(L z64RFsa+{fSFKw)m{W>B=fkv-0Y#VT@uIJJrBO$@*%t{mcw^(=-d*6f6x|0s=MsaI@ zlD3$H8>-@&_g#9vPMh840fOabhFJeIpM~XaX_j*Djesf-znAJ~Mcqd8r8dCRbz9r} z=8<9-+MB(S6YB%&yWFJO`(-L$&-(mr#Em+mzW)-=ivGNZD|?t6P*Uf|z`HybfA{{+ zt3M`3De`}THk^$$ov%0kzS6EOubNv(9vhd7=XI~!B^T{xUK2|eZti;bc|skw5T!TQ zDlW~|cKys_v&l<$EyY(E?<8ZV2?sBgv;D0Mfvcv=S^n?5hwfdQM?8=3a|U@uK2PBt zVbTo~o^j06W|d;6`}>ZW%gi&t-+lSd_M7O_#^t?_pY!@~f^qH`xlW`3jH;*C6`Qeg z&K0oc6d>@Fex&t$Z@-lr=I##K>N;M|!tr~BM;l2u~1kCIn*(p|CP=FfsvzVBcxc zXTf+5)_nl@w?vx(HuRc#Z{9FPeS5>`^_C|HSMJ~a~VBvFBY-LMAK$#+L4FeZ31zx z3td^y$&xq*Oa8UYAJk$1gZ_jn0m?Q{CgdMwSp9mKvgT(n(rDiVla?PyYq>FB9q_D7}1FCEyBl1 zKIHbdrp=1Gdh@#AcA{|p3ye1=r$@TT{=1CS#telmR1S5a7D|gPLsPXvkbalAuRbz| zQ(a%EA#oTDAxI)9l3DkTGL@x@Usu^8&@9l^={vq^po$D1{x7lU@!I76_p%;E1c-=J zL`MfBdale3t$CUuyB++Fts_Ot&tmKgT}q{6H-lJ*xo~2Jo6h=70JJ4gNl@2iIWLej z?W=<@gCKnGEIo67S%rKmOfaVKpxRCaM~1a0JE;@mySIMMD23*4?avn2z9tDfYFM{J z@Aq7kP{YNF$65j>(Jl0R71Da67rtf}b~*^&&m%t66}cIy30T&1A9Yi1~DyQ1zbc~;CiYbS3Rdn zNyf7>`I0TPPZiE)C%;G@DM_ZOGjg$42`SBzvaY#{wS4@G)AbVa>JVu-1i%7G21cVX zGUTy5m_Yd9b&fv;Z^w7HKBCTdnYd4~RXS1|P3w(Kc$OQy7EFYEJa=t&<<6!Cm1)U$ zGA-~ICdB=GA7&ih!vs#YyoTCr_}JvnVn*-myARL#acZ}QGu)$HwRyL1O3TQ@XcFKXY0e8z-RD&NJCz1 zTgXV6&`-bx19e!-=IfgcSCzo-BnMq8lkTiO*IG-D&q%ZUgHX5Ai|1)wIX$I~QFdY` zGA8#{&s8YEteXAsax2Q^@#*fTq)YZO26;2fw5w*gWB1|qdQV!{KcW(bob}B=%Uax) zmPB^dGls2?E{?bxJyjN_b~>Wlj)v=-es^nQ0cRbtB)p&SH@fUDzPDK<%U*|ZZ9YA8 za5->0K(3rfIIhj+65by6fB!FJMenCj4A2&1|JIXgQ~6cWycJS`>-#3z_MiP3+eYxR z!^`)qS{~v0dQaT!M@W%cdeh^d^TY0!Ay5+zsNQI)pE3%`hS$~cWz$Yk=)XAIt^?fs z+^1n8SX88e!30XX&a2I-Lp|3quMshekU0+uyY`pV7tjW8{>uc~RIq&cccsAsAHeIH zkUifMg9WJBd2DC8IrX*oJ!hS(=W!31mEVJhMM`?VdPIG&3$UTnJgGhxHHicWU;)4W zlr*^_*ADU;YN*S3`0Fy#%TfXPx7+hAt3x=QT@RP1;x?ZCAo&c7hXx%xvXY%pqGvEw zd$)mU*zjiV?Az`>ZtZ$b13f@pm2G)-49>|G=kJGMC?MaZ_M`RI>!FJQ6iHN40S&sr zdrU9pe#i*t2?D92^SG17O-~CjLk>VCN4#OzEIk;gB%Acrq!1w>56_7Ck2)_-0kxfS zffQW-z3=RbB1-(0oS@ z7)v_6!}H%PRJ^)@4&|YiP(iemcVIdQ0WW6hTtsGPkeQ6ks5(i-=^(@sasXXd|3Dz zdbCaoH?-1y^4pc#ne2fk&4VwhKr5t?fLV=8KQRwan+8nwFnF zBo8dNjS@=UnM<*&)ZL1iJm`uegcGL4W?#w%yllI#0kqYTT1&-+)Lf@<0d>(~&C4jp z^e0V??MTN~5+%oAY2RRdxRnFhu3k2iAtbyTjoux_Pkq%I|CQi+vBD3jJQ3>t72u&W+qK_}@v5J|)*KE=e(b5t#-pR0ubsC#rkXbR?3c6eNyi&h+vA+^CmK}8XZ6r*R$9S%({iA+rJs$hSwA%#iO zeBYHJ9Fd4AdtDlq<1+4qN(esXN{{;J7zvQsN8YFLzeVFS3iL8r4-6#a>HKh;ViNb7 zJU-ODmi*AcrWQ4MO4H{PaWiqwE$EVNtK@MgFHZCkA26S+Sl&o%EdeffgXhHb+}NdO zRc;gNR-5h0#@1IR?==0cz@kh<(Sl?YY0DKQPm7cg=hgYEw|2p2`EuTl*te|`jwq&p z&4#xb;v>FfYVUH;SB4ecjiTX-qp-n6p;Cc2 znZDjlnBVSWOA=GSyU{K1_l|Y3-Fxo)u<|qIECE6cPg#bAFZ7Xv!-b#u=moGm5XF+L zp&Wag=tTJkb1g4L+;3%h+pNawNHsQr(F?dW$yap5LE`L+o#@b~yMWyYKY2ojyJN@x ztEl$aoSML4a-qlNg_ieUJ@!s1Mynk{oEK9TyLWaqo6l35IK;UTuf~$UOgDRX7H5W( z3R?3e9x53@5^eYG1{Z=t|EC3vdftn0KUq^<{l$)DhqwT2`FB}C)-VHcn3U}1!4|V} zU;bl0F~^BCMXlswy{QUsy$1!+V2P96OH&xf1qV&o(+{$ln+%Wli#a1u%MkY_(@0qS zZ^-)-m$Ei_BMt&`YSWZTfJ1~gcg;07`jbexGmnAt{}Auvt&A|~lN)PWve#nQVzx3A z#*q69TMpfFO*zakiaUTP%7jU3CJ_T4Cew+<3A_kFM#Xc^U@&uCB2PH$)*&Mz5I|m8 zBwZ_AhFdOwFXB&vR7_O&=|8*#v~(Jq-EvSTM`_%C#KDCTx zP!S}`jf)G-hM+;;7Bm1Er$*H~9CAXo7nPw#`|=(?esI0{Mre7N7=Y?Rl#YECJMV_1 zde~%0!%n`nAYyVw8Pm}jTUpT@O!FXRY_zAz+9M?|L0yb*U2gW7y?VO53Y4C$ENf#4 zt%DiN5l{v3&u_abhJGlmmyB7SBhGns5h6^ypQ#?yVU0To+Jn==4B|s8raca zbUyBRkZrUo-Lz(gdrJ9c$l;RI^j}VCV)EGSlt+J>^>#Kc4y76fmm->zIVVk?Q8(%q3qBh#1A{Rg7>Xh`o7yrhiSV<)$GpUw zH<{()KfuZe1AW3WV_zp-Fg^bgR7|Iq%Zfs9TRWnxsMOX^%=EgedJhD#pmc}c)H1_^qzulymyUQRU7;HCM=ebGkHRgCn}4~keYm@Cdb zZ?d>5?aMF^Q9^W9ru`@2(sEYN-*}eDnNA7v=%xsZOioDoM}q=Fs^Vc?j8~H-30P!Out+Nhdj$zc%B5@gAkOvzY<;6QW`W|pDCD3t%1{h|prR3@7S2i{` z^z^j94BjT4w6&E<#YZ~MUX#;EY@qnP$b$vjOu26|BR^Q@#FCz#Hh5`ByvH!s#ZTUO zdjR#hT-xix9CzO~+Xp((&9rta-1r}+}gN`tvdM2jpuMPxND z*0bCjs!rc5W`|ZzAVx4c6r&0;87PAA`w{$4Q(^F1UIenVu#QO%N({C&WF>lV%mID9 z6PJSR^ZAy77e5-YYs|}8tDY-zsb3_iTy~6?t{ixdbA_%`vjn}tLjI6V;-lOD>UEm7 zE3ho9(yR0sm)2!2EW@oS6H_g1{?%q0FCuu(<|tTI`1eU>(U6HdX(Vo4wg&gk0yEo#En>>3CbpC)eVIIwETXoOv;E z>gg(35W#CghX$yXH{%t2`|6K?wtAd_i^$Ip#PG_+QlZ|# z8s7mzz?$Ax^Z#aF@!Q(irziDYma$9pT;U=O;B`H5^18_1&o}3)9=5K;3_$2nM#KbP zu4+Bk88b{4IO9kh48eLNts-%E-W_-xy|119{Ncd4FTpENo96M2J`Wd9(tb_(oJlEQ^Gc+&7)IIS~-;2!;;R%d#a0uubnRZ4TD4dBYMxTAuPimjMG}#iSNz2>n;Z*LavHO}FF!`)L8kFm{k;H6`7++uHWnhz<53DP z2H&~{iuzhZ%CXvDd5~NnEt4#@eMvwP#Xn&|)HklEik-wHFZw%o`zD^A=9j@NGu)og zGrsAdp36r56jFWfYQxWrLjz&xdrBzZhLJG;*W@}Ml|$PIdoi*x_^Gec(k9H~BE7>H z+q9x)OhGO>V7e-C-g&1i*l39iH2O&Rl5<*ct?(L6yB4LDtUmtNiv)dmF5m#VjlvwT zrI|`a|9fmMA);-{EtIN$=2T0oN>y8)KV$Uzb3q&)Y8lA*!G05gwRtp}sc3ys^PEzP zrVYoHD7{;W=m@r=@81d=H}!W8YF5^YR=eqlPD`C)^sj~NJDu0iyGr3&bWBqCQTJD| za3d;(l5~)a#NlI8G0JVRzQAq;C2+6+5l8OY)&rgGW7JG#~3EpVFfpf{+(_ z`w9P61lB;WHh3{>xMi&!_Z{$*5w$IZU2p6Il~pSonUya&LvwK&21ZYrGo88`tS+E% zx3yS>Hg86|JcQ=DDp2imh+Oyz7IJkz-lrZmuBRM?I{YUs@V*CZ?*mh{A!ST`!=jzX zzU4I|Ep31s;b^HH+0&#dAP0Zzts2aN$|r_APcD6v;acj2OAK7bna_&MiM2|KrC+*X zFAVKX@V*Lrrt@?6%_19KEk3=XfQ`=$^`Y4yrKxF?i-1$|A)`aN)?oH!e*xl*9kDy0iw?yo*waSx zYi|!s$=oNYv4Oa@Oc9A<%;1#?5HVYh(|1lqMUl>cG3g)ADg?Bmowq;r@9{9l2Pmk} zqA8G>W)LqxM*)V!!^n`q^r(wJApXA*b>puW_w!FycTH-%E0{TD0>4xgq4vd#sO?nN z)5nQ^mz0Y0t+XWHkg)GbsIqX(nXnw=>PWxmo#tSYT6Bw{R}@ z)HW|nO2g&1aCu#Hu^ABxdHq0v+gL49jGp zuoI7J=cX=BO-D!s+hhi|PNk2X5B3bWg{z7HVPX#~ow>#Dr{dtIBHG7@pDrw7$|!OZ zOLnO}L08_8XfOG&vov7bNh*A0Oq7qgQyYwjtRk9ZY{Ij4+zA@gBda8pEN(0NXlMD*n^2AD---J4T16vb8Yf1?KY_( z6s!*uHH7|{W-(cff6T{_BFmjFr#;z`gqRiJzlOIB!!{J?@`Z9g)5*gS14zbyyOxUJ zVe9pCUsdw?Y@jJGp5fW^{}4;a4yJNb-ROpuSa(RbQnER_5E#K#CHWv(5W5xswGp8RH|BbSkBb} z^t$nF@8>V)XWdNyVjHPbYH{cI%wefKwuQNs(Z&oPjB33OE+-E%f|~Y%4^w0)+R1KO zbE5{7D`;@h*D~-9x;g`lO!n`BEmDIAC}cb|PR}!7e6Ri1dmL({Sew8bwFFb^=KVyI zZxG$zND2~;r7r}2GZ{zAg}mErhfQR{Aj~^xc6g$UXP}P+0)<)t{uUfs;OF-hzQ*Do zaV=MgKt0=V=XbR!o%%H$ho7VFG=xxGZ7X3LzB05-aG2()&^rHf1k+`@2z0PGQFo-q zliE%@%*v6FryJ5$3vnZgedFU!&86>Tqo?(nZPjlbJJo6m3mbu$gF`6vO7Ea++0kJ# zy@v}Nix5>Z9pChmBTJRd)+Xx;sh;tsK$rzJ#M8MeSpK9g2kDeCRWo2QJksb2HXUzF1lgORy8XtUcF_w6Q!T+BA(VSZmJ8R+3B_Oq91%yY+268zuV zgaDSPdJ`WFq}{-2a>3^0azS*&KR^U8Drpf8T5!r;S3jFH;6sB{Wd6rjqEe7y3-&uW zHZ(~c;AgAV=P6d7KESNKV%A3z#2K8niQn9BBP)UxZ})k}@YtXZSm-GhX@b z(RNe*gDh>E!(}pf(h}pJY*2ZEVl7b2ITdKyqP7hS2R<8Dv$PKR43MareNv*mgw^-z za+W-gNa3GkgOq?No9qHHb_J5gH-((G*bpDYaFKefwIDz z3+V#;{5!ON9Tcw$2Kp{CbN-@zP&L-Fmm`Mbj5ear4uV)1sXu{Df8=(?|0$gjv@Ezn zE05E3s(2NyVqkwthRu+o(CniUFK zG{)&_nb6xPxK<%`#DOs9!&sgRHjxZ$$BrR<7@ z14!du@5nsa&K?XYhX+UozOXzPK0+dk89^DbhYLfOswMQQIqfO5gu}gRvmJtH|5JR~ zTMJd^#s|L#pbt+5dGSW~zJdvL84swao;Lgad}N08J8u85JH@kepXyJZr0G=m}q3K2aNd4MW>*L#v~LQ|E(1g`6;PJDn*s;Ps}X z%r=B+kO^*Falh<-SX?OnJ1wtfQ!33{ari$i;B~#6wya#WD32Xm1m<%*a=(;BzZ^U? zE;BbV3Dk%?HFt9ocLd*G={0G6>ZhKSzsC=}IV;kKlup^)L1%;9Pzc7gbu93RlnxYyqq1c4S?4J%qcRZT0K4@WY_ORVbf zCvY|N=1PEp&2D@exu?zv+%nj40<{^`@ zb7AAw$i*geXn@74+_0q&yk)MP!NohGN}1-%o_VBhWdrm;^Z0EY(-atcqy}|N9&aa5 zGJ2byi+8f?_RqoOYqV2#gXBToufgF6;)H7Dc>{N5_OVy0;msS! z9gg>JO65lP8|HDyX!JENFW~nDNPqsUL*rsEOc|1ahd}!BlT-)e#E| z!{LW#*gGs3yOlMqd#@C zpy7ua(rV3WA{;9=YZL=wwi(l>@eNOW*L#|~n8-Nn5xWFO?gfnSUGu`gI5lDkSUyTZ z#k2U)A$K_1n4$bdW%@F#nPrWjl!0&Az8!2-G>%D)ycpkk$9TNyA=VB(J{gjDv7u?yWsj($O6G|ly$7rHB>J-&)3a_F6{u{tw zId0;juq415fZ?J)T|gh&JF5xTY9$S&AghKS1!mVT>#mpY zgk2OUSTMKJkw0c$8q&TkFRQKM7=>-PgV=bEkCCTT!gZN8lEpY!_$YJo?lg;eIWlq& zTa4vVqN6cq9xLUuip?M7xXNUYGM0mbsnEP;&bneigUC=yU9}ZY@<#;(02|YbbD@v% zgPL=}OrNxfGf_#2Mk-^el86jK!Pu*?aFk(I=M=7QvTGCsL)Ies=k=UM2P;pj=E$|J zoLuvFwUCq~d~>j|R*02|1ZF{86tquDIu+FyIY4#9HM^6>nC{f~;)sQ$bQCLj!IXX`$2pV|W4VSu`vB3VR;Cm~6~=gu1u8PAd^+@a3woB0>7@GDE%A)_R2>>EG*pHS*v z+|4zyH!{>F1HZGyXpm9K$AW6UsN$`wF~q3BR&XC!@X`WzL`i4LlRit}lSh=nUYIZm zD8p8WoYE$urNz_sT19-4q=2q8;o)Xz>dP59G#T*J9H|jOnPJ|)QAN3#SA*+JrV*s+ zyN2)lNr9IdxN@$ET>y(}e13kN`7U@>0DEOnHKM&u z@CyZNc|h%ecV_Q?K73`s8+pV4djCc@V{wGuO8k8A6iQ&7ZV^<&INMFQ;6X#ayFAAW zy_}QYnW;anQ0)bv`}Pmh#&tmt(DxxUk38(J&@M-l|3{vr-{a}WbK1!JOxXQd?kw+R zR>zGux4;>9yE>w}PIcC;T+Vd;Yt5ah+E>jv6PNm`aKi_t)u3aG7Of%f1iT^7;_5JQ zPD7VNYpWceoDR&D!HE_T#q|+iRZptXg+Z|&Vv43G3YBp!#H*Ezw)xH+O3TJZ{N{k8 zi;Mja*gpYj289t$we48la+g|r#kJ#oi!4CzSQVlI2^E#}Z07P`XQrajw&wk795!|X zasv7}=Fjbd{PI6XF?VT(VERqAU!vv9_z$_l>_CSn&^1yjOIChMk*^ijebP2Y_nz)& zrg-u!S*hD5F?)sLPs?>usEC63f+OB}_Au4lj`%&*IztgHQEG%)>2+?32XAV1I@VZY zY)XTIst#3OaYx{qzel)HDj~X*xoBmt&;*{g{BBFnqTPR}8Ww$lW)HaYLyp`Y4#Aoc zBD|z3$o$fM#r#ESGFS7`p>{dD2e5#~z-3#_s}QoR;+IkMD@;u1G{f^3eY-;FZ`hFA%LV|A4Qc@~hKeC(Gv4%w#}c zCeGIj;Mgvmx9yGR8OMs=y=;$F3L!6dv)dt*!{RXDdu9^lnOO;1z0eq63ctY`nk9>wK4WC ztZ*lzG|}G`16LHlSN9Bw6cX7Q(HfiU-{%C;91;dAW)ChwXET9K-JoOM*%+Kvw;wCC z8C%*l3k^)lL2|06tE+HH=J3AEx72*m71ur?T{-olJ4kP@S=E{l*! zBAKMsFo^o;tH4KPsRnlWu4h-ISd4a(zzu@a#`<1Dfz)C}_;U3pWn4o|Q`8z%2Pe+? z@4an_(5KgIpF+!c-LZ?M?BXvTlXnvaWiIzTYXuFXJL-lGxPJAw$7{s=Ou%o{n?HC< z_k#{o+@UZKhnzI-BaOIlTR8IhIp{=tq@RqVXC8K?kg*z7T`3D#qW8oaD~tsvN#3V< z#xU1?_(1zVCsdM|NTE8KdCaunJ%G^^HK>Q^*W0UM@#w@fpq$}h1sCn4&&;R1wCV90 zAhF(Hek3uxOjco0eXY%jPwmrES6J6rhBDXT_X+&1V!zhu8>rmT>4V*@x8+FC|IzQ@ z0jhV#57mC0!om466L^J z;)(*cTgN<dT^gaT}!{nf#ay4x7gq?#y1ln z{!{!={oaW+h4cT%(_4l``NdnH3X-BoH}jV+ z=}r{{QDBtrhLP?VQk0MukcL58nqlanyNB+sp=*GlxpU6F=YF1Np7;H*-@Vswt+m%u zdtyfRQPnV~G(4zbeI_}~(@{*~8UEh*Z!|Q3l9;Nm#flrV$hy|{$3PAmw#p^8PSkHg(L2vu^taGm=xlSOAi_^ly({mfZXq^%j48imS8m ziwmb?g4}R17?H* zTD?u5HfnM?;v!h$n+9K>y#FI@|GpfDD7?RyBbvmVE9@Hb>6nWqYxYBO_y3|Iv6m(4 z($vRhX99yyD3NC&g>MFqbE)~9$w;3nh6@$he|UQkT*8zkk^H0Uh~?$FX1O#F3;EF; z87`|mCE(p-O8r!kJT^A^=xWWv)WLJb{qT)wRg_XYig2TBB*9Zt^xgk)0S=R$y8YX% z71qwig$e*SrQH(I?*Hfqb&VUoxFDJRS{6@?6U{|lC&{rF?2PWzi$?fn!Q20Mjil zba|8H8BDpg_+^wYT_|YPMT4Z03C_ta+8sm|qy1!t$Ddha3<+jaRDDS%ypNHx<~&rK zqLCeRgFbBkG2^o^bt6#rM+f0tZEo-sspbKg(z7P-U~}w7YBT>Kt`+al5ERG-=!0kVx1^nZ> z*BDBJzLcmyTR>{-X-Q{aXE7~q#UAzayQB^-yoEMGs4We5kScGC>82Uog{K!g_)qsQ zQ*p(QWIJW1-m1uIqFj3I*V?!mWYk|}nLdYPBy+P6_ZScXG$e>3Uqfx#MZelpjY$vX zFye!q9;1rI`xyH=2SyyVqJ*_&wFOipbU$}~d09Zt_DAw`tRyP->vxjQkLH@~^I*)M zX)x4)C+v0Ym{BlibX-TJ3^O%}%1gQ19eGm+wH2aF3J=S;H*XCe>KbVEZ~W^Wt+A*l z?V^pI5B>T5nV&<3@)Tz zJaSjIGd~|gYmOMuqTVZ3CDBKsm80_w!E4d^6M14Af;X<`nu+H;)!_p)+y#Yau;4gH zEO$WC(`rk{ysVj>x18y-d%R9O>6x=O1)pvpnNL`q_Hx=L$XL~~09fo?=UD}%- zVq$DOBQTM}bo0>Ye-0PLUrie7Jt>L?Df}x2o{qNYsKfOk$>!9mW?e2u|IF=+HM*b? zW?ZpzM~QwaTxm-vxSiLf>4(&G!P9b!z z-QJZHr(yxVxs-TZg3kY>V1QhLkozCo0o-2Kr74UJ5K3p7^ z9-BR`?Wuf2in!WmqZk4eRSRG(V+2Qthv2sEilXVCUUJhPgG3Fp%2PzR<5IRyrksDv ze2MD!!S4NKYWq^-y9S73Eud&sK{3B_UHr|37UL~>aS7KQ5*$NlBIUZFdONB z>0^}o`VX#ZSC6z0_inM_*nc0EcP9#Vzj!TM%{>**Xn)nfgAlKKTw#b zAMo7pF>{OiCX;ogE9#bJX|snX#kZ}js^lh86dv<~>N4h)PG*gM78#z8uDhk(7wd#C zWJVvvRWsDt)@P07=~8T%a>jRTdd&TGKWv(4mByBQ4S`tqc$9|IGfrrvrhd=|b{B|R zC)jhoQdZS;EbVw|U?3wi*XSe?=YRD~GCf6>jhH(ZJ4Y1i|8|khEbp19z}LTqmkkC2h#Nx!N3~ z(TFQT798<6Uuoga=mo2TXDJIKLcVZU8FFl6h?^(-Pq|H< zOa1Jbnnh@iys=YTD=t~F7OR9~A!bPK7%!T?T#g?pR$b#)v&LRUAl%d9@cH|WP!c1F zCp7%BU45OesA;)-;2KRyte9tN@j7~Wq~UBXXCfHpVRQvk)|Qt;yt>E3)5$|@mNg;6 z?4M?}8)SrpWIhwQ`U@05W*jcbCVGJyRju61L&NIg%Ujj@)GyeK8X2%@*{_s*IrH;HgmTb=tqTWFWEv0w__1 zi1L2;TOg%Ai44kqy*y0@79N+vX35MKsa;46(^ViNDSJ*8f&KST?uwB-_y<_LN(WS5 zdSFsZSfN@MZREvCcEqj*$^Q$J$F`xq3puS z6LSxi-lp|uXC>qIpI-cwHWpZ(fy_scO$Uc1wmJR}R|5fluoesb>{A%|;{PLRcnEmb z`MZ;Q$$JCtN(@W==ojRA!TFK?otguAW|T=ppUl}4OE`r>-^>1hUGPwqV3lH(`WdS4 z?cqJeFg5)e)v=rY_CJX|UtB`Dq7%bDf1+5eRTjb!v5M@4}ryx5zlf%>TSXUR12y4NY6PM`_NeafnItXNT35`XyG1qiQ)8lrBc zqBz(h+npnn*4>GVU~>NpPQFG}N$d7}FXA6G%{!S6YkfXFw1PEA_zKq224SA%>57lO ze?o33>P%wWOw~0)BKVU+G4Y7j27q|SETq++drSa4N z_%f>cAKZCzl{ah>>3Yru1RURVupwra7F4;HUQ1(309ogZaF zRHN9t&!1I{+W)`>;3$$!gwg2i(A0$srhT7VnIvAOWiNimh{L3A$kHgOkP1SZvrKlC z$@-O+myZNVtW*8X@;!eoj#D=BK^I(~c3|Mig`ok{GN|S1fdYlGQyH8s!q&{V7hIhz zs4ssCe}imjyr5;UJ;4|F;fjdXt_bh}{1hJ@{Vr}gt4(NTnS)p0vFNVz70 zoa>$>uDynu)0SY#-a5y#_Zhv5;tOLgq+n{r%wufHEfgmb0Yz9@m*5taAO&)lj71tz zDkxXz^+=N008)9KXF|d-iM1oN7 z3Qt1dRF@}4k^c+P$nMTG>{|PlhE~6 zfS6EF@ma#I&DmSs5Fc;&9nIgl`=v%vXGD3g2Tjj3_UPI-c4a!+n;)YR6VZ#y1`EO0 zKb2Q3_sQyT`!C)rS*ZXOE;hM+|Ar$EQ`z9e3=)#EMfD!D9G`KmlP0>hWCY{)+Zgdn zi^oXJ@+aQz^`qHbc{~B)G&G+Vo_+Z(-#(onx*p{|k;|O+foW(cLbgd=&_YjU$=_V` zseLGLu4|BM)L+v^Ca#b@#RX+=e*34IU=FH~$a>Bhg+;^pOTlm_^EJF=w}ir1t=e(!|3Fi zUZhX5CbA9J%tEjczdz%uCRB_stR$u;-Y@weE&h_mNLlnm7zL{JWihtv$s0hDm}>S) z(z}6C44NH3DhI_~y(zZ*hgg;QiX!CsHq~*W&adtiIU(wPuM(I>?l0I5m<0tprNh)S z(3ex+NV&6g-i3ygTs21>P=|k|0qy7Og~uI6(gQm2!Izn@d;2!DX4%EDf0V3xyg9Ns z1Ak*ICDu(kVcj4x?Q$_b`T8A0OPe*zyEPGlf2xXBimy^^EX{v;@jP`s-#$3U?E7qd z@&HwXbbD`A`5AS@S*@jY3L%s|ZZn;*TUfDeKUQ*?`q$~N6Z|Rmp8a3e($~^C(vO$< z!jw`-^5Yyj`(EQ8N+K%Lbbm5EtrnHig*KT}uree8%9+^;2s`yc{)R${T@*7c<{3zl z1Hl|))WmJ<&fg-e`2FIO+4Zcl31?{=KMv>@fiV=ZS0jHye!?mcc~mJmY&cq?mbG&7 z4;|a?H50f--KCCOB58^s|5NhIw3y_U=5XMXwGa)Cd1jT+M$X&zvUf~Nv)|&`E6sUK zfNr$wHtz*v+*K1(&21x$XT_M*fV0Y79ePWd3`fDN1q7sN^?Kj+GR`>^fh|}+Y&bUN z{by5#w$wGID!V@+drWzLby-%V>5bM3TBMfLK2(p{DxKbZ&&n4}=a+fvrr74#CG5hO zv&pP1(_eNx6rBNa_POylbzeLnOo^Esc{ zF8L4By>wX-5Dwy=Z|omzh>`&0 z9fs}b{3G%TPUWYLmLDQf;QaN%BrcC5z5n9Y31a&B&F*$~MgR{_N<|(hQ(pLP^jlNr zZIA3ohtwDTPH0bvHdJlv9k(+SO)|!@oE{%Ns;i-znDHh0KQ7?ZhH~Wzs|dl2$Sh7l zLFY*JS61s++x8^^9;X?`+RgPPBl9Gx)sU{Gv2Qu%+%}ZEm1A7J1G4s{VNJHydf#%g zGVRQVD^Pjm#(6I*6_s~v98HzXETAP*!WfpyRZP9dK)1(P%-M0%6@MalF;E3?I~f5Y zu2rwMXDd&G+LMdR^c!6WyZFSv_<&5c{)0hk%+H>sDL9ymj4i(ek|j=CI*-xIUM~Ow zb-hmiklv!aDfIQ@!>BU7D2$^$F&f{{%gV3+F?Ar@nYv?X2XieoFoIVTVI|ilXIo6!ayM(J#9BIgxz8%J1Nmu8d|?X%|!^@%BF8loRdrI!(j z<@5v#tyCpiGE3Y_@#JJA8<(kY#hvUm zySNqWy7a5_cQ=2yBK5j6>V*H7M6wj1F7HTa%gJG>Vt!e(V!?c`|G3N+cb1N^2AfiAmM!GuJ}WN`}}(x8N6(QQdAI zw-pX#dmy}7JG)yJsj@umKTR(t?IMPtUs@p2gnyugg@sf&Es%kaAlD*xlh{(i4mQlz zi7%M?X})X6CP!rS8H8=qE@!E*&P&nh*nR(rMnZyAmbZ!$Z@P%i&ejP<-ny>pzG3C1 zc@ynnUyIHY`UF}E#scvq8>Ur)H)|16)8e?~ohMxCq;|od%&Maf)pw`y?Y`97rWk^* zVp84kRFxiu-j54(OH(DceL2#QEl7g)5vl(uGG}cK^7g6L49G*jYaNS%{9`00Y7;3bRRU=-ESx z+<}%L8pi1)u2?N1jM|qooAIjMKXQsl?U^BAiTIJB-&FKtFZ;4be}9Gj)dK{2x2mCP zM$y@5{mJ~BoQg$+C3gOzEqO0Y4ZH%l+l!WKE(ki1{Paf-o!r6R|IaxYi*=s zir(A_d!dQ_G&I?+&{WOz()7-;RRx#6t@XXVFSG`zO|vO3(XTuLTHPN=OF^U>jI|N) zaLFEV*S&0kEmMllKR+#qG*ig{hu>vGr{rQH$3w%&L=-4W^?SHN!#94#YQB_nzc`;d z85@)5pb9v0^gOASOgx$GJDIl&7@#HMf-}7Mx%>rLSS%t)fhFEmij=;l@oCsYx9U+k*`5E@BKgR zruvMNQbw*6W~jc}sn~y&@cGbJefrG-KrivjzXxOP4Tk9LJ@o1#&UF`8 zn7{s)Q=_Mv#G6{@?Oc9%-cj&E?(U{FjasRg*CTZRiM^|m)rFcdIn47glh;D=|H)_uP4DxGrC$KeVqGb`39&iL9srS_*ZfQhu!)irMJ z2MZ>T+I+a*C9*#F;D08XMz@(aCgS2w?M)IgM$|Hu$i!rm<@L)PhK?qv0z$mJjyuYR51^k{;Y%;mvrCglEgecm%Vfk)V-OVJHSMSO)VUyW~k zRobkVC*i5f@9o=a^9)dbwN?WF!0g+Sl;>}1br$%kRr;mW=xw8<4Ln->Wz(v_1X&Jv%KP zMW6-$)eKZ?q^(CL(o|=|6;-9~(NYRqp%mY+NEicCAXw>v^Ef;Z21GafwOXF2ZsE3T4 z74)FWJ8YP2bt0^!-)QczBp` zF)pJlYbB~sOsAGP2*CcR_>Hu#%A`!p?d`gA_ujcyqG-BEWOrj$2z`wvc3%@YYJ8+| zw~8XCD!6lw{7JVskn2iUeG8x>}?1I?@*xuJ+AyiJRxi))5cSc9Bqa!7vBvx}W(OGuQ!jV8r%XsAfJip|AVB zs~lz1@E2K(JTi8;MjG!5{lgJmqwsxgs^W!&tjo8Vaw=;JOrX?XkV+MTscQ)GjC||) zxBz2sRDU8D9tQdRew7l@3H%?%38R~7Vq7iSjE?Wrzq_%zx-bX0xlEAKatHO_M2DXj zr&QUFpGFLP{AA{;BE{|cjM^IcyCbzh3Z9~gWiTMoe zgo2AIts4nLc;b#jGVaZ*ON(tHva}ID^glM%B7jgu>Uh zNO@YxScJQ#EQw?+`0Sj;ZR#6VQFu63fiS}Km0mYbw2NvrURr$2Lf5jfZ}KnZ!oSNk z$_S#I?->|nECXVB?w+eV^Q-scKLU(HAMY()3m;EG$)}j~q~J=$kTh8@v&XYUZ;|;R z5XAH)3zKm8n7IbV>SgA!$Fj9f$yyzTI>2jQITuLmHNDk-<_D3KosQQ@d99HQc6yR( zs&hbIOmys;HS%BdI&U&xY=7o_?Q<_4>04yLeVW$Am#kU1)dm?|t)u^CNU|~GK0UQz zllvH^wM4fyK>2ZeYtY)Fb8sCNju*4eBX7f3Ezk+Ba|Sngh911Pb{nSa4IP;&W(tMJ z(I}w>B>qv@*Lc#%ZQJ}EqiVT8W<6MwT}X0lhiN%uF7JG@;DEUXH;vVL7^+)KR^x$M zs5)6o2i(BE2ZrrpF=3l?Z^QAX@79LJ9ycg`r>5s>TR6kP9ewSR>+TL9Xe!YN$Yr;M zl{?IVJb68TlM=;(pvwmvm7dBzHDQ#O{p5)#PT9{`Kh$r_k?M}D$=!;IOHlTny!DgB z-ZT?3>cPI}P&=)tBl_||+c109k)>aXXXbBJ{ToL07bu?B2rLEO=rd9{S2Y7QLgwZ_ zxhH92@Y@EeOW(Pu;W((-@3}?#cC@a>1`ZnPU*Otnj%4HQ^mbe8!K%0!PgCiZ@%$83 z<#yZ`ciPV&9~P^kqBY&cgQ` zZ3b7mBk;UBVVi_tjBUjR@r-FdfQzue)%{;72%OF$65eBRnH3cDFf#H|YD1}4(NpGv zC1%TZ3;8yO%s4+Qu)OBpK+O8PZvf}PCDd=41+h1-7&%$;B5kU?N`bp8^~LpB>Siv* zyg<7{k($OVT4q^EaHRKa`N?>*Q0N*HBWVd1ghf%d!aRk`!Z$)?DRS9!Bk^J)3p?HE zv1Fn3c98^`pSyrQTx>aQKMvferEr3K4qw$@esqy7OMK2Rec%~pPeCHBF6|9qtxF{; zDS$S_2{wgG5^Kl;N$h)FrK{-iygqS(&u)KPq__iE3uAhz%;@9}Y-4up+_o_EQ#&Bs2cn?$#jLtEsb?v-B4=?(8Q%XwgTW zm)>8M+e!tt1Q56^8}ou|Q+w1~m9=8;%qiCBRG}r58ZR*{20kAvj@fp1KpNhLnKwWE ziRR0nMSPXEgeBA!RMG(0j@lVMIG&nw2&T{`f5Nk;ryaC5MjqOAv)FDnn6Rl8MI~-P z#Zw^;jFYY98YpWG;vgOoGVEdw6)F@G?=~pSBnSWRTj3MgEh|6`T>fr|#j=mFkHGoe zJlK$0QS6;5(yz3$9omACjE~E4ot;9~msb7I5{vmoJsDr(7<~rAEmMb`3Y>yiwI>C! z|EN{-z5#yw$6Hv5nn~JOa6n@c;!2eRUy2Y^=&KqsO7Xj%ulChXJnitoN&BLi&^Lg8 z7`83^E{gSxiv;i)@t*?k6nIE6DV&+Ln3*y=yZiTeg6sJZG<+&y`0xM7Xh(_x0AK8F zMakzh4CbOP4Muk9^v_BB$G`q%)>nM$P0m5ZX^6*1_+BQ+bB?84nTt_KHHil@*ld1F zeAW86HIu(B&j>WV;3D1<%hGtG6TeqgJuaWvv^$r#~O80n`gH!*AVCgA(&%N8G z^P>yaF*HpGe!(l0k?jwvc%AISwzvIz#9OSwk?e>Zz3}Sf=X{P|0G&)}N zM^f@-P6$;!UW4kK{C0xE7-?uNBnktEYaZ7uN^Zki&^nK(r=_h|?9-W5_T3qbD)jR; z{+-FK4^v8EY^yaf4WLr+!gYyuhTr-R@DdrO<|NQ_KhziCeLlxria4i`yI(VD^n1uw za(sw1cv<0x#M#$@cz2kZ%#7w{-TbVOl?pxjz&&lGtz*Bon(@GE>US_Y3MnIA_Ue^c z2xAv|4m7xd5C`5d%n^S_1THw;1DqzjAhQ9e!pEBynT@%d83DIB2`3q+`!lQ0xKtxO z*+x=zj*I8bzJL`;;jLR`^j*zy{pzBSnqF-+G2W&0(+U0opqyZfsJ;z+r2H^;?Eqg}?X{jq)FLq8tl)pD+{ zVlF)L%6WNu-M>@1JYKH7PJi@4gfeK967CwibRq&v zt*651wEbtU_eaESPVXAE#N_^!MTBatU}7OOqO^|hhMLnu*$i=0(A&h1%f8E#@cog; z(~xM?vQKw+VMdjCC7_efap7U|p4bl+XOufs%oF|D&g=4x9I^~qZqnjcgenO;0{iVl zihdYQ)|{{hpgLztQ@r;8j}P0Kk$lazOT`p5QYr^aP`CZgmB(!v1Fu-Tti2tB2W^Sz zgmlJ6ofwhI?cCPKBdv?Do5c+oy9&QvJ?^BJFVD@-+sYg37F#fR<%P<~wqjVodX-3F zseVqT-qp3L3|0@<3y0UWVQe^IL;z-xQ{6hl!U@?{!9+9yVs) zv~Tm>k7YeLuLQ$j<%fT|-gCiv-MEviSdRIVIUhur`^$18(&J0A9_w*6&ZQEVWaVZO z6QnK3E#oct`XL9-2j+`wST+cA*Q@D+OUd8YQ<}S6-0mksK3_-yV#IMNgXF+=hVghE zmw2V>A6wED((?9On`5T{e^hzRvAY~j^S8fV$L#_Tt@B~?MyQ~%G@PEOB}?e}+bu(n zgu|P+TBBW;0&hUPt|Hn0RVZ%9*~Dj^722XSIGvhoUld+2GR+(1|+gOP!`JbtYMWsEPlE@t&JUXjup8;8X zlx3}(wmu+`hedi~E<)*DOLyMNbOpqH9IJ)T_a^8z24ySa{h*b(B!j_aareG42MbFz zrr~ea@Bax8Ut1*9#5wfSbrOD_(+OKl%)9w_)j^72Ui>c>8w zwrFCITxB8uYamu~0t^_4SlE}lhiwD}HaaY1_qzjE7C;%!a~`cX+{us{zlXMiqj2oo zUde49X_u2~7(&8ns|!Wvbs*F$GJyw_bGq-K$qi#qYCddEu1Hx4gRX_!EKT^{;3j4I z-^Bj}KAwOt5!fCh256Mr?dO?ty;|?TtyIkN%oElxh z@4*|2W{pmZ=Yi{KpS2NLGKV{TSJgITd~(-^pwP;l!`9PmuhMdE(Zjxzptz!u$yv}%|4%;|Iz4#fhT?TK@)7*ZOS)rLtdwXfj$M3 z@ost5rnwT%p6Nb)lfR_Y2$Y6;*?t@Rxe^GrSFb40-@7Rd0uA}1x=ZljO0{xV7)dYn z*mFd$4B&hOGz9PNg$N0Vipn+@wmPj9l^~1-YCQ%w)8+g&5Yq>9zV4RZ^HIx3si>q< zV+l-2suZ!>PQq9Bm&T{*%2Id#tiw2w-2NcL)5uov)ZCz*b(W~l>Z;~(M}A?M&tUp( zjQQGn!^BG&)DAj}Hg(`~%JzmJ`F^tX(VPEb-&RBJ`mSJpa-YlalkTEK;Fj;hMp(ce zDWZ~lKXeH-v`y7hV4Eb<2)ZqAnLrpdIq#0AN@Xq9+c6nHZ>Ei}+p}an*e<27yz2Z> z4Y_l)(_WV~fX6-3FPE)er9*>pXrZT%8sTHTAyF^5#G zl_R~29U+gBv@iP%(zokcD0t6Hpww0x8dBpPfF4_mD=KdZ3V9ARu5-L-O3s?E2ibEy z?}~ZQm}$B=*VBND$(-No^r(FI95J|9HmQ(%2oExOLF53o1uaz!nd@nr4h zi4axu*1Fgf!1ipjWZ7$^zeXM!7ZoBe?GcbZ7P$KBY+4lsKb zzn%3=SG&IwXb4~!Fr79PSulCf9&`lFB$n2H)M?v$H{E=d;Q`{!@LW}jl{J5$sHCY0 zb{^@VVeZ@*|A^mwk3Be(*|OP|#9j*z9+fzb%6iDmYW5lK2nwLoL-HJs z#noH~9XCsF-|w4qwGkA#dXr-IGn02ema^~dB8mrKljYAas=@lq01JTsg>rF9p*8C) z10hHT*puwj?VY&UZyb%8w^_YE7^-7Ds_%|+r59fka zaq1sgY$lE@$svZPjs<7(;>f$izQC9!>NA}+$;fTY@w-Q`)^!rncA%tbZMeGQ=H}$J zB}y%9aRnKw9kM)=OB@echxAWy6!Ppk!iO0CNca*0y4e^+wf}odkM}DDZ0t)_ zpu@!scS$ATQe=-FrWg)wHz6sBVaJ+*veix~;sW$YvD_{6UZ+j-JDp&KWa6wcp|e%d z!O-?;$L=cw)%edQT8!a%>rIt$gwBuycM{e;Isi(Ap>xsWFx8P;x0I%r$O~cM;d;MP zw^-*klkGCberigKu4p;Ho~hXDokgKnz=O%6hm1ui|3YKuP9aeRKV_ia`}#d2j=@`Z17$9CTcQ~{IFRwQ=S!jDigcn zy6>>EETatq@igzG5&M~5tVdQf_)M&)HyD|{TD_$$>umsXNL0k`RZ?)kr3Ahk>lB`4k|_oA`$5AgVck0Cyg9BtHMCW z7r`8e+U1iI<5c67+Af2iE+O9>c8zW?$oV4C5XSP>)={bB(*26&wY&C<8IuNw!8fr) zR`<)n?WS6u}?b%Qu=!Cme~6E z%fJ3mhET{tqnmDiq32KyzkfLi5_?PRa-+OoWJD|o^?CfoK8GhlLqdw z0^IC`?Bkg+sp=35A?ojbicJ;<+}@isTu%e0Rz4JG4wgzj`U4u8L@#EHYVHwEa}sQ= z%%t^pruT^E+q*O~w0+CHn+fDZ#WzRLR5#E>Hy9+Vv*vH9aS=3ac$&ca#e)PO-eSsMH`Zh1g^t69g%z=f z@?o~)V=lt!-yK=rCz(s}MY88dQlTUA>6>*^d z!naQCOqkA!^OOY2F79F|GtgzGYaKO)yViPN7!l& z*Y<@89V^aC27l?yDy8#gI^|Cow0Qk}CXML+$6r5r#;|xfVHeF`@u~^ZZG<6|eq>q{ ztxqjotXTOMqFDGj9~rWW>*K?!@z{mJlS87G#>HC+-~8ObF|y9eM%EqqY%BdNgg7Sb z<$#5i=~o}g z)cA{E%6jjET1Un2ZB9CYa?TS-#-$fLhUjT6?Elnxa@ZiP`_F48vU)gbD$;5LHzLt; za>i2B`YoEF<{ z1Ri$llpge4T`oMHO&`k|!L>T;6hk5PyR}laQQ2No3%vT16aSVQlQ8W~s)vzH_pyGL zwN4Ha@!++t(OAdZbl{ZxF=I+48DTE#iofSnw@Qs z+v$$wSr5WT{7t(Cb#nEEJ$weRyw(YYm(kL#W*gf#yRn{HY1DJ4t4m^bQW?U3Epja$ z(w@&u*UhCn-7nmV0_;mA|1F^&5Gz$+aeW44n`<+CAVPYrn2`bA$<^E=V zvLuvv;X-*e)sC;hT&uG(tMNk0fVNOhB*1>>6afnLpZGwFnBQK2vB+t8$ zPR;&qOBJ@UE4l7V*p-CXp7)N`aUjP>_l@(yc7V^>L%L%?v8Wz4(y-F!D`aylWe|^h2#ZGsGqvDcny&sAbZX4aLcZ^)F z8wU45AzuCu0J}oDXo&mfb;Z&Rg7`S>o3TSLuP|xHWySLOb%lsppzY!6CH(Q);KDn# z)lW<2^&}jV;_ttkdeP@|B~&M-7Ptq<{KwE2a04mZ*fx$>iZ@G)tzn_Nor3mLeYe%WarVS%}gDxe%Cm@+H%?rCW3aBelR{Q5~V<4?>55?qb{ zG0>AwuDm7Bedfd;fvE)ejB&Ysw3rec8QGGt&soTPDssjZc|*+>9@oJUp4e`Av}#cu zwZ;#w54i4!w-QZLzC1s16DTBJP`2hB^zT%mTdC-nOls;7CQ2a_V zYVLAW`k&u8=6;7a)E5Pclqu`zAlJ#d>cGHd6vZrq$P=Bo(0C?lp^MMJR{V**16tXkI*bUlUxp!i6uJ26_Ng5lUBAUE2(>sF zP1Qea30o#6!KrTZ+Wy6O;A$RRQ^X?Gr!~Juu{m={!5e+|@ZOTuu*u+JQ{5i`{Lau1 zCw#+?a@W4CXlSB;v}`8!pw5g5(cDF|lM|r!Vd=L8LI!F@#qWDPkS`RqA~t{ZJXX3M z6eU0gH=Z>Lgq1rTl^#Xy%7LegmLn3r9%lwN3CEPP7V@O$TPWf!j`kco z(7v>&dR;gyVbh%!InuHzliad@uhWFS*SYITORY)x4r%}3zf=%Ahpv)N+3MP5FEw5^ zk)raw^QALRsq~W(izapeJA)hwn@zW>TILnCRMXw&IV0^v>F4iuCOSp;r;bEh>`>_1 zsD_0Fd%EuVU>;xV$(U$jCn?u1Ug_f;&T~;PZeZ|z1(SLvH5YfmR(e=AYf{Iw?O@Cqikr|S8E>8P=CK(mJPd?P!I~6 zPnZba)H-;=%ol(x@U4xR9N8$pTkUnMcXR+K)-JnD$RlDoblMjND!f)VJ?ut&d#^Dk z{uW%;ySwJtsILA29fstQH7h7jC{;R|z3QvYZHzAgP)U@?RzV+*VhPeP?LLmW9uKC6 zcbzy^oq<`cffL-h(tR(T0-fCs@riy8CJ*mda$8wTYY5B$TDLp!Fr?as6uavESUvK} zctdCKR+8EYZI27`lCHmoM)Lvr1I&*TVjW6VwP#jSxvfRL#im0u6WDx(wXuYzJG2IG zrIu1H4#hoC_vv&_=l>Z9*%p3SFfPX!vK~!MlrHBW?Lxrv{2-`9O<1P0j2*lB!jY4- zEKeuGmSV%>y?1res|TJzc+_1&^ zNP(xBIEMMjrb>OK@p>fgm99uo9Oh6Sp$>9S&EsJsM)~7V7rc@xN^5^xnX7itM$*eg zoJ$|tV+l>aEa1nfA8H5>(|W1RSt=gWuP7Z#&FcO0YgG1g!tgPo&~Ebfw|99J!G>AP)3WcE2dEWHp=) zF$r7Cd3&1;%WjE{BsWKW{A8&%5q8)EgPICyC5a7bRUtdJgAO^QW9RO^yeCWl%sJXM z^j?9?-xHg3|G)451!!$ITYD-PZ=r*BJJqPKbyo=njYEbAv8k}72qY7ZHg>+p3wb!c5 zlx8FpoN08!=QgxsAP8?UJEoULH|vz1h8{84M~TDWb=bb_+57LKj(p5k{>_3!oqOBn zBP;xm8%l630t2fHD?mOD*w2l!_hM5K)*kYp$Bqw6FO0NJP9L_;P??#i?U{>%vXwB! zM(YFwF!_%IS;k(b3V9;8i6weNpSZ^U0P!v$NL6 zd%j}EB7m0rRG{#1sb8ksjG^CBjk1)xSCFFJYks$prnGo6-z*va9_`_qVt&`v>+J9v znAF91{oA0~~|?EnTsAjD){btz0b$XO@@pip_vm);YBw z@Yc9R?T+qfz!ZloaQ9lLMnIX zS$td-{m3Hl9EQ*P8y{L13B%m;SJwrne14`ghzzsIGLl?SzyTIb~qhCN!1rYS0JkIN-YVE%x6GLTM3Y8? zRqi*0q1!WHbz@ekpm`3#@yy!QYZF`28s)zr2-|9!xZL`6*Y)qQiP>lBWE;)SQfUXp zKSo((lbSw>Qj>S-I{M_MiOYmHz$b#88WyjqVo6LAQXqNt5H1}ctJ3SbMhcttoQppR z-7AkbYcnmII@#SA&{1lvy3tMbXo+rPYVvV7E(jB0s-D*5eVI4Vt)~9n;Lqp;LjAS6 zQ~nn>YI>?-4J_{7Z;Md}!f8QMZ>?+iCF2grHq6#rxkO941v;6+8l7wetu5_KPm?)q zeajqaX|0KCkEI?@d{;(J4m<#lA#}EQG(F64NjRNvwM5B?NtovT``SpcXa>qzr&-$Q zbGgJ2$Z}7N0} zhv~{7-plA*&=y7O4IPrVG}AL~*GZ#ZxvdAU@z!@gb{6J-0sb7PUH}_w&2{;qHDUQ) z=k=v*ig=1%@?vK0I4v%Z1ubkYq^KRZr%~-fOV#9>Zqw=YM&dR!R#2)*6V~}4Pc|^0 z{TY3bHs$@?-rmoUuYS8paSHuNb^#a|SWME?nTc92I?fwOlWkITsqdw|y!&Hj$NnTD z^Y~wQb9$Y$oa=aFaryE}0a6zcSgrk6fU=gaQSyEO)z&NY4e0e1F9v<0Sd|NrEEcy$2@Zqg! z4ngHel#&h*czHD<%vLfD*pGRYPz(M`Twfd}K?H6CJCj*2eSS=tWjIk1tRI zl^OxVhtCUph-~II2(LQi)rBJ_iy~eFLJq{H4%=Erz`EAod58v3R#0|T>tCn5dnKkq zZ+a%|C-bh)t~|K(AUr>75(>OEcyaB%Pz+f`@SXp*O#u;PAt@tI11PJS+RV1}aK%hA zWx?p=>!+iO4@c$YF{h_D$F18B1+k7TVL#>IeIJ*#67S1jwaWRyQ+d{+w?G^9kn6Nr z+3~ZF-{QS(P1ICX^O-oV=l(z-$&|Z#wmj&`hE^Cen&;OL!@dRiC(EcsS;vwTdhV0G z$*7rA%?Y1SNzF-(C@U=Wvyb~4T!fpAWD4&}f$yR?M7-3T0t1P?QrM4MavP=w5J9Y0 zG;Wl<4d;a?#kEUv^;t^Mkj7W=h@_b;J&Ox2x8hwTtjmpGfp7^0 z9URF^b8x(H7IXX!LeXNoMm>=8?ug0oWf%mii(f2ilt9 z{ZNY;=F78{`Fui3iu-TM;hw0G@}bxlCS;i~+D8_!qOkN-M&3<)5dj@B&6cC`4Sl;b zHu74*>MkmQPt>#CX5qDe#SKWxr%_4|F>k?WPj4_eAnhNR?>k+0+nlLgM{B~3eKGln zUJzrni~zyKgAN<5j^@ONX&k6)AC7+n`Xho37S0nIfpfR+LvoKllc#`zwq8$^neB8bb0wOI9(w)*B1C@}Rbk`{9 zlI{{|r5h!sV|4fEknZjnqhZ9e&-eA*f53iOU1z+{;|LfQ`X%{n@-l1miLgd-)sJ?> zrThYEfgCYzc8b`sLl2-@T>iGrkQh5HEIe1-AtdnYp1KTew^nX^{Tq!d`2YZIcEVf^ z41p&3Rm>72y*&rKE_{&QfXQVX9@#v8dK=}hxj0DBHiX2hOpQzKEjXZLGxutw%UFvV zNF7fgfnD_}yCh{pB>+hSVj31n8}Wa+fLTB}sl=GLvdbu6kP#<2FlNGU`QnuZ0B>M< z^f&o;qXM1&pJ|=*iCauXl;xnbQ7YwGt?ziAY~F%zmx<4F@Tvd9`C&8UB2K*6PSy_0 z+9E+7LIvBxx$))+WTp%IT2bh5PF?0mkU*$W0)O)q44a{+^E{vB=4=H}ZQ-4wU(Cjt zwG8h$`$SvgDaa8{(46hvl&CJ1U6cg$(3R^VN%B(u{$A$PME3 zE9xY+gHy-A5mxTcgOlU!u_Y!oe+}mA^#X|@=jV6l95}sPhV@OIpXN9kLRk9GV=SEl z=Vz}?_}1<>=7rAC9_BkPTd-b>>E*`h#dcDQ@YTU5QRAJDva6CO#z9GO8rJr^uLe;C zOe`wk%jwk;M^f(v7S`E9T?g8jt~-&mdkOQ>GM8;R5L`_Ve4mHIg^{Oa_-5YxV=U9$*EZ(hRqPi$fp#mEp}oM zaF|vZ20+B#%(8JPxv5_n@)3j5By#B6#*t!JhQN{)KiTmZ`h5|X{V=Mgk8MD%coAm1 zk10y07d^a!5o}#0{7ICC*D=f)?pZm)=65%{~2uo}X4b=}}ib-y*e z0s@i7VP$iw)tgKLi#c!`NQ*Ptr#G{H2u44vM}E%emFb7$1S9lZ#hoJ=%e0Zms?f7X z^3}SU%GKtJJhC?(CzVOzAI^X;0Dc&bIhGOu-F_Sm0dvEd*=PDZ3Jg^Sr^6umQ;a`U zT%w4scu_dKyp460y~5e#SN!d1sN`>g8Jf`^UhkEzwO`hR>HILPDC7JASYoc6v()=| zfaI%gsyxmzaXsbXA*yY+6!tSQJam?lr@&)Mc>*~Mr!1TaV*sVHU zVBI78Hu_a6EC&1v)M+}v=RevJUqE-N*bQPVRA`6R*-(w7j-%UUo;_hUw+JwgInKRfgxIHJ6f4Uhlvxty({M3 z?Wqc%tM*Eh2Z&6Eds($omyC|;Byd>cW#tZl`+0-0C{u(>@0OGKE)WmI<%}t!4gA4Rqvn<{1VlpLmB7O#! zRJ+rmUDSP2u<$7~*}l{E;cEcFqDk0c=KT6@CA%OzsWCn9A0;z1=p7U+@H`iDR&xJq zpJr8G-0?u~Y0eFJX62XGTy!JVe%-$WaCe?XV=u81IBV4rU}NYONyN5I@ec?E@?dlS(Rr>nh_$TYv%gY@Mi}RYQm6Ks?k3 zkoiy#6|qz;2Klmkdi1)`Ml?!gk>9Lbs-{yzQ6gG(jGR}2T!%didzsLt?S`rqzllnh zZ&fWf+57L)2RdeL+F1XI`~Gg#fOr^rZ~$7J#KKW`-Ri}l}3nBy#zLY%khwP#Bt|~mhXb9 zM#QWEH0lJl=|8+WKZ2FCp^~}Mc$)rDrI=f7`&63V0UbG!fPKxZ}$M&Q< zDUOGHZ?}61-};skAaXy3DIyS?kFR2o*K6PiK3Z1d-sO@vz9|d-F5;|}%~&Hr z@f`IY>304H}7=8gb-Co5tgIiV=Evy!q zAMC-u+pf`C;+ruIC}^QaBlMEKoFbN&T6+JxqWI}3ff1515tInYkpE3=Hx z6GUoA6m0ZzZT2Pn*feO`g!wGL)+55`rZfKjU{*pfbJu3gSauE;22-Fb5nk@^hQGGI zGwr)4Le>)s!e}m?zs2--XG%NElOtM~p zLo=+{84qh9`VYMXfh~QPekqbL9ozW4s)SKaJq6&8WD| zwv&F0j@ijB)bH&0I`G71?T8}acz-=`ci8gMN+kXy!=ijb z@LG_@3pyO$&MD+$UD0-Ogot^D6iOCVMhVn>(U+*X9TJBw0iwn=)_hOv_upq7{(I|= zoz-;qG#_~P#PQIkHMc96x&7T_rM6hR1v@LSUwm%t*#0~lg(Ki1wbDQ;-k*I$JRjY- z{Drtdlw%J2#yw=0nG&&Pags1zKEO5h*%lOZttDyyJoRwG54jdxUddMN}-+uXXLt4@UEAeT->ld zz*xt;@Fb&g%ZSF@V^XsC#{TYX+t=2u@u(#pvExfI9(ovW+6kSn;tM2g!lx7r0L_1D zOfTv5*bQ;)owvBn(n>XX`W0`|R4%V0+xD^6%WJyvY#bZz2K8GmT~n>S9;@p})HZn< zk#g(3cM}6YnBGK{NjYzBah>?zjT_Lc@CX055%YaA35Oa5T%%7I%$3hBg{)7`4DabrRBnDC0Q#NLzx@qrhCLj3KmC*Og-&po=7*TZ8Rr?5MB z>yeSLAy4r$|Lm>3k4@6bZSInf81eigyYJ(Oqu+jb@wIz%eJA*3hkp%LgVzRqT%;0e zWWQT4TWGz>c{np^dPLYuVxUr&33zMgMS6c1kAh>lj{`49Vz2)U=yFkfyQvb{J~Dak zf^(&<+H~$WY6nZG?E=+adN(W9@78WyzEw0Gg}$7{pk0aQ*%^_FHMOo zcns+OLB-;)n&rGZRu-eS_#~=qBJBH$%-%``zXBC&nktikqeR`iLSf7UqTe?bJt?q@ zy)?z))4rmagrK$(qG%pJYEE-n2~idEw237o5F!B2Ajhs1mszC>!95Gy^Id;!hlTE= z!c=Z8Egz9`V?go?!y&`M{nbc|Smk@kf7WxW&9(2d;F#m+dmBv1JWdO~dP7K^i*Pfq8zXB|ILQ2!np;Kr&BA`xU~EP53qQsk=Z0^CSo zHzVHd_UbF0M$kft_LR^Wxi8xc7@wk&5=5ATf0N);en&(Yco?W(b?qw6t=~l- zJ5jE+mcjU$CEZBoUg+2iiIv-Ox|#$aG7|)CZ3=B&3!#_fH4T^_VD(dC3{+n~P;`-Rw$iT)m%6pcto+ILuhT>l0+?^@X&e z+cLzR_&si()$flA+W}=-lGTA|`+}D6>eX-$AQ-!Zc4+2qh?FK~d2fHwCr8og8b$OAf6Tat$8;kk@kWWlF)_e+kj{As_~5-FsT;Xt1jm! zny<$_2XQ#@F;&JUI>y14IM()HYB1<^C9^5rzostlnROz6Q?FSxscVCMWl9O2xmmKB zIS(o4eJVU?t}};N?ymuBmRqTdd&GNMSt0rC`#gPg8y4S*5jF3I?6~3#g7;>M&*#AZ zyzH+mS;TsdrO)2A>L7wbzQ+{?c#ESvH7~ycXNo+`XU9KT8))=uS*@(Eh#@BAu!tIK zn)d6tT^ir@5-hv;z;0jMGxFmMqrk^@pre<|VTOhk{0SKf_}O9Wz&%hJJ!E;qUHX5s z02B(Rj^oWjDfjV5jjH=Tr+)eoRABqZqm%U6`RVBAHQX`6QJarH%(0<1pGHv0EUJ?S z9IgMOnrY(pO8)FCwJgV;!!oA+-Zcynh1(YJgtsj>cSDAIzmk928Z41V)xbsI>Zpqd z{5;U3a-afRTzwmUU41+tvRCRQ)3jH^SUaX#VO>$Adf`B=zdidb*wn3L+-5Hfjk#kbw$`go zZOA=HQr>P3Wa+SFjYpO~GwnxY>R15nDMZD~>Mm}#smiExN(`6ya z`$@@bLe?B)cSm>YAsj#F%hN#b?3vZ+x7pSa{7{DCCTH#LS+e<1^_SA;tV8N~B-U=C<-AS!y-Ca0Zqsej0QsBF zrrq!gJgJ-2h@1FKA0Jofp25rc^m4!jLTesyB<*B!YQH<#AP;RrD8aQ&Iv*(0>Lc>5 zTYO16{O%M!DW`hBj>mhDKXtyG7iP6X-yiCwfIgQ=Ej$y>o7^|>?_Z7PXn^md@z#Bh zI{}S%``Q)#eFwpj_L6o75{N}t;|tUwzM}o^M3AF@#woz#^1G8ngTtscHiq}cz0>m$ zi*Qc;jRR@9VTZ*exyL1z0gd;SI38uzmuV71=h@bY!!oK5tDe)62DnSm#jjhtEROBF z1t#q-*IOg&?$-mIoetAvQ!`4pYmdTBM;RkJ?{ild`CF@=KRMp6Uvf8gG(D1PS5(P1 z0ivfAM#(evCVUu(^|d@JyvH4G9op_%DCQ8axRcC4ned0twL$~F&i}nD%J!eTK+kQ3 z2F^YmIqWNSE*ajIK_$FQvozxxEnN6o?w>QE-e*U6#sTC1M6b!n*Dq&;&)T;~GCku* zo+BFe;|0w)^zDe9oQB^2zGvWGa~sJ$5rJpi8r6E(+?LdFu}MUc~B7i!0k65)!Qh>5n%WP^t%lk#vak(Qqv)05{=e2p7VYA7%eVJL;V@mAF#Jo`n^1 z-15#zI@2FUfFpIn0EAEOic3|;zq%N^d`ZTwiI_Anp!XK;Z0L*Y+!T{$;crU%cGMk$O%I z^q>BYUz|}gMdhfL(N2DF7iNluEao&O9|&D7^YL80Uw=O9$ktGN?RetB2B2eWG=}Pa zI}Cg{7vx|T3Vg1Tx~xDUEJ41=*}$2!s=VJdx%YHBTzjhMgo7tKc~aIJL9f5A$;ZKh zPF>bL>KmkXYSabfw>>t8k*T`P`lmtHp{6=}9wz!i^$4n8=`@uTgy=NwJBT93bWi%p zYxjIo$-%W=NNTPb3ZD$8c|pw|T}L9=m4QOK{hO9f1!s=bpf?;*V?QL9_b(8M^dyf(``y zl1PPHVUiX+O=Kdppp1oxXn^|g6sw3^%vW{w3Chf*$uK=m4|vm`T@A>4s;^ske~+ZX zmS8!amB%OFI@@5U69E@+lSe~Nr9Ru46IV=@ofD0j$U5}-Sy*IR zI8Z?a7rGd^J^zIugOvB0Yyv9~x_s$8aSxM2?gD@@1WsO2x(bVmjkBlx? zMX*h|OmD}*sjnzssDzx>NR*)|h5HQsN=3hSVcsyu{Z~Z`TKSL>StRJA8va- zkNoPrsd}0>d8IETLNVvNsU9EqE;Ag-Q+2bJDT~)I=HNlmTH>iG=m%}XLCXPyKh3Eu zCg;hi)q}r1nI9Z!wu1i#K!O1eMwa)5CwB zdXNTplv$ZDETiqPj_~eq;%;F9uQNd0!W}dA=^gQue$wTS4bieS^}yTxdY1>cosAC3 zSQ@S&eIf1>G0_}Lq-gR9<=kkt@ypL@|J;VnrFTu=WR(syEL>Hsn+|(&nFY-d% zXDm`AX#}b!DxpB4BtzLZBr_inv15kIF@LlW>tT%bsQbbTf3g1FeL7w^O6XSymP51b ze|MrfVU1}CA}JMJUOVRmy(5uDpf{B*1})&wpYdj&N9UcAAqLpFPCT)QqtE`#3Gu+8 z6|U(-F}QY?|0%lmElPwCpuq)Nu<8Cnwx@1Kec?=;DK7iZTF%9uorP!35_RCy`7jiv zVd>sq8H2q>(RBM51}IA2|uR^&XhKF=aV=Cj-iR)H|k9p5dM!;b$ z9IfHk>)2JkyWj4=yQN3PjPhl_ZI|?=wQOw$>tyk6GNqRpCGFXp?A3BmjpP%Ox&PLO zznES;)Zft!g`}ySE>OZU!~)1wVTCo3APRzR1XGdZT6*xZU3+|uf@nRr*Aio-l@pnU zL%d3hSMmHuj?Y&Fh`FCfJdl^Ax!>f7?4+{lrw-A&g4 zQV|mqSCza*JzEB@Tvz3z-+;*k^6v!M_c7jVEoB4VRwQcx&7gB zB`51)j&=4_X7kD0#M@ef95OuNy1SPhVJn3#Wo?)hA^5#Mf5vvro{Ham0_{={mVfAP z`Xl?xYF&VSzq}JbRys5>u;npw}`i!NHW8s9@F@V?3F9D_fNRIJWZ)N)J^H58l#T$ zGg%eey`9Rk8*|wiBc66-%KKr(%VZ-7CK~wgd%N}f=_jm}PMmKSk#0hc{^8IA8AG1s zB^#l5iW;yHwX0QkN>q(KO4mrpp(?0B4kt%{^y3V(M-lz~mxZvP zHe1Nt1VU_>!FWY9alD7$&FV8kY&_QXP9^|{``cvW?Hs@a=ufl8Qk`}{*ckbobTw+f z3X^<`Az9dX$3OCvWkX;kTdbfyG0AK=(Zo#u8$nVD5gd7_AgwqT5OwI!BcEQ?8|}NB zis-y+Hm_TAzq-o4=`hJ`-@qN5~2z_{B#p@4dr}DgR8Z%1aeP7EQ0_!0zc+dogH&J{{Ya{WU$M(v9x+q=kfB6 zwTDg{K|tG6jZ*;32@2oj&~T_4Tm`6{E#@K5-$-*}ei`B*`Cb2V#ij2F%iQzCk@A1R z%aL3d{QhgXLNQH+q)6xUBc0aOXe)eOwM~cbeX0bDd^m++QZhk}Kis)=MhYYV~TuZ(p!(tBu*Z zZzwN7YE%nZ6+Oc#EKuB$9#=xAtBOxTt|F^q{fVFR>f{C^#mUnFr&=6bhn%9{rp!Uk zXxN0E8&9q?*tmlQ`@%`6KZN}jH(@J!2IHiJ8C9fEICS_^4>WA#URh3{5{wRQs}TM5Di#44MT5gl3uvlVQpx= zsmd@*XATBmU^2F`KNJXj5L8(?MNy%(qbrH*z&zLZ)5XenlTU*3s|ury$0MW9zURs! z9HZ6tfl<(9h}FgS&(BY=%0=DsFBg@2F_tk~MuP0s??!za(sH_c`>(MLjl+e4Uw%KU zgdTo8Xu9}>KOb-N&lx|w(deA{`L;9XZmHApd0evJ-3Aah)L~hi4g0m8+x(TySjhp> z{=)aTqCqFs?y0S^pU;4f)9sqC4j{ZRUi@>4)I6t~zNMsK32u)80qnE5d)RX$THTtN zG@W`4YIC1oPMJ#&;9pPqs#I0|(k>y;eOVq!LX zQ>7WIjzqKlW&xNOL;JWf4hsm3cD@_4^}-!aFKsHA5zlQfJ+S5LBj#Mp(DHv2`#GeX zhtf`*rN|hIZNuk#vYLyOs5f!aXi;INgFk#!Z8LN!7d6qwWe{)Bm9w?@WY9fh;h3bB zTR}DRZQv_?V$uYXcN%dW;JIcHiFdIF(-Kp)HUEus(?e3Xim&Wt+CEM$_h_y{d83Y~ z7os*aX(dC5u%{p#b3Magb`l@g^eu{%?$|(BxVKVDx+`9UJS6aZhHE{wYyMqI{m*I^ zndHyGxB{}nCi$n<-j;9lP8Vuq_O2?2Tl)oTTy1TKM+*CM$L3|EjB5JX57PNbU>d~D zR&=n+*lOoAURSs#mC{uWxz+IALW%ZO*2VmR(1EDdKW4UxqzR6>-?W&n51M2g(4)g* zZauf6=(C~7$j+yi*i9I$x!rf;5 z@!`Ylrlk0gMUPMPhD^5JJ8SJ-V;@Qv#Bo)vR@vz3FA18VzgjM8z?;`^yA*p|Mc}#v zcWD_tMBP@^%KaqHi$$dfL_2~<1Jac@qAv1Nwkfx(QcoMiIab)FC4ar;hovj3<3PX> zY82*N#GZ0nW0wpc7?RQV9t~k5c4k|#pe;?Qp~vKv<*9?p^2Ynr4A`wTY0^20qSRGs zjWTf_p(v}EMQvpLe&6Hwwyyj$YVWGvfBH<^OxA{|J@aIUFTsf|n=;@=`IxVZxAy@% z4+$|Zd#$0M%tpCBRGp2qjI(#id(v=|6}chvx+FwP15s|sIv;!gX5Cq#q8DKFz-U@EDG7}G_b?lEyHF)=DljW!4{ja}QvH&q#`>=MKw z&@y(hptJ4Ah_RB;fQp1B^1R~r1x#G+E8@>YF`I+YkX_{n4FYrnP1a+v;j1IugygsZ)ki^|L^U|y9p zBF*V64W$~kZ-d9t_#apPyANix!qh7-%06$%HN5BV6tX+C@oT+(XCn@6J)Hzg@da)j zl?+fw|LsKXn~g)j1~sX{*_`*fXX*yMHpKcBsv5ex2(6)uf|{XKV3a`4>jr$Dw1q_L zv@J4)lN4s*XaG$wd&p+gSgioknK>SNAmq}97J0XejC zPFxFyg!e)cWHcbn0UYb(v{G|ROLN?RWZt@Swqz!M{ zMsGF9Q?E4Jpy-Mp_KEs%>1x-#)e9JG)4zgMS#3f(PA6f53`$k;Jl}bAjA%rmbJ{KO zQ`3rX4Or8dH%lJy0YHn7K#ie= zvW;ea?Jq)f8D&LyBiJ53qgs6KRsKW-{`OC!uC>z|F=%|mI;MnOd)~_sviWI3d<36( z^XeNS>CykH|KzYwR~3CbeVo{kCI>bsM!C!_l9&k)+Zt8eFPe$9{1*(eBC&hB5zAyA zW*>8q=0Bpx;_lwm`6wtTc)cO@R8hi00n`a1cD0*ncG7R$n}7a#pDZ;knonBQF2w8O zHUG&3?<*z`zbCn}M89TFu(Hk{MALiehH2NRZtqO2hCXJ7;1!!`{?)v^t&W=gTR#3x z_q~V>&JU*V%ocN7X{PgV?FcshbBYejiE)=o##CM`p2e1^ZF31D*=aI>L#wm?5|~T| z=si4i;>hOLW|>oC8MJ5SCLX8s8RQ$#H~_H}k+!IAE57Ibs^!;V2}IC240f89v5@=LmLU*vP{g=PY+FMEcTIvoGIFjoMsSKTHZ_0JYf9;&h6qNzNrf3ve z-Y@e~t;F&mA#8S^WZ|vZQLW9(xGVm6I>q>)%iKa}eh7|fieH-9HV}D6pI_}X%BH^r zs7lac3Sh{=9G#vuR3`dR?A+Be$U^txn4oEA>`rV|19XN&eddg=)7pY&C_8q1fyOV( z+`jxe7Tc00_e(F&PL6k&?j@haO3Un?GooKlH2dvsC7!=?6hFJ)!dh>8?_TfpoRC4e z1|}R6#&ok0Clu@Umz_*m*3qHEYwWCF%$c^AH~_EJHqH1-Kd$DsHMW7s=q8c|%e%bN z7#?1o6n*z^rbRSsS)|kN0)YSC6^St8l_8Z$*mnk+ii~r3fJzrc{n;Yb$*AQBC`wi^ zzG5>(6#JETFq7R+!*af{`+$& zQZa&Zc+sB2$s&!GV2KeguR%s|%=+J@PNuFZ!i>3`06`<$E>wo$W1KscTE0!d{yc=j zIiO^owDDndb?i0|`G0cEJ7Mp&@LRm?V-vh)9@ zA8bQqhMcN?lSR`sa3kTsTXY-j*z6s|`nLIhBaol+Xol)S7iI)yta5tPkF743ujR?H zY0CH(ilm!_KX|$5G}9B$mL%5Ft6VCY#F}4U@JlUStirpN61w%ka9`!u{NyP1t6>!Z zo3%L6%;1)0EBYz9#B2r!;Z^zchrSLK6zfkpi*1boVa%#DR4N!M3vdy%3=wdlpc%iV zBO`>*r{{`Sr#sKs7Z+Y`OiH``xF`em1)w)g-ccTxh+kSR~wm`x6!LJ{F+& zguL-~v6MV6cKg*THwBh(Mz^C!*0rk_DHSreN4cSTBH1eryw-3D(tI}T)NDg-7m=P% zdoL0IX8f(s?imr$l|}1FwS?50DrU1{-wn@)D4Hbp-uHK&y@T~nnzhpQ)wpOGSm0-L zbLrTQI!!zU2iC3WQwYUjajFv>iw$i3#Hb>HS;(;tqoo^=?f6GW)WtpTmhEME%&jEb`I?x&^ysLviIQ4DfN4}S)r{Kx=4P^K=b zr}Q8G`TLOJYM=6@^S)%*$qzaNCxW>%FBHmoln<^UVRp(6scPK|v*Q|c&iiXJtw9VE zL=Gx{{HgeTr|H{fvBF3stO!fm8iMFiV4s%xRi-!Hc%w$AV3@?P6>yd*-XJm7)U!Y&*Rc69@WW>G~1Y5{uE%VGB8%#KZGUSSq8{Cw|| z0T|y=2e#IVWKu6cX*5HE`$A-%{?DA>bPX{j8Ca`>o!i5RN?6_)z6+UKGzX}w|&uT*J5H% z&4*pkH#qS-wPUdV^JaJf}6vqu3_d6rVbi)%DAI}rF=kx;CQq;@iBY} zsWFUnMfH>6VJoDQDRs)(#A z{9?HN;VrMx;A>mMUtu|0B?eP{?kXyAnbZY)a(*IYhS(>TGfDqG8w(ak;e%zbuo3k| zH$PvB$wjshAxYl`*>H&nLriQ=k2P%yJTzO{rN)v zJ+8FoyB!2H*2nH5EK%IoIJ)!Lutd8C?3W1-6oB1oQs`_DD=>F2_uX*~!g#Gm7fV~V&QQGFy$xrZ?n&TU%=lh;n zXKP0S`2IYtIs^{eaCdIR@>P)C2WeaHfU*Ijw>9t0HKspzp#9gx<5e4Ha)A1%>3jd{ z;={%GIT<7k#Qz>r{*$>m=T{IzN$U3?pEsT#{i!#laPDp4FOmDpO%uv5TcSlU7=1giYhJ1FNwv8>N-70h z&?t0>FKajgFpgvD2-%MnOm<5AyQ=O}^zHoNuDL8J$0bvsja5>6nEzh)Tv9{(T>#A> zwuVSbWXWF@TmPcraU%>WFI?e_Ebj+`fCmk`_*EA-j|X!>1b=@EF_!W0xOE>tfgYV6 z9~@@#+HtM1IzZ-M7PFrZ+=I98Z1f_dD^|5xH&A+pe7KT}HT>m0N+0j8<;>&H zkrCqecmd^xZ7~dWtEI`r2+vUPa*-v4^K$}0cWe|(unOpnbB>Jj-j=xof}WM~Ij+;3 zxf(!$2`k&GL9VR)sL`}UA#FM9J=-0U=G4VUO69c$zxz^r_lk%z!-ycT_-v1rb1sqya;;AYIVJ!9R4rg(p) zSDbjghS&5n<4IK*(Io^Ktm2+RC=kIvbmD4r zQePCHT_U3<@jP8?U7BlS+(Fim10L-oi<`jUf z?NYv_+kfwzijen^9=D4zI+lg0b-txgI8P7KLDsf({)G*+%}6o5#o)!t;A>*T*cJ&# zwynmj9!XHN8l_i2R#hsN!4EL9MB4sCDa=HC=})RJl0wJMgs@epYxO%b96^Oe=18^d z5?-z3p|%t~8pjrcTf4yYRjdBDT6ss4`$XMiM0C)KTxLP!oz+^(gQMJy(xF5J zm6h414Ca%5*5I6vgvQ!oK5~^QlQPYv%n880UTbsjQrRSuaP{8`2&I^y*=sKyf3(f@ z`Zzz8Fv107e-+jWg=eilEYmW6pJk2KX=IPcDMnU^z6~vplcg;~9G?1goP1Ai0!cCi z&R4XoCnU_s*PKuL;m`&6PUwg4VO+S3Icwr&%<*xQVJ4}sh)X9g{&}J0T4`3Xqm(P2 ztGNdq5R|@JsVguyDG6C6T+urW>^817{%M4Z9r38WO~a#FlW?{|&)uj!7?VC&{rzL!Yu zZTMJ=JmAgtpW)CFui(``P|=&0h5|%1VF)tV?|h~@xR3LCaKG0{lW4pB)_>Uat6bo| zO}cc#b&P;XSaR3Tv@SmBC>`Tm#1pm__e=I`(c}S1-c(0N}W|GD+wr zkyCXNTL&+BRKM@Lkp=Gl(A_A6qF0VuyID7!j3BXV&XF2wUUSFx{nE=TnLX=clqJ#- z?I6J$zSl>c@5EudFZXc5?QI^1jGjzYBc4{L*S`!#zSY^L%jQ-}m!~!ZhUIER7hTfR zcZErd6)iL~cNesTER<9^MNFPBaTGAvNGz zy&q!h>D?=kv1~)TkCNB^-*Ue*=cwq?cyh_%XD&=s6QiCK<>ZJ#+0M6uR@JKn>A~cZ z%_>*^UNjAJ5gFxD@T6{8x2`3G(cFEa_<6mWtKvF0!waPY`P+H(7-FOYqFP+R!e?Wu zrcbY4z~=j|P#T21YxV{)s8ligtPH?|P{=;A3yeV+KLW~C)!ONk$&3pz$5|<^aaMTU z#!d4>y@`TL_z=x^Y%Y0+JK~`G6*uA!7(s2~E!QZIXUk=Y1asZD-MDuru1Dnc$HV`+ z9FncS+B>%MMjWJOblnqFj&BG?)THf_&wVh@nHrEL2ZV5-=GoHBwQ~0wDC1MI5}o&X zxqi^XNF7HywIg=>ju69RYgmpl^;9cIRE{D6fR6p8zloB2ojp@@1;e#s=7+;|1$#A4 zG85kvNvz!mXVZ^sBspQA?^C6)43&{_S1;7_jZT0D_u2ZfFwWIXrI@@<)3Wv>>H7Ic zFJ+_9M|va62+E48qs%t3hO?-B%t+2FzGtHHyk# z>1pAdoot=Jt>;QvD2Y~oYp`OVP~K+@6^lw%@sxQ8H0SYCk11k0KY|^s@^?n}M||N{ zqm1o-g>t3aBi+bCUnlSb(T~hZ!{)nD{=UvBfX{iC z)XNPw6}jX|9P+}dRd#Jl;GvBdN<9NSLg;BVFdsJ1O;Tm_B>08|2(8$)hQIzflwP?P zHUVi!YJ0Xv_h^hL{y3hHwuPoG+7@-CHlU6$Tq|h*DZIaX7D$~J2}qv(IjwAJiFfKB zokv!c*B0N*c*vy1`)afhlZ>`2nW8X7HK02?DC*MpCi^w(!M5s|U=?MR=0XHa5tOuH zu6y6+ik(>9HhxI5%rtP!aPQi*=}w@5EH?^uStOZTaR(nH zLH82?jPca_D9eL5>!cq_#gny!hLXt*S_?b3f$+={1(ar!`gY8yrbe%o&WHDcG0E80 z;3R0$lw}gsZwiLHEuN$oF?2keXYm3EU)i?@H)%mYo$ zVKI!4m((YF_lDS?{?Sp$lm%y{tU_*hkAFLexh0s0duIgY)`e7|oq$ydbBiNDx|h$MY}Q$ma2lZ>&YoxBoOS|5NYaP4WHt z+^nozS}L)UoxG8}t+JyZ88o!Z*8L@^=a#bu}!gH4( z3}?)NfMVoI!6Z53?_Xwh->3I+)(2jY=_EVA6UcW)>fQBw&SZV12!=3aLTloR2|35sCtG|dWTWAL_ zjrB8I#_&_#?>xZg5l4Au%GLoH#hmUq1O$0DH*Q(wuQYE|K{tDu&AzL;ED$@$Z}C&? zo>+ri>{2;NQ)0rsWmBKSawvS&@G>-;Sv@W{A5T&w~SI=A{k;i|5wS?k0* zLtT9$9(pIXTi=Zn{v}8;R|*}(J3Y9Xdm-W+Ul%P6Yb(nN0-Ogfbh4b=tm{bb+U z=I<%Z`b&ChpBUTx8Y?Qc&QxJ5i;IMFxz}sW5YVVYC3O}{b@#(CCrmv4dJqalP2k>!9e@85+u=}C~^ zH54%HQc_lwSXH+yeW}P)|0JyU#i6yM3sRT4UCkk%YTUB(>93a(!Dy$J&%R!@)i%7= z)MC4zT(h~cEE;xr%p!4X?sGjc=Z>fim0QTuKfA4|%kd1^@@n@nHd%yZ9?P#^_@Rqw z%9`=>dX+$0B}Uk2hRZ`Wvyl-l#6zWa>GGnFlaP4f2tcM0@|)yC$ck*PDdpk-w5Z7U z!qxW{S+lm!RaSJT?yDvb>E`CnxlGn+d#5)=$G<5r<_fIz_{4aRfIO{R*>S-q4xD%ZEhx{c@c=sYQuW|E#QEW__PeNE8 zLL~nN)-v#2K2*C?5%S;KU?F!AuKMTXnkcTx>O*)L0b3t$!jHt%zV9UptkmmM2;xuq z41`J|6XZZLVZFiKtTs^wt;$DT2phj7JI|X{uy#FF{^NF!xw5+&&l7m)sRsk6>>ki| z>)sEpf4ITrF+@N(CrOZQ8FE*R^*`Lg6YnP&2+Jqn9{8V|;P~U(-51nrG{pp22xC6W z)CfH?z7HGwi7}n?z4^d+EsEDRZ$!@Opnt6ETc3X|W7cObcrXFtdRN0)Wx0S-_VU=x z{NW$+-X@nXC0+7cNTmWvyfi*Mm}U$A$e*>IWWB>To$Ij>v~vL|DxwjuIfojHOSu|H z88NG+O|RuU-~aZarsm+C53EzUI_O81I3#I?@0Zc3oI1_?n=uVt>Pck_UvVyU7h|_cXsDRx( zLx98Cx7=Fim@<-he12MGVnq?vwAhx7&Ef}%S+*7S?zs(n`Kiza_1E&g9K)u7kWk$a zemncWZ(=6DtYm#y`a9uST&5~0vnqSbC|!$)h2Ri)huKKq{h2GK4ax9?BUr316?J<^bh!JoL$lu|?Lhi?z@1(jsi}D1LcMt+^h# zhA~lA((w|d!xEkCoD{as^{2YjMCzOBiKqJ03x+Z4O(T`G>TIBLOi5KtY@vLlr^qzL zeLCr5Nhd}dxccV@9{^d2o~DXP%Or1WQ#J_h5}`Hmy8vV4>3gfiuD>#00}JF6Jk$VX zIWcK7UA()GcdEWWIJbwL@^CcNNx8w#A}yOTy*q8BU>9?KiSiQ0>Hh5!!#|03AO3Qh z_G3O;jKj-~46nOzr^EZJo!QL5knPj)cFuv4jOuN;>n3!!tD8)()-$u%TD|YLx}~v;Q3aWtJp{Ajr{K=XLEDVd++BX2oewAX*cs%`NVDGl(64CY+~s`) zVZ%JrGKZFO8iASB^EEPC%6{K}%l2(sMdt^B8Pq5a^O`Pqf;YXnP^A?6${HTTZG$_R=& zR~28MRUK1i=M51RD)G)l;7GndX1ICqJd*0{UjR2Qi<-t-k|jp|F8s&#-L&f-t6VES z%NQHpZpnJ9aN5D`(-@K64ux2b-Y-(h`Jze`e%h@%(73$siR(%y_EJ3+ckoe(A*L#6 zVS`+se)Oe8xc;%r@CsNkGa}=oOi$sZSB;)B?3nMxk76q3r2cwwkL6r|AHHXt1(wIC zf3WN5=3jW)Maak2T~ACb1QFYKHZrpT`}swU@jncLJDv)U9)^dQicLs%!;6M zznuQ#cs5?Zo&X^&6!~NqP7G~$la%-_wI?Psc(5epO}N$C+>eEH?g*>8=o2~f_AGk> zYXhDUCVsmZcQvIr{5XPVB@Asa9e&%$gFW}`h|>BDy~9nv{6$?=SK1wuw+tbX|%WVd_ku zzNiPQ^%7BsM)USVaoUJ6%;$Fn@o z4a`g{@MtATBg!H1#Om9{RQ2MIiqArcx5dWmclCM9@o2z<(MqepvxeyHVFa81WU=O@ zR#a#%21p|iwxT>8qM9+g_#v?45AOgqKJ4!OS>;GHWVKf_fjOBcW%r^%76SbbYe+GO zeyOW&m9Cds#%p=N{wXh1C`Nt8B-b>2=af(|hcF>jb^Adow1S~{Bt!L!l@W7(dAKCm zZUq}DWewQ_f6f1t1H<4G!u89}d+2RsE^#|Aey=@2`JyJDvFZ9Vmen_&G3FmmHz9A(2*^o^!TzxQO-Uy zg{~`F{+Q|DL(r?Oy`kEMa6|tXVFN*v{mqzzJ&Mr0Z~kA^kaqwf*La^+ce&%w;Jv-0 z-v;e6vUKBz%l;lmdslCyp4PmUBlSf&Oh&zFfCINdhA=T4Z|PfgT~9zV|4Vi^@YQR@ zyNiRXQ}bfLG}rDw+L{Wr2|scL7TJ|UCDV>*LaY1Yw+&B8-^K52PMba))GmwC8b6e7 zs6ij6=Sl}(s;zAd?QJaWLrG=Z`J&3D`!w5w@59@pwMZ+X5PBLxwEj4t&}Y=KD{~F#z_7!CcyW2N{D> z`4^O)88x)RK#IH5%R_@XCI%F_dJZ{&~{`6z8qE^#`gg8)x-E)(MCxDB4^lsrH zdlVz3HABMvTHbDS#vQf0hLIhQVN)&cQArtKjk6ppDu5*(ez5nfR_kg~`HW;Ffq%-E z%U6q2z6W)dFo>~@T5rj&o`GWiETawbSfiF^iT2N@y zpQ|Z`&s@Q4@LDtF5u3YTRZp>K;9s>X*6-#<<(71a7*)KlnQ}N)zZ@5_oCwfxApkIR zmr_Q7Mlj4Xj(IJa`_DaL*$dS(ZF?vZvju}(D}Ywe^1t@YSlp$zzO*(3ty(AT@EvPa z4}{lMNq9Vp#x$A7XX+{605Rp&ge!W>q`OWDoQt44>Ty=vdXrH+PA^0*%7=fx5BhO6 zkY%7F(c63eYJ!ehC_JaV$t`_2`5iEp{4ohN^=sC=F%tAvi)19Kby6rcBo?#?b8M=Jw$){I_yo zX&;}WmzcG~n{iDEW*OvmpX&i$%gK#(&LD{;ukUw}6%&w(_A}w{9X!8M$HV-ZK`X9U zSW3dzk*pWPXZgW3$!P29AxsVEC1voqF6enTa;IlNt-ZK(#mBC9;Mz-{+a`yhM$;<4 zqfhS!& znmjOg-ufEzd}Ua}Be?9tFXPHYsZZ~n9)n+A)-4?KblB)>28-<^_TNbPc9dKKp4$H$ z(vwhDQSZ@Ye{otvBJB9Fq6c$*n{M9GR-uXy(X;7|aw@5-aS0xIRQB@hIyX{v4ue+c zJFK$9)5TDT;p4X)-j3bw1pWT?j1P)Gqyn0Fel{9#?KH!?$0p`M;UqC~FQuHiB(!eF zm|or-HOPFmIp+o{J@eBXfWX$}v<(d-xkxvqD^&1wVpa+mN-NM15Bs#o?xBGk9PjZg z;U|2Ez7(WoNeM|sh-vdLEbB`V<}E!6p}I5Aga>PTlTx<#9OJYzo_2{pmSb>t;{0mm z|M4xuE*j8KK&>WNb0<3uzjIMk3LrLo=kXw6l1Ayt;WzzvHY0<&6nKE(lSxuw-aA(P zY|^dQrXJ#-8}c&Rvk4U6{#+E1G){M`6C&#RB*3NlO96eMPhd$k@cpSov z4lLM^mbe@@VX_kr!7qyDQtE3d@g2ypRf{D3d5V;I^xY{H+VwjsYL4~5O`DY7q29U! zADpTzV7NJDm}s(gQ+0iM3&YZtQ>-m zxIJkvT{EAno4$cN-RU;~w{Z3lUFdnJKN0-Xfp?PgtbcI1P#^X+*8kSjlzNCPKE8kM z+fciLl4E+5y5QX!vTROc&Gs}NH_5HHAp#yjL5CWpC9H2zTHW}bqdD?1b z)PFkG+Z}M#(I@gh7=RW*EOI}!RD-rc!-ipuAxyw25J~dg#Acx+`-_Aj^6KGqWxI+? zS^=@WBc&g2xs9YRvvP4o>#{-bT{@oV=uU(VYgWdOj7`MVw#~$E7=k73m0xA8{_2bq z&&t(HG9=Tdns&WYCN84iCx{~X!>cdWd1`zMz!krWw4iYQOX?8SCFa-JkdBW>*st%t zsoxpeGCF3>KKfXKtZTC5F?}A$Oh50uL1C?tvV7ePQ&rvA+WO34=X>EWA?8kC7m;eT zozUvKyjYAnH%H^8;M7pVt<#z#rp5E~(PW)I)Ni8#F9h-F&?dmX`jxc%ZSB(V$%57| zm9cl~PS)s!1#)^4DQG<05zXjl|K-9Wv0GvS~oSs2Od%^!( zMFWiQ1}N_xvh%MNs;>tt^MpR>l2kAAh6OFDjM4`fPJl&6vd#&Giy!kJV-N~3o3NJsedEo~W{$jXe!y%H{#~VX*e?cA;J}L2lOqka4 zi(x;0;*PPtG}pZE0#SbqyS(>+x9^_trs2*y1{GR*M?ZYIwMgVl_&Eami!nQllADKV zgQt$%D#v)8Jw{~5`dMf$Ki(|}PYe9frygnjgze8wK}htkM{Iy7SoNbVo)J<*ylp>W z#8$SuE{<%exiv^NE{hM|H44apN}NH)~J(2 zv(S`iR1Dr3l7h`^Woyqj-8sf@54gp8wch6NRLM5P$v2K*Rr?qPJK2F;$#t zcG|Yhw)L%xva)j56&ljC^T}PY>8^J$)TG_V4Yu$g#c5q|R5q?R>HnImq^TqyI7hHiUj)EyCL$^rI<)vU!uLS5D@Ij2Ku4!4;9 z1{NsLZ5!_<;&lO;;?2d%#g#GH(BG&?_jj z?p*!2d{E6!Nkppvy=U?mz~?Pxga1r``!gP~`E|d9#XgyIWaru%BckO%U}GOjo|Sur zslkODpAYI4*5gTkN{yK9!vo213Rf7WSMwIP(5^r>c9_{?u63{QQ1d@Ae2mRYrANr@ zUE!V0r1};a^%Gk?pTU?W>+oZfjbn%5n=jU72ATmyFoF?dGMr)K7$-CQy%(d{=ixbR zo)!I{jl4SaKv%snySU~O;qN8Vu0Lu;y!po#V>Vbg7dDx*;^vNn$FXy{qwHD0 z^!wm`5`_wH2B>Vk?1vR$d<9l|7PI`KD7urE)PA+Mx;Rll2~)QcX{!FcE3}If3y-;o zbAEo#@0{E>yPig+ZauwxrSmJFna}N`3f%dzXN%=Ri2A01D?oNTnrp0cy+d!!0$tt+ zSPLCo1zjq9bjnXHHDJksV=ch_hk2b>IYJ7!3lNF=U4zp8LI8&3gHnmd>~b@IgFXqK z><|BR|0L&WwGVbIwVUI@8?W^#(yr9>ur5c8)m|6(oKdv%ti$ZNPsdea=nd`3qN4GV zEqL^1=uj{3pBS67fPMzrf2XJ*DM21BG9v8#itjYmsfj;&+ucohE?K{C=!K^yYJHyf zjgF$SjKO7Fiq-iYoyqcW!LwT2j) zUP1OT8S92uj4Imu?3Bkc?7|~fRXM#J71IpZ0SnBA8U82|SQ+m+H+HAx2s_*waa~^e z?B9H`)Af!$0vg$Szyw~~KAu`!&;#x^aH_Vqjm{_zP`emNkol|;T#-4WGajs`eZ%KU zR?~N|N(4@+rJIodx#4~*f@cu8NYvg>ceXx1M+?h$SBRe!sgV{$dkQ+>y&@a#GpYU* z1Exc*Y-=e-fFqvk&M{RCuVTi@*PVikz*N;!wX>hSAI(MW^UOMUJ6r;Hc`M%91oc!a ze|NtP2!7Pu#?yCB+@LalKH)tN4jO*z5Ky9^lbnpYy#Ro2acBgdpwwSX7X3s#tB8R_ zU1MDw#+eX@+4BZnVazN_@~7onL%&-Dd4SGU4-a!C`sr=VCU?*9>p+?5{RI!iRbha>7%halFWx|cb?kHM zU~@t|ZyXm2+w?yz0PG!4+74UDr7)S+n835EdEbhYt-uz6XG>?bJ4L$XdSgtK(M^V; zBEnFjqU(|W73sn^wad{z0!KSDpushRDz0U5lLQs_-85gyxHgc|TU=Lw84T-Zwzx|6e!{={oh%_he_Ay4|Gbg=<;hcNd*#qz z-tqaY`b=SHnhyBA>QM-oF4Wfip?Do=sP#t;mz=llYpvv<5x&Tv5fgo8zLLZb-5|vn z9(K2V2Z0g?mmoIEmjVYoZj95(a%r}WI{J8-cP!n6G_E7HQ+~SBO<76l1dCJ%vYMv; zs3Uuuj&mM7XAG!ns_PVT$4$W!0V@voc+H$sQj98MEC%CE%FQqpvE;!6Fam3Mv11%J zt}a)xe*I_gBiedJqqN63B&RUy;fZj_>FJ^&c1TFuyZ%h5s|ETMwoDKot=a z7|#=*it3`=J~%;1;W*EOWhz=^*P9gg4E@%I!g{$W2ErOMJtPGiCEG|80$b~z z%cxRih>yzhH=YgdT+Om@u~~)NY0m9{JF~(> z)T@j|Z~_&YV{0ERQwvAiPPVn+kF;LlryDhW$xzeAf(nYPxO~LYg56?`BP}#poBFu| zrL+1s=R21Yuk^utjjt^tOG>mY4}IAo&yd>bhDEuRyxx2Pze+x<{q0hJ*@dU&Ti4l% z6ZCZv2twQI>KkXP#q9-zZCaa?4FLwK$`@b8y}Hy_97KWElEn^wdeT|%+x8jqbzL#am?mkx&YMP~B1I=l_c!}fpTOZSN@G~^To+KL3oTQTQ9^m4** zn^(BPbQA)1$w5m}w^WTP(s&YRkmc9W(|^Lr+})}|4>N3dXGPW%X^XWD^M26@U>^Re zu$L&W9N2` z#OOgRZV`>Nv`9MYqD1d@qE^vqx%;8^Z6%}`cZsZ-ED0hE-|E!!c>nmQUH@h{Euz?k zujkq5#`orXXOznz;U4U0lj1X3m+2X6mESMl*S`(_<*NOQ{m~<7f_onc9?aoK)8M9) z{geHji{->Hh=m&$GCMidNDl&QM|Ea>%)ah$pRM8L?m8%yGgw@=47j97RzKhZ=(O7#G}k{o z4ssHIHXAW=K)*UEWne~qs@i}&&FuJ>R}yv}1q{?vyOnDJ;SjfdkW(aRM`)7hnkxG( z)%rB90XIEc0v?p+Lm}2~H#Knz5bRIL_=_bS4_GMCJw(TiSC~&BQm&Z4Ve&9y!M}KW9#v^?Y85Z`=$26aG#^ zg=hCpe(zal1YL)HXtI)j#>eg(*(~tRF#%leAJXQ-wJSvo~ATeX&hrlwpu-`stT1_dL3 zK9iRne8k0K)dEsB+LSC3c1+^00|!eCl+9z^mdzf#Nw}YRvZyZV#1hhohqS=fGe#U&KY;jh$$NZxj7I+~rc66edTzRYID6sJ;>4$yUDoCv(4Owf_4$uEZmd= zY6o_um$Gv{atgS*LMmYP-2*T8nRL$?LEo4^y)J&!A8eb)E4QT>mR0<1IS(kJoNrB| zl%Tr9@6k5XBF-$Z>vejmFCM*U?1`M_7|y(6>Vc+u@6zynnC048<_8)Ge9h>EFB~2O z(V@S5tvFL8R-){X@wrJk2Sp23lCVtu@ZjOjei0p}fv z>E3$j=6>xU>A3db-4AcQ@G7bf^rwEz%l@`}Z-&i5-aBd@y*FNl21ma;oRIBZ$B&)g z{utJ`JG$+xsxfIuZIz!PE>6ix!q>1V@@j#eX&PF@)fYOKgCB#Rqf9#6$L)&0(B2t# zmRjqOxyo1LA%1)F*xM( zYVTe?W)61y6VD*2?Vt~PWIxMQU ztBz;X(9SRaYQh`w#)8LZ9$jHq^FqIHJbJYXBahwYTrky=mn+wL@&-;~x?g*)O=&6V z5A~fY_)>lrOGEcm{apPdY{GL!dhTdg-5YpLa=+MfqM`6^0k~=rEEilZcF{ro<+rs` zA@8FHIc8is$&Q~{{^TyIDaBIFdrwh6^^+$ph^zMh{62QAR-tdqUpzxOqDM14 z17*)3^OHZ~^nEe)y?<{ z+Zzq~+H2tcXZC{sl4prHrM_>*qmE)-TEY4STb-thdYE9L!=p9TX~X0t_Oc6nmx<|W!gb_zK-pz!5nGcj^Iu~bvd`g{)`c(Mla4Z-)DdQ^1g8NoBjf@}(4zwBdB*_7_d{G#tO?#xMHu0f;7qG_ji)uc zb-c&GE+@@>|0*J%mD@GUtdP3}t)BBrSCSU1-`;&?O{7$tc(1_Ly1pd3~lsv*x)^=Qbnt1wkPBEa{w65^*DES<}*-R78RM12Gm1zqNC@!zyDx zpfux?sIztR{iEJ_*PnK$qEVK%VB*Foz%VL<1-g>zE&<*&J?ck{&m?a=LB5+ z(NVY}0)P&N4!v&$FZ0xv*gobW#;Vw{J z*q8-HXVTEbe%Iwr!fgoQ?&7;jxeK6`B?I0Evg@t4VN?a{l=_2Hub601~sKm zMMUUiG7^kQr?)Eg+LFfPVg%q)!8sEJdtv-#i;Ys_1!8l)gZ64HU)Cu;$>9`(0Ahbbe4*Zy ze>%>~$MvX!+bgGUN|}L!RLIZLWq&f=wHT-osNyGFJU=(}kep8bQ3-*L?aMsb;wTO2 z5$>N(EY^I)uSFjUcWjba19*kBS`q6D`;O%H8NiPO8 zbi5pda=ay}&lkHhpLV$BoyFYQZkuV#tyT=Q>QwgjOO7*V;nxpP0u0vDehN!*W!@`F()t0Cwr+!YQB zx>CjUfDW6(unLjfB?bwQEo#739pGvqO5q$^P*C7g^SbZyhlJgmGKH2KQ!4=6cD%t3 z$U33z{;)0`rPjdd(GgYK{M|GmD$rJ_>4r++%FD?u-$RfdsWeAugyTOj@*6PS4-l;N z&ly1lDXKqWGhZul68XhI?j=9H6qYtEHG0sByzS6*sVL7~Z$LW9Qw(vdLw#w^7?K&tT>1SNeKEYu)3v`sig);UBLdyZvb=eNNPRI4* zE;VoYK&Mrb77$-_r%AK>YL_>9VznLr%$@!?>@6wEpW@s*0;vhG5-$ z)hBvz&v0-{8Rfiv;#d@ws!+z%*u6-`Wr`e=CQZB7s;4F21X+^13)Z{c8XW|UAy+H6W#YJkGP^?sdt$?&UJ>CMP%-uA#;v%p%k!evxQmi6@>3il6y24f=O zT{|`hc_%BasD2^H^;tTs1GWC@2$&)Un96#l9DX?$M1&~pLssmEzDuBLzf#lpqC!18 zd>#W}iV}kA4I3AY-qdzEh@uA+`{R<$9U;2U}{t_v{O zJz6ynxl9G4vudzY&{{_BC*(Ksi7711YXm{ZcDK4K#y3Zgy6~!?)Gep5Cp&1heUrDq zIto#RwxXJW-T0V|jjI72fNdzpT5vjpT4G!iMYsJk8-?60W0@kxos2E7T|ZrbxschX z$h!xPb7O|_uUvK{x}v9>_Wp|WT2sIsa(y&MC2XCoTOS_IkvI)Vl{CO}hl7_wlvJZu z24}i`x@*s^m@qKD=X6(Ql>yx@-yX)rO4;v8Ym@RhxR-SVmao}4w3$Zb3RDy~2=YZ~ z9oLhwV7zSjeI3K{_TCP8ll5p@RPIGTYqT&4Qecu0_sc8zJDU|Zq4A2p=RA=us)2yX zpFwkp=ZlGF8<90Vu?B7(9FrH z``1He5i2sx$NLv3*ORSP6GY#qS0_aJj%s^#fc}*>Rz1U}{Xb;$<8ekWO#a4l*X7JC zrl3&>Si3(0+u7dk6^#Dcvx_%yUIlr88fKxS(Z*lSb`319`yp6rNm$5MKLRt8+E6h& zx3yK^0B*znpwE?&1_r@*kH@KOc6(3U&&jC>d*%$0Ud~VS7T?Z!vf8<;pbPJr&anGS z{Wwf>waDfhc&M+Ha>0Lcr{+GC%Z6F-#(a{K-|e+qJi1TT#MIqLGf+?;`r>mi$Y7cM zqEzaP&Q*JUx_kB*dN6Dq>rO2)6`lDd*CO7u)G6uEsB(4pVWZI1RxOz7(6lwj;^v>2 z!X+CFn*%%DV48;(%DQClrH7r>+&1ElA(&v?I>M^F5Hqb=OX3hx>)8=3OS+O)wb$t$ ze93mbtecD7My&;$+DKUjqEVp3ScMDsP;3p33DI>Xy9}D`5<1>%dKs4RGBGS@YdGEm zwYxmjTH4U^@1&AGYDN4-VYTO(D2J@xd8E-tKG~v9yAr*Wj1lAcV~X}URd)jUul)?L z*rAVm{0IGospY-38V|*p4(q#q`=ZO0E~<|PXBHPKgC?Gn?}{O_ymP+7x3Y^ziyikz z_G3Tk#%`&>NqGm14~a1&tjMX8EwP{&xe!K1eYs=fS<@1>ql+Z{ioLUi1@A_pw*9@n zT)}M@iWs%fnXd^(@@9R;Mz7QUhC0Hku!BDpk#NRZIk#vEWmqYF`f(i4~$O7@`28v%;4-&S(jWp z$Qj=DXKmDdrNdX5Ddd|n?ICYv7Ng?h(UzDhmy!<3VUrY&2F{(Ma6PTk(9g4C*+ola zJN`KrH0|Gv9_$eGic`7vgem`p_BX}AG9H?Z6b9*3aQbG=T)c3)Q|0g#ce~ddw%!ie zD&lH{95m@jQmo<4kPQTewE_FZ8vm)#(}p~QKu&nJ-cu(IGr zu|1e*2%w<;cmKg~t9^fV=eWxW#CFrWd9|aRFA3RkWp22==@n|DUBj=Y6h+~<$nVHi zU>z*sbKl?C8ZrV^q%BCas$V+`%!fLP6?5ly`LJx<)2^v1qBQi`Tc`U>POeIs(DlX2 z`x~`vYs8lNi1UY02K=q@Ov2yJfw^H7q|0BPXoPhU;CZ5OT zBWfgxvMZ9e=JLMR$^C8#ZWBNZn+T0bqIu+XVi z8~Vc%Z4S*D2QlHXnl+`BPVJZPO3cevAi;2d1!M#G)ZzL znT786mw;P5FHeH~-C?aJ4j(4ljfMk76YbXvoJM>XmtXiI6j!3&J}#V8-u24od@gvm zx%BYEoLIkkMQ$aN{owZo_=fTKMB~BU6xSK}9q3zC%J=e33_^c$KPJLAEEK6@# zdXK2JLNq2?;zz5SFXHK7v7daI88rWE;A=hT;XJf!YuN%b3Ank`48b?rHRf8fI0WVv zd|QFb!tD#)Zd-KTPAo5&oKmRX(`m)h<^`kt0W?7#xZ%W5R5IX};;3Pz-TTlPe7y|0 zrN$jpK>msO!-CkNyx8itTxHXrG0=fm1H5$bVNso(U}o`w1tq#nF}jbMH9B;pmfKg< z84h_oesyC`dpwO%w4-90Ww!bdLZ3Wxrs-fq#!DvFZ!gs1YioA|m+QCxT{=26zUxn! z%G?>Ns^Lb015G9KicBiqP+9GgN&&!0v%^iu{g34k~AY_FZX2d&(jt=DzL3}HVw1!+;-i|`VO(`k!MWF zV?j?1w&!Sb)cKI|J@ z@TS?{0>*w;6G148DNkcON7$U31{LCkzNW?-zQDVvewaUEv)X-)nvG(W3=vw5AB=0P z`zLybA8*>@bJ>!VcD-IOjM1_myNR9g0f%_zYW&R{UUFIuHDlroH^;?vL5J>2dZUDU zgsZ)GR(+su8z2;_^R42Rx|)JjmrVtaN$~+G=Z+i4XxqxYc1D1HJ#T>hlmvj zqUO27gs&#i$mFX&_+O&?ig0tlrASkd#e{!3(BL5B`Xn~9cI#hgxfD!>K6XJQ_AgtO zQL?G#38a;C)@T#xau^^#n^}v8Zt>6@LR`VX44Q4U<2@@-JToX`ut#Tg*jP~l#x&96 zO-SK2X0i=8$G5?#uww-*lL8unEtXMPrz`Dq@=R=Ygc{!H zP@xBybtll<3hs~4O!S?XVD+1??>hH@%?etL4=|g-86_@#{{l1d+*d1e7Y=()_{-RyEF1e1m-~$)#g`lvf2m9=9ce>ZKEg*p z@3eHQR2H}Z+GWwWRKM`ys{U7vnKKYE=cEJ2CY1*KNyPAeKTx+*?*ops9?(rg_1r?w zh7SQ@r$5upLoRNA&Y_aBvhQpzD-;L|s%+UtE zzL~Uc{&82JI$d(w)a_1CaQ`g1rkYCgBYSo8JCLQUBZud>K2A>m!@LtY+xc^(7qOGA3Zy?>PiGI&%K`z z4jiv%(CUnP`IRw8q@5knHqGg?k_Pz-R4*On*rWt%+wY4=P%lO5lK?QpSz=O? z3lcm2&Fn(55UbZC^RS?6KKHdYU&(%%lmexu>&0JP&Z~%}6trAvaDRul{1BwvdLqJG zPZMoQX*+QD)Ff=|%yf1^H+ZKQ+wUneL0jK-V@f&VOo{o`o(l!74<~k9jl~K9kzHKX zO~Gfu?jR&RP64+DLsMdpQENfe@R}8fHxv0tPV?H;033*nw?Ly2m^F7dcxdrsDGqz% zn-9B9;k~JEG=FB*JRVhW&Ot2z%^HyP<67n!zJEU`jkJzvRDEi8Yc8uYL4WKZ)E$$u zqgWlEst{zHp2drFs=-vYQP8IUXPgC2Ke2Ipy*+iY0J-o7IqjO;JTkmgGY@VM7_4Fa!Quk1>yN4h-DTmpY+qxQdZY%u9NvEhEHhro@J00uH>&U13-Mx^eoA<6) zk9+TY5vMOrKl|g$_QnNyhD-7skOj``45$x+!1ni3=`BKT`YGivdZKcr<>d!-ucsVv z-9oqL5L_z+iCZ4C-|R?(LlA=yI0UVLSh?=*48|9~vv!NyTmP<`{;Jy%dUwdF?~&r) z$RHt)URp7zlgxXBfGEw&(YCG)%ac2sEm!e#Sr)j+0`^RB%CL-Vu))x)iB%F zl~a1t82QGuEI^X5FJT~8%pq>DLn3mb#G0&g!ZY^gJ5bb{lM3kc@{M$Zw2q|xS(;&J zZjJxtZ~2NKf>8&x<%aU0;Od2m<1}W+jaau{ORZ+xZ{#6lJ|5xgBE1f@Xa1h7-*?oi zZQTTJLl&iO>c37$T>;H5mrFI3hkUJf4=T7-ZQd~?(!$aUw(N*Anj-2_{5{rkugzGm z`MXhz$c!G^z|J(F^=<#hHqH7s{B~_>eJO=%^RMYq0@t+#rqd_o75E#py*9gmuT6Bx z1@<&2x4_r}&_NLbd%iv4f3gNTzVL@&mrQCpJ(2jnLQbRD zTsOd)k+cUmH>W%EgTr6X*VzqouXrOs8xdJ5;1Y0P+eLbZb|Cy> z9*D-_4k70{I4qL|HZ&W3cI1D%j=~~A-Ah4-7Y4ni(1|W|W4Z{7>)sFxzp#rp)~7IkIGS9Sc}KR+~-mNhGp2NbyzG{T2SSo2<( z1=?rXgzkq)Daln;+qBRsoy!HcMZtgX5&hyAZ|%4?kz~KIwa@+Kq`n&@cJbUoC_5MT z(spd=6Xve&F#QN$u-b?vF@x_Ut3e32S?l;=^LCG_SxL-Z?5E?3p3fC}J|}-8PZ~b; zOwNynVJ6=IsbnjGw)a=lFY$X~LgkC@dM*RgnuK8AN^zl4*6lf25j4r)O}~e@??`!^ zI$$0tcf+0LV1Bb#f?ELNCHFUp5X2&-+6gB7->!+IMdM_i29_`2kYuye~~aW8_K=YA8|Pz+}wm)h1{-nqWms*^Fi5R)RjF_|H5VRd?iVBFSk70dTT|4i5B zK5TRwjZOU2kSwan%t8Iz_U@sXcP`&yhKP&FjELF4PWSrvddfjtcG)|g&b$?TG)Iap}d*Qy`(lxkHsfM8hI}I)0FS4qBbzz{nFhF3#M1j`dlS;T|74cWdw0aV3pr6Gs{ajfG$X z-fs4dZgftkZ}9yyQsT%u##`FgLkcMbm(~^2?Ls?t z^-O(E9gn}&37~h|D#KLF^iHvE|MD}d#*Ux8-7p)l@pwS;*<|ZQpNr~vo}D@?IcwBW z91HXAS9YPpiqXRb|Fg!H>50~qQ$qK6YDoy;3oVIIG#1|npSYHUCB>Shm79jblEF7M zxM)rMTIwtUd_{B%Y4gW*Gr6yY+~QB6!xwom4_kFClhuxSyXoJ`_2Fl2t=Sm~uk5dz zC}Z;-(|t|bnKh|Wg-6M6 zYGCWHjdNEV0pHv39hQ~mypS4rb^;H&zDxT3TK|;W?p(92@{~WevZYpv@SHZVTh0PL zryM@s0WCJ|I-9o0#Vv3tToNf@q7|+vLpMo54G zGB<^?2Ch}G^x@k#%Q4mf8|M*@^9%_i=>JF6d&jfchVA23S{+80RjaCM@1kP0JZMR& zQ9Jgiy;lfr6)j5bnW)+;NbFg)S5PwuY7?VK#P+-UJn#GYzQ4bH{B!5J&g(dj<2a9V zLqJ6?o1rUhG&X)qC!-jdAHOq|105d@G4qBc1tJ5t)Y1u~OHif#~WT{j#<8&mGLqMwZXdPJl->k1|9Unra=OL&MSf2BznZlH`*! z+7eE3hU}ef!n;p$Dql>e73oZTJOdZ5TED7P08jkmdbbFPlx_4F`u<^DOAAtkeVi^G zmXByWSUM?FI9ei>!Y-F@6T#@%NK9|Yq1<09#va(!Ly0S4dymflA7cNSLX%kY`$;2oEK=s{Vl#$a5p zH=E;QZ;OEF>H}$1vk^JeZCeXd_#$2@W71!2k?}DVyflpH4z^Z<8>_n-u~F9(MedZf z^9T=T`X-z_d_;0=t|E|}-^{30SlUwYo;4-suUHD4eOG?xF7s5fLl+&LqlD6x29_&NuK{cmFP{L=%0?4Ha<{1+8H<6z+ z4Z%CJI2l^D^x#SSrDbePAYuA^p8dF;_9DymXqJ8LRQIcZ)ZBDGCGL2|M{KQ0YOcO2 zK-{tB{TDUtid|eiL)GlD`?<_>vFO|qP6e3~H{@Q8ⅅ}h~AmjcDAhhD4j1a`%t|;)2cpDdBE){ zu92}ApOdBOHP|f*sY=PO3{v^Z`q;QRGFR9xs47W*KtB8aqTh4vLCMOPovz~(d5IGx z`vJ*Pl1Jb{`pUUnpV@Mb)LJX;nFyP~slnQ={i7)Cxme@ufNg-un%Hbt`0=Q=zDXU( z&bJj*AjE(%#oT{}#sHq%e(>;Fr5I)#}`?IJOKD(Al-c(~gY*Q5>VB5zlBm4<35ku?Ic&AFfnA(vh_k#M{ zK;=((Lrq2yw@}|Nk3i_bZ$JxCpCiK9kG3^i2)NAVgJy2gni)W?$EDZI`I9i6%>nzE zhMigH32uwo_>u3x{ym#uvGcEp=%x1&Flz<=U?LopTjnlZG5iaEm$Ef8mJOOx7NmyXp`(B4n;M$G6v0Sx7=Z#ZQ67 zu6$~9Rd+>qtLtQ3_g`qRxXw(N+5!ThhONGT_2mzq`CNi{KslO!g2TrQ~F8GWnF2G4W}W!+Ppq*_Ui# z$ESKQb=A4$;}>g0C1s4isI}%e=@-tg-+*=N7#3_8)%3?F(V)mDaEVAhhgh`+Gch|l z;DuF2Y8Yn5Iaeu7F*7&hyxiyF!oS$_8*cs77BUSaFX$e=89d#)MQWw=xKOkTMB z6D#_P9P0UQa>mi6M6<5a1%bfKLMTeKChF^$;XiW3v_o$l!5hvPZ!4KPPw3XhdKErD zofm;mXUZ&f;7=f4L99p3zBgV@@Ek#`0^!nI(x_>aY>YhHGlm{G`v^c8t) z`$5LnVPa-UUX_RjnIhUGxw;vs_vTI-WqE1eLdeVpoin^v3knFZf96{Qc5saur~U@Z z$MKrMO99OnoSDY}Q12qSTyjh{uGw~Z9O5!p$6y=k;%a`U?}q@P#@b=vF6I zC2*k=i^cw$@GtQ=S!ocyI4*O_3uq=dww(5^1}$R-(rX1)zd0d_kO%~8U3Nwpn>E-T zM&6w)5jHgLT_*bJKK=$G;pSJnt-^tV<`0R61s%$!Mk~dq%+Jo(A$3Ly>9zNFwj->q zRy-2wstAdw{UElq-^>=$_&QpIi6eZlmG))kOSxy$Y?cV(rEz_^a?+}D2AXB=u{_(R zY;{OmNpZ*TZQ}R~UZGYG8nhS&B77tWHaco%^X*w`#tI@r8 zPIb<|7@J$GA(ClFiuZonV8W!7aA=S6P2tJ34T^(CeqR}xHET71h5gfckp?yelSU@dACD2@Qf6+ ziZ?qf)eqj;cMV!r2YwKg({Vp`{msSzX=S;np%H{Ah_Bl~SlRa}=y~YYM{}<;|u~BYDg|MuAmM!}oBxi@1+84o9j2xJ} z9$0Mq&BiCnlmndodjI{sOnOku^3vu8rNa5vU@&1CaWNhfY)+{u3oH_SUKboJ?)*Zg zA(egVbS_K^tu*}pr@AMhXlJL>rKK$BXrK(X49LIB z>C7iYVOQHaH$x$}>lIQf;YuuFTUo>G@+z6({To@bJ=J1g#dIM4Z{;Xp;`yF9ayc|%b!MVR)RDuUvQ5^)dbZpdwzcfOY_%BWy;K&V9{Afl8+fEZ6!Z4 zDV#H3KkZVC+2=e@ z<4=9WaytHR3EmBhQH;O(7L~rSQR)>BS+Dz(uN`a|1D=gGo4TQnI#Tewl4kH)ZocVc z{|)Dh01qp(!1c~}%|)PHp=FcxTdgWLXQ z>M`jYE1qOXz4II1|78O3kaKnbNGNV5dJdJmse|YW9~(eJ&S<0h0hq9l_=g*n)WK>A z&>A2TYn^z=|8fCUD-Y^e#|Be7K>P)c14p~k!{PG!MuRb!0DSm#=$7m(A_k!x6c%Ly z^o&%uI3zzk81%OJ;XXF~%;O-*SY1JCoYXn!G!b-lk~SM|b`9 zuLbdcVDeLtOx*e@8^`0OC z&Ohg81}vo7xylkZzu0BA>=MxF7qc}LgR(X6M~Wx@7$gmxVt`(0cbj?6kMw1t=3roA z*8hy?J9pZdWEOn3vJwLzv%N2ft{f-Jjh=(DyY&9wIsyr#wmOzGnGxs1jNm!L@kVZ} zoK1ddNgGB(zZ_q+`bm!V;)X#$bjjjyL_RVJgTSsBm`&9;@~L;Z@kgzR3YUo!$1-PD zq*l`g1~X|TAd+A2`q#x4Qf4NAWR^4f{l4R6eQZQ7gGsmj4|)F*gN8}o^=$|trz*aK z_8$jCg30PTq_h{?=bP}DZ#PvPt$ZH)7{I#k)C+Glj5SB9gH}MSK5({%!8FW&c977i zw%J}fqbx!r*~cxC$u_S33^8KWX5*jGw@zf%bh7<`@ZbKNkHCTNKmsmw>?T}I>Y!V_ zV|aZeWExBhk#4v@ztK7Sw85Qx6*U801#q+LY!h)7ZoGqQ@Wx|STBdh!0Xt0%H8s8P zbO0ff;DFi*98aRJ+1wAuT7hI6W{35Sp7mkd%WsKp@^n)`C|_}C;Nl&9#((5^>6|xK z3{{D8M&dHgwxuxa`pXoJUHxUdy9~S4@;7|@O``YMO8UE1{r5D$?oD|{$TB1G>}**p zNiSYXg-5W*RcN{7D(4#g3`#tI(OLtFjnnci6Z^8y>~yQU$}Jv+c@RimdMW{@ zpN2b#>0<7v%Whm>qcEL&!9Cr=ygNVJwACVXFi(b?4$=bpkF`=1Fj3>&a_{Wj+N|97 z6WX7vc{Oeqv$%#G+}?t8zq>`lrTh)&0dI=yS=xHmMY zq-AlW&HJtqRJd!k>C7XRaCMH~uf{RHjrM6*$g%o{Ia*H0%W!s%`QY{Tggp!^wTiNw zrqS;>X>KhZbG_n1%X?!7#U5g1ehUl}m&g(y|If|f(T$mGwLrYsyT2_}=3^rb_T8*( zVyJMMG%n@Z(%TY(1GF#7zp)v1LO;B07EmXUyo{1Pwu!%hKQ9ozbN z=m2s6Y29zxQQvM3ilb>YXrFc}vAl1-!;E<)ZqzS$YUH9A08t94~+ z8u)YJ0Jh#VtX1elUZfM*QO?Ax_u$K?ID5AE`FR}Y=KW0p7enhXOo}-{^z!Q4ccx*z zk0u9=sVmTo^g11wB@tAVhka^GfROjK&Rh9Bu?>D9&taSN6_%o{Db_j7N>QOSt;$)C z8?v(Cs+dOrNN9N$swDoe~`0od8&YwLH9MY?r$o|}MbTgscCv=OSeVI3X#qt|wk6`#HbNFzmdTi-qLXxJNEX!&h z*Fj|_G|gf;i(7-YY&}-E@0jSuF5PWEQM^*;G!1*>+bKa1sY#MwSPOvNWboJPp0FN& zy`nw{XI_>|2){>$v9MW%3=u*RCwdaSL(I<_XPSIT+i;l^J4njUA;ycp6SO4NEWA{wdX@yGJ9I$X5Md&4T6g)3u7-Elqd zN+er>Nvv9p0AYw#m5CMf$(!`!7FExaAD7JZ$s(!}x}(>}j1|%>o9-^{IlOe{B~lq@ zF09Br|HyK;`xm4tCJ&e}6Y9jk`p*wNzpknc~4zl^4!`bd#HCfZ6fBRqFy$8mi3aAE54Vz zi+chIY4KR@4>b)m6zT)MD?d(7nSzSU*PYH{8 zNcU#x=lNny?+sG#7qV-%oZLO7w^8bSTuCr}oRbisz=CLP zyt$VzmdB%T7kc0H<_z>W^2cgz1z_#D@cG^oIO5@*31fz?(t@06o8Ai@FxX5TM1q7z_}es2N!f9 z^>y&NYXzfkJ7k0lNQzzI^{I3ltBHM^0J_2k!AP@bKo_=MhWPi6^`Y`nshHUy|I@X% z7goKDHO*u>bmyZz!vB|~A=AEe+4zwdf%ib605zg$hqW&Zr&f;cz1QOEN6vHp6*nnD zrve`A7j)?O>>GG``aS;S4-f~c5{|4W_D-g=jV0jTi2C^RR!ruPo-jU2dCaKo3$}|& z!jzWgGwB>e#}L_W?HS=+;!6E!ueEz=djr)9*?J%&PtJlEdaclrXxutW{-H=FPi9A* z(Z;}OdaXt#(mGp#bB8=HI~T18=Duc(ZzlkU6qtuf3@se=P>xsf^C>9mCr-M7!@n!( zWtOJiGN!YDvuf_KnUlS9L6A$CmBB!VipOjHLY-5 z)4=ANYVi_(UYn8#P%A9 zA@B`!Xo^pr2=M8j3%Lx5p-S|BatkC1q4FMOyc`g&1P8p175q6TbK_R*SwlLOc5$E_ zn%4P#x`$a5a;{$u*J5RwJ)qF7DPpmHnKS(${4VG8e-$DlAI0PaxXtYJHOic`$9slj zFZ5^IbR2B| zWqT=OZ=m6?Vd(aDfxLmc{ruohwZ~0`kEmYeXDC^}XC(F+n49Z~ zrspE?T=aPuVwAH6oQT^tnFALMN-?~P9KqXC@5Y(_`P{_bF6^Y*d!=#^RJ1dkX1HdG z(s{f8-2Ro#8uPOp@izi<Jzb#UPHVb=r2)x1S)_C?ra>g9~{a&xbCkr@a7`=#VPdSHY%;T z-t$UU&VrB%F_*v9^q5hi%~qR9a)c$?{nE7W2RFcIM%dh_a+H$1K*I#r);?t}{P&q@ zUZ2(m2YLkpl+4EZ7#fWR9Ma3&?=@)3Eqgd$(L|6T)UM1?+;;cEaaL&y83#j^}Rov!*#6*WO8l zA4vEM__3hGecTMVzXletO|Qg`9Bg6@cO|U44`0`WtF4vRhokbP-Wl{r#jwfNww$@{ z2a|x__J{tfe_xwqn^F|hc1#8^+A2Q_mUWGac|z+9PG#TQ0{+LuMl(BU_M*N1oig=7 zj~d_Ya2u&`CHf88N9d7~F6s|TQ+(osKBmxnMz2f0Kapk$y}voNsn!Yh`J66kvQ^zg zVI={~j9w43&KIBBd~q@z=klr0mO=%no7a{bWP1bT1byHFb7xs(w#{1NMcg3dJ!6hJ z62~HpJ#x!8xZa8Irt?LI=TIvlt+1!P&W5)_Cnc;F#b0a25MDmO^oZ$f#?&f{-VUGS z(G+yqJTB6}Lgbi{SN_45=-seE%R4Nm(2tN1c!wNXK_j3n+`nmH&59zdcg^O}`0Va; z%MB|#QGvXx4IkRNQ6IByOm|Z8?v9LxVNaE>m)n%g;QpN%UAcZUba=pg=R9Ft>Sg?} zEs_F0skc*_v1+hFoVKd~cmOm|^UPX;774v$ILeUd7lqybl|HJ(t(?K0-R)PIucCks zkFeCc+tcHs!Rcw%Ek(VH{!PJT_DXce%#ysDJyk{3MH1+*qXS z28LG^JD6?pXkwo*#KUY;mG_vw&|3J5Pk=abm+!I!ch_oiP+%gcMX zL$bt6{ks>{T~m**4s9@OzN~w9kb0n-F5x^!&V%N+E;@HY0xuKrM`R+GPB=!-h*1Wk zyB^IeGzr<)-66WU7*L7d&nWFfBTP98`5T>i&rM^#H(dAm02zQM8SNbYqr%>1?I2=Y zPLa;_g-X&2G=N;tz*9H^V6k!H?zld@Jdf?n?dxzBrGoOOcTt66g**cGA-oB9~0! zaB+w-)!>>{<)lrL8U}|&=~}0C+!&;(j0~>%VdbzCEfi=WMO#N3p%sS;7 zg|jtAX6us~#pFkK)kcpOl1d_TcPciQslR>RtXxUpcO_Y43rWYL_)})Zb0x)dL5}9D zo_~S4|C8Rw4>nCVrT4^TRHsRS(b%=ctJ18#>{h)&O6Olz%{+kIu|U8XqC0ZEBfb!j zNTvoBN*vK~m)n2W+hkcq0O`+8)09OS2PT>;9O_!#Iz^ahN5 z2!LWkScw!6p?1p2!%vYsU5*aAbV{#zkXcZxh$SZRLPP|roe3{@zVv*+BU-)JpaYL; z%d0es5Nu$kkw?B$smQnDIc(Y79xqgomy5n3yg~~X<|j(<3?N-xMJbL--FHkzUiSVa zL3r8sPjc^j5|d`Qe-LJF+lpSN36lHiP9OFqa0F`8+NGg;``Na5uF~oz(PC3|BPW}x z)gtEwG$`2aD=VY#`kvf3kq=LZ8n&}rzrf3agA(gpIG&M_##=?H z47f@k{$811$B%DQ^|Z$2?wc*ih3KPTD+UOE2SdjWfKq{^#@2KCdY}ydC^SKdQ``KC zni+729Ilzm3+my4^8d#gd-QJ|zI>0JqWXgGWOuk{_W*_f>b2u^O#l)Ok#6!>CRm@i zRMf=-NHTA30!9Kn$FHd4~X1uCwx?yd41KE(4C1xv{haQ>4Xu!DN z@^N}=lQffu&^i-cL#QD|-#nV#|9;bmhapwfmV4CS<{yiaKZElWCVg7I8>S(U|5ARj zo<_kI_Pf8V{nv@nUq}jX>C?e;4VJ%D}R#%@=j={6mfai4YEeb?|b;qSttY$3b|d6fA<~XN?%-%nsBRLq~AN?a(BQ*F98k&RrBh+3i>#A10eIMF`TnXa>pnw7`Xkg9q z7ZZ@vGJ(#2?)w3fn_o9*{*vbv?)vOG2U_<*$#*3;i&mx#(MSu=1H1Ubfzd9Fa(=&9 z=emb)Hfw3}Na9Y>sZdLG)o3a%9ro~RKPKIAL0$RbT7PnKBhW2fh$lrM>lQ2=f;3+E z<%oz}85h)7?}Oy=okey_#O?c6L!=4G!Fjn;z(#Rj{6tWS#fN7NSuj$P&6F40?ps zlS^b|8K~_IiJQWsOPk`&gNH$~{YNXcdn$=Oe?`Ub%AnMiosq#|J2lDKT_ziB#x#oN zu7@R>fo2dQx=R1oKDb*CSKnq9w)z?=SvzFoAH1^-2#XzZKJMv6RPPlkvnUcYM89^9 z-!s7PI@sPt*Mo{&P%dWNW0MMwTp7xP%-oixnPj4rE@ASMXBUz(4Lx^|Ez6)rdymzKp4dmq6tAQr^|*p_^M zHGOVibZLH32jDY7UY-YCi91A*&P!Hl@i7ch(oyXR53g28`Ci4ktI+CnAm>HW1b)AT zM8fg~n5gxt>(i7-rHoH7E-6~>ZHg98u+_TaX+XV2QS(|p@CU8R_TEz)0Vr!cc#O%g z*b%M6Bw-a7>vuwcdU>IErzgTN8k%LDu2i_mN%U5LlD?+qV09)tNE#bd)ZPN}0?J3W z@#)Bri^FPnOSk7jOG_0Dy}h}yjwKdPlx>~!BDe6e`p66?vj&;n5ru(GT^`sGx3?(R zC!U!3>GU4A{AZ;Nsd%y~HBmYMwH;Kj{HR>v>L>8R2YV}Dsk zJHW_4SxUa+6Z{1Pk*JB~n)EKbDHYDh=hT2zW%rlnMwcn-QnrgUP-TY_rvsy>&@i&%#B*ke-bfSKKcfM1 zZS?C*gG5?0oDx$z%;*;x$)m;7u&HZ1f1H-fG72}F(P!$L4^W^Hd zIlmNpw%R*B6TUmt7Np>5QW%?4J1+8{+S8388|fVz(!Gt-s4q$?7ps7ObCk^XWI$J7 z%XgG~a>#(SF$k;o9k9D(^vweq!fG`;X0!^{GJBVLQ6tK!e7%MoMRVI00`*~I?h8`y zet}+^b5FYGsZHqVq7V}=1^%XWeM49X3cU1jR#Bn_$b!zaZHk7p;j9y4aT*6Bj4Hmc zwe_KhgjYFM2M+0gk4w~5zV)yewpL*KaXnr3mZ-){*hejogAE}Xt#?Tk>KQCi>s3`= z^jtp(YgzqpHCFTHK}Iwqm(IYN?Tg2uWJTUxg!1NALg$IR)-gH(960EMPO7wUDF*r2=ytL#6QkmBleuH7vpfGg-tjNj^0nhyTa z-6986-zvw6nv1w$>~`qqt(x%aom>75N3JK@9m5AU-v{CkFihE$kfc7bn%8Se)4Um5 zEg5X4v)JY)^wziYWjMNcLh{1--1S7*84ickp#nlz30@+wspB}RD)WA!0t!5-OXIQ;S(fCV4EOaT-D$I*#YmpfDWZxP` z{wvFOp7=%TyAOBdd)s>Z(H*okdNh`dB04|+dee}g`1SBzw z?~$yG)mQA=945ZA*lPt@F);YHEw7$dyAac6*&O%kX{>j1mJ^M9p1TuSd%)sJ|$&O989LXn_Oa;1ga+rGORLr7GRWJ1eHoA)g%YvpqMkRxDS z8KRIWl*v=Q3WV^^yPJ9cFBed>owD7i@C=i3-x<1PL zsQ96<6iw~_>4hn6=g;G<@o~`pX14}B7Ot^|1gL3cpN*)^(NwIx+4v20DfGzv;wyM5 zO<3a-w>=W4(;O8@K0??f!(|RPc^+w-KfP0W=qrUZZ3rTEjsd!x*>tm=*VYCRy*14; zU23O~bn$KR@Ijpk^(DqH#usbKdJ{WOVxmv;BY#OjVQG3^>3t|Qtfc+hF=w5VLC%u{ zh1sT9^htPy#wqnwGt|@OWXJNz*Aofo3@sh&T=3$Cnr;o>08?yIJdRYP;Ui39$=qz# z7|S>lwY=I>`;fq*HX~p=UKn+cG6#(X@o5Y{h-Nj3g%VsOw_iZ4?tlfyOT_oI0in<7 zfuM(e*W9k?-Y=J{{iJsSDy=$9h4IJ8(iB7|O`gn~2?SUWN0-W%rilVtNZTwX#vN)-aw&~`L7r$L)#?4cld z`ns=M>Rr@90^kP}bgYMJ?)AAwDu8WW1R-@rO+IdjWTRuy(Z-im`NqNvnX;w@;eWQe z&LfrOX%r@#jVsgJ9|YrW`wY|sG~?WZB#9@7g|&y58gZ$=%HV9z*%YzkQ=|~*Wk?{6 z?4I|R$WRy3Md1Q6W05+wGWb(ui+ghi>GXcIHp0(^^d)7&w3DM35on3@6q4VnjtV>Q zRt$0-wGSr$G#T*h^s?n#ZVx(oY~?|X&1!3<2iM^Fx0LH*0=-!FU$f+VY;LJ+ zwOCk5v}c?x;)iWkm><{8hb3L{zLpWN3mVO90gD>Uh+tb!mc;4CiG$69kNdWDcJu;r z<&kwHJ(h>Yt)gdIPakDvw6U6D8Xo2FcT;0+A3g8gU-4MH{mx`_n^V@%uJio-Z6M9V zFv4+j%D1S%KG=m~C)of^^efS^QFiJ5TJ%R+$vkTp<+vUmqjJE>$bvX}BJ>M{^m5ZO zb`gZxI*k@#h=wdzQ~KAx#7LghZtQQ0jQY)XG%1764^8_(k;O5#6e-)+V6kXcGE4TM zE*i(;8Bcer-I|)Fi{aq|SD+|5mn~R772b0C-KO zc5hDXrl4Y2mS&D4-#(9)Du#D^4xP?!6b%};Vpz)fz0JmBNwCYI7mhBL+wyPS{HK4W ziR{TrrYK~~LT-%CXX)#Hs&Wai9=Dha{A}X*rBvSvI2J0}Rq5}_(g--ZDRzR)-C6Sd zXtsp&dQ3$BM@_VVNtf{ZOrac3e)}^F`HQZ6Zkk{|?!O;(?(mr3K5Ge*)b_MKNL{#A zbT5>~z^*2VtxoDAg}ebJ%gTbwA-76l*)R2mLlL;EFoUT4=vLDkVK-jDM(;evAeM(3 zzeNU~waIy9%jz@7GHtEEnz@>4Qc+tTq`u_5zQjD}yt4xwPwkEUljA$88H=?MUu4|b zWS+}rF!$>Zno$@mQh$>pz}D;4;rxnjVvJk?}HGj1)bC;$7d$?C{0@q9l7GdBy zV^{(hA1H8|DADhHje?6ay)UNWZ-EhoC)3GTY!sOf-%Vy@zUBWUDbjEn4y>(q3h)|% z>9Z||9w~`<`B3LQ)?sgWDl^;qR`e(Op&eLU-`u_Jp(o)PJXT#Qejex#3V|KEFI^1o z{o5a4WK*Plc+mm+kV(8)JI z-suO&$o_6BFg|v;>sm%O*@}p6-aWa8BTr>SstF%>d1G%zDsRSpFW>njnVk$7$XWzB z7T_(U`U`3;L|bn;89RtlWJmJybLr@PukkSoj>@pRtfDg2=AE|zX!cAZ=#eV%H*R^4 zyQ1!aWO@qpn7Hf8c^D<)d$KaQjqHl4^%{)dj zdJ!)m9P&x@ZS%*fJ3^_QhCPbUl{8VU!4jPUVVHigD;Y;EmpcWtFyd1zX-r&Y4zLOX z{_}kG6ysOy1`13y{}L}I=p)`0q0fthPdy#i`#VE6z~10Y`HIF5UFDT0hefcQxhgir zWJoa(6ZCMRWQ}iPq%CsB$bI)oOk3xaGSCbNkM`bgt`8S8J7^8ypS1HO~1wbjI|~Z#OZ98e|LL;RvI?t*WG`&DtOH&k;NNi)^R```-l3QbaYia`@t+h zhdgDjikqXk`?k5l+$AGi_#v5-s@yxG4O~dxXvM@0Sl4^{GmygE2~m|VX;mfrPAM7V zY@Oeh%C|t}TDqgw1 zx%XfGA1BXCAfMN?BGWbnOwHOW-~UjA7ocb&9Mwz5=v*Q3>eHtB@2i3?*BNQA4U;n; zU&~%v8w2A1o_WAR3S)Gx_0V(@ri|(>TEDBh<+tnBb44+#(?%WAjRK^y;4Fpv5ItGF46t6~Q|lK;Hx zZz$p}t6^$y4ARyl7v61c?3S&|B{SuaVa4cLtXqJ8NAQ=)FnAV*R#o=X0CcJE1|(Z|>wL%?|$mvh-XT*zKDB2j;Jh>la|-I4NlC9d!N% z>AkrBJI~t%D{ozv(auqz+GRb-<3|g3A!8`r-t!DfmT%~iOigaSR!%Qfq;Rp&8Q%21 zh@khK`voNG=g-zJc4m_%`T)^=jY;(Wrje6k{-F-Se+txLP{b0p-X{$KjkDazM%bD@ zHpFhkaI8X4!$SL;$(~I7PLlbat2+I=)}5Onz*e8@@cP0S)oSi4=yE^M@Q+{HcA2lM zs;b)g_$A^H;;5Oe>FY1=yZq|cn1)9NlXoXZr3&a7u^2;o=;!&ldGxf(?}t!~P$+FguSX3p zcszL}p6vv0AOGS_*K!EUAO#<+#nR5fpZ};1Eb4OlXWbrjtFawo3 zdwCD@Z7b@S)*uGuGQlhWAHmh+>drCRC==fZq^FI#uVPuB_gbn>T0)y(u_EiJIy}cz z&$FwYFh2~=H<~DQ6cuPP5+_TU@Pw<9f77AtC(?_^NpjE$(COCyeDw6t+gx3EGFNWI zPqGxKV8crLvRY-)q8jq1B1TkixbrAme9S?*O_r3M5YYO`ySO{jQ3Bai%66tZbwC>5 zpgHvRA19peK*6dC6?B-Gz2jTXY};X}s0!Ggy41hBSyU0fv?jc+)c|u;XqG!EMcjEY zJK!H?GYfaID~-JN?x9Q-A;EdCe`GvTpt2vBsj!9d z(AZdd3ep3z6tu9)a-K}p? zLGsl9=Te^1#IRvh%5yQ~HF%si+Q1-RO#4Z<5O-oDH`pgs!;o^C8!E-@o`V#y=y)h$yZxFKrNLvve=aF8q;dmZ z7%PfzEc^)qURR>!Ifte;yPP_w0Bp57rYJEVf<4SmmEX@Lee25s7N%q%~6sqtk3K zl`uXw05V-kzpPF;txxg{C#1in3$d+Q{^-J3Yeg4^NP6`@k(^LU1(F9?H-iLPf*sdY z*6UV_36nN9rhg;q;l^)i1NimVM0uwjW9BYFxoWNsD%Opmb^6kfvz~rI#s&8m1h(9U|6dpcrlD}E0=4!DLBS$%u6&~FIuH}5TP(i&GxCRMZf zJtwX2=xs7T^HAn0`{Kt6em|LSVIc37eR0BNscyG_sww28>2+Q|Nf>y~- zr5Q(L1SvS{9-8TADGEz_4RA%p75Xj$*|ZcNHHv8r1pV;6g}_Q6&Xg-zJjyV zXo#@OSbWL8X&b!92fJUI9cr!%N?DLgF8dB#PZFGeh5AK+Ej&d72hGQIJX^Zfpl)QXf}i1#9A5QksOtLq%^0m0H!~D|GdwM0x)@Y0Q9d_*Pq^?iod% z{yeahXrC-ci4O2%Tvh=(TNZ#gEx<3aaK+udcVkc^#Me^=cr|gA&8DUi*I9*#O|pOZ z>I$sapv#}y6T}#nH}A`~IUG6kE5tHJ2|~V$y)64*F2LfN%D*oUS9rj(>J9iyi*ndk zz~Lw;V`JJ9^>g#ND1G$| zSBBfc@2!!`ebP&{#UeF4XI%qJ_16WPl6ffrTXMm}Iu>?`*|Q&(K@WhqRtb39t@Kil z=l>^XEy&+LKvJk*wu0oPWL7G90x)jXxV1eH6~~UN&$m zWF&Vd7oDG)%#lYBpoG`hWDEoaW}oW+Fgn>$5SB<2+iv$i?^(!VSk7g5d>PzCRtcTU z#3vE&x{$6XM~U?r3LjsIlC5wFwkcPzoZoi6B;i=CxgxoirX&TR%Cq-IEWr;DrdI!K z^(s=LM+_l_O;yKNZ`oFq|At<61W{O}Jbwj%9dyp)?Brst@ssP!pHB>s#Y@DmKgC!- zWTEla4q~s|4!%6j?l5;02(-PIO%?g(COlipRz(O0{?M~9rEQrnLhas$@#>IQvE`P| z*GwI@ElRloPnk7O{@!}2ZNUL@@D6B+2+?eS$s;2^=Iy%s!{&v&k_~qLjqE3 zeAK9KLC3AAAeyA7I(qlmYWndvX`}|Hy53+59ntv3HJqf4S9^s{UMqR3HDK= zZkkc+=WwJUo2(e|kYo3wk2eQ24Ps*@{$!XS1vI%^$v#P^0Oe(|+zHy~0y z_cc$orsX%}d5ldokF> zL-qXeEVNy9ZQ9$=x)!EtJjI>^TRadDz(9-*$?&l!L5f+*IbG?XW!hFXv{Mfk>sCUPa=ff zn1BMiA?4bxOmcup&rr`5tAD)q0}u_o$H_;XSh6(=7Zi}f@BL7`A-LeD6| z-3!)AVQkZR>);g0`|2oC{gH;1p?m(4tJa>r| zw$LioE;67(LXY?~8!Z(y9r1}#&S{d1{b1FY&aVz@-hUkr3856Y zJR$8+xU*nA#F;&CE9!&AxZ-YEfUdlnYtCYMxe{;*NZjl}_PEg4MIHj1vB>-J&Yh2BLbJ*(?cdn|8r^h2UW7<= z|NlqVTZTp1wq5@y2+|_0gox5TATUS>0us_NbcckJ12TXj2q+97NX*bRbayM=-I7W( zgwlfOd*F55_w&5(_Wyt3gKQfgJZFw$oooNCwZH6Q_bH1DqJeTrdT_7!39ToMN&YEH zC1MKj$W$H_?UG-N=zjil%tdzj!+|(RG=wmCy{nTyqnvC>vFFUY*#&Q_R zC43nt&K73FP`ofyXZ0vbJ0Ku<2v}?BXv1H_Lvx$26RIo#GD{lvvxz3SKXX4cpIl0#zDa8IRz1!sJ!- z&pIM;evqc|7f~MiF!8L{KI@xdlRe!ZUT|;AfnI%mYn4_2<4pb2`peLOGtT>p;(^|s zn-Pwir2nP4e;(d?(9JWxm$i8@7nRJn`$9{6-#x<>BX0$}bh)pbIuM4&QWkdJX%TMu zP;Ujbsze#lv2ssu=V^m>`bUaQ#j@QMSy@kW{p3to#2Jrlg51!$8Yz?EeD4~-{9EUGwRTx7D?*=maD3iUKALov!5O6Y1 znoP!khvPa&0nLhVV18yYS8r z3_J#ig%1y1=b*_Z1YNU38E>r4txE{Td4#QV(3!Ll#;Rfn-U+E+klLA4&@Ng__y#(E z3@*@w#Cd8`b>pX*JPjWlwRWoM~u#T*O_opbi|X z7n(b5VZ~e>Nc#Hwmn%O8XOe3NKymosq^3)yFZWo>F)}3){sf>lF0A|$MZhQjeMq#b zG+E}i^{XQCB6;$dr5M+tIpKxVHqTd-*3`6;B*M$`Z5b}lY?Ar28T)jJ@2b=fSw+gV zKaZZ%kImTIR(ibiyHmYu=wUVX>1yz{Jl}k-YuL-vVAD7a72Oc6TD}5-jGBcX22L#s zGd~CFY!9?|ujKRH?v8bJQC??%B3Cm8e|6`@0OfaXA19TDNd8?`$>LLudbdPoH=kp( z&qP%W6SH&8ujHpJyVWAy1*@=q)Uouy04ljoSJt-mPf2vnDx-@IGf%;xzA39giHHMq zu58k?)?TqPq$##wA4SD_OEc+D@A>w&8b9z3aS3K~cD8&^>?N797ecVCjFY1$_G2Vu zdi}7Apl)B0t+5NE)lQIr=<12Mo+-D3;e_?5Fk`Q4fTT@Hv(S`0tfpCC)bo?5Z*tt6 zrV;t-`*rE7z;Ti!{Zty~C|-Gl15HTINV@pSP2-=xS1*@fpI@(@AjI4EwL$j`_8F%- zL&#DStW=_!taFQ_a;thg7B!PTdb@zz*voRFV`9!;NeB;=F$;-^>0g%zsvIgSwPGjv z5q3|$5HmhW=$TChPt_uL50ADSXg8GR^w^Weuc?VcMrVd(Mk)z~yA$1>X+bU6TWtBt zV>~qT#p>s-D)i_;>goSw#SurQLmZh)!I)6ZGVEx}VJKlgmgO66FG^!;r4}xG<&=x4 z>{MfLsXyg{5X*9(wb&;HsZ5~VxQ@>>=C>XyjyGK!NJnbBspDd!WWzok4td$`(m#eK zONSw8BwEzA%n@6j#B}W*qwuwJRe)yGb1Mgfz?VbtK$ehGwm8GGOh+r!#7k{^8O1ak zt{kR(1x%ypz4IXD8pRU2C7F-5PJ>#(RBAqH#N4ox?*RO^8%Ck<5o!iR4taBl&}W9? z=^VGmmdfZbH_zlbdn0d7<3Sb8O+o(W;D63sA8A06d_js@dH?+p@1Wk0nzl7g7|t?D zZDpx@2zHxTkH{xd!5gFwrVbK42yZ0A=BvjI=y8Rk& z-`UH7g4&I5V_zt&jE)EDw$mjExL2A|emIC2z0!R|Xzw7c-79s!>%$$f@ZsK<=#;L} z1FeDdr=ahP-|bf&VgMYA ztyMvOjK267+smRX!`wS*x!MccUb0`ac@QFP-^lAr_KsV-v3n=R8K)>dOs$?)Ajl3MaWR`Esbk-|BZ>!p2sI%p<>IHeQmIdZ%WM0p+3T|{{=Dey1tIP8! z`T(GFJ}L>23LJzdj99*-AJbCgZ~GP;)biW(&ZarT;b^>aHXEhgY_`B>l&!nXdL47H z_}k}$;(oozS8OeB8R!#|iW1wFj7w5+tavgAve8=3OC&+|Od&@%-j=z01W_q0n;_)-w3<00z^J@+L zs4geo{?Y0abjiHF+38C{?GcPMfmN}pRhwq19F9XAIp36`5u>PV6`!8D;mqgKz8*TfZpd;Ng-8w_ikz3ZH@S7^x}{sawHVTZ`|-mc@F8F8=0oZshOwS&*%a25RF1$CCO@e-D{ zo9YB&7p!JTBQ@7ar%<3Y23+7+ogV^Y4<%%aZEZYzy<=73lJQ#`CljLnhKxBg>5~

URhFW{hIM6Xht4&4Rh3U9W-N${_QGf*{SsK;3GhpMx_ z8gaGoFZ1hPJ-CY)%EUG8M>;lEoJ>-#9EBRok4#4fJ@upn&U*s4%5%m53y5m+xSw*< znmL7?Dz)eQHv4%^>VLcduH8zt(&r-sYiCLpemtWd9&S2NafFz1cC}h217kl{koN23 z=+lNG3i?YG9|!&X&`&VaI-mZj!tQPpiAE9k-l;$nVzJAT3Y?{5Xw0~@EGTD-z`%T9UHqiMc6s^!wz~dpPI~*~tfemj5VoU@c~$ad`N{MRx~2b5j@^J{ zO+Nw<^9IHwul_po)UmC;pLFhg!+l)%y=KPtu#6wXC^duz%*#D&S*UE2my+SQ3|~HG z1uYR`^*y)r*Jiq6@2f<%-LiaJ}M<)7K`*om3l-&)2&C3K0IX+XOdlH zFBVY2MKavy@IesB34AePr%RDjl^JA*%+}kEOoEXNSw-V`neRjy_-U+TrCN@)?il5H zVVx!E8B{polQGbZ3>^We@E2rs6_1Al_L%ez*I1(YG99qnA+q+D%*`B21ns>eC%J9n zOEFJjq$fOExzI<|I=_H2j)>Ied3CwihBl+_6I}=kACYq`v0>-=sYa^dRwy@&9ovVd z-My*8p9Z&BXs`)NICFV^+|BaH2G$)Lz-fcliu|;Co+W-uR}`jZ{7Q}cXjst4gVpIf z(DCG{Vdu-hi#ICqVUySrieJuI1#Q67SeLemNUNvh@j2^8u>9U@{0gvAx!_*l!$-tv ztG54o*(aLfM*%+EzW_A(OP~egHR2Cn@GG6X+b8jI9B`^FziHiyyPQiaH0mO&;IGV_ zYnQg2agM||!ggG9giA@g@CJJcL%FLD6(LtEUxISYG4i+ru@yRsMJ~b6drzQ2mh$7W)9*?&YhPK-H%TMj#=TOn!!r~TK6PRMaCp%-ngb~%XwW3 zp~%Yf5;{P1@g5+C>>2VrIDi))O$`+U8a@%i5x0$FRRHqlHyAFUTN)lu7z0?u^~(<% zS;!eR*UyEE#^7u7l1W1L*>)w0@7&Vo%Xf7YiUK#Gmu}5n!fYzi@xrQMIfmSdVSEsn zbgw4lCN47IS{Sp5=%r(<-*xz$C9&nriDZa1y8kB&N}JqKyz;^QZW$)to0CVOsEgxD zwYrIiE~jn(F#IM1ga5T>d0x98=ieJ;J-Y)$eEP0jOvv+3%mVlS+Bp`yl3jR` z{BUKy(0zO19qrZBUP|m8x#gD-x%PLWp8rUAQTw0ySgXJKUB&AL=s!NA#EOAB58hz& z#a5*EwEwi-RIzG~Y){h8oHGs!laMP^wAF_4K6fq7 z^GlZ;h)u#+;=(FisX9K-wqWd2D&E!+`US7G!7udRz%rkRP3%gU1;FJG5sjr-% z&V4kRwwbOb>02TFW3sdj@I_g~X>BO+t9yuaIocQaRedAd!&~tZe!-mvcKmPQT3+AO z+{!br*Pl{7TEO?hCz55SaeR~?bc^+f@?4Vh%c6xI@)zHU&)ZJJB@ao>*0q*DI{RIb zV(SKNTUFDauG|Bw;L4YeB`S9|7-#HZlcAP+-9O+@alEthw%F{Ul{|VUGtM=)I6?C$ zSn-y`n_4fQazp~rdTwGN&DS}@1JIUGXrdt8iN~Y(OU}56O7vgg(>@`6AO+u~KSd8= z3)?iMaO7;Nr)<2CvsL+DTHahff+$*gw;C=`1!8A}p4a%x7v$iym{6ch4_^fjH1`Qr zd#rS82pzfhA}A$_E8x_kgB-PET3e#%`BJh(LK{4eDJ>ooBh5085CpZ&2)IeeHK}B_ z+u)roc96);X7>(;yKbi9Z^}bQGqqbxJZWzedsfs%Ff}m6f|pVX^H9wS%Iz$&Y?x{o zS}1dAwBFJ`$wq$ex=D`pp`am2;taD>wt*^|)4c{BAh%##;ke=CwEz4jRV{+KICD@Z z$^%u8#5X8$it=`oB=h>Hy4+trHb|fPep?vJ;UREMx4G8?{hEfvWXj|QhAb{VU=_pb z_qlpsOMo$mi5|e$R3u?#s3>~skAsHY=1>a?2^vXD9qW;_NCUj-a4EP#FWN3=WEI~) zQ|q)v$MjZ#_BzHI>^}95Z4{RLsRuTnHs3l>4SV$P7O=da`uE=WD(~2!gAC_llRa&U zN)H7*HPAt9l8_pz3sJ6NcqPcN;$f8sWkJo-x0lss3LJf6NS8nczwDKVas1!D+^s$( zQe`384F?n5+#fG;*t)QuKke_8f1(Q9pUrm&-AK_d&L-Y#R#eO z2$Eb^WA*R>lm1e`*R!dIga?pc0`?F6yiGH^_)6wqQtK7|9(_{o^x4SwY*Vl4Lq~1U z&K<4q$1p*}cEksG`>)zHKr8Hgx=I88(=LBLBpXlqKB+Dok>HLV`u${+GvY^e|FV`r z=A!8Q3y@K6{K;nQx!=y#C0854a3pk9)fI%Kda>~hWhOyj0ZYBbtLx?FPD&-F|$@! z=|&_4B1Q@Hi_0{^;MlcNW0kxqCAR4*x(BTC_~8f7Q#F?d6 z&tUc}_?ZV$8$Dv_AXp}L$8FrR8QR5|jzu&Ru`2314e~0^q)RJ`9E{$$kJo0M)}gQ8 zk4iVX$&h40!&>%ffU9OMQZ=|I0`kr^Ju}y^NL7Gvw_imtCSFalr#`w2l@8HG4k!Hx zF6q4Nv|tI2O18XY>x~~aSqfU+14Tjk8g%*1joB~VW|Uzk!yrkIW!gR2DxQ8Vg4O+rQ|)JPc7Hc7 zqexpS1CtrAl_a8FXG49m&~yci0iK=xmF%wf395y(R~t{ZV`vLrmuvEQZsdEg=rRFrS4PoLJTpwKO^<-`Uv8~&wjZr>S)aj9CLY`zkt zP?suX(?14Nlj-~#ZW#K~@d@mLNT)&KgQ}9k9N3ovj;N8P&Ml%TkcfBBx!-dGDHYr^ zzGO~;Lh((hW>4$R*(aONW+V#SNq zr}plBSk@@73L_e{GW?S_ZSx+uxA6gC?e8!zIA38^|8mhTfr4tNYLKU85+qI$D&|+i zaN>6J{g4~!Ms{U=y+jq#7Lr-k?IJf4-Px1P?;R&|c)m6n`X8QNwC#QgfmQzWxhlMObPS!tc!scDSm@=H(l08<^ch?b81P)Hm;`^o*yU2-Vym z8e`PH7h+u3!AsmyIRB(9!X_)iCdDra`sy8yu^m8a0zpB*U^tJ*#5NV@E_J9CpGa@) zY?QTFStNEv4XaO*cc4z^Z9h3;D@H>K0Dz5aR%E!UCj;>woevrGp-Rca9TAFw!n=3u z601llqPP5n6+-EjC}dWvD#m1g+Sl4)Wac=J zsmEHs@WbU6wX29B5l1Ay)UOc(!@TKfI|# zB5GIe2~GKkCs(AayLa2bEM8Ffl3%hk?RR;IS>yN;OCveoHe3Sp)Mzz6#r}VQd6&Ue zW5~w5Q+4k(-eteWU5U8nQ0@p=j)mV0|4@VfATdO}Kl9CSZ21db0oh_5i za{rUMsyx^Ok9tG$=j_Mm(eToiy%3DFFW+up-_XzJO%hj;lN$mio(e}k{EogKmSb~| zf{J>>FlLplxOmQztnV%{d5DyJmr0Bu$Hs5_(4DrUU!-Z@a(t{-9bg+vn(FR?W81GU z85+}sX5QsOiPWm9wGMH+GklFm$MW&ZIq0jPe9F@>j)0x^%we!DeYyPh9r=8n-;qjlPpJ}2R!yI8^hON%LONt z54d1pCzNUNN2+uGw315ezeCbtM>gQqs{z&~>L7tI`cF)~)mgD$`NBZyboBy3K!A0i z^UG^9SF0>H-X{D7;CqfhfVF|lubG?7RrzE7jX@8Z@sGve^iC&BR-V6PA^!(`_b)AO zi9z7nai~6LllO|EMG~GyM`{kiD-i>%jQ#f?)w|*) zjKSOEO2BH*D$=+Gbz7tF;xwV1;k3&WP#9R|(_h8NMBrLV=T5}@#|ubJiV9_zcqC+7 z!A%d!1QbjiwsKFdsHiepnR466)G*_$Ua0ZY4l}v$tqASBNFQvN5&XPyXp8P zc%p~Ib{c)k8|{7Ip+A+s)uOS#?23^{ZRqNt{5~E=gnWhn^Kd#mO|i5ey9_xSyrSNa z#oZ?~NpWV?pT8rnk8qeN_8ZbA-Iz;fXOJB1z{|8*h zod#puvcidYPkyt}y&RLVXJ_9@?|@M)*VBIWMqRc8Efr_8A6B|+=R_dR>ecaTYCiF3 zby&1eXY1;uE=!b)NWbL!QbD3c(=*Em7@gK zO-N;))p2^X+sY;P7AFW^8*8yuXMt%7A1`O564*SMrSdVY}|qKVidgsYF>9cZKfe4+eiCEDBUmG|9DdXKy!WAU{M)3?BHJ7Xo*@g zxUS$PpFi!&sG8cPA*K_8Qmcw!pjQTD!BXjiXgC$Z6!xQl+3Mfz%zpAl5c(;TZK4hlZ(PWGh51^S&{q^;~f ziCCydT;Y%Qh1J2Dx110_&QL-NK4hTcKFiV_Ty$>?b1Q&Cj>|#=K}vnqjS4lF?nFn= zOA57$?1jm#inPu2!~>p6YbMfi)0w*m9yFOB^CH8yD=qR;(`}2)oi^seLyf7%5N#qh zzv<~^=q1OI9@Cw_Ae|qe{PLG!vg`Q$jWLi(>on_817iAMwPl9X5cKjJ`9MMiPwD5( z#dhkVbYbG8u_^CEer18p-7A>fqi8VS1z)6O@%&{(_0ry{%k2XtAmPdSM_R0&*xUOv z)*oo4L{%TX=egu&$nu4>o+xz8gcWS-OrfV7kR{?WZJVlDZ`?Aj-SHfJ02?C!WZ#J;D=WNu54gBUT=txI9Kcodpn<5atQU#K{ zY|vT|kc<~RR*as>TP#KTBs($lO)njirjf;mORqij{Pt2z6jdUnM`0dQ(GXYM;9k+< zj5Cu1wgmPsAIUYpQo2yj3%JmXbE&Xhp8JijVLsq$SJo}NOqifv($Zy;V23w@UgwZb z+V;S-CWmleJ9owj@)!U3D8Syo$+^^EG+<;XJeH=iwywUFK1(QpB-tcTNg&)Eb$`dQ zl1`A=8Y%v;ZMQx@N$}coT1CX7^|$_*|CfZf{>BnukTF;2r%Fx0y!X`!WMzvmX}}9I zL`o?DW|5TM`J9KXrKLe}T0~znwCIkb$u$jnMufGh`~Gf#U`P~-N&z&&bb)rbTuYb> z-P1|)c&Z@3DIR*c{>--p%lH!jn^_|Xg{te*8FK*=9{8!jE9Nu7RH7e#B|}_+Cu=9# z$ys2F_&!F{pmZEXpSNn&o=X=%O9phja?~U19AhuE;Aeqy?RHm1yDf|98T*zo@%+RV z+h(GtqJ`RYa@zv@X5k|;z;U+|eyJyD75qZUCjM&I-ND_*^@-`8;zIOn5@9Xkzn(GC z5)r0Y95s&nM#GP^^UZl|H&pY~YkjSVJAES-OoYNKK9VH(BH-6D_2-TIODnVoZy;$h zdm22cAGSfejdfNq$D;m~(GKE?brXlef36DIx!W4uOLaB$BXhF(XqSy@xECS4++T!& zsMKX*p6&K_M@T&=SrX*gk!p7MwBc10GHf%ob={|_RD}DB!MSEi=!f}1M*YG9DmCZ+ zeO05Z_4)umzi*VXVX&=dAy|~{Kk?X$`CXi9_hyy z*SH(WQ_b7o27ZK$duJSzj})g=ow3#k>6$6j*}GaqPwO7ax9zKdzav($zb; z{qV<}3J0JUYqSR%nnG$Pur*vI^^v&9fr{gC+sZg@U)=6~m7);Ml+3|?HO)byvRI@^ zpWE(+Sjfg>AAVcrui&m~xzkfT@N8qbfIA}m-5?!jvSh@+jH1K$xANv%!1$n^iZd+W zUVye>?~7Ykg|_ml zgecJelZ*We!bdTVnMA&TXndk<|EuCx5yZ-DX~xo;hqZB|--=VyX91Isc10%Oeqo(Dn6lt_I#m%&npS zOT-7-(^nK$xyOaX+2(hX=tFgRsB`M>xD|%|b}V-kbii;cUb9L8X1hv7!~?mtf@^J- z{gxZZXm7E1f|-*_TmRDV@9Q$+f{q3J>8vUgZ#T+%LSw4{2+u+q++LyKTqoOVh^YKf zxKhw3R^t$gi*C~siz{&;v2-=pQkN4Pn@Dm`8fesUiHhRuRlDTiEg1YfLo2*!k<}5= z05YPhiYTO-;iQxJE{SCj+0+IPk%QMy>Mue=D#&+=kCA%5Nvh!F$n`uD)N&5m1HfD_ zXmiEQ8re7tN~mS{R$e!cJ~t6?elPne&8A7J_?U55ZPv1G5qRd+28^ab7Xl@C{M=PJ zu9laJOyot3(46ZLeyaAb?uEPOzv$oGFp|5CsmtothO)IOv=CsCCdP9Fpk}7wa7J=+ z1t%)U`9s7caA|}UcJVKgNEVsQFI;A2NlRKeH8NxNHPc^w(*(Tuk z6YQLyI3|siWPG?~|Jx?vg1_Au(@W`nlDX~9AK=QCNK^u zzD%hm!fz6N>xK!!H=wX;4|d_XA-4|u?Csyh%{=S@a--DQ%Ixxy1$PZ{w7fWP#Y|Sw z#Vr^@zCt7MWpc<+SYC64lk82^1Hd`%F?|)IZBtOxohqz@Pv!Cr-96eWr4J>`u0Rc2 z=0XJ}OFod4Un=!m+klPfyAIj&oO7E8;TG~`;;}IQ_`>15;Y=@f#xv-SwJ8n8ECv{KzA1=Sl!rqk#hdP+pSu=S(niVv6rO#7(yZwTyhr&6-pdT(2^MTq+6lIxAS0O%3x-!Lid+{e}U37!mv{;~k_`DOS|sS2w#hw9{H!!u+dy#Gzyp-6on8Gl_re6Mc`o02 zzFsj1%|Drb?~Fsbjv4T+G9UZP$0YklC%Z|yD0b0L3>nbZ9?XjR-&ijm?IomB-{@xO zY%SDIy=+a$;T?5Q(s;7+TW*A}b7SU(km>KOl+fmE6^usIEN}QAW!t;dHMaHm4 zMzBfM&?CyQHwGk$N)|Dy&&lGrL3OPpGRAj&yXppVCG@EG{W28QoK&!-J#d30k8(_L z+6-C#>RTs$00pWDGakpK5NHxlmd#om&M}f^#6P9WGw;ehsjFA!?Mv#&+9E5!#i;s2 z3ag(3u-ILR1YEnUiD1`u4Rk zp6vcR#c~sx2JA0eZx#q+7BnGLCX0suj%SPh0`1Ti7UyE>yapxWmKJDw3_we%=w*q| z9;_plz6d2Jb*o{RSl{=KckOIbQF?P$(K~n&bq14V6O^oznAF59>BE29mpQsvjLd!M zg<1W6-)>&Gk$a-)(LOh7$zyB1Af7)c+%kOGX~&_tk|f-&Hqqj7XU*`*0x7Fw_^xQT z>oneS+LXbwhvH)`@Zx7Q(Iz2M$(hjN3gb&g$I3geGiYyUa)QNBs;qk2LV*AIT0t?l zSr8_qEOSt;j)_i#e&jFE{*N$cV|5)&^m_u{~+yY-M=mI>z=(=OzX$)kz$FxiZo5Dpyyj>)hayU_uVgL zdOCmp02A76ce*QPfAFCM1hX#KKqo=b)pv+o89lHwnyO`e%TS0*=I*L){A$qbQ@rO7 zi+b}M#u6z3sqUSo=ge3swv;s2S6EMCuldMi&%@i+koMM-GYx1w+Um*o27Bbu_R+U#t~JmDMQ)o@E3TxF_)pK6ib<); zh`E1DU0Lx}8M~=b!Onkunrt?3?pwghu)|g)d6ViN=+STNO{{<{>KU`5WwOdu4Y+8W zxbbgv^;XD;HD5y(2Qq+#u4&tWY`*5({*5Y!7!X{ zoiH>Wggf@jmUrIIdwu((0pZ3TG`O~=4(quiC$s`V8(%-Wb!&P?rI)>>< zgUu`H0=#y6v{D^V$5yo& z)LU?RLG$r_Ee0qniT*sh@!*?5I6eG1HI670dPZtM zpUj($!}jS>>W(2~XOTFq>-#)8(Vc3(cClHvs<%dQWZ^=}*>MqUa$u5a3Q_7m{MN*z zQbV7+NVruRvwI;N@5r+;OffafK0RS zp)^sY8^Z}wrNx1pDI;CEGe-g_D-7Axjh5 z$p@9lK_k{#-7zCt zk&Yjz&wv`QIH2ZxQl+Mq`mMMzW)?iJpFNe<8_3WKT1SIt>8x0ps>lrIy&k;G$*9=7 z63L?`9}kk_#q+(=zk>=3j%uV_ghcyXFdgkh`(zG%Sy5i4Bx2x)cn*etU7tGpV_%eD z`KPYnLGtnOVD$K66)vOWgm_|+`#E}(k{m3yGklr@s_hN7U0p&@q zd4rKAYTg5Keb+R5yFSgWkbd=>&f0AmJve^-Q9Vm4EUZAB?7Ls~VbR@GRhT8F6ICi=bHVl}YH~Ec~!(+cRFaC#h|7){rHf8dBYNJ%6`*h{40Ic^v-Q+a!%g<8oKi>)f zr}NcJQ%#nbimVO?!n^_wvNNgT7SLfntu!wvDP#z>tQN)WePPFf6hzyDLy?m9S6v?e zQw(`k#xgH$7+%cd)+{S<1a>3Dm`p!1e*E8TsuT77!r~iad6WP4lAA)Vq+vlrWHQve zxW<38jIfT$*(XnKg!-@JA~x7jI^t@`TrNXR>BMN2)Yt${wtTf9ri=P#okCpWh})aczqn0{3Pm<6C}ibYtG7N@!QqHpd5OEpXPZ;u;5 zHSF@e!!>%;Ky}Y#0kv`^3U8fcY!VKn(JTd{!h!Av2!ngwwk+N_^0;c9yvMq)#Y=l1 z9iOqFxWTcnt52fSAC{L{@vmZ6W?e$8i0W*VIBqd5_>G>4l?Yk%T-(d|W?Z=R3A)aQ;>qp^9E zZ>Rmy%t!g=c-b7^JzcQwrmrSXah*LE-`!&M4Ub;&wjgKYy0T5I)LnAt&9Hw1sWaH1 zB0bF+^0TAnCt|sY5lnX0pB0B!FVS{{?03cokQ!Nn2IfpeqW6q*h)E9U>K}tQEQOLy z`P3DFIj)4XWydq6P>5OmV6Dwl*m?+ha@k_bueNyJ>NjZ`uE$F9-y~{M@>zM->l2{g zDcos#6XB6hlS0aVmH7X>9LuV!zEtfsb)Jq1d!R1y=eA5Ua$&)5{#e&g?6kSiQd{)0 z0lh8Q8OQHJrHDX7K7Q{UMFTRZW@R`!env!VjO(?U= zR+&__2qSh>WEzU;DFFzq{)br~!cUpZjGP4n*_X=f*`mC8JTRTPf0L%5d?U0e6Z}l_ z)dh`=(7CJlf=zT(Kcz760Ct|(STaf3Fec0{{e#Rkj;M}p@&{vD5fo{b7RgH=L`C79 zU>N&feSRb5if~f|ewwel#+JN7FUUsasrqeaA5~Ro3q0@;U^G6V_-wg>`06W8EPsp* zFk$!ll2o#`L3N<6D)fbk?W|$Q;Tpq|W^ZS|`iqCP}pSPcM&7mbGA?hPxHr(5>5O1eS%b*8}&kC7*Y_4De8dU8z;K?6-1y9 zM(m_|3kfP$K1AXmVFiCdm`b$P!ps^S9p2Of$@ds`3`%gHpU3c{e60;W}WD1&CWIM!q~H`iVS89>oIa&Cd$V{njaay;UA_uk%Dpavm_C) zg2mST^ke6&(4gbtQQeGfNuS#Ef;PZeLPLyV;-xH`_xiZ}UYmG{sL!5*J<{j4P2clR zrPl$oZl|6-X#S^9lg3VxYO3gS()5heYg~?%RIorNLiz@Sl|AedS(nsTG}4)DYSS$; zn(~OzlUOKT%K$pQ8qCmeITI3 zplD3weBbJwTs-`KAmr%BY1%t{P!fh@i;qj#zKvhz4Fymms{E#(=bY{95Ud@ntdAtf zgjsQ~n*M1D(@i2ZAy#VW~>_#(1Lt#jbC1kgf&CvTLYK z)+cnOAx}2Ye(h3Ux7f`x6C7){TEk+fP3lG)<1S#MZDC19u7|>rxKd^npYKY}Qy;y5 zj~JLg$@}x0af4~o_>=%xYGmAYUO{?1B znz4U9X?U{yw_%1SC#Kgy?{?=>%FANVD4CIVpdUNojN

`|`XC#76YeJI=YVHTfrg zooi@?pEA|xFq%aiEqoeuCLgFOT%AP;?r$9 z>d=B1!iFMZ!NF={-n=81eNBZBGRt{M0X#V&Qh~;AfT_`C7-NJBnqO||Nx0n7gS7W# ztPf*k7rJ73@wl{Lrn}ncurN1tq!+t zV7WG|#Vei&@u}LbVS~1TX_gc;F3igy4sUXvXm!6?BGkL>_XfC?jK$1J@PaY;nY!Av2 zds-G0yiA94BEJ8k+zftXoAnm-$-jI}-Y9G8An^In-$hQm!Q zp@(ByH_4>3Cs%yM_Sw$I;HNLyvRXbonbNe&xnvB*IFuuxAqJ*f`psMVrnkV1Qm{uq zgfjL&UVxefM?Hw7&en0*O?|w4c1`SGko~!0KCZE#u`>^nfQ*Lqs$G_BgYJNq;;_77 z$BxKH$XPHI1a0l^j@X!U#I32sZSq)2mY_7Urg%cmnFaFyiuBh!hcEY%`|7gYHPB|R z>1G?PJ_VQ>bmy7QbuPI%uYCo~_LeoMe{VI(sJYK>q+5rxH(xIM)UWn|&&r3i2S)*% z1Cd!}&kfa=J?hkLsFv*4jmYu-b6lMC?Qx8FGBSa)GSClPJ5OfkW zHieWD8zPOK5fI06N}9CECx7E>yiB7u=cAd~YK6}?7sRS%!6t&*RohRPJlaXX zt`BRbU|sqc%GS!!U{PC{ZB3QDkkaBjSvhZ~6H7mVm4 z+Cuy`i0P%#hpaja^ZgdP-Dl2P3|&be_)9!R9|eyK1)r3L^Sv zG@m>wZF$g1QyNJ!dzD`4&Y>*1hKj=8>D63zS&jKk9zDnVD-U<^@3BAF(0*jQF5YiX@9zgGb=M?fD|Cuy?_0ZSHV=zXU zk!;;8se{vmCW=R?6XtjZS?m>yH;z_0mtXX1Gw*(FDBw;yojbOWRw(h&S)EQGJbL7V zduK!u_4SANkJXSN9jhxAOm@4a-7i{L7R|Gn@`@c+r4FQngQnEQzJB1}qnlT}+qiZ0 z8!gE=n2e`Oh-~E>R_tpL*7>Y$x=? zv)=RX>y&lbnFj9!p1ulh6XAQ$fb=DbaE_3b_ms%g?&8-U`Z6skGhPGZYs%FA>K@`f zr--tEIPy^JXgaQMLL(#XAy;ywd{HEcyjY`<{(0JwN)yhpCr|hxjmj%bO)OgDWv{gK6^IGM=_<+Zulgn z!^)T-iy3Fbs_;k7dPLPNT08YqnIPA^p%X!OKlJ>ZsHu%T$sX$C8P5tNkiv4@GA2@u z;s-I`pn%1w1)Wq(8+C|6I$_i`@rTf$Bf4VWY*fUIF2DG zjyHMy0b6iXFNqvZ#VosD%=q}7;C1*8^_`o3J{~ZmfoZRu1nxP7a?fQnI7wu*Em0l@ z93{GGlcwi57nb2-6b&XK-3`d;zxxpul_a!!*}0n=8*nS;N;z<}raXfK6e`@@eYVCLpb#u3fuMB(B)h3Gdl~=Jz%wH+9M~>x`UOa4^i&wXj z4nEVp<?}|>YA*HkOe6xl3y5lEIhPn%R^3)bCmf0+mu!!|XhuIa0(u#9e&VB=y z^5~Jc6#Md95eYbgaNk=xR$KOA94je=f9lX|B^GO3%7P!cQ2i(&H(nCgdv5Vx1xD!} zt*w$QZs&bZp3&|Lp(CeuWEHSe4ew?o@Zi0_7Up!t1VZ?8X%PCp%=V_CwBWCdaN$k? zgEjF{{UL;B8{(L1IFk}z(#MdyRbMk*usQT@g1xQ+s)HzT?E^nquT4tl?inF#v+k63 ztc8o^N`A-bq?V=BJ7>Wf^dZigp>p>+Qo+ll!x%z1v^1V_K~Zp*O|B@EZrdv~$tLRu z+qwL*r2v{6|0|c2sMt+!bNQgKC}Vm2gOl4XbQTIobX)(?Bj1UodUK6b%0+XC(DGIE zjXLjPJrDZ0*PUUE;72+F|6Rk? z)IBU|mb1K??~Bt8yG+GImbD4Ay;{-_PWogA=3sIW=rxOPxG~(MKUnF6d=(&3csC*<2jN+JMdn4X5y@jmv#+$5u7J{|H>Y9k zo{v=PI34gqHagMpcjIPi@FDO&mERQBun zUiz+)4T9H+8TsMhwXF5l*Y)Yw$y%MW1p5`C*BIPSHs68ug#t)al9 zcNU{Bf;&DeFXPajz#fEA&TVodKHuM)TRLTuY0h0UcBnXwkDSdPd|G+55cwpGmUVel zqt{bpx{B}KAd^hq`trRkg8a3|OUw2`aPCH@+T_ZaVw~t#5aU(fQ6H@-^-oqi0hwJ> z!ebo1=$JyXupf3m9y{`(D5L90gsc+Uue(~lUCR&=)GstN zxCMUsZl}BMMK#}n@^<*}GI-g!N5iQ!L-)}&7L(V{%A+SQTgZxy+c~1dnLu^Wy_%fA zW%Cj>Wd-hyU9SGS{jv;UrBkX53WV4vjIB3F_*rAqQ9g8`-nS}lu(m&J?KiJe8@<-| zq`cXDETk>BJ-=l5>D*d7u|;xNMye#meWX^f!=t3q?8=W zJ0T>gdv?1n-!`Z)nHq=^qIIS??_F#3NkkPfKGN0xokeNmb(qb~y6-m4iTz`!sOEqU zUmD9`854C%5^3C6#hmW~jjz^yC5%~xgax3~6#LNV?qE5-p3oghe`_6g!Op6RuvuWLN54^A;Xb&C_ytTbvDMztc%U)I~k8bo+Jfw)YPm)0+$ zFcldT!*vth&0q_m8hXv(7rS{RUvDg$Xj-(_Z24)?wQ{01MJOfQCWKn0V5xp}L)L9k z{f`j-ABGCM@DSt@LLuSwsiytE-|14ceB&aP#=fHpwnR?}nn7SBtt@8c^m4D(+syAR zKD9Mf$S1d>zGjc4tKfjdTL_hObaq5iMEul{VkOIrk|0Ymz50K+`tESHzrTG-QIw+g zNJ~qVB2u+S)vBt!YtPbQgvLnhioI2$MoaBgRBc)-Mo@d#-g`$v`+NI*zTe;TT#xJW zht?(MoY#4c`+nW$9L-qb_~Rrxhc-A0`wXG|fo37fvK$s zJ&+G+6FY;cdk>zdSlvwhK@p{Yk^L**@|6c=FZX6w&iLw-hV2i>3XFiggWGne{_cE? zJRM7lv*qcv1CpI@-0ROmZSX8CO+WKniT0)Wo)JQ#X}IU0W2X0doexh`K?jOkWpM@=9JzePhhZ^lXBP*VOOneMD{{LBuq zG9orrwwqFrEMI5Vs} zc&Dt>Rz_}hrR*e1cK1<1V7)KV*(6$)GTL>YeaB2|Ke)#7{bu#?TYB(^Pq!^qcz3$c z9(DfSiv`P55aV595BC*07vM$U%HLbhK0ep6XrvO}oZQ?cRx%jnSZm}%kl6c8x$Wr6 z!ipIuyc=^T4j&J+T|cuoI}Z{Q5`&8hJva}vq5VWsA7S|kR;*Df^+VjEq$RK~_)(gW zN}j$ayOq-QW1{5(RL6;4cc34xJ#XOEXH(@sEce^eZz#FOm_oEpg?rGChzRV9zY&ze z$MYiRKqO{>OCp)=++4^+eK&9k$Enwd%KGQ9sI2=uZS%(8Zp|ww4^*%m*($)>;M|&U z8otRUNngqlee;!^*UD=;RLDJ(xje86Y94RKCpN^Y7OJI^R|=D#Q9^V#~)2G-gfZiQVQ- z=kb^IzjaBzYbi7n*F}wNPgXnw-XY?K+|WFz#TVGQT@A;FYgBw3Q1b~0%AxH^p%xyJ z`w3u_|3HZEww)>06{~`3gkMlHZ!16IA46`oTGt42!{9dSk)cQHwi`+bV?>7p&7DY9 zXR`hIee?xOY#D((gq23z>**2=`?2(a?Ki|eE+}2+Wym~x`o@4m=jsWt1J zpl-I5rF)XCN2*fzRW&b4B0=XPx-0H5Ht9A?n>Z$?P247a_Xu3!Pvjl-pm~!{YwxLW z3n$a(F;B+-ask(F95a~YF+@vk&LlnCe;!)*8fIa5e19V%+n30bLWCC6N`XtQZPlbc ztHbQYYNDm3?luxfm^onIU0EEoBTMMWIp7*SS+ zx|Yo1;C*U&o`qIx(Tq4JV#axyT&P8Oe|T#;Mv0pWKTTj6GFnA1HAx?k&c|s9*R>cm zme2oy-&q3+_82l5SI*~Q+LAop+}ul!hChw?RLjr7$LnR_N=L!N+P5Cl2x16Xrka@U z@!R~hdYSc{1Lo`1oCDT-&cfrkz%SyLmc?-*(4WWQoWUiBr$@IG`} zAlWnTSo^$&=>+l>j&0XKKWt4lAUBDvixI-OokyGZGS=pH7l~sJ<*lLJ=sMX<_qSty z&o~b_>Igpk7@ZN9TaRRfMw)N}R!y=2R(*edF+TqR5lU|QtMX{rwGhvTVmn)+@`UlW zkSm@N+0aZu^UFI&7$;-)6%Rj1nm5Y{6i$%)i*r^>FllO zHz2Ao_O#9xC3wi;gf#~Wa7iq6DeGqpm_sG0=x!?O@#Aw309Ztz{|hXfhl@};nZ@~E zH>iVwRQaHz+96?s2g~6=YgL*P0`Gfi7qf_`J~34{s+6}mZnev2q@O2wxAZ~JPKf9E zxM!LwQ*`7{yGHjb{rA-ig(bn=BlK~M33abe+0&VFe27$h0z^Z51>ZlW@3Z+W2JICY zkBY)!!*9<*e@(Z#vN%zHq;uG@4?&-|x~UtVkQs18jiWxkai9ZbV8-Qu&n8Kpxr&5W zi~nk3l-!p*US2Lus`cX951eX>?OJ>2=77u-Z4+zfstR)bK^voJ&_8!b5A8 zU0uD}c{is)FUH%JX3|@31xI2-oy1~*2cT#ds8mqi4^EWst+cI%3In!CKtUaq)LE}J z%`L>q+Ug8EB|jxfkhB#wxxF5`ZJf`#qV4is9E%1{15A8cZevabv05Q73uluED9AH^)PuyMpLxuao&AD zHKTU{OIB;T3f{jC32dJ+`pKu#Z6F^)M%!GpR9S<+T1HMjFJGOg5g7Ybk#F$Ng9#Up zj6k#CC7i^M_KW1+ogs;oG7Hx(R(_|s_gKnXVt;j`BaK{F10p~km`iXGrMBLcL(-*C z;VwJ*)Q9z~r+9&7M238+EFhh<)-vB>D(`j9tJ8uP2fEAU+McD~$+eRYpYA?=;@5(B zwf~VTk6SgiN>wm1!LujB&1wJ2fb_(PUZ-rpJ0^KG_Q-c&i|s=2=$nA#5pCLE`uB4i z^l_ikWCMU}3|phHs1FcY@D?NEj=e;by93<{&EbZi!_(j>U8Y)6TApOO;)|yd%2c8( z>Q^Ca6!M4n*de*|`BDKyhw4D0p^Hi}S>T~_kl1364#Y8{UR)xKt=M83jG;bJ5+oAb zLQR_(qluWSLP-l&)KgYcRNlzL{>c|(K5=Rmuu=jZ0*R}&7 zLlFQOoi=6?+S^^S9&;n z0Z1=eCdU=~aR7w0=3_r$Iah=t;ll7AX^wQ8hZS1+KlXb6+=PXKS9DHd)t*oz>(%9E z)ke6gTG-M>7hc52h`ixzqdxA)@2E-Y86HDi9g+==eauReEq&FO%72L_l5{O0l6I=6 zJZbTux`O4ZgEm=l07DipbGk9Z@;-e0_s~siD>~O04;A63s zIq|SEY1hNGog56^L1h%Kz23lOy7ge}9-mSvdkV65tx2JaYHHUi;^}g6O8skohJ&CP zkk#Qo3{n@#a~XW02G3x>qR2qHC!=S&Q2H`|tTxO?1(sF!_VTAE4s-Rqc@r}-J*V-!96Z^))q1gEYvJ6G(9CD&6U<2xusW50&o z!1Bnc8|kCk!{e1FqSPFGFOX!cq6+wo-kC2W}wc{lI0Avq;meOw47;VsI*O`1HaXakhhY4pXcR8wGi`RhXHz<(sAJy*k2hyO>{?ifw z0dY5(N$M0`+}}h*kv6N{LZW*_&|@|`r`BfYuR-08ZPpLnF@ZzReyoF+kR@pLsE0yH z9ZMkILv;>3f3#~_KtIPjZm7inMjNgJB-)uuTy{z*j0wCnwEsL!VlnZdRCKidXA?U> zl!HIl|DF)b2d+f%;eOsD-0(dQ|52k)2!l-T7rLQ|_phrw2<b=`g3jfOyAKb3YZAfd@1=YDqGXh z@4ENi$z=|w&-FLNsuUCNgdI5#1MZh37$%vQHqf)n1`tr9v$NJLnd+UHb1KeX_a#LT zNYE(&yQ^aICrByXqFc+LIvTb6f(weU_Wb&{s&u>e@PnZ@^#8q1VpE(Lvi^QHz&$T3;>`S-*h?JjH_7X^nt z&nxq2zwomkr1wyrev#nx_t`N%j*4ApZdTYeMw@wRSIWFJ@=EV%<5GB2yQm8qq6x-* zn^(f*xaAgZz&?li5E0h8Q4WpUMv@_WS{IB8zaZImRd==$lNo$-uKL_Q^>em&rWWy&JvRAX?|TlPeRpYyGy|_!|Fy?KUGy%+62O`?H2L8~s zrY?%JX=_V!txjR%GP;QVNXe!V5((SkILj#irA|GIyz?fA)O8X1^VDz_wsdY0srO=1 zjMzER2D1~rU^-ArkZWhkOh6wj*O!*{G00ZHDo@~7r0ZMh(lTi}!$=c+O_I@xb@>Lv zQq>d3Iw?{VQZKUhr#9m1SUhwJ%tIA*2^+2+qkH#6ubdWs&b;#TUvBCa5>?xTeYL}$ zB6`4rsm7Bs9iqW1IdW;zCZz=Oeq1GG>n_RiqQM|Ighg3C3w{H$3q`(C;>FuJesRVD zvXq5*>XlB0kS9$ak7I=CV<(tj-@Kkwz;K%ruh;qelLzgsIKixDmecy^xJ;9)nVaJI zrBznnwfv*ycz>?exw(0QY1_Jm6=o-H#&_!-eYqO`HaM^8bwA*FHM@oA&|jVGueKD{ z2OcihtD61HyOy4`)>o&VPT{GFQQrXS9U@*n@uDQH@{QF=jn?8b)<=Ujn_Ld~`O|xK zF3%v1onn5UcBr%-1AJC|K0ilf;2rVIT%aeBjqZrs^)_Po^<#=h!-V)7pUj_P=18M* z)x7r$+tQ6QMu)zBSqSFJg{SN7#kj||i-QSr^GlN?`JZD8H8&pZRs1o|cOFXFcuV`q z;WsL6zG_xsfaI6>T$4q&oBlC-STZK(v$1spCG;dO45IXYObBLX8us29e&u?egS>lI ze!NzbHh}fy)4sK)8NL&HZ~7oUigecI4j2jZe6P~Us<%*Ibg!`87w)=yUp=CqgGLo* ze${Q({27@0Ua%-YdaZB)C2E>C8w82|X|5cA&0rfalfO;#u+oQ`mRVRiwcbjCdTg~# z*tTY?^b#bDi#>iw27g=L=P{8`h`%MbG#QpBu6EMvnH<+|RhHu+M&L1&myw&3A#39k zJT!6>vwT?IGQb?keHz{`aJJ?E^d7)w=v~M9*|l#R$%LpSKh{=<4|9n>**M3gv9G{m z)WOyw5crMRm4wc&$Iua}*D7p09TbpLQH_?xHNqxLnadLy?!XFWy@Qp*Y4I0=A(*L_Lgb|cI|ush~s@B*C%Z3oh)g} z2ZsVmEBnhY88*O^@zgC`AR3;vRtGny_)K?ZjSSV5G9)5h`N!%AI^Lp%<;{UQwm~ke z3}O!LOj$RIAIYh(0y-UM2kqg)zGQAOSPYKG?5&-L^Dt?=@luUd9Gn&+u}!{#yM+j2 z^uAgu1Ee6zMFXJou>BR2Gt5lwWwKl*##Dt!I0o(#Y2bb0_OQEH9DoRgkTuRyh;B}l z2(!7%%bV&6iM8@MP3FX;$&v=+F>$MP!~jUh`v)ZS)Zn&A%n57iUYb3q3ELW+@1;&SGZ^T z_lc;ifeFDrt2lvoTve%qZDPiU5NrI~<}<_8HijWm2HWFS@r2CZJ4guW`;o9ag(s3hj_us6sn!>LTwX0?MQ7L;q%$ zVY3khi&C%k^5tI~{4$+M&8Q&zlJGqDZP&9i+s_tI@2lEp-igQ3x8KSqxbA;Up70J` zT6`5}FIDk&f-9x_rdD$zMGFSsss-Hi5x;JK*@2Lw zDrY4Y&JNLuHi%)5l9-}tC^piR0N$_fqz-u^w}rpu@Re?W5wh%6^D@R-%0{6 zlNOootPkXS5U5ERGn=4k@OrB_L2sJ11I2ep8m;+c3sk@@qI+G5%y$XhB09=m)-Csw zGn>1ueYM9UbMEk!K*8#-cwe+PYHVepRa0Fuqm4o|o4R`;&>S3F5fvv_Bm5y&la)1{ zP2;|gF+d#m3A#0O8%Xb!V=qz#4=3#`($PJ0$vbw+fAB0-Ec0&s_DZba(AM-rw&k|Y z8|?3M%Q?~&B`$;cx`t2(wpIkmN|U%ICF*lZbfqipm$0T;$hny;_V@+ay4QnT@KR!@ z=aa*)tTTMa4FLq2++zJdS$rj}2s~Hg>kHl~{U>YdQ?CvbUU4AArw!bxgo-u`I6m*} zLq)Og7zNy1Ma{luQA=>&oe8| z?U(hOg(UHdEF*=V=SokB?q^6oa(*yOrTIow_M8ZwJ+y$~e=`4j_0JN}S=f)=BYifY zIFedpIRb37mFrO5fhV+59?nn7IHh9V#+JqF)8t98ri4oHEB5V8`nhRF%LXhxbUF^z z%XyrB%ejH^rt^ZvL&VFW2m?AT&Kt2KI8vZZe93GW3p@z0ko*jgEKF1Jm{Eg>&aBre zO01uc8A3+2jIAz0=v1DEc8T`KcVv;w&6IDbNtGzXJX_o1kG>7MwRvX}S*3ZUWyyXW zf6a4{l@~fizQ0JF;>}j?DLX8_;iKq>BCh8RQ;PW-t8_Bo!!jZo9u;i9BG9om;+?~C_+q%SMi%H!DxnXiL3Woch^RoYSn_?+L*9>sTjMdyg9 z*%XkC-DGE$S3#+GKfg_`&jhrGAA_>iU4!F0-UHBLg5;(snh#f?!PCvjWDkBDQ_e|e zuLZOrp1_Tp93-fPU&NEM(q;N`*%Ig+Qa_iPg!LZmN$_-Q%RWg`rqzxwSz3IGrI!SY zju_QsYfJFxZYPNVsNg3BSdgs!iyQyph4arZJii`bc5ZQG@Ki7ip|0cTTM3atD0;ngPmDvH|Y-A#qMe^22*Sbp2R$}mQ}&2*;=&xix57XVXY0( z>oc$NF4RER0qzu_vSP5Wo3^%;1?<1O&WyHFdzY5*Y3;uO!ZY6*tbZx}Steu#qAn!2 z8=#dLR`7dz_sK&A;US1MF46QphTS^vYItc5{g_Wd1&LFUDMMMGpO^mpHShY54GA+iu2s z{qtuOY&~$XRo%XJmwT4m#7b};re^K*k1uC?qc!#DlVUVwd2l|$uW9|gkKLS%YW=ee ziS~J=V5y}ud2ipR9Agw49rTp1{)(@LfoIv{Jf*<1m~GWTw#+^kL;HUIZ?V}3v6T%n4D}^)CZ%1x1B^L3MvaO0qSdDW@KPpPl)v zOat)=7>dBoe>)*BA7NZez5&fqCd`F==0uuY7Wk+X5h&0f>Iyr%RU|NN=Hvzx4b~y& zY9V9HAe;G4+9cc_;Sm%W{gN=fSws^cqP2Gc5I=4jS5@dg7TrBzx6#adi=RHW=I}yF z?srjM1G)>lv4R~GXV}usz~&C*?S?G+qj|@f&tP|{$MB0l032U7n*|-MJ4ec=t9gtk z@YndvR(P}UAKiR`RgmcVk36ZSLf_sCo9Qx`rF?U^+@|)j$HE=_x)vyX8WkON*Qb$blttJpJbit`Gs`|MV4F z^G~mx)oBr}gMylN$Q9ryxhM<{fgZT6(z#00lgded9n|&@CP?;P!8_1?f)A)u&xYL? zyV-JkmNi`+^nKTH+)S3PcYy!7(%*c>z<~mS9&j8T#md2zk~NG3TPTM`_9uxL{80Jv zj&bcl%~ZBT(~gqygLmAAqWUg#xn|?Y_Cl?=F`A8Nm$;z)#u!bUTkZfKDcsl085e~UJ(cW&!Oka$ zdN`^vMG8iXx?Owt^ut0_jGBN7liiNU=`ijW9q+eAJTIhKOL)-Z%Y8uG1<+|RmTc|o zn;aq2Boy}}jg#}#0iBXbMgQ@OC!ON{(d)7N?EoAo;F7s1&>Vmm)>9~SyZvkJmo`=E zkCZnHM7DlnVt%~7gEs3rhQ~wl3b9%YQv3kVluVYrmNvp@I?EWQ`BD7D$#aOB-TCXW z+?0xLQAFySAafP`ciq{yu|7nFynTmvwC6P3-Fn_;if^REFtt3*I5;}8<FJD&^&Ncg1C#K#1l%L(tUoLTaV)c|-_9jQMokVb6CLXu>M3MpR?tJB zQ}B~7SPW1U87yuF{S0?8ySZ+Q?c@*&pO$&K-}O<>=s^(cv0SbT7(fMy{wQp{1I-M; z?(Q6;TWzLaOPBVm^ZXAWP?p^M^Z0Jyyofiajs{{7Sp%phk_mm-n3oJ6`prXO9+WM_ zpf>X3NUmFL54RNowEUiXLHq`KLtuJ<|7Ng=IG%LHQGyz3#%80$a?^IvK$DBhYR4Lf z&U14$>t?@feBT)oL&DL1j3yS39vkEAmRLE{-4{M?MQYOpJyXe3<0uf_NTlNjFf&k2 z;aQgK#%%{~S{@TQEHR?IFFI=;N?F)H{TCF3odwzVnHC?6u|-Y-i*1drkJ2SrW?*Kn}&bh;G;e)dDK>Y6F$#9MB--7*0w1<*lJMw7J0AmX7L)t{$}0^qt5>iBH+;H+LT60yMefp?Ap_`8knX zDo#Qo*mi_If8-xxe9H*cNyA?yFVaF_^3A&Qq8JDso@Q3EP>Bb092qu$XP%0ddH%Yi#rR>G}W)~GZ$j_VZ z3d(M>%V3vCPPd7dO24f!((}-RXj=OP1tqRo--9swADY61ZZa5+uyJtl>k{lHa;lVUdHh$kcLVvI#-Gz*2uGx@-P53hTf^ zjnqN1I*l>~8#x-Ht=;Zqh0ME39I&)n-vN)sbeTzuz9>>nU%yw8A*mUM?s87zu=>y; zI@?N(WN%<`N7f>(kLVw5inXY}RvMvVp-*qrIqZm3*UE^R6Dz6Y zMMbG0UXS6v{s{ZVL=rgQCRs4zp3H{ z_>4ppOKYq4v?K;-69|Uawx(T{5(Zx&l`LOU6vmOQVQx->nmIKdPKJyMsIL^BL_*Mu z56_I{IF~~@J+l`#Y`DUn3ePot1#dp6$S?hl1GMZuEwtbjxvH+jQ z(=4dB0gusiH{C`|pVf#HG|83uc`^H2eFhYvmurQT!>=0jW|4fgX*?-mN3j=-14D7rZ{_gQ|ajVHF$XrWA{J;P0(YaZ5#kw(U||DFA)%n-4=;cEA-zhTZNbN!}8-0Zr0? zxz4^4?1I#zw{0)-1O0K4h{lK7>n*pNp}dz!){`sU@D_&Kj%+yWw)~ALRlCw61u&lm z4=YX1SI;@O(aOBXp*;;(NIaSnc)I_q3-G*}8eNwW2Pz_|cojs?ZS){F%_Qg_jnZe| z&|8p?y`2dYHL35s?cZk-Z{t{lw$(1Uq3Ak}5CotwV(qAlSbwQ$VP0;eY0S?v^4~}e z^mLzz)zoD6T?&+F2pZ@5m3;1pb3t-SL-S-j(NuIaXQD&5HJyKmqsFY*BFFY|-&<>D z;|(OkU#lwB-Vyb_E6So1Y9rvj0Nv<`v>2{N=YfYbfZHU!ek0jqUV=XKOR~Oq2gFJ( z#Fj@yj1v*li;x9oEPZXu+RYH%jViw$1U2zlh35fMGeN*PeI|^a4u6EyOxXg8;CQMIPYdai6xEEB)XWft%w) zrrG4ZhtZxlWdm0FJ{J`O49@y>37Hr`KFW7MY36Md%0V4bJX^R zBd|m)7PH~s#3{~J)ELPs@8rVD(oc90`m6;lCyUv7Otx(3W;&k9Hffi|Vr7AOZ^h3w zncW;4CC8zX|H?;ca7QVemVPHu>jQkYd!h(T=w-jR0qFO}t(m4l)es-o^+M10dQ@og z(7ap@_fzSk)1F>@3AOz4-B&@U`2gT@mgB@$*s&wYPt8}m5o}$yUS1bUY0Gy&IqArs zvM+tyXwH)|cH{cdO^0POHua0)PBG!-_<52MVJ`!p05Yxe1%tlW-!b+ujow2^J5k-LAR(}r~xfB z`$ZI7@npydPcEpgWiMy~R<=OC zgRAt4>(_GBVg@cf&p$k)Z2lZ-IHIL(o9PNEFy3`#1ERe+xP+vMk&(voLF~LVwR|N7 zP^fw`L2}7>R$38Jl|a1LptA`%@796ed(R_(YoT>_D!$c$?TMT?Vuba^%C)A<5(-(S zc?$d^o}XjINU5j^mmci(onG+rNAhuNO?ZW(VrtWTt6!AGet!2`bJ}yc;8U<0h@$jc z0Pa9v$I@>umo|3S`u`kjh`w#g4~PW{_UU^1M9F&_;^96EY*NbK zBAaK6w-bNaNDD=s`4_4TwlT97jxRzI?JXECL4btWqD|*TEciS~)>HNd_8d@>pAhNH zhQ*EDa>r2UHn+aX<>`+Dzyg*{0{{xi9dWdQ3Q-8W6cLB%JRg~Xn9X9Qt+@^_2IML2Z9<;HJ1u$^ zp`w%e&97n=6IuN-Npi9c(Yu4UL0(Dd&7KBBYPW47)+ZlC8f-N;fYTlum-=mmPA$h_ z&J-!RY0S;%8f(LUwiFEduy$KaKHA?R$~+4H|h^c7mmNOk=1)Hhu~%l{-=A8;{5hyeom4sB3O8; zm-x}_4IlgmHfe32B!i11+OI(%4G%~2_ArsMV#fak7zlFLFv2(gejAi;FZ3I8{?a~Z z>k<1c+_voBgAK7F@cmb~fZVVvAQ5Kq9X|}`gKoR}$?dcClgQj&Q7ip|8@@I_U^!1}de5{)e`1=-%@I{wLQ<9`k{ z;IDu5zl!y*NgE~}5Z68;+6k=7gS7GI$uDUc-$%Yx=rVrjWCrvQkfp{%7R?WAx768b zNKUJ6Y#y@20r=zlW3k+f@9z~2`bZHIN3E}A21#H5buuC6_C{#ujTCy_`t8hLiBrWt zYu^tF;WCR+6VQGc-^YKQAbFW`*?(`Razg%;c(+$v)8DcO zCofb(PrEYAOG}g7??iYfhH%~LXxdDh3tuC4z-EZQ+6nqI)Q|F;RQT&8sa46F7!w^E z?JpvA@<&Y?qdJQ?-InDcKlKsLS5~POo?B_;KCWL;EKKF;ZohA@YNOKHYGyz=Y#YBA zeCXI~F4360m`8i$>3%-k+U{~X#b&F} zH2YeO#Rt29O-87^V-vf3j~d&56tbTPleW3kS*1+5?mqmY0~|Gx``CkSv^nDfim_m6 zT1xPRz0dNYMH5-Sq|3>#!O;iH1s5P-!NR}Ts>(~it;Y6VxNuC?H$D`OM62GgICjL`-Z%!pcxM78qUkO&m_{w(+0P-lCd7ctippkLvuk?rYVaihkd=08J?mA z>5Bvy^{zLDG|dY?H41W>q0fIeL=t~Stdbc1O$rss|e!=7q00> zPp^JMQeK_H=uZ+@b%pMO@)@X&hUC(k)`ZDw=~0Qie&K!r+h*~ema&ZQ{=xg^Ll?aK zqil(1payaGr9ElYS$0loydR;N_V*$P5msCrPXF#3(dyHdxn>!RfwsO6-{(G)DBUSn@6HpmZDs<-n zD%^DNEzks*ZF2Gmi6mlcuhhuT+jZ>K@d~7S1XRDFo# z8$Ev5w5xTBwiqP&c6c;<{wEFkfqT_ybT|&ZIQ6{|ck^!;vjCHFuF+DABFFSBpWAHa zy9`5nwgHp2`ndynROOt^5=Vb3o2WbdbhJeHT)_0{@8voVzRl>WwHO(Bv2(jz@tf&I z@7yAX_OHTt18|+vzDp$Ubwf|yD zyt&a)x}t(Nw$H-rx8yUwysNuSmAh5f{~ipKmmfK;U9<5?VL3>bekxT)8lU&K8Vz0H z0p@#?p=-af`K(>u-{ZB+e1z=TaQFUf?FKD0#_{>%bq;?*NpJr}VyBy^u2{-jl0V_Y zB!En0Qqu1@uO9^oNn12AF=4njh}oGq-}<{hU!Kib|GLlC=IsZ1Tb#%RM|zv&@)2aE zunH#0lfyDni+YizF?t&0$4tFV#4i^XyPijD=FtlrGhIouU0if&IB1!Nop1}h(p_(a z(MC7ZIDPVl0M1af*Ak~UZfXa0wW+ruX@L?U{KUbSd%F#$UzgLr#3aUbA1LqTIwlX&!j>eX^$KA`WUX#DT8glsV zh8+;JK*ndje@_EV99J(xXR1}a+`CaAMuoy$UiDXQPFz!QezVpa8-sOgk>e<(tG%EW zL0YDg02??nL)3QEY<4RCuGqnq`Tg24$8Mw5_t03Ebm_h!#Eu9bd0TK3Cn=P@B?YrD67*ioIF+LeGa;Q1VxJ`Z-V)pUF3*(k+GV2egg- z>|DA=_54olv7C%Cfx$-F@K~1anp{nlV#QXsJWA4cXW&$|y6HU9)>bt>Srqcx?71PYeSJrssPwF|g zHX~JMHt0Z#BUMWhF=`gV7yA$@Txp7h7oVJ76JfdGXxSKR)hV9sJ@*UsjFQF{LEXlf9g;+WhVw5Mb%wVO9?_)xUt0w=)}A%TH2&qPsL-U0Mu^lc zinG7C?z`5~L*~%WTqTnZDyZWEMHcAvZT>4RauA}$va;39!GJ7p&tJeH?>K=WCqu4% z%}Pvi4kHH6tEoBCd56{Zc9kbCrmO&tr8_9u1Rufn`E~hd2u!3ZKUkhi6Rgw!TCMH2 zGO?NlowxtTE}AzAZAwR z=VxciY(sZ+vb)WuZbOA3Nac%|_G|Id95HGRBBBd+AVgcr`HonLf79V;%)l%SkHF@g z!T8qQhRW(jhZw8_tWF@XD>MQ2^K2-UtC2qTb`|$b!tS<3GqNB~(?nu1?Ou+pv6ux5;`5`!d62t^_-5_Vkt_HHhxZQf;^!hui zUWOkmxiRFc=~Xyb#Ma3$jtJ=fH)!V5?sawl0f z4k15FE*?ulK04V2vT|c$-QBbUz3;VF^DGi)IE)_r3ctftvR}~c@H}o$a{o9(u8xMn zB9p-~hCk7J@|zyBg@OVDDq9({sqR9m_$|Pv&b~iU&H)@ygYse>ZpXIIOMV%+Azl)|dK5LQ}M9hLrcUu!q zPp|C~vb|1zEig4yu09_<784QJBxUknE#WNrTgBGEBJ|FzvP0F*C#=?dk>Q|~KnQ_r z^1x8E8I_~}KB}=Sv%tbRibt3!`iKQ*-z<6ZI1=sJ=mYmLa0RuX{;P;yR=H%EXTYa@zwuTlc zDyx2T{+^AfTzPQiW2h`K~+s&w^$Qb7A=y zt-VF$#c59bxG6kU3+&eA9DNj)cN22Cy_CAhu=tgTHM=x5Uf zB8%`RWZZ}lEH!N!gQ|C(EmecK*i{WjpOyfLb(Z~Xn?LU)T@ps@3|I)IiaGC<0*g#-s;EEcBfhawK z-q%X3(?8|kz)OYhc_XB@=-<#S*R)qD@HyzdXdS?B7G2UK?jesHr`Uxd7n)KsZ_&vK}>EIMrXwR%r=XZhs4jOArk=Y78<;VkzH*CapS1KQibCK#*E zyG}Xgi8?%gbalh01{puc(=?_9_s>j1_`~agv!b&Yhi?mn>|LN(rChr>^_z;g$h+<; zDPbo%^aOk1sbC+E9JgG2;sBQ^|N9N7N==^9Oa5;9mb`WR#6)RzMaSUEq?tT^Gr%;R z{&F+iRa?Okb-w%_r?beAzf+KJ%Q6h{44EGt%*K z7AbM0rnwd&uL7FwH`pYf(W$sqwjbV4{Cszs=xm*ztq9_~H zke9u5xCH$eqccMXWO`nOBkZN>Eyw8Bne}q2S5`NH{~Y}iH-PDuWb05Q5FUQtrKKGv zu*h|v;^%*>gS?G_g9d~0j8(voA@41}H`7LL?>=ef(_LYI9V>c$mL>Mxho@7srvOiI z^H=%)yFA0FR%{*D06FlaHsE4DnRjL*wk;$sV_d?^7}(|L?&1ozEMLtBR~h|gSc_>&hFGJ z_ob@-3~7>MCqcA;x_5{0WD}797x>44K4AAx(wy92eB9@ zUOI=)LyUD_hc0-S35N2xJ_pV$ZZVy%`>1$1hhhc`_bd68ak-9mGL{*6M_*d@xu5eA-h^GN!ng|5L1-%xFa3 ziNA)HN)N>p5QkeiF~^e8?;5p6P=^nJ5!}Z-4h4Pvu=hkRJ3b!sbtkL-k!{)OWksTX zv)AoM{{H6;?i5t(msdoQXV?fl7tf{r0Tb`o)=CHK@zi-Ly!$tT&Rf}Cqfz7h_0V#g zR^K!Bq{?>m&p+LEvdf^jgQNdr>JeF4k^5EYIC^6g>yw%9va`-`!1~Wv01lWl!81!c+&xze=Z*i-nwHhsMVPZwm+ryrK_}uVq(R@j%J; zv~G%6jS=EHy%#Lxi_@$*q)uH4C5DqEYGcPqA~vt1t{{BzUn;M7*= z9OPD*fU^+!v5wtrT{1vb3wj8>A zzZu|_nD_=f)im<=11+q9*Uo^iuDiaaeDpJQTzMUNX(seMp0k;KV2aF9LJj|kXP^oZg)=wL&G<RvzI8IS0!uHSWM2TmLGuCo275uGE%CMM<) z4%$*51?~ni-kbs~oVHeqzuabpcVVGMA{vhldb-5U^bXWw9`iIM(JyDP51Dy`Tg31%V_pGdbBnwQEex*P=6j^YcIn@Z`M; z@;5bWQzrDP_N5ClLU^^lEDjR_j8*{y*EG{m1g74So!T+P-7r0yQc@tK}`z?#X_;|mV5!i(Wi5$HIRLa*6FLoJht7+7fEc*T( z1^y9#AYIY5g{1ki&GJh#sM)b>NofrKxw*AN+$I~vGBm(-AxBYIQN~LVNay^yFfCck z{;s3(y&kDstI{U7SJaBH9rSY$FUtX5U8jw&qc9I1*c7<4S@gB4gT$ica&5j~c7!VF zN8L9OFQc_6r!L6EYip>wFY&Y3#FtH2VTCziabgH5%8h;VsK`rq;+<7_J^7785gQGR zf5XZ+uyB;4q-eTS;_Vt>-|;^X6JE6a&`BLG_V|xC_or!9Ak;kAH)hn5c~|b<+E68L zbvF$lKErBSHSfI254HW9G-9**f?DuD4pG1#9Kx1KsyTJar%fQKms2y?-&63UHF8nd z!RaaGQ?zt&DcpHfy{qL~1{wu!PE>wL_H9wLq9V7n?R6x|F02@c~6aFNP zkXG?fDdF{OX>ax4i{^{kcHTLDvZ)qrY?gR=vk35UHEq-C6WB;uz1Cm9wqmP!?@7=C z?ql#`NBybW$SJP;m=Q3s^#~tRZ&eQ9jZ*YoLnb1;;ce!btu~nXKdPdG^7=EUNOxd3 zqhAsVXX$284sofsxbiP<6L3EYHa}}@`26U;02CuX%t(IyKdR0yBn`+89EScu9| zq(((S1*y^m5*3A`s8}dcBVB2sw~$0dL8&4jortJNjevBLh)D0f6M73IwDk5qc<){7 z_xcY@O0x6p*|TTQp6_R37`cJ@IWNh}dgQ_8Z$e8bA{h2M=;^koMBxd!$&aZ2)ze_aSf+PHSe#5H2lXBtBZ1yf1dWcTCPajj>F?}K<~;a zu|>ozHOMX(r9;F5`f2EKxS!ZkCd6SL6Sel748$JISSf8mj}nyL%*(x!)1E-oV_Z0r z(p^!Z<8$?!R@0uOo%wmwbTRn4pKfuY_(CpV;K5%to1<93dzO6}x~;1QDS{i%9|2_V zL4>Sb1E6L^)}P}-{N3PR<3Q+{ycZb=w(kc{_rf=vC)?;O+c;~KW(b@2Za+{^Wtrn1 zv;O$UU$smw@~>i_aT!wAJ*&?jr6qu!(&atf`a+pbofziFQm4d=c8R0<-9UyjFKZ51 zobF+QgKn!-sk-9*;n!TypW}h21anA?9|X>BU(WPLl=EYU2{f$>4A0LFZ1o32DZ%0UtxgoMrPSnFm{S$B2j z0XOW1XUDpdk$nmkcmtCG(e}}{G#OQJ8~ebRapS&3T4hqWQleQOTKN@vgksGO<0N(#s!G0Ec8^XgYsSw5>+y+bG7{ z|BN*8>A$nJAAs3WW1e*ldb$R(J>hUxWou}UGTa(u<|C!xQ+EpWY|s3oy7Y@4XMNyw z?u&()N-g;?6!bzmT%q*qHyt01yZQkq{zk>|z?Dea>PIYEv7%d@|_ zi3w`bM>Zcs+Lk0QW+jO?b-5lje`JxFk}8vJDYyqZb~NGi&Z>;D1K!W&Zi5L}`%J5& zGVq-+P0^8kF6h9Y8sw|nz}bZ@Z1Wi|MfK3@uf}tQ+eYIU>M9S%E(4equmYScp71| z5K$z$&Rbt<=HayItHWhnXCuf)f16qmCeXT*6jE$hKaob`Oj+WD=l*yLfh69B9-6*nhXN zG+#vHPy|{sXu58Uz?zG>;3E{{9Fuh8oz{i*3mIR{Wy4q}LKaALH1mK~3WT#df!?fu zj>QUF$~yTAE+&7lR3tnxqWqH(bpzKtdOgm3?w6i!O~%z zi^V>jCdYT_s6jTB=Tv9jFc-peIkjg_U-oTSq_A7>igaEb{O3VHsp^S_2Wq6(hDj%vqeO;U1&@F1NWIhqUH6>}LK-M$;V3ZdT zt}nIiUUcM{HHf?K)modOW~pZWt@+N=a{2W4WzbDT!JQ%AuvV9>JJY|CwA1uAz!00U?U6{?ahz<4)-N6+>bVMff{NMuf~nu;Vcb$(1)Q$e=_9#*5{Xv;dFOmiO&zlmFD5~ z%uwd)-8V6=F=lP7+@gDCs>mmU-5=SBYa{uCoDp4nwBMp${ED2hba;iw*o5L_$8bzW zw$?J@47s0uBgF@CDfJ3&z99Gt^Gf(^L64+13?XdSfS9A!SGl$xhzLR8uE#nLQnn); zj~jV?yjH$QoUe=o;<*yquIm?*26(#?derJ2jI52Ka+d6VH;17at-5>*H+r8&;PPD< zo=qbyXc;-^VKjJ@mkLneLylt_xV*C_l10wic3hp`8I_Tf1fRl zKPuRzdiPp1h`{+BO0+CnY0K|_?ZDz}odD6?C!pjBX?Mye*TG5uK3N58yu)|mq?&u< z%K;4(OEpQ+y7p;ZH|NFjN$pBFeKG@~u1o)2Z{#7S?wqhs!Gb+S#G1?Ss{*(%-Uhv~ zsM@`wBT11E*t5DU&910raX?Zw^!|m;0#4LkOr=*xVMT!pcYl3N1-^QD16+g{A1xWx z9YyocD!@uFO8xx}h<`d|U>OQO)? z;loj7G0trZhhud&=VTIG*Ey~p);?>kTOtaX(16aX{GK?jwm*4fW3x222ti9cU>WvW z<3&*rjdg-Q4b$;WTB#Az^`m6aJ!}{$V;)u0y@M$!8l`0p)oW$ZMn&l6E3!yKC_R9V ze)f7i#h(~U;l=akoxN2lJRfKfk;q>*@s6WTsq(kh=v>a!lp3AGMc>zc-LmDq#^v)} z2M7@cWOu@SV)wiTk_^IH`_+wWg{nHyDqu@X%~{ja0*CtZH%WZ|s^T&Huy zx=`?{Y1T%Mq#~cgR)q3PMeu<{U5v#i4sXkYx7q|ols$E_;Fg+AdXC*Cpm{IPMJ|*d z+|wvjW;sd{2gB%dT{aaS`;q2bo8#gZB1FR^o8it>u4TFV$amC4J#>VOmHF1oOmO>4 z7qQ&oY9Ye?q8D1aPf&1Fn-CK%Apr^bK0sX?#mx^yLlI;%?N#=OXe1WD5zBirP;%2p zqzj`_3fqqFDS{tpu6}&a*w_cZ995t&P~Ukicl7yZ^ki$=(D?S-$P@A@L@Bq5l0XVx z7mmjx>*GmM2<7z(N5IM3b)ti_w=3TxCz5zzXp51wj)j<$u z4}s5Y7as~Cvl81B9&6^H9Vq!}nHKbKtEVI51`_klvK?DR{M#qe_3G) zI2v6MhF|6EUAxvlwK}MoH!mgXK}{F*uf=cV%3>ytoWJIR48brtsp6vb;Ku2ew_7{<*geIE7g){OdtN`Z#zC(U&Vd=hX`NMODl=0*;L!9H83uDZ>Xu@Lo-q7IO(%N@IS(Qzlb_tGcLYHNv7qI0hp7Rn0Aw*We*EJaJXW8yB>~Yzrb8hzdO(= z^?=VYBGSL8ndLr9<&7Ac7I<(22IfJ?`4?2|E540ob`#WAe- z^Z6E!ZiWh~dt`o3RZ(8J52Pq0B0Ve5dMno3SqmmOx`Z?tNuj1n=0W2n_sxAwtq>bi zTZnhXfC-Q?=GgmDR<+d5%k$gI;Ohad!fJtO=Uq40jWY@OR@VOC939~dI~k`5AUC@-kuG)rN9v&oG_KD|(`U-FgaXCo`# zY`A(;xyls<-K!*znXnpsF)i5d`o1vJ0-GAU`Bo-+E0LN#G{FTE3c3bXO}l`ZTObhv z=o%+%_37!PjP)W-XoxOha*}(Z^;ZS_wWM0%B zSjN$JrH`zlW*|9HxrMyCDxW1nlYVS)I6M*(B$C2Cy<*7`MALo_6<*8AT8=Ejk-n8tBC<2TjKQOQs^KSP0J+U>7XS2@G}F6 zDB7V8Jo%slE&SKKKv)%bQqx|Gjx9hwZB^i9|NL|nKx_4rl&xwyZ9aue?l+4bT> z+&+Da2-Qm8fipqVu3uGdWqG= zoy&k(+@+ib;aRgynDHOk=w(@t+T|;1g?*_VRkMT9*cGgWrq~#JG#d3%&CL7L6FCZ2NNVqkB>S{U$qD*sqq|_^z7Iv!Zl^DJUBOa6fDy|r zI4rLZhsJw7p>0|cemEtr8pe7cW?mSmOZ_AJWOb@sK-R0U`xJytzGpwUfVwJF7Vv?^2D|^NHZc}vF$}?IwL=Z66EtTG=WxJ zcrN>gG#0WkRd3`rtgi0MOx32a5;zu3t0V}TbXbwUHd~Xba6tizu!*i^_I@pt<^ulh z#L_k*&8H(3TD{6-`<*sXi#`kwW{C5dxg({fM1QvPK#&xZT2C}5+>&Z*#t#X_&<|Vx zSg}KP3b|Vm$UU+e9%5vecU?)OB5tlaAN$!rZ8vLTV2I=>tYC1_`?h|O+Uds21A3^n zgmTTcp5gTmFtUW@7ku%X5yQ@m3BFxTtJ6}1Wwc++Gz`iD#X@K^9#)=fYXJqgYYORy zCMx~ceA38BgN zKtGtnig2*FRrTg4LsM(s#(?k1=l&OFoXL+3$*&vBb+(%INGSZXz`;BQ=F+kK? zIY%qQjIS?}a{6V$l6YfAUmywE=K2|v%F*T>xyzkdz0W_xmsZLG;#k@DOpDN**AtI_ zY=&7v${y-^^U4Ay@EeJ69qSNi@Wuemn-Z5nm}Ib?@@qTGAihC5le$;grviSho_5As z_3&Ve`u4s61Y(J>zLFR@)H7k+6uXLW?^{^2gmI~j9b*-%Iyy+tx|v8*e$OH`A=vda zC(KVAeZOCa)?wi{cF9aMUMIuyvu%6TlaW?t-3Vsfgm$A2hdSe@8>Qq@Tp{zX#Jf8A z1y#1PJ}%ZXA}>P-bHKPz=zQdTS7hxRq_4_so1q?g@Sv^qD4W+@jNQ&j*k_8K76%bc z&mxKK%&m6qpT&il@QHjd8O5;#sz1?dAsc>;fPN^NB8l;uj@Ib8x6*7#tYPPW+TO@r zR7Wz?&|amS_m>u6%#=0}H-;HScWd~oK?KzH$=dzy!AWO4auI1%5tbF2gx;uwPyV>U z(pyx_=&N{kwi_+UVTJ}o9H8N|+J+|SRHOWi{Z2NXYk4<~pfpxyv?94qXZ)(r(*i#@ zXM9Wht3D=hWQABi*YiP=trXOsdW*AZ23|3SbXg!5Vewbis@gg+V|=?s&{~HjGex{h znsB*f8O&SgG?-6cfMVf=-wUgQMS*@cpDd~dD;T{4BJU-jtd;5-Jgd2}Gk`HBcavDl zy-0lg2|d{a_0bg_TML=V#G(T97QcE>2q?N#d*FIoeuL!bR9>1QjL}~t!}opCJL028 zYs`jm^95n@>Oz*Rlo|qU-nIYCaBY5(%@xKB)&;fU!dV|o!VpI*o^(bRE`D(KSzZ5{ zgyD~%Se1C*Zd{)K_7^`o(iz#4a)?62Z&b+=_)lEVAnRsc)C_sAzi~9fVI& zNHWe0XTeY;ESb4TbHwpE;$TLNcE5LX`^_YIsX%W7ZBklww_HbZF2hGj!KP{kfB886R+1uR;~yLy56DY z(yY4}kp?MV8lm;;FN!X$^E#+}W)Ve4aUqO1WdvrF&=LEZssuGRf9VB;*ds|Ec2l3a zAnO4b*e!UfgYC^6okhSb`0G9nH@%-MuMA%KyQC!eGZz}nILgG)>n&|U+_Ag|u5Z+{ zpCUpdO$*ObaRxBtrX{H(qI^R@9KGpNyybjz-g>H$6@GKZ$N6};uK&}nL2G8Lt+Pq@1I!4t z(wBM$sin(W=`+IRg>TwxYe1-ZWJ8PmK9PNcQI>rPAjky;lD&2X$5;GWnn2;R)O&Us zepy3J8o@Wf6SZj+P9%a-Iln-x@uq$;40rOi@e1*!6zO`$5=0{vt@S+)(&2$l*_rKP z(AtfbMPffRqh^Iu#hl4hyV?I_Cpxmj?FrN1J>klzoj-}9{%zkpL3rXPD`!b4TltG+ zDUK)Ho8M%_EDmzlO(4BD<5FnW7=#>38G@x!IYJqyi>U}lb8fr@&qqkvZaTIVD1 zZ^pl_v>f`k&orl<%GV4v9<})Ga7i zkc6(68t|5rUR+}Nn2iXxh=KRGpxwYWVAE(&bVELa+sbAqLx46V5+{negnq(brgub@ zsS{5;Srs~Yr6$5>Nx|pYBxFR8d=)efqpj);(Kj{7xZ6AkKg2c1#0^QIdzq!DxTRwV z9;s<{q%!`VY%DlrV%RqL32i(D=^5YwDRJ*JrS=zUpD$^RL8hsbA4zxU87vKCK|}hq zY7r!e_u1KS|JrKy619{nQ@OP@1S{>m?7!53%$8E!6#PzeXD;Wn4vG}s+I{7A{LN0J zs&m(uidzT``1n!tsN5u1u4>r6mdGfHVF%9O(xh1c*u1oRWWEVf?&!*68Mq$lZD$&W zvx+Nn-zESS=Hk|rj}Urqe{zIAI%q5Zh#hsP-MuS-?qB5^LTM9Mk1lv$c1*yqsB+oR zZ2WVKC#5{vNSEX3dRD{s_*L_G7}96o(twMbLtrgZ)UC|<{ii;~8ZO&tTq-1{?zLVh za^2V5-V!!`Ue5?qjX z!H!2!yVOyx!<@n%0ZSP4)$uJI_?9MZ7u#m+V|7h&5AH{}#8~OHU)9~;jN!VT!TSC& z5=B;AS;!hSrW;UXZcN@`XI>%1P%3j zgU7rafHFc8HE+fnrloX7VvySIexlabR7b$pEz5R5KYBl86?`d5C0 zdG!2xms&LlH*Sd@3G(v&!S(x`a<0krD^FD5aA)D?3|#|zg972Db`g3-PLyFzF6(PR z@p<)f(y}1lZ!*2c!(!pWizRUN6Y3}y%laKpe`p`o5nDLlPG ze_bV|Zp`F;OX0e;f2enMNsc=^Mh6J~bW+&9ku45p(kd3XDd?J!7q9a@s%Go*vD{7# z-U3@Ow)|_B6V2qCl0-7lV&V2DXUDtVYNJ|FCSvclD`26J(ctyK4N@OCYbxU_QDwct8W^vb+I(xg9SXsF;0i_o;8? z!>at%xN#)9dV-kKOXR-{H;;Pe2il(oRAsjv2IwXwl-Q|PNc8<@SWGLM7Z~XBY%YgB z;nzhlC5{EIb|zk>Ug zGz=OW!(4UOTD}1B$J;IHfUt_cH+4IUSa-JPLDb2XW2}dcvXcFu9X95_J}E6oakX#c zJmVLnEF{~qqRhGTP3l>YPQmSH=*BV%NE1wNZe?yrh{FqLe#Z;3UAV-X#&U;G^QGv|Y*MV(N z-61%CzTCe}R9rdI&m}K$LH}hC;X&{4>&%tz58#kBL!%7BX0K@y)Uw0=#2|x)-51{Qf=a2^ z|CbBcP0AlZ4knc~T>YIcyApu!*7f;mmWH-M?DDy4ml<0O{3{V4r6DGq;b%*sYlS7~ z^|?}Un7at|kX1FUj$m2Z&dcy}9amQ(5GBUilV>ORX95y+-^=F|lb){(>`4R)x+6A_ z=vJUUtY$WLk{(`Cuxmxdzca0c6>>s8#5*%v0xO{MX{}V#Iq|%bg3gbCz(X#7+dZjk zh;-7y8zPa}@J^=Ta*T&`xR69ja?3*9YmrV&@$|dehLtp2;9jokaCXC$mVbuY2qBFV zNfSP8ri-TczKMTzVVa?wdhhJ|@{H4*CGdmgwDid_(%CKeT;*N_&Pu!1p18lif-JaD zWOaE~nQN&UW-6cl2<2v<#+z281p2nU%~0V+n#m`ZqH0(&qdz(GBE9e)5M@%1_ZW9&p{IAaQFsml! z=2(U8*?KI0rC89CU&il&+Sj$VVL91~AvW9~MoOeYmFN1hB)bVj*6wc=V_Mdr8H)i% z?VRP$-E9QM(PP5H=)`-5onbR3eEZB@E;l*?ga-DVT`;_ZA%tu^!3=MmB)>za>}X zg#Um6@3ov1=ILM4o(>Px&y)tH zvQGP)xrz!`a#6W+V(6^5|EKmA(So+-yuyw8H1)o_4vP~Zq#U!36LKruMVl&`I*VSb zUtaqi@lu_z1Vr(LL-HpCdo_GVF1cc5h7#i@f)9q${(&%YgI5|8QvQ*p26rF*a;WZ& z@;{;9o5EYtw;!dmG?y>e`pn8~4wNkKWNx;=;L8UC1v{<%H)`$7`Yo!|QBT_zbRB5^ zlazR(SmjbY<{;8J|s09&gYa_k#> z#XY!lD(~A6Ff-yOu%xJr7PNA^Ix^zYG&`&aPi=GUJUFBqE#8JKG|_YxFX06NSr6vJ zExpz8c@%tNpEo3OFYfKTaR4W_)6nOot(mGB+J~B)^QtOI*HElJxyOMsM?H?vg@m6xr+eDoo{CpBb}aqzl-be>ZDHaH7sj zx6kbT0UAoOx^wQRe@K33SiNPWFzeYOI43V>W0ft;xZCfLEHCq_x$2FI^kSP+W^;2M zwx#*` z+Dhu*eFq#H)hh&H!FHjeK_070Torc`gHnZ{&356+1AHay1=Vpskc>Gls-V@Ct9uuh zqwV1Mu5G_cNK_>#-u#VM`ek3P2)OoX;i91Q7<&C@1sH*gq!pw4?2YhV_3kSmEDdY5 zg^{Y^MIY|sy408JMVb{@1TB{&ZW&m*YGPNRRvJT%0Xp>A=!#1kXws}WY{KU=8d%ev zX~LC?5@Y=Qrp%z(FtyF$6BE7^4QK9DoGhw3h#eCL7{cS~RnC0Af^``y!qiDJn3Hb= zjS;@eU7TQbPzq4b`Uc~8SqDvv(v1k)%*L+F@iY4}8$J)Kwawq?sud?Q8@s8NG3~IR zfxSJudl*aCEHpL0uh44vzDp@UJ}}n5ybtA0%G!8w5E3*r1Xb%#wL^K$D#C)@NhBaS zBY`Qkn?I~EdEJHDr0;*PAN-eGUP7G-QW0q0iA4w;0rwhQ3Tp~qHgZ31-LcIx58V7P?%&h%t^{6LmO*A9r{S(8&Gw$Go}x{$+rWI%kKizk zA@`tF*$JzVG<-K5$or5m6Mp9WI(Ko6+DflkAX!xI4jm@=4$KcthO~KeCk=#-ryY*2 zW&NI2L~a@;y^YHB0cI$$%v`szrOmcx?4P{v@O`@5|dIiHnE-Z3MYJ=I4hdS?6DTlQgj@0)qXR-f&i*e(4IY zL}?YuLm0n=p<@?#r&wXKXutIXTuVa>g5NS$0}mO6!k6=oZ(Yw-X`RwRGuC3V8kjURrto zh`QZVG-eaHWOvP6FRi|h=>#T};ejL>WbFTNbT>VZ)l6{uW3 zzL~MViU&u^9WTjylV1zDw}Qbr#G!3YeaE^~1H}cK6BMiMGDYjJii>@MT{YwnTSd~b z4~!Lo+6pd*Z8YhdnA-Y`KNyr>qy?I9qQw%m_|QE2H2hQQs3O)TQuy)O+wm9Yk_v5R zI1Ut5lGNDOP6syJZ|$Vzy_L{~!fg+IQti)}q;iQ`$4s%>PIIrd(c?q@p8Q!Djy<_J zmt?o^L{T-K3R`++BRAqjxaOBQE8HvaPIKTm*=1DQpny-q5mk8?wQw^2+3bbXpgUR{{qCw?(^os1q4#BX3uAH-cx7%c8{TvCx2ob}Bx!H{n)3vGwL&V` zlv_y0DHb6ZU*srfgu$vJ*4`6m5}t0-cFhW^Ln^pS2h^~--+}7}t|BXR|JuOiYA>!d z6vu;FkH3Ey}!Y7QB zx3EYr1Q9GY2HQRR;=n133kk;H8=YAeYZb_}lzROi$P*h?b(h5mX(pDl+B_>e{+_|{UnESWvIwTk z!(yWW1-C^LOeaWapaScmoB>H9YvaRv87&o^ab&~D4cLJF85>}=!}|n=A462{F^;6!kg;5E%j@S1D-qi5*5^xGm+V*jW3<< z@cczVP9p+%Y&id^2-lKQC>lZG^$$h=xbiN1h~Ra3-8jBn@Fdcas|N}WKg?DSA>n1O zBX-BE1@m4AX0B(9#YM+*xsy4sa$Oh+DjQt1Ac#W>z>e849p(cuC58wWdp z8Vdq%BT3ftVr@7TazWxPS?r&ZQ895X6_qP0-hq_P2}^aj3tDf5T3@$M6~#zI^I(IJ zQXU;%H6PXn6yLyn_e(}g1pAEb6fv^s;J zo6D9ty^l%XD+rt8!m&jaedT@z+f(Rq#_&9blPzwB)v2JaY%RRG{d!Q@jkviP2G(VA zj9`k2Y-{I=P`hD}@@BOxJ z4*$0lrN^gO9D!4tn?!Cc!YvWAd8fUY6NHTx0|FJ)MJH~SL9a6=jC!S>__l#~oFYkA z9wTPVR54zVvvANzhcQ(zF6dFC#c-WPVA$j}^d_mybtq&Zb?djniFzz|9gJsB`7qiw zmNmu=4BDakA8J~|j_1*HTV`%){nb98QG5N65e`(i@wW8AVFy6*SK68JS)A(g@WQ)R zGhPip_a;#O1AC_yq-H-qf#wfk68%0KR3IrdD06y{Ge7uT0k=Sa1BQmIU^x30nW~7^ zN{ZNUQxpNj$p=&743rZYPJW0uFBQBpsZC+F*gE(b&oLB-xVYLR;ZoJz9}G>GblaqT zgQ%&{KXT#AZzcFd!UWF%_v1%A3{ut>_xOA?mIdbjvm@)SzR$09C36wnweQ(j6orPy zPy&KKeTwBafOyc}Z=>@W-Jd3EAF}11cvv6VG8V4unydOh(8<36Wd`+giRJj=Mxe#> zs|VrJj@I+dw+^4x@P-0Kzb|jxEoz@v3K*=s4|L8<6iukA11hc)P2PL!{3;JUrFvie zOx})k;XP2^W1&9BJB;1AXt31decj_Q%lTJ>=U?RCK6=`t;NDrT|gWNK5w$9m>py*Zy2 zcdqnJ`*eR`UT~i^g)O~ccO`=`*NlgbPmsdBqq#`m=zLmXa-!O~`LQZ#+ab`mi_Zc5 z&P58fel=s=BsLDH3x7}$z-FH%140#&Y`=g5pr|p^KwnESJjYi-b zfdHUQyxq%~Ov3O`B&dUAfT$Ye@-MGX5TL8d!uL1w3*uI~-jKVvXZi~Ucl47TCyw+c z$E%uPOfJP*CBIX<@zQ?B03uSTFFsvwB84($0_p^~2|R>N#y^*+apkUJz!S^6%{`|m zn)2ib%qidi$>vjhe5%$)P;-**+a!R_;%JieEz|x~N|Dx_>brTTmCs5#R<#Mqeiv;% zSfV=Dfpyg)t3Q~fD=(GsTc^?PMEw(+aMz|Ey3da|DWCq_^&s8RIyN@waM-kg3;LAV zJwTWA$u}Al>TCpV^%S)w12Ulomw@3NX?CLH;N~k*@XGhvSD&7I`2EInM};ePdzd7c zWsSP(8lnTV*lw5q6;%00VqgqpVgv6VD?J%0dL-1`WMSQmev-&M7t_$UD&1{>=>)KU zcG{zW{sZV9_V&C-2mrA;_r*0tv*60dnVj51iZx|Wy9~mCeBG@b2!+XsM`ciyziY_- zl%sY42VCh;Con7LO@`|KmVS$*K358F0lMT;T_HK<~MdE zneX7_ijy;s)@D!ToK8upm;deWaKa~4JO(IjPkpEciBj5#YgIbg?WZd<6eFSa09atn zBlMgCq5XLpAA$b0Hm*d>J*=Ora85rTC3En5`{^^2i)dJFp_nu%bydl{ed}H65!!AOnD9E{JHcoLh`H+kmHEXyUn2O_m!c*o z<0rD-Sd1JMkTSK5&}ETW@VjcM6W>U-S%5MT-;oYz(@OF#0_x@QAs^j;0hgAab~4E^ z)|Rr{fekD)^Y}Xelwmzt(Mh=()Q&@3$Jgu3nMFjA*}_13I+;iXD@^1YknW3r*5xQ{ z0jyE>FkP_mrA$G?-5t5{r(VE4w-jhCcmjZp4_zrehC9CReg&KN6X*7IjWWv^2Tqq2 zE6?8nPSPA0(F`O*;J_MNAm03yd2{&kALWk9mo;|19X@&a6x5TSnbf6`tcUFrhZr~z z!L5!!pV^DgpBi+e?+=fp-`Z*K3ki5Uw6N<`yWvPK$@WL1>{O|h`8zegbL^w*`vLxC zz2eDll@yR(6=r8P^RON}La@b7`$|jj4P@NxYsKU$)Q-Q269c!luUFBoN!brD0>j!{ z+9mz%q~O4a?n2&bi+dPoO2hzWMz5-m<06lY08+UTsjC?WPK_GXQ1%GL`<(6EpZ=8H zZYv2ar-?To0ktvkmp1`Y!1?-hM~5)b@wH%#!Wn}}f%9_thKXdLa#i!*Pv>#UjwoJB z8rX94DvNWB-rU-=aV`JF%X(+co>|p!O)6S&+n)bl(+D*>fRHFs1Zc5~ZBDneroLat1Murl;0}ByYkV_-AKggWl8wYTezr9l5OlD`o|Fo!ko} zIe;)q(QI@FS@ChJq=p4sRsQV*IZhdI7_WfdTWyh61`m zdYwjI@(wD%RV5F&JqS#QZoUrD^VI+Yp#9&sce>@49%(vLnoP1ZT9-K^p&#O<3P@}t z+Kj)8?h~jkYMN`L(UnJ{3orh=HXl&+6L;qA~Yh)t~WJ{4>iA7S&Wp`@(4b zA|MQE_@i-d=?5Sf@~vgkbP8K9fU^OVHLvYHyMSIAMdZ+9*@<*k+`+@I;g@c`F*J`x zqAQC7ciX?dp~8Fy#7PN{h6EP29=s6FE+TCxZ~d9V+g9Xcli7NXpKh3#AqnOGI)a;}ozHfBkBF2^4C{u6I$2mcKtMJW6lcsA~Do zW|y~%lXN2)!Rl_y1}Zvcedx;1O(@dbVLY@1+sqDia2$B(iN;I;qq1(A=xbU(x~cnM zuFUff=IpM15RH3ORkEPp;58R{2vhfV8Np3<3*om-&~q5-<_`ov({>$u^!U}EE*z>r z{I2M@Fi2$}O+#(HcOK7bK)+Q%iyhL2Igj9;`c45|2fW*xu0sHkEz!hUP4O*{b*eaw zGDzKn>;e6zakF+TG4I%xX1k=k^yN4DzHcriYp>prD&ihR{?)c)Nsf2@@;@r&^BLb5i>bTA>I zN8_#I^}18sjO{fsOhjBg;DiT(Ku-B(``evC^%#N`W2cem=S6^IQF>>}ZrglD?%mF; zQ>hJg>{?IJveMqH6}%59b?1(oPls8Ega0}5o0dyX{bumXa;~kpeJ?82AQvDSnis^Vko^=Y(DbUc z)#c8NxAV>HqHxwsd2xD>pT8@5^-l<%_k#lRy=hd}9~bJ#eKcUUXINxfr4JBLC#tpl zGeQh!=_Cfd={qw)6r7BZVxDwP0yAjbxbe&fsWOTOZ^FQfpK++xl*CIW>&Kj=z`yC< z>}V-%^+8C)v%YtUYI}_@Q%y_F{B#d}Yi@t?PrG@+q~Mb;ZUemM-T>aR;6{%`fWq4+ zgPD+oqxKd<(%dB;wMzucN%v?^^VgiAH7!FP9vn>)dZXx1l9RRJO1`8 zYj{Ih+5V$UyJ%3NRZgn&ZS}XyRe{SGdrgtDnR4N?fiGz z9$ZUg1;B{DfIHnyrJ@UtH$ekoRL68@@ zyXr;+{vF)(Ejn=gWEdrXqX%VoLpgTd{Ff4)zT5U;gfVYzY361B5HWTKj`B#`9$O63 zj~>O`6VrBUd`A>YbPah5KSFKT@4XuO2iJ4ao3qq&rpYl8_U7m`nZ~l676p?xnj%)7 z@2IRDk7?N$?^=#4jJ=kRh_F=|!Z%IV0U0qRAI<+@QsS!3UZxH&ef!0Ogb}Sjvw7cL z*t{F`T`vLVQNjGOmAL%E(XgSMVjxr^+nUaVGIjw}qvrJ0-ThUkGSp}9?96b6dbh{Q ztN{^-5Pt|YJ6KOVDp;=v0t=OFtribV*QGF`;KnuX&S>8r(^8Ooe$@pCRhLG=kMR#? z1uSOc8~69KueOVd@`|%}PU-K@VrR4GO5UDVRq1vb4UkM(_5i4wV&M94QoKah&<=T~ z<&;*;it#SxH3J%bT8V@_M0_;V_uB^gedYN~4Tk}cEj-!iP3-d?F|bzrxuoNF7QVC} z3n@Eqo(Qynmb@<)BY~=+mZp?;UEjg@h?aJFG{j8{EWAC zckJ`>aV^Mbs~20PS&{~9x0~0T-2t4-DS#hxe0L=exU&AUmQHy|LMy=+o8~`iwvId9 za|t@nJ`+i%2mo?(MspVT&+qvCGNcu=KRR92jJ}79t%@~zPyG3RM*Um<;eUobx-)E~ zhiCm!q58ay9w7cz?Y;8RR08FSApMgLQQDME`t-kC04V`)m6+=Ho|N#2eGjY|kKXRd zs+hb#pj&n(KvN==%}!Wl>lt7KEd|p7o=*OqD^2uTvemA71ox-cUw&89J10E9UyU}3 z4qPuB+Og`y+lvgc`*FdZ_Gz&m>#SSWv!auwm;PAG-wFdwLX^n^)@^#y|8<;&^DoeX z;GJXp;O^HFX91#xgwwu&cTzp5>9kzHPd{rT%R|66P^ntEP`5uRBN)?tJGOp} z#2BmD`Dl(A&Bu_dyo@FbWI^7@GN-v-=l8QXV2&z2gzJO>abFVv!q8d=K7^c4@B3E{ zHZM}1Fit8jT$7qC#ZkMp^djRD{T`AE_8MAxF$y)3mvXj+PMwnDbO(66oMv_6p+c6~ zS6`h3x~YNw5US#vHzu&EL>p*A6;Xo}oafCx!tuF!WXnJqQi%}%16KpMh2qIY^M5NJ zWS$E3dPPG1#I+kHryXke4~EdQ1>zrRC9P=sRiIs`{Z@2rUB@bAc8nxAxgr&cWApBp z1O5Aw!-FmW$t|fOm!Le=Ux#*Z2T_k1l+{rc2(2zErL;3$6%63ua)GbDqfseMF(^+@ zpz`8k@LxcW^g6}dzYmzk=4@(fqg5d^)Q-WwGmasYlGK7k6IA7e`l_XV1INA>N5Ad* z>&WcAuY}UAvW-6r_2n5YUfTLps&>2ky=WfA5m1bV+;KutM<25JaLVw1U3B7#y=BI6 z*}l_>E+LQKq>T`pDuzI{1G@VVbZ(X#W%t<>@$suSehBTqrtsD?SpqM5ke>}|qPy|1 zg+s}Nz?8sPVC-qb-M#aL{IyZeuW+zrs7=06?6|FJqufv39!XfEot#m?B7g)taC?D~ zFFs1#Fjj+Py>XD)Qj-Y~ZE1fHH`~z+rZ6OT?; z=c{yz#kSo8aFz_RnZ|zr0dLRuG?9n5w_<oH1S2UcNLOF-}Sv_|T2-%=n`>JYfN;ei z1KS&-`jgo6^p5XL&)s(`F@WH0$3ADoKs5@lnttS}NL!6l3vt)czX4U`zehSPgf$t=WhG-tayk z^Elq~%fxRU_^X17g`<9)KQ%={XOa8xXem8!G=+R~?8@N3kj06>7vrd=s}UusEG1OU z`5o)T_^+`CHY*3tTe5dtK$D%*#j<+icxABQ?%Dk+1aRAS+&^7i`)N1S8@T`z|52^~CR@@%Q-v=ig--V;A<-^K7U|z-%wPM-lI8fEOO2Z0K4P3~=qHz0aCp!a*&A8=>T zkhQVjkGY`pf67J)4i@Xqd~+Z)C!K70-BERw*tryShyrRL>@(zVp?-lP*qg1}yJA`W zsWJZdZ+mDz^Tqir{VubdOebQElJ8FVc47xSsQvfJK9&wUn5tjW|G^yyd}<xd0MmX zh4sAh`1J3!szTXNG9QJ0&v{@C@MDaOmT@7&mpH>S?C(7SumEDUzrF*n zsHzSG<>`7T@cPf|8KD75QN`|8ska8*i!xhy-O%3GLwkJrL;bx(5y_jO6jHS3mqmbD@M z+oK~Fgfls<`&i;1VfcPsk$L@p#m5hQnJRv?eA~YC^D8>B29T8#F|h+j?FYB(8-LcOhA*I>9u$->7<|oS z7l$miquYT{2(@L0u;w!tVHEbihLsu{$V5Ip6i)K2-k+MfImXHw#SWUK14S<{MY+4F zApEC`b^>juGaqj-je-GiSpkp@g#;jYgra9+0br<9IgdsZEEsz_z3wzts$@|M|Yt-t%xrm&y;m4nrj$Xfs{YXQ)DK z>wDG-!b5-lT&eojs*y7AH-S9Mc>OY|+4;-QfuqkmCu=|g_}q=O%AIDLaaHefco;BH z2tPqp^q&lQ|06`q zVURK@Raamk#o+ZDHh178p|Ug()mFae#Vfos7fhIF_%77dW?UG05da(v73l4G5-LA80C4Q?+8@nw#lRY@!Rp{Zuhn>_PSfb(o@G0QPV3=|9_EA zqH*J>{e|1Mu=v!y;_xS@R^O80V<|vXpM_fs5&wGHnHU#p1^QUCHdd??PxUQd#2;$r zo8?dJw#GnQY-)!ovg!xlsmL9=bz;NG(rtI>n`krj!t3iE;p zD47M&^%U{f#nhQ$>i1VD%^*e+aa*DG&E6j|vNc+FA0TCMq*7IB4?uV5|1mFenrT6Uu{Tm@7WDym z#|>kHp7ZZy-H$<@QGS-0#KaA*KjhdPBHwD8i;8oKSqvW_8C9FXN3Txm{nlhtw43P&(+T9|K3;kqyU-|BT0Nl_N0+RNr7z#fm!O=hN5) zP}jLI{3y0=G~+W665l2kFKRlZl;~ws;IsJzT6*8CjRDB*lajBD^OvsZV(DTnc)3c3 z#;MexGac0Dbs8A?9o{egm&j6fA?Tg;c~K-*wC+d4nH;O?qfay|79itW=O>V4|y?HYglD-aR-|5g~2aFZZ)u|gs+Q!!|cBeJX^NYPlck1Oa zK$zz3%*9tj(bUp;Znd)&1*yAltydN6DYJ_`M?loBts5Y6Cya;7jxvg%^XK-rKN)2{ zP9EI}1NXVcbEtDOCU>DzT}B&QvLY^8n`XmV!sGBv?hXJF3?ggHu0y~dA1!#!peM3K z{;m8Vi2H8j(Z#I$E_RX4Sd+j<`86}SO7VagBoIrKQ{P$S0=)bwP|9O6#u+7o8cV;9 zh=Z;#Y+jqfA?1R(Tx7cY2P@WDD=e19(a*AQkQbLX<7M`mLXeWK&+b*fmdEY;)g0YM z&`Hb{N%s7G!eyUz8q~)&82WFUL^Q|iWMjTeMGIk{(jjh=F~QM9|Rkjk8gb|E^JgLZ6*w=@qnNA#*$zg!-!`7$N5 zQ|TmQLZ)LTpn`Kk{yrwnt!okr`yuVU&{Kj#{oX{wvkBLcsg;$3XQY3k<}@62nu{Ex z1MG@O49?gA(fz=E2j86z{JCHUB2xp!lmaGZu4sJoCtOn{2$Dcw(qtr6Se3$gwL8`?smPzZqbCs!{imezIEs1bpjhKMxLkP z0FgGb9^FkA8v+&z4t=dkh7%?)f#+@V`a`4;BfwVV^;0kyyd=&-zvZwMvbs%xNT2a= z__YUsMDRM3;Z$oK-BG|E>{h@S7$OBJ(3`aWRo{{?J|Dx$ z`8$BhX;5AHTCRz`ExLT_7}Z9?Fsb>BpunO6`EhA3c`=VL?b!cY<&7YVo8r-63EPFZ z==;v~g*Qrx+VHP^gDi(v$PQejI+qN6mL*F29gQdJ)hmy4DpBAf_a%Y2EO?m{NpI)OJGcEI`WV~)ykiW`){%C>mca}+*rV8We?INkno2C_Y?d`TSL(prI+qAxdeZp>rcw{h@sgmp-Y+zKoH>~Zk^hg?xg#ziCW*;AsUFegivwVc zx0Gq;>VCitI}^Ho90FEGKfl^#jL%V;uDiK zrZZ^_@;UlEU8{z)JoYXf3_Rc=xZ-0V&%=_=3<;4UCc|g!0GJ)tWLdkRF6f>Ch@-D~ zZZX7n9JR~?a30-@ZJJ%PM?7wyWHy$`KGWpA@Jjbs%h;k1#`ruYfGD^kv`=Qg7`LBs z!y_n3?bb+I-f3bS=-PPWIpf`>)!dqxia9E3o<%x47pbTKS9o9B>rc?F_$t|T!S}t& zL$Nk%(t4#Cu2)r^ih>)$WTzI9DtZ`_Ju|57xtHLc&7(a9{1H=K6FLDbBF85xgB9< zuahsWRp-M$h0J*WqjDaIU1=W(p2nyXyg0fCHNvJ@uk15eG3D)IiMSPI4r$Hansv+o z3bH)kXryVkqf8oo>Z^rU8jd9sSxPe32ytXKEslmSq4C}Fb^FqOFk>qVhn~+YINMO& zr-1y!sQ(?=&wb@sBMas+Y~9xwMDBF83*U)S`>OG+XYh3v+vg0*mgxmoDbclhng)4d zC$If{CzS-3cxeMUj%9=&dSCY7`Ol_4EFu_Te?jlJXxd>aqK0jJgZ_1%Q|NYiC&>)e zFWvIK1b%T%;pV|cwimI!sk;;`cA8jux!omXFrL#l_}mb+9P?Br;2J47=NuBSid~NV zt78dpQZ$T*V*%fM`-rv0mCDL8EVKbdaJ;nEm1Mp|TVK$_JSL1KzBN7{rqfP!3))6%SV=JbLW+ zrIeTR2LlpiH&C!V^zs#bIi0^uPAN@$?BKJ}NS3GsJumXdf?bSDJcdXzjQM~k>*GRB zLLAo^OYO(xpTgzM0eGzAfyx`LHQ}Qo9RK!6mWqHmgB30k#lc@EP)->0-&Nob#(i>? z3xSyErAqG$N?WGVR$)h=F>D3`)iA}+sB)>(Y?*f*3sRcOy6|IYOw?ZwXqd)s!`(@i zkd+lt+B9UE6TO6Nrrqql8R-fcE5NEAQW2ZX_mJWnG29|NW3JlftHL7YIYr_Srl_j0axceu^6PkH7g}I_F&8MIK?WX+`qeb)#Jes;`TzdrcyQ zgk~B~Qsov+3NJzMnHOj9{Tq@^jKnJ(ch;F-qnfXg)%ko!*=l=F;40Y9Y=hc4uOD0t zt(0hv9~j_;$!DyL?{{T&R$Sj!pDIL;TaP^m$XglxL7}SjQ8JCqv~4dUOg=gbJLR|E zt;dRKc>`EvnuIJlA39$xQIE&>*wUVB%<(`gSlQy5u14^V%G|M57iDg@pjMJQM5Zql ziLDiBz*|H9s7df;yfZ}uJ4?uAh-0TUOocf8c6UivKJbdJsdEm-g&+*OMhQGuEvPn5?n z35gFm2!;=y#6D8@-ueEaV)nR5GJf3!~zJ$S;PmKg_}wQBAQ5q&{fYAc|}8=?O}<;rf#);)^0!& z|MvA;H-wmY0*cIIQBG2kN-=80m~=@F7{S^i=;3(}rjkZ3@c`>}m`?)CvF^dOCFw*_ z5uxNlz}HsTd#{4*&6iJh6y$kt`R;zbj0sM`$c(4cVQMoO%;jqfxyHa|D`6Tno4i5X zdEM?NG}6UiMj4cY)(d;^zS)@DHO|b}KEt^h!XM+4x=J)(<@L2JY0JWjnc^Y@g zBiq{1264aq6DDbr9S|Y>!3cgXd$)Oo*slVMWQ?ou5&x;kYaL(&2`lQrJmf+1C#Txu z+OhU!<7oX4j(OtTq_Fky|Vk{gAv?gQcj4)b$z_nlUEciFZ zb=3G{F6Rwhe(U|QGc}VVZrU34)j@LdM~EvJy4v%HVR~oK4>O8UYn)T`K?Y!rn3) z^9zM>Z;zZCrP`g-f*DLT(Ww;b+MctntUzq-gI~;LBL^y@wWIO%jOrH8dY3asX~NYS z0)PP{`ap83iFTHLSyLK=GBzSZYG@6>cKAV2LDoKa4bQ?OIB`K!ld{vRBcu?%f}{o| z34$R+(ugGk>c`l5c%4lYv@Zc6^ETuufRyu|O|^Y;E){k5FiDI`n#lpe@&ybaMqx~WFx9E{+ZSyw|t2H!@^>RQ|(nNsh|2MpZ1^zM#+%7*l z#;!R7{Hg){NCWuUDmXzH&8Zlm!1Js@F#zBwgTCXvX6*LrRP(6${{5$Km`E=J=yNHt z>ZlT!fcHE4r8hB_DAkzJzV-6vv#g8{%+e_x{(E3v6_dmAf$K^eR+AR8ct0|%zF=#0 z=E%qT>kU03q2ycaT4+;x7|z()tJXvCr!eKm(jiL*PIm)W4z<$8xdM9;EoHBA+NJodLZ3-1O3`Q%!s_vjK9sIjH< zIYPe$lI3Xx%q=TEd@B2q;OK#5?(LBc`15V(*{b-Ka#wg0+hmB2zEtgYBBGbL_lb0_ zj^WVWLVHhY#Lj4HHhj~Oa%9yki^U~;$+IDp%4|D0c?=i%?ypX#3MPpbIaN6}@0|`A zXh{6EnRm3sMLMWZm(U^C^KDErguh^);is3fj5aIs2IHe>KZ$`G>1B z=3j_Jg`E+3If<3=})_e)r5H!COm^X9S%g<+CYq&jN^VipA>1+d1c-ymYP*gp3n~H^yd|? zU6|F2ePmH4!ryrrJcetHPbTrW;hl#QzY$`M>@4)nC-m>mi;$OOd16TQXPF>FbUIqc zucwhTS_`RETp_j@P19m9f{DOK>fO(mD(%+BZ3{ts9shl(Ld$&end*`?)S7A;yv#!l znkqz zNLc*W3y}N%PMnCo_kAl!p_TMdqcdnF3j(&P0$1Nz2t&Zho*$DTM%>lgx$0xzt;|~K zU*eEOSU>vaV>{AQ_O6>m@vS1)#)E;toeL4y`KF!v$%R4q+m_@UOMaeT zdrUeOogF@q^w0VT96ETa>sm4NX!IW8Xk7{17?d$A9xe=_XsKwtFCl|xrj&y=4AI6* zdbi&5MoStCQ8;3)Ljb)*N1?ZQkP74FX$Qw0%>cCQDN1s`R&y4`zJut z7XfcLIsZu_UcA9GcHxHxS>W`B1XF6RE5)aBf>Dv$xbOrZT0?R}@*S@k9(}UjrK>Sw z)h_|Xf$lc`@it5j8iVW1dNH`P$`nDc3H^+4R`}Y_yIywm#c7)LF*pjZx7s($Yf~&E zhMKZhkx(dK>kn3h2j}#z)>VD9%Z@_u@Q$eXzIR|Gy5xfjLCpC?`Tf2Je0d+y_QhKj zxOORAH#H@~H!M=}36W$N)HAe|Ukqh*SQHlJ6liM{6I&--KQTvT+tZZTTPVS8>p7|t z!ejf`tk+KjH8)K@GU$H8!f{c25n$~pBh?|DK)a)7x?|`eHSlPYjRi+HyNK#@>dRoIOAFCuaqW_}vl|!oFof+8qL?Fa4`Q!!$K&E%p0SXXaVvM?uFOFABVXz8 zmtDTSX5|@GJX}wCCrxytD&8J@si>4KIYWS?Z8?NP(WAFPzd`6QJ-4sxl$Vs&`dCGt z#W^n{m_U{bf3uFtX<1lIXzsIKB20VRp+%CsSwO$9YJ`xk8CQtJ(xP((DX^=a`(cMf z)EC$Nm_t;^C=^a8FMrDLHoJVN+9apb)a8(7PY?reM?a+bkT(sOXPsKmZ$+;u zYZH_<7_vD^HIk^-doFKFC z%)|$kZ$mV)3X^fM2go6~76Mb4jjn-d=;lTBz#P0yn6tNJ1utAVfzW8*=2wG=vTo_| zK9%$;rT7P<4_X`hLKw-Cn2K(TMouB6dh>*x2*ZkN(r`mfQ%P=o9wAfWdcy~GySbf^ zcCe-0Q))HrVNUkjC&jVW<>Q=a*Kzp^I zKPB}l)mpQ(e~G5SewnFJeIVY_Zj4m9YLwMBe2(K)e@}+Eh8`QEcaD6xBF~Ba+N4NK ze7T79OYSN=(s9o0#hs73EPCssPh6;{Ol+9TRr zt2B4!;u`G{f}v&as-pBte)Y3g8zNTX8yXRKI}nA0;b#-w+S6}u@alLKl-AM&mbTI> z7v>EQs`B;9kgwt`9Ql;qp6!T`3K;!irNYn~U>b?iS)=`=Sc6sT`DXaFdmUqX<4xtD9~P$#;#?sA@;UD27XM`( zo0YR~HG6%0c*CY3R5{<_?mXta()5kFs7o`_MQwa`x7UO#B{CkiR#2+xxq1843uTzdcF z)!?ap{8~t?wMG=>Xghc=`is&^ImByD>Kkw(AfN&YT3b!Stp9Y0KG8D$nMgj~6NXzb zfK!Z!)8a}ZZWWEzp|)8sm&Z)|8G{%guR^Q3B`fdj6^xY~lA*PqsN>0CD+k4?=)8~D zRe1Shap%pa=S-S1SNphCzXu)_^jniJgy9~OaaB-Z*$DbO_o1J(8_x2kg9p1##j~8f zmO#MI7zaeU1HdKi9mk*JoC`0+En$zS7laP&^1YmKEA=0TZFx}f)Efy6@991>24?Ef z*6Y3agC^Y|sS*$gr@38+JvoM9NGXj?M|#84jfw;l+iVk>=gN^UEQ;^PKFqdr!V4xe zszmeP`8y*dTEB0;xIbnfZ5VL6zl}#t-m%#}PG-E-yT}+42PKI8?)+W-;iwL53GQ01 zDsBIi`pZQAF`CRfS}>x>d(&lzG;VU0eLKD4s*dM!0JWvmWZHb&49uo+ z`-BeF`-NwKit8#?QAB*rpLHP2MxM_C+-J;}+Rv6Z$Ts9$h}t^s#+^UljN_yt^~#85k0&D+a=QU4-E{uMv|5EJJ>afhBOy};n8r*~JE9y)1bD0*W4t<(3m zacpzj3pKKMHb?Nwxz6nI)wcWy27CO(BG1830`$Jklc?6Q6Rnh**bCML-;V*y zgO)??jb8Mt|0!;tGpbur_Jw|jhQKvE(VuhsUK*@|UNCmcRuqU=%m{sh=_Qk!tnxS_ zpmT10oaN;lo#_@cz#xy&LpUapBRNo~dUXs5KN*7ye?I$cj}8ToaBzl$9P1KI3}9DO z)5;jrLV-5Mj-4hkynywHWwH;tfL=EYE$xIfEFSe35{V-EWkE{3{xj`^22OKPCxK;* z1KUZ$K|)F%DC{aIH2)r}UndSY9k2J0tSHv366fQ7nVlCYv~ia%M<+~%Tp1SA`sgD> zcASkziPurcvK{*Jv2mv4#k4U3xduy9R$MEXGteq@YkpFAI}g(fBU!jPj7hnu6E3+n#O~C6yQzERSqXN%jW7e_*+a*5XS8zxp>Xcte zbcR~`wI`6$pg0F%=5;9LzL(%$U=<7IfK?RB`^hro94H3W*nxl2$~V<->gLH0er>Zq ztSi@27naBvY%}hQsk;(U?hZ-Re8V^7o#LIesLXVK!A_^SC+n z=yxs{zdvQ;qiSJPPMz^K?p8U7;2_&$J^NW&Ef>+HDB)05(XPo@tD195%47AZg12@H zI4#Q|Vc@1@v$?+7a~$RT$`6V)VmtZ9w$hTLdHo977lr5{0sB0>c1z+k;8X)}NvBAm1P#gV_7H>-HzUp!xA7$g zw_$F))zpIK8=BxK)G9%e^OJQ@vQ`W`+Nf$W@>h&6ifLju;)68v4nCLB{qbmF7UugM z37V#)FjEtM84b7EL0MiZKZC6;DpdPw62tq+p^ah#as}oaU#^0F1pY5G+PHSUEkI(iWeZy*A0$ zwym0`Ty}?}#~vuH<)h_aPZ7ztrx)&8%&P2({1I@C4YU6!bHdRz#9OT^OLEGCYBF=` zzuH{WU%7DinNRFMz&9z1+~K}s6~(F1rHz6{wvYVTC{809N^ZaS{iG{a{p%Nk4KXjWB?bs5#$C*(gu-?3Bs;SU5?oIct~*~nbe9AMe~h-;OjXTJ zLKuSF*+D-^YjWCW4!$MGCQjsqZdH9=wV(cAKeMfsFh1zcLBes8pwTw|@ylSm`w`^9 zlLx0}FSPz?a`8y}PCHOD?}m?EEU^!l#OXwWn3Y0}P>wfyGE4J{QQ4(W%>?nNx@95y zpDLdU^5z8x4s8)FUB{MweM$){cl$#^PQ3l_&c=Q?YL;JK`)jf}tLt9d$0bqmgatKT zEw^$u?8KoW8R6@1V|jgDc3+*AFrGV}{I43nqC_K0q50q^WRf}5IlhfCanWRs+MXv> zI>9bK3u-i~B>7MRew8Wl%=vmbZ@Gitrp}G@6oO-XHP#s7D8h`>I2eVku%E|YoNE81 zmkCF*!WFM5#pjTQzScB_i4&M;>NsI~CP|E)X95g>Ih4B;?HxfA^AVd~dT@JJw(exf^F)E};@hj$^vD zf8l&T~AvJ!uX zithJ&+K(7LLOZ{)o>uDg(BWr&1LT64DdB zq%)=*kM}Tv-Re4)m+gt+>)Dn4EHYyel7CpCTZPi7dbL%o}Z1-XBjr( zx}NzD5MWFRvBg-zrBTiasL1L@XXTkCTW%6uA+DskNdh%%AXG1E33_d3_QBzpRV=gyr_8e`HU&)y1#8^nt=+E_=hIst&emZo~ zUG!LjnTd?=j(cn+4XhULtIR`Zym+XeViaHElq=c-B!Cxe)t6r1#}pSW=YOF>HciQD zkV$5<{>HDrkrduOXYFS~vm+WIq6l^3;5>Qu5qmhz=%MA}h211k@_zauqS&vA?nDGe z1CFQeJ0Yj>cDul~p+3&FVGLHzZwTuSJefxGp5n$me1@P3LrU0p;*{d-piLz0JIIQ7 zKYlh_;1X8{TX0u-ubi3p}L-s0;_Xpx@)(9Cd!9SL(l7lk8 zaBMod<*GwXLf%mH^h@>GMUX9P>3w70$O3(&*OyX=H^O$bRldaY4}C7|Y_7$kM{78R zw%~omQgrN+lz=LPcpK-4oX@8gD)1%xGTZl*CO8<*#Dd9UbSV>hc*CJ}VG3BR9PU!lf;_U6cU^#NwfiyvpX_O9@kjJ4m`;MNs2N-Ma zn6eImHlIdNYA*`=?SUhP4un6g_$)B{GGF~ygxAyL=!SWg_?KF?zD$bY3r5xLRL!*( zU9>BxS$T5zFGr73gRRcCG1;`%Pim_-`kEy5GHrKvz1q%xuoz{a!x=f&HCdUd9UAL0 zIX~OE?YpB`f;(ex`RHtZxX*=o=+6_X;!})bRxk9AG2Q2&2`TkF-RQmexOKB6;*Kg-I#;>w^#q*lpz050( z7@Sd&Xg1Q+b$!H5$Sb)2S~1RKK?;U$d08Porn4~Hy*9K84+b^p$Ild7>b^FGa|sTnUNkJ3Nd^(i`)Mz? zgN!DF*PBvlR&@G?6BcSqtO@DcNRo4l0uO zD01?XGn-VRalkcGt65wbV(iV;fWTS@%W@^Qj(AFhXoooI$&tU44qCDqE~c3*#mnP( z6|U}po5#a)A}JQ#ig3n+BbPubKuxabO$!FPUA(-;S1nXa3b8xAYdrT0e~NvHG@d=S zjEi%ns^aMCA-6z6k-*b9B;V^*Bi|Y$k8|BMPU8Vym!iMVqoVk#`G-hrwb$@RQ|*xA z8yhAEDhfi!=g)FKsFdg=*%z8AZ6F$6gig06OKyT z$*R-#uUf>^ReHZI;!!i96Sfc+ckY1F@h{ME_evTTjm8v!SrrcTH3AElmY3m;r0HPi zVV3PPXWTveYA)CZuF*bO78Y7+0WS04L~5O_kp?JMu+kJ`8S+UwnfF)#zJ5uYJ#{gk z4BBQWX5S6b`a*6^;IYoj{L#1{8xLl-Omw%;+{5#BzRw!HXD>F}5#ritOrMZ&9kAfu z!FO>dJ(q~vdhc6$dd*+vIO#OHj@9RY;SKhqJem_O^xI=qGwLlpL5TVv)J|SX<=w;Trg_W^ zt@;L~`^MY3UF$#n9Mr@SISGKyk$r)(TQ5%IZG%D{12_DhVEGr-1smFZ z+3GUQ9SB_JZG%V{i;{?>frG~vWaS2pv#E(fv_*MY;}r8Gd|mOsD;Ryxfu~cJlyn#J zYL?Q0$zwM2!>y-PbqW~2zGcBn%~}J^Q(2!YnD!PG#a?|WL>vIpiHnrHeUFGMrFc1PMmSLin2WMr=VuE1`;tXRE&wJ0 z@_obl3znq~z5t|KsMj+TU!MRpIFyys@K@`!$Tgo~w!N4g+o*+_6>!Xa*cN{wY*Jq_ zl%Yld`j5p}0$7YZ8<~*ct&kMVA*!=X_Z@#;5mHVC!~;Bee~r1uXZ9Qt12rC&)B{2~ zI||@_kvD>OR&$o4-( z7z$}6Y}u0@>ecMkcgN!eqa5S)P7QLdGpdqanR-jbS1!S4#oN7ISf~7}S*04jnyZ_ z6|^W?r$G$Zh5MCkja;1kTt7n-lY2GJPSlT{-)Xjd`d^cAYEj5Q(zKDuuO=$dpl&zt z&_OwWGXNYvPXj2N4!eO|6A-NUOK4$H;cuSu>kRV$pUL=KH>4F-;rYEqPfkHIj&Pv- zbIk)||4goS6DMJ|ZlhYD`D?;Y7e;@CeIX;AjU!B6oB8k`n^7x9gxRwrp{AD&UvL+? zUbb*lYQIix@`##7zE1^WNeyAn{X#QxC-}(@Wt%?R@Uq)jFF9ceO+vd5{tn^L4da&d zFT#v*4kDbOmRXft>R`2kB_PccP*Q3y%(a6eVIP=rjT@ivXv4_-+C|VzZ+tdD!CNoB z$Q~3A3`M>P5z`5MGZM@S?loiINmH?Y@pz327NG!7@E!bCSS9Vyn~R^`KAJ_-8j7`^o+$ADxYeXUOg=^A;x08+oGImnPx+;ps#q4CvlJnVlCNe<3b- z&%Bk|E&_w1>*6C-q#spil&dP4T5~*hGz=#cV!MTiP-#O1ASZ}#m-ZHTtE&ZvaIU-4N5}Q6;ApJr-m8%WW|C)|dvqBj8Ai#9Q>p7*qLGOSrwDx_}4B|eK zuEh8@m@b3l$ei(dhC+0tBkE8C5Hl}E8FG^j1j~OdN81OymOF=Ju~Uy zN*`vh1nN1tw((K9H`4YsjfrG}G8T*F7M*%Q%bZcla_JM(GzD0Sq<;Z8DlZBzx&qiG z>cRml@o+Fplx3)WT07uBkqeR4!!5rdGw|!aaG7bv0e=vZk@6xO3wAiG^)oS(aA4yc z6I4mgI3_tWi}3Y)57I<2it8tIX54K549Jf8`Y7s>AlO6` zoAA=(gu$NvmxdL34fKo_vmBM&AcP0)uU!GPl7{5W8VkAK!XhRv=CjlVXDHm)hO_L6 z_0xlI0xMZG>jK)<-c1K7(ln&iD+tAl48E(j9rUpd*3e0?b){klPMlF6z4&?0lSkFx z=$4z1PN(ZkJ+^N1U3EILF@EkGJC4xH`czTIW6a`sT|e9;fH1$sF|CFuX_K<33xr+5AN7kVfRxD*gweSNeAmCV3fm`w>oS)?2T=Yh2Q8nnD^5s z3vKwEdI7ao+WcfY9QsaOm|pH^y6Q)Wimn|KR+4jG7%tMlc}@4(Q^oB=N5#z=*QX|{ zyeEh&yd-DNbw2|T5u|b;pe=U|0A(RB|LX;CIisRWH!=rGBnYzE!X)FC_BR? z)(+nAGey~eyr}ZS+K$9|qTX)f`6CmBA1;O)KGBG$ra-kt(f5Jvie=3FBR`SFr6~F> zN9=>z>Q~%Ef)m;~wWS#Xk$pYgKSl&Jv4=77!s#17mX~P#n+>=r`=8kW#-r8{;hE7T zD9~Q6U{&U*!ax9w_)%~Y9G{pSSf0iH93w7tszvR9%y=PO^yg>F(~5hHEpf{mNFg-m z{Gh!2UxWB?_uv6*DyPxPJSihUik>vC#mmr|X2oGoCY_rSO+FW+p~1JG`|z961Z#Q48Lu*`MEYdVYv2wpxTU^|>G9hf6uwmi?GoW% zc)~4gvW6G_X1coc*;CPeoN}W*G+02mD5Xk89;_YU?Ss6nfNH~<{-ZCO#X&BUbTGVkG z-Cc?EHSIsfB+zI=QjlEoR?B5(T&5BuD*W3A8PW=~A?8K@a(fGMP(?j-55Eb$;! zn2}C0*`&JS(|U!ELSv*wj@DW5uNyCVmx+IChYLnb6jM=!;pbAi z{MqqkmtN8F+K?W3YF#&RTO0AgwU(2nl@p@1tje)HufVs9(h4Pazwc&ZZ6Nn6RRA{< znv}0^k8pdG@6;QM{B63mP*}moWysp22JC@Yz#X)8m_HIokCiV(6pf<6**VaSbiA}i zHDK@p%1#0}jg2IunOvIh3P8YqfAD=eG)ER@ipeAX1NAbeom2N47cXaV)35<`{cw={ zCWm!cLy6(e`R_;K&wT8C&Ym)&BceYfW853ENFOJoc`oX|2}^y^Wo$N22o zTt!@1FNX|WQTs%iP&T`Cgt^y|oub{!d^Rz*eLU1e`mJLj{!bsH`fWy?^Jn7;Zq!Zq z;Y$^jBH2lp`}^2-3cpO^Ob${rrxrEoam58oGl)ie2HpW(A=`iSdYq&^2}V@IOH#(l zYerZgYjVTJ13RK8f=BM*OIwGhiD56ho+XXf*gtE4FuK@y^#~;mkz~X`{kTxi_Rd)U zjs(QszsLP155bdG=NZjzso05X!NwZI%8Piy?Wfz0@dI; zR7&U;Gp`S@k!hOqf5n&T4o-tOsq>G3Aw%k?uyPQ!W>GxI+`@&Ykx7LkQ*JD@Su4?KFa zyWLl4j;N~gmWWO5bT|xL$nh$h(l5!m>-5zQ5{!(`U%VHk`^?3s@Ar~|c1EUvGxNnHem5R%s@~{|BLG0JPP8t-y=>O2sj0Y)LDG&hP zic&+n%sFZH{kPM5D0Tbh7-5E9VZ|FgakC*Jf7R<|Nw3?HI87;C(4sx6Kj?U*@$lTv zJ=sc_fR4fI&%HCMvit>pO)j_%H+NA&Nt@nX+KEKVfV?@j!G|1Udu0AKtH#XnfRwq6 zeB%S%(PG$ukuU9LruxxFhIQ3%^;-kO4DAHIjc#?yy3tXQ(MjDnutr4YN8s6KwR zNu+YO>%BLX_y(5{7MJg5>3X0x@DqadhS<^|K_y1S0-?!jq(%&GB*Ye!( z8UJ5f^1BbJ(FFLMlv$AvCzu+!w2Ziucn(SeV*#uV=UPq?z?QndI+eBH?BCBvKtD$= zqxIPM8^D+prLpjHVJE2Kv_LEcsfZRPH|CAW+1v8 zASFXTU|N`nqN#dH}ho4*qRw$jZ1hpMxVYXWNDzKx24sKkJQiV}j<=u{C< zDN#D5Hjx-G#^|X?mk81!Al=;^0|tzcj*%NM7~PD$^LgIi=l8zhX-%9x((N_-4T_$`DsA8X?cQ|p)k*AH#V-l7vZoI_>#tX7m5G(9e%PJJ|9O)CG7;sTs2-j_K$2Lgqz+wFO7)DoO)uZ2GFWuk+h6OCA^g@7a2$0P z{}6M%*!6X*ya3&A6KvM{kq4pB&?(P}x5pLc#sgLOC4{OD$n)#qGMrzJuPA_UD`Gqi zmY?8UOTb+fPpqisuC8gv|3-VRjsf2h&8DMTo#lKIL_T?dG4h9*gup)3RDDN3Z?@`n^S0j z;lpRKV;27qvFuj97QRl&JbAF_U#lp=+>)(FF%js2-pjXs&=0VJg~GUlYT9}iaEA8x zKm}LyoYfL2X;5=!_S_5nKDrQ{I2FE2A+}+LK)b~d5fv4hm6eMd`%wgnG!u=9@S=|; z-NW&G%%DWZ@w8cJf#3b>&ojoTfsMq?Xv-2%*iSF|Ke2d0XOY*!GWOlawm7ytD3Kc{ zbL_?bWAjwYf&o(f?+KNFlKxlsjPhQkD~|6x$h*N?)F&)T8(9^ni+^r%^Jk1wtp2U!q~OXQ zMVFo}XTNs(uVh&Runr0J&HJ+Arh3hyhue%&wEYWGlHTLoRLy^9d}pH6Y<#v+6PZ=% z3;arep(|^ZOhU#ooAR?@N2g9^2m?e5tv(ORwanU9ttee)qbmKdS`hU$5nv+*YTwZo zV5~r1&h{RZWy!ENo(Xzc)7MetrJc!eT+sZlXRj(sLs<(W^K4Q{s2kyvRF|e(r*eDB zL)r|ppn*@bECu>DUAS5@*&K~{V`{f~%Ps3&3x$6^$g=gtX<%Q~-=X7eHQKo)kV>D< zvCL3VExf$rJ8wQ+*gxM>KuH*%JfBn-Vx(VQYFMh2FWz$}U)%wfgjN6q zbi?W-x>XE&G|h@`4!T*CsqsLZ6Sp^BEt+&zm6$AtL z4LEproG#qt8>@xJZDMR&@6t^EWc?mOjOV_L= zl*2)ME_}*H%AEd9RFC7({7FM2CU4)<>M>YAO*8EB4mb3%Q|Cw(|C~ znn*qiF8+l?CPy{$?r^YfS}ZZ{o$oKxPxAsFhF!_Cr?YAlZZ@Vs|prMzf_l7~}1s)dPCgrL0B^B@w z<-O(a)dBtv5F38}z^60|W{U5!V5SP-_hL<6re~7UdG6sJ0-C za)zCqbgN0AsIK%mcCwo2g1v93`OVp8 zes%tZCQ$T0_<%{$*PD{L+^>}1nDpH6kUFc6()|yb6^qKLkJ7eqwbj@42S*8hTi0V7 z(ezma@Kk(V*HXH`yZb%P--!)u__b{nd*OY<#4{}n1XU|O%-2~Nt6Aw2D<%#fINj zyQ4Q&qhrsVctuzT#6rH`qQ4yks_8La;wj&psExI997r_eeJA;1rFGBz8OW=?YD6;IAz_RR;nwv(0>NF zs+@%hA*YJQq0)Ogyg`E>3 z27tkL{ZPdR?^|o_;7b(%ITgy7s{V`%zZD-%O!@NUQ2UdJ!-3v&=PS65B7UBmKDDfb#$Kjy-G{pA@GrOvX|$0*Jtq%*ap8z6c*d0juiXcS$uU z3Pm7ftlwX-xnCVJ*=ws5q%9(t@-rlx=8)C8L#Xxbi{e+7O|R0f;|muEoB_oK>w0VI z(~i&B96PFM{NbwaEc~~fjeTQHeE+v$XZX*CS(SV|^@qa9Q?C4TlN4(A2v;aD!EAxE zJx|&b>M zR>M$xCQfoWUuztM24rcO6>Ywpp{9eqko&=TQ+c{TrGPuiI&f9gMqiuOFNdPQ4?fC` zykIqI9)KzDdwF_+3-NumPUb`>cg;G}iWTc#R-S>>*(ibYy54=7OxCLjpNbC3v>&K! z+}h!eIQR>=6?;$kr4)Siu5K1%z|4n5U>O+JIHQ~glBU z$guXYjylN}t}vM!i7UKn=;lJ^SA|oPzcJOj=66&_uRH zz?cTeGLP+IR|_CM0V zKOyG5vG5(sjV5*ewY7GF0!0f`^TYkoHi3e6V=LMdJ>s5HdP5cPpQt!Y@x*2$JwU|0 zI(lt-C8V^-;m_`n`|;;*iaGHy*POK2J|?3Rom6y+Fj5no)c6eWvvIJiYC#sd>w=;G zDCLMl!`s5tAgPjxF*#4EBaz>5X#tk00m7^^I?d%-jO!FJBP_Z?(#$I5fC8}6HDpYN zaG;|^`zY)ngnr?DEuf4)@b1ZHn|&!sW5Hpa zBDvq+tmJgFjgoFsvLTlgalW+GgXz_m#@;Y!b+VcXp`GGPo>N|UKtHh?G)LiQ``<)S z=mR+Wilf$k?P#^PDYS!*AYtEJ>3x|Z!C%DvV!!yx+5;=EZ{Iyd*NPHf@@Id(JRoGB z{DuOe87JmXNR%YwuSj}nmBt`*RqFE9cl0`jE{Lm4IsN^Rds#`v0}FzV&=VBDFywVl z>UbsO(Ky9v+g2C|1m6vRm;2h&%sMU^C`L1c zxK{@nZ)4GpT>Y<|R47^vO@iAu4hnE!2NvV#C}uKKih4o$Fz^YpWXN(xuk%qhI!vvG z6=QB$a;uZ`(!kTd=E+OUVu?w@Ka>1oaVUF+N#VTKo{L~PjxN5= zp>&1mQC9jJeyG<%GW-T2-Eq-YLK>w#S`X=QmdRZZoZ#!d*Mc%iLFi}Vw}Bs%QEonI zCGY3AcHie-R>hPrhFq}G2seB@QThM0@9`+U{(q~#yzdtBI4^qz_IHQ-vIw=}x65%5 z-rhM#Zg$* zo*6hUGu4qK#!7Z1sun{Qskf*E;S&DjCzrmfOqr%`ra2;HZ|Fpw7}x(AN~RihtNdV1 zck#ONX8eZ)9h(WIs!C&-pD~rO=|gTG2QwKIQu_cvh^O@5>Zmih_fyN0x)qVOB;}j~ zy~Vu?@Z23?fd~`kZk6RAJAO2P*NpI!xctz+f&o&R74ocGt0Us+G+)%N%DVWMUi(0B z8YrzSmJOnpXkC;2f&tZZdT+RI%{o2~U1=rR8*+D!nSo7VGw3nkXN38uYx7?y-#rgU zb7kmi2k(v5^Ya@jf{&C_=}VJyom>80W;!vompJ>Y5RO&zKbhG-x-b~0wHNw~M$cZC zKUcv8=wW)*jqm1sY@rOWRP)9z(=M}WLAAzn1U;?<5{KfU4p(``>PshEk^b$0v{(b| z?y%b&tFDG1NEM~UU`lD)m43c(F}O2kbtStiY`Oh-p;uUPc&+_yX}}GslwnG~A^1Pe ziNEF&zBRUr*VFyKT^*F%iEXD+a#mWnoc<5<)uS`l>*Y=_;L8(W&JIxgEEqL2IsC%e z0rM2tl3vL_fickMzlWY)*AgDy1`J^XlRrA#z5Nyr35fpJxD%YDltXbD&v4nDH?ida zGrzXZA|E%NMA#o13H+5k+!VK2wNwb@e7BNP5k{MW4cE3>erjC^K_3MnCD5i0a8 z(V9fL+IO?^OUiK)7q~jO%S5BnbglJfw`7O-7w7wm^e*}9C^?vZ_*?hoe^pgPG^K_u zZcjqDP!}t&=_RBrUcwPP4BfLV+ZT%s%+hz)Zz?blFo^PYsr5|NaA-={2LE9PQW{Wn&hf*kl2_?5y&Elv{MXkOUG^*7A? zr1TTTWV;{+Z(?KPs2*=|VI zarNANZ;-nN$k<1q3DuAG-F2Y_pG!V-=4#~q(4}lJma})GmGE5i7>1KBSB8_bX!YUu zDhNorn^F7ww*8$U%SHp=V6>|gr30vA>T{+!XhIU$}b(6r7RPXIWcUO4%X%oKI_w9B(CXaI$}C zBo1T>dBwQFgS!927L@k9^9mQmZb#XJaKE3M`{k|IL6ea&t%Irbg>kqv`e(tVDKWWx z_jgpU@e2H+IPLyy#reXeUV{+Lek<`pGhj@o^KgKGnoG}oA_qSAOG1&8@r>{&TLHU3 zq4Ym*$6;(1oLI7F{dWeBN=oiGv*P{ZX>bjGJAEr1hSmf>e;z;(1OmAXqVNj9y_ zfKv6dWD45QFOAi48Mdu|S0TZ9UyOi%#Oz8R=yEo`AF17z`U66rSX`DT!NomyKuu>* zld+QhR3sa-%~N1e6LP@uI0df_2>nnkQ z&CL>Bm@aRVI6Sdpi`>Z@6BpR&olkie^Es0zDe-qKr1+731OYf;)|USb^5YA}1nXGw1O z;@9+XZe!EP!|NSa+E1x=OcZ-4EUy8CZLH#J5=(6>0h~%XhVQXyaS>lepb|$q>(IZlcLegp0x6+t7_0KuFWEE_n`}az1m&=c+wx zpfS+OUM6IB3_TmgH|``fInCdf>g1)3(fACx`z2D_wHDYpUlJG&zAB=tn`p6okK6Za ze#kejJwY3GUe>P@(p+E46#)R&>862Sh^6ZR!-gjsuF|zWd!vWx?dR`n?6_Mkc zr|R7&eZDfBLPjGRy!)?E=l}}~Aqb2lnTv zQ-)_53MrjjvoIWRInrH#yfo&$iS#^3gGu#X@9X|VsSn>cqylJigReVG>g&$#`J0j( zG&(1xk^iFw%#6!+4+Tb+#B%gFzI79EtgBY9ws3JIXke=y?s6%sJfo17k&o3Zmc%Z4 zIc?H6kwUSjkr)%1BA*rE=}63)CQoN}+i$4=6A=KbuV5DI?MDM+JcAVpn$gj^7TN+T z{$cbFj zF#?;I1X;QSy>9IJ5s7@1$&uM+wOm8fHuB;=6Yv!+C4Wy8@PYzZIsZe+pWvp^T0H6B zEhcy<97M>2$bN%}7nG0>p0-;-Y-LVB3iaofV{W-JKvEGgxv_g6jjM_sGgGgrwd%E4 z?AY3Q&(N(BhoFJM1u>JgOfI%ce)i)fi6h zS}z`x*BurE>isP>@Z0)T9Wn(8E??2TW`E7cZ9|_-Ud$j-{UmIQr+dysEJM_t4P zw)A%5y9jvJY}CP~5+ogFZ+dtPCAng6G|PyYxq094z!OvkU?K?v%R)Q)m@8VvTCBsj z32$NVCHuY5y*_b`RLkM#k|Bu}{aI4@KW^7K!n@hU%EW}J`@t1sZH)qf*B-inC+Dnj z);fpUbQd0v`HLEUNna}2GZOWFM>)5@E$dlP?7zQz%}M}1+N>8|x+l_^znVC3&Vi-- zk2}87@qxF`b#})#y#4g(IX&*NyTq;F90VgI9>(XQ%p0!h-%^mk0<1K37g{;$S34}2 zf-kM&m1mmgg{W5(R~%gy{mSCO(;>y~v416BCN39qaQsJ~(-=rok5HaOKmlZa z`Eu&J$xcQm`3Y;|V4nO@<_zZc%PASX7JLm7(MTQ0cR&|f#o|_i)u?eCouz=Xw*7~s z8j6FHT1Z3iWr$S1=Y-jWzGyld$R7Z>emUfd2f?a1x8J!byEDLPnZj^O(cA%R$93NR zybH;3ThBiL<1&JNWyLt!EA{wLJb~OC&D?|9E`Le~oc#JiEVCHWt^CY%A4+B|P!N!Z zo&EKbVLspW{n+9t5@MR zD2lwR4Z0+7wtElZiB~3w-wurnX$fY|Zo4jgs0YzH?tQM;@KCoZ7KX?eDh+Vh%XZf^ z;F%l->xFPDgu7i>wV!)>@ptd*Di=zMC0kj~E%j?plo5O~qnNxrBItEG6Z!)MyvGbV z^-Od37y_yPgss`?l^(deBXa%YCT>N8qrtm>IT5r%!-T62O!^^AryRF6%J$rQoc`GQ z0w~FnwPQj;DQ}9qnVgtt5=>0cbT#oF_i#5V^Vg`QXfJnn^EFV=cC#YycoxuIKyTLX z&KxF=PKRpW1;v1fuUz)z(V0V8oinoOQ_bf9H1&1V+{i@9iwT@nY>sn!x|`qgTtqq)k~;yQ#0DUydhRaPmOg#PNX>@KIs=tJJ(dx!xdDfN7 zqnghtl43dmYdJqAD9Ld> zV>i+CtRZ1m0)YjRkMrc+!6Cd2FrqK}aYG&hjocoDyg?-ojA#_H8|)Ena`ndK)q&M6 zDuuI6*FjOyS>9)DTrR8$WjKVq>+v@n9AfOgh-}cBHn&9;Adm3~8ucUOnCF>%GV-Ju zNG1pz_L0UIP0Rmyn2r7Mq4gvnz4x<}A&I2PV1B(y%h~#?p*AieVtlllGgbRkho0m{ zWB*__Nwb4v_A`>GY*HWk8F>H|gM4k|wskIlhMuYn>+@XnAP;-gh0AP(V!Ys|jsRum zlz7+CQfmIDrRn5k$ug;MBDThha5;R2+}w{xX+^EZ9-m;3DhMZGay#;kr8MZ#Gs4)x zp0nDfjJE^6nS`w&p$tt2TCky}PuI4?0KxnXNBfK}hx{vROu%VSF=?A!ZY%Pc;?HOO zaogncp3NpNHwf93JSH8+SF^Me?BT)CyUr?G+k|YhLy`tYFLSBhkA|iPppzh`=XK%* z`VME?&6JUtM|RqQiLg$^&66XwhIE$3 z(_;ZU+17n-3CBSy`IDAkKoa(7$aF^fRS^dZ^-|A(Ld^hA`k*@_38$Q}L2hdF7LPXC z$EA^!sjBQ;=PC_T#$_*wE%%N!?g#Pe9QG#+3JF(}wx@`Cr_Eo5Y}Qdr$uI%r?y(o; zapu0}`J}pQC+v0PQ;iL#pUTV6q_Y}vLn?)OGh<~RC&%Xs?Go4xDGwX&O2w4`jj2r! zal0`B8zvG6X1{~md(f$~W{YrJ`^I;$Om7q6S!-e}?3_xzEK}F{Z@8!Dv9hId!)6n5 zwX&dNEdS{HuxZ&+sBZGq7zk;ii<)l;m4bSmDJN9Q?0yTl(EJ@X>psj?m{LYAEIM00 ziG$X=EDtpvmu0eIn~n$J;@GO3W8;E1)B=r5xuPoWICTOm+q!8JG1~B2GW)&rus6Y@ zo(qwTBK7Ok$VTXVMU2tkG1(%U^||JQKEkFUV)J~l7?=I@(sk+ikSAzT(U@H|uRViX$YlXex*uVEn-1CgXYd9fgt>K*3`_SF-YpR;*$sYEQHgMf-sQwpY zz2kn`Y;s!v<*6z=&$YpQ4Lf$>vQNlDqEmCOs_~fqO46_?c{|(~i`bhdAMblO5P#|N z6SR$2HtpTaF@pFHwb4aF#-A1^rAG_p1+R(Ht|pF_?Nl%pt{aYDmj-dd&225S9fwY) zpvNd2Bx5re1UWEraZIP)@8REDNkXtzZ!L-&3nQ=_Dd#&g(nzpUI*+keo~}uGX`N%= zYPx@=xZzwN)fg1%9Tjm*584%PyN5A3ujS>JuR0Wkfz@Pck*I@nDz=7ARG;e;%z7+x z12O_coT-|oTJ-0JdmrQy@oXmxNPTe!+xM7LxxErJSd7KGCBd73hTh!}-B~(3Ux67W zr!=lKq`0Ai`p==B2mKNBF=Fvn^OD1z2ewG}MFj$J{A67)vJvanUy*X$`~<&VNBR(| zES*u_EJB1c5f>f)wxP6Zocpk>m2!U>0xL zd;W;^$x-qO2_fRH=~xas7{QHh!t7A)iilDbKc8eLjfBy~@z;NzwSv~3?938tKwKK_DY5lHw=WSn_J7H#>Bgx&4t+=dJzszPfQ(f50fCz>bH8RbrQ#BRx~Bbp;N=`bNY05bx~3Se?VUk-E#Qpd)Ge8iY+oVY@*F1@E`o4vex_lL7t7?Nkto<0vE%Z%4aI2 z<$T>01x>IvAdVB?OW{bEviM}g7}%;l#dUnq7kUGud{6~j)a;}hDC7h#a-{A7o~(Ul zf3C<*T&tl#buom1cN(Op)YsIx+ZYq9htSDOw39^k;?bVNaU@j7=_XnDW5}QbMH|xZm?WS279Dk)8;@ z&!LPDQG}BA^G+_L7xiKK7{4T^{x#Z0(qzVP{EovS zezk3&)C#touaSwNi`1BxD-Ps1rb-7q-C6)ojc3*srwra#4}ya=c|av ztC-l&>@%0*xq7`fq`i0JmyP>WLTG@@aYGdj){9Nlv(?*SWYP%g;1;Nic~TNKA#HC| zTb{S=?C;+x1yN0C*bAaP@BAx&Dj?4!!EdN7`(jXDnbx)jF}A$9L98o34e28vo!x+| zTaX|fHXfOCTb*1dDW?Ff#P_7zE=vpUw>}azcej2J)0`<5bj8KVS^!;~6x|Nz^+b-H z$DP;FFCatujHbIbeFyU1t}7B?=Y12Gz9v(_jiSa9=!6=y>C+3;%D`a6pmk(jtw8PS z3=q|LGNYzEQl`4$fuF*{me0ET7zd8{I0aTrW{;rzJ*Q1OGZif1-Gu{gxU1}q+ey5c zX08rXop#ECyNSQXJj)?dL>~K$EP;kIFS0!x0o%wdx#MvE18%Rt_N>ZwwW{fSq>d(0 zkTCqN=6>kopC~^US*J11e528+m2AogvF}>ulI}zDSwNP0jI@e2owX3$6X5*Gh@ENT zawu6R#p4v;+)RjE}z@Kv?wzTj$W z-VFa9fjZNBm2j%-*}V3W5ji)L)Mk2q&}jyE0_LkF0cngUpwa%m%Ipkrb!jN@WfLZ5*+}%M7(qUl=e7lssVOZ&KPkt7eUGhoL zuY`0N)p@~2=Dm)m!_GJDP4eHL#2h9`XXh)!oGGH@R^(~puyo_jh(|&b*7TL1bugB6 zaA=}^v>%M3Wp7>bo#ACB7ns1YF-^OO@Y`jB>7>K_l>KXmqZk@i;J*0-yZ}+J$@*{^ z`Z-_aV73v0HXBao6fkl!gHk0EkVmU#njQUR494Vbgpq5QyI1Ul*KBDglJ~@(v|vhF z+_kWvO7UE21fcn4ko`**bz=78qVHt}cQ5;J2s3kI-sdNlY_4h4XH+?KhI-W1vh*M2 zd3iNpkB7$2b81*#v}JsTaRtRA9!@#ztL2@7Z`)xHmZE1s_`PIA%WeGrvvaKJ=}9qG)#5Z#nucwlBHsC6d5m;& z+%f06va-@{UBBUL@BQy5~Zvp+oc6eY6O^w^w(hTg` zWXzc8BZwm^5YkBTSsfC0v*yR=Dp8f9lPUuv^_s_-ho=X@5P+-Ti@dhS-d~_T;YB#}}i?!g?-4ObT3Td=W9x4!^ms zi@#p=PS*crjROp$<1AA(Wn*$OCU}xQbvTa?KKN5-EU%1+1IG%@c!z8a9%bz@mkccj zq=Nac2FC&htuJ>8b=nAKpoJo?#+}q@vU?z|Wk&^^TvPGKrxNnLifpzD~E{aR}Ry>XH`D{jh1r zmkobL9xIY%@n<_8(rw)BDki!CA^nmT1mA=~6nE>XbyW5mt0ME?SgO zw_b}_AK&ia8aezDFG*~rhgFj149UBrU-2xbzalYiZKzo4vsd4eqYv61SpB*YrqNJU=I zfO;G~U!;jNAx$c&MPrOzj(cuP6K&QboXVIu@J<#OdpFyucZWlbyD^C)WQ%<@c2&vU zZ^10o_x;6WiyKOw{?U~kS<4Aoe3cc{0e;Ep%nfA7OMeJ_6~pzm@+6_VvYW{ozWin; z^q^^xkV2jfYwH`^n?#63kGK~ejgUqBTGUKQNpOt~=@w})pBugoi_{<65yj6oS+yk# zm6*Uf;C&-03gJjnUDd3vZI(td=_Fy+n-p{m_1vVNx_0iZvU_^z9=NdHT+L#w@o=!n z+j}Ou^XV-G)H)1%ylrYC=c83?#zOeHX_tS_I_ZhFv)P;+JbQUN!Qp^V=#HV{U#YY2 zQzT()k@y>Ka(_A2UZ?GGhOZ-+M(dOr_x2fp`=kEh5uMF{6l3bsOHM%bB%%PelDNH) zU=9Q^7<=@2j5(W#b#FOWqSv-4`&si(w>;ex#8_WA>jT8v+Q!7`fUdmP*l3%tbi>Knp{Hlx(1@;a zh2t24O~BK?cgu=j)WvxUh&>%{F_v~=W4WiymEvZfZm;WN>bS9hBI7^w!N43)=`o&!&|0 z1MrQ68FA6NfuU0|=s3v0$jp^YG9{00T%J0-6&8q?9IV*-$%6IXAEKTu-6;{6f&X4j zxZPyp)-j^Uc+!Ip;{PkN!8m)|P0;CmC&xRT2gB_g8V~D{CYsDPD94Et>fMKw^0|sJ z3pb4Hs@BIEYw?tOBqV};dNlgH_S zfQ-H;ZGh4ZS+-T}hp8#9-irzd8nq1@z6-Kr$iqI`bwCFG{-Q1i>;8HzDZB}eK*Hd6 zKj4hFH<8P09eLP;(Q|>>`qOF$HTCJ3wqByM3~KPJ2T^utu%R3=8FB7^P9#W&<*728 zXBJFYepf6qslTEzd)y%aWn%hVK3?82)2VcVYdG2|RjJW-xZS*CKkxyn8TROO7v=Da$LKz9f(wYwTlTu08WszCLoJ?7m$ zh>?$Chq(BS8Z6n0k&BtYKJ8RolSjo_rwvP<{3*ME$8J^f9qgmTv$Zi3vdvhb9vr^7 z??pl>P>I`D!#)|9T3q~8OeR8Qi#_ghK5z=C(28MM&Yzu?rS)3=5Gp#*3Sdk`E^-x` zocLAMFP9jLL(3O@p0 z-SnT(6YNX%8s2|N~8GYt~n>j=1nW{$owwLW;3@3<@bV8rzWfeB2w|f6-Hq| z12eOk;0tuJf=6$FJTq3>H_~?B;kqxql|;urh$H+07Vv_3jE^ZW?-*e4S>|@jkmR0i zlz}X$plcc&k1SoU7l|vXr6AtF!@d*s7WW^e{Gn@>S6&TS(P3bwc$5t(G<8RI$Muq) zm%jGX9n!hZJ1o!tfWJWAgjk5sJo=yBTaL5^zwQ*cc+E6#zMQD0$$K# ze~e|moKcjMwn)n2EtL}O#_Z`OjufDD@#X|hUI4TFIle}C|G8s<7XrC|8ouHFb~)z=(k>yzmF`q|7wcvJl()#k!6)jWX1&O}C{@@eSzXi6Rq+gU4~p7u=T(!74zQ zM~uLy^0q=awz}y^zJ^&Dm5g=86kwr$Yb@q{y&xI`DRxmMc2(Y+mHxC0SbqpAWx@&5 z5IW46RJM}ey}&9fJ0v;%bwhr_^Lo-uQQb=Z8`ZTU_x-CX3>Q4Af%JJy6iE&4B+kj4i_r|eC~mI&U!;&`&pFg=+bsVMb#;2rH=WgJCW?YvTaD5a@RZAS?O0pOqY1w2gR67z;vkA zL2&R{YclGzN>mrAb%jZ8>+hro%Z6kPWU!TI;F#Y_YJbA7ZO_Pi`K*85&W3zORKrlB zsy9<-4w0n(zP8wky$b3~A4~iNvr$RHHx}%9YB+glIoL$e$;+vc$yjwa0rsG7fEKD> zxA-YFWxVRxKa-k1Pd*d^08YB2PO`Kaf2MbAeI)yRZSb*hUy=~2CVj04Cqk>Yf`}mL zV3-uf);YCXqSkT4OXGG};Gord4YFPV{!rBCbNNsYZ?rn|%yAnOS)fPa*;|xO*7Mj+ zrxME9yiE;(XTNUk%2#dA%jk36-z%uX9_|$npbqSg>xx7_f9np8=943c#8&6ZT?K)n z8q|d~+mFnhYrd78Diheo-HkfG&&$$IpRCw_oXyp406BA}&O%#+O&^L5bk{fDljZ8{ z+nG)mCy%sU?jXzbD22;;oqB~z_``4rgc`R}Mh>+uqc>>)_^*&Zijg{4*J$*{cXnEX zC_-Flpcq#{s#EFpaJCilb|sxE!LY&g;8lhOS(j04l+9#%zw5+{!&mrNloB5W9a;&i zYa;D;u7!79bv%pXIwu--5DZC0{fVz9D_uYT`tUOR1sgBqEWu-$%rUWbl$3Bjf6xjj zT9d82cW|VrqGuOvK|-8|>XEFY?oqMV9q2Z4!iN{*AJyjipcEe{q1J5((eff zGjMc&D2-ECoTaty*8ZK{TS<{2pilbmAi{0Vm>VmP-*(-S{+R>@wMr?wjmH1-Rf;>V zmECn5Rnuehu`HN2APK=hhrP|J0$uyy*z09CF9%VO3 zyJBWq0?B!hFPpRy=8JMfm+2c2OX4!5{&74-RXT+HOCa`<;3}tAn!(XO3Wl5 zf=STkgtbNXf++>{x#~<@QEZ2mzPk%pkSdK8TI6?We7ZNR`uGw8K*>oNE9Epn!B;DX zcDk76%GPCPnKB}u1YVwvqWv*b~<30Br7Nc<#M($51Z z>SVDQhMbgUU>-ZPzKHrCEkIg5rEG3`EQRc6+PKb$T+X$bg)J}R)oqrtvk*x_fP=Tu zC-+%_?^k1mpk@|wqV`x3Eb1d(R(j87KIJ;`*S-p8k+y9|YwhUte$}f80KJ zuMH!@Lgi6qXPtlke2q(qMzjeyDrvV9b)!R}e_dbjwuIEyR$<$cnCGX{wuJCY!~LrS zcWsMg*yx#JD7Kb$Le=;ZJ_l#wS<^H8;SX-xH7Qn0OTjbzyv6BpKmqk>tKT+ z)isSDwsqS|H0$HiegK$z$1T&9-_g7M-Mi5T`_DEulBBzbWY5nEfIM@E3*@@6!!RNqJMfUd)wuw3qBy2v%V^oV+Fmpez8-#x* zQx>30d5oIF-6EqJNh|26j!EnuHK6T!`V-)lQ+S#j2YDHOIDWY2*MQnTE30{1vAhZl z4G>4JehZvyN6~-aHT|OX*G)u{E7~JPR%W0HFDOp;ajA=lJ2cNsdZ@#c)w}-e%zera zLW3U6EmoLf=Q(qqT>x?M7;7sgaeyS77kv!bX3kipJWT2=`@g?T5hR@LGGf}hnlrf) zut;m}qWG$}^^M3`v^|5RMqrXq2HF2CD z0%fUQiIe{Ua`ZfntP2a_@l7uohHdEyNx0m9t30-#t++H@4Q-FlOLX=A4Uohbjf*Cg z^%ovfjuOv&fPcpWgKBIbK4o?X8Qu*Usognbt$cLZ?DIU2df01FSCqY@F}013QGC)r zD2!vm`h8Wkt^LQ+4>aXd!Zzm$|Ai18uTr-=+t7E%r7PhxuCE2GvQcY%$vcuN--oPM zQ2vBU_nw5~v!A{OdGyIN)ges7pWdaxKELRHVT_jHysW21OXDqsmaQD^-*N7Gn=m47 zSi*5Z=1ET5Vzt!-CEBvOaCy4lI3pvk_CXEzKR*>QM4OVBT~vVky7yl9RG-YPCgYZ+G8D-{n3yD;&JL zvQi@JgAzgvEm3}hHpxG>q3d1qjOqcdx<<$CE90LmGG`_RQ>Q*)H5&CN6cv2{azPjL zRWWHg`fA4#4tIf@7F#kaRmqp0H^)jTH#jvg-zFHVa21EW)oC$318p5{o>H9rvQ6)S zbmj8dI2{Gho@6n``uy%%$7VHna8Dh6zA})GH94K@zn4pcqGglvZru|SnQ9so3EdB4 ze7I=4*eDPdN-vO6RxLzG6sb90r1L+J7gu^|+ZG0#@c48;^v(I7!2Dx*AyM&KDq2yz zpp&{@`BsTSU!#zsw)@)OvII~`9OF3-S$pTJ@MN`tg{a-%J-eOewfK0_Biu2lUnX52 z-*|YworPtoRl$eQoZ!3W1~mu2cSwkcxu3c2Zl+WDYc#J|q__25eJ~pc_8+Ean?_nP z{iQ1hDK%`V~M2oyx}2`Y*)d_&HG6|WjE1AD2wc>8AsJa)t-vlNz&)+s^R z-h=ps%SrEn2vX^&6rj|sD>@7Fsl1)qDf1~dV4s1{810CdgUWHs60G2Rs$x7SQ4h&94Pb`r!jFIIito3;#;5_a&nHip^=$L zN9SEx5+*c|S2g~L309l^$S3b*(dPIco|X!FP~>AH)?v+t)esIG=(h2#d$%Dnu(c~) zrc~*QL z(g}Q#_t`C$4O^+fd7-t%xi&@C6C!$>DlQwQlU9Y)z1z>~4NU#8B6d1^2k8 zq1|D9X!WU)%B<{)o%d~}7M)CBx;86$atKW5t{dyh!`9oKF>Zns*y!Y#TPR}AEM|1hL1p_J)j9)^DEr*-z%oLD?FpQ&BV`(&F&8XQNrV54R5_mTFQT9dVhN`v8`LOMTy1S%?v+;hObI$wz0s4^{+{#m=9c2cK*-cQ7_9wUg5 z(UBy$+lNoChSXWh%+yKk8d2;u_6rr0#)D3ejmG97S5z{&d&bH+xJi^T8a$tUpxtq$ z&gQzTHu-otenwTG`qXB& zO|?xh4hG-b2z)3wY&%k z9r0_fE&WdcC*F=|iEjx%gA43=-{u`w5@t;KWEB4-rDPbsl7%E=pE!j_{mw{!w#rf* z|I}HtA6K9j0dHGU@d$Tr>dmLTY(1g1`{gs4RHv>}vUf5gR2RqVi#;2t3cQFwz>YSj zJgM|Rl(s%ZG9oM%Y`GYvfc})F8O>FVuLO_FJX}_1S-*SwN8)uqx!u3ZXIr!V!Npb+ z8!)?bcSa7AH0~g(n4|@SmY1zfQwcL;M&*N<$#85;{WQY$+3EWCK=)VEWPrVW&1Jq(L>I8u!M#FA z7nfJn-dl_l=jKfcn3f5*xqo(>lqD{5%TB01GG%!h29_&*w8fJ~ERv-8=@=fn6350_ zEtufj2@=hOD+0kD<>a@eg3)hL%5ZX6DCj2sm#gP36U(j(X_Am7(z?>9mWG3=4epX? zrDfX*9Bsf>--h&^?fBTOrMMjx4wXC5G!TU}b6uO(B}DWak^GXbQxWXdRZ`+KSHbRd zpU--Js0Z46lS8cX7;{bpB8 zm)c>C`Pty$guV^7{9V}gfTr@FpZ6`Q(Zj3G@Bay>5ftXWCw5Y6BYD8wg|#+WThlna zpa;MDU?8oKkV&l!MO$te5YdWxZJ90gZde{cs?Y@DP`*nu;P9kz&D+=qEKrmgtR1aj z#As(6=T5#Fr}L*;wTv9sT7X4@a$yfexqc%f9@RNeuALhLXa%=Qs-b0lL=Wg)(zh~ zQRfq%JC*vjK;Wbc4Be7tbm;gG?xfDqR2#kRKdH1c-kV~L1~l*%v!QV(w2fFpx#joS zuG)7{0z2*%L^}UjumU4)Su9D2U^5IX7y8;rajUC4e^Slfa zsI~>XXEmAicw-lmf(b^qEO|DExhn4uN<2rl8dRGo+xb{!X8s`qI`d5%TcD1x0DVTI z!3PeR>nUS3!}o2Y-&=tf)`yse7h~4vr;)Ml{&0e)J|gAw<0;mw50nnWhgTmqvtvsS z+sz-BGMpTX3ENwoF3g6;qYWDmR@15xzKER~FK-;8qDIqe^Ouff+ZK>WO2w?44b2xZ zV6+8f@tfijC)Y1?`~BlIqX#80rNHCm`Ulj?iF06HtB#Gt;Z<}p$~EE}+4kB-qMld1 zOE>oHX;8X9xrsn>(!TC%ZX7?93vmu z7rk)Yv1%$_tlvGGXVcaX%3>u6C!ldJ1qGV%l!Y$DW80@AIt>?cA*+O?s5>fX8~3X} zCdzEuATI7dFHLjSFzOT8$MAGq3A>6W>dPXt?~^p=oUhO6g{{;;ww& z*r2FY!YpX+ZZt-g6yn2-$7|j7D03p&Fm{*HwzS2^*1K8ljyZj2s-v-N<(gu(Ncpd^ z3xa3kt&4GN!(a%z5(grJQkSa$<+!p~W@Q?lP5L6Qif;8uZ+FXzD{XcPmle0gX*k$( zCFOb4&%Jt((8Tr9X$O%wTEuMSN4DsB#vfVVRfz*8h)}G0^ux3PE*lTJeQHrYZh7=p zLg|__to?cyhjc?aY0^eoI!B;u&4gxXsWjbt3imV9VLY3qyc0?=n(VSQqt+a&jTX}X zBod(-jO6!>n20oU5f%zT-(6*gtny@}xttupFzfAWv!6u*Yb(i~8FQ6Zp^vCT|F9pY zZ$}8vUNWum>$#q7lHK}xCFXuk9=$qVUZODy4EV(8Qvqj(^bF+WFawMPo0Fz_`6bHS z7TsuypMT4wf>3kxE}p{1$GRGNTA_-fKQqa*v4=Sh%A`IXr~YzD&CkosHq(j2OWVHI zCyAtcPG;n-P>IgNn_!+fYwELW8i6kOJm{oJSItup2^<-xDjY|Is<735HKvp_EI7PM zIpgShjpmYHZ#3_K6IMsIT1yjUfL9q421B_sJ>3r(vPKcst%X@~WPBbgzjs8$PY_W; z444G9OPsx~E)(=1ut?v$m6=xUM#r#p-FV+Uyrc~W$1`AX64o+wch>IeBRdfI?m^M_ zuFqcKPHZS6ixo=wydazRI<0=uQBoe|#c6SJ)<5@Uuz(>`9M^@)+$DWEG$#n=Ct7az zZdb*@Y=3eQV{4108f_r$BSXIw^ys_~adF!{S*6(I1}1P5C*K^s!^3Qo>|1t)N+PdY z59#_Ji4<(Aa?4p&VJyn^z`k)?o^R)kIcPYrpKIR%50IY;dpj8@%{s@Eml+>Cj-xv8 zJ{wv0V*$~b%pZhs!i32X}|NZ@C|^4m-mY9;%GPrySj1Mi7_ zYblO0RSYQPspiIH7z%f+;NOJOx>J>)7F{$VKWJGuP(A}O?R!K-ntW8yd`YhK<{6&N zBzI_f?4$UJ*V!TYC`P&#HjS5p8((r_J9vc%%iIci6a|p5?aXBeU1SRUg`YU2&sfpC zc_eCm`8+wB+rt|3fl~0-kEUupr=7y^R_#}8UWXh_7xAmEvb5~zWXF>;J9itqaf|j$ z1tDW>@_Ik5tAKq)?csGfNnjElF7OuR%4>tyf2!xslJ-8kXwnUxow%%y3js5vdAGc` z(;pswgTYmx67#B1Y}170C~!wg5)yE-P3HDu8Fpr7yG<{U^+uD)gp+tV91WM$PkDS- zV2f?Qt<=O1BoWC4kc!iF?}B#Piz?-?*rV$%-YYrpq2@Y+er?Kr=Z5Q9teG?-c!YCs zddW*F=fi7^#Tv(!#`TD;fttQ+roXG5o8zg&ObclJ4;NWj>kI3LPxnVwo}TQOqd%;$ z*IOQM_4v=auVm<7x;A?m#_vELwKaM?>Av$xM=Om4A9_Uf(%G9bwzaurQCd5Zt^6Rr zKpnmIh(^S)b7-^J9DA|j$uBaY!(@dm*~uj0f$|Q=={K(&UvH=`lt+88*I>_^dg_My zt!U;P#sjePougwqo@bNM@YxCNv^x9a-top2)iHdv^Gb;H)1ENXCxePP?=#LPuwAqAn6aQ>gNERULtLg{A zxIPu`*SWCwEt!Ey&O2+3)}|PIu6R+Kl_+3B=Cf&e_b~7AVB|thj9Kb1eTHAMbDF^3 z5fMK=pU6TdOB~-K&e7JDDvV6mY1sbuNRp3(IIP3eMznYHgv7`vea!8MrTH|}y=e*63 zU(Hyojd4Q##^p=) z-Hs;$us9vjKx?M5=>DLU8i!!PA8IQ;hxyp?rqh5I5>GWFsV=0$X++1?{?Rp)S46hu z8XKONs`EEM-==?9+wkrSD_BWClk54g%Z8>Esq%b1lUpEO7|LtsbakmP%oFA!z~zy9 z{}_fz7-BL`Ja7uNh$27Le=d(g$dWyKOhw9HMe!B}1D$@GKWo4&yfmQB<#Kdi`fV7oU$u(Ooed0kQS5GR zRO`;_sH#BRR!4UDdFafd16@U4B(DV&=+7N8&-W>NaMWM}nwZK;4Hj-$a#@cp-US)N zDu894C2RijxY>g=Q44$rL@3;o>7+G_;l|_q$K&V0Lmg2oSyYWi6pMxiSjx>Bnnd+K zQDh^4CmI6{hT)BxS@r)zlj(N_WPGDcEfF)`;+nZr9XR+D@626#b!RkumqS0hIn|~b zxmkOBEATr|>JiR@T~l#?8u%Qvl6HHAtC3f3%#sv{5PRnSzii|_Q`{$1!@4V=y8aPv zsV9i|FD5xMo42LDWHl=jYMYere))cua~AKKl56I4$GL`U1jWAv%hd}rEa&euPnm+? zt&_>|XBj6sn$1|vz&c%~U9T6P&XstzA^~r#UEmIBfv+`#!n~Z{8KtxU4&z|LjXeu2t4x*57=61*^Vt+Us81 z7aY+eD=bs8MafffV7+mr z8B%73r!E=P@A1#;#M$1&al92; z>EL!aGdIV{vm$B8-==&_syjNOpQe22e2I7;fnS(BK5RWNO+$R`^1xICbt4QITm7*v87dghS4ZgfOqZ6s zkU1q9wrNtqb|FX}%Bkx0xMGgWHR(83@72JI*#;|v z)!!}YrQuAvc=0ZnR7a=7G&}dDoD=1|YN;`8)xw{6_59XTz_eZiFTZz&-BeWy(Ap+C znj2lqb;Hg(S0DAeUz^UT`yMRXP1kyN&9>0BB~0@+o2@6WXHMBoUbcTA3iKh4d#+;6 z_uw?9MYkU4gsqyz>5RH9p#{DBeKj9kjL)6$ZxW>$9F!;P#2;%KfT^ByTX}r-4*fhs>s||I`@FO>@-~9iJh+>p3vYuhLdl0jS^#cZk;;u z+Zam#)$#5!AY;{r3(g$P3bZteQsp3dh!)kZx(FDcXeb2e1$GHyBA11m-G)j zbpt+5$9$=49|!#*T_{WRUiqo_B06=h!DByPAG>|XJ}C-J+pLC%D`jrTFOOro?N=k)W!1a&Xh0drlr6Jhx^@l>lG25QC+YkTmAa&AmQtFH0?~i z!?BPWtB&(9Z83$Qir-qWK!eTr{OsAVWVWgfY-=E#4X5jA+PLdtj;NdAHS%klF^0(6 z!{7?LxNxRVH7z>fykC5E9%5B(N1Hg(=%!#yZ{^f=p441vrePQ zc)r_hcpOu+8edaq_cmb52<=F!o6h+~>m{Z=Tpg^0I7ZHl2Av7T4qqSU ze5b^l=(-rc)<4`$355lm&RtXrd5R9Yd5>SAhvbrq?e^Bp&GygHmJLnCA`OQ26=xz% z+ewmBKIh^YHbk~lN59Xn=oXA#Mp618*WtV89CEW|HWyg5VCYja^qO!%XzIN6} zKUbz`8%_4}CySeRT=jgn=f#bq%@iyPA8pU_xw+Uqy~Xek)odxzs_rpmns#mD-tbO2 zg%G_ozpvG{Hx7e@Tx+N*k30`@OtA4HO26^9&8}#L_u&?F^LFedGbYV=ZTXv)_dO2C(Vq+zN7Vqz#^wvAw%9G~5UXKgJ z)iW<7-O;N)iJLub+`Me6zQ!`lPMhPR*0)o}>@#$`R#0jAx-sje!BcQ0YQAzm^gpXL zXIVwKg}uz_;NQY2Qvj?wkI?-3*Vd zIa#D|X5jP2MJ7kv+o<^ew--R1Lhlqm&uv2Z;2Wtp5TWvS!c8eTHeTv*R3kgFZNyQb zj>9m@Kcth{jFiB9EPwG+N~IF@bG6u#@xIqbb*!@uijPoo>0W~A;F}lFgz`HnpmLzv zbGnD=R5u1v;hoBr@NL0Eklq6&_0^VX(g!o8otx{4LR8e@=(i9Cq1yoMsIK@0LB0Sj zA_W;jpTC+dqCyXwCduXab-cRX`et)Sv?*@0RJk-i?SX_!u$ICYMUf&~-bFpti~Ecn zHQ@DAwBXk3Ygg=^XV)B133>v@M&EDq-VxVVb@k_~4U1xYQ9jP-?h{Yj#*4L()bR#r z&n6kKm>4%tjq&1`C-!8P&C~Z4M)1IQ_s<4S^qjB5-1JTste#TvFdXNDaM|%)65;7z zO`Lm;c9+H8@z)E@dS&)+c86BPl7@Uwi%!KtLPddlTxFn{v8Byjvkyode5ydpMJH0F%J9;%0R)&WI`!kfZHH$(-HX_f?)1J~E zPgNYPQPNIbEb(9O{YiAy*{{nwykJkB6ZUm0xt_hS)xLU2frP@Y-$F3(M`_roeADzM~`cUjFf?p1a;j3q!hhIeV82 z<-AY({Pl`x#%HsW#LmZVcX}nhT&9~ie((+9Qr_Z>ZrU0(fv?((nuYc$})iN=klC)EMwv+a4Zr_lBQ21a~-vfIf$KG61oRi~9)_G#5Q|+?d)InS8 zF#9BBl4mPeJYxF9Kb_hN+3035ciDto@DHb%5i4272GZ8sEpiPs^a^vrZD*OpnvOqf z+ohhNU3rBz{4+9bt(`_XopvY2?7YtKaN_wkrmMeuu79x|w5hW5IZCB1^7Tr)bf&qw zv~-d6yl)_VYgFYU-FwCTbhheC3~n57G@y*8X_&?8;P&Qj&0=^Xp4h?d(px{&LtL-d!nL33z-D>{598RA#sxTe z@_etx%!v5aUY~ef!+cAP`;%tN>Rk0c%x$fFH8!!It2%bQUP4M&MP#sAx|2&p#aL8l()cs(cV;+$$Ko&N%__9ds&As0u8CGgQ755I%~?1s8(CXphF(zZ=RJx<>Qau2dFmX+ z4YuH3UwRVhxr~m+yK;!)(qXoL{n-&<0fjBN|BqiHEU{%BWYk{pja8nbO^ z?O1Oi?6b|H2GD=_^);H00;+W!_2%J1=lpZS_MKNN`uA|ct+Dg*So5v((;_V|wXP!s zbtdNcdQV%-%d1ygRE_o4AZxRG7gnfwe@0OKvNuUBnV*D%X6D%B`YW)7x;Na_`A^Ht z#<@OLwjouG~x@wIh}_wH}8!*th+{(Eh@P zHdlD`ES!a6m|v`h_IJC_iAT&{OmIzNjdA%d*Y&9yE^n4iH55q{oL1+s+fDj^)-EXU zULW+j6my1%2-p`Z#oAO_=ZBMu${~Iw%m%PJ>68!0BSrM@@o{Rc^Dx9=HLT0ti=;Wt zzET2N6o|C1xQQZ)FCug$iTFPzSx?pZ41|p3W*1Z>r7muqXnz#}6ERyh5hUeRI{)I- zBsk${(kHw9i&XBa`?cp?$}}!|hNwS9#KRvvJj(zT@ip`ZdaFW#i|M1YNdJi1fIdY; zKl%3Mxn~_C79r@7Xpxt%&brPYXJHYR3*7mgUGHY|;)RQ0pX#5lv~_(f7}@-?XtMtG zoRoL?$ScjfElgj~bSR_R2UuNC7PaqM#auY=p_kRtf3Z@NQ>ifZo%+ypR+UQ zlqz3+oq(&c-$e;S+KkN`Ek6}LVgPE@@cFlPhm0&V?U<<;z1e1w)Y3JP|L$d<*GCYY zuYRL>OEoywRU0h+HBMlQXjcUjdaHQDdk$CB#eE#>*>u97KgIRMfg}22?DD_+%WFh5 zo-R*vBrKF!v(W2$qB|9fCXzk#C-Em0W^XJSTXhRI7R@s?*J@01233PIas{Kt9VG7W z%NG8PpB+l2(T;Hu-j^FPwKzVcWhty~6zR%I`Ed34CKQoeBoLV$4ECNe6*Q(#j-Bm1 z+QUB`DRUZ4IC-AGX&wDM*`H!&1)44|SJ+&YL#rHkNP6-4*zOjue&W1*-|}6i@?OZo z^riU8OD^txsuZv#BIgez6X@TywJx@{8Vf*zlqzBtEFpK=ph%Ek!P@kK-*Vy&>nhF} zG`nOWr{3uE2KU7FtS8P`Cs{d}5-Pw-+Q~if2mU`Jx_kmEeRs#@;xsb>Aw_-dayL{|;DiAJjpk*~e>L4B6Kk8Gg%nn2VjK_NWsypDXCqw70Ay8CaD*lqtoQF{ zg1Esabk#QN4hNA`fBA_(t2}fV8i3SiQ@Xkb?$Z724Y`NM`JvPrdT?8NwH9TZY)1Fj zppelN;NZ1t;cGMQtAqSr&4Mpw@jPW)1Q-g1a&FZmgrTXSqvAlrlR=NAv-o#-_fdUf*w6gV)W1%aPOglphwE2Rn+R|L2_24D!*ck- zb-@cOp3gNcY*2HAVkfuyea@vemaYYNbQd=$9CK9JFK{a3gaWS;t9AQ|qM!Br>SX3j(G~(n*C_*8eRiUsjos6!R zS&YRnhTHlkx#*s$jr%v#PDUp{B!VR=wg#0S9C1srsfpKZaeqF8j|dLJCi~wK_b9w6 z8@>+(6OMQh)(oaR^_^_}swL`C9ux)!}a2 zgH5w^rT`&1e<2`a(+I@|Wq7U}2H4BJG9@bQYma^p9}Rz5S|gT9CN@BVUY!-TVS^r1 z0%-vh^BQo3kV`<3$Xhc{)`JA8hiO3gBf_(=Jl6}LyWs9$5FI_N<-hZE`(_(9oaO3E zT&J#l_m7*KPWKW-Ew#b2@3QM4%mGjpBM}2oO61NCr<*f0wzmDn&u-}Q@m`^M)JwYl zp#ySQ{HDeVM$j2a1w`M1;SW*PYQV4e-c2;o;U2m1I&{p$>5s?oss6-Zv-ibwlvcym z!f0O{djikFQTBx`b|vj{|Eo}dU@(y|6@LPd{Pcl4eo=v@&3F`SB}l6d+r6KZ9BiU1 z5wEsl^7?O@Z$FT^p!Fv}jze!$#M5bRWvcnCqxeesa85Q}@k?Y-i~RI`uHT%0Vfapb zWA~^mWAo6E!eRC_WrglcI3u|Cw;vnz4@=Sn21Gqo6>B$Y{9Vlbk~G73vvfiHAJBhF z%9XSAdFfK<(}I_k)PWFcjIq>0Glj^QEJ>{`D73_e{!Pj*tH z2Hv~1oCSnv!C%q=!AS2HwZ7`pLp9-!K#Wm9dWJOL)FcyN+z8mZ^U3vzglkD56p__x zeG61Ql0Zs7T#;TnY_%Yk?Ns1fimY80{t`+f8ubmWQqBzwV7$%l)u3jOqqY&vJEVMV z!~RRi3Jhd}QY~nFtJPCYr!z_dv^}P{-FFwa`U-u!Lxvs>xBj{wV`ODr&JyO?b$dC{q$VS}fy$8+As*I@nFuY89`p%P>l2%vi=MGLl7L#$-~ z&+Xs{Qp)mI$h&bnei>Ib4%PDe&_6}0wd3s^PHCud1bl-*?i);Nkf z+dLDBEgkH8o0rWcGR8)ZgG7PhrocG*V}zYDEQFID6N#5 zFVELVRi!qhB%wI?&et`2=QbVi{Vu0Fryqrl^P9{>OnG=Rob=v_b?C+n52qddm6>&%S|NW=|DErClsz88D8 zKCJ-L2*m7>x7O2ZLt0lgJos=V#%EcbT6yH#opv^5=u!&X@{30D~BqXM`8_5#olz%cgIjxu49 z{ieVnEF#Rfv6kL2VMGQs;U1{k8c~;*{}h|4MD5emTTo_d>@m%~Qo3*C=FY@o_Hwce zN!ZV5cxSRSy@4k=a>ZU4SRRi_0aCb>L?Y%(j$C_%bHA>g$+Lb<@&Do{p{ z_>_eREc#4T_E`CgX>TG%r#NBF0lk*de9vj>?Wr9aCH(&0z5g&CqkXdL93t9wUlDGJ zW7KlR6vKxTn>FbhF9lc4wTjPP1I#VU*wBh zS`W?{1_cGRXq2_^&P=J_EVtX!e3!Rl2C<52#x~YhCEtKc}N5+RmM*vneViX}KctP(Xxpir>2}a)QHb zm)pBnb0#G)*f07{l1%S*!kIQgLG2xVpDOA{YR}N~hDz0K#t?)_O;(SjOKMr8v|*)Bp`Cdgo2wt4+FiCV!KyXrVPRr);)Lrf+%L$T}j`H zS>}2>nU__bfL;@P{V{%)q8s?ah{rx3c*Xkpk&8>>OOfx;s(g)_DQ2G){rRyfbltiMft zmqp7wt(3Kb$lg&pp{Z}?b(qX8jvHN1wbAHZb19k4g{4+;TgnLT0(7hR<8k!t&Hola z*K2)w!*O`DX8|G^zBk*#Q4CF;mj;pWXpI&ZyOM1tscZVy$zpz;{;%~Q8*>i;V)gy= z6)^}T!>h2dHI;ZMOtlgm>TmV<%x}AMrkMT5*2C(;ER|L5z8+KacWO>rsEs}JJPt%Z zzC9qX%JdPp9HO9l^@PR7eKn(^ZCS4jso8jL=&i$&h#X)k9Ef|Ful1SKcg-OEXhFGY zr!2YjFukS_jlp| zOV3=o=H_iNJtx^SxJ@0K02tUb<0bbuKe-YHDUja~?(2{6lWL)lkolRh-lVo_@>ZNW z0oBD{gai6e#w#1L?>LJ)ra4)w*g`kh<2C9s7j`okrGSO8ATSZP^-5&|@zr>?&}5+>-0p3f_$bldCiHVV^(Z`Qq}DS-RKMdOX#_%|0VSJ%gD3p zHiNLK!GQ9jUc&nQ=aT&rRsMhZyg}|ZPO23{LVx@WSVcQrf@t0CKX#t*jJ>@2j(X(r zvw!)#I>EvD4Zc8DFDOkp1uEB;mE6!$RSjfpPeI`5?0M3fx6C_$bqb-Mwo+OEy}Qb&YOih z?4>>1Xzd_ys6pknydEv&WuZHceI4G5gMuNH(G{$@o1@wcbf)tSBZdD=;s5Jg%f%8B zMntAlx>#%KQ9$(&|Kal_%05bffNXg7!QjUzVORp!9qNibqfpInMH=%Z7nH9#KsVX& z{mgk7=63fwnsnW8-{QcM8kOYtkCQr>za)FGt{Qx?YEqVqD=NOkS!G2MeP>+QX3A2l8Q1jp&<4X?Rhc)-E&6*5`CJ76Y?l}!C${8Rhq z69=JlZ)a(FL34SciT?n4oUH)z-Yb|KLiOH+{n=Z}v+h*J@Cf``^vYIv2AqLF{a zjf$TOZxviD*Ec?O4b2_nKl<$s%IniS+mO4l^ZqqA{^R@E!H!#sx3||1`m)=NWh^@> zR$s&g2#RsU?&#tx$Gls$2^)=ioAfWbkzZ(J@u{P+6D(A;s-cRAugL~Jl;;5^G$xHF z2n-PJKCbAm`9)LSjH`-`n&UyHpJLc^h97*HgyQ9s;O8vgRS}B+*7uH*<)mtHS>!|U zz;ujCx?YQp*!+LlJX!L0;o3Xg!cvJ@^tev#K$?56Gb`Khkz~{n1q6h){{^XvNj}5i99zmS14FV zDux&;0g9RD)?yt@Ag-D=UcbdFkg+64i7~o?u1(#IVS^k&8eTg^)@T9A3!CsBIVuY1O01&y~?`RT9{1YP< ziIEpd>iEm$#cSJA)OkI#w)rHHP^-uz&Rqr~G}CgUD*OMW4FJkp1>CXddY(|1Tp?sj5&w$v?@Tn{9E*)!p%D=5(USdwddq!z|R7xvO-P zcM6F}FUoYPj0%vf+ct>k3d9myx_iwN($yhyU81m(UfveGt{&`BvjF@2- zzItFY002CiG5m{KZ=K%)rxcUEQmZI2vK%E8mRId%btO9QfidP$3SB5D>|QGR zQE7u;y7AqLh^_=hDQ!)H9}5AJn0Y@OAZnYYvU`9Y=-~jo2AnWM+%z`iwnXzd$(ZIV zWfls7Z|*Cc)kjV)6eYlyK-{C^AE;I6#g}WpUaJLE+u_11^uW)rSlCb@Zw4g$qVfni z^d)IH!)RZ+*v z%ByrPhZ&nPcomiHY-#LKL@_8gG&GA=x3tJ|q?Nhb7h?-9io2<)nS2DFQV^O`O1%vT zxu^5vEq6?>@j_2QFnH!QY%&M6vbF|MO{TCSl(mj?`*W@+Zbgw9=^|2MMX z_33%?@_KR1{eij<HV15FUJL&|T#A%4_Q*D*o?( zC2N1JI;Z7N?4r+V1-_d(03y9=!ae-xmV4ph;?k6XG9%|gu9hjQAtRf*jg|Qw`IBQC zUA4zsJmnc@Ub0WmQE>{;6t2dHPfJJa8-ec1XN44KWyx9zVix8#w{#7H=J!=ki*yNTC`azV&PKO-%s(Y}ik| zkUnM#0Z&%OK?F=ehT(z%cmj71*hs-^yFPnICD?Aqy>wA*5O_40l0sHf&&ZY1ew+Q0 z!rnza3O~L;=taB(e8UpcE)uwtWv~4|tqppRBK3~oP>8Xg#e)J;*_TjzF{E4F1NuTT zlD;qa)VN*@@J;&!tGGAu%uPt)I&N5mdx*H2Tcc7!0bMqDl`7@k6u{s~G~+%o)+lTc z?L>{oK0W;C(mM?Uu;JdfY$=k?p>Mc{WL&iTiBSeP(t}!h`Q&dJ%`N(Qo)(#F#?*E( zbNCBKx1a?LpXgWL*cva(e|{tY5Iot5VT7+jcdt}oOiE{hB*-wOtw$l4FuyPSZTUw9 znxEs9&C#%LIc>&k-H+4+DuuJOQ5Ie$PAnV*o2q}AjWDkKl>%1IqguXfk{e?~1DAs% z7E3dz$p#IA<_HS`H8!(pPP>IhK$~V=|Fkj3HC!`Rn~x>O7e~f3N7?bnAfb1(7Q~hT zVenRrFljgY1x@$<6fM+xq`Py^QsN&sn;8z(;}H6*POXaV0*l6Q0VGk(#dn)Lqm6qu zn|K@%e@ko=rX1_`(e1vN%?<8=ys-7pITYiB?44rz=@261fr*C0``%iBT|7O$`kd5$ z@q@S2c`^I#7_|Yo@^&Mdr1@>1Kx0WAdNP0}YW)w||6Abx}c-NeP9o5czZ_8#i z;W24pV36+dj_luBJE?f4S0&vfDSGCw#1tRB5;9r<8_L%#J~zB~Vl4aLUcl88D~!6% zpjFud5%rT8y^7dkPj{wqtH{qIyxE@d3=VXAXrupu-=#u5aHX0S#pOKD9U6m(hqWzb zZGCWpc5~brnQE$UoLc?;4Ifc2*PZYm zJ0j}iTZ7Ro>$!Es3p;5gzwqPdw+o&{%yah*yepGhU82!`6V6P$63~(t{++OkJ3@|i zM)ARJ24@*d)DU$*U$^l=U_Ss|b4Ipk?3Ey0Wvs`9p1T8m8V#)#rYhh8E{#7y{Bu|r zug>i4#8709aIcc#tm4WBf<<)N%niS+{!0yEhMX_PaKnX5dI^nwuz!?0n?ZlU_OUjl z`%*p?Hx@73$qio)cQ6yK1}Z@W3O?a}0VzhqB_2qzVSfKnT+_I{uy_ODHG~x6zH3!l zm0-YEUzMm9G?@nmgJ?_eXH2D>ja%+37nJoL>>dx8f0QJ`AGBRTwBb9KDaVb;m3?e? z5_GX=p!3JrYq)U<``1GDPaoY>wQsWosPuv{EypZghmn%H*}_ zHI%U$y4&RYTNhc)m}EFl=K%02MDnXGj}_`QI+wi%SOm?N9H#8bl*5Lb&m6?LxSiU< zD;-sM+f|M9f(;!N1};e=S)WX@E`Fkt#+Pg6TMP}pRVB#|W>KcEYtx)$QYwU@A3e=H zd3R0lj4(yMbFwfYaS$nAozT@hF0P@&T*Sf`Y!#zAB2YQ$L5Y$WJ(_}9UsyUhLiF>B z^c>bLV{6`4Zm6u0s>o9-nBM!9 z+2@pKs72Vn{h08@dxZ+|_ton^*Xexf5SRKB3%cEz4oqQbcOh7&Ijw;=20O<*?nj^` zPcoCz(8(fI7_&|mSgNTM_~su%$yq)W4<%K^nPwdoj7@3cNkKYVT!~a~`5eD^9Xcuu z8l)2wdaqKELJH}?v%!-)g=UTdjTb{SMlLJ*5S7jvF>3T>^A4MqBKJfhV$6tCPX9nY zw)x56SG5=G7g#_J_$i!L+cj+z*M>5TOV{4g;FW^F@pZX+L5`0%w(3TJUf34m+vq?( zYr{X!Sn`?(PcPn}jA}C`385wgqsF6(Oqq|BX$_ER-&B=G4Ac<+HSi9ev>BUl@ynWH z{2U23w-F{V1O2-uX)ikqW0H!BG9+!{9q zN@ylc-?LXkFTG?UEy?x4zP;>L=Hqe!x(;RvH#p;0?#DU>Ka2y++`l0RskRLe&+2WV zEW!(Z(|;8_RNg-o($xT*wBuN7`i5-(c2MaBHEoI^jP$mafgfU1wB;zY5_GKTUftgS z!7clk0BB!Xhe6a{9WpYoevy6ll;HZ_$4wohT9BlyM#Ml_ zS9EDrng0nW^v$_WG&UQpj&>KuKjuMDXk_$!~<)+Cz(v7cGfdY*#cVQb1xe1WU+a_iE*h= z_Bj=KP=(H{XdE)vo@zqL{$P=CRIF7?>T`^fov8cadZwl{qdX8&$lZBRe8b>ba8S=- zDb`=zrcr0H6?Yujv%6I~;`$}gw>$NT*-Dv>CZD#kCCgvBdV;k}z5RbOc)&bOBg+C{ zdVSGkqD${{{#YJmx%rpDn>ezA*6ETlL_97SQ@%R|p@T$A6X3E|+fj}F{{?y~;bb!L zjFH~gJkrw#Ysl89Lf5woTUsv#4fi$E4-)V(3Y`k-+G%`0{7HfUY$%7DAcX+e{%j0 z1W)8X43YpGzynFAb_coc*QL8pocH?Tb)Id;JFx^;NSb=VCMN!*mkXvh`5`+Xs#7%={A;URg>wL=E*@sK150-x_IuQ60$WY~?E1Elxm4A%6@}{{t|eW_#h_0ekKNPar=E_B*_|SpRr`qLx|FF$~>4gk>+a4-(njFZWz3> z%*QjFN)TO<(J;ctmj*>qFQPR~2{mHY?15{ijmR1=&hZWNWw?XNs>J-P;7}9}*N2Dcvp{%*r+9*%AdZ|=)ng2 zK1m;?Ef;@m?Ca`}CnZY+)`8kMNhmnA?6Awq$E$6pG5X&<;shr}8Z93)QL6;*IY5p4 zfrd95F^G7QBQl}oss`}zV*amLy_38M1UX9}G$H(uZo%IAo}k6e=PNXaF*LwU=L^Co z+j;|DFoBzZJi=fjq*K~Q< z`n&^Dj<&lcIM1TK3Vkx4d?eXOh68b_>Un$Wtgw@7*|GIAG?!hLvm}1wn%2{-{-t0q z%lwGv^=ToAt{1&bYpcsKdW*(~F%|6?Um7Ms0fAZzjS^9ceU?!#9!LDq`_TNW-}7lq z<45YlD_5Z-T8kFCakW?R_3h_6vJK?f9xIz?r7^{|D^sKgl^W1D(C|nfP~R!|&@Jp} zb3X-iIw>(tn0uPRkBE&x2tqutgjbtW>a-fk8Tt^z>Buw}zV@`~o(tC+&&}n3Wbc+x z&oJmajVWI(w>QeJt$RO6wMr3yC#d`WVI%&jSA1#k=W^e9sQ}YZ5$(CB@Q-);#bn?4 z#@#K2OMQ!9YVD$8@We?M51%K@WRTf5@f7v2%3?*2IF~Drksh|QR~OP!UGZ^gg?RmI zF6|Gm!icJO!xz0V}L#R<0L1%&0rU#N^t->vb4n{}c* zLN9=BZ2M@bM18I&G4EO(1i!7@!9p;b)@UpcMJ$!h7|=!7^Fu?IoeqDTQ3~PwEnE+T zbPG#3eFu^DD0sOezUJX-cNVXP|jewj@_*GRucD>Df?4{9%n7zpSn$XE=x z{0>C^z<7}=Y6Q_WqB$tZ^rc-V(sFo>E|OA$(qoRRk42wj6p1u+ycZR!k-R|WW6MTF z1$=fhRvXPeedy}&qd+f^+#7Nr0*p)4SR3`7B05ThjZ_yE5e_X|Vh$T}-Vv4=P|zN( zcaJR;{w`8r$V%^PnNZiy;yUHPP4NVcVgxDBz+Sjeec+XMXGaBpSUbP$X>3otlwH}! ze4MA}zu%)ShE6Y;w?%5gpL`bbHyofWP_Qf3m|p)85u`1zNS2yn_T9M4qyPUD_1Waci*m5N7m;6%kyT5jBE%e``sQgej^2aZ(CQLfw*EN5yC z#Bkw4fiIo&dH;U@-aPI zQHH-mpR>~9N{y>>NPqpKiRlw5KhoFOGq6FLZiMNp9G?8yWS>wtI!|mq#}VPspx1d| zh;LN_m!6<*wJXEv?v}=!ipmQq7AuO!gKaNX^1&y&R;MyNRF%8dtC;zSsZpMtS*{K|@ZpwC^$D#DmGE zTA(ucs+i>E^r+XSW8tU97KlP3&H#4{-%d{p&I81VN(P##J2OZQ+uW zlRo1~twCF}5WkMN?W?E3yT9snGA|{M_9T!15lO28X%>--o^oTk(KGO@rsiKSM0=!~ z;Su(NU}3Y4b=m4^^_MdaE+{8wG}_864w&ZFoiLnY_*AK6TeT`ISq#a!uHu0gRm23WG^ z@;3m~h+oe&8FWQj3od;NDn=VJF6lzeL+jm1_>9A09A}589<%kaaU*3Fa=De8Ss5m< zeWCxE@wj-`BG|BZQ6J}?ak>3}UVv;IPz>G_jW`X*`y_~IKKmX$wIUE{58yfo5kvCW z2P9;#2;i!DM90D{glY#uhBI!cuGhnO{lDsKayB_Wf$tZ$Q_?A!%=n!3QssC63j_iA z`0VQuIzoX|rzsh-tYO8cn!eF?%J*-?fFRcaKenRm=3vfw;ULBWg8J4nATllS(BezP!=~nM8%}x3jsI&Hp zxx-QD%JI_iZI%$K`IQHEUvh%Ovl2H)!alW-w{{2=H%#4p@K0FFgypHIj#}rS-D2BZ zQ7`GHwgr>^<>9ypuvo;feGVt6$~~k!1u)Uh#*bB%}T3Wos5X?X#2arm!c%kB}kxCumqP& z92REye=?*Dch{`S)!}<4j+E)V?ybOhyYAwIubCDy{4CE3u-JA|mNn>((q==*P8lIQ z367TJ7kXgQy){J){CF+~?v$#|tJLis@0yxlWy4Yc5C*Q{k_pB2&Of~MV zbL;*2*{5K=udyrBqUW~GgRrstO8Zzodkc>K$3omSa`!B*fKzK|#vUAzIVCKg{fh>6 z5GYGIFXzL!aP3RM(!OILUye_GVp$%bp3)oWyc)G&6Mac>yiQNL*OwIfObvR#=w#vY zx|$*G^;uQiDYTKV(0zAI z>%fFeK!jJP-btB^=*rrW>Dyfu7r@z;7HN)~g!T2Om+Y1x2F!OS_Oc_{orGX@+r`ri z!*A38USfzwLe{}E^>Z$3M}T;L$jvLxKve~-TA5aiRm&kbb2F%@JnoTznyyPt5C(NT z-rCh0fTx;0?0+hEQeXLVe&m%lAeE!?Y;I*28_v?~{DP4JF^}zT=J~AFh_F4-E>2DF zT!Ml5lvp&m^z<`?Lb^wSpOIXMT&rT1FqMC|VusK!lV^HnHC7{M^I;L4DA7*%eubc9 zK7kS!$Q_~A)wR&xH`#E$SxLK}Gqk48<~2yk`2K$Hxt~ym?u^d7=TSH=ux5x<2b`Fn z`9PZAI}!Xv2&7di$EUXBKA8_*X{g*gh+G*9cbUyw&9PX8pi^ez6Vz7KOSaRrAK?b4 zpCqW)ld}(6eTn9VjZ#<9DRWUtt?|Xc^#nd-dqp~}KzaG)&g})^6#&82@Djlsf*|T0 zx1E~kCjP{38Yzy6T>>iKO2&1mYc1xav{GuI+VJxg%pM#^8-T6EhC zU2{5MBWYMp~tFN%J>@D%!6(UaYs%{EO zAj!#+BsH~j`w!%d#*W3@ua%>G53=)WLCFx$ykYVs z;kGC0UePMQ|7_`~eZtElvX8c|xp6|l8^L2^$(|>Z#o%Db-`YyJm)XZP5Zq;81ZGL} z^lj)Fq(i)7uH=GY3>zH~z6q)KC&gIVCdM+bsr4Zsp-=$dQW=5r$LX9}K33FA`1fui zBg*@W62C|cIW|UPWmRBPyQ(A0rs-K2M83jIsXg~!mGU}wuR6*PNZ%e4uN?BhEeOI9 zr99U&M~Ur+>>qM}JPFAsW@BTgxVKzDZDE6+?thDGb#X^g z?5EW+jv-a3nVb-XD}L%e7Lys}@K(CJIZZ?=pss~-s08XUJ^wi8d>ejx65UfBDrYA` zeTS*~dDV9QN9T@exvjLL+KObc+|t~nBDa_7hq+ikIkzh=hjfYdsn%=>|HtG#=+uwD z!^&HH#PpcIud}$Q;@SW$Z-hoi&(DZET2dDp)Y@@jQ=KXy6uECRv@H8QjU^W$0_;)K z0d}|gT^32b84YX73p;@Z7c;lkRjtx)nnQtV__TJc`XD(A4TCf`+dWEf&})AYubW@ju0uzZQtOe z=HcgEbsR95cA`d%qllmxW8_tomg*rt7@(wD0ioX?f@b_x?kHiN`2s49;^c@|fh}@& zXz|O)inGX{hL3umjIFj@dP|q&gC*Ht* z3srFYiSpJ1^D%g9O!YJRoc2)DM8n6|WT!~__-yW8rUVn=?pV(mqXbH(s{gHEYI~0G z7&ighwEWD!qFtbV+2gUSZ(mU2!tOuh7o$J6i?6z4B^ht-UV*ZiylpB!-+&qqs&!)R zG3Tl8K9C2Bc6U3dg%YM0iXYY3gCsv}41ubBP)P}D*?kpQyIHT6A3Q{$*-8rF(3k>0wd1~2`9_afxkPj;trz~Z?8#ExEq;{*_K)Q6v zXARQy2w=0h>zN-vZLWYc`+01<>%oLe-1#3kOYeKl_ssXzhraojnt?~)##Voe6;$1_ z!RJZks^#Y0H?Xx(i7d5Eb!3x-i~nKOQ}TDNzMjlQHsW`W`@5Z|%J+YGEnAANS5Pl0 zo70Av=$)-Q-tUNpLUcyCJ#5pbYhL$@!d-0I#k@Q;(#F~N=)gs_A)}jCa&}&Sv>!Uv zaP$jur|R=~bKcoNVphLL?#?HddB+6P%}sUxM(oIrrm}mRT_bKRl^yxhr0vd3CCg8* zVA`|2LGm#*|7fRh%FtUu>ELr=*!`tuS;DT;GxMRN$9fgovjIju8Cv?U4_MU`ih&95 zw&D@}73uD(>o&C6H~m{*&IC-Cx+4iYjLV_=mM5K4ud_Mo%N9RhoM54xl1Tp_T;3Z} z(d&$Y@}<8e#;k}3V-lLa)N*y)U6i{iu246-Hk1wjQB#!QD=ZCo+Fe)p72~o#@XaS) z0K--6L<%gT^7Ph9O1}2`a>1vcl! zo?)BS0l3a%xP{1oTOgd(wKSX@mvB z%ibaD#}R41?1SQ*k9vicaY~Q2diYM81UBfc$tjzbb<#@DfVvmV?UxK(kW02MREjfG z{iM&!RI7}8_GaO3*@6I~|8c4g-+p>P`%CRK5tsl7a&k*UEdeWg8pbvg2%oL7+cesn z$hnbo%j{BMw&!b{=UC3CfMty&hf~U?PQy(*!!V|Nr$TEjVC}a7sVs#{M*W8Pu$tVZyzZ0W-&aZjDp_efRVS7ty2nQ4 zhpHmEVI$%6{Lh~$U^C-zGcBa8NTye5Mz9D2i4lUHa%?-tVjrj}sa&;Tf4qd=EkLLo z$5g?Ay?@`uet|nuyJxWzhM1f3WkwMsgzB8pea0C64Mdf#owJMgjge*3Way=a_vcvI z5bmB_R&es?hw)@3E;emSUpAbd1BB(1&v(m1^(0UuK#eP*%Q^}S?M*g(EXl4OHw!hD z9;ymfZeP1PYY))sCH19n(KB@o!S{lOR|h~V3CxAn4*H2AqCpksd}SP}V(ptcL^R$s4vC8p;oYLK9iF~o>r!)f$8PqeC&GI> zGeH1$_%IX@+&z%X-a_+r;0P~BRy#J0!*B(J=Zij`}+i)gjzAJPGtbZlnCC= zc!IM5QvKLw4|s+j74u#hmt*Vk$#$LbvFi{|ZZ_)N`sN0J-J0a+u*(&>!CbV-FD0@BK@WG^lzFL;-qwM73@VX*hN5TdqnipyoCs#M&djUvBK z`nG#&&R70e>{`bB-!8CaR4-IYqb}?M)of{%_t$mis=Fy4Os1P{Tt&7%aBUzqV??O) z7N>+{QPRG-Zn;H^Xcyz5_~MqXnaZ;oyPY3M&g3iMjVs4y!?lXU=?#^ekQtq}#U1uo zWv%=I&Yh;!_01r(YJM0< zzb^%56H^U1h*OJaXei4jvUGv^BECuL>M!4hbldpEx}jX~*zSxg0iR(DIyma9A9~O^ zxy#D8&3^u8uBJQ8YXRbaL~Hv*Gwwe4S~J?E=satbwdc87R7FE8h0MY`o29R|%wBpA z=Ah5$i846(AqR|aO!IZy89A)JwK*s-ZDLKgatTe$MEIuPxv1ObEJW4HGc%lKg;ULKHl=B^cPdTzw|G|wpPLaMy5QdND0;2=ah#&)n6?<2Jsy!2*cYVcd=r`|NN4{J zu=mM-=Ua@qi+9KCD@U&>KA4{wnp^djRPrhp**tZIRb_kEEpiom?x!i zP@7Q<$J4=^zhLvPwC9Lij^g~eLPfsi94|>Km%1o>Xw*fCYJ_gyFcpq{DIMr~g)384}Vm3GEySuC`nV!yl= z>wBfF`=?2wi={LT4x2T;S@AdK;U5)r?fg(G`hTs*r#v|f@rNQYEjt5x!Ao-|A`eoU zkH|Hl6@~P8{CteMy4{J?d8DQJ^L3@oVJe2wmm)JbJ*}g#zrPu^e8aNMGIZx;b;O1C zbYRAT8t*m0%13Amda$a1=bIrQNOVKow9&%N2$bSp?|S0Mx}nQAD5q(bnU<;+Y^*Hg zx&~EQcCM65zLKD2Kzx=OY(l{EV{sWPv3zUJ8p?@Tq2S()NNI8`>0*-YDp!uplSvkziS#yu zmsRlLC<~bY)AvzBkFby+I7qT5WI;~^xnLXz{sYhkOwROZJ*^@M(?t22$_IQMr~61Q z9FEo!k{$Mcz?saB6V0vBdLLVZeQX~tSbErM(&h4h@LWT`IGI8D932Rw3>1EfTG05y zFq~yHzd;*U_QD~3Iv*cgdin0dD+#{!>QbSg?hVLxx^fP$ua?WP2UEPMaeqZ8KM70@ zg=k(m;F+Xw@08pScSrmh{z>U}YQp^xv0dEF&GldCBK3FlyDskvsjE@8l)09(fMGkW?rKbq-SE}G$Mx2@k0UV zC3|+a?kMbXHplrUfnU~rocOogHL?$)zs!D_s5fo0lSfOyw3~hzUt#JX^Qm?Q4BXrD zzjuztbx!Ia4`b$Tp zb}}OeVOYz@qZDK3L5v_c1fTD#=&l$iO1z(yYrpw8T5(e^?L-Vb zw_Va>#Hrj`=PUt!8wfY3wc9j*z~E`F_hkybf!afC+pByh z3|grgjeGwTOs@IpBUZ3#*!I@wnFyq3ELXNcCu}5$ia63bu{7LvRcJf7+BP>jD^4$# z0zI-)-3jDN9G_MMfdmzIjuoT8O>w(he%|# z-&wDsGjlZEBKjN5qZlfU^$GoYamPlUKKC_|eg~)|+_|OeVn0<-uMv|_$u9oYD89zm zU&*`Wy4|eN{RBOc1oEdg%c+6vky=JFcg;oz!=Pw~IZZ%o6g=+@zb@&_ynT#-+#U3) zWJF5|tIe@Wi|m~^+k+e7etHRky2=I^Ni-{xrx{abU3UM#r`;^l>2BQ6RbYx5h$MTD zvYO7Bli7d2s2s;DeyQ^8hEXbSOb{cMJEJ`j zufC2g>@!C#W33{M8hN%p~PcAesl|C97k;x(%#?2FxgE$PmaHITu92prU`3aX9=3K&t(e#k;X;@!S0>*RD z%Nc=qo9hx&W6zAq?E8ByXlP7A3x0o11044)2h!KM{FdUu^c2QV01FC4QZ9`4G<=G6 z<*Fh24y395A3%rYT1nBWN7e~uhTXeD+y95p3K?BC{kCQjS%E7MG^L}tPil<*$;|B^ zs{M>AKH5rt#39^OydrX|)LqQ@Z&9A*S>)0HNWV?P_cBL)L4!~20)W@dhHykD%o=eqxyYK9YN|Jh9hV*l|li# zolw&EG+N;nD0j|v3G}YEb#UnQVrM*ALb|QGaYVPObYpFq?^c-Fnuph#hku^m&>uk! zEhedit!PiKE+3bv6D=nO&6}_IxbHNtz5P5j`p0QT`Rv@^Nz=~L+hm^L%hcH zi1=9N#?T%xEPJn9IoHDs|2%i+3ny|oXU7~hL$F{zoUeQJV0W>;_2G+)|KPu=m7#`6_(12XxoPE)so;PT&#C0`mD1+Qo3P^RFD9Z+_b0C-cS5W7BM zHSy(if8(GW*l(un%V9;|IRv_A0;(pmvQiEie*=+!U~@^^d@My}ESizqz4PWrI+LFs z`%Gabr<~s#oeJWU_3v5TdMy9Up(ru?YSFhckufL5kIEZaUa>DH=1;}<$r9zO6eP_& ze$0~9{9jlvGk5spr%30kf!0(#gTy+ev^F3jzzA-Tr9p`jwt$f#7v8*9zObTalz4F< zm!~ty)*>Va<;Y;-x3-al1kwD1X>&1IXVujJ<2S=>^BFty$K<0Z@)xNp5oDaWjR@J& zL%}dw#742qe%bZy7;rVPd&7L$07m&%6$9q41dWxtKLLJ4+&OY2jJ z`KO*pcapNE@WO@Yb8nS3e?mYjsXAB0YNc=Eot*vhQ-*N&R{DMt*YbwA$!#y<>j5c> zG7rguBOnSdd}H0Rg!|%_9&&gFve$tZyOc>&OWfR>@Z06XhOO54-evj@Yn^3?IP5Ze zm^M4fvE1ObVxa@IT$I$kSSF|vQ}i*4P(t!aZ|A{u&UN!I;*v`QSbOSgNa8r)qh-}V$Uym4Bfevzv&Ki5m3ozJUs-Ai@N(AZ6sE94_J&qxK+4N3oJ*DCU)Wrq;42^5 zJcriO@(Hq(ZwD{7GmlLypiRI0ixCEq38r~JVymCg=2*O6hwpJ;>lEyn-#O%1R`S$l znS86beu_O}`q#~fA31%tZJzm2WF`NSO%2{!5ho#w&y9~^D6~gh=H4Y`?%0ANj!PXo zQGZmwn^|wFFve-%S>)z5A5IIgHr>hmSo>{$1;AZT)ZXd7=RQ!GA6d5R4{j!aIt09= zV>Th-h@JNiGo?}evIC=Q6*mTyE=DAcu*iTmHARL3CoX}kZ+=e_Cg*X(M;F%K=5E46 z`FTHxj$iBlWunV6G%N0hp4@19Y>gd16A>pD`K@$_O)`-ICd;4pn;!K98OXL3ByL6@ zH;4t8q`$QS9_==^GUlK9hoCOoE(W(u=j}^Dx_3#FMxmVw%1Hz~Z1$Bl)a{>i+(t?2 z@%V{X`?8dq)3H2apCS#LNs2v1BDn7B8(X*bR-Q^bpX+s}w>9aNO!3ApPhC~NzAXI* zn`btQ$463EX(jyW!6B7}1T)?p;ie1fT8HjR&FydK&CL7c)_CRr{!0#jC^;Fjxf%K* zS9$CKN`Oszi;0OnLHFT(6H0(A>8QB7x1Or85<7=U>V0?A%7)Rfono68W;3exEJveM5y@{*LYBP!;3mY26J8krA?;d#^=N9VoD+A{a( zR``E#e+%gOE0_zMPtpnfm*Add`@S`_k4|eV{0ymN;6u-795>ruRsaVeC_Q8 zK`!CwzygT}!xjlg!ooi-UM}2S@B1z%IjM7{q^43r!bdJ<*t^@o&xDB)vfll!XTi_N z1n)Y_mfP1`@3yQ}WB-uyXIviU$_0!wphaLKYYZ~?=zcLUjj`j~RkoG3ZABM`%iP_$ z#eeNJf5bLAT)rc5y@veNE2CU|KOnWg(4L8v_0;YjOZh8~hhcqMIq-(RT; z6oOZ~QKat35AFxM|4^;Xt%aUd9DBjMdpswl9kgchQX9f+#n>;rL!qEOXf#JArwQAa zt%COv9hoL~C%)Y6vYMB=(5)lE2Cf;W1Qg`h$?KL&;R`3|5n zI3ia81obaCW+E-xTJBDe4GXZmEYE&qFFa|a|DPG}%aveaxjv?%?9$42GbNCcFE66$ zg^q_vu}bKm_tVa#xqWjZ4=IcmS|Jmzm{?d91Gr}>%=I0jl12kEJ|X)7h@Nw z*C`TeuKZTrUjZBsvC_|Yw~hZU#Mhs2S|q>!*I~xBlinXH{V#-ruVi;!pFGxoMZsFy zB*DwhY6K1XW|pwT*@8yEst)$uQr+RU5a@|2$WmJ^iB}#&ctJN;ua=Au?Z2p*o^#SS zMg+Sux0C%WKjPNG8$o zTtvuTs{Eq$Gh%J4h&;*U^c^-15eIs_yhG#rxL_D17uL05gg_KsRqcTS%ISg@>Q~N; zd0=GW&i`?80-t8`{Ysoq8PsMiO__On_!H8Uvwq%^Oy1A4)tZLM%$uvK z{TA2Gs3AC49)srJoyhTd);1c2QWvZmrw(gqIyRs3Y3lsq3r_;o*p} z%b>CGqjY@5>VPMeYuHCCD0ldRbPDvxo7lsjr&Rn=NujBGo8~X*z|9gn$J7fjLKJ@j z*BA@D#}mPDmfs3`^HZ5Ba&6bJ_F0XUPjWqhhP!3!1+h4Lfb{N~0;Mj9(nRP}vPL>F zK$$GM_zJUDJJvnAS|Gt-WuAW?cVH(8udyaJg=3%~@XipcV{_qY%V`@wbI<&K?>N*r zjWu00J-2#MVWaq=lIfY^8AI^d{`iTB ztIRmTT2jGV>HWtq$Y4e>Vabf8+rwtK&W$ zjZmcL`t)rKCLui7;E7Kpxg(fQnED2>Tn5;8=sozzpyvF?$o9IOX?pr<>dXGNGnNSb znHt(#Q?ztZ#<9g}YGoDg)%^al{(*l&t9)$MSUV<9(E;z99@ouODd}t@Sa>|gE` zBOs-{T52i2h?85Au~oZdNuo)-+-(u0Gml8iyqfAxF}L2gEkt-&+^d}Rt>P)=K@RQB zK!cvEs1Dg6CupHSrID^VkC@E~yxa2kB1Dsf8Q5qXsgRkanC96xnyO2t%n6DhV{Too ztmlfA`JE-S<{itNFN3R-i3f*3+eJT-e)`G4IK1^)VH=-S7Q2iFup%)AKHHS}fLbj+YvBLYYwu4nLrInV?4a%9 zZzmfViBZs?FJ7AIHG7Re?xyGvZbp>m9tDN|GsTuOzGN}{%c`i2yPvU27HBL5^FBNf z*n`48H%m0GzPvf#(lx7PA6K^n0&8nG9IQ}c=*7Q_S<($>VF0n>94@NDrehHdcJJVa z-lQIBx^miM`2C(qn4(wJg`msz6`y{Ng=>7oT?tkHOVGbBXt}dp5l64yFBXGM^{NJl zy==u(iTxB;_ur6{JXa+1r;`!A2jhqVZFCjKZ;9mb1vA!XGV8z68AHIhLlYAJr_D@v zL=K0X&2QUY*q`+}!9ARr9cfYCg9tX^*P^LG%y((*9|XR*l>@jV{!}x3y5f;7t5(5{ z?1h`@al9kwgmGXRg8uLVb{LAtMDqRuNa$&Z)!x|k%(3vmaCLWnUlWO0h%K3T8YZLp z#N**dWb)6)=s3ag^I&2u!zc0bHy1bnCR$*y)>{96JLAQz7pN-k&n_B*1QT7!|4Pix zY1#)I9UoLLbt>spSqyW)5>wTl4=RhLF6FoG#NUiiM;Nc<@cgaJ=rJ=D7B&q;ZD)cG zQ%cl`%<$^m+JDmiP6+B;WJt3k<)@AZ!T;OyslU8%X=KY&BW0(ef>Ao#!jgI#Rp6nB z{}6h5e&eCaGEJ(*aO%$bDZN!i#=p23(GjIn<62WyX257!r&|%{=XVYc%D#49UXSYiFt1Fs2}qRi45jl;c&~gMiHM|4}n; z@qB+tS&DlAPu|{>u&IW-{KL&K?IZ3m>Ku(-V7A!O4RW;0`FixTcYE3It*EE%q3?2< zw-(#YYr`&hAKhpsy}skNk4$z62}4&!2jnLFNc~e_ZVX=BM{s5IvmegCKQ3-j+i%NC zr}(k9neSAwyb9wVe4u^eAfO&MDL1JC<2uBHEWnCWpM$Wql_ z-*Oe5ufd3)wmmXSfd}xR<1t6=Jb#kR6E9Kzut}c`bza;myZ_W=>`U_X^rcUk)m$f$ zn7U3t4Q)5oN{ZT}x~}3|!|LDH`_5f?JN+@W<5oNU6cZDjelx<1n~90(>>n~e!!((R V(xa7PWEn@8bTuIlD>dw1{XbpJ1-bwL literal 0 HcmV?d00001 diff --git a/public/assets/flux2-dev.card-poster.svg b/public/assets/flux2-dev.card-poster.svg new file mode 100644 index 00000000..dfe51e3c --- /dev/null +++ b/public/assets/flux2-dev.card-poster.svg @@ -0,0 +1,38 @@ + + FLUX.2-dev editorial workflow illustration + An original vector teapot and a four-stage workflow diagram. This is editorial artwork; a generated image example is pending. + + + + + + + + + + EDITORIAL WORKFLOW ILLUSTRATION + FLUX.2-dev + A prompt. Four simple stages. + Morning light teapot + Original vector artwork for browsing. + Generated image example pending. + + + + + + + + + + + MORNING + LIGHT + + + + + PromptEncode inputsDenoiseDecode image + + Illustration only · Full-model template · Image output not yet published + diff --git a/scripts/image-full-native-template-candidates.test.mjs b/scripts/image-full-native-template-candidates.test.mjs index 7ed4cdfa..7b3ebf7d 100644 --- a/scripts/image-full-native-template-candidates.test.mjs +++ b/scripts/image-full-native-template-candidates.test.mjs @@ -38,7 +38,7 @@ const expected = { }; let server, publicTemplates, candidates, builder, exactness, groups, operations, starterRequests, flowStore; let defaults, fixture, backendCaption, backendCaptionBytes; -let readiness, usagePolicies; +let readiness, usagePolicies, quality; const backend = path.resolve('../MoDiff'); before(async () => { @@ -62,12 +62,13 @@ before(async () => { }); const module = await server.ssrLoadModule('/src/studio/templates.ts'); publicTemplates = module.STUDIO_TEMPLATES; - candidates = candidateIds.map((id) => module.PLANNING_STUDIO_TEMPLATES.find((item) => item.id === id)); + candidates = candidateIds.map((id) => module.STUDIO_TEMPLATES.find((item) => item.id === id)); assert.ok(candidates.every(Boolean)); builder = await server.ssrLoadModule('/src/studio/templateOperationWorkflow.ts'); exactness = await server.ssrLoadModule('/src/studio/templateExactness.ts'); readiness = await server.ssrLoadModule('/src/studio/templateReadiness.ts'); usagePolicies = await server.ssrLoadModule('/src/studio/modelUsagePolicies.ts'); + quality = await server.ssrLoadModule('/src/studio/templateQuality.ts'); groups = await server.ssrLoadModule('/src/workflow/visualOperationGroups.ts'); operations = await server.ssrLoadModule('/src/workflow/operationContracts.ts'); starterRequests = await server.ssrLoadModule('/src/workflow/operationStarterRequest.ts'); @@ -120,18 +121,30 @@ function build(template, options = {}) { return { row, starter, form, graph, flat, api, nodes: Object.values(api.nodes) }; } -test('private full-model recipes do not alter the historical 54 public image recipes or publish proof', () => { - assert.equal(publicTemplates.filter((item) => item.example?.mediaType === 'image').length, 54); +test('two experimental Custom recipes extend image coverage while preserving the historical 54 and publishing no proof', () => { + assert.equal( + publicTemplates.filter((item) => item.example?.mediaType === 'image' && !candidateIds.includes(item.id)).length, + 54, + ); + assert.equal(publicTemplates.filter((item) => item.example?.mediaType === 'image').length, 56); for (const template of candidates) { assert.equal( publicTemplates.some((item) => item.id === template.id), - false, + true, ); - assert.equal(template.example.status, 'blocked'); - assert.equal(template.difficulty, 'blocked'); - assert.ok(template.example.blockReason); - for (const field of ['outputPath', 'mediaHash', 'runtimeFingerprint', 'verificationTimestamp', 'thumbnailPath']) + assert.equal(template.example.status, 'unverified'); + assert.equal(template.difficulty, 'advanced'); + assert.equal(template.readinessPolicy, 'runnable'); + assert.equal(template.executionSelection.memoryPolicy, 'custom_experimental'); + assert.equal(template.example.blockReason, undefined); + for (const field of ['outputPath', 'mediaHash', 'runtimeFingerprint', 'verificationTimestamp']) assert.equal(template.example[field], undefined); + const poster = `/assets/${template.id === 'flux2_dev_text_to_image' ? 'flux2-dev' : 'cosmos3-super'}.card-poster.png`; + assert.equal(template.example.thumbnailPath, poster); + const media = exactness.getTemplateCardMedia(template, null); + assert.equal(media.thumbnailPath, poster); + assert.equal(media.mediaPath, undefined, 'An editorial poster must not become generated output.'); + assert.equal(media.beforePath, undefined); assert.equal(template.executionSelection.implementation, 'native_stages'); assert.equal( template.executionSelection.guidancePolicy, @@ -204,6 +217,9 @@ test('Cosmos publisher text comes from the actual backend starter and all safety assert.equal(prompt.params.prompt.value, sourcePrompt.value ?? sourcePrompt.default); assert.deepEqual(JSON.parse(prompt.params.prompt.value), backendCaption); assert.deepEqual(Buffer.from(prompt.params.prompt.value, 'utf8'), backendCaptionBytes); + const audit = quality.auditTemplateQuality(template, { prompt: prompt.params.prompt.value }); + assert.equal(audit.promptResolution, 'backend_default'); + assert.equal(audit.passed, true, JSON.stringify(audit.issues)); assert.equal(template.prompt, '', 'Do not duplicate the publisher caption in frontend recipe data.'); const promptNode = flat.nodes.find((node) => node.data.action === 'WorkflowCosmos3OmniTextEncode'); assert.equal(promptNode.data.operationAuthoring.authored?.includes('prompt') ?? false, false); @@ -239,6 +255,18 @@ test('Cosmos publisher text comes from the actual backend starter and all safety ); }); +test('FLUX.2 retains its full concrete product prompt and native blank-negative recipe', () => { + const template = candidates.find((item) => item.id === 'flux2_dev_text_to_image'); + const { nodes } = build(template); + const encoder = nodes.find((node) => node.action === 'EncodePrompt'); + assert.equal(Buffer.byteLength(template.prompt, 'utf8'), 478); + assert.equal(encoder.params.prompt.value, template.prompt); + assert.equal(template.negativePrompt, ''); + const audit = quality.auditTemplateQuality(template); + assert.equal(audit.negative.policy.declarationId, 'flux-native-conditioning'); + assert.equal(audit.passed, true, JSON.stringify(audit.issues)); +}); + test('backend default is only initial provenance: authored text and later intentional clears export unchanged', () => { const template = candidates.find((item) => item.id === 'cosmos3_super_text_to_image'); const authored = 'An intentionally different complete image caption.'; @@ -450,7 +478,14 @@ test('explicit resolved Custom recipes check exact prerequisites without requiri assert.match(result.summary, /hardware fit and output quality remain experimental/u); assert.equal(result.issues.length, 0); assert.deepEqual(result.modelInstallTargets, []); - assert.equal(readiness.getTemplateReadiness(template, context).status, 'planning'); + assert.equal(readiness.getTemplateReadiness(template, context).status, 'ready'); + const blocked = { + ...structuredClone(template), + difficulty: 'blocked', + readinessPolicy: 'planning', + example: { ...template.example, status: 'blocked' }, + }; + assert.equal(readiness.getTemplateReadiness(blocked, context).status, 'planning'); }); }); diff --git a/scripts/image-model-usage-policies.test.mjs b/scripts/image-model-usage-policies.test.mjs index 02b82eb9..2da7af45 100644 --- a/scripts/image-model-usage-policies.test.mjs +++ b/scripts/image-model-usage-policies.test.mjs @@ -68,12 +68,12 @@ test('Cosmos Super uses its public OpenMDW terms while mandatory Guardrail keeps test('exact full-model template/install acknowledgements match and change on artifact or policy drift', () => { for (const id of ['flux2_dev_text_to_image', 'cosmos3_super_text_to_image']) { - const template = templates.PLANNING_STUDIO_TEMPLATES.find((item) => item.id === id); + const template = templates.STUDIO_TEMPLATES.find((item) => item.id === id); assert.ok(template); - assert.equal(template.example.status, 'blocked'); + assert.equal(template.example.status, 'unverified'); assert.equal( templates.STUDIO_TEMPLATES.some((item) => item.id === id), - false, + true, ); const required = policies.acknowledgementRequiredForTemplate(template); const base = required.find((item) => item.repository === template.modelArtifact.value); diff --git a/scripts/modiff-template.test.mjs b/scripts/modiff-template.test.mjs index e7547735..c54fd741 100644 --- a/scripts/modiff-template.test.mjs +++ b/scripts/modiff-template.test.mjs @@ -2639,14 +2639,29 @@ test('template prompts are unique, detailed, and not generic placeholders', () = assert.ok(template.intentGroup, `${template.id} has an intent group`); assert.ok(template.recipeSummary, `${template.id} has a recipe summary`); assert.ok(template.mediaSlots?.length > 0, `${template.id} has media placeholders`); - if (template.promptQualityPolicy === 'adapter_reference') { + const backendDefaultPrompt = + !template.prompt && template.executionSelection?.backendDefaultInputs?.includes('prompt'); + if (backendDefaultPrompt) { + const pendingAudit = templateQualityModule.auditTemplateQuality(template); + assert.equal(pendingAudit.promptResolution, 'unresolved_backend_default'); + assert.equal(pendingAudit.passed, false, `${template.id} needs its actual backend starter audit`); + assert.deepEqual( + pendingAudit.issues.map((issue) => issue.code), + ['unresolved_backend_default'], + ); + } else if (template.promptQualityPolicy === 'adapter_reference') { assert.equal(template.category, 'lora', `${template.id} adapter reference prompts are limited to LoRA recipes`); assert.ok(template.prompt.length >= 20, `${template.id} retains a meaningful adapter reference prompt`); } else { assert.ok(template.prompt.length >= 120, `${template.id} prompt is detailed`); } const audit = templateQualityModule.auditTemplateQuality(template); - assert.deepEqual(audit.issues, [], `${template.id} has a modality-complete prompt and model-aware negative policy`); + if (!backendDefaultPrompt) + assert.deepEqual( + audit.issues, + [], + `${template.id} has a modality-complete prompt and model-aware negative policy`, + ); for (const fragment of weakFragments) { assert.equal( template.prompt.toLowerCase().includes(fragment), @@ -4162,10 +4177,9 @@ test('template browser exposes the complete workflow catalog across task and ada test('every template name identifies its exact model and operation', () => { const { STUDIO_TEMPLATES } = templatesModule; - const { STUDIO_MODEL_LABELS } = profilesModule; for (const template of STUDIO_TEMPLATES) { assert.ok( - template.label.startsWith(`${STUDIO_MODEL_LABELS[template.modelType]} — `), + template.label.startsWith(`${browserModule.templateModelDisplayName(template)} — `), `${template.id} must begin with its model name`, ); assert.doesNotMatch(template.label, /^(Low VRAM|High quality|Fast LoRA)$/i); @@ -4176,6 +4190,22 @@ test('every template name identifies its exact model and operation', () => { ); }); +test('template artifact display names distinguish same-class variants without changing their backend identity', () => { + const cosmos = templatesModule.STUDIO_TEMPLATES.find((item) => item.id === 'cosmos3_super_text_to_image'); + const flux = templatesModule.STUDIO_TEMPLATES.find((item) => item.id === 'flux2_dev_text_to_image'); + assert.equal(browserModule.templateModelDisplayName(cosmos), 'Cosmos 3 Super'); + assert.equal(browserModule.templateModelDisplayName(flux), 'FLUX.2-dev'); + assert.equal(cosmos.modelType, 'Cosmos3OmniModularPipeline'); + assert.equal(flux.modelType, 'Flux2ModularPipeline'); + assert.ok(browserModule.templateSearchText(cosmos).includes('nvidia/cosmos3-super-text2image')); + const variant = { ...cosmos, modelDisplayName: 'Another exact artifact variant' }; + assert.equal(browserModule.templateModelDisplayName(variant), 'Another exact artifact variant'); + assert.equal( + browserModule.templateModelDisplayName({ ...variant, modelDisplayName: ' ' }), + profilesModule.STUDIO_MODEL_LABELS[cosmos.modelType], + ); +}); + test('browser display names stay concise because model and operation have dedicated metadata', () => { const displayNames = templatesModule.STUDIO_TEMPLATES.map((template) => ({ template, diff --git a/scripts/template-gallery-harness.test.mjs b/scripts/template-gallery-harness.test.mjs index 88f90503..4c75b509 100644 --- a/scripts/template-gallery-harness.test.mjs +++ b/scripts/template-gallery-harness.test.mjs @@ -444,8 +444,8 @@ test('public provenance redacts machine paths and source commit ids', () => { }); test('gallery harness loads all Studio templates from the TypeScript runtime', () => { - assert.equal(runtime.templates.length, 78); - assert.equal(new Set(runtime.templates.map((template) => template.id)).size, 78); + assert.equal(runtime.templates.length, 80); + assert.equal(new Set(runtime.templates.map((template) => template.id)).size, 80); assert.ok(runtime.templates.some((template) => template.id === 'minimax_music3_chamber_pop')); assert.equal( runtime.templates.some((template) => template.id === 'wan_22_i2v_seed_vault'), diff --git a/scripts/template-operation-workflows.test.mjs b/scripts/template-operation-workflows.test.mjs index e6df0a52..8302fb52 100644 --- a/scripts/template-operation-workflows.test.mjs +++ b/scripts/template-operation-workflows.test.mjs @@ -37,7 +37,13 @@ before(async () => { server: { middlewareMode: true, watch: null }, appType: 'custom', }); - ({ STUDIO_TEMPLATES: templates } = await server.ssrLoadModule('/src/studio/templates.ts')); + const { STUDIO_TEMPLATES: currentTemplates } = await server.ssrLoadModule('/src/studio/templates.ts'); + // This closed migration fixture protects the original 54 creator contracts. + // Additional native SDK image recipes have full coverage in the independent + // image-full-native-template-candidates test, including all public image IDs. + const baseline = JSON.parse(await readFile('tests/fixtures/image-template-creator-contracts.v1.json', 'utf8')); + const historicalImageIds = new Set(baseline.templates.map((row) => row.templateId)); + templates = currentTemplates.filter((item) => item.example?.mediaType !== 'image' || historicalImageIds.has(item.id)); exactness = await server.ssrLoadModule('/src/studio/templateExactness.ts'); builder = await server.ssrLoadModule('/src/studio/templateOperationWorkflow.ts'); qwenInpaintCandidate = await server.ssrLoadModule('/src/studio/qwenInpaintNativeCandidate.ts'); @@ -304,7 +310,7 @@ test('the real public capability and every selected starter response pass produc } }); -test('all image templates select an exact developer operation recipe without changing creator settings', async () => { +test('the historical 54 image templates select exact developer operations without changing creator settings', async () => { const baseline = JSON.parse(await readFile('tests/fixtures/image-template-creator-contracts.v1.json', 'utf8')); const images = templates.filter((template) => template.example?.mediaType === 'image'); assert.equal(images.length, 54); diff --git a/scripts/template-quality.test.mjs b/scripts/template-quality.test.mjs index 0b0564ec..21db900e 100644 --- a/scripts/template-quality.test.mjs +++ b/scripts/template-quality.test.mjs @@ -45,10 +45,22 @@ function sampleTemplate(overrides = {}) { }; } -test('the complete runtime template catalog passes the modality-aware semantic audit', () => { +test('the complete catalog audits authored prompts and reports backend defaults as unresolved', () => { const audits = qualityModule.auditTemplateCatalog(templatesModule.STUDIO_TEMPLATES); + const unresolved = audits.filter((audit) => audit.promptResolution === 'unresolved_backend_default'); + assert.deepEqual( + unresolved.map((audit) => audit.templateId), + ['cosmos3_super_text_to_image'], + ); + for (const audit of unresolved) { + assert.equal(audit.passed, false); + assert.deepEqual( + audit.issues.map((issue) => issue.code), + ['unresolved_backend_default'], + ); + } const failures = audits - .filter((audit) => !audit.passed) + .filter((audit) => !audit.passed && audit.promptResolution !== 'unresolved_backend_default') .map((audit) => `${audit.templateId}: ${audit.issues.map((issue) => issue.message).join(' | ')}`); assert.deepEqual(failures, []); @@ -67,6 +79,16 @@ test('the complete runtime template catalog passes the modality-aware semantic a ); }); +test('the Cosmos publisher blank-negative declaration does not extend to other same-class recipes', () => { + const template = templatesModule.STUDIO_TEMPLATES.find((item) => item.id === 'cosmos3_super_text_to_image'); + assert.equal(qualityModule.getTemplateNegativePolicy(template).declarationId, 'cosmos3-super-publisher-conditioning'); + const other = { + ...template, + executionSelection: { ...template.executionSelection, executionProfileId: 'another-profile' }, + }; + assert.equal(qualityModule.getTemplateNegativePolicy(other).requirement, 'required'); +}); + test('semantic coverage rejects long but content-free prompt padding', () => { const audit = qualityModule.auditTemplateQuality( sampleTemplate({ @@ -151,3 +173,35 @@ test('blank negative prompts are accepted only by a declared model-aware policy' false, ); }); + +test('backend-owned prompts remain unresolved until their actual default is supplied to the semantic audit', () => { + const template = sampleTemplate({ prompt: '', executionSelection: { backendDefaultInputs: ['prompt'] } }); + const unresolved = qualityModule.auditTemplateQuality(template); + assert.equal(unresolved.promptResolution, 'unresolved_backend_default'); + assert.equal(unresolved.passed, false); + assert.deepEqual( + unresolved.issues.map((issue) => issue.code), + ['unresolved_backend_default'], + ); + const resolved = qualityModule.auditTemplateQuality(template, { prompt: sampleTemplate().prompt }); + assert.equal(resolved.promptResolution, 'backend_default'); + assert.equal(resolved.passed, true); + const weak = qualityModule.auditTemplateQuality(template, { prompt: 'high quality '.repeat(100) }); + assert.equal(weak.passed, false); + assert.equal( + weak.issues.some((issue) => issue.code === 'missing_semantic_group'), + true, + ); + const undeclared = qualityModule.auditTemplateQuality(sampleTemplate({ prompt: '' }), { + prompt: sampleTemplate().prompt, + }); + assert.equal(undeclared.passed, false, 'A caller cannot replace an undeclared empty template prompt.'); + const authored = qualityModule.auditTemplateQuality( + sampleTemplate({ + executionSelection: { backendDefaultInputs: ['prompt'] }, + }), + { prompt: 'high quality' }, + ); + assert.equal(authored.promptResolution, 'template'); + assert.equal(authored.passed, true, 'Authored text takes precedence over a fresh backend default.'); +}); diff --git a/src/components/TemplateBrowserDialog.tsx b/src/components/TemplateBrowserDialog.tsx index b703c1d5..1c09c270 100644 --- a/src/components/TemplateBrowserDialog.tsx +++ b/src/components/TemplateBrowserDialog.tsx @@ -25,12 +25,7 @@ import { useSettingsStore } from '../stores/useSettingsStore'; import { isWorkflowOperationCancelled, useStudioStore } from '../stores/useStudioStore'; import { useTaskStore } from '../stores/useTaskStore'; import { useWebsocketStore } from '../stores/useWebsocketStore'; -import { - STUDIO_MODEL_LABELS, - STUDIO_MODE_LABELS, - getCatalogModelProfiles, - getFormDefaultsForMode, -} from '../studio/modelProfiles'; +import { STUDIO_MODE_LABELS, getCatalogModelProfiles, getFormDefaultsForMode } from '../studio/modelProfiles'; import { autoPlanKeyForForm, fetchAutoResourcePlans, @@ -52,6 +47,7 @@ import { TEMPLATE_BROWSER_CATEGORIES, filterStudioTemplates, templateDisplayName, + templateModelDisplayName, templateMediaSlots, type TemplateBrowserCategoryId, type TemplateBrowserFilter, @@ -783,7 +779,7 @@ export default function TemplateBrowserDialog({ entry = false }: { entry?: boole focus: { modelType: template.modelType, repo, - label: STUDIO_MODEL_LABELS[template.modelType], + label: templateModelDisplayName(template), source: 'template', }, }); @@ -1198,7 +1194,7 @@ function TemplateBrowserCard({ />

- {STUDIO_MODEL_LABELS[template.modelType]} · {STUDIO_MODE_LABELS[template.mode]} + {templateModelDisplayName(template)} · {STUDIO_MODE_LABELS[template.mode]}

@@ -1329,7 +1325,7 @@ function TemplateRecipeDetail({ {templateDisplayName(template)}

- {STUDIO_MODEL_LABELS[template.modelType]} · {STUDIO_MODE_LABELS[template.mode]} + {templateModelDisplayName(template)} · {STUDIO_MODE_LABELS[template.mode]}

diff --git a/src/studio/templateBrowser.ts b/src/studio/templateBrowser.ts index d848e63d..b5066947 100644 --- a/src/studio/templateBrowser.ts +++ b/src/studio/templateBrowser.ts @@ -68,6 +68,10 @@ const TEMPLATE_DISPLAY_NAME_OVERRIDES: Partial) { + return template.modelDisplayName?.trim() || STUDIO_MODEL_LABELS[template.modelType]; +} + /** * The model and operation already have dedicated card metadata. Keep the * primary card title focused on the creative result so it remains readable at @@ -158,7 +162,8 @@ export function templateSearchText(template: StudioTemplate) { template.difficulty, template.vramEstimate, STUDIO_MODE_LABELS[template.mode], - STUDIO_MODEL_LABELS[template.modelType], + templateModelDisplayName(template), + template.modelArtifact?.value, ...(template.tags ?? []), ...(template.inputRequirements?.sampleAssets ?? []), ...(template.requiredBackendCapabilities ?? []), @@ -217,8 +222,7 @@ export function filterStudioTemplates( (localRuntimeSeconds?.(right) ?? Number.POSITIVE_INFINITY) ); } - if (filter.sort === 'model') - return STUDIO_MODEL_LABELS[left.modelType].localeCompare(STUDIO_MODEL_LABELS[right.modelType]); + if (filter.sort === 'model') return templateModelDisplayName(left).localeCompare(templateModelDisplayName(right)); if (filter.sort === 'task') return STUDIO_MODE_LABELS[left.mode].localeCompare(STUDIO_MODE_LABELS[right.mode]); return recommendedRank(left, form) - recommendedRank(right, form) || left.label.localeCompare(right.label); }); diff --git a/src/studio/templateQuality.ts b/src/studio/templateQuality.ts index 2a7a8988..526297f5 100644 --- a/src/studio/templateQuality.ts +++ b/src/studio/templateQuality.ts @@ -35,6 +35,7 @@ export type TemplateSemanticGroup = export type TemplateNegativeCategory = 'artifact' | 'structure' | 'task_fidelity' | 'aesthetic'; export type TemplateQualityIssueCode = + | 'unresolved_backend_default' | 'missing_semantic_group' | 'blank_negative_not_allowed' | 'too_few_negative_constraints' @@ -61,6 +62,7 @@ export type TemplateNegativeAnalysis = { export type TemplateQualityAudit = { templateId: string; + promptResolution: 'template' | 'backend_default' | 'unresolved_backend_default'; kind: TemplateQualityKind; requiredSemanticGroups: TemplateSemanticGroup[]; matchedSemanticGroups: TemplateSemanticGroup[]; @@ -77,6 +79,7 @@ type SemanticGroupDefinition = { type BlankNegativeDeclaration = { id: string; modelTypes: readonly StudioModelType[]; + executionProfileId?: string; maxGuidanceScale?: number; reason: string; }; @@ -102,7 +105,7 @@ const SEMANTIC_GROUPS: Record = /\b(subject|scene|product|device|object|character|portrait|person|building|architecture|interior|exterior)\b/i, /\b(worker|keeper|operator|courier|engineer|mechanic|artisan|veterinarian|musician|driver|researcher|watchman)\b/i, /\b(bottle|can|radio|camera|poster|logo|packag\w*|lamp|helmet|chair|headphone|observatory|greenhouse)\b/i, - /\b(train|harbor|gallery|briefcase|coast|orchid|book\w*|speaker|bowl|mascot|carton|mug|cup)\b/i, + /\b(train|harbor|gallery|briefcase|coast|orchid|book\w*|speaker|bowl|mascot|carton|mug|cup|teapot)\b/i, ], }, spatial_design: { @@ -245,9 +248,17 @@ export const BLANK_NEGATIVE_DECLARATIONS: readonly BlankNegativeDeclaration[] = 'FluxCannyPipeline', 'FluxReduxPipeline', 'Flux2KleinPipeline', + 'Flux2ModularPipeline', ], reason: 'These FLUX recipes may intentionally use native or zeroed negative conditioning.', }, + { + id: 'cosmos3-super-publisher-conditioning', + modelTypes: ['Cosmos3OmniModularPipeline'], + executionProfileId: 'cosmos3-super-text-to-image:official-modular-workflow', + reason: + 'The original Cosmos 3 Super publisher image recipe uses an empty negative prompt; retain its conditioning unchanged.', + }, { id: 'explicit-cfg-one-image-recipe', modelTypes: [ @@ -326,11 +337,16 @@ export function templatePromptMatchesSemanticGroup(prompt: string, group: Templa } export function getTemplateNegativePolicy( - template: Pick, + template: Pick, ): TemplateNegativePolicy { const guidanceScale = template.example?.lockedSettings?.guidanceScale; const declaration = BLANK_NEGATIVE_DECLARATIONS.find((candidate) => { if (!candidate.modelTypes.includes(template.modelType)) return false; + if ( + candidate.executionProfileId !== undefined && + template.executionSelection?.executionProfileId !== candidate.executionProfileId + ) + return false; if (candidate.maxGuidanceScale === undefined) return true; return guidanceScale !== undefined && guidanceScale <= candidate.maxGuidanceScale; }); @@ -350,7 +366,7 @@ export function getTemplateNegativePolicy( } export function analyzeTemplateNegativePrompt( - template: Pick, + template: Pick, ): TemplateNegativeAnalysis { const policy = getTemplateNegativePolicy(template); const negativePrompt = template.negativePrompt?.trim() ?? ''; @@ -398,27 +414,46 @@ export function analyzeTemplateNegativePrompt( return { policy, constraints, categories, issues }; } -export function auditTemplateQuality(template: StudioTemplate): TemplateQualityAudit { +export function auditTemplateQuality( + template: StudioTemplate, + resolvedBackendDefaults?: Pick, +): TemplateQualityAudit { const kind = classifyTemplateQualityKind(template); const requiredSemanticGroups = getRequiredTemplateSemanticGroups(template); + const needsBackendPrompt = + !template.prompt.trim() && template.executionSelection?.backendDefaultInputs?.includes('prompt'); + const resolvedPrompt = needsBackendPrompt ? resolvedBackendDefaults?.prompt : template.prompt; + const promptResolution = needsBackendPrompt + ? resolvedPrompt?.trim() + ? 'backend_default' + : 'unresolved_backend_default' + : 'template'; const matchedSemanticGroups = requiredSemanticGroups.filter((group) => - templatePromptMatchesSemanticGroup(template.prompt, group), + templatePromptMatchesSemanticGroup(resolvedPrompt ?? '', group), ); const semanticIssues: TemplateQualityIssue[] = - template.promptQualityPolicy === 'adapter_reference' - ? [] - : requiredSemanticGroups - .filter((group) => !matchedSemanticGroups.includes(group)) - .map((group) => ({ - code: 'missing_semantic_group', - semanticGroup: group, - message: `Prompt is missing ${SEMANTIC_GROUPS[group].label}.`, - })); + promptResolution === 'unresolved_backend_default' + ? [ + { + code: 'unresolved_backend_default', + message: 'Audit the resolved backend starter prompt before claiming semantic coverage.', + }, + ] + : template.promptQualityPolicy === 'adapter_reference' + ? [] + : requiredSemanticGroups + .filter((group) => !matchedSemanticGroups.includes(group)) + .map((group) => ({ + code: 'missing_semantic_group', + semanticGroup: group, + message: `Prompt is missing ${SEMANTIC_GROUPS[group].label}.`, + })); const negative = analyzeTemplateNegativePrompt(template); const issues = [...semanticIssues, ...negative.issues]; return { templateId: template.id, + promptResolution, kind, requiredSemanticGroups, matchedSemanticGroups, @@ -429,5 +464,5 @@ export function auditTemplateQuality(template: StudioTemplate): TemplateQualityA } export function auditTemplateCatalog(templates: readonly StudioTemplate[]): TemplateQualityAudit[] { - return templates.map(auditTemplateQuality); + return templates.map((template) => auditTemplateQuality(template)); } diff --git a/src/studio/templates.ts b/src/studio/templates.ts index cc254a91..acd1ff9e 100644 --- a/src/studio/templates.ts +++ b/src/studio/templates.ts @@ -3964,17 +3964,18 @@ function withVideoDeliveryWorkflow(template: StudioTemplateSource, index: number const NORMALIZED_STUDIO_TEMPLATES: StudioTemplate[] = [ ...BASE_STUDIO_TEMPLATES.map(withVideoDeliveryWorkflow), - // Private qualification candidates: their original full-model contracts are - // explicit, but no output, Auto, Gallery or execution proof is claimed. + // Experimental Custom recipes use explicit full-model contracts; their + // availability does not publish output, Auto, Gallery or runtime proof. withTemplateRecipeDefaults( { id: 'flux2_dev_text_to_image', label: 'FLUX.2-dev — Text to Image: Morning Light Teapot', + modelDisplayName: 'FLUX.2-dev', mode: 'text_to_image', modelType: 'Flux2ModularPipeline', category: 'flux', tags: ['flux2', 'photography', 'product', 'full-model'], - difficulty: 'blocked', + difficulty: 'advanced', executionSelection: IMAGE_TEMPLATE_EXECUTION_SELECTIONS.flux2_dev_text_to_image, modelArtifact: { source: 'hub', @@ -3995,8 +3996,9 @@ const NORMALIZED_STUDIO_TEMPLATES: StudioTemplate[] = [ presetId: 'flux_fast', example: { mediaType: 'image', - status: 'blocked', + status: 'unverified', lockedSeed: 20260905, + thumbnailPath: '/assets/flux2-dev.card-poster.png', modelRevision: '26afe3a78bb242c0a8bb181dcc8937bb16e5c66c', lockedSettings: { width: 1024, @@ -4013,7 +4015,7 @@ const NORMALIZED_STUDIO_TEMPLATES: StudioTemplate[] = [ }, expectedOutput: { width: 1024, height: 1024 }, runtimeEstimate: 'Pending measured full native workflow execution', - blockReason: 'Full native workflow execution, seeded repeat and image review are pending.', + notes: 'The card is an original editorial workflow illustration; a generated image example remains pending.', }, }, [ @@ -4026,11 +4028,12 @@ const NORMALIZED_STUDIO_TEMPLATES: StudioTemplate[] = [ { id: 'cosmos3_super_text_to_image', label: 'Cosmos 3 Super — Text to Image: Publisher Caption', + modelDisplayName: 'Cosmos 3 Super', mode: 'text_to_image', modelType: 'Cosmos3OmniModularPipeline', category: 'concept', tags: ['cosmos3', 'publisher-recipe', 'full-model', 'safety-checked'], - difficulty: 'blocked', + difficulty: 'advanced', executionSelection: IMAGE_TEMPLATE_EXECUTION_SELECTIONS.cosmos3_super_text_to_image, modelArtifact: { source: 'hub', @@ -4054,8 +4057,9 @@ const NORMALIZED_STUDIO_TEMPLATES: StudioTemplate[] = [ presetId: 'flux_fast', example: { mediaType: 'image', - status: 'blocked', + status: 'unverified', lockedSeed: 1143, + thumbnailPath: '/assets/cosmos3-super.card-poster.png', modelRevision: 'daf3d374804be4c512c2135568a7cb95d4341d79', lockedSettings: { width: 1024, @@ -4072,10 +4076,8 @@ const NORMALIZED_STUDIO_TEMPLATES: StudioTemplate[] = [ }, expectedOutput: { width: 1024, height: 1024, frames: 1 }, runtimeEstimate: 'Pending measured full native workflow execution', - blockReason: - 'Mandatory guardrail access/runtime and full native workflow execution, seeded repeat and image review are pending.', notes: - 'The fresh graph inherits the exact resolved backend publisher caption; it remains editable. This is the original full model, not its separately published four-step variant.', + 'The fresh graph inherits the exact resolved backend publisher caption; it remains editable. This is the original full model, not its separately published four-step variant. The card is an original editorial workflow illustration; a generated image example remains pending.', }, }, ['', ''], @@ -4139,9 +4141,9 @@ const NORMALIZED_STUDIO_TEMPLATES: StudioTemplate[] = [ ), ]; -// Failed qualification contracts stay available to planning/reporting code, but -// never appear as runnable browser templates. A template returns to the browser -// only after its app-managed proof and modality review remove the blocked state. +// Blocked contracts remain available to planning/reporting. Experimental Custom +// recipes may be available with explicit prerequisites and unverified examples; +// this source admission does not grant Auto, Gallery or runtime qualification. export const PLANNING_STUDIO_TEMPLATES: StudioTemplate[] = NORMALIZED_STUDIO_TEMPLATES.filter( (template) => template.example?.status === 'blocked', ); diff --git a/src/studio/types.ts b/src/studio/types.ts index ae8e5255..6ccb993d 100644 --- a/src/studio/types.ts +++ b/src/studio/types.ts @@ -1605,6 +1605,8 @@ export type StudioTemplate = { label: string; mode: StudioMode; modelType: StudioModelType; + /** Exact recipe artifact name when one backend class serves several model variants. */ + modelDisplayName?: string; intentGroup?: StudioTemplateIntentGroup; category?: StudioTemplateCategory; tags?: string[]; diff --git a/tests/e2e/studio-mocked/studio-mocked.spec.ts b/tests/e2e/studio-mocked/studio-mocked.spec.ts index 05c079b1..189d7e61 100644 --- a/tests/e2e/studio-mocked/studio-mocked.spec.ts +++ b/tests/e2e/studio-mocked/studio-mocked.spec.ts @@ -29642,6 +29642,55 @@ async function openOptionalStageTemplate(page: Page, templateId: string, search: await page.getByRole('button', { name: 'Arrange graph', exact: true }).click(); } +test('full image template cards, details, artifact search and Model Manager focus show the selected variant', async ({ + page, +}) => { + await page.setViewportSize({ width: 1920, height: 1200 }); + mockInstalledRepos.clear(); + await ensureFrontend(); + await installMockRoutes(page); + const fixture = await imageTemplateSchemas(); + await page.route('**/model_capabilities**', (route) => route.fulfill({ status: 200, json: fixture.publicPayload })); + await page.route('**/nodes**', (route) => + route.fulfill({ status: 200, json: { instance: 'mock', nodes: { ...mockRegistry, ...fixture.registry } } }), + ); + await page.route('**/runtime/status**', (route) => + route.fulfill({ + json: { + ready: true, + runtime_profile: { requested: 'cpu', installed: 'cpu', status: 'ready', execution_ready: true }, + missing_required_packages: [], + packages: Object.fromEntries( + ['torch', 'diffusers', 'transformers', 'peft'].map((name) => [name, { available: true }]), + ), + }, + }), + ); + await page.goto(FRONTEND_URL, { waitUntil: 'domcontentloaded' }); + await openTemplateBrowser(page); + const browser = page.getByTestId('template-browser-dialog'); + await browser.getByTestId('template-browser-category-all').click(); + for (const [id, repo, label] of [ + ['cosmos3_super_text_to_image', 'nvidia/Cosmos3-Super-Text2Image', 'Cosmos 3 Super'], + ['flux2_dev_text_to_image', 'black-forest-labs/FLUX.2-dev', 'FLUX.2-dev'], + ]) { + await browser.getByTestId('template-browser-search').fill(repo); + const card = browser.getByTestId(`template-browser-card-${id}`); + await expect(card.getByText(`${label} · Text to image`, { exact: true })).toBeVisible(); + const poster = `/assets/${id === 'flux2_dev_text_to_image' ? 'flux2-dev' : 'cosmos3-super'}.card-poster.png`; + const artwork = card.getByRole('img', { name: 'Template preview', exact: true }); + await expect(artwork).toHaveAttribute('src', poster); + await expect.poll(() => artwork.evaluate((image: HTMLImageElement) => image.naturalWidth)).toBe(1536); + await card.getByTestId(`template-browser-use-${id}`).click(); + await expect(browser.getByText(`${label} · Text to image`, { exact: true })).toHaveCount(2); + } + await page.getByTestId('template-card-readiness-flux2_dev_text_to_image').click(); + const manager = page.getByTestId('model-manager-dialog'); + await expect(manager).toBeVisible(); + await expect(manager.getByTestId('model-manager-focus')).toContainText('FLUX.2-dev'); + await expect(manager.getByTestId('model-manager-focus')).not.toContainText('Modular Diffusers'); +}); + async function optionalStageApi(page: Page) { return page.evaluate(() => { const hooks = window.__MODIFF_E2E__!; diff --git a/vite.config.ts b/vite.config.ts index e790289c..c7ec7076 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -46,6 +46,8 @@ function shellPublicAssetsPlugin(): Plugin { ['assets/modiff-icon-256.png', 'image/png'], // Locally authored editorial card, not a Gallery generation/publication. ['assets/minimax-chamber-pop.card-poster.png', 'image/png'], + ['assets/flux2-dev.card-poster.png', 'image/png'], + ['assets/cosmos3-super.card-poster.png', 'image/png'], ]); return { name: 'modiff-shell-public-assets', From 43cc7bcc6ee4244d0f6b8fe0681378d8371d1a1c Mon Sep 17 00:00:00 2001 From: Sourav Das Date: Fri, 9 Oct 2026 19:06:38 +0530 Subject: [PATCH 025/440] checkpoint: preserve Windows setup and output corrections before Linux integration Local recoverable source checkpoint. Focused Windows fixes and exact bundle are preserved. Complete contributor gates, bundle-dependent ledger regeneration and final paired native validation remain pending. Do not treat this checkpoint as qualification evidence. --- .github/workflows/ci.yml | 2 +- CONTRIBUTING.md | 4 +- docs/deployment.md | 9 + docs/modiff-client-architecture.md | 17 ++ install-dev.ps1 | 13 +- install-dev.sh | 12 +- scripts/backend-installer-contract.test.mjs | 1 + scripts/bundle-budget.mjs | 8 +- .../development-installer-launchers.test.mjs | 183 +++++++++++++++ scripts/media-viewer.test.mjs | 112 ++++++++++ scripts/run-activity.test.mjs | 35 +++ scripts/run-coordinator.test.mjs | 122 ++++++++++ src/components/CustomNode.tsx | 8 +- src/components/OutputGalleryPanel.tsx | 209 +++++++++++------- src/fields/PreviewHistoryStripContent.tsx | 64 +++--- src/stores/flowNodeMutations.ts | 3 +- src/stores/useFlowStore.ts | 6 +- src/stores/useNodeStore.ts | 3 +- src/studio/outputContracts.ts | 2 +- src/studio/outputText.ts | 28 +++ src/studio/runActivity.ts | 3 +- src/types/api.ts | 11 +- src/utils/formatMemory.ts | 5 +- tests/e2e/studio-mocked/studio-mocked.spec.ts | 139 ++++++++++++ 24 files changed, 858 insertions(+), 141 deletions(-) create mode 100644 scripts/development-installer-launchers.test.mjs create mode 100644 src/studio/outputText.ts diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 6ec91c9e..d103021e 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -33,7 +33,7 @@ jobs: with: repository: sdevil7th/MoDiff # Paired AMD/Linux and preserved Windows runtime, workflow and Block contracts. - ref: 305b1ef540e5df60d137fcd9e5b16d3b2fb14569 + ref: 846aedbaad9f6d932cdfed7d40a34b07399f00a6 path: MoDiff persist-credentials: false - name: Verify the pinned backend supports native setup diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index c7ad4116..1f8f0561 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -64,7 +64,7 @@ For NVIDIA, use `--extra cuda` in each command; for Intel, use `--extra xpu`. On Apple Silicon, omit the extra. Keep the same extra on sync and run. Use a separate checkout to try another accelerator; native sync reconciles `.venv`. AMD vendor-wheel environments use the backend's specialist -[accelerator setup](https://github.com/sdevil7th/MoDiff/blob/develop/docs/accelerator-installation.md). +[accelerator setup](https://github.com/sdevil7th/MoDiff/blob/fix-ui-ux-issues/docs/accelerator-installation.md). In the client terminal, run: @@ -77,7 +77,7 @@ Open the URL printed by Vite and leave the backend running. Transformers and PEFT are installed during backend setup; normal image and LoRA workflows need no separate package activation. These commands work on Linux and Windows PowerShell. The backend's -[developer guide](https://github.com/sdevil7th/MoDiff/blob/develop/docs/developer-setup.md) +[developer guide](https://github.com/sdevil7th/MoDiff/blob/fix-ui-ux-issues/docs/developer-setup.md) and the [Windows guide](docs/windows-support.md#developer-setup-with-uv-and-npm) cover explicit `uv pip` setup, upgrades, repair, and platform details. diff --git a/docs/deployment.md b/docs/deployment.md index bbd796cc..6c5eb877 100644 --- a/docs/deployment.md +++ b/docs/deployment.md @@ -167,6 +167,15 @@ startup bytes, a 464336-byte largest startup chunk and 269414 deferred bytes. The startup ceilings remain 642816 and 464512 bytes, and the individual deferred chunk ceiling remains 65536 bytes. Dependencies and loading boundaries stay fixed. +Declared text/JSON Gallery previews, original-file downloads and Session JSON +classification reuse the existing text viewer, Previous formatter and export path. +Together with captured-null and declared-family preservation, their measured build +adds 915 deferred gzip bytes, from 269414 to 270329. A bounded +1024-byte aggregate allowance makes the ceiling 269568 + 1024 = 270592 bytes. +Startup measures 642694 bytes and the largest startup chunk 464387 bytes; their +ceilings remain 642816 and 464512, and the deferred chunk ceiling remains 65536. +No dependency or loading-boundary change is included in this allowance. + When updating selected loader field metadata, regenerate the paired `BlockDefinitionV2` catalog and frontend identity pins together. This metadata must not rewrite saved instance values, prompts, wiring, or layout. Deploy only diff --git a/docs/modiff-client-architecture.md b/docs/modiff-client-architecture.md index 2962ce3f..ede898ea 100644 --- a/docs/modiff-client-architecture.md +++ b/docs/modiff-client-architecture.md @@ -956,6 +956,13 @@ account action and install recovery uses the backend's structured error code. ## Websocket And Task State +Node execution `memoryUsage` records carry finite byte measurements or `null` +when a measurement is unavailable (including CPU-only runs). The parser accepts +those null values without dropping the execution event; the cache store preserves +them and the node memory footer/popover displays a dash, not an invented zero. +Measured zero remains `0 B`. Execution timing and phase timing records still +require finite numbers, and numeric strings or malformed memory records are rejected. + Every welcome refreshes authoritative runtime readiness, including after worker replacement or package repair. The existing discovery request gate discards older responses so they cannot restore stale Setup errors after the replacement is ready. @@ -1326,6 +1333,16 @@ Encoded video measurements are retained per media item as `mediaMetadata` with ` Gallery restore creates a workflow tab from the snapshot. Rerun recomputes current readiness and Auto state before submitting; persisted output metadata is not blindly trusted as current runtime proof. +Gallery and Previous previews preserve declared text and JSON output types. Strings +display literally; other captured values use formatted JSON, including `0`, `false` +and `null`. React text rendering keeps markup inert in cards and the shared text +viewer. History parsing preserves explicit captured null; only absent values keep +the legacy URL fallback. Gallery's text/JSON download fetches the original backend file without +reserializing it; Previous and viewer downloads export the displayed text. PNG +packages, image overlays and Send to edit are unavailable for text/JSON outputs. +Metadata packages, favorites, history identity, workflow restore and rerun retain +their existing contracts. + For images, Gallery uses decoded media dimensions for the output-size label and reports captured input dimensions separately. Reference-driven edit geometry may have no explicit width/height call arguments. Do not infer those missing inputs diff --git a/install-dev.ps1 b/install-dev.ps1 index 33bc83a8..de5a82d6 100644 --- a/install-dev.ps1 +++ b/install-dev.ps1 @@ -4,6 +4,7 @@ param( [switch]$AllowExperimental, [switch]$Resume, [switch]$Repair ) $ErrorActionPreference = "Stop" +$BackendPath = (Resolve-Path -LiteralPath $BackendPath).ProviderPath $installer = Join-Path $BackendPath "install.ps1" if (!(Test-Path $installer)) { throw "MoDiff backend installer not found at $installer" } & $installer -Accelerator $Accelerator -AllowExperimental:$AllowExperimental -Resume:$Resume -Repair:$Repair -BackendOnly @@ -11,10 +12,14 @@ if ($LASTEXITCODE -ne 0) { exit $LASTEXITCODE } $python = Join-Path $BackendPath ".venv\Scripts\python.exe" $testRequirements = Join-Path $BackendPath "requirements\test.txt" -$uvRoot = Join-Path $BackendPath ".modiff\tools\uv" -$uv = Get-ChildItem $uvRoot -Filter uv.exe -File -Recurse -ErrorAction SilentlyContinue | Select-Object -First 1 -if (!$uv) { throw "MoDiff's verified uv executable was not found under $uvRoot" } -& $uv.FullName pip install --python $python -r $testRequirements +Push-Location -LiteralPath $BackendPath +try { + $uv = & $python -c "from pathlib import Path; from modiff.tool_locks import resolve_uv; print(resolve_uv(Path('.modiff')))" + if ($LASTEXITCODE -ne 0) { exit $LASTEXITCODE } +} finally { + Pop-Location +} +& $uv pip install --python $python -r $testRequirements if ($LASTEXITCODE -ne 0) { exit $LASTEXITCODE } Set-Location $PSScriptRoot diff --git a/install-dev.sh b/install-dev.sh index 1a61fc0f..3746e65a 100644 --- a/install-dev.sh +++ b/install-dev.sh @@ -6,19 +6,17 @@ if [[ ! -x "$BACKEND_PATH/install.sh" ]]; then echo "MoDiff backend installer not found at $BACKEND_PATH/install.sh" >&2 exit 2 fi +BACKEND_PATH="$(cd -- "$BACKEND_PATH" && pwd -P)" "$BACKEND_PATH/install.sh" "$@" --backend-only -UV_BIN="$(find "$BACKEND_PATH/.modiff/tools/uv" -type f -name uv -perm -u+x -print -quit 2>/dev/null)" -if [[ -z "$UV_BIN" ]]; then - echo "MoDiff's verified uv executable was not found under $BACKEND_PATH/.modiff/tools/uv" >&2 - exit 2 -fi +PYTHON_BIN="$BACKEND_PATH/.venv/bin/python" +UV_BIN="$(cd -- "$BACKEND_PATH" && "$PYTHON_BIN" -c "from pathlib import Path; from modiff.tool_locks import resolve_uv; print(resolve_uv(Path('.modiff')))")" "$UV_BIN" pip install \ - --python "$BACKEND_PATH/.venv/bin/python" \ + --python "$PYTHON_BIN" \ -r "$BACKEND_PATH/requirements/test.txt" cd -- "$SCRIPT_DIR" npm ci mkdir -p artifacts/dev-install-current -"$BACKEND_PATH/.venv/bin/python" -m modiff.preflight --json --fail-on-error > artifacts/dev-install-current/backend-preflight.json +"$PYTHON_BIN" -m modiff.preflight --json --fail-on-error > artifacts/dev-install-current/backend-preflight.json echo "Development environment is ready. Run ./run-dev.sh." diff --git a/scripts/backend-installer-contract.test.mjs b/scripts/backend-installer-contract.test.mjs index 5890791f..f69229b7 100644 --- a/scripts/backend-installer-contract.test.mjs +++ b/scripts/backend-installer-contract.test.mjs @@ -5,6 +5,7 @@ import { join } from 'node:path'; import { test } from 'node:test'; import { buildBackendInstallerPackageSet } from './backend-installer-contract.mjs'; +import './development-installer-launchers.test.mjs'; function fixture({ managed = true, requirements = 'torch==2.8.0\n' } = {}) { const root = mkdtempSync(join(tmpdir(), 'modiff-installer-contract-')); diff --git a/scripts/bundle-budget.mjs b/scripts/bundle-budget.mjs index c8d666a1..4b239f57 100644 --- a/scripts/bundle-budget.mjs +++ b/scripts/bundle-budget.mjs @@ -247,7 +247,13 @@ const MAX_DEFERRED_CHUNK_GZIP_BYTES = 64 * 1024; // Preserve both reviewed allowances: 268800 + 256 + 512 = 269568 bytes. // The combined build measures 269414 deferred bytes, 642643 startup bytes and // a 464336-byte largest startup chunk; retain the existing startup ceilings. -const MAX_DEFERRED_GZIP_BYTES = 248 * 1024 + 512 + 3328 + 128 + 256 + 128 + 384 + 8704 + 768 + 640 + 256 + 512; +// Declared text/JSON Gallery previews and raw-original downloads share the +// Previous text formatter/viewer and existing export path. Together with the +// Session JSON kind/null and Previous declared-family corrections, the measured +// build is 270329 deferred bytes (+915 from 269414). Allow only 1024 additional +// aggregate bytes; startup, +// dependencies and both per-chunk ceilings remain unchanged. +const MAX_DEFERRED_GZIP_BYTES = 248 * 1024 + 512 + 3328 + 128 + 256 + 128 + 384 + 8704 + 768 + 640 + 256 + 512 + 1024; const STATIC_MODULE_REFERENCE = /\b(?:import(?=\s|["'{*])(?!\s*\()|export(?=\s|["'{*]))[^;]*?["'](\.\/[^"'?]+\.js)(?:\?v=[0-9a-f]{16})?["']/g; diff --git a/scripts/development-installer-launchers.test.mjs b/scripts/development-installer-launchers.test.mjs new file mode 100644 index 00000000..f301ed24 --- /dev/null +++ b/scripts/development-installer-launchers.test.mjs @@ -0,0 +1,183 @@ +import assert from 'node:assert/strict'; +import { spawnSync } from 'node:child_process'; +import { + chmodSync, + copyFileSync, + existsSync, + mkdirSync, + mkdtempSync, + readFileSync, + rmSync, + symlinkSync, + writeFileSync, +} from 'node:fs'; +import { tmpdir } from 'node:os'; +import { dirname, join, relative, resolve } from 'node:path'; +import { fileURLToPath } from 'node:url'; +import { test } from 'node:test'; + +const clientRoot = resolve(dirname(fileURLToPath(import.meta.url)), '..'); +const backendRoot = resolve(clientRoot, '../MoDiff'); +const windows = process.platform === 'win32'; +const backendPython = + process.env.MODIFF_BACKEND_PYTHON || join(backendRoot, windows ? '.venv/Scripts/python.exe' : '.venv/bin/python'); +const powershell = join(process.env.SystemRoot || 'C:/Windows', 'System32/WindowsPowerShell/v1.0/powershell.exe'); + +function command(executable, args, options = {}) { + const result = spawnSync(executable, args, { encoding: 'utf8', timeout: 30_000, ...options }); + assert.ifError(result.error); + return result; +} + +function successful(executable, args, options) { + const result = command(executable, args, options); + assert.equal(result.status, 0, result.stdout + result.stderr); + return result.stdout.trim(); +} + +function executable(path, contents) { + writeFileSync(path, contents); + chmodSync(path, 0o755); +} + +function fixture(shell, scenario) { + const root = mkdtempSync(join(tmpdir(), 'modiff dev launcher ')); + const client = join(root, 'client checkout with spaces'); + const backend = join(root, 'backend checkout with spaces'); + const tools = join(root, 'operator tools with spaces'); + const calls = join(root, 'calls.txt'); + for (const path of [client, backend, tools, join(backend, 'modiff'), join(backend, 'requirements')]) + mkdirSync(path, { recursive: true }); + copyFileSync(join(clientRoot, `install-dev.${shell}`), join(client, `install-dev.${shell}`)); + copyFileSync(join(backendRoot, 'modiff/tool_locks.py'), join(backend, 'modiff/tool_locks.py')); + writeFileSync(join(backend, 'modiff/__init__.py'), ''); + writeFileSync(join(backend, 'requirements/test.txt'), ''); + writeFileSync( + join(backend, 'modiff/preflight.py'), + 'import os\nfrom pathlib import Path\nwith Path(os.environ["MODIFF_DEV_CALLS"]).open("a") as stream: stream.write("preflight\\n")\nprint("{\\"ready\\": true}")\n', + ); + successful(backendPython, ['-m', 'venv', '--without-pip', join(backend, '.venv')]); + const python = join(backend, windows ? '.venv/Scripts/python.exe' : '.venv/bin/python'); + const sitePackages = successful(python, ['-c', 'import site; print(site.getsitepackages()[0])']); + writeFileSync(join(sitePackages, 'modiff-fixture.pth'), backend + '\n'); + const env = { + ...process.env, + PATH: tools, + MODIFF_DEV_CALLS: calls, + MODIFF_BACKEND_DIR: relative(root, backend), + UV_FIXTURE_EXIT: scenario === 'pip-error' ? '7' : '0', + UV_FIXTURE_VERSION: scenario === 'broken' ? 'broken' : '0.12.23', + }; + const installerExit = scenario === 'installer-error' ? 9 : 0; + const fallback = join(backend, '.modiff/tools/uv', windows ? 'uv.exe' : 'uv'); + mkdirSync(dirname(fallback), { recursive: true }); + if (shell === 'ps1') { + writeFileSync( + join(backend, 'install.ps1'), + `param([string]$Accelerator, [switch]$AllowExperimental, [switch]$Resume, [switch]$Repair, [switch]$BackendOnly)\nif (!$BackendOnly) { throw 'Expected backend-only installation.' }\nAdd-Content -LiteralPath $env:MODIFF_DEV_CALLS -Value installer\nSet-Location -LiteralPath $PSScriptRoot\nexit ${installerExit}\n`, + ); + writeFileSync(join(tools, 'npm.cmd'), '@echo off\necho npm>>"%MODIFF_DEV_CALLS%"\nexit /b 0\n'); + const uvSource = join(root, 'uv-fixture.cs'); + writeFileSync( + uvSource, + `using System; using System.IO; using System.Reflection;\npublic class UvFixture { public static int Main(string[] args) {\nstring executable = Assembly.GetEntryAssembly().Location;\nstring log = Environment.GetEnvironmentVariable("MODIFF_DEV_CALLS");\nif(args.Length == 1 && args[0] == "--version") { File.AppendAllText(log, "probe:" + executable + "\\n"); Console.WriteLine("uv " + Environment.GetEnvironmentVariable("UV_FIXTURE_VERSION")); return 0; }\nFile.AppendAllText(log, "uv:" + executable + "\\n" + String.Join("\\n", args) + "\\n");\nConsole.Error.WriteLine("native uv fixture progress"); return Int32.Parse(Environment.GetEnvironmentVariable("UV_FIXTURE_EXIT")); } }\n`, + ); + const compiled = join(root, 'uv.exe'); + const compileScript = join(root, 'compile-fixture.ps1'); + writeFileSync( + compileScript, + 'param([string]$Source, [string]$Output)\n$ErrorActionPreference = "Stop"\nAdd-Type -Path $Source -OutputAssembly $Output -OutputType ConsoleApplication\n', + ); + successful(powershell, ['-NoProfile', '-File', compileScript, '-Source', uvSource, '-Output', compiled]); + if (scenario !== 'missing' && scenario !== 'fallback') copyFileSync(compiled, join(tools, 'uv.exe')); + if (scenario === 'fallback' || scenario === 'broken') copyFileSync(compiled, fallback); + } else { + executable( + join(backend, 'install.sh'), + `#!/usr/bin/env bash\n[[ "$*" == *--backend-only* ]] || exit 4\nprintf 'installer\\n' >> "$MODIFF_DEV_CALLS"\nexit ${installerExit}\n`, + ); + executable(join(tools, 'npm'), '#!/bin/sh\nprintf "npm\\n" >> "$MODIFF_DEV_CALLS"\n'); + const uv = + '#!/bin/sh\nif [ "$1" = --version ]; then printf "probe:%s\\n" "$0" >> "$MODIFF_DEV_CALLS"; printf "uv %s\\n" "$UV_FIXTURE_VERSION"; exit 0; fi\nprintf "uv:%s\\n" "$0" >> "$MODIFF_DEV_CALLS"\nprintf "%s\\n" "$@" >> "$MODIFF_DEV_CALLS"\nprintf "native uv fixture progress\\n" >&2\nexit "$UV_FIXTURE_EXIT"\n'; + if (scenario !== 'missing' && scenario !== 'fallback') executable(join(tools, 'uv'), uv); + if (scenario === 'fallback' || scenario === 'broken') executable(fallback, uv); + // Keep PATH isolated from any real uv/npm, including in missing-tool cases. + for (const tool of ['bash', 'dirname', 'mkdir']) { + const source = ['/bin', '/usr/bin'].map((dir) => join(dir, tool)).find(existsSync); + assert.ok(source, `Required shell tool is unavailable: ${tool}`); + symlinkSync(source, join(tools, tool)); + } + } + return { root, client, backend, python, tools, calls, fallback, env }; +} + +for (const shell of ['ps1', 'sh']) { + for (const scenario of ['path', 'fallback', 'missing', 'broken', 'pip-error', 'installer-error']) { + test( + `${shell} development installer: ${scenario} uv respects the backend resolver and failure boundary`, + { skip: (shell === 'ps1') !== windows || !existsSync(backendPython) }, + () => { + const f = fixture(shell, scenario); + try { + const result = + shell === 'ps1' + ? command( + powershell, + [ + '-NoProfile', + '-ExecutionPolicy', + 'Bypass', + '-File', + join(f.client, 'install-dev.ps1'), + '-BackendPath', + relative(f.root, f.backend), + '-Accelerator', + 'cpu', + ], + { cwd: f.root, env: f.env }, + ) + : command('/bin/bash', [join(f.client, 'install-dev.sh'), '--accelerator', 'cpu'], { + cwd: f.root, + env: f.env, + }); + const calls = readFileSync(f.calls, 'utf8'); + const output = result.stdout + result.stderr; + if (scenario === 'missing' || scenario === 'broken') { + assert.notEqual(result.status, 0, output); + assert.match(output, scenario === 'missing' ? /Install uv.*add it to PATH/ : /did not report a uv version/); + assert.doesNotMatch(calls, /uv:|npm|preflight/); + if (scenario === 'broken') assert.doesNotMatch(calls, /probe:.*\.modiff/); + } else if (scenario === 'installer-error') { + assert.equal(result.status, 9, output); + assert.doesNotMatch(calls, /probe:|uv:|npm|preflight/); + } else { + const expectedUv = scenario === 'fallback' ? f.fallback : join(f.tools, windows ? 'uv.exe' : 'uv'); + assert.ok(calls.includes(`uv:${expectedUv}\n`), calls); + assert.ok( + calls.includes(`pip\ninstall\n--python\n${f.python}\n-r\n${join(f.backend, 'requirements/test.txt')}\n`), + calls, + ); + assert.equal(result.status, scenario === 'pip-error' ? 7 : 0, output); + if (scenario === 'pip-error') assert.doesNotMatch(calls, /npm|preflight/); + else { + assert.match(output, /Development environment is ready/); + assert.match(calls, /npm[\s\S]*preflight/); + assert.deepEqual( + JSON.parse( + readFileSync(join(f.client, 'artifacts/dev-install-current/backend-preflight.json'), 'utf8').replace( + /^\uFEFF/, + '', + ), + ), + { ready: true }, + ); + } + } + } finally { + assert.equal(dirname(f.root), resolve(tmpdir()), 'Cleanup must stay inside the test temporary directory'); + rmSync(f.root, { recursive: true, force: true }); + } + }, + ); + } +} diff --git a/scripts/media-viewer.test.mjs b/scripts/media-viewer.test.mjs index f4bd11f2..faa12fed 100644 --- a/scripts/media-viewer.test.mjs +++ b/scripts/media-viewer.test.mjs @@ -9,6 +9,9 @@ import { renderToStaticMarkup } from 'react-dom/server'; const ROOT = path.resolve(path.dirname(fileURLToPath(import.meta.url)), '..'); let mediaViewer; let outputUtils; +let outputText; +let outputContracts; +let previewHistory; let templateAssets; let previewFrame; let audioField; @@ -37,6 +40,9 @@ before(async () => { }); mediaViewer = await server.ssrLoadModule('/src/utils/mediaViewer.ts'); outputUtils = await server.ssrLoadModule('/src/studio/outputUtils.ts'); + outputText = await server.ssrLoadModule('/src/studio/outputText.ts'); + outputContracts = await server.ssrLoadModule('/src/studio/outputContracts.ts'); + previewHistory = await server.ssrLoadModule('/src/fields/PreviewHistoryStripContent.tsx'); templateAssets = await server.ssrLoadModule('/src/studio/templateAssets.ts'); previewFrame = await server.ssrLoadModule('/src/ui/PreviewFrame.tsx'); audioField = await server.ssrLoadModule('/src/fields/UIAudioField.tsx'); @@ -53,6 +59,112 @@ after(async () => { await server?.close(); }); +test('text and JSON output presentation preserves missing, primitive, structured and literal markup values', () => { + for (const [value, expected] of [ + [undefined, ''], + ['', ''], + [0, '0'], + [false, 'false'], + [null, 'null'], + ['हैलो ', 'हैलो '], + [['native text'], '[\n "native text"\n]'], + [{ message: 'text', values: [0, false] }, '{\n "message": "text",\n "values": [\n 0,\n false\n ]\n}'], + ]) { + const output = { id: 'text-output', displayType: 'text', value }; + assert.equal(outputText.outputText(output), expected); + const opener = outputText.textOutputViewerOpener(output, 'Recorded text', 'recorded.txt'); + assert.deepEqual(opener.items, [ + { id: 'text-output', kind: 'text', label: 'Text', text: expected, downloadName: 'recorded.txt' }, + ]); + assert.equal(mediaViewer.sanitizeMediaViewerItems(opener.items)[0].text, expected); + } + assert.equal( + outputText.outputTextType({ displayType: 'text', url: '/recorded.mp4', mediaItems: [{ displayType: 'image' }] }), + 'text', + ); + assert.equal(outputText.outputTextType({ displayType: 'json', mediaItems: [{ displayType: 'text' }] }), 'json'); + assert.equal(outputText.outputTextType({ displayType: 'unknown', mediaItems: [{ displayType: 'json' }] }), 'json'); + for (const displayType of ['image', 'image_collection', 'audio', 'video']) { + assert.equal(outputText.outputTextType({ displayType, mediaItems: [{ displayType: 'text' }] }), undefined); + } +}); + +test('Previous strip renders declared text and JSON as escaped content rather than media', () => { + for (const displayType of ['text', 'json']) { + const value = ''; + const markup = renderToStaticMarkup( + createElement(previewHistory.default, { + history: [ + { + id: `history-${displayType}`, + displayType, + value, + url: '/recorded.mp4', + nodeId: 'preview', + fieldKey: 'preview', + createdAt: 1, + }, + ], + }), + ); + assert.match(markup, /<img src=x onerror="window\.__previewXss=true">/); + assert.doesNotMatch(markup, /<(img|video|audio)\b/); + assert.match(markup, new RegExp(`${displayType === 'json' ? 'JSON' : 'Text'} from`)); + } +}); + +test('history parsing preserves explicit text and JSON null values before presentation', () => { + for (const displayType of ['text', 'json']) { + for (const value of [null, 0, false, '', { message: 'हैलो' }]) { + const record = outputContracts.coerceStudioOutput({ + id: 'parsed-output', + url: '/file?file=recorded.json', + displayType, + value, + }); + assert.deepEqual(record.value, value); + assert.equal(outputText.outputText(record), typeof value === 'string' ? value : JSON.stringify(value, null, 2)); + } + } + for (const displayType of ['image', 'image_collection', 'audio', 'video']) { + const record = outputContracts.coerceStudioOutput({ + id: 'declared-media', + url: '/recorded-media', + displayType, + value: null, + }); + assert.equal(record.value, null); + assert.equal(record.url, '/recorded-media'); + } + assert.equal(outputContracts.coerceStudioOutput({ id: 'legacy-image', url: '/recorded.png' }).value, '/recorded.png'); +}); + +test('Previous preserves explicit media families and ordered image collection thumbnails', () => { + for (const displayType of ['image', 'video', 'audio', 'image_collection']) { + const markup = renderToStaticMarkup( + createElement(previewHistory.default, { + history: [ + outputContracts.coerceStudioOutput({ + id: 'declared-media', + displayType, + url: '/file?file=recorded-media', + value: 'Wrong item text', + createdAt: 1, + mediaItems: [{ index: 0, displayType: 'text', url: '/file?file=wrong-text.txt' }], + }), + ], + }), + ); + assert.doesNotMatch(markup, /Wrong item text/); + if (displayType === 'audio') assert.match(markup, /Audio from/); + else { + assert.match(markup, displayType === 'video' ? / { const baseUrl = 'http://127.0.0.1:8088'; assert.equal( diff --git a/scripts/run-activity.test.mjs b/scripts/run-activity.test.mjs index 6c9d9fe7..906b1612 100644 --- a/scripts/run-activity.test.mjs +++ b/scripts/run-activity.test.mjs @@ -7,6 +7,7 @@ import { createServer } from 'vite'; const ROOT = path.resolve(path.dirname(fileURLToPath(import.meta.url)), '..'); let activityModule; +let outputContracts; let flowStoreModule; let issueStoreModule; let settingsStoreModule; @@ -61,6 +62,7 @@ before(async () => { appType: 'custom', }); activityModule = await server.ssrLoadModule('/src/studio/runActivity.ts'); + outputContracts = await server.ssrLoadModule('/src/studio/outputContracts.ts'); flowStoreModule = await server.ssrLoadModule('/src/stores/useFlowStore.ts'); issueStoreModule = await server.ssrLoadModule('/src/stores/useRunIssueStore.ts'); settingsStoreModule = await server.ssrLoadModule('/src/stores/useSettingsStore.ts'); @@ -140,6 +142,39 @@ function output(overrides = {}) { }; } +test('run outputs preserve declared JSON with backend file URLs and structured, null and zero values', () => { + for (const value of [{ message: '', values: [false, 'हैलो'] }, null, 0]) { + for (const withMediaItem of [false, true]) { + const url = '/file?file=%40data%2Fstudio%2Foutputs%2Frecorded.json'; + const record = output({ + displayType: 'json', + url, + value, + mediaItems: withMediaItem ? [{ index: 0, displayType: 'json', url, value }] : undefined, + }); + const items = activityModule.mediaViewerItemsForRun([record]); + assert.equal(items.length, 1); + assert.equal(items[0].kind, 'text'); + assert.equal(items[0].text, JSON.stringify(value, null, 2)); + assert.equal(items[0].url, undefined); + } + } +}); + +test('run outputs retain explicit null from parsed JSON history and per-item captures', () => { + const url = '/file?file=recorded.json'; + for (const withMediaItem of [false, true]) { + const record = outputContracts.coerceStudioOutput({ + id: 'parsed-json', + displayType: 'json', + url, + value: withMediaItem ? { legacy: 'fallback' } : null, + mediaItems: withMediaItem ? [{ index: 0, displayType: 'json', url, value: null }] : undefined, + }); + assert.equal(activityModule.mediaViewerItemsForRun([record])[0].text, 'null'); + } +}); + function deferredResponse() { let resolve; const promise = new Promise((settle) => { diff --git a/scripts/run-coordinator.test.mjs b/scripts/run-coordinator.test.mjs index 1f64be63..fc39d718 100644 --- a/scripts/run-coordinator.test.mjs +++ b/scripts/run-coordinator.test.mjs @@ -22,6 +22,7 @@ let studioStoreModule; let taskStoreModule; let websocketModule; let websocketStoreModule; +let memoryFormattingModule; let server; let originalFetch; @@ -68,6 +69,7 @@ before(async () => { taskStoreModule = await server.ssrLoadModule('/src/stores/useTaskStore.ts'); websocketModule = await server.ssrLoadModule('/src/stores/websocketMessageHandler.ts'); websocketStoreModule = await server.ssrLoadModule('/src/stores/useWebsocketStore.ts'); + memoryFormattingModule = await server.ssrLoadModule('/src/utils/formatMemory.ts'); originalFetch = globalThis.fetch; }); @@ -2733,6 +2735,126 @@ test('websocket parsing accepts handled Auto events and rejects malformed typed assert.deepEqual(websocketModule.parseWebsocketMessage(JSON.stringify(exactBackendHeartbeat)), exactBackendHeartbeat); }); +test('native CPU executed frames retain unavailable memory measurements and node completion', () => { + // Exact execution messages captured from a native CPU service run on 2026-10-09. + // Prompt at 12:00:54.728Z; preview at 12:00:54.759Z. No model download was involved. + const frames = [ + { + type: 'executed', + node: 'prompt', + name: 'modules.Primitive.TextValue', + task_id: 'native-cpu-memory-task', + attempt_index: 0, + status: 'succeeded', + phase: 'unknown', + progress: 100, + current_node: 'prompt', + hasChanged: true, + message: 'Recomputed: node inputs changed.', + executionTime: { last: 0, min: 0, max: 0.0009989738464355469 }, + memoryUsage: { last: null, min: null, max: null }, + }, + { + type: 'executed', + node: 'preview', + name: 'modules.Primitive.DataViewer', + task_id: 'native-cpu-memory-task', + attempt_index: 0, + status: 'succeeded', + phase: 'unknown', + progress: 100, + current_node: 'preview', + hasChanged: true, + message: 'Recomputed: output was invalidated by an upstream change or recompute request.', + executionTime: { last: 0, min: 0, max: 0 }, + memoryUsage: { last: null, min: null, max: null }, + }, + ]; + const flow = flowStoreModule.useFlowStore; + const preview = flow.getState().nodes[0]; + flow.setState({ nodes: [{ ...preview, id: 'prompt' }, preview] }); + studioStoreModule.useStudioStore + .getState() + .captureRunContext(graph(), undefined, { clientRunId: 'native-memory-run' }); + studioStoreModule.useStudioStore + .getState() + .attachRunResponse({ task_id: 'native-cpu-memory-task', sid: 'session-1' }, 'native-memory-run'); + for (const frame of frames) { + const parsed = websocketModule.parseWebsocketMessage(JSON.stringify(frame)); + assert.deepEqual(parsed, frame); + websocketModule.handleWebsocketMessage(parsed, { + sid: 'session-1', + ws: {}, + getSid: () => 'session-1', + setSid: () => undefined, + setLoopTimer: () => undefined, + }); + const node = flow.getState().nodes.find((item) => item.id === frame.node); + assert.equal(node.data.isCached, true); + assert.equal(node.data.progress, 100); + assert.equal(node.data.executionStatus, 'succeeded'); + assert.deepEqual(node.data.memoryUsage, { last: null, min: null, max: null }); + assert.deepEqual(node.data.executionTime, frame.executionTime); + } +}); + +test('memory measurements permit mixed finite values and null without weakening other telemetry', () => { + const message = { + type: 'executed', + node: 'preview', + hasChanged: true, + memoryUsage: { last: 0, min: null, max: 1024 }, + executionTime: { last: 0, min: 0, max: 1 }, + }; + const parsed = websocketModule.parseWebsocketMessage(JSON.stringify(message)); + assert.deepEqual(parsed, message); + websocketModule.handleWebsocketMessage(parsed, { + sid: 'session-1', + ws: {}, + getSid: () => 'session-1', + setSid: () => undefined, + setLoopTimer: () => undefined, + }); + assert.deepEqual(flowStoreModule.useFlowStore.getState().nodes[0].data.memoryUsage, message.memoryUsage); + for (const memoryUsage of [ + null, + [], + 'unknown', + { last: '0' }, + { last: false }, + { last: {} }, + { last: [] }, + { last: undefined }, + { last: Number.NaN }, + { last: Number.POSITIVE_INFINITY }, + { last: Number.NEGATIVE_INFINITY }, + ]) { + assert.equal(websocketModule.parseWebsocketMessage({ ...message, memoryUsage }), null); + } + for (const executionTime of [ + { last: null }, + { last: '0' }, + { last: Number.NaN }, + { last: Number.POSITIVE_INFINITY }, + ]) { + assert.equal(websocketModule.parseWebsocketMessage({ ...message, executionTime }), null); + } + assert.equal(websocketModule.parseWebsocketMessage({ ...message, phase_timings: { loading: null } }), null); + assert.equal( + websocketModule.parseWebsocketMessage({ ...message, phase_timings: { loading: Number.POSITIVE_INFINITY } }), + null, + ); +}); + +test('memory formatting distinguishes unavailable readings from measured zero', () => { + assert.equal(memoryFormattingModule.formatMemory(null), '-'); + assert.equal(memoryFormattingModule.formatMemory(undefined), '-'); + assert.equal(memoryFormattingModule.formatMemory(0), '0 B'); + assert.equal(memoryFormattingModule.formatMemory(1024), '1.0 KB'); + assert.equal(memoryFormattingModule.formatMemory(Number.NaN), '-'); + assert.equal(memoryFormattingModule.formatMemory(Number.POSITIVE_INFINITY), '-'); +}); + test('exact backend heartbeats with null telemetry still update the task and node stores', () => { const heartbeat = websocketModule.parseWebsocketMessage( JSON.stringify({ diff --git a/src/components/CustomNode.tsx b/src/components/CustomNode.tsx index f442d0b9..d393e9f6 100644 --- a/src/components/CustomNode.tsx +++ b/src/components/CustomNode.tsx @@ -491,14 +491,14 @@ const CustomNode = memo((node: NodeProps & { surface?: NodeSurfa title="Peak node memory usage" onClick={(event) => setMemoryAnchor(anchorBelow(event.currentTarget))} > - {node.data.memoryUsage?.last ? formatMemory(node.data.memoryUsage.last) : '-'} + {formatMemory(node.data.memoryUsage?.last)} {memoryAnchor && ( setMemoryAnchor(null)} className="p-3">
Peak node VRAM usage
- {formatMemory(node.data.memoryUsage?.last ?? 0)} - {formatMemory(node.data.memoryUsage?.min ?? 0)} - {formatMemory(node.data.memoryUsage?.max ?? 0)} + {formatMemory(node.data.memoryUsage?.last)} + {formatMemory(node.data.memoryUsage?.min)} + {formatMemory(node.data.memoryUsage?.max)}
)} void; }) { + if (outputTextType(output)) { + return ( + +
+          {outputText(output)}
+        
+
+ ); + } if (isAudioOutput(output)) { return (
state.setRightPanelTab); const setGalleryLibraryOpen = useSettingsStore((state) => state.setGalleryLibraryOpen); const setLightboxOpener = useSettingsStore((state) => state.setLightboxOpener); + const setMediaViewerOpener = useSettingsStore((state) => state.setMediaViewerOpener); const setMediaExportOpener = useSettingsStore((state) => state.setMediaExportOpener); const sid = useWebsocketStore((state) => state.sid); const isConnected = useWebsocketStore((state) => state.isConnected); @@ -212,6 +237,24 @@ export default function OutputGalleryPanel({ modalView = false }: { modalView?: }); }; + const openOutput = (output: StudioOutput) => { + const textType = outputTextType(output); + if (textType) { + setMediaViewerOpener( + textOutputViewerOpener( + output, + `Gallery ${textType} output`, + `modiff-${output.modelType}-${output.id}.${textType === 'json' ? 'json' : 'txt'}`, + ), + ); + } else if (isVideoOutput(output) || isAudioOutput(output)) { + setSelectedOutputIds([output.id]); + setView('inspect'); + } else { + setLightboxOpener(outputImageLightboxOpener(output)); + } + }; + const handleRestore = (output: StudioOutput) => { restoreWorkflowFromOutput(output); setRightPanelTab('studio'); @@ -498,39 +541,31 @@ export default function OutputGalleryPanel({ modalView = false }: { modalView?:
{ - if (isVideoOutput(output) || isAudioOutput(output)) { - setSelectedOutputIds([output.id]); - setView('inspect'); - } else { - setLightboxOpener(outputImageLightboxOpener(output)); - } - }} - > - - - - previous && setLightboxOpener(imageUrlLightboxOpener([previous.url, output.url], 1)) - } + onClick={() => openOutput(output)} > + {isImageOutput(output) && ( + + previous && setLightboxOpener(imageUrlLightboxOpener([previous.url, output.url], 1)) + } + > + + + )} { + const textType = outputTextType(output); + if (textType) { + void exportMedia( + output.url, + `modiff-${output.modelType}-${output.id}.${textType === 'json' ? 'json' : 'txt'}`, + 'text', + null, + { format: 'original' }, + ).catch((error) => + enqueueSnackbar(String(error), { variant: 'error', autoHideDuration: 6000 }), + ); + return; + } const kind = isAudioOutput(output) ? 'audio' : isVideoOutput(output) ? 'video' : 'image'; setMediaExportOpener({ source: output.url, @@ -576,7 +626,7 @@ export default function OutputGalleryPanel({ modalView = false }: { modalView?: > - {!isVideoOutput(output) && !isAudioOutput(output) && ( + {isImageOutput(output) && ( - { - sendOutputToReference(output); - setRightPanelTab('studio'); - setGalleryLibraryOpen(false); - }} - > - - + {!outputTextType(output) && ( + { + sendOutputToReference(output); + setRightPanelTab('studio'); + setGalleryLibraryOpen(false); + }} + > + + + )} Version tree
{outputs.slice(0, 12).map((output) => ( - { - if (isVideoOutput(output) || isAudioOutput(output)) { - setSelectedOutputIds([output.id]); - setView('inspect'); - } else { - setLightboxOpener(outputImageLightboxOpener(output)); - } - }} - /> + openOutput(output)} /> ))}
@@ -859,25 +900,27 @@ function GalleryMeta({ output }: { output: StudioOutput }) { } function GalleryInspect({ output }: { output: StudioOutput }) { - const mediaDetails = isVideoOutput(output) - ? { - requestedSize: `${output.formSnapshot.width}x${output.formSnapshot.height}`, - requestedNumFrames: output.formSnapshot.numFrames, - requestedFps: output.formSnapshot.fps, - resolvedSize: output.resolvedExecutionInputs - ? `${outputInputDisplay(output, 'width')}x${outputInputDisplay(output, 'height')}` - : undefined, - encodedVideo: encodedVideoMetadata(output), - } - : { - // Image-edit routes can derive geometry from references without width/height - // call arguments. Keep actual asset geometry separate from input evidence. - size: outputMediaSizeLabel(output) ?? 'Not captured', - resolvedInputDimensions: { - width: outputInputDisplay(output, 'width'), - height: outputInputDisplay(output, 'height'), - }, - }; + const mediaDetails = outputTextType(output) + ? { displayType: outputTextType(output) } + : isVideoOutput(output) + ? { + requestedSize: `${output.formSnapshot.width}x${output.formSnapshot.height}`, + requestedNumFrames: output.formSnapshot.numFrames, + requestedFps: output.formSnapshot.fps, + resolvedSize: output.resolvedExecutionInputs + ? `${outputInputDisplay(output, 'width')}x${outputInputDisplay(output, 'height')}` + : undefined, + encodedVideo: encodedVideoMetadata(output), + } + : { + // Image-edit routes can derive geometry from references without width/height + // call arguments. Keep actual asset geometry separate from input evidence. + size: outputMediaSizeLabel(output) ?? 'Not captured', + resolvedInputDimensions: { + width: outputInputDisplay(output, 'width'), + height: outputInputDisplay(output, 'height'), + }, + }; return (
diff --git a/src/fields/PreviewHistoryStripContent.tsx b/src/fields/PreviewHistoryStripContent.tsx index f4a708b8..14ade6a3 100644 --- a/src/fields/PreviewHistoryStripContent.tsx +++ b/src/fields/PreviewHistoryStripContent.tsx @@ -3,6 +3,7 @@ import { useSettingsStore } from '../stores/useSettingsStore'; import { useStudioStore } from '../stores/useStudioStore'; import type { StudioOutput } from '../studio/types'; import { outputMediaSizeLabel, outputNumericInputValue } from '../studio/resolvedExecutionInputs'; +import { outputText, outputTextType, textOutputViewerOpener } from '../studio/outputText'; import { normalizeImageArtifacts, type ImageArtifact } from '../utils/imageArtifacts'; import { enqueueSnackbar } from '../ui/snackbar'; import { GraphControlButton, GraphIconButton } from '../ui/GraphControls'; @@ -10,11 +11,21 @@ import { ModiffMenuAction, ModiffMenuRoot, ModiffMenuSurface, ModiffMenuTrigger import type { PreviewHistoryStripProps } from './PreviewHistoryStrip'; function outputUrl(output: StudioOutput) { - return output.mediaItems?.[0]?.url ?? output.url; + return outputMediaItems(output)?.[0]?.url ?? output.url; +} + +function outputMediaItems(output: StudioOutput) { + const type = outputType(output); + return output.mediaItems?.filter( + (item) => !item.displayType || item.displayType === 'unknown' || item.displayType === type, + ); } function outputType(output: StudioOutput) { - return output.mediaItems?.[0]?.displayType ?? output.displayType ?? 'unknown'; + if (output.displayType === 'image_collection') return 'image'; + return output.displayType && output.displayType !== 'unknown' + ? output.displayType + : (output.mediaItems?.[0]?.displayType ?? 'unknown'); } function outputLabel(output: StudioOutput) { @@ -26,18 +37,18 @@ function outputLabel(output: StudioOutput) { } if (type === 'audio') return 'Audio'; if (type === 'text') return 'Text'; + if (type === 'json') return 'JSON'; return 'Output'; } -function outputText(output: StudioOutput) { - return typeof output.value === 'string' ? output.value : JSON.stringify(output.value, null, 2); -} - function downloadTextOutput(output: StudioOutput) { - const blobUrl = URL.createObjectURL(new Blob([outputText(output)], { type: 'text/plain;charset=utf-8' })); + const json = outputTextType(output) === 'json'; + const blobUrl = URL.createObjectURL( + new Blob([outputText(output)], { type: json ? 'application/json;charset=utf-8' : 'text/plain;charset=utf-8' }), + ); const anchor = document.createElement('a'); anchor.href = blobUrl; - anchor.download = `modiff-${output.nodeId}-${output.fieldKey}.txt`; + anchor.download = `modiff-${output.nodeId}-${output.fieldKey}.${json ? 'json' : 'txt'}`; document.body.append(anchor); anchor.click(); anchor.remove(); @@ -73,10 +84,11 @@ export default function PreviewHistoryStripContent({ const openOutput = (output: StudioOutput) => { const type = outputType(output); + const capturedItems = outputMediaItems(output); if (type === 'image' || output.displayType === 'image_collection') { const images = normalizeImageArtifacts({ - value: output.mediaItems?.map((item) => item.url) ?? [output.url], - artifacts: output.mediaItems?.map( + value: capturedItems?.length ? capturedItems.map((item) => item.url) : [output.url], + artifacts: capturedItems?.map( (item) => ({ url: item.url, @@ -103,26 +115,20 @@ export default function PreviewHistoryStripContent({ }); return; } - if (type === 'text' || output.displayType === 'text') { - setMediaViewerOpener({ - title: 'Previous text render', - currentIndex: 0, - items: [ - { - id: output.id, - kind: 'text', - label: outputLabel(output), - text: outputText(output), - downloadName: `modiff-${output.nodeId}-${output.fieldKey}.txt`, - }, - ], - }); + if (type === 'text' || type === 'json') { + setMediaViewerOpener( + textOutputViewerOpener( + output, + `Previous ${type} render`, + `modiff-${output.nodeId}-${output.fieldKey}.${type === 'json' ? 'json' : 'txt'}`, + ), + ); return; } if (type === 'video' || type === 'audio') { const mediaItems = - output.mediaItems && output.mediaItems.length > 0 - ? output.mediaItems + capturedItems && capturedItems.length > 0 + ? capturedItems : [ { index: 0, @@ -199,7 +205,7 @@ export default function PreviewHistoryStripContent({ {outputLabel(output)} - ) : type === 'text' ? ( + ) : type === 'text' || type === 'json' ? ( {outputText(output)} @@ -228,7 +234,7 @@ export default function PreviewHistoryStripContent({ } onClick={() => { - if (type === 'text') { + if (type === 'text' || type === 'json') { downloadTextOutput(output); return; } @@ -237,7 +243,7 @@ export default function PreviewHistoryStripContent({ source: url, kind: type, filename: - output.mediaItems?.[0]?.backendPath?.split('/').pop() ?? + outputMediaItems(output)?.[0]?.backendPath?.split('/').pop() ?? `modiff-${output.nodeId}-${output.fieldKey}-${output.createdAt}.${ type === 'audio' ? 'wav' : type === 'video' ? 'mp4' : 'webp' }`, diff --git a/src/stores/flowNodeMutations.ts b/src/stores/flowNodeMutations.ts index 899599c5..e590be5b 100644 --- a/src/stores/flowNodeMutations.ts +++ b/src/stores/flowNodeMutations.ts @@ -3,6 +3,7 @@ import { nanoid } from 'nanoid'; import type { NodeData, NodeParams } from './useNodeStore'; import type { CustomNodeType, FlowStore } from './useFlowStore'; +import type { NodeMemoryUsage } from '../types/api'; import { deepEqual } from '../utils/deepEqual'; import { applyFlowNodeChangesInvariant, removeFlowNodesInvariant, replaceFlowGraph } from './flowGraphMutations'; import { handleEdgesChange, reconcileGraphConnections } from './flowConnectionMutations'; @@ -635,7 +636,7 @@ export function setFlowViewport(viewport: Viewport, set: FlowStoreSet) { export function setFlowNodeCached( id: string, isCached: boolean, - memoryUsage: Record | undefined, + memoryUsage: NodeMemoryUsage | undefined, executionTime: Record | undefined, set: FlowStoreSet, ) { diff --git a/src/stores/useFlowStore.ts b/src/stores/useFlowStore.ts index d5be73ab..78e17ec0 100644 --- a/src/stores/useFlowStore.ts +++ b/src/stores/useFlowStore.ts @@ -10,7 +10,7 @@ import { NodeData, NodeParams, type NodeParamSignal } from './useNodeStore'; import { Node, Edge, OnNodesChange, OnEdgesChange, NodeChange, EdgeChange, Connection, Viewport } from '@xyflow/react'; import { nanoid } from 'nanoid'; -import type { ApiGraphExport } from '../types/api'; +import type { ApiGraphExport, NodeMemoryUsage } from '../types/api'; import { migrateLocalStorageKey } from '../utils/persistMigration'; import { createResilientCheckpointStorage } from '../utils/checkpointStorage'; import { arrangeGraphNodes } from '../workflow/graphLayout'; @@ -276,7 +276,7 @@ export type FlowStore = { setNodeCached: ( id: string, cached: boolean, - memoryUsage?: Record, + memoryUsage?: NodeMemoryUsage, executionTime?: Record, ) => void; updateCacheStatus: (ids: string | string[]) => void; @@ -2480,7 +2480,7 @@ export const useFlowStore = create()( setNodeCached: ( id: string, isCached: boolean, - memoryUsage?: Record, + memoryUsage?: NodeMemoryUsage, executionTime?: Record, ) => { setFlowNodeCached(id, isCached, memoryUsage, executionTime, set); diff --git a/src/stores/useNodeStore.ts b/src/stores/useNodeStore.ts index f2522f57..b02b7d07 100644 --- a/src/stores/useNodeStore.ts +++ b/src/stores/useNodeStore.ts @@ -9,6 +9,7 @@ import { import { create } from 'zustand'; import type { RuntimeResourceSnapshot } from '../studio/runtimeResources'; +import type { NodeMemoryUsage } from '../types/api'; import config from '../../app.config'; import { classifyHfDownloadFailure, @@ -79,7 +80,7 @@ export type NodeData = { resizable?: boolean; skipParamsCheck?: boolean; executionTime?: Record; - memoryUsage?: Record; + memoryUsage?: NodeMemoryUsage; isCached?: boolean; progress?: number; activeTaskId?: string | null; diff --git a/src/studio/outputContracts.ts b/src/studio/outputContracts.ts index e96d1ff1..b0e72e45 100644 --- a/src/studio/outputContracts.ts +++ b/src/studio/outputContracts.ts @@ -423,7 +423,7 @@ export function coerceStudioOutput(value: unknown): StudioOutput | undefined { attemptIndex: optionalNumber(value.attemptIndex), nodeId: stringValue(value.nodeId, 'studio-output'), fieldKey: stringValue(value.fieldKey, 'output'), - value: safeCloneJson(value.value ?? url), + value: safeCloneJson(value.value === undefined ? url : value.value), url, mode, modelType, diff --git a/src/studio/outputText.ts b/src/studio/outputText.ts new file mode 100644 index 00000000..ce47f3b6 --- /dev/null +++ b/src/studio/outputText.ts @@ -0,0 +1,28 @@ +import type { MediaViewerOpener } from '../stores/useSettingsStore'; +import type { StudioOutput } from './types'; + +export function outputTextType(output: StudioOutput): 'text' | 'json' | undefined { + const type = + output.displayType && output.displayType !== 'unknown' ? output.displayType : output.mediaItems?.[0]?.displayType; + return type === 'text' || type === 'json' ? type : undefined; +} + +export function outputText(output: StudioOutput): string { + return typeof output.value === 'string' ? output.value : (JSON.stringify(output.value, null, 2) ?? ''); +} + +export function textOutputViewerOpener(output: StudioOutput, title: string, downloadName: string): MediaViewerOpener { + return { + title, + currentIndex: 0, + items: [ + { + id: output.id, + kind: 'text', + label: outputTextType(output) === 'json' ? 'JSON' : 'Text', + text: outputText(output), + downloadName, + }, + ], + }; +} diff --git a/src/studio/runActivity.ts b/src/studio/runActivity.ts index fc526075..2602e8a7 100644 --- a/src/studio/runActivity.ts +++ b/src/studio/runActivity.ts @@ -127,6 +127,7 @@ function inferredMediaKind( displayType: StudioOutput['displayType'] | NonNullable[number]['displayType'], url: string, ): MediaViewerItem['kind'] { + if (displayType === 'json') return 'text'; if (displayType === 'video' || displayType === 'audio' || displayType === 'text') return displayType; if (displayType === 'image' || displayType === 'image_collection') return 'image'; const path = url.split(/[?#]/, 1)[0]?.toLowerCase() ?? ''; @@ -162,7 +163,7 @@ export function mediaViewerItemsForRun(outputs: StudioOutput[]): MediaViewerItem sourceItems.forEach((item, itemIndex) => { const url = typeof item.url === 'string' ? item.url : ''; const kind = inferredMediaKind(item.displayType, url); - const text = kind === 'text' ? textValue(item.value ?? output.value) : undefined; + const text = kind === 'text' ? textValue(item.value === undefined ? output.value : item.value) : undefined; if (kind !== 'text' && !url) return; const dedupeKey = `${kind}:${kind === 'text' ? text : url}`; if (seen.has(dedupeKey)) return; diff --git a/src/types/api.ts b/src/types/api.ts index d51f2f5e..b1f678bb 100644 --- a/src/types/api.ts +++ b/src/types/api.ts @@ -6,6 +6,7 @@ export type JsonPrimitive = string | number | boolean | null; export type JsonValue = JsonPrimitive | JsonValue[] | { [key: string]: JsonValue }; export type JsonObject = { [key: string]: JsonValue }; export type NodeParamValue = JsonValue | File | Blob | undefined; +export type NodeMemoryUsage = Record; export type ApiGraphParamExport = { sourceId?: string; @@ -187,7 +188,7 @@ export type NodeWebsocketMessage = BaseWebsocketMessage< label?: string; style?: { headerColor?: string }; hasChanged?: boolean; - memoryUsage?: Record; + memoryUsage?: NodeMemoryUsage; executionTime?: Record; message?: string; error?: string; @@ -488,6 +489,12 @@ function isNumericRecord(value: unknown) { return isRecord(value) && Object.values(value).every(isFiniteNumber); } +function isMemoryUsageRecord(value: unknown) { + return ( + isRecord(value) && Object.values(value).every((measurement) => measurement === null || isFiniteNumber(measurement)) + ); +} + function isNotificationAction(value: unknown) { if (!isRecord(value)) return false; return ( @@ -584,7 +591,7 @@ function hasValidCommonWebsocketFields(value: Record) { 'style', (field) => isRecord(field) && optionalField(field, 'headerColor', (color) => typeof color === 'string'), ) && - optionalField(value, 'memoryUsage', isNumericRecord) && + optionalField(value, 'memoryUsage', isMemoryUsageRecord) && optionalField(value, 'resource_snapshot', isRecord, true) && optionalField(value, 'phase_timings', isNumericRecord) && optionalField( diff --git a/src/utils/formatMemory.ts b/src/utils/formatMemory.ts index 5f5cea71..e463f80f 100644 --- a/src/utils/formatMemory.ts +++ b/src/utils/formatMemory.ts @@ -1,6 +1,9 @@ // Derived from cubiq/Mellon-client and modified by the MoDiff project. -export function formatMemory(memoryUsage: number) { +export function formatMemory(memoryUsage: number | null | undefined) { + if (memoryUsage == null || !Number.isFinite(memoryUsage)) { + return '-'; + } if (memoryUsage < 1024) { return `${memoryUsage} B`; } else if (memoryUsage < 1024 * 1024) { diff --git a/tests/e2e/studio-mocked/studio-mocked.spec.ts b/tests/e2e/studio-mocked/studio-mocked.spec.ts index 0f0e8a98..f41f1abd 100644 --- a/tests/e2e/studio-mocked/studio-mocked.spec.ts +++ b/tests/e2e/studio-mocked/studio-mocked.spec.ts @@ -30485,3 +30485,142 @@ test('mocked Gallery opens every ordered collection image before and after histo } expect(graphPosts).toBe(0); }); + +for (const displayType of ['text', 'json'] as const) { + test(`mocked Gallery preserves ${displayType} preview, original download and non-image actions`, async ({ page }) => { + await ensureFrontend(); + await installMockRoutes(page); + await page.addInitScript(() => { + Object.defineProperty(window, 'showSaveFilePicker', { configurable: true, value: undefined }); + }); + const value = + displayType === 'text' + ? ['Native CPU memory telemetry acceptance'] + : { message: '', values: [0, false, 'हैलो'], empty: '' }; + const content = JSON.stringify(value, null, 2); + const rawContent = displayType === 'json' ? content + '\n' : content; + const extension = displayType === 'json' ? 'json' : 'txt'; + const label = displayType === 'json' ? 'JSON' : 'Text'; + const mediaPath = `@data/studio/outputs/gallery-${displayType}.${extension}`; + const url = `/file?file=${encodeURIComponent(mediaPath)}`; + const output = { + id: `gallery-${displayType}-output`, + url, + displayType, + value, + modelLabel: `Recorded ${label}`, + nodeId: 'preview', + fieldKey: 'preview', + taskId: `gallery-${displayType}-task`, + clientRunId: `gallery-${displayType}-client`, + runInputHash: `gallery-${displayType}-inputs`, + attemptIndex: 0, + createdAt: 1, + favorite: false, + mediaItems: [ + { + index: 0, + url, + backendPath: mediaPath, + displayType, + contentType: displayType === 'json' ? 'application/json' : 'text/plain', + }, + ], + }; + let historyReads = 0; + let favoritePatches = 0; + await page.route('**/studio_outputs**', (route) => { + if (route.request().method() === 'PATCH') { + expect(route.request().postDataJSON()).toEqual({ favorite: true }); + expect(decodeURIComponent(new URL(route.request().url()).pathname)).toContain(output.id); + output.favorite = true; + favoritePatches += 1; + } else { + expect(route.request().method()).toBe('GET'); + historyReads += 1; + } + return route.fulfill({ json: { error: false, outputs: [output], revision: 1 } }); + }); + await page.route('**/file*', (route) => { + const requestUrl = new URL(route.request().url()); + return requestUrl.searchParams.get('file') === mediaPath + ? route.fulfill({ contentType: displayType === 'json' ? 'application/json' : 'text/plain', body: rawContent }) + : route.fallback(); + }); + await page.goto(FRONTEND_URL, { waitUntil: 'domcontentloaded' }); + await page.waitForFunction(() => Boolean(window.__MODIFF_E2E__)); + await dismissTaskLauncher(page); + await page.getByTestId('topbar-gallery').click(); + const gallery = page.getByTestId('gallery-panel'); + const card = gallery.getByTestId('gallery-output-0'); + const closeTextPreview = async () => { + await page.getByRole('button', { name: 'Close media viewer', exact: true }).click(); + await expect(page.getByTestId('media-viewer-dialog')).toHaveCount(0); + // Cold shared dialogs dismiss Gallery while loading; warm dialogs retain it. + if (!(await gallery.isVisible())) await page.getByTestId('topbar-gallery').click(); + await expect(card).toBeVisible(); + }; + await expect(card.getByTestId('gallery-output-text')).toHaveText(content); + await expect(card).toContainText(`| ${label} |`); + await expect(card.locator('img')).toHaveCount(0); + await expect(card.getByRole('button', { name: 'Download PNG package', exact: true })).toHaveCount(0); + await expect(card.getByTestId('gallery-compare-0')).toHaveCount(0); + await expect(card.getByTestId('gallery-send-edit-0')).toHaveCount(0); + await card.getByTestId('gallery-open-0').click(); + await expect(page.getByTestId('media-viewer-text')).toHaveText(content); + await expect(page.getByTestId('media-viewer-dialog').locator('img')).toHaveCount(0); + expect(await page.evaluate(() => (window as Window & { __galleryXss?: boolean }).__galleryXss)).toBeUndefined(); + await closeTextPreview(); + await expect(card.getByTestId('gallery-restore-0')).toBeVisible(); + await expect(card.getByTestId('gallery-rerun-0')).toBeVisible(); + const packageDownloadPromise = page.waitForEvent('download'); + await card.getByTestId('gallery-download-package-0').click(); + const packageDownload = await packageDownloadPromise; + const metadataPackage = JSON.parse(await fs.readFile((await packageDownload.path())!, 'utf8')); + expect(metadataPackage.latestOutput).toMatchObject({ + id: output.id, + taskId: output.taskId, + clientRunId: output.clientRunId, + runInputHash: output.runInputHash, + displayType, + value, + }); + await card.getByTestId('gallery-favorite-0').click(); + await expect.poll(() => favoritePatches).toBe(1); + const downloadPromise = page.waitForEvent('download'); + await card.getByRole('button', { name: `Download ${displayType}`, exact: true }).click(); + const download = await downloadPromise; + expect(download.suggestedFilename()).toMatch(new RegExp(`\\.${extension}$`)); + expect(await fs.readFile((await download.path())!, 'utf8')).toBe(rawContent); + if (displayType === 'text') { + const bytes = await fs.readFile((await download.path())!); + expect(bytes.length).toBe(46); + expect(createHash('sha256').update(bytes).digest('hex')).toBe( + '87b7128d0401ebcb7de32877ff7378a51b1f9067ac47392af6469f15cb488862', + ); + } + await gallery.getByTestId('gallery-view-inspect').click(); + await expect(gallery.getByTestId('gallery-inspect-view').getByTestId('gallery-output-text')).toHaveText(content); + await gallery.getByTestId('gallery-view-compare').click(); + await expect(gallery.getByTestId('gallery-compare-view').getByTestId('gallery-output-text')).toHaveText(content); + await gallery.getByTestId('gallery-view-grid').click(); + await gallery.getByRole('button', { name: new RegExp(`^Root \\| Recorded ${label} \\|`) }).click(); + await expect(page.getByTestId('media-viewer-text')).toHaveText(content); + await closeTextPreview(); + await gallery.getByTestId('gallery-refresh-history').click(); + await expect.poll(() => historyReads).toBeGreaterThan(1); + await expect(card.getByTestId('gallery-output-text')).toHaveText(content); + const restoredOutput = await page.evaluate(() => window.__MODIFF_E2E__!.getState().studio.outputs[0]); + expect(restoredOutput).toMatchObject({ + id: output.id, + taskId: output.taskId, + clientRunId: output.clientRunId, + runInputHash: output.runInputHash, + nodeId: 'preview', + fieldKey: 'preview', + displayType, + value, + favorite: true, + }); + }); +} From 2146f45666a3e407f816c020eb603f55063486a5 Mon Sep 17 00:00:00 2001 From: Sourav Das Date: Fri, 9 Oct 2026 20:06:27 +0530 Subject: [PATCH 026/440] Preserve original Gallery evidence and separate browser CI Require original recipe authority, consumed settings, canonical graph, task receipts, pinned inputs and exact source/runtime/model/ordered-output identities before repairing retained proof. Keep immutable originals and rollback on paired write failure; reject changed recipes or substituted media instead of relabelling historical runs. Call Transformers standard in profile descriptions, link the reviewed setup branch, and give the complete browser suite a separate job with its own native backend setup and production build. Pair both CI jobs to backend 1634d936e0d2314553ab5c231e35e85be89ef252 and request failure/cancellation evidence. Validation: clean npm ci; complete npm run check; 88 Gallery runner tests; 3 shared-control and 255 mocked Studio browser tests passed without skips or failures. Existing real Gallery acceptance still has 66 errors; no production evidence was rewritten. --- .github/workflows/ci.yml | 58 ++++- CONTRIBUTING.md | 21 +- docs/template-gallery-assets.md | 19 ++ docs/windows-support.md | 2 +- scripts/template-gallery-repair-contract.mjs | 193 +++++++++++++++ scripts/template-gallery-repair-evidence.mjs | 71 ++++-- scripts/template-gallery-runner.test.mjs | 248 +++++++++++++++++++ src/studio/modelProfiles.ts | 14 +- 8 files changed, 586 insertions(+), 40 deletions(-) create mode 100644 scripts/template-gallery-repair-contract.mjs diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 251453e8..325ce3f0 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -33,7 +33,7 @@ jobs: with: repository: sdevil7th/MoDiff # Paired stable runtime, workflow bindings and registered Block contracts. - ref: 3b7cab86f5ddb17baf7a34d5b98ff40efb2736f1 + ref: 1634d936e0d2314553ab5c231e35e85be89ef252 path: MoDiff persist-credentials: false - name: Verify the pinned backend supports native setup @@ -64,9 +64,63 @@ jobs: .venv/bin/python scripts/smoke_base_runtime.py - run: npx playwright install --with-deps chromium - run: npm run check + + browser: + name: Client browser quality + runs-on: ubuntu-latest + timeout-minutes: 60 + defaults: + run: + working-directory: MoDiff-client + env: + CI: true + MODIFF_PYTHON: ${{ github.workspace }}/MoDiff/.venv/bin/python + MODIFF_BACKEND_PYTHON: ${{ github.workspace }}/MoDiff/.venv/bin/python + PYTHONDONTWRITEBYTECODE: '1' + steps: + - uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4 + with: + path: MoDiff-client + - name: Check out the matching backend contract + uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4 + with: + repository: sdevil7th/MoDiff + # Match the immutable backend revision in the Client quality job. + ref: 1634d936e0d2314553ab5c231e35e85be89ef252 + path: MoDiff + persist-credentials: false + - name: Verify the pinned backend supports native setup + working-directory: MoDiff + run: | + if [ ! -f uv.lock ]; then + echo "::error::The pinned backend predates native uv setup. Commit the paired backend changes, then update both workflow backend refs as documented in CONTRIBUTING.md." + exit 1 + fi + - uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4 + with: + node-version-file: MoDiff-client/.nvmrc + cache: npm + cache-dependency-path: MoDiff-client/package-lock.json + - run: npm ci + - uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5 + with: + python-version: '3.12' + - uses: astral-sh/setup-uv@d0cc045d04ccac9d8b7881df0226f9e82c39688e # v6 + - name: Install the native CPU backend and test dependencies + working-directory: MoDiff + run: | + uv sync --extra cpu --locked + uv pip install --python .venv/bin/python -r requirements/test.txt + uv pip check --python .venv/bin/python + .venv/bin/python -m modiff.preflight --json --fail-on-error + .venv/bin/python scripts/smoke_base_runtime.py + - run: npx playwright install --with-deps chromium + # The mocked suite includes production-bundle fixtures. Build this job's + # own source instead of depending on the quality job's filesystem. + - run: npm run build - run: npm run check:ui - name: Upload failed browser evidence - if: failure() + if: failure() || cancelled() uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4 with: name: playwright-failure-${{ github.run_id }} diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index c7ad4116..543df186 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -64,7 +64,7 @@ For NVIDIA, use `--extra cuda` in each command; for Intel, use `--extra xpu`. On Apple Silicon, omit the extra. Keep the same extra on sync and run. Use a separate checkout to try another accelerator; native sync reconciles `.venv`. AMD vendor-wheel environments use the backend's specialist -[accelerator setup](https://github.com/sdevil7th/MoDiff/blob/develop/docs/accelerator-installation.md). +[accelerator setup](https://github.com/sdevil7th/MoDiff/blob/fix-ui-ux-issues/docs/accelerator-installation.md). In the client terminal, run: @@ -77,7 +77,7 @@ Open the URL printed by Vite and leave the backend running. Transformers and PEFT are installed during backend setup; normal image and LoRA workflows need no separate package activation. These commands work on Linux and Windows PowerShell. The backend's -[developer guide](https://github.com/sdevil7th/MoDiff/blob/develop/docs/developer-setup.md) +[developer guide](https://github.com/sdevil7th/MoDiff/blob/fix-ui-ux-issues/docs/developer-setup.md) and the [Windows guide](docs/windows-support.md#developer-setup-with-uv-and-npm) cover explicit `uv pip` setup, upgrades, repair, and platform details. @@ -315,17 +315,20 @@ The request/proxy regression tests also launch Chromium. On a fresh Linux host, install its system dependencies with `npx playwright install-deps chromium` using an account with administrator access before running the gate. -The Linux CI quality job checks out this client and an immutable, compatible -`sdevil7th/MoDiff` backend revision as sibling directories. It installs the -backend with `uv sync --extra cpu --locked`, installs test dependencies, and -runs preflight and the tiny native image/LoRA smoke before the same client gate. +The Linux CI quality and browser jobs check out this client and an immutable, +compatible `sdevil7th/MoDiff` backend revision as sibling directories. Both install +the backend with `uv sync --extra cpu --locked`, install test dependencies, and +run preflight and the tiny native image/LoRA smoke. The quality job runs the +client gate; the browser job builds the production client and runs the complete +browser gate within its own job budget. This setup does not download model weights or qualify accelerator execution; platform smoke jobs remain client-only. For a coordinated change, commit and review the backend first, then replace the -backend `ref` in `.github/workflows/ci.yml` with that actual compatible 40-character -commit SHA and run the paired gates. Keep the ref immutable. The selected backend -must contain its reviewed native setup contract and `uv.lock`; the workflow +backend `ref` in both jobs in `.github/workflows/ci.yml` with that actual compatible +40-character commit SHA and run the paired gates. Keep both refs immutable and +equal. The selected backend must contain its reviewed native setup contract and +`uv.lock`; the workflow checks these before setup. Do not substitute a mutable branch or an invented future SHA for the paired commit. diff --git a/docs/template-gallery-assets.md b/docs/template-gallery-assets.md index 198ee34e..6ee7eaf1 100644 --- a/docs/template-gallery-assets.md +++ b/docs/template-gallery-assets.md @@ -22,6 +22,25 @@ uploaded and verified. Do not replace it with a guessed namespace or a moving ## One-time public Dataset setup +Before publishing or refreshing examples, preserve each run's original consumed +recipe, graph, task receipts, model/input identities and source/runtime provenance. +Historical examples keep their original recipe authority when templates change. +Updating a template hash alone does not establish equivalent execution. + +The maintainer-only `gallery:repair-evidence` command repairs one retained example +from its original evidence. It requires the original per-run provenance and +matching creator settings, admission locks, consumed form, canonical graph, +completed task/node receipts and pinned inputs. Indexed reference roles preserve +input order. It refuses missing authority or changed recipes before modifying +sidecars, preserves source/runtime/model identities, capture time and the original +ordered output byte identities, and retains content-addressed before-copies with +rollback if paired writes fail. Persistent storage failure or process termination +can require recovery from those originals; this is not a crash-atomic transaction. Its media +discovery excludes sidecars and preserves output collection order. Use it on +private retained evidence; public asset updates still follow the publication +procedure below. Missing current execution or quality proof requires recovery +and review of matching receipts or a genuinely accepted new run. + Choose a user or organization namespace where you have write permission. The recommended repository name is `/modiff-template-gallery`. The repository must remain public for unauthenticated open-source use. diff --git a/docs/windows-support.md b/docs/windows-support.md index 31ae3551..07b3f2e4 100644 --- a/docs/windows-support.md +++ b/docs/windows-support.md @@ -68,7 +68,7 @@ and PEFT are installed with the backend, with no separate activation for normal image and LoRA workflows. Setup downloads packages, not inference weights. `uv sync` reconciles the selected environment; use another checkout to test a different accelerator. The backend's -[developer setup guide](https://github.com/sdevil7th/MoDiff/blob/develop/docs/developer-setup.md) +[developer setup guide](https://github.com/sdevil7th/MoDiff/blob/fix-ui-ux-issues/docs/developer-setup.md) also documents explicit `uv pip` commands, repair, and uv upgrades. Windows uses PyTorch's default allocator. MoDiff does not set diff --git a/scripts/template-gallery-repair-contract.mjs b/scripts/template-gallery-repair-contract.mjs new file mode 100644 index 00000000..e0d03593 --- /dev/null +++ b/scripts/template-gallery-repair-contract.mjs @@ -0,0 +1,193 @@ +import { readdirSync } from 'node:fs'; +import { extname } from 'node:path'; +import { canonicalGraphIdentity, stableStringify } from './live-proof-provenance.mjs'; + +const MEDIA_EXTENSIONS = new Set([ + '.png', + '.webp', + '.jpg', + '.jpeg', + '.wav', + '.flac', + '.mp3', + '.m4a', + '.ogg', + '.mp4', + '.webm', + '.mov', + '.mkv', +]); + +export function retainedGalleryMediaFiles(mediaDir, base) { + return readdirSync(mediaDir, { withFileTypes: true }) + .filter( + (entry) => + entry.isFile() && + entry.name.startsWith(`${base}.`) && + !entry.name.includes('.before.') && + !entry.name.includes('.recomposed.') && + !entry.name.includes('.before-repair-') && + MEDIA_EXTENSIONS.has(extname(entry.name).toLowerCase()), + ) + .map((entry) => entry.name) + .sort((left, right) => { + const itemIndex = (name) => { + const match = name.match(/\.item(\d+)\./); + return match ? Number(match[1]) : 1; + }; + return itemIndex(left) - itemIndex(right) || left.localeCompare(right); + }); +} + +const MEDIA_FIELDS = new Map([ + ['sourceVideo', 'source_video'], + ['maskVideo', 'mask_video'], + ['controlVideo', 'control_video'], + ['sourceAudio', 'source_audio'], + ['referenceAudio', 'reference_audio'], +]); + +function record(value) { + return value && typeof value === 'object' && !Array.isArray(value) ? value : null; +} + +function inputIdentities(items = []) { + // The capture contract names references reference_image_1, _2, etc. Their + // indexed role preserves order even though provenance sorts records by role. + return items + .map(({ role, contentHash, sha256, byteSize }) => ({ role, contentHash: contentHash ?? sha256, byteSize })) + .sort((left, right) => stableStringify(left).localeCompare(stableStringify(right))); +} + +export function assertRetainedExecutionIdentity(original, repaired) { + for (const field of [ + 'taskId', + 'capturedAt', + 'backendSourceFingerprint', + 'backendContractFingerprint', + 'runtimeFingerprint', + 'graphHash', + 'modelRevision', + 'modelCommit', + 'inputArtifactsHash', + ]) { + if (!original?.[field] || original[field] !== repaired?.[field]) { + throw new Error(`Retained proof repair would change original execution identity ${field}.`); + } + } + if ( + !original?.runtime?.backendSource || + stableStringify(original.runtime.backendSource) !== stableStringify(repaired?.runtime?.backendSource) + ) { + throw new Error('Retained proof repair would replace the original backend source inventory.'); + } + if (!original?.model || stableStringify(original.model) !== stableStringify(repaired?.model)) { + throw new Error('Retained proof repair would change the original model artifact identity.'); + } + if ( + !Array.isArray(original?.models?.items) || + stableStringify(original.models.items) !== stableStringify(repaired?.models?.items) + ) { + throw new Error('Retained proof repair would replace the original complete model set.'); + } + const items = original?.output?.items; + if ( + !Array.isArray(items) || + items.length === 0 || + original.output.count !== items.length || + !original.output.collectionHash || + items.some( + (item, index) => item?.index !== index || !item?.mediaType || !item?.encodedSha256 || !item?.decodedSha256, + ) + ) { + throw new Error('Retained proof repair requires the original ordered output identities.'); + } + if (stableStringify(original.output) !== stableStringify(repaired?.output)) { + throw new Error('Retained proof repair would change the original ordered output identities.'); + } +} + +// Repair may recover metadata from the original execution. It cannot confer the +// current template's authority on a historical graph or changed creator recipe. +export function retainedTemplateBinding({ runtime, template, original, output, run, events, inputArtifacts }) { + const blockers = []; + const retained = record(original?.template); + const currentSettings = runtime.lockedSettingsForTemplate(template); + const retainedSettings = record(retained?.lockedSettings); + const form = record(output?.formSnapshot); + if (!retainedSettings) blockers.push('original template locked settings are missing'); + if (!form) blockers.push('the original executed form snapshot is missing'); + if (retained?.id !== template.id || output?.templateId !== template.id) { + blockers.push('original template identity does not match the selected template'); + } + if (!run?.taskId || original?.taskId !== run.taskId || output?.taskId !== run.taskId) { + blockers.push('original provenance and output do not identify the retained task'); + } + if (!Number.isFinite(Date.parse(original?.capturedAt))) blockers.push('original capture timestamp is missing'); + + for (const [field, expected] of Object.entries(currentSettings)) { + if (!retainedSettings || !Object.hasOwn(retainedSettings, field)) { + blockers.push(`original template setting ${field} is missing`); + } else if (stableStringify(retainedSettings[field]) !== stableStringify(expected)) { + blockers.push(`creator setting ${field} changed since the original run`); + } + const mediaRole = MEDIA_FIELDS.get(field); + const boundMedia = mediaRole && !expected && inputArtifacts?.some((item) => item.role === mediaRole); + if (!form || !Object.hasOwn(form, field)) { + blockers.push(`consumed form setting ${field} is missing`); + } else if (!boundMedia && stableStringify(form[field]) !== stableStringify(expected)) { + blockers.push(`consumed form setting ${field} differs from the creator recipe`); + } + } + if (stableStringify(retainedSettings) !== stableStringify(currentSettings)) { + blockers.push('the complete original locked settings differ from the current template'); + } + const revision = original?.models?.revisionLock ?? original?.modelRevision; + for (const [field, expected] of [ + ['promptSettingsHash', runtime.promptSettingsHash(template)], + ['catalogTemplateLockHash', runtime.templateLockHash(template)], + ['resolvedTemplateLockHash', runtime.templateLockHash(template, revision)], + ]) { + if (!retained?.[field] || retained[field] !== expected) { + blockers.push(`original ${field} differs from the current template; retain it as historical evidence`); + } + } + + const graph = canonicalGraphIdentity(output?.apiGraphSnapshot); + if ( + graph.canonicalGraph.nodes.length === 0 || + original?.graph?.hash !== graph.hash || + original?.graphHash !== graph.hash || + stableStringify(original?.graph?.canonicalGraph) !== stableStringify(graph.canonicalGraph) + ) { + blockers.push('the retained executed graph does not match the original provenance graph'); + } + for (const type of ['graph_completed', 'task_completed']) { + if (!events?.some((event) => event?.type === type && event?.task_id === run?.taskId)) { + blockers.push(`the original ${type} receipt is missing for the retained task`); + } + } + for (const nodeId of new Set(output?.apiGraphSnapshot?.paths?.flat() ?? [])) { + if ( + !events?.some( + (event) => + event?.type === 'executed' && + event?.task_id === run?.taskId && + event?.node === nodeId && + !['failed', 'cancelled', 'running'].includes(event?.status), + ) + ) { + blockers.push(`original execution receipt is missing for graph node ${nodeId}`); + } + } + if ( + !Array.isArray(original?.inputs?.items) || + stableStringify(inputIdentities(original.inputs.items)) !== stableStringify(inputIdentities(inputArtifacts)) + ) { + blockers.push('retained input media does not match the original pinned input identities'); + } + if (blockers.length > 0) { + throw new Error(`Retained proof repair cannot bind the current recipe: ${blockers.join('; ')}.`); + } + return { ...retained, capturedAt: original.capturedAt }; +} diff --git a/scripts/template-gallery-repair-evidence.mjs b/scripts/template-gallery-repair-evidence.mjs index 98686431..d7f6fa04 100644 --- a/scripts/template-gallery-repair-evidence.mjs +++ b/scripts/template-gallery-repair-evidence.mjs @@ -15,6 +15,11 @@ import { resolvedModelReposFromOutput, selectInstalledModelIdentity, } from './live-proof-provenance.mjs'; +import { + assertRetainedExecutionIdentity, + retainedGalleryMediaFiles, + retainedTemplateBinding, +} from './template-gallery-repair-contract.mjs'; const ROOT = process.cwd(); @@ -63,6 +68,13 @@ async function main() { ); } } + const provenancePath = join(evidenceDir, `${base}.provenance.json`); + if (!existsSync(provenancePath)) { + throw new Error( + 'Retained proof repair requires original run provenance; current template hashes cannot replace missing original template authority.', + ); + } + const originalProvenance = JSON.parse(readFileSync(provenancePath, 'utf8')); const outputEvidence = JSON.parse(readFileSync(outputPath, 'utf8')); const eventEvidence = JSON.parse(readFileSync(eventsPath, 'utf8')); const nodesPayload = JSON.parse(readFileSync(nodesPath, 'utf8')); @@ -71,21 +83,7 @@ async function main() { const backendSourceAfter = JSON.parse(readFileSync(backendSourceAfterPath, 'utf8')); const backendSource = backendSourceBefore?.identity; const { output, run, terminalTask } = outputEvidence; - const retainedMedia = readdirSync(mediaDir) - .filter( - (name) => - name.startsWith(`${base}.`) && - !name.includes('.before.') && - !name.includes('.recomposed.') && - !name.endsWith('.json'), - ) - .sort((left, right) => { - const itemIndex = (name) => { - const match = name.match(/\.item(\d+)\./); - return match ? Number(match[1]) : 1; - }; - return itemIndex(left) - itemIndex(right) || left.localeCompare(right); - }); + const retainedMedia = retainedGalleryMediaFiles(mediaDir, base); if (retainedMedia.length === 0) throw new Error(`Retained media for ${base} is missing.`); const runtime = await loadTemplateRuntime(ROOT); @@ -101,6 +99,19 @@ async function main() { return identity; }); const modelSet = modelSetIdentity(identities); + const inputArtifacts = inputArtifactsForOverrides(output.formSnapshot); + const originalBinding = retainedTemplateBinding({ + runtime, + template, + original: originalProvenance, + output, + run, + events, + inputArtifacts, + }); + if (modelSet.revisionLock !== originalProvenance.modelRevision) { + throw new Error('Retained model evidence does not match the original model revision lock.'); + } const mediaPaths = retainedMedia.map((mediaFile) => join(mediaDir, mediaFile)); const analyses = await Promise.all( mediaPaths.map(async (mediaPath, index) => { @@ -148,18 +159,17 @@ async function main() { outputCount: analyses.length, analyses, }; - const catalogLock = runtime.templateLockHash(template); const provenance = createRunProvenance({ templateId, - lockedSettings: runtime.lockedSettingsForTemplate(template), - promptSettingsHash: runtime.promptSettingsHash(template), - catalogTemplateLockHash: catalogLock, - resolvedTemplateLockHash: runtime.templateLockHash(template, modelSet.revisionLock), + lockedSettings: originalBinding.lockedSettings, + promptSettingsHash: originalBinding.promptSettingsHash, + catalogTemplateLockHash: originalBinding.catalogTemplateLockHash, + resolvedTemplateLockHash: originalBinding.resolvedTemplateLockHash, apiGraph: output.apiGraphSnapshot, nodesPayload, modelIdentity: identities[0], modelIdentities: identities, - inputArtifacts: inputArtifactsForOverrides(output.formSnapshot), + inputArtifacts, runtimeFingerprint: selectedRuntimeFingerprint, deterministicMode: deterministicEvent?.deterministicMode ?? output.apiGraphSnapshot?.deterministicMode, backendSource: sourceEvidence.identity, @@ -168,12 +178,27 @@ async function main() { executionReceipt: executionReceiptForProvenance(completionEvent, terminalTask), taskId: run.taskId, expectedOutput: template.example?.expectedOutput, + capturedAt: originalBinding.capturedAt, }); if (provenance.blockers.length) throw new Error(`Retained provenance is incomplete: ${provenance.blockers.join(' ')}`); + assertRetainedExecutionIdentity(originalProvenance, provenance); - writeFileSync(eventsPath, `${JSON.stringify({ taskId: run.taskId, executionReceipts, events }, null, 2)}\n`); - writeFileSync(join(evidenceDir, `${base}.provenance.json`), `${JSON.stringify(provenance, null, 2)}\n`); + for (const sidecar of [eventsPath, provenancePath]) { + const before = readFileSync(sidecar); + const digest = createHash('sha256').update(before).digest('hex'); + const backup = `${sidecar}.before-repair-${digest}`; + if (!existsSync(backup)) writeFileSync(backup, before, { flag: 'wx' }); + if (!readFileSync(backup).equals(before)) throw new Error('An immutable repair backup has different bytes.'); + } + const originalSidecars = [eventsPath, provenancePath].map((path) => ({ path, bytes: readFileSync(path) })); + try { + writeFileSync(eventsPath, `${JSON.stringify({ taskId: run.taskId, executionReceipts, events }, null, 2)}\n`); + writeFileSync(provenancePath, `${JSON.stringify(provenance, null, 2)}\n`); + } catch (error) { + for (const sidecar of originalSidecars) writeFileSync(sidecar.path, sidecar.bytes); + throw error; + } console.log( JSON.stringify( { diff --git a/scripts/template-gallery-runner.test.mjs b/scripts/template-gallery-runner.test.mjs index 31fd9ccb..ac35fbaa 100644 --- a/scripts/template-gallery-runner.test.mjs +++ b/scripts/template-gallery-runner.test.mjs @@ -50,12 +50,225 @@ import { parseCampaignArgs, qualityBlockedWorkflowsFromResearch, } from './review-generation-campaign.mjs'; +import { + assertRetainedExecutionIdentity, + retainedGalleryMediaFiles, + retainedTemplateBinding, +} from './template-gallery-repair-contract.mjs'; +import { canonicalGraphIdentity, stableStringify } from './live-proof-provenance.mjs'; const ROOT = resolve(dirname(fileURLToPath(import.meta.url)), '..'); const portablePath = (value) => value.split(sep).join('/'); // Unit tests check fixture selection without requiring local review media. const availableFixtureOverrides = (workflowId, media) => fixtureOverrides(workflowId, media, () => true); +function retainedRepairFixture() { + const settings = { mode: 'text_to_image', modelType: 'ExamplePipeline', prompt: 'original brief', seed: 73 }; + const template = { id: 'original_template' }; + const revision = 'original-model-revision'; + const runtime = { + lockedSettingsForTemplate: () => ({ ...settings }), + promptSettingsHash: () => `prompt:${stableStringify(settings)}`, + templateLockHash: (_template, modelRevision = 'catalog') => + `template:${modelRevision}:${stableStringify(settings)}`, + }; + const apiGraphSnapshot = { + nodes: { denoise: { module: 'modules.Diffusers', action: 'Denoise', params: { seed: { value: 73 } } } }, + paths: [['denoise']], + }; + const graph = canonicalGraphIdentity(apiGraphSnapshot); + const original = { + taskId: 'original-task', + capturedAt: '2026-10-06T12:00:00.000Z', + template: { + id: template.id, + lockedSettings: { ...settings }, + promptSettingsHash: runtime.promptSettingsHash(template), + catalogTemplateLockHash: runtime.templateLockHash(template), + resolvedTemplateLockHash: runtime.templateLockHash(template, revision), + }, + models: { revisionLock: revision }, + graphHash: graph.hash, + graph, + inputs: { items: [] }, + }; + const output = { taskId: original.taskId, templateId: template.id, formSnapshot: { ...settings }, apiGraphSnapshot }; + const events = [ + { type: 'executed', task_id: original.taskId, node: 'denoise', status: 'succeeded', hasChanged: true }, + { type: 'graph_completed', task_id: original.taskId }, + { type: 'task_completed', task_id: original.taskId }, + ]; + return { + runtime, + template, + original, + output, + run: { taskId: original.taskId }, + events, + inputArtifacts: [], + settings, + }; +} + +test('retained proof repair preserves original template and capture identities after exact recipe corroboration', () => { + const fixture = retainedRepairFixture(); + assert.deepEqual(retainedTemplateBinding(fixture), { + ...fixture.original.template, + capturedAt: fixture.original.capturedAt, + }); +}); + +test('retained proof repair rejects changed creator defaults before relabelling a historical graph', () => { + const fixture = retainedRepairFixture(); + fixture.settings.prompt = 'a different creative brief'; + assert.throws(() => retainedTemplateBinding(fixture), /creator setting prompt changed/); +}); + +test('equal retained settings cannot establish parity for a changed workflow admission', () => { + const fixture = retainedRepairFixture(); + fixture.original.template.catalogTemplateLockHash = 'legacy-template-admission'; + assert.throws(() => retainedTemplateBinding(fixture), /catalogTemplateLockHash differs/); +}); + +test('retained hashes alone cannot hide different submitted graph contents or consumed values', () => { + const graphFixture = retainedRepairFixture(); + graphFixture.output.apiGraphSnapshot.nodes.denoise.params.seed.value = 999; + assert.throws(() => retainedTemplateBinding(graphFixture), /executed graph does not match/); + const formFixture = retainedRepairFixture(); + formFixture.output.formSnapshot.seed = 999; + assert.throws(() => retainedTemplateBinding(formFixture), /consumed form setting seed differs/); +}); + +test('retained proof repair rejects mismatched tasks and missing executed-node receipts', () => { + const taskFixture = retainedRepairFixture(); + taskFixture.run.taskId = 'another-task'; + assert.throws(() => retainedTemplateBinding(taskFixture), /do not identify the retained task/); + const eventFixture = retainedRepairFixture(); + eventFixture.events = eventFixture.events.filter((event) => event.type !== 'executed'); + assert.throws(() => retainedTemplateBinding(eventFixture), /execution receipt is missing for graph node/); +}); + +test('retained proof repair correlates original pinned media, allowing only proven source bindings', () => { + const fixture = retainedRepairFixture(); + fixture.settings.sourceVideo = ''; + fixture.original.template = { + ...fixture.original.template, + lockedSettings: { ...fixture.settings }, + promptSettingsHash: fixture.runtime.promptSettingsHash(fixture.template), + catalogTemplateLockHash: fixture.runtime.templateLockHash(fixture.template), + resolvedTemplateLockHash: fixture.runtime.templateLockHash(fixture.template, fixture.original.models.revisionLock), + }; + fixture.output.formSnapshot.sourceVideo = 'retained-video'; + fixture.inputArtifacts = [ + { role: 'source_video', path: 'retained-video', contentHash: 'sha256:original', byteSize: 5 }, + ]; + fixture.original.inputs.items = [{ ...fixture.inputArtifacts[0] }]; + assert.equal(retainedTemplateBinding(fixture).capturedAt, fixture.original.capturedAt); + fixture.inputArtifacts[0].contentHash = 'sha256:replacement'; + assert.throws(() => retainedTemplateBinding(fixture), /input media does not match/); +}); + +test('retained proof repair requires the original authority instead of recovering it from current hashes', () => { + const fixture = retainedRepairFixture(); + fixture.original = null; + assert.throws(() => retainedTemplateBinding(fixture), /original template locked settings are missing/); +}); + +test('repeat retained-media discovery excludes repair backups, sidecars and directories and preserves item order', () => { + const mediaDir = mkdtempSync(resolve(tmpdir(), 'modiff-repair-media-discovery-')); + const base = 'high_quality.run1'; + try { + const images = [`${base}.item10.png`, `${base}.item2.png`, `${base}.item1.webp`]; + for (const name of images) writeFileSync(resolve(mediaDir, name), 'retained-media'); + const expected = [`${base}.item1.webp`, `${base}.item2.png`, `${base}.item10.png`]; + assert.deepEqual(retainedGalleryMediaFiles(mediaDir, base), expected); + const evidenceDir = resolve(mediaDir, 'evidence'); + mkdirSync(evidenceDir); + mkdirSync(resolve(mediaDir, `${base}.directory.png`)); + for (const directory of [mediaDir, evidenceDir]) { + for (const name of [ + `${base}.provenance.json`, + `${base}.websocket-events.json.before-repair-original`, + `${base}.before-repair-original.png`, + `${base}.before.png`, + `${base}.recomposed.png`, + `${base}.debug.log`, + ]) + writeFileSync(resolve(directory, name), 'metadata'); + } + assert.deepEqual(retainedGalleryMediaFiles(mediaDir, base), expected); + assert.deepEqual(retainedGalleryMediaFiles(mediaDir, base), expected); + } finally { + rmSync(mediaDir, { recursive: true, force: true }); + } +}); + +test('retained proof repair preserves reference order through indexed input roles', () => { + const fixture = retainedRepairFixture(); + fixture.inputArtifacts = [ + { role: 'reference_image_1', contentHash: 'sha256:first', byteSize: 5 }, + { role: 'reference_image_2', contentHash: 'sha256:second', byteSize: 6 }, + ]; + fixture.original.inputs.items = structuredClone(fixture.inputArtifacts); + assert.equal(retainedTemplateBinding(fixture).id, fixture.template.id); + fixture.inputArtifacts = [ + { ...fixture.inputArtifacts[1], role: 'reference_image_1' }, + { ...fixture.inputArtifacts[0], role: 'reference_image_2' }, + ]; + assert.throws(() => retainedTemplateBinding(fixture), /input media does not match/); +}); + +test('retained proof repair forbids runtime or source substitution while permitting metadata reconstruction', () => { + const original = { + taskId: 'original-task', + capturedAt: '2026-10-06T12:00:00.000Z', + backendSourceFingerprint: 'original-source', + backendContractFingerprint: 'original-contract', + runtimeFingerprint: 'original-runtime', + graphHash: 'original-graph', + modelRevision: 'original-model', + modelCommit: 'original-commit', + inputArtifactsHash: 'original-inputs', + runtime: { backendSource: { fingerprint: 'original-source', gitCommit: 'original-commit', files: ['original'] } }, + model: { repoId: 'original-model', fingerprint: 'original-artifacts' }, + models: { items: [{ repoId: 'original-model', fingerprint: 'original-artifacts' }] }, + output: { + count: 2, + collectionHash: 'original-output-collection', + backendCollectionHash: 'original-backend-collection', + items: [ + { index: 0, mediaType: 'image', encodedSha256: 'first-bytes', decodedSha256: 'first-pixels' }, + { index: 1, mediaType: 'image', encodedSha256: 'second-bytes', decodedSha256: 'second-pixels' }, + ], + }, + }; + assert.doesNotThrow(() => assertRetainedExecutionIdentity(original, structuredClone(original))); + assert.throws( + () => assertRetainedExecutionIdentity(original, { ...original, runtimeFingerprint: 'current-runtime' }), + /execution identity runtimeFingerprint/, + ); + const replacement = structuredClone(original); + replacement.runtime.backendSource.files = ['replacement']; + assert.throws(() => assertRetainedExecutionIdentity(original, replacement), /original backend source inventory/); + const wrongWeights = structuredClone(original); + wrongWeights.model.fingerprint = 'different-artifacts'; + assert.throws(() => assertRetainedExecutionIdentity(original, wrongWeights), /original model artifact identity/); + const differentImage = structuredClone(original); + differentImage.output.items[0].encodedSha256 = 'unrelated-image-bytes'; + differentImage.output.items[0].decodedSha256 = 'unrelated-image-pixels'; + assert.throws(() => assertRetainedExecutionIdentity(original, differentImage), /original ordered output identities/); + const reversedOutput = structuredClone(original); + reversedOutput.output.items.reverse(); + reversedOutput.output.items = reversedOutput.output.items.map((item, index) => ({ ...item, index })); + assert.throws(() => assertRetainedExecutionIdentity(original, reversedOutput), /original ordered output identities/); + const missingOriginalBytes = structuredClone(original); + delete missingOriginalBytes.output.items[0].encodedSha256; + assert.throws( + () => assertRetainedExecutionIdentity(missingOriginalBytes, structuredClone(missingOriginalBytes)), + /requires the original ordered output identities/, + ); +}); + test('gallery capture and resume paths have no unresolved variables', () => { const messages = new Linter().verify(readFileSync(resolve(ROOT, 'scripts/template-gallery-runner.mjs'), 'utf8'), { languageOptions: { ecmaVersion: 'latest', sourceType: 'module', globals: { ...globals.node, ...globals.browser } }, @@ -605,6 +818,41 @@ test('offline evidence repair refuses to substitute current state for a missing } }); +test('offline evidence repair leaves every sidecar untouched when original template authority is missing', () => { + const artifactDir = mkdtempSync(resolve(tmpdir(), 'modiff-retained-template-proof-')); + try { + const mediaDir = resolve(artifactDir, 'media'); + const evidenceDir = resolve(mediaDir, 'evidence'); + mkdirSync(evidenceDir, { recursive: true }); + const evidencePaths = ['backend-source-before.json'].map((name) => resolve(artifactDir, name)); + for (const suffix of ['output', 'websocket-events', 'nodes', 'model-fingerprint', 'backend-source-after']) { + evidencePaths.push(resolve(evidenceDir, `high_quality.run1.${suffix}.json`)); + } + for (const path of evidencePaths) writeFileSync(path, '{}\n'); + const before = evidencePaths.map((path) => readFileSync(path)); + const repaired = spawnSync( + process.execPath, + [ + resolve(ROOT, 'scripts/template-gallery-repair-evidence.mjs'), + '--media-dir', + mediaDir, + '--template', + 'high_quality', + ], + { cwd: ROOT, encoding: 'utf8' }, + ); + assert.notEqual(repaired.status, 0); + assert.match(repaired.stderr, /requires original run provenance/); + assert.deepEqual( + evidencePaths.map((path) => readFileSync(path)), + before, + ); + assert.equal(existsSync(resolve(evidenceDir, 'high_quality.run1.provenance.json')), false); + } finally { + rmSync(artifactDir, { recursive: true, force: true }); + } +}); + test('gallery output waits can distinguish backend progress from an unchanged receipt', () => { const loading = { status: 'running', diff --git a/src/studio/modelProfiles.ts b/src/studio/modelProfiles.ts index ca4a17e0..e0d9c4ba 100644 --- a/src/studio/modelProfiles.ts +++ b/src/studio/modelProfiles.ts @@ -4334,7 +4334,8 @@ export const STUDIO_AUTO_MODEL_REQUIREMENTS = { modelType: 'HuggingFaceTextGenerationModel', supportedModes: TRANSFORMERS_TEXT_STUDIO_MODES, autoStatus: 'manual_only', - minimum: 'CPU or accelerator execution with the pinned safetensors snapshot and optional Transformers runtime.', + minimum: + 'CPU or accelerator execution with the pinned safetensors snapshot and standard Transformers installation.', recommended: 'Use the reviewed SmolLM2 135M Instruct float32 profile with bounded token controls.', qualityDefaults: 'Deterministic generation, at most 256 new tokens.', artifacts: [SMOLLM2_135M_INSTRUCT_REPO], @@ -4345,7 +4346,8 @@ export const STUDIO_AUTO_MODEL_REQUIREMENTS = { modelType: 'HuggingFaceImageTextToTextModel', supportedModes: TRANSFORMERS_IMAGE_TEXT_STUDIO_MODES, autoStatus: 'manual_only', - minimum: 'CPU or accelerator execution with the pinned safetensors snapshot and optional Transformers runtime.', + minimum: + 'CPU or accelerator execution with the pinned safetensors snapshot and standard Transformers installation.', recommended: 'Use the reviewed SmolVLM 256M Instruct float32 profile with one bounded local image.', qualityDefaults: 'One image, deterministic generation, at most 256 new tokens.', artifacts: [SMOLVLM_256M_INSTRUCT_REPO], @@ -4356,7 +4358,7 @@ export const STUDIO_AUTO_MODEL_REQUIREMENTS = { modelType: 'HuggingFaceAnyToAnyModel', supportedModes: TRANSFORMERS_ANY_TO_ANY_STUDIO_MODES, autoStatus: 'manual_only', - minimum: 'Expert-only execution with the pinned safetensors snapshot and optional Transformers runtime.', + minimum: 'Expert-only execution with the pinned safetensors snapshot and standard Transformers installation.', recommended: 'Use the reviewed Janus Pro 1B bfloat16 profile after acknowledging the pinned model terms.', qualityDefaults: 'Bounded text generation or native 384x384 image generation.', artifacts: [JANUS_PRO_1B_REPO], @@ -4367,7 +4369,8 @@ export const STUDIO_AUTO_MODEL_REQUIREMENTS = { modelType: 'HuggingFaceSpeechRecognitionModel', supportedModes: SPEECH_STUDIO_MODES, autoStatus: 'manual_only', - minimum: 'CPU or accelerator execution with the pinned safetensors snapshot and optional Transformers runtime.', + minimum: + 'CPU or accelerator execution with the pinned safetensors snapshot and standard Transformers installation.', recommended: 'Use the reviewed Whisper Tiny float32 profile and bounded local audio.', qualityDefaults: '30-second chunks, 5-second stride, segment timestamps.', artifacts: [WHISPER_TINY_REPO], @@ -4378,7 +4381,8 @@ export const STUDIO_AUTO_MODEL_REQUIREMENTS = { modelType: 'HuggingFaceCTCSpeechRecognitionModel', supportedModes: ['speech_to_text'], autoStatus: 'manual_only', - minimum: 'CPU or accelerator execution with the pinned safetensors snapshot and optional Transformers runtime.', + minimum: + 'CPU or accelerator execution with the pinned safetensors snapshot and standard Transformers installation.', recommended: 'Use the reviewed Wav2Vec2 Base 960h float32 CTC profile and bounded local audio.', qualityDefaults: '30-second chunks, 5-second stride, word timestamps.', artifacts: [WAV2VEC2_BASE_960H_REPO], From 2947f401b51942f4fe658775e1ded10666aed722 Mon Sep 17 00:00:00 2001 From: Sourav Das Date: Sat, 10 Oct 2026 01:46:18 +0530 Subject: [PATCH 027/440] Correct socket retirement, PNG packages and speech planning Close retired pending sockets after their handshake without changing replacement connection or genuine recovery behavior. Convert JPEG/WebP outputs through browser codecs before embedding PNG workflow metadata. Project declared speech controls and exact one-file media paths into Auto forms without rewriting authoritative instances. Add original-defect regressions and measured bundle allowances; pin the paired backend to 3a038c977aefcfff4bbe7d5425730ea62150faae. --- .github/workflows/ci.yml | 2 +- docs/modiff-client-architecture.md | 14 +++ package.json | 2 +- scripts/bundle-budget.mjs | 9 +- .../registered-block-v2-insertion.test.mjs | 49 ++++++++ scripts/websocket-connection.test.mjs | 55 +++++++++ scripts/workflow-png-package.test.mjs | 111 ++++++++++++++++++ src/stores/useWebsocketStore.ts | 23 +++- src/studio/blockRunFormV2.ts | 35 +++++- src/studio/workflowPackage.ts | 23 +++- 10 files changed, 309 insertions(+), 14 deletions(-) create mode 100644 scripts/workflow-png-package.test.mjs diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 4d0e547d..449c71b4 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -33,7 +33,7 @@ jobs: with: repository: sdevil7th/MoDiff # Paired AMD/Linux and preserved Windows runtime, workflow and Block contracts. - ref: 7544bc6299eecbb606d46815b7d7c7c960c93ac2 + ref: 3a038c977aefcfff4bbe7d5425730ea62150faae path: MoDiff persist-credentials: false - name: Verify the pinned backend supports native setup diff --git a/docs/modiff-client-architecture.md b/docs/modiff-client-architecture.md index ede898ea..7db593b8 100644 --- a/docs/modiff-client-architecture.md +++ b/docs/modiff-client-architecture.md @@ -978,6 +978,9 @@ its provisional attention values before enabling children. A CUDA device does not by itself authorize forced native flash attention. - `src/stores/useWebsocketStore.ts` owns connection/session identity, reconnect state, and loop timers. +- Retiring a pending socket detaches application callbacks immediately and closes + it after its handshake. Open sockets close immediately; retired sockets cannot + update a replacement connection or start recovery work. - `src/components/WebsocketProvider.tsx` connects the store to React lifecycle. - `src/stores/websocketMessageHandler.ts` validates/routes runtime messages. - `src/stores/useTaskStore.ts` owns the queue snapshot, current task, count, and progress presentation. @@ -1012,6 +1015,12 @@ an empty request or changing controls in the incoming custom workflow. ## Studio Domain +Registered Block planning projects declared speech controls, including audio, +language, timestamps, chunk length and stride, into the corresponding task +form fields. Single-file media controls project a native one-file upload list +to its exact path without changing the instance. Multiple or substituted files +remain subject to backend authority equality and filesystem validation. + The `src/studio` directory contains domain logic rather than one monolithic component: - `types.ts`: forms, modes, model profiles, graph bindings, tabs, outputs, templates, and run context @@ -1356,6 +1365,11 @@ their separate encoded-image input contract. Workflow packages are JSON. Image packages can also embed the `modiff.workflow` metadata key in PNG text chunks. Imported packages must be parsed/coerced at the boundary before they affect stores. +Gallery's PNG package export preserves existing PNG image bytes and converts +other decodable image formats, including JPEG and WebP, to PNG before embedding +workflow metadata. Conversion uses the browser image codec and rejects images +larger than 64 megapixels. Decode or encode failures remain visible export errors. + Expert's **Export → Service package** lazily loads `ServiceExportDialog`. It reuses TopBar's existing Block/Modular lowering, checks the captured workflow context, and asks the backend `/service_package` boundary for supported scalar inputs and diff --git a/package.json b/package.json index db00576e..fc2a4c5b 100644 --- a/package.json +++ b/package.json @@ -94,7 +94,7 @@ "test:driver-contract": "node --test scripts/hugging-face-runtime-contract.test.mjs", "test:graph-mutations": "node --test scripts/flow-graph-mutations.test.mjs scripts/graph-fixer.test.mjs scripts/block-seed-repair-v2.test.mjs scripts/block-derived-control-repair-v2.test.mjs", "test:graph-visuals": "node --test scripts/graph-visuals.test.mjs scripts/node-measurement-dispatch.test.mjs scripts/node-connection-search.test.mjs", - "test:media-viewer": "node --test scripts/media-viewer.test.mjs", + "test:media-viewer": "node --test scripts/media-viewer.test.mjs scripts/workflow-png-package.test.mjs", "test:requests": "node --test scripts/media-attachment.test.mjs scripts/node-presentation.test.mjs scripts/service-package.test.mjs scripts/node-store-requests.test.mjs scripts/operation-catalog.test.mjs scripts/operation-component-bundle-inputs.test.mjs scripts/operation-component-bundle.test.mjs scripts/operation-authoring.test.mjs scripts/operation-modification-matrix.test.mjs scripts/request-boundary.test.mjs scripts/server-actions.test.mjs scripts/shared-store-requests.test.mjs scripts/supervisor-startup.test.mjs scripts/studio-output-requests.test.mjs scripts/resolved-execution-inputs.test.mjs scripts/runtime-resources.test.mjs scripts/websocket-connection.test.mjs scripts/backend-proxy-lifecycle.test.mjs", "test:run-coordinator": "node --test scripts/run-coordinator.test.mjs scripts/compatibility-panel.test.mjs scripts/run-issue-store.test.mjs scripts/block-runtime-hints-v2.test.mjs", "test:run-activity": "node --test scripts/run-activity.test.mjs", diff --git a/scripts/bundle-budget.mjs b/scripts/bundle-budget.mjs index 4b8c4306..484af29e 100644 --- a/scripts/bundle-budget.mjs +++ b/scripts/bundle-budget.mjs @@ -50,7 +50,12 @@ const SOURCE_LICENSES = new URL('../public/THIRD_PARTY_LICENSES.txt', import.met // Two full-image recipe declarations and their reviewed terms add 1374 gzip // bytes to the same startup chunk (465247 measured). Authoring stays deferred. // Preserve both reviewed allowances: 464000 + 512 + 1536 = 466048 bytes. -const MAX_STARTUP_CHUNK_GZIP_BYTES = 450 * 1024 + 768 + 1280 + 256 + 576 + 320 + 512 + 1536; +// PNG encoding and pending-socket retirement add 255 startup gzip bytes over +// the 644101-byte paired baseline. Measured startup/chunk: 644356/466049. +// Allow 32 additional bytes here and below; deferred limits stay unchanged. +// Exact speech-control aliases and single-file media projection bring measured +// startup/chunk to 644443/466136 bytes. Bound this shared fix by 128 more bytes. +const MAX_STARTUP_CHUNK_GZIP_BYTES = 450 * 1024 + 768 + 1280 + 256 + 576 + 320 + 512 + 1536 + 32 + 128; // Shared icons initialize in graph-vendor, avoiding an entry/lazy-panel cycle // that captured undefined tab icons and crashed cold production startup. The // Earlier startup measured 589.1 KiB. Shared Block crossing, explicit movement, @@ -123,7 +128,7 @@ const MAX_STARTUP_CHUNK_GZIP_BYTES = 450 * 1024 + 768 + 1280 + 256 + 576 + 320 + // The same recipe metadata measures 643554 total startup bytes (+1378). // Allocate 1536 bytes for this feature, preserving the existing four assets. // Preserve both reviewed allowances: 642304 + 512 + 1536 = 644352 bytes. -const MAX_STARTUP_GZIP_BYTES = 624 * 1024 + 768 + 1280 + 384 + 576 + 320 + 512 + 1536; +const MAX_STARTUP_GZIP_BYTES = 624 * 1024 + 768 + 1280 + 384 + 576 + 320 + 512 + 1536 + 32 + 128; // Deferred surfaces are measured separately so code splitting cannot hide an // unbounded feature bundle. These ceilings leave room for the reviewed dialogs // and catalog tools while preventing either one oversized deferred chunk or diff --git a/scripts/registered-block-v2-insertion.test.mjs b/scripts/registered-block-v2-insertion.test.mjs index cdc31710..59d32d42 100644 --- a/scripts/registered-block-v2-insertion.test.mjs +++ b/scripts/registered-block-v2-insertion.test.mjs @@ -1305,6 +1305,55 @@ test('fresh CTC catalog insertion preserves its declared word timestamps instead assert.equal(blockRuntime.blockViewModelV2(root.data.blockInstanceV2).controlParams.timestamps.value, 'word'); }); +test('registered speech controls project exact uploaded media and transcription settings for Auto', async () => { + const fixture = JSON.parse(readFileSync(path.join(ROOT, 'tests/fixtures/ctc-catalog-insertion.v1.json'), 'utf8')); + libraryStore.useHuggingFaceNodeLibraryStore.setState({ + library: fixtureLibrary([fixture.catalogDefinition], []), + loaded: true, + error: null, + }); + globalThis.fetch = async () => Response.json({ error: false, schemaVersion: 1, entry: fixture.compiledEntry }); + const ambient = modelProfiles.getFormDefaultsForRegisteredRoute( + 'speech_to_text', + fixture.catalogDefinition.pipelineClass, + ); + const root = await insertion.createHuggingFaceClusterForGraph(fixture.catalogDefinition, { x: 80, y: 90 }, ambient); + const instance = blockSchema.normalizeBlockInstanceV2({ + ...root.data.blockInstanceV2, + values: { + ...root.data.blockInstanceV2.values, + audio: '@data/audio/authored-speech.wav', + timestamps: 'none', + chunk_length_seconds: '12', + stride_length_seconds: '2', + }, + }); + const projected = blockRunForm.registeredBlockRunFormV2(instance, 'auto'); + assert.ok(projected); + assert.equal(projected.form.sourceAudio, instance.values.audio); + assert.equal(projected.form.speechTimestamps, 'none'); + assert.equal(projected.form.speechChunkSeconds, 12); + assert.equal(projected.form.speechStrideSeconds, 2); + assert.deepEqual( + instance.values, + projected.instance.values, + 'Projection must not rewrite the authoritative instance', + ); + const defaults = blockRunForm.registeredBlockRunFormV2(root.data.blockInstanceV2, 'auto'); + assert.equal(defaults.form.speechTimestamps, 'word', 'Fresh declared timestamps must survive planning too'); + const uploaded = blockSchema.normalizeBlockInstanceV2({ + ...instance, + values: { ...instance.values, audio: [instance.values.audio] }, + }); + assert.equal(blockRunForm.registeredBlockRunFormV2(uploaded, 'auto').form.sourceAudio, instance.values.audio); + assert.deepEqual(uploaded.values.audio, [instance.values.audio]); + for (const field of ['sourceAudio', 'referenceAudio', 'sourceVideo', 'maskImage']) { + assert.equal(blockRunForm.projectBlockControlValueV2(['@data/input.bin'], '', field), '@data/input.bin'); + assert.equal(blockRunForm.projectBlockControlValueV2(['first', 'second'], '', field), ''); + } + assert.equal(blockRunForm.projectBlockControlValueV2(['float32'], '', 'dtype'), ''); +}); + test('a backend-defined route without a legacy Studio profile retains compiled creator defaults', async () => { const configured = fixture(); const witness = configureFixture(configured); diff --git a/scripts/websocket-connection.test.mjs b/scripts/websocket-connection.test.mjs index 0f2e1926..851a0a46 100644 --- a/scripts/websocket-connection.test.mjs +++ b/scripts/websocket-connection.test.mjs @@ -26,11 +26,13 @@ class FakeSocket { static CLOSING = 2; static CLOSED = 3; readyState = FakeSocket.CONNECTING; + closeCalls = 0; constructor(url) { this.url = url; sockets.push(this); } close() { + this.closeCalls += 1; this.readyState = FakeSocket.CLOSED; } fail() { @@ -144,6 +146,59 @@ function enterHealthRecovery() { return probes.at(-1); } +test('disconnect retires a pending handshake without closing it early or changing its replacement', () => { + store.getState().connect(); + const retired = sockets.at(-1); + store.getState().disconnect(); + assert.equal(retired.closeCalls, 0, 'Closing CONNECTING sockets creates a browser console warning'); + assert.equal(retired.onclose, null); + assert.equal(retired.onmessage, null); + assert.equal(store.getState().ws, null); + + store.getState().connect(); + const replacement = sockets.at(-1); + replacement.open(); + retired.open(); + assert.equal(retired.closeCalls, 1, 'The retired socket must close once its handshake completes'); + assert.equal(store.getState().ws, replacement); + assert.equal(store.getState().isConnected, true); + assert.equal(runtimeReads, 0); + assert.equal(timers.size, 0); +}); + +test('replacing a stale pending socket uses the same handshake retirement', () => { + store.getState().connect(); + const retired = sockets.at(-1); + store.setState({ isConnecting: false }); + store.getState().connect(); + const replacement = sockets.at(-1); + assert.equal(retired.closeCalls, 0); + retired.open(); + assert.equal(retired.closeCalls, 1); + assert.equal(store.getState().ws, replacement); + assert.equal(store.getState().isConnected, false); + replacement.open(); + assert.equal(store.getState().isConnected, true); +}); + +test('retirement closes open sockets but does not close terminal sockets or retry retired failures', () => { + for (const state of [FakeSocket.OPEN, FakeSocket.CLOSING, FakeSocket.CLOSED]) { + store.getState().connect(); + const retired = sockets.at(-1); + retired.readyState = state; + store.getState().disconnect(); + assert.equal(retired.closeCalls, state === FakeSocket.OPEN ? 1 : 0); + assert.equal(retired.onopen, null); + } + store.getState().connect(); + const retired = sockets.at(-1); + store.getState().disconnect(); + retired.fail(); + assert.equal(timers.size, 0); + assert.equal(probes.length, 0); + assert.equal(store.getState().ws, null); +}); + test('recovery checks backend health instead of a frontend favicon and rejects HTTP failures', async () => { const probe = enterHealthRecovery(); probe.respond(502); diff --git a/scripts/workflow-png-package.test.mjs b/scripts/workflow-png-package.test.mjs new file mode 100644 index 00000000..4ac3ff93 --- /dev/null +++ b/scripts/workflow-png-package.test.mjs @@ -0,0 +1,111 @@ +import assert from 'node:assert/strict'; +import { after, before, test } from 'node:test'; +import path from 'node:path'; +import { fileURLToPath } from 'node:url'; +import { createServer } from 'vite'; +import { chromium } from 'playwright'; + +const ROOT = path.resolve(path.dirname(fileURLToPath(import.meta.url)), '..'); +let server; +let browser; +let page; + +before(async () => { + server = await createServer({ + root: ROOT, + configFile: false, + logLevel: 'silent', + optimizeDeps: { entries: [], noDiscovery: true }, + server: { host: '127.0.0.1', port: 0, watch: null, hmr: false }, + appType: 'custom', + plugins: [ + { + name: 'png-package-codec-probe', + configureServer(vite) { + vite.middlewares.use('/png-package-probe', (_request, response) => { + response.setHeader('Content-Type', 'text/html'); + response.end('PNG package codec regression'); + }); + }, + }, + ], + }); + await server.listen(); + browser = await chromium.launch(); + page = await browser.newPage(); + await page.goto(`http://127.0.0.1:${server.httpServer.address().port}/png-package-probe`); +}); + +after(async () => { + await browser?.close(); + await server?.close(); +}); + +for (const mime of ['image/webp', 'image/jpeg', 'image/png']) { + test(`${mime} exports a real PNG preserving decoded pixels and exact workflow metadata`, async () => { + const proof = await page.evaluate(async (mime) => { + const { createPngWithWorkflowMetadata, extractWorkflowPackageFromPngBytes } = + await import('/src/studio/workflowPackage.ts'); + const canvas = document.createElement('canvas'); + canvas.width = 32; + canvas.height = 16; + const context = canvas.getContext('2d'); + context.fillStyle = '#1463a0'; + context.fillRect(0, 0, 32, 16); + context.fillStyle = '#e7ad3a'; + context.fillRect(3, 4, 15, 9); + const sourceUrl = canvas.toDataURL(mime); + const sourceBlob = await (await fetch(sourceUrl)).blob(); + const sourceBytes = new Uint8Array(await sourceBlob.arrayBuffer()); + const sourceImage = await createImageBitmap(sourceBlob); + context.clearRect(0, 0, 32, 16); + context.drawImage(sourceImage, 0, 0); + const expectedPixels = [...context.getImageData(0, 0, 32, 16).data]; + sourceImage.close(); + const metadata = { graph: { nodes: [], edges: [] }, marker: 'Preserve café / 日本語 / seed 173' }; + const png = await createPngWithWorkflowMetadata(sourceUrl, metadata); + const bytes = new Uint8Array(await png.arrayBuffer()); + const image = await createImageBitmap(png); + context.clearRect(0, 0, 32, 16); + context.drawImage(image, 0, 0); + const actualPixels = [...context.getImageData(0, 0, 32, 16).data]; + const dimensions = [image.width, image.height]; + image.close(); + return { + mime: sourceBlob.type, + exportedType: png.type, + signature: [...bytes.slice(0, 8)], + metadata: extractWorkflowPackageFromPngBytes(bytes), + expectedMetadata: metadata, + expectedPixels, + actualPixels, + dimensions, + sourceBytes: [...sourceBytes], + exportedBytes: [...bytes], + }; + }, mime); + assert.equal(proof.mime, mime); + assert.equal(proof.exportedType, 'image/png'); + assert.deepEqual(proof.signature, [137, 80, 78, 71, 13, 10, 26, 10]); + assert.deepEqual(proof.dimensions, [32, 16]); + assert.deepEqual(proof.actualPixels, proof.expectedPixels); + assert.deepEqual(proof.metadata, proof.expectedMetadata); + if (mime === 'image/png') { + assert.deepEqual(proof.exportedBytes.slice(0, proof.sourceBytes.length - 12), proof.sourceBytes.slice(0, -12)); + assert.deepEqual(proof.exportedBytes.slice(-12), proof.sourceBytes.slice(-12)); + } + }); +} + +test('an undecodable source remains an export failure', async () => { + const error = await page.evaluate(async () => { + const { createPngWithWorkflowMetadata } = await import('/src/studio/workflowPackage.ts'); + try { + await createPngWithWorkflowMetadata('data:image/webp;base64,aW52YWxpZA==', {}); + return null; + } catch (error) { + return String(error); + } + }); + assert.ok(error, 'Invalid image bytes must not produce a successful package'); +}); diff --git a/src/stores/useWebsocketStore.ts b/src/stores/useWebsocketStore.ts index 29b91ef7..333cce05 100644 --- a/src/stores/useWebsocketStore.ts +++ b/src/stores/useWebsocketStore.ts @@ -26,6 +26,21 @@ export type WebsocketState = { send: (message: unknown) => void; }; +function retireSocket(ws: WebSocket) { + ws.onclose = null; + ws.onmessage = null; + // StrictMode can retire a socket before its handshake completes. Closing it + // then emits a browser warning; detach it now and close after the handshake. + ws.onopen = + ws.readyState === WebSocket.CONNECTING + ? () => { + ws.onopen = null; + ws.close(); + } + : null; + if (ws.readyState === WebSocket.OPEN) ws.close(); +} + export const useWebsocketStore = create((set, get) => { let generation = 0; let healthProbe: AbortController | undefined; @@ -118,8 +133,7 @@ export const useWebsocketStore = create((set, get) => { const curr_ws = get().ws; if (curr_ws && curr_ws.readyState < WebSocket.CLOSING) { - curr_ws.onclose = null; - curr_ws.close(); + retireSocket(curr_ws); set({ sid: null, ws: null, isConnected: false }); } @@ -205,10 +219,7 @@ export const useWebsocketStore = create((set, get) => { reconnectAttempts: 0, }); if (ws) { - ws.onopen = null; - ws.onclose = null; - ws.onmessage = null; - ws.close(); + retireSocket(ws); } }, diff --git a/src/studio/blockRunFormV2.ts b/src/studio/blockRunFormV2.ts index af3ab413..3c1dc08f 100644 --- a/src/studio/blockRunFormV2.ts +++ b/src/studio/blockRunFormV2.ts @@ -27,9 +27,11 @@ type OutputLike = Readonly<{ }>; const CONTROL_TO_FORM_FIELD: Readonly> = Object.freeze({ + audio: 'sourceAudio', auto_offload: 'autoOffload', batch_size: 'batchSize', conditioning_scale: 'conditioningScale', + chunk_length_seconds: 'speechChunkSeconds', control_image: 'controlImage', control_mode: 'controlMode', control_video: 'controlVideo', @@ -43,6 +45,7 @@ const CONTROL_TO_FORM_FIELD: Readonly> = O ip_adapter_image: 'ipAdapterImage', ip_adapter_scale: 'ipAdapterScale', lyrics: 'lyrics', + language: 'speechLanguage', mask_image: 'maskImage', mask_video: 'maskVideo', max_sequence_length: 'maxSequenceLength', @@ -63,10 +66,23 @@ const CONTROL_TO_FORM_FIELD: Readonly> = O source_audio: 'sourceAudio', source_video: 'sourceVideo', strength: 'strength', + stride_length_seconds: 'speechStrideSeconds', + timestamps: 'speechTimestamps', width: 'width', modelVariant: 'modelRepo', }); +const SINGLE_MEDIA_FORM_FIELDS = new Set([ + 'sourceAudio', + 'referenceAudio', + 'sourceVideo', + 'controlVideo', + 'maskVideo', + 'controlImage', + 'maskImage', + 'ipAdapterImage', +]); + function isRecord(value: unknown): value is Record { return Boolean(value && typeof value === 'object' && !Array.isArray(value)); } @@ -98,7 +114,20 @@ function formFieldForControl(controlId: string, bindingFieldId: string, form: St ); } -export function projectBlockControlValueV2(value: BlockJsonValue, current: StudioFormState[keyof StudioFormState]) { +export function projectBlockControlValueV2( + value: BlockJsonValue, + current: StudioFormState[keyof StudioFormState], + field?: keyof StudioFormState, +) { + if ( + field && + SINGLE_MEDIA_FORM_FIELDS.has(field) && + typeof current === 'string' && + Array.isArray(value) && + value.length === 1 && + typeof value[0] === 'string' + ) + return value[0]; if (typeof current === 'number') { if (isRecord(value) && Object.prototype.hasOwnProperty.call(value, 'value')) { return projectBlockControlValueV2(value.value as BlockJsonValue, current); @@ -177,7 +206,7 @@ export function registeredBlockRunFormV2( if (value === undefined) return; const field = formFieldForControl(control.controlId, control.binding.fieldId, projected); if (!field) return; - (projected as Record)[field] = projectBlockControlValueV2(value, projected[field]); + (projected as Record)[field] = projectBlockControlValueV2(value, projected[field], field); if ( field === 'seed' && isRecord(value) && @@ -231,7 +260,7 @@ export function userBlockRunFormV2(instanceValue: BlockInstanceV2) { if (value === undefined) continue; const field = formFieldForControl(fieldId, fieldId, projected); if (!field || ['modelType', 'modelRepo', 'mode', 'resourceMode'].includes(field)) continue; - const normalized = projectBlockControlValueV2(value as BlockJsonValue, projected[field]); + const normalized = projectBlockControlValueV2(value as BlockJsonValue, projected[field], field); if (values.has(field) && JSON.stringify(values.get(field)) !== JSON.stringify(normalized)) return null; values.set(field, normalized as BlockJsonValue); if (field === 'seed' && isRecord(value) && typeof value.isRandom === 'boolean') diff --git a/src/studio/workflowPackage.ts b/src/studio/workflowPackage.ts index d8bf9cc9..9efe3660 100644 --- a/src/studio/workflowPackage.ts +++ b/src/studio/workflowPackage.ts @@ -329,7 +329,28 @@ export function embedWorkflowPackageInPngBytes(bytes: Uint8Array, packageData: u } export async function createPngWithWorkflowMetadata(sourceUrl: string, packageData: unknown) { - const bytes = new Uint8Array(await requestArrayBuffer(sourceUrl)); + let bytes = new Uint8Array(await requestArrayBuffer(sourceUrl)); + if (!PNG_SIGNATURE.every((byte, index) => bytes[index] === byte)) { + const image = await createImageBitmap(new Blob([bytes])); + const canvas = document.createElement('canvas'); + try { + if (image.width * image.height > 64_000_000) { + throw new Error('Image is too large to export as PNG.'); + } + canvas.width = image.width; + canvas.height = image.height; + const context = canvas.getContext('2d'); + if (!context) throw new Error('Could not create a PNG export canvas.'); + context.drawImage(image, 0, 0); + const png = await new Promise((resolve, reject) => { + canvas.toBlob((blob) => (blob ? resolve(blob) : reject(new Error('Could not encode PNG.'))), 'image/png'); + }); + bytes = new Uint8Array(await png.arrayBuffer()); + } finally { + image.close(); + canvas.width = canvas.height = 0; + } + } const png = embedWorkflowPackageInPngBytes(bytes, packageData); return new Blob([png], { type: 'image/png' }); } From 2c6113c1047b51bd7d309c94e3ae1d8d3af7e327 Mon Sep 17 00:00:00 2001 From: Sourav Das Date: Sat, 10 Oct 2026 02:11:03 +0530 Subject: [PATCH 028/440] Pin the backend with current bundle-source reports Pair CI with backend a9df6b0a0cf38b5007094bf766c85010aa336169, whose reviewed generated report changes update only SHA256 bindings after the client bundle rebuild. Runtime client source, dependencies and built assets remain byte-identical to 2947f40. --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 449c71b4..5229b17e 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -33,7 +33,7 @@ jobs: with: repository: sdevil7th/MoDiff # Paired AMD/Linux and preserved Windows runtime, workflow and Block contracts. - ref: 3a038c977aefcfff4bbe7d5425730ea62150faae + ref: a9df6b0a0cf38b5007094bf766c85010aa336169 path: MoDiff persist-credentials: false - name: Verify the pinned backend supports native setup From ed0deacac00e74c1c1829bbe8ffa2e66f1bcae8d Mon Sep 17 00:00:00 2001 From: Sourav Das Date: Sat, 10 Oct 2026 03:47:47 +0530 Subject: [PATCH 029/440] Repair controlled video submission and legacy output attribution Enable the declared FPS socket on retained quality-video assets without relaxing other registry schema checks. Omit obsolete single-shot runtime claims only for reviewed replacements whose base nodes are absent from the actual graph; preserve additive/stale/Auto boundaries. Preserve explicit historical field presence so missing task/model/seed stays uncaptured in Gallery and download names. Regression cases, full client check and 3 shared plus 261 Studio browser tests pass. Bound measured shared bundle growth by 384 compressed bytes and pair CI with backend 57c5583984d12386591f464adf9a5539945bfe56. --- .github/workflows/ci.yml | 2 +- docs/windows-support.md | 22 +++++++ package.json | 2 +- scripts/bundle-budget.mjs | 7 ++- scripts/controlled-execution-receipt.test.mjs | 59 +++++++++++++++++++ scripts/resolved-execution-inputs.test.mjs | 31 ++++++++++ src/components/OutputGalleryPanel.tsx | 10 ++-- src/studio/controlledWorkflows.ts | 2 + src/studio/executionSpecs.ts | 15 +++++ src/studio/graphBridge.ts | 23 +++++++- src/studio/outputContracts.ts | 41 ++++++++++++- src/studio/outputTaskDisplay.ts | 5 +- src/studio/resolvedExecutionInputs.ts | 6 +- src/studio/runPreparation.ts | 1 + src/studio/types.ts | 5 ++ tests/e2e/studio-mocked/studio-mocked.spec.ts | 21 ++++++- 16 files changed, 235 insertions(+), 17 deletions(-) create mode 100644 scripts/controlled-execution-receipt.test.mjs diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 5229b17e..e0b7a986 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -33,7 +33,7 @@ jobs: with: repository: sdevil7th/MoDiff # Paired AMD/Linux and preserved Windows runtime, workflow and Block contracts. - ref: a9df6b0a0cf38b5007094bf766c85010aa336169 + ref: 57c5583984d12386591f464adf9a5539945bfe56 path: MoDiff persist-credentials: false - name: Verify the pinned backend supports native setup diff --git a/docs/windows-support.md b/docs/windows-support.md index 1a2c7f69..55aded61 100644 --- a/docs/windows-support.md +++ b/docs/windows-support.md @@ -264,3 +264,25 @@ evidence to retain. Historical Gallery examples remain historical until a new execution has its own matching proof. For integrated static serving, follow [Build and deployment](deployment.md). For listener, connection, download, and accelerator recovery, see [Troubleshooting](troubleshooting.md). + +## Controlled video and historical output metadata + +Quality video sequences connect each generated shot's FPS to its retained asset. +The builder enables that existing scalar input socket explicitly; the backend +registry remains authoritative for the field's type and other execution schema. +The controlled graph proof permits this FPS socket change only on its declared +retention node and still checks the complete reviewed route. + +Sequence and quality-loop transformations disable their replaced single-shot +nodes. Their submission carries the actual ordinary graph and controlled route +identities without claiming that the removed nodes match the base single-shot +runtime specification. Additive routes keep the base receipt. A selected Auto +plan that requires a specification receipt still fails closed at the backend +when it is missing; this correction does not qualify an unsupported Auto recipe. + +Receipt-free Gallery records retain only explicitly supplied historical fields +for presentation. `legacyRecordedFields` preserves that presence through history +coercion; it is not backend execution evidence. Missing task, model and seed are +shown as uncaptured, and download names use an uncaptured model identifier. +Actual resolved execution receipts continue to take precedence over historical +form settings. diff --git a/package.json b/package.json index fc2a4c5b..d45c825f 100644 --- a/package.json +++ b/package.json @@ -95,7 +95,7 @@ "test:graph-mutations": "node --test scripts/flow-graph-mutations.test.mjs scripts/graph-fixer.test.mjs scripts/block-seed-repair-v2.test.mjs scripts/block-derived-control-repair-v2.test.mjs", "test:graph-visuals": "node --test scripts/graph-visuals.test.mjs scripts/node-measurement-dispatch.test.mjs scripts/node-connection-search.test.mjs", "test:media-viewer": "node --test scripts/media-viewer.test.mjs scripts/workflow-png-package.test.mjs", - "test:requests": "node --test scripts/media-attachment.test.mjs scripts/node-presentation.test.mjs scripts/service-package.test.mjs scripts/node-store-requests.test.mjs scripts/operation-catalog.test.mjs scripts/operation-component-bundle-inputs.test.mjs scripts/operation-component-bundle.test.mjs scripts/operation-authoring.test.mjs scripts/operation-modification-matrix.test.mjs scripts/request-boundary.test.mjs scripts/server-actions.test.mjs scripts/shared-store-requests.test.mjs scripts/supervisor-startup.test.mjs scripts/studio-output-requests.test.mjs scripts/resolved-execution-inputs.test.mjs scripts/runtime-resources.test.mjs scripts/websocket-connection.test.mjs scripts/backend-proxy-lifecycle.test.mjs", + "test:requests": "node --test scripts/controlled-execution-receipt.test.mjs scripts/media-attachment.test.mjs scripts/node-presentation.test.mjs scripts/service-package.test.mjs scripts/node-store-requests.test.mjs scripts/operation-catalog.test.mjs scripts/operation-component-bundle-inputs.test.mjs scripts/operation-component-bundle.test.mjs scripts/operation-authoring.test.mjs scripts/operation-modification-matrix.test.mjs scripts/request-boundary.test.mjs scripts/server-actions.test.mjs scripts/shared-store-requests.test.mjs scripts/supervisor-startup.test.mjs scripts/studio-output-requests.test.mjs scripts/resolved-execution-inputs.test.mjs scripts/runtime-resources.test.mjs scripts/websocket-connection.test.mjs scripts/backend-proxy-lifecycle.test.mjs", "test:run-coordinator": "node --test scripts/run-coordinator.test.mjs scripts/compatibility-panel.test.mjs scripts/run-issue-store.test.mjs scripts/block-runtime-hints-v2.test.mjs", "test:run-activity": "node --test scripts/run-activity.test.mjs", "test:template-input-preview": "node --test scripts/template-input-preview.test.mjs", diff --git a/scripts/bundle-budget.mjs b/scripts/bundle-budget.mjs index 484af29e..e7e236e7 100644 --- a/scripts/bundle-budget.mjs +++ b/scripts/bundle-budget.mjs @@ -55,7 +55,10 @@ const SOURCE_LICENSES = new URL('../public/THIRD_PARTY_LICENSES.txt', import.met // Allow 32 additional bytes here and below; deferred limits stay unchanged. // Exact speech-control aliases and single-file media projection bring measured // startup/chunk to 644443/466136 bytes. Bound this shared fix by 128 more bytes. -const MAX_STARTUP_CHUNK_GZIP_BYTES = 450 * 1024 + 768 + 1280 + 256 + 576 + 320 + 512 + 1536 + 32 + 128; +// Recorded legacy-field presence and exact controlled-route schema checks measure +// startup/chunk 644791/466487 bytes (+348/+351). Bound these shared corrections +// with 384 bytes; no dependencies, eager authoring imports or deferred caps change. +const MAX_STARTUP_CHUNK_GZIP_BYTES = 450 * 1024 + 768 + 1280 + 256 + 576 + 320 + 512 + 1536 + 32 + 128 + 384; // Shared icons initialize in graph-vendor, avoiding an entry/lazy-panel cycle // that captured undefined tab icons and crashed cold production startup. The // Earlier startup measured 589.1 KiB. Shared Block crossing, explicit movement, @@ -128,7 +131,7 @@ const MAX_STARTUP_CHUNK_GZIP_BYTES = 450 * 1024 + 768 + 1280 + 256 + 576 + 320 + // The same recipe metadata measures 643554 total startup bytes (+1378). // Allocate 1536 bytes for this feature, preserving the existing four assets. // Preserve both reviewed allowances: 642304 + 512 + 1536 = 644352 bytes. -const MAX_STARTUP_GZIP_BYTES = 624 * 1024 + 768 + 1280 + 384 + 576 + 320 + 512 + 1536 + 32 + 128; +const MAX_STARTUP_GZIP_BYTES = 624 * 1024 + 768 + 1280 + 384 + 576 + 320 + 512 + 1536 + 32 + 128 + 384; // Deferred surfaces are measured separately so code splitting cannot hide an // unbounded feature bundle. These ceilings leave room for the reviewed dialogs // and catalog tools while preventing either one oversized deferred chunk or diff --git a/scripts/controlled-execution-receipt.test.mjs b/scripts/controlled-execution-receipt.test.mjs new file mode 100644 index 00000000..00f55836 --- /dev/null +++ b/scripts/controlled-execution-receipt.test.mjs @@ -0,0 +1,59 @@ +import assert from 'node:assert/strict'; +import { after, before, test } from 'node:test'; +import { createServer } from 'vite'; + +let server, execution; +before(async () => { + server = await createServer({ + configFile: false, + logLevel: 'silent', + optimizeDeps: { entries: [], noDiscovery: true }, + server: { middlewareMode: true, hmr: false, watch: null }, + appType: 'custom', + }); + execution = await server.ssrLoadModule('/src/studio/executionSpecs.ts'); +}); +after(async () => server?.close()); + +const spec = { + id: 'wan-t2v:v1', + contentHash: 'reviewed-hash', + mode: 'text_to_video', + roles: [['wanPipeline'], ['wanGenerate'], ['videoExport']], +}; +const capabilities = [{ modelType: 'WanPipeline', studioExecutionSpecs: [spec] }]; +function binding(contracts) { + return { + modelType: 'WanPipeline', + mode: 'text_to_video', + executionSpec: { schemaVersion: 1, id: spec.id, contentHash: spec.contentHash }, + nodes: { wanPipeline: 'loader', wanGenerate: 'single', videoExport: 'export' }, + ...(contracts ? { controlled: { contractIds: contracts } } : {}), + }; +} + +test('controlled video replacements do not attach a single-shot specification to a different executable graph', () => { + for (const contract of ['video-sequence.v1', 'quality-video.t2v.v1', 'quality-video.i2v.v1', 'lyric-video.v1']) { + const graph = { loader: {}, sequence: {}, export: {} }; + assert.equal(execution.studioExecutionSpecRuntimeReceipt(binding([contract]), capabilities, graph), undefined); + } +}); + +test('base graphs and controlled additions keep their exact reviewed specification receipt', () => { + const graph = { loader: {}, single: {}, export: {}, upscaler: {} }; + for (const contracts of [undefined, ['upscale.video.v1'], ['video-sequence.v1']]) { + assert.deepEqual(execution.studioExecutionSpecRuntimeReceipt(binding(contracts), capabilities, graph), { + schemaVersion: 1, + id: spec.id, + contentHash: spec.contentHash, + nodes: { wanPipeline: 'loader', wanGenerate: 'single', videoExport: 'export' }, + }); + } +}); + +test('unreviewed contracts and stale specification identities cannot drop the managed receipt', () => { + assert.ok(execution.studioExecutionSpecRuntimeReceipt(binding(['unknown']), capabilities, { loader: {} })); + const stale = binding(['video-sequence.v1']); + stale.executionSpec.contentHash = 'stale'; + assert.throws(() => execution.studioExecutionSpecRuntimeReceipt(stale, capabilities, { loader: {} }), /stale/); +}); diff --git a/scripts/resolved-execution-inputs.test.mjs b/scripts/resolved-execution-inputs.test.mjs index 850106f6..96cf532d 100644 --- a/scripts/resolved-execution-inputs.test.mjs +++ b/scripts/resolved-execution-inputs.test.mjs @@ -37,6 +37,37 @@ test('SSR receipt imports and explicit watch requests allocate no filesystem wat assert.deepEqual(server.watcher.getWatched(), {}); }); +test('receipt-free records never present coercion defaults as recorded task, model or numeric inputs', () => { + for (const displayType of ['text', 'json', 'image', 'video', 'audio']) { + const output = contracts.coerceStudioOutput({ id: 'unrecorded', url: '/asset', displayType }); + for (const restored of [output, contracts.coerceStudioOutput(JSON.parse(JSON.stringify(output)))]) { + assert.equal(tasks.outputTaskDisplay(restored), 'Task not captured'); + assert.equal(inputs.outputModelKey(restored), 'uncaptured-model'); + assert.equal(restored.modelLabel, 'Model not captured'); + for (const key of ['seed', 'width', 'height', 'steps', 'guidanceScale', 'numFrames', 'fps']) { + assert.equal(inputs.outputNumericInputValue(restored, key), undefined); + } + } + } +}); + +test('explicit legacy settings retain zero values and survive history without borrowing omitted fields', () => { + const output = contracts.coerceStudioOutput({ + id: 'legacy-partial', + url: '/clip.mp4', + seed: 0, + formSnapshot: { mode: 'text_to_video', modelType: 'WanVideoPipeline', fps: 15, numFrames: 81 }, + }); + for (const restored of [output, contracts.coerceStudioOutput(JSON.parse(JSON.stringify(output)))]) { + assert.equal(tasks.outputTaskDisplay(restored), 'Text to video'); + assert.equal(inputs.outputModelKey(restored), 'WanVideoPipeline'); + assert.equal(inputs.outputNumericInputValue(restored, 'seed'), 0); + assert.equal(inputs.outputNumericInputValue(restored, 'fps'), 15); + assert.equal(inputs.outputNumericInputValue(restored, 'numFrames'), 81); + assert.equal(inputs.outputNumericInputValue(restored, 'steps'), undefined); + } +}); + function capturedOutput(fields, extra = {}) { const evidence = receipt(); evidence.nodes[0].fields = Object.fromEntries( diff --git a/src/components/OutputGalleryPanel.tsx b/src/components/OutputGalleryPanel.tsx index a67dd6a4..dbf08f01 100644 --- a/src/components/OutputGalleryPanel.tsx +++ b/src/components/OutputGalleryPanel.tsx @@ -57,12 +57,12 @@ function copyMetadata(output: StudioOutput) { } function downloadOutputPackage(output: StudioOutput) { - downloadJson(`modiff-${output.modelType}-${output.id}-workflow.json`, buildOutputWorkflowPackage(output)); + downloadJson(`modiff-${outputModelKey(output)}-${output.id}-workflow.json`, buildOutputWorkflowPackage(output)); } async function downloadOutputPngPackage(output: StudioOutput) { await downloadPngWithWorkflowMetadata( - `modiff-${output.modelType}-${output.id}-workflow.png`, + `modiff-${outputModelKey(output)}-${output.id}-workflow.png`, output.url, buildOutputWorkflowPackage(output), ); @@ -244,7 +244,7 @@ export default function OutputGalleryPanel({ modalView = false }: { modalView?: textOutputViewerOpener( output, `Gallery ${textType} output`, - `modiff-${output.modelType}-${output.id}.${textType === 'json' ? 'json' : 'txt'}`, + `modiff-${outputModelKey(output)}-${output.id}.${textType === 'json' ? 'json' : 'txt'}`, ), ); } else if (isVideoOutput(output) || isAudioOutput(output)) { @@ -596,7 +596,7 @@ export default function OutputGalleryPanel({ modalView = false }: { modalView?: if (textType) { void exportMedia( output.url, - `modiff-${output.modelType}-${output.id}.${textType === 'json' ? 'json' : 'txt'}`, + `modiff-${outputModelKey(output)}-${output.id}.${textType === 'json' ? 'json' : 'txt'}`, 'text', null, { format: 'original' }, @@ -608,7 +608,7 @@ export default function OutputGalleryPanel({ modalView = false }: { modalView?: const kind = isAudioOutput(output) ? 'audio' : isVideoOutput(output) ? 'video' : 'image'; setMediaExportOpener({ source: output.url, - filename: `modiff-${output.modelType}-${output.id}${ + filename: `modiff-${outputModelKey(output)}-${output.id}${ kind === 'audio' ? '.wav' : kind === 'video' ? '.mp4' : '.png' }`, kind, diff --git a/src/studio/controlledWorkflows.ts b/src/studio/controlledWorkflows.ts index 2a817f73..4292de20 100644 --- a/src/studio/controlledWorkflows.ts +++ b/src/studio/controlledWorkflows.ts @@ -717,6 +717,8 @@ export async function addQualityVideoSequenceWorkflowBlock( setParamIfPresent(jobs, ['negative_prompt'], form.negativePrompt); setParamIfPresent(retain, ['quality'], 10); setParamIfPresent(retain, ['pin'], true); + // ExportAsset exposes FPS as a scalar control until its input socket is enabled. + setParamIfPresent(retain, ['fps'], true, 'isInput'); setParamIfPresent(join, ['transition_seconds'], settings.transitionSeconds); setParamIfPresent(join, ['pin'], true); diff --git a/src/studio/executionSpecs.ts b/src/studio/executionSpecs.ts index d0e3f29b..7eace42e 100644 --- a/src/studio/executionSpecs.ts +++ b/src/studio/executionSpecs.ts @@ -237,6 +237,7 @@ export function parseStudioExecutionSpecs( export function studioExecutionSpecRuntimeReceipt( binding: StudioGraphBinding | null, capabilities: readonly StudioModelProfile[], + executableNodes?: Readonly>, ) { if (!binding?.executionSpec) return undefined; const spec = capabilities @@ -252,6 +253,20 @@ export function studioExecutionSpecRuntimeReceipt( return [role, nodeId]; }), ); + // These reviewed authoring transformations replace disabled base nodes. + // Their ordinary graph must not claim the obsolete single-shot runtime spec. + // Additive routes retain the receipt, and Auto contracts still require it at + // the backend whenever their selected plan declares that base specification. + const replacesBaseNodes = binding.controlled?.contractIds.some((id) => + ['video-sequence.v1', 'quality-video.t2v.v1', 'quality-video.i2v.v1', 'lyric-video.v1'].includes(id), + ); + if ( + replacesBaseNodes && + executableNodes && + Object.values(nodes).some((id) => !Object.prototype.hasOwnProperty.call(executableNodes, id)) + ) { + return undefined; + } return { schemaVersion: binding.executionSpec.schemaVersion, id: binding.executionSpec.id, diff --git a/src/studio/graphBridge.ts b/src/studio/graphBridge.ts index 08d6fda2..62c36008 100644 --- a/src/studio/graphBridge.ts +++ b/src/studio/graphBridge.ts @@ -817,13 +817,26 @@ function graphProofParamSchema(params: Record | undefined) { function managedParamSchemaMatchesRegistry( params: Record, reviewedParams: Record | undefined, + controlledScalarInputs: readonly string[] = [], ) { if (!reviewedParams) return false; for (const [field, reviewedParam] of Object.entries(reviewedParams)) { const param = params[field]; if ( !param || - REVIEWED_EXECUTION_PARAM_KEYS.some((key) => stableStringify(param[key]) !== stableStringify(reviewedParam[key])) + REVIEWED_EXECUTION_PARAM_KEYS.some((key) => { + // Reviewed controlled routes can enable a declared scalar's existing socket. + // Every other execution-schema field must still match the backend registry. + if ( + key === 'isInput' && + controlledScalarInputs.includes(field) && + reviewedParam.display === undefined && + reviewedParam.isInput !== true && + param.isInput === true + ) + return false; + return stableStringify(param[key]) !== stableStringify(reviewedParam[key]); + }) ) { return false; } @@ -1264,7 +1277,13 @@ function controlledGraphSemanticsAreValid(binding: StudioGraphBinding, form: Stu if ( !node || (node.data.studioRole !== 'qualityVideoLoop' && - !managedParamSchemaMatchesRegistry(node.data.params, reviewedParams)) + !managedParamSchemaMatchesRegistry( + node.data.params, + reviewedParams, + node.data.studioRole === 'qualityVideoRetain' && contractIds.some((id) => id.startsWith('quality-video.')) + ? ['fps'] + : [], + )) ) { return false; } diff --git a/src/studio/outputContracts.ts b/src/studio/outputContracts.ts index b0e72e45..73a44e05 100644 --- a/src/studio/outputContracts.ts +++ b/src/studio/outputContracts.ts @@ -12,6 +12,7 @@ import { blockOutputRunFormV2 } from './blockRunFormV2'; import { applyResolvedExecutionInputs } from './resolvedExecutionInputs'; import type { StudioFormState, + LegacyStudioOutputField, StudioEncodedVideoMetadata, StudioGraphBinding, StudioGraphSnapshot, @@ -399,6 +400,33 @@ function coerceStudioOutputMediaItems(value: unknown): StudioOutputMediaItem[] | return items.length > 0 ? items : undefined; } +const LEGACY_OUTPUT_FIELDS: readonly LegacyStudioOutputField[] = [ + 'mode', + 'modelType', + 'seed', + 'width', + 'height', + 'steps', + 'guidanceScale', + 'numFrames', + 'fps', +]; + +function legacyRecordedFields(value: Record, form: Record) { + if (Object.prototype.hasOwnProperty.call(value, 'legacyRecordedFields')) { + return Array.isArray(value.legacyRecordedFields) && value.legacyRecordedFields.length <= LEGACY_OUTPUT_FIELDS.length + ? LEGACY_OUTPUT_FIELDS.filter((field) => (value.legacyRecordedFields as unknown[]).includes(field)) + : []; + } + return LEGACY_OUTPUT_FIELDS.filter((field) => { + const supplied = value[field] ?? form[field]; + if (field === 'mode') return typeof supplied === 'string' && STUDIO_MODES.includes(supplied as StudioMode); + if (field === 'modelType') + return typeof supplied === 'string' && STUDIO_MODEL_TYPES.includes(supplied as StudioModelType); + return typeof supplied === 'number' && Number.isFinite(supplied); + }); +} + export function coerceStudioOutput(value: unknown): StudioOutput | undefined { if (!isRecord(value)) return undefined; const id = stringValue(value.id); @@ -406,10 +434,14 @@ export function coerceStudioOutput(value: unknown): StudioOutput | undefined { if (!id || !url) return undefined; const registeredBlockRun = blockOutputRunFormV2(value); - const mode = registeredBlockRun?.form.mode ?? stringUnionValue(value.mode, STUDIO_MODES, DEFAULT_STUDIO_FORM.mode); + const originalForm = registeredBlockRun?.form ?? (isRecord(value.formSnapshot) ? value.formSnapshot : {}); + const recordedFields = legacyRecordedFields(value, originalForm); + const mode = + registeredBlockRun?.form.mode ?? + stringUnionValue(value.mode ?? originalForm.mode, STUDIO_MODES, DEFAULT_STUDIO_FORM.mode); const modelType = registeredBlockRun?.form.modelType ?? - stringUnionValue(value.modelType, STUDIO_MODEL_TYPES, DEFAULT_STUDIO_FORM.modelType); + stringUnionValue(value.modelType ?? originalForm.modelType, STUDIO_MODEL_TYPES, DEFAULT_STUDIO_FORM.modelType); const profile = STUDIO_MODEL_PROFILES[modelType]; const formSnapshot = registeredBlockRun?.form ?? coerceStudioFormState(value.formSnapshot); const settings = registeredBlockRun ? formSnapshot : value; @@ -417,6 +449,7 @@ export function coerceStudioOutput(value: unknown): StudioOutput | undefined { return applyResolvedExecutionInputs( { id, + legacyRecordedFields: recordedFields, clientRunId: optionalString(value.clientRunId), runInputHash: optionalString(value.runInputHash), workflowTabId: optionalNullableString(value.workflowTabId), @@ -427,7 +460,9 @@ export function coerceStudioOutput(value: unknown): StudioOutput | undefined { url, mode, modelType, - modelLabel: registeredBlockRun ? profile.label : stringValue(value.modelLabel, profile.label), + modelLabel: registeredBlockRun + ? profile.label + : stringValue(value.modelLabel, recordedFields.includes('modelType') ? profile.label : 'Model not captured'), repo: registeredBlockRun?.form.modelRepo ?? stringValue(value.repo, profile.defaultRepo), templateId: coerceStudioTemplateId(value.templateId), templateLabel: optionalString(value.templateLabel), diff --git a/src/studio/outputTaskDisplay.ts b/src/studio/outputTaskDisplay.ts index 76b18bb7..8db2e042 100644 --- a/src/studio/outputTaskDisplay.ts +++ b/src/studio/outputTaskDisplay.ts @@ -3,7 +3,10 @@ import type { StudioOutput } from './types'; export function outputTaskDisplay(output: StudioOutput): string { const receipt = output.resolvedExecutionInputs; - if (!receipt) return STUDIO_MODE_LABELS[output.mode]; + if (!receipt) + return output.legacyRecordedFields && !output.legacyRecordedFields.includes('mode') + ? 'Task not captured' + : STUDIO_MODE_LABELS[output.mode]; const task = receipt.graphTasks?.[0]?.task; const label = task && STUDIO_MODE_LABELS[task as keyof typeof STUDIO_MODE_LABELS]; return typeof label === 'string' && receipt.graphTasks!.every((item) => item.task === task) diff --git a/src/studio/resolvedExecutionInputs.ts b/src/studio/resolvedExecutionInputs.ts index cf98f093..4fa83c2d 100644 --- a/src/studio/resolvedExecutionInputs.ts +++ b/src/studio/resolvedExecutionInputs.ts @@ -337,7 +337,10 @@ export function applyResolvedExecutionInputs(output: StudioOutput, candidate: un /** A custom or ambiguous captured model must not inherit the form's filter. */ export function outputModelKey(output: StudioOutput): string { const receipt = output.resolvedExecutionInputs; - if (!receipt) return output.modelType; + if (!receipt) + return output.legacyRecordedFields && !output.legacyRecordedFields.includes('modelType') + ? 'uncaptured-model' + : output.modelType; const model = receipt.summary.modelType; return !resolvedInputUnavailable(receipt, 'modelType') && typeof model === 'string' && model.trim() ? model @@ -381,6 +384,7 @@ export function outputNumericInputValue( } // Old records have no execution receipt. Keep their historical display; // the inspector explicitly labels these as legacy form/graph settings. + if (output.legacyRecordedFields && !output.legacyRecordedFields.includes(key)) return undefined; return key === 'numFrames' || key === 'fps' ? output.formSnapshot[key] : output[key]; } diff --git a/src/studio/runPreparation.ts b/src/studio/runPreparation.ts index 8c436435..f20b8933 100644 --- a/src/studio/runPreparation.ts +++ b/src/studio/runPreparation.ts @@ -167,6 +167,7 @@ export function applyStudioRuntimeHints(apiGraph: APIGraphExport, runIdentity?: const studioExecutionSpec = studioExecutionSpecRuntimeReceipt( studio.graphBinding, useNodesStore.getState().studioModelCapabilities, + apiGraph.nodes, ); const form = committedAutoCandidate ? { diff --git a/src/studio/types.ts b/src/studio/types.ts index 6ccb993d..625542b8 100644 --- a/src/studio/types.ts +++ b/src/studio/types.ts @@ -1768,7 +1768,12 @@ export type StudioOutputProvenance = { }; }; +export type LegacyStudioOutputField = + 'mode' | 'modelType' | 'seed' | 'width' | 'height' | 'steps' | 'guidanceScale' | 'numFrames' | 'fps'; + export type StudioOutput = { + /** Presence in receipt-free historical metadata; never backend execution evidence. */ + legacyRecordedFields?: LegacyStudioOutputField[]; resolvedExecutionInputs?: import('./resolvedExecutionInputs').ResolvedExecutionInputs; id: string; clientRunId?: string; diff --git a/tests/e2e/studio-mocked/studio-mocked.spec.ts b/tests/e2e/studio-mocked/studio-mocked.spec.ts index 0c258697..efc83f7d 100644 --- a/tests/e2e/studio-mocked/studio-mocked.spec.ts +++ b/tests/e2e/studio-mocked/studio-mocked.spec.ts @@ -3273,7 +3273,7 @@ const mockRegistry = { }), 'modules.Video.ExportAsset': nodeDef('modules.Video', 'ExportAsset', 'Video', { video: { type: 'video', display: 'input' }, - fps: { type: 'float', display: 'input' }, + fps: { type: 'float', default: 16 }, quality: { type: 'int', value: 10 }, pin: { type: 'bool', value: true }, asset: { type: 'video_asset', display: 'output' }, @@ -12982,6 +12982,21 @@ test('controlled workflow transactions are idempotent across supported reverse c window.__MODIFF_E2E__!.applyControlledWorkflowBlockForTest('quality_video_sequence', 'wan_21_t2v_13b_seed_vault'), ); await assertContracts(['quality-video.t2v.v1', 'upscale.quality-loop.v1']); + const fpsConnection = await page.evaluate(() => { + const { nodes, edges } = window.__MODIFF_E2E__!.getState().flow; + const retain = nodes.find((node) => node.studioRole === 'qualityVideoRetain'); + const generate = nodes.find((node) => node.studioRole === 'qualityVideoGenerate'); + return { + connected: edges.some( + (edge) => + edge.source === generate?.id && + edge.sourceHandle === 'fps_out' && + edge.target === retain?.id && + edge.targetHandle === 'fps', + ), + }; + }); + expect(fpsConnection).toEqual({ connected: true }); }); test('Studio sticky prompt seals the measured header gap while the right panel scrolls', async ({ page }) => { @@ -30617,6 +30632,9 @@ for (const displayType of ['text', 'json'] as const) { }; await expect(card.getByTestId('gallery-output-text')).toHaveText(content); await expect(card).toContainText(`| ${label} |`); + await expect(card).toContainText('Task not captured'); + await expect(card).toContainText('Seed not captured'); + await expect(card).not.toContainText('Text to image'); await expect(card.locator('img')).toHaveCount(0); await expect(card.getByRole('button', { name: 'Download PNG package', exact: true })).toHaveCount(0); await expect(card.getByTestId('gallery-compare-0')).toHaveCount(0); @@ -30646,6 +30664,7 @@ for (const displayType of ['text', 'json'] as const) { await card.getByRole('button', { name: `Download ${displayType}`, exact: true }).click(); const download = await downloadPromise; expect(download.suggestedFilename()).toMatch(new RegExp(`\\.${extension}$`)); + expect(download.suggestedFilename()).toMatch(/^modiff-uncaptured-model-/); expect(await fs.readFile((await download.path())!, 'utf8')).toBe(rawContent); if (displayType === 'text') { const bytes = await fs.readFile((await download.path())!); From 541399547851487fb52501bc9346b12daf89e339 Mon Sep 17 00:00:00 2001 From: Sourav Das Date: Sat, 10 Oct 2026 05:51:08 +0530 Subject: [PATCH 030/440] Preserve operator attention policy in quality sequence authoring Use automatic attention by default instead of assuming every CUDA Torch build contains flash SDPA. Retain explicit expert selections and original offload settings. Original browser RED, related GREEN and complete client check/browser gates pass. Verify the existing client contract displays batch upscale frame counts. Pair CI with backend 5a07b40835168d11795bb18d53057acf2737ed18. --- .github/workflows/ci.yml | 2 +- docs/windows-support.md | 6 ++++++ scripts/run-activity.test.mjs | 17 +++++++++++++++ src/studio/controlledWorkflows.ts | 8 ++++--- tests/e2e/studio-mocked/studio-mocked.spec.ts | 21 ++++++++++++++++++- 5 files changed, 49 insertions(+), 5 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index e0b7a986..e1873202 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -33,7 +33,7 @@ jobs: with: repository: sdevil7th/MoDiff # Paired AMD/Linux and preserved Windows runtime, workflow and Block contracts. - ref: 57c5583984d12386591f464adf9a5539945bfe56 + ref: 5a07b40835168d11795bb18d53057acf2737ed18 path: MoDiff persist-credentials: false - name: Verify the pinned backend supports native setup diff --git a/docs/windows-support.md b/docs/windows-support.md index 55aded61..a18817d3 100644 --- a/docs/windows-support.md +++ b/docs/windows-support.md @@ -273,6 +273,12 @@ registry remains authoritative for the field's type and other execution schema. The controlled graph proof permits this FPS socket change only on its declared retention node and still checks the complete reviewed route. +Quality sequence authoring uses automatic attention unless an operator supplies +an explicit expert attention backend. A CUDA device name does not establish that +the installed Torch build provides native flash SDPA. Explicit unsupported +backends still fail before model loading; ordinary authoring must not insert one +based only on the device name. + Sequence and quality-loop transformations disable their replaced single-shot nodes. Their submission carries the actual ordinary graph and controlled route identities without claiming that the removed nodes match the base single-shot diff --git a/scripts/run-activity.test.mjs b/scripts/run-activity.test.mjs index 906b1612..cc7a0483 100644 --- a/scripts/run-activity.test.mjs +++ b/scripts/run-activity.test.mjs @@ -37,6 +37,23 @@ test('Queue terminal details supersede stale progress while retaining failure di assert.match(activityModule.runActivityDetailForTask({ ...stale, status: 'running' }), /Running|2/u); }); +test('Queue accepts batch upscale frame progress through the existing phase contract', () => { + const detail = activityModule.runActivityDetailForTask({ + status: 'running', + phase: 'upscaling', + message: 'Upscaling frame 1/405', + current_step: 1, + total_steps: 405, + elapsed_seconds: 0.4, + average_step_seconds: 0.4, + eta_seconds: 161.6, + }); + assert.match(detail, /Upscaling frame 1\/405/u); + assert.match(detail, /Phase: upscaling/u); + assert.match(detail, /Step 1\/405/u); + assert.match(detail, /ETA/u); +}); + before(async () => { const storage = new Map(); globalThis.localStorage = { diff --git a/src/studio/controlledWorkflows.ts b/src/studio/controlledWorkflows.ts index 4292de20..eed822f7 100644 --- a/src/studio/controlledWorkflows.ts +++ b/src/studio/controlledWorkflows.ts @@ -686,12 +686,14 @@ export async function addQualityVideoSequenceWorkflowBlock( setParamIfPresent(recipe, ['device_map'], 'none'); setParamIfPresent(recipe, ['offload_mode'], sequenceOffloadMode); setParamIfPresent(recipe, ['device'], executionDevice); - const supportsNativeFlash = executionDevice.startsWith('cuda'); - setParamIfPresent(recipe, ['attention_backend'], supportsNativeFlash ? '_native_flash' : 'auto'); + // A CUDA device does not prove that this Torch build contains flash SDPA. + // Preserve an explicit expert choice; ordinary authoring uses native auto. + const attentionBackend = executionForm.attentionBackend ?? 'auto'; + setParamIfPresent(recipe, ['attention_backend'], attentionBackend); setParamIfPresent( recipe, ['attention_components'], - supportsNativeFlash ? (mode === 'text_to_video' ? 'transformer' : 'transformer,transformer_2') : '', + attentionBackend !== 'auto' ? (mode === 'text_to_video' ? 'transformer' : 'transformer,transformer_2') : '', ); setParamIfPresent(recipe, ['vae_slicing'], true); // Video VAE decode can require substantially more memory than denoising. diff --git a/tests/e2e/studio-mocked/studio-mocked.spec.ts b/tests/e2e/studio-mocked/studio-mocked.spec.ts index efc83f7d..2a6a91f1 100644 --- a/tests/e2e/studio-mocked/studio-mocked.spec.ts +++ b/tests/e2e/studio-mocked/studio-mocked.spec.ts @@ -12767,13 +12767,18 @@ test('controlled workflow families seal and restore exact schema-v3 graph proofs await page.evaluate(() => window.__MODIFF_E2E__!.setWebsocketConnection({ sid: 'mock-sid', isConnected: true })); const cases = [ + ['wan_21_t2v_13b_seed_vault', ['quality-video.t2v.v1', 'upscale.quality-loop.v1'], {}], + [ + 'wan_21_t2v_13b_seed_vault', + ['quality-video.t2v.v1', 'upscale.quality-loop.v1'], + { attentionBackend: '_native_math' }, + ], ['fast_lora', ['lora.diffusers-image.v1'], { resourceMode: 'expert' }], ['flux_lora_cinematic_octane_3d', ['lora.diffusers-image.v1'], {}], ['ace_step_custom_lora', ['lora.diffusers-audio.v1'], {}], ['qwen_upscale_finish', ['upscale.image.v1'], {}], ['ltx_video_animated_story', ['upscale.video.v1', 'video-sequence.v1'], {}], ['ltx_video_long_showcase', ['quality-video.i2v.v1', 'upscale.quality-loop.v1'], {}], - ['wan_21_t2v_13b_seed_vault', ['quality-video.t2v.v1', 'upscale.quality-loop.v1'], {}], ['wan_22_ti2v_5b_seed_vault', ['soundtrack.v1'], {}], ['ace_step_lyric_music_video', ['lyric-video.v1'], {}], ] as const; @@ -12811,6 +12816,10 @@ test('controlled workflow families seal and restore exact schema-v3 graph proofs edge.targetHandle === 'fps', ) : true, + qualityAttentionBackend: + current.flow.nodes.find((node) => node.studioRole === 'qualityVideoRecipe')?.params.attention_backend + ?.value ?? null, + operatorAttentionBackend: current.studio.form.attentionBackend ?? 'auto', }; }); expect(state).toEqual({ @@ -12821,8 +12830,18 @@ test('controlled workflow families seal and restore exact schema-v3 graph proofs graphHash: expect.stringMatching(/^graph-v1-/), divergence: null, qualityFps: true, + qualityAttentionBackend: expectedContracts.some((contract) => contract.startsWith('quality-video.')) + ? state.operatorAttentionBackend + : null, + operatorAttentionBackend: expect.any(String), }); + if (templateId === 'wan_21_t2v_13b_seed_vault') { + expect(state.qualityAttentionBackend).toBe( + (formOverrides as { attentionBackend?: string }).attentionBackend ?? 'auto', + ); + } + if (templateId === 'qwen_upscale_finish') { const model = await page.evaluate( () => From 2b75757066c726118df7582aa43a1f71a1b523a4 Mon Sep 17 00:00:00 2001 From: Sourav Das Date: Sat, 10 Oct 2026 22:43:45 +0530 Subject: [PATCH 031/440] Recover ordinary image imports and collapsed cache ownership Preserve exact legacy ordinary-image graph authority, validate bounded backend image-task receipts, and map reconnect cache events to current collapsed owners. Normalize runtime device before asynchronous generator authoring. Add original-defect and boundary regressions and a measured 384-byte startup allowance for 287 bytes of shared correctness code; dependencies and deferred caps stay unchanged. Pair CI with backend 9c1b4247bc5ab5243aeb5b86c510e8e18bf56ba1. The CI pin is the sole change after the full client gate and receives a separate post-pin verification. --- .github/workflows/ci.yml | 2 +- docs/modiff-client-architecture.md | 10 +++- scripts/bundle-budget.mjs | 8 ++- scripts/flow-graph-mutations.test.mjs | 43 +++++++++++++++ scripts/graph-visuals.test.mjs | 2 +- scripts/modiff-template.test.mjs | 61 +++++++++++++++++++++ scripts/resolved-execution-inputs.test.mjs | 64 ++++++++++++++++++++++ src/stores/flowNodeMutations.ts | 6 +- src/stores/useStudioStore.ts | 64 +++++++++++++++------- src/studio/resolvedExecutionInputs.ts | 39 +++++++++++-- src/utils/e2eHooks.ts | 3 +- 11 files changed, 267 insertions(+), 35 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index e1873202..bc6ded94 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -33,7 +33,7 @@ jobs: with: repository: sdevil7th/MoDiff # Paired AMD/Linux and preserved Windows runtime, workflow and Block contracts. - ref: 5a07b40835168d11795bb18d53057acf2737ed18 + ref: 9c1b4247bc5ab5243aeb5b86c510e8e18bf56ba1 path: MoDiff persist-credentials: false - name: Verify the pinned backend supports native setup diff --git a/docs/modiff-client-architecture.md b/docs/modiff-client-architecture.md index 7db593b8..b27686fa 100644 --- a/docs/modiff-client-architecture.md +++ b/docs/modiff-client-architecture.md @@ -1524,14 +1524,20 @@ without changing graph values or execution ownership. ### Recognized graph tasks in output history `resolvedExecutionInputs` can carry backend `graphTasks` alongside captured call -arguments. The client validates each owner against the receipt's captured Modular -loader and model identity. A unique supported task updates the output label while +arguments. The client validates each owner against its captured execution class: +Modular loaders, whole image pipelines, Transformers depth/caption loaders and +built-in image processors retain their existing node contracts. A unique supported task updates the output label while leaving its saved form untouched. Gallery labels a receipt with absent, null or conflicting task recognition as **Task not uniquely captured**, rather than using the saved form's task. Only outputs without a consumed-input receipt retain their historical task label. This metadata grants no execution or resource authority and adds no frontend model-family dispatch. +Legacy whole-image imports with presentation roles and no explicit managed receipt +retain ordinary graph authority. Import preserves their executable values and +wires instead of synthesizing a managed execution specification. Explicit or +invalid managed receipts continue through their existing validation. + History model labels and Gallery filters also use the validated captured model identity. Registered identities reuse existing display labels; custom pipeline identities remain distinct, and missing or ambiguous evidence is explicitly diff --git a/scripts/bundle-budget.mjs b/scripts/bundle-budget.mjs index e7e236e7..5ecc645b 100644 --- a/scripts/bundle-budget.mjs +++ b/scripts/bundle-budget.mjs @@ -58,7 +58,11 @@ const SOURCE_LICENSES = new URL('../public/THIRD_PARTY_LICENSES.txt', import.met // Recorded legacy-field presence and exact controlled-route schema checks measure // startup/chunk 644791/466487 bytes (+348/+351). Bound these shared corrections // with 384 bytes; no dependencies, eager authoring imports or deferred caps change. -const MAX_STARTUP_CHUNK_GZIP_BYTES = 450 * 1024 + 768 + 1280 + 256 + 576 + 320 + 512 + 1536 + 32 + 128 + 384; +// Exact image task receipts, legacy ordinary-image recovery and collapsed cache +// ownership add 287 shared gzip bytes (startup/chunk 645078/466774 measured). +// Allow 384 more bytes; authoring stays deferred, with no dependency changes +// or increase to either deferred limit. +const MAX_STARTUP_CHUNK_GZIP_BYTES = 450 * 1024 + 768 + 1280 + 256 + 576 + 320 + 512 + 1536 + 32 + 128 + 384 + 384; // Shared icons initialize in graph-vendor, avoiding an entry/lazy-panel cycle // that captured undefined tab icons and crashed cold production startup. The // Earlier startup measured 589.1 KiB. Shared Block crossing, explicit movement, @@ -131,7 +135,7 @@ const MAX_STARTUP_CHUNK_GZIP_BYTES = 450 * 1024 + 768 + 1280 + 256 + 576 + 320 + // The same recipe metadata measures 643554 total startup bytes (+1378). // Allocate 1536 bytes for this feature, preserving the existing four assets. // Preserve both reviewed allowances: 642304 + 512 + 1536 = 644352 bytes. -const MAX_STARTUP_GZIP_BYTES = 624 * 1024 + 768 + 1280 + 384 + 576 + 320 + 512 + 1536 + 32 + 128 + 384; +const MAX_STARTUP_GZIP_BYTES = 624 * 1024 + 768 + 1280 + 384 + 576 + 320 + 512 + 1536 + 32 + 128 + 384 + 384; // Deferred surfaces are measured separately so code splitting cannot hide an // unbounded feature bundle. These ceilings leave room for the reviewed dialogs // and catalog tools while preventing either one oversized deferred chunk or diff --git a/scripts/flow-graph-mutations.test.mjs b/scripts/flow-graph-mutations.test.mjs index 6732fe88..dabf9c2c 100644 --- a/scripts/flow-graph-mutations.test.mjs +++ b/scripts/flow-graph-mutations.test.mjs @@ -102,6 +102,49 @@ function cacheRequests() { return requests.filter((request) => request.url.endsWith('/cache') && request.init.method === 'DELETE'); } +for (const method of ['updateCacheStatus', 'resetStatus']) { + test(`${method} maps a cached hidden V2 leaf to its exact collapsed owner on reconnect`, () => { + const fixture = blockV2DeletionFixture('cache-owner-exact'); + const root = fixture.nodes.find((item) => item.id === fixture.rootId); + const collapsed = { + ...root, + data: { + ...root.data, + isCached: false, + blockInstanceV2: blockRuntimeModule.setBlockPresentationV2(root.data.blockInstanceV2, { expanded: false }), + }, + }; + flowStoreModule.useFlowStore.setState({ nodes: [collapsed], edges: [], lastExecutionTime: 12 }); + flowStoreModule.useFlowStore.getState()[method]([fixture.generateId]); + assert.equal(flowStoreModule.useFlowStore.getState().nodes[0].data.isCached, true); + const cachedRoot = flowStoreModule.useFlowStore.getState().nodes[0]; + flowStoreModule.useFlowStore.getState()[method]([fixture.generateId]); + assert.equal(flowStoreModule.useFlowStore.getState().nodes[0], cachedRoot, 'same snapshot preserves node identity'); + flowStoreModule.useFlowStore + .getState() + [method]([ + blockRuntimeModule.blockProjectionNodeIdV2(`${fixture.rootId}-foreign`, 'generate'), + blockRuntimeModule.blockProjectionNodeIdV2(fixture.rootId, 'removed-stage'), + blockRuntimeModule.blockProjectionNodeIdV2(fixture.rootId, 'unknown-inner::generate'), + ]); + assert.equal( + flowStoreModule.useFlowStore.getState().nodes[0].data.isCached, + false, + 'prefix resemblance grants no cache state', + ); + }); + + test(`${method} keeps expanded cached leaves separate from their root`, () => { + const fixture = blockV2DeletionFixture('expanded-cache-owner'); + flowStoreModule.useFlowStore.setState({ nodes: fixture.nodes, edges: fixture.edges }); + flowStoreModule.useFlowStore.getState()[method]([fixture.generateId]); + const nodes = flowStoreModule.useFlowStore.getState().nodes; + assert.equal(Boolean(nodes.find((item) => item.id === fixture.rootId).data.isCached), false); + assert.equal(nodes.find((item) => item.id === fixture.generateId).data.isCached, true); + assert.equal(Boolean(nodes.find((item) => item.id === fixture.utilityId).data.isCached), false); + }); +} + test('connection mutations enforce signal-driven component compatibility', () => { const schedulerOutput = (modelType) => ({ scheduler: { diff --git a/scripts/graph-visuals.test.mjs b/scripts/graph-visuals.test.mjs index c84d9317..fedba467 100644 --- a/scripts/graph-visuals.test.mjs +++ b/scripts/graph-visuals.test.mjs @@ -2190,7 +2190,7 @@ test('backend execution specs materialize exact image, video, and audio recipes ['diffusersRecipe', 'vae_slicing', 'false'], ['diffusersRecipe', 'vae_tiling', 'false'], ['diffusersRecipe', 'regional_compile', 'false'], - ['diffusersRecipe', 'denoiser_cache', 'false'], + ['diffusersRecipe', 'denoiser_cache', 'denoiserCache'], ['diffusersRecipe', 'layerwise_casting', 'false'], ['diffusersRecipe', 'channels_last', 'false'], ['diffusersThreeDPipeline', 'model_id', 'artifact'], diff --git a/scripts/modiff-template.test.mjs b/scripts/modiff-template.test.mjs index b06182da..90625726 100644 --- a/scripts/modiff-template.test.mjs +++ b/scripts/modiff-template.test.mjs @@ -2576,6 +2576,67 @@ test('existing saved canonical imports are adopted during workflow-tab normaliza } }); +test('legacy whole image imports keep ordinary graph authority without inventing a managed receipt', async () => { + const graph = JSON.parse( + await readFile( + path.resolve(ROOT, '../MoDiff/data/graphs/studio/marigold-depth-pipeline/depth-estimation.json'), + 'utf8', + ), + ); + const previous = studioStoreModule.useStudioStore.getState().workflowTabs; + try { + studioStoreModule.useStudioStore.getState().mergeBackendWorkflow({ + id: 'legacy-whole-image-import', + title: 'Depth', + createdAt: 1, + updatedAt: 1, + dirty: false, + source: 'import', + backendRevision: 1, + snapshot: { + nodes: graph.nodes, + edges: graph.edges, + studioForm: profilesModule.DEFAULT_STUDIO_FORM, + studioGraphBinding: null, + selectedMode: 'text_to_image', + activeTemplateId: null, + sourceOutputId: null, + }, + }); + const snapshot = studioStoreModule.useStudioStore + .getState() + .workflowTabs.find((t) => t.id === 'legacy-whole-image-import').snapshot; + assert.equal(snapshot.studioGraphBinding, null); + assert.equal(snapshot.studioForm.mode, 'depth_estimation'); + assert.equal(snapshot.studioForm.modelType, 'MarigoldDepthPipeline'); + assert.deepEqual(snapshot.edges, graph.edges); + for (const node of graph.nodes) { + assert.deepEqual(snapshot.nodes.find((n) => n.id === node.id).data.params, node.data.params); + } + const binding = workflowInferenceModule.adoptManagedWorkflowGraph( + graph.nodes, + graph.edges, + snapshot.studioForm, + ).binding; + studioStoreModule.useStudioStore.getState().mergeBackendWorkflow({ + id: 'explicit-image-receipt', + title: 'Explicit', + createdAt: 1, + updatedAt: 1, + dirty: false, + source: 'import', + backendRevision: 1, + snapshot: { ...snapshot, studioGraphBinding: { ...binding, finalizationProofInvalid: true } }, + }); + const explicit = studioStoreModule.useStudioStore + .getState() + .workflowTabs.find((t) => t.id === 'explicit-image-receipt'); + assert.equal(explicit.snapshot.studioGraphBinding.finalizationProofInvalid, true); + } finally { + studioStoreModule.useStudioStore.setState({ workflowTabs: previous }); + } +}); + test('persisted inferred bindings self-repair stale model metadata from canonical nodes', () => { const graph = canonicalModularTextToImageGraph(); const modelNode = graph.nodes.find((node) => node.id === 'models'); diff --git a/scripts/resolved-execution-inputs.test.mjs b/scripts/resolved-execution-inputs.test.mjs index 96cf532d..920ca317 100644 --- a/scripts/resolved-execution-inputs.test.mjs +++ b/scripts/resolved-execution-inputs.test.mjs @@ -609,6 +609,70 @@ function taskHistoryOutput(graphTasks) { }); } +test('ordinary image task receipts survive history reload with strict owner identity', () => { + for (const [module, action, pipeline, task] of [ + ['DiffusersImage', 'LoadPipeline', 'ZImageInpaintPipeline', 'outpaint'], + ['HuggingFaceTransformers', 'LoadDepthEstimationModel', 'AutoModelForDepthEstimation', 'depth_estimation'], + ['HuggingFaceTransformers', 'LoadImageTextToTextModel', 'AutoModelForImageTextToText', 'image_to_text'], + ['ImageOperations', 'ProcessImage', 'BuiltinImageOperationV1', 'image_crop'], + ]) { + const evidence = receipt(); + evidence.nodes = [ + { + nodeId: 'owner', + module: 'modules.' + module, + action, + fields: { pipeline_class: { value: pipeline, source: 'literal' } }, + omittedFields: {}, + }, + ]; + evidence.summary = { modelType: pipeline }; + evidence.ambiguousFields = []; + evidence.unavailableFields = []; + evidence.graphTasks = [{ loaderId: 'owner', pipelineClass: pipeline, task }]; + const identity = { taskId: 'actual-task', attemptIndex: 2, nodeId: 'preview' }; + assert.deepEqual(inputs.coerceResolvedExecutionInputs(evidence, identity), evidence); + let output = contracts.coerceStudioOutput({ + id: 'ordinary-image', + url: '/image.webp', + ...identity, + mode: 'text_to_image', + formSnapshot: { mode: 'text_to_image' }, + resolvedExecutionInputs: evidence, + }); + for (let reload = 0; reload < 2; reload++) { + assert.equal(output.mode, task); + assert.equal(output.formSnapshot.mode, 'text_to_image'); + output = contracts.coerceStudioOutput(JSON.parse(JSON.stringify(output))); + } + for (const mutate of [ + (e) => { + e.nodes[0].module = 'custom.Foreign'; + }, + (e) => { + e.graphTasks[0].pipelineClass = 'WrongClass'; + }, + (e) => { + e.nodes[0].fields = {}; + e.summary = {}; + }, + (e) => { + e.graphTasks.push(e.graphTasks[0]); + }, + (e) => { + e.truncated = true; + }, + (e) => { + e.uncapturedNodeIds = ['missing']; + }, + ]) { + const malformed = structuredClone(evidence); + mutate(malformed); + assert.equal(inputs.coerceResolvedExecutionInputs(malformed, identity), undefined); + } + } +}); + const taskOwner = { loaderId: 'loader', pipelineClass: 'QwenImageEditPlusModularPipeline' }; test('ambiguous consumed task stays explicitly uncaptured across history reload without borrowing the form', () => { diff --git a/src/stores/flowNodeMutations.ts b/src/stores/flowNodeMutations.ts index e590be5b..36fa2735 100644 --- a/src/stores/flowNodeMutations.ts +++ b/src/stores/flowNodeMutations.ts @@ -17,7 +17,7 @@ import { } from '../studio/blockRuntimeV2'; import { nodeConnectorParam } from '../studio/nodeConnectorResolution'; import { decorateConnectionEdges } from '../theme/connectionTypes'; -import { collapsedUserBlockFieldTarget } from '../studio/userBlocks'; +import { collapsedUserBlockFieldTarget, runtimeProgressTarget } from '../studio/userBlocks'; import { operationAuthoring } from '../workflow/operationAuthoringHint'; import { workflowTaskCategory } from '../workflow/workflowTaskBrowser'; @@ -676,7 +676,7 @@ export function setFlowNodeCached( export function updateFlowCacheStatus(ids: string | string[], set: FlowStoreSet) { const cached = toArray(ids); set((state) => { - const cachedSet = new Set(cached); + const cachedSet = new Set(cached.map((id) => runtimeProgressTarget(state.nodes, id))); if (state.nodes.every((node) => Boolean(node.data.isCached) === cachedSet.has(node.id))) { return state; } @@ -762,8 +762,8 @@ export function updateFlowNodeProgress( export function resetFlowStatus(cachedIds: string | string[], set: FlowStoreSet, get: FlowStoreGet) { void get; - const cachedSet = new Set(toArray(cachedIds)); set((state) => { + const cachedSet = new Set(toArray(cachedIds).map((id) => runtimeProgressTarget(state.nodes, id))); let changed = state.lastExecutionTime !== 0; const nodes = state.nodes.map((node) => { const isCached = cachedSet.has(node.id); diff --git a/src/stores/useStudioStore.ts b/src/stores/useStudioStore.ts index 4d1eefb4..f9a540da 100644 --- a/src/stores/useStudioStore.ts +++ b/src/stores/useStudioStore.ts @@ -456,7 +456,15 @@ function reconcileSnapshotGraphBinding( } function isInferredRecoveryBinding(binding: StudioGraphBinding | null) { - return Boolean(binding && binding.createdAt === 0 && binding.updatedAt === 0); + return Boolean( + binding && + binding.createdAt === 0 && + binding.updatedAt === 0 && + !binding.executionSpec && + !binding.controlled && + !binding.finalizationProof && + !binding.finalizationProofInvalid, + ); } export function normalizeManagedSnapshotExecutionPlan( @@ -591,28 +599,46 @@ function normalizeWorkflowSnapshot( // like one managed task graph. !nodes.some((node) => Boolean(node.data.blockInstanceV2 || node.data.operationAuthoring)) && (!persistedGraphBinding || isInferredRecoveryBinding(persistedGraphBinding)); + // Old whole-image exports carry presentation roles, but no execution-spec + // receipt. Keep those exact ordinary nodes as the workflow authority rather + // than inventing a managed binding which the current contract must reject. + const ordinaryImageImport = + shouldRecoverManagedIdentity && + nodes.some( + (node) => + (node.data.module === 'modules.DiffusersImage' && node.data.action === 'LoadPipeline') || + (node.data.module === 'modules.HuggingFaceTransformers' && + ['LoadDepthEstimationModel', 'LoadImageTextToTextModel'].includes(node.data.action)) || + (node.data.module === 'modules.ImageOperations' && node.data.action === 'ProcessImage') || + (node.data.module === 'modules.Spandrel' && node.data.action === 'Upscaler'), + ); const inferredManagedForm = shouldRecoverManagedIdentity ? resolveStudioResourceForm(inferStudioFormFromWorkflow(nodes, persistedStudioForm)) : persistedStudioForm; - const adoptedGraph = shouldRecoverManagedIdentity - ? adoptManagedWorkflowGraph(nodes, edges as import('@xyflow/react').Edge[], inferredManagedForm) - : null; - const studioForm = adoptedGraph ? inferredManagedForm : persistedStudioForm; + const adoptedGraph = + shouldRecoverManagedIdentity && !ordinaryImageImport + ? adoptManagedWorkflowGraph(nodes, edges as import('@xyflow/react').Edge[], inferredManagedForm) + : null; + const studioForm = adoptedGraph || ordinaryImageImport ? inferredManagedForm : persistedStudioForm; const normalizedNodes = adoptedGraph?.nodes ?? nodes; - const executionNormalizedNodes = normalizeManagedSnapshotExecutionPlan( - normalizedNodes, - studioForm, - persistedGraphBinding ?? adoptedGraph?.binding ?? null, - ); - const studioGraphBinding = reconcileSnapshotGraphBinding( - isInferredRecoveryBinding(persistedGraphBinding) - ? (adoptedGraph?.binding ?? null) - : (persistedGraphBinding ?? adoptedGraph?.binding ?? null), - executionNormalizedNodes, - edges, - studioForm, - Boolean(templateSourceId && activeTemplateId === templateSourceId && !persistedGraphBinding), - ); + const executionNormalizedNodes = ordinaryImageImport + ? nodes + : normalizeManagedSnapshotExecutionPlan( + normalizedNodes, + studioForm, + persistedGraphBinding ?? adoptedGraph?.binding ?? null, + ); + const studioGraphBinding = ordinaryImageImport + ? null + : reconcileSnapshotGraphBinding( + isInferredRecoveryBinding(persistedGraphBinding) + ? (adoptedGraph?.binding ?? null) + : (persistedGraphBinding ?? adoptedGraph?.binding ?? null), + executionNormalizedNodes, + edges, + studioForm, + Boolean(templateSourceId && activeTemplateId === templateSourceId && !persistedGraphBinding), + ); return { nodes: executionNormalizedNodes, edges, diff --git a/src/studio/resolvedExecutionInputs.ts b/src/studio/resolvedExecutionInputs.ts index 4fa83c2d..c8c7bed6 100644 --- a/src/studio/resolvedExecutionInputs.ts +++ b/src/studio/resolvedExecutionInputs.ts @@ -81,6 +81,26 @@ const inputNames: Record = { // Mirror the backend's scoped capture contract. Auxiliary revisions must never // overwrite the base model's identity; unknown fields still reject the receipt. const nodeInputNames: Record> = { + ...Object.fromEntries( + [ + 'Generate', + 'Edit', + 'Inpaint', + 'ControlGenerate', + 'ControlEdit', + 'ControlInpaint', + 'LayerDecompose', + 'UnconditionalGenerate', + 'PredictMap', + ].map((action) => [`DiffusersImage.${action}`, { ...inputNames, executed_task: 'executedTask' }]), + ), + ...Object.fromEntries( + ['PredictDepth', 'GenerateImageVideoText'].map((action) => [ + `HuggingFaceTransformers.${action}`, + { ...inputNames, executed_task: 'executedTask' }, + ]), + ), + 'ImageOperations.ProcessImage': { ...inputNames, executed_task: 'executedTask' }, 'ModularDiffusers.Guider': { ...inputNames, guider: 'guiderType', @@ -107,6 +127,13 @@ const nodeInputNames: Record> = { layer_scales: 'ipAdapterLayerScales', }, }; +const taskOwnerFields: Record = { + 'modules.ModularDiffusers.ModelsLoader': 'model_type', + 'modules.DiffusersImage.LoadPipeline': 'pipeline_class', + 'modules.HuggingFaceTransformers.LoadDepthEstimationModel': 'pipeline_class', + 'modules.HuggingFaceTransformers.LoadImageTextToTextModel': 'pipeline_class', + 'modules.ImageOperations.ProcessImage': 'pipeline_class', +}; const summaryNames = new Set([ ...Object.values(inputNames), ...Object.values(nodeInputNames).flatMap(Object.values), @@ -243,14 +270,14 @@ export function coerceResolvedExecutionInputs( owners.has(item.loaderId) ) return undefined; - const owner = value.nodes.find((node) => record(node) && node.nodeId === item.loaderId); + const owner: unknown = value.nodes.find((node) => record(node) && node.nodeId === item.loaderId); + const field = record(owner) ? taskOwnerFields[`${owner.module}.${owner.action}`] : undefined; if ( !record(owner) || - owner.module !== 'modules.ModularDiffusers' || - owner.action !== 'ModelsLoader' || + !field || !record(owner.fields) || - !record(owner.fields.model_type) || - owner.fields.model_type.value !== item.pipelineClass + !record(owner.fields[field]) || + owner.fields[field].value !== item.pipelineClass ) return undefined; owners.add(item.loaderId); @@ -259,7 +286,7 @@ export function coerceResolvedExecutionInputs( } if (graphTasks) { const loaders = value.nodes.filter( - (node) => record(node) && node.module === 'modules.ModularDiffusers' && node.action === 'ModelsLoader', + (node) => record(node) && hasOwn(taskOwnerFields, `${node.module}.${node.action}`), ); if (loaders.length !== graphTasks.length) return undefined; } diff --git a/src/utils/e2eHooks.ts b/src/utils/e2eHooks.ts index 28c8e8a2..c7c38a34 100644 --- a/src/utils/e2eHooks.ts +++ b/src/utils/e2eHooks.ts @@ -31,7 +31,7 @@ import { PLANNING_STUDIO_TEMPLATES, STUDIO_TEMPLATES } from '../studio/templates import { getFormDefaultsForMode } from '../studio/modelProfiles'; import type { StudioTaskTemplateSkeleton } from '../studio/taskTemplateContracts'; import { materializeTemplateDefaultInputs } from '../studio/templateInputs'; -import { createImageTemplateOperationWorkflow } from '../studio/templateWorkflow'; +import { createImageTemplateOperationWorkflow, normalizeTemplateRuntimeDevice } from '../studio/templateWorkflow'; import { ensureStudioAutoPlanReadyForRun } from '../studio/useStudioRunActions'; import type { UserBlockDefinition } from '../studio/types'; import { createUserBlockNode, normalizeUserBlockDefinition } from '../studio/userBlocks'; @@ -202,6 +202,7 @@ async function applyTaskTemplateSkeleton(templateId: string, formOverrides: Part }; useStudioStore.getState().updateForm(form); const context = captureWorkflowOperationContext(); + normalizeTemplateRuntimeDevice(context); await createOrUpdateStudioGraph(useStudioStore.getState().form, context, GALLERY_GRAPH_FINALIZATION_TIMEOUT_MS); const autoReady = await ensureStudioAutoPlanReadyForRun(context); if (!autoReady) { From 897952592ba6e32b1b3967107ab2282958bac619 Mon Sep 17 00:00:00 2001 From: Sourav Das Date: Sun, 11 Oct 2026 00:29:09 +0530 Subject: [PATCH 032/440] Preserve image starters, typed selections and transient cache ownership Classify the existing mask_composite task as Image and include its real backend fixture so native drafts connect separate image/mask loaders and Preview. Admit the closed emptyList spec constant, keep cleared component values fresh arrays, and update five recipe verifier assertions to require exact empty lists while preserving every other constraint. Retain exact transient server cache IDs through restored graphs; retire only acknowledged runtime leaves and map badges against current authority. Add original-defect, wiring, both cache arrival-order and non-persistence regressions and document behavior. Pair CI with backend ac6b3bb45d7889c10b4eb229df7ad25e4abee62f. Final post-pin client check and browser gate remain required before completion; no new modality feature. --- .github/workflows/ci.yml | 2 +- docs/modiff-client-architecture.md | 13 ++++ scripts/bundle-budget.mjs | 8 ++- scripts/flow-graph-mutations.test.mjs | 83 ++++++++++++++++++++++++ scripts/media-attachment.test.mjs | 56 ++++++++++++++++ scripts/operation-starter-fixtures.py | 2 +- scripts/task-template-contracts.test.mjs | 66 +++++++++++++++++++ scripts/workflow-library-verify.mjs | 10 +-- src/components/CustomNode.tsx | 6 +- src/components/SelectionToolbar.tsx | 6 +- src/stores/flowGraphMutations.ts | 12 +++- src/stores/flowNodeMutations.ts | 43 +++++++++--- src/stores/useFlowStore.ts | 7 +- src/stores/websocketMessageHandler.ts | 1 + src/studio/executionSpecValues.ts | 1 + src/studio/executionSpecs.ts | 2 +- src/workflow/workflowTaskBrowser.ts | 3 +- 17 files changed, 292 insertions(+), 29 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index bc6ded94..c1d08d75 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -33,7 +33,7 @@ jobs: with: repository: sdevil7th/MoDiff # Paired AMD/Linux and preserved Windows runtime, workflow and Block contracts. - ref: 9c1b4247bc5ab5243aeb5b86c510e8e18bf56ba1 + ref: ac6b3bb45d7889c10b4eb229df7ad25e4abee62f path: MoDiff persist-credentials: false - name: Verify the pinned backend supports native setup diff --git a/docs/modiff-client-architecture.md b/docs/modiff-client-architecture.md index b27686fa..0316946a 100644 --- a/docs/modiff-client-architecture.md +++ b/docs/modiff-client-architecture.md @@ -275,6 +275,19 @@ loaders for typed required media inputs before grouping. It reuses sources only for equal media roles, keeps masks separate from alpha-mask outputs, and reports missing/incompatible loader definitions. It does not touch existing documents, invent media for text-only routes, or infer a tensor from a path-only field. +The declared `mask_composite` task belongs to the Image category, so its fresh +draft includes separate ordinary image and mask loaders and a Preview. Its image +loader accepts the ordered background and foreground inputs; the mask loader +supplies the explicit mask pixels. Task categorization grants no runtime authority. +Execution-spec bindings distinguish empty text (`empty`) from an empty component +selection (`emptyList`). Multiple-choice component fields retain arrays in fresh +drafts and canonical exports, including when quantization is disabled. Backend +validation remains authoritative for every selected component. +Server-reported runtime cache IDs remain transient view metadata. A restored tab +reprojects them against its current exact owner graph, so reconnect cache state +survives durable snapshot restoration. Native execution records the actual leaf +ID; cache release retires the IDs acknowledged by the backend. These IDs are +never saved as workflow authority and do not establish resource fit or reuse. The media attachment source picker retains the exact node/port values and graph ordering. Friendly node/field labels add the nearest upstream declared model diff --git a/scripts/bundle-budget.mjs b/scripts/bundle-budget.mjs index 5ecc645b..7f8d0745 100644 --- a/scripts/bundle-budget.mjs +++ b/scripts/bundle-budget.mjs @@ -62,7 +62,11 @@ const SOURCE_LICENSES = new URL('../public/THIRD_PARTY_LICENSES.txt', import.met // ownership add 287 shared gzip bytes (startup/chunk 645078/466774 measured). // Allow 384 more bytes; authoring stays deferred, with no dependency changes // or increase to either deferred limit. -const MAX_STARTUP_CHUNK_GZIP_BYTES = 450 * 1024 + 768 + 1280 + 256 + 576 + 320 + 512 + 1536 + 32 + 128 + 384 + 384; +// Retaining the server cache view through restored graphs and retiring only +// acknowledged runtime leaves adds 738 startup gzip bytes (645816/467510). +// Bound this shared correctness path by 768 bytes; deferred caps stay fixed. +const MAX_STARTUP_CHUNK_GZIP_BYTES = + 450 * 1024 + 768 + 1280 + 256 + 576 + 320 + 512 + 1536 + 32 + 128 + 384 + 384 + 768; // Shared icons initialize in graph-vendor, avoiding an entry/lazy-panel cycle // that captured undefined tab icons and crashed cold production startup. The // Earlier startup measured 589.1 KiB. Shared Block crossing, explicit movement, @@ -135,7 +139,7 @@ const MAX_STARTUP_CHUNK_GZIP_BYTES = 450 * 1024 + 768 + 1280 + 256 + 576 + 320 + // The same recipe metadata measures 643554 total startup bytes (+1378). // Allocate 1536 bytes for this feature, preserving the existing four assets. // Preserve both reviewed allowances: 642304 + 512 + 1536 = 644352 bytes. -const MAX_STARTUP_GZIP_BYTES = 624 * 1024 + 768 + 1280 + 384 + 576 + 320 + 512 + 1536 + 32 + 128 + 384 + 384; +const MAX_STARTUP_GZIP_BYTES = 624 * 1024 + 768 + 1280 + 384 + 576 + 320 + 512 + 1536 + 32 + 128 + 384 + 384 + 768; // Deferred surfaces are measured separately so code splitting cannot hide an // unbounded feature bundle. These ceilings leave room for the reviewed dialogs // and catalog tools while preventing either one oversized deferred chunk or diff --git a/scripts/flow-graph-mutations.test.mjs b/scripts/flow-graph-mutations.test.mjs index dabf9c2c..85ad804c 100644 --- a/scripts/flow-graph-mutations.test.mjs +++ b/scripts/flow-graph-mutations.test.mjs @@ -64,6 +64,7 @@ beforeEach(() => { edges: [], viewport: { x: 0, y: 0, zoom: 1 }, lastExecutionTime: 0, + runtimeCachedNodeIds: null, historyPast: [], historyFuture: [], historyTransaction: null, @@ -103,6 +104,54 @@ function cacheRequests() { } for (const method of ['updateCacheStatus', 'resetStatus']) { + test(`${method} retains a real cache snapshot received before the durable graph is restored`, () => { + const fixture = blockV2DeletionFixture('restore-cache-owner'); + const root = fixture.nodes.find((item) => item.id === fixture.rootId); + const collapsed = { + ...root, + data: { + ...root.data, + isCached: false, + blockInstanceV2: blockRuntimeModule.setBlockPresentationV2(root.data.blockInstanceV2, { expanded: false }), + }, + }; + const restored = { nodes: [collapsed], edges: [], viewport: { x: 0, y: 0, zoom: 1 } }; + const received = [fixture.generateId]; + flowStoreModule.useFlowStore.getState()[method](received); + received.length = 0; + flowStoreModule.useFlowStore.getState().replaceGraph(structuredClone(restored)); + assert.equal(flowStoreModule.useFlowStore.getState().nodes[0].data.isCached, true); + flowStoreModule.useFlowStore.getState().replaceGraph(structuredClone(restored)); + assert.equal(flowStoreModule.useFlowStore.getState().nodes[0].data.isCached, true); + flowStoreModule.useFlowStore.getState()[method]([]); + flowStoreModule.useFlowStore.getState().replaceGraph(structuredClone(restored)); + assert.equal( + flowStoreModule.useFlowStore.getState().nodes[0].data.isCached, + false, + 'empty server snapshot retires prior cache state', + ); + flowStoreModule.useFlowStore.getState()[method]([fixture.generateId]); + flowStoreModule.useFlowStore.getState().replaceGraph(structuredClone(restored)); + flowStoreModule.useFlowStore.getState().setNodeCached(fixture.generateId, false); + flowStoreModule.useFlowStore.getState().replaceGraph(structuredClone(restored)); + assert.equal( + flowStoreModule.useFlowStore.getState().nodes[0].data.isCached, + false, + 'acknowledged leaf release must survive restoration', + ); + assert.equal( + flowStoreModule.useFlowStore.getState().toObject().runtimeCachedNodeIds, + undefined, + 'cache snapshot is never workflow authority', + ); + const persisted = JSON.parse(globalThis.localStorage.getItem('modiff.flow')); + assert.equal( + persisted.state.runtimeCachedNodeIds, + undefined, + 'server cache IDs are not written to persistent storage', + ); + }); + test(`${method} maps a cached hidden V2 leaf to its exact collapsed owner on reconnect`, () => { const fixture = blockV2DeletionFixture('cache-owner-exact'); const root = fixture.nodes.find((item) => item.id === fixture.rootId); @@ -145,6 +194,40 @@ for (const method of ['updateCacheStatus', 'resetStatus']) { }); } +test('executed cache records retain the exact runtime leaf when its owner is expanded or restored', () => { + const fixture = blockV2DeletionFixture('executed-cache-leaf'); + const root = fixture.nodes.find((item) => item.id === fixture.rootId); + const collapsed = { + ...root, + data: { + ...root.data, + isCached: false, + blockInstanceV2: blockRuntimeModule.setBlockPresentationV2(root.data.blockInstanceV2, { expanded: false }), + }, + }; + flowStoreModule.useFlowStore.setState({ nodes: [collapsed], edges: [] }); + flowStoreModule.useFlowStore.getState().setNodeCached(fixture.rootId, true, undefined, undefined, fixture.generateId); + const durable = flowStoreModule.useFlowStore.getState().toObject(); + assert.equal(durable.runtimeCachedNodeIds, undefined); + flowStoreModule.useFlowStore.getState().replaceGraph({ nodes: fixture.nodes, edges: fixture.edges }); + const restored = flowStoreModule.useFlowStore.getState().nodes; + assert.equal(restored.find((item) => item.id === fixture.generateId).data.isCached, true); + assert.equal(Boolean(restored.find((item) => item.id === fixture.rootId).data.isCached), false); + assert.equal(Boolean(restored.find((item) => item.id === fixture.utilityId).data.isCached), false); + flowStoreModule.useFlowStore.getState().setNodeCached(fixture.utilityId, true); + flowStoreModule.useFlowStore.getState().setNodeCached(fixture.generateId, false); + flowStoreModule.useFlowStore.getState().replaceGraph({ nodes: fixture.nodes, edges: fixture.edges }); + assert.equal( + Boolean(flowStoreModule.useFlowStore.getState().nodes.find((item) => item.id === fixture.generateId).data.isCached), + false, + ); + assert.equal( + flowStoreModule.useFlowStore.getState().nodes.find((item) => item.id === fixture.utilityId).data.isCached, + true, + 'exact release retains an unrelated cached node', + ); +}); + test('connection mutations enforce signal-driven component compatibility', () => { const schedulerOutput = (modelType) => ({ scheduler: { diff --git a/scripts/media-attachment.test.mjs b/scripts/media-attachment.test.mjs index 81bc35f8..5ac41464 100644 --- a/scripts/media-attachment.test.mjs +++ b/scripts/media-attachment.test.mjs @@ -691,6 +691,62 @@ test('removed dynamic Guidance controls stay hidden without resetting execution } }); +test('all built-in image task drafts connect their declared source and mask roles', async () => { + const { createWorkflowDraft } = await server.ssrLoadModule('/src/workflow/workflowDraft.ts'); + const { workflowTaskCategory, workflowTaskCards } = await server.ssrLoadModule( + '/src/workflow/workflowTaskBrowser.ts', + ); + const { unpackVisualOperationGroups } = await server.ssrLoadModule('/src/workflow/visualOperationGroups.ts'); + const tasks = [ + 'image_adjustment', + 'image_filter', + 'image_crop', + 'image_upscale', + 'image_stitch', + 'image_tile', + 'image_channels', + 'mask_composite', + ]; + const mediaRegistry = { + ...registry, + 'modules.Image.Preview': { + type: 'custom', + module: 'modules.Image', + action: 'Preview', + label: 'Preview', + category: 'Image', + params: { image: { type: 'image', display: 'input' } }, + }, + }; + for (const task of tasks) { + const starter = starters.find((s) => s.pipelineClass === 'BuiltinImageOperationV1' && s.task === task); + assert.ok(starter, `Missing real backend starter fixture: ${task}`); + assert.equal(workflowTaskCategory(task), 'Image', task); + assert.equal(workflowTaskCards([{ task }])[0].category, 'Image', task); + const before = structuredClone(starter); + const flat = unpackVisualOperationGroups(createWorkflowDraft(starter, mediaRegistry).graph).graph; + const process = flat.nodes.find((n) => n.data.action === 'ProcessImage'); + const roles = task === 'mask_composite' ? ['image', 'mask'] : ['image']; + const sources = roles.map((role) => { + const wire = flat.edges.find((e) => e.target === process.id && e.targetHandle === role); + assert.ok(wire, `${task}: missing ${role} input`); + assert.equal(wire.sourceHandle, 'image', 'Explicit masks use the loaded pixels, not inferred alpha'); + const source = flat.nodes.find((n) => n.id === wire.source); + assert.equal(source.data.module, 'modules.Image'); + assert.equal(source.data.action, 'Load'); + return source; + }); + assert.equal(new Set(sources.map((n) => n.id)).size, roles.length); + if (task === 'mask_composite') assert.equal(sources[1].data.label, 'Load Mask'); + const preview = flat.nodes.find((n) => n.data.action === 'Preview'); + assert.ok( + flat.edges.some((e) => e.source === process.id && e.sourceHandle === 'output' && e.target === preview.id), + ); + assert.equal(flat.nodes.length, roles.length + 2); + assert.deepEqual(starter, before, 'Creating a fresh draft must not rewrite the backend starter'); + } +}); + test('fresh image/audio workflows connect required media from separate loaders', async () => { const { createWorkflowDraft } = await server.ssrLoadModule('/src/workflow/workflowDraft.ts'); const { unpackVisualOperationGroups } = await server.ssrLoadModule('/src/workflow/visualOperationGroups.ts'); diff --git a/scripts/operation-starter-fixtures.py b/scripts/operation-starter-fixtures.py index c26c1147..3b8d5090 100644 --- a/scripts/operation-starter-fixtures.py +++ b/scripts/operation-starter-fixtures.py @@ -52,7 +52,7 @@ and operation_owns_model(c) and not ("video" in c["task"] or c["task"] == "flf2v" or "3d" in c["task"] or c["task"].startswith("character_")) - and re.search(r"image|inpaint|outpaint|controlnet|ip_adapter|depth|layer_decomposition|audio|speech|music", c["task"])}) + and re.search(r"image|inpaint|outpaint|controlnet|ip_adapter|depth|layer_decomposition|mask_composite|audio|speech|music", c["task"])}) elif "--all-models" in sys.argv: selections = sorted({(c["pipelineClass"], c["task"]) for c in contracts if c["task"] and operation_owns_model(c)}) diff --git a/scripts/task-template-contracts.test.mjs b/scripts/task-template-contracts.test.mjs index ad948ebd..ce64693d 100644 --- a/scripts/task-template-contracts.test.mjs +++ b/scripts/task-template-contracts.test.mjs @@ -33,6 +33,72 @@ after(async () => { await server?.close(); }); +test('empty multiple-choice bindings preserve an empty list while text bindings stay scalar', async () => { + const modelType = 'DDPMPipeline'; + const mode = 'unconditional_image'; + const profile = { + id: 'ddpm-cifar10:direct', + modes: [mode], + loader_module: 'modules.DiffusersImage', + loader_action: 'LoadPipeline', + execution_path: 'diffusers-pipeline', + pipeline_class: modelType, + default_repo: modelProfilesModule.DDPM_CIFAR10_REPO, + }; + const semantic = { + schemaVersion: 1, + canonicalizationVersion: 1, + id: 'ddpm-empty-component-fixture:v1', + modelType, + mode, + executionProfileId: profile.id, + loaderModule: profile.loader_module, + loaderAction: profile.loader_action, + executionPath: profile.execution_path, + pipelineClass: modelType, + defaultRepo: profile.default_repo, + roles: [ + ['diffusersImagePipeline', 'modules.DiffusersImage.LoadPipeline', 0, 0], + ['diffusersUnconditionalGenerate', 'modules.DiffusersImage.UnconditionalGenerate', 400, 0], + ['preview', 'modules.Image.Preview', 800, 0], + ], + edges: [ + ['diffusersImagePipeline', 'pipeline', 'diffusersUnconditionalGenerate', 'pipeline'], + ['diffusersUnconditionalGenerate', 'images', 'preview', 'image'], + ], + bindings: [['diffusersImagePipeline', 'quantized_components', 'emptyList']], + autoFields: [], + actions: [], + }; + const spec = { + ...semantic, + contentHash: `studio-spec-v1-${hashModule.hashString(hashModule.stableStringify(semantic))}`, + }; + assert.deepEqual(executionSpecsModule.parseStudioExecutionSpecs([spec], modelType, [mode], [profile]), [spec]); + globalThis.window ??= { location: { origin: 'http://127.0.0.1:5191' } }; + const valuesModule = await server.ssrLoadModule('/src/studio/executionSpecValues.ts'); + const form = { + ...modelProfilesModule.DEFAULT_STUDIO_FORM, + ...modelProfilesModule.getFormDefaultsForMode(mode, modelType), + }; + const before = structuredClone(form); + const first = valuesModule.resolveStudioExecutionSpecValues( + form, + spec, + modelProfilesModule.STUDIO_MODEL_PROFILES[modelType], + ); + assert.deepEqual(first.emptyList, []); + assert.equal(first.empty, ''); + first.emptyList.push('transformer'); + const second = valuesModule.resolveStudioExecutionSpecValues( + form, + spec, + modelProfilesModule.STUDIO_MODEL_PROFILES[modelType], + ); + assert.deepEqual(second.emptyList, [], 'Separate drafts must not share mutable component selections'); + assert.deepEqual(form, before); +}); + test('new outpaint forms fully repaint the extension without changing saved or inpaint settings', () => { for (const model of ['FluxFillPipeline', 'FluxKontextInpaintPipeline', 'Flux2KleinInpaintPipeline']) { const saved = { ...modelProfilesModule.getFormDefaultsForMode('outpaint', model), strength: 0.85 }; diff --git a/scripts/workflow-library-verify.mjs b/scripts/workflow-library-verify.mjs index 176f81aa..69ad6998 100644 --- a/scripts/workflow-library-verify.mjs +++ b/scripts/workflow-library-verify.mjs @@ -435,7 +435,7 @@ function verifyWorkflow(workflow, expectedTier, graphLayout) { base.value !== 'zai-org/CogVideoX-2b' || revision !== '1137dacfc2c9c012bed6a0793f4ecf2ca8e7ba01' || !workflow.requiredArtifacts.includes(base.value) || - quantizationParams.components?.value !== '' || + JSON.stringify(quantizationParams.components?.value) !== '[]' || recipeParams.attention_backend?.value !== '_native_math' || recipeParams.attention_components?.value !== '' || recipeParams.vae_slicing?.value !== true || @@ -457,7 +457,7 @@ function verifyWorkflow(workflow, expectedTier, graphLayout) { base.value !== 'rhymes-ai/Allegro' || revision !== 'c1b9207bb5cb79e2aa08f3d139c17d26c0de55b6' || !workflow.requiredArtifacts.includes(base.value) || - quantizationParams.components?.value !== '' || + JSON.stringify(quantizationParams.components?.value) !== '[]' || recipeParams.offload_mode?.value !== 'sequential_cpu' || recipeParams.attention_backend?.value !== '_native_math' || recipeParams.attention_components?.value !== '' || @@ -486,7 +486,7 @@ function verifyWorkflow(workflow, expectedTier, graphLayout) { base.value !== 'maxin-cn/Latte-1' || revision !== '0653024365272f061fc44d1078134df22842b687' || !workflow.requiredArtifacts.includes(base.value) || - quantizationParams.components?.value !== '' || + JSON.stringify(quantizationParams.components?.value) !== '[]' || recipeParams.offload_mode?.value !== 'sequential_cpu' || recipeParams.attention_backend?.value !== '_native_math' || recipeParams.attention_components?.value !== '' || @@ -515,7 +515,7 @@ function verifyWorkflow(workflow, expectedTier, graphLayout) { base.value !== 'genmo/mochi-1-preview' || revision !== '14be5fcea23095ed330cb214647916a451e38b6e' || !workflow.requiredArtifacts.includes(base.value) || - quantizationParams.components?.value !== '' || + JSON.stringify(quantizationParams.components?.value) !== '[]' || recipeParams.offload_mode?.value !== 'sequential_cpu' || recipeParams.attention_backend?.value !== '_native_math' || recipeParams.attention_components?.value !== '' || @@ -552,7 +552,7 @@ function verifyWorkflow(workflow, expectedTier, graphLayout) { base.value !== 'Efficient-Large-Model/SANA-Video_2B_480p_diffusers' || revision !== 'db5f398b13ca086d09a50ce156c20527773841b1' || !workflow.requiredArtifacts.includes(base.value) || - quantizationParams.components?.value !== '' || + JSON.stringify(quantizationParams.components?.value) !== '[]' || recipeParams.offload_mode?.value !== 'sequential_cpu' || recipeParams.attention_backend?.value !== '_native_math' || recipeParams.attention_components?.value !== '' || diff --git a/src/components/CustomNode.tsx b/src/components/CustomNode.tsx index d393e9f6..c3464ae5 100644 --- a/src/components/CustomNode.tsx +++ b/src/components/CustomNode.tsx @@ -213,7 +213,7 @@ const CustomNode = memo((node: NodeProps & { surface?: NodeSurfa const handleRecompute = useCallback(async () => { try { const result = await recomputeNodeOutputs([node.id]); - if (result.nodes.length) setNodeCached(node.id, false); + for (const released of result.nodes) setNodeCached(released, false); enqueueSnackbar( result.nodes.length ? 'Outputs will recompute on the next Run. Loaded models are retained.' @@ -227,8 +227,8 @@ const CustomNode = memo((node: NodeProps & { surface?: NodeSurfa const handleClearCache = useCallback(async () => { try { - await deleteNodeCache([node.id]); - setNodeCached(node.id, false); + const result = await deleteNodeCache([node.id]); + for (const released of result.nodes) setNodeCached(released, false); enqueueSnackbar('Node cache released', { variant: 'success', autoHideDuration: 1500 }); } catch (error) { console.error('Failed to delete cache', error); diff --git a/src/components/SelectionToolbar.tsx b/src/components/SelectionToolbar.tsx index be94ad59..4a398ceb 100644 --- a/src/components/SelectionToolbar.tsx +++ b/src/components/SelectionToolbar.tsx @@ -335,7 +335,7 @@ export function SelectionToolbar({ if (!singleActionNode) return; try { const result = await recomputeNodeOutputs([singleActionNode.id]); - if (result.nodes.length) setNodeCached(singleActionNode.id, false); + for (const released of result.nodes) setNodeCached(released, false); enqueueSnackbar( result.nodes.length ? 'Outputs will recompute on the next Run. Loaded models are retained.' @@ -350,8 +350,8 @@ export function SelectionToolbar({ const handleClearCache = useCallback(async () => { if (!singleActionNode) return; try { - await deleteNodeCache([singleActionNode.id]); - setNodeCached(singleActionNode.id, false); + const result = await deleteNodeCache([singleActionNode.id]); + for (const released of result.nodes) setNodeCached(released, false); enqueueSnackbar('Node cache released', { variant: 'success', autoHideDuration: 1500 }); } catch (error) { const message = error instanceof Error ? error.message : String(error); diff --git a/src/stores/flowGraphMutations.ts b/src/stores/flowGraphMutations.ts index 73aeb5b6..ca243fcb 100644 --- a/src/stores/flowGraphMutations.ts +++ b/src/stores/flowGraphMutations.ts @@ -11,6 +11,7 @@ import { } from '../studio/blockRuntimeV2'; import { enqueueSnackbar } from '../ui/snackbar'; import { operationAuthoring } from '../workflow/operationAuthoringHint'; +import { runtimeProgressTarget } from '../studio/userBlocks'; import { handleEdgesChange, reconcileGraphConnections } from './flowConnectionMutations'; import type { CustomNodeType, FlowStore } from './useFlowStore'; import { useNodesStore } from './useNodeStore'; @@ -329,7 +330,16 @@ export function replaceFlowGraph( ) { const previousNodes = get().nodes; const previousNodeIds = new Set(previousNodes.map((node) => node.id)); - const nodes = withLiveFieldContracts(replacement.nodes); + const restored = withLiveFieldContracts(replacement.nodes); + const cached = get().runtimeCachedNodeIds; + const cachedSet = new Set(cached?.map((id) => runtimeProgressTarget(restored, id))); + const nodes = + cached == null + ? restored + : restored.map((node) => { + const isCached = cachedSet.has(node.id); + return Boolean(node.data.isCached) === isCached ? node : { ...node, data: { ...node.data, isCached } }; + }); const nextNodeIds = new Set(nodes.map((node) => node.id)); const removedNodeIds = [...previousNodeIds].filter((nodeId) => !nextNodeIds.has(nodeId)); const edges = decorateConnectionEdges( diff --git a/src/stores/flowNodeMutations.ts b/src/stores/flowNodeMutations.ts index 36fa2735..031d1710 100644 --- a/src/stores/flowNodeMutations.ts +++ b/src/stores/flowNodeMutations.ts @@ -639,16 +639,33 @@ export function setFlowNodeCached( memoryUsage: NodeMemoryUsage | undefined, executionTime: Record | undefined, set: FlowStoreSet, + runtimeNodeId?: string, ) { set((state) => { - const node = state.nodes.find((item) => item.id === id); + const targetId = runtimeProgressTarget(state.nodes, id) ?? id; + const cachedId = runtimeNodeId ?? id; + const previous = state.runtimeCachedNodeIds ?? []; + const runtimeCachedNodeIds = isCached + ? previous.includes(cachedId) + ? previous + : [...previous, cachedId] + : previous.filter( + (cached) => + cached !== cachedId && + (id !== targetId || runtimeNodeId !== undefined || runtimeProgressTarget(state.nodes, cached) !== targetId), + ); + const cacheChanged = !deepEqual(state.runtimeCachedNodeIds, runtimeCachedNodeIds); + const node = state.nodes.find((item) => item.id === targetId); if (!node) { - return state; + return cacheChanged ? { runtimeCachedNodeIds } : state; } + const nextIsCached = + isCached || runtimeCachedNodeIds.some((cached) => runtimeProgressTarget(state.nodes, cached) === targetId); const nextMemoryUsage = !isCached ? undefined : memoryUsage || node.data.memoryUsage || {}; const nextExecutionTime = !isCached ? undefined : executionTime || node.data.executionTime || {}; if ( - node.data.isCached === isCached && + !cacheChanged && + node.data.isCached === nextIsCached && deepEqual(node.data.memoryUsage, nextMemoryUsage) && deepEqual(node.data.executionTime, nextExecutionTime) ) { @@ -656,13 +673,14 @@ export function setFlowNodeCached( } return { + runtimeCachedNodeIds, nodes: state.nodes.map((item) => - item.id === id + item.id === targetId ? { ...item, data: { ...item.data, - isCached, + isCached: nextIsCached, memoryUsage: nextMemoryUsage, executionTime: nextExecutionTime, }, @@ -674,13 +692,17 @@ export function setFlowNodeCached( } export function updateFlowCacheStatus(ids: string | string[], set: FlowStoreSet) { - const cached = toArray(ids); + const cached = [...new Set(toArray(ids))]; set((state) => { const cachedSet = new Set(cached.map((id) => runtimeProgressTarget(state.nodes, id))); - if (state.nodes.every((node) => Boolean(node.data.isCached) === cachedSet.has(node.id))) { + if ( + deepEqual(state.runtimeCachedNodeIds, cached) && + state.nodes.every((node) => Boolean(node.data.isCached) === cachedSet.has(node.id)) + ) { return state; } return { + runtimeCachedNodeIds: cached, nodes: state.nodes.map((node) => { const isCached = cachedSet.has(node.id); return Boolean(node.data.isCached) === isCached ? node : { ...node, data: { ...node.data, isCached } }; @@ -762,9 +784,10 @@ export function updateFlowNodeProgress( export function resetFlowStatus(cachedIds: string | string[], set: FlowStoreSet, get: FlowStoreGet) { void get; + const cached = [...new Set(toArray(cachedIds))]; set((state) => { - const cachedSet = new Set(toArray(cachedIds).map((id) => runtimeProgressTarget(state.nodes, id))); - let changed = state.lastExecutionTime !== 0; + const cachedSet = new Set(cached.map((id) => runtimeProgressTarget(state.nodes, id))); + let changed = state.lastExecutionTime !== 0 || !deepEqual(state.runtimeCachedNodeIds, cached); const nodes = state.nodes.map((node) => { const isCached = cachedSet.has(node.id); const hasExecutionState = Boolean( @@ -793,7 +816,7 @@ export function resetFlowStatus(cachedIds: string | string[], set: FlowStoreSet, }, }; }); - return changed ? { nodes, lastExecutionTime: 0 } : state; + return changed ? { nodes, lastExecutionTime: 0, runtimeCachedNodeIds: cached } : state; }); } diff --git a/src/stores/useFlowStore.ts b/src/stores/useFlowStore.ts index 78e17ec0..e1cbf58f 100644 --- a/src/stores/useFlowStore.ts +++ b/src/stores/useFlowStore.ts @@ -173,6 +173,8 @@ export type FlowStore = { edges: Edge[]; viewport: Viewport; lastExecutionTime: number; + // Server cache view metadata, never part of a persisted workflow snapshot. + runtimeCachedNodeIds: string[] | null; historyPast: FlowHistorySnapshot[]; historyFuture: FlowHistorySnapshot[]; historyTransaction: FlowHistoryTransaction | null; @@ -278,6 +280,7 @@ export type FlowStore = { cached: boolean, memoryUsage?: NodeMemoryUsage, executionTime?: Record, + runtimeNodeId?: string, ) => void; updateCacheStatus: (ids: string | string[]) => void; exportGraph: ( @@ -1576,6 +1579,7 @@ export const useFlowStore = create()( historyFuture: [], historyTransaction: null, layoutRevision: 0, + runtimeCachedNodeIds: null, onNodesChange: async (changes: NodeChange[]) => { const applyChanges = () => { @@ -2482,8 +2486,9 @@ export const useFlowStore = create()( isCached: boolean, memoryUsage?: NodeMemoryUsage, executionTime?: Record, + runtimeNodeId?: string, ) => { - setFlowNodeCached(id, isCached, memoryUsage, executionTime, set); + setFlowNodeCached(id, isCached, memoryUsage, executionTime, set, runtimeNodeId); }, updateCacheStatus: (ids: string | string[]) => { diff --git a/src/stores/websocketMessageHandler.ts b/src/stores/websocketMessageHandler.ts index cbda9359..80de3043 100644 --- a/src/stores/websocketMessageHandler.ts +++ b/src/stores/websocketMessageHandler.ts @@ -502,6 +502,7 @@ export function handleWebsocketMessage(message: WebsocketMessage, context: Webso true, message.hasChanged ? message.memoryUsage : undefined, message.hasChanged ? message.executionTime : undefined, + message.node, ); scheduleNodeProgressClear(targetNodeId, message.task_id, message.attempt_index); } diff --git a/src/studio/executionSpecValues.ts b/src/studio/executionSpecValues.ts index 4e828b89..9d1ad242 100644 --- a/src/studio/executionSpecValues.ts +++ b/src/studio/executionSpecValues.ts @@ -68,6 +68,7 @@ export function resolveStudioExecutionSpecValues( attentionBackend, nativeMath: '_native_math', empty: '', + emptyList: [], true: true, false: false, depth: 'depth', diff --git a/src/studio/executionSpecs.ts b/src/studio/executionSpecs.ts index 7eace42e..60f8cfab 100644 --- a/src/studio/executionSpecs.ts +++ b/src/studio/executionSpecs.ts @@ -33,7 +33,7 @@ const SPEC_ROLES = listed( 'models|prompt|promptEnhance|beforeEncode|textEncode|duration|conditionEncode|referenceEncode|imageEmbeddings|imageEncode|videoEncode|loadLastImage|controlnetModel|controlnet|loadIPAdapterImage|guider|ipAdapter|denoise|decode|afterDecode|diffusersQuantization|diffusersRecipe|diffusersImagePipeline|diffusersImageGenerate|diffusersUnconditionalGenerate|diffusersPredictMap|diffusersThreeDPipeline|diffusersThreeDGenerate|loadImage|loadControlImage|controlPreprocessor|loadMask|qwenOutpaintCanvas|outpaintCanvas|diffusersImageControl|diffusersImageControlEdit|diffusersImageControlInpaint|diffusersImageLayerDecompose|diffusersImageEdit|diffusersImageInpaint|preview|wanPipeline|wanGenerate|videoExport|loadVideo|loadReferenceVideo|loadControlVideo|loadMaskVideo|loadPoseVideo|loadFaceVideo|loadBackgroundVideo|normalizeVideo|normalizeReferenceVideo|normalizeControlVideo|referencePreprocessor|alignMaskVideo|audioPipeline|audioGenerate|audioExport|loadAudio|loadReferenceAudio|audioLoudnessMatch|audioJoin|audioOperation|dataOperation|dataPreview|dataExport|speechModel|transcribeAudio|transcriptPreview|transformersTextModel|transformersTextGenerate|transformersImageTextModel|transformersImageTextGenerate|transformersAnyToAnyModel|transformersAnyToAnyGenerate|transformersTextPreview|imageOperation|imageUpscaler|videoOperation|videoUpscaler', ); const BINDING_SOURCES = listed( - 'quantizationMode|quantizedComponents|dualQuantizedComponents|pipelineQuantizedComponents|dtype|deviceMapNone|offloadMode|device|attentionBackend|nativeFlashAttention|nativeMath|empty|true|false|ordinary|fp16|transformer|dualTransformer|videoVaeTiling|regionalCompile|denoiserCache|layerwiseCasting|channelsLast|artifact|defaultRevision|modelVariant|pipelineClass|executionProfileId|defaultWorkflow|workflowId|semanticGeneratorBlock|workflowPromptEnhancerBlock|workflowBeforeEncodeBlock|workflowTextEncoderBlock|workflowImageEncoderBlock|workflowVaeEncoderBlock|workflowImageEmbeddingsBlock|workflowDenoiseBlock|workflowDecodeBlock|workflowAfterDecodeBlock|kind|repo|revision|adapterWeightName|controlnetKind|controlnetRepo|controlnetRevision|controlnetOffloadMode|controlnetWeightVariant|controlnetRouteVariant|controlnetLoadClass|ipAdapterRepo|ipAdapterRevision|ipAdapterWeightName|classifierFreeGuidance|motionAdapterRepo|motionAdapterRevision|wanVaceRevision|mode|autoOffload|prompt|negativePrompt|promptRef|width|height|optionalWidth|optionalHeight|seed|steps|distilledSteps4|guidanceScale|distilledGuidance1|pagScale|pagAdaptiveScale|processingResolution|matchInputResolution|depth|batchSize|eta|classLabel|strength|layers|resolution|cfgNormalize|useEnglishPrompt|outputType|maxSequenceLength|controlImage|controlMode|ipAdapterImage|ipAdapterScale|references|referenceImages|conditionImages|lastImage|maskImage|paddingMaskCrop|outpaintLeft|outpaintRight|outpaintTop|outpaintBottom|outpaintOverlap|outpaintFeather|outpaintFillColor|sourceVideo|referenceVideos|controlVideo|maskVideo|poseVideo|faceVideo|backgroundVideo|maskThreshold127|inpaintMaskGrow96|outpaintMaskGrow0|conditioningScale|controlGuidanceStart|controlGuidanceEnd|cannyLowThreshold|cannyHighThreshold|videoCannyLowThreshold100|videoCannyHighThreshold200|alphaMode|addAlpha|removeAlpha|oneFrame|numFrames|requiredNumFrames|shift|fps|guidanceScale2|useGuidanceScale2|attentionKwargsJson|oneVideo|segmentFrameLength|previousConditioningFrames|segmentFrameLength77|previousConditioningFrames1|motionEncodeBatchSize1|temporalTileSize80|temporalOverlap24|temporalOverlapConditionStrength05|adainFactor025|framepackSampling|latentWindowSize9|trueCfgScale1|text2music|text2audio|cover|continuation|repaint|transcribe|translate|anyToAnyText|anyToAnyImage|sourceAudio|referenceAudio|speechLanguage|speechTimestamps|speechChunkSeconds|speechStrideSeconds|maxNewTokens|minNewTokens|doSample|temperature|topP|topK|numBeams|repetitionPenalty|useChatTemplate|lyrics|audioDuration|extensionDuration|vocalLanguage|bpmNormalized|keyscale|timesignature|repaintingStart|repaintingEnd|audioCoverStrength|sampleRate16000|sampleRate24000|sampleRate44100|sampleRate48000|numWaveforms1|numWaveforms3|referenceWindow15|targetPeakMinus1|maxAdjustment12|boundaryFade001', + 'quantizationMode|quantizedComponents|dualQuantizedComponents|pipelineQuantizedComponents|dtype|deviceMapNone|offloadMode|device|attentionBackend|nativeFlashAttention|nativeMath|empty|emptyList|true|false|ordinary|fp16|transformer|dualTransformer|videoVaeTiling|regionalCompile|denoiserCache|layerwiseCasting|channelsLast|artifact|defaultRevision|modelVariant|pipelineClass|executionProfileId|defaultWorkflow|workflowId|semanticGeneratorBlock|workflowPromptEnhancerBlock|workflowBeforeEncodeBlock|workflowTextEncoderBlock|workflowImageEncoderBlock|workflowVaeEncoderBlock|workflowImageEmbeddingsBlock|workflowDenoiseBlock|workflowDecodeBlock|workflowAfterDecodeBlock|kind|repo|revision|adapterWeightName|controlnetKind|controlnetRepo|controlnetRevision|controlnetOffloadMode|controlnetWeightVariant|controlnetRouteVariant|controlnetLoadClass|ipAdapterRepo|ipAdapterRevision|ipAdapterWeightName|classifierFreeGuidance|motionAdapterRepo|motionAdapterRevision|wanVaceRevision|mode|autoOffload|prompt|negativePrompt|promptRef|width|height|optionalWidth|optionalHeight|seed|steps|distilledSteps4|guidanceScale|distilledGuidance1|pagScale|pagAdaptiveScale|processingResolution|matchInputResolution|depth|batchSize|eta|classLabel|strength|layers|resolution|cfgNormalize|useEnglishPrompt|outputType|maxSequenceLength|controlImage|controlMode|ipAdapterImage|ipAdapterScale|references|referenceImages|conditionImages|lastImage|maskImage|paddingMaskCrop|outpaintLeft|outpaintRight|outpaintTop|outpaintBottom|outpaintOverlap|outpaintFeather|outpaintFillColor|sourceVideo|referenceVideos|controlVideo|maskVideo|poseVideo|faceVideo|backgroundVideo|maskThreshold127|inpaintMaskGrow96|outpaintMaskGrow0|conditioningScale|controlGuidanceStart|controlGuidanceEnd|cannyLowThreshold|cannyHighThreshold|videoCannyLowThreshold100|videoCannyHighThreshold200|alphaMode|addAlpha|removeAlpha|oneFrame|numFrames|requiredNumFrames|shift|fps|guidanceScale2|useGuidanceScale2|attentionKwargsJson|oneVideo|segmentFrameLength|previousConditioningFrames|segmentFrameLength77|previousConditioningFrames1|motionEncodeBatchSize1|temporalTileSize80|temporalOverlap24|temporalOverlapConditionStrength05|adainFactor025|framepackSampling|latentWindowSize9|trueCfgScale1|text2music|text2audio|cover|continuation|repaint|transcribe|translate|anyToAnyText|anyToAnyImage|sourceAudio|referenceAudio|speechLanguage|speechTimestamps|speechChunkSeconds|speechStrideSeconds|maxNewTokens|minNewTokens|doSample|temperature|topP|topK|numBeams|repetitionPenalty|useChatTemplate|lyrics|audioDuration|extensionDuration|vocalLanguage|bpmNormalized|keyscale|timesignature|repaintingStart|repaintingEnd|audioCoverStrength|sampleRate16000|sampleRate24000|sampleRate44100|sampleRate48000|numWaveforms1|numWaveforms3|referenceWindow15|targetPeakMinus1|maxAdjustment12|boundaryFade001', ); const AUTO_FIELDS = listed( 'resolvedArtifact|artifact|installTarget.repo|modelRepo|pipelineClass|dtype|offloadMode|quantizedComponents|attentionBackend|regionalCompile|denoiserCache|layerwiseCasting|channelsLast', diff --git a/src/workflow/workflowTaskBrowser.ts b/src/workflow/workflowTaskBrowser.ts index bc5d5305..70f1d03a 100644 --- a/src/workflow/workflowTaskBrowser.ts +++ b/src/workflow/workflowTaskBrowser.ts @@ -8,7 +8,8 @@ export function workflowTaskCategory(task: string): WorkflowCategory { if (task.includes('video') || task === 'flf2v' || task.startsWith('character_')) return 'Video'; if (task.includes('audio') || task.includes('speech') || task.includes('music')) return 'Audio'; if (task.includes('3d')) return '3D'; - if (/image|inpaint|outpaint|controlnet|ip_adapter|depth|layer_decomposition/.test(task)) return 'Image'; + if (task === 'mask_composite' || /image|inpaint|outpaint|controlnet|ip_adapter|depth|layer_decomposition/.test(task)) + return 'Image'; return 'Text & Utilities'; } From 1c6942107fc634c1f397f25f12b3b9a9ce877299 Mon Sep 17 00:00:00 2001 From: Sourav Das Date: Sun, 11 Oct 2026 01:08:08 +0530 Subject: [PATCH 033/440] Retain server cache view through Block reprojection Reproject transient cache flags against current exact graph authority after collapsed minimum-height measurement, Block controls/presentation, projected child sizing and internal edge changes. Reuse the same projection during graph restoration. Add six original-defect regressions with expansion, release retirement, non-persistence and real-store native export replay;151 focused tests and unchanged bundle ceilings pass. Pair CI with backend 06760dcff9133e40c6b84c4ca0c0e8c268801904. Final full gates and native first-refresh proof remain required. --- .github/workflows/ci.yml | 2 +- docs/modiff-client-architecture.md | 5 +- scripts/flow-graph-mutations.test.mjs | 69 +++++++++++++++++++++++++++ src/stores/flowConnectionMutations.ts | 10 ++-- src/stores/flowGraphMutations.ts | 20 ++++---- src/stores/flowNodeMutations.ts | 10 +++- src/stores/useFlowStore.ts | 16 +++++-- 7 files changed, 111 insertions(+), 21 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index c1d08d75..3dce0c51 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -33,7 +33,7 @@ jobs: with: repository: sdevil7th/MoDiff # Paired AMD/Linux and preserved Windows runtime, workflow and Block contracts. - ref: ac6b3bb45d7889c10b4eb229df7ad25e4abee62f + ref: 06760dcff9133e40c6b84c4ca0c0e8c268801904 path: MoDiff persist-credentials: false - name: Verify the pinned backend supports native setup diff --git a/docs/modiff-client-architecture.md b/docs/modiff-client-architecture.md index 0316946a..06657ab9 100644 --- a/docs/modiff-client-architecture.md +++ b/docs/modiff-client-architecture.md @@ -283,7 +283,10 @@ Execution-spec bindings distinguish empty text (`empty`) from an empty component selection (`emptyList`). Multiple-choice component fields retain arrays in fresh drafts and canonical exports, including when quantization is disabled. Backend validation remains authoritative for every selected component. -Server-reported runtime cache IDs remain transient view metadata. A restored tab +Server-reported runtime cache IDs remain transient view metadata. Block layout, +control, child measurement and internal wiring reprojection must derive cache +flags again from those IDs and the current exact graph, including the first +collapsed minimum-height measurement after refresh. A restored tab reprojects them against its current exact owner graph, so reconnect cache state survives durable snapshot restoration. Native execution records the actual leaf ID; cache release retires the IDs acknowledged by the backend. These IDs are diff --git a/scripts/flow-graph-mutations.test.mjs b/scripts/flow-graph-mutations.test.mjs index 85ad804c..31df67a3 100644 --- a/scripts/flow-graph-mutations.test.mjs +++ b/scripts/flow-graph-mutations.test.mjs @@ -228,6 +228,75 @@ test('executed cache records retain the exact runtime leaf when its owner is exp ); }); +for (const mutation of ['minimum height', 'projection', 'control', 'presentation']) { + test(`a restored cached Block stays cached after ${mutation} reprojection`, () => { + const fixture = blockV2DeletionFixture(`rehydrated-cache-${mutation.replaceAll(' ', '-')}`); + const root = fixture.nodes.find((item) => item.id === fixture.rootId); + const collapsed = { + ...root, + data: { + ...root.data, + blockInstanceV2: blockRuntimeModule.setBlockPresentationV2(root.data.blockInstanceV2, { expanded: false }), + }, + }; + const graph = { nodes: [collapsed], edges: [] }; + const store = () => flowStoreModule.useFlowStore.getState(); + store().resetStatus([fixture.generateId]); + store().replaceGraph(graph); + assert.equal(store().nodes[0].data.isCached, true); + const apply = () => { + if (mutation === 'minimum height') store().ensureBlockMinimumHeightV2(fixture.rootId, 800); + if (mutation === 'projection') store().ensureBlockProjectionV2(fixture.rootId); + if (mutation === 'control') store().setBlockInstanceValueV2(fixture.rootId, 'prompt', 'edited prompt'); + if (mutation === 'presentation') + store().setBlockPresentationV2(fixture.rootId, { size: { width: 1000, height: 800 } }); + }; + apply(); + assert.equal(store().nodes.find((item) => item.id === fixture.rootId).data.isCached, true); + assert.deepEqual(store().runtimeCachedNodeIds, [fixture.generateId]); + store().setBlockPresentationV2(fixture.rootId, { expanded: true }); + assert.equal(Boolean(store().nodes.find((item) => item.id === fixture.rootId).data.isCached), false); + assert.equal(store().nodes.find((item) => item.id === fixture.generateId).data.isCached, true); + store().setNodeCached(fixture.generateId, false); + store().setBlockPresentationV2(fixture.rootId, { expanded: false }); + apply(); + assert.equal(Boolean(store().nodes.find((item) => item.id === fixture.rootId).data.isCached), false); + assert.deepEqual(store().runtimeCachedNodeIds, []); + assert.equal(store().toObject().nodes[0].data.isCached, undefined); + }); +} + +test('measured projected children retain unrelated cached leaves when their Block is rebuilt', () => { + const fixture = blockV2DeletionFixture('measured-cache-owner'); + const store = () => flowStoreModule.useFlowStore.getState(); + store().replaceGraph(fixture); + store().resetStatus([fixture.generateId]); + store().setNodeSize(fixture.utilityId, 282, 300, { history: false }); + assert.equal(store().nodes.find((item) => item.id === fixture.generateId).data.isCached, true); + assert.equal(Boolean(store().nodes.find((item) => item.id === fixture.utilityId).data.isCached), false); +}); + +test('internal edge removal and connection retain cached leaves when their owning Block is rebuilt', () => { + const fixture = blockV2DeletionFixture('rewired-cache-owner'); + const store = () => flowStoreModule.useFlowStore.getState(); + store().replaceGraph(fixture); + store().resetStatus([fixture.generateId]); + const internal = store().edges.find((item) => item.source === fixture.generateId); + assert.ok(internal); + store().onEdgesChange([{ id: internal.id, type: 'remove' }]); + assert.equal(store().nodes.find((item) => item.id === fixture.generateId).data.isCached, true); + assert.equal(Boolean(store().nodes.find((item) => item.id === fixture.utilityId).data.isCached), false); + store().onConnect({ + source: fixture.generateId, + sourceHandle: 'images', + target: fixture.utilityId, + targetHandle: 'images', + }); + assert.ok(store().edges.some((item) => item.source === fixture.generateId && item.target === fixture.utilityId)); + assert.equal(store().nodes.find((item) => item.id === fixture.generateId).data.isCached, true); + assert.deepEqual(store().runtimeCachedNodeIds, [fixture.generateId]); +}); + test('connection mutations enforce signal-driven component compatibility', () => { const schedulerOutput = (modelType) => ({ scheduler: { diff --git a/src/stores/flowConnectionMutations.ts b/src/stores/flowConnectionMutations.ts index fa2ba5b9..52c776cb 100644 --- a/src/stores/flowConnectionMutations.ts +++ b/src/stores/flowConnectionMutations.ts @@ -26,6 +26,7 @@ import { decorateConnectionEdge, decorateConnectionEdges } from '../theme/connec import { enqueueSnackbar } from '../ui/snackbar'; import { nodeConnectionSemanticsAreCompatible } from '../workflow/nodeConnectionMatching'; import type { CustomConnection, CustomNodeType, FlowStore } from './useFlowStore'; +import { projectFlowCacheStatus } from './flowGraphMutations'; type FlowStoreSet = ( partial: Partial | FlowStore | ((state: FlowStore) => Partial | FlowStore), @@ -364,7 +365,8 @@ export function handleEdgesChange(changes: EdgeChange[], set: FlowStoreSet } }); - set(removeBlockInternalGraphEdgesV2(removedEdges, get().nodes, get().edges)); + const graph = removeBlockInternalGraphEdgesV2(removedEdges, get().nodes, get().edges); + set({ ...graph, nodes: projectFlowCacheStatus(graph.nodes, get().runtimeCachedNodeIds) }); const newEdges = decorateConnectionEdges(get().nodes, applyEdgeChanges(changes, get().edges)); set({ edges: newEdges }); @@ -487,7 +489,7 @@ export function handleConnect(conn: CustomConnection, set: FlowStoreSet, get: Fl if (sourceNode.data.blockProjectionOwnerId || targetNode.data.blockProjectionOwnerId) { const graph = connectBlockInternalGraphV2(conn, get().nodes, get().edges); if (graph) { - set(graph); + set({ ...graph, nodes: projectFlowCacheStatus(graph.nodes, get().runtimeCachedNodeIds) }); get().updateHandleConnectionStatus(); } return; @@ -572,7 +574,7 @@ export function handleReconnect(oldEdge: Edge, conn: Connection, set: FlowStoreS const remaining = get().edges.filter((edge) => edge.id !== oldEdge.id); const graph = connectBlockInternalGraphV2(conn, get().nodes, remaining); if (!graph) throw new Error('Cannot reconnect this internal input.'); - set(graph); + set({ ...graph, nodes: projectFlowCacheStatus(graph.nodes, get().runtimeCachedNodeIds) }); get().updateHandleConnectionStatus(); return; } @@ -657,7 +659,7 @@ export function handleReconnect(oldEdge: Edge, conn: Connection, set: FlowStoreS }); const graph = projectUpdatedBlockV2(ownerId, nextInstance, get); if (!graph) throw new Error('Cannot reconnect this Block edge because projection failed.'); - set(graph); + set({ ...graph, nodes: projectFlowCacheStatus(graph.nodes, get().runtimeCachedNodeIds) }); get().updateHandleConnectionStatus(); return; } diff --git a/src/stores/flowGraphMutations.ts b/src/stores/flowGraphMutations.ts index ca243fcb..deb06f5d 100644 --- a/src/stores/flowGraphMutations.ts +++ b/src/stores/flowGraphMutations.ts @@ -322,6 +322,16 @@ export function applyFlowNodeChangesInvariant( } } +/** Cache flags are a replaceable view of the last server snapshot and current graph authority. */ +export function projectFlowCacheStatus(nodes: CustomNodeType[], cached: readonly string[] | null | undefined) { + if (cached == null) return nodes; + const targets = new Set(cached.map((id) => runtimeProgressTarget(nodes, id))); + return nodes.map((node) => { + const isCached = targets.has(node.id); + return Boolean(node.data.isCached) === isCached ? node : { ...node, data: { ...node.data, isCached } }; + }); +} + export function replaceFlowGraph( replacement: FlowGraphReplacement, options: FlowGraphReplacementOptions, @@ -331,15 +341,7 @@ export function replaceFlowGraph( const previousNodes = get().nodes; const previousNodeIds = new Set(previousNodes.map((node) => node.id)); const restored = withLiveFieldContracts(replacement.nodes); - const cached = get().runtimeCachedNodeIds; - const cachedSet = new Set(cached?.map((id) => runtimeProgressTarget(restored, id))); - const nodes = - cached == null - ? restored - : restored.map((node) => { - const isCached = cachedSet.has(node.id); - return Boolean(node.data.isCached) === isCached ? node : { ...node, data: { ...node.data, isCached } }; - }); + const nodes = projectFlowCacheStatus(restored, get().runtimeCachedNodeIds); const nextNodeIds = new Set(nodes.map((node) => node.id)); const removedNodeIds = [...previousNodeIds].filter((nodeId) => !nextNodeIds.has(nodeId)); const edges = decorateConnectionEdges( diff --git a/src/stores/flowNodeMutations.ts b/src/stores/flowNodeMutations.ts index 031d1710..dbd3a39b 100644 --- a/src/stores/flowNodeMutations.ts +++ b/src/stores/flowNodeMutations.ts @@ -5,7 +5,12 @@ import type { NodeData, NodeParams } from './useNodeStore'; import type { CustomNodeType, FlowStore } from './useFlowStore'; import type { NodeMemoryUsage } from '../types/api'; import { deepEqual } from '../utils/deepEqual'; -import { applyFlowNodeChangesInvariant, removeFlowNodesInvariant, replaceFlowGraph } from './flowGraphMutations'; +import { + applyFlowNodeChangesInvariant, + projectFlowCacheStatus, + removeFlowNodesInvariant, + replaceFlowGraph, +} from './flowGraphMutations'; import { handleEdgesChange, reconcileGraphConnections } from './flowConnectionMutations'; import { normalizeBlockInstanceV2 } from '../studio/blockSchemaV2'; import { @@ -231,7 +236,8 @@ export function setFlowNodeSize(id: string, width: number, height: number, set: ...state.edges.filter((edge) => edge.data?.blockProjectionOwnerId !== ownerId), ...projection.edges, ]; - return { nodes, edges: decorateConnectionEdges(nodes, edges) }; + const cachedNodes = projectFlowCacheStatus(nodes, state.runtimeCachedNodeIds); + return { nodes: cachedNodes, edges: decorateConnectionEdges(cachedNodes, edges) }; } return { nodes: state.nodes.map((item) => (item.id === id ? { ...item, width, height } : item)) }; diff --git a/src/stores/useFlowStore.ts b/src/stores/useFlowStore.ts index e1cbf58f..d174a28b 100644 --- a/src/stores/useFlowStore.ts +++ b/src/stores/useFlowStore.ts @@ -65,7 +65,12 @@ import { USER_BLOCK_COLLAPSED_WIDTH, } from '../studio/userBlocks'; import { useUserBlockStore } from './useUserBlockStore'; -import { replaceFlowGraph, type FlowGraphReplacement, type FlowGraphReplacementOptions } from './flowGraphMutations'; +import { + projectFlowCacheStatus, + replaceFlowGraph, + type FlowGraphReplacement, + type FlowGraphReplacementOptions, +} from './flowGraphMutations'; import { decorateConnectionEdges } from '../theme/connectionTypes'; import { collapseHuggingFaceClusterInstance, @@ -636,7 +641,7 @@ function sameSnapshot(left: FlowHistorySnapshot, right: FlowHistorySnapshot) { * connector params are intentionally never copied into `NodeData.params`. */ function projectBlockInstanceV2( - state: Pick, + state: Pick & Partial>, id: string, instance: NonNullable, ) { @@ -695,7 +700,10 @@ function projectBlockInstanceV2( const data = isRecord(edge.data) ? edge.data : {}; return data.blockProjectionOwnerId !== id; }); - return { nodes, edges: [...retainedEdges, ...projection.edges] }; + return { + nodes: projectFlowCacheStatus(nodes, state.runtimeCachedNodeIds), + edges: [...retainedEdges, ...projection.edges], + }; } function ordinaryBlockGraphNodeV2(node: CustomNodeType): BlockGraphNodeV2 { @@ -1534,7 +1542,7 @@ function moveProjectedSubtreeOutOfBlockV2( } function updateBlockInstanceV2( - state: Pick, + state: Pick & Partial>, id: string, reducer: (instance: NonNullable) => NonNullable, ) { From bdddd2addb96db052471fd0aafa1cf47182e9200 Mon Sep 17 00:00:00 2001 From: Sourav Das Date: Sun, 11 Oct 2026 01:32:29 +0530 Subject: [PATCH 034/440] Keep runtime cache projection independent of browser stores Move the existing projection to a pure module with a type-only store dependency. Graph repair no longer imports browser configuration through graph mutation helpers; retain exact current-authority cache mapping and atomic store updates.193 related tests, production build and unchanged bundle ceilings pass. Pair CI with backend d7a75c548b2243c083473ae3a28473d6565e011c. Final full check/UI and native first-refresh release/repeat remain required. --- .github/workflows/ci.yml | 2 +- src/stores/flowConnectionMutations.ts | 2 +- src/stores/flowGraphMutations.ts | 12 +----------- src/stores/flowNodeMutations.ts | 8 ++------ src/stores/flowRuntimeCache.ts | 12 ++++++++++++ src/stores/useFlowStore.ts | 8 ++------ 6 files changed, 19 insertions(+), 25 deletions(-) create mode 100644 src/stores/flowRuntimeCache.ts diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 3dce0c51..7144ead0 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -33,7 +33,7 @@ jobs: with: repository: sdevil7th/MoDiff # Paired AMD/Linux and preserved Windows runtime, workflow and Block contracts. - ref: 06760dcff9133e40c6b84c4ca0c0e8c268801904 + ref: d7a75c548b2243c083473ae3a28473d6565e011c path: MoDiff persist-credentials: false - name: Verify the pinned backend supports native setup diff --git a/src/stores/flowConnectionMutations.ts b/src/stores/flowConnectionMutations.ts index 52c776cb..40551c1e 100644 --- a/src/stores/flowConnectionMutations.ts +++ b/src/stores/flowConnectionMutations.ts @@ -26,7 +26,7 @@ import { decorateConnectionEdge, decorateConnectionEdges } from '../theme/connec import { enqueueSnackbar } from '../ui/snackbar'; import { nodeConnectionSemanticsAreCompatible } from '../workflow/nodeConnectionMatching'; import type { CustomConnection, CustomNodeType, FlowStore } from './useFlowStore'; -import { projectFlowCacheStatus } from './flowGraphMutations'; +import { projectFlowCacheStatus } from './flowRuntimeCache'; type FlowStoreSet = ( partial: Partial | FlowStore | ((state: FlowStore) => Partial | FlowStore), diff --git a/src/stores/flowGraphMutations.ts b/src/stores/flowGraphMutations.ts index deb06f5d..9ca4d269 100644 --- a/src/stores/flowGraphMutations.ts +++ b/src/stores/flowGraphMutations.ts @@ -11,7 +11,7 @@ import { } from '../studio/blockRuntimeV2'; import { enqueueSnackbar } from '../ui/snackbar'; import { operationAuthoring } from '../workflow/operationAuthoringHint'; -import { runtimeProgressTarget } from '../studio/userBlocks'; +import { projectFlowCacheStatus } from './flowRuntimeCache'; import { handleEdgesChange, reconcileGraphConnections } from './flowConnectionMutations'; import type { CustomNodeType, FlowStore } from './useFlowStore'; import { useNodesStore } from './useNodeStore'; @@ -322,16 +322,6 @@ export function applyFlowNodeChangesInvariant( } } -/** Cache flags are a replaceable view of the last server snapshot and current graph authority. */ -export function projectFlowCacheStatus(nodes: CustomNodeType[], cached: readonly string[] | null | undefined) { - if (cached == null) return nodes; - const targets = new Set(cached.map((id) => runtimeProgressTarget(nodes, id))); - return nodes.map((node) => { - const isCached = targets.has(node.id); - return Boolean(node.data.isCached) === isCached ? node : { ...node, data: { ...node.data, isCached } }; - }); -} - export function replaceFlowGraph( replacement: FlowGraphReplacement, options: FlowGraphReplacementOptions, diff --git a/src/stores/flowNodeMutations.ts b/src/stores/flowNodeMutations.ts index dbd3a39b..a80f0900 100644 --- a/src/stores/flowNodeMutations.ts +++ b/src/stores/flowNodeMutations.ts @@ -5,12 +5,8 @@ import type { NodeData, NodeParams } from './useNodeStore'; import type { CustomNodeType, FlowStore } from './useFlowStore'; import type { NodeMemoryUsage } from '../types/api'; import { deepEqual } from '../utils/deepEqual'; -import { - applyFlowNodeChangesInvariant, - projectFlowCacheStatus, - removeFlowNodesInvariant, - replaceFlowGraph, -} from './flowGraphMutations'; +import { applyFlowNodeChangesInvariant, removeFlowNodesInvariant, replaceFlowGraph } from './flowGraphMutations'; +import { projectFlowCacheStatus } from './flowRuntimeCache'; import { handleEdgesChange, reconcileGraphConnections } from './flowConnectionMutations'; import { normalizeBlockInstanceV2 } from '../studio/blockSchemaV2'; import { diff --git a/src/stores/flowRuntimeCache.ts b/src/stores/flowRuntimeCache.ts new file mode 100644 index 00000000..4c39f5ae --- /dev/null +++ b/src/stores/flowRuntimeCache.ts @@ -0,0 +1,12 @@ +import type { CustomNodeType } from './useFlowStore'; +import { runtimeProgressTarget } from '../studio/userBlocks'; + +/** Cache flags are a replaceable view of the last server snapshot and current graph authority. */ +export function projectFlowCacheStatus(nodes: CustomNodeType[], cached: readonly string[] | null | undefined) { + if (cached == null) return nodes; + const targets = new Set(cached.map((id) => runtimeProgressTarget(nodes, id))); + return nodes.map((node) => { + const isCached = targets.has(node.id); + return Boolean(node.data.isCached) === isCached ? node : { ...node, data: { ...node.data, isCached } }; + }); +} diff --git a/src/stores/useFlowStore.ts b/src/stores/useFlowStore.ts index d174a28b..fcab576c 100644 --- a/src/stores/useFlowStore.ts +++ b/src/stores/useFlowStore.ts @@ -65,12 +65,8 @@ import { USER_BLOCK_COLLAPSED_WIDTH, } from '../studio/userBlocks'; import { useUserBlockStore } from './useUserBlockStore'; -import { - projectFlowCacheStatus, - replaceFlowGraph, - type FlowGraphReplacement, - type FlowGraphReplacementOptions, -} from './flowGraphMutations'; +import { replaceFlowGraph, type FlowGraphReplacement, type FlowGraphReplacementOptions } from './flowGraphMutations'; +import { projectFlowCacheStatus } from './flowRuntimeCache'; import { decorateConnectionEdges } from '../theme/connectionTypes'; import { collapseHuggingFaceClusterInstance, From d84bbac9e2186835f647eab1d4ab7f10e65c6a9a Mon Sep 17 00:00:00 2001 From: Sourav Das Date: Sun, 11 Oct 2026 02:16:59 +0530 Subject: [PATCH 035/440] Pair CI with image inpaint and caption authoring fixes Pin compatible backend 661efe87a40c122b0692e32dde7e8bd55ed98ceb. Client runtime/bundle bytes remain unchanged. Full frontend check and browser suite pass on preceding bdd runtime; final compatible check/browser/native source proof follows this pin. --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 7144ead0..4cc159e1 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -33,7 +33,7 @@ jobs: with: repository: sdevil7th/MoDiff # Paired AMD/Linux and preserved Windows runtime, workflow and Block contracts. - ref: d7a75c548b2243c083473ae3a28473d6565e011c + ref: 661efe87a40c122b0692e32dde7e8bd55ed98ceb path: MoDiff persist-credentials: false - name: Verify the pinned backend supports native setup From 75848ce24c8a23af839ab26257fff4198639bff7 Mon Sep 17 00:00:00 2001 From: Sourav Das Date: Mon, 19 Oct 2026 10:32:43 +0530 Subject: [PATCH 036/440] Add image-stage authoring and scoped prompt enhancement Render backend-owned image stages, weight formats, references/layout and optional prompt enhancement through existing workflow and Block controls. Preserve scoped execution authority, atomic Apply/Undo and generic image/audio authoring paths. Fix source-removal drafts and owned runtime Auto updates, renew asynchronous browser assertions and pin CI to the paired backend checkpoint. Include focused regressions and the reviewed production bundle budget. --- .github/workflows/ci.yml | 4 +- README.md | 2 + docs/README.md | 2 + docs/audio-workflows.md | 94 + docs/cluster-engineering-lessons.md | 9 + docs/developer-first-node-ux.md | 19 +- docs/image-template-workflows.md | 73 +- docs/modiff-client-architecture.md | 106 +- docs/troubleshooting.md | 5 + docs/workflow-authoring-ux.md | 219 +- eslint.config.js | 2 +- package.json | 12 +- scripts/adapter-chain-links.test.mjs | 426 + scripts/ancillary-execution-scope.test.mjs | 594 ++ scripts/ancillary-operations.test.mjs | 329 + scripts/ancillary-run-coordinator.test.mjs | 535 ++ scripts/audio-authoring.test.mjs | 914 ++ scripts/audio-schema-fixture.mjs | 53 + scripts/block-renderer-v2.test.mjs | 152 + scripts/block-runtime-v2.test.mjs | 106 + scripts/bundle-budget.mjs | 171 +- scripts/graph-visuals.test.mjs | 41 +- ...e-full-native-template-candidates.test.mjs | 74 +- scripts/image-stage-groups.test.mjs | 644 ++ scripts/layout-conditioning.test.mjs | 650 ++ scripts/live-proof-provenance.mjs | 28 +- scripts/live-qwen-proof.test.mjs | 119 +- scripts/media-attachment.test.mjs | 196 +- .../model-setup-adapter-authority.test.mjs | 1915 +++++ scripts/modiff-template.test.mjs | 77 + scripts/modular-hierarchy-v2.test.mjs | 81 +- scripts/node-store-requests.test.mjs | 46 + scripts/operation-authoring-recipes.test.mjs | 397 + scripts/operation-authoring.test.mjs | 234 + scripts/operation-catalog.test.mjs | 64 + scripts/operation-component-bundle.test.mjs | 8 +- .../operation-modification-matrix.test.mjs | 25 +- scripts/prompt-enhancement-authoring.test.mjs | 396 + scripts/prompt-enhancement-preview.test.mjs | 704 ++ scripts/prompt-enhancement-summary.test.mjs | 694 ++ .../registered-block-v2-insertion.test.mjs | 27 +- .../registered-block-v2-route-audit.test.mjs | 128 +- scripts/request-boundary.test.mjs | 44 + scripts/resolved-execution-inputs.test.mjs | 540 +- scripts/reviewed-value-ports-v2.test.mjs | 135 + scripts/run-coordinator.test.mjs | 180 +- scripts/server-actions.test.mjs | 63 + scripts/task-template-contracts.test.mjs | 21 + scripts/template-gallery-harness.test.mjs | 43 +- scripts/template-operation-fixtures.py | 61 +- scripts/template-operation-workflows.test.mjs | 641 +- scripts/workflow-auto-weight-loading.test.mjs | 324 + ...workflow-library-canonical-export.test.mjs | 300 + scripts/workflow-library-contract.mjs | 139 +- scripts/workflow-library-generator.mjs | 100 +- .../workflow-library-image-stages.test.mjs | 179 + scripts/workflow-library-manifest-state.mjs | 5 + scripts/workflow-library-verify.mjs | 24 +- src/components/AppModePanel.tsx | 14 +- src/components/CustomNode.tsx | 72 +- src/components/EncodingNode.tsx | 27 +- src/components/EncodingNodeControls.tsx | 103 +- src/components/EncodingNodeMenu.tsx | 62 +- src/components/ModelManagerDialog.tsx | 32 +- src/components/ModelSetupAdapterControls.tsx | 274 + src/components/NodeContent.tsx | 15 + src/components/OutputGalleryPanel.tsx | 12 +- src/components/PromptEnhancementControls.tsx | 273 + src/components/RunIssuesDialog.tsx | 45 +- src/components/SelectionToolbar.tsx | 6 +- src/components/StageNodeControls.tsx | 10 +- src/components/StudioPanel.tsx | 36 +- src/components/TopBar.tsx | 21 +- src/components/VisualStageControls.tsx | 11 +- src/components/WorkflowModelInventoryRow.tsx | 107 + src/components/WorkflowResourcePanelV2.tsx | 2 +- src/fields/LayoutConditioningField.tsx | 466 ++ src/fields/NumberField.tsx | 79 +- src/fields/SelectField.tsx | 18 +- src/stores/flowGraphExport.ts | 89 +- src/stores/flowNodeMutations.ts | 4 +- src/stores/useFlowStore.ts | 66 +- src/stores/useStudioStore.ts | 29 +- src/stores/websocketMessageHandler.ts | 7 +- src/studio/adapterChainLinks.ts | 52 + src/studio/ancillaryBindings.ts | 171 + src/studio/ancillaryOperations.ts | 342 + src/studio/blockRuntimeV2.ts | 11 + src/studio/controlledWorkflows.ts | 59 +- src/studio/executionSpecValues.ts | 5 +- src/studio/executionSpecs.ts | 8 + src/studio/graphBridge.ts | 26 +- src/studio/layoutConditioning.ts | 286 + src/studio/layoutReferenceContext.ts | 121 + src/studio/modularDiffusersBlockInsertion.ts | 9 +- src/studio/operationAuthoringRecipe.ts | 201 + src/studio/optionalRuntimes.ts | 159 + src/studio/promptEnhancementAuthoring.ts | 452 + src/studio/promptEnhancementParent.ts | 112 + src/studio/promptEnhancementPreview.ts | 661 ++ src/studio/promptEnhancementSummary.ts | 849 ++ src/studio/qwenInpaintNativeCandidate.ts | 2 +- src/studio/registeredBlockV2AudioRoutes.ts | 42 +- src/studio/registeredBlockV2FanOutRoutes.ts | 488 +- src/studio/registeredBlockV2ImageRoutes.ts | 48 +- .../registeredBlockV2OrdinaryFluxRoutes.ts | 1092 +-- src/studio/registeredBlockV2Routes.ts | 130 +- src/studio/requiredGraphInputs.ts | 14 +- src/studio/resolvedExecutionInputs.ts | 92 +- src/studio/reviewedModularGraphV2.ts | 1 + src/studio/reviewedValuePortsV2.ts | 99 +- src/studio/runCoordinator.ts | 92 +- src/studio/runPreparation.ts | 7 + src/studio/runReadiness.ts | 46 +- src/studio/templateModelSelection.ts | 24 +- src/studio/templateOperationSelections.ts | 141 +- src/studio/templateOperationWorkflow.ts | 379 +- src/studio/templateWorkflow.ts | 44 +- src/studio/templates.ts | 12 +- src/studio/types.ts | 43 +- src/studio/useStudioRunActions.ts | 21 +- src/studio/workflowAutoExecutionV2.ts | 61 +- src/types/api.ts | 48 +- src/ui/LayoutConditioningFixture.tsx | 223 + src/ui/WorkflowModelInventoryFixture.tsx | 102 + src/ui/control-state-matrix-entry.tsx | 16 +- src/utils/e2eHooks.ts | 49 +- src/utils/requestJson.ts | 3 +- src/utils/runGraph.ts | 23 +- src/utils/runtimeCleanupFeedback.ts | 19 + src/workflow/ancillaryExecutionScope.ts | 354 + src/workflow/encodingNodePresentation.ts | 13 +- src/workflow/guidanceNodeFields.ts | 66 +- src/workflow/imagePipelineStageContracts.ts | 134 + src/workflow/modelSetupAdapters.ts | 649 ++ src/workflow/operationAuthoring.ts | 28 +- src/workflow/operationAuthoringHint.ts | 2 + src/workflow/operationContracts.ts | 17 +- src/workflow/operationScope.ts | 79 +- src/workflow/operationSharedInputs.ts | 26 + src/workflow/operationStarterRequest.ts | 120 +- src/workflow/prepareExecutionScope.ts | 292 + src/workflow/selectedAudioAdapterAuthority.ts | 187 + .../visualOperationGroupProjection.ts | 60 +- src/workflow/visualOperationGroups.ts | 353 +- src/workflow/workflowChoices.ts | 13 +- src/workflow/workflowModelInventory.ts | 221 + .../audio-cluster-acceptance.spec.ts | 5 +- .../audio-offload-qualification.spec.ts | 167 +- .../audio-production-smoke.spec.ts | 2 +- .../audio-template-acceptance.spec.ts | 104 +- .../layout-conditioning.spec.ts | 345 + tests/e2e/studio-mocked/studio-mocked.spec.ts | 3947 +++++++-- tests/fixtures/ancillary-authoring.v1.json | 7408 +++++++++++++++++ tests/fixtures/ancillary-starter.v1.json | 3271 ++++++++ tests/fixtures/layout-conditioning.v1.json | 111 + tests/fixtures/layout-conditioning.v2.json | 86 + .../prompt-enhancement-starter.v1.json | 5218 ++++++++++++ .../fixtures/weight-format-selections.v1.json | 127 + vite.config.ts | 9 + 160 files changed, 42344 insertions(+), 3009 deletions(-) create mode 100644 docs/audio-workflows.md create mode 100644 scripts/adapter-chain-links.test.mjs create mode 100644 scripts/ancillary-execution-scope.test.mjs create mode 100644 scripts/ancillary-operations.test.mjs create mode 100644 scripts/ancillary-run-coordinator.test.mjs create mode 100644 scripts/audio-authoring.test.mjs create mode 100644 scripts/audio-schema-fixture.mjs create mode 100644 scripts/image-stage-groups.test.mjs create mode 100644 scripts/layout-conditioning.test.mjs create mode 100644 scripts/model-setup-adapter-authority.test.mjs create mode 100644 scripts/operation-authoring-recipes.test.mjs create mode 100644 scripts/prompt-enhancement-authoring.test.mjs create mode 100644 scripts/prompt-enhancement-preview.test.mjs create mode 100644 scripts/prompt-enhancement-summary.test.mjs create mode 100644 scripts/workflow-auto-weight-loading.test.mjs create mode 100644 scripts/workflow-library-canonical-export.test.mjs create mode 100644 scripts/workflow-library-image-stages.test.mjs create mode 100644 src/components/ModelSetupAdapterControls.tsx create mode 100644 src/components/PromptEnhancementControls.tsx create mode 100644 src/components/WorkflowModelInventoryRow.tsx create mode 100644 src/fields/LayoutConditioningField.tsx create mode 100644 src/studio/adapterChainLinks.ts create mode 100644 src/studio/ancillaryBindings.ts create mode 100644 src/studio/ancillaryOperations.ts create mode 100644 src/studio/layoutConditioning.ts create mode 100644 src/studio/layoutReferenceContext.ts create mode 100644 src/studio/operationAuthoringRecipe.ts create mode 100644 src/studio/promptEnhancementAuthoring.ts create mode 100644 src/studio/promptEnhancementParent.ts create mode 100644 src/studio/promptEnhancementPreview.ts create mode 100644 src/studio/promptEnhancementSummary.ts create mode 100644 src/ui/LayoutConditioningFixture.tsx create mode 100644 src/ui/WorkflowModelInventoryFixture.tsx create mode 100644 src/utils/runtimeCleanupFeedback.ts create mode 100644 src/workflow/ancillaryExecutionScope.ts create mode 100644 src/workflow/imagePipelineStageContracts.ts create mode 100644 src/workflow/modelSetupAdapters.ts create mode 100644 src/workflow/prepareExecutionScope.ts create mode 100644 src/workflow/selectedAudioAdapterAuthority.ts create mode 100644 src/workflow/workflowModelInventory.ts create mode 100644 tests/e2e/shared-controls/layout-conditioning.spec.ts create mode 100644 tests/fixtures/ancillary-authoring.v1.json create mode 100644 tests/fixtures/ancillary-starter.v1.json create mode 100644 tests/fixtures/layout-conditioning.v1.json create mode 100644 tests/fixtures/layout-conditioning.v2.json create mode 100644 tests/fixtures/prompt-enhancement-starter.v1.json create mode 100644 tests/fixtures/weight-format-selections.v1.json diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 4cc159e1..2293db20 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -32,8 +32,8 @@ jobs: uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4 with: repository: sdevil7th/MoDiff - # Paired AMD/Linux and preserved Windows runtime, workflow and Block contracts. - ref: 661efe87a40c122b0692e32dde7e8bd55ed98ceb + # Paired image stages, scoped enhancement and FLUX3 evaluation contracts. + ref: d8c1a77a2c3975ca905e342c7e38b7dd64077813 path: MoDiff persist-credentials: false - name: Verify the pinned backend supports native setup diff --git a/README.md b/README.md index f913b9fc..918a6408 100644 --- a/README.md +++ b/README.md @@ -274,6 +274,8 @@ The [developer authoring guide](docs/developer-first-node-ux.md) covers optional Model Setup, Prepare Mask and Image Output groups, reversible component bundle wiring, and the existing inspection/reuse controls. These explicit actions keep saved graphs and template defaults intact. +The [audio workflow guide](docs/audio-workflows.md) covers audio Model Setup, +MiniMax's real stages, Audio Output and selected adapter ownership. ## Workspace And Memory diff --git a/docs/README.md b/docs/README.md index 7d9637ee..faaeab29 100644 --- a/docs/README.md +++ b/docs/README.md @@ -8,6 +8,8 @@ This directory contains durable user, operator, and contributor documentation fo editor, custom imports, matching sockets and supported image/audio attachments. The [image template workflow guide](image-template-workflows.md) covers fresh template graphs, preserved settings and the distinction from historical examples. +The [audio workflow guide](audio-workflows.md) explains real generation stages, +source audio, selected adapter ownership, playback and validation boundaries. | Guide | Audience | What it covers | | ----------------------------------------------- | ------------------- | --------------------------------------------------------------------------------------------- | diff --git a/docs/audio-workflows.md b/docs/audio-workflows.md new file mode 100644 index 00000000..67e0f981 --- /dev/null +++ b/docs/audio-workflows.md @@ -0,0 +1,94 @@ +# Audio workflow stages + +Audio workflows use the same graph, ordinary nodes, Block interfaces, execution +and resource management as image workflows. Choose a task, select its exact model +and edit the controls declared by the backend. A model change must refresh the +task contract as well as the repository and revision. + +## Keep the stages meaningful + +| Route | Real computation | Presentation | +| ----------------------------------------- | ----------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| ACE-Step | Load pipeline -> Generate -> Export | Model Setup can combine the loader, its exclusive recipe/configuration and an authorized adapter. Generate retains prompt, lyrics and task controls. Export retains the existing audio player. | +| Stable Audio, LongCat AudioDiT, AudioLDM2 | Load pipeline -> Generate -> Export | The same ordinary operations, with controls and output formats supplied by the selected backend adapter. | +| MiniMax Music3 | Load models -> Semantic Generation -> Denoise -> Decode Audio -> Export | Decode Audio and its connected exporter can form Audio Output, keeping four visible stages and all five executable leaves. | +| Speech recognition | Load model + Load Audio -> Transcribe -> Transcript | Audio stays a separate previewable input. The output is text/structured transcription, rather than an audio output group. | +| Trim, join, loudness match | Load Audio source(s) -> Process Audio -> Export | Ordinary deterministic operations; no model loader or adapter is required. | + +The direct audio pipelines expose an integrated upstream Generate operation. +Splitting it into decorative Encode, Denoise and Decode nodes would not make its +internal computation editable. MiniMax's semantic generation is an actual stage +and must remain distinct from prompt encoding. + +Grouping is an explicit, undoable presentation change using the existing Block +contract. Inspect implementation and Separate stages expose the original leaves. +Flattened execution, connected values and model ownership stay authoritative. +Existing saved workflows retain their presentation until deliberately changed. +Shared, ambiguous or custom branches require explicit structural editing. + +## Sources and task controls + +ACE variation, continuation and repaint require a connected source audio node. +Keep upload, preview, playback and seek available on that source. Continuation +can retain separate loudness-match and join operations; repaint keeps its bounded +time interval. These operations do not disappear when Model Setup is grouped. + +Music controls such as lyrics, language, BPM and key appear only where the task +contract supports them. A nominal audio socket alone does not make those controls +valid for a sound-generation or speech model. AudioLDM2's candidate waveforms +remain available through Audio Variations. LongCat duration follows upstream +VAE-frame quantization; output is not padded to manufacture an exact duration. + +The selected audio contract must agree with the owner's literal repository, +immutable revision, pipeline and task. The revision remains on the model owner; +the audio signal itself carries the repository. Selecting an alternate compatible base must not +retain the previous model's hidden contract or source requirements. + +## LoRA ownership + +An adapter authoring declaration is permission to edit a particular model branch. +It is separate from broad model capabilities, installed artifacts, runtime +qualification and Automatic memory eligibility. The backend declares exact +tasks, repository/revision pairs, adapter node and supported row count; the +client validates that declaration against the current graph and node registry. + +The selected ACE authoring route initially supports one owned adapter row. Edit, +replace and remove remain available at that capacity. Loading another adapter +with the ordinary Load Adapter action does not establish a blended chain: that +action activates its selected adapter. Multi-adapter blending needs an explicit +Set Adapters operation and its actual runtime/resource contracts. Other audio +families receive no adapter permission merely because they share a loader shape. + +Legacy manual graphs remain editable through their ordinary nodes. Structural +removal can safely disconnect an owned row even after authoring permission is +withdrawn. Missing, stale, connected or ambiguous model identity must not grant +new automatic adapter edits. Direct audio adapter branches remain ineligible for +Automatic memory planning until their complete ownership and resource accounting +is supported; use the declared Custom/Expert path deliberately. + +## Delivery and validation + +AudioLDM2 needs a small compatibility bridge because the reviewed GPT-2 model +does not inherit the generation helper called by Diffusers. The bridge binds +the official Transformers helper, accepts only the reviewed releases +`5.16.0.dev0` and `5.18.0`, and verifies its source hash before use. It does not +install or activate a runtime. An unknown version or changed helper produces a +compatibility error instead of silently applying an unreviewed patch. + +Audio Output uses the existing audio field/player and original file export. +Verify playback, seek, download and restoration against the same completed task. +Input previews and transcoded playback are not proof of the original output's +identity. Record measured duration, sample rate, channels, finite samples and +nonempty output separately from listening quality, lyrics, timing or edit seams. + +Offload can reduce accelerator residency while increasing host-memory demand. +Supported options do not establish that a particular model, duration and recipe +fits a Windows machine. Quantized image support does not automatically authorize +quantized audio. Preserve creator settings and record any explicit test-instance +changes; a short smoke does not qualify the original full-length template. + +Contract tests, browser interaction, real generation, independent repeat +inference, listening, memory qualification and public media approval are separate +proof levels. Follow [workbench acceptance](workbench-acceptance.md) and the +[engineering procedure](cluster-engineering-lessons.md). Video and mixed +audio/video workflows have their own contracts and are outside this audio work. diff --git a/docs/cluster-engineering-lessons.md b/docs/cluster-engineering-lessons.md index feed03f0..58862fa4 100644 --- a/docs/cluster-engineering-lessons.md +++ b/docs/cluster-engineering-lessons.md @@ -133,6 +133,15 @@ The existing pre-import startup policy defaults `MIMALLOC_PURGE_DELAY=0` on Windows and preserves an explicit operator value. Document its allocation performance tradeoff; an allocator-only reproduction is not model fit proof. +Immediate purge does not guarantee reclamation when short-lived loader threads +allocate tensors that another thread later frees. Preserve thread ownership and +pool lifetime in allocator controls. Windows startup defaults official Diffusers +and Transformers loading to serial before imports, preserving each explicit +operator flag; other platforms retain their loading defaults. Document the +load-time tradeoff and require a fresh process when flags change. Repeat the +original model, cache release and next run separately; a CPU control or one +successful image cannot establish broad fit or repeatability. + ## Native edits and dynamic input types A successful run seeded through numeric test data does not prove the same field diff --git a/docs/developer-first-node-ux.md b/docs/developer-first-node-ux.md index 170b9bc4..836356fc 100644 --- a/docs/developer-first-node-ux.md +++ b/docs/developer-first-node-ux.md @@ -131,7 +131,24 @@ Grouping does not grant model capabilities or Automatic memory qualification. Whole-pipeline operations remain whole-pipeline operations; no fake encoder is inserted. A group with manually nested containers or mirrored custom interfaces requires explicit structural editing/ungrouping before automatic task adaptation. -New audio grouping recipes and video simplification remain deferred. +Audio supports the applicable Model Setup and Audio Output groups described +below. Video simplification remains separate. + +## Audio stages + +The same stage actions offer **Group model setup** for eligible direct audio +loaders and their exclusive configuration/adapter nodes. Native MiniMax retains +Semantic Generation and Denoise; **Group audio output** combines its real decoder +and Export Audio node. The group uses the existing player, file export and +inspection/interface controls. Direct whole-pipeline Generate operations retain +their separate exporter. Source audio and meaningful processing nodes remain +connected outside those groups. + +Selected ACE branches can expose one owned adapter row when the backend declares +the exact task, model revision and registered transport. Capacity restricts Add; +the existing row can still be edited, replaced or removed. Other audio models do +not inherit that permission. See [audio workflow stages](audio-workflows.md) for +the full task, adapter and qualification boundaries. ## Optional image stages diff --git a/docs/image-template-workflows.md b/docs/image-template-workflows.md index de54eeb2..195238d0 100644 --- a/docs/image-template-workflows.md +++ b/docs/image-template-workflows.md @@ -8,25 +8,40 @@ Opening an existing saved workflow preserves its graph. ## Current template inventory -All 54 image templates retain their creator prompts, seeds, sizes, inference -settings, immutable model revisions and required input roles. Their fresh graphs +The current inventory contains 56 image templates. The historical 54 converted +templates retain their creator prompts, seeds, sizes, inference settings, +immutable model revisions and required input roles. Their fresh graphs use explicit execution-profile selections rather than a family-wide default. -| Native stage family | Templates | Tasks | -| -------------------------- | --------: | ------------------------------------------- | -| Z-Image Turbo | 7 | Text to image and styles using LoRAs | -| Qwen Image | 10 | Text to image and ControlNet image layout | -| Qwen Image Edit | 7 | Image editing, inpainting and outpainting | -| Qwen Image Edit Plus | 7 | Single-image and multiple-reference editing | -| Qwen Image Layered | 1 | Layer decomposition | -| FLUX Schnell, Dev and Krea | 11 | Text to image and styles using LoRAs | -| FLUX Kontext | 2 | Single-image and multiple-reference editing | -| FLUX.2 Klein | 3 | Text to image and image/reference editing | - -These 48 recipes contain real model loading, input encoding, denoising and latent -decoding stages. **Encode Inputs** presents the relevant encoding stages together; +| Native stage family | Templates | Tasks | +| -------------------------- | --------: | ---------------------------------------------- | +| Z-Image Turbo | 7 | Text to image and styles using LoRAs | +| Qwen Image | 10 | Text to image and ControlNet image layout | +| Qwen Image Edit | 7 | Image editing, inpainting and outpainting | +| Qwen Image Edit Plus | 7 | Single-image and multiple-reference editing | +| Qwen Image Layered | 1 | Layer decomposition | +| FLUX Schnell, Dev and Krea | 11 | Text to image and styles using LoRAs | +| FLUX Kontext | 2 | Single-image and multiple-reference editing | +| FLUX.2 Klein | 3 | Text to image and image/reference editing | +| FLUX.2 Dev | 1 | Full-model text to image | +| Cosmos 3 Super | 1 | Full-model text to image with mandatory safety | + +The 48 historical native recipes and two additional full-model candidates contain +real model loading, input encoding, denoising and latent decoding stages. The two +full-model candidates remain separately unqualified; their presence does not +establish Auto readiness or fit on ordinary hardware. Fresh eligible native graphs present **Model Setup → Encode Inputs +→ Denoise → Image Output**. **Encode Inputs** presents the relevant encoding and +actual Guidance stages together; the exported graph retains their distinct backend calls and typed connections. Image, mask, control and reference inputs remain separate when their roles differ. +Model Setup includes exclusive connected LoRA/configuration leaves, while shared +suppliers stay external. Image Output contains the real decoder and Preview Image. +Additional media preparation, control, composite or upscale branches remain visible; +the four-stage presentation is the core native diffusion path, not a limit on all +workflow node counts. Existing saved layouts change only through explicit stage +actions. Combine encoding and Guidance and Separate encoding stages each support +one-step Undo. Inspecting or saving a workflow never changes a reusable library +definition implicitly. The four Qwen masked-edit/outpaint templates use real native stages with a backend-owned compatibility path for their original image preparation and final @@ -53,7 +68,10 @@ encoding or Guidance node merely to resemble another workflow. ## Guidance and preserved settings Qwen and Z-Image recipes contain a real **Guidance** owner whose Diffusers guider -feeds both prompt encoding and denoising. Their **Encode Inputs** stages retain +feeds both prompt encoding and denoising. This owner is inside Encode Inputs in +fresh graphs. Closing its Guidance disclosure hides the controls without disabling +execution; use its Enabled setting to change execution. Models without declared +Guidance have no Guidance section. Their **Encode Inputs** stages retain the authored positive and negative prompts; disabled guidance does not encode an unused negative. Qwen retains the upstream classifier-free guidance formulation and the template's scale. The seven Z-Image templates @@ -96,6 +114,19 @@ order. Native descriptor chains feed the one model owner through reference assembly, outpaint placement and the optional upscaler branch retain their declared recipe values. Every generator initialization retains the seed and the backend's device/state contract. +Model Setup exposes owned adapters as ordered real-node rows. Add LoRA opens a +draft form and inserts nothing until the selection is complete. Hub selections +require the exact commit, Safetensors weight filename and expected SHA-256. Add, +Remove and Move preserve other branches and support Undo; external shared suppliers +remain connected. Editing this form or grouping stages does not install a runtime +or load model weights. Normal model readiness and Run validation still apply. + +New image adapter edits also require the current selected backend capability, +execution profile and its exact `repository_revisions` pair to agree with the +registered adapter transport. An alias cannot override its native pipeline's +declared restriction. Missing or unsupported authority disables Add and ordering; +saved rows remain inspectable, and Remove can repair them through ordinary Undo +without silently discarding their values or shared connections on import. The converted Z-Image LoRA Style and Fast LoRA recipes explicitly retain the original whole-pipeline adapter name `default`. Their creator settings omitted @@ -135,8 +166,10 @@ npm run check:ui `template-operation-workflows.test.mjs` obtains the real selected backend starters, public capabilities and node schemas without constructing models or -reading operator extensions. It checks all 54 creator contracts, typed graph +reading operator extensions. Its historical migration fixture checks the original +54 creator contracts, typed graph exports, component policies, shared guidance and seeds, controlled extras, -save/restore, undo/redo and stale asynchronous construction. Those are contract -tests. Real model generation, paired image comparison, visual review and hardware -qualification remain separate evidence. +save/restore, undo/redo and stale asynchronous construction. The current public +catalog contains 56 image templates; additional native candidates have separate +selected-recipe tests. Those are contract tests. Real model generation, paired +image comparison, visual review and hardware qualification remain separate evidence. diff --git a/docs/modiff-client-architecture.md b/docs/modiff-client-architecture.md index 06657ab9..469824a2 100644 --- a/docs/modiff-client-architecture.md +++ b/docs/modiff-client-architecture.md @@ -179,6 +179,46 @@ indices only when the backend also declares the path as a selectable option. Reserved/empty path segments, undeclared paths, operation ports and ordinary parameter names remain subject to strict validation. +An optional `layout_conditioning` value uses the built-in `layout` editor only +when its field declares `fieldOptions.layoutConditioning`. Version 1 retains +its original placement/source grammar and declared reference count of 1–8. +Version 2 declares explicit `place`, `relocate` and `remove` actions. Removal +uses a null target box and requires a bound source; placement has no source. +Both versions use normalized XYXY coordinates, at most 32 unique region IDs, +4096 Unicode code points per description and a 64 KiB compact UTF-8 JSON limit. +Text is preserved, including whitespace; unpaired surrogates are refused. +Raw mode stores `null`. Edits use normal parameter history and Block bindings +and never rewrite the prompt field. The backend owns effective serialization. + +Source tools remain disabled unless the selected version-2 descriptor declares +`supportsBoundSourceRegions: true` and the operator reads an actual encoded +reference summary through the ordinary cache route. The string output +`layout_reference_summary` on the actual Image Encode supplier is joined to its producer's persisted task, attempt, +run-input hash, workflow and exact current source ancestry. A genuine encoding +cache hit may retain its earlier producer identity; the client does not relabel +it as a fresh computation. Image Encode can publish a new summary independently +of a Prompt that correctly refuses stale source IDs; re-encode that source branch, +read its summary and explicitly rebind the saved region. The compatible Prompt +summary remains available, but the widget reads the actual incoming supplier. +The summary describes up to ten ordered references, +their content identities and original/processed dimensions. It is local display +context, not an opaque execution receipt. Source/owner/graph changes mark it +stale, and each saved source region requires explicit rebind to a current ID. +The backend independently verifies the same process-local receipt in Prompt and +Denoise against actual images, processed tensors, owner and tensor versions. +Imported counts or summary strings cannot grant execution authority. A declared +editor does not grant model support, resource fit or runtime readiness. + +Generic workflow model descriptors can also carry optional immutable artifact +inventories. Model Manager keeps the existing native selection as its default; +`weightFormatSelections` adds up to two exact FP8R/NVFP4 repository, revision and +file selections through the existing Install/Repair action. These rows require +the existing public execution-profile and selected pipeline-support joins. +Private or unavailable profiles are excluded even if raw capabilities contain +download metadata. Installed files are labeled **Installed**, separately from +execution support, qualification and required-runtime status. This discovery +path does not extend the legacy Studio model union or infer Auto/template grants. + Backend-resolved operation schemas suppress mount-time selector initialization and automatic signal actions that would replace exact-profile metadata with generic family defaults. Signal transport, connection-driven control visibility @@ -208,6 +248,16 @@ write occurs. Task/model replacement keeps fresh runtime IDs where required; collapse/expand does not invalidate execution identity. Shared input edits and export resolve the same connected loader scope across group boundaries. +The same projection supports direct audio Model Setup and native audio +decode/export output groups. Audio Output derives its wording and preview from +the contained media contracts and uses the existing `UIAudioField`. The ordinary +node shell reserves the shared audio minimum width for declared Block previews +as well as ordinary `ui_audio` parameters. Whole-pipeline audio generation stays +integrated, and transcription retains text output. Backend-published selected +adapter policies use the same strict profile/artifact/task join for image and +audio; authoring permission does not enable Automatic memory planning or qualify +model execution. See [audio workflow stages](audio-workflows.md). + New eligible starters opt into grouping; saved workflows require an explicit group action. Complex manually nested/mirrored interfaces fail closed during automatic adaptation, with an explicit editing instruction instead of data loss. @@ -218,20 +268,57 @@ still owns values, interfaces and execution. Inspection is read-only; Separate stages is an explicit undoable structural edit. The interface inspector includes visible optional encoding sockets and labels their deferred stage preparation. -Optional image Model Setup, Prepare Mask and Image Output use that same ordinary +Fresh eligible native image drafts present **Model Setup → Encode Inputs → +Denoise → Image Output**. Encode Inputs contains its actual encoding and Guidance +leaves. Its Guidance disclosure hides controls only; the backend-declared Enabled +setting changes execution. A route without Guidance has no empty Guidance section. +Combined input groups use presentation provenance `modiff.visual-stages.v2/inputs` +so switching to a route without Guidance and back retains this layout. The graph +and executor still use the existing Block V2 contract. Historical v1 groups retain +their separate layout until the user selects **Combine encoding and Guidance**. +Combine and Separate each commit one history transaction. Combine creates a new +workflow-local definition from the current leaves; it never writes saved library +definitions. Current values, control labels, seals and explicitly removed controls +survive the conversion. Unsupported integrated or whole-pipeline tasks retain their +actual operations; required media and additional branches remain visible separately. + +Image Model Setup, Prepare Mask and Image Output use that same ordinary node shell and `BlockInstanceV2` contract. `visualOperationGroups` selects only existing eligible leaves: a loader with connected built-in descriptor/configuration utilities, an exact Load Image/Outpaint Canvas pair feeding both image and mask to the same masked consumer, or a declared image decoder plus its direct previews. -Single loaders/whole-pipeline previews and unrelated/shared modifiers are not -wrapped. Explicit stage actions leave other instances untouched and commit one -history transaction; opening documents and current template defaults do not -opt into these additional groups. Output preview bindings use the existing V2 +Fresh native image drafts wrap a single eligible loader as Model Setup and its +decoder/preview as Image Output. Whole-pipeline previews and unrelated/shared +modifiers remain external. Prepare Mask remains an explicit optional grouping. +Explicit stage actions leave other instances untouched and commit one history +transaction; opening saved documents does not opt into new groups. Output preview bindings use the existing V2 preview inventory and backend output-slot authority. Model Setup's projected loader resolves back to its unpacked runtime owner for the complete ordinary workflow planner, rather than adapting only the wrapper's implementation. Values, configured interfaces, immutable reusable snapshots and explicit save/separate behavior keep their existing authority. +Model Setup's Adapters controls follow the real ordered adapter wires. The Add +dialog keeps a local draft until a populated local selection or immutable Hub +selection is accepted; blank rows never enter the executable graph. Hub adapters +require an exact commit, contained Safetensors weight filename and expected SHA-256. +Add, Remove and Move use the same graph transaction and Undo path. Native +`previous_loras` chains and whole-pipeline `pipeline`/`output` chains keep their +declared sockets and backend validation. Shared descriptor/configuration suppliers +stay outside the wrapper; connected scalar suppliers and unrelated branches remain +intact. Sealed controls cannot be changed or removed by these actions. A later +whole-pipeline adapter cannot replace and unload earlier adapters silently. +Current selected-profile `adapterAuthoring` metadata can grant image adapter +edits for an exact task, immutable base pair and registered adapter transport, +independently of aggregate capability and qualification flags. The execution +profile parser validates its bounded schema; the permission resolver rechecks +the current operation, profile, selectors, pins and registry before each edit. +Absent policy retains canonical capability restrictions; malformed or mismatched +policy does not fall back. Add checks the declared owned-row limit separately +from permission to edit or reorder existing rows. Structural inspection and safe +Remove can handle an existing bounded chain without granting new authoring. +Other ordered-chain callers retain their legacy limit. This policy does not +change the effective graph, runtime adapter validation, Auto admission or +installation consent. Optional groups retain ordinary type-inferred scalar editors even when registry fields omit `display`. An empty or suppressed field label uses its field name in the explicit interface; the original leaf field and value remain unchanged. @@ -1577,3 +1664,12 @@ the matching instance preview and cannot display stale source artifacts. Queue rows and tooltips give completed/cancelled/failed states priority over retained progress messages. Failure diagnostics remain visible, including for older backend receipts. + +Runtime Auto resource updates are applied only after the websocket handler +checks the active run's ownership. Their current-value comparison uses the pure +expanded-leaf export with seed randomization disabled; it never requests fresh +ancillary execution authority or submits that snapshot. Connected resource fields, +newer literal edits and conflicting shared Block controls continue to reject the +update. Successful patches retain one Undo transaction. Actual Run and Preview +still require their exact current ancillary execution scope before export and +submission. diff --git a/docs/troubleshooting.md b/docs/troubleshooting.md index 1e76c446..04c9c0e3 100644 --- a/docs/troubleshooting.md +++ b/docs/troubleshooting.md @@ -202,6 +202,11 @@ Use Auto for the first known recipe. Switch to Expert only when you intend to di 4. Retry with a known Auto recipe, smaller spatial/temporal inputs, fewer frames, or a lighter model. 5. Restart the backend if the runtime remains unhealthy. +Cleanup warnings appear with the server's exact reasons. For example, live +offload hooks can retain their disk files even after other caches are released. +A zero released-file count alone does not mean cleanup failed: files may already +have been reclaimed when their owners were released. + An Auto recipe can reduce risk but cannot guarantee success under changing memory pressure. Include the selected model, task, dimensions/frames, and the redacted exception type in a bug report. ## A Run Is Taking Much Longer Than Expected diff --git a/docs/workflow-authoring-ux.md b/docs/workflow-authoring-ux.md index eca69e1a..09d54062 100644 --- a/docs/workflow-authoring-ux.md +++ b/docs/workflow-authoring-ux.md @@ -1,15 +1,15 @@ # Workflow authoring and model selection -The developer-first editor opens Workflows and also offers Templates. It uses one editable +Creator opens Templates. Developer opens Workflows. Both use the same editable nodes, Blocks, execution path and independent memory policy. ## Start a workflow -In Workflows, search for an action or filter by Image, Audio, Video, 3D, or Text & +In Developer, search for an action or filter by Image, Audio, Video, 3D, or Text & Utilities. Click a task once to create connected nodes. Select the model on the loader and edit the prompt or parameters on the graph. Creating a graph does not -load models or install packages. Custom nodes are available through -**Nodes → Add custom node**, or by dropping a structured Python file on the canvas. +load models or install packages. Custom node source review remains available at +the bottom of the chooser and through Nodes → Custom nodes. The backend resolves a task against published execution profiles. It prefers the last explicitly selected compatible model when its exact artifacts and runtime @@ -25,24 +25,168 @@ Composable routes expose meaningful independent nodes such as Load Models, Encode Prompt, Denoise and Decode Latents. Tasks can need additional image, mask, conditioning or audio operations. Whole-pipeline routes expose Generate/Edit operations instead; those nodes do not claim independently replaceable denoising. -Qwen-Image 2.1 uses its supported whole-pipeline route at the reviewed Diffusers pin. +Qwen-Image 2.1 uses its supported whole-pipeline route with the compatible +installed Diffusers release. Its historical source review remains separately +pinned. + +Curated fresh image recipes can request an exact backend `authoringRecipeId` on +the ordinary operation-starter endpoint. Its optional hash-covered `authoring` +record uses the existing role, edge and semantic form-binding tuples, plus +primitive `initialValues` triples. The backend binds the recipe to the reviewed +pipeline, task, execution profile and base specification. It declares retained +attention/VAE settings, the real Guider's CFG control and FLUX's separate embedded +scale. Qwen masked recipes explicitly select the owned whole-v1 compatibility +policy; outpainting declares the canvas utility and image/mask wires directly. +These are creation defaults, not a second executor or model-loading path. Clients +materialize ordinary nodes, seed untouched unconnected values and then apply +the authored form values. Existing authored or connected settings are preserved. +Requests without a recipe retain the ordinary developer starter defaults and +response envelope. Opening or running a saved graph never requests these defaults +or rewrites that graph. Unknown recipe IDs and mismatched pipeline/task/profile +selections fail closed. + +Canonical example-library generation publishes ordinary executable leaves using +the existing projection for MoDiff's declared visual stage groups. Current public +control values, typed wires, operation ownership and stage roles are preserved; +user/custom Blocks are retained. This export mode validates the existing Block +hashes before projection and applies portable-data cleanup afterward. Ordinary +Save/export and the active canvas retain their grouped Block definitions. The +generator does not edit or rehash immutable nested definitions to sanitize them. +Pair-only regeneration also retains the published device fallback defaults on +unchanged, unambiguously matched executable nodes, rather than substituting the +generator host's defaults. Authored device values and fresh field schemas remain +intact; ambiguous matches or incompatible preserved defaults reject regeneration. + +## Structured image layout and optional prompt enhancement + +An encoding field exposes structured layout only when its current backend schema +declares support. Region IDs, descriptions and normalized boxes remain ordinary +graph values with Undo/Redo and saved-workflow persistence. Version two separates +Place, Relocate from source and Remove from source. Removing a source explicitly +converts the draft to Place, retaining its description and target box; a removal +without a target starts with the full-frame target. Connected fields remain read-only. + +Source-region tools require **Read encoded references** from the matching encoding +task. The client checks the recorded graph and reference identities before offering +those coordinates. Replacing or reordering media invalidates that context; read the +new encoding and explicitly rebind affected regions. A cached display summary is +not permission to execute a different source graph. Ordinary nodes and exposed +Block fields share the same editor and validation. + +Where the current backend recipe declares an optional enhancement, **Enable +enhancement** adds its ordinary nodes and bindings through one graph transaction. +Review its model and resource settings, then choose **Preview**. Normal workflow +Run continues to use the authored prompt and excludes the declared optional +branch; Preview runs only that branch and its declared dependencies. Both paths +retain the selected Auto or Expert resource policy. + +**Apply** requires the completed owned Preview, current runtime/source identity, +consumed inputs and validated output summary to agree with the current document. +Changing the prompt, references, model, workflow or worker invalidates a stale +proposal. Apply uses the ordinary Undo transaction. **Regenerate** reuses the +original request after an untouched Apply; **Disable** preserves subsequent user +edits. Reload requires a fresh verified Preview before applying a proposal. + +Current enhancement authoring permits plain text-to-image and image editing only. +Structured-layout enhancement remains unavailable because its publisher output +does not preserve the required authored region IDs, count and geometry. Client +contract tests do not qualify generated images, browser Apply with a trained model, +model turnover, Auto placement or any additional hardware. -## Arrange workflow tabs +## Group nodes into a reusable Block -Drag a tab label left or right to reorder open workflows. The accent marker -shows the drop position; hold near either edge to scroll a crowded tab strip. -Escape or releasing outside the strip cancels. Dragging does not switch the -active workflow, edit its graph, or interrupt a run. Close and New tab remain -separate actions. +Select nodes and choose **Create block**. New definitions use Block V2 and can +contain existing Blocks such as Encode Inputs. Their nested contents, values and +crossing connections are retained. Existing saved definitions are not rewritten. +Creation errors appear inside the dialog. Public sockets and controls remain +available; the dialog lets you choose controls and rename ports. -With a tab focused, use Alt+Shift+Left/Right to move it; ordinary arrow keys -still move focus, and Enter selects it. Order is retained on refresh in this -browser. The existing recovery limit remains 12 tabs: active, unsaved and recent -workflows are retained in their arranged relative order. Save important workflows -to the backend library; browser recovery is not a backup or cross-device tab sync. +Connection validation follows executable nodes inside containers. A loader and +denoiser grouped around an external encoder can exchange values without creating +an execution cycle. Required input checks also inspect these internal nodes; a +missing model connection blocks Run and identifies the affected node or Block. + +When changing a model inside a Block, the change preview may retire untouched, +automatically derived outputs that the new route cannot provide and nobody uses. +Connected outputs, configured interfaces and preview bindings remain protected. +Incompatible contracts require repair before the change can be applied. + +Scalar inputs declared with an editor (text, number, toggle or choices) retain +both their editor and optional socket. A connection supplies the execution value +and disables the literal editor; disconnecting restores the saved fallback. +The source is shown when available. Model and media inputs retain their sockets. + +For a custom graph using Auto memory, **Graph ready · Auto check at Run** means +static graph checks passed. Run checks the exact backend resource plan before +submission. Use **Resources → Check Auto execution plan** to inspect it earlier. +Installed model files alone do not qualify a recipe; Custom memory retains your +chosen settings without claiming Auto qualification. ## Change the model +### Image Model Setup adapters + +**Add LoRA** requires the selected image model's current backend capability, +execution profile, exact repository/revision pair and registered adapter sockets +to agree. Missing, refreshing or unsupported metadata disables the action with a +reason; opening and applying an adapter draft both recheck it. A LoRA socket alone +does not declare model support. The profile's optional `repository_revisions` +metadata contains bounded, unique pairs for its declared repositories; older +metadata remains readable but does not authorize new adapter edits. +An optional selected-profile `adapterAuthoring` policy can explicitly permit +editing adapters for its declared task, exact base-model pair and registered +adapter node. That permission is separate from aggregate model support and +runtime qualification. An optional `requiredControls` map constrains the +actual model owner before Add, Edit or Move. The current conditional Super +image route requires NONE/Auto Offload disabled/CPU weight staging, no +quantization or external components, and remote code disabled. Redux editing +requires effective NONE, no quantization/prequantized component, and declared +`device_map=none`. A declared pure execution recipe may override placement; a non-`none` raw +loader device map still wins over the recipe. Unbound `null` inputs qualify +only through the current registered optional-input schema. Missing, +malformed, unknown or ambiguous controls disable editing with a reason; no +field or execution recipe is inserted to obtain permission. Auto can use +only an already admitted candidate satisfying these controls. These checks +do not enable model execution or satisfy Cosmos safety/runtime readiness. +Without it, native aliases retain the canonical +pipeline's adapter restrictions. Malformed or mismatched policy disables edits. +Separate policies cover the dense pinned FLUX.1-dev, FLUX.1-schnell and +FLUX.1-Krea-dev native text-to-image profiles, FLUX.1-Kontext-dev editing, and +FLUX.2-klein-4B text-to-image and editing. Each permits only its own reviewed +repository/revision pair; sharing a pipeline class does not transfer permission. +Multi-reference authoring uses the current backend owner's explicitly declared +edit execution mode, with the actual task and profile still checked. Saved graph +hints cannot grant that mapping. Compatible FP8/NVFP4 models, Klein Base/KV and +unrelated tasks receive no permission from these policies. Existing runtime +routes and qualification remain unchanged. Add also checks the owned-row limit. Reaching that limit +leaves permitted existing rows editable and reorderable. + +Existing unsupported adapters stay visible with their values and connections. +Their editors and ordering controls remain disabled; **Remove** can repair the +graph through the ordinary Undo transaction, subject to shared supplier and +sealed interface checks. Opening a saved graph never discards adapters or regroups +its stages. Reviewed whole-image adapters preserve the owner-to-generation scope +through their actual pipeline sockets rather than becoming operation stages. + +Fresh native image recipes group their declared image decoder and connected +Preview into **Image Output**, including decoders whose backend operation uses +the generic `diffusion.decode_latents` identity. This changes presentation only; +the executable decoder, output fields and Preview edge remain intact. + +### Guidance control visibility + +Removing a Guidance row through Configure interface hides the row, not the +underlying operation or its effect. The current value is retained on its original +stage. Explicit removals are recorded by `{nodeId, fieldId}` in the optional +instance `presentation.removedControlBindings` list and survive reload and dynamic +field refresh. Re-exposing a control clears its removal record. Reusable-node +definitions can carry the same optional `removedControlBindings` list as initial +presentation; it is excluded from execution identity. Both client and backend +validate bounded, unique bindings. Historical omissions without a removal record +are not guessed to be deliberate removals, and opening a workflow does not rewrite it. + +### Model selection + The model field of a canonical loader opens **Choose model for Load Models**. Search by model or repository and optionally filter to Downloaded. Names precede repository IDs; download status is a trailing badge. Selecting a row resolves the @@ -55,6 +199,13 @@ Edited values, custom wiring or ambiguous outputs use the preservation/review planner. Schema or connection differences requiring review are shown before applying. Undo/Redo and saved workflow reload use the same graph history and persistence. +Legacy managed Task changes apply the existing fallback for an unavailable +default/CUDA device using the current backend runtime metadata before building +the graph. CPU offload settings normalize through the ordinary form policy; +authored prompts remain intact. Explicit unavailable XPU, MPS or unknown device +choices remain visible for validation. A newer document or creative edit still +cancels a pending graph operation. + A raw implementation/component loader has a picker restricted to compatible installed artifacts. In a connected workflow, model selection derives the Pipeline Type and applies both atomically. A raw implementation loader exposes Pipeline Type @@ -71,38 +222,8 @@ under the row's disclosure. An explicit successful selection is remembered per t **Restore model defaults** resets unconnected creative controls using the selected profile's starter. Model ownership, memory settings, media and custom branches remain intact; Undo restores the prior graph. Public Block model controls resolve -the owning internal loader before using the existing atomic Block transaction. -Intentional Add/Load/Reload enables validated custom code; opening a picker or -discovering a file does not. Only load trusted Python. - -## Group nodes into a reusable Block - -Select nodes and choose **Create block**. New definitions use Block V2 and can -contain existing Blocks such as Encode Inputs. Their nested contents, values and -crossing connections are retained. Existing saved definitions are not rewritten. -Creation errors appear inside the dialog. Public sockets and controls remain -available; the dialog lets you choose controls and rename ports. - -Connection validation follows executable nodes inside containers. A loader and -denoiser grouped around an external encoder can exchange values without creating -an execution cycle. Required input checks also inspect these internal nodes; a -missing model connection blocks Run and identifies the affected node or Block. - -When changing a model inside a Block, the change preview may retire untouched, -automatically derived outputs that the new route cannot provide and nobody uses. -Connected outputs, configured interfaces and preview bindings remain protected. -Incompatible contracts require repair before the change can be applied. - -Scalar inputs declared with an editor (text, number, toggle or choices) retain -both their editor and optional socket. A connection supplies the execution value -and disables the literal editor; disconnecting restores the saved fallback. -The source is shown when available. Model and media inputs retain their sockets. - -For a custom graph using Auto memory, **Graph ready · Auto check at Run** means -static graph checks passed. Run checks the exact backend resource plan before -submission. Use **Resources → Check Auto execution plan** to inspect it earlier. -Installed model files alone do not qualify a recipe; Custom memory retains your -chosen settings without claiming Auto qualification. +the owning internal loader before using the existing atomic Block transaction. Imported custom sources still require explicit review +and approval; opening a picker or choosing Developer does not enable code. ## Names, examples and library @@ -123,7 +244,7 @@ values. Full creator-example coverage and all legacy insertion paths remain trac work; the presence of a sample does not qualify a model's output. The sidebar offers **Start**, **My workflows**, **Example workflows** and -**Recovery drafts**. Start uses the same task browser as the Workflows launcher; +**Recovery drafts**. Start uses the same task browser as the Developer launcher; it creates a separate tab without replacing the current graph. Open workflow shows My workflows. Lists remain bounded and paginated. diff --git a/eslint.config.js b/eslint.config.js index ff5160fe..f2959509 100644 --- a/eslint.config.js +++ b/eslint.config.js @@ -7,7 +7,7 @@ import reactRefresh from 'eslint-plugin-react-refresh'; import tseslint from 'typescript-eslint'; export default tseslint.config( - { ignores: ['dist', 'artifacts', 'playwright-report', 'test-results'] }, + { ignores: ['dist', 'artifacts', 'playwright-report', 'test-results', 'reviews'] }, { files: ['playwright.config.ts', 'tests/e2e/**/*.ts'], languageOptions: { diff --git a/package.json b/package.json index d45c825f..835f1246 100644 --- a/package.json +++ b/package.json @@ -22,7 +22,7 @@ "e2e:studio:mocked": "playwright test tests/e2e/studio-mocked/studio-mocked.spec.ts", "e2e:studio:live-backend": "playwright test tests/e2e/live-backend/live-backend.spec.ts", "e2e:migration:isolated": "node scripts/run-isolated-historical-migration-e2e.mjs", - "e2e:shared-controls": "playwright test tests/e2e/shared-controls/shared-controls.spec.ts", + "e2e:shared-controls": "playwright test tests/e2e/shared-controls/shared-controls.spec.ts tests/e2e/shared-controls/layout-conditioning.spec.ts", "format": "prettier --write .", "format:check": "prettier --check .", "gallery:run": "node scripts/template-gallery-runner.mjs", @@ -70,7 +70,7 @@ "test:block-schema-v2": "node --test scripts/block-schema-v2.test.mjs scripts/block-container-interface-v1.test.mjs", "test:block-route-selection-v1": "node --test scripts/block-route-selection-v1.test.mjs", "test:block-runtime-v2": "node --test scripts/block-runtime-v2.test.mjs scripts/block-media-readiness-v2.test.mjs", - "test:block-renderer-v2": "node --test scripts/block-renderer-v2.test.mjs scripts/encoding-node-presentation.test.mjs scripts/encoding-optional-input.test.mjs", + "test:block-renderer-v2": "node --test scripts/block-renderer-v2.test.mjs scripts/encoding-node-presentation.test.mjs scripts/encoding-optional-input.test.mjs scripts/layout-conditioning.test.mjs", "test:block-persistence-v2": "node --test scripts/block-persistence-v2.test.mjs", "test:modular-hierarchy-v2": "node --test scripts/modular-hierarchy-v2.test.mjs scripts/catalog-evidence-discovery.test.mjs scripts/modular-composition-execution.test.mjs scripts/reviewed-value-ports-v2.test.mjs", "test:composite-migration-ui": "node --test scripts/composite-migration-ui.test.mjs", @@ -80,7 +80,7 @@ "test:graph-export": "node --test scripts/flow-graph-export.test.mjs", "test:hugging-face-cluster-drag": "node --test scripts/hugging-face-cluster-drag.test.mjs", "test:hugging-face-node-library": "node --test scripts/hugging-face-node-library.test.mjs", - "test:templates": "node --test scripts/modiff-template.test.mjs scripts/template-operation-workflows.test.mjs scripts/image-full-native-template-candidates.test.mjs scripts/image-model-usage-policies.test.mjs scripts/workflow-library-dependency-contracts.test.mjs", + "test:templates": "node --test scripts/modiff-template.test.mjs scripts/template-operation-workflows.test.mjs scripts/image-full-native-template-candidates.test.mjs scripts/image-model-usage-policies.test.mjs scripts/workflow-library-dependency-contracts.test.mjs scripts/workflow-library-canonical-export.test.mjs scripts/workflow-library-image-stages.test.mjs", "test:task-templates": "node --test scripts/task-template-contracts.test.mjs", "test:template-assets:local": "node --test scripts/template-default-inputs.test.mjs", "test:template-quality": "node --test scripts/template-quality.test.mjs", @@ -92,11 +92,11 @@ "test:demo-tools": "node --test scripts/bounded-browser-process.test.mjs scripts/run-fashion-demo.test.mjs scripts/prepare-fashion-demo.test.mjs scripts/export-fashion-demo.test.mjs scripts/image-prototyping-campaign.test.mjs", "test:gallery-queue": "node --test scripts/example-generation-queue.test.mjs scripts/image-prototyping-campaign.test.mjs", "test:driver-contract": "node --test scripts/hugging-face-runtime-contract.test.mjs", - "test:graph-mutations": "node --test scripts/flow-graph-mutations.test.mjs scripts/graph-fixer.test.mjs scripts/block-seed-repair-v2.test.mjs scripts/block-derived-control-repair-v2.test.mjs", + "test:graph-mutations": "node --test scripts/flow-graph-mutations.test.mjs scripts/graph-fixer.test.mjs scripts/block-seed-repair-v2.test.mjs scripts/block-derived-control-repair-v2.test.mjs scripts/adapter-chain-links.test.mjs", "test:graph-visuals": "node --test scripts/graph-visuals.test.mjs scripts/node-measurement-dispatch.test.mjs scripts/node-connection-search.test.mjs", "test:media-viewer": "node --test scripts/media-viewer.test.mjs scripts/workflow-png-package.test.mjs", - "test:requests": "node --test scripts/controlled-execution-receipt.test.mjs scripts/media-attachment.test.mjs scripts/node-presentation.test.mjs scripts/service-package.test.mjs scripts/node-store-requests.test.mjs scripts/operation-catalog.test.mjs scripts/operation-component-bundle-inputs.test.mjs scripts/operation-component-bundle.test.mjs scripts/operation-authoring.test.mjs scripts/operation-modification-matrix.test.mjs scripts/request-boundary.test.mjs scripts/server-actions.test.mjs scripts/shared-store-requests.test.mjs scripts/supervisor-startup.test.mjs scripts/studio-output-requests.test.mjs scripts/resolved-execution-inputs.test.mjs scripts/runtime-resources.test.mjs scripts/websocket-connection.test.mjs scripts/backend-proxy-lifecycle.test.mjs", - "test:run-coordinator": "node --test scripts/run-coordinator.test.mjs scripts/compatibility-panel.test.mjs scripts/run-issue-store.test.mjs scripts/block-runtime-hints-v2.test.mjs", + "test:requests": "node --test scripts/controlled-execution-receipt.test.mjs scripts/media-attachment.test.mjs scripts/node-presentation.test.mjs scripts/service-package.test.mjs scripts/node-store-requests.test.mjs scripts/operation-catalog.test.mjs scripts/operation-component-bundle-inputs.test.mjs scripts/operation-component-bundle.test.mjs scripts/operation-authoring.test.mjs scripts/operation-authoring-recipes.test.mjs scripts/image-stage-groups.test.mjs scripts/model-setup-adapter-authority.test.mjs scripts/audio-authoring.test.mjs scripts/operation-modification-matrix.test.mjs scripts/request-boundary.test.mjs scripts/server-actions.test.mjs scripts/shared-store-requests.test.mjs scripts/supervisor-startup.test.mjs scripts/studio-output-requests.test.mjs scripts/resolved-execution-inputs.test.mjs scripts/prompt-enhancement-summary.test.mjs scripts/ancillary-operations.test.mjs scripts/ancillary-execution-scope.test.mjs scripts/prompt-enhancement-authoring.test.mjs scripts/prompt-enhancement-preview.test.mjs scripts/runtime-resources.test.mjs scripts/websocket-connection.test.mjs scripts/backend-proxy-lifecycle.test.mjs", + "test:run-coordinator": "node --test scripts/run-coordinator.test.mjs scripts/ancillary-run-coordinator.test.mjs scripts/compatibility-panel.test.mjs scripts/run-issue-store.test.mjs scripts/block-runtime-hints-v2.test.mjs scripts/workflow-auto-weight-loading.test.mjs", "test:run-activity": "node --test scripts/run-activity.test.mjs", "test:template-input-preview": "node --test scripts/template-input-preview.test.mjs", "test:asset-storage": "node --test scripts/template-assets.test.mjs && node scripts/run-python.mjs scripts/template-gallery-assets.test.py", diff --git a/scripts/adapter-chain-links.test.mjs b/scripts/adapter-chain-links.test.mjs new file mode 100644 index 00000000..39b57226 --- /dev/null +++ b/scripts/adapter-chain-links.test.mjs @@ -0,0 +1,426 @@ +import assert from 'node:assert/strict'; +import { after, before, beforeEach, test } from 'node:test'; +import { createServer } from 'vite'; + +let server, flowStore, nodesStore, studioStore, bridge, controlled, chain; +const originalFetch = globalThis.fetch; +before(async () => { + const storage = new Map(); + globalThis.localStorage = { + getItem: (key) => storage.get(key) ?? null, + setItem: (key, value) => storage.set(key, value), + removeItem: (key) => storage.delete(key), + }; + globalThis.window = { + dispatchEvent: () => true, + location: { origin: 'http://127.0.0.1:5191' }, + localStorage: globalThis.localStorage, + requestAnimationFrame: (callback) => setTimeout(() => callback(Date.now()), 0), + cancelAnimationFrame: clearTimeout, + setTimeout, + }; + server = await createServer({ + configFile: false, + logLevel: 'silent', + optimizeDeps: { noDiscovery: true }, + server: { middlewareMode: true, hmr: false, watch: null }, + appType: 'custom', + }); + flowStore = (await server.ssrLoadModule('/src/stores/useFlowStore.ts')).useFlowStore; + nodesStore = (await server.ssrLoadModule('/src/stores/useNodeStore.ts')).useNodesStore; + studioStore = (await server.ssrLoadModule('/src/stores/useStudioStore.ts')).useStudioStore; + bridge = await server.ssrLoadModule('/src/studio/graphBridge.ts'); + controlled = await server.ssrLoadModule('/src/studio/controlledWorkflows.ts'); + chain = await server.ssrLoadModule('/src/studio/adapterChainLinks.ts'); + globalThis.fetch = async (url, options) => { + assert.equal(new URL(url).pathname, '/cache'); + assert.equal(options.method, 'DELETE'); + return new Response(JSON.stringify({ error: false, nodes: JSON.parse(options.body).nodes }), { + status: 200, + headers: { 'Content-Type': 'application/json' }, + }); + }; +}); +after(async () => { + globalThis.fetch = originalFetch; + await server?.close(); +}); + +function nativeFixture() { + const input = (type) => ({ type, display: 'input' }); + const output = (type) => ({ type, display: 'output' }); + const make = (id, role, module, action, params) => ({ + id, + type: 'custom', + position: { x: 0, y: 0 }, + data: { + type: 'custom', + module, + action, + label: action, + category: 'Test', + studioOwned: true, + studioRole: role, + params, + }, + }); + const nodes = [ + make('models', 'models', 'modules.ModularDiffusers', 'ModelsLoader', { + model_type: { type: 'string', value: 'QwenImageModularPipeline' }, + repo_id: { type: 'string', value: '' }, + lora_list: input('custom_lora'), + text_encoders: output('TextEncoders'), + unet_out: output('DenoiseModel'), + vae_out: output('VAE'), + scheduler: output('Scheduler'), + }), + make('prompt', 'prompt', 'modules.ModularDiffusers', 'EncodePrompt', { + text_encoders: input('TextEncoders'), + prompt: { type: 'text', value: 'authored prompt' }, + embeddings: output('TextEmbeddings'), + }), + make('denoise', 'denoise', 'modules.ModularDiffusers', 'Denoise', { + unet: input('DenoiseModel'), + scheduler: input('Scheduler'), + embeddings: input('TextEmbeddings'), + latents: output('Latents'), + }), + make('decode', 'decode', 'modules.ModularDiffusers', 'DecodeLatents', { + vae: input('VAE'), + latents: input('Latents'), + images: output('image'), + }), + make('preview', 'preview', 'modules.Image', 'Preview', { image: input('image') }), + ]; + const connect = (source, sourceHandle, target, targetHandle) => ({ + id: `${source}.${sourceHandle}-${target}.${targetHandle}`, + source, + sourceHandle, + target, + targetHandle, + type: 'default', + }); + const edges = [ + connect('models', 'text_encoders', 'prompt', 'text_encoders'), + connect('models', 'unet_out', 'denoise', 'unet'), + connect('models', 'scheduler', 'denoise', 'scheduler'), + connect('models', 'vae_out', 'decode', 'vae'), + connect('prompt', 'embeddings', 'denoise', 'embeddings'), + connect('denoise', 'latents', 'decode', 'latents'), + connect('decode', 'images', 'preview', 'image'), + ]; + const form = { + ...studioStore.getState().form, + modelType: 'QwenImageModularPipeline', + mode: 'text_to_image', + resourceMode: 'expert', + quantizationMode: 'none', + prompt: 'authored prompt', + }; + const binding = { + modelType: form.modelType, + mode: form.mode, + nodes: Object.fromEntries(nodes.map((node) => [node.data.studioRole, node.id])), + managedNodeIds: nodes.map((node) => node.id), + managedEdgeIds: edges.map((edge) => edge.id), + fingerprint: `${form.mode}:${form.modelType}:${form.resourceMode}:${form.quantizationMode}`, + createdAt: 1, + updatedAt: 1, + }; + const lora = make('lora-definition', 'loraAdapter', 'modules.ModularDiffusers', 'Lora', { + previous_loras: input('custom_lora'), + lora: output('custom_lora'), + model: { type: 'string', value: '' }, + scale: { type: 'float', value: 1 }, + adapter_name: { type: 'string', value: '' }, + }); + nodesStore.setState({ + nodesRegistry: Object.fromEntries( + [...nodes, lora].map((node) => [ + `${node.data.module}.${node.data.action}`, + { ...node.data, studioOwned: undefined, studioRole: undefined }, + ]), + ), + studioModelCapabilities: [], + studioModelCapabilitiesAuthoritative: false, + studioExecutionSpecInvalid: false, + }); + flowStore.setState({ + nodes, + edges, + historyPast: [], + historyFuture: [], + historyTransaction: null, + viewport: { x: 0, y: 0, zoom: 1 }, + }); + studioStore.setState({ + form, + graphBinding: binding, + graphFinalization: null, + workflowTabs: [], + activeWorkflowTabId: null, + autoResourcePlan: null, + autoFieldOverrides: {}, + }); + assert.equal(bridge.syncStudioGraphDefinition(form), true); + assert.equal(bridge.getStudioGraphRunBlockingMessage(form), null); + return form; +} +beforeEach(() => nativeFixture()); + +const settings = { + adapterName: 'one', + scale: 0.6, + additionalAdapters: [ + { adapterName: 'two', scale: 0.9 }, + { adapterName: 'three', scale: 1.1 }, + ], +}; +const options = { graphPrepared: true, notify: false }; +const adapterNodes = () => + flowStore + .getState() + .nodes.filter((node) => node.data.studioRole?.startsWith('loraAdapter')) + .sort( + (a, b) => + (a.data.studioRole === 'loraAdapter' ? 0 : Number(a.data.studioRole.split(':')[1])) - + (b.data.studioRole === 'loraAdapter' ? 0 : Number(b.data.studioRole.split(':')[1])), + ); + +// Undo refreshes visual edge styles and derived handle connection flags. Compare +// the authored nodes, values, positions and typed wires independently of those. +const authoredGraph = () => ({ + nodes: flowStore.getState().nodes.map((node) => ({ + ...node, + data: { + ...node.data, + params: Object.fromEntries( + Object.entries(node.data.params).map(([key, param]) => { + const { isConnected: _connected, ...authored } = param; + return [key, authored]; + }), + ), + }, + })), + edges: flowStore.getState().edges.map(({ id, source, sourceHandle, target, targetHandle, type }) => ({ + id, + source, + sourceHandle, + target, + targetHandle, + type, + })), +}); + +const expectNativeChain = (adapters) => { + const links = flowStore.getState().edges.filter((edge) => adapters.some((node) => node.id === edge.source)); + assert.deepEqual( + links.map(({ source, sourceHandle, target, targetHandle }) => [source, sourceHandle, target, targetHandle]), + adapters.map((adapter, index) => [ + adapter.id, + 'lora', + adapters[index + 1]?.id ?? 'models', + index < adapters.length - 1 ? 'previous_loras' : 'lora_list', + ]), + ); +}; + +test('legacy native multi-LoRA authors the complete ordered descriptor chain and seals it atomically', async () => { + const form = studioStore.getState().form; + const before = structuredClone(authoredGraph()); + await controlled.addLoraWorkflowBlock(form, settings, options); + const adapters = adapterNodes(); + assert.equal(adapters.length, 3); + assert.deepEqual( + adapters.map((node) => node.data.params.adapter_name.value), + ['one', 'two', 'three'], + ); + assert.deepEqual( + adapters.map((node) => node.data.params.scale.value), + [0.6, 0.9, 1.1], + ); + expectNativeChain(adapters); + assert.equal(bridge.getStudioGraphRunBlockingMessage(form), null); + assert.equal(studioStore.getState().graphBinding.finalizationProof.schemaVersion, 3); + assert.equal(flowStore.getState().historyPast.length, 1); + flowStore.getState().undo(); + assert.deepEqual(authoredGraph(), before); +}); + +test('native replacement removes stale adapters and bypass links without changing creative fields', async () => { + const form = studioStore.getState().form; + await controlled.addLoraWorkflowBlock(form, settings, options); + const previous = adapterNodes(); + const creativeNodes = structuredClone( + authoredGraph().nodes.filter((node) => !node.data.studioRole.startsWith('loraAdapter')), + ); + await controlled.addLoraWorkflowBlock(form, { adapterName: 'replacement', scale: 0.4 }, options); + const adapters = adapterNodes(); + assert.equal(adapters.length, 1); + assert.equal(adapters[0].id, previous[0].id); + assert.equal(adapters[0].data.params.adapter_name.value, 'replacement'); + expectNativeChain(adapters); + assert.equal( + flowStore + .getState() + .edges.some((edge) => previous.slice(1).some((node) => node.id === edge.source || node.id === edge.target)), + false, + ); + assert.deepEqual( + authoredGraph().nodes.filter((node) => !node.data.studioRole.startsWith('loraAdapter')), + creativeNodes, + ); + assert.equal(bridge.getStudioGraphRunBlockingMessage(form), null); + assert.equal(flowStore.getState().historyPast.length, 2); + flowStore.getState().undo(); + expectNativeChain(adapterNodes()); + assert.equal(adapterNodes().length, 3); +}); + +test('eight native adapters are sealed and a ninth is rejected without graph or history changes', async () => { + const form = studioStore.getState().form; + const eight = { + adapterName: 'one', + additionalAdapters: Array.from({ length: 7 }, (_, index) => ({ adapterName: `adapter-${index + 2}`, scale: 0.5 })), + }; + await controlled.addLoraWorkflowBlock(form, eight, options); + assert.equal(adapterNodes().length, 8); + expectNativeChain(adapterNodes()); + assert.equal(bridge.getStudioGraphRunBlockingMessage(form), null); + const before = structuredClone(authoredGraph()); + const proof = structuredClone(studioStore.getState().graphBinding.finalizationProof); + await assert.rejects( + controlled.addLoraWorkflowBlock( + form, + { + ...eight, + additionalAdapters: [...eight.additionalAdapters, { adapterName: 'ninth' }], + }, + options, + ), + /at most 8 adapters/, + ); + assert.deepEqual(authoredGraph(), before); + assert.deepEqual(studioStore.getState().graphBinding.finalizationProof, proof); + assert.equal(flowStore.getState().historyPast.length, 1); +}); + +test('missing typed previous_loras input rolls back the entire native authoring transaction', async () => { + const form = studioStore.getState().form; + const registry = structuredClone(nodesStore.getState().nodesRegistry); + delete registry['modules.ModularDiffusers.Lora'].params.previous_loras; + nodesStore.setState({ nodesRegistry: registry }); + const before = structuredClone(authoredGraph()); + const proof = structuredClone(studioStore.getState().graphBinding.finalizationProof); + await assert.rejects(controlled.addLoraWorkflowBlock(form, settings, options), /connection could not be completed/); + assert.deepEqual(authoredGraph(), before); + assert.deepEqual(studioStore.getState().graphBinding.finalizationProof, proof); + assert.equal(flowStore.getState().historyPast.length, 0); + assert.equal(flowStore.getState().historyTransaction, null); +}); + +test('a shared owned adapter branch is preserved when legacy controlled editing is unavailable', async () => { + const form = studioStore.getState().form; + await controlled.addLoraWorkflowBlock(form, settings, options); + const foreign = { + id: 'other-loader', + type: 'custom', + position: { x: 800, y: 0 }, + data: { + module: 'modules.ModularDiffusers', + action: 'ModelsLoader', + params: { + lora_list: { type: 'custom_lora', display: 'input' }, + }, + }, + }; + flowStore.setState({ + nodes: [...flowStore.getState().nodes, foreign], + edges: [ + ...flowStore.getState().edges, + { + id: 'shared-adapter-output', + source: adapterNodes()[0].id, + sourceHandle: 'lora', + target: foreign.id, + targetHandle: 'lora_list', + type: 'default', + }, + ], + }); + const before = structuredClone(authoredGraph()); + await assert.rejects(controlled.addLoraWorkflowBlock(form, { adapterName: 'replacement' }, options)); + assert.deepEqual(authoredGraph(), before); + assert.equal(flowStore.getState().historyPast.length, 1); +}); + +test('pure ordered links handle native descriptors, external prefixes and pipeline bypasses without mutation', () => { + const native = { + adapterIds: ['a', 'b', 'c'], + inputHandles: ['previous_loras'], + outputHandles: ['lora'], + target: { nodeId: 'loader', handles: ['lora_list', 'loras'] }, + }; + const original = structuredClone(native); + assert.deepEqual(chain.orderedAdapterChainLinks(native), [ + { source: 'a', sourceHandles: ['lora'], target: 'b', targetHandles: ['previous_loras'] }, + { source: 'b', sourceHandles: ['lora'], target: 'c', targetHandles: ['previous_loras'] }, + { source: 'c', sourceHandles: ['lora'], target: 'loader', targetHandles: ['lora_list', 'loras'] }, + ]); + assert.deepEqual(native, original); + const prefix = chain.orderedAdapterChainLinks({ ...native, source: { nodeId: 'shared-prefix', handles: ['lora'] } }); + assert.deepEqual(prefix[0], { + source: 'shared-prefix', + sourceHandles: ['lora'], + target: 'a', + targetHandles: ['previous_loras'], + }); + assert.deepEqual(chain.orderedAdapterChainLinks({ ...native, adapterIds: [] }), []); + const pipeline = { + adapterIds: [], + inputHandles: ['pipeline'], + outputHandles: ['output'], + source: { nodeId: 'owner', handles: ['pipeline'] }, + target: { nodeId: 'consumer', handles: ['pipeline'] }, + }; + assert.deepEqual(chain.orderedAdapterChainLinks(pipeline), [ + { source: 'owner', sourceHandles: ['pipeline'], target: 'consumer', targetHandles: ['pipeline'] }, + ]); + assert.equal(chain.orderedAdapterChainLinks({ ...pipeline, adapterIds: ['a', 'b', 'c'] }).length, 4); + assert.throws(() => chain.orderedAdapterChainLinks({ ...native, adapterIds: ['a', 'a'] }), /distinct adapters/); + assert.throws( + () => + chain.orderedAdapterChainLinks({ ...native, adapterIds: Array.from({ length: 9 }, (_, index) => `${index}`) }), + /at most 8/, + ); +}); + +test('an explicit reviewed chain bound permits 32 links without widening the legacy eight-adapter default', () => { + const options = { + adapterIds: Array.from({ length: 32 }, (_, index) => `adapter-${index}`), + inputHandles: ['previous_loras'], + outputHandles: ['lora'], + target: { nodeId: 'loader', handles: ['lora_list'] }, + }; + const original = structuredClone(options); + const links = chain.orderedAdapterChainLinks({ ...options, maxOwnedAdapters: 32 }); + assert.equal(links.length, 32); + assert.equal(links[0].source, 'adapter-0'); + assert.equal(links[31].target, 'loader'); + assert.deepEqual(options, original); + assert.throws(() => chain.orderedAdapterChainLinks(options), /at most 8/); + assert.throws( + () => + chain.orderedAdapterChainLinks({ + ...options, + adapterIds: [...options.adapterIds, 'adapter-32'], + maxOwnedAdapters: 32, + }), + /at most 32/, + ); + for (const maxOwnedAdapters of [0, 33, -1, 1.5, NaN, Infinity, '32', null]) + assert.throws( + () => chain.orderedAdapterChainLinks({ ...options, adapterIds: ['only'], maxOwnedAdapters }), + /bound/, + ); +}); diff --git a/scripts/ancillary-execution-scope.test.mjs b/scripts/ancillary-execution-scope.test.mjs new file mode 100644 index 00000000..c4855be0 --- /dev/null +++ b/scripts/ancillary-execution-scope.test.mjs @@ -0,0 +1,594 @@ +import assert from 'node:assert/strict'; +import { readFileSync } from 'node:fs'; +import path from 'node:path'; +import { before, after, test } from 'node:test'; +import { createServer } from 'vite'; +const ROOT = process.cwd(); +const fixture = JSON.parse(readFileSync(path.join(ROOT, 'tests/fixtures/ancillary-authoring.v1.json'), 'utf8')); +let server, select, exporter, hashes, runtime, schema, definitions, selectedStarter, previousWindow; +before(async () => { + previousWindow = globalThis.window; + globalThis.window = { + location: { origin: 'http://127.0.0.1:5191', hostname: '127.0.0.1', protocol: 'http:', port: '5191' }, + }; + server = await createServer({ + root: ROOT, + configFile: false, + logLevel: 'silent', + appType: 'custom', + optimizeDeps: { entries: [], noDiscovery: true }, + server: { middlewareMode: true, watch: null }, + }); + ({ selectAncillaryExecutionScope: select } = await server.ssrLoadModule('/src/workflow/ancillaryExecutionScope.ts')); + definitions = await server.ssrLoadModule('/src/workflow/ancillaryExecutionScope.ts'); + const actual = JSON.parse(readFileSync('tests/fixtures/ancillary-starter.v1.json', 'utf8')); + const { parseOperationStarter } = await server.ssrLoadModule('/src/workflow/operationStarterRequest.ts'); + selectedStarter = parseOperationStarter( + actual.response, + actual.selection.pipelineClass, + actual.selection.task, + actual.operationContracts, + actual.selection, + ); + exporter = await server.ssrLoadModule('/src/stores/flowGraphExport.ts'); + hashes = await server.ssrLoadModule('/src/studio/stableHash.ts'); + runtime = await server.ssrLoadModule('/src/studio/blockRuntimeV2.ts'); + schema = await server.ssrLoadModule('/src/studio/blockSchemaV2.ts'); +}); +after(async () => { + await server?.close(); + if (previousWindow === undefined) delete globalThis.window; + else globalThis.window = previousWindow; +}); +function setup(index = 0) { + const row = fixture.parents[index], + parent = JSON.parse(row.rawParentJson), + contract = parent.ancillaryOperations[0], + registry = structuredClone(row.registry); + const binding = { + contractId: contract.id, + contentHash: contract.contentHash, + parent: { ...contract.parent, authoringContentHash: parent.contentHash }, + parentRoleNodes: Object.fromEntries(parent.roles.map(([role]) => [role, `main-${role}`])), + roleNodes: Object.fromEntries(contract.roles.map(([role]) => [role, `aux-${role}`])), + }; + const nodes = [ + ...parent.roles.map((role) => [binding.parentRoleNodes, role]), + ...contract.roles.map((role) => [binding.roleNodes, role]), + ].map(([map, [role, key, x, y]]) => ({ + id: map[role], + type: 'custom', + position: { x, y }, + data: structuredClone(registry[key]), + })); + // Finite synthetic topology over actual registry declarations, not a loaded model. + // Use explicit internally consistent CPU/Off controls; no GPU authority is mocked. + for (const node of nodes) { + if (node.data.params.offload_mode) node.data.params.offload_mode.value = 'none'; + if (node.data.params.auto_offload) node.data.params.auto_offload.value = false; + } + const byId = (id) => nodes.find((node) => node.id === id); + const owner = byId(binding.parentRoleNodes[contract.bindings.owner.role]), + request = byId(binding.roleNodes[contract.bindings.request.role]); + owner.data.params[contract.bindings.owner.promptField].value = 'Authored raw prompt\nunchanged.'; + owner.data.params[contract.bindings.owner.layoutField].value = null; + request.data.params[contract.bindings.request.promptField].value = + owner.data.params[contract.bindings.owner.promptField].value; + request.data.params[contract.bindings.request.layoutField].value = null; + for (const [role, field, value] of contract.initialValues) + byId(binding.roleNodes[role]).data.params[field].value = value; + owner.data.operationAuthoring = { ancillaryBindings: [binding] }; + const edge = ([a, b, c, d], map, index) => ({ + id: `edge-${index}`, + source: map[a], + sourceHandle: b, + target: map[c], + targetHandle: d, + }); + const edges = [ + ...parent.edges.map((row, i) => edge(row, binding.parentRoleNodes, i)), + ...contract.edges.map((row, i) => edge(row, binding.roleNodes, parent.edges.length + i)), + ]; + const reference = contract.bindings.owner.referenceSource; + if (reference) + edges.push({ + id: 'shared-reference', + source: binding.parentRoleNodes[reference.role], + sourceHandle: reference.field, + target: request.id, + targetHandle: contract.bindings.request.imagesField, + }); + const target = { + nodeId: binding.roleNodes[contract.bindings.output.role], + outputField: contract.bindings.output.field, + }; + return { + nodes, + edges, + parent, + contract, + binding, + owner, + request, + registry, + target, + parents: [{ recipe: parent, selection: row.selection }], + kind: 'workflow', + }; +} +const ids = (values) => values.slice().sort(); +const run = (flow, kind = 'workflow') => + select({ ...flow, kind, target: kind === 'explicit_preview' ? flow.target : undefined }); +const api = (flow, targets) => + exporter.buildApiGraphExport({ + nodes: flow.nodes, + edges: flow.edges, + sid: 'unit', + ...(targets ? { targetNodeIds: targets } : {}), + randomizeSeeds: false, + setParam() { + throw Error('No seed mutations'); + }, + }); +for (let index = 0; index < 4; index++) { + test(`actual declaration ${index + 1} selects ordinary parent and exclusive Preview ancestry`, () => { + const f = setup(index), + before = JSON.stringify(f); + const ordinary = run(f), + preview = run(f, 'explicit_preview'); + assert.deepEqual(ids(ordinary.nodeIds), ids(Object.values(f.binding.parentRoleNodes))); + const reference = f.contract.bindings.owner.referenceSource; + assert.deepEqual( + ids(preview.nodeIds), + ids([...Object.values(f.binding.roleNodes), ...(reference ? [f.binding.parentRoleNodes[reference.role]] : [])]), + ); + assert.equal(ordinary.purpose.target, null); + assert.deepEqual(preview.purpose.target, f.target); + assert.deepEqual(Object.keys(api(f, ordinary.targetNodeIds).nodes).sort(), ids(ordinary.nodeIds)); + assert.deepEqual(Object.keys(api(f, preview.targetNodeIds).nodes).sort(), ids(preview.nodeIds)); + assert.equal(JSON.stringify(f), before); + }); +} +test('unclaimed graphs retain the original all-sinks export and leaf target semantics', () => { + const f = setup(); + delete f.owner.data.operationAuthoring; + const ordinary = run(f); + assert.equal(ordinary.purpose, undefined); + assert.equal(ordinary.targetNodeIds, undefined); + assert.deepEqual(ids(ordinary.nodeIds), Object.keys(api(f).nodes).sort()); + const selected = exporter.selectFlowGraphExecutionScope({ ...f, targetNodeId: f.target.nodeId }); + assert.deepEqual(ids(selected.nodes.map((n) => n.id)), ids(Object.values(f.binding.roleNodes))); + assert.throws(() => run(f, 'explicit_preview')); +}); +test('ordinary scope keeps unrelated sinks/shared source and does not require an optional draft to be ready', () => { + const f = setup(1), + unrelated = structuredClone(f.nodes[0]); + unrelated.id = 'unrelated'; + f.nodes.push(unrelated); + f.request.data.params[f.contract.bindings.request.promptField].value = 'unfinished different prompt'; + f.request.data.params[f.contract.initialValues[0][1]].value = 'standard'; + assert.ok(run(f).nodeIds.includes('unrelated')); + assert.throws(() => run(f, 'explicit_preview'), /authored input|input selection/u); +}); +for (const [name, change] of [ + [ + 'null claim', + (f) => { + f.owner.data.operationAuthoring.ancillaryBindings = null; + }, + ], + [ + 'stale child', + (f) => { + f.binding.contentHash = 'studio-ancillary-v1-00000000'; + }, + ], + [ + 'stale final parent', + (f) => { + f.binding.parent.authoringContentHash = 'studio-authoring-v1-00000000'; + }, + ], + [ + 'stale base', + (f) => { + f.binding.parent.baseSpecContentHash = 'studio-spec-v1-00000000'; + }, + ], + [ + 'missing role', + (f) => { + delete f.binding.roleNodes[Object.keys(f.binding.roleNodes)[0]]; + }, + ], + [ + 'foreign role', + (f) => { + f.binding.roleNodes.foreign = 'foreign'; + }, + ], + [ + 'wrong native action', + (f) => { + f.request.data.action = 'Foreign'; + }, + ], + [ + 'foreign holder', + (f) => { + const h = f.owner.data.operationAuthoring; + delete f.owner.data.operationAuthoring; + f.nodes[0].data.operationAuthoring = h; + }, + ], + [ + 'missing parent edge', + (f) => { + f.edges.shift(); + }, + ], + [ + 'missing child edge', + (f) => { + const i = f.edges.findIndex((e) => Object.values(f.binding.roleNodes).includes(e.source)); + f.edges.splice(i, 1); + }, + ], + [ + 'duplicate child edge', + (f) => { + const e = f.edges.find((e) => Object.values(f.binding.roleNodes).includes(e.source)); + f.edges.push({ ...e, id: 'duplicate' }); + }, + ], + [ + 'foreign child output', + (f) => { + f.edges.push({ + id: 'foreign', + source: f.target.nodeId, + sourceHandle: f.target.outputField, + target: f.owner.id, + targetHandle: f.contract.bindings.owner.promptField, + }); + }, + ], + [ + 'registered output type changed', + (f) => { + f.registry[`${f.request.data.module}.${f.request.data.action}`].params[f.target.outputField].type = 'object'; + }, + ], + [ + 'registered provider wire changed', + (f) => { + const e = f.contract.edges[0]; + const n = f.nodes.find((n) => n.id === f.binding.roleNodes[e[0]]); + f.registry[`${n.data.module}.${n.data.action}`].params[e[1]].type = 'foreign'; + }, + ], +]) + test(`scope refuses ${name}`, () => { + const f = setup(); + change(f); + assert.throws(() => run(f)); + }); +for (const [name, change] of [ + [ + 'missing target', + (f) => { + f.target = undefined; + }, + ], + [ + 'foreign target', + (f) => { + f.target = { ...f.target, nodeId: f.owner.id }; + }, + ], + [ + 'different output field', + (f) => { + f.target.outputField = 'result'; + }, + ], + [ + 'disabled role', + (f) => { + f.request.data.uiState = { disabled: true }; + }, + ], + [ + 'changed prompt', + (f) => { + f.request.data.params[f.contract.bindings.request.promptField].value = 'changed'; + }, + ], + [ + 'changed layout', + (f) => { + f.request.data.params[f.contract.bindings.request.layoutField].value = {}; + }, + ], + [ + 'changed initial selection', + (f) => { + const [role, field] = f.contract.initialValues[0]; + f.nodes.find((n) => n.id === f.binding.roleNodes[role]).data.params[field].value = 'standard'; + }, + ], + [ + 'connected authored prompt', + (f) => { + f.edges.push({ + id: 'external-prompt', + source: f.nodes[0].id, + sourceHandle: 'output', + target: f.owner.id, + targetHandle: f.contract.bindings.owner.promptField, + }); + }, + ], + [ + 'text-only injected media', + (f) => { + f.request.data.params[f.contract.bindings.request.imagesField].value = 'unbound.png'; + }, + ], +]) + test(`Preview refuses ${name}`, () => { + const f = setup(); + change(f); + assert.throws(() => run(f, 'explicit_preview')); + }); +test('no current declaration and duplicate claims refuse rather than downgrade', () => { + const f = setup(); + f.parents = []; + assert.throws(() => run(f)); + const g = setup(); + g.owner.data.operationAuthoring.ancillaryBindings.push(structuredClone(g.binding)); + assert.throws(() => run(g)); +}); +test('child role vocabulary is declaration-selected, not provider/proposal frontend behavior', () => { + const f = setup(), + rename = new Map(f.contract.roles.map(([role], i) => [role, `optional_${i}`])); + const c = f.contract; + c.roles.forEach((row) => { + row[0] = rename.get(row[0]); + }); + c.edges.forEach((row) => { + row[0] = rename.get(row[0]); + row[2] = rename.get(row[2]); + }); + c.initialValues.forEach((row) => { + row[0] = rename.get(row[0]); + }); + c.bindings.request.role = rename.get(c.bindings.request.role); + c.bindings.output.role = rename.get(c.bindings.output.role); + f.binding.roleNodes = Object.fromEntries( + Object.entries(f.binding.roleNodes).map(([role, id]) => [rename.get(role), id]), + ); + delete c.contentHash; + c.contentHash = `studio-ancillary-v1-${hashes.hashString(hashes.stableStringify(c))}`; + delete f.parent.contentHash; + f.parent.contentHash = `studio-authoring-v1-${hashes.hashString(hashes.stableStringify(f.parent))}`; + f.binding.contentHash = c.contentHash; + f.binding.parent.authoringContentHash = f.parent.contentHash; + assert.equal(run(f, 'explicit_preview').purpose.kind, 'explicit_preview'); +}); +test('real V2 effective leaves remap both maps and retain the same Preview closure after save/reinsert', () => { + const f = setup(1); + const graph = { + nodes: f.nodes.map((n) => ({ nodeId: n.id, nodeType: 'custom', data: n.data })), + edges: f.edges.map((e) => ({ + edgeId: e.id, + sourceNodeId: e.source, + sourcePortId: e.sourceHandle, + targetNodeId: e.target, + targetPortId: e.targetHandle, + })), + executionOrder: f.nodes.map((n) => n.id), + }; + graph.graphHash = schema.blockGraphHashV2(graph); + const definition = { + schemaVersion: 2, + definitionId: 'user:ancillary-source-fixture', + displayName: 'Optional operation fixture', + source: { kind: 'user' }, + graph, + boundary: { mode: 'explicit', inputs: [], outputs: [] }, + controls: [], + suggestedInputs: [], + previews: [], + ownership: { kind: 'user', definitionMutable: true }, + }; + definition.contentHash = schema.blockDefinitionContentHashV2(definition); + const instance = schema.createBlockInstanceV2(definition, { + instanceId: 'scope-block', + position: { x: 0, y: 0 }, + size: { width: 640, height: 480 }, + }); + const root = runtime.createBlockRootNodeV2(JSON.parse(JSON.stringify(instance))); + const effective = runtime.expandBlockGraphV2ForExecution([root], []); + const holder = effective.nodes.find((n) => n.data.operationAuthoring?.ancillaryBindings); + const b = holder.data.operationAuthoring.ancillaryBindings[0]; + assert.ok(Object.values(b.parentRoleNodes).every((id) => effective.nodes.some((n) => n.id === id))); + assert.ok(Object.values(b.roleNodes).every((id) => effective.nodes.some((n) => n.id === id))); + const target = { nodeId: b.roleNodes[f.contract.bindings.output.role], outputField: f.target.outputField }; + const result = select({ ...f, ...effective, target, kind: 'explicit_preview' }); + assert.deepEqual( + ids(result.nodeIds), + ids([...Object.values(b.roleNodes), b.parentRoleNodes[f.contract.bindings.owner.referenceSource.role]]), + ); + assert.deepEqual(root.data.blockInstanceV2, instance); +}); + +test('Preview refuses real loop ancestry while ordinary container ancestry remains valid', () => { + const f = setup(); + f.nodes.push({ id: 'iteration', type: 'loop', position: { x: 0, y: 0 }, data: { type: 'loop', params: {} } }); + f.request.parentId = 'iteration'; + assert.throws(() => run(f, 'explicit_preview'), /loop body/u); + f.nodes.find((n) => n.id === 'iteration').data.type = 'group'; + assert.doesNotThrow(() => run(f, 'explicit_preview')); +}); + +function withoutGenericParentFields(f) { + delete f.target; + const key = `${f.owner.data.module}.${f.owner.data.action}`; + for (const field of [f.contract.bindings.owner.promptField, f.contract.bindings.owner.layoutField]) + delete f.registry[key].params[field]; + return f; +} +test('fresh selected parent definitions cover wrapper inputs absent from generic registry without granting child fields', () => { + const f = withoutGenericParentFields(setup()); + assert.throws(() => select(f), /registered/iu); + const token = definitions.captureCurrentAncillaryParentDefinition(selectedStarter, f.binding, () => {}); + f.parents[0].definition = token; + assert.deepEqual(select(f).nodeIds.sort(), Object.values(f.binding.parentRoleNodes).sort()); + delete f.registry[`${f.request.data.module}.${f.request.data.action}`].params[ + f.contract.bindings.request.promptField + ]; + assert.throws(() => select(f), /registered/iu); +}); +test('saved or cloned definition contexts cannot replace a fresh selected response; explicit renewal recovers', () => { + const f = withoutGenericParentFields(setup()); + const token = definitions.captureCurrentAncillaryParentDefinition(selectedStarter, f.binding, () => {}); + for (const imported of [{}, structuredClone(token), JSON.parse(JSON.stringify(token))]) { + f.parents[0].definition = imported; + assert.throws(() => select(f), /context/iu); + } + f.parents[0].definition = definitions.captureCurrentAncillaryParentDefinition(selectedStarter, f.binding, () => {}); + assert.ok(select(f).nodeIds.length); +}); +test('current selected definition is bound to document epoch and exact parent instance role map', () => { + const f = withoutGenericParentFields(setup()); + let stale = false; + const token = definitions.captureCurrentAncillaryParentDefinition(selectedStarter, f.binding, () => { + if (stale) throw new Error('stale current document'); + }); + f.parents[0].definition = token; + stale = true; + assert.throws(() => select(f), /stale current document/iu); + stale = false; + const other = setup(); + other.binding.parentRoleNodes = Object.fromEntries( + Object.entries(other.binding.parentRoleNodes).map(([role, id]) => [role, `other-${id}`]), + ); + assert.throws(() => definitions.remapCurrentAncillaryParentDefinition(token, other.binding, f.binding), /remap/iu); + const changed = structuredClone(f.binding); + changed.parentRoleNodes.prompt = 'foreign-instance'; + f.binding.parentRoleNodes = changed.parentRoleNodes; + assert.throws(() => select(f), /context/iu); +}); +for (const [name, mutate] of [ + [ + 'pipeline', + (s) => { + s.pipelineClass = 'OtherPipeline'; + }, + ], + [ + 'task', + (s) => { + s.task = 'other_task'; + }, + ], + [ + 'recipe digest', + (s) => { + s.authoring.contentHash = 'studio-authoring-v1-00000000'; + }, + ], + [ + 'operation selector', + (s) => { + s.nodes[0].operation.task = 'other_task'; + }, + ], + [ + 'registered node identity', + (s) => { + s.nodes[0].node.action = 'Other'; + }, + ], +]) + test(`selected parent definition rejects wrong ${name}`, () => { + const f = setup(), + wrong = structuredClone(selectedStarter); + mutate(wrong); + assert.throws( + () => definitions.captureCurrentAncillaryParentDefinition(wrong, f.binding, () => {}), + /Invalid|differ|hash/iu, + ); + }); +test('native effective-leaf ID remapping preserves a fresh definition but refuses collisions', () => { + const f = withoutGenericParentFields(setup()), + original = structuredClone(f.binding); + const token = definitions.captureCurrentAncillaryParentDefinition(selectedStarter, original, () => {}); + const next = structuredClone(original); + next.parentRoleNodes = Object.fromEntries( + Object.entries(original.parentRoleNodes).map(([role, id]) => [role, `unpacked-${id}`]), + ); + const bad = structuredClone(next); + bad.parentRoleNodes.prompt = bad.parentRoleNodes.models; + assert.throws(() => definitions.remapCurrentAncillaryParentDefinition(token, original, bad), /collid/iu); + const remapped = definitions.remapCurrentAncillaryParentDefinition(token, original, next); + const ids = new Map( + Object.keys(original.parentRoleNodes).map((role) => [original.parentRoleNodes[role], next.parentRoleNodes[role]]), + ); + for (const node of f.nodes) node.id = ids.get(node.id) ?? node.id; + for (const edge of f.edges) { + edge.source = ids.get(edge.source) ?? edge.source; + edge.target = ids.get(edge.target) ?? edge.target; + } + f.binding.parentRoleNodes = next.parentRoleNodes; + f.parents[0].definition = remapped; + assert.deepEqual(select(f).nodeIds.sort(), Object.values(next.parentRoleNodes).sort()); +}); + +for (const [name, change] of [ + [ + 'profile', + (binding) => { + binding.parent.executionProfileId = 'wrong:profile'; + }, + ], + [ + 'spec digest', + (binding) => { + binding.parent.baseSpecContentHash = 'studio-spec-v1-00000000'; + }, + ], + [ + 'role vocabulary', + (binding) => { + delete binding.parentRoleNodes.prompt; + binding.parentRoleNodes.other = 'main-prompt'; + }, + ], + [ + 'colliding roles', + (binding) => { + binding.parentRoleNodes.prompt = binding.parentRoleNodes.models; + }, + ], +]) + test(`selected parent definition rejects wrong bound ${name}`, () => { + const f = setup(), + binding = structuredClone(f.binding); + change(binding); + assert.throws( + () => definitions.captureCurrentAncillaryParentDefinition(selectedStarter, binding, () => {}), + /Invalid|differ|collid|role/iu, + ); + }); +test('selected parent output direction cannot authorize an authored input', () => { + const f = withoutGenericParentFields(setup()), + wrong = structuredClone(selectedStarter); + const ownerKey = `${f.owner.data.module}.${f.owner.data.action}`; + wrong.nodes.find(({ operation }) => operation.nodeKey === ownerKey).node.params[ + f.contract.bindings.owner.promptField + ].display = 'output'; + f.parents[0].definition = definitions.captureCurrentAncillaryParentDefinition(wrong, f.binding, () => {}); + assert.throws(() => select(f), /registered/iu); +}); diff --git a/scripts/ancillary-operations.test.mjs b/scripts/ancillary-operations.test.mjs new file mode 100644 index 00000000..2c138636 --- /dev/null +++ b/scripts/ancillary-operations.test.mjs @@ -0,0 +1,329 @@ +import assert from 'node:assert/strict'; +import { readFileSync } from 'node:fs'; +import path from 'node:path'; +import { before, after, test } from 'node:test'; +import { createServer } from 'vite'; + +const ROOT = process.cwd(); +const fixture = JSON.parse(readFileSync(path.join(ROOT, 'tests/fixtures/ancillary-authoring.v1.json'), 'utf8')); +let server, api, parse, hashes, remap; +before(async () => { + server = await createServer({ + root: ROOT, + configFile: false, + logLevel: 'silent', + appType: 'custom', + optimizeDeps: { entries: [], noDiscovery: true }, + server: { middlewareMode: true, watch: null }, + }); + api = await server.ssrLoadModule('/src/studio/ancillaryOperations.ts'); + ({ parseOperationAuthoringRecipe: parse } = await server.ssrLoadModule('/src/studio/operationAuthoringRecipe.ts')); + hashes = await server.ssrLoadModule('/src/studio/stableHash.ts'); + ({ remapOperationAuthoring: remap } = await server.ssrLoadModule('/src/workflow/operationSharedInputs.ts')); +}); +after(async () => server?.close()); +const raw = (index = 0) => JSON.parse(fixture.parents[index].rawParentJson); +function rehash(parent) { + for (const child of parent.ancillaryOperations ?? []) { + delete child.contentHash; + child.contentHash = `studio-ancillary-v1-${hashes.hashString(hashes.stableStringify(child))}`; + } + delete parent.contentHash; + parent.contentHash = `studio-authoring-v1-${hashes.hashString(hashes.stableStringify(parent))}`; + return parent; +} +function binding() { + const parent = raw(), + child = parent.ancillaryOperations[0]; + return { + contractId: child.id, + contentHash: child.contentHash, + parent: { ...child.parent, authoringContentHash: parent.contentHash }, + parentRoleNodes: Object.fromEntries(parent.roles.map(([role]) => [role, `main:${role}`])), + roleNodes: Object.fromEntries(child.roles.map(([role]) => [role, `aux:${role}`])), + }; +} +for (const [index, row] of fixture.parents.entries()) { + test(`actual captured parent ${index + 1} retains exact optional child/hash`, () => + assert.deepEqual(parse(raw(index), row.selection), raw(index))); + test(`absent child ${index + 1} retains the historical parent hash domain`, () => { + const parent = raw(index); + delete parent.ancillaryOperations; + rehash(parent); + assert.deepEqual(parse(parent, row.selection), parent); + assert.equal(Object.hasOwn(parse(parent, row.selection), 'ancillaryOperations'), false); + }); +} +for (const [name, mutate] of [ + [ + 'null claim', + (p) => { + p.ancillaryOperations = null; + }, + ], + [ + 'empty claim', + (p) => { + p.ancillaryOperations = []; + }, + ], + [ + 'too many children', + (p) => { + p.ancillaryOperations = Array(5).fill(p.ancillaryOperations[0]); + }, + ], + [ + 'unknown child key', + (p) => { + p.ancillaryOperations[0].extra = true; + }, + ], + [ + 'wrong parent task', + (p) => { + p.ancillaryOperations[0].parent.task = 'foreign'; + }, + ], + [ + 'wrong base identity', + (p) => { + p.ancillaryOperations[0].parent.baseSpecContentHash = 'studio-spec-v1-00000000'; + }, + ], + [ + 'unsupported purpose', + (p) => { + p.ancillaryOperations[0].executionPurpose = 'workflow'; + }, + ], + [ + 'source authority', + (p) => { + p.ancillaryOperations[0].sourceRegions = true; + }, + ], + [ + 'duplicate roles', + (p) => { + p.ancillaryOperations[0].roles.push(p.ancillaryOperations[0].roles[0]); + }, + ], + [ + 'foreign bound role', + (p) => { + p.ancillaryOperations[0].bindings.request.role = 'foreign'; + }, + ], + [ + 'identity initial value', + (p) => { + const c = p.ancillaryOperations[0]; + c.initialValues.push([c.roles[0][0], 'revision', 'a'.repeat(40)]); + }, + ], + [ + 'adapter digest', + (p) => { + p.ancillaryOperations[0].adapter.declarationSha256 = 'a'.repeat(64); + }, + ], + [ + 'cyclic edge', + (p) => { + const c = p.ancillaryOperations[0], + e = c.edges[0]; + c.edges.push([e[2], 'cycle', e[0], 'cycle']); + }, + ], + [ + 'duplicate input target', + (p) => { + const c = p.ancillaryOperations[0]; + c.edges.push(c.edges[0]); + }, + ], + [ + 'nonfinite position', + (p) => { + p.ancillaryOperations[0].roles[0][2] = Infinity; + }, + ], + [ + 'unpaired Unicode', + (p) => { + p.ancillaryOperations[0].initialValues[0][2] = '\ud800'; + }, + ], +]) + test(`closed metadata refuses ${name}`, () => { + const p = raw(); + mutate(p); + rehash(p); + assert.throws(() => parse(p, fixture.parents[0].selection)); + }); +test('stale child and parent hashes each refuse independently', () => { + const p = raw(); + p.ancillaryOperations[0].contentHash = 'studio-ancillary-v1-00000000'; + assert.throws(() => parse(p, fixture.parents[0].selection)); + const q = raw(); + q.contentHash = 'studio-authoring-v1-00000000'; + assert.throws(() => parse(q, fixture.parents[0].selection)); +}); +test('multiline nonidentity initial values remain exact finite JSON', () => { + const p = raw(), + c = p.ancillaryOperations[0]; + c.initialValues.push([c.roles[0][0], 'note', 'line one\nline two\tunchanged']); + rehash(p); + assert.deepEqual(parse(p, fixture.parents[0].selection), p); +}); +test('claims with accessors, symbols, inherited or hidden properties fail without executing code', () => { + for (const decorate of [ + (p) => + Object.defineProperty(p, 'ancillaryOperations', { + get() { + throw Error('getter executed'); + }, + enumerable: true, + }), + (p) => { + const value = p.ancillaryOperations; + delete p.ancillaryOperations; + Object.setPrototypeOf(p, { ancillaryOperations: value }); + }, + (p) => Object.defineProperty(p, 'ancillaryOperations', { value: p.ancillaryOperations, enumerable: false }), + (p) => { + p.ancillaryOperations[0][Symbol('foreign')] = true; + }, + ]) { + const p = raw(); + decorate(p); + assert.throws(() => parse(p, fixture.parents[0].selection)); + } +}); +test('both maps and archived draft hints remap through the existing graph ID function', () => { + const b = binding(), + hint = { schemaVersion: 1, ancillaryBindings: [b], customLabel: 'retained' }; + const value = { + ...hint, + inactiveDrafts: [ + { + nodes: [{ id: 'saved', parentId: 'container', data: { operationAuthoring: hint } }], + edges: [{ source: 'saved', target: 'peer' }], + }, + ], + }; + const result = remap(value, (id) => `copy/${id}`); + for (const map of ['parentRoleNodes', 'roleNodes']) { + const expected = Object.fromEntries(Object.entries(b[map]).map(([role, id]) => [role, `copy/${id}`])); + assert.deepEqual(result.ancillaryBindings[0][map], expected); + assert.deepEqual(result.inactiveDrafts[0].nodes[0].data.operationAuthoring.ancillaryBindings[0][map], expected); + } + assert.equal(result.customLabel, 'retained'); + assert.equal(result.inactiveDrafts[0].nodes[0].id, 'copy/saved'); + assert.deepEqual(value.ancillaryBindings[0], b); +}); +for (const [name, mutate] of [ + ['null', () => null], + ['empty', () => []], + ['duplicate contracts', (b) => [b, b]], + [ + 'colliding maps', + (b) => { + b.roleNodes[Object.keys(b.roleNodes)[0]] = Object.values(b.parentRoleNodes)[0]; + return [b]; + }, + ], + ['foreign field', (b) => [{ ...b, unknown: true }]], + ['malformed hash', (b) => [{ ...b, contentHash: 'bad' }]], + [ + 'oversized native identity', + (b) => { + b.roleNodes[Object.keys(b.roleNodes)[0]] = 'x'.repeat(513); + return [b]; + }, + ], +]) + test(`instance claim refuses ${name}`, () => + assert.throws(() => remap({ ancillaryBindings: mutate(binding()) }, (id) => id))); +test('malformed inherited/accessor binding claims cannot downgrade to legacy hints', () => { + const inherited = Object.create({ ancillaryBindings: [binding()] }); + assert.throws(() => api.ancillaryBindingsFromHint(inherited)); + assert.throws(() => + api.ancillaryBindingsFromHint( + Object.defineProperty({}, 'ancillaryBindings', { + enumerable: true, + get() { + throw Error('getter executed'); + }, + }), + ), + ); +}); +test('remapping collisions are refused; legacy hints without a claim stay unchanged', () => { + assert.throws(() => remap({ ancillaryBindings: [binding()] }, () => 'collision')); + const old = { + schemaVersion: 1, + defaults: { prompt: 'raw' }, + retained: [], + sharedInputs: [{ field: 'seed', loaderId: 'source', groupId: 'g', name: 'seed' }], + }; + assert.deepEqual( + remap(old, (id) => `copy/${id}`), + { ...old, sharedInputs: [{ ...old.sharedInputs[0], loaderId: 'copy/source' }] }, + ); +}); + +test('accessor array claims never execute and malformed array hints cannot downgrade', () => { + const parent = raw(), + children = parent.ancillaryOperations; + Object.defineProperty(children, '0', { + enumerable: true, + get() { + throw Error('getter executed'); + }, + }); + assert.throws(() => parse(parent, fixture.parents[0].selection), /data array members/u); + const hint = []; + hint.ancillaryBindings = [binding()]; + assert.throws(() => remap(hint, (id) => id), /object hint/u); +}); + +test('saved workflow hints do not eagerly load declaration or enhancement planners', async () => { + const boundary = await createServer({ + root: ROOT, + configFile: false, + logLevel: 'silent', + appType: 'custom', + optimizeDeps: { entries: [], noDiscovery: true }, + server: { middlewareMode: true, watch: null }, + }); + try { + await boundary.ssrLoadModule('/src/workflow/operationAuthoringHint.ts'); + await boundary.ssrLoadModule('/src/workflow/operationSharedInputs.ts'); + const evaluated = [...boundary.moduleGraph.idToModuleMap.values()] + .filter((module) => module.ssrModule) + .map((module) => module.id?.replaceAll('\\', '/')); + for (const deferred of ['ancillaryOperations.ts', 'promptEnhancementAuthoring.ts']) { + assert.equal( + evaluated.some((id) => id?.endsWith(`/src/studio/${deferred}`)), + false, + deferred, + ); + } + const bindings = await boundary.ssrLoadModule('/src/studio/ancillaryBindings.ts'); + const declaration = await boundary.ssrLoadModule('/src/studio/ancillaryOperations.ts'); + for (const key of ['parseAncillaryBindings', 'ancillaryBindingsFromHint', 'invalidAncillary']) + assert.equal(declaration[key], bindings[key], `shared implementation: ${key}`); + const parent = await boundary.ssrLoadModule('/src/studio/promptEnhancementParent.ts'); + const planner = await boundary.ssrLoadModule('/src/studio/promptEnhancementAuthoring.ts'); + for (const key of [ + 'parsePromptEnhancementParent', + 'promptEnhancementParentFromHint', + 'remapPromptEnhancementParent', + ]) + assert.equal(planner[key], parent[key], `shared implementation: ${key}`); + } finally { + await boundary.close(); + } +}); diff --git a/scripts/ancillary-run-coordinator.test.mjs b/scripts/ancillary-run-coordinator.test.mjs new file mode 100644 index 00000000..25cc75b7 --- /dev/null +++ b/scripts/ancillary-run-coordinator.test.mjs @@ -0,0 +1,535 @@ +import assert from 'node:assert/strict'; +import { readFileSync, mkdtempSync, rmSync } from 'node:fs'; +import { tmpdir } from 'node:os'; +import path from 'node:path'; +import { before, after, beforeEach, test } from 'node:test'; +import { createServer } from 'vite'; + +const ROOT = process.cwd(); +const fixture = JSON.parse(readFileSync(path.join(ROOT, 'tests/fixtures/ancillary-authoring.v1.json'), 'utf8')); +const actual = JSON.parse(readFileSync(path.join(ROOT, 'tests/fixtures/ancillary-starter.v1.json'), 'utf8')); +const cache = mkdtempSync(path.join(tmpdir(), 'modiff-ancillary-coordinator-')); +let server, + flow, + studio, + nodesStore, + coordinator, + scopes, + transport, + preparation, + runtime, + schema, + originalFetch, + sent, + metadata, + reply; +before(async () => { + const storage = new Map(); + globalThis.localStorage = { + clear: () => storage.clear(), + getItem: (key) => storage.get(key) ?? null, + key: (index) => [...storage.keys()][index] ?? null, + get length() { + return storage.size; + }, + removeItem: (key) => storage.delete(key), + setItem: (key, value) => storage.set(key, String(value)), + }; + globalThis.window = { dispatchEvent: () => true, localStorage, location: { origin: 'http://127.0.0.1:5191' } }; + originalFetch = globalThis.fetch; + globalThis.fetch = async () => { + throw new Error('Network forbidden during module loading'); + }; + server = await createServer({ + root: ROOT, + cacheDir: cache, + configFile: false, + logLevel: 'silent', + optimizeDeps: { entries: [], noDiscovery: true }, + server: { middlewareMode: true, watch: null }, + appType: 'custom', + }); + ({ useFlowStore: flow } = await server.ssrLoadModule('/src/stores/useFlowStore.ts')); + ({ useStudioStore: studio } = await server.ssrLoadModule('/src/stores/useStudioStore.ts')); + ({ useNodesStore: nodesStore } = await server.ssrLoadModule('/src/stores/useNodeStore.ts')); + ({ coordinateGraphRun: coordinator } = await server.ssrLoadModule('/src/studio/runCoordinator.ts')); + scopes = await server.ssrLoadModule('/src/workflow/prepareExecutionScope.ts'); + transport = await server.ssrLoadModule('/src/utils/runGraph.ts'); + preparation = await server.ssrLoadModule('/src/studio/runPreparation.ts'); + runtime = await server.ssrLoadModule('/src/studio/blockRuntimeV2.ts'); + schema = await server.ssrLoadModule('/src/studio/blockSchemaV2.ts'); +}); +beforeEach(() => { + studio.setState({ + form: { ...studio.getState().form, resourceMode: 'expert' }, + activeWorkflowTabId: 'source-unit-tab', + workflowCanvasHydrated: true, + workflowCanvasEpoch: 0, + workflowFormEpoch: 0, + activeTemplateId: null, + graphBinding: null, + workflowTabs: [], + currentRunContext: null, + outputs: [], + runContextsByClientRunId: {}, + runContextsByTaskId: {}, + }); + sent = []; + metadata = []; + reply = structuredClone(actual.response); + globalThis.fetch = async (url, init) => { + const endpoint = new URL(String(url)).pathname; + const body = JSON.parse(init.body); + if (endpoint === '/operations/starter') { + metadata.push(body); + assert.deepEqual({ ...body, repository: undefined }, { ...actual.selection, repository: undefined }); + if (body.repository) assert.equal(body.repository, actual.response.nodes[0].node.params.repo_id.value.value); + return new Response(JSON.stringify(reply), { status: 200, headers: { 'Content-Type': 'application/json' } }); + } + assert.equal(endpoint, '/graph', 'No server or external model traffic is permitted.'); + sent.push(body); + return new Response( + JSON.stringify({ + error: false, + message: 'Synthetic transport receipt only', + sid: 'unit', + task_id: `unit-task-${sent.length}`, + }), + { status: 200, headers: { 'Content-Type': 'application/json' } }, + ); + }; +}); +after(async () => { + globalThis.fetch = originalFetch; + await server?.close(); + delete globalThis.window; + delete globalThis.localStorage; + rmSync(cache, { recursive: true, force: true }); +}); +function setup(claim = true) { + const row = fixture.parents[0], + parent = JSON.parse(row.rawParentJson), + child = parent.ancillaryOperations[0]; + assert.deepEqual( + parent, + actual.response.authoring, + 'Actual source-produced starter and parent recipe must stay paired.', + ); + const binding = { + contractId: child.id, + contentHash: child.contentHash, + parent: { ...child.parent, authoringContentHash: parent.contentHash }, + parentRoleNodes: Object.fromEntries(parent.roles.map(([r]) => [r, `main-${r}`])), + roleNodes: Object.fromEntries(child.roles.map(([r]) => [r, `aux-${r}`])), + }; + const registry = { + ...structuredClone(row.registry), + ...Object.fromEntries( + actual.response.nodes.map(({ operation, node }) => [operation.nodeKey, structuredClone(node)]), + ), + }; + const nodes = [ + ...parent.roles.map((r) => [binding.parentRoleNodes, r]), + ...child.roles.map((r) => [binding.roleNodes, r]), + ].map(([map, [r, key, x, y]]) => ({ + id: map[r], + type: 'custom', + position: { x, y }, + data: structuredClone(registry[key]), + })); + for (const node of nodes) { + if (node.data.params.offload_mode) node.data.params.offload_mode.value = 'none'; + if (node.data.params.auto_offload) node.data.params.auto_offload.value = false; + } + if (claim) + nodes.find((n) => n.id === binding.parentRoleNodes[child.bindings.owner.role]).data.operationAuthoring = { + ancillaryBindings: [binding], + }; + const edges = [ + ...parent.edges.map((r) => [binding.parentRoleNodes, r]), + ...child.edges.map((r) => [binding.roleNodes, r]), + ].map(([map, [a, b, c, d]], index) => ({ + id: `e-${index}`, + source: map[a], + sourceHandle: b, + target: map[c], + targetHandle: d, + })); + for (const [role, name, value] of child.initialValues) + nodes.find((n) => n.id === binding.roleNodes[role]).data.params[name].value = structuredClone(value); + flow.setState({ nodes, edges }); + nodesStore.setState({ nodesRegistry: registry, operationContracts: actual.operationContracts }); + return { nodes, edges, parent, child, binding, target: binding.roleNodes[child.bindings.output.role] }; +} +test('claimed synchronous export refuses without a current declaration witness', () => { + setup(); + assert.throws(() => flow.getState().exportGraph('unit', undefined, { randomizeSeeds: false }), /scope|declaration/iu); + assert.equal(metadata.length, 0); +}); +test('runtime resource updates preserve ancillary claims without requesting execution authority', async () => { + const f = setup(); + const auto = await server.ssrLoadModule('/src/studio/workflowAutoExecutionV2.ts'); + const nodeId = f.binding.parentRoleNodes.models; + flow.getState().setParam(nodeId, 'device', 'cuda:0'); + const before = flow.getState().toObject(); + const historyLength = flow.getState().historyPast.length; + auto.applyRuntimeWorkflowAutoSettingsV2([ + { nodeId, field: 'offload_mode', previousValue: 'none', value: 'model_cpu' }, + { nodeId, field: 'auto_offload', previousValue: false, value: true }, + ]); + assert.equal(flow.getState().nodes.find((node) => node.id === nodeId).data.params.offload_mode.value, 'model_cpu'); + assert.throws( + () => + auto.applyRuntimeWorkflowAutoSettingsV2([ + { nodeId, field: 'offload_mode', previousValue: 'none', value: 'group_disk' }, + ]), + /newer workflow edits/u, + ); + assert.equal(metadata.length, 0); + assert.equal(sent.length, 0); + assert.equal(flow.getState().historyPast.length, historyLength + 1); + flow.getState().undo(); + const loader = flow.getState().nodes.find((node) => node.id === nodeId); + assert.equal(loader.data.params.offload_mode.value, 'none'); + assert.equal(loader.data.params.auto_offload.value, false); + assert.deepEqual( + flow.getState().nodes.map((node) => node.data.operationAuthoring), + before.nodes.map((node) => node.data.operationAuthoring), + ); + assert.throws(() => flow.getState().exportGraph('unit', undefined, { randomizeSeeds: false }), /scope|declaration/iu); +}); +test('actual coordinator ordinary submission excludes only declared branch and preserves durable document', async () => { + const f = setup(), + before = JSON.stringify(flow.getState().toObject()); + const result = await coordinator({ sid: 'unit' }); + assert.equal(JSON.stringify(flow.getState().toObject()), before); + assert.deepEqual(Object.keys(result.submittedGraph.nodes).sort(), Object.values(f.binding.parentRoleNodes).sort()); + assert.equal(result.submittedGraph.runtimeHints.executionPurpose.kind, 'workflow'); + assert.equal(result.submittedGraph.runtimeHints.resourceMode, 'expert'); + assert.equal(studio.getState().form.resourceMode, 'expert'); + assert.equal(metadata.length, 2); + assert.equal(sent.length, 1); +}); +test('queued claimed run uses the same declared ordinary scope', async () => { + const f = setup(), + result = await coordinator({ sid: 'unit', deferCanvasOwnership: true }); + assert.deepEqual(Object.keys(result.submittedGraph.nodes).sort(), Object.values(f.binding.parentRoleNodes).sort()); +}); +test('Preview is selected from actual declared output and does not run image owner', async () => { + const f = setup(); + const owner = f.nodes.find((node) => node.id === f.binding.parentRoleNodes[f.child.bindings.owner.role]); + const request = f.nodes.find((node) => node.id === f.binding.roleNodes[f.child.bindings.request.role]); + for (const [a, b] of [ + [f.child.bindings.owner.promptField, f.child.bindings.request.promptField], + [f.child.bindings.owner.layoutField, f.child.bindings.request.layoutField], + ]) + request.data.params[b].value = owner.data.params[a].value ?? owner.data.params[a].default ?? null; + const result = await coordinator({ + sid: 'unit', + previewTarget: { nodeId: f.target, outputField: f.child.bindings.output.field }, + }); + assert.deepEqual(Object.keys(result.submittedGraph.nodes).sort(), Object.values(f.binding.roleNodes).sort()); + assert.equal(result.submittedGraph.runtimeHints.executionPurpose.kind, 'explicit_preview'); + assert.equal(result.submittedGraph.runtimeHints.resourceMode, 'expert'); + assert.equal(studio.getState().form.resourceMode, 'expert'); +}); +for (const change of ['loops-empty', 'loops-foreign', 'purpose-kind', 'purpose-absent']) + test(`prepared graph cannot replace claimed ${change}`, async () => { + const f = setup(), + scope = await scopes.prepareExecutionScope(); + const prepared = flow.getState().exportGraph('unit', undefined, { executionScope: scope, randomizeSeeds: false }); + if (change === 'loops-empty') prepared.loops = []; + if (change === 'loops-foreign') prepared.loops = [{ id: 'foreign', bodyNodeIds: [f.target] }]; + if (change === 'purpose-kind') + prepared.runtimeHints.executionPurpose = { ...prepared.runtimeHints.executionPurpose, kind: 'explicit_preview' }; + if (change === 'purpose-absent') delete prepared.runtimeHints.executionPurpose; + await assert.rejects( + coordinator({ sid: 'unit', executionScope: scope, preparedGraph: prepared }), + /scope|loop|purpose/iu, + ); + assert.equal(sent.length, 0); + }); +test('unavailable private endpoint refuses before seeds, preparation, history or dispatch', async () => { + setup(); + const before = JSON.stringify(flow.getState().toObject()); + globalThis.fetch = async () => + new Response(JSON.stringify({ error: 'Unavailable private execution profile' }), { + status: 400, + headers: { 'Content-Type': 'application/json' }, + }); + await assert.rejects(coordinator({ sid: 'unit' }), /Unavailable|400|request/iu); + assert.equal(JSON.stringify(flow.getState().toObject()), before); + assert.equal(sent.length, 0); +}); +test('metadata cannot be used after a concurrent authored edit', async () => { + const f = setup(), + original = globalThis.fetch; + globalThis.fetch = async (...args) => { + const result = await original(...args); + flow + .getState() + .setParam( + f.binding.parentRoleNodes[f.child.bindings.owner.role], + f.child.bindings.owner.promptField, + 'new authored caption', + ); + return result; + }; + await assert.rejects(coordinator({ sid: 'unit' }), /changed/iu); + assert.equal(sent.length, 0); +}); +test('metadata cannot be used after a tab or resource-mode epoch changes', async () => { + setup(); + const original = globalThis.fetch; + globalThis.fetch = async (...args) => { + const result = await original(...args); + studio.setState({ workflowFormEpoch: 1 }); + return result; + }; + await assert.rejects(coordinator({ sid: 'unit' }), /changed/iu); + assert.equal(sent.length, 0); +}); +test('a changed selected registry cannot adopt an in-flight declaration response', async () => { + setup(); + const original = globalThis.fetch; + globalThis.fetch = async (...args) => { + const result = await original(...args); + const registry = structuredClone(nodesStore.getState().nodesRegistry); + registry[actual.response.nodes[0].operation.nodeKey].params.revision.label = 'new metadata'; + nodesStore.setState({ nodesRegistry: registry }); + return result; + }; + await assert.rejects(coordinator({ sid: 'unit' }), /metadata changed/iu); + assert.equal(sent.length, 0); +}); +test('serialized witness and stale literal revision refuse', async () => { + const f = setup(), + scope = await scopes.prepareExecutionScope(); + assert.throws( + () => flow.getState().exportGraph('unit', undefined, { executionScope: JSON.parse(JSON.stringify(scope)) }), + /scope/iu, + ); + const model = f.nodes.find((node) => node.id === f.binding.parentRoleNodes.models); + model.data.params.revision.value = '1'.repeat(40); + await assert.rejects(scopes.prepareExecutionScope(), /revision/iu); + assert.equal(sent.length, 0); +}); +test('node target cannot silently convert an image substage or child into Preview', async () => { + const f = setup(); + await assert.rejects( + coordinator({ sid: 'unit', targetNodeId: f.target }), + /Preview|parent|scope|executable output/iu, + ); + await assert.rejects(coordinator({ sid: 'unit', targetNodeId: f.binding.parentRoleNodes.models }), /parent|scope/iu); + assert.equal(sent.length, 0); +}); +test('forged low-level claimed API graph needs the same witness', async () => { + const f = setup(); + await assert.rejects( + transport.runGraph('unit', undefined, { + sid: 'unit', + nodes: {}, + paths: [], + runtimeHints: { executionPurpose: { schemaVersion: 1, kind: 'workflow', bindings: [f.binding], target: null } }, + }), + /scope/iu, + ); +}); +test('unclaimed all-sinks, explicit leaf and Queue retain old export behavior without metadata', async () => { + const f = setup(false); + const all = await coordinator({ sid: 'unit' }); + assert.deepEqual(Object.keys(all.submittedGraph.nodes).sort(), f.nodes.map((n) => n.id).sort()); + const leaf = await coordinator({ sid: 'unit', targetNodeId: f.target }); + assert.deepEqual(Object.keys(leaf.submittedGraph.nodes).sort(), Object.values(f.binding.roleNodes).sort()); + const queue = await coordinator({ sid: 'unit', deferCanvasOwnership: true }); + assert.deepEqual(Object.keys(queue.submittedGraph.nodes).sort(), f.nodes.map((n) => n.id).sort()); + assert.equal(metadata.length, 0); +}); +test('run-input identity includes claimed loops/purpose but leaves old graph hash domain unchanged', async () => { + setup(); + const scope = await scopes.prepareExecutionScope(); + const graph = flow.getState().exportGraph('unit', undefined, { executionScope: scope, randomizeSeeds: false }); + const hash = preparation.getStudioRunInputHash(studio.getState().form, graph); + assert.notEqual(hash, preparation.getStudioRunInputHash(studio.getState().form, { ...graph, loops: [] })); + const old = { ...graph, runtimeHints: undefined }; + assert.equal( + preparation.getStudioRunInputHash(studio.getState().form, old), + preparation.getStudioRunInputHash(studio.getState().form, { ...old, loops: [] }), + ); +}); + +test('actual native Block leaves keep both remapped role maps across ordinary Block Run and portable reinsertion', async () => { + const f = setup(); + const graph = { + nodes: f.nodes.map((n) => ({ nodeId: n.id, nodeType: 'custom', data: n.data })), + edges: f.edges.map((e) => ({ + edgeId: e.id, + sourceNodeId: e.source, + sourcePortId: e.sourceHandle, + targetNodeId: e.target, + targetPortId: e.targetHandle, + })), + executionOrder: f.nodes.map((n) => n.id), + }; + graph.graphHash = schema.blockGraphHashV2(graph); + const definition = { + schemaVersion: 2, + definitionId: 'user:ancillary-coordinator-fixture', + displayName: 'Optional operation fixture', + source: { kind: 'user' }, + graph, + boundary: { mode: 'explicit', inputs: [], outputs: [] }, + controls: [], + suggestedInputs: [], + previews: [], + ownership: { kind: 'user', definitionMutable: true }, + }; + definition.contentHash = schema.blockDefinitionContentHashV2(definition); + const instance = schema.createBlockInstanceV2(definition, { + instanceId: 'scope-block', + position: { x: 0, y: 0 }, + size: { width: 640, height: 480 }, + }); + const root = runtime.createBlockRootNodeV2(JSON.parse(JSON.stringify(instance))); + flow.setState({ nodes: [root], edges: [] }); + const before = JSON.stringify(flow.getState().toObject()); + const result = await coordinator({ sid: 'unit', targetNodeId: root.id }); + assert.deepEqual( + Object.keys(result.submittedGraph.nodes).sort(), + Object.values(f.binding.parentRoleNodes) + .map((id) => runtime.blockProjectionNodeIdV2(root.id, id)) + .sort(), + ); + assert.equal(JSON.stringify(flow.getState().toObject()), before); + const saved = JSON.parse(JSON.stringify(flow.getState().toObject())); + flow.setState(saved); + const repeated = await coordinator({ sid: 'unit' }); + assert.deepEqual(repeated.submittedGraph.nodes, result.submittedGraph.nodes); + assert.deepEqual( + repeated.submittedGraph.runtimeHints.executionPurpose, + result.submittedGraph.runtimeHints.executionPurpose, + ); +}); + +test('ordinary scope retains an unrelated sink and real lowered loop plan with exact purpose', async () => { + const f = setup(); + const loop = { + id: 'loop-container', + type: 'loop', + position: { x: 0, y: 0 }, + data: { type: 'loop', module: '', action: '', params: { iterations: { value: 2 }, max_iterations: { value: 4 } } }, + }; + const index = { + id: 'loop-index', + type: 'custom', + parentId: loop.id, + position: { x: 0, y: 0 }, + data: { + module: 'modules.WorkflowControl', + action: 'LoopIndex', + type: 'custom', + params: { index: { display: 'output' }, index_value: { value: 0 }, iteration_count: { value: 1 } }, + }, + }; + const result = { + id: 'loop-result', + type: 'custom', + parentId: loop.id, + position: { x: 0, y: 0 }, + data: { + module: 'modules.WorkflowControl', + action: 'LoopResult', + type: 'custom', + params: { + value_input: { display: 'input' }, + stop_input: { display: 'input', value: false }, + value: { display: 'output' }, + collection: { display: 'output' }, + }, + }, + }; + f.nodes.push(loop, index, result); + f.edges.push({ + id: 'loop-edge', + source: index.id, + sourceHandle: 'index', + target: result.id, + targetHandle: 'value_input', + }); + flow.setState({ nodes: f.nodes, edges: f.edges }); + const run = await coordinator({ sid: 'unit' }); + assert.deepEqual(run.submittedGraph.loops[0].bodyNodeIds.sort(), [index.id, result.id].sort()); + assert.equal(run.submittedGraph.loops[0].iterations, 2); + assert.equal(run.submittedGraph.runtimeHints.executionPurpose.kind, 'workflow'); + assert.ok(!Object.keys(run.submittedGraph.nodes).includes(f.target)); + assert.ok(Object.values(f.binding.parentRoleNodes).every((id) => run.submittedGraph.nodes[id])); +}); + +test('claimed workflow Auto receives exact purpose and retains it without switching Expert', async () => { + setup(); + studio.setState({ form: { ...studio.getState().form, resourceMode: 'auto' } }); + const original = globalThis.fetch, + plans = []; + globalThis.fetch = async (url, init) => { + if (new URL(String(url)).pathname !== '/auto_resource/workflow') return original(url, init); + const body = JSON.parse(init.body); + plans.push(body); + return new Response( + JSON.stringify({ + schemaVersion: 1, + graphHash: `sha256:workflow-auto-v1:${'1'.repeat(64)}`, + plannedGraphHash: `sha256:workflow-auto-v1:${'2'.repeat(64)}`, + canAutoRun: true, + issues: [], + message: 'Synthetic planner transport only; no runtime qualification.', + patches: [], + loaders: [], + requirements: {}, + available: {}, + sharedMemory: false, + }), + { status: 200, headers: { 'Content-Type': 'application/json' } }, + ); + }; + const result = await coordinator({ sid: 'unit' }); + assert.equal(plans.length, 1); + assert.deepEqual(plans[0].graph.runtimeHints.executionPurpose, result.submittedGraph.runtimeHints.executionPurpose); + assert.equal(studio.getState().form.resourceMode, 'auto'); + assert.ok(result.submittedGraph.runtimeHints.workflowAutoPlan); +}); + +test('Auto refusal cannot become an Expert submission or erase the purpose', async () => { + setup(); + studio.setState({ form: { ...studio.getState().form, resourceMode: 'auto' } }); + const original = globalThis.fetch; + globalThis.fetch = async (url, init) => + new URL(String(url)).pathname === '/auto_resource/workflow' + ? new Response(JSON.stringify({ error: 'No reviewed recipe for optional operation' }), { + status: 400, + headers: { 'Content-Type': 'application/json' }, + }) + : original(url, init); + await assert.rejects(coordinator({ sid: 'unit' }), /reviewed recipe/iu); + assert.equal(sent.length, 0); + assert.equal(studio.getState().form.resourceMode, 'auto'); +}); + +test('normal selected starter fields remain current without generic registry wrapper fields after portable reload', async () => { + const f = setup(); + const key = f.parent.roles.find(([role]) => role === f.child.bindings.owner.role)[1]; + const nextRegistry = structuredClone(nodesStore.getState().nodesRegistry); + delete nextRegistry[key].params[f.child.bindings.owner.promptField]; + delete nextRegistry[key].params[f.child.bindings.owner.layoutField]; + nodesStore.setState({ nodesRegistry: nextRegistry }); + const portable = JSON.parse(JSON.stringify(flow.getState().toObject())); + flow.setState(portable); + assert.throws(() => flow.getState().exportGraph('unit'), /scope|declaration/iu); + const result = await coordinator({ sid: 'unit' }); + assert.equal(result.submittedGraph.runtimeHints.resourceMode, 'expert'); + assert.deepEqual(Object.keys(result.submittedGraph.nodes).sort(), Object.values(f.binding.parentRoleNodes).sort()); + assert.deepEqual( + nodesStore.getState().nodesRegistry, + nextRegistry, + 'Selected schema is never merged into the global registry.', + ); +}); diff --git a/scripts/audio-authoring.test.mjs b/scripts/audio-authoring.test.mjs new file mode 100644 index 00000000..19afee61 --- /dev/null +++ b/scripts/audio-authoring.test.mjs @@ -0,0 +1,914 @@ +import assert from 'node:assert/strict'; +import { captureAudioSchemaFixture } from './audio-schema-fixture.mjs'; +import path from 'node:path'; +import { after, before, test } from 'node:test'; +import { fileURLToPath } from 'node:url'; +import { createServer } from 'vite'; + +const here = path.dirname(fileURLToPath(import.meta.url)); +const root = process.cwd(); +let fixture; +let server, + nodes, + contracts, + catalog, + authoring, + starters, + groups, + adapters, + policies, + templates, + builder, + exactness, + defaults, + authority, + projection, + exporter, + requiredInputs; +before(async () => { + fixture = captureAudioSchemaFixture(); + const storage = new Map(); + globalThis.localStorage = { + getItem: (key) => storage.get(key) ?? null, + setItem: (key, value) => storage.set(key, value), + removeItem: (key) => storage.delete(key), + }; + globalThis.window = { dispatchEvent: () => true, location: { origin: 'http://127.0.0.1:5191' }, localStorage }; + server = await createServer({ + root, + configFile: false, + logLevel: 'silent', + cacheDir: path.join(here, 'vite-cache', 'authority'), + optimizeDeps: { noDiscovery: true }, + server: { middlewareMode: true, watch: null }, + appType: 'custom', + }); + nodes = await server.ssrLoadModule('/src/stores/useNodeStore.ts'); + contracts = await server.ssrLoadModule('/src/workflow/operationContracts.ts'); + catalog = await server.ssrLoadModule('/src/workflow/operationCatalog.ts'); + authoring = await server.ssrLoadModule('/src/workflow/operationAuthoring.ts'); + starters = await server.ssrLoadModule('/src/workflow/operationStarterRequest.ts'); + groups = await server.ssrLoadModule('/src/workflow/visualOperationGroups.ts'); + adapters = await server.ssrLoadModule('/src/workflow/modelSetupAdapters.ts'); + policies = await server.ssrLoadModule('/src/studio/optionalRuntimes.ts'); + ({ STUDIO_TEMPLATES: templates } = await server.ssrLoadModule('/src/studio/templates.ts')); + builder = await server.ssrLoadModule('/src/studio/templateOperationWorkflow.ts'); + exactness = await server.ssrLoadModule('/src/studio/templateExactness.ts'); + ({ DEFAULT_STUDIO_FORM: defaults } = await server.ssrLoadModule('/src/studio/modelProfiles.ts')); + projection = await server.ssrLoadModule('/src/workflow/visualOperationGroupProjection.ts'); + exporter = await server.ssrLoadModule('/src/stores/useFlowStore.ts'); + requiredInputs = await server.ssrLoadModule('/src/studio/requiredGraphInputs.ts'); + const publicPayload = fixture.publicPayload; + const parsed = nodes.parseStudioModelCapabilities(publicPayload); + const operationContracts = contracts.parseOperationContracts( + publicPayload.operationContracts, + publicPayload.operationContractSchemaVersion, + ); + authority = { + nodesRegistry: fixture.registry, + studioModelCapabilities: parsed.capabilities, + studioModelCapabilitiesAuthoritative: true, + studioExecutionSpecInvalid: false, + operationContracts, + pipelineSupport: catalog.parsePipelineSupport( + publicPayload.pipelineSupport, + publicPayload.pipelineSupportSchemaVersion, + operationContracts, + ), + discoveryRequests: { nodes: { status: 'success' }, capabilities: { status: 'success' } }, + }; +}); +after(async () => server?.close()); + +function actualStarter(row) { + return starters.parseOperationStarter( + row.starter, + row.starter.pipelineClass, + row.starter.task, + authority.operationContracts, + { executionProfileId: row.spec?.executionProfileId }, + ); +} +function setup(row) { + const graph = groups.groupNewOperationGraph(authoring.createOperationStarter(actualStarter(row), { x: 0, y: 0 })); + const root = graph.nodes.find((node) => groups.visualOperationGroup(node) === 'setup'); + return { graph, root, chain: adapters.modelSetupAdapterChain(graph, root.id) }; +} +function pinned() { + return { + adapter_path: { source: 'hub', value: 'ACE-Step/ACE-Step-v1.5-chinese-new-year-LoRA' }, + revision: 'cb829a12775740c830a6d49795f16913065dc492', + weight_name: 'adapter_model.safetensors', + expected_sha256: '78650245c79cbfda7169eae34eb2ccb5f5e639b31a99da0a153a5bbd74194b0d', + adapter_name: 'chinese_new_year', + scale: 0.355, + replace_existing: true, + }; +} + +test('actual published audio policy parses without changing its false broad flag or image-only boundary', () => { + const capability = authority.studioModelCapabilities.find((item) => item.modelType === 'AceStepAudioPipeline'); + assert.equal(capability.supportsLora, false); + const profile = capability.executionProfiles.find((item) => item.id === 'ace-step-audio:direct'); + const actual = policies.parseAdapterAuthoringPolicy( + profile.adapterAuthoring, + profile.modes, + profile.repository_revisions, + profile, + ); + assert.equal(actual.mediaKind, 'audio'); + assert.equal(actual.maxOwnedAdapters, 1); + assert.deepEqual(actual.repositoryRevisions, profile.repository_revisions); + assert.throws(() => + policies.parseImageAdapterAuthoringPolicy(actual, profile.modes, profile.repository_revisions, profile), + ); + for (const mutate of [ + (policy) => { + policy.maxOwnedAdapters = 2; + }, + (policy) => { + policy.maxOwnedAdapters = '1'; + }, + (policy) => { + policy.mediaKind = 'image'; + }, + (policy) => { + policy.mediaKind = ['image']; + }, + (policy) => { + policy.mediaKind = ['audio']; + }, + (policy) => { + policy.mediaKind = {}; + }, + (policy) => { + policy.mediaKind = true; + }, + (policy) => { + policy.adapterNodeKey = 'modules.DiffusersImage.LoadAdapter'; + }, + (policy) => { + policy.tasks = ['text_to_image']; + }, + (policy) => { + policy.repositoryRevisions[0].revision = 'main'; + }, + (policy) => { + policy.extra = true; + }, + (policy) => { + policy.repositoryRevisions.push({ ...policy.repositoryRevisions[0] }); + }, + ]) { + const bad = structuredClone(actual); + mutate(bad); + assert.throws(() => + policies.parseAdapterAuthoringPolicy(bad, profile.modes, profile.repository_revisions, profile), + ); + } + for (const context of [ + undefined, + { ...profile, loader_module: 'modules.DiffusersImage' }, + { ...profile, loader_action: 'ModelsLoader' }, + { ...profile, execution_path: 'direct-diffusers-image' }, + ]) + assert.throws(() => + policies.parseAdapterAuthoringPolicy(actual, profile.modes, profile.repository_revisions, context), + ); +}); + +test('actual selected audio tasks and both own repositories authorize one populated row and safe recovery', async (t) => { + for (const row of fixture.recipes.filter((item) => item.starter.pipelineClass === 'AceStepPipeline')) + await t.test(row.id, () => { + const { graph, root, chain } = setup(row); + assert.equal(adapters.modelSetupAdapterAddUnavailable(chain, authority), null); + const next = adapters.planModelSetupAdapterEdit( + graph, + root.id, + { kind: 'add', values: pinned(), registry: authority.nodesRegistry }, + authority, + ); + const added = adapters.modelSetupAdapterChain(next, root.id); + assert.equal(added.adapters.length, 1); + assert.equal(added.adapters[0].data.module, 'modules.DiffusersAudio'); + assert.equal(added.adapters[0].data.params.scale.value, 0.355); + assert.equal(adapters.modelSetupAdapterEditUnavailable(added, authority), null); + assert.match(adapters.modelSetupAdapterAddUnavailable(added, authority), /at most 1/); + const before = structuredClone(next); + assert.throws( + () => + adapters.planModelSetupAdapterEdit( + next, + root.id, + { kind: 'add', values: pinned(), registry: authority.nodesRegistry }, + authority, + ), + /at most 1/, + ); + assert.deepEqual(next, before); + const withdrawn = structuredClone(authority); + delete withdrawn.studioModelCapabilities.find((item) => item.modelType === 'AceStepAudioPipeline') + .executionProfiles[0].adapterAuthoring; + assert.match(adapters.modelSetupAdapterEditUnavailable(added, withdrawn), /no reviewed/); + const removed = adapters.planModelSetupAdapterEdit( + next, + root.id, + { kind: 'remove', nodeId: added.adapters[0].id }, + withdrawn, + ); + const restored = adapters.modelSetupAdapterChain(removed, root.id); + assert.equal(restored.adapters.length, 0); + assert.equal(restored.tail.length, 1); + const edge = restored.unpacked.graph.edges.find( + (edge) => edge.source === restored.owner.id && edge.sourceHandle === 'pipeline', + ); + assert.equal(edge.target, restored.tail[0].target); + }); +}); + +test('audio Add refuses stale, connected, foreign, ambiguous or withdrawn selected authority unchanged', () => { + const row = fixture.recipes.find((item) => item.id === 'ace:Runware:text_to_audio'); + for (const mutate of [ + ({ chain }) => { + chain.owner.data.params.revision.value = 'a'.repeat(40); + }, + ({ chain }) => { + chain.owner.data.params.model_id.value = { source: 'hub', value: 'foreign/model' }; + }, + ({ chain }) => { + chain.owner.data.params.mode.value = 'audio_repaint'; + }, + ({ chain }) => { + chain.owner.data.params.pipeline.signal.value.repository = 'ACE-Step/acestep-v15-xl-turbo-diffusers'; + }, + ({ chain }) => { + chain.owner.data.params.pipeline.signal.value = ''; + }, + ({ chain }) => { + chain.unpacked.graph.edges.push({ + id: 'connected-mode', + source: 'unknown', + sourceHandle: 'value', + target: chain.owner.id, + targetHandle: 'mode', + }); + }, + ({ current }) => { + current.studioModelCapabilitiesAuthoritative = false; + }, + ({ current }) => { + current.discoveryRequests.nodes.status = 'loading'; + }, + ({ current }) => { + current.nodesRegistry['modules.DiffusersAudio.LoadAdapter'].params.pipeline.onSignal.target = 'foreign'; + }, + ({ current }) => { + delete current.nodesRegistry['modules.DiffusersAudio.LoadAdapter'].params.pipeline.onSignal; + }, + ({ current }) => { + current.nodesRegistry['modules.DiffusersAudio.LoadAdapter'].params.pipeline.signalCompatibility.required = false; + }, + ({ current }) => { + current.nodesRegistry['modules.DiffusersAudio.LoadAdapter'].params.output.signal.origin = 'foreign'; + }, + ({ current }) => { + current.nodesRegistry['modules.DiffusersAudio.LoadAdapter'].params.output.signal.direction = 'input'; + }, + ({ current }) => { + current.operationContracts.push( + structuredClone( + current.operationContracts.find( + (op) => + op.pipelineClass === 'AceStepPipeline' && op.task === 'text_to_audio' && op.decomposition === 'loader', + ), + ), + ); + }, + ({ current }) => { + const cap = current.studioModelCapabilities.find((item) => item.modelType === 'AceStepAudioPipeline'); + cap.executionProfiles.push(structuredClone(cap.executionProfiles[0])); + }, + ({ current }) => { + delete current.studioModelCapabilities.find((item) => item.modelType === 'AceStepAudioPipeline') + .executionProfiles[0].adapterAuthoring; + }, + ]) { + const { graph, root, chain } = setup(row); + const current = structuredClone(authority); + mutate({ graph, root, chain, current }); + const before = structuredClone(graph); + assert.equal(typeof adapters.modelSetupAdapterAddUnavailable(chain, current), 'string'); + assert.deepEqual(graph, before); + } +}); + +test('all seven actual curated audio factories preserve original creative settings and selected model pins', () => { + const audio = templates.filter( + (item) => item.executionSelection && item.example?.mediaType === 'audio' && !item.outputKinds?.includes('video'), + ); + assert.equal(audio.length, 7); + for (const template of audio) { + const selection = template.executionSelection; + const repository = template.workflowBlockSettings?.lora?.baseModel?.value; + const row = fixture.recipes.find( + (item) => + item.starter.pipelineClass === selection.pipelineClass && + item.starter.task === selection.task && + (!repository || + item.starter.nodes.find((item) => item.operation.decomposition === 'loader').node.params.model_id?.value + ?.value === repository), + ); + assert.ok(row, template.id); + const capability = authority.studioModelCapabilities.find((item) => item.modelType === template.modelType); + const spec = capability.studioExecutionSpecs.find((item) => item.mode === template.mode); + const form = { + ...defaults, + ...exactness.getTemplateLockedSettings(template), + device: 'cpu:0', + offloadMode: 'none', + autoOffload: false, + sourceAudio: 'source.wav', + referenceAudio: 'reference.wav', + }; + const graph = builder.createTemplateOperationGraph( + template, + form, + actualStarter(row), + fixture.registry, + spec, + capability, + authority, + ); + const flat = groups.unpackVisualOperationGroups(graph).graph; + const owner = flat.nodes.find((node) => node.data.operationAuthoring?.operation.decomposition === 'loader'); + assert.equal( + owner.data.params.revision.value, + repository + ? 'be23effe449c5957947f3020fd63bee23c64abe4' + : selection.pipelineClass === 'AceStepPipeline' + ? '200ba991ae448051e14b0183157e35c2d27c9fb0' + : template.example.modelRevision, + ); + const generator = flat.nodes.find( + (node) => node.data.action === 'Generate' || node.data.action === 'WorkflowSemanticGeneration', + ); + const prompt = generator.data.params.prompt; + assert.equal(prompt.value, form.prompt, template.id); + if (selection.pipelineClass === 'AceStepPipeline') { + assert.deepEqual(generator.data.params.seed.value, { value: form.seed, isRandom: false }); + assert.equal( + flat.nodes.filter((node) => node.data.action === 'LoadAdapter').length, + template.workflowBlocks?.includes('lora') ? 1 : 0, + ); + assert.ok(!flat.nodes.some((node) => ['EncodeInputs', 'Denoise', 'DecodeLatents'].includes(node.data.action))); + } else assert.equal(graph.nodes.filter((node) => groups.visualOperationGroup(node) === 'output').length, 1); + } +}); + +function actualGraph(row) { + const graph = authoring.createOperationStarter(structuredClone(row.starter), { x: 0, y: 0 }); + // The metadata interpreter publishes CPU, while starter placement defaults may + // target an accelerator. Select the genuine NONE CPU controls explicitly for + // this authoring-only export comparison, before recording either graph. + for (const node of graph.nodes) { + if ( + node.data.params.device && + String(node.data.params.device.value ?? node.data.params.device.default).startsWith('cpu') + ) { + if (node.data.params.offload_mode) node.data.params.offload_mode.value = 'none'; + if (node.data.params.auto_offload) node.data.params.auto_offload.value = false; + } + } + const definition = structuredClone(fixture.registry['modules.Audio.Export']); + graph.nodes.push({ id: 'audio-export', type: 'custom', position: { x: 1800, y: 0 }, data: definition }); + const source = graph.nodes.filter( + (node) => + node.id !== 'audio-export' && + Object.values(node.data.params).some((field) => field.display === 'output' && field.type === 'audio'), + ); + assert.equal(source.length, 1, 'actual starter has one declared final audio producer'); + const port = Object.entries(source[0].data.params).find( + ([, field]) => field.display === 'output' && field.type === 'audio', + )[0]; + graph.edges.push({ + id: 'audio-export-wire', + source: source[0].id, + sourceHandle: port, + target: 'audio-export', + targetHandle: 'audio', + }); + return graph; +} + +function api(graph) { + const exported = exporter.useFlowStore + .getState() + .exportGraph('audio-contract', undefined, { sourceGraph: graph, randomizeSeeds: false }); + const names = new Map(Object.entries(exported.nodes).map(([id, node]) => [id, `${node.module}.${node.action}`])); + assert.equal(new Set(names.values()).size, names.size, 'this bounded fixture has unique action identities'); + const normalize = (value) => { + if (Array.isArray(value)) return value.map(normalize); + if (value && typeof value === 'object') + return Object.fromEntries( + Object.entries(value).map(([key, item]) => [ + key, + key === 'sourceId' ? (names.get(item) ?? item) : normalize(item), + ]), + ); + return value; + }; + return { + nodes: Object.fromEntries( + [...names].map(([id, name]) => [name, normalize(exported.nodes[id])]).sort(([a], [b]) => a.localeCompare(b)), + ), + paths: exported.paths + .map((route) => route.map((id) => names.get(id) ?? id)) + .sort((a, b) => JSON.stringify(a).localeCompare(JSON.stringify(b))), + }; +} + +test('actual audio families group only their real execution stages', async (t) => { + for (const row of fixture.recipes) + await t.test(row.id, () => { + const original = actualGraph(row); + const before = structuredClone(original); + const grouped = groups.groupNewOperationGraph(original); + const setup = grouped.nodes.filter((node) => groups.visualOperationGroup(node) === 'setup'); + const output = grouped.nodes.filter((node) => groups.visualOperationGroup(node) === 'output'); + const native = row.starter.pipelineClass === 'MiniMaxMusic3ModularPipeline'; + assert.equal(setup.length, native ? 0 : 1); + assert.equal(output.length, native ? 1 : 0); + assert.ok(!grouped.nodes.some((node) => groups.visualOperationGroup(node) === 'guidance')); + assert.ok(!grouped.nodes.some((node) => groups.visualOperationGroup(node) === 'inputs')); + if (native) { + assert.equal(output[0].data.label, 'Audio Output'); + assert.deepEqual( + projection.visualStagePresentation('output', projection.visualOperationGroupMedia(output[0])), + { label: 'Audio Output', name: 'audio output' }, + ); + const instance = output[0].data.blockInstanceV2; + assert.equal(instance.effectiveGraph.nodes.length, 2); + assert.equal(instance.previewStates.length, 1); + assert.equal(instance.previewStates[0].binding.mediaType, 'audio'); + assert.equal(instance.previewStates[0].binding.outputPortId, 'preview'); + assert.equal(grouped.nodes.length, 4, 'real loader, semantic generation, denoise and audio output'); + } else + assert.equal( + grouped.nodes.length, + original.nodes.length, + 'integrated Generate and Export remain ordinary nodes', + ); + assert.deepEqual(original, before, 'presentation must not mutate the creator graph'); + assert.deepEqual( + api(grouped), + api(original), + 'ordinary exported graph and creative/media controls are preserved', + ); + assert.deepEqual(api(groups.unpackVisualOperationGroups(grouped).graph), api(original)); + }); +}); + +test('actual native audio output refuses an unrelated sink or missing preview binding', () => { + const row = fixture.recipes.find((item) => item.starter.pipelineClass === 'MiniMaxMusic3ModularPipeline'); + for (const mutate of [ + (sink) => { + sink.data.module = 'modules.Unreviewed'; + }, + (sink) => { + sink.data.params.preview.display = 'ui_image'; + }, + (sink) => { + sink.data.params.preview.dataSource = 'unrelated'; + }, + (sink) => { + sink.data.params.file.type = 'image'; + }, + ]) { + const original = actualGraph(row); + mutate(original.nodes.find((node) => node.id === 'audio-export')); + const before = structuredClone(original); + const grouped = groups.groupNewOperationGraph(original); + assert.ok(!grouped.nodes.some((node) => groups.visualOperationGroup(node) === 'output')); + assert.deepEqual(original, before); + } +}); + +test('audio output preview identity, custom title and current values survive explicit regrouping', () => { + const row = fixture.recipes.find((item) => item.starter.pipelineClass === 'MiniMaxMusic3ModularPipeline'); + const original = actualGraph(row); + const sink = original.nodes.find((node) => node.id === 'audio-export'); + sink.data.params.sample_rate.value = 44100; + sink.data.params.preview.value = '@data/outputs/own-task.wav'; + const grouped = groups.groupNewOperationGraph(original); + const root = grouped.nodes.find((node) => groups.visualOperationGroup(node) === 'output'); + const flat = groups.unpackVisualOperationGroups(grouped); + const restored = groups.restoreVisualOperationGroups(flat.graph, flat); + assert.deepEqual(api(restored), api(grouped)); + assert.equal(root.data.blockInstanceV2.previewStates[0].binding.mediaType, 'audio'); + assert.equal(projection.visualStagePresentation('output', null).label, 'Image Output'); +}); + +function factory(template, current = authority) { + const selection = template.executionSelection; + const repository = template.workflowBlockSettings?.lora?.baseModel?.value; + const row = fixture.recipes.find( + (item) => + item.starter.pipelineClass === selection.pipelineClass && + item.starter.task === selection.task && + (!repository || + item.starter.nodes.find((item) => item.operation.decomposition === 'loader').node.params.model_id?.value + ?.value === repository), + ); + const capability = current.studioModelCapabilities.find((item) => item.modelType === template.modelType); + const spec = capability.studioExecutionSpecs.find((item) => item.mode === template.mode); + const form = { + ...defaults, + ...exactness.getTemplateLockedSettings(template), + device: 'cpu:0', + offloadMode: 'none', + autoOffload: false, + sourceAudio: 'source.wav', + referenceAudio: 'reference.wav', + }; + return builder.createTemplateOperationGraph( + template, + form, + actualStarter(row), + fixture.registry, + spec, + capability, + current, + ); +} + +test('audio replacement is atomic at capacity and rejects malformed populated selections', () => { + const { graph, root } = setup(fixture.recipes.find((item) => item.id === 'ace:Runware:text_to_audio')); + const populated = adapters.planModelSetupAdapterEdit( + graph, + root.id, + { kind: 'add', values: pinned(), registry: authority.nodesRegistry }, + authority, + ); + const chain = adapters.modelSetupAdapterChain(populated, root.id); + const original = structuredClone(populated); + const replaced = adapters.planModelSetupAdapterEdit( + populated, + root.id, + { + kind: 'replace', + nodeId: chain.adapters[0].id, + values: { ...pinned(), adapter_name: 'replacement', scale: 0.625 }, + registry: authority.nodesRegistry, + }, + authority, + ); + const replacement = adapters.modelSetupAdapterChain(replaced, root.id); + assert.equal(replacement.adapters.length, 1); + assert.equal(replacement.adapters[0].id, chain.adapters[0].id); + assert.equal(replacement.adapters[0].data.params.adapter_name.value, 'replacement'); + assert.equal(replacement.adapters[0].data.params.scale.value, 0.625); + const endpoints = (graph) => + graph.edges.map(({ source, sourceHandle, target, targetHandle }) => ({ + source, + sourceHandle, + target, + targetHandle, + })); + assert.deepEqual(endpoints(replacement.unpacked.graph), endpoints(chain.unpacked.graph)); + assert.deepEqual(populated, original); + for (const mutate of [ + (value) => { + value.adapter_path.source = ['hub']; + }, + (value) => { + value.adapter_path.source = {}; + }, + (value) => { + value.adapter_path.source = true; + }, + (value) => { + value.revision = 'main'; + }, + (value) => { + value.expected_sha256 = ''; + }, + (value) => { + value.weight_name = '../adapter.safetensors'; + }, + ]) { + const values = pinned(); + mutate(values); + assert.throws(() => + adapters.planModelSetupAdapterEdit( + populated, + root.id, + { kind: 'replace', nodeId: chain.adapters[0].id, values, registry: authority.nodesRegistry }, + authority, + ), + ); + assert.deepEqual(populated, original); + } +}); + +test('audio policy rejects non-data own fields before reading a getter', () => { + const profile = authority.studioModelCapabilities.find((item) => item.modelType === 'AceStepAudioPipeline') + .executionProfiles[0]; + let calls = 0; + const getter = structuredClone(profile.adapterAuthoring); + Object.defineProperty(getter, 'mediaKind', { + enumerable: true, + get() { + calls++; + return 'audio'; + }, + }); + const symbol = structuredClone(profile.adapterAuthoring); + symbol[Symbol('foreign')] = true; + const hidden = structuredClone(profile.adapterAuthoring); + Object.defineProperty(hidden, 'extra', { value: true }); + for (const policy of [getter, symbol, hidden]) + assert.throws(() => + policies.parseAdapterAuthoringPolicy(policy, profile.modes, profile.repository_revisions, profile), + ); + assert.equal(calls, 0); +}); + +test('a restrictive actual policy map refuses both manual Add and populated template insertion', () => { + const current = structuredClone(authority); + current.studioModelCapabilities.find( + (item) => item.modelType === 'AceStepAudioPipeline', + ).executionProfiles[0].adapterAuthoring.requiredControls = { offload_mode: 'group_disk' }; + const { graph, root, chain } = setup(fixture.recipes.find((item) => item.id === 'ace:Runware:text_to_audio')); + const before = structuredClone(graph); + assert.equal(typeof adapters.modelSetupAdapterAddUnavailable(chain, current), 'string'); + assert.throws(() => + adapters.planModelSetupAdapterEdit( + graph, + root.id, + { kind: 'add', values: pinned(), registry: current.nodesRegistry }, + current, + ), + ); + assert.deepEqual(graph, before); + assert.throws(() => + factory( + templates.find((item) => item.id === 'ace_step_chinese_new_year_lora'), + current, + ), + ); +}); + +test('user-supplied blank audio adapter remains a required-input draft while tampered curated weights refuse', () => { + const draft = structuredClone(templates.find((item) => item.id === 'ace_step_custom_lora')); + draft.workflowBlockSettings.lora.model = { source: 'local', value: '' }; + const graph = factory(draft); + const flat = groups.unpackVisualOperationGroups(graph).graph; + const adapter = flat.nodes.find((node) => node.data.action === 'LoadAdapter'); + assert.deepEqual(adapter.data.params.adapter_path.value, { source: 'local', value: '' }); + const issues = requiredInputs.inspectRequiredGraphInputs(graph.nodes, flat, fixture.registry); + assert.ok( + issues.some( + (issue) => issue.blocking && issue.code === 'required_graph_input_missing' && /LoRA/.test(issue.message), + ), + ); + const curated = templates.find((item) => item.id === 'ace_step_chinese_new_year_lora'); + assert.equal(curated.workflowBlockSettings.lora.model.byteSize, 88130280); + for (const mutate of [ + (lora) => { + lora.model.revision = 'main'; + }, + (lora) => { + lora.model.sha256 = ''; + }, + (lora) => { + lora.weightName = '../adapter.safetensors'; + }, + (lora) => { + lora.model.source = ['hub']; + }, + ]) { + const bad = structuredClone(curated); + mutate(bad.workflowBlockSettings.lora); + assert.throws(() => factory(bad)); + } +}); + +test('audio output wording survives removed or mixed previews and custom titles', () => { + const original = actualGraph(fixture.recipes.find((item) => item.id === 'minimax:text_to_audio')); + const grouped = groups.groupNewOperationGraph(original); + const output = grouped.nodes.find((node) => groups.visualOperationGroup(node) === 'output'); + output.data.label = 'My rendered song'; + const instance = output.data.blockInstanceV2; + instance.definitionSnapshot.previews = []; + instance.previewStates = []; + assert.equal(projection.visualOperationGroupMedia(output), 'audio'); + assert.deepEqual(projection.visualStagePresentation('output', projection.visualOperationGroupMedia(output)), { + label: 'Audio Output', + name: 'audio output', + }); + instance.definitionSnapshot.previews.push({ + nodeId: 'custom-preview', + outputPortId: 'image', + mediaType: 'image', + label: 'Artwork', + }); + assert.equal(projection.visualOperationGroupMedia(output), 'audio'); + assert.equal(output.data.label, 'My rendered song'); +}); + +test('required model selectors distinguish blank drafts, populated values, declared connections and optional absence', () => { + const registered = { + type: 'custom', + module: 'modules.Future', + action: 'SelectModel', + label: 'Model', + category: 'Test', + params: { model: { label: 'Model', display: 'modelselect', type: 'string', required: true } }, + }; + const node = { id: 'model', type: 'custom', position: { x: 0, y: 0 }, data: structuredClone(registered) }; + const registry = { 'modules.Future.SelectModel': registered }; + const graph = { nodes: [node], edges: [] }; + const inspect = () => requiredInputs.inspectRequiredGraphInputs(graph.nodes, graph, registry); + for (const value of [ + '', + ' ', + { source: 'local', value: '' }, + { source: 'hub', value: '' }, + { source: 'local', value: ' ' }, + ]) { + node.data.params.model.value = value; + assert.equal(inspect().length, 1); + } + for (const value of ['path/to/weights', { source: 'local', value: 'path/to/weights' }]) { + node.data.params.model.value = value; + assert.deepEqual(inspect(), []); + } + delete node.data.params.model.value; + const source = { + id: 'text', + type: 'custom', + position: { x: 0, y: 0 }, + data: { ...registered, action: 'Text', params: { text: { type: 'string', display: 'output' } } }, + }; + graph.nodes.push(source); + graph.edges.push({ + id: 'model-input', + source: source.id, + sourceHandle: 'text', + target: node.id, + targetHandle: 'model', + }); + assert.deepEqual(inspect(), []); + source.data.params.text.type = 'image'; + assert.equal(inspect().length, 1); + graph.edges = []; + registered.params.model.required = false; + assert.deepEqual(inspect(), []); +}); + +test('audio Replace preserves a custom row and a connected unchanged strength', () => { + const { graph, root } = setup(fixture.recipes.find((item) => item.id === 'ace:Runware:text_to_audio')); + const populated = adapters.planModelSetupAdapterEdit( + graph, + root.id, + { kind: 'add', values: pinned(), registry: authority.nodesRegistry }, + authority, + ); + const chain = adapters.modelSetupAdapterChain(populated, root.id); + const row = chain.adapters[0]; + row.data.label = 'My audio style'; + row.data.style = { width: 432 }; + row.data.uiState = { collapsed: true }; + chain.unpacked.graph.nodes.push({ + id: 'strength-source', + type: 'custom', + position: { x: 0, y: 700 }, + data: { + type: 'custom', + module: 'modules.Future', + action: 'Strength', + category: 'Test', + label: 'Strength', + params: { value: { type: 'float', display: 'output', value: 0.355 } }, + }, + }); + chain.unpacked.graph.edges.push({ + id: 'strength-edge', + source: 'strength-source', + sourceHandle: 'value', + target: row.id, + targetHandle: 'scale', + }); + const presented = groups.restoreVisualOperationGroups(chain.unpacked.graph, chain.unpacked); + const before = structuredClone(presented); + const current = adapters.modelSetupAdapterChain(presented, root.id); + const replaced = adapters.planModelSetupAdapterEdit( + presented, + root.id, + { + kind: 'replace', + nodeId: current.adapters[0].id, + values: { ...pinned(), adapter_name: 'new_name' }, + registry: authority.nodesRegistry, + }, + authority, + ); + const after = adapters.modelSetupAdapterChain(replaced, root.id); + assert.equal(after.adapters[0].data.label, 'My audio style'); + assert.deepEqual(after.adapters[0].data.style, current.adapters[0].data.style); + assert.deepEqual(after.adapters[0].data.uiState, current.adapters[0].data.uiState); + assert.equal(after.adapters[0].data.params.scale.value, 0.355); + assert.ok( + after.unpacked.graph.edges.some( + (edge) => + edge.source === 'strength-source' && edge.target === after.adapters[0].id && edge.targetHandle === 'scale', + ), + ); + assert.throws(() => + adapters.planModelSetupAdapterEdit( + presented, + root.id, + { + kind: 'replace', + nodeId: current.adapters[0].id, + values: { ...pinned(), scale: 0.5 }, + registry: authority.nodesRegistry, + }, + authority, + ), + ); + assert.deepEqual(presented, before); +}); + +test('ordinary audio template hydration retains provenance and real stages without managed recovery', async (t) => { + const studio = (await server.ssrLoadModule('/src/stores/useStudioStore.ts')).useStudioStore; + const flow = exporter.useFlowStore; + for (const id of ['ace_step_text_to_audio', 'minimax_music3_chamber_pop']) + await t.test(id, () => { + const previous = [studio.getState(), flow.getState()]; + try { + const template = templates.find((item) => item.id === id); + assert.ok(template, id); + const selection = template.executionSelection; + const row = fixture.recipes.find( + (item) => item.starter.pipelineClass === selection.pipelineClass && item.starter.task === selection.task, + ); + const capability = authority.studioModelCapabilities.find((item) => item.modelType === template.modelType); + const spec = capability.studioExecutionSpecs.find((item) => item.mode === template.mode); + const form = { + ...defaults, + ...exactness.getTemplateLockedSettings(template), + mode: template.mode, + modelType: template.modelType, + device: 'cpu:0', + offloadMode: 'none', + autoOffload: false, + }; + const graph = builder.createTemplateOperationGraph( + template, + form, + actualStarter(row), + fixture.registry, + spec, + capability, + authority, + ); + flow.getState().replaceGraph(graph); + const persistedGraph = flow.getState().toObject(); + const expectedApi = api(persistedGraph); + const tabId = `restored-${id}`; + const record = { + id: tabId, + title: template.label, + source: 'template', + sourceLabel: id, + revision: 1, + snapshot: { + ...persistedGraph, + // A stale Creator form is advisory for this ordinary saved graph. + studioForm: { ...form, device: 'cuda:0', offloadMode: 'model_cpu', autoOffload: true }, + selectedMode: template.mode, + activeTemplateId: id, + studioGraphBinding: null, + sourceOutputId: null, + }, + }; + studio.setState({ workflowTabs: [], activeWorkflowTabId: tabId, workflowCanvasHydrated: true }); + studio.getState().mergeBackendWorkflow(record); + assert.equal(studio.getState().graphBinding, null); + assert.equal(studio.getState().activeTemplateId, id); + const restored = studio.getState().workflowTabs.find((tab) => tab.id === tabId); + assert.equal(restored.source, 'template'); + assert.equal(restored.sourceLabel, id); + assert.deepEqual( + JSON.parse(JSON.stringify(flow.getState().nodes)), + JSON.parse(JSON.stringify(persistedGraph.nodes)), + 'persisted graph metadata and ownership survive the real JSON transport', + ); + assert.deepEqual(api(flow.getState().toObject()), expectedApi); + } finally { + studio.setState(previous[0]); + flow.setState(previous[1]); + } + }); +}); diff --git a/scripts/audio-schema-fixture.mjs b/scripts/audio-schema-fixture.mjs new file mode 100644 index 00000000..f84b3e5e --- /dev/null +++ b/scripts/audio-schema-fixture.mjs @@ -0,0 +1,53 @@ +import { execFileSync } from 'node:child_process'; +import path from 'node:path'; + +/** Actual registry/starter publication only: no executable node construction. */ +export function captureAudioSchemaFixture() { + const backend = process.env.MODIFF_BACKEND_DIR || path.resolve('../MoDiff'); + const python = + process.env.MODIFF_BACKEND_PYTHON || + path.join(backend, '.venv', process.platform === 'win32' ? 'Scripts/python.exe' : 'bin/python'); + const selections = ['ACE-Step', 'Runware'].flatMap((repository) => + ['text_to_audio', 'audio_variation', 'audio_continuation', 'audio_repaint'].map((task) => ({ + id: `ace:${repository}:${task}`, + selection: { + schemaVersion: 1, + pipelineClass: 'AceStepPipeline', + task, + executionProfileId: 'ace-step-audio:direct', + repository: + repository === 'ACE-Step' ? 'ACE-Step/acestep-v15-xl-turbo-diffusers' : 'Runware/acestep-v15-turbo-diffusers', + bindingSpec: { modelType: 'AceStepAudioPipeline', mode: task }, + }, + })), + ); + selections.push({ + id: 'minimax:text_to_audio', + selection: { + schemaVersion: 1, + pipelineClass: 'MiniMaxMusic3ModularPipeline', + task: 'text_to_audio', + executionProfileId: 'minimax-music3:official-modular-workflow', + bindingSpec: { modelType: 'MiniMaxMusic3ModularPipeline', mode: 'text_to_audio' }, + }, + }); + for (const pipelineClass of ['StableAudioPipeline', 'LongCatAudioDiTPipeline', 'AudioLDM2Pipeline']) + selections.push({ id: `${pipelineClass}:text_to_audio`, selection: { pipelineClass, task: 'text_to_audio' } }); + return JSON.parse( + execFileSync(python, [path.resolve('scripts/template-operation-fixtures.py')], { + cwd: backend, + encoding: 'utf8', + maxBuffer: 64 * 1024 * 1024, + timeout: 120_000, + env: { + ...process.env, + MODIFF_BACKEND_DIR: backend, + CUDA_VISIBLE_DEVICES: '', + HF_HUB_OFFLINE: '1', + TRANSFORMERS_OFFLINE: '1', + PYTHONDONTWRITEBYTECODE: '1', + }, + input: JSON.stringify(selections), + }), + ); +} diff --git a/scripts/block-renderer-v2.test.mjs b/scripts/block-renderer-v2.test.mjs index b1a4ace4..4eae9b79 100644 --- a/scripts/block-renderer-v2.test.mjs +++ b/scripts/block-renderer-v2.test.mjs @@ -2124,3 +2124,155 @@ test('connectable scalar controls retain inline editors and literal false, zero assert.equal(controls.prompt.value, ''); assert.deepEqual(node, before); }); + +test('declared Block source fields preserve offload labels and alias-targeted edits', async () => { + const { createElement, Children, isValidElement } = await import('react'); + const { renderToStaticMarkup } = await import('react-dom/server'); + const { default: SelectField } = await server.ssrLoadModule('/src/fields/SelectField.tsx'); + const { ModiffSelect } = await server.ssrLoadModule('/src/ui/index.ts'); + const options = ['auto_cpu', 'none', 'model_cpu', 'sequential_cpu', 'group_cpu', 'group_disk']; + const check = (fieldKey, param, sourceKey = 'offload_mode') => { + const before = structuredClone(param); + const edits = []; + for (const [value, label] of [ + ['group_disk', 'SSD group offload'], + ['auto_cpu', 'RAM/CPU model offload'], + ]) { + let select; + const props = { + nodeId: 'offload-view', + fieldKey, + label: 'Offload Mode', + display: 'select', + value, + default: 'none', + options: param.options, + fieldOptions: param.fieldOptions, + disabled: false, + hidden: false, + style: {}, + dataType: 'string', + fieldType: 'select', + module: 'modiff.blocks', + action: 'BlockV2', + updateStore: (...args) => edits.push(args), + }; + const visit = (element) => { + if (!isValidElement(element)) return; + if (element.type === ModiffSelect) select = element; + Children.forEach(element.props.children, visit); + }; + function Render() { + const view = SelectField(props); + visit(view); + return view; + } + const markup = renderToStaticMarkup(createElement(Render)); + assert.ok(select, 'the actual field renders the shared select'); + if (sourceKey === 'offload_mode') { + assert.ok(markup.includes(label), `${fieldKey} renders ${label}`); + assert.deepEqual( + select.props.options.map(({ value }) => value), + options.slice(1), + ); + assert.equal(select.props.options.find(({ value }) => value === 'group_disk').label, 'SSD group offload'); + } else { + assert.ok(markup.includes(value), 'an unrelated selector keeps its declared labels'); + assert.deepEqual( + select.props.options.map(({ value }) => value), + options, + ); + } + select.props.onValueChange('group_disk'); + assert.deepEqual(edits.at(-1), [fieldKey, 'group_disk'], 'edits retain the exact canvas alias and raw value'); + } + assert.deepEqual(param, before, 'rendering does not normalize or mutate the graph field'); + }; + for (const [module, action] of [ + ['modules.ModularDiffusers', 'ModelsLoader'], + ['modules.DiffusersImage', 'LoadPipeline'], + ['modules.DiffusersAudio', 'LoadPipeline'], + ]) { + const migrated = schema.migrateUserBlockDefinitionV1({ + id: 'offload-rendering', + name: 'Offload rendering', + version: 1, + nodes: [ + { + id: 'loader', + type: 'custom', + position: { x: 0, y: 0 }, + data: { + type: 'custom', + module, + action, + label: 'Loader', + params: { + offload_mode: { type: 'string', options, value: 'group_disk' }, + }, + }, + }, + ], + edges: [], + inputs: [], + outputs: [], + exposedParams: [ + { + id: 'placement-choice', + kind: 'graph-param', + label: 'Offload Mode', + nodeId: 'loader', + paramKey: 'offload_mode', + }, + ], + createdAt: 1, + updatedAt: 2, + }); + const graph = structuredClone(migrated.graph); + graph.nodes.unshift({ + nodeId: 'stage', + nodeType: 'group', + data: { type: 'group', label: 'Stage', params: {} }, + modularDiffusers: modularMetadata('stage', ['stage'], undefined, 'sequential'), + }); + graph.nodes.find(({ nodeId }) => nodeId === 'loader').modularDiffusers = modularMetadata( + 'loader', + ['stage', 'loader'], + ['stage'], + ); + graph.executionOrder = ['stage', 'loader']; + graph.graphHash = schema.blockGraphHashV2(graph); + const definition = { ...migrated, graph }; + definition.contentHash = schema.blockDefinitionContentHashV2(definition); + const current = schema.createBlockInstanceV2(definition, { + instanceId: 'offload-root', + position: { x: 0, y: 0 }, + size: { width: 500, height: 500 }, + }); + const before = structuredClone(current); + const root = runtime.blockControlParamsV2(current); + check('placement-choice', root['placement-choice']); + const projected = runtime.materializeBlockProjectionV2( + runtime.createBlockRootNodeV2(runtime.setBlockPresentationV2(current, { expanded: true })), + ); + const stage = projected.nodes.find(({ data }) => data.blockProjectionNodeId === 'stage'); + const alias = Object.entries(stage.data.params).find( + ([, field]) => field.fieldOptions?.blockBindingV2?.fieldOrPortId === 'offload_mode', + ); + assert.ok(alias, 'a collapsed intermediate container exposes the real control alias'); + assert.notEqual(alias[0], 'offload_mode'); + check(...alias); + assert.deepEqual(current, before, 'all instance values, source declarations and execution graph remain unchanged'); + } + check('offload_mode', { options }); + check( + 'different-setting', + { options, fieldOptions: { blockBindingV2: { schemaVersion: 2, fieldOrPortId: 'different-setting' } } }, + 'different-setting', + ); + check( + 'different-setting', + { options, fieldOptions: { blockBindingV2: { schemaVersion: 1, fieldOrPortId: 'offload_mode' } } }, + 'different-setting', + ); +}); diff --git a/scripts/block-runtime-v2.test.mjs b/scripts/block-runtime-v2.test.mjs index f8eeb6d6..3d2c1350 100644 --- a/scripts/block-runtime-v2.test.mjs +++ b/scripts/block-runtime-v2.test.mjs @@ -3142,3 +3142,109 @@ test('missing required model inputs remain submission blockers in Custom memory studioStore.useStudioStore.setState(original); } }); + +function actionCompatibilityInstanceV2(mirroredAction) { + const base = definition(); + const generate = base.graph.nodes.find((node) => node.nodeId === 'generate'); + generate.data.params.prompt.signalCompatibility = { required: true, action: '$node' }; + generate.data.params.images.signalCompatibility = { required: true, action: '$node' }; + if (mirroredAction) { + const mirror = structuredClone(generate); + mirror.nodeId = 'nested-stage:generate'; + mirror.data.action = mirroredAction; + base.graph.nodes.push(mirror); + base.graph.executionOrder.push(mirror.nodeId); + base.boundary.inputs[0].mirrorBindings = [{ nodeId: mirror.nodeId, fieldOrPortId: 'prompt' }]; + } + base.graph.graphHash = schema.blockGraphHashV2(base.graph); + base.contentHash = schema.blockDefinitionContentHashV2(base); + return schema.createBlockInstanceV2(base, { + instanceId: 'action-compatibility', + position: { x: 0, y: 0 }, + size: { width: 400, height: 300 }, + }); +} + +test('Block ports preserve their exact bound action compatibility in both directions', async () => { + const matching = await server.ssrLoadModule('/src/workflow/nodeConnectionMatching.ts'); + const current = actionCompatibilityInstanceV2(); + const before = JSON.stringify(current); + const root = runtime.createBlockRootNodeV2(current); + const producer = { + module: 'custom.Source', + action: 'Load', + type: 'custom', + params: { + output: { + type: 'string', + display: 'output', + signal: { + value: { mode: 'text_to_image', connectionActions: { Generate: ['text_to_image'] } }, + }, + }, + }, + }; + assert.equal(matching.nodeConnectionSemanticsAreCompatible(producer, 'output', root.data, 'prompt'), true); + const target = { + module: 'custom.Target', + action: 'Preview', + type: 'custom', + params: { + input: { + type: 'list[image]', + display: 'input', + signal: { + value: { mode: 'text_to_image', actions: { Generate: ['text_to_image'] } }, + }, + }, + }, + }; + assert.equal(matching.nodeConnectionSemanticsAreCompatible(root.data, 'images', target, 'input'), true); + const ports = runtime.blockConnectorParamsV2(current); + assert.deepEqual(ports.inputs.prompt.signalCompatibility, { required: true, action: 'Generate' }); + assert.deepEqual(ports.outputs.images.signalCompatibility, { required: true, action: 'Generate' }); + assert.equal(JSON.stringify(current), before, 'projection cannot rewrite the immutable leaf contract'); + for (const signal of [ + undefined, + { value: { mode: 'foreign', actions: { Generate: ['text_to_image'] } } }, + { value: { mode: 'text_to_image', actions: { Foreign: ['text_to_image'] } } }, + { value: { mode: 'text_to_image', actions: {} } }, + ]) { + const wrong = structuredClone(producer); + wrong.params.output.signal = signal; + assert.equal(matching.nodeConnectionSemanticsAreCompatible(wrong, 'output', root.data, 'prompt'), false); + } +}); + +test('Block action-bound mirrors require identical declared leaf actions and reject unknown bindings', () => { + assert.equal( + runtime.blockConnectorParamsV2(actionCompatibilityInstanceV2('Generate')).inputs.prompt.signalCompatibility.action, + 'Generate', + ); + assert.throws( + () => runtime.blockConnectorParamsV2(actionCompatibilityInstanceV2('DifferentAction')), + /bound actions differ or are missing/u, + ); + const missing = actionCompatibilityInstanceV2(); + missing.effectiveInterface.boundary.inputs[0].binding.nodeId = 'foreign:missing'; + missing.effectiveInterface.effectiveInterfaceHash = schema.blockInterfaceHashV2(missing.effectiveInterface); + missing.customization.state = 'structure_changed'; + assert.throws(() => runtime.blockConnectorParamsV2(missing), /unknown|missing/u); +}); + +test('Block literal action and native role/value signal declarations retain their exact semantics', () => { + const current = actionCompatibilityInstanceV2(); + const generate = current.effectiveGraph.nodes.find((node) => node.nodeId === 'generate'); + const contract = { + required: true, + action: 'FixedAction', + role: ['denoiser', 'encoder'], + values: { selected: ['own'] }, + }; + generate.data.params.prompt.signalCompatibility = contract; + current.effectiveGraph.graphHash = schema.blockGraphHashV2(current.effectiveGraph); + current.customization.effectiveGraphHash = current.effectiveGraph.graphHash; + current.customization.state = 'structure_changed'; + current.authorities = []; + assert.deepEqual(runtime.blockConnectorParamsV2(current).inputs.prompt.signalCompatibility, contract); +}); diff --git a/scripts/bundle-budget.mjs b/scripts/bundle-budget.mjs index 7f8d0745..6cb6a1e0 100644 --- a/scripts/bundle-budget.mjs +++ b/scripts/bundle-budget.mjs @@ -1,3 +1,51 @@ +// Final selected-parent field authority and owned Guidance presentation, plus +// source-region removal and runtime Auto resource-update corrections, measure +// startup/chunk/deferred gzip bytes 656112/477808/315072. Bound the completed +// feature and correctness changes by another 128/128/896 bytes over the prior +// caps 656004/477694/314230, leaving 20/14/54 bytes of measured headroom. +// Dependencies, lazy boundaries, chunk rules, minifier and the independent +// 65536-byte deferred chunk cap remain unchanged. +// Optional prompt enhancement, strict consumed-input/summary validation and the +// asynchronous exact execution scope measure startup/chunk/deferred gzip bytes +// 655940/477635/314107 versus the accepted 650884/472574/291190 baseline. +// Keep planner/declaration loading deferred: the async selector boundary removes +// 31722 eager bytes, and separate saved-hint codecs remove another 5555 bytes. +// Bound required feature growth at 5120/5120/23040 bytes over that baseline: +// caps 656004/477694/314230 leave 64/59/123 bytes in this measured build. +// Dependencies, chunk rules, minifier and the 65536-byte deferred chunk cap stay fixed. +// Generic structured layout/reference editing, exact selected block-field schemas +// and backend-owned format inventory measure startup/chunk/deferred +// 650884/472574/291190 gzip bytes versus MAIN 648784/470476/283943. +// The layout editor remains lazy (6540 bytes); Model Manager adds 602 lazy bytes. +// Shared strict schema/inventory validation and renewed route pins add 2100 startup +// bytes. Allow 2112 per startup cap and 7232 aggregate deferred bytes, leaving +// 28/34/42 bytes. Dependencies, Vite/minifier/loading boundaries and the independent +// 65536-byte deferred chunk cap remain unchanged. +// Declared-source offload labels measure startup/chunk/deferred 648784/470476/283943 +// gzip bytes. Add 64 bytes to each startup cap, leaving 16/20 bytes of margin. +// Dependencies, loading boundaries and both deferred caps remain unchanged. +// Ordinary graph recovery measures startup/chunk/deferred 648736/470427/283981 +// gzip bytes. Retain both startup caps; add 32 deferred bytes, leaving 19 bytes. +// Dependencies, loading boundaries and the individual deferred chunk cap stay fixed. +// Generic audio setup/output, current adapter authority and seven selected audio +// recipes measure startup/chunk/deferred 648723/470415/283916 gzip bytes. +// Allow 896/896/2368 bytes over the prior caps, leaving 13/17/52 bytes. +// Dependencies, minifier, loading boundaries and the 65536-byte chunk cap stay fixed. +// Block bound-action projection and declared-role validation measure startup/chunk/ +// deferred 647825/469517/281574 bytes (+117/+118/+76 from 647708/469399/281498). +// Add 64 bytes per cap: 647840/469536/281600, leaving 15/19/26 bytes of margin. +// Dependencies, loading boundaries, minifier and the 65536 deferred chunk cap stay fixed. +// The final six registered stage boundaries add 105 startup/chunk gzip bytes: +// 647708/469399 versus the initial coherent 647603/469294 measurement. +// Add 128 bytes to those two caps only: 647776/469472, leaving 68/73 bytes. +// Final deferred total is 281498; its 281536 aggregate and 65536 chunk caps stay fixed. +// Shared stage contracts and required-controls safety validation measure +// startup/largest-startup/deferred 647603/469294/281513 gzip bytes in the +// coherent build. Former caps 647072/468768/278976 miss by 531/526/2537 bytes. +// Allow only 576 startup/largest bytes and 2560 aggregate deferred bytes; +// new caps 647648/469344/281536 leave 45/50/23 bytes of measured headroom. +// Dependencies, minifier settings and loading boundaries stay unchanged; +// retain the independent 65536-byte limit for every deferred chunk. import { existsSync, readdirSync, readFileSync } from 'node:fs'; import { relative } from 'node:path'; import { gzipSync } from 'node:zlib'; @@ -65,8 +113,56 @@ const SOURCE_LICENSES = new URL('../public/THIRD_PARTY_LICENSES.txt', import.met // Retaining the server cache view through restored graphs and retiring only // acknowledged runtime leaves adds 738 startup gzip bytes (645816/467510). // Bound this shared correctness path by 768 bytes; deferred caps stay fixed. +// Generic image stage/adapter metadata and ordered chain sharing add 375 gzip +// bytes over the paired 467559-byte chunk baseline (467934 measured). Reserve +// 384 bytes; graph creation and structural authoring remain deferred. +// Finite manual float precision and exact step increments measure startup/chunk/ +// deferred 646464/468158/278511 bytes versus the accepted 646417/468111/278510 +// (+47/+47/+1 bytes), while retaining existing padding when it preserves the value. +// Allow 64 bytes for startup and its largest chunk, with no dependency or loading changes. +// Shared strict CPU/CUDA loading-policy validation measures startup/chunk/deferred +// 646530/468224/278562 bytes versus the accepted numeric 646464/468158/278511 +// (+66/+66/+51). Sharing the predicate saves 20 startup bytes over the first +// candidate. Existing headroom plus 64 additional startup/chunk bytes leaves +// 30/32 bytes of margin; both deferred limits and lazy boundaries stay fixed. +// Selected-profile image adapter permission and bounded owned-chain editing +// measure startup/chunk/deferred 646923/468616/278913 bytes versus the accepted +// 646530/468224/278562 baseline (+393/+392/+351). Allow 384 startup/chunk bytes +// and 320 aggregate deferred bytes with existing headroom; dependencies, lazy +// boundaries, minifier settings and the 64 KiB per-deferred-chunk cap stay fixed. +// Authoritative image execution-mode bindings measure startup/chunk 647025/468717 +// gzip bytes versus the accepted 646923/468616 (+102/+101); deferred 278958 +// stays within its existing 278976 cap. Two semantics-preserving isolated +// candidates still miss startup/chunk limits (646985/468683 and 647014/468706). +// Retain the strict current-owner/parser checks and allow 128 startup/chunk +// bytes only; dependencies, lazy boundaries, minifier and deferred caps stay fixed. const MAX_STARTUP_CHUNK_GZIP_BYTES = - 450 * 1024 + 768 + 1280 + 256 + 576 + 320 + 512 + 1536 + 32 + 128 + 384 + 384 + 768; + 450 * 1024 + + 896 + + 768 + + 1280 + + 256 + + 576 + + 320 + + 512 + + 1536 + + 32 + + 128 + + 384 + + 384 + + 768 + + 384 + + 64 + + 64 + + 384 + + 128 + + 576 + + 128 + + 64 + + 64 + + 2112 + + 5086 + + 128; // Shared icons initialize in graph-vendor, avoiding an entry/lazy-panel cycle // that captured undefined tab icons and crashed cold production startup. The // Earlier startup measured 589.1 KiB. Shared Block crossing, explicit movement, @@ -139,7 +235,38 @@ const MAX_STARTUP_CHUNK_GZIP_BYTES = // The same recipe metadata measures 643554 total startup bytes (+1378). // Allocate 1536 bytes for this feature, preserving the existing four assets. // Preserve both reviewed allowances: 642304 + 512 + 1536 = 644352 bytes. -const MAX_STARTUP_GZIP_BYTES = 624 * 1024 + 768 + 1280 + 384 + 576 + 320 + 512 + 1536 + 32 + 128 + 384 + 384 + 768; +// The same shared image metadata measures 646240 startup bytes, 373 above the +// paired 645867-byte baseline. Reserve the same bounded 384-byte allowance. +// Preserve the same bounded 64-byte numeric-field correction allowance. +// Preserve the separately measured 64-byte shared loading-policy allowance above. +// Preserve the measured 384-byte selected-image authoring allowance above. +const MAX_STARTUP_GZIP_BYTES = + 624 * 1024 + + 896 + + 768 + + 1280 + + 384 + + 576 + + 320 + + 512 + + 1536 + + 32 + + 128 + + 384 + + 384 + + 768 + + 384 + + 64 + + 64 + + 384 + + 128 + + 576 + + 128 + + 64 + + 64 + + 2112 + + 5092 + + 128; // Deferred surfaces are measured separately so code splitting cannot hide an // unbounded feature bundle. These ceilings leave room for the reviewed dialogs // and catalog tools while preventing either one oversized deferred chunk or @@ -283,8 +410,46 @@ const MAX_DEFERRED_CHUNK_GZIP_BYTES = 64 * 1024; // The shared 512-byte polling allowance above is counted once. Preserve the // separate Windows 256 + 1024 and incoming 128 + 2048 additions: // 268800 + 512 + 256 + 1024 + 128 + 2048 = 272768 bytes. +// Owned image adapters, combined-stage controls and strict backend recipe +// validation measure 277158 deferred bytes versus the paired 272631 baseline. +// Sharing the already-lazy authoring planners saves 1450 bytes. Reserve only +// 4608 additional bytes for this feature; no dependencies, eager authoring, +// unsafe minifier rewrites or individual 64 KiB deferred limits are added. +// Exact selected-image adapter authority, safe unsupported-row recovery and +// typed direct-adapter/Cosmos output ownership add 1605 deferred gzip bytes to +// the 276849-byte image-stage checkpoint. The validator is shared and remains +// lazy. Measured aggregate is 278454; allow 1280 bytes above the previous cap +// (278656 total), with existing headroom covering the rest of this correction. +// Numeric precision measures 278511 deferred bytes, within the existing ceiling. +// Keep both aggregate and individual deferred limits unchanged. +// The selected-image authoring feature above uses 320 additional aggregate bytes; +// the independently bounded 64 KiB deferred chunks and loading checks stay fixed. const MAX_DEFERRED_GZIP_BYTES = - 248 * 1024 + 512 + 3328 + 128 + 256 + 128 + 384 + 8704 + 768 + 640 + 256 + 512 + 1024 + 128 + 2048; + 248 * 1024 + + 32 + + 2368 + + 512 + + 3328 + + 128 + + 256 + + 128 + + 384 + + 8704 + + 768 + + 640 + + 256 + + 512 + + 1024 + + 128 + + 2048 + + 4608 + + 1280 + + 320 + + 2560 + + 64 + + 7232 + + 22998 + + 896; const STATIC_MODULE_REFERENCE = /\b(?:import(?=\s|["'{*])(?!\s*\()|export(?=\s|["'{*]))[^;]*?["'](\.\/[^"'?]+\.js)(?:\?v=[0-9a-f]{16})?["']/g; diff --git a/scripts/graph-visuals.test.mjs b/scripts/graph-visuals.test.mjs index fedba467..4368286b 100644 --- a/scripts/graph-visuals.test.mjs +++ b/scripts/graph-visuals.test.mjs @@ -24,7 +24,10 @@ import { normalizePortableWorkflowDataReference, normalizePortableWorkflowFieldState, } from './workflow-library-contract.mjs'; -import { retainUnselectedCurrentWorkflowRecords } from './workflow-library-manifest-state.mjs'; +import { + compareCanonicalWorkflowRecordIds, + retainUnselectedCurrentWorkflowRecords, +} from './workflow-library-manifest-state.mjs'; const ROOT = path.resolve(path.dirname(fileURLToPath(import.meta.url)), '..'); @@ -9190,6 +9193,38 @@ test('targeted generation drops stale pairs and retains only current unselected assert.deepEqual(retainUnselectedCurrentWorkflowRecords(records, capabilities, null), []); }); +test('pair-only canonical publication preserves codepoint order and unselected record contents', () => { + const ids = [ + 'Cosmos3OmniModularPipeline:text_to_image', + 'LTX2Pipeline:text_to_video', + 'LatentConsistencyModelPipeline:text_to_image', + 'LongCatAudioDiTPipeline:text_to_audio', + 'PRXPipeline:text_to_image', + 'PixArtSigmaPipeline:text_to_image', + ]; + const records = ids.map((id) => { + const [modelType, mode] = id.split(':'); + return { id, modelType, mode, graphHash: `original-${id}`, runtimeQualificationStatus: 'unqualified' }; + }); + const capabilities = records.map(({ modelType, mode }) => ({ modelType, runnableModes: [mode] })); + const selected = { ...records[0], graphHash: 'reviewed-new-cosmos-graph' }; + const unselected = retainUnselectedCurrentWorkflowRecords( + records, + capabilities, + 'Cosmos3OmniModularPipeline|text_to_image', + ); + const published = [...unselected, selected].sort(compareCanonicalWorkflowRecordIds); + + assert.deepEqual( + published.map(({ id }) => id), + ids, + ); + assert.equal(published[0], selected); + assert.deepEqual(published.slice(1), records.slice(1)); + for (let index = 1; index < records.length; index++) assert.equal(published[index], records[index]); + assert.equal(compareCanonicalWorkflowRecordIds(selected, { ...selected }), 0); +}); + test('canonical workflow generation persists the final layout and library open does not rearrange it', () => { const generator = fs.readFileSync(path.join(ROOT, 'scripts', 'workflow-library-generator.mjs'), 'utf8'); const graphList = fs.readFileSync(path.join(ROOT, 'src', 'components', 'GraphList.tsx'), 'utf8'); @@ -9199,7 +9234,9 @@ test('canonical workflow generation persists the final layout and library open d const navigationIndex = generator.indexOf("currentPage.goto(FRONTEND_URL, { waitUntil: 'domcontentloaded' })"); const prepareIndex = generator.indexOf('prepareWorkflowGraphForExport'); const preCanonicalArrangeIndex = generator.indexOf('const arrangedBeforeCanonicalIds = await arrangeSnapshot(graph)'); - const canonicalizeIndex = generator.indexOf('canonicalizeGraphIds(arrangedBeforeCanonicalIds)'); + const canonicalizeIndex = generator.indexOf( + 'canonicalizeGraphIds(arrangedBeforeCanonicalIds, remapOperationAuthoring)', + ); const metadataIndex = generator.indexOf('addLayoutMetadata(repeated)'); assert.match(generator, /installEphemeralWorkflowStorage/); assert.match(generator, /listTaskTemplateSkeletons/); diff --git a/scripts/image-full-native-template-candidates.test.mjs b/scripts/image-full-native-template-candidates.test.mjs index 7b3ebf7d..9ca286ff 100644 --- a/scripts/image-full-native-template-candidates.test.mjs +++ b/scripts/image-full-native-template-candidates.test.mjs @@ -31,7 +31,6 @@ const expected = { 'WorkflowCosmos3OmniTextEncode', 'WorkflowCosmos3OmniDenoise', 'WorkflowCosmos3OmniDecode', - 'WorkflowCosmos3OmniAfterDecode', 'Preview', ], }, @@ -85,6 +84,15 @@ before(async () => { env: { ...process.env, PYTHONDONTWRITEBYTECODE: '1' }, }), ); + const deviceField = fixture.recipes[0].starter.nodes.find((item) => item.operation.decomposition === 'loader').node + .params.device; + const fixtureDevice = deviceField.value ?? deviceField.default; + assert.equal(typeof fixtureDevice, 'string', 'Use the native fixture device without inventing GPU availability.'); + defaults = { + ...defaults, + device: fixtureDevice, + ...(!fixtureDevice.startsWith('cuda') ? { autoOffload: false, offloadMode: 'none' } : {}), + }; backendCaptionBytes = await readFile(path.join(backend, 'data/cosmos3-super-t2i-publisher-caption.v1.json')); backendCaption = JSON.parse(backendCaptionBytes); }); @@ -93,9 +101,10 @@ after(async () => server?.close()); function build(template, options = {}) { const row = structuredClone(fixture.recipes.find((item) => item.id === template.id)); row.capability = structuredClone(fixture.capabilities.find((item) => item.modelType === template.modelType)); + if (options.historical) Object.assign(row, structuredClone(fixture.historicalCosmosImage)); options.mutateRow?.(row); const contracts = operations.parseOperationContracts( - fixture.publicPayload.operationContracts, + options.historical ? row.operationContracts : fixture.publicPayload.operationContracts, fixture.publicPayload.operationContractSchemaVersion, ); const starter = starterRequests.parseOperationStarter( @@ -103,10 +112,18 @@ function build(template, options = {}) { row.starter.pipelineClass, row.starter.task, contracts, + options.historical ? {} : template.executionSelection, ); - const form = { ...defaults, ...exactness.getTemplateLockedSettings(template), ...options.form }; + const authored = { ...defaults, ...exactness.getTemplateLockedSettings(template) }; + const form = { + ...authored, + ...(!authored.device.startsWith('cuda') ? { autoOffload: false, offloadMode: 'none' } : {}), + ...options.form, + }; + const selectedTemplate = options.historical ? structuredClone(template) : template; + if (options.historical) delete selectedTemplate.executionSelection.authoringRecipeId; const graph = builder.createTemplateOperationGraph( - template, + selectedTemplate, form, starter, fixture.registry, @@ -241,17 +258,20 @@ test('Cosmos publisher text comes from the actual backend starter and all safety assert.equal(param.sourceKey, output); wires += 1; } - assert.equal(wires, 8); + assert.equal(wires, 6); assert.equal(api.nodes[roleIds.get('preview')].params.image.sourceId, roleIds.get('decode')); - assert.equal(api.nodes[roleIds.get('afterDecode')].params.state_in.sourceId, roleIds.get('decode')); - assert.equal(api.nodes[roleIds.get('afterDecode')].params.block_path.value, 'after_decode'); + assert.equal(roleIds.has('afterDecode'), false); + assert.equal( + nodes.some((node) => node.action === 'WorkflowCosmos3OmniAfterDecode'), + false, + ); assert.equal( nodes.some((node) => node.action.includes('Distilled')), false, ); assert.equal( template.requiredBackendCapabilities.includes('modules.ModularDiffusers.WorkflowCosmos3OmniAfterDecode'), - true, + false, ); }); @@ -306,9 +326,9 @@ test('backend-default preservation fails closed without an exact declared text b assert.throws( () => build(template, { - mutateRow: (row) => row.spec.bindings.push(['prompt', 'negative_prompt', 'prompt']), + mutateRow: (row) => row.starter.authoring.bindings.push(['prompt', 'negative_prompt', 'prompt']), }), - /needs one declared text binding/u, + /Invalid operation authoring recipe/u, ); }); @@ -624,14 +644,29 @@ test('template terms identify the declared full checkpoint rather than a static ); }); -test('canonical native workflows keep declaration-bound auxiliary terminals and reject every unused branch', async (t) => { +test('fresh Cosmos image graph has no auxiliary action stage or unused branch', async () => { const template = candidates.find((item) => item.id === 'cosmos3_super_text_to_image'); const built = build(template); const workflow = { id: `${template.modelType}:${template.mode}`, modelType: template.modelType, mode: template.mode }; + verifyNoDeadWorkflowNodes(workflow, built.flat); + assert.deepEqual(built.row.spec.auxiliaryTerminalRoles, []); + assert.equal( + built.flat.nodes.some((node) => node.data.action === 'WorkflowCosmos3OmniAfterDecode'), + false, + ); + const graph = structuredClone(built.flat); + graph.nodes.push({ id: 'stray', data: { module: 'modules.Image', action: 'Load', params: {} } }); + assert.throws(() => verifyNoDeadWorkflowNodes(workflow, graph), /contains isolated nodes: stray/); +}); + +test('historical native Cosmos image workflows keep their declared auxiliary terminal and reject every unused branch', async (t) => { + const template = candidates.find((item) => item.id === 'cosmos3_super_text_to_image'); + const built = build(template, { historical: true }); + const workflow = { id: `${template.modelType}:${template.mode}`, modelType: template.modelType, mode: template.mode }; const source = { executionSpec: built.row.spec, operationContracts: operations.parseOperationContracts( - fixture.publicPayload.operationContracts, + built.row.operationContracts, fixture.publicPayload.operationContractSchemaVersion, ), }; @@ -718,9 +753,18 @@ test('canonical native workflows keep declaration-bound auxiliary terminals and test('canonical generator and verifier parse the same independent source before emitting an auxiliary binding', async () => { const template = candidates.find((item) => item.id === 'cosmos3_super_text_to_image'); - const built = build(template); + const built = build(template, { historical: true }); + const historicalPayload = structuredClone(fixture.publicPayload); + const historicalCapability = historicalPayload.capabilities.find((item) => item.modelType === template.modelType); + historicalCapability.studioExecutionSpecs = historicalCapability.studioExecutionSpecs.map((spec) => + spec.id === built.row.spec.id ? structuredClone(built.row.spec) : spec, + ); + historicalPayload.operationContracts = historicalPayload.operationContracts.filter( + (operation) => !(operation.pipelineClass === 'Cosmos3OmniModularPipeline' && operation.task === 'text_to_image'), + ); + historicalPayload.operationContracts.push(...built.row.operationContracts); const selected = [fixture.capabilities.find((item) => item.modelType === template.modelType)]; - const parsed = await parseCanonicalAuxiliarySources(fixture.publicPayload, selected, server); + const parsed = await parseCanonicalAuxiliarySources(historicalPayload, selected, server); const source = parsed.sources.get(`${template.modelType}|${template.mode}`); assert.ok(source); assert.equal(parsed.sources.has('Flux2ModularPipeline|text_to_image'), false); @@ -728,7 +772,7 @@ test('canonical generator and verifier parse the same independent source before attachCanonicalAuxiliaryBinding(workflow, built.graph, parsed); assert.ok(workflow.auxiliaryTerminalBinding); verifyNoDeadWorkflowNodes(workflow, parsed.unpackGraph(built.graph), source); - const changed = structuredClone(fixture.publicPayload); + const changed = structuredClone(historicalPayload); changed.capabilities.find((item) => item.modelType === template.modelType).studioExecutionSpecs[0].contentHash = 'studio-spec-v1-ffffffff'; await assert.rejects( diff --git a/scripts/image-stage-groups.test.mjs b/scripts/image-stage-groups.test.mjs new file mode 100644 index 00000000..c00ca210 --- /dev/null +++ b/scripts/image-stage-groups.test.mjs @@ -0,0 +1,644 @@ +import assert from 'node:assert/strict'; +import { after, before, test } from 'node:test'; +import { createServer } from 'vite'; + +let server, authoring, groups, guidance, shared, adapters, runtime; +before(async () => { + const storage = new Map(); + globalThis.localStorage = { + getItem: (key) => storage.get(key) ?? null, + setItem: (key, value) => storage.set(key, value), + removeItem: (key) => storage.delete(key), + }; + globalThis.window = { + dispatchEvent: () => true, + location: { origin: 'http://127.0.0.1:5191' }, + localStorage: globalThis.localStorage, + }; + server = await createServer({ + configFile: false, + logLevel: 'silent', + optimizeDeps: { noDiscovery: true }, + server: { middlewareMode: true, watch: null }, + appType: 'custom', + }); + authoring = await server.ssrLoadModule('/src/workflow/operationAuthoring.ts'); + groups = await server.ssrLoadModule('/src/workflow/visualOperationGroups.ts'); + guidance = await server.ssrLoadModule('/src/workflow/guidanceNodeFields.ts'); + shared = await server.ssrLoadModule('/src/workflow/operationSharedInputs.ts'); + adapters = await server.ssrLoadModule('/src/workflow/modelSetupAdapters.ts'); + runtime = await server.ssrLoadModule('/src/studio/blockRuntimeV2.ts'); +}); +after(async () => server?.close()); + +function ordinaryImage({ task = 'text_to_image', withGuidance = true } = {}) { + const pipelineClass = 'FutureImagePipeline'; + const field = (type, display, value) => ({ type, display, ...(value === undefined ? {} : { value }) }); + const stage = (id, action, nodeType, params) => ({ + node: { type: 'custom', module: 'modules.Test', action, label: action, category: 'Test', params }, + operation: { + pipelineClass, + task, + operationId: `diffusion.${id}`, + nodeKey: `modules.Test.${action}`, + nodeType, + blockName: ['loader', 'guidance'].includes(nodeType) ? null : nodeType, + decomposition: nodeType === 'loader' ? 'loader' : nodeType === 'guidance' ? 'bundle' : 'block', + support: 'declared', + workflowId: task, + binding: { pipelineClass, values: {} }, + ports: Object.entries(params).map(([name, param]) => ({ + name, + semanticName: name, + direction: param.display === 'output' ? 'output' : 'input', + roles: ['value'], + types: [param.type], + required: false, + hidden: false, + semantics: { kind: 'value', scope: null, state: null, owner: 'none', members: [] }, + })), + }, + }); + const nodes = [ + stage('load_models', 'LoadModels', 'loader', { + models: field('models', 'output'), + lora_list: field('custom_lora', 'input'), + }), + stage('encode_prompt', 'EncodePrompt', 'text_encoder', { + models: field('models', 'input'), + prompt: field('string', 'textarea', 'An authored prompt'), + seed: field('int', 'number', 42), + guider: field('custom_guider', 'input'), + embeddings: field('embeddings', 'output'), + }), + stage('denoise', 'Denoise', 'denoise', { + models: field('models', 'input'), + embeddings: field('embeddings', 'input'), + guider: field('custom_guider', 'input'), + seed: field('int', 'number', 42), + latents: field('latents', 'output'), + }), + stage('decode_latents', 'DecodeLatents', 'decoder', { + models: field('models', 'input'), + latents: field('latents', 'input'), + images: field('image', 'output'), + }), + ]; + if (withGuidance) + nodes.push( + stage('guidance', 'Guider', 'guidance', { + enabled: { type: 'boolean', value: false }, + use_original_formulation: { type: 'boolean', value: true }, + guidance_scale: { type: 'float', display: 'slider', value: 4, min: 0, max: 20 }, + guider: { type: 'string', value: 'ClassifierFreeGuidance', onChange: 'updateNode' }, + guider_out: field('custom_guider', 'output'), + }), + ); + const edges = [ + ...['encode_prompt', 'denoise', 'decode_latents'].map((id) => ({ + source: 'diffusion.load_models', + sourceHandle: 'models', + target: `diffusion.${id}`, + targetHandle: 'models', + })), + { + source: 'diffusion.encode_prompt', + sourceHandle: 'embeddings', + target: 'diffusion.denoise', + targetHandle: 'embeddings', + }, + { + source: 'diffusion.denoise', + sourceHandle: 'latents', + target: 'diffusion.decode_latents', + targetHandle: 'latents', + }, + ...(withGuidance + ? ['encode_prompt', 'denoise'].map((id) => ({ + source: 'diffusion.guidance', + sourceHandle: 'guider_out', + target: `diffusion.${id}`, + targetHandle: 'guider', + })) + : []), + ]; + const graph = authoring.createOperationStarter( + { + pipelineClass, + task, + workflowId: task, + nodes, + edges, + requiredInputs: [], + upstreamBlocks: [], + sharedInputs: [ + { + name: 'seed', + members: [ + { operationId: 'diffusion.encode_prompt', field: 'seed' }, + { operationId: 'diffusion.denoise', field: 'seed' }, + ], + }, + ], + }, + { x: 0, y: 0 }, + ); + graph.nodes.push({ + id: 'preview-image', + type: 'custom', + position: { x: 1600, y: 0 }, + data: { + module: 'modules.Image', + action: 'Preview', + label: 'Preview Image', + category: 'Image', + params: { + image: field('image', 'input'), + preview: field('image', 'ui_image', '@data/outputs/retained.webp'), + }, + }, + }); + graph.edges.push({ + id: 'preview-wire', + source: graph.nodes.find((n) => n.data.action === 'DecodeLatents').id, + sourceHandle: 'images', + target: 'preview-image', + targetHandle: 'image', + }); + return graph; +} + +test('fresh native image presents four real stages and keeps guidance, preview and shared seeds', () => { + const ordinary = ordinaryImage(); + const before = structuredClone(ordinary); + const graph = groups.groupNewOperationGraph(ordinary); + assert.deepEqual(graph.nodes.map((n) => n.data.label).sort(), [ + 'Denoise', + 'Encode Inputs', + 'Image Output', + 'Model Setup', + ]); + assert.deepEqual(ordinary, before, 'creation cannot mutate its input graph'); + const flat = groups.unpackVisualOperationGroups(graph).graph; + assert.equal(flat.nodes.length, ordinary.nodes.length); + assert.equal(flat.edges.length, ordinary.edges.length); + const input = graph.nodes.find((n) => groups.visualOperationGroup(n) === 'inputs'); + assert.deepEqual( + guidance + .guidanceFields(input.data.blockInstanceV2) + .map((f) => f.field) + .sort(), + ['enabled', 'guidance_scale', 'guider', 'use_original_formulation'], + ); + assert.ok(input.data.blockInstanceV2.effectiveInterface.controls.some((c) => c.binding.fieldId === 'enabled')); + assert.equal( + guidance.guidanceFields(input.data.blockInstanceV2).find((f) => f.field === 'enabled').param.value, + false, + ); + const encoder = flat.nodes.find((n) => n.data.action === 'EncodePrompt'); + const owner = flat.nodes.find((n) => n.data.action === 'LoadModels'); + assert.equal(shared.sharedOperationInput(flat.nodes, flat.edges, encoder.id, 'seed').members.length, 2); + assert.equal(encoder.data.operationAuthoring.sharedInputs[0].loaderId, owner.id); + assert.equal( + flat.nodes.find((n) => n.data.action === 'Preview').data.params.preview.value, + '@data/outputs/retained.webp', + ); +}); + +test('unsupported guidance leaves no empty section; audio retains its existing separate presentation', () => { + const image = groups.groupNewOperationGraph(ordinaryImage({ withGuidance: false })); + assert.equal(image.nodes.length, 4); + const inputs = image.nodes.find((n) => groups.visualOperationGroup(n) === 'inputs'); + assert.deepEqual(guidance.guidanceFields(inputs.data.blockInstanceV2), []); + const audio = groups.groupNewOperationGraph(ordinaryImage({ task: 'text_to_audio' })); + assert.ok(audio.nodes.some((n) => groups.visualOperationGroup(n) === 'guidance')); + assert.ok(!audio.nodes.some((n) => ['setup', 'output'].includes(groups.visualOperationGroup(n)))); +}); + +test('combined presentation survives Guidance capability removal and return; legacy separate groups stay separate', () => { + const combined = groups.groupNewOperationGraph(ordinaryImage()); + const original = groups.unpackVisualOperationGroups(combined); + const guider = original.graph.nodes.find((node) => node.data.action === 'Guider'); + const without = { + nodes: original.graph.nodes.filter((node) => node.id !== guider.id), + edges: original.graph.edges.filter((edge) => edge.source !== guider.id && edge.target !== guider.id), + }; + const absent = groups.restoreVisualOperationGroups(without, original); + assert.equal( + guidance.guidanceFields( + absent.nodes.find((node) => groups.visualOperationGroup(node) === 'inputs').data.blockInstanceV2, + ).length, + 0, + ); + const projected = groups.unpackVisualOperationGroups(absent); + const returned = groups.restoreVisualOperationGroups( + { + nodes: [...projected.graph.nodes, guider], + edges: [...projected.graph.edges, ...original.graph.edges.filter((edge) => edge.source === guider.id)], + }, + projected, + ); + assert.equal(returned.nodes.length, 4); + assert.equal( + guidance.guidanceFields( + returned.nodes.find((node) => groups.visualOperationGroup(node) === 'inputs').data.blockInstanceV2, + ).length, + 4, + ); + const legacy = ordinaryImage(); + const owner = legacy.nodes.find((node) => node.data.action === 'LoadModels'); + const separate = groups.groupOperationStages(legacy, owner.id); + const roundtrip = groups.restoreVisualOperationGroups( + groups.unpackVisualOperationGroups(separate).graph, + groups.unpackVisualOperationGroups(separate), + ); + assert.ok(roundtrip.nodes.some((node) => groups.visualOperationGroup(node) === 'guidance')); + assert.equal( + guidance.guidanceFields( + roundtrip.nodes.find((node) => groups.visualOperationGroup(node) === 'inputs').data.blockInstanceV2, + ).length, + 0, + ); +}); + +test('explicit Combine retains Guidance values, sealed labels, removed controls and immutable old definitions', () => { + const ordinary = ordinaryImage(); + const owner = ordinary.nodes.find((node) => node.data.action === 'LoadModels'); + const graph = groups.groupOperationStages(ordinary, owner.id); + const guide = graph.nodes.find((node) => groups.visualOperationGroup(node) === 'guidance'); + const instance = guide.data.blockInstanceV2; + const controls = instance.effectiveInterface.controls + .filter((control) => control.binding.fieldId !== 'use_original_formulation') + .map((control, order) => ({ + ...control, + order, + ...(control.binding.fieldId === 'enabled' ? { label: 'Authored activation', sealed: true } : {}), + })); + const customized = runtime.replaceBlockEffectiveInterfaceV2(instance, { + boundary: instance.effectiveInterface.boundary, + controls, + }); + graph.nodes = graph.nodes.map((node) => (node.id === guide.id ? runtime.createBlockRootNodeV2(customized) : node)); + const before = structuredClone(graph); + const combined = groups.combineOperationInputStages(graph, owner.id); + assert.deepEqual(graph, before); + assert.equal(combined.nodes.length, before.nodes.length - 1); + assert.ok(!combined.nodes.some((node) => groups.visualOperationGroup(node) === 'guidance')); + const input = combined.nodes.find((node) => groups.visualOperationGroup(node) === 'inputs'); + const enabled = input.data.blockInstanceV2.effectiveInterface.controls.find( + (control) => control.binding.fieldId === 'enabled', + ); + assert.equal(enabled.label, 'Authored activation'); + assert.equal(enabled.sealed, true); + assert.ok( + !input.data.blockInstanceV2.effectiveInterface.controls.some( + (control) => control.binding.fieldId === 'use_original_formulation', + ), + ); + assert.equal( + guidance.guidanceFields(input.data.blockInstanceV2).find((item) => item.field === 'enabled').param.value, + false, + ); + const flat = groups.unpackVisualOperationGroups(combined).graph; + assert.equal(flat.nodes.length, ordinary.nodes.length); + assert.equal(flat.edges.length, ordinary.edges.length); +}); + +function adapterRegistry(native = true) { + return { + [native ? 'modules.ModularDiffusers.Lora' : 'modules.DiffusersImage.LoadAdapter']: { + type: 'custom', + module: native ? 'modules.ModularDiffusers' : 'modules.DiffusersImage', + action: native ? 'Lora' : 'LoadAdapter', + label: 'LoRA', + category: 'Models', + params: { + model: { type: 'string', display: 'model', label: 'Adapter model' }, + scale: { type: 'float', display: 'slider', label: 'Adapter scale', default: 1, min: 0, max: 2, isInput: true }, + revision: { type: 'string', display: 'text' }, + expected_sha256: { type: 'string', display: 'text' }, + weight_name: { type: 'string', display: 'text' }, + ...(native + ? { + previous_loras: { type: 'custom_lora', display: 'input' }, + lora: { type: 'custom_lora', display: 'output' }, + } + : { + pipeline: { type: 'pipeline', display: 'input' }, + output: { type: 'pipeline', display: 'output' }, + replace_existing: { type: 'boolean', display: 'checkbox', default: true }, + }), + }, + }, + }; +} +const localAdapter = (value) => ({ model: { source: 'local', value }, scale: 0.75 }); +// These tests exercise graph preservation with a synthetic backend declaration; +// the independent authority suite uses actual selected backend image schemas. +function adapterImage() { + const graph = ordinaryImage(); + const owner = graph.nodes.find((node) => node.data.action === 'LoadModels'); + Object.assign(owner.data.params, { + model_type: { type: 'string', value: 'FutureImagePipeline' }, + pipeline_class: { type: 'string', value: 'FutureImagePipeline' }, + repo_id: { type: 'string', display: 'model', value: { source: 'hub', value: 'reviewed/image' } }, + model_id: { type: 'string', display: 'model', value: { source: 'hub', value: 'reviewed/image' } }, + revision: { type: 'string', value: 'a'.repeat(40) }, + execution_profile_id: { type: 'string', value: 'future-image:reviewed' }, + }); + return graph; +} +function planAdapterEdit(graph, rootId, edit) { + if (edit.kind === 'remove') return adapters.planModelSetupAdapterEdit(graph, rootId, edit); + const chain = adapters.modelSetupAdapterChain(graph, rootId); + const operation = chain.owner.data.operationAuthoring.operation; + const key = `${chain.owner.data.module}.${chain.owner.data.action}`; + const registry = { + ...Object.fromEntries(chain.adapters.map((node) => [`${node.data.module}.${node.data.action}`, node.data])), + ...edit.registry, + [key]: structuredClone(chain.owner.data), + }; + const authority = { + nodesRegistry: registry, + studioModelCapabilitiesAuthoritative: true, + studioExecutionSpecInvalid: false, + discoveryRequests: { nodes: { status: 'success' }, capabilities: { status: 'success' } }, + operationContracts: [operation], + pipelineSupport: [ + { + pipelineClass: operation.pipelineClass, + tasks: [ + { + task: operation.task, + operationIds: [operation.operationId], + executionProfileIds: ['future-image:reviewed'], + }, + ], + }, + ], + studioModelCapabilities: [ + { + modelType: operation.pipelineClass, + defaultRepo: 'reviewed/image', + supportsLora: true, + revisionCandidates: ['a'.repeat(40)], + executionProfiles: [ + { + id: 'future-image:reviewed', + pipeline_class: operation.pipelineClass, + model_type: operation.pipelineClass, + loader_module: chain.owner.data.module, + loader_action: chain.owner.data.action, + default_repo: 'reviewed/image', + repository_revisions: [{ repo: 'reviewed/image', revision: 'a'.repeat(40) }], + modes: ['text_to_image'], + }, + ], + }, + ], + }; + return adapters.planModelSetupAdapterEdit(graph, rootId, { ...edit, registry }, authority); +} + +test('adapter Add rejects blank/mutable Hub selections before insertion and uses declared sockets', () => { + const graph = groups.groupNewOperationGraph(adapterImage()); + const root = graph.nodes.find((node) => groups.visualOperationGroup(node) === 'setup'); + const before = structuredClone(graph); + const registry = adapterRegistry(); + assert.throws(() => planAdapterEdit(graph, root.id, { kind: 'add', values: {}, registry }), /Select a Hub or local/); + assert.throws( + () => + planAdapterEdit(graph, root.id, { + kind: 'add', + values: { model: { source: 'hub', value: 'owner/lora' } }, + registry, + }), + /commit revision/, + ); + assert.throws( + () => + planAdapterEdit(graph, root.id, { + kind: 'add', + values: { + model: { source: 'hub', value: 'owner/lora' }, + revision: 'a'.repeat(40), + expected_sha256: 'b'.repeat(64), + weight_name: '../adapter.safetensors', + }, + registry, + }), + /contained/, + ); + const invalid = structuredClone(registry); + invalid['modules.ModularDiffusers.Lora'].params.lora.type = 'image'; + assert.throws( + () => + planAdapterEdit(graph, root.id, { + kind: 'add', + values: localAdapter('@models/lora/one.safetensors'), + registry: invalid, + }), + /compatible chain sockets/, + ); + assert.deepEqual(graph, before); +}); + +test('owned native adapters add, reorder and remove without losing scale wires or a shared external prefix', () => { + const ordinary = adapterImage(); + const owner = ordinary.nodes.find((node) => node.data.action === 'LoadModels'); + const registry = adapterRegistry(); + const prefix = { + id: 'shared-adapter', + type: 'custom', + position: { x: -400, y: 0 }, + data: structuredClone(registry['modules.ModularDiffusers.Lora']), + }; + prefix.data.params.model.value = { source: 'local', value: '@models/lora/shared.safetensors' }; + const sink = { + id: 'external-consumer', + type: 'custom', + position: { x: -400, y: 400 }, + data: { + module: 'modules.Test', + action: 'OtherConsumer', + params: { adapters: { type: 'custom_lora', display: 'input' } }, + }, + }; + ordinary.nodes.push(prefix, sink); + ordinary.edges.push( + { id: 'shared-owner', source: prefix.id, sourceHandle: 'lora', target: owner.id, targetHandle: 'lora_list' }, + { id: 'shared-other', source: prefix.id, sourceHandle: 'lora', target: sink.id, targetHandle: 'adapters' }, + ); + let graph = groups.groupNewOperationGraph(ordinary); + const root = graph.nodes.find((node) => groups.visualOperationGroup(node) === 'setup'); + assert.ok( + graph.nodes.some((node) => node.id === prefix.id), + 'shared descriptors stay external', + ); + for (const path of ['one', 'two']) + graph = planAdapterEdit(graph, root.id, { + kind: 'add', + values: localAdapter(`@models/lora/${path}.safetensors`), + registry, + }); + const original = adapters.modelSetupAdapterChain(graph, root.id); + assert.equal(original.adapters.length, 2); + const scaleNode = { + id: 'scale-supplier', + type: 'custom', + position: { x: 0, y: 700 }, + data: { module: 'modules.Test', action: 'Scale', params: { value: { type: 'float', display: 'output' } } }, + }; + const flat = original.unpacked.graph; + flat.nodes.push(scaleNode); + flat.edges.push({ + id: 'scale-wire', + source: scaleNode.id, + sourceHandle: 'value', + target: original.adapters[0].id, + targetHandle: 'scale', + }); + graph = groups.restoreVisualOperationGroups(flat, original.unpacked); + graph = planAdapterEdit(graph, root.id, { + kind: 'move', + nodeId: original.adapters[1].id, + offset: -1, + }); + const reordered = adapters.modelSetupAdapterChain(graph, root.id); + assert.deepEqual( + reordered.adapters.map((node) => node.data.params.model.value.value), + ['@models/lora/two.safetensors', '@models/lora/one.safetensors'], + ); + assert.ok( + reordered.unpacked.graph.edges.some((edge) => edge.id === 'scale-wire' && edge.target === original.adapters[0].id), + ); + assert.ok(reordered.unpacked.graph.edges.some((edge) => edge.id === 'shared-other' && edge.source === prefix.id)); + const instance = graph.nodes.find((node) => node.id === root.id).data.blockInstanceV2; + const control = instance.effectiveInterface.controls.find( + (item) => item.binding.fieldId === 'model' && `${root.id}/${item.binding.nodeId}` === original.adapters[0].id, + ); + const sealed = runtime.replaceBlockEffectiveInterfaceV2(instance, { + boundary: instance.effectiveInterface.boundary, + controls: instance.effectiveInterface.controls.map((item) => (item === control ? { ...item, sealed: true } : item)), + }); + const sealedGraph = { + ...graph, + nodes: graph.nodes.map((node) => (node.id === root.id ? runtime.createBlockRootNodeV2(sealed) : node)), + }; + assert.throws( + () => planAdapterEdit(sealedGraph, root.id, { kind: 'remove', nodeId: original.adapters[0].id }), + /sealed/, + ); + for (const node of reordered.adapters) graph = planAdapterEdit(graph, root.id, { kind: 'remove', nodeId: node.id }); + const final = adapters.modelSetupAdapterChain(graph, root.id); + assert.equal(final.adapters.length, 0); + assert.equal(final.prefix.source, prefix.id); + assert.ok(final.unpacked.graph.edges.some((edge) => edge.id === 'shared-other')); + assert.ok(final.unpacked.graph.nodes.some((node) => node.id === scaleNode.id)); +}); + +test('whole-pipeline adapter chains use the same graph edits and reject replacement that would unload prior rows', () => { + const ordinary = adapterImage(); + const owner = ordinary.nodes.find((node) => node.data.action === 'LoadModels'); + delete owner.data.params.lora_list; + owner.data.params.pipeline = { type: 'pipeline', display: 'output' }; + const denoise = ordinary.nodes.find((node) => node.data.action === 'Denoise'); + denoise.data.params.pipeline = { type: 'pipeline', display: 'input' }; + ordinary.edges.push({ + id: 'direct-pipeline', + source: owner.id, + sourceHandle: 'pipeline', + target: denoise.id, + targetHandle: 'pipeline', + }); + let graph = groups.groupNewOperationGraph(ordinary); + const root = graph.nodes.find((node) => groups.visualOperationGroup(node) === 'setup'); + const registry = adapterRegistry(false); + graph = planAdapterEdit(graph, root.id, { + kind: 'add', + values: localAdapter('@models/lora/one.safetensors'), + registry, + }); + assert.throws( + () => + planAdapterEdit(graph, root.id, { + kind: 'add', + values: localAdapter('@models/lora/two.safetensors'), + registry, + }), + /Only the first adapter/, + ); + graph = planAdapterEdit(graph, root.id, { + kind: 'add', + values: { ...localAdapter('@models/lora/two.safetensors'), replace_existing: false }, + registry, + }); + const chain = adapters.modelSetupAdapterChain(graph, root.id); + assert.equal(chain.adapters.length, 2); + assert.throws( + () => planAdapterEdit(graph, root.id, { kind: 'move', nodeId: chain.adapters[0].id, offset: 1 }), + /Only the first adapter/, + ); + for (const node of chain.adapters) graph = planAdapterEdit(graph, root.id, { kind: 'remove', nodeId: node.id }); + const final = adapters.modelSetupAdapterChain(graph, root.id); + assert.equal(final.adapters.length, 0); + assert.equal(final.prefix.source, final.owner.id); + assert.equal(final.tail[0].target, denoise.id); +}); + +test('backend-declared auxiliary guidance without an operation hint joins Inputs through its exclusive typed owner wires', () => { + const graph = ordinaryImage(), + guider = graph.nodes.find((node) => node.data.action === 'Guider'); + delete guider.data.operationAuthoring; + guider.data.studioRole = 'guider'; + const grouped = groups.groupNewOperationGraph(graph); + assert.equal(grouped.nodes.length, 4); + const inputs = grouped.nodes.find((node) => groups.visualOperationGroup(node) === 'inputs'); + assert.ok(inputs.data.blockInstanceV2.effectiveGraph.nodes.some((node) => node.data.studioRole === 'guider')); + assert.ok( + inputs.data.blockInstanceV2.effectiveInterface.controls.some( + (control) => control.binding.fieldId === 'guidance_scale', + ), + ); +}); +for (const [name, change] of [ + [ + 'missing typed output', + (graph, node) => { + delete node.data.params.guider_out; + }, + ], + [ + 'wrong output type', + (graph, node) => { + node.data.params.guider_out.type = 'string'; + }, + ], + [ + 'nested node', + (graph, node) => { + node.parentId = 'custom-parent'; + }, + ], + [ + 'shared foreign owner wire', + (graph, node) => { + graph.edges.push({ + id: 'foreign', + source: node.id, + sourceHandle: 'guider_out', + target: 'foreign-stage', + targetHandle: 'guider', + }); + }, + ], +]) + test(`auxiliary guidance is not adopted with ${name}`, () => { + const graph = ordinaryImage(), + guider = graph.nodes.find((node) => node.data.action === 'Guider'); + delete guider.data.operationAuthoring; + guider.data.studioRole = 'guider'; + change(graph, guider); + const grouped = groups.groupNewOperationGraph(graph); + assert.ok(grouped.nodes.some((node) => node.id === guider.id)); + }); diff --git a/scripts/layout-conditioning.test.mjs b/scripts/layout-conditioning.test.mjs new file mode 100644 index 00000000..f0fa61e1 --- /dev/null +++ b/scripts/layout-conditioning.test.mjs @@ -0,0 +1,650 @@ +import assert from 'node:assert/strict'; +import { after, before, test } from 'node:test'; +import path from 'node:path'; +import fs from 'node:fs'; +import { fileURLToPath } from 'node:url'; +import React from 'react'; +import { renderToStaticMarkup } from 'react-dom/server'; +import { createServer } from 'vite'; + +const ROOT = path.resolve(path.dirname(fileURLToPath(import.meta.url)), '..'); +let server; +let layout; +let fields; +let schema; +let runtime; +let flow; +let studio; +let inspector; +let exporter; +let referenceContext; + +before(async () => { + const storage = new Map(); + globalThis.localStorage = { + getItem: (key) => storage.get(key) ?? null, + setItem: (key, value) => storage.set(key, String(value)), + removeItem: (key) => storage.delete(key), + }; + globalThis.window = { + localStorage: globalThis.localStorage, + dispatchEvent: () => true, + location: { origin: 'http://127.0.0.1:5191' }, + }; + server = await createServer({ + root: ROOT, + configFile: false, + cacheDir: path.join(ROOT, 'reviews/layout-conditioning-test-cache'), + logLevel: 'silent', + optimizeDeps: { entries: [], noDiscovery: true }, + server: { middlewareMode: true, watch: null }, + appType: 'custom', + }); + layout = await server.ssrLoadModule('/src/studio/layoutConditioning.ts'); + fields = await server.ssrLoadModule('/src/fields/LayoutConditioningField.tsx'); + schema = await server.ssrLoadModule('/src/studio/blockSchemaV2.ts'); + runtime = await server.ssrLoadModule('/src/studio/blockRuntimeV2.ts'); + flow = await server.ssrLoadModule('/src/stores/useFlowStore.ts'); + studio = await server.ssrLoadModule('/src/stores/useStudioStore.ts'); + inspector = await server.ssrLoadModule('/src/studio/graphNodeControls.ts'); + exporter = await server.ssrLoadModule('/src/stores/flowGraphExport.ts'); + referenceContext = await server.ssrLoadModule('/src/studio/layoutReferenceContext.ts'); +}); + +after(async () => { + await server?.close(); + delete globalThis.localStorage; + delete globalThis.window; +}); + +function region(overrides = {}) { + return { id: 'subject', description: ' A red fox 🦊\n', targetBox: [0.1, 0.2, 0.7, 0.9], ...overrides }; +} + +function value(regions = [region()]) { + return { schemaVersion: 1, coordinateSpace: 'normalized_xyxy', regions }; +} + +const support = { schemaVersion: 1, sourceRegions: false }; + +test('bound reference summaries have exact bounded data and never substitute for selected capability', () => { + const summary = { + schemaVersion: 1, + ownerFingerprint: 'sha256:' + 'a'.repeat(64), + bindingFingerprint: 'sha256:' + 'b'.repeat(64), + taskId: 'reference_task', + attemptIndex: 0, + runInputHash: 'run_1234abcd', + references: [{ referenceId: 'sha256:' + 'c'.repeat(64), sourceSize: [64, 48], processedSize: [64, 48] }], + }; + assert.deepEqual(layout.parseLayoutReferenceSummary(summary), summary); + for (const change of [ + { schemaVersion: true }, + { references: [] }, + { references: Array(11).fill(summary.references[0]) }, + { bindingFingerprint: ['sha256:' + 'b'.repeat(64)] }, + { taskId: null }, + { attemptIndex: true }, + { runInputHash: 'guessed' }, + { referenceCount: 1 }, + ]) + assert.throws(() => layout.parseLayoutReferenceSummary({ ...summary, ...change })); + for (const change of [ + { sourceSize: [0, 48] }, + { processedSize: [100000, 100000] }, + { referenceId: 'sha256:' + 'C'.repeat(64) }, + { index: 0 }, + ]) + assert.throws(() => + layout.parseLayoutReferenceSummary({ ...summary, references: [{ ...summary.references[0], ...change }] }), + ); + const selected = { schemaVersion: 2, sourceRegions: false, supportsBoundSourceRegions: true }; + assert.deepEqual(layout.parseLayoutConditioningSupport(selected), selected); + for (const value of [ + { ...selected, supportsBoundSourceRegions: false }, + { ...selected, schemaVersion: 1 }, + { ...selected, referenceCount: 1 }, + ]) + assert.throws(() => layout.parseLayoutConditioningSupport(value)); + const source = { + schemaVersion: 2, + coordinateSpace: 'normalized_xyxy', + regions: [ + { + id: 'subject', + action: 'remove', + description: 'Remove exact source', + targetBox: null, + source: { referenceIndex: 0, box: [0, 0, 1, 1], expectedReferenceId: summary.references[0].referenceId }, + }, + ], + }; + assert.throws(() => layout.validateLayoutConditioningSupport(source, selected), /unavailable/); + const bound = { schemaVersion: 2, sourceRegions: true, references: summary.references }; + layout.validateLayoutConditioningSupport(source, bound); + const changed = structuredClone(source); + changed.regions[0].source.expectedReferenceId = summary.bindingFingerprint; + assert.throws(() => layout.validateLayoutConditioningSupport(changed, bound), /rebind/); +}); + +test('normal ordinary and Block projection binds summaries to exact source ancestry and actual task snapshot', () => { + const source = { + id: 'reference', + type: 'custom', + position: { x: 0, y: 0 }, + data: { + type: 'custom', + category: 'Fixture', + label: 'Reference', + module: 'modules.Test', + action: 'EncodeReference', + params: { + file: { type: 'string', display: 'text', value: 'reference-a.png' }, + reference_binding: { type: 'reference_conditioning', display: 'output' }, + layout_reference_summary: { type: 'string', display: 'output', hidden: true }, + }, + }, + }; + const encode = { + id: 'prompt', + type: 'custom', + position: { x: 400, y: 0 }, + data: { + type: 'custom', + category: 'Fixture', + label: 'Prompt', + module: 'modules.Test', + action: 'EncodePrompt', + params: { + prompt: { type: 'string', value: 'Raw ' }, + layout: { type: 'layout_conditioning', display: 'layout', value: null }, + reference_binding: { type: 'reference_conditioning', display: 'input' }, + }, + }, + }; + const edges = [ + { + id: 'binding', + source: 'reference', + sourceHandle: 'reference_binding', + target: 'prompt', + targetHandle: 'reference_binding', + }, + ]; + const definition = schema.migrateUserBlockDefinitionV1({ + id: 'source-context', + name: 'Encode Inputs', + version: 1, + nodes: [source, encode], + edges, + inputs: [], + outputs: [], + exposedParams: [{ id: 'layout', kind: 'graph-param', label: 'Layout', nodeId: 'prompt', paramKey: 'layout' }], + createdAt: 1, + updatedAt: 1, + }); + const grouped = runtime.createBlockRootNodeV2( + schema.createBlockInstanceV2(definition, { + instanceId: 'group', + position: { x: 0, y: 0 }, + size: { width: 368, height: 480 }, + }), + ); + for (const graph of [ + { nodes: [source, encode], edges, nodeId: 'prompt' }, + { nodes: [grouped], edges: [], nodeId: 'group' }, + ]) { + const context = referenceContext.layoutReferenceContext(graph.nodes, graph.edges, graph.nodeId, 'layout'); + assert.ok(context); + assert.notEqual(context.summaryNodeId, context.nodeId, 'the normal cache belongs to the actual image supplier'); + const summary = { + schemaVersion: 1, + ownerFingerprint: 'sha256:' + 'a'.repeat(64), + bindingFingerprint: 'sha256:' + 'b'.repeat(64), + taskId: 'actual-task', + attemptIndex: 0, + runInputHash: 'run_1234abcd', + references: [], + }; + const record = { + task: { task_id: 'actual-task', attempt_index: 0, run_input_hash: 'run_1234abcd' }, + workflow_id: 'tab', + workflow_snapshot: { nodes: graph.nodes, edges: graph.edges }, + }; + referenceContext.validateLayoutReferenceRun(record, summary, context, graph.nodeId, 'layout', 'tab'); + for (const change of [ + { workflow_id: 'foreign' }, + { task: { ...record.task, task_id: 'foreign' } }, + { task: { ...record.task, run_input_hash: 'run_00000000' } }, + { workflow_snapshot: { nodes: [], edges: [] } }, + ]) + assert.throws(() => + referenceContext.validateLayoutReferenceRun( + { ...record, ...change }, + summary, + context, + graph.nodeId, + 'layout', + 'tab', + ), + ); + } + const before = referenceContext.layoutReferenceContext([source, encode], edges, 'prompt', 'layout'); + const afterPrompt = structuredClone(encode); + afterPrompt.data.params.prompt.value = 'Changed raw prompt'; + afterPrompt.data.params.layout.value = { schemaVersion: 2, coordinateSpace: 'normalized_xyxy', regions: [] }; + assert.equal( + referenceContext.layoutReferenceContext([source, afterPrompt], edges, 'prompt', 'layout').key, + before.key, + ); + const changedSource = structuredClone(source); + changedSource.data.params.file.value = 'reference-b.png'; + assert.notEqual( + referenceContext.layoutReferenceContext([changedSource, encode], edges, 'prompt', 'layout').key, + before.key, + ); + assert.equal( + referenceContext.layoutReferenceContext( + [source, encode], + [...edges, { ...edges[0], id: 'duplicate' }], + 'prompt', + 'layout', + ), + null, + ); + for (const alter of [ + (node) => { + delete node.data.params.layout_reference_summary; + }, + (node) => { + node.data.params.layout_reference_summary.type = 'reference_conditioning'; + }, + (node) => { + node.data.params.layout_reference_summary.display = 'input'; + }, + (node) => { + node.data.params.reference_binding.type = 'string'; + }, + ]) { + const missingDeclaration = structuredClone(source); + alter(missingDeclaration); + assert.equal( + referenceContext.layoutReferenceContext([missingDeclaration, encode], edges, 'prompt', 'layout'), + null, + ); + } +}); + +test('version two shared action grammar preserves removal and ten-reference drafts without granting source authority', async (t) => { + const fixture = JSON.parse(fs.readFileSync(path.join(ROOT, 'tests/fixtures/layout-conditioning.v2.json'), 'utf8')); + const currentSupport = layout.parseLayoutConditioningSupport({ schemaVersion: 2, sourceRegions: false }); + for (const item of fixture.valid) + await t.test(item.name, () => { + const parsed = layout.parseLayoutConditioning(item.layout); + assert.deepEqual(parsed, item.layout); + if (parsed.regions.some((region) => region.source)) + assert.throws(() => layout.validateLayoutConditioningSupport(parsed, currentSupport), /unavailable/); + else layout.validateLayoutConditioningSupport(parsed, currentSupport); + }); + for (const item of fixture.invalid) + await t.test(item.name, () => assert.throws(() => layout.parseLayoutConditioning(item.layout))); + const removal = structuredClone(fixture.valid[1].layout); + for (const index of [0, 7, 8, 9]) { + removal.regions[0].source.referenceIndex = index; + assert.deepEqual(layout.parseLayoutConditioning(removal), removal); + } + for (const invalid of [10, -1, true, '9']) { + removal.regions[0].source.referenceIndex = invalid; + assert.throws(() => layout.parseLayoutConditioning(removal)); + } + removal.regions[0].source.referenceIndex = 9; + for (const invalid of ['', 'sha256:' + 'A'.repeat(64), null, ['sha256:' + 'a'.repeat(64)]]) { + removal.regions[0].source.expectedReferenceId = invalid; + assert.throws(() => layout.parseLayoutConditioning(removal)); + } + assert.throws(() => + layout.parseLayoutConditioningSupport({ schemaVersion: 2, sourceRegions: true, referenceCount: 10 }), + ); +}); + +test('shared backend fixture agrees on generic draft validation, with source execution capability separate', async (t) => { + const fixture = JSON.parse(fs.readFileSync(path.join(ROOT, 'tests/fixtures/layout-conditioning.v1.json'), 'utf8')); + for (const item of fixture.valid) { + await t.test(item.name, () => { + const parsed = layout.parseLayoutConditioning(item.layout); + assert.deepEqual(parsed, item.layout); + if (item.referenceCount) { + assert.throws(() => layout.validateLayoutConditioningSupport(parsed, support), /unavailable/); + } else layout.validateLayoutConditioningSupport(parsed, support); + }); + } + for (const item of fixture.invalid) { + await t.test(item.name, () => assert.throws(() => layout.parseLayoutConditioning(item.layout))); + } +}); + +test('raw mode is only null; structured values preserve region order, description bytes and normalized coordinates', () => { + assert.equal(layout.parseLayoutConditioning(null), null); + const input = value([region(), region({ id: 'background', description: '背景', targetBox: [0, 0, 1, 1] })]); + const parsed = layout.parseLayoutConditioning(input); + assert.deepEqual(parsed, input); + parsed.regions[0].targetBox[0] = 0; + assert.equal(input.regions[0].targetBox[0], 0.1); + assert.deepEqual(layout.parseLayoutConditioning(value([])), value([])); +}); + +test('strict layout grammar refuses malformed JSON data without invoking getters', async (t) => { + let invoked = false; + const accessor = { ...value() }; + Object.defineProperty(accessor, 'regions', { + enumerable: true, + get() { + invoked = true; + return []; + }, + }); + const cases = [ + undefined, + '', + 'null', + [], + true, + 1, + { ...value(), schemaVersion: true }, + { ...value(), coordinateSpace: ['normalized_xyxy'] }, + { ...value(), mode: 'structured' }, + { ...value(), regions: undefined }, + Object.create(value()), + accessor, + Object.defineProperty(value(), 'regions', { enumerable: false, value: [] }), + Object.assign(value(), { [Symbol('extra')]: 1 }), + value(Array(1)), + value(Object.assign([region()], { extra: true })), + value([region({ source: null })]), + value([region({ source: undefined })]), + value([region({ unknown: 1 })]), + ]; + for (const [index, input] of cases.entries()) { + await t.test(String(index), () => assert.throws(() => layout.parseLayoutConditioning(input), /Invalid layout/)); + } + assert.equal(invoked, false); +}); + +test('IDs, Unicode text and box boundaries are validated without rewriting content', async (t) => { + for (const id of ['', '1subject', 'has space', 'é', 'ref_image_0', 'ref_image_100', 'a'.repeat(65), 'subject\n']) { + await t.test(`ID ${JSON.stringify(id)}`, () => + assert.throws(() => layout.parseLayoutConditioning(value([region({ id })]))), + ); + } + assert.throws(() => layout.parseLayoutConditioning(value([region(), region()])), /unique/); + for (const description of [ + '', + ' \t\n', + '\u0085', + '\u001c', + '\ud800', + '\udc00', + 'x\ud800y', + 'a'.repeat(4097), + '🦊'.repeat(4097), + ]) { + await t.test(`description ${description.length}`, () => + assert.throws(() => layout.parseLayoutConditioning(value([region({ description })]))), + ); + } + assert.equal( + layout.parseLayoutConditioning(value([region({ description: '🦊'.repeat(4096) })])).regions[0].description.length, + 8192, + ); + assert.equal( + layout.parseLayoutConditioning(value([region({ description: '\ufeff' })])).regions[0].description, + '\ufeff', + ); + for (const targetBox of [ + [0, 0, 0, 1], + [0, 1, 1, 0], + [0, 0, 1], + [0, 0, 1, 1, 1], + [-0.1, 0, 1, 1], + [0, 0, 1.1, 1], + [false, 0, 1, 1], + ['0', 0, 1, 1], + [NaN, 0, 1, 1], + [0, 0, Infinity, 1], + ]) { + await t.test(`box ${JSON.stringify(targetBox)}`, () => + assert.throws(() => layout.parseLayoutConditioning(value([region({ targetBox })]))), + ); + } +}); + +test('region count and total serialized UTF-8 byte cap are independent of JavaScript string length', () => { + const many = Array.from({ length: 32 }, (_, index) => region({ id: `r${index}`, description: 'x' })); + assert.equal(layout.parseLayoutConditioning(value(many)).regions.length, 32); + assert.throws(() => layout.parseLayoutConditioning(value([...many, region({ id: 'extra' })]))); + const unicode = value( + Array.from({ length: 8 }, (_, index) => region({ id: `r${index}`, description: '🦊'.repeat(2200) })), + ); + assert.ok(JSON.stringify(unicode).length < 65536); + assert.throws(() => layout.parseLayoutConditioning(unicode), /64 KiB/); + const base = value( + Array.from({ length: 15 }, (_, index) => + region({ id: `r${index}`, description: 'a'.repeat(4096), targetBox: [0, 0, 1, 1] }), + ), + ); + base.regions.push(region({ id: 'last', description: 'a', targetBox: [1e-7, 0, 1.0, 1.0] })); + const padding = 65536 - Buffer.byteLength(JSON.stringify(base)); + base.regions.at(-1).description += 'a'.repeat(padding); + assert.equal(Buffer.byteLength(JSON.stringify(base)), 65536); + assert.deepEqual(layout.parseLayoutConditioning(base), base); + base.regions.at(-1).description += 'a'; + assert.throws(() => layout.parseLayoutConditioning(base), /64 KiB/); +}); + +test('draft source regions need a strict declared capability and current reference count', () => { + const withSource = layout.parseLayoutConditioning( + value([region({ source: { referenceIndex: 1, box: [0, 0.1, 0.5, 1] } })]), + ); + assert.throws(() => layout.validateLayoutConditioningSupport(withSource, support), /unavailable/); + layout.validateLayoutConditioningSupport( + withSource, + layout.parseLayoutConditioningSupport({ schemaVersion: 1, sourceRegions: true, referenceCount: 2 }), + ); + assert.throws( + () => + layout.validateLayoutConditioningSupport(withSource, { + schemaVersion: 1, + sourceRegions: true, + referenceCount: 1, + }), + /no longer bound/, + ); + for (const input of [ + undefined, + {}, + { ...support, referenceCount: 0 }, + { ...support, sourceRegions: 'false' }, + { schemaVersion: 1, sourceRegions: true }, + { schemaVersion: 1, sourceRegions: true, referenceCount: 9 }, + ]) { + assert.throws(() => layout.parseLayoutConditioningSupport(input)); + } + for (const referenceIndex of [-1, 8, 0.5, false, '0']) { + assert.throws(() => + layout.parseLayoutConditioning(value([region({ source: { referenceIndex, box: [0, 0, 1, 1] } })])), + ); + } +}); + +function fieldProps(value, overrides = {}) { + return { + nodeId: 'encode', + fieldKey: 'layout_conditioning', + label: 'Layout', + display: 'layout', + disabled: false, + hidden: false, + style: {}, + value, + default: null, + options: [], + dataType: 'layout_conditioning', + fieldType: 'layout', + module: 'modules.Test', + action: 'EncodeInputs', + updateStore: () => assert.fail('Rendering must not mutate the graph.'), + fieldOptions: { layoutConditioning: support }, + ...overrides, + }; +} + +test('actual layout field renders raw mode, accessible ordered regions, errors and disabled controls', () => { + const raw = renderToStaticMarkup(React.createElement(fields.default, fieldProps(null))); + assert.match(raw, /Raw prompt/); + assert.doesNotMatch(raw, /Target region layout|Add region/); + const structured = renderToStaticMarkup(React.createElement(fields.default, fieldProps(value(), { disabled: true }))); + assert.equal( + renderToStaticMarkup( + React.createElement(fields.default, fieldProps(undefined, { default: value(), disabled: true })), + ), + structured, + 'An untouched structured default must render the same selected mode as its effective value.', + ); + assert.match(structured, /Target region layout/); + assert.match(structured, /Edit subject/); + assert.match(structured, /Remove subject/); + assert.match(structured, /disabled=""/); + assert.ok(structured.indexOf('Edit subject') < structured.indexOf('Add region')); + const unsupported = renderToStaticMarkup( + React.createElement(fields.default, fieldProps(value(), { fieldOptions: {} })), + ); + assert.match(unsupported, /role="alert"/); + assert.doesNotMatch(unsupported, /Add region/); + const row = renderToStaticMarkup( + React.createElement(fields.LayoutRegionEditor, { + region: region(), + support, + disabled: false, + onApply: () => {}, + onCancel: () => {}, + }), + ); + for (const label of [ + 'Region ID', + 'Region description', + 'Target box left', + 'Target box top', + 'Target box right', + 'Target box bottom', + 'Apply region', + 'Cancel', + ]) + assert.ok(row.includes(label)); + assert.doesNotMatch(row, /Source reference index/); + assert.match(row, /Source regions are unavailable/); +}); + +test('ordinary and grouped JSON layout values survive real control updates, Undo, persistence and API export without changing prompts', () => { + const originalFlow = flow.useFlowStore.getState(); + const originalStudio = studio.useStudioStore.getState(); + try { + const prompt = ' Original prompt\n[{"id": raw syntax remains raw}] '; + const definition = schema.migrateUserBlockDefinitionV1({ + id: 'layout-test', + name: 'Encode Inputs', + version: 1, + nodes: [ + { + id: 'encode', + type: 'custom', + position: { x: 0, y: 0 }, + data: { + type: 'custom', + module: 'modules.Test', + action: 'EncodeInputs', + label: 'Encode Inputs', + params: { + prompt: { type: 'string', display: 'textarea', value: prompt }, + layout_conditioning: { + type: 'layout_conditioning', + display: 'layout', + value: null, + default: null, + fieldOptions: { layoutConditioning: support }, + }, + embeddings: { type: 'embeddings', display: 'output' }, + }, + }, + }, + ], + edges: [], + inputs: [], + outputs: [], + exposedParams: [ + { id: 'layout', kind: 'graph-param', label: 'Layout', nodeId: 'encode', paramKey: 'layout_conditioning' }, + ], + createdAt: 1, + updatedAt: 2, + }); + const block = runtime.createBlockRootNodeV2( + schema.createBlockInstanceV2(definition, { + instanceId: 'layout-block', + position: { x: 100, y: 120 }, + size: { width: 420, height: 480 }, + }), + ); + const ordinary = { + id: 'ordinary-encode', + type: 'custom', + position: { x: 0, y: 0 }, + data: structuredClone(definition.graph.nodes[0].data), + }; + flow.useFlowStore.setState({ + nodes: [ordinary], + edges: [], + historyPast: [], + historyFuture: [], + historyTransaction: null, + }); + flow.useFlowStore.getState().setParam(ordinary.id, 'layout_conditioning', layout.parseLayoutConditioning(value())); + const ordinaryApi = exporter.buildApiGraphExport({ + nodes: flow.useFlowStore.getState().nodes, + edges: [], + sid: 'test', + setParam: () => {}, + }); + assert.deepEqual(ordinaryApi.nodes[ordinary.id].params.layout_conditioning.value, value()); + assert.equal(ordinaryApi.nodes[ordinary.id].params.prompt.value, prompt); + flow.useFlowStore.setState({ + nodes: [block], + edges: [], + historyPast: [], + historyFuture: [], + historyTransaction: null, + }); + studio.useStudioStore.setState({ activeWorkflowTabId: 'layout-workflow' }); + inspector.updateGraphNodeControl('layout-workflow', block.id, 'layout', layout.parseLayoutConditioning(value())); + let state = flow.useFlowStore.getState(); + assert.equal(state.historyPast.length, 1); + assert.deepEqual(inspector.graphNodeControlParams(state.nodes[0]).layout.value, value()); + const api = state.exportGraph('test', undefined, { randomizeSeeds: false }); + const leaf = Object.values(api.nodes)[0]; + assert.equal(leaf.params.prompt.value, prompt); + assert.deepEqual(leaf.params.layout_conditioning.value, value()); + state.undo(); + assert.equal(inspector.graphNodeControlParams(flow.useFlowStore.getState().nodes[0]).layout.value, null); + flow.useFlowStore.getState().redo(); + state = flow.useFlowStore.getState(); + const persisted = JSON.parse(JSON.stringify(runtime.canonicalizePersistedBlockGraphV2(state.nodes, state.edges))); + assert.deepEqual(inspector.graphNodeControlParams(persisted.nodes[0]).layout.value, value()); + const restored = state.exportGraph('test', undefined, { sourceGraph: persisted, randomizeSeeds: false }); + assert.deepEqual(restored, api); + inspector.updateGraphNodeControl('layout-workflow', block.id, 'layout', null); + const raw = flow.useFlowStore.getState().exportGraph('test', undefined, { randomizeSeeds: false }); + assert.equal(Object.values(raw.nodes)[0].params.prompt.value, prompt); + assert.equal(Object.values(raw.nodes)[0].params.layout_conditioning.value, null); + } finally { + flow.useFlowStore.setState(originalFlow, true); + studio.useStudioStore.setState(originalStudio, true); + } +}); diff --git a/scripts/live-proof-provenance.mjs b/scripts/live-proof-provenance.mjs index bb0f24e9..940d8f48 100644 --- a/scripts/live-proof-provenance.mjs +++ b/scripts/live-proof-provenance.mjs @@ -1,6 +1,6 @@ import { createHash } from 'node:crypto'; import { spawnSync } from 'node:child_process'; -import { existsSync, readFileSync, readdirSync, statSync } from 'node:fs'; +import { existsSync, readFileSync, readdirSync, realpathSync, statSync } from 'node:fs'; import path from 'node:path'; import { normalizeResourceRouteBinding, resourceRouteBindingHash } from './resource-route-binding.mjs'; @@ -710,6 +710,17 @@ function sourceFilesUnder(target) { } function gitCommit(root) { + const topLevel = spawnSync('git', ['rev-parse', '--show-toplevel'], { + cwd: root, + encoding: 'utf8', + windowsHide: true, + }); + if (topLevel.status !== 0 || !topLevel.stdout.trim()) return null; + try { + if (realpathSync(topLevel.stdout.trim()) !== realpathSync(root)) return null; + } catch { + return null; + } const result = spawnSync('git', ['rev-parse', 'HEAD'], { cwd: root, encoding: 'utf8', @@ -727,12 +738,17 @@ export function backendSourceIdentity(backendRoot) { path.join(backendRoot, 'utils'), ]; const files = [...new Set(targets.flatMap(sourceFilesUnder))] - // This identity is also captured by the Python worker before imports. - // Use language-independent Unicode/code-point ordering rather than the - // host locale so both processes hash the same ordered file inventory. - .sort((left, right) => (left < right ? -1 : left > right ? 1 : 0)) + // The Python worker sorts POSIX paths before imports. Normalize separators + // before sorting: on Windows a backslash orders Image after ImageFilters. .map((file) => ({ - path: path.relative(backendRoot, file).replaceAll('\\', '/'), + file, + relativePath: path.relative(backendRoot, file).replaceAll('\\', '/'), + })) + .sort((left, right) => + left.relativePath < right.relativePath ? -1 : left.relativePath > right.relativePath ? 1 : 0, + ) + .map(({ file, relativePath }) => ({ + path: relativePath, sha256: createHash('sha256').update(readFileSync(file)).digest('hex'), })); const payload = { diff --git a/scripts/live-qwen-proof.test.mjs b/scripts/live-qwen-proof.test.mjs index fddcdb4f..1f2905e9 100644 --- a/scripts/live-qwen-proof.test.mjs +++ b/scripts/live-qwen-proof.test.mjs @@ -1,6 +1,9 @@ import assert from 'node:assert/strict'; +import { spawnSync } from 'node:child_process'; import { EventEmitter } from 'node:events'; -import { readFileSync } from 'node:fs'; +import { createHash } from 'node:crypto'; +import { mkdirSync, mkdtempSync, readFileSync, rmSync, writeFileSync } from 'node:fs'; +import { tmpdir } from 'node:os'; import { dirname, resolve } from 'node:path'; import { PassThrough } from 'node:stream'; import { test } from 'node:test'; @@ -15,6 +18,7 @@ import { } from './live-qwen-proof.mjs'; import { backendSourceEvidence, + backendSourceIdentity, canonicalGraphIdentity, compareRunProvenance, createRunProvenance, @@ -32,6 +36,77 @@ import { const ROOT = resolve(dirname(fileURLToPath(import.meta.url)), '..'); +test('backend Git identity accepts only its exact repository and linked worktree', () => { + const temporary = mkdtempSync(resolve(tmpdir(), 'modiff-exact-git-root-')); + const repository = resolve(temporary, 'repository'); + const worktree = resolve(temporary, 'linked'); + const backend = resolve(ROOT, '../MoDiff'); + const python = + process.env.MODIFF_BACKEND_PYTHON || + resolve(backend, '.venv', process.platform === 'win32' ? 'Scripts/python.exe' : 'bin/python'); + let linked = false; + function git(...args) { + const result = spawnSync('git', ['-c', 'core.hooksPath=', ...args], { + cwd: repository, + encoding: 'utf8', + windowsHide: true, + }); + assert.equal(result.status, 0, result.stderr || result.error?.message); + return result.stdout.trim(); + } + function agreesWithWorker(root) { + const observed = spawnSync( + python, + [ + '-I', + '-B', + '-c', + 'import json,sys; sys.path.insert(0,sys.argv[1]); from modiff.backend_source_identity import backend_source_identity; print(json.dumps(backend_source_identity(sys.argv[2])))', + backend, + root, + ], + { encoding: 'utf8', windowsHide: true }, + ); + assert.equal(observed.status, 0, observed.stderr || observed.error?.message); + const worker = JSON.parse(observed.stdout); + const client = backendSourceIdentity(root); + assert.equal(worker.gitCommit, client.gitCommit); + assert.equal(worker.fingerprint, client.fingerprint); + return client; + } + try { + mkdirSync(repository); + writeFileSync(resolve(repository, 'main.py'), "print('identity')\n"); + writeFileSync(resolve(repository, 'pyproject.toml'), '[project]\nname = "identity"\n'); + git('init', '--template='); + git('add', 'main.py', 'pyproject.toml'); + git( + '-c', + 'user.name=MoDiff fixture', + '-c', + 'user.email=fixture@example.invalid', + 'commit', + '--no-gpg-sign', + '-m', + 'source fixture', + ); + const commit = git('rev-parse', 'HEAD'); + assert.equal(agreesWithWorker(repository).gitCommit, commit); + git('worktree', 'add', '--detach', worktree, 'HEAD'); + linked = true; + assert.equal(agreesWithWorker(worktree).gitCommit, commit); + const copied = resolve(repository, 'copied-backend'); + mkdirSync(copied); + for (const name of ['main.py', 'pyproject.toml']) + writeFileSync(resolve(copied, name), readFileSync(resolve(repository, name))); + assert.equal(agreesWithWorker(copied).gitCommit, null); + } finally { + if (linked) git('worktree', 'remove', '--force', worktree); + assert.equal(dirname(temporary), resolve(tmpdir())); + rmSync(temporary, { recursive: true, force: true }); + } +}); + test('execution identity ignores admission-proof status while locking the actual resource plan', () => { const graph = { runtimeHints: { @@ -149,6 +224,48 @@ test('live proof rejects missing or changing backend source identity', () => { assert.match(backendSourceDriftBlocker(stable, null), /could not be captured/); }); +test('backend source identity orders normalized paths before hashing shared directory prefixes', () => { + const root = mkdtempSync(resolve(tmpdir(), 'modiff-source-identity-')); + const sources = [ + ['main.py', "print('identity')\n"], + ['pyproject.toml', '[project]\nname = "identity"\n'], + ['modules/ImageFilters/main.py', 'FILTER = 1\n'], + ['modules/ImageOperations/main.py', 'OPERATION = 1\n'], + ['modules/Image/main.py', 'IMAGE = 1\n'], + ['modules/VideoColor/main.py', 'COLOR = 1\n'], + ['modules/VideoConditioning/main.py', 'CONDITIONING = 1\n'], + ['modules/Video/main.py', 'VIDEO = 1\n'], + ]; + try { + for (const [relativePath, contents] of sources) { + const target = resolve(root, relativePath); + mkdirSync(dirname(target), { recursive: true }); + writeFileSync(target, contents, 'utf8'); + } + const expectedFiles = [...sources] + .sort(([left], [right]) => (left < right ? -1 : left > right ? 1 : 0)) + .map(([relativePath, contents]) => ({ + path: relativePath, + sha256: createHash('sha256').update(contents).digest('hex'), + })); + const identity = backendSourceIdentity(root); + assert.equal(identity.gitCommit, null); + assert.deepEqual(identity.files, expectedFiles); + assert.equal( + identity.fingerprint, + sha256Value('backend-source-v1', { + files: expectedFiles, + gitCommit: null, + }), + ); + + writeFileSync(resolve(root, 'modules/Image/main.py'), 'IMAGE = 2\n', 'utf8'); + assert.notEqual(backendSourceIdentity(root).fingerprint, identity.fingerprint); + } finally { + rmSync(root, { recursive: true, force: true }); + } +}); + test('source evidence binds both filesystem snapshots to the executing worker startup claim', () => { const sourceFiles = [{ path: 'main.py', sha256: 'c'.repeat(64) }]; const source = { diff --git a/scripts/media-attachment.test.mjs b/scripts/media-attachment.test.mjs index 5ac41464..c7b88fb1 100644 --- a/scripts/media-attachment.test.mjs +++ b/scripts/media-attachment.test.mjs @@ -5,7 +5,7 @@ import path from 'node:path'; import { readFileSync } from 'node:fs'; import { createServer } from 'vite'; -let server, attachment, authoring, starters; +let server, attachment, authoring, starters, blockRuntime, operationContracts; const root = process.cwd(); before(async () => { const storage = new Map(); @@ -28,6 +28,8 @@ before(async () => { }); attachment = await server.ssrLoadModule('/src/workflow/mediaAttachment.ts'); authoring = await server.ssrLoadModule('/src/workflow/operationAuthoring.ts'); + blockRuntime = await server.ssrLoadModule('/src/studio/blockRuntimeV2.ts'); + operationContracts = await server.ssrLoadModule('/src/workflow/operationContracts.ts'); const backend = path.resolve(root, '../MoDiff'); const python = process.env.MODIFF_BACKEND_PYTHON || @@ -45,6 +47,28 @@ before(async () => { }); after(async () => server?.close()); +// Explicit grouping regressions start from the historical separate Encoding +// and Guidance document, rather than applying today's fresh four-stage policy. +function legacyEncodingGroups(visual, graph) { + const owner = graph.nodes.find((node) => + operationContracts.operationOwnsModel(authoring.operationAuthoring(node)?.operation), + ); + assert.ok(owner); + return visual.groupOperationStages(graph, owner.id, ['inputs', 'guidance']); +} + +// Match BlockOwnerChoices' real Model Setup owner mapping. This reads effective +// controls without flattening or changing the graph being tested. +function visibleModelOwner(visual, graph) { + const setup = graph.nodes.find((node) => visual.visualOperationGroup(node) === 'setup'); + assert.ok(setup, 'a fresh native image branch has Model Setup'); + const owner = blockRuntime + .blockOperationGraphV2(setup.data.blockInstanceV2) + .nodes.find((node) => operationContracts.operationOwnsModel(authoring.operationAuthoring(node)?.operation)); + assert.ok(owner); + return { ...owner, id: visual.visualOperationOwnerId(graph, owner.data.blockProjectionNodeId, setup.id) }; +} + test('media source labels distinguish same-pipeline repositories and same-repository branches without changing ports', async () => { const { mediaAttachmentSources } = await server.ssrLoadModule('/src/workflow/mediaAttachmentSources.ts'); const starter = starters.find((s) => s.pipelineClass === 'QwenImageModularPipeline' && s.task === 'text_to_image'); @@ -283,7 +307,7 @@ test('optional stage groups retain executable leaves, previews and exact mask ge const visual = await server.ssrLoadModule('/src/workflow/visualOperationGroups.ts'); const runtime = await server.ssrLoadModule('/src/studio/blockRuntimeV2.ts'); const starter = starters.find((s) => s.pipelineClass === 'FluxModularPipeline' && s.task === 'text_to_image'); - const graph = visual.groupNewOperationGraph(authoring.createOperationStarter(starter, { x: 0, y: 0 })); + const graph = legacyEncodingGroups(visual, authoring.createOperationStarter(starter, { x: 0, y: 0 })); const owner = graph.nodes.find((n) => n.data.action === 'ModelsLoader'); const decoder = graph.nodes.find((n) => n.data.action === 'DecodeLatents'); const image = decoder.data.operationAuthoring.operation.ports.find( @@ -312,7 +336,7 @@ test('optional stage groups retain executable leaves, previews and exact mask ge target: 'preview', targetHandle: 'image', }); - assert.deepEqual(visual.availableOperationStageGroups(graph, owner.id), ['output']); + assert.deepEqual(visual.availableOperationStageGroups(graph, owner.id), ['setup', 'output']); const before = visual.unpackVisualOperationGroups(graph).graph; const grouped = visual.groupOperationStages(graph, owner.id, ['output']); const output = grouped.nodes.find((n) => visual.visualOperationGroup(n) === 'output'); @@ -330,7 +354,7 @@ test('optional stage groups retain executable leaves, previews and exact mask ge 'selected Image Output keeps the original upstream dependency closure', ); for (const original of graph.nodes.filter((node) => visual.visualOperationGroup(node))) - assert.equal( + assert.deepEqual( grouped.nodes.find((node) => node.id === original.id), original, 'other stage wrappers retain exact state', @@ -354,7 +378,7 @@ test('optional stage groups retain executable leaves, previews and exact mask ge .sort(), }); assert.deepEqual(signature(separated), signature(before)); - assert.deepEqual(visual.availableOperationStageGroups(grouped, owner.id), []); + assert.deepEqual(visual.availableOperationStageGroups(grouped, owner.id), ['setup']); const completed = runtime.setBlockPreviewStateV2( output.data.blockInstanceV2, { nodeId: 'stage-preview', outputPortId: 'preview' }, @@ -452,7 +476,7 @@ test('optional stage groups retain executable leaves, previews and exact mask ge assert.deepEqual(signature(visual.unpackVisualOperationGroups(mask).graph), signature(maskGraph)); const wrong = structuredClone(maskGraph); wrong.edges = wrong.edges.filter((e) => e.sourceHandle !== 'mask_image'); - assert.deepEqual(visual.availableOperationStageGroups(wrong, maskOwner.id), []); + assert.deepEqual(visual.availableOperationStageGroups(wrong, maskOwner.id), ['setup']); }); test('Model Setup retains loader ownership, ordered descriptors, task adaptation and independent reuse', async () => { @@ -461,7 +485,7 @@ test('Model Setup retains loader ownership, ordered descriptors, task adaptation const schema = await server.ssrLoadModule('/src/studio/blockSchemaV2.ts'); const persistence = await server.ssrLoadModule('/src/studio/blockDefinitionPersistenceV2.ts'); const starter = starters.find((s) => s.pipelineClass === 'FluxModularPipeline' && s.task === 'text_to_image'); - const graph = visual.groupNewOperationGraph(authoring.createOperationStarter(starter, { x: 0, y: 0 })); + const graph = legacyEncodingGroups(visual, authoring.createOperationStarter(starter, { x: 0, y: 0 })); const owner = graph.nodes.find((n) => n.data.action === 'ModelsLoader'); for (const id of ['lora-a', 'lora-b']) graph.nodes.push({ @@ -562,20 +586,58 @@ test('Model Setup retains loader ownership, ordered descriptors, task adaptation target: other.id, targetHandle: 'lora_list', }); - assert.ok( - !visual.availableOperationStageGroups(shared, owner.id).includes('setup'), - 'a modifier shared with another loader is not claimed exclusively', - ); + function checkSharedSuppliers(graph, ownedAdapterIds = []) { + const before = structuredClone(graph); + assert.ok(visual.availableOperationStageGroups(graph, owner.id).includes('setup')); + const grouped = visual.groupOperationStages(graph, owner.id, ['setup']); + const setup = grouped.nodes.find((node) => visual.visualOperationGroup(node) === 'setup'); + assert.deepEqual( + setup.data.blockInstanceV2.effectiveGraph.nodes.map((node) => node.data.action), + ['ModelsLoader', ...ownedAdapterIds.map(() => 'Lora')], + 'only the loader and its exclusive adapter suffix can be grouped', + ); + const external = graph.nodes.filter((node) => node.data.action === 'Lora' && !ownedAdapterIds.includes(node.id)); + for (const adapter of external) + assert.deepEqual( + grouped.nodes.find((node) => node.id === adapter.id), + adapter, + ); + const flat = visual.unpackVisualOperationGroups(grouped).graph; + const currentOwner = visibleModelOwner(visual, grouped); + const mappedId = (id) => { + if (id === owner.id) return currentOwner.id; + if (!ownedAdapterIds.includes(id)) return id; + const original = graph.nodes.find((node) => node.id === id); + const child = setup.data.blockInstanceV2.effectiveGraph.nodes.find( + (node) => node.data.action === 'Lora' && node.data.label === original.data.label, + ); + assert.ok(child, 'the owned adapter remains an actual setup leaf'); + assert.deepEqual(child.data.params, original.data.params, 'grouping retains every owned adapter setting'); + return `${setup.id}/${child.nodeId}`; + }; + for (const edge of graph.edges.filter((edge) => + graph.nodes.some((node) => node.data.action === 'Lora' && node.id === edge.source), + )) + assert.ok( + flat.edges.some( + (next) => + next.source === mappedId(edge.source) && + next.sourceHandle === edge.sourceHandle && + next.target === mappedId(edge.target) && + next.targetHandle === edge.targetHandle, + ), + 'each shared chain and consumer retains its exact supplier and ports', + ); + assert.deepEqual(graph, before, 'grouping does not mutate the shared source graph'); + } + checkSharedSuppliers(shared); shared.edges = shared.edges.filter((edge) => edge.id !== 'shared-descriptors'); shared.nodes.push({ ...structuredClone(shared.nodes.find((node) => node.id === 'lora-a')), id: 'lora-c' }); shared.edges.push( { id: 'shared-chain', source: 'lora-a', sourceHandle: 'lora', target: 'lora-c', targetHandle: 'previous_loras' }, { id: 'other-chain-owner', source: 'lora-c', sourceHandle: 'lora', target: other.id, targetHandle: 'lora_list' }, ); - assert.ok( - !visual.availableOperationStageGroups(shared, owner.id).includes('setup'), - 'indirectly shared descriptor chains also retain separate ownership', - ); + checkSharedSuppliers(shared, ['lora-b']); }); test('removed dynamic Guidance controls stay hidden without resetting execution values', async () => { @@ -587,7 +649,7 @@ test('removed dynamic Guidance controls stay hidden without resetting execution (s) => s.pipelineClass === 'StableDiffusionXLModularPipeline' && s.task === 'text_to_image', ); const grouped = visual.groupNewOperationGraph(authoring.createOperationStarter(starter, { x: 0, y: 0 })); - const root = grouped.nodes.find((n) => visual.visualOperationGroup(n) === 'guidance'); + const root = grouped.nodes.find((n) => visual.visualOperationGroup(n) === 'inputs'); const unpacked = visual.unpackVisualOperationGroups(grouped, new Set([root.id])); const stage = unpacked.graph.nodes.find((n) => n.data.action === 'Guider'); stage.data.params.dynamic_scale = { type: 'float', display: 'number', label: 'Dynamic Scale', default: 2.8 }; @@ -867,13 +929,11 @@ test('visual encoders and guidance preserve executable stages, typed wires, and input, JSON.stringify(starter.nodes.map((item) => [item.operation.nodeType, item.operation.decomposition])), ); - assert.ok( - guidance, - JSON.stringify(starter.nodes.map((item) => [item.operation.nodeType, item.operation.decomposition])), - ); - assert.equal(grouped.nodes.length, graph.nodes.length - 1); - assert.equal(presentation.isFocusedGuidance(guidance.data.blockInstanceV2), true); - assert.deepEqual(guidance.data.blockInstanceV2.effectiveGraph.nodes.map((n) => n.data.action).sort(), [ + assert.equal(guidance, undefined, 'fresh Guidance belongs to Encode Inputs'); + assert.equal(grouped.nodes.length, 4); + assert.equal(presentation.isFocusedGuidance(input.data.blockInstanceV2), true); + assert.deepEqual(input.data.blockInstanceV2.effectiveGraph.nodes.map((n) => n.data.action).sort(), [ + 'EncodePrompt', 'Guider', 'Layers', ]); @@ -952,7 +1012,8 @@ test('actual image-to-image model migration preserves one image source across al const fixture = qwenImageMigrationSource(); const graph = grouped ? visual.groupNewOperationGraph(fixture.graph) : fixture.graph; const original = structuredClone(graph); - const plan = authoring.planOperationChange(graph, fixture.ownerId, fixture.target); + const ownerId = grouped ? visibleModelOwner(visual, graph).id : fixture.ownerId; + const plan = authoring.planOperationChange(graph, ownerId, fixture.target); const flat = visual.unpackVisualOperationGroups(plan.graph).graph; const consumers = flat.nodes.filter((node) => ['ImageEncode', 'EncodePrompt'].includes(node.data.action)); assert.equal(consumers.length, 2); @@ -1170,7 +1231,7 @@ test('custom mirrored interfaces reject adaptation without mutating their source const port = input.data.blockInstanceV2.effectiveInterface.boundary.inputs[0]; port.mirrorBindings = [structuredClone(port.binding)]; const before = structuredClone(graph); - const owner = graph.nodes.find((n) => n.data.action === 'ModelsLoader'); + const owner = visibleModelOwner(visual, graph); assert.throws(() => authoring.planOperationChange(graph, owner.id, destination), /mirrored/); assert.deepEqual(graph, before); }); @@ -1185,7 +1246,7 @@ test('grouped image attachment adds only a visible source and retains the immuta (item) => item.pipelineClass === baseline.pipelineClass && item.task === 'image_to_image', ); const graph = visual.groupNewOperationGraph(authoring.createOperationStarter(baseline, { x: 80, y: 120 })); - const owner = graph.nodes.find((node) => node.data.operationAuthoring?.operation.decomposition === 'loader'); + const owner = visibleModelOwner(visual, graph); const input = graph.nodes.find((node) => visual.visualOperationGroup(node) === 'inputs'); const definition = structuredClone(input.data.blockInstanceV2.definitionSnapshot); const choice = attachment @@ -1221,11 +1282,82 @@ test('grouped image attachment adds only a visible source and retains the immuta ); }); -test('whole-pipeline audio stays unchanged rather than inventing encoders', async () => { +test('whole-pipeline audio preserves real leaves and API behind setup without inventing compute stages', async (t) => { const visual = await server.ssrLoadModule('/src/workflow/visualOperationGroups.ts'); - const starter = starters.find((item) => item.pipelineClass === 'AceStepPipeline' && item.task === 'text_to_audio'); - const graph = authoring.createOperationStarter(starter, { x: 0, y: 0 }); - assert.deepEqual(visual.groupNewOperationGraph(graph), graph); + const { useFlowStore } = await server.ssrLoadModule('/src/stores/useFlowStore.ts'); + const wholeAudio = starters.filter((item) => + item.nodes.some( + ({ node, operation }) => + node.module === 'modules.DiffusersAudio' && + node.action === 'Generate' && + operation.decomposition === 'pipeline', + ), + ); + assert.equal(wholeAudio.length, 7, 'four ACE tasks and the three other published integrated audio families'); + const api = (graph) => { + const exported = useFlowStore + .getState() + .exportGraph('whole-audio-preservation', undefined, { sourceGraph: graph, randomizeSeeds: false }); + const names = new Map(Object.entries(exported.nodes).map(([id, node]) => [id, `${node.module}.${node.action}`])); + assert.equal( + new Set(names.values()).size, + names.size, + 'these bounded routes have unique executable action identities', + ); + const normalize = (value) => { + if (Array.isArray(value)) return value.map(normalize); + if (value && typeof value === 'object') + return Object.fromEntries( + Object.entries(value).map(([key, item]) => [ + key, + key === 'sourceId' ? (names.get(item) ?? item) : normalize(item), + ]), + ); + return value; + }; + return { + nodes: Object.fromEntries( + [...names].map(([id, key]) => [key, normalize(exported.nodes[id])]).sort(([a], [b]) => a.localeCompare(b)), + ), + paths: exported.paths + .map((route) => route.map((id) => names.get(id) ?? id)) + .sort((a, b) => JSON.stringify(a).localeCompare(JSON.stringify(b))), + }; + }; + for (const starter of wholeAudio) + await t.test(`${starter.pipelineClass}:${starter.task}`, () => { + const graph = authoring.createOperationStarter(starter, { x: 0, y: 0 }); + // Select the declared NONE CPU authoring route before recording either + // graph; the schema fixture does not claim an accelerator or model run. + for (const node of graph.nodes) + if (String(node.data.params.device?.value ?? node.data.params.device?.default ?? '').startsWith('cpu')) { + if (node.data.params.auto_offload) node.data.params.auto_offload.value = false; + if (node.data.params.offload_mode) node.data.params.offload_mode.value = 'none'; + } + const before = structuredClone(graph); + const grouped = visual.groupNewOperationGraph(graph); + assert.deepEqual(grouped.nodes.map(visual.visualOperationGroup).filter(Boolean), ['setup']); + assert.equal(grouped.nodes.filter((node) => node.data.action === 'Generate').length, 1); + const flat = visual.unpackVisualOperationGroups(grouped).graph; + const leaves = (value) => value.nodes.map((node) => `${node.data.module}.${node.data.action}`).sort(); + assert.deepEqual( + leaves(flat), + leaves(before), + 'grouping cannot create an encoder, denoiser, decoder or output action', + ); + assert.ok( + !flat.nodes.some((node) => + ['EncodeInputs', 'EncodePrompt', 'Denoise', 'DecodeLatents'].includes(node.data.action), + ), + ); + assert.deepEqual( + api(grouped), + api(before), + 'all declared scalar values, model identity, inputs and executable wires survive', + ); + assert.deepEqual(api(flat), api(before)); + assert.deepEqual(graph, before, 'presentation does not mutate the creator graph'); + }); }); test('grouped model changes retain prompts, a custom output branch and group identity', async () => { @@ -1259,7 +1391,7 @@ test('grouped model changes retain prompts, a custom output branch and group ide targetHandle: 'input', }); const graph = visual.groupNewOperationGraph(draft); - const owner = graph.nodes.find((node) => node.data.operationAuthoring?.operation.decomposition === 'loader'); + const owner = visibleModelOwner(visual, graph); const input = graph.nodes.find((node) => visual.visualOperationGroup(node) === 'inputs'); const before = structuredClone(graph); const plan = authoring.planOperationChange(graph, owner.id, target); @@ -1311,7 +1443,7 @@ test('shared value edits preserve unrelated customized groups without rebuilding ); const first = visual.groupNewOperationGraph(authoring.createOperationStarter(starter, { x: 0, y: 0 })); const other = visual.groupNewOperationGraph(authoring.createOperationStarter(starter, { x: 0, y: 1000 })); - const guide = other.nodes.find((n) => visual.visualOperationGroup(n) === 'guidance'); + const guide = other.nodes.find((n) => visual.visualOperationGroup(n) === 'inputs'); let instance = runtime.addBlockEffectiveGraphNodeV2( guide.data.blockInstanceV2, { diff --git a/scripts/model-setup-adapter-authority.test.mjs b/scripts/model-setup-adapter-authority.test.mjs new file mode 100644 index 00000000..c250c3a3 --- /dev/null +++ b/scripts/model-setup-adapter-authority.test.mjs @@ -0,0 +1,1915 @@ +import assert from 'node:assert/strict'; +import { execFileSync } from 'node:child_process'; +import path from 'node:path'; +import { after, before, test } from 'node:test'; +import { createServer } from 'vite'; + +let server, + adapters, + groups, + fixture, + authority, + cases, + flowStore, + runtimeProfiles, + studioStore, + transactions, + captureContext; +const integratedImageStageIds = [ + 'flux_fill_inpaint', + 'flux_control_canny', + 'flux_fill_outpaint', + 'flux_depth_control', + 'flux_redux_edit', + 'flux_redux_multi_reference', +]; +const curatedFluxIds = [ + 'flux_lora_cinematic_octane_3d', + 'flux_lora_ghibli_story', + 'flux_lora_oil_painting', + 'flux_lora_film_noir', + 'flux_lora_retro_comic', + 'flux_lora_watercolor', + 'flux_lora_paper_cutout', + 'flux_lora_photoreal_documentary', +]; +before(async () => { + const storage = new Map(); + globalThis.localStorage = { + getItem: (key) => storage.get(key) ?? null, + setItem: (key, value) => storage.set(key, value), + removeItem: (key) => storage.delete(key), + }; + globalThis.window = { dispatchEvent: () => true, location: { origin: 'http://127.0.0.1:5191' }, localStorage }; + server = await createServer({ + configFile: false, + logLevel: 'silent', + optimizeDeps: { entries: [], noDiscovery: true }, + server: { middlewareMode: true, watch: null }, + appType: 'custom', + }); + adapters = await server.ssrLoadModule('/src/workflow/modelSetupAdapters.ts'); + runtimeProfiles = await server.ssrLoadModule('/src/studio/optionalRuntimes.ts'); + groups = await server.ssrLoadModule('/src/workflow/visualOperationGroups.ts'); + const { STUDIO_TEMPLATES } = await server.ssrLoadModule('/src/studio/templates.ts'); + const { DEFAULT_STUDIO_FORM } = await server.ssrLoadModule('/src/studio/modelProfiles.ts'); + const { getTemplateLockedSettings } = await server.ssrLoadModule('/src/studio/templateExactness.ts'); + const { createTemplateOperationGraph } = await server.ssrLoadModule('/src/studio/templateOperationWorkflow.ts'); + const { createOperationStarter } = await server.ssrLoadModule('/src/workflow/operationAuthoring.ts'); + const { parseOperationStarter } = await server.ssrLoadModule('/src/workflow/operationStarterRequest.ts'); + const { parseOperationContracts } = await server.ssrLoadModule('/src/workflow/operationContracts.ts'); + const { parsePipelineSupport } = await server.ssrLoadModule('/src/workflow/operationCatalog.ts'); + const { parseStudioModelCapabilities } = await server.ssrLoadModule('/src/stores/useNodeStore.ts'); + const { useNodesStore } = await server.ssrLoadModule('/src/stores/useNodeStore.ts'); + ({ useFlowStore: flowStore } = await server.ssrLoadModule('/src/stores/useFlowStore.ts')); + ({ useStudioStore: studioStore, captureWorkflowOperationContext: captureContext } = await server.ssrLoadModule( + '/src/stores/useStudioStore.ts', + )); + transactions = await server.ssrLoadModule('/src/workflow/operationGraphTransaction.ts'); + const ids = [ + 'z_image_quick_concept', + 'flux_schnell_text_to_image', + 'flux_krea_text_to_image', + ...editPolicySelections.map((selection) => selection.id), + 'qwen_text_rendering', + 'cosmos3_super_text_to_image', + ...integratedImageStageIds, + 'qwen_outpaint_draft', + ...curatedFluxIds, + ]; + const templates = ids.map((id) => { + const template = STUDIO_TEMPLATES.find((item) => item.id === id); + assert.ok(template?.executionSelection, id); + return template; + }); + const ddpm = { + id: 'ddpm-negative', + selection: { + pipelineClass: 'DDPMPipeline', + task: 'unconditional_image', + executionProfileId: 'ddpm-cifar10:direct', + }, + }; + const qwenDirect = { + id: 'qwen-direct', + selection: { + pipelineClass: 'QwenImagePipeline', + task: 'text_to_image', + executionProfileId: 'qwen-image:t2i-direct', + }, + }; + const backend = path.resolve('../MoDiff'); + const python = + process.env.MODIFF_BACKEND_PYTHON || + path.join(backend, '.venv', process.platform === 'win32' ? 'Scripts/python.exe' : 'bin/python'); + fixture = JSON.parse( + execFileSync(python, [path.resolve('scripts/template-operation-fixtures.py')], { + cwd: backend, + encoding: 'utf8', + maxBuffer: 64 * 1024 * 1024, + input: JSON.stringify([ + ...templates.map((template) => ({ id: template.id, selection: template.executionSelection })), + ddpm, + qwenDirect, + ...editControlSelections, + ]), + }), + ); + const payload = fixture.publicPayload; + const operations = parseOperationContracts(payload.operationContracts, payload.operationContractSchemaVersion); + const parsed = parseStudioModelCapabilities(payload); + authority = { + nodesRegistry: fixture.registry, + studioModelCapabilities: parsed.capabilities, + studioModelCapabilitiesAuthoritative: parsed.authoritative, + studioExecutionSpecInvalid: false, + operationContracts: operations, + pipelineSupport: parsePipelineSupport(payload.pipelineSupport, payload.pipelineSupportSchemaVersion, operations), + discoveryRequests: { nodes: { status: 'success' }, capabilities: { status: 'success' } }, + }; + useNodesStore.setState({ nodesRegistry: fixture.registry }); + cases = new Map( + fixture.recipes.map((row) => { + const template = templates.find((item) => item.id === row.id); + const selection = + template?.executionSelection ?? + [ddpm, qwenDirect, ...editControlSelections].find((item) => item.id === row.id)?.selection; + assert.ok(selection, row.id); + const starter = parseOperationStarter( + row.starter, + selection.pipelineClass, + selection.task, + operations, + selection, + ); + const owner = row.starter.nodes.find((item) => item.operation.decomposition === 'loader').node; + const graph = template + ? createTemplateOperationGraph( + template, + { + ...DEFAULT_STUDIO_FORM, + ...getTemplateLockedSettings(template), + ...(editPolicySelections.some((selection) => selection.id === template.id) + ? { + referenceImages: Array.from( + { length: editPolicySelections.find((selection) => selection.id === template.id).referenceCount }, + (_, index) => `@data/images/metadata-only-reference-${index + 1}.png`, + ), + } + : {}), + ...(integratedImageStageIds.includes(template.id) + ? { + referenceImages: ['@data/images/stage-source.png', '@data/images/stage-reference.png'], + maskImage: '@data/images/stage-mask.png', + controlImage: '@data/images/stage-control.png', + } + : {}), + device: owner.params.device.value ?? owner.params.device.default, + autoOffload: false, + offloadMode: 'none', + }, + starter, + fixture.registry, + row.spec, + parsed.capabilities.find((item) => item.modelType === template.modelType), + ) + : groups.groupNewOperationGraph(createOperationStarter(starter, { x: 0, y: 0 })); + const root = graph.nodes.find((node) => groups.visualOperationGroup(node) === 'setup'); + assert.ok(root, row.id); + return [row.id, { graph, root }]; + }), + ); +}); + +test('all eight curated FLUX templates retain their original adapters while the exact selected policy authorizes editing', async (t) => { + const capability = authority.studioModelCapabilities.find((item) => item.modelType === 'FluxModularPipeline'); + assert.equal(capability.supportsLora, false, 'The selected policy must not promote aggregate capability flags.'); + const profile = capability.executionProfiles.find((item) => item.id === 'flux-dev:modular'); + assert.equal(profile.adapterAuthoring.maxOwnedAdapters, 32); + for (const id of curatedFluxIds) + await t.test(id, () => { + const { graph, root } = cases.get(id); + const original = structuredClone(graph); + const chain = adapters.modelSetupAdapterChain(graph, root.id); + assert.equal(adapters.modelSetupAdapterAddUnavailable(chain, authority), null); + assert.equal(adapters.modelSetupAdapterEditUnavailable(chain, authority), null); + assert.equal(chain.adapters.length, id === curatedFluxIds[0] ? 2 : 1); + assert.deepEqual(graph.nodes.map((node) => node.data.label).sort(), [ + 'Denoise', + 'Encode Inputs', + 'Image Output', + 'Model Setup', + ]); + const next = add(graph, root); + const changed = adapters.modelSetupAdapterChain(next, root.id); + assert.deepEqual( + changed.adapters.slice(0, -1).map((node) => node.data.params), + chain.adapters.map((node) => node.data.params), + ); + assert.deepEqual(changed.owner.data.params, chain.owner.data.params); + const restored = adapters.planModelSetupAdapterEdit(next, root.id, { + kind: 'remove', + nodeId: changed.adapters.at(-1).id, + }); + const exportApi = (sourceGraph) => + flowStore.getState().exportGraph('metadata-curated-policy', undefined, { sourceGraph, randomizeSeeds: false }); + assert.deepEqual( + exportApi(restored), + exportApi(graph), + 'Remove restores all original executable values and leaf wires.', + ); + assert.deepEqual(graph, original); + }); +}); +after(async () => server?.close()); + +const add = (graph, root, metadata = authority, values = {}) => { + const chain = adapters.modelSetupAdapterChain(graph, root.id); + return adapters.planModelSetupAdapterEdit( + graph, + root.id, + { + kind: 'add', + registry: metadata?.nodesRegistry ?? fixture.registry, + values: { + [chain.native ? 'model' : 'adapter_path']: { source: 'local', value: 'metadata-only.safetensors' }, + ...(!chain.native ? { replace_existing: false } : {}), + ...values, + }, + }, + metadata, + ); +}; + +const selectedFluxProfile = () => + authority.studioModelCapabilities + .flatMap((item) => item.executionProfiles ?? []) + .find((item) => item.id === 'flux-dev:modular'); +const aliasSelections = [ + { id: 'flux_schnell_text_to_image', profileId: 'flux-schnell:modular', embeddedGuidance: 0, guiderEnabled: false }, + { id: 'flux_krea_text_to_image', profileId: 'flux-krea:modular', embeddedGuidance: 3.5, guiderEnabled: true }, +]; +test('actual selected alias policies authorize their own native image adapter Add', async (t) => { + for (const { id, profileId, embeddedGuidance, guiderEnabled } of aliasSelections) + await t.test(id, () => { + const { graph, root } = cases.get(id); + const before = structuredClone(graph); + const next = add(add(graph, root, authority, { scale: '0.8' }), root, authority, { scale: '0.35' }); + const { profile, policy } = publishedAliasPolicy(profileId); + const chain = adapters.modelSetupAdapterChain(next, root.id); + assert.equal(chain.adapters.length, 2); + assert.equal(chain.owner.data.params.model_type.value, profile.pipeline_class); + assert.deepEqual(chain.owner.data.params.repo_id.value, { source: 'hub', value: profile.default_repo }); + assert.ok( + policy.repositoryRevisions.some( + (pair) => pair.repo === profile.default_repo && pair.revision === chain.owner.data.params.revision.value, + ), + 'The current selected owner must match its own actual reviewed pair.', + ); + assert.deepEqual(policy.tasks, ['text_to_image']); + assert.equal(policy.maxOwnedAdapters, 32); + assert.equal(adapters.modelSetupAdapterEditUnavailable(chain, authority), null); + assert.equal(adapters.modelSetupAdapterAddUnavailable(chain, authority), null); + assert.deepEqual(chain.owner.data.params, adapters.modelSetupAdapterChain(graph, root.id).owner.data.params); + const flat = groups.unpackVisualOperationGroups(next).graph; + const guider = flat.nodes.find((node) => node.data.action === 'Guider'); + assert.equal(guider.data.params.enabled.value, guiderEnabled); + assert.equal(guider.data.params.use_original_formulation.value, false); + assert.equal( + flat.nodes.find((node) => node.data.action === 'Denoise').data.params.guidance_scale.value, + embeddedGuidance, + ); + assert.equal( + authority.studioModelCapabilities.find((item) => item.modelType === profile.pipeline_class).supportsLora, + false, + 'Authoring permission must not promote canonical runtime capability.', + ); + const moved = adapters.planModelSetupAdapterEdit( + next, + root.id, + { kind: 'move', nodeId: chain.adapters[1].id, offset: -1 }, + authority, + ); + assert.deepEqual( + adapters.modelSetupAdapterChain(moved, root.id).adapters.map((node) => node.data.params.scale.value), + ['0.35', '0.8'], + ); + let removed = moved; + for (const adapter of adapters.modelSetupAdapterChain(moved, root.id).adapters) + removed = adapters.planModelSetupAdapterEdit(removed, root.id, { kind: 'remove', nodeId: adapter.id }); + const exportApi = (sourceGraph) => + flowStore + .getState() + .exportGraph('metadata-own-alias-policy', undefined, { sourceGraph, randomizeSeeds: false }); + assert.deepEqual( + exportApi(removed), + exportApi(graph), + 'Removing owned rows restores all creator values and wires.', + ); + assert.deepEqual(graph, before); + }); +}); +const publishedAliasPolicy = (profileId) => { + const matches = authority.studioModelCapabilities + .flatMap((item) => item.executionProfiles ?? []) + .filter((item) => item.id === profileId); + assert.equal(matches.length, 1, 'The selected alias profile must have unique actual publication.'); + const profile = matches[0]; + assert.ok( + Object.hasOwn(profile, 'adapterAuthoring'), + 'Permission must come from the actual selected backend profile.', + ); + const policy = runtimeProfiles.parseImageAdapterAuthoringPolicy( + profile.adapterAuthoring, + profile.modes, + profile.repository_revisions, + profile, + ); + assert.deepEqual(policy, profile.adapterAuthoring); + return { profile, policy }; +}; +const withPolicy = (id, policy, { omit = false, supportsLora } = {}) => ({ + ...authority, + studioModelCapabilities: authority.studioModelCapabilities.map((item) => ({ + ...item, + ...(supportsLora === undefined ? {} : { supportsLora }), + executionProfiles: item.executionProfiles?.map((profile) => { + if (profile.id !== id) return profile; + const copy = structuredClone(profile); + if (omit) delete copy.adapterAuthoring; + else copy.adapterAuthoring = policy; + return copy; + }), + })), +}); + +test('own alias policies reject borrowed, missing, stale and ambiguous metadata without graph mutation', async (t) => { + for (const { id, profileId } of aliasSelections) { + const { graph, root } = cases.get(id); + const { policy } = publishedAliasPolicy(profileId); + const foreignId = aliasSelections.find((item) => item.profileId !== profileId).profileId; + const foreignPolicy = publishedAliasPolicy(foreignId).policy; + const variants = { + absent: () => withPolicy(profileId, undefined, { omit: true }), + malformedPresent: () => withPolicy(profileId, { ...policy, maxOwnedAdapters: 0 }), + borrowedDense: () => withPolicy(profileId, selectedFluxProfile().adapterAuthoring), + borrowedAlias: () => withPolicy(profileId, foreignPolicy), + wrongTask: () => withPolicy(profileId, { ...policy, tasks: ['image_to_image'] }), + pending: () => ({ + ...authority, + discoveryRequests: { ...authority.discoveryRequests, capabilities: { status: 'loading' } }, + }), + staleOperations: () => ({ ...authority, operationContracts: [] }), + staleSupport: () => ({ ...authority, pipelineSupport: [] }), + ambiguousProfile: () => ({ + ...authority, + studioModelCapabilities: authority.studioModelCapabilities.map((capability) => ({ + ...capability, + executionProfiles: capability.executionProfiles?.flatMap((profile) => + profile.id === profileId ? [profile, structuredClone(profile)] : [profile], + ), + })), + }), + }; + for (const [name, metadata] of Object.entries(variants)) + await t.test(`${id}/${name}`, () => { + const before = structuredClone(graph); + assert.throws(() => add(graph, root, metadata()), /policy|LoRA|profile|capabilities/i); + assert.deepEqual(graph, before); + }); + } +}); + +test('own alias policies require literal current repository, immutable pin, workflow and task selectors', async (t) => { + for (const { id, profileId } of aliasSelections) { + const { graph, root } = cases.get(id); + publishedAliasPolicy(profileId); + for (const [field, selected] of [ + ['repo_id', { source: 'hub', value: 'black-forest-labs/FLUX.1-dev' }], + ['revision', 'a'.repeat(40)], + ['workflow_id', 'image_to_image'], + ['model_type', 'UnknownPipeline'], + ]) + await t.test(`${id}/changed ${field}`, () => { + const unpacked = groups.unpackVisualOperationGroups(graph); + const owner = adapters.modelSetupAdapterChain(graph, root.id).owner; + unpacked.graph.nodes.find((node) => node.id === owner.id).data.params[field].value = selected; + const changed = groups.restoreVisualOperationGroups(unpacked.graph, unpacked); + const before = structuredClone(changed); + assert.throws(() => add(changed, root), /policy|LoRA|profile|revision|selector/i); + assert.deepEqual(changed, before); + }); + for (const field of ['model_type', 'repo_id', 'revision', 'workflow_id']) + await t.test(`${id}/connected ${field}`, () => { + const unpacked = groups.unpackVisualOperationGroups(graph); + const owner = adapters.modelSetupAdapterChain(graph, root.id).owner; + unpacked.graph.nodes.push({ + id: `alias-supplier-${field}`, + type: 'custom', + position: { x: -400, y: 0 }, + data: { + module: 'modules.Test', + action: 'Selector', + params: { output: { type: 'string', display: 'output' } }, + }, + }); + unpacked.graph.edges.push({ + id: `alias-selector-${field}`, + source: `alias-supplier-${field}`, + sourceHandle: 'output', + target: owner.id, + targetHandle: field, + }); + const connected = groups.restoreVisualOperationGroups(unpacked.graph, unpacked); + const before = structuredClone(connected); + assert.throws(() => add(connected, root), /policy|LoRA|profile|selector|reviewed image model/i); + assert.deepEqual(connected, before); + }); + } +}); + +test('selected image adapter policies reject malformed keys, bounds, tasks and foreign immutable pairs', async (t) => { + const profile = selectedFluxProfile(); + const policy = profile.adapterAuthoring; + const parse = (value, selected = profile) => + runtimeProfiles.parseOptionalRuntimeExecutionProfiles( + [{ ...structuredClone(selected), adapterAuthoring: value }], + undefined, + (mode) => selected.modes.includes(mode), + )[0].adapterAuthoring; + assert.deepEqual(parse(policy), policy, 'The positive policy is actual current backend publication.'); + const inherited = Object.create(policy); + const variants = { + undefined, + null: null, + array: [], + empty: {}, + inherited, + extra: { ...policy, grant: true }, + schema: { ...policy, schemaVersion: 2 }, + audio: { ...policy, mediaKind: 'audio' }, + node: { ...policy, adapterNodeKey: 'modules.DiffusersImage.LoadAdapter' }, + tasksEmpty: { ...policy, tasks: [] }, + tasksRepeated: { ...policy, tasks: ['text_to_image', 'text_to_image'] }, + taskForeign: { ...policy, tasks: ['edit_image'] }, + tasksOversized: { ...policy, tasks: Array(33).fill('text_to_image') }, + taskNonstring: { ...policy, tasks: [123] }, + maxZero: { ...policy, maxOwnedAdapters: 0 }, + maxLarge: { ...policy, maxOwnedAdapters: 33 }, + maxFraction: { ...policy, maxOwnedAdapters: 2.5 }, + maxString: { ...policy, maxOwnedAdapters: '32' }, + maxNonfinite: { ...policy, maxOwnedAdapters: Infinity }, + pairsEmpty: { ...policy, repositoryRevisions: [] }, + pairsNull: { ...policy, repositoryRevisions: null }, + pairsRepeated: { ...policy, repositoryRevisions: [...policy.repositoryRevisions, ...policy.repositoryRevisions] }, + pairsOversized: { ...policy, repositoryRevisions: Array(33).fill(policy.repositoryRevisions[0]) }, + pairExtra: { ...policy, repositoryRevisions: [{ ...policy.repositoryRevisions[0], permission: true }] }, + pairForeign: { ...policy, repositoryRevisions: [{ ...policy.repositoryRevisions[0], repo: 'foreign/model' }] }, + pairUnreviewed: { + ...policy, + repositoryRevisions: [{ ...policy.repositoryRevisions[0], revision: 'a'.repeat(40) }], + }, + pairMutable: { ...policy, repositoryRevisions: [{ ...policy.repositoryRevisions[0], revision: 'main' }] }, + pairUppercase: { + ...policy, + repositoryRevisions: [ + { ...policy.repositoryRevisions[0], revision: policy.repositoryRevisions[0].revision.toUpperCase() }, + ], + }, + }; + for (const [name, value] of Object.entries(variants)) + await t.test(name, () => { + assert.throws(() => parse(value), /runtime contract/i); + const { graph, root } = cases.get(curatedFluxIds[0]); + const before = structuredClone(graph); + assert.throws( + () => add(graph, root, withPolicy(profile.id, value, { supportsLora: true })), + /policy.*invalid/i, + 'A malformed present policy cannot fall back to broad true capability flags.', + ); + assert.deepEqual(graph, before); + }); + const foreignProfile = authority.studioModelCapabilities + .flatMap((item) => item.executionProfiles ?? []) + .find((item) => item.id === 'flux-schnell:modular'); + assert.throws(() => parse(policy, foreignProfile), /runtime contract/i); + const { graph, root } = cases.get('flux_schnell_text_to_image'); + assert.throws(() => add(graph, root, withPolicy(foreignProfile.id, policy)), /policy|authorize/i); +}); + +test('selected policy removal retains false-flag fallback and cannot authorize another repository, revision or task', async (t) => { + const profile = selectedFluxProfile(); + const { graph, root } = cases.get(curatedFluxIds[0]); + assert.throws(() => add(graph, root, withPolicy(profile.id, undefined, { omit: true })), /does not support LoRA/); + for (const [field, value] of [ + ['repo_id', { source: 'hub', value: 'black-forest-labs/FLUX.1-dev-fp8' }], + ['repo_id', { source: 'hub', value: 'black-forest-labs/FLUX.1-Krea-dev' }], + ['revision', 'a'.repeat(40)], + ['workflow_id', 'image_to_image'], + ]) + await t.test(`${field}:${JSON.stringify(value)}`, () => { + const unpacked = groups.unpackVisualOperationGroups(graph); + const owner = adapters.modelSetupAdapterChain(graph, root.id).owner; + assert.ok(owner.data.params[field], 'The actual owner must declare this selector.'); + unpacked.graph.nodes.find((node) => node.id === owner.id).data.params[field].value = value; + const changed = groups.restoreVisualOperationGroups(unpacked.graph, unpacked); + const before = structuredClone(changed); + assert.throws(() => add(changed, root), /profile|revision|policy|task|selector|LoRA/i); + assert.deepEqual(changed, before); + }); +}); + +test('selected policy does not grant authoring through duplicated, stale or connected authority', async (t) => { + const { graph, root } = cases.get(curatedFluxIds[0]); + const variants = { + duplicateCapability: { + ...authority, + studioModelCapabilities: [ + ...authority.studioModelCapabilities, + structuredClone(authority.studioModelCapabilities.find((item) => item.modelType === 'FluxModularPipeline')), + ], + }, + duplicateProfile: { + ...authority, + studioModelCapabilities: authority.studioModelCapabilities.map((item) => ({ + ...item, + executionProfiles: item.executionProfiles?.flatMap((profile) => + profile.id === selectedFluxProfile().id ? [profile, structuredClone(profile)] : [profile], + ), + })), + }, + duplicateOperation: { + ...authority, + operationContracts: [ + ...authority.operationContracts, + authority.operationContracts.find( + (item) => + item.pipelineClass === 'FluxModularPipeline' && item.task === 'text_to_image' && item.nodeType === 'loader', + ), + ], + }, + staleProfileTask: { + ...authority, + pipelineSupport: authority.pipelineSupport.map((item) => ({ + ...item, + tasks: item.tasks.map((task) => ({ + ...task, + executionProfileIds: task.executionProfileIds.filter((id) => id !== selectedFluxProfile().id), + })), + })), + }, + pending: { + ...authority, + discoveryRequests: { ...authority.discoveryRequests, capabilities: { status: 'loading' } }, + }, + }; + for (const [name, metadata] of Object.entries(variants)) + await t.test(name, () => { + const before = structuredClone(graph); + assert.throws(() => add(graph, root, metadata), /profile|capabilities/i); + assert.deepEqual(graph, before); + }); + await t.test('connected workflow selector', () => { + const unpacked = groups.unpackVisualOperationGroups(graph); + const owner = adapters.modelSetupAdapterChain(graph, root.id).owner; + unpacked.graph.nodes.push({ + id: 'external-workflow-selector', + type: 'custom', + position: { x: -500, y: 0 }, + data: { module: 'modules.Text', action: 'Text', params: { output: { type: 'string', display: 'output' } } }, + }); + unpacked.graph.edges.push({ + id: 'external-workflow-wire', + source: 'external-workflow-selector', + sourceHandle: 'output', + target: owner.id, + targetHandle: 'workflow_id', + }); + const connected = groups.restoreVisualOperationGroups(unpacked.graph, unpacked); + const before = structuredClone(connected); + assert.throws(() => add(connected, root), /policy|selector|task/i); + assert.deepEqual(connected, before); + }); +}); + +test('a full selected 32-adapter setup supports Move and persisted export but refuses a 33rd draft or commit', () => { + const { graph, root } = cases.get(curatedFluxIds[1]); + let full = graph; + while (adapters.modelSetupAdapterChain(full, root.id).adapters.length < 32) full = add(full, root); + const original = structuredClone(full); + const chain = adapters.modelSetupAdapterChain(full, root.id); + assert.equal(adapters.modelSetupAdapterEditUnavailable(chain, authority), null); + assert.match(adapters.modelSetupAdapterAddUnavailable(chain, authority), /at most 32/); + assert.throws(() => add(full, root), /at most 32/); + assert.deepEqual(full, original); + const moved = adapters.planModelSetupAdapterEdit( + full, + root.id, + { kind: 'move', nodeId: chain.adapters[31].id, offset: -1 }, + authority, + ); + const order = chain.adapters.map((node) => node.id); + [order[30], order[31]] = [order[31], order[30]]; + assert.deepEqual( + adapters.modelSetupAdapterChain(moved, root.id).adapters.map((node) => node.id), + order, + ); + const savedId = studioStore.getState().createWorkflowTab('32 selected adapters', { + nodes: full.nodes, + edges: full.edges, + viewport: { x: 0, y: 0, zoom: 1 }, + }); + flowStore.getState().resetHistory(); + const current = flowStore.getState().toObject(); + const committedMove = adapters.planModelSetupAdapterEdit( + current, + root.id, + { kind: 'move', nodeId: chain.adapters[31].id, offset: -1 }, + authority, + ); + transactions.commitOperationGraph( + committedMove, + captureContext(), + transactions.operationGraphSignature(current), + 'move model adapter', + ); + assert.equal(flowStore.getState().historyPast.length, 1); + flowStore.getState().undo(); + assert.deepEqual( + adapters.modelSetupAdapterChain(flowStore.getState().toObject(), root.id).adapters.map((node) => node.id), + chain.adapters.map((node) => node.id), + ); + flowStore.getState().redo(); + studioStore.getState().saveActiveWorkflowTab(true); + studioStore.getState().createWorkflowTab('temporary blank'); + studioStore.getState().switchWorkflowTab(savedId); + const restored = flowStore.getState().toObject(); + const restoredChain = adapters.modelSetupAdapterChain(restored, root.id); + assert.deepEqual( + restoredChain.adapters.map((node) => node.id), + order, + ); + assert.deepEqual( + restoredChain.adapters.map((node) => node.data.params.model.value), + adapters.modelSetupAdapterChain(moved, root.id).adapters.map((node) => node.data.params.model.value), + ); + const api = flowStore + .getState() + .exportGraph('metadata-selected-policy', undefined, { sourceGraph: restored, randomizeSeeds: false }); + assert.equal( + Object.values(api.nodes).filter((node) => `${node.module}.${node.action}` === profileAdapterKey()).length, + 32, + ); + const withdrawn = withPolicy(selectedFluxProfile().id, undefined, { omit: true }); + assert.match(adapters.modelSetupAdapterEditUnavailable(restoredChain, withdrawn), /does not support LoRA/); + const removed = adapters.planModelSetupAdapterEdit(restored, root.id, { + kind: 'remove', + nodeId: restoredChain.adapters[0].id, + }); + assert.equal(adapters.modelSetupAdapterChain(removed, root.id).adapters.length, 31); + assert.deepEqual( + adapters.modelSetupAdapterChain(removed, root.id).owner.data.params, + restoredChain.owner.data.params, + ); +}); + +const profileAdapterKey = () => selectedFluxProfile().adapterAuthoring.adapterNodeKey; + +test('policy duplicate repository names are case-insensitive while exact selected spelling remains unchanged', () => { + const profile = selectedFluxProfile(); + const policy = profile.adapterAuthoring; + const pair = policy.repositoryRevisions[0]; + const upper = { ...pair, repo: pair.repo.toUpperCase() }; + assert.throws( + () => + runtimeProfiles.parseImageAdapterAuthoringPolicy( + { ...policy, repositoryRevisions: [pair, upper] }, + profile.modes, + [pair, upper], + profile, + ), + /runtime contract/i, + ); + assert.deepEqual( + runtimeProfiles.parseImageAdapterAuthoringPolicy(policy, profile.modes, profile.repository_revisions, profile) + .repositoryRevisions, + [pair], + ); + assert.throws( + () => + runtimeProfiles.parseImageAdapterAuthoringPolicy( + { ...policy, repositoryRevisions: [upper] }, + profile.modes, + [pair], + profile, + ), + /runtime contract/i, + 'Duplicate detection must not normalize authority spelling.', + ); +}); + +test('policy task grammar rejects mode-declared runtime IDs that are not backend task identifiers', () => { + const profile = selectedFluxProfile(); + for (const task of ['1task', 'image.task', 'image-task', 'x'.repeat(65), 'text_to_image\n']) + assert.throws( + () => + runtimeProfiles.parseImageAdapterAuthoringPolicy( + { ...profile.adapterAuthoring, tasks: [task] }, + [task], + profile.repository_revisions, + profile, + ), + /runtime contract/i, + task, + ); +}); + +test('policy repositories retain the backend bounded identifier grammar even when a parent declares the value', () => { + const profile = selectedFluxProfile(); + for (const repo of [ + '-owner/model', + 'owner/.model', + 'x'.repeat(97) + '/model', + 'owner/' + 'x'.repeat(97), + 'owner/model\n', + ]) { + const pair = { repo, revision: profile.adapterAuthoring.repositoryRevisions[0].revision }; + assert.throws( + () => + runtimeProfiles.parseImageAdapterAuthoringPolicy( + { ...profile.adapterAuthoring, repositoryRevisions: [pair] }, + profile.modes, + [pair], + profile, + ), + /runtime contract/i, + repo, + ); + } +}); + +test('absent selected policy keeps unsupported Cosmos and DDPM owners from changing the saved graph', async (t) => { + for (const id of ['cosmos3_super_text_to_image', 'ddpm-negative']) + await t.test(id, () => { + const { graph, root } = cases.get(id); + const before = structuredClone(graph); + const metadata = + id === 'cosmos3_super_text_to_image' + ? withPolicy('cosmos3-super-text-to-image:official-modular-workflow', undefined, { omit: true }) + : authority; + assert.throws(() => add(graph, root, metadata), /LoRA.*support|support.*LoRA/i); + assert.deepEqual(graph, before); + }); +}); + +test('current supported native and direct image owners authorize actual registered adapter transport', async (t) => { + for (const id of ['z_image_quick_concept', 'qwen_text_rendering', 'flux_fill_outpaint', 'qwen-direct']) + await t.test(id, () => { + const { graph, root } = cases.get(id); + const chain = adapters.modelSetupAdapterChain(graph, root.id); + const field = chain.native ? 'model' : 'adapter_path'; + const next = adapters.planModelSetupAdapterEdit( + graph, + root.id, + { + kind: 'add', + registry: fixture.registry, + values: { [field]: { source: 'local', value: 'metadata-only.safetensors' } }, + }, + authority, + ); + assert.equal(adapters.modelSetupAdapterChain(next, root.id).adapters.length, 1); + }); +}); + +test('pending, stale, unknown and mismatched selected metadata refuses Add without changing existing values', async (t) => { + const { graph, root } = cases.get('z_image_quick_concept'); + const variants = { + missing: () => null, + pendingCapabilities: () => ({ + ...authority, + discoveryRequests: { ...authority.discoveryRequests, capabilities: { status: 'loading' } }, + }), + pendingRegistry: () => ({ + ...authority, + discoveryRequests: { ...authority.discoveryRequests, nodes: { status: 'loading' } }, + }), + failedCapabilities: () => ({ + ...authority, + discoveryRequests: { ...authority.discoveryRequests, capabilities: { status: 'error' } }, + }), + nonAuthoritative: () => ({ ...authority, studioModelCapabilitiesAuthoritative: false }), + invalidSpecification: () => ({ ...authority, studioExecutionSpecInvalid: true }), + unknownTask: () => ({ ...authority, pipelineSupport: [] }), + staleOperation: () => ({ ...authority, operationContracts: [] }), + missingRegistry: () => ({ ...authority, nodesRegistry: {} }), + staleProfile: () => ({ + ...authority, + studioModelCapabilities: authority.studioModelCapabilities.map((item) => ({ ...item, executionProfiles: [] })), + }), + missingSelectedPairs: () => ({ + ...authority, + studioModelCapabilities: authority.studioModelCapabilities.map((item) => ({ + ...item, + executionProfiles: item.executionProfiles?.map((profile) => ({ ...profile, repository_revisions: undefined })), + })), + }), + foreignRepositoryPair: () => ({ + ...authority, + studioModelCapabilities: authority.studioModelCapabilities.map((item) => ({ + ...item, + executionProfiles: item.executionProfiles?.map((profile) => ({ + ...profile, + repository_revisions: profile.repository_revisions?.map((pair) => ({ ...pair, repo: 'unreviewed/model' })), + })), + })), + }), + staleSelectedRevision: () => ({ + ...authority, + studioModelCapabilities: authority.studioModelCapabilities.map((item) => ({ + ...item, + executionProfiles: item.executionProfiles?.map((profile) => ({ + ...profile, + repository_revisions: profile.repository_revisions?.map((pair) => ({ ...pair, revision: 'b'.repeat(40) })), + })), + })), + }), + staleRegistrySocket: () => { + const nodesRegistry = structuredClone(authority.nodesRegistry); + nodesRegistry['modules.ModularDiffusers.Lora'].params.lora.type = 'image'; + return { ...authority, nodesRegistry }; + }, + }; + for (const [name, make] of Object.entries(variants)) + await t.test(name, () => { + const before = structuredClone(graph); + assert.throws(() => add(graph, root, make()), /LoRA|capabilities|profile/i); + assert.deepEqual(graph, before); + }); + for (const [name, value] of [ + ['model_type', 'UnknownPipeline'], + ['repo_id', { source: 'hub', value: 'unreviewed/model' }], + ['revision', 'b'.repeat(40)], + ]) + await t.test(name, () => { + const unpacked = groups.unpackVisualOperationGroups(graph); + const owner = adapters.modelSetupAdapterChain(graph, root.id).owner; + unpacked.graph.nodes.find((node) => node.id === owner.id).data.params[name].value = value; + const modified = groups.restoreVisualOperationGroups(unpacked.graph, unpacked); + const before = structuredClone(modified); + assert.throws(() => add(modified, root), /LoRA|capabilities|profile/i); + assert.deepEqual(modified, before); + }); + for (const field of ['model_type', 'repo_id', 'revision']) + await t.test(`connected ${field}`, () => { + const unpacked = groups.unpackVisualOperationGroups(graph); + const owner = adapters.modelSetupAdapterChain(graph, root.id).owner; + unpacked.graph.nodes.push({ + id: `supplier-${field}`, + type: 'custom', + position: { x: -400, y: 0 }, + data: { + module: 'modules.Test', + action: 'Selector', + params: { output: { type: 'string', display: 'output' } }, + }, + }); + unpacked.graph.edges.push({ + id: `selector-${field}`, + source: `supplier-${field}`, + sourceHandle: 'output', + target: owner.id, + targetHandle: field, + }); + const modified = groups.restoreVisualOperationGroups(unpacked.graph, unpacked); + const before = structuredClone(modified); + assert.throws(() => add(modified, root), /reviewed image model|LoRA|profile/i); + assert.deepEqual(modified, before); + }); + + await t.test('stale direct profile selection', () => { + const direct = cases.get('qwen-direct'); + const unpacked = groups.unpackVisualOperationGroups(direct.graph); + const owner = adapters.modelSetupAdapterChain(direct.graph, direct.root.id).owner; + unpacked.graph.nodes.find((node) => node.id === owner.id).data.params.execution_profile_id.value = 'old-profile'; + const modified = groups.restoreVisualOperationGroups(unpacked.graph, unpacked); + const before = structuredClone(modified); + assert.throws(() => add(modified, direct.root), /profile|capabilities/i); + assert.deepEqual(modified, before); + }); +}); + +test('an existing adapter remains inspectable and removable when current selected support is withdrawn', () => { + const { graph, root } = cases.get('z_image_quick_concept'); + const populated = add(graph, root); + const before = structuredClone(populated); + const withdrawn = { + ...authority, + studioModelCapabilities: authority.studioModelCapabilities.map((item) => ({ ...item, supportsLora: false })), + }; + const chain = adapters.modelSetupAdapterChain(populated, root.id); + assert.match(adapters.modelSetupAdapterAddUnavailable(chain, withdrawn), /does not support LoRA/); + assert.equal(chain.adapters.length, 1); + assert.throws(() => add(populated, root, withdrawn), /does not support LoRA/); + assert.throws( + () => + adapters.planModelSetupAdapterEdit( + populated, + root.id, + { kind: 'move', nodeId: chain.adapters[0].id, offset: 1 }, + withdrawn, + ), + /does not support LoRA/, + ); + assert.deepEqual(populated, before); + const removed = adapters.planModelSetupAdapterEdit(populated, root.id, { + kind: 'remove', + nodeId: chain.adapters[0].id, + }); + assert.equal(adapters.modelSetupAdapterChain(removed, root.id).adapters.length, 0); + assert.deepEqual(adapters.modelSetupAdapterChain(removed, root.id).owner.data.params, chain.owner.data.params); +}); + +test('actual direct image adapters retain their operation scope through ordered edits and reject shared suppliers', async (t) => { + for (const id of ['flux_fill_outpaint', 'qwen-direct']) + await t.test(id, () => { + const { graph, root } = cases.get(id); + const original = adapters.modelSetupAdapterChain(graph, root.id); + const one = add(graph, root); + const two = add(one, root); + const chain = adapters.modelSetupAdapterChain(two, root.id); + assert.equal(chain.adapters.length, 2); + assert.deepEqual(chain.owner.data.params, original.owner.data.params); + const moved = adapters.planModelSetupAdapterEdit( + two, + root.id, + { kind: 'move', nodeId: chain.adapters[1].id, offset: -1 }, + authority, + ); + const reordered = adapters.modelSetupAdapterChain(moved, root.id); + assert.deepEqual( + reordered.adapters.map((node) => node.id), + chain.adapters.map((node) => node.id).reverse(), + ); + let removed = moved; + for (const node of reordered.adapters) + removed = adapters.planModelSetupAdapterEdit(removed, root.id, { kind: 'remove', nodeId: node.id }); + assert.equal(adapters.modelSetupAdapterChain(removed, root.id).adapters.length, 0); + assert.deepEqual(adapters.modelSetupAdapterChain(removed, root.id).owner.data.params, original.owner.data.params); + + for (const kind of ['sharedOutput', 'competingInput']) { + const unpacked = groups.unpackVisualOperationGroups(one); + const existing = adapters.modelSetupAdapterChain(one, root.id).adapters[0]; + const duplicate = structuredClone(kind === 'sharedOutput' ? existing : original.owner); + duplicate.id = `extra-${kind}`; + unpacked.graph.nodes.push(duplicate); + unpacked.graph.edges.push({ + id: `extra-${kind}-wire`, + source: kind === 'sharedOutput' ? existing.id : duplicate.id, + sourceHandle: kind === 'sharedOutput' ? 'output' : 'pipeline', + target: kind === 'sharedOutput' ? duplicate.id : existing.id, + targetHandle: 'pipeline', + }); + for (const edge of unpacked.graph.edges.filter((edge) => edge.id === `extra-${kind}-wire`)) { + const source = unpacked.graph.nodes.find((node) => node.id === edge.source).data.params[edge.sourceHandle]; + const target = unpacked.graph.nodes.find((node) => node.id === edge.target).data.params[edge.targetHandle]; + assert.equal(source.type, 'image_diffusion_pipeline'); + assert.equal(target.type, source.type); + } + const modified = groups.groupNewOperationGraph(unpacked.graph); + const projected = groups.unpackVisualOperationGroups(modified); + const setup = modified.nodes.find( + (node) => + groups.visualOperationGroup(node) === 'setup' && + projected.members.get(node.id)?.some((id) => id.endsWith(`/stage-${original.owner.id}`)), + ); + assert.ok(setup, 'The original owner remains in a valid derived setup.'); + const before = structuredClone(modified); + assert.throws(() => add(modified, setup), /shared|competing|another loader|missing consumers/i); + assert.deepEqual(modified, before); + } + }); +}); + +test('actual image decode operation groups Cosmos output without changing executable leaves or saved standalone layout', () => { + const { graph } = cases.get('cosmos3_super_text_to_image'); + assert.deepEqual(graph.nodes.map((node) => node.data.label).sort(), [ + 'Denoise', + 'Encode Inputs', + 'Image Output', + 'Model Setup', + ]); + const output = graph.nodes.find((node) => groups.visualOperationGroup(node) === 'output'); + assert.ok(output); + const leaves = output.data.blockInstanceV2.effectiveGraph.nodes; + assert.deepEqual(leaves.map((node) => node.data.action).sort(), ['Preview', 'WorkflowCosmos3OmniDecode']); + const standalone = groups.unpackVisualOperationGroups(graph).graph; + const saved = structuredClone(standalone); + assert.equal(standalone.nodes.length, 5); + assert.equal(standalone.nodes.filter((node) => groups.visualOperationGroup(node)).length, 0); + const executable = (sourceGraph) => { + const api = flowStore + .getState() + .exportGraph('metadata-image-grouping', undefined, { sourceGraph, randomizeSeeds: false }); + const names = new Map(Object.entries(api.nodes).map(([id, node]) => [id, `${node.module}.${node.action}`])); + assert.equal(new Set(names.values()).size, names.size); + return Object.fromEntries( + Object.entries(api.nodes).map(([id, node]) => [ + names.get(id), + { + module: node.module, + action: node.action, + params: Object.fromEntries( + Object.entries(node.params).map(([field, value]) => [ + field, + value.sourceId ? { ...value, sourceId: names.get(value.sourceId) } : value, + ]), + ), + }, + ]), + ); + }; + assert.deepEqual(executable(graph), executable(standalone)); + assert.deepEqual(standalone, saved, 'Exporting/opening the saved standalone graph does not combine its stages.'); +}); + +// Fixture setup must include these actual curated selections and the two actual +// published negative starters below. No positive adapterAuthoring DTO is made here. +const editPolicySelections = [ + { + id: 'flux_kontext_edit', + profileId: 'flux-kontext:modular', + task: 'edit_image', + tasks: ['edit_image'], + repo: 'black-forest-labs/FLUX.1-Kontext-dev', + revision: '24e9dedc4ef646698dc8eb4e18ae2cec3c9fea0d', + visibleLabels: ['Denoise', 'Encode Inputs', 'Image Output', 'Load Image', 'Model Setup'], + referenceCount: 1, + embeddedGuidance: 3.5, + guiderEnabled: true, + }, + { + id: 'flux_kontext_multi_reference', + profileId: 'flux-kontext:modular', + task: 'multi_image_reference_edit', + tasks: ['edit_image'], + repo: 'black-forest-labs/FLUX.1-Kontext-dev', + revision: '24e9dedc4ef646698dc8eb4e18ae2cec3c9fea0d', + visibleLabels: ['Compose References', 'Denoise', 'Encode Inputs', 'Image Output', 'Load Image', 'Model Setup'], + referenceCount: 2, + embeddedGuidance: 3.5, + guiderEnabled: true, + }, + ...[ + ['flux2_klein_text_to_image', 'text_to_image', 0], + ['flux2_klein_edit', 'edit_image', 1], + ['flux2_klein_multi_reference', 'multi_image_reference_edit', 2], + ].map(([id, task, referenceCount]) => ({ + id, + task, + referenceCount, + profileId: 'flux2-klein:modular', + tasks: ['text_to_image', 'edit_image'], + repo: 'black-forest-labs/FLUX.2-klein-4B', + revision: 'e7b7dc27f91deacad38e78976d1f2b499d76a294', + visibleLabels: [ + 'Denoise', + 'Encode Inputs', + 'Image Output', + 'Model Setup', + ...(referenceCount ? ['Load Image'] : []), + ].sort(), + embeddedGuidance: 1, + guiderEnabled: null, + })), +]; +const editControlSelections = [ + { + id: 'klein-base-native-negative', + selection: { + pipelineClass: 'Flux2KleinBaseModularPipeline', + task: 'text_to_image', + executionProfileId: 'flux2-klein-base:modular', + }, + }, + { + id: 'klein-kv-native-negative', + selection: { + pipelineClass: 'Flux2KleinModularPipeline', + task: 'text_to_image', + executionProfileId: 'flux2-klein-kv:t2i-modular', + }, + }, +]; + +test('actual selected Kontext and Klein policies authorize only their five original native templates', async (t) => { + for (const selection of editPolicySelections) + await t.test(selection.id, () => { + const { graph, root } = cases.get(selection.id); + const before = structuredClone(graph); + const authorityBefore = structuredClone(authority); + const chain = adapters.modelSetupAdapterChain(graph, root.id); + const retained = adapters.modelSetupAdapterChain( + cases.get(curatedFluxIds[0]).graph, + cases.get(curatedFluxIds[0]).root.id, + ).adapters; + assert.equal(retained.length, 2); + const values = retained.map((node, index) => + Object.fromEntries( + ['model', 'revision', 'expected_sha256', 'weight_name', 'adapter_name', 'scale'].map((field) => [ + field, + field === 'scale' ? ['0.8', '0.35'][index] : structuredClone(node.data.params[field].value), + ]), + ), + ); + const next = add(add(graph, root, authority, values[0]), root, authority, values[1]); + const { profile, policy } = publishedAliasPolicy(selection.profileId); + assert.deepEqual(policy.tasks, selection.tasks); + const currentOwner = currentEditOwnerContract(selection); + const executionMode = Object.hasOwn(currentOwner.binding, 'executionMode') + ? currentOwner.binding.executionMode + : currentOwner.task; + assert.ok(policy.tasks.includes(executionMode)); + assert.ok(profile.modes.includes(executionMode)); + assert.equal(policy.adapterNodeKey, 'modules.ModularDiffusers.Lora'); + assert.equal(policy.maxOwnedAdapters, 32); + assert.deepEqual(policy.repositoryRevisions, [{ repo: selection.repo, revision: selection.revision }]); + const changed = adapters.modelSetupAdapterChain(next, root.id); + assert.equal(changed.native, true); + assert.deepEqual(changed.owner.data.params, chain.owner.data.params); + assert.equal(changed.owner.data.params.model_type.value, profile.pipeline_class); + assert.deepEqual(changed.owner.data.params.repo_id.value, { source: 'hub', value: selection.repo }); + assert.equal(changed.owner.data.params.revision.value, selection.revision); + assert.equal(adapters.modelSetupAdapterEditUnavailable(changed, authority), null); + assert.equal( + authority.studioModelCapabilities.find((item) => item.modelType === profile.pipeline_class).supportsLora, + false, + ); + assert.deepEqual(next.nodes.map((node) => node.data.label).sort(), selection.visibleLabels); + const flat = groups.unpackVisualOperationGroups(next).graph; + const guider = flat.nodes.find((node) => node.data.action === 'Guider'); + assert.equal(guider?.data.params.enabled.value ?? null, selection.guiderEnabled); + assert.equal( + flat.nodes.find((node) => node.data.action === 'Denoise').data.params.guidance_scale.value, + selection.embeddedGuidance, + ); + for (const [index, adapter] of changed.adapters.entries()) + for (const [field, value] of Object.entries(values[index])) + assert.deepEqual(adapter.data.params[field].value, value); + const exportApi = (sourceGraph) => + flowStore.getState().exportGraph('metadata-own-edit-policy', undefined, { sourceGraph, randomizeSeeds: false }); + const core = (sourceGraph) => { + const api = exportApi(sourceGraph); + return Object.fromEntries( + Object.entries(api.nodes) + .filter(([, node]) => node.action !== 'Lora') + .map(([id, node]) => [ + id, + { + ...node, + params: Object.fromEntries(Object.entries(node.params).filter(([field]) => field !== 'lora_list')), + }, + ]), + ); + }; + assert.deepEqual( + core(next), + core(graph), + 'All non-adapter executable fields, settings and ordinary wires remain unchanged.', + ); + const moved = adapters.planModelSetupAdapterEdit( + next, + root.id, + { kind: 'move', nodeId: changed.adapters[1].id, offset: -1 }, + authority, + ); + assert.deepEqual( + adapters.modelSetupAdapterChain(moved, root.id).adapters.map((node) => node.data.params.scale.value), + ['0.35', '0.8'], + ); + assert.deepEqual(core(moved), core(graph)); + let removed = moved; + for (const adapter of adapters.modelSetupAdapterChain(moved, root.id).adapters) + removed = adapters.planModelSetupAdapterEdit(removed, root.id, { kind: 'remove', nodeId: adapter.id }); + assert.deepEqual( + exportApi(removed), + exportApi(graph), + 'Whole ordinary API JSON is restored, including media and all creator settings.', + ); + assert.deepEqual(graph, before); + assert.deepEqual( + authority, + authorityBefore, + 'No support/qualification/Auto flags or other public metadata are promoted.', + ); + }); +}); + +test('selected edit policies reject missing, foreign, malformed, stale, ambiguous and wrong-task grants unchanged', async (t) => { + for (const selection of editPolicySelections) { + const { graph, root } = cases.get(selection.id); + const { policy } = publishedAliasPolicy(selection.profileId); + const foreignId = selection.profileId === 'flux-kontext:modular' ? 'flux2-klein:modular' : 'flux-kontext:modular'; + const variants = { + absent: withPolicy(selection.profileId, undefined, { omit: true }), + malformedPresent: withPolicy(selection.profileId, { ...policy, maxOwnedAdapters: 0 }), + borrowedDense: withPolicy(selection.profileId, selectedFluxProfile().adapterAuthoring), + borrowedOtherEditProfile: withPolicy(selection.profileId, publishedAliasPolicy(foreignId).policy), + wrongTask: withPolicy(selection.profileId, { + ...policy, + tasks: policy.tasks.filter( + (task) => task !== (selection.task === 'multi_image_reference_edit' ? 'edit_image' : selection.task), + ), + }), + foreignPair: withPolicy(selection.profileId, { + ...policy, + repositoryRevisions: [ + { repo: 'black-forest-labs/FLUX.1-dev', revision: '3de623fc3c33e44ffbe2bad470d0f45bccf2eb21' }, + ], + }), + stalePin: withPolicy(selection.profileId, { + ...policy, + repositoryRevisions: [{ repo: selection.repo, revision: 'a'.repeat(40) }], + }), + missingPairs: withPolicy(selection.profileId, { ...policy, repositoryRevisions: [] }), + pending: { + ...authority, + discoveryRequests: { ...authority.discoveryRequests, capabilities: { status: 'loading' } }, + }, + staleOperations: { ...authority, operationContracts: [] }, + staleSupport: { ...authority, pipelineSupport: [] }, + ambiguousProfile: { + ...authority, + studioModelCapabilities: authority.studioModelCapabilities.map((capability) => ({ + ...capability, + executionProfiles: capability.executionProfiles?.flatMap((profile) => + profile.id === selection.profileId ? [profile, structuredClone(profile)] : [profile], + ), + })), + }, + ambiguousCapability: { + ...authority, + studioModelCapabilities: [ + ...authority.studioModelCapabilities, + structuredClone( + authority.studioModelCapabilities.find( + (capability) => + capability.modelType === + adapters.modelSetupAdapterChain(graph, root.id).owner.data.params.model_type.value, + ), + ), + ], + }, + }; + for (const [name, metadata] of Object.entries(variants)) + await t.test(`${selection.id}/${name}`, () => { + const before = structuredClone(graph); + assert.throws(() => add(graph, root, metadata), /policy|LoRA|profile|capabilities/i); + assert.deepEqual(graph, before); + }); + for (const [field, selected] of [ + ['repo_id', { source: 'hub', value: 'black-forest-labs/FLUX.1-dev' }], + ['revision', 'a'.repeat(40)], + ['workflow_id', selection.task === 'text_to_image' ? 'image_conditioned' : 'text2image'], + ['model_type', 'UnknownPipeline'], + ]) + await t.test(`${selection.id}/changed ${field}`, () => { + const unpacked = groups.unpackVisualOperationGroups(graph); + const owner = adapters.modelSetupAdapterChain(graph, root.id).owner; + unpacked.graph.nodes.find((node) => node.id === owner.id).data.params[field].value = selected; + const changed = groups.restoreVisualOperationGroups(unpacked.graph, unpacked); + const before = structuredClone(changed); + assert.throws(() => add(changed, root), /policy|LoRA|profile|revision|selector/i); + assert.deepEqual(changed, before); + }); + for (const field of ['model_type', 'repo_id', 'revision', 'workflow_id']) + await t.test(`${selection.id}/connected ${field}`, () => { + const unpacked = groups.unpackVisualOperationGroups(graph); + const owner = adapters.modelSetupAdapterChain(graph, root.id).owner; + unpacked.graph.nodes.push({ + id: `edit-policy-supplier-${field}`, + type: 'custom', + position: { x: -400, y: 0 }, + data: { + module: 'modules.Test', + action: 'Selector', + params: { output: { type: 'string', display: 'output' } }, + }, + }); + unpacked.graph.edges.push({ + id: `edit-policy-selector-${field}`, + source: `edit-policy-supplier-${field}`, + sourceHandle: 'output', + target: owner.id, + targetHandle: field, + }); + const connected = groups.restoreVisualOperationGroups(unpacked.graph, unpacked); + const before = structuredClone(connected); + assert.throws(() => add(connected, root), /policy|LoRA|profile|revision|selector/i); + assert.deepEqual(connected, before); + }); + } +}); + +test('native edit grants do not authorize Kontext NVFP4, Klein Base or Klein KV selectors', async (t) => { + await t.test('Kontext NVFP4 exact reviewed pair remains excluded from dense policy', () => { + const { graph, root } = cases.get('flux_kontext_edit'); + const unpacked = groups.unpackVisualOperationGroups(graph); + const owner = adapters.modelSetupAdapterChain(graph, root.id).owner; + const params = unpacked.graph.nodes.find((node) => node.id === owner.id).data.params; + params.repo_id.value = { source: 'hub', value: 'black-forest-labs/FLUX.1-Kontext-dev-NVFP4' }; + params.revision.value = '7e9dee453a3454251216a394697a6dcea44f54f8'; + const changed = groups.restoreVisualOperationGroups(unpacked.graph, unpacked); + const before = structuredClone(changed); + assert.throws(() => add(changed, root), /policy|LoRA|profile|revision/i); + assert.deepEqual(changed, before); + }); + for (const control of editControlSelections) + await t.test(control.id, () => { + const { graph, root } = cases.get(control.id); + const before = structuredClone(graph); + // Studio intentionally filters model types without a presentation (KV). + // Check the actual public declaration without inventing parsed authority. + const publicProfiles = fixture.publicPayload.capabilities + .flatMap((capability) => capability.executionProfiles ?? []) + .filter((profile) => profile.id === control.selection.executionProfileId); + assert.equal(publicProfiles.length, 1); + assert.equal(Object.hasOwn(publicProfiles[0], 'adapterAuthoring'), false); + assert.throws(() => add(graph, root), /policy|LoRA|profile/i); + assert.deepEqual(graph, before); + }); +}); + +// Positive mode fields are NEVER synthesized into a fixture. +function currentEditOwnerContract(selection, metadata = authority) { + const { graph, root } = cases.get(selection.id); + const hint = adapters.modelSetupAdapterChain(graph, root.id).owner.data.operationAuthoring.operation; + const rows = metadata.operationContracts.filter( + (item) => + item.pipelineClass === hint.pipelineClass && + item.task === hint.task && + item.operationId === hint.operationId && + item.nodeKey === hint.nodeKey, + ); + assert.equal(rows.length, 1); + return rows[0]; +} +function editAuthorityMode(selection, mode, omit = false) { + const metadata = structuredClone(authority); + const binding = currentEditOwnerContract(selection, metadata).binding; + if (omit) delete binding.executionMode; + else binding.executionMode = mode; + return metadata; +} +test('five selected image policies use their exact current backend execution mode without expanding profile modes', async (t) => { + for (const selection of editPolicySelections) + await t.test(selection.id, () => { + const expected = selection.task === 'multi_image_reference_edit' ? 'edit_image' : selection.task; + const current = currentEditOwnerContract(selection); + const { profile, policy } = publishedAliasPolicy(selection.profileId); + if (selection.task === 'multi_image_reference_edit') { + assert.equal( + current.binding.executionMode, + expected, + 'The alias mode must come from the real producer, not the graph hint or fixture injection.', + ); + } else { + assert.equal( + Object.hasOwn(current.binding, 'executionMode'), + false, + 'Exact T2I/edit owners preserve the existing absent field and exact-task fallback.', + ); + } + assert.deepEqual(profile.modes, ['text_to_image', 'edit_image']); + assert.deepEqual( + policy.tasks, + selection.profileId === 'flux-kontext:modular' ? ['edit_image'] : ['text_to_image', 'edit_image'], + ); + assert.ok(policy.tasks.includes(current.binding.executionMode ?? current.task)); + assert.ok(profile.modes.includes(current.binding.executionMode ?? current.task)); + assert.equal(policy.tasks.includes('multi_image_reference_edit'), false); + const { graph, root } = cases.get(selection.id); + assert.equal( + adapters.modelSetupAdapterAddUnavailable(adapters.modelSetupAdapterChain(graph, root.id), authority), + null, + ); + }); +}); +test('absent execution mode falls back only to the exact task and saved hints cannot grant a multi-reference alias', async (t) => { + for (const selection of editPolicySelections) + await t.test(selection.id, () => { + const { graph, root } = cases.get(selection.id); + const metadata = editAuthorityMode(selection, undefined, true); + const before = structuredClone(graph); + if (selection.task === 'multi_image_reference_edit') { + assert.throws(() => add(graph, root, metadata), /policy|LoRA|profile/i); + const unpacked = groups.unpackVisualOperationGroups(graph); + const ownerId = adapters.modelSetupAdapterChain(graph, root.id).owner.id; + unpacked.graph.nodes.find( + (node) => node.id === ownerId, + ).data.operationAuthoring.operation.binding.executionMode = 'edit_image'; + const advisory = groups.restoreVisualOperationGroups(unpacked.graph, unpacked); + const advisoryBefore = structuredClone(advisory); + assert.throws(() => add(advisory, root, metadata), /policy|LoRA|profile/i); + assert.deepEqual(advisory, advisoryBefore); + } else { + // Actual current own policy is retained; this is the backward-compatible + // absence case, not a fabricated positive mode or policy. + assert.equal( + adapters.modelSetupAdapterAddUnavailable(adapters.modelSetupAdapterChain(graph, root.id), metadata), + null, + ); + } + assert.deepEqual(graph, before); + }); +}); +test('present invalid or foreign execution modes never fall back and foreign owner contracts cannot supply a mode', async (t) => { + for (const selection of editPolicySelections) { + const { graph, root } = cases.get(selection.id); + for (const mode of [ + undefined, + null, + false, + 1, + {}, + [], + '', + 'inpaint', + 'audio_generation', + 'edit-image', + 'edit_image\n', + ]) + await t.test(`${selection.id}/${String(mode)}`, () => { + const before = structuredClone(graph); + assert.throws(() => add(graph, root, editAuthorityMode(selection, mode)), /policy|LoRA|profile/i); + assert.deepEqual(graph, before); + }); + for (const field of ['pipelineClass', 'task', 'nodeKey']) + await t.test(`${selection.id}/foreign ${field}`, () => { + const metadata = structuredClone(authority); + const owner = currentEditOwnerContract(selection, metadata); + owner[field] = + field === 'nodeKey' ? 'modules.Audio.LoadPipeline' : field === 'task' ? 'inpaint' : 'ForeignPipeline'; + const before = structuredClone(graph); + assert.throws(() => add(graph, root, metadata), /policy|LoRA|profile|capabilities/i); + assert.deepEqual(graph, before); + }); + } +}); + +test('six actual staged image starters keep all three owned consumers through adapter Add, Move, Remove and persisted API export', async (t) => { + const exported = (graph) => + flowStore.getState().exportGraph('staged-chain-contract', undefined, { sourceGraph: graph, randomizeSeeds: false }); + for (const id of integratedImageStageIds) + await t.test(id, () => { + const { graph, root } = cases.get(id), + before = structuredClone(graph), + original = exported(graph); + const initial = adapters.modelSetupAdapterChain(graph, root.id); + assert.equal(initial.tail.length, 3); + assert.equal(adapters.modelSetupAdapterAddUnavailable(initial, authority), null); + assert.equal(adapters.modelSetupAdapterEditUnavailable(initial, authority), null); + const one = add(graph, root, authority, { scale: '0.8' }), + two = add(one, root, authority, { scale: '0.35' }); + const current = adapters.modelSetupAdapterChain(two, root.id); + assert.equal(current.adapters.length, 2); + const moved = adapters.planModelSetupAdapterEdit( + two, + root.id, + { kind: 'move', nodeId: current.adapters[1].id, offset: -1 }, + authority, + ); + const saved = JSON.parse(JSON.stringify(moved)); + const state = adapters.modelSetupAdapterChain(saved, root.id); + assert.deepEqual( + state.adapters.map((node) => node.data.params.scale.value), + ['0.35', '0.8'], + ); + const api = exported(saved), + ownerId = Object.keys(api.nodes).find((nodeId) => api.nodes[nodeId].action === 'LoadPipeline'); + const finalId = Object.keys(api.nodes).find( + (nodeId) => api.nodes[nodeId].action === 'LoadAdapter' && api.nodes[nodeId].params.scale.value === '0.8', + ); + assert.ok(ownerId && finalId); + for (const action of ['EncodeInputs', 'Denoise', 'DecodeLatents']) { + const stage = Object.values(api.nodes).find((node) => node.action === action); + assert.equal(stage.params.pipeline.sourceId, finalId); + assert.equal(stage.params.pipeline.sourceKey, 'output'); + } + const denoiseId = Object.keys(api.nodes).find((nodeId) => api.nodes[nodeId].action === 'Denoise'); + const decoder = Object.values(api.nodes).find((node) => node.action === 'DecodeLatents'); + for (const [field, sourceKey] of [ + ['latents', 'latents_out'], + ['latent_binding', 'latent_binding'], + ['width', 'width_out'], + ['height', 'height_out'], + ]) { + assert.equal(decoder.params[field].sourceId, denoiseId); + assert.equal(decoder.params[field].sourceKey, sourceKey); + } + const visible = saved.nodes.filter((node) => !node.parentId && !node.data.blockProjectionOwnerId); + assert.equal(visible.length, id.includes('fill') ? 6 : 5); + for (const label of ['Model Setup', 'Encode Inputs', 'Denoise', 'Image Output']) + assert.equal(visible.filter((node) => node.data.label === label).length, 1); + const firstRemoved = adapters.planModelSetupAdapterEdit(saved, root.id, { + kind: 'remove', + nodeId: state.adapters[0].id, + }); + const last = adapters.modelSetupAdapterChain(firstRemoved, root.id).adapters[0]; + const restored = adapters.planModelSetupAdapterEdit(firstRemoved, root.id, { kind: 'remove', nodeId: last.id }); + assert.deepEqual(exported(restored), original); + assert.deepEqual(graph, before); + }); +}); + +test('staged image adapter authoring refuses malformed geometry and noncurrent stage authority without mutating the graph', async (t) => { + for (const id of integratedImageStageIds) + await t.test(id, () => { + const { graph, root } = cases.get(id), + before = structuredClone(graph); + const unpacked = groups.unpackVisualOperationGroups(graph); + const decoder = unpacked.graph.nodes.find((node) => node.data.action === 'DecodeLatents'); + for (const field of ['width', 'height', 'latent_binding']) { + const missing = structuredClone(unpacked.graph); + missing.edges = missing.edges.filter((edge) => !(edge.target === decoder.id && edge.targetHandle === field)); + assert.throws(() => add(groups.restoreVisualOperationGroups(missing, unpacked), root)); + const competing = structuredClone(unpacked.graph); + const edge = competing.edges.find((edge) => edge.target === decoder.id && edge.targetHandle === field); + competing.edges.push({ ...edge, id: `competing-${field}` }); + assert.throws(() => add(groups.restoreVisualOperationGroups(competing, unpacked), root)); + } + const operation = decoder.data.operationAuthoring.operation; + for (const kind of ['missing', 'duplicate', 'stale']) { + const metadata = structuredClone(authority); + const index = metadata.operationContracts.findIndex( + (item) => + item.pipelineClass === operation.pipelineClass && + item.task === operation.task && + item.operationId === operation.operationId, + ); + assert.ok(index >= 0); + if (kind === 'missing') metadata.operationContracts.splice(index, 1); + else if (kind === 'duplicate') + metadata.operationContracts.push(structuredClone(metadata.operationContracts[index])); + else + metadata.operationContracts[index].binding = { + ...metadata.operationContracts[index].binding, + values: { ...metadata.operationContracts[index].binding?.values, seed: 7 }, + }; + assert.throws(() => add(graph, root, metadata)); + } + assert.deepEqual(graph, before); + }); +}); + +const conditionalAdapterCases = [ + ['cosmos3_super_text_to_image', 'cosmos3-super-text-to-image:official-modular-workflow'], + ['flux_redux_edit', 'flux-redux:direct'], + ['flux_redux_multi_reference', 'flux-redux:direct'], +]; +const conditionalAdapterProfile = (id) => { + const found = authority.studioModelCapabilities + .flatMap((item) => item.executionProfiles ?? []) + .filter((p) => p.id === id); + assert.equal(found.length, 1, 'Use one exact currently published selected profile.'); + return found[0]; +}; + +test('required adapter control policy validates exact transport context and bounded own scalar grammar', () => { + const profile = selectedFluxProfile(); + const parse = (policy, context = profile) => + runtimeProfiles.parseImageAdapterAuthoringPolicy(policy, profile.modes, profile.repository_revisions, context); + assert.deepEqual(parse(profile.adapterAuthoring), profile.adapterAuthoring); + assert.equal(Object.hasOwn(parse(profile.adapterAuthoring), 'requiredControls'), false); + // These malformed maps are parser specimens, never installed as authoring grants. + const specimen = { offload_mode: 'none', auto_offload: false, quant_config: null }; + assert.deepEqual(parse({ ...profile.adapterAuthoring, requiredControls: specimen }).requiredControls, specimen); + for (const value of [ + {}, + null, + undefined, + [], + { offload_mode: 0 }, + { offload_mode: NaN }, + { offload_mode: {} }, + { offload_mode: '' }, + { offload_mode: ' none' }, + { offload_mode: 'none ' }, + { offload_mode: 'a'.repeat(129) }, + { ['a'.repeat(65)]: null }, + { '1bad': null }, + { 'offload-mode': null }, + { Offload: null }, + { constructor: null }, + { prototype: null }, + Object.fromEntries(Array.from({ length: 33 }, (_, i) => [`field_${i}`, null])), + Object.assign(Object.create({ hidden: null }), specimen), + { ...specimen, [Symbol('extra')]: null }, + Object.defineProperty({}, 'offload_mode', { value: 'none' }), + ]) + assert.throws(() => parse({ ...profile.adapterAuthoring, requiredControls: value })); + for (const control of ['\n', '\r', '\r\n', '\u0000', '\u001f', '\u007f', '\u009f', '\u2028', '\u2029']) + assert.throws(() => parse({ ...profile.adapterAuthoring, requiredControls: { offload_mode: `none${control}` } })); + let getterReads = 0; + const accessor = Object.defineProperty({}, 'offload_mode', { + enumerable: true, + get() { + getterReads++; + return 'none'; + }, + }); + assert.throws(() => parse({ ...profile.adapterAuthoring, requiredControls: accessor })); + assert.equal(getterReads, 0); + assert.throws(() => parse(Object.assign(Object.create({ requiredControls: specimen }), profile.adapterAuthoring))); + for (const context of [ + undefined, + null, + {}, + Object.create(profile), + { ...profile, loader_action: 'LoadPipeline' }, + { ...profile, execution_path: 'direct-diffusers-image' }, + ]) + assert.throws(() => + runtimeProfiles.parseImageAdapterAuthoringPolicy( + profile.adapterAuthoring, + profile.modes, + profile.repository_revisions, + context, + ), + ); + for (const [, profileId] of conditionalAdapterCases) { + const selected = conditionalAdapterProfile(profileId); + assert.ok(selected.adapterAuthoring?.requiredControls, 'Require actual backend publication, not supportsLora.'); + assert.deepEqual( + runtimeProfiles.parseImageAdapterAuthoringPolicy( + selected.adapterAuthoring, + selected.modes, + selected.repository_revisions, + selected, + ), + selected.adapterAuthoring, + ); + const foreign = { ...selected, loader_module: 'modules.Foreign' }; + assert.throws(() => + runtimeProfiles.parseImageAdapterAuthoringPolicy( + selected.adapterAuthoring, + selected.modes, + selected.repository_revisions, + foreign, + ), + ); + } +}); + +test('actual conditional adapter policies bind literal optional inputs and pure recipe precedence before editing', async (t) => { + for (const [id, profileId] of conditionalAdapterCases) + await t.test(id, () => { + const { graph, root } = cases.get(id), + before = structuredClone(graph); + const chain = adapters.modelSetupAdapterChain(graph, root.id); + const profile = conditionalAdapterProfile(profileId); + const controls = profile.adapterAuthoring?.requiredControls; + assert.ok(controls, 'The selected current producer must declare the controls.'); + assert.equal(adapters.modelSetupAdapterAddUnavailable(chain, authority), null); + const deny = (mutate) => { + const changed = structuredClone(chain); + mutate(changed); + assert.notEqual(adapters.modelSetupAdapterAddUnavailable(changed, authority), null); + assert.notEqual(adapters.modelSetupAdapterEditUnavailable(changed, authority), null); + }; + for (const [name, expected] of Object.entries(controls)) { + if (!(name === 'auto_offload' && !chain.native)) + deny((state) => { + state.owner.data.params[name].value = + expected === null ? 'foreign' : typeof expected === 'boolean' ? !expected : 'foreign'; + }); + deny((state) => { + delete state.owner.data.params[name]; + }); + deny((state) => { + state.unpacked.graph.edges.push({ + id: `connected-${name}`, + source: state.owner.id, + sourceHandle: 'pipeline', + target: state.owner.id, + targetHandle: name, + }); + }); + if (expected !== null) + deny((state) => { + state.owner.data.params[name].value = null; + }); + } + const optional = structuredClone(chain); + for (const [name, expected] of Object.entries(controls)) + if (expected === null) { + delete optional.owner.data.params[name].value; + delete optional.owner.data.params[name].default; + } + assert.equal(adapters.modelSetupAdapterAddUnavailable(optional, authority), null); + if (chain.native) { + const defaulted = structuredClone(chain); + assert.equal(defaulted.owner.data.params.weight_loading_mode.default, 'cpu'); + delete defaulted.owner.data.params.weight_loading_mode.value; + assert.equal(adapters.modelSetupAdapterAddUnavailable(defaulted, authority), null); + deny((state) => { + assert.equal(state.owner.data.params.trust_remote_code.default, undefined); + delete state.owner.data.params.trust_remote_code.value; + }); + } else { + const recipe = (state) => + state.unpacked.graph.nodes.find( + (n) => n.data.module === 'modules.DiffusersRuntime' && n.data.action === 'DiffusersExecutionRecipe', + ); + assert.ok(recipe(chain)); + const overridden = structuredClone(chain); + overridden.owner.data.params.offload_mode.value = 'group_cpu'; + overridden.owner.data.params.auto_offload.value = true; + assert.equal(recipe(overridden).data.params.offload_mode.value, 'none'); + assert.equal(adapters.modelSetupAdapterAddUnavailable(overridden, authority), null); + deny((state) => { + recipe(state).data.params.offload_mode.value = 'group_cpu'; + }); + deny((state) => { + state.owner.data.params.device_map.value = 'balanced'; + }); + deny((state) => { + recipe(state).data.params.device_map.value = 'balanced'; + }); + deny((state) => { + recipe(state).data.module = 'custom.Unreviewed'; + }); + deny((state) => { + state.unpacked.graph.edges.push({ + id: 'computed-recipe', + source: state.owner.id, + sourceHandle: 'pipeline', + target: recipe(state).id, + targetHandle: 'offload_mode', + }); + }); + deny((state) => { + const edge = state.unpacked.graph.edges.find( + (e) => e.target === state.owner.id && e.targetHandle === 'execution_recipe', + ); + state.unpacked.graph.edges.push({ ...edge, id: 'duplicate-recipe' }); + }); + deny((state) => { + state.unpacked.graph.edges = state.unpacked.graph.edges.filter( + (e) => !(e.target === state.owner.id && e.targetHandle === 'execution_recipe'), + ); + state.owner.data.params.execution_recipe.value = { offload_mode: 'none', device_map: 'none' }; + }); + const quantizer = (state) => + state.unpacked.graph.nodes.find( + (n) => n.data.module === 'modules.DiffusersRuntime' && n.data.action === 'PipelineQuantizationConfigV2', + ); + assert.ok(quantizer(chain)); + deny((state) => { + quantizer(state).data.params.backend.value = 'bnb_4bit'; + }); + deny((state) => { + quantizer(state).data.params.component_overrides.value = '{"transformer":{}}'; + }); + deny((state) => { + state.unpacked.graph.edges.push({ + id: 'computed-quant', + source: state.owner.id, + sourceHandle: 'pipeline', + target: quantizer(state).id, + targetHandle: 'backend', + }); + }); + } + assert.deepEqual(graph, before); + }); +}); + +test('conditional Add2 Move and persistence preserve exports while unsafe controls allow Remove recovery only', async (t) => { + const api = (graph) => + flowStore.getState().exportGraph('conditional-metadata', undefined, { sourceGraph: graph, randomizeSeeds: false }); + for (const [id] of conditionalAdapterCases) + await t.test(id, () => { + const { graph, root } = cases.get(id), + before = structuredClone(graph); + const first = add(graph, root, authority, { scale: '0.8' }); + const second = add(first, root, authority, { scale: '0.35' }); + const chain = adapters.modelSetupAdapterChain(second, root.id); + const moved = adapters.planModelSetupAdapterEdit( + second, + root.id, + { kind: 'move', nodeId: chain.adapters[1].id, offset: -1 }, + authority, + ); + const restored = JSON.parse(JSON.stringify(moved)); + assert.deepEqual( + adapters.modelSetupAdapterChain(restored, root.id).adapters.map((n) => n.id), + [chain.adapters[1].id, chain.adapters[0].id], + ); + const unpacked = groups.unpackVisualOperationGroups(restored), + flat = unpacked.graph; + if (chain.native) flat.nodes.find((n) => n.id === chain.owner.id).data.params.offload_mode.value = 'group_cpu'; + else + flat.nodes.find( + (n) => n.data.module === 'modules.DiffusersRuntime' && n.data.action === 'DiffusersExecutionRecipe', + ).data.params.offload_mode.value = 'group_cpu'; + const unsafe = groups.restoreVisualOperationGroups(flat, unpacked), + unsafeBefore = structuredClone(unsafe); + assert.throws(() => add(unsafe, root)); + assert.throws(() => + adapters.planModelSetupAdapterEdit( + unsafe, + root.id, + { kind: 'move', nodeId: chain.adapters[0].id, offset: -1 }, + authority, + ), + ); + assert.deepEqual(unsafe, unsafeBefore); + const removedUnsafe = adapters.planModelSetupAdapterEdit(unsafe, root.id, { + kind: 'remove', + nodeId: chain.adapters[0].id, + }); + assert.equal(adapters.modelSetupAdapterChain(removedUnsafe, root.id).adapters.length, 1); + let removed = restored; + for (const node of chain.adapters) + removed = adapters.planModelSetupAdapterEdit(removed, root.id, { kind: 'remove', nodeId: node.id }); + assert.deepEqual(api(removed), api(graph)); + assert.deepEqual(graph, before); + }); +}); + +test('native adapter policy accepts fresh declared workflow selectors and the unchanged legacy blank representation', async (t) => { + for (const id of ['flux_schnell_text_to_image', 'flux_kontext_edit', 'flux2_klein_edit']) { + const { graph, root } = cases.get(id); + const chain = adapters.modelSetupAdapterChain(graph, root.id); + const operation = chain.owner.data.operationAuthoring.operation; + assert.equal(chain.native, true); + assert.equal(typeof operation.workflowId, 'string'); + assert.ok(operation.workflowId.length > 0); + assert.equal( + chain.owner.data.params.workflow_id.value, + operation.workflowId, + 'The genuine current backend starter must author its exact resolved selector.', + ); + for (const legacy of [false, true]) + await t.test(`${id}/${legacy ? 'legacy blank' : 'current declared'}`, () => { + const unpacked = groups.unpackVisualOperationGroups(graph); + if (legacy) unpacked.graph.nodes.find((node) => node.id === chain.owner.id).data.params.workflow_id.value = ''; + const candidate = groups.restoreVisualOperationGroups(unpacked.graph, unpacked); + const before = structuredClone(candidate); + assert.equal( + adapters.modelSetupAdapterAddUnavailable(adapters.modelSetupAdapterChain(candidate, root.id), authority), + null, + ); + assert.deepEqual(candidate, before); + }); + } +}); + +test('native adapter workflow authority keeps explicit bindings ahead of declarations and never adopts unknown values', async (t) => { + const { graph, root } = cases.get('flux_schnell_text_to_image'); + const chain = adapters.modelSetupAdapterChain(graph, root.id); + const operation = chain.owner.data.operationAuthoring.operation; + const metadataWithBinding = (workflow) => { + const metadata = structuredClone(authority); + const current = metadata.operationContracts.find( + (item) => + item.operationId === operation.operationId && + item.pipelineClass === operation.pipelineClass && + item.task === operation.task && + item.nodeKey === operation.nodeKey, + ); + assert.ok(current); + current.binding = { ...current.binding, values: { ...current.binding?.values, workflow_id: workflow } }; + return metadata; + }; + await t.test('exact explicit binding', () => { + assert.equal(adapters.modelSetupAdapterAddUnavailable(chain, metadataWithBinding(operation.workflowId)), null); + }); + for (const value of ['image_conditioned', 'unknown_workflow', null]) + await t.test(`mismatched explicit binding ${value}`, () => { + assert.match(adapters.modelSetupAdapterAddUnavailable(chain, metadataWithBinding(value)), /policy/); + }); + const unpacked = groups.unpackVisualOperationGroups(graph); + unpacked.graph.nodes.find((node) => node.id === chain.owner.id).data.params.workflow_id.value = ''; + const legacy = groups.restoreVisualOperationGroups(unpacked.graph, unpacked); + assert.match( + adapters.modelSetupAdapterAddUnavailable( + adapters.modelSetupAdapterChain(legacy, root.id), + metadataWithBinding(operation.workflowId), + ), + /policy/, + ); + for (const workflow of ['image_conditioned', 'unknown_workflow']) + await t.test(`wrong authored selector ${workflow}`, () => { + const unpacked = groups.unpackVisualOperationGroups(graph); + unpacked.graph.nodes.find((node) => node.id === chain.owner.id).data.params.workflow_id.value = workflow; + const changed = groups.restoreVisualOperationGroups(unpacked.graph, unpacked); + const before = structuredClone(changed); + assert.match( + adapters.modelSetupAdapterAddUnavailable(adapters.modelSetupAdapterChain(changed, root.id), authority), + /policy/, + ); + assert.deepEqual(changed, before); + }); +}); diff --git a/scripts/modiff-template.test.mjs b/scripts/modiff-template.test.mjs index 90625726..a333603d 100644 --- a/scripts/modiff-template.test.mjs +++ b/scripts/modiff-template.test.mjs @@ -6648,6 +6648,40 @@ test('canonical workflows reject retired or mutable Hub attention backends', () assert.equal(workflowNodeAttentionBackendError({ data: { params: {} } }), null); }); +test('canonical workflows allow only portable native math attention on CPU', () => { + const node = (backend, device, options = []) => ({ + data: { + params: { + attention_backend: { value: backend, options }, + device: { value: device }, + }, + }, + }); + for (const device of ['cpu', 'cpu:0']) { + for (const backend of ['auto', 'inherit', 'native', '_native_math']) + assert.equal(workflowNodeAttentionBackendError(node(backend, device)), null, `${backend} on ${device}`); + for (const backend of [ + '_native_flash', + '_native_efficient', + '_native_cudnn', + '_native_future', + '_native_math_extra', + ['_native_math'], + ]) + assert.match(workflowNodeAttentionBackendError(node(backend, device)), /selects accelerator attention/); + for (const backend of ['aiter', 'aiter_fa2_hub']) { + assert.match(workflowNodeAttentionBackendError(node(backend, device)), /unsupported attention/); + assert.match( + workflowNodeAttentionBackendError(node('_native_math', device, ['auto', { value: backend }])), + /unsupported attention/, + ); + } + } + for (const backend of ['_native_math', '_native_flash', '_native_efficient', '_native_cudnn']) + assert.equal(workflowNodeAttentionBackendError(node(backend, 'cuda:0')), null); + assert.match(workflowNodeAttentionBackendError(node('auto', 'cuda:0', { aiter: 'Retired' })), /aiter/); +}); + test('Hub-backed adapter member filenames are not treated as standalone local models', () => { const references = runReadinessModule.collectNodeModelReferences({ id: 'audio-lora', @@ -7455,3 +7489,46 @@ test('template creation waits for initial capabilities and cannot continue into flowStore.setState(previousFlow); } }); + +test('legacy template provenance still recovers its original role-marked managed graph', () => { + const graph = canonicalModularTextToImageGraph(); + const roles = ['models', 'prompt', 'denoise', 'decode', 'preview']; + graph.nodes = graph.nodes.map((node, index) => ({ + ...node, + data: { ...node.data, studioRole: roles[index] }, + })); + const studio = studioStoreModule.useStudioStore; + const before = studio.getState(); + const beforeFlow = flowStoreModule.useFlowStore.getState(); + try { + studio.getState().mergeBackendWorkflow({ + id: 'legacy-template-role-recovery', + title: 'Saved Z template', + source: 'template', + sourceLabel: 'z_image_quick_concept', + revision: 1, + snapshot: { ...graph, studioForm: profilesModule.DEFAULT_STUDIO_FORM, selectedMode: 'text_to_image' }, + }); + const saved = studio.getState().workflowTabs.find((tab) => tab.id === 'legacy-template-role-recovery'); + assert.equal(saved.source, 'template'); + assert.equal(saved.snapshot.activeTemplateId, 'z_image_quick_concept'); + assert.deepEqual( + saved.snapshot.studioGraphBinding.managedNodeIds, + graph.nodes.map((node) => node.id), + ); + assert.deepEqual( + saved.snapshot.studioGraphBinding.managedEdgeIds, + graph.edges.map((edge) => edge.id), + ); + assert.deepEqual( + saved.snapshot.nodes.map((node) => node.position), + graph.nodes.map((node) => node.position), + ); + assert.deepEqual(saved.snapshot.edges, graph.edges); + assert.deepEqual(saved.snapshot.viewport, graph.viewport); + assert.ok(saved.snapshot.nodes.every((node) => node.data.studioOwned)); + } finally { + studio.setState(before); + flowStoreModule.useFlowStore.setState(beforeFlow); + } +}); diff --git a/scripts/modular-hierarchy-v2.test.mjs b/scripts/modular-hierarchy-v2.test.mjs index 853eb732..cffaaded 100644 --- a/scripts/modular-hierarchy-v2.test.mjs +++ b/scripts/modular-hierarchy-v2.test.mjs @@ -127,8 +127,8 @@ test('the Modular Diffusers catalog exposes every exact block once and retains a conditional.pipelines.flatMap((pipeline) => pipeline.placements.map(({ blockDefinitionId }) => blockDefinitionId)), ); - assert.equal(expectedPlacements, 1051); - assert.equal(expectedDefinitions.size, 598); + assert.equal(expectedPlacements, 1105); + assert.equal(expectedDefinitions.size, 626); assert.equal(section.entries.length, expectedDefinitions.size); assert.equal(new Set(section.entries.map(({ id }) => id)).size, expectedDefinitions.size); assert.equal( @@ -162,13 +162,78 @@ after(async () => { await server?.close(); }); -test('all 94 reviewed workflows map every selected step into the exact unpruned hierarchy', () => { +test('the newly reviewed Flux3 workflows retain exact active branches and loop members', () => { + const conditional = conditionalModule.parseHuggingFaceModularConditionalSnapshot( + JSON.parse(readFileSync(path.join(BACKEND_DATA, 'modular-conditional-contracts.json'), 'utf8')), + ); + const selected = JSON.parse(readFileSync(path.join(BACKEND_DATA, 'modular-block-contracts.json'), 'utf8')); + assert.equal(conditional.diffusersRevision, '7ecb1e1b4fe500be7fb7381a7bb79a24d7fa3941'); + const blocks = new Map(conditional.blockDefinitions.map((block) => [block.id, block])); + for (const pipelineClass of ['Flux3ModularPipeline', 'Flux3DistilledModularPipeline']) { + const pipeline = conditional.pipelines.find((item) => item.pipelineClass === pipelineClass); + assert.ok(pipeline); + assert.equal(pipeline.placements.length, 27); + const workflows = selected.workflows.filter((item) => item.pipelineClass === pipelineClass); + assert.deepEqual(workflows.map(({ workflowId }) => workflowId).sort(), ['image_conditioned', 'text2image']); + for (const workflow of workflows) { + const imageConditioned = workflow.workflowId === 'image_conditioned'; + const branch = workflow.workflowId; + const hierarchy = reviewedGraphModule.reviewedWorkflowHierarchyV2(conditional, { + provider: 'diffusers', + libraryRevision: selected.diffusersRevision, + pipelineClass, + workflowId: workflow.workflowId, + blockPlacements: workflow.placements, + }); + assert.ok(hierarchy); + const denoiseSteps = [ + 'input', + ...(imageConditioned ? ['cond_input'] : []), + 'prepare_latents', + ...(imageConditioned ? ['prepare_image_cond_latents'] : []), + 'set_timesteps', + 'prepare_rope_inputs', + 'denoise', + 'denoise/denoiser', + 'denoise/after_denoiser', + 'after_denoise', + ]; + const active = [...hierarchy.fullPlacementBySelectedPath.values()]; + assert.deepEqual( + active.map(({ path }) => path.join('/')), + [ + 'text_encoder', + ...(imageConditioned + ? ['vae_encoder/image_conditioning/preprocess', 'vae_encoder/image_conditioning/encode'] + : []), + ...denoiseSteps.map((step) => `denoise/${branch}/${step}`), + 'decode', + ], + ); + assert.equal(active.length, imageConditioned ? 14 : 10); + assert.deepEqual( + hierarchy.structuralPlacements.map(({ placement }) => placement.path.join('/')), + [ + ...(imageConditioned ? ['vae_encoder', 'vae_encoder/image_conditioning'] : []), + 'denoise', + `denoise/${branch}`, + ], + ); + const loop = active.find(({ path }) => path.join('/') === `denoise/${branch}/denoise`); + assert.equal(blocks.get(loop.blockDefinitionId).kind, 'loop'); + const inactive = imageConditioned ? 'text2image' : 'image_conditioned'; + assert.ok(active.every(({ path }) => path[0] !== 'denoise' || path[1] !== inactive)); + } + } +}); + +test('all 98 reviewed workflows map every selected step into the exact unpruned hierarchy', () => { const conditional = conditionalModule.parseHuggingFaceModularConditionalSnapshot( JSON.parse(readFileSync(path.join(BACKEND_DATA, 'modular-conditional-contracts.json'), 'utf8')), ); const selected = JSON.parse(readFileSync(path.join(BACKEND_DATA, 'modular-block-contracts.json'), 'utf8')); assert.equal(selected.diffusersRevision, conditional.diffusersRevision); - assert.equal(selected.workflows.length, 94); + assert.equal(selected.workflows.length, 98); let maximumDepth = 0; let structuralPlacements = 0; @@ -215,7 +280,7 @@ test('all 94 reviewed workflows map every selected step into the exact unpruned assert.ok(structuralPlacements > 400, 'the audit unexpectedly flattened away reviewed containers'); }); -test('all 94 reviewed workflows compile to one V2 graph with progressively projected nested containers', () => { +test('all 98 reviewed workflows compile to one V2 graph with progressively projected nested containers', () => { const conditional = conditionalModule.parseHuggingFaceModularConditionalSnapshot( JSON.parse(readFileSync(path.join(BACKEND_DATA, 'modular-conditional-contracts.json'), 'utf8')), ); @@ -688,10 +753,10 @@ test('all 94 reviewed workflows compile to one V2 graph with progressively proje ordinaryNodeNestedParent: utilityParent ?? null, }); } - assert.equal(definitions.length, 94); - assert.equal(nodeCount, 1796); + assert.equal(definitions.length, 98); + assert.equal(nodeCount, 1860); assert.equal(maximumDepth, 5); - assert.equal(parameterLocalityChecks, 94); + assert.equal(parameterLocalityChecks, 98); assert.ok(subtreeSaveChecks > 1400); if (process.env.MODIFF_HIERARCHY_AUDIT_OUTPUT) { writeFileSync( diff --git a/scripts/node-store-requests.test.mjs b/scripts/node-store-requests.test.mjs index 4965d342..df3bd496 100644 --- a/scripts/node-store-requests.test.mjs +++ b/scripts/node-store-requests.test.mjs @@ -202,6 +202,52 @@ function fluxExecutionProfile( }; } +test('execution-profile repository revisions are bounded, immutable and owned by that exact profile', () => { + const profile = { + ...fluxExecutionProfile(), + fallback_repo: 'review/fallback', + compatible_repos: ['review/compatible'], + }; + const parse = (pairs) => + optionalRuntimesModule.parseOptionalRuntimeExecutionProfiles( + [{ ...structuredClone(profile), ...(pairs === undefined ? {} : { repository_revisions: pairs }) }], + undefined, + (mode) => mode === 'text_to_image', + )[0]; + const valid = [ + { repo: profile.default_repo, revision: 'a'.repeat(40) }, + { repo: profile.fallback_repo, revision: 'b'.repeat(40) }, + { repo: profile.compatible_repos[0], revision: 'a'.repeat(40) }, + ]; + assert.deepEqual(parse(valid).repository_revisions, valid); + assert.deepEqual( + parse([valid[1]]).repository_revisions, + [valid[1]], + 'A lowercase declared repository remains exact.', + ); + assert.equal( + parse(undefined).repository_revisions, + undefined, + 'Older metadata remains parseable without granting Add.', + ); + assert.deepEqual(parse([]).repository_revisions, []); + for (const pairs of [ + null, + {}, + [null], + [{ ...valid[0], extra: true }], + [{ repo: 'unrelated/repository', revision: 'a'.repeat(40) }], + [{ repo: 'Review/Fallback', revision: valid[1].revision }], + [{ repo: profile.default_repo, revision: 'main' }], + [{ repo: profile.default_repo, revision: 'A'.repeat(40) }], + [{ repo: profile.default_repo, revision: 123 }], + [valid[0], valid[0]], + [valid[0], { ...valid[0], revision: 'b'.repeat(40) }], + Array.from({ length: 33 }, () => valid[0]), + ]) + assert.throws(() => parse(pairs), /runtime contract/i); +}); + function fluxExecutionSpec(overrides = {}) { const semantic = { schemaVersion: 1, diff --git a/scripts/operation-authoring-recipes.test.mjs b/scripts/operation-authoring-recipes.test.mjs new file mode 100644 index 00000000..116649ca --- /dev/null +++ b/scripts/operation-authoring-recipes.test.mjs @@ -0,0 +1,397 @@ +import assert from 'node:assert/strict'; +import { execFileSync } from 'node:child_process'; +import path from 'node:path'; +import { after, before, test } from 'node:test'; +import { createServer } from 'vite'; + +let server, requests, contracts, fixture, hashes; +const selection = { + pipelineClass: 'ZImageModularPipeline', + task: 'text_to_image', + executionProfileId: 'z-image:modular', + authoringRecipeId: 'retained-z-image-text-to-image:v1', + bindingSpec: { modelType: 'ZImageModularPipeline', mode: 'modular_text_to_image' }, +}; +const auxiliarySelections = [ + { + id: 'qwen_control_image_layout', + selection: { + pipelineClass: 'QwenImageModularPipeline', + task: 'control_image', + executionProfileId: 'qwen-image:modular', + authoringRecipeId: 'generic-native-image:v1', + bindingSpec: { modelType: 'QwenImageModularPipeline', mode: 'control_image' }, + }, + }, + ...['control_image', 'control_edit_image', 'control_inpaint'].map((mode) => ({ + id: `sdxl-authoring-${mode}`, + selection: { + pipelineClass: 'StableDiffusionXLModularPipeline', + task: mode, + executionProfileId: 'sdxl-base:modular', + authoringRecipeId: 'generic-native-image:v1', + bindingSpec: { modelType: 'StableDiffusionXLModularPipeline', mode }, + }, + })), +]; +before(async () => { + globalThis.window = { location: { origin: 'http://127.0.0.1:5191' } }; + server = await createServer({ + configFile: false, + logLevel: 'silent', + optimizeDeps: { entries: [], noDiscovery: true }, + server: { middlewareMode: true, watch: null }, + appType: 'custom', + }); + requests = await server.ssrLoadModule('/src/workflow/operationStarterRequest.ts'); + hashes = await server.ssrLoadModule('/src/studio/stableHash.ts'); + const operations = await server.ssrLoadModule('/src/workflow/operationContracts.ts'); + const backend = path.resolve('../MoDiff'); + const python = process.env.MODIFF_BACKEND_PYTHON || path.join(backend, '.venv', 'Scripts/python.exe'); + fixture = JSON.parse( + execFileSync(python, [path.resolve('scripts/template-operation-fixtures.py')], { + cwd: backend, + encoding: 'utf8', + maxBuffer: 64 * 1024 * 1024, + input: JSON.stringify([{ id: 'z_image_quick_concept', selection }, ...auxiliarySelections]), + }), + ); + contracts = operations.parseOperationContracts( + fixture.publicPayload.operationContracts, + fixture.publicPayload.operationContractSchemaVersion, + ); +}); + +test('protects auxiliary model identity while keeping declared Qwen and SDXL Control bindings', async (t) => { + const { STUDIO_TEMPLATES } = await server.ssrLoadModule('/src/studio/templates.ts'); + const { DEFAULT_STUDIO_FORM } = await server.ssrLoadModule('/src/studio/modelProfiles.ts'); + const { getTemplateLockedSettings } = await server.ssrLoadModule('/src/studio/templateExactness.ts'); + const { createTemplateOperationGraph } = await server.ssrLoadModule('/src/studio/templateOperationWorkflow.ts'); + const { resolveStudioExecutionSpecValues } = await server.ssrLoadModule('/src/studio/executionSpecValues.ts'); + const groups = await server.ssrLoadModule('/src/workflow/visualOperationGroups.ts'); + for (const item of auxiliarySelections) + await t.test(item.id, () => { + const row = fixture.recipes.find((row) => row.id === item.id); + const template = structuredClone(STUDIO_TEMPLATES.find((item) => item.id === 'qwen_control_image_layout')); + template.id = item.id; + template.modelType = item.selection.bindingSpec.modelType; + template.mode = item.selection.bindingSpec.mode; + template.executionSelection = item.selection; + delete template.modelArtifact; + delete template.example.modelRevision; + if (item.id !== 'qwen_control_image_layout') delete template.example; + const device = row.starter.nodes.find((node) => node.operation.decomposition === 'loader').node.params.device; + const form = { + ...DEFAULT_STUDIO_FORM, + ...(item.id === 'qwen_control_image_layout' ? getTemplateLockedSettings(template) : {}), + modelType: template.modelType, + mode: template.mode, + device: device.value ?? device.default, + autoOffload: false, + offloadMode: 'none', + prompt: 'Creative text must never replace a model identity', + negativePrompt: 'Creative exclusions must never replace a variant', + controlImage: 'control.png', + referenceImages: ['source.png'], + maskImage: 'mask.png', + }; + const materialize = (raw) => { + const starter = requests.parseOperationStarter( + raw, + item.selection.pipelineClass, + item.selection.task, + contracts, + item.selection, + ); + return groups.unpackVisualOperationGroups( + createTemplateOperationGraph(template, form, starter, fixture.registry, row.spec, row.capability), + ).graph; + }; + const valid = materialize(row.starter); + const owner = valid.nodes.find((node) => node.data.action === 'ModelsLoader'); + const auxiliary = valid.nodes.find((node) => node.data.action === 'AutoModelLoader'); + const expected = resolveStudioExecutionSpecValues(form, row.spec, row.capability, { + defaultModelRevision: owner.data.params.revision.value, + }); + for (const [, field, source] of row.spec.bindings.filter( + ([role, field]) => + role === 'controlnetModel' && ['model_type', 'model_id', 'variant', 'revision'].includes(field), + )) { + const actual = auxiliary.data.params[field].value; + assert.deepEqual( + field === 'model_id' && typeof expected[source] === 'string' ? actual.value : actual, + expected[source], + ); + } + const rehash = (raw) => { + const { contentHash: _hash, ...semantic } = raw.authoring; + raw.authoring.contentHash = `studio-authoring-v1-${hashes.hashString(hashes.stableStringify(semantic))}`; + return raw; + }; + const baseRevisionSource = row.spec.bindings.find( + ([role, field]) => role === 'controlnetModel' && field === 'revision', + )[2]; + for (const [field, source] of [ + ['revision', 'prompt'], + ['variant', 'negativePrompt'], + ['trust_remote_code', 'true'], + ['revision', baseRevisionSource === 'revision' ? 'controlnetRevision' : 'revision'], + ]) { + const changed = structuredClone(row.starter); + changed.authoring.bindings.find(([role, name]) => role === 'controlnetModel' && name === field)[2] = source; + assert.throws(() => materialize(rehash(changed)), /identity/, `${field} must reject ${source}`); + } + const literal = structuredClone(row.starter); + literal.authoring.bindings = literal.authoring.bindings.filter( + ([role, field]) => role !== 'controlnetModel' || field !== 'variant', + ); + literal.authoring.initialValues.push(['controlnetModel', 'variant', 'fp16']); + assert.throws(() => materialize(rehash(literal)), /identity/); + }); +}); +after(async () => server?.close()); + +test('accepts the exact backend-declared fresh recipe and preserves its provenance', () => { + const raw = fixture.recipes[0].starter; + const parsed = requests.parseOperationStarter(raw, selection.pipelineClass, selection.task, contracts, selection); + assert.deepEqual(parsed.authoring, raw.authoring); +}); + +test('rejects unsolicited, mismatched, mutated and unbounded recipe declarations', () => { + const raw = fixture.recipes[0].starter; + assert.throws(() => requests.parseOperationStarter(raw, selection.pipelineClass, selection.task, contracts)); + for (const [index, change] of [ + (recipe) => { + recipe.id = 'other:v1'; + }, + (recipe) => { + recipe.executionProfileIds = ['wrong:profile']; + }, + (recipe) => { + recipe.roles[0][0] = 'invented'; + }, + (recipe) => { + recipe.roles[0][2] = Infinity; + }, + (recipe) => { + recipe.bindings[0][2] = 'arbitraryExpression'; + }, + (recipe) => { + recipe.initialValues[0][2] = { executable: 'code' }; + }, + (recipe) => { + recipe.initialValues.push(recipe.initialValues[0]); + }, + (recipe) => { + recipe.extra = true; + }, + (recipe) => { + recipe.contentHash = 'studio-authoring-v1-deadbeef'; + }, + ].entries()) { + const changed = structuredClone(raw); + change(changed.authoring); + // Structural validation must reject invalid data even when its sender + // recomputes this provenance checksum. It is not a trust signature. + if (index < 8) { + const { contentHash: _hash, ...semantic } = changed.authoring; + changed.authoring.contentHash = `studio-authoring-v1-${hashes.hashString(hashes.stableStringify(semantic))}`; + } + assert.throws(() => + requests.parseOperationStarter(changed, selection.pipelineClass, selection.task, contracts, selection), + ); + } + const absent = structuredClone(raw); + delete absent.authoring; + assert.throws(() => + requests.parseOperationStarter(absent, selection.pipelineClass, selection.task, contracts, selection), + ); + const wrongWorkflow = structuredClone(raw); + wrongWorkflow.workflowId = 'another_workflow'; + assert.throws(() => + requests.parseOperationStarter(wrongWorkflow, selection.pipelineClass, selection.task, contracts, selection), + ); +}); + +test('materializes backend bindings independently of template identity and rejects stale base specifications', async () => { + const storage = new Map(); + globalThis.localStorage = { + getItem: (key) => storage.get(key) ?? null, + setItem: (key, value) => storage.set(key, value), + removeItem: (key) => storage.delete(key), + }; + globalThis.window.localStorage = globalThis.localStorage; + globalThis.window.dispatchEvent = () => true; + const { STUDIO_TEMPLATES } = await server.ssrLoadModule('/src/studio/templates.ts'); + const { DEFAULT_STUDIO_FORM } = await server.ssrLoadModule('/src/studio/modelProfiles.ts'); + const { createTemplateOperationGraph } = await server.ssrLoadModule('/src/studio/templateOperationWorkflow.ts'); + const groups = await server.ssrLoadModule('/src/workflow/visualOperationGroups.ts'); + const template = structuredClone(STUDIO_TEMPLATES.find((item) => item.id === 'z_image_quick_concept')); + template.id = 'future-template-identity'; + template.executionSelection = { ...template.executionSelection, ...selection }; + const row = fixture.recipes[0]; + const starter = requests.parseOperationStarter( + row.starter, + selection.pipelineClass, + selection.task, + contracts, + selection, + ); + const form = { + ...DEFAULT_STUDIO_FORM, + modelType: selection.bindingSpec.modelType, + mode: selection.bindingSpec.mode, + device: 'cpu', + guidanceScale: 5, + }; + const graph = createTemplateOperationGraph(template, form, starter, fixture.registry, row.spec, row.capability); + const flat = groups.unpackVisualOperationGroups(graph).graph; + const owner = flat.nodes.find((node) => node.data.action === 'ModelsLoader'); + const guider = flat.nodes.find((node) => node.data.action === 'Guider'); + assert.equal(owner.data.params.attention_backend.value, 'auto'); + assert.equal(guider.data.params.guidance_scale.value, 5); + assert.equal(guider.data.params.use_original_formulation.value, true); + assert.throws( + () => + createTemplateOperationGraph( + template, + form, + starter, + fixture.registry, + { ...row.spec, contentHash: 'studio-spec-v1-deadbeef' }, + row.capability, + ), + /stale/, + ); + const corrupt = structuredClone(starter); + corrupt.authoring.initialValues.push(['guider', 'guidance_scale', 1000]); + assert.throws( + () => createTemplateOperationGraph(template, form, corrupt, fixture.registry, row.spec, row.capability), + /incompatible/, + ); + for (const [role, field, source] of [ + ['models', 'revision', 'prompt'], + ['guider', 'enabled', 'guidanceScale'], + ['guider', 'guider', 'prompt'], + ['prompt', 'prompt', 'guidanceScale'], + ['guider', 'guider_out', 'prompt'], + ['prompt', '__proto__', 'prompt'], + ['prompt', 'constructor', 'prompt'], + ]) { + const changed = structuredClone(row.starter); + changed.authoring.initialValues = changed.authoring.initialValues.filter(([r, f]) => r !== role || f !== field); + changed.authoring.bindings = changed.authoring.bindings.filter(([r, f]) => r !== role || f !== field); + changed.authoring.bindings.push([role, field, source]); + const { contentHash: _hash, ...semantic } = changed.authoring; + changed.authoring.contentHash = `studio-authoring-v1-${hashes.hashString(hashes.stableStringify(semantic))}`; + const parsed = requests.parseOperationStarter( + changed, + selection.pipelineClass, + selection.task, + contracts, + selection, + ); + assert.throws( + () => createTemplateOperationGraph(template, form, parsed, fixture.registry, row.spec, row.capability), + /identity|incompatible|not declared/, + `must reject ${role}.${field} bound to ${source}`, + ); + } + for (const [role, field, value] of [ + ['prompt', '__proto__', 'unsafe'], + ['prompt', 'constructor', 'unsafe'], + ['guider', 'guidance_scale', '5'], + ['guider', 'enabled', 1], + ]) { + const changed = structuredClone(starter); + changed.authoring.initialValues.push([role, field, value]); + assert.throws( + () => createTemplateOperationGraph(template, form, changed, fixture.registry, row.spec, row.capability), + /incompatible|not declared/, + `must reject ${role}.${field} literal ${value}`, + ); + } + assert.equal(Object.prototype.value, undefined, 'Inherited names must never mutate the parameter prototype.'); + assert.throws( + () => + createTemplateOperationGraph( + template, + { ...form, guidanceScale: 1000 }, + starter, + fixture.registry, + row.spec, + row.capability, + ), + /incompatible/, + ); + + const withVariant = structuredClone(starter); + const variantOwner = withVariant.nodes.find((item) => item.operation.decomposition === 'loader'); + variantOwner.node.params.reviewed_variant = { + type: 'string', + options: ['pinned_variant', 'another_variant'], + value: 'pinned_variant', + }; + variantOwner.operation.binding.values.reviewed_variant = 'pinned_variant'; + withVariant.authoring.bindings.push(['models', 'reviewed_variant', 'modelVariant']); + const preserved = groups.unpackVisualOperationGroups( + createTemplateOperationGraph(template, form, withVariant, fixture.registry, row.spec, row.capability), + ).graph; + assert.equal( + preserved.nodes.find((node) => node.data.action === 'ModelsLoader').data.params.reviewed_variant.value, + 'pinned_variant', + ); + const variantBinding = structuredClone(withVariant); + variantBinding.authoring.bindings.find(([, field]) => field === 'reviewed_variant')[2] = 'prompt'; + assert.throws( + () => createTemplateOperationGraph(template, form, variantBinding, fixture.registry, row.spec, row.capability), + /identity/, + ); + const variantLiteral = structuredClone(withVariant); + variantLiteral.authoring.bindings = variantLiteral.authoring.bindings.filter( + ([, field]) => field !== 'reviewed_variant', + ); + variantLiteral.authoring.initialValues.push(['models', 'reviewed_variant', 'another_variant']); + assert.throws( + () => createTemplateOperationGraph(template, form, variantLiteral, fixture.registry, row.spec, row.capability), + /identity/, + ); + + const nullable = structuredClone(starter); + const nullableGuider = nullable.nodes.find((item) => item.operation.operationId === 'diffusion.guidance'); + nullableGuider.node.params.optional_strength = { type: 'float', default: null }; + nullable.authoring.bindings.push(['guider', 'optional_strength', 'paddingMaskCrop']); + const nullableGraph = groups.unpackVisualOperationGroups( + createTemplateOperationGraph(template, form, nullable, fixture.registry, row.spec, row.capability), + ).graph; + assert.equal( + nullableGraph.nodes.find((node) => node.data.action === 'Guider').data.params.optional_strength.value, + null, + ); + nullableGuider.node.params.optional_strength.required = true; + assert.throws( + () => createTemplateOperationGraph(template, form, nullable, fixture.registry, row.spec, row.capability), + /incompatible/, + ); + + const withLora = structuredClone(template); + withLora.workflowBlocks = ['lora']; + withLora.workflowBlockSettings = { + lora: { + model: { source: 'hub', value: 'org/Adapter', revision: 'a'.repeat(40), sha256: 'b'.repeat(64) }, + scale: 0.7, + weightName: 'adapter_model.safetensors', + }, + }; + const loraGraph = groups.unpackVisualOperationGroups( + createTemplateOperationGraph(withLora, form, starter, fixture.registry, row.spec, row.capability), + ).graph; + const adapter = loraGraph.nodes.find((node) => node.data.action === 'Lora'); + assert.deepEqual(adapter.data.params.model.value, { source: 'hub', value: 'org/Adapter' }); + const localOnlyRegistry = structuredClone(fixture.registry); + localOnlyRegistry['modules.ModularDiffusers.Lora'].params.model.fieldOptions.sources = ['local']; + assert.throws( + () => createTemplateOperationGraph(withLora, form, starter, localOnlyRegistry, row.spec, row.capability), + /incompatible/, + ); +}); diff --git a/scripts/operation-authoring.test.mjs b/scripts/operation-authoring.test.mjs index b1d970ea..f8882e69 100644 --- a/scripts/operation-authoring.test.mjs +++ b/scripts/operation-authoring.test.mjs @@ -1,6 +1,9 @@ import assert from 'node:assert/strict'; import { after, before, test } from 'node:test'; import { createServer } from 'vite'; +import fs from 'node:fs'; +import React from 'react'; +import { renderToStaticMarkup } from 'react-dom/server'; let server, authoring, requests, drafts, choices; const originalFetch = globalThis.fetch; @@ -1774,6 +1777,237 @@ test('workflow discovery retains backend models absent from the legacy Studio un assert.deepEqual(choices.parseWorkflowModelDescriptors(unavailable, support), []); }); +test('generic public model inventory preserves native defaults and exact additional format Install/Repair selections', async () => { + const inventory = await server.ssrLoadModule('/src/workflow/workflowModelInventory.ts'); + const actual = JSON.parse( + fs.readFileSync(new URL('../tests/fixtures/weight-format-selections.v1.json', import.meta.url), 'utf8'), + ); + for (const row of actual.rows) { + // A future public declaration exercises generic discovery. The file rows + // are the actual backend selector output, not a public/runtime grant for + // the private identities from which that pure fixture was captured. + const model = { + modelType: 'FutureNativePipeline', + label: 'Future image', + defaultRepo: row.repo, + executionStatus: 'expert_only', + qualificationStatus: 'graph-contract-only', + autoEligible: false, + templateEligible: false, + revisionCandidates: [row.revision], + downloadFiles: ['model_index.json', 'transformer/model.safetensors'], + weightFormatSelections: row.weightFormatSelections, + executionProfiles: [ + { + id: 'future-native', + model_type: 'FutureNativePipeline', + pipeline_class: 'FutureNativePipeline', + default_repo: row.repo, + public: true, + }, + ], + }; + const support = [ + { + pipelineClass: model.modelType, + tasks: [ + { + task: 'text_to_image', + operationIds: ['load', 'encode', 'denoise', 'decode'], + executionProfileIds: ['future-native'], + }, + ], + }, + ]; + const payload = { schemaVersion: 2, capabilities: [model] }; + const [descriptor] = choices.parseWorkflowModelDescriptors(payload, support); + assert.ok(descriptor); + const rows = inventory.workflowModelArtifactRows(descriptor); + assert.deepEqual( + rows.map((item) => item.weightFormat), + ['native', 'fp8r', 'nvfp4'], + ); + assert.equal(new Set(rows.map((item) => item.id)).size, 3); + assert.deepEqual(rows[0].selection.downloadFiles, model.downloadFiles); + for (const [index, format] of rows.entries()) { + const state = inventory.workflowModelArtifactStatus(format, descriptor, [], [], null); + assert.equal(state.installTarget.actionLabel, 'Install'); + assert.equal(state.installTarget.repo, index ? row.weightFormatSelections[index - 1].repo : row.repo); + assert.equal(state.installTarget.revision, row.revision); + assert.deepEqual(state.installTarget.files, format.selection.downloadFiles); + assert.notEqual(state.installTarget.files, format.selection.downloadFiles); + assert.match(state.reason, /readiness.*separately/); + assert.equal(descriptor.autoEligible, undefined); + assert.equal(descriptor.templateEligible, undefined); + } + const [native, fp8] = rows; + const nativeCache = [ + { + id: row.repo, + complete: true, + installed: true, + planned_revision: row.revision, + planned_files: native.selection.downloadFiles, + }, + ]; + const repair = inventory.workflowModelArtifactStatus(fp8, descriptor, nativeCache, [], null); + assert.equal(repair.installTarget.actionLabel, 'Repair'); + assert.deepEqual(repair.installTarget.files, row.weightFormatSelections[0].downloadFiles); + const installed = inventory.workflowModelArtifactStatus( + fp8, + descriptor, + [{ ...nativeCache[0], planned_files: fp8.selection.downloadFiles }], + [], + null, + ); + assert.equal(installed.status.runnable, true); + assert.equal(installed.installTarget, null); + assert.match(installed.reason, /Execution readiness still depends/); + const privatePayload = structuredClone(payload); + privatePayload.capabilities[0].executionProfiles[0].public = false; + privatePayload.capabilities[0].weightFormatSelections = [{ malicious: true }]; + assert.deepEqual(choices.parseWorkflowModelDescriptors(privatePayload, support), []); + assert.deepEqual(choices.parseWorkflowModelDescriptors(payload, []), []); + const foreignRepository = structuredClone(payload); + foreignRepository.capabilities[0].executionProfiles[0].default_repo = 'another/model'; + const [foreignDescriptor] = choices.parseWorkflowModelDescriptors(foreignRepository, support); + assert.equal(foreignDescriptor.inventory.nativeSelection, undefined); + assert.equal(foreignDescriptor.inventory.weightFormatSelections, undefined); + assert.deepEqual( + inventory.workflowModelArtifactRows(foreignDescriptor).map((item) => item.weightFormat), + ['native'], + ); + assert.equal( + inventory.workflowModelArtifactStatus( + inventory.workflowModelArtifactRows(foreignDescriptor)[0], + foreignDescriptor, + [], + [], + null, + ).installTarget, + null, + ); + assert.deepEqual( + choices.parseWorkflowModelDescriptors( + { ...payload, capabilities: [{ ...model, executionProfiles: [] }] }, + support, + ), + [], + ); + const requirement = { + schemaVersion: 1, + delivery: 'optional_overlay', + requiredNow: true, + profileIds: ['reviewed-runtime'], + executionProfileIds: ['future-native'], + state: 'missing', + reason: 'runtime_missing', + }; + const runtimeDescriptor = { + ...descriptor, + inventory: { ...descriptor.inventory, optionalRuntimeRequirement: requirement }, + }; + const blocked = inventory.workflowModelArtifactStatus(fp8, runtimeDescriptor, [], [], null); + assert.equal(blocked.installTarget, null); + assert.match(blocked.reason, /runtime is missing/); + runtimeDescriptor.inventory.optionalRuntimeRequirement.state = 'active'; + assert.ok(inventory.workflowModelArtifactStatus(fp8, runtimeDescriptor, [], [], null).installTarget); + const rowComponent = (await server.ssrLoadModule('/src/components/WorkflowModelInventoryRow.tsx')).default; + const markup = renderToStaticMarkup( + React.createElement(rowComponent, { + descriptor, + cache: [], + local: [], + diagnostics: null, + installProgress: {}, + activeInstallCount: 0, + hfTokenConfigured: true, + onConfigureHfToken: () => {}, + onInstall: async () => {}, + }), + ); + assert.match(markup, /Weight format for Future image/); + assert.match(markup, /Native/); + assert.match(markup, /Install/); + assert.doesNotMatch(markup, />Ready { + const inventory = await server.ssrLoadModule('/src/workflow/workflowModelInventory.ts'); + const valid = { + weightFormat: 'fp8r', + repo: 'owner/model', + revision: 'a'.repeat(40), + downloadFiles: ['config.json', 'variants/fp8r/model.safetensors'], + }; + assert.equal(inventory.parseWeightFormatSelections(undefined), undefined); + assert.deepEqual(inventory.parseWeightFormatSelections([valid]), [valid]); + for (const malformed of [ + null, + {}, + [], + [valid, valid], + [valid, { ...valid, weightFormat: 'nvfp4' }, valid], + ...['native', ['fp8r'], null, true, 'FP8R'].map((weightFormat) => [{ ...valid, weightFormat }]), + ...['main', 'A'.repeat(40), '', null].map((revision) => [{ ...valid, revision }]), + ...['../model', 'owner/model/extra', '/owner/model', ['owner/model']].map((repo) => [{ ...valid, repo }]), + ...[ + [], + ['../model'], + ['/model'], + ['a//b'], + ['a/./b'], + ['a\\b'], + ['*.safetensors'], + ['a?.json'], + ['a\u0000b'], + ['same', 'same'], + ].map((downloadFiles) => [{ ...valid, downloadFiles }]), + [{ ...valid, unexpected: true }], + [{ ...valid, sourceId: 'foreign' }], + ]) + assert.throws(() => inventory.parseWeightFormatSelections(malformed), /artifact selection/); + for (const entry of [ + Object.defineProperty({ ...valid }, 'repo', { + get() { + throw new Error('must not execute'); + }, + enumerable: true, + }), + Object.defineProperty({ ...valid }, 'hidden', { value: true }), + { ...valid, [Symbol('foreign')]: true }, + Object.assign(Object.create(valid), { weightFormat: 'fp8r' }), + ]) + assert.throws(() => inventory.parseWeightFormatSelections([entry]), /artifact selection/); + assert.equal(inventory.parseWorkflowModelInventory({}, 'owner/model'), undefined); + assert.deepEqual( + inventory + .workflowModelArtifactRows({ profileId: 'old', repo: 'owner/model', label: 'Old' }) + .map((row) => row.weightFormat), + ['native'], + ); + assert.equal( + inventory.workflowModelArtifactStatus( + inventory.workflowModelArtifactRows({ profileId: 'old', repo: 'owner/model', label: 'Old' })[0], + { repo: 'owner/model', label: 'Old' }, + [], + [], + null, + ).installTarget, + null, + ); + for (const executionStatus of [['supported'], true, 'unqualified', null]) + assert.throws( + () => inventory.parseWorkflowModelInventory({ executionStatus }, 'owner/model'), + /artifact selection/, + ); + assert.throws( + () => inventory.parseWorkflowModelInventory({ optionalRuntimeRequirement: { state: 'active' } }, 'owner/model'), + /runtime contract/, + ); +}); + for (const prefix of ['node-', '_', '-']) { test(`native saved ordinary Block supports atomic model replacement with ${prefix} identities`, async () => { const { createUserBlockFromSelection, createUserBlockNode } = diff --git a/scripts/operation-catalog.test.mjs b/scripts/operation-catalog.test.mjs index a29695ac..7176b436 100644 --- a/scripts/operation-catalog.test.mjs +++ b/scripts/operation-catalog.test.mjs @@ -343,3 +343,67 @@ test('integrated model operations keep whole-call discovery and strict v3 identi assert.equal(contracts.operationOwnsModel(undefined), false); assert.throws(() => contracts.parseOperationContracts([{ ...value, nodeType: 'loader' }], 3)); }); + +// Schema tests only; this fixture is not an +// authoring permission, runtime route or model qualification. +function modeOwnerOperation() { + return { + ...operation(), + operationId: 'diffusion.load_models', + nodeKey: 'modules.ModularDiffusers.ModelsLoader', + nodeType: 'loader', + blockName: null, + decomposition: 'loader', + }; +} +test('v3 preserves optional bounded backend execution mode while legacy bindings remain unchanged', () => { + const legacy = modeOwnerOperation(); + assert.deepEqual(contracts.parseOperationContracts([legacy], 3), [legacy]); + assert.equal(Object.hasOwn(contracts.parseOperationContracts([legacy], 3)[0].binding, 'executionMode'), false); + for (const mode of ['text_to_image', 'edit_image', `a${'b'.repeat(63)}`]) { + const value = structuredClone(legacy); + value.binding.executionMode = mode; + assert.deepEqual(contracts.parseOperationContracts([value], 3), [value]); + assert.deepEqual(contracts.parseOperationContracts(JSON.parse(JSON.stringify([value])), 3), [value]); + } +}); +test('v3 rejects malformed present execution modes and preserves exact binding keys', () => { + for (const mode of [ + undefined, + null, + false, + 1, + {}, + [], + '', + 'Edit_Image', + '1edit', + 'edit-image', + 'edit.image', + 'edit_image\n', + ' edit_image', + 'edit_image ', + 'a'.repeat(65), + '__proto__', + 'constructor', + 'prototype', + ]) { + const value = modeOwnerOperation(); + value.binding.executionMode = mode; + assert.throws(() => contracts.parseOperationContracts([value], 3), /Invalid backend operation contract/); + } + const extra = modeOwnerOperation(); + extra.binding.executionMode = 'edit_image'; + extra.binding.unreviewed = true; + assert.throws(() => contracts.parseOperationContracts([extra], 3)); + const inherited = modeOwnerOperation(); + inherited.binding = Object.assign(Object.create({ executionMode: 'edit_image' }), inherited.binding); + const parsed = contracts.parseOperationContracts([inherited], 3)[0]; + assert.equal(Object.hasOwn(parsed.binding, 'executionMode'), false); +}); + +test('v3 rejects execution-mode annotations on non-model-owner contracts', () => { + const value = operation(); + value.binding.executionMode = 'edit_image'; + assert.throws(() => contracts.parseOperationContracts([value], 3), /Invalid backend operation contract/); +}); diff --git a/scripts/operation-component-bundle.test.mjs b/scripts/operation-component-bundle.test.mjs index ad124969..06af2608 100644 --- a/scripts/operation-component-bundle.test.mjs +++ b/scripts/operation-component-bundle.test.mjs @@ -171,12 +171,12 @@ test('bundle and breakout preserve explicit component overrides and an unrelated }); test('component rewiring uses visual stage projection while keeping wrappers, values and canonical leaves', () => { - const ordinary = graph(), - loader = owner(ordinary); + const ordinary = graph(); const grouped = visual.groupNewOperationGraph(ordinary); const roots = grouped.nodes.filter((node) => visual.visualOperationGroup(node)); const before = visual.unpackVisualOperationGroups(grouped).graph; - const bundled = bundle.setOperationComponentBundle(grouped, loader.id, 'bundle'); + const projectedOwnerId = owner(before).id; + const bundled = bundle.setOperationComponentBundle(grouped, projectedOwnerId, 'bundle'); for (const root of roots) { const after = bundled.nodes.find((node) => node.id === root.id); assert.equal(visual.visualOperationGroup(after), visual.visualOperationGroup(root)); @@ -190,7 +190,7 @@ test('component rewiring uses visual stage projection while keeping wrappers, va assert.deepEqual(lowered.nodes.map((node) => node.id).sort(), before.nodes.map((node) => node.id).sort()); assert.deepEqual(semanticEdges(lowered), semanticEdges(before)); const exposed = visual.unpackVisualOperationGroups( - bundle.setOperationComponentBundle(bundled, loader.id, 'components'), + bundle.setOperationComponentBundle(bundled, projectedOwnerId, 'components'), ).graph; assert.deepEqual(semanticEdges(exposed), semanticEdges(before)); }); diff --git a/scripts/operation-modification-matrix.test.mjs b/scripts/operation-modification-matrix.test.mjs index 41f59925..b9ce5e1b 100644 --- a/scripts/operation-modification-matrix.test.mjs +++ b/scripts/operation-modification-matrix.test.mjs @@ -322,6 +322,7 @@ test('ordinary same-pipeline profile and task Apply retains exact workflow bindi const contracts = await server.ssrLoadModule('/src/workflow/operationContracts.ts'); const request = await server.ssrLoadModule('/src/workflow/operationStarterRequest.ts'); const groups = await server.ssrLoadModule('/src/workflow/visualOperationGroups.ts'); + const runtime = await server.ssrLoadModule('/src/studio/blockRuntimeV2.ts'); const operations = contracts.parseOperationContracts( profiles.publicPayload.operationContracts, profiles.publicPayload.operationContractSchemaVersion, @@ -331,6 +332,14 @@ test('ordinary same-pipeline profile and task Apply retains exact workflow bindi ); const owner = (graph) => graph.nodes.find((node) => contracts.operationOwnsModel(a.operationAuthoring(node)?.operation)); + // Resolve the current owner as Model Setup's actual controls do. Model/task + // changes can regroup or remove the wrapper, so do not reuse an old leaf ID. + function currentOwnerId(graph) { + const setup = graph.nodes.find((node) => groups.visualOperationGroup(node) === 'setup'); + if (!setup) return owner(graph).id; + const projected = owner(runtime.blockOperationGraphV2(setup.data.blockInstanceV2)); + return groups.visualOperationOwnerId(graph, projected.data.blockProjectionNodeId, setup.id); + } function checkBindings(graph, recipe) { const flat = groups.unpackVisualOperationGroups(graph).graph; for (const { operation } of recipe.nodes) { @@ -357,9 +366,11 @@ test('ordinary same-pipeline profile and task Apply retains exact workflow bindi prompt.data.operationAuthoring.authored = ['prompt']; if (grouped) graph = groups.groupNewOperationGraph(graph); const before = structuredClone(graph); - const ownerId = loader.id; for (const preserveValues of [false, true]) { - const plan = a.planOperationChange(graph, ownerId, recipes[1], { replaceModel: true, preserveValues }); + const plan = a.planOperationChange(graph, currentOwnerId(graph), recipes[1], { + replaceModel: true, + preserveValues, + }); const next = checkBindings(plan.graph, recipes[1]); assert.equal(owner(next).data.params.repo_id.value.value, 'nvidia/Cosmos3-Super-Text2Image'); assert.equal(owner(next).data.params.reviewed_variant.value, 'nvidia/Cosmos3-Super-Text2Image'); @@ -369,11 +380,15 @@ test('ordinary same-pipeline profile and task Apply retains exact workflow bindi ); assert.equal(owner(next).data.params.revision.value, 'daf3d374804be4c512c2135568a7cb95d4341d79'); assert.deepEqual(graph, before, 'Previewing a change must not mutate the source graph.'); - const video = a.planOperationChange(plan.graph, ownerId, recipes[2], { replaceModel: true }); + const video = a.planOperationChange(plan.graph, currentOwnerId(plan.graph), recipes[2], { replaceModel: true }); checkBindings(video.graph, recipes[2]); - const returned = a.planOperationChange(video.graph, ownerId, recipes[0], { replaceModel: true }); + const returned = a.planOperationChange(video.graph, currentOwnerId(video.graph), recipes[0], { + replaceModel: true, + }); checkBindings(returned.graph, recipes[0]); - const reset = a.planOperationChange(returned.graph, ownerId, recipes[0], { restoreDefaults: true }); + const reset = a.planOperationChange(returned.graph, currentOwnerId(returned.graph), recipes[0], { + restoreDefaults: true, + }); checkBindings(reset.graph, recipes[0]); } } diff --git a/scripts/prompt-enhancement-authoring.test.mjs b/scripts/prompt-enhancement-authoring.test.mjs new file mode 100644 index 00000000..23a7271d --- /dev/null +++ b/scripts/prompt-enhancement-authoring.test.mjs @@ -0,0 +1,396 @@ +import assert from 'node:assert/strict'; +import { readFileSync, mkdtempSync, rmSync } from 'node:fs'; +import { tmpdir } from 'node:os'; +import path from 'node:path'; +import { before, after, test } from 'node:test'; +import { createServer } from 'vite'; + +const declared = JSON.parse(readFileSync('tests/fixtures/ancillary-authoring.v1.json', 'utf8')); +const actual = JSON.parse(readFileSync('tests/fixtures/ancillary-starter.v1.json', 'utf8')); +const cache = mkdtempSync(path.join(tmpdir(), 'modiff-enhancement-authoring-')); +let server, authoring, remap, metadata; +before(async () => { + const storage = new Map(); + globalThis.localStorage = { + getItem: (key) => storage.get(key) ?? null, + setItem: (key, value) => storage.set(key, value), + removeItem: (key) => storage.delete(key), + }; + globalThis.window = { localStorage, dispatchEvent: () => true, location: { origin: 'http://127.0.0.1:5191' } }; + server = await createServer({ + configFile: false, + cacheDir: cache, + logLevel: 'silent', + optimizeDeps: { entries: [], noDiscovery: true }, + server: { middlewareMode: true, watch: null }, + appType: 'custom', + }); + authoring = await server.ssrLoadModule('/src/studio/promptEnhancementAuthoring.ts'); + metadata = await server.ssrLoadModule('/src/studio/ancillaryOperations.ts'); + ({ remapOperationAuthoring: remap } = await server.ssrLoadModule('/src/workflow/operationSharedInputs.ts')); +}); +after(async () => { + await server?.close(); + delete globalThis.window; + delete globalThis.localStorage; + rmSync(cache, { recursive: true, force: true }); +}); + +// Real constructor-trapped declaration/registry DTOs, with explicitly synthetic +// authored scalar controls. This does not qualify the private profile or model. +function setup() { + const parent = JSON.parse(declared.parents[0].rawParentJson); + assert.deepEqual(parent, actual.response.authoring); + const registry = { + ...structuredClone(declared.parents[0].registry), + ...Object.fromEntries( + actual.response.nodes.map(({ operation, node }) => [operation.nodeKey, structuredClone(node)]), + ), + }; + const nodes = parent.roles.map(([role, key, x, y]) => { + const data = structuredClone(registry[key]); + const operation = actual.operationContracts.find((operation) => operation.nodeKey === key); + data.studioRole = role; + if (operation) data.operationAuthoring = { schemaVersion: 1, operation, defaults: {}, retained: [] }; + if (data.params.offload_mode) data.params.offload_mode.value = 'none'; + if (data.params.auto_offload) data.params.auto_offload.value = false; + return { id: `authored-${role}`, type: 'custom', position: { x, y }, data }; + }); + const graph = { + nodes, + edges: parent.edges.map(([a, b, c, d], index) => ({ + id: `authored-edge-${index}`, + source: `authored-${a}`, + sourceHandle: b, + target: `authored-${c}`, + targetHandle: d, + })), + }; + const child = parent.ancillaryOperations[0]; + const owner = nodes.find((node) => node.data.studioRole === child.bindings.owner.role); + owner.data.params[child.bindings.owner.promptField].value = ' Unchanged raw prompt.\n'; + owner.data.params[child.bindings.owner.layoutField].value = null; + authoring.attachPromptEnhancementParents(graph, parent); + return { graph, parent, child, owner, registry }; +} + +test('absent metadata preserves legacy graph bytes and adds no feature', () => { + const graph = { nodes: [], edges: [] }; + assert.equal(authoring.attachPromptEnhancementParents(graph, undefined), graph); + assert.deepEqual(graph, { nodes: [], edges: [] }); +}); + +test('saved enhancement selection is a strict advisory context with exact role remapping', () => { + const { owner, parent } = setup(); + const before = structuredClone(owner.data.operationAuthoring); + const offer = authoring.promptEnhancementParentFromHint(before); + assert.equal(offer.parent.authoringContentHash, parent.contentHash); + assert.equal('executionAuthority' in offer, false); + const next = remap(before, (id) => `clone-${id}`); + assert.deepEqual( + Object.values(next.ancillaryParent.parentRoleNodes), + Object.values(offer.parentRoleNodes).map((id) => `clone-${id}`), + ); + assert.deepEqual(owner.data.operationAuthoring, before); + const restored = JSON.parse(JSON.stringify(next)); + assert.deepEqual(authoring.promptEnhancementParentFromHint(restored), next.ancillaryParent); +}); + +test('malformed contexts, accessor hints, duplicate nodes and forged grants refuse', () => { + const { owner } = setup(); + const offer = structuredClone(owner.data.operationAuthoring.ancillaryParent); + for (const mutate of [ + (value) => { + value.schemaVersion = true; + }, + (value) => { + value.canApply = true; + }, + (value) => { + value.parent.executionProfileId = ['profile']; + }, + (value) => { + value.parent.authoringContentHash = 'wrong'; + }, + (value) => { + value.parentRoleNodes.models = value.parentRoleNodes.prompt; + }, + (value) => { + value.parentRoleNodes.prompt = '\ud800'; + }, + (value) => { + value.parentRoleNodes.prompt = 'a'.repeat(513); + }, + (value) => { + value.appliedPairSha256 = 'not-a-digest'; + }, + ]) { + const copy = structuredClone(offer); + mutate(copy); + assert.throws(() => authoring.parsePromptEnhancementParent(copy), /ancillary/i); + } + let touched = false; + assert.throws( + () => + authoring.promptEnhancementParentFromHint( + Object.defineProperty({}, 'ancillaryParent', { + enumerable: true, + get() { + touched = true; + return offer; + }, + }), + ), + /data field/, + ); + assert.equal(touched, false); +}); + +test('Enable creates only the exact declared branch and leaves raw prompt/layout intact', async () => { + const { graph, parent, child, owner, registry } = setup(); + const before = structuredClone(graph); + const next = await authoring.planEnablePromptEnhancement(graph, owner.id, parent, child.id, registry); + assert.deepEqual(graph, before); + assert.equal(next.nodes.length, graph.nodes.length + child.roles.length); + const binding = next.nodes.find((node) => node.id === owner.id).data.operationAuthoring.ancillaryBindings[0]; + const request = next.nodes.find((node) => node.id === binding.roleNodes[child.bindings.request.role]); + assert.equal(request.data.params[child.bindings.request.promptField].value, ' Unchanged raw prompt.\n'); + assert.equal(request.data.params[child.bindings.request.layoutField].value, null); + assert.deepEqual(next.nodes.find((node) => node.id === owner.id).data.params, owner.data.params); + await assert.rejects(authoring.planEnablePromptEnhancement(next, owner.id, parent, child.id, registry), /disable/i); +}); + +test('Apply changes caption and layout together; Disable restores only untouched applied values', async () => { + const { graph, parent, child, owner, registry } = setup(); + const enabled = await authoring.planEnablePromptEnhancement(graph, owner.id, parent, child.id, registry); + const hash = await authoring.promptEnhancementPairHash({ prompt: ' Unchanged raw prompt.\n', layout: null }); + const pair = { prompt: 'Proposed caption.', layout: null }; + const applied = await authoring.planApplyPromptEnhancement(enabled, owner.id, parent, child.id, pair, hash); + assert.equal(applied.nodes.find((node) => node.id === owner.id).data.params.prompt.value, pair.prompt); + assert.equal( + enabled.nodes.find((node) => node.id === owner.id).data.params.prompt.value, + ' Unchanged raw prompt.\n', + ); + const disabled = await authoring.planDisablePromptEnhancement(applied, owner.id, parent, child.id); + assert.equal(disabled.nodes.length, graph.nodes.length); + assert.equal( + disabled.nodes.find((node) => node.id === owner.id).data.params.prompt.value, + ' Unchanged raw prompt.\n', + ); + const edited = structuredClone(applied); + edited.nodes.find((node) => node.id === owner.id).data.params.prompt.value = 'Later user edit.'; + const kept = await authoring.planDisablePromptEnhancement(edited, owner.id, parent, child.id); + assert.equal(kept.nodes.find((node) => node.id === owner.id).data.params.prompt.value, 'Later user edit.'); + await assert.rejects( + authoring.planApplyPromptEnhancement(edited, owner.id, parent, child.id, pair, hash), + /changed/i, + ); +}); + +test('Enable refuses stale metadata, source layout and absent registry; Disable protects unrelated connections', async () => { + const { graph, parent, child, owner, registry } = setup(); + const stale = structuredClone(parent); + stale.contentHash = 'studio-authoring-v1-00000000'; + await assert.rejects(authoring.planEnablePromptEnhancement(graph, owner.id, stale, child.id, registry), /refresh/i); + await assert.rejects(authoring.planEnablePromptEnhancement(graph, owner.id, parent, child.id, {}), /registry/i); + const source = structuredClone(graph); + source.nodes.find((node) => node.id === owner.id).data.params.layout_conditioning.value = { + schemaVersion: 2, + coordinateSpace: 'normalized_xyxy', + regions: [ + { + id: 'object', + description: 'Move object', + action: 'relocate', + targetBox: [0.1, 0.1, 0.5, 0.5], + source: { referenceIndex: 0, expectedReferenceId: `sha256:${'a'.repeat(64)}`, box: [0, 0, 1, 1] }, + }, + ], + }; + await assert.rejects( + authoring.planEnablePromptEnhancement(source, owner.id, parent, child.id, registry), + /source|layout/i, + ); + const enabled = await authoring.planEnablePromptEnhancement(graph, owner.id, parent, child.id, registry); + const binding = enabled.nodes.find((node) => node.id === owner.id).data.operationAuthoring.ancillaryBindings[0]; + enabled.edges.push({ + id: 'foreign', + source: binding.roleNodes[child.bindings.output.role], + sourceHandle: 'text', + target: owner.id, + targetHandle: 'prompt_input', + }); + await assert.rejects( + authoring.planDisablePromptEnhancement(enabled, owner.id, parent, child.id), + /additional connections/i, + ); +}); + +test('verification metadata stays closed, immutable and distinct from observed runtime or grants', () => { + // Synthetic static declaration, not an artifact/processor/runtime observation. + const value = { + schemaVersion: 1, + adapter: { id: 'fixture-adapter', declarationSha256: `sha256:${'a'.repeat(64)}` }, + supportedPromptModes: ['t2i', 'i2i'], + runtimeInputs: { + role: 'source', + modelField: 'model_id', + revisionField: 'revision', + dtypeField: 'dtype', + deviceField: 'device', + quantizationField: 'quantization_mode', + }, + requestInputs: { + role: 'request', + operationField: 'operation', + maxNewTokensField: 'enhancement_max_new_tokens', + minNewTokensField: 'min_new_tokens', + maxInputTokensField: 'max_input_tokens', + maxImagePixelsField: 'max_image_pixels', + }, + systemPromptsSha256: `sha256:${'b'.repeat(64)}`, + chatTemplateSha256: `sha256:${'c'.repeat(64)}`, + systemPromptSha256ByMode: Object.fromEntries( + ['t2i', 'i2i', 't2i_bbox', 'i2i_bbox'].map((mode) => [mode, 'd'.repeat(64)]), + ), + modelReceipt: { + schemaVersion: 1, + library: 'transformers', + task: 'image-video-to-text', + source: { kind: 'hub', repository: 'fixture/model', revision: 'e'.repeat(40) }, + loader: { preprocessorAutoClass: 'AutoProcessor', modelAutoClass: 'AutoModelForImageTextToText' }, + security: { localFilesOnly: true, trustRemoteCode: false, safetensorsOnly: true, hostedInference: false }, + runtime: { + transformersVersion: '5.18.0', + preprocessorClass: 'FixtureProcessor', + modelClass: 'FixtureModel', + modelType: 'fixture', + architectures: ['FixtureModel'], + }, + }, + quantizationRecipes: [{ mode: 'none' }], + }; + assert.deepEqual(metadata.parseAncillaryVerification(value), value); + for (const mutate of [ + (v) => { + v.canApply = true; + }, + (v) => { + v.supportedPromptModes = [['t2i']]; + }, + (v) => { + v.supportedPromptModes = ['t2i', 't2i']; + }, + (v) => { + v.runtimeInputs.dtypeField = v.runtimeInputs.deviceField; + }, + (v) => { + v.runtimeInputs.role = ['source']; + }, + (v) => { + v.requestInputs.canApply = true; + }, + (v) => { + v.modelReceipt.security.trustRemoteCode = true; + }, + (v) => { + v.modelReceipt.source.revision = 'main'; + }, + (v) => { + v.modelReceipt.source.kind = ['hub']; + }, + (v) => { + v.modelReceipt.runtime.device = 'cuda'; + }, + (v) => { + v.modelReceipt.runtime.architectures = [true]; + }, + (v) => { + v.modelReceipt.runtime.modelClass = 'a'.repeat(257); + }, + (v) => { + v.modelReceipt.receiptDigest = `sha256:${'a'.repeat(64)}`; + }, + (v) => { + v.adapter.declarationSha256 = 'a'.repeat(64); + }, + (v) => { + v.systemPromptSha256ByMode.i2i = `sha256:${'a'.repeat(64)}`; + }, + (v) => { + v.quantizationRecipes = [{ mode: ['none'] }]; + }, + (v) => { + v.quantizationRecipes.push({ mode: 'none' }); + }, + ]) { + const copy = structuredClone(value); + mutate(copy); + assert.throws(() => metadata.parseAncillaryVerification(copy), /ancillary/i); + } +}); + +test('Regenerate reuses the original request after Apply and captures later user edits without recursively enhancing output', async () => { + const { graph, parent, child, owner, registry } = setup(); + const raw = owner.data.params.prompt.value; + const enabled = await authoring.planEnablePromptEnhancement(graph, owner.id, parent, child.id, registry); + const hash = await authoring.promptEnhancementPairHash({ prompt: raw, layout: null }); + const applied = await authoring.planApplyPromptEnhancement( + enabled, + owner.id, + parent, + child.id, + { prompt: 'First proposed wording.', layout: null }, + hash, + ); + const refreshed = await authoring.planRefreshPromptEnhancementRequest(applied, owner.id, parent, child.id); + const current = refreshed.nodes.find((node) => node.id === owner.id); + const binding = current.data.operationAuthoring.ancillaryBindings[0]; + const request = refreshed.nodes.find((node) => node.id === binding.roleNodes[child.bindings.request.role]); + assert.equal(current.data.params.prompt.value, raw); + assert.equal(request.data.params.prompt.value, raw); + assert.equal(current.data.operationAuthoring.ancillaryParent.appliedPairSha256, undefined); + const edited = structuredClone(applied); + edited.nodes.find((node) => node.id === owner.id).data.params.prompt.value = 'Later user-authored wording.'; + const later = await authoring.planRefreshPromptEnhancementRequest(edited, owner.id, parent, child.id); + assert.equal( + later.nodes.find((node) => node.id === binding.roleNodes[child.bindings.request.role]).data.params.prompt.value, + 'Later user-authored wording.', + ); +}); + +test('implicit scalar Inputs controls are opt-in for exact generic members; other stage behavior stays unchanged', async () => { + const { child, registry } = setup(); + const { createNodeFromRegistry } = await server.ssrLoadModule('/src/workflow/nodeFactory.ts'); + const { groupVisualStages } = await server.ssrLoadModule('/src/workflow/visualOperationGroups.ts'); + const node = createNodeFromRegistry(child.roles[0][1], registry, { x: 0, y: 0 }); + const graph = { nodes: [node], edges: [] }; + const ordinary = groupVisualStages(graph, [node.id], 'inputs'); + const adopted = groupVisualStages(graph, [node.id], 'inputs', undefined, { implicitScalarControlNodeIds: [node.id] }); + const ordinaryFields = ordinary.nodes[0].data.blockInstanceV2.effectiveInterface.controls.map( + (control) => control.binding.fieldId, + ); + const adoptedFields = adopted.nodes[0].data.blockInstanceV2.effectiveInterface.controls.map( + (control) => control.binding.fieldId, + ); + assert.ok(adoptedFields.length > ordinaryFields.length); + assert.ok(adoptedFields.includes('dtype')); + assert.throws( + () => + groupVisualStages(graph, [node.id], 'inputs', undefined, { implicitScalarControlNodeIds: ['foreign-member'] }), + /explicitly adopted/, + ); + assert.throws( + () => groupVisualStages(graph, [node.id], 'setup', undefined, { implicitScalarControlNodeIds: [node.id] }), + /explicitly adopted/, + ); + const declared = setup().owner; + assert.throws( + () => + groupVisualStages({ nodes: [declared], edges: [] }, [declared.id], 'inputs', undefined, { + implicitScalarControlNodeIds: [declared.id], + }), + /explicitly adopted/, + ); + assert.deepEqual(graph, { nodes: [node], edges: [] }); +}); diff --git a/scripts/prompt-enhancement-preview.test.mjs b/scripts/prompt-enhancement-preview.test.mjs new file mode 100644 index 00000000..65fe649d --- /dev/null +++ b/scripts/prompt-enhancement-preview.test.mjs @@ -0,0 +1,704 @@ +import assert from 'node:assert/strict'; +import { createHash } from 'node:crypto'; +import { readFileSync, mkdtempSync, rmSync } from 'node:fs'; +import { tmpdir } from 'node:os'; +import path from 'node:path'; +import { before, after, beforeEach, test } from 'node:test'; +import React from 'react'; +import { renderToStaticMarkup } from 'react-dom/server'; +import { createServer } from 'vite'; + +// Genuine constructor-trapped metadata, closed eligibility; all HTTP replies, +// task observations and generated summaries below are synthetic unit fixtures. +const fixture = JSON.parse(readFileSync('tests/fixtures/prompt-enhancement-starter.v1.json', 'utf8')); +const cache = mkdtempSync(path.join(tmpdir(), 'modiff-enhancement-preview-')); +const sha = (text) => `sha256:${createHash('sha256').update(text, 'utf8').digest('hex')}`; +const worker = { + instance: 'synthetic-ui-worker', + backend_source: { fingerprint: `sha256:backend-source-v1:${'a'.repeat(64)}` }, +}; +let server, flow, studio, registry, socket, tasks, authoring, preview, runtime, canonical, transaction, Component; +let originalFetch, calls, onMetadata, onRuntime, submitted, cacheBody, taskReplies; +before(async () => { + const storage = new Map(); + globalThis.localStorage = { + getItem: (key) => storage.get(key) ?? null, + setItem: (key, value) => storage.set(key, String(value)), + removeItem: (key) => storage.delete(key), + }; + globalThis.window = { localStorage, dispatchEvent: () => true, location: { origin: 'http://127.0.0.1:5191' } }; + originalFetch = globalThis.fetch; + globalThis.fetch = async () => { + throw new Error('No network during module loading'); + }; + server = await createServer({ + configFile: false, + cacheDir: cache, + logLevel: 'silent', + optimizeDeps: { entries: [], noDiscovery: true }, + server: { middlewareMode: true, watch: null }, + appType: 'custom', + }); + ({ useFlowStore: flow } = await server.ssrLoadModule('/src/stores/useFlowStore.ts')); + ({ useStudioStore: studio } = await server.ssrLoadModule('/src/stores/useStudioStore.ts')); + ({ useNodesStore: registry } = await server.ssrLoadModule('/src/stores/useNodeStore.ts')); + ({ useWebsocketStore: socket } = await server.ssrLoadModule('/src/stores/useWebsocketStore.ts')); + ({ useTaskStore: tasks } = await server.ssrLoadModule('/src/stores/useTaskStore.ts')); + authoring = await server.ssrLoadModule('/src/studio/promptEnhancementAuthoring.ts'); + preview = await server.ssrLoadModule('/src/studio/promptEnhancementPreview.ts'); + runtime = await server.ssrLoadModule('/src/studio/blockRuntimeV2.ts'); + canonical = (await server.ssrLoadModule('/src/studio/blockSchemaV2.ts')).canonicalBlockStringifyV2; + transaction = await server.ssrLoadModule('/src/workflow/operationGraphTransaction.ts'); + Component = (await server.ssrLoadModule('/src/components/PromptEnhancementControls.tsx')).default; +}); +beforeEach(() => { + calls = []; + onMetadata = null; + onRuntime = null; + submitted = null; + cacheBody = null; + taskReplies = new Map(); + studio.setState({ + form: { + ...studio.getState().form, + resourceMode: 'expert', + device: 'cpu', + offloadMode: 'none', + autoOffload: false, + randomSeed: false, + }, + activeWorkflowTabId: 'unit-preview-tab', + workflowCanvasHydrated: true, + workflowCanvasEpoch: 0, + workflowFormEpoch: 0, + graphBinding: null, + workflowTabs: [], + currentRunContext: null, + outputs: [], + runContextsByClientRunId: {}, + runContextsByTaskId: {}, + }); + registry.setState({ + nodesRegistry: structuredClone(fixture.registry), + operationContracts: structuredClone(fixture.operationContracts), + }); + socket.setState({ isConnected: true, sid: 'unit-preview-sid' }); + tasks.setState({ currentTask: undefined, queuedTasks: {}, sessionRuns: [] }); + flow.getState().replaceGraph({ nodes: [], edges: [] }); + flow.getState().resetHistory(); + globalThis.fetch = async (url, init) => { + const parsed = new URL(String(url)), + endpoint = parsed.pathname; + calls.push(endpoint); + const json = (value) => + new Response(JSON.stringify(value), { status: 200, headers: { 'Content-Type': 'application/json' } }); + if (endpoint === '/operations/starter') { + onMetadata?.(); + return json(fixture.response); + } + if (endpoint === '/runtime/status') { + onRuntime?.(); + return json(worker); + } + if (endpoint === '/graph') { + submitted = JSON.parse(init.body); + return json({ + error: false, + sid: 'unit-preview-sid', + task_id: 'synthetic-preview-B', + message: 'Synthetic transport only', + }); + } + if (endpoint.startsWith('/runs/')) return json({ task: taskReplies.get(decodeURIComponent(endpoint.slice(6))) }); + if (endpoint.startsWith('/cache/')) { + assert.equal(parsed.search, '?with_metadata=1'); + assert.equal(init.cache, 'no-store'); + return cacheBody instanceof Response + ? cacheBody + : new Response(cacheBody, { headers: { 'Content-Type': 'application/json' } }); + } + if (endpoint === '/cache' && init?.method === 'DELETE') + return json({ error: false, nodes: JSON.parse(init.body).nodes }); + assert.fail(`Unexpected request ${endpoint}`); + }; +}); +after(async () => { + globalThis.fetch = originalFetch; + await server?.close(); + delete globalThis.window; + delete globalThis.localStorage; + rmSync(cache, { recursive: true, force: true }); +}); + +const parent = fixture.response.authoring, + child = parent.ancillaryOperations[0]; +async function setup() { + const { createTemplateOperationGraph } = await server.ssrLoadModule('/src/studio/templateOperationWorkflow.ts'); + const { DEFAULT_STUDIO_FORM } = await server.ssrLoadModule('/src/studio/modelProfiles.ts'); + const spec = fixture.baseSpec; + const form = { + ...DEFAULT_STUDIO_FORM, + modelType: spec.modelType, + mode: spec.mode, + resourceMode: 'expert', + device: 'cpu', + offloadMode: 'none', + autoOffload: false, + prompt: ' Authored unit prompt.\n', + width: 1024, + height: 1024, + steps: fixture.capability.recommendedSteps, + seed: 4201, + randomSeed: false, + maxSequenceLength: 8192, + }; + const graph = createTemplateOperationGraph( + { + id: 'unit-preview', + label: 'Unit fixture only', + modelType: spec.modelType, + mode: spec.mode, + executionSelection: { ...fixture.selection, bindingSpec: { modelType: spec.modelType, mode: spec.mode } }, + }, + form, + structuredClone(fixture.response), + structuredClone(fixture.registry), + spec, + fixture.capability, + ); + studio.setState({ form }); + flow.getState().replaceGraph(graph); + flow.getState().resetHistory(); + const root = graph.nodes.find((node) => + node.data.blockInstanceV2?.effectiveGraph.nodes.some((leaf) => leaf.data.studioRole === child.bindings.owner.role), + ); + const leaf = root.data.blockInstanceV2.effectiveGraph.nodes.find( + (leaf) => leaf.data.studioRole === child.bindings.owner.role, + ); + return { ownerId: runtime.blockProjectionNodeIdV2(root.id, leaf.nodeId), graph }; +} +function activeOwner(ownerId) { + return preview.promptEnhancementOwner(ownerId).owner; +} +function editOwnerField(ownerId, field, value) { + const graph = flow.getState().toObject(); + const root = graph.nodes.find((node) => + node.data.blockInstanceV2?.effectiveGraph.nodes.some( + (leaf) => runtime.blockProjectionNodeIdV2(node.id, leaf.nodeId) === ownerId, + ), + ); + const leaf = root.data.blockInstanceV2.effectiveGraph.nodes.find( + (leaf) => runtime.blockProjectionNodeIdV2(root.id, leaf.nodeId) === ownerId, + ); + const control = root.data.blockInstanceV2.effectiveInterface.controls.find( + (control) => control.binding.nodeId === leaf.nodeId && control.binding.fieldId === field, + ); + assert.ok(control, 'The actual public Block control must exist.'); + const changed = runtime.createBlockRootNodeV2( + runtime.setBlockInstanceValueV2(root.data.blockInstanceV2, control.controlId, value), + ); + flow.getState().replaceGraph({ ...graph, nodes: graph.nodes.map((node) => (node.id === root.id ? changed : node)) }); +} + +function syntheticEnvelope(run, warm = false) { + const binding = submitted.runtimeHints.executionPurpose.bindings[0], + verification = child.verification; + const input = (role, field) => submitted.nodes[binding.roleNodes[role]].params[field].value; + const mapped = verification.runtimeInputs, + request = verification.requestInputs, + hints = submitted.runtimeHints; + const controls = { + max_new_tokens: input(request.role, request.maxNewTokensField), + min_new_tokens: input(request.role, request.minNewTokensField), + return_dict_in_generate: false, + ...Object.fromEntries( + ['do_sample', 'num_beams', 'repetition_penalty', 'use_chat_template'].map((field) => [ + field, + input(request.role, field), + ]), + ), + }; + const receipt = { + ...structuredClone(verification.modelReceipt), + runtime: { + ...verification.modelReceipt.runtime, + dtype: input(mapped.role, mapped.dtypeField), + device: input(mapped.role, mapped.deviceField), + quantization: verification.quantizationRecipes.find( + (recipe) => recipe.mode === input(mapped.role, mapped.quantizationField), + ), + }, + }; + const sorted = (value) => + Array.isArray(value) + ? value.map(sorted) + : value && typeof value === 'object' + ? Object.fromEntries( + Object.keys(value) + .sort() + .map((key) => [key, sorted(value[key])]), + ) + : value; + receipt.receiptDigest = sha(JSON.stringify(sorted(receipt))); // This closed fixture is entirely ASCII. + const producer = { + taskId: warm ? 'synthetic-preview-A' : run.taskId, + attemptIndex: 0, + node: { id: run.target.nodeId, module: 'modules.HuggingFaceTransformers', action: 'GenerateImageVideoText' }, + sid: submitted.sid, + workerInstance: worker.instance, + backendSourceFingerprint: worker.backend_source.fingerprint, + graphHash: `sha256:workflow-auto-v1:${'b'.repeat(64)}`, + recipe: null, + uiContext: { + clientRunId: warm ? 'original-client-run-A' : hints.clientRunId, + runInputHash: hints.runInputHash, + workflowTabId: hints.workflowTabId, + workflowCanvasEpoch: warm ? 0 : hints.workflowCanvasEpoch, + workflowFormEpoch: null, + }, + }; + const prompt = input(child.bindings.request.role, child.bindings.request.promptField), + rendered = `Synthetic rendered ${prompt}`; + const consumed = { + schemaVersion: 1, + renderedPrompt: rendered, + references: [], + processedImageGrid: [], + fingerprints: { + operation: 'enhance_prompt', + enhancement_max_new_tokens: controls.max_new_tokens, + prompt_adapter_id: verification.adapter.id, + system_prompt_mode: 't2i', + system_prompt_sha256: verification.systemPromptSha256ByMode.t2i, + rendered_prompt_sha256: sha(rendered), + rendered_prompt_utf8_bytes: Buffer.byteLength(rendered), + rendered_input_ids_sha256: sha('synthetic input token IDs'), + reference_source_sha256: [], + }, + }; + const summary = { + schemaVersion: 1, + kind: 'prompt-enhancement-proposal', + producer, + adapter: verification.adapter, + request: { + authoredPromptSha256: sha(prompt), + authoredLayoutKind: 'none', + authoredLayoutSha256: null, + controls, + consumedInputSha256: sha(canonical(consumed)), + }, + modelReceipt: receipt, + consumedInput: consumed, + proposal: { + mode: 't2i', + text: 'Synthetic independently reviewed proposal.', + structuredProposal: null, + finishReason: 'stop', + inputTokens: 7, + generatedTokens: 3, + applyRequired: true, + applicationAllowed: true, + layoutOutputValidated: null, + semanticFidelityVerified: false, + applicationBlockedReason: null, + }, + }; + const { recipe: _recipe, ...dispatch } = { + ...producer, + taskId: run.taskId, + uiContext: { + ...producer.uiContext, + clientRunId: hints.clientRunId, + workflowCanvasEpoch: hints.workflowCanvasEpoch, + }, + }; + const { consumedInputSha256: _consumedHash, ...observedRequest } = summary.request; + const value = JSON.stringify(summary); + const envelope = { + value, + observation: { + schemaVersion: 1, + summarySha256: sha(value), + producer, + dispatch: { ...dispatch, status: warm ? 'cached' : 'succeeded' }, + request: observedRequest, + consumedInput: { schemaVersion: 1, references: [], processedImageGrid: [], fingerprints: consumed.fingerprints }, + }, + }; + for (const actor of [producer, envelope.observation.dispatch]) + taskReplies.set(actor.taskId, { + task_id: actor.taskId, + status: 'completed', + attempt_index: actor.attemptIndex, + sid: actor.sid, + client_run_id: actor.uiContext.clientRunId, + run_input_hash: actor.uiContext.runInputHash, + workflow_tab_id: actor.uiContext.workflowTabId, + workflow_canvas_epoch: actor.uiContext.workflowCanvasEpoch, + workflow_form_epoch: actor.uiContext.workflowFormEpoch, + }); + cacheBody = JSON.stringify(envelope); + return envelope; +} + +test('actual metadata remains private; Enable and atomic Apply use normal Undo/Redo and JSON save/reload', async () => { + assert.equal(fixture.capability.autoEligible, false); + assert.equal(fixture.capability.templateEligible, false); + const { ownerId } = await setup(), + before = structuredClone(flow.getState().toObject()); + await preview.enablePromptEnhancement(ownerId); + assert.equal(flow.getState().nodes.length, 4); + assert.equal(flow.getState().historyPast.length, 1); + flow.getState().undo(); + assert.deepEqual(flow.getState().toObject(), before); + flow.getState().redo(); + assert.ok(activeOwner(ownerId).data.operationAuthoring.ancillaryBindings); + const enabled = JSON.parse(JSON.stringify(flow.getState().toObject())); + flow.getState().replaceGraph(enabled); + flow.getState().resetHistory(); + const pair = { prompt: activeOwner(ownerId).data.params.prompt.value, layout: null }; + const next = await authoring.planApplyPromptEnhancement( + enabled, + ownerId, + parent, + child.id, + { prompt: 'Reviewed unit proposal.', layout: null }, + await authoring.promptEnhancementPairHash(pair), + ); + transaction.commitOperationGraph( + next, + (await server.ssrLoadModule('/src/stores/useStudioStore.ts')).captureWorkflowOperationContext(), + transaction.operationGraphSignature(enabled), + 'Unit Apply', + ); + assert.equal(activeOwner(ownerId).data.params.prompt.value, 'Reviewed unit proposal.'); + assert.equal(flow.getState().historyPast.length, 1); + flow.getState().undo(); + assert.equal(activeOwner(ownerId).data.params.prompt.value, pair.prompt); + flow.getState().redo(); + await preview.disablePromptEnhancement(ownerId, child.id); + assert.equal(activeOwner(ownerId).data.params.prompt.value, pair.prompt); + assert.equal(flow.getState().nodes.length, 4); +}); + +test('normal unavailable metadata and concurrent document/session/task changes refuse before mutation or dispatch', async (t) => { + for (const failure of ['unavailable', 'document', 'session', 'task']) + await t.test(failure, async () => { + const { ownerId } = await setup(); + if (failure === 'unavailable') { + const saved = globalThis.fetch; + globalThis.fetch = async (url, init) => + new URL(String(url)).pathname === '/operations/starter' + ? new Response(JSON.stringify({ error: true, message: 'Private profile unavailable' }), { status: 400 }) + : saved(url, init); + } else { + await preview.enablePromptEnhancement(ownerId); + onRuntime = () => { + if (failure === 'document') + studio.setState({ workflowCanvasEpoch: studio.getState().workflowCanvasEpoch + 1 }); + if (failure === 'session') socket.setState({ sid: 'replacement-session' }); + if (failure === 'task') + tasks.setState({ currentTask: { name: 'Another owned run', task_id: 'another', status: 'running' } }); + }; + } + const before = structuredClone(flow.getState().toObject()), + history = flow.getState().historyPast.length; + await assert.rejects( + failure === 'unavailable' + ? preview.enablePromptEnhancement(ownerId) + : preview.startPromptEnhancementPreview(ownerId, child.id), + /private|unavailable|changed|wait|workflow/i, + ); + assert.deepEqual(flow.getState().toObject(), before); + assert.equal(flow.getState().historyPast.length, history); + assert.equal(calls.includes('/graph'), false); + onRuntime = null; + socket.setState({ sid: 'unit-preview-sid' }); + tasks.setState({ currentTask: undefined }); + }); +}); + +test('current plain-only declaration refuses every authored layout object before preparation and keeps raw values', async () => { + const { ownerId } = await setup(); + for (const layout of [ + {}, + { schemaVersion: 2, coordinateSpace: 'normalized_xyxy', regions: [] }, + { + schemaVersion: 2, + coordinateSpace: 'normalized_xyxy', + regions: [{ id: 'one', action: 'place', description: 'An object', targetBox: [0, 0, 1, 1] }], + }, + ]) { + editOwnerField(ownerId, 'layout_conditioning', layout); + assert.deepEqual(activeOwner(ownerId).data.params.layout_conditioning.value, layout); + const before = structuredClone(flow.getState().toObject()); + await assert.rejects(preview.enablePromptEnhancement(ownerId), /layout|schema|regions|invalid/i); + assert.deepEqual(flow.getState().toObject(), before); + assert.equal(calls.includes('/graph'), false); + } +}); + +test('optional controls render the raw path and disabled actions with existing wrapping tokens', async () => { + const { ownerId } = await setup(); + const previous = socket.getInitialState().isConnected; + const originalGraph = { nodes: flow.getInitialState().nodes, edges: flow.getInitialState().edges }; + Object.assign(flow.getInitialState(), { nodes: flow.getState().nodes, edges: flow.getState().edges }); + socket.getInitialState().isConnected = false; + try { + const markup = renderToStaticMarkup(React.createElement(Component, { ownerId })); + assert.match(markup, /The raw prompt runs directly/); + assert.match(markup, /Enable enhancement/); + assert.match(markup, /disabled/); + assert.match(markup, /min-w-0/); + assert.match(markup, /flex-wrap/); + assert.doesNotMatch(markup, /switch to Custom|release.*owner|canApply/); + } finally { + socket.getInitialState().isConnected = previous; + Object.assign(flow.getInitialState(), originalGraph); + } +}); + +test('Preview dispatch uses the selected ordinary scope and does not change the resource mode', async () => { + const { ownerId } = await setup(); + await preview.enablePromptEnhancement(ownerId); + const run = await preview.startPromptEnhancementPreview(ownerId, child.id); + assert.equal(run.taskId, 'synthetic-preview-B'); + assert.equal(submitted.runtimeHints.executionPurpose.kind, 'explicit_preview'); + assert.equal(submitted.runtimeHints.resourceMode, 'expert'); + assert.equal(studio.getState().form.resourceMode, 'expert'); + const binding = submitted.runtimeHints.executionPurpose.bindings[0]; + assert.deepEqual(Object.keys(submitted.nodes).sort(), Object.values(binding.roleNodes).sort()); + assert.equal(activeOwner(ownerId).data.params.prompt.value, ' Authored unit prompt.\n'); +}); + +test('a raw unclaimed text-generator graph still requires an ordinary visible output path', async () => { + const { createNodeFromRegistry } = await server.ssrLoadModule('/src/workflow/nodeFactory.ts'); + const provider = createNodeFromRegistry(child.roles[0][1], fixture.registry, { x: 0, y: 0 }); + const proposal = createNodeFromRegistry(child.roles[1][1], fixture.registry, { x: 300, y: 0 }); + flow.getState().replaceGraph({ + nodes: [provider, proposal], + edges: child.edges.map(([a, output, b, input], index) => ({ + id: `raw-${index}`, + source: a === child.roles[0][0] ? provider.id : proposal.id, + sourceHandle: output, + target: b === child.roles[0][0] ? provider.id : proposal.id, + targetHandle: input, + })), + }); + const { collectRunReadinessIssues } = await server.ssrLoadModule('/src/studio/runReadiness.ts'); + assert.ok( + collectRunReadinessIssues({ sid: 'unit-preview-sid', isConnected: true, includeStudio: false }).some( + (issue) => issue.code === 'graph_output_missing', + ), + ); +}); + +test('synthetic fresh and warm observations require task/request/source correlation before an explicit atomic Apply', async (t) => { + for (const warm of [false, true]) + await t.test(warm ? 'original producer A with current cached dispatch B' : 'fresh current producer B', async () => { + const { ownerId } = await setup(); + await preview.enablePromptEnhancement(ownerId); + const run = await preview.startPromptEnhancementPreview(ownerId, child.id), + envelope = syntheticEnvelope(run, warm); + const original = activeOwner(ownerId).data.params.prompt.value; + const ticket = await preview.finishPromptEnhancementPreview(run); + assert.equal( + preview.promptEnhancementPreviewDetails(ticket).producer.taskId, + warm ? 'synthetic-preview-A' : run.taskId, + ); + assert.equal( + activeOwner(ownerId).data.params.prompt.value, + original, + 'Verification alone must not edit authored values.', + ); + await preview.applyPromptEnhancementPreview(ticket); + assert.equal(activeOwner(ownerId).data.params.prompt.value, JSON.parse(envelope.value).proposal.text); + flow.getState().undo(); + assert.equal(activeOwner(ownerId).data.params.prompt.value, original); + await assert.rejects(preview.applyPromptEnhancementPreview(ticket), /new verified Preview/i); + }); +}); + +test('synthetic observation drift, contradictory cache origin, duplicate JSON and later edits cannot mint or reuse Apply', async (t) => { + for (const fault of ['task', 'source', 'graph', 'request', 'consumed', 'digest', 'duplicate', 'later-edit']) + await t.test(fault, async () => { + const { ownerId } = await setup(); + await preview.enablePromptEnhancement(ownerId); + const run = await preview.startPromptEnhancementPreview(ownerId, child.id), + envelope = syntheticEnvelope(run, true); + if (fault === 'task') envelope.observation.dispatch.taskId = 'foreign-task'; + if (fault === 'source') envelope.observation.producer.workerInstance = 'replacement-worker'; + if (fault === 'graph') envelope.observation.producer.graphHash = `sha256:workflow-auto-v1:${'c'.repeat(64)}`; + if (fault === 'request') envelope.observation.request.authoredPromptSha256 = sha('other raw prompt'); + if (fault === 'consumed') + envelope.observation.consumedInput.fingerprints.rendered_input_ids_sha256 = sha('other processed tokens'); + if (fault === 'digest') envelope.observation.summarySha256 = sha('different summary bytes'); + cacheBody = JSON.stringify(envelope); + if (fault === 'duplicate') cacheBody = cacheBody.replace('{"value":', '{"value":"discarded","value":'); + const before = activeOwner(ownerId).data.params.prompt.value; + if (fault === 'later-edit') { + const ticket = await preview.finishPromptEnhancementPreview(run); + editOwnerField(ownerId, 'prompt', 'Later user edit'); + await assert.rejects(preview.applyPromptEnhancementPreview(ticket), /changed|fresh|workflow/i); + assert.equal(activeOwner(ownerId).data.params.prompt.value, 'Later user edit'); + } else { + await assert.rejects( + preview.finishPromptEnhancementPreview(run), + /changed|Preview|duplicate|observ|producer|task|graph|input/i, + ); + assert.equal(activeOwner(ownerId).data.params.prompt.value, before); + } + }); +}); + +test('metadata reads bound streamed bytes and reject invalid UTF8 before creating a verified ticket', async (t) => { + for (const fault of ['overflow', 'invalid-utf8', 'advertised-overflow', 'advertised-invalid']) + await t.test(fault, async () => { + const { ownerId } = await setup(); + await preview.enablePromptEnhancement(ownerId); + const run = await preview.startPromptEnhancementPreview(ownerId, child.id); + syntheticEnvelope(run); + let cancelled = false; + const limit = (await server.ssrLoadModule('/src/studio/promptEnhancementSummary.ts')) + .MAX_ENHANCEMENT_ENVELOPE_BYTES; + cacheBody = + fault === 'invalid-utf8' + ? new Response(new Uint8Array([0xc3, 0x28])) + : new Response( + new ReadableStream({ + pull(controller) { + controller.enqueue(new Uint8Array(limit + 1)); + }, + cancel() { + cancelled = true; + }, + }), + { + headers: fault.startsWith('advertised') + ? { 'Content-Length': fault === 'advertised-invalid' ? 'not-a-number' : String(limit + 1) } + : {}, + }, + ); + await assert.rejects(preview.finishPromptEnhancementPreview(run), /byte limit|encoded data|UTF/i); + if (fault !== 'invalid-utf8') assert.equal(cancelled, true); + assert.equal(activeOwner(ownerId).data.params.prompt.value, ' Authored unit prompt.\n'); + }); +}); + +test('metadata status failures retain the HTTP status and cannot change authored inputs', async () => { + const { ownerId } = await setup(); + await preview.enablePromptEnhancement(ownerId); + const run = await preview.startPromptEnhancementPreview(ownerId, child.id); + syntheticEnvelope(run); + cacheBody = new Response('Unavailable metadata', { status: 503 }); + await assert.rejects( + preview.finishPromptEnhancementPreview(run), + (error) => error.kind === 'http' && error.status === 503 && /Preview metadata/.test(error.message), + ); + assert.equal(activeOwner(ownerId).data.params.prompt.value, ' Authored unit prompt.\n'); +}); + +test('cancelling a metadata body read uses the shared transport without changing authored inputs', async () => { + const { ownerId } = await setup(); + await preview.enablePromptEnhancement(ownerId); + const run = await preview.startPromptEnhancementPreview(ownerId, child.id); + syntheticEnvelope(run); + const previousFetch = globalThis.fetch, + controller = new AbortController(); + let bodyStarted; + const started = new Promise((resolve) => { + bodyStarted = resolve; + }); + globalThis.fetch = async (url, init) => { + if (!new URL(String(url)).pathname.startsWith('/cache/')) return previousFetch(url, init); + assert.equal(init.cache, 'no-store'); + return new Response( + new ReadableStream({ + start(stream) { + init.signal.addEventListener('abort', () => stream.error(init.signal.reason), { once: true }); + }, + pull() { + bodyStarted(); + }, + }), + ); + }; + const pending = preview.finishPromptEnhancementPreview(run, controller.signal); + const rejected = assert.rejects(pending, (error) => error.kind === 'aborted'); + await started; + controller.abort(new Error('Unit read cancelled.')); + await rejected; + assert.equal(activeOwner(ownerId).data.params.prompt.value, ' Authored unit prompt.\n'); +}); + +test('changing an enabled parent requires Disable; a disabled change derives a fresh exact offer from its new starter', async () => { + const { ownerId } = await setup(); + await preview.enablePromptEnhancement(ownerId); + const { planOperationChange } = await server.ssrLoadModule('/src/workflow/operationAuthoring.ts'); + const { requestOperationStarter } = await server.ssrLoadModule('/src/workflow/operationStarterRequest.ts'); + const { visualOperationOwnerId } = await server.ssrLoadModule('/src/workflow/visualOperationGroups.ts'); + const { expandFlowExecutionGraph } = await server.ssrLoadModule('/src/stores/useFlowStore.ts'); + const starter = await requestOperationStarter( + fixture.selection.pipelineClass, + fixture.selection.task, + fixture.operationContracts, + undefined, + fixture.selection.executionProfileId, + fixture.selection.authoringRecipeId, + ); + const loaderId = (graph) => { + const root = graph.nodes.find((node) => + node.data.blockInstanceV2?.effectiveGraph.nodes.some((leaf) => leaf.data.studioRole === 'models'), + ); + const leaf = root.data.blockInstanceV2.effectiveGraph.nodes.find((leaf) => leaf.data.studioRole === 'models'); + return visualOperationOwnerId(graph, leaf.nodeId, root.id); + }; + const enabled = flow.getState().toObject(); + assert.throws( + () => planOperationChange(enabled, loaderId(enabled), starter, { restoreDefaults: true }), + /disable.*enhancement/i, + ); + assert.equal(activeOwner(ownerId).data.params.prompt.value, ' Authored unit prompt.\n'); + await preview.disablePromptEnhancement(ownerId, child.id); + const disabled = flow.getState().toObject(); + const plan = planOperationChange(disabled, loaderId(disabled), starter, { restoreDefaults: true }); + const native = expandFlowExecutionGraph(plan.graph.nodes, plan.graph.edges); + const ownerKey = parent.roles.find(([role]) => role === child.bindings.owner.role)[1]; + const prompt = native.nodes.find((node) => `${node.data.module}.${node.data.action}` === ownerKey); + assert.ok( + prompt.data.operationAuthoring.ancillaryParent, + 'A complete disabled parent must receive a fresh backend-declared advisory offer.', + ); + assert.equal( + prompt.data.operationAuthoring.ancillaryParent.parent.authoringContentHash, + starter.authoring.contentHash, + ); + const offer = prompt.data.operationAuthoring.ancillaryParent; + assert.deepEqual(Object.keys(offer.parentRoleNodes).sort(), parent.roles.map(([role]) => role).sort()); + for (const [role, key] of starter.authoring.roles) { + const actual = native.nodes.find((node) => node.id === offer.parentRoleNodes[role]); + assert.ok(actual, `The new role ${role} must point to an actual current native leaf.`); + assert.equal(`${actual.data.module}.${actual.data.action}`, key); + } + assert.equal(plan.graph.nodes.length, 4); + assert.equal(prompt.data.operationAuthoring.ancillaryBindings, undefined); +}); + +test('normal Enable and reloaded Preview renew selected parent fields absent from the generic raw registry', async () => { + const { ownerId } = await setup(); + const nextRegistry = structuredClone(registry.getState().nodesRegistry); + const key = fixture.response.authoring.roles.find( + ([role]) => role === fixture.response.authoring.ancillaryOperations[0].bindings.owner.role, + )[1]; + delete nextRegistry[key].params.prompt; + delete nextRegistry[key].params.layout_conditioning; + registry.setState({ nodesRegistry: nextRegistry }); + await preview.enablePromptEnhancement(ownerId); + const enabled = JSON.parse(JSON.stringify(flow.getState().toObject())); + flow.setState(enabled); + await preview.currentPromptEnhancementDeclaration(ownerId, fixture.response.authoring.ancillaryOperations[0].id); + await preview.startPromptEnhancementPreview(ownerId, fixture.response.authoring.ancillaryOperations[0].id); + assert.equal(submitted.runtimeHints.executionPurpose.kind, 'explicit_preview'); + assert.deepEqual(registry.getState().nodesRegistry, nextRegistry); +}); diff --git a/scripts/prompt-enhancement-summary.test.mjs b/scripts/prompt-enhancement-summary.test.mjs new file mode 100644 index 00000000..d39a3bb7 --- /dev/null +++ b/scripts/prompt-enhancement-summary.test.mjs @@ -0,0 +1,694 @@ +import assert from 'node:assert/strict'; +import { createHash } from 'node:crypto'; +import { after, before, test } from 'node:test'; +import { createServer } from 'vite'; + +let server, contract, canonical; +before(async () => { + server = await createServer({ + configFile: false, + logLevel: 'silent', + appType: 'custom', + optimizeDeps: { entries: [], noDiscovery: true }, + server: { middlewareMode: true, watch: null }, + }); + contract = await server.ssrLoadModule('/src/studio/promptEnhancementSummary.ts'); + canonical = (await server.ssrLoadModule('/src/studio/blockSchemaV2.ts')).canonicalBlockStringifyV2; +}); +after(async () => server?.close()); + +const sha = (text) => `sha256:${createHash('sha256').update(text, 'utf8').digest('hex')}`; +const copy = (value) => structuredClone(value); + +// Synthetic protocol fixture only. Its receipt digest is independently generated +// by the existing HFT _canonical_json/_sealed_receipt source for this closed receipt. +// This is not a model, actual processor/rendered token or producer fixture. +const nativeReceipt = { + schemaVersion: 1, + library: 'transformers', + task: 'image-video-to-text', + source: { kind: 'hub', repository: 'synthetic/review-fixture', revision: 'a'.repeat(40) }, + loader: { preprocessorAutoClass: 'AutoProcessor', modelAutoClass: 'AutoModelForImageTextToText' }, + security: { localFilesOnly: true, trustRemoteCode: false, safetensorsOnly: true, hostedInference: false }, + runtime: { + transformersVersion: '5.18.0', + dtype: 'float32', + device: 'cpu', + preprocessorClass: 'FixtureProcessor', + modelClass: 'FixtureVisionTextModel', + modelType: 'fixture_model', + architectures: ['FixtureVisionTextModel'], + quantization: { mode: 'none' }, + }, + receiptDigest: 'sha256:bf02490f3df13b73bc28a5233592944a839598466d607ec2763a7466bfd25084', +}; +const controls = { + max_new_tokens: 16, + min_new_tokens: 0, + do_sample: false, + num_beams: 1, + repetition_penalty: 1, + return_dict_in_generate: false, + use_chat_template: true, +}; +const producer = { + taskId: 'synthetic-task-A', + attemptIndex: 0, + node: { id: 'synthetic/prompt', module: 'modules.HuggingFaceTransformers', action: 'GenerateImageVideoText' }, + sid: null, + workerInstance: 'synthetic-worker', + backendSourceFingerprint: `sha256:backend-source-v1:${'b'.repeat(64)}`, + graphHash: `sha256:workflow-auto-v1:${'c'.repeat(64)}`, + recipe: null, + uiContext: { + clientRunId: null, + runInputHash: null, + workflowTabId: null, + workflowCanvasEpoch: null, + workflowFormEpoch: null, + }, +}; +const adapter = { id: 'synthetic-enhancement-v1', declarationSha256: sha('synthetic descriptor bytes\n') }; + +function fixture({ + images = 0, + layout = null, + invalidLayout = false, + prompt = ' Synthetic authored prompt 😀.\n', +} = {}) { + const references = Array.from({ length: images }, (_, index) => ({ + index, + mode: 'RGB', + width: 2, + height: 3, + sha256: sha(`synthetic ordered RGB source ${index}`), + })); + const bbox = Boolean(layout?.regions.length); + const mode = `${images ? 'i2i' : 't2i'}${bbox ? '_bbox' : ''}`; + const rendered = `synthetic rendered ${prompt}`; + const consumed = { + schemaVersion: 1, + renderedPrompt: rendered, + references, + processedImageGrid: references.map(() => [1, 1, 2]), + fingerprints: { + operation: 'enhance_prompt', + enhancement_max_new_tokens: controls.max_new_tokens, + prompt_adapter_id: adapter.id, + system_prompt_mode: mode, + system_prompt_sha256: sha('synthetic system').slice(7), + rendered_prompt_sha256: sha(rendered), + rendered_prompt_utf8_bytes: Buffer.byteLength(rendered), + rendered_input_ids_sha256: sha('synthetic input IDs'), + reference_source_sha256: references.map((ref) => ref.sha256), + ...(images + ? { + processed_pixel_sha256: sha('synthetic pixels'), + processed_grid_sha256: sha('synthetic grid'), + processed_pixel_shape: [images * 2, 4], + processed_grid_shape: [images, 3], + } + : {}), + }, + }; + let structured = null; + if (bbox && !invalidLayout) { + const proposed = copy(layout); + for (const region of proposed.regions) region.description = `Proposed ${region.id}`; + structured = { + schemaVersion: 1, + caption: proposed.regions.map((region) => `<${region.id}>`).join(' beside '), + layoutConditioning: proposed, + rawTable: proposed.regions.map((region) => ({ + id: region.id, + ...(images + ? { from: 'target', src_bbox: null, tgt_bbox: [200, 100, 700, 400] } + : { bbox: [200, 100, 700, 400] }), + desc: region.description, + })), + }; + } + const value = { + schemaVersion: 1, + kind: 'prompt-enhancement-proposal', + producer: copy(producer), + adapter: copy(adapter), + request: { + authoredPromptSha256: sha(prompt), + authoredLayoutKind: layout === null ? 'none' : 'object', + authoredLayoutSha256: layout === null ? null : sha(canonical({ kind: 'object', value: layout })), + controls: copy(controls), + consumedInputSha256: sha(canonical(consumed)), + }, + modelReceipt: copy(nativeReceipt), + consumedInput: consumed, + proposal: { + mode, + text: bbox ? null : 'Synthetic proposal text.', + structuredProposal: structured, + finishReason: 'stop', + inputTokens: 7, + generatedTokens: 3, + applyRequired: true, + applicationAllowed: !invalidLayout, + layoutOutputValidated: bbox ? !invalidLayout : null, + semanticFidelityVerified: false, + applicationBlockedReason: invalidLayout ? 'Invalid generated target layout: synthetic diagnostic.' : null, + }, + }; + const expectedReceipt = copy(nativeReceipt); + delete expectedReceipt.receiptDigest; + return { + value, + expected: { + producer: copy(producer), + adapter: copy(adapter), + modelReceipt: expectedReceipt, + authoredPrompt: prompt, + authoredLayout: copy(layout), + controls: copy(controls), + systemPromptSha256: sha('synthetic system').slice(7), + references: copy(references), + }, + }; +} +const layout = (version = 2) => ({ + schemaVersion: version, + coordinateSpace: 'normalized_xyxy', + regions: [ + { + id: 'region_1', + description: 'Authored description.', + targetBox: [0.1, 0.2, 0.4, 0.7], + ...(version === 2 ? { action: 'place' } : {}), + }, + ], +}); +const parse = (value) => contract.parsePromptEnhancementSummary(JSON.stringify(value)); +const verify = ({ value, expected }) => + contract.verifyPromptEnhancementSummaryBindings(JSON.stringify(value), expected); + +test('synthetic text, image and target-layout summaries parse and match external snapshots without granting Apply', async (t) => { + for (const settings of [ + {}, + { images: 1 }, + { images: 10 }, + { layout: layout(1) }, + { layout: layout(2), images: 2 }, + { layout: layout(), invalidLayout: true }, + { layout: { schemaVersion: 2, coordinateSpace: 'normalized_xyxy', regions: [] } }, + ]) + await t.test(JSON.stringify(settings), async () => { + const input = fixture(settings); + const result = await verify(input); + assert.deepEqual(result, input.value); + assert.equal(result.producer.recipe, null); + assert.equal(Object.hasOwn(result, 'canApply'), false); + assert.equal(result.proposal.semanticFidelityVerified, false); + }); +}); + +test('the existing native ASCII receipt digest is verified in its own closed domain', async () => { + const input = fixture(); + assert.equal(sha(canonical(input.expected.modelReceipt)), nativeReceipt.receiptDigest); + await verify(input); + input.value.modelReceipt.receiptDigest = `sha256:${'0'.repeat(64)}`; + await assert.rejects(verify(input), /native receipt digest/); +}); + +test('raw lexical reader refuses duplicate and escape-equivalent keys before JSON.parse loses them', () => { + const raw = JSON.stringify(fixture().value); + for (const key of ['schemaVersion', 'schema\\u0056ersion']) + assert.throws(() => contract.parsePromptEnhancementSummary(`{"${key}":1,${raw.slice(1)}`), /duplicate JSON key/); + assert.throws( + () => + contract.parsePromptEnhancementSummary( + raw.replace('"attemptIndex":0', '"attemptIndex":0,"attempt\\u0049ndex":0'), + ), + /duplicate JSON key/, + ); + const input = fixture({ prompt: 'A string containing {"x":1,"x":2} is ordinary authored text.' }); + assert.doesNotThrow(() => parse(input.value)); +}); + +test('raw parser rejects objects without traversing getters and refuses invalid JSON/Unicode/nonfinite values', () => { + let accessed = false; + assert.throws( + () => + contract.parsePromptEnhancementSummary({ + get schemaVersion() { + accessed = true; + return 1; + }, + }), + /raw JSON text/, + ); + assert.equal(accessed, false); + const raw = JSON.stringify(fixture().value); + for (const bad of [ + '', + 'null', + '{', + raw + ' garbage', + raw.replace('"inputTokens":7', '"inputTokens":1e999'), + raw.replace('Synthetic proposal text.', '\\ud800'), + raw + '\ud800', + ]) + assert.throws(() => contract.parsePromptEnhancementSummary(bad)); +}); + +test('wire, depth, entry and key limits are finite and exact', () => { + const raw = JSON.stringify(fixture().value); + const padding = contract.MAX_ENHANCEMENT_SUMMARY_BYTES - Buffer.byteLength(raw); + assert.doesNotThrow(() => contract.parsePromptEnhancementSummary(raw + ' '.repeat(padding))); + assert.throws(() => contract.parsePromptEnhancementSummary(raw + ' '.repeat(padding + 1)), /2 MiB/); + assert.throws(() => contract.parsePromptEnhancementSummary('['.repeat(17) + '0' + ']'.repeat(17)), /depth/); + assert.throws(() => contract.parsePromptEnhancementSummary(JSON.stringify(Array(8192).fill(0))), /entries/); + assert.throws( + () => + contract.parsePromptEnhancementSummary( + JSON.stringify(Object.fromEntries(Array.from({ length: 33 }, (_, i) => [`k${i}`, i]))), + ), + /32 keys/, + ); +}); + +test('closed fields refuse bool-as-int, coercion, foreign actions, sources, grants and reserved layout strings', async (t) => { + const cases = { + schema: (x) => { + x.schemaVersion = true; + }, + kind: (x) => { + x.kind = ['prompt-enhancement-proposal']; + }, + unknown: (x) => { + x.canApply = true; + }, + producerNull: (x) => { + x.producer = null; + }, + attempt: (x) => { + x.producer.attemptIndex = true; + }, + foreignAction: (x) => { + x.producer.node.action = 'PredictDepth'; + }, + recipe: (x) => { + x.producer.recipe = { schemaVersion: 1, id: 'fake' }; + }, + source: (x) => { + x.producer.backendSourceFingerprint = sha('wrong domain'); + }, + layoutString: (x) => { + x.request.authoredLayoutKind = 'string'; + x.request.authoredLayoutSha256 = sha('null'); + }, + rawLayoutHash: (x) => { + x.request.authoredLayoutSha256 = sha('none'); + }, + sourceLocal: (x) => { + x.modelReceipt.source = { kind: 'local', path: 'C:/private' }; + }, + remote: (x) => { + x.modelReceipt.security.trustRemoteCode = true; + }, + quant: (x) => { + x.modelReceipt.runtime.quantization.mode = 'bnb_4bit'; + }, + modelClass: (x) => { + x.modelReceipt.runtime.modelClass = ['FixtureVisionTextModel']; + }, + sampled: (x) => { + x.request.controls.do_sample = true; + }, + unconsumed: (x) => { + x.request.controls.temperature = 0.7; + }, + maxTokens: (x) => { + x.request.controls.max_new_tokens = 3585; + }, + finishReason: (x) => { + x.proposal.finishReason = 'length'; + }, + plainFlag: (x) => { + x.proposal.layoutOutputValidated = false; + }, + fidelity: (x) => { + x.proposal.semanticFidelityVerified = true; + }, + implicit: (x) => { + x.proposal.applyRequired = false; + }, + plainTextControl: (x) => { + x.proposal.text = 'Bad\u0080text'; + }, + }; + for (const [name, mutate] of Object.entries(cases)) + await t.test(name, () => { + const { value } = fixture(); + mutate(value); + assert.throws(() => parse(value)); + }); +}); + +test('actual current opaque API correlation and null observations stay valid, never synthetic UI authority', async () => { + const input = fixture(); + input.value.producer.uiContext.runInputHash = 'api-correlation:any-reviewed-string'; + input.expected.producer.uiContext.runInputHash = 'api-correlation:any-reviewed-string'; + await verify(input); + assert.equal(input.value.producer.sid, null); + input.value.producer.uiContext.workflowFormEpoch = Number.MAX_SAFE_INTEGER + 1; + assert.throws(() => parse(input.value)); +}); + +test('ordered references, processed geometry and hash domains must agree before digest matching', async (t) => { + const cases = { + order: (x) => { + x.consumedInput.references.reverse(); + }, + mode: (x) => { + x.consumedInput.references[0].mode = 'RGBA'; + }, + refHash: (x) => { + x.consumedInput.fingerprints.reference_source_sha256.reverse(); + }, + width: (x) => { + x.consumedInput.references[0].width = true; + }, + gridCount: (x) => { + x.consumedInput.processedImageGrid.pop(); + }, + gridZero: (x) => { + x.consumedInput.processedImageGrid[0][0] = 0; + }, + pixelRows: (x) => { + x.consumedInput.fingerprints.processed_pixel_shape[0] = 5; + }, + gridShape: (x) => { + x.consumedInput.fingerprints.processed_grid_shape = [1, 3]; + }, + missing: (x) => { + delete x.consumedInput.fingerprints.processed_grid_sha256; + }, + prefix: (x) => { + x.consumedInput.fingerprints.system_prompt_sha256 = sha('system'); + }, + bytes: (x) => { + x.consumedInput.fingerprints.rendered_prompt_utf8_bytes++; + }, + Nul: (x) => { + x.consumedInput.renderedPrompt += '\0'; + }, + }; + for (const [name, mutate] of Object.entries(cases)) + await t.test(name, () => { + const { value } = fixture({ images: 2 }); + mutate(value); + assert.throws(() => parse(value)); + }); + const input = fixture(); + input.value.consumedInput.fingerprints.processed_grid_shape = [0, 3]; + assert.throws(() => parse(input.value)); +}); + +test('target proposals refuse changed boxes, unknown IDs/tags, sources and contradictory flags', async (t) => { + const cases = { + box: (x) => { + x.proposal.structuredProposal.rawTable[0].tgt_bbox[0]++; + }, + id: (x) => { + x.proposal.structuredProposal.rawTable[0].id = 'foreign'; + }, + description: (x) => { + x.proposal.structuredProposal.rawTable[0].desc = 'foreign'; + }, + source: (x) => { + x.proposal.structuredProposal.rawTable[0].from = 'ref_image_0'; + }, + tag: (x) => { + x.proposal.structuredProposal.caption += ''; + }, + referenceTag: (x) => { + x.proposal.structuredProposal.caption += ''; + }, + sourceRegion: (x) => { + x.proposal.structuredProposal.layoutConditioning.regions[0].source = { + referenceIndex: 0, + box: [0, 0, 1, 1], + expectedReferenceId: sha('fake'), + }; + }, + extraText: (x) => { + x.proposal.text = 'caption/table'; + }, + flag: (x) => { + x.proposal.applicationAllowed = false; + }, + reason: (x) => { + x.proposal.applicationBlockedReason = 'contradictory'; + }, + nullStructure: (x) => { + x.proposal.structuredProposal = null; + }, + }; + for (const [name, mutate] of Object.entries(cases)) + await t.test(name, () => { + const { value } = fixture({ images: 1, layout: layout() }); + mutate(value); + assert.throws(() => parse(value)); + }); + const input = fixture({ layout: layout() }); + input.value.proposal.structuredProposal.layoutConditioning.regions[0].targetBox[0] = 0.10000000000000002; + assert.throws(() => parse(input.value), /integer grid/); +}); + +test('digest and external binding checks refuse tampering rather than trusting self-selected declarations', async (t) => { + const cases = { + adapter: (x) => { + x.value.adapter.declarationSha256 = sha('forged declaration'); + }, + receipt: (x) => { + x.value.modelReceipt.receiptDigest = sha('forged receipt'); + }, + consumed: (x) => { + x.value.request.consumedInputSha256 = sha('forged consumed'); + }, + rendered: (x) => { + x.value.consumedInput.fingerprints.rendered_prompt_sha256 = sha('forged rendered'); + }, + prompt: (x) => { + x.expected.authoredPrompt = x.expected.authoredPrompt.trim(); + }, + task: (x) => { + x.expected.producer.taskId = 'later-task-B'; + }, + attempt: (x) => { + x.expected.producer.attemptIndex = 1; + }, + worker: (x) => { + x.expected.producer.workerInstance = 'new-worker'; + }, + source: (x) => { + x.expected.producer.backendSourceFingerprint = `sha256:backend-source-v1:${'d'.repeat(64)}`; + }, + tab: (x) => { + x.expected.producer.uiContext.workflowTabId = 'foreign-tab'; + }, + model: (x) => { + x.expected.modelReceipt.source.revision = 'd'.repeat(40); + }, + controls: (x) => { + x.expected.controls.min_new_tokens = 1; + }, + references: (x) => { + x.expected.references[0].sha256 = sha('replaced source'); + }, + }; + for (const [name, mutate] of Object.entries(cases)) + await t.test(name, async () => { + const input = fixture({ images: 1 }); + mutate(input); + await assert.rejects(verify(input)); + }); +}); + +test('raw layout hashing preserves representation and geometry while descriptions may be proposed', async () => { + const input = fixture({ layout: layout() }); + await verify(input); + input.expected.authoredLayout.regions[0].description = 'A concurrent authored layout edit.'; + await assert.rejects(verify(input), /authored layout digest/); + const next = fixture({ layout: layout() }); + next.expected.authoredLayout.regions[0].targetBox[0] = 0.2; + await assert.rejects(verify(next), /authored layout digest/); + const invalid = fixture(); + invalid.expected.authoredLayout = 'null'; + await assert.rejects(verify(invalid)); +}); + +test('external snapshot rejects getters/toJSON and is detached before async hashing', async () => { + const input = fixture(); + let accessed = false; + Object.defineProperty(input.expected, 'authoredPrompt', { + enumerable: true, + get() { + accessed = true; + return 'bad'; + }, + }); + await assert.rejects(verify(input), /data bindings/); + assert.equal(accessed, false); + const valid = fixture(); + const pending = verify(valid); + valid.expected.authoredPrompt = 'Changed after the explicit immutable snapshot.'; + assert.equal((await pending).producer.taskId, producer.taskId); + // A future UI still must recheck its live editing epoch after every await. +}); + +test('parity: native five-digit devices and 256-character type/architecture observations remain accepted', () => { + const input = fixture(); + input.value.modelReceipt.runtime.device = 'cuda:12345'; + input.value.modelReceipt.runtime.modelType = 'A' + '-'.repeat(255); + input.value.modelReceipt.runtime.architectures = ['Model-With-Hyphen']; + assert.doesNotThrow(() => parse(input.value)); +}); + +test('parity: malformed model type observations cannot become a native receipt', () => { + for (const modelType of ['invalid space', 'invalid_\u{1f600}', 'A'.repeat(257), [], true]) { + const input = fixture(); + input.value.modelReceipt.runtime.modelType = modelType; + assert.throws(() => parse(input.value), /type|class/); + } +}); + +test('parity: JSON structural entries include every object key', () => { + const raw = JSON.stringify(Array.from({ length: 3000 }, () => ({ a: 0 }))); + assert.throws(() => contract.parsePromptEnhancementSummary(raw), /entries/); +}); + +test('parity: the existing consumed ASCII projection budget remains additive to UTF8', () => { + const input = fixture(); + input.value.consumedInput.renderedPrompt = '\u{1f600}'.repeat(24000); + input.value.consumedInput.fingerprints.rendered_prompt_utf8_bytes = 96000; + input.value.consumedInput.fingerprints.rendered_prompt_sha256 = sha(input.value.consumedInput.renderedPrompt); + assert.throws(() => parse(input.value), /ASCII/); +}); + +test('parity: the existing structured ASCII projection budget remains additive to UTF8', () => { + const authored = layout(); + authored.regions = Array.from({ length: 32 }, (_, index) => ({ + ...copy(authored.regions[0]), + id: `region_${index}`, + })); + const input = fixture({ layout: authored }); + for (const region of input.value.proposal.structuredProposal.layoutConditioning.regions) + region.description = '\u{1f600}'.repeat(350); + for (const row of input.value.proposal.structuredProposal.rawTable) row.desc = '\u{1f600}'.repeat(350); + assert.throws(() => parse(input.value), /ASCII/); +}); + +test('parity: structured captions preserve the producer Markdown fence refusal', () => { + const input = fixture({ layout: layout() }); + input.value.proposal.structuredProposal.caption += ' ```'; + assert.throws(() => parse(input.value), /fence/); +}); + +test('parity: external snapshot key bytes are bounded before unknown-key validation', async () => { + const input = fixture(); + input.expected['x'.repeat(contract.MAX_ENHANCEMENT_SUMMARY_BYTES + 1)] = null; + await assert.rejects(verify(input), /binding.*limit/); +}); + +test('historical ASCII lexical guard preserves native float/exponent spelling and exact boundary', () => { + // Padding independently measured with Python json.dumps(ensure_ascii=True), + // using native 1.0 / 1e-07 spellings. This is a lexical-budget probe, not a DTO. + const prefix = 'escaped " quote } [ {"x":1} \u00e9'; + for (const key of ['consumedInput', 'consumed\\u0049nput', 'structuredProposal', 'structured\\u0050roposal']) { + const raw = (extra) => + `{"${key}":{"text":${JSON.stringify(prefix + 'x'.repeat(262070 + extra))},"n":1.0,"tiny":1e-07}}`; + assert.throws( + () => contract.parsePromptEnhancementSummary(raw(0)), + (error) => !/ASCII/.test(error.message), + ); + assert.throws(() => contract.parsePromptEnhancementSummary(raw(1)), /ASCII/); + } + assert.throws(() => contract.parsePromptEnhancementSummary('{"consumedInput":{"n":1e--07}}'), SyntaxError); +}); + +test('Markdown fences in a target description are also refused before successful layout transport', () => { + const input = fixture({ layout: layout() }); + input.value.proposal.structuredProposal.layoutConditioning.regions[0].description = 'not ``` native output'; + input.value.proposal.structuredProposal.rawTable[0].desc = 'not ``` native output'; + assert.throws(() => parse(input.value), /fence/); +}); + +test('decoded C0 controls are refused in every wire string, including nonhuman identities', () => { + for (const mutate of [ + (value) => { + value.producer.taskId = 'task\u0000'; + }, + (value) => { + value.producer.sid = 'sid\u0001'; + }, + (value) => { + value.modelReceipt.runtime.transformersVersion = '5.18.0\u001f'; + }, + ]) { + const input = fixture(); + mutate(input.value); + assert.throws(() => parse(input.value), /control/); + } +}); + +test('decoded C1 controls are refused in nonhuman identities while tab LF CR remain valid', () => { + for (const mutate of [ + (value) => { + value.producer.workerInstance = 'unit\u007fworker'; + }, + (value) => { + value.producer.uiContext.runInputHash = 'opaque\u0085correlation'; + }, + (value) => { + value.modelReceipt.runtime.transformersVersion = '5.18.0\u009f'; + }, + ]) { + const input = fixture(); + mutate(input.value); + assert.throws(() => parse(input.value), /control/); + } + const input = fixture(); + input.value.producer.uiContext.runInputHash = 'opaque\t\n\rcorrelation'; + assert.doesNotThrow(() => parse(input.value)); +}); + +test('exact optional native NF4 receipt is transport data and malformed recipes refuse', async () => { + const input = fixture(); + const quantization = { + mode: 'bnb_4bit', + quantType: 'nf4', + doubleQuant: true, + computeDtype: 'bfloat16', + skipModules: ['lm_head', 'model.visual'], + }; + input.value.modelReceipt.runtime.quantization = copy(quantization); + input.expected.modelReceipt.runtime.quantization = copy(quantization); + input.value.modelReceipt.receiptDigest = sha(canonical(input.expected.modelReceipt)); + const result = await verify(input); + assert.deepEqual(result.modelReceipt.runtime.quantization, quantization); + assert.equal(Object.hasOwn(result, 'canApply'), false); + for (const changed of [ + { ...quantization, doubleQuant: false }, + { ...quantization, doubleQuant: 1 }, + { ...quantization, quantType: 'fp4' }, + { ...quantization, computeDtype: 'float16' }, + { ...quantization, skipModules: ['model.visual', 'lm_head'] }, + { ...quantization, skipModules: ['lm_head'] }, + { ...quantization, skipModules: ['lm_head', 'model.visual', 'extra'] }, + { ...quantization, unexpected: true }, + { mode: ['none'] }, + { mode: 'none', quantType: 'nf4' }, + ]) { + const malformed = copy(input.value); + malformed.modelReceipt.runtime.quantization = changed; + assert.throws(() => parse(malformed), /quantized provider|unknown|missing/); + } +}); diff --git a/scripts/registered-block-v2-insertion.test.mjs b/scripts/registered-block-v2-insertion.test.mjs index 59d32d42..34526a55 100644 --- a/scripts/registered-block-v2-insertion.test.mjs +++ b/scripts/registered-block-v2-insertion.test.mjs @@ -319,6 +319,10 @@ function fixture() { const definitionId = 'diffusers.modular:QwenImageModularPipeline:text2image'; const admissionId = 'diffusers.cluster-admission:QwenImageModularPipeline:text2image:mode:text_to_image'; const adapterId = 'diffusers.modular-adapter:QwenImageModularPipeline:text2image:mode:text_to_image'; + const route = routeModule.REGISTERED_BLOCK_V2_ROUTES.find( + (candidate) => candidate.definitionId === definitionId && candidate.admissionId === admissionId, + ); + assert.ok(route, 'The synthetic interaction fixture needs an exact current registered route.'); const receipt = { id: 'qwen-image-2512:modular-text-to-image:v1', contentHash: 'studio-spec-v1-f4c15e0d', @@ -377,7 +381,7 @@ function fixture() { definitionKind: 'modular_pipeline_workflow', ownership: 'library', mutable: false, - libraryRevision: 'fbf49e7f35857f76bc57b177e26f12b03687c668', + libraryRevision: route.libraryRevision, pipelineClass: 'QwenImageModularPipeline', blocksClass: 'QwenImageAutoBlocks', pipelineKind: 'auto', @@ -422,7 +426,7 @@ function fixture() { url: 'https://huggingface.co/Qwen/Qwen-Image-2512/blob/' + '25468b98e3276ca6700de15c6628e51b7de54a26/README.md', }, }, - contentHash: 'sha256:49cb50671b41cf2c03b22387cfe2cf1b37f16b2996961791505aef830817c393', + contentHash: route.definitionContentHash, }; const executionSpec = { schemaVersion: 1, @@ -489,6 +493,7 @@ function fluxFixture() { Object.assign(definition, { id: definitionId, pipelineClass: 'FluxModularPipeline', + libraryRevision: route.libraryRevision, blocksClass: 'FluxAutoBlocks', label: 'Flux — Text To Image', inputs: [{ ...definition.inputs[0], type: 'opaque' }], @@ -901,6 +906,24 @@ test('a template skeleton cannot force Expert before its managed binding is read assert.equal(finished.autoUnavailable, false); }); +test('synthetic insertion fixtures follow exact current routes while the old identity stays refused', () => { + for (const configured of [fixture(), fluxFixture()]) { + assert.ok(routeModule.registeredBlockV2Route(configured.definition, configured.admission)); + } + const { definition, admission } = fixture(); + const oldIdentity = { + libraryRevision: 'fbf49e7f35857f76bc57b177e26f12b03687c668', + contentHash: 'sha256:49cb50671b41cf2c03b22387cfe2cf1b37f16b2996961791505aef830817c393', + }; + for (const stale of [ + oldIdentity, + { libraryRevision: oldIdentity.libraryRevision }, + { contentHash: oldIdentity.contentHash }, + ]) { + assert.equal(routeModule.registeredBlockV2Route({ ...definition, ...stale }, admission), null); + } +}); + test('Qwen text-to-image fetches one audited definition and inserts only one source-neutral V2 root', async () => { const { definition } = fixture(); const observedTransientStates = []; diff --git a/scripts/registered-block-v2-route-audit.test.mjs b/scripts/registered-block-v2-route-audit.test.mjs index 44aa6ce3..df7a32b2 100644 --- a/scripts/registered-block-v2-route-audit.test.mjs +++ b/scripts/registered-block-v2-route-audit.test.mjs @@ -159,8 +159,12 @@ reviewed_step_registry = { "cache": False, } base_registry[reviewed_step_key] = deepcopy(reviewed_step_registry) +# This common DTO is byte-identical for every spec. Serialize it once; +# the client creates an independent copy only for the selected compiler input. for registry in registries.values(): - registry[reviewed_step_key] = deepcopy(reviewed_step_registry) + if reviewed_step_key in registry: + assert registry[reviewed_step_key] == reviewed_step_registry + del registry[reviewed_step_key] def _source_values(definition, admission): @@ -854,20 +858,20 @@ const REVIEWED_TERMINAL_OUTPUTS = new Map([ ['Flux2KleinPipeline', 'multi_image_reference_edit', 'diffusersImageEdit'], ['Flux2Pipeline', 'multi_image_reference_edit', 'diffusersImageEdit'], ['FluxCannyPipeline', 'control_edit_image', 'diffusersImageControlEdit'], - ['FluxCannyPipeline', 'control_image', 'diffusersImageControl'], + ['FluxCannyPipeline', 'control_image', 'decode'], ['FluxCannyPipeline', 'control_inpaint', 'diffusersImageControlInpaint'], ['FluxDepthPipeline', 'control_edit_image', 'diffusersImageControlEdit'], - ['FluxDepthPipeline', 'control_image', 'diffusersImageControl'], + ['FluxDepthPipeline', 'control_image', 'decode'], ['FluxDepthPipeline', 'control_inpaint', 'diffusersImageControlInpaint'], ['FluxDevPipeline', 'inpaint', 'diffusersImageInpaint'], - ['FluxFillPipeline', 'inpaint', 'diffusersImageInpaint'], - ['FluxFillPipeline', 'outpaint', 'diffusersImageInpaint'], + ['FluxFillPipeline', 'inpaint', 'decode'], + ['FluxFillPipeline', 'outpaint', 'decode'], ['FluxKontextInpaintPipeline', 'inpaint', 'diffusersImageInpaint'], ['FluxKontextInpaintPipeline', 'outpaint', 'diffusersImageInpaint'], ['FluxKontextPipeline', 'multi_image_reference_edit', 'diffusersImageEdit'], ['FluxKreaPipeline', 'text_to_image', 'diffusersImageGenerate'], - ['FluxReduxPipeline', 'edit_image', 'diffusersImageEdit'], - ['FluxReduxPipeline', 'multi_image_reference_edit', 'diffusersImageEdit'], + ['FluxReduxPipeline', 'edit_image', 'decode'], + ['FluxReduxPipeline', 'multi_image_reference_edit', 'decode'], ['FluxSchnellPipeline', 'text_to_image', 'diffusersImageGenerate'], ].map(([pipeline, mode, role]) => [ `diffusers.composite:${pipeline}:${mode}`, @@ -1021,6 +1025,29 @@ after(async () => { delete globalThis.localStorage; }); +function selectedCompilerRegistry(specId) { + const source = snapshot.registries[specId]; + const shared = snapshot.baseRegistry['modules.ModularDiffusers.ReviewedModularWorkflowStep']; + assert.ok(source && shared, 'the actual selected backend registry is unavailable'); + assert.equal(Object.hasOwn(source, 'modules.ModularDiffusers.ReviewedModularWorkflowStep'), false); + return { + ...structuredClone(source), + 'modules.ModularDiffusers.ReviewedModularWorkflowStep': structuredClone(shared), + }; +} + +test('the shared backend Step schema supplies independent exact compiler registries', () => { + const specId = snapshot.specs[0].id; + const key = 'modules.ModularDiffusers.ReviewedModularWorkflowStep'; + const first = selectedCompilerRegistry(specId); + const second = selectedCompilerRegistry(specId); + assert.deepEqual(first[key], snapshot.baseRegistry[key]); + assert.deepEqual(second[key], snapshot.baseRegistry[key]); + first[key].params.width.label = 'changed only in one scenario'; + assert.notEqual(first[key].params.width.label, second[key].params.width.label); + assert.deepEqual(second[key], snapshot.baseRegistry[key]); +}); + test('the real public library preserves the sealed text-Control placement and rejects unsealed or altered values', () => { const parsed = nodeLibraryModule.parseHuggingFaceNodeLibrary(snapshot.library); const definition = parsed.definitions.find( @@ -1070,7 +1097,7 @@ test('actual registered materialization rejects a changed sealed ControlNet offl instance, admission: altered, executionSpec, - nodesRegistry: snapshot.registries[executionSpec.id], + nodesRegistry: selectedCompilerRegistry(executionSpec.id), bindingValues, expanded: false, }), @@ -1099,6 +1126,7 @@ test('every explicitly routed admission is an exact backend schema-v6 compiler s for (const admission of definition.executionAdmissions.filter(eligibleAdmission)) { try { const executionSpec = specs.get(admission.studioExecutionSpec.id); + const nodesRegistry = selectedCompilerRegistry(executionSpec.id); assert.ok(executionSpec, 'the exact Studio execution specification is absent'); assert.deepEqual( { @@ -1122,7 +1150,7 @@ test('every explicitly routed admission is an exact backend schema-v6 compiler s instance, admission, executionSpec, - nodesRegistry: snapshot.registries[executionSpec.id], + nodesRegistry: nodesRegistry, bindingValues, expanded: false, }); @@ -1152,7 +1180,7 @@ test('every explicitly routed admission is an exact backend schema-v6 compiler s instance, admission, executionSpec, - nodesRegistry: snapshot.registries[executionSpec.id], + nodesRegistry: nodesRegistry, bindingValues: autoBindingValues, expanded: false, }); @@ -1212,7 +1240,7 @@ test('every explicitly routed admission is an exact backend schema-v6 compiler s skeleton, route, snapshot.library.blockDefinitions, - snapshot.registries[executionSpec.id]['modules.ModularDiffusers.ReviewedModularWorkflowStep'], + nodesRegistry['modules.ModularDiffusers.ReviewedModularWorkflowStep'], modularConditionalModule.parseHuggingFaceModularConditionalSnapshot(snapshot.modularConditionalSnapshot), snapshot.library.blockRoleAdapters, ); @@ -1224,8 +1252,7 @@ test('every explicitly routed admission is an exact backend schema-v6 compiler s ...(route ? { route } : {}), blockDefinitions: snapshot.library.blockDefinitions, blockRoleAdapters: snapshot.library.blockRoleAdapters, - reviewedModularStepNodeData: - snapshot.registries[executionSpec.id]['modules.ModularDiffusers.ReviewedModularWorkflowStep'], + reviewedModularStepNodeData: nodesRegistry['modules.ModularDiffusers.ReviewedModularWorkflowStep'], modularConditionalSnapshot: modularConditionalModule.parseHuggingFaceModularConditionalSnapshot( snapshot.modularConditionalSnapshot, ), @@ -1319,8 +1346,7 @@ test('every explicitly routed admission is an exact backend schema-v6 compiler s route: tamperedBoundary, blockDefinitions: snapshot.library.blockDefinitions, blockRoleAdapters: snapshot.library.blockRoleAdapters, - reviewedModularStepNodeData: - snapshot.registries[executionSpec.id]['modules.ModularDiffusers.ReviewedModularWorkflowStep'], + reviewedModularStepNodeData: nodesRegistry['modules.ModularDiffusers.ReviewedModularWorkflowStep'], }), /reviewed registered output projection/u, ); @@ -1344,6 +1370,7 @@ test('every explicitly routed admission is an exact backend schema-v6 compiler s let candidateSkeleton; try { const executionSpec = specs.get(admission.studioExecutionSpec.id); + const nodesRegistry = selectedCompilerRegistry(executionSpec.id); const parameterOverrides = Object.fromEntries( definition.inputs.map((field) => [field.name, field.default]), ); @@ -1363,7 +1390,7 @@ test('every explicitly routed admission is an exact backend schema-v6 compiler s instance, admission, executionSpec, - nodesRegistry: snapshot.registries[executionSpec.id], + nodesRegistry: nodesRegistry, bindingValues, expanded: false, }); @@ -1387,8 +1414,7 @@ test('every explicitly routed admission is an exact backend schema-v6 compiler s route: discoveryRoute, blockDefinitions: snapshot.library.blockDefinitions, blockRoleAdapters: snapshot.library.blockRoleAdapters, - reviewedModularStepNodeData: - snapshot.registries[executionSpec.id]['modules.ModularDiffusers.ReviewedModularWorkflowStep'], + reviewedModularStepNodeData: nodesRegistry['modules.ModularDiffusers.ReviewedModularWorkflowStep'], }); assert.ok( discovery.definition.boundary.outputs.length > 0, @@ -1434,8 +1460,7 @@ test('every explicitly routed admission is an exact backend schema-v6 compiler s route: exactRoute, blockDefinitions: snapshot.library.blockDefinitions, blockRoleAdapters: snapshot.library.blockRoleAdapters, - reviewedModularStepNodeData: - snapshot.registries[executionSpec.id]['modules.ModularDiffusers.ReviewedModularWorkflowStep'], + reviewedModularStepNodeData: nodesRegistry['modules.ModularDiffusers.ReviewedModularWorkflowStep'], }); routeCandidates.push({ ...exactRoute, @@ -1681,8 +1706,9 @@ test('every explicitly routed admission is an exact backend schema-v6 compiler s if (process.env.MODIFF_GENERATE_ROUTE_CANDIDATES !== '1') assert.ok(qwenRoute); if (process.env.MODIFF_GENERATE_ROUTE_CANDIDATES !== '1') { const qwenExecutionSpec = specs.get(qwen.admission.studioExecutionSpec.id); - const qwenReviewedStep = - snapshot.registries[qwenExecutionSpec.id]['modules.ModularDiffusers.ReviewedModularWorkflowStep']; + const qwenReviewedStep = selectedCompilerRegistry(qwenExecutionSpec.id)[ + 'modules.ModularDiffusers.ReviewedModularWorkflowStep' + ]; const exactOnce = reviewedModularGraphModule.reviewedModularGraphV2( qwen.definition, qwen.skeleton, @@ -1880,6 +1906,42 @@ test('every explicitly routed admission is an exact backend schema-v6 compiler s } }); +test('fresh Cosmos image authoring selects its new exact catalog route and rejects the historical receipt as a fallback', () => { + const definition = snapshot.library.definitions.find( + ({ id }) => id === 'diffusers.modular:Cosmos3OmniModularPipeline:text2image', + ); + const admission = definition.executionAdmissions.find(eligibleAdmission); + const executionSpec = snapshot.specs.find(({ id }) => id === admission.studioExecutionSpec.id); + assert.equal( + executionSpec.roles.some(([role]) => role === 'afterDecode'), + false, + ); + assert.notEqual(admission.studioExecutionSpec.contentHash, 'studio-spec-v1-91ed105d'); + const route = routeModule.registeredBlockV2Route(definition, admission); + assert.ok(route, 'the fresh authoritative receipt must have an exact registered route'); + assert.deepEqual(route.studioExecutionSpec, admission.studioExecutionSpec); + assert.deepEqual( + route.boundary.outputs, + [ + { + portId: 'images', + outputName: 'videos', + role: 'decode', + fieldId: 'image', + adaptation: 'direct_media', + mediaType: 'image', + }, + ], + 'the reviewed upstream frame output and backend image boundary retain their existing adaptation', + ); + const historicalAdmission = structuredClone(admission); + historicalAdmission.studioExecutionSpec.contentHash = 'studio-spec-v1-91ed105d'; + assert.equal(routeModule.registeredBlockV2Route(definition, historicalAdmission), null); + const malformedAdmission = structuredClone(admission); + malformedAdmission.studioExecutionSpec.contentHash = 'studio-spec-v1-00000000'; + assert.equal(routeModule.registeredBlockV2Route(definition, malformedAdmission), null); +}); + test('registered route identity fails closed on catalog, artifact, spec, admission, and action drift', () => { if (process.env.MODIFF_POST_PROMOTION_ADMISSION_ID) { assert.equal(process.env.MODIFF_GENERATE_ROUTE_CANDIDATES, '1'); @@ -1925,3 +1987,25 @@ test('registered route identity fails closed on catalog, artifact, spec, admissi assert.equal(routeModule.registeredBlockV2Route(changed, changedAdmission), null); }); }); + +test('ordinary composite routes retain exact current contracts and refuse artifact pin drift', async (t) => { + const pairs = snapshot.library.definitions + .filter( + (definition) => definition.provider === 'diffusers' && definition.definitionKind === 'studio_execution_composite', + ) + .flatMap((definition) => + definition.executionAdmissions.filter(eligibleAdmission).map((admission) => ({ definition, admission })), + ); + assert.equal(pairs.length, 33, 'the existing ordinary composite admission set changed'); + for (const { definition, admission } of pairs) { + await t.test(admission.id, () => { + const route = routeModule.registeredBlockV2Route(definition, admission); + assert.ok(route, 'the current source declaration must have one exact reviewed route'); + assert.deepEqual(route.studioExecutionSpec, admission.studioExecutionSpec); + assert.deepEqual(route.artifact, admission.artifact); + const foreignPin = structuredClone(admission); + foreignPin.artifact.revision = '0'.repeat(40); + assert.equal(routeModule.registeredBlockV2Route(definition, foreignPin), null); + }); + } +}); diff --git a/scripts/request-boundary.test.mjs b/scripts/request-boundary.test.mjs index dfb36755..10d8e42a 100644 --- a/scripts/request-boundary.test.mjs +++ b/scripts/request-boundary.test.mjs @@ -264,6 +264,50 @@ test('binary request helpers consume blobs and array buffers through the shared assert.deepEqual(new Uint8Array(await requestModule.requestArrayBuffer('/bytes')), bytes); }); +test('response readers retain shared cancellation and timeout through streamed body consumption', async (t) => { + for (const mode of ['aborted', 'timeout']) + await t.test(mode, async () => { + const controller = new AbortController(); + let bodyStarted; + const started = new Promise((resolve) => { + bodyStarted = resolve; + }); + globalThis.fetch = async (_url, init) => { + assert.equal(init.cache, 'no-store'); + return new Response( + new ReadableStream({ + start(stream) { + init.signal.addEventListener('abort', () => stream.error(init.signal.reason), { once: true }); + }, + pull() { + bodyStarted(); + }, + }), + ); + }; + const pending = requestModule.requestWithResponse( + '/streamed', + { + signal: controller.signal, + timeoutMs: mode === 'timeout' ? 20 : 1000, + cache: 'no-store', + }, + async (response) => { + const reader = response.body.getReader(); + try { + return await reader.read(); + } finally { + reader.releaseLock(); + } + }, + ); + const rejected = assert.rejects(pending, (error) => error.kind === mode && error.url === '/streamed'); + await started; + if (mode === 'aborted') controller.abort(new Error('Unit caller cancelled its read.')); + await rejected; + }); +}); + test('binary HTTP failures preserve structured backend messages', async () => { globalThis.fetch = async () => jsonResponse({ error: true, message: 'Media is unavailable.' }, 404); diff --git a/scripts/resolved-execution-inputs.test.mjs b/scripts/resolved-execution-inputs.test.mjs index 920ca317..0dcda352 100644 --- a/scripts/resolved-execution-inputs.test.mjs +++ b/scripts/resolved-execution-inputs.test.mjs @@ -219,6 +219,50 @@ function receipt() { }; } +test('only the actual native loader capture accepts the exact consumed weight format', () => { + const identity = { taskId: 'actual-task', attemptIndex: 2, nodeId: 'preview' }; + const make = (value, module = 'modules.ModularDiffusers', action = 'ModelsLoader') => { + const capture = receipt(); + capture.nodes.push({ + nodeId: 'weight-owner', + module, + action, + fields: { weight_format: { value, source: 'literal' } }, + omittedFields: {}, + }); + capture.summary.weightFormat = value; + return capture; + }; + for (const value of ['native', 'fp8r', 'nvfp4']) { + for (const module of ['modules.ModularDiffusers', 'ModularDiffusers']) { + const evidence = make(value, module); + assert.deepEqual(inputs.coerceResolvedExecutionInputs(evidence, identity), evidence); + const restored = contracts.coerceStudioOutput({ + id: 'weights', + url: '/out.png', + ...identity, + resolvedExecutionInputs: JSON.parse(JSON.stringify(evidence)), + }); + assert.equal(restored.resolvedExecutionInputs.summary.weightFormat, value); + const forged = structuredClone(evidence); + forged.summary.weightFormat = value === 'native' ? 'fp8r' : 'native'; + assert.equal(inputs.coerceResolvedExecutionInputs(forged, identity), undefined); + } + } + for (const invalid of ['', 'auto', 'FP8R', true, null, 1, ['native'], {}]) + assert.equal(inputs.coerceResolvedExecutionInputs(make(invalid), identity), undefined); + for (const [module, action] of [ + ['modules.ModularDiffusers', 'EncodePrompt'], + ['modules.DiffusersImage', 'LoadPipeline'], + ['modules.Foreign', 'ModelsLoader'], + ]) + assert.equal(inputs.coerceResolvedExecutionInputs(make('native', module, action), identity), undefined); + const wrongLabel = make('native'); + wrongLabel.summary = { ...receipt().summary, weight_format: 'native' }; + assert.equal(inputs.coerceResolvedExecutionInputs(wrongLabel, identity), undefined); + assert.equal(inputs.coerceResolvedExecutionInputs(receipt(), identity).summary.weightFormat, undefined); +}); + test('merged video metadata keeps requested, consumed and encoded dimensions distinct', () => { const value = contracts.coerceStudioOutput({ id: 'video', @@ -334,6 +378,72 @@ test('captured native and whole-pipeline attention/VAE policies survive history assert.deepEqual(inputs.coerceResolvedExecutionInputs(mixed, identity), mixed); }); +test('captured weight loading mode preserves its cpu/cuda value through output history', () => { + const identity = { taskId: 'actual-task', attemptIndex: 2, nodeId: 'preview' }; + for (const value of ['cpu', 'cuda']) { + const capture = receipt(); + capture.nodes.push({ + nodeId: 'loader', + module: 'modules.ModularDiffusers', + action: 'ModelsLoader', + fields: { weight_loading_mode: { value, source: 'literal' } }, + omittedFields: {}, + }); + capture.summary.weightLoadingMode = value; + assert.deepEqual(inputs.coerceResolvedExecutionInputs(capture, identity), capture); + const restored = contracts.coerceStudioOutput( + JSON.parse( + JSON.stringify({ + id: 'weight-loading', + url: '/image.webp', + ...identity, + resolvedExecutionInputs: capture, + }), + ), + ); + assert.deepEqual(restored.resolvedExecutionInputs, capture); + assert.equal(restored.resolvedExecutionInputs.summary.weightLoadingMode, value); + const forged = structuredClone(capture); + forged.summary.weightLoadingMode = value === 'cpu' ? 'cuda' : 'cpu'; + assert.equal(inputs.coerceResolvedExecutionInputs(forged, identity), undefined); + } + for (const value of ['auto', 'CUDA', '', true, null, 1, ['cpu']]) { + const capture = receipt(); + capture.nodes.push({ + nodeId: 'loader', + module: 'modules.ModularDiffusers', + action: 'ModelsLoader', + fields: { weight_loading_mode: { value, source: 'literal' } }, + omittedFields: {}, + }); + capture.summary.weightLoadingMode = value; + assert.equal(inputs.coerceResolvedExecutionInputs(capture, identity), undefined); + } + assert.equal(inputs.coerceResolvedExecutionInputs(receipt(), identity).summary.weightLoadingMode, undefined); + const mixed = receipt(); + mixed.nodes.push( + ...['cpu', 'cuda'].map((value) => ({ + nodeId: `loader-${value}`, + module: 'modules.ModularDiffusers', + action: 'ModelsLoader', + fields: { weight_loading_mode: { value, source: 'literal' } }, + omittedFields: {}, + })), + ); + mixed.ambiguousFields = ['weightLoadingMode']; + assert.deepEqual(inputs.coerceResolvedExecutionInputs(mixed, identity), mixed); + const omitted = receipt(); + omitted.nodes.push({ + nodeId: 'loader', + module: 'modules.ModularDiffusers', + action: 'ModelsLoader', + fields: {}, + omittedFields: { weight_loading_mode: 'opaque input' }, + }); + omitted.unavailableFields = ['weightLoadingMode']; + assert.deepEqual(inputs.coerceResolvedExecutionInputs(omitted, identity), omitted); +}); + test('every backend capture field survives client history parsing with node-scoped adapter identity', () => { const backend = fileURLToPath(new URL('../../MoDiff/', import.meta.url)); const python = @@ -347,13 +457,23 @@ test('every backend capture field survives client history parsing with node-scop import json from modiff.execution_input_provenance import FIELD_NAMES, NODE_FIELD_NAMES, capture_generation_inputs, build_resolved_execution_inputs cases = [] -for prefix in ("", "modules."): +for prefix, weight_mode in [(p, w) for p in ("", "modules.") for w in ("cpu", "cuda")]: nodes, records = {}, {} scopes = [("DiffusersImage", "Generate", FIELD_NAMES), *[(m, a, fields) for (m, a), fields in NODE_FIELD_NAMES.items()], ("Text", "ProcessText", {"pipeline_class": "dataOperationType"})] for index, (module, action, fields) in enumerate(scopes): key = str(index) node = {"module": prefix + module, "action": action, "params": {}} args = {name: "scope-" + str(index) + "-" + name for name in fields} + if "weight_loading_mode" in args: args["weight_loading_mode"] = weight_mode + if "weight_format" in args: args["weight_format"] = "native" + enhancement = {"operation": "enhance_prompt", "enhancement_max_new_tokens": 2, + "prompt_adapter_id": "transformers-prompt-enhancement-v1", "system_prompt_mode": "i2i", + "system_prompt_sha256": "a" * 64, "rendered_prompt_sha256": "sha256:" + "b" * 64, + "rendered_prompt_utf8_bytes": 64, "rendered_input_ids_sha256": "sha256:" + "c" * 64, + "reference_source_sha256": ["sha256:" + "d" * 64], + "processed_pixel_sha256": "sha256:" + "e" * 64, "processed_pixel_shape": [4, 5], + "processed_grid_sha256": "sha256:" + "f" * 64, "processed_grid_shape": [1, 3]} + args.update({name: value for name, value in enhancement.items() if name in args}) for name in ("conditioning_scale", "control_mode", "prompt_embeds_scale", "pooled_prompt_embeds_scale"): if name in args: args[name] = [0.4, 0.2] if "shared_conditions" in args: args["shared_conditions"] = True @@ -782,3 +902,421 @@ test('attention context reuse survives receipts and rejects a contradictory summ assert.equal(inputs.coerceResolvedExecutionInputs(value, identity), undefined); } }); + +test('image stage receipts keep loader execution mode and each consumed stage task scoped to their actual actions', () => { + const identity = { taskId: 'actual-task', attemptIndex: 2, nodeId: 'preview' }; + for (const [action, field, label] of [ + ['LoadPipeline', 'mode', 'executionMode'], + ['EncodeInputs', 'executed_task', 'executedTask'], + ['Denoise', 'executed_task', 'executedTask'], + ['DecodeLatents', 'executed_task', 'executedTask'], + ]) { + const value = receipt(); + value.nodes = [ + { + nodeId: 'stage', + module: 'modules.DiffusersImage', + action, + fields: { [field]: { value: 'control_image', source: 'literal' } }, + omittedFields: {}, + }, + ]; + value.summary = { [label]: 'control_image' }; + assert.deepEqual(inputs.coerceResolvedExecutionInputs(value, identity), value); + assert.deepEqual(inputs.coerceResolvedExecutionInputs(JSON.parse(JSON.stringify(value)), identity), value); + const omitted = structuredClone(value); + omitted.nodes[0].fields = {}; + omitted.nodes[0].omittedFields = { [field]: 'unsupported-value' }; + omitted.summary = {}; + omitted.unavailableFields = [label]; + assert.deepEqual(inputs.coerceResolvedExecutionInputs(omitted, identity), omitted); + for (const mutate of [ + (copy) => { + copy.nodes[0].action = 'UnreviewedAction'; + }, + (copy) => { + copy.nodes[0].module = 'modules.Foreign'; + }, + (copy) => { + copy.nodes[0].fields.unknown_mode = copy.nodes[0].fields[field]; + }, + (copy) => { + copy.summary[label] = 'foreign_task'; + }, + (copy) => { + copy.summary = { [label === 'executedTask' ? 'executionMode' : 'executedTask']: 'control_image' }; + }, + ]) { + const copy = structuredClone(value); + mutate(copy); + assert.equal(inputs.coerceResolvedExecutionInputs(copy, identity), undefined); + } + } + const foreignField = receipt(); + foreignField.nodes = [ + { + nodeId: 'denoise', + module: 'modules.DiffusersImage', + action: 'Denoise', + fields: { mode: { value: 'control_image', source: 'literal' } }, + omittedFields: {}, + }, + ]; + foreignField.summary = { executionMode: 'control_image' }; + assert.equal(inputs.coerceResolvedExecutionInputs(foreignField, identity), undefined); +}); + +// Frozen NodeBase/official tiny CPU producer captures, not HTTP or trained-model proof. +const textGenerationProducerReceipts = { + 'enhance-two-references': { + schemaVersion: 1, + source: 'backend-execution', + taskId: 'pup-cpu-unit-enhance-two-references', + attemptIndex: 0, + nodeId: 'enhancement-two-reference-producer', + nodes: [ + { + nodeId: 'enhancement-two-reference-producer', + module: 'modules.HuggingFaceTransformers', + action: 'GenerateImageVideoText', + fields: { + operation: { + value: 'enhance_prompt', + source: 'literal', + }, + enhancement_max_new_tokens: { + value: 2, + source: 'literal', + }, + prompt_adapter_id: { + value: 'transformers-prompt-enhancement-v1', + source: 'literal', + }, + system_prompt_mode: { + value: 'i2i', + source: 'literal', + }, + system_prompt_sha256: { + value: '95cec384d5b6d341caa9fb3f2c7ca45ee80c2364b3a95d4044aebf976f6dd3bf', + source: 'literal', + }, + rendered_prompt_sha256: { + value: 'sha256:e583f6f3e687f148de99dfb5a343cbbc41176639a63f587cbc67e0d662afda5f', + source: 'literal', + }, + rendered_prompt_utf8_bytes: { + value: 2895, + source: 'literal', + }, + rendered_input_ids_sha256: { + value: 'sha256:4cbd5087487435586ea6a9296a7ff22994a1501d25eaded251eff78080d866e5', + source: 'literal', + }, + reference_source_sha256: { + value: [ + 'sha256:b89644f82b4521c8f0367c253020a36500bff049786d8b77237ad17ea3dcbed8', + 'sha256:d44a7e0346e4324df997c774a567940899789649018fb6a6072ef28a95e9bd50', + ], + source: 'literal', + }, + processed_pixel_sha256: { + value: 'sha256:c6f80e90f8455363b22d0f1be2fd04f399761bc6580448d2c32c717b2353fea2', + source: 'literal', + }, + processed_pixel_shape: { + value: [512, 1536], + source: 'literal', + }, + processed_grid_sha256: { + value: 'sha256:63a4454b5f1dd1e3fe5850ed8174d35d1346744920630f0e7b8ef547b1b86ba6', + source: 'literal', + }, + processed_grid_shape: { + value: [2, 3], + source: 'literal', + }, + prompt: { + value: 'Combine the red and blue squares.', + source: 'literal', + }, + }, + omittedFields: {}, + }, + ], + summary: { + textOperation: 'enhance_prompt', + enhancementMaxNewTokens: 2, + promptAdapterId: 'transformers-prompt-enhancement-v1', + systemPromptMode: 'i2i', + systemPromptSha256: '95cec384d5b6d341caa9fb3f2c7ca45ee80c2364b3a95d4044aebf976f6dd3bf', + renderedPromptSha256: 'sha256:e583f6f3e687f148de99dfb5a343cbbc41176639a63f587cbc67e0d662afda5f', + renderedPromptUtf8Bytes: 2895, + renderedInputIdsSha256: 'sha256:4cbd5087487435586ea6a9296a7ff22994a1501d25eaded251eff78080d866e5', + referenceSourceSha256: [ + 'sha256:b89644f82b4521c8f0367c253020a36500bff049786d8b77237ad17ea3dcbed8', + 'sha256:d44a7e0346e4324df997c774a567940899789649018fb6a6072ef28a95e9bd50', + ], + processedPixelSha256: 'sha256:c6f80e90f8455363b22d0f1be2fd04f399761bc6580448d2c32c717b2353fea2', + processedPixelShape: [512, 1536], + processedGridSha256: 'sha256:63a4454b5f1dd1e3fe5850ed8174d35d1346744920630f0e7b8ef547b1b86ba6', + processedGridShape: [2, 3], + prompt: 'Combine the red and blue squares.', + }, + ambiguousFields: [], + unavailableFields: [], + uncapturedNodeIds: [], + truncated: false, + }, + 'standard-fresh-defaults': { + schemaVersion: 1, + source: 'backend-execution', + taskId: 'pup-cpu-unit-standard-fresh-defaults', + attemptIndex: 0, + nodeId: 'standard-fresh-defaults', + nodes: [ + { + nodeId: 'standard-fresh-defaults', + module: 'modules.HuggingFaceTransformers', + action: 'GenerateImageVideoText', + fields: { + prompt: { + value: 'Describe the red square.', + source: 'literal', + }, + operation: { + value: 'standard', + source: 'literal', + }, + executed_task: { + value: 'image_to_text', + source: 'literal', + }, + }, + omittedFields: {}, + }, + ], + summary: { + prompt: 'Describe the red square.', + textOperation: 'standard', + executedTask: 'image_to_text', + }, + ambiguousFields: [], + unavailableFields: [], + uncapturedNodeIds: [], + truncated: false, + }, + 'standard-legacy-omitted': { + schemaVersion: 1, + source: 'backend-execution', + taskId: 'pup-cpu-unit-standard-legacy-omitted', + attemptIndex: 0, + nodeId: 'standard-legacy-omitted', + nodes: [ + { + nodeId: 'standard-legacy-omitted', + module: 'modules.HuggingFaceTransformers', + action: 'GenerateImageVideoText', + fields: { + prompt: { + value: 'Describe the blue square.', + source: 'literal', + }, + executed_task: { + value: 'image_to_text', + source: 'literal', + }, + }, + omittedFields: {}, + }, + ], + summary: { + prompt: 'Describe the blue square.', + executedTask: 'image_to_text', + }, + ambiguousFields: [], + unavailableFields: [], + uncapturedNodeIds: [], + truncated: false, + }, +}; + +test('paired backend prompt-enhancement and ordinary receipts survive exact history roundtrip', () => { + for (const [name, capture] of Object.entries(textGenerationProducerReceipts)) { + const identity = { taskId: capture.taskId, attemptIndex: capture.attemptIndex, nodeId: capture.nodeId }; + assert.deepEqual(inputs.coerceResolvedExecutionInputs(capture, identity), capture, name); + const output = contracts.coerceStudioOutput({ + id: name, + url: '/unit-text', + displayType: 'text', + ...identity, + prompt: 'stale form fallback', + formSnapshot: { prompt: 'stale form fallback' }, + resolvedExecutionInputs: capture, + }); + assert.deepEqual(output.resolvedExecutionInputs, capture); + assert.equal(output.prompt, capture.summary.prompt); + assert.equal(output.formSnapshot.prompt, 'stale form fallback'); + assert.deepEqual(contracts.coerceStudioOutput(JSON.parse(JSON.stringify(output))).resolvedExecutionInputs, capture); + } + assert.equal(textGenerationProducerReceipts['standard-fresh-defaults'].summary.textOperation, 'standard'); + assert.equal(textGenerationProducerReceipts['standard-fresh-defaults'].summary.enhancementMaxNewTokens, undefined); + assert.equal(textGenerationProducerReceipts['standard-legacy-omitted'].summary.textOperation, undefined); + const enhanced = textGenerationProducerReceipts['enhance-two-references']; + assert.equal(enhanced.summary.textOperation, 'enhance_prompt'); + assert.equal(enhanced.summary.referenceSourceSha256.length, 2); + assert.notEqual(enhanced.summary.referenceSourceSha256[0], enhanced.summary.referenceSourceSha256[1]); + assert.equal(enhanced.summary.modelType, undefined, 'capture does not grant an image model identity'); +}); + +const enhancementNames = { + operation: 'textOperation', + enhancement_max_new_tokens: 'enhancementMaxNewTokens', + prompt_adapter_id: 'promptAdapterId', + system_prompt_mode: 'systemPromptMode', + system_prompt_sha256: 'systemPromptSha256', + rendered_prompt_sha256: 'renderedPromptSha256', + rendered_prompt_utf8_bytes: 'renderedPromptUtf8Bytes', + rendered_input_ids_sha256: 'renderedInputIdsSha256', + reference_source_sha256: 'referenceSourceSha256', + processed_pixel_sha256: 'processedPixelSha256', + processed_pixel_shape: 'processedPixelShape', + processed_grid_sha256: 'processedGridSha256', + processed_grid_shape: 'processedGridShape', +}; + +function enhancementReceipt() { + return structuredClone(textGenerationProducerReceipts['enhance-two-references']); +} + +function enhancementIdentity(capture) { + return { taskId: capture.taskId, attemptIndex: capture.attemptIndex, nodeId: capture.nodeId }; +} + +test('enhancement observations reject malformed scalars, hashes, counts and tensor shapes without coercion', () => { + const invalid = { + operation: ['', 'enhance', ['enhance_prompt'], true, null, 1], + enhancement_max_new_tokens: [0, -1, 3585, 1.5, '2', true, null], + prompt_adapter_id: ['', 'bad id', 'Uppercase', 'a'.repeat(129), [], null], + system_prompt_mode: ['', 'bbox', ['i2i'], true, null], + system_prompt_sha256: ['sha256:' + 'a'.repeat(64), 'a'.repeat(63), 'A'.repeat(64), null], + rendered_prompt_sha256: ['a'.repeat(64), 'sha256:' + 'a'.repeat(63), 'sha256:' + 'A'.repeat(64), null], + rendered_prompt_utf8_bytes: [0, -1, 524289, 1.5, '3', true, null], + rendered_input_ids_sha256: ['', 'a'.repeat(64), null], + reference_source_sha256: [ + null, + ['bad'], + ['sha256:' + 'a'.repeat(64)].flatMap((hash) => Array(11).fill(hash)), + [[]], + ], + processed_pixel_sha256: ['', 'a'.repeat(64), null], + processed_pixel_shape: [ + [], + [1], + [1, 2, 3], + [true, 2], + [0, 2], + [1.5, 2], + ['1', 2], + [Number.MAX_SAFE_INTEGER + 1, 2], + ], + processed_grid_sha256: ['', 'a'.repeat(64), null], + processed_grid_shape: [[], [0, 3], [11, 3], [2, 4], [2.5, 3], ['2', 3], [2, true]], + }; + for (const [key, values] of Object.entries(invalid)) + for (const value of values) { + const capture = enhancementReceipt(); + capture.nodes[0].fields[key].value = value; + capture.summary[enhancementNames[key]] = value; + assert.equal( + inputs.coerceResolvedExecutionInputs(capture, enhancementIdentity(capture)), + undefined, + `${key}: ${JSON.stringify(value)}`, + ); + } +}); + +test('enhancement observations are scoped to the exact generic generation action and output identity', () => { + for (const [module, action] of [ + ['modules.HuggingFaceTransformers', 'PredictDepth'], + ['modules.HuggingFaceTransformers', 'LoadImageTextToTextModel'], + ['modules.ModularDiffusers', 'EncodePrompt'], + ['modules.Foreign', 'GenerateImageVideoText'], + ]) { + const capture = enhancementReceipt(); + Object.assign(capture.nodes[0], { module, action }); + assert.equal(inputs.coerceResolvedExecutionInputs(capture, enhancementIdentity(capture)), undefined); + } + for (const patch of [{ taskId: 'other' }, { attemptIndex: 1 }, { nodeId: 'other' }]) { + const capture = enhancementReceipt(); + assert.equal( + inputs.coerceResolvedExecutionInputs(capture, { ...enhancementIdentity(capture), ...patch }), + undefined, + ); + } + const capture = enhancementReceipt(); + capture.nodes[0].module = 'HuggingFaceTransformers'; + assert.deepEqual(inputs.coerceResolvedExecutionInputs(capture, enhancementIdentity(capture)), capture); + capture.nodes[0].fields.reference_id = { value: 'not-vae-authority', source: 'literal' }; + assert.equal(inputs.coerceResolvedExecutionInputs(capture, enhancementIdentity(capture)), undefined); +}); + +test('enhancement text-only, bounded endpoints, missing observations and ambiguity retain existing receipt rules', () => { + const capture = enhancementReceipt(); + capture.nodes[0].fields.enhancement_max_new_tokens.value = capture.summary.enhancementMaxNewTokens = 3584; + capture.nodes[0].fields.rendered_prompt_utf8_bytes.value = capture.summary.renderedPromptUtf8Bytes = 524288; + capture.nodes[0].fields.reference_source_sha256.value = capture.summary.referenceSourceSha256 = []; + capture.nodes[0].fields.system_prompt_mode.value = capture.summary.systemPromptMode = 't2i'; + for (const key of [ + 'processed_pixel_sha256', + 'processed_pixel_shape', + 'processed_grid_sha256', + 'processed_grid_shape', + ]) { + delete capture.nodes[0].fields[key]; + delete capture.summary[enhancementNames[key]]; + } + assert.deepEqual(inputs.coerceResolvedExecutionInputs(capture, enhancementIdentity(capture)), capture); + const missing = enhancementReceipt(); + delete missing.nodes[0].fields.processed_pixel_sha256; + delete missing.summary.processedPixelSha256; + missing.nodes[0].omittedFields.processed_pixel_sha256 = 'record-size-limit'; + missing.unavailableFields = ['processedPixelSha256']; + assert.deepEqual(inputs.coerceResolvedExecutionInputs(missing, enhancementIdentity(missing)), missing); + const mixed = enhancementReceipt(); + mixed.nodes.push({ + nodeId: 'encoder', + module: 'modules.ModularDiffusers', + action: 'EncodePrompt', + fields: { + prompt: { + value: 'An explicitly applied proposal.', + source: 'connected', + sourceNodeId: mixed.nodes[0].nodeId, + sourcePortId: 'text', + }, + }, + omittedFields: {}, + }); + delete mixed.summary.prompt; + mixed.ambiguousFields = ['prompt']; + const output = contracts.coerceStudioOutput({ + id: 'mixed-prompt', + url: '/out.png', + ...enhancementIdentity(mixed), + prompt: 'wrong fallback', + formSnapshot: { prompt: 'wrong fallback' }, + resolvedExecutionInputs: mixed, + }); + assert.deepEqual(output.resolvedExecutionInputs, mixed); + assert.equal(output.prompt, ''); + assert.equal(output.formSnapshot.prompt, 'wrong fallback'); + assert.equal(output.resolvedExecutionInputs.nodes[0].fields.prompt.value, 'Combine the red and blue squares.'); +}); + +test('enhancement observation origins reject coercible arrays, objects and booleans', () => { + for (const source of [['literal'], ['connected'], ['override'], { value: 'literal' }, false, true, 1, null]) { + const capture = enhancementReceipt(); + capture.nodes[0].fields.operation.source = source; + assert.equal(inputs.coerceResolvedExecutionInputs(capture, enhancementIdentity(capture)), undefined); + } +}); diff --git a/scripts/reviewed-value-ports-v2.test.mjs b/scripts/reviewed-value-ports-v2.test.mjs index f9ccd8f9..46242fdb 100644 --- a/scripts/reviewed-value-ports-v2.test.mjs +++ b/scripts/reviewed-value-ports-v2.test.mjs @@ -86,3 +86,138 @@ test('an input with the same upstream name as a media output gets a distinct soc assert.equal(params.state_input__images.display, 'input'); assert.equal('value' in params.state_input__images, false); }); + +const oldBlock = { + id: `diffusers.modular-block:Original:sha256:${'a'.repeat(64)}`, + contentHash: `sha256:${'a'.repeat(64)}`, +}; +const newBlock = { + id: `diffusers.modular-block:Added:sha256:${'b'.repeat(64)}`, + contentHash: `sha256:${'b'.repeat(64)}`, +}; + +function conflictingSchema(display = 'output', oldType = 'int', newType = 'latent') { + return { + type: newType, + display, + label: 'Positions', + description: 'new union description', + fieldOptions: { + unrelated: 'retained', + reviewedBlockFieldSchemasV1: { + schemaVersion: 1, + alternatives: [ + { + blockDefinitionId: oldBlock.id, + blockContractHash: oldBlock.contentHash, + params: { type: oldType, display, label: 'Positions', description: 'original description' }, + }, + { + blockDefinitionId: newBlock.id, + blockContractHash: newBlock.contentHash, + params: { type: newType, display, label: 'Positions', description: 'new description' }, + }, + ], + }, + }, + }; +} + +test('adding another block cannot change an existing immutable output socket type', () => { + const published = { state_output__positions: conflictingSchema() }; + const before = JSON.stringify(published); + const original = {}, + added = {}; + add(original, published, [], [{ name: 'positions' }], 'step', oldBlock); + add(added, published, [], [{ name: 'positions' }], 'step', newBlock); + assert.equal(original.state_output__positions.type, 'int'); + assert.equal(original.state_output__positions.description, 'original description'); + assert.equal(added.state_output__positions.type, 'latent'); + assert.deepEqual(original.state_output__positions.fieldOptions, { unrelated: 'retained' }); + assert.equal(JSON.stringify(published), before); +}); + +test('exact conditional input types preserve unconnected Pipeline State semantics', () => { + const published = { positions: { ...conflictingSchema('input'), default: 77, value: 77 } }; + const params = {}; + add(params, published, [{ name: 'positions', description: 'selected upstream field' }], [], 'step', oldBlock); + assert.equal(params.positions.type, 'int'); + assert.equal(params.positions.display, 'input'); + assert.equal('default' in params.positions, false); + assert.equal('value' in params.positions, false); + assert.equal(params.positions.required, false); + assert.equal( + params.positions.description, + 'selected upstream field Unconnected: use the upstream Pipeline State value.', + ); + assert.deepEqual(params.positions.fieldOptions, { unrelated: 'retained' }); +}); + +test('exact loop aliases preserve iteration wrappers rather than raw output types', () => { + const published = { + iteration_input__positions: conflictingSchema( + 'input', + ['int', 'modular_loop_value'], + ['latent', 'modular_loop_value'], + ), + iteration_output__positions: conflictingSchema('output', 'modular_loop_value', 'modular_loop_value'), + iteration_previous__positions: conflictingSchema('output', 'modular_loop_value', 'modular_loop_value'), + }; + const params = {}; + add(params, published, [{ name: 'positions' }], [{ name: 'positions' }], 'loop_member', oldBlock); + assert.deepEqual(params.iteration_input__positions.type, ['int', 'modular_loop_value']); + assert.equal(params.iteration_output__positions.type, 'modular_loop_value'); + assert.equal(params.iteration_previous__positions.type, 'modular_loop_value'); + assert.ok(Object.values(params).every((param) => !('reviewedBlockFieldSchemasV1' in param.fieldOptions))); +}); + +for (const [name, mutate, selection] of [ + ['missing selected block', () => {}, undefined], + ['foreign selected block', () => {}, { id: 'foreign', contentHash: oldBlock.contentHash }], + ['mismatched selected hash', () => {}, { ...oldBlock, contentHash: newBlock.contentHash }], + ['duplicate block identity', (value) => value.alternatives.push(structuredClone(value.alternatives[0])), oldBlock], + [ + 'mismatched published hash', + (value) => { + value.alternatives[0].blockContractHash = newBlock.contentHash; + }, + oldBlock, + ], + [ + 'unknown metadata version', + (value) => { + value.schemaVersion = 2; + }, + oldBlock, + ], + [ + 'executable field payload', + (value) => { + value.alternatives[0].params.onChange = 'foreign'; + }, + oldBlock, + ], + [ + 'invalid socket type', + (value) => { + value.alternatives[0].params.type = 77; + }, + oldBlock, + ], + [ + 'unbounded alternatives', + (value) => { + value.alternatives = Array(4097).fill(value.alternatives[0]); + }, + oldBlock, + ], +]) { + test(`exact field alternatives refuse ${name}`, () => { + const output = conflictingSchema(); + mutate(output.fieldOptions.reviewedBlockFieldSchemasV1); + assert.throws( + () => add({}, { state_output__positions: output }, [], [{ name: 'positions' }], 'step', selection), + /exact reviewed block field schema/u, + ); + }); +} diff --git a/scripts/run-coordinator.test.mjs b/scripts/run-coordinator.test.mjs index fc39d718..813d83ad 100644 --- a/scripts/run-coordinator.test.mjs +++ b/scripts/run-coordinator.test.mjs @@ -3708,7 +3708,8 @@ test('runtime resource-update messages reject non-resource fields and wrong valu assert.equal(websocketModule.parseWebsocketMessage(JSON.stringify(message)), null); }); -function resourceInputBlock(mirrored = false) { +function resourceInputBlock(mirrored = false, field = 'offload_mode', control = false) { + const initialValue = field === 'weight_loading_mode' ? 'cpu' : 'none'; const nodes = ['loader', ...(mirrored ? ['peer'] : [])].map((nodeId) => ({ nodeId, nodeType: 'custom', @@ -3717,7 +3718,7 @@ function resourceInputBlock(mirrored = false) { module: 'modules.Test', action: 'Loader', params: { - offload_mode: { type: 'string', value: 'none', isInput: true }, + [field]: { type: 'string', value: initialValue, isInput: true }, output: { type: 'pipeline', display: 'output' }, }, }, @@ -3738,13 +3739,26 @@ function resourceInputBlock(mirrored = false) { label: 'Offload', valueType: 'string', required: false, - binding: { nodeId: 'loader', fieldOrPortId: 'offload_mode' }, - ...(mirrored ? { mirrorBindings: [{ nodeId: 'peer', fieldOrPortId: 'offload_mode' }] } : {}), + binding: { nodeId: 'loader', fieldOrPortId: field }, + ...(mirrored ? { mirrorBindings: [{ nodeId: 'peer', fieldOrPortId: field }] } : {}), }, ], outputs: [], }, - controls: [], + controls: control + ? [ + { + controlId: 'resource', + label: 'Resource', + valueType: 'string', + defaultValue: initialValue, + required: false, + order: 0, + binding: { nodeId: 'loader', fieldId: field }, + ...(mirrored ? { mirrorBindings: [{ nodeId: 'peer', fieldId: field }] } : {}), + }, + ] + : [], previews: [], ownership: { kind: 'user', definitionMutable: true }, }; @@ -3754,7 +3768,7 @@ function resourceInputBlock(mirrored = false) { instanceId: 'resource-block', position: { x: 0, y: 0 }, size: { width: 400, height: 320 }, - values: { resource: 'none' }, + values: { resource: initialValue }, }), ); } @@ -3806,6 +3820,160 @@ test('Auto treats mirrored boundary resource inputs as one atomic resource group assert.deepEqual(exported(), before); }); +test('weight loading Auto plans accept only the declared cpu/cuda patch values', async () => { + const auto = await server.ssrLoadModule('/src/studio/workflowAutoExecutionV2.ts'); + for (const value of ['cpu', 'cuda']) { + const plan = { ...workflowPlan(true), patches: [{ nodeId: 'loader', field: 'weight_loading_mode', value }] }; + assert.deepEqual(auto.parseWorkflowAutoPlanV2(plan), plan); + } + for (const value of ['auto', 'CUDA', '', true, null, 0, { value: 'cuda' }]) + assert.throws( + () => + auto.parseWorkflowAutoPlanV2({ + ...workflowPlan(true), + patches: [{ nodeId: 'loader', field: 'weight_loading_mode', value }], + }), + /invalid workflow Auto plan/, + ); + assert.throws( + () => + auto.parseWorkflowAutoPlanV2({ + ...workflowPlan(true), + patches: [{ nodeId: 'loader', field: 'weight_loading_device', value: 'cuda' }], + }), + /invalid workflow Auto plan/, + ); +}); + +test('weight loading runtime messages preserve the field-specific current and previous value contracts', () => { + const parsed = (update) => + websocketModule.parseWebsocketMessage( + JSON.stringify({ + type: 'auto_resource_plan_applied', + resourceUpdates: [{ nodeId: 'loader', ...update }], + }), + ); + for (const value of ['cpu', 'cuda']) + for (const previousValue of [undefined, null, 'cpu', 'cuda']) + assert.ok(parsed({ field: 'weight_loading_mode', value, previousValue })); + for (const value of ['auto', 'CUDA', '', true, null, 1]) + assert.equal(parsed({ field: 'weight_loading_mode', value }), null); + for (const previousValue of ['auto', 'CUDA', '', true, 1]) + assert.equal(parsed({ field: 'weight_loading_mode', value: 'cuda', previousValue }), null); + assert.equal(parsed({ field: 'offload_mode', value: 'none', previousValue: false }), null); + assert.equal(parsed({ field: 'auto_offload', value: true, previousValue: 'false' }), null); + assert.ok(parsed({ field: 'offload_mode', value: 'none', previousValue: 'model_cpu' })); + assert.ok(parsed({ field: 'auto_offload', value: true, previousValue: false })); +}); + +test('weight loading mirrored inputs and controls carry one runtime group and one Undo', async () => { + const auto = await server.ssrLoadModule('/src/studio/workflowAutoExecutionV2.ts'); + const flow = flowStoreModule.useFlowStore; + for (const control of [false, true]) { + flow.getState().replaceGraph({ nodes: [resourceInputBlock(true, 'weight_loading_mode', control)], edges: [] }); + const exported = () => flow.getState().exportGraph('', undefined, { randomizeSeeds: false }); + const before = exported(); + const definition = structuredClone(flow.getState().nodes[0].data.blockInstanceV2.definitionSnapshot); + const patches = ['loader', 'peer'].map((nodeId) => ({ + nodeId: blockRuntimeModule.blockProjectionNodeIdV2('resource-block', nodeId), + field: 'weight_loading_mode', + value: 'cuda', + })); + assert.throws(() => auto.applyWorkflowAutoSettingsV2(before, patches.slice(0, 1)), /shared resource control/); + assert.deepEqual(exported(), before); + assert.throws( + () => auto.applyWorkflowAutoSettingsV2(before, [patches[0], { ...patches[1], value: 'cpu' }]), + /shared resource control/, + ); + assert.deepEqual(exported(), before); + studioStoreModule.useStudioStore.setState({ + form: { ...studioStoreModule.useStudioStore.getState().form, resourceMode: 'auto' }, + }); + globalThis.fetch = async () => jsonResponse({ ...workflowPlan(true), patches }); + const historyCount = flow.getState().historyPast.length; + const submitted = await auto.prepareWorkflowAutoExecutionV2(before); + assert.deepEqual(exported().nodes, submitted.nodes); + assert.deepEqual(submitted.runtimeHints.workflowAutoPlan.resourceControlGroups, [ + patches.map(({ nodeId, field }) => ({ nodeId, field })), + ]); + assert.equal(flow.getState().historyPast.length, historyCount + 1); + assert.deepEqual(flow.getState().nodes[0].data.blockInstanceV2.definitionSnapshot, definition); + flow.getState().undo(); + assert.deepEqual(exported(), before); + flow.getState().redo(); + assert.deepEqual(exported().nodes, submitted.nodes); + auto.applyRuntimeWorkflowAutoSettingsV2( + patches.map((patch) => ({ ...patch, value: 'cpu', previousValue: 'cuda' })), + ); + assert.deepEqual(exported(), before); + const unchanged = flow.getState().toObject(); + assert.throws( + () => + auto.applyRuntimeWorkflowAutoSettingsV2( + patches.map((patch, index) => ({ + ...patch, + previousValue: index === 0 ? 'cpu' : 'cuda', + })), + ), + /newer workflow edits/, + ); + assert.deepEqual(flow.getState().toObject(), unchanged); + } +}); + +test('weight loading Auto settings roll back connected, missing and duplicate targets', async () => { + const auto = await server.ssrLoadModule('/src/studio/workflowAutoExecutionV2.ts'); + const flow = flowStoreModule.useFlowStore; + const node = (id, params) => ({ + id, + type: 'custom', + position: { x: 0, y: 0 }, + data: { type: 'custom', module: 'modules.Test', action: 'Loader', params }, + }); + const field = { type: 'string', value: 'cpu', isInput: true }; + const source = node('source', { output: { type: 'string', display: 'output', value: 'cpu' } }); + const loader = node('loader', { weight_loading_mode: field }); + const peer = node('peer', { weight_loading_mode: field }); + for (const invalid of ['connected', 'missing', 'duplicate']) { + const edges = + invalid === 'connected' + ? [ + { + id: 'connected-mode', + source: 'source', + sourceHandle: 'output', + target: 'peer', + targetHandle: 'weight_loading_mode', + }, + ] + : []; + flow.getState().replaceGraph({ + nodes: [ + structuredClone(loader), + node('peer', invalid === 'missing' ? {} : structuredClone(peer.data.params)), + source, + ], + edges, + }); + const before = flow.getState().toObject(); + const historyCount = flow.getState().historyPast.length; + const graph = flow.getState().exportGraph('', undefined, { randomizeSeeds: false }); + const patch = { nodeId: 'loader', field: 'weight_loading_mode', value: 'cuda' }; + assert.throws( + () => + auto.applyWorkflowAutoSettingsV2(graph, [ + patch, + invalid === 'duplicate' ? patch : { ...patch, nodeId: 'peer' }, + ]), + /missing, connected or repeated/, + ); + assert.deepEqual(flow.getState().toObject(), before); + assert.equal(flow.getState().historyPast.length, historyCount); + assert.equal(flow.getState().historyTransaction, null); + assert.deepEqual(graph.nodes.loader.params.weight_loading_mode.value, 'cpu'); + } +}); + test('mixed legacy and Modular Auto reaches planning without committing a rejected conversion', async () => { const users = await server.ssrLoadModule('/src/studio/userBlocks.ts'); const { useHuggingFaceNodeLibraryStore: catalog } = await server.ssrLoadModule( diff --git a/scripts/server-actions.test.mjs b/scripts/server-actions.test.mjs index 40aeb16c..bc0040a1 100644 --- a/scripts/server-actions.test.mjs +++ b/scripts/server-actions.test.mjs @@ -11,6 +11,7 @@ let actionsModule; let originalFetch; let server; let controlModule; +let cleanupFeedbackModule; before(async () => { globalThis.window = { @@ -26,6 +27,7 @@ before(async () => { appType: 'custom', }); actionsModule = await server.ssrLoadModule('/src/utils/serverActions.ts'); + cleanupFeedbackModule = await server.ssrLoadModule('/src/utils/runtimeCleanupFeedback.ts'); controlModule = await server.ssrLoadModule('/src/utils/supervisorControl.ts'); originalFetch = globalThis.fetch; }); @@ -556,6 +558,67 @@ test('empty cache deletion is a no-op and does not contact the backend', async ( assert.deepEqual(result.nodes, []); }); +test('accelerator cleanup preserves partial-cleanup reasons and permits zero released files', async () => { + const clean = { + error: false, + message: 'Accelerator cleanup complete.', + released_node_count: 1, + released_model_count: 0, + released_diffusers_component_count: 0, + released_diffusers_offload_file_count: 0, + allocator_trimmed: false, + cleanup_errors: [], + before: null, + after: null, + }; + const partial = { + ...clean, + cleanup_errors: ['Diffusers disk offload cache: live hook storage was preserved.'], + }; + for (const receipt of [clean, partial, { error: false, message: 'Legacy cleanup complete.' }]) { + globalThis.fetch = async () => jsonResponse(receipt); + assert.deepEqual(await actionsModule.cleanupGpuMemory(), receipt); + } + assert.deepEqual(cleanupFeedbackModule.runtimeCleanupFeedback(clean), { + state: 'success', + message: clean.message, + }); + assert.deepEqual(cleanupFeedbackModule.runtimeCleanupFeedback(partial), { + state: 'warning', + message: `${partial.message}\n${partial.cleanup_errors[0]}`, + }); + assert.equal(cleanupFeedbackModule.runtimeCleanupFeedback({ ...clean, cleanup_errors: [' ', ''] }).state, 'success'); + assert.equal(cleanupFeedbackModule.runtimeCleanupFeedback({ error: false }).state, 'success'); +}); + +test('accelerator cleanup rejects invalid or unbounded cleanup details without treating them as success', () => { + for (const cleanup_errors of [ + null, + 'preserved', + [false], + [{}], + Array.from({ length: 65 }, () => 'warning'), + ['x'.repeat(8193)], + ]) { + assert.throws( + () => cleanupFeedbackModule.runtimeCleanupFeedback({ error: false, cleanup_errors }), + /cleanup details/, + ); + } +}); + +test('accelerator cleanup retains actual application and HTTP failures', async () => { + const message = 'Accelerator cleanup cannot run while model work or cache cleanup is active.'; + for (const status of [200, 409]) { + globalThis.fetch = async () => jsonResponse({ error: true, message, cleanup_errors: [] }, status); + await assert.rejects(actionsModule.cleanupGpuMemory(), (error) => { + assert.equal(error.kind, status === 200 ? 'application' : 'http'); + assert.equal(error.message, message); + return true; + }); + } +}); + test('GPU cleanup and Hugging Face deletion use hash-bound planning and mutation methods', async () => { const requests = []; globalThis.fetch = async (url, init) => { diff --git a/scripts/task-template-contracts.test.mjs b/scripts/task-template-contracts.test.mjs index ce64693d..9becc962 100644 --- a/scripts/task-template-contracts.test.mjs +++ b/scripts/task-template-contracts.test.mjs @@ -75,6 +75,19 @@ test('empty multiple-choice bindings preserve an empty list while text bindings contentHash: `studio-spec-v1-${hashModule.hashString(hashModule.stableStringify(semantic))}`, }; assert.deepEqual(executionSpecsModule.parseStudioExecutionSpecs([spec], modelType, [mode], [profile]), [spec]); + const withWeightFormat = { ...semantic, bindings: [['diffusersImagePipeline', 'weight_format', 'weightFormat']] }; + const weightSpec = { + ...withWeightFormat, + contentHash: `studio-spec-v1-${hashModule.hashString(hashModule.stableStringify(withWeightFormat))}`, + }; + assert.deepEqual(executionSpecsModule.parseStudioExecutionSpecs([weightSpec], modelType, [mode], [profile]), [ + weightSpec, + ]); + for (const source of ['weight_format', 'WeightFormat', ['weightFormat'], null]) { + const invalid = { ...withWeightFormat, bindings: [['diffusersImagePipeline', 'weight_format', source]] }; + invalid.contentHash = `studio-spec-v1-${hashModule.hashString(hashModule.stableStringify(invalid))}`; + assert.throws(() => executionSpecsModule.parseStudioExecutionSpecs([invalid], modelType, [mode], [profile])); + } globalThis.window ??= { location: { origin: 'http://127.0.0.1:5191' } }; const valuesModule = await server.ssrLoadModule('/src/studio/executionSpecValues.ts'); const form = { @@ -82,6 +95,14 @@ test('empty multiple-choice bindings preserve an empty list while text bindings ...modelProfilesModule.getFormDefaultsForMode(mode, modelType), }; const before = structuredClone(form); + assert.equal( + valuesModule.resolveStudioExecutionSpecValues( + form, + weightSpec, + modelProfilesModule.STUDIO_MODEL_PROFILES[modelType], + ).weightFormat, + 'native', + ); const first = valuesModule.resolveStudioExecutionSpecValues( form, spec, diff --git a/scripts/template-gallery-harness.test.mjs b/scripts/template-gallery-harness.test.mjs index 4c75b509..e65b74f5 100644 --- a/scripts/template-gallery-harness.test.mjs +++ b/scripts/template-gallery-harness.test.mjs @@ -454,24 +454,30 @@ test('gallery harness loads all Studio templates from the TypeScript runtime', ( }); test('Qwen gallery candidates use the runtime locked settings and hashes', () => { + const creatorBaseline = JSON.parse( + readFileSync(new URL('../tests/fixtures/image-template-creator-contracts.v1.json', import.meta.url), 'utf8'), + ); const expectedHashes = { qwen_low_vram_text_rendering: { width: 1024, height: 1024, promptSettingsHash: 'ps_c32e6c86', - templateLockHash: 'tpl_76f378d2', + templateLockHash: 'tpl_eb899725', + historicalTemplateLockHash: 'tpl_76f378d2', }, qwen_low_vram_product_concept: { width: 1024, height: 768, promptSettingsHash: 'ps_2eeea545', - templateLockHash: 'tpl_b9f47949', + templateLockHash: 'tpl_763e4b50', + historicalTemplateLockHash: 'tpl_b9f47949', }, qwen_low_vram_poster_layout: { width: 768, height: 1024, promptSettingsHash: 'ps_124204d1', - templateLockHash: 'tpl_e5832679', + templateLockHash: 'tpl_b1b11c5a', + historicalTemplateLockHash: 'tpl_e5832679', }, }; @@ -480,6 +486,37 @@ test('Qwen gallery candidates use the runtime locked settings and hashes', () => assert.ok(template, `${templateId} loaded from STUDIO_TEMPLATES`); const candidate = buildTemplateCandidate(runtime, template); + assert.deepEqual( + candidate.lockedSettings, + creatorBaseline.templates.find((item) => item.templateId === templateId).contract.lockedSettings, + 'the complete retained creative contract remains unchanged', + ); + assert.equal(template.executionSelection.authoringRecipeId, 'retained-qwen-image-text-to-image:v1'); + // The lock includes authoring metadata. Moving the preserved component + // policy into a backend recipe changes it without rebinding historical media. + const historicalTemplate = structuredClone(template); + delete historicalTemplate.executionSelection.authoringRecipeId; + historicalTemplate.executionSelection.componentPolicy = { + attentionBackend: 'auto', + vaeSlicing: true, + vaeTiling: true, + }; + assert.equal(runtime.templateLockHash(historicalTemplate), hashes.historicalTemplateLockHash); + const historicalEntry = { + templateId, + modelRevision: template.example.modelRevision, + templateLockHash: hashes.historicalTemplateLockHash, + promptSettingsHash: hashes.promptSettingsHash, + mediaType: 'image', + graphHash: 'sha256:canonical-graph-v1:test', + mediaHash: 'sha256:decoded-rgba:test', + provenanceHash: 'sha256:canonical-json:test', + qualityReviewHash: 'sha256:canonical-json:test', + qualityReviewStatus: 'approved_exact', + }; + const historicalManifest = { schemaVersion: 2, examples: [historicalEntry] }; + assert.equal(runtime.findManifestEntry(historicalTemplate, historicalManifest), historicalEntry); + assert.equal(runtime.findManifestEntry(template, historicalManifest), undefined); assert.deepEqual(candidate.lockedSettings, runtime.lockedSettingsForTemplate(template)); assert.equal(candidate.promptSettingsHash, runtime.promptSettingsHash(template)); assert.equal(candidate.templateLockHash, runtime.templateLockHash(template)); diff --git a/scripts/template-operation-fixtures.py b/scripts/template-operation-fixtures.py index fb85014a..85502a20 100644 --- a/scripts/template-operation-fixtures.py +++ b/scripts/template-operation-fixtures.py @@ -10,7 +10,7 @@ from unittest.mock import patch sys.dont_write_bytecode = True -sys.path.insert(0, str(Path(__file__).resolve().parents[2] / "MoDiff")) +sys.path.insert(0, os.environ.get("MODIFF_BACKEND_DIR", str(Path(__file__).resolve().parents[2] / "MoDiff"))) selections = json.load(sys.stdin) with tempfile.TemporaryDirectory(prefix="modiff-template-schema-") as temporary: @@ -46,7 +46,7 @@ "schema-fixture", {"devices": [], "platform": sys.platform}, {"detected": "cpu", "status": "ready", "execution_ready": True}, ) - rows, registry = [], {} + rows, registry, historical_cosmos_image = [], {}, None def describe(key): module, action = key.rsplit(".", 1) @@ -60,23 +60,64 @@ def describe(key): starter = resolve_operation_starter(MODULE_MAP, contracts, { "pipelineClass": selection["pipelineClass"], "task": selection["task"], - "executionProfileId": selection["executionProfileId"], + **({"executionProfileId": selection["executionProfileId"]} + if "executionProfileId" in selection else {}), + **({"repository": selection["repository"]} if selection.get("repository") else {}), + **({"authoringRecipeId": selection["authoringRecipeId"]} + if selection.get("authoringRecipeId") else {}), }) starter["nodes"] = [{ "operation": node["operation"], "node": describer._describe_registered_node(node["module"], node["action"], node), } for node in starter["nodes"]] - binding = selection["bindingSpec"] - spec = studio_execution_spec_for_pair(binding["modelType"], binding["mode"]) - if spec is None: + binding = selection.get("bindingSpec") + spec = studio_execution_spec_for_pair(binding["modelType"], binding["mode"]) if binding else None + if binding and spec is None: raise ValueError(f"Missing template semantic bindings: {binding}") - for _, key, _, _ in spec["roles"]: + for node in starter["nodes"]: + describe(node["operation"]["nodeKey"]) + for _, key, _, _ in starter.get("authoring", spec or {"roles": []})["roles"]: describe(key) rows.append({"id": item["id"], "starter": starter, "spec": spec, - "capability": STUDIO_MODEL_CAPABILITIES[binding["modelType"]]}) + "capability": STUDIO_MODEL_CAPABILITIES[binding["modelType"]] if binding else None}) for key in ("modules.ModularDiffusers.Lora", "modules.DiffusersImage.LoadAdapter", "modules.Spandrel.Upscaler", "modules.Image.Preview", - "modules.DiffusersImage.OutpaintCanvas"): + "modules.DiffusersImage.OutpaintCanvas", "modules.Audio.Export", "modules.Audio.Load", + "modules.DiffusersAudio.LoadAdapter"): describe(key) + if any(item["selection"]["pipelineClass"] == "Cosmos3OmniModularPipeline" for item in selections): + from modiff.modular_whole_workflow_contracts import ( + PINNED_WHOLE_WORKFLOW_GRAPH_ADAPTERS, reviewed_whole_workflow_action_adapter, + ) + + # Retain an independent old image declaration for saved-graph + # preservation tests. This patch is isolated to this schema-only + # fixture process; the current public catalog remains unchanged. + legacy_adapter = reviewed_whole_workflow_action_adapter( + "Cosmos3OmniModularPipeline", "text2image", "workflow_cosmos3_omni_after_decode", + ) + with patch.dict(PINNED_WHOLE_WORKFLOW_GRAPH_ADAPTERS, { + ("Cosmos3OmniModularPipeline", "text2image"): legacy_adapter, + }): + legacy_contracts, _ = build_operation_catalog(MODULE_MAP, [], catalog_resolver=lambda: {}) + legacy_starter = resolve_operation_starter(MODULE_MAP, legacy_contracts, { + "pipelineClass": "Cosmos3OmniModularPipeline", "task": "text_to_image", + "executionProfileId": "cosmos3-super-text-to-image:official-modular-workflow", + }) + legacy_starter["nodes"] = [{ + "operation": node["operation"], + "node": describer._describe_registered_node(node["module"], node["action"], node), + } for node in legacy_starter["nodes"]] + legacy_spec = studio_execution_spec_for_pair( + "Cosmos3OmniModularPipeline", "text_to_image", content_hash="studio-spec-v1-91ed105d", + ) + for _, key, _, _ in legacy_spec["roles"]: + describe(key) + historical_cosmos_image = { + "starter": legacy_starter, "spec": legacy_spec, + "operationContracts": [c for c in legacy_contracts + if c["pipelineClass"] == "Cosmos3OmniModularPipeline" + and c["task"] == "text_to_image"], + } json.dump({"recipes": rows, "registry": registry, "capabilities": public_capabilities, - "publicPayload": public_payload}, sys.stdout) + "publicPayload": public_payload, "historicalCosmosImage": historical_cosmos_image}, sys.stdout) diff --git a/scripts/template-operation-workflows.test.mjs b/scripts/template-operation-workflows.test.mjs index e68993aa..2aaed847 100644 --- a/scripts/template-operation-workflows.test.mjs +++ b/scripts/template-operation-workflows.test.mjs @@ -18,6 +18,39 @@ let server, studioStore, lifecycle; let publicOperations, starterRequests, qwenInpaintCandidate, qwenInpaintCandidateFixture; +function recipeSelection(row) { + return templates.find((template) => template.id === row.id).executionSelection; +} +function initialValue(row, role, field) { + return row.starter.authoring?.initialValues.find( + ([targetRole, targetField]) => targetRole === role && targetField === field, + )?.[2]; +} +function componentPolicy(row) { + const attentionBackend = initialValue(row, 'models', 'attention_backend'); + return attentionBackend === undefined + ? null + : { + attentionBackend, + vaeSlicing: initialValue(row, 'models', 'vae_slicing'), + vaeTiling: initialValue(row, 'models', 'vae_tiling'), + }; +} +function declaredFixtureDevice(row) { + const field = row.starter.nodes.find((item) => item.operation.decomposition === 'loader').node.params.device; + const device = field.value ?? field.default; + assert.equal(typeof device, 'string', 'Author against the device declared by the native metadata fixture.'); + return device; +} +function fixtureRuntimeSettings(row, form) { + const device = declaredFixtureDevice(row); + return { + device, + ...(!device.startsWith('cuda') + ? { autoOffload: false, offloadMode: 'none' } + : { autoOffload: form.autoOffload, offloadMode: form.offloadMode }), + }; +} const automaticAttentionZTemplates = new Set([ 'z_image_quick_concept', 'z_image_product_mockup', @@ -30,7 +63,7 @@ const automaticAttentionZTemplates = new Set([ test('fresh Z recipes use automatic attention without changing VAE or adapter controls', () => { for (const id of automaticAttentionZTemplates) { const template = templates.find((item) => item.id === id); - assert.deepEqual(template.executionSelection.componentPolicy, { + assert.deepEqual(componentPolicy(fixture.recipes.find((row) => row.id === id)), { attentionBackend: 'auto', vaeSlicing: true, vaeTiling: true, @@ -89,13 +122,14 @@ before(async () => { maxBuffer: 64 * 1024 * 1024, input: JSON.stringify( templates - .filter((item) => item.executionSelection) + .filter((item) => item.executionSelection && item.example?.mediaType === 'image') .map((item) => ({ id: item.id, selection: item.executionSelection })), ), stdio: ['pipe', 'pipe', 'pipe'], }, ), ); + defaults = { ...defaults, ...fixtureRuntimeSettings(fixture.recipes[0], defaults) }; const { qwenInpaintNativeCandidateSelection } = await server.ssrLoadModule( '/src/studio/templateOperationSelections.ts', ); @@ -139,6 +173,7 @@ test('four fresh Qwen masked templates preserve creator settings and use actual row.starter.pipelineClass, row.starter.task, contracts, + recipeSelection(row), ); for (const action of ['ModelsLoader', 'ImageEncode']) { const field = starter.nodes.find((item) => item.node.action === action).node.params.inpaint_compatibility; @@ -234,6 +269,7 @@ test('private Qwen candidate inherits authored crop padding and honors explicit row.starter.pipelineClass, row.starter.task, contracts, + recipeSelection(row), ); const template = templates.find((item) => item.id === row.id); const form = { ...selectedForm(template), paddingMaskCrop: 96 }; @@ -263,41 +299,24 @@ test('private Qwen candidate inherits authored crop padding and honors explicit } }); -test('fresh Qwen masked compatibility rejects missing or different reviewed workflow identities', () => { +test('fresh masked authoring rejects mismatched authoritative workflow identities', async () => { const row = qwenInpaintCandidateFixture.recipes.find((item) => item.id === 'qwen_inpaint_object_replace'); - const template = templates.find((item) => item.id === row.id); + const operations = await server.ssrLoadModule('/src/workflow/operationContracts.ts'); + const contracts = operations.parseOperationContracts(qwenInpaintCandidateFixture.publicPayload.operationContracts, 3); for (const workflowId of [null, 'image_conditioned']) { - const starter = structuredClone(row.starter); - starter.workflowId = workflowId; - const before = structuredClone(starter); - assert.throws( - () => - builder.createTemplateOperationGraph( - template, - selectedForm(template), - starter, - fixture.registry, - row.spec, - row.capability, - ), - /requires the reviewed image_conditioned_inpainting workflow/, + const value = structuredClone(row.starter); + value.workflowId = workflowId; + const before = structuredClone(value); + assert.throws(() => + starterRequests.parseOperationStarter(value, value.pipelineClass, value.task, contracts, recipeSelection(row)), ); - assert.deepEqual(starter, before); + assert.deepEqual(value, before); } - const starter = structuredClone(row.starter); - const owner = starter.nodes.find((item) => item.operation.nodeType === 'loader'); - owner.operation.binding.values.workflow_id = 'image_conditioned'; - assert.throws( - () => - builder.createTemplateOperationGraph( - template, - selectedForm(template), - starter, - fixture.registry, - row.spec, - row.capability, - ), - /requires the reviewed image_conditioned_inpainting workflow/, + const value = structuredClone(row.starter); + value.nodes.find((item) => item.operation.nodeType === 'loader').operation.binding.values.workflow_id = + 'image_conditioned'; + assert.throws(() => + starterRequests.parseOperationStarter(value, value.pipelineClass, value.task, contracts, recipeSelection(row)), ); }); @@ -324,6 +343,7 @@ test('the real public capability and every selected starter response pass produc row.starter.pipelineClass, row.starter.task, publicOperations, + recipeSelection(row), ); assert.equal(parsed.nodes.length, row.starter.nodes.length, row.id); } @@ -351,7 +371,7 @@ test('the historical 54 image templates select exact developer operations withou assert.ok(template.executionSelection.pipelineClass); if (template.executionSelection.implementation === 'native_stages') assert.deepEqual( - template.executionSelection.componentPolicy ?? null, + componentPolicy(fixture.recipes.find((row) => row.id === template.id)), automaticAttentionZTemplates.has(template.id) ? { ...expected.originalComponentPolicy, attentionBackend: 'auto' } : expected.originalComponentPolicy, @@ -366,39 +386,22 @@ test('execution selection changes invalidate current exactness while preserving assert.notEqual(exactness.getTemplateLockHash(template), exactness.getTemplateLockHash(historical)); }); -test('only the seven converted Z recipes preserve the observed standard-pipeline CFG formulation', () => { - const converted = new Set([ - 'z_image_quick_concept', - 'z_image_product_mockup', - 'z_image_poster', - 'z_image_lora_style', - 'z_image_cinematic_contact_sheet', - 'low_vram', - 'fast_lora', - ]); +test('only the seven converted Z recipes declare their observed CFG formulation in the backend', () => { const images = templates.filter((template) => template.example?.mediaType === 'image'); - assert.equal( - images.filter( - (template) => - template.executionSelection.pipelineClass === 'ZImageModularPipeline' && - template.executionSelection.guidancePolicy, - ).length, - 7, + const converted = images.filter( + (template) => template.executionSelection.authoringRecipeId === 'retained-z-image-text-to-image:v1', ); - for (const template of images) { - if (!converted.has(template.id)) { - if (!['FluxModularPipeline', 'FluxKontextModularPipeline'].includes(template.executionSelection.pipelineClass)) - assert.equal(template.executionSelection.guidancePolicy, undefined, template.id); - continue; - } - assert.deepEqual(template.executionSelection.guidancePolicy, { enabled: true, useOriginalFormulation: true }); + assert.equal(converted.length, 7); + for (const template of converted) { + const row = fixture.recipes.find((item) => item.id === template.id); + assert.equal(initialValue(row, 'guider', 'enabled'), true); + assert.equal(initialValue(row, 'guider', 'use_original_formulation'), true); const previous = { ...template, - executionSelection: { ...template.executionSelection, guidancePolicy: undefined }, + executionSelection: { ...template.executionSelection, authoringRecipeId: undefined }, }; assert.notEqual(exactness.getTemplateLockHash(template), exactness.getTemplateLockHash(previous)); - const starter = fixture.recipes.find((row) => row.id === template.id).starter; - const guider = starter.nodes.find((node) => node.operation.operationId === 'diffusion.guidance'); + const guider = row.starter.nodes.find((node) => node.operation.operationId === 'diffusion.guidance'); assert.equal(guider.node.params.enabled.value, false, 'ordinary upstream developer starter remains disabled'); assert.equal(guider.node.params.use_original_formulation.value, false); } @@ -419,9 +422,13 @@ test('historical approved image remains visible without becoming proof of the cu }); function selectedForm(template) { + const authored = { ...defaults, ...exactness.getTemplateLockedSettings(template) }; return { - ...defaults, - ...exactness.getTemplateLockedSettings(template), + ...authored, + ...fixtureRuntimeSettings( + fixture.recipes.find((row) => row.id === template.id), + authored, + ), referenceImages: ['source.png', 'reference-second.png', 'reference-third.png'], maskImage: 'mask.png', controlImage: 'control.png', @@ -536,7 +543,32 @@ test('only the two converted single-LoRA Z recipes preserve the original whole-p const api = flowStore .getState() .exportGraph('exact-adapter-names', undefined, { sourceGraph: graph, randomizeSeeds: false }); - const loras = Object.values(api.nodes).filter((node) => node.action === 'Lora' || node.action === 'LoadAdapter'); + const loraEntries = Object.entries(api.nodes).filter( + ([, node]) => node.action === 'Lora' || node.action === 'LoadAdapter', + ); + const loras = []; + if (loraEntries.some(([, node]) => node.action === 'Lora')) { + let sourceId = Object.values(api.nodes).find((node) => node.action === 'ModelsLoader').params.lora_list.sourceId; + const visited = new Set(); + while (sourceId) { + assert.equal(visited.has(sourceId), false, 'the actual adapter supplier chain cannot cycle'); + visited.add(sourceId); + const node = api.nodes[sourceId]; + assert.equal(node.action, 'Lora'); + loras.unshift(node); + sourceId = node.params.previous_loras.sourceId; + } + } else { + let sourceId = Object.entries(api.nodes).find(([, node]) => node.action === 'LoadPipeline')[0]; + while (true) { + const next = loraEntries.find(([, node]) => node.params.pipeline.sourceId === sourceId); + if (!next) break; + assert.equal(loras.includes(next[1]), false, 'the actual adapter supplier chain cannot cycle'); + loras.push(next[1]); + sourceId = next[0]; + } + } + assert.equal(loras.length, loraEntries.length, 'every adapter participates in the actual ordered supplier chain'); const settings = template.workflowBlockSettings.lora; const adapters = [settings, ...(settings.additionalAdapters ?? [])]; assert.equal(loras.length, adapters.length, template.id); @@ -613,15 +645,11 @@ test('the thirteen converted Flux recipes preserve true CFG separately from orig const images = templates.filter((template) => template.example?.mediaType === 'image'); const converted = images.filter((template) => preservedEmbeddedGuidance(template) !== undefined); assert.equal(converted.length, 13); - assert.equal(images.filter((template) => template.executionSelection.guidancePolicy).length, 20); for (const template of converted) { - const policy = template.executionSelection.guidancePolicy; - assert.deepEqual(policy, { - enabled: template.id !== 'flux_schnell_text_to_image', - useOriginalFormulation: false, - distilledGuidanceScale: preservedEmbeddedGuidance(template), - }); const row = fixture.recipes.find((item) => item.id === template.id); + assert.equal(initialValue(row, 'guider', 'enabled'), template.id !== 'flux_schnell_text_to_image'); + assert.equal(initialValue(row, 'guider', 'use_original_formulation'), false); + assert.equal(initialValue(row, 'denoise', 'guidance_scale'), preservedEmbeddedGuidance(template)); const ordinary = row.starter.nodes.find((item) => item.operation.operationId === 'diffusion.guidance'); assert.ok(ordinary, 'the actual selected backend starter declares a CFG owner'); assert.equal( @@ -785,6 +813,7 @@ test('all54 image recipes construct and export the exact backend developer stage row.starter.pipelineClass, row.starter.task, publicOperations, + recipeSelection(row), ), fixture.registry, row.spec, @@ -817,18 +846,15 @@ test('all54 image recipes construct and export the exact backend developer stage const expected = values.resolveStudioExecutionSpecValues(form, row.spec, row.capability, { defaultModelRevision: revision, }); + const declarations = row.starter.authoring ?? row.spec; const claimed = new Set(); - for (const [role, key] of row.spec.roles) { - if (role === 'loadMask' && ['qwen_outpaint_aspect_template', 'qwen_outpaint_draft'].includes(template.id)) { - assert.ok(flat.nodes.some((node) => node.data.action === 'OutpaintCanvas')); - continue; - } + for (const [role, key] of declarations.roles) { const node = flat.nodes.find( (item) => `${item.data.module}.${item.data.action}` === key && !claimed.has(item.id), ); assert.ok(node, role); claimed.add(node.id); - for (const [boundRole, field, source] of row.spec.bindings) + for (const [boundRole, field, source] of declarations.bindings) if (boundRole === role) { if ( node.id === owner.id && @@ -880,15 +906,18 @@ test('all54 image recipes construct and export the exact backend developer stage ); assert.equal( graph.nodes.some((node) => groups.visualOperationGroup(node) === 'guidance'), - Boolean(guider), - 'Guidance contains the actual backend-declared guidance owner only', + false, + 'fresh guidance is grouped inside the meaningful input stage', ); if (guider) { assert.equal(guider.data.params.guider.value, 'ClassifierFreeGuidance'); assert.equal(guider.data.params.guidance_scale.value, form.guidanceScale); const original = row.starter.nodes.find((node) => node.operation.operationId === 'diffusion.guidance').node .params; - const policy = template.executionSelection.guidancePolicy; + const policy = { + enabled: initialValue(row, 'guider', 'enabled'), + useOriginalFormulation: initialValue(row, 'guider', 'use_original_formulation'), + }; assert.equal(guider.data.params.enabled.value, policy?.enabled ?? original.enabled.value); const exportedGuider = Object.values(api.nodes).find((node) => node.action === 'Guider'); assert.ok(exportedGuider, 'the actual guidance owner is exported for execution'); @@ -910,7 +939,7 @@ test('all54 image recipes construct and export the exact backend developer stage 'EncodePrompt', ]); } - const policy = template.executionSelection.componentPolicy; + const policy = componentPolicy(row); if (policy) { assert.equal(owner.data.params.attention_backend.value, policy.attentionBackend); assert.equal(owner.data.params.vae_slicing.value, policy.vaeSlicing); @@ -991,6 +1020,7 @@ test('all54 exported image consumers independently retain the preserved creator 'LoadPipeline', 'ModelsLoader', 'AutoModelLoader', + 'Guider', ]); for (const row of fixture.recipes) await t.test(row.id, () => { @@ -1013,6 +1043,19 @@ test('all54 exported image consumers independently retain the preserved creator for (const [field, formField] of Object.entries(fields)) { const param = node.params[field]; if (!param || param.display === 'output') continue; + if ( + field === 'guidance_scale' && + node.action === 'Denoise' && + node.params.guider?.sourceId && + preservedEmbeddedGuidance(template) === undefined + ) { + const guiderId = node.params.guider.sourceId; + assert.equal(api.nodes[guiderId].action, 'Guider'); + assert.equal(api.nodes[guiderId].params.guidance_scale.value, form.guidanceScale); + const encoder = Object.values(api.nodes).find((item) => item.action === 'EncodePrompt'); + assert.equal(encoder.params.guider.sourceId, guiderId, 'both genuine CFG consumers share the same Guider'); + continue; + } if (param.sourceId) { assert.ok( ['width', 'height'].includes(field) && template.mode === 'outpaint', @@ -1074,6 +1117,7 @@ function prepareLifecycleFixture(templateId) { studio.setState({ workflowCanvasHydrated: true }); const tabId = studio.getState().createWorkflowTab(template.label, undefined, 'template', template.id); studio.getState().applyTemplate(template); + studio.getState().updateForm(fixtureRuntimeSettings(row, studio.getState().form)); nodeStore.setState({ nodesRegistry: fixture.registry, operationContracts: row.starter.nodes.map((item) => item.operation), @@ -1179,6 +1223,7 @@ test('both Qwen ControlNet templates retain the exact creator API packet through row.starter.pipelineClass, row.starter.task, publicOperations, + recipeSelection(row), ), fixture.registry, row.spec, @@ -1205,8 +1250,13 @@ test('both Qwen ControlNet templates retain the exact creator API packet through ), 'ordinary creation must retain the required ControlNet component wire', ); - function canonicalApi(api, graph) { - const names = new Map(graph.nodes.map((node) => [node.id, `${node.data.module}.${node.data.action}`])); + function canonicalApi(api) { + const names = new Map(Object.entries(api.nodes).map(([id, node]) => [id, `${node.module}.${node.action}`])); + assert.equal( + new Set(names.values()).size, + names.size, + 'this recipe has unique executable operation identities', + ); return Object.fromEntries( Object.entries(api.nodes).map(([id, node]) => [ names.get(id), @@ -1279,6 +1329,7 @@ test('fresh developer template commits once, preserves creator provenance, and r pipelineClass: template.executionSelection.pipelineClass, task: template.executionSelection.task, executionProfileId: template.executionSelection.executionProfileId, + authoringRecipeId: template.executionSelection.authoringRecipeId, }); return Response.json(row.starter); }; @@ -1496,6 +1547,14 @@ test('template-owned normalization preserves available devices and explicit XPU }, { device: 'xpu:0', runtime: { packages: { torch: { cuda_available: false } } }, expected: 'xpu:0' }, { device: 'mps:0', runtime: { packages: { torch: { cuda_available: false } } }, expected: 'mps:0' }, + { device: 'unknown:0', runtime: { packages: { torch: { cuda_available: false } } }, expected: 'unknown:0' }, + { + device: 'cuda:2', + runtime: { + packages: { torch: { cuda_available: true, cuda_device_count: 3, cuda_devices: [{ index: 2 }] } }, + }, + expected: 'cuda:2', + }, { device: 'cuda:0', runtime: { packages: { torch: { cuda_available: false } } }, expected: 'cpu:0' }, ]) await t.test(`${scenario.device} → ${scenario.expected}`, () => { @@ -1518,6 +1577,31 @@ test('template-owned normalization preserves available devices and explicit XPU }); }); +test('owned runtime normalization never adopts a newer document or creative edit', async (t) => { + for (const edit of ['document', 'form']) + await t.test(edit, () => { + const previous = [flowStore.getState(), nodeStore.getState(), studioStore.useStudioStore.getState()]; + try { + const { studio, context } = prepareLifecycleFixture('z_image_quick_concept'); + nodeStore.setState({ runtimeStatus: { packages: { torch: { cuda_available: false } } } }); + if (edit === 'document') studio.getState().createWorkflowTab('Newer document'); + else studio.getState().updateForm({ prompt: 'An explicit newer prompt' }); + const form = structuredClone(studio.getState().form); + const captured = { ...context }; + assert.throws( + () => lifecycle.normalizeTemplateRuntimeDevice(context), + (error) => studioStore.isWorkflowOperationCancelled(error), + ); + assert.deepEqual(studio.getState().form, form); + assert.deepEqual(context, captured, 'a stale caller cannot advance into the newer operation'); + } finally { + flowStore.setState(previous[0]); + nodeStore.setState(previous[1]); + studioStore.useStudioStore.setState(previous[2]); + } + }); +}); + test('ordinary Auto ControlNet creation keeps the auxiliary component resident while the base uses model CPU offload', async (t) => { if (!publicOperations) { const operations = await server.ssrLoadModule('/src/workflow/operationContracts.ts'); @@ -1538,25 +1622,60 @@ test('ordinary Auto ControlNet creation keeps the auxiliary component resident w autoOffload: true, offloadMode: 'model_cpu', dtype: 'bfloat16', - device: 'cuda:0', + device: declaredFixtureDevice(row), }); const form = structuredClone(studio.getState().form); - assert.equal(form.autoOffload, true); - assert.equal(form.offloadMode, 'model_cpu'); + assert.equal(form.autoOffload, form.device.startsWith('cuda')); + assert.equal(form.offloadMode, form.device.startsWith('cuda') ? 'model_cpu' : 'none'); globalThis.fetch = async () => Response.json(row.starter); await lifecycle.createImageTemplateOperationWorkflow( template, form, studioStore.captureWorkflowOperationContext(), ); - const api = flowStore - .getState() - .exportGraph('control-auto-component-placement', undefined, { randomizeSeeds: false }); + // Verify placement semantics independently from the host form policy. + // This authors a requested offload plan, never a fabricated GPU device. + const placementGraph = builder.createTemplateOperationGraph( + template, + { ...form, autoOffload: true, offloadMode: 'model_cpu' }, + starterRequests.parseOperationStarter( + row.starter, + row.starter.pipelineClass, + row.starter.task, + publicOperations, + template.executionSelection, + ), + fixture.registry, + row.spec, + row.capability, + ); + const authoredGraph = groups.unpackVisualOperationGroups(placementGraph).graph; + const authoredBase = authoredGraph.nodes.find((node) => node.data.action === 'ModelsLoader'); + const authoredAuxiliary = authoredGraph.nodes.find((node) => node.data.action === 'AutoModelLoader'); + assert.equal(authoredBase.data.params.auto_offload.value, true); + assert.equal(authoredBase.data.params.offload_mode.value, 'model_cpu'); + assert.equal(authoredAuxiliary.data.params.auto_offload.value, false); + assert.equal(authoredAuxiliary.data.params.offload_mode.value, 'none'); + // CPU metadata cannot prove GPU offload execution. The ordinary form + // normalizes the plan, and export also rejects an unnormalized request. + if (!form.device.startsWith('cuda')) { + assert.throws( + () => + flowStore.getState().exportGraph('control-auto-component-placement', undefined, { + sourceGraph: placementGraph, + randomizeSeeds: false, + }), + /execution cannot use model_cpu offload/, + ); + } + const api = flowStore.getState().exportGraph('control-auto-component-placement', undefined, { + randomizeSeeds: false, + }); const base = Object.values(api.nodes).find((node) => node.action === 'ModelsLoader'); const auxiliary = Object.values(api.nodes).find((node) => node.action === 'AutoModelLoader'); assert.ok(base && auxiliary); - assert.equal(base.params.auto_offload.value, true); - assert.equal(base.params.offload_mode.value, 'model_cpu'); + assert.equal(base.params.auto_offload.value, form.device.startsWith('cuda')); + assert.equal(base.params.offload_mode.value, form.device.startsWith('cuda') ? 'model_cpu' : 'none'); assert.equal(auxiliary.params.auto_offload.value, false); assert.equal(auxiliary.params.offload_mode.value, 'none'); for (const field of ['device', 'dtype']) assert.equal(auxiliary.params[field].value, base.params[field].value); @@ -1712,6 +1831,7 @@ test('all four actual Qwen native inpaint candidates preserve their full API pac row.starter.pipelineClass, row.starter.task, contracts, + recipeSelection(row), ); const candidate = qwenInpaintCandidate.createQwenInpaintNativeCandidateGraph( template, @@ -1771,6 +1891,7 @@ test('all four actual Qwen native recipes recover their coherent runtime setting awayRow.starter.pipelineClass, awayRow.starter.task, awayContracts, + recipeSelection(awayRow), ); for (const row of qwenInpaintCandidateFixture.recipes) await t.test(row.id, () => { @@ -1780,6 +1901,7 @@ test('all four actual Qwen native recipes recover their coherent runtime setting row.starter.pipelineClass, row.starter.task, contracts, + recipeSelection(row), ); const candidate = qwenInpaintCandidate.createQwenInpaintNativeCandidateGraph( template, @@ -1840,3 +1962,340 @@ test('all four actual Qwen native recipes recover their coherent runtime setting ); }); }); + +test('six pipeline-stage image selections describe real encoding and latent output without claiming native modular execution', () => { + const expected = [ + 'flux_fill_inpaint', + 'flux_control_canny', + 'flux_fill_outpaint', + 'flux_depth_control', + 'flux_redux_edit', + 'flux_redux_multi_reference', + ]; + const selected = templates.filter((template) => template.executionSelection?.implementation === 'pipeline_stages'); + assert.deepEqual(selected.map((template) => template.id).sort(), [...expected].sort()); + for (const template of selected) { + const row = fixture.recipes.find((item) => item.id === template.id); + assert.ok(row); + const owner = row.starter.nodes.find((item) => item.operation.decomposition === 'loader').node; + assert.equal(owner.params.execution_profile_id.value, template.executionSelection.executionProfileId); + assert.equal(row.starter.pipelineClass, template.executionSelection.pipelineClass); + const actions = row.starter.nodes.map((item) => item.node.action); + for (const action of ['LoadPipeline', 'EncodeInputs', 'Denoise', 'DecodeLatents']) + assert.equal(actions.filter((item) => item === action).length, 1); + assert.equal( + actions.some((action) => ['Inpaint', 'ControlGenerate', 'Edit'].includes(action)), + false, + ); + assert.match(template.executionSelection.note, /Encode Inputs/); + if (template.id.startsWith('flux_fill_')) assert.match(template.executionSelection.note, /text only/); + assert.equal(template.executionSelection.memoryPolicy, undefined); + } +}); + +const stagedImageStarterIds = [ + 'flux_fill_inpaint', + 'flux_fill_outpaint', + 'flux_control_canny', + 'flux_depth_control', + 'flux_redux_edit', + 'flux_redux_multi_reference', +]; + +let currentImageStarterAlternativesValue; +async function currentImageStarterAlternatives() { + if (currentImageStarterAlternativesValue) return currentImageStarterAlternativesValue; + const selected = stagedImageStarterIds.map((id) => fixture.recipes.find((row) => row.id === id)); + assert.ok(selected.every(Boolean)); + const backend = path.resolve('../MoDiff'); + const python = + process.env.MODIFF_BACKEND_PYTHON || + path.join(backend, '.venv', process.platform === 'win32' ? 'Scripts/python.exe' : 'bin/python'); + const script = path.resolve('scripts/template-operation-fixtures.py'); + const whole = JSON.parse( + execFileSync( + process.platform === 'win32' ? python : path.join(backend, 'scripts/with-runtime-env.sh'), + process.platform === 'win32' ? [script] : [python, script], + { + cwd: backend, + encoding: 'utf8', + maxBuffer: 64 * 1024 * 1024, + timeout: 90_000, + env: { ...process.env, PYTHONDONTWRITEBYTECODE: '1' }, + input: JSON.stringify( + selected.map((row) => ({ + id: row.id, + selection: { + pipelineClass: row.starter.pipelineClass, + task: row.starter.task, + }, + })), + ), + }, + ), + ); + const module = await server.ssrLoadModule('/src/workflow/operationContracts.ts'); + const operations = module.parseOperationContracts(fixture.publicPayload.operationContracts, 3); + assert.deepEqual(whole.publicPayload.operationContracts, fixture.publicPayload.operationContracts); + currentImageStarterAlternativesValue = { selected, whole: whole.recipes, operations }; + return currentImageStarterAlternativesValue; +} + +test('current image catalogs retain both complete staged and historical whole starters under exact authority', async (t) => { + const { selected, whole, operations } = await currentImageStarterAlternatives(); + for (const row of selected) + await t.test(row.id, () => { + const selectedRoute = starterRequests.parseOperationStarter( + row.starter, + row.starter.pipelineClass, + row.starter.task, + operations, + recipeSelection(row), + ); + assert.equal(selectedRoute.nodes.length, 4); + assert.equal(selectedRoute.edges.length, 8); + const legacy = whole.find((item) => item.id === row.id).starter; + const wholeRoute = starterRequests.parseOperationStarter(legacy, legacy.pipelineClass, legacy.task, operations); + assert.equal(wholeRoute.nodes.length, 2); + assert.equal(wholeRoute.edges.length, 1); + for (const route of [selectedRoute, wholeRoute]) { + const ids = new Set(route.nodes.map((item) => item.operation.operationId)); + assert.ok(route.requiredInputs.every((input) => ids.has(input.operationId))); + assert.ok(route.sharedInputs.every((group) => group.members.every((member) => ids.has(member.operationId)))); + } + assert.equal( + operations.filter( + (operation) => operation.pipelineClass === row.starter.pipelineClass && operation.task === row.starter.task, + ).length, + 5, + ); + }); +}); + +test('alternate image starter membership rejects partial mixed foreign and noncurrent routes before authoring', async (t) => { + const { selected, whole, operations } = await currentImageStarterAlternatives(); + for (const row of selected) { + const original = structuredClone(row.starter); + const legacy = whole.find((item) => item.id === row.id).starter; + const deny = async (name, mutate) => + t.test(`${row.id}/${name}`, () => { + const value = structuredClone(original), + metadata = structuredClone(operations); + mutate(value, metadata); + assert.throws(() => + starterRequests.parseOperationStarter(value, value.pipelineClass, value.task, metadata, recipeSelection(row)), + ); + assert.deepEqual(row.starter, original); + }); + for (const kind of ['image_encoder', 'denoise', 'decoder']) + await deny(`missing ${kind}`, (value) => { + const id = value.nodes.find((item) => item.operation.nodeType === kind).operation.operationId; + value.nodes = value.nodes.filter((item) => item.operation.operationId !== id); + value.edges = value.edges.filter((edge) => edge.source !== id && edge.target !== id); + value.requiredInputs = value.requiredInputs.filter((input) => input.operationId !== id); + value.sharedInputs = value.sharedInputs.filter((group) => + group.members.every((member) => member.operationId !== id), + ); + }); + await deny('duplicate stage', (value) => value.nodes.push(structuredClone(value.nodes[1]))); + await deny('extra owner', (value) => + value.nodes.push(structuredClone(value.nodes.find((item) => item.operation.decomposition === 'loader'))), + ); + await deny('whole mixed with complete stages', (value) => + value.nodes.push(structuredClone(legacy.nodes.find((item) => item.operation.decomposition === 'pipeline'))), + ); + for (const handle of ['encoded_inputs', 'latents', 'latent_binding', 'width', 'height']) + await deny(`missing ${handle}`, (value) => { + const edge = value.edges.find((item) => item.targetHandle === handle); + assert.ok(edge); + value.edges.splice(value.edges.indexOf(edge), 1); + }); + await deny('competing width', (value) => + value.edges.push(structuredClone(value.edges.find((edge) => edge.targetHandle === 'width'))), + ); + await deny('stale stage DTO', (value) => { + value.nodes.find((item) => item.operation.nodeType === 'denoise').operation.support = 'unsupported'; + }); + await deny('foreign node task', (value) => { + value.nodes.find((item) => item.operation.nodeType === 'denoise').operation.task = 'foreign_image_task'; + }); + await deny('partial catalog', (value, metadata) => { + const index = metadata.findIndex( + (item) => item.pipelineClass === value.pipelineClass && item.task === value.task && item.nodeType === 'decoder', + ); + metadata.splice(index, 1); + }); + await deny('duplicate catalog authority', (value, metadata) => + metadata.push( + structuredClone( + metadata.find( + (item) => + item.pipelineClass === value.pipelineClass && item.task === value.task && item.nodeType === 'decoder', + ), + ), + ), + ); + await deny('extra catalog operation', (value, metadata) => { + const extra = structuredClone( + metadata.find( + (item) => + item.pipelineClass === value.pipelineClass && item.task === value.task && item.nodeType === 'decoder', + ), + ); + extra.operationId = 'extra.decode'; + metadata.push(extra); + }); + await t.test(`${row.id}/wrong selected profile`, () => + assert.throws(() => + starterRequests.parseOperationStarter(original, original.pipelineClass, original.task, operations, { + executionProfileId: 'foreign:direct', + }), + ), + ); + await t.test(`${row.id}/whole plus partial stage`, () => { + const mixed = structuredClone(legacy); + mixed.nodes.push(structuredClone(original.nodes.find((item) => item.operation.nodeType === 'denoise'))); + assert.throws(() => starterRequests.parseOperationStarter(mixed, mixed.pipelineClass, mixed.task, operations)); + }); + } +}); + +const canonicalImageStageRoleTemplates = [ + 'flux_control_canny', + 'flux_depth_control', + 'flux_fill_inpaint', + 'flux_fill_outpaint', + 'flux_redux_edit', + 'flux_redux_multi_reference', +]; + +let declaredImageRoleOperations; +async function declaredImageRoleInputs(id) { + if (!declaredImageRoleOperations) { + const current = await server.ssrLoadModule('/src/workflow/operationContracts.ts'); + declaredImageRoleOperations = current.parseOperationContracts( + fixture.publicPayload.operationContracts, + fixture.publicPayload.operationContractSchemaVersion, + ); + } + const row = fixture.recipes.find((item) => item.id === id); + const template = templates.find((item) => item.id === id); + assert.ok(row && template); + return { + row, + template, + starter: starterRequests.parseOperationStarter( + structuredClone(row.starter), + row.starter.pipelineClass, + row.starter.task, + declaredImageRoleOperations, + recipeSelection(row), + ), + spec: structuredClone(row.spec), + }; +} + +function buildDeclaredImageRoles(input) { + return builder.createTemplateOperationGraph( + input.template, + selectedForm(input.template), + input.starter, + fixture.registry, + input.spec, + input.row.capability, + ); +} + +for (const id of canonicalImageStageRoleTemplates) + test(`declared role join preserves ${id} through actual factory, grouping and canonical leaves`, async () => { + const input = await declaredImageRoleInputs(id); + const original = structuredClone(input); + const grouped = buildDeclaredImageRoles(input); + assert.ok(grouped.nodes.some((node) => node.data.blockInstanceV2)); + const flat = groups.unpackVisualOperationGroups(grouped).graph; + const declaration = input.starter.authoring ?? input.spec; + const actual = new Map(); + for (const node of flat.nodes) { + if (node.data.studioRole === undefined) continue; + assert.ok(!actual.has(node.data.studioRole), 'Declared roles remain unique after flattening.'); + actual.set(node.data.studioRole, node); + } + assert.equal(actual.size, declaration.roles.length); + for (const [role, key] of declaration.roles) { + const node = actual.get(role); + assert.ok(node, `Missing exact declared role ${role}`); + assert.equal(`${node.data.module}.${node.data.action}`, key); + assert.notEqual(node.data.studioOwned, true, 'A role annotation grants no managed runtime ownership.'); + } + assert.deepEqual(input, original, 'Factory role assignment cannot mutate source declarations.'); + const persisted = groups.unpackVisualOperationGroups(JSON.parse(JSON.stringify(grouped))).graph; + assert.deepEqual( + persisted.nodes.map((node) => [node.id, node.data.studioRole]), + flat.nodes.map((node) => [node.id, node.data.studioRole]), + ); + assert.deepEqual(persisted.edges, flat.edges); + }); + +test('declared role join refuses duplicate role rows without altering source inputs', async () => { + for (const id of canonicalImageStageRoleTemplates) { + const input = await declaredImageRoleInputs(id); + const declaration = input.starter.authoring ?? input.spec; + declaration.roles.push(structuredClone(declaration.roles[0])); + const original = structuredClone(input); + assert.throws(() => buildDeclaredImageRoles(input), /role .*duplicated|operation role .*missing/); + assert.deepEqual(input, original); + } +}); + +test('declared role join refuses a foreign role annotation on an otherwise exact resolved owner', async () => { + for (const id of canonicalImageStageRoleTemplates) { + const input = await declaredImageRoleInputs(id); + const owner = input.starter.nodes.find((node) => node.operation.decomposition === 'loader'); + owner.node.studioRole = 'foreign_role'; + const original = structuredClone(input); + assert.throws(() => buildDeclaredImageRoles(input), /role does not match its backend declaration/); + assert.deepEqual(input, original); + } +}); + +test('ordinary image template hydration preserves provenance without recovering a managed receipt', async (t) => { + for (const id of ['flux_schnell_text_to_image', 'z_image_quick_concept']) + await t.test(id, async () => { + const previous = [flowStore.getState(), nodeStore.getState(), studioStore.useStudioStore.getState()]; + const originalFetch = globalThis.fetch; + try { + const { row, template, tabId, studio, context } = prepareLifecycleFixture(id); + globalThis.fetch = async () => Response.json(row.starter); + await lifecycle.createTemplateOperationWorkflow(template, studio.getState().form, context); + const graph = flowStore.getState().toObject(); + const expectedApi = flowStore.getState().exportGraph('restored-template', undefined, { randomizeSeeds: false }); + const saved = structuredClone(studio.getState().workflowTabs.find((tab) => tab.id === tabId)); + assert.equal(saved.source, 'template'); + assert.equal(saved.snapshot.activeTemplateId, id); + assert.equal(saved.snapshot.studioGraphBinding, null); + // A fresh page reads this persisted document through the ordinary backend merge. + studio.setState({ workflowTabs: [], activeWorkflowTabId: tabId }); + studio.getState().mergeBackendWorkflow({ ...saved, revision: 1 }); + assert.equal(studio.getState().graphBinding, null); + assert.equal(studio.getState().activeTemplateId, id); + const restored = studio.getState().workflowTabs.find((tab) => tab.id === tabId); + assert.equal(restored.source, 'template'); + assert.equal(restored.sourceLabel, id); + assert.deepEqual( + flowStore.getState().toObject(), + graph, + 'hydration must not promote role labels into ownership', + ); + assert.deepEqual( + flowStore.getState().exportGraph('restored-template', undefined, { randomizeSeeds: false }), + expectedApi, + 'all creator values and supplier wires survive the backend hydration path', + ); + } finally { + globalThis.fetch = originalFetch; + flowStore.setState(previous[0]); + nodeStore.setState(previous[1]); + studioStore.useStudioStore.setState(previous[2]); + } + }); +}); diff --git a/scripts/workflow-auto-weight-loading.test.mjs b/scripts/workflow-auto-weight-loading.test.mjs new file mode 100644 index 00000000..5e29375d --- /dev/null +++ b/scripts/workflow-auto-weight-loading.test.mjs @@ -0,0 +1,324 @@ +import assert from 'node:assert/strict'; +import { execFileSync } from 'node:child_process'; +import path from 'node:path'; +import { after, before, beforeEach, test } from 'node:test'; +import { createServer } from 'vite'; + +const selection = { + pipelineClass: 'ZImageModularPipeline', + task: 'text_to_image', + executionProfileId: 'z-image:modular', + authoringRecipeId: 'retained-z-image-text-to-image:v1', + bindingSpec: { modelType: 'ZImageModularPipeline', mode: 'modular_text_to_image' }, +}; +let server, fixture, row, starter, template, form, modules, originalFetch; + +before(async () => { + const storage = new Map(); + globalThis.localStorage = { + getItem: (key) => storage.get(key) ?? null, + setItem: (key, value) => storage.set(key, String(value)), + removeItem: (key) => storage.delete(key), + }; + globalThis.window = { + localStorage: globalThis.localStorage, + location: { origin: 'http://127.0.0.1:5191' }, + dispatchEvent: () => true, + }; + server = await createServer({ + configFile: false, + logLevel: 'silent', + optimizeDeps: { entries: [], noDiscovery: true }, + server: { middlewareMode: true, hmr: false, watch: null }, + appType: 'custom', + }); + const paths = { + operations: '/src/workflow/operationContracts.ts', + requests: '/src/workflow/operationStarterRequest.ts', + factory: '/src/workflow/nodeFactory.ts', + authoring: '/src/studio/templateOperationWorkflow.ts', + groups: '/src/workflow/visualOperationGroups.ts', + templates: '/src/studio/templates.ts', + profiles: '/src/studio/modelProfiles.ts', + exactness: '/src/studio/templateExactness.ts', + flow: '/src/stores/useFlowStore.ts', + studio: '/src/stores/useStudioStore.ts', + tasks: '/src/stores/useTaskStore.ts', + coordinator: '/src/studio/runCoordinator.ts', + auto: '/src/studio/workflowAutoExecutionV2.ts', + schema: '/src/studio/blockSchemaV2.ts', + block: '/src/studio/blockRuntimeV2.ts', + }; + modules = Object.fromEntries( + await Promise.all(Object.entries(paths).map(async ([name, file]) => [name, await server.ssrLoadModule(file)])), + ); + const backend = path.resolve('../MoDiff'); + const python = process.env.MODIFF_BACKEND_PYTHON || path.join(backend, '.venv', 'Scripts/python.exe'); + fixture = JSON.parse( + execFileSync(python, [path.resolve('scripts/template-operation-fixtures.py')], { + cwd: backend, + encoding: 'utf8', + maxBuffer: 64 * 1024 * 1024, + input: JSON.stringify([{ id: 'z_image_quick_concept', selection }]), + }), + ); + row = fixture.recipes[0]; + const contracts = modules.operations.parseOperationContracts( + fixture.publicPayload.operationContracts, + fixture.publicPayload.operationContractSchemaVersion, + ); + starter = modules.requests.parseOperationStarter( + row.starter, + selection.pipelineClass, + selection.task, + contracts, + selection, + ); + template = structuredClone(modules.templates.STUDIO_TEMPLATES.find((item) => item.id === row.id)); + const device = row.starter.nodes.find((node) => node.operation.decomposition === 'loader').node.params.device; + form = { + ...modules.profiles.DEFAULT_STUDIO_FORM, + ...modules.exactness.getTemplateLockedSettings(template), + modelType: selection.bindingSpec.modelType, + mode: selection.bindingSpec.mode, + device: device.value ?? device.default, + autoOffload: false, + offloadMode: 'none', + resourceMode: 'auto', + }; + originalFetch = globalThis.fetch; +}); + +beforeEach(() => { + modules.studio.useStudioStore.setState({ + form, + activeWorkflowTabId: 'weight-loading-workflow', + workflowTabs: [], + workflowCanvasHydrated: true, + workflowCanvasEpoch: 0, + workflowFormEpoch: 0, + graphBinding: null, + currentRunContext: null, + runContextsByClientRunId: {}, + runContextsByTaskId: {}, + outputs: [], + }); + modules.tasks.useTaskStore.setState({ + queuedTasks: {}, + currentTask: undefined, + failedTasks: {}, + sessionRuns: [], + taskCount: 0, + }); +}); + +after(async () => { + globalThis.fetch = originalFetch; + await server?.close(); +}); + +function freshGraph() { + return modules.authoring.createTemplateOperationGraph( + template, + form, + starter, + fixture.registry, + row.spec, + row.capability, + ); +} +const flow = () => modules.flow.useFlowStore.getState(); +const exported = () => flow().exportGraph('', undefined, { randomizeSeeds: false }); +const loaderId = (graph) => Object.keys(graph.nodes).find((id) => graph.nodes[id].action === 'ModelsLoader'); +const response = (body) => + new Response(JSON.stringify(body), { status: 200, headers: { 'Content-Type': 'application/json' } }); +const plan = (patches) => ({ + schemaVersion: 1, + graphHash: `sha256:workflow-auto-v1:${'a'.repeat(64)}`, + plannedGraphHash: `sha256:workflow-auto-v1:${'b'.repeat(64)}`, + canAutoRun: true, + issues: [], + message: 'Transport fixture, not a hardware admission', + patches, + loaders: [], + requirements: {}, + available: {}, + sharedMemory: false, +}); + +test('actual backend weight-loading descriptor survives factory, fresh Model Setup and API serialization', () => { + const key = 'modules.ModularDiffusers.ModelsLoader'; + const descriptor = fixture.registry[key].params.weight_loading_mode; + assert.ok(descriptor, 'The backend must publish the descriptor; no synthetic substitute is accepted.'); + assert.equal(descriptor.type, 'string'); + assert.equal(descriptor.value ?? descriptor.default, 'cpu'); + assert.deepEqual( + Array.isArray(descriptor.options) + ? descriptor.options.map((option) => (typeof option === 'string' ? option : option.value)) + : Object.keys(descriptor.options), + ['cpu', 'cuda'], + ); + assert.equal(descriptor.fieldOptions.controlTier, 'advanced'); + const node = modules.factory.createNodeFromRegistry(key, fixture.registry, { x: 0, y: 0 }); + assert.deepEqual(node.data.params.weight_loading_mode, descriptor); + node.data.params.weight_loading_mode.value = 'cuda'; + assert.equal(descriptor.value ?? descriptor.default, 'cpu'); + const graph = freshGraph(); + assert.equal(graph.nodes.filter((node) => !node.data.blockProjectionOwnerId).length, 4); + flow().replaceGraph(graph); + const api = exported(); + const id = loaderId(api); + assert.equal(api.nodes[id].params.weight_loading_mode.value, 'cpu'); + assert.equal(JSON.parse(JSON.stringify(api)).nodes[id].params.weight_loading_mode.value, 'cpu'); + const owner = modules.groups + .unpackVisualOperationGroups(graph) + .graph.nodes.find((node) => node.data.action === 'ModelsLoader'); + const declared = row.starter.nodes.find((node) => node.operation.decomposition === 'loader').node.params + .weight_loading_mode; + // Ordinary Block projection applies its instance value and prevents the + // mounted field from overwriting the already-resolved starter contract. + assert.deepEqual(owner.data.params.weight_loading_mode, { + ...declared, + value: 'cpu', + fieldOptions: { ...declared.fieldOptions, suppressInitialFieldAction: true }, + }); +}); + +test('fresh image coordinator serializes the enum patch and preserves model and creative fields with one Undo', async () => { + flow().replaceGraph(freshGraph()); + const before = exported(), + id = loaderId(before), + requests = []; + const originalDefinition = structuredClone( + flow().nodes.find((node) => + node.data.blockInstanceV2?.effectiveGraph.nodes.some((child) => child.data.action === 'ModelsLoader'), + ).data.blockInstanceV2.definitionSnapshot, + ); + globalThis.fetch = async (url, init) => { + const body = JSON.parse(init.body); + requests.push({ url: String(url), body }); + if (String(url).endsWith('/auto_resource/workflow')) + return response(plan([{ nodeId: id, field: 'weight_loading_mode', value: 'cuda' }])); + assert.ok(String(url).endsWith('/graph')); + return response({ task_id: 'metadata-transport-only', sid: 'session-1', message: 'queued' }); + }; + const result = await modules.coordinator.coordinateGraphRun({ + sid: 'session-1', + preparedGraph: before, + studioContext: { applyRuntimeMetadata: false, clearChangedPreviews: false }, + }); + assert.equal(requests.length, 2); + assert.equal(requests[0].body.graph.nodes[id].params.weight_loading_mode.value, 'cpu'); + assert.equal(requests[1].body.nodes[id].params.weight_loading_mode.value, 'cuda'); + const expected = structuredClone(before.nodes); + expected[id].params.weight_loading_mode.value = 'cuda'; + assert.deepEqual(result.submittedGraph.nodes, expected); + assert.deepEqual(exported().nodes, expected); + assert.equal(result.submittedGraph.runtimeHints.workflowAutoPlan.graphHash, plan([]).plannedGraphHash); + assert.deepEqual( + flow().nodes.find((node) => + node.data.blockInstanceV2?.effectiveGraph.nodes.some((child) => child.data.action === 'ModelsLoader'), + ).data.blockInstanceV2.definitionSnapshot, + originalDefinition, + ); + flow().undo(); + assert.deepEqual(exported(), before); + flow().redo(); + assert.deepEqual(exported().nodes, expected); +}); + +test('actual loader descriptor supports atomic mirrored controls and runtime previous-value agreement', async () => { + const realLoader = modules.groups + .unpackVisualOperationGroups(freshGraph()) + .graph.nodes.find((node) => node.data.action === 'ModelsLoader'); + const nodes = ['loader', 'peer'].map((nodeId) => ({ + nodeId, + nodeType: 'custom', + data: structuredClone(realLoader.data), + })); + const graph = { nodes, edges: [], executionOrder: ['loader', 'peer'] }; + graph.graphHash = modules.schema.blockGraphHashV2(graph); + const definition = { + schemaVersion: 2, + definitionId: 'user:weight-loading', + displayName: 'Weight loading', + source: { kind: 'user' }, + graph, + boundary: { mode: 'explicit', inputs: [], outputs: [] }, + controls: [ + { + controlId: 'weight-loading', + label: 'Weight loading', + valueType: 'string', + defaultValue: 'cpu', + required: false, + order: 0, + binding: { nodeId: 'loader', fieldId: 'weight_loading_mode' }, + mirrorBindings: [{ nodeId: 'peer', fieldId: 'weight_loading_mode' }], + }, + ], + previews: [], + ownership: { kind: 'user', definitionMutable: true }, + }; + definition.contentHash = modules.schema.blockDefinitionContentHashV2(definition); + const root = modules.block.createBlockRootNodeV2( + modules.schema.createBlockInstanceV2(definition, { + instanceId: 'mirrored-weight-loading', + position: { x: 0, y: 0 }, + size: { width: 400, height: 320 }, + values: { 'weight-loading': 'cpu' }, + }), + ); + flow().replaceGraph({ nodes: [root], edges: [] }); + const before = exported(); + const patches = ['loader', 'peer'].map((nodeId) => ({ + nodeId: modules.block.blockProjectionNodeIdV2(root.id, nodeId), + field: 'weight_loading_mode', + value: 'cuda', + })); + globalThis.fetch = async () => response(plan(patches)); + const submitted = await modules.auto.prepareWorkflowAutoExecutionV2(before); + assert.deepEqual(submitted.runtimeHints.workflowAutoPlan.resourceControlGroups, [ + patches.map(({ nodeId, field }) => ({ nodeId, field })), + ]); + assert.deepEqual(exported().nodes, submitted.nodes); + assert.throws( + () => + modules.auto.applyRuntimeWorkflowAutoSettingsV2( + patches.map((patch, index) => ({ ...patch, value: index ? 'cpu' : 'cuda', previousValue: 'cuda' })), + ), + /shared resource control/, + ); + assert.deepEqual(exported().nodes, submitted.nodes); + flow().undo(); + assert.deepEqual(exported(), before); +}); + +test('legacy missing and connected actual loader settings are preserved before any mock Graph submission', async () => { + for (const connected of [false, true]) { + const graph = modules.groups.unpackVisualOperationGroups(freshGraph()).graph; + const owner = graph.nodes.find((node) => node.data.action === 'ModelsLoader'); + if (!connected) delete owner.data.params.weight_loading_mode; + flow().replaceGraph(graph); + const before = exported(), + id = loaderId(before), + requests = []; + if (connected) before.nodes[id].params.weight_loading_mode = { sourceId: 'external-author', sourceKey: 'mode' }; + const snapshot = structuredClone(flow().toObject()); + globalThis.fetch = async (url) => { + requests.push(String(url)); + assert.ok(String(url).endsWith('/auto_resource/workflow')); + return response(plan([{ nodeId: id, field: 'weight_loading_mode', value: 'cuda' }])); + }; + await assert.rejects( + modules.coordinator.coordinateGraphRun({ + sid: 'session-1', + preparedGraph: before, + studioContext: { applyRuntimeMetadata: false, clearChangedPreviews: false }, + }), + /missing, connected or repeated/, + ); + assert.equal(requests.length, 1); + assert.deepEqual(flow().toObject(), snapshot); + } +}); diff --git a/scripts/workflow-library-canonical-export.test.mjs b/scripts/workflow-library-canonical-export.test.mjs new file mode 100644 index 00000000..d5f701aa --- /dev/null +++ b/scripts/workflow-library-canonical-export.test.mjs @@ -0,0 +1,300 @@ +import assert from 'node:assert/strict'; +import { execFileSync } from 'node:child_process'; +import path from 'node:path'; +import { after, before, test } from 'node:test'; +import { createServer } from 'vite'; +import { sanitizeCanonicalWorkflowGraph, canonicalizeGraphIds } from './workflow-library-generator.mjs'; +import { retainExistingCanonicalDeviceDefaults } from './workflow-library-contract.mjs'; + +let server, hooks, flowStore, groups, blockSchema, fixture, templates, builder, defaults, exactness, operations; +let requests; +let shared; +const ids = ['qwen_text_rendering', 'cosmos3_super_text_to_image', 'qwen_outpaint_aspect_template']; + +before(async () => { + const storage = new Map(); + globalThis.localStorage = { + getItem: (key) => storage.get(key) ?? null, + setItem: (key, value) => storage.set(key, value), + removeItem: (key) => storage.delete(key), + }; + globalThis.window = { + location: { origin: 'http://127.0.0.1:5191' }, + localStorage: globalThis.localStorage, + dispatchEvent: () => true, + }; + server = await createServer({ + configFile: false, + logLevel: 'silent', + optimizeDeps: { entries: [], noDiscovery: true }, + server: { middlewareMode: true, watch: null }, + appType: 'custom', + }); + const all = (await server.ssrLoadModule('/src/studio/templates.ts')).STUDIO_TEMPLATES; + templates = ids.map((id) => all.find((item) => item.id === id)); + assert.ok(templates.every(Boolean)); + ({ useFlowStore: flowStore } = await server.ssrLoadModule('/src/stores/useFlowStore.ts')); + groups = await server.ssrLoadModule('/src/workflow/visualOperationGroups.ts'); + shared = await server.ssrLoadModule('/src/workflow/operationSharedInputs.ts'); + blockSchema = await server.ssrLoadModule('/src/studio/blockSchemaV2.ts'); + builder = await server.ssrLoadModule('/src/studio/templateOperationWorkflow.ts'); + exactness = await server.ssrLoadModule('/src/studio/templateExactness.ts'); + requests = await server.ssrLoadModule('/src/workflow/operationStarterRequest.ts'); + operations = await server.ssrLoadModule('/src/workflow/operationContracts.ts'); + ({ DEFAULT_STUDIO_FORM: defaults } = await server.ssrLoadModule('/src/studio/modelProfiles.ts')); + const e2e = await server.ssrLoadModule('/src/utils/e2eHooks.ts'); + e2e.installE2EHooks(); + hooks = window.__MODIFF_E2E__; + assert.ok(hooks); + const python = process.env.MODIFF_BACKEND_PYTHON; + assert.ok(python, 'Use the declared ordinary CPU schema fixture environment.'); + fixture = JSON.parse( + execFileSync(python, [path.resolve('scripts/template-operation-fixtures.py')], { + cwd: path.resolve('../MoDiff'), + encoding: 'utf8', + maxBuffer: 64 * 1024 * 1024, + input: JSON.stringify(templates.map((item) => ({ id: item.id, selection: item.executionSelection }))), + env: { ...process.env, PYTHONDONTWRITEBYTECODE: '1' }, + }), + ); +}); +after(async () => server?.close()); + +test('pair regeneration preserves canonical device defaults without changing authored controls or identities', () => { + const loader = (device) => ({ + id: 'loader', + data: { + module: 'modules.ModularDiffusers', + action: 'ModelsLoader', + params: { device: { type: 'str', value: 'cuda:0', options: { 'cpu:0': {}, 'cuda:0': {} } } }, + operationAuthoring: { + operation: { operationId: 'diffusion.load_models', binding: { values: { model_type: 'Example' } } }, + defaults: { device, dtype: 'bfloat16' }, + }, + }, + }); + const preview = (device) => ({ + id: 'preview', + data: { + module: 'modules.Image', + action: 'Preview', + params: { device: { type: 'str', default: device, options: { 'cpu:0': {}, 'cuda:0': {} } } }, + }, + }); + const original = { nodes: [loader('cpu:0'), preview('cpu:0')], edges: [] }; + const regenerated = { nodes: [preview('cuda:0'), loader('cuda:0')], edges: [] }; + const before = structuredClone(regenerated); + const retained = retainExistingCanonicalDeviceDefaults(regenerated, original); + assert.equal(retained.nodes[0].data.params.device.default, 'cpu:0'); + assert.equal(retained.nodes[1].data.operationAuthoring.defaults.device, 'cpu:0'); + assert.equal(retained.nodes[1].data.params.device.value, 'cuda:0', 'The authored CUDA selection is retained.'); + assert.deepEqual( + retained.nodes[1].data.operationAuthoring.operation, + before.nodes[1].data.operationAuthoring.operation, + ); + assert.deepEqual(retained.nodes[1].data.params, before.nodes[1].data.params); + assert.deepEqual(retained.nodes[0].data.params.device.options, before.nodes[0].data.params.device.options); + assert.deepEqual( + original.nodes.map((node) => node.id), + ['loader', 'preview'], + 'The existing graph is not mutated.', + ); + const changedIdentity = structuredClone(before); + changedIdentity.nodes[1].data.operationAuthoring.operation.binding.values.model_type = 'Different'; + retainExistingCanonicalDeviceDefaults(changedIdentity, original); + assert.equal(changedIdentity.nodes[1].data.operationAuthoring.defaults.device, 'cuda:0'); + const ambiguous = structuredClone(before); + ambiguous.nodes.push(structuredClone(ambiguous.nodes[0])); + assert.throws(() => retainExistingCanonicalDeviceDefaults(ambiguous, original), /unambiguous/); + assert.deepEqual(ambiguous.nodes[0], before.nodes[0], 'A rejected migration must not partially alter defaults.'); + const incompatible = structuredClone(before); + incompatible.nodes[0].data.params.device.options = { 'cuda:0': {} }; + assert.throws(() => retainExistingCanonicalDeviceDefaults(incompatible, original), /unavailable/); + assert.equal(incompatible.nodes[1].data.operationAuthoring.defaults.device, 'cuda:0'); + const added = preview('cuda:0'); + added.data.action = 'NewPreview'; + const freshStage = { nodes: [added], edges: [] }; + retainExistingCanonicalDeviceDefaults(freshStage, original); + assert.equal(added.data.params.device.default, 'cuda:0', 'New stages retain their declared fresh defaults.'); +}); + +test('canonical sanitization preserves weight-loading selectors and existing portable device semantics', () => { + for (const mode of ['cpu', 'cuda']) { + const selector = { + type: 'string', + default: mode, + value: mode, + options: [ + { schemaVersion: 1, value: 'cpu', label: 'cpu', compatibility: 'compatible' }, + { schemaVersion: 1, value: 'cuda', label: 'cuda', compatibility: 'compatible' }, + ], + fieldOptions: { controlTier: 'advanced' }, + }; + const graph = { + nodes: [ + { + id: 'models', + data: { + module: 'modules.ModularDiffusers', + action: 'ModelsLoader', + params: { + weight_loading_mode: selector, + device: { default: 'cuda:1', value: 'cuda:1', options: ['cpu:0', 'cuda:1'] }, + device_map: { default: 'cpu', value: 'cuda', options: ['cpu', 'cuda'] }, + unrelated: { value: 'cuda:1' }, + }, + operationAuthoring: { defaults: { weight_loading_mode: mode, device: 'cuda:1' } }, + }, + }, + ], + edges: [], + }; + const before = structuredClone(graph); + const data = sanitizeCanonicalWorkflowGraph(graph).nodes[0].data; + assert.deepEqual(data.params.weight_loading_mode, selector, 'Enum values/defaults/options are not device IDs.'); + assert.deepEqual(data.operationAuthoring.defaults, graph.nodes[0].data.operationAuthoring.defaults); + assert.deepEqual(data.params.device, graph.nodes[0].data.params.device); + assert.deepEqual(data.params.device_map, graph.nodes[0].data.params.device_map); + assert.equal(data.params.unrelated.value, 'cpu:0', 'Existing unrelated device-token normalization is retained.'); + assert.deepEqual(graph, before, 'Canonical sanitization does not mutate the saved graph.'); + } +}); + +function build(id) { + const template = templates.find((item) => item.id === id); + const row = fixture.recipes.find((item) => item.id === id); + const contracts = operations.parseOperationContracts( + fixture.publicPayload.operationContracts, + fixture.publicPayload.operationContractSchemaVersion, + ); + const starter = requests.parseOperationStarter( + row.starter, + row.starter.pipelineClass, + row.starter.task, + contracts, + template.executionSelection, + ); + const device = starter.nodes.find((item) => item.operation.decomposition === 'loader').node.params.device; + const form = { + ...defaults, + ...exactness.getTemplateLockedSettings(template), + device: device.value ?? device.default, + autoOffload: false, + offloadMode: 'none', + }; + return builder.createTemplateOperationGraph( + template, + form, + starter, + fixture.registry, + row.spec, + fixture.capabilities.find((item) => item.modelType === template.modelType), + ); +} + +function semanticApi(graph) { + const api = flowStore + .getState() + .exportGraph('canonical-export-contract', undefined, { sourceGraph: graph, randomizeSeeds: false }); + const names = new Map(Object.entries(api.nodes).map(([id, node]) => [id, `${node.module}.${node.action}`])); + assert.equal(new Set(names.values()).size, names.size, 'These independently chosen witnesses have unique actions.'); + return Object.entries(api.nodes) + .map(([id, node]) => ({ + identity: names.get(id), + params: Object.fromEntries( + Object.entries(node.params).map(([key, param]) => [ + key, + param && typeof param === 'object' && 'sourceId' in param + ? { ...param, sourceId: names.get(param.sourceId) } + : param, + ]), + ), + })) + .sort((a, b) => a.identity.localeCompare(b.identity)); +} + +test('canonical library projection preserves real Cosmos/Qwen controls, wires and owner identity without rewriting grouped saves', async () => { + for (const id of ids) { + const graph = build(id); + const expectedApi = semanticApi(graph); + const expectedOwners = groups + .unpackVisualOperationGroups(graph) + .graph.nodes.filter((node) => node.data.operationAuthoring?.operation.decomposition === 'loader') + .map((node) => node.data.operationAuthoring.operation.binding); + assert.ok(graph.nodes.some(groups.visualOperationGroup)); + flowStore.setState({ nodes: structuredClone(graph.nodes), edges: structuredClone(graph.edges) }); + const ordinarySave = await hooks.prepareWorkflowGraphForExport(); + const definitionHashes = ordinarySave.nodes + .filter(groups.visualOperationGroup) + .map((node) => node.data.blockInstanceV2.definitionSnapshot.contentHash); + const exported = await hooks.prepareWorkflowGraphForExport({ canonicalLibrary: true }); + assert.equal(exported.nodes.some(groups.visualOperationGroup), false, id); + assert.deepEqual(semanticApi(exported), expectedApi, id); + assert.deepEqual( + exported.nodes + .filter((node) => node.data.operationAuthoring?.operation.decomposition === 'loader') + .map((node) => node.data.operationAuthoring.operation.binding), + expectedOwners, + id, + ); + const sanitized = sanitizeCanonicalWorkflowGraph(exported); + assert.deepEqual(semanticApi(sanitized), expectedApi, 'Only transient UI/preview state may be removed.'); + if (id === ids[2]) { + const encoder = sanitized.nodes.find((node) => node.data.action === 'ImageEncode'); + assert.equal( + shared.sharedOperationInput(sanitized.nodes, sanitized.edges, encoder.id, 'seed')?.members.length, + 2, + 'The actual masked workflow exposes its single state-owned seed before ID canonicalization.', + ); + } + const canonical = canonicalizeGraphIds(structuredClone(sanitized), shared.remapOperationAuthoring); + assert.deepEqual( + semanticApi(canonical), + expectedApi, + 'Canonical IDs preserve every executable parameter and wire.', + ); + for (const node of canonical.nodes) { + for (const binding of node.data.operationAuthoring?.sharedInputs ?? []) { + assert.ok( + canonical.nodes.some((owner) => owner.id === binding.loaderId), + 'The editing owner must use its canonical ID.', + ); + } + } + if (id === ids[2]) { + const encoder = canonical.nodes.find((node) => node.data.action === 'ImageEncode'); + assert.equal( + shared.sharedOperationInput(canonical.nodes, canonical.edges, encoder.id, 'seed')?.members.length, + 2, + ); + } + assert.deepEqual( + flowStore + .getState() + .nodes.filter(groups.visualOperationGroup) + .map((node) => node.data.blockInstanceV2.definitionSnapshot.contentHash), + definitionHashes, + ); + assert.ok((await hooks.prepareWorkflowGraphForExport()).nodes.some(groups.visualOperationGroup)); + } +}); + +test('canonical projection leaves user Blocks intact and rejects malformed visual definition hashes', async () => { + const graph = build(ids[0]); + const root = graph.nodes.find((node) => groups.visualOperationGroup(node) === 'inputs'); + const definition = structuredClone(root.data.blockInstanceV2.definitionSnapshot); + definition.source.provider = 'operator-authored-example'; + definition.contentHash = blockSchema.blockDefinitionContentHashV2(definition); + root.data.blockInstanceV2.definitionSnapshot = blockSchema.normalizeBlockDefinitionV2(definition); + root.data.blockInstanceV2.definitionRef.contentHash = definition.contentHash; + flowStore.setState({ nodes: structuredClone(graph.nodes), edges: structuredClone(graph.edges) }); + const exported = await hooks.prepareWorkflowGraphForExport({ canonicalLibrary: true }); + const retained = exported.nodes.find((node) => node.id === root.id); + assert.ok(retained?.data.blockInstanceV2); + assert.deepEqual(retained.data.blockInstanceV2.definitionSnapshot, definition); + const malformed = build(ids[0]); + flowStore.setState({ nodes: malformed.nodes, edges: malformed.edges }); + flowStore.getState().nodes.find(groups.visualOperationGroup).data.blockInstanceV2.definitionSnapshot.contentHash = + 'block-definition-v2-00000000'; + await assert.rejects(hooks.prepareWorkflowGraphForExport({ canonicalLibrary: true }), /contentHash/); +}); diff --git a/scripts/workflow-library-contract.mjs b/scripts/workflow-library-contract.mjs index ce98b1b0..5165ee91 100644 --- a/scripts/workflow-library-contract.mjs +++ b/scripts/workflow-library-contract.mjs @@ -1,3 +1,5 @@ +import { stableJsonValue } from './canonical-json.mjs'; + function paramValue(node, key) { return node?.data?.params?.[key]?.value; } @@ -48,7 +50,18 @@ export function workflowNodeAttentionBackendError(node) { ? attention.options.map((option) => (typeof option === 'string' ? option : option?.value)) : Object.keys(attention.options ?? {}); const stale = [attention.value, ...savedOptions].filter((value) => FORBIDDEN_ATTENTION_BACKENDS.has(value)); - return stale.length > 0 ? `persists unsupported attention backends: ${[...new Set(stale)].join(', ')}` : null; + if (stale.length > 0) return `persists unsupported attention backends: ${[...new Set(stale)].join(', ')}`; + const backend = attention.value; + const device = paramValue(node, 'device'); + // PyTorch's math SDPA is portable; the other native kernels still require + // an accelerator. Keep the exception exact, not a native-prefix exemption. + if ( + backend !== '_native_math' && + String(backend ?? '').startsWith('_native_') && + String(device ?? '').startsWith('cpu') + ) + return `selects accelerator attention ${backend} on ${device}`; + return null; } export function workflowNodeDeviceOffloadError(node) { @@ -73,3 +86,127 @@ export function normalizePortableWorkflowNodeOffload(node) { if (params.offload_mode) params.offload_mode = { ...params.offload_mode, value: 'none' }; return node; } + +function canonicalDeviceOwnerIdentity(node) { + const data = node?.data; + if (typeof data?.module !== 'string' || typeof data.action !== 'string') return null; + const operation = data.operationAuthoring?.operation; + return JSON.stringify( + stableJsonValue({ + module: data.module, + action: data.action, + operationId: operation?.operationId ?? null, + decomposition: operation?.decomposition ?? null, + pipelineClass: operation?.pipelineClass ?? null, + workflowId: operation?.workflowId ?? null, + binding: operation?.binding ?? null, + }), + ); +} + +/** Pair regeneration must not replace published fallback device defaults with + * the generator host's defaults. Authored values and fresh schemas stay intact. */ +export function retainExistingCanonicalDeviceDefaults(graph, existingGraph) { + const existingByIdentity = new Map(); + const freshByIdentity = new Map(); + for (const [nodes, index] of [ + [existingGraph?.nodes ?? [], existingByIdentity], + [graph?.nodes ?? [], freshByIdentity], + ]) { + for (const node of nodes) { + const identity = canonicalDeviceOwnerIdentity(node); + if (identity !== null) index.set(identity, [...(index.get(identity) ?? []), node]); + } + } + const updates = []; + for (const [identity, existingNodes] of existingByIdentity) { + const freshNodes = freshByIdentity.get(identity); + if (!freshNodes) continue; + const defaults = existingNodes.flatMap((node) => [ + [node.data.params?.device, 'default'], + [node.data.operationAuthoring?.defaults, 'device'], + ]); + if (!defaults.some(([owner, key]) => owner && Object.hasOwn(owner, key))) continue; + if (existingNodes.length !== 1 || freshNodes.length !== 1) + throw new Error('Canonical device defaults require an unambiguous unchanged executable node identity.'); + const existing = existingNodes[0]; + const fresh = freshNodes[0]; + const field = fresh.data.params?.device; + for (const [previousOwner, key, owner] of [ + [existing.data.params?.device, 'default', field], + [existing.data.operationAuthoring?.defaults, 'device', fresh.data.operationAuthoring?.defaults], + ]) { + if (!previousOwner || !Object.hasOwn(previousOwner, key)) continue; + const value = previousOwner[key]; + if (!owner || !field || typeof value !== 'string' || !/^(?:cuda|mps|cpu|xpu)(?::\d+)?$/i.test(value)) + throw new Error('An existing canonical device default has no compatible declared destination.'); + const options = Array.isArray(field.options) + ? field.options.map((option) => (typeof option === 'string' ? option : option?.value)) + : Object.keys(field.options ?? {}); + if (options.length > 0 && !options.includes(value)) + throw new Error('An existing canonical device default is unavailable in the fresh field schema.'); + updates.push([owner, key, value]); + } + } + for (const [owner, key, value] of updates) owner[key] = value; + return graph; +} + +/** Verify the existing declared image-stage contract against the actual saved + * graph. Reachability and a graph hash do not prove required owner links. */ +export function verifyCanonicalImagePipelineStages(workflow, graph, contracts) { + if (workflow.mediaKind !== 'image') return; + const nodes = (graph.nodes ?? []).map((node) => ({ + id: node.id, + nodeKey: `${node.data?.module}.${node.data?.action}`, + operation: node.data?.operationAuthoring?.operation, + params: node.data?.params ?? {}, + })); + const stageKeys = { + image_encoder: 'modules.DiffusersImage.EncodeInputs', + denoise: 'modules.DiffusersImage.Denoise', + decoder: 'modules.DiffusersImage.DecodeLatents', + }; + const stages = nodes.filter( + (node) => + ['modules.DiffusersImage.EncodeInputs', 'modules.DiffusersImage.Denoise'].includes(node.nodeKey) || + (node.operation?.decomposition === 'bundle' && + Object.hasOwn(stageKeys, node.operation.nodeType) && + node.operation.ports.some( + (port) => port.direction === 'input' && port.types.includes('image_diffusion_pipeline'), + )), + ); + if (stages.length === 0) return; + const owners = nodes.filter( + (node) => + contracts.operationOwnsModel(node.operation) && + node.operation.ports.some( + (port) => port.direction === 'output' && port.types.includes('image_diffusion_pipeline'), + ), + ); + const owner = owners[0]; + const stageIds = new Set(stages.map((node) => node.id)); + const edges = graph.edges ?? []; + const supplying = edges.filter( + (edge) => + stageIds.has(edge.target) && + nodes.find((node) => node.id === edge.target)?.params[edge.targetHandle]?.type === 'image_diffusion_pipeline', + ); + if ( + owners.length !== 1 || + stages.length !== 3 || + owner.operation.nodeKey !== owner.nodeKey || + owner.operation.task !== workflow.mode || + stages.some( + (node) => + !node.operation || + node.operation.nodeKey !== node.nodeKey || + node.nodeKey !== stageKeys[node.operation.nodeType] || + node.operation.task !== workflow.mode, + ) || + new Set(nodes.map((node) => node.id)).size !== nodes.length || + supplying.some((edge) => edge.source !== owner.id) || + contracts.declaredImagePipelineStageContracts(nodes, owner.id, edges, supplying) === null + ) + throw new Error(`${workflow.id} is missing its exact declared owned image pipeline stage route.`); +} diff --git a/scripts/workflow-library-generator.mjs b/scripts/workflow-library-generator.mjs index 7f07139d..b0c017ea 100644 --- a/scripts/workflow-library-generator.mjs +++ b/scripts/workflow-library-generator.mjs @@ -1,6 +1,7 @@ import { existsSync, mkdirSync, readFileSync, rmSync, writeFileSync } from 'node:fs'; import { homedir } from 'node:os'; import { dirname, join, resolve } from 'node:path'; +import { pathToFileURL } from 'node:url'; import { chromium } from 'playwright'; import { createServer } from 'vite'; import { canonicalJsonHash as hash, stableJsonValue as stable } from './canonical-json.mjs'; @@ -18,8 +19,12 @@ import { normalizePortableWorkflowDataReference, normalizePortableWorkflowFieldState, normalizePortableWorkflowNodeOffload, + retainExistingCanonicalDeviceDefaults, } from './workflow-library-contract.mjs'; -import { retainUnselectedCurrentWorkflowRecords } from './workflow-library-manifest-state.mjs'; +import { + compareCanonicalWorkflowRecordIds, + retainUnselectedCurrentWorkflowRecords, +} from './workflow-library-manifest-state.mjs'; import { attachCanonicalAuxiliaryBinding, parseCanonicalAuxiliarySources, @@ -97,8 +102,10 @@ function sanitize(value, key = '', ancestors = []) { key === 'options' || key === 'device' || key === 'device_map' || + key === 'weight_loading_mode' || ancestors.includes('device') || - ancestors.includes('device_map') + ancestors.includes('device_map') || + ancestors.includes('weight_loading_mode') ) return value; return 'cpu:0'; @@ -153,7 +160,9 @@ function applyPortableContracts(graph, mode) { return graph; } -function canonicalizeGraphIds(graph) { +function canonicalizeGraphIds(graph, remapOperationAuthoring) { + if (typeof remapOperationAuthoring !== 'function') + throw new Error('Canonical export requires the existing operation-authoring remapper.'); const nodes = [...(graph?.nodes ?? [])].sort((left, right) => { const leftKey = `${left?.data?.studioRole ?? ''}|${left?.data?.module ?? ''}|${left?.data?.action ?? ''}|${left?.position?.y ?? 0}|${left?.position?.x ?? 0}`; const rightKey = `${right?.data?.studioRole ?? ''}|${right?.data?.module ?? ''}|${right?.data?.action ?? ''}|${right?.position?.y ?? 0}|${right?.position?.x ?? 0}`; @@ -164,6 +173,14 @@ function canonicalizeGraphIds(graph) { ...node, id: ids.get(node.id), ...(node.parentId ? { parentId: ids.get(node.parentId) } : {}), + ...(node.data.operationAuthoring + ? { + data: { + ...node.data, + operationAuthoring: remapOperationAuthoring(node.data.operationAuthoring, (id) => ids.get(id) ?? id), + }, + } + : {}), })); graph.edges = [...(graph?.edges ?? [])] .map((edge) => ({ ...edge, source: ids.get(edge.source), target: ids.get(edge.target) })) @@ -299,8 +316,9 @@ async function main() { server: { middlewareMode: true, watch: null }, appType: 'custom', }); - let auxiliarySources; + let auxiliarySources, remapOperationAuthoring; try { + ({ remapOperationAuthoring } = await parserServer.ssrLoadModule('/src/workflow/operationSharedInputs.ts')); auxiliarySources = await parseCanonicalAuxiliarySources(capabilities, selectedCapabilities, parserServer); } finally { await parserServer.close(); @@ -476,7 +494,7 @@ async function main() { const finalizeCanonicalGraph = async (graph) => { const arrangedBeforeCanonicalIds = await arrangeSnapshot(graph); - const canonical = canonicalizeGraphIds(arrangedBeforeCanonicalIds); + const canonical = canonicalizeGraphIds(arrangedBeforeCanonicalIds, remapOperationAuthoring); const arranged = await arrangeSnapshot(canonical); const repeated = await arrangeSnapshot(arranged); if (JSON.stringify(graphLayoutSignature(arranged)) !== JSON.stringify(graphLayoutSignature(repeated))) { @@ -512,7 +530,7 @@ async function main() { ); } const exported = await pageOperation(`exporting ${description}`, (page) => - page.evaluate(() => window.__MODIFF_E2E__?.prepareWorkflowGraphForExport()), + page.evaluate(() => window.__MODIFF_E2E__?.prepareWorkflowGraphForExport({ canonicalLibrary: true })), ); if (!exported || !Array.isArray(exported.nodes) || !Array.isArray(exported.edges)) { throw new Error(`Could not export a completed graph for ${description}.`); @@ -563,16 +581,19 @@ async function main() { if (requestedPair && pair !== requestedPair) continue; const template = browserSession.catalog.byPair.get(pair); if (!template) throw new Error(`No Studio template can build ${pair}.`); + const isSupported = capability.supportTier === 'supported'; + const libraryTier = isSupported ? 'studio' : 'experimental'; + const relativePath = join(libraryTier, slug(capability.modelType), `${slug(mode)}.json`).replaceAll('\\', '/'); + const outputPath = join(BACKEND_ROOT, 'data', 'graphs', relativePath); + const existingGraph = + requestedPair && existsSync(outputPath) ? JSON.parse(readFileSync(outputPath, 'utf8')) : null; const graph = await buildTemplateGraphWithRecovery( (catalog) => catalog.byPair.get(pair), mode, `canonical workflow ${pair}`, ); + if (existingGraph) retainExistingCanonicalDeviceDefaults(graph, existingGraph); const graphHash = hash(graph); - const isSupported = capability.supportTier === 'supported'; - const libraryTier = isSupported ? 'studio' : 'experimental'; - const relativePath = join(libraryTier, slug(capability.modelType), `${slug(mode)}.json`).replaceAll('\\', '/'); - const outputPath = join(BACKEND_ROOT, 'data', 'graphs', relativePath); mkdirSync(dirname(outputPath), { recursive: true }); writeFileSync(outputPath, `${JSON.stringify(graph, null, 2)}\n`); const qualificationStatus = Array.isArray(capability.qualifiedModes) @@ -618,12 +639,6 @@ async function main() { `LoRA template ${template.id} has no runnable capability for ${template.modelType}|${template.mode}.`, ); } - const graph = await buildTemplateGraphWithRecovery( - (catalog) => catalog.templates.find((candidate) => candidate.id === template.id), - template.mode, - `LoRA workflow variant ${template.id}`, - ); - const graphHash = hash(graph); const isSupported = capability.supportTier === 'supported'; const libraryTier = isSupported ? 'studio' : 'experimental'; const relativePath = join( @@ -632,6 +647,15 @@ async function main() { `${slug(template.mode)}--${slug(template.id)}.json`, ).replaceAll('\\', '/'); const outputPath = join(BACKEND_ROOT, 'data', 'graphs', relativePath); + const existingGraph = + requestedPair && existsSync(outputPath) ? JSON.parse(readFileSync(outputPath, 'utf8')) : null; + const graph = await buildTemplateGraphWithRecovery( + (catalog) => catalog.templates.find((candidate) => candidate.id === template.id), + template.mode, + `LoRA workflow variant ${template.id}`, + ); + if (existingGraph) retainExistingCanonicalDeviceDefaults(graph, existingGraph); + const graphHash = hash(graph); mkdirSync(dirname(outputPath), { recursive: true }); writeFileSync(outputPath, `${JSON.stringify(graph, null, 2)}\n`); const adapterNode = graph.nodes.find( @@ -672,7 +696,7 @@ async function main() { } browserSession?.guard.assertHealthy('publishing the canonical workflow manifest'); - records.sort((left, right) => left.id.localeCompare(right.id)); + records.sort(compareCanonicalWorkflowRecordIds); const manifest = { schemaVersion: 1, generatedAt: new Date().toISOString(), @@ -698,23 +722,27 @@ async function main() { } } -if (process.argv.includes('--help') || process.argv.includes('-h')) { - process.stdout.write( - [ - 'Generate portable Studio workflows from a running MoDiff capability registry.', - '', - 'Environment:', - ' MODIFF_SERVER Backend URL (default http://127.0.0.1:8088)', - ' MODIFF_FRONTEND Client URL (default http://127.0.0.1:5173)', - ' MODIFF_BACKEND_DIR Backend repository root (default ../MoDiff)', - ' MODIFF_WORKFLOW_BROWSER_BATCH_SIZE Workflows per fresh browser (default 20)', - '', - 'Options:', - ' --pair=ModelType|mode Regenerate one canonical pair and its variants, then merge them into the manifest.', - '', - 'Full generation replaces both graph catalogs and the workflow manifest; --pair updates only that model/mode pair.', - ].join('\n') + '\n', - ); -} else { - await main(); +export { sanitize as sanitizeCanonicalWorkflowGraph, canonicalizeGraphIds }; + +if (process.argv[1] && import.meta.url === pathToFileURL(resolve(process.argv[1])).href) { + if (process.argv.includes('--help') || process.argv.includes('-h')) { + process.stdout.write( + [ + 'Generate portable Studio workflows from a running MoDiff capability registry.', + '', + 'Environment:', + ' MODIFF_SERVER Backend URL (default http://127.0.0.1:8088)', + ' MODIFF_FRONTEND Client URL (default http://127.0.0.1:5173)', + ' MODIFF_BACKEND_DIR Backend repository root (default ../MoDiff)', + ' MODIFF_WORKFLOW_BROWSER_BATCH_SIZE Workflows per fresh browser (default 20)', + '', + 'Options:', + ' --pair=ModelType|mode Regenerate one canonical pair and its variants, then merge them into the manifest.', + '', + 'Full generation replaces both graph catalogs and the workflow manifest; --pair updates only that model/mode pair.', + ].join('\n') + '\n', + ); + } else { + await main(); + } } diff --git a/scripts/workflow-library-image-stages.test.mjs b/scripts/workflow-library-image-stages.test.mjs new file mode 100644 index 00000000..8f575141 --- /dev/null +++ b/scripts/workflow-library-image-stages.test.mjs @@ -0,0 +1,179 @@ +import assert from 'node:assert/strict'; +import { readFileSync } from 'node:fs'; +import path from 'node:path'; +import { after, before, test } from 'node:test'; +import { createServer } from 'vite'; +import { verifyCanonicalImagePipelineStages } from './workflow-library-contract.mjs'; + +const backend = path.resolve(process.env.MODIFF_BACKEND_DIR || '../MoDiff'); +const manifest = JSON.parse(readFileSync(path.join(backend, 'data/workflow-library-manifest.json'), 'utf8')); +const selected = new Set([ + 'FluxCannyPipeline:control_image', + 'FluxDepthPipeline:control_image', + 'FluxFillPipeline:inpaint', + 'FluxFillPipeline:outpaint', + 'FluxReduxPipeline:edit_image', + 'FluxReduxPipeline:multi_image_reference_edit', +]); +const rows = manifest.workflows.filter((row) => selected.has(row.id)); +assert.equal(rows.length, 6); +let server, contracts; + +before(async () => { + server = await createServer({ + root: process.cwd(), + configFile: false, + logLevel: 'silent', + optimizeDeps: { entries: [], noDiscovery: true }, + server: { middlewareMode: true, watch: null }, + appType: 'custom', + }); + contracts = { + ...(await server.ssrLoadModule('/src/workflow/imagePipelineStageContracts.ts')), + ...(await server.ssrLoadModule('/src/workflow/operationContracts.ts')), + }; +}); +after(async () => server?.close()); + +function graphFor(row) { + return JSON.parse(readFileSync(path.join(backend, 'data/graphs', row.graphPath), 'utf8')); +} + +function stageNodes(graph) { + return Object.fromEntries( + graph.nodes.filter((node) => node.data.module === 'modules.DiffusersImage').map((node) => [node.data.action, node]), + ); +} + +/** A local mutation fixture supplies the complete required route solely to + * exercise refusal controls. It is never written back as a canonical graph. */ +function completeMutationFixture(graph) { + const result = structuredClone(graph); + const nodes = stageNodes(result); + for (const action of ['EncodeInputs', 'Denoise', 'DecodeLatents']) { + if ( + !result.edges.some( + (edge) => + edge.source === nodes.LoadPipeline.id && + edge.sourceHandle === 'pipeline' && + edge.target === nodes[action].id && + edge.targetHandle === 'pipeline', + ) + ) + result.edges.push({ + id: `fixture-owner-${action}`, + source: nodes.LoadPipeline.id, + sourceHandle: 'pipeline', + target: nodes[action].id, + targetHandle: 'pipeline', + }); + } + return result; +} + +for (const row of rows) { + test(`current canonical ${row.id} preserves all required owned image-stage links`, () => { + const graph = graphFor(row); + assert.doesNotThrow(() => verifyCanonicalImagePipelineStages(row, graph, contracts)); + }); + + test(`${row.id} stage verifier accepts complete local topology and rejects omitted, foreign and duplicate suppliers`, () => { + const graph = completeMutationFixture(graphFor(row)); + const pristine = structuredClone(graph); + const nodes = stageNodes(graph); + assert.doesNotThrow(() => verifyCanonicalImagePipelineStages(row, graph, contracts)); + assert.deepEqual(graph, pristine, 'Verification does not modify authoring or persisted graph data.'); + const required = [ + ...['EncodeInputs', 'Denoise', 'DecodeLatents'].map((action) => [ + nodes.LoadPipeline.id, + 'pipeline', + nodes[action].id, + 'pipeline', + ]), + [nodes.EncodeInputs.id, 'encoded_inputs', nodes.Denoise.id, 'encoded_inputs'], + [nodes.Denoise.id, 'latents_out', nodes.DecodeLatents.id, 'latents'], + [nodes.Denoise.id, 'latent_binding', nodes.DecodeLatents.id, 'latent_binding'], + [nodes.Denoise.id, 'width_out', nodes.DecodeLatents.id, 'width'], + [nodes.Denoise.id, 'height_out', nodes.DecodeLatents.id, 'height'], + ]; + for (const expected of required) { + const index = graph.edges.findIndex( + (edge) => + edge.source === expected[0] && + edge.sourceHandle === expected[1] && + edge.target === expected[2] && + edge.targetHandle === expected[3], + ); + assert.ok(index >= 0); + const missing = structuredClone(graph); + missing.edges.splice(index, 1); + assert.throws( + () => verifyCanonicalImagePipelineStages(row, missing, contracts), + /owned image pipeline stage route/, + ); + const duplicate = structuredClone(graph); + duplicate.edges.push({ ...duplicate.edges[index], id: `duplicate-${index}` }); + assert.throws( + () => verifyCanonicalImagePipelineStages(row, duplicate, contracts), + /owned image pipeline stage route/, + ); + } + const undeclared = structuredClone(graph); + for (const node of Object.values(stageNodes(undeclared))) delete node.data.operationAuthoring; + assert.throws( + () => verifyCanonicalImagePipelineStages(row, undeclared, contracts), + /owned image pipeline stage route/, + ); + for (const action of ['EncodeInputs', 'Denoise', 'DecodeLatents']) { + const missingDeclaration = structuredClone(graph); + delete stageNodes(missingDeclaration)[action].data.operationAuthoring; + assert.throws( + () => verifyCanonicalImagePipelineStages(row, missingDeclaration, contracts), + /owned image pipeline stage route/, + ); + const forgedDeclaration = structuredClone(graph); + stageNodes(forgedDeclaration)[action].data.operationAuthoring.operation.nodeKey = + 'modules.DiffusersImage.Generate'; + assert.throws( + () => verifyCanonicalImagePipelineStages(row, forgedDeclaration, contracts), + /owned image pipeline stage route/, + ); + for (const field of ['module', 'action']) { + const wrongExecutable = structuredClone(graph); + stageNodes(wrongExecutable)[action].data[field] = field === 'module' ? 'modules.ForeignImage' : 'Generate'; + assert.throws( + () => verifyCanonicalImagePipelineStages(row, wrongExecutable, contracts), + /owned image pipeline stage route/, + ); + } + } + const wrongTask = structuredClone(graph); + for (const node of Object.values(stageNodes(wrongTask))) + node.data.operationAuthoring.operation.task = 'foreign_task'; + assert.throws( + () => verifyCanonicalImagePipelineStages(row, wrongTask, contracts), + /owned image pipeline stage route/, + ); + const foreign = structuredClone(graph); + const another = structuredClone(nodes.LoadPipeline); + another.id = 'foreign-loader'; + foreign.nodes.push(another); + foreign.edges.find((edge) => edge.target === nodes.EncodeInputs.id && edge.targetHandle === 'pipeline').source = + another.id; + assert.throws( + () => verifyCanonicalImagePipelineStages(row, foreign, contracts), + /owned image pipeline stage route/, + ); + const foreignScope = structuredClone(graph); + stageNodes(foreignScope).DecodeLatents.data.operationAuthoring.operation.pipelineClass = 'ForeignPipeline'; + assert.throws( + () => verifyCanonicalImagePipelineStages(row, foreignScope, contracts), + /owned image pipeline stage route/, + ); + }); +} + +test('unrelated current canonical image, audio and video routes retain ordinary verifier behavior', () => { + for (const row of manifest.workflows.filter((item) => !selected.has(item.id))) + assert.doesNotThrow(() => verifyCanonicalImagePipelineStages(row, graphFor(row), contracts)); +}); diff --git a/scripts/workflow-library-manifest-state.mjs b/scripts/workflow-library-manifest-state.mjs index dfe21d4f..2322f289 100644 --- a/scripts/workflow-library-manifest-state.mjs +++ b/scripts/workflow-library-manifest-state.mjs @@ -1,3 +1,8 @@ +export function compareCanonicalWorkflowRecordIds(left, right) { + // Published IDs use codepoint order so host locale never rewrites unrelated pairs. + return left.id < right.id ? -1 : left.id > right.id ? 1 : 0; +} + export function retainUnselectedCurrentWorkflowRecords(records, capabilities, requestedPair) { if (!requestedPair) return []; const currentPairs = new Set( diff --git a/scripts/workflow-library-verify.mjs b/scripts/workflow-library-verify.mjs index 69ad6998..0a78baf5 100644 --- a/scripts/workflow-library-verify.mjs +++ b/scripts/workflow-library-verify.mjs @@ -4,7 +4,11 @@ import { existsSync, readFileSync } from 'node:fs'; import { join, resolve } from 'node:path'; import { createServer } from 'vite'; import { canonicalJsonHash, stableJsonValue as stable } from './canonical-json.mjs'; -import { workflowNodeAttentionBackendError, workflowNodeDeviceOffloadError } from './workflow-library-contract.mjs'; +import { + workflowNodeAttentionBackendError, + workflowNodeDeviceOffloadError, + verifyCanonicalImagePipelineStages, +} from './workflow-library-contract.mjs'; import { verifyNoDeadWorkflowNodes } from './workflow-library-dead-nodes.mjs'; import { parseCanonicalAuxiliarySources } from './workflow-library-auxiliary-sources.mjs'; @@ -113,7 +117,7 @@ function verifyCanonicalLayout(workflow, graph, graphLayout) { } } -function verifyWorkflow(workflow, expectedTier, graphLayout) { +function verifyWorkflow(workflow, expectedTier, graphLayout, imageStageContracts) { if (pairs.has(workflow.id)) throw new Error(`Duplicate canonical workflow: ${workflow.id}`); pairs.add(workflow.id); if (workflow.supportTier !== expectedTier) throw new Error(`${workflow.id} is not in the ${expectedTier} tier.`); @@ -137,6 +141,7 @@ function verifyWorkflow(workflow, expectedTier, graphLayout) { const raw = readFileSync(graphPath, 'utf8'); const graph = JSON.parse(raw); verifyCanonicalLayout(workflow, graph, graphLayout); + verifyCanonicalImagePipelineStages(workflow, graph, imageStageContracts); const dependencyGraph = workflow.auxiliaryTerminalBinding ? unpackCanonicalGraph(graph) : graph; verifyNoDeadWorkflowNodes( workflow, @@ -155,14 +160,8 @@ function verifyWorkflow(workflow, expectedTier, graphLayout) { } } if (node?.data?.action === 'DiffusersExecutionRecipe') { - const params = node.data.params ?? {}; - const attentionBackend = params.attention_backend?.value; - const device = params.device?.value; const attentionError = workflowNodeAttentionBackendError(node); if (attentionError) throw new Error(`${workflow.id} ${attentionError}.`); - if (String(attentionBackend ?? '').startsWith('_native_') && String(device ?? '').startsWith('cpu')) { - throw new Error(`${workflow.id} selects accelerator attention ${attentionBackend} on ${device}.`); - } } const offloadError = workflowNodeDeviceOffloadError(node); if (offloadError) throw new Error(`${workflow.id} ${offloadError}.`); @@ -735,6 +734,10 @@ const layoutModuleServer = await createServer({ }); try { const graphLayout = await layoutModuleServer.ssrLoadModule('/src/workflow/graphLayout.ts'); + const imageStageContracts = { + ...(await layoutModuleServer.ssrLoadModule('/src/workflow/imagePipelineStageContracts.ts')), + ...(await layoutModuleServer.ssrLoadModule('/src/workflow/operationContracts.ts')), + }; const sourceBoundWorkflows = [...manifest.workflows, ...(manifest.experimentalWorkflows ?? [])].filter((workflow) => Object.prototype.hasOwnProperty.call(workflow, 'auxiliaryTerminalBinding'), ); @@ -777,7 +780,7 @@ try { if (requestedPair && selectedCanonicalCount !== 1) { throw new Error(`The requested canonical workflow pair is not unique: ${requestedPair}.`); } - for (const workflow of selectedSupported) verifyWorkflow(workflow, 'supported', graphLayout); + for (const workflow of selectedSupported) verifyWorkflow(workflow, 'supported', graphLayout, imageStageContracts); const expectedExperimentalCount = Number(manifest.experimentalWorkflowCount ?? 0); if (!Number.isInteger(expectedExperimentalCount) || expectedExperimentalCount < 0) { @@ -791,7 +794,8 @@ try { `Expected ${expectedExperimentalCount} qualified experimental workflows, found ${manifest.experimentalWorkflows?.length ?? 0}.`, ); } - for (const workflow of selectedExperimental) verifyWorkflow(workflow, 'experimental', graphLayout); + for (const workflow of selectedExperimental) + verifyWorkflow(workflow, 'experimental', graphLayout, imageStageContracts); process.stdout.write( `Verified ${selectedSupported.length} supported and ${selectedExperimental.length} qualified experimental portable workflows with deterministic canonical layouts.\n`, diff --git a/src/components/AppModePanel.tsx b/src/components/AppModePanel.tsx index ef8dd36d..451c4e93 100644 --- a/src/components/AppModePanel.tsx +++ b/src/components/AppModePanel.tsx @@ -9,6 +9,7 @@ import { } from '../stores/useStudioStore'; import { useWebsocketStore } from '../stores/useWebsocketStore'; import { syncStudioGraphValues } from '../studio/graphBridge'; +import { prepareExecutionScope } from '../workflow/prepareExecutionScope'; import { coordinateGraphRun } from '../studio/runCoordinator'; import { validateCurrentRun } from '../studio/runReadiness'; import { ensureStudioAutoPlanReadyForRun } from '../studio/useStudioRunActions'; @@ -238,16 +239,25 @@ export default function AppModePanel() { const context = captureWorkflowOperationContext(); const managedGraph = Boolean(useStudioStore.getState().graphBinding); try { - if (managedGraph) { + const pending = prepareExecutionScope({ workflowContext: context }); + const executionScope = pending ? await pending : undefined; + if (managedGraph && !executionScope) { const autoReady = await ensureStudioAutoPlanReadyForRun(context); if (!autoReady) return; } - const validation = validateCurrentRun({ sid, isConnected, includeStudio: managedGraph, showDialog: true }); + const validation = validateCurrentRun({ + sid, + isConnected, + includeStudio: managedGraph && !executionScope, + showDialog: true, + executionScope, + }); if (!validation.canRun) return; await coordinateGraphRun({ sid, studioContext: { applyRuntimeMetadata: managedGraph }, workflowContext: context, + executionScope, }); enqueueSnackbar('Run as app queued', { variant: 'success', autoHideDuration: 2200 }); } catch (error) { diff --git a/src/components/CustomNode.tsx b/src/components/CustomNode.tsx index c3464ae5..4afc927f 100644 --- a/src/components/CustomNode.tsx +++ b/src/components/CustomNode.tsx @@ -36,6 +36,7 @@ import { CustomNodeType, useFlowStore } from '../stores/useFlowStore'; import { NodeParams } from '../stores/useNodeStore'; import { useSettingsStore } from '../stores/useSettingsStore'; import { useWebsocketStore } from '../stores/useWebsocketStore'; +import { prepareExecutionScope } from '../workflow/prepareExecutionScope'; import { coordinateGraphRun } from '../studio/runCoordinator'; import { validateCurrentRun } from '../studio/runReadiness'; import { modiffLayout, sanitizeModiffNodeStyle } from '../theme'; @@ -119,13 +120,15 @@ type NodeSurface = { actions?: ReactNode; setSize: (width: number, height: number) => void; testId?: string; + hasAudioPreview?: boolean; }; const CustomNode = memo((node: NodeProps & { surface?: NodeSurface }) => { const nodeRef = useRef(null); const style = sanitizeModiffNodeStyle(node.data.style, `${node.id}.node`); const label = nodeDisplayLabel(node.data); - const hasAudioPlayer = Object.values(node.data.params).some((param) => param.display === 'ui_audio'); + const hasAudioPlayer = + node.surface?.hasAudioPreview || Object.values(node.data.params).some((param) => param.display === 'ui_audio'); const minimumNodeWidth = hasAudioPlayer ? modiffLayout.audioPreviewNodeMinWidth : modiffLayout.nodeMinWidth; const setParam = useFlowStore((state) => state.setParamWithHistory); const setNodeSize = useFlowStore((state) => state.setNodeSize); @@ -252,32 +255,51 @@ const CustomNode = memo((node: NodeProps & { surface?: NodeSurfa const handleRunFromNode = useCallback(async () => { closeContextMenu(); - const validation = validateCurrentRun({ sid, isConnected, includeStudio: false, targetNodeId: node.id }); - if (!validation.canRun || !sid) return; - await coordinateGraphRun({ sid, targetNodeId: node.id }); + try { + const pending = prepareExecutionScope({ targetNodeId: node.id }); + const executionScope = pending ? await pending : undefined; + const validation = validateCurrentRun({ + sid, + isConnected, + includeStudio: false, + targetNodeId: node.id, + executionScope, + }); + if (!validation.canRun || !sid) return; + await coordinateGraphRun({ sid, targetNodeId: node.id, executionScope }); + } catch (error) { + enqueueSnackbar(error instanceof Error ? error.message : String(error), { variant: 'error' }); + } }, [closeContextMenu, isConnected, node.id, sid]); - const handlePreviewBranch = useCallback(() => { - const validation = validateCurrentRun({ - sid, - isConnected, - includeStudio: false, - showDialog: false, - targetNodeId: node.id, - }); - if (!validation.canRun || !sid || !contextMenu) return; - const apiGraph = useFlowStore.getState().exportGraph(sid, node.id); - const nodeIds = Object.keys(apiGraph.nodes); - const cachedNodeIds = useFlowStore - .getState() - .nodes.filter((item) => nodeIds.includes(item.id) && item.data.isCached) - .map((item) => item.id); - setBranchPreview({ - anchor: clampAnchor({ left: contextMenu.mouseX + 180, top: contextMenu.mouseY }, 320, 260), - nodeIds, - cachedNodeIds, - }); - closeContextMenu(); + const handlePreviewBranch = useCallback(async () => { + try { + const pending = prepareExecutionScope({ targetNodeId: node.id }); + const executionScope = pending ? await pending : undefined; + const validation = validateCurrentRun({ + sid, + isConnected, + includeStudio: false, + showDialog: false, + targetNodeId: node.id, + executionScope, + }); + if (!validation.canRun || !sid || !contextMenu) return; + const apiGraph = useFlowStore.getState().exportGraph(sid, node.id, { executionScope, randomizeSeeds: false }); + const nodeIds = Object.keys(apiGraph.nodes); + const cachedNodeIds = useFlowStore + .getState() + .nodes.filter((item) => nodeIds.includes(item.id) && item.data.isCached) + .map((item) => item.id); + setBranchPreview({ + anchor: clampAnchor({ left: contextMenu.mouseX + 180, top: contextMenu.mouseY }, 320, 260), + nodeIds, + cachedNodeIds, + }); + closeContextMenu(); + } catch (error) { + enqueueSnackbar(error instanceof Error ? error.message : String(error), { variant: 'error' }); + } }, [closeContextMenu, contextMenu, isConnected, node.id, sid]); const handleCopyNodeInfo = useCallback(() => { diff --git a/src/components/EncodingNode.tsx b/src/components/EncodingNode.tsx index b8db244e..9a9fd135 100644 --- a/src/components/EncodingNode.tsx +++ b/src/components/EncodingNode.tsx @@ -20,8 +20,8 @@ import BlockSaveDialogV2 from './BlockSaveDialogV2'; import BlockCrossingPortsV2 from './BlockCrossingPortsV2'; import { visualOperationGroup, - VISUAL_STAGE_LABELS, - VISUAL_STAGE_NAMES, + visualOperationGroupMedia, + visualStagePresentation, } from '../workflow/visualOperationGroupProjection'; const StageNodeControls = lazy(() => import('./StageNodeControls')); @@ -31,8 +31,7 @@ const EncodingNode = memo((node: NodeProps) => { const instance = node.data.blockInstanceV2!; const guidance = isFocusedGuidance(instance); const kind = visualOperationGroup({ ...node, position: instance.presentation.position })!; - const label = VISUAL_STAGE_LABELS[kind]; - const stagesLabel = VISUAL_STAGE_NAMES[kind]; + const { label, name: stagesLabel } = visualStagePresentation(kind, visualOperationGroupMedia(node)); const view = useMemo(() => blockViewModelV2(instance), [instance]); const [inspectOpen, setInspectOpen] = useState(false); const [interfaceOpen, setInterfaceOpen] = useState(false); @@ -76,15 +75,17 @@ const EncodingNode = memo((node: NodeProps) => { {...node} surface={{ testId: `${kind === 'inputs' ? 'encoding' : kind}-node-${node.id}`, - controls: guidance ? ( - - ) : kind === 'inputs' ? ( - - ) : ( - Loading stage controls…

}> - -
- ), + hasAudioPreview: view.previewViews.some((preview) => preview.binding.mediaType === 'audio'), + controls: + kind === 'inputs' ? ( + + ) : guidance ? ( + + ) : ( + Loading stage controls…

}> + +
+ ), actions: ( import('./PromptEnhancementControls')); /** One visual encoder; disclosures do not participate in execution or persistence. */ export default function EncodingNodeControls({ @@ -30,7 +33,7 @@ export default function EncodingNodeControls({ const summaries = nodes.find((node) => node.id === instance.instanceId)?.data.uiState?.encodingSummaries; const seedLinks = useMemo(() => { try { - const flat = unpackVisualOperationGroups({ nodes, edges }, new Set([instance.instanceId])).graph; + const flat = unpackVisualOperationGroups({ nodes, edges }).graph; return new Map( stages.map((stage) => { const shared = sharedOperationInput( @@ -53,7 +56,31 @@ export default function EncodingNodeControls({ return new Map(); } }, [edges, instance.instanceId, nodes, stages]); - const groups = [...new Set(instance.effectiveInterface.controls.map((control) => control.group ?? 'Settings'))]; + const guidanceIds = new Set( + stages + .filter((stage) => + ['guidance', 'guidance_layers'].includes(stage.data.operationAuthoring?.operation.nodeType ?? ''), + ) + .map((stage) => stage.data.blockProjectionNodeId), + ); + const enhancementOwners = stages.filter((stage) => stage.data.operationAuthoring?.ancillaryParent); + const enhancementChildren = new Set( + enhancementOwners.flatMap((stage) => { + try { + return (ancillaryBindingsFromHint(stage.data.operationAuthoring) ?? []).flatMap((binding) => + Object.values(binding.roleNodes), + ); + } catch { + return []; + } + }), + ); + const encodingControls = instance.effectiveInterface.controls.filter( + (control) => + !guidanceIds.has(control.binding.nodeId) && + !enhancementChildren.has(blockProjectionNodeIdV2(instance.instanceId, control.binding.nodeId)), + ); + const groups = [...new Set(encodingControls.map((control) => control.group ?? 'Settings'))]; const images = stages.filter((stage) => ['vae_encoder', 'image_encoder'].includes(stage.data.operationAuthoring?.operation.nodeType ?? ''), ); @@ -86,10 +113,59 @@ export default function EncodingNodeControls({ data-encoding-content data-testid={`encoding-controls-${instance.instanceId}`} > + {enhancementOwners.map((owner) => ( + + { + const binding = owner.data.operationAuthoring?.ancillaryBindings?.find( + (binding) => binding.contractId === declaration.id, + ); + if (!binding) return null; + return declaration.roles.map(([role]) => { + const id = binding.roleNodes[role]; + const stage = stages.find((stage) => stage.id === id); + if (!stage) return null; + const excluded = + role === declaration.bindings.request.role + ? new Set([ + declaration.bindings.request.promptField, + declaration.bindings.request.layoutField, + declaration.bindings.request.imagesField, + ]) + : new Set(); + const controls = instance.effectiveInterface.controls.filter( + (control) => + blockProjectionNodeIdV2(instance.instanceId, control.binding.nodeId) === id && + !excluded.has(control.binding.fieldId), + ); + const params = Object.fromEntries( + controls + .map((control) => [control.controlId, view.controlParams[control.controlId]!]) + .filter(([, param]) => param), + ); + return ( +
+
{stage.data.label}
+ +
+ ); + }); + }} + /> +
+ ))} {groups.map((group) => { - const controls = instance.effectiveInterface.controls.filter( - (control) => (control.group ?? 'Settings') === group, - ); + const controls = encodingControls.filter((control) => (control.group ?? 'Settings') === group); const promptSources = [ ...new Set( controls @@ -197,6 +273,19 @@ export default function EncodingNodeControls({ ); })} + {guidanceIds.size ? ( + +

+ Guidance affects input conditioning and denoising. Closing this section keeps its settings active. +

+ +
+ ) : null}
); } diff --git a/src/components/EncodingNodeMenu.tsx b/src/components/EncodingNodeMenu.tsx index 2a7b9c04..61d9d7bd 100644 --- a/src/components/EncodingNodeMenu.tsx +++ b/src/components/EncodingNodeMenu.tsx @@ -1,4 +1,5 @@ import { useState } from 'react'; +import { useShallow } from 'zustand/react/shallow'; import { Ellipsis } from 'lucide-react'; import { useFlowStore, type CustomNodeType } from '../stores/useFlowStore'; import { captureWorkflowOperationContext, useStudioStore } from '../stores/useStudioStore'; @@ -16,10 +17,12 @@ import { commitOperationGraph, operationGraphSignature } from '../workflow/opera import { unpackVisualOperationGroups, visualOperationGroup, - VISUAL_STAGE_LABELS, - VISUAL_STAGE_NAMES, + visualOperationGroupMedia, + visualStagePresentation, } from '../workflow/visualOperationGroupProjection'; import NodeInspectionDetails from './NodeInspectionDetails'; +import { operationScope } from '../workflow/operationScope'; +import { operationOwnsModel } from '../workflow/operationContracts'; export default function EncodingNodeMenu({ node, @@ -33,19 +36,50 @@ export default function EncodingNodeMenu({ canSave: boolean; }) { const [docsOpen, setDocsOpen] = useState(false); + const graph = useFlowStore(useShallow((state) => ({ nodes: state.nodes, edges: state.edges }))); const kind = visualOperationGroup(node)!; - const label = VISUAL_STAGE_LABELS[kind]; - const separateLabel = `Separate ${VISUAL_STAGE_NAMES[kind]} stages`; + const media = visualOperationGroupMedia(node); + const { label, name } = visualStagePresentation(kind, media); + const separateLabel = `Separate ${name} stages`; + let combinationOwner: string | undefined; + if ( + kind === 'inputs' && + !node.data.blockInstanceV2!.effectiveGraph.nodes.some((stage) => { + const operation = (stage.data.operationAuthoring as { operation?: { nodeType?: string } } | undefined)?.operation; + return ['guidance', 'guidance_layers'].includes(operation?.nodeType ?? ''); + }) + ) { + try { + const flat = unpackVisualOperationGroups(graph); + const members = flat.members.get(node.id) ?? []; + const owners = flat.graph.nodes.filter( + (owner) => + operationOwnsModel(owner.data.operationAuthoring?.operation) && + operationScope(flat.graph, owner.id).some((stage) => members.includes(stage.id)), + ); + if ( + owners.length === 1 && + operationScope(flat.graph, owners[0]!.id).some((stage) => + ['guidance', 'guidance_layers'].includes(stage.data.operationAuthoring?.operation.nodeType ?? ''), + ) + ) + combinationOwner = owners[0]!.id; + } catch { + /* Ambiguous/shared stages retain their existing presentation. */ + } + } const description = { guidance: 'Guidance combines the related Guider and Layers configuration. Schedulers and adapters remain separate nodes.', inputs: - 'Text and image stages both run when present. Collapsing a section only hides its fields. Load media separately and connect its output to the relevant input.', + 'Text, image and declared Guidance stages run behind this node. Guidance affects conditioning and denoising. Collapsing a section only hides its fields; use its Enabled control to change execution. Load media separately and connect its output to the relevant input.', setup: 'Model Setup contains this loader and its connected configuration or adapter nodes. Model and task changes review the complete connected workflow. Grouping does not load or cache models.', mask: 'Prepare Mask contains the existing image source and Outpaint Canvas utility. Canvas geometry, mask feathering and the white-generate mask keep their original bindings. It does not add preprocessing to other masked tasks.', output: - 'Image Output runs the existing decoder and Preview Image nodes. Its image display uses the normal backend preview state; all declared output sockets remain available.', + media === 'audio' + ? 'Audio Output runs the existing audio decoder and Export Audio nodes. Playback uses the normal backend preview state; all declared output sockets remain available.' + : 'Image Output runs the existing decoder and Preview Image nodes. Its image display uses the normal backend preview state; all declared output sockets remain available.', }[kind]; function separate() { try { @@ -60,6 +94,19 @@ export default function EncodingNodeMenu({ }); } } + async function combine() { + try { + const graph = useFlowStore.getState().toObject(); + const context = captureWorkflowOperationContext(); + const signature = operationGraphSignature(graph); + const { combineOperationInputStages } = await import('../workflow/visualOperationGroups'); + const next = combineOperationInputStages(graph, combinationOwner!); + commitOperationGraph(next, context, signature, 'Combine encoding and Guidance'); + useStudioStore.getState().saveActiveWorkflowTab(true); + } catch (error) { + enqueueSnackbar(error instanceof Error ? error.message : 'Could not combine these stages.', { variant: 'error' }); + } + } return ( <> @@ -71,6 +118,9 @@ export default function EncodingNodeMenu({ Inspect implementation {separateLabel} + {combinationOwner ? ( + Combine encoding and Guidance + ) : null} {canSave ? Save as reusable node… : null} requestAnimationFrame(() => setDocsOpen(true))}> Documentation diff --git a/src/components/ModelManagerDialog.tsx b/src/components/ModelManagerDialog.tsx index 03651c90..8890060e 100644 --- a/src/components/ModelManagerDialog.tsx +++ b/src/components/ModelManagerDialog.tsx @@ -80,6 +80,7 @@ import { import { ModelDownloadProgressCard } from './ModelDownloadProgressCard'; import { TemplateUsageTermsDialog } from './TemplateUsageTermsDialog'; import { WorkflowArtifactRequirementRow } from './WorkflowArtifactRequirementRow'; +import WorkflowModelInventoryRow from './WorkflowModelInventoryRow'; interface Revision { hash: string; @@ -477,6 +478,7 @@ function ModelManagerDialog({ const runtimeStatus = useNodesStore((state) => state.runtimeStatus); const nodesRegistry = useNodesStore((state) => state.nodesRegistry); const studioModelCapabilities = useNodesStore((state) => state.studioModelCapabilities); + const workflowModelDescriptors = useNodesStore((state) => state.workflowModelDescriptors); const studioModelCapabilitiesAuthoritative = useNodesStore((state) => state.studioModelCapabilitiesAuthoritative); const refreshModelIndexes = useNodesStore((state) => state.refreshModelIndexes); const fetchRegistry = useNodesStore((state) => state.fetchRegistry); @@ -601,6 +603,11 @@ function ModelManagerDialog({ () => groupedItems(supportedProfiles, (profile) => supportedModelGroup(profile.surfaceCategory)), [supportedProfiles], ); + const supportedWorkflowModels = workflowModelDescriptors.filter((descriptor) => + `${descriptor.label} ${descriptor.repo} ${descriptor.pipeline}` + .toLowerCase() + .includes(cacheSearch.trim().toLowerCase()), + ); useEffect(() => { if (!focus) return; @@ -1267,8 +1274,12 @@ function ModelManagerDialog({ ) : null} {inventoryView === 'all' || inventoryView === 'supported' ? ( - - {supportedGroups.length === 0 ? ( + + {supportedGroups.length === 0 && supportedWorkflowModels.length === 0 ? (
No supported models match the current filter. {cacheSearch ? ( @@ -1318,6 +1329,23 @@ function ModelManagerDialog({
)) )} + {supportedWorkflowModels.map((descriptor) => ( + { + setHfAccessRepo(repo); + setHfTokenEditorOpen(true); + }} + onInstall={handleInstall} + /> + ))}
) : null} diff --git a/src/components/ModelSetupAdapterControls.tsx b/src/components/ModelSetupAdapterControls.tsx new file mode 100644 index 00000000..8ba9886e --- /dev/null +++ b/src/components/ModelSetupAdapterControls.tsx @@ -0,0 +1,274 @@ +import { useState } from 'react'; +import { useShallow } from 'zustand/react/shallow'; +import { useFlowStore, type CustomNodeType } from '../stores/useFlowStore'; +import { useNodesStore, type NodeParams } from '../stores/useNodeStore'; +import { + assertWorkflowOperationContext, + captureWorkflowOperationContext, + useStudioStore, + type WorkflowOperationContext, +} from '../stores/useStudioStore'; +import { blockViewModelV2 } from '../studio/blockRuntimeV2'; +import { ModiffButton, ModiffDialog, ModiffDisclosure } from '../ui'; +import { createNodeFromRegistry } from '../workflow/nodeFactory'; +import { commitOperationGraph, operationGraphSignature } from '../workflow/operationGraphTransaction'; +import { + modelSetupAdapterChain, + modelSetupAdapterAddUnavailable, + modelSetupAdapterEditUnavailable, + modelSetupAdapterFields, + planModelSetupAdapterEdit, +} from '../workflow/modelSetupAdapters'; +import NodeContent from './NodeContent'; + +/** Populated rows are real graph nodes. The Add dialog is only a local draft + * until the complete immutable adapter selection is explicitly applied. */ +export default function ModelSetupAdapterControls({ + node, + updateStore, +}: { + node: CustomNodeType; + updateStore: (param: string, value: unknown, key?: keyof NodeParams) => void; +}) { + const graph = useFlowStore(useShallow((state) => ({ nodes: state.nodes, edges: state.edges }))); + const authority = useNodesStore( + useShallow((state) => ({ + nodesRegistry: state.nodesRegistry, + studioModelCapabilities: state.studioModelCapabilities, + studioModelCapabilitiesAuthoritative: state.studioModelCapabilitiesAuthoritative, + studioExecutionSpecInvalid: state.studioExecutionSpecInvalid, + operationContracts: state.operationContracts, + pipelineSupport: state.pipelineSupport, + discoveryRequests: state.discoveryRequests, + })), + ); + const [draft, setDraft] = useState(null); + const [error, setError] = useState(null); + const [open, setOpen] = useState(false); + const [draftContext, setDraftContext] = useState(null); + const [replacementId, setReplacementId] = useState(null); + const view = blockViewModelV2(node.data.blockInstanceV2!); + let chain: ReturnType | undefined; + let unavailable: string | undefined; + let addUnavailable: string | null = null; + let editUnavailable: string | null = null; + try { + chain = modelSetupAdapterChain(graph, node.id); + addUnavailable = modelSetupAdapterAddUnavailable(chain, authority); + editUnavailable = modelSetupAdapterEditUnavailable(chain, authority); + } catch (failure) { + unavailable = failure instanceof Error ? failure.message : 'Adapter controls are unavailable.'; + } + function apply(edit: Parameters[2]) { + try { + const graph = useFlowStore.getState().toObject(); + const context = edit.kind === 'add' || edit.kind === 'replace' ? draftContext : captureWorkflowOperationContext(); + if (!context) throw new Error('This adapter draft is no longer available. Reopen Add LoRA.'); + assertWorkflowOperationContext(context, { includeForm: false }); + const current = useNodesStore.getState(); + const next = planModelSetupAdapterEdit( + graph, + node.id, + edit.kind === 'add' || edit.kind === 'replace' ? { ...edit, registry: current.nodesRegistry } : edit, + current, + ); + commitOperationGraph(next, context, operationGraphSignature(graph), `${edit.kind} model adapter`); + useStudioStore.getState().saveActiveWorkflowTab(true); + setError(null); + return true; + } catch (failure) { + setError(failure instanceof Error ? failure.message : 'Could not edit this adapter.'); + return false; + } + } + function add(replaceId?: string) { + const graph = useFlowStore.getState().toObject(); + let currentChain: ReturnType; + try { + currentChain = modelSetupAdapterChain(graph, node.id); + const unavailable = replaceId + ? modelSetupAdapterEditUnavailable(currentChain, useNodesStore.getState()) + : modelSetupAdapterAddUnavailable(currentChain, useNodesStore.getState()); + if (unavailable) throw new Error(unavailable); + } catch (failure) { + setError(failure instanceof Error ? failure.message : 'Adapter controls are unavailable.'); + return; + } + const previous = replaceId && currentChain.adapters.find((adapter) => adapter.id === replaceId); + const draft = previous + ? structuredClone(previous) + : createNodeFromRegistry(currentChain.adapterKey, useNodesStore.getState().nodesRegistry, { + x: 0, + y: 0, + }); + if (!draft) { + setError('The backend adapter definition is unavailable. Refresh capabilities.'); + return; + } + if (!replaceId && !currentChain.native && currentChain.adapters.length && draft.data.params.replace_existing) + draft.data.params.replace_existing.value = false; + setReplacementId(replaceId ?? null); + setDraft(draft); + setDraftContext(captureWorkflowOperationContext()); + setError(null); + setOpen(true); + } + return ( + <> + + {chain?.prefix && chain.native ? ( +

Connected adapters remain supplied from outside this setup.

+ ) : null} + {chain?.adapters.map((adapter, index) => { + const semantic = adapter.id.slice(node.id.length + 1); + const audio = chain!.adapterKey === 'modules.DiffusersAudio.LoadAdapter'; + const controls = node.data.blockInstanceV2!.effectiveInterface.controls.filter( + (control) => control.binding.nodeId === semantic && (!audio || control.binding.fieldId === 'scale'), + ); + return ( +
+
+ Adapter {index + 1} + apply({ kind: 'move', nodeId: adapter.id, offset: -1 })} + > + Move up + + apply({ kind: 'move', nodeId: adapter.id, offset: 1 })} + > + Move down + + {audio ? ( + add(adapter.id)}> + Replace LoRA + + ) : null} + apply({ kind: 'remove', nodeId: adapter.id })}> + Remove + +
+ [ + control.controlId, + { + ...view.controlParams[control.controlId]!, + disabled: view.controlParams[control.controlId]!.disabled || Boolean(editUnavailable), + }, + ]), + )} + updateStore={(param, value, key) => { + if (key === 'disabled') { + updateStore(param, value, key); + return; + } + try { + const chain = modelSetupAdapterChain(useFlowStore.getState().toObject(), node.id); + const unavailable = modelSetupAdapterEditUnavailable(chain, useNodesStore.getState()); + if (unavailable) throw new Error(unavailable); + updateStore(param, value, key); + } catch (failure) { + setError(failure instanceof Error ? failure.message : 'Adapter controls are unavailable.'); + } + }} + module="MoDiff" + action="Model Setup adapters" + mode="controls" + /> +
+ ); + })} + {unavailable ?

{unavailable}

: null} + {addUnavailable ?

{addUnavailable}

: null} + add()}> + Add LoRA + + {!open && error ? ( +

+ {error} +

+ ) : null} +
+ {open && draft ? ( + { + setOpen(false); + setDraft(null); + setError(null); + }} + footer={ + { + const values = Object.fromEntries( + Object.entries(modelSetupAdapterFields(draft)).map(([name, field]) => [ + name, + field.value ?? field.default, + ]), + ); + if ( + apply( + replacementId + ? { kind: 'replace', nodeId: replacementId, values, registry: authority.nodesRegistry } + : { kind: 'add', values, registry: authority.nodesRegistry }, + ) + ) { + setOpen(false); + setDraft(null); + } + }} + > + {replacementId ? 'Replace adapter' : 'Add adapter'} + + } + > +

+ Select the adapter before adding it. Hub weights require an exact commit, weight filename and SHA-256. This + action does not download or load weights. +

+ { + if (key && key !== 'value') return; + setDraft((draft) => + draft + ? { + ...draft, + data: { + ...draft.data, + params: { + ...draft.data.params, + [name]: { ...draft.data.params[name], value: value as NodeParams['value'] }, + }, + }, + } + : null, + ); + }} + /> + {error ? ( +

+ {error} +

+ ) : null} +
+ ) : null} + + ); +} diff --git a/src/components/NodeContent.tsx b/src/components/NodeContent.tsx index c4c6513e..e5f46d48 100644 --- a/src/components/NodeContent.tsx +++ b/src/components/NodeContent.tsx @@ -52,6 +52,8 @@ import UIImagecompareField from '../fields/UIImagecompareField'; const UIVideoField = lazy(() => import('../fields/UIVideoField')); const UIAudioField = lazy(() => import('../fields/UIAudioField')); const SplineField = lazy(() => import('../fields/SplineField')); +const LayoutConditioningField = lazy(() => import('../fields/LayoutConditioningField')); +const PromptEnhancementControls = lazy(() => import('./PromptEnhancementControls')); export type FieldProps = { nodeId: string; @@ -380,6 +382,13 @@ const NodeContent = memo(function NodeContent({ return ( <> + {graphNode?.data.operationAuthoring?.ancillaryParent && + !graphNode.data.blockInstanceV2 && + !graphNode.data.blockProjectionOwnerId ? ( + + + + ) : null} {encodeImageSummary} {resolutionNotice} {orderedMainFields} @@ -610,6 +619,12 @@ const FieldMemo = memo((props: FieldProps) => { return ; case 'layerconfig': return ; + case 'layout': + return ( + Loading layout editor...
}> + + + ); case 'selectdialog': return ; case 'ui_text': diff --git a/src/components/OutputGalleryPanel.tsx b/src/components/OutputGalleryPanel.tsx index dbf08f01..a72d1dca 100644 --- a/src/components/OutputGalleryPanel.tsx +++ b/src/components/OutputGalleryPanel.tsx @@ -34,6 +34,7 @@ import { encodedVideoMetadata, videoOutputSummary } from '../studio/outputUtils' import { outputText, outputTextType, textOutputViewerOpener } from '../studio/outputText'; import { exportMedia } from '../studio/mediaCapabilities'; import { validateCurrentRun } from '../studio/runReadiness'; +import { prepareExecutionScope } from '../workflow/prepareExecutionScope'; import { coordinateGraphRun } from '../studio/runCoordinator'; import { ensureStudioAutoPlanReadyForRun } from '../studio/useStudioRunActions'; import type { StudioImportedAsset, StudioOutput } from '../studio/types'; @@ -310,9 +311,16 @@ export default function OutputGalleryPanel({ modalView = false }: { modalView?: restoreWorkflowFromOutput(output); const context = captureWorkflowOperationContext(); try { - const autoReady = await ensureStudioAutoPlanReadyForRun(context); + const pending = prepareExecutionScope({ workflowContext: context }); + const executionScope = pending ? await pending : undefined; + const autoReady = executionScope ? true : await ensureStudioAutoPlanReadyForRun(context); if (!autoReady) return; - await coordinateGraphRun({ sid, studioContext: {}, workflowContext: context }); + await coordinateGraphRun({ + sid, + studioContext: executionScope ? undefined : {}, + workflowContext: context, + executionScope, + }); setGalleryLibraryOpen(false); setRightPanelOpen(true); setRightPanelTab('queue'); diff --git a/src/components/PromptEnhancementControls.tsx b/src/components/PromptEnhancementControls.tsx new file mode 100644 index 00000000..7db5594c --- /dev/null +++ b/src/components/PromptEnhancementControls.tsx @@ -0,0 +1,273 @@ +import { useCallback, useEffect, useMemo, useState, type ReactNode } from 'react'; +import { useFlowStore } from '../stores/useFlowStore'; +import { useStudioStore } from '../stores/useStudioStore'; +import { useWebsocketStore } from '../stores/useWebsocketStore'; +import { useTaskStore } from '../stores/useTaskStore'; +import { useNodesStore } from '../stores/useNodeStore'; +import type { AncillaryOperation } from '../studio/ancillaryOperations'; +import { GraphControlButton } from '../ui/GraphControls'; +import { + promptEnhancementOwner, + enablePromptEnhancement, + disablePromptEnhancement, + startPromptEnhancementPreview, + finishPromptEnhancementPreview, + promptEnhancementPreviewDetails, + applyPromptEnhancementPreview, + currentPromptEnhancementDeclaration, + type PromptEnhancementPreviewRun, + type VerifiedPromptEnhancementPreview, +} from '../studio/promptEnhancementPreview'; + +/** Optional editing action within Prompt/Inputs, never another image stage. */ +export default function PromptEnhancementControls({ + ownerId, + renderSettings, +}: { + ownerId: string; + renderSettings?: (declaration: AncillaryOperation) => ReactNode; +}) { + const nodes = useFlowStore((state) => state.nodes); + const edges = useFlowStore((state) => state.edges); + const tab = useStudioStore((state) => state.activeWorkflowTabId); + // Epoch subscriptions also invalidate tickets after non-canvas form changes. + useStudioStore((state) => state.workflowCanvasEpoch); + useStudioStore((state) => state.workflowFormEpoch); + const connected = useWebsocketStore((state) => state.isConnected); + const currentTask = useTaskStore((state) => state.currentTask); + const operationCount = useNodesStore((state) => state.operationContracts.length); + const [busy, setBusy] = useState(null); + const [error, setError] = useState(null); + const [message, setMessage] = useState(null); + const [run, setRun] = useState(null); + const [verified, setVerified] = useState(null); + const [declaration, setDeclaration] = useState(null); + const terminal = useTaskStore((state) => + run ? state.sessionRuns.find((task) => task.task_id === run.taskId || task.id === run.taskId) : undefined, + ); + const selected = useMemo(() => { + try { + return { ...promptEnhancementOwner(ownerId, { nodes, edges }), error: null }; + } catch (error) { + return { owner: null, selection: null, error: String(error) }; + } + // Use the exact active document, including value/metadata changes. + }, [ownerId, nodes, edges]); + const binding = selected.owner?.data.operationAuthoring?.ancillaryBindings?.[0]; + const bindingId = binding?.contractId, + bindingHash = binding?.contentHash; + const details = (() => { + if (!verified) return { summary: null, stale: false }; + try { + return { summary: promptEnhancementPreviewDetails(verified), stale: false }; + } catch { + return { summary: null, stale: true }; + } + })(); + const act = useCallback(async (label: string, action: () => Promise) => { + setBusy(label); + setError(null); + setMessage(null); + try { + await action(); + } catch (error) { + setError(error instanceof Error ? error.message : String(error)); + } finally { + setBusy(null); + } + }, []); + useEffect(() => { + setRun(null); + setVerified(null); + setError(null); + setMessage(null); + }, [ownerId, tab]); + useEffect(() => { + setDeclaration(null); + if (!bindingId || !connected || !operationCount) return; + const controller = new AbortController(); + void currentPromptEnhancementDeclaration(ownerId, bindingId, controller.signal) + .then((value) => { + if (!controller.signal.aborted) setDeclaration(value); + }) + .catch((error) => { + if (!controller.signal.aborted) setError(error instanceof Error ? error.message : String(error)); + }); + return () => controller.abort(); + }, [ownerId, bindingId, bindingHash, connected, operationCount, tab]); + useEffect(() => { + if (!run || terminal?.status !== 'completed') return; + void act('Verifying Preview', async () => { + setVerified(await finishPromptEnhancementPreview(run)); + setMessage('Review the proposed wording before applying it.'); + }); + }, [run, terminal?.status, act]); + useEffect(() => { + if (!run || (terminal?.status !== 'failed' && terminal?.status !== 'cancelled')) return; + setVerified(null); + setMessage(null); + setError( + terminal.message ?? + terminal.error ?? + `Preview ${terminal.status}. Review the current prompt and Undo history before another Preview.`, + ); + }, [run, terminal?.status, terminal?.message, terminal?.error]); + if (!selected.owner) return null; + const unavailable = Boolean(busy || !connected); + const taskActive = Boolean( + currentTask && + currentTask.status !== 'completed' && + currentTask.status !== 'failed' && + currentTask.status !== 'cancelled', + ); + const preview = async (regenerate: boolean) => { + if (!binding) return; + setVerified(null); + const next = await startPromptEnhancementPreview(ownerId, binding.contractId, regenerate); + setRun(next); + setMessage('Preview submitted. Follow progress in Session activity.'); + }; + const text = details.summary?.proposal.structuredProposal?.caption ?? details.summary?.proposal.text; + return ( +
+
Prompt enhancement
+

+ The raw prompt runs directly. Preview proposes wording; Apply changes the prompt only after verification and + your review. +

+
+ {!binding ? ( + + void act('Enabling enhancement', async () => { + setDeclaration(await enablePromptEnhancement(ownerId)); + setMessage('Enabled. Review the declared model and resource controls before Preview.'); + }) + } + > + Enable enhancement + + ) : ( + <> + void act('Preparing Preview', () => preview(false))} + > + Preview + + void act('Preparing Regenerate', () => preview(true))} + > + Regenerate + + + void act('Applying proposal', async () => { + if (!verified) return; + await applyPromptEnhancementPreview(verified); + setVerified(null); + setMessage('Applied as one undoable prompt change.'); + }) + } + > + Apply + + + void act('Disabling enhancement', async () => { + await disablePromptEnhancement(ownerId, binding.contractId); + setRun(null); + setVerified(null); + setMessage('Disabled. Later user edits are preserved.'); + }) + } + > + Disable + + + )} + {run && terminal?.status === 'completed' && !verified ? ( + + void act('Verifying Preview', async () => { + setVerified(await finishPromptEnhancementPreview(run)); + }) + } + > + Read Preview + + ) : null} +
+ {declaration && renderSettings ? renderSettings(declaration) : null} + {binding && !declaration && connected ? ( + + void act('Refreshing settings', async () => { + setDeclaration(await currentPromptEnhancementDeclaration(ownerId, binding.contractId)); + }) + } + > + Refresh enhancement settings + + ) : null} + {!connected ? ( +

+ Connect to the local worker to refresh enhancement metadata. +

+ ) : null} + {busy || message ? ( +

+ {busy ?? message} +

+ ) : null} + {error || selected.error ? ( +

+ {error ?? selected.error} +

+ ) : null} + {details.stale ? ( +

+ The document changed. Request a new Preview before Apply. +

+ ) : null} + {text ? ( +
+ {text} +
+ ) : null} + {details.summary && !details.summary.proposal.applicationAllowed ? ( +

+ {details.summary.proposal.applicationBlockedReason} +

+ ) : null} + {binding ? ( +

+ Regenerate reuses the original request after an untouched Apply. Resource admission uses the current Auto or + Custom choice. +

+ ) : null} +
+ ); +} diff --git a/src/components/RunIssuesDialog.tsx b/src/components/RunIssuesDialog.tsx index 7461cac3..d19cf5c5 100644 --- a/src/components/RunIssuesDialog.tsx +++ b/src/components/RunIssuesDialog.tsx @@ -14,14 +14,16 @@ import { import { useWebsocketStore } from '../stores/useWebsocketStore'; import { createOrUpdateStudioGraph } from '../studio/graphBridge'; import { autoProofIsReady, formPatchForAutoCandidate } from '../studio/autoResource'; +import { prepareExecutionScope } from '../workflow/prepareExecutionScope'; import { coordinateGraphRun } from '../studio/runCoordinator'; import { getFormDefaultsForModel, getProfileForForm, STUDIO_OFFLOAD_RUNTIME_LABELS } from '../studio/modelProfiles'; import { studioLowMemoryFormValues } from '../studio/resourcePlanner'; import type { RunReadinessIssue, RuntimeFailure } from '../studio/types'; import { IssueCard, ModiffButton, ModiffDialog, ProgressBar, Spinner, type IssueCardTone } from '../ui'; import { cleanupGpuMemory } from '../utils/serverActions'; +import { runtimeCleanupFeedback } from '../utils/runtimeCleanupFeedback'; -type CleanupState = 'idle' | 'running' | 'success' | 'error'; +type CleanupState = 'idle' | 'running' | 'success' | 'warning' | 'error'; function issueTone(severity: RunReadinessIssue['severity']): IssueCardTone { if (severity === 'success') return 'success'; @@ -99,6 +101,9 @@ export default function RunIssuesDialog() { }; const context = captureWorkflowOperationContext(); try { + const pending = prepareExecutionScope({ workflowContext: context }); + const executionScope = pending ? await pending : undefined; + if (executionScope) throw new Error('Use the current workflow Auto plan for this declared ancillary graph.'); applyAutoResourcePlan(nextPlan, patch); advanceWorkflowOperationContext(context); await createOrUpdateStudioGraph(useStudioStore.getState().form, context); @@ -191,17 +196,10 @@ export default function RunIssuesDialog() { setCleanupMessage('Releasing cached models, nodes, and accelerator memory...'); try { - const data: unknown = await cleanupGpuMemory(); - const responseMessage = cleanupResponseMessage(data); - if (cleanupResponseHasError(data)) { - throw new Error(responseMessage ?? 'Accelerator cleanup failed.'); - } - const message = - responseMessage ?? - 'Accelerator cache released. Cached model state was dropped, so rerun the workflow to rebuild outputs; this action does not intentionally stop the backend.'; - setCleanupState('success'); + const { state, message } = runtimeCleanupFeedback(await cleanupGpuMemory()); + setCleanupState(state); setCleanupMessage(message); - enqueueSnackbar(message, { variant: 'success', autoHideDuration: 5200 }); + enqueueSnackbar(message, { variant: state, autoHideDuration: 5200 }); } catch (error) { const message = cleanupErrorMessage(error); setCleanupState('error'); @@ -456,15 +454,6 @@ function failureUserMessage(failure: RuntimeFailure) { return 'The generation could not finish. Check the highlighted step and try again.'; } -function cleanupResponseHasError(data: unknown) { - return isRecord(data) && Boolean(data.error); -} - -function cleanupResponseMessage(data: unknown) { - if (!isRecord(data)) return null; - return stringValue(data.message) ?? stringValue(data.error); -} - function cleanupErrorMessage(error: unknown) { const message = error instanceof Error ? error.message : String(error); if (message.includes('Failed to fetch')) { @@ -473,14 +462,6 @@ function cleanupErrorMessage(error: unknown) { return message || 'Accelerator cleanup failed.'; } -function isRecord(value: unknown): value is Record { - return Boolean(value) && typeof value === 'object' && !Array.isArray(value); -} - -function stringValue(value: unknown) { - return typeof value === 'string' && value.trim() ? value.trim() : null; -} - function RunDialogFooter({ children, cleanupMessage, @@ -496,13 +477,17 @@ function RunDialogFooter({ ? 'text-modiff-red' : cleanupState === 'success' ? 'text-modiff-green' - : 'text-modiff-subtle-text'; + : cleanupState === 'warning' + ? 'text-modiff-warning' + : 'text-modiff-subtle-text'; return (
{hasCleanupStatus ? (
-

{cleanupMessage}

+

+ {cleanupMessage} +

{cleanupState === 'running' ? ( ) : null} diff --git a/src/components/SelectionToolbar.tsx b/src/components/SelectionToolbar.tsx index 4a398ceb..f78c2cdd 100644 --- a/src/components/SelectionToolbar.tsx +++ b/src/components/SelectionToolbar.tsx @@ -39,6 +39,7 @@ import { useStudioStore } from '../stores/useStudioStore'; import { useWebsocketStore } from '../stores/useWebsocketStore'; import { isUserBlockExpandedInstance } from '../studio/userBlocks'; import { isHuggingFaceClusterExpanded } from '../studio/huggingFaceClusterGraph'; +import { prepareExecutionScope } from '../workflow/prepareExecutionScope'; import { coordinateGraphRun } from '../studio/runCoordinator'; import { prepareHuggingFaceClustersForRun } from '../studio/huggingFaceClusterPreparation'; import { validateCurrentRun } from '../studio/runReadiness'; @@ -287,6 +288,8 @@ export function SelectionToolbar({ const handleRunFromNode = useCallback(async () => { if (!singleActionNode) return; try { + const pending = prepareExecutionScope({ targetNodeId: singleActionNode.id }); + const executionScope = pending ? await pending : undefined; if (singleActionNode.data.huggingFaceClusterRole === 'root' || singleActionNode.data.blockInstanceV2) { await prepareHuggingFaceClustersForRun([singleActionNode.id]); } @@ -295,9 +298,10 @@ export function SelectionToolbar({ isConnected, includeStudio: false, targetNodeId: singleActionNode.id, + executionScope, }); if (!validation.canRun || !sid) return; - await coordinateGraphRun({ sid, targetNodeId: singleActionNode.id }); + await coordinateGraphRun({ sid, targetNodeId: singleActionNode.id, executionScope }); } catch (error) { const message = error instanceof Error ? error.message : String(error); enqueueSnackbar(message, { variant: 'error', persist: true }); diff --git a/src/components/StageNodeControls.tsx b/src/components/StageNodeControls.tsx index 81aa8bb4..8ded93db 100644 --- a/src/components/StageNodeControls.tsx +++ b/src/components/StageNodeControls.tsx @@ -6,6 +6,8 @@ import { visualOperationGroup } from '../workflow/visualOperationGroupProjection import { ModiffDisclosure } from '../ui'; import { BlockOwnerChoices } from './OperationOwnerControls'; import NodeContent from './NodeContent'; +import ModelSetupAdapterControls from './ModelSetupAdapterControls'; +import { isModelSetupAdapter } from '../workflow/modelSetupAdapters'; /** The same exposed fields, model planner and preview authority as Block V2, * presented within the ordinary node shell. No second state or executor. */ @@ -24,18 +26,24 @@ export default function StageNodeControls({ .nodes.filter((n) => operationOwnsModel(n.data.operationAuthoring?.operation)) .map((n) => n.data.blockProjectionNodeId), ); + const adapters = new Set( + blockOperationGraphV2(instance) + .nodes.filter(isModelSetupAdapter) + .map((node) => node.data.blockProjectionNodeId), + ); const controls = instance.effectiveInterface.controls.filter( (control) => !( setup && owners.has(control.binding.nodeId) && ['repo_id', 'model_id', 'model_type'].includes(control.binding.fieldId) - ), + ) && !(setup && adapters.has(control.binding.nodeId)), ); const groups = [...new Set(controls.map((control) => control.group ?? 'Settings'))]; return (
{setup ? : null} + {setup ? : null} {groups.map((group) => ( { + const handleExportApiGraph = useCallback(async () => { if (!sid) { enqueueSnackbar('Connect to the MoDiff server before exporting the API graph.', { variant: 'error', @@ -505,13 +506,20 @@ export default function StudioPanel() { }); return; } - const apiGraph = applyStudioRuntimeHints(useFlowStore.getState().exportGraph(sid)); - const blob = new Blob([JSON.stringify(apiGraph, null, 2)], { type: 'application/json' }); - const anchor = document.createElement('a'); - anchor.href = URL.createObjectURL(blob); - anchor.download = 'modiff-api-graph.json'; - anchor.click(); - URL.revokeObjectURL(anchor.href); + try { + const pending = prepareExecutionScope(); + const executionScope = pending ? await pending : undefined; + const exported = useFlowStore.getState().exportGraph(sid, undefined, { executionScope, randomizeSeeds: false }); + const apiGraph = executionScope ? exported : applyStudioRuntimeHints(exported); + const blob = new Blob([JSON.stringify(apiGraph, null, 2)], { type: 'application/json' }); + const anchor = document.createElement('a'); + anchor.href = URL.createObjectURL(blob); + anchor.download = 'modiff-api-graph.json'; + anchor.click(); + URL.revokeObjectURL(anchor.href); + } catch (error) { + enqueueSnackbar(formatRequestError(error, 'Could not export this workflow.'), { variant: 'error' }); + } }, [sid]); const restoreLatestOutput = useCallback(() => { @@ -542,12 +550,15 @@ export default function StudioPanel() { try { useStudioStore.getState().restoreWorkflowFromOutput(latest); const context = captureWorkflowOperationContext(); - const autoReady = await ensureStudioAutoPlanReadyForRun(context); + const pending = prepareExecutionScope({ workflowContext: context }); + const executionScope = pending ? await pending : undefined; + const autoReady = executionScope ? true : await ensureStudioAutoPlanReadyForRun(context); if (!autoReady) return; await coordinateGraphRun({ sid, studioContext: { forceDeterministic: !latest.formSnapshot.randomSeed }, workflowContext: context, + executionScope, }); } catch (error) { if (isWorkflowOperationCancelled(error)) return; @@ -599,13 +610,16 @@ export default function StudioPanel() { advanceWorkflowOperationContext(context); const nextForm = useStudioStore.getState().form; syncStudioGraphValues(nextForm); - const autoReady = await ensureStudioAutoPlanReadyForRun(context); + const pending = prepareExecutionScope({ workflowContext: context }); + const executionScope = pending ? await pending : undefined; + const autoReady = executionScope ? true : await ensureStudioAutoPlanReadyForRun(context); if (!autoReady) break; - await ensureStudioGraphReadyForRun(useStudioStore.getState().form, context); + if (!executionScope) await ensureStudioGraphReadyForRun(useStudioStore.getState().form, context); assertWorkflowOperationContext(context); const { response } = await coordinateGraphRun({ sid, workflowContext: context, + executionScope, studioContext: { forceDeterministic: true, variation: { diff --git a/src/components/TopBar.tsx b/src/components/TopBar.tsx index 2d0389ee..d4d887d2 100644 --- a/src/components/TopBar.tsx +++ b/src/components/TopBar.tsx @@ -53,6 +53,7 @@ import { inspectStudioGraphBindingDivergence, syncStudioGraphValues, } from '../studio/graphBridge'; +import { prepareExecutionScope, executionScopeRootIds } from '../workflow/prepareExecutionScope'; import { coordinateGraphRun } from '../studio/runCoordinator'; import { prepareHuggingFaceClustersForRun } from '../studio/huggingFaceClusterPreparation'; import { applyStudioRuntimeHints } from '../studio/runPreparation'; @@ -432,8 +433,10 @@ function TopBar() { const buildTopBarWorkflowPackage = useCallback(async () => { const context = captureWorkflowOperationContext(); + const pending = sid && isConnected ? prepareExecutionScope({ workflowContext: context }) : undefined; + const executionScope = pending ? await pending : undefined; const flow = useFlowStore.getState(); - let apiGraph = sid ? exportGraph(sid, undefined, { randomizeSeeds: false }) : null; + let apiGraph = sid && isConnected ? exportGraph(sid, undefined, { randomizeSeeds: false, executionScope }) : null; if (apiGraph && graphBinding) apiGraph = applyStudioRuntimeHints(apiGraph); if ( apiGraph && @@ -457,7 +460,7 @@ function TopBar() { }), apiGraph, }; - }, [exportGraph, graphBinding, latestWorkflowOutput, sid]); + }, [exportGraph, graphBinding, latestWorkflowOutput, sid, isConnected]); const handleWorkflowPackageExportClick = useCallback(async () => { try { @@ -533,7 +536,9 @@ function TopBar() { setIsSubmittingRun(true); const context = captureWorkflowOperationContext(); try { - if (graphBinding) { + const pending = prepareExecutionScope({ workflowContext: context }); + const executionScope = pending ? await pending : undefined; + if (graphBinding && !executionScope) { const autoReady = await ensureStudioAutoPlanReadyForRun(context); if (!autoReady) { validateCurrentRun({ sid, isConnected, includeStudio: true }); @@ -541,8 +546,13 @@ function TopBar() { } await ensureStudioGraphReadyForRun(useStudioStore.getState().form, context); } - await prepareHuggingFaceClustersForRun(); - const validation = validateCurrentRun({ sid, isConnected, includeStudio: Boolean(graphBinding) }); + await prepareHuggingFaceClustersForRun(executionScopeRootIds(executionScope)); + const validation = validateCurrentRun({ + sid, + isConnected, + includeStudio: Boolean(graphBinding) && !executionScope, + executionScope, + }); if (!validation.canRun) return; if (requestedOption.id === 'run') { @@ -558,6 +568,7 @@ function TopBar() { studioContext: graphBinding ? { clearChangedPreviews: !deferCanvasOwnership } : undefined, workflowContext: context, deferCanvasOwnership, + executionScope, }); if (requestedOption.id === 'run' && deferCanvasOwnership && !result.response.error) { enqueueSnackbar('Run added to the queue. The current run will continue.', { diff --git a/src/components/VisualStageControls.tsx b/src/components/VisualStageControls.tsx index b88ef796..1087584b 100644 --- a/src/components/VisualStageControls.tsx +++ b/src/components/VisualStageControls.tsx @@ -20,6 +20,8 @@ import { availableOperationStageGroups, visualOperationOwnerId, } from '../workflow/visualOperationGroups'; +import { visualStagePresentation } from '../workflow/visualOperationGroupProjection'; +import { workflowTaskCategory } from '../workflow/workflowTaskBrowser'; import MediaAttachmentControls from './MediaAttachmentControls'; import { useNodesStore } from '../stores/useNodeStore'; import { @@ -114,7 +116,14 @@ export default function VisualStageControls({ node }: { node: CustomNodeType }) guidance: 'Group guidance', setup: 'Group model setup', mask: 'Group mask preparation', - output: 'Group image output', + output: `Group ${ + visualStagePresentation( + 'output', + workflowTaskCategory(node.data.operationAuthoring?.operation.task ?? '') === 'Audio' + ? 'audio' + : null, + ).name + }`, }[group] } diff --git a/src/components/WorkflowModelInventoryRow.tsx b/src/components/WorkflowModelInventoryRow.tsx new file mode 100644 index 00000000..b585f955 --- /dev/null +++ b/src/components/WorkflowModelInventoryRow.tsx @@ -0,0 +1,107 @@ +import { useState } from 'react'; +import type { ModelCacheDiagnostics } from '../stores/useNodeStore'; +import type { StudioAutoResourceInstallTarget } from '../studio/autoResource'; +import { repositoryRequiresHuggingFaceGate } from '../studio/modelUsagePolicies'; +import { getDownloadPercent, hasHfDownloadFailed, isHfDownloadActive } from '../studio/modelInstall'; +import type { WorkflowModelDescriptor } from '../workflow/workflowChoices'; +import { workflowModelArtifactRows, workflowModelArtifactStatus } from '../workflow/workflowModelInventory'; +import { ModiffSelect, StatusActionChip } from '../ui'; +import type { useNodesStore } from '../stores/useNodeStore'; + +/** Generic backend identities never pass through the legacy Studio form or Auto profile table. */ +export default function WorkflowModelInventoryRow({ + descriptor, + cache, + local, + diagnostics, + installProgress, + activeInstallCount, + hfTokenConfigured, + onConfigureHfToken, + onInstall, +}: { + descriptor: WorkflowModelDescriptor; + cache: unknown[]; + local: unknown[]; + diagnostics: ModelCacheDiagnostics | null; + installProgress: ReturnType['hfDownloadProgress']; + activeInstallCount: number; + hfTokenConfigured: boolean; + onConfigureHfToken: (repo: string) => void; + onInstall: (target: StudioAutoResourceInstallTarget) => Promise; +}) { + const [format, setFormat] = useState('native'); + const rows = workflowModelArtifactRows(descriptor); + const row = rows.find((item) => item.weightFormat === format) ?? rows[0]!; + const { status, installTarget, reason } = workflowModelArtifactStatus(row, descriptor, cache, local, diagnostics); + const repo = row.selection?.repo ?? descriptor.repo; + const progress = installProgress[repo]; + const installing = isHfDownloadActive(progress); + const accessFailure = hasHfDownloadFailed(progress) && progress?.error_code === 'huggingface_access_required'; + const tokenRequired = Boolean( + installTarget && (accessFailure || (!hfTokenConfigured && repositoryRequiresHuggingFaceGate(repo))), + ); + const canInstall = Boolean(installTarget && !installing && activeInstallCount < 2); + const label = installing + ? 'Installing' + : tokenRequired + ? 'Add HF token' + : status.runnable && row.selection + ? 'Installed' + : (installTarget?.actionLabel ?? 'Unavailable'); + return ( +
+
+
+

{descriptor.label}

+

+ {descriptor.pipeline} · {repo} +

+
+ onConfigureHfToken(repo) + : canInstall + ? () => { + if (installTarget) void onInstall(installTarget); + } + : undefined + } + /> +
+ {rows.length > 1 ? ( + ({ value: item.weightFormat, label: item.label }))} + onValueChange={setFormat} + /> + ) : null} +

+ {descriptor.inventory?.executionStatus?.replace(/_/gu, ' ') ?? 'Execution support not declared'} + {descriptor.inventory?.qualificationStatus ? ` · ${descriptor.inventory.qualificationStatus}` : ''} +

+

{reason}

+
+ ); +} diff --git a/src/components/WorkflowResourcePanelV2.tsx b/src/components/WorkflowResourcePanelV2.tsx index 2545fd6f..1cf46978 100644 --- a/src/components/WorkflowResourcePanelV2.tsx +++ b/src/components/WorkflowResourcePanelV2.tsx @@ -156,7 +156,7 @@ export default function WorkflowResourcePanelV2() {

{autoPlan.message}

- {autoPlan.requiresPreparation ? 'Resolved so far: ' : 'Peak planned resources: '} + {autoPlan.requiresPreparation ? 'Resolved so far: ' : 'Planned resources: '} {autoPlan.loaders.length} model owners · RAM{' '} {formatResourceBytes(autoPlan.requirements.systemRamBytes ?? null)} · GPU{' '} {formatResourceBytes(autoPlan.requirements.vramBytes ?? null)} diff --git a/src/fields/LayoutConditioningField.tsx b/src/fields/LayoutConditioningField.tsx new file mode 100644 index 00000000..5aa2c1c1 --- /dev/null +++ b/src/fields/LayoutConditioningField.tsx @@ -0,0 +1,466 @@ +import { useEffect, useMemo, useRef, useState } from 'react'; +import type { FieldProps } from '../components/NodeContent'; +import config from '../../app.config'; +import { useFlowStore } from '../stores/useFlowStore'; +import { captureWorkflowOperationContext, workflowOperationContextIsCurrent } from '../stores/useStudioStore'; +import { requestJson } from '../utils/requestJson'; +import { layoutReferenceContext, validateLayoutReferenceRun } from '../studio/layoutReferenceContext'; +import { + MAX_LAYOUT_REGIONS, + nextLayoutRegionId, + parseLayoutConditioning, + parseLayoutConditioningSupport, + parseLayoutReferenceSummary, + validateLayoutConditioningSupport, + type LayoutBox, + type LayoutConditioning, + type LayoutConditioningSupport, + type LayoutRegion, + type LayoutReferenceSummary, +} from '../studio/layoutConditioning'; +import { + FieldFrame, + ModiffButton, + ModiffCheckbox, + ModiffFieldShell, + ModiffInput, + ModiffRadioGroup, + ModiffSelect, + ModiffTextarea, +} from '../ui'; + +const EMPTY_LAYOUT: LayoutConditioning = { + schemaVersion: 1, + coordinateSpace: 'normalized_xyxy', + regions: [], +}; + +function errorMessage(error: unknown) { + return error instanceof Error ? error.message : 'The structured layout is invalid.'; +} + +function BoxInputs({ + label, + value, + onChange, +}: { + label: string; + value: string[]; + onChange: (value: string[]) => void; +}) { + return ( +

+ {label} + {['Left', 'Top', 'Right', 'Bottom'].map((corner, index) => ( + + + onChange(value.map((item, position) => (position === index ? event.target.value : item))) + } + /> + + ))} +
+ ); +} + +function draftBox(values: string[]): LayoutBox { + if (values.some((value) => !value.trim())) throw new Error('Enter all four box coordinates.'); + return values.map(Number) as [number, number, number, number]; +} + +export function LayoutRegionEditor({ + region, + support, + disabled, + onApply, + onCancel, +}: { + region: LayoutRegion; + support: LayoutConditioningSupport; + disabled: boolean; + onApply: (region: LayoutRegion) => void; + onCancel: () => void; +}) { + const [id, setId] = useState(region.id); + const [description, setDescription] = useState(region.description); + const [target, setTarget] = useState((region.targetBox ?? [0, 0, 1, 1]).map(String)); + const [action, setAction] = useState(region.action ?? 'place'); + const [hasSource, setHasSource] = useState(Boolean(region.source)); + const [reference, setReference] = useState(String(region.source?.referenceIndex ?? 0)); + const [sourceBox, setSourceBox] = useState((region.source?.box ?? [0, 0, 1, 1]).map(String)); + const [error, setError] = useState(''); + return ( +
+ Edit region + + setId(event.target.value)} maxLength={64} /> + + + setDescription(event.target.value)} /> + + {support.schemaVersion === 2 ? ( + + { + setAction(value as 'place' | 'relocate' | 'remove'); + setHasSource(value !== 'place'); + }} + /> + + ) : null} + {action !== 'remove' ? : null} +

+ Coordinates run from 0 to 1, from the top-left corner. +

+ {support.sourceRegions && support.schemaVersion === 1 ? ( + + ) : ( +

+ {support.sourceRegions + ? 'Source boxes use the actual encoded reference frame.' + : 'Source regions are unavailable for this input.'} +

+ )} + {hasSource ? ( + <> + + {support.sourceRegions && support.schemaVersion === 2 ? ( + ({ + value: String(index), + label: `Reference ${index}: ${item.sourceSize.join('×')} → ${item.processedSize.join('×')}`, + }))} + /> + ) : ( + setReference(event.target.value)} + /> + )} + + + { + setHasSource(false); + setAction('place'); + }} + > + Remove source region + + + ) : null} + {error ? ( +

+ {error} +

+ ) : null} +
+ { + try { + if (hasSource && !reference.trim()) throw new Error('Enter a source reference index.'); + const parsed = parseLayoutConditioning({ + ...EMPTY_LAYOUT, + schemaVersion: support.schemaVersion, + regions: [ + { + id, + description, + targetBox: action === 'remove' ? null : draftBox(target), + ...(support.schemaVersion === 2 ? { action } : {}), + ...(hasSource + ? { + source: { + referenceIndex: Number(reference), + box: draftBox(sourceBox), + ...(support.schemaVersion === 2 + ? { + expectedReferenceId: support.sourceRegions + ? support.references[Number(reference)]?.referenceId + : region.source?.expectedReferenceId, + } + : {}), + }, + } + : {}), + }, + ], + })!; + validateLayoutConditioningSupport(parsed, support); + onApply(parsed.regions[0]!); + } catch (error) { + setError(errorMessage(error)); + } + }} + > + Apply region + + Cancel +
+
+ ); +} + +export default function LayoutConditioningField(props: FieldProps) { + const [editing, setEditing] = useState<{ index: number; region: LayoutRegion; base: string } | null>(null); + const [error, setError] = useState(''); + const [referenceState, setReferenceState] = useState<{ key: string; summary: LayoutReferenceSummary } | null>(null); + const [loadingReferences, setLoadingReferences] = useState(false); + const request = useRef(null); + useEffect(() => () => request.current?.abort(), []); + const nodes = useFlowStore((state) => state.nodes); + const edges = useFlowStore((state) => state.edges); + const referenceContext = useMemo( + () => layoutReferenceContext(nodes, edges, props.nodeId, props.fieldKey), + [nodes, edges, props.nodeId, props.fieldKey], + ); + const currentReferences = referenceState?.key === referenceContext?.key ? referenceState?.summary : null; + const effectiveValue = props.value === undefined ? (props.default ?? null) : props.value; + let support: LayoutConditioningSupport | null = null; + let layout: LayoutConditioning | null = null; + let invalid = ''; + try { + support = parseLayoutConditioningSupport(props.fieldOptions?.layoutConditioning); + if ( + support.schemaVersion === 2 && + !support.sourceRegions && + support.supportsBoundSourceRegions && + currentReferences + ) + support = { schemaVersion: 2, sourceRegions: true, references: currentReferences.references }; + layout = parseLayoutConditioning(effectiveValue); + validateLayoutConditioningSupport(layout, support); + } catch (error) { + invalid = errorMessage(error); + } + const commit = (value: LayoutConditioning | null) => { + if (props.disabled || !support) return; + try { + const parsed = parseLayoutConditioning(value); + validateLayoutConditioningSupport(parsed, support); + props.updateStore(props.fieldKey, parsed); + setError(''); + setEditing(null); + } catch (error) { + setError(errorMessage(error)); + } + }; + const regions = layout?.regions ?? []; + const layoutKey = JSON.stringify(layout); + const staleEditing = editing !== null && editing.base !== layoutKey; + return ( + + ); +} diff --git a/src/fields/NumberField.tsx b/src/fields/NumberField.tsx index 859f6652..d06df560 100644 --- a/src/fields/NumberField.tsx +++ b/src/fields/NumberField.tsx @@ -7,10 +7,16 @@ import getDecimalPlaces from '../utils/getDecimalPlaces'; import { FieldFrame, ModiffFieldShell, NumberFieldFrame } from '../ui'; import { GraphControlInput, GraphIconButton } from '../ui/GraphControls'; -import { cx } from '../utils/classNames'; import { ChevronLeft, ChevronRight } from 'lucide-react'; +function incrementValue(value: number | string, increment: number) { + const currentValue = Number(value); + const nextValue = currentValue + increment; + const precision = Math.max(getDecimalPlaces(currentValue), getDecimalPlaces(increment)); + return precision <= 100 ? Number(nextValue.toFixed(precision)) : nextValue; +} + export default function NumberField(props: FieldProps) { const [isFocused, setIsFocused] = useState(false); const inputRef = useRef(null); @@ -22,38 +28,40 @@ export default function NumberField(props: FieldProps) { const isSlider = props.fieldType === 'slider' && props.min !== undefined && props.max !== undefined; const minValue = props.min !== undefined ? props.min : -Number.MAX_SAFE_INTEGER; const maxValue = props.max !== undefined ? props.max : Number.MAX_SAFE_INTEGER; - const decimals = props.dataType === 'float' ? getDecimalPlaces(props.step) : 0; - const increment = props.step !== undefined ? props.step : props.dataType === 'float' ? 0.1 : 1; + const isFloat = props.dataType === 'float'; + const decimals = isFloat ? getDecimalPlaces(props.step) : 0; + const increment = props.step !== undefined ? props.step : isFloat ? 0.1 : 1; const inputId = props.inputId ?? `${props.nodeId}-${props.fieldKey}`; const formatValue = useCallback( - (value: number | string, force: boolean = false) => { - if (isFocused && !force) { - return value; - } - const newValue = isNaN(Number(value)) ? numericDefault : Number(value); - return Math.min(maxValue, Math.max(minValue, newValue)).toFixed(decimals); + (value: number | string, useStepPrecision = !isFloat) => { + const newValue = Number(value); + const boundedValue = Math.min( + maxValue, + Math.max(minValue, Number.isFinite(newValue) ? newValue : numericDefault), + ); + return decimals <= 100 && (useStepPrecision || getDecimalPlaces(boundedValue) <= decimals) + ? boundedValue.toFixed(decimals) + : String(boundedValue); }, - [decimals, numericDefault, isFocused, maxValue, minValue], + [numericDefault, isFloat, decimals, maxValue, minValue], ); const committedValue = formatValue( typeof fieldValue === 'number' || typeof fieldValue === 'string' ? fieldValue : numericDefault, - true, ); - const [draftValue, setDraftValue] = useState(String(committedValue)); + const [draftValue, setDraftValue] = useState(committedValue); useEffect(() => { if (!isFocused && !dragStartRef.current) { - setDraftValue(String(committedValue)); + setDraftValue(committedValue); } }, [committedValue, isFocused]); const commitValue = useCallback( (value: number | string) => { - const nextValue = String(formatValue(value, true)); + const nextValue = formatValue(value); setDraftValue(nextValue); updateStore(fieldKey, nextValue); - return nextValue; }, [fieldKey, formatValue, updateStore], ); @@ -62,8 +70,7 @@ export default function NumberField(props: FieldProps) { (direction: 'left' | 'right') => { if (!inputRef.current) return; - const nextValue = - direction === 'left' ? Number(inputRef.current.value) - increment : Number(inputRef.current.value) + increment; + const nextValue = incrementValue(inputRef.current.value, direction === 'left' ? -increment : increment); const inputWasFocused = document.activeElement === inputRef.current; if (inputWasFocused) { skipNextCommitRef.current = true; @@ -75,7 +82,7 @@ export default function NumberField(props: FieldProps) { [commitValue, increment], ); - const activeValue = isFocused || dragStartRef.current ? draftValue : props.value; + const activeValue = isFocused || dragStartRef.current ? draftValue : fieldValue; const sliderPercent = isSlider ? isNaN(Number(activeValue)) ? 0 @@ -105,8 +112,9 @@ export default function NumberField(props: FieldProps) { const valueRange = isSlider ? (step / 250) * deltaX : deltaX; const newValue = dragStartRef.current.value + valueRange * increment; - dragStartRef.current.currentValue = Number(formatValue(newValue, true)); - setDraftValue(String(formatValue(newValue, true))); + const formattedValue = formatValue(newValue, true); + dragStartRef.current.currentValue = Number(formattedValue); + setDraftValue(formattedValue); }, [formatValue, increment, isSlider, maxValue, minValue], ); @@ -133,14 +141,14 @@ export default function NumberField(props: FieldProps) { const x = e.clientX - rect.left; const relPos = Math.max(0, Math.min(1, x / rect.width)); const newValue = minValue + (maxValue - minValue) * relPos; - commitValue(newValue); + commitValue(formatValue(newValue, true)); } else { - setDraftValue(String(committedValue)); + setDraftValue(committedValue); } dragStartRef.current = null; }, - [commitValue, committedValue, handleMouseMove, isSlider, maxValue, minValue], + [commitValue, committedValue, formatValue, handleMouseMove, isSlider, maxValue, minValue], ); const handleMouseDown = useCallback( @@ -155,7 +163,7 @@ export default function NumberField(props: FieldProps) { // blur any currently focused element (document.activeElement as HTMLElement)?.blur(); - const startValue = Number(isFocused ? draftValue : fieldValue); + const startValue = Number(fieldValue); dragStartRef.current = { x: e.clientX, value: Number.isFinite(startValue) ? startValue : numericDefault, @@ -165,7 +173,7 @@ export default function NumberField(props: FieldProps) { document.addEventListener('mousemove', handleMouseMove); document.addEventListener('mouseup', handleMouseUp); }, - [draftValue, fieldValue, handleMouseMove, handleMouseUp, isFocused, numericDefault], + [fieldValue, handleMouseMove, handleMouseUp, isFocused, numericDefault], ); const handleKeyDown = useCallback( @@ -177,18 +185,13 @@ export default function NumberField(props: FieldProps) { commitValue(input.value); } else { skipNextCommitRef.current = true; - setDraftValue(String(committedValue)); + setDraftValue(committedValue); } input.blur(); setIsFocused(false); - } else if (e.key === 'ArrowUp') { - e.preventDefault(); - const newValue = formatValue(Number(input.value) + increment, true); - setDraftValue(String(newValue)); - } else if (e.key === 'ArrowDown') { + } else if (e.key === 'ArrowUp' || e.key === 'ArrowDown') { e.preventDefault(); - const newValue = formatValue(Number(input.value) - increment, true); - setDraftValue(String(newValue)); + setDraftValue(formatValue(incrementValue(input.value, e.key === 'ArrowUp' ? increment : -increment))); } }, [commitValue, committedValue, formatValue, increment], @@ -238,7 +241,7 @@ export default function NumberField(props: FieldProps) { > handleChevronClick('left')} className="shrink-0 disabled:opacity-35" label={`Decrease ${props.label}`} @@ -259,12 +262,10 @@ export default function NumberField(props: FieldProps) { value={draftValue} onChange={(event) => setDraftValue(event.target.value)} autoComplete="off" - className={cx( - 'nodrag min-w-0 flex-1 cursor-default bg-transparent p-0 text-right text-sm text-modiff-text outline-none disabled:cursor-not-allowed', - )} + className="nodrag min-w-0 flex-1 cursor-default bg-transparent p-0 text-right text-sm text-modiff-text outline-none disabled:cursor-not-allowed" onFocus={() => { setIsFocused(true); - setDraftValue(String(committedValue)); + setDraftValue(committedValue); }} onBlur={handleBlur} onKeyDown={handleKeyDown} @@ -272,7 +273,7 @@ export default function NumberField(props: FieldProps) { = maxValue} + disabled={Number(fieldValue) >= maxValue} onClick={() => handleChevronClick('right')} className="shrink-0 disabled:opacity-35" label={`Increase ${props.label}`} diff --git a/src/fields/SelectField.tsx b/src/fields/SelectField.tsx index 57089c4d..d38e0721 100644 --- a/src/fields/SelectField.tsx +++ b/src/fields/SelectField.tsx @@ -25,6 +25,16 @@ function asString(value: unknown, fallback = '') { } export default function SelectField(props: FieldProps) { + const binding = props.fieldOptions?.blockBindingV2; + const fieldKey = + binding && + typeof binding === 'object' && + 'schemaVersion' in binding && + binding.schemaVersion === 2 && + 'fieldOrPortId' in binding && + typeof binding.fieldOrPortId === 'string' + ? binding.fieldOrPortId + : props.fieldKey; const multiple = Boolean(props.fieldOptions?.multiple); const placeholder = asString(props.fieldOptions?.placeholder); const currValue = multiple @@ -33,17 +43,15 @@ export default function SelectField(props: FieldProps) { ? [props.value] : [] : props.value - : props.fieldKey === 'offload_mode' && props.value === 'auto_cpu' + : fieldKey === 'offload_mode' && props.value === 'auto_cpu' ? 'model_cpu' : props.value; const entries: RuntimeOptionEntry[] = runtimeOptionEntries(props.options) .map((entry) => - entry.type === 'option' - ? { ...entry, label: productOptionLabel(props.fieldKey, entry.value, entry.label) } - : entry, + entry.type === 'option' ? { ...entry, label: productOptionLabel(fieldKey, entry.value, entry.label) } : entry, ) - .filter((entry) => props.fieldKey !== 'offload_mode' || entry.type === 'header' || entry.value !== 'auto_cpu'); + .filter((entry) => fieldKey !== 'offload_mode' || entry.type === 'header' || entry.value !== 'auto_cpu'); const configuredOptionEntries = entries.filter( (entry): entry is Extract => entry.type === 'option', diff --git a/src/stores/flowGraphExport.ts b/src/stores/flowGraphExport.ts index f2a21677..d8ddfb92 100644 --- a/src/stores/flowGraphExport.ts +++ b/src/stores/flowGraphExport.ts @@ -126,27 +126,19 @@ function assertExecutableDeviceOffloadPlan(node: FlowGraphNode) { } } -export function buildApiGraphExport({ - randomizeSeeds = true, +/** Existing terminal/ancestry selection, independent of values or model readiness. */ +export function selectFlowGraphExecutionScope({ nodes, edges, - sid, targetNodeId, targetNodeIds, - setParam, -}: BuildApiGraphExportOptions): ApiGraphExport { - ({ nodes, edges } = lowerReviewedLoopConnectionsV2(nodes, edges)); - const sessionId = sid || ''; - +}: Pick): { + nodes: FlowGraphNode[]; + paths: string[][]; +} { const executableNodes = executableFlowNodes(nodes); - if (executableNodes.length === 0) { - return { - sid: sessionId, - nodes: {}, - paths: [], - }; - } + if (executableNodes.length === 0) return { nodes: [], paths: [] }; const targets = [...new Set(targetNodeIds ?? (targetNodeId ? [targetNodeId] : []))]; if (targetNodeIds && !targets.length) throw new Error('The selected Block has no executable output path.'); @@ -202,7 +194,50 @@ export function buildApiGraphExport({ nodesToInclude = Array.from(allPathNodes); } - const filteredExecutableNodes = executableNodes.filter((node) => nodesToInclude.includes(node.id)); + const paths: string[][] = []; + + if (targets.length) { + for (const id of targets) { + const path = walkBackwards(id); + if (path.length > 0) paths.push(path); + } + } else { + const outputNodes = executableNodes.filter((node) => { + const outgoers = getOutgoingNodes(node.id); + return outgoers.length === 0; + }); + + const endNodes = outputNodes.length > 0 ? outputNodes : executableNodes; + endNodes.forEach((node) => { + const path = walkBackwards(node.id); + if (path.length > 0) { + paths.push(path); + } + }); + } + + return { nodes: executableNodes.filter((node) => nodesToInclude.includes(node.id)), paths }; +} + +export function buildApiGraphExport({ + randomizeSeeds = true, + nodes, + edges, + sid, + targetNodeId, + targetNodeIds, + setParam, +}: BuildApiGraphExportOptions): ApiGraphExport { + ({ nodes, edges } = lowerReviewedLoopConnectionsV2(nodes, edges)); + const sessionId = sid || ''; + + const { nodes: filteredExecutableNodes, paths } = selectFlowGraphExecutionScope({ + nodes, + edges, + targetNodeId, + targetNodeIds, + }); + if (!filteredExecutableNodes.length) return { sid: sessionId, nodes: {}, paths: [] }; filteredExecutableNodes.forEach(assertExecutableDeviceOffloadPlan); const includedNodeIds = new Set(filteredExecutableNodes.map((node) => node.id)); @@ -270,28 +305,6 @@ export function buildApiGraphExport({ }; }); - const paths: string[][] = []; - - if (targets.length) { - for (const id of targets) { - const path = walkBackwards(id); - if (path.length > 0) paths.push(path); - } - } else { - const outputNodes = executableNodes.filter((node) => { - const outgoers = getOutgoingNodes(node.id); - return outgoers.length === 0; - }); - - const endNodes = outputNodes.length > 0 ? outputNodes : executableNodes; - endNodes.forEach((node) => { - const path = walkBackwards(node.id); - if (path.length > 0) { - paths.push(path); - } - }); - } - const loops = nodes .filter((node) => node.data.type === 'loop' && !isNodeDisabled(node)) .map((loopNode) => { diff --git a/src/stores/flowNodeMutations.ts b/src/stores/flowNodeMutations.ts index a80f0900..bf91b45a 100644 --- a/src/stores/flowNodeMutations.ts +++ b/src/stores/flowNodeMutations.ts @@ -21,6 +21,7 @@ import { decorateConnectionEdges } from '../theme/connectionTypes'; import { collapsedUserBlockFieldTarget, runtimeProgressTarget } from '../studio/userBlocks'; import { operationAuthoring } from '../workflow/operationAuthoringHint'; import { workflowTaskCategory } from '../workflow/workflowTaskBrowser'; +import { isFocusedImageEncoding } from '../workflow/encodingNodePresentation'; type FlowStoreSet = ( partial: Partial | FlowStore | ((state: FlowStore) => Partial | FlowStore), @@ -83,7 +84,8 @@ export function writeNodeParam( const owners = state.nodes.filter((candidate) => { const instance = candidate.data.blockInstanceV2; return ( - instance?.definitionSnapshot.source.provider === 'modiff.visual-stages.v1/inputs' && + isFocusedImageEncoding(instance) && + instance && instance.effectiveGraph.nodes.some((stage) => { const data = stage.data as unknown as NodeData; const task = data.operationAuthoring?.operation.task; diff --git a/src/stores/useFlowStore.ts b/src/stores/useFlowStore.ts index fcab576c..beb26c67 100644 --- a/src/stores/useFlowStore.ts +++ b/src/stores/useFlowStore.ts @@ -21,6 +21,14 @@ import { refreshHandleConnectionStatus, updateSignalsForEdges, } from './flowConnectionMutations'; +import { + assertPreparedExecutionScope, + hasAncillaryExecutionClaim, + recordExecutionScopeExport, + type PreparedExecutionScope, +} from '../workflow/prepareExecutionScope'; +import { canonicalBlockStringifyV2 } from '../studio/blockSchemaV2'; +import { lowerReviewedLoopConnectionsV2 } from '../studio/reviewedLoopConnectionsV2'; import { buildApiGraphExport } from './flowGraphExport'; import { addFlowNode, @@ -287,7 +295,11 @@ export type FlowStore = { exportGraph: ( sid: string, targetNodeId?: string, - options?: { randomizeSeeds?: boolean; sourceGraph?: { nodes: CustomNodeType[]; edges: Edge[] } }, + options?: { + randomizeSeeds?: boolean; + sourceGraph?: { nodes: CustomNodeType[]; edges: Edge[] }; + executionScope?: PreparedExecutionScope; + }, ) => APIGraphExport; updateProgress: ( id: string, @@ -559,6 +571,18 @@ export function normalizePersistedFlowState(value: unknown): FlowHistorySnapshot }; } +export function expandFlowExecutionGraph(nodes: CustomNodeType[], edges: Edge[], targetNodeId?: string) { + const durable = withoutBlockCompilationTransientsV2(nodes, edges); + const expanded = expandUserBlockGraph(durable.nodes, durable.edges, useUserBlockStore.getState().blocks); + const boundaries = expandHuggingFaceClusterBoundaryEdges(expanded); + const executable = expandBlockGraphV2ForExecution(boundaries.nodes, boundaries.edges, targetNodeId); + return lowerReviewedLoopConnectionsV2(executable.nodes, executable.edges); +} + +export function flowExecutionScopeSourceKey(nodes: CustomNodeType[], edges: Edge[]) { + return canonicalBlockStringifyV2({ nodes: nodes.map(durableFlowNodeSnapshot), edges }); +} + export function durableFlowNodeSnapshot(node: CustomNodeType) { const snapshot = cloneJson(node); delete snapshot.selected; @@ -2501,22 +2525,38 @@ export const useFlowStore = create()( exportGraph: (sid: string, targetNodeId?: string, options = {}) => { const { nodes, edges } = options.sourceGraph ?? get(); - const durable = withoutBlockCompilationTransientsV2(nodes, edges); - const expanded = expandUserBlockGraph(durable.nodes, durable.edges, useUserBlockStore.getState().blocks); - const withClusterBoundaries = expandHuggingFaceClusterBoundaryEdges(expanded); - const executable = expandBlockGraphV2ForExecution( - withClusterBoundaries.nodes, - withClusterBoundaries.edges, - targetNodeId, - ); - return buildApiGraphExport({ - nodes: executable.nodes, - edges: executable.edges, + const claimed = hasAncillaryExecutionClaim(nodes); + const scope = claimed + ? assertPreparedExecutionScope( + options.executionScope, + flowExecutionScopeSourceKey(nodes, edges), + targetNodeId, + ) + : undefined; + const executable = expandFlowExecutionGraph(nodes, edges, claimed ? undefined : targetNodeId); + const included = scope ? new Set(scope.nodeIds) : undefined; + const graph = buildApiGraphExport({ + nodes: included + ? executable.nodes.filter( + (node) => included.has(node.id) || node.data.type === 'loop' || node.data.type === 'group', + ) + : executable.nodes, + edges: included + ? executable.edges.filter((edge) => included.has(edge.source) && included.has(edge.target)) + : executable.edges, sid, - targetNodeIds: resolveFlowExecutionTargetNodeIds(nodes, targetNodeId, edges), + targetNodeIds: scope?.targetNodeIds ?? resolveFlowExecutionTargetNodeIds(nodes, targetNodeId, edges), setParam: get().setParam, randomizeSeeds: options.randomizeSeeds, }); + if (scope?.purpose) graph.runtimeHints = { ...graph.runtimeHints, executionPurpose: scope.purpose }; + if (claimed && options.executionScope) + recordExecutionScopeExport( + options.executionScope, + flowExecutionScopeSourceKey(get().nodes, get().edges), + graph, + ); + return graph; }, updateProgress: (id: string, progress: number, metadata) => { updateFlowNodeProgress(id, progress, metadata, set); diff --git a/src/stores/useStudioStore.ts b/src/stores/useStudioStore.ts index f9a540da..8c40d57f 100644 --- a/src/stores/useStudioStore.ts +++ b/src/stores/useStudioStore.ts @@ -554,6 +554,9 @@ function normalizeWorkflowSnapshot( nodes: Array.isArray(value.nodes) ? safeCloneJson(value.nodes) : [], edges: Array.isArray(value.edges) ? safeCloneJson(value.edges) : [], }); + const ordinaryOperationGraph = normalizedFlow.nodes.some((node) => + Boolean(node.data.blockInstanceV2 || node.data.operationAuthoring), + ); const seenNodeIds = new Set(); const nodes = normalizedFlow.nodes .filter((node) => { @@ -562,7 +565,7 @@ function normalizeWorkflowSnapshot( return true; }) .map((node) => { - if (!activeTemplateId || typeof node.data.studioRole !== 'string') return node; + if (!activeTemplateId || ordinaryOperationGraph || typeof node.data.studioRole !== 'string') return node; return { ...node, data: { ...node.data, studioOwned: true } }; }); const nodeIds = new Set(nodes.map((node) => node.id)); @@ -597,7 +600,7 @@ function normalizeWorkflowSnapshot( // Legacy template inference must never reinterpret, rebuild, or remove // registered/User Block roots merely because their internal actions look // like one managed task graph. - !nodes.some((node) => Boolean(node.data.blockInstanceV2 || node.data.operationAuthoring)) && + !ordinaryOperationGraph && (!persistedGraphBinding || isInferredRecoveryBinding(persistedGraphBinding)); // Old whole-image exports carry presentation roles, but no execution-spec // receipt. Keep those exact ordinary nodes as the workflow authority rather @@ -621,13 +624,14 @@ function normalizeWorkflowSnapshot( : null; const studioForm = adoptedGraph || ordinaryImageImport ? inferredManagedForm : persistedStudioForm; const normalizedNodes = adoptedGraph?.nodes ?? nodes; - const executionNormalizedNodes = ordinaryImageImport - ? nodes - : normalizeManagedSnapshotExecutionPlan( - normalizedNodes, - studioForm, - persistedGraphBinding ?? adoptedGraph?.binding ?? null, - ); + const executionNormalizedNodes = + ordinaryImageImport || ordinaryOperationGraph + ? nodes + : normalizeManagedSnapshotExecutionPlan( + normalizedNodes, + studioForm, + persistedGraphBinding ?? adoptedGraph?.binding ?? null, + ); const studioGraphBinding = ordinaryImageImport ? null : reconcileSnapshotGraphBinding( @@ -637,7 +641,12 @@ function normalizeWorkflowSnapshot( executionNormalizedNodes, edges, studioForm, - Boolean(templateSourceId && activeTemplateId === templateSourceId && !persistedGraphBinding), + Boolean( + !ordinaryOperationGraph && + templateSourceId && + activeTemplateId === templateSourceId && + !persistedGraphBinding, + ), ); return { nodes: executionNormalizedNodes, diff --git a/src/stores/websocketMessageHandler.ts b/src/stores/websocketMessageHandler.ts index 80de3043..f15892b4 100644 --- a/src/stores/websocketMessageHandler.ts +++ b/src/stores/websocketMessageHandler.ts @@ -2,6 +2,7 @@ import { enqueueSnackbar } from '../ui/snackbar'; import { deepEqual } from '../utils/deepEqual'; import { markStudioGraphDefinitionPending, syncStudioGraphDefinition } from '../studio/graphBridge'; import { collapsedHuggingFaceClusterPreviewTarget } from '../studio/huggingFaceClusterGraph'; +import { prepareExecutionScope } from '../workflow/prepareExecutionScope'; import { coordinateGraphRun } from '../studio/runCoordinator'; import { ensureStudioAutoPlanReadyForRun } from '../studio/useStudioRunActions'; import { blockPreviewTargetV2, collapsedUserBlockPreviewTarget, runtimeProgressTarget } from '../studio/userBlocks'; @@ -536,13 +537,15 @@ export function handleWebsocketMessage(message: WebsocketMessage, context: Webso if (studio.activeWorkflowTabId !== workflowTabId) return; const workflowContext = captureWorkflowOperationContext(); try { - if (studio.graphBinding) { + const pending = prepareExecutionScope({ workflowContext }); + const executionScope = pending ? await pending : undefined; + if (studio.graphBinding && !executionScope) { const autoReady = await ensureStudioAutoPlanReadyForRun(workflowContext); if (!autoReady) return; await coordinateGraphRun({ sid, studioContext: {}, workflowContext }); return; } - await coordinateGraphRun({ sid, workflowContext }); + await coordinateGraphRun({ sid, workflowContext, executionScope }); } catch (error) { if (!isWorkflowOperationCancelled(error)) { console.error('Could not queue the next loop run', error); diff --git a/src/studio/adapterChainLinks.ts b/src/studio/adapterChainLinks.ts new file mode 100644 index 00000000..ea65c3ab --- /dev/null +++ b/src/studio/adapterChainLinks.ts @@ -0,0 +1,52 @@ +export const MAX_ORDERED_ADAPTERS = 8; + +type AdapterChainEndpoint = { nodeId: string; handles: readonly string[] }; +export type AdapterChainLink = { + source: string; + sourceHandles: string[]; + target: string; + targetHandles: string[]; +}; +type AdapterChainOptions = { + adapterIds: readonly string[]; + inputHandles: readonly string[]; + outputHandles: readonly string[]; + target: AdapterChainEndpoint; + source?: AdapterChainEndpoint; + maxOwnedAdapters?: number; +}; + +/** Port candidates and order only; callers own eligibility and graph transactions. */ +export function orderedAdapterChainLinks({ + adapterIds, + inputHandles, + outputHandles, + target, + source, + maxOwnedAdapters = MAX_ORDERED_ADAPTERS, +}: AdapterChainOptions): AdapterChainLink[] { + if (!Number.isInteger(maxOwnedAdapters) || maxOwnedAdapters < 1 || maxOwnedAdapters > 32) + throw new Error('An ordered adapter chain requires a bound from 1 through 32.'); + if (adapterIds.length > maxOwnedAdapters || new Set(adapterIds).size !== adapterIds.length) + throw new Error(`An ordered adapter chain requires at most ${maxOwnedAdapters} distinct adapters.`); + const links: AdapterChainLink[] = []; + let previous = source; + for (const nodeId of adapterIds) { + if (previous) + links.push({ + source: previous.nodeId, + sourceHandles: [...previous.handles], + target: nodeId, + targetHandles: [...inputHandles], + }); + previous = { nodeId, handles: outputHandles }; + } + if (previous) + links.push({ + source: previous.nodeId, + sourceHandles: [...previous.handles], + target: target.nodeId, + targetHandles: [...target.handles], + }); + return links; +} diff --git a/src/studio/ancillaryBindings.ts b/src/studio/ancillaryBindings.ts new file mode 100644 index 00000000..ab05ec10 --- /dev/null +++ b/src/studio/ancillaryBindings.ts @@ -0,0 +1,171 @@ +/** Backend authoring metadata and advisory instance selectors, never eligibility. */ +export type AncillaryParentIdentity = { + authoringRecipeId: string; + baseSpecId: string; + baseSpecContentHash: string; + executionProfileId: string; + pipelineClass: string; + task: string; +}; +export type AncillaryInstanceBinding = { + contractId: string; + contentHash: string; + parent: AncillaryParentIdentity & { authoringContentHash: string }; + parentRoleNodes: Record; + roleNodes: Record; +}; +export type AncillaryExecutionPurpose = + | { schemaVersion: 1; kind: 'workflow'; bindings: AncillaryInstanceBinding[]; target: null } + | { + schemaVersion: 1; + kind: 'explicit_preview'; + bindings: [AncillaryInstanceBinding]; + target: { nodeId: string; outputField: string }; + }; + +const ID = /^[A-Za-z0-9][A-Za-z0-9._:-]{0,127}$/u; +export const PARENT_KEYS = [ + 'authoringRecipeId', + 'baseSpecId', + 'baseSpecContentHash', + 'executionProfileId', + 'pipelineClass', + 'task', +] as const; +export function invalidAncillary(detail: string): never { + throw new Error(`Invalid ancillary operation: ${detail}`); +} + +function unicodeBytes(value: string): number { + for (let index = 0; index < value.length; index++) { + const code = value.charCodeAt(index); + if (code >= 0xd800 && code <= 0xdbff) { + const next = value.charCodeAt(++index); + if (!(next >= 0xdc00 && next <= 0xdfff)) invalidAncillary('unpaired surrogate.'); + } else if (code >= 0xdc00 && code <= 0xdfff) invalidAncillary('unpaired surrogate.'); + } + return new TextEncoder().encode(value).byteLength; +} +export function text(value: unknown, maximum = 128, pattern?: RegExp): string { + if (typeof value !== 'string' || !value || value.length > maximum || (pattern && !pattern.test(value))) + invalidAncillary('invalid text identity.'); + if ([...value].some((character) => character.charCodeAt(0) < 32)) invalidAncillary('identity contains a control.'); + if (unicodeBytes(value) > maximum) invalidAncillary('text exceeds its byte limit.'); + return value; +} +export function record(value: unknown, keys: readonly string[]) { + if (!value || typeof value !== 'object' || Array.isArray(value)) invalidAncillary('expected a closed object.'); + const own = Reflect.ownKeys(value); + if (own.length !== keys.length || own.some((key) => typeof key !== 'string' || !keys.includes(key))) + invalidAncillary('unknown or missing keys.'); + for (const key of keys) { + const descriptor = Object.getOwnPropertyDescriptor(value, key); + if (!descriptor?.enumerable || !('value' in descriptor)) invalidAncillary('expected enumerable data fields.'); + } + return value as Record; +} +export function collection(value: unknown, maximum: number, minimum = 0): unknown[] { + if (!Array.isArray(value) || value.length < minimum || value.length > maximum) + invalidAncillary('invalid collection count.'); + return value; +} +/** Copy finite plain JSON before hashing; getters/toJSON are never invoked. */ +export function boundedCopy(value: unknown, maximum: number): unknown { + let entries = 0, + strings = 0; + function visit(item: unknown, depth: number): unknown { + if (++entries > 8192 || depth > 16) invalidAncillary('JSON structural limit.'); + if (item === null || typeof item === 'boolean') return item; + if (typeof item === 'number') { + if (!Number.isFinite(item) || (Number.isInteger(item) && !Number.isSafeInteger(item))) + invalidAncillary('invalid JSON number.'); + return item; + } + if (typeof item === 'string') { + strings += unicodeBytes(item); + if (strings > maximum) invalidAncillary('JSON string budget.'); + return item; + } + if (!item || typeof item !== 'object') invalidAncillary('plain JSON required.'); + if (Array.isArray(item)) { + if (item.length > 8192 || Reflect.ownKeys(item).length !== item.length + 1) + invalidAncillary('dense JSON arrays required.'); + return Array.from({ length: item.length }, (_, index) => { + const descriptor = Object.getOwnPropertyDescriptor(item, index); + if (!descriptor?.enumerable || !('value' in descriptor)) invalidAncillary('data array members required.'); + return visit(descriptor.value, depth + 1); + }); + } + const prototype = Object.getPrototypeOf(item), + keys = Reflect.ownKeys(item); + if ((prototype !== Object.prototype && prototype !== null) || keys.length > 2048) + invalidAncillary('plain bounded mappings required.'); + const copy: Record = {}; + for (const key of keys) { + if (typeof key !== 'string') invalidAncillary('symbol JSON keys refused.'); + const descriptor = Object.getOwnPropertyDescriptor(item, key)!; + if (!descriptor.enumerable || !('value' in descriptor)) invalidAncillary('data mapping members required.'); + visit(key, depth + 1); + Object.defineProperty(copy, key, { + value: visit(descriptor.value, depth + 1), + enumerable: true, + writable: true, + configurable: true, + }); + } + return copy; + } + const copy = visit(value, 0); + if (new TextEncoder().encode(JSON.stringify(copy)).byteLength > maximum) + invalidAncillary('serialized JSON byte budget.'); + return copy; +} +export function parent(value: unknown, bound: boolean) { + const result = record(value, [...PARENT_KEYS, ...(bound ? ['authoringContentHash'] : [])]); + for (const key of PARENT_KEYS) text(result[key], 128, ID); + text(result.baseSpecContentHash, 64, /^studio-spec-v1-[0-9a-f]{8}$/u); + if (bound) text(result.authoringContentHash, 64, /^studio-authoring-v1-[0-9a-f]{8}$/u); + return result; +} + +export function parseAncillaryBindings(value: unknown): AncillaryInstanceBinding[] { + const items = collection(boundedCopy(value, 128 * 1024), 4, 1), + ids = new Set(); + return items.map((raw) => { + const item = record(raw, ['contractId', 'contentHash', 'parent', 'parentRoleNodes', 'roleNodes']); + const id = text(item.contractId, 128, ID); + text(item.contentHash, 64, /^studio-ancillary-v1-[0-9a-f]{8}$/u); + if (ids.has(id)) invalidAncillary('duplicate instance binding.'); + ids.add(id); + parent(item.parent, true); + const nodeIds = new Set(); + for (const key of ['parentRoleNodes', 'roleNodes']) { + const map = item[key]; + if ( + !map || + typeof map !== 'object' || + Array.isArray(map) || + !Object.keys(map).length || + Object.keys(map).length > 2048 + ) + invalidAncillary('invalid role map.'); + for (const [role, id] of Object.entries(map)) { + text(role, 128, ID); + const nodeId = text(id, 512); + if (nodeIds.has(nodeId)) invalidAncillary('colliding role node identities.'); + nodeIds.add(nodeId); + } + } + return item as AncillaryInstanceBinding; + }); +} + +/** Presence is checked separately from legacy hint validity: never downgrade a claim. */ +export function ancillaryBindingsFromHint(value: unknown): AncillaryInstanceBinding[] | undefined { + if (!value || typeof value !== 'object' || !('ancillaryBindings' in value)) return undefined; + if (Array.isArray(value)) invalidAncillary('claimed binding must belong to an object hint.'); + const descriptor = Object.getOwnPropertyDescriptor(value, 'ancillaryBindings'); + if (!descriptor?.enumerable || !('value' in descriptor)) + invalidAncillary('claimed binding must be an own data property.'); + return parseAncillaryBindings(descriptor.value); +} diff --git a/src/studio/ancillaryOperations.ts b/src/studio/ancillaryOperations.ts new file mode 100644 index 00000000..b6042deb --- /dev/null +++ b/src/studio/ancillaryOperations.ts @@ -0,0 +1,342 @@ +import { boundedCopy, collection, parent, record, text, invalidAncillary, PARENT_KEYS } from './ancillaryBindings'; +import type { AncillaryParentIdentity } from './ancillaryBindings'; +export { ancillaryBindingsFromHint, parseAncillaryBindings, invalidAncillary } from './ancillaryBindings'; +export type { AncillaryParentIdentity, AncillaryInstanceBinding, AncillaryExecutionPurpose } from './ancillaryBindings'; +import type { NativeEnhancementModelReceipt, PromptEnhancementMode } from './promptEnhancementSummary'; +import { hashString, stableStringify } from './stableHash'; + +export type AncillaryVerification = { + schemaVersion: 1; + supportedPromptModes: PromptEnhancementMode[]; + runtimeInputs: { + role: string; + modelField: string; + revisionField: string; + dtypeField: string; + deviceField: string; + quantizationField: string; + }; + requestInputs: { + role: string; + operationField: string; + maxNewTokensField: string; + minNewTokensField: string; + maxInputTokensField: string; + maxImagePixelsField: string; + }; + adapter: { id: string; declarationSha256: NativeEnhancementModelReceipt['receiptDigest'] }; + systemPromptsSha256: string; + systemPromptSha256ByMode: Record; + chatTemplateSha256: string; + modelReceipt: Omit & { + runtime: Omit; + }; + quantizationRecipes: NativeEnhancementModelReceipt['runtime']['quantization'][]; +}; +export type AncillaryOperation = { + schemaVersion: 1; + id: string; + contentHash: string; + parent: AncillaryParentIdentity; + executionPurpose: 'explicit_preview'; + sourceRegions: false; + verification?: AncillaryVerification; + roles: [string, string, number, number][]; + edges: [string, string, string, string][]; + bindings: { + owner: { + role: string; + promptField: string; + layoutField: string; + referenceSource: { role: string; field: string } | null; + }; + request: { role: string; promptField: string; layoutField: string; imagesField: string }; + output: { role: string; field: string }; + }; + initialValues: [string, string, string | number | boolean | null | { source: 'hub'; value: string }][]; + fieldOverrides?: [string, string, { hidden: boolean }][]; + adapter: { id: string; declarationSha256: string }; +}; +export type AncillaryParentContext = AncillaryParentIdentity & { parentRoles: readonly string[] }; + +const ID = /^[A-Za-z0-9][A-Za-z0-9._:-]{0,127}$/u; +const FIELD = /^[A-Za-z_][A-Za-z0-9_]{0,63}$/u; +const NODE = /^modules\.[A-Za-z0-9_]+\.[A-Za-z0-9_]+$/u; +const IDENTITY_FIELDS = new Set([ + 'model_type', + 'repo_id', + 'model_id', + 'revision', + 'execution_profile_id', + 'trust_remote_code', + 'workflow_id', + 'pipeline_class', +]); +export function parseAncillaryOperations(value: unknown, context: AncillaryParentContext): AncillaryOperation[] { + const ids = new Set(); + return collection(boundedCopy(value, 128 * 1024), 4, 1).map((raw) => { + const item = record(boundedCopy(raw, 32768), [ + 'schemaVersion', + 'id', + 'contentHash', + 'parent', + 'executionPurpose', + 'roles', + 'edges', + 'bindings', + 'initialValues', + 'adapter', + 'sourceRegions', + ...(raw && typeof raw === 'object' && Object.prototype.hasOwnProperty.call(raw, 'verification') + ? ['verification'] + : []), + ...(raw && typeof raw === 'object' && Object.prototype.hasOwnProperty.call(raw, 'fieldOverrides') + ? ['fieldOverrides'] + : []), + ]); + const id = text(item.id, 128, ID); + if ( + item.schemaVersion !== 1 || + item.executionPurpose !== 'explicit_preview' || + item.sourceRegions !== false || + ids.has(id) + ) + invalidAncillary('unsupported or duplicate declaration.'); + ids.add(id); + const selected = parent(item.parent, false); + for (const key of PARENT_KEYS) if (selected[key] !== context[key]) invalidAncillary('parent selection differs.'); + const roles = new Set(); + for (const raw of collection(item.roles, 16, 1)) { + const row = collection(raw, 4, 4), + role = text(row[0], 128, ID); + if ( + roles.has(role) || + typeof row[1] !== 'string' || + !NODE.test(row[1]) || + !row.slice(2).every((v) => typeof v === 'number' && Number.isFinite(v) && Math.abs(v) <= 10000) + ) + invalidAncillary('invalid child roles.'); + roles.add(role); + } + const childRole = (value: unknown) => { + const name = text(value, 128, ID); + if (!roles.has(name)) invalidAncillary('unknown child role.'); + return name; + }; + const field = (value: unknown) => text(value, 64, FIELD); + const targets = new Set(), + edges = collection(item.edges, 32); + for (const raw of edges) { + const row = collection(raw, 4, 4), + from = childRole(row[0]), + to = childRole(row[2]); + field(row[1]); + const key = `${to}:${field(row[3])}`; + if (from === to || targets.has(key)) invalidAncillary('duplicate/cyclic target edge.'); + targets.add(key); + } + const visited = new Set(), + active = new Set(); + const visit = (role: string) => { + if (active.has(role)) invalidAncillary('cyclic child graph.'); + if (visited.has(role)) return; + active.add(role); + for (const edge of edges as string[][]) if (edge[0] === role) visit(edge[2]!); + active.delete(role); + visited.add(role); + }; + roles.forEach(visit); + const bindings = record(item.bindings, ['owner', 'request', 'output']); + const owner = record(bindings.owner, ['role', 'promptField', 'layoutField', 'referenceSource']); + if (!context.parentRoles.includes(text(owner.role, 128, ID))) invalidAncillary('unknown parent owner role.'); + field(owner.promptField); + field(owner.layoutField); + if (owner.referenceSource !== null) { + const reference = record(owner.referenceSource, ['role', 'field']); + if (!context.parentRoles.includes(text(reference.role, 128, ID))) invalidAncillary('unknown parent media role.'); + field(reference.field); + } + const request = record(bindings.request, ['role', 'promptField', 'layoutField', 'imagesField']); + childRole(request.role); + field(request.promptField); + field(request.layoutField); + field(request.imagesField); + const output = record(bindings.output, ['role', 'field']); + childRole(output.role); + field(output.field); + const adapter = record(item.adapter, ['id', 'declarationSha256']); + text(adapter.id, 128, /^[a-z][a-z0-9-]{0,127}$/u); + text(adapter.declarationSha256, 71, /^sha256:[0-9a-f]{64}$/u); + const verification = Object.prototype.hasOwnProperty.call(item, 'verification') + ? parseAncillaryVerification(item.verification, adapter) + : undefined; + if (verification) { + childRole(verification.runtimeInputs.role); + if (verification.requestInputs.role !== request.role) invalidAncillary('verification request role differs.'); + } + const assigned = new Set(); + for (const raw of collection(item.initialValues, 32)) { + const row = collection(raw, 3, 3), + role = childRole(row[0]), + name = field(row[1]), + key = `${role}:${name}`, + value = row[2]; + const source = verification?.modelReceipt.source, + runtimeInputs = verification?.runtimeInputs; + const modelIdentity = source && runtimeInputs && role === runtimeInputs.role && name === runtimeInputs.modelField; + const revisionIdentity = + source && runtimeInputs && role === runtimeInputs.role && name === runtimeInputs.revisionField; + if (modelIdentity) { + const selection = record(value, ['source', 'value']); + if (selection.source !== 'hub' || selection.value !== source.repository) + invalidAncillary('initial model selection differs from verification.'); + } + if (revisionIdentity && value !== source.revision) + invalidAncillary('initial revision differs from verification.'); + if ( + (IDENTITY_FIELDS.has(name) && !modelIdentity && !revisionIdentity) || + assigned.has(key) || + !( + value === null || + typeof value === 'boolean' || + (typeof value === 'number' && Number.isFinite(value)) || + (typeof value === 'string' && new TextEncoder().encode(value).byteLength <= 4096) || + modelIdentity + ) + ) + invalidAncillary('invalid initial input.'); + assigned.add(key); + } + if ( + verification && + (!assigned.has(`${verification.runtimeInputs.role}:${verification.runtimeInputs.modelField}`) || + !assigned.has(`${verification.runtimeInputs.role}:${verification.runtimeInputs.revisionField}`)) + ) + invalidAncillary('verification needs its exact declared initial model and pin.'); + if (Object.prototype.hasOwnProperty.call(item, 'fieldOverrides')) { + const selected = new Set(); + for (const raw of collection(item.fieldOverrides, 32)) { + const row = collection(raw, 3, 3), + role = childRole(row[0]), + name = field(row[1]); + const override = record(row[2], ['hidden']); + if (typeof override.hidden !== 'boolean' || selected.has(`${role}:${name}`)) + invalidAncillary('invalid or duplicate selected field presentation.'); + selected.add(`${role}:${name}`); + } + } + const { contentHash, ...semantic } = item; + if (contentHash !== `studio-ancillary-v1-${hashString(stableStringify(semantic))}`) + invalidAncillary('stale child content hash.'); + return item as AncillaryOperation; + }); +} + +/** Hash-covered producer expectations, not a receipt or eligibility grant. */ +export function parseAncillaryVerification(value: unknown, adapter?: Record): AncillaryVerification { + const item = record(boundedCopy(value, 16384), [ + 'schemaVersion', + 'adapter', + 'systemPromptsSha256', + 'systemPromptSha256ByMode', + 'chatTemplateSha256', + 'modelReceipt', + 'quantizationRecipes', + 'runtimeInputs', + 'requestInputs', + 'supportedPromptModes', + ]); + if (item.schemaVersion !== 1) invalidAncillary('unsupported verification metadata.'); + const supported = collection(item.supportedPromptModes, 4, 1); + if ( + new Set(supported).size !== supported.length || + supported.some((mode) => mode !== 't2i' && mode !== 'i2i' && mode !== 't2i_bbox' && mode !== 'i2i_bbox') + ) + invalidAncillary('unsupported or duplicate prompt modes.'); + for (const [name, keys] of [ + ['runtimeInputs', ['role', 'modelField', 'revisionField', 'dtypeField', 'deviceField', 'quantizationField']], + [ + 'requestInputs', + [ + 'role', + 'operationField', + 'maxNewTokensField', + 'minNewTokensField', + 'maxInputTokensField', + 'maxImagePixelsField', + ], + ], + ] as const) { + const mapping = record(item[name], keys); + text(mapping.role, 128, ID); + const fields = keys.filter((key) => key !== 'role').map((key) => text(mapping[key], 64, FIELD)); + if (new Set(fields).size !== fields.length) invalidAncillary('verification control mappings collide.'); + } + const selectedAdapter = record(item.adapter, ['id', 'declarationSha256']); + text(selectedAdapter.id, 128, /^[a-z][a-z0-9-]{0,127}$/u); + text(selectedAdapter.declarationSha256, 71, /^sha256:[0-9a-f]{64}$/u); + if (adapter && stableStringify(adapter) !== stableStringify(selectedAdapter)) + invalidAncillary('verification adapter differs from the declaration.'); + for (const key of ['systemPromptsSha256', 'chatTemplateSha256']) text(item[key], 71, /^sha256:[0-9a-f]{64}$/u); + const modes = record(item.systemPromptSha256ByMode, ['t2i', 'i2i', 't2i_bbox', 'i2i_bbox']); + for (const value of Object.values(modes)) text(value, 64, /^[0-9a-f]{64}$/u); + const receipt = record(item.modelReceipt, [ + 'schemaVersion', + 'library', + 'task', + 'source', + 'loader', + 'security', + 'runtime', + ]); + if (receipt.schemaVersion !== 1 || receipt.library !== 'transformers' || receipt.task !== 'image-video-to-text') + invalidAncillary('foreign verification receipt contract.'); + const source = record(receipt.source, ['kind', 'repository', 'revision']); + if (source.kind !== 'hub') invalidAncillary('verification requires an immutable Hub selection.'); + text(source.repository, 256, /^[A-Za-z0-9][A-Za-z0-9._-]*\/[A-Za-z0-9][A-Za-z0-9._-]*$/u); + text(source.revision, 40, /^[0-9a-f]{40}$/u); + const loader = record(receipt.loader, ['preprocessorAutoClass', 'modelAutoClass']); + if (loader.preprocessorAutoClass !== 'AutoProcessor' || loader.modelAutoClass !== 'AutoModelForImageTextToText') + invalidAncillary('foreign verification loader.'); + const security = record(receipt.security, [ + 'localFilesOnly', + 'trustRemoteCode', + 'safetensorsOnly', + 'hostedInference', + ]); + if ( + security.localFilesOnly !== true || + security.trustRemoteCode !== false || + security.safetensorsOnly !== true || + security.hostedInference !== false + ) + invalidAncillary('unsafe verification security declaration.'); + const runtime = record(receipt.runtime, [ + 'transformersVersion', + 'preprocessorClass', + 'modelClass', + 'modelType', + 'architectures', + ]); + text(runtime.transformersVersion, 128); + const identifier = /^[A-Za-z_][A-Za-z0-9_-]{0,255}$/u; + for (const key of ['preprocessorClass', 'modelClass']) text(runtime[key], 256, identifier); + if (runtime.modelType !== null) text(runtime.modelType, 256, identifier); + for (const name of collection(runtime.architectures, 32)) text(name, 256, identifier); + const recipes = collection(item.quantizationRecipes, 2, 1), + seen = new Set(); + const nf4 = { + mode: 'bnb_4bit', + quantType: 'nf4', + doubleQuant: true, + computeDtype: 'bfloat16', + skipModules: ['lm_head', 'model.visual'], + }; + for (const recipe of recipes) { + const key = stableStringify(recipe); + if (seen.has(key) || (key !== stableStringify({ mode: 'none' }) && key !== stableStringify(nf4))) + invalidAncillary('unknown or duplicate verification quantization recipe.'); + seen.add(key); + } + return item as AncillaryVerification; +} diff --git a/src/studio/blockRuntimeV2.ts b/src/studio/blockRuntimeV2.ts index 97429b22..794f78f4 100644 --- a/src/studio/blockRuntimeV2.ts +++ b/src/studio/blockRuntimeV2.ts @@ -424,6 +424,17 @@ function controlParamsForNormalizedInstanceV2(instance: BlockInstanceV2): Record function connectorParam(instance: BlockInstanceV2, port: BlockPortV2, direction: 'input' | 'output'): NodeParams { const base = sourceParam(instance, port.binding.nodeId, port.binding.fieldOrPortId); + if (base?.signalCompatibility?.action === '$node') { + const actions = blockInputPortBindingsV2(port).map( + (binding) => instance.effectiveGraph.nodes.find((node) => node.nodeId === binding.nodeId)?.data.action, + ); + const action = actions[0]; + if (typeof action !== 'string' || !action || actions.some((value) => value !== action)) + throw new Error( + `Cannot project action compatibility for Block port "${port.portId}": bound actions differ or are missing.`, + ); + base.signalCompatibility.action = action; + } const value = direction === 'input' ? blockInstanceValueV2(instance, port.portId) : undefined; return { ...(base ? cloneJson(base) : {}), diff --git a/src/studio/controlledWorkflows.ts b/src/studio/controlledWorkflows.ts index eed822f7..ef8897bc 100644 --- a/src/studio/controlledWorkflows.ts +++ b/src/studio/controlledWorkflows.ts @@ -24,6 +24,7 @@ import { } from './controlledWorkflowContracts'; import { resolveStudioResourceForm } from './resourcePlanner'; import { loraWorkflowFieldValues, upscaleWorkflowFieldValues } from './controlledWorkflowValues'; +import { MAX_ORDERED_ADAPTERS, orderedAdapterChainLinks } from './adapterChainLinks'; import type { StudioAudioFitSettings, StudioFormState, @@ -289,9 +290,11 @@ export async function addLoraWorkflowBlock( const adapterSettings: StudioTemplateLoraSettings[] = settings ? [settings, ...(settings.additionalAdapters ?? [])] : []; - if (adapterSettings.length > 1 && !usesDirectDiffusersImage) { + if (adapterSettings.length > 1 && !usesDirectDiffusersImage && (!modelsNode || binding?.nodes.videoExport)) { throw new Error('Multiple LoRA adapters currently require the Diffusers image pipeline.'); } + if (adapterSettings.length > MAX_ORDERED_ADAPTERS) + throw new Error(`A LoRA chain supports at most ${MAX_ORDERED_ADAPTERS} adapters.`); const effectiveSettings = adapterSettings.length > 0 ? adapterSettings : [undefined]; const basePosition = positionNear( modelsNode ?? directPipelineNode ?? audioPipelineNode, @@ -304,6 +307,23 @@ export async function addLoraWorkflowBlock( ? 'lora.diffusers-image.v1' : 'lora.modular.v1'; const loraNode = runControlledGraphTransaction(context, contractId, () => { + const currentAdapters = useFlowStore + .getState() + .nodes.filter( + (node) => node.data.studioRole === 'loraAdapter' || node.data.studioRole?.startsWith('loraAdapter:'), + ); + const currentAdapterIds = new Set(currentAdapters.map((node) => node.id)); + const sink = modelsNode ?? directGenerateNode ?? audioGenerateNode; + if ( + useFlowStore + .getState() + .edges.some( + (edge) => currentAdapterIds.has(edge.source) && !currentAdapterIds.has(edge.target) && edge.target !== sink, + ) + ) + throw new Error( + 'This LoRA chain is shared with another consumer. Edit its ordinary graph connections to preserve that branch.', + ); const expectedRoles = new Set( effectiveSettings.map((_, index) => (index === 0 ? 'loraAdapter' : `loraAdapter:${index}`)), ); @@ -344,20 +364,43 @@ export async function addLoraWorkflowBlock( .filter( (edge) => (edge.source === sourcePipelineNode && + edge.sourceHandle === 'pipeline' && + edge.targetHandle === 'pipeline' && (edge.target === targetGenerateNode || loraNodes.includes(edge.target))) || (loraNodes.includes(edge.source) && + edge.sourceHandle === 'output' && + edge.targetHandle === 'pipeline' && (edge.target === targetGenerateNode || loraNodes.includes(edge.target))), ) .map((edge) => edge.id); if (bypassEdges.length > 0) flow.removeEdges(bypassEdges); - connected = ensureConnection(sourcePipelineNode, ['pipeline'], loraNodes[0], ['pipeline']); - for (let index = 1; index < loraNodes.length && connected; index += 1) { - connected = ensureConnection(loraNodes[index - 1], ['output'], loraNodes[index], ['pipeline']); - } - connected = - connected && ensureConnection(loraNodes[loraNodes.length - 1], ['output'], targetGenerateNode, ['pipeline']); + if (sourcePipelineNode && targetGenerateNode) + connected = orderedAdapterChainLinks({ + adapterIds: loraNodes, + inputHandles: ['pipeline'], + outputHandles: ['output'], + source: { nodeId: sourcePipelineNode, handles: ['pipeline'] }, + target: { nodeId: targetGenerateNode, handles: ['pipeline'] }, + }).every((link) => ensureConnection(link.source, link.sourceHandles, link.target, link.targetHandles)); } else { - connected = ensureConnection(primaryLoraNode, ['lora'], modelsNode, ['lora_list', 'loras']); + const flow = useFlowStore.getState(); + const staleChainEdges = flow.edges + .filter( + (edge) => + loraNodes.includes(edge.source) && + edge.sourceHandle === 'lora' && + ((loraNodes.includes(edge.target) && edge.targetHandle === 'previous_loras') || + (edge.target === modelsNode && ['lora_list', 'loras'].includes(edge.targetHandle ?? ''))), + ) + .map((edge) => edge.id); + if (staleChainEdges.length > 0) flow.removeEdges(staleChainEdges); + if (modelsNode) + connected = orderedAdapterChainLinks({ + adapterIds: loraNodes, + inputHandles: ['previous_loras'], + outputHandles: ['lora'], + target: { nodeId: modelsNode, handles: ['lora_list', 'loras'] }, + }).every((link) => ensureConnection(link.source, link.sourceHandles, link.target, link.targetHandles)); } if (!connected) { throw new Error('LoRA node was created, but its pipeline connection could not be completed.'); diff --git a/src/studio/executionSpecValues.ts b/src/studio/executionSpecValues.ts index 9d1ad242..17124316 100644 --- a/src/studio/executionSpecValues.ts +++ b/src/studio/executionSpecValues.ts @@ -60,14 +60,17 @@ export function resolveStudioExecutionSpecValues( const hasDistinctLastImage = spec.bindings.some(([, , source]) => source === 'lastImage'); const values: Record = { ...form, - paddingMaskCrop: (form as StudioFormState & { paddingMaskCrop?: number | null }).paddingMaskCrop ?? null, + paddingMaskCrop: form.paddingMaskCrop ?? null, referenceImages: hasDistinctLastImage ? form.referenceImages.slice(0, 1) : [...form.referenceImages], quantizationMode, quantizedComponents: ['transformer'], deviceMapNone: 'none', + weightFormat: 'native', attentionBackend, nativeMath: '_native_math', empty: '', + fp16: 'fp16', + ordinary: 'ordinary', emptyList: [], true: true, false: false, diff --git a/src/studio/executionSpecs.ts b/src/studio/executionSpecs.ts index 60f8cfab..58b0bfa2 100644 --- a/src/studio/executionSpecs.ts +++ b/src/studio/executionSpecs.ts @@ -35,6 +35,14 @@ const SPEC_ROLES = listed( const BINDING_SOURCES = listed( 'quantizationMode|quantizedComponents|dualQuantizedComponents|pipelineQuantizedComponents|dtype|deviceMapNone|offloadMode|device|attentionBackend|nativeFlashAttention|nativeMath|empty|emptyList|true|false|ordinary|fp16|transformer|dualTransformer|videoVaeTiling|regionalCompile|denoiserCache|layerwiseCasting|channelsLast|artifact|defaultRevision|modelVariant|pipelineClass|executionProfileId|defaultWorkflow|workflowId|semanticGeneratorBlock|workflowPromptEnhancerBlock|workflowBeforeEncodeBlock|workflowTextEncoderBlock|workflowImageEncoderBlock|workflowVaeEncoderBlock|workflowImageEmbeddingsBlock|workflowDenoiseBlock|workflowDecodeBlock|workflowAfterDecodeBlock|kind|repo|revision|adapterWeightName|controlnetKind|controlnetRepo|controlnetRevision|controlnetOffloadMode|controlnetWeightVariant|controlnetRouteVariant|controlnetLoadClass|ipAdapterRepo|ipAdapterRevision|ipAdapterWeightName|classifierFreeGuidance|motionAdapterRepo|motionAdapterRevision|wanVaceRevision|mode|autoOffload|prompt|negativePrompt|promptRef|width|height|optionalWidth|optionalHeight|seed|steps|distilledSteps4|guidanceScale|distilledGuidance1|pagScale|pagAdaptiveScale|processingResolution|matchInputResolution|depth|batchSize|eta|classLabel|strength|layers|resolution|cfgNormalize|useEnglishPrompt|outputType|maxSequenceLength|controlImage|controlMode|ipAdapterImage|ipAdapterScale|references|referenceImages|conditionImages|lastImage|maskImage|paddingMaskCrop|outpaintLeft|outpaintRight|outpaintTop|outpaintBottom|outpaintOverlap|outpaintFeather|outpaintFillColor|sourceVideo|referenceVideos|controlVideo|maskVideo|poseVideo|faceVideo|backgroundVideo|maskThreshold127|inpaintMaskGrow96|outpaintMaskGrow0|conditioningScale|controlGuidanceStart|controlGuidanceEnd|cannyLowThreshold|cannyHighThreshold|videoCannyLowThreshold100|videoCannyHighThreshold200|alphaMode|addAlpha|removeAlpha|oneFrame|numFrames|requiredNumFrames|shift|fps|guidanceScale2|useGuidanceScale2|attentionKwargsJson|oneVideo|segmentFrameLength|previousConditioningFrames|segmentFrameLength77|previousConditioningFrames1|motionEncodeBatchSize1|temporalTileSize80|temporalOverlap24|temporalOverlapConditionStrength05|adainFactor025|framepackSampling|latentWindowSize9|trueCfgScale1|text2music|text2audio|cover|continuation|repaint|transcribe|translate|anyToAnyText|anyToAnyImage|sourceAudio|referenceAudio|speechLanguage|speechTimestamps|speechChunkSeconds|speechStrideSeconds|maxNewTokens|minNewTokens|doSample|temperature|topP|topK|numBeams|repetitionPenalty|useChatTemplate|lyrics|audioDuration|extensionDuration|vocalLanguage|bpmNormalized|keyscale|timesignature|repaintingStart|repaintingEnd|audioCoverStrength|sampleRate16000|sampleRate24000|sampleRate44100|sampleRate48000|numWaveforms1|numWaveforms3|referenceWindow15|targetPeakMinus1|maxAdjustment12|boundaryFade001', ); +BINDING_SOURCES.add('weightFormat'); +// Reuse the closed Studio vocabulary for data-only fresh authoring recipes. +export function isStudioGraphRole(value: unknown): value is StudioGraphRole { + return typeof value === 'string' && SPEC_ROLES.has(value as StudioGraphRole); +} +export function isStudioExecutionBindingSource(value: unknown): value is string { + return typeof value === 'string' && BINDING_SOURCES.has(value); +} const AUTO_FIELDS = listed( 'resolvedArtifact|artifact|installTarget.repo|modelRepo|pipelineClass|dtype|offloadMode|quantizedComponents|attentionBackend|regionalCompile|denoiserCache|layerwiseCasting|channelsLast', ); diff --git a/src/studio/graphBridge.ts b/src/studio/graphBridge.ts index 62c36008..af05ae2a 100644 --- a/src/studio/graphBridge.ts +++ b/src/studio/graphBridge.ts @@ -44,6 +44,7 @@ import { resolveStudioExecutionSpecValues } from './executionSpecValues'; import { syncManagedFormControlAliases } from './managedControlSync'; import { resolveStudioResourceForm } from './resourcePlanner'; import { hashString, stableStringify } from './templateExactness'; +import { orderedAdapterChainLinks } from './adapterChainLinks'; import { STUDIO_TEMPLATES } from './templates'; import { CONTROLLED_ROLE_NODE_KEYS, @@ -1037,18 +1038,31 @@ function expectedControlledEdgeSpecs( const loraId = loraContractId(contractIds); if (loraId === 'lora.modular.v1') { - add(makeConnectionSpec(loraNodes[0]?.id, ['lora'], binding.nodes.models, ['lora_list', 'loras'])); + if (binding.nodes.models) + for (const link of orderedAdapterChainLinks({ + adapterIds: loraNodes.map((node) => node.id), + inputHandles: ['previous_loras'], + outputHandles: ['lora'], + target: { nodeId: binding.nodes.models, handles: ['lora_list', 'loras'] }, + })) + add(makeConnectionSpec(link.source, link.sourceHandles, link.target, link.targetHandles)); + else valid = false; } else if (loraId === 'lora.diffusers-image.v1' || loraId === 'lora.diffusers-audio.v1') { const pipeline = loraId === 'lora.diffusers-image.v1' ? binding.nodes.diffusersImagePipeline : binding.nodes.audioPipeline; const generate = loraId === 'lora.diffusers-image.v1' ? diffusersImageActionNode(binding) : binding.nodes.audioGenerate; remove((spec) => spec.source === pipeline && spec.target === generate); - add(makeConnectionSpec(pipeline, ['pipeline'], loraNodes[0]?.id, ['pipeline'])); - for (let index = 1; index < loraNodes.length; index += 1) { - add(makeConnectionSpec(loraNodes[index - 1]?.id, ['output'], loraNodes[index]?.id, ['pipeline'])); - } - add(makeConnectionSpec(loraNodes[loraNodes.length - 1]?.id, ['output'], generate, ['pipeline'])); + if (pipeline && generate) + for (const link of orderedAdapterChainLinks({ + adapterIds: loraNodes.map((node) => node.id), + inputHandles: ['pipeline'], + outputHandles: ['output'], + source: { nodeId: pipeline, handles: ['pipeline'] }, + target: { nodeId: generate, handles: ['pipeline'] }, + })) + add(makeConnectionSpec(link.source, link.sourceHandles, link.target, link.targetHandles)); + else valid = false; } const sequence = id('videoSequence'); diff --git a/src/studio/layoutConditioning.ts b/src/studio/layoutConditioning.ts new file mode 100644 index 00000000..158cc134 --- /dev/null +++ b/src/studio/layoutConditioning.ts @@ -0,0 +1,286 @@ +/** Authored layout data only. The selected backend owns prompt serialization. */ +export type LayoutBox = readonly [number, number, number, number]; + +export type LayoutRegion = { + id: string; + description: string; + targetBox: LayoutBox | null; + action?: 'place' | 'relocate' | 'remove'; + source?: { referenceIndex: number; box: LayoutBox; expectedReferenceId?: string }; +}; + +export type LayoutConditioning = { + schemaVersion: 1 | 2; + coordinateSpace: 'normalized_xyxy'; + regions: LayoutRegion[]; +}; + +export type LayoutConditioningSupport = + | { schemaVersion: 1 | 2; sourceRegions: false; supportsBoundSourceRegions?: true } + | { schemaVersion: 1; sourceRegions: true; referenceCount: number } + | { schemaVersion: 2; sourceRegions: true; references: LayoutReferenceSummary['references'] }; + +export type LayoutReferenceSummary = { + schemaVersion: 1; + ownerFingerprint: string; + bindingFingerprint: string; + references: { referenceId: string; sourceSize: [number, number]; processedSize: [number, number] }[]; + taskId?: string; + attemptIndex?: number; + runInputHash?: string; +}; + +export const MAX_LAYOUT_REGIONS = 32; +export const MAX_LAYOUT_REFERENCES = 8; +export const MAX_BOUND_LAYOUT_REFERENCES = 10; +export const MAX_LAYOUT_DESCRIPTION = 4096; +export const MAX_LAYOUT_BYTES = 64 * 1024; +const REFERENCE_ID = /^sha256:[0-9a-f]{64}$/u; + +function invalid(detail: string): never { + throw new Error(`Invalid layout conditioning: ${detail}`); +} + +function record(value: unknown, required: readonly string[], optional: readonly string[] = []) { + if (!value || typeof value !== 'object' || Array.isArray(value)) invalid('expected an object.'); + const prototype = Object.getPrototypeOf(value); + if (prototype !== Object.prototype && prototype !== null) invalid('expected plain JSON data.'); + const result: Record = Object.create(null); + for (const key of Reflect.ownKeys(value)) { + if (typeof key !== 'string' || ![...required, ...optional].includes(key)) invalid('unknown properties.'); + const descriptor = Object.getOwnPropertyDescriptor(value, key)!; + if (!descriptor.enumerable || !('value' in descriptor)) invalid('expected enumerable data properties.'); + result[key] = descriptor.value; + } + if (required.some((key) => !Object.prototype.hasOwnProperty.call(result, key))) invalid('missing properties.'); + return result; +} + +function array(value: unknown, max: number): unknown[] { + if (!Array.isArray(value) || value.length > max) invalid('collection exceeds its supported size.'); + if ( + Reflect.ownKeys(value).length !== value.length + 1 || + Array.from({ length: value.length }, (_, index) => index).some((index) => { + const item = Object.getOwnPropertyDescriptor(value, index); + return !item || !item.enumerable || !('value' in item); + }) + ) + invalid('expected a dense JSON array.'); + return value; +} + +function box(value: unknown): LayoutBox { + const values = array(value, 4); + if ( + values.length !== 4 || + values.some((item) => typeof item !== 'number' || !Number.isFinite(item) || item < 0 || item > 1) + ) + invalid('box coordinates must be four finite numbers between 0 and 1.'); + const [left, top, right, bottom] = values as [number, number, number, number]; + if (left >= right || top >= bottom) invalid('box corners must enclose a positive area.'); + return [left, top, right, bottom]; +} + +function description(value: unknown): string { + if (typeof value !== 'string') invalid('region descriptions must be text.'); + const characters = [...value]; + if ( + characters.length > MAX_LAYOUT_DESCRIPTION || + !characters.some((character) => { + // Python's whitespace test additionally includes these four separators. + const code = character.charCodeAt(0); + return !/\p{White_Space}/u.test(character) && !(code >= 28 && code <= 31); + }) + ) + invalid('region descriptions must contain 1–4096 characters.'); + // TextEncoder replaces lone surrogates. Reject them so UTF-8 accounting and + // the backend's strict UTF-8 encoder describe exactly the same authored text. + for (let index = 0; index < value.length; index++) { + const code = value.charCodeAt(index); + if (code >= 0xd800 && code <= 0xdbff) { + const next = value.charCodeAt(++index); + if (!(next >= 0xdc00 && next <= 0xdfff)) invalid('text must be valid Unicode.'); + } else if (code >= 0xdc00 && code <= 0xdfff) invalid('text must be valid Unicode.'); + } + return value; +} + +export function parseLayoutConditioning(value: unknown): LayoutConditioning | null { + if (value === null) return null; + const item = record(value, ['schemaVersion', 'coordinateSpace', 'regions']); + if ((item.schemaVersion !== 1 && item.schemaVersion !== 2) || item.coordinateSpace !== 'normalized_xyxy') + invalid('unsupported schema.'); + const version = item.schemaVersion; + const ids = new Set(); + const regions = array(item.regions, MAX_LAYOUT_REGIONS).map((raw): LayoutRegion => { + const region = record(raw, ['id', 'description', 'targetBox', ...(version === 2 ? ['action'] : [])], ['source']); + const action = region.action; + if (version === 2 && action !== 'place' && action !== 'relocate' && action !== 'remove') + invalid('unsupported region action.'); + const hasSource = Object.prototype.hasOwnProperty.call(region, 'source'); + if (version === 2 && (action === 'place') === hasSource) + invalid('place has no source; relocate and remove require a bound source.'); + if (action === 'remove' && region.targetBox !== null) invalid('remove requires a null target box.'); + if ( + typeof region.id !== 'string' || + !/^[A-Za-z][A-Za-z0-9_]{0,63}$/u.test(region.id) || + /^ref_image_[0-9]+$/u.test(region.id) || + ids.has(region.id) + ) + invalid('region IDs must be unique ASCII identifiers and cannot use ref_image_N.'); + ids.add(region.id); + let source: LayoutRegion['source']; + if (Object.prototype.hasOwnProperty.call(region, 'source')) { + const input = record(region.source, ['referenceIndex', 'box', ...(version === 2 ? ['expectedReferenceId'] : [])]); + if ( + typeof input.referenceIndex !== 'number' || + !Number.isInteger(input.referenceIndex) || + input.referenceIndex < 0 || + input.referenceIndex >= (version === 2 ? MAX_BOUND_LAYOUT_REFERENCES : MAX_LAYOUT_REFERENCES) + ) + invalid('source reference index is outside the supported range.'); + if ( + version === 2 && + (typeof input.expectedReferenceId !== 'string' || !/^sha256:[0-9a-f]{64}$/u.test(input.expectedReferenceId)) + ) + invalid('source requires its exact backend-issued reference ID.'); + source = { + referenceIndex: input.referenceIndex, + box: box(input.box), + ...(version === 2 ? { expectedReferenceId: input.expectedReferenceId as string } : {}), + }; + } + return { + id: region.id, + description: description(region.description), + targetBox: action === 'remove' ? null : box(region.targetBox), + ...(version === 2 ? { action: action as 'place' | 'relocate' | 'remove' } : {}), + ...(source ? { source } : {}), + }; + }); + const parsed: LayoutConditioning = { schemaVersion: version, coordinateSpace: 'normalized_xyxy', regions }; + if (new TextEncoder().encode(JSON.stringify(parsed)).byteLength > MAX_LAYOUT_BYTES) + invalid('structured layout exceeds 64 KiB of UTF-8 JSON.'); + return parsed; +} + +export function parseLayoutConditioningSupport(value: unknown): LayoutConditioningSupport { + const item = record(value, ['schemaVersion', 'sourceRegions'], ['referenceCount', 'supportsBoundSourceRegions']); + if (item.schemaVersion !== 1 && item.schemaVersion !== 2) invalid('unsupported layout capability.'); + const bound = Object.prototype.hasOwnProperty.call(item, 'supportsBoundSourceRegions'); + if (bound && (item.schemaVersion !== 2 || item.supportsBoundSourceRegions !== true || item.sourceRegions !== false)) + invalid('bound source editing needs an exact selected capability.'); + if (item.sourceRegions === false && !Object.prototype.hasOwnProperty.call(item, 'referenceCount')) + return { + schemaVersion: item.schemaVersion, + sourceRegions: false, + ...(bound ? { supportsBoundSourceRegions: true } : {}), + }; + if ( + item.schemaVersion !== 1 || + item.sourceRegions !== true || + typeof item.referenceCount !== 'number' || + !Number.isInteger(item.referenceCount) || + item.referenceCount < 1 || + item.referenceCount > MAX_LAYOUT_REFERENCES + ) + invalid('source regions need a declared bound reference count.'); + return { schemaVersion: 1, sourceRegions: true, referenceCount: item.referenceCount }; +} + +export function validateLayoutConditioningSupport( + value: LayoutConditioning | null, + support: LayoutConditioningSupport, +) { + if (value?.schemaVersion === 2 && support.schemaVersion !== 2) + invalid('version two actions are unavailable for this input.'); + for (const region of value?.regions ?? []) { + if (!region.source) continue; + if (!support.sourceRegions) invalid('source regions are unavailable for this selected input contract.'); + if (value?.schemaVersion === 1 && support.schemaVersion === 2) + invalid('legacy source mappings need an explicit version two rebind.'); + if ( + region.source.referenceIndex >= (support.schemaVersion === 2 ? support.references.length : support.referenceCount) + ) + invalid('a source region refers to an input that is no longer bound.'); + if ( + value?.schemaVersion === 2 && + support.schemaVersion === 2 && + region.source.expectedReferenceId !== support.references[region.source.referenceIndex]?.referenceId + ) + invalid('reference content, order, or preprocessing changed; explicitly rebind this source region.'); + } +} + +/** Display metadata only. Actual conditioning still needs the backend receipt. */ +export function parseLayoutReferenceSummary(value: unknown): LayoutReferenceSummary { + const item = record( + value, + ['schemaVersion', 'ownerFingerprint', 'bindingFingerprint', 'references'], + ['taskId', 'attemptIndex', 'runInputHash'], + ); + if ( + item.schemaVersion !== 1 || + typeof item.ownerFingerprint !== 'string' || + !REFERENCE_ID.test(item.ownerFingerprint) || + typeof item.bindingFingerprint !== 'string' || + !REFERENCE_ID.test(item.bindingFingerprint) + ) + invalid('invalid reference summary identity.'); + const size = (value: unknown, maxPixels: number): [number, number] => { + const dimensions = array(value, 2); + if ( + dimensions.length !== 2 || + dimensions.some((value) => typeof value !== 'number' || !Number.isSafeInteger(value) || value < 1) || + Number(dimensions[0]) * Number(dimensions[1]) > maxPixels + ) + invalid('invalid reference dimensions.'); + return dimensions as [number, number]; + }; + const references = array(item.references, MAX_BOUND_LAYOUT_REFERENCES).map((value) => { + const entry = record(value, ['referenceId', 'sourceSize', 'processedSize']); + if (typeof entry.referenceId !== 'string' || !REFERENCE_ID.test(entry.referenceId)) + invalid('invalid reference ID.'); + return { + referenceId: entry.referenceId, + sourceSize: size(entry.sourceSize, Math.floor((256 * 1024 * 1024) / 3)), + processedSize: size(entry.processedSize, 4096 * 4096), + }; + }); + if (!references.length) invalid('reference summary is empty.'); + const hasTask = Object.prototype.hasOwnProperty.call(item, 'taskId'); + const hasAttempt = Object.prototype.hasOwnProperty.call(item, 'attemptIndex'); + if ( + hasTask !== hasAttempt || + (hasTask && + (typeof item.taskId !== 'string' || + !/^[A-Za-z0-9_-]{1,128}$/u.test(item.taskId) || + typeof item.attemptIndex !== 'number' || + !Number.isSafeInteger(item.attemptIndex) || + item.attemptIndex < 0 || + item.attemptIndex > 1000)) + ) + invalid('invalid reference task identity.'); + const hasHash = Object.prototype.hasOwnProperty.call(item, 'runInputHash'); + if (hasHash && (!hasTask || typeof item.runInputHash !== 'string' || !/^run_[0-9a-f]{8}$/u.test(item.runInputHash))) + invalid('invalid reference run identity.'); + const parsed: LayoutReferenceSummary = { + schemaVersion: 1, + ownerFingerprint: item.ownerFingerprint, + bindingFingerprint: item.bindingFingerprint, + references, + ...(hasTask ? { taskId: item.taskId as string, attemptIndex: item.attemptIndex as number } : {}), + ...(hasHash ? { runInputHash: item.runInputHash as string } : {}), + }; + if (new TextEncoder().encode(JSON.stringify(parsed)).byteLength > 16384) invalid('reference summary exceeds 16 KiB.'); + return parsed; +} + +export function nextLayoutRegionId(regions: readonly LayoutRegion[]) { + const existing = new Set(regions.map((region) => region.id)); + for (let index = 1; index <= MAX_LAYOUT_REGIONS + 1; index++) { + const id = `region_${index}`; + if (!existing.has(id)) return id; + } + return invalid('no region identity is available.'); +} diff --git a/src/studio/layoutReferenceContext.ts b/src/studio/layoutReferenceContext.ts new file mode 100644 index 00000000..071585c8 --- /dev/null +++ b/src/studio/layoutReferenceContext.ts @@ -0,0 +1,121 @@ +import type { CustomNodeType } from '../stores/useFlowStore'; +import { normalizePersistedFlowState } from '../stores/useFlowStore'; +import type { LayoutReferenceSummary } from './layoutConditioning'; +import type { Edge } from '@xyflow/react'; +import { blockProjectionNodeIdV2, expandBlockGraphV2ForExecution } from './blockRuntimeV2'; +import { stableStringify } from './stableHash'; +import { unpackVisualOperationGroups, visualOperationGroup } from '../workflow/visualOperationGroupProjection'; + +/** Resolve a declared layout control through the same flat projection as Run. + * The key is display freshness only; it cannot mint backend conditioning. + */ +export function layoutReferenceContext(nodes: CustomNodeType[], edges: Edge[], nodeId: string, fieldKey: string) { + try { + const owner = nodes.find((node) => node.id === nodeId); + if (!owner) return null; + let target = nodeId; + let field = fieldKey; + const instance = owner.data.blockInstanceV2; + if (instance) { + const controls = instance.effectiveInterface.controls.filter((control) => control.controlId === fieldKey); + if (controls.length !== 1 || controls[0]!.mirrorBindings?.length) return null; + const binding = controls[0]!.binding; + target = visualOperationGroup(owner) + ? `${owner.id}/${binding.nodeId}` + : blockProjectionNodeIdV2(owner.id, binding.nodeId); + field = binding.fieldId; + } else if (owner.data.blockProjectionOwnerId) { + const root = nodes.find((node) => node.id === owner.data.blockProjectionOwnerId); + if (!root?.data.blockInstanceV2 || !owner.data.blockProjectionNodeId) return null; + target = visualOperationGroup(root) ? `${root.id}/${owner.data.blockProjectionNodeId}` : nodeId; + } + const unpacked = unpackVisualOperationGroups({ nodes, edges }).graph; + const graph = expandBlockGraphV2ForExecution(unpacked.nodes, unpacked.edges); + const leaf = graph.nodes.find((node) => node.id === target); + if ( + leaf?.data.params[field]?.type !== 'layout_conditioning' || + leaf.data.params[field]?.display !== 'layout' || + leaf.data.params.reference_binding?.type !== 'reference_conditioning' + ) + return null; + const incoming = graph.edges.filter((edge) => edge.target === target && edge.targetHandle === 'reference_binding'); + if (incoming.length !== 1 || incoming[0]!.sourceHandle !== 'reference_binding') return null; + const supplier = graph.nodes.find((node) => node.id === incoming[0]!.source); + if ( + supplier?.data.params.reference_binding?.type !== 'reference_conditioning' || + supplier.data.params.reference_binding.display !== 'output' || + supplier.data.params.layout_reference_summary?.type !== 'string' || + supplier.data.params.layout_reference_summary.display !== 'output' + ) + return null; + const selected = new Set(); + const pending = [incoming[0]!.source]; + while (pending.length) { + const id = pending.pop()!; + if (id === target || selected.size >= 256) return null; + if (selected.has(id)) continue; + if (!graph.nodes.some((node) => node.id === id)) return null; + selected.add(id); + pending.push(...graph.edges.filter((edge) => edge.target === id).map((edge) => edge.source)); + } + const ancestors = graph.nodes + .filter((node) => selected.has(node.id)) + .map((node) => ({ + id: node.id, + module: node.data.module, + action: node.data.action, + params: Object.fromEntries( + Object.entries(node.data.params) + .filter(([, param]) => param.display !== 'output' && !param.display?.startsWith('ui_')) + .map(([key, param]) => [ + key, + { value: param.value, default: param.default, type: param.type, signal: param.signal }, + ]), + ), + })); + const links = graph.edges + .filter((edge) => selected.has(edge.target) || edge === incoming[0]) + .map((edge) => [edge.source, edge.sourceHandle, edge.target, edge.targetHandle]); + const key = stableStringify({ target, ancestors, links }); + return key.length <= 262144 ? { nodeId: target, summaryNodeId: supplier.id, key } : null; + } catch { + return null; + } +} + +/** Join the cache summary to the ordinary persisted task snapshot. */ +export function validateLayoutReferenceRun( + value: unknown, + summary: LayoutReferenceSummary, + current: { key: string }, + nodeId: string, + fieldKey: string, + workflowId: string | null, +) { + const record = (value: unknown): value is Record => + Boolean(value && typeof value === 'object' && !Array.isArray(value)); + if ( + !summary.taskId || + !summary.runInputHash || + !record(value) || + !record(value.task) || + value.task.task_id !== summary.taskId || + value.task.attempt_index !== summary.attemptIndex || + value.task.run_input_hash !== summary.runInputHash || + value.workflow_id !== workflowId || + !record(value.workflow_snapshot) || + !Array.isArray(value.workflow_snapshot.nodes) || + !Array.isArray(value.workflow_snapshot.edges) || + value.workflow_snapshot.nodes.length > 4096 || + value.workflow_snapshot.edges.length > 16384 || + JSON.stringify(value.workflow_snapshot).length > 16 * 1024 * 1024 + ) + throw new Error( + 'Reference cache needs its actual task and workflow snapshot. Encode references in this workflow again.', + ); + const saved = normalizePersistedFlowState(value.workflow_snapshot); + if (layoutReferenceContext(saved.nodes, saved.edges, nodeId, fieldKey)?.key !== current.key) + throw new Error( + 'The source graph changed since encoding. Encode again before explicitly rebinding source regions.', + ); +} diff --git a/src/studio/modularDiffusersBlockInsertion.ts b/src/studio/modularDiffusersBlockInsertion.ts index 9709c956..9a18f53c 100644 --- a/src/studio/modularDiffusersBlockInsertion.ts +++ b/src/studio/modularDiffusersBlockInsertion.ts @@ -15,7 +15,7 @@ import { } from './blockSchemaV2'; import { createBlockRootNodeV2, setBlockPresentationV2 } from './blockRuntimeV2'; import { compactReviewedModularInternalLayoutV2 } from './reviewedModularGraphV2'; -import { addReviewedValuePortsV2 } from './reviewedValuePortsV2'; +import { addReviewedValuePortsV2, selectReviewedBlockFieldParamV2 } from './reviewedValuePortsV2'; const STEP_KEY = 'modules.ModularDiffusers.ReviewedModularWorkflowStep'; export const HUGGING_FACE_MODULAR_BLOCK_DRAG_PREFIX = 'modiff:hugging-face-modular-block:'; @@ -119,14 +119,17 @@ export function createModularDiffusersCatalogNode( return; } const key = base.params[field.name]?.display === 'output' ? `state_input__${field.name}` : field.name; - params[key] = manifestInput(base.params[key], field); + params[key] = manifestInput( + base.params[key] ? selectReviewedBlockFieldParamV2(base.params[key], block) : undefined, + field, + ); }); for (const output of block.outputs) { const outputParam = base.params[output.name]; if (outputParam?.display === 'output') params[output.name] = clone(outputParam); } } - addReviewedValuePortsV2(params, base.params, block.inputs, block.outputs, executionKind); + addReviewedValuePortsV2(params, base.params, block.inputs, block.outputs, executionKind, block); const metadata = { kind: 'upstream_block' as const, pipelineClass: context.pipelineClass, diff --git a/src/studio/operationAuthoringRecipe.ts b/src/studio/operationAuthoringRecipe.ts new file mode 100644 index 00000000..ab418d86 --- /dev/null +++ b/src/studio/operationAuthoringRecipe.ts @@ -0,0 +1,201 @@ +import { parseAncillaryOperations, type AncillaryOperation } from './ancillaryOperations'; +import { isStudioExecutionBindingSource, isStudioGraphRole } from './executionSpecs'; +import { hashString, stableStringify } from './stableHash'; +import type { StudioExecutionSpec, StudioGraphRole } from './types'; +import { record } from '../workflow/operationContracts'; + +/** Hash-covered authoring data over ordinary nodes, never execution authority. */ +export type OperationAuthoringRecipe = { + schemaVersion: 1; + canonicalizationVersion: 1; + id: string; + baseSpecId: string; + baseSpecContentHash: string; + executionProfileIds: string[]; + roles: StudioExecutionSpec['roles']; + edges: StudioExecutionSpec['edges']; + bindings: StudioExecutionSpec['bindings']; + initialValues: Array<[StudioGraphRole, string, string | number | boolean | null]>; + contentHash: string; + ancillaryOperations?: AncillaryOperation[]; +}; +export type OperationAuthoringSelection = { + authoringRecipeId?: string; + executionProfileId?: string; + pipelineClass?: string; + task?: string; +}; +const ID = /^[a-z\d][a-z\d._:-]{0,127}$/; +const FIELD = /^[A-Za-z_][A-Za-z\d_]{0,63}$/; +const NODE = /^modules\.[A-Za-z\d_]+\.[A-Za-z\d_]+$/; +const IDENTITY_FIELDS = new Set([ + 'model_type', + 'repo_id', + 'model_id', + 'revision', + 'execution_profile_id', + 'trust_remote_code', + 'workflow_id', + 'pipeline_class', +]); +function invalid(): never { + throw new Error('Invalid operation authoring recipe. Refresh model capabilities.'); +} +function field(value: unknown): value is string { + return typeof value === 'string' && FIELD.test(value); +} + +export function parseOperationAuthoringRecipe( + value: unknown, + expected: OperationAuthoringSelection, +): OperationAuthoringRecipe { + const claimed = value !== null && typeof value === 'object' && 'ancillaryOperations' in value; + const ancillary = claimed ? Object.getOwnPropertyDescriptor(value, 'ancillaryOperations') : undefined; + if (claimed && (!ancillary?.enumerable || !('value' in ancillary))) invalid(); + const raw = record(value, [ + 'schemaVersion', + 'canonicalizationVersion', + 'id', + 'baseSpecId', + 'baseSpecContentHash', + 'executionProfileIds', + 'roles', + 'edges', + 'bindings', + 'initialValues', + 'contentHash', + ...(ancillary ? ['ancillaryOperations'] : []), + ]); + if ( + raw.schemaVersion !== 1 || + raw.canonicalizationVersion !== 1 || + typeof raw.id !== 'string' || + !ID.test(raw.id) || + raw.id !== expected.authoringRecipeId || + typeof raw.baseSpecId !== 'string' || + !ID.test(raw.baseSpecId) || + typeof raw.baseSpecContentHash !== 'string' || + !/^studio-spec-v1-[a-f\d]{8}$/.test(raw.baseSpecContentHash) || + !expected.executionProfileId || + !Array.isArray(raw.executionProfileIds) || + !raw.executionProfileIds.length || + raw.executionProfileIds.length > 32 || + raw.executionProfileIds.some((id) => typeof id !== 'string' || !ID.test(id)) || + new Set(raw.executionProfileIds).size !== raw.executionProfileIds.length || + !raw.executionProfileIds.includes(expected.executionProfileId) + ) + invalid(); + if (!Array.isArray(raw.roles) || raw.roles.length < 2 || raw.roles.length > 32) invalid(); + const roles = raw.roles.map((row): OperationAuthoringRecipe['roles'][number] => { + if ( + !Array.isArray(row) || + row.length !== 4 || + !isStudioGraphRole(row[0]) || + typeof row[1] !== 'string' || + !NODE.test(row[1]) || + !row.slice(2).every((n) => typeof n === 'number' && Number.isFinite(n) && Math.abs(n) <= 10000) + ) + invalid(); + return [row[0], row[1], row[2] as number, row[3] as number]; + }); + const roleIds = new Set(roles.map(([role]) => role)); + if (roleIds.size !== roles.length) invalid(); + const role = (value: unknown): value is StudioGraphRole => isStudioGraphRole(value) && roleIds.has(value); + if (!Array.isArray(raw.edges) || !raw.edges.length || raw.edges.length > 128) invalid(); + const targets = new Set(); + const edges = raw.edges.map((row): OperationAuthoringRecipe['edges'][number] => { + if ( + !Array.isArray(row) || + row.length !== 4 || + !role(row[0]) || + !field(row[1]) || + !role(row[2]) || + !field(row[3]) || + row[0] === row[2] || + targets.has(`${row[2]}:${row[3]}`) + ) + invalid(); + targets.add(`${row[2]}:${row[3]}`); + return [row[0], row[1], row[2], row[3]]; + }); + const visited = new Set(), + visiting = new Set(); + function visit(id: StudioGraphRole) { + if (visiting.has(id)) invalid(); + if (visited.has(id)) return; + visiting.add(id); + for (const edge of edges) if (edge[0] === id) visit(edge[2]); + visiting.delete(id); + visited.add(id); + } + for (const id of roleIds) visit(id); + if ( + !Array.isArray(raw.bindings) || + !raw.bindings.length || + raw.bindings.length > 128 || + !Array.isArray(raw.initialValues) || + raw.initialValues.length > 128 + ) + invalid(); + const assigned = new Set(); + const bindings = raw.bindings.map((row): OperationAuthoringRecipe['bindings'][number] => { + if ( + !Array.isArray(row) || + row.length !== 3 || + !role(row[0]) || + !field(row[1]) || + !isStudioExecutionBindingSource(row[2]) || + assigned.has(`${row[0]}:${row[1]}`) + ) + invalid(); + assigned.add(`${row[0]}:${row[1]}`); + return [row[0], row[1], row[2]]; + }); + const initialValues = raw.initialValues.map((row): OperationAuthoringRecipe['initialValues'][number] => { + if ( + !Array.isArray(row) || + row.length !== 3 || + !role(row[0]) || + !field(row[1]) || + IDENTITY_FIELDS.has(row[1]) || + assigned.has(`${row[0]}:${row[1]}`) || + !( + row[2] === null || + typeof row[2] === 'boolean' || + (typeof row[2] === 'number' && Number.isFinite(row[2])) || + (typeof row[2] === 'string' && row[2].length <= 4096) + ) + ) + invalid(); + assigned.add(`${row[0]}:${row[1]}`); + return [row[0], row[1], row[2]]; + }); + if (ancillary && (!expected.pipelineClass || !expected.task)) invalid(); + const ancillaryOperations = ancillary + ? parseAncillaryOperations(ancillary.value, { + authoringRecipeId: raw.id as string, + baseSpecId: raw.baseSpecId as string, + baseSpecContentHash: raw.baseSpecContentHash as string, + executionProfileId: expected.executionProfileId!, + pipelineClass: expected.pipelineClass!, + task: expected.task!, + parentRoles: roles.map(([role]) => role), + }) + : undefined; + const semantic = { + schemaVersion: 1 as const, + canonicalizationVersion: 1 as const, + id: raw.id, + baseSpecId: raw.baseSpecId, + baseSpecContentHash: raw.baseSpecContentHash, + executionProfileIds: raw.executionProfileIds as string[], + roles, + edges, + bindings, + initialValues, + ...(ancillary ? { ancillaryOperations } : {}), + }; + const contentHash = `studio-authoring-v1-${hashString(stableStringify(semantic))}`; + if (raw.contentHash !== contentHash) invalid(); + return { ...semantic, contentHash }; +} diff --git a/src/studio/optionalRuntimes.ts b/src/studio/optionalRuntimes.ts index b6ecf2b4..df05c22a 100644 --- a/src/studio/optionalRuntimes.ts +++ b/src/studio/optionalRuntimes.ts @@ -4,6 +4,7 @@ import { runtimeText as string, } from './runtimeOptimizations'; import { isStudioArtifactId, REPO_ID } from './executionSpecs'; +import type { StudioExecutionProfile, StudioImageAdapterAuthoringPolicy, StudioAdapterAuthoringPolicy } from './types'; export type OptionalRuntimeRequirement = { schemaVersion: 1; @@ -241,6 +242,137 @@ function parseExpertMpsPolicy(value: unknown): StudioExpertMpsPolicy { }; } +export function parseAdapterAuthoringPolicy( + value: unknown, + modes: readonly string[], + repositoryRevisions: readonly { repo: string; revision: string }[] | undefined, + context: Pick | undefined, +): StudioAdapterAuthoringPolicy { + const item = record(value); + if ( + ![Object.prototype, null].includes(Object.getPrototypeOf(item)) || + Object.getOwnPropertySymbols(item).length || + Object.values(Object.getOwnPropertyDescriptors(item)).some( + (descriptor) => !descriptor.enumerable || !Object.prototype.hasOwnProperty.call(descriptor, 'value'), + ) + ) + invalid(); + if ( + Object.keys(item) + .filter((key) => key !== 'requiredControls') + .sort() + .join() !== 'adapterNodeKey,maxOwnedAdapters,mediaKind,repositoryRevisions,schemaVersion,tasks' || + item.schemaVersion !== 1 || + (item.mediaKind !== 'image' && item.mediaKind !== 'audio') || + (item.mediaKind === 'audio' + ? item.adapterNodeKey !== 'modules.DiffusersAudio.LoadAdapter' || item.maxOwnedAdapters !== 1 + : item.adapterNodeKey !== 'modules.ModularDiffusers.Lora' && + item.adapterNodeKey !== 'modules.DiffusersImage.LoadAdapter') || + !Number.isInteger(item.maxOwnedAdapters) || + (item.maxOwnedAdapters as number) < 1 || + (item.maxOwnedAdapters as number) > 32 + ) + invalid(); + if ( + !context || + !['loader_module', 'loader_action', 'execution_path'].every((key) => + Object.prototype.hasOwnProperty.call(context, key), + ) + ) + invalid(); + const native = + context.loader_module === 'modules.ModularDiffusers' && + context.loader_action === 'ModelsLoader' && + context.execution_path === 'modular-diffusers'; + const direct = + context.loader_module === 'modules.DiffusersImage' && + context.loader_action === 'LoadPipeline' && + context.execution_path === 'direct-diffusers-image'; + const audio = + context.loader_module === 'modules.DiffusersAudio' && + context.loader_action === 'LoadPipeline' && + context.execution_path === 'direct-diffusers-audio'; + if (item.mediaKind === 'audio' ? !audio : item.adapterNodeKey === 'modules.ModularDiffusers.Lora' ? !native : !direct) + invalid(); + const tasks = ids(item.tasks, /^[a-z][a-z0-9_]{0,63}$/u, false) as string[]; + if (tasks.some((task) => !modes.includes(task))) invalid(); + const pairs = item.repositoryRevisions; + if (!Array.isArray(pairs) || !pairs.length || pairs.length > 32) invalid(); + const seen = new Set(); + const parsedPairs = pairs.map((raw) => { + const pair = record(raw); + if (Object.keys(pair).sort().join() !== 'repo,revision') invalid(); + const repo = string(pair.repo, /^[A-Za-z\d_][A-Za-z\d_.-]{0,95}\/[A-Za-z\d_][A-Za-z\d_.-]{0,95}$/u)!; + const revision = string(pair.revision, /^[a-f0-9]{40}$/u)!; + if ( + seen.has(repo.toLowerCase()) || + !repositoryRevisions?.some((declared) => declared.repo === repo && declared.revision === revision) + ) + invalid(); + seen.add(repo.toLowerCase()); + return { repo, revision }; + }); + let requiredControls: StudioImageAdapterAuthoringPolicy['requiredControls']; + if ('requiredControls' in item && !Object.prototype.hasOwnProperty.call(item, 'requiredControls')) invalid(); + if (Object.prototype.hasOwnProperty.call(item, 'requiredControls')) { + const controls = record(item.requiredControls); + if ( + ![Object.prototype, null].includes(Object.getPrototypeOf(controls)) || + Object.getOwnPropertySymbols(controls).length + ) + invalid(); + const entries = Object.getOwnPropertyDescriptors(controls); + const keys = Object.keys(entries); + if (!keys.length || keys.length > 32) invalid(); + requiredControls = {}; + for (const key of keys) { + if (!/^[a-z][a-z0-9_]{0,63}$/u.test(key) || ['constructor', 'prototype'].includes(key)) invalid(); + const descriptor = entries[key]!; + if (!Object.prototype.hasOwnProperty.call(descriptor, 'value') || !descriptor.enumerable) invalid(); + const scalar: unknown = descriptor.value; + if ( + scalar !== null && + typeof scalar !== 'boolean' && + !( + typeof scalar === 'string' && + scalar.length > 0 && + scalar === scalar.trim() && + scalar.length <= 128 && + !/[\p{Cc}\u2028\u2029]/u.test(scalar) + ) + ) + invalid(); + requiredControls[key] = scalar as string | boolean | null; + } + } + const common = { + schemaVersion: 1 as const, + tasks, + repositoryRevisions: parsedPairs, + ...(requiredControls ? { requiredControls } : {}), + }; + return item.mediaKind === 'audio' + ? { ...common, mediaKind: 'audio', adapterNodeKey: 'modules.DiffusersAudio.LoadAdapter', maxOwnedAdapters: 1 } + : { + ...common, + mediaKind: 'image', + adapterNodeKey: item.adapterNodeKey as StudioImageAdapterAuthoringPolicy['adapterNodeKey'], + maxOwnedAdapters: item.maxOwnedAdapters as number, + }; +} + +/** Retained image-only boundary for existing callers. */ +export function parseImageAdapterAuthoringPolicy( + value: unknown, + modes: readonly string[], + repositoryRevisions: readonly { repo: string; revision: string }[] | undefined, + context: Pick | undefined, +): StudioImageAdapterAuthoringPolicy { + const policy = parseAdapterAuthoringPolicy(value, modes, repositoryRevisions, context); + if (policy.mediaKind !== 'image') invalid(); + return policy; +} + export function parseOptionalRuntimeExecutionProfiles( value: unknown, aggregate: OptionalRuntimeRequirement | undefined, @@ -255,6 +387,32 @@ export function parseOptionalRuntimeExecutionProfiles( if (repo != null && (typeof repo !== 'string' || !isStudioArtifactId(repo))) invalid(); } if (profile.compatible_repos !== undefined) ids(profile.compatible_repos, REPO_ID, true); + if (profile.repository_revisions !== undefined) { + const pairs = profile.repository_revisions; + if (!Array.isArray(pairs) || pairs.length > 32) invalid(); + const declared = [profile.default_repo, profile.fallback_repo, ...((profile.compatible_repos as string[]) ?? [])]; + const seen = new Set(); + profile.repository_revisions = pairs.map((raw) => { + const pair = record(raw); + if (Object.keys(pair).sort().join() !== 'repo,revision') invalid(); + const repo = string(pair.repo, REPO_ID)!; + const revision = string(pair.revision, /^[a-f0-9]{40}$/u)!; + if (!declared.includes(repo) || seen.has(repo)) invalid(); + seen.add(repo); + return { repo, revision }; + }); + } + if (Object.prototype.hasOwnProperty.call(profile, 'adapterAuthoring')) + profile.adapterAuthoring = parseAdapterAuthoringPolicy( + profile.adapterAuthoring, + modes, + profile.repository_revisions as StudioImageAdapterAuthoringPolicy['repositoryRevisions'] | undefined, + { + loader_module: string(profile.loader_module)!, + loader_action: string(profile.loader_action)!, + execution_path: string(profile.execution_path)!, + }, + ); if (profile.optionalRuntimeRequirement !== undefined && profile.optional_runtime_requirement !== undefined) invalid(); const rawRequirement = profile.optionalRuntimeRequirement ?? profile.optional_runtime_requirement; @@ -304,6 +462,7 @@ export function parseOptionalRuntimeExecutionProfiles( return profile as Record & { id: string; modes: T[]; + adapterAuthoring?: StudioImageAdapterAuthoringPolicy; optionalRuntimeRequirement?: OptionalRuntimeRequirement; expert_cuda_policy?: StudioExpertCudaPolicy; expert_quantization_policy?: StudioExpertQuantizationPolicy; diff --git a/src/studio/promptEnhancementAuthoring.ts b/src/studio/promptEnhancementAuthoring.ts new file mode 100644 index 00000000..121b0c95 --- /dev/null +++ b/src/studio/promptEnhancementAuthoring.ts @@ -0,0 +1,452 @@ +import type { CurrentAncillaryParentDefinition } from '../workflow/ancillaryExecutionScope'; +import type { AncillaryOperation, AncillaryInstanceBinding } from './ancillaryOperations'; +import { invalidAncillary } from './ancillaryBindings'; +import { + PARENT_KEYS, + parsePromptEnhancementParent, + promptEnhancementParentFromHint, + type PromptEnhancementParent, +} from './promptEnhancementParent'; +export { + parsePromptEnhancementParent, + promptEnhancementParentFromHint, + remapPromptEnhancementParent, +} from './promptEnhancementParent'; +export type { PromptEnhancementParent } from './promptEnhancementParent'; +import type { OperationAuthoringRecipe } from './operationAuthoringRecipe'; +import type { OperationGraph } from '../workflow/operationAuthoring'; +import type { NodeData } from '../stores/useNodeStore'; + +/** Attach only a backend-declared offer to its actual prompt owner before grouping. + * This does not add a branch, change values, make a request, or grant readiness. */ +export function attachPromptEnhancementParents(graph: OperationGraph, recipe: OperationAuthoringRecipe | undefined) { + if (!recipe?.ancillaryOperations) return graph; + const roleNodes: Record = {}; + for (const [role, key] of recipe.roles) { + const matches = graph.nodes.filter( + (node) => node.data.studioRole === role && `${node.data.module}.${node.data.action}` === key, + ); + if (matches.length !== 1) invalidAncillary('prompt enhancement parent role is missing or ambiguous.'); + roleNodes[role] = matches[0]!.id; + } + for (const child of recipe.ancillaryOperations) { + const owner = graph.nodes.find((node) => node.id === roleNodes[child.bindings.owner.role]); + if (!owner?.data.operationAuthoring) invalidAncillary('prompt enhancement needs an ordinary declared input owner.'); + owner.data.operationAuthoring.ancillaryParent = parsePromptEnhancementParent({ + schemaVersion: 1, + parent: { ...child.parent, authoringContentHash: recipe.contentHash }, + parentRoleNodes: roleNodes, + }); + } + return graph; +} + +/** Rebuild advisory offers after a normal model/task change. Only replacement + * operations and directly connected non-operation leaves can form this parent. + * Incomplete or ambiguous custom graphs retain the ordinary editing path. */ +export function refreshPromptEnhancementParents( + graph: OperationGraph, + recipe: OperationAuthoringRecipe | undefined, + operationNodeIds: readonly string[], +): OperationGraph { + if (!recipe?.ancillaryOperations) return graph; + const selected = new Set(operationNodeIds); + const keys = new Set(recipe.roles.map(([, key]) => key)); + const moduleKey = (node: OperationGraph['nodes'][number]) => `${node.data.module}.${node.data.action}`; + for (const edge of graph.edges) { + const externalId = selected.has(edge.source) ? edge.target : selected.has(edge.target) ? edge.source : undefined; + const node = graph.nodes.find((node) => node.id === externalId); + if (node && !node.data.operationAuthoring?.operation && keys.has(moduleKey(node))) selected.add(node.id); + } + const roleNodes = new Map(); + for (const [role, key] of recipe.roles) { + const candidates = graph.nodes.filter((node) => selected.has(node.id) && moduleKey(node) === key); + const assigned = candidates.filter((node) => node.data.studioRole === role); + const node = assigned.length === 1 ? assigned[0] : candidates.length === 1 ? candidates[0] : undefined; + if (!node || [...roleNodes.values()].includes(node.id)) return graph; + roleNodes.set(role, node.id); + } + if ( + recipe.edges.some( + ([from, output, to, input]) => + graph.edges.filter( + (edge) => + edge.source === roleNodes.get(from) && + edge.sourceHandle === output && + edge.target === roleNodes.get(to) && + edge.targetHandle === input, + ).length !== 1, + ) + ) + return graph; + const roles = new Map([...roleNodes].map(([role, id]) => [id, role])); + const parentNodes = graph.nodes + .filter((node) => roles.has(node.id)) + .map((node) => ({ + ...node, + data: { ...structuredClone(node.data), studioRole: roles.get(node.id)! }, + })); + attachPromptEnhancementParents({ nodes: parentNodes, edges: graph.edges }, recipe); + const replacements = new Map(parentNodes.map((node) => [node.id, node])); + return { ...graph, nodes: graph.nodes.map((node) => replacements.get(node.id) ?? node) }; +} + +export type AuthoredEnhancementPair = { prompt: string; layout: unknown }; + +function sameParent(selection: PromptEnhancementParent, recipe: OperationAuthoringRecipe) { + const parent = selection.parent; + if ( + parent.authoringRecipeId !== recipe.id || + parent.authoringContentHash !== recipe.contentHash || + parent.baseSpecId !== recipe.baseSpecId || + parent.baseSpecContentHash !== recipe.baseSpecContentHash || + !recipe.executionProfileIds.includes(parent.executionProfileId) + ) + invalidAncillary('refresh the selected parent declaration before editing enhancement.'); +} + +async function editableContext(graph: OperationGraph, ownerId: string) { + const groups = await import('../workflow/visualOperationGroups'); + const { blockProjectionNodeIdV2 } = await import('./blockRuntimeV2'); + const unpacked = groups.unpackVisualOperationGroups(structuredClone(graph)); + const containing = unpacked.roots.find((root) => + root.data.blockInstanceV2!.effectiveGraph.nodes.some( + (leaf) => blockProjectionNodeIdV2(root.id, leaf.nodeId) === ownerId, + ), + ); + const originalLeaf = containing?.data.blockInstanceV2!.effectiveGraph.nodes.find( + (leaf) => blockProjectionNodeIdV2(containing.id, leaf.nodeId) === ownerId, + ); + const id = containing && originalLeaf ? `${containing.id}/${originalLeaf.nodeId}` : ownerId; + const owner = unpacked.graph.nodes.find((node) => node.id === id); + const selection = promptEnhancementParentFromHint(owner?.data.operationAuthoring); + if (!owner || !selection) invalidAncillary('select the current declared Prompt/Inputs stage.'); + return { groups, unpacked, containing, owner, selection }; +} + +function selectedChild(selection: PromptEnhancementParent, recipe: OperationAuthoringRecipe, childId: string) { + sameParent(selection, recipe); + const child = recipe.ancillaryOperations?.find((child) => child.id === childId); + if (!child) invalidAncillary('the current declaration has no selected enhancement.'); + for (const key of PARENT_KEYS) { + if (key !== 'authoringContentHash' && child.parent[key] !== selection.parent[key]) + invalidAncillary('the enhancement belongs to a different selected parent.'); + } + return child; +} + +function authoredPair(graph: OperationGraph, ownerId: string, child: AncillaryOperation): AuthoredEnhancementPair { + const owner = graph.nodes.find((node) => node.id === ownerId); + const { promptField, layoutField } = child.bindings.owner; + if ( + !owner || + [promptField, layoutField].some((field) => + graph.edges.some((edge) => edge.target === ownerId && edge.targetHandle === field), + ) + ) + invalidAncillary('enhancement needs authored inline prompt and layout controls.'); + const prompt = owner.data.params[promptField], + layout = owner.data.params[layoutField]; + const value = prompt?.value ?? prompt?.default; + if (typeof value !== 'string' || !layout) invalidAncillary('the declared prompt or layout control is unavailable.'); + return { prompt: value, layout: structuredClone(layout.value ?? layout.default ?? null) }; +} + +function assertDeclaredLayout(child: AncillaryOperation, layout: unknown) { + if ( + layout !== null && + child.verification && + !child.verification.supportedPromptModes.some( + (mode) => mode === (child.bindings.owner.referenceSource ? 'i2i_bbox' : 't2i_bbox'), + ) + ) + invalidAncillary('this enhancement does not support authored layout objects. Keep the raw prompt/layout path.'); +} + +export async function promptEnhancementPairHash(pair: AuthoredEnhancementPair): Promise<`sha256:${string}`> { + const { canonicalBlockStringifyV2 } = await import('./blockSchemaV2'); + const body = new TextEncoder().encode(canonicalBlockStringifyV2(pair)); + const hash = await crypto.subtle.digest('SHA-256', body); + return `sha256:${Array.from(new Uint8Array(hash), (byte) => byte.toString(16).padStart(2, '0')).join('')}`; +} + +/** Add real registry nodes to the existing graph. Callers must freshly resolve recipe. */ +export async function planEnablePromptEnhancement( + graph: OperationGraph, + ownerId: string, + recipe: OperationAuthoringRecipe, + childId: string, + registry: Record, + definition?: CurrentAncillaryParentDefinition, +): Promise { + const context = await editableContext(graph, ownerId); + const { owner, selection, unpacked, groups, containing } = context; + const child = selectedChild(selection, recipe, childId); + const { ancillaryBindingsFromHint, parseAncillaryBindings } = await import('./ancillaryOperations'); + if (ancillaryBindingsFromHint(owner.data.operationAuthoring)) + invalidAncillary('disable the current enhancement before selecting another one.'); + const pair = authoredPair(unpacked.graph, owner.id, child); + const { parseLayoutConditioning } = await import('./layoutConditioning'); + parseLayoutConditioning(pair.layout); + assertDeclaredLayout(child, pair.layout); + if (pair.layout !== null) { + const layout = parseLayoutConditioning(pair.layout); + if ( + !layout || + layout.regions.some((region) => 'source' in region || ('action' in region && region.action !== 'place')) + ) + invalidAncillary('enhancement does not support source-region or removal proposals; keep the raw prompt path.'); + } + const { createNodeFromRegistry } = await import('../workflow/nodeFactory'); + const children = child.roles.map(([role, key, x, y]) => { + const node = createNodeFromRegistry(key, registry, { x: owner.position.x + x, y: owner.position.y + y }); + if (!node) invalidAncillary('refresh the node registry before enabling enhancement.'); + return { role, node }; + }); + const roleNodes = Object.fromEntries(children.map(({ role, node }) => [role, node.id])); + if (child.verification) { + for (const mapping of [child.verification.runtimeInputs, child.verification.requestInputs]) { + const node = children.find((item) => item.role === mapping.role)?.node; + for (const [name, field] of Object.entries(mapping)) { + if (name === 'role') continue; + const param = node?.data.params[field]; + if (!param || param.display === 'output' || param.display === 'input' || param.signal) + invalidAncillary('the declared enhancement literal control is unavailable.'); + } + } + } + for (const [role, field, override] of child.fieldOverrides ?? []) { + const node = children.find((item) => item.role === role)?.node; + const param = node?.data.params[field]; + if (!param || param.display === 'output' || param.display === 'input' || param.signal) + invalidAncillary('the declared enhancement presentation does not match a registered control.'); + param.hidden = override.hidden; + } + const write = (role: string, field: string, value: unknown) => { + const node = children.find((item) => item.role === role)?.node; + const param = node?.data.params[field]; + if (!param || param.display === 'output') invalidAncillary('the declared enhancement input is unavailable.'); + param.value = structuredClone(value); + }; + for (const [role, field, value] of child.initialValues) write(role, field, value); + write(child.bindings.request.role, child.bindings.request.promptField, pair.prompt); + write(child.bindings.request.role, child.bindings.request.layoutField, pair.layout); + const binding = parseAncillaryBindings([ + { + contractId: child.id, + contentHash: child.contentHash, + parent: selection.parent, + parentRoleNodes: selection.parentRoleNodes, + roleNodes, + }, + ])[0]!; + owner.data.operationAuthoring!.ancillaryBindings = [binding]; + const next: OperationGraph = { + nodes: [...unpacked.graph.nodes, ...children.map(({ node }) => node)], + edges: [ + ...unpacked.graph.edges, + ...child.edges.map(([from, output, to, input], index) => ({ + id: `enhancement-${roleNodes[from]}-${index}`, + source: roleNodes[from]!, + sourceHandle: output, + target: roleNodes[to]!, + targetHandle: input, + })), + ], + }; + const reference = child.bindings.owner.referenceSource; + if (reference) + next.edges.push({ + id: `enhancement-reference-${roleNodes[child.bindings.request.role]}`, + source: selection.parentRoleNodes[reference.role]!, + sourceHandle: reference.field, + target: roleNodes[child.bindings.request.role]!, + targetHandle: child.bindings.request.imagesField, + }); + const { selectAncillaryExecutionScope, remapCurrentAncillaryParentDefinition } = + await import('../workflow/ancillaryExecutionScope'); + const { expandFlowExecutionGraph } = await import('../stores/useFlowStore'); + const originalOwner = expandFlowExecutionGraph(graph.nodes, graph.edges).nodes.find((node) => node.id === ownerId); + const original = promptEnhancementParentFromHint(originalOwner?.data.operationAuthoring); + if (!original) invalidAncillary('the original native enhancement offer is unavailable.'); + const currentDefinition = remapCurrentAncillaryParentDefinition(definition, original, selection); + selectAncillaryExecutionScope({ + ...next, + parents: [{ recipe, selection: selection.parent, definition: currentDefinition }], + registry, + kind: 'workflow', + }); + if (!containing) return groups.restoreVisualOperationGroups(next, unpacked); + const siblings = { ...unpacked, roots: unpacked.roots.filter((root) => root.id !== containing.id) }; + const restored = groups.restoreVisualOperationGroups(next, siblings); + return groups.groupVisualStages( + restored, + [...unpacked.members.get(containing.id)!, ...children.map(({ node }) => node.id)], + 'inputs', + containing, + { implicitScalarControlNodeIds: children.map(({ node }) => node.id) }, + ); +} + +function bindingFor(owner: OperationGraph['nodes'][number], child: AncillaryOperation): AncillaryInstanceBinding { + const bindings = owner.data.operationAuthoring?.ancillaryBindings; + if ( + !Array.isArray(bindings) || + bindings.length !== 1 || + bindings[0]?.contractId !== child.id || + bindings[0].contentHash !== child.contentHash + ) + invalidAncillary('refresh the current enhancement binding.'); + return bindings[0]; +} + +function restoreEnhancementGroup( + context: Awaited>, + next: OperationGraph, + binding: AncillaryInstanceBinding, +) { + const { containing, unpacked, groups } = context; + if (!containing) return groups.restoreVisualOperationGroups(next, unpacked); + const siblings = { ...unpacked, roots: unpacked.roots.filter((root) => root.id !== containing.id) }; + const restored = groups.restoreVisualOperationGroups(next, siblings); + const ids = new Set(next.nodes.map((node) => node.id)); + return groups.groupVisualStages( + restored, + unpacked.members.get(containing.id)!.filter((id) => ids.has(id)), + 'inputs', + containing, + { implicitScalarControlNodeIds: Object.values(binding.roleNodes).filter((id) => ids.has(id)) }, + ); +} + +/** Data-only atomic graph plan. Verification and an explicit Apply gesture are separate. */ +export async function planApplyPromptEnhancement( + graph: OperationGraph, + ownerId: string, + recipe: OperationAuthoringRecipe, + childId: string, + pair: AuthoredEnhancementPair, + expectedPairHash: string, +): Promise { + const context = await editableContext(graph, ownerId); + const { owner, selection, unpacked } = context; + const child = selectedChild(selection, recipe, childId); + const binding = bindingFor(owner, child); + const original = authoredPair(unpacked.graph, owner.id, child); + if ((await promptEnhancementPairHash(original)) !== expectedPairHash) + invalidAncillary('the authored prompt or layout changed; request a fresh proposal.'); + if (typeof pair.prompt !== 'string' || !pair.prompt.trim()) invalidAncillary('the proposed caption is empty.'); + const { parseLayoutConditioning } = await import('./layoutConditioning'); + const { canonicalBlockStringifyV2 } = await import('./blockSchemaV2'); + const authoredLayout = parseLayoutConditioning(original.layout), + proposedLayout = parseLayoutConditioning(pair.layout); + const geometry = (layout: typeof authoredLayout) => + layout === null + ? null + : { + ...layout, + regions: layout.regions.map((region) => { + const copy: Record = { ...region }; + delete copy.description; + return copy; + }), + }; + if ( + proposedLayout?.regions.some((region) => 'source' in region || ('action' in region && region.action !== 'place')) || + canonicalBlockStringifyV2(geometry(authoredLayout)) !== canonicalBlockStringifyV2(geometry(proposedLayout)) + ) + invalidAncillary('a prompt enhancement cannot change authored layout identities or geometry.'); + owner.data.params[child.bindings.owner.promptField]!.value = pair.prompt; + owner.data.params[child.bindings.owner.layoutField]!.value = structuredClone(pair.layout); + owner.data.operationAuthoring!.ancillaryParent = { + ...selection, + appliedPairSha256: await promptEnhancementPairHash(pair), + }; + return restoreEnhancementGroup(context, unpacked.graph, binding); +} + +/** Disable removes only the declared branch and preserves later user edits. */ +export async function planDisablePromptEnhancement( + graph: OperationGraph, + ownerId: string, + recipe: OperationAuthoringRecipe, + childId: string, +): Promise { + const { owner, selection, unpacked, groups } = await editableContext(graph, ownerId); + const child = selectedChild(selection, recipe, childId); + const binding = bindingFor(owner, child); + const ids = new Set(Object.values(binding.roleNodes)); + const allowed = new Set( + child.edges.map(([a, b, c, d]) => `${binding.roleNodes[a]}\0${b}\0${binding.roleNodes[c]}\0${d}`), + ); + const reference = child.bindings.owner.referenceSource; + if (reference) + allowed.add( + `${binding.parentRoleNodes[reference.role]}\0${reference.field}\0${binding.roleNodes[child.bindings.request.role]}\0${child.bindings.request.imagesField}`, + ); + if ( + unpacked.graph.edges.some( + (edge) => + (ids.has(edge.source) || ids.has(edge.target)) && + !allowed.has(`${edge.source}\0${edge.sourceHandle}\0${edge.target}\0${edge.targetHandle}`), + ) + ) + invalidAncillary('the enhancement branch has additional connections; separate those explicitly before disabling.'); + if ( + selection.appliedPairSha256 && + (await promptEnhancementPairHash(authoredPair(unpacked.graph, owner.id, child))) === selection.appliedPairSha256 + ) { + const request = unpacked.graph.nodes.find((node) => node.id === binding.roleNodes[child.bindings.request.role]); + if (!request) invalidAncillary('the original enhancement request is unavailable.'); + const prompt = request.data.params[child.bindings.request.promptField]; + const layout = request.data.params[child.bindings.request.layoutField]; + owner.data.params[child.bindings.owner.promptField]!.value = structuredClone(prompt?.value ?? prompt?.default); + owner.data.params[child.bindings.owner.layoutField]!.value = structuredClone( + layout?.value ?? layout?.default ?? null, + ); + } + delete owner.data.operationAuthoring!.ancillaryBindings; + delete selection.appliedPairSha256; + owner.data.operationAuthoring!.ancillaryParent = selection; + const next = { + nodes: unpacked.graph.nodes.filter((node) => !ids.has(node.id)), + edges: unpacked.graph.edges.filter((edge) => !ids.has(edge.source) && !ids.has(edge.target)), + }; + return groups.restoreVisualOperationGroups(next, unpacked); +} + +/** An explicit new Preview reuses the original request after an untouched Apply, + * or captures later user edits. It never recursively enhances its own output. */ +export async function planRefreshPromptEnhancementRequest( + graph: OperationGraph, + ownerId: string, + recipe: OperationAuthoringRecipe, + childId: string, +): Promise { + const context = await editableContext(graph, ownerId); + const { owner, selection, unpacked } = context; + const child = selectedChild(selection, recipe, childId); + const binding = bindingFor(owner, child); + const request = unpacked.graph.nodes.find((node) => node.id === binding.roleNodes[child.bindings.request.role]); + if (!request) invalidAncillary('the original enhancement request is unavailable.'); + let pair = authoredPair(unpacked.graph, owner.id, child); + if (selection.appliedPairSha256 && (await promptEnhancementPairHash(pair)) === selection.appliedPairSha256) { + const prompt = request.data.params[child.bindings.request.promptField]; + const layout = request.data.params[child.bindings.request.layoutField]; + const value = prompt?.value ?? prompt?.default; + if (typeof value !== 'string' || !layout) invalidAncillary('the original request is no longer available.'); + pair = { prompt: value, layout: structuredClone(layout.value ?? layout.default ?? null) }; + owner.data.params[child.bindings.owner.promptField]!.value = pair.prompt; + owner.data.params[child.bindings.owner.layoutField]!.value = structuredClone(pair.layout); + } + const { parseLayoutConditioning } = await import('./layoutConditioning'); + const layout = parseLayoutConditioning(pair.layout); + assertDeclaredLayout(child, pair.layout); + if (layout?.regions.some((region) => 'source' in region || ('action' in region && region.action !== 'place'))) + invalidAncillary('source-region and removal enhancement are unsupported; keep the raw prompt path.'); + request.data.params[child.bindings.request.promptField]!.value = pair.prompt; + request.data.params[child.bindings.request.layoutField]!.value = structuredClone(pair.layout); + delete selection.appliedPairSha256; + owner.data.operationAuthoring!.ancillaryParent = selection; + return restoreEnhancementGroup(context, unpacked.graph, binding); +} diff --git a/src/studio/promptEnhancementParent.ts b/src/studio/promptEnhancementParent.ts new file mode 100644 index 00000000..b7be5af4 --- /dev/null +++ b/src/studio/promptEnhancementParent.ts @@ -0,0 +1,112 @@ +import type { AncillaryParentIdentity } from './ancillaryBindings'; +import { invalidAncillary } from './ancillaryBindings'; + +/** Saved editing context only. Fresh backend metadata must validate every use. */ +export type PromptEnhancementParent = { + schemaVersion: 1; + parent: AncillaryParentIdentity & { authoringContentHash: string }; + parentRoleNodes: Record; + /** Fingerprint only; original text stays in the actual proposal request node. */ + appliedPairSha256?: `sha256:${string}`; +}; + +export const PARENT_KEYS = [ + 'authoringRecipeId', + 'baseSpecId', + 'baseSpecContentHash', + 'executionProfileId', + 'pipelineClass', + 'task', + 'authoringContentHash', +] as const; +const ID = /^[A-Za-z0-9][A-Za-z0-9._:-]{0,127}$/u; + +function closed(value: unknown, keys: readonly string[]) { + if (!value || typeof value !== 'object' || Array.isArray(value)) + invalidAncillary('prompt enhancement context must be an object.'); + const prototype = Object.getPrototypeOf(value); + const own = Reflect.ownKeys(value); + if ( + (prototype !== Object.prototype && prototype !== null) || + own.length !== keys.length || + own.some((key) => typeof key !== 'string' || !keys.includes(key)) + ) + invalidAncillary('prompt enhancement context has unknown or missing fields.'); + for (const key of keys) { + const property = Object.getOwnPropertyDescriptor(value, key); + if (!property?.enumerable || !('value' in property)) + invalidAncillary('prompt enhancement context requires own data fields.'); + } + return value as Record; +} + +function nodeId(value: unknown) { + if ( + typeof value !== 'string' || + !value || + value.length > 512 || + Array.from(value).some( + (character) => character.charCodeAt(0) < 32 || (character.charCodeAt(0) >= 127 && character.charCodeAt(0) <= 159), + ) + ) + invalidAncillary('invalid prompt enhancement node identity.'); + for (let index = 0; index < value.length; index++) { + const code = value.charCodeAt(index); + if (code >= 0xd800 && code <= 0xdbff) { + const next = value.charCodeAt(++index); + if (!(next >= 0xdc00 && next <= 0xdfff)) invalidAncillary('invalid node identity Unicode.'); + } else if (code >= 0xdc00 && code <= 0xdfff) invalidAncillary('invalid node identity Unicode.'); + } + if (new TextEncoder().encode(value).byteLength > 512) invalidAncillary('node identity exceeds its byte limit.'); + return value; +} + +export function parsePromptEnhancementParent(value: unknown): PromptEnhancementParent { + const applied = Boolean( + value && typeof value === 'object' && Object.prototype.hasOwnProperty.call(value, 'appliedPairSha256'), + ); + const item = closed(value, ['schemaVersion', 'parent', 'parentRoleNodes', ...(applied ? ['appliedPairSha256'] : [])]); + if (item.schemaVersion !== 1) invalidAncillary('unsupported prompt enhancement context.'); + const parent = closed(item.parent, PARENT_KEYS); + for (const key of PARENT_KEYS) + if (typeof parent[key] !== 'string' || !ID.test(parent[key])) invalidAncillary('invalid parent selection.'); + if ( + !/^studio-spec-v1-[0-9a-f]{8}$/u.test(parent.baseSpecContentHash as string) || + !/^studio-authoring-v1-[0-9a-f]{8}$/u.test(parent.authoringContentHash as string) + ) + invalidAncillary('invalid parent content fingerprint.'); + const roles = item.parentRoleNodes; + if (!roles || typeof roles !== 'object' || Array.isArray(roles)) invalidAncillary('invalid parent role map.'); + const keys = Reflect.ownKeys(roles); + if (!keys.length || keys.length > 64) invalidAncillary('invalid parent role count.'); + closed( + roles, + keys.filter((key): key is string => typeof key === 'string'), + ); + const ids = new Set(); + for (const key of keys) { + if (typeof key !== 'string' || !ID.test(key)) invalidAncillary('invalid parent role identity.'); + const id = nodeId((roles as Record)[key]); + if (ids.has(id)) invalidAncillary('duplicate parent node identity.'); + ids.add(id); + } + if (applied && (typeof item.appliedPairSha256 !== 'string' || !/^sha256:[0-9a-f]{64}$/u.test(item.appliedPairSha256))) + invalidAncillary('invalid applied prompt fingerprint.'); + return structuredClone(item) as PromptEnhancementParent; +} + +/** A malformed saved offer is never silently treated as an unsupported model. */ +export function promptEnhancementParentFromHint(value: unknown): PromptEnhancementParent | undefined { + if (!value || typeof value !== 'object' || !('ancillaryParent' in value)) return undefined; + if (Array.isArray(value)) invalidAncillary('invalid prompt enhancement hint.'); + const descriptor = Object.getOwnPropertyDescriptor(value, 'ancillaryParent'); + if (!descriptor?.enumerable || !('value' in descriptor)) invalidAncillary('invalid prompt enhancement data field.'); + return parsePromptEnhancementParent(descriptor.value); +} + +export function remapPromptEnhancementParent(value: PromptEnhancementParent, remap: (id: string) => string) { + return parsePromptEnhancementParent({ + ...value, + parentRoleNodes: Object.fromEntries(Object.entries(value.parentRoleNodes).map(([role, id]) => [role, remap(id)])), + }); +} diff --git a/src/studio/promptEnhancementPreview.ts b/src/studio/promptEnhancementPreview.ts new file mode 100644 index 00000000..6386cc23 --- /dev/null +++ b/src/studio/promptEnhancementPreview.ts @@ -0,0 +1,661 @@ +import { useFlowStore, expandFlowExecutionGraph, flowExecutionScopeSourceKey } from '../stores/useFlowStore'; +import { useNodesStore } from '../stores/useNodeStore'; +import { useWebsocketStore } from '../stores/useWebsocketStore'; +import { isTerminalTaskStatus, useTaskStore } from '../stores/useTaskStore'; +import { + captureWorkflowOperationContext, + assertWorkflowOperationContext, + type WorkflowOperationContext, +} from '../stores/useStudioStore'; +import { canonicalBlockStringifyV2 } from './blockSchemaV2'; +import { operationGraphSignature, commitOperationGraph } from '../workflow/operationGraphTransaction'; +import { requestOperationStarter } from '../workflow/operationStarterRequest'; +import { prepareExecutionScope } from '../workflow/prepareExecutionScope'; +import { invalidAncillary, type AncillaryOperation } from './ancillaryOperations'; +import type { OperationAuthoringRecipe } from './operationAuthoringRecipe'; +import { + promptEnhancementParentFromHint, + planEnablePromptEnhancement, + planDisablePromptEnhancement, + planRefreshPromptEnhancementRequest, +} from './promptEnhancementAuthoring'; +import { coordinateGraphRun, type CoordinatedGraphRunResult } from './runCoordinator'; +import { validateCurrentRun } from './runReadiness'; +import { recomputeNodeOutputs } from '../utils/serverActions'; +import { RequestError, requestJson, requestWithResponse } from '../utils/requestJson'; +import config from '../../app.config'; +import { + MAX_ENHANCEMENT_ENVELOPE_BYTES, + parsePromptEnhancementEnvelopeJson, + parsePromptEnhancementSummary, + parsePromptEnhancementProducerObservation, + verifyPromptEnhancementSummaryBindings, + type PromptEnhancementSummary, + type NativeEnhancementModelReceipt, + type PromptEnhancementControls, + type EnhancementReference, + type PromptEnhancementMode, +} from './promptEnhancementSummary'; +import { parseLayoutConditioning } from './layoutConditioning'; +import { planApplyPromptEnhancement, promptEnhancementPairHash } from './promptEnhancementAuthoring'; + +function currentSourceKey() { + const { nodes, edges } = useFlowStore.getState(); + return flowExecutionScopeSourceKey(nodes, edges); +} + +export function promptEnhancementOwner( + ownerId: string, + flow: Pick, 'nodes' | 'edges'> = useFlowStore.getState(), +) { + const native = expandFlowExecutionGraph(flow.nodes, flow.edges); + const owner = native.nodes.find((node) => node.id === ownerId); + const selection = promptEnhancementParentFromHint(owner?.data.operationAuthoring); + if (!owner || !selection) invalidAncillary('the selected Prompt/Inputs stage is no longer current.'); + return { owner, selection, native }; +} + +/** A normal metadata request can refuse private/unavailable profiles. Nothing + * mutates or prepares until both exact selected responses have validated. */ +async function resolveSelection(ownerId: string, signal?: AbortSignal) { + const context = { ...captureWorkflowOperationContext() }; + const sourceKey = currentSourceKey(); + const graph = useFlowStore.getState().toObject(); + const signature = operationGraphSignature(graph); + const { selection, native } = promptEnhancementOwner(ownerId); + const identity = selection.parent; + const operations = useNodesStore.getState().operationContracts; + const operationsKey = canonicalBlockStringifyV2( + operations.filter( + (operation) => operation.pipelineClass === identity.pipelineClass && operation.task === identity.task, + ), + ); + const check = () => { + signal?.throwIfAborted(); + assertWorkflowOperationContext(context); + if ( + currentSourceKey() !== sourceKey || + operationsKey !== + canonicalBlockStringifyV2( + useNodesStore + .getState() + .operationContracts.filter( + (operation) => operation.pipelineClass === identity.pipelineClass && operation.task === identity.task, + ), + ) + ) + invalidAncillary('the workflow or selected metadata changed; request a fresh enhancement.'); + }; + const first = await requestOperationStarter( + identity.pipelineClass, + identity.task, + operations, + signal, + identity.executionProfileId, + identity.authoringRecipeId, + ); + check(); + const recipe = first.authoring; + if ( + !recipe || + recipe.contentHash !== identity.authoringContentHash || + recipe.baseSpecId !== identity.baseSpecId || + recipe.baseSpecContentHash !== identity.baseSpecContentHash || + recipe.roles.length !== Object.keys(selection.parentRoleNodes).length + ) + invalidAncillary('the saved enhancement selection is stale; refresh the declared workflow.'); + for (const [role, key] of recipe.roles) { + const node = native.nodes.find((node) => node.id === selection.parentRoleNodes[role]); + if (!node || `${node.data.module}.${node.data.action}` !== key) + invalidAncillary('the current parent roles differ from the selected declaration.'); + } + const literal = (role: string, field: string) => { + const id = selection.parentRoleNodes[role]; + const node = native.nodes.find((node) => node.id === id); + const parameter = node?.data.params[field]; + if (!parameter || native.edges.some((edge) => edge.target === id && edge.targetHandle === field)) + invalidAncillary('selected model identity must remain an authored literal.'); + return parameter.value ?? parameter.default; + }; + const repositories = recipe.bindings.filter(([, , source]) => source === 'artifact'); + if (repositories.length !== 1) invalidAncillary('the parent has no unique selected model artifact.'); + const [role, field] = repositories[0]!; + const artifact = literal(role, field); + if ( + !artifact || + typeof artifact !== 'object' || + Array.isArray(artifact) || + !('source' in artifact) || + artifact.source !== 'hub' || + !('value' in artifact) || + typeof artifact.value !== 'string' + ) + invalidAncillary('the selected parent requires its immutable Hub artifact.'); + const selected = await requestOperationStarter( + identity.pipelineClass, + identity.task, + operations, + signal, + identity.executionProfileId, + identity.authoringRecipeId, + artifact.value, + ); + check(); + if (!selected.authoring || canonicalBlockStringifyV2(selected.authoring) !== canonicalBlockStringifyV2(recipe)) + invalidAncillary('the selected repository resolved a different enhancement declaration.'); + for (const [role, field, source] of recipe.bindings) { + if (source !== 'pipelineClass' && source !== 'defaultRevision' && source !== 'executionProfileId') continue; + const expected = + source === 'pipelineClass' + ? identity.pipelineClass + : source === 'executionProfileId' + ? identity.executionProfileId + : selected.nodes + .filter(({ operation }) => operation.nodeKey === recipe.roles.find(([name]) => name === role)?.[1]) + .map(({ node }) => node.params[field]?.value ?? node.params[field]?.default); + if ( + source === 'defaultRevision' + ? !Array.isArray(expected) || expected.length !== 1 || literal(role, field) !== expected[0] + : literal(role, field) !== expected + ) + invalidAncillary('the selected parent model or immutable revision changed.'); + } + const keys = new Set([ + ...recipe.roles.map(([, key]) => key), + ...(recipe.ancillaryOperations ?? []).flatMap((child) => child.roles.map(([, key]) => key)), + ]); + const registry = Object.fromEntries( + [...keys].map((key) => { + const node = useNodesStore.getState().nodesRegistry[key]; + if (!node) invalidAncillary('refresh the current node registry before enabling enhancement.'); + return [key, structuredClone(node)]; + }), + ); + const registryKey = canonicalBlockStringifyV2(registry); + const assertCurrent = () => { + check(); + if ( + registryKey !== + canonicalBlockStringifyV2( + Object.fromEntries([...keys].map((key) => [key, useNodesStore.getState().nodesRegistry[key] ?? null])), + ) + ) + invalidAncillary('the current enhancement controls changed; refresh metadata.'); + }; + const { captureCurrentAncillaryParentDefinition } = await import('../workflow/ancillaryExecutionScope'); + assertCurrent(); + const definition = captureCurrentAncillaryParentDefinition(selected, selection, assertCurrent); + return { graph, signature, context, ownerId, selection, recipe, registry, definition, assertCurrent }; +} + +function chooseChild(recipe: OperationAuthoringRecipe, childId?: string): AncillaryOperation { + const children = recipe.ancillaryOperations ?? []; + const child = childId + ? children.find((child) => child.id === childId) + : children.length === 1 + ? children[0] + : undefined; + if (!child) invalidAncillary('select one current backend-declared enhancement.'); + return child; +} + +export async function enablePromptEnhancement(ownerId: string, childId?: string, signal?: AbortSignal) { + const selected = await resolveSelection(ownerId, signal); + const child = chooseChild(selected.recipe, childId); + const graph = await planEnablePromptEnhancement( + selected.graph, + ownerId, + selected.recipe, + child.id, + selected.registry, + selected.definition, + ); + selected.assertCurrent(); + commitOperationGraph(graph, selected.context, selected.signature, 'Enable prompt enhancement'); + return structuredClone(child); +} + +/** Presentation metadata only; actions always resolve it again before use. */ +export async function currentPromptEnhancementDeclaration(ownerId: string, childId: string, signal?: AbortSignal) { + const selected = await resolveSelection(ownerId, signal); + const child = chooseChild(selected.recipe, childId); + selected.assertCurrent(); + return structuredClone(child); +} + +export async function disablePromptEnhancement(ownerId: string, childId: string, signal?: AbortSignal) { + const selected = await resolveSelection(ownerId, signal); + const child = chooseChild(selected.recipe, childId); + const graph = await planDisablePromptEnhancement(selected.graph, ownerId, selected.recipe, child.id); + selected.assertCurrent(); + commitOperationGraph(graph, selected.context, selected.signature, 'Disable prompt enhancement'); +} + +/** Local task handle only; server dispatch/owner policy still decides admission. */ +export type PromptEnhancementPreviewRun = { + taskId: string; + ownerId: string; + childId: string; + target: { nodeId: string; outputField: string }; +}; +type PreviewRunState = { + context: WorkflowOperationContext; + sourceKey: string; + result: CoordinatedGraphRunResult; + declaration: AncillaryOperation; + runtime: { instance: string; source: string }; +}; +const previewRuns = new WeakMap(); + +export async function startPromptEnhancementPreview(ownerId: string, childId: string, regenerate = false) { + const socket = useWebsocketStore.getState(); + if (!socket.isConnected || !socket.sid) invalidAncillary('connect to the local worker before Preview.'); + const assertIdleSession = () => { + const current = useWebsocketStore.getState(); + if (!current.isConnected || current.sid !== socket.sid) + invalidAncillary('the local worker connection changed; request a new Preview.'); + const task = useTaskStore.getState().currentTask; + if (task && !isTerminalTaskStatus(task.status)) invalidAncillary('wait for the current run before Preview.'); + }; + assertIdleSession(); + const selected = await resolveSelection(ownerId); + const child = chooseChild(selected.recipe, childId); + const runtime = await currentRuntime(); + selected.assertCurrent(); + assertIdleSession(); + const graph = await planRefreshPromptEnhancementRequest(selected.graph, ownerId, selected.recipe, childId); + selected.assertCurrent(); + assertIdleSession(); + if (operationGraphSignature(graph) !== selected.signature) + commitOperationGraph(graph, selected.context, selected.signature, 'Prepare prompt enhancement request'); + const { owner } = promptEnhancementOwner(ownerId); + const bindings = owner.data.operationAuthoring?.ancillaryBindings; + const binding = bindings?.length === 1 ? bindings[0] : undefined; + if (!binding || binding.contractId !== child.id || binding.contentHash !== child.contentHash) + invalidAncillary('enable the current enhancement before Preview.'); + const target = { nodeId: binding.roleNodes[child.bindings.output.role]!, outputField: child.bindings.output.field }; + const context = { ...captureWorkflowOperationContext() }; + const scope = await prepareExecutionScope({ previewTarget: target, workflowContext: context }); + if (!scope) invalidAncillary('Preview requires a current declared execution scope.'); + assertIdleSession(); + const validation = validateCurrentRun({ + sid: socket.sid, + isConnected: true, + includeStudio: false, + executionScope: scope, + }); + if (!validation.canRun) + throw new Error(validation.blocking[0]?.message ?? 'This enhancement is not ready for Preview.'); + if (regenerate) { + const source = currentSourceKey(); + await recomputeNodeOutputs([target.nodeId]); + assertWorkflowOperationContext(context); + if (source !== currentSourceKey()) invalidAncillary('the workflow changed while preparing Regenerate.'); + assertIdleSession(); + } + const result = await coordinateGraphRun({ + sid: socket.sid, + previewTarget: target, + workflowContext: context, + executionScope: scope, + }); + if (typeof result.response.task_id !== 'string' || !result.response.task_id) + invalidAncillary('Preview returned no owned task identity.'); + const run = Object.freeze({ taskId: result.response.task_id, ownerId, childId, target }); + previewRuns.set(run, { + context: { ...captureWorkflowOperationContext() }, + sourceKey: currentSourceKey(), + result, + declaration: structuredClone(child), + runtime, + }); + return run; +} + +function record(value: unknown, keys?: readonly string[]) { + if (!value || typeof value !== 'object' || Array.isArray(value)) invalidAncillary('invalid Preview observation.'); + const item = value as Record; + if ( + keys && + (Object.keys(item).length !== keys.length || keys.some((key) => !Object.prototype.hasOwnProperty.call(item, key))) + ) + invalidAncillary('unknown or missing Preview observation fields.'); + return item; +} + +function equal(actual: unknown, expected: unknown, label: string) { + if (canonicalBlockStringifyV2(actual) !== canonicalBlockStringifyV2(expected)) + invalidAncillary(`${label} changed; request a fresh Preview.`); +} + +async function currentRuntime() { + return requestJson(`${config.serverAddress}/runtime/status`, { + parse: (value) => { + const item = record(value), + source = record(item.backend_source); + if ( + typeof item.instance !== 'string' || + !item.instance || + item.instance.length > 128 || + typeof source.fingerprint !== 'string' || + !/^sha256:backend-source-v1:[0-9a-f]{64}$/u.test(source.fingerprint) + ) + invalidAncillary('current worker/source observations are unavailable.'); + return { instance: item.instance, source: source.fingerprint }; + }, + }); +} + +function assertRunCurrent(run: PromptEnhancementPreviewRun): PreviewRunState { + const state = previewRuns.get(run); + if (!state) invalidAncillary('request a new Preview in this document.'); + assertWorkflowOperationContext(state.context); + if (state.sourceKey !== currentSourceKey()) invalidAncillary('the workflow changed after Preview.'); + return state; +} + +async function terminalTask(taskId: string) { + return requestJson(`${config.serverAddress}/runs/${encodeURIComponent(taskId)}`, { + parse: (value) => { + const item = record(value), + task = record(item.task); + if ( + task.task_id !== taskId || + task.status !== 'completed' || + !Number.isSafeInteger(task.attempt_index) || + (task.attempt_index as number) < 0 || + (task.attempt_index as number) > 1000 + ) + invalidAncillary('the exact Preview task has not completed successfully.'); + return task; + }, + }); +} + +/** Bound bytes while reading, before .text()/JSON.parse could allocate an + * arbitrarily large response. Aborting a read never stops a running model. */ +async function readCacheEnvelope(target: PromptEnhancementPreviewRun['target'], signal?: AbortSignal) { + const url = `${config.serverAddress}/cache/${encodeURIComponent(target.nodeId)}/${encodeURIComponent(target.outputField)}?with_metadata=1`; + return requestWithResponse(url, { signal, timeoutMs: 120000, cache: 'no-store' }, async (response) => { + const invalidBody = (message: string, cause?: unknown): never => { + throw new RequestError(message, { kind: 'invalid_payload', status: response.status, url, cause }); + }; + if (!response.ok) { + await response.body?.cancel().catch(() => undefined); + throw new RequestError( + `Could not read Preview metadata (${response.status}). Regenerate after updating the backend.`, + { kind: 'http', status: response.status, url }, + ); + } + const length = response.headers.get('Content-Length'); + if (length !== null && (!/^\d+$/u.test(length) || Number(length) > MAX_ENHANCEMENT_ENVELOPE_BYTES)) { + await response.body?.cancel().catch(() => undefined); + invalidBody('Preview metadata response exceeds its byte limit.'); + } + const reader = response.body?.getReader(); + if (!reader) return invalidBody('Preview metadata response has no readable body.'); + const chunks: Uint8Array[] = []; + let bytes = 0; + try { + for (;;) { + const next = await reader.read(); + if (next.done) break; + bytes += next.value.byteLength; + if (bytes > MAX_ENHANCEMENT_ENVELOPE_BYTES) invalidBody('Preview metadata response exceeds its byte limit.'); + chunks.push(next.value); + } + } catch (error) { + await reader.cancel().catch(() => undefined); + throw error; + } finally { + reader.releaseLock(); + } + const body = new Uint8Array(bytes); + let offset = 0; + for (const chunk of chunks) { + body.set(chunk, offset); + offset += chunk.byteLength; + } + try { + return new TextDecoder('utf-8', { fatal: true }).decode(body); + } catch (error) { + return invalidBody('Preview metadata response is not valid UTF-8.', error); + } + }); +} + +async function sha256(text: string) { + const digest = await crypto.subtle.digest('SHA-256', new TextEncoder().encode(text)); + return `sha256:${Array.from(new Uint8Array(digest), (byte) => byte.toString(16).padStart(2, '0')).join('')}`; +} + +export type VerifiedPromptEnhancementPreview = Readonly<{ readonly verifiedPreview: unique symbol }>; +type VerifiedState = { run: PromptEnhancementPreviewRun; summary: PromptEnhancementSummary; originalPairHash: string }; +const verifiedPreviews = new WeakMap(); + +function literal(state: PreviewRunState, role: string, field: string) { + const purpose = state.result.submittedGraph.runtimeHints?.executionPurpose; + const binding = purpose?.kind === 'explicit_preview' && purpose.bindings[0]; + const node = binding ? state.result.submittedGraph.nodes[binding.roleNodes[role]!] : undefined; + const param = node?.params[field]; + if (!param || param.sourceId || param.sourceKey || !Object.prototype.hasOwnProperty.call(param, 'value')) + invalidAncillary('Preview controls must be declared authored literals.'); + return param.value; +} + +/** Read only an owned terminal task, independently minted cache observations, + * current declaration and unchanged document. Parsing alone cannot mint this. */ +export async function finishPromptEnhancementPreview(run: PromptEnhancementPreviewRun, signal?: AbortSignal) { + const state = assertRunCurrent(run); + const selected = await resolveSelection(run.ownerId, signal); + const child = chooseChild(selected.recipe, run.childId); + equal(child, state.declaration, 'selected enhancement declaration'); + const verification = child.verification; + if (!verification) invalidAncillary('this declaration has no independently bound Preview verification metadata.'); + const task = await terminalTask(run.taskId); + assertRunCurrent(run); + const wire = await readCacheEnvelope(run.target, signal); + const envelope = record(parsePromptEnhancementEnvelopeJson(wire), ['value', 'observation']); + if (typeof envelope.value !== 'string') invalidAncillary('the proposal output is not a declared string.'); + const summary = parsePromptEnhancementSummary(envelope.value); + if (!verification.supportedPromptModes.includes(summary.proposal.mode)) + invalidAncillary('this declaration does not support the returned prompt mode.'); + const observation = record(envelope.observation, [ + 'schemaVersion', + 'summarySha256', + 'producer', + 'dispatch', + 'request', + 'consumedInput', + ]); + if (observation.schemaVersion !== 1 || new TextEncoder().encode(JSON.stringify(observation)).byteLength > 32768) + invalidAncillary('the Preview observation is unsupported or exceeds its byte limit.'); + if (observation.summarySha256 !== (await sha256(envelope.value))) + invalidAncillary('the cached proposal bytes changed.'); + const producer = parsePromptEnhancementProducerObservation(observation.producer); + const dispatch = record(observation.dispatch, [ + 'taskId', + 'attemptIndex', + 'node', + 'sid', + 'workerInstance', + 'backendSourceFingerprint', + 'graphHash', + 'uiContext', + 'status', + ]); + if (dispatch.status !== 'succeeded' && dispatch.status !== 'cached') + invalidAncillary('the proposal node did not succeed.'); + const { status: dispatchStatus, ...dispatchValues } = dispatch; + const dispatched = parsePromptEnhancementProducerObservation({ ...dispatchValues, recipe: null }); + const hints = state.result.submittedGraph.runtimeHints; + equal( + dispatched.node, + { id: run.target.nodeId, module: 'modules.HuggingFaceTransformers', action: 'GenerateImageVideoText' }, + 'proposal node', + ); + equal(dispatched.taskId, run.taskId, 'Preview task'); + equal(dispatched.attemptIndex, task.attempt_index, 'Preview attempt'); + equal(dispatched.sid, state.result.submittedGraph.sid, 'Preview session'); + equal( + dispatched.uiContext, + { + clientRunId: hints?.clientRunId ?? null, + runInputHash: hints?.runInputHash ?? null, + workflowTabId: hints?.workflowTabId ?? null, + workflowCanvasEpoch: hints?.workflowCanvasEpoch ?? null, + workflowFormEpoch: null, + }, + 'Preview document correlation', + ); + const now = await currentRuntime(); + equal(now, state.runtime, 'worker or backend source'); + for (const actor of [producer, dispatched]) { + equal(actor.workerInstance, now.instance, 'producer worker'); + equal(actor.backendSourceFingerprint, now.source, 'producer source'); + equal(actor.node, dispatched.node, 'cached native producer'); + } + equal(producer.graphHash, dispatched.graphHash, 'cached graph semantics'); + if (dispatchStatus === 'succeeded' && producer.taskId !== run.taskId) + invalidAncillary('a freshly computed proposal cannot claim a different producer task.'); + const originalTask = producer.taskId === run.taskId ? task : await terminalTask(producer.taskId); + equal(producer.attemptIndex, originalTask.attempt_index, 'original producer attempt'); + equal(producer.sid, originalTask.sid ?? null, 'original producer session'); + equal( + producer.uiContext, + { + clientRunId: originalTask.client_run_id ?? null, + runInputHash: originalTask.run_input_hash ?? null, + workflowTabId: originalTask.workflow_tab_id ?? null, + workflowCanvasEpoch: originalTask.workflow_canvas_epoch ?? null, + workflowFormEpoch: originalTask.workflow_form_epoch ?? null, + }, + 'original producer correlation', + ); + equal(producer.uiContext.runInputHash, hints?.runInputHash ?? null, 'cached request semantics'); + equal(producer.uiContext.workflowTabId, hints?.workflowTabId ?? null, 'cached workflow'); + const { authoredPromptSha256, authoredLayoutKind, authoredLayoutSha256, controls } = summary.request; + equal( + record(observation.request, ['authoredPromptSha256', 'authoredLayoutKind', 'authoredLayoutSha256', 'controls']), + { authoredPromptSha256, authoredLayoutKind, authoredLayoutSha256, controls }, + 'observed authored request', + ); + const consumed = record(observation.consumedInput, [ + 'schemaVersion', + 'references', + 'processedImageGrid', + 'fingerprints', + ]); + equal( + consumed, + { + schemaVersion: 1, + references: summary.consumedInput.references, + processedImageGrid: summary.consumedInput.processedImageGrid, + fingerprints: summary.consumedInput.fingerprints, + }, + 'observed consumed input', + ); + const runtime = verification.runtimeInputs, + request = verification.requestInputs; + const source = literal(state, runtime.role, runtime.modelField); + equal(source, { source: 'hub', value: verification.modelReceipt.source.repository }, 'selected proposal model'); + equal( + literal(state, runtime.role, runtime.revisionField), + verification.modelReceipt.source.revision, + 'selected proposal pin', + ); + const dtype = literal(state, runtime.role, runtime.dtypeField), + device = literal(state, runtime.role, runtime.deviceField); + if ((dtype !== 'float32' && dtype !== 'float16' && dtype !== 'bfloat16') || typeof device !== 'string') + invalidAncillary('choose explicit proposal dtype/device controls before Preview.'); + const quantization = verification.quantizationRecipes.find( + (recipe) => recipe.mode === literal(state, runtime.role, runtime.quantizationField), + ); + if (!quantization) invalidAncillary('the selected proposal quantization recipe is not declared.'); + const modelReceipt: Omit = { + ...verification.modelReceipt, + runtime: { ...verification.modelReceipt.runtime, dtype, device, quantization }, + }; + equal(literal(state, request.role, request.operationField), 'enhance_prompt', 'selected text operation'); + const expectedControls = { + max_new_tokens: literal(state, request.role, request.maxNewTokensField), + min_new_tokens: literal(state, request.role, request.minNewTokensField), + // The closed consumed-input contract fixes this native generation option; + // it is not an independently authored registry control. + return_dict_in_generate: false, + ...Object.fromEntries( + ['do_sample', 'num_beams', 'repetition_penalty', 'use_chat_template'].map((field) => [ + field, + literal(state, request.role, field), + ]), + ), + } as PromptEnhancementControls; + const authoredPrompt = literal(state, child.bindings.request.role, child.bindings.request.promptField); + if (typeof authoredPrompt !== 'string') invalidAncillary('the actual authored request is no longer text.'); + const authoredLayout = parseLayoutConditioning( + literal(state, child.bindings.request.role, child.bindings.request.layoutField), + ); + const references = consumed.references as EnhancementReference[]; + if (!child.bindings.owner.referenceSource && references.length) + invalidAncillary('text-only enhancement has unexpected references.'); + const mode = + `${references.length ? 'i2i' : 't2i'}${authoredLayout?.regions.length ? '_bbox' : ''}` as PromptEnhancementMode; + const verified = await verifyPromptEnhancementSummaryBindings(envelope.value, { + producer, + adapter: verification.adapter, + modelReceipt, + authoredPrompt, + authoredLayout, + controls: expectedControls, + systemPromptSha256: verification.systemPromptSha256ByMode[mode], + references, + }); + selected.assertCurrent(); + assertRunCurrent(run); + const ticket = Object.freeze({}) as VerifiedPromptEnhancementPreview; + verifiedPreviews.set(ticket, { + run, + summary: verified, + originalPairHash: await promptEnhancementPairHash({ prompt: authoredPrompt, layout: authoredLayout }), + }); + return ticket; +} + +export function promptEnhancementPreviewDetails(ticket: VerifiedPromptEnhancementPreview) { + const state = verifiedPreviews.get(ticket); + if (!state) invalidAncillary('request a new verified Preview.'); + assertRunCurrent(state.run); + return structuredClone(state.summary); +} + +export async function applyPromptEnhancementPreview(ticket: VerifiedPromptEnhancementPreview) { + const state = verifiedPreviews.get(ticket); + if (!state) invalidAncillary('request a new verified Preview.'); + assertRunCurrent(state.run); + const selected = await resolveSelection(state.run.ownerId); + const child = chooseChild(selected.recipe, state.run.childId); + equal(child, previewRuns.get(state.run)!.declaration, 'selected enhancement declaration'); + const proposal = state.summary.proposal; + if (!proposal.applicationAllowed) + invalidAncillary(proposal.applicationBlockedReason ?? 'this proposal cannot be applied.'); + const request = child.bindings.request; + const originalLayout = parseLayoutConditioning( + literal(previewRuns.get(state.run)!, request.role, request.layoutField), + ); + const pair = proposal.structuredProposal + ? { prompt: proposal.structuredProposal.caption, layout: proposal.structuredProposal.layoutConditioning } + : { prompt: proposal.text, layout: originalLayout }; + const graph = await planApplyPromptEnhancement( + selected.graph, + state.run.ownerId, + selected.recipe, + child.id, + pair, + state.originalPairHash, + ); + selected.assertCurrent(); + assertRunCurrent(state.run); + commitOperationGraph(graph, selected.context, selected.signature, 'Apply prompt enhancement'); + verifiedPreviews.delete(ticket); +} diff --git a/src/studio/promptEnhancementSummary.ts b/src/studio/promptEnhancementSummary.ts new file mode 100644 index 00000000..9f874e28 --- /dev/null +++ b/src/studio/promptEnhancementSummary.ts @@ -0,0 +1,849 @@ +import { canonicalBlockStringifyV2 } from './blockSchemaV2'; +import { parseLayoutConditioning, type LayoutConditioning } from './layoutConditioning'; + +/** Transport observations only. Parsing or matching hashes never authorizes Apply. */ +export type PromptEnhancementMode = 't2i' | 'i2i' | 't2i_bbox' | 'i2i_bbox'; +export type SummarySha256 = `sha256:${string}`; +export type PromptEnhancementControls = { + max_new_tokens: number; + min_new_tokens: number; + do_sample: false; + num_beams: 1; + repetition_penalty: 1; + return_dict_in_generate: false; + use_chat_template: true; +}; +export type PromptEnhancementProducer = { + taskId: string; + attemptIndex: number; + node: { id: string; module: 'modules.HuggingFaceTransformers'; action: 'GenerateImageVideoText' }; + sid: string | null; + workerInstance: string; + backendSourceFingerprint: string; + graphHash: string; + recipe: null; + uiContext: { + clientRunId: string | null; + runInputHash: string | null; + workflowTabId: string | null; + workflowCanvasEpoch: number | null; + workflowFormEpoch: number | null; + }; +}; +export type NativeEnhancementModelReceipt = { + schemaVersion: 1; + library: 'transformers'; + task: 'image-video-to-text'; + source: { kind: 'hub'; repository: string; revision: string }; + loader: { preprocessorAutoClass: 'AutoProcessor'; modelAutoClass: 'AutoModelForImageTextToText' }; + security: { localFilesOnly: true; trustRemoteCode: false; safetensorsOnly: true; hostedInference: false }; + runtime: { + transformersVersion: string; + dtype: 'float32' | 'float16' | 'bfloat16'; + device: string; + preprocessorClass: string; + modelClass: string; + modelType: string | null; + architectures: string[]; + quantization: + | { mode: 'none' } + | { + mode: 'bnb_4bit'; + quantType: 'nf4'; + doubleQuant: true; + computeDtype: 'bfloat16'; + skipModules: ['lm_head', 'model.visual']; + }; + }; + receiptDigest: SummarySha256; +}; +export type EnhancementReference = { index: number; mode: 'RGB'; width: number; height: number; sha256: SummarySha256 }; +export type EnhancementConsumedInput = { + schemaVersion: 1; + renderedPrompt: string; + references: EnhancementReference[]; + processedImageGrid: [number, number, number][]; + fingerprints: { + operation: 'enhance_prompt'; + enhancement_max_new_tokens: number; + prompt_adapter_id: string; + system_prompt_mode: PromptEnhancementMode; + system_prompt_sha256: string; + rendered_prompt_sha256: SummarySha256; + rendered_prompt_utf8_bytes: number; + rendered_input_ids_sha256: SummarySha256; + reference_source_sha256: SummarySha256[]; + processed_pixel_sha256?: SummarySha256; + processed_grid_sha256?: SummarySha256; + processed_pixel_shape?: [number, number]; + processed_grid_shape?: [number, 3]; + }; +}; +export type EnhancementTargetRow = + | { id: string; bbox: [number, number, number, number]; desc: string } + | { id: string; from: 'target'; src_bbox: null; tgt_bbox: [number, number, number, number]; desc: string }; +export type EnhancementStructuredProposal = { + schemaVersion: 1; + caption: string; + layoutConditioning: LayoutConditioning; + rawTable: EnhancementTargetRow[]; +}; +type EnhancementCompletion = { + finishReason: 'stop' | 'length'; + inputTokens: number; + generatedTokens: number; + applyRequired: true; + semanticFidelityVerified: false; +}; +export type EnhancementProposal = EnhancementCompletion & + ( + | { + mode: 't2i' | 'i2i'; + text: string; + structuredProposal: null; + applicationAllowed: true; + layoutOutputValidated: null; + applicationBlockedReason: null; + } + | { + mode: 't2i_bbox' | 'i2i_bbox'; + text: null; + structuredProposal: EnhancementStructuredProposal; + applicationAllowed: true; + layoutOutputValidated: true; + applicationBlockedReason: null; + } + | { + mode: 't2i_bbox' | 'i2i_bbox'; + text: null; + structuredProposal: null; + applicationAllowed: false; + layoutOutputValidated: false; + applicationBlockedReason: string; + } + ); +export type PromptEnhancementSummary = { + schemaVersion: 1; + kind: 'prompt-enhancement-proposal'; + producer: PromptEnhancementProducer; + adapter: { id: string; declarationSha256: SummarySha256 }; + request: { + authoredPromptSha256: SummarySha256; + authoredLayoutKind: 'none' | 'object'; + authoredLayoutSha256: SummarySha256 | null; + controls: PromptEnhancementControls; + consumedInputSha256: SummarySha256; + }; + modelReceipt: NativeEnhancementModelReceipt; + consumedInput: EnhancementConsumedInput; + proposal: EnhancementProposal; +}; + +export const MAX_ENHANCEMENT_SUMMARY_BYTES = 2 * 1024 * 1024; +const SHA256 = /^sha256:[0-9a-f]{64}$/u; +const IDENTIFIER = /^[A-Za-z_][A-Za-z0-9_-]{0,255}$/u; +const ADAPTER_ID = /^[a-z][a-z0-9-]{0,127}$/u; +const MODES = ['t2i', 'i2i', 't2i_bbox', 'i2i_bbox'] as const; + +function invalid(detail: string): never { + throw new Error(`Invalid prompt enhancement summary: ${detail}`); +} + +function unicode(value: string) { + for (let index = 0; index < value.length; index++) { + const code = value.charCodeAt(index); + if ((code < 32 && code !== 9 && code !== 10 && code !== 13) || (code >= 0x7f && code <= 0x9f)) + invalid('text contains unsupported controls.'); + if (code >= 0xd800 && code <= 0xdbff) { + const next = value.charCodeAt(++index); + if (!(next >= 0xdc00 && next <= 0xdfff)) invalid('text contains an unpaired surrogate.'); + } else if (code >= 0xdc00 && code <= 0xdfff) invalid('text contains an unpaired surrogate.'); + } + return value; +} + +function utf8(value: string) { + return new TextEncoder().encode(unicode(value)); +} + +function text(value: unknown, maximumBytes: number, maximumCharacters = maximumBytes, human = false): string { + if (typeof value !== 'string') invalid('expected nonempty text.'); + if (value.length > maximumBytes) invalid('text exceeds its limit.'); + let characters = 0; + let present = false; + for (const character of value) { + const code = character.codePointAt(0)!; + characters++; + if (!/\p{White_Space}/u.test(character) && !(code >= 0x1c && code <= 0x1f)) present = true; + if (human && ((code <= 0x1f && code !== 9 && code !== 10 && code !== 13) || (code >= 0x7f && code <= 0x9f))) + invalid('human text contains unsupported controls.'); + } + if (!present) invalid('expected nonempty text.'); + if (utf8(value).byteLength > maximumBytes || characters > maximumCharacters) invalid('text exceeds its limit.'); + return value; +} + +function object(value: unknown, required: readonly string[], optional: readonly string[] = []) { + if (!value || typeof value !== 'object' || Array.isArray(value)) invalid('expected a JSON object.'); + const item = value as Record; + if (Object.keys(item).some((key) => !required.includes(key) && !optional.includes(key))) invalid('unknown keys.'); + if (required.some((key) => !Object.prototype.hasOwnProperty.call(item, key))) invalid('missing keys.'); + return item; +} + +function list(value: unknown, maximum: number): unknown[] { + if (!Array.isArray(value) || value.length > maximum) invalid('invalid collection size.'); + return value; +} + +function integer(value: unknown, minimum: number, maximum: number) { + if (typeof value !== 'number' || !Number.isSafeInteger(value) || value < minimum || value > maximum) + invalid('expected a bounded integer.'); + return value; +} + +function hash(value: unknown): SummarySha256 { + if (typeof value !== 'string' || !SHA256.test(value)) invalid('invalid SHA256.'); + return value as SummarySha256; +} + +function jsonBudget(value: unknown, maximum: number) { + const encoded = JSON.stringify(value); + if (encoded === undefined || utf8(encoded).byteLength > maximum) invalid('JSON sub-budget exceeded.'); +} + +/** Bounded lexical preflight, not a second JSON grammar implementation. + * JSON.parse validates grammar after duplicate decoded keys and depth are checked. */ +function rawJson(value: unknown, maximumBytes = MAX_ENHANCEMENT_SUMMARY_BYTES): unknown { + if (typeof value !== 'string') invalid('expected raw JSON text.'); + if (value.length > maximumBytes || utf8(value).byteLength > maximumBytes) + invalid( + maximumBytes === MAX_ENHANCEMENT_SUMMARY_BYTES ? 'wire exceeds 2 MiB.' : 'envelope exceeds its byte limit.', + ); + // Count only the two historical ensure_ascii/default-separator guards. + // Native producer numeric lexemes stay intact; this does not reconstruct + // Python numeric identity from arbitrarily respelled caller JSON. + let asciiOffset = 0; + const stack: Array<{ + close: string; + keys: Set | null; + pendingKey: string | null; + asciiStart: number; + legacyGuard: boolean; + }> = []; + for (let index = 0; index < value.length; index++) { + const character = value[index]; + if (character === '"') { + let end = index + 1; + for (; end < value.length; end++) { + if (value[end] === '\\') end++; + else if (value[end] === '"') break; + } + if (end >= value.length) invalid('unterminated JSON string.'); + const decoded: unknown = JSON.parse(value.slice(index, end + 1)); + if (typeof decoded !== 'string') invalid('invalid JSON string.'); + unicode(decoded); + asciiOffset += receiptCanonical(decoded).length; + let next = end + 1; + while (/\s/u.test(value[next] ?? '') && next < value.length) next++; + const scope = stack[stack.length - 1]; + if (scope?.keys && value[next] === ':') { + if (scope.keys.has(decoded)) invalid('duplicate JSON key.'); + scope.keys.add(decoded); + scope.pendingKey = decoded; + if (scope.keys.size > 32) invalid('object exceeds 32 keys.'); + } + index = end; + } else if (character === '{' || character === '[') { + const parent = stack[stack.length - 1]; + const name = parent?.pendingKey; + if (parent) parent.pendingKey = null; + const asciiStart = asciiOffset++; + stack.push({ + close: character === '{' ? '}' : ']', + keys: character === '{' ? new Set() : null, + pendingKey: null, + asciiStart, + legacyGuard: character === '{' && (name === 'consumedInput' || name === 'structuredProposal'), + }); + if (stack.length > 17) invalid('JSON depth exceeds 16.'); + } else if (character === '}' || character === ']') { + asciiOffset++; + const scope = stack.pop(); + if (scope?.close !== character) invalid('unbalanced JSON delimiters.'); + if (scope.legacyGuard && asciiOffset - scope.asciiStart > 262144) + invalid('existing ASCII projection guard exceeded.'); + } else if (character === ',' || character === ':') asciiOffset += 2; + else if (character !== ' ' && character !== '\t' && character !== '\r' && character !== '\n') asciiOffset++; + } + if (stack.length) invalid('unbalanced JSON delimiters.'); + const parsed: unknown = JSON.parse(value); + const pending = [{ value: parsed, depth: 0 }]; + let entries = 0; + while (pending.length) { + const { value: item, depth } = pending.pop()!; + if (++entries > 8192) invalid('JSON entries exceed 8192.'); + if (depth > 16) invalid('JSON depth exceeds 16.'); + if (typeof item === 'number' && !Number.isFinite(item)) invalid('nonfinite number.'); + if (typeof item === 'string') unicode(item); + else if (Array.isArray(item)) { + if (item.length > 8192) invalid('JSON entries exceed 8192.'); + pending.push(...item.map((value) => ({ value, depth: depth + 1 }))); + } else if (item && typeof item === 'object') { + for (const [key, value] of Object.entries(item)) + pending.push({ value: key, depth: depth + 1 }, { value, depth: depth + 1 }); + } + } + return parsed; +} + +/** A JSON response wraps/re-escapes the original summary string. The inner + * summary and observation receive their own smaller limits before use. */ +export const MAX_ENHANCEMENT_ENVELOPE_BYTES = 2 * MAX_ENHANCEMENT_SUMMARY_BYTES + 65536; +export function parsePromptEnhancementEnvelopeJson(value: unknown): unknown { + return rawJson(value, MAX_ENHANCEMENT_ENVELOPE_BYTES); +} + +export function parsePromptEnhancementProducerObservation(value: unknown): PromptEnhancementProducer { + return parseProducer(expectedSnapshot(value)); +} + +function parseControls(value: unknown): PromptEnhancementControls { + const item = object(value, [ + 'max_new_tokens', + 'min_new_tokens', + 'do_sample', + 'num_beams', + 'repetition_penalty', + 'return_dict_in_generate', + 'use_chat_template', + ]); + const maximum = integer(item.max_new_tokens, 1, 3584); + integer(item.min_new_tokens, 0, maximum); + if ( + item.do_sample !== false || + item.num_beams !== 1 || + item.repetition_penalty !== 1 || + item.return_dict_in_generate !== false || + item.use_chat_template !== true + ) + invalid('unsupported generation controls.'); + return item as PromptEnhancementControls; +} + +function parseProducer(value: unknown): PromptEnhancementProducer { + const item = object(value, [ + 'taskId', + 'attemptIndex', + 'node', + 'sid', + 'workerInstance', + 'backendSourceFingerprint', + 'graphHash', + 'recipe', + 'uiContext', + ]); + text(item.taskId, 128); + integer(item.attemptIndex, 0, 1000); + const node = object(item.node, ['id', 'module', 'action']); + text(node.id, 512); + if (node.module !== 'modules.HuggingFaceTransformers' || node.action !== 'GenerateImageVideoText') + invalid('foreign producer action.'); + if (item.sid !== null) text(item.sid, 512); + text(item.workerInstance, 128); + if ( + typeof item.backendSourceFingerprint !== 'string' || + !/^sha256:backend-source-v1:[0-9a-f]{64}$/u.test(item.backendSourceFingerprint) + ) + invalid('invalid backend source fingerprint.'); + if (typeof item.graphHash !== 'string' || !/^sha256:workflow-auto-v1:[0-9a-f]{64}$/u.test(item.graphHash)) + invalid('invalid graph hash.'); + if (item.recipe !== null) invalid('this transport has no resolved recipe authority.'); + const ui = object(item.uiContext, [ + 'clientRunId', + 'runInputHash', + 'workflowTabId', + 'workflowCanvasEpoch', + 'workflowFormEpoch', + ]); + for (const key of ['clientRunId', 'runInputHash', 'workflowTabId']) if (ui[key] !== null) text(ui[key], 512); + for (const key of ['workflowCanvasEpoch', 'workflowFormEpoch']) + if (ui[key] !== null) integer(ui[key], 0, Number.MAX_SAFE_INTEGER); + jsonBudget(item, 4096); + return item as PromptEnhancementProducer; +} + +function parseModelReceipt(value: unknown): NativeEnhancementModelReceipt { + const item = object(value, [ + 'schemaVersion', + 'library', + 'task', + 'source', + 'loader', + 'security', + 'runtime', + 'receiptDigest', + ]); + if (item.schemaVersion !== 1 || item.library !== 'transformers' || item.task !== 'image-video-to-text') + invalid('foreign model receipt.'); + const source = object(item.source, ['kind', 'repository', 'revision']); + if ( + source.kind !== 'hub' || + typeof source.repository !== 'string' || + !/^[A-Za-z0-9][A-Za-z0-9._-]*\/[A-Za-z0-9][A-Za-z0-9._-]*$/u.test(source.repository) || + source.repository.length > 256 || + typeof source.revision !== 'string' || + !/^[0-9a-f]{40}$/u.test(source.revision) + ) + invalid('invalid immutable model source.'); + const loader = object(item.loader, ['preprocessorAutoClass', 'modelAutoClass']); + if (loader.preprocessorAutoClass !== 'AutoProcessor' || loader.modelAutoClass !== 'AutoModelForImageTextToText') + invalid('foreign model loader.'); + const security = object(item.security, ['localFilesOnly', 'trustRemoteCode', 'safetensorsOnly', 'hostedInference']); + if ( + security.localFilesOnly !== true || + security.trustRemoteCode !== false || + security.safetensorsOnly !== true || + security.hostedInference !== false + ) + invalid('invalid model security observations.'); + const runtime = object(item.runtime, [ + 'transformersVersion', + 'dtype', + 'device', + 'preprocessorClass', + 'modelClass', + 'modelType', + 'architectures', + 'quantization', + ]); + text(runtime.transformersVersion, 128); + if (runtime.dtype !== 'float32' && runtime.dtype !== 'float16' && runtime.dtype !== 'bfloat16') + invalid('invalid model dtype.'); + if (typeof runtime.device !== 'string' || !/^(?:cpu|cuda|xpu|mps)(?::[0-9]{1,5})?$/u.test(runtime.device)) + invalid('invalid native device.'); + for (const key of ['preprocessorClass', 'modelClass']) + if (typeof runtime[key] !== 'string' || !IDENTIFIER.test(runtime[key])) invalid('invalid native class.'); + if (runtime.modelType !== null && (typeof runtime.modelType !== 'string' || !IDENTIFIER.test(runtime.modelType))) + invalid('invalid native model type.'); + for (const architecture of list(runtime.architectures, 32)) + if (typeof architecture !== 'string' || !IDENTIFIER.test(architecture)) invalid('invalid architecture class.'); + const quantization = runtime.quantization; + if (quantization && typeof quantization === 'object' && 'mode' in quantization && quantization.mode === 'none') { + object(quantization, ['mode']); + } else { + const quantized = object(quantization, ['mode', 'quantType', 'doubleQuant', 'computeDtype', 'skipModules']); + if ( + quantized.mode !== 'bnb_4bit' || + quantized.quantType !== 'nf4' || + quantized.doubleQuant !== true || + quantized.computeDtype !== 'bfloat16' || + !Array.isArray(quantized.skipModules) || + quantized.skipModules.length !== 2 || + quantized.skipModules[0] !== 'lm_head' || + quantized.skipModules[1] !== 'model.visual' + ) + invalid('quantized provider differs from the declared native recipe.'); + } + hash(item.receiptDigest); + jsonBudget(item, 16384); + return item as NativeEnhancementModelReceipt; +} + +function parseConsumed( + value: unknown, + controls: PromptEnhancementControls, + adapterId: string, +): EnhancementConsumedInput { + const item = object(value, ['schemaVersion', 'renderedPrompt', 'references', 'processedImageGrid', 'fingerprints']); + if (item.schemaVersion !== 1) invalid('unsupported consumed input.'); + text(item.renderedPrompt, 524288, 131072); + if ((item.renderedPrompt as string).includes('\0')) invalid('rendered prompt contains NUL.'); + const references = list(item.references, 10); + let totalPixels = 0; + for (const [index, value] of references.entries()) { + const reference = object(value, ['index', 'mode', 'width', 'height', 'sha256']); + if (reference.index !== index || reference.mode !== 'RGB') invalid('reference order or mode changed.'); + totalPixels += integer(reference.width, 1, 4096) * integer(reference.height, 1, 4096); + hash(reference.sha256); + } + if (totalPixels > 67108864) invalid('reference pixel budget exceeded.'); + const processed = [ + 'processed_pixel_sha256', + 'processed_grid_sha256', + 'processed_pixel_shape', + 'processed_grid_shape', + ]; + const fingerprint = object(item.fingerprints, [ + 'operation', + 'enhancement_max_new_tokens', + 'prompt_adapter_id', + 'system_prompt_mode', + 'system_prompt_sha256', + 'rendered_prompt_sha256', + 'rendered_prompt_utf8_bytes', + 'rendered_input_ids_sha256', + 'reference_source_sha256', + ...(references.length ? processed : []), + ]); + if ( + fingerprint.operation !== 'enhance_prompt' || + fingerprint.enhancement_max_new_tokens !== controls.max_new_tokens || + fingerprint.prompt_adapter_id !== adapterId || + !MODES.some((mode) => mode === fingerprint.system_prompt_mode) + ) + invalid('consumed operation differs from this request.'); + if (typeof fingerprint.system_prompt_sha256 !== 'string' || !/^[0-9a-f]{64}$/u.test(fingerprint.system_prompt_sha256)) + invalid('invalid system prompt digest.'); + hash(fingerprint.rendered_prompt_sha256); + hash(fingerprint.rendered_input_ids_sha256); + if (fingerprint.rendered_prompt_utf8_bytes !== utf8(item.renderedPrompt as string).byteLength) + invalid('rendered prompt byte count differs.'); + const hashes = list(fingerprint.reference_source_sha256, 10); + if ( + hashes.length !== references.length || + hashes.some((value, index) => hash(value) !== (references[index] as EnhancementReference).sha256) + ) + invalid('reference fingerprints differ from ordered sources.'); + const grids = list(item.processedImageGrid, 10); + if (grids.length !== references.length) invalid('image grid count differs.'); + let patches = 0; + for (const grid of grids) { + const values = list(grid, 3); + if (values.length !== 3) invalid('invalid image grid.'); + const product = values.reduce((count, value) => count * integer(value, 1, 268435456), 1); + if (!Number.isSafeInteger(product) || product > 268435456) invalid('image grid exceeds tensor bounds.'); + patches += product; + } + if (references.length) { + hash(fingerprint.processed_pixel_sha256); + hash(fingerprint.processed_grid_sha256); + const pixels = list(fingerprint.processed_pixel_shape, 2), + grid = list(fingerprint.processed_grid_shape, 2); + if ( + pixels.length !== 2 || + grid.length !== 2 || + grid[0] !== references.length || + grid[1] !== 3 || + integer(pixels[0], 1, 268435456) !== patches || + patches * integer(pixels[1], 1, 268435456) > 268435456 + ) + invalid('processed tensor shapes differ from the image grids.'); + } + const imageMode = fingerprint.system_prompt_mode === 'i2i' || fingerprint.system_prompt_mode === 'i2i_bbox'; + if (imageMode !== references.length > 0) invalid('mode differs from the actual image count.'); + jsonBudget(item, 262144); + return item as EnhancementConsumedInput; +} + +/** Match the backend's Decimal(str(coordinate))*1000 without rounding. */ +function integerGridCoordinate(value: number) { + const [coefficient, exponent = '0'] = String(value).toLowerCase().split('e'); + const [whole, fraction = ''] = coefficient!.split('.'); + const digits = BigInt(whole! + fraction); + const power = Number(exponent) - fraction.length + 3; + const denominator = power < 0 ? 10n ** BigInt(-power) : 1n; + if (digits % denominator !== 0n) invalid('target box does not map exactly to the integer grid.'); + return Number(power < 0 ? digits / denominator : digits * 10n ** BigInt(power)); +} + +function upstreamBox(box: readonly number[]) { + return [box[1]!, box[0]!, box[3]!, box[2]!].map(integerGridCoordinate); +} + +function targetLayout(value: unknown): LayoutConditioning { + const parsed = parseLayoutConditioning(value); + if (!parsed || parsed.regions.length === 0) invalid('expected authored target regions.'); + for (const region of parsed.regions) { + if (region.source || (region.action !== undefined && region.action !== 'place') || !region.targetBox) + invalid('source-region proposals are unsupported.'); + upstreamBox(region.targetBox); + } + return parsed; +} + +function parseStructured( + value: unknown, + mode: PromptEnhancementMode, + imageCount: number, +): EnhancementStructuredProposal { + const item = object(value, ['schemaVersion', 'caption', 'layoutConditioning', 'rawTable']); + if (item.schemaVersion !== 1) invalid('unsupported structured proposal.'); + const caption = text(item.caption, 262144, 131072, true); + if (caption.includes('```') || JSON.stringify(item.rawTable).includes('```')) + invalid('structured output contains a Markdown fence.'); + const layout = targetLayout(item.layoutConditioning); + const rows = list(item.rawTable, 32); + if (rows.length !== layout.regions.length) invalid('target table differs from layout region count.'); + const seen = new Set(); + for (const raw of rows) { + const row = object( + raw, + mode === 't2i_bbox' ? ['id', 'bbox', 'desc'] : ['id', 'from', 'src_bbox', 'tgt_bbox', 'desc'], + ); + if (typeof row.id !== 'string' || seen.has(row.id)) invalid('duplicate or unknown target row.'); + const region = layout.regions.find((region) => region.id === row.id); + if (!region || row.desc !== region.description) invalid('table description or ID differs from layout.'); + text(row.desc, 16384, 4096, true); + seen.add(row.id); + if (mode === 'i2i_bbox' && (row.from !== 'target' || row.src_bbox !== null)) + invalid('source table mapping is unsupported.'); + const box = list(mode === 't2i_bbox' ? row.bbox : row.tgt_bbox, 4).map((value) => integer(value, 0, 1000)); + if ( + box.length !== 4 || + box[0]! >= box[2]! || + box[1]! >= box[3]! || + canonicalBlockStringifyV2(box) !== canonicalBlockStringifyV2(upstreamBox(region.targetBox!)) + ) + invalid('target table geometry differs from layout.'); + } + const tags = [...caption.matchAll(/<([^<>]*)>/gu)].map((match) => match[1]!); + if (/[<>]/u.test(caption.replace(/<[^<>]*>/gu, ''))) invalid('caption has malformed tags.'); + for (const region of layout.regions) + if (tags.filter((tag) => tag === region.id).length !== 1) invalid('caption must cite each target exactly once.'); + for (const tag of tags) { + if (layout.regions.some((region) => region.id === tag)) continue; + const reference = /^ref_image_(0|[1-9][0-9]?)$/u.exec(tag); + if (!reference || Number(reference[1]) >= imageCount) invalid('caption cites an unknown reference.'); + } + jsonBudget(item, 262144); + return { schemaVersion: 1, caption, layoutConditioning: layout, rawTable: rows as EnhancementTargetRow[] }; +} + +function parseProposal(value: unknown, consumed: EnhancementConsumedInput, controls: PromptEnhancementControls) { + const item = object(value, [ + 'mode', + 'text', + 'structuredProposal', + 'finishReason', + 'inputTokens', + 'generatedTokens', + 'applyRequired', + 'applicationAllowed', + 'layoutOutputValidated', + 'semanticFidelityVerified', + 'applicationBlockedReason', + ]); + if (item.mode !== consumed.fingerprints.system_prompt_mode) invalid('proposal mode differs from consumed input.'); + const mode = item.mode as PromptEnhancementMode; + const generated = integer(item.generatedTokens, 1, controls.max_new_tokens); + integer(item.inputTokens, 1, 32768); + if (item.finishReason !== (generated === controls.max_new_tokens ? 'length' : 'stop')) + invalid('finish reason differs from token count.'); + if (item.applyRequired !== true || item.semanticFidelityVerified !== false) + invalid('proposal cannot assert implicit application or semantic fidelity.'); + if (mode === 't2i' || mode === 'i2i') { + text(item.text, 1048576, 262144, true); + if ( + item.structuredProposal !== null || + item.layoutOutputValidated !== null || + item.applicationAllowed !== true || + item.applicationBlockedReason !== null + ) + invalid('contradictory plain proposal flags.'); + } else { + if (item.text !== null) invalid('structured text must remain null.'); + if (item.layoutOutputValidated === true) { + if (item.applicationAllowed !== true || item.applicationBlockedReason !== null) + invalid('contradictory valid layout flags.'); + item.structuredProposal = parseStructured(item.structuredProposal, mode, consumed.references.length); + } else { + if (item.layoutOutputValidated !== false || item.applicationAllowed !== false || item.structuredProposal !== null) + invalid('contradictory invalid layout flags.'); + text(item.applicationBlockedReason, 16384, 4096, true); + } + } + return item as PromptEnhancementSummary['proposal']; +} + +export function parsePromptEnhancementSummary(raw: unknown): PromptEnhancementSummary { + const item = object(rawJson(raw), [ + 'schemaVersion', + 'kind', + 'producer', + 'adapter', + 'request', + 'modelReceipt', + 'consumedInput', + 'proposal', + ]); + if (item.schemaVersion !== 1 || item.kind !== 'prompt-enhancement-proposal') invalid('unsupported envelope.'); + const adapter = object(item.adapter, ['id', 'declarationSha256']); + if (typeof adapter.id !== 'string' || !ADAPTER_ID.test(adapter.id)) invalid('invalid adapter ID.'); + hash(adapter.declarationSha256); + jsonBudget(adapter, 1024); + const request = object(item.request, [ + 'authoredPromptSha256', + 'authoredLayoutKind', + 'authoredLayoutSha256', + 'controls', + 'consumedInputSha256', + ]); + hash(request.authoredPromptSha256); + hash(request.consumedInputSha256); + if (request.authoredLayoutKind !== 'none' && request.authoredLayoutKind !== 'object') + invalid('unsupported authored layout representation.'); + if (request.authoredLayoutKind === 'none') { + if (request.authoredLayoutSha256 !== null) invalid('absent layout has a digest.'); + } else hash(request.authoredLayoutSha256); + const controls = parseControls(request.controls); + jsonBudget(request, 4096); + const consumed = parseConsumed(item.consumedInput, controls, adapter.id); + return { + schemaVersion: 1, + kind: 'prompt-enhancement-proposal', + producer: parseProducer(item.producer), + adapter: adapter as PromptEnhancementSummary['adapter'], + request: request as PromptEnhancementSummary['request'], + modelReceipt: parseModelReceipt(item.modelReceipt), + consumedInput: consumed, + proposal: parseProposal(item.proposal, consumed, controls), + }; +} + +/** Expectations must come from independently captured declarations/current state. + * They are snapshots, not a live store, original terminal-run proof or Apply grant. */ +export type ExpectedPromptEnhancementSummary = { + producer: PromptEnhancementProducer; + adapter: PromptEnhancementSummary['adapter']; + modelReceipt: Omit; + authoredPrompt: string; + authoredLayout: LayoutConditioning | null; + controls: PromptEnhancementControls; + systemPromptSha256: string; + references: EnhancementReference[]; +}; + +async function sha256(value: string): Promise { + const digest = await globalThis.crypto.subtle.digest('SHA-256', utf8(value)); + return `sha256:${[...new Uint8Array(digest)].map((value) => value.toString(16).padStart(2, '0')).join('')}`; +} + +/** Only the validated closed native receipt subset: no floats or arbitrary keys. + * Python ensure_ascii=True spells DEL/non-ASCII as UTF-16 escapes. */ +function receiptCanonical(value: unknown): string { + if (value === null) return 'null'; + if (typeof value === 'boolean') return value ? 'true' : 'false'; + if (typeof value === 'number' && Number.isSafeInteger(value)) return String(value); + if (typeof value === 'string') + return JSON.stringify(unicode(value)).replace( + /[\u007f-\uffff]/g, + (character) => `\\u${character.charCodeAt(0).toString(16).padStart(4, '0')}`, + ); + if (Array.isArray(value)) return `[${value.map(receiptCanonical).join(',')}]`; + if (value && typeof value === 'object') + return `{${Object.keys(value) + .sort() + .map((key) => `${receiptCanonical(key)}:${receiptCanonical((value as Record)[key])}`) + .join(',')}}`; + return invalid('unsupported native receipt value.'); +} + +/** Copy externally supplied plain data without invoking getters/toJSON. */ +function expectedSnapshot(value: unknown, depth = 0, state = { entries: 0, bytes: 0 }): unknown { + if (++state.entries > 8192 || depth > 16) invalid('expected binding snapshot exceeds limits.'); + if (value === null || typeof value === 'boolean') return value; + if (typeof value === 'string') { + if (value.length > MAX_ENHANCEMENT_SUMMARY_BYTES) invalid('expected binding text exceeds limits.'); + state.bytes += utf8(value).byteLength; + if (state.bytes > MAX_ENHANCEMENT_SUMMARY_BYTES) invalid('expected binding text exceeds limits.'); + return value; + } + if (typeof value === 'number' && Number.isFinite(value)) return value; + if (!value || typeof value !== 'object') invalid('expected bindings must be plain JSON.'); + const prototype = Object.getPrototypeOf(value); + if (Array.isArray(value)) { + if (value.length > 8192) invalid('expected binding snapshot exceeds limits.'); + if (Reflect.ownKeys(value).length !== value.length + 1) invalid('expected a dense binding array.'); + return Array.from({ length: value.length }, (_, index) => { + const descriptor = Object.getOwnPropertyDescriptor(value, index); + if (!descriptor?.enumerable || !('value' in descriptor)) invalid('expected enumerable data bindings.'); + return expectedSnapshot(descriptor.value, depth + 1, state); + }); + } + if (prototype !== Object.prototype && prototype !== null) invalid('expected plain binding objects.'); + const result: Record = Object.create(null); + const keys = Reflect.ownKeys(value); + if (keys.length > 32) invalid('expected binding snapshot exceeds limits.'); + for (const key of keys) { + if (typeof key !== 'string') invalid('symbol binding keys are unsupported.'); + const descriptor = Object.getOwnPropertyDescriptor(value, key)!; + if (!descriptor.enumerable || !('value' in descriptor)) invalid('expected enumerable data bindings.'); + expectedSnapshot(key, depth + 1, state); + result[unicode(key)] = expectedSnapshot(descriptor.value, depth + 1, state); + } + return result; +} + +function layoutGeometry(value: NonNullable) { + return { + ...value, + regions: value.regions.map((region) => { + const copy: Record = { ...region }; + delete copy.description; + return copy; + }), + }; +} + +function equal(actual: unknown, expected: unknown, label: string) { + if (canonicalBlockStringifyV2(actual) !== canonicalBlockStringifyV2(expected)) + invalid(`${label} differs from independently captured state.`); +} + +/** Verify consistency against external snapshots. This performs no task lookup, + * current-document check, fetch, model work, graph edit, scheduling or Apply. */ +export async function verifyPromptEnhancementSummaryBindings( + raw: unknown, + expectedValue: ExpectedPromptEnhancementSummary, +): Promise { + const summary = parsePromptEnhancementSummary(raw); + const expected = object(expectedSnapshot(expectedValue), [ + 'producer', + 'adapter', + 'modelReceipt', + 'authoredPrompt', + 'authoredLayout', + 'controls', + 'systemPromptSha256', + 'references', + ]); + equal(summary.producer, parseProducer(expected.producer), 'producer'); + equal(summary.adapter, expected.adapter, 'adapter'); + equal(summary.request.controls, parseControls(expected.controls), 'controls'); + equal(summary.consumedInput.references, expected.references, 'references'); + equal(summary.consumedInput.fingerprints.system_prompt_sha256, expected.systemPromptSha256, 'system prompt'); + const unsignedReceipt = { ...summary.modelReceipt } as Partial; + delete unsignedReceipt.receiptDigest; + equal(unsignedReceipt, expected.modelReceipt, 'native model'); + const receiptBytes = receiptCanonical(summary.modelReceipt); + if (utf8(receiptBytes).byteLength > 16384) invalid('existing native receipt budget exceeded.'); + if ((await sha256(receiptCanonical(unsignedReceipt))) !== summary.modelReceipt.receiptDigest) + invalid('native receipt digest differs.'); + const prompt = text(expected.authoredPrompt, 262144, 65536); + if (prompt.includes('\0')) invalid('authored prompt contains NUL.'); + if ((await sha256(prompt)) !== summary.request.authoredPromptSha256) invalid('authored prompt digest differs.'); + const layout = parseLayoutConditioning(expected.authoredLayout); + if (layout?.regions.some((region) => region.source)) invalid('source-region enhancement is unsupported.'); + const layoutKind = layout === null ? 'none' : 'object'; + if (summary.request.authoredLayoutKind !== layoutKind) invalid('authored layout representation differs.'); + const layoutDigest = + layout === null + ? null + : await sha256(canonicalBlockStringifyV2({ kind: 'object', value: expected.authoredLayout })); + if (layoutDigest !== summary.request.authoredLayoutSha256) invalid('authored layout digest differs.'); + const bbox = summary.proposal.mode.endsWith('_bbox'); + if (bbox !== Boolean(layout?.regions.length)) invalid('mode differs from authored regions.'); + if (summary.proposal.structuredProposal) { + targetLayout(layout); + const target = summary.proposal.structuredProposal.layoutConditioning; + equal(layoutGeometry(target), layoutGeometry(layout!), 'authored target geometry'); + } + if ((await sha256(canonicalBlockStringifyV2(summary.consumedInput))) !== summary.request.consumedInputSha256) + invalid('consumed input digest differs.'); + if ( + (await sha256(summary.consumedInput.renderedPrompt)) !== summary.consumedInput.fingerprints.rendered_prompt_sha256 + ) + invalid('rendered prompt digest differs.'); + return summary; +} diff --git a/src/studio/qwenInpaintNativeCandidate.ts b/src/studio/qwenInpaintNativeCandidate.ts index 4e462f79..e55eb51b 100644 --- a/src/studio/qwenInpaintNativeCandidate.ts +++ b/src/studio/qwenInpaintNativeCandidate.ts @@ -8,7 +8,7 @@ import type { StudioExecutionSpec, StudioFormState, StudioModelProfile, StudioTe * Explicit crop overrides remain useful for bounded differential tests. */ export function createQwenInpaintNativeCandidateGraph( template: StudioTemplate, - form: StudioFormState & { paddingMaskCrop?: number | null }, + form: StudioFormState, starter: OperationStarter, registry: Record, spec: StudioExecutionSpec, diff --git a/src/studio/registeredBlockV2AudioRoutes.ts b/src/studio/registeredBlockV2AudioRoutes.ts index 130c5476..911c5237 100644 --- a/src/studio/registeredBlockV2AudioRoutes.ts +++ b/src/studio/registeredBlockV2AudioRoutes.ts @@ -5,7 +5,7 @@ const COMMON = { provider: 'diffusers', surface: 'diffusers_cluster_nodes', definitionKind: 'studio_execution_composite', - libraryRevision: 'fbf49e7f35857f76bc57b177e26f12b03687c668', + libraryRevision: '7ecb1e1b4fe500be7fb7381a7bb79a24d7fa3941', pipelineClass: 'AceStepAudioPipeline', artifact: { repo: 'ACE-Step/acestep-v15-xl-turbo-diffusers', @@ -61,7 +61,7 @@ const COMMON = { const ROUTES = [ { definitionId: 'diffusers.composite:AceStepAudioPipeline:audio_continuation', - definitionContentHash: 'sha256:80ab3a1bc90954766a09a7ec28f5505b920734caa140077e0e2a1f936b08b81e', + definitionContentHash: 'sha256:c7c3ae8cb498e0145b689b84a68f89f16df921975e54c052ac113a1593d52400', workflowId: 'audio_continuation', admissionId: 'diffusers.cluster-admission:AceStepAudioPipeline:audio_continuation:mode:audio_continuation', studioMode: 'audio_continuation', @@ -71,8 +71,8 @@ const ROUTES = [ executionProfileId: 'ace-step-audio:direct', id: 'ace-step-v1.5-xl-turbo:audio-continuation:v1', }, - compiledDefinitionContentHash: 'block-definition-v2-28a52ba4', - compiledDefinitionCanonicalSha256: 'sha256:c25e7ae9e0d0f732ae6073317be30b0d75f748170005b6a1061d31589ac81653', + compiledDefinitionContentHash: 'block-definition-v2-81d8a906', + compiledDefinitionCanonicalSha256: 'sha256:fe72289e6ee0ec100212a9abb2ac6362ab4893e111237584fd0f41bfcf0dd03c', boundary: { inputs: [ { @@ -126,7 +126,7 @@ const ROUTES = [ }, { definitionId: 'diffusers.composite:AceStepAudioPipeline:audio_repaint', - definitionContentHash: 'sha256:e6d4727615e851313d8b74489322fd200c5017df9facbe20b1ac963e6be837c8', + definitionContentHash: 'sha256:ede7a99838c13cca360c494d745b25879c8de3ae192f2521a4e88284309c191a', workflowId: 'audio_repaint', admissionId: 'diffusers.cluster-admission:AceStepAudioPipeline:audio_repaint:mode:audio_repaint', studioMode: 'audio_repaint', @@ -136,8 +136,8 @@ const ROUTES = [ executionProfileId: 'ace-step-audio:direct', id: 'ace-step-v1.5-xl-turbo:audio-repaint:v1', }, - compiledDefinitionContentHash: 'block-definition-v2-26e28c26', - compiledDefinitionCanonicalSha256: 'sha256:3a8a8501b79b93452aea3e5edb8940e19e6471bc31866db7dfa7b25242196096', + compiledDefinitionContentHash: 'block-definition-v2-87109ee5', + compiledDefinitionCanonicalSha256: 'sha256:96bc85285e50d9118d010ce381ada5aa1efea4100efb874011da14d6cbde884d', boundary: { inputs: [ { @@ -196,7 +196,7 @@ const ROUTES = [ }, { definitionId: 'diffusers.composite:AceStepAudioPipeline:audio_variation', - definitionContentHash: 'sha256:42b7b64e240ed549787cd28948d15ec35c6534ff484800bb7630dc25e7d5fd78', + definitionContentHash: 'sha256:008a737a69c67c49748d20c877f37246f05205e0fd91c70da2a2ff9a15676644', workflowId: 'audio_variation', admissionId: 'diffusers.cluster-admission:AceStepAudioPipeline:audio_variation:mode:audio_variation', studioMode: 'audio_variation', @@ -206,8 +206,8 @@ const ROUTES = [ executionProfileId: 'ace-step-audio:direct', id: 'ace-step-v1.5-xl-turbo:audio-variation:v1', }, - compiledDefinitionContentHash: 'block-definition-v2-9434a2ed', - compiledDefinitionCanonicalSha256: 'sha256:75150095ad1cfccdab7dc378c68653dc8601c6992f76e22416f30282d927914d', + compiledDefinitionContentHash: 'block-definition-v2-f72faee5', + compiledDefinitionCanonicalSha256: 'sha256:e7f9bb7a106b86047fdc3094a857d338e6ae62cb0e7844f99dd222a74404e455', boundary: { inputs: [ { @@ -266,7 +266,7 @@ const ROUTES = [ }, { definitionId: 'diffusers.composite:AceStepAudioPipeline:text_to_audio', - definitionContentHash: 'sha256:a1a4c1cf4f0ff47fde86b7824b9cb4db7c36b651c8a0026085e9142da7a00cfa', + definitionContentHash: 'sha256:a66eb7fa9b9061def9d412dc3d0bbc8f6ea8c31720fcc387d39dd71529acde2b', workflowId: 'text_to_audio', admissionId: 'diffusers.cluster-admission:AceStepAudioPipeline:text_to_audio:mode:text_to_audio', studioMode: 'text_to_audio', @@ -276,8 +276,8 @@ const ROUTES = [ executionProfileId: 'ace-step-audio:direct', id: 'ace-step-v1.5-xl-turbo:text-to-audio:v1', }, - compiledDefinitionContentHash: 'block-definition-v2-0aca6594', - compiledDefinitionCanonicalSha256: 'sha256:549872dbe554d817b288a9fdf71ba9edba4cef2da05ba1f7654381844ad482d7', + compiledDefinitionContentHash: 'block-definition-v2-e7fe5daf', + compiledDefinitionCanonicalSha256: 'sha256:b8faec94d1ac7a1a571637b07fa2f7224b13d156ce7c09de7742d27bd45737af', boundary: { inputs: [ { @@ -327,11 +327,11 @@ const ROUTES = [ const SOUND_ROUTES = [ { definitionId: 'diffusers.composite:AudioLDM2Pipeline:text_to_audio', - definitionContentHash: 'sha256:314617cbd715517a489a6ff3530dcb1f6f9bb3e257af913e12b5994a611020e2', + definitionContentHash: 'sha256:2c28ef37b207d8f00f2a27b7c4c6fce7ed7a67a850799a4bbbc6ef195e763fa8', provider: 'diffusers', surface: 'diffusers_cluster_nodes', definitionKind: 'studio_execution_composite', - libraryRevision: 'fbf49e7f35857f76bc57b177e26f12b03687c668', + libraryRevision: '7ecb1e1b4fe500be7fb7381a7bb79a24d7fa3941', pipelineClass: 'AudioLDM2Pipeline', workflowId: 'text_to_audio', admissionId: 'diffusers.cluster-admission:AudioLDM2Pipeline:text_to_audio:mode:text_to_audio', @@ -354,8 +354,8 @@ const SOUND_ROUTES = [ valueSource: 'pipelineClass', }, ], - compiledDefinitionContentHash: 'block-definition-v2-54a4fc37', - compiledDefinitionCanonicalSha256: 'sha256:a710d1fc3243bf54eff644b8a63ce7cb29f62387d9c571e0da5107be7f17a956', + compiledDefinitionContentHash: 'block-definition-v2-58b65680', + compiledDefinitionCanonicalSha256: 'sha256:20bc5ef803d0785d726f615c82961f75643421acbb915166fce884cd59c70c20', controlFanOuts: [ { source: 'dtype', @@ -441,11 +441,11 @@ const SOUND_ROUTES = [ }, { definitionId: 'diffusers.composite:LongCatAudioDiTPipeline:text_to_audio', - definitionContentHash: 'sha256:17ec5906b4991f2eb620c6eeb535f789109538a2b84a6f9374bfcdfbe99a231f', + definitionContentHash: 'sha256:cc2f38fb2860e16dc7f81d72a31a7e033d3625606337fc3b1eae33f0da1be77e', provider: 'diffusers', surface: 'diffusers_cluster_nodes', definitionKind: 'studio_execution_composite', - libraryRevision: 'fbf49e7f35857f76bc57b177e26f12b03687c668', + libraryRevision: '7ecb1e1b4fe500be7fb7381a7bb79a24d7fa3941', pipelineClass: 'LongCatAudioDiTPipeline', workflowId: 'text_to_audio', admissionId: 'diffusers.cluster-admission:LongCatAudioDiTPipeline:text_to_audio:mode:text_to_audio', @@ -468,8 +468,8 @@ const SOUND_ROUTES = [ valueSource: 'pipelineClass', }, ], - compiledDefinitionContentHash: 'block-definition-v2-42d1ec43', - compiledDefinitionCanonicalSha256: 'sha256:e3b4398c541550a31f692f98fb6f5fb105a700d0ac01f365a28aaa04f24882a1', + compiledDefinitionContentHash: 'block-definition-v2-ebebb14f', + compiledDefinitionCanonicalSha256: 'sha256:cf3b256c722fc2885ddbbea652d2c8f661ad6dbe106555b0b6e0753660f9d172', controlFanOuts: [ { source: 'dtype', diff --git a/src/studio/registeredBlockV2FanOutRoutes.ts b/src/studio/registeredBlockV2FanOutRoutes.ts index 60f89617..8184a3bd 100644 --- a/src/studio/registeredBlockV2FanOutRoutes.ts +++ b/src/studio/registeredBlockV2FanOutRoutes.ts @@ -8,11 +8,11 @@ import type { RegisteredBlockV2Route } from './registeredBlockV2Routes'; export const REGISTERED_BLOCK_V2_FANOUT_ROUTES = Object.freeze([ { definitionId: 'diffusers.modular:Flux2KleinBaseModularPipeline:image_conditioned', - definitionContentHash: 'sha256:828b7a2e38e378a2c4192fccd92083073d9aed589f2108a14d365b5bd66d78ba', + definitionContentHash: 'sha256:cc0a763ca429a350cc31a2e154b0156c7c6fcb26d50613e9b38c975d8b84725e', provider: 'diffusers', surface: 'diffusers_cluster_nodes', definitionKind: 'modular_pipeline_workflow', - libraryRevision: 'fbf49e7f35857f76bc57b177e26f12b03687c668', + libraryRevision: '7ecb1e1b4fe500be7fb7381a7bb79a24d7fa3941', pipelineClass: 'Flux2KleinBaseModularPipeline', workflowId: 'image_conditioned', admissionId: 'diffusers.cluster-admission:Flux2KleinBaseModularPipeline:image_conditioned:mode:edit_image', @@ -31,8 +31,8 @@ export const REGISTERED_BLOCK_V2_FANOUT_ROUTES = Object.freeze([ { event: 'onSignal', field: 'unet', role: 'denoise', valueSource: 'pipelineClass' }, { event: 'onSignal', field: 'vae', role: 'decode', valueSource: 'pipelineClass' }, ], - compiledDefinitionContentHash: 'block-definition-v2-2d42929d', - compiledDefinitionCanonicalSha256: 'sha256:e9ff8f22373135115fb840ba2a5d80585416eff36f3b79bae5493754c76ba5c3', + compiledDefinitionContentHash: 'block-definition-v2-ed5995c4', + compiledDefinitionCanonicalSha256: 'sha256:254358998f723016b35aa8329a70d34f212200d4a0aaead12cc3076aa53166b1', controlFanOuts: [ { source: 'seed', @@ -56,11 +56,11 @@ export const REGISTERED_BLOCK_V2_FANOUT_ROUTES = Object.freeze([ }, { definitionId: 'diffusers.modular:Flux2KleinModularPipeline:image_conditioned', - definitionContentHash: 'sha256:88ac025e4467ffd49be06d87dad052c50ad00ab1405d8f7bd893b588fa046ca6', + definitionContentHash: 'sha256:8d99ac5851641f5bdfd6572855aed389afa99635bb405eed464773ee0a2404da', provider: 'diffusers', surface: 'diffusers_cluster_nodes', definitionKind: 'modular_pipeline_workflow', - libraryRevision: 'fbf49e7f35857f76bc57b177e26f12b03687c668', + libraryRevision: '7ecb1e1b4fe500be7fb7381a7bb79a24d7fa3941', pipelineClass: 'Flux2KleinModularPipeline', workflowId: 'image_conditioned', admissionId: 'diffusers.cluster-admission:Flux2KleinModularPipeline:image_conditioned:mode:edit_image', @@ -79,8 +79,8 @@ export const REGISTERED_BLOCK_V2_FANOUT_ROUTES = Object.freeze([ { event: 'onSignal', field: 'unet', role: 'denoise', valueSource: 'pipelineClass' }, { event: 'onSignal', field: 'vae', role: 'decode', valueSource: 'pipelineClass' }, ], - compiledDefinitionContentHash: 'block-definition-v2-0b79b71f', - compiledDefinitionCanonicalSha256: 'sha256:875fd05b306a0311a92c02b9fa9256e017a9f918d0cb6bb11e4e8f0b3d7ebaff', + compiledDefinitionContentHash: 'block-definition-v2-fafde5a4', + compiledDefinitionCanonicalSha256: 'sha256:d44806e3f19cca47e00b87da38100dfd777052bdb26866fa3d0afd907452fdd4', controlFanOuts: [ { source: 'seed', @@ -106,7 +106,7 @@ export const REGISTERED_BLOCK_V2_FANOUT_ROUTES = Object.freeze([ provider: 'diffusers', surface: 'diffusers_cluster_nodes', definitionKind: 'modular_pipeline_workflow', - libraryRevision: 'fbf49e7f35857f76bc57b177e26f12b03687c668', + libraryRevision: '7ecb1e1b4fe500be7fb7381a7bb79a24d7fa3941', boundary: { inputs: [ { @@ -149,7 +149,7 @@ export const REGISTERED_BLOCK_V2_FANOUT_ROUTES = Object.freeze([ semanticRoleByPlacementPath: {}, }, definitionId: 'diffusers.modular:Flux2ModularPipeline:image_conditioned', - definitionContentHash: 'sha256:719207acbab8456590d01bcd7b4b4521585b2c2a1d577e20cff8b9252e8615ab', + definitionContentHash: 'sha256:e6e1aea008b4bc1d5680f8ee13015cdbf959094d5bd26715f477eb38dd033fa6', pipelineClass: 'Flux2ModularPipeline', workflowId: 'image_conditioned', admissionId: 'diffusers.cluster-admission:Flux2ModularPipeline:image_conditioned:mode:edit_image', @@ -196,8 +196,8 @@ export const REGISTERED_BLOCK_V2_FANOUT_ROUTES = Object.freeze([ valueSource: 'pipelineClass', }, ], - compiledDefinitionContentHash: 'block-definition-v2-56665bf9', - compiledDefinitionCanonicalSha256: 'sha256:9cbf6546064f195b45839bf9586b1564fbe4bfe450ad58fffd34d0717ffb61a6', + compiledDefinitionContentHash: 'block-definition-v2-e81ea494', + compiledDefinitionCanonicalSha256: 'sha256:0339ff03df7d4c5c609c516941095a931d5f359c07306211a9aba314f2b08ea3', controlFanOuts: [ { source: 'seed', @@ -219,7 +219,7 @@ export const REGISTERED_BLOCK_V2_FANOUT_ROUTES = Object.freeze([ provider: 'diffusers', surface: 'diffusers_cluster_nodes', definitionKind: 'modular_pipeline_workflow', - libraryRevision: 'fbf49e7f35857f76bc57b177e26f12b03687c668', + libraryRevision: '7ecb1e1b4fe500be7fb7381a7bb79a24d7fa3941', boundary: { outputs: [ { @@ -235,12 +235,12 @@ export const REGISTERED_BLOCK_V2_FANOUT_ROUTES = Object.freeze([ semanticRoleByPlacementPath: {}, }, definitionId: 'diffusers.modular:Flux2ModularPipeline:text2image', - definitionContentHash: 'sha256:0a521e4a42c23c6910ef1039cd7eafa06e78ff38e0abd6f7a7e067fa62598a85', + definitionContentHash: 'sha256:af70c5ddff5d3acc9871994e08e2068779e3f44268135e226f990e1d32fb66d6', pipelineClass: 'Flux2ModularPipeline', workflowId: 'text2image', admissionId: 'diffusers.cluster-admission:Flux2ModularPipeline:text2image:mode:text_to_image', - compiledDefinitionContentHash: 'block-definition-v2-f9e02e17', - compiledDefinitionCanonicalSha256: 'sha256:54a3ff59cb9f5aadec1dc0ee01e976e0cd7ad17c8046a53e12dfdc23c342f170', + compiledDefinitionContentHash: 'block-definition-v2-af4513e2', + compiledDefinitionCanonicalSha256: 'sha256:2aca775e3ced827b7de35ef0feaa38cf0412789173e19bcbc775bd06a5a8eb02', studioMode: 'text_to_image', adapterContractId: 'diffusers.modular-adapter:Flux2ModularPipeline:text2image:mode:text_to_image', studioExecutionSpec: { @@ -281,11 +281,11 @@ export const REGISTERED_BLOCK_V2_FANOUT_ROUTES = Object.freeze([ }, { definitionId: 'diffusers.modular:FluxModularPipeline:image2image', - definitionContentHash: 'sha256:5c44be3b6682adb9a9802a040ff2e5c1eff3765b7bf96f172423bd70f07a6e1f', + definitionContentHash: 'sha256:57461c8d0d2021e994d0131569010a9ff2219045e1e4316f359977652e4ab358', provider: 'diffusers', surface: 'diffusers_cluster_nodes', definitionKind: 'modular_pipeline_workflow', - libraryRevision: 'fbf49e7f35857f76bc57b177e26f12b03687c668', + libraryRevision: '7ecb1e1b4fe500be7fb7381a7bb79a24d7fa3941', pipelineClass: 'FluxModularPipeline', workflowId: 'image2image', admissionId: 'diffusers.cluster-admission:FluxModularPipeline:image2image:mode:image_to_image', @@ -304,8 +304,8 @@ export const REGISTERED_BLOCK_V2_FANOUT_ROUTES = Object.freeze([ { event: 'onSignal', field: 'unet', role: 'denoise', valueSource: 'pipelineClass' }, { event: 'onSignal', field: 'vae', role: 'decode', valueSource: 'pipelineClass' }, ], - compiledDefinitionContentHash: 'block-definition-v2-a167d09a', - compiledDefinitionCanonicalSha256: 'sha256:ab3618cb154d9474da6180ec9eacb6bffd43363f9af278b9a37ae0b3472d448a', + compiledDefinitionContentHash: 'block-definition-v2-fcb1056b', + compiledDefinitionCanonicalSha256: 'sha256:de72de5d485cd6a07ec2b04cae86204ee063f3182add76d5eeabda45d99b7e3a', controlFanOuts: [ { source: 'seed', @@ -335,11 +335,11 @@ export const REGISTERED_BLOCK_V2_FANOUT_ROUTES = Object.freeze([ }, { definitionId: 'diffusers.modular:QwenImageEditModularPipeline:image_conditioned', - definitionContentHash: 'sha256:3643b52809fca240f2cadf105ec2517b43eaad7e082cacd8fe3016f4a6557a49', + definitionContentHash: 'sha256:4adf9983a115f6876fad849d0c250a0568c9c1751bfa46ddc4700cc6059e1847', provider: 'diffusers', surface: 'diffusers_cluster_nodes', definitionKind: 'modular_pipeline_workflow', - libraryRevision: 'fbf49e7f35857f76bc57b177e26f12b03687c668', + libraryRevision: '7ecb1e1b4fe500be7fb7381a7bb79a24d7fa3941', pipelineClass: 'QwenImageEditModularPipeline', workflowId: 'image_conditioned', admissionId: 'diffusers.cluster-admission:QwenImageEditModularPipeline:image_conditioned:mode:edit_image', @@ -358,8 +358,8 @@ export const REGISTERED_BLOCK_V2_FANOUT_ROUTES = Object.freeze([ { event: 'onSignal', field: 'unet', role: 'denoise', valueSource: 'pipelineClass' }, { event: 'onSignal', field: 'vae', role: 'decode', valueSource: 'pipelineClass' }, ], - compiledDefinitionContentHash: 'block-definition-v2-b70c9f3f', - compiledDefinitionCanonicalSha256: 'sha256:7328cfc93b457cffa2b183e82f3ec1ece6b51b4439ed0a981472a5660fb9b980', + compiledDefinitionContentHash: 'block-definition-v2-e2b32b05', + compiledDefinitionCanonicalSha256: 'sha256:768c905e87241faa3019d2e5c7a1bfb1da029b620a15b575f1de862e44864ea5', controlFanOuts: [ { source: 'seed', @@ -386,11 +386,11 @@ export const REGISTERED_BLOCK_V2_FANOUT_ROUTES = Object.freeze([ }, { definitionId: 'diffusers.modular:QwenImageEditPlusModularPipeline:default', - definitionContentHash: 'sha256:a5eb95b421a440e542cc43e9e783f3a1e495de8d814bd3d2240af40a47dadc61', + definitionContentHash: 'sha256:b47ef65dc502936109d90717e53865fbac57f2a1f707f58ba6f15c8233d57caf', provider: 'diffusers', surface: 'diffusers_cluster_nodes', definitionKind: 'modular_pipeline_workflow', - libraryRevision: 'fbf49e7f35857f76bc57b177e26f12b03687c668', + libraryRevision: '7ecb1e1b4fe500be7fb7381a7bb79a24d7fa3941', pipelineClass: 'QwenImageEditPlusModularPipeline', workflowId: 'default', admissionId: 'diffusers.cluster-admission:QwenImageEditPlusModularPipeline:default:mode:edit_image', @@ -409,8 +409,8 @@ export const REGISTERED_BLOCK_V2_FANOUT_ROUTES = Object.freeze([ { event: 'onSignal', field: 'unet', role: 'denoise', valueSource: 'pipelineClass' }, { event: 'onSignal', field: 'vae', role: 'decode', valueSource: 'pipelineClass' }, ], - compiledDefinitionContentHash: 'block-definition-v2-90476e1b', - compiledDefinitionCanonicalSha256: 'sha256:6e9cd027f6ed0b94921d3c04ad7e8c842c138f1c1a2f0d8e1de8dc66f321920a', + compiledDefinitionContentHash: 'block-definition-v2-e2000740', + compiledDefinitionCanonicalSha256: 'sha256:f700a5c80b4c61d36d70cfedc98bf81a4175907bac999bae11636e05515371fb', controlFanOuts: [ { source: 'seed', @@ -435,11 +435,11 @@ export const REGISTERED_BLOCK_V2_FANOUT_ROUTES = Object.freeze([ }, { definitionId: 'diffusers.modular:QwenImageEditPlusModularPipeline:default', - definitionContentHash: 'sha256:a5eb95b421a440e542cc43e9e783f3a1e495de8d814bd3d2240af40a47dadc61', + definitionContentHash: 'sha256:b47ef65dc502936109d90717e53865fbac57f2a1f707f58ba6f15c8233d57caf', provider: 'diffusers', surface: 'diffusers_cluster_nodes', definitionKind: 'modular_pipeline_workflow', - libraryRevision: 'fbf49e7f35857f76bc57b177e26f12b03687c668', + libraryRevision: '7ecb1e1b4fe500be7fb7381a7bb79a24d7fa3941', pipelineClass: 'QwenImageEditPlusModularPipeline', workflowId: 'default', admissionId: 'diffusers.cluster-admission:QwenImageEditPlusModularPipeline:default:mode:multi_image_reference_edit', @@ -459,8 +459,8 @@ export const REGISTERED_BLOCK_V2_FANOUT_ROUTES = Object.freeze([ { event: 'onSignal', field: 'unet', role: 'denoise', valueSource: 'pipelineClass' }, { event: 'onSignal', field: 'vae', role: 'decode', valueSource: 'pipelineClass' }, ], - compiledDefinitionContentHash: 'block-definition-v2-ff9e56bf', - compiledDefinitionCanonicalSha256: 'sha256:d7200ef7ed32b34d6b5d34cce91a90d3410e7e9abb066fa884684b8c7a5e9034', + compiledDefinitionContentHash: 'block-definition-v2-399af994', + compiledDefinitionCanonicalSha256: 'sha256:4b2b53b10ec7e8abf5a3a281872255c8a742caec5ad8bed240f803b657814d6c', controlFanOuts: [ { source: 'seed', @@ -485,11 +485,11 @@ export const REGISTERED_BLOCK_V2_FANOUT_ROUTES = Object.freeze([ }, { definitionId: 'diffusers.modular:QwenImageLayeredModularPipeline:default', - definitionContentHash: 'sha256:7841f913e220b16a22e510bce1adc90863a6271402e8eafde395c3f7826aee74', + definitionContentHash: 'sha256:b280e41528f584293d82259806ad87c7c92e952e127fb5d23e338727bab481a0', provider: 'diffusers', surface: 'diffusers_cluster_nodes', definitionKind: 'modular_pipeline_workflow', - libraryRevision: 'fbf49e7f35857f76bc57b177e26f12b03687c668', + libraryRevision: '7ecb1e1b4fe500be7fb7381a7bb79a24d7fa3941', pipelineClass: 'QwenImageLayeredModularPipeline', workflowId: 'default', admissionId: 'diffusers.cluster-admission:QwenImageLayeredModularPipeline:default:mode:layer_decomposition', @@ -508,8 +508,8 @@ export const REGISTERED_BLOCK_V2_FANOUT_ROUTES = Object.freeze([ { event: 'onSignal', field: 'unet', role: 'denoise', valueSource: 'pipelineClass' }, { event: 'onSignal', field: 'vae', role: 'decode', valueSource: 'pipelineClass' }, ], - compiledDefinitionContentHash: 'block-definition-v2-1cc2ce9c', - compiledDefinitionCanonicalSha256: 'sha256:74c2ad4edd1dae3b85ec7e52a6ec25fc7a7b05cfe655f626358ed92369b3c0dd', + compiledDefinitionContentHash: 'block-definition-v2-30e32988', + compiledDefinitionCanonicalSha256: 'sha256:9b50b70312351f4f09e8df762722ffa783bb876341722ce2131c8cc0d6163a7a', controlFanOuts: [ { source: 'resolution', @@ -543,11 +543,11 @@ export const REGISTERED_BLOCK_V2_FANOUT_ROUTES = Object.freeze([ }, { definitionId: 'diffusers.modular:StableDiffusionXLModularPipeline:controlnet_image2image', - definitionContentHash: 'sha256:319c5728060f9f497b3880a6a4a13422b340a0b7561e0ad93565c0611e433e77', + definitionContentHash: 'sha256:330fe06f86b71bf6693f27ff55232d7ecb7dd37ea082bb3e3a91ec27af91bfa2', provider: 'diffusers', surface: 'diffusers_cluster_nodes', definitionKind: 'modular_pipeline_workflow', - libraryRevision: 'fbf49e7f35857f76bc57b177e26f12b03687c668', + libraryRevision: '7ecb1e1b4fe500be7fb7381a7bb79a24d7fa3941', pipelineClass: 'StableDiffusionXLModularPipeline', workflowId: 'controlnet_image2image', admissionId: @@ -573,8 +573,8 @@ export const REGISTERED_BLOCK_V2_FANOUT_ROUTES = Object.freeze([ { event: 'onSignal', field: 'controlnet_bundle', role: 'controlnet', valueSource: 'pipelineClass' }, { event: 'onChange', field: 'model_type', role: 'controlnetModel', valueSource: 'kind' }, ], - compiledDefinitionContentHash: 'block-definition-v2-dfa702a0', - compiledDefinitionCanonicalSha256: 'sha256:329ccc4ef902acb293b611fba091ce80844e6329f5fc8b0b288872666e8e1c45', + compiledDefinitionContentHash: 'block-definition-v2-b3ef3086', + compiledDefinitionCanonicalSha256: 'sha256:bedc1e39ac5bff82ff28b1f4a15d4f6579599a216a97f4569a2b5d03661c3142', controlFanOuts: [ { source: 'dtype', @@ -645,11 +645,11 @@ export const REGISTERED_BLOCK_V2_FANOUT_ROUTES = Object.freeze([ }, { definitionId: 'diffusers.modular:StableDiffusionXLModularPipeline:controlnet_text2image', - definitionContentHash: 'sha256:1011be82df459c17788313166d0c914aa4f6b373216a9250b12d599d51a0dcae', + definitionContentHash: 'sha256:e1ad5d816b5a0504c7ec86e2c6564c6738278e44b63ecc843e8f7d2b903da4bf', provider: 'diffusers', surface: 'diffusers_cluster_nodes', definitionKind: 'modular_pipeline_workflow', - libraryRevision: 'fbf49e7f35857f76bc57b177e26f12b03687c668', + libraryRevision: '7ecb1e1b4fe500be7fb7381a7bb79a24d7fa3941', pipelineClass: 'StableDiffusionXLModularPipeline', workflowId: 'controlnet_text2image', admissionId: @@ -674,8 +674,8 @@ export const REGISTERED_BLOCK_V2_FANOUT_ROUTES = Object.freeze([ { event: 'onSignal', field: 'controlnet_bundle', role: 'controlnet', valueSource: 'pipelineClass' }, { event: 'onChange', field: 'model_type', role: 'controlnetModel', valueSource: 'kind' }, ], - compiledDefinitionContentHash: 'block-definition-v2-62b6708c', - compiledDefinitionCanonicalSha256: 'sha256:2b50aac4b1d8866e0a2ed1fb9b6cf85985f414432e665358f8c9873c3201eb63', + compiledDefinitionContentHash: 'block-definition-v2-d2a5b837', + compiledDefinitionCanonicalSha256: 'sha256:8ea41e1acde1e0020af3d4b6b6dc5d2f0585b68d9c2fc130551fd0038c6701e9', controlFanOuts: [ { source: 'dtype', @@ -731,11 +731,11 @@ export const REGISTERED_BLOCK_V2_FANOUT_ROUTES = Object.freeze([ }, { definitionId: 'diffusers.modular:StableDiffusionXLModularPipeline:controlnet_union_image2image', - definitionContentHash: 'sha256:1ab4a9fe1d23afedde909e9b30afb904c7120a5722559aa1be2487926c56d1a3', + definitionContentHash: 'sha256:a7e880092af0552d14db0b3c8adf5a4dc9f6e0f54dd43505cb1299ca2679d895', provider: 'diffusers', surface: 'diffusers_cluster_nodes', definitionKind: 'modular_pipeline_workflow', - libraryRevision: 'fbf49e7f35857f76bc57b177e26f12b03687c668', + libraryRevision: '7ecb1e1b4fe500be7fb7381a7bb79a24d7fa3941', pipelineClass: 'StableDiffusionXLModularPipeline', workflowId: 'controlnet_union_image2image', admissionId: @@ -761,8 +761,8 @@ export const REGISTERED_BLOCK_V2_FANOUT_ROUTES = Object.freeze([ { event: 'onSignal', field: 'controlnet_bundle', role: 'controlnet', valueSource: 'pipelineClass' }, { event: 'onChange', field: 'model_type', role: 'controlnetModel', valueSource: 'controlnetKind' }, ], - compiledDefinitionContentHash: 'block-definition-v2-09cdf13e', - compiledDefinitionCanonicalSha256: 'sha256:003cdc8332a80da42308dc168bae21f83c6d9f3562cc15097db27290b570bbc4', + compiledDefinitionContentHash: 'block-definition-v2-6f88ed2e', + compiledDefinitionCanonicalSha256: 'sha256:10e69eaed9424818bf24d21807d3d0ab50aa404f9d88fa21795e07be8258320b', controlFanOuts: [ { source: 'dtype', @@ -834,11 +834,11 @@ export const REGISTERED_BLOCK_V2_FANOUT_ROUTES = Object.freeze([ }, { definitionId: 'diffusers.modular:StableDiffusionXLModularPipeline:controlnet_union_text2image', - definitionContentHash: 'sha256:ba49bcc8eb2d6d6cb8a5617ae6ea893f1e0886592b405f24a190600da9fce812', + definitionContentHash: 'sha256:c189c2a72258d620af9dac92b5415d13642b134b746457d20460eef8c0441fed', provider: 'diffusers', surface: 'diffusers_cluster_nodes', definitionKind: 'modular_pipeline_workflow', - libraryRevision: 'fbf49e7f35857f76bc57b177e26f12b03687c668', + libraryRevision: '7ecb1e1b4fe500be7fb7381a7bb79a24d7fa3941', pipelineClass: 'StableDiffusionXLModularPipeline', workflowId: 'controlnet_union_text2image', admissionId: @@ -863,8 +863,8 @@ export const REGISTERED_BLOCK_V2_FANOUT_ROUTES = Object.freeze([ { event: 'onSignal', field: 'controlnet_bundle', role: 'controlnet', valueSource: 'pipelineClass' }, { event: 'onChange', field: 'model_type', role: 'controlnetModel', valueSource: 'controlnetKind' }, ], - compiledDefinitionContentHash: 'block-definition-v2-5a1e2248', - compiledDefinitionCanonicalSha256: 'sha256:d5dae690566b36f8bbc8e6c9738223c6ebef27828c8c36bac03b4dc0acb7208a', + compiledDefinitionContentHash: 'block-definition-v2-c9fb7f83', + compiledDefinitionCanonicalSha256: 'sha256:8e791e1a9b8608e857f4a1d031f71ca4fd73d8c3fc333530167f1145f1593de0', controlFanOuts: [ { source: 'dtype', @@ -921,11 +921,11 @@ export const REGISTERED_BLOCK_V2_FANOUT_ROUTES = Object.freeze([ }, { definitionId: 'diffusers.modular:StableDiffusionXLModularPipeline:image2image', - definitionContentHash: 'sha256:92432f52bdfcef25ef7921460afe5e59239f07a6ce264da65095239e26b9f18b', + definitionContentHash: 'sha256:e18fd4d8b980643cbd8d4878c9065ce93df4ab9d134caaae1141b723be7ceac4', provider: 'diffusers', surface: 'diffusers_cluster_nodes', definitionKind: 'modular_pipeline_workflow', - libraryRevision: 'fbf49e7f35857f76bc57b177e26f12b03687c668', + libraryRevision: '7ecb1e1b4fe500be7fb7381a7bb79a24d7fa3941', pipelineClass: 'StableDiffusionXLModularPipeline', workflowId: 'image2image', admissionId: 'diffusers.cluster-admission:StableDiffusionXLModularPipeline:image2image:mode:image_to_image', @@ -947,8 +947,8 @@ export const REGISTERED_BLOCK_V2_FANOUT_ROUTES = Object.freeze([ { event: 'onSignal', field: 'unet', role: 'denoise', valueSource: 'pipelineClass' }, { event: 'onSignal', field: 'vae', role: 'decode', valueSource: 'pipelineClass' }, ], - compiledDefinitionContentHash: 'block-definition-v2-74caa01c', - compiledDefinitionCanonicalSha256: 'sha256:7c3bb7525d2fe74ca4ce65fc0e70da7d11e643fb3864c303c755f61d0a40b10d', + compiledDefinitionContentHash: 'block-definition-v2-78b06331', + compiledDefinitionCanonicalSha256: 'sha256:d16048d9a8859c7ef781023f10c0c2cbe3f88f2295cade176812cd99a35f5637', controlFanOuts: [ { source: 'seed', @@ -975,11 +975,11 @@ export const REGISTERED_BLOCK_V2_FANOUT_ROUTES = Object.freeze([ }, { definitionId: 'diffusers.modular:StableDiffusionXLModularPipeline:ip_adapter_controlnet_image2image', - definitionContentHash: 'sha256:40db194d5e5a73029775cfa6d27c91a31ba3ea274f9c72e7e182449de5778ebf', + definitionContentHash: 'sha256:fb4c375e415ed9f0c12565f65e187a9a8a50f2be1d2c3398d8226e50358d0158', provider: 'diffusers', surface: 'diffusers_cluster_nodes', definitionKind: 'modular_pipeline_workflow', - libraryRevision: 'fbf49e7f35857f76bc57b177e26f12b03687c668', + libraryRevision: '7ecb1e1b4fe500be7fb7381a7bb79a24d7fa3941', pipelineClass: 'StableDiffusionXLModularPipeline', workflowId: 'ip_adapter_controlnet_image2image', admissionId: @@ -1007,8 +1007,8 @@ export const REGISTERED_BLOCK_V2_FANOUT_ROUTES = Object.freeze([ { event: 'onSignal', field: 'unet', role: 'ipAdapter', valueSource: 'pipelineClass' }, { event: 'onSignal', field: 'guider_out', role: 'guider', valueSource: 'pipelineClass' }, ], - compiledDefinitionContentHash: 'block-definition-v2-35caf05c', - compiledDefinitionCanonicalSha256: 'sha256:daf330c7f49ad921b4646da32fd92a06e92220bcd8bf766ce4d4170e5e3465d7', + compiledDefinitionContentHash: 'block-definition-v2-8471dd70', + compiledDefinitionCanonicalSha256: 'sha256:22309165446e3fe286e050780d7dcbd510b282fb2f05ff65622becb6f245c9f6', controlFanOuts: [ { source: 'dtype', @@ -1095,11 +1095,11 @@ export const REGISTERED_BLOCK_V2_FANOUT_ROUTES = Object.freeze([ }, { definitionId: 'diffusers.modular:StableDiffusionXLModularPipeline:ip_adapter_controlnet_text2image', - definitionContentHash: 'sha256:ee554f2a27309fc36168af4ac1d7398e191d8b352a55171fe1b88dbaf3384619', + definitionContentHash: 'sha256:65a3ea8bdb03b96446245a2f8f7b0471875e658c5d60fed54ddcb200dec87af9', provider: 'diffusers', surface: 'diffusers_cluster_nodes', definitionKind: 'modular_pipeline_workflow', - libraryRevision: 'fbf49e7f35857f76bc57b177e26f12b03687c668', + libraryRevision: '7ecb1e1b4fe500be7fb7381a7bb79a24d7fa3941', pipelineClass: 'StableDiffusionXLModularPipeline', workflowId: 'ip_adapter_controlnet_text2image', admissionId: @@ -1126,8 +1126,8 @@ export const REGISTERED_BLOCK_V2_FANOUT_ROUTES = Object.freeze([ { event: 'onSignal', field: 'unet', role: 'ipAdapter', valueSource: 'pipelineClass' }, { event: 'onSignal', field: 'guider_out', role: 'guider', valueSource: 'pipelineClass' }, ], - compiledDefinitionContentHash: 'block-definition-v2-fb229571', - compiledDefinitionCanonicalSha256: 'sha256:a488cd28385440b4e3bb23316fffebfd36123d8df5a446bf19abd7b5d54cbced', + compiledDefinitionContentHash: 'block-definition-v2-4e0a0ec5', + compiledDefinitionCanonicalSha256: 'sha256:ffe18a17e0fb2304bf51c949424108c1c0074537f7ca813d90462ab9afef999b', controlFanOuts: [ { source: 'dtype', @@ -1202,11 +1202,11 @@ export const REGISTERED_BLOCK_V2_FANOUT_ROUTES = Object.freeze([ }, { definitionId: 'diffusers.modular:StableDiffusionXLModularPipeline:ip_adapter_controlnet_union_image2image', - definitionContentHash: 'sha256:8a3e340df4e536bb21946c0bbbd2b9e4b9f7214a150def53fc3919cc94a93986', + definitionContentHash: 'sha256:0a2e0647cbe2511f515e3cd7ea9e7caece637c1a48e05b82c6aedad1f91e9df5', provider: 'diffusers', surface: 'diffusers_cluster_nodes', definitionKind: 'modular_pipeline_workflow', - libraryRevision: 'fbf49e7f35857f76bc57b177e26f12b03687c668', + libraryRevision: '7ecb1e1b4fe500be7fb7381a7bb79a24d7fa3941', pipelineClass: 'StableDiffusionXLModularPipeline', workflowId: 'ip_adapter_controlnet_union_image2image', admissionId: @@ -1234,8 +1234,8 @@ export const REGISTERED_BLOCK_V2_FANOUT_ROUTES = Object.freeze([ { event: 'onSignal', field: 'unet', role: 'ipAdapter', valueSource: 'pipelineClass' }, { event: 'onSignal', field: 'guider_out', role: 'guider', valueSource: 'pipelineClass' }, ], - compiledDefinitionContentHash: 'block-definition-v2-40894fa2', - compiledDefinitionCanonicalSha256: 'sha256:ae2737cd68c4010155da7e3c2428eb958026a59f2844d7487e63a15b54182180', + compiledDefinitionContentHash: 'block-definition-v2-6ed9910a', + compiledDefinitionCanonicalSha256: 'sha256:e6cb37718813ef6010016f1a2cacf728a6678bd167630fff28f3613e576956d5', controlFanOuts: [ { source: 'dtype', @@ -1323,11 +1323,11 @@ export const REGISTERED_BLOCK_V2_FANOUT_ROUTES = Object.freeze([ }, { definitionId: 'diffusers.modular:StableDiffusionXLModularPipeline:ip_adapter_controlnet_union_text2image', - definitionContentHash: 'sha256:0fb15ac8a70b3c4ef0d60a1b69f946cf9ac568bfd45ea7c781657f0467bfa4fd', + definitionContentHash: 'sha256:18c12ccab11653b9b7e1dea579f8c339108f34ae4e06d5e3bbee5abe3b04b13b', provider: 'diffusers', surface: 'diffusers_cluster_nodes', definitionKind: 'modular_pipeline_workflow', - libraryRevision: 'fbf49e7f35857f76bc57b177e26f12b03687c668', + libraryRevision: '7ecb1e1b4fe500be7fb7381a7bb79a24d7fa3941', pipelineClass: 'StableDiffusionXLModularPipeline', workflowId: 'ip_adapter_controlnet_union_text2image', admissionId: @@ -1354,8 +1354,8 @@ export const REGISTERED_BLOCK_V2_FANOUT_ROUTES = Object.freeze([ { event: 'onSignal', field: 'unet', role: 'ipAdapter', valueSource: 'pipelineClass' }, { event: 'onSignal', field: 'guider_out', role: 'guider', valueSource: 'pipelineClass' }, ], - compiledDefinitionContentHash: 'block-definition-v2-70a97ed1', - compiledDefinitionCanonicalSha256: 'sha256:f88744a2fe1cb5a6535864fc8e10d6c9ecb9ca5101515b7aefd1528d19cac8e7', + compiledDefinitionContentHash: 'block-definition-v2-e32aeac4', + compiledDefinitionCanonicalSha256: 'sha256:1f4c0e95880104f73cf1ccb3b20cb0dd064fd6c8633e954748d094fb60dde0e5', controlFanOuts: [ { source: 'dtype', @@ -1431,11 +1431,11 @@ export const REGISTERED_BLOCK_V2_FANOUT_ROUTES = Object.freeze([ }, { definitionId: 'diffusers.modular:StableDiffusionXLModularPipeline:ip_adapter_image2image', - definitionContentHash: 'sha256:b6379a498e3c4b702346af9b58aceb77c6c8ee2844c2ef6d920e6f37fa8eb59f', + definitionContentHash: 'sha256:fd72201488bb3ac8c5219788b44e98d5d8c8aca4cce3c231a6dd7070574391b5', provider: 'diffusers', surface: 'diffusers_cluster_nodes', definitionKind: 'modular_pipeline_workflow', - libraryRevision: 'fbf49e7f35857f76bc57b177e26f12b03687c668', + libraryRevision: '7ecb1e1b4fe500be7fb7381a7bb79a24d7fa3941', pipelineClass: 'StableDiffusionXLModularPipeline', workflowId: 'ip_adapter_image2image', admissionId: @@ -1461,8 +1461,8 @@ export const REGISTERED_BLOCK_V2_FANOUT_ROUTES = Object.freeze([ { event: 'onSignal', field: 'unet', role: 'ipAdapter', valueSource: 'pipelineClass' }, { event: 'onSignal', field: 'guider_out', role: 'guider', valueSource: 'pipelineClass' }, ], - compiledDefinitionContentHash: 'block-definition-v2-e1a3b5c9', - compiledDefinitionCanonicalSha256: 'sha256:683dd9e2a6a59ffe0fa4827bae873794a49b2b50f41a876ccde501c20d86fa84', + compiledDefinitionContentHash: 'block-definition-v2-874adb59', + compiledDefinitionCanonicalSha256: 'sha256:936d77487a54c3266e09c83a166d53495f626681d8dae6bc104c093680e82abe', controlFanOuts: [ { source: 'alphaMode', @@ -1508,11 +1508,11 @@ export const REGISTERED_BLOCK_V2_FANOUT_ROUTES = Object.freeze([ }, { definitionId: 'diffusers.modular:StableDiffusionXLModularPipeline:ip_adapter_text2image', - definitionContentHash: 'sha256:174492bf80f034db7fd85a525cfb660f2e58bd7e1a0ba1e34746c85c56bc44fb', + definitionContentHash: 'sha256:3c93a493d0f34252aa0dbe903cc003a8eb5e310c6edfd0b91a039092899c84c4', provider: 'diffusers', surface: 'diffusers_cluster_nodes', definitionKind: 'modular_pipeline_workflow', - libraryRevision: 'fbf49e7f35857f76bc57b177e26f12b03687c668', + libraryRevision: '7ecb1e1b4fe500be7fb7381a7bb79a24d7fa3941', pipelineClass: 'StableDiffusionXLModularPipeline', workflowId: 'ip_adapter_text2image', admissionId: @@ -1537,8 +1537,8 @@ export const REGISTERED_BLOCK_V2_FANOUT_ROUTES = Object.freeze([ { event: 'onSignal', field: 'unet', role: 'ipAdapter', valueSource: 'pipelineClass' }, { event: 'onSignal', field: 'guider_out', role: 'guider', valueSource: 'pipelineClass' }, ], - compiledDefinitionContentHash: 'block-definition-v2-16224cfe', - compiledDefinitionCanonicalSha256: 'sha256:6581dda8e593d6d6819af8fcdb902b491de3ca48fb3c728e10d8b813c7939f2e', + compiledDefinitionContentHash: 'block-definition-v2-8c1723bc', + compiledDefinitionCanonicalSha256: 'sha256:0bcbd9927ebb8abb5ca32c08863fce741196b0007d87e562ff4bb1215fdcfeef', controlFanOuts: [ { source: 'guidanceScale', @@ -1569,11 +1569,11 @@ export const REGISTERED_BLOCK_V2_FANOUT_ROUTES = Object.freeze([ }, { definitionId: 'diffusers.modular:ZImageModularPipeline:image2image', - definitionContentHash: 'sha256:a5e7a24cd656718715683340a05f1ee9fdc44ee66f841742241eb7630dff4dac', + definitionContentHash: 'sha256:af0650eda36a076e95dfda6f5e525d96c594eaebb221c7d12547c267f7783c38', provider: 'diffusers', surface: 'diffusers_cluster_nodes', definitionKind: 'modular_pipeline_workflow', - libraryRevision: 'fbf49e7f35857f76bc57b177e26f12b03687c668', + libraryRevision: '7ecb1e1b4fe500be7fb7381a7bb79a24d7fa3941', pipelineClass: 'ZImageModularPipeline', workflowId: 'image2image', admissionId: 'diffusers.cluster-admission:ZImageModularPipeline:image2image:mode:image_to_image', @@ -1592,8 +1592,8 @@ export const REGISTERED_BLOCK_V2_FANOUT_ROUTES = Object.freeze([ { event: 'onSignal', field: 'unet', role: 'denoise', valueSource: 'pipelineClass' }, { event: 'onSignal', field: 'vae', role: 'decode', valueSource: 'pipelineClass' }, ], - compiledDefinitionContentHash: 'block-definition-v2-0bfa4331', - compiledDefinitionCanonicalSha256: 'sha256:64256f8f007c43934425d79786da4a7e4c325eea4efb8f05d959221377c174f5', + compiledDefinitionContentHash: 'block-definition-v2-7acfb228', + compiledDefinitionCanonicalSha256: 'sha256:4c19a9e3141ab0230aecf6ce97317859c2e1d4e776bc6b507e4095c3d8be13f5', controlFanOuts: [ { source: 'seed', @@ -1618,11 +1618,11 @@ export const REGISTERED_BLOCK_V2_FANOUT_ROUTES = Object.freeze([ }, { definitionId: 'diffusers.modular:AnimaModularPipeline:img2img', - definitionContentHash: 'sha256:ed74bc146d9488f2e8a55c21614b304291675db4abef3397689aa73e2aee57cc', + definitionContentHash: 'sha256:53bb7bf6d2e1f87869c6df5393450c3853d57bc9019d783fa673c6a69c51d74b', provider: 'diffusers', surface: 'diffusers_cluster_nodes', definitionKind: 'modular_pipeline_workflow', - libraryRevision: 'fbf49e7f35857f76bc57b177e26f12b03687c668', + libraryRevision: '7ecb1e1b4fe500be7fb7381a7bb79a24d7fa3941', pipelineClass: 'AnimaModularPipeline', workflowId: 'img2img', admissionId: 'diffusers.cluster-admission:AnimaModularPipeline:img2img:workflow:official_top_level_blocks', @@ -1638,8 +1638,8 @@ export const REGISTERED_BLOCK_V2_FANOUT_ROUTES = Object.freeze([ revision: '073c3a9db359c31ad0e8aa268d15775473c2176c', }, dynamicFieldActions: [{ event: 'onChange', field: 'model_type', role: 'models', valueSource: 'pipelineClass' }], - compiledDefinitionContentHash: 'block-definition-v2-578e0b47', - compiledDefinitionCanonicalSha256: 'sha256:a08be93132f6f8ec890b952bd2b2432bc73988f9787421b243e697f7b557575d', + compiledDefinitionContentHash: 'block-definition-v2-275616ad', + compiledDefinitionCanonicalSha256: 'sha256:949adc06ed23aabb5eaa72e83f214ac24e0a95b6f5df8b233248b027c7f90fa2', controlFanOuts: [ { source: 'width', @@ -1685,11 +1685,11 @@ export const REGISTERED_BLOCK_V2_FANOUT_ROUTES = Object.freeze([ }, { definitionId: 'diffusers.modular:FluxKontextModularPipeline:image_conditioned', - definitionContentHash: 'sha256:4dbb8f3fd553eace7876f3f2e6a8f8cbd84fe1ac5acb1a0448237135efe53abd', + definitionContentHash: 'sha256:784b0707d699dd243e9fb56e96c160f2acf69a6551b6b1749b8dd3f12629fdf3', provider: 'diffusers', surface: 'diffusers_cluster_nodes', definitionKind: 'modular_pipeline_workflow', - libraryRevision: 'fbf49e7f35857f76bc57b177e26f12b03687c668', + libraryRevision: '7ecb1e1b4fe500be7fb7381a7bb79a24d7fa3941', pipelineClass: 'FluxKontextModularPipeline', workflowId: 'image_conditioned', admissionId: 'diffusers.cluster-admission:FluxKontextModularPipeline:image_conditioned:mode:edit_image', @@ -1708,8 +1708,8 @@ export const REGISTERED_BLOCK_V2_FANOUT_ROUTES = Object.freeze([ { event: 'onSignal', field: 'unet', role: 'denoise', valueSource: 'pipelineClass' }, { event: 'onSignal', field: 'vae', role: 'decode', valueSource: 'pipelineClass' }, ], - compiledDefinitionContentHash: 'block-definition-v2-0926da6f', - compiledDefinitionCanonicalSha256: 'sha256:437a19b7e3ebfa0c522f4bb291a5ed299b2c991263a837e5868555cc91d36b8b', + compiledDefinitionContentHash: 'block-definition-v2-7e135208', + compiledDefinitionCanonicalSha256: 'sha256:d84941fe5c2709e7f0e4539c304247f204c3af03b424b082e9314913e0642bd3', controlFanOuts: [ { source: 'seed', @@ -1740,11 +1740,11 @@ export const REGISTERED_BLOCK_V2_FANOUT_ROUTES = Object.freeze([ }, { definitionId: 'diffusers.modular:HeliosModularPipeline:image2video', - definitionContentHash: 'sha256:073aca7efd1dbdd740f3a34005e55604ec5b6bbcb8c8aa00c885815ea4aaaefe', + definitionContentHash: 'sha256:d3c709878786b2c19b63a4e6ce7d8f1cdfbf2b96e735621e0a44c9bf2fdc8301', provider: 'diffusers', surface: 'diffusers_cluster_nodes', definitionKind: 'modular_pipeline_workflow', - libraryRevision: 'fbf49e7f35857f76bc57b177e26f12b03687c668', + libraryRevision: '7ecb1e1b4fe500be7fb7381a7bb79a24d7fa3941', pipelineClass: 'HeliosModularPipeline', workflowId: 'image2video', admissionId: 'diffusers.cluster-admission:HeliosModularPipeline:image2video:workflow:official_top_level_blocks', @@ -1757,8 +1757,8 @@ export const REGISTERED_BLOCK_V2_FANOUT_ROUTES = Object.freeze([ }, artifact: { repo: 'BestWishYsh/Helios-Base', revision: '5c50b6bc90eae9bd815d2a50b0c9877e3fd2cf88' }, dynamicFieldActions: [{ event: 'onChange', field: 'model_type', role: 'models', valueSource: 'pipelineClass' }], - compiledDefinitionContentHash: 'block-definition-v2-f5004a8f', - compiledDefinitionCanonicalSha256: 'sha256:590767e4387630d66c463380cd8e895a0ab3dfc72a01dcc4d7f685e5fda4cafc', + compiledDefinitionContentHash: 'block-definition-v2-adfac216', + compiledDefinitionCanonicalSha256: 'sha256:b657d30a3b13bb1122e3077569bf162a8e312d4df5bc1f8612da745cc7f9f02d', controlFanOuts: [ { source: 'width', @@ -1808,11 +1808,11 @@ export const REGISTERED_BLOCK_V2_FANOUT_ROUTES = Object.freeze([ }, { definitionId: 'diffusers.modular:HeliosModularPipeline:video2video', - definitionContentHash: 'sha256:96654b67aa5779f71e61a8c3f1feb6215c27e66435d0e6b7aeb4b6d302e3f9bf', + definitionContentHash: 'sha256:0f6244adef73f9c3a1c96522611febeb4e17563d78f941aa7f62e5c1c6d9859c', provider: 'diffusers', surface: 'diffusers_cluster_nodes', definitionKind: 'modular_pipeline_workflow', - libraryRevision: 'fbf49e7f35857f76bc57b177e26f12b03687c668', + libraryRevision: '7ecb1e1b4fe500be7fb7381a7bb79a24d7fa3941', pipelineClass: 'HeliosModularPipeline', workflowId: 'video2video', admissionId: 'diffusers.cluster-admission:HeliosModularPipeline:video2video:workflow:official_top_level_blocks', @@ -1825,8 +1825,8 @@ export const REGISTERED_BLOCK_V2_FANOUT_ROUTES = Object.freeze([ }, artifact: { repo: 'BestWishYsh/Helios-Base', revision: '5c50b6bc90eae9bd815d2a50b0c9877e3fd2cf88' }, dynamicFieldActions: [{ event: 'onChange', field: 'model_type', role: 'models', valueSource: 'pipelineClass' }], - compiledDefinitionContentHash: 'block-definition-v2-e39f4a52', - compiledDefinitionCanonicalSha256: 'sha256:6fdc8011c51729b40cb3be57a7d455f34e71bc7cd3477fe4724e0b47b6abd984', + compiledDefinitionContentHash: 'block-definition-v2-f4239c5e', + compiledDefinitionCanonicalSha256: 'sha256:92e2a3cc4eed10f22208a75382380cf041d0dd8b40e53eab3f6ecc276ad01f5f', controlFanOuts: [ { source: 'width', @@ -1876,11 +1876,11 @@ export const REGISTERED_BLOCK_V2_FANOUT_ROUTES = Object.freeze([ }, { definitionId: 'diffusers.modular:HeliosPyramidDistilledModularPipeline:image2video', - definitionContentHash: 'sha256:eb8bfe2c65424f17122c27303381c50f0628f4e110c641e1ffe061c5cf0d1110', + definitionContentHash: 'sha256:7c7d860f1f467a25121bf7818145e51ae50f06d82d2bc03eae9a267bc7823004', provider: 'diffusers', surface: 'diffusers_cluster_nodes', definitionKind: 'modular_pipeline_workflow', - libraryRevision: 'fbf49e7f35857f76bc57b177e26f12b03687c668', + libraryRevision: '7ecb1e1b4fe500be7fb7381a7bb79a24d7fa3941', pipelineClass: 'HeliosPyramidDistilledModularPipeline', workflowId: 'image2video', admissionId: @@ -1895,8 +1895,8 @@ export const REGISTERED_BLOCK_V2_FANOUT_ROUTES = Object.freeze([ }, artifact: { repo: 'BestWishYsh/Helios-Distilled', revision: 'b991c0379a018f4de3227d95468237f56066f5bb' }, dynamicFieldActions: [{ event: 'onChange', field: 'model_type', role: 'models', valueSource: 'pipelineClass' }], - compiledDefinitionContentHash: 'block-definition-v2-fb620788', - compiledDefinitionCanonicalSha256: 'sha256:3edbd1c77b7a4ca1774d883a515447233932ec21cae1fb76ee9fc859808da469', + compiledDefinitionContentHash: 'block-definition-v2-cc90157b', + compiledDefinitionCanonicalSha256: 'sha256:c0ba64dd152981981fb47a8b00669731f6f30d0ae17a986bb4adfe364f780118', controlFanOuts: [ { source: 'width', @@ -1945,11 +1945,11 @@ export const REGISTERED_BLOCK_V2_FANOUT_ROUTES = Object.freeze([ }, { definitionId: 'diffusers.modular:HeliosPyramidDistilledModularPipeline:video2video', - definitionContentHash: 'sha256:4ea18736f8b82b038811c21a4c13d0aff15a734e7e2e90de8d3112e2a54fd662', + definitionContentHash: 'sha256:8a48f37bfe822ce7c7be5df1442effee20a030bd1fe0f1cfd1e6d312342b6bb5', provider: 'diffusers', surface: 'diffusers_cluster_nodes', definitionKind: 'modular_pipeline_workflow', - libraryRevision: 'fbf49e7f35857f76bc57b177e26f12b03687c668', + libraryRevision: '7ecb1e1b4fe500be7fb7381a7bb79a24d7fa3941', pipelineClass: 'HeliosPyramidDistilledModularPipeline', workflowId: 'video2video', admissionId: @@ -1964,8 +1964,8 @@ export const REGISTERED_BLOCK_V2_FANOUT_ROUTES = Object.freeze([ }, artifact: { repo: 'BestWishYsh/Helios-Distilled', revision: 'b991c0379a018f4de3227d95468237f56066f5bb' }, dynamicFieldActions: [{ event: 'onChange', field: 'model_type', role: 'models', valueSource: 'pipelineClass' }], - compiledDefinitionContentHash: 'block-definition-v2-31c40e16', - compiledDefinitionCanonicalSha256: 'sha256:99464a7f918e112abbfc388f14c0b8a6cc2c21308179a0085e46a2abb03327dc', + compiledDefinitionContentHash: 'block-definition-v2-436870d8', + compiledDefinitionCanonicalSha256: 'sha256:db5d77e9c4bbd905d0075d19c10b1ef9f62c77e235d8ead409d1e167e54ea0db', controlFanOuts: [ { source: 'width', @@ -2014,11 +2014,11 @@ export const REGISTERED_BLOCK_V2_FANOUT_ROUTES = Object.freeze([ }, { definitionId: 'diffusers.modular:HeliosPyramidModularPipeline:image2video', - definitionContentHash: 'sha256:03be8855016746d9612dddf0691da98790942b9326f8a130af7c8b6d616e4df2', + definitionContentHash: 'sha256:8e41de79dd2f48a51887ad1556e22fa98afaf36fd7b6a7b6ccacee0a7aa599f3', provider: 'diffusers', surface: 'diffusers_cluster_nodes', definitionKind: 'modular_pipeline_workflow', - libraryRevision: 'fbf49e7f35857f76bc57b177e26f12b03687c668', + libraryRevision: '7ecb1e1b4fe500be7fb7381a7bb79a24d7fa3941', pipelineClass: 'HeliosPyramidModularPipeline', workflowId: 'image2video', admissionId: @@ -2033,8 +2033,8 @@ export const REGISTERED_BLOCK_V2_FANOUT_ROUTES = Object.freeze([ }, artifact: { repo: 'BestWishYsh/Helios-Mid', revision: '477c55427ec0ea774bdebd0fbe736313cfc5a312' }, dynamicFieldActions: [{ event: 'onChange', field: 'model_type', role: 'models', valueSource: 'pipelineClass' }], - compiledDefinitionContentHash: 'block-definition-v2-20e288e0', - compiledDefinitionCanonicalSha256: 'sha256:f30c63ce1acc80f215af28767c8ca0736610ff82f2ec24b75c250459bb827d5d', + compiledDefinitionContentHash: 'block-definition-v2-29db419c', + compiledDefinitionCanonicalSha256: 'sha256:fe384ffc7ae3aa84c4e5bd89ceea31e5f824cbd407c0933b04c65790cd40e6a6', controlFanOuts: [ { source: 'width', @@ -2083,11 +2083,11 @@ export const REGISTERED_BLOCK_V2_FANOUT_ROUTES = Object.freeze([ }, { definitionId: 'diffusers.modular:HeliosPyramidModularPipeline:video2video', - definitionContentHash: 'sha256:0e76a2fa6d4be50a2eb02d20394c8c29efe40bd80645d621e09d7decbb670bb1', + definitionContentHash: 'sha256:b4129c87696f1db0da94b6e97d1f68e05045a3770f7a838abec47389e2c357f8', provider: 'diffusers', surface: 'diffusers_cluster_nodes', definitionKind: 'modular_pipeline_workflow', - libraryRevision: 'fbf49e7f35857f76bc57b177e26f12b03687c668', + libraryRevision: '7ecb1e1b4fe500be7fb7381a7bb79a24d7fa3941', pipelineClass: 'HeliosPyramidModularPipeline', workflowId: 'video2video', admissionId: @@ -2102,8 +2102,8 @@ export const REGISTERED_BLOCK_V2_FANOUT_ROUTES = Object.freeze([ }, artifact: { repo: 'BestWishYsh/Helios-Mid', revision: '477c55427ec0ea774bdebd0fbe736313cfc5a312' }, dynamicFieldActions: [{ event: 'onChange', field: 'model_type', role: 'models', valueSource: 'pipelineClass' }], - compiledDefinitionContentHash: 'block-definition-v2-3148eac3', - compiledDefinitionCanonicalSha256: 'sha256:b7b8e493d036329a3f445da72de55054972442e5104d5fcad428a70f84acab9e', + compiledDefinitionContentHash: 'block-definition-v2-96feb2c3', + compiledDefinitionCanonicalSha256: 'sha256:15ade38e8eac9ae3a386867fb0a835ceb307d5a8a4b8729d6af5167371b5702a', controlFanOuts: [ { source: 'width', @@ -2152,11 +2152,11 @@ export const REGISTERED_BLOCK_V2_FANOUT_ROUTES = Object.freeze([ }, { definitionId: 'diffusers.modular:QwenImageModularPipeline:controlnet_image2image', - definitionContentHash: 'sha256:2f3169f613a4af69f2bc28d72743122415a2ab2bfd40b16e515a4d0b029476d8', + definitionContentHash: 'sha256:737af8143b91a6c42b6f5cd6f12ec841f2677863f05e86ed7a7f2b3ded5bc97c', provider: 'diffusers', surface: 'diffusers_cluster_nodes', definitionKind: 'modular_pipeline_workflow', - libraryRevision: 'fbf49e7f35857f76bc57b177e26f12b03687c668', + libraryRevision: '7ecb1e1b4fe500be7fb7381a7bb79a24d7fa3941', pipelineClass: 'QwenImageModularPipeline', workflowId: 'controlnet_image2image', admissionId: @@ -2179,8 +2179,8 @@ export const REGISTERED_BLOCK_V2_FANOUT_ROUTES = Object.freeze([ { event: 'onSignal', field: 'controlnet_bundle', role: 'controlnet', valueSource: 'pipelineClass' }, { event: 'onChange', field: 'model_type', role: 'controlnetModel', valueSource: 'kind' }, ], - compiledDefinitionContentHash: 'block-definition-v2-90a253c9', - compiledDefinitionCanonicalSha256: 'sha256:dd1e5d4402c257cc680c2acf7c160e17f5e90ea647071bad3a4cb0c234b8aef6', + compiledDefinitionContentHash: 'block-definition-v2-be1b982b', + compiledDefinitionCanonicalSha256: 'sha256:971bc6735fefb5938c3ed01bc67221255bb65e2f92a811e1bdff756178d6cbf3', controlFanOuts: [ { source: 'dtype', @@ -2275,11 +2275,11 @@ export const REGISTERED_BLOCK_V2_FANOUT_ROUTES = Object.freeze([ }, { definitionId: 'diffusers.modular:QwenImageModularPipeline:controlnet_text2image', - definitionContentHash: 'sha256:1e0391b3be46ce5a365fb4ef82cd7ed2441062992804fc7d3351d4c3ee39b5a0', + definitionContentHash: 'sha256:072afe6f8045a1ca699042611877583636e1a22e54c802fa31d786f8d4d8148e', provider: 'diffusers', surface: 'diffusers_cluster_nodes', definitionKind: 'modular_pipeline_workflow', - libraryRevision: 'fbf49e7f35857f76bc57b177e26f12b03687c668', + libraryRevision: '7ecb1e1b4fe500be7fb7381a7bb79a24d7fa3941', pipelineClass: 'QwenImageModularPipeline', workflowId: 'controlnet_text2image', admissionId: 'diffusers.cluster-admission:QwenImageModularPipeline:controlnet_text2image:mode:control_image', @@ -2299,8 +2299,8 @@ export const REGISTERED_BLOCK_V2_FANOUT_ROUTES = Object.freeze([ { event: 'onSignal', field: 'controlnet_bundle', role: 'controlnet', valueSource: 'pipelineClass' }, { event: 'onChange', field: 'model_type', role: 'controlnetModel', valueSource: 'kind' }, ], - compiledDefinitionContentHash: 'block-definition-v2-d82b1ee9', - compiledDefinitionCanonicalSha256: 'sha256:d7fc44b57c19790c419ae67df6ca06d4be38b365d6d5d5cda5f8672eefb5a52e', + compiledDefinitionContentHash: 'block-definition-v2-af7be9e7', + compiledDefinitionCanonicalSha256: 'sha256:069b75634e63d4842ba6703cacc7a6c61415cc69bab6fe043dabf87c983c440e', controlFanOuts: [ { source: 'dtype', @@ -2361,11 +2361,11 @@ export const REGISTERED_BLOCK_V2_FANOUT_ROUTES = Object.freeze([ }, { definitionId: 'diffusers.modular:QwenImageModularPipeline:image2image', - definitionContentHash: 'sha256:55badc85667c245c7b5647c45e99eb567c9f913a52bf66f86105fb215a058055', + definitionContentHash: 'sha256:b6316f8d5d6c30fe4e401074cfd58eec1629814b6650877381dc0354d93a417f', provider: 'diffusers', surface: 'diffusers_cluster_nodes', definitionKind: 'modular_pipeline_workflow', - libraryRevision: 'fbf49e7f35857f76bc57b177e26f12b03687c668', + libraryRevision: '7ecb1e1b4fe500be7fb7381a7bb79a24d7fa3941', pipelineClass: 'QwenImageModularPipeline', workflowId: 'image2image', admissionId: 'diffusers.cluster-admission:QwenImageModularPipeline:image2image:state_flow:image2image', @@ -2384,8 +2384,8 @@ export const REGISTERED_BLOCK_V2_FANOUT_ROUTES = Object.freeze([ { event: 'onSignal', field: 'unet', role: 'denoise', valueSource: 'pipelineClass' }, { event: 'onSignal', field: 'vae', role: 'decode', valueSource: 'pipelineClass' }, ], - compiledDefinitionContentHash: 'block-definition-v2-bbf978ff', - compiledDefinitionCanonicalSha256: 'sha256:2fc1a0cfcc1c083acd7c9e580c2fd2b762497f04016f06fdecbe71985f789c06', + compiledDefinitionContentHash: 'block-definition-v2-cec92afd', + compiledDefinitionCanonicalSha256: 'sha256:797efcfa5833d781ce996e78c0cf48c015977acc26d9b18f1cdeaa1d257b726e', controlFanOuts: [ { source: 'height', @@ -2431,11 +2431,11 @@ export const REGISTERED_BLOCK_V2_FANOUT_ROUTES = Object.freeze([ }, { definitionId: 'diffusers.modular:HeliosModularPipeline:text2video', - definitionContentHash: 'sha256:387ce545153ddc2ae3ce26f1ae0939568a77f4528286908fa52771679d9cd3ee', + definitionContentHash: 'sha256:e9c8554cb31318c5b652da2cb0e4aabc28d254a4db82850d7f85a377e8bc5ad2', provider: 'diffusers', surface: 'diffusers_cluster_nodes', definitionKind: 'modular_pipeline_workflow', - libraryRevision: 'fbf49e7f35857f76bc57b177e26f12b03687c668', + libraryRevision: '7ecb1e1b4fe500be7fb7381a7bb79a24d7fa3941', pipelineClass: 'HeliosModularPipeline', workflowId: 'text2video', admissionId: 'diffusers.cluster-admission:HeliosModularPipeline:text2video:workflow:official_top_level_blocks', @@ -2448,8 +2448,8 @@ export const REGISTERED_BLOCK_V2_FANOUT_ROUTES = Object.freeze([ }, artifact: { repo: 'BestWishYsh/Helios-Base', revision: '5c50b6bc90eae9bd815d2a50b0c9877e3fd2cf88' }, dynamicFieldActions: [{ event: 'onChange', field: 'model_type', role: 'models', valueSource: 'pipelineClass' }], - compiledDefinitionContentHash: 'block-definition-v2-53447f68', - compiledDefinitionCanonicalSha256: 'sha256:a91952ba99290443d94050f889d103e57982cf75e7d3c013eeffac838debef92', + compiledDefinitionContentHash: 'block-definition-v2-38e4c600', + compiledDefinitionCanonicalSha256: 'sha256:f0909da495699287df678c136758f12a6c968cd48a64e06aba5e013d0bc70b45', controlFanOuts: [ { source: 'steps', @@ -2479,11 +2479,11 @@ export const REGISTERED_BLOCK_V2_FANOUT_ROUTES = Object.freeze([ }, { definitionId: 'diffusers.modular:HeliosPyramidDistilledModularPipeline:text2video', - definitionContentHash: 'sha256:729c7d5846d2c4ca2faeb63c3bbf08c5964378d7b376bce01fb0562263cc1bb1', + definitionContentHash: 'sha256:a1dfa96b4f30a8b5db1256e4d91478d0420729853c88283ff58b2c94fea65338', provider: 'diffusers', surface: 'diffusers_cluster_nodes', definitionKind: 'modular_pipeline_workflow', - libraryRevision: 'fbf49e7f35857f76bc57b177e26f12b03687c668', + libraryRevision: '7ecb1e1b4fe500be7fb7381a7bb79a24d7fa3941', pipelineClass: 'HeliosPyramidDistilledModularPipeline', workflowId: 'text2video', admissionId: @@ -2498,8 +2498,8 @@ export const REGISTERED_BLOCK_V2_FANOUT_ROUTES = Object.freeze([ }, artifact: { repo: 'BestWishYsh/Helios-Distilled', revision: 'b991c0379a018f4de3227d95468237f56066f5bb' }, dynamicFieldActions: [{ event: 'onChange', field: 'model_type', role: 'models', valueSource: 'pipelineClass' }], - compiledDefinitionContentHash: 'block-definition-v2-7cad2bd4', - compiledDefinitionCanonicalSha256: 'sha256:ee7863c325fe315f05f13d8315f327903802398e397ff2b6ab45a36f78ce86c5', + compiledDefinitionContentHash: 'block-definition-v2-5638e6b6', + compiledDefinitionCanonicalSha256: 'sha256:a231ad2124c83163a31f6dbb6b48c02290c2c633ec583655d89a09741bf927ac', controlFanOuts: [ { source: 'steps', @@ -2528,11 +2528,11 @@ export const REGISTERED_BLOCK_V2_FANOUT_ROUTES = Object.freeze([ }, { definitionId: 'diffusers.modular:HeliosPyramidModularPipeline:text2video', - definitionContentHash: 'sha256:78a446ec5b934c4487cbec459537e8cb062f447f2b1d2981b77d85d2c43b79b4', + definitionContentHash: 'sha256:678c5d1a30a883492f6a35cf82e5a770862544dd5454727a88eda9a3922460ea', provider: 'diffusers', surface: 'diffusers_cluster_nodes', definitionKind: 'modular_pipeline_workflow', - libraryRevision: 'fbf49e7f35857f76bc57b177e26f12b03687c668', + libraryRevision: '7ecb1e1b4fe500be7fb7381a7bb79a24d7fa3941', pipelineClass: 'HeliosPyramidModularPipeline', workflowId: 'text2video', admissionId: @@ -2547,8 +2547,8 @@ export const REGISTERED_BLOCK_V2_FANOUT_ROUTES = Object.freeze([ }, artifact: { repo: 'BestWishYsh/Helios-Mid', revision: '477c55427ec0ea774bdebd0fbe736313cfc5a312' }, dynamicFieldActions: [{ event: 'onChange', field: 'model_type', role: 'models', valueSource: 'pipelineClass' }], - compiledDefinitionContentHash: 'block-definition-v2-32fbceb9', - compiledDefinitionCanonicalSha256: 'sha256:8f05f80a37edea09b5e68607025cf8a18e52e543e642334ed8681e527d73eb4d', + compiledDefinitionContentHash: 'block-definition-v2-d7531fb0', + compiledDefinitionCanonicalSha256: 'sha256:c7f3e3bb1c56714c495448e2e76e9e968d89646f419473f9ccee36721a44f732', controlFanOuts: [ { source: 'steps', @@ -2577,11 +2577,11 @@ export const REGISTERED_BLOCK_V2_FANOUT_ROUTES = Object.freeze([ }, { definitionId: 'diffusers.modular:HunyuanVideo15ModularPipeline:image2video', - definitionContentHash: 'sha256:548af4b2dfa18d376237a478f7406895cc8c9e3114e5b877e66139d639e76460', + definitionContentHash: 'sha256:4087769bd1cd31b176c5cd4632187206f398383f5606af2f47cade63565dc8af', provider: 'diffusers', surface: 'diffusers_cluster_nodes', definitionKind: 'modular_pipeline_workflow', - libraryRevision: 'fbf49e7f35857f76bc57b177e26f12b03687c668', + libraryRevision: '7ecb1e1b4fe500be7fb7381a7bb79a24d7fa3941', pipelineClass: 'HunyuanVideo15ModularPipeline', workflowId: 'image2video', admissionId: @@ -2599,8 +2599,8 @@ export const REGISTERED_BLOCK_V2_FANOUT_ROUTES = Object.freeze([ revision: '854c04a4c8a53d990b418c7478f0802c0fc8c726', }, dynamicFieldActions: [{ event: 'onChange', field: 'model_type', role: 'models', valueSource: 'pipelineClass' }], - compiledDefinitionContentHash: 'block-definition-v2-8cdc3b18', - compiledDefinitionCanonicalSha256: 'sha256:51361ccc00845cd953b8b6e027528948446bd1a6021a9fc18d4e1868f673ea46', + compiledDefinitionContentHash: 'block-definition-v2-906617a0', + compiledDefinitionCanonicalSha256: 'sha256:5865d8e0b98a9a5970c5172d1f37ab32d214246549d094cf1fa3df52e9610a97', controlFanOuts: [], boundary: { inputs: [ @@ -2636,11 +2636,11 @@ export const REGISTERED_BLOCK_V2_FANOUT_ROUTES = Object.freeze([ }, { definitionId: 'diffusers.modular:HunyuanVideo15ModularPipeline:text2video', - definitionContentHash: 'sha256:5411f2e3bd9efa5f856a319a38a26da4564ee9f5eb85e87d95ebc54e5c1297fc', + definitionContentHash: 'sha256:ead27fa446fe0146c7daa144e149dbcfa2566e461f338aa5f4963cb8547ca1ff', provider: 'diffusers', surface: 'diffusers_cluster_nodes', definitionKind: 'modular_pipeline_workflow', - libraryRevision: 'fbf49e7f35857f76bc57b177e26f12b03687c668', + libraryRevision: '7ecb1e1b4fe500be7fb7381a7bb79a24d7fa3941', pipelineClass: 'HunyuanVideo15ModularPipeline', workflowId: 'text2video', admissionId: @@ -2658,8 +2658,8 @@ export const REGISTERED_BLOCK_V2_FANOUT_ROUTES = Object.freeze([ revision: '286be7ce72277246578a3e3cc2487e95ddae5bcf', }, dynamicFieldActions: [{ event: 'onChange', field: 'model_type', role: 'models', valueSource: 'pipelineClass' }], - compiledDefinitionContentHash: 'block-definition-v2-022a807f', - compiledDefinitionCanonicalSha256: 'sha256:e6c45f4e483a8063066a7d70fdb2d40d807f0d5a6c86f7334b95870f0efb0956', + compiledDefinitionContentHash: 'block-definition-v2-cdfa4197', + compiledDefinitionCanonicalSha256: 'sha256:8f7f55a8b885dc17a3f01141e71f773584222807155a49d8a69f2ea96945f9fa', controlFanOuts: [], boundary: { inputs: [ @@ -2688,11 +2688,11 @@ export const REGISTERED_BLOCK_V2_FANOUT_ROUTES = Object.freeze([ }, { definitionId: 'diffusers.modular:LTX2ModularPipeline:condition', - definitionContentHash: 'sha256:cfd6c5caf69573879d3a057ebf81190a312e1beb9dab59a3fdd2a58199db608d', + definitionContentHash: 'sha256:83cff50c6e67d44ee021db6f9119ea3f2277d25c015372cfbcb9dae1c89eddbd', provider: 'diffusers', surface: 'diffusers_cluster_nodes', definitionKind: 'modular_pipeline_workflow', - libraryRevision: 'fbf49e7f35857f76bc57b177e26f12b03687c668', + libraryRevision: '7ecb1e1b4fe500be7fb7381a7bb79a24d7fa3941', pipelineClass: 'LTX2ModularPipeline', workflowId: 'condition', admissionId: 'diffusers.cluster-admission:LTX2ModularPipeline:condition:mode:equivalent_standard_route', @@ -2705,8 +2705,8 @@ export const REGISTERED_BLOCK_V2_FANOUT_ROUTES = Object.freeze([ }, artifact: { repo: 'Lightricks/LTX-2', revision: '47da56e2ad66ce4125a9922b4a8826bf407f9d0a' }, dynamicFieldActions: [], - compiledDefinitionContentHash: 'block-definition-v2-6713fdde', - compiledDefinitionCanonicalSha256: 'sha256:a14568bf9d7fcaef54387c98181344cf1993da90953cfc94a670608c7acc6114', + compiledDefinitionContentHash: 'block-definition-v2-38a0b5d5', + compiledDefinitionCanonicalSha256: 'sha256:498a6c2cda6d4c9ad08cae37a44c7d57673cd6222de29e583c1633afc676d112', controlFanOuts: [ { source: 'dtype', @@ -2762,11 +2762,11 @@ export const REGISTERED_BLOCK_V2_FANOUT_ROUTES = Object.freeze([ }, { definitionId: 'diffusers.modular:LTX2ModularPipeline:image2video', - definitionContentHash: 'sha256:be0da1a77e651a7a6398a8270239d0e7a06a01e529bdbbc18e5baea68b46cb07', + definitionContentHash: 'sha256:a604ee6b1b1a25a598057c35ed358a77b0a23c9ebdaf100f4f36fa0d13a9ca39', provider: 'diffusers', surface: 'diffusers_cluster_nodes', definitionKind: 'modular_pipeline_workflow', - libraryRevision: 'fbf49e7f35857f76bc57b177e26f12b03687c668', + libraryRevision: '7ecb1e1b4fe500be7fb7381a7bb79a24d7fa3941', pipelineClass: 'LTX2ModularPipeline', workflowId: 'image2video', admissionId: 'diffusers.cluster-admission:LTX2ModularPipeline:image2video:mode:equivalent_standard_route', @@ -2779,8 +2779,8 @@ export const REGISTERED_BLOCK_V2_FANOUT_ROUTES = Object.freeze([ }, artifact: { repo: 'Lightricks/LTX-2', revision: '47da56e2ad66ce4125a9922b4a8826bf407f9d0a' }, dynamicFieldActions: [], - compiledDefinitionContentHash: 'block-definition-v2-600e7ed3', - compiledDefinitionCanonicalSha256: 'sha256:b96d2420b7aa322626c3bdaec21ddbd575e41bf81da4655b58e49a3cf4df5916', + compiledDefinitionContentHash: 'block-definition-v2-5fd8a8da', + compiledDefinitionCanonicalSha256: 'sha256:a753c5dc2234d69d7f02c8236b142941a85c7a947b1b320ed59e03f98103a29f', controlFanOuts: [ { source: 'dtype', @@ -2836,11 +2836,11 @@ export const REGISTERED_BLOCK_V2_FANOUT_ROUTES = Object.freeze([ }, { definitionId: 'diffusers.modular:LTX2ModularPipeline:in_context', - definitionContentHash: 'sha256:3608f93bfd83b70bb424135e1560a2bc9415638c8b3722db3ff6c4bd3e08008b', + definitionContentHash: 'sha256:fc84cf3b2b8d890c87b29a6a400df6da5721f96c1048c28b8739f81c06f33187', provider: 'diffusers', surface: 'diffusers_cluster_nodes', definitionKind: 'modular_pipeline_workflow', - libraryRevision: 'fbf49e7f35857f76bc57b177e26f12b03687c668', + libraryRevision: '7ecb1e1b4fe500be7fb7381a7bb79a24d7fa3941', pipelineClass: 'LTX2ModularPipeline', workflowId: 'in_context', admissionId: 'diffusers.cluster-admission:LTX2ModularPipeline:in_context:mode:equivalent_standard_route', @@ -2853,8 +2853,8 @@ export const REGISTERED_BLOCK_V2_FANOUT_ROUTES = Object.freeze([ }, artifact: { repo: 'Lightricks/LTX-2', revision: '47da56e2ad66ce4125a9922b4a8826bf407f9d0a' }, dynamicFieldActions: [], - compiledDefinitionContentHash: 'block-definition-v2-2b67da8a', - compiledDefinitionCanonicalSha256: 'sha256:87871081192b5953406e98625337786c659ce9c06576ab32e7f9f32ae94e858a', + compiledDefinitionContentHash: 'block-definition-v2-34eb329c', + compiledDefinitionCanonicalSha256: 'sha256:56615efb7373062362a859d5adbbcdbfd89a05aecfd54be4689b19ed9691ee2a', controlFanOuts: [ { source: 'dtype', @@ -2944,11 +2944,11 @@ export const REGISTERED_BLOCK_V2_FANOUT_ROUTES = Object.freeze([ }, { definitionId: 'diffusers.modular:LTX2ModularPipeline:text2video', - definitionContentHash: 'sha256:8e272460400b5a3283e91a4ef7f22b5a74f3a350229da0ad2e743ee9c211fc91', + definitionContentHash: 'sha256:da393ebd9c6f2bbcaa60394a9a300b91f5c4dad7c5ef7744d56089e47b8212c7', provider: 'diffusers', surface: 'diffusers_cluster_nodes', definitionKind: 'modular_pipeline_workflow', - libraryRevision: 'fbf49e7f35857f76bc57b177e26f12b03687c668', + libraryRevision: '7ecb1e1b4fe500be7fb7381a7bb79a24d7fa3941', pipelineClass: 'LTX2ModularPipeline', workflowId: 'text2video', admissionId: 'diffusers.cluster-admission:LTX2ModularPipeline:text2video:mode:equivalent_standard_route', @@ -2961,8 +2961,8 @@ export const REGISTERED_BLOCK_V2_FANOUT_ROUTES = Object.freeze([ }, artifact: { repo: 'Lightricks/LTX-2', revision: '47da56e2ad66ce4125a9922b4a8826bf407f9d0a' }, dynamicFieldActions: [], - compiledDefinitionContentHash: 'block-definition-v2-9082a664', - compiledDefinitionCanonicalSha256: 'sha256:e6784bdd36f1c57267443ae7ab1a0f0baa6ecf9bf139262e3232b936a510441c', + compiledDefinitionContentHash: 'block-definition-v2-09dc4e30', + compiledDefinitionCanonicalSha256: 'sha256:18500eb0d20609cda7f44f9d86041dcf6efbdcdfffe137e32256eca7af6baf7e', controlFanOuts: [ { source: 'dtype', @@ -3017,11 +3017,11 @@ export const REGISTERED_BLOCK_V2_FANOUT_ROUTES = Object.freeze([ }, { definitionId: 'diffusers.composite:WanTI2VPipeline:text_to_video', - definitionContentHash: 'sha256:99bea29fcb3b1ca84527076cc678caa75497b8494bcdbe7bc025035867c8ad59', + definitionContentHash: 'sha256:489bd3435e1e4569b8c95349f1ef3744d7aa31c53db473903e0f0e5b8eede32e', provider: 'diffusers', surface: 'diffusers_cluster_nodes', definitionKind: 'studio_execution_composite', - libraryRevision: 'fbf49e7f35857f76bc57b177e26f12b03687c668', + libraryRevision: '7ecb1e1b4fe500be7fb7381a7bb79a24d7fa3941', pipelineClass: 'WanTI2VPipeline', workflowId: 'text_to_video', admissionId: 'diffusers.cluster-admission:WanTI2VPipeline:text_to_video:mode:text_to_video', @@ -3034,8 +3034,8 @@ export const REGISTERED_BLOCK_V2_FANOUT_ROUTES = Object.freeze([ }, artifact: { repo: 'Wan-AI/Wan2.2-TI2V-5B-Diffusers', revision: 'b8fff7315c768468a5333511427288870b2e9635' }, dynamicFieldActions: [], - compiledDefinitionContentHash: 'block-definition-v2-57ab747c', - compiledDefinitionCanonicalSha256: 'sha256:8af357163fa004e28e592250a768274589ebea109dd7418edcc18e493f158647', + compiledDefinitionContentHash: 'block-definition-v2-51eb948a', + compiledDefinitionCanonicalSha256: 'sha256:96ce722f1733ab353be2281084e34541bc2f944bc3b0cbe3d66711c869bc3718', controlFanOuts: [ { source: 'dtype', @@ -3086,11 +3086,11 @@ export const REGISTERED_BLOCK_V2_FANOUT_ROUTES = Object.freeze([ }, { definitionId: 'diffusers.modular:Wan22Image2VideoModularPipeline:default', - definitionContentHash: 'sha256:59d205fcc1119dbe0c0994ad71bf5dde20e84568a5eb59970f2456a64f5c7af4', + definitionContentHash: 'sha256:248476fdfc8386db1421e9c682e57fd88673571838465e684366805b749e7c14', provider: 'diffusers', surface: 'diffusers_cluster_nodes', definitionKind: 'modular_pipeline_workflow', - libraryRevision: 'fbf49e7f35857f76bc57b177e26f12b03687c668', + libraryRevision: '7ecb1e1b4fe500be7fb7381a7bb79a24d7fa3941', pipelineClass: 'Wan22Image2VideoModularPipeline', workflowId: 'default', admissionId: 'diffusers.cluster-admission:Wan22Image2VideoModularPipeline:default:mode:equivalent_standard_route', @@ -3104,8 +3104,8 @@ export const REGISTERED_BLOCK_V2_FANOUT_ROUTES = Object.freeze([ }, artifact: { repo: 'Wan-AI/Wan2.2-I2V-A14B-Diffusers', revision: '596658fd9ca6b7b71d5057529bbf319ecbc61d74' }, dynamicFieldActions: [], - compiledDefinitionContentHash: 'block-definition-v2-aedf1209', - compiledDefinitionCanonicalSha256: 'sha256:88ab8affb600dced7a9856485b704c2130e69bb30c9b16f297ac2ac73112fdd1', + compiledDefinitionContentHash: 'block-definition-v2-7c1c3d43', + compiledDefinitionCanonicalSha256: 'sha256:46560417f8ee5e67fa37e13fd03ddbf696ca69866bdb046598b373f1139f218a', controlFanOuts: [ { source: 'dtype', @@ -3157,11 +3157,11 @@ export const REGISTERED_BLOCK_V2_FANOUT_ROUTES = Object.freeze([ }, { definitionId: 'diffusers.modular:Wan22ModularPipeline:default', - definitionContentHash: 'sha256:f0f5264665d2298affd2c1fc68aa38b4e918184bdc3a9a9f1cd3942cc8ef89fe', + definitionContentHash: 'sha256:188390a2fa13aa6c448d8f311fa77a53a0ddeea929800822e20afaa6e3c9bfd0', provider: 'diffusers', surface: 'diffusers_cluster_nodes', definitionKind: 'modular_pipeline_workflow', - libraryRevision: 'fbf49e7f35857f76bc57b177e26f12b03687c668', + libraryRevision: '7ecb1e1b4fe500be7fb7381a7bb79a24d7fa3941', pipelineClass: 'Wan22ModularPipeline', workflowId: 'default', admissionId: 'diffusers.cluster-admission:Wan22ModularPipeline:default:mode:equivalent_standard_route', @@ -3174,8 +3174,8 @@ export const REGISTERED_BLOCK_V2_FANOUT_ROUTES = Object.freeze([ }, artifact: { repo: 'Wan-AI/Wan2.2-T2V-A14B-Diffusers', revision: '5be7df9619b54f4e2667b2755bc6a756675b5cd7' }, dynamicFieldActions: [], - compiledDefinitionContentHash: 'block-definition-v2-ddd4f9b0', - compiledDefinitionCanonicalSha256: 'sha256:150e87df4d795674d40afac448f550fd5d4ff8b5398c7d0774e89bddbec268f5', + compiledDefinitionContentHash: 'block-definition-v2-6f35c578', + compiledDefinitionCanonicalSha256: 'sha256:dd50545749fcde2f5cbeeb9afac979f28c50c806f9138167e2a8a21a8b44d4af', controlFanOuts: [ { source: 'dtype', @@ -3226,11 +3226,11 @@ export const REGISTERED_BLOCK_V2_FANOUT_ROUTES = Object.freeze([ }, { definitionId: 'diffusers.modular:WanAnimate2DistilledModularPipeline:default', - definitionContentHash: 'sha256:26ec62f8677b2217406136230e94330d9ccb84b632c7c9706811dbbbb0d2cbca', + definitionContentHash: 'sha256:313755c79acfe503f3597b082a213c36b7c83c56fb70560752b251ce73d72b73', provider: 'diffusers', surface: 'diffusers_cluster_nodes', definitionKind: 'modular_pipeline_workflow', - libraryRevision: 'fbf49e7f35857f76bc57b177e26f12b03687c668', + libraryRevision: '7ecb1e1b4fe500be7fb7381a7bb79a24d7fa3941', pipelineClass: 'WanAnimate2DistilledModularPipeline', workflowId: 'default', admissionId: @@ -3248,8 +3248,8 @@ export const REGISTERED_BLOCK_V2_FANOUT_ROUTES = Object.freeze([ revision: '59e4141466bcb1bf9733eca1bc78be6891c9fbdf', }, dynamicFieldActions: [{ event: 'onChange', field: 'model_type', role: 'models', valueSource: 'pipelineClass' }], - compiledDefinitionContentHash: 'block-definition-v2-0ff56f56', - compiledDefinitionCanonicalSha256: 'sha256:bc8674758a63eeb97830d1e7a7e7809525e3c6c54da389587e79c7e9d17d4240', + compiledDefinitionContentHash: 'block-definition-v2-577b351b', + compiledDefinitionCanonicalSha256: 'sha256:2ea0f473a1d415798fc79a6ce01fc9b7795b4f4597737052e8582d524338892f', controlFanOuts: [ { source: 'fps', @@ -3289,11 +3289,11 @@ export const REGISTERED_BLOCK_V2_FANOUT_ROUTES = Object.freeze([ }, { definitionId: 'diffusers.modular:WanAnimate2ModularPipeline:default', - definitionContentHash: 'sha256:4aa8b414e98957ef2506d75cdf371e2e87cf553e10638bff827b5e2661f939fe', + definitionContentHash: 'sha256:1575deb86d25a6b1d4b87077e7aafc9be2d7b66794ed8fae62fc6a8b173f9d20', provider: 'diffusers', surface: 'diffusers_cluster_nodes', definitionKind: 'modular_pipeline_workflow', - libraryRevision: 'fbf49e7f35857f76bc57b177e26f12b03687c668', + libraryRevision: '7ecb1e1b4fe500be7fb7381a7bb79a24d7fa3941', pipelineClass: 'WanAnimate2ModularPipeline', workflowId: 'default', admissionId: 'diffusers.cluster-admission:WanAnimate2ModularPipeline:default:workflow:official_top_level_blocks', @@ -3307,8 +3307,8 @@ export const REGISTERED_BLOCK_V2_FANOUT_ROUTES = Object.freeze([ }, artifact: { repo: 'Wan-AI/Wan2.2-Animate-2-14B-Diffusers', revision: '7d48412d7b903ff3a89f4f5a960d99e1899605a1' }, dynamicFieldActions: [{ event: 'onChange', field: 'model_type', role: 'models', valueSource: 'pipelineClass' }], - compiledDefinitionContentHash: 'block-definition-v2-32eb6bd4', - compiledDefinitionCanonicalSha256: 'sha256:75d8fd5dde2f9ebc3385342d42fd2ff04bba9c3f8dc9c645d36bd251b58f9eca', + compiledDefinitionContentHash: 'block-definition-v2-6f2a2fe5', + compiledDefinitionCanonicalSha256: 'sha256:78cde005da51de9dccfcb04f3e5616c55bf78862039cb6eb487cfff317b737bc', controlFanOuts: [ { source: 'fps', @@ -3348,11 +3348,11 @@ export const REGISTERED_BLOCK_V2_FANOUT_ROUTES = Object.freeze([ }, { definitionId: 'diffusers.modular:WanImage2VideoModularPipeline:flf2v', - definitionContentHash: 'sha256:97d2ab7d92b6736a34e86a0fd53529bfc6eb89f5e9b18ce86154a6dca14606c8', + definitionContentHash: 'sha256:92152087d128d27539ce3ccbad6e013fb3469fccfa1ceffe38ed08a047944a03', provider: 'diffusers', surface: 'diffusers_cluster_nodes', definitionKind: 'modular_pipeline_workflow', - libraryRevision: 'fbf49e7f35857f76bc57b177e26f12b03687c668', + libraryRevision: '7ecb1e1b4fe500be7fb7381a7bb79a24d7fa3941', pipelineClass: 'WanImage2VideoModularPipeline', workflowId: 'flf2v', admissionId: 'diffusers.cluster-admission:WanImage2VideoModularPipeline:flf2v:state_flow:flf2v', @@ -3372,8 +3372,8 @@ export const REGISTERED_BLOCK_V2_FANOUT_ROUTES = Object.freeze([ { event: 'onSignal', field: 'unet', role: 'denoise', valueSource: 'pipelineClass' }, { event: 'onSignal', field: 'vae', role: 'decode', valueSource: 'pipelineClass' }, ], - compiledDefinitionContentHash: 'block-definition-v2-89d894ac', - compiledDefinitionCanonicalSha256: 'sha256:a69dea917902f513d97c96d96a3eff34d234285de78a69299c3e68bacb646d74', + compiledDefinitionContentHash: 'block-definition-v2-1ef8b64c', + compiledDefinitionCanonicalSha256: 'sha256:f711000c4bdc046e303629f347fd315bd13beae92b15c87362fbde0505ee5f1e', controlFanOuts: [ { source: 'alphaMode', @@ -3438,11 +3438,11 @@ export const REGISTERED_BLOCK_V2_FANOUT_ROUTES = Object.freeze([ }, { definitionId: 'diffusers.modular:WanImage2VideoModularPipeline:image2video', - definitionContentHash: 'sha256:02a87650c44f9fc82e10fc22771cbacc534eff3ea4adbb0a3f3d37ca6d7fc698', + definitionContentHash: 'sha256:1e2d40c12e3571f059a6e242e1dbdb43819e4641b64a3d531b732ef12a0d6daf', provider: 'diffusers', surface: 'diffusers_cluster_nodes', definitionKind: 'modular_pipeline_workflow', - libraryRevision: 'fbf49e7f35857f76bc57b177e26f12b03687c668', + libraryRevision: '7ecb1e1b4fe500be7fb7381a7bb79a24d7fa3941', pipelineClass: 'WanImage2VideoModularPipeline', workflowId: 'image2video', admissionId: 'diffusers.cluster-admission:WanImage2VideoModularPipeline:image2video:mode:image_to_video', @@ -3462,8 +3462,8 @@ export const REGISTERED_BLOCK_V2_FANOUT_ROUTES = Object.freeze([ { event: 'onSignal', field: 'unet', role: 'denoise', valueSource: 'pipelineClass' }, { event: 'onSignal', field: 'vae', role: 'decode', valueSource: 'pipelineClass' }, ], - compiledDefinitionContentHash: 'block-definition-v2-d5444e01', - compiledDefinitionCanonicalSha256: 'sha256:fd39932bae9d4afad6f84aee44ecc68ff2c6e9bdd58de063aa0ea9f219612e67', + compiledDefinitionContentHash: 'block-definition-v2-66697706', + compiledDefinitionCanonicalSha256: 'sha256:c5de48a73a9af3244bf120803f366c160555759e271b529bd581b3a49c646bef', controlFanOuts: [ { source: 'height', @@ -3515,11 +3515,11 @@ export const REGISTERED_BLOCK_V2_FANOUT_ROUTES = Object.freeze([ }, { definitionId: 'diffusers.modular:WanModularPipeline:default', - definitionContentHash: 'sha256:1bf1704b5115928188798cc265ddd8e4a97a8b5cc563954466ed51444313db49', + definitionContentHash: 'sha256:7ff62b15a056411d18ef6fcc3406621bab88bd4d08850ff294f4dcfc914e20d7', provider: 'diffusers', surface: 'diffusers_cluster_nodes', definitionKind: 'modular_pipeline_workflow', - libraryRevision: 'fbf49e7f35857f76bc57b177e26f12b03687c668', + libraryRevision: '7ecb1e1b4fe500be7fb7381a7bb79a24d7fa3941', pipelineClass: 'WanModularPipeline', workflowId: 'default', admissionId: 'diffusers.cluster-admission:WanModularPipeline:default:mode:text_to_video', @@ -3537,8 +3537,8 @@ export const REGISTERED_BLOCK_V2_FANOUT_ROUTES = Object.freeze([ { event: 'onSignal', field: 'unet', role: 'denoise', valueSource: 'pipelineClass' }, { event: 'onSignal', field: 'vae', role: 'decode', valueSource: 'pipelineClass' }, ], - compiledDefinitionContentHash: 'block-definition-v2-abf0f4e0', - compiledDefinitionCanonicalSha256: 'sha256:c87bad6f28c550b6adb46730e7714f243fa084e9ba28889d81624e4fbee1f76b', + compiledDefinitionContentHash: 'block-definition-v2-cad20c98', + compiledDefinitionCanonicalSha256: 'sha256:58674f22de41cc71e4d9c5b9b4126dd260fd84d402ff7a4eabe86c8dfc87fa01', controlFanOuts: [], boundary: { inputs: [ @@ -3558,11 +3558,11 @@ export const REGISTERED_BLOCK_V2_FANOUT_ROUTES = Object.freeze([ }, { definitionId: 'diffusers.modular:QwenImageEditModularPipeline:image_conditioned_inpainting', - definitionContentHash: 'sha256:2598c944f3059fd72fb01bc692810ebbb6a9fca416cc934041c22026f735f6bb', + definitionContentHash: 'sha256:be1c46355b994d9064161cd41e45a9183690f40521834706f2f6401fe3f46ef2', provider: 'diffusers', surface: 'diffusers_cluster_nodes', definitionKind: 'modular_pipeline_workflow', - libraryRevision: 'fbf49e7f35857f76bc57b177e26f12b03687c668', + libraryRevision: '7ecb1e1b4fe500be7fb7381a7bb79a24d7fa3941', pipelineClass: 'QwenImageEditModularPipeline', workflowId: 'image_conditioned_inpainting', admissionId: @@ -3583,8 +3583,8 @@ export const REGISTERED_BLOCK_V2_FANOUT_ROUTES = Object.freeze([ { event: 'onSignal', field: 'unet', role: 'denoise', valueSource: 'pipelineClass' }, { event: 'onSignal', field: 'vae', role: 'decode', valueSource: 'pipelineClass' }, ], - compiledDefinitionContentHash: 'block-definition-v2-c61df746', - compiledDefinitionCanonicalSha256: 'sha256:60492b24c9be91796394cf23ac0eea15a66310573c52981aa68da1cd53458c74', + compiledDefinitionContentHash: 'block-definition-v2-5765030b', + compiledDefinitionCanonicalSha256: 'sha256:8b44ae2cd7e9150b25fe6b1aab8f5cab343ea673a5f7b2cddc7d0f25564a7697', controlFanOuts: [ { source: 'seed', @@ -3615,11 +3615,11 @@ export const REGISTERED_BLOCK_V2_FANOUT_ROUTES = Object.freeze([ }, { definitionId: 'diffusers.modular:QwenImageModularPipeline:controlnet_inpainting', - definitionContentHash: 'sha256:87f3b5c590f8feec54ea13cc19d86b15fc0f9455dbb6d65dbe650c68cc9c8925', + definitionContentHash: 'sha256:3aa902cd0b85f2f03145b51232817f9d306288e4bf1e77f9d92b35330ecb5a51', provider: 'diffusers', surface: 'diffusers_cluster_nodes', definitionKind: 'modular_pipeline_workflow', - libraryRevision: 'fbf49e7f35857f76bc57b177e26f12b03687c668', + libraryRevision: '7ecb1e1b4fe500be7fb7381a7bb79a24d7fa3941', pipelineClass: 'QwenImageModularPipeline', workflowId: 'controlnet_inpainting', admissionId: @@ -3642,8 +3642,8 @@ export const REGISTERED_BLOCK_V2_FANOUT_ROUTES = Object.freeze([ { event: 'onSignal', field: 'controlnet_bundle', role: 'controlnet', valueSource: 'pipelineClass' }, { event: 'onChange', field: 'model_type', role: 'controlnetModel', valueSource: 'kind' }, ], - compiledDefinitionContentHash: 'block-definition-v2-37779acc', - compiledDefinitionCanonicalSha256: 'sha256:faea12ee4be8c507860065c52cb96e1b62cdc7807fa9361aea8bfbcd5ce86d0a', + compiledDefinitionContentHash: 'block-definition-v2-d351055f', + compiledDefinitionCanonicalSha256: 'sha256:2f8b173c99f0ba8c855a9c99abbcb7a7ebb8b7b2966dae09ff8f987bfbc9ef78', controlFanOuts: [ { source: 'dtype', @@ -3738,11 +3738,11 @@ export const REGISTERED_BLOCK_V2_FANOUT_ROUTES = Object.freeze([ }, { definitionId: 'diffusers.modular:QwenImageModularPipeline:inpainting', - definitionContentHash: 'sha256:54f3771a71ba76a289d5e0c4756dab3d8768bbb7ae8e7e412ab774deb8674e9f', + definitionContentHash: 'sha256:22eaa37ab4d8a46fa70c5bc7816d518d8422e37510bec509c512e6f028b235ca', provider: 'diffusers', surface: 'diffusers_cluster_nodes', definitionKind: 'modular_pipeline_workflow', - libraryRevision: 'fbf49e7f35857f76bc57b177e26f12b03687c668', + libraryRevision: '7ecb1e1b4fe500be7fb7381a7bb79a24d7fa3941', pipelineClass: 'QwenImageModularPipeline', workflowId: 'inpainting', admissionId: 'diffusers.cluster-admission:QwenImageModularPipeline:inpainting:state_flow:inpainting', @@ -3761,8 +3761,8 @@ export const REGISTERED_BLOCK_V2_FANOUT_ROUTES = Object.freeze([ { event: 'onSignal', field: 'unet', role: 'denoise', valueSource: 'pipelineClass' }, { event: 'onSignal', field: 'vae', role: 'decode', valueSource: 'pipelineClass' }, ], - compiledDefinitionContentHash: 'block-definition-v2-02e2f1d8', - compiledDefinitionCanonicalSha256: 'sha256:ff904c923b57fb164baa13f07857120054f465eddfae664eaa7a29566a00ae2e', + compiledDefinitionContentHash: 'block-definition-v2-02290fe9', + compiledDefinitionCanonicalSha256: 'sha256:1bda7c1b9ad297612ec6f2cb1cf191bcce28d9f8c7329655127ab5dcd98b470a', controlFanOuts: [ { source: 'height', @@ -3808,11 +3808,11 @@ export const REGISTERED_BLOCK_V2_FANOUT_ROUTES = Object.freeze([ }, { definitionId: 'diffusers.modular:StableDiffusionXLModularPipeline:controlnet_inpainting', - definitionContentHash: 'sha256:1caa94082e27d03a06d3c44367ed33cd2359da418d2fe8dc4b84aeca81e7010e', + definitionContentHash: 'sha256:7b9133ad326ba97b4637eee6571ecae3956a363850ef11139050ff558aaf2769', provider: 'diffusers', surface: 'diffusers_cluster_nodes', definitionKind: 'modular_pipeline_workflow', - libraryRevision: 'fbf49e7f35857f76bc57b177e26f12b03687c668', + libraryRevision: '7ecb1e1b4fe500be7fb7381a7bb79a24d7fa3941', pipelineClass: 'StableDiffusionXLModularPipeline', workflowId: 'controlnet_inpainting', admissionId: @@ -3838,8 +3838,8 @@ export const REGISTERED_BLOCK_V2_FANOUT_ROUTES = Object.freeze([ { event: 'onSignal', field: 'controlnet_bundle', role: 'controlnet', valueSource: 'pipelineClass' }, { event: 'onChange', field: 'model_type', role: 'controlnetModel', valueSource: 'kind' }, ], - compiledDefinitionContentHash: 'block-definition-v2-9af08e7d', - compiledDefinitionCanonicalSha256: 'sha256:0fda07ec5e79eb30eadc1dad10505c25020e94e722757e3172407f7ff7515291', + compiledDefinitionContentHash: 'block-definition-v2-3dcb731d', + compiledDefinitionCanonicalSha256: 'sha256:80e2fae5a4141cb0b99fad6e1b0b2c9bcd0f79d574851c3347977886a724d3ba', controlFanOuts: [ { source: 'dtype', @@ -3916,11 +3916,11 @@ export const REGISTERED_BLOCK_V2_FANOUT_ROUTES = Object.freeze([ }, { definitionId: 'diffusers.modular:StableDiffusionXLModularPipeline:controlnet_union_inpainting', - definitionContentHash: 'sha256:0ec4780489c8b1ae83db6844acb5e502efcccdbf5a2877ed5716cb4ef28f9e10', + definitionContentHash: 'sha256:2c5565e877bb49c34b2aceee5a88b7e908a7078908359cfbdeb3301bf8529b61', provider: 'diffusers', surface: 'diffusers_cluster_nodes', definitionKind: 'modular_pipeline_workflow', - libraryRevision: 'fbf49e7f35857f76bc57b177e26f12b03687c668', + libraryRevision: '7ecb1e1b4fe500be7fb7381a7bb79a24d7fa3941', pipelineClass: 'StableDiffusionXLModularPipeline', workflowId: 'controlnet_union_inpainting', admissionId: @@ -3946,8 +3946,8 @@ export const REGISTERED_BLOCK_V2_FANOUT_ROUTES = Object.freeze([ { event: 'onSignal', field: 'controlnet_bundle', role: 'controlnet', valueSource: 'pipelineClass' }, { event: 'onChange', field: 'model_type', role: 'controlnetModel', valueSource: 'controlnetKind' }, ], - compiledDefinitionContentHash: 'block-definition-v2-6340611e', - compiledDefinitionCanonicalSha256: 'sha256:f2eb8b9c898dcc47816bd39f43bc6c5eb0a5f3a02acc5916e04590a9c42a7331', + compiledDefinitionContentHash: 'block-definition-v2-b99d4b69', + compiledDefinitionCanonicalSha256: 'sha256:1026412468c165c5e338ac1ff5666ffedfa42c4ae3b2b65617d27961903152a9', controlFanOuts: [ { source: 'dtype', @@ -4025,11 +4025,11 @@ export const REGISTERED_BLOCK_V2_FANOUT_ROUTES = Object.freeze([ }, { definitionId: 'diffusers.modular:StableDiffusionXLModularPipeline:inpainting', - definitionContentHash: 'sha256:af28152fbc75768e349b3a339d5588ee36230f6ff86a8c58bcc967ede5ce8571', + definitionContentHash: 'sha256:9e4a3007b807ddf15b416e17ad11abd405244470ce9ba1a475fa3f0d7c3c0032', provider: 'diffusers', surface: 'diffusers_cluster_nodes', definitionKind: 'modular_pipeline_workflow', - libraryRevision: 'fbf49e7f35857f76bc57b177e26f12b03687c668', + libraryRevision: '7ecb1e1b4fe500be7fb7381a7bb79a24d7fa3941', pipelineClass: 'StableDiffusionXLModularPipeline', workflowId: 'inpainting', admissionId: 'diffusers.cluster-admission:StableDiffusionXLModularPipeline:inpainting:mode:inpaint', @@ -4051,8 +4051,8 @@ export const REGISTERED_BLOCK_V2_FANOUT_ROUTES = Object.freeze([ { event: 'onSignal', field: 'unet', role: 'denoise', valueSource: 'pipelineClass' }, { event: 'onSignal', field: 'vae', role: 'decode', valueSource: 'pipelineClass' }, ], - compiledDefinitionContentHash: 'block-definition-v2-4c7b9c2e', - compiledDefinitionCanonicalSha256: 'sha256:ecc1dc7029c5cdca6d6e3683d1edb74482640b67ab14f1930fc529a75d3df053', + compiledDefinitionContentHash: 'block-definition-v2-6c930aca', + compiledDefinitionCanonicalSha256: 'sha256:ac81984a45540196ce2b21d98c2559d339e8274fa573f2d4fbbe6db00060a1bf', controlFanOuts: [ { source: 'seed', @@ -4085,11 +4085,11 @@ export const REGISTERED_BLOCK_V2_FANOUT_ROUTES = Object.freeze([ }, { definitionId: 'diffusers.modular:StableDiffusionXLModularPipeline:ip_adapter_controlnet_inpainting', - definitionContentHash: 'sha256:7f54fa29d9872df2b61ac9d23e866753fb848958c2f3339afd8641bd617bc1b0', + definitionContentHash: 'sha256:130677710816d1f394c16ab62137846a7628dfc440678fb8272ed984d511a1f1', provider: 'diffusers', surface: 'diffusers_cluster_nodes', definitionKind: 'modular_pipeline_workflow', - libraryRevision: 'fbf49e7f35857f76bc57b177e26f12b03687c668', + libraryRevision: '7ecb1e1b4fe500be7fb7381a7bb79a24d7fa3941', pipelineClass: 'StableDiffusionXLModularPipeline', workflowId: 'ip_adapter_controlnet_inpainting', admissionId: @@ -4117,8 +4117,8 @@ export const REGISTERED_BLOCK_V2_FANOUT_ROUTES = Object.freeze([ { event: 'onSignal', field: 'unet', role: 'ipAdapter', valueSource: 'pipelineClass' }, { event: 'onSignal', field: 'guider_out', role: 'guider', valueSource: 'pipelineClass' }, ], - compiledDefinitionContentHash: 'block-definition-v2-e06cffaf', - compiledDefinitionCanonicalSha256: 'sha256:04abe4d7baa483afb3648936fdab74d28b3db09242fe874a5a641f1a36c794d0', + compiledDefinitionContentHash: 'block-definition-v2-695cc609', + compiledDefinitionCanonicalSha256: 'sha256:f46fff0c0fdfe617566e24e4ac29274ed0a29c3957b8057b56989fd13e970c77', controlFanOuts: [ { source: 'dtype', @@ -4211,11 +4211,11 @@ export const REGISTERED_BLOCK_V2_FANOUT_ROUTES = Object.freeze([ }, { definitionId: 'diffusers.modular:StableDiffusionXLModularPipeline:ip_adapter_controlnet_union_inpainting', - definitionContentHash: 'sha256:490b76a21848cafb9191c781bbb8fd65c23f75f05d385bb0eacb7dab10b9f57d', + definitionContentHash: 'sha256:59c7944c4100fa0e4ad2d2b9a0bdb84088c143dbc3b39a601f439dd3ec5cd6e1', provider: 'diffusers', surface: 'diffusers_cluster_nodes', definitionKind: 'modular_pipeline_workflow', - libraryRevision: 'fbf49e7f35857f76bc57b177e26f12b03687c668', + libraryRevision: '7ecb1e1b4fe500be7fb7381a7bb79a24d7fa3941', pipelineClass: 'StableDiffusionXLModularPipeline', workflowId: 'ip_adapter_controlnet_union_inpainting', admissionId: @@ -4243,8 +4243,8 @@ export const REGISTERED_BLOCK_V2_FANOUT_ROUTES = Object.freeze([ { event: 'onSignal', field: 'unet', role: 'ipAdapter', valueSource: 'pipelineClass' }, { event: 'onSignal', field: 'guider_out', role: 'guider', valueSource: 'pipelineClass' }, ], - compiledDefinitionContentHash: 'block-definition-v2-5ed9a874', - compiledDefinitionCanonicalSha256: 'sha256:989501bc1de75d1a10f46aa23fe7b1106e2158181016f8ca3ca2547a9f8a2441', + compiledDefinitionContentHash: 'block-definition-v2-83320b01', + compiledDefinitionCanonicalSha256: 'sha256:d6c667706e66592a37b1bbdea245e8280b6a32327ed931385de0d7170ea7886d', controlFanOuts: [ { source: 'dtype', @@ -4338,11 +4338,11 @@ export const REGISTERED_BLOCK_V2_FANOUT_ROUTES = Object.freeze([ }, { definitionId: 'diffusers.modular:StableDiffusionXLModularPipeline:ip_adapter_inpainting', - definitionContentHash: 'sha256:9b48e19d9622af7bf66fa8b0867723b793b249ab68c31692c7e32258d9281a9f', + definitionContentHash: 'sha256:3ce14d351c3b52fedde435c385b8c20c96071c5def283d26d984b954d2169930', provider: 'diffusers', surface: 'diffusers_cluster_nodes', definitionKind: 'modular_pipeline_workflow', - libraryRevision: 'fbf49e7f35857f76bc57b177e26f12b03687c668', + libraryRevision: '7ecb1e1b4fe500be7fb7381a7bb79a24d7fa3941', pipelineClass: 'StableDiffusionXLModularPipeline', workflowId: 'ip_adapter_inpainting', admissionId: @@ -4368,8 +4368,8 @@ export const REGISTERED_BLOCK_V2_FANOUT_ROUTES = Object.freeze([ { event: 'onSignal', field: 'unet', role: 'ipAdapter', valueSource: 'pipelineClass' }, { event: 'onSignal', field: 'guider_out', role: 'guider', valueSource: 'pipelineClass' }, ], - compiledDefinitionContentHash: 'block-definition-v2-1a026169', - compiledDefinitionCanonicalSha256: 'sha256:29a7bc42110de34d89d15df65031781a487739b7f9e1cec1b67baae41e7f7c78', + compiledDefinitionContentHash: 'block-definition-v2-8acd62de', + compiledDefinitionCanonicalSha256: 'sha256:e24ce4d42d61c3e23ced8e7f44ea29df95196b601adbc3a74f16c23e6002dc2b', controlFanOuts: [ { source: 'alphaMode', @@ -4421,11 +4421,11 @@ export const REGISTERED_BLOCK_V2_FANOUT_ROUTES = Object.freeze([ }, { definitionId: 'diffusers.modular:LTXModularPipeline:image2video', - definitionContentHash: 'sha256:90ab9145a031233e2418e488065654330e5f5d7f4b968635497ffe08b6a94746', + definitionContentHash: 'sha256:d781edf06296f86a964a2644fa1fd5ae83398b1a01d3d99ec7589e1728f18015', provider: 'diffusers', surface: 'diffusers_cluster_nodes', definitionKind: 'modular_pipeline_workflow', - libraryRevision: 'fbf49e7f35857f76bc57b177e26f12b03687c668', + libraryRevision: '7ecb1e1b4fe500be7fb7381a7bb79a24d7fa3941', pipelineClass: 'LTXModularPipeline', workflowId: 'image2video', admissionId: 'diffusers.cluster-admission:LTXModularPipeline:image2video:mode:equivalent_standard_route', @@ -4441,8 +4441,8 @@ export const REGISTERED_BLOCK_V2_FANOUT_ROUTES = Object.freeze([ revision: '7c64400e1861cc0d7b98d570a1926d5408ec60cd', }, dynamicFieldActions: [], - compiledDefinitionContentHash: 'block-definition-v2-0de275e3', - compiledDefinitionCanonicalSha256: 'sha256:924911d7ca6469cf12eac8d52e6defce47fd2213cd872b38075555f6a4639073', + compiledDefinitionContentHash: 'block-definition-v2-68763b53', + compiledDefinitionCanonicalSha256: 'sha256:47ddd5084b272956c5ba09ef27b864e13f5d74bca53909164af158ab64d2557a', controlFanOuts: [ { source: 'dtype', @@ -4499,11 +4499,11 @@ export const REGISTERED_BLOCK_V2_FANOUT_ROUTES = Object.freeze([ }, { definitionId: 'diffusers.modular:LTXModularPipeline:text2video', - definitionContentHash: 'sha256:d8dfba3453cfe5850ef2867aad9044cb71b1cf783c27896bd37eeccdf27c1c24', + definitionContentHash: 'sha256:3ce369dbcd268e5de29353353188d426cc56ed78a8544974d6961f569ecbc6e5', provider: 'diffusers', surface: 'diffusers_cluster_nodes', definitionKind: 'modular_pipeline_workflow', - libraryRevision: 'fbf49e7f35857f76bc57b177e26f12b03687c668', + libraryRevision: '7ecb1e1b4fe500be7fb7381a7bb79a24d7fa3941', pipelineClass: 'LTXModularPipeline', workflowId: 'text2video', admissionId: 'diffusers.cluster-admission:LTXModularPipeline:text2video:mode:equivalent_standard_route', @@ -4519,8 +4519,8 @@ export const REGISTERED_BLOCK_V2_FANOUT_ROUTES = Object.freeze([ revision: '7c64400e1861cc0d7b98d570a1926d5408ec60cd', }, dynamicFieldActions: [], - compiledDefinitionContentHash: 'block-definition-v2-9451bb28', - compiledDefinitionCanonicalSha256: 'sha256:79a3bcc845cafd4d778c08bdb1395ab6900e2bbbbace3e3507fb1018887e4e90', + compiledDefinitionContentHash: 'block-definition-v2-9e3d4432', + compiledDefinitionCanonicalSha256: 'sha256:eb3515e41c1cdf813038e5c90b473f6797ee5204604c22efeca2f097a4628d99', controlFanOuts: [ { source: 'dtype', @@ -4576,11 +4576,11 @@ export const REGISTERED_BLOCK_V2_FANOUT_ROUTES = Object.freeze([ }, { definitionId: 'diffusers.modular:ErnieImageModularPipeline:text2image', - definitionContentHash: 'sha256:f1052b4f74c2a91b52dddd92744c1651df6a6c11fa14c5f581c598af5298b775', + definitionContentHash: 'sha256:dbbed1a89dcbdad5a4c194317fa452c4fd940be1cf89b7131231bc43162b525c', provider: 'diffusers', surface: 'diffusers_cluster_nodes', definitionKind: 'modular_pipeline_workflow', - libraryRevision: 'fbf49e7f35857f76bc57b177e26f12b03687c668', + libraryRevision: '7ecb1e1b4fe500be7fb7381a7bb79a24d7fa3941', pipelineClass: 'ErnieImageModularPipeline', workflowId: 'text2image', admissionId: 'diffusers.cluster-admission:ErnieImageModularPipeline:text2image:workflow:official_top_level_blocks', @@ -4595,8 +4595,8 @@ export const REGISTERED_BLOCK_V2_FANOUT_ROUTES = Object.freeze([ artifact: { repo: 'baidu/ERNIE-Image-Turbo', revision: 'bc68c81e2a1730a394d5fc9fae70713dee940140' }, dynamicFieldActions: [{ event: 'onChange', field: 'model_type', role: 'models', valueSource: 'pipelineClass' }], exactModularGraph: { semanticRoleByPlacementPath: {} }, - compiledDefinitionContentHash: 'block-definition-v2-30ecded7', - compiledDefinitionCanonicalSha256: 'sha256:22463a938a56e29da330ea678e98f4e8af80e41207c0f6d0dec283be979e5a19', + compiledDefinitionContentHash: 'block-definition-v2-9e80a029', + compiledDefinitionCanonicalSha256: 'sha256:dca9c8bb22a03426e2b2907e6910e9b943bdf7bf258f9ad63493abbd79805390', controlFanOuts: [ { source: 'width', diff --git a/src/studio/registeredBlockV2ImageRoutes.ts b/src/studio/registeredBlockV2ImageRoutes.ts index 6a53a049..798276e3 100644 --- a/src/studio/registeredBlockV2ImageRoutes.ts +++ b/src/studio/registeredBlockV2ImageRoutes.ts @@ -4,11 +4,11 @@ import type { RegisteredBlockV2Route } from './registeredBlockV2Routes'; export const REGISTERED_BLOCK_V2_IMAGE_ROUTES: readonly RegisteredBlockV2Route[] = [ { definitionId: 'diffusers.composite:Flux2KleinKVPipeline:edit_image', - definitionContentHash: 'sha256:1fda4a421dfec461143cb30d37b671e46db8bd1792e392503053a37a45d11f8f', + definitionContentHash: 'sha256:ca2fb371f260a8f3b690284ecd12f800505d618a176b582ae36cd2c915eb8ed4', provider: 'diffusers', surface: 'diffusers_cluster_nodes', definitionKind: 'studio_execution_composite', - libraryRevision: 'fbf49e7f35857f76bc57b177e26f12b03687c668', + libraryRevision: '7ecb1e1b4fe500be7fb7381a7bb79a24d7fa3941', pipelineClass: 'Flux2KleinKVPipeline', workflowId: 'edit_image', admissionId: 'diffusers.cluster-admission:Flux2KleinKVPipeline:edit_image:mode:edit_image', @@ -24,8 +24,8 @@ export const REGISTERED_BLOCK_V2_IMAGE_ROUTES: readonly RegisteredBlockV2Route[] revision: 'a6dfb36eca3a3906eb2fd460795adfb844e5fcce', }, dynamicFieldActions: [], - compiledDefinitionContentHash: 'block-definition-v2-895e656d', - compiledDefinitionCanonicalSha256: 'sha256:c6f0a4ad96857ec9f6dd77d79ce991ab5619fea52aebb8033a2e7f0526794954', + compiledDefinitionContentHash: 'block-definition-v2-fc52c390', + compiledDefinitionCanonicalSha256: 'sha256:8ad85392ea447b287ac19cd67f67c065b3c5e2316ea8beaa9ea86490300f7c33', controlFanOuts: [ { source: 'quantizationMode', @@ -142,11 +142,11 @@ export const REGISTERED_BLOCK_V2_IMAGE_ROUTES: readonly RegisteredBlockV2Route[] }, { definitionId: 'diffusers.composite:Flux2KleinKVPipeline:multi_image_reference_edit', - definitionContentHash: 'sha256:5946ff18a5dde271dfd1870b7597b73cf391d8a322f379f71e6a8599e4adcd93', + definitionContentHash: 'sha256:8cdf6fb33de7d24d695a9ce87b9b237f8de66e6fdabeccf14c11a559f005149e', provider: 'diffusers', surface: 'diffusers_cluster_nodes', definitionKind: 'studio_execution_composite', - libraryRevision: 'fbf49e7f35857f76bc57b177e26f12b03687c668', + libraryRevision: '7ecb1e1b4fe500be7fb7381a7bb79a24d7fa3941', pipelineClass: 'Flux2KleinKVPipeline', workflowId: 'multi_image_reference_edit', admissionId: @@ -163,8 +163,8 @@ export const REGISTERED_BLOCK_V2_IMAGE_ROUTES: readonly RegisteredBlockV2Route[] revision: 'a6dfb36eca3a3906eb2fd460795adfb844e5fcce', }, dynamicFieldActions: [], - compiledDefinitionContentHash: 'block-definition-v2-9a823b87', - compiledDefinitionCanonicalSha256: 'sha256:b7d12d1d1eba3bbf677377ff7d88af12382f9785ce4dabbd280c34d37328a6d2', + compiledDefinitionContentHash: 'block-definition-v2-6d5da01d', + compiledDefinitionCanonicalSha256: 'sha256:943f327b1b6e103da60e455052cd8c75be8a03a3888250489d77249297d8acc2', controlFanOuts: [ { source: 'quantizationMode', @@ -281,11 +281,11 @@ export const REGISTERED_BLOCK_V2_IMAGE_ROUTES: readonly RegisteredBlockV2Route[] }, { definitionId: 'diffusers.composite:Flux2KleinKVPipeline:text_to_image', - definitionContentHash: 'sha256:d6d33b4746508cc5645a9625b42d3773c1b89ccd510118cd31bfa4f780e01baa', + definitionContentHash: 'sha256:c74a9871820add61078b8ec125200afedd3eae938a485ed3c10ee271f47d5cd0', provider: 'diffusers', surface: 'diffusers_cluster_nodes', definitionKind: 'studio_execution_composite', - libraryRevision: 'fbf49e7f35857f76bc57b177e26f12b03687c668', + libraryRevision: '7ecb1e1b4fe500be7fb7381a7bb79a24d7fa3941', pipelineClass: 'Flux2KleinKVPipeline', workflowId: 'text_to_image', admissionId: 'diffusers.cluster-admission:Flux2KleinKVPipeline:text_to_image:mode:text_to_image', @@ -301,8 +301,8 @@ export const REGISTERED_BLOCK_V2_IMAGE_ROUTES: readonly RegisteredBlockV2Route[] revision: 'a6dfb36eca3a3906eb2fd460795adfb844e5fcce', }, dynamicFieldActions: [], - compiledDefinitionContentHash: 'block-definition-v2-c9d9b3f3', - compiledDefinitionCanonicalSha256: 'sha256:a6b94a6b8800d3f5f32857fa0ce87516f137caf182bb38ae1a28912afd67b62a', + compiledDefinitionContentHash: 'block-definition-v2-ef34d7b2', + compiledDefinitionCanonicalSha256: 'sha256:fe9f52bf3a5e4c9c5f62931c6e7eeeb5e4bfeaecd7d8398a59df49e95f7d9b64', controlFanOuts: [ { source: 'quantizationMode', @@ -412,11 +412,11 @@ export const REGISTERED_BLOCK_V2_IMAGE_ROUTES: readonly RegisteredBlockV2Route[] }, { definitionId: 'diffusers.composite:FluxControlNetImg2ImgPipeline:control_edit_image', - definitionContentHash: 'sha256:9987ec6b7ffc97a8a4b928332d7e58167fd6efc92f5548a18d2a0d14208e9e71', + definitionContentHash: 'sha256:6037a9442f357ca32f3dbb545556e8fa89658d3f5afe3e1628dd0fc52d7e1080', provider: 'diffusers', surface: 'diffusers_cluster_nodes', definitionKind: 'studio_execution_composite', - libraryRevision: 'fbf49e7f35857f76bc57b177e26f12b03687c668', + libraryRevision: '7ecb1e1b4fe500be7fb7381a7bb79a24d7fa3941', pipelineClass: 'FluxControlNetImg2ImgPipeline', workflowId: 'control_edit_image', admissionId: 'diffusers.cluster-admission:FluxControlNetImg2ImgPipeline:control_edit_image:mode:control_edit_image', @@ -432,8 +432,8 @@ export const REGISTERED_BLOCK_V2_IMAGE_ROUTES: readonly RegisteredBlockV2Route[] revision: '3de623fc3c33e44ffbe2bad470d0f45bccf2eb21', }, dynamicFieldActions: [], - compiledDefinitionContentHash: 'block-definition-v2-0f612de0', - compiledDefinitionCanonicalSha256: 'sha256:2babb36311ec6a58b45b5fe9872cd588351d8008e6c0515b398304d1e4e7b52f', + compiledDefinitionContentHash: 'block-definition-v2-b29434ec', + compiledDefinitionCanonicalSha256: 'sha256:97a5dee1ced951799be07a767a51248bb6a35cb3e2f6b6dd8a17ae31c55c4adf', controlFanOuts: [ { source: 'quantizationMode', @@ -596,11 +596,11 @@ export const REGISTERED_BLOCK_V2_IMAGE_ROUTES: readonly RegisteredBlockV2Route[] }, { definitionId: 'diffusers.composite:FluxControlNetInpaintPipeline:control_inpaint', - definitionContentHash: 'sha256:7084dd7161c97b95221e6669e77bfcbf2abe3921a08c705651ccaed9c6b6b6f8', + definitionContentHash: 'sha256:8e560173f5110301cbfdb8d9e8db1d367ed3b98d636a22ebe0f8f4eee869791c', provider: 'diffusers', surface: 'diffusers_cluster_nodes', definitionKind: 'studio_execution_composite', - libraryRevision: 'fbf49e7f35857f76bc57b177e26f12b03687c668', + libraryRevision: '7ecb1e1b4fe500be7fb7381a7bb79a24d7fa3941', pipelineClass: 'FluxControlNetInpaintPipeline', workflowId: 'control_inpaint', admissionId: 'diffusers.cluster-admission:FluxControlNetInpaintPipeline:control_inpaint:mode:control_inpaint', @@ -616,8 +616,8 @@ export const REGISTERED_BLOCK_V2_IMAGE_ROUTES: readonly RegisteredBlockV2Route[] revision: '3de623fc3c33e44ffbe2bad470d0f45bccf2eb21', }, dynamicFieldActions: [], - compiledDefinitionContentHash: 'block-definition-v2-76e8b2da', - compiledDefinitionCanonicalSha256: 'sha256:fccb41b34170012a2db22ec7c7ea26d95a6d69b0f86224383cc966b6c7a097ea', + compiledDefinitionContentHash: 'block-definition-v2-96edfc16', + compiledDefinitionCanonicalSha256: 'sha256:d8cf5b00c1f28224e2c327dddbb18f1d3c9c58dbb5794f3f91ffbf24118e5ed4', controlFanOuts: [ { source: 'quantizationMode', @@ -787,11 +787,11 @@ export const REGISTERED_BLOCK_V2_IMAGE_ROUTES: readonly RegisteredBlockV2Route[] }, { definitionId: 'diffusers.composite:FluxControlNetPipeline:control_image', - definitionContentHash: 'sha256:d4039ab110b37eaab96f82b10902341cf2e533108d0368bea791d0061e242acb', + definitionContentHash: 'sha256:bdfe72e92e2aa94c896fb2b49ef2ebdbcc59a95f11ab6ababbc6273d83bbe5dd', provider: 'diffusers', surface: 'diffusers_cluster_nodes', definitionKind: 'studio_execution_composite', - libraryRevision: 'fbf49e7f35857f76bc57b177e26f12b03687c668', + libraryRevision: '7ecb1e1b4fe500be7fb7381a7bb79a24d7fa3941', pipelineClass: 'FluxControlNetPipeline', workflowId: 'control_image', admissionId: 'diffusers.cluster-admission:FluxControlNetPipeline:control_image:mode:control_image', @@ -807,8 +807,8 @@ export const REGISTERED_BLOCK_V2_IMAGE_ROUTES: readonly RegisteredBlockV2Route[] revision: '3de623fc3c33e44ffbe2bad470d0f45bccf2eb21', }, dynamicFieldActions: [], - compiledDefinitionContentHash: 'block-definition-v2-7a4a5cb9', - compiledDefinitionCanonicalSha256: 'sha256:c31dd252e3e34162aabea09e3171e0a7885eebee06a0152ff8b0dad035396a9e', + compiledDefinitionContentHash: 'block-definition-v2-4e36b75f', + compiledDefinitionCanonicalSha256: 'sha256:4993875deda3899e1d63a386c19e4bce829aff9ff38d2ce4293f1e4ed509f84e', controlFanOuts: [ { source: 'quantizationMode', diff --git a/src/studio/registeredBlockV2OrdinaryFluxRoutes.ts b/src/studio/registeredBlockV2OrdinaryFluxRoutes.ts index 73d76dbd..869bfef9 100644 --- a/src/studio/registeredBlockV2OrdinaryFluxRoutes.ts +++ b/src/studio/registeredBlockV2OrdinaryFluxRoutes.ts @@ -4,11 +4,11 @@ import type { RegisteredBlockV2Route } from './registeredBlockV2Routes'; export const REGISTERED_BLOCK_V2_ORDINARY_FLUX_ROUTES: readonly RegisteredBlockV2Route[] = [ { definitionId: 'diffusers.composite:Flux2KleinInpaintPipeline:inpaint', - definitionContentHash: 'sha256:8ce41b556a9363e4a17409b33202d1a9eac3bf68f19e7a755c3b1ecfbef53016', + definitionContentHash: 'sha256:974f7e18bfe6a6b09d0b7a5c4ac53a52bac87c406b28d494bf5ce960f67a80b2', provider: 'diffusers', surface: 'diffusers_cluster_nodes', definitionKind: 'studio_execution_composite', - libraryRevision: 'fbf49e7f35857f76bc57b177e26f12b03687c668', + libraryRevision: '7ecb1e1b4fe500be7fb7381a7bb79a24d7fa3941', pipelineClass: 'Flux2KleinInpaintPipeline', workflowId: 'inpaint', admissionId: 'diffusers.cluster-admission:Flux2KleinInpaintPipeline:inpaint:mode:inpaint', @@ -24,8 +24,8 @@ export const REGISTERED_BLOCK_V2_ORDINARY_FLUX_ROUTES: readonly RegisteredBlockV revision: 'e7b7dc27f91deacad38e78976d1f2b499d76a294', }, dynamicFieldActions: [], - compiledDefinitionContentHash: 'block-definition-v2-e29e03b3', - compiledDefinitionCanonicalSha256: 'sha256:132820d038c6c227ba096407e60cd3db611d555e178a04d892cca1db308cf0fc', + compiledDefinitionContentHash: 'block-definition-v2-714c664e', + compiledDefinitionCanonicalSha256: 'sha256:138fedbe8d0ffea87922d532e80e027accf7ea183c924c830724cc20a6221258', controlFanOuts: [ { source: 'quantizationMode', @@ -159,11 +159,11 @@ export const REGISTERED_BLOCK_V2_ORDINARY_FLUX_ROUTES: readonly RegisteredBlockV }, { definitionId: 'diffusers.composite:Flux2KleinInpaintPipeline:outpaint', - definitionContentHash: 'sha256:0774209393c8f5baa3a1f0825c66e8b5982c4f57d63661b7228a3f4e113c533d', + definitionContentHash: 'sha256:0bc5747671ed6282554c5641b5901dcc3ec9f8b4f60660dbc6098dbfc6ec4b51', provider: 'diffusers', surface: 'diffusers_cluster_nodes', definitionKind: 'studio_execution_composite', - libraryRevision: 'fbf49e7f35857f76bc57b177e26f12b03687c668', + libraryRevision: '7ecb1e1b4fe500be7fb7381a7bb79a24d7fa3941', pipelineClass: 'Flux2KleinInpaintPipeline', workflowId: 'outpaint', admissionId: 'diffusers.cluster-admission:Flux2KleinInpaintPipeline:outpaint:mode:outpaint', @@ -179,8 +179,8 @@ export const REGISTERED_BLOCK_V2_ORDINARY_FLUX_ROUTES: readonly RegisteredBlockV revision: 'e7b7dc27f91deacad38e78976d1f2b499d76a294', }, dynamicFieldActions: [], - compiledDefinitionContentHash: 'block-definition-v2-8c7bd157', - compiledDefinitionCanonicalSha256: 'sha256:0bbe8720e7eeba31c947d8e6e1848623b1f84b9b702258823f5e1312003cb966', + compiledDefinitionContentHash: 'block-definition-v2-2d9bba9b', + compiledDefinitionCanonicalSha256: 'sha256:726ec7983d11969948227615cead149a6e3c5ab3f0b2b5fb48929e5e51645028', controlFanOuts: [ { source: 'quantizationMode', @@ -335,11 +335,11 @@ export const REGISTERED_BLOCK_V2_ORDINARY_FLUX_ROUTES: readonly RegisteredBlockV }, { definitionId: 'diffusers.composite:Flux2KleinPipeline:multi_image_reference_edit', - definitionContentHash: 'sha256:75bf8e256043b6b552af4bd25942107d8550d8fdb2d09c0b5332b2a00aab7d48', + definitionContentHash: 'sha256:ea2dae4f45633836a13b1f179894b283fdec6731c773e8a1c61f180976db0cd7', provider: 'diffusers', surface: 'diffusers_cluster_nodes', definitionKind: 'studio_execution_composite', - libraryRevision: 'fbf49e7f35857f76bc57b177e26f12b03687c668', + libraryRevision: '7ecb1e1b4fe500be7fb7381a7bb79a24d7fa3941', pipelineClass: 'Flux2KleinPipeline', workflowId: 'multi_image_reference_edit', admissionId: @@ -356,8 +356,8 @@ export const REGISTERED_BLOCK_V2_ORDINARY_FLUX_ROUTES: readonly RegisteredBlockV revision: 'e7b7dc27f91deacad38e78976d1f2b499d76a294', }, dynamicFieldActions: [], - compiledDefinitionContentHash: 'block-definition-v2-b7c35c9b', - compiledDefinitionCanonicalSha256: 'sha256:57a0e5164a3ccd3c0362584e24f87ff5d163e95c97c374ec453513f881cf7611', + compiledDefinitionContentHash: 'block-definition-v2-67080998', + compiledDefinitionCanonicalSha256: 'sha256:b49f492d1f6924b439ba9042ea71c89bcefb7b9ca5dfb449a02d18d972ef2cd1', controlFanOuts: [ { source: 'quantizationMode', @@ -479,11 +479,11 @@ export const REGISTERED_BLOCK_V2_ORDINARY_FLUX_ROUTES: readonly RegisteredBlockV }, { definitionId: 'diffusers.composite:Flux2Pipeline:multi_image_reference_edit', - definitionContentHash: 'sha256:1a009872fb9d1f72c5cc38e1dc368d9514649e2e1cbb6dc1cf85ea6393a4f8f5', + definitionContentHash: 'sha256:01c1638ece748db5fb1a4457a985ee30c73bb1875f8a8e953bfcba54502983b2', provider: 'diffusers', surface: 'diffusers_cluster_nodes', definitionKind: 'studio_execution_composite', - libraryRevision: 'fbf49e7f35857f76bc57b177e26f12b03687c668', + libraryRevision: '7ecb1e1b4fe500be7fb7381a7bb79a24d7fa3941', pipelineClass: 'Flux2Pipeline', workflowId: 'multi_image_reference_edit', admissionId: 'diffusers.cluster-admission:Flux2Pipeline:multi_image_reference_edit:mode:multi_image_reference_edit', @@ -499,8 +499,8 @@ export const REGISTERED_BLOCK_V2_ORDINARY_FLUX_ROUTES: readonly RegisteredBlockV revision: '26afe3a78bb242c0a8bb181dcc8937bb16e5c66c', }, dynamicFieldActions: [], - compiledDefinitionContentHash: 'block-definition-v2-fe3776ab', - compiledDefinitionCanonicalSha256: 'sha256:ae2387c2c84f99d9e345cef6a38a9e7b0df0c1892ce17e34d2347b02a08d2375', + compiledDefinitionContentHash: 'block-definition-v2-4d3854f2', + compiledDefinitionCanonicalSha256: 'sha256:d7637dc642a304026a96c011de3df1e457cff1741f3c4d60d64d680690114ea9', controlFanOuts: [ { source: 'quantizationMode', @@ -622,11 +622,11 @@ export const REGISTERED_BLOCK_V2_ORDINARY_FLUX_ROUTES: readonly RegisteredBlockV }, { definitionId: 'diffusers.composite:FluxCannyPipeline:control_edit_image', - definitionContentHash: 'sha256:e8e30654d5f1a8d96bb4bae77a0d4708c6a0cdb1ad00508575844fe02d540245', + definitionContentHash: 'sha256:710e351acb4338c0bdcc3412f2f3fd3efc9ab2916b07b61f62c37c16732b11f2', provider: 'diffusers', surface: 'diffusers_cluster_nodes', definitionKind: 'studio_execution_composite', - libraryRevision: 'fbf49e7f35857f76bc57b177e26f12b03687c668', + libraryRevision: '7ecb1e1b4fe500be7fb7381a7bb79a24d7fa3941', pipelineClass: 'FluxCannyPipeline', workflowId: 'control_edit_image', admissionId: 'diffusers.cluster-admission:FluxCannyPipeline:control_edit_image:mode:control_edit_image', @@ -642,8 +642,8 @@ export const REGISTERED_BLOCK_V2_ORDINARY_FLUX_ROUTES: readonly RegisteredBlockV revision: '27c3d8bdc17509b47cf4fd9ba25ab1c7508a69a2', }, dynamicFieldActions: [], - compiledDefinitionContentHash: 'block-definition-v2-f22a0ae0', - compiledDefinitionCanonicalSha256: 'sha256:56760929e049915df0e0ce35e7a3f77996721c13272be468ef74671bc277e1b4', + compiledDefinitionContentHash: 'block-definition-v2-f1e2b9ee', + compiledDefinitionCanonicalSha256: 'sha256:69e7bb74250e3f985a8994791c21036e963ecc1a63d16ec11bb47ddbba1f139b', controlFanOuts: [ { source: 'quantizationMode', @@ -791,159 +791,106 @@ export const REGISTERED_BLOCK_V2_ORDINARY_FLUX_ROUTES: readonly RegisteredBlockV }, { definitionId: 'diffusers.composite:FluxCannyPipeline:control_image', - definitionContentHash: 'sha256:d611f2cbf5f1964dbd8cf0d27ee87b43c00ebeffe1aa3e2d6f6c18802b479d01', + definitionContentHash: 'sha256:34af4cebd5c19f37ceafbe37c140a23d46a03df404414f18171fe4c028336af5', provider: 'diffusers', surface: 'diffusers_cluster_nodes', definitionKind: 'studio_execution_composite', - libraryRevision: 'fbf49e7f35857f76bc57b177e26f12b03687c668', + libraryRevision: '7ecb1e1b4fe500be7fb7381a7bb79a24d7fa3941', pipelineClass: 'FluxCannyPipeline', workflowId: 'control_image', admissionId: 'diffusers.cluster-admission:FluxCannyPipeline:control_image:mode:control_image', studioMode: 'control_image', adapterContractId: 'diffusers.composite-adapter:FluxCannyPipeline:control_image', studioExecutionSpec: { - contentHash: 'studio-spec-v1-82045f56', + contentHash: 'studio-spec-v1-3771b29f', executionProfileId: 'flux-canny:direct', id: 'flux-canny:control-image:v1', }, - artifact: { - repo: 'black-forest-labs/FLUX.1-Canny-dev', - revision: '27c3d8bdc17509b47cf4fd9ba25ab1c7508a69a2', - }, + artifact: { repo: 'black-forest-labs/FLUX.1-Canny-dev', revision: '27c3d8bdc17509b47cf4fd9ba25ab1c7508a69a2' }, dynamicFieldActions: [], - compiledDefinitionContentHash: 'block-definition-v2-bfa7d8ae', - compiledDefinitionCanonicalSha256: 'sha256:06ed91fe7e5e7c76258b36b5306df707dc3aab745c20406343335c6dd2c8b69f', + boundary: { + inputs: [ + { portId: 'prompt', role: 'imageEncode', fieldId: 'prompt' }, + { portId: 'width', role: 'denoise', fieldId: 'width' }, + { portId: 'height', role: 'denoise', fieldId: 'height' }, + { portId: 'num_inference_steps', role: 'denoise', fieldId: 'num_inference_steps' }, + { portId: 'guidance_scale', role: 'denoise', fieldId: 'guidance_scale' }, + { portId: 'seed', role: 'denoise', fieldId: 'seed' }, + { portId: 'max_sequence_length', role: 'denoise', fieldId: 'max_sequence_length' }, + { portId: 'strength', role: 'denoise', fieldId: 'strength' }, + { + portId: 'control_image', + role: 'loadImage', + fieldId: 'file', + adaptation: 'media_file_path', + mediaType: 'image', + }, + { portId: 'output_type', role: 'decode', fieldId: 'output_type' }, + ], + outputs: [ + { portId: 'images', role: 'decode', fieldId: 'images', adaptation: 'direct_media', mediaType: 'image' }, + ], + }, controlFanOuts: [ { source: 'quantizationMode', persistence: 'execution_parameter', - primary: { - role: 'diffusersImagePipeline', - fieldId: 'quantization_mode', - }, - mirrors: [ - { - role: 'diffusersQuantization', - fieldId: 'backend', - }, - ], + primary: { role: 'diffusersImagePipeline', fieldId: 'quantization_mode' }, + mirrors: [{ role: 'diffusersQuantization', fieldId: 'backend' }], }, { source: 'dtype', persistence: 'execution_parameter', - primary: { - role: 'diffusersImagePipeline', - fieldId: 'dtype', - }, - mirrors: [ - { - role: 'diffusersQuantization', - fieldId: 'dtype', - }, - ], + primary: { role: 'diffusersImagePipeline', fieldId: 'dtype' }, + mirrors: [{ role: 'diffusersQuantization', fieldId: 'dtype' }], }, { source: 'offloadMode', persistence: 'execution_parameter', - primary: { - role: 'diffusersImagePipeline', - fieldId: 'offload_mode', - }, - mirrors: [ - { - role: 'diffusersRecipe', - fieldId: 'offload_mode', - }, - ], + primary: { role: 'diffusersImagePipeline', fieldId: 'offload_mode' }, + mirrors: [{ role: 'diffusersRecipe', fieldId: 'offload_mode' }], }, { source: 'device', persistence: 'execution_parameter', - primary: { - role: 'diffusersImagePipeline', - fieldId: 'device', - }, - mirrors: [ - { - role: 'diffusersRecipe', - fieldId: 'device', - }, - ], + primary: { role: 'diffusersImagePipeline', fieldId: 'device' }, + mirrors: [{ role: 'diffusersRecipe', fieldId: 'device' }], + }, + { + source: 'width', + persistence: 'instance_input', + primary: { role: 'denoise', fieldId: 'width' }, + mirrors: [{ role: 'imageEncode', fieldId: 'width' }], + }, + { + source: 'height', + persistence: 'instance_input', + primary: { role: 'denoise', fieldId: 'height' }, + mirrors: [{ role: 'imageEncode', fieldId: 'height' }], + }, + { + source: 'seed', + persistence: 'instance_input', + primary: { role: 'denoise', fieldId: 'seed' }, + mirrors: [{ role: 'imageEncode', fieldId: 'seed' }], + }, + { + source: 'maxSequenceLength', + persistence: 'instance_input', + primary: { role: 'denoise', fieldId: 'max_sequence_length' }, + mirrors: [{ role: 'imageEncode', fieldId: 'max_sequence_length' }], }, ], - boundary: { - inputs: [ - { - portId: 'prompt', - role: 'diffusersImageControl', - fieldId: 'prompt', - }, - { - portId: 'width', - role: 'diffusersImageControl', - fieldId: 'width', - }, - { - portId: 'height', - role: 'diffusersImageControl', - fieldId: 'height', - }, - { - portId: 'num_inference_steps', - role: 'diffusersImageControl', - fieldId: 'num_inference_steps', - }, - { - portId: 'guidance_scale', - role: 'diffusersImageControl', - fieldId: 'guidance_scale', - }, - { - portId: 'seed', - role: 'diffusersImageControl', - fieldId: 'seed', - }, - { - portId: 'max_sequence_length', - role: 'diffusersImageControl', - fieldId: 'max_sequence_length', - }, - { - portId: 'strength', - role: 'diffusersImageControl', - fieldId: 'strength', - }, - { - portId: 'control_image', - role: 'loadImage', - fieldId: 'file', - adaptation: 'media_file_path', - mediaType: 'image', - }, - { - portId: 'output_type', - role: 'diffusersImageControl', - fieldId: 'output_type', - }, - ], - outputs: [ - { - portId: 'images', - role: 'diffusersImageControl', - fieldId: 'images', - adaptation: 'direct_media', - mediaType: 'image', - }, - ], - }, + compiledDefinitionContentHash: 'block-definition-v2-0bffa507', + compiledDefinitionCanonicalSha256: 'sha256:5e83ddcac83464d438bfaa969c003ac3f8d42aa5c9b633d97f019d04cf3d95a5', }, { definitionId: 'diffusers.composite:FluxCannyPipeline:control_inpaint', - definitionContentHash: 'sha256:4adea08aa4c85a5dd486ef360ebd1fa72308ce5fec1ac5a6b5f64bae503cc539', + definitionContentHash: 'sha256:e6be9efb2d2b4e02beec674bb16b0991971f78822c4f1509204cd5cd4e40a344', provider: 'diffusers', surface: 'diffusers_cluster_nodes', definitionKind: 'studio_execution_composite', - libraryRevision: 'fbf49e7f35857f76bc57b177e26f12b03687c668', + libraryRevision: '7ecb1e1b4fe500be7fb7381a7bb79a24d7fa3941', pipelineClass: 'FluxCannyPipeline', workflowId: 'control_inpaint', admissionId: 'diffusers.cluster-admission:FluxCannyPipeline:control_inpaint:mode:control_inpaint', @@ -959,8 +906,8 @@ export const REGISTERED_BLOCK_V2_ORDINARY_FLUX_ROUTES: readonly RegisteredBlockV revision: '27c3d8bdc17509b47cf4fd9ba25ab1c7508a69a2', }, dynamicFieldActions: [], - compiledDefinitionContentHash: 'block-definition-v2-ce2e8188', - compiledDefinitionCanonicalSha256: 'sha256:4957896f4745990be714467c9ce57706a163f5cd9aba653774e90001e30ec388', + compiledDefinitionContentHash: 'block-definition-v2-0c46a3db', + compiledDefinitionCanonicalSha256: 'sha256:7a5070974aa8bbcbdb64f896db669154436101da801495cd1a7dd999bf537aed', controlFanOuts: [ { source: 'quantizationMode', @@ -1115,11 +1062,11 @@ export const REGISTERED_BLOCK_V2_ORDINARY_FLUX_ROUTES: readonly RegisteredBlockV }, { definitionId: 'diffusers.composite:FluxDepthPipeline:control_edit_image', - definitionContentHash: 'sha256:e043c96e307a3b770247e0c77c8264263077ccd684edce33c419a09d080c8644', + definitionContentHash: 'sha256:4b8037b717fb94b5f5bdc3bd50c687be180010aa888548f9cfd11fcf3761ee25', provider: 'diffusers', surface: 'diffusers_cluster_nodes', definitionKind: 'studio_execution_composite', - libraryRevision: 'fbf49e7f35857f76bc57b177e26f12b03687c668', + libraryRevision: '7ecb1e1b4fe500be7fb7381a7bb79a24d7fa3941', pipelineClass: 'FluxDepthPipeline', workflowId: 'control_edit_image', admissionId: 'diffusers.cluster-admission:FluxDepthPipeline:control_edit_image:mode:control_edit_image', @@ -1135,8 +1082,8 @@ export const REGISTERED_BLOCK_V2_ORDINARY_FLUX_ROUTES: readonly RegisteredBlockV revision: 'fb5e9b1bae41b8c8adcea4ea2a87b74dd298f07a', }, dynamicFieldActions: [], - compiledDefinitionContentHash: 'block-definition-v2-6795e33c', - compiledDefinitionCanonicalSha256: 'sha256:b48e57bfb5afd96b46df9f69d19f36922edc66997f163fb668828d5a062c7598', + compiledDefinitionContentHash: 'block-definition-v2-ec261dff', + compiledDefinitionCanonicalSha256: 'sha256:8d44b429a67a128ff3af1ba5391033bd7820ffb4a089ad5a6ae077365007a195', controlFanOuts: [ { source: 'quantizationMode', @@ -1284,159 +1231,106 @@ export const REGISTERED_BLOCK_V2_ORDINARY_FLUX_ROUTES: readonly RegisteredBlockV }, { definitionId: 'diffusers.composite:FluxDepthPipeline:control_image', - definitionContentHash: 'sha256:9c40bc50c9e203a9a1f49b566021394b8d53da354f2e4d1340b21c3cff694011', + definitionContentHash: 'sha256:101c1fcdd5ce375df43f8c3aa4a37a278568d649c2e206b215ba52c1ed5ad47a', provider: 'diffusers', surface: 'diffusers_cluster_nodes', definitionKind: 'studio_execution_composite', - libraryRevision: 'fbf49e7f35857f76bc57b177e26f12b03687c668', + libraryRevision: '7ecb1e1b4fe500be7fb7381a7bb79a24d7fa3941', pipelineClass: 'FluxDepthPipeline', workflowId: 'control_image', admissionId: 'diffusers.cluster-admission:FluxDepthPipeline:control_image:mode:control_image', studioMode: 'control_image', adapterContractId: 'diffusers.composite-adapter:FluxDepthPipeline:control_image', studioExecutionSpec: { - contentHash: 'studio-spec-v1-2d8b881e', + contentHash: 'studio-spec-v1-220321e3', executionProfileId: 'flux-depth:direct', id: 'flux-depth:control-image:v1', }, - artifact: { - repo: 'black-forest-labs/FLUX.1-Depth-dev', - revision: 'fb5e9b1bae41b8c8adcea4ea2a87b74dd298f07a', - }, + artifact: { repo: 'black-forest-labs/FLUX.1-Depth-dev', revision: 'fb5e9b1bae41b8c8adcea4ea2a87b74dd298f07a' }, dynamicFieldActions: [], - compiledDefinitionContentHash: 'block-definition-v2-ae926ebb', - compiledDefinitionCanonicalSha256: 'sha256:d0bc2f5e78afc1e5be79e9bda390ef9bcfdea2459147c555d0eb76873ac29d84', + boundary: { + inputs: [ + { portId: 'prompt', role: 'imageEncode', fieldId: 'prompt' }, + { portId: 'width', role: 'denoise', fieldId: 'width' }, + { portId: 'height', role: 'denoise', fieldId: 'height' }, + { portId: 'num_inference_steps', role: 'denoise', fieldId: 'num_inference_steps' }, + { portId: 'guidance_scale', role: 'denoise', fieldId: 'guidance_scale' }, + { portId: 'seed', role: 'denoise', fieldId: 'seed' }, + { portId: 'max_sequence_length', role: 'denoise', fieldId: 'max_sequence_length' }, + { portId: 'strength', role: 'denoise', fieldId: 'strength' }, + { + portId: 'control_image', + role: 'loadImage', + fieldId: 'file', + adaptation: 'media_file_path', + mediaType: 'image', + }, + { portId: 'output_type', role: 'decode', fieldId: 'output_type' }, + ], + outputs: [ + { portId: 'images', role: 'decode', fieldId: 'images', adaptation: 'direct_media', mediaType: 'image' }, + ], + }, controlFanOuts: [ { source: 'quantizationMode', persistence: 'execution_parameter', - primary: { - role: 'diffusersImagePipeline', - fieldId: 'quantization_mode', - }, - mirrors: [ - { - role: 'diffusersQuantization', - fieldId: 'backend', - }, - ], + primary: { role: 'diffusersImagePipeline', fieldId: 'quantization_mode' }, + mirrors: [{ role: 'diffusersQuantization', fieldId: 'backend' }], }, { source: 'dtype', persistence: 'execution_parameter', - primary: { - role: 'diffusersImagePipeline', - fieldId: 'dtype', - }, - mirrors: [ - { - role: 'diffusersQuantization', - fieldId: 'dtype', - }, - ], + primary: { role: 'diffusersImagePipeline', fieldId: 'dtype' }, + mirrors: [{ role: 'diffusersQuantization', fieldId: 'dtype' }], }, { source: 'offloadMode', persistence: 'execution_parameter', - primary: { - role: 'diffusersImagePipeline', - fieldId: 'offload_mode', - }, - mirrors: [ - { - role: 'diffusersRecipe', - fieldId: 'offload_mode', - }, - ], + primary: { role: 'diffusersImagePipeline', fieldId: 'offload_mode' }, + mirrors: [{ role: 'diffusersRecipe', fieldId: 'offload_mode' }], }, { source: 'device', persistence: 'execution_parameter', - primary: { - role: 'diffusersImagePipeline', - fieldId: 'device', - }, - mirrors: [ - { - role: 'diffusersRecipe', - fieldId: 'device', - }, - ], + primary: { role: 'diffusersImagePipeline', fieldId: 'device' }, + mirrors: [{ role: 'diffusersRecipe', fieldId: 'device' }], + }, + { + source: 'width', + persistence: 'instance_input', + primary: { role: 'denoise', fieldId: 'width' }, + mirrors: [{ role: 'imageEncode', fieldId: 'width' }], + }, + { + source: 'height', + persistence: 'instance_input', + primary: { role: 'denoise', fieldId: 'height' }, + mirrors: [{ role: 'imageEncode', fieldId: 'height' }], + }, + { + source: 'seed', + persistence: 'instance_input', + primary: { role: 'denoise', fieldId: 'seed' }, + mirrors: [{ role: 'imageEncode', fieldId: 'seed' }], + }, + { + source: 'maxSequenceLength', + persistence: 'instance_input', + primary: { role: 'denoise', fieldId: 'max_sequence_length' }, + mirrors: [{ role: 'imageEncode', fieldId: 'max_sequence_length' }], }, ], - boundary: { - inputs: [ - { - portId: 'prompt', - role: 'diffusersImageControl', - fieldId: 'prompt', - }, - { - portId: 'width', - role: 'diffusersImageControl', - fieldId: 'width', - }, - { - portId: 'height', - role: 'diffusersImageControl', - fieldId: 'height', - }, - { - portId: 'num_inference_steps', - role: 'diffusersImageControl', - fieldId: 'num_inference_steps', - }, - { - portId: 'guidance_scale', - role: 'diffusersImageControl', - fieldId: 'guidance_scale', - }, - { - portId: 'seed', - role: 'diffusersImageControl', - fieldId: 'seed', - }, - { - portId: 'max_sequence_length', - role: 'diffusersImageControl', - fieldId: 'max_sequence_length', - }, - { - portId: 'strength', - role: 'diffusersImageControl', - fieldId: 'strength', - }, - { - portId: 'control_image', - role: 'loadImage', - fieldId: 'file', - adaptation: 'media_file_path', - mediaType: 'image', - }, - { - portId: 'output_type', - role: 'diffusersImageControl', - fieldId: 'output_type', - }, - ], - outputs: [ - { - portId: 'images', - role: 'diffusersImageControl', - fieldId: 'images', - adaptation: 'direct_media', - mediaType: 'image', - }, - ], - }, + compiledDefinitionContentHash: 'block-definition-v2-f8f5c0e3', + compiledDefinitionCanonicalSha256: 'sha256:12fbd2e80db216030bf2c0b06ef9a1be22c6465dd645abb9e1a02484b0f25be5', }, { definitionId: 'diffusers.composite:FluxDepthPipeline:control_inpaint', - definitionContentHash: 'sha256:dfb1abb9cb811e22176f3712f363046d9bcf3a6ac5afa11580b56b489bc12966', + definitionContentHash: 'sha256:8428454df1f0920e1c73c7f383bc63e183d39764af73fb2d027966b17fa137c2', provider: 'diffusers', surface: 'diffusers_cluster_nodes', definitionKind: 'studio_execution_composite', - libraryRevision: 'fbf49e7f35857f76bc57b177e26f12b03687c668', + libraryRevision: '7ecb1e1b4fe500be7fb7381a7bb79a24d7fa3941', pipelineClass: 'FluxDepthPipeline', workflowId: 'control_inpaint', admissionId: 'diffusers.cluster-admission:FluxDepthPipeline:control_inpaint:mode:control_inpaint', @@ -1452,8 +1346,8 @@ export const REGISTERED_BLOCK_V2_ORDINARY_FLUX_ROUTES: readonly RegisteredBlockV revision: 'fb5e9b1bae41b8c8adcea4ea2a87b74dd298f07a', }, dynamicFieldActions: [], - compiledDefinitionContentHash: 'block-definition-v2-0e78f83a', - compiledDefinitionCanonicalSha256: 'sha256:13218b8d2cd21d1f4acfd2abd89410cf2cbc8657a87e35b00dd21a9aa1a638ed', + compiledDefinitionContentHash: 'block-definition-v2-26780ecb', + compiledDefinitionCanonicalSha256: 'sha256:abd5358558c4e6e69361ab9f1b13b8809ae25466d2318beb98417a5cdb2fbc0c', controlFanOuts: [ { source: 'quantizationMode', @@ -1608,11 +1502,11 @@ export const REGISTERED_BLOCK_V2_ORDINARY_FLUX_ROUTES: readonly RegisteredBlockV }, { definitionId: 'diffusers.composite:FluxDevPipeline:inpaint', - definitionContentHash: 'sha256:e4eb42b4b1f294127fc4084de035b9cea1c7343d4b6db71412507b3f3591cfb2', + definitionContentHash: 'sha256:acb22997e8f4062b3ae1241998d20da041bde7807a3a77ad79cf4de2bcaafd3f', provider: 'diffusers', surface: 'diffusers_cluster_nodes', definitionKind: 'studio_execution_composite', - libraryRevision: 'fbf49e7f35857f76bc57b177e26f12b03687c668', + libraryRevision: '7ecb1e1b4fe500be7fb7381a7bb79a24d7fa3941', pipelineClass: 'FluxDevPipeline', workflowId: 'inpaint', admissionId: 'diffusers.cluster-admission:FluxDevPipeline:inpaint:mode:inpaint', @@ -1628,8 +1522,8 @@ export const REGISTERED_BLOCK_V2_ORDINARY_FLUX_ROUTES: readonly RegisteredBlockV revision: '3de623fc3c33e44ffbe2bad470d0f45bccf2eb21', }, dynamicFieldActions: [], - compiledDefinitionContentHash: 'block-definition-v2-27e367e4', - compiledDefinitionCanonicalSha256: 'sha256:7a880c79b29ee559001dff3ba84f37b87d74f58e61b154cbc39bb5b8224fbe64', + compiledDefinitionContentHash: 'block-definition-v2-d552db2a', + compiledDefinitionCanonicalSha256: 'sha256:590ead78ad1014e80f7f05f19b5b62efbb40144de408cbbe8d1b43a8b229a834', controlFanOuts: [ { source: 'quantizationMode', @@ -1763,321 +1657,179 @@ export const REGISTERED_BLOCK_V2_ORDINARY_FLUX_ROUTES: readonly RegisteredBlockV }, { definitionId: 'diffusers.composite:FluxFillPipeline:inpaint', - definitionContentHash: 'sha256:fbd324e267bcc5bad1238d0e858e46febad07521bc9f35b9f1709fdfd267e53f', + definitionContentHash: 'sha256:2954a0a59522cac2f2b7a8e173439a2ad1146b3650d446e17c71fe5ad7480b20', provider: 'diffusers', surface: 'diffusers_cluster_nodes', definitionKind: 'studio_execution_composite', - libraryRevision: 'fbf49e7f35857f76bc57b177e26f12b03687c668', + libraryRevision: '7ecb1e1b4fe500be7fb7381a7bb79a24d7fa3941', pipelineClass: 'FluxFillPipeline', workflowId: 'inpaint', admissionId: 'diffusers.cluster-admission:FluxFillPipeline:inpaint:mode:inpaint', studioMode: 'inpaint', adapterContractId: 'diffusers.composite-adapter:FluxFillPipeline:inpaint', studioExecutionSpec: { - contentHash: 'studio-spec-v1-ba8c8dd1', + contentHash: 'studio-spec-v1-56386076', executionProfileId: 'flux-fill:direct', id: 'flux-fill:inpaint:v1', }, - artifact: { - repo: 'black-forest-labs/FLUX.1-Fill-dev', - revision: '358293da0354175698b67ec8299acf928313a78a', - }, + artifact: { repo: 'black-forest-labs/FLUX.1-Fill-dev', revision: '358293da0354175698b67ec8299acf928313a78a' }, dynamicFieldActions: [], - compiledDefinitionContentHash: 'block-definition-v2-7930f6a9', - compiledDefinitionCanonicalSha256: 'sha256:b6311dd4059f7a91667ae88fd73ed7e035406b5c227139ede45a864fa9653963', - controlFanOuts: [ - { + boundary: { + inputs: [ + { portId: 'prompt', role: 'imageEncode', fieldId: 'prompt' }, + { portId: 'width', role: 'denoise', fieldId: 'width' }, + { portId: 'height', role: 'denoise', fieldId: 'height' }, + { portId: 'num_inference_steps', role: 'denoise', fieldId: 'num_inference_steps' }, + { portId: 'guidance_scale', role: 'denoise', fieldId: 'guidance_scale' }, + { portId: 'seed', role: 'denoise', fieldId: 'seed' }, + { portId: 'max_sequence_length', role: 'denoise', fieldId: 'max_sequence_length' }, + { portId: 'strength', role: 'denoise', fieldId: 'strength' }, + { portId: 'image', role: 'loadImage', fieldId: 'file', adaptation: 'media_file_path', mediaType: 'image' }, + { portId: 'mask_image', role: 'loadMask', fieldId: 'file', adaptation: 'media_file_path', mediaType: 'image' }, + { portId: 'output_type', role: 'decode', fieldId: 'output_type' }, + ], + outputs: [ + { portId: 'images', role: 'decode', fieldId: 'images', adaptation: 'direct_media', mediaType: 'image' }, + ], + }, + controlFanOuts: [ + { source: 'quantizationMode', persistence: 'execution_parameter', - primary: { - role: 'diffusersImagePipeline', - fieldId: 'quantization_mode', - }, - mirrors: [ - { - role: 'diffusersQuantization', - fieldId: 'backend', - }, - ], + primary: { role: 'diffusersImagePipeline', fieldId: 'quantization_mode' }, + mirrors: [{ role: 'diffusersQuantization', fieldId: 'backend' }], }, { source: 'dtype', persistence: 'execution_parameter', - primary: { - role: 'diffusersImagePipeline', - fieldId: 'dtype', - }, - mirrors: [ - { - role: 'diffusersQuantization', - fieldId: 'dtype', - }, - ], + primary: { role: 'diffusersImagePipeline', fieldId: 'dtype' }, + mirrors: [{ role: 'diffusersQuantization', fieldId: 'dtype' }], }, { source: 'offloadMode', persistence: 'execution_parameter', - primary: { - role: 'diffusersImagePipeline', - fieldId: 'offload_mode', - }, - mirrors: [ - { - role: 'diffusersRecipe', - fieldId: 'offload_mode', - }, - ], + primary: { role: 'diffusersImagePipeline', fieldId: 'offload_mode' }, + mirrors: [{ role: 'diffusersRecipe', fieldId: 'offload_mode' }], }, { source: 'device', persistence: 'execution_parameter', - primary: { - role: 'diffusersImagePipeline', - fieldId: 'device', - }, - mirrors: [ - { - role: 'diffusersRecipe', - fieldId: 'device', - }, - ], + primary: { role: 'diffusersImagePipeline', fieldId: 'device' }, + mirrors: [{ role: 'diffusersRecipe', fieldId: 'device' }], + }, + { + source: 'width', + persistence: 'instance_input', + primary: { role: 'denoise', fieldId: 'width' }, + mirrors: [{ role: 'imageEncode', fieldId: 'width' }], + }, + { + source: 'height', + persistence: 'instance_input', + primary: { role: 'denoise', fieldId: 'height' }, + mirrors: [{ role: 'imageEncode', fieldId: 'height' }], + }, + { + source: 'maxSequenceLength', + persistence: 'instance_input', + primary: { role: 'denoise', fieldId: 'max_sequence_length' }, + mirrors: [{ role: 'imageEncode', fieldId: 'max_sequence_length' }], }, ], - boundary: { - inputs: [ - { - portId: 'prompt', - role: 'diffusersImageInpaint', - fieldId: 'prompt', - }, - { - portId: 'width', - role: 'diffusersImageInpaint', - fieldId: 'width', - }, - { - portId: 'height', - role: 'diffusersImageInpaint', - fieldId: 'height', - }, - { - portId: 'num_inference_steps', - role: 'diffusersImageInpaint', - fieldId: 'num_inference_steps', - }, - { - portId: 'guidance_scale', - role: 'diffusersImageInpaint', - fieldId: 'guidance_scale', - }, - { - portId: 'seed', - role: 'diffusersImageInpaint', - fieldId: 'seed', - }, - { - portId: 'max_sequence_length', - role: 'diffusersImageInpaint', - fieldId: 'max_sequence_length', - }, - { - portId: 'strength', - role: 'diffusersImageInpaint', - fieldId: 'strength', - }, - { - portId: 'image', - role: 'loadImage', - fieldId: 'file', - adaptation: 'media_file_path', - mediaType: 'image', - }, - { - portId: 'mask_image', - role: 'loadMask', - fieldId: 'file', - adaptation: 'media_file_path', - mediaType: 'image', - }, - { - portId: 'output_type', - role: 'diffusersImageInpaint', - fieldId: 'output_type', - }, - ], - outputs: [ - { - portId: 'images', - role: 'diffusersImageInpaint', - fieldId: 'images', - adaptation: 'direct_media', - mediaType: 'image', - }, - ], - }, + compiledDefinitionContentHash: 'block-definition-v2-265cc136', + compiledDefinitionCanonicalSha256: 'sha256:6f8b4fb32a9b47edfc6cde7777c64d08b3e382ef2b0d980a532b47f7f57ebb4a', }, { definitionId: 'diffusers.composite:FluxFillPipeline:outpaint', - definitionContentHash: 'sha256:0a3720727a63b42f81b98f71e199f74c492dd9cdfadb357729ea77c1be268130', + definitionContentHash: 'sha256:aed711d16562a193998f2f71079956dca01627f4c2a3c6c490bba7bed8283247', provider: 'diffusers', surface: 'diffusers_cluster_nodes', definitionKind: 'studio_execution_composite', - libraryRevision: 'fbf49e7f35857f76bc57b177e26f12b03687c668', + libraryRevision: '7ecb1e1b4fe500be7fb7381a7bb79a24d7fa3941', pipelineClass: 'FluxFillPipeline', workflowId: 'outpaint', admissionId: 'diffusers.cluster-admission:FluxFillPipeline:outpaint:mode:outpaint', studioMode: 'outpaint', adapterContractId: 'diffusers.composite-adapter:FluxFillPipeline:outpaint', studioExecutionSpec: { - contentHash: 'studio-spec-v1-5c0d7413', + contentHash: 'studio-spec-v1-43b42868', executionProfileId: 'flux-fill:direct', id: 'flux-fill:outpaint:v1', }, - artifact: { - repo: 'black-forest-labs/FLUX.1-Fill-dev', - revision: '358293da0354175698b67ec8299acf928313a78a', - }, + artifact: { repo: 'black-forest-labs/FLUX.1-Fill-dev', revision: '358293da0354175698b67ec8299acf928313a78a' }, dynamicFieldActions: [], - compiledDefinitionContentHash: 'block-definition-v2-9a62a3f2', - compiledDefinitionCanonicalSha256: 'sha256:8a0e0a064e5df5fc0b935e91e9e7b62347958338816b8ba5f5c5710df7502289', + boundary: { + inputs: [ + { portId: 'prompt', role: 'imageEncode', fieldId: 'prompt' }, + { portId: 'width', role: 'denoise', fieldId: 'width' }, + { portId: 'height', role: 'denoise', fieldId: 'height' }, + { portId: 'num_inference_steps', role: 'denoise', fieldId: 'num_inference_steps' }, + { portId: 'guidance_scale', role: 'denoise', fieldId: 'guidance_scale' }, + { portId: 'seed', role: 'denoise', fieldId: 'seed' }, + { portId: 'max_sequence_length', role: 'denoise', fieldId: 'max_sequence_length' }, + { portId: 'strength', role: 'denoise', fieldId: 'strength' }, + { portId: 'image', role: 'loadImage', fieldId: 'file', adaptation: 'media_file_path', mediaType: 'image' }, + { portId: 'mask_image', role: 'loadMask', fieldId: 'file', adaptation: 'media_file_path', mediaType: 'image' }, + { portId: 'output_type', role: 'decode', fieldId: 'output_type' }, + ], + outputs: [ + { portId: 'images', role: 'decode', fieldId: 'images', adaptation: 'direct_media', mediaType: 'image' }, + ], + }, controlFanOuts: [ { source: 'quantizationMode', persistence: 'execution_parameter', - primary: { - role: 'diffusersImagePipeline', - fieldId: 'quantization_mode', - }, - mirrors: [ - { - role: 'diffusersQuantization', - fieldId: 'backend', - }, - ], + primary: { role: 'diffusersImagePipeline', fieldId: 'quantization_mode' }, + mirrors: [{ role: 'diffusersQuantization', fieldId: 'backend' }], }, { source: 'dtype', persistence: 'execution_parameter', - primary: { - role: 'diffusersImagePipeline', - fieldId: 'dtype', - }, - mirrors: [ - { - role: 'diffusersQuantization', - fieldId: 'dtype', - }, - ], + primary: { role: 'diffusersImagePipeline', fieldId: 'dtype' }, + mirrors: [{ role: 'diffusersQuantization', fieldId: 'dtype' }], }, { source: 'offloadMode', persistence: 'execution_parameter', - primary: { - role: 'diffusersImagePipeline', - fieldId: 'offload_mode', - }, - mirrors: [ - { - role: 'diffusersRecipe', - fieldId: 'offload_mode', - }, - ], + primary: { role: 'diffusersImagePipeline', fieldId: 'offload_mode' }, + mirrors: [{ role: 'diffusersRecipe', fieldId: 'offload_mode' }], }, { source: 'device', persistence: 'execution_parameter', - primary: { - role: 'diffusersImagePipeline', - fieldId: 'device', - }, - mirrors: [ - { - role: 'diffusersRecipe', - fieldId: 'device', - }, - ], + primary: { role: 'diffusersImagePipeline', fieldId: 'device' }, + mirrors: [{ role: 'diffusersRecipe', fieldId: 'device' }], + }, + { + source: 'width', + persistence: 'instance_input', + primary: { role: 'denoise', fieldId: 'width' }, + mirrors: [{ role: 'imageEncode', fieldId: 'width' }], + }, + { + source: 'height', + persistence: 'instance_input', + primary: { role: 'denoise', fieldId: 'height' }, + mirrors: [{ role: 'imageEncode', fieldId: 'height' }], + }, + { + source: 'maxSequenceLength', + persistence: 'instance_input', + primary: { role: 'denoise', fieldId: 'max_sequence_length' }, + mirrors: [{ role: 'imageEncode', fieldId: 'max_sequence_length' }], }, ], - boundary: { - inputs: [ - { - portId: 'prompt', - role: 'diffusersImageInpaint', - fieldId: 'prompt', - }, - { - portId: 'width', - role: 'diffusersImageInpaint', - fieldId: 'width', - }, - { - portId: 'height', - role: 'diffusersImageInpaint', - fieldId: 'height', - }, - { - portId: 'num_inference_steps', - role: 'diffusersImageInpaint', - fieldId: 'num_inference_steps', - }, - { - portId: 'guidance_scale', - role: 'diffusersImageInpaint', - fieldId: 'guidance_scale', - }, - { - portId: 'seed', - role: 'diffusersImageInpaint', - fieldId: 'seed', - }, - { - portId: 'max_sequence_length', - role: 'diffusersImageInpaint', - fieldId: 'max_sequence_length', - }, - { - portId: 'strength', - role: 'diffusersImageInpaint', - fieldId: 'strength', - }, - { - portId: 'image', - role: 'loadImage', - fieldId: 'file', - adaptation: 'media_file_path', - mediaType: 'image', - }, - { - portId: 'mask_image', - role: 'loadMask', - fieldId: 'file', - adaptation: 'media_file_path', - mediaType: 'image', - }, - { - portId: 'output_type', - role: 'diffusersImageInpaint', - fieldId: 'output_type', - }, - ], - outputs: [ - { - portId: 'images', - role: 'diffusersImageInpaint', - fieldId: 'images', - adaptation: 'direct_media', - mediaType: 'image', - }, - ], - }, + compiledDefinitionContentHash: 'block-definition-v2-c9036f1d', + compiledDefinitionCanonicalSha256: 'sha256:27d27afb3e37f0cf807a58e5da4dee9bf273415503d59631921052fb5d6e8639', }, { definitionId: 'diffusers.composite:FluxKontextInpaintPipeline:inpaint', - definitionContentHash: 'sha256:ed56bb8c987fade2d02786a2189e1366246479d7a6f8de16d638f7325b0c287f', + definitionContentHash: 'sha256:0846d0eb2328823a4e5ffe36944de6690e956e2af09d8b4e2216e1454accc1da', provider: 'diffusers', surface: 'diffusers_cluster_nodes', definitionKind: 'studio_execution_composite', - libraryRevision: 'fbf49e7f35857f76bc57b177e26f12b03687c668', + libraryRevision: '7ecb1e1b4fe500be7fb7381a7bb79a24d7fa3941', pipelineClass: 'FluxKontextInpaintPipeline', workflowId: 'inpaint', admissionId: 'diffusers.cluster-admission:FluxKontextInpaintPipeline:inpaint:mode:inpaint', @@ -2093,8 +1845,8 @@ export const REGISTERED_BLOCK_V2_ORDINARY_FLUX_ROUTES: readonly RegisteredBlockV revision: '24e9dedc4ef646698dc8eb4e18ae2cec3c9fea0d', }, dynamicFieldActions: [], - compiledDefinitionContentHash: 'block-definition-v2-35b1da23', - compiledDefinitionCanonicalSha256: 'sha256:c79a69a72e2f31d515255a435cfe888c8ea293f3340f4c4b4fafc76560d8cf37', + compiledDefinitionContentHash: 'block-definition-v2-b2b5acab', + compiledDefinitionCanonicalSha256: 'sha256:1e7eeb03460765faee45c62f932e1b26b4c6bbf43342abb2df3e6c85ac99c3dc', controlFanOuts: [ { source: 'quantizationMode', @@ -2233,11 +1985,11 @@ export const REGISTERED_BLOCK_V2_ORDINARY_FLUX_ROUTES: readonly RegisteredBlockV }, { definitionId: 'diffusers.composite:FluxKontextInpaintPipeline:outpaint', - definitionContentHash: 'sha256:3f101d673b87aa35da363b34b1d71fb7ab090f22f1b5fb2967ce2dc96b9dfa16', + definitionContentHash: 'sha256:432ebaf2a041c5325e16255cff4e45f9d3b1ec73cab83fda3d2a2eb21349dc7b', provider: 'diffusers', surface: 'diffusers_cluster_nodes', definitionKind: 'studio_execution_composite', - libraryRevision: 'fbf49e7f35857f76bc57b177e26f12b03687c668', + libraryRevision: '7ecb1e1b4fe500be7fb7381a7bb79a24d7fa3941', pipelineClass: 'FluxKontextInpaintPipeline', workflowId: 'outpaint', admissionId: 'diffusers.cluster-admission:FluxKontextInpaintPipeline:outpaint:mode:outpaint', @@ -2253,8 +2005,8 @@ export const REGISTERED_BLOCK_V2_ORDINARY_FLUX_ROUTES: readonly RegisteredBlockV revision: '24e9dedc4ef646698dc8eb4e18ae2cec3c9fea0d', }, dynamicFieldActions: [], - compiledDefinitionContentHash: 'block-definition-v2-55848bf3', - compiledDefinitionCanonicalSha256: 'sha256:a49eabbb5a178b74d6b503b2ed71a4a33b4e16ed990d3a2220f8565ce724efdd', + compiledDefinitionContentHash: 'block-definition-v2-0c086193', + compiledDefinitionCanonicalSha256: 'sha256:f3f1610a987dc0bec8826f3b37e07a4147554d08ab3d9e0259aa4d8e6ff807d1', controlFanOuts: [ { source: 'quantizationMode', @@ -2414,11 +2166,11 @@ export const REGISTERED_BLOCK_V2_ORDINARY_FLUX_ROUTES: readonly RegisteredBlockV }, { definitionId: 'diffusers.composite:FluxKontextPipeline:multi_image_reference_edit', - definitionContentHash: 'sha256:d661ffe6bea33c96883b20c6c3fe7471aa1c407de19fbee75d66350158817e11', + definitionContentHash: 'sha256:99365bd5d71c6e5d0f54505b9e25e3ec12dafd16293405feb5d4fac14f06b812', provider: 'diffusers', surface: 'diffusers_cluster_nodes', definitionKind: 'studio_execution_composite', - libraryRevision: 'fbf49e7f35857f76bc57b177e26f12b03687c668', + libraryRevision: '7ecb1e1b4fe500be7fb7381a7bb79a24d7fa3941', pipelineClass: 'FluxKontextPipeline', workflowId: 'multi_image_reference_edit', admissionId: @@ -2435,8 +2187,8 @@ export const REGISTERED_BLOCK_V2_ORDINARY_FLUX_ROUTES: readonly RegisteredBlockV revision: '24e9dedc4ef646698dc8eb4e18ae2cec3c9fea0d', }, dynamicFieldActions: [], - compiledDefinitionContentHash: 'block-definition-v2-78cff9ff', - compiledDefinitionCanonicalSha256: 'sha256:a12f1c7c38ed6fb4856dd8aef6a64e5584a1227b9b58a9ab59fcae91a57b43d8', + compiledDefinitionContentHash: 'block-definition-v2-ea52a652', + compiledDefinitionCanonicalSha256: 'sha256:cba7df1a79f050c6313bf6248333e579b4d595fdc19dbe5ad6719b3a8f1600d3', controlFanOuts: [ { source: 'quantizationMode', @@ -2558,11 +2310,11 @@ export const REGISTERED_BLOCK_V2_ORDINARY_FLUX_ROUTES: readonly RegisteredBlockV }, { definitionId: 'diffusers.composite:FluxKreaPipeline:text_to_image', - definitionContentHash: 'sha256:048b424d5e11a0927dd3deb4916467a34a55121a89d9fd74de1c6f885839f468', + definitionContentHash: 'sha256:515ef0eff55577ed82f5ee817a8ef27f41315837a4518bda178292ddfee854dc', provider: 'diffusers', surface: 'diffusers_cluster_nodes', definitionKind: 'studio_execution_composite', - libraryRevision: 'fbf49e7f35857f76bc57b177e26f12b03687c668', + libraryRevision: '7ecb1e1b4fe500be7fb7381a7bb79a24d7fa3941', pipelineClass: 'FluxKreaPipeline', workflowId: 'text_to_image', admissionId: 'diffusers.cluster-admission:FluxKreaPipeline:text_to_image:mode:text_to_image', @@ -2578,8 +2330,8 @@ export const REGISTERED_BLOCK_V2_ORDINARY_FLUX_ROUTES: readonly RegisteredBlockV revision: '8162a9c7b05a641be098422bf2fcf335615c2f28', }, dynamicFieldActions: [], - compiledDefinitionContentHash: 'block-definition-v2-6333f021', - compiledDefinitionCanonicalSha256: 'sha256:15741658977fb933ab3db1023af07ecb4464ee92168858075cfced5b95e2980e', + compiledDefinitionContentHash: 'block-definition-v2-0f6705a8', + compiledDefinitionCanonicalSha256: 'sha256:13255a5ad294784002a4cff91243dfa93b2aca8a9a09736742ef0d7643d11a0c', controlFanOuts: [ { source: 'quantizationMode', @@ -2694,154 +2446,75 @@ export const REGISTERED_BLOCK_V2_ORDINARY_FLUX_ROUTES: readonly RegisteredBlockV }, { definitionId: 'diffusers.composite:FluxReduxPipeline:edit_image', - definitionContentHash: 'sha256:31ba91eb83a23f7b259e7c43b5941e97c39e85bc393fc8017f947c1e5f60fba7', + definitionContentHash: 'sha256:ec2d07ce06f305a9c814d7c47bf3ad191c1b2c8a2743de468115371100d8beab', provider: 'diffusers', surface: 'diffusers_cluster_nodes', definitionKind: 'studio_execution_composite', - libraryRevision: 'fbf49e7f35857f76bc57b177e26f12b03687c668', + libraryRevision: '7ecb1e1b4fe500be7fb7381a7bb79a24d7fa3941', pipelineClass: 'FluxReduxPipeline', workflowId: 'edit_image', admissionId: 'diffusers.cluster-admission:FluxReduxPipeline:edit_image:mode:edit_image', studioMode: 'edit_image', adapterContractId: 'diffusers.composite-adapter:FluxReduxPipeline:edit_image', studioExecutionSpec: { - contentHash: 'studio-spec-v1-36b6aa16', + contentHash: 'studio-spec-v1-c0ff5ecd', executionProfileId: 'flux-redux:direct', id: 'flux-redux:edit-image:v1', }, - artifact: { - repo: 'black-forest-labs/FLUX.1-Redux-dev', - revision: 'c95859fbf7703ca4d6824b4da4407d7cd0434f81', - }, + artifact: { repo: 'black-forest-labs/FLUX.1-Redux-dev', revision: 'c95859fbf7703ca4d6824b4da4407d7cd0434f81' }, dynamicFieldActions: [], - compiledDefinitionContentHash: 'block-definition-v2-58099051', - compiledDefinitionCanonicalSha256: 'sha256:398f5c731d5ae518e40577aba0b1abc95b7ed2e5ed96d683c280e1e6a2e5ebf3', + boundary: { + inputs: [ + { portId: 'prompt', role: 'imageEncode', fieldId: 'prompt' }, + { portId: 'width', role: 'denoise', fieldId: 'width' }, + { portId: 'height', role: 'denoise', fieldId: 'height' }, + { portId: 'num_inference_steps', role: 'denoise', fieldId: 'num_inference_steps' }, + { portId: 'guidance_scale', role: 'denoise', fieldId: 'guidance_scale' }, + { portId: 'seed', role: 'denoise', fieldId: 'seed' }, + { portId: 'max_sequence_length', role: 'denoise', fieldId: 'max_sequence_length' }, + { portId: 'image', role: 'loadImage', fieldId: 'file', adaptation: 'media_file_path', mediaType: 'image' }, + { portId: 'output_type', role: 'decode', fieldId: 'output_type' }, + ], + outputs: [ + { portId: 'images', role: 'decode', fieldId: 'images', adaptation: 'direct_media', mediaType: 'image' }, + ], + }, controlFanOuts: [ { source: 'quantizationMode', persistence: 'execution_parameter', - primary: { - role: 'diffusersImagePipeline', - fieldId: 'quantization_mode', - }, - mirrors: [ - { - role: 'diffusersQuantization', - fieldId: 'backend', - }, - ], + primary: { role: 'diffusersImagePipeline', fieldId: 'quantization_mode' }, + mirrors: [{ role: 'diffusersQuantization', fieldId: 'backend' }], }, { source: 'dtype', persistence: 'execution_parameter', - primary: { - role: 'diffusersImagePipeline', - fieldId: 'dtype', - }, - mirrors: [ - { - role: 'diffusersQuantization', - fieldId: 'dtype', - }, - ], + primary: { role: 'diffusersImagePipeline', fieldId: 'dtype' }, + mirrors: [{ role: 'diffusersQuantization', fieldId: 'dtype' }], }, { source: 'offloadMode', persistence: 'execution_parameter', - primary: { - role: 'diffusersImagePipeline', - fieldId: 'offload_mode', - }, - mirrors: [ - { - role: 'diffusersRecipe', - fieldId: 'offload_mode', - }, - ], + primary: { role: 'diffusersImagePipeline', fieldId: 'offload_mode' }, + mirrors: [{ role: 'diffusersRecipe', fieldId: 'offload_mode' }], }, { source: 'device', persistence: 'execution_parameter', - primary: { - role: 'diffusersImagePipeline', - fieldId: 'device', - }, - mirrors: [ - { - role: 'diffusersRecipe', - fieldId: 'device', - }, - ], + primary: { role: 'diffusersImagePipeline', fieldId: 'device' }, + mirrors: [{ role: 'diffusersRecipe', fieldId: 'device' }], }, ], - boundary: { - inputs: [ - { - portId: 'prompt', - role: 'diffusersImageEdit', - fieldId: 'prompt', - }, - { - portId: 'width', - role: 'diffusersImageEdit', - fieldId: 'width', - }, - { - portId: 'height', - role: 'diffusersImageEdit', - fieldId: 'height', - }, - { - portId: 'num_inference_steps', - role: 'diffusersImageEdit', - fieldId: 'num_inference_steps', - }, - { - portId: 'guidance_scale', - role: 'diffusersImageEdit', - fieldId: 'guidance_scale', - }, - { - portId: 'seed', - role: 'diffusersImageEdit', - fieldId: 'seed', - }, - { - portId: 'max_sequence_length', - role: 'diffusersImageEdit', - fieldId: 'max_sequence_length', - }, - { - portId: 'image', - role: 'loadImage', - fieldId: 'file', - adaptation: 'media_file_path', - mediaType: 'image', - }, - { - portId: 'output_type', - role: 'diffusersImageEdit', - fieldId: 'output_type', - }, - ], - outputs: [ - { - portId: 'images', - role: 'diffusersImageEdit', - fieldId: 'images', - adaptation: 'direct_media', - mediaType: 'image', - }, - ], - }, + compiledDefinitionContentHash: 'block-definition-v2-1550f232', + compiledDefinitionCanonicalSha256: 'sha256:17b5f64eeda8809ce2e651946165e897ae8462097d86b0bd5216a3382b0d4c96', }, { definitionId: 'diffusers.composite:FluxReduxPipeline:multi_image_reference_edit', - definitionContentHash: 'sha256:ef7199a55c524eba2858bb197e239a03e1146aacf58551f74ffe4e5c471eaa58', + definitionContentHash: 'sha256:ebab66ab748ed7853b800bf017839fd41877f988113e8e10b0592463d499a9d2', provider: 'diffusers', surface: 'diffusers_cluster_nodes', definitionKind: 'studio_execution_composite', - libraryRevision: 'fbf49e7f35857f76bc57b177e26f12b03687c668', + libraryRevision: '7ecb1e1b4fe500be7fb7381a7bb79a24d7fa3941', pipelineClass: 'FluxReduxPipeline', workflowId: 'multi_image_reference_edit', admissionId: @@ -2849,148 +2522,65 @@ export const REGISTERED_BLOCK_V2_ORDINARY_FLUX_ROUTES: readonly RegisteredBlockV studioMode: 'multi_image_reference_edit', adapterContractId: 'diffusers.composite-adapter:FluxReduxPipeline:multi_image_reference_edit', studioExecutionSpec: { - contentHash: 'studio-spec-v1-9fc6eba6', + contentHash: 'studio-spec-v1-47985f5d', executionProfileId: 'flux-redux:direct', id: 'flux-redux:multi-image-reference-edit:v1', }, - artifact: { - repo: 'black-forest-labs/FLUX.1-Redux-dev', - revision: 'c95859fbf7703ca4d6824b4da4407d7cd0434f81', - }, + artifact: { repo: 'black-forest-labs/FLUX.1-Redux-dev', revision: 'c95859fbf7703ca4d6824b4da4407d7cd0434f81' }, dynamicFieldActions: [], - compiledDefinitionContentHash: 'block-definition-v2-86522d82', - compiledDefinitionCanonicalSha256: 'sha256:3e1d961a706a75fd6997a076bb67ed9635382e2025724cf3aaf0b39bbf2cf58e', + boundary: { + inputs: [ + { portId: 'prompt', role: 'imageEncode', fieldId: 'prompt' }, + { portId: 'width', role: 'denoise', fieldId: 'width' }, + { portId: 'height', role: 'denoise', fieldId: 'height' }, + { portId: 'num_inference_steps', role: 'denoise', fieldId: 'num_inference_steps' }, + { portId: 'guidance_scale', role: 'denoise', fieldId: 'guidance_scale' }, + { portId: 'seed', role: 'denoise', fieldId: 'seed' }, + { portId: 'max_sequence_length', role: 'denoise', fieldId: 'max_sequence_length' }, + { portId: 'image', role: 'loadImage', fieldId: 'file', adaptation: 'media_file_path', mediaType: 'image' }, + { portId: 'output_type', role: 'decode', fieldId: 'output_type' }, + { portId: 'reference_strength', role: 'imageEncode', fieldId: 'reference_strength' }, + ], + outputs: [ + { portId: 'images', role: 'decode', fieldId: 'images', adaptation: 'direct_media', mediaType: 'image' }, + ], + }, controlFanOuts: [ { source: 'quantizationMode', persistence: 'execution_parameter', - primary: { - role: 'diffusersImagePipeline', - fieldId: 'quantization_mode', - }, - mirrors: [ - { - role: 'diffusersQuantization', - fieldId: 'backend', - }, - ], + primary: { role: 'diffusersImagePipeline', fieldId: 'quantization_mode' }, + mirrors: [{ role: 'diffusersQuantization', fieldId: 'backend' }], }, { source: 'dtype', persistence: 'execution_parameter', - primary: { - role: 'diffusersImagePipeline', - fieldId: 'dtype', - }, - mirrors: [ - { - role: 'diffusersQuantization', - fieldId: 'dtype', - }, - ], + primary: { role: 'diffusersImagePipeline', fieldId: 'dtype' }, + mirrors: [{ role: 'diffusersQuantization', fieldId: 'dtype' }], }, { source: 'offloadMode', persistence: 'execution_parameter', - primary: { - role: 'diffusersImagePipeline', - fieldId: 'offload_mode', - }, - mirrors: [ - { - role: 'diffusersRecipe', - fieldId: 'offload_mode', - }, - ], + primary: { role: 'diffusersImagePipeline', fieldId: 'offload_mode' }, + mirrors: [{ role: 'diffusersRecipe', fieldId: 'offload_mode' }], }, { source: 'device', persistence: 'execution_parameter', - primary: { - role: 'diffusersImagePipeline', - fieldId: 'device', - }, - mirrors: [ - { - role: 'diffusersRecipe', - fieldId: 'device', - }, - ], + primary: { role: 'diffusersImagePipeline', fieldId: 'device' }, + mirrors: [{ role: 'diffusersRecipe', fieldId: 'device' }], }, ], - boundary: { - inputs: [ - { - portId: 'prompt', - role: 'diffusersImageEdit', - fieldId: 'prompt', - }, - { - portId: 'width', - role: 'diffusersImageEdit', - fieldId: 'width', - }, - { - portId: 'height', - role: 'diffusersImageEdit', - fieldId: 'height', - }, - { - portId: 'num_inference_steps', - role: 'diffusersImageEdit', - fieldId: 'num_inference_steps', - }, - { - portId: 'guidance_scale', - role: 'diffusersImageEdit', - fieldId: 'guidance_scale', - }, - { - portId: 'seed', - role: 'diffusersImageEdit', - fieldId: 'seed', - }, - { - portId: 'max_sequence_length', - role: 'diffusersImageEdit', - fieldId: 'max_sequence_length', - }, - { - portId: 'image', - role: 'loadImage', - fieldId: 'file', - adaptation: 'media_file_path', - mediaType: 'image', - }, - { - portId: 'output_type', - role: 'diffusersImageEdit', - fieldId: 'output_type', - }, - { - portId: 'reference_strength', - role: 'diffusersImageEdit', - fieldId: 'reference_strength', - }, - ], - outputs: [ - { - portId: 'images', - role: 'diffusersImageEdit', - fieldId: 'images', - adaptation: 'direct_media', - mediaType: 'image', - }, - ], - }, + compiledDefinitionContentHash: 'block-definition-v2-f68e71bb', + compiledDefinitionCanonicalSha256: 'sha256:62bf2ae4cd14f20e9cf41d9b67f502334761badf757b7a1de15e2ff88d4c5ea3', }, { definitionId: 'diffusers.composite:FluxSchnellPipeline:text_to_image', - definitionContentHash: 'sha256:c0aee168e821ec2ba4c5e0354c7b2c149cda4b27f1ec08cc51a2fd425cfd76d1', + definitionContentHash: 'sha256:9709e61d1cc1e1653146d90345d514655ff678b242f96cd3aaf2375d02f2c085', provider: 'diffusers', surface: 'diffusers_cluster_nodes', definitionKind: 'studio_execution_composite', - libraryRevision: 'fbf49e7f35857f76bc57b177e26f12b03687c668', + libraryRevision: '7ecb1e1b4fe500be7fb7381a7bb79a24d7fa3941', pipelineClass: 'FluxSchnellPipeline', workflowId: 'text_to_image', admissionId: 'diffusers.cluster-admission:FluxSchnellPipeline:text_to_image:mode:text_to_image', @@ -3006,8 +2596,8 @@ export const REGISTERED_BLOCK_V2_ORDINARY_FLUX_ROUTES: readonly RegisteredBlockV revision: '741f7c3ce8b383c54771c7003378a50191e9efe9', }, dynamicFieldActions: [], - compiledDefinitionContentHash: 'block-definition-v2-780b7f67', - compiledDefinitionCanonicalSha256: 'sha256:7ff8201369a622b62811b20b7e4a29e5995b4ccc1eedccd2805b54492d8f4cc0', + compiledDefinitionContentHash: 'block-definition-v2-cf4a8e0c', + compiledDefinitionCanonicalSha256: 'sha256:c1ae8c16799d160709ef83a94bc935c5e7fd06ee85f3ccc06bfd7b3b06446f66', controlFanOuts: [ { source: 'quantizationMode', diff --git a/src/studio/registeredBlockV2Routes.ts b/src/studio/registeredBlockV2Routes.ts index 786e281b..26f20945 100644 --- a/src/studio/registeredBlockV2Routes.ts +++ b/src/studio/registeredBlockV2Routes.ts @@ -103,7 +103,7 @@ export type RegisteredBlockV2Route = Readonly<{ }>; }>; -const DIFFUSERS_REVISION = 'fbf49e7f35857f76bc57b177e26f12b03687c668'; +const DIFFUSERS_REVISION = '7ecb1e1b4fe500be7fb7381a7bb79a24d7fa3941'; const MODEL_TYPE_DYNAMIC_FIELD_ACTIONS = [ { role: 'models', field: 'model_type', event: 'onChange', valueSource: 'pipelineClass' }, ] as const; @@ -173,12 +173,12 @@ export const REGISTERED_BLOCK_V2_ROUTES: readonly RegisteredBlockV2Route[] = Obj ...REGISTERED_BLOCK_V2_FANOUT_ROUTES.map((route) => diffusersRoute(route)), diffusersRoute({ definitionId: 'diffusers.modular:AnimaModularPipeline:text2image', - definitionContentHash: 'sha256:8b912ade28892fd040c0813514eb431efba732b23816204038daa346df5ebc16', + definitionContentHash: 'sha256:d865ea6a6bde320211812251352d966ff70ae120db49cd670798d4a505f6abdf', pipelineClass: 'AnimaModularPipeline', workflowId: 'text2image', admissionId: 'diffusers.cluster-admission:AnimaModularPipeline:text2image:workflow:official_top_level_blocks', - compiledDefinitionContentHash: 'block-definition-v2-c84f698e', - compiledDefinitionCanonicalSha256: 'sha256:b0234ebb1fdbb6055ecc3dbab488d4ed0c8bcd3c03a20b2b97e84cc65bd412df', + compiledDefinitionContentHash: 'block-definition-v2-853db047', + compiledDefinitionCanonicalSha256: 'sha256:1dc91c25a078dbf03b337d2293e68d55caac47840dc398727111304312b8c0b3', studioMode: 'text_to_image', adapterContractId: 'diffusers.modular-adapter:AnimaModularPipeline:text2image:workflow:official_top_level_blocks', studioExecutionSpec: { @@ -194,13 +194,13 @@ export const REGISTERED_BLOCK_V2_ROUTES: readonly RegisteredBlockV2Route[] = Obj }), diffusersRoute({ definitionId: 'diffusers.modular:Cosmos3DistilledModularPipeline:image2video', - definitionContentHash: 'sha256:2ddca728c630c291d65f385f868dc9f9fb1cbc0501e76f0d0964c28628c2a7f0', + definitionContentHash: 'sha256:306907f479a028df37eb3b7d9efde45e9cbe9eec6f7c67b137655752bd37c929', pipelineClass: 'Cosmos3DistilledModularPipeline', workflowId: 'image2video', admissionId: 'diffusers.cluster-admission:Cosmos3DistilledModularPipeline:image2video:workflow:official_top_level_blocks', - compiledDefinitionContentHash: 'block-definition-v2-81287b36', - compiledDefinitionCanonicalSha256: 'sha256:0e8d7b1660a8ed723190db87a490bac261f7b74a73e1332e8d9c0165d82eb605', + compiledDefinitionContentHash: 'block-definition-v2-4798547f', + compiledDefinitionCanonicalSha256: 'sha256:b59ae721dccc6732dc8cd45ca6f760cfe56ca7e9bf9638f45e879e3ac06aa918', studioMode: 'image_to_video', adapterContractId: 'diffusers.modular-adapter:Cosmos3DistilledModularPipeline:image2video:workflow:official_top_level_blocks', @@ -243,13 +243,13 @@ export const REGISTERED_BLOCK_V2_ROUTES: readonly RegisteredBlockV2Route[] = Obj }), diffusersRoute({ definitionId: 'diffusers.modular:Cosmos3DistilledModularPipeline:text2image', - definitionContentHash: 'sha256:07a8feafa3ec60f926eded40f3e6e58c3f07466e36fc451bb501ac36699961a1', + definitionContentHash: 'sha256:b0ea08643ac383e36b5c300e8f68fc32104c85ed3d1a0f42defb306362df995b', pipelineClass: 'Cosmos3DistilledModularPipeline', workflowId: 'text2image', admissionId: 'diffusers.cluster-admission:Cosmos3DistilledModularPipeline:text2image:workflow:official_top_level_blocks', - compiledDefinitionContentHash: 'block-definition-v2-018828f1', - compiledDefinitionCanonicalSha256: 'sha256:e5e8aaeeba8dc9e4a15fb3d47613a3c0f056bc2304551ae4c617c698470e1fec', + compiledDefinitionContentHash: 'block-definition-v2-738e7db2', + compiledDefinitionCanonicalSha256: 'sha256:c5a320f63b1e0b269faa78b45bea375e5d966e714e13e80ea42f97e65bc8067b', studioMode: 'text_to_image', adapterContractId: 'diffusers.modular-adapter:Cosmos3DistilledModularPipeline:text2image:workflow:official_top_level_blocks', @@ -284,18 +284,18 @@ export const REGISTERED_BLOCK_V2_ROUTES: readonly RegisteredBlockV2Route[] = Obj }), diffusersRoute({ definitionId: 'diffusers.modular:Cosmos3OmniModularPipeline:text2image', - definitionContentHash: 'sha256:3a7bd74c7f53fd38fc10995f03ce6a42afd74a0c7091f2125d4cc25bdf3d255f', + definitionContentHash: 'sha256:1aaac680e19ea246998321b99e64ecd952f555b102c4f059abc55dea2f5db4c1', pipelineClass: 'Cosmos3OmniModularPipeline', workflowId: 'text2image', admissionId: 'diffusers.cluster-admission:Cosmos3OmniModularPipeline:text2image:workflow:official_top_level_blocks', - compiledDefinitionContentHash: 'block-definition-v2-0ce25fb5', - compiledDefinitionCanonicalSha256: 'sha256:5f302683f9276144ea57163659d81c07e59366134318054c29d1eed602a96437', + compiledDefinitionContentHash: 'block-definition-v2-4490767c', + compiledDefinitionCanonicalSha256: 'sha256:37ec92212a9514c9507d744c0bb4fb8329a870d1208ebb025a78db7cedd96dd7', studioMode: 'text_to_image', adapterContractId: 'diffusers.modular-adapter:Cosmos3OmniModularPipeline:text2image:workflow:official_top_level_blocks', studioExecutionSpec: { id: 'cosmos3-nano:modular-text-to-image:v1', - contentHash: 'studio-spec-v1-91ed105d', + contentHash: 'studio-spec-v1-badb9cde', executionProfileId: 'cosmos3-nano:official-modular-workflow', }, artifact: { @@ -325,12 +325,12 @@ export const REGISTERED_BLOCK_V2_ROUTES: readonly RegisteredBlockV2Route[] = Obj }), diffusersRoute({ definitionId: 'diffusers.modular:Cosmos3OmniModularPipeline:text2video', - definitionContentHash: 'sha256:ad06a48f8ba2426c12c12ffcdb0e3359c51202bf62ac08f65dffe2de2732035a', + definitionContentHash: 'sha256:398f74d7c3a115d04a79aa028aee4a3aef3138550c556e1d3a2409e0c3f95313', pipelineClass: 'Cosmos3OmniModularPipeline', workflowId: 'text2video', admissionId: 'diffusers.cluster-admission:Cosmos3OmniModularPipeline:text2video:workflow:official_top_level_blocks', - compiledDefinitionContentHash: 'block-definition-v2-c47dd522', - compiledDefinitionCanonicalSha256: 'sha256:f88d3e110a9c32a1147fcdcdd62a7ed58eee6917c0c1a6172a547da4db7957b8', + compiledDefinitionContentHash: 'block-definition-v2-089debb4', + compiledDefinitionCanonicalSha256: 'sha256:04abc3485fe8f1b130cf400be0ce5a32aacd8fd5f3003571d6b9f884274bf8df', studioMode: 'text_to_video', adapterContractId: 'diffusers.modular-adapter:Cosmos3OmniModularPipeline:text2video:workflow:official_top_level_blocks', @@ -368,13 +368,13 @@ export const REGISTERED_BLOCK_V2_ROUTES: readonly RegisteredBlockV2Route[] = Obj }), diffusersRoute({ definitionId: 'diffusers.modular:Cosmos3OmniModularPipeline:image2video', - definitionContentHash: 'sha256:457912dac82bfff5cb8fd4403bad6fffed6068bef8e7279c72f2f53bbb54b296', + definitionContentHash: 'sha256:ef991da354483e3c317f1f663d108e482d3a897b7a1b9b8bf8845fba3f19aee9', pipelineClass: 'Cosmos3OmniModularPipeline', workflowId: 'image2video', admissionId: 'diffusers.cluster-admission:Cosmos3OmniModularPipeline:image2video:workflow:official_top_level_blocks', - compiledDefinitionContentHash: 'block-definition-v2-d6210e3a', - compiledDefinitionCanonicalSha256: 'sha256:1e23ec3ee45452cb836b3abe55f4a518cd5325cb4944be6e9a7c1e2049a18f3d', + compiledDefinitionContentHash: 'block-definition-v2-d367c0b0', + compiledDefinitionCanonicalSha256: 'sha256:6822fe0fe340bf62bf3a9287769b05b3368479d9c63580ddeb95cafa3428be01', studioMode: 'image_to_video', adapterContractId: 'diffusers.modular-adapter:Cosmos3OmniModularPipeline:image2video:workflow:official_top_level_blocks', @@ -419,13 +419,13 @@ export const REGISTERED_BLOCK_V2_ROUTES: readonly RegisteredBlockV2Route[] = Obj }), diffusersRoute({ definitionId: 'diffusers.modular:Cosmos3OmniModularPipeline:image2video_with_sound', - definitionContentHash: 'sha256:fc665e24a4d847d256a9f47002b5f89ad2642d324af7e80a6c69ee560eacb511', + definitionContentHash: 'sha256:3580348426c276b0146518eec7a064b9df2f7ec325e930674951553d8b1f4446', pipelineClass: 'Cosmos3OmniModularPipeline', workflowId: 'image2video_with_sound', admissionId: 'diffusers.cluster-admission:Cosmos3OmniModularPipeline:image2video_with_sound:workflow:official_top_level_blocks', - compiledDefinitionContentHash: 'block-definition-v2-89c93c1f', - compiledDefinitionCanonicalSha256: 'sha256:37107c1f32f3af4f81c1d9a0a2072ae210851452688b132b922a74834f83d144', + compiledDefinitionContentHash: 'block-definition-v2-ca72d264', + compiledDefinitionCanonicalSha256: 'sha256:6fa9ba06fdf0fc98d055c17827798b840299b70ca806d3a4c6267abb7e558cb7', studioMode: 'image_to_video_with_audio', adapterContractId: 'diffusers.modular-adapter:Cosmos3OmniModularPipeline:image2video_with_sound:workflow:official_top_level_blocks', @@ -470,13 +470,13 @@ export const REGISTERED_BLOCK_V2_ROUTES: readonly RegisteredBlockV2Route[] = Obj }), diffusersRoute({ definitionId: 'diffusers.modular:Cosmos3OmniModularPipeline:text2video_with_sound', - definitionContentHash: 'sha256:fe2d8f5a648c2067fea5f9ea37aefea500876c14afb4ae882592a739f14b54e8', + definitionContentHash: 'sha256:2cb0aa1f5b0f40517d4a3519db08cd8c1ad25632c89c8898ca57a3f17498f62a', pipelineClass: 'Cosmos3OmniModularPipeline', workflowId: 'text2video_with_sound', admissionId: 'diffusers.cluster-admission:Cosmos3OmniModularPipeline:text2video_with_sound:workflow:official_top_level_blocks', - compiledDefinitionContentHash: 'block-definition-v2-146cfebb', - compiledDefinitionCanonicalSha256: 'sha256:3ab0f3eae9e9f202da682f6fe2a46c42e77e3ce65058953be7725689fb9c585b', + compiledDefinitionContentHash: 'block-definition-v2-a702c49c', + compiledDefinitionCanonicalSha256: 'sha256:36cc1218c64014948654e986b459b157712aca635aee75b033b9b2221f0101ec', studioMode: 'text_to_video_with_audio', adapterContractId: 'diffusers.modular-adapter:Cosmos3OmniModularPipeline:text2video_with_sound:workflow:official_top_level_blocks', @@ -520,13 +520,13 @@ export const REGISTERED_BLOCK_V2_ROUTES: readonly RegisteredBlockV2Route[] = Obj }), diffusersRoute({ definitionId: 'diffusers.modular:Cosmos3OmniModularPipeline:video2video', - definitionContentHash: 'sha256:2fac2f20b5407bb5a8c9637cb355890612ecc9c00eb87c3da42d4c7811152bb4', + definitionContentHash: 'sha256:3408b06214701b978f50ab7cbe7bc6634308e212b955bcefa30b1b89e5ecc6ba', pipelineClass: 'Cosmos3OmniModularPipeline', workflowId: 'video2video', admissionId: 'diffusers.cluster-admission:Cosmos3OmniModularPipeline:video2video:workflow:official_top_level_blocks', - compiledDefinitionContentHash: 'block-definition-v2-c311ea45', - compiledDefinitionCanonicalSha256: 'sha256:6b1d3057b1498c433c7dca516514814f70cb51b3b8b45c234126aee6edf6955f', + compiledDefinitionContentHash: 'block-definition-v2-dbb0a9bc', + compiledDefinitionCanonicalSha256: 'sha256:90f5721bfbd4a32b88d708ef44b0746e67cbc5a84bf3801b8087ca3c333b18f6', studioMode: 'video_to_video', adapterContractId: 'diffusers.modular-adapter:Cosmos3OmniModularPipeline:video2video:workflow:official_top_level_blocks', @@ -571,13 +571,13 @@ export const REGISTERED_BLOCK_V2_ROUTES: readonly RegisteredBlockV2Route[] = Obj }), diffusersRoute({ definitionId: 'diffusers.modular:Cosmos3OmniModularPipeline:video2video_with_sound', - definitionContentHash: 'sha256:1cd89a799236f2835ce9c751996bc655f3c87a46b1964165ce5d95d147319779', + definitionContentHash: 'sha256:3150f66ad771c6f4cef63de8cb32731a61bff8a0af97e760917344e7cf0ac593', pipelineClass: 'Cosmos3OmniModularPipeline', workflowId: 'video2video_with_sound', admissionId: 'diffusers.cluster-admission:Cosmos3OmniModularPipeline:video2video_with_sound:workflow:official_top_level_blocks', - compiledDefinitionContentHash: 'block-definition-v2-0afff4e1', - compiledDefinitionCanonicalSha256: 'sha256:c71373df32cedd642686c0c0ea9ce8359aa20966f63e0167d4e359fddb4a0019', + compiledDefinitionContentHash: 'block-definition-v2-9768a27e', + compiledDefinitionCanonicalSha256: 'sha256:6cad636177ff824bebb21201937234c204f4a2e630198096adf793a7e20af129', studioMode: 'video_to_video_with_audio', adapterContractId: 'diffusers.modular-adapter:Cosmos3OmniModularPipeline:video2video_with_sound:workflow:official_top_level_blocks', @@ -622,12 +622,12 @@ export const REGISTERED_BLOCK_V2_ROUTES: readonly RegisteredBlockV2Route[] = Obj }), diffusersRoute({ definitionId: 'diffusers.modular:Flux2KleinBaseModularPipeline:text2image', - definitionContentHash: 'sha256:44b5e43fb6ad03cb93ebee5eb47551fea96dd5a65872ed54ade95cac944f5ab3', + definitionContentHash: 'sha256:dd5a29e4b4f7ea4856475b1142aa9fdbf9213221a748f138bb4b67281c920268', pipelineClass: 'Flux2KleinBaseModularPipeline', workflowId: 'text2image', admissionId: 'diffusers.cluster-admission:Flux2KleinBaseModularPipeline:text2image:mode:text_to_image', - compiledDefinitionContentHash: 'block-definition-v2-80434355', - compiledDefinitionCanonicalSha256: 'sha256:181e301310ed58a5a29b5f44a93169e065e4db8af2e0f95873d634c7be2118c0', + compiledDefinitionContentHash: 'block-definition-v2-5945880c', + compiledDefinitionCanonicalSha256: 'sha256:6f01da9ee6a1f737497acd5810c46d27fa7c96774696f40f699fe2a5394c674c', studioMode: 'text_to_image', adapterContractId: 'diffusers.modular-adapter:Flux2KleinBaseModularPipeline:text2image:mode:text_to_image', studioExecutionSpec: { @@ -643,12 +643,12 @@ export const REGISTERED_BLOCK_V2_ROUTES: readonly RegisteredBlockV2Route[] = Obj }), diffusersRoute({ definitionId: 'diffusers.modular:Flux2KleinModularPipeline:text2image', - definitionContentHash: 'sha256:dab62f686d9686599abb001c56bc54cd9fe6d4c9f0a7f1324f97c0ebaefd4f32', + definitionContentHash: 'sha256:f94e32bd36671675997f175d0df5621773f21628671a029de6e3639315fc3a48', pipelineClass: 'Flux2KleinModularPipeline', workflowId: 'text2image', admissionId: 'diffusers.cluster-admission:Flux2KleinModularPipeline:text2image:mode:text_to_image', - compiledDefinitionContentHash: 'block-definition-v2-6e3e66a8', - compiledDefinitionCanonicalSha256: 'sha256:47d68c080635d8c8ee645a971d83da4f8045a26151e448fbf0e296056324b821', + compiledDefinitionContentHash: 'block-definition-v2-e229bd51', + compiledDefinitionCanonicalSha256: 'sha256:1de24c69cc2039a4b03d1b46c53159cc1674f1b406e93b741744e608ac12d761', studioMode: 'text_to_image', adapterContractId: 'diffusers.modular-adapter:Flux2KleinModularPipeline:text2image:mode:text_to_image', studioExecutionSpec: { @@ -664,12 +664,12 @@ export const REGISTERED_BLOCK_V2_ROUTES: readonly RegisteredBlockV2Route[] = Obj }), diffusersRoute({ definitionId: 'diffusers.modular:FluxKontextModularPipeline:text2image', - definitionContentHash: 'sha256:ee8f7ec37ad0edb5b9a77653f1d08faac5d9e606f4c92cf7457b15fad9d9412f', + definitionContentHash: 'sha256:f8a526814a4706282a30a977b07e44dafc7310147417409d2107d8264c37b1be', pipelineClass: 'FluxKontextModularPipeline', workflowId: 'text2image', admissionId: 'diffusers.cluster-admission:FluxKontextModularPipeline:text2image:mode:text_to_image', - compiledDefinitionContentHash: 'block-definition-v2-cd492a0a', - compiledDefinitionCanonicalSha256: 'sha256:a4412304b971bdbd21e22b53ef2fb1d948ce54eda63c2d166449d018c8bb276b', + compiledDefinitionContentHash: 'block-definition-v2-ff110ae0', + compiledDefinitionCanonicalSha256: 'sha256:b15f3bf3d65fdcc08580a9a02e44afc750cc1b3e84b5eb61040d6d575b8e787b', studioMode: 'text_to_image', adapterContractId: 'diffusers.modular-adapter:FluxKontextModularPipeline:text2image:mode:text_to_image', studioExecutionSpec: { @@ -685,12 +685,12 @@ export const REGISTERED_BLOCK_V2_ROUTES: readonly RegisteredBlockV2Route[] = Obj }), diffusersRoute({ definitionId: 'diffusers.modular:FluxModularPipeline:text2image', - definitionContentHash: 'sha256:e675188cacb5c82f1b54304acd11f952b1a459320cda293aecc53f9a4b838503', + definitionContentHash: 'sha256:66248e988b06d822fcd7cad5598a7b902cd4af984f3ba96afb9d1c574544f078', pipelineClass: 'FluxModularPipeline', workflowId: 'text2image', admissionId: 'diffusers.cluster-admission:FluxModularPipeline:text2image:mode:text_to_image', - compiledDefinitionContentHash: 'block-definition-v2-aa8e4872', - compiledDefinitionCanonicalSha256: 'sha256:42b7d587e57d57dc4b64f33aff2499702606c138535ea46d1eef5968e6185cc6', + compiledDefinitionContentHash: 'block-definition-v2-af240eef', + compiledDefinitionCanonicalSha256: 'sha256:e99e79b34a54fb57c6295105562d47c1a9be7f56dd9d8303e49c8cca9ed0a645', studioMode: 'text_to_image', adapterContractId: 'diffusers.modular-adapter:FluxModularPipeline:text2image:mode:text_to_image', studioExecutionSpec: { @@ -706,12 +706,12 @@ export const REGISTERED_BLOCK_V2_ROUTES: readonly RegisteredBlockV2Route[] = Obj }), diffusersRoute({ definitionId: 'diffusers.modular:MiniMaxMusic3ModularPipeline:default', - definitionContentHash: 'sha256:cb700ac7faacb63708965d7a4d40c4d6467fde678ec702aea7c30467059cd3ad', + definitionContentHash: 'sha256:aa13b727116a74d0d1cbec311ba979c79729027c57b5a46128b6b9c0eb7808f3', pipelineClass: 'MiniMaxMusic3ModularPipeline', workflowId: 'default', admissionId: 'diffusers.cluster-admission:MiniMaxMusic3ModularPipeline:default:workflow:official_top_level_blocks', - compiledDefinitionContentHash: 'block-definition-v2-3c88b72c', - compiledDefinitionCanonicalSha256: 'sha256:38023aaf03efe36f3e12c19197b93a263fe1cc5335625f365c2f3db3072b1148', + compiledDefinitionContentHash: 'block-definition-v2-f8e83798', + compiledDefinitionCanonicalSha256: 'sha256:54ca590a5428d3aa546e9cd7860a63bb57585c72b2822b3b25db13522e38ecd5', studioMode: 'text_to_audio', adapterContractId: 'diffusers.modular-adapter:MiniMaxMusic3ModularPipeline:default:workflow:official_top_level_blocks', @@ -731,12 +731,12 @@ export const REGISTERED_BLOCK_V2_ROUTES: readonly RegisteredBlockV2Route[] = Obj }), diffusersRoute({ definitionId: 'diffusers.modular:MiniMaxH3ModularPipeline:t2va', - definitionContentHash: 'sha256:cdc0e8114d54ebde4efe880d1a72ca068f1b23ab07a668dd00ef54bf2d350cda', + definitionContentHash: 'sha256:bfca25e8659694ee49bc883a7a731b700e503949a7c1251bc9b1d486b7a98463', pipelineClass: 'MiniMaxH3ModularPipeline', workflowId: 't2va', admissionId: 'diffusers.cluster-admission:MiniMaxH3ModularPipeline:t2va:workflow:official_top_level_blocks', - compiledDefinitionContentHash: 'block-definition-v2-01c724e8', - compiledDefinitionCanonicalSha256: 'sha256:d5ef563b039d44d505393c1007b721f600eebac77a703d5e961371dde78bbfb0', + compiledDefinitionContentHash: 'block-definition-v2-ebadb11c', + compiledDefinitionCanonicalSha256: 'sha256:7a0d2f9627934df45a2047b68b1db17e718b52b0456bf314eb429ca9d07cc980', studioMode: 'text_to_video_with_audio', adapterContractId: 'diffusers.modular-adapter:MiniMaxH3ModularPipeline:t2va:workflow:official_top_level_blocks', studioExecutionSpec: { @@ -766,12 +766,12 @@ export const REGISTERED_BLOCK_V2_ROUTES: readonly RegisteredBlockV2Route[] = Obj }), diffusersRoute({ definitionId: 'diffusers.modular:MiniMaxH3ModularPipeline:fl2va', - definitionContentHash: 'sha256:5ca22c53b6c705356415b4273981ea6151bd844f61930340391fd8b85c39e8cc', + definitionContentHash: 'sha256:a8fce0c909d41798fd66a7eef46a13802b8d6680e5517da2d8db9b25e963e68d', pipelineClass: 'MiniMaxH3ModularPipeline', workflowId: 'fl2va', admissionId: 'diffusers.cluster-admission:MiniMaxH3ModularPipeline:fl2va:workflow:official_top_level_blocks', - compiledDefinitionContentHash: 'block-definition-v2-c40b4ca0', - compiledDefinitionCanonicalSha256: 'sha256:090367942f8455637c9fd78155f14838d88a4917621d183b21d27a48913afaf5', + compiledDefinitionContentHash: 'block-definition-v2-832be953', + compiledDefinitionCanonicalSha256: 'sha256:fbeccf1abe6426846ad431b3b62f063a57713899e93155dd6412f5b0fb15c123', studioMode: 'first_last_frame_to_video_with_audio', adapterContractId: 'diffusers.modular-adapter:MiniMaxH3ModularPipeline:fl2va:workflow:official_top_level_blocks', studioExecutionSpec: { @@ -803,12 +803,12 @@ export const REGISTERED_BLOCK_V2_ROUTES: readonly RegisteredBlockV2Route[] = Obj }), diffusersRoute({ definitionId: 'diffusers.modular:MiniMaxH3ModularPipeline:ref2va', - definitionContentHash: 'sha256:a1d7ba1a9d62de394742f34ea0f8ad5bb47b3dce958d905e0c46a61a2c053d4b', + definitionContentHash: 'sha256:e3a5a7098e67dd13490158ed35b673e8f6ef7bfc15cd317e6dbacce7eb950f8f', pipelineClass: 'MiniMaxH3ModularPipeline', workflowId: 'ref2va', admissionId: 'diffusers.cluster-admission:MiniMaxH3ModularPipeline:ref2va:workflow:official_top_level_blocks', - compiledDefinitionContentHash: 'block-definition-v2-869a9ab6', - compiledDefinitionCanonicalSha256: 'sha256:f9c8926e94718c87016b813e1225a8f84f3c8831a8ff747733062379328d584b', + compiledDefinitionContentHash: 'block-definition-v2-501857b1', + compiledDefinitionCanonicalSha256: 'sha256:0b8f3c5050db6deb5785e6c1214b4d1f88dcb2dac8411407adad3310e89d0d11', studioMode: 'reference_to_video_with_audio', adapterContractId: 'diffusers.modular-adapter:MiniMaxH3ModularPipeline:ref2va:workflow:official_top_level_blocks', studioExecutionSpec: { @@ -839,12 +839,12 @@ export const REGISTERED_BLOCK_V2_ROUTES: readonly RegisteredBlockV2Route[] = Obj }), diffusersRoute({ definitionId: 'diffusers.modular:QwenImageModularPipeline:text2image', - definitionContentHash: 'sha256:49cb50671b41cf2c03b22387cfe2cf1b37f16b2996961791505aef830817c393', + definitionContentHash: 'sha256:9425b62f99dbcdce2b152052acbe093c2a45eb9ef4b0424041de644cacf79a29', pipelineClass: 'QwenImageModularPipeline', workflowId: 'text2image', admissionId: 'diffusers.cluster-admission:QwenImageModularPipeline:text2image:mode:text_to_image', - compiledDefinitionContentHash: 'block-definition-v2-14029f56', - compiledDefinitionCanonicalSha256: 'sha256:ec3a009adf709adb5a681fe1d0982eb747132793946c1666c2a168cddba5a22a', + compiledDefinitionContentHash: 'block-definition-v2-c02d311d', + compiledDefinitionCanonicalSha256: 'sha256:b762f83412fe501889a32477f2f1f66d182ce73c7969f07d67cf9781e5efe755', studioMode: 'modular_text_to_image', adapterContractId: 'diffusers.modular-adapter:QwenImageModularPipeline:text2image:mode:text_to_image', studioExecutionSpec: { @@ -890,12 +890,12 @@ export const REGISTERED_BLOCK_V2_ROUTES: readonly RegisteredBlockV2Route[] = Obj }), diffusersRoute({ definitionId: 'diffusers.modular:StableDiffusionXLModularPipeline:text2image', - definitionContentHash: 'sha256:6d8397fbb72b31e250e5107dea826505e4202cb1747895ed5ef628d8822e8390', + definitionContentHash: 'sha256:883a84f9ee24ac053fa00707daccf144fcbe6c83a5451de2e8c22524e93bc8ea', pipelineClass: 'StableDiffusionXLModularPipeline', workflowId: 'text2image', admissionId: 'diffusers.cluster-admission:StableDiffusionXLModularPipeline:text2image:mode:text_to_image', - compiledDefinitionContentHash: 'block-definition-v2-b1f55fde', - compiledDefinitionCanonicalSha256: 'sha256:e75243c9e6314fbd1d0e4a01e0c84a44e5760e60aa3af2c3066538177b8f67c7', + compiledDefinitionContentHash: 'block-definition-v2-e316b6e2', + compiledDefinitionCanonicalSha256: 'sha256:055c7bd272bced1cc04da268f483dee68f1bdae1eeda9054aa384f9145fc3c46', studioMode: 'text_to_image', adapterContractId: 'diffusers.modular-adapter:StableDiffusionXLModularPipeline:text2image:mode:text_to_image', studioExecutionSpec: { @@ -911,12 +911,12 @@ export const REGISTERED_BLOCK_V2_ROUTES: readonly RegisteredBlockV2Route[] = Obj }), diffusersRoute({ definitionId: 'diffusers.modular:ZImageModularPipeline:text2image', - definitionContentHash: 'sha256:d510dc9c19615055df7dc04cc26bcf1e02d5bd65573d23091e791d95acea596c', + definitionContentHash: 'sha256:d9a597cd848e21713970daf1c6d52314a2157d1e6a4359ecc2a34e5bf1f9a5eb', pipelineClass: 'ZImageModularPipeline', workflowId: 'text2image', admissionId: 'diffusers.cluster-admission:ZImageModularPipeline:text2image:mode:text_to_image', - compiledDefinitionContentHash: 'block-definition-v2-76f3693f', - compiledDefinitionCanonicalSha256: 'sha256:d6a1c705d11c32135c17e6dac80b60c207ccaff42cdeb4b9f43a36f7e55a6ca0', + compiledDefinitionContentHash: 'block-definition-v2-26ba444e', + compiledDefinitionCanonicalSha256: 'sha256:accb1a0a62c4fae3b49d5ab112c32e6921f6cb899b06bda44274ba9647546ea6', studioMode: 'modular_text_to_image', adapterContractId: 'diffusers.modular-adapter:ZImageModularPipeline:text2image:mode:text_to_image', studioExecutionSpec: { diff --git a/src/studio/requiredGraphInputs.ts b/src/studio/requiredGraphInputs.ts index 67f6ff48..7abc894e 100644 --- a/src/studio/requiredGraphInputs.ts +++ b/src/studio/requiredGraphInputs.ts @@ -32,11 +32,19 @@ export function inspectRequiredGraphInputs( !param.required || param.disabled || param.display === 'output' || - !(param.isInput || param.display === 'input') + !(param.isInput || param.display === 'input' || param.display === 'modelselect') ) continue; - const value = saved.value ?? saved.default ?? param.default; - if (value !== undefined && value !== null && value !== '' && (!Array.isArray(value) || value.length)) continue; + const selected = saved.value ?? saved.default ?? param.default; + const value = + param.display === 'modelselect' && selected && typeof selected === 'object' && !Array.isArray(selected) + ? 'value' in selected + ? selected.value + : undefined + : selected; + const present = param.display === 'modelselect' && typeof value === 'string' ? value.trim() : value; + if (present !== undefined && present !== null && present !== '' && (!Array.isArray(present) || present.length)) + continue; const supplied = graph.edges.some((edge) => { if (edge.target !== node.id || edge.targetHandle !== field) return false; const source = enabled.get(edge.source)?.data.params[edge.sourceHandle ?? '']; diff --git a/src/studio/resolvedExecutionInputs.ts b/src/studio/resolvedExecutionInputs.ts index c8c7bed6..da887f9d 100644 --- a/src/studio/resolvedExecutionInputs.ts +++ b/src/studio/resolvedExecutionInputs.ts @@ -1,7 +1,11 @@ import type { StudioMode, StudioModelType, StudioOutput } from './types'; import { STUDIO_MODE_DESCRIPTIONS, STUDIO_MODEL_LABELS } from './modelProfiles'; +import type { WeightLoadingMode } from '../types/api'; type InputValue = string | number | boolean | null | (string | number | boolean | null)[]; +export type ModelWeightFormat = 'native' | 'fp8r' | 'nvfp4'; +export type TextGenerationOperation = 'standard' | 'enhance_prompt'; +export type PromptEnhancementSystemMode = 't2i' | 'i2i' | 't2i_bbox' | 'i2i_bbox'; type InputField = { value: InputValue; source: 'literal' | 'connected' | 'override'; @@ -18,10 +22,19 @@ export type ResolvedExecutionInputs = { nodeId: string; module: string; action: string; - fields: Record; + fields: Record & { + weight_loading_mode?: InputField & { value: WeightLoadingMode }; + weight_format?: InputField & { value: ModelWeightFormat }; + operation?: InputField & { value: TextGenerationOperation }; + }; omittedFields: Record; }[]; - summary: Record; + summary: Record & { + weightLoadingMode?: WeightLoadingMode; + weightFormat?: ModelWeightFormat; + textOperation?: TextGenerationOperation; + systemPromptMode?: PromptEnhancementSystemMode; + }; ambiguousFields: string[]; unavailableFields: string[]; uncapturedNodeIds: string[]; @@ -60,6 +73,7 @@ const inputNames: Record = { pipeline_class: 'modelType', auto_offload: 'autoOffload', offload_mode: 'offloadMode', + weight_loading_mode: 'weightLoadingMode', attention_backend: 'attentionBackend', vae_slicing: 'vaeSlicing', enable_vae_slicing: 'vaeSlicing', @@ -81,6 +95,8 @@ const inputNames: Record = { // Mirror the backend's scoped capture contract. Auxiliary revisions must never // overwrite the base model's identity; unknown fields still reject the receipt. const nodeInputNames: Record> = { + 'ModularDiffusers.ModelsLoader': { ...inputNames, weight_format: 'weightFormat' }, + 'DiffusersImage.LoadPipeline': { ...inputNames, mode: 'executionMode' }, ...Object.fromEntries( [ 'Generate', @@ -92,14 +108,29 @@ const nodeInputNames: Record> = { 'LayerDecompose', 'UnconditionalGenerate', 'PredictMap', + 'EncodeInputs', + 'Denoise', + 'DecodeLatents', ].map((action) => [`DiffusersImage.${action}`, { ...inputNames, executed_task: 'executedTask' }]), ), - ...Object.fromEntries( - ['PredictDepth', 'GenerateImageVideoText'].map((action) => [ - `HuggingFaceTransformers.${action}`, - { ...inputNames, executed_task: 'executedTask' }, - ]), - ), + 'HuggingFaceTransformers.PredictDepth': { ...inputNames, executed_task: 'executedTask' }, + 'HuggingFaceTransformers.GenerateImageVideoText': { + ...inputNames, + executed_task: 'executedTask', + operation: 'textOperation', + enhancement_max_new_tokens: 'enhancementMaxNewTokens', + prompt_adapter_id: 'promptAdapterId', + system_prompt_mode: 'systemPromptMode', + system_prompt_sha256: 'systemPromptSha256', + rendered_prompt_sha256: 'renderedPromptSha256', + rendered_prompt_utf8_bytes: 'renderedPromptUtf8Bytes', + rendered_input_ids_sha256: 'renderedInputIdsSha256', + reference_source_sha256: 'referenceSourceSha256', + processed_pixel_sha256: 'processedPixelSha256', + processed_pixel_shape: 'processedPixelShape', + processed_grid_sha256: 'processedGridSha256', + processed_grid_shape: 'processedGridShape', + }, 'ImageOperations.ProcessImage': { ...inputNames, executed_task: 'executedTask' }, 'ModularDiffusers.Guider': { ...inputNames, @@ -153,6 +184,43 @@ const inputValue = (value: unknown): value is InputValue => const stringList = (value: unknown): value is string[] => Array.isArray(value) && value.length <= 4096 && value.every(text); +// Captured observations only: neither an operation label nor an RGB hash grants +// model, source-region, proposal Apply or resource authority. +function textGenerationInputValue(key: string, value: InputValue): boolean { + const positiveInteger = (item: unknown): item is number => + typeof item === 'number' && Number.isSafeInteger(item) && item > 0; + const fingerprint = (item: unknown) => typeof item === 'string' && /^sha256:[0-9a-f]{64}$/u.test(item); + switch (key) { + case 'operation': + return value === 'standard' || value === 'enhance_prompt'; + case 'enhancement_max_new_tokens': + return positiveInteger(value) && value <= 3584; + case 'prompt_adapter_id': + return typeof value === 'string' && /^[a-z][a-z0-9-]{0,127}$/u.test(value); + case 'system_prompt_mode': + return value === 't2i' || value === 'i2i' || value === 't2i_bbox' || value === 'i2i_bbox'; + case 'system_prompt_sha256': + return typeof value === 'string' && /^[0-9a-f]{64}$/u.test(value); + case 'rendered_prompt_sha256': + case 'rendered_input_ids_sha256': + case 'processed_pixel_sha256': + case 'processed_grid_sha256': + return fingerprint(value); + case 'rendered_prompt_utf8_bytes': + return positiveInteger(value) && value <= 524_288; + case 'reference_source_sha256': + return Array.isArray(value) && value.length <= 10 && value.every(fingerprint); + case 'processed_pixel_shape': + return Array.isArray(value) && value.length === 2 && value.every(positiveInteger); + case 'processed_grid_shape': + return ( + Array.isArray(value) && value.length === 2 && positiveInteger(value[0]) && value[0] <= 10 && value[1] === 3 + ); + default: + return true; + } +} + export function coerceResolvedExecutionInputs( value: unknown, identity: { taskId?: string | null; nodeId: string; attemptIndex?: number }, @@ -212,7 +280,13 @@ export function coerceResolvedExecutionInputs( !canonical || !record(field) || !inputValue(field.value) || - !['literal', 'connected', 'override'].includes(String(field.source)) + (scope === 'HuggingFaceTransformers.GenerateImageVideoText' && !textGenerationInputValue(key, field.value)) || + (canonical === 'weightLoadingMode' && field.value !== 'cpu' && field.value !== 'cuda') || + (canonical === 'weightFormat' && + field.value !== 'native' && + field.value !== 'fp8r' && + field.value !== 'nvfp4') || + (field.source !== 'literal' && field.source !== 'connected' && field.source !== 'override') ) return undefined; if ( diff --git a/src/studio/reviewedModularGraphV2.ts b/src/studio/reviewedModularGraphV2.ts index 619046d3..c729a275 100644 --- a/src/studio/reviewedModularGraphV2.ts +++ b/src/studio/reviewedModularGraphV2.ts @@ -744,6 +744,7 @@ export function reviewedModularGraphV2( block.inputs, block.outputs, isLoopMember ? 'loop_member' : isLoopOwner ? 'loop_owner' : 'step', + block, ); paramsByPath.set(key, params); }); diff --git a/src/studio/reviewedValuePortsV2.ts b/src/studio/reviewedValuePortsV2.ts index 6a9d08a2..22035c56 100644 --- a/src/studio/reviewedValuePortsV2.ts +++ b/src/studio/reviewedValuePortsV2.ts @@ -1,6 +1,93 @@ import type { NodeParams } from '../stores/useNodeStore'; type DeclaredField = { name: string; description?: string }; +type SelectedBlock = { id: string; contentHash: string }; +const SCHEMAS = 'reviewedBlockFieldSchemasV1'; +const HASH = /^sha256:[0-9a-f]{64}$/u; +const PARAM_KEYS = new Set(['type', 'display', 'label', 'description', 'default']); + +function record(value: unknown): value is Record { + return ( + value !== null && + typeof value === 'object' && + !Array.isArray(value) && + (Object.getPrototypeOf(value) === Object.prototype || Object.getPrototypeOf(value) === null) + ); +} + +function invalid(): never { + throw new Error('The exact reviewed block field schema is unavailable or malformed.'); +} + +function socketType(value: unknown): value is string | string[] { + const text = (item: unknown): item is string => typeof item === 'string' && item.length > 0 && item.length <= 64; + return text(value) || (Array.isArray(value) && value.length > 0 && value.length <= 16 && value.every(text)); +} + +function fieldParams(value: unknown): NodeParams { + if ( + !record(value) || + Object.keys(value).some((key) => !PARAM_KEYS.has(key)) || + !socketType(value.type) || + typeof value.label !== 'string' || + value.label.length > 1024 || + (value.display !== undefined && (typeof value.display !== 'string' || value.display.length > 64)) || + (value.description !== undefined && (typeof value.description !== 'string' || value.description.length > 1024)) + ) + invalid(); + return { + type: structuredClone(value.type), + label: value.label, + ...(typeof value.display === 'string' ? { display: value.display } : {}), + ...(typeof value.description === 'string' ? { description: value.description } : {}), + ...(Object.prototype.hasOwnProperty.call(value, 'default') ? { default: structuredClone(value.default) } : {}), + }; +} + +/** Select backend-authored schema by the immutable block pair; never interpret Python annotations. */ +export function selectReviewedBlockFieldParamV2(base: NodeParams, selected?: SelectedBlock): NodeParams { + const options = base.fieldOptions; + if (!options || !Object.prototype.hasOwnProperty.call(options, SCHEMAS)) return structuredClone(base); + const raw = options[SCHEMAS]; + if ( + !selected || + !record(raw) || + Object.keys(raw).length !== 2 || + raw.schemaVersion !== 1 || + !Array.isArray(raw.alternatives) || + raw.alternatives.length < 2 || + raw.alternatives.length > 4096 + ) + invalid(); + const ids = new Set(); + let exact: NodeParams | undefined; + for (const item of raw.alternatives) { + if ( + !record(item) || + Object.keys(item).length !== 3 || + typeof item.blockDefinitionId !== 'string' || + item.blockDefinitionId.length > 512 || + typeof item.blockContractHash !== 'string' || + !HASH.test(item.blockContractHash) || + !item.blockDefinitionId.startsWith('diffusers.modular-block:') || + !item.blockDefinitionId.endsWith(`:${item.blockContractHash}`) || + ids.has(item.blockDefinitionId) + ) + invalid(); + ids.add(item.blockDefinitionId); + const params = fieldParams(item.params); + if (item.blockDefinitionId === selected.id && item.blockContractHash === selected.contentHash) exact = params; + } + if (!exact) invalid(); + const retained = { ...base }; + delete retained.fieldOptions; + for (const key of PARAM_KEYS) delete retained[key as keyof NodeParams]; + const result = { ...structuredClone(retained), ...exact }; + const remaining = { ...options }; + delete remaining[SCHEMAS]; + if (Object.keys(remaining).length) result.fieldOptions = structuredClone(remaining); + return result; +} /** Exact upstream value sockets supplement, never replace, owned Pipeline State. * Input/output names may coincide upstream; namespaced outputs preserve inputs. @@ -12,16 +99,18 @@ export function addReviewedValuePortsV2( inputs: readonly DeclaredField[], outputs: readonly DeclaredField[], executionKind: string, + selected?: SelectedBlock, ) { + const exact = (key: string) => selectReviewedBlockFieldParamV2(registry[key]!, selected); if (executionKind === 'loop_member') { for (const field of inputs) { const key = `iteration_input__${field.name}`; - if (registry[key]) params[key] = { ...structuredClone(registry[key]!), hidden: false, required: false }; + if (registry[key]) params[key] = { ...exact(key), hidden: false, required: false }; } for (const field of outputs) { for (const prefix of ['iteration_output__', 'iteration_previous__']) { const key = `${prefix}${field.name}`; - if (registry[key]) params[key] = { ...structuredClone(registry[key]!), hidden: false }; + if (registry[key]) params[key] = { ...exact(key), hidden: false }; } } return; @@ -29,11 +118,11 @@ export function addReviewedValuePortsV2( for (const field of inputs) { const key = registry[field.name]?.display === 'output' ? `state_input__${field.name}` : field.name; if (params[key] || !registry[key]) continue; - const base = structuredClone(registry[key]!); + const base = exact(key); delete base.default; delete base.value; params[key] = { - ...structuredClone(base), + ...base, display: 'input', required: false, hidden: false, @@ -46,6 +135,6 @@ export function addReviewedValuePortsV2( const key = `state_output__${field.name}`; const base = registry[key]; if (base?.display !== 'output') continue; - params[key] = { ...structuredClone(base), hidden: false }; + params[key] = { ...exact(key), hidden: false }; } } diff --git a/src/studio/runCoordinator.ts b/src/studio/runCoordinator.ts index 5bd3b6a6..09adacff 100644 --- a/src/studio/runCoordinator.ts +++ b/src/studio/runCoordinator.ts @@ -1,3 +1,10 @@ +import { + prepareExecutionScope, + assertCurrentExecutionScope, + assertExecutionScopeGraph, + executionScopeIncludesRoot, + type PreparedExecutionScope, +} from '../workflow/prepareExecutionScope'; import { nanoid } from 'nanoid'; import { resolveFlowExecutionTargetNodeId, useFlowStore, type APIGraphExport } from '../stores/useFlowStore'; import { @@ -47,6 +54,8 @@ export type CoordinatedGraphRunOptions = { preparedGraph?: APIGraphExport; studioContext?: StudioContextOptions; workflowContext?: WorkflowOperationContext; + executionScope?: PreparedExecutionScope; + previewTarget?: { nodeId: string; outputField: string }; /** Keep the currently executing run as canvas owner until this queued run starts. */ deferCanvasOwnership?: boolean; }; @@ -67,9 +76,16 @@ export async function coordinateGraphRun({ preparedGraph, studioContext, workflowContext, + executionScope, + previewTarget, deferCanvasOwnership = false, }: CoordinatedGraphRunOptions): Promise { if (workflowContext) assertWorkflowOperationContext(workflowContext); + if (!executionScope) { + const pending = prepareExecutionScope({ targetNodeId, previewTarget, workflowContext }); + if (pending) executionScope = await pending; + } + assertCurrentExecutionScope(executionScope); let requestedTarget = targetNodeId ? useFlowStore.getState().nodes.find((node) => node.id === targetNodeId) : undefined; @@ -77,6 +93,7 @@ export async function coordinateGraphRun({ .getState() .nodes.filter( (node) => + executionScopeIncludesRoot(executionScope, node.id) && node.data.huggingFaceClusterRole === 'root' && !node.data.blockCompilationTransientV2 && node.data.huggingFaceClusterInstance?.execution && @@ -100,11 +117,13 @@ export async function coordinateGraphRun({ // An exact catalog/source receipt does not carry executable resource hints. // Every custom graph, including one untouched registered Block, must plan // the lowered execution scope before it can submit in Auto. - const workflowAuto = !manualMode && (!studioContext || studioContext.applyRuntimeMetadata === false); + const workflowAuto = + !manualMode && (executionScope !== undefined || !studioContext || studioContext.applyRuntimeMetadata === false); const registeredInstanceIds = useFlowStore .getState() .nodes.filter( (node) => + executionScopeIncludesRoot(executionScope, node.id) && node.data.blockInstanceV2 && (node.data.blockInstanceV2.definitionSnapshot.source.kind === 'diffusers_catalog' || node.data.blockInstanceV2.definitionSnapshot.source.kind === 'transformers_catalog') && @@ -120,11 +139,13 @@ export async function coordinateGraphRun({ if (!eligibility.eligible) throw new Error(eligibility.reason); await prepareRegisteredBlockAutoAuthoritiesV2(registeredInstanceIds); } + assertCurrentExecutionScope(executionScope); const currentFlow = useFlowStore.getState(); const legacyPreparation = workflowAuto && currentFlow.nodes.some( (node) => + executionScopeIncludesRoot(executionScope, node.id) && !node.data.blockInstanceV2 && (node.data.userBlockSnapshot || node.data.userBlockId || node.data.huggingFaceClusterRole === 'root'), ) @@ -141,21 +162,26 @@ export async function coordinateGraphRun({ nodes: legacyPreparation.nodes, edges: legacyPreparation.edges, exportGraph: (sid: string, target?: string) => - currentFlow.exportGraph(sid, target, { sourceGraph: legacyPreparation }), + currentFlow.exportGraph(sid, target, { sourceGraph: legacyPreparation, executionScope }), } : currentFlow; requestedTarget = targetNodeId ? flow.nodes.find((node) => node.id === targetNodeId) : undefined; let lowerModularComposition: ((graph: APIGraphExport) => APIGraphExport) | undefined; if ( - flow.nodes.some((node) => - node.data.blockInstanceV2?.effectiveGraph.nodes.some( - (child) => child.modularDiffusers?.kind === 'upstream_block', - ), + flow.nodes.some( + (node) => + executionScopeIncludesRoot(executionScope, node.id) && + node.data.blockInstanceV2?.effectiveGraph.nodes.some( + (child) => child.modularDiffusers?.kind === 'upstream_block', + ), ) ) { lowerModularComposition = await ( await import('./modularComposition') - ).prepareModularCompositionExecutionV2(currentFlow, flow.nodes); + ).prepareModularCompositionExecutionV2( + currentFlow, + flow.nodes.filter((node) => executionScopeIncludesRoot(executionScope, node.id)), + ); if (workflowContext) assertWorkflowOperationContext(workflowContext); } if (!manualMode && !workflowAuto) { @@ -174,7 +200,9 @@ export async function coordinateGraphRun({ // V2 roots use their embedded BlockDefinitionV2 snapshot and are // validated by expandBlockGraphV2ForExecution during export. They are // not legacy User Nodes and must not be sent through the V1 registry. - nodes: flow.nodes.filter((node) => node.data.blockInstanceV2 === undefined), + nodes: flow.nodes.filter( + (node) => node.data.blockInstanceV2 === undefined && executionScopeIncludesRoot(executionScope, node.id), + ), edges: flow.edges, }, useUserBlockStore.getState().blocks, @@ -186,7 +214,9 @@ export async function coordinateGraphRun({ ); } useStudioStore.getState().saveActiveWorkflowTab(true); - const currentFlowGraph = flow.exportGraph(sid, targetNodeId); + assertCurrentExecutionScope(executionScope); + const currentFlowGraph = flow.exportGraph(sid, targetNodeId, { executionScope }); + if (executionScope && preparedGraph) assertExecutionScopeGraph(preparedGraph, currentFlowGraph); let exportedGraph = lowerModularComposition ? lowerModularComposition(preparedGraph ?? currentFlowGraph) : (preparedGraph ?? currentFlowGraph); @@ -195,7 +225,7 @@ export async function coordinateGraphRun({ if (wholeWorkflowAuto) { exportedGraph = await ( await import('./workflowAutoExecutionV2') - ).prepareWorkflowAutoExecutionV2(exportedGraph, legacyPreparation); + ).prepareWorkflowAutoExecutionV2(exportedGraph, legacyPreparation, executionScope); if (workflowContext) assertWorkflowOperationContext(workflowContext, { includeForm: false }); } // `studioContext` identifies a Studio-owned graph in both Auto and Expert @@ -203,23 +233,27 @@ export async function coordinateGraphRun({ // graph must still carry the exact model/resource choices that the visible // Studio graph executes. Raw/imported manual graphs do not pass a Studio // context and therefore continue to receive correlation metadata only. - const managedRun = Boolean(studioContext); + const managedRun = Boolean(studioContext) && !executionScope; const preparedGraphForRun = !managedRun || studioContext?.applyRuntimeMetadata === false ? exportedGraph : applyDeterministicRunMetadata(exportedGraph, { force: studioContext?.forceDeterministic }); - const clusterRunForm = huggingFaceClusterRunForm(preparedGraphForRun, { strict: !manualMode && !workflowAuto }); - const blockRunProjection = registeredBlockRunFormForFlowV2( - flow.nodes, - requestedTarget?.data.blockInstanceV2 ? requestedTarget.id : undefined, - manualMode ? 'expert' : 'auto', - { rejectAmbiguous: !manualMode && !workflowAuto }, - ); + const clusterRunForm = executionScope + ? undefined + : huggingFaceClusterRunForm(preparedGraphForRun, { strict: !manualMode && !workflowAuto }); + const blockRunProjection = executionScope + ? undefined + : registeredBlockRunFormForFlowV2( + flow.nodes, + requestedTarget?.data.blockInstanceV2 ? requestedTarget.id : undefined, + manualMode ? 'expert' : 'auto', + { rejectAmbiguous: !manualMode && !workflowAuto }, + ); const blockRunForm = blockRunProjection?.form; - const userBlockRunForm = userBlockRunFormForFlowV2( - flow.nodes, - requestedTarget?.data.blockInstanceV2 ? requestedTarget.id : undefined, - )?.form; + const userBlockRunForm = executionScope + ? undefined + : userBlockRunFormForFlowV2(flow.nodes, requestedTarget?.data.blockInstanceV2 ? requestedTarget.id : undefined) + ?.form; const exactRunForm = clusterRunForm ?? blockRunForm ?? userBlockRunForm; const runForm = exactRunForm ?? useStudioStore.getState().form; const routeAdmissions = blockRunProjection @@ -275,6 +309,13 @@ export async function coordinateGraphRun({ registeredBlockRuntimeHints, { stripStaleRouteHints: Boolean(blockRunProjection && preparedGraph && !resourceRouteBinding) }, ); + assertCurrentExecutionScope(executionScope); + if (currentFlowGraph.runtimeHints?.executionPurpose) + graphWithRegisteredBlockRuntimeHints.runtimeHints = { + ...graphWithRegisteredBlockRuntimeHints.runtimeHints, + executionPurpose: currentFlowGraph.runtimeHints.executionPurpose, + resourceMode: manualMode ? 'expert' : 'auto', + }; const identity = { clientRunId: nanoid(), runInputHash: getStudioRunInputHash(runForm, graphWithRegisteredBlockRuntimeHints), @@ -298,6 +339,11 @@ export async function coordinateGraphRun({ }, } : graphWithExecutionAuthority; + if (currentFlowGraph.runtimeHints?.executionPurpose) + graphWithWorkflowAutoPlan.runtimeHints = { + ...graphWithWorkflowAutoPlan.runtimeHints, + executionPurpose: currentFlowGraph.runtimeHints.executionPurpose, + }; const submittedGraph = applyRunCorrelationHints(graphWithWorkflowAutoPlan, identity, { targetNodeId: executionTargetNodeId, formSnapshot: exactRunForm, @@ -308,7 +354,7 @@ export async function coordinateGraphRun({ form: exactRunForm, }); if (workflowContext) assertWorkflowOperationContext(workflowContext); - const response = await runGraph(sid, executionTargetNodeId, submittedGraph); + const response = await runGraph(sid, executionTargetNodeId, submittedGraph, executionScope); useStudioStore.getState().attachRunResponse(response, identity.clientRunId); const taskId = typeof response.task_id === 'string' && response.task_id.trim() ? response.task_id : undefined; if (taskId) { diff --git a/src/studio/runPreparation.ts b/src/studio/runPreparation.ts index f20b8933..84a71a64 100644 --- a/src/studio/runPreparation.ts +++ b/src/studio/runPreparation.ts @@ -291,6 +291,13 @@ export function getStudioRunInputHash(form: StudioFormState, apiGraph: APIGraphE paths: apiGraph.paths, deterministicMode: apiGraph.deterministicMode, provenance: apiGraph.provenance, + ...(apiGraph.runtimeHints?.executionPurpose + ? { + loopsPresent: Object.prototype.hasOwnProperty.call(apiGraph, 'loops'), + loops: apiGraph.loops ?? null, + executionPurpose: apiGraph.runtimeHints.executionPurpose, + } + : {}), }), )}`; } diff --git a/src/studio/runReadiness.ts b/src/studio/runReadiness.ts index 11d5a0b7..d616a121 100644 --- a/src/studio/runReadiness.ts +++ b/src/studio/runReadiness.ts @@ -1,3 +1,4 @@ +import { hasAncillaryExecutionClaim, type PreparedExecutionScope } from '../workflow/prepareExecutionScope'; import { inspectRequiredGraphInputs } from './requiredGraphInputs'; import { useFlowStore, @@ -7,7 +8,13 @@ import { import { buildApiGraphExport } from '../stores/flowGraphExport'; import { useNodesStore } from '../stores/useNodeStore'; import { runtimeFailureTargetsActiveWorkflow, useRunIssueStore } from '../stores/useRunIssueStore'; -import { currentAutoResourcePlanTarget, useStudioStore } from '../stores/useStudioStore'; +import { + advanceWorkflowOperationContext, + assertWorkflowOperationContext, + currentAutoResourcePlanTarget, + useStudioStore, + type WorkflowOperationContext, +} from '../stores/useStudioStore'; import { useTaskStore, type Task } from '../stores/useTaskStore'; import { getStudioModelCacheStatus } from './modelCache'; import { @@ -16,6 +23,7 @@ import { type WorkflowGraphArtifactReference, } from './artifactRequirements'; import { + DEFAULT_STUDIO_FORM, getProfileForForm, getStudioModelDisplayName, normalizeStudioOffloadMode, @@ -372,6 +380,19 @@ export function runtimeDeviceIsAvailable(status: RuntimeStatus | null, device: s return false; } +/** Commit the existing runtime fallback before an owned graph build awaits metadata. */ +export function normalizeStudioRuntimeDevice(context: WorkflowOperationContext) { + assertWorkflowOperationContext(context); + const runtime = useNodesStore.getState().runtimeStatus; + if (!runtime) return; + const form = useStudioStore.getState().form; + const device = getPreferredRuntimeDevice(runtime); + if (device === form.device || runtimeDeviceIsAvailable(runtime, form.device)) return; + if (form.device !== DEFAULT_STUDIO_FORM.device && !form.device.toLowerCase().startsWith('cuda')) return; + useStudioStore.getState().updateForm({ device }); + advanceWorkflowOperationContext(context); +} + function cudaTotalBytes(status: RuntimeStatus | null, device: string) { const cudaDevice = getRuntimeCudaDevice(status, device); return cudaDevice?.memory_total_bytes ?? cudaDevice?.total_memory ?? null; @@ -885,12 +906,25 @@ export function collectGraphDeviceOffloadIssues(graph = executableFlowGraph()): }); } -function executableFlowGraph(targetNodeId?: string) { +function executableFlowGraph(targetNodeId?: string, executionScope?: PreparedExecutionScope) { const { nodes, edges } = useFlowStore.getState(); const durable = withoutBlockCompilationTransientsV2(nodes, edges); const userBlocks = expandUserBlockGraph(durable.nodes, durable.edges, useUserBlockStore.getState().blocks); const legacyClusters = expandHuggingFaceClusterBoundaryEdges(userBlocks); const execution = expandBlockGraphV2ForExecution(legacyClusters.nodes, legacyClusters.edges, targetNodeId); + if (hasAncillaryExecutionClaim(nodes)) { + const graph = useFlowStore + .getState() + .exportGraph('readiness', targetNodeId, { randomizeSeeds: false, executionScope }); + const ids = new Set(Object.keys(graph.nodes)); + return { + nodes: execution.nodes.filter((node) => ids.has(node.id)), + edges: execution.edges.filter((edge) => ids.has(edge.source) && ids.has(edge.target)), + ...(graph.runtimeHints?.executionPurpose?.kind === 'explicit_preview' + ? { previewOutputNodeId: graph.runtimeHints.executionPurpose.target.nodeId } + : {}), + }; + } if (!targetNodeId) return execution; // Use the same target/dependency closure as selected Run. This is inspection: // randomized fields must not write back into the user's saved instance. @@ -1011,7 +1045,9 @@ function collectGraphStructureIssues(graph = executableFlowGraph()): RunReadines ]; } - const outputNodes = executableNodes.filter(isOutputLikeNode); + const outputNodes = executableNodes.filter( + (node) => isOutputLikeNode(node) || ('previewOutputNodeId' in graph && node.id === graph.previewOutputNodeId), + ); if (outputNodes.length === 0) { if (preparableClusters.length > 0) return []; return [ @@ -1752,6 +1788,7 @@ export function collectRunReadinessIssues(options: { isConnected: boolean; includeStudio?: boolean; targetNodeId?: string; + executionScope?: PreparedExecutionScope; }) { const issues: RunReadinessIssue[] = []; const studioState = useStudioStore.getState(); @@ -1837,7 +1874,7 @@ export function collectRunReadinessIssues(options: { let executionGraph: ReturnType | null = null; try { - executionGraph = executableFlowGraph(options.targetNodeId); + executionGraph = executableFlowGraph(options.targetNodeId, options.executionScope); } catch (error) { issues.push(invalidCompositeExecutionGraphIssue(error)); } @@ -2026,6 +2063,7 @@ export function validateCurrentRun(options: { includeStudio?: boolean; showDialog?: boolean; targetNodeId?: string; + executionScope?: PreparedExecutionScope; }) { const issues = collectRunReadinessIssues(options); applyRunReadinessToGraph(issues); diff --git a/src/studio/templateModelSelection.ts b/src/studio/templateModelSelection.ts index 24e2b4b0..b207be4d 100644 --- a/src/studio/templateModelSelection.ts +++ b/src/studio/templateModelSelection.ts @@ -20,14 +20,28 @@ export function resolveTemplateModelSelection(template: StudioTemplate, capabili !/^[A-Za-z0-9][A-Za-z0-9._-]{0,95}\/[A-Za-z0-9][A-Za-z0-9._-]{0,95}$/u.test(profile.default_repo) ) return null; - const artifact = template.modelArtifact; - const revision = artifact?.revision ?? template.example?.modelRevision; + const audio = template.example?.mediaType === 'audio'; + const artifact = template.modelArtifact ?? (audio ? template.workflowBlockSettings?.lora?.baseModel : undefined); + const repository = artifact?.value ?? profile.default_repo; + const exampleRevision = template.example?.modelRevision; + const declared = profile.repository_revisions?.filter((pair) => pair.repo === repository); + const revision = + artifact?.revision ?? + (audio && !/^[a-f0-9]{40}$/u.test(exampleRevision ?? '') + ? declared?.length === 1 + ? declared[0]!.revision + : undefined + : exampleRevision); if ( !revision || !/^[a-f0-9]{40}$/u.test(revision) || - (artifact && (artifact.source !== 'hub' || artifact.value !== profile.default_repo)) || - (template.example?.modelRevision && template.example.modelRevision !== revision) + (artifact && artifact.source !== 'hub') || + ![profile.default_repo, profile.fallback_repo, ...(profile.compatible_repos ?? [])].includes(repository) || + (!audio && repository !== profile.default_repo) || + (audio && declared && (declared.length !== 1 || declared[0]!.revision !== revision)) || + (audio && repository !== profile.default_repo && declared?.length !== 1) || + (exampleRevision && (!audio || /^[a-f0-9]{40}$/u.test(exampleRevision)) && exampleRevision !== revision) ) return null; - return { capability, profile, repository: profile.default_repo, revision }; + return { capability, profile, repository, revision }; } diff --git a/src/studio/templateOperationSelections.ts b/src/studio/templateOperationSelections.ts index 129feb8e..3c9345d7 100644 --- a/src/studio/templateOperationSelections.ts +++ b/src/studio/templateOperationSelections.ts @@ -1,4 +1,4 @@ -import type { StudioTemplateExecutionSelection, StudioTemplateId } from './types'; +import type { StudioMode, StudioTemplateExecutionSelection, StudioTemplateId } from './types'; const STANDARD_Z_TEMPLATE_IDS: StudioTemplateId[] = [ 'z_image_quick_concept', @@ -26,65 +26,53 @@ const STANDARD_FLUX_TEMPLATE_IDS: StudioTemplateId[] = [ 'flux_kontext_multi_reference', ]; +// Curated IDs select a backend-owned recipe; frontend code applies its data +// without interpreting model families, compatibility switches or wiring. +const AUTHORING_RECIPES_BY_TEMPLATE_ID: Partial> = Object.fromEntries([ + ...STANDARD_Z_TEMPLATE_IDS.map((id) => [id, 'retained-z-image-text-to-image:v1']), + ...[ + 'qwen_text_rendering', + 'qwen_poster_logo_text', + 'qwen_product_mockup', + 'qwen_low_vram_text_rendering', + 'qwen_low_vram_product_concept', + 'qwen_low_vram_poster_layout', + 'qwen_upscale_finish', + 'high_quality', + ].map((id) => [id, 'retained-qwen-image-text-to-image:v1']), + ['flux_schnell_text_to_image', 'retained-flux-schnell-text-to-image:v1'], + ...STANDARD_FLUX_TEMPLATE_IDS.filter( + (id) => + ![ + 'flux_schnell_text_to_image', + 'flux_krea_text_to_image', + 'flux_kontext_edit', + 'flux_kontext_multi_reference', + ].includes(id), + ).map((id) => [id, 'retained-flux-dev-text-to-image:v1']), + ['flux_krea_text_to_image', 'retained-flux-krea-text-to-image:v1'], + ['flux_kontext_edit', 'retained-flux-kontext-edit:v1'], + ['flux_kontext_multi_reference', 'retained-flux-kontext-multi-reference:v1'], + ['flux2_klein_text_to_image', 'retained-flux2-klein-text-to-image:v1'], + ['flux2_klein_edit', 'retained-flux2-klein-edit:v1'], + ['flux2_klein_multi_reference', 'retained-flux2-klein-multi-reference:v1'], + ['qwen_inpaint_object_replace', 'retained-qwen-edit-inpaint:v1'], + ['qwen_inpaint_mask_draft', 'retained-qwen-edit-inpaint:v1'], + ['qwen_outpaint_aspect_template', 'retained-qwen-edit-outpaint:v1'], + ['qwen_outpaint_draft', 'retained-qwen-edit-outpaint:v1'], +]); function recipes(ids: StudioTemplateId[], selection: StudioTemplateExecutionSelection) { return Object.fromEntries( ids.map((id) => [ id, { ...selection, - ...(PRESERVED_PIPELINE_POLICIES[id] ? { componentPolicy: PRESERVED_PIPELINE_POLICIES[id] } : {}), + ...(AUTHORING_RECIPES_BY_TEMPLATE_ID[id] ? { authoringRecipeId: AUTHORING_RECIPES_BY_TEMPLATE_ID[id] } : {}), ...(['z_image_lora_style', 'fast_lora'].includes(id) ? { loraPolicy: { defaultAdapterName: 'default' } } : {}), - ...(STANDARD_Z_TEMPLATE_IDS.includes(id) - ? { guidancePolicy: { enabled: true, useOriginalFormulation: true } } - : {}), - ...(STANDARD_FLUX_TEMPLATE_IDS.includes(id) - ? { - guidancePolicy: { - enabled: id !== 'flux_schnell_text_to_image', - useOriginalFormulation: false, - distilledGuidanceScale: id === 'flux_schnell_text_to_image' ? 0 : 3.5, - }, - } - : {}), }, ]), ); } - -// These policies apply only to newly created recipes. Saved graphs retain their -// authored controls. Automatic attention avoids the forced math working set on -// constrained devices; VAE slicing and tiling remain explicit. -const PRESERVED_PIPELINE_POLICIES: Partial< - Record> -> = Object.fromEntries([ - ...STANDARD_Z_TEMPLATE_IDS.map((id) => [id, { attentionBackend: 'auto', vaeSlicing: true, vaeTiling: true }]), - ...[ - 'qwen_text_rendering', - 'qwen_poster_logo_text', - 'qwen_product_mockup', - 'qwen_low_vram_text_rendering', - 'qwen_low_vram_product_concept', - 'qwen_low_vram_poster_layout', - 'qwen_upscale_finish', - 'high_quality', - 'flux_schnell_text_to_image', - 'flux_dev_expert_text_to_image', - 'flux_lora_cinematic_octane_3d', - 'flux_lora_ghibli_story', - 'flux_lora_oil_painting', - 'flux_lora_film_noir', - 'flux_lora_retro_comic', - 'flux_lora_watercolor', - 'flux_lora_paper_cutout', - 'flux_lora_photoreal_documentary', - 'flux_kontext_edit', - 'flux_krea_text_to_image', - 'flux_kontext_multi_reference', - 'flux2_klein_text_to_image', - 'flux2_klein_edit', - 'flux2_klein_multi_reference', - ].map((id) => [id, { attentionBackend: 'auto', vaeSlicing: true, vaeTiling: true }]), -]); function native( pipelineClass: string, executionProfileId: string, @@ -99,6 +87,7 @@ function native( task, bindingSpec: { modelType, mode }, implementation: 'native_stages', + authoringRecipeId: 'generic-native-image:v1', }; } function pipeline( @@ -114,7 +103,7 @@ function pipeline( executionProfileId, task: mode, bindingSpec: { modelType, mode }, - implementation: 'whole_pipeline', + implementation: 'pipeline_stages', note, }; } @@ -139,7 +128,7 @@ export function qwenInpaintNativeCandidateSelection(id: StudioTemplateId): Studi 'modular_inpainting', 'inpaint', ), - componentPolicy: { attentionBackend: 'auto', vaeSlicing: true, vaeTiling: true }, + authoringRecipeId: AUTHORING_RECIPES_BY_TEMPLATE_ID[id], note: 'Native masked stages preserve the reviewed whole-template preprocessing and composite through an owned compatibility adapter.', }; } @@ -301,7 +290,7 @@ export const IMAGE_TEMPLATE_EXECUTION_SELECTIONS: Partial> = + { + ...Object.fromEntries( + ( + [ + ['ace_step_text_to_audio', 'text_to_audio'], + ['ace_step_audio_variation', 'audio_variation'], + ['ace_step_audio_continuation', 'audio_continuation'], + ['ace_step_audio_repaint', 'audio_repaint'], + ['ace_step_chinese_new_year_lora', 'text_to_audio'], + ['ace_step_custom_lora', 'text_to_audio'], + ] as const satisfies readonly (readonly [StudioTemplateId, StudioMode])[] + ).map(([id, task]) => [ + id, + { + schemaVersion: 1, + pipelineClass: 'AceStepPipeline', + task, + executionProfileId: 'ace-step-audio:direct', + bindingSpec: { modelType: 'AceStepAudioPipeline', mode: task }, + implementation: 'whole_pipeline', + note: 'Model Setup owns configuration and the reviewed adapter; Generate Audio remains the real integrated pipeline action.', + } satisfies StudioTemplateExecutionSelection, + ]), + ), + minimax_music3_chamber_pop: { + schemaVersion: 1, + pipelineClass: 'MiniMaxMusic3ModularPipeline', + task: 'text_to_audio', + executionProfileId: 'minimax-music3:official-modular-workflow', + bindingSpec: { modelType: 'MiniMaxMusic3ModularPipeline', mode: 'text_to_audio' }, + implementation: 'native_stages', + note: 'The real semantic generation and denoising stages feed Audio Output; no prompt encoder or Guider is invented.', + }, + }; diff --git a/src/studio/templateOperationWorkflow.ts b/src/studio/templateOperationWorkflow.ts index 1d94afa8..114017fa 100644 --- a/src/studio/templateOperationWorkflow.ts +++ b/src/studio/templateOperationWorkflow.ts @@ -1,3 +1,10 @@ +import { attachPromptEnhancementParents } from './promptEnhancementAuthoring'; +import { selectedAudioAdapterPolicy } from '../workflow/selectedAudioAdapterAuthority'; +import { + validateModelSetupAdapterSelection, + requiredAdapterControlsUnavailable, + type ModelSetupAdapterAuthority, +} from '../workflow/modelSetupAdapters'; import { nanoid } from 'nanoid'; import type { CustomNodeType } from '../stores/useFlowStore'; import type { NodeData } from '../stores/useNodeStore'; @@ -9,10 +16,12 @@ import { type OperationStarter, } from '../workflow/operationAuthoring'; import { operationOwnsModel } from '../workflow/operationContracts'; +import { acceptsOperationValue } from '../workflow/operationFieldValue'; import { createNodeFromRegistry } from '../workflow/nodeFactory'; import { groupNewOperationGraph } from '../workflow/visualOperationGroups'; import { CONTROLLED_WORKFLOW_NODE_KEYS } from './controlledWorkflowContracts'; import { loraWorkflowFieldValues, upscaleWorkflowFieldValues } from './controlledWorkflowValues'; +import { orderedAdapterChainLinks } from './adapterChainLinks'; import { resolveStudioExecutionSpecValues } from './executionSpecValues'; import { resolveTemplateModelSelection } from './templateModelSelection'; import type { @@ -24,6 +33,30 @@ import type { } from './types'; const OWNER_IDENTITY = new Set(['artifact', 'defaultRevision', 'pipelineClass', 'executionProfileId', 'modelVariant']); +const IDENTITY_BINDINGS: Record = { + repo_id: ['artifact'], + model_id: ['artifact'], + revision: ['defaultRevision'], + pipeline_class: ['pipelineClass'], + execution_profile_id: ['executionProfileId'], + model_type: ['pipelineClass', 'modelVariant'], + variant: ['modelVariant'], + reviewed_variant: ['modelVariant'], + workflow_id: ['defaultWorkflow', 'workflowId'], + trust_remote_code: ['false'], +}; +const DEPENDENCY_IDENTITY_BINDINGS: Record = { + model_type: ['kind', 'controlnetKind'], + model_id: ['repo', 'controlnetRepo'], + variant: ['empty', 'fp16', 'controlnetWeightVariant'], + revision: ['revision', 'controlnetRevision'], +}; +const canonicalIdentityField = (field: string) => + field === 'block_path' || Object.prototype.hasOwnProperty.call(IDENTITY_BINDINGS, field); +const canonicalIdentitySource = (field: string, source: string) => + field === 'block_path' + ? (source.startsWith('workflow') && source.endsWith('Block')) || source === 'semanticGeneratorBlock' + : Object.prototype.hasOwnProperty.call(IDENTITY_BINDINGS, field) && IDENTITY_BINDINGS[field]!.includes(source); /** Construct one ordinary, visible graph from the backend's exact starter and * declared semantic bindings. This is authoring, never an execution receipt. */ @@ -34,6 +67,7 @@ export function createTemplateOperationGraph( registry: Record, spec: StudioExecutionSpec, capability: StudioModelProfile, + authority?: ModelSetupAdapterAuthority, ): OperationGraph { const selection = template.executionSelection; if ( @@ -50,25 +84,22 @@ export function createTemplateOperationGraph( const owners = graph.nodes.filter((node) => operationOwnsModel(operationAuthoring(node)?.operation)); if (owners.length !== 1) throw new Error('The template needs exactly one declared model owner.'); const owner = owners[0]!; - const qwenMaskedCompatibility = - [ - 'qwen_inpaint_object_replace', - 'qwen_inpaint_mask_draft', - 'qwen_outpaint_aspect_template', - 'qwen_outpaint_draft', - ].includes(template.id) && - selection.implementation === 'native_stages' && - selection.pipelineClass === 'QwenImageEditModularPipeline' && - selection.executionProfileId === 'qwen-edit:modular' && - selection.task === 'inpaint' && - selection.bindingSpec.modelType === 'QwenImageEditModularPipeline' && - selection.bindingSpec.mode === 'modular_inpainting'; + const ownerBoundFields = new Set(Object.keys(operationAuthoring(owner)?.operation.binding?.values ?? {})); + const ownerIdentityField = (field: string) => ownerBoundFields.has(field) || canonicalIdentityField(field); + const ownerRole = spec.roles.find(([, key]) => key === `${owner.data.module}.${owner.data.action}`)?.[0]; + const ownerBindingSources = new Map( + spec.bindings.filter(([role]) => role === ownerRole).map(([, field, source]) => [field, source]), + ); + const recipe = starter.authoring; if ( - qwenMaskedCompatibility && - (starter.workflowId !== 'image_conditioned_inpainting' || - operationAuthoring(owner)?.operation.binding?.values.workflow_id !== 'image_conditioned_inpainting') + selection.authoringRecipeId !== recipe?.id || + (recipe && + (recipe.baseSpecId !== spec.id || + recipe.baseSpecContentHash !== spec.contentHash || + !recipe.executionProfileIds.includes(selection.executionProfileId))) ) - throw new Error('The Qwen masked template requires the reviewed image_conditioned_inpainting workflow.'); + throw new Error('The template authoring recipe is stale or belongs to another execution specification.'); + const declarations = recipe ?? spec; const adapterName = selection.loraPolicy?.defaultAdapterName; const lora = template.workflowBlockSettings?.lora; if ( @@ -89,7 +120,11 @@ export function createTemplateOperationGraph( if (ownerProfile && (ownerProfile.value ?? ownerProfile.default) !== selection.executionProfileId) throw new Error('The backend resolved a different template execution profile.'); const lockedRevision = template.modelArtifact?.revision ?? template.example?.modelRevision; - if (template.modelArtifact || (lockedRevision && /^[a-f0-9]{40}$/u.test(lockedRevision))) { + if ( + template.example?.mediaType === 'audio' || + template.modelArtifact || + (lockedRevision && /^[a-f0-9]{40}$/u.test(lockedRevision)) + ) { const selected = resolveTemplateModelSelection(template, [capability]); const repositoryField = owner.data.params.repo_id ?? owner.data.params.model_id; const repository = repositoryField?.value ?? repositoryField?.default; @@ -108,7 +143,8 @@ export function createTemplateOperationGraph( } const roles = new Map(); const claimed = new Set(); - for (const [role, key, x, y] of spec.roles) { + for (const [role, key, x, y] of declarations.roles) { + if (roles.has(role)) throw new Error(`The backend template role ${role} is duplicated.`); const matches = graph.nodes.filter( (node) => `${node.data.module}.${node.data.action}` === key && !claimed.has(node.id), ); @@ -122,6 +158,9 @@ export function createTemplateOperationGraph( throw new Error(`The template operation role ${role} is missing.`); graph.nodes.push(node); } + if (node.data.studioRole !== undefined && node.data.studioRole !== role) + throw new Error('The template node role does not match its backend declaration.'); + node.data.studioRole = role; claimed.add(node.id); roles.set(role, node); } @@ -129,36 +168,147 @@ export function createTemplateOperationGraph( const revision = revisionField?.value ?? revisionField?.default; const values = resolveStudioExecutionSpecValues(form, spec, capability, { ...(typeof revision === 'string' ? { defaultModelRevision: revision } : {}), + ...(template.example?.mediaType === 'audio' + ? { audioTemplateBaseModel: resolveTemplateModelSelection(template, [capability])?.repository } + : {}), }); + const declaresField = (node: CustomNodeType, name: string) => + Object.prototype.hasOwnProperty.call(node.data.params, name) && Boolean(node.data.params[name]); const set = (node: CustomNodeType, names: string[], value: unknown) => { - const name = names.find((field) => node.data.params[field]); + const name = names.find((field) => declaresField(node, field)); if (!name) throw new Error(`The template setting ${names[0]} is not declared on ${node.data.label}.`); const field = node.data.params[name]!; - field.value = + if (node.id === owner.id && ownerIdentityField(name)) + throw new Error('The template authoring value cannot change the resolved model identity.'); + const normalized = field.type === 'model' && typeof value === 'string' ? { source: 'hub', value } : structuredClone(value); + const types = Array.isArray(field.type) ? field.type : [field.type]; + const modelSelector = field.display === 'modelselect' || types.includes('model'); + const selector = + modelSelector && normalized && typeof normalized === 'object' && !Array.isArray(normalized) + ? (normalized as Record) + : null; + const sources = field.fieldOptions?.sources; + const selectorSchema = [field.value, field.default].find( + (item) => item && typeof item === 'object' && !Array.isArray(item) && 'source' in item && 'value' in item, + ) as Record | undefined; + const selectorKeys = ['source', 'value', 'revision', 'sha256', 'byteSize', 'license']; + const validSelector = + selector && + Object.keys(selector).every( + (key) => + selectorKeys.includes(key) && + (['source', 'value'].includes(key) || + (selectorSchema && Object.prototype.hasOwnProperty.call(selectorSchema, key))), + ) && + (selector.source === 'hub' || selector.source === 'local') && + typeof selector.value === 'string' && + selector.value.length <= 4096 && + (selector.revision === undefined || + (typeof selector.revision === 'string' && /^[0-9a-f]{40}$/.test(selector.revision))) && + (selector.sha256 === undefined || + (typeof selector.sha256 === 'string' && /^[0-9a-f]{64}$/.test(selector.sha256))) && + (selector.byteSize === undefined || + (typeof selector.byteSize === 'number' && Number.isSafeInteger(selector.byteSize) && selector.byteSize > 0)) && + (selector.license === undefined || (typeof selector.license === 'string' && selector.license.length <= 256)) && + (sources === undefined || (Array.isArray(sources) && sources.includes(selector.source))); + const fileBrowser = field.display === 'filebrowser'; + const validFile = + (typeof normalized === 'string' && normalized.length <= 4096) || + (field.fieldOptions?.multiple === true && + Array.isArray(normalized) && + normalized.length <= 64 && + normalized.every((item) => typeof item === 'string' && item.length <= 4096)); + const optionalNull = normalized === null && (field.default === null || field.value === null) && !field.required; + // Selectors decorate numeric option values as strings for display. Keep the + // executable value numeric and compare it with the declared numeric domain. + const options = + field.options && types.some((type) => ['int', 'float', 'number'].includes(type ?? '')) + ? (Array.isArray(field.options) ? field.options : Object.keys(field.options)).map((option) => { + const value = option && typeof option === 'object' && 'value' in option ? option.value : option; + return typeof value === 'string' && value.trim() && Number.isFinite(Number(value)) ? Number(value) : value; + }) + : field.options; + const multipleSelect = field.display === 'select' && field.fieldOptions?.multiple === true; + const acceptsScalar = (value: unknown) => { + const scalar = + field.display === 'random' && value && typeof value === 'object' && !Array.isArray(value) && 'value' in value + ? value.value + : value; + return ( + acceptsOperationValue({ ...field, options }, value) && + (!types.some((type) => ['int', 'float', 'number'].includes(type ?? '')) || typeof scalar === 'number') && + (!types.some((type) => ['str', 'string', 'text'].includes(type ?? '')) || typeof scalar === 'string') + ); + }; + const validMultipleSelect = + multipleSelect && Array.isArray(normalized) && normalized.length <= 64 && normalized.every(acceptsScalar); + if ( + field.display === 'output' || + (modelSelector && !validSelector) || + (fileBrowser && !validFile) || + (!optionalNull && + !modelSelector && + !fileBrowser && + (multipleSelect ? !validMultipleSelect : !acceptsScalar(normalized))) + ) + throw new Error(`The template setting ${field.label || name} is incompatible with ${node.data.label}.`); + field.value = normalized; const hint = operationAuthoring(node); if (hint) hint.authored = [...new Set([...(hint.authored ?? []), name])]; }; - if (selection.componentPolicy) { - const policy = selection.componentPolicy; - set(owner, ['attention_backend'], policy.attentionBackend); - set(owner, ['vae_slicing'], policy.vaeSlicing); - set(owner, ['vae_tiling'], policy.vaeTiling); + for (const [role, field, value] of recipe?.initialValues ?? []) { + const node = roles.get(role); + const parameter = node && declaresField(node, field) && node.data.params[field]; + if (!node || !parameter) throw new Error('The template authoring literal is incompatible with its declared field.'); + if ( + canonicalIdentityField(field) || + Object.prototype.hasOwnProperty.call(operationAuthoring(node)?.operation.binding?.values ?? {}, field) + ) + throw new Error('The template authoring literal cannot change a declared identity.'); + set(node, [field], value); } const backendDefaultInputs = new Set(selection.backendDefaultInputs ?? []); for (const source of backendDefaultInputs) { if ( !['prompt', 'negativePrompt'].includes(source) || - spec.bindings.filter(([, , name]) => name === source).length !== 1 + declarations.bindings.filter(([, , name]) => name === source).length !== 1 ) throw new Error(`The template backend default ${source} needs one declared text binding.`); } - for (const [role, field, source] of spec.bindings) { + for (const [role, field, source] of declarations.bindings) { const node = roles.get(role)!; // The selected backend profile owns its exact repository, revision and // class. A semantic binding spec may also serve a reviewed family variant // (Schnell/Krea); it must not overwrite that resolved identity with Dev. - if (node.id === owner.id && OWNER_IDENTITY.has(source)) continue; + if (node.id === owner.id && (ownerIdentityField(field) || OWNER_IDENTITY.has(source))) { + if ( + !declaresField(node, field) || + node.data.params[field]!.display === 'output' || + !(canonicalIdentityField(field) + ? canonicalIdentitySource(field, source) + : ownerBindingSources.get(field) === source) + ) + throw new Error('The template binding cannot change the resolved model identity.'); + continue; + } + if (node.id !== owner.id) { + const canonical = canonicalIdentityField(field); + const owned = Object.prototype.hasOwnProperty.call( + operationAuthoring(node)?.operation.binding?.values ?? {}, + field, + ); + const exactBase = spec.bindings.some(([r, f, s]) => r === role && f === field && s === source); + const declaredDependency = + exactBase && + Object.prototype.hasOwnProperty.call(DEPENDENCY_IDENTITY_BINDINGS, field) && + DEPENDENCY_IDENTITY_BINDINGS[field]!.includes(source); + if ( + (canonical && !canonicalIdentitySource(field, source) && !declaredDependency) || + (owned && !canonical && !exactBase) + ) + throw new Error('The template binding cannot change a declared dependency identity.'); + } const value = values[source]; if (value === undefined) throw new Error(`The template setting ${source} has no declared value.`); if (backendDefaultInputs.has(source as 'prompt' | 'negativePrompt') && value === '') { @@ -177,37 +327,9 @@ export function createTemplateOperationGraph( } set(node, [field], value); } - // A real starter Guider owns the scale shared by encoding and denoising. - // Keep the declared scalar binding as a mirror of the creator form rather - // than leaving the now-hidden denoiser field as the effective control. - const guidance = graph.nodes.filter( - (node) => operationAuthoring(node)?.operation.operationId === 'diffusion.guidance', - ); - if (guidance.length > 1) throw new Error('The template has several guidance owners.'); - if (guidance[0]) set(guidance[0], ['guidance_scale'], form.guidanceScale); - if (selection.guidancePolicy) { - const guider = guidance[0]; - const policy = selection.guidancePolicy; - const flux = ['FluxModularPipeline', 'FluxKontextModularPipeline'].includes(selection.pipelineClass); - if (!guider || (!flux && selection.pipelineClass !== 'ZImageModularPipeline')) - throw new Error('The template guidance policy has no compatible declared owner.'); - set(guider, ['enabled'], policy.enabled); - set(guider, ['use_original_formulation'], policy.useOriginalFormulation); - if (flux) { - const scale = policy.distilledGuidanceScale; - const denoisers = graph.nodes.filter( - (node) => operationAuthoring(node)?.operation.operationId === 'diffusion.denoise', - ); - if (typeof scale !== 'number' || !Number.isFinite(scale) || scale < 0 || scale > 20 || denoisers.length !== 1) - throw new Error('The FLUX template needs its separate reviewed distilled guidance scale.'); - set(denoisers[0]!, ['guidance_scale'], scale); - } else if (policy.distilledGuidanceScale !== undefined) { - throw new Error('The template distilled guidance policy requires a FLUX pipeline.'); - } - } const connect = (source: CustomNodeType, sourceNames: string[], target: CustomNodeType, targetNames: string[]) => { - const sourceHandle = sourceNames.find((name) => source.data.params[name]); - const targetHandle = targetNames.find((name) => target.data.params[name]); + const sourceHandle = sourceNames.find((name) => declaresField(source, name)); + const targetHandle = targetNames.find((name) => declaresField(target, name)); const left = sourceHandle && source.data.params[sourceHandle]; const right = targetHandle && target.data.params[targetHandle]; if ( @@ -233,7 +355,7 @@ export function createTemplateOperationGraph( type: 'default', }); }; - for (const [source, output, target, input] of spec.edges) { + for (const [source, output, target, input] of declarations.edges) { const from = roles.get(source)!; const to = roles.get(target)!; const supplied = graph.edges.find((edge) => edge.target === to.id && edge.targetHandle === input); @@ -267,9 +389,28 @@ export function createTemplateOperationGraph( if (!settings) throw new Error('The template LoRA contract is missing.'); const adapters = [settings, ...(settings.additionalAdapters ?? [])]; const native = Boolean(owner.data.params.lora_list); + const audio = owner.data.params.pipeline?.type === 'audio_diffusion_pipeline'; + if (audio) { + const tail = graph.edges + .filter((edge) => edge.source === owner.id && edge.sourceHandle === 'pipeline') + .map((edge) => ({ target: edge.target, targetHandle: edge.targetHandle! })); + const policy = selectedAudioAdapterPolicy(owner, graph, tail, authority); + if (typeof policy === 'string') throw new Error(policy); + if (policy.requiredControls) { + if (!authority) throw new Error('Refresh audio model capabilities before adding LoRA.'); + const reason = requiredAdapterControlsUnavailable(graph, owner, authority, policy.requiredControls); + if (reason) throw new Error(reason); + } + if (adapters.length !== policy.maxOwnedAdapters) + throw new Error('The selected audio template supports exactly one populated adapter.'); + } const nodes = adapters.map((adapter, index) => { const node = utility( - native ? CONTROLLED_WORKFLOW_NODE_KEYS.lora : CONTROLLED_WORKFLOW_NODE_KEYS.directLora, + native + ? CONTROLLED_WORKFLOW_NODE_KEYS.lora + : audio + ? CONTROLLED_WORKFLOW_NODE_KEYS.audioLora + : CONTROLLED_WORKFLOW_NODE_KEYS.directLora, index, ); for (const { fields, value } of loraWorkflowFieldValues(adapter, index)) { @@ -279,26 +420,53 @@ export function createTemplateOperationGraph( set(node, fields, value); } if (adapterName !== undefined) set(node, ['adapter_name'], adapterName); + if (audio) { + const selected = node.data.params.adapter_path?.value; + // A user-supplied empty selection remains an editable, Run-blocked + // draft. Populated selections always use the normal strict validator. + const draft = + template.evidencePolicy === 'user_supplied' && + selected && + typeof selected === 'object' && + 'source' in selected && + 'value' in selected && + (selected.source === 'hub' || selected.source === 'local') && + selected.value === ''; + if (!draft) validateModelSetupAdapterSelection(node); + } return node; }); if (native) { - for (let index = 1; index < nodes.length; index++) - connect(nodes[index - 1]!, ['lora'], nodes[index]!, ['previous_loras']); - connect(nodes[nodes.length - 1]!, ['lora'], owner, ['lora_list']); + for (const link of orderedAdapterChainLinks({ + adapterIds: nodes.map((node) => node.id), + inputHandles: ['previous_loras'], + outputHandles: ['lora'], + target: { nodeId: owner.id, handles: ['lora_list'] }, + })) + connect( + graph.nodes.find((node) => node.id === link.source)!, + link.sourceHandles, + graph.nodes.find((node) => node.id === link.target)!, + link.targetHandles, + ); } else { const consumers = graph.edges.filter((edge) => edge.source === owner.id && edge.sourceHandle === 'pipeline'); if (consumers.length !== 1) throw new Error('The template LoRA pipeline consumer is ambiguous.'); const consumer = consumers[0]!; graph.edges = graph.edges.filter((edge) => edge.id !== consumer.id); - connect(owner, ['pipeline'], nodes[0]!, ['pipeline']); - for (let index = 1; index < nodes.length; index++) - connect(nodes[index - 1]!, ['output'], nodes[index]!, ['pipeline']); - connect( - nodes[nodes.length - 1]!, - ['output'], - graph.nodes.find((node) => node.id === consumer.target)!, - [consumer.targetHandle!], - ); + for (const link of orderedAdapterChainLinks({ + adapterIds: nodes.map((node) => node.id), + inputHandles: ['pipeline'], + outputHandles: ['output'], + source: { nodeId: owner.id, handles: ['pipeline'] }, + target: { nodeId: consumer.target, handles: [consumer.targetHandle!] }, + })) + connect( + graph.nodes.find((node) => node.id === link.source)!, + link.sourceHandles, + graph.nodes.find((node) => node.id === link.target)!, + link.targetHandles, + ); } } else if (block === 'upscaler') { const preview = roles.get('preview'); @@ -316,68 +484,7 @@ export function createTemplateOperationGraph( ['image', 'images'], ); connect(upscaler, ['images', 'output', 'image'], upscalePreview, ['image']); - } else throw new Error(`The image template does not declare support for ${block}.`); - } - // Only these fresh, reviewed recipes select the backend's owned compatibility - // adapter. Generic starters and existing saved graphs retain their own values. - if (qwenMaskedCompatibility) { - const padding = (form as StudioFormState & { paddingMaskCrop?: number | null }).paddingMaskCrop ?? null; - if (padding !== null && (!Number.isSafeInteger(padding) || padding < 0 || padding > 8192)) - throw new Error('The Qwen crop padding must be a bounded nonnegative integer or null.'); - const exact = (action: string) => { - const nodes = graph.nodes.filter( - (node) => node.data.module === 'modules.ModularDiffusers' && node.data.action === action, - ); - if (nodes.length !== 1) throw new Error(`The Qwen masked template requires exactly one ${action} stage.`); - return nodes[0]!; - }; - const encode = exact('ImageEncode'); - const prompt = exact('EncodePrompt'); - set(owner, ['inpaint_compatibility'], 'whole_v1'); - set(encode, ['inpaint_compatibility'], 'whole_v1'); - set(encode, ['padding_mask_crop'], padding); - set(exact('Denoise'), ['width'], form.width); - set(exact('Denoise'), ['height'], form.height); - if (template.id === 'qwen_outpaint_aspect_template' || template.id === 'qwen_outpaint_draft') { - const canvas = createNodeFromRegistry('modules.DiffusersImage.OutpaintCanvas', registry, { x: -560, y: 440 }); - if (!canvas) throw new Error('The public OutpaintCanvas operation is missing.'); - for (const [field, value] of Object.entries({ - width: form.width, - height: form.height, - left: form.outpaintLeft, - right: form.outpaintRight, - top: form.outpaintTop, - bottom: form.outpaintBottom, - overlap: form.outpaintOverlap, - feather: form.outpaintFeather, - fill_color: form.outpaintFillColor, - })) - set(canvas, [field], value); - const imageEdge = graph.edges.find((edge) => edge.target === encode.id && edge.targetHandle === 'image'); - const maskEdge = graph.edges.find((edge) => edge.target === encode.id && edge.targetHandle === 'mask_image'); - const promptEdge = graph.edges.find((edge) => edge.target === prompt.id && edge.targetHandle === 'image'); - if ( - !imageEdge || - !maskEdge || - !promptEdge || - promptEdge.source !== imageEdge.source || - promptEdge.sourceHandle !== imageEdge.sourceHandle - ) - throw new Error('The Qwen outpaint template has ambiguous source media.'); - const source = graph.nodes.find((node) => node.id === imageEdge.source)!; - const maskLoader = graph.nodes.find((node) => node.id === maskEdge.source); - if (!maskLoader || maskLoader.data.module !== 'modules.Image' || maskLoader.data.action !== 'Load') - throw new Error('The Qwen outpaint template has no standalone mask role to replace.'); - graph.edges = graph.edges.filter((edge) => ![imageEdge, maskEdge, promptEdge].includes(edge)); - if (graph.edges.some((edge) => edge.source === maskLoader.id || edge.target === maskLoader.id)) - throw new Error('The Qwen outpaint mask role has another consumer.'); - graph.nodes = graph.nodes.filter((node) => node.id !== maskLoader.id); - graph.nodes.push(canvas); - connect(source, [imageEdge.sourceHandle!], canvas, ['image']); - connect(canvas, ['canvas'], encode, ['image']); - connect(canvas, ['mask_image'], encode, ['mask_image']); - connect(canvas, ['canvas'], prompt, ['image']); - } + } else throw new Error(`The template does not declare support for ${block}.`); } - return groupNewOperationGraph(graph); + return groupNewOperationGraph(attachPromptEnhancementParents(graph, recipe)); } diff --git a/src/studio/templateWorkflow.ts b/src/studio/templateWorkflow.ts index 7cb86d00..b46d020e 100644 --- a/src/studio/templateWorkflow.ts +++ b/src/studio/templateWorkflow.ts @@ -1,3 +1,4 @@ +import { resolveTemplateModelSelection } from './templateModelSelection'; import { useSettingsStore } from '../stores/useSettingsStore'; import { useFlowStore } from '../stores/useFlowStore'; import { useNodesStore } from '../stores/useNodeStore'; @@ -20,8 +21,7 @@ import { selectedAutoCandidate, } from './autoResource'; import { getTemplateLockedSettings } from './templateExactness'; -import { DEFAULT_STUDIO_FORM } from './modelProfiles'; -import { getPreferredRuntimeDevice, runtimeDeviceIsAvailable } from './runReadiness'; +import { normalizeStudioRuntimeDevice } from './runReadiness'; import { exactStudioExecutionSpecForForm } from './executionSpecs'; import { materializeTemplateDefaultInputs } from './templateInputs'; import { waitForGraphNodeMeasurements } from '../workflow/graphLayout'; @@ -160,28 +160,23 @@ export async function waitForTemplateRuntimeDiscovery(context: WorkflowOperation /** Apply the existing device fallback while this transaction still owns the form. */ export function normalizeTemplateRuntimeDevice(context: WorkflowOperationContext) { - assertWorkflowOperationContext(context); - const runtime = useNodesStore.getState().runtimeStatus; - if (!runtime) return; - const form = useStudioStore.getState().form; - const device = getPreferredRuntimeDevice(runtime); - if (device === form.device || runtimeDeviceIsAvailable(runtime, form.device)) return; - if (form.device !== DEFAULT_STUDIO_FORM.device && !form.device.toLowerCase().startsWith('cuda')) return; - assertWorkflowOperationContext(context); - useStudioStore.getState().updateForm({ device }); - advanceWorkflowOperationContext(context); + normalizeStudioRuntimeDevice(context); } /** Shared by interactive creation and the template generation harness. */ -export async function createImageTemplateOperationWorkflow( +export async function createTemplateOperationWorkflow( template: StudioTemplate, form: StudioFormState, context: WorkflowOperationContext = captureWorkflowOperationContext(), ) { assertWorkflowOperationContext(context); const selection = template.executionSelection; - if (!selection || template.example?.mediaType !== 'image') - throw new Error('Select an image template operation recipe.'); + if ( + !selection || + !['image', 'audio'].includes(template.example?.mediaType ?? '') || + template.outputKinds?.includes('video') + ) + throw new Error('Select an image or audio template operation recipe.'); // Preserve the pre-loading graph so edits during lazy module loading remain // protected by the ordinary transaction's exact signature check. const previousGraph = structuredClone(useFlowStore.getState().toObject()); @@ -207,18 +202,26 @@ export async function createImageTemplateOperationWorkflow( ); if (!spec || !capability) throw new Error('The selected template execution specification is unavailable. Refresh model capabilities.'); + const selected = + template.example?.mediaType === 'audio' + ? resolveTemplateModelSelection(template, nodesStore.studioModelCapabilities) + : null; + if (template.example?.mediaType === 'audio' && !selected) + throw new Error('The selected audio template needs one reviewed immutable model revision. Refresh capabilities.'); const starter = await requestOperationStarter( selection.pipelineClass, selection.task, nodesStore.operationContracts, undefined, selection.executionProfileId, + selection.authoringRecipeId, + selected?.repository, ); assertWorkflowOperationContext(context); const registryKeys = [ - ...spec.roles.map(([, key]) => key), + ...(starter.authoring ?? spec).roles.map(([, key]) => key), ...(template.workflowBlocks?.includes('lora') - ? ['modules.ModularDiffusers.Lora', 'modules.DiffusersImage.LoadAdapter'] + ? ['modules.ModularDiffusers.Lora', 'modules.DiffusersImage.LoadAdapter', 'modules.DiffusersAudio.LoadAdapter'] : []), ...(template.workflowBlocks?.includes('upscaler') ? ['modules.Spandrel.Upscaler'] : []), ]; @@ -233,6 +236,7 @@ export async function createImageTemplateOperationWorkflow( useNodesStore.getState().nodesRegistry, spec, capability, + useNodesStore.getState(), ); assertWorkflowOperationContext(context); commitOperationGraph(graph, context, signature, `Create ${template.label}`); @@ -284,8 +288,8 @@ export async function createWorkflowFromTemplate(template: StudioTemplate): Prom after = useStudioStore.getState().form; await waitForTemplateCanvasPaint(); assertWorkflowOperationContext(context); - if (template.executionSelection && template.example?.mediaType === 'image') { - const result = await createImageTemplateOperationWorkflow(template, after, context); + if (template.executionSelection && ['image', 'audio'].includes(template.example?.mediaType ?? '')) { + const result = await createTemplateOperationWorkflow(template, after, context); warnings = result.warnings; graphCreated = true; } else { @@ -366,3 +370,5 @@ export async function createWorkflowFromTemplate(template: StudioTemplate): Prom return { graphCreated, graphError, warnings }; } + +export const createImageTemplateOperationWorkflow = createTemplateOperationWorkflow; diff --git a/src/studio/templates.ts b/src/studio/templates.ts index acd1ff9e..547c6095 100644 --- a/src/studio/templates.ts +++ b/src/studio/templates.ts @@ -10,7 +10,10 @@ import type { StudioTemplateReadinessPolicy, StudioTemplateWorkflowBlockSettings, } from './types'; -import { IMAGE_TEMPLATE_EXECUTION_SELECTIONS } from './templateOperationSelections'; +import { + IMAGE_TEMPLATE_EXECUTION_SELECTIONS, + AUDIO_TEMPLATE_EXECUTION_SELECTIONS, +} from './templateOperationSelections'; import { DEFAULT_STUDIO_FORM, MINIMAX_MUSIC3_REVISION, @@ -216,7 +219,7 @@ const ACE_STEP_CNY_LORA: NonNullable binding.origin !== 'template'), ...generatedInputBindings.filter( @@ -4045,7 +4049,6 @@ const NORMALIZED_STUDIO_TEMPLATES: StudioTemplate[] = [ 'modules.ModularDiffusers.WorkflowCosmos3OmniTextEncode', 'modules.ModularDiffusers.WorkflowCosmos3OmniDenoise', 'modules.ModularDiffusers.WorkflowCosmos3OmniDecode', - 'modules.ModularDiffusers.WorkflowCosmos3OmniAfterDecode', 'modules.Image.Preview', ], vramEstimate: '132 GB full BF16 weights plus execution and mandatory safety memory', @@ -4088,6 +4091,7 @@ const NORMALIZED_STUDIO_TEMPLATES: StudioTemplate[] = [ withTemplateRecipeDefaults( { id: 'minimax_music3_chamber_pop', + executionSelection: AUDIO_TEMPLATE_EXECUTION_SELECTIONS.minimax_music3_chamber_pop, label: 'MiniMax Music 3 (Modular Cluster) — Text to Audio: Leave a Little Light', mode: 'text_to_audio', modelType: 'MiniMaxMusic3ModularPipeline', diff --git a/src/studio/types.ts b/src/studio/types.ts index 625542b8..a84f0d4c 100644 --- a/src/studio/types.ts +++ b/src/studio/types.ts @@ -841,6 +841,8 @@ export type StudioFormState = { referenceImages: string[]; referenceVideos: string[]; maskImage: string; + /** Optional authored crop padding for an image task that declares the field. */ + paddingMaskCrop?: number | null; controlImage: string; controlMode: number; ipAdapterImage: string; @@ -885,6 +887,28 @@ export type StudioInpaintContractStatus = { missingInputs?: string[]; }; +/** Selected-profile graph authoring permission; not runtime or Auto qualification. */ +export type StudioImageAdapterAuthoringPolicy = { + schemaVersion: 1; + mediaKind: 'image'; + adapterNodeKey: 'modules.ModularDiffusers.Lora' | 'modules.DiffusersImage.LoadAdapter'; + tasks: string[]; + maxOwnedAdapters: number; + repositoryRevisions: Array<{ repo: string; revision: string }>; + /** Exact declared effective controls for Add/Move; Remove remains structural recovery. */ + requiredControls?: Record; +}; + +export type StudioAudioAdapterAuthoringPolicy = Omit< + StudioImageAdapterAuthoringPolicy, + 'mediaKind' | 'adapterNodeKey' | 'maxOwnedAdapters' +> & { + mediaKind: 'audio'; + adapterNodeKey: 'modules.DiffusersAudio.LoadAdapter'; + maxOwnedAdapters: 1; +}; +export type StudioAdapterAuthoringPolicy = StudioImageAdapterAuthoringPolicy | StudioAudioAdapterAuthoringPolicy; + export type StudioExecutionProfile = { id: string; model_type: StudioModelType; @@ -897,6 +921,9 @@ export type StudioExecutionProfile = { default_repo: string; fallback_repo?: string | null; compatible_repos?: string[]; + /** Current backend-reviewed immutable artifact pairs for selected adapter authoring. */ + repository_revisions?: Array<{ repo: string; revision: string }>; + adapterAuthoring?: StudioAdapterAuthoringPolicy; quantizable_components: string[]; default_quantized_components: string[]; supported_offload_modes: StudioOffloadMode[]; @@ -1577,24 +1604,14 @@ export type StudioTemplateExecutionSelection = { executionProfileId: string; /** Existing backend recipe supplies semantic field/utility bindings only. */ bindingSpec: { modelType: StudioModelType; mode: StudioMode }; - implementation: 'native_stages' | 'whole_pipeline'; + implementation: 'native_stages' | 'pipeline_stages' | 'whole_pipeline'; /** Fresh authoring only: an empty initial text input retains its resolved * backend default. Authored text and subsequent edits always take priority. */ backendDefaultInputs?: Array<'prompt' | 'negativePrompt'>; /** Explicit initial recipe policy; Auto and Gallery qualification stay separate. */ memoryPolicy?: 'custom_experimental'; - /** Explicit old whole-pipeline component policies for converted recipes. */ - componentPolicy?: { - attentionBackend: 'auto' | '_native_math'; - vaeSlicing: boolean; - vaeTiling: boolean; - }; - guidancePolicy?: { - enabled: boolean; - useOriginalFormulation: boolean; - /** FLUX true CFG and transformer embedded guidance are distinct controls. */ - distilledGuidanceScale?: number; - }; + /** Exact backend declaration for fresh graph bindings and initial controls. */ + authoringRecipeId?: string; /** Original whole-pipeline default identity for a single native descriptor. */ loraPolicy?: { defaultAdapterName: string }; note?: string; diff --git a/src/studio/useStudioRunActions.ts b/src/studio/useStudioRunActions.ts index b84389ab..08d2394c 100644 --- a/src/studio/useStudioRunActions.ts +++ b/src/studio/useStudioRunActions.ts @@ -18,7 +18,7 @@ import { getStudioGraphShapeKey, syncStudioGraphValues, } from './graphBridge'; -import { validateCurrentRun } from './runReadiness'; +import { normalizeStudioRuntimeDevice, validateCurrentRun } from './runReadiness'; import { autoPlanIsReady, autoPlanKeyForForm, @@ -26,6 +26,7 @@ import { formPatchForAutoCandidate, selectedAutoCandidate, } from './autoResource'; +import { prepareExecutionScope, executionScopeRootIds } from '../workflow/prepareExecutionScope'; import { coordinateGraphRun } from './runCoordinator'; import { prepareHuggingFaceClustersForRun } from './huggingFaceClusterPreparation'; import { materializeTemplateDefaultInputs } from './templateInputs'; @@ -205,6 +206,7 @@ export function useStudioRunActions({ const context = captureWorkflowOperationContext(); setIsWorking(true); try { + normalizeStudioRuntimeDevice(context); await createOrUpdateStudioGraph(useStudioStore.getState().form, context); } catch (error) { if (isWorkflowOperationCancelled(error)) return; @@ -259,12 +261,14 @@ export function useStudioRunActions({ const context = captureWorkflowOperationContext(); setIsWorking(true); try { - const autoReady = await ensureAutoPlanReady(context); + const pending = prepareExecutionScope({ workflowContext: context }); + const executionScope = pending ? await pending : undefined; + const autoReady = executionScope ? true : await ensureAutoPlanReady(context); if (!autoReady) return; - await ensureStudioGraphReadyForRun(useStudioStore.getState().form, context); + if (!executionScope) await ensureStudioGraphReadyForRun(useStudioStore.getState().form, context); assertWorkflowOperationContext(context); - await prepareHuggingFaceClustersForRun(); - const validation = validateCurrentRun({ sid, isConnected, includeStudio: true }); + await prepareHuggingFaceClustersForRun(executionScopeRootIds(executionScope)); + const validation = validateCurrentRun({ sid, isConnected, includeStudio: !executionScope, executionScope }); if (!validation.canRun) { const message = validation.blocking[0]?.message || 'This Studio workflow is not ready to run.'; useStudioStore.getState().setLastError(message); @@ -272,7 +276,12 @@ export function useStudioRunActions({ } useStudioStore.getState().addPromptHistory(useStudioStore.getState().form.prompt); - await coordinateGraphRun({ sid, studioContext: {}, workflowContext: context }); + await coordinateGraphRun({ + sid, + studioContext: executionScope ? undefined : {}, + workflowContext: context, + executionScope, + }); } catch (error) { if (isWorkflowOperationCancelled(error)) return; const message = String(error); diff --git a/src/studio/workflowAutoExecutionV2.ts b/src/studio/workflowAutoExecutionV2.ts index d5b71a7e..b8f4df5f 100644 --- a/src/studio/workflowAutoExecutionV2.ts +++ b/src/studio/workflowAutoExecutionV2.ts @@ -1,9 +1,18 @@ +import { + prepareExecutionScope, + assertCurrentExecutionScope, + recordExecutionScopeExport, + type PreparedExecutionScope, +} from '../workflow/prepareExecutionScope'; +import { expandFlowExecutionGraph, flowExecutionScopeSourceKey } from '../stores/useFlowStore'; +import { buildApiGraphExport } from '../stores/flowGraphExport'; import type { Edge } from '@xyflow/react'; import config from '../../app.config'; import { useFlowStore, type APIGraphExport, type CustomNodeType } from '../stores/useFlowStore'; import { useStudioStore } from '../stores/useStudioStore'; import { useRunIssueStore } from '../stores/useRunIssueStore'; import { formatRequestError, requestJson } from '../utils/requestJson'; +import { isWorkflowResourceValue, type WorkflowResourcePatch, type WorkflowResourceUpdate } from '../types/api'; import { canonicalBlockStringifyV2, type BlockInstanceV2 } from './blockSchemaV2'; import { blockProjectionNodeIdV2, @@ -19,7 +28,7 @@ export type WorkflowAutoPlanV2 = { canAutoRun: boolean; issues: string[]; message: string; - patches: { nodeId: string; field: 'offload_mode' | 'auto_offload'; value: string | boolean }[]; + patches: WorkflowResourcePatch[]; loaders: { nodeId: string; modelType: string; repository: string; consumers: string[]; candidateId: string }[]; requirements: Record; available: Record; @@ -45,11 +54,7 @@ export function parseWorkflowAutoPlanV2(value: unknown): WorkflowAutoPlanV2 { ) || !Array.isArray(value.patches) || !value.patches.every( - (patch) => - record(patch) && - typeof patch.nodeId === 'string' && - ((patch.field === 'auto_offload' && typeof patch.value === 'boolean') || - (patch.field === 'offload_mode' && typeof patch.value === 'string')), + (patch) => record(patch) && typeof patch.nodeId === 'string' && isWorkflowResourceValue(patch.field, patch.value), ) || !Array.isArray(value.loaders) || !value.loaders.every( @@ -82,7 +87,14 @@ export async function fetchWorkflowAutoPlanV2(graph: APIGraphExport, signal?: Ab headers: { 'Content-Type': 'application/json' }, body: JSON.stringify({ schemaVersion: 1, - graph: { nodes: graph.nodes, paths: graph.paths, ...(graph.loops ? { loops: graph.loops } : {}) }, + graph: { + nodes: graph.nodes, + paths: graph.paths, + ...(graph.loops ? { loops: graph.loops } : {}), + ...(graph.runtimeHints?.executionPurpose + ? { runtimeHints: { executionPurpose: graph.runtimeHints.executionPurpose } } + : {}), + }, }), timeoutMs: 120_000, signal, @@ -91,12 +103,15 @@ export async function fetchWorkflowAutoPlanV2(graph: APIGraphExport, signal?: Ab } export async function inspectWorkflowAutoPlanV2(targetNodeId?: string, signal?: AbortSignal) { + const pending = prepareExecutionScope({ targetNodeId, signal }); + const executionScope = pending ? await pending : undefined; const flow = useFlowStore.getState(); const { prepareLegacyGraphForAutoV2 } = await import('./legacyBlockMovementV2'); const prepared = prepareLegacyGraphForAutoV2(flow.nodes, flow.edges, targetNodeId); const graph = flow.exportGraph('', targetNodeId ? (prepared.remapped.get(targetNodeId) ?? targetNodeId) : undefined, { randomizeSeeds: false, sourceGraph: prepared, + executionScope, }); if ( !prepared.nodes.some((node) => @@ -146,6 +161,7 @@ function resourceValueOwners(instance: BlockInstanceV2) { export async function prepareWorkflowAutoExecutionV2( graph: APIGraphExport, preparedLegacy?: { nodes: CustomNodeType[]; edges: Edge[] }, + executionScope?: PreparedExecutionScope, ) { const workflowId = useStudioStore.getState().activeWorkflowTabId; const beforeKey = semanticFlowKey(); @@ -176,6 +192,7 @@ export async function prepareWorkflowAutoExecutionV2( ]); throw error; } + assertCurrentExecutionScope(executionScope); const result = applyWorkflowAutoSettingsV2(graph, plan.patches, preparedLegacy); const groups = useFlowStore.getState().nodes.flatMap((node) => { const instance = node.data.blockInstanceV2; @@ -183,7 +200,12 @@ export async function prepareWorkflowAutoExecutionV2( ? resourceValueOwners(instance).flatMap(({ bindings }) => { if ( bindings.length < 2 || - !bindings.every((binding) => binding.fieldId === 'offload_mode' || binding.fieldId === 'auto_offload') + !bindings.every( + (binding) => + binding.fieldId === 'offload_mode' || + binding.fieldId === 'auto_offload' || + binding.fieldId === 'weight_loading_mode', + ) ) return []; return [ @@ -195,9 +217,10 @@ export async function prepareWorkflowAutoExecutionV2( }) : []; }); - return { + const prepared = { ...result, runtimeHints: { + ...(graph.runtimeHints?.executionPurpose ? { executionPurpose: graph.runtimeHints.executionPurpose } : {}), workflowAutoPlan: { schemaVersion: 1, graphHash: plan.plannedGraphHash, @@ -206,6 +229,13 @@ export async function prepareWorkflowAutoExecutionV2( resourceMode: 'auto', }, }; + if (executionScope) + recordExecutionScopeExport( + executionScope, + flowExecutionScopeSourceKey(useFlowStore.getState().nodes, useFlowStore.getState().edges), + prepared, + ); + return prepared; } export function applyWorkflowAutoSettingsV2( @@ -286,11 +316,16 @@ export function applyWorkflowAutoSettingsV2( return result; } -export function applyRuntimeWorkflowAutoSettingsV2( - updates: (WorkflowAutoPlanV2['patches'][number] & { previousValue?: string | boolean | null })[], -) { +export function applyRuntimeWorkflowAutoSettingsV2(updates: WorkflowResourceUpdate[]) { const flow = useFlowStore.getState(); - const graph = flow.exportGraph('', undefined, { randomizeSeeds: false }); + // Compare the current literal values without requesting fresh execution authority + // for an already-owned run's resource update. This snapshot is never submitted. + const graph = buildApiGraphExport({ + ...expandFlowExecutionGraph(flow.nodes, flow.edges), + sid: '', + setParam: flow.setParam, + randomizeSeeds: false, + }); for (const update of updates) { const param = graph.nodes[update.nodeId]?.params[update.field]; if (!param || param.sourceId || (param.value ?? null) !== (update.previousValue ?? null)) diff --git a/src/types/api.ts b/src/types/api.ts index b1f678bb..0b86c183 100644 --- a/src/types/api.ts +++ b/src/types/api.ts @@ -1,3 +1,4 @@ +import type { AncillaryExecutionPurpose } from '../studio/ancillaryOperations'; import type { HfDownloadProgress } from '../stores/useNodeStore'; import type { ImageArtifact } from '../utils/imageArtifacts'; import type { StudioMode, StudioPreviewSlot } from '../studio/types'; @@ -40,6 +41,7 @@ export type ApiGraphLoopExport = { }; export type ApiGraphRuntimeHints = { + executionPurpose?: AncillaryExecutionPurpose; /** * Correlation and workflow fields are attached to every graph submission. * Studio-managed runs additionally provide the resource/model fields below. @@ -318,6 +320,30 @@ export type ResourceRetryWebsocketMessage = BaseWebsocketMessage<'resource_retry errors?: unknown; }; +export type WeightLoadingMode = 'cpu' | 'cuda'; + +type WorkflowResourceValues = { + offload_mode: string; + auto_offload: boolean; + weight_loading_mode: WeightLoadingMode; +}; + +export type WorkflowResourceUpdate = { + [Field in keyof WorkflowResourceValues]: { + nodeId: string; + field: Field; + value: WorkflowResourceValues[Field]; + previousValue?: WorkflowResourceValues[Field] | null; + }; +}[keyof WorkflowResourceValues]; + +export type WorkflowResourcePatch = { + [Field in WorkflowResourceUpdate['field']]: Pick< + Extract, + 'nodeId' | 'field' | 'value' + >; +}[WorkflowResourceUpdate['field']]; + export type AutoResourceWebsocketMessage = BaseWebsocketMessage< 'auto_resource_plan_applied' | 'auto_resource_cleanup' | 'runtime_resource_cleanup' | 'auto_retry_requires_approval' > & { @@ -333,12 +359,7 @@ export type AutoResourceWebsocketMessage = BaseWebsocketMessage< candidateId?: string; message?: string; updatedNodes?: string[]; - resourceUpdates?: { - nodeId: string; - field: 'offload_mode' | 'auto_offload'; - value: string | boolean; - previousValue?: string | boolean | null; - }[]; + resourceUpdates?: WorkflowResourceUpdate[]; retryPlans?: JsonObject[]; performed?: boolean; reasons?: string[]; @@ -431,6 +452,14 @@ function isRecord(value: unknown): value is Record { return Boolean(value && typeof value === 'object' && !Array.isArray(value)); } +export function isWorkflowResourceValue(field: unknown, value: unknown): boolean { + return ( + (field === 'offload_mode' && typeof value === 'string') || + (field === 'auto_offload' && typeof value === 'boolean') || + (field === 'weight_loading_mode' && (value === 'cpu' || value === 'cuda')) + ); +} + function isBoundedRecord(value: unknown, valueIsValid: (item: unknown) => boolean = () => true) { if (!isRecord(value)) return false; const entries = Object.entries(value); @@ -691,11 +720,8 @@ export function isWebsocketMessage(value: unknown): value is WebsocketMessage { (item) => isRecord(item) && typeof item.nodeId === 'string' && - ((item.field === 'offload_mode' && typeof item.value === 'string') || - (item.field === 'auto_offload' && typeof item.value === 'boolean')) && - (item.previousValue == null || - typeof item.previousValue === 'string' || - typeof item.previousValue === 'boolean'), + isWorkflowResourceValue(item.field, item.value) && + (item.previousValue == null || isWorkflowResourceValue(item.field, item.previousValue)), ), ) ); diff --git a/src/ui/LayoutConditioningFixture.tsx b/src/ui/LayoutConditioningFixture.tsx new file mode 100644 index 00000000..a89d2638 --- /dev/null +++ b/src/ui/LayoutConditioningFixture.tsx @@ -0,0 +1,223 @@ +import { ReactFlowProvider } from '@xyflow/react'; +import NodeContent from '../components/NodeContent'; +import { useFlowStore, type CustomNodeType } from '../stores/useFlowStore'; +import { useStudioStore } from '../stores/useStudioStore'; +import { graphNodeControlParams, updateGraphNodeControl } from '../studio/graphNodeControls'; +import { createBlockInstanceV2, migrateUserBlockDefinitionV1 } from '../studio/blockSchemaV2'; +import { createBlockRootNodeV2 } from '../studio/blockRuntimeV2'; +import { ModiffButton } from './primitives'; + +const query = new URLSearchParams(window.location.search); +const grouped = query.has('block'); +const defaulted = query.has('structured-default'); +const version = query.has('v2') ? 2 : 1; +const boundReferences = query.has('bound-references'); +const fixtureId = grouped ? 'layout-block' : 'layout-ordinary'; +const initialLayout = { + schemaVersion: version, + coordinateSpace: 'normalized_xyxy', + regions: [ + { + id: 'subject', + description: 'Original region', + targetBox: [0.1, 0.2, 0.7, 0.9], + ...(version === 2 ? { action: 'place' } : {}), + }, + ], +}; +const node: CustomNodeType = { + id: grouped ? 'layout-encode-leaf' : fixtureId, + type: 'custom', + position: { x: 0, y: 0 }, + data: { + type: 'custom', + module: 'ControlFixture', + action: 'EncodeInputs', + label: 'Encode Inputs', + category: 'Control fixture', + params: { + prompt: { + label: 'Prompt', + type: 'string', + display: 'textarea', + value: 'Keep the raw prompt exactly.\n', + }, + layout_conditioning: { + label: 'Layout', + type: 'layout_conditioning', + display: 'layout', + ...(defaulted ? { default: initialLayout } : { value: null, default: null }), + disabled: query.has('disabled'), + fieldOptions: { + layoutConditioning: { + schemaVersion: version, + sourceRegions: false, + ...(boundReferences ? { supportsBoundSourceRegions: true } : {}), + }, + }, + }, + }, + }, +}; +const referenceNode: CustomNodeType = { + id: 'layout-reference-source', + type: 'custom', + position: { x: -400, y: 0 }, + data: { + type: 'custom', + module: 'ControlFixture', + action: 'EncodeReference', + label: 'Reference source', + category: 'Control fixture', + params: { + file: { type: 'string', display: 'text', label: 'Reference file', value: 'reference-a.png' }, + reference_binding: { type: 'reference_conditioning', display: 'output' }, + layout_reference_summary: { type: 'string', display: 'output', hidden: true }, + }, + }, +}; +if (boundReferences) node.data.params.reference_binding = { type: 'reference_conditioning', display: 'input' }; +const fixtureNodes = boundReferences ? [referenceNode, node] : [node]; +const fixtureEdges = boundReferences + ? [ + { + id: 'bound-reference', + source: referenceNode.id, + sourceHandle: 'reference_binding', + target: node.id, + targetHandle: 'reference_binding', + }, + ] + : []; +if (query.has('source-region')) + node.data.params.layout_conditioning!.value = { + ...initialLayout, + regions: [{ ...initialLayout.regions[0]!, source: { referenceIndex: 0, box: [0, 0, 1, 1] } }], + }; + +// Development-only fixture using the same field and ordinary/Block control paths. +if (query.has('layout-conditioning') && !useFlowStore.getState().nodes.some(({ id }) => id === fixtureId)) { + const definition = migrateUserBlockDefinitionV1({ + id: 'layout-controls', + name: 'Encode Inputs', + version: 1, + nodes: fixtureNodes, + edges: fixtureEdges, + inputs: [], + outputs: [], + exposedParams: [ + ...Object.keys(node.data.params) + .filter((key) => key !== 'reference_binding') + .map((key) => ({ + id: key, + kind: 'graph-param' as const, + label: key, + nodeId: node.id, + paramKey: key, + })), + ...(boundReferences + ? [ + { + id: 'reference_file', + kind: 'graph-param' as const, + label: 'Reference file', + nodeId: referenceNode.id, + paramKey: 'file', + }, + ] + : []), + ], + createdAt: 1, + updatedAt: 1, + }); + const root = grouped + ? createBlockRootNodeV2( + createBlockInstanceV2(definition, { + instanceId: fixtureId, + position: { x: 0, y: 0 }, + size: { width: 368, height: 480 }, + }), + ) + : node; + useFlowStore.setState({ + nodes: grouped ? [root] : fixtureNodes, + edges: grouped ? [] : fixtureEdges, + historyPast: [], + historyFuture: [], + historyTransaction: null, + }); +} +if (query.has('layout-conditioning')) useStudioStore.setState({ activeWorkflowTabId: 'layout-widget-fixture' }); + +export function LayoutConditioningFixture() { + const nodes = useFlowStore((state) => state.nodes); + const owner = nodes.find(({ id }) => id === fixtureId)!; + const params = graphNodeControlParams(owner); + const currentLayout = params.layout_conditioning?.value ?? params.layout_conditioning?.default ?? null; + const setLayout = (value: unknown) => + updateGraphNodeControl('layout-widget-fixture', fixtureId, 'layout_conditioning', value); + return ( + +
+

{grouped ? 'Block' : 'Ordinary'} layout controls

+ updateGraphNodeControl('layout-widget-fixture', fixtureId, key, value)} + /> +
+ { + if (grouped) + useFlowStore + .getState() + .setBlockPresentationV2(fixtureId, { expanded: !owner.data.blockInstanceV2!.presentation.expanded }); + else useFlowStore.getState().setParam(fixtureId, 'layout_conditioning', structuredClone(currentLayout)); + }} + > + Refresh equivalent controls + + + setLayout({ + ...initialLayout, + regions: [{ ...initialLayout.regions[0]!, description: 'Concurrent edit' }], + }) + } + > + Apply concurrent layout + + useFlowStore.getState().undo()}>Undo + useFlowStore.getState().redo()}>Redo + {boundReferences ? ( + { + if (grouped) + useFlowStore.getState().setBlockInstanceValueV2(fixtureId, 'reference_file', 'reference-b.png'); + else useFlowStore.getState().setParamWithHistory(referenceNode.id, 'file', 'reference-b.png'); + }} + > + Replace reference media + + ) : null} +
+ + {grouped ? String(owner.data.blockInstanceV2?.presentation.expanded) : 'ordinary'} + +
+          {JSON.stringify(useFlowStore.getState().exportGraph('layout-test', undefined, { randomizeSeeds: false }))}
+        
+ {boundReferences ? ( +
+            {JSON.stringify(useFlowStore.getState().toObject())}
+          
+ ) : null} +
+
+ ); +} diff --git a/src/ui/WorkflowModelInventoryFixture.tsx b/src/ui/WorkflowModelInventoryFixture.tsx new file mode 100644 index 00000000..d32aec4f --- /dev/null +++ b/src/ui/WorkflowModelInventoryFixture.tsx @@ -0,0 +1,102 @@ +import { useState } from 'react'; +import selections from '../../tests/fixtures/weight-format-selections.v1.json'; +import WorkflowModelInventoryRow from '../components/WorkflowModelInventoryRow'; +import type { StudioAutoResourceInstallTarget } from '../studio/autoResource'; +import { parseWorkflowModelDescriptors } from '../workflow/workflowChoices'; + +// Generic future public metadata exercises discovery/install presentation only. +// The captured pure file inventories do not publish the original private model. +const source = selections.rows[0]!; +const profiles = [ + { + id: 'future-native', + model_type: 'FutureNativePipeline', + pipeline_class: 'FutureNativePipeline', + default_repo: source.repo, + public: true, + }, +]; +const capability = { + modelType: 'FutureNativePipeline', + label: 'Future declared model', + defaultRepo: source.repo, + executionStatus: 'expert_only', + qualificationStatus: 'contract-only', + revisionCandidates: [source.revision], + downloadFiles: ['model_index.json', 'transformer/model.safetensors'], + weightFormatSelections: source.weightFormatSelections, + executionProfiles: profiles, +}; +const descriptors = parseWorkflowModelDescriptors( + { + schemaVersion: 2, + capabilities: [ + capability, + { + ...capability, + modelType: 'PrivateCandidate', + executionProfiles: [{ ...profiles[0]!, id: 'private', model_type: 'PrivateCandidate', public: false }], + }, + ], + }, + [ + { + pipelineClass: 'FutureNativePipeline', + coverage: 'contract-only', + reason: 'Presentation fixture only', + equivalentTo: [], + upstreamTasks: [], + tasks: [ + { + task: 'text_to_image', + execution: 'declared', + decomposition: 'stages', + dependencies: 'unknown', + runtimeRequirements: [], + operationIds: ['load'], + executionProfileIds: ['future-native', 'private'], + }, + ], + }, + ], +); + +export function WorkflowModelInventoryFixture() { + const [target, setTarget] = useState(null); + return ( +
+ {descriptors.map((descriptor) => ( + { + throw new Error('This fixture requires no token.'); + }} + onInstall={async (value) => { + setTarget(value); + }} + /> + ))} +
+        {JSON.stringify(target)}
+      
+
+        {JSON.stringify(source.weightFormatSelections)}
+      
+
+ ); +} diff --git a/src/ui/control-state-matrix-entry.tsx b/src/ui/control-state-matrix-entry.tsx index a90dbb4c..2d7a2581 100644 --- a/src/ui/control-state-matrix-entry.tsx +++ b/src/ui/control-state-matrix-entry.tsx @@ -11,13 +11,27 @@ import '../theme/modiff.css'; import { ControlStateMatrix } from './ControlStateMatrix'; import { ModiffSnackbarProvider } from './ModiffSnackbarProvider'; import { NodeFieldLayoutFixture } from './NodeFieldLayoutFixture'; +import { LayoutConditioningFixture } from './LayoutConditioningFixture'; +import { WorkflowModelInventoryFixture } from './WorkflowModelInventoryFixture'; import { useStudioStore } from '../stores/useStudioStore'; const fieldLayout = new URLSearchParams(window.location.search).has('node-field-layout'); +const layoutConditioning = new URLSearchParams(window.location.search).has('layout-conditioning'); +const modelInventory = new URLSearchParams(window.location.search).has('model-inventory'); if (fieldLayout) useStudioStore.setState({ form: { ...useStudioStore.getState().form, resourceMode: 'auto' } }); createRoot(document.getElementById('root')!).render( - {fieldLayout ? : } + + {modelInventory ? ( + + ) : layoutConditioning ? ( + + ) : fieldLayout ? ( + + ) : ( + + )} + , ); diff --git a/src/utils/e2eHooks.ts b/src/utils/e2eHooks.ts index c7c38a34..eec6b3fd 100644 --- a/src/utils/e2eHooks.ts +++ b/src/utils/e2eHooks.ts @@ -25,13 +25,14 @@ import { } from '../studio/controlledWorkflows'; import { handleWebsocketMessage } from '../stores/websocketMessageHandler'; import { inspectCurrentGraph, validateCurrentRun } from '../studio/runReadiness'; +import { prepareExecutionScope } from '../workflow/prepareExecutionScope'; import { coordinateGraphRun } from '../studio/runCoordinator'; import { applyHuggingFaceClusterRuntimeHints } from '../studio/huggingFaceClusterRuntime'; import { PLANNING_STUDIO_TEMPLATES, STUDIO_TEMPLATES } from '../studio/templates'; import { getFormDefaultsForMode } from '../studio/modelProfiles'; import type { StudioTaskTemplateSkeleton } from '../studio/taskTemplateContracts'; import { materializeTemplateDefaultInputs } from '../studio/templateInputs'; -import { createImageTemplateOperationWorkflow, normalizeTemplateRuntimeDevice } from '../studio/templateWorkflow'; +import { createTemplateOperationWorkflow, normalizeTemplateRuntimeDevice } from '../studio/templateWorkflow'; import { ensureStudioAutoPlanReadyForRun } from '../studio/useStudioRunActions'; import type { UserBlockDefinition } from '../studio/types'; import { createUserBlockNode, normalizeUserBlockDefinition } from '../studio/userBlocks'; @@ -108,8 +109,8 @@ type ModiffE2EHooks = { inspectRunReadiness: () => unknown; inspectStudioGraphBindingDivergence: () => unknown; exportWorkflowGraph: () => unknown; - exportAuthorizedApiGraph: () => unknown; - prepareWorkflowGraphForExport: () => Promise; + exportAuthorizedApiGraph: () => Promise; + prepareWorkflowGraphForExport: (options?: { canonicalLibrary?: true }) => Promise; arrangeWorkflowGraphSnapshot: (graph: { nodes?: CustomNodeType[]; edges?: import('@xyflow/react').Edge[]; @@ -254,8 +255,9 @@ async function applyTemplate( }); try { const context = captureWorkflowOperationContext(); - if (template.executionSelection && template.example?.mediaType === 'image') { - await createImageTemplateOperationWorkflow(template, useStudioStore.getState().form, context); + if (template.executionSelection && ['image', 'audio'].includes(template.example?.mediaType ?? '')) { + normalizeTemplateRuntimeDevice(context); + await createTemplateOperationWorkflow(template, useStudioStore.getState().form, context); await waitForGraphNodeMeasurements(() => useFlowStore.getState().nodes, 500); await useFlowStore.getState().arrangeGraph({ history: false }); useStudioStore.getState().saveActiveWorkflowTab(true); @@ -357,10 +359,16 @@ async function applyControlledWorkflowBlockForTest( } else await addSoundtrackWorkflowBlock(form, template.workflowBlockSettings?.soundtrack); } -async function prepareWorkflowGraphForExport() { +async function prepareWorkflowGraphForExport(options?: { canonicalLibrary?: true }) { await waitForGraphNodeMeasurements(() => useFlowStore.getState().nodes, 500); await useFlowStore.getState().arrangeGraph({ history: false }); - return cloneJson(useFlowStore.getState().toObject()); + const snapshot = cloneJson(useFlowStore.getState().toObject()); + if (!options?.canonicalLibrary) return snapshot; + // Publication stores the ordinary executable leaves. Only the app's known + // visual wrappers are projected, with strict Block validation and current + // public values; user/custom Blocks and the saved grouped canvas stay intact. + const { unpackVisualOperationGroups } = await import('../workflow/visualOperationGroupProjection'); + return { ...snapshot, ...unpackVisualOperationGroups(snapshot).graph }; } function arrangeWorkflowGraphSnapshot(graph: { nodes?: CustomNodeType[]; edges?: import('@xyflow/react').Edge[] }) { @@ -387,6 +395,9 @@ async function runActiveTemplate(): Promise { throw new Error('MoDiff websocket is not connected.'); } + const scopePending = prepareExecutionScope(); + if (scopePending) return runOperationTemplateGraph(undefined, await scopePending); + // A managed graph is created in two phases: its skeleton is synchronous, while // dynamic fields and edges finish asynchronously. Waiting here matters even // after applyTemplate(), because this call can schedule a fresh graph update. @@ -496,6 +507,9 @@ async function runPreparedTemplateGraph(graph: APIGraphExport): Promise { +async function runOperationTemplateGraph( + preparedGraph?: APIGraphExport, + preparedScope?: import('../workflow/prepareExecutionScope').PreparedExecutionScope, +): Promise { const websocket = useWebsocketStore.getState(); const sid = websocket.sid; if (!sid || !websocket.isConnected) throw new Error('MoDiff websocket is not connected.'); + const pending = preparedScope ? undefined : prepareExecutionScope(); + const executionScope = preparedScope ?? (pending ? await pending : undefined); const validation = validateCurrentRun({ sid, isConnected: websocket.isConnected, includeStudio: false, showDialog: false, + executionScope, }); if (!validation.canRun) { const issue = validation.blocking[0] ?? validation.issues[0]; @@ -541,7 +561,11 @@ async function runOperationTemplateGraph(preparedGraph?: APIGraphExport): Promis issue?.details ? `${issue.message} ${issue.details}` : (issue?.message ?? 'The template graph is not ready.'), ); } - const { context, response } = await coordinateGraphRun({ sid, ...(preparedGraph ? { preparedGraph } : {}) }); + const { context, response } = await coordinateGraphRun({ + sid, + executionScope, + ...(preparedGraph ? { preparedGraph } : {}), + }); if (!context) throw new Error('Template run context was not captured.'); return { templateId: pendingGalleryTemplateId, @@ -1163,10 +1187,13 @@ export function installE2EHooks() { ), inspectStudioGraphBindingDivergence: () => cloneJson(inspectStudioGraphBindingDivergence()), exportWorkflowGraph: () => cloneJson(useFlowStore.getState().toObject()), - exportAuthorizedApiGraph: () => { + exportAuthorizedApiGraph: async () => { const sid = useWebsocketStore.getState().sid; if (!sid) throw new Error('Backend session is unavailable.'); - return cloneJson(applyHuggingFaceClusterRuntimeHints(useFlowStore.getState().exportGraph(sid))); + const pending = prepareExecutionScope(); + const executionScope = pending ? await pending : undefined; + const graph = useFlowStore.getState().exportGraph(sid, undefined, { executionScope, randomizeSeeds: false }); + return cloneJson(executionScope ? graph : applyHuggingFaceClusterRuntimeHints(graph)); }, prepareWorkflowGraphForExport, arrangeWorkflowGraphSnapshot, diff --git a/src/utils/requestJson.ts b/src/utils/requestJson.ts index da0b3384..b9d5011b 100644 --- a/src/utils/requestJson.ts +++ b/src/utils/requestJson.ts @@ -46,7 +46,8 @@ export function formatRequestError(error: unknown, fallback: string) { return fallback; } -async function requestWithResponse( +/** Keep response readers inside the shared abort/timeout transport lifecycle. */ +export async function requestWithResponse( url: string, options: RequestOptions, read: (response: Response) => Promise, diff --git a/src/utils/runGraph.ts b/src/utils/runGraph.ts index c87599dd..0551dac8 100644 --- a/src/utils/runGraph.ts +++ b/src/utils/runGraph.ts @@ -1,5 +1,12 @@ // Derived from cubiq/Mellon-client and modified by the MoDiff project. +import { + assertCurrentExecutionScope, + assertExecutionScopeSubmission, + hasAncillaryExecutionClaim, + prepareExecutionScope, + type PreparedExecutionScope, +} from '../workflow/prepareExecutionScope'; import { enqueueSnackbar } from '../ui/snackbar'; import config from '../../app.config'; import { useFlowStore, type APIGraphExport } from '../stores/useFlowStore'; @@ -35,8 +42,22 @@ export const runGraph = async ( sid: string, targetNodeId?: string, preparedGraph?: APIGraphExport, + executionScope?: PreparedExecutionScope, ): Promise => { - const graph = preparedGraph ?? useFlowStore.getState().exportGraph(sid, targetNodeId); + const flow = useFlowStore.getState(); + if (!executionScope && !preparedGraph) { + const pending = prepareExecutionScope({ targetNodeId }); + if (pending) executionScope = await pending; + } + if ( + (hasAncillaryExecutionClaim(flow.nodes) || + Object.prototype.hasOwnProperty.call(preparedGraph?.runtimeHints ?? {}, 'executionPurpose')) && + !executionScope + ) + throw new Error('Resolve a current execution scope before submitting a claimed graph.'); + assertCurrentExecutionScope(executionScope); + const graph = preparedGraph ?? flow.exportGraph(sid, targetNodeId, { executionScope }); + if (executionScope) assertExecutionScopeSubmission(executionScope, graph); try { const data = await requestJson(`${config.serverAddress}/graph`, { diff --git a/src/utils/runtimeCleanupFeedback.ts b/src/utils/runtimeCleanupFeedback.ts new file mode 100644 index 00000000..4d440799 --- /dev/null +++ b/src/utils/runtimeCleanupFeedback.ts @@ -0,0 +1,19 @@ +import type { GpuCleanupResult } from './serverActions'; + +/** Cleanup warnings do not establish released-file counts or remaining ownership. */ +export function runtimeCleanupFeedback(result: GpuCleanupResult): { state: 'success' | 'warning'; message: string } { + const errors = result.cleanup_errors === undefined ? [] : result.cleanup_errors; + if ( + !Array.isArray(errors) || + errors.length > 64 || + errors.some((error) => typeof error !== 'string' || error.length > 8192) + ) { + throw new Error('The accelerator cleanup response has invalid cleanup details.'); + } + const message = + typeof result.message === 'string' && result.message.trim() + ? result.message + : 'Accelerator cache released. Cached model state was dropped, so rerun the workflow to rebuild outputs; this action does not intentionally stop the backend.'; + const warnings = errors.filter((error) => error.trim()); + return { state: warnings.length ? 'warning' : 'success', message: [message, ...warnings].join('\n') }; +} diff --git a/src/workflow/ancillaryExecutionScope.ts b/src/workflow/ancillaryExecutionScope.ts new file mode 100644 index 00000000..d2fe3daf --- /dev/null +++ b/src/workflow/ancillaryExecutionScope.ts @@ -0,0 +1,354 @@ +import type { Edge } from '@xyflow/react'; +import type { NodeData } from '../stores/useNodeStore'; +import type { OperationStarter } from './operationAuthoring'; +import { executableFlowNodes, selectFlowGraphExecutionScope, type FlowGraphNode } from '../stores/flowGraphExport'; +import { + ancillaryBindingsFromHint, + invalidAncillary, + type AncillaryInstanceBinding, + type AncillaryOperation, + type AncillaryExecutionPurpose, +} from '../studio/ancillaryOperations'; +import { + parseOperationAuthoringRecipe, + type OperationAuthoringRecipe, + type OperationAuthoringSelection, +} from '../studio/operationAuthoringRecipe'; +import { canonicalBlockStringifyV2 } from '../studio/blockSchemaV2'; + +export type CurrentAncillaryParentDefinition = Readonly<{ readonly currentParent: unique symbol }>; +type CurrentParent = { + recipe: unknown; + selection: OperationAuthoringSelection; + definition?: CurrentAncillaryParentDefinition; +}; +const parentDefinitions = new WeakMap< + object, + { key: string; schemas: Map; assertCurrent: () => void } +>(); +/** Ephemeral current-response context only; saved hints and JSON copies cannot issue it. */ +export function captureCurrentAncillaryParentDefinition( + starter: OperationStarter, + binding: Pick, + assertCurrent: () => void, +): CurrentAncillaryParentDefinition { + assertCurrent(); + const parent = parseOperationAuthoringRecipe(starter.authoring, binding.parent); + if ( + starter.pipelineClass !== binding.parent.pipelineClass || + starter.task !== binding.parent.task || + parent.id !== binding.parent.authoringRecipeId || + parent.contentHash !== binding.parent.authoringContentHash || + parent.baseSpecId !== binding.parent.baseSpecId || + parent.baseSpecContentHash !== binding.parent.baseSpecContentHash || + !parent.executionProfileIds.includes(binding.parent.executionProfileId) + ) + invalidAncillary('selected parent definitions differ from the current response.'); + exactRoleMap(binding.parentRoleNodes, parent.roles); + if (new Set(Object.values(binding.parentRoleNodes)).size !== parent.roles.length) + invalidAncillary('selected parent role identities collide.'); + const schemas = new Map(); + for (const [role, key] of parent.roles) { + const matches = starter.nodes.filter(({ operation }) => operation.nodeKey === key); + if (matches.length > 1) invalidAncillary('selected parent definition is ambiguous.'); + const selected = matches[0]; + if (!selected) continue; + if ( + selected.operation.pipelineClass !== starter.pipelineClass || + selected.operation.task !== starter.task || + `${selected.node.module}.${selected.node.action}` !== key + ) + invalidAncillary('selected parent operation identity differs.'); + schemas.set(binding.parentRoleNodes[role]!, structuredClone(selected.node)); + } + const token = Object.freeze({}) as CurrentAncillaryParentDefinition; + parentDefinitions.set(token, { + key: canonicalBlockStringifyV2([binding.parent, binding.parentRoleNodes, parent]), + schemas, + assertCurrent, + }); + return token; +} +/** Preserve the same fresh definition while the existing native editor unpacks IDs. */ +export function remapCurrentAncillaryParentDefinition( + definition: CurrentAncillaryParentDefinition | undefined, + original: Pick, + next: Pick, +): CurrentAncillaryParentDefinition | undefined { + if (definition === undefined) return undefined; + const current = parentDefinitions.get(definition); + if (!current) invalidAncillary('missing current parent definition context.'); + current.assertCurrent(); + const [parent, roles, recipe] = JSON.parse(current.key) as [ + unknown, + Record, + OperationAuthoringRecipe, + ]; + if (!equal(parent, original.parent) || !equal(roles, original.parentRoleNodes) || !equal(parent, next.parent)) + invalidAncillary('parent definition remap differs from its original native offer.'); + exactRoleMap(next.parentRoleNodes, recipe.roles); + if (new Set(Object.values(next.parentRoleNodes)).size !== recipe.roles.length) + invalidAncillary('parent definition remap collides.'); + const ids = new Map(recipe.roles.map(([role]) => [roles[role]!, next.parentRoleNodes[role]!])); + const token = Object.freeze({}) as CurrentAncillaryParentDefinition; + parentDefinitions.set(token, { + key: canonicalBlockStringifyV2([next.parent, next.parentRoleNodes, recipe]), + schemas: new Map([...current.schemas].map(([id, node]) => [ids.get(id)!, node])), + assertCurrent: current.assertCurrent, + }); + return token; +} +function currentParentSchemas( + definition: CurrentAncillaryParentDefinition | undefined, + parent: OperationAuthoringRecipe, + binding: AncillaryInstanceBinding, +) { + if (definition === undefined) return undefined; + const value = definition && typeof definition === 'object' ? parentDefinitions.get(definition) : undefined; + if (!value || value.key !== canonicalBlockStringifyV2([binding.parent, binding.parentRoleNodes, parent])) + invalidAncillary('missing or stale current parent definition context.'); + value.assertCurrent(); + return value.schemas; +} +export type AncillaryScopeResult = { + purpose: AncillaryExecutionPurpose | undefined; + nodeIds: string[]; + targetNodeIds: string[] | undefined; +}; +type ScopeOptions = { + /** Already expanded native leaves from the existing canonical materializer. */ + nodes: FlowGraphNode[]; + edges: Edge[]; + parents: readonly CurrentParent[]; + registry: Record; + kind: 'workflow' | 'explicit_preview'; + target?: { nodeId: string; outputField: string }; + workflowTargetNodeIds?: string[]; +}; +function equal(left: unknown, right: unknown) { + return canonicalBlockStringifyV2(left) === canonicalBlockStringifyV2(right); +} +function exactRoleMap(map: Record, roles: readonly [string, ...unknown[]][]) { + if (!equal(Object.keys(map).sort(), roles.map(([role]) => role).sort())) + invalidAncillary('role map does not cover its exact current declaration.'); +} +function key(node: FlowGraphNode) { + return `${node.data.module}.${node.data.action}`; +} +function literal(node: FlowGraphNode, name: string, edges: Edge[]) { + if (edges.some((edge) => edge.target === node.id && edge.targetHandle === name)) + invalidAncillary('claimed request fields require actual authored literals.'); + const param = node.data.params[name]; + if (!param) invalidAncillary('bound field is missing.'); + return param.value ?? param.default; +} +function staticField( + registry: Record, + node: FlowGraphNode, + field: string, + output: boolean, + selected?: Map, +) { + const declared = selected?.has(node.id) ? selected.get(node.id)!.params[field] : registry[key(node)]?.params[field]; + if (!declared || (declared.display === 'output') !== output || !node.data.params[field]) + invalidAncillary('bound field/direction is not currently registered.'); + return declared; +} +function roleNodes( + nodes: Map, + roles: readonly [string, string, number, number][], + map: Record, +) { + exactRoleMap(map, roles); + for (const [role, action] of roles) { + const node = nodes.get(map[role]!); + if (!node || key(node) !== action) invalidAncillary('role differs from its native leaf.'); + } +} +function edgeSignature(edge: Pick) { + return canonicalBlockStringifyV2([edge.source, edge.sourceHandle ?? null, edge.target, edge.targetHandle ?? null]); +} +function declaredEdges(edges: readonly [string, string, string, string][], map: Record) { + return edges.map(([a, b, c, d]) => ({ source: map[a]!, sourceHandle: b, target: map[c]!, targetHandle: d })); +} +function requireEdges(actual: Edge[], expected: ReturnType) { + for (const edge of expected) + if (actual.filter((candidate) => edgeSignature(candidate) === edgeSignature(edge)).length !== 1) + invalidAncillary('declared edge is missing or ambiguous.'); +} + +/** Pure selection only. No graph mutation, preparation, Auto, owner release or Run. */ +export function selectAncillaryExecutionScope({ + nodes, + edges, + parents, + registry, + kind, + target, + workflowTargetNodeIds, +}: ScopeOptions): AncillaryScopeResult { + if (kind !== 'workflow' && kind !== 'explicit_preview') invalidAncillary('unknown scope kind.'); + if (kind === 'workflow' && target !== undefined) invalidAncillary('ordinary workflow has no Preview target.'); + const claimed = nodes.flatMap((node) => { + const bindings = ancillaryBindingsFromHint(node.data.operationAuthoring); + return bindings ? bindings.map((binding) => ({ holderId: node.id, binding })) : []; + }); + if (!claimed.length) { + if (kind !== 'workflow') invalidAncillary('Preview needs a current declared binding.'); + return { + purpose: undefined, + nodeIds: selectFlowGraphExecutionScope({ nodes, edges, targetNodeIds: workflowTargetNodeIds }).nodes.map( + (node) => node.id, + ), + targetNodeIds: workflowTargetNodeIds, + }; + } + if (claimed.length > 4) invalidAncillary('too many selected ancillary bindings.'); + const native = new Map(nodes.map((node) => [node.id, node])); + if (native.size !== nodes.length) invalidAncillary('duplicate native node identities.'); + if (parents.length > 4) invalidAncillary('too many current parents.'); + const contracts = parents.map(({ recipe, selection, definition }) => ({ + parent: parseOperationAuthoringRecipe(recipe, selection), + definition, + })); + const seen = new Set(), + childIds = new Set(); + const resolved: Array<{ + binding: AncillaryInstanceBinding; + contract: AncillaryOperation; + parent: OperationAuthoringRecipe; + }> = []; + for (const { holderId, binding } of claimed) { + if (seen.has(binding.contractId)) invalidAncillary('duplicate claimed ancillary contract.'); + seen.add(binding.contractId); + const matches = contracts.flatMap(({ parent, definition }) => + (parent.ancillaryOperations ?? []) + .filter((child) => child.id === binding.contractId) + .map((contract) => ({ parent, contract, definition })), + ); + if (matches.length !== 1) invalidAncillary('missing or ambiguous current ancillary declaration.'); + const { parent, contract, definition } = matches[0]!; + const selectedParent = currentParentSchemas(definition, parent, binding); + if ( + binding.contentHash !== contract.contentHash || + !equal(binding.parent, { ...contract.parent, authoringContentHash: parent.contentHash }) + ) + invalidAncillary('stale or mixed current parent/child identity.'); + roleNodes(native, parent.roles, binding.parentRoleNodes); + roleNodes(native, contract.roles, binding.roleNodes); + if (holderId !== binding.parentRoleNodes[contract.bindings.owner.role]) + invalidAncillary('claim is not on its exact declared input owner.'); + requireEdges(edges, declaredEdges(parent.edges, binding.parentRoleNodes)); + const child = Object.values(binding.roleNodes); + if (child.some((id) => childIds.has(id))) invalidAncillary('ancillary instance IDs collide.'); + child.forEach((id) => childIds.add(id)); + const expected = declaredEdges(contract.edges, binding.roleNodes); + const reference = contract.bindings.owner.referenceSource; + if (reference) + expected.push({ + source: binding.parentRoleNodes[reference.role]!, + sourceHandle: reference.field, + target: binding.roleNodes[contract.bindings.request.role]!, + targetHandle: contract.bindings.request.imagesField, + }); + requireEdges(edges, expected); + for (const edge of expected) { + const from = staticField(registry, native.get(edge.source)!, edge.sourceHandle, true); + const to = staticField(registry, native.get(edge.target)!, edge.targetHandle, false); + if (!equal(from.type, to.type)) invalidAncillary('declared child field types differ.'); + } + for (const edge of edges.filter((edge) => child.includes(edge.source) || child.includes(edge.target))) + if (!expected.some((candidate) => edgeSignature(candidate) === edgeSignature(edge))) + invalidAncillary('undeclared ancillary or cross-branch connection.'); + const owner = native.get(holderId)!, + request = native.get(binding.roleNodes[contract.bindings.request.role]!)!; + for (const [ownerField, requestField] of [ + [contract.bindings.owner.promptField, contract.bindings.request.promptField], + [contract.bindings.owner.layoutField, contract.bindings.request.layoutField], + ]) { + staticField(registry, owner, ownerField!, false, selectedParent); + staticField(registry, request, requestField!, false); + if ( + kind === 'explicit_preview' && + !equal(literal(owner, ownerField!, edges) ?? null, literal(request, requestField!, edges) ?? null) + ) + invalidAncillary('request differs from the current authored input owner.'); + } + for (const [role, name, value] of contract.initialValues) { + const node = native.get(binding.roleNodes[role]!)!; + staticField(registry, node, name, false); + if (kind === 'explicit_preview' && !equal(literal(node, name, edges), value)) + invalidAncillary('declared input selection changed.'); + } + const output = native.get(binding.roleNodes[contract.bindings.output.role]!)!; + if (staticField(registry, output, contract.bindings.output.field, true).type !== 'string') + invalidAncillary('Preview requires the declared static string output.'); + if (reference) { + const source = native.get(binding.parentRoleNodes[reference.role]!)!; + const from = staticField(registry, source, reference.field, true, selectedParent), + to = staticField(registry, request, contract.bindings.request.imagesField, false); + if (!equal(from.type, to.type)) invalidAncillary('declared reference field types differ.'); + } else if (kind === 'explicit_preview' && literal(request, contract.bindings.request.imagesField, edges) != null) + invalidAncillary('text-only Preview has no authored image source.'); + resolved.push({ parent, contract, binding }); + } + if (kind === 'explicit_preview') { + if (!target) invalidAncillary('Preview target is required.'); + const matches = resolved.filter( + ({ contract, binding }) => + target.nodeId === binding.roleNodes[contract.bindings.output.role] && + target.outputField === contract.bindings.output.field, + ); + if (matches.length !== 1) invalidAncillary('target is not the exact declared proposal output.'); + const { binding, contract } = matches[0]!; + const selected = selectFlowGraphExecutionScope({ nodes, edges, targetNodeId: target.nodeId }).nodes; + const reference = contract.bindings.owner.referenceSource; + const expected = [ + ...Object.values(binding.roleNodes), + ...(reference ? [binding.parentRoleNodes[reference.role]!] : []), + ]; + const inLoop = (node: FlowGraphNode) => { + let id = node.parentId, + remaining = nodes.length; + while (id && remaining--) { + const owner = native.get(id); + if (owner?.data.type === 'loop') return true; + id = owner?.parentId; + } + return false; + }; + if (!equal(selected.map((node) => node.id).sort(), expected.sort()) || selected.some(inLoop)) + invalidAncillary('Preview has an undeclared ancestor, disabled role or loop body.'); + return { + purpose: { schemaVersion: 1, kind, bindings: [binding], target: { ...target } }, + nodeIds: selected.map((node) => node.id), + targetNodeIds: [target.nodeId], + }; + } + const executable = executableFlowNodes(nodes), + active = new Set(executable.map((node) => node.id)); + const terminals = executable.filter( + (node) => !edges.some((edge) => edge.source === node.id && active.has(edge.target)), + ); + const seeds = workflowTargetNodeIds + ? workflowTargetNodeIds.filter((id) => !childIds.has(id)) + : (terminals.length ? terminals : executable).filter((node) => !childIds.has(node.id)).map((node) => node.id); + if (!seeds.length) invalidAncillary('ordinary workflow has no remaining executable output.'); + const selected = selectFlowGraphExecutionScope({ nodes, edges, targetNodeIds: seeds }).nodes; + if (!selected.length) invalidAncillary('ordinary scope has no executable output.'); + const selectedIds = new Set(selected.map((node) => node.id)); + const included = resolved.filter(({ binding }) => + Object.values(binding.parentRoleNodes).some((id) => selectedIds.has(id)), + ); + if (included.some(({ binding }) => Object.values(binding.parentRoleNodes).some((id) => !selectedIds.has(id)))) + invalidAncillary('ordinary scope omits a declared parent role.'); + if (selected.some((node) => childIds.has(node.id))) + invalidAncillary('ordinary workflow still depends on a Preview-only role.'); + return { + purpose: included.length + ? { schemaVersion: 1, kind, bindings: included.map((item) => item.binding), target: null } + : undefined, + nodeIds: selected.map((node) => node.id), + targetNodeIds: seeds, + }; +} diff --git a/src/workflow/encodingNodePresentation.ts b/src/workflow/encodingNodePresentation.ts index ad37c700..0f778818 100644 --- a/src/workflow/encodingNodePresentation.ts +++ b/src/workflow/encodingNodePresentation.ts @@ -1,10 +1,17 @@ import type { NodeParams } from '../stores/useNodeStore'; import type { BlockControlV2, BlockInstanceV2, BlockPortV2 } from '../studio/blockSchemaV2'; import { workflowTaskCategory } from './workflowTaskBrowser'; +import { COMBINED_INPUT_PROVIDER, VISUAL_STAGE_PROVIDER } from './visualOperationGroupProjection'; /** Scope by declared encoder tasks, not by model names or unrelated custom nodes. */ export function isFocusedImageEncoding(instance: BlockInstanceV2 | undefined) { - if (instance?.definitionSnapshot.source.provider !== 'modiff.visual-stages.v1/inputs') return false; + if ( + !instance || + ![`${VISUAL_STAGE_PROVIDER}inputs`, COMBINED_INPUT_PROVIDER].includes( + instance.definitionSnapshot.source.provider ?? '', + ) + ) + return false; const encoders = instance.effectiveGraph.nodes.flatMap((stage) => { const operation = ( stage.data.operationAuthoring as { operation?: { task?: string; nodeType?: string } } | undefined @@ -21,7 +28,9 @@ export function isFocusedImageEncoding(instance: BlockInstanceV2 | undefined) { /** Only the approved image/audio Guidance recipe gets the ordinary node view. */ export function isFocusedGuidance(instance: BlockInstanceV2 | undefined) { - if (instance?.definitionSnapshot.source.provider !== 'modiff.visual-stages.v1/guidance') return false; + if (!instance) return false; + const provider = instance?.definitionSnapshot.source.provider; + if (provider !== `${VISUAL_STAGE_PROVIDER}guidance` && !isFocusedImageEncoding(instance)) return false; const stages = instance.effectiveGraph.nodes.flatMap((stage) => { const operation = ( stage.data.operationAuthoring as { operation?: { task?: string; nodeType?: string } } | undefined diff --git a/src/workflow/guidanceNodeFields.ts b/src/workflow/guidanceNodeFields.ts index f72e0bdc..437d0085 100644 --- a/src/workflow/guidanceNodeFields.ts +++ b/src/workflow/guidanceNodeFields.ts @@ -27,38 +27,42 @@ export function receiveGuidanceDefinition(id: string, params: unknown) { * Opening a saved node never rewrites its graph or reusable definition. */ export function guidanceFields(instance: BlockInstanceV2) { const declared = blockControlParamsV2(instance); - return blockOperationGraphV2(instance).nodes.flatMap((stage) => - Object.entries(stage.data.params).flatMap(([field, param]) => { - if ( - param.hidden || - param.isInput || - ['input', 'output'].includes(param.display ?? '') || - param.display?.startsWith('ui_') - ) - return []; - const semantic = stage.data.blockProjectionNodeId!; - const control = instance.effectiveInterface.controls.find( - (c) => c.binding.nodeId === semantic && c.binding.fieldId === field, - ); - if ( - !control && - (instance.definitionSnapshot.controls.some( + return blockOperationGraphV2(instance) + .nodes.filter((stage) => + ['guidance', 'guidance_layers'].includes(stage.data.operationAuthoring?.operation.nodeType ?? ''), + ) + .flatMap((stage) => + Object.entries(stage.data.params).flatMap(([field, param]) => { + if ( + param.hidden || + param.isInput || + ['input', 'output'].includes(param.display ?? '') || + param.display?.startsWith('ui_') + ) + return []; + const semantic = stage.data.blockProjectionNodeId!; + const control = instance.effectiveInterface.controls.find( (c) => c.binding.nodeId === semantic && c.binding.fieldId === field, - ) || - instance.presentation.removedControlBindings?.some((b) => b.nodeId === semantic && b.fieldId === field)) - ) - return []; // Deliberately removed through Configure interface. - const id = control?.controlId ?? `${semantic}:${field}`; - return [ - { - id, - field, - stage, - param: { ...(control ? declared[id] : param), onChange: undefined, onSignal: undefined } as NodeParams, - }, - ]; - }), - ); + ); + if ( + !control && + (instance.definitionSnapshot.controls.some( + (c) => c.binding.nodeId === semantic && c.binding.fieldId === field, + ) || + instance.presentation.removedControlBindings?.some((b) => b.nodeId === semantic && b.fieldId === field)) + ) + return []; // Deliberately removed through Configure interface. + const id = control?.controlId ?? `${semantic}:${field}`; + return [ + { + id, + field, + stage, + param: { ...(control ? declared[id] : param), onChange: undefined, onSignal: undefined } as NodeParams, + }, + ]; + }), + ); } /** User edits use the existing graph planner and metadata endpoint, atomically. */ diff --git a/src/workflow/imagePipelineStageContracts.ts b/src/workflow/imagePipelineStageContracts.ts new file mode 100644 index 00000000..c227f653 --- /dev/null +++ b/src/workflow/imagePipelineStageContracts.ts @@ -0,0 +1,134 @@ +import type { NodeData } from '../stores/useNodeStore'; +import type { OperationGraph } from './operationAuthoring'; +import { operationOwnsModel, type OperationContract } from './operationContracts'; + +type ImagePipelineStageContractNode = { + id: string; + operation?: OperationContract; + params: NodeData['params']; +}; +type ImagePipelineStageContractEdge = Pick< + OperationGraph['edges'][number], + 'source' | 'sourceHandle' | 'target' | 'targetHandle' +>; + +/** Validate the same declared ports and sole suppliers before creating a graph. + * Starter rows and existing flat nodes share this structural contract check. */ +export function declaredImagePipelineStageContracts( + nodes: readonly ImagePipelineStageContractNode[], + ownerId: string, + allEdges: readonly ImagePipelineStageContractEdge[], + edges: readonly ImagePipelineStageContractEdge[], +): string[] | null { + const owner = nodes.find((node) => node.id === ownerId); + const owning = owner && owner.operation; + if (!operationOwnsModel(owning) || edges.length !== 3 || new Set(edges.map((edge) => edge.target)).size !== 3) + return null; + const source = edges[0]!; + const output = nodes.find((node) => node.id === source.source)?.params[source.sourceHandle ?? '']; + if ( + output?.display !== 'output' || + output.type !== 'image_diffusion_pipeline' || + edges.some((edge) => edge.source !== source.source || edge.sourceHandle !== source.sourceHandle) + ) + return null; + const scope = owning.binding?.pipelineClass ?? owning.pipelineClass; + const stages: ImagePipelineStageContractNode[] = []; + for (const edge of edges) { + const node = nodes.find((candidate) => candidate.id === edge.target); + const operation = node && node.operation; + const input = node?.params[edge.targetHandle ?? '']; + const ports = operation?.ports.filter((port) => port.direction === 'input' && port.name === edge.targetHandle); + const port = ports?.[0]; + if ( + !node || + !operation || + operation.decomposition !== 'bundle' || + operation.pipelineClass !== owning.pipelineClass || + operation.task !== owning.task || + !['image_encoder', 'denoise', 'decoder'].includes(operation.nodeType) || + ports?.length !== 1 || + port?.types.length !== 1 || + port.types[0] !== 'image_diffusion_pipeline' || + port.roles.length !== 1 || + !['component', 'pipeline'].includes(port.roles[0]!) || + port.semantics?.kind !== 'pipeline' || + port.semantics.owner !== 'same_loader' || + port.semantics.scope !== scope || + input?.type !== 'image_diffusion_pipeline' || + !(input.display === 'input' || input.isInput) || + allEdges.filter((candidate) => candidate.target === node.id && candidate.targetHandle === edge.targetHandle) + .length !== 1 + ) + return null; + stages.push(node); + } + const operations = stages.map((node) => node.operation!); + if ( + new Set(operations.map((operation) => operation.nodeType)).size !== 3 || + new Set(operations.map((operation) => operation.operationId)).size !== 3 + ) + return null; + const stage = (kind: string) => stages.find((node) => node.operation!.nodeType === kind)!; + const encoder = stage('image_encoder'), + denoiser = stage('denoise'), + decoder = stage('decoder'); + const bound = ( + source: ImagePipelineStageContractNode, + target: ImagePipelineStageContractNode, + kind: string, + type: string, + sourceName?: string, + targetName?: string, + ) => { + const semanticOwner = kind === 'value' ? 'none' : 'same_loader'; + const semanticScope = kind === 'value' ? null : scope; + const output = source.operation!.ports.filter( + (port) => + port.direction === 'output' && + port.types.length === 1 && + port.types[0] === type && + port.semantics?.kind === kind && + port.semantics.owner === semanticOwner && + port.semantics.scope === semanticScope && + (sourceName === undefined || port.semanticName === sourceName), + ); + const input = target.operation!.ports.filter( + (port) => + port.direction === 'input' && + port.types.length === 1 && + port.types[0] === type && + port.semantics?.kind === kind && + port.semantics.owner === semanticOwner && + port.semantics.scope === semanticScope && + (targetName === undefined || port.semanticName === targetName), + ); + if (output.length !== 1 || input.length !== 1) return false; + const producing = source.params[output[0]!.name], + consuming = target.params[input[0]!.name]; + const suppliers = allEdges.filter((edge) => edge.target === target.id && edge.targetHandle === input[0]!.name); + const consumers = allEdges.filter((edge) => edge.source === source.id && edge.sourceHandle === output[0]!.name); + return ( + producing?.display === 'output' && + producing.type === type && + consuming?.type === type && + (consuming.display === 'input' || consuming.isInput) && + suppliers.length === 1 && + consumers.length === 1 && + suppliers[0]!.source === source.id && + suppliers[0]!.sourceHandle === output[0]!.name + ); + }; + if ( + !bound(encoder, denoiser, 'conditioning', 'image_conditioning') || + !bound(denoiser, decoder, 'latents', 'tensor') || + !bound(denoiser, decoder, 'state', 'image_latent_binding') || + !bound(denoiser, decoder, 'value', 'int', 'width_out', 'width') || + !bound(denoiser, decoder, 'value', 'int', 'height_out', 'height') || + !decoder.operation!.ports.some( + (port) => port.direction === 'output' && port.types.includes('image') && port.semantics?.kind === 'media', + ) + ) + return null; + return stages.map((node) => node.id); +} diff --git a/src/workflow/modelSetupAdapters.ts b/src/workflow/modelSetupAdapters.ts new file mode 100644 index 00000000..842bdb2f --- /dev/null +++ b/src/workflow/modelSetupAdapters.ts @@ -0,0 +1,649 @@ +import { nanoid } from 'nanoid'; +import type { CustomNodeType } from '../stores/useFlowStore'; +import type { DiscoveryRequestState, NodeData } from '../stores/useNodeStore'; +import type { StudioImageAdapterAuthoringPolicy, StudioModelProfile } from '../studio/types'; +import type { OperationContract } from './operationContracts'; +import type { PipelineSupport } from './operationCatalog'; +import type { OperationGraph } from './operationAuthoring'; +import { operationOwnsModel } from './operationContracts'; +import { operationAuthoring } from './operationAuthoringHint'; +import { acceptsOperationValue } from './operationFieldValue'; +import { createNodeFromRegistry } from './nodeFactory'; +import { connectionTypesAreCompatible } from '../theme/connectionTypeCompatibility'; +import { hasInlineScalarControl } from '../studio/inlineScalarControl'; +import { MAX_ORDERED_ADAPTERS, orderedAdapterChainLinks } from '../studio/adapterChainLinks'; +import { parseImageAdapterAuthoringPolicy } from '../studio/optionalRuntimes'; +import { declaredImagePipelineStageTail } from './operationScope'; +import { deepEqual } from '../utils/deepEqual'; +import { selectedAudioAdapterPolicy } from './selectedAudioAdapterAuthority'; +import { + restoreVisualOperationGroups, + unpackVisualOperationGroups, + visualOperationGroup, +} from './visualOperationGroups'; + +const NATIVE = 'modules.ModularDiffusers.Lora'; +const DIRECT = 'modules.DiffusersImage.LoadAdapter'; +const AUDIO = 'modules.DiffusersAudio.LoadAdapter'; +const key = (node: CustomNodeType) => `${node.data.module}.${node.data.action}`; +export function isModelSetupAdapter(node: CustomNodeType) { + return [NATIVE, DIRECT, AUDIO].includes(key(node)); +} + +/** Follow the actual ordered adapter wires, not labels or canvas positions. */ +export function modelSetupAdapterChain(graph: OperationGraph, rootId: string) { + const root = graph.nodes.find((node) => node.id === rootId); + if (!root || visualOperationGroup(root) !== 'setup') throw new Error('Model Setup is no longer available.'); + const unpacked = unpackVisualOperationGroups(graph); + const flat = unpacked.graph; + const owned = new Set(unpacked.members.get(rootId)); + const owners = flat.nodes.filter( + (node) => owned.has(node.id) && operationOwnsModel(operationAuthoring(node)?.operation), + ); + if (owners.length !== 1) throw new Error('Choose a Model Setup with one model owner.'); + const owner = owners[0]!; + const native = Boolean(owner.data.params.lora_list); + const adapterKey = native ? NATIVE : owner.data.params.pipeline?.type === 'audio_diffusion_pipeline' ? AUDIO : DIRECT; + const adapters: CustomNodeType[] = []; + const chainEdges: OperationGraph['edges'] = []; + const visited = new Set(); + let prefix: { source: string; sourceHandle: string } | null = null; + let tail: { target: string; targetHandle: string }[] = []; + if (native) { + let target = owner.id, + handle = 'lora_list'; + while (true) { + const incoming = flat.edges.filter((edge) => edge.target === target && edge.targetHandle === handle); + if (incoming.length > 1) + throw new Error('This adapter chain has competing suppliers. Separate stages to inspect it.'); + const edge = incoming[0]; + if (!edge) break; + const node = flat.nodes.find((item) => item.id === edge.source); + if (!node || !owned.has(node.id) || key(node) !== adapterKey) { + prefix = { source: edge.source, sourceHandle: edge.sourceHandle! }; + chainEdges.push(edge); + break; + } + if (visited.has(node.id) || edge.sourceHandle !== 'lora') throw new Error('This adapter chain is invalid.'); + visited.add(node.id); + adapters.unshift(node); + chainEdges.push(edge); + target = node.id; + handle = 'previous_loras'; + } + tail = [{ target: owner.id, targetHandle: 'lora_list' }]; + } else { + if (!owner.data.params.pipeline) throw new Error('This model does not declare an adapter input.'); + prefix = { source: owner.id, sourceHandle: 'pipeline' }; + let source = owner.id, + handle = 'pipeline'; + while (true) { + const outgoing = flat.edges.filter((edge) => edge.source === source && edge.sourceHandle === handle); + if (outgoing.length !== 1) { + if (!declaredImagePipelineStageTail(flat, owner.id, outgoing)) + throw new Error('This pipeline has shared or missing consumers. Separate stages before adding adapters.'); + tail = outgoing.map((edge) => ({ target: edge.target, targetHandle: edge.targetHandle! })); + chainEdges.push(...outgoing); + break; + } + const edge = outgoing[0]!; + const node = flat.nodes.find((item) => item.id === edge.target); + chainEdges.push(edge); + if (!node || !owned.has(node.id) || key(node) !== adapterKey) { + if (node && key(node) === adapterKey) + throw new Error( + 'This pipeline adapter is shared outside this setup. Separate stages before editing its chain.', + ); + tail = [{ target: edge.target, targetHandle: edge.targetHandle! }]; + break; + } + if (visited.has(node.id) || edge.targetHandle !== 'pipeline') throw new Error('This adapter chain is invalid.'); + if (flat.edges.filter((edge) => edge.target === node.id && edge.targetHandle === 'pipeline').length !== 1) + throw new Error('This adapter chain has competing suppliers. Separate stages to inspect it.'); + visited.add(node.id); + adapters.push(node); + source = node.id; + handle = 'output'; + } + } + // Structural inspection/removal is bounded independently of current authoring permission. + if (adapters.length > 32) throw new Error('This setup exceeds the supported 32-adapter inspection bound.'); + if (flat.nodes.some((node) => owned.has(node.id) && isModelSetupAdapter(node) && !visited.has(node.id))) + throw new Error('This setup has an adapter outside its ordered chain. Separate stages to inspect it.'); + const chainIds = new Set(chainEdges.map((edge) => edge.id)); + if ( + flat.edges.some( + (edge) => + adapters.some((node) => node.id === edge.source) && + edge.sourceHandle === (native ? 'lora' : 'output') && + !chainIds.has(edge.id), + ) + ) + throw new Error('An adapter is shared with another consumer. Keep it external or separate these stages.'); + return { root, owner, native, adapterKey, adapters, prefix, tail, chainEdges, unpacked }; +} + +export function modelSetupAdapterFields(node: CustomNodeType) { + return Object.fromEntries( + Object.entries(node.data.params).filter( + ([, field]) => + !field.hidden && + (!field.isInput || hasInlineScalarControl(field)) && + !['input', 'output'].includes(field.display ?? '') && + !field.display?.startsWith('ui_'), + ), + ); +} + +export type ModelSetupAdapterAuthority = { + nodesRegistry: Record; + studioModelCapabilities: readonly StudioModelProfile[]; + studioModelCapabilitiesAuthoritative: boolean; + studioExecutionSpecInvalid: boolean; + operationContracts: readonly OperationContract[]; + pipelineSupport: readonly PipelineSupport[]; + discoveryRequests: { + nodes: Pick; + capabilities: Pick; + }; +}; + +/** Inspect reviewed pure configuration only; never evaluate a supplier. */ +export function requiredAdapterControlsUnavailable( + graph: OperationGraph, + owner: CustomNodeType, + authority: ModelSetupAdapterAuthority, + controls: NonNullable, +): string | null { + const fieldValue = (node: CustomNodeType, name: string): unknown => { + const registered = authority.nodesRegistry[key(node)]?.params[name]; + const field = node.data.params[name]; + if ( + !registered || + !field || + field.dataSource || + field.display === 'output' || + JSON.stringify(field.type) !== JSON.stringify(registered.type) || + graph.edges.some((edge) => edge.target === node.id && edge.targetHandle === name) + ) + return undefined; + const optionalNone = + (registered.display === 'input' || registered.isInput) && + registered.required !== true && + field.required !== true && + registered.value == null && + registered.default == null && + field.value == null && + field.default == null; + // Explicit null on a defaulted scalar is ambiguous; it cannot grant the + // non-null policy default. Only the declared optional input means None. + if (field.value === null && !optionalNone) return undefined; + const value = field.value ?? field.default; + if (value == null) return optionalNone ? null : undefined; + return acceptsOperationValue(registered, value) ? value : undefined; + }; + const pureSupplier = (node: CustomNodeType, field: string, nodeKey: string, output: string) => { + const declaredInput = authority.nodesRegistry[key(node)]?.params[field]; + const actualInput = node.data.params[field]; + if ( + !declaredInput || + !actualInput || + !(declaredInput.display === 'input' || declaredInput.isInput) || + !(actualInput.display === 'input' || actualInput.isInput) || + JSON.stringify(actualInput.type) !== JSON.stringify(declaredInput.type) + ) + return undefined; + const inputs = graph.edges.filter((edge) => edge.target === node.id && edge.targetHandle === field); + if (inputs.length !== 1 || inputs[0]!.sourceHandle !== output) return undefined; + const supplier = graph.nodes.find((candidate) => candidate.id === inputs[0]!.source); + const registered = authority.nodesRegistry[nodeKey]; + if ( + !supplier || + key(supplier) !== nodeKey || + !registered || + `${registered.module}.${registered.action}` !== nodeKey || + supplier.data.params[output]?.display !== 'output' || + registered.params[output]?.display !== 'output' || + JSON.stringify(supplier.data.params[output]?.type) !== JSON.stringify(registered.params[output]?.type) + ) + return undefined; + return supplier; + }; + const effective: Record = {}; + const recipeField = owner.data.params.execution_recipe; + const recipeEdges = graph.edges.filter( + (edge) => edge.target === owner.id && edge.targetHandle === 'execution_recipe', + ); + if (recipeField?.dataSource) return 'Use an unambiguous execution recipe connection before editing LoRA.'; + if (recipeEdges.length || recipeField?.value != null || recipeField?.default != null) { + const registeredInput = authority.nodesRegistry[key(owner)]?.params.execution_recipe; + if ( + !registeredInput || + recipeField?.type !== registeredInput.type || + registeredInput.type !== 'diffusers_execution_recipe' + ) + return 'Refresh the declared execution recipe controls before editing LoRA.'; + const recipe = pureSupplier( + owner, + 'execution_recipe', + 'modules.DiffusersRuntime.DiffusersExecutionRecipe', + 'execution_recipe', + ); + if (!recipe) return 'Use a reviewed, unambiguous execution recipe before editing LoRA.'; + const mode = fieldValue(recipe, 'offload_mode'); + const placement = fieldValue(recipe, 'device_map'); + if (typeof mode !== 'string' || typeof placement !== 'string') + return 'Keep required execution recipe controls literal before editing LoRA.'; + effective.offload_mode = mode; + effective.auto_offload = mode !== 'none'; + // The direct loader gives a non-none raw placement priority over recipe placement. + const rawPlacement = fieldValue(owner, 'device_map'); + effective.device_map = + typeof rawPlacement === 'string' && rawPlacement && rawPlacement !== 'none' ? rawPlacement : placement; + const quantEdges = graph.edges.filter( + (edge) => edge.target === recipe.id && edge.targetHandle === 'quantization_config', + ); + if (quantEdges.length) { + const quantizer = pureSupplier( + recipe, + 'quantization_config', + 'modules.DiffusersRuntime.PipelineQuantizationConfigV2', + 'quantization_config', + ); + const backend = quantizer && fieldValue(quantizer, 'backend'); + const overrides = quantizer && fieldValue(quantizer, 'component_overrides'); + if (backend !== 'none' || typeof overrides !== 'string' || overrides.length > 4096) + return 'Select the declared disabled quantizer before editing LoRA.'; + try { + const parsed: unknown = JSON.parse(overrides.trim() || '{}'); + if (!parsed || typeof parsed !== 'object' || Array.isArray(parsed) || Object.keys(parsed).length) + return 'Keep the disabled quantizer free of component overrides before editing LoRA.'; + } catch { + return 'Keep the disabled quantizer free of component overrides before editing LoRA.'; + } + } else if (fieldValue(recipe, 'quantization_config') !== null) { + return 'Use a declared unconnected or disabled quantizer before editing LoRA.'; + } + } + for (const [name, expected] of Object.entries(controls)) { + const literal = fieldValue(owner, name); + // A connected loader control is ambiguous even when a recipe would + // override it; do not grant authoring through uninspected suppliers. + if (literal === undefined) return `Keep the required ${name} control declared and literal before editing LoRA.`; + const actual = Object.prototype.hasOwnProperty.call(effective, name) ? effective[name] : literal; + if (actual !== expected) + return `Set the effective ${name} control to ${expected === null ? 'an unconnected optional input' : String(expected)} before editing LoRA.`; + } + return null; +} + +/** A typed socket describes transport, not permission to author an adapter. + * Imported graphs remain inspectable; executable edits require current authority. */ +function modelSetupAdapterAuthoringLimit( + chain: ReturnType, + authority?: ModelSetupAdapterAuthority, +): string | number { + const refresh = 'Refresh model capabilities before adding LoRA.'; + if ( + !authority?.studioModelCapabilitiesAuthoritative || + authority.studioExecutionSpecInvalid || + authority.discoveryRequests.capabilities.status !== 'success' || + authority.discoveryRequests.nodes.status !== 'success' + ) + return refresh; + const { owner, native, adapterKey, unpacked } = chain; + if (adapterKey === AUDIO) { + const policy = selectedAudioAdapterPolicy(owner, unpacked.graph, chain.tail, authority); + if (typeof policy === 'string') return policy; + if (policy.requiredControls) { + const reason = requiredAdapterControlsUnavailable(unpacked.graph, owner, authority, policy.requiredControls); + if (reason) return reason; + } + return policy.maxOwnedAdapters; + } + const operation = operationAuthoring(owner)?.operation; + const current = authority.operationContracts.filter( + (item) => + item.pipelineClass === operation?.pipelineClass && + item.task === operation.task && + item.operationId === operation.operationId && + item.nodeKey === key(owner) && + operationOwnsModel(item), + ); + const task = authority.pipelineSupport + .find((item) => item.pipelineClass === operation?.pipelineClass) + ?.tasks.find((item) => item.task === operation?.task); + if (current.length !== 1 || !task?.operationIds.includes(operation!.operationId)) return refresh; + if ( + chain.tail.length > 1 && + chain.tail.some(({ target }) => { + const stage = unpacked.graph.nodes.find((node) => node.id === target); + const selected = stage && operationAuthoring(stage)?.operation; + const declared = authority.operationContracts.filter( + (item) => + item.pipelineClass === operation!.pipelineClass && + item.task === operation!.task && + item.operationId === selected?.operationId && + item.nodeKey === (stage && key(stage)) && + item.nodeType === selected?.nodeType && + item.decomposition === 'bundle', + ); + return ( + declared.length !== 1 || !task.operationIds.includes(selected!.operationId) || !deepEqual(declared[0], selected) + ); + }) + ) + return refresh; + if ( + !unpacked.graph.nodes.some( + (node) => + node.data.operationAuthoring?.operation.pipelineClass === operation!.pipelineClass && + node.data.operationAuthoring.operation.task === operation!.task && + Object.values(node.data.params).some( + (field) => + field.display === 'output' && + (field.type === 'image' || (Array.isArray(field.type) && field.type.includes('image'))), + ), + ) + ) + return 'Select a declared image workflow before adding LoRA.'; + const fields = owner.data.params; + const value = (name: string) => + Object.prototype.hasOwnProperty.call(fields, name) && + !unpacked.graph.edges.some((edge) => edge.target === owner.id && edge.targetHandle === name) + ? (fields[name]!.value ?? fields[name]!.default) + : undefined; + const pipeline = value(native ? 'model_type' : 'pipeline_class'); + const repository = value(native ? 'repo_id' : 'model_id'); + const revision = value('revision'); + if ( + pipeline !== operation?.pipelineClass || + !repository || + typeof repository !== 'object' || + !('source' in repository) || + !('value' in repository) || + repository.source !== 'hub' || + typeof repository.value !== 'string' || + typeof revision !== 'string' || + !/^[a-f0-9]{40}$/u.test(revision) + ) + return 'Select a reviewed image model and exact revision before adding LoRA.'; + const matches = authority.studioModelCapabilities.flatMap((capability) => + (capability.executionProfiles ?? []) + .filter( + (profile) => + profile.pipeline_class === pipeline && + profile.model_type === capability.modelType && + profile.loader_module === owner.data.module && + profile.loader_action === owner.data.action && + task.executionProfileIds.includes(profile.id) && + (native || value('execution_profile_id') === profile.id) && + [profile.default_repo, profile.fallback_repo, ...(profile.compatible_repos ?? [])].includes( + repository.value as string, + ), + ) + .map((profile) => ({ capability, profile })), + ); + if (matches.length !== 1) + return 'The selected image model profile is unavailable or ambiguous. Refresh capabilities.'; + const { capability, profile } = matches[0]!; + const adapter = authority.nodesRegistry[adapterKey]; + const loader = authority.nodesRegistry[key(owner)]; + if ( + !adapter || + !loader || + `${adapter.module}.${adapter.action}` !== adapterKey || + `${loader.module}.${loader.action}` !== key(owner) + ) + return refresh; + let maxOwnedAdapters = MAX_ORDERED_ADAPTERS; + if (Object.prototype.hasOwnProperty.call(profile, 'adapterAuthoring')) { + try { + const policy = parseImageAdapterAuthoringPolicy( + profile.adapterAuthoring, + profile.modes, + profile.repository_revisions, + profile, + ); + const binding = current[0]!.binding; + const executionMode = + binding && Object.prototype.hasOwnProperty.call(binding, 'executionMode') ? binding.executionMode : task.task; + const workflowField = native ? 'workflow_id' : 'mode'; + const registryWorkflow = loader.params[workflowField]?.value ?? loader.params[workflowField]?.default; + const boundWorkflow = Object.prototype.hasOwnProperty.call(binding?.values ?? {}, workflowField); + const declaredWorkflow = native ? current[0]!.workflowId : undefined; + const workflow = native + ? boundWorkflow + ? binding!.values[workflowField] + : (declaredWorkflow ?? registryWorkflow) + : (binding?.values[workflowField] ?? registryWorkflow); + const legacyBlankWorkflow = + native && + !boundWorkflow && + typeof declaredWorkflow === 'string' && + declaredWorkflow.length > 0 && + registryWorkflow === '' && + value(workflowField) === ''; + if ( + policy.adapterNodeKey !== adapterKey || + typeof executionMode !== 'string' || + !profile.modes.some((mode) => mode === executionMode) || + !policy.tasks.includes(executionMode) || + typeof workflow !== 'string' || + (value(workflowField) !== workflow && !legacyBlankWorkflow) || + !policy.repositoryRevisions.some((pair) => pair.repo === repository.value && pair.revision === revision) + ) + return 'The selected image model policy does not authorize this adapter task and revision.'; + if (policy.requiredControls) { + const unavailable = requiredAdapterControlsUnavailable( + unpacked.graph, + owner, + authority, + policy.requiredControls, + ); + if (unavailable) return unavailable; + } + maxOwnedAdapters = policy.maxOwnedAdapters; + } catch { + return 'The selected image adapter authoring policy is invalid. Refresh capabilities.'; + } + } else { + const canonical = native + ? authority.studioModelCapabilities.find((item) => item.modelType === pipeline) + : undefined; + if (capability.supportsLora !== true || (canonical && canonical.supportsLora !== true)) + return 'The selected image model does not support LoRA.'; + } + if (!profile.repository_revisions?.some((pair) => pair.repo === repository.value && pair.revision === revision)) + return 'The selected image model revision is not declared by the backend. Refresh capabilities.'; + const input = native ? fields.lora_list : fields.pipeline; + const declaredInput = loader.params[native ? 'lora_list' : 'pipeline']; + const output = adapter.params[native ? 'lora' : 'output']; + const transport = adapter.params[native ? 'previous_loras' : 'pipeline']; + if ( + !input || + !declaredInput || + JSON.stringify(input.type) !== JSON.stringify(declaredInput.type) || + !output || + !transport || + output.display !== 'output' || + transport.display !== 'input' || + !connectionTypesAreCompatible(output.type, input.type) || + !connectionTypesAreCompatible(output.type, transport.type) + ) + return 'The backend adapter definition does not declare compatible chain sockets. Refresh capabilities.'; + return maxOwnedAdapters; +} + +/** Editing permission and Add capacity are separate: full chains remain editable. */ +export function modelSetupAdapterEditUnavailable( + chain: ReturnType, + authority?: ModelSetupAdapterAuthority, +): string | null { + const limit = modelSetupAdapterAuthoringLimit(chain, authority); + return typeof limit === 'string' + ? limit + : chain.adapters.length > limit + ? `This setup exceeds its ${limit}-adapter authoring limit.` + : null; +} + +export function modelSetupAdapterAddUnavailable( + chain: ReturnType, + authority?: ModelSetupAdapterAuthority, +): string | null { + const limit = modelSetupAdapterAuthoringLimit(chain, authority); + return typeof limit === 'string' + ? limit + : chain.adapters.length >= limit + ? `This setup supports at most ${limit} owned adapters.` + : null; +} + +export function validateModelSetupAdapterSelection(node: CustomNodeType) { + const fields = node.data.params; + const selection = fields.model?.value ?? fields.model_id?.value ?? fields.adapter_path?.value; + if ( + !selection || + typeof selection !== 'object' || + !('source' in selection) || + !('value' in selection) || + (selection.source !== 'hub' && selection.source !== 'local') || + typeof selection.value !== 'string' || + !selection.value.trim() + ) + throw new Error('Select a Hub or local LoRA before adding it.'); + if (selection.source === 'hub') { + const revision = fields.revision?.value ?? fields.revision?.default; + const hash = fields.expected_sha256?.value ?? fields.expected_sha256?.default; + const weight = fields.weight_name?.value ?? fields.weight_name?.default; + if (typeof revision !== 'string' || !/^[a-f0-9]{40}$/.test(revision)) + throw new Error('A Hub LoRA requires its exact lowercase 40-character commit revision.'); + if (typeof hash !== 'string' || !/^[a-f0-9]{64}$/.test(hash)) + throw new Error('A Hub LoRA requires the expected SHA-256 of its weight file.'); + if ( + typeof weight !== 'string' || + !weight.endsWith('.safetensors') || + weight.includes('\\') || + weight.startsWith('/') || + weight.split('/').some((part) => !part || part === '..' || part === '.') + ) + throw new Error('Select a contained .safetensors weight file for the Hub LoRA.'); + } +} + +type AdapterEdit = + | { kind: 'add'; values: Record; registry: Record } + | { kind: 'replace'; nodeId: string; values: Record; registry: Record } + | { kind: 'remove'; nodeId: string } + | { kind: 'move'; nodeId: string; offset: -1 | 1 }; + +/** An explicit workflow edit. Values, suppliers and other branches are retained; + * the caller commits the complete result through the existing Undo transaction. */ +export function planModelSetupAdapterEdit( + graph: OperationGraph, + rootId: string, + edit: AdapterEdit, + authority?: ModelSetupAdapterAuthority, +): OperationGraph { + const chain = modelSetupAdapterChain(graph, rootId); + let maxOwnedAdapters = 32; + if (edit.kind !== 'remove') { + const limit = modelSetupAdapterAuthoringLimit(chain, authority); + if (typeof limit === 'string') throw new Error(limit); + maxOwnedAdapters = limit; + if (chain.adapters.length + (edit.kind === 'add' ? 1 : 0) > limit) + throw new Error(`This setup supports at most ${limit} owned adapters.`); + if ((edit.kind === 'add' || edit.kind === 'replace') && edit.registry !== authority!.nodesRegistry) + throw new Error('Refresh model capabilities before adding LoRA.'); + } + const next = structuredClone(chain.unpacked.graph); + const adapters = [...chain.adapters]; + if (edit.kind === 'add' || edit.kind === 'replace') { + const previous = edit.kind === 'replace' ? chain.adapters.find((node) => node.id === edit.nodeId) : undefined; + if (edit.kind === 'replace' && (!previous || chain.adapterKey !== AUDIO)) + throw new Error('Choose the single owned audio adapter to replace.'); + const node = createNodeFromRegistry(chain.adapterKey, edit.registry, { + x: chain.owner.position.x, + y: chain.owner.position.y + 400, + }); + if (!node) throw new Error('The backend adapter definition is unavailable. Refresh capabilities.'); + const fields = modelSetupAdapterFields(node); + for (const [name, value] of Object.entries(edit.values)) { + const field = fields[name]; + if (!field || !acceptsOperationValue(field, value)) throw new Error(`The adapter setting ${name} is invalid.`); + const supplied = previous && next.edges.some((edge) => edge.target === previous.id && edge.targetHandle === name); + if ( + supplied && + (name !== 'scale' || + !deepEqual(value, previous.data.params[name]?.value ?? previous.data.params[name]?.default)) + ) + throw new Error('Keep connected adapter suppliers unchanged before replacing LoRA.'); + node.data.params[name] = { ...field, value: structuredClone(value) as typeof field.value }; + } + validateModelSetupAdapterSelection(node); + if (previous) { + const replacement = { + ...structuredClone(previous), + data: { ...structuredClone(previous.data), params: node.data.params }, + }; + adapters[adapters.findIndex((item) => item.id === previous.id)] = replacement; + next.nodes = next.nodes.map((item) => (item.id === previous.id ? replacement : item)); + } else { + adapters.push(node); + next.nodes.push(node); + } + } else { + const index = adapters.findIndex((node) => node.id === edit.nodeId); + if (index < 0) throw new Error('This adapter is no longer available.'); + if (edit.kind === 'remove') { + adapters.splice(index, 1); + next.nodes = next.nodes.filter((node) => node.id !== edit.nodeId); + next.edges = next.edges.filter((edge) => edge.source !== edit.nodeId && edge.target !== edit.nodeId); + } else { + const destination = index + edit.offset; + if (destination < 0 || destination >= adapters.length) throw new Error('This adapter cannot move further.'); + [adapters[index], adapters[destination]] = [adapters[destination]!, adapters[index]!]; + } + } + const chainIds = new Set(chain.chainEdges.map((edge) => edge.id)); + next.edges = next.edges.filter((edge) => !chainIds.has(edge.id)); + const connect = (source: string, sourceHandle: string, target: string, targetHandle: string) => { + const output = next.nodes.find((node) => node.id === source)?.data.params[sourceHandle]; + const input = next.nodes.find((node) => node.id === target)?.data.params[targetHandle]; + if ( + output?.display !== 'output' || + !input || + !(input.display === 'input' || input.isInput) || + !connectionTypesAreCompatible(output.type, input.type) + ) + throw new Error('This adapter definition does not declare compatible chain sockets. Nothing changed.'); + next.edges.push({ id: `edge-${nanoid()}`, source, sourceHandle, target, targetHandle, type: 'default' }); + }; + const target = chain.tail[0]!; + const links = orderedAdapterChainLinks({ + maxOwnedAdapters, + adapterIds: adapters.map((node) => node.id), + inputHandles: [chain.native ? 'previous_loras' : 'pipeline'], + outputHandles: [chain.native ? 'lora' : 'output'], + target: { nodeId: target.target, handles: [target.targetHandle] }, + ...(chain.prefix ? { source: { nodeId: chain.prefix.source, handles: [chain.prefix.sourceHandle] } } : {}), + }); + for (const link of links) connect(link.source, link.sourceHandles[0]!, link.target, link.targetHandles[0]!); + if (!chain.native && chain.tail.length > 1) { + const last = adapters[adapters.length - 1]; + const source = last ? { source: last.id, sourceHandle: 'output' } : chain.prefix!; + for (const target of chain.tail.slice(1)) + connect(source.source, source.sourceHandle, target.target, target.targetHandle); + } + if ( + !chain.native && + adapters + .slice(1) + .some((node) => (node.data.params.replace_existing?.value ?? node.data.params.replace_existing?.default) === true) + ) + throw new Error( + 'Only the first adapter can replace existing adapters. Disable that setting before changing its order.', + ); + return restoreVisualOperationGroups(next, chain.unpacked); +} diff --git a/src/workflow/operationAuthoring.ts b/src/workflow/operationAuthoring.ts index cd03c2f1..e27643f3 100644 --- a/src/workflow/operationAuthoring.ts +++ b/src/workflow/operationAuthoring.ts @@ -1,3 +1,6 @@ +import type { PromptEnhancementParent } from '../studio/promptEnhancementAuthoring'; +import { refreshPromptEnhancementParents } from '../studio/promptEnhancementAuthoring'; +import { ancillaryBindingsFromHint, type AncillaryInstanceBinding } from '../studio/ancillaryOperations'; import { operationOwnsModel } from './operationContracts'; import type { Edge } from '@xyflow/react'; import { nanoid } from 'nanoid'; @@ -14,6 +17,7 @@ import { preservedMediaFanout } from './operationMediaMigration'; import { createNodeFromRegistry } from './nodeFactory'; import { acceptsOperationValue as acceptsValue } from './operationFieldValue'; import { operationScope } from './operationScope'; +import type { OperationAuthoringRecipe } from '../studio/operationAuthoringRecipe'; export { operationScope } from './operationScope'; import { unpackVisualOperationGroups, @@ -26,6 +30,8 @@ export type InactiveOperationDraft = { routeKey: string; nodes: CustomNodeType[] /** Advisory provenance for ordinary nodes. It grants no execution authority. */ export type OperationAuthoring = { schemaVersion: 1; + ancillaryBindings?: AncillaryInstanceBinding[]; + ancillaryParent?: PromptEnhancementParent; operation: OperationContract; defaults: Record; retained: RetainedOperationSetting[]; @@ -35,6 +41,7 @@ export type OperationAuthoring = { sharedInputs?: { field: string; name: string; loaderId: string; groupId: string }[]; }; export type OperationStarter = { + authoring?: OperationAuthoringRecipe; pipelineClass: string; task: string; workflowId: string | null; @@ -278,6 +285,13 @@ function attachSharedInputs(nodes: CustomNodeType[], starter: OperationStarter, } } +function assertDetachedEnhancement(scope: CustomNodeType[]) { + if (scope.some((node) => ancillaryBindingsFromHint(node.data.operationAuthoring))) + throw new Error( + 'Disable prompt enhancement before changing this parent model or task. Your authored inputs have not changed.', + ); +} + /** Follow existing canonical connections from one loader. Custom branches are * preserved, and an unrelated loader/Block is never adopted into this scope. */ @@ -318,6 +332,7 @@ export function planPristineOperationChange( ): OperationChangePlan | null { if (graph.nodes.some(visualOperationGroup)) return null; const scope = operationScope(graph, loaderId); + assertDetachedEnhancement(scope); const root = scope.find((n) => n.id === loaderId)!; const hint = operationAuthoring(root)!; if ( @@ -403,7 +418,11 @@ export function planPristineOperationChange( edges.push(candidates[0]!); } return { - graph: { nodes: [...outside, ...fresh.nodes], edges: [...edges, ...fresh.edges] }, + graph: refreshPromptEnhancementParents( + { nodes: [...outside, ...fresh.nodes], edges: [...edges, ...fresh.edges] }, + starter.authoring, + fresh.nodes.map((node) => node.id), + ), changes: [ 'Replace the untouched starter with the selected model’s connected operations; preserve preview nodes and unrelated branches.', ], @@ -438,6 +457,7 @@ export function planOperationChange( return { ...plan, graph: restoreVisualOperationGroups(plan.graph, unpacked, plan.replacements) }; } const scope = operationScope(graph, loaderId); + assertDetachedEnhancement(scope); const root = scope.find((n) => n.id === loaderId)!; if (options.preserveValues && operationAuthoring(root)!.operation.pipelineClass !== starter.pipelineClass) throw new Error('Preserving all current values is only supported within the same pipeline.'); @@ -1208,7 +1228,11 @@ export function planOperationChange( 'An inactive stage identity is now used by another node. Nothing changed; restore it in a separate workflow.', ); return { - graph: { nodes, edges }, + graph: refreshPromptEnhancementParents( + { nodes, edges }, + starter.authoring, + migrated.map((node) => node.id), + ), changes, diagnostics, review: { diff --git a/src/workflow/operationAuthoringHint.ts b/src/workflow/operationAuthoringHint.ts index 2666aad7..0c3ee5e8 100644 --- a/src/workflow/operationAuthoringHint.ts +++ b/src/workflow/operationAuthoringHint.ts @@ -1,3 +1,4 @@ +import { promptEnhancementParentFromHint } from '../studio/promptEnhancementParent'; import type { CustomNodeType } from '../stores/useFlowStore'; import type { OperationAuthoring } from './operationAuthoring'; import { parseOperationContracts } from './operationContracts'; @@ -52,6 +53,7 @@ export function operationAuthoring(node: CustomNodeType): OperationAuthoring | n ) return null; try { + promptEnhancementParentFromHint(hint); const [operation] = parseOperationContracts([hint.operation], 3); if (!operation || operation.nodeKey !== `${node.data.module}.${node.data.action}`) return null; if ( diff --git a/src/workflow/operationContracts.ts b/src/workflow/operationContracts.ts index 370e27e1..84feaebb 100644 --- a/src/workflow/operationContracts.ts +++ b/src/workflow/operationContracts.ts @@ -48,7 +48,7 @@ export type OperationContract = { support: 'declared'; ports: OperationPort[]; workflowId?: string | null; - binding?: { pipelineClass: string; values: Record }; + binding?: { pipelineClass: string; values: Record; executionMode?: string }; }; export function operationOwnsModel( @@ -293,7 +293,19 @@ export function parseOperationContracts(value: unknown, schemaVersion: unknown): const workflowId = !v3 || item.workflowId === null ? null : identifier(item.workflowId); let binding: OperationContract['binding']; if (v3) { - const value = record(item.binding, ['pipelineClass', 'values']); + const hasExecutionMode = + typeof item.binding === 'object' && + item.binding !== null && + Object.prototype.hasOwnProperty.call(item.binding, 'executionMode'); + const value = record(item.binding, ['pipelineClass', 'values', ...(hasExecutionMode ? ['executionMode'] : [])]); + const executionMode = hasExecutionMode ? boundedText(value.executionMode, 64) : undefined; + if ( + executionMode !== undefined && + (!/^[a-z][a-z0-9_]{0,63}$/u.test(executionMode) || + RESERVED.has(executionMode) || + (item.decomposition !== 'loader' && item.decomposition !== 'integrated')) + ) + invalid(); if ( typeof value.values !== 'object' || !value.values || @@ -303,6 +315,7 @@ export function parseOperationContracts(value: unknown, schemaVersion: unknown): invalid(); binding = { pipelineClass: identifier(value.pipelineClass), + ...(executionMode === undefined ? {} : { executionMode }), values: Object.fromEntries( Object.entries(value.values).map(([key, value]) => [identifier(key), identifier(value)]), ), diff --git a/src/workflow/operationScope.ts b/src/workflow/operationScope.ts index 107ce582..65126e95 100644 --- a/src/workflow/operationScope.ts +++ b/src/workflow/operationScope.ts @@ -2,6 +2,29 @@ import type { CustomNodeType } from '../stores/useFlowStore'; import type { OperationGraph } from './operationAuthoring'; import { operationAuthoring } from './operationAuthoringHint'; import { operationOwnsModel } from './operationContracts'; +import { declaredImagePipelineStageContracts } from './imagePipelineStageContracts'; + +/** Structural recognition only; adapter editing still requires current authority. */ +export function declaredImagePipelineStageTail( + graph: OperationGraph, + ownerId: string, + edges: OperationGraph['edges'], +): CustomNodeType[] | null { + const ids = declaredImagePipelineStageContracts( + graph.nodes.map((node) => ({ + id: node.id, + params: node.data.params, + operation: + node.id === ownerId || (!node.parentId && !node.data.blockInstanceV2 && !node.data.blockProjectionOwnerId) + ? operationAuthoring(node)?.operation + : undefined, + })), + ownerId, + graph.edges, + edges, + ); + return ids?.map((id) => graph.nodes.find((node) => node.id === id)!) ?? null; +} export function operationScope(graph: OperationGraph, loaderId: string): CustomNodeType[] { const root = graph.nodes.find((n) => n.id === loaderId); @@ -32,6 +55,48 @@ export function operationScope(graph: OperationGraph, loaderId: string): CustomN .map((n) => [n.id, n]), ); const ids = new Set([loaderId]); + // The reviewed image adapter transports the same owner's pipeline; it is + // not an operation stage. Follow its actual sockets to the declared stages. + const pipelineType = + root.data.params.pipeline?.type === 'audio_diffusion_pipeline' + ? 'audio_diffusion_pipeline' + : 'image_diffusion_pipeline'; + const pipelineSocket = (id: string, handle: string | null | undefined, direction: 'input' | 'output') => { + const field = graph.nodes.find((node) => node.id === id)?.data.params[handle ?? '']; + return field?.type === pipelineType && (field.display === direction || (direction === 'input' && field.isInput)); + }; + const bridges = new Set( + graph.nodes + .filter( + (node) => + node.data.module === + (pipelineType === 'audio_diffusion_pipeline' ? 'modules.DiffusersAudio' : 'modules.DiffusersImage') && + node.data.action === 'LoadAdapter' && + !node.parentId && + !node.data.blockInstanceV2 && + !node.data.blockProjectionOwnerId && + node.data.params.pipeline?.display === 'input' && + node.data.params.pipeline.type === pipelineType && + node.data.params.output?.display === 'output' && + node.data.params.output.type === pipelineType && + graph.edges.filter((edge) => edge.target === node.id && edge.targetHandle === 'pipeline').length === 1 && + (graph.edges.filter((edge) => edge.source === node.id && edge.sourceHandle === 'output').length === 1 || + Boolean( + declaredImagePipelineStageTail( + graph, + loaderId, + graph.edges.filter((edge) => edge.source === node.id && edge.sourceHandle === 'output'), + ), + )) && + graph.edges + .filter((edge) => edge.target === node.id && edge.targetHandle === 'pipeline') + .every((edge) => pipelineSocket(edge.source, edge.sourceHandle, 'output')) && + graph.edges + .filter((edge) => edge.source === node.id && edge.sourceHandle === 'output') + .every((edge) => pipelineSocket(edge.target, edge.targetHandle, 'input')), + ) + .map((node) => node.id), + ); let changed = true; while (changed) { changed = false; @@ -40,14 +105,24 @@ export function operationScope(graph: OperationGraph, loaderId: string): CustomN [edge.source, edge.target], [edge.target, edge.source], ]) { - if (source && target && ids.has(source) && candidates.has(target) && !ids.has(target)) { + const validBridge = + (!bridges.has(edge.source) || edge.sourceHandle === 'output') && + (!bridges.has(edge.target) || edge.targetHandle === 'pipeline'); + if ( + source && + target && + validBridge && + ids.has(source) && + (candidates.has(target) || bridges.has(target)) && + !ids.has(target) + ) { ids.add(target); changed = true; } } } } - const result = [...ids].map((id) => candidates.get(id)!); + const result = [...ids].flatMap((id) => (candidates.has(id) ? [candidates.get(id)!] : [])); if (new Set(result.map((n) => operationAuthoring(n)!.operation.operationId)).size !== result.length) throw new Error( 'This graph has several instances of one stage. Change a separate branch or reconnect it to its own loader first.', diff --git a/src/workflow/operationSharedInputs.ts b/src/workflow/operationSharedInputs.ts index b0fa86c5..7be8904c 100644 --- a/src/workflow/operationSharedInputs.ts +++ b/src/workflow/operationSharedInputs.ts @@ -1,13 +1,35 @@ +import { promptEnhancementParentFromHint, remapPromptEnhancementParent } from '../studio/promptEnhancementParent'; +import { + ancillaryBindingsFromHint, + parseAncillaryBindings, + type AncillaryInstanceBinding, +} from '../studio/ancillaryBindings'; import { operationOwnsModel } from './operationContracts'; import type { Edge } from '@xyflow/react'; import type { FlowGraphNode } from '../stores/flowGraphExport'; import { deepEqual } from '../utils/deepEqual'; import type { OperationAuthoring } from './operationAuthoring'; +function remappedAncillaryBindings(bindings: AncillaryInstanceBinding[], remap: (id: string) => string) { + const mapped = (values: Record) => + Object.fromEntries(Object.entries(values).map(([role, id]) => [role, remap(id)])); + return parseAncillaryBindings( + bindings.map((binding) => ({ + ...binding, + parentRoleNodes: mapped(binding.parentRoleNodes), + roleNodes: mapped(binding.roleNodes), + })), + ); +} + /** Remap advisory loader references with the graph, never by pipeline name. */ export function remapOperationAuthoring(value: unknown, remap: (id: string) => string): OperationAuthoring | undefined { + const ancillary = ancillaryBindingsFromHint(value); + const parent = promptEnhancementParentFromHint(value); if (!value || typeof value !== 'object' || Array.isArray(value)) return undefined; const hint = structuredClone(value) as OperationAuthoring; + if (ancillary) hint.ancillaryBindings = remappedAncillaryBindings(ancillary, remap); + if (parent) hint.ancillaryParent = remapPromptEnhancementParent(parent, remap); if (Array.isArray(hint.sharedInputs)) hint.sharedInputs = hint.sharedInputs.map((binding) => binding && typeof binding.loaderId === 'string' ? { ...binding, loaderId: remap(binding.loaderId) } : binding, @@ -20,6 +42,10 @@ export function remapOperationAuthoring(value: unknown, remap: (id: string) => s node.id = remap(node.id); if (node.parentId) node.parentId = remap(node.parentId); const saved = node.data.operationAuthoring; + const savedAncillary = ancillaryBindingsFromHint(saved); + const savedParent = promptEnhancementParentFromHint(saved); + if (saved && savedParent) saved.ancillaryParent = remapPromptEnhancementParent(savedParent, remap); + if (saved && savedAncillary) saved.ancillaryBindings = remappedAncillaryBindings(savedAncillary, remap); if (Array.isArray(saved?.sharedInputs)) saved.sharedInputs = saved.sharedInputs.map((binding) => typeof binding?.loaderId === 'string' ? { ...binding, loaderId: remap(binding.loaderId) } : binding, diff --git a/src/workflow/operationStarterRequest.ts b/src/workflow/operationStarterRequest.ts index b86c14ff..535d388a 100644 --- a/src/workflow/operationStarterRequest.ts +++ b/src/workflow/operationStarterRequest.ts @@ -1,16 +1,19 @@ import { operationOwnsModel } from './operationContracts'; +import { declaredImagePipelineStageContracts } from './imagePipelineStageContracts'; import config from '../../app.config'; import { requestJson } from '../utils/requestJson'; import { connectionTypesAreCompatible } from '../theme/connectionTypeCompatibility'; import { boundedText, identifier, record, parseOperationContracts, type OperationContract } from './operationContracts'; import { parseResolvedOperation } from './operationResolution'; import type { OperationStarter } from './operationAuthoring'; +import { parseOperationAuthoringRecipe, type OperationAuthoringSelection } from '../studio/operationAuthoringRecipe'; export function parseOperationStarter( value: unknown, pipelineClass: string, task: string, operations: OperationContract[], + selection: OperationAuthoringSelection & { repository?: string } = {}, ): OperationStarter { const payload = record(value, [ 'schemaVersion', @@ -22,6 +25,7 @@ export function parseOperationStarter( 'requiredInputs', 'sharedInputs', 'upstreamBlocks', + ...(selection.authoringRecipeId ? ['authoring'] : []), ]); const invalid = () => { throw new Error('Invalid operation starter. Reload capabilities and try again.'); @@ -53,10 +57,11 @@ export function parseOperationStarter( }); const byId = new Map(nodes.map((n) => [n.operation.operationId, n])); const expected = operations.filter((o) => o.pipelineClass === pipelineClass && o.task === task); + if (byId.size !== nodes.length || nodes.filter((n) => operationOwnsModel(n.operation)).length !== 1) invalid(); + const declaredWorkflows = new Set(nodes.map((node) => node.operation.workflowId).filter((id) => id !== null)); if ( - byId.size !== nodes.length || - expected.length !== nodes.length || - nodes.filter((n) => operationOwnsModel(n.operation)).length !== 1 + declaredWorkflows.size > 1 || + (payload.workflowId === null ? declaredWorkflows.size !== 0 : !declaredWorkflows.has(payload.workflowId as string)) ) invalid(); const targets = new Set(); @@ -84,6 +89,81 @@ export function parseOperationStarter( targets.add(key); return { source, sourceHandle, target, targetHandle }; }); + const stageKinds = new Set(['image_encoder', 'denoise', 'decoder']); + const owners = expected.filter(operationOwnsModel); + const stages = expected.filter( + (operation) => operation.decomposition === 'bundle' && stageKinds.has(operation.nodeType), + ); + const whole = expected.filter( + (operation) => operation.decomposition === 'pipeline' && operation.nodeType === 'pipeline', + ); + const alternateImageRoutes = + expected.length === 5 && + owners.length === 1 && + stages.length === 3 && + whole.length === 1 && + new Set(expected.map((operation) => operation.operationId)).size === 5 && + new Set(stages.map((operation) => operation.nodeType)).size === 3; + if (alternateImageRoutes) { + const owner = owners[0]!; + const sameRoute = (route: OperationContract[]) => + route.length === nodes.length && route.every((operation) => byId.has(operation.operationId)); + const pipelineEdges = edges.filter((edge) => edge.source === owner.operationId); + const ownerNode = byId.get(owner.operationId)!; + if ( + selection.executionProfileId && + (ownerNode.node.params.execution_profile_id?.value ?? ownerNode.node.params.execution_profile_id?.default) !== + selection.executionProfileId + ) + invalid(); + const scope = owner.binding?.pipelineClass ?? owner.pipelineClass; + const outgoing = owner.ports.filter( + (port) => + port.direction === 'output' && + port.types.length === 1 && + port.types[0] === 'image_diffusion_pipeline' && + port.semantics?.kind === 'pipeline' && + port.semantics.owner === 'same_loader' && + port.semantics.scope === scope, + ); + if (outgoing.length !== 1 || pipelineEdges.some((edge) => edge.sourceHandle !== outgoing[0]!.name)) invalid(); + if (sameRoute([owner, ...stages])) { + if ( + !declaredImagePipelineStageContracts( + nodes.map(({ operation, node }) => ({ id: operation.operationId, operation, params: node.params })), + owner.operationId, + edges, + pipelineEdges, + ) + ) + invalid(); + } else if (sameRoute([owner, whole[0]!])) { + const consumer = whole[0]!; + const incoming = consumer.ports.filter( + (port) => + port.direction === 'input' && + port.types.length === 1 && + port.types[0] === 'image_diffusion_pipeline' && + port.semantics?.kind === 'pipeline' && + port.semantics.owner === 'same_loader' && + port.semantics.scope === scope, + ); + if ( + outgoing.length !== 1 || + incoming.length !== 1 || + edges.length !== 1 || + edges[0]!.source !== owner.operationId || + edges[0]!.sourceHandle !== outgoing[0]!.name || + edges[0]!.target !== consumer.operationId || + edges[0]!.targetHandle !== incoming[0]!.name || + !consumer.ports.some( + (port) => port.direction === 'output' && port.types.includes('image') && port.semantics?.kind === 'media', + ) + ) + invalid(); + } else invalid(); + } else if (expected.length !== nodes.length) invalid(); + const visited = new Set(), visiting = new Set(); function visit(id: string) { @@ -128,7 +208,24 @@ export function parseOperationStarter( }); return { name, members }; }); + if (selection.repository !== undefined) { + const owners = nodes.filter((row) => operationOwnsModel(row.operation)); + const field = owners.length === 1 && (owners[0]!.node.params.repo_id ?? owners[0]!.node.params.model_id); + const value = field && (field.value ?? field.default); + if ( + !value || + typeof value !== 'object' || + !('source' in value) || + value.source !== 'hub' || + !('value' in value) || + value.value !== selection.repository + ) + invalid(); + } return { + ...(selection.authoringRecipeId + ? { authoring: parseOperationAuthoringRecipe(payload.authoring, { ...selection, pipelineClass, task }) } + : {}), pipelineClass, task, workflowId: payload.workflowId as string | null, @@ -146,13 +243,26 @@ export function requestOperationStarter( operations: OperationContract[], signal?: AbortSignal, executionProfileId?: string, + authoringRecipeId?: string, + repository?: string, ) { return requestJson(`${config.serverAddress}/operations/starter`, { method: 'POST', headers: { 'Content-Type': 'application/json' }, - body: JSON.stringify({ pipelineClass, task, ...(executionProfileId ? { executionProfileId } : {}) }), + body: JSON.stringify({ + pipelineClass, + task, + ...(executionProfileId ? { executionProfileId } : {}), + ...(authoringRecipeId ? { authoringRecipeId } : {}), + ...(repository ? { repository } : {}), + }), signal, - parse: (value) => parseOperationStarter(value, pipelineClass, task, operations), + parse: (value) => + parseOperationStarter(value, pipelineClass, task, operations, { + executionProfileId, + authoringRecipeId, + repository, + }), }); } diff --git a/src/workflow/prepareExecutionScope.ts b/src/workflow/prepareExecutionScope.ts new file mode 100644 index 00000000..8b907aca --- /dev/null +++ b/src/workflow/prepareExecutionScope.ts @@ -0,0 +1,292 @@ +import type { Edge } from '@xyflow/react'; +import { + useFlowStore, + expandFlowExecutionGraph, + flowExecutionScopeSourceKey, + resolveFlowExecutionTargetNodeIds, + type CustomNodeType, + type APIGraphExport, +} from '../stores/useFlowStore'; +import { + captureWorkflowOperationContext, + assertWorkflowOperationContext, + type WorkflowOperationContext, +} from '../stores/useStudioStore'; +import { blockProjectionNodeIdV2 } from '../studio/blockRuntimeV2'; +import { canonicalBlockStringifyV2 } from '../studio/blockSchemaV2'; +import { ancillaryBindingsFromHint, invalidAncillary } from '../studio/ancillaryBindings'; +import type { OperationAuthoringRecipe } from '../studio/operationAuthoringRecipe'; +import type { AncillaryScopeResult } from './ancillaryExecutionScope'; + +/** Local freshness witness only. The server independently validates every claim. */ +export type PreparedExecutionScope = Readonly<{ readonly scope: unique symbol }>; +export type PrepareExecutionScopeOptions = { + targetNodeId?: string; + previewTarget?: { nodeId: string; outputField: string }; + workflowContext?: WorkflowOperationContext; + signal?: AbortSignal; +}; +type Resolved = { + sourceKey: string; + targetNodeId: string | undefined; + result: AncillaryScopeResult; + context: WorkflowOperationContext; + rootNodeIds: Set; + exportedGraph?: APIGraphExport; +}; +const resolved = new WeakMap(); + +/** Only active durable graph data is examined; never inactive route drafts. */ +export function hasAncillaryExecutionClaim(nodes: CustomNodeType[]): boolean { + return nodes.some((node) => { + if (ancillaryBindingsFromHint(node.data.operationAuthoring)) return true; + const effective = node.data.blockInstanceV2?.effectiveGraph.nodes; + if (effective?.some((leaf) => ancillaryBindingsFromHint(leaf.data.operationAuthoring))) return true; + const snapshot = node.data.userBlockSnapshot; + return ( + snapshot?.nodes.some((leaf) => { + if (!leaf || typeof leaf !== 'object' || !('data' in leaf)) return false; + const data = leaf.data; + return Boolean( + data && + typeof data === 'object' && + 'operationAuthoring' in data && + ancillaryBindingsFromHint(data.operationAuthoring), + ); + }) ?? false + ); + }); +} + +export function assertPreparedExecutionScope( + scope: PreparedExecutionScope | undefined, + sourceKey: string, + targetNodeId: string | undefined, +): AncillaryScopeResult { + const current = scope && resolved.get(scope); + if (!current || current.sourceKey !== sourceKey || current.targetNodeId !== targetNodeId) + invalidAncillary('resolve a fresh execution scope for this exact workflow and target before export.'); + assertWorkflowOperationContext(current.context); + return current.result; +} + +export function executionScopeIncludesRoot(scope: PreparedExecutionScope | undefined, rootId: string) { + return scope === undefined || resolved.get(scope)?.rootNodeIds.has(rootId) === true; +} + +export function executionScopeRootIds(scope: PreparedExecutionScope | undefined) { + return scope ? [...(resolved.get(scope)?.rootNodeIds ?? [])] : undefined; +} + +export function assertCurrentExecutionScope(scope: PreparedExecutionScope | undefined) { + if (scope) { + const current = resolved.get(scope); + if (!current) invalidAncillary('unknown execution scope.'); + assertPreparedExecutionScope(scope, currentFlow().sourceKey(), current.targetNodeId); + } +} + +/** Export may synchronously commit its existing randomized seed values. */ +export function recordExecutionScopeExport(scope: PreparedExecutionScope, sourceKey: string, graph: APIGraphExport) { + const current = resolved.get(scope); + if (!current) invalidAncillary('unknown execution scope.'); + current.sourceKey = sourceKey; + current.exportedGraph = structuredClone(graph); +} + +export function assertExecutionScopeSubmission(scope: PreparedExecutionScope, graph: APIGraphExport) { + assertCurrentExecutionScope(scope); + const expected = resolved.get(scope)?.exportedGraph; + if (!expected) invalidAncillary('execution scope has not been exported.'); + assertExecutionScopeGraph(graph, expected); +} + +export function assertExecutionScopeGraph(graph: APIGraphExport, expected: APIGraphExport) { + const shape = (value: APIGraphExport) => ({ + nodes: value.nodes, + paths: value.paths, + loopsPresent: Object.prototype.hasOwnProperty.call(value, 'loops'), + loops: value.loops ?? null, + purposePresent: Object.prototype.hasOwnProperty.call(value.runtimeHints ?? {}, 'executionPurpose'), + purpose: value.runtimeHints?.executionPurpose ?? null, + }); + if (canonicalBlockStringifyV2(shape(graph)) !== canonicalBlockStringifyV2(shape(expected))) + invalidAncillary('prepared nodes, paths, loops or execution purpose differ from the resolved scope.'); +} + +/** The unclaimed path deliberately stays synchronous and does not fetch metadata. */ +export function prepareExecutionScope( + options: PrepareExecutionScopeOptions = {}, +): Promise | undefined { + const state = currentFlow(); + if (!hasAncillaryExecutionClaim(state.nodes)) { + if (options.previewTarget) invalidAncillary('Preview needs a current declared binding.'); + return undefined; + } + const context = { ...(options.workflowContext ?? captureWorkflowOperationContext()) }; + return resolve(state, state.sourceKey(), context, options); +} + +type FlowAccess = { + nodes: CustomNodeType[]; + edges: Edge[]; + sourceKey: () => string; + expand: () => { nodes: CustomNodeType[]; edges: Edge[] }; + targets: (target?: string) => string[] | undefined; +}; +function currentFlow(): FlowAccess { + const state = useFlowStore.getState(); + return { + nodes: state.nodes, + edges: state.edges, + sourceKey: () => flowExecutionScopeSourceKey(useFlowStore.getState().nodes, useFlowStore.getState().edges), + expand: () => expandFlowExecutionGraph(state.nodes, state.edges), + targets: (target) => resolveFlowExecutionTargetNodeIds(state.nodes, target, state.edges), + }; +} + +async function resolve( + initial: FlowAccess, + sourceKey: string, + context: WorkflowOperationContext, + options: PrepareExecutionScopeOptions, +): Promise { + const { useNodesStore } = await import('../stores/useNodeStore'); + const { requestOperationStarter } = await import('./operationStarterRequest'); + const { selectAncillaryExecutionScope, captureCurrentAncillaryParentDefinition } = + await import('./ancillaryExecutionScope'); + const checkSource = () => { + assertWorkflowOperationContext(context); + if (currentFlow().sourceKey() !== sourceKey) invalidAncillary('workflow changed while resolving its declaration.'); + options.signal?.throwIfAborted(); + }; + checkSource(); + const native = initial.expand(); + const claims = native.nodes.flatMap((node) => ancillaryBindingsFromHint(node.data.operationAuthoring) ?? []); + if (!claims.length || claims.length > 4) invalidAncillary('claimed binding is not in the active native graph.'); + const roleIds = new Set( + claims.flatMap((claim) => [...Object.values(claim.parentRoleNodes), ...Object.values(claim.roleNodes)]), + ); + const actions = [ + ...new Set( + native.nodes.filter((node) => roleIds.has(node.id)).map((node) => `${node.data.module}.${node.data.action}`), + ), + ].sort(); + const metadataKey = () => + canonicalBlockStringifyV2({ + operations: useNodesStore + .getState() + .operationContracts.filter((operation) => + claims.some( + (claim) => operation.pipelineClass === claim.parent.pipelineClass && operation.task === claim.parent.task, + ), + ), + registry: actions.map((action) => [action, useNodesStore.getState().nodesRegistry[action] ?? null]), + }); + const originalMetadata = metadataKey(); + const check = () => { + checkSource(); + if (metadataKey() !== originalMetadata) + invalidAncillary('selected registry or operation metadata changed while resolving the declaration.'); + }; + const parents: Array<{ + recipe: OperationAuthoringRecipe; + selection: (typeof claims)[number]['parent']; + definition: ReturnType; + }> = []; + for (const claim of claims) { + const identity = claim.parent; + const operations = useNodesStore.getState().operationContracts; + const selection = { ...identity }; + const starter = await requestOperationStarter( + identity.pipelineClass, + identity.task, + operations, + options.signal, + identity.executionProfileId, + identity.authoringRecipeId, + ); + check(); + if (!starter.authoring) invalidAncillary('current metadata has no selected authoring declaration.'); + const recipe = starter.authoring; + const literal = (role: string, field: string) => { + const id = claim.parentRoleNodes[role]; + const node = native.nodes.find((candidate) => candidate.id === id); + const param = node?.data.params[field]; + if (!node || !param || native.edges.some((edge) => edge.target === id && edge.targetHandle === field)) + invalidAncillary('model identity must be an actual bound authored literal.'); + return param.value ?? param.default; + }; + const repositoryBindings = recipe.bindings.filter(([, , source]) => source === 'artifact'); + if (repositoryBindings.length !== 1) invalidAncillary('current declaration has no unique model artifact binding.'); + const [role, field] = repositoryBindings[0]!; + const artifact = literal(role, field); + if ( + !artifact || + typeof artifact !== 'object' || + Array.isArray(artifact) || + !('source' in artifact) || + artifact.source !== 'hub' || + !('value' in artifact) || + typeof artifact.value !== 'string' || + !artifact.value + ) + invalidAncillary('selected model needs an immutable Hub repository.'); + const selected = await requestOperationStarter( + identity.pipelineClass, + identity.task, + operations, + options.signal, + identity.executionProfileId, + identity.authoringRecipeId, + artifact.value, + ); + check(); + if (!selected.authoring || canonicalBlockStringifyV2(recipe) !== canonicalBlockStringifyV2(selected.authoring)) + invalidAncillary('selected repository changed the current authoring declaration.'); + for (const [boundRole, boundField, source] of recipe.bindings) { + if (source !== 'pipelineClass' && source !== 'defaultRevision') continue; + const actual = literal(boundRole, boundField); + const expected = + source === 'pipelineClass' + ? identity.pipelineClass + : selected.nodes + .filter(({ operation }) => operation.nodeKey === recipe.roles.find(([role]) => role === boundRole)?.[1]) + .flatMap(({ node }) => { + const value = node.params[boundField]?.value ?? node.params[boundField]?.default; + return typeof value === 'string' && /^[a-f0-9]{40}$/u.test(value) ? [value] : []; + }); + if ( + source === 'pipelineClass' + ? actual !== expected + : !Array.isArray(expected) || expected.length !== 1 || actual !== expected[0] + ) + invalidAncillary('current model identity or immutable revision differs from selected metadata.'); + } + parents.push({ recipe, selection, definition: captureCurrentAncillaryParentDefinition(selected, claim, check) }); + } + check(); + const result = selectAncillaryExecutionScope({ + ...native, + parents, + registry: useNodesStore.getState().nodesRegistry, + kind: options.previewTarget ? 'explicit_preview' : 'workflow', + target: options.previewTarget, + workflowTargetNodeIds: options.previewTarget ? undefined : initial.targets(options.targetNodeId), + }); + const selectedIds = new Set(result.nodeIds); + const rootNodeIds = new Set( + initial.nodes + .filter( + (node) => + selectedIds.has(node.id) || + node.data.blockInstanceV2?.effectiveGraph.nodes.some(({ nodeId }) => + selectedIds.has(blockProjectionNodeIdV2(node.id, nodeId)), + ), + ) + .map((node) => node.id), + ); + const witness = Object.freeze({}) as PreparedExecutionScope; + resolved.set(witness, { sourceKey, context, targetNodeId: options.targetNodeId, result, rootNodeIds }); + return witness; +} diff --git a/src/workflow/selectedAudioAdapterAuthority.ts b/src/workflow/selectedAudioAdapterAuthority.ts new file mode 100644 index 00000000..c1f479e5 --- /dev/null +++ b/src/workflow/selectedAudioAdapterAuthority.ts @@ -0,0 +1,187 @@ +import type { CustomNodeType } from '../stores/useFlowStore'; +import type { OperationGraph } from './operationAuthoring'; +import type { ModelSetupAdapterAuthority } from './modelSetupAdapters'; +import { operationOwnsModel } from './operationContracts'; +import { operationAuthoring } from './operationAuthoringHint'; +import { parseAdapterAuthoringPolicy } from '../studio/optionalRuntimes'; +import { nodeConnectionSemanticsAreCompatible } from './nodeConnectionMatching'; +import { connectionTypesAreCompatible } from '../theme/connectionTypeCompatibility'; +import { deepEqual } from '../utils/deepEqual'; + +const ADAPTER = 'modules.DiffusersAudio.LoadAdapter'; +const nodeKey = (node: CustomNodeType) => `${node.data.module}.${node.data.action}`; +function record(value: unknown): value is Record { + return Boolean(value && typeof value === 'object' && !Array.isArray(value)); +} + +/** New authoring authority comes only from current discovery and the selected + * immutable profile. Saved signals and nominal socket types are insufficient. */ +export function selectedAudioAdapterPolicy( + owner: CustomNodeType, + graph: OperationGraph, + tail: readonly { target: string; targetHandle: string }[], + authority: ModelSetupAdapterAuthority | undefined, +) { + const refresh = 'Refresh current audio model capabilities before editing LoRA.'; + if ( + !authority?.studioModelCapabilitiesAuthoritative || + authority.studioExecutionSpecInvalid || + authority.discoveryRequests.nodes.status !== 'success' || + authority.discoveryRequests.capabilities.status !== 'success' + ) + return refresh; + const operation = operationAuthoring(owner)?.operation; + const current = authority.operationContracts.filter( + (item) => + item.pipelineClass === operation?.pipelineClass && + item.task === operation.task && + item.operationId === operation.operationId && + item.nodeKey === nodeKey(owner) && + operationOwnsModel(item), + ); + const supports = authority.pipelineSupport.filter((item) => item.pipelineClass === operation?.pipelineClass); + const tasks = supports.flatMap((item) => item.tasks.filter((task) => task.task === operation?.task)); + if ( + current.length !== 1 || + tasks.length !== 1 || + !deepEqual(current[0], operation) || + !tasks[0]!.operationIds.includes(operation!.operationId) + ) + return refresh; + const task = tasks[0]!; + const literal = (name: string) => { + const field = owner.data.params[name]; + if ( + !field || + field.value === null || + field.dataSource || + graph.edges.some((edge) => edge.target === owner.id && edge.targetHandle === name) + ) + return undefined; + return field.value ?? field.default; + }; + const pipeline = literal('pipeline_class'), + repository = literal('model_id'), + revision = literal('revision'); + if ( + pipeline !== operation!.pipelineClass || + !record(repository) || + repository.source !== 'hub' || + typeof repository.value !== 'string' || + typeof revision !== 'string' || + !/^[a-f0-9]{40}$/u.test(revision) + ) + return 'Select a reviewed audio model and exact revision before editing LoRA.'; + const matches = authority.studioModelCapabilities.flatMap((capability) => + (capability.executionProfiles ?? []).filter( + (profile) => + profile.model_type === capability.modelType && + profile.pipeline_class === pipeline && + profile.loader_module === owner.data.module && + profile.loader_action === owner.data.action && + profile.execution_path === 'direct-diffusers-audio' && + task.executionProfileIds.includes(profile.id) && + [profile.default_repo, profile.fallback_repo, ...(profile.compatible_repos ?? [])].includes( + repository.value as string, + ), + ), + ); + if (matches.length !== 1) + return 'The selected audio model profile is unavailable or ambiguous. Refresh capabilities.'; + const profile = matches[0]!; + if (!Object.prototype.hasOwnProperty.call(profile, 'adapterAuthoring')) + return 'The selected audio model has no reviewed LoRA authoring policy.'; + let policy; + try { + policy = parseAdapterAuthoringPolicy( + profile.adapterAuthoring, + profile.modes, + profile.repository_revisions, + profile, + ); + } catch { + return 'The selected audio adapter authoring policy is invalid. Refresh capabilities.'; + } + if ( + policy.mediaKind !== 'audio' || + policy.adapterNodeKey !== ADAPTER || + policy.maxOwnedAdapters !== 1 || + !profile.modes.some((mode) => mode === task.task) || + !policy.tasks.includes(task.task) || + !policy.repositoryRevisions.some((pair) => pair.repo === repository.value && pair.revision === revision) || + !profile.repository_revisions?.some((pair) => pair.repo === repository.value && pair.revision === revision) + ) + return 'The selected audio model policy does not authorize this task and revision.'; + const loader = authority.nodesRegistry[nodeKey(owner)], + adapter = authority.nodesRegistry[ADAPTER]; + const signal = owner.data.params.pipeline?.signal?.value; + const actionModes = record(signal) && record(signal.actions) && adapter ? signal.actions[adapter.action] : undefined; + if ( + !loader || + !adapter || + `${loader.module}.${loader.action}` !== nodeKey(owner) || + `${adapter.module}.${adapter.action}` !== ADAPTER || + literal('mode') !== task.task || + !record(signal) || + signal.schemaVersion !== 1 || + signal.library !== 'diffusers' || + signal.mediaKind !== 'audio' || + signal.pipelineClass !== pipeline || + signal.mode !== task.task || + signal.repository !== repository.value || + !Array.isArray(actionModes) || + !actionModes.includes(task.task) + ) + return 'Refresh the selected audio pipeline signal before editing LoRA.'; + const input = adapter.params.pipeline, + output = adapter.params.output, + pipelineField = owner.data.params.pipeline; + const forwarding = input?.onSignal, + compatibility = input?.signalCompatibility; + if ( + !record(forwarding) || + Object.keys(forwarding).sort().join() !== 'action,target' || + forwarding.action !== 'signal' || + forwarding.target !== 'output' || + !record(compatibility) || + Object.keys(compatibility).sort().join() !== 'action,required' || + compatibility.required !== true || + compatibility.action !== '$node' || + output?.signal?.direction !== 'output' || + output.signal.origin !== 'pipeline' + ) + return 'Refresh the registered audio adapter signal forwarding contract before editing LoRA.'; + if ( + pipelineField?.display !== 'output' || + pipelineField.type !== 'audio_diffusion_pipeline' || + loader.params.pipeline?.display !== 'output' || + loader.params.pipeline.type !== pipelineField.type || + input?.display !== 'input' || + input.type !== pipelineField.type || + output?.display !== 'output' || + output.type !== pipelineField.type || + !connectionTypesAreCompatible(pipelineField.type, input.type) || + !nodeConnectionSemanticsAreCompatible(owner.data, 'pipeline', adapter, 'pipeline') + ) + return 'The backend audio adapter does not declare compatible pipeline sockets. Refresh capabilities.'; + if (tail.length !== 1) return 'Keep one declared audio generation consumer before editing LoRA.'; + const consumer = graph.nodes.find((node) => node.id === tail[0]!.target); + const declared = consumer && operationAuthoring(consumer)?.operation; + const consumers = authority.operationContracts.filter( + (item) => + item.pipelineClass === pipeline && + item.task === task.task && + item.operationId === declared?.operationId && + item.nodeKey === (consumer && nodeKey(consumer)), + ); + if ( + !consumer || + consumers.length !== 1 || + !deepEqual(consumers[0], declared) || + !task.operationIds.includes(declared!.operationId) || + !declared!.ports.some((port) => port.direction === 'output' && port.types.includes('audio')) || + consumer.data.params[tail[0]!.targetHandle]?.type !== pipelineField.type + ) + return 'Keep the current declared audio generation consumer before editing LoRA.'; + return policy; +} diff --git a/src/workflow/visualOperationGroupProjection.ts b/src/workflow/visualOperationGroupProjection.ts index 3a30a0e7..23fff2f3 100644 --- a/src/workflow/visualOperationGroupProjection.ts +++ b/src/workflow/visualOperationGroupProjection.ts @@ -1,6 +1,6 @@ import type { CustomNodeType } from '../stores/useFlowStore'; import type { NodeData } from '../stores/useNodeStore'; -import type { BlockJsonValue } from '../studio/blockSchemaV2'; +import { blockInstancePreviewBindingsV2, type BlockJsonValue } from '../studio/blockSchemaV2'; import { blockOperationGraphV2 } from '../studio/blockRuntimeV2'; import { blockConnectionTargetsV2 } from '../studio/blockCrossingConnectionsV2'; import { setBlockFieldValuesV1 } from '../studio/blockContainerEditingV1'; @@ -11,6 +11,7 @@ import { remapOperationAuthoring, sharedOperationInput } from './operationShared * renderer/store. Structural grouping stays in its on-demand planner module. */ export type VisualOperationGroup = 'inputs' | 'guidance' | 'setup' | 'mask' | 'output'; export const VISUAL_STAGE_PROVIDER = 'modiff.visual-stages.v1/'; +export const COMBINED_INPUT_PROVIDER = 'modiff.visual-stages.v2/inputs'; export const VISUAL_STAGE_LABELS = { inputs: 'Encode Inputs', guidance: 'Guidance', @@ -26,10 +27,52 @@ export const VISUAL_STAGE_NAMES = { output: 'image output', }; +/** Media changes presentation wording only; it never grants execution. */ +export function visualStagePresentation(kind: VisualOperationGroup, media?: 'image' | 'audio' | null) { + return kind === 'output' && media === 'audio' + ? { label: 'Audio Output', name: 'audio output' } + : { label: VISUAL_STAGE_LABELS[kind], name: VISUAL_STAGE_NAMES[kind] }; +} + +export function visualOperationGroupMedia(node: Pick): 'image' | 'audio' | null { + const instance = node.data.blockInstanceV2; + const object = (value: unknown): value is Record => + Boolean(value && typeof value === 'object' && !Array.isArray(value)); + const declaredMedia = new Set<'image' | 'audio'>(); + for (const node of instance?.effectiveGraph.nodes ?? []) { + const hint = node.data.operationAuthoring; + const operation = object(hint) && hint.operation; + if ( + !object(operation) || + !Array.isArray(operation.ports) || + !( + operation.operationId === 'diffusion.decode_latents' || + operation.nodeType === 'decoder' || + operation.nodeType === 'decode' + ) + ) + continue; + for (const port of operation.ports) { + if (!object(port) || port.direction !== 'output' || !Array.isArray(port.types)) continue; + for (const media of ['image', 'audio'] as const) if (port.types.includes(media)) declaredMedia.add(media); + } + } + // Removing or adding a player does not change the real output stage's media. + if (declaredMedia.size === 1) return declaredMedia.has('audio') ? 'audio' : 'image'; + const previews = instance ? blockInstancePreviewBindingsV2(instance.definitionSnapshot, instance.effectiveGraph) : []; + const media = new Set(previews.map((preview) => preview.mediaType)); + return media.size === 1 && (media.has('image') || media.has('audio')) + ? media.has('audio') + ? 'audio' + : 'image' + : null; +} + /** Presentation provenance only; never execution permission or a model selector. */ export function visualOperationGroup(node: CustomNodeType): VisualOperationGroup | null { const source = node.data.blockInstanceV2?.definitionSnapshot.source; if (source?.kind !== 'user') return null; + if (source.provider === COMBINED_INPUT_PROVIDER) return 'inputs'; return ( (Object.keys(VISUAL_STAGE_LABELS) as VisualOperationGroup[]).find( (kind) => source.provider === `${VISUAL_STAGE_PROVIDER}${kind}`, @@ -74,6 +117,13 @@ function projectVisualOperationGroups( const semantic = new Map>(); const nodes = graph.nodes.filter((node) => !ids.has(node.id) && !ids.has(node.data.blockProjectionOwnerId ?? '')); const internalEdges: OperationGraph['edges'] = []; + // Resolve references across all groups before reading a leaf. Otherwise an + // input group preceding Model Setup can retain an obsolete loader reference. + for (const root of roots) { + const instance = root.data.blockInstanceV2!; + for (const node of blockOperationGraphV2(instance).nodes) + projected.set(node.id, `${root.id}/${node.data.blockProjectionNodeId}`); + } for (const root of roots) { const instance = root.data.blockInstanceV2!; if ( @@ -140,7 +190,13 @@ function projectVisualOperationGroups( })), ); }); - const result = { nodes, edges: [...edges, ...internalEdges] }; + const result = { + nodes: nodes.map((node) => { + const hint = remapOperationAuthoring(node.data.operationAuthoring, (id) => projected.get(id) ?? id); + return hint ? { ...node, data: { ...node.data, operationAuthoring: hint } } : node; + }), + edges: [...edges, ...internalEdges], + }; if (new Set(nodes.map((node) => node.id)).size !== nodes.length) throw new Error('Visual group node identity collision.'); return { graph: result, roots, members }; diff --git a/src/workflow/visualOperationGroups.ts b/src/workflow/visualOperationGroups.ts index 67c16d3c..9554b12e 100644 --- a/src/workflow/visualOperationGroups.ts +++ b/src/workflow/visualOperationGroups.ts @@ -13,7 +13,7 @@ import { type BlockPortV2, type BlockPreviewBindingV2, } from '../studio/blockSchemaV2'; -import { createBlockRootNodeV2, parameterCustomizationState } from '../studio/blockRuntimeV2'; +import { blockProjectionNodeIdV2, createBlockRootNodeV2, parameterCustomizationState } from '../studio/blockRuntimeV2'; import type { OperationGraph } from './operationAuthoring'; import { operationAuthoring } from './operationAuthoringHint'; import { operationScope } from './operationScope'; @@ -27,7 +27,9 @@ import { visualOperationGroup, unpackVisualOperationGroups, VISUAL_STAGE_LABELS, + visualStagePresentation, VISUAL_STAGE_PROVIDER as PROVIDER, + COMBINED_INPUT_PROVIDER, type VisualOperationGroup, } from './visualOperationGroupProjection'; export { @@ -42,11 +44,26 @@ export { function stageKind(node: CustomNodeType): VisualOperationGroup | null { const operation = operationAuthoring(node)?.operation; + if ( + !operation && + node.data.studioRole === 'guider' && + Object.values(node.data.params).some((param) => param.display === 'output' && param.type === 'custom_guider') + ) + return 'guidance'; if (!operation || !['block', 'bundle'].includes(operation.decomposition) || operation.task?.includes('video')) return null; if (['text_encoder', 'vae_encoder', 'image_encoder'].includes(operation.nodeType)) return 'inputs'; if (['guidance', 'guidance_layers'].includes(operation.nodeType)) return 'guidance'; - if (operation.nodeType === 'decoder' && workflowTaskCategory(operation.task ?? '') === 'Image') return 'output'; + if ( + ['Image', 'Audio'].includes(workflowTaskCategory(operation.task ?? '')) && + (operation.nodeType === 'decoder' || operation.operationId === 'diffusion.decode_latents') && + operation.ports.some( + (port) => + port.direction === 'output' && + port.types.includes(workflowTaskCategory(operation.task ?? '') === 'Audio' ? 'audio' : 'image'), + ) + ) + return 'output'; return null; } @@ -54,16 +71,55 @@ const nodeKey = (node: CustomNodeType) => `${node.data.module}.${node.data.actio const SETUP_UTILITIES = new Set([ 'modules.ModularDiffusers.Lora', 'modules.DiffusersImage.LoadAdapter', + 'modules.DiffusersAudio.LoadAdapter', 'modules.DiffusersRuntime.PipelineQuantizationConfigV2', 'modules.DiffusersRuntime.DiffusersExecutionRecipe', ]); /** Select existing, connected implementations only. Never manufacture a mask, * decoder or modifier from a model name, task label or repository. */ -function operationStageMembers(graph: OperationGraph, ownerId: string, kind: VisualOperationGroup) { +function operationStageMembers( + graph: OperationGraph, + ownerId: string, + kind: VisualOperationGroup, + combineGuidance = false, +) { const scope = operationScope(graph, ownerId); + if (kind === 'inputs' && combineGuidance) { + const ids = new Set(scope.map((node) => node.id)); + for (const node of graph.nodes) { + if ( + ids.has(node.id) || + node.parentId || + node.data.blockInstanceV2 || + node.data.blockProjectionOwnerId || + operationAuthoring(node) || + stageKind(node) !== 'guidance' + ) + continue; + const outgoing = graph.edges.filter((edge) => edge.source === node.id); + if ( + outgoing.length && + outgoing.every((edge) => { + const from = node.data.params[edge.sourceHandle ?? '']; + const to = scope.find((target) => target.id === edge.target)?.data.params[edge.targetHandle ?? '']; + return ( + ids.has(edge.target) && + from?.display === 'output' && + from.type === 'custom_guider' && + to?.type === 'custom_guider' && + (to.display === 'input' || to.isInput) + ); + }) && + !graph.edges.some((edge) => edge.target === node.id && !ids.has(edge.source)) + ) + scope.push(node); + } + } if (kind === 'inputs' || kind === 'guidance') { - const members = scope.filter((node) => stageKind(node) === kind); + const members = scope.filter( + (node) => stageKind(node) === kind || (kind === 'inputs' && combineGuidance && stageKind(node) === 'guidance'), + ); return kind === 'guidance' && members.length > 1 && !graph.edges.some( @@ -77,8 +133,20 @@ function operationStageMembers(graph: OperationGraph, ownerId: string, kind: Vis ); const scopeIds = new Set(scope.map((node) => node.id)); const owner = scope.find((node) => node.id === ownerId)!; - if (workflowTaskCategory(operationAuthoring(owner)?.operation.task ?? '') !== 'Image') return []; + const category = workflowTaskCategory(operationAuthoring(owner)?.operation.task ?? ''); + if (!['Image', 'Audio'].includes(category)) return []; + if ( + category === 'Audio' && + kind !== 'output' && + !( + kind === 'setup' && + nodeKey(owner) === 'modules.DiffusersAudio.LoadPipeline' && + owner.data.params.pipeline?.type === 'audio_diffusion_pipeline' + ) + ) + return []; if (kind === 'setup') { + if (operationAuthoring(owner)?.operation.decomposition === 'integrated') return []; const members = new Set([ownerId]); let changed = true; while (changed) { @@ -109,37 +177,52 @@ function operationStageMembers(graph: OperationGraph, ownerId: string, kind: Vis } } } - const shared = graph.edges.some( - (edge) => - ((members.has(edge.source) && edge.source !== ownerId) || - (members.has(edge.target) && edge.target !== ownerId)) && - ordinary.some( - (other) => - other.id !== ownerId && - operationOwnsModel(operationAuthoring(other)?.operation) && - (edge.source === other.id || edge.target === other.id), - ), - ); - if (shared) return []; - return members.size > 1 ? ordinary.filter((node) => members.has(node.id)) : []; + // A descriptor/configuration output shared outside this setup stays external. + // Prune backwards as well: an earlier adapter feeding that shared supplier + // must not be swallowed by the loader's visual wrapper. + changed = true; + while (changed) { + changed = false; + for (const id of [...members].filter((id) => id !== ownerId)) { + const node = ordinary.find((node) => node.id === id)!; + const directAdapter = ['modules.DiffusersImage.LoadAdapter', 'modules.DiffusersAudio.LoadAdapter'].includes( + nodeKey(node), + ); + if ( + graph.edges.some( + (edge) => edge.source === id && !members.has(edge.target) && !(directAdapter && scopeIds.has(edge.target)), + ) + ) { + members.delete(id); + changed = true; + } + } + } + return ordinary.filter((node) => members.has(node.id)); } if (kind === 'output') { const decoders = scope.filter((node) => stageKind(node) === 'output'); const members = new Set(); for (const decoder of decoders) { + const media = category === 'Audio' ? 'audio' : 'image'; const outputs = operationAuthoring(decoder)!.operation.ports.filter( - (port) => port.direction === 'output' && port.types.includes('image'), + (port) => port.direction === 'output' && port.types.includes(media), ); const previews = ordinary.filter( (node) => - nodeKey(node) === 'modules.Image.Preview' && - node.data.params.preview?.display === 'ui_image' && + nodeKey(node) === (media === 'audio' ? 'modules.Audio.Export' : 'modules.Image.Preview') && + node.data.params.preview?.display === `ui_${media}` && + (media !== 'audio' || + (node.data.params.preview.dataSource === 'file' && + node.data.params.file?.display === 'output' && + node.data.params.file.type === 'audio')) && + graph.edges.filter((edge) => edge.target === node.id && edge.targetHandle === media).length === 1 && graph.edges.some( (edge) => edge.source === decoder.id && outputs.some((port) => edge.sourceHandle === port.name) && edge.target === node.id && - edge.targetHandle === 'image', + edge.targetHandle === media, ), ); if (previews.length) { @@ -149,6 +232,7 @@ function operationStageMembers(graph: OperationGraph, ownerId: string, kind: Vis } return ordinary.filter((node) => members.has(node.id)); } + if (category !== 'Image') return []; const task = operationAuthoring(owner)!.operation.task; if (!['inpaint', 'outpaint'].includes(task ?? '')) return []; const members = new Set(); @@ -197,6 +281,11 @@ export function groupVisualStages( memberIds: readonly string[], kind: VisualOperationGroup, previous?: CustomNodeType, + options: { + combineGuidance?: boolean; + newDefinition?: boolean; + implicitScalarControlNodeIds?: readonly string[]; + } = {}, ): OperationGraph { const selected = new Set(memberIds); const members = graph.nodes.filter((node) => selected.has(node.id)); @@ -206,6 +295,15 @@ export function groupVisualStages( members.some((node) => node.parentId || node.data.blockInstanceV2 || node.data.blockProjectionOwnerId) ) throw new Error('Choose ordinary stage nodes from one model branch.'); + const implicitScalars = new Set(options.implicitScalarControlNodeIds ?? []); + if ( + implicitScalars.size && + (kind !== 'inputs' || + [...implicitScalars].some( + (id) => !selected.has(id) || operationAuthoring(members.find((node) => node.id === id)!)?.operation, + )) + ) + throw new Error('Implicit Inputs controls require explicitly adopted generic ordinary members.'); const rootId = previous?.id ?? `visual-${nanoid()}`; const old = previous?.data.blockInstanceV2; if (old) { @@ -240,11 +338,11 @@ export function groupVisualStages( (edge.source === node.id && edge.sourceHandle === field && !selected.has(edge.target)) || (edge.target === node.id && edge.targetHandle === field && !selected.has(edge.source)), ); - if (param.display === 'ui_image' && kind === 'output') + if (['ui_image', 'ui_audio'].includes(param.display ?? '') && kind === 'output') previews.push({ nodeId: remap(node.id), outputPortId: field, - mediaType: 'image', + mediaType: param.display === 'ui_audio' ? 'audio' : 'image', ...(previews.length ? {} : { primary: true }), }); if ((param.hidden && !connected) || param.display?.startsWith('ui_')) continue; @@ -271,18 +369,23 @@ export function groupVisualStages( } if ( (param.display || - (kind === 'guidance' && !param.isInput) || - (['setup', 'mask', 'output'].includes(kind) && (!param.isInput || hasInlineScalarControl(param)))) && + (stageKind(node) === 'guidance' && !param.isInput) || + ((['setup', 'mask', 'output'].includes(kind) || implicitScalars.has(node.id)) && + (!param.isInput || hasInlineScalarControl(param)))) && !['input', 'output'].includes(param.display ?? '') && !param.signal && !bound.has(`${node.id}\0${field}`) ) { if ( - kind === 'guidance' && (old?.presentation.removedControlBindings?.some((b) => b.nodeId === remap(node.id) && b.fieldId === field) || - old?.definitionSnapshot.controls.some( - (c) => c.binding.nodeId === remap(node.id) && c.binding.fieldId === field, - )) && + (old?.effectiveGraph.nodes.some( + (member) => + member.nodeId === remap(node.id) && + Boolean((member.data.params as Record | undefined)?.[field]), + ) && + old?.definitionSnapshot.controls.some( + (c) => c.binding.nodeId === remap(node.id) && c.binding.fieldId === field, + ))) && !old?.effectiveInterface.controls.some( (c) => c.binding.nodeId === remap(node.id) && c.binding.fieldId === field, ) @@ -301,7 +404,7 @@ export function groupVisualStages( ? operationAuthoring(node)?.operation.nodeType === 'text_encoder' ? 'Text' : 'Image' - : kind === 'guidance' + : stageKind(node) === 'guidance' ? 'Guidance' : node.data.label?.trim() || VISUAL_STAGE_LABELS[kind], }); @@ -362,13 +465,24 @@ export function groupVisualStages( const base: Omit = { schemaVersion: 2, definitionId: `definition-${rootId}`, - displayName: old?.definitionSnapshot.displayName ?? VISUAL_STAGE_LABELS[kind], - source: { kind: 'user', provider: `${PROVIDER}${kind}` }, + displayName: + old?.definitionSnapshot.displayName ?? + visualStagePresentation( + kind, + previews.length && previews.every((preview) => preview.mediaType === 'audio') ? 'audio' : null, + ).label, + source: { + kind: 'user', + provider: kind === 'inputs' && options.combineGuidance ? COMBINED_INPUT_PROVIDER : `${PROVIDER}${kind}`, + }, graph: { ...innerGraph, graphHash }, boundary: { mode: 'explicit', inputs, outputs }, controls, previews, ownership: { kind: 'user', definitionMutable: true }, + ...(options.newDefinition && old?.presentation.removedControlBindings + ? { removedControlBindings: structuredClone(old.presentation.removedControlBindings) } + : {}), }; const definition = normalizeBlockDefinitionV2({ ...base, contentHash: blockDefinitionContentHashV2(base) }); let instance = createBlockInstanceV2(definition, { @@ -394,7 +508,7 @@ export function groupVisualStages( ]), ), }); - if (old) { + if (old && !options.newDefinition) { // The reusable definition is immutable. Adapt only this workflow's effective // graph/interface; current public values were materialized by unpack above. const adapted: typeof instance = { @@ -434,7 +548,7 @@ export function groupVisualStages( } const root = createBlockRootNodeV2(instance, { selected: previous?.selected }); const endpoint = (id: string, handle: string | null | undefined) => `${remap(id)}:${handle}`; - return { + const result = { nodes: [...graph.nodes.filter((node) => !selected.has(node.id)), root], edges: graph.edges .filter((edge) => !(selected.has(edge.source) && selected.has(edge.target))) @@ -448,24 +562,64 @@ export function groupVisualStages( : {}), })), }; + // Shared-value relationships can cross visual groups. Keep their references + // tied to the actual projected loader after changing its owning wrapper. + const replacements = new Map(members.map((node) => [node.id, blockProjectionNodeIdV2(rootId, remap(node.id))])); + return remapVisualGroupReferences(result, (id) => replacements.get(id) ?? id); +} + +function remapVisualGroupReferences(graph: OperationGraph, remap: (id: string) => string): OperationGraph { + return { + ...graph, + nodes: graph.nodes.map((node) => { + const hint = remapOperationAuthoring(node.data.operationAuthoring, remap); + const instance = node.data.blockInstanceV2; + const data = { ...node.data, ...(hint ? { operationAuthoring: hint } : {}) }; + if (instance) { + const effectiveGraph = { + ...instance.effectiveGraph, + nodes: instance.effectiveGraph.nodes.map((child) => { + const hint = remapOperationAuthoring(child.data.operationAuthoring, remap); + return hint + ? { ...child, data: { ...child.data, operationAuthoring: JSON.parse(JSON.stringify(hint)) } } + : child; + }), + }; + effectiveGraph.graphHash = blockGraphHashV2(effectiveGraph); + if (effectiveGraph.graphHash !== instance.effectiveGraph.graphHash) { + const next = { + ...instance, + effectiveGraph, + customization: { ...instance.customization, effectiveGraphHash: effectiveGraph.graphHash }, + }; + next.customization.state = parameterCustomizationState(next); + data.blockInstanceV2 = normalizeBlockInstanceV2(next); + } + } + return { ...node, data }; + }), + }; } export function groupOperationStages( graph: OperationGraph, ownerId: string, kinds: VisualOperationGroup[] = ['inputs', 'guidance'], + combineGuidance = false, ) { const unpacked = unpackVisualOperationGroups(graph); const grouped = new Set([...unpacked.members.values()].flat()); let next = graph; for (const kind of kinds) { - const members = operationStageMembers(unpacked.graph, ownerId, kind); + const members = operationStageMembers(unpacked.graph, ownerId, kind, combineGuidance); if (members.some((node) => grouped.has(node.id))) continue; if (members.length) { next = groupVisualStages( next, members.map((node) => node.id), kind, + undefined, + { combineGuidance: kind === 'inputs' && combineGuidance }, ); } } @@ -475,7 +629,27 @@ export function groupOperationStages( export function groupNewOperationGraph(graph: OperationGraph) { let next = graph; for (const owner of graph.nodes.filter((node) => operationOwnsModel(operationAuthoring(node)?.operation))) - next = groupOperationStages(next, owner.id); + next = + workflowTaskCategory(operationAuthoring(owner)?.operation.task ?? '') === 'Image' + ? groupOperationStages(next, owner.id, ['inputs', 'setup', 'output'], true) + : workflowTaskCategory(operationAuthoring(owner)?.operation.task ?? '') === 'Audio' + ? groupOperationStages(next, owner.id, ['inputs', 'guidance', 'setup', 'output']) + : groupOperationStages(next, owner.id); + // Fresh groups have no saved reusable baseline yet. Bind that baseline to the + // completed ordinary graph, after all cross-group owner references are known. + const existing = new Set(graph.nodes.map((node) => node.id)); + next = { + ...next, + nodes: next.nodes.map((node) => { + if (existing.has(node.id) || !visualOperationGroup(node)) return node; + const instance = node.data.blockInstanceV2!; + const base = { ...instance.definitionSnapshot, graph: instance.effectiveGraph }; + const definition = normalizeBlockDefinitionV2({ ...base, contentHash: blockDefinitionContentHashV2(base) }); + const fresh = createBlockInstanceV2(definition, { ...instance.presentation, instanceId: instance.instanceId }); + fresh.previewStates = instance.previewStates; + return createBlockRootNodeV2(fresh, { selected: node.selected }); + }), + }; return next; } @@ -515,8 +689,12 @@ export function restoreVisualOperationGroups( operationScope(unpacked.graph, node.id).some((member) => previousMembers.includes(member.id)), ); const owner = - previousOwner && graph.nodes.find((node) => node.id === (replacements[previousOwner.id] ?? previousOwner.id)); - const added = owner ? operationStageMembers(graph, owner.id, kind).map((node) => node.id) : []; + previousOwner && next.nodes.find((node) => node.id === (replacements[previousOwner.id] ?? previousOwner.id)); + const combined = + kind === 'inputs' && + (root.data.blockInstanceV2!.definitionSnapshot.source.provider === COMBINED_INPUT_PROVIDER || + unpacked.graph.nodes.some((node) => previousMembers.includes(node.id) && stageKind(node) === 'guidance')); + const added = owner ? operationStageMembers(next, owner.id, kind, combined).map((node) => node.id) : []; graph = groupVisualStages(graph, [...new Set([...retained, ...added])], kind, root); } return graph; @@ -531,3 +709,100 @@ export function visualGroupOwners(graph: OperationGraph, groupId: string) { operationScope(unpacked.graph, node.id).some((member) => members.includes(member.id)), ); } + +/** Explicit presentation conversion. Existing saved definitions stay untouched; + * this workflow receives a new combined definition containing the same leaves. */ +export function combineOperationInputStages(graph: OperationGraph, ownerId: string): OperationGraph { + const unpacked = unpackVisualOperationGroups(graph); + const members = operationStageMembers(unpacked.graph, ownerId, 'inputs', true); + if (!members.some((node) => stageKind(node) === 'inputs') || !members.some((node) => stageKind(node) === 'guidance')) + throw new Error('This branch has no separate encoding and Guidance stages to combine.'); + const selected = new Set(members.map((node) => node.id)); + const priorRoots = unpacked.roots.filter((root) => unpacked.members.get(root.id)!.some((id) => selected.has(id))); + if ( + priorRoots.some( + (root) => + !['inputs', 'guidance'].includes(visualOperationGroup(root)!) || + unpacked.members.get(root.id)!.some((id) => !selected.has(id)), + ) + ) + throw new Error('These stages have additional grouped members. Separate them before combining.'); + if ( + priorRoots.length === 1 && + priorRoots[0]!.data.blockInstanceV2!.definitionSnapshot.source.provider === COMBINED_INPUT_PROVIDER + ) + throw new Error('Encoding and Guidance are already combined.'); + if ( + priorRoots.some((root) => { + const surface = root.data.blockInstanceV2!.effectiveInterface; + return [...surface.boundary.inputs, ...surface.boundary.outputs, ...surface.controls].some( + (field) => field.mirrorBindings?.length, + ); + }) + ) + throw new Error('These stages have mirrored custom bindings. Separate them before combining. Nothing changed.'); + const previous = priorRoots.find((root) => visualOperationGroup(root) === 'inputs') ?? priorRoots[0]; + const rootId = previous?.id ?? `visual-${nanoid()}`; + const semantic = (flatId: string) => + flatId.startsWith(`${rootId}/`) ? flatId.slice(rootId.length + 1) : `stage-${flatId}`; + let baseline = previous; + if (previous) { + const old = previous.data.blockInstanceV2!; + const controls = priorRoots.flatMap((root) => + root.data.blockInstanceV2!.effectiveInterface.controls.map((control) => ({ + ...control, + binding: { ...control.binding, nodeId: semantic(`${root.id}/${control.binding.nodeId}`) }, + })), + ); + const ports = (direction: 'inputs' | 'outputs') => + priorRoots.flatMap((root) => + root.data.blockInstanceV2!.effectiveInterface.boundary[direction].map((port) => ({ + ...port, + binding: { ...port.binding, nodeId: semantic(`${root.id}/${port.binding.nodeId}`) }, + })), + ); + const boundary = { mode: old.effectiveInterface.boundary.mode, inputs: ports('inputs'), outputs: ports('outputs') }; + const removed = priorRoots.flatMap((root) => { + const instance = root.data.blockInstanceV2!; + const removed = [ + ...(instance.presentation.removedControlBindings ?? []), + ...instance.definitionSnapshot.controls + .filter( + (control) => + !instance.effectiveInterface.controls.some( + (current) => + current.binding.nodeId === control.binding.nodeId && + current.binding.fieldId === control.binding.fieldId, + ), + ) + .map((control) => control.binding), + ]; + return removed.map((binding) => ({ ...binding, nodeId: semantic(`${root.id}/${binding.nodeId}`) })); + }); + const removedControlBindings = [ + ...new Map(removed.map((binding) => [`${binding.nodeId}\0${binding.fieldId}`, binding])).values(), + ]; + // This temporary preservation surface is read by groupVisualStages only; + // it never replaces or mutates the old immutable definition snapshot. + baseline = { + ...previous, + data: { + ...previous.data, + blockInstanceV2: { + ...old, + effectiveInterface: { ...old.effectiveInterface, controls, boundary }, + presentation: { ...old.presentation, removedControlBindings }, + }, + }, + }; + } + let next = groupVisualStages(unpacked.graph, [...selected], 'inputs', baseline, { + combineGuidance: true, + newDefinition: true, + }); + next = restoreVisualOperationGroups(next, { + ...unpacked, + roots: unpacked.roots.filter((root) => !priorRoots.includes(root)), + }); + return next; +} diff --git a/src/workflow/workflowChoices.ts b/src/workflow/workflowChoices.ts index f02198a6..02fd3873 100644 --- a/src/workflow/workflowChoices.ts +++ b/src/workflow/workflowChoices.ts @@ -2,6 +2,7 @@ import type { ModelCacheDiagnostics } from '../stores/useNodeStore'; import type { StudioModelProfile } from '../studio/types'; import { getRepoCacheStatus, getStudioModelCacheStatus, type StudioModelCacheStatus } from '../studio/modelCache'; import type { PipelineSupport, PipelineTaskSupport } from './operationCatalog'; +import { parseWorkflowModelInventory, type WorkflowModelInventory } from './workflowModelInventory'; export type WorkflowChoice = { id: string; @@ -14,7 +15,13 @@ export type WorkflowChoice = { cache: StudioModelCacheStatus | null; }; -export type WorkflowModelDescriptor = { profileId: string; pipeline: string; label: string; repo: string }; +export type WorkflowModelDescriptor = { + profileId: string; + pipeline: string; + label: string; + repo: string; + inventory?: WorkflowModelInventory; +}; /** Presentation-only identities for generic workflows, independent of legacy Studio forms. */ export function parseWorkflowModelDescriptors( @@ -58,7 +65,9 @@ export function parseWorkflowModelDescriptors( if (text(profile.model_type) !== text(model.modelType) || seen.has(profileId)) invalid(); if (profile.public !== undefined && typeof profile.public !== 'boolean') invalid(); seen.add(profileId); - result.push({ profileId, pipeline, label: text(model.label), repo: text(profile.default_repo) }); + const repo = text(profile.default_repo); + const inventory = parseWorkflowModelInventory(model, repo); + result.push({ profileId, pipeline, label: text(model.label), repo, ...(inventory ? { inventory } : {}) }); } } return result; diff --git a/src/workflow/workflowModelInventory.ts b/src/workflow/workflowModelInventory.ts new file mode 100644 index 00000000..75e9584c --- /dev/null +++ b/src/workflow/workflowModelInventory.ts @@ -0,0 +1,221 @@ +import type { ModelCacheDiagnostics } from '../stores/useNodeStore'; +import { getRepoCacheStatus, type ReviewedExpertInstallTarget } from '../studio/modelCache'; +import { parseOptionalRuntimeRequirement, type OptionalRuntimeRequirement } from '../studio/optionalRuntimes'; + +export type WeightFormatSelection = { + weightFormat: 'fp8r' | 'nvfp4'; + repo: string; + revision: string; + downloadFiles: string[]; +}; + +export type WorkflowModelInventory = { + executionStatus?: 'expert_only' | 'supported' | 'supported_with_model'; + qualificationStatus?: string; + optionalRuntimeRequirement?: OptionalRuntimeRequirement; + nativeSelection?: Omit; + weightFormatSelections?: WeightFormatSelection[]; +}; + +function invalid(): never { + throw new Error('Invalid workflow model artifact selection.'); +} + +function ownRecord(value: unknown): Record { + if ( + !value || + typeof value !== 'object' || + Array.isArray(value) || + ![Object.prototype, null].includes(Object.getPrototypeOf(value)) || + Reflect.ownKeys(value).some( + (key) => + typeof key !== 'string' || + !Object.getOwnPropertyDescriptor(value, key)?.enumerable || + !Object.prototype.hasOwnProperty.call(Object.getOwnPropertyDescriptor(value, key), 'value'), + ) + ) + invalid(); + return value as Record; +} + +function repository(value: unknown): string { + if (typeof value !== 'string' || !/^[A-Za-z0-9][A-Za-z0-9._-]{0,95}\/[A-Za-z0-9][A-Za-z0-9._-]{0,95}$/u.test(value)) + invalid(); + return value; +} + +function revision(value: unknown): string { + if (typeof value !== 'string' || !/^[0-9a-f]{40}$/u.test(value)) invalid(); + return value; +} + +function hasControlCharacters(value: string) { + return Array.from(value).some((character) => { + const code = character.charCodeAt(0); + return code < 32 || (code >= 127 && code <= 159); + }); +} + +function files(value: unknown, allowEmpty = false): string[] { + if ( + !Array.isArray(value) || + (!allowEmpty && !value.length) || + value.length > 4096 || + new Set(value).size !== value.length || + value.some( + (file) => + typeof file !== 'string' || + !file.length || + file.length > 512 || + hasControlCharacters(file) || + Array.from(file).some((character) => '\\:*?[]{}'.includes(character)) || + file.split('/').some((part) => !part || part === '.' || part === '..'), + ) + ) + invalid(); + return [...value] as string[]; +} + +/** Exact additional inventories; absence preserves the existing native selection. */ +export function parseWeightFormatSelections(value: unknown): WeightFormatSelection[] | undefined { + if (value === undefined) return undefined; + if (!Array.isArray(value) || !value.length || value.length > 2) invalid(); + const seen = new Set(); + return value.map((raw) => { + const item = ownRecord(raw); + if ( + Object.keys(item).sort().join() !== 'downloadFiles,repo,revision,weightFormat' || + (item.weightFormat !== 'fp8r' && item.weightFormat !== 'nvfp4') || + seen.has(item.weightFormat) + ) + invalid(); + seen.add(item.weightFormat); + return { + weightFormat: item.weightFormat, + repo: repository(item.repo), + revision: revision(item.revision), + downloadFiles: files(item.downloadFiles), + }; + }); +} + +/** Display/install metadata cannot make a private or unselected profile public. */ +export function parseWorkflowModelInventory( + value: Record, + repo: string, +): WorkflowModelInventory | undefined { + const keys = [ + 'executionStatus', + 'qualificationStatus', + 'optionalRuntimeRequirement', + 'revisionCandidates', + 'downloadFiles', + 'weightFormatSelections', + ]; + if (!keys.some((key) => value[key] !== undefined)) return undefined; + const result: WorkflowModelInventory = {}; + if (value.executionStatus !== undefined) { + if ( + value.executionStatus !== 'expert_only' && + value.executionStatus !== 'supported' && + value.executionStatus !== 'supported_with_model' + ) + invalid(); + result.executionStatus = value.executionStatus; + } + if (value.qualificationStatus !== undefined) { + if ( + typeof value.qualificationStatus !== 'string' || + !value.qualificationStatus.length || + value.qualificationStatus.length > 256 || + hasControlCharacters(value.qualificationStatus) + ) + invalid(); + result.qualificationStatus = value.qualificationStatus; + } + if (value.optionalRuntimeRequirement !== undefined) + result.optionalRuntimeRequirement = parseOptionalRuntimeRequirement(value.optionalRuntimeRequirement); + if ( + value.revisionCandidates !== undefined && + (!Array.isArray(value.revisionCandidates) || + value.revisionCandidates.length > 32 || + new Set(value.revisionCandidates).size !== value.revisionCandidates.length) + ) + invalid(); + const revisions = value.revisionCandidates === undefined ? [] : (value.revisionCandidates as unknown[]).map(revision); + const nativeFiles = value.downloadFiles === undefined ? undefined : files(value.downloadFiles, true); + // Only the capability's own exact repository can use its native manifest. + if (revisions.length === 1 && nativeFiles?.length && value.defaultRepo === repo) + result.nativeSelection = { repo: repository(repo), revision: revisions[0]!, downloadFiles: nativeFiles }; + const selections = parseWeightFormatSelections(value.weightFormatSelections); + if (selections && value.defaultRepo === repo) result.weightFormatSelections = selections; + return result; +} + +export function workflowModelArtifactRows(descriptor: { + profileId: string; + label: string; + repo: string; + inventory?: WorkflowModelInventory; +}) { + const native = descriptor.inventory?.nativeSelection; + return [ + { id: `${descriptor.profileId}:native`, weightFormat: 'native' as const, label: 'Native', selection: native }, + ...(descriptor.inventory?.weightFormatSelections ?? []).map((selection) => ({ + id: `${descriptor.profileId}:${selection.weightFormat}`, + weightFormat: selection.weightFormat, + label: selection.weightFormat.toUpperCase(), + selection, + })), + ]; +} + +export function workflowModelArtifactStatus( + row: ReturnType[number], + descriptor: { repo: string; label: string; inventory?: WorkflowModelInventory }, + cache: unknown[], + local: unknown[], + diagnostics: ModelCacheDiagnostics | null, +): { + status: ReturnType; + installTarget: ReviewedExpertInstallTarget | null; + reason: string; +} { + const selection = row.selection; + const status = getRepoCacheStatus( + selection?.repo ?? descriptor.repo, + cache, + local, + diagnostics, + selection ? { revision: selection.revision, files: selection.downloadFiles } : undefined, + ); + const runtime = descriptor.inventory?.optionalRuntimeRequirement; + const reason = !selection + ? 'No exact reviewed artifact selection was published for this format.' + : !descriptor.inventory?.executionStatus + ? 'Execution support has not been declared.' + : runtime?.requiredNow && runtime.state !== 'active' + ? `The required runtime is ${runtime.state.replace(/_/gu, ' ')}. Configure it before installing model files.` + : status.runnable + ? 'The exact artifact selection is installed. Execution readiness still depends on the backend runtime and workflow.' + : `Install the exact ${row.label} artifact selection. Execution readiness is evaluated separately by the backend.`; + const allowed = Boolean( + selection && descriptor.inventory?.executionStatus && (!runtime?.requiredNow || runtime.state === 'active'), + ); + return { + status, + reason, + installTarget: + allowed && !status.runnable && selection + ? { + repo: selection.repo, + label: `${descriptor.label} · ${row.label}`, + revision: selection.revision, + files: [...selection.downloadFiles], + repair: status.repairRequired, + actionLabel: status.repairRequired ? 'Repair' : 'Install', + reason, + } + : null, + }; +} diff --git a/tests/e2e/live-backend/audio-cluster-acceptance.spec.ts b/tests/e2e/live-backend/audio-cluster-acceptance.spec.ts index 7a9a6064..98ddd56a 100644 --- a/tests/e2e/live-backend/audio-cluster-acceptance.spec.ts +++ b/tests/e2e/live-backend/audio-cluster-acceptance.spec.ts @@ -77,7 +77,7 @@ const AUDIO_CASE = soundModel async function ready(page: Page) { await expect(page.getByTestId('startup-workspace-gate')).toHaveCount(0, { timeout: 180_000 }); - const advanced = page.getByRole('button', { name: /Advanced workflow/u }); + const advanced = page.getByTestId('launcher-mode-advanced_workflow'); if (await advanced.isVisible().catch(() => false)) await advanced.click(); } @@ -485,9 +485,6 @@ test('Audio Block preserves full-setting native edits and generates audio when a await ready(page); await page.getByTestId('workflow-tab-new').click(); await ready(page); - const auto = page.getByRole('radio', { name: 'Creator', exact: true }); - if ((await auto.getAttribute('aria-checked')) !== 'false') - await page.getByRole('radio', { name: 'Developer', exact: true }).click(); const search = page.getByLabel('Search nodes'); if (!(await search.isVisible())) await page.getByTestId('left-tab-nodes').click(); await search.fill(AUDIO_CASE.search); diff --git a/tests/e2e/live-backend/audio-offload-qualification.spec.ts b/tests/e2e/live-backend/audio-offload-qualification.spec.ts index fd8b2535..aeae094b 100644 --- a/tests/e2e/live-backend/audio-offload-qualification.spec.ts +++ b/tests/e2e/live-backend/audio-offload-qualification.spec.ts @@ -1,21 +1,120 @@ -import { expect, test } from '@playwright/test'; +import { expect, test, type Page } from '@playwright/test'; import { writeFile } from 'node:fs/promises'; import { createHash } from 'node:crypto'; +const ACE_ROUTE = { + profileId: 'ace-step-audio:direct', + pipelineClass: 'AceStepPipeline', + task: 'audio_variation', + repository: 'ACE-Step/acestep-v15-xl-turbo-diffusers', + revision: '200ba991ae448051e14b0183157e35c2d27c9fb0', +}; + +function numericControl(value: unknown): number { + if ((typeof value !== 'number' && typeof value !== 'string') || (typeof value === 'string' && !value.trim())) + throw new Error('Expected a number or nonblank numeric control string.'); + const numeric = Number(value); + if (!Number.isFinite(numeric)) throw new Error('Expected a finite numeric control.'); + return numeric; +} + +async function audioRoute(page: Page) { + return page.evaluate(async () => { + const [{ useFlowStore }, { runtimeProgressTarget }] = await Promise.all([ + import('/src/stores/useFlowStore.ts'), + import('/src/studio/userBlocks.ts'), + ]); + const flow = useFlowStore.getState(); + const exported = flow.exportGraph('audio-offload-qualification', undefined, { randomizeSeeds: false }); + const one = (module: string, action: string) => { + const matches = Object.entries(exported.nodes).filter( + ([, node]) => node.module === module && node.action === action, + ); + if (matches.length !== 1) throw new Error(`Expected one ${module}.${action} in the actual API graph.`); + const [id, node] = matches[0]!; + const uiId = runtimeProgressTarget(flow.nodes, id); + if (!uiId) throw new Error(`Missing visible owner for ${id}.`); + return { id, node, uiId }; + }; + return { + exported, + owner: one('modules.DiffusersAudio', 'LoadPipeline'), + generator: one('modules.DiffusersAudio', 'Generate'), + source: one('modules.Audio', 'Load'), + preview: one('modules.Audio', 'Preview'), + }; + }); +} + +function assertAceRoute(route: Awaited>) { + const params = route.owner.node.params; + expect(params.model_id?.value).toEqual({ source: 'hub', value: ACE_ROUTE.repository }); + expect(params.revision?.value).toBe(ACE_ROUTE.revision); + expect(params.pipeline_class?.value).toBe(ACE_ROUTE.pipelineClass); + expect(params.mode?.value).toBe(ACE_ROUTE.task); + expect(params.audio_contract?.value).toMatchObject({ + pipelineClass: ACE_ROUTE.pipelineClass, + mode: ACE_ROUTE.task, + repository: ACE_ROUTE.repository, + }); + expect(route.generator.node.params.pipeline).toMatchObject({ sourceId: route.owner.id, sourceKey: 'pipeline' }); + expect(route.generator.node.params.source_audio).toMatchObject({ sourceId: route.source.id, sourceKey: 'audio' }); + expect(route.preview.node.params.audio).toMatchObject({ sourceId: route.generator.id, sourceKey: 'audio' }); +} + // Opt-in installed-model proof, one bounded run at a time. No model downloads. test('installed ACE-Step variation executes and delivers playable generated audio', async ({ page }) => { test.skip(!process.env.MODIFF_AUDIO_PROOF_INPUT, 'Requires an explicit existing WAV and installed ACE-Step model.'); test.setTimeout(12 * 60_000); + page.setDefaultTimeout(45_000); await page.setViewportSize({ width: 1920, height: 1200 }); await page.goto('/'); await expect(page.getByTestId('startup-workspace-gate')).toHaveCount(0, { timeout: 120_000 }); const queue = await (await page.request.get('/queue')).json(); expect(queue.current).toBeFalsy(); expect(Object.keys(queue.queued)).toHaveLength(0); - const launcher = page.getByTestId('task-launcher'); + const initialLauncher = page.getByTestId('task-launcher'); + await expect(initialLauncher).toBeVisible(); + await initialLauncher.getByTestId('launcher-mode-advanced_workflow').click(); + await expect(initialLauncher).toHaveCount(0); + // This explicit Custom smoke must not require Auto admission to create its task. + const memory = page.getByTestId('topbar-resource-policy'); + if ((await memory.getAttribute('aria-pressed')) === 'true') await memory.click(); + await expect(memory).toHaveAttribute('aria-pressed', 'false'); + // New workflow resets its form. Use the ordinary embedded task browser so + // its starter request reads the explicit Custom choice made above. + const start = page.getByRole('button', { name: 'Start', exact: true }); + if (!(await start.isVisible())) await page.getByTestId('left-tab-workflows').click(); + await expect(start).toBeVisible(); + await start.click(); + const launcher = page.getByTestId('task-browser'); + await expect(launcher).toBeVisible(); await launcher.getByRole('button', { name: 'Audio', exact: true }).click(); + const starterResponse = page.waitForResponse( + (response) => + new URL(response.url()).pathname === '/operations/task-starter' && response.request().method() === 'POST', + ); await launcher.getByTestId('workflow-task-audio_variation').click(); - const source = page.locator('.react-flow__node').filter({ has: page.locator('header', { hasText: 'Load Audio' }) }); + const starter = await starterResponse; + const selection = await starter.json(); + await writeFile(test.info().outputPath('selected-task-starter.json'), JSON.stringify(selection, null, 2)); + expect(starter.ok()).toBe(true); + expect(starter.request().postDataJSON().task).toBe(ACE_ROUTE.task); + expect(starter.request().postDataJSON().resourceMode).toBe('expert'); + expect(selection).toMatchObject({ + schemaVersion: 1, + profileId: ACE_ROUTE.profileId, + unbound: false, + starter: { pipelineClass: ACE_ROUTE.pipelineClass, task: ACE_ROUTE.task }, + }); + await expect(page.locator('.react-flow__node')).not.toHaveCount(0); + // Embedded task creation opens a fresh tab with its default memory form. + // Keep this run explicitly Custom after checking the Expert starter request. + if ((await memory.getAttribute('aria-pressed')) === 'true') await memory.click(); + await expect(memory).toHaveAttribute('aria-pressed', 'false'); + const initial = await audioRoute(page); + assertAceRoute(initial); + const source = page.locator(`.react-flow__node[data-id=${JSON.stringify(initial.source.uiId)}]`); await expect(source).toHaveCount(1, { timeout: 60_000 }); await source.locator('input[type=file]').setInputFiles(process.env.MODIFF_AUDIO_PROOF_INPUT!); // Upload commits are intentionally cancelled by concurrent workflow edits. @@ -30,30 +129,43 @@ test('installed ACE-Step variation executes and delivers playable generated audi { timeout: 30_000 }, ) .toBeGreaterThanOrEqual(2); - const memory = page.getByTestId('topbar-resource-policy'); - if ((await memory.getAttribute('aria-pressed')) === 'true') await memory.click(); - const loader = page.locator('.react-flow__node').filter({ has: page.locator('header', { hasText: 'Load Models' }) }); + const loader = page.locator(`.react-flow__node[data-id=${JSON.stringify(initial.owner.uiId)}]`); await loader.getByRole('button', { name: 'Offload Mode', exact: true }).click(); await page .getByRole('option', { name: process.env.MODIFF_AUDIO_PROOF_OFFLOAD || 'SSD group offload', exact: true }) .click(); - const generator = page.locator('.react-flow__node').filter({ has: page.locator('[data-key="audio_duration"]') }); + const generator = page.locator(`.react-flow__node[data-id=${JSON.stringify(initial.generator.uiId)}]`); await generator.getByRole('textbox', { name: 'Duration', exact: true }).fill('5'); await generator.getByRole('textbox', { name: 'Duration', exact: true }).press('Tab'); await generator.getByRole('textbox', { name: 'Steps', exact: true }).fill('8'); await generator.getByRole('textbox', { name: 'Steps', exact: true }).press('Tab'); const snapshot = await page.evaluate(() => window.__MODIFF_E2E__?.exportWorkflowGraph() ?? null); await writeFile(test.info().outputPath('submitted-workflow.json'), JSON.stringify(snapshot, null, 2)); + const prepared = await audioRoute(page); + assertAceRoute(prepared); + expect(prepared.owner.id).toBe(initial.owner.id); + expect(prepared.preview.id).toBe(initial.preview.id); + expect(numericControl(prepared.generator.node.params.audio_duration?.value)).toBe(5); + expect(numericControl(prepared.generator.node.params.num_inference_steps?.value)).toBe(8); + await writeFile(test.info().outputPath('prepared-api-graph.json'), JSON.stringify(prepared, null, 2)); const submitted = page.waitForResponse( (response) => response.url().endsWith('/graph') && response.request().method() === 'POST', ); await expect(page.getByTestId('studio-run')).toBeEnabled(); await page.getByTestId('studio-run').click(); const response = await submitted; - await writeFile( - test.info().outputPath('submitted-api-graph.json'), - JSON.stringify(response.request().postDataJSON(), null, 2), - ); + const submittedGraph = response.request().postDataJSON(); + await writeFile(test.info().outputPath('submitted-api-graph.json'), JSON.stringify(submittedGraph, null, 2)); + expect(submittedGraph.nodes[prepared.owner.id]).toEqual(prepared.owner.node); + expect(submittedGraph.nodes[prepared.generator.id].module).toBe('modules.DiffusersAudio'); + expect(submittedGraph.nodes[prepared.generator.id].action).toBe('Generate'); + expect(submittedGraph.nodes[prepared.generator.id].params.pipeline).toMatchObject({ + sourceId: prepared.owner.id, + sourceKey: 'pipeline', + }); + expect(numericControl(submittedGraph.nodes[prepared.generator.id].params.audio_duration.value)).toBe(5); + expect(numericControl(submittedGraph.nodes[prepared.generator.id].params.num_inference_steps.value)).toBe(8); + expect(submittedGraph.nodes[prepared.preview.id]).toEqual(prepared.preview.node); const submission = await response.json(); expect(submission.task_id).toBeTruthy(); await writeFile(test.info().outputPath('submission.json'), JSON.stringify(submission)); @@ -81,9 +193,7 @@ test('installed ACE-Step variation executes and delivers playable generated audi const receipt = await (await page.request.get(`/runs/${submission.task_id}`, { timeout: 20_000 })).json(); await writeFile(test.info().outputPath('receipt.json'), JSON.stringify(receipt, null, 2)); expect(status, receipt.task?.message).toBe('completed'); - const preview = page - .locator('.react-flow__node') - .filter({ has: page.locator('header', { hasText: 'Preview Audio' }) }); + const preview = page.locator(`.react-flow__node[data-id=${JSON.stringify(prepared.preview.uiId)}]`); const player = preview.locator('audio').first(); await expect .poll(() => player.evaluate((el: HTMLAudioElement) => el.readyState), { timeout: 30_000 }) @@ -91,21 +201,38 @@ test('installed ACE-Step variation executes and delivers playable generated audi expect(await player.evaluate((el: HTMLAudioElement) => el.duration)).toBeGreaterThan(0); await player.evaluate((el: HTMLAudioElement) => el.play()); await expect.poll(() => player.evaluate((el: HTMLAudioElement) => el.ended), { timeout: 20_000 }).toBe(true); + const generatedOutputs = (record: { + outputs: Array<{ + taskId?: string; + nodeId?: string; + fieldKey?: string; + displayType?: string; + mediaHash?: string; + url: string; + }>; + }) => + record.outputs.filter( + (output) => + output.taskId === submission.task_id && + output.nodeId === prepared.preview.id && + output.fieldKey === 'preview' && + output.displayType === 'audio' && + typeof output.mediaHash === 'string' && + /^sha256:bytes:[a-f0-9]{64}$/u.test(output.mediaHash), + ); let finalReceipt = receipt; await expect .poll( async () => { finalReceipt = await (await page.request.get(`/runs/${submission.task_id}`)).json(); - return finalReceipt.outputs.some( - (output: { displayType: string; mediaHash?: string }) => output.displayType === 'audio' && output.mediaHash, - ); + return generatedOutputs(finalReceipt).length === 1; }, { timeout: 30_000 }, ) .toBe(true); - const output = finalReceipt.outputs.find( - (output: { displayType: string; mediaHash?: string }) => output.displayType === 'audio' && output.mediaHash, - ); + const outputs = generatedOutputs(finalReceipt); + expect(outputs).toHaveLength(1); + const output = outputs[0]!; const media = await page.request.get(output.url); expect(media.ok()).toBe(true); const bytes = await media.body(); diff --git a/tests/e2e/live-backend/audio-production-smoke.spec.ts b/tests/e2e/live-backend/audio-production-smoke.spec.ts index d4e0d968..9afdd93b 100644 --- a/tests/e2e/live-backend/audio-production-smoke.spec.ts +++ b/tests/e2e/live-backend/audio-production-smoke.spec.ts @@ -20,7 +20,7 @@ for (const label of [ await page.setViewportSize({ width: 1920, height: 1080 }); await page.goto('http://127.0.0.1:8088/', { waitUntil: 'domcontentloaded' }); await expect(page.getByTestId('startup-workspace-gate')).toHaveCount(0, { timeout: 90_000 }); - const advanced = page.getByRole('button', { name: /Advanced workflow/u }); + const advanced = page.getByTestId('launcher-mode-advanced_workflow'); // Active server runs restore their workflow into a fresh browser; that is // not the empty-session chooser. Never modify the restored running graph. await expect(advanced.or(page.locator('.react-flow__node').first()).first()).toBeVisible({ timeout: 90_000 }); diff --git a/tests/e2e/live-backend/audio-template-acceptance.spec.ts b/tests/e2e/live-backend/audio-template-acceptance.spec.ts index 85709444..ad413cd4 100644 --- a/tests/e2e/live-backend/audio-template-acceptance.spec.ts +++ b/tests/e2e/live-backend/audio-template-acceptance.spec.ts @@ -2,7 +2,7 @@ import { expect, test, type Page } from '@playwright/test'; import { createHash } from 'node:crypto'; import { mkdir, writeFile } from 'node:fs/promises'; -const templateId = process.env.MODIFF_AUDIO_TEMPLATE ?? 'minimax_music3_chamber_pop'; +const templateId = process.env.MODIFF_AUDIO_TEMPLATE ?? 'ace_step_text_to_audio'; const allowed = new Set([ 'minimax_music3_chamber_pop', 'ace_step_text_to_audio', @@ -85,7 +85,11 @@ test('authored audio template preserves settings through the requested native li socket.on('framereceived', ({ payload }) => { try { const message = JSON.parse(String(payload)) as { type?: string }; - if (['graph_completed', 'graph_error', 'set_field_params', 'set_field_value'].includes(message.type ?? '')) + if ( + ['graph_completed', 'graph_error', 'set_field_params', 'set_field_value', 'executed'].includes( + message.type ?? '', + ) + ) completions.push(message); } catch { /* Ignore non-JSON frames. */ @@ -96,13 +100,9 @@ test('authored audio template preserves settings through the requested native li const save = () => writeFile(`${output}/receipt.json`, JSON.stringify(evidence, null, 2)); await page.goto('/', { waitUntil: 'domcontentloaded' }); await expect(page.getByTestId('startup-workspace-gate')).toHaveCount(0, { timeout: 180_000 }); - const advanced = page.getByRole('button', { name: /Advanced workflow/u }); - await expect(advanced).toBeVisible(); - await advanced.click(); - await expect(advanced).toHaveCount(0); - const auto = page.getByRole('radio', { name: 'Creator', exact: true }); - if ((await auto.getAttribute('aria-checked')) === 'true') - await page.getByRole('radio', { name: 'Developer', exact: true }).click(); + const launcher = page.getByTestId('task-launcher'); + if (await launcher.isVisible()) await launcher.getByTestId('launcher-mode-advanced_workflow').click(); + await expect(launcher).toHaveCount(0); await page.getByTestId('topbar-templates').click(); await page.getByTestId('template-browser-search').fill( templateId.startsWith('minimax') @@ -183,23 +183,54 @@ test('authored audio template preserves settings through the requested native li const cancelRecovery = process.env.MODIFF_AUDIO_CANCEL_RECOVERY === '1'; for (let repeat = cancelRecovery ? -1 : 0; repeat < runCount; repeat += 1) { if (repeat > 0) { - // A second Run normally reuses cached node outputs. Evict compute-node - // caches through the real toolbar so this proves independent inference. + // Recompute results through the ordinary toolbar while retaining the loaded owner. await page.getByTestId('arrange-graph').click(); - const ids = await page.evaluate(async () => - (await import('/src/stores/useFlowStore.ts')).useFlowStore - .getState() - .nodes.filter((node) => node.data.isCached && !['ModelsLoader', 'LoadPipeline'].includes(node.data.action)) - .map((node) => node.id), - ); - expect(ids.length).toBeGreaterThan(0); - for (const id of ids) { + const selected = await page.evaluate(async () => { + const [{ useFlowStore }, { runtimeProgressTarget }] = await Promise.all([ + import('/src/stores/useFlowStore.ts'), + import('/src/studio/userBlocks.ts'), + ]); + const flow = useFlowStore.getState(); + const graph = flow.exportGraph('audio-template-acceptance'); + const ownerIds = Object.entries(graph.nodes) + .filter(([, node]) => ['ModelsLoader', 'LoadPipeline'].includes(node.action)) + .map(([id]) => id); + if (ownerIds.length !== 1) throw new Error('The authored audio graph must have one exact loaded owner.'); + const ownerRoots = new Set(ownerIds.map((id) => runtimeProgressTarget(flow.nodes, id))); + if ([...ownerRoots].some((id) => !flow.nodes.some((node) => node.id === id))) + throw new Error('The loaded audio owner has no current canvas projection.'); + return { + ownerIds, + ids: flow.nodes.filter((node) => node.data.isCached && !ownerRoots.has(node.id)).map((node) => node.id), + leafIds: Object.keys(graph.nodes), + }; + }); + expect(selected.ids.length).toBeGreaterThan(0); + const recomputations: unknown[] = []; + const beforeRecompute = (await snapshot(page)).exported; + for (const id of selected.ids) { await page.locator(`.react-flow__node[data-id="${id}"] header`).first().click(); await page.getByTestId('selection-toolbar-more').click(); - await page.getByRole('menuitem', { name: 'Clear cache', exact: true }).click(); + const recomputed = page.waitForResponse((response) => { + if (new URL(response.url()).pathname !== '/cache' || response.request().method() !== 'DELETE') return false; + const body = response.request().postDataJSON(); + return body.scope === 'outputs' && JSON.stringify(body.nodes) === JSON.stringify([id]); + }); + await page.getByRole('menuitem', { name: 'Recompute on next Run', exact: true }).click(); + const response = await recomputed; + expect(response.ok()).toBe(true); + const result = await response.json(); + recomputations.push({ nodeId: id, result }); + expect(result).toMatchObject({ error: false, scope: 'outputs' }); + expect(Array.isArray(result.nodes)).toBe(true); + expect(result.nodes.length).toBeGreaterThan(0); + expect(result.nodes.every((node: string) => selected.leafIds.includes(node))).toBe(true); + expect(result.nodes.some((node: string) => selected.ownerIds.includes(node))).toBe(false); } - evidence.clearedComputeNodes = ids; + const afterRecompute = (await snapshot(page)).exported; + evidence.recomputedComputeNodes = { ...selected, recomputations, beforeRecompute, afterRecompute }; await save(); + expect(afterRecompute).toEqual(beforeRecompute); } const submitted = page.waitForResponse( (response) => new URL(response.url()).pathname === '/graph' && response.request().method() === 'POST', @@ -251,6 +282,37 @@ test('authored audio template preserves settings through the requested native li record.run = run; await save(); expect((record.terminal as { status: string }).status).toBe('completed'); + if (repeat > 0) { + const owners = Object.entries(before.exported.nodes).filter(([, node]) => + ['ModelsLoader', 'LoadPipeline'].includes(node.action), + ); + const samplers = Object.entries(before.exported.nodes).filter(([, node]) => + ['Generate', 'Denoise'].includes(node.action), + ); + expect(owners).toHaveLength(1); + expect(samplers.length).toBeGreaterThan(0); + for (const [id, node] of [...owners, ...samplers]) { + const owner = owners.some(([ownerId]) => ownerId === id); + await expect + .poll(() => + completions.filter((value) => { + const event = value as { type?: string; node?: string; name?: string; task_id?: string }; + return ( + event.type === 'executed' && + event.task_id === taskId && + event.node === id && + event.name === `${node.module}.${node.action}` + ); + }), + ) + .toEqual([expect.objectContaining({ status: owner ? 'cached' : 'succeeded', hasChanged: !owner })]); + } + record.loadedOwnerCacheAndFreshInference = completions.filter((value) => { + const event = value as { type?: string; task_id?: string }; + return event.type === 'executed' && event.task_id === taskId; + }); + await save(); + } const media = run.outputs .flatMap((item: { backendProvenance?: { mediaItems?: unknown[] } }) => item.backendProvenance?.mediaItems ?? []) .filter( diff --git a/tests/e2e/shared-controls/layout-conditioning.spec.ts b/tests/e2e/shared-controls/layout-conditioning.spec.ts new file mode 100644 index 00000000..7ca5246d --- /dev/null +++ b/tests/e2e/shared-controls/layout-conditioning.spec.ts @@ -0,0 +1,345 @@ +import { expect, test, type Page } from '@playwright/test'; + +const pageErrors = new WeakMap(); +test.beforeEach(async ({ page }) => { + const errors: string[] = []; + pageErrors.set(page, errors); + page.on('pageerror', (error) => errors.push(error.message)); +}); +test.afterEach(async ({ page }) => expect(pageErrors.get(page)).toEqual([])); + +test('generic public inventory defaults to native and submits only the selected immutable format repair', async ({ + page, +}) => { + await page.goto('/control-state-matrix.html?model-inventory'); + const fixture = page.getByTestId('inventory-fixture'); + await expect(fixture.locator('article')).toHaveCount(1); + const install = fixture.getByTestId('model-manager-workflow-install-future-native'); + await expect(install).toHaveText('Installed'); + await expect(install).toHaveJSProperty('tagName', 'SPAN'); + const format = fixture.getByRole('button', { name: 'Weight format for Future declared model', exact: true }); + await expect(format).toHaveText('Native'); + const choices = JSON.parse(await page.getByTestId('inventory-choices').innerText()); + for (const choice of choices) { + await format.click(); + await page.getByRole('option', { name: choice.weightFormat.toUpperCase(), exact: true }).click(); + await expect(install).toHaveText('Repair'); + await install.click(); + const target = JSON.parse(await page.getByTestId('inventory-target').innerText()); + expect(target).toMatchObject({ + repo: choice.repo, + revision: choice.revision, + files: choice.downloadFiles, + repair: true, + actionLabel: 'Repair', + }); + expect(target.files).toHaveLength(20); + } + const contained = await fixture.locator('article').evaluate((element) => { + const bounds = element.getBoundingClientRect(); + return ( + element.scrollWidth <= element.clientWidth && + [...element.querySelectorAll('button,input')].every((control) => { + const box = control.getBoundingClientRect(); + return box.left >= bounds.left && box.right <= bounds.right; + }) + ); + }); + expect(contained).toBe(true); +}); + +function widget(page: Page) { + return page.getByTestId('layout-widget'); +} + +async function exported(page: Page) { + const api = JSON.parse(await page.getByTestId('layout-api').innerText()); + const nodes = ( + Object.values(api.nodes) as { params: Record }[] + ).filter((node) => node.params.layout_conditioning); + expect(nodes).toHaveLength(1); + return nodes[0]!; +} + +async function addRegion(page: Page, description: string) { + const node = widget(page); + await node.getByRole('button', { name: 'Add region', exact: true }).click(); + await node.getByLabel('Region description', { exact: true }).fill(description); + await node.getByRole('button', { name: 'Apply region', exact: true }).click(); +} + +async function contained(page: Page) { + return widget(page).evaluate((element) => { + const outer = element.getBoundingClientRect(); + return { + width: outer.width, + overflow: element.scrollWidth - element.clientWidth, + controls: [...element.querySelectorAll('button,input,textarea,svg')].every((control) => { + const box = control.getBoundingClientRect(); + return box.left >= outer.left && box.right <= outer.right; + }), + }; + }); +} + +for (const grouped of [false, true]) { + test(`${grouped ? 'Block' : 'ordinary'} layout controls preserve drafts, ordered edits, Undo and persisted API at 368px`, async ({ + page, + }) => { + await page.goto(`/control-state-matrix.html?layout-conditioning${grouped ? '&block' : ''}`); + const node = widget(page); + await expect(node.getByRole('radio', { name: 'Raw prompt', exact: true })).toBeChecked(); + const prompt = (await exported(page)).params.prompt!.value; + await node.getByRole('radio', { name: 'Structured layout', exact: true }).click(); + await node.getByRole('button', { name: 'Add region', exact: true }).click(); + await node.getByLabel('Region description', { exact: true }).fill(' Draft fox 🦊 '); + expect(await contained(page)).toEqual({ width: 368, overflow: 0, controls: true }); + await node.getByLabel('Target box right', { exact: true }).fill('0'); + await node.getByRole('button', { name: 'Apply region', exact: true }).click(); + await expect(node.getByRole('alert')).toContainText('positive area'); + expect((await exported(page)).params.layout_conditioning!.value).toMatchObject({ regions: [] }); + await node.getByLabel('Target box right', { exact: true }).fill('1'); + const projectionBefore = await node.getByTestId('layout-projection-state').innerText(); + await node.getByRole('button', { name: 'Refresh equivalent controls', exact: true }).click(); + if (grouped) await expect(node.getByTestId('layout-projection-state')).not.toHaveText(projectionBefore); + await expect(node.getByLabel('Region description', { exact: true })).toHaveValue(' Draft fox 🦊 '); + await node.getByRole('button', { name: 'Apply region', exact: true }).click(); + await addRegion(page, 'Background'); + await node.getByRole('button', { name: 'Edit region_2', exact: true }).click(); + await node.getByLabel('Region ID', { exact: true }).fill('region_1'); + await node.getByRole('button', { name: 'Apply region', exact: true }).click(); + await expect(node.getByRole('alert')).toContainText('unique'); + await node.getByLabel('Region ID', { exact: true }).fill('region_2'); + await node.getByLabel('Region description', { exact: true }).fill('Backdrop'); + await node.getByRole('button', { name: 'Apply region', exact: true }).click(); + await node.getByRole('button', { name: 'Move region_2 up', exact: true }).click(); + const after = await exported(page); + expect(after.params.prompt!.value).toBe(prompt); + expect(after.params.layout_conditioning!.value).toMatchObject({ + regions: [{ id: 'region_2' }, { id: 'region_1', description: ' Draft fox 🦊 ' }], + }); + await node.getByRole('button', { name: 'Undo', exact: true }).click(); + expect((await exported(page)).params.layout_conditioning!.value).toMatchObject({ + regions: [{ id: 'region_1' }, { id: 'region_2' }], + }); + await node.getByRole('button', { name: 'Redo', exact: true }).click(); + expect(await exported(page)).toEqual(after); + expect(await contained(page)).toEqual({ width: 368, overflow: 0, controls: true }); + await page.screenshot({ path: test.info().outputPath(`${grouped ? 'block' : 'ordinary'}-layout.png`) }); + await page.reload(); + await expect(node.getByRole('button', { name: 'Edit region_1', exact: true })).toBeVisible(); + expect(await exported(page)).toEqual(after); + await node.getByRole('button', { name: 'Edit region_1', exact: true }).click(); + await node.getByLabel('Region description', { exact: true }).fill('Uncommitted edit'); + await node.getByRole('button', { name: 'Apply concurrent layout', exact: true }).click(); + await expect(node.getByRole('alert')).toContainText('layout changed while you were editing'); + await expect(node.getByRole('button', { name: 'Apply region', exact: true })).toHaveCount(0); + expect((await exported(page)).params.layout_conditioning!.value).toMatchObject({ + regions: [{ description: 'Concurrent edit' }], + }); + await node.getByRole('button', { name: 'Cancel stale draft', exact: true }).click(); + await node.getByRole('radio', { name: 'Raw prompt', exact: true }).click(); + expect((await exported(page)).params.layout_conditioning!.value).toBeNull(); + expect((await exported(page)).params.prompt!.value).toBe(prompt); + }); +} + +for (const grouped of [false, true]) { + test(`version two ${grouped ? 'Block' : 'ordinary'} placement keeps explicit actions and refuses unbound source tools`, async ({ + page, + }) => { + await page.goto(`/control-state-matrix.html?layout-conditioning&v2${grouped ? '&block' : ''}`); + const node = widget(page); + const prompt = (await exported(page)).params.prompt!.value; + await node.getByRole('radio', { name: 'Structured layout', exact: true }).click(); + await node.getByRole('button', { name: 'Add region', exact: true }).click(); + await node.getByRole('button', { name: 'Region action', exact: true }).click(); + await expect(page.getByRole('option', { name: 'Relocate from source', exact: true })).toBeDisabled(); + await expect(page.getByRole('option', { name: 'Remove from source', exact: true })).toBeDisabled(); + await page.keyboard.press('Escape'); + await node.getByLabel('Region description', { exact: true }).fill('Preserved version two placement'); + expect(await contained(page)).toEqual({ width: 368, overflow: 0, controls: true }); + await node.getByRole('button', { name: 'Apply region', exact: true }).click(); + const after = await exported(page); + expect(after.params.layout_conditioning!.value).toMatchObject({ + schemaVersion: 2, + regions: [{ action: 'place', targetBox: [0, 0, 1, 1], description: 'Preserved version two placement' }], + }); + expect(after.params.prompt!.value).toBe(prompt); + await node.getByRole('button', { name: 'Undo', exact: true }).click(); + expect((await exported(page)).params.layout_conditioning!.value).toMatchObject({ schemaVersion: 2, regions: [] }); + await node.getByRole('button', { name: 'Redo', exact: true }).click(); + await page.reload(); + await expect(node.getByRole('button', { name: 'Edit region_1', exact: true })).toBeVisible(); + expect(await exported(page)).toEqual(after); + expect(await contained(page)).toEqual({ width: 368, overflow: 0, controls: true }); + }); +} + +test('layout default, unsupported source regions and disabled inputs keep their declared boundaries', async ({ + page, +}) => { + await page.goto('/control-state-matrix.html?layout-conditioning&structured-default'); + const node = widget(page); + await expect(node.getByRole('radio', { name: 'Structured layout', exact: true })).toBeChecked(); + await expect(node.getByRole('button', { name: 'Edit subject', exact: true })).toBeVisible(); + await page.evaluate(() => localStorage.clear()); + await page.goto('/control-state-matrix.html?layout-conditioning&source-region'); + await expect(node.getByRole('alert')).toContainText('source regions are unavailable'); + await expect(node.getByRole('button', { name: 'Add region', exact: true })).toBeDisabled(); + const sourceBefore = await exported(page); + await node.getByRole('button', { name: 'Edit subject', exact: true }).click(); + await expect(node.getByRole('checkbox', { name: 'Use a source region', exact: true })).toHaveCount(0); + await node.getByRole('button', { name: 'Apply region', exact: true }).click(); + expect(await exported(page)).toEqual(sourceBefore); + await page.evaluate(() => localStorage.clear()); + await page.goto('/control-state-matrix.html?layout-conditioning&structured-default&disabled'); + await expect(node.getByRole('radio', { name: 'Raw prompt', exact: true })).toBeDisabled(); + await expect(node.getByRole('button', { name: 'Edit subject', exact: true })).toBeDisabled(); + await expect(node.getByRole('button', { name: 'Remove subject', exact: true })).toBeDisabled(); + await expect(node.getByRole('button', { name: 'Add region', exact: true })).toBeDisabled(); +}); + +for (const grouped of [false, true]) { + test(`bound ${grouped ? 'Block' : 'ordinary'} source actions use task-matched summaries and require explicit rebind`, async ({ + page, + }) => { + await page.goto(`/control-state-matrix.html?layout-conditioning&v2&bound-references${grouped ? '&block' : ''}`); + const node = widget(page); + const snapshot = () => page.getByTestId('layout-snapshot').innerText().then(JSON.parse); + let recorded = await snapshot(); + let referenceIds = ['a', 'b'].map((letter) => `sha256:${letter.repeat(64)}`); + let taskId = 'reference_task'; + const cacheRequests: string[] = []; + await page.route('**/cache/**/layout_reference_summary', async (route) => { + cacheRequests.push(route.request().url()); + await route.fulfill({ + status: 200, + contentType: 'text/plain', + body: JSON.stringify({ + schemaVersion: 1, + ownerFingerprint: 'sha256:' + '1'.repeat(64), + bindingFingerprint: 'sha256:' + '2'.repeat(64), + taskId, + attemptIndex: 0, + runInputHash: 'run_1234abcd', + references: referenceIds.map((referenceId) => ({ + referenceId, + sourceSize: [64, 48], + processedSize: [64, 48], + })), + }), + }); + }); + await page.route('**/runs/reference_*', async (route) => + route.fulfill({ + status: 200, + contentType: 'application/json', + body: JSON.stringify({ + task: { task_id: taskId, attempt_index: 0, run_input_hash: 'run_1234abcd', status: 'completed' }, + workflow_id: 'layout-widget-fixture', + workflow_snapshot: recorded, + outputs: [], + }), + }), + ); + const prompt = (await exported(page)).params.prompt!.value; + await node.getByRole('radio', { name: 'Structured layout', exact: true }).click(); + await node.getByRole('button', { name: 'Read encoded references', exact: true }).click(); + await expect(node.getByRole('status')).toContainText('2 encoded references'); + expect(cacheRequests).toHaveLength(1); + const supplierId = (await exported(page)).params.reference_binding!.sourceId; + expect(supplierId).toBeTruthy(); + expect( + new URL(cacheRequests[0]!).pathname.endsWith( + `/cache/${encodeURIComponent(supplierId!)}/layout_reference_summary`, + ), + ).toBe(true); + await node.getByRole('button', { name: 'Add region', exact: true }).click(); + await node.getByRole('button', { name: 'Region action', exact: true }).click(); + await page.getByRole('option', { name: 'Remove from source', exact: true }).click(); + await node.getByRole('button', { name: 'Source reference index', exact: true }).click(); + await page.getByRole('option', { name: 'Reference 1: 64×48 → 64×48', exact: true }).click(); + await node.getByLabel('Region description', { exact: true }).fill('Remove only the selected source'); + await expect(node.getByLabel('Target box left', { exact: true })).toHaveCount(0); + expect(await contained(page)).toEqual({ width: 368, overflow: 0, controls: true }); + await node.getByRole('button', { name: 'Apply region', exact: true }).click(); + const removal = await exported(page); + expect(removal.params.layout_conditioning!.value).toMatchObject({ + schemaVersion: 2, + regions: [ + { action: 'remove', targetBox: null, source: { referenceIndex: 1, expectedReferenceId: referenceIds[1] } }, + ], + }); + expect(removal.params.prompt!.value).toBe(prompt); + await node.getByRole('button', { name: 'Undo', exact: true }).click(); + expect((await exported(page)).params.layout_conditioning!.value).toMatchObject({ regions: [] }); + await node.getByRole('button', { name: 'Redo', exact: true }).click(); + expect(await exported(page)).toEqual(removal); + for (const action of ['remove', 'relocate']) { + if (action === 'relocate') { + await node.getByRole('button', { name: 'Edit region_1', exact: true }).click(); + await node.getByRole('button', { name: 'Region action', exact: true }).click(); + await page.getByRole('option', { name: 'Relocate from source', exact: true }).click(); + await node.getByLabel('Target box left', { exact: true }).fill('0.2'); + await node.getByRole('button', { name: 'Apply region', exact: true }).click(); + } + const beforeDetach = await exported(page); + await node.getByRole('button', { name: 'Edit region_1', exact: true }).click(); + await node.getByRole('button', { name: 'Remove source region', exact: true }).click(); + await node.getByRole('button', { name: 'Apply region', exact: true }).click(); + await expect(node.getByRole('alert')).toHaveCount(0); + const detached = await exported(page); + expect(detached.params.layout_conditioning!.value).toMatchObject({ + regions: [ + { + action: 'place', + description: 'Remove only the selected source', + targetBox: action === 'remove' ? [0, 0, 1, 1] : [0.2, 0, 1, 1], + }, + ], + }); + expect(JSON.stringify(detached.params.layout_conditioning!.value)).not.toContain('referenceIndex'); + expect(detached.params.prompt!.value).toBe(prompt); + await node.getByRole('button', { name: 'Undo', exact: true }).click(); + expect(await exported(page)).toEqual(beforeDetach); + if (action === 'relocate') await node.getByRole('button', { name: 'Undo', exact: true }).click(); + } + await node.getByRole('button', { name: 'Replace reference media', exact: true }).click(); + await expect(node.getByRole('status')).toContainText('Reference context changed'); + await node.getByRole('button', { name: 'Read encoded references', exact: true }).click(); + await expect(node.getByRole('alert')).toContainText('source graph changed'); + // The next mocked normal cache/run pair represents a new actual encoding; + // it grants display context only. Backend execution still needs its receipt. + recorded = await snapshot(); + referenceIds = ['c', 'd'].map((letter) => `sha256:${letter.repeat(64)}`); + taskId = 'reference_reencoded'; + await node.getByRole('button', { name: 'Read encoded references', exact: true }).click(); + await expect(node.getByRole('alert')).toContainText('explicitly rebind'); + expect((await exported(page)).params.layout_conditioning!.value).toMatchObject({ + regions: [ + { + source: { + referenceIndex: 1, + expectedReferenceId: 'sha256:' + 'b'.repeat(64), + }, + }, + ], + }); + await node.getByRole('button', { name: 'Edit region_1', exact: true }).click(); + await node.getByRole('button', { name: 'Apply region', exact: true }).click(); + await expect(node.getByRole('alert')).toHaveCount(0); + const rebound = await exported(page); + expect(rebound.params.layout_conditioning!.value).toMatchObject({ + regions: [{ source: { referenceIndex: 1, expectedReferenceId: referenceIds[1] }, targetBox: null }], + }); + await page.reload(); + await expect(node.getByRole('button', { name: 'Edit region_1', exact: true })).toBeVisible(); + expect(await exported(page)).toEqual(rebound); + await expect(node.getByRole('alert')).toContainText('source regions are unavailable'); + await node.getByRole('button', { name: 'Read encoded references', exact: true }).click(); + await expect(node.getByRole('alert')).toHaveCount(0); + expect(await exported(page)).toEqual(rebound); + expect(await contained(page)).toEqual({ width: 368, overflow: 0, controls: true }); + }); +} diff --git a/tests/e2e/studio-mocked/studio-mocked.spec.ts b/tests/e2e/studio-mocked/studio-mocked.spec.ts index 2a6a91f1..c83d7ee0 100644 --- a/tests/e2e/studio-mocked/studio-mocked.spec.ts +++ b/tests/e2e/studio-mocked/studio-mocked.spec.ts @@ -8,7 +8,13 @@ import net from 'node:net'; import path from 'node:path'; import { fileURLToPath } from 'node:url'; import { attachResizeObserverDiagnostics, installResizeObserverDiagnostics } from '../resize-observer-diagnostics'; -import { IMAGE_TEMPLATE_EXECUTION_SELECTIONS } from '../../../src/studio/templateOperationSelections'; +import { + IMAGE_TEMPLATE_EXECUTION_SELECTIONS, + AUDIO_TEMPLATE_EXECUTION_SELECTIONS, +} from '../../../src/studio/templateOperationSelections'; +import { STUDIO_TEMPLATES } from '../../../src/studio/templates'; +import { REGISTERED_BLOCK_V2_ROUTES } from '../../../src/studio/registeredBlockV2Routes'; +import { acknowledgementRequiredForTemplate } from '../../../src/studio/modelUsagePolicies'; import type { NodeData } from '../../../src/stores/useNodeStore'; import type { StudioExecutionSpec, StudioModelProfile } from '../../../src/studio/types'; import type { OperationStarter } from '../../../src/workflow/operationAuthoring'; @@ -542,7 +548,7 @@ declare global { edges: Array<{ id: string; source: string; target: string }>; viewport: { x: number; y: number; zoom: number }; }; - exportAuthorizedApiGraph: () => ApiGraphExport; + exportAuthorizedApiGraph: () => Promise; setGraphScenarioForTest: ( scenario: | 'empty' @@ -3646,8 +3652,14 @@ const mockHuggingFaceNodeLibrary = (() => { })(); function mockGraphQualifiedQwenNodeLibrary() { + const currentRoute = REGISTERED_BLOCK_V2_ROUTES.find( + (candidate) => + candidate.definitionId === 'diffusers.modular:QwenImageModularPipeline:text2image' && + candidate.admissionId === 'diffusers.cluster-admission:QwenImageModularPipeline:text2image:mode:text_to_image', + ); + if (!currentRoute) throw new Error('The mocked Qwen fixture needs an exact current registered route.'); const library = structuredClone(mockHuggingFaceNodeLibrary); - library.diffusersRevision = 'fbf49e7f35857f76bc57b177e26f12b03687c668'; + library.diffusersRevision = currentRoute.libraryRevision; library.definitions.forEach((definition) => { definition.libraryRevision = library.diffusersRevision; }); @@ -3804,8 +3816,8 @@ function mockGraphQualifiedQwenNodeLibrary() { ); const sealedSources = new Set(Object.keys(sealedBindingValues)); qwen.schemaVersion = 6; - qwen.libraryRevision = 'fbf49e7f35857f76bc57b177e26f12b03687c668'; - qwen.contentHash = 'sha256:49cb50671b41cf2c03b22387cfe2cf1b37f16b2996961791505aef830817c393'; + qwen.libraryRevision = currentRoute.libraryRevision; + qwen.contentHash = currentRoute.definitionContentHash; qwen.integrationStatus = 'reviewed_modular_workflow_route'; qwen.suggestedInputs = { schemaVersion: 1, @@ -4314,7 +4326,11 @@ type ImageTemplateSchemaFixture = { recipes: { id: string; starter: OperationStarter; spec: StudioExecutionSpec; capability: StudioModelProfile }[]; registry: Record; capabilities: StudioModelProfile[]; - publicPayload: { operationContracts: OperationContract[]; pipelineSupport: PipelineSupport[] }; + publicPayload: { + capabilities: StudioModelProfile[]; + operationContracts: OperationContract[]; + pipelineSupport: PipelineSupport[]; + }; }; let imageTemplateSchemaPromise: Promise; @@ -4353,6 +4369,28 @@ async function imageTemplateSchemas() { return structuredClone(await imageTemplateSchemaPromise); } +async function installImageFixtureRuntime(page: Page, templateId = 'z_image_quick_concept') { + // The starter's device schema comes from the real fixture interpreter. A + // synthetic CUDA status must not pretend that a CPU-only schema accepts it. + const parameter = (await imageTemplateSchemas()).recipes + .find((row) => row.id === templateId)! + .starter.nodes.find((node) => node.operation.decomposition === 'loader')!.node.params.device!; + const device = parameter.value ?? parameter.default; + if (typeof device !== 'string') throw new Error('The template fixture must declare its device.'); + if (device.startsWith('cpu')) { + await page.route('**/runtime/status**', (route) => + route.fulfill({ + json: { + ready: true, + config: { hf_token_configured: mockHfTokenConfigured }, + packages: { torch: { available: true, cuda_available: false, cuda_device_count: 0, cuda_devices: [] } }, + }, + }), + ); + } + return device; +} + function includeImageTemplateBindings(capabilities: StudioModelProfile[], fixture: ImageTemplateSchemaFixture) { // Legacy form fixtures did not need labels while their operation support // list was empty. The unified workflow browser now consumes these choices. @@ -4360,9 +4398,18 @@ function includeImageTemplateBindings(capabilities: StudioModelProfile[], fixtur capability.label ??= fixture.capabilities.find((source) => source.modelType === capability.modelType)?.label ?? capability.modelType; const selected = new Map(fixture.recipes.map((row) => [`${row.spec.modelType}:${row.spec.mode}`, row.spec])); + const templateSelections = new Map(Object.entries(IMAGE_TEMPLATE_EXECUTION_SELECTIONS)); + const selectedProfileIds = new Set( + fixture.recipes.flatMap((row) => { + const selection = templateSelections.get(row.id); + return selection ? [selection.executionProfileId] : []; + }), + ); for (const source of fixture.capabilities) { const specs = source.studioExecutionSpecs?.filter((spec) => selected.has(`${spec.modelType}:${spec.mode}`)) ?? []; - if (!specs.length) continue; + const selectedSourceProfiles = + source.executionProfiles?.filter((profile) => selectedProfileIds.has(profile.id)) ?? []; + if (!specs.length && !selectedSourceProfiles.length) continue; const existing = capabilities.find((capability) => capability.modelType === source.modelType); if (!existing) { capabilities.push(source); @@ -4388,7 +4435,10 @@ function includeImageTemplateBindings(capabilities: StudioModelProfile[], fixtur ...replacements, ]; existing.studioExecutionSpecModes = existing.studioExecutionSpecs.map((spec) => spec.mode); - const selectedProfiles = new Set(specs.map((spec) => spec.executionProfileId)); + const selectedProfiles = new Set([ + ...specs.map((spec) => spec.executionProfileId), + ...selectedSourceProfiles.map((profile) => profile.id), + ]); existing.executionProfiles = [ ...(existing.executionProfiles ?? []).filter((profile) => !selectedProfiles.has(profile.id)), ...(source.executionProfiles ?? []) @@ -4986,6 +5036,7 @@ async function installMockRoutes(page: Page, options: { graphQualifiedQwenCluste (row) => row.starter.pipelineClass === selection.pipelineClass && row.starter.task === selection.task && + (!selection.authoringRecipeId || row.starter.authoring?.id === selection.authoringRecipeId) && (!selection.executionProfileId || IMAGE_TEMPLATE_EXECUTION_SELECTIONS[row.id as keyof typeof IMAGE_TEMPLATE_EXECUTION_SELECTIONS] ?.executionProfileId === selection.executionProfileId), @@ -5553,8 +5604,38 @@ async function dismissTaskLauncher(page: Page) { // Legacy managed-graph regressions seed their existing document explicitly now // that Creator starts in Templates. This is fixture setup, not entry-flow proof; // the Creator/Developer tests below use native selection and creation gestures. -async function seedLegacyManagedWorkflow(page: Page, mode: 'text_to_image' | 'inpaint' | 'outpaint') { +async function seedLegacyManagedWorkflow( + page: Page, + mode: 'text_to_image' | 'inpaint' | 'outpaint', + fixtureDevice?: string, +) { await page.getByTestId('launcher-mode-advanced_workflow').click(); + if (fixtureDevice?.startsWith('cpu')) { + // Keep the legacy fixture's ordinary defaults selection, but complete its + // runtime normalization before capturing the finalization context. + await page.evaluate(async (value) => { + const { useStudioStore } = await import('/src/stores/useStudioStore.ts'); + useStudioStore.getState().selectMode(value); + }, mode); + // Let the actual Studio runtime effect settle after opening its panel. + // Passing the already-selected mode would reset it back to CUDA defaults + // and deliberately trip the operation's stale-context protection. + await page.waitForFunction( + ({ mode, device }) => { + const state = window.__MODIFF_E2E__!.getState(); + return ( + state.nodes.discoveryRequests.runtime.status === 'success' && + state.studio.form.mode === mode && + state.studio.form.device === device && + state.studio.form.autoOffload === false && + state.studio.form.offloadMode === 'none' + ); + }, + { mode, device: fixtureDevice }, + ); + await page.evaluate(() => window.__MODIFF_E2E__!.startManagedGraphFinalizationForTest()); + return; + } await page.evaluate((value) => window.__MODIFF_E2E__!.startManagedGraphFinalizationForTest(value), mode); } @@ -5695,6 +5776,18 @@ async function pinCurrentQwenRouteToMockRegistry(page: Page, compilerInstanceId: } const route = routes.registeredBlockV2Route(definition, admission); if (!route) throw new Error('The mocked Qwen admission has no registered V2 route.'); + const historicalIdentity = { + libraryRevision: 'fbf49e7f35857f76bc57b177e26f12b03687c668', + contentHash: 'sha256:49cb50671b41cf2c03b22387cfe2cf1b37f16b2996961791505aef830817c393', + }; + for (const stale of [ + historicalIdentity, + { libraryRevision: historicalIdentity.libraryRevision }, + { contentHash: historicalIdentity.contentHash }, + ]) { + if (routes.registeredBlockV2Route({ ...definition, ...stale }, admission) !== null) + throw new Error('The historical or partially stale mocked Qwen identity must remain refused.'); + } const legacyRoot = graph.createHuggingFaceClusterNode( definition, instanceId, @@ -9197,7 +9290,7 @@ async function installOperationAuthoringRoutes(page: Page, exactModel = false) { const registry = { ...Object.fromEntries(starters.flatMap((s) => s.nodes.map((n) => [n.operation.nodeKey, n.node]))), 'modules.Image.Load': mockRegistry['modules.Image.Load'], - 'modules.Image.Preview': mockRegistry['modules.Image.Preview'], + 'modules.Image.Preview': mockGraphQualifiedQwenRegistry['modules.Image.Preview'], 'modules.Audio.Preview': nodeDef('modules.Audio', 'Preview', 'audio', { audio: { type: 'audio', display: 'input' }, }), @@ -10044,6 +10137,16 @@ for (const invalidation of ['target', 'close', 'edit'] as const) { .click(); await page.getByTestId('left-tab-nodes').click(); await page.getByRole('button', { name: 'Arrange graph', exact: true }).click(); + // This race test exercises the ordinary loader inspector. Fresh starters + // now present its loader inside Model Setup; use the real Separate action. + const setupId = await page.evaluate( + () => window.__MODIFF_E2E__!.getState().flow.nodes.find((node) => node.label === 'Model Setup')!.id, + ); + const setup = page.getByTestId(`setup-node-${setupId}`); + await setup.getByRole('button', { name: 'Model Setup options', exact: true }).click(); + await page.getByRole('menuitem', { name: 'Separate model setup stages', exact: true }).click(); + await expect(setup).toHaveCount(0); + await page.getByRole('button', { name: 'Arrange graph', exact: true }).click(); const loaderId = await page.evaluate( () => window.__MODIFF_E2E__!.getState().flow.nodes.find((n) => n.action === 'ModelsLoader')!.id, ); @@ -10790,6 +10893,7 @@ test('new workflows stay neutral and ordinary node clicks dismiss the launcher', mockInstalledRepos.add('Tongyi-MAI/Z-Image-Turbo'); await ensureFrontend(); await installMockRoutes(page); + await installImageFixtureRuntime(page); await page.goto(FRONTEND_URL, { waitUntil: 'domcontentloaded' }); await page.waitForFunction(() => Boolean(window.__MODIFF_E2E__), null, { timeout: 30_000 }); await page.evaluate(() => window.__MODIFF_E2E__!.openWorkspacePanelForTest('studio')); @@ -10832,11 +10936,18 @@ test('new workflows stay neutral and ordinary node clicks dismiss the launcher', .toBeGreaterThan(0); await expect(page.getByTestId('studio-task-model-summary')).toContainText('Custom graph'); expect( - await page.evaluate( - () => - window.__MODIFF_E2E__!.getState().flow.nodes.find((node) => node.action === 'ModelsLoader')?.params.repo_id - .value, - ), + await page.evaluate(async () => { + const [{ useFlowStore }, { blockOperationGraphV2 }] = await Promise.all([ + import('/src/stores/useFlowStore.ts'), + import('/src/studio/blockRuntimeV2.ts'), + ]); + // Read the real loader's effective controls without changing the fresh + // Model Setup presentation or the launcher/document state under test. + const setup = useFlowStore.getState().nodes.find((node) => node.data.label === 'Model Setup')!; + return blockOperationGraphV2(setup.data.blockInstanceV2!).nodes.find( + (node) => node.data.action === 'ModelsLoader', + )!.data.params.repo_id.value; + }), ).toEqual({ source: 'hub', value: 'Tongyi-MAI/Z-Image-Turbo' }); await page.getByTestId('topbar-new-workflow').click(); @@ -13092,8 +13203,15 @@ test('mocked audio template stays managed after a page reload', async ({ page }) mockIncludeOutpaintNode = true; mockDynamicModularFields = false; await bootMockedTemplateBrowser(page); - await page.getByTestId('template-browser-category-audio').click(); - await page.getByTestId('template-browser-create-card-ace_step_text_to_audio').click(); + await page.getByTestId('template-browser-dialog').getByRole('button', { name: 'Close' }).click(); + // Saved managed document fixture; current audio authoring and reload are covered separately. + await page.evaluate(async () => { + const { useStudioStore } = await import('/src/stores/useStudioStore.ts'); + const template = window.__MODIFF_E2E__!.listTemplates().find((item) => item.id === 'ace_step_text_to_audio'); + if (!template) throw new Error('The saved audio template fixture is unavailable.'); + useStudioStore.getState().createWorkflowTab(template.label, undefined, 'template', template.id); + await window.__MODIFF_E2E__!.applyLegacyTemplateForTest(template.id); + }); await expect(page.getByTestId('template-browser-dialog')).toHaveCount(0); await expect @@ -13355,8 +13473,9 @@ test('active workflow snapshot wins when the fast canvas cache belongs to anothe await page.waitForFunction(() => Boolean(window.__MODIFF_E2E__), null, { timeout: 30_000 }); await page.evaluate(() => window.__MODIFF_E2E__!.setWebsocketConnection({ sid: 'mock-sid', isConnected: true })); + // Historical managed audio cache is the stale document in this persistence race. await page.evaluate(async () => { - await window.__MODIFF_E2E__!.applyTemplate('ace_step_text_to_audio'); + await window.__MODIFF_E2E__!.applyLegacyTemplateForTest('ace_step_text_to_audio'); }); const audioCanvas = await page.evaluate(() => { const persisted = JSON.parse(window.localStorage.getItem('modiff.flow') ?? '{}') as { @@ -13998,6 +14117,91 @@ test('mocked Studio blocks missing models, marks loader red, and keeps local tab expect(tabState.studio.activeWorkflowTabId).toBeTruthy(); }); +test('legacy CPU Task changes rebuild the supported graph and preserve authored prompts in both directions', async ({ + page, +}) => { + mockIncludeQuantizationNode = true; + mockIncludeOutpaintNode = true; + mockDynamicModularFields = false; + await ensureFrontend(); + await installMockRoutes(page); + const fixture = await imageTemplateSchemas(); + const modelType = fixture.recipes.find((row) => row.id === 'z_image_quick_concept')!.spec.modelType; + const source = fixture.capabilities.find((capability) => capability.modelType === modelType)!; + expect(source.revisionCandidates?.length).toBeGreaterThan(0); + expect(source.revisionCandidates!.every((revision) => /^[a-f0-9]{40}$/iu.test(revision))).toBe(true); + const native = fixture.recipes.find((row) => row.id === 'z_image_quick_concept')!.starter; + await page.route('**/nodes**', (route) => + route.fulfill({ + json: { + instance: 'mock', + nodes: { + ...fixture.registry, + ...mockRegistry, + ...Object.fromEntries(native.nodes.map(({ node }) => [`${node.module}.${node.action}`, node])), + }, + }, + }), + ); + await page.route('**/model_capabilities**', (route) => { + const capabilities = includeImageTemplateBindings(mockStudioExecutionCapabilities(), fixture); + const capability = capabilities.find((candidate) => candidate.modelType === modelType)!; + // The source-derived modular spec consumes this immutable default revision; + // the older whole-pipeline mock did not need to publish its candidates. + capability.revisionCandidates = [...source.revisionCandidates!]; + return route.fulfill({ + json: { + schemaVersion: 2, + capabilities, + studioExecutionSpecs: capabilities.flatMap((candidate) => candidate.studioExecutionSpecs ?? []), + operationContractSchemaVersion: 3, + operationContracts: fixture.publicPayload.operationContracts, + pipelineSupportSchemaVersion: 1, + pipelineSupport: fixture.publicPayload.pipelineSupport, + }, + }); + }); + const fixtureDevice = await installImageFixtureRuntime(page); + expect(fixtureDevice).toMatch(/^cpu(?::0)?$/u); + await page.goto(FRONTEND_URL, { waitUntil: 'domcontentloaded' }); + await page.waitForFunction(() => Boolean(window.__MODIFF_E2E__), null, { timeout: 30_000 }); + await page.evaluate(() => window.__MODIFF_E2E__!.setWebsocketConnection({ sid: 'mock-sid', isConnected: true })); + await seedLegacyManagedWorkflow(page, 'text_to_image', fixtureDevice); + const prompt = 'Preserve this authored prompt while changing the CPU task.'; + await page.getByTestId('studio-prompt-input').getByRole('textbox').fill(prompt); + for (const [label, mode] of [ + ['Modular text to image', 'modular_text_to_image'], + ['Text to image', 'text_to_image'], + ]) { + await page.getByTestId('studio-task-select').click(); + await page.getByRole('option', { name: label, exact: true }).click(); + await expect + .poll(async () => { + const state = await page.evaluate(() => window.__MODIFF_E2E__!.getState()); + return { + formMode: state.studio.form.mode, + bindingMode: state.studio.graphBinding?.mode, + device: state.studio.form.device, + offloadMode: state.studio.form.offloadMode, + prompt: state.studio.form.prompt, + graphPrompt: state.flow.nodes.some((node) => node.params.prompt?.value === prompt), + finalization: state.studio.graphFinalization?.status, + lastError: state.studio.lastError, + }; + }) + .toEqual({ + formMode: mode, + bindingMode: mode, + device: fixtureDevice, + offloadMode: 'none', + prompt, + graphPrompt: true, + finalization: 'complete', + lastError: null, + }); + } +}); + test('mocked Studio blanks the canvas while creating a template workflow', async ({ page }) => { mockInstalledRepos.clear(); mockInstalledRepos.add('Tongyi-MAI/Z-Image-Turbo'); @@ -14007,15 +14211,19 @@ test('mocked Studio blanks the canvas while creating a template workflow', async mockDynamicModularFields = false; await ensureFrontend(); await installMockRoutes(page); + const fixtureDevice = await installImageFixtureRuntime(page); await page.goto(FRONTEND_URL, { waitUntil: 'domcontentloaded' }); await page.waitForFunction(() => Boolean(window.__MODIFF_E2E__), null, { timeout: 30_000 }); await page.evaluate(() => window.__MODIFF_E2E__!.setWebsocketConnection({ sid: 'mock-sid', isConnected: true })); - await seedLegacyManagedWorkflow(page, 'text_to_image'); + await seedLegacyManagedWorkflow(page, 'text_to_image', fixtureDevice); await expect(page.getByTestId('studio-panel')).toBeVisible(); - await page.evaluate(async () => { - await window.__MODIFF_E2E__!.applyTemplate('z_image_quick_concept'); - }); + await page.evaluate(async (device) => { + await window.__MODIFF_E2E__!.applyTemplate( + 'z_image_quick_concept', + device.startsWith('cpu') ? { device, autoOffload: false, offloadMode: 'none' } : undefined, + ); + }, fixtureDevice); await expect .poll(async () => { const current = await page.evaluate(() => window.__MODIFF_E2E__!.getState()); @@ -14025,7 +14233,7 @@ test('mocked Studio blanks the canvas while creating a template workflow', async }; }) .toEqual({ - nodeCount: 6, + nodeCount: 5, transition: null, }); @@ -14087,7 +14295,7 @@ test('mocked Studio blanks the canvas while creating a template workflow', async .toEqual({ activeTemplateId: 'z_image_quick_concept', transition: null, - visibleNodeCount: 6, + visibleNodeCount: 5, }); const transitionSamples = await page.evaluate(() => { type TemplateGraphSample = { @@ -14631,11 +14839,12 @@ test('fresh Qwen template uses ordinary native stages without legacy field refre mockDynamicModularFields = false; await ensureFrontend(); await installMockRoutes(page); + const fixtureDevice = await installImageFixtureRuntime(page, 'qwen_low_vram_product_concept'); await page.goto(FRONTEND_URL, { waitUntil: 'domcontentloaded' }); await page.waitForFunction(() => Boolean(window.__MODIFF_E2E__), null, { timeout: 30_000 }); await page.evaluate(() => window.__MODIFF_E2E__!.setWebsocketConnection({ sid: 'mock-sid', isConnected: true })); - await seedLegacyManagedWorkflow(page, 'text_to_image'); + await seedLegacyManagedWorkflow(page, 'text_to_image', fixtureDevice); await expect(page.getByTestId('studio-panel')).toBeVisible(); await openTemplateBrowser(page); await page.getByTestId('template-browser-category-all').click(); @@ -14660,41 +14869,52 @@ test('fresh Qwen template uses ordinary native stages without legacy field refre .toEqual({ activeTemplateId: 'qwen_low_vram_product_concept', transition: null, - visibleNodeCount: 6, + // This mixed legacy registry declares selected_image rather than the + // actual preview field, so its ordinary Preview remains external. + visibleNodeCount: 5, finalization: undefined, }); await expect .poll( - async () => { - const current = await page.evaluate(() => window.__MODIFF_E2E__!.getState()); - const pipelineNode = current.flow.nodes.find( - (node) => node.action === 'ModelsLoader' && node.module === 'modules.ModularDiffusers', - ); - const generateNode = current.flow.nodes.find( - (node) => node.action === 'Denoise' && node.module === 'modules.ModularDiffusers', - ); - const encoding = current.flow.nodes.find((node) => node.label === 'Encode Inputs'); - const promptNode = encoding?.blockInstanceV2?.effectiveGraph.nodes.find( - (node) => node.data.action === 'EncodePrompt', - ); - const pipelineEdge = current.flow.edges.find( - (edge) => edge.source === pipelineNode?.id && edge.target === generateNode?.id, - ); - return { - finalization: current.studio.graphFinalization?.status, - promptValue: promptNode?.data.params?.prompt?.value, - offloadMode: pipelineNode?.params?.offload_mode?.value, - pipelineClass: pipelineNode?.params?.model_type?.value, - pipelineEdge: Boolean(pipelineEdge), - }; - }, + () => + page.evaluate(async () => { + const { blockOperationGraphV2 } = await import('/src/studio/blockRuntimeV2.ts'); + const current = window.__MODIFF_E2E__!.getState(); + const setup = current.flow.nodes.find((node) => node.label === 'Model Setup'); + const pipelineNode = + setup?.blockInstanceV2 && + blockOperationGraphV2(setup.blockInstanceV2).nodes.find( + (node) => node.data.action === 'ModelsLoader' && node.data.module === 'modules.ModularDiffusers', + ); + const generateNode = current.flow.nodes.find( + (node) => node.action === 'Denoise' && node.module === 'modules.ModularDiffusers', + ); + const encoding = current.flow.nodes.find((node) => node.label === 'Encode Inputs'); + const promptNode = + encoding?.blockInstanceV2 && + blockOperationGraphV2(encoding.blockInstanceV2).nodes.find((node) => node.data.action === 'EncodePrompt'); + const pipelineEdge = current.flow.edges.find( + (edge) => + edge.source === setup?.id && + edge.target === generateNode?.id && + edge.sourceHandle === `${pipelineNode?.data.blockProjectionNodeId}:unet_out` && + edge.targetHandle === 'unet', + ); + return { + finalization: current.studio.graphFinalization?.status, + promptValue: promptNode?.data.params?.prompt?.value, + offloadMode: pipelineNode?.data.params?.offload_mode?.value, + pipelineClass: pipelineNode?.data.params?.model_type?.value, + pipelineEdge: Boolean(pipelineEdge), + }; + }), { timeout: 10_000 }, ) .toEqual({ finalization: undefined, promptValue: await page.evaluate(() => window.__MODIFF_E2E__!.getState().studio.form.prompt), - offloadMode: 'model_cpu', + offloadMode: fixtureDevice.startsWith('cpu') ? 'none' : 'model_cpu', pipelineClass: 'QwenImageModularPipeline', pipelineEdge: true, }); @@ -18900,6 +19120,105 @@ test('session activity and generation notifications open the originating workflo await expect(failureDialog).toContainText('A deliberately verbose backend exception'); }); +test('runtime cleanup displays partial warnings and restores clean success without changing the graph', async ({ + page, +}) => { + await ensureFrontend(); + await installMockRoutes(page); + await page.goto(FRONTEND_URL, { waitUntil: 'domcontentloaded' }); + await page.waitForFunction(() => Boolean(window.__MODIFF_E2E__), null, { timeout: 30_000 }); + await expect(page.getByTestId('startup-workspace-gate')).toHaveCount(0, { timeout: 30_000 }); + await dismissTaskLauncher(page); + const initialGraph = await page.evaluate(() => { + const flow = window.__MODIFF_E2E__!.getState().flow; + return { nodes: flow.nodes, edges: flow.edges }; + }); + const preserved = 'Diffusers disk offload cache: live hook storage was preserved.'; + const complete = + 'Accelerator cleanup complete. Released 0 cached node object(s), 0 managed model(s), 0 Modular Diffusers component(s), and 0 Diffusers disk offload file(s).'; + const clean = { + error: false, + message: complete, + released_node_count: 0, + released_model_count: 0, + released_diffusers_component_count: 0, + released_diffusers_offload_file_count: 0, + allocator_trimmed: false, + cleanup_errors: [] as string[], + before: null, + after: null, + }; + const responses = [ + { + status: 200, + body: { + ...clean, + message: `${complete} Some cleanup calls reported errors but references were dropped where possible.`, + cleanup_errors: [preserved], + }, + }, + { status: 200, body: clean }, + { + status: 409, + body: { + error: true, + message: 'Accelerator cleanup cannot run while model work or cache cleanup is active.', + }, + }, + ]; + const requests: Array<{ method: string; body: string | null }> = []; + await page.route('**/runtime/gpu_cleanup', async (route) => { + requests.push({ method: route.request().method(), body: route.request().postData() }); + const response = responses[requests.length - 1]; + if (!response) throw new Error('Unexpected extra accelerator cleanup request.'); + await route.fulfill({ + status: response.status, + contentType: 'application/json', + body: JSON.stringify(response.body), + }); + }); + // Diagnostic setup opens the existing remediation surface, without executing a model. + await page.evaluate(async () => { + const { useRunIssueStore } = await import('/src/stores/useRunIssueStore.ts'); + useRunIssueStore.getState().showIssues([ + { + id: 'cleanup-warning-proof', + category: 'hardware_fit', + severity: 'warning', + blocking: false, + action: 'cleanup_gpu', + message: 'Release cached model state before retrying.', + }, + ]); + }); + const dialog = page.getByTestId('run-issues-dialog'); + const cleanup = dialog.getByRole('button', { name: 'Release accelerator cache', exact: true }); + const status = dialog.locator('footer p'); + await expect(dialog).toBeVisible(); + await cleanup.click(); + await expect(status).toContainText(preserved); + await expect(status).toHaveClass(/text-modiff-warning/); + await expect(status).not.toHaveClass(/text-modiff-green/); + await expect(status).toContainText(complete); + await expect(status).toHaveAttribute('aria-live', 'polite'); + await expect(cleanup).toBeEnabled(); + await verifyCompactDialog(page, dialog, 'cleanup-partial-warning'); + await cleanup.click(); + await expect(status).toHaveText(complete); + await expect(status).toHaveClass(/text-modiff-green/); + await expect(status).not.toContainText(preserved); + await cleanup.click(); + await expect(status).toHaveText('Accelerator cleanup cannot run while model work or cache cleanup is active.'); + await expect(status).toHaveClass(/text-modiff-red/); + expect(requests).toEqual(Array.from({ length: 3 }, () => ({ method: 'POST', body: null }))); + expect( + await page.evaluate(() => { + const flow = window.__MODIFF_E2E__!.getState().flow; + return { nodes: flow.nodes, edges: flow.edges }; + }), + ).toEqual(initialGraph); +}); + test('a recovered native worker crash opens an explicit failure with a lower-memory action', async ({ page }) => { await ensureFrontend(); await installMockRoutes(page); @@ -26428,9 +26747,9 @@ async function openDeveloperWorkflows(page: Page) { } for (const [task, , count, output] of [ - ['text_to_image', 'QwenImageModularPipeline', 6, 'modules.Image'], - ['image_to_image', 'FluxModularPipeline', 7, 'modules.Image'], - ['edit_image', 'FluxKontextModularPipeline', 7, 'modules.Image'], + ['text_to_image', 'QwenImageModularPipeline', 4, 'modules.Image'], + ['image_to_image', 'FluxModularPipeline', 5, 'modules.Image'], + ['edit_image', 'FluxKontextModularPipeline', 5, 'modules.Image'], ['text_to_audio', 'StableAudioPipeline', 3, 'modules.Audio'], ['image_upscale', 'SpandrelImageUpscaleV1', 3, 'modules.Image'], ] as const) { @@ -26442,11 +26761,16 @@ for (const [task, , count, output] of [ await expect(modal).toHaveCount(0); const read = () => page.evaluate((module) => { - const { flow, studio } = window.__MODIFF_E2E__!.getState(); - const preview = flow.nodes.find((n) => n.module === module && n.action === 'Preview'); + const { studio } = window.__MODIFF_E2E__!.getState(); + const document = window.__MODIFF_E2E__!.exportWorkflowGraph(); + const preview = document.nodes.find( + (node) => + (node.data.module === module && node.data.action === 'Preview') || + node.data.blockInstanceV2?.previewStates.some((preview) => preview.binding.mediaType === 'image'), + ); return { - count: flow.nodes.length, - connected: Boolean(preview && flow.edges.some((e) => e.target === preview.id)), + count: document.nodes.length, + connected: Boolean(preview && document.edges.some((edge) => edge.target === preview.id)), binding: studio.graphBinding, }; }, output); @@ -26628,12 +26952,12 @@ test('Gallery creation survives CPU runtime discovery while capabilities are pen page.locator('.react-flow__node').filter({ has: page.getByText('Encode Inputs', { exact: true }) }), ).toHaveCount(1); await expect( - page.locator('.react-flow__node').filter({ has: page.getByText('Guidance', { exact: true }) }), + page.locator('[data-testid^="encoding-node-"]').getByRole('button', { name: 'Guidance', exact: true }), ).toHaveCount(1); - const result = await page.evaluate(() => { + const result = await page.evaluate(async () => { const hooks = window.__MODIFF_E2E__!; hooks.setWebsocketConnection({ sid: 'cpu-template-creation', isConnected: true }); - const graph = hooks.exportAuthorizedApiGraph(); + const graph = await hooks.exportAuthorizedApiGraph(); return { studio: hooks.getState().studio, owner: Object.values(graph.nodes).find((node) => node.action === 'ModelsLoader'), @@ -26660,6 +26984,7 @@ test('Templates opens an editable workflow in the unified editor', async ({ page mockIncludeQuantizationNode = true; await ensureFrontend(); await installMockRoutes(page); + await installImageFixtureRuntime(page, 'z_image_quick_concept'); await page.goto(FRONTEND_URL, { waitUntil: 'domcontentloaded' }); await openTemplateBrowser(page); const modal = page.getByTestId('template-browser-dialog'); @@ -26697,6 +27022,7 @@ test('Templates opens an editable workflow in the unified editor', async ({ page test('Schnell template keeps its full creator token limit through ordinary authoring and reload', async ({ page }) => { await ensureFrontend(); await installMockRoutes(page); + await installImageFixtureRuntime(page, 'flux_schnell_text_to_image'); const fixture = await imageTemplateSchemas(); await page.route('**/model_capabilities**', (route) => route.fulfill({ status: 200, json: fixture.publicPayload })); await page.route('**/nodes**', (route) => @@ -26710,10 +27036,10 @@ test('Schnell template keeps its full creator token limit through ordinary autho await modal.getByTestId('template-browser-create-flux_schnell_text_to_image').click(); await expect(modal).toHaveCount(0); const read = () => - page.evaluate(() => { + page.evaluate(async () => { const hooks = window.__MODIFF_E2E__!; hooks.setWebsocketConnection({ sid: 'schnell-token-recipe', isConnected: true }); - const graph = hooks.exportAuthorizedApiGraph(); + const graph = await hooks.exportAuthorizedApiGraph(); const prompt = Object.values(graph.nodes).find((node) => node.action === 'EncodePrompt'); const denoise = Object.values(graph.nodes).find((node) => node.action === 'Denoise'); const owner = Object.values(graph.nodes).find((node) => node.action === 'ModelsLoader'); @@ -26757,6 +27083,7 @@ for (const [templateId, search, scale, negativePrompt] of [ mockInstalledRepos.add('youknownothing/v1-realism-v1-adapter-ZIT-lora'); await ensureFrontend(); await installMockRoutes(page); + await installImageFixtureRuntime(page, templateId); const fixture = await imageTemplateSchemas(); await page.route('**/model_capabilities**', (route) => route.fulfill({ status: 200, json: fixture.publicPayload })); await page.route('**/nodes**', (route) => @@ -26775,7 +27102,7 @@ for (const [templateId, search, scale, negativePrompt] of [ page.evaluate(() => { const hooks = window.__MODIFF_E2E__!; hooks.setWebsocketConnection({ sid: 'z-default-adapter-browser-proof', isConnected: true }); - return hooks.exportAuthorizedApiGraph() as ApiGraphExport; + return hooks.exportAuthorizedApiGraph(); }); const graph = await read(); const nodes = Object.entries(graph.nodes); @@ -26842,7 +27169,7 @@ test('Developer Workflows abandons pending creation when switching documents', a await page.getByRole('button', { name: 'New workflow tab', exact: true }).click(); await modal.getByTestId('workflow-task-edit_image').click(); await expect(modal).toHaveCount(0); - await expect.poll(() => page.evaluate(() => window.__MODIFF_E2E__!.getState().flow.nodes.length)).toBe(7); + await expect.poll(() => page.evaluate(() => window.__MODIFF_E2E__!.getState().flow.nodes.length)).toBe(5); const readGraph = () => page.evaluate(() => { const graph = window.__MODIFF_E2E__!.exportWorkflowGraph(); @@ -29401,7 +29728,7 @@ test('task sidebar preserves the current document and explicit Save promotes its await expect .poll(() => page.evaluate(() => window.__MODIFF_E2E__!.getState().studio.activeWorkflowTabId)) .not.toBe(first); - await expect.poll(() => page.evaluate(() => window.__MODIFF_E2E__!.getState().flow.nodes.length)).toBe(7); + await expect.poll(() => page.evaluate(() => window.__MODIFF_E2E__!.getState().flow.nodes.length)).toBe(5); await page.getByTestId(`workflow-tab-${first}`).click(); expect(await page.evaluate(() => window.__MODIFF_E2E__!.getState().flow.nodes.map((n) => n.id))).toEqual(original); await page.screenshot({ path: test.info().outputPath('shared-task-sidebar.png'), animations: 'disabled' }); @@ -29422,7 +29749,9 @@ test('Restore model defaults resets the prompt through the same undoable graph t const encoder = graph.nodes.find((n) => n.data.blockInstanceV2?.effectiveGraph.nodes.some((member) => member.data.action === 'EncodePrompt'), )!; - const loader = graph.nodes.find((n) => n.data.action === 'ModelsLoader')!; + const loader = graph.nodes.find((n) => + n.data.blockInstanceV2?.effectiveGraph.nodes.some((member) => member.data.action === 'ModelsLoader'), + )!; const promptControl = encoder.data.blockInstanceV2!.effectiveInterface.controls.find( (control) => control.binding.fieldId === 'prompt', )!; @@ -29654,6 +29983,7 @@ async function openOptionalStageTemplate(page: Page, templateId: string, search: await page.setViewportSize({ width: 1920, height: 1200 }); await ensureFrontend(); await installMockRoutes(page); + await installImageFixtureRuntime(page, templateId); const fixture = await imageTemplateSchemas(); await page.route('**/model_capabilities**', (route) => route.fulfill({ status: 200, json: fixture.publicPayload })); await page.route('**/nodes**', (route) => @@ -29728,10 +30058,10 @@ test('full image template cards, details, artifact search and Model Manager focu }); async function optionalStageApi(page: Page) { - return page.evaluate(() => { + return page.evaluate(async () => { const hooks = window.__MODIFF_E2E__!; hooks.setWebsocketConnection({ sid: 'optional-stage-contract', isConnected: true }); - const api = hooks.exportAuthorizedApiGraph(); + const api = await hooks.exportAuthorizedApiGraph(); const identities = new Map(Object.entries(api.nodes).map(([id, node]) => [id, `${node.module}.${node.action}`])); // These single-branch fixtures have one instance per implementation key. // Compare consumed parameters and source/port bindings across explicit @@ -29759,6 +30089,18 @@ test('optional Model Setup and Image Output preserve native stages, task review, page, }) => { await openOptionalStageTemplate(page, 'flux_lora_ghibli_story', 'ghibli'); + // Recreate the historical v1 presentation explicitly as compatibility setup. + // Fresh image templates now start with setup and output already grouped. + await page.evaluate(async () => { + const { useFlowStore } = await import('/src/stores/useFlowStore.ts'); + const { unpackVisualOperationGroups, groupOperationStages } = + await import('/src/workflow/visualOperationGroups.ts'); + const flow = useFlowStore.getState(); + const flat = unpackVisualOperationGroups(flow.toObject()).graph; + const owner = flat.nodes.find((node) => node.data.action === 'ModelsLoader')!; + flow.replaceGraph(groupOperationStages(flat, owner.id)); + }); + await page.getByRole('button', { name: 'Arrange graph', exact: true }).click(); const graph = () => page.evaluate(() => window.__MODIFF_E2E__!.exportWorkflowGraph()); const before = await optionalStageApi(page); const owner = (await graph()).nodes.find((node) => node.data.action === 'ModelsLoader')!; @@ -29857,863 +30199,2722 @@ test('optional Model Setup and Image Output preserve native stages, task review, expect(await optionalStageApi(page)).toEqual(before); }); -test('optional Prepare Mask keeps the exact outpaint source, canvas, mask and geometry across edit, separate and reload', async ({ +test('fresh image four-stage controls keep Guidance execution distinct from disclosure and legacy Combine is atomic', async ({ page, }) => { - await openOptionalStageTemplate(page, 'flux_fill_outpaint', 'fill outpaint'); - // Setup an existing, task-correct ordinary outpaint composition. The current - // Gallery starter intentionally has separate image/mask loaders; this case - // verifies grouping/edit/history for a graph already using the registered - // canvas utility, not a claim that Gallery creates mask preprocessing. + await openOptionalStageTemplate(page, 'qwen_text_rendering', 'Exact Text', false); + const graph = () => page.evaluate(() => window.__MODIFF_E2E__!.exportWorkflowGraph()); + expect((await graph()).nodes.map((node) => node.data.label).sort()).toEqual([ + 'Denoise', + 'Encode Inputs', + 'Image Output', + 'Model Setup', + ]); + const input = (await graph()).nodes.find((node) => node.data.label === 'Encode Inputs')!; + const node = page.getByTestId(`encoding-node-${input.id}`); + const before = await optionalStageApi(page); + const disclosure = node.getByRole('button', { name: 'Guidance', exact: true }); + const enabled = node.getByRole('switch', { name: 'Enabled', exact: true }); + await expect(enabled).toBeChecked(); + await disclosure.click(); + await expect(enabled).toBeHidden(); + expect(await optionalStageApi(page)).toEqual(before); + await disclosure.click(); + await enabled.click(); + await expect(enabled).not.toBeChecked(); + expect((await optionalStageApi(page))['modules.ModularDiffusers.Guider'].params.enabled.value).toBe(false); + await enabled.click(); + await expect.poll(() => optionalStageApi(page)).toEqual(before); + // Open a deliberately saved legacy v1 layout; viewing it does not combine it. await page.evaluate(async () => { const { useFlowStore } = await import('/src/stores/useFlowStore.ts'); - const { useNodesStore } = await import('/src/stores/useNodeStore.ts'); - const { createNodeFromRegistry } = await import('/src/workflow/nodeFactory.ts'); - const { prepareWorkflowForManualInsertion } = await import('/src/studio/manualGraphInsertion.ts'); - const graph = useFlowStore.getState().toObject(); - const consumer = graph.nodes.find( - (node) => - node.data.operationAuthoring?.operation.task === 'outpaint' && - node.data.params.image && - node.data.params.mask_image, - )!; - if (!consumer) - throw new Error( - `Missing declared masked consumer: ${JSON.stringify(graph.nodes.map((node) => ({ module: node.data.module, action: node.data.action, task: node.data.operationAuthoring?.operation.task, fields: Object.keys(node.data.params) })))}`, - ); - const image = graph.edges.find((edge) => edge.target === consumer.id && edge.targetHandle === 'image')!; - const mask = graph.edges.find((edge) => edge.target === consumer.id && edge.targetHandle === 'mask_image')!; - const canvas = createNodeFromRegistry( - 'modules.DiffusersImage.OutpaintCanvas', - useNodesStore.getState().nodesRegistry, - { x: -300, y: 400 }, - ); - if (!canvas || !image || !mask) throw new Error('Missing exact registered outpaint fixture'); - for (const [field, value] of Object.entries({ - width: 1536, - height: 1024, - left: 128, - right: 128, - top: 0, - bottom: 0, - overlap: 24, - feather: 8, - })) - canvas.data.params[field].value = value; - consumer.data.params.width.isInput = true; - consumer.data.params.height.isInput = true; - const edges = graph.edges.filter((edge) => edge.id !== image.id && edge.id !== mask.id); - if (edges.some((edge) => edge.source === mask.source || edge.target === mask.source)) - throw new Error('Mask fixture has another consumer'); - edges.push({ - id: 'mask-source-canvas', - source: image.source, - sourceHandle: image.sourceHandle, - target: canvas.id, - targetHandle: 'image', - }); - for (const [output, input] of [ - ['canvas', 'image'], - ['mask_image', 'mask_image'], - ['width_out', 'width'], - ['height_out', 'height'], - ]) - edges.push({ - id: `mask-canvas-${input}`, - source: canvas.id, - sourceHandle: output, - target: consumer.id, - targetHandle: input, - }); - prepareWorkflowForManualInsertion(); + const { unpackVisualOperationGroups, groupOperationStages } = + await import('/src/workflow/visualOperationGroups.ts'); + const flat = unpackVisualOperationGroups(useFlowStore.getState().toObject()).graph; + const owner = flat.nodes.find((node) => node.data.action === 'ModelsLoader')!; useFlowStore .getState() - .replaceGraph({ nodes: [...graph.nodes.filter((node) => node.id !== mask.source), canvas], edges }); + .replaceGraph(groupOperationStages(flat, owner.id, ['inputs', 'guidance', 'setup', 'output'])); }); - await page.getByRole('button', { name: 'Arrange graph', exact: true }).click(); + const legacy = await graph(); + const legacyInput = legacy.nodes.find((node) => node.data.label === 'Encode Inputs')!; + const legacyNode = page.getByTestId(`encoding-node-${legacyInput.id}`); + expect(legacy.nodes).toHaveLength(5); + const api = await optionalStageApi(page); + await legacyNode.getByRole('button', { name: 'Encode Inputs options', exact: true }).click(); + await page.getByRole('menuitem', { name: 'Combine encoding and Guidance', exact: true }).click(); + await expect.poll(async () => (await graph()).nodes.length).toBe(4); + expect(await optionalStageApi(page)).toEqual(api); + await page.locator('.react-flow__pane').click({ position: { x: 40, y: 140 } }); + await page.keyboard.press('Control+z'); + await expect.poll(async () => (await graph()).nodes.length).toBe(5); + expect(await optionalStageApi(page)).toEqual(api); + await page.keyboard.press('Control+Shift+z'); + await expect.poll(async () => (await graph()).nodes.length).toBe(4); + await legacyNode.getByRole('button', { name: 'Encode Inputs options', exact: true }).click(); + await page.getByRole('menuitem', { name: 'Separate encoding stages', exact: true }).click(); + await expect(legacyNode).toHaveCount(0); + expect(await optionalStageApi(page)).toEqual(api); + await page.locator('.react-flow__pane').click({ position: { x: 40, y: 140 } }); + await page.keyboard.press('Control+z'); + await expect(legacyNode).toBeVisible(); + await page.reload({ waitUntil: 'domcontentloaded' }); + await expect(legacyNode).toBeVisible(); + expect((await graph()).nodes).toHaveLength(4); + expect(await optionalStageApi(page)).toEqual(api); +}); + +test('Model Setup adapter dialog inserts only populated immutable rows and add, reorder, remove, Undo survive reload', async ({ + page, +}) => { + await openOptionalStageTemplate(page, 'qwen_text_rendering', 'Exact Text', false); const graph = () => page.evaluate(() => window.__MODIFF_E2E__!.exportWorkflowGraph()); - const before = await optionalStageApi(page); - const owner = (await graph()).nodes.find((node) => node.data.action === 'LoadPipeline')!; - const loader = page.locator(`.react-flow__node[data-id="${owner.id}"]`); - await loader.locator('header').first().click(); - await page.getByRole('button', { name: 'Inspect node', exact: true }).click(); - await page - .getByRole('dialog', { name: 'Node inspector', exact: true }) - .getByRole('button', { name: 'Workflow stage actions', exact: true }) - .click(); - await expect(page.getByRole('menuitem', { name: 'Group image output', exact: true })).toHaveCount(0); - await page.getByRole('menuitem', { name: 'Group mask preparation', exact: true }).click(); - await expect - .poll(async () => { - if ((await graph()).nodes.some((node) => node.data.label === 'Prepare Mask')) return 'grouped'; - return ( - ( - await page.getByRole('dialog', { name: 'Node inspector', exact: true }).getByRole('alert').allTextContents() - ).join('; ') || 'waiting' - ); - }) - .toBe('grouped'); - await page.keyboard.press('Escape'); - const prepared = (await graph()).nodes.find((node) => node.data.label === 'Prepare Mask')!; - const node = page.getByTestId(`mask-node-${prepared.id}`); - await expect(node).toBeVisible(); - expect(prepared.data.blockInstanceV2!.effectiveGraph.nodes.map((node) => node.data.action).sort()).toEqual([ - 'Load', - 'OutpaintCanvas', - ]); - expect(await optionalStageApi(page)).toEqual(before); - const consumer = (await graph()).nodes.find( - (node) => - node.data.operationAuthoring?.operation.task === 'outpaint' && - node.data.params.image && - node.data.params.mask_image, - )!; - const consumerKey = `${consumer.data.module}.${consumer.data.action}`; - const feather = node.getByLabel(/^Mask feather$/i); - await feather.fill('0'); - await feather.press('Enter'); - await expect(feather).toHaveValue('0'); - const edited = await optionalStageApi(page); - expect(edited['modules.DiffusersImage.OutpaintCanvas'].params.feather.value).toBe('0'); - expect(edited[consumerKey].params.mask_image.sourceKey).toBe('mask_image'); - expect(edited[consumerKey].params.width.sourceKey).toBe('width_out'); - expect(edited[consumerKey].params.height.sourceKey).toBe('height_out'); - await node.getByRole('button', { name: 'Prepare Mask options', exact: true }).click(); - await page.getByRole('menuitem', { name: 'Separate mask preparation stages', exact: true }).click(); - await expect(node).toHaveCount(0); - expect(await optionalStageApi(page)).toEqual(edited); + const setup = (await graph()).nodes.find((node) => node.data.label === 'Model Setup')!; + const node = page.getByTestId(`setup-node-${setup.id}`); + const initial = await optionalStageApi(page); + const requests: string[] = []; + page.on('request', (request) => { + if (request.method() === 'POST' && /\/(execute|install|download)(?:[/?]|$)/u.test(request.url())) + requests.push(request.url()); + }); + const orderedModels = () => + page.evaluate(async () => { + const hooks = window.__MODIFF_E2E__!; + hooks.setWebsocketConnection({ sid: 'adapter-ui-contract', isConnected: true }); + const api = await hooks.exportAuthorizedApiGraph(); + const owner = Object.values(api.nodes).find((entry) => entry.action === 'ModelsLoader')!; + const ordered: string[] = []; + let id = owner.params.lora_list?.sourceId; + while (id) { + const adapter = api.nodes[id]!; + ordered.unshift((adapter.params.model.value as { value: string }).value); + id = adapter.params.previous_loras?.sourceId; + } + return ordered; + }); + const orderedScales = () => + page.evaluate(async () => { + const hooks = window.__MODIFF_E2E__!; + hooks.setWebsocketConnection({ sid: 'adapter-ui-contract', isConnected: true }); + const api = await hooks.exportAuthorizedApiGraph(); + const owner = Object.values(api.nodes).find((entry) => entry.action === 'ModelsLoader')!; + const ordered: unknown[] = []; + let id = owner.params.lora_list?.sourceId; + while (id) { + const adapter = api.nodes[id]!; + ordered.unshift(adapter.params.scale.value); + id = adapter.params.previous_loras?.sourceId; + } + return ordered; + }); + await node.getByRole('button', { name: 'Add LoRA', exact: true }).click(); + let dialog = page.getByRole('dialog', { name: 'Add LoRA', exact: true }); + await dialog.getByRole('button', { name: 'Add adapter', exact: true }).click(); + await expect(dialog.getByRole('alert')).toContainText('Select a Hub or local LoRA'); + expect(await optionalStageApi(page)).toEqual(initial); + await dialog.getByLabel('Model', { exact: true }).fill('review/first-adapter'); + await dialog.getByRole('button', { name: 'Add adapter', exact: true }).click(); + await expect(dialog.getByRole('alert')).toContainText('commit revision'); + expect(await orderedModels()).toEqual([]); + await dialog.getByLabel('Revision', { exact: true }).fill('a'.repeat(40)); + await dialog.getByLabel('Expected SHA-256', { exact: true }).fill('b'.repeat(64)); + await dialog.getByLabel('Weight Name', { exact: true }).fill('first.safetensors'); + await dialog.getByLabel('Scale', { exact: true }).fill('0.8'); + await dialog.getByLabel('Scale', { exact: true }).press('Tab'); + await dialog.getByRole('button', { name: 'Add adapter', exact: true }).click(); + await expect(dialog).toHaveCount(0); + await expect.poll(orderedModels).toEqual(['review/first-adapter']); + await node.getByRole('button', { name: 'Add LoRA', exact: true }).click(); + dialog = page.getByRole('dialog', { name: 'Add LoRA', exact: true }); + await dialog.getByLabel('Model', { exact: true }).fill('review/second-adapter'); + await dialog.getByLabel('Revision', { exact: true }).fill('c'.repeat(40)); + await dialog.getByLabel('Expected SHA-256', { exact: true }).fill('d'.repeat(64)); + await dialog.getByLabel('Weight Name', { exact: true }).fill('second.safetensors'); + await dialog.getByLabel('Scale', { exact: true }).fill('0.35'); + await dialog.getByLabel('Scale', { exact: true }).press('Tab'); + await expect(dialog.getByLabel('Scale', { exact: true })).toHaveValue('0.35'); + await dialog.getByRole('button', { name: 'Add adapter', exact: true }).click(); + await expect(dialog).toHaveCount(0); + await expect.poll(orderedModels).toEqual(['review/first-adapter', 'review/second-adapter']); + await expect.poll(orderedScales).toEqual(['0.8', '0.35']); + const secondScale = node.getByRole('region', { name: 'Adapter 2', exact: true }).getByLabel('Scale', { exact: true }); + await secondScale.fill('0.355'); + await secondScale.press('Tab'); + await expect.poll(orderedScales).toEqual(['0.8', '0.355']); + await secondScale.fill('0.35'); + await secondScale.press('Tab'); + await expect.poll(orderedScales).toEqual(['0.8', '0.35']); + await node + .getByRole('region', { name: 'Adapter 2', exact: true }) + .getByRole('button', { name: 'Move up', exact: true }) + .click(); + await expect.poll(orderedModels).toEqual(['review/second-adapter', 'review/first-adapter']); + await expect.poll(orderedScales).toEqual(['0.35', '0.8']); + await node + .getByRole('region', { name: 'Adapter 1', exact: true }) + .getByRole('button', { name: 'Remove', exact: true }) + .click(); + await expect.poll(orderedModels).toEqual(['review/first-adapter']); await page.locator('.react-flow__pane').click({ position: { x: 40, y: 140 } }); await page.keyboard.press('Control+z'); - await expect(node).toBeVisible(); - await expect(feather).toHaveValue('0'); + await expect.poll(orderedModels).toEqual(['review/second-adapter', 'review/first-adapter']); await page.reload({ waitUntil: 'domcontentloaded' }); await expect(node).toBeVisible(); - await expect(feather).toHaveValue('0'); - expect(await optionalStageApi(page)).toEqual(edited); + await expect.poll(orderedModels).toEqual(['review/second-adapter', 'review/first-adapter']); + expect((await graph()).nodes).toHaveLength(4); + await expect.poll(orderedScales).toEqual(['0.35', '0.8']); + await expect( + node.getByRole('region', { name: 'Adapter 1', exact: true }).getByLabel('Scale', { exact: true }), + ).toHaveValue('0.35'); + expect(requests).toEqual([]); }); -test('optional declared component bundle preserves Qwen stages, controls, breakout, Undo and reload', async ({ +test('selected FLUX image adapter policy enables original two-row editing, reorder, Undo and reload without promoting runtime support', async ({ page, }) => { - await openOptionalStageTemplate(page, 'qwen_text_rendering', 'qwen', false); + await openOptionalStageTemplate(page, 'flux_lora_cinematic_octane_3d', 'Cinematic Octane'); const graph = () => page.evaluate(() => window.__MODIFF_E2E__!.exportWorkflowGraph()); - const original = await graph(); - const before = await optionalStageApi(page); - const owner = original.nodes.find((node) => node.data.action === 'ModelsLoader')!; - const loader = page.locator(`.react-flow__node[data-id="${owner.id}"]`); - const menu = async () => { - await loader.locator('header').first().click(); - await page.getByRole('button', { name: 'Inspect node', exact: true }).click(); - await page - .getByRole('dialog', { name: 'Node inspector', exact: true }) - .getByRole('button', { name: 'Workflow stage actions', exact: true }) - .click(); - }; - await menu(); - await page.getByRole('menuitem', { name: 'Use component bundle', exact: true }).click(); - await page.keyboard.press('Escape'); - const bundled = await graph(); - expect(bundled.nodes.map((node) => node.id).sort()).toEqual(original.nodes.map((node) => node.id).sort()); - expect(bundled.edges.length).toBe(original.edges.length - 1); - const api = await optionalStageApi(page); - for (const key of [ - 'modules.ModularDiffusers.EncodePrompt', - 'modules.ModularDiffusers.Denoise', - 'modules.ModularDiffusers.DecodeLatents', - ]) { - expect(api[key].params.pipeline_components.sourceId).toBe('modules.ModularDiffusers.ModelsLoader'); - expect(api[key].params.pipeline_components.sourceKey).toBe('pipeline_components'); - } - expect(api['modules.ModularDiffusers.EncodePrompt'].params.prompt).toEqual( - before['modules.ModularDiffusers.EncodePrompt'].params.prompt, - ); - expect(api['modules.ModularDiffusers.Guider']).toEqual(before['modules.ModularDiffusers.Guider']); - expect(api['modules.ModularDiffusers.Denoise'].params.seed).toEqual( - before['modules.ModularDiffusers.Denoise'].params.seed, + const setup = (await graph()).nodes.find((node) => node.data.label === 'Model Setup')!; + const node = page.getByTestId(`setup-node-${setup.id}`); + const orderedAdapters = () => + page.evaluate(async () => { + const hooks = window.__MODIFF_E2E__!; + hooks.setWebsocketConnection({ sid: 'selected-policy-ui-contract', isConnected: true }); + const api = await hooks.exportAuthorizedApiGraph(); + const owner = Object.values(api.nodes).find((entry) => entry.action === 'ModelsLoader')!; + const ordered: Array> = []; + let id = owner.params.lora_list?.sourceId; + while (id) { + const adapter = api.nodes[id]!; + ordered.unshift( + Object.fromEntries( + ['model', 'revision', 'expected_sha256', 'weight_name', 'adapter_name', 'scale'].map((field) => [ + field, + adapter.params[field].value, + ]), + ), + ); + id = adapter.params.previous_loras?.sourceId; + } + return ordered; + }); + const original = await orderedAdapters(); + expect(original).toHaveLength(2); + expect(original.map((adapter) => Number(adapter.scale))).toEqual([0.8, 0.18]); + const broadSupport = await page.evaluate( + () => + window + .__MODIFF_E2E__!.getState() + .nodes.studioModelCapabilities.find((item) => item.modelType === 'FluxModularPipeline')!.supportsLora, ); - await menu(); - await page.getByRole('menuitem', { name: 'Expose components', exact: true }).click(); - await page.keyboard.press('Escape'); - expect(await optionalStageApi(page)).toEqual(before); + expect(broadSupport).toBe(false); + await expect(node.getByRole('button', { name: 'Add LoRA', exact: true })).toBeEnabled(); + const second = node.getByRole('region', { name: 'Adapter 2', exact: true }); + const scale = second.getByLabel('Scale', { exact: true }); + await expect(scale).toBeEnabled(); + await scale.fill('0.355'); + await scale.press('Tab'); + await expect.poll(async () => Number((await orderedAdapters())[1].scale)).toBe(0.355); + await scale.fill('0.18'); + await scale.press('Tab'); + await expect.poll(async () => (await orderedAdapters()).map((adapter) => Number(adapter.scale))).toEqual([0.8, 0.18]); + const unchanged = await orderedAdapters(); + await second.getByRole('button', { name: 'Move up', exact: true }).click(); + await expect.poll(orderedAdapters).toEqual([...unchanged].reverse()); await page.locator('.react-flow__pane').click({ position: { x: 40, y: 140 } }); await page.keyboard.press('Control+z'); - await expect.poll(() => optionalStageApi(page)).toEqual(api); + await expect.poll(orderedAdapters).toEqual(unchanged); + await page.keyboard.press('Control+Shift+z'); + await expect.poll(orderedAdapters).toEqual([...unchanged].reverse()); await page.reload({ waitUntil: 'domcontentloaded' }); - await page.waitForFunction(() => Boolean(window.__MODIFF_E2E__)); - await expect.poll(() => optionalStageApi(page)).toEqual(api); - await menu(); - await expect(page.getByRole('menuitem', { name: 'Expose components', exact: true })).toBeVisible(); + await expect(node).toBeVisible(); + await expect.poll(orderedAdapters).toEqual([...unchanged].reverse()); + expect((await graph()).nodes.map((entry) => entry.data.label).sort()).toEqual([ + 'Denoise', + 'Encode Inputs', + 'Image Output', + 'Model Setup', + ]); }); -for (const templateId of [ - 'qwen_inpaint_object_replace', - 'qwen_inpaint_mask_draft', - 'qwen_outpaint_aspect_template', - 'qwen_outpaint_draft', -] as const) - test(`Qwen Gallery ${templateId} preserves its selected stages and exact inputs through export, normal import and refresh`, async ({ - page, - }) => { - await openOptionalStageTemplate(page, templateId, 'qwen', false); - const api = () => - page.evaluate(async () => { - const sid = 'qwen-gallery-hydration'; - window.__MODIFF_E2E__!.setWebsocketConnection({ sid, isConnected: true }); - const { useFlowStore } = await import('/src/stores/useFlowStore.ts'); - return useFlowStore.getState().exportGraph(sid, undefined, { randomizeSeeds: false }); - }); - const before = await api(); - const selection = IMAGE_TEMPLATE_EXECUTION_SELECTIONS[templateId]!; - const executable = Object.values(before.nodes); - const form = await page.evaluate(() => window.__MODIFF_E2E__!.getState().studio.form); - if (selection.implementation === 'native_stages') { - for (const action of ['ModelsLoader', 'EncodePrompt', 'ImageEncode', 'Denoise', 'DecodeLatents', 'Guider']) - expect( - executable.filter((node) => node.module === 'modules.ModularDiffusers' && node.action === action), - ).toHaveLength(1); - expect(executable.some((node) => ['LoadPipeline', 'Inpaint'].includes(node.action))).toBe(false); - const owner = executable.find((node) => node.action === 'ModelsLoader')!; - const encode = executable.find((node) => node.action === 'ImageEncode')!; - const prompt = executable.find((node) => node.action === 'EncodePrompt')!; - const denoise = executable.find((node) => node.action === 'Denoise')!; - expect(owner.params.inpaint_compatibility.value).toBe('whole_v1'); - expect(encode.params.inpaint_compatibility.value).toBe('whole_v1'); - expect([denoise.params.width.value, denoise.params.height.value]).toEqual([form.width, form.height]); - expect(denoise.params.num_inference_steps.value).toBe(form.steps); - expect(denoise.params.strength.value).toBe(form.strength); - expect(prompt.params.prompt.value).toBe(form.prompt); - expect(prompt.params.negative_prompt.value).toBe(form.negativePrompt); - if (templateId.startsWith('qwen_outpaint_')) { - const canvasId = Object.keys(before.nodes).find((id) => before.nodes[id].action === 'OutpaintCanvas')!; - const canvas = before.nodes[canvasId]; - expect(canvas).toBeTruthy(); - expect([canvas.params.width.value, canvas.params.height.value]).toEqual([form.width, form.height]); - expect(encode.params.image).toMatchObject({ sourceId: canvasId, sourceKey: 'canvas' }); - expect(encode.params.mask_image).toMatchObject({ sourceId: canvasId, sourceKey: 'mask_image' }); - expect(prompt.params.image).toMatchObject({ sourceId: canvasId, sourceKey: 'canvas' }); - } - } else { - expect(selection.implementation).toBe('whole_pipeline'); - expect(executable.some((node) => node.action === 'LoadPipeline')).toBe(true); - } - const foreignSockets = await page.evaluate(async () => { - const [{ useFlowStore }, runtime, { operationAuthoring }] = await Promise.all([ - import('/src/stores/useFlowStore.ts'), - import('/src/studio/blockRuntimeV2.ts'), - import('/src/workflow/operationAuthoringHint.ts'), - ]); - const graph = useFlowStore.getState().toObject(); - return runtime - .expandBlockGraphV2ForExecution(graph.nodes, graph.edges) - .nodes.filter((node) => { - const operation = operationAuthoring(node)?.operation; - return ( - operation && - Object.hasOwn(node.data.params, 'pipeline_components') && - !operation.ports.some((port) => port.name === 'pipeline_components') +async function assertSelectedAliasAdapterAuthoring( + page: Page, + selection: { + templateId: string; + profileId: string; + denoiseAction?: string; + search: string; + reviewTerms: boolean; + embeddedGuidance: number; + guiderEnabled: boolean | null; + task?: string; + executionMode?: string; + policyTasks?: string[]; + visibleLabels?: string[]; + referenceCount?: number; + }, +) { + const mutations: string[] = []; + page.on('request', (request) => { + if (request.method() === 'POST' && /\/(graph|execute|install|download)(?:[/?]|$)/u.test(request.url())) + mutations.push(request.url()); + }); + await openOptionalStageTemplate(page, selection.templateId, selection.search, selection.reviewTerms); + const setup = (await page.evaluate(() => window.__MODIFF_E2E__!.exportWorkflowGraph())).nodes.find( + (node) => node.data.label === 'Model Setup', + )!; + const node = page.getByTestId(`setup-node-${setup.id}`); + const snapshot = () => + page.evaluate( + async ({ profileId, denoiseAction }) => { + const hooks = window.__MODIFF_E2E__!; + hooks.setWebsocketConnection({ sid: 'own-alias-authoring-contract', isConnected: true }); + const api = await hooks.exportAuthorizedApiGraph(); + const owner = Object.values(api.nodes).find((entry) => entry.action === 'ModelsLoader')!; + const ordered: Array> = []; + let id = owner.params.lora_list?.sourceId; + while (id) { + const adapter = api.nodes[id]!; + ordered.unshift( + Object.fromEntries( + ['model', 'revision', 'expected_sha256', 'weight_name', 'adapter_name', 'scale'].map((field) => [ + field, + adapter.params[field].value, + ]), + ), ); - }) - .map((node) => `${node.data.module}.${node.data.action}`); - }); - expect(foreignSockets).toEqual([]); - await page.getByTestId('topbar-export').click(); - const downloadPromise = page.waitForEvent('download'); - await page.getByTestId('topbar-export-workflow-package').click(); - const download = await downloadPromise; - const downloadedPath = await download.path(); - expect(downloadedPath).toBeTruthy(); - const packageBytes = await fs.readFile(downloadedPath!); - const workflowPackage = JSON.parse(packageBytes.toString('utf8')) as { apiGraph: ApiGraphExport }; - expect(workflowPackage.apiGraph.nodes).toEqual(before.nodes); - await page.getByTestId('left-tab-assets').click(); - await page.getByTestId('left-open-gallery-library').click(); - await expect(page.getByRole('heading', { name: 'Output Gallery', exact: true })).toBeVisible(); - await page.getByTestId('gallery-import-workflow-input').setInputFiles({ - name: `${templateId}.json`, - mimeType: 'application/json', - buffer: packageBytes, - }); - await page.waitForFunction(() => { - const state = window.__MODIFF_E2E__!.getState().studio; - return ( - state.canvasTransition === null && - state.workflowTabs.find((tab: { id: string }) => tab.id === state.activeWorkflowTabId)?.source === 'import' - ); - }); - await expect.poll(api).toEqual(before); - await page.reload({ waitUntil: 'domcontentloaded' }); - await page.waitForFunction(() => Boolean(window.__MODIFF_E2E__)); - await expect.poll(api).toEqual(before); + id = adapter.params.previous_loras?.sourceId; + } + const core = Object.entries(api.nodes).filter(([, entry]) => entry.action !== 'Lora'); + const identities = new Map(core.map(([id, entry]) => [id, `${entry.module}.${entry.action}`])); + const state = hooks.getState().nodes; + const profile = state.studioModelCapabilities + .flatMap((capability) => capability.executionProfiles ?? []) + .find((candidate) => candidate.id === profileId)!; + return { + ordered, + profile, + canonicalSupportsLora: state.studioModelCapabilities.find( + (capability) => capability.modelType === owner.params.model_type.value, + )!.supportsLora, + repository: owner.params.repo_id.value, + revision: owner.params.revision.value, + guiderEnabled: + Object.values(api.nodes).find((entry) => entry.action === 'Guider')?.params.enabled.value ?? null, + referenceFiles: Object.values(api.nodes) + .filter((entry) => entry.module === 'modules.Image' && entry.action === 'Load') + .flatMap((entry) => { + const value = entry.params.file.value; + return Array.isArray(value) ? value : value ? [value] : []; + }), + embeddedGuidance: Object.values(api.nodes).find((entry) => entry.action === denoiseAction)!.params + .guidance_scale.value, + core: Object.fromEntries( + core.map(([id, entry]) => [ + identities.get(id), + { + ...entry, + params: Object.fromEntries( + Object.entries(entry.params) + .filter(([field]) => field !== 'lora_list') + .map(([field, value]) => [ + field, + { ...value, ...(value.sourceId ? { sourceId: identities.get(value.sourceId) } : {}) }, + ]), + ), + }, + ]), + ), + }; + }, + { profileId: selection.profileId, denoiseAction: selection.denoiseAction ?? 'Denoise' }, + ); + const baseline = await snapshot(); + expect(baseline.ordered).toEqual([]); + expect(baseline.canonicalSupportsLora).toBe(false); + expect(baseline.profile.adapterAuthoring!.tasks).toEqual(selection.policyTasks ?? ['text_to_image']); + expect(baseline.profile.adapterAuthoring!.tasks).toContain( + selection.executionMode ?? selection.task ?? 'text_to_image', + ); + if (selection.referenceCount !== undefined) expect(baseline.referenceFiles).toHaveLength(selection.referenceCount); + expect(baseline.profile.adapterAuthoring!.repositoryRevisions).toContainEqual({ + repo: (baseline.repository as { value: string }).value, + revision: baseline.revision, + }); + expect(baseline.guiderEnabled).toBe(selection.guiderEnabled); + expect(Number(baseline.embeddedGuidance)).toBe(selection.embeddedGuidance); + await expect(node.getByRole('button', { name: 'Add LoRA', exact: true })).toBeEnabled(); + const retainedAdapters = await page.evaluate(async () => { + const { STUDIO_TEMPLATES } = await import('/src/studio/templates.ts'); + const settings = STUDIO_TEMPLATES.find((template) => template.id === 'flux_lora_cinematic_octane_3d')! + .workflowBlockSettings!.lora!; + // These real immutable identities are reused only for metadata authoring; + // this mocked test makes no compatibility or adapter-inference claim. + return [settings, ...settings.additionalAdapters!]; + }); + expect(retainedAdapters).toHaveLength(2); + for (const [index, adapter] of retainedAdapters.entries()) { + await node.getByRole('button', { name: 'Add LoRA', exact: true }).click(); + const dialog = page.getByRole('dialog', { name: 'Add LoRA', exact: true }); + await dialog.getByLabel('Model', { exact: true }).fill(adapter.model!.value); + await dialog.getByLabel('Revision', { exact: true }).fill(adapter.model!.revision!); + await dialog.getByLabel('Expected SHA-256', { exact: true }).fill(adapter.model!.sha256!); + await dialog.getByLabel('Weight Name', { exact: true }).fill(adapter.weightName!); + await dialog.getByLabel('Adapter Name', { exact: true }).fill(adapter.adapterName!); + await dialog.getByLabel('Scale', { exact: true }).fill(index === 0 ? '0.8' : '0.35'); + await dialog.getByLabel('Scale', { exact: true }).press('Tab'); + await dialog.getByRole('button', { name: 'Add adapter', exact: true }).click(); + await expect(dialog).toHaveCount(0); + } + const original = (await snapshot()).ordered; + expect(original.map((adapter) => Number(adapter.scale))).toEqual([0.8, 0.35]); + for (const [index, adapter] of original.entries()) { + expect(adapter.model).toEqual({ source: 'hub', value: retainedAdapters[index]!.model!.value }); + expect(adapter.revision).toBe(retainedAdapters[index]!.model!.revision); + expect(adapter.expected_sha256).toBe(retainedAdapters[index]!.model!.sha256); + expect(adapter.weight_name).toBe(retainedAdapters[index]!.weightName); + expect(adapter.adapter_name).toBe(retainedAdapters[index]!.adapterName); + } + const second = node.getByRole('region', { name: 'Adapter 2', exact: true }); + await second.getByLabel('Scale', { exact: true }).fill('0.355'); + await second.getByLabel('Scale', { exact: true }).press('Tab'); + await expect.poll(async () => Number((await snapshot()).ordered[1]!.scale)).toBe(0.355); + await second.getByLabel('Scale', { exact: true }).fill('0.35'); + await second.getByLabel('Scale', { exact: true }).press('Tab'); + await second.getByRole('button', { name: 'Move up', exact: true }).click(); + await expect.poll(async () => (await snapshot()).ordered).toEqual([...original].reverse()); + await node + .getByRole('region', { name: 'Adapter 1', exact: true }) + .getByRole('button', { name: 'Remove', exact: true }) + .click(); + await expect.poll(async () => (await snapshot()).ordered).toEqual(original.slice(0, 1)); + await page.locator('.react-flow__pane').click({ position: { x: 40, y: 140 } }); + await page.keyboard.press('Control+z'); + await expect.poll(async () => (await snapshot()).ordered).toEqual([...original].reverse()); + await page.reload({ waitUntil: 'domcontentloaded' }); + await expect(node).toBeVisible(); + await expect(node.getByRole('button', { name: 'Add LoRA', exact: true })).toBeEnabled(); + await expect.poll(async () => (await snapshot()).ordered).toEqual([...original].reverse()); + const restored = await snapshot(); + expect(restored.core).toEqual(baseline.core); + expect(restored.profile).toEqual(baseline.profile); + expect(restored.referenceFiles).toEqual(baseline.referenceFiles); + expect(restored.guiderEnabled).toBe(selection.guiderEnabled); + expect(Number(restored.embeddedGuidance)).toBe(selection.embeddedGuidance); + expect(restored.canonicalSupportsLora).toBe(false); + expect( + (await page.evaluate(() => window.__MODIFF_E2E__!.exportWorkflowGraph())).nodes + .map((entry) => entry.data.label) + .sort(), + ).toEqual(selection.visibleLabels ?? ['Denoise', 'Encode Inputs', 'Image Output', 'Model Setup']); + expect(mutations).toEqual([]); +} + +test('selected Schnell image policy preserves original guidance through adapter Add, edit, reorder, Remove, Undo and reload', async ({ + page, +}) => { + await assertSelectedAliasAdapterAuthoring(page, { + templateId: 'flux_schnell_text_to_image', + profileId: 'flux-schnell:modular', + search: 'Coastal Wall', + reviewTerms: false, + embeddedGuidance: 0, + guiderEnabled: false, }); +}); -for (const selection of ['connected-node', 'edge-only', 'mixed'] as const) { - test(`native Delete ${selection} is restored by one Undo`, async ({ page }) => { - await ensureFrontend(); - await installMockRoutes(page); - await page.goto(FRONTEND_URL, { waitUntil: 'domcontentloaded' }); - await page.waitForFunction(() => Boolean(window.__MODIFF_E2E__)); - await dismissTaskLauncher(page); - await page.evaluate(async (selection) => { - const [{ useFlowStore }, { useStudioStore }] = await Promise.all([ - import('/src/stores/useFlowStore.ts'), - import('/src/stores/useStudioStore.ts'), - ]); - useStudioStore.getState().clearGraphBinding(); - const nodes = ['source', 'target', 'other'].map((id, index) => ({ - id: `delete-${id}`, - type: 'custom' as const, - position: { x: 100 + index * 320, y: 160 }, - selected: id === 'target' && selection !== 'edge-only', - data: { - type: 'custom' as const, - module: 'modules.Test', - action: 'Utility', - label: id, - category: 'Test', - params: { - input: { type: 'string', display: 'input', value: '' }, - output: { type: 'string', display: 'output' }, - }, - }, - })); - const edges = ['target', 'other'].map((id) => ({ - id: `delete-edge-${id}`, - source: 'delete-source', - target: `delete-${id}`, - sourceHandle: 'output', - targetHandle: 'input', - selected: id === 'other' && selection !== 'connected-node', - })); - useFlowStore.setState({ nodes, edges, viewport: { x: 0, y: 0, zoom: 0.7 } }); - useFlowStore.getState().resetHistory(); - useStudioStore.getState().saveActiveWorkflowTab(true); - }, selection); - await expect(page.locator('.react-flow__node')).toHaveCount(3); - await page.getByTestId('topbar-resource-policy').focus(); - const signature = () => - page.evaluate(async () => { - const { useFlowStore } = await import('/src/stores/useFlowStore.ts'); - const state = useFlowStore.getState(); - return { - nodes: state.nodes.map((node) => node.id).sort(), - edges: state.edges.map((edge) => edge.id).sort(), - }; - }); - const original = await signature(); - await page.keyboard.press('Delete'); - const deleted = { - nodes: selection === 'edge-only' ? original.nodes : ['delete-other', 'delete-source'], - edges: selection === 'mixed' ? [] : [selection === 'edge-only' ? 'delete-edge-target' : 'delete-edge-other'], - }; - await expect.poll(signature).toEqual(deleted); - await page.keyboard.press('Control+z'); - await expect.poll(signature).toEqual(original); - await page.keyboard.press('Control+Shift+z'); - await expect.poll(signature).toEqual(deleted); +test('selected Krea image policy preserves original guidance through adapter Add, edit, reorder, Remove, Undo and reload', async ({ + page, +}) => { + await assertSelectedAliasAdapterAuthoring(page, { + templateId: 'flux_krea_text_to_image', + profileId: 'flux-krea:modular', + search: 'Editorial Portrait', + reviewTerms: true, + embeddedGuidance: 3.5, + guiderEnabled: true, }); -} +}); -test('managed Studio resources and Auto Run check the whole graph before submitting', async ({ page }) => { - mockInstalledRepos.clear(); - mockInstalledRepos.add('Tongyi-MAI/Z-Image-Turbo'); - await ensureFrontend(); - await installMockRoutes(page); - const plans: Array<{ graph: { nodes: unknown; paths: unknown } }> = []; - let submitted = 0; - await page.route('**/auto_resource/workflow', async (route) => { - plans.push(route.request().postDataJSON()); - await route.fulfill({ - json: { - schemaVersion: 1, - graphHash: `sha256:workflow-auto-v1:${'a'.repeat(64)}`, - plannedGraphHash: `sha256:workflow-auto-v1:${'b'.repeat(64)}`, - canAutoRun: false, - issues: ['The complete workflow needs a reviewed auxiliary recipe'], - message: 'Whole workflow refused by the test transport', - patches: [], - loaders: [], - requirements: {}, - available: {}, - sharedMemory: false, - }, - }); - }); - await page.route('**/graph', async (route) => { - submitted++; - await route.fulfill({ json: { error: false, task_id: 'must-not-submit', sid: 'mock-sid', message: 'queued' } }); - }); - await page.goto(FRONTEND_URL, { waitUntil: 'domcontentloaded' }); - await page.waitForFunction(() => Boolean(window.__MODIFF_E2E__)); - await page.evaluate(() => window.__MODIFF_E2E__!.setWebsocketConnection({ sid: 'mock-sid', isConnected: true })); - // Seed a saved managed document; the actions under test are native. - await page.evaluate(() => window.__MODIFF_E2E__!.applyLegacyTemplateForTest('z_image_quick_concept')); - await waitForOperationGraphToSettle(page); - await setWorkflowResourceMode(page, 'auto'); - expect(await page.evaluate(() => Boolean(window.__MODIFF_E2E__!.getState().studio.graphBinding))).toBe(true); - const readExecution = () => - page.evaluate(async () => { - const { useFlowStore } = await import('/src/stores/useFlowStore.ts'); - const graph = useFlowStore.getState().exportGraph('mock-sid'); - return { nodes: graph.nodes, paths: graph.paths }; - }); - const before = await readExecution(); - await page.getByTestId('topbar-workflow-resources').click(); - await expect(page.getByTestId('workflow-resource-assessment')).toBeVisible(); - await expect(page.getByTestId('compatibility-panel')).toContainText('Selected model'); - await page.getByTestId('plan-workflow-auto').click(); - await expect(page.getByTestId('workflow-auto-plan')).toContainText('Auto needs attention'); - await expect(page.getByTestId('workflow-auto-plan')).toContainText('reviewed auxiliary recipe'); - expect(plans).toHaveLength(1); - expect({ nodes: plans[0]!.graph.nodes, paths: plans[0]!.graph.paths }).toEqual(before); - await expect(page.getByTestId('studio-run')).toBeEnabled(); - await page.getByTestId('studio-run').click(); - await expect.poll(() => plans.length).toBe(2); - await expect(page.getByText(/Auto cannot run this workflow: The complete workflow needs/u).first()).toBeVisible(); - expect(submitted).toBe(0); - expect(await readExecution()).toEqual(before); +test('selected image adapter capacity keeps 32 owned rows editable while Add remains disabled', async ({ page }) => { + await openOptionalStageTemplate(page, 'flux_lora_ghibli_story', 'Ghibli'); + const rootId = await page.evaluate(async () => { + const { useFlowStore } = await import('/src/stores/useFlowStore.ts'); + const { useNodesStore } = await import('/src/stores/useNodeStore.ts'); + const { modelSetupAdapterChain, planModelSetupAdapterEdit } = await import('/src/workflow/modelSetupAdapters.ts'); + const { useStudioStore } = await import('/src/stores/useStudioStore.ts'); + let graph = useFlowStore.getState().toObject(); + const setup = graph.nodes.find((node) => node.data.label === 'Model Setup')!; + const authority = useNodesStore.getState(); + // Capacity fixture uses the ordinary planner and real published selected + // policy; no template/profile permissions or immutable controls are invented. + while (modelSetupAdapterChain(graph, setup.id).adapters.length < 32) + graph = planModelSetupAdapterEdit( + graph, + setup.id, + { + kind: 'add', + registry: authority.nodesRegistry, + values: { model: { source: 'local', value: 'metadata-only.safetensors' } }, + }, + authority, + ); + useFlowStore.getState().replaceGraph(graph); + useFlowStore.getState().resetHistory(); + useStudioStore.getState().saveActiveWorkflowTab(true); + return setup.id; + }); + const node = page.getByTestId(`setup-node-${rootId}`); + await expect(node.getByRole('region', { name: /^Adapter \d+$/u })).toHaveCount(32); + await expect(node.getByRole('button', { name: 'Add LoRA', exact: true })).toBeDisabled(); + const first = node.getByRole('region', { name: 'Adapter 1', exact: true }); + await expect(first.getByLabel('Scale', { exact: true })).toBeEnabled(); + await expect(first.getByRole('button', { name: 'Move down', exact: true })).toBeEnabled(); + await expect(first.getByRole('button', { name: 'Remove', exact: true })).toBeEnabled(); + await page.reload({ waitUntil: 'domcontentloaded' }); + await expect(node.getByRole('region', { name: /^Adapter \d+$/u })).toHaveCount(32); + await expect(first.getByLabel('Scale', { exact: true })).toBeEnabled(); + await expect(node.getByRole('button', { name: 'Add LoRA', exact: true })).toBeDisabled(); }); -test('mounted media source picker distinguishes model branches and follows edits, removal and Undo', async ({ +test('ordinary numeric fields preserve imported and typed float precision through increments, Undo and reload', async ({ page, }) => { - page.setDefaultTimeout(15_000); await ensureFrontend(); - const python = - process.env.MODIFF_BACKEND_PYTHON || - path.join(BACKEND_ROOT, '.venv', process.platform === 'win32' ? 'Scripts/python.exe' : 'bin/python'); - const script = path.join(CLIENT_ROOT, 'scripts', 'operation-starter-fixtures.py'); - const args = [script, '--selection', 'QwenImageModularPipeline', 'image_to_image']; - const { stdout } = await promisify(execFile)( - process.platform === 'win32' ? python : path.join(BACKEND_ROOT, 'scripts', 'with-runtime-env.sh'), - process.platform === 'win32' ? args : [python, ...args], - { - cwd: BACKEND_ROOT, - env: { ...process.env, PYTHONDONTWRITEBYTECODE: '1' }, - timeout: 90_000, - maxBuffer: 32 * 1024 * 1024, - }, - ); - const [starter] = JSON.parse(stdout) as OperationStarter[]; - expect(starter!.task).toBe('image_to_image'); - await page.goto(`${FRONTEND_URL}/control-state-matrix.html`, { waitUntil: 'domcontentloaded' }); - const ids = await page.evaluate(async (starter) => { - const [ - { useFlowStore }, - { useNodesStore }, - { createOperationStarter }, - { mountMediaAttachmentProbe }, - schema, - runtime, - crossing, - ] = await Promise.all([ - import('/src/stores/useFlowStore.ts'), - import('/src/stores/useNodeStore.ts'), - import('/src/workflow/operationAuthoring.ts'), - import('/tests/e2e/studio-mocked/mediaAttachmentFixture.tsx'), - import('/src/studio/blockSchemaV2.ts'), - import('/src/studio/blockRuntimeV2.ts'), - import('/src/studio/blockCrossingConnectionsV2.ts'), - ]); - const branches = ['Qwen/Qwen-Image', 'Qwen/Qwen-Image-2512', 'Qwen/Qwen-Image'].map((repo) => { - const graph = createOperationStarter(starter, { x: 0, y: 0 }); - graph.nodes.find((node) => node.data.action === 'ModelsLoader')!.data.params.repo_id!.value = { - source: 'hub', - value: repo, - }; - return graph; - }); - const owners = branches.map((graph) => graph.nodes.find((node) => node.data.action === 'ModelsLoader')!.id); - const decoders = branches.map((graph) => graph.nodes.find((node) => node.data.action === 'DecodeLatents')!.id); - useNodesStore.setState({ - operationContracts: starter.nodes.map((node) => node.operation), - pipelineSupport: [ + await installMockRoutes(page); + await page.goto(FRONTEND_URL, { waitUntil: 'domcontentloaded' }); + await page.waitForFunction(() => Boolean(window.__MODIFF_E2E__)); + await expect(page.getByTestId('startup-workspace-gate')).toHaveCount(0); + await dismissTaskLauncher(page); + await page.evaluate(async () => { + const { useFlowStore } = await import('/src/stores/useFlowStore.ts'); + const { prepareWorkflowForManualInsertion } = await import('/src/studio/manualGraphInsertion.ts'); + prepareWorkflowForManualInsertion(); + // Ordinary imported control metadata; no executable node or model is run. + useFlowStore.getState().replaceGraph({ + nodes: [ { - pipelineClass: starter.pipelineClass, - coverage: 'declared', - reason: 'Actual backend starter contracts for this isolated picker regression.', - equivalentTo: [], - upstreamTasks: [], - tasks: [ - { - task: starter.task, - execution: 'adapter', - decomposition: 'stages', - operationIds: starter.nodes.map((node) => node.operation.operationId), - executionProfileIds: [], - dependencies: 'ready', - runtimeRequirements: [], + id: 'numeric-precision', + type: 'custom', + position: { x: 120, y: 100 }, + data: { + type: 'custom', + module: 'custom.Fixture', + action: 'Numeric', + category: 'test', + label: 'Numeric precision', + params: { + stepped: { + label: 'Stepped float', + type: 'float', + display: 'slider', + value: 0.35, + default: 0.125, + min: -20, + max: 20, + step: 0.1, + }, + padded: { label: 'Padded float', type: 'float', display: 'number', value: 16, step: 0.1 }, + whole_step: { label: 'Whole step float', type: 'float', display: 'number', value: 1.5, step: 1 }, + unstepped: { + label: 'Unstepped float', + type: 'float', + display: 'number', + value: 0.125, + default: 0.125, + min: -1, + max: 1, + }, + tiny: { label: 'Tiny float', type: 'float', display: 'number', value: -1.25e-7, step: 1e-8 }, + ultra: { label: 'Ultra small float', type: 'float', display: 'number', value: 1e-120, step: 0.1 }, + integer: { label: 'Integer', type: 'int', display: 'number', value: 4, default: 3, min: 1, max: 6 }, }, - ], + }, }, ], + edges: [], + viewport: { x: 0, y: 0, zoom: 1 }, }); - const saved = createOperationStarter(starter, { x: 0, y: 0 }); - const savedOwner = saved.nodes.find((node) => node.data.action === 'ModelsLoader')!; - savedOwner.data.params.repo_id!.value = { source: 'hub', value: 'Qwen/Qwen-Image-2512' }; - const savedDecoder = saved.nodes.find((node) => node.data.action === 'DecodeLatents')!; - const inner = { - nodes: saved.nodes.map((node) => ({ nodeId: node.id, nodeType: node.type!, data: node.data })), - edges: saved.edges.map((edge) => ({ - edgeId: edge.id, - sourceNodeId: edge.source, - sourcePortId: edge.sourceHandle!, - targetNodeId: edge.target, - targetPortId: edge.targetHandle!, - })), - }; - const definition = { - schemaVersion: 2 as const, - definitionId: 'user:media-label-import', - displayName: 'Saved image branch', - source: { kind: 'user' as const }, - graph: { ...inner, graphHash: schema.blockGraphHashV2(inner) }, - boundary: { - mode: 'explicit' as const, - inputs: [], - outputs: [ - { - portId: 'rendered', - label: 'Result', - valueType: 'image', - required: false, - binding: { nodeId: savedDecoder.id, fieldOrPortId: 'images' }, - }, - ], - }, - controls: [], - suggestedInputs: [], - previews: [], - ownership: { kind: 'user' as const, definitionMutable: true }, - }; - const block = runtime.createBlockRootNodeV2( - schema.createBlockInstanceV2( - { ...definition, contentHash: schema.blockDefinitionContentHashV2(definition) }, - { instanceId: 'media-label-import-block', position: { x: 0, y: 800 }, size: { width: 400, height: 500 } }, - ), - ); - const broken = { - id: 'retained-input-as-output', - source: block.id, - sourceHandle: crossing.blockCrossingHandleV2({ - direction: 'input', - nodeId: savedOwner.id, - fieldOrPortId: 'repo_id', - }), - target: 'retained-input-target', - targetHandle: 'input', - }; - useFlowStore.getState().replaceGraph( - { - nodes: [ - ...branches.flatMap((graph) => graph.nodes), - block, - { - id: broken.target, - type: 'custom', - position: { x: 900, y: 800 }, - data: { - module: 'custom.Values', - action: 'Input', - type: 'custom', - category: 'test', - label: 'Input', - params: { input: { type: 'str', display: 'input' } }, - }, - }, - ], - edges: [...branches.flatMap((graph) => graph.edges), broken], - viewport: { x: 0, y: 0, zoom: 1 }, - }, - { clearRemovedCache: false }, - ); useFlowStore.getState().resetHistory(); - mountMediaAttachmentProbe(owners[0]!, owners[1]!, decoders[1]!); - return { owners, decoders, brokenEdgeId: broken.id }; - }, starter!); - const probe = page.getByTestId('mounted-media-attachment'); - const picker = probe.getByRole('button', { name: 'Media input source', exact: true }); - await picker.click(); - const first = 'Decode Latents · Images · Qwen/Qwen-Image · Branch 1'; - const second = 'Decode Latents · Images · Qwen/Qwen-Image-2512'; - const third = 'Decode Latents · Images · Qwen/Qwen-Image · Branch 2'; - await expect(page.getByRole('option', { name: first, exact: true })).toBeVisible(); - await expect(page.getByRole('option', { name: third, exact: true })).toBeVisible(); - await expect( - page.getByRole('option', { name: 'Saved image branch · Result · Qwen/Qwen-Image-2512', exact: true }), - ).toBeVisible(); - expect( - await page.evaluate( - async (id) => - (await import('/src/stores/useFlowStore.ts')).useFlowStore.getState().edges.some((edge) => edge.id === id), - ids.brokenEdgeId, - ), - ).toBe(true); - await page.getByRole('option', { name: second, exact: true }).click(); - await expect(picker).toHaveText(second); - await probe.getByRole('button', { name: 'Use the same source model', exact: true }).click(); - await expect(picker).toHaveText(third); - await picker.click(); - await expect( - page.getByRole('option', { name: 'Decode Latents · Images · Qwen/Qwen-Image · Branch 3', exact: true }), - ).toBeVisible(); - await page.keyboard.press('Escape'); - await probe.getByRole('button', { name: 'Remove selected source', exact: true }).click(); - await expect(picker).toHaveText('Add Load Image'); - let starterRequests = 0; - await page.route('**/operations/starter*', (route) => { - starterRequests += 1; - return route.abort(); }); - await probe.getByRole('button', { name: 'Attach input', exact: true }).click(); - await expect(probe).toContainText( - 'The selected source is no longer compatible. Choose a source for this input role.', - ); - expect(starterRequests).toBe(0); - await probe.getByRole('button', { name: 'Undo source edit', exact: true }).click(); - await expect(picker).toHaveText(third); - await probe.getByRole('button', { name: 'Undo source edit', exact: true }).click(); - await expect(picker).toHaveText(second); - await probe.getByRole('button', { name: 'Redo source edit', exact: true }).click(); - await expect(picker).toHaveText(third); - expect( - await page.evaluate( - async (id) => - (await import('/src/stores/useFlowStore.ts')).useFlowStore.getState().nodes.some((node) => node.id === id), - ids.decoders[1]!, - ), - ).toBe(true); - await page.screenshot({ path: test.info().outputPath('media-source-model-branches.png'), animations: 'disabled' }); + const node = page.locator('.react-flow__node[data-id="numeric-precision"]'); + const stepped = node.getByLabel('Stepped float', { exact: true }); + const padded = node.getByLabel('Padded float', { exact: true }); + const whole = node.getByLabel('Whole step float', { exact: true }); + const unstepped = node.getByLabel('Unstepped float', { exact: true }); + const tiny = node.getByLabel('Tiny float', { exact: true }); + const ultra = node.getByLabel('Ultra small float', { exact: true }); + const integer = node.getByLabel('Integer', { exact: true }); + const values = () => + page.evaluate(() => { + const node = window.__MODIFF_E2E__!.exportWorkflowGraph().nodes.find((node) => node.id === 'numeric-precision')!; + return Object.fromEntries(Object.entries(node.data.params).map(([key, field]) => [key, field.value])); + }); + await expect(stepped).toHaveValue('0.35'); + await expect(padded).toHaveValue('16.0'); + await expect(whole).toHaveValue('1.5'); + await expect(unstepped).toHaveValue('0.125'); + await expect(tiny).toHaveValue('-1.25e-7'); + await expect(ultra).toHaveValue('1e-120'); + for (const input of [stepped, padded, whole, unstepped, tiny, ultra]) { + await input.focus(); + await input.press('Tab'); + } + expect(await values()).toMatchObject({ + stepped: '0.35', + padded: '16.0', + whole_step: '1.5', + unstepped: '0.125', + tiny: '-1.25e-7', + ultra: '1e-120', + }); + expect(Number((await values()).padded)).toBe(16); + await node.getByRole('button', { name: 'Increase Stepped float', exact: true }).click(); + await expect(stepped).toHaveValue('0.45'); + await node.getByRole('button', { name: 'Decrease Stepped float', exact: true }).click(); + await expect(stepped).toHaveValue('0.35'); + await stepped.focus(); + await stepped.press('ArrowDown'); + await stepped.press('Enter'); + await expect(stepped).toHaveValue('0.25'); + await stepped.focus(); + await stepped.press('ArrowUp'); + await stepped.press('Tab'); + await expect(stepped).toHaveValue('0.35'); + await node.getByRole('button', { name: 'Increase Tiny float', exact: true }).click(); + await expect(tiny).toHaveValue('-1.15e-7'); + await node.getByRole('button', { name: 'Decrease Tiny float', exact: true }).click(); + await expect(tiny).toHaveValue('-1.25e-7'); + await node.getByRole('button', { name: 'Increase Ultra small float', exact: true }).click(); + await expect(ultra).toHaveValue('0.1'); + await unstepped.fill('-0.125'); + await unstepped.press('Enter'); + await expect(unstepped).toHaveValue('-0.125'); + await unstepped.fill('99'); + await unstepped.press('Tab'); + await expect(unstepped).toHaveValue('1.0'); + expect(Number((await values()).unstepped)).toBe(1); + await unstepped.fill('Infinity'); + await unstepped.press('Tab'); + await expect(unstepped).toHaveValue('0.125'); + await stepped.fill('Infinity'); + await stepped.press('Tab'); + await expect(stepped).toHaveValue('0.125'); + await stepped.fill('0.35'); + await stepped.press('Tab'); + await integer.fill('4.7'); + await integer.press('Tab'); + await expect(integer).toHaveValue('5'); + await integer.fill('99'); + await integer.press('Enter'); + await expect(integer).toHaveValue('6'); + await expect(node.getByRole('button', { name: 'Increase Integer', exact: true })).toBeDisabled(); + await integer.fill('-99'); + await integer.press('Tab'); + await expect(integer).toHaveValue('1'); + await stepped.fill('0.65'); + await stepped.press('Escape'); + await expect(stepped).toHaveValue('0.35'); + await page.evaluate(async () => (await import('/src/stores/useFlowStore.ts')).useFlowStore.getState().resetHistory()); + await stepped.fill('0.65'); + await stepped.press('Tab'); + await expect.poll(values).toMatchObject({ stepped: '0.65' }); + await page.locator('.react-flow__pane').click({ position: { x: 40, y: 140 } }); + await page.keyboard.press('Control+z'); + await expect(stepped).toHaveValue('0.35'); + const saved = await values(); + await page.reload({ waitUntil: 'domcontentloaded' }); + await expect(stepped).toHaveValue('0.35'); + await expect(padded).toHaveValue('16.0'); + expect(await values()).toEqual(saved); + expect(Number((await values()).padded)).toBe(16); }); -test('mocked Gallery opens every ordered collection image before and after history reload', async ({ page }) => { - await ensureFrontend(); - await installMockRoutes(page); - const mediaPaths = [0, 1, 2].map((index) => `@data/studio/outputs/ordered-layer-${index}.webp`); - const mediaItems = mediaPaths.map((backendPath, index) => ({ - index, - url: `/file?file=${encodeURIComponent(backendPath)}`, - backendPath, - displayType: 'image', - label: `Layer ${index + 1}`, - taskId: 'ordered-layers-task', - clientRunId: 'ordered-layers-client', - runInputHash: 'ordered-layers-input', - attemptIndex: 0, - width: 2, - height: 2, - })); - const output = { - id: 'ordered-layers-output', - url: mediaItems[0]!.url, - displayType: 'image_collection', - modelType: 'QwenImageLayeredModularPipeline', - modelLabel: 'Ordered collection', - mode: 'layer_decomposition', - prompt: 'Keep all three recorded layers.', - taskId: 'ordered-layers-task', - clientRunId: 'ordered-layers-client', - runInputHash: 'ordered-layers-input', - nodeId: 'preview', - attemptIndex: 0, - createdAt: 1, - mediaItems, +async function withdrawSelectedImageAdapterPolicy(page: Page, profileId: string) { + const fixture = await imageTemplateSchemas(); + let removed = 0; + const withdraw = (value: unknown) => { + if (!value || typeof value !== 'object') return; + if (Array.isArray(value)) { + value.forEach(withdraw); + return; + } + const record = value as Record; + if (record.id === profileId && Object.hasOwn(record, 'adapterAuthoring')) { + delete record.adapterAuthoring; + removed += 1; + } + Object.values(record).forEach(withdraw); }; - let graphPosts = 0; - page.on('request', (request) => { - if (new URL(request.url()).pathname === '/graph' && request.method() === 'POST') graphPosts += 1; + // Withdraw the existing selected declaration in every public copy. No broad + // support flag, other policy, registry descriptor or graph value is altered. + withdraw(fixture.publicPayload); + expect(removed).toBeGreaterThanOrEqual(2); + await page.route('**/model_capabilities**', (route) => route.fulfill({ status: 200, json: fixture.publicPayload })); + await page.evaluate(async () => { + const { useNodesStore } = await import('/src/stores/useNodeStore.ts'); + await useNodesStore.getState().fetchStudioModelCapabilities(); }); - await page.route('**/studio_outputs**', (route) => { - expect(route.request().method()).toBe('GET'); - return route.fulfill({ - json: { error: false, outputs: [output], revision: 1 }, - }); +} + +test('unsupported image Model Setup disables Add LoRA and Cosmos retains four actual visible stages', async ({ + page, +}) => { + await openOptionalStageTemplate(page, 'cosmos3_super_text_to_image', 'Cosmos 3 Super'); + await withdrawSelectedImageAdapterPolicy(page, 'cosmos3-super-text-to-image:official-modular-workflow'); + const graph = await page.evaluate(() => window.__MODIFF_E2E__!.exportWorkflowGraph()); + expect(graph.nodes.map((node) => node.data.label).sort()).toEqual([ + 'Denoise', + 'Encode Inputs', + 'Image Output', + 'Model Setup', + ]); + const setup = graph.nodes.find((node) => node.data.label === 'Model Setup')!; + const node = page.getByTestId(`setup-node-${setup.id}`); + await expect(node.getByRole('button', { name: 'Add LoRA', exact: true })).toBeDisabled(); + await expect(node).toContainText('The selected image model does not support LoRA.'); + expect(await page.evaluate(() => window.__MODIFF_E2E__!.exportWorkflowGraph())).toEqual(graph); +}); + +test('an image adapter draft rechecks withdrawn current support while existing rows remain inspectable and removable', async ({ + page, +}) => { + await openOptionalStageTemplate(page, 'qwen_text_rendering', 'Exact Text', false); + const graph = () => page.evaluate(() => window.__MODIFF_E2E__!.exportWorkflowGraph()); + const setup = (await graph()).nodes.find((node) => node.data.label === 'Model Setup')!; + const node = page.getByTestId(`setup-node-${setup.id}`); + await node.getByRole('button', { name: 'Add LoRA', exact: true }).click(); + const dialog = page.getByRole('dialog', { name: 'Add LoRA', exact: true }); + await dialog.getByLabel('Model', { exact: true }).fill('review/retained-adapter'); + await dialog.getByLabel('Revision', { exact: true }).fill('a'.repeat(40)); + await dialog.getByLabel('Expected SHA-256', { exact: true }).fill('b'.repeat(64)); + await dialog.getByLabel('Weight Name', { exact: true }).fill('retained.safetensors'); + await dialog.getByRole('button', { name: 'Add adapter', exact: true }).click(); + await expect(dialog).toHaveCount(0); + await expect(node.getByRole('region', { name: 'Adapter 1', exact: true })).toBeVisible(); + await node.getByRole('button', { name: 'Add LoRA', exact: true }).click(); + const before = await graph(); + const fixture = await imageTemplateSchemas(); + for (const capability of fixture.publicPayload.capabilities) + if (capability.modelType === 'QwenImageModularPipeline') capability.supportsLora = false; + await page.route('**/model_capabilities**', (route) => route.fulfill({ status: 200, json: fixture.publicPayload })); + await page.evaluate(async () => { + const { useNodesStore } = await import('/src/stores/useNodeStore.ts'); + await useNodesStore.getState().fetchStudioModelCapabilities(); }); - await page.goto(FRONTEND_URL, { waitUntil: 'domcontentloaded' }); - for (let reload = 0; reload < 2; reload += 1) { - await page.waitForFunction(() => Boolean(window.__MODIFF_E2E__)); - await dismissTaskLauncher(page); - await page.getByTestId('topbar-gallery').click(); - const gallery = page.getByTestId('gallery-panel'); - await expect(gallery.getByTestId('gallery-output-0').getByRole('img')).toHaveCount(3); - // Both existing full-size entry points must preserve the collection. - if (reload === 0) await gallery.getByTestId('gallery-open-0').click(); - else await gallery.getByRole('button', { name: /^Root \| Ordered collection \|/ }).click(); - for (let index = 0; index < 3; index += 1) { - const dialog = page.getByRole('dialog', { - name: `Image ${index + 1} of 3`, - exact: true, - }); - await expect(dialog).toHaveCount(1); - await expect(dialog.getByRole('heading', { name: `Image ${index + 1} of 3`, exact: true })).toBeVisible(); - const image = dialog.locator('img.max-h-full.max-w-full'); - await expect(image).toHaveCount(1); - await expect(image).toBeVisible(); - await expect - .poll(() => - image.evaluate((element: HTMLImageElement) => ({ - file: new URL(element.currentSrc).searchParams.get('file'), - width: element.naturalWidth, - height: element.naturalHeight, - })), - ) - .toEqual({ file: mediaPaths[index], width: 2, height: 2 }); - await expect(dialog.getByRole('button', { name: /^Show image [123]$/ })).toHaveCount(3); - if (index < 2) await dialog.getByRole('button', { name: 'Next image', exact: true }).click(); - } - await page.getByRole('button', { name: 'Previous image', exact: true }).click(); - await expect(page.getByRole('dialog', { name: 'Image 2 of 3', exact: true })).toHaveCount(1); - await expect(page.getByRole('heading', { name: 'Image 2 of 3', exact: true })).toBeVisible(); - await page.getByRole('button', { name: 'Show image 1', exact: true }).click(); - await expect(page.getByRole('dialog', { name: 'Image 1 of 3', exact: true })).toHaveCount(1); - await expect(page.getByRole('heading', { name: 'Image 1 of 3', exact: true })).toBeVisible(); - await page.getByRole('button', { name: 'Close preview', exact: true }).click(); - expect((await page.evaluate(() => window.__MODIFF_E2E__!.getState().studio.outputs[0]))!.mediaItems).toMatchObject( - mediaItems, - ); - if (reload === 0) await page.reload({ waitUntil: 'domcontentloaded' }); - } - expect(graphPosts).toBe(0); + await dialog.getByRole('button', { name: 'Add adapter', exact: true }).click(); + await expect(dialog.getByRole('alert')).toContainText('does not support LoRA'); + expect(await graph()).toEqual(before); + await page.keyboard.press('Escape'); + await expect(dialog).toHaveCount(0); + await expect(node.getByRole('button', { name: 'Add LoRA', exact: true })).toBeDisabled(); + const row = node.getByRole('region', { name: 'Adapter 1', exact: true }); + await expect(row.getByLabel('Model', { exact: true })).toHaveValue('review/retained-adapter'); + await expect(row.getByLabel('Model', { exact: true })).toBeDisabled(); + await row.getByRole('button', { name: 'Remove', exact: true }).click(); + await expect(row).toHaveCount(0); + await page.locator('.react-flow__pane').click({ position: { x: 40, y: 140 } }); + await page.keyboard.press('Control+z'); + await expect(row).toBeVisible(); + await expect(row.getByLabel('Model', { exact: true })).toHaveValue('review/retained-adapter'); }); -for (const displayType of ['text', 'json'] as const) { - test(`mocked Gallery preserves ${displayType} preview, original download and non-image actions`, async ({ page }) => { - await ensureFrontend(); - await installMockRoutes(page); - await page.addInitScript(() => { - Object.defineProperty(window, 'showSaveFilePicker', { configurable: true, value: undefined }); - }); - const value = - displayType === 'text' - ? ['Native CPU memory telemetry acceptance'] - : { message: '', values: [0, false, 'हैलो'], empty: '' }; - const content = JSON.stringify(value, null, 2); - const rawContent = displayType === 'json' ? content + '\n' : content; - const extension = displayType === 'json' ? 'json' : 'txt'; - const label = displayType === 'json' ? 'JSON' : 'Text'; - const mediaPath = `@data/studio/outputs/gallery-${displayType}.${extension}`; - const url = `/file?file=${encodeURIComponent(mediaPath)}`; - const output = { - id: `gallery-${displayType}-output`, - url, - displayType, - value, - modelLabel: `Recorded ${label}`, - nodeId: 'preview', - fieldKey: 'preview', - taskId: `gallery-${displayType}-task`, - clientRunId: `gallery-${displayType}-client`, - runInputHash: `gallery-${displayType}-inputs`, - attemptIndex: 0, - createdAt: 1, - favorite: false, - mediaItems: [ - { - index: 0, - url, - backendPath: mediaPath, - displayType, - contentType: displayType === 'json' ? 'application/json' : 'text/plain', - }, - ], - }; - let historyReads = 0; - let favoritePatches = 0; - await page.route('**/studio_outputs**', (route) => { - if (route.request().method() === 'PATCH') { - expect(route.request().postDataJSON()).toEqual({ favorite: true }); - expect(decodeURIComponent(new URL(route.request().url()).pathname)).toContain(output.id); - output.favorite = true; - favoritePatches += 1; - } else { - expect(route.request().method()).toBe('GET'); - historyReads += 1; - } - return route.fulfill({ json: { error: false, outputs: [output], revision: 1 } }); - }); - await page.route('**/file*', (route) => { - const requestUrl = new URL(route.request().url()); - return requestUrl.searchParams.get('file') === mediaPath - ? route.fulfill({ contentType: displayType === 'json' ? 'application/json' : 'text/plain', body: rawContent }) +test('optional Prepare Mask keeps the exact outpaint source, canvas, mask and geometry across edit, separate and reload', async ({ + page, +}) => { + await openOptionalStageTemplate(page, 'flux_fill_outpaint', 'fill outpaint'); + // Setup an existing, task-correct ordinary outpaint composition. The current + // Gallery starter intentionally has separate image/mask loaders; this case + // verifies grouping/edit/history for a graph already using the registered + // canvas utility, not a claim that Gallery creates mask preprocessing. + await page.evaluate(async () => { + const { useFlowStore } = await import('/src/stores/useFlowStore.ts'); + const { useNodesStore } = await import('/src/stores/useNodeStore.ts'); + const { createNodeFromRegistry } = await import('/src/workflow/nodeFactory.ts'); + const { prepareWorkflowForManualInsertion } = await import('/src/studio/manualGraphInsertion.ts'); + const { unpackVisualOperationGroups } = await import('/src/workflow/visualOperationGroupProjection.ts'); + const { restoreVisualOperationGroups } = await import('/src/workflow/visualOperationGroups.ts'); + const unpacked = unpackVisualOperationGroups(useFlowStore.getState().toObject()); + const graph = unpacked.graph; + const consumer = graph.nodes.find( + (node) => + node.data.operationAuthoring?.operation.task === 'outpaint' && + node.data.params.image && + node.data.params.mask_image, + )!; + if (!consumer) + throw new Error( + `Missing declared masked consumer: ${JSON.stringify(graph.nodes.map((node) => ({ module: node.data.module, action: node.data.action, task: node.data.operationAuthoring?.operation.task, fields: Object.keys(node.data.params) })))}`, + ); + const image = graph.edges.find((edge) => edge.target === consumer.id && edge.targetHandle === 'image')!; + const mask = graph.edges.find((edge) => edge.target === consumer.id && edge.targetHandle === 'mask_image')!; + const canvas = createNodeFromRegistry( + 'modules.DiffusersImage.OutpaintCanvas', + useNodesStore.getState().nodesRegistry, + { x: -300, y: 400 }, + ); + if (!canvas || !image || !mask) throw new Error('Missing exact registered outpaint fixture'); + for (const [field, value] of Object.entries({ + width: 1536, + height: 1024, + left: 128, + right: 128, + top: 0, + bottom: 0, + overlap: 24, + feather: 8, + })) + canvas.data.params[field].value = value; + const geometry = graph.nodes.filter( + (node) => + node.data.operationAuthoring?.operation.pipelineClass === + consumer.data.operationAuthoring!.operation.pipelineClass && + node.data.operationAuthoring?.operation.task === consumer.data.operationAuthoring!.operation.task && + node.data.params.width && + node.data.params.height && + !graph.edges.some((edge) => edge.target === node.id && ['width', 'height'].includes(edge.targetHandle ?? '')), + ); + if (!geometry.includes(consumer)) throw new Error('Missing source-consuming geometry control.'); + for (const node of geometry) { + node.data.params.width.isInput = true; + node.data.params.height.isInput = true; + } + const edges = graph.edges.filter((edge) => edge.id !== image.id && edge.id !== mask.id); + if (edges.some((edge) => edge.source === mask.source || edge.target === mask.source)) + throw new Error('Mask fixture has another consumer'); + edges.push({ + id: 'mask-source-canvas', + source: image.source, + sourceHandle: image.sourceHandle, + target: canvas.id, + targetHandle: 'image', + }); + for (const [output, input] of [ + ['canvas', 'image'], + ['mask_image', 'mask_image'], + ]) + edges.push({ + id: `mask-canvas-${input}`, + source: canvas.id, + sourceHandle: output, + target: consumer.id, + targetHandle: input, + }); + for (const node of geometry) + for (const [output, input] of [ + ['width_out', 'width'], + ['height_out', 'height'], + ]) + edges.push({ + id: `mask-canvas-${node.id}-${input}`, + source: canvas.id, + sourceHandle: output, + target: node.id, + targetHandle: input, + }); + prepareWorkflowForManualInsertion(); + useFlowStore + .getState() + .replaceGraph( + restoreVisualOperationGroups( + { nodes: [...graph.nodes.filter((node) => node.id !== mask.source), canvas], edges }, + unpacked, + ), + ); + }); + await page.getByRole('button', { name: 'Arrange graph', exact: true }).click(); + const graph = () => page.evaluate(() => window.__MODIFF_E2E__!.exportWorkflowGraph()); + const before = await optionalStageApi(page); + const owner = (await graph()).nodes.find((node) => node.data.label === 'Model Setup')!; + const loader = page.getByTestId(`setup-node-${owner.id}`); + await loader.getByRole('button', { name: 'Workflow stage actions', exact: true }).click(); + await expect(page.getByRole('menuitem', { name: 'Group image output', exact: true })).toHaveCount(0); + await page.getByRole('menuitem', { name: 'Group mask preparation', exact: true }).click(); + await expect + .poll(async () => { + if ((await graph()).nodes.some((node) => node.data.label === 'Prepare Mask')) return 'grouped'; + return (await loader.getByRole('alert').allTextContents()).join('; ') || 'waiting'; + }) + .toBe('grouped'); + await page.keyboard.press('Escape'); + const prepared = (await graph()).nodes.find((node) => node.data.label === 'Prepare Mask')!; + const node = page.getByTestId(`mask-node-${prepared.id}`); + // This manually inserted supplier composition now has two grouped stages + // in the former loader column. Arrange their actual rendered bounds before + // exercising pointer-driven controls on the expanded mask stage. + await page.getByRole('button', { name: 'Arrange graph', exact: true }).click(); + await expect(node).toBeVisible(); + expect(prepared.data.blockInstanceV2!.effectiveGraph.nodes.map((node) => node.data.action).sort()).toEqual([ + 'Load', + 'OutpaintCanvas', + ]); + expect(await optionalStageApi(page)).toEqual(before); + const consumers = await page.evaluate(async () => { + const { unpackVisualOperationGroups } = await import('/src/workflow/visualOperationGroupProjection.ts'); + const flat = unpackVisualOperationGroups(window.__MODIFF_E2E__!.exportWorkflowGraph()).graph; + const consumer = flat.nodes.find( + (entry) => + entry.data.operationAuthoring?.operation.task === 'outpaint' && + entry.data.params.image && + entry.data.params.mask_image, + )!; + if (!consumer) throw new Error('Missing actual source/mask consumer.'); + const canvas = flat.nodes.find( + (entry) => entry.data.module === 'modules.DiffusersImage' && entry.data.action === 'OutpaintCanvas', + )!; + const geometry = flat.nodes.filter((entry) => + flat.edges.some( + (edge) => + edge.source === canvas.id && + edge.sourceHandle === 'width_out' && + edge.target === entry.id && + edge.targetHandle === 'width', + ), + ); + return { + media: `${consumer.data.module}.${consumer.data.action}`, + geometry: geometry.map((entry) => `${entry.data.module}.${entry.data.action}`), + }; + }); + const consumerKey = consumers.media; + const feather = node.getByLabel(/^Mask feather$/i); + await feather.fill('0'); + await feather.press('Enter'); + await expect(feather).toHaveValue('0'); + const edited = await optionalStageApi(page); + expect(edited['modules.DiffusersImage.OutpaintCanvas'].params.feather.value).toBe('0'); + expect(edited[consumerKey].params.mask_image.sourceKey).toBe('mask_image'); + expect(edited[consumerKey].params.width.sourceKey).toBe('width_out'); + expect(edited[consumerKey].params.height.sourceKey).toBe('height_out'); + expect(consumers.geometry).toContain(consumerKey); + for (const key of consumers.geometry) { + expect(edited[key].params.width).toMatchObject({ + sourceId: 'modules.DiffusersImage.OutpaintCanvas', + sourceKey: 'width_out', + }); + expect(edited[key].params.height).toMatchObject({ + sourceId: 'modules.DiffusersImage.OutpaintCanvas', + sourceKey: 'height_out', + }); + } + await node.getByRole('button', { name: 'Prepare Mask options', exact: true }).click(); + await page.getByRole('menuitem', { name: 'Separate mask preparation stages', exact: true }).click(); + await expect(node).toHaveCount(0); + expect(await optionalStageApi(page)).toEqual(edited); + await page.locator('.react-flow__pane').click({ position: { x: 40, y: 140 } }); + await page.keyboard.press('Control+z'); + await expect(node).toBeVisible(); + await expect(feather).toHaveValue('0'); + await page.reload({ waitUntil: 'domcontentloaded' }); + await expect(node).toBeVisible(); + await expect(feather).toHaveValue('0'); + expect(await optionalStageApi(page)).toEqual(edited); +}); + +test('optional declared component bundle preserves Qwen stages, controls, breakout, Undo and reload', async ({ + page, +}) => { + await openOptionalStageTemplate(page, 'qwen_text_rendering', 'qwen', false); + const graph = () => page.evaluate(() => window.__MODIFF_E2E__!.exportWorkflowGraph()); + const original = await graph(); + const before = await optionalStageApi(page); + const owner = original.nodes.find((node) => node.data.label === 'Model Setup')!; + const loader = page.getByTestId(`setup-node-${owner.id}`); + const menu = async () => { + await loader.getByRole('button', { name: 'Workflow stage actions', exact: true }).click(); + }; + await menu(); + await page.getByRole('menuitem', { name: 'Use component bundle', exact: true }).click(); + await page.keyboard.press('Escape'); + const bundled = await graph(); + expect(bundled.nodes.map((node) => node.id).sort()).toEqual(original.nodes.map((node) => node.id).sort()); + expect(bundled.edges.length).toBe(original.edges.length - 1); + const api = await optionalStageApi(page); + for (const key of [ + 'modules.ModularDiffusers.EncodePrompt', + 'modules.ModularDiffusers.Denoise', + 'modules.ModularDiffusers.DecodeLatents', + ]) { + expect(api[key].params.pipeline_components.sourceId).toBe('modules.ModularDiffusers.ModelsLoader'); + expect(api[key].params.pipeline_components.sourceKey).toBe('pipeline_components'); + } + expect(api['modules.ModularDiffusers.EncodePrompt'].params.prompt).toEqual( + before['modules.ModularDiffusers.EncodePrompt'].params.prompt, + ); + expect(api['modules.ModularDiffusers.Guider']).toEqual(before['modules.ModularDiffusers.Guider']); + expect(api['modules.ModularDiffusers.Denoise'].params.seed).toEqual( + before['modules.ModularDiffusers.Denoise'].params.seed, + ); + await menu(); + await page.getByRole('menuitem', { name: 'Expose components', exact: true }).click(); + await page.keyboard.press('Escape'); + expect(await optionalStageApi(page)).toEqual(before); + await page.locator('.react-flow__pane').click({ position: { x: 40, y: 140 } }); + await page.keyboard.press('Control+z'); + await expect.poll(() => optionalStageApi(page)).toEqual(api); + await page.reload({ waitUntil: 'domcontentloaded' }); + await page.waitForFunction(() => Boolean(window.__MODIFF_E2E__)); + await expect.poll(() => optionalStageApi(page)).toEqual(api); + await menu(); + await expect(page.getByRole('menuitem', { name: 'Expose components', exact: true })).toBeVisible(); +}); + +for (const templateId of [ + 'qwen_inpaint_object_replace', + 'qwen_inpaint_mask_draft', + 'qwen_outpaint_aspect_template', + 'qwen_outpaint_draft', +] as const) + test(`Qwen Gallery ${templateId} preserves its selected stages and exact inputs through export, normal import and refresh`, async ({ + page, + }) => { + await openOptionalStageTemplate(page, templateId, 'qwen', false); + const api = () => + page.evaluate(async () => { + const sid = 'qwen-gallery-hydration'; + window.__MODIFF_E2E__!.setWebsocketConnection({ sid, isConnected: true }); + const { useFlowStore } = await import('/src/stores/useFlowStore.ts'); + return useFlowStore.getState().exportGraph(sid, undefined, { randomizeSeeds: false }); + }); + const before = await api(); + const selection = IMAGE_TEMPLATE_EXECUTION_SELECTIONS[templateId]!; + const executable = Object.values(before.nodes); + const form = await page.evaluate(() => window.__MODIFF_E2E__!.getState().studio.form); + if (selection.implementation === 'native_stages') { + for (const action of ['ModelsLoader', 'EncodePrompt', 'ImageEncode', 'Denoise', 'DecodeLatents', 'Guider']) + expect( + executable.filter((node) => node.module === 'modules.ModularDiffusers' && node.action === action), + ).toHaveLength(1); + expect(executable.some((node) => ['LoadPipeline', 'Inpaint'].includes(node.action))).toBe(false); + const owner = executable.find((node) => node.action === 'ModelsLoader')!; + const encode = executable.find((node) => node.action === 'ImageEncode')!; + const prompt = executable.find((node) => node.action === 'EncodePrompt')!; + const denoise = executable.find((node) => node.action === 'Denoise')!; + expect(owner.params.inpaint_compatibility.value).toBe('whole_v1'); + expect(encode.params.inpaint_compatibility.value).toBe('whole_v1'); + expect([denoise.params.width.value, denoise.params.height.value]).toEqual([form.width, form.height]); + expect(denoise.params.num_inference_steps.value).toBe(form.steps); + expect(denoise.params.strength.value).toBe(form.strength); + expect(prompt.params.prompt.value).toBe(form.prompt); + expect(prompt.params.negative_prompt.value).toBe(form.negativePrompt); + if (templateId.startsWith('qwen_outpaint_')) { + const canvasId = Object.keys(before.nodes).find((id) => before.nodes[id].action === 'OutpaintCanvas')!; + const canvas = before.nodes[canvasId]; + expect(canvas).toBeTruthy(); + expect([canvas.params.width.value, canvas.params.height.value]).toEqual([form.width, form.height]); + expect(encode.params.image).toMatchObject({ sourceId: canvasId, sourceKey: 'canvas' }); + expect(encode.params.mask_image).toMatchObject({ sourceId: canvasId, sourceKey: 'mask_image' }); + expect(prompt.params.image).toMatchObject({ sourceId: canvasId, sourceKey: 'canvas' }); + } + } else { + expect(selection.implementation).toBe('whole_pipeline'); + expect(executable.some((node) => node.action === 'LoadPipeline')).toBe(true); + } + const foreignSockets = await page.evaluate(async () => { + const [{ useFlowStore }, runtime, { operationAuthoring }] = await Promise.all([ + import('/src/stores/useFlowStore.ts'), + import('/src/studio/blockRuntimeV2.ts'), + import('/src/workflow/operationAuthoringHint.ts'), + ]); + const graph = useFlowStore.getState().toObject(); + return runtime + .expandBlockGraphV2ForExecution(graph.nodes, graph.edges) + .nodes.filter((node) => { + const operation = operationAuthoring(node)?.operation; + return ( + operation && + Object.hasOwn(node.data.params, 'pipeline_components') && + !operation.ports.some((port) => port.name === 'pipeline_components') + ); + }) + .map((node) => `${node.data.module}.${node.data.action}`); + }); + expect(foreignSockets).toEqual([]); + await page.getByTestId('topbar-export').click(); + const downloadPromise = page.waitForEvent('download'); + await page.getByTestId('topbar-export-workflow-package').click(); + const download = await downloadPromise; + const downloadedPath = await download.path(); + expect(downloadedPath).toBeTruthy(); + const packageBytes = await fs.readFile(downloadedPath!); + const workflowPackage = JSON.parse(packageBytes.toString('utf8')) as { apiGraph: ApiGraphExport }; + expect(workflowPackage.apiGraph.nodes).toEqual(before.nodes); + await page.getByTestId('left-tab-assets').click(); + await page.getByTestId('left-open-gallery-library').click(); + await expect(page.getByRole('heading', { name: 'Output Gallery', exact: true })).toBeVisible(); + await page.getByTestId('gallery-import-workflow-input').setInputFiles({ + name: `${templateId}.json`, + mimeType: 'application/json', + buffer: packageBytes, + }); + await page.waitForFunction(() => { + const state = window.__MODIFF_E2E__!.getState().studio; + return ( + state.canvasTransition === null && + state.workflowTabs.find((tab: { id: string }) => tab.id === state.activeWorkflowTabId)?.source === 'import' + ); + }); + await expect.poll(api).toEqual(before); + await page.reload({ waitUntil: 'domcontentloaded' }); + await page.waitForFunction(() => Boolean(window.__MODIFF_E2E__)); + await expect.poll(api).toEqual(before); + }); + +for (const selection of ['connected-node', 'edge-only', 'mixed'] as const) { + test(`native Delete ${selection} is restored by one Undo`, async ({ page }) => { + await ensureFrontend(); + await installMockRoutes(page); + await page.goto(FRONTEND_URL, { waitUntil: 'domcontentloaded' }); + await page.waitForFunction(() => Boolean(window.__MODIFF_E2E__)); + await dismissTaskLauncher(page); + await page.evaluate(async (selection) => { + const [{ useFlowStore }, { useStudioStore }] = await Promise.all([ + import('/src/stores/useFlowStore.ts'), + import('/src/stores/useStudioStore.ts'), + ]); + useStudioStore.getState().clearGraphBinding(); + const nodes = ['source', 'target', 'other'].map((id, index) => ({ + id: `delete-${id}`, + type: 'custom' as const, + position: { x: 100 + index * 320, y: 160 }, + selected: id === 'target' && selection !== 'edge-only', + data: { + type: 'custom' as const, + module: 'modules.Test', + action: 'Utility', + label: id, + category: 'Test', + params: { + input: { type: 'string', display: 'input', value: '' }, + output: { type: 'string', display: 'output' }, + }, + }, + })); + const edges = ['target', 'other'].map((id) => ({ + id: `delete-edge-${id}`, + source: 'delete-source', + target: `delete-${id}`, + sourceHandle: 'output', + targetHandle: 'input', + selected: id === 'other' && selection !== 'connected-node', + })); + useFlowStore.setState({ nodes, edges, viewport: { x: 0, y: 0, zoom: 0.7 } }); + useFlowStore.getState().resetHistory(); + useStudioStore.getState().saveActiveWorkflowTab(true); + }, selection); + await expect(page.locator('.react-flow__node')).toHaveCount(3); + await page.getByTestId('topbar-resource-policy').focus(); + const signature = () => + page.evaluate(async () => { + const { useFlowStore } = await import('/src/stores/useFlowStore.ts'); + const state = useFlowStore.getState(); + return { + nodes: state.nodes.map((node) => node.id).sort(), + edges: state.edges.map((edge) => edge.id).sort(), + }; + }); + const original = await signature(); + await page.keyboard.press('Delete'); + const deleted = { + nodes: selection === 'edge-only' ? original.nodes : ['delete-other', 'delete-source'], + edges: selection === 'mixed' ? [] : [selection === 'edge-only' ? 'delete-edge-target' : 'delete-edge-other'], + }; + await expect.poll(signature).toEqual(deleted); + await page.keyboard.press('Control+z'); + await expect.poll(signature).toEqual(original); + await page.keyboard.press('Control+Shift+z'); + await expect.poll(signature).toEqual(deleted); + }); +} + +test('managed Studio resources and Auto Run check the whole graph before submitting', async ({ page }) => { + mockInstalledRepos.clear(); + mockInstalledRepos.add('Tongyi-MAI/Z-Image-Turbo'); + await ensureFrontend(); + await installMockRoutes(page); + const plans: Array<{ graph: { nodes: unknown; paths: unknown } }> = []; + let submitted = 0; + await page.route('**/auto_resource/workflow', async (route) => { + plans.push(route.request().postDataJSON()); + await route.fulfill({ + json: { + schemaVersion: 1, + graphHash: `sha256:workflow-auto-v1:${'a'.repeat(64)}`, + plannedGraphHash: `sha256:workflow-auto-v1:${'b'.repeat(64)}`, + canAutoRun: false, + issues: ['The complete workflow needs a reviewed auxiliary recipe'], + message: 'Whole workflow refused by the test transport', + patches: [], + loaders: [], + requirements: {}, + available: {}, + sharedMemory: false, + }, + }); + }); + await page.route('**/graph', async (route) => { + submitted++; + await route.fulfill({ json: { error: false, task_id: 'must-not-submit', sid: 'mock-sid', message: 'queued' } }); + }); + await page.goto(FRONTEND_URL, { waitUntil: 'domcontentloaded' }); + await page.waitForFunction(() => Boolean(window.__MODIFF_E2E__)); + await page.evaluate(() => window.__MODIFF_E2E__!.setWebsocketConnection({ sid: 'mock-sid', isConnected: true })); + // Seed a saved managed document; the actions under test are native. + await page.evaluate(() => window.__MODIFF_E2E__!.applyLegacyTemplateForTest('z_image_quick_concept')); + await waitForOperationGraphToSettle(page); + await setWorkflowResourceMode(page, 'auto'); + expect(await page.evaluate(() => Boolean(window.__MODIFF_E2E__!.getState().studio.graphBinding))).toBe(true); + const readExecution = () => + page.evaluate(async () => { + const { useFlowStore } = await import('/src/stores/useFlowStore.ts'); + const graph = useFlowStore.getState().exportGraph('mock-sid'); + return { nodes: graph.nodes, paths: graph.paths }; + }); + const before = await readExecution(); + await page.getByTestId('topbar-workflow-resources').click(); + await expect(page.getByTestId('workflow-resource-assessment')).toBeVisible(); + await expect(page.getByTestId('compatibility-panel')).toContainText('Selected model'); + await page.getByTestId('plan-workflow-auto').click(); + await expect(page.getByTestId('workflow-auto-plan')).toContainText('Auto needs attention'); + await expect(page.getByTestId('workflow-auto-plan')).toContainText('reviewed auxiliary recipe'); + expect(plans).toHaveLength(1); + expect({ nodes: plans[0]!.graph.nodes, paths: plans[0]!.graph.paths }).toEqual(before); + await expect(page.getByTestId('studio-run')).toBeEnabled(); + await page.getByTestId('studio-run').click(); + await expect.poll(() => plans.length).toBe(2); + await expect(page.getByText(/Auto cannot run this workflow: The complete workflow needs/u).first()).toBeVisible(); + expect(submitted).toBe(0); + expect(await readExecution()).toEqual(before); +}); + +test('mounted media source picker distinguishes model branches and follows edits, removal and Undo', async ({ + page, +}) => { + page.setDefaultTimeout(15_000); + await ensureFrontend(); + const python = + process.env.MODIFF_BACKEND_PYTHON || + path.join(BACKEND_ROOT, '.venv', process.platform === 'win32' ? 'Scripts/python.exe' : 'bin/python'); + const script = path.join(CLIENT_ROOT, 'scripts', 'operation-starter-fixtures.py'); + const args = [script, '--selection', 'QwenImageModularPipeline', 'image_to_image']; + const { stdout } = await promisify(execFile)( + process.platform === 'win32' ? python : path.join(BACKEND_ROOT, 'scripts', 'with-runtime-env.sh'), + process.platform === 'win32' ? args : [python, ...args], + { + cwd: BACKEND_ROOT, + env: { ...process.env, PYTHONDONTWRITEBYTECODE: '1' }, + timeout: 90_000, + maxBuffer: 32 * 1024 * 1024, + }, + ); + const [starter] = JSON.parse(stdout) as OperationStarter[]; + expect(starter!.task).toBe('image_to_image'); + await page.goto(`${FRONTEND_URL}/control-state-matrix.html`, { waitUntil: 'domcontentloaded' }); + const ids = await page.evaluate(async (starter) => { + const [ + { useFlowStore }, + { useNodesStore }, + { createOperationStarter }, + { mountMediaAttachmentProbe }, + schema, + runtime, + crossing, + ] = await Promise.all([ + import('/src/stores/useFlowStore.ts'), + import('/src/stores/useNodeStore.ts'), + import('/src/workflow/operationAuthoring.ts'), + import('/tests/e2e/studio-mocked/mediaAttachmentFixture.tsx'), + import('/src/studio/blockSchemaV2.ts'), + import('/src/studio/blockRuntimeV2.ts'), + import('/src/studio/blockCrossingConnectionsV2.ts'), + ]); + const branches = ['Qwen/Qwen-Image', 'Qwen/Qwen-Image-2512', 'Qwen/Qwen-Image'].map((repo) => { + const graph = createOperationStarter(starter, { x: 0, y: 0 }); + graph.nodes.find((node) => node.data.action === 'ModelsLoader')!.data.params.repo_id!.value = { + source: 'hub', + value: repo, + }; + return graph; + }); + const owners = branches.map((graph) => graph.nodes.find((node) => node.data.action === 'ModelsLoader')!.id); + const decoders = branches.map((graph) => graph.nodes.find((node) => node.data.action === 'DecodeLatents')!.id); + useNodesStore.setState({ + operationContracts: starter.nodes.map((node) => node.operation), + pipelineSupport: [ + { + pipelineClass: starter.pipelineClass, + coverage: 'declared', + reason: 'Actual backend starter contracts for this isolated picker regression.', + equivalentTo: [], + upstreamTasks: [], + tasks: [ + { + task: starter.task, + execution: 'adapter', + decomposition: 'stages', + operationIds: starter.nodes.map((node) => node.operation.operationId), + executionProfileIds: [], + dependencies: 'ready', + runtimeRequirements: [], + }, + ], + }, + ], + }); + const saved = createOperationStarter(starter, { x: 0, y: 0 }); + const savedOwner = saved.nodes.find((node) => node.data.action === 'ModelsLoader')!; + savedOwner.data.params.repo_id!.value = { source: 'hub', value: 'Qwen/Qwen-Image-2512' }; + const savedDecoder = saved.nodes.find((node) => node.data.action === 'DecodeLatents')!; + const inner = { + nodes: saved.nodes.map((node) => ({ nodeId: node.id, nodeType: node.type!, data: node.data })), + edges: saved.edges.map((edge) => ({ + edgeId: edge.id, + sourceNodeId: edge.source, + sourcePortId: edge.sourceHandle!, + targetNodeId: edge.target, + targetPortId: edge.targetHandle!, + })), + }; + const definition = { + schemaVersion: 2 as const, + definitionId: 'user:media-label-import', + displayName: 'Saved image branch', + source: { kind: 'user' as const }, + graph: { ...inner, graphHash: schema.blockGraphHashV2(inner) }, + boundary: { + mode: 'explicit' as const, + inputs: [], + outputs: [ + { + portId: 'rendered', + label: 'Result', + valueType: 'image', + required: false, + binding: { nodeId: savedDecoder.id, fieldOrPortId: 'images' }, + }, + ], + }, + controls: [], + suggestedInputs: [], + previews: [], + ownership: { kind: 'user' as const, definitionMutable: true }, + }; + const block = runtime.createBlockRootNodeV2( + schema.createBlockInstanceV2( + { ...definition, contentHash: schema.blockDefinitionContentHashV2(definition) }, + { instanceId: 'media-label-import-block', position: { x: 0, y: 800 }, size: { width: 400, height: 500 } }, + ), + ); + const broken = { + id: 'retained-input-as-output', + source: block.id, + sourceHandle: crossing.blockCrossingHandleV2({ + direction: 'input', + nodeId: savedOwner.id, + fieldOrPortId: 'repo_id', + }), + target: 'retained-input-target', + targetHandle: 'input', + }; + useFlowStore.getState().replaceGraph( + { + nodes: [ + ...branches.flatMap((graph) => graph.nodes), + block, + { + id: broken.target, + type: 'custom', + position: { x: 900, y: 800 }, + data: { + module: 'custom.Values', + action: 'Input', + type: 'custom', + category: 'test', + label: 'Input', + params: { input: { type: 'str', display: 'input' } }, + }, + }, + ], + edges: [...branches.flatMap((graph) => graph.edges), broken], + viewport: { x: 0, y: 0, zoom: 1 }, + }, + { clearRemovedCache: false }, + ); + useFlowStore.getState().resetHistory(); + mountMediaAttachmentProbe(owners[0]!, owners[1]!, decoders[1]!); + return { owners, decoders, brokenEdgeId: broken.id }; + }, starter!); + const probe = page.getByTestId('mounted-media-attachment'); + const picker = probe.getByRole('button', { name: 'Media input source', exact: true }); + await picker.click(); + const first = 'Decode Latents · Images · Qwen/Qwen-Image · Branch 1'; + const second = 'Decode Latents · Images · Qwen/Qwen-Image-2512'; + const third = 'Decode Latents · Images · Qwen/Qwen-Image · Branch 2'; + await expect(page.getByRole('option', { name: first, exact: true })).toBeVisible(); + await expect(page.getByRole('option', { name: third, exact: true })).toBeVisible(); + await expect( + page.getByRole('option', { name: 'Saved image branch · Result · Qwen/Qwen-Image-2512', exact: true }), + ).toBeVisible(); + expect( + await page.evaluate( + async (id) => + (await import('/src/stores/useFlowStore.ts')).useFlowStore.getState().edges.some((edge) => edge.id === id), + ids.brokenEdgeId, + ), + ).toBe(true); + await page.getByRole('option', { name: second, exact: true }).click(); + await expect(picker).toHaveText(second); + await probe.getByRole('button', { name: 'Use the same source model', exact: true }).click(); + await expect(picker).toHaveText(third); + await picker.click(); + await expect( + page.getByRole('option', { name: 'Decode Latents · Images · Qwen/Qwen-Image · Branch 3', exact: true }), + ).toBeVisible(); + await page.keyboard.press('Escape'); + await probe.getByRole('button', { name: 'Remove selected source', exact: true }).click(); + await expect(picker).toHaveText('Add Load Image'); + let starterRequests = 0; + await page.route('**/operations/starter*', (route) => { + starterRequests += 1; + return route.abort(); + }); + await probe.getByRole('button', { name: 'Attach input', exact: true }).click(); + await expect(probe).toContainText( + 'The selected source is no longer compatible. Choose a source for this input role.', + ); + expect(starterRequests).toBe(0); + await probe.getByRole('button', { name: 'Undo source edit', exact: true }).click(); + await expect(picker).toHaveText(third); + await probe.getByRole('button', { name: 'Undo source edit', exact: true }).click(); + await expect(picker).toHaveText(second); + await probe.getByRole('button', { name: 'Redo source edit', exact: true }).click(); + await expect(picker).toHaveText(third); + expect( + await page.evaluate( + async (id) => + (await import('/src/stores/useFlowStore.ts')).useFlowStore.getState().nodes.some((node) => node.id === id), + ids.decoders[1]!, + ), + ).toBe(true); + await page.screenshot({ path: test.info().outputPath('media-source-model-branches.png'), animations: 'disabled' }); +}); + +test('mocked Gallery opens every ordered collection image before and after history reload', async ({ page }) => { + await ensureFrontend(); + await installMockRoutes(page); + const mediaPaths = [0, 1, 2].map((index) => `@data/studio/outputs/ordered-layer-${index}.webp`); + const mediaItems = mediaPaths.map((backendPath, index) => ({ + index, + url: `/file?file=${encodeURIComponent(backendPath)}`, + backendPath, + displayType: 'image', + label: `Layer ${index + 1}`, + taskId: 'ordered-layers-task', + clientRunId: 'ordered-layers-client', + runInputHash: 'ordered-layers-input', + attemptIndex: 0, + width: 2, + height: 2, + })); + const output = { + id: 'ordered-layers-output', + url: mediaItems[0]!.url, + displayType: 'image_collection', + modelType: 'QwenImageLayeredModularPipeline', + modelLabel: 'Ordered collection', + mode: 'layer_decomposition', + prompt: 'Keep all three recorded layers.', + taskId: 'ordered-layers-task', + clientRunId: 'ordered-layers-client', + runInputHash: 'ordered-layers-input', + nodeId: 'preview', + attemptIndex: 0, + createdAt: 1, + mediaItems, + }; + let graphPosts = 0; + page.on('request', (request) => { + if (new URL(request.url()).pathname === '/graph' && request.method() === 'POST') graphPosts += 1; + }); + await page.route('**/studio_outputs**', (route) => { + expect(route.request().method()).toBe('GET'); + return route.fulfill({ + json: { error: false, outputs: [output], revision: 1 }, + }); + }); + await page.goto(FRONTEND_URL, { waitUntil: 'domcontentloaded' }); + for (let reload = 0; reload < 2; reload += 1) { + await page.waitForFunction(() => Boolean(window.__MODIFF_E2E__)); + await dismissTaskLauncher(page); + await page.getByTestId('topbar-gallery').click(); + const gallery = page.getByTestId('gallery-panel'); + await expect(gallery.getByTestId('gallery-output-0').getByRole('img')).toHaveCount(3); + // Both existing full-size entry points must preserve the collection. + if (reload === 0) await gallery.getByTestId('gallery-open-0').click(); + else await gallery.getByRole('button', { name: /^Root \| Ordered collection \|/ }).click(); + for (let index = 0; index < 3; index += 1) { + const dialog = page.getByRole('dialog', { + name: `Image ${index + 1} of 3`, + exact: true, + }); + await expect(dialog).toHaveCount(1); + await expect(dialog.getByRole('heading', { name: `Image ${index + 1} of 3`, exact: true })).toBeVisible(); + const image = dialog.locator('img.max-h-full.max-w-full'); + await expect(image).toHaveCount(1); + await expect(image).toBeVisible(); + await expect + .poll(() => + image.evaluate((element: HTMLImageElement) => ({ + file: new URL(element.currentSrc).searchParams.get('file'), + width: element.naturalWidth, + height: element.naturalHeight, + })), + ) + .toEqual({ file: mediaPaths[index], width: 2, height: 2 }); + await expect(dialog.getByRole('button', { name: /^Show image [123]$/ })).toHaveCount(3); + if (index < 2) await dialog.getByRole('button', { name: 'Next image', exact: true }).click(); + } + await page.getByRole('button', { name: 'Previous image', exact: true }).click(); + await expect(page.getByRole('dialog', { name: 'Image 2 of 3', exact: true })).toHaveCount(1); + await expect(page.getByRole('heading', { name: 'Image 2 of 3', exact: true })).toBeVisible(); + await page.getByRole('button', { name: 'Show image 1', exact: true }).click(); + await expect(page.getByRole('dialog', { name: 'Image 1 of 3', exact: true })).toHaveCount(1); + await expect(page.getByRole('heading', { name: 'Image 1 of 3', exact: true })).toBeVisible(); + await page.getByRole('button', { name: 'Close preview', exact: true }).click(); + expect((await page.evaluate(() => window.__MODIFF_E2E__!.getState().studio.outputs[0]))!.mediaItems).toMatchObject( + mediaItems, + ); + if (reload === 0) await page.reload({ waitUntil: 'domcontentloaded' }); + } + expect(graphPosts).toBe(0); +}); + +for (const displayType of ['text', 'json'] as const) { + test(`mocked Gallery preserves ${displayType} preview, original download and non-image actions`, async ({ page }) => { + await ensureFrontend(); + await installMockRoutes(page); + await page.addInitScript(() => { + Object.defineProperty(window, 'showSaveFilePicker', { configurable: true, value: undefined }); + }); + const value = + displayType === 'text' + ? ['Native CPU memory telemetry acceptance'] + : { message: '', values: [0, false, 'हैलो'], empty: '' }; + const content = JSON.stringify(value, null, 2); + const rawContent = displayType === 'json' ? content + '\n' : content; + const extension = displayType === 'json' ? 'json' : 'txt'; + const label = displayType === 'json' ? 'JSON' : 'Text'; + const mediaPath = `@data/studio/outputs/gallery-${displayType}.${extension}`; + const url = `/file?file=${encodeURIComponent(mediaPath)}`; + const output = { + id: `gallery-${displayType}-output`, + url, + displayType, + value, + modelLabel: `Recorded ${label}`, + nodeId: 'preview', + fieldKey: 'preview', + taskId: `gallery-${displayType}-task`, + clientRunId: `gallery-${displayType}-client`, + runInputHash: `gallery-${displayType}-inputs`, + attemptIndex: 0, + createdAt: 1, + favorite: false, + mediaItems: [ + { + index: 0, + url, + backendPath: mediaPath, + displayType, + contentType: displayType === 'json' ? 'application/json' : 'text/plain', + }, + ], + }; + let historyReads = 0; + let favoritePatches = 0; + await page.route('**/studio_outputs**', (route) => { + if (route.request().method() === 'PATCH') { + expect(route.request().postDataJSON()).toEqual({ favorite: true }); + expect(decodeURIComponent(new URL(route.request().url()).pathname)).toContain(output.id); + output.favorite = true; + favoritePatches += 1; + } else { + expect(route.request().method()).toBe('GET'); + historyReads += 1; + } + return route.fulfill({ json: { error: false, outputs: [output], revision: 1 } }); + }); + await page.route('**/file*', (route) => { + const requestUrl = new URL(route.request().url()); + return requestUrl.searchParams.get('file') === mediaPath + ? route.fulfill({ contentType: displayType === 'json' ? 'application/json' : 'text/plain', body: rawContent }) : route.fallback(); }); await page.goto(FRONTEND_URL, { waitUntil: 'domcontentloaded' }); await page.waitForFunction(() => Boolean(window.__MODIFF_E2E__)); - await dismissTaskLauncher(page); - await page.getByTestId('topbar-gallery').click(); - const gallery = page.getByTestId('gallery-panel'); - const card = gallery.getByTestId('gallery-output-0'); - const closeTextPreview = async () => { - await page.getByRole('button', { name: 'Close media viewer', exact: true }).click(); - await expect(page.getByTestId('media-viewer-dialog')).toHaveCount(0); - // Cold shared dialogs dismiss Gallery while loading; warm dialogs retain it. - if (!(await gallery.isVisible())) await page.getByTestId('topbar-gallery').click(); - await expect(card).toBeVisible(); - }; - await expect(card.getByTestId('gallery-output-text')).toHaveText(content); - await expect(card).toContainText(`| ${label} |`); - await expect(card).toContainText('Task not captured'); - await expect(card).toContainText('Seed not captured'); - await expect(card).not.toContainText('Text to image'); - await expect(card.locator('img')).toHaveCount(0); - await expect(card.getByRole('button', { name: 'Download PNG package', exact: true })).toHaveCount(0); - await expect(card.getByTestId('gallery-compare-0')).toHaveCount(0); - await expect(card.getByTestId('gallery-send-edit-0')).toHaveCount(0); - await card.getByTestId('gallery-open-0').click(); - await expect(page.getByTestId('media-viewer-text')).toHaveText(content); - await expect(page.getByTestId('media-viewer-dialog').locator('img')).toHaveCount(0); - expect(await page.evaluate(() => (window as Window & { __galleryXss?: boolean }).__galleryXss)).toBeUndefined(); - await closeTextPreview(); - await expect(card.getByTestId('gallery-restore-0')).toBeVisible(); - await expect(card.getByTestId('gallery-rerun-0')).toBeVisible(); - const packageDownloadPromise = page.waitForEvent('download'); - await card.getByTestId('gallery-download-package-0').click(); - const packageDownload = await packageDownloadPromise; - const metadataPackage = JSON.parse(await fs.readFile((await packageDownload.path())!, 'utf8')); - expect(metadataPackage.latestOutput).toMatchObject({ - id: output.id, - taskId: output.taskId, - clientRunId: output.clientRunId, - runInputHash: output.runInputHash, - displayType, - value, + await dismissTaskLauncher(page); + await page.getByTestId('topbar-gallery').click(); + const gallery = page.getByTestId('gallery-panel'); + const card = gallery.getByTestId('gallery-output-0'); + const closeTextPreview = async () => { + await page.getByRole('button', { name: 'Close media viewer', exact: true }).click(); + await expect(page.getByTestId('media-viewer-dialog')).toHaveCount(0); + // Cold shared dialogs dismiss Gallery while loading; warm dialogs retain it. + if (!(await gallery.isVisible())) await page.getByTestId('topbar-gallery').click(); + await expect(card).toBeVisible(); + }; + await expect(card.getByTestId('gallery-output-text')).toHaveText(content); + await expect(card).toContainText(`| ${label} |`); + await expect(card).toContainText('Task not captured'); + await expect(card).toContainText('Seed not captured'); + await expect(card).not.toContainText('Text to image'); + await expect(card.locator('img')).toHaveCount(0); + await expect(card.getByRole('button', { name: 'Download PNG package', exact: true })).toHaveCount(0); + await expect(card.getByTestId('gallery-compare-0')).toHaveCount(0); + await expect(card.getByTestId('gallery-send-edit-0')).toHaveCount(0); + await card.getByTestId('gallery-open-0').click(); + await expect(page.getByTestId('media-viewer-text')).toHaveText(content); + await expect(page.getByTestId('media-viewer-dialog').locator('img')).toHaveCount(0); + expect(await page.evaluate(() => (window as Window & { __galleryXss?: boolean }).__galleryXss)).toBeUndefined(); + await closeTextPreview(); + await expect(card.getByTestId('gallery-restore-0')).toBeVisible(); + await expect(card.getByTestId('gallery-rerun-0')).toBeVisible(); + const packageDownloadPromise = page.waitForEvent('download'); + await card.getByTestId('gallery-download-package-0').click(); + const packageDownload = await packageDownloadPromise; + const metadataPackage = JSON.parse(await fs.readFile((await packageDownload.path())!, 'utf8')); + expect(metadataPackage.latestOutput).toMatchObject({ + id: output.id, + taskId: output.taskId, + clientRunId: output.clientRunId, + runInputHash: output.runInputHash, + displayType, + value, + }); + await card.getByTestId('gallery-favorite-0').click(); + await expect.poll(() => favoritePatches).toBe(1); + const downloadPromise = page.waitForEvent('download'); + await card.getByRole('button', { name: `Download ${displayType}`, exact: true }).click(); + const download = await downloadPromise; + expect(download.suggestedFilename()).toMatch(new RegExp(`\\.${extension}$`)); + expect(download.suggestedFilename()).toMatch(/^modiff-uncaptured-model-/); + expect(await fs.readFile((await download.path())!, 'utf8')).toBe(rawContent); + if (displayType === 'text') { + const bytes = await fs.readFile((await download.path())!); + expect(bytes.length).toBe(46); + expect(createHash('sha256').update(bytes).digest('hex')).toBe( + '87b7128d0401ebcb7de32877ff7378a51b1f9067ac47392af6469f15cb488862', + ); + } + await gallery.getByTestId('gallery-view-inspect').click(); + await expect(gallery.getByTestId('gallery-inspect-view').getByTestId('gallery-output-text')).toHaveText(content); + await gallery.getByTestId('gallery-view-compare').click(); + await expect(gallery.getByTestId('gallery-compare-view').getByTestId('gallery-output-text')).toHaveText(content); + await gallery.getByTestId('gallery-view-grid').click(); + await gallery.getByRole('button', { name: new RegExp(`^Root \\| Recorded ${label} \\|`) }).click(); + await expect(page.getByTestId('media-viewer-text')).toHaveText(content); + await closeTextPreview(); + await gallery.getByTestId('gallery-refresh-history').click(); + await expect.poll(() => historyReads).toBeGreaterThan(1); + await expect(card.getByTestId('gallery-output-text')).toHaveText(content); + const restoredOutput = await page.evaluate(() => window.__MODIFF_E2E__!.getState().studio.outputs[0]); + expect(restoredOutput).toMatchObject({ + id: output.id, + taskId: output.taskId, + clientRunId: output.clientRunId, + runInputHash: output.runInputHash, + nodeId: 'preview', + fieldKey: 'preview', + displayType, + value, + favorite: true, + }); + }); +} + +// These five literal cases use the existing normal UI +// helper with the declared stage/task/Guider +// differences. No model compatibility or adapter inference is claimed. +// reviewTerms comes from current modelUsagePolicies, not assumed dialog timing. +test('selected Kontext edit image policy preserves media, guidance and stages through adapter editing and reload', async ({ + page, +}) => { + await assertSelectedAliasAdapterAuthoring(page, { + templateId: 'flux_kontext_edit', + referenceCount: 1, + profileId: 'flux-kontext:modular', + search: 'Material Replacement', + reviewTerms: true, + task: 'edit_image', + policyTasks: ['edit_image'], + visibleLabels: ['Denoise', 'Encode Inputs', 'Image Output', 'Load Image', 'Model Setup'], + embeddedGuidance: 3.5, + guiderEnabled: true, + }); +}); +test('selected Kontext multi-reference image policy preserves composition, guidance and stages through adapter editing and reload', async ({ + page, +}) => { + await assertSelectedAliasAdapterAuthoring(page, { + templateId: 'flux_kontext_multi_reference', + referenceCount: 2, + executionMode: 'edit_image', + profileId: 'flux-kontext:modular', + search: 'Material Transfer', + reviewTerms: true, + task: 'multi_image_reference_edit', + policyTasks: ['edit_image'], + visibleLabels: ['Compose References', 'Denoise', 'Encode Inputs', 'Image Output', 'Load Image', 'Model Setup'], + embeddedGuidance: 3.5, + guiderEnabled: true, + }); +}); +test('selected Klein text-to-image policy preserves guidance and stages through adapter editing and reload', async ({ + page, +}) => { + await assertSelectedAliasAdapterAuthoring(page, { + templateId: 'flux2_klein_text_to_image', + referenceCount: 0, + profileId: 'flux2-klein:modular', + search: 'Glass Material Study', + reviewTerms: false, + task: 'text_to_image', + policyTasks: ['text_to_image', 'edit_image'], + visibleLabels: ['Denoise', 'Encode Inputs', 'Image Output', 'Model Setup'], + embeddedGuidance: 1, + guiderEnabled: null, + }); +}); +test('selected Klein edit image policy preserves media, guidance and stages through adapter editing and reload', async ({ + page, +}) => { + await assertSelectedAliasAdapterAuthoring(page, { + templateId: 'flux2_klein_edit', + referenceCount: 1, + profileId: 'flux2-klein:modular', + search: 'Material Change', + reviewTerms: false, + task: 'edit_image', + policyTasks: ['text_to_image', 'edit_image'], + visibleLabels: ['Denoise', 'Encode Inputs', 'Image Output', 'Load Image', 'Model Setup'], + embeddedGuidance: 1, + guiderEnabled: null, + }); +}); +test('selected Klein multi-reference image policy preserves media, guidance and stages through adapter editing and reload', async ({ + page, +}) => { + await assertSelectedAliasAdapterAuthoring(page, { + templateId: 'flux2_klein_multi_reference', + referenceCount: 2, + executionMode: 'edit_image', + profileId: 'flux2-klein:modular', + search: 'Material Fusion', + reviewTerms: false, + task: 'multi_image_reference_edit', + policyTasks: ['text_to_image', 'edit_image'], + visibleLabels: ['Denoise', 'Encode Inputs', 'Image Output', 'Load Image', 'Model Setup'], + embeddedGuidance: 1, + guiderEnabled: null, + }); +}); + +const stagedTemplateExpectedLabels: Record = { + flux_fill_inpaint: ['Denoise', 'Encode Inputs', 'Image Output', 'Load Image', 'Load Image', 'Model Setup'], + flux_fill_outpaint: ['Denoise', 'Encode Inputs', 'Image Output', 'Load Image', 'Load Image', 'Model Setup'], + flux_control_canny: ['Denoise', 'Encode Inputs', 'Image Output', 'Load Image', 'Model Setup'], + flux_depth_control: ['Denoise', 'Encode Inputs', 'Image Output', 'Load Image', 'Model Setup'], + flux_redux_edit: ['Denoise', 'Encode Inputs', 'Image Output', 'Load Image', 'Model Setup'], + flux_redux_multi_reference: ['Denoise', 'Encode Inputs', 'Image Output', 'Load Image', 'Model Setup'], +}; + +/** Normal UI authoring, persistence and ordinary API export only. The immutable + * adapter identities are metadata specimens, not compatibility/inference proof. */ +async function assertImagePipelineStageAdapterAuthoring(page: Page, templateId: string, search: string) { + const mutations: string[] = []; + page.on('request', (request) => { + if (request.method() === 'POST' && /\/(graph|execute|install|download)(?:[/?]|$)/u.test(request.url())) + mutations.push(request.url()); + }); + const template = STUDIO_TEMPLATES.find((item) => item.id === templateId)!; + const reviewTerms = acknowledgementRequiredForTemplate(template).length > 0; + await openOptionalStageTemplate(page, templateId, search, reviewTerms); + const fixture = (await imageTemplateSchemas()).recipes.find((item) => item.id === templateId)!; + const expectedLoader = fixture.starter.nodes.find((item) => item.operation.decomposition === 'loader')!.node; + const setup = (await page.evaluate(() => window.__MODIFF_E2E__!.exportWorkflowGraph())).nodes.find( + (entry) => entry.data.label === 'Model Setup', + )!; + const node = page.getByTestId(`setup-node-${setup.id}`); + await expect(node.getByRole('button', { name: 'Add LoRA', exact: true })).toBeEnabled(); + const snapshot = () => + page.evaluate(async () => { + const hooks = window.__MODIFF_E2E__!; + hooks.setWebsocketConnection({ sid: 'image-stage-authoring-contract', isConnected: true }); + const api = await hooks.exportAuthorizedApiGraph(); + const entries = Object.entries(api.nodes); + const [ownerId, owner] = entries.find( + ([, entry]) => entry.module === 'modules.DiffusersImage' && entry.action === 'LoadPipeline', + )!; + const stage = (action: string) => + entries.find(([, entry]) => entry.module === 'modules.DiffusersImage' && entry.action === action)!; + const [encodeId] = stage('EncodeInputs'); + const [denoiseId, denoise] = stage('Denoise'); + const [decodeId, decode] = stage('DecodeLatents'); + const stageIds = [encodeId, denoiseId, decodeId]; + const suppliers = stageIds.map((id) => api.nodes[id]!.params.pipeline.sourceId); + const ordered: Array<{ id: string; values: Record }> = []; + let id = suppliers[0]; + while (id && id !== ownerId) { + if (ordered.length >= 32 || ordered.some((entry) => entry.id === id)) throw new Error('Invalid adapter chain.'); + const adapter = api.nodes[id]!; + if (adapter.module !== 'modules.DiffusersImage' || adapter.action !== 'LoadAdapter') + throw new Error('Foreign stage supplier.'); + ordered.unshift({ + id, + values: Object.fromEntries( + [ + 'adapter_path', + 'revision', + 'expected_sha256', + 'weight_name', + 'adapter_name', + 'replace_existing', + 'scale', + ].map((field) => [field, adapter.params[field].value]), + ), + }); + id = adapter.params.pipeline.sourceId; + } + if (id !== ownerId) throw new Error('Unbound adapter chain.'); + const adapterIds = new Set(ordered.map((entry) => entry.id)); + const state = hooks.getState().nodes; + const selectedId = owner.params.execution_profile_id.value; + const capability = state.studioModelCapabilities.find((item) => + item.executionProfiles?.some((profile) => profile.id === selectedId), + )!; + const profile = capability.executionProfiles!.find((entry) => entry.id === selectedId)!; + return { + ordered, + ownerId, + stageIds, + suppliers, + profile, + supportsLora: capability.supportsLora, + repository: owner.params.model_id.value, + revision: owner.params.revision.value, + materialWires: { + conditioning: denoise.params.encoded_inputs, + latents: decode.params.latents, + binding: decode.params.latent_binding, + width: decode.params.width, + height: decode.params.height, + }, + encodeId, + denoiseId, + decodeId, + // Only the intentional ordered pipeline prefix changes; every original + // executable field, source-media connection and sampler scalar remains. + core: Object.fromEntries( + entries + .filter(([id]) => !adapterIds.has(id)) + .map(([id, entry]) => [ + id, + { + ...entry, + params: Object.fromEntries( + Object.entries(entry.params).map(([name, value]) => [ + name, + { + ...value, + ...(value.sourceId && adapterIds.has(value.sourceId) + ? { sourceId: ownerId, sourceKey: 'pipeline' } + : {}), + }, + ]), + ), + }, + ]), + ), + labels: hooks + .exportWorkflowGraph() + .nodes.map((entry) => entry.data.label) + .sort(), + }; + }); + const baseline = await snapshot(); + expect(baseline.repository).toEqual(expectedLoader.params.model_id.value); + expect(baseline.revision).toBe(expectedLoader.params.revision.value); + expect(baseline.profile.id).toBe(template.executionSelection!.executionProfileId); + expect(baseline.ordered).toEqual([]); + expect(baseline.suppliers).toEqual(Array(3).fill(baseline.ownerId)); + expect(baseline.materialWires).toMatchObject({ + conditioning: { sourceId: baseline.encodeId, sourceKey: 'encoded_inputs' }, + latents: { sourceId: baseline.denoiseId, sourceKey: 'latents_out' }, + binding: { sourceId: baseline.denoiseId, sourceKey: 'latent_binding' }, + width: { sourceId: baseline.denoiseId, sourceKey: 'width_out' }, + height: { sourceId: baseline.denoiseId, sourceKey: 'height_out' }, + }); + const expectedLabels = stagedTemplateExpectedLabels[templateId]!; + expect(baseline.labels).toEqual(expectedLabels); + const identities = STUDIO_TEMPLATES.find((item) => item.id === 'flux_lora_cinematic_octane_3d')! + .workflowBlockSettings!.lora!; + const adapters = [identities, ...identities.additionalAdapters!]; + expect(adapters).toHaveLength(2); + for (const [index, adapter] of adapters.entries()) { + await node.getByRole('button', { name: 'Add LoRA', exact: true }).click(); + const dialog = page.getByRole('dialog', { name: 'Add LoRA', exact: true }); + await dialog.getByLabel('Adapter', { exact: true }).fill(adapter.model!.value); + await dialog.getByLabel('Revision', { exact: true }).fill(adapter.model!.revision!); + await dialog.getByLabel('Expected SHA-256', { exact: true }).fill(adapter.model!.sha256!); + await dialog.getByLabel('Weight name', { exact: true }).fill(adapter.weightName!); + await dialog.getByLabel('Adapter name', { exact: true }).fill(adapter.adapterName!); + await dialog.getByLabel('Scale', { exact: true }).fill(index === 0 ? '0.8' : '0.35'); + await dialog.getByLabel('Scale', { exact: true }).press('Tab'); + const replace = dialog.getByRole('switch', { name: 'Replace existing adapters', exact: true }); + await expect(replace).toHaveAttribute('aria-checked', index === 0 ? 'true' : 'false'); + if (index === 0) await replace.click(); + await expect(replace).toHaveAttribute('aria-checked', 'false'); + await dialog.getByRole('button', { name: 'Add adapter', exact: true }).click(); + await expect(dialog).toHaveCount(0); + } + const two = await snapshot(); + expect(two.ordered.map((entry) => Number(entry.values.scale))).toEqual([0.8, 0.35]); + expect(two.suppliers).toEqual(Array(3).fill(two.ordered[1]!.id)); + expect(two.ordered.every((entry) => entry.values.replace_existing === false)).toBe(true); + for (const [index, entry] of two.ordered.entries()) { + expect(entry.values.adapter_path).toEqual({ source: 'hub', value: adapters[index]!.model!.value }); + expect(entry.values.revision).toBe(adapters[index]!.model!.revision); + expect(entry.values.expected_sha256).toBe(adapters[index]!.model!.sha256); + expect(entry.values.weight_name).toBe(adapters[index]!.weightName); + expect(entry.values.adapter_name).toBe(adapters[index]!.adapterName); + } + const second = node.getByRole('region', { name: 'Adapter 2', exact: true }); + await second.getByLabel('Scale', { exact: true }).fill('0.355'); + await second.getByLabel('Scale', { exact: true }).press('Tab'); + await expect.poll(async () => Number((await snapshot()).ordered[1]!.values.scale)).toBe(0.355); + await second.getByLabel('Scale', { exact: true }).fill('0.35'); + await second.getByLabel('Scale', { exact: true }).press('Tab'); + await second.getByRole('button', { name: 'Move up', exact: true }).click(); + await expect.poll(async () => (await snapshot()).ordered).toEqual([...two.ordered].reverse()); + await node + .getByRole('region', { name: 'Adapter 1', exact: true }) + .getByRole('button', { name: 'Remove', exact: true }) + .click(); + await expect.poll(async () => (await snapshot()).ordered).toEqual(two.ordered.slice(0, 1)); + await page.locator('.react-flow__pane').click({ position: { x: 40, y: 140 } }); + await page.keyboard.press('Control+z'); + await expect.poll(async () => (await snapshot()).ordered).toEqual([...two.ordered].reverse()); + await page.reload({ waitUntil: 'domcontentloaded' }); + await expect(node).toBeVisible(); + await expect(node.getByRole('button', { name: 'Add LoRA', exact: true })).toBeEnabled(); + await expect.poll(async () => (await snapshot()).ordered).toEqual([...two.ordered].reverse()); + const restored = await snapshot(); + expect(restored.suppliers).toEqual(Array(3).fill(restored.ordered[1]!.id)); + expect(restored.core).toEqual(baseline.core); + expect(restored.materialWires).toEqual(baseline.materialWires); + expect(restored.profile).toEqual(baseline.profile); + expect(restored.supportsLora).toBe(baseline.supportsLora); + expect(restored.labels).toEqual(expectedLabels); + expect(mutations).toEqual([]); +} + +test('staged Fill inpaint preserves source and mask through ordered adapter editing and reload', async ({ page }) => { + await assertImagePipelineStageAdapterAuthoring(page, 'flux_fill_inpaint', 'Masked Object Replacement'); +}); +test('staged Fill outpaint preserves expanded canvas and mask through ordered adapter editing and reload', async ({ + page, +}) => { + await assertImagePipelineStageAdapterAuthoring(page, 'flux_fill_outpaint', 'Canvas Expansion'); +}); +test('staged Canny preserves control and latent geometry through ordered adapter editing and reload', async ({ + page, +}) => { + await assertImagePipelineStageAdapterAuthoring(page, 'flux_control_canny', 'Edge-Guided Architecture'); +}); +test('staged Depth preserves control and latent geometry through ordered adapter editing and reload', async ({ + page, +}) => { + await assertImagePipelineStageAdapterAuthoring(page, 'flux_depth_control', 'Depth-Guided Architecture'); +}); +test('staged Redux edit preserves conditioning and NONE-only adapter authoring through reload', async ({ page }) => { + await assertImagePipelineStageAdapterAuthoring(page, 'flux_redux_edit', 'Documentary Watchmaker'); +}); +test('staged Redux multi-reference preserves every source and ordered adapter authoring through reload', async ({ + page, +}) => { + await assertImagePipelineStageAdapterAuthoring(page, 'flux_redux_multi_reference', 'Rain Courier'); +}); + +test('selected Cosmos NONE policy preserves actual stages through adapter Add, edit, Move, recovery Remove, Undo and reload', async ({ + page, +}) => { + const template = STUDIO_TEMPLATES.find((entry) => entry.id === 'cosmos3_super_text_to_image')!; + const fixture = (await imageTemplateSchemas()).recipes.find((entry) => entry.id === template.id)!; + const denoise = fixture.starter.nodes.find((entry) => entry.operation.nodeType === 'denoise')!.node; + await assertSelectedAliasAdapterAuthoring(page, { + templateId: template.id, + profileId: template.executionSelection!.executionProfileId, + denoiseAction: denoise.action, + search: 'Cosmos 3 Super', + reviewTerms: acknowledgementRequiredForTemplate(template).length > 0, + embeddedGuidance: Number(denoise.params.guidance_scale!.value ?? denoise.params.guidance_scale!.default), + guiderEnabled: null, + }); + const setup = (await page.evaluate(() => window.__MODIFF_E2E__!.exportWorkflowGraph())).nodes.find( + (entry) => entry.data.label === 'Model Setup', + )!; + const node = page.getByTestId(`setup-node-${setup.id}`); + const owner = await page.evaluate(async () => + Object.values((await window.__MODIFF_E2E__!.exportAuthorizedApiGraph()).nodes).find( + (entry) => entry.action === 'ModelsLoader', + )!, + ); + expect(owner.params.offload_mode.value).toBe('none'); + expect(owner.params.auto_offload.value).toBe(false); + expect(owner.params.weight_loading_mode.value).toBe('cpu'); + expect(owner.params.trust_remote_code.value).toBe(false); + for (const name of ['quant_config', 'unet', 'vae', 'controlnet']) + expect(owner.params[name]).toEqual({ display: 'input' }); + const second = node.getByRole('region', { name: 'Adapter 2', exact: true }); + await node.getByLabel('Offload Mode', { exact: true }).click(); + await page.getByRole('option', { name: 'RAM/CPU group offload', exact: true }).click(); + await expect(node.getByRole('button', { name: 'Add LoRA', exact: true })).toBeDisabled(); + await expect(second.getByRole('button', { name: 'Move up', exact: true })).toBeDisabled(); + await expect(node).toContainText('effective offload_mode'); + await expect(second.getByRole('button', { name: 'Remove', exact: true })).toBeEnabled(); + await second.getByRole('button', { name: 'Remove', exact: true }).click(); + await expect(second).toHaveCount(0); + await page.locator('.react-flow__pane').click({ position: { x: 40, y: 140 } }); + await page.keyboard.press('Control+z'); + await expect(second).toBeVisible(); + await expect(second.getByRole('button', { name: 'Move up', exact: true })).toBeDisabled(); + await node.getByLabel('Offload Mode', { exact: true }).click(); + await page.getByRole('option', { name: 'Off', exact: true }).click(); + await expect(node.getByRole('button', { name: 'Add LoRA', exact: true })).toBeEnabled(); + await expect(second.getByRole('button', { name: 'Move up', exact: true })).toBeEnabled(); + const before = await page.evaluate(() => window.__MODIFF_E2E__!.exportWorkflowGraph()); + await withdrawSelectedImageAdapterPolicy(page, template.executionSelection!.executionProfileId); + await expect(node.getByRole('button', { name: 'Add LoRA', exact: true })).toBeDisabled(); + await expect(second.getByRole('button', { name: 'Move up', exact: true })).toBeDisabled(); + await expect(node).toContainText('The selected image model does not support LoRA.'); + expect(await page.evaluate(() => window.__MODIFF_E2E__!.exportWorkflowGraph())).toEqual(before); + await expect(second.getByRole('button', { name: 'Remove', exact: true })).toBeEnabled(); + await second.getByRole('button', { name: 'Remove', exact: true }).click(); + await expect(second).toHaveCount(0); + await page.locator('.react-flow__pane').click({ position: { x: 40, y: 140 } }); + await page.keyboard.press('Control+z'); + await expect(second).toBeVisible(); + expect(await page.evaluate(() => window.__MODIFF_E2E__!.exportWorkflowGraph())).toEqual(before); +}); + +type AudioTemplateSchemaFixture = ImageTemplateSchemaFixture & { + selections: Record< + string, + { pipelineClass: string; task: string; executionProfileId: string; repository: string; authoringRecipeId?: string } + >; +}; +let audioTemplateSchemaPromise: Promise; +async function audioTemplateSchemas(page: Page) { + const python = + process.env.MODIFF_BACKEND_PYTHON || + path.join(BACKEND_ROOT, '.venv', process.platform === 'win32' ? 'Scripts/python.exe' : 'bin/python'); + const script = path.join(CLIENT_ROOT, 'scripts', 'template-operation-fixtures.py'); + const command = process.platform === 'win32' ? python : path.join(BACKEND_ROOT, 'scripts', 'with-runtime-env.sh'); + const args = process.platform === 'win32' ? [script] : [python, script]; + const capture = (selections: Array<{ id: string; selection: object }>): Promise => + new Promise((resolve, reject) => { + const child = execFile( + command, + args, + { + cwd: BACKEND_ROOT, + env: { + ...process.env, + PYTHONDONTWRITEBYTECODE: '1', + CUDA_VISIBLE_DEVICES: '', + HF_HUB_OFFLINE: '1', + TRANSFORMERS_OFFLINE: '1', + }, + timeout: 90_000, + maxBuffer: 64 * 1024 * 1024, + }, + (error, stdout) => { + if (error) return reject(error); + try { + resolve(JSON.parse(stdout)); + } catch (failure) { + reject(failure); + } + }, + ); + child.stdin!.end(JSON.stringify(selections)); + }); + audioTemplateSchemaPromise ??= (async () => { + const initial = Object.entries(AUDIO_TEMPLATE_EXECUTION_SELECTIONS).map(([id, selection]) => ({ id, selection })); + // This first capture supplies current public authority only. Its default + // starter is not accepted as the selected alternate-template artifact. + const authority = await capture(initial); + // Parse real publication in its served browser environment. A Node import + // of useNodeStore would execute app.config's import.meta.env/window reads. + // This bootstrap creates no template and supplies no selected-route proof. + await page.goto(FRONTEND_URL, { waitUntil: 'domcontentloaded' }); + const parsed = await page.evaluate( + async ({ payload, ids }) => { + const storeModule: typeof import('../../../src/stores/useNodeStore') = await import( + new URL('/src/stores/useNodeStore.ts', location.origin).href + ); + const templateModule: typeof import('../../../src/studio/templates') = await import( + new URL('/src/studio/templates.ts', location.origin).href + ); + const selectionModule: typeof import('../../../src/studio/templateModelSelection') = await import( + new URL('/src/studio/templateModelSelection.ts', location.origin).href + ); + const capabilities = storeModule.parseStudioModelCapabilities(payload).capabilities; + const repositories = ids.map((id) => { + const template = templateModule.STUDIO_TEMPLATES.find((item) => item.id === id); + const model = template && selectionModule.resolveTemplateModelSelection(template, capabilities); + if (!model) throw new Error(`No current immutable audio template selection for ${id}.`); + return { id, repository: model.repository }; + }); + return { capabilities, repositories }; + }, + { payload: authority.publicPayload, ids: initial.map(({ id }) => id) }, + ); + const selections: AudioTemplateSchemaFixture['selections'] = {}; + const selected = initial.map(({ id, selection }) => { + const model = parsed.repositories.find((item) => item.id === id); + if (!model) throw new Error(`No current immutable audio template selection for ${id}.`); + selections[id] = { + pipelineClass: selection.pipelineClass, + task: selection.task, + executionProfileId: selection.executionProfileId, + repository: model.repository, + ...(selection.authoringRecipeId ? { authoringRecipeId: selection.authoringRecipeId } : {}), + }; + return { id, selection: { ...selection, repository: model.repository } }; + }); + return { ...(await capture(selected)), capabilities: parsed.capabilities, selections }; + })(); + return structuredClone(await audioTemplateSchemaPromise); +} + +async function openAudioStageTemplate( + page: Page, + templateId: (typeof STUDIO_TEMPLATES)[number]['id'], + viaHook = false, +) { + const mutations: string[] = []; + const starterRequests: Record[] = []; + page.on('request', (request) => { + if (request.method() === 'POST' && /\/(graph|execute|install|download)(?:[/?]|$)/u.test(request.url())) + mutations.push(request.url()); + }); + await page.setViewportSize({ width: 1920, height: 1200 }); + await ensureFrontend(); + await installMockRoutes(page); + const fixture = await audioTemplateSchemas(page); + const recipe = fixture.recipes.find((row) => row.id === templateId); + if (!recipe) throw new Error('The selected real audio producer fixture is missing.'); + await page.route('**/model_capabilities**', (route) => route.fulfill({ json: fixture.publicPayload })); + await page.route('**/nodes**', (route) => + route.fulfill({ + json: { instance: 'mock', nodes: { ...mockRegistry, ...fixture.registry } }, + }), + ); + await page.route('**/operations/starter', (route) => { + const selected: unknown = route.request().postDataJSON(); + if (!audioRecord(selected)) throw new Error('Audio starter request is not an object.'); + starterRequests.push(structuredClone(selected)); + const rows = fixture.recipes.filter((row) => { + const expected = fixture.selections[row.id]; + const entries = (value: Record) => + Object.entries(value).sort(([left], [right]) => left.localeCompare(right)); + return expected && JSON.stringify(entries(expected)) === JSON.stringify(entries(selected)); + }); + // Multiple authored templates can intentionally share this exact starter. + const starter = rows[0]?.starter; + if (rows.some((row) => JSON.stringify(row.starter) !== JSON.stringify(starter))) + throw new Error('Ambiguous selected audio starter fixture.'); + return route.fulfill({ + status: starter ? 200 : 400, + json: starter ?? { error: 'Unknown exact audio template execution selection' }, + }); + }); + // Replace the old reduced audio callback mock only for exact recorded inputs. + // These canonical signals/overlays are actual producer output, never a policy + // invented by this test. Unrelated callback families use the maintained mock. + await page.route('**/fields/action', async (route) => { + const request = route.request().postDataJSON(); + if (request.module !== 'modules.DiffusersAudio' || request.fn !== 'update_audio_contract') return route.fallback(); + const values = request.values ?? {}; + const signal = values.audio_contract; + const pipeline = values.pipeline_class ?? signal?.pipelineClass; + const task = values.mode ?? signal?.mode; + const repository = values.model_id?.value ?? signal?.repository; + const row = fixture.recipes.find( + (candidate) => + candidate.starter.pipelineClass === pipeline && + candidate.starter.task === task && + candidate.starter.nodes.some( + (entry) => + entry.node.action === 'LoadPipeline' && + entry.node.params.model_id?.value && + (entry.node.params.model_id.value as { value?: string }).value === repository, + ), + ); + if (!row) throw new Error('No exact recorded audio field-action fixture.'); + const node = row.starter.nodes.find((entry) => entry.node.action === request.action)?.node; + if (!node) throw new Error('Audio callback action is not recorded.'); + const canonical = node.params.audio_contract?.value as + | { + taskType: string; + fieldParams: Record; + } + | undefined; + if (!canonical) throw new Error('Recorded selected audio contract is absent.'); + const pipelineParam = node.params.pipeline; + const modeParam = node.params.mode; + if (request.action === 'LoadPipeline' && (!pipelineParam || !modeParam)) + throw new Error('Recorded audio loader pipeline/mode fields are absent.'); + const params = + request.action === 'LoadPipeline' + ? { + pipeline: { signal: pipelineParam!.signal }, + mode: { + options: modeParam!.options, + value: modeParam!.value, + }, + } + : canonical.fieldParams; + await page.evaluate( + ({ request, canonical, params }) => { + const scope = { + node: request.node, + workflow_tab_id: request.workflowTabId, + workflow_canvas_epoch: request.workflowCanvasEpoch, + workflow_form_epoch: request.workflowFormEpoch, + }; + for (const [field, value] of Object.entries(params)) + window.__MODIFF_E2E__!.sendWebsocketMessage({ + type: 'set_field_params', + ...scope, + field, + params: value, + }); + window.__MODIFF_E2E__!.sendWebsocketMessage({ + type: 'set_field_value', + ...scope, + fields: { + audio_contract: canonical, + ...(request.action === 'Generate' ? { task_type: canonical.taskType } : {}), + }, + }); + }, + { request, canonical, params }, + ); + return route.fulfill({ json: { error: false } }); + }); + const loader = recipe.starter.nodes.find((entry) => entry.operation.decomposition === 'loader')?.node; + const deviceParam = loader?.params.device; + if (!deviceParam) throw new Error('Recorded audio loader device field is absent.'); + const device = String(deviceParam.value ?? deviceParam.default); + if (device.startsWith('cpu')) + await page.route('**/runtime/status**', (route) => + route.fulfill({ + json: { + ready: true, + config: { hf_token_configured: false }, + packages: { torch: { available: true, cuda_available: false, cuda_device_count: 0, cuda_devices: [] } }, + }, + }), + ); + await page.goto(FRONTEND_URL, { waitUntil: 'domcontentloaded' }); + if (viaHook) { + await page.waitForFunction(() => Boolean(window.__MODIFF_E2E__)); + await page.evaluate((id) => window.__MODIFF_E2E__!.applyTemplate(id), templateId); + } else { + await openTemplateBrowser(page); + const browser = page.getByTestId('template-browser-dialog'); + await browser.getByTestId('template-browser-category-all').click(); + const template = STUDIO_TEMPLATES.find((entry) => entry.id === templateId)!; + await browser.getByTestId('template-browser-search').fill(template.label); + await browser.getByTestId(`template-browser-use-${templateId}`).click(); + await browser.getByTestId(`template-browser-create-${templateId}`).click(); + if (acknowledgementRequiredForTemplate(template).length) { + const terms = page.getByRole('dialog', { name: 'Review model terms', exact: true }); + await terms.getByRole('button', { name: 'I have reviewed and agree \u2014 Create graph', exact: true }).click(); + } + await expect(browser).toHaveCount(0); + } + await expect + .poll(() => + page.evaluate(() => { + const state = window.__MODIFF_E2E__!.getState(); + if ( + !state || + typeof state !== 'object' || + !('studio' in state) || + !state.studio || + typeof state.studio !== 'object' || + !('canvasTransition' in state.studio) + ) + throw new Error('Current Studio canvas transition is absent.'); + return state.studio.canvasTransition; + }), + ) + .toBeNull(); + await assertUnifiedWorkspace(page, 'expert'); + await page.getByRole('button', { name: 'Arrange graph', exact: true }).click(); + return { fixture, recipe, mutations, starterRequests }; +} + +type AudioApiSnapshot = Pick; +function audioRecord(value: unknown): value is Record { + return Boolean(value && typeof value === 'object' && !Array.isArray(value)); +} +function audioJsonValue(value: unknown, depth = 0): boolean { + if (depth > 64) return false; + if (value === null || typeof value === 'string' || typeof value === 'boolean') return true; + if (typeof value === 'number') return Number.isFinite(value); + if (Array.isArray(value)) return value.every((item) => audioJsonValue(item, depth + 1)); + return audioRecord(value) && Object.values(value).every((item) => audioJsonValue(item, depth + 1)); +} +function audioApiShape(value: unknown): value is AudioApiSnapshot { + return ( + audioRecord(value) && + audioRecord(value.nodes) && + Array.isArray(value.paths) && + value.paths.every((row) => Array.isArray(row) && row.every((id) => typeof id === 'string')) && + Object.values(value.nodes).every( + (node) => + audioRecord(node) && + typeof node.module === 'string' && + typeof node.action === 'string' && + audioRecord(node.params) && + Object.values(node.params).every( + (param) => + audioRecord(param) && + (param.value === undefined || audioJsonValue(param.value)) && + (param.sourceId === undefined || typeof param.sourceId === 'string') && + (param.sourceKey === undefined || typeof param.sourceKey === 'string') && + (param.spawn === undefined || typeof param.spawn === 'boolean') && + (param.display === undefined || + typeof param.display === 'string' || + (Array.isArray(param.display) && param.display.every((item) => typeof item === 'string'))), + ), + ) + ); +} +async function audioApiSnapshot(page: Page): Promise { + const api: unknown = await page.evaluate(() => { + window.__MODIFF_E2E__!.setWebsocketConnection({ sid: 'audio-authoring-contract', isConnected: true }); + return window.__MODIFF_E2E__!.exportAuthorizedApiGraph(); + }); + if (!audioApiShape(api)) throw new Error('Audio authoring API export has an invalid current shape.'); + return { nodes: api.nodes, paths: api.paths }; +} +function audioApiValue(node: ApiGraphExport['nodes'][string], field: string) { + const param = node.params[field]; + if (!param) throw new Error(`Audio authoring export lacks ${field}.`); + return param.value; +} +function audioApiPaths(api: AudioApiSnapshot) { + return api.paths + .map((path) => + path.map((id) => { + const node = api.nodes[id]; + if (!node) throw new Error('Audio execution path references a missing node.'); + return `${node.module}.${node.action}`; + }), + ) + .sort((left, right) => JSON.stringify(left).localeCompare(JSON.stringify(right))); +} +function audioConsumers(api: AudioApiSnapshot) { + const names = new Map(Object.entries(api.nodes).map(([id, node]) => [id, `${node.module}.${node.action}`])); + if (new Set(names.values()).size !== names.size) throw new Error('Ambiguous audio consumer identity.'); + return Object.fromEntries( + Object.entries(api.nodes).map(([id, node]) => [ + names.get(id), + { + ...node, + params: Object.fromEntries( + Object.entries(node.params).map(([field, param]) => { + if (param.sourceId && !names.has(param.sourceId)) throw new Error('Missing audio consumer supplier.'); + const value = { ...param, ...(param.sourceId ? { sourceId: names.get(param.sourceId)! } : {}) }; + // Playback is retained separately by grouped preview state and by + // ordinary ui_audio values; neither is a computational input. + if (param.display === 'ui_audio') delete value.value; + return [field, value]; + }), + ), + }, + ]), + ); +} +async function audioWorkflowNodeId(page: Page, label: string): Promise { + const graph: unknown = await page.evaluate(() => window.__MODIFF_E2E__!.exportWorkflowGraph()); + if (!audioRecord(graph) || !Array.isArray(graph.nodes)) throw new Error('Current workflow export is absent.'); + const matches = graph.nodes.filter( + (node) => audioRecord(node) && audioRecord(node.data) && node.data.label === label, + ); + if (matches.length !== 1 || !audioRecord(matches[0]) || typeof matches[0].id !== 'string') + throw new Error(`Expected one current ${label} node.`); + return matches[0].id; +} + +test('MiniMax real Audio Output preserves leaves and supports contained playback, Separate, Undo and reload', async ({ + page, +}) => { + const { mutations } = await openAudioStageTemplate(page, 'minimax_music3_chamber_pop'); + const baseline = await audioApiSnapshot(page); + expect( + Object.values(baseline.nodes) + .map((node) => `${node.module}.${node.action}`) + .sort(), + ).toEqual([ + 'modules.Audio.Export', + 'modules.ModularDiffusers.ModelsLoader', + 'modules.ModularDiffusers.WorkflowDecodeAudio', + 'modules.ModularDiffusers.WorkflowDenoise', + 'modules.ModularDiffusers.WorkflowSemanticGeneration', + ]); + const root = await audioWorkflowNodeId(page, 'Audio Output'); + const output = page.getByTestId(`output-node-${root}`); + await expect(output).toBeVisible(); + await expect(output.getByRole('button', { name: 'Audio Output options', exact: true })).toBeVisible(); + // Use CustomNode's actual document-backed resize handler, as the maintained + // native node resize tests do. No second store or test-only size mutation. + const grip = output.getByTestId('node-resize-grip'); + const nativeResize = async (dx: number, dy: number) => { + await grip.scrollIntoViewIfNeeded(); + await expect(grip).toBeVisible(); + const gripBounds = await grip.boundingBox(); + expect(gripBounds).not.toBeNull(); + expect( + await grip.evaluate((element) => { + const bounds = element.getBoundingClientRect(); + const hit = document.elementFromPoint(bounds.x + bounds.width / 2, bounds.y + bounds.height / 2); + return hit === element || (hit !== null && element.contains(hit)); + }), + ).toBe(true); + const start = { x: gripBounds!.x + gripBounds!.width / 2, y: gripBounds!.y + gripBounds!.height / 2 }; + await page.mouse.move(start.x, start.y); + await page.mouse.down(); + await page.mouse.move(start.x + dx, start.y + dy, { steps: 8 }); + await page.mouse.up(); + }; + const originalWidth = await output.evaluate((element) => element.clientWidth); + await nativeResize(180, 40); + await expect.poll(() => output.evaluate((element) => element.clientWidth)).toBeGreaterThan(originalWidth + 80); + await page.getByRole('button', { name: 'Arrange graph', exact: true }).click(); + await nativeResize(-600, 0); + // The declared node minimum includes its two border pixels. + await expect.poll(() => output.evaluate((element) => (element as HTMLElement).offsetWidth)).toBe(368); + // Synthetic PCM16 mono fixture for mocked player behavior, not trained output. + // Match the maintained deterministic WAV pattern without private Gallery media. + const sampleRate = 8000; + const samples = sampleRate * 2; + const source = Buffer.alloc(44 + samples * 2); + source.write('RIFF'); + source.writeUInt32LE(source.length - 8, 4); + source.write('WAVEfmt ', 8); + source.writeUInt32LE(16, 16); + source.writeUInt16LE(1, 20); + source.writeUInt16LE(1, 22); + source.writeUInt32LE(sampleRate, 24); + source.writeUInt32LE(sampleRate * 2, 28); + source.writeUInt16LE(2, 32); + source.writeUInt16LE(16, 34); + source.write('data', 36); + source.writeUInt32LE(samples * 2, 40); + for (let index = 0; index < samples; index++) + source.writeInt16LE(Math.round(Math.sin((index * Math.PI) / 20) * 1000), 44 + index * 2); + await page.route('**/cache/audio-stage-current.wav**', async (route) => + route.fulfill({ + contentType: 'audio/wav', + body: source, + }), + ); + const exporterId = Object.entries(baseline.nodes).find( + ([, node]) => node.module === 'modules.Audio' && node.action === 'Export', + )![0]; + await page.evaluate((node) => { + window.__MODIFF_E2E__!.startStudioRunForTest({ + clientRunId: 'mock-audio-playback', + runInputHash: 'mock-audio-playback-input', + taskId: 'mock-audio-playback-task', }); - await card.getByTestId('gallery-favorite-0').click(); - await expect.poll(() => favoritePatches).toBe(1); - const downloadPromise = page.waitForEvent('download'); - await card.getByRole('button', { name: `Download ${displayType}`, exact: true }).click(); - const download = await downloadPromise; - expect(download.suggestedFilename()).toMatch(new RegExp(`\\.${extension}$`)); - expect(download.suggestedFilename()).toMatch(/^modiff-uncaptured-model-/); - expect(await fs.readFile((await download.path())!, 'utf8')).toBe(rawContent); - if (displayType === 'text') { - const bytes = await fs.readFile((await download.path())!); - expect(bytes.length).toBe(46); - expect(createHash('sha256').update(bytes).digest('hex')).toBe( - '87b7128d0401ebcb7de32877ff7378a51b1f9067ac47392af6469f15cb488862', + window.__MODIFF_E2E__!.sendWebsocketMessage({ + type: 'update_value', + node, + key: 'preview', + data_type: 'url', + task_id: 'mock-audio-playback-task', + client_run_id: 'mock-audio-playback', + run_input_hash: 'mock-audio-playback-input', + value: ['/cache/audio-stage-current.wav'], + }); + }, exporterId); + const audio = output.locator('audio'); + await expect(audio).toHaveCount(1); + await expect.poll(() => audio.evaluate((element) => (element as HTMLAudioElement).readyState)).toBeGreaterThan(0); + await audio.scrollIntoViewIfNeeded(); + const containment = await output.evaluate((element) => { + const player = element.querySelector('audio')!; + const body = element.querySelector('[data-testid^="node-scroll-body-"]'); + if (!body || !body.contains(player)) throw new Error('The audio player is outside its editable node body.'); + const bounds = player.getBoundingClientRect(); + const inside = (parent: Element) => { + const rect = parent.getBoundingClientRect(); + return ( + bounds.left >= rect.left - 1 && + bounds.right <= rect.right + 1 && + bounds.top >= rect.top - 1 && + bounds.bottom <= rect.bottom + 1 ); + }; + const ancestors = []; + for (let parent = player.parentElement; parent && element.contains(parent); parent = parent.parentElement) { + ancestors.push({ name: parent.getAttribute('data-testid') ?? parent.tagName, containsPlayer: inside(parent) }); + if (parent === element) break; } - await gallery.getByTestId('gallery-view-inspect').click(); - await expect(gallery.getByTestId('gallery-inspect-view').getByTestId('gallery-output-text')).toHaveText(content); - await gallery.getByTestId('gallery-view-compare').click(); - await expect(gallery.getByTestId('gallery-compare-view').getByTestId('gallery-output-text')).toHaveText(content); - await gallery.getByTestId('gallery-view-grid').click(); - await gallery.getByRole('button', { name: new RegExp(`^Root \\| Recorded ${label} \\|`) }).click(); - await expect(page.getByTestId('media-viewer-text')).toHaveText(content); - await closeTextPreview(); - await gallery.getByTestId('gallery-refresh-history').click(); - await expect.poll(() => historyReads).toBeGreaterThan(1); - await expect(card.getByTestId('gallery-output-text')).toHaveText(content); - const restoredOutput = await page.evaluate(() => window.__MODIFF_E2E__!.getState().studio.outputs[0]); - expect(restoredOutput).toMatchObject({ - id: output.id, - taskId: output.taskId, - clientRunId: output.clientRunId, - runInputHash: output.runInputHash, - nodeId: 'preview', - fieldKey: 'preview', - displayType, - value, - favorite: true, - }); + return { + ready: Number.isFinite(player.duration) && player.duration > 0, + ownerContainsPlayer: inside(element), + editableBodyContainsPlayer: inside(body), + editableBodyOverflow: body.scrollWidth - body.clientWidth, + ancestors, + }; }); -} + expect(containment.ready).toBe(true); + expect(containment.ownerContainsPlayer).toBe(true); + expect(containment.editableBodyContainsPlayer).toBe(true); + expect(containment.editableBodyOverflow).toBeLessThanOrEqual(1); + expect(containment.ancestors.length).toBeGreaterThan(1); + expect(containment.ancestors.filter((ancestor) => !ancestor.containsPlayer)).toEqual([]); + await audio.evaluate(async (element) => { + const a = element as HTMLAudioElement; + await a.play(); + a.currentTime = Math.min(2, a.duration / 2); + a.pause(); + }); + await output.getByRole('button', { name: 'Audio actions', exact: true }).click(); + await page.getByRole('menuitem', { name: 'Playback 1.25\u00d7', exact: true }).click(); + expect(await audio.evaluate((element) => (element as HTMLAudioElement).playbackRate)).toBe(1.25); + await output.getByRole('button', { name: 'Audio actions', exact: true }).click(); + await page.getByRole('menuitem', { name: /^Download/u }).click(); + const download = page.getByTestId('media-export-dialog'); + await expect(download.getByLabel('Download format')).toBeVisible(); + await download.getByRole('button', { name: 'Cancel', exact: true }).click(); + await expect(download).toHaveCount(0); + const baselineConsumers = audioConsumers(await audioApiSnapshot(page)); + const baselinePaths = audioApiPaths(await audioApiSnapshot(page)); + await output.getByRole('button', { name: 'Audio Output options', exact: true }).click(); + await page.getByRole('menuitem', { name: 'Separate audio output stages', exact: true }).click(); + await expect(output).toHaveCount(0); + expect(audioConsumers(await audioApiSnapshot(page))).toEqual(baselineConsumers); + expect(audioApiPaths(await audioApiSnapshot(page))).toEqual(baselinePaths); + await expect(page.locator('audio')).toHaveCount(1); + await page.locator('.react-flow__pane').click({ position: { x: 40, y: 140 } }); + await page.keyboard.press('Control+z'); + await expect(output).toBeVisible(); + expect(audioConsumers(await audioApiSnapshot(page))).toEqual(baselineConsumers); + expect(audioApiPaths(await audioApiSnapshot(page))).toEqual(baselinePaths); + await expect(output.locator('audio')).toHaveCount(1); + await page.reload({ waitUntil: 'domcontentloaded' }); + await expect(page.getByTestId(`output-node-${root}`)).toBeVisible(); + expect(audioConsumers(await audioApiSnapshot(page))).toEqual(baselineConsumers); + expect(audioApiPaths(await audioApiSnapshot(page))).toEqual(baselinePaths); + await expect(page.getByTestId(`output-node-${root}`).locator('audio')).toHaveCount(1); + expect(mutations).toEqual([]); +}); + +test('ACE selected max-one audio setup keeps its row editable and Remove Undo reload preserves exact API', async ({ + page, +}) => { + const { fixture, mutations } = await openAudioStageTemplate(page, 'ace_step_chinese_new_year_lora'); + const populated = await audioApiSnapshot(page); + const root = await audioWorkflowNodeId(page, 'Model Setup'); + const setup = page.getByTestId(`setup-node-${root}`); + const add = setup.getByRole('button', { name: 'Add LoRA', exact: true }); + const owner = Object.values(populated.nodes).find( + (node) => node.module === 'modules.DiffusersAudio' && node.action === 'LoadPipeline', + )!; + const profile = fixture.capabilities + .find((capability) => capability.modelType === 'AceStepAudioPipeline')! + .executionProfiles!.find((entry) => entry.id === 'ace-step-audio:direct')!; + expect(profile.adapterAuthoring?.mediaKind).toBe('audio'); + expect(profile.adapterAuthoring?.maxOwnedAdapters).toBe(1); + expect(audioApiValue(owner, 'mode')).toBe('text_to_audio'); + // CNY keeps its own Runware base. Never use this adapter to claim an XL pair. + expect(audioApiValue(owner, 'model_id')).toEqual({ source: 'hub', value: 'Runware/acestep-v15-turbo-diffusers' }); + expect(audioApiValue(owner, 'revision')).toBe('be23effe449c5957947f3020fd63bee23c64abe4'); + await expect(add).toBeDisabled(); + await setup + .getByRole('region', { name: 'Adapter 1', exact: true }) + .getByRole('button', { name: 'Remove', exact: true }) + .click(); + await expect(add).toBeEnabled(); + const baseline = await audioApiSnapshot(page); + const specimen = STUDIO_TEMPLATES.find((entry) => entry.id === 'ace_step_chinese_new_year_lora')! + .workflowBlockSettings!.lora!; + await add.click(); + const dialog = page.getByRole('dialog', { name: 'Add LoRA', exact: true }); + await dialog.getByLabel('LoRA', { exact: true }).fill(specimen.model!.value); + await dialog.getByLabel('Revision', { exact: true }).fill(specimen.model!.revision!); + await dialog.getByLabel('Expected SHA-256', { exact: true }).fill(specimen.model!.sha256!); + await dialog.getByLabel('Weight name', { exact: true }).fill(specimen.weightName!); + await dialog.getByLabel('Adapter name', { exact: true }).fill('audio_authoring_specimen'); + await dialog.getByLabel('Strength', { exact: true }).fill('0.5'); + await dialog.getByLabel('Strength', { exact: true }).press('Tab'); + await dialog.getByRole('button', { name: 'Add adapter', exact: true }).click(); + await expect(dialog).toHaveCount(0); + await expect(add).toBeDisabled(); + const row = setup.getByRole('region', { name: 'Adapter 1', exact: true }); + await expect(row.getByLabel('Strength', { exact: true })).toBeEnabled(); + await expect(row.getByRole('button', { name: 'Move up', exact: true })).toBeDisabled(); + await expect(row.getByRole('button', { name: 'Move down', exact: true })).toBeDisabled(); + const adapter = async () => + Object.entries((await audioApiSnapshot(page)).nodes).find( + ([, node]) => node.module === 'modules.DiffusersAudio' && node.action === 'LoadAdapter', + ); + expect(audioApiValue((await adapter())![1], 'adapter_path')).toEqual({ source: 'hub', value: specimen.model!.value }); + expect(audioApiValue((await adapter())![1], 'revision')).toBe(specimen.model!.revision); + expect(audioApiValue((await adapter())![1], 'expected_sha256')).toBe(specimen.model!.sha256); + await row.getByLabel('Strength', { exact: true }).fill('0.55'); + await row.getByLabel('Strength', { exact: true }).press('Tab'); + await expect.poll(async () => Number(audioApiValue((await adapter())![1], 'scale'))).toBe(0.55); + const edited = await audioApiSnapshot(page); + // Replacement uses the real one-row dialog at capacity; it is not a second + // Add or a claim of different trained adapter bytes. + await row.getByRole('button', { name: 'Replace LoRA', exact: true }).click(); + const replaceDialog = page.getByRole('dialog', { name: 'Replace LoRA', exact: true }); + await expect(replaceDialog.getByLabel('LoRA', { exact: true })).toHaveValue(specimen.model!.value); + await expect(replaceDialog.getByLabel('Revision', { exact: true })).toHaveValue(specimen.model!.revision!); + await expect(replaceDialog.getByLabel('Expected SHA-256', { exact: true })).toHaveValue(specimen.model!.sha256!); + await replaceDialog.getByLabel('Adapter name', { exact: true }).fill('audio_authoring_replacement'); + await replaceDialog.getByRole('button', { name: 'Replace adapter', exact: true }).click(); + await expect(replaceDialog).toHaveCount(0); + await expect(add).toBeDisabled(); + await expect(row.getByLabel('Strength', { exact: true })).toBeEnabled(); + await expect + .poll(async () => audioApiValue((await adapter())![1], 'adapter_name')) + .toBe('audio_authoring_replacement'); + expect( + Object.values((await audioApiSnapshot(page)).nodes).filter((node) => node.action === 'LoadAdapter'), + ).toHaveLength(1); + const replaced = await audioApiSnapshot(page); + await row.getByRole('button', { name: 'Remove', exact: true }).click(); + await expect.poll(() => audioApiSnapshot(page)).toEqual(baseline); + await expect(add).toBeEnabled(); + await page.locator('.react-flow__pane').click({ position: { x: 40, y: 140 } }); + await page.keyboard.press('Control+z'); + await expect.poll(() => audioApiSnapshot(page)).toEqual(replaced); + await page.reload({ waitUntil: 'domcontentloaded' }); + await expect(page.getByTestId(`setup-node-${root}`)).toBeVisible(); + expect(await audioApiSnapshot(page)).toEqual(replaced); + expect(edited).not.toEqual(replaced); + expect(mutations).toEqual([]); +}); + +test('ACE audio variation hook keeps the current selected starter and task instead of legacy Auto authoring', async ({ + page, +}) => { + const { fixture, mutations, starterRequests } = await openAudioStageTemplate(page, 'ace_step_audio_variation', true); + const api = await audioApiSnapshot(page); + const selected = fixture.selections.ace_step_audio_variation; + if (!selected) throw new Error('The current audio variation selection is missing.'); + expect(starterRequests).toContainEqual(selected); + const loaders = Object.values(api.nodes).filter( + (node) => node.module === 'modules.DiffusersAudio' && node.action === 'LoadPipeline', + ); + const generators = Object.values(api.nodes).filter( + (node) => node.module === 'modules.DiffusersAudio' && node.action === 'Generate', + ); + expect(loaders).toHaveLength(1); + expect(generators).toHaveLength(1); + expect(audioApiValue(loaders[0]!, 'mode')).toBe('audio_variation'); + expect(audioApiValue(loaders[0]!, 'model_id')).toEqual({ source: 'hub', value: selected.repository }); + expect(audioApiValue(generators[0]!, 'task_type')).toBe('cover'); + expect(Object.values(api.nodes).some((node) => node.module === 'modules.Audio' && node.action === 'Load')).toBe(true); + await expect(page.getByTestId(`setup-node-${await audioWorkflowNodeId(page, 'Model Setup')}`)).toBeVisible(); + expect(mutations).toEqual([]); +}); + +test('aliased audio Model Setup renders human offload choices and preserves the selected raw value on reload', async ({ + page, +}) => { + const { mutations } = await openAudioStageTemplate(page, 'ace_step_text_to_audio'); + const root = await audioWorkflowNodeId(page, 'Model Setup'); + const setup = page.getByTestId(`setup-node-${root}`); + const offload = setup.getByRole('button', { name: 'Offload Mode', exact: true }); + if (!(await offload.isVisible())) await setup.getByRole('button', { name: 'Advanced', exact: true }).click(); + await expect(offload).toBeVisible(); + const before = await audioApiSnapshot(page); + const owners = Object.entries(before.nodes).filter( + ([, node]) => node.module === 'modules.DiffusersAudio' && node.action === 'LoadPipeline', + ); + expect(owners).toHaveLength(1); + const [ownerId, owner] = owners[0]!; + expect(audioApiValue(owner, 'device')).toMatch(/^cpu(?::0)?$/u); + expect(audioApiValue(owner, 'offload_mode')).toBe('none'); + expect(audioApiValue(owner, 'auto_offload')).toBe(false); + // Inspect the actual stored graph without bypassing the authorized export's + // CPU/offload consistency checks while this intentionally invalid choice is saved. + const stored = () => + page.evaluate(async () => { + const [{ useFlowStore }, { expandBlockGraphV2ForExecution }] = await Promise.all([ + import('/src/stores/useFlowStore.ts'), + import('/src/studio/blockRuntimeV2.ts'), + ]); + const flow = useFlowStore.getState(); + const graph = expandBlockGraphV2ForExecution(flow.nodes, flow.edges); + return { + nodes: Object.fromEntries( + graph.nodes.map((node) => [ + node.id, + { module: node.data.module, action: node.data.action, params: node.data.params }, + ]), + ), + edges: graph.edges, + }; + }); + const beforeStored = await stored(); + await offload.click(); + const choices = page.getByRole('listbox', { name: 'Offload Mode', exact: true }); + await expect(choices).toBeVisible(); + await expect(choices.getByRole('option', { name: 'auto_cpu', exact: true })).toHaveCount(0); + for (const label of [ + 'Off', + 'RAM/CPU model offload', + 'RAM/CPU sequential offload', + 'RAM/CPU group offload', + 'SSD group offload', + ]) + await expect(choices.getByRole('option', { name: label, exact: true })).toBeVisible(); + await choices.getByRole('option', { name: 'SSD group offload', exact: true }).click(); + await expect(offload).toHaveText('SSD group offload'); + const afterStored = await stored(); + expect(afterStored.nodes[ownerId]!.params.offload_mode!.value).toBe('group_disk'); + const restored = structuredClone(afterStored); + restored.nodes[ownerId]!.params.offload_mode = structuredClone(beforeStored.nodes[ownerId]!.params.offload_mode!); + expect(restored).toEqual(beforeStored); + await expect(audioApiSnapshot(page)).rejects.toThrow( + /Auto offload is disabled.*selected offload mode is group_disk/u, + ); + await page.reload({ waitUntil: 'domcontentloaded' }); + await expect(page.getByTestId(`setup-node-${root}`)).toBeVisible(); + expect(await stored()).toEqual(afterStored); + await setWorkflowResourceMode(page, 'expert'); + expect(await stored()).toEqual(afterStored); + await expect(offload).toBeVisible({ timeout: 30_000 }); + await expect(offload).toHaveText('SSD group offload'); + // Restore the original valid CPU setting through the same visible control. + // The original Auto flag is unchanged; no accelerator authority is fabricated. + await offload.click(); + await page.getByRole('option', { name: 'Off', exact: true }).click(); + await expect(offload).toHaveText('Off'); + expect(await stored()).toEqual(beforeStored); + expect(await audioApiSnapshot(page)).toEqual(before); + expect(mutations).toEqual([]); +}); diff --git a/tests/fixtures/ancillary-authoring.v1.json b/tests/fixtures/ancillary-authoring.v1.json new file mode 100644 index 00000000..0cc99223 --- /dev/null +++ b/tests/fixtures/ancillary-authoring.v1.json @@ -0,0 +1,7408 @@ +{ + "schemaVersion": 1, + "proofScope": "Actual static backend metadata only. Private declarations do not grant public readiness, runtime execution, model fit or Apply. Registry constructors were trapped during capture.", + "parents": [ + { + "selection": { + "authoringRecipeId": "flux3-klein:text-to-image:prompt-preview-authoring:v1", + "executionProfileId": "flux3-klein:modular", + "pipelineClass": "Flux3DistilledModularPipeline", + "task": "text_to_image" + }, + "rawParentJson": "{\n \"schemaVersion\": 1,\n \"canonicalizationVersion\": 1,\n \"id\": \"flux3-klein:text-to-image:prompt-preview-authoring:v1\",\n \"baseSpecId\": \"flux3-klein:modular:text-to-image:v1\",\n \"baseSpecContentHash\": \"studio-spec-v1-6697a7f5\",\n \"executionProfileIds\": [\n \"flux3-klein:modular\"\n ],\n \"roles\": [\n [\n \"models\",\n \"modules.ModularDiffusers.ModelsLoader\",\n -720,\n -80\n ],\n [\n \"prompt\",\n \"modules.ModularDiffusers.EncodePrompt\",\n -360,\n -240\n ],\n [\n \"denoise\",\n \"modules.ModularDiffusers.Denoise\",\n 80,\n -80\n ],\n [\n \"decode\",\n \"modules.ModularDiffusers.DecodeLatents\",\n 440,\n -80\n ],\n [\n \"preview\",\n \"modules.Image.Preview\",\n 800,\n -80\n ]\n ],\n \"edges\": [\n [\n \"models\",\n \"text_encoders\",\n \"prompt\",\n \"text_encoders\"\n ],\n [\n \"models\",\n \"unet_out\",\n \"denoise\",\n \"unet\"\n ],\n [\n \"models\",\n \"scheduler\",\n \"denoise\",\n \"scheduler\"\n ],\n [\n \"models\",\n \"vae_out\",\n \"decode\",\n \"vae\"\n ],\n [\n \"prompt\",\n \"embeddings\",\n \"denoise\",\n \"embeddings\"\n ],\n [\n \"denoise\",\n \"latents\",\n \"decode\",\n \"latents\"\n ],\n [\n \"decode\",\n \"images\",\n \"preview\",\n \"image\"\n ]\n ],\n \"bindings\": [\n [\n \"models\",\n \"model_type\",\n \"pipelineClass\"\n ],\n [\n \"models\",\n \"repo_id\",\n \"artifact\"\n ],\n [\n \"models\",\n \"revision\",\n \"defaultRevision\"\n ],\n [\n \"models\",\n \"dtype\",\n \"dtype\"\n ],\n [\n \"models\",\n \"device\",\n \"device\"\n ],\n [\n \"models\",\n \"auto_offload\",\n \"autoOffload\"\n ],\n [\n \"models\",\n \"offload_mode\",\n \"offloadMode\"\n ],\n [\n \"models\",\n \"trust_remote_code\",\n \"false\"\n ],\n [\n \"prompt\",\n \"prompt\",\n \"prompt\"\n ],\n [\n \"denoise\",\n \"width\",\n \"width\"\n ],\n [\n \"denoise\",\n \"height\",\n \"height\"\n ],\n [\n \"denoise\",\n \"seed\",\n \"seed\"\n ],\n [\n \"denoise\",\n \"num_inference_steps\",\n \"steps\"\n ],\n [\n \"prompt\",\n \"max_sequence_length\",\n \"maxSequenceLength\"\n ],\n [\n \"models\",\n \"weight_format\",\n \"weightFormat\"\n ]\n ],\n \"initialValues\": [],\n \"ancillaryOperations\": [\n {\n \"schemaVersion\": 1,\n \"id\": \"flux3-klein:text-to-image:prompt-preview-authoring:v1:preview\",\n \"parent\": {\n \"authoringRecipeId\": \"flux3-klein:text-to-image:prompt-preview-authoring:v1\",\n \"baseSpecId\": \"flux3-klein:modular:text-to-image:v1\",\n \"baseSpecContentHash\": \"studio-spec-v1-6697a7f5\",\n \"executionProfileId\": \"flux3-klein:modular\",\n \"pipelineClass\": \"Flux3DistilledModularPipeline\",\n \"task\": \"text_to_image\"\n },\n \"executionPurpose\": \"explicit_preview\",\n \"roles\": [\n [\n \"provider\",\n \"modules.HuggingFaceTransformers.LoadImageTextToTextModel\",\n -720,\n -400\n ],\n [\n \"proposal\",\n \"modules.HuggingFaceTransformers.GenerateImageVideoText\",\n -360,\n -400\n ]\n ],\n \"edges\": [\n [\n \"provider\",\n \"model\",\n \"proposal\",\n \"model\"\n ]\n ],\n \"bindings\": {\n \"owner\": {\n \"role\": \"prompt\",\n \"promptField\": \"prompt\",\n \"layoutField\": \"layout_conditioning\",\n \"referenceSource\": null\n },\n \"request\": {\n \"role\": \"proposal\",\n \"promptField\": \"prompt\",\n \"layoutField\": \"layout_conditioning\",\n \"imagesField\": \"images\"\n },\n \"output\": {\n \"role\": \"proposal\",\n \"field\": \"proposal_summary\"\n }\n },\n \"initialValues\": [\n [\n \"proposal\",\n \"operation\",\n \"enhance_prompt\"\n ]\n ],\n \"adapter\": {\n \"id\": \"transformers-prompt-enhancement-v1\",\n \"declarationSha256\": \"sha256:18a83a6eddaa2944ae13e80971a068346a72bb07fa0759cd1adbb2ccbb8226fc\"\n },\n \"sourceRegions\": false,\n \"contentHash\": \"studio-ancillary-v1-73928438\"\n }\n ],\n \"contentHash\": \"studio-authoring-v1-fc3527f1\"\n}\n", + "registry": { + "modules.ModularDiffusers.ModelsLoader": { + "module": "modules.ModularDiffusers", + "action": "ModelsLoader", + "type": "custom", + "label": "Load Models", + "category": "loader", + "description": "", + "resizable": true, + "skipParamsCheck": true, + "style": {}, + "params": { + "model_type": { + "label": "Pipeline Type", + "type": "string", + "options": { + "": { + "schemaVersion": 1, + "value": "", + "label": "", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "DummyCustomPipeline": { + "schemaVersion": 1, + "value": "DummyCustomPipeline", + "label": "Custom", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "StableDiffusionXLModularPipeline": { + "schemaVersion": 1, + "value": "StableDiffusionXLModularPipeline", + "label": "Stable Diffusion XL", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "QwenImageModularPipeline": { + "schemaVersion": 1, + "value": "QwenImageModularPipeline", + "label": "Qwen-Image-2512", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "QwenImageEditModularPipeline": { + "schemaVersion": 1, + "value": "QwenImageEditModularPipeline", + "label": "Qwen-Image-Edit", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "QwenImageEditPlusModularPipeline": { + "schemaVersion": 1, + "value": "QwenImageEditPlusModularPipeline", + "label": "Qwen-Image-Edit-2511", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "QwenImageLayeredModularPipeline": { + "schemaVersion": 1, + "value": "QwenImageLayeredModularPipeline", + "label": "Qwen-Image-Layered", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "FluxModularPipeline": { + "schemaVersion": 1, + "value": "FluxModularPipeline", + "label": "Flux", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "FluxKontextModularPipeline": { + "schemaVersion": 1, + "value": "FluxKontextModularPipeline", + "label": "Flux Kontext", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "Flux2ModularPipeline": { + "schemaVersion": 1, + "value": "Flux2ModularPipeline", + "label": "Flux 2", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "Flux2KleinModularPipeline": { + "schemaVersion": 1, + "value": "Flux2KleinModularPipeline", + "label": "Flux 2 Klein Distilled", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "Flux2KleinBaseModularPipeline": { + "schemaVersion": 1, + "value": "Flux2KleinBaseModularPipeline", + "label": "Flux 2 Klein Base", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "Flux3ModularPipeline": { + "schemaVersion": 1, + "value": "Flux3ModularPipeline", + "label": "FLUX 3 Image Klein Base", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "Flux3DistilledModularPipeline": { + "schemaVersion": 1, + "value": "Flux3DistilledModularPipeline", + "label": "FLUX 3 Image Klein", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "ZImageModularPipeline": { + "schemaVersion": 1, + "value": "ZImageModularPipeline", + "label": "Z-Image", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "WanModularPipeline": { + "schemaVersion": 1, + "value": "WanModularPipeline", + "label": "WAN2 T2V", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "WanImage2VideoModularPipeline": { + "schemaVersion": 1, + "value": "WanImage2VideoModularPipeline", + "label": "WAN2 I2V", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "MiniMaxMusic3ModularPipeline": { + "schemaVersion": 1, + "value": "MiniMaxMusic3ModularPipeline", + "label": "MiniMax Music 3", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "MiniMaxH3ModularPipeline": { + "schemaVersion": 1, + "value": "MiniMaxH3ModularPipeline", + "label": "MiniMax H3", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "AnimaModularPipeline": { + "schemaVersion": 1, + "value": "AnimaModularPipeline", + "label": "Anima", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "ErnieImageModularPipeline": { + "schemaVersion": 1, + "value": "ErnieImageModularPipeline", + "label": "ERNIE Image Turbo", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "HeliosModularPipeline": { + "schemaVersion": 1, + "value": "HeliosModularPipeline", + "label": "Helios", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "HeliosPyramidModularPipeline": { + "schemaVersion": 1, + "value": "HeliosPyramidModularPipeline", + "label": "Helios Pyramid", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "HeliosPyramidDistilledModularPipeline": { + "schemaVersion": 1, + "value": "HeliosPyramidDistilledModularPipeline", + "label": "Helios Pyramid Distilled", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "HunyuanVideo15ModularPipeline": { + "schemaVersion": 1, + "value": "HunyuanVideo15ModularPipeline", + "label": "HunyuanVideo 1.5", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "WanAnimate2ModularPipeline": { + "schemaVersion": 1, + "value": "WanAnimate2ModularPipeline", + "label": "Wan Animate 2", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "WanAnimate2DistilledModularPipeline": { + "schemaVersion": 1, + "value": "WanAnimate2DistilledModularPipeline", + "label": "Wan Animate 2 Distilled", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "Cosmos3OmniModularPipeline": { + "schemaVersion": 1, + "value": "Cosmos3OmniModularPipeline", + "label": "Cosmos 3 Nano", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "Cosmos3DistilledModularPipeline": { + "schemaVersion": 1, + "value": "Cosmos3DistilledModularPipeline", + "label": "Cosmos 3 Distilled", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "Ideogram4ModularPipeline": { + "schemaVersion": 1, + "value": "Ideogram4ModularPipeline", + "label": "Ideogram 4 (Contract only)", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "Krea2ModularPipeline": { + "schemaVersion": 1, + "value": "Krea2ModularPipeline", + "label": "Krea 2 (Contract only)", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "Krea2TurboModularPipeline": { + "schemaVersion": 1, + "value": "Krea2TurboModularPipeline", + "label": "Krea 2 Turbo (Contract only)", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "StableDiffusion3ModularPipeline": { + "schemaVersion": 1, + "value": "StableDiffusion3ModularPipeline", + "label": "Stable Diffusion 3 (Contract only)", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "LTX25ModularPipeline": { + "schemaVersion": 1, + "value": "LTX25ModularPipeline", + "label": "LTX-2.5 (Contract only)", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + } + }, + "onChange": "set_filters", + "description": "Selects the Modular Diffusers pipeline class. This filters compatible checkpoints and publishes the component contract used by connected nodes; it is not the model checkpoint itself." + }, + "repo_id": { + "label": "Repository ID", + "display": "modelselect", + "type": "string", + "value": { + "source": "hub", + "value": "" + }, + "fieldOptions": { + "noValidation": true, + "sources": ["hub", "local"], + "filter": { + "hub": { + "className": [""] + }, + "local": { + "className": [""] + } + } + }, + "onChange": "refresh_pipeline_identity" + }, + "reviewed_variant": { + "label": "Model", + "type": "string", + "value": "", + "options": [], + "hidden": true, + "fieldOptions": { + "controlTier": "essential" + }, + "description": "Select an immutable, reviewed checkpoint for this exact Modular Diffusers pipeline family. Changing it does not replace the workflow graph or reset its parameters." + }, + "dtype": { + "label": "dtype", + "options": [ + { + "schemaVersion": 1, + "value": "float32", + "label": "float32", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "float16", + "label": "float16", + "compatibility": "incompatible", + "availability": "unavailable", + "installationState": "unavailable", + "disabledReason": "float16 is not supported by the active runtime." + }, + { + "schemaVersion": 1, + "value": "bfloat16", + "label": "bfloat16", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + } + ], + "value": "float16" + }, + "device": { + "label": "Device", + "type": "string", + "value": "cpu:0", + "options": { + "cpu:0": { + "schemaVersion": 1, + "value": "cpu:0", + "label": "cpu:0", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "cpu": { + "schemaVersion": 1, + "value": "cpu", + "label": "cpu", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + } + } + }, + "attention_backend": { + "label": "Attention Backend", + "type": "string", + "default": "inherit", + "options": [ + { + "schemaVersion": 1, + "value": "inherit", + "label": "inherit", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "auto", + "label": "auto", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "native", + "label": "native", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "_native_math", + "label": "_native_math", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + } + ], + "description": "Inherit preserves existing native component defaults; explicit choices use the ordinary Diffusers attention API." + }, + "vae_slicing": { + "label": "VAE Slicing", + "type": "boolean", + "default": null, + "hidden": true, + "description": "An unset policy preserves the native VAE configuration; templates may bind an explicit boolean." + }, + "vae_tiling": { + "label": "VAE Tiling", + "type": "boolean", + "default": null, + "hidden": true, + "description": "An unset policy preserves the native VAE configuration; templates may bind an explicit boolean." + }, + "trust_remote_code": { + "label": "Trust Remote Code", + "type": "boolean", + "value": false, + "description": "Repository code execution is disabled; keep this off for contract preview.", + "onChange": "refresh_pipeline_identity" + }, + "revision": { + "label": "Revision", + "type": "string", + "value": "", + "description": "Required exact 40-character commit hash for Hub custom contracts.", + "onChange": "refresh_pipeline_identity" + }, + "workflow_id": { + "label": "Reviewed Workflow", + "type": "string", + "value": "", + "hidden": true, + "description": "Exact reviewed component partition selected by a first-party Cluster Node." + }, + "modiff_pipeline_identity": { + "label": "Custom Pipeline Identity", + "type": "object", + "value": null, + "hidden": true + }, + "refresh_pipeline_identity_button": { + "label": "Review and Refresh Custom Contract", + "display": "ui_button", + "value": false, + "hidden": true, + "onChange": "refresh_pipeline_identity" + }, + "auto_offload": { + "label": "Enable Auto Offload", + "type": "boolean", + "value": true + }, + "offload_mode": { + "label": "Offload Mode", + "type": "string", + "options": [ + { + "schemaVersion": 1, + "value": "auto_cpu", + "label": "auto_cpu", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "none", + "label": "none", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "model_cpu", + "label": "model_cpu", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "group_cpu", + "label": "group_cpu", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "group_disk", + "label": "group_disk", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + } + ], + "value": "model_cpu", + "default": "model_cpu" + }, + "weight_loading_mode": { + "label": "Weight Loading", + "type": "string", + "default": "cpu", + "options": [ + { + "schemaVersion": 1, + "value": "cpu", + "label": "cpu", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "cuda", + "label": "cuda", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + } + ], + "fieldOptions": { + "controlTier": "advanced" + }, + "description": "Load weights on CPU or CUDA before disk offload. CUDA loading needs room for a complete component and is available only for supported models." + }, + "weight_format": { + "label": "Weight Format", + "type": "string", + "default": "native", + "options": [ + { + "schemaVersion": 1, + "value": "native", + "label": "native", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + } + ], + "hidden": true, + "fieldOptions": { + "controlTier": "advanced" + }, + "description": "Select a backend-declared immutable component format. Missing reviewed files must be installed through Model Manager." + }, + "unet": { + "label": "Denoise Model", + "display": "input", + "type": "diffusers_auto_model" + }, + "vae": { + "label": "VAE", + "display": "input", + "type": "diffusers_auto_model" + }, + "lora_list": { + "label": "Lora", + "display": "input", + "type": "custom_lora" + }, + "text_encoders": { + "label": "Text Encoders", + "display": "output", + "type": "diffusers_auto_models", + "signal": { + "direction": "output", + "origin": "model_type", + "value": "" + }, + "connectionRole": "text_encoders" + }, + "unet_out": { + "label": "Denoise Model", + "display": "output", + "type": "diffusers_auto_model", + "signal": { + "direction": "output", + "origin": "model_type", + "value": "" + }, + "connectionRole": "denoiser" + }, + "vae_out": { + "label": "VAE", + "display": "output", + "type": "diffusers_auto_model", + "signal": { + "direction": "output", + "origin": "model_type", + "value": "" + }, + "connectionRole": "vae" + }, + "scheduler": { + "label": "Scheduler", + "display": "output", + "type": "diffusers_auto_model", + "signal": { + "direction": "output", + "origin": "model_type", + "value": "" + }, + "connectionRole": "scheduler" + }, + "image_encoder": { + "label": "Image Encoder", + "display": "output", + "type": "diffusers_auto_model", + "signal": { + "direction": "output", + "origin": "model_type", + "value": "" + }, + "connectionRole": "image_encoder" + }, + "pipeline_components": { + "label": "Pipeline Components", + "display": "output", + "type": "diffusers_modular_pipeline_components", + "signal": { + "direction": "output", + "origin": "model_type", + "value": "" + }, + "connectionRole": "pipeline_components" + }, + "quant_config": { + "label": "Quant Config", + "display": "input", + "type": "quant_config" + } + }, + "time": [0, 0, 0], + "memory": [0, 0, 0], + "cache": false + }, + "modules.ModularDiffusers.EncodePrompt": { + "module": "modules.ModularDiffusers", + "action": "EncodePrompt", + "type": "custom", + "label": "Encode Prompt", + "category": "embedding", + "description": "", + "resizable": true, + "skipParamsCheck": true, + "style": {}, + "params": { + "pipeline_components": { + "label": "Pipeline Components", + "type": "diffusers_modular_pipeline_components", + "display": "input", + "required": false, + "hidden": true, + "onSignal": "update_node", + "description": "Optional Models Loader components for the reviewed Qwen text-to-image stages.", + "signalCompatibility": { + "required": true, + "role": "pipeline_components", + "values": { + "QwenImageModularPipeline": ["text_encoder"] + } + } + }, + "text_encoders": { + "label": "Text Encoders *", + "type": "diffusers_auto_models", + "display": "input", + "signalCompatibility": { + "role": "text_encoders" + } + }, + "prompt_input": { + "label": "Prompt Input", + "type": "string", + "display": "input", + "description": "Optional connected prompt. When connected, this replaces the inline Prompt value." + }, + "guider": { + "label": "Guider", + "type": "custom_guider", + "display": "input", + "hidden": true, + "description": "Shared Diffusers guidance used by prompt encoding and denoising when the selected pipeline supports it." + }, + "layout_reference_summary": { + "label": "Bound Reference Summary", + "type": "string", + "display": "output", + "hidden": true, + "description": "Display-only ordered reference identities and actual preprocessing sizes from the current encoder cache." + }, + "prompt": { + "label": "Prompt *", + "type": "string", + "display": "textarea", + "default": "" + }, + "max_sequence_length": { + "label": "Maximum Sequence Length", + "type": "int", + "default": 8192, + "min": 1, + "max": 8192, + "step": 1 + }, + "text_encoder_out_layers": { + "label": "Text Encoder Layers", + "type": "int", + "display": "select", + "default": [4, 8, 12, 16, 20, 24, 28, 32], + "options": [ + { + "schemaVersion": 1, + "value": "0", + "label": "0", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "1", + "label": "1", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "2", + "label": "2", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "3", + "label": "3", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "4", + "label": "4", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "5", + "label": "5", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "6", + "label": "6", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "7", + "label": "7", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "8", + "label": "8", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "9", + "label": "9", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "10", + "label": "10", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "11", + "label": "11", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "12", + "label": "12", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "13", + "label": "13", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "14", + "label": "14", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "15", + "label": "15", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "16", + "label": "16", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "17", + "label": "17", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "18", + "label": "18", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "19", + "label": "19", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "20", + "label": "20", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "21", + "label": "21", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "22", + "label": "22", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "23", + "label": "23", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "24", + "label": "24", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "25", + "label": "25", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "26", + "label": "26", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "27", + "label": "27", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "28", + "label": "28", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "29", + "label": "29", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "30", + "label": "30", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "31", + "label": "31", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "32", + "label": "32", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + } + ], + "fieldOptions": { + "multiple": true, + "tupleValue": true, + "tupleLength": 8 + } + }, + "embeddings": { + "label": "Text Embeddings", + "type": "embeddings", + "display": "output" + }, + "doc": { + "label": "Doc", + "type": "string", + "display": "output" + }, + "layout_conditioning": { + "label": "Layout Conditioning", + "type": "layout_conditioning", + "display": "layout", + "fieldOptions": { + "layoutConditioning": { + "schemaVersion": 2, + "sourceRegions": false, + "supportsBoundSourceRegions": true + } + }, + "default": null + }, + "reference_binding": { + "label": "Reference Binding", + "type": "reference_conditioning", + "display": "input", + "fieldOptions": { + "referenceBinding": { + "schemaVersion": 1, + "maxReferences": 10 + } + }, + "default": null + } + }, + "time": [0, 0, 0], + "memory": [0, 0, 0], + "cache": false + }, + "modules.ModularDiffusers.Denoise": { + "module": "modules.ModularDiffusers", + "action": "Denoise", + "type": "custom", + "label": "Denoise", + "category": "sampler", + "description": "", + "resizable": true, + "skipParamsCheck": true, + "style": {}, + "params": { + "pipeline_components": { + "label": "Pipeline Components", + "type": "diffusers_modular_pipeline_components", + "display": "input", + "required": false, + "hidden": true, + "onSignal": [ + "update_node", + { + "action": "signal", + "target": "guider" + }, + { + "action": "signal", + "target": "controlnet_bundle" + } + ], + "description": "Optional Models Loader components for the reviewed Qwen text-to-image stages.", + "signalCompatibility": { + "required": true, + "role": "pipeline_components", + "values": { + "QwenImageModularPipeline": ["denoise"] + } + } + }, + "unet": { + "label": "Denoise Model *", + "type": "diffusers_auto_model", + "display": "input", + "signalCompatibility": { + "role": "denoiser" + } + }, + "embeddings": { + "label": "Text Embeddings *", + "type": "embeddings", + "display": "input" + }, + "width": { + "label": "Width", + "type": "int", + "default": 1024, + "min": 64, + "step": 16 + }, + "height": { + "label": "Height", + "type": "int", + "default": 1024, + "min": 64, + "step": 16 + }, + "seed": { + "label": "Seed", + "type": "int", + "display": "random", + "default": 0, + "min": 0, + "max": 4294967295 + }, + "num_inference_steps": { + "label": "Steps", + "type": "int", + "display": "slider", + "default": 16, + "min": 1, + "max": 100 + }, + "num_images_per_prompt": { + "label": "Images Per Prompt", + "type": "int", + "default": 1, + "min": 1, + "max": 8, + "step": 1 + }, + "image_cond_latents": { + "label": "Reference Latents", + "type": "latents", + "display": "input" + }, + "scheduler": { + "label": "Scheduler *", + "type": "diffusers_auto_model", + "display": "input", + "signalCompatibility": { + "role": "scheduler" + } + }, + "latents": { + "label": "Latents", + "type": "latents", + "display": "output" + }, + "doc": { + "label": "Doc", + "type": "string", + "display": "output" + }, + "reference_binding": { + "label": "Reference Binding", + "type": "reference_conditioning", + "display": "input", + "fieldOptions": { + "referenceBinding": { + "schemaVersion": 1, + "maxReferences": 10 + } + }, + "default": null + } + }, + "time": [0, 0, 0], + "memory": [0, 0, 0], + "cache": false + }, + "modules.ModularDiffusers.DecodeLatents": { + "module": "modules.ModularDiffusers", + "action": "DecodeLatents", + "type": "custom", + "label": "Decode Latents", + "category": "sampler", + "description": "", + "resizable": true, + "skipParamsCheck": true, + "style": {}, + "params": { + "pipeline_components": { + "label": "Pipeline Components", + "type": "diffusers_modular_pipeline_components", + "display": "input", + "required": false, + "hidden": true, + "onSignal": "update_node", + "description": "Optional Models Loader components for the reviewed Qwen text-to-image stages.", + "signalCompatibility": { + "required": true, + "role": "pipeline_components", + "values": { + "QwenImageModularPipeline": ["decoder"] + } + } + }, + "vae": { + "label": "VAE *", + "type": "diffusers_auto_model", + "display": "input", + "signalCompatibility": { + "role": "vae" + } + }, + "latents": { + "label": "Latents *", + "type": "latents", + "display": "input" + }, + "images": { + "label": "Images", + "type": "image", + "display": "output" + }, + "doc": { + "label": "Doc", + "type": "string", + "display": "output" + } + }, + "time": [0, 0, 0], + "memory": [0, 0, 0], + "cache": false + }, + "modules.Image.Preview": { + "module": "modules.Image", + "action": "Preview", + "type": "custom", + "label": "Preview Image", + "category": "image", + "description": "Preview an image", + "resizable": true, + "skipParamsCheck": false, + "style": {}, + "params": { + "vae": { + "type": "pipeline", + "display": "input", + "label": "VAE" + }, + "device": { + "type": "string", + "default": "cpu:0", + "options": { + "cpu:0": { + "schemaVersion": 1, + "value": "cpu:0", + "label": "cpu:0", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "cpu": { + "schemaVersion": 1, + "value": "cpu", + "label": "cpu", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + } + } + }, + "image": { + "type": ["image", "latent"], + "display": "input", + "onChange": { + "action": "show", + "data": { + "true": ["vae", "device"], + "false": [] + }, + "condition": { + "type": "latent" + } + } + }, + "preview": { + "display": "ui_image", + "type": "url", + "dataSource": "output" + }, + "output": { + "type": "image", + "display": "output", + "label": "All images" + }, + "export": { + "type": "str", + "default": "0", + "description": "Export the image at the given index. Leave empty to export all images." + }, + "filtered": { + "type": "image", + "display": "output", + "label": "Selected image" + } + }, + "time": [0, 0, 0], + "memory": [0, 0, 0], + "cache": false + }, + "modules.HuggingFaceTransformers.LoadImageTextToTextModel": { + "module": "modules.HuggingFaceTransformers", + "action": "LoadImageTextToTextModel", + "type": "custom", + "label": "Load Image/Video-to-Text Model", + "category": "Hugging Face Transformers", + "description": "Load an immutable local-only image/video-to-text model and processor.", + "resizable": true, + "skipParamsCheck": false, + "style": {}, + "params": { + "model": { + "label": "Model", + "display": "output", + "type": "transformers_image_text_to_text" + }, + "pipeline_class": { + "label": "Execution Class", + "type": "string", + "default": "AutoModelForImageTextToText", + "hidden": true + }, + "model_id": { + "label": "Model", + "display": "modelselect", + "type": "string", + "fieldOptions": { + "noValidation": true, + "sources": ["hub", "local"] + } + }, + "revision": { + "label": "Exact Hub Commit", + "type": "string", + "default": "" + }, + "dtype": { + "label": "DType", + "type": "string", + "options": [ + { + "schemaVersion": 1, + "value": "float32", + "label": "float32", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "float16", + "label": "float16", + "compatibility": "incompatible", + "availability": "unavailable", + "installationState": "unavailable", + "disabledReason": "float16 is not supported by the active runtime." + }, + { + "schemaVersion": 1, + "value": "bfloat16", + "label": "bfloat16", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + } + ], + "default": "float32" + }, + "device": { + "label": "Device", + "type": "string", + "options": { + "cpu:0": { + "schemaVersion": 1, + "value": "cpu:0", + "label": "cpu:0", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "cpu": { + "schemaVersion": 1, + "value": "cpu", + "label": "cpu", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + } + }, + "default": "cpu:0" + }, + "receipt": { + "label": "Model Receipt", + "display": "output", + "type": "object" + } + }, + "time": [0, 0, 0], + "memory": [0, 0, 0], + "cache": false + }, + "modules.HuggingFaceTransformers.GenerateImageVideoText": { + "module": "modules.HuggingFaceTransformers", + "action": "GenerateImageVideoText", + "type": "custom", + "label": "Generate Image/Video Text", + "category": "Hugging Face Transformers", + "description": "Generate bounded text from bounded in-memory images or video frames.", + "resizable": true, + "skipParamsCheck": false, + "style": {}, + "params": { + "model": { + "label": "Model", + "display": "input", + "type": "transformers_image_text_to_text" + }, + "prompt": { + "label": "Prompt", + "type": "text", + "default": "" + }, + "operation": { + "label": "Operation", + "type": "string", + "options": [ + { + "schemaVersion": 1, + "value": "standard", + "label": "standard", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "enhance_prompt", + "label": "enhance_prompt", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + } + ], + "default": "standard", + "hidden": true + }, + "enhancement_max_new_tokens": { + "label": "Enhancement Token Limit", + "type": "int", + "default": 3584, + "min": 1, + "max": 3584, + "hidden": true, + "description": "Used only by prompt enhancement; ordinary generation keeps Max New Tokens." + }, + "layout_conditioning": { + "label": "Enhancement Layout", + "type": "layout_conditioning", + "display": "layout", + "default": null, + "hidden": true, + "fieldOptions": { + "layoutConditioning": { + "schemaVersion": 1, + "sourceRegions": false + } + } + }, + "images": { + "label": "Images", + "display": "input", + "type": "image", + "required": false + }, + "video": { + "label": "Video", + "display": "input", + "type": "video", + "required": false + }, + "use_chat_template": { + "label": "Use Chat Template", + "type": "boolean", + "default": true + }, + "max_new_tokens": { + "label": "Max New Tokens", + "type": "int", + "default": 256, + "min": 1, + "max": 2048 + }, + "min_new_tokens": { + "label": "Min New Tokens", + "type": "int", + "default": 0, + "min": 0, + "max": 2048 + }, + "do_sample": { + "label": "Sample", + "type": "boolean", + "default": false + }, + "temperature": { + "label": "Temperature", + "type": "float", + "default": 1.0, + "min": 0.01, + "max": 5.0 + }, + "top_p": { + "label": "Top P", + "type": "float", + "default": 1.0, + "min": 0.01, + "max": 1.0 + }, + "top_k": { + "label": "Top K", + "type": "int", + "default": 50, + "min": 0, + "max": 1000 + }, + "num_beams": { + "label": "Beams", + "type": "int", + "default": 1, + "min": 1, + "max": 8 + }, + "repetition_penalty": { + "label": "Repetition Penalty", + "type": "float", + "default": 1.0, + "min": 0.1, + "max": 10.0 + }, + "text": { + "label": "Generated Text", + "display": "output", + "type": "string" + }, + "result": { + "label": "Generation Result", + "display": "output", + "type": "object" + }, + "proposal_summary": { + "label": "Prompt Proposal Summary", + "display": "output", + "type": "string", + "hidden": true + } + }, + "time": [0, 0, 0], + "memory": [0, 0, 0], + "cache": false + } + } + }, + { + "selection": { + "authoringRecipeId": "flux3-klein:edit-image:prompt-preview-authoring:v1", + "executionProfileId": "flux3-klein:modular", + "pipelineClass": "Flux3DistilledModularPipeline", + "task": "edit_image" + }, + "rawParentJson": "{\n \"schemaVersion\": 1,\n \"canonicalizationVersion\": 1,\n \"id\": \"flux3-klein:edit-image:prompt-preview-authoring:v1\",\n \"baseSpecId\": \"flux3-klein:modular:edit-image:v1\",\n \"baseSpecContentHash\": \"studio-spec-v1-3eb193af\",\n \"executionProfileIds\": [\n \"flux3-klein:modular\"\n ],\n \"roles\": [\n [\n \"models\",\n \"modules.ModularDiffusers.ModelsLoader\",\n -720,\n -80\n ],\n [\n \"prompt\",\n \"modules.ModularDiffusers.EncodePrompt\",\n -360,\n -240\n ],\n [\n \"denoise\",\n \"modules.ModularDiffusers.Denoise\",\n 80,\n -80\n ],\n [\n \"decode\",\n \"modules.ModularDiffusers.DecodeLatents\",\n 440,\n -80\n ],\n [\n \"preview\",\n \"modules.Image.Preview\",\n 800,\n -80\n ],\n [\n \"loadImage\",\n \"modules.Image.Load\",\n -720,\n 320\n ],\n [\n \"imageEncode\",\n \"modules.ModularDiffusers.ImageEncode\",\n -360,\n 320\n ]\n ],\n \"edges\": [\n [\n \"models\",\n \"text_encoders\",\n \"prompt\",\n \"text_encoders\"\n ],\n [\n \"models\",\n \"unet_out\",\n \"denoise\",\n \"unet\"\n ],\n [\n \"models\",\n \"scheduler\",\n \"denoise\",\n \"scheduler\"\n ],\n [\n \"models\",\n \"vae_out\",\n \"decode\",\n \"vae\"\n ],\n [\n \"prompt\",\n \"embeddings\",\n \"denoise\",\n \"embeddings\"\n ],\n [\n \"denoise\",\n \"latents\",\n \"decode\",\n \"latents\"\n ],\n [\n \"decode\",\n \"images\",\n \"preview\",\n \"image\"\n ],\n [\n \"models\",\n \"vae_out\",\n \"imageEncode\",\n \"vae\"\n ],\n [\n \"loadImage\",\n \"image\",\n \"imageEncode\",\n \"image\"\n ],\n [\n \"imageEncode\",\n \"image_cond_latents\",\n \"denoise\",\n \"image_cond_latents\"\n ],\n [\n \"imageEncode\",\n \"reference_binding\",\n \"prompt\",\n \"reference_binding\"\n ],\n [\n \"imageEncode\",\n \"reference_binding\",\n \"denoise\",\n \"reference_binding\"\n ]\n ],\n \"bindings\": [\n [\n \"models\",\n \"model_type\",\n \"pipelineClass\"\n ],\n [\n \"models\",\n \"repo_id\",\n \"artifact\"\n ],\n [\n \"models\",\n \"revision\",\n \"defaultRevision\"\n ],\n [\n \"models\",\n \"dtype\",\n \"dtype\"\n ],\n [\n \"models\",\n \"device\",\n \"device\"\n ],\n [\n \"models\",\n \"auto_offload\",\n \"autoOffload\"\n ],\n [\n \"models\",\n \"offload_mode\",\n \"offloadMode\"\n ],\n [\n \"models\",\n \"trust_remote_code\",\n \"false\"\n ],\n [\n \"prompt\",\n \"prompt\",\n \"prompt\"\n ],\n [\n \"denoise\",\n \"width\",\n \"width\"\n ],\n [\n \"denoise\",\n \"height\",\n \"height\"\n ],\n [\n \"denoise\",\n \"seed\",\n \"seed\"\n ],\n [\n \"denoise\",\n \"num_inference_steps\",\n \"steps\"\n ],\n [\n \"prompt\",\n \"max_sequence_length\",\n \"maxSequenceLength\"\n ],\n [\n \"models\",\n \"weight_format\",\n \"weightFormat\"\n ],\n [\n \"loadImage\",\n \"file\",\n \"referenceImages\"\n ],\n [\n \"loadImage\",\n \"alpha_channel\",\n \"alphaMode\"\n ]\n ],\n \"initialValues\": [],\n \"ancillaryOperations\": [\n {\n \"schemaVersion\": 1,\n \"id\": \"flux3-klein:edit-image:prompt-preview-authoring:v1:preview\",\n \"parent\": {\n \"authoringRecipeId\": \"flux3-klein:edit-image:prompt-preview-authoring:v1\",\n \"baseSpecId\": \"flux3-klein:modular:edit-image:v1\",\n \"baseSpecContentHash\": \"studio-spec-v1-3eb193af\",\n \"executionProfileId\": \"flux3-klein:modular\",\n \"pipelineClass\": \"Flux3DistilledModularPipeline\",\n \"task\": \"edit_image\"\n },\n \"executionPurpose\": \"explicit_preview\",\n \"roles\": [\n [\n \"provider\",\n \"modules.HuggingFaceTransformers.LoadImageTextToTextModel\",\n -720,\n -400\n ],\n [\n \"proposal\",\n \"modules.HuggingFaceTransformers.GenerateImageVideoText\",\n -360,\n -400\n ]\n ],\n \"edges\": [\n [\n \"provider\",\n \"model\",\n \"proposal\",\n \"model\"\n ]\n ],\n \"bindings\": {\n \"owner\": {\n \"role\": \"prompt\",\n \"promptField\": \"prompt\",\n \"layoutField\": \"layout_conditioning\",\n \"referenceSource\": {\n \"role\": \"loadImage\",\n \"field\": \"image\"\n }\n },\n \"request\": {\n \"role\": \"proposal\",\n \"promptField\": \"prompt\",\n \"layoutField\": \"layout_conditioning\",\n \"imagesField\": \"images\"\n },\n \"output\": {\n \"role\": \"proposal\",\n \"field\": \"proposal_summary\"\n }\n },\n \"initialValues\": [\n [\n \"proposal\",\n \"operation\",\n \"enhance_prompt\"\n ]\n ],\n \"adapter\": {\n \"id\": \"transformers-prompt-enhancement-v1\",\n \"declarationSha256\": \"sha256:18a83a6eddaa2944ae13e80971a068346a72bb07fa0759cd1adbb2ccbb8226fc\"\n },\n \"sourceRegions\": false,\n \"contentHash\": \"studio-ancillary-v1-b1257866\"\n }\n ],\n \"contentHash\": \"studio-authoring-v1-181fcf5d\"\n}\n", + "registry": { + "modules.ModularDiffusers.ModelsLoader": { + "module": "modules.ModularDiffusers", + "action": "ModelsLoader", + "type": "custom", + "label": "Load Models", + "category": "loader", + "description": "", + "resizable": true, + "skipParamsCheck": true, + "style": {}, + "params": { + "model_type": { + "label": "Pipeline Type", + "type": "string", + "options": { + "": { + "schemaVersion": 1, + "value": "", + "label": "", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "DummyCustomPipeline": { + "schemaVersion": 1, + "value": "DummyCustomPipeline", + "label": "Custom", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "StableDiffusionXLModularPipeline": { + "schemaVersion": 1, + "value": "StableDiffusionXLModularPipeline", + "label": "Stable Diffusion XL", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "QwenImageModularPipeline": { + "schemaVersion": 1, + "value": "QwenImageModularPipeline", + "label": "Qwen-Image-2512", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "QwenImageEditModularPipeline": { + "schemaVersion": 1, + "value": "QwenImageEditModularPipeline", + "label": "Qwen-Image-Edit", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "QwenImageEditPlusModularPipeline": { + "schemaVersion": 1, + "value": "QwenImageEditPlusModularPipeline", + "label": "Qwen-Image-Edit-2511", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "QwenImageLayeredModularPipeline": { + "schemaVersion": 1, + "value": "QwenImageLayeredModularPipeline", + "label": "Qwen-Image-Layered", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "FluxModularPipeline": { + "schemaVersion": 1, + "value": "FluxModularPipeline", + "label": "Flux", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "FluxKontextModularPipeline": { + "schemaVersion": 1, + "value": "FluxKontextModularPipeline", + "label": "Flux Kontext", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "Flux2ModularPipeline": { + "schemaVersion": 1, + "value": "Flux2ModularPipeline", + "label": "Flux 2", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "Flux2KleinModularPipeline": { + "schemaVersion": 1, + "value": "Flux2KleinModularPipeline", + "label": "Flux 2 Klein Distilled", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "Flux2KleinBaseModularPipeline": { + "schemaVersion": 1, + "value": "Flux2KleinBaseModularPipeline", + "label": "Flux 2 Klein Base", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "Flux3ModularPipeline": { + "schemaVersion": 1, + "value": "Flux3ModularPipeline", + "label": "FLUX 3 Image Klein Base", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "Flux3DistilledModularPipeline": { + "schemaVersion": 1, + "value": "Flux3DistilledModularPipeline", + "label": "FLUX 3 Image Klein", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "ZImageModularPipeline": { + "schemaVersion": 1, + "value": "ZImageModularPipeline", + "label": "Z-Image", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "WanModularPipeline": { + "schemaVersion": 1, + "value": "WanModularPipeline", + "label": "WAN2 T2V", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "WanImage2VideoModularPipeline": { + "schemaVersion": 1, + "value": "WanImage2VideoModularPipeline", + "label": "WAN2 I2V", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "MiniMaxMusic3ModularPipeline": { + "schemaVersion": 1, + "value": "MiniMaxMusic3ModularPipeline", + "label": "MiniMax Music 3", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "MiniMaxH3ModularPipeline": { + "schemaVersion": 1, + "value": "MiniMaxH3ModularPipeline", + "label": "MiniMax H3", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "AnimaModularPipeline": { + "schemaVersion": 1, + "value": "AnimaModularPipeline", + "label": "Anima", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "ErnieImageModularPipeline": { + "schemaVersion": 1, + "value": "ErnieImageModularPipeline", + "label": "ERNIE Image Turbo", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "HeliosModularPipeline": { + "schemaVersion": 1, + "value": "HeliosModularPipeline", + "label": "Helios", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "HeliosPyramidModularPipeline": { + "schemaVersion": 1, + "value": "HeliosPyramidModularPipeline", + "label": "Helios Pyramid", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "HeliosPyramidDistilledModularPipeline": { + "schemaVersion": 1, + "value": "HeliosPyramidDistilledModularPipeline", + "label": "Helios Pyramid Distilled", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "HunyuanVideo15ModularPipeline": { + "schemaVersion": 1, + "value": "HunyuanVideo15ModularPipeline", + "label": "HunyuanVideo 1.5", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "WanAnimate2ModularPipeline": { + "schemaVersion": 1, + "value": "WanAnimate2ModularPipeline", + "label": "Wan Animate 2", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "WanAnimate2DistilledModularPipeline": { + "schemaVersion": 1, + "value": "WanAnimate2DistilledModularPipeline", + "label": "Wan Animate 2 Distilled", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "Cosmos3OmniModularPipeline": { + "schemaVersion": 1, + "value": "Cosmos3OmniModularPipeline", + "label": "Cosmos 3 Nano", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "Cosmos3DistilledModularPipeline": { + "schemaVersion": 1, + "value": "Cosmos3DistilledModularPipeline", + "label": "Cosmos 3 Distilled", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "Ideogram4ModularPipeline": { + "schemaVersion": 1, + "value": "Ideogram4ModularPipeline", + "label": "Ideogram 4 (Contract only)", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "Krea2ModularPipeline": { + "schemaVersion": 1, + "value": "Krea2ModularPipeline", + "label": "Krea 2 (Contract only)", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "Krea2TurboModularPipeline": { + "schemaVersion": 1, + "value": "Krea2TurboModularPipeline", + "label": "Krea 2 Turbo (Contract only)", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "StableDiffusion3ModularPipeline": { + "schemaVersion": 1, + "value": "StableDiffusion3ModularPipeline", + "label": "Stable Diffusion 3 (Contract only)", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "LTX25ModularPipeline": { + "schemaVersion": 1, + "value": "LTX25ModularPipeline", + "label": "LTX-2.5 (Contract only)", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + } + }, + "onChange": "set_filters", + "description": "Selects the Modular Diffusers pipeline class. This filters compatible checkpoints and publishes the component contract used by connected nodes; it is not the model checkpoint itself." + }, + "repo_id": { + "label": "Repository ID", + "display": "modelselect", + "type": "string", + "value": { + "source": "hub", + "value": "" + }, + "fieldOptions": { + "noValidation": true, + "sources": ["hub", "local"], + "filter": { + "hub": { + "className": [""] + }, + "local": { + "className": [""] + } + } + }, + "onChange": "refresh_pipeline_identity" + }, + "reviewed_variant": { + "label": "Model", + "type": "string", + "value": "", + "options": [], + "hidden": true, + "fieldOptions": { + "controlTier": "essential" + }, + "description": "Select an immutable, reviewed checkpoint for this exact Modular Diffusers pipeline family. Changing it does not replace the workflow graph or reset its parameters." + }, + "dtype": { + "label": "dtype", + "options": [ + { + "schemaVersion": 1, + "value": "float32", + "label": "float32", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "float16", + "label": "float16", + "compatibility": "incompatible", + "availability": "unavailable", + "installationState": "unavailable", + "disabledReason": "float16 is not supported by the active runtime." + }, + { + "schemaVersion": 1, + "value": "bfloat16", + "label": "bfloat16", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + } + ], + "value": "float16" + }, + "device": { + "label": "Device", + "type": "string", + "value": "cpu:0", + "options": { + "cpu:0": { + "schemaVersion": 1, + "value": "cpu:0", + "label": "cpu:0", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "cpu": { + "schemaVersion": 1, + "value": "cpu", + "label": "cpu", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + } + } + }, + "attention_backend": { + "label": "Attention Backend", + "type": "string", + "default": "inherit", + "options": [ + { + "schemaVersion": 1, + "value": "inherit", + "label": "inherit", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "auto", + "label": "auto", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "native", + "label": "native", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "_native_math", + "label": "_native_math", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + } + ], + "description": "Inherit preserves existing native component defaults; explicit choices use the ordinary Diffusers attention API." + }, + "vae_slicing": { + "label": "VAE Slicing", + "type": "boolean", + "default": null, + "hidden": true, + "description": "An unset policy preserves the native VAE configuration; templates may bind an explicit boolean." + }, + "vae_tiling": { + "label": "VAE Tiling", + "type": "boolean", + "default": null, + "hidden": true, + "description": "An unset policy preserves the native VAE configuration; templates may bind an explicit boolean." + }, + "trust_remote_code": { + "label": "Trust Remote Code", + "type": "boolean", + "value": false, + "description": "Repository code execution is disabled; keep this off for contract preview.", + "onChange": "refresh_pipeline_identity" + }, + "revision": { + "label": "Revision", + "type": "string", + "value": "", + "description": "Required exact 40-character commit hash for Hub custom contracts.", + "onChange": "refresh_pipeline_identity" + }, + "workflow_id": { + "label": "Reviewed Workflow", + "type": "string", + "value": "", + "hidden": true, + "description": "Exact reviewed component partition selected by a first-party Cluster Node." + }, + "modiff_pipeline_identity": { + "label": "Custom Pipeline Identity", + "type": "object", + "value": null, + "hidden": true + }, + "refresh_pipeline_identity_button": { + "label": "Review and Refresh Custom Contract", + "display": "ui_button", + "value": false, + "hidden": true, + "onChange": "refresh_pipeline_identity" + }, + "auto_offload": { + "label": "Enable Auto Offload", + "type": "boolean", + "value": true + }, + "offload_mode": { + "label": "Offload Mode", + "type": "string", + "options": [ + { + "schemaVersion": 1, + "value": "auto_cpu", + "label": "auto_cpu", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "none", + "label": "none", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "model_cpu", + "label": "model_cpu", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "group_cpu", + "label": "group_cpu", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "group_disk", + "label": "group_disk", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + } + ], + "value": "model_cpu", + "default": "model_cpu" + }, + "weight_loading_mode": { + "label": "Weight Loading", + "type": "string", + "default": "cpu", + "options": [ + { + "schemaVersion": 1, + "value": "cpu", + "label": "cpu", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "cuda", + "label": "cuda", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + } + ], + "fieldOptions": { + "controlTier": "advanced" + }, + "description": "Load weights on CPU or CUDA before disk offload. CUDA loading needs room for a complete component and is available only for supported models." + }, + "weight_format": { + "label": "Weight Format", + "type": "string", + "default": "native", + "options": [ + { + "schemaVersion": 1, + "value": "native", + "label": "native", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + } + ], + "hidden": true, + "fieldOptions": { + "controlTier": "advanced" + }, + "description": "Select a backend-declared immutable component format. Missing reviewed files must be installed through Model Manager." + }, + "unet": { + "label": "Denoise Model", + "display": "input", + "type": "diffusers_auto_model" + }, + "vae": { + "label": "VAE", + "display": "input", + "type": "diffusers_auto_model" + }, + "lora_list": { + "label": "Lora", + "display": "input", + "type": "custom_lora" + }, + "text_encoders": { + "label": "Text Encoders", + "display": "output", + "type": "diffusers_auto_models", + "signal": { + "direction": "output", + "origin": "model_type", + "value": "" + }, + "connectionRole": "text_encoders" + }, + "unet_out": { + "label": "Denoise Model", + "display": "output", + "type": "diffusers_auto_model", + "signal": { + "direction": "output", + "origin": "model_type", + "value": "" + }, + "connectionRole": "denoiser" + }, + "vae_out": { + "label": "VAE", + "display": "output", + "type": "diffusers_auto_model", + "signal": { + "direction": "output", + "origin": "model_type", + "value": "" + }, + "connectionRole": "vae" + }, + "scheduler": { + "label": "Scheduler", + "display": "output", + "type": "diffusers_auto_model", + "signal": { + "direction": "output", + "origin": "model_type", + "value": "" + }, + "connectionRole": "scheduler" + }, + "image_encoder": { + "label": "Image Encoder", + "display": "output", + "type": "diffusers_auto_model", + "signal": { + "direction": "output", + "origin": "model_type", + "value": "" + }, + "connectionRole": "image_encoder" + }, + "pipeline_components": { + "label": "Pipeline Components", + "display": "output", + "type": "diffusers_modular_pipeline_components", + "signal": { + "direction": "output", + "origin": "model_type", + "value": "" + }, + "connectionRole": "pipeline_components" + }, + "quant_config": { + "label": "Quant Config", + "display": "input", + "type": "quant_config" + } + }, + "time": [0, 0, 0], + "memory": [0, 0, 0], + "cache": false + }, + "modules.ModularDiffusers.EncodePrompt": { + "module": "modules.ModularDiffusers", + "action": "EncodePrompt", + "type": "custom", + "label": "Encode Prompt", + "category": "embedding", + "description": "", + "resizable": true, + "skipParamsCheck": true, + "style": {}, + "params": { + "pipeline_components": { + "label": "Pipeline Components", + "type": "diffusers_modular_pipeline_components", + "display": "input", + "required": false, + "hidden": true, + "onSignal": "update_node", + "description": "Optional Models Loader components for the reviewed Qwen text-to-image stages.", + "signalCompatibility": { + "required": true, + "role": "pipeline_components", + "values": { + "QwenImageModularPipeline": ["text_encoder"] + } + } + }, + "text_encoders": { + "label": "Text Encoders *", + "type": "diffusers_auto_models", + "display": "input", + "signalCompatibility": { + "role": "text_encoders" + } + }, + "prompt_input": { + "label": "Prompt Input", + "type": "string", + "display": "input", + "description": "Optional connected prompt. When connected, this replaces the inline Prompt value." + }, + "guider": { + "label": "Guider", + "type": "custom_guider", + "display": "input", + "hidden": true, + "description": "Shared Diffusers guidance used by prompt encoding and denoising when the selected pipeline supports it." + }, + "layout_reference_summary": { + "label": "Bound Reference Summary", + "type": "string", + "display": "output", + "hidden": true, + "description": "Display-only ordered reference identities and actual preprocessing sizes from the current encoder cache." + }, + "prompt": { + "label": "Prompt *", + "type": "string", + "display": "textarea", + "default": "" + }, + "max_sequence_length": { + "label": "Maximum Sequence Length", + "type": "int", + "default": 8192, + "min": 1, + "max": 8192, + "step": 1 + }, + "text_encoder_out_layers": { + "label": "Text Encoder Layers", + "type": "int", + "display": "select", + "default": [4, 8, 12, 16, 20, 24, 28, 32], + "options": [ + { + "schemaVersion": 1, + "value": "0", + "label": "0", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "1", + "label": "1", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "2", + "label": "2", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "3", + "label": "3", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "4", + "label": "4", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "5", + "label": "5", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "6", + "label": "6", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "7", + "label": "7", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "8", + "label": "8", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "9", + "label": "9", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "10", + "label": "10", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "11", + "label": "11", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "12", + "label": "12", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "13", + "label": "13", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "14", + "label": "14", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "15", + "label": "15", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "16", + "label": "16", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "17", + "label": "17", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "18", + "label": "18", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "19", + "label": "19", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "20", + "label": "20", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "21", + "label": "21", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "22", + "label": "22", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "23", + "label": "23", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "24", + "label": "24", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "25", + "label": "25", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "26", + "label": "26", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "27", + "label": "27", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "28", + "label": "28", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "29", + "label": "29", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "30", + "label": "30", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "31", + "label": "31", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "32", + "label": "32", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + } + ], + "fieldOptions": { + "multiple": true, + "tupleValue": true, + "tupleLength": 8 + } + }, + "embeddings": { + "label": "Text Embeddings", + "type": "embeddings", + "display": "output" + }, + "doc": { + "label": "Doc", + "type": "string", + "display": "output" + }, + "layout_conditioning": { + "label": "Layout Conditioning", + "type": "layout_conditioning", + "display": "layout", + "fieldOptions": { + "layoutConditioning": { + "schemaVersion": 2, + "sourceRegions": false, + "supportsBoundSourceRegions": true + } + }, + "default": null + }, + "reference_binding": { + "label": "Reference Binding", + "type": "reference_conditioning", + "display": "input", + "fieldOptions": { + "referenceBinding": { + "schemaVersion": 1, + "maxReferences": 10 + } + }, + "default": null + } + }, + "time": [0, 0, 0], + "memory": [0, 0, 0], + "cache": false + }, + "modules.ModularDiffusers.Denoise": { + "module": "modules.ModularDiffusers", + "action": "Denoise", + "type": "custom", + "label": "Denoise", + "category": "sampler", + "description": "", + "resizable": true, + "skipParamsCheck": true, + "style": {}, + "params": { + "pipeline_components": { + "label": "Pipeline Components", + "type": "diffusers_modular_pipeline_components", + "display": "input", + "required": false, + "hidden": true, + "onSignal": [ + "update_node", + { + "action": "signal", + "target": "guider" + }, + { + "action": "signal", + "target": "controlnet_bundle" + } + ], + "description": "Optional Models Loader components for the reviewed Qwen text-to-image stages.", + "signalCompatibility": { + "required": true, + "role": "pipeline_components", + "values": { + "QwenImageModularPipeline": ["denoise"] + } + } + }, + "unet": { + "label": "Denoise Model *", + "type": "diffusers_auto_model", + "display": "input", + "signalCompatibility": { + "role": "denoiser" + } + }, + "embeddings": { + "label": "Text Embeddings *", + "type": "embeddings", + "display": "input" + }, + "width": { + "label": "Width", + "type": "int", + "default": 1024, + "min": 64, + "step": 16 + }, + "height": { + "label": "Height", + "type": "int", + "default": 1024, + "min": 64, + "step": 16 + }, + "seed": { + "label": "Seed", + "type": "int", + "display": "random", + "default": 0, + "min": 0, + "max": 4294967295 + }, + "num_inference_steps": { + "label": "Steps", + "type": "int", + "display": "slider", + "default": 16, + "min": 1, + "max": 100 + }, + "num_images_per_prompt": { + "label": "Images Per Prompt", + "type": "int", + "default": 1, + "min": 1, + "max": 8, + "step": 1 + }, + "image_cond_latents": { + "label": "Reference Latents", + "type": "latents", + "display": "input" + }, + "scheduler": { + "label": "Scheduler *", + "type": "diffusers_auto_model", + "display": "input", + "signalCompatibility": { + "role": "scheduler" + } + }, + "latents": { + "label": "Latents", + "type": "latents", + "display": "output" + }, + "doc": { + "label": "Doc", + "type": "string", + "display": "output" + }, + "reference_binding": { + "label": "Reference Binding", + "type": "reference_conditioning", + "display": "input", + "fieldOptions": { + "referenceBinding": { + "schemaVersion": 1, + "maxReferences": 10 + } + }, + "default": null + } + }, + "time": [0, 0, 0], + "memory": [0, 0, 0], + "cache": false + }, + "modules.ModularDiffusers.DecodeLatents": { + "module": "modules.ModularDiffusers", + "action": "DecodeLatents", + "type": "custom", + "label": "Decode Latents", + "category": "sampler", + "description": "", + "resizable": true, + "skipParamsCheck": true, + "style": {}, + "params": { + "pipeline_components": { + "label": "Pipeline Components", + "type": "diffusers_modular_pipeline_components", + "display": "input", + "required": false, + "hidden": true, + "onSignal": "update_node", + "description": "Optional Models Loader components for the reviewed Qwen text-to-image stages.", + "signalCompatibility": { + "required": true, + "role": "pipeline_components", + "values": { + "QwenImageModularPipeline": ["decoder"] + } + } + }, + "vae": { + "label": "VAE *", + "type": "diffusers_auto_model", + "display": "input", + "signalCompatibility": { + "role": "vae" + } + }, + "latents": { + "label": "Latents *", + "type": "latents", + "display": "input" + }, + "images": { + "label": "Images", + "type": "image", + "display": "output" + }, + "doc": { + "label": "Doc", + "type": "string", + "display": "output" + } + }, + "time": [0, 0, 0], + "memory": [0, 0, 0], + "cache": false + }, + "modules.Image.Preview": { + "module": "modules.Image", + "action": "Preview", + "type": "custom", + "label": "Preview Image", + "category": "image", + "description": "Preview an image", + "resizable": true, + "skipParamsCheck": false, + "style": {}, + "params": { + "vae": { + "type": "pipeline", + "display": "input", + "label": "VAE" + }, + "device": { + "type": "string", + "default": "cpu:0", + "options": { + "cpu:0": { + "schemaVersion": 1, + "value": "cpu:0", + "label": "cpu:0", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "cpu": { + "schemaVersion": 1, + "value": "cpu", + "label": "cpu", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + } + } + }, + "image": { + "type": ["image", "latent"], + "display": "input", + "onChange": { + "action": "show", + "data": { + "true": ["vae", "device"], + "false": [] + }, + "condition": { + "type": "latent" + } + } + }, + "preview": { + "display": "ui_image", + "type": "url", + "dataSource": "output" + }, + "output": { + "type": "image", + "display": "output", + "label": "All images" + }, + "export": { + "type": "str", + "default": "0", + "description": "Export the image at the given index. Leave empty to export all images." + }, + "filtered": { + "type": "image", + "display": "output", + "label": "Selected image" + } + }, + "time": [0, 0, 0], + "memory": [0, 0, 0], + "cache": false + }, + "modules.Image.Load": { + "module": "modules.Image", + "action": "Load", + "type": "custom", + "label": "Load Image", + "category": "image", + "description": "Load an image from a file", + "resizable": true, + "skipParamsCheck": false, + "style": {}, + "params": { + "image": { + "label": "Image", + "display": "output", + "type": "image" + }, + "label": { + "display": "ui_label", + "value": "Load Image" + }, + "file": { + "label": false, + "display": "filebrowser", + "type": "str", + "fieldOptions": { + "fileTypes": ["image"], + "multiple": true + } + }, + "alpha_channel": { + "label": "Alpha Channel", + "type": "string", + "options": [ + { + "schemaVersion": 1, + "value": "ignore", + "label": "ignore", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "add alpha", + "label": "add alpha", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "remove alpha", + "label": "remove alpha", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + } + ], + "default": "ignore" + }, + "width": { + "display": "output", + "type": "int" + }, + "height": { + "display": "output", + "type": "int" + }, + "mask": { + "display": "output", + "type": "image", + "label": "Alpha mask" + }, + "source_hash": { + "display": "output", + "type": "str", + "label": "Source hash" + } + }, + "time": [0, 0, 0], + "memory": [0, 0, 0], + "cache": false + }, + "modules.ModularDiffusers.ImageEncode": { + "module": "modules.ModularDiffusers", + "action": "ImageEncode", + "type": "custom", + "label": "Encode Image", + "category": "sampler", + "description": "", + "resizable": true, + "skipParamsCheck": true, + "style": {}, + "params": { + "layout_reference_summary": { + "label": "Bound Reference Summary", + "type": "string", + "display": "output", + "hidden": true, + "description": "Display-only ordered reference identities and actual preprocessing sizes from this image encoding cache." + }, + "vae": { + "label": "VAE *", + "type": "diffusers_auto_model", + "display": "input", + "signalCompatibility": { + "role": "vae" + } + }, + "encode_summary_data": { + "label": "Encode summary", + "display": "output", + "type": "str", + "hidden": true + }, + "encode_summary": { + "label": "Encode summary", + "display": "ui_text", + "type": "text", + "dataSource": "encode_summary_data", + "hidden": true + }, + "image": { + "label": "Image *", + "type": "image", + "display": "input" + }, + "image_cond_latents": { + "label": "Reference Latents", + "type": "latents", + "display": "output" + }, + "reference_binding": { + "label": "Reference Binding", + "type": "reference_conditioning", + "display": "output", + "fieldOptions": { + "referenceBinding": { + "schemaVersion": 1, + "maxReferences": 10 + } + } + }, + "doc": { + "label": "Doc", + "type": "string", + "display": "output" + } + }, + "time": [0, 0, 0], + "memory": [0, 0, 0], + "cache": false + }, + "modules.HuggingFaceTransformers.LoadImageTextToTextModel": { + "module": "modules.HuggingFaceTransformers", + "action": "LoadImageTextToTextModel", + "type": "custom", + "label": "Load Image/Video-to-Text Model", + "category": "Hugging Face Transformers", + "description": "Load an immutable local-only image/video-to-text model and processor.", + "resizable": true, + "skipParamsCheck": false, + "style": {}, + "params": { + "model": { + "label": "Model", + "display": "output", + "type": "transformers_image_text_to_text" + }, + "pipeline_class": { + "label": "Execution Class", + "type": "string", + "default": "AutoModelForImageTextToText", + "hidden": true + }, + "model_id": { + "label": "Model", + "display": "modelselect", + "type": "string", + "fieldOptions": { + "noValidation": true, + "sources": ["hub", "local"] + } + }, + "revision": { + "label": "Exact Hub Commit", + "type": "string", + "default": "" + }, + "dtype": { + "label": "DType", + "type": "string", + "options": [ + { + "schemaVersion": 1, + "value": "float32", + "label": "float32", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "float16", + "label": "float16", + "compatibility": "incompatible", + "availability": "unavailable", + "installationState": "unavailable", + "disabledReason": "float16 is not supported by the active runtime." + }, + { + "schemaVersion": 1, + "value": "bfloat16", + "label": "bfloat16", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + } + ], + "default": "float32" + }, + "device": { + "label": "Device", + "type": "string", + "options": { + "cpu:0": { + "schemaVersion": 1, + "value": "cpu:0", + "label": "cpu:0", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "cpu": { + "schemaVersion": 1, + "value": "cpu", + "label": "cpu", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + } + }, + "default": "cpu:0" + }, + "receipt": { + "label": "Model Receipt", + "display": "output", + "type": "object" + } + }, + "time": [0, 0, 0], + "memory": [0, 0, 0], + "cache": false + }, + "modules.HuggingFaceTransformers.GenerateImageVideoText": { + "module": "modules.HuggingFaceTransformers", + "action": "GenerateImageVideoText", + "type": "custom", + "label": "Generate Image/Video Text", + "category": "Hugging Face Transformers", + "description": "Generate bounded text from bounded in-memory images or video frames.", + "resizable": true, + "skipParamsCheck": false, + "style": {}, + "params": { + "model": { + "label": "Model", + "display": "input", + "type": "transformers_image_text_to_text" + }, + "prompt": { + "label": "Prompt", + "type": "text", + "default": "" + }, + "operation": { + "label": "Operation", + "type": "string", + "options": [ + { + "schemaVersion": 1, + "value": "standard", + "label": "standard", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "enhance_prompt", + "label": "enhance_prompt", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + } + ], + "default": "standard", + "hidden": true + }, + "enhancement_max_new_tokens": { + "label": "Enhancement Token Limit", + "type": "int", + "default": 3584, + "min": 1, + "max": 3584, + "hidden": true, + "description": "Used only by prompt enhancement; ordinary generation keeps Max New Tokens." + }, + "layout_conditioning": { + "label": "Enhancement Layout", + "type": "layout_conditioning", + "display": "layout", + "default": null, + "hidden": true, + "fieldOptions": { + "layoutConditioning": { + "schemaVersion": 1, + "sourceRegions": false + } + } + }, + "images": { + "label": "Images", + "display": "input", + "type": "image", + "required": false + }, + "video": { + "label": "Video", + "display": "input", + "type": "video", + "required": false + }, + "use_chat_template": { + "label": "Use Chat Template", + "type": "boolean", + "default": true + }, + "max_new_tokens": { + "label": "Max New Tokens", + "type": "int", + "default": 256, + "min": 1, + "max": 2048 + }, + "min_new_tokens": { + "label": "Min New Tokens", + "type": "int", + "default": 0, + "min": 0, + "max": 2048 + }, + "do_sample": { + "label": "Sample", + "type": "boolean", + "default": false + }, + "temperature": { + "label": "Temperature", + "type": "float", + "default": 1.0, + "min": 0.01, + "max": 5.0 + }, + "top_p": { + "label": "Top P", + "type": "float", + "default": 1.0, + "min": 0.01, + "max": 1.0 + }, + "top_k": { + "label": "Top K", + "type": "int", + "default": 50, + "min": 0, + "max": 1000 + }, + "num_beams": { + "label": "Beams", + "type": "int", + "default": 1, + "min": 1, + "max": 8 + }, + "repetition_penalty": { + "label": "Repetition Penalty", + "type": "float", + "default": 1.0, + "min": 0.1, + "max": 10.0 + }, + "text": { + "label": "Generated Text", + "display": "output", + "type": "string" + }, + "result": { + "label": "Generation Result", + "display": "output", + "type": "object" + }, + "proposal_summary": { + "label": "Prompt Proposal Summary", + "display": "output", + "type": "string", + "hidden": true + } + }, + "time": [0, 0, 0], + "memory": [0, 0, 0], + "cache": false + } + } + }, + { + "selection": { + "authoringRecipeId": "flux3-klein-base:text-to-image:prompt-preview-authoring:v1", + "executionProfileId": "flux3-klein-base:modular", + "pipelineClass": "Flux3ModularPipeline", + "task": "text_to_image" + }, + "rawParentJson": "{\n \"schemaVersion\": 1,\n \"canonicalizationVersion\": 1,\n \"id\": \"flux3-klein-base:text-to-image:prompt-preview-authoring:v1\",\n \"baseSpecId\": \"flux3-klein-base:modular:text-to-image:v1\",\n \"baseSpecContentHash\": \"studio-spec-v1-b86b1275\",\n \"executionProfileIds\": [\n \"flux3-klein-base:modular\"\n ],\n \"roles\": [\n [\n \"models\",\n \"modules.ModularDiffusers.ModelsLoader\",\n -720,\n -80\n ],\n [\n \"prompt\",\n \"modules.ModularDiffusers.EncodePrompt\",\n -360,\n -240\n ],\n [\n \"denoise\",\n \"modules.ModularDiffusers.Denoise\",\n 80,\n -80\n ],\n [\n \"decode\",\n \"modules.ModularDiffusers.DecodeLatents\",\n 440,\n -80\n ],\n [\n \"preview\",\n \"modules.Image.Preview\",\n 800,\n -80\n ],\n [\n \"guider\",\n \"modules.ModularDiffusers.Guider\",\n -360,\n 160\n ]\n ],\n \"edges\": [\n [\n \"models\",\n \"text_encoders\",\n \"prompt\",\n \"text_encoders\"\n ],\n [\n \"models\",\n \"unet_out\",\n \"denoise\",\n \"unet\"\n ],\n [\n \"models\",\n \"scheduler\",\n \"denoise\",\n \"scheduler\"\n ],\n [\n \"models\",\n \"vae_out\",\n \"decode\",\n \"vae\"\n ],\n [\n \"prompt\",\n \"embeddings\",\n \"denoise\",\n \"embeddings\"\n ],\n [\n \"denoise\",\n \"latents\",\n \"decode\",\n \"latents\"\n ],\n [\n \"decode\",\n \"images\",\n \"preview\",\n \"image\"\n ],\n [\n \"guider\",\n \"guider_out\",\n \"denoise\",\n \"guider\"\n ]\n ],\n \"bindings\": [\n [\n \"models\",\n \"model_type\",\n \"pipelineClass\"\n ],\n [\n \"models\",\n \"repo_id\",\n \"artifact\"\n ],\n [\n \"models\",\n \"revision\",\n \"defaultRevision\"\n ],\n [\n \"models\",\n \"dtype\",\n \"dtype\"\n ],\n [\n \"models\",\n \"device\",\n \"device\"\n ],\n [\n \"models\",\n \"auto_offload\",\n \"autoOffload\"\n ],\n [\n \"models\",\n \"offload_mode\",\n \"offloadMode\"\n ],\n [\n \"models\",\n \"trust_remote_code\",\n \"false\"\n ],\n [\n \"prompt\",\n \"prompt\",\n \"prompt\"\n ],\n [\n \"prompt\",\n \"negative_prompt\",\n \"negativePrompt\"\n ],\n [\n \"denoise\",\n \"width\",\n \"width\"\n ],\n [\n \"denoise\",\n \"height\",\n \"height\"\n ],\n [\n \"denoise\",\n \"seed\",\n \"seed\"\n ],\n [\n \"denoise\",\n \"num_inference_steps\",\n \"steps\"\n ],\n [\n \"prompt\",\n \"max_sequence_length\",\n \"maxSequenceLength\"\n ],\n [\n \"models\",\n \"weight_format\",\n \"weightFormat\"\n ],\n [\n \"guider\",\n \"guider\",\n \"classifierFreeGuidance\"\n ],\n [\n \"guider\",\n \"model_type\",\n \"pipelineClass\"\n ],\n [\n \"guider\",\n \"guidance_scale\",\n \"guidanceScale\"\n ]\n ],\n \"initialValues\": [],\n \"ancillaryOperations\": [\n {\n \"schemaVersion\": 1,\n \"id\": \"flux3-klein-base:text-to-image:prompt-preview-authoring:v1:preview\",\n \"parent\": {\n \"authoringRecipeId\": \"flux3-klein-base:text-to-image:prompt-preview-authoring:v1\",\n \"baseSpecId\": \"flux3-klein-base:modular:text-to-image:v1\",\n \"baseSpecContentHash\": \"studio-spec-v1-b86b1275\",\n \"executionProfileId\": \"flux3-klein-base:modular\",\n \"pipelineClass\": \"Flux3ModularPipeline\",\n \"task\": \"text_to_image\"\n },\n \"executionPurpose\": \"explicit_preview\",\n \"roles\": [\n [\n \"provider\",\n \"modules.HuggingFaceTransformers.LoadImageTextToTextModel\",\n -720,\n -400\n ],\n [\n \"proposal\",\n \"modules.HuggingFaceTransformers.GenerateImageVideoText\",\n -360,\n -400\n ]\n ],\n \"edges\": [\n [\n \"provider\",\n \"model\",\n \"proposal\",\n \"model\"\n ]\n ],\n \"bindings\": {\n \"owner\": {\n \"role\": \"prompt\",\n \"promptField\": \"prompt\",\n \"layoutField\": \"layout_conditioning\",\n \"referenceSource\": null\n },\n \"request\": {\n \"role\": \"proposal\",\n \"promptField\": \"prompt\",\n \"layoutField\": \"layout_conditioning\",\n \"imagesField\": \"images\"\n },\n \"output\": {\n \"role\": \"proposal\",\n \"field\": \"proposal_summary\"\n }\n },\n \"initialValues\": [\n [\n \"proposal\",\n \"operation\",\n \"enhance_prompt\"\n ]\n ],\n \"adapter\": {\n \"id\": \"transformers-prompt-enhancement-v1\",\n \"declarationSha256\": \"sha256:18a83a6eddaa2944ae13e80971a068346a72bb07fa0759cd1adbb2ccbb8226fc\"\n },\n \"sourceRegions\": false,\n \"contentHash\": \"studio-ancillary-v1-f3ad1d92\"\n }\n ],\n \"contentHash\": \"studio-authoring-v1-e49ae5c1\"\n}\n", + "registry": { + "modules.ModularDiffusers.ModelsLoader": { + "module": "modules.ModularDiffusers", + "action": "ModelsLoader", + "type": "custom", + "label": "Load Models", + "category": "loader", + "description": "", + "resizable": true, + "skipParamsCheck": true, + "style": {}, + "params": { + "model_type": { + "label": "Pipeline Type", + "type": "string", + "options": { + "": { + "schemaVersion": 1, + "value": "", + "label": "", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "DummyCustomPipeline": { + "schemaVersion": 1, + "value": "DummyCustomPipeline", + "label": "Custom", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "StableDiffusionXLModularPipeline": { + "schemaVersion": 1, + "value": "StableDiffusionXLModularPipeline", + "label": "Stable Diffusion XL", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "QwenImageModularPipeline": { + "schemaVersion": 1, + "value": "QwenImageModularPipeline", + "label": "Qwen-Image-2512", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "QwenImageEditModularPipeline": { + "schemaVersion": 1, + "value": "QwenImageEditModularPipeline", + "label": "Qwen-Image-Edit", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "QwenImageEditPlusModularPipeline": { + "schemaVersion": 1, + "value": "QwenImageEditPlusModularPipeline", + "label": "Qwen-Image-Edit-2511", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "QwenImageLayeredModularPipeline": { + "schemaVersion": 1, + "value": "QwenImageLayeredModularPipeline", + "label": "Qwen-Image-Layered", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "FluxModularPipeline": { + "schemaVersion": 1, + "value": "FluxModularPipeline", + "label": "Flux", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "FluxKontextModularPipeline": { + "schemaVersion": 1, + "value": "FluxKontextModularPipeline", + "label": "Flux Kontext", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "Flux2ModularPipeline": { + "schemaVersion": 1, + "value": "Flux2ModularPipeline", + "label": "Flux 2", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "Flux2KleinModularPipeline": { + "schemaVersion": 1, + "value": "Flux2KleinModularPipeline", + "label": "Flux 2 Klein Distilled", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "Flux2KleinBaseModularPipeline": { + "schemaVersion": 1, + "value": "Flux2KleinBaseModularPipeline", + "label": "Flux 2 Klein Base", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "Flux3ModularPipeline": { + "schemaVersion": 1, + "value": "Flux3ModularPipeline", + "label": "FLUX 3 Image Klein Base", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "Flux3DistilledModularPipeline": { + "schemaVersion": 1, + "value": "Flux3DistilledModularPipeline", + "label": "FLUX 3 Image Klein", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "ZImageModularPipeline": { + "schemaVersion": 1, + "value": "ZImageModularPipeline", + "label": "Z-Image", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "WanModularPipeline": { + "schemaVersion": 1, + "value": "WanModularPipeline", + "label": "WAN2 T2V", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "WanImage2VideoModularPipeline": { + "schemaVersion": 1, + "value": "WanImage2VideoModularPipeline", + "label": "WAN2 I2V", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "MiniMaxMusic3ModularPipeline": { + "schemaVersion": 1, + "value": "MiniMaxMusic3ModularPipeline", + "label": "MiniMax Music 3", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "MiniMaxH3ModularPipeline": { + "schemaVersion": 1, + "value": "MiniMaxH3ModularPipeline", + "label": "MiniMax H3", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "AnimaModularPipeline": { + "schemaVersion": 1, + "value": "AnimaModularPipeline", + "label": "Anima", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "ErnieImageModularPipeline": { + "schemaVersion": 1, + "value": "ErnieImageModularPipeline", + "label": "ERNIE Image Turbo", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "HeliosModularPipeline": { + "schemaVersion": 1, + "value": "HeliosModularPipeline", + "label": "Helios", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "HeliosPyramidModularPipeline": { + "schemaVersion": 1, + "value": "HeliosPyramidModularPipeline", + "label": "Helios Pyramid", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "HeliosPyramidDistilledModularPipeline": { + "schemaVersion": 1, + "value": "HeliosPyramidDistilledModularPipeline", + "label": "Helios Pyramid Distilled", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "HunyuanVideo15ModularPipeline": { + "schemaVersion": 1, + "value": "HunyuanVideo15ModularPipeline", + "label": "HunyuanVideo 1.5", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "WanAnimate2ModularPipeline": { + "schemaVersion": 1, + "value": "WanAnimate2ModularPipeline", + "label": "Wan Animate 2", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "WanAnimate2DistilledModularPipeline": { + "schemaVersion": 1, + "value": "WanAnimate2DistilledModularPipeline", + "label": "Wan Animate 2 Distilled", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "Cosmos3OmniModularPipeline": { + "schemaVersion": 1, + "value": "Cosmos3OmniModularPipeline", + "label": "Cosmos 3 Nano", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "Cosmos3DistilledModularPipeline": { + "schemaVersion": 1, + "value": "Cosmos3DistilledModularPipeline", + "label": "Cosmos 3 Distilled", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "Ideogram4ModularPipeline": { + "schemaVersion": 1, + "value": "Ideogram4ModularPipeline", + "label": "Ideogram 4 (Contract only)", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "Krea2ModularPipeline": { + "schemaVersion": 1, + "value": "Krea2ModularPipeline", + "label": "Krea 2 (Contract only)", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "Krea2TurboModularPipeline": { + "schemaVersion": 1, + "value": "Krea2TurboModularPipeline", + "label": "Krea 2 Turbo (Contract only)", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "StableDiffusion3ModularPipeline": { + "schemaVersion": 1, + "value": "StableDiffusion3ModularPipeline", + "label": "Stable Diffusion 3 (Contract only)", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "LTX25ModularPipeline": { + "schemaVersion": 1, + "value": "LTX25ModularPipeline", + "label": "LTX-2.5 (Contract only)", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + } + }, + "onChange": "set_filters", + "description": "Selects the Modular Diffusers pipeline class. This filters compatible checkpoints and publishes the component contract used by connected nodes; it is not the model checkpoint itself." + }, + "repo_id": { + "label": "Repository ID", + "display": "modelselect", + "type": "string", + "value": { + "source": "hub", + "value": "" + }, + "fieldOptions": { + "noValidation": true, + "sources": ["hub", "local"], + "filter": { + "hub": { + "className": [""] + }, + "local": { + "className": [""] + } + } + }, + "onChange": "refresh_pipeline_identity" + }, + "reviewed_variant": { + "label": "Model", + "type": "string", + "value": "", + "options": [], + "hidden": true, + "fieldOptions": { + "controlTier": "essential" + }, + "description": "Select an immutable, reviewed checkpoint for this exact Modular Diffusers pipeline family. Changing it does not replace the workflow graph or reset its parameters." + }, + "dtype": { + "label": "dtype", + "options": [ + { + "schemaVersion": 1, + "value": "float32", + "label": "float32", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "float16", + "label": "float16", + "compatibility": "incompatible", + "availability": "unavailable", + "installationState": "unavailable", + "disabledReason": "float16 is not supported by the active runtime." + }, + { + "schemaVersion": 1, + "value": "bfloat16", + "label": "bfloat16", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + } + ], + "value": "float16" + }, + "device": { + "label": "Device", + "type": "string", + "value": "cpu:0", + "options": { + "cpu:0": { + "schemaVersion": 1, + "value": "cpu:0", + "label": "cpu:0", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "cpu": { + "schemaVersion": 1, + "value": "cpu", + "label": "cpu", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + } + } + }, + "attention_backend": { + "label": "Attention Backend", + "type": "string", + "default": "inherit", + "options": [ + { + "schemaVersion": 1, + "value": "inherit", + "label": "inherit", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "auto", + "label": "auto", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "native", + "label": "native", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "_native_math", + "label": "_native_math", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + } + ], + "description": "Inherit preserves existing native component defaults; explicit choices use the ordinary Diffusers attention API." + }, + "vae_slicing": { + "label": "VAE Slicing", + "type": "boolean", + "default": null, + "hidden": true, + "description": "An unset policy preserves the native VAE configuration; templates may bind an explicit boolean." + }, + "vae_tiling": { + "label": "VAE Tiling", + "type": "boolean", + "default": null, + "hidden": true, + "description": "An unset policy preserves the native VAE configuration; templates may bind an explicit boolean." + }, + "trust_remote_code": { + "label": "Trust Remote Code", + "type": "boolean", + "value": false, + "description": "Repository code execution is disabled; keep this off for contract preview.", + "onChange": "refresh_pipeline_identity" + }, + "revision": { + "label": "Revision", + "type": "string", + "value": "", + "description": "Required exact 40-character commit hash for Hub custom contracts.", + "onChange": "refresh_pipeline_identity" + }, + "workflow_id": { + "label": "Reviewed Workflow", + "type": "string", + "value": "", + "hidden": true, + "description": "Exact reviewed component partition selected by a first-party Cluster Node." + }, + "modiff_pipeline_identity": { + "label": "Custom Pipeline Identity", + "type": "object", + "value": null, + "hidden": true + }, + "refresh_pipeline_identity_button": { + "label": "Review and Refresh Custom Contract", + "display": "ui_button", + "value": false, + "hidden": true, + "onChange": "refresh_pipeline_identity" + }, + "auto_offload": { + "label": "Enable Auto Offload", + "type": "boolean", + "value": true + }, + "offload_mode": { + "label": "Offload Mode", + "type": "string", + "options": [ + { + "schemaVersion": 1, + "value": "auto_cpu", + "label": "auto_cpu", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "none", + "label": "none", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "model_cpu", + "label": "model_cpu", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "group_cpu", + "label": "group_cpu", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "group_disk", + "label": "group_disk", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + } + ], + "value": "model_cpu", + "default": "model_cpu" + }, + "weight_loading_mode": { + "label": "Weight Loading", + "type": "string", + "default": "cpu", + "options": [ + { + "schemaVersion": 1, + "value": "cpu", + "label": "cpu", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "cuda", + "label": "cuda", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + } + ], + "fieldOptions": { + "controlTier": "advanced" + }, + "description": "Load weights on CPU or CUDA before disk offload. CUDA loading needs room for a complete component and is available only for supported models." + }, + "weight_format": { + "label": "Weight Format", + "type": "string", + "default": "native", + "options": [ + { + "schemaVersion": 1, + "value": "native", + "label": "native", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + } + ], + "hidden": true, + "fieldOptions": { + "controlTier": "advanced" + }, + "description": "Select a backend-declared immutable component format. Missing reviewed files must be installed through Model Manager." + }, + "unet": { + "label": "Denoise Model", + "display": "input", + "type": "diffusers_auto_model" + }, + "vae": { + "label": "VAE", + "display": "input", + "type": "diffusers_auto_model" + }, + "lora_list": { + "label": "Lora", + "display": "input", + "type": "custom_lora" + }, + "text_encoders": { + "label": "Text Encoders", + "display": "output", + "type": "diffusers_auto_models", + "signal": { + "direction": "output", + "origin": "model_type", + "value": "" + }, + "connectionRole": "text_encoders" + }, + "unet_out": { + "label": "Denoise Model", + "display": "output", + "type": "diffusers_auto_model", + "signal": { + "direction": "output", + "origin": "model_type", + "value": "" + }, + "connectionRole": "denoiser" + }, + "vae_out": { + "label": "VAE", + "display": "output", + "type": "diffusers_auto_model", + "signal": { + "direction": "output", + "origin": "model_type", + "value": "" + }, + "connectionRole": "vae" + }, + "scheduler": { + "label": "Scheduler", + "display": "output", + "type": "diffusers_auto_model", + "signal": { + "direction": "output", + "origin": "model_type", + "value": "" + }, + "connectionRole": "scheduler" + }, + "image_encoder": { + "label": "Image Encoder", + "display": "output", + "type": "diffusers_auto_model", + "signal": { + "direction": "output", + "origin": "model_type", + "value": "" + }, + "connectionRole": "image_encoder" + }, + "pipeline_components": { + "label": "Pipeline Components", + "display": "output", + "type": "diffusers_modular_pipeline_components", + "signal": { + "direction": "output", + "origin": "model_type", + "value": "" + }, + "connectionRole": "pipeline_components" + }, + "quant_config": { + "label": "Quant Config", + "display": "input", + "type": "quant_config" + } + }, + "time": [0, 0, 0], + "memory": [0, 0, 0], + "cache": false + }, + "modules.ModularDiffusers.EncodePrompt": { + "module": "modules.ModularDiffusers", + "action": "EncodePrompt", + "type": "custom", + "label": "Encode Prompt", + "category": "embedding", + "description": "", + "resizable": true, + "skipParamsCheck": true, + "style": {}, + "params": { + "pipeline_components": { + "label": "Pipeline Components", + "type": "diffusers_modular_pipeline_components", + "display": "input", + "required": false, + "hidden": true, + "onSignal": "update_node", + "description": "Optional Models Loader components for the reviewed Qwen text-to-image stages.", + "signalCompatibility": { + "required": true, + "role": "pipeline_components", + "values": { + "QwenImageModularPipeline": ["text_encoder"] + } + } + }, + "text_encoders": { + "label": "Text Encoders *", + "type": "diffusers_auto_models", + "display": "input", + "signalCompatibility": { + "role": "text_encoders" + } + }, + "prompt_input": { + "label": "Prompt Input", + "type": "string", + "display": "input", + "description": "Optional connected prompt. When connected, this replaces the inline Prompt value." + }, + "guider": { + "label": "Guider", + "type": "custom_guider", + "display": "input", + "hidden": true, + "description": "Shared Diffusers guidance used by prompt encoding and denoising when the selected pipeline supports it." + }, + "layout_reference_summary": { + "label": "Bound Reference Summary", + "type": "string", + "display": "output", + "hidden": true, + "description": "Display-only ordered reference identities and actual preprocessing sizes from the current encoder cache." + }, + "prompt": { + "label": "Prompt *", + "type": "string", + "display": "textarea", + "default": "" + }, + "negative_prompt": { + "label": "Negative Prompt", + "type": "string", + "display": "textarea", + "default": "" + }, + "max_sequence_length": { + "label": "Maximum Sequence Length", + "type": "int", + "default": 8192, + "min": 1, + "max": 8192, + "step": 1 + }, + "text_encoder_out_layers": { + "label": "Text Encoder Layers", + "type": "int", + "display": "select", + "default": [4, 8, 12, 16, 20, 24, 28, 32], + "options": [ + { + "schemaVersion": 1, + "value": "0", + "label": "0", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "1", + "label": "1", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "2", + "label": "2", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "3", + "label": "3", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "4", + "label": "4", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "5", + "label": "5", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "6", + "label": "6", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "7", + "label": "7", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "8", + "label": "8", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "9", + "label": "9", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "10", + "label": "10", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "11", + "label": "11", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "12", + "label": "12", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "13", + "label": "13", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "14", + "label": "14", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "15", + "label": "15", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "16", + "label": "16", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "17", + "label": "17", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "18", + "label": "18", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "19", + "label": "19", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "20", + "label": "20", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "21", + "label": "21", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "22", + "label": "22", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "23", + "label": "23", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "24", + "label": "24", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "25", + "label": "25", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "26", + "label": "26", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "27", + "label": "27", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "28", + "label": "28", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "29", + "label": "29", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "30", + "label": "30", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "31", + "label": "31", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "32", + "label": "32", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + } + ], + "fieldOptions": { + "multiple": true, + "tupleValue": true, + "tupleLength": 8 + } + }, + "embeddings": { + "label": "Text Embeddings", + "type": "embeddings", + "display": "output" + }, + "doc": { + "label": "Doc", + "type": "string", + "display": "output" + }, + "layout_conditioning": { + "label": "Layout Conditioning", + "type": "layout_conditioning", + "display": "layout", + "fieldOptions": { + "layoutConditioning": { + "schemaVersion": 2, + "sourceRegions": false, + "supportsBoundSourceRegions": true + } + }, + "default": null + }, + "reference_binding": { + "label": "Reference Binding", + "type": "reference_conditioning", + "display": "input", + "fieldOptions": { + "referenceBinding": { + "schemaVersion": 1, + "maxReferences": 10 + } + }, + "default": null + } + }, + "time": [0, 0, 0], + "memory": [0, 0, 0], + "cache": false + }, + "modules.ModularDiffusers.Denoise": { + "module": "modules.ModularDiffusers", + "action": "Denoise", + "type": "custom", + "label": "Denoise", + "category": "sampler", + "description": "", + "resizable": true, + "skipParamsCheck": true, + "style": {}, + "params": { + "pipeline_components": { + "label": "Pipeline Components", + "type": "diffusers_modular_pipeline_components", + "display": "input", + "required": false, + "hidden": true, + "onSignal": [ + "update_node", + { + "action": "signal", + "target": "guider" + }, + { + "action": "signal", + "target": "controlnet_bundle" + } + ], + "description": "Optional Models Loader components for the reviewed Qwen text-to-image stages.", + "signalCompatibility": { + "required": true, + "role": "pipeline_components", + "values": { + "QwenImageModularPipeline": ["denoise"] + } + } + }, + "unet": { + "label": "Denoise Model *", + "type": "diffusers_auto_model", + "display": "input", + "signalCompatibility": { + "role": "denoiser" + } + }, + "embeddings": { + "label": "Text Embeddings *", + "type": "embeddings", + "display": "input" + }, + "width": { + "label": "Width", + "type": "int", + "default": 1024, + "min": 64, + "step": 16 + }, + "height": { + "label": "Height", + "type": "int", + "default": 1024, + "min": 64, + "step": 16 + }, + "seed": { + "label": "Seed", + "type": "int", + "display": "random", + "default": 0, + "min": 0, + "max": 4294967295 + }, + "num_inference_steps": { + "label": "Steps", + "type": "int", + "display": "slider", + "default": 50, + "min": 1, + "max": 100 + }, + "num_images_per_prompt": { + "label": "Images Per Prompt", + "type": "int", + "default": 1, + "min": 1, + "max": 8, + "step": 1 + }, + "image_cond_latents": { + "label": "Reference Latents", + "type": "latents", + "display": "input" + }, + "scheduler": { + "label": "Scheduler *", + "type": "diffusers_auto_model", + "display": "input", + "signalCompatibility": { + "role": "scheduler" + } + }, + "guider": { + "label": "Guider", + "type": "custom_guider", + "display": "input" + }, + "latents": { + "label": "Latents", + "type": "latents", + "display": "output" + }, + "doc": { + "label": "Doc", + "type": "string", + "display": "output" + }, + "reference_binding": { + "label": "Reference Binding", + "type": "reference_conditioning", + "display": "input", + "fieldOptions": { + "referenceBinding": { + "schemaVersion": 1, + "maxReferences": 10 + } + }, + "default": null + } + }, + "time": [0, 0, 0], + "memory": [0, 0, 0], + "cache": false + }, + "modules.ModularDiffusers.DecodeLatents": { + "module": "modules.ModularDiffusers", + "action": "DecodeLatents", + "type": "custom", + "label": "Decode Latents", + "category": "sampler", + "description": "", + "resizable": true, + "skipParamsCheck": true, + "style": {}, + "params": { + "pipeline_components": { + "label": "Pipeline Components", + "type": "diffusers_modular_pipeline_components", + "display": "input", + "required": false, + "hidden": true, + "onSignal": "update_node", + "description": "Optional Models Loader components for the reviewed Qwen text-to-image stages.", + "signalCompatibility": { + "required": true, + "role": "pipeline_components", + "values": { + "QwenImageModularPipeline": ["decoder"] + } + } + }, + "vae": { + "label": "VAE *", + "type": "diffusers_auto_model", + "display": "input", + "signalCompatibility": { + "role": "vae" + } + }, + "latents": { + "label": "Latents *", + "type": "latents", + "display": "input" + }, + "images": { + "label": "Images", + "type": "image", + "display": "output" + }, + "doc": { + "label": "Doc", + "type": "string", + "display": "output" + } + }, + "time": [0, 0, 0], + "memory": [0, 0, 0], + "cache": false + }, + "modules.Image.Preview": { + "module": "modules.Image", + "action": "Preview", + "type": "custom", + "label": "Preview Image", + "category": "image", + "description": "Preview an image", + "resizable": true, + "skipParamsCheck": false, + "style": {}, + "params": { + "vae": { + "type": "pipeline", + "display": "input", + "label": "VAE" + }, + "device": { + "type": "string", + "default": "cpu:0", + "options": { + "cpu:0": { + "schemaVersion": 1, + "value": "cpu:0", + "label": "cpu:0", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "cpu": { + "schemaVersion": 1, + "value": "cpu", + "label": "cpu", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + } + } + }, + "image": { + "type": ["image", "latent"], + "display": "input", + "onChange": { + "action": "show", + "data": { + "true": ["vae", "device"], + "false": [] + }, + "condition": { + "type": "latent" + } + } + }, + "preview": { + "display": "ui_image", + "type": "url", + "dataSource": "output" + }, + "output": { + "type": "image", + "display": "output", + "label": "All images" + }, + "export": { + "type": "str", + "default": "0", + "description": "Export the image at the given index. Leave empty to export all images." + }, + "filtered": { + "type": "image", + "display": "output", + "label": "Selected image" + } + }, + "time": [0, 0, 0], + "memory": [0, 0, 0], + "cache": false + }, + "modules.ModularDiffusers.Guider": { + "module": "modules.ModularDiffusers", + "action": "Guider", + "type": "custom", + "label": "Guider", + "category": "sampler", + "description": "", + "resizable": true, + "skipParamsCheck": true, + "style": {}, + "params": { + "model_type": { + "type": "string", + "default": "", + "hidden": true + }, + "guider": { + "label": "Guider", + "fieldOptions": { + "loading": true + }, + "type": "string", + "options": { + "ClassifierFreeGuidance": { + "schemaVersion": 1, + "value": "ClassifierFreeGuidance", + "label": "Classifier Free Guidance", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "SkipLayerGuidance": { + "schemaVersion": 1, + "value": "SkipLayerGuidance", + "label": "Skip Layer Guidance", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "AdaptiveProjectedGuidance": { + "schemaVersion": 1, + "value": "AdaptiveProjectedGuidance", + "label": "Adaptive Projected Guidance", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "AdaptiveProjectedMixGuidance": { + "schemaVersion": 1, + "value": "AdaptiveProjectedMixGuidance", + "label": "Adaptive Projected Mix Guidance", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "MagnitudeAwareGuidance": { + "schemaVersion": 1, + "value": "MagnitudeAwareGuidance", + "label": "Magnitude Aware Guidance", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "ClassifierFreeZeroStarGuidance": { + "schemaVersion": 1, + "value": "ClassifierFreeZeroStarGuidance", + "label": "Classifier Free Zero Star Guidance", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "AutoGuidance": { + "schemaVersion": 1, + "value": "AutoGuidance", + "label": "Auto Guidance", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "SmoothedEnergyGuidance": { + "schemaVersion": 1, + "value": "SmoothedEnergyGuidance", + "label": "Smoothed Energy Guidance", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "PerturbedAttentionGuidance": { + "schemaVersion": 1, + "value": "PerturbedAttentionGuidance", + "label": "Perturbed Attention Guidance", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "TangentialClassifierFreeGuidance": { + "schemaVersion": 1, + "value": "TangentialClassifierFreeGuidance", + "label": "Tangential Classifier Free Guidance", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "FrequencyDecoupledGuidance": { + "schemaVersion": 1, + "value": "FrequencyDecoupledGuidance", + "label": "Frequency Decoupled Guidance", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + } + }, + "value": "ClassifierFreeGuidance", + "onChange": [ + "updateNode", + { + "SkipLayerGuidance": ["layers_config"], + "AutoGuidance": ["layers_config"], + "SmoothedEnergyGuidance": ["layers_config"], + "PerturbedAttentionGuidance": ["layers_config"] + } + ] + }, + "guidance_scale": { + "label": "Guidance Scale", + "type": "float", + "display": "slider", + "value": 5, + "min": 1.0, + "max": 20.0, + "step": 0.1 + }, + "guidance_rescale": { + "label": "Guidance Rescale", + "type": "float", + "display": "slider", + "value": 0.0, + "min": 0.0, + "max": 10.0, + "step": 0.1 + }, + "use_original_formulation": { + "label": "Original Formulation", + "type": "boolean", + "value": false + }, + "enabled": { + "label": "Enabled", + "type": "boolean", + "value": true + }, + "start": { + "label": "Start", + "type": "float", + "display": "slider", + "value": 0.0, + "min": 0.0, + "max": 1.0, + "step": 0.01 + }, + "stop": { + "label": "Stop", + "type": "float", + "display": "slider", + "value": 1.0, + "min": 0.01, + "max": 1.0, + "step": 0.01 + }, + "guider_out": { + "label": "Guider", + "display": "output", + "type": "custom_guider", + "onSignal": [ + { + "action": "value", + "target": "model_type" + }, + { + "action": "value", + "target": "guider", + "prop": "options", + "data": { + "StableDiffusionXLModularPipeline": [ + "ClassifierFreeGuidance", + "SkipLayerGuidance", + "AdaptiveProjectedGuidance", + "AdaptiveProjectedMixGuidance", + "MagnitudeAwareGuidance", + "ClassifierFreeZeroStarGuidance", + "AutoGuidance", + "SmoothedEnergyGuidance", + "PerturbedAttentionGuidance", + "TangentialClassifierFreeGuidance", + "FrequencyDecoupledGuidance" + ], + "QwenImageModularPipeline": [ + "ClassifierFreeGuidance", + "SkipLayerGuidance", + "AdaptiveProjectedGuidance", + "AdaptiveProjectedMixGuidance", + "MagnitudeAwareGuidance", + "ClassifierFreeZeroStarGuidance", + "AutoGuidance", + "SmoothedEnergyGuidance", + "PerturbedAttentionGuidance", + "TangentialClassifierFreeGuidance", + "FrequencyDecoupledGuidance" + ], + "QwenImageEditModularPipeline": [ + "ClassifierFreeGuidance", + "SkipLayerGuidance", + "AdaptiveProjectedGuidance", + "AdaptiveProjectedMixGuidance", + "MagnitudeAwareGuidance", + "ClassifierFreeZeroStarGuidance", + "AutoGuidance", + "SmoothedEnergyGuidance", + "PerturbedAttentionGuidance", + "TangentialClassifierFreeGuidance", + "FrequencyDecoupledGuidance" + ], + "QwenImageEditPlusModularPipeline": [ + "ClassifierFreeGuidance", + "SkipLayerGuidance", + "AdaptiveProjectedGuidance", + "AdaptiveProjectedMixGuidance", + "MagnitudeAwareGuidance", + "ClassifierFreeZeroStarGuidance", + "AutoGuidance", + "SmoothedEnergyGuidance", + "PerturbedAttentionGuidance", + "TangentialClassifierFreeGuidance", + "FrequencyDecoupledGuidance" + ], + "QwenImageLayeredModularPipeline": [ + "ClassifierFreeGuidance", + "AdaptiveProjectedGuidance", + "AdaptiveProjectedMixGuidance", + "MagnitudeAwareGuidance", + "ClassifierFreeZeroStarGuidance", + "TangentialClassifierFreeGuidance", + "FrequencyDecoupledGuidance" + ], + "FluxModularPipeline": ["ClassifierFreeGuidance"], + "FluxKontextModularPipeline": ["ClassifierFreeGuidance"], + "Flux2KleinBaseModularPipeline": ["ClassifierFreeGuidance"], + "Flux3ModularPipeline": ["ClassifierFreeGuidance"], + "ZImageModularPipeline": [ + "ClassifierFreeGuidance", + "AdaptiveProjectedGuidance", + "AdaptiveProjectedMixGuidance", + "MagnitudeAwareGuidance", + "ClassifierFreeZeroStarGuidance", + "TangentialClassifierFreeGuidance", + "FrequencyDecoupledGuidance" + ], + "WanModularPipeline": [ + "ClassifierFreeGuidance", + "AdaptiveProjectedGuidance", + "AdaptiveProjectedMixGuidance", + "MagnitudeAwareGuidance", + "ClassifierFreeZeroStarGuidance", + "TangentialClassifierFreeGuidance", + "FrequencyDecoupledGuidance" + ], + "WanImage2VideoModularPipeline": [ + "ClassifierFreeGuidance", + "AdaptiveProjectedGuidance", + "AdaptiveProjectedMixGuidance", + "MagnitudeAwareGuidance", + "ClassifierFreeZeroStarGuidance", + "TangentialClassifierFreeGuidance", + "FrequencyDecoupledGuidance" + ] + } + }, + { + "action": "signal", + "target": "layers_config" + } + ], + "signalCompatibility": { + "values": { + "StableDiffusionXLModularPipeline": [ + "ClassifierFreeGuidance", + "SkipLayerGuidance", + "AdaptiveProjectedGuidance", + "AdaptiveProjectedMixGuidance", + "MagnitudeAwareGuidance", + "ClassifierFreeZeroStarGuidance", + "AutoGuidance", + "SmoothedEnergyGuidance", + "PerturbedAttentionGuidance", + "TangentialClassifierFreeGuidance", + "FrequencyDecoupledGuidance" + ], + "QwenImageModularPipeline": [ + "ClassifierFreeGuidance", + "SkipLayerGuidance", + "AdaptiveProjectedGuidance", + "AdaptiveProjectedMixGuidance", + "MagnitudeAwareGuidance", + "ClassifierFreeZeroStarGuidance", + "AutoGuidance", + "SmoothedEnergyGuidance", + "PerturbedAttentionGuidance", + "TangentialClassifierFreeGuidance", + "FrequencyDecoupledGuidance" + ], + "QwenImageEditModularPipeline": [ + "ClassifierFreeGuidance", + "SkipLayerGuidance", + "AdaptiveProjectedGuidance", + "AdaptiveProjectedMixGuidance", + "MagnitudeAwareGuidance", + "ClassifierFreeZeroStarGuidance", + "AutoGuidance", + "SmoothedEnergyGuidance", + "PerturbedAttentionGuidance", + "TangentialClassifierFreeGuidance", + "FrequencyDecoupledGuidance" + ], + "QwenImageEditPlusModularPipeline": [ + "ClassifierFreeGuidance", + "SkipLayerGuidance", + "AdaptiveProjectedGuidance", + "AdaptiveProjectedMixGuidance", + "MagnitudeAwareGuidance", + "ClassifierFreeZeroStarGuidance", + "AutoGuidance", + "SmoothedEnergyGuidance", + "PerturbedAttentionGuidance", + "TangentialClassifierFreeGuidance", + "FrequencyDecoupledGuidance" + ], + "QwenImageLayeredModularPipeline": [ + "ClassifierFreeGuidance", + "AdaptiveProjectedGuidance", + "AdaptiveProjectedMixGuidance", + "MagnitudeAwareGuidance", + "ClassifierFreeZeroStarGuidance", + "TangentialClassifierFreeGuidance", + "FrequencyDecoupledGuidance" + ], + "FluxModularPipeline": ["ClassifierFreeGuidance"], + "FluxKontextModularPipeline": ["ClassifierFreeGuidance"], + "Flux2KleinBaseModularPipeline": ["ClassifierFreeGuidance"], + "Flux3ModularPipeline": ["ClassifierFreeGuidance"], + "ZImageModularPipeline": [ + "ClassifierFreeGuidance", + "AdaptiveProjectedGuidance", + "AdaptiveProjectedMixGuidance", + "MagnitudeAwareGuidance", + "ClassifierFreeZeroStarGuidance", + "TangentialClassifierFreeGuidance", + "FrequencyDecoupledGuidance" + ], + "WanModularPipeline": [ + "ClassifierFreeGuidance", + "AdaptiveProjectedGuidance", + "AdaptiveProjectedMixGuidance", + "MagnitudeAwareGuidance", + "ClassifierFreeZeroStarGuidance", + "TangentialClassifierFreeGuidance", + "FrequencyDecoupledGuidance" + ], + "WanImage2VideoModularPipeline": [ + "ClassifierFreeGuidance", + "AdaptiveProjectedGuidance", + "AdaptiveProjectedMixGuidance", + "MagnitudeAwareGuidance", + "ClassifierFreeZeroStarGuidance", + "TangentialClassifierFreeGuidance", + "FrequencyDecoupledGuidance" + ] + } + } + }, + "layers_config": { + "label": "Layers", + "type": "layers_config", + "display": "input" + } + }, + "time": [0, 0, 0], + "memory": [0, 0, 0], + "cache": false + }, + "modules.HuggingFaceTransformers.LoadImageTextToTextModel": { + "module": "modules.HuggingFaceTransformers", + "action": "LoadImageTextToTextModel", + "type": "custom", + "label": "Load Image/Video-to-Text Model", + "category": "Hugging Face Transformers", + "description": "Load an immutable local-only image/video-to-text model and processor.", + "resizable": true, + "skipParamsCheck": false, + "style": {}, + "params": { + "model": { + "label": "Model", + "display": "output", + "type": "transformers_image_text_to_text" + }, + "pipeline_class": { + "label": "Execution Class", + "type": "string", + "default": "AutoModelForImageTextToText", + "hidden": true + }, + "model_id": { + "label": "Model", + "display": "modelselect", + "type": "string", + "fieldOptions": { + "noValidation": true, + "sources": ["hub", "local"] + } + }, + "revision": { + "label": "Exact Hub Commit", + "type": "string", + "default": "" + }, + "dtype": { + "label": "DType", + "type": "string", + "options": [ + { + "schemaVersion": 1, + "value": "float32", + "label": "float32", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "float16", + "label": "float16", + "compatibility": "incompatible", + "availability": "unavailable", + "installationState": "unavailable", + "disabledReason": "float16 is not supported by the active runtime." + }, + { + "schemaVersion": 1, + "value": "bfloat16", + "label": "bfloat16", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + } + ], + "default": "float32" + }, + "device": { + "label": "Device", + "type": "string", + "options": { + "cpu:0": { + "schemaVersion": 1, + "value": "cpu:0", + "label": "cpu:0", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "cpu": { + "schemaVersion": 1, + "value": "cpu", + "label": "cpu", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + } + }, + "default": "cpu:0" + }, + "receipt": { + "label": "Model Receipt", + "display": "output", + "type": "object" + } + }, + "time": [0, 0, 0], + "memory": [0, 0, 0], + "cache": false + }, + "modules.HuggingFaceTransformers.GenerateImageVideoText": { + "module": "modules.HuggingFaceTransformers", + "action": "GenerateImageVideoText", + "type": "custom", + "label": "Generate Image/Video Text", + "category": "Hugging Face Transformers", + "description": "Generate bounded text from bounded in-memory images or video frames.", + "resizable": true, + "skipParamsCheck": false, + "style": {}, + "params": { + "model": { + "label": "Model", + "display": "input", + "type": "transformers_image_text_to_text" + }, + "prompt": { + "label": "Prompt", + "type": "text", + "default": "" + }, + "operation": { + "label": "Operation", + "type": "string", + "options": [ + { + "schemaVersion": 1, + "value": "standard", + "label": "standard", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "enhance_prompt", + "label": "enhance_prompt", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + } + ], + "default": "standard", + "hidden": true + }, + "enhancement_max_new_tokens": { + "label": "Enhancement Token Limit", + "type": "int", + "default": 3584, + "min": 1, + "max": 3584, + "hidden": true, + "description": "Used only by prompt enhancement; ordinary generation keeps Max New Tokens." + }, + "layout_conditioning": { + "label": "Enhancement Layout", + "type": "layout_conditioning", + "display": "layout", + "default": null, + "hidden": true, + "fieldOptions": { + "layoutConditioning": { + "schemaVersion": 1, + "sourceRegions": false + } + } + }, + "images": { + "label": "Images", + "display": "input", + "type": "image", + "required": false + }, + "video": { + "label": "Video", + "display": "input", + "type": "video", + "required": false + }, + "use_chat_template": { + "label": "Use Chat Template", + "type": "boolean", + "default": true + }, + "max_new_tokens": { + "label": "Max New Tokens", + "type": "int", + "default": 256, + "min": 1, + "max": 2048 + }, + "min_new_tokens": { + "label": "Min New Tokens", + "type": "int", + "default": 0, + "min": 0, + "max": 2048 + }, + "do_sample": { + "label": "Sample", + "type": "boolean", + "default": false + }, + "temperature": { + "label": "Temperature", + "type": "float", + "default": 1.0, + "min": 0.01, + "max": 5.0 + }, + "top_p": { + "label": "Top P", + "type": "float", + "default": 1.0, + "min": 0.01, + "max": 1.0 + }, + "top_k": { + "label": "Top K", + "type": "int", + "default": 50, + "min": 0, + "max": 1000 + }, + "num_beams": { + "label": "Beams", + "type": "int", + "default": 1, + "min": 1, + "max": 8 + }, + "repetition_penalty": { + "label": "Repetition Penalty", + "type": "float", + "default": 1.0, + "min": 0.1, + "max": 10.0 + }, + "text": { + "label": "Generated Text", + "display": "output", + "type": "string" + }, + "result": { + "label": "Generation Result", + "display": "output", + "type": "object" + }, + "proposal_summary": { + "label": "Prompt Proposal Summary", + "display": "output", + "type": "string", + "hidden": true + } + }, + "time": [0, 0, 0], + "memory": [0, 0, 0], + "cache": false + } + } + }, + { + "selection": { + "authoringRecipeId": "flux3-klein-base:edit-image:prompt-preview-authoring:v1", + "executionProfileId": "flux3-klein-base:modular", + "pipelineClass": "Flux3ModularPipeline", + "task": "edit_image" + }, + "rawParentJson": "{\n \"schemaVersion\": 1,\n \"canonicalizationVersion\": 1,\n \"id\": \"flux3-klein-base:edit-image:prompt-preview-authoring:v1\",\n \"baseSpecId\": \"flux3-klein-base:modular:edit-image:v1\",\n \"baseSpecContentHash\": \"studio-spec-v1-c69976c9\",\n \"executionProfileIds\": [\n \"flux3-klein-base:modular\"\n ],\n \"roles\": [\n [\n \"models\",\n \"modules.ModularDiffusers.ModelsLoader\",\n -720,\n -80\n ],\n [\n \"prompt\",\n \"modules.ModularDiffusers.EncodePrompt\",\n -360,\n -240\n ],\n [\n \"denoise\",\n \"modules.ModularDiffusers.Denoise\",\n 80,\n -80\n ],\n [\n \"decode\",\n \"modules.ModularDiffusers.DecodeLatents\",\n 440,\n -80\n ],\n [\n \"preview\",\n \"modules.Image.Preview\",\n 800,\n -80\n ],\n [\n \"guider\",\n \"modules.ModularDiffusers.Guider\",\n -360,\n 160\n ],\n [\n \"loadImage\",\n \"modules.Image.Load\",\n -720,\n 320\n ],\n [\n \"imageEncode\",\n \"modules.ModularDiffusers.ImageEncode\",\n -360,\n 320\n ]\n ],\n \"edges\": [\n [\n \"models\",\n \"text_encoders\",\n \"prompt\",\n \"text_encoders\"\n ],\n [\n \"models\",\n \"unet_out\",\n \"denoise\",\n \"unet\"\n ],\n [\n \"models\",\n \"scheduler\",\n \"denoise\",\n \"scheduler\"\n ],\n [\n \"models\",\n \"vae_out\",\n \"decode\",\n \"vae\"\n ],\n [\n \"prompt\",\n \"embeddings\",\n \"denoise\",\n \"embeddings\"\n ],\n [\n \"denoise\",\n \"latents\",\n \"decode\",\n \"latents\"\n ],\n [\n \"decode\",\n \"images\",\n \"preview\",\n \"image\"\n ],\n [\n \"guider\",\n \"guider_out\",\n \"denoise\",\n \"guider\"\n ],\n [\n \"models\",\n \"vae_out\",\n \"imageEncode\",\n \"vae\"\n ],\n [\n \"loadImage\",\n \"image\",\n \"imageEncode\",\n \"image\"\n ],\n [\n \"imageEncode\",\n \"image_cond_latents\",\n \"denoise\",\n \"image_cond_latents\"\n ],\n [\n \"imageEncode\",\n \"reference_binding\",\n \"prompt\",\n \"reference_binding\"\n ],\n [\n \"imageEncode\",\n \"reference_binding\",\n \"denoise\",\n \"reference_binding\"\n ]\n ],\n \"bindings\": [\n [\n \"models\",\n \"model_type\",\n \"pipelineClass\"\n ],\n [\n \"models\",\n \"repo_id\",\n \"artifact\"\n ],\n [\n \"models\",\n \"revision\",\n \"defaultRevision\"\n ],\n [\n \"models\",\n \"dtype\",\n \"dtype\"\n ],\n [\n \"models\",\n \"device\",\n \"device\"\n ],\n [\n \"models\",\n \"auto_offload\",\n \"autoOffload\"\n ],\n [\n \"models\",\n \"offload_mode\",\n \"offloadMode\"\n ],\n [\n \"models\",\n \"trust_remote_code\",\n \"false\"\n ],\n [\n \"prompt\",\n \"prompt\",\n \"prompt\"\n ],\n [\n \"prompt\",\n \"negative_prompt\",\n \"negativePrompt\"\n ],\n [\n \"denoise\",\n \"width\",\n \"width\"\n ],\n [\n \"denoise\",\n \"height\",\n \"height\"\n ],\n [\n \"denoise\",\n \"seed\",\n \"seed\"\n ],\n [\n \"denoise\",\n \"num_inference_steps\",\n \"steps\"\n ],\n [\n \"prompt\",\n \"max_sequence_length\",\n \"maxSequenceLength\"\n ],\n [\n \"models\",\n \"weight_format\",\n \"weightFormat\"\n ],\n [\n \"guider\",\n \"guider\",\n \"classifierFreeGuidance\"\n ],\n [\n \"guider\",\n \"model_type\",\n \"pipelineClass\"\n ],\n [\n \"guider\",\n \"guidance_scale\",\n \"guidanceScale\"\n ],\n [\n \"loadImage\",\n \"file\",\n \"referenceImages\"\n ],\n [\n \"loadImage\",\n \"alpha_channel\",\n \"alphaMode\"\n ]\n ],\n \"initialValues\": [],\n \"ancillaryOperations\": [\n {\n \"schemaVersion\": 1,\n \"id\": \"flux3-klein-base:edit-image:prompt-preview-authoring:v1:preview\",\n \"parent\": {\n \"authoringRecipeId\": \"flux3-klein-base:edit-image:prompt-preview-authoring:v1\",\n \"baseSpecId\": \"flux3-klein-base:modular:edit-image:v1\",\n \"baseSpecContentHash\": \"studio-spec-v1-c69976c9\",\n \"executionProfileId\": \"flux3-klein-base:modular\",\n \"pipelineClass\": \"Flux3ModularPipeline\",\n \"task\": \"edit_image\"\n },\n \"executionPurpose\": \"explicit_preview\",\n \"roles\": [\n [\n \"provider\",\n \"modules.HuggingFaceTransformers.LoadImageTextToTextModel\",\n -720,\n -400\n ],\n [\n \"proposal\",\n \"modules.HuggingFaceTransformers.GenerateImageVideoText\",\n -360,\n -400\n ]\n ],\n \"edges\": [\n [\n \"provider\",\n \"model\",\n \"proposal\",\n \"model\"\n ]\n ],\n \"bindings\": {\n \"owner\": {\n \"role\": \"prompt\",\n \"promptField\": \"prompt\",\n \"layoutField\": \"layout_conditioning\",\n \"referenceSource\": {\n \"role\": \"loadImage\",\n \"field\": \"image\"\n }\n },\n \"request\": {\n \"role\": \"proposal\",\n \"promptField\": \"prompt\",\n \"layoutField\": \"layout_conditioning\",\n \"imagesField\": \"images\"\n },\n \"output\": {\n \"role\": \"proposal\",\n \"field\": \"proposal_summary\"\n }\n },\n \"initialValues\": [\n [\n \"proposal\",\n \"operation\",\n \"enhance_prompt\"\n ]\n ],\n \"adapter\": {\n \"id\": \"transformers-prompt-enhancement-v1\",\n \"declarationSha256\": \"sha256:18a83a6eddaa2944ae13e80971a068346a72bb07fa0759cd1adbb2ccbb8226fc\"\n },\n \"sourceRegions\": false,\n \"contentHash\": \"studio-ancillary-v1-3c8aea0e\"\n }\n ],\n \"contentHash\": \"studio-authoring-v1-c5c57a50\"\n}\n", + "registry": { + "modules.ModularDiffusers.ModelsLoader": { + "module": "modules.ModularDiffusers", + "action": "ModelsLoader", + "type": "custom", + "label": "Load Models", + "category": "loader", + "description": "", + "resizable": true, + "skipParamsCheck": true, + "style": {}, + "params": { + "model_type": { + "label": "Pipeline Type", + "type": "string", + "options": { + "": { + "schemaVersion": 1, + "value": "", + "label": "", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "DummyCustomPipeline": { + "schemaVersion": 1, + "value": "DummyCustomPipeline", + "label": "Custom", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "StableDiffusionXLModularPipeline": { + "schemaVersion": 1, + "value": "StableDiffusionXLModularPipeline", + "label": "Stable Diffusion XL", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "QwenImageModularPipeline": { + "schemaVersion": 1, + "value": "QwenImageModularPipeline", + "label": "Qwen-Image-2512", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "QwenImageEditModularPipeline": { + "schemaVersion": 1, + "value": "QwenImageEditModularPipeline", + "label": "Qwen-Image-Edit", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "QwenImageEditPlusModularPipeline": { + "schemaVersion": 1, + "value": "QwenImageEditPlusModularPipeline", + "label": "Qwen-Image-Edit-2511", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "QwenImageLayeredModularPipeline": { + "schemaVersion": 1, + "value": "QwenImageLayeredModularPipeline", + "label": "Qwen-Image-Layered", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "FluxModularPipeline": { + "schemaVersion": 1, + "value": "FluxModularPipeline", + "label": "Flux", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "FluxKontextModularPipeline": { + "schemaVersion": 1, + "value": "FluxKontextModularPipeline", + "label": "Flux Kontext", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "Flux2ModularPipeline": { + "schemaVersion": 1, + "value": "Flux2ModularPipeline", + "label": "Flux 2", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "Flux2KleinModularPipeline": { + "schemaVersion": 1, + "value": "Flux2KleinModularPipeline", + "label": "Flux 2 Klein Distilled", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "Flux2KleinBaseModularPipeline": { + "schemaVersion": 1, + "value": "Flux2KleinBaseModularPipeline", + "label": "Flux 2 Klein Base", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "Flux3ModularPipeline": { + "schemaVersion": 1, + "value": "Flux3ModularPipeline", + "label": "FLUX 3 Image Klein Base", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "Flux3DistilledModularPipeline": { + "schemaVersion": 1, + "value": "Flux3DistilledModularPipeline", + "label": "FLUX 3 Image Klein", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "ZImageModularPipeline": { + "schemaVersion": 1, + "value": "ZImageModularPipeline", + "label": "Z-Image", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "WanModularPipeline": { + "schemaVersion": 1, + "value": "WanModularPipeline", + "label": "WAN2 T2V", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "WanImage2VideoModularPipeline": { + "schemaVersion": 1, + "value": "WanImage2VideoModularPipeline", + "label": "WAN2 I2V", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "MiniMaxMusic3ModularPipeline": { + "schemaVersion": 1, + "value": "MiniMaxMusic3ModularPipeline", + "label": "MiniMax Music 3", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "MiniMaxH3ModularPipeline": { + "schemaVersion": 1, + "value": "MiniMaxH3ModularPipeline", + "label": "MiniMax H3", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "AnimaModularPipeline": { + "schemaVersion": 1, + "value": "AnimaModularPipeline", + "label": "Anima", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "ErnieImageModularPipeline": { + "schemaVersion": 1, + "value": "ErnieImageModularPipeline", + "label": "ERNIE Image Turbo", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "HeliosModularPipeline": { + "schemaVersion": 1, + "value": "HeliosModularPipeline", + "label": "Helios", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "HeliosPyramidModularPipeline": { + "schemaVersion": 1, + "value": "HeliosPyramidModularPipeline", + "label": "Helios Pyramid", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "HeliosPyramidDistilledModularPipeline": { + "schemaVersion": 1, + "value": "HeliosPyramidDistilledModularPipeline", + "label": "Helios Pyramid Distilled", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "HunyuanVideo15ModularPipeline": { + "schemaVersion": 1, + "value": "HunyuanVideo15ModularPipeline", + "label": "HunyuanVideo 1.5", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "WanAnimate2ModularPipeline": { + "schemaVersion": 1, + "value": "WanAnimate2ModularPipeline", + "label": "Wan Animate 2", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "WanAnimate2DistilledModularPipeline": { + "schemaVersion": 1, + "value": "WanAnimate2DistilledModularPipeline", + "label": "Wan Animate 2 Distilled", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "Cosmos3OmniModularPipeline": { + "schemaVersion": 1, + "value": "Cosmos3OmniModularPipeline", + "label": "Cosmos 3 Nano", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "Cosmos3DistilledModularPipeline": { + "schemaVersion": 1, + "value": "Cosmos3DistilledModularPipeline", + "label": "Cosmos 3 Distilled", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "Ideogram4ModularPipeline": { + "schemaVersion": 1, + "value": "Ideogram4ModularPipeline", + "label": "Ideogram 4 (Contract only)", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "Krea2ModularPipeline": { + "schemaVersion": 1, + "value": "Krea2ModularPipeline", + "label": "Krea 2 (Contract only)", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "Krea2TurboModularPipeline": { + "schemaVersion": 1, + "value": "Krea2TurboModularPipeline", + "label": "Krea 2 Turbo (Contract only)", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "StableDiffusion3ModularPipeline": { + "schemaVersion": 1, + "value": "StableDiffusion3ModularPipeline", + "label": "Stable Diffusion 3 (Contract only)", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "LTX25ModularPipeline": { + "schemaVersion": 1, + "value": "LTX25ModularPipeline", + "label": "LTX-2.5 (Contract only)", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + } + }, + "onChange": "set_filters", + "description": "Selects the Modular Diffusers pipeline class. This filters compatible checkpoints and publishes the component contract used by connected nodes; it is not the model checkpoint itself." + }, + "repo_id": { + "label": "Repository ID", + "display": "modelselect", + "type": "string", + "value": { + "source": "hub", + "value": "" + }, + "fieldOptions": { + "noValidation": true, + "sources": ["hub", "local"], + "filter": { + "hub": { + "className": [""] + }, + "local": { + "className": [""] + } + } + }, + "onChange": "refresh_pipeline_identity" + }, + "reviewed_variant": { + "label": "Model", + "type": "string", + "value": "", + "options": [], + "hidden": true, + "fieldOptions": { + "controlTier": "essential" + }, + "description": "Select an immutable, reviewed checkpoint for this exact Modular Diffusers pipeline family. Changing it does not replace the workflow graph or reset its parameters." + }, + "dtype": { + "label": "dtype", + "options": [ + { + "schemaVersion": 1, + "value": "float32", + "label": "float32", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "float16", + "label": "float16", + "compatibility": "incompatible", + "availability": "unavailable", + "installationState": "unavailable", + "disabledReason": "float16 is not supported by the active runtime." + }, + { + "schemaVersion": 1, + "value": "bfloat16", + "label": "bfloat16", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + } + ], + "value": "float16" + }, + "device": { + "label": "Device", + "type": "string", + "value": "cpu:0", + "options": { + "cpu:0": { + "schemaVersion": 1, + "value": "cpu:0", + "label": "cpu:0", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "cpu": { + "schemaVersion": 1, + "value": "cpu", + "label": "cpu", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + } + } + }, + "attention_backend": { + "label": "Attention Backend", + "type": "string", + "default": "inherit", + "options": [ + { + "schemaVersion": 1, + "value": "inherit", + "label": "inherit", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "auto", + "label": "auto", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "native", + "label": "native", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "_native_math", + "label": "_native_math", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + } + ], + "description": "Inherit preserves existing native component defaults; explicit choices use the ordinary Diffusers attention API." + }, + "vae_slicing": { + "label": "VAE Slicing", + "type": "boolean", + "default": null, + "hidden": true, + "description": "An unset policy preserves the native VAE configuration; templates may bind an explicit boolean." + }, + "vae_tiling": { + "label": "VAE Tiling", + "type": "boolean", + "default": null, + "hidden": true, + "description": "An unset policy preserves the native VAE configuration; templates may bind an explicit boolean." + }, + "trust_remote_code": { + "label": "Trust Remote Code", + "type": "boolean", + "value": false, + "description": "Repository code execution is disabled; keep this off for contract preview.", + "onChange": "refresh_pipeline_identity" + }, + "revision": { + "label": "Revision", + "type": "string", + "value": "", + "description": "Required exact 40-character commit hash for Hub custom contracts.", + "onChange": "refresh_pipeline_identity" + }, + "workflow_id": { + "label": "Reviewed Workflow", + "type": "string", + "value": "", + "hidden": true, + "description": "Exact reviewed component partition selected by a first-party Cluster Node." + }, + "modiff_pipeline_identity": { + "label": "Custom Pipeline Identity", + "type": "object", + "value": null, + "hidden": true + }, + "refresh_pipeline_identity_button": { + "label": "Review and Refresh Custom Contract", + "display": "ui_button", + "value": false, + "hidden": true, + "onChange": "refresh_pipeline_identity" + }, + "auto_offload": { + "label": "Enable Auto Offload", + "type": "boolean", + "value": true + }, + "offload_mode": { + "label": "Offload Mode", + "type": "string", + "options": [ + { + "schemaVersion": 1, + "value": "auto_cpu", + "label": "auto_cpu", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "none", + "label": "none", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "model_cpu", + "label": "model_cpu", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "group_cpu", + "label": "group_cpu", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "group_disk", + "label": "group_disk", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + } + ], + "value": "model_cpu", + "default": "model_cpu" + }, + "weight_loading_mode": { + "label": "Weight Loading", + "type": "string", + "default": "cpu", + "options": [ + { + "schemaVersion": 1, + "value": "cpu", + "label": "cpu", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "cuda", + "label": "cuda", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + } + ], + "fieldOptions": { + "controlTier": "advanced" + }, + "description": "Load weights on CPU or CUDA before disk offload. CUDA loading needs room for a complete component and is available only for supported models." + }, + "weight_format": { + "label": "Weight Format", + "type": "string", + "default": "native", + "options": [ + { + "schemaVersion": 1, + "value": "native", + "label": "native", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + } + ], + "hidden": true, + "fieldOptions": { + "controlTier": "advanced" + }, + "description": "Select a backend-declared immutable component format. Missing reviewed files must be installed through Model Manager." + }, + "unet": { + "label": "Denoise Model", + "display": "input", + "type": "diffusers_auto_model" + }, + "vae": { + "label": "VAE", + "display": "input", + "type": "diffusers_auto_model" + }, + "lora_list": { + "label": "Lora", + "display": "input", + "type": "custom_lora" + }, + "text_encoders": { + "label": "Text Encoders", + "display": "output", + "type": "diffusers_auto_models", + "signal": { + "direction": "output", + "origin": "model_type", + "value": "" + }, + "connectionRole": "text_encoders" + }, + "unet_out": { + "label": "Denoise Model", + "display": "output", + "type": "diffusers_auto_model", + "signal": { + "direction": "output", + "origin": "model_type", + "value": "" + }, + "connectionRole": "denoiser" + }, + "vae_out": { + "label": "VAE", + "display": "output", + "type": "diffusers_auto_model", + "signal": { + "direction": "output", + "origin": "model_type", + "value": "" + }, + "connectionRole": "vae" + }, + "scheduler": { + "label": "Scheduler", + "display": "output", + "type": "diffusers_auto_model", + "signal": { + "direction": "output", + "origin": "model_type", + "value": "" + }, + "connectionRole": "scheduler" + }, + "image_encoder": { + "label": "Image Encoder", + "display": "output", + "type": "diffusers_auto_model", + "signal": { + "direction": "output", + "origin": "model_type", + "value": "" + }, + "connectionRole": "image_encoder" + }, + "pipeline_components": { + "label": "Pipeline Components", + "display": "output", + "type": "diffusers_modular_pipeline_components", + "signal": { + "direction": "output", + "origin": "model_type", + "value": "" + }, + "connectionRole": "pipeline_components" + }, + "quant_config": { + "label": "Quant Config", + "display": "input", + "type": "quant_config" + } + }, + "time": [0, 0, 0], + "memory": [0, 0, 0], + "cache": false + }, + "modules.ModularDiffusers.EncodePrompt": { + "module": "modules.ModularDiffusers", + "action": "EncodePrompt", + "type": "custom", + "label": "Encode Prompt", + "category": "embedding", + "description": "", + "resizable": true, + "skipParamsCheck": true, + "style": {}, + "params": { + "pipeline_components": { + "label": "Pipeline Components", + "type": "diffusers_modular_pipeline_components", + "display": "input", + "required": false, + "hidden": true, + "onSignal": "update_node", + "description": "Optional Models Loader components for the reviewed Qwen text-to-image stages.", + "signalCompatibility": { + "required": true, + "role": "pipeline_components", + "values": { + "QwenImageModularPipeline": ["text_encoder"] + } + } + }, + "text_encoders": { + "label": "Text Encoders *", + "type": "diffusers_auto_models", + "display": "input", + "signalCompatibility": { + "role": "text_encoders" + } + }, + "prompt_input": { + "label": "Prompt Input", + "type": "string", + "display": "input", + "description": "Optional connected prompt. When connected, this replaces the inline Prompt value." + }, + "guider": { + "label": "Guider", + "type": "custom_guider", + "display": "input", + "hidden": true, + "description": "Shared Diffusers guidance used by prompt encoding and denoising when the selected pipeline supports it." + }, + "layout_reference_summary": { + "label": "Bound Reference Summary", + "type": "string", + "display": "output", + "hidden": true, + "description": "Display-only ordered reference identities and actual preprocessing sizes from the current encoder cache." + }, + "prompt": { + "label": "Prompt *", + "type": "string", + "display": "textarea", + "default": "" + }, + "negative_prompt": { + "label": "Negative Prompt", + "type": "string", + "display": "textarea", + "default": "" + }, + "max_sequence_length": { + "label": "Maximum Sequence Length", + "type": "int", + "default": 8192, + "min": 1, + "max": 8192, + "step": 1 + }, + "text_encoder_out_layers": { + "label": "Text Encoder Layers", + "type": "int", + "display": "select", + "default": [4, 8, 12, 16, 20, 24, 28, 32], + "options": [ + { + "schemaVersion": 1, + "value": "0", + "label": "0", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "1", + "label": "1", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "2", + "label": "2", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "3", + "label": "3", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "4", + "label": "4", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "5", + "label": "5", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "6", + "label": "6", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "7", + "label": "7", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "8", + "label": "8", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "9", + "label": "9", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "10", + "label": "10", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "11", + "label": "11", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "12", + "label": "12", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "13", + "label": "13", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "14", + "label": "14", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "15", + "label": "15", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "16", + "label": "16", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "17", + "label": "17", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "18", + "label": "18", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "19", + "label": "19", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "20", + "label": "20", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "21", + "label": "21", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "22", + "label": "22", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "23", + "label": "23", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "24", + "label": "24", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "25", + "label": "25", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "26", + "label": "26", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "27", + "label": "27", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "28", + "label": "28", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "29", + "label": "29", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "30", + "label": "30", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "31", + "label": "31", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "32", + "label": "32", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + } + ], + "fieldOptions": { + "multiple": true, + "tupleValue": true, + "tupleLength": 8 + } + }, + "embeddings": { + "label": "Text Embeddings", + "type": "embeddings", + "display": "output" + }, + "doc": { + "label": "Doc", + "type": "string", + "display": "output" + }, + "layout_conditioning": { + "label": "Layout Conditioning", + "type": "layout_conditioning", + "display": "layout", + "fieldOptions": { + "layoutConditioning": { + "schemaVersion": 2, + "sourceRegions": false, + "supportsBoundSourceRegions": true + } + }, + "default": null + }, + "reference_binding": { + "label": "Reference Binding", + "type": "reference_conditioning", + "display": "input", + "fieldOptions": { + "referenceBinding": { + "schemaVersion": 1, + "maxReferences": 10 + } + }, + "default": null + } + }, + "time": [0, 0, 0], + "memory": [0, 0, 0], + "cache": false + }, + "modules.ModularDiffusers.Denoise": { + "module": "modules.ModularDiffusers", + "action": "Denoise", + "type": "custom", + "label": "Denoise", + "category": "sampler", + "description": "", + "resizable": true, + "skipParamsCheck": true, + "style": {}, + "params": { + "pipeline_components": { + "label": "Pipeline Components", + "type": "diffusers_modular_pipeline_components", + "display": "input", + "required": false, + "hidden": true, + "onSignal": [ + "update_node", + { + "action": "signal", + "target": "guider" + }, + { + "action": "signal", + "target": "controlnet_bundle" + } + ], + "description": "Optional Models Loader components for the reviewed Qwen text-to-image stages.", + "signalCompatibility": { + "required": true, + "role": "pipeline_components", + "values": { + "QwenImageModularPipeline": ["denoise"] + } + } + }, + "unet": { + "label": "Denoise Model *", + "type": "diffusers_auto_model", + "display": "input", + "signalCompatibility": { + "role": "denoiser" + } + }, + "embeddings": { + "label": "Text Embeddings *", + "type": "embeddings", + "display": "input" + }, + "width": { + "label": "Width", + "type": "int", + "default": 1024, + "min": 64, + "step": 16 + }, + "height": { + "label": "Height", + "type": "int", + "default": 1024, + "min": 64, + "step": 16 + }, + "seed": { + "label": "Seed", + "type": "int", + "display": "random", + "default": 0, + "min": 0, + "max": 4294967295 + }, + "num_inference_steps": { + "label": "Steps", + "type": "int", + "display": "slider", + "default": 50, + "min": 1, + "max": 100 + }, + "num_images_per_prompt": { + "label": "Images Per Prompt", + "type": "int", + "default": 1, + "min": 1, + "max": 8, + "step": 1 + }, + "image_cond_latents": { + "label": "Reference Latents", + "type": "latents", + "display": "input" + }, + "scheduler": { + "label": "Scheduler *", + "type": "diffusers_auto_model", + "display": "input", + "signalCompatibility": { + "role": "scheduler" + } + }, + "guider": { + "label": "Guider", + "type": "custom_guider", + "display": "input" + }, + "latents": { + "label": "Latents", + "type": "latents", + "display": "output" + }, + "doc": { + "label": "Doc", + "type": "string", + "display": "output" + }, + "reference_binding": { + "label": "Reference Binding", + "type": "reference_conditioning", + "display": "input", + "fieldOptions": { + "referenceBinding": { + "schemaVersion": 1, + "maxReferences": 10 + } + }, + "default": null + } + }, + "time": [0, 0, 0], + "memory": [0, 0, 0], + "cache": false + }, + "modules.ModularDiffusers.DecodeLatents": { + "module": "modules.ModularDiffusers", + "action": "DecodeLatents", + "type": "custom", + "label": "Decode Latents", + "category": "sampler", + "description": "", + "resizable": true, + "skipParamsCheck": true, + "style": {}, + "params": { + "pipeline_components": { + "label": "Pipeline Components", + "type": "diffusers_modular_pipeline_components", + "display": "input", + "required": false, + "hidden": true, + "onSignal": "update_node", + "description": "Optional Models Loader components for the reviewed Qwen text-to-image stages.", + "signalCompatibility": { + "required": true, + "role": "pipeline_components", + "values": { + "QwenImageModularPipeline": ["decoder"] + } + } + }, + "vae": { + "label": "VAE *", + "type": "diffusers_auto_model", + "display": "input", + "signalCompatibility": { + "role": "vae" + } + }, + "latents": { + "label": "Latents *", + "type": "latents", + "display": "input" + }, + "images": { + "label": "Images", + "type": "image", + "display": "output" + }, + "doc": { + "label": "Doc", + "type": "string", + "display": "output" + } + }, + "time": [0, 0, 0], + "memory": [0, 0, 0], + "cache": false + }, + "modules.Image.Preview": { + "module": "modules.Image", + "action": "Preview", + "type": "custom", + "label": "Preview Image", + "category": "image", + "description": "Preview an image", + "resizable": true, + "skipParamsCheck": false, + "style": {}, + "params": { + "vae": { + "type": "pipeline", + "display": "input", + "label": "VAE" + }, + "device": { + "type": "string", + "default": "cpu:0", + "options": { + "cpu:0": { + "schemaVersion": 1, + "value": "cpu:0", + "label": "cpu:0", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "cpu": { + "schemaVersion": 1, + "value": "cpu", + "label": "cpu", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + } + } + }, + "image": { + "type": ["image", "latent"], + "display": "input", + "onChange": { + "action": "show", + "data": { + "true": ["vae", "device"], + "false": [] + }, + "condition": { + "type": "latent" + } + } + }, + "preview": { + "display": "ui_image", + "type": "url", + "dataSource": "output" + }, + "output": { + "type": "image", + "display": "output", + "label": "All images" + }, + "export": { + "type": "str", + "default": "0", + "description": "Export the image at the given index. Leave empty to export all images." + }, + "filtered": { + "type": "image", + "display": "output", + "label": "Selected image" + } + }, + "time": [0, 0, 0], + "memory": [0, 0, 0], + "cache": false + }, + "modules.ModularDiffusers.Guider": { + "module": "modules.ModularDiffusers", + "action": "Guider", + "type": "custom", + "label": "Guider", + "category": "sampler", + "description": "", + "resizable": true, + "skipParamsCheck": true, + "style": {}, + "params": { + "model_type": { + "type": "string", + "default": "", + "hidden": true + }, + "guider": { + "label": "Guider", + "fieldOptions": { + "loading": true + }, + "type": "string", + "options": { + "ClassifierFreeGuidance": { + "schemaVersion": 1, + "value": "ClassifierFreeGuidance", + "label": "Classifier Free Guidance", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "SkipLayerGuidance": { + "schemaVersion": 1, + "value": "SkipLayerGuidance", + "label": "Skip Layer Guidance", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "AdaptiveProjectedGuidance": { + "schemaVersion": 1, + "value": "AdaptiveProjectedGuidance", + "label": "Adaptive Projected Guidance", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "AdaptiveProjectedMixGuidance": { + "schemaVersion": 1, + "value": "AdaptiveProjectedMixGuidance", + "label": "Adaptive Projected Mix Guidance", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "MagnitudeAwareGuidance": { + "schemaVersion": 1, + "value": "MagnitudeAwareGuidance", + "label": "Magnitude Aware Guidance", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "ClassifierFreeZeroStarGuidance": { + "schemaVersion": 1, + "value": "ClassifierFreeZeroStarGuidance", + "label": "Classifier Free Zero Star Guidance", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "AutoGuidance": { + "schemaVersion": 1, + "value": "AutoGuidance", + "label": "Auto Guidance", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "SmoothedEnergyGuidance": { + "schemaVersion": 1, + "value": "SmoothedEnergyGuidance", + "label": "Smoothed Energy Guidance", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "PerturbedAttentionGuidance": { + "schemaVersion": 1, + "value": "PerturbedAttentionGuidance", + "label": "Perturbed Attention Guidance", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "TangentialClassifierFreeGuidance": { + "schemaVersion": 1, + "value": "TangentialClassifierFreeGuidance", + "label": "Tangential Classifier Free Guidance", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "FrequencyDecoupledGuidance": { + "schemaVersion": 1, + "value": "FrequencyDecoupledGuidance", + "label": "Frequency Decoupled Guidance", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + } + }, + "value": "ClassifierFreeGuidance", + "onChange": [ + "updateNode", + { + "SkipLayerGuidance": ["layers_config"], + "AutoGuidance": ["layers_config"], + "SmoothedEnergyGuidance": ["layers_config"], + "PerturbedAttentionGuidance": ["layers_config"] + } + ] + }, + "guidance_scale": { + "label": "Guidance Scale", + "type": "float", + "display": "slider", + "value": 5, + "min": 1.0, + "max": 20.0, + "step": 0.1 + }, + "guidance_rescale": { + "label": "Guidance Rescale", + "type": "float", + "display": "slider", + "value": 0.0, + "min": 0.0, + "max": 10.0, + "step": 0.1 + }, + "use_original_formulation": { + "label": "Original Formulation", + "type": "boolean", + "value": false + }, + "enabled": { + "label": "Enabled", + "type": "boolean", + "value": true + }, + "start": { + "label": "Start", + "type": "float", + "display": "slider", + "value": 0.0, + "min": 0.0, + "max": 1.0, + "step": 0.01 + }, + "stop": { + "label": "Stop", + "type": "float", + "display": "slider", + "value": 1.0, + "min": 0.01, + "max": 1.0, + "step": 0.01 + }, + "guider_out": { + "label": "Guider", + "display": "output", + "type": "custom_guider", + "onSignal": [ + { + "action": "value", + "target": "model_type" + }, + { + "action": "value", + "target": "guider", + "prop": "options", + "data": { + "StableDiffusionXLModularPipeline": [ + "ClassifierFreeGuidance", + "SkipLayerGuidance", + "AdaptiveProjectedGuidance", + "AdaptiveProjectedMixGuidance", + "MagnitudeAwareGuidance", + "ClassifierFreeZeroStarGuidance", + "AutoGuidance", + "SmoothedEnergyGuidance", + "PerturbedAttentionGuidance", + "TangentialClassifierFreeGuidance", + "FrequencyDecoupledGuidance" + ], + "QwenImageModularPipeline": [ + "ClassifierFreeGuidance", + "SkipLayerGuidance", + "AdaptiveProjectedGuidance", + "AdaptiveProjectedMixGuidance", + "MagnitudeAwareGuidance", + "ClassifierFreeZeroStarGuidance", + "AutoGuidance", + "SmoothedEnergyGuidance", + "PerturbedAttentionGuidance", + "TangentialClassifierFreeGuidance", + "FrequencyDecoupledGuidance" + ], + "QwenImageEditModularPipeline": [ + "ClassifierFreeGuidance", + "SkipLayerGuidance", + "AdaptiveProjectedGuidance", + "AdaptiveProjectedMixGuidance", + "MagnitudeAwareGuidance", + "ClassifierFreeZeroStarGuidance", + "AutoGuidance", + "SmoothedEnergyGuidance", + "PerturbedAttentionGuidance", + "TangentialClassifierFreeGuidance", + "FrequencyDecoupledGuidance" + ], + "QwenImageEditPlusModularPipeline": [ + "ClassifierFreeGuidance", + "SkipLayerGuidance", + "AdaptiveProjectedGuidance", + "AdaptiveProjectedMixGuidance", + "MagnitudeAwareGuidance", + "ClassifierFreeZeroStarGuidance", + "AutoGuidance", + "SmoothedEnergyGuidance", + "PerturbedAttentionGuidance", + "TangentialClassifierFreeGuidance", + "FrequencyDecoupledGuidance" + ], + "QwenImageLayeredModularPipeline": [ + "ClassifierFreeGuidance", + "AdaptiveProjectedGuidance", + "AdaptiveProjectedMixGuidance", + "MagnitudeAwareGuidance", + "ClassifierFreeZeroStarGuidance", + "TangentialClassifierFreeGuidance", + "FrequencyDecoupledGuidance" + ], + "FluxModularPipeline": ["ClassifierFreeGuidance"], + "FluxKontextModularPipeline": ["ClassifierFreeGuidance"], + "Flux2KleinBaseModularPipeline": ["ClassifierFreeGuidance"], + "Flux3ModularPipeline": ["ClassifierFreeGuidance"], + "ZImageModularPipeline": [ + "ClassifierFreeGuidance", + "AdaptiveProjectedGuidance", + "AdaptiveProjectedMixGuidance", + "MagnitudeAwareGuidance", + "ClassifierFreeZeroStarGuidance", + "TangentialClassifierFreeGuidance", + "FrequencyDecoupledGuidance" + ], + "WanModularPipeline": [ + "ClassifierFreeGuidance", + "AdaptiveProjectedGuidance", + "AdaptiveProjectedMixGuidance", + "MagnitudeAwareGuidance", + "ClassifierFreeZeroStarGuidance", + "TangentialClassifierFreeGuidance", + "FrequencyDecoupledGuidance" + ], + "WanImage2VideoModularPipeline": [ + "ClassifierFreeGuidance", + "AdaptiveProjectedGuidance", + "AdaptiveProjectedMixGuidance", + "MagnitudeAwareGuidance", + "ClassifierFreeZeroStarGuidance", + "TangentialClassifierFreeGuidance", + "FrequencyDecoupledGuidance" + ] + } + }, + { + "action": "signal", + "target": "layers_config" + } + ], + "signalCompatibility": { + "values": { + "StableDiffusionXLModularPipeline": [ + "ClassifierFreeGuidance", + "SkipLayerGuidance", + "AdaptiveProjectedGuidance", + "AdaptiveProjectedMixGuidance", + "MagnitudeAwareGuidance", + "ClassifierFreeZeroStarGuidance", + "AutoGuidance", + "SmoothedEnergyGuidance", + "PerturbedAttentionGuidance", + "TangentialClassifierFreeGuidance", + "FrequencyDecoupledGuidance" + ], + "QwenImageModularPipeline": [ + "ClassifierFreeGuidance", + "SkipLayerGuidance", + "AdaptiveProjectedGuidance", + "AdaptiveProjectedMixGuidance", + "MagnitudeAwareGuidance", + "ClassifierFreeZeroStarGuidance", + "AutoGuidance", + "SmoothedEnergyGuidance", + "PerturbedAttentionGuidance", + "TangentialClassifierFreeGuidance", + "FrequencyDecoupledGuidance" + ], + "QwenImageEditModularPipeline": [ + "ClassifierFreeGuidance", + "SkipLayerGuidance", + "AdaptiveProjectedGuidance", + "AdaptiveProjectedMixGuidance", + "MagnitudeAwareGuidance", + "ClassifierFreeZeroStarGuidance", + "AutoGuidance", + "SmoothedEnergyGuidance", + "PerturbedAttentionGuidance", + "TangentialClassifierFreeGuidance", + "FrequencyDecoupledGuidance" + ], + "QwenImageEditPlusModularPipeline": [ + "ClassifierFreeGuidance", + "SkipLayerGuidance", + "AdaptiveProjectedGuidance", + "AdaptiveProjectedMixGuidance", + "MagnitudeAwareGuidance", + "ClassifierFreeZeroStarGuidance", + "AutoGuidance", + "SmoothedEnergyGuidance", + "PerturbedAttentionGuidance", + "TangentialClassifierFreeGuidance", + "FrequencyDecoupledGuidance" + ], + "QwenImageLayeredModularPipeline": [ + "ClassifierFreeGuidance", + "AdaptiveProjectedGuidance", + "AdaptiveProjectedMixGuidance", + "MagnitudeAwareGuidance", + "ClassifierFreeZeroStarGuidance", + "TangentialClassifierFreeGuidance", + "FrequencyDecoupledGuidance" + ], + "FluxModularPipeline": ["ClassifierFreeGuidance"], + "FluxKontextModularPipeline": ["ClassifierFreeGuidance"], + "Flux2KleinBaseModularPipeline": ["ClassifierFreeGuidance"], + "Flux3ModularPipeline": ["ClassifierFreeGuidance"], + "ZImageModularPipeline": [ + "ClassifierFreeGuidance", + "AdaptiveProjectedGuidance", + "AdaptiveProjectedMixGuidance", + "MagnitudeAwareGuidance", + "ClassifierFreeZeroStarGuidance", + "TangentialClassifierFreeGuidance", + "FrequencyDecoupledGuidance" + ], + "WanModularPipeline": [ + "ClassifierFreeGuidance", + "AdaptiveProjectedGuidance", + "AdaptiveProjectedMixGuidance", + "MagnitudeAwareGuidance", + "ClassifierFreeZeroStarGuidance", + "TangentialClassifierFreeGuidance", + "FrequencyDecoupledGuidance" + ], + "WanImage2VideoModularPipeline": [ + "ClassifierFreeGuidance", + "AdaptiveProjectedGuidance", + "AdaptiveProjectedMixGuidance", + "MagnitudeAwareGuidance", + "ClassifierFreeZeroStarGuidance", + "TangentialClassifierFreeGuidance", + "FrequencyDecoupledGuidance" + ] + } + } + }, + "layers_config": { + "label": "Layers", + "type": "layers_config", + "display": "input" + } + }, + "time": [0, 0, 0], + "memory": [0, 0, 0], + "cache": false + }, + "modules.Image.Load": { + "module": "modules.Image", + "action": "Load", + "type": "custom", + "label": "Load Image", + "category": "image", + "description": "Load an image from a file", + "resizable": true, + "skipParamsCheck": false, + "style": {}, + "params": { + "image": { + "label": "Image", + "display": "output", + "type": "image" + }, + "label": { + "display": "ui_label", + "value": "Load Image" + }, + "file": { + "label": false, + "display": "filebrowser", + "type": "str", + "fieldOptions": { + "fileTypes": ["image"], + "multiple": true + } + }, + "alpha_channel": { + "label": "Alpha Channel", + "type": "string", + "options": [ + { + "schemaVersion": 1, + "value": "ignore", + "label": "ignore", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "add alpha", + "label": "add alpha", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "remove alpha", + "label": "remove alpha", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + } + ], + "default": "ignore" + }, + "width": { + "display": "output", + "type": "int" + }, + "height": { + "display": "output", + "type": "int" + }, + "mask": { + "display": "output", + "type": "image", + "label": "Alpha mask" + }, + "source_hash": { + "display": "output", + "type": "str", + "label": "Source hash" + } + }, + "time": [0, 0, 0], + "memory": [0, 0, 0], + "cache": false + }, + "modules.ModularDiffusers.ImageEncode": { + "module": "modules.ModularDiffusers", + "action": "ImageEncode", + "type": "custom", + "label": "Encode Image", + "category": "sampler", + "description": "", + "resizable": true, + "skipParamsCheck": true, + "style": {}, + "params": { + "layout_reference_summary": { + "label": "Bound Reference Summary", + "type": "string", + "display": "output", + "hidden": true, + "description": "Display-only ordered reference identities and actual preprocessing sizes from this image encoding cache." + }, + "vae": { + "label": "VAE *", + "type": "diffusers_auto_model", + "display": "input", + "signalCompatibility": { + "role": "vae" + } + }, + "encode_summary_data": { + "label": "Encode summary", + "display": "output", + "type": "str", + "hidden": true + }, + "encode_summary": { + "label": "Encode summary", + "display": "ui_text", + "type": "text", + "dataSource": "encode_summary_data", + "hidden": true + }, + "image": { + "label": "Image *", + "type": "image", + "display": "input" + }, + "image_cond_latents": { + "label": "Reference Latents", + "type": "latents", + "display": "output" + }, + "reference_binding": { + "label": "Reference Binding", + "type": "reference_conditioning", + "display": "output", + "fieldOptions": { + "referenceBinding": { + "schemaVersion": 1, + "maxReferences": 10 + } + } + }, + "doc": { + "label": "Doc", + "type": "string", + "display": "output" + } + }, + "time": [0, 0, 0], + "memory": [0, 0, 0], + "cache": false + }, + "modules.HuggingFaceTransformers.LoadImageTextToTextModel": { + "module": "modules.HuggingFaceTransformers", + "action": "LoadImageTextToTextModel", + "type": "custom", + "label": "Load Image/Video-to-Text Model", + "category": "Hugging Face Transformers", + "description": "Load an immutable local-only image/video-to-text model and processor.", + "resizable": true, + "skipParamsCheck": false, + "style": {}, + "params": { + "model": { + "label": "Model", + "display": "output", + "type": "transformers_image_text_to_text" + }, + "pipeline_class": { + "label": "Execution Class", + "type": "string", + "default": "AutoModelForImageTextToText", + "hidden": true + }, + "model_id": { + "label": "Model", + "display": "modelselect", + "type": "string", + "fieldOptions": { + "noValidation": true, + "sources": ["hub", "local"] + } + }, + "revision": { + "label": "Exact Hub Commit", + "type": "string", + "default": "" + }, + "dtype": { + "label": "DType", + "type": "string", + "options": [ + { + "schemaVersion": 1, + "value": "float32", + "label": "float32", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "float16", + "label": "float16", + "compatibility": "incompatible", + "availability": "unavailable", + "installationState": "unavailable", + "disabledReason": "float16 is not supported by the active runtime." + }, + { + "schemaVersion": 1, + "value": "bfloat16", + "label": "bfloat16", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + } + ], + "default": "float32" + }, + "device": { + "label": "Device", + "type": "string", + "options": { + "cpu:0": { + "schemaVersion": 1, + "value": "cpu:0", + "label": "cpu:0", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "cpu": { + "schemaVersion": 1, + "value": "cpu", + "label": "cpu", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + } + }, + "default": "cpu:0" + }, + "receipt": { + "label": "Model Receipt", + "display": "output", + "type": "object" + } + }, + "time": [0, 0, 0], + "memory": [0, 0, 0], + "cache": false + }, + "modules.HuggingFaceTransformers.GenerateImageVideoText": { + "module": "modules.HuggingFaceTransformers", + "action": "GenerateImageVideoText", + "type": "custom", + "label": "Generate Image/Video Text", + "category": "Hugging Face Transformers", + "description": "Generate bounded text from bounded in-memory images or video frames.", + "resizable": true, + "skipParamsCheck": false, + "style": {}, + "params": { + "model": { + "label": "Model", + "display": "input", + "type": "transformers_image_text_to_text" + }, + "prompt": { + "label": "Prompt", + "type": "text", + "default": "" + }, + "operation": { + "label": "Operation", + "type": "string", + "options": [ + { + "schemaVersion": 1, + "value": "standard", + "label": "standard", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "enhance_prompt", + "label": "enhance_prompt", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + } + ], + "default": "standard", + "hidden": true + }, + "enhancement_max_new_tokens": { + "label": "Enhancement Token Limit", + "type": "int", + "default": 3584, + "min": 1, + "max": 3584, + "hidden": true, + "description": "Used only by prompt enhancement; ordinary generation keeps Max New Tokens." + }, + "layout_conditioning": { + "label": "Enhancement Layout", + "type": "layout_conditioning", + "display": "layout", + "default": null, + "hidden": true, + "fieldOptions": { + "layoutConditioning": { + "schemaVersion": 1, + "sourceRegions": false + } + } + }, + "images": { + "label": "Images", + "display": "input", + "type": "image", + "required": false + }, + "video": { + "label": "Video", + "display": "input", + "type": "video", + "required": false + }, + "use_chat_template": { + "label": "Use Chat Template", + "type": "boolean", + "default": true + }, + "max_new_tokens": { + "label": "Max New Tokens", + "type": "int", + "default": 256, + "min": 1, + "max": 2048 + }, + "min_new_tokens": { + "label": "Min New Tokens", + "type": "int", + "default": 0, + "min": 0, + "max": 2048 + }, + "do_sample": { + "label": "Sample", + "type": "boolean", + "default": false + }, + "temperature": { + "label": "Temperature", + "type": "float", + "default": 1.0, + "min": 0.01, + "max": 5.0 + }, + "top_p": { + "label": "Top P", + "type": "float", + "default": 1.0, + "min": 0.01, + "max": 1.0 + }, + "top_k": { + "label": "Top K", + "type": "int", + "default": 50, + "min": 0, + "max": 1000 + }, + "num_beams": { + "label": "Beams", + "type": "int", + "default": 1, + "min": 1, + "max": 8 + }, + "repetition_penalty": { + "label": "Repetition Penalty", + "type": "float", + "default": 1.0, + "min": 0.1, + "max": 10.0 + }, + "text": { + "label": "Generated Text", + "display": "output", + "type": "string" + }, + "result": { + "label": "Generation Result", + "display": "output", + "type": "object" + }, + "proposal_summary": { + "label": "Prompt Proposal Summary", + "display": "output", + "type": "string", + "hidden": true + } + }, + "time": [0, 0, 0], + "memory": [0, 0, 0], + "cache": false + } + } + } + ] +} diff --git a/tests/fixtures/ancillary-starter.v1.json b/tests/fixtures/ancillary-starter.v1.json new file mode 100644 index 00000000..5f80ca6a --- /dev/null +++ b/tests/fixtures/ancillary-starter.v1.json @@ -0,0 +1,3271 @@ +{ + "proofScope": "Actual constructor-trapped metadata producer capture only. Private profile selection was overridden only in the fixture harness after normal refusal; this fixture grants no endpoint admission, execution readiness, model or hardware qualification.", + "selection": { + "pipelineClass": "Flux3DistilledModularPipeline", + "task": "text_to_image", + "executionProfileId": "flux3-klein:modular", + "authoringRecipeId": "flux3-klein:text-to-image:prompt-preview-authoring:v1" + }, + "response": { + "schemaVersion": 1, + "pipelineClass": "Flux3DistilledModularPipeline", + "task": "text_to_image", + "workflowId": "text2image", + "nodes": [ + { + "operation": { + "pipelineClass": "Flux3DistilledModularPipeline", + "task": "text_to_image", + "operationId": "diffusion.load_models", + "nodeKey": "modules.ModularDiffusers.ModelsLoader", + "nodeType": "loader", + "blockName": null, + "decomposition": "loader", + "support": "declared", + "ports": [ + { + "name": "model_type", + "semanticName": "model_type", + "direction": "input", + "roles": ["value"], + "types": ["string"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "repo_id", + "semanticName": "repo_id", + "direction": "input", + "roles": ["value"], + "types": ["string"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "reviewed_variant", + "semanticName": "reviewed_variant", + "direction": "input", + "roles": ["value"], + "types": ["string"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "device", + "semanticName": "device", + "direction": "input", + "roles": ["value"], + "types": ["string"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "attention_backend", + "semanticName": "attention_backend", + "direction": "input", + "roles": ["value"], + "types": ["string"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "vae_slicing", + "semanticName": "vae_slicing", + "direction": "input", + "roles": ["value"], + "types": ["boolean"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "vae_tiling", + "semanticName": "vae_tiling", + "direction": "input", + "roles": ["value"], + "types": ["boolean"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "inpaint_compatibility", + "semanticName": "inpaint_compatibility", + "direction": "input", + "roles": ["value"], + "types": ["string"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "trust_remote_code", + "semanticName": "trust_remote_code", + "direction": "input", + "roles": ["value"], + "types": ["boolean"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "revision", + "semanticName": "revision", + "direction": "input", + "roles": ["value"], + "types": ["string"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "workflow_id", + "semanticName": "workflow_id", + "direction": "input", + "roles": ["value"], + "types": ["string"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "modiff_pipeline_identity", + "semanticName": "modiff_pipeline_identity", + "direction": "input", + "roles": ["value"], + "types": ["object"], + "required": false, + "hidden": true, + "semantics": { + "kind": "opaque", + "scope": "Flux3DistilledModularPipeline", + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "auto_offload", + "semanticName": "auto_offload", + "direction": "input", + "roles": ["value"], + "types": ["boolean"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "offload_mode", + "semanticName": "offload_mode", + "direction": "input", + "roles": ["value"], + "types": ["string"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "weight_loading_mode", + "semanticName": "weight_loading_mode", + "direction": "input", + "roles": ["value"], + "types": ["string"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "weight_format", + "semanticName": "weight_format", + "direction": "input", + "roles": ["value"], + "types": ["string"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "unet", + "semanticName": "unet", + "direction": "input", + "roles": ["component"], + "types": ["diffusers_auto_model"], + "required": false, + "hidden": false, + "semantics": { + "kind": "component", + "scope": "Flux3DistilledModularPipeline", + "state": null, + "owner": "same_loader", + "members": [ + { + "name": "transformer", + "type": "diffusers.models.transformers.transformer_flux3.Flux3Transformer2DModel" + } + ] + } + }, + { + "name": "vae", + "semanticName": "vae", + "direction": "input", + "roles": ["component"], + "types": ["diffusers_auto_model"], + "required": false, + "hidden": false, + "semantics": { + "kind": "component", + "scope": "Flux3DistilledModularPipeline", + "state": null, + "owner": "same_loader", + "members": [ + { + "name": "vae", + "type": "diffusers.models.autoencoders.autoencoder_kl_flux2.AutoencoderKLFlux2" + } + ] + } + }, + { + "name": "controlnet", + "semanticName": "controlnet", + "direction": "input", + "roles": ["component"], + "types": ["diffusers_auto_model"], + "required": false, + "hidden": true, + "semantics": { + "kind": "component", + "scope": "Flux3DistilledModularPipeline", + "state": null, + "owner": "same_loader", + "members": [] + } + }, + { + "name": "lora_list", + "semanticName": "lora_list", + "direction": "input", + "roles": ["value"], + "types": ["custom_lora"], + "required": false, + "hidden": false, + "semantics": { + "kind": "opaque", + "scope": "Flux3DistilledModularPipeline", + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "text_encoders", + "semanticName": "text_encoders", + "direction": "output", + "roles": ["component"], + "types": ["diffusers_auto_models"], + "required": false, + "hidden": false, + "semantics": { + "kind": "component", + "scope": "Flux3DistilledModularPipeline", + "state": null, + "owner": "same_loader", + "members": [ + { + "name": "text_encoder", + "type": "transformers.models.qwen3_vl.modeling_qwen3_vl.Qwen3VLForConditionalGeneration" + }, + { + "name": "tokenizer", + "type": "transformers.models.auto.processing_auto.AutoProcessor" + } + ] + } + }, + { + "name": "unet_out", + "semanticName": "unet_out", + "direction": "output", + "roles": ["component"], + "types": ["diffusers_auto_model"], + "required": false, + "hidden": false, + "semantics": { + "kind": "component", + "scope": "Flux3DistilledModularPipeline", + "state": null, + "owner": "same_loader", + "members": [ + { + "name": "transformer", + "type": "diffusers.models.transformers.transformer_flux3.Flux3Transformer2DModel" + } + ] + } + }, + { + "name": "vae_out", + "semanticName": "vae_out", + "direction": "output", + "roles": ["component"], + "types": ["diffusers_auto_model"], + "required": false, + "hidden": false, + "semantics": { + "kind": "component", + "scope": "Flux3DistilledModularPipeline", + "state": null, + "owner": "same_loader", + "members": [ + { + "name": "vae", + "type": "diffusers.models.autoencoders.autoencoder_kl_flux2.AutoencoderKLFlux2" + } + ] + } + }, + { + "name": "scheduler", + "semanticName": "scheduler", + "direction": "output", + "roles": ["component"], + "types": ["diffusers_auto_model"], + "required": false, + "hidden": false, + "semantics": { + "kind": "component", + "scope": "Flux3DistilledModularPipeline", + "state": null, + "owner": "same_loader", + "members": [ + { + "name": "scheduler", + "type": "diffusers.schedulers.scheduling_flow_match_euler_discrete.FlowMatchEulerDiscreteScheduler" + } + ] + } + }, + { + "name": "image_encoder", + "semanticName": "image_encoder", + "direction": "output", + "roles": ["component"], + "types": ["diffusers_auto_model"], + "required": false, + "hidden": true, + "semantics": { + "kind": "component", + "scope": "Flux3DistilledModularPipeline", + "state": null, + "owner": "same_loader", + "members": [] + } + }, + { + "name": "pipeline_components", + "semanticName": "pipeline_components", + "direction": "output", + "roles": ["component"], + "types": ["diffusers_modular_pipeline_components"], + "required": false, + "hidden": false, + "semantics": { + "kind": "component", + "scope": "Flux3DistilledModularPipeline", + "state": null, + "owner": "same_loader", + "members": [ + { + "name": "image_processor", + "type": "diffusers.modular_pipelines.flux3.image_processor.Flux3ImageProcessor" + }, + { + "name": "scheduler", + "type": "diffusers.schedulers.scheduling_flow_match_euler_discrete.FlowMatchEulerDiscreteScheduler" + }, + { + "name": "text_encoder", + "type": "transformers.models.qwen3_vl.modeling_qwen3_vl.Qwen3VLForConditionalGeneration" + }, + { + "name": "tokenizer", + "type": "transformers.models.auto.processing_auto.AutoProcessor" + }, + { + "name": "transformer", + "type": "diffusers.models.transformers.transformer_flux3.Flux3Transformer2DModel" + }, + { + "name": "vae", + "type": "diffusers.models.autoencoders.autoencoder_kl_flux2.AutoencoderKLFlux2" + } + ] + } + }, + { + "name": "quant_config", + "semanticName": "quant_config", + "direction": "input", + "roles": ["value"], + "types": ["quant_config"], + "required": false, + "hidden": false, + "semantics": { + "kind": "opaque", + "scope": "Flux3DistilledModularPipeline", + "state": null, + "owner": "none", + "members": [] + } + } + ], + "workflowId": "text2image", + "binding": { + "values": { + "model_type": "Flux3DistilledModularPipeline" + }, + "pipelineClass": "Flux3DistilledModularPipeline" + } + }, + "node": { + "module": "modules.ModularDiffusers", + "action": "ModelsLoader", + "type": "custom", + "label": "Load Models", + "category": "loader", + "description": "", + "resizable": true, + "skipParamsCheck": true, + "style": {}, + "params": { + "model_type": { + "label": "Pipeline Type", + "type": "string", + "options": { + "": { + "schemaVersion": 1, + "value": "", + "label": "", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "DummyCustomPipeline": { + "schemaVersion": 1, + "value": "DummyCustomPipeline", + "label": "Custom", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "StableDiffusionXLModularPipeline": { + "schemaVersion": 1, + "value": "StableDiffusionXLModularPipeline", + "label": "Stable Diffusion XL", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "QwenImageModularPipeline": { + "schemaVersion": 1, + "value": "QwenImageModularPipeline", + "label": "Qwen-Image-2512", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "QwenImageEditModularPipeline": { + "schemaVersion": 1, + "value": "QwenImageEditModularPipeline", + "label": "Qwen-Image-Edit", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "QwenImageEditPlusModularPipeline": { + "schemaVersion": 1, + "value": "QwenImageEditPlusModularPipeline", + "label": "Qwen-Image-Edit-2511", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "QwenImageLayeredModularPipeline": { + "schemaVersion": 1, + "value": "QwenImageLayeredModularPipeline", + "label": "Qwen-Image-Layered", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "FluxModularPipeline": { + "schemaVersion": 1, + "value": "FluxModularPipeline", + "label": "Flux", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "FluxKontextModularPipeline": { + "schemaVersion": 1, + "value": "FluxKontextModularPipeline", + "label": "Flux Kontext", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "Flux2ModularPipeline": { + "schemaVersion": 1, + "value": "Flux2ModularPipeline", + "label": "Flux 2", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "Flux2KleinModularPipeline": { + "schemaVersion": 1, + "value": "Flux2KleinModularPipeline", + "label": "Flux 2 Klein Distilled", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "Flux2KleinBaseModularPipeline": { + "schemaVersion": 1, + "value": "Flux2KleinBaseModularPipeline", + "label": "Flux 2 Klein Base", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "Flux3ModularPipeline": { + "schemaVersion": 1, + "value": "Flux3ModularPipeline", + "label": "FLUX 3 Image Klein Base", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "Flux3DistilledModularPipeline": { + "schemaVersion": 1, + "value": "Flux3DistilledModularPipeline", + "label": "FLUX 3 Image Klein", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "ZImageModularPipeline": { + "schemaVersion": 1, + "value": "ZImageModularPipeline", + "label": "Z-Image", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "WanModularPipeline": { + "schemaVersion": 1, + "value": "WanModularPipeline", + "label": "WAN2 T2V", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "WanImage2VideoModularPipeline": { + "schemaVersion": 1, + "value": "WanImage2VideoModularPipeline", + "label": "WAN2 I2V", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "MiniMaxMusic3ModularPipeline": { + "schemaVersion": 1, + "value": "MiniMaxMusic3ModularPipeline", + "label": "MiniMax Music 3", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "MiniMaxH3ModularPipeline": { + "schemaVersion": 1, + "value": "MiniMaxH3ModularPipeline", + "label": "MiniMax H3", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "AnimaModularPipeline": { + "schemaVersion": 1, + "value": "AnimaModularPipeline", + "label": "Anima", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "ErnieImageModularPipeline": { + "schemaVersion": 1, + "value": "ErnieImageModularPipeline", + "label": "ERNIE Image Turbo", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "HeliosModularPipeline": { + "schemaVersion": 1, + "value": "HeliosModularPipeline", + "label": "Helios", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "HeliosPyramidModularPipeline": { + "schemaVersion": 1, + "value": "HeliosPyramidModularPipeline", + "label": "Helios Pyramid", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "HeliosPyramidDistilledModularPipeline": { + "schemaVersion": 1, + "value": "HeliosPyramidDistilledModularPipeline", + "label": "Helios Pyramid Distilled", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "HunyuanVideo15ModularPipeline": { + "schemaVersion": 1, + "value": "HunyuanVideo15ModularPipeline", + "label": "HunyuanVideo 1.5", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "WanAnimate2ModularPipeline": { + "schemaVersion": 1, + "value": "WanAnimate2ModularPipeline", + "label": "Wan Animate 2", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "WanAnimate2DistilledModularPipeline": { + "schemaVersion": 1, + "value": "WanAnimate2DistilledModularPipeline", + "label": "Wan Animate 2 Distilled", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "Cosmos3OmniModularPipeline": { + "schemaVersion": 1, + "value": "Cosmos3OmniModularPipeline", + "label": "Cosmos 3 Nano", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "Cosmos3DistilledModularPipeline": { + "schemaVersion": 1, + "value": "Cosmos3DistilledModularPipeline", + "label": "Cosmos 3 Distilled", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "Ideogram4ModularPipeline": { + "schemaVersion": 1, + "value": "Ideogram4ModularPipeline", + "label": "Ideogram 4 (Contract only)", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "Krea2ModularPipeline": { + "schemaVersion": 1, + "value": "Krea2ModularPipeline", + "label": "Krea 2 (Contract only)", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "Krea2TurboModularPipeline": { + "schemaVersion": 1, + "value": "Krea2TurboModularPipeline", + "label": "Krea 2 Turbo (Contract only)", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "StableDiffusion3ModularPipeline": { + "schemaVersion": 1, + "value": "StableDiffusion3ModularPipeline", + "label": "Stable Diffusion 3 (Contract only)", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "LTX25ModularPipeline": { + "schemaVersion": 1, + "value": "LTX25ModularPipeline", + "label": "LTX-2.5 (Contract only)", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + } + }, + "onChange": "set_filters", + "description": "Selects the Modular Diffusers pipeline class. This filters compatible checkpoints and publishes the component contract used by connected nodes; it is not the model checkpoint itself.", + "value": "Flux3DistilledModularPipeline" + }, + "repo_id": { + "label": "Repository ID", + "display": "modelselect", + "type": "string", + "value": { + "source": "hub", + "value": "black-forest-labs/flux-3-image-klein" + }, + "fieldOptions": { + "noValidation": true, + "sources": ["hub", "local"], + "filter": { + "hub": { + "className": ["Flux3DistilledModularPipeline"] + } + } + }, + "onChange": "refresh_pipeline_identity" + }, + "reviewed_variant": { + "label": "Model", + "type": "string", + "value": "black-forest-labs/flux-3-image-klein", + "options": [ + { + "schemaVersion": 1, + "value": "black-forest-labs/flux-3-image-klein", + "label": "black-forest-labs/flux-3-image-klein", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + } + ], + "hidden": true, + "fieldOptions": { + "controlTier": "essential" + }, + "description": "Select an immutable, reviewed checkpoint for this exact Modular Diffusers pipeline family. Changing it does not replace the workflow graph or reset its parameters." + }, + "dtype": { + "label": "dtype", + "options": [ + { + "schemaVersion": 1, + "value": "float32", + "label": "float32", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "float16", + "label": "float16", + "compatibility": "incompatible", + "availability": "unavailable", + "installationState": "unavailable", + "disabledReason": "float16 is not supported by the active runtime." + }, + { + "schemaVersion": 1, + "value": "bfloat16", + "label": "bfloat16", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + } + ], + "value": "bfloat16" + }, + "device": { + "label": "Device", + "type": "string", + "value": "cpu:0", + "options": { + "cpu:0": { + "schemaVersion": 1, + "value": "cpu:0", + "label": "cpu:0", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "cpu": { + "schemaVersion": 1, + "value": "cpu", + "label": "cpu", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + } + } + }, + "attention_backend": { + "label": "Attention Backend", + "type": "string", + "default": "inherit", + "options": [ + { + "schemaVersion": 1, + "value": "inherit", + "label": "inherit", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "auto", + "label": "auto", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "native", + "label": "native", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "_native_math", + "label": "_native_math", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + } + ], + "description": "Inherit preserves existing native component defaults; explicit choices use the ordinary Diffusers attention API." + }, + "vae_slicing": { + "label": "VAE Slicing", + "type": "boolean", + "default": null, + "hidden": true, + "description": "An unset policy preserves the native VAE configuration; templates may bind an explicit boolean." + }, + "vae_tiling": { + "label": "VAE Tiling", + "type": "boolean", + "default": null, + "hidden": true, + "description": "An unset policy preserves the native VAE configuration; templates may bind an explicit boolean." + }, + "inpaint_compatibility": { + "label": "Inpaint Compatibility", + "type": "string", + "default": "native", + "hidden": true, + "options": [ + { + "schemaVersion": 1, + "value": "native", + "label": "native", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "whole_v1", + "label": "whole_v1", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + } + ], + "description": "Technical compatibility selection for the reviewed Qwen Edit inpainting candidate; existing nodes retain native policy." + }, + "trust_remote_code": { + "label": "Trust Remote Code", + "type": "boolean", + "value": false, + "description": "Repository code execution is disabled; keep this off for contract preview.", + "onChange": "refresh_pipeline_identity" + }, + "revision": { + "label": "Revision", + "type": "string", + "value": "8454017f9ebaada30c998fccd9f67a80c7580f68", + "description": "Required exact 40-character commit hash for Hub custom contracts.", + "onChange": "refresh_pipeline_identity" + }, + "workflow_id": { + "label": "Reviewed Workflow", + "type": "string", + "value": "", + "hidden": true, + "description": "Exact reviewed component partition selected by a first-party Cluster Node." + }, + "modiff_pipeline_identity": { + "label": "Custom Pipeline Identity", + "type": "object", + "value": null, + "hidden": true + }, + "refresh_pipeline_identity_button": { + "label": "Review and Refresh Custom Contract", + "display": "ui_button", + "value": false, + "hidden": true, + "onChange": "refresh_pipeline_identity" + }, + "auto_offload": { + "label": "Enable Auto Offload", + "type": "boolean", + "value": true + }, + "offload_mode": { + "label": "Offload Mode", + "type": "string", + "options": [ + { + "schemaVersion": 1, + "value": "auto_cpu", + "label": "auto_cpu", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "none", + "label": "none", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "model_cpu", + "label": "model_cpu", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "group_cpu", + "label": "group_cpu", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "group_disk", + "label": "group_disk", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + } + ], + "value": "model_cpu", + "default": "model_cpu" + }, + "weight_loading_mode": { + "label": "Weight Loading", + "type": "string", + "default": "cpu", + "options": [ + { + "schemaVersion": 1, + "value": "cpu", + "label": "cpu", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "cuda", + "label": "cuda", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + } + ], + "fieldOptions": { + "controlTier": "advanced" + }, + "description": "Load weights on CPU or CUDA before disk offload. CUDA loading needs room for a complete component and is available only for supported models." + }, + "weight_format": { + "label": "Weight Format", + "type": "string", + "default": "native", + "options": [ + { + "schemaVersion": 1, + "value": "native", + "label": "native", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + } + ], + "hidden": true, + "fieldOptions": { + "controlTier": "advanced" + }, + "description": "Select a backend-declared immutable component format. Missing reviewed files must be installed through Model Manager." + }, + "unet": { + "label": "Denoise Model", + "display": "input", + "type": "diffusers_auto_model", + "hidden": false + }, + "vae": { + "label": "VAE", + "display": "input", + "type": "diffusers_auto_model", + "hidden": false + }, + "controlnet": { + "label": "ControlNet", + "display": "input", + "type": "diffusers_auto_model", + "hidden": true + }, + "lora_list": { + "label": "Lora", + "display": "input", + "type": "custom_lora" + }, + "text_encoders": { + "label": "Text Encoders", + "display": "output", + "type": "diffusers_auto_models", + "signal": { + "direction": "output", + "origin": "modiff_pipeline_identity", + "value": "Flux3DistilledModularPipeline" + }, + "connectionRole": "text_encoders", + "hidden": false + }, + "unet_out": { + "label": "Denoise Model", + "display": "output", + "type": "diffusers_auto_model", + "signal": { + "direction": "output", + "origin": "modiff_pipeline_identity", + "value": "Flux3DistilledModularPipeline" + }, + "connectionRole": "denoiser", + "hidden": false + }, + "vae_out": { + "label": "VAE", + "display": "output", + "type": "diffusers_auto_model", + "signal": { + "direction": "output", + "origin": "modiff_pipeline_identity", + "value": "Flux3DistilledModularPipeline" + }, + "connectionRole": "vae", + "hidden": false + }, + "scheduler": { + "label": "Scheduler", + "display": "output", + "type": "diffusers_auto_model", + "signal": { + "direction": "output", + "origin": "modiff_pipeline_identity", + "value": "Flux3DistilledModularPipeline" + }, + "connectionRole": "scheduler", + "hidden": false + }, + "image_encoder": { + "label": "Image Encoder", + "display": "output", + "type": "diffusers_auto_model", + "signal": { + "direction": "output", + "origin": "modiff_pipeline_identity", + "value": "Flux3DistilledModularPipeline" + }, + "connectionRole": "image_encoder", + "hidden": true + }, + "pipeline_components": { + "label": "Pipeline Components", + "display": "output", + "type": "diffusers_modular_pipeline_components", + "signal": { + "direction": "output", + "origin": "modiff_pipeline_identity", + "value": "Flux3DistilledModularPipeline" + }, + "connectionRole": "pipeline_components", + "hidden": false + }, + "quant_config": { + "label": "Quant Config", + "display": "input", + "type": "quant_config" + } + }, + "time": [0, 0, 0], + "memory": [0, 0, 0], + "cache": false + } + }, + { + "operation": { + "pipelineClass": "Flux3DistilledModularPipeline", + "task": "text_to_image", + "operationId": "diffusion.encode_prompt", + "nodeKey": "modules.ModularDiffusers.EncodePrompt", + "nodeType": "text_encoder", + "blockName": "text_encoder", + "decomposition": "block", + "support": "declared", + "ports": [ + { + "name": "prompt", + "semanticName": "prompt", + "direction": "input", + "roles": ["value"], + "types": ["string"], + "required": true, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "max_sequence_length", + "semanticName": "max_sequence_length", + "direction": "input", + "roles": ["value"], + "types": ["int"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "text_encoder_out_layers", + "semanticName": "text_encoder_out_layers", + "direction": "input", + "roles": ["value"], + "types": ["int"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "text_encoders", + "semanticName": "text_encoders", + "direction": "input", + "roles": ["component"], + "types": ["diffusers_auto_models"], + "required": true, + "hidden": false, + "semantics": { + "kind": "component", + "scope": "Flux3DistilledModularPipeline", + "state": null, + "owner": "same_loader", + "members": [ + { + "name": "text_encoder", + "type": "transformers.models.qwen3_vl.modeling_qwen3_vl.Qwen3VLForConditionalGeneration" + }, + { + "name": "tokenizer", + "type": "transformers.models.auto.processing_auto.AutoProcessor" + } + ] + } + }, + { + "name": "embeddings", + "semanticName": "embeddings", + "direction": "output", + "roles": ["value"], + "types": ["embeddings"], + "required": false, + "hidden": false, + "semantics": { + "kind": "conditioning", + "scope": "Flux3DistilledModularPipeline", + "state": null, + "owner": "same_loader", + "members": [] + } + }, + { + "name": "doc", + "semanticName": "doc", + "direction": "output", + "roles": ["value"], + "types": ["string"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "prompt_input", + "semanticName": "prompt", + "direction": "input", + "roles": ["value"], + "types": ["string"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + } + ], + "workflowId": "text2image", + "binding": { + "values": {}, + "pipelineClass": "Flux3DistilledModularPipeline" + } + }, + "node": { + "module": "modules.ModularDiffusers", + "action": "EncodePrompt", + "type": "custom", + "label": "Encode Prompt", + "category": "embedding", + "description": "", + "resizable": true, + "skipParamsCheck": true, + "style": {}, + "params": { + "text_encoders": { + "label": "Text Encoders *", + "required": true, + "type": "diffusers_auto_models", + "display": "input", + "onSignal": "update_node", + "signalCompatibility": { + "role": "text_encoders" + } + }, + "prompt_input": { + "label": "Prompt Input", + "type": "string", + "display": "input", + "description": "Optional connected prompt. When connected, this replaces the inline Prompt value." + }, + "guider": { + "label": "Guider", + "type": "custom_guider", + "display": "input", + "hidden": true, + "description": "Shared Diffusers guidance used by prompt encoding and denoising when the selected pipeline supports it." + }, + "layout_reference_summary": { + "label": "Bound Reference Summary", + "type": "string", + "display": "output", + "hidden": true, + "description": "Display-only ordered reference identities and actual preprocessing sizes from the current encoder cache." + }, + "prompt": { + "label": "Prompt *", + "type": "string", + "display": "textarea", + "default": "", + "value": "A red ceramic teapot on a wooden table beside a window, soft morning light, detailed photograph.", + "fieldOptions": { + "exampleAttribution": "MoDiff task example" + } + }, + "max_sequence_length": { + "label": "Maximum Sequence Length", + "type": "int", + "default": 8192, + "min": 1, + "max": 8192, + "step": 1 + }, + "text_encoder_out_layers": { + "label": "Text Encoder Layers", + "type": "int", + "display": "select", + "default": [4, 8, 12, 16, 20, 24, 28, 32], + "options": [ + { + "schemaVersion": 1, + "value": "0", + "label": "0", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "1", + "label": "1", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "2", + "label": "2", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "3", + "label": "3", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "4", + "label": "4", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "5", + "label": "5", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "6", + "label": "6", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "7", + "label": "7", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "8", + "label": "8", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "9", + "label": "9", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "10", + "label": "10", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "11", + "label": "11", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "12", + "label": "12", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "13", + "label": "13", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "14", + "label": "14", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "15", + "label": "15", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "16", + "label": "16", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "17", + "label": "17", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "18", + "label": "18", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "19", + "label": "19", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "20", + "label": "20", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "21", + "label": "21", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "22", + "label": "22", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "23", + "label": "23", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "24", + "label": "24", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "25", + "label": "25", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "26", + "label": "26", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "27", + "label": "27", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "28", + "label": "28", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "29", + "label": "29", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "30", + "label": "30", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "31", + "label": "31", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "32", + "label": "32", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + } + ], + "fieldOptions": { + "multiple": true, + "tupleValue": true, + "tupleLength": 8 + } + }, + "embeddings": { + "label": "Text Embeddings", + "type": "embeddings", + "display": "output" + }, + "doc": { + "label": "Doc", + "type": "string", + "display": "output" + }, + "layout_conditioning": { + "label": "Layout Conditioning", + "type": "layout_conditioning", + "display": "layout", + "fieldOptions": { + "layoutConditioning": { + "schemaVersion": 2, + "sourceRegions": false, + "supportsBoundSourceRegions": true + } + }, + "default": null + }, + "reference_binding": { + "label": "Reference Binding", + "type": "reference_conditioning", + "display": "input", + "fieldOptions": { + "referenceBinding": { + "schemaVersion": 1, + "maxReferences": 10 + } + }, + "default": null + } + }, + "time": [0, 0, 0], + "memory": [0, 0, 0], + "cache": false + } + }, + { + "operation": { + "pipelineClass": "Flux3DistilledModularPipeline", + "task": "text_to_image", + "operationId": "diffusion.denoise", + "nodeKey": "modules.ModularDiffusers.Denoise", + "nodeType": "denoise", + "blockName": "denoise", + "decomposition": "block", + "support": "declared", + "ports": [ + { + "name": "embeddings", + "semanticName": "embeddings", + "direction": "input", + "roles": ["value"], + "types": ["embeddings"], + "required": true, + "hidden": false, + "semantics": { + "kind": "conditioning", + "scope": "Flux3DistilledModularPipeline", + "state": null, + "owner": "same_loader", + "members": [] + } + }, + { + "name": "width", + "semanticName": "width", + "direction": "input", + "roles": ["value"], + "types": ["int"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "height", + "semanticName": "height", + "direction": "input", + "roles": ["value"], + "types": ["int"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "seed", + "semanticName": "seed", + "direction": "input", + "roles": ["value"], + "types": ["int"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "num_inference_steps", + "semanticName": "num_inference_steps", + "direction": "input", + "roles": ["value"], + "types": ["int"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "num_images_per_prompt", + "semanticName": "num_images_per_prompt", + "direction": "input", + "roles": ["value"], + "types": ["int"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "image_cond_latents", + "semanticName": "image_cond_latents", + "direction": "input", + "roles": ["value"], + "types": ["latents"], + "required": false, + "hidden": false, + "semantics": { + "kind": "latents", + "scope": "Flux3DistilledModularPipeline", + "state": null, + "owner": "same_loader", + "members": [] + } + }, + { + "name": "unet", + "semanticName": "unet", + "direction": "input", + "roles": ["component"], + "types": ["diffusers_auto_model"], + "required": true, + "hidden": false, + "semantics": { + "kind": "component", + "scope": "Flux3DistilledModularPipeline", + "state": null, + "owner": "same_loader", + "members": [ + { + "name": "transformer", + "type": "diffusers.models.transformers.transformer_flux3.Flux3Transformer2DModel" + } + ] + } + }, + { + "name": "scheduler", + "semanticName": "scheduler", + "direction": "input", + "roles": ["component"], + "types": ["diffusers_auto_model"], + "required": true, + "hidden": false, + "semantics": { + "kind": "component", + "scope": "Flux3DistilledModularPipeline", + "state": null, + "owner": "same_loader", + "members": [ + { + "name": "scheduler", + "type": "diffusers.schedulers.scheduling_flow_match_euler_discrete.FlowMatchEulerDiscreteScheduler" + } + ] + } + }, + { + "name": "latents", + "semanticName": "latents", + "direction": "output", + "roles": ["value"], + "types": ["latents"], + "required": false, + "hidden": false, + "semantics": { + "kind": "latents", + "scope": "Flux3DistilledModularPipeline", + "state": null, + "owner": "same_loader", + "members": [] + } + }, + { + "name": "doc", + "semanticName": "doc", + "direction": "output", + "roles": ["value"], + "types": ["string"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + } + ], + "workflowId": "text2image", + "binding": { + "values": {}, + "pipelineClass": "Flux3DistilledModularPipeline" + } + }, + "node": { + "module": "modules.ModularDiffusers", + "action": "Denoise", + "type": "custom", + "label": "Denoise", + "category": "sampler", + "description": "", + "resizable": true, + "skipParamsCheck": true, + "style": {}, + "params": { + "unet": { + "label": "Denoise Model *", + "display": "input", + "type": "diffusers_auto_model", + "required": true, + "onSignal": [ + "update_node", + { + "action": "signal", + "target": "guider" + }, + { + "action": "signal", + "target": "controlnet_bundle" + } + ], + "signalCompatibility": { + "role": "denoiser" + } + }, + "embeddings": { + "label": "Text Embeddings *", + "type": "embeddings", + "display": "input" + }, + "width": { + "label": "Width", + "type": "int", + "default": 1024, + "min": 64, + "step": 16, + "value": 1024 + }, + "height": { + "label": "Height", + "type": "int", + "default": 1024, + "min": 64, + "step": 16, + "value": 1024 + }, + "seed": { + "label": "Seed", + "type": "int", + "display": "random", + "default": 0, + "min": 0, + "max": 4294967295 + }, + "num_inference_steps": { + "label": "Steps", + "type": "int", + "display": "slider", + "default": 16, + "min": 1, + "max": 100, + "value": 16 + }, + "num_images_per_prompt": { + "label": "Images Per Prompt", + "type": "int", + "default": 1, + "min": 1, + "max": 8, + "step": 1 + }, + "image_cond_latents": { + "label": "Reference Latents", + "type": "latents", + "display": "input" + }, + "scheduler": { + "label": "Scheduler *", + "type": "diffusers_auto_model", + "display": "input", + "signalCompatibility": { + "role": "scheduler" + } + }, + "latents": { + "label": "Latents", + "type": "latents", + "display": "output" + }, + "doc": { + "label": "Doc", + "type": "string", + "display": "output" + }, + "reference_binding": { + "label": "Reference Binding", + "type": "reference_conditioning", + "display": "input", + "fieldOptions": { + "referenceBinding": { + "schemaVersion": 1, + "maxReferences": 10 + } + }, + "default": null + } + }, + "time": [0, 0, 0], + "memory": [0, 0, 0], + "cache": false + } + }, + { + "operation": { + "pipelineClass": "Flux3DistilledModularPipeline", + "task": "text_to_image", + "operationId": "diffusion.decode_latents", + "nodeKey": "modules.ModularDiffusers.DecodeLatents", + "nodeType": "decoder", + "blockName": "decode", + "decomposition": "block", + "support": "declared", + "ports": [ + { + "name": "latents", + "semanticName": "latents", + "direction": "input", + "roles": ["value"], + "types": ["latents"], + "required": true, + "hidden": false, + "semantics": { + "kind": "latents", + "scope": "Flux3DistilledModularPipeline", + "state": null, + "owner": "same_loader", + "members": [] + } + }, + { + "name": "vae", + "semanticName": "vae", + "direction": "input", + "roles": ["component"], + "types": ["diffusers_auto_model"], + "required": true, + "hidden": false, + "semantics": { + "kind": "component", + "scope": "Flux3DistilledModularPipeline", + "state": null, + "owner": "same_loader", + "members": [ + { + "name": "vae", + "type": "diffusers.models.autoencoders.autoencoder_kl_flux2.AutoencoderKLFlux2" + } + ] + } + }, + { + "name": "images", + "semanticName": "images", + "direction": "output", + "roles": ["value"], + "types": ["image"], + "required": false, + "hidden": false, + "semantics": { + "kind": "media", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "doc", + "semanticName": "doc", + "direction": "output", + "roles": ["value"], + "types": ["string"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + } + ], + "workflowId": "text2image", + "binding": { + "values": {}, + "pipelineClass": "Flux3DistilledModularPipeline" + } + }, + "node": { + "module": "modules.ModularDiffusers", + "action": "DecodeLatents", + "type": "custom", + "label": "Decode Latents", + "category": "sampler", + "description": "", + "resizable": true, + "skipParamsCheck": true, + "style": {}, + "params": { + "vae": { + "label": "VAE *", + "display": "input", + "type": "diffusers_auto_model", + "onSignal": "update_node", + "signalCompatibility": { + "role": "vae" + } + }, + "latents": { + "label": "Latents *", + "type": "latents", + "display": "input" + }, + "images": { + "label": "Images", + "type": "image", + "display": "output" + }, + "doc": { + "label": "Doc", + "type": "string", + "display": "output" + } + }, + "time": [0, 0, 0], + "memory": [0, 0, 0], + "cache": false + } + } + ], + "edges": [ + { + "source": "diffusion.load_models", + "sourceHandle": "text_encoders", + "target": "diffusion.encode_prompt", + "targetHandle": "text_encoders" + }, + { + "source": "diffusion.load_models", + "sourceHandle": "scheduler", + "target": "diffusion.denoise", + "targetHandle": "scheduler" + }, + { + "source": "diffusion.load_models", + "sourceHandle": "unet_out", + "target": "diffusion.denoise", + "targetHandle": "unet" + }, + { + "source": "diffusion.load_models", + "sourceHandle": "vae_out", + "target": "diffusion.decode_latents", + "targetHandle": "vae" + }, + { + "source": "diffusion.encode_prompt", + "sourceHandle": "embeddings", + "target": "diffusion.denoise", + "targetHandle": "embeddings" + }, + { + "source": "diffusion.denoise", + "sourceHandle": "latents", + "target": "diffusion.decode_latents", + "targetHandle": "latents" + } + ], + "requiredInputs": [ + { + "operationId": "diffusion.encode_prompt", + "field": "prompt" + } + ], + "sharedInputs": [], + "upstreamBlocks": ["text_encoder", "denoise", "decode"], + "authoring": { + "schemaVersion": 1, + "canonicalizationVersion": 1, + "id": "flux3-klein:text-to-image:prompt-preview-authoring:v1", + "baseSpecId": "flux3-klein:modular:text-to-image:v1", + "baseSpecContentHash": "studio-spec-v1-6697a7f5", + "executionProfileIds": ["flux3-klein:modular"], + "roles": [ + ["models", "modules.ModularDiffusers.ModelsLoader", -720, -80], + ["prompt", "modules.ModularDiffusers.EncodePrompt", -360, -240], + ["denoise", "modules.ModularDiffusers.Denoise", 80, -80], + ["decode", "modules.ModularDiffusers.DecodeLatents", 440, -80], + ["preview", "modules.Image.Preview", 800, -80] + ], + "edges": [ + ["models", "text_encoders", "prompt", "text_encoders"], + ["models", "unet_out", "denoise", "unet"], + ["models", "scheduler", "denoise", "scheduler"], + ["models", "vae_out", "decode", "vae"], + ["prompt", "embeddings", "denoise", "embeddings"], + ["denoise", "latents", "decode", "latents"], + ["decode", "images", "preview", "image"] + ], + "bindings": [ + ["models", "model_type", "pipelineClass"], + ["models", "repo_id", "artifact"], + ["models", "revision", "defaultRevision"], + ["models", "dtype", "dtype"], + ["models", "device", "device"], + ["models", "auto_offload", "autoOffload"], + ["models", "offload_mode", "offloadMode"], + ["models", "trust_remote_code", "false"], + ["prompt", "prompt", "prompt"], + ["denoise", "width", "width"], + ["denoise", "height", "height"], + ["denoise", "seed", "seed"], + ["denoise", "num_inference_steps", "steps"], + ["prompt", "max_sequence_length", "maxSequenceLength"], + ["models", "weight_format", "weightFormat"] + ], + "initialValues": [], + "ancillaryOperations": [ + { + "schemaVersion": 1, + "id": "flux3-klein:text-to-image:prompt-preview-authoring:v1:preview", + "parent": { + "authoringRecipeId": "flux3-klein:text-to-image:prompt-preview-authoring:v1", + "baseSpecId": "flux3-klein:modular:text-to-image:v1", + "baseSpecContentHash": "studio-spec-v1-6697a7f5", + "executionProfileId": "flux3-klein:modular", + "pipelineClass": "Flux3DistilledModularPipeline", + "task": "text_to_image" + }, + "executionPurpose": "explicit_preview", + "roles": [ + ["provider", "modules.HuggingFaceTransformers.LoadImageTextToTextModel", -720, -400], + ["proposal", "modules.HuggingFaceTransformers.GenerateImageVideoText", -360, -400] + ], + "edges": [["provider", "model", "proposal", "model"]], + "bindings": { + "owner": { + "role": "prompt", + "promptField": "prompt", + "layoutField": "layout_conditioning", + "referenceSource": null + }, + "request": { + "role": "proposal", + "promptField": "prompt", + "layoutField": "layout_conditioning", + "imagesField": "images" + }, + "output": { + "role": "proposal", + "field": "proposal_summary" + } + }, + "initialValues": [["proposal", "operation", "enhance_prompt"]], + "adapter": { + "id": "transformers-prompt-enhancement-v1", + "declarationSha256": "sha256:18a83a6eddaa2944ae13e80971a068346a72bb07fa0759cd1adbb2ccbb8226fc" + }, + "sourceRegions": false, + "contentHash": "studio-ancillary-v1-73928438" + } + ], + "contentHash": "studio-authoring-v1-fc3527f1" + } + }, + "operationContracts": [ + { + "pipelineClass": "Flux3DistilledModularPipeline", + "task": "text_to_image", + "operationId": "diffusion.decode_latents", + "nodeKey": "modules.ModularDiffusers.DecodeLatents", + "nodeType": "decoder", + "blockName": "decode", + "decomposition": "block", + "support": "declared", + "ports": [ + { + "name": "latents", + "semanticName": "latents", + "direction": "input", + "roles": ["value"], + "types": ["latents"], + "required": true, + "hidden": false, + "semantics": { + "kind": "latents", + "scope": "Flux3DistilledModularPipeline", + "state": null, + "owner": "same_loader", + "members": [] + } + }, + { + "name": "vae", + "semanticName": "vae", + "direction": "input", + "roles": ["component"], + "types": ["diffusers_auto_model"], + "required": true, + "hidden": false, + "semantics": { + "kind": "component", + "scope": "Flux3DistilledModularPipeline", + "state": null, + "owner": "same_loader", + "members": [ + { + "name": "vae", + "type": "diffusers.models.autoencoders.autoencoder_kl_flux2.AutoencoderKLFlux2" + } + ] + } + }, + { + "name": "images", + "semanticName": "images", + "direction": "output", + "roles": ["value"], + "types": ["image"], + "required": false, + "hidden": false, + "semantics": { + "kind": "media", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "doc", + "semanticName": "doc", + "direction": "output", + "roles": ["value"], + "types": ["string"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + } + ], + "workflowId": "text2image", + "binding": { + "values": {}, + "pipelineClass": "Flux3DistilledModularPipeline" + } + }, + { + "pipelineClass": "Flux3DistilledModularPipeline", + "task": "text_to_image", + "operationId": "diffusion.denoise", + "nodeKey": "modules.ModularDiffusers.Denoise", + "nodeType": "denoise", + "blockName": "denoise", + "decomposition": "block", + "support": "declared", + "ports": [ + { + "name": "embeddings", + "semanticName": "embeddings", + "direction": "input", + "roles": ["value"], + "types": ["embeddings"], + "required": true, + "hidden": false, + "semantics": { + "kind": "conditioning", + "scope": "Flux3DistilledModularPipeline", + "state": null, + "owner": "same_loader", + "members": [] + } + }, + { + "name": "width", + "semanticName": "width", + "direction": "input", + "roles": ["value"], + "types": ["int"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "height", + "semanticName": "height", + "direction": "input", + "roles": ["value"], + "types": ["int"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "seed", + "semanticName": "seed", + "direction": "input", + "roles": ["value"], + "types": ["int"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "num_inference_steps", + "semanticName": "num_inference_steps", + "direction": "input", + "roles": ["value"], + "types": ["int"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "num_images_per_prompt", + "semanticName": "num_images_per_prompt", + "direction": "input", + "roles": ["value"], + "types": ["int"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "image_cond_latents", + "semanticName": "image_cond_latents", + "direction": "input", + "roles": ["value"], + "types": ["latents"], + "required": false, + "hidden": false, + "semantics": { + "kind": "latents", + "scope": "Flux3DistilledModularPipeline", + "state": null, + "owner": "same_loader", + "members": [] + } + }, + { + "name": "unet", + "semanticName": "unet", + "direction": "input", + "roles": ["component"], + "types": ["diffusers_auto_model"], + "required": true, + "hidden": false, + "semantics": { + "kind": "component", + "scope": "Flux3DistilledModularPipeline", + "state": null, + "owner": "same_loader", + "members": [ + { + "name": "transformer", + "type": "diffusers.models.transformers.transformer_flux3.Flux3Transformer2DModel" + } + ] + } + }, + { + "name": "scheduler", + "semanticName": "scheduler", + "direction": "input", + "roles": ["component"], + "types": ["diffusers_auto_model"], + "required": true, + "hidden": false, + "semantics": { + "kind": "component", + "scope": "Flux3DistilledModularPipeline", + "state": null, + "owner": "same_loader", + "members": [ + { + "name": "scheduler", + "type": "diffusers.schedulers.scheduling_flow_match_euler_discrete.FlowMatchEulerDiscreteScheduler" + } + ] + } + }, + { + "name": "latents", + "semanticName": "latents", + "direction": "output", + "roles": ["value"], + "types": ["latents"], + "required": false, + "hidden": false, + "semantics": { + "kind": "latents", + "scope": "Flux3DistilledModularPipeline", + "state": null, + "owner": "same_loader", + "members": [] + } + }, + { + "name": "doc", + "semanticName": "doc", + "direction": "output", + "roles": ["value"], + "types": ["string"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + } + ], + "workflowId": "text2image", + "binding": { + "values": {}, + "pipelineClass": "Flux3DistilledModularPipeline" + } + }, + { + "pipelineClass": "Flux3DistilledModularPipeline", + "task": "text_to_image", + "operationId": "diffusion.encode_prompt", + "nodeKey": "modules.ModularDiffusers.EncodePrompt", + "nodeType": "text_encoder", + "blockName": "text_encoder", + "decomposition": "block", + "support": "declared", + "ports": [ + { + "name": "prompt", + "semanticName": "prompt", + "direction": "input", + "roles": ["value"], + "types": ["string"], + "required": true, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "max_sequence_length", + "semanticName": "max_sequence_length", + "direction": "input", + "roles": ["value"], + "types": ["int"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "text_encoder_out_layers", + "semanticName": "text_encoder_out_layers", + "direction": "input", + "roles": ["value"], + "types": ["int"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "text_encoders", + "semanticName": "text_encoders", + "direction": "input", + "roles": ["component"], + "types": ["diffusers_auto_models"], + "required": true, + "hidden": false, + "semantics": { + "kind": "component", + "scope": "Flux3DistilledModularPipeline", + "state": null, + "owner": "same_loader", + "members": [ + { + "name": "text_encoder", + "type": "transformers.models.qwen3_vl.modeling_qwen3_vl.Qwen3VLForConditionalGeneration" + }, + { + "name": "tokenizer", + "type": "transformers.models.auto.processing_auto.AutoProcessor" + } + ] + } + }, + { + "name": "embeddings", + "semanticName": "embeddings", + "direction": "output", + "roles": ["value"], + "types": ["embeddings"], + "required": false, + "hidden": false, + "semantics": { + "kind": "conditioning", + "scope": "Flux3DistilledModularPipeline", + "state": null, + "owner": "same_loader", + "members": [] + } + }, + { + "name": "doc", + "semanticName": "doc", + "direction": "output", + "roles": ["value"], + "types": ["string"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "prompt_input", + "semanticName": "prompt", + "direction": "input", + "roles": ["value"], + "types": ["string"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + } + ], + "workflowId": "text2image", + "binding": { + "values": {}, + "pipelineClass": "Flux3DistilledModularPipeline" + } + }, + { + "pipelineClass": "Flux3DistilledModularPipeline", + "task": "text_to_image", + "operationId": "diffusion.load_models", + "nodeKey": "modules.ModularDiffusers.ModelsLoader", + "nodeType": "loader", + "blockName": null, + "decomposition": "loader", + "support": "declared", + "ports": [ + { + "name": "model_type", + "semanticName": "model_type", + "direction": "input", + "roles": ["value"], + "types": ["string"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "repo_id", + "semanticName": "repo_id", + "direction": "input", + "roles": ["value"], + "types": ["string"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "reviewed_variant", + "semanticName": "reviewed_variant", + "direction": "input", + "roles": ["value"], + "types": ["string"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "device", + "semanticName": "device", + "direction": "input", + "roles": ["value"], + "types": ["string"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "attention_backend", + "semanticName": "attention_backend", + "direction": "input", + "roles": ["value"], + "types": ["string"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "vae_slicing", + "semanticName": "vae_slicing", + "direction": "input", + "roles": ["value"], + "types": ["boolean"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "vae_tiling", + "semanticName": "vae_tiling", + "direction": "input", + "roles": ["value"], + "types": ["boolean"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "inpaint_compatibility", + "semanticName": "inpaint_compatibility", + "direction": "input", + "roles": ["value"], + "types": ["string"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "trust_remote_code", + "semanticName": "trust_remote_code", + "direction": "input", + "roles": ["value"], + "types": ["boolean"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "revision", + "semanticName": "revision", + "direction": "input", + "roles": ["value"], + "types": ["string"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "workflow_id", + "semanticName": "workflow_id", + "direction": "input", + "roles": ["value"], + "types": ["string"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "modiff_pipeline_identity", + "semanticName": "modiff_pipeline_identity", + "direction": "input", + "roles": ["value"], + "types": ["object"], + "required": false, + "hidden": true, + "semantics": { + "kind": "opaque", + "scope": "Flux3DistilledModularPipeline", + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "auto_offload", + "semanticName": "auto_offload", + "direction": "input", + "roles": ["value"], + "types": ["boolean"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "offload_mode", + "semanticName": "offload_mode", + "direction": "input", + "roles": ["value"], + "types": ["string"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "weight_loading_mode", + "semanticName": "weight_loading_mode", + "direction": "input", + "roles": ["value"], + "types": ["string"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "weight_format", + "semanticName": "weight_format", + "direction": "input", + "roles": ["value"], + "types": ["string"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "unet", + "semanticName": "unet", + "direction": "input", + "roles": ["component"], + "types": ["diffusers_auto_model"], + "required": false, + "hidden": false, + "semantics": { + "kind": "component", + "scope": "Flux3DistilledModularPipeline", + "state": null, + "owner": "same_loader", + "members": [ + { + "name": "transformer", + "type": "diffusers.models.transformers.transformer_flux3.Flux3Transformer2DModel" + } + ] + } + }, + { + "name": "vae", + "semanticName": "vae", + "direction": "input", + "roles": ["component"], + "types": ["diffusers_auto_model"], + "required": false, + "hidden": false, + "semantics": { + "kind": "component", + "scope": "Flux3DistilledModularPipeline", + "state": null, + "owner": "same_loader", + "members": [ + { + "name": "vae", + "type": "diffusers.models.autoencoders.autoencoder_kl_flux2.AutoencoderKLFlux2" + } + ] + } + }, + { + "name": "controlnet", + "semanticName": "controlnet", + "direction": "input", + "roles": ["component"], + "types": ["diffusers_auto_model"], + "required": false, + "hidden": true, + "semantics": { + "kind": "component", + "scope": "Flux3DistilledModularPipeline", + "state": null, + "owner": "same_loader", + "members": [] + } + }, + { + "name": "lora_list", + "semanticName": "lora_list", + "direction": "input", + "roles": ["value"], + "types": ["custom_lora"], + "required": false, + "hidden": false, + "semantics": { + "kind": "opaque", + "scope": "Flux3DistilledModularPipeline", + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "text_encoders", + "semanticName": "text_encoders", + "direction": "output", + "roles": ["component"], + "types": ["diffusers_auto_models"], + "required": false, + "hidden": false, + "semantics": { + "kind": "component", + "scope": "Flux3DistilledModularPipeline", + "state": null, + "owner": "same_loader", + "members": [ + { + "name": "text_encoder", + "type": "transformers.models.qwen3_vl.modeling_qwen3_vl.Qwen3VLForConditionalGeneration" + }, + { + "name": "tokenizer", + "type": "transformers.models.auto.processing_auto.AutoProcessor" + } + ] + } + }, + { + "name": "unet_out", + "semanticName": "unet_out", + "direction": "output", + "roles": ["component"], + "types": ["diffusers_auto_model"], + "required": false, + "hidden": false, + "semantics": { + "kind": "component", + "scope": "Flux3DistilledModularPipeline", + "state": null, + "owner": "same_loader", + "members": [ + { + "name": "transformer", + "type": "diffusers.models.transformers.transformer_flux3.Flux3Transformer2DModel" + } + ] + } + }, + { + "name": "vae_out", + "semanticName": "vae_out", + "direction": "output", + "roles": ["component"], + "types": ["diffusers_auto_model"], + "required": false, + "hidden": false, + "semantics": { + "kind": "component", + "scope": "Flux3DistilledModularPipeline", + "state": null, + "owner": "same_loader", + "members": [ + { + "name": "vae", + "type": "diffusers.models.autoencoders.autoencoder_kl_flux2.AutoencoderKLFlux2" + } + ] + } + }, + { + "name": "scheduler", + "semanticName": "scheduler", + "direction": "output", + "roles": ["component"], + "types": ["diffusers_auto_model"], + "required": false, + "hidden": false, + "semantics": { + "kind": "component", + "scope": "Flux3DistilledModularPipeline", + "state": null, + "owner": "same_loader", + "members": [ + { + "name": "scheduler", + "type": "diffusers.schedulers.scheduling_flow_match_euler_discrete.FlowMatchEulerDiscreteScheduler" + } + ] + } + }, + { + "name": "image_encoder", + "semanticName": "image_encoder", + "direction": "output", + "roles": ["component"], + "types": ["diffusers_auto_model"], + "required": false, + "hidden": true, + "semantics": { + "kind": "component", + "scope": "Flux3DistilledModularPipeline", + "state": null, + "owner": "same_loader", + "members": [] + } + }, + { + "name": "pipeline_components", + "semanticName": "pipeline_components", + "direction": "output", + "roles": ["component"], + "types": ["diffusers_modular_pipeline_components"], + "required": false, + "hidden": false, + "semantics": { + "kind": "component", + "scope": "Flux3DistilledModularPipeline", + "state": null, + "owner": "same_loader", + "members": [ + { + "name": "image_processor", + "type": "diffusers.modular_pipelines.flux3.image_processor.Flux3ImageProcessor" + }, + { + "name": "scheduler", + "type": "diffusers.schedulers.scheduling_flow_match_euler_discrete.FlowMatchEulerDiscreteScheduler" + }, + { + "name": "text_encoder", + "type": "transformers.models.qwen3_vl.modeling_qwen3_vl.Qwen3VLForConditionalGeneration" + }, + { + "name": "tokenizer", + "type": "transformers.models.auto.processing_auto.AutoProcessor" + }, + { + "name": "transformer", + "type": "diffusers.models.transformers.transformer_flux3.Flux3Transformer2DModel" + }, + { + "name": "vae", + "type": "diffusers.models.autoencoders.autoencoder_kl_flux2.AutoencoderKLFlux2" + } + ] + } + }, + { + "name": "quant_config", + "semanticName": "quant_config", + "direction": "input", + "roles": ["value"], + "types": ["quant_config"], + "required": false, + "hidden": false, + "semantics": { + "kind": "opaque", + "scope": "Flux3DistilledModularPipeline", + "state": null, + "owner": "none", + "members": [] + } + } + ], + "workflowId": "text2image", + "binding": { + "values": { + "model_type": "Flux3DistilledModularPipeline" + }, + "pipelineClass": "Flux3DistilledModularPipeline" + } + } + ] +} diff --git a/tests/fixtures/layout-conditioning.v1.json b/tests/fixtures/layout-conditioning.v1.json new file mode 100644 index 00000000..7e11ebb8 --- /dev/null +++ b/tests/fixtures/layout-conditioning.v1.json @@ -0,0 +1,111 @@ +{ + "schemaVersion": 1, + "valid": [ + { + "name": "raw-text-preserved", + "prompt": " A raw prompt\n[including ordinary brackets] ", + "layout": null, + "expectedPrompt": " A raw prompt\n[including ordinary brackets] " + }, + { + "name": "normalized-xyxy-to-upstream-y-first", + "prompt": "A still life with .", + "layout": { + "schemaVersion": 1, + "coordinateSpace": "normalized_xyxy", + "regions": [ + { + "id": "apple_1", + "description": "A red apple, with a green leaf.", + "targetBox": [0.125, 0.25, 0.875, 0.75] + } + ] + }, + "expectedPrompt": "A still life with .\n[{\"id\":\"apple_1\",\"bbox\":[250,125,750,875],\"desc\":\"A red apple, with a green leaf.\"}]" + }, + { + "name": "source-reference-requires-bound-context", + "prompt": "Move in .", + "referenceCount": 2, + "layout": { + "schemaVersion": 1, + "coordinateSpace": "normalized_xyxy", + "regions": [ + { + "id": "subject", + "description": "A paper crane.", + "targetBox": [0.5, 0.125, 1, 0.625], + "source": { "referenceIndex": 1, "box": [0, 0.25, 0.5, 0.75] } + } + ] + }, + "expectedPrompt": "Move in .\n[{\"id\":\"subject\",\"from\":\"ref_image_1\",\"src_bbox\":[250,0,750,500],\"tgt_bbox\":[125,500,625,1000],\"desc\":\"A paper crane.\"}]" + } + ], + "invalid": [ + { + "name": "unknown-envelope-key", + "layout": { "schemaVersion": 1, "coordinateSpace": "normalized_xyxy", "regions": [], "trusted": true } + }, + { "name": "unknown-schema", "layout": { "schemaVersion": 3, "coordinateSpace": "normalized_xyxy", "regions": [] } }, + { + "name": "boolean-schema", + "layout": { "schemaVersion": true, "coordinateSpace": "normalized_xyxy", "regions": [] } + }, + { + "name": "implicit-pixel-coordinates", + "layout": { "schemaVersion": 1, "coordinateSpace": "pixels_xyxy", "regions": [] } + }, + { + "name": "region-not-an-object", + "layout": { "schemaVersion": 1, "coordinateSpace": "normalized_xyxy", "regions": [1] } + }, + { + "name": "inverted-box", + "layout": { + "schemaVersion": 1, + "coordinateSpace": "normalized_xyxy", + "regions": [{ "id": "item", "description": "An item.", "targetBox": [0.75, 0, 0.25, 1] }] + } + }, + { + "name": "boolean-coordinate", + "layout": { + "schemaVersion": 1, + "coordinateSpace": "normalized_xyxy", + "regions": [{ "id": "item", "description": "An item.", "targetBox": [false, 0, 1, 1] }] + } + }, + { + "name": "reserved-reference-id", + "layout": { + "schemaVersion": 1, + "coordinateSpace": "normalized_xyxy", + "regions": [{ "id": "ref_image_0", "description": "An item.", "targetBox": [0, 0, 1, 1] }] + } + }, + { + "name": "whitespace-description", + "layout": { + "schemaVersion": 1, + "coordinateSpace": "normalized_xyxy", + "regions": [{ "id": "item", "description": " \n\t", "targetBox": [0, 0, 1, 1] }] + } + }, + { + "name": "boolean-source-reference", + "layout": { + "schemaVersion": 1, + "coordinateSpace": "normalized_xyxy", + "regions": [ + { + "id": "item", + "description": "An item.", + "targetBox": [0, 0, 1, 1], + "source": { "referenceIndex": true, "box": [0, 0, 1, 1] } + } + ] + } + } + ] +} diff --git a/tests/fixtures/layout-conditioning.v2.json b/tests/fixtures/layout-conditioning.v2.json new file mode 100644 index 00000000..7141ec28 --- /dev/null +++ b/tests/fixtures/layout-conditioning.v2.json @@ -0,0 +1,86 @@ +{ + "valid": [ + { + "name": "placement", + "layout": { + "schemaVersion": 2, + "coordinateSpace": "normalized_xyxy", + "regions": [ + { "id": "subject", "action": "place", "description": " Keep exact text ", "targetBox": [0, 0, 1, 1] } + ] + }, + "prompt": "Raw ", + "expectedPrompt": "Raw \n[{\"id\":\"subject\",\"bbox\":[0,0,1000,1000],\"desc\":\" Keep exact text \"}]" + }, + { + "name": "remove-tenth-reference", + "layout": { + "schemaVersion": 2, + "coordinateSpace": "normalized_xyxy", + "regions": [ + { + "id": "subject", + "action": "remove", + "description": "Remove subject", + "targetBox": null, + "source": { + "referenceIndex": 9, + "expectedReferenceId": "sha256:aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", + "box": [0.1, 0.2, 0.7, 0.8] + } + } + ] + }, + "prompt": "Remove ", + "expectedPrompt": "Remove \n[{\"id\":\"subject\",\"from\":\"ref_image_9\",\"src_bbox\":[200,100,800,700],\"tgt_bbox\":null,\"desc\":\"Remove subject\"}]" + }, + { + "name": "relocate", + "layout": { + "schemaVersion": 2, + "coordinateSpace": "normalized_xyxy", + "regions": [ + { + "id": "subject", + "action": "relocate", + "description": "Move subject", + "targetBox": [0.2, 0.3, 0.8, 0.9], + "source": { + "referenceIndex": 0, + "expectedReferenceId": "sha256:aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", + "box": [0, 0, 1, 1] + } + } + ] + }, + "prompt": "Move ", + "expectedPrompt": "Move \n[{\"id\":\"subject\",\"from\":\"ref_image_0\",\"src_bbox\":[0,0,1000,1000],\"tgt_bbox\":[300,200,900,800],\"desc\":\"Move subject\"}]" + } + ], + "invalid": [ + { + "name": "remove-without-source", + "layout": { + "schemaVersion": 2, + "coordinateSpace": "normalized_xyxy", + "regions": [{ "id": "subject", "action": "remove", "description": "Remove", "targetBox": null }] + } + }, + { + "name": "place-null", + "layout": { + "schemaVersion": 2, + "coordinateSpace": "normalized_xyxy", + "regions": [{ "id": "subject", "action": "place", "description": "Place", "targetBox": null }] + } + }, + { + "name": "unknown-action", + "layout": { + "schemaVersion": 2, + "coordinateSpace": "normalized_xyxy", + "regions": [{ "id": "subject", "action": "paint", "description": "Place", "targetBox": [0, 0, 1, 1] }] + } + } + ] +} diff --git a/tests/fixtures/prompt-enhancement-starter.v1.json b/tests/fixtures/prompt-enhancement-starter.v1.json new file mode 100644 index 00000000..0575740a --- /dev/null +++ b/tests/fixtures/prompt-enhancement-starter.v1.json @@ -0,0 +1,5218 @@ +{ + "schemaVersion": 1, + "proofScope": "Constructor-trapped ordinary metadata producer with an explicit private-profile fixture override. No HTTP, trained output, runtime admission or public eligibility proof.", + "selection": { + "pipelineClass": "Flux3DistilledModularPipeline", + "task": "text_to_image", + "executionProfileId": "flux3-klein:modular", + "authoringRecipeId": "flux3-klein:text-to-image:prompt-preview-authoring:v1" + }, + "response": { + "schemaVersion": 1, + "pipelineClass": "Flux3DistilledModularPipeline", + "task": "text_to_image", + "workflowId": "text2image", + "nodes": [ + { + "operation": { + "pipelineClass": "Flux3DistilledModularPipeline", + "task": "text_to_image", + "operationId": "diffusion.load_models", + "nodeKey": "modules.ModularDiffusers.ModelsLoader", + "nodeType": "loader", + "blockName": null, + "decomposition": "loader", + "support": "declared", + "ports": [ + { + "name": "model_type", + "semanticName": "model_type", + "direction": "input", + "roles": ["value"], + "types": ["string"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "repo_id", + "semanticName": "repo_id", + "direction": "input", + "roles": ["value"], + "types": ["string"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "reviewed_variant", + "semanticName": "reviewed_variant", + "direction": "input", + "roles": ["value"], + "types": ["string"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "device", + "semanticName": "device", + "direction": "input", + "roles": ["value"], + "types": ["string"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "attention_backend", + "semanticName": "attention_backend", + "direction": "input", + "roles": ["value"], + "types": ["string"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "vae_slicing", + "semanticName": "vae_slicing", + "direction": "input", + "roles": ["value"], + "types": ["boolean"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "vae_tiling", + "semanticName": "vae_tiling", + "direction": "input", + "roles": ["value"], + "types": ["boolean"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "inpaint_compatibility", + "semanticName": "inpaint_compatibility", + "direction": "input", + "roles": ["value"], + "types": ["string"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "trust_remote_code", + "semanticName": "trust_remote_code", + "direction": "input", + "roles": ["value"], + "types": ["boolean"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "revision", + "semanticName": "revision", + "direction": "input", + "roles": ["value"], + "types": ["string"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "workflow_id", + "semanticName": "workflow_id", + "direction": "input", + "roles": ["value"], + "types": ["string"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "modiff_pipeline_identity", + "semanticName": "modiff_pipeline_identity", + "direction": "input", + "roles": ["value"], + "types": ["object"], + "required": false, + "hidden": true, + "semantics": { + "kind": "opaque", + "scope": "Flux3DistilledModularPipeline", + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "auto_offload", + "semanticName": "auto_offload", + "direction": "input", + "roles": ["value"], + "types": ["boolean"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "offload_mode", + "semanticName": "offload_mode", + "direction": "input", + "roles": ["value"], + "types": ["string"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "weight_loading_mode", + "semanticName": "weight_loading_mode", + "direction": "input", + "roles": ["value"], + "types": ["string"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "weight_format", + "semanticName": "weight_format", + "direction": "input", + "roles": ["value"], + "types": ["string"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "unet", + "semanticName": "unet", + "direction": "input", + "roles": ["component"], + "types": ["diffusers_auto_model"], + "required": false, + "hidden": false, + "semantics": { + "kind": "component", + "scope": "Flux3DistilledModularPipeline", + "state": null, + "owner": "same_loader", + "members": [ + { + "name": "transformer", + "type": "diffusers.models.transformers.transformer_flux3.Flux3Transformer2DModel" + } + ] + } + }, + { + "name": "vae", + "semanticName": "vae", + "direction": "input", + "roles": ["component"], + "types": ["diffusers_auto_model"], + "required": false, + "hidden": false, + "semantics": { + "kind": "component", + "scope": "Flux3DistilledModularPipeline", + "state": null, + "owner": "same_loader", + "members": [ + { + "name": "vae", + "type": "diffusers.models.autoencoders.autoencoder_kl_flux2.AutoencoderKLFlux2" + } + ] + } + }, + { + "name": "controlnet", + "semanticName": "controlnet", + "direction": "input", + "roles": ["component"], + "types": ["diffusers_auto_model"], + "required": false, + "hidden": true, + "semantics": { + "kind": "component", + "scope": "Flux3DistilledModularPipeline", + "state": null, + "owner": "same_loader", + "members": [] + } + }, + { + "name": "lora_list", + "semanticName": "lora_list", + "direction": "input", + "roles": ["value"], + "types": ["custom_lora"], + "required": false, + "hidden": false, + "semantics": { + "kind": "opaque", + "scope": "Flux3DistilledModularPipeline", + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "text_encoders", + "semanticName": "text_encoders", + "direction": "output", + "roles": ["component"], + "types": ["diffusers_auto_models"], + "required": false, + "hidden": false, + "semantics": { + "kind": "component", + "scope": "Flux3DistilledModularPipeline", + "state": null, + "owner": "same_loader", + "members": [ + { + "name": "text_encoder", + "type": "transformers.models.qwen3_vl.modeling_qwen3_vl.Qwen3VLForConditionalGeneration" + }, + { + "name": "tokenizer", + "type": "transformers.models.auto.processing_auto.AutoProcessor" + } + ] + } + }, + { + "name": "unet_out", + "semanticName": "unet_out", + "direction": "output", + "roles": ["component"], + "types": ["diffusers_auto_model"], + "required": false, + "hidden": false, + "semantics": { + "kind": "component", + "scope": "Flux3DistilledModularPipeline", + "state": null, + "owner": "same_loader", + "members": [ + { + "name": "transformer", + "type": "diffusers.models.transformers.transformer_flux3.Flux3Transformer2DModel" + } + ] + } + }, + { + "name": "vae_out", + "semanticName": "vae_out", + "direction": "output", + "roles": ["component"], + "types": ["diffusers_auto_model"], + "required": false, + "hidden": false, + "semantics": { + "kind": "component", + "scope": "Flux3DistilledModularPipeline", + "state": null, + "owner": "same_loader", + "members": [ + { + "name": "vae", + "type": "diffusers.models.autoencoders.autoencoder_kl_flux2.AutoencoderKLFlux2" + } + ] + } + }, + { + "name": "scheduler", + "semanticName": "scheduler", + "direction": "output", + "roles": ["component"], + "types": ["diffusers_auto_model"], + "required": false, + "hidden": false, + "semantics": { + "kind": "component", + "scope": "Flux3DistilledModularPipeline", + "state": null, + "owner": "same_loader", + "members": [ + { + "name": "scheduler", + "type": "diffusers.schedulers.scheduling_flow_match_euler_discrete.FlowMatchEulerDiscreteScheduler" + } + ] + } + }, + { + "name": "image_encoder", + "semanticName": "image_encoder", + "direction": "output", + "roles": ["component"], + "types": ["diffusers_auto_model"], + "required": false, + "hidden": true, + "semantics": { + "kind": "component", + "scope": "Flux3DistilledModularPipeline", + "state": null, + "owner": "same_loader", + "members": [] + } + }, + { + "name": "pipeline_components", + "semanticName": "pipeline_components", + "direction": "output", + "roles": ["component"], + "types": ["diffusers_modular_pipeline_components"], + "required": false, + "hidden": false, + "semantics": { + "kind": "component", + "scope": "Flux3DistilledModularPipeline", + "state": null, + "owner": "same_loader", + "members": [ + { + "name": "image_processor", + "type": "diffusers.modular_pipelines.flux3.image_processor.Flux3ImageProcessor" + }, + { + "name": "scheduler", + "type": "diffusers.schedulers.scheduling_flow_match_euler_discrete.FlowMatchEulerDiscreteScheduler" + }, + { + "name": "text_encoder", + "type": "transformers.models.qwen3_vl.modeling_qwen3_vl.Qwen3VLForConditionalGeneration" + }, + { + "name": "tokenizer", + "type": "transformers.models.auto.processing_auto.AutoProcessor" + }, + { + "name": "transformer", + "type": "diffusers.models.transformers.transformer_flux3.Flux3Transformer2DModel" + }, + { + "name": "vae", + "type": "diffusers.models.autoencoders.autoencoder_kl_flux2.AutoencoderKLFlux2" + } + ] + } + }, + { + "name": "quant_config", + "semanticName": "quant_config", + "direction": "input", + "roles": ["value"], + "types": ["quant_config"], + "required": false, + "hidden": false, + "semantics": { + "kind": "opaque", + "scope": "Flux3DistilledModularPipeline", + "state": null, + "owner": "none", + "members": [] + } + } + ], + "workflowId": "text2image", + "binding": { + "values": { + "model_type": "Flux3DistilledModularPipeline" + }, + "pipelineClass": "Flux3DistilledModularPipeline" + } + }, + "node": { + "module": "modules.ModularDiffusers", + "action": "ModelsLoader", + "type": "custom", + "label": "Load Models", + "category": "loader", + "description": "", + "resizable": true, + "skipParamsCheck": true, + "style": {}, + "params": { + "model_type": { + "label": "Pipeline Type", + "type": "string", + "options": { + "": { + "schemaVersion": 1, + "value": "", + "label": "", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "DummyCustomPipeline": { + "schemaVersion": 1, + "value": "DummyCustomPipeline", + "label": "Custom", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "StableDiffusionXLModularPipeline": { + "schemaVersion": 1, + "value": "StableDiffusionXLModularPipeline", + "label": "Stable Diffusion XL", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "QwenImageModularPipeline": { + "schemaVersion": 1, + "value": "QwenImageModularPipeline", + "label": "Qwen-Image-2512", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "QwenImageEditModularPipeline": { + "schemaVersion": 1, + "value": "QwenImageEditModularPipeline", + "label": "Qwen-Image-Edit", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "QwenImageEditPlusModularPipeline": { + "schemaVersion": 1, + "value": "QwenImageEditPlusModularPipeline", + "label": "Qwen-Image-Edit-2511", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "QwenImageLayeredModularPipeline": { + "schemaVersion": 1, + "value": "QwenImageLayeredModularPipeline", + "label": "Qwen-Image-Layered", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "FluxModularPipeline": { + "schemaVersion": 1, + "value": "FluxModularPipeline", + "label": "Flux", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "FluxKontextModularPipeline": { + "schemaVersion": 1, + "value": "FluxKontextModularPipeline", + "label": "Flux Kontext", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "Flux2ModularPipeline": { + "schemaVersion": 1, + "value": "Flux2ModularPipeline", + "label": "Flux 2", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "Flux2KleinModularPipeline": { + "schemaVersion": 1, + "value": "Flux2KleinModularPipeline", + "label": "Flux 2 Klein Distilled", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "Flux2KleinBaseModularPipeline": { + "schemaVersion": 1, + "value": "Flux2KleinBaseModularPipeline", + "label": "Flux 2 Klein Base", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "Flux3ModularPipeline": { + "schemaVersion": 1, + "value": "Flux3ModularPipeline", + "label": "FLUX 3 Image Klein Base", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "Flux3DistilledModularPipeline": { + "schemaVersion": 1, + "value": "Flux3DistilledModularPipeline", + "label": "FLUX 3 Image Klein", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "ZImageModularPipeline": { + "schemaVersion": 1, + "value": "ZImageModularPipeline", + "label": "Z-Image", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "WanModularPipeline": { + "schemaVersion": 1, + "value": "WanModularPipeline", + "label": "WAN2 T2V", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "WanImage2VideoModularPipeline": { + "schemaVersion": 1, + "value": "WanImage2VideoModularPipeline", + "label": "WAN2 I2V", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "MiniMaxMusic3ModularPipeline": { + "schemaVersion": 1, + "value": "MiniMaxMusic3ModularPipeline", + "label": "MiniMax Music 3", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "MiniMaxH3ModularPipeline": { + "schemaVersion": 1, + "value": "MiniMaxH3ModularPipeline", + "label": "MiniMax H3", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "AnimaModularPipeline": { + "schemaVersion": 1, + "value": "AnimaModularPipeline", + "label": "Anima", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "ErnieImageModularPipeline": { + "schemaVersion": 1, + "value": "ErnieImageModularPipeline", + "label": "ERNIE Image Turbo", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "HeliosModularPipeline": { + "schemaVersion": 1, + "value": "HeliosModularPipeline", + "label": "Helios", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "HeliosPyramidModularPipeline": { + "schemaVersion": 1, + "value": "HeliosPyramidModularPipeline", + "label": "Helios Pyramid", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "HeliosPyramidDistilledModularPipeline": { + "schemaVersion": 1, + "value": "HeliosPyramidDistilledModularPipeline", + "label": "Helios Pyramid Distilled", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "HunyuanVideo15ModularPipeline": { + "schemaVersion": 1, + "value": "HunyuanVideo15ModularPipeline", + "label": "HunyuanVideo 1.5", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "WanAnimate2ModularPipeline": { + "schemaVersion": 1, + "value": "WanAnimate2ModularPipeline", + "label": "Wan Animate 2", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "WanAnimate2DistilledModularPipeline": { + "schemaVersion": 1, + "value": "WanAnimate2DistilledModularPipeline", + "label": "Wan Animate 2 Distilled", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "Cosmos3OmniModularPipeline": { + "schemaVersion": 1, + "value": "Cosmos3OmniModularPipeline", + "label": "Cosmos 3 Nano", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "Cosmos3DistilledModularPipeline": { + "schemaVersion": 1, + "value": "Cosmos3DistilledModularPipeline", + "label": "Cosmos 3 Distilled", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "Ideogram4ModularPipeline": { + "schemaVersion": 1, + "value": "Ideogram4ModularPipeline", + "label": "Ideogram 4 (Contract only)", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "Krea2ModularPipeline": { + "schemaVersion": 1, + "value": "Krea2ModularPipeline", + "label": "Krea 2 (Contract only)", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "Krea2TurboModularPipeline": { + "schemaVersion": 1, + "value": "Krea2TurboModularPipeline", + "label": "Krea 2 Turbo (Contract only)", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "StableDiffusion3ModularPipeline": { + "schemaVersion": 1, + "value": "StableDiffusion3ModularPipeline", + "label": "Stable Diffusion 3 (Contract only)", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "LTX25ModularPipeline": { + "schemaVersion": 1, + "value": "LTX25ModularPipeline", + "label": "LTX-2.5 (Contract only)", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + } + }, + "onChange": "set_filters", + "description": "Selects the Modular Diffusers pipeline class. This filters compatible checkpoints and publishes the component contract used by connected nodes; it is not the model checkpoint itself.", + "value": "Flux3DistilledModularPipeline" + }, + "repo_id": { + "label": "Repository ID", + "display": "modelselect", + "type": "string", + "value": { + "source": "hub", + "value": "black-forest-labs/flux-3-image-klein" + }, + "fieldOptions": { + "noValidation": true, + "sources": ["hub", "local"], + "filter": { + "hub": { + "className": ["Flux3DistilledModularPipeline"] + } + } + }, + "onChange": "refresh_pipeline_identity" + }, + "reviewed_variant": { + "label": "Model", + "type": "string", + "value": "black-forest-labs/flux-3-image-klein", + "options": [ + { + "schemaVersion": 1, + "value": "black-forest-labs/flux-3-image-klein", + "label": "black-forest-labs/flux-3-image-klein", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + } + ], + "hidden": true, + "fieldOptions": { + "controlTier": "essential" + }, + "description": "Select an immutable, reviewed checkpoint for this exact Modular Diffusers pipeline family. Changing it does not replace the workflow graph or reset its parameters." + }, + "dtype": { + "label": "dtype", + "options": [ + { + "schemaVersion": 1, + "value": "float32", + "label": "float32", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "float16", + "label": "float16", + "compatibility": "incompatible", + "availability": "unavailable", + "installationState": "unavailable", + "disabledReason": "float16 is not supported by the active runtime." + }, + { + "schemaVersion": 1, + "value": "bfloat16", + "label": "bfloat16", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + } + ], + "value": "bfloat16" + }, + "device": { + "label": "Device", + "type": "string", + "value": "cpu:0", + "options": { + "cpu:0": { + "schemaVersion": 1, + "value": "cpu:0", + "label": "cpu:0", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "cpu": { + "schemaVersion": 1, + "value": "cpu", + "label": "cpu", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + } + } + }, + "attention_backend": { + "label": "Attention Backend", + "type": "string", + "default": "inherit", + "options": [ + { + "schemaVersion": 1, + "value": "inherit", + "label": "inherit", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "auto", + "label": "auto", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "native", + "label": "native", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "_native_math", + "label": "_native_math", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + } + ], + "description": "Inherit preserves existing native component defaults; explicit choices use the ordinary Diffusers attention API." + }, + "vae_slicing": { + "label": "VAE Slicing", + "type": "boolean", + "default": null, + "hidden": true, + "description": "An unset policy preserves the native VAE configuration; templates may bind an explicit boolean." + }, + "vae_tiling": { + "label": "VAE Tiling", + "type": "boolean", + "default": null, + "hidden": true, + "description": "An unset policy preserves the native VAE configuration; templates may bind an explicit boolean." + }, + "inpaint_compatibility": { + "label": "Inpaint Compatibility", + "type": "string", + "default": "native", + "hidden": true, + "options": [ + { + "schemaVersion": 1, + "value": "native", + "label": "native", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "whole_v1", + "label": "whole_v1", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + } + ], + "description": "Technical compatibility selection for the reviewed Qwen Edit inpainting candidate; existing nodes retain native policy." + }, + "trust_remote_code": { + "label": "Trust Remote Code", + "type": "boolean", + "value": false, + "description": "Repository code execution is disabled; keep this off for contract preview.", + "onChange": "refresh_pipeline_identity" + }, + "revision": { + "label": "Revision", + "type": "string", + "value": "8454017f9ebaada30c998fccd9f67a80c7580f68", + "description": "Required exact 40-character commit hash for Hub custom contracts.", + "onChange": "refresh_pipeline_identity" + }, + "workflow_id": { + "label": "Reviewed Workflow", + "type": "string", + "value": "", + "hidden": true, + "description": "Exact reviewed component partition selected by a first-party Cluster Node." + }, + "modiff_pipeline_identity": { + "label": "Custom Pipeline Identity", + "type": "object", + "value": null, + "hidden": true + }, + "refresh_pipeline_identity_button": { + "label": "Review and Refresh Custom Contract", + "display": "ui_button", + "value": false, + "hidden": true, + "onChange": "refresh_pipeline_identity" + }, + "auto_offload": { + "label": "Enable Auto Offload", + "type": "boolean", + "value": true + }, + "offload_mode": { + "label": "Offload Mode", + "type": "string", + "options": [ + { + "schemaVersion": 1, + "value": "auto_cpu", + "label": "auto_cpu", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "none", + "label": "none", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "model_cpu", + "label": "model_cpu", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "group_cpu", + "label": "group_cpu", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "group_disk", + "label": "group_disk", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + } + ], + "value": "model_cpu", + "default": "model_cpu" + }, + "weight_loading_mode": { + "label": "Weight Loading", + "type": "string", + "default": "cpu", + "options": [ + { + "schemaVersion": 1, + "value": "cpu", + "label": "cpu", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "cuda", + "label": "cuda", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + } + ], + "fieldOptions": { + "controlTier": "advanced" + }, + "description": "Load weights on CPU or CUDA before disk offload. CUDA loading needs room for a complete component and is available only for supported models." + }, + "weight_format": { + "label": "Weight Format", + "type": "string", + "default": "native", + "options": [ + { + "schemaVersion": 1, + "value": "native", + "label": "native", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + } + ], + "hidden": true, + "fieldOptions": { + "controlTier": "advanced" + }, + "description": "Select a backend-declared immutable component format. Missing reviewed files must be installed through Model Manager." + }, + "unet": { + "label": "Denoise Model", + "display": "input", + "type": "diffusers_auto_model", + "hidden": false + }, + "vae": { + "label": "VAE", + "display": "input", + "type": "diffusers_auto_model", + "hidden": false + }, + "controlnet": { + "label": "ControlNet", + "display": "input", + "type": "diffusers_auto_model", + "hidden": true + }, + "lora_list": { + "label": "Lora", + "display": "input", + "type": "custom_lora" + }, + "text_encoders": { + "label": "Text Encoders", + "display": "output", + "type": "diffusers_auto_models", + "signal": { + "direction": "output", + "origin": "modiff_pipeline_identity", + "value": "Flux3DistilledModularPipeline" + }, + "connectionRole": "text_encoders", + "hidden": false + }, + "unet_out": { + "label": "Denoise Model", + "display": "output", + "type": "diffusers_auto_model", + "signal": { + "direction": "output", + "origin": "modiff_pipeline_identity", + "value": "Flux3DistilledModularPipeline" + }, + "connectionRole": "denoiser", + "hidden": false + }, + "vae_out": { + "label": "VAE", + "display": "output", + "type": "diffusers_auto_model", + "signal": { + "direction": "output", + "origin": "modiff_pipeline_identity", + "value": "Flux3DistilledModularPipeline" + }, + "connectionRole": "vae", + "hidden": false + }, + "scheduler": { + "label": "Scheduler", + "display": "output", + "type": "diffusers_auto_model", + "signal": { + "direction": "output", + "origin": "modiff_pipeline_identity", + "value": "Flux3DistilledModularPipeline" + }, + "connectionRole": "scheduler", + "hidden": false + }, + "image_encoder": { + "label": "Image Encoder", + "display": "output", + "type": "diffusers_auto_model", + "signal": { + "direction": "output", + "origin": "modiff_pipeline_identity", + "value": "Flux3DistilledModularPipeline" + }, + "connectionRole": "image_encoder", + "hidden": true + }, + "pipeline_components": { + "label": "Pipeline Components", + "display": "output", + "type": "diffusers_modular_pipeline_components", + "signal": { + "direction": "output", + "origin": "modiff_pipeline_identity", + "value": "Flux3DistilledModularPipeline" + }, + "connectionRole": "pipeline_components", + "hidden": false + }, + "quant_config": { + "label": "Quant Config", + "display": "input", + "type": "quant_config" + } + }, + "time": [0, 0, 0], + "memory": [0, 0, 0], + "cache": false + } + }, + { + "operation": { + "pipelineClass": "Flux3DistilledModularPipeline", + "task": "text_to_image", + "operationId": "diffusion.encode_prompt", + "nodeKey": "modules.ModularDiffusers.EncodePrompt", + "nodeType": "text_encoder", + "blockName": "text_encoder", + "decomposition": "block", + "support": "declared", + "ports": [ + { + "name": "prompt", + "semanticName": "prompt", + "direction": "input", + "roles": ["value"], + "types": ["string"], + "required": true, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "max_sequence_length", + "semanticName": "max_sequence_length", + "direction": "input", + "roles": ["value"], + "types": ["int"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "text_encoder_out_layers", + "semanticName": "text_encoder_out_layers", + "direction": "input", + "roles": ["value"], + "types": ["int"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "text_encoders", + "semanticName": "text_encoders", + "direction": "input", + "roles": ["component"], + "types": ["diffusers_auto_models"], + "required": true, + "hidden": false, + "semantics": { + "kind": "component", + "scope": "Flux3DistilledModularPipeline", + "state": null, + "owner": "same_loader", + "members": [ + { + "name": "text_encoder", + "type": "transformers.models.qwen3_vl.modeling_qwen3_vl.Qwen3VLForConditionalGeneration" + }, + { + "name": "tokenizer", + "type": "transformers.models.auto.processing_auto.AutoProcessor" + } + ] + } + }, + { + "name": "embeddings", + "semanticName": "embeddings", + "direction": "output", + "roles": ["value"], + "types": ["embeddings"], + "required": false, + "hidden": false, + "semantics": { + "kind": "conditioning", + "scope": "Flux3DistilledModularPipeline", + "state": null, + "owner": "same_loader", + "members": [] + } + }, + { + "name": "doc", + "semanticName": "doc", + "direction": "output", + "roles": ["value"], + "types": ["string"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "prompt_input", + "semanticName": "prompt", + "direction": "input", + "roles": ["value"], + "types": ["string"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + } + ], + "workflowId": "text2image", + "binding": { + "values": {}, + "pipelineClass": "Flux3DistilledModularPipeline" + } + }, + "node": { + "module": "modules.ModularDiffusers", + "action": "EncodePrompt", + "type": "custom", + "label": "Encode Prompt", + "category": "embedding", + "description": "", + "resizable": true, + "skipParamsCheck": true, + "style": {}, + "params": { + "text_encoders": { + "label": "Text Encoders *", + "required": true, + "type": "diffusers_auto_models", + "display": "input", + "onSignal": "update_node", + "signalCompatibility": { + "role": "text_encoders" + } + }, + "prompt_input": { + "label": "Prompt Input", + "type": "string", + "display": "input", + "description": "Optional connected prompt. When connected, this replaces the inline Prompt value." + }, + "guider": { + "label": "Guider", + "type": "custom_guider", + "display": "input", + "hidden": true, + "description": "Shared Diffusers guidance used by prompt encoding and denoising when the selected pipeline supports it." + }, + "layout_reference_summary": { + "label": "Bound Reference Summary", + "type": "string", + "display": "output", + "hidden": true, + "description": "Display-only ordered reference identities and actual preprocessing sizes from the current encoder cache." + }, + "prompt": { + "label": "Prompt *", + "type": "string", + "display": "textarea", + "default": "", + "value": "A red ceramic teapot on a wooden table beside a window, soft morning light, detailed photograph.", + "fieldOptions": { + "exampleAttribution": "MoDiff task example" + } + }, + "max_sequence_length": { + "label": "Maximum Sequence Length", + "type": "int", + "default": 8192, + "min": 1, + "max": 8192, + "step": 1 + }, + "text_encoder_out_layers": { + "label": "Text Encoder Layers", + "type": "int", + "display": "select", + "default": [4, 8, 12, 16, 20, 24, 28, 32], + "options": [ + { + "schemaVersion": 1, + "value": "0", + "label": "0", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "1", + "label": "1", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "2", + "label": "2", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "3", + "label": "3", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "4", + "label": "4", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "5", + "label": "5", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "6", + "label": "6", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "7", + "label": "7", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "8", + "label": "8", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "9", + "label": "9", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "10", + "label": "10", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "11", + "label": "11", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "12", + "label": "12", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "13", + "label": "13", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "14", + "label": "14", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "15", + "label": "15", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "16", + "label": "16", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "17", + "label": "17", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "18", + "label": "18", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "19", + "label": "19", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "20", + "label": "20", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "21", + "label": "21", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "22", + "label": "22", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "23", + "label": "23", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "24", + "label": "24", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "25", + "label": "25", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "26", + "label": "26", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "27", + "label": "27", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "28", + "label": "28", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "29", + "label": "29", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "30", + "label": "30", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "31", + "label": "31", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "32", + "label": "32", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + } + ], + "fieldOptions": { + "multiple": true, + "tupleValue": true, + "tupleLength": 8 + } + }, + "embeddings": { + "label": "Text Embeddings", + "type": "embeddings", + "display": "output" + }, + "doc": { + "label": "Doc", + "type": "string", + "display": "output" + }, + "layout_conditioning": { + "label": "Layout Conditioning", + "type": "layout_conditioning", + "display": "layout", + "fieldOptions": { + "layoutConditioning": { + "schemaVersion": 2, + "sourceRegions": false, + "supportsBoundSourceRegions": true + } + }, + "default": null + }, + "reference_binding": { + "label": "Reference Binding", + "type": "reference_conditioning", + "display": "input", + "fieldOptions": { + "referenceBinding": { + "schemaVersion": 1, + "maxReferences": 10 + } + }, + "default": null + } + }, + "time": [0, 0, 0], + "memory": [0, 0, 0], + "cache": false + } + }, + { + "operation": { + "pipelineClass": "Flux3DistilledModularPipeline", + "task": "text_to_image", + "operationId": "diffusion.denoise", + "nodeKey": "modules.ModularDiffusers.Denoise", + "nodeType": "denoise", + "blockName": "denoise", + "decomposition": "block", + "support": "declared", + "ports": [ + { + "name": "embeddings", + "semanticName": "embeddings", + "direction": "input", + "roles": ["value"], + "types": ["embeddings"], + "required": true, + "hidden": false, + "semantics": { + "kind": "conditioning", + "scope": "Flux3DistilledModularPipeline", + "state": null, + "owner": "same_loader", + "members": [] + } + }, + { + "name": "width", + "semanticName": "width", + "direction": "input", + "roles": ["value"], + "types": ["int"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "height", + "semanticName": "height", + "direction": "input", + "roles": ["value"], + "types": ["int"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "seed", + "semanticName": "seed", + "direction": "input", + "roles": ["value"], + "types": ["int"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "num_inference_steps", + "semanticName": "num_inference_steps", + "direction": "input", + "roles": ["value"], + "types": ["int"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "num_images_per_prompt", + "semanticName": "num_images_per_prompt", + "direction": "input", + "roles": ["value"], + "types": ["int"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "image_cond_latents", + "semanticName": "image_cond_latents", + "direction": "input", + "roles": ["value"], + "types": ["latents"], + "required": false, + "hidden": false, + "semantics": { + "kind": "latents", + "scope": "Flux3DistilledModularPipeline", + "state": null, + "owner": "same_loader", + "members": [] + } + }, + { + "name": "unet", + "semanticName": "unet", + "direction": "input", + "roles": ["component"], + "types": ["diffusers_auto_model"], + "required": true, + "hidden": false, + "semantics": { + "kind": "component", + "scope": "Flux3DistilledModularPipeline", + "state": null, + "owner": "same_loader", + "members": [ + { + "name": "transformer", + "type": "diffusers.models.transformers.transformer_flux3.Flux3Transformer2DModel" + } + ] + } + }, + { + "name": "scheduler", + "semanticName": "scheduler", + "direction": "input", + "roles": ["component"], + "types": ["diffusers_auto_model"], + "required": true, + "hidden": false, + "semantics": { + "kind": "component", + "scope": "Flux3DistilledModularPipeline", + "state": null, + "owner": "same_loader", + "members": [ + { + "name": "scheduler", + "type": "diffusers.schedulers.scheduling_flow_match_euler_discrete.FlowMatchEulerDiscreteScheduler" + } + ] + } + }, + { + "name": "latents", + "semanticName": "latents", + "direction": "output", + "roles": ["value"], + "types": ["latents"], + "required": false, + "hidden": false, + "semantics": { + "kind": "latents", + "scope": "Flux3DistilledModularPipeline", + "state": null, + "owner": "same_loader", + "members": [] + } + }, + { + "name": "doc", + "semanticName": "doc", + "direction": "output", + "roles": ["value"], + "types": ["string"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + } + ], + "workflowId": "text2image", + "binding": { + "values": {}, + "pipelineClass": "Flux3DistilledModularPipeline" + } + }, + "node": { + "module": "modules.ModularDiffusers", + "action": "Denoise", + "type": "custom", + "label": "Denoise", + "category": "sampler", + "description": "", + "resizable": true, + "skipParamsCheck": true, + "style": {}, + "params": { + "unet": { + "label": "Denoise Model *", + "display": "input", + "type": "diffusers_auto_model", + "required": true, + "onSignal": [ + "update_node", + { + "action": "signal", + "target": "guider" + }, + { + "action": "signal", + "target": "controlnet_bundle" + } + ], + "signalCompatibility": { + "role": "denoiser" + } + }, + "embeddings": { + "label": "Text Embeddings *", + "type": "embeddings", + "display": "input" + }, + "width": { + "label": "Width", + "type": "int", + "default": 1024, + "min": 64, + "step": 16, + "value": 1024 + }, + "height": { + "label": "Height", + "type": "int", + "default": 1024, + "min": 64, + "step": 16, + "value": 1024 + }, + "seed": { + "label": "Seed", + "type": "int", + "display": "random", + "default": 0, + "min": 0, + "max": 4294967295 + }, + "num_inference_steps": { + "label": "Steps", + "type": "int", + "display": "slider", + "default": 16, + "min": 1, + "max": 100, + "value": 16 + }, + "num_images_per_prompt": { + "label": "Images Per Prompt", + "type": "int", + "default": 1, + "min": 1, + "max": 8, + "step": 1 + }, + "image_cond_latents": { + "label": "Reference Latents", + "type": "latents", + "display": "input" + }, + "scheduler": { + "label": "Scheduler *", + "type": "diffusers_auto_model", + "display": "input", + "signalCompatibility": { + "role": "scheduler" + } + }, + "latents": { + "label": "Latents", + "type": "latents", + "display": "output" + }, + "doc": { + "label": "Doc", + "type": "string", + "display": "output" + }, + "reference_binding": { + "label": "Reference Binding", + "type": "reference_conditioning", + "display": "input", + "fieldOptions": { + "referenceBinding": { + "schemaVersion": 1, + "maxReferences": 10 + } + }, + "default": null + } + }, + "time": [0, 0, 0], + "memory": [0, 0, 0], + "cache": false + } + }, + { + "operation": { + "pipelineClass": "Flux3DistilledModularPipeline", + "task": "text_to_image", + "operationId": "diffusion.decode_latents", + "nodeKey": "modules.ModularDiffusers.DecodeLatents", + "nodeType": "decoder", + "blockName": "decode", + "decomposition": "block", + "support": "declared", + "ports": [ + { + "name": "latents", + "semanticName": "latents", + "direction": "input", + "roles": ["value"], + "types": ["latents"], + "required": true, + "hidden": false, + "semantics": { + "kind": "latents", + "scope": "Flux3DistilledModularPipeline", + "state": null, + "owner": "same_loader", + "members": [] + } + }, + { + "name": "vae", + "semanticName": "vae", + "direction": "input", + "roles": ["component"], + "types": ["diffusers_auto_model"], + "required": true, + "hidden": false, + "semantics": { + "kind": "component", + "scope": "Flux3DistilledModularPipeline", + "state": null, + "owner": "same_loader", + "members": [ + { + "name": "vae", + "type": "diffusers.models.autoencoders.autoencoder_kl_flux2.AutoencoderKLFlux2" + } + ] + } + }, + { + "name": "images", + "semanticName": "images", + "direction": "output", + "roles": ["value"], + "types": ["image"], + "required": false, + "hidden": false, + "semantics": { + "kind": "media", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "doc", + "semanticName": "doc", + "direction": "output", + "roles": ["value"], + "types": ["string"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + } + ], + "workflowId": "text2image", + "binding": { + "values": {}, + "pipelineClass": "Flux3DistilledModularPipeline" + } + }, + "node": { + "module": "modules.ModularDiffusers", + "action": "DecodeLatents", + "type": "custom", + "label": "Decode Latents", + "category": "sampler", + "description": "", + "resizable": true, + "skipParamsCheck": true, + "style": {}, + "params": { + "vae": { + "label": "VAE *", + "display": "input", + "type": "diffusers_auto_model", + "onSignal": "update_node", + "signalCompatibility": { + "role": "vae" + } + }, + "latents": { + "label": "Latents *", + "type": "latents", + "display": "input" + }, + "images": { + "label": "Images", + "type": "image", + "display": "output" + }, + "doc": { + "label": "Doc", + "type": "string", + "display": "output" + } + }, + "time": [0, 0, 0], + "memory": [0, 0, 0], + "cache": false + } + } + ], + "edges": [ + { + "source": "diffusion.load_models", + "sourceHandle": "text_encoders", + "target": "diffusion.encode_prompt", + "targetHandle": "text_encoders" + }, + { + "source": "diffusion.load_models", + "sourceHandle": "scheduler", + "target": "diffusion.denoise", + "targetHandle": "scheduler" + }, + { + "source": "diffusion.load_models", + "sourceHandle": "unet_out", + "target": "diffusion.denoise", + "targetHandle": "unet" + }, + { + "source": "diffusion.load_models", + "sourceHandle": "vae_out", + "target": "diffusion.decode_latents", + "targetHandle": "vae" + }, + { + "source": "diffusion.encode_prompt", + "sourceHandle": "embeddings", + "target": "diffusion.denoise", + "targetHandle": "embeddings" + }, + { + "source": "diffusion.denoise", + "sourceHandle": "latents", + "target": "diffusion.decode_latents", + "targetHandle": "latents" + } + ], + "requiredInputs": [ + { + "operationId": "diffusion.encode_prompt", + "field": "prompt" + } + ], + "sharedInputs": [], + "upstreamBlocks": ["text_encoder", "denoise", "decode"], + "authoring": { + "schemaVersion": 1, + "canonicalizationVersion": 1, + "id": "flux3-klein:text-to-image:prompt-preview-authoring:v1", + "baseSpecId": "flux3-klein:modular:text-to-image:v1", + "baseSpecContentHash": "studio-spec-v1-6697a7f5", + "executionProfileIds": ["flux3-klein:modular"], + "roles": [ + ["models", "modules.ModularDiffusers.ModelsLoader", -720, -80], + ["prompt", "modules.ModularDiffusers.EncodePrompt", -360, -240], + ["denoise", "modules.ModularDiffusers.Denoise", 80, -80], + ["decode", "modules.ModularDiffusers.DecodeLatents", 440, -80], + ["preview", "modules.Image.Preview", 800, -80] + ], + "edges": [ + ["models", "text_encoders", "prompt", "text_encoders"], + ["models", "unet_out", "denoise", "unet"], + ["models", "scheduler", "denoise", "scheduler"], + ["models", "vae_out", "decode", "vae"], + ["prompt", "embeddings", "denoise", "embeddings"], + ["denoise", "latents", "decode", "latents"], + ["decode", "images", "preview", "image"] + ], + "bindings": [ + ["models", "model_type", "pipelineClass"], + ["models", "repo_id", "artifact"], + ["models", "revision", "defaultRevision"], + ["models", "dtype", "dtype"], + ["models", "device", "device"], + ["models", "auto_offload", "autoOffload"], + ["models", "offload_mode", "offloadMode"], + ["models", "trust_remote_code", "false"], + ["prompt", "prompt", "prompt"], + ["denoise", "width", "width"], + ["denoise", "height", "height"], + ["denoise", "seed", "seed"], + ["denoise", "num_inference_steps", "steps"], + ["prompt", "max_sequence_length", "maxSequenceLength"], + ["models", "weight_format", "weightFormat"] + ], + "initialValues": [], + "ancillaryOperations": [ + { + "schemaVersion": 1, + "id": "flux3-klein:text-to-image:prompt-preview-authoring:v1:preview", + "parent": { + "authoringRecipeId": "flux3-klein:text-to-image:prompt-preview-authoring:v1", + "baseSpecId": "flux3-klein:modular:text-to-image:v1", + "baseSpecContentHash": "studio-spec-v1-6697a7f5", + "executionProfileId": "flux3-klein:modular", + "pipelineClass": "Flux3DistilledModularPipeline", + "task": "text_to_image" + }, + "executionPurpose": "explicit_preview", + "roles": [ + ["provider", "modules.HuggingFaceTransformers.LoadImageTextToTextModel", -720, -400], + ["proposal", "modules.HuggingFaceTransformers.GenerateImageVideoText", -360, -400] + ], + "edges": [["provider", "model", "proposal", "model"]], + "bindings": { + "owner": { + "role": "prompt", + "promptField": "prompt", + "layoutField": "layout_conditioning", + "referenceSource": null + }, + "request": { + "role": "proposal", + "promptField": "prompt", + "layoutField": "layout_conditioning", + "imagesField": "images" + }, + "output": { + "role": "proposal", + "field": "proposal_summary" + } + }, + "initialValues": [ + [ + "provider", + "model_id", + { + "source": "hub", + "value": "black-forest-labs/flux-3-image-klein-pup" + } + ], + ["provider", "revision", "3f3edb52b2c55de0d49feab28598b68f7f8e4830"], + ["proposal", "operation", "enhance_prompt"] + ], + "fieldOverrides": [ + [ + "proposal", + "enhancement_max_new_tokens", + { + "hidden": false + } + ], + [ + "proposal", + "max_new_tokens", + { + "hidden": true + } + ] + ], + "adapter": { + "id": "transformers-prompt-enhancement-v1", + "declarationSha256": "sha256:18a83a6eddaa2944ae13e80971a068346a72bb07fa0759cd1adbb2ccbb8226fc" + }, + "verification": { + "schemaVersion": 1, + "adapter": { + "id": "transformers-prompt-enhancement-v1", + "declarationSha256": "sha256:18a83a6eddaa2944ae13e80971a068346a72bb07fa0759cd1adbb2ccbb8226fc" + }, + "runtimeInputs": { + "role": "provider", + "modelField": "model_id", + "revisionField": "revision", + "dtypeField": "dtype", + "deviceField": "device", + "quantizationField": "quantization_mode" + }, + "requestInputs": { + "role": "proposal", + "operationField": "operation", + "maxNewTokensField": "enhancement_max_new_tokens", + "minNewTokensField": "min_new_tokens", + "maxInputTokensField": "max_input_tokens", + "maxImagePixelsField": "max_image_pixels" + }, + "supportedPromptModes": ["t2i", "i2i"], + "systemPromptsSha256": "sha256:b5da3ed8bc04ab59dbdb747930f7dbff847e868903fed8028f85ee1a4ac82fb4", + "systemPromptSha256ByMode": { + "t2i": "8b235a421bce2213d11ada01f5a1244443dd72303ffbb4cc9e5a0d8b0de5ab6f", + "i2i": "95cec384d5b6d341caa9fb3f2c7ca45ee80c2364b3a95d4044aebf976f6dd3bf", + "t2i_bbox": "5f513d8ce5838732919f9e645507aa20ff373e88bf93132c768e063c9db3151f", + "i2i_bbox": "9ad10f947e401337cf155cac0518cc428159ef16f2f029f48aae2aaab8380a5e" + }, + "chatTemplateSha256": "sha256:a4aee8afcf2e0711942cf848899be66016f8d14a889ff9ede07bca099c28f715", + "modelReceipt": { + "schemaVersion": 1, + "library": "transformers", + "task": "image-video-to-text", + "source": { + "kind": "hub", + "repository": "black-forest-labs/flux-3-image-klein-pup", + "revision": "3f3edb52b2c55de0d49feab28598b68f7f8e4830" + }, + "loader": { + "preprocessorAutoClass": "AutoProcessor", + "modelAutoClass": "AutoModelForImageTextToText" + }, + "security": { + "localFilesOnly": true, + "trustRemoteCode": false, + "safetensorsOnly": true, + "hostedInference": false + }, + "runtime": { + "transformersVersion": "5.18.0", + "preprocessorClass": "Qwen3VLProcessor", + "modelClass": "Qwen3_5ForConditionalGeneration", + "modelType": "qwen3_5", + "architectures": ["Qwen3_5ForConditionalGeneration"] + } + }, + "quantizationRecipes": [ + { + "mode": "none" + }, + { + "mode": "bnb_4bit", + "quantType": "nf4", + "doubleQuant": true, + "computeDtype": "bfloat16", + "skipModules": ["lm_head", "model.visual"] + } + ] + }, + "sourceRegions": false, + "contentHash": "studio-ancillary-v1-87b8cd59" + } + ], + "contentHash": "studio-authoring-v1-0f30cd9c" + } + }, + "registry": { + "modules.HuggingFaceTransformers.GenerateImageVideoText": { + "module": "modules.HuggingFaceTransformers", + "action": "GenerateImageVideoText", + "type": "custom", + "label": "Generate Image/Video Text", + "category": "Hugging Face Transformers", + "description": "Generate bounded text from bounded in-memory images or video frames.", + "resizable": true, + "skipParamsCheck": false, + "style": {}, + "params": { + "max_input_tokens": { + "label": "Input Token Limit", + "type": "int", + "default": 32768, + "min": 1, + "max": 32768 + }, + "max_image_pixels": { + "label": "Reference Pixel Limit", + "type": "int", + "default": 16777216, + "min": 65536, + "max": 16777216 + }, + "model": { + "label": "Model", + "display": "input", + "type": "transformers_image_text_to_text" + }, + "prompt": { + "label": "Prompt", + "type": "text", + "default": "" + }, + "operation": { + "label": "Operation", + "type": "string", + "options": [ + { + "schemaVersion": 1, + "value": "standard", + "label": "standard", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "enhance_prompt", + "label": "enhance_prompt", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + } + ], + "default": "standard", + "hidden": true + }, + "enhancement_max_new_tokens": { + "label": "Enhancement Token Limit", + "type": "int", + "default": 3584, + "min": 1, + "max": 3584, + "hidden": true, + "description": "Used only by prompt enhancement; ordinary generation keeps Max New Tokens." + }, + "layout_conditioning": { + "label": "Enhancement Layout", + "type": "layout_conditioning", + "display": "layout", + "default": null, + "hidden": true, + "fieldOptions": { + "layoutConditioning": { + "schemaVersion": 1, + "sourceRegions": false + } + } + }, + "images": { + "label": "Images", + "display": "input", + "type": "image", + "required": false + }, + "video": { + "label": "Video", + "display": "input", + "type": "video", + "required": false + }, + "use_chat_template": { + "label": "Use Chat Template", + "type": "boolean", + "default": true + }, + "max_new_tokens": { + "label": "Max New Tokens", + "type": "int", + "default": 256, + "min": 1, + "max": 2048 + }, + "min_new_tokens": { + "label": "Min New Tokens", + "type": "int", + "default": 0, + "min": 0, + "max": 2048 + }, + "do_sample": { + "label": "Sample", + "type": "boolean", + "default": false + }, + "temperature": { + "label": "Temperature", + "type": "float", + "default": 1.0, + "min": 0.01, + "max": 5.0 + }, + "top_p": { + "label": "Top P", + "type": "float", + "default": 1.0, + "min": 0.01, + "max": 1.0 + }, + "top_k": { + "label": "Top K", + "type": "int", + "default": 50, + "min": 0, + "max": 1000 + }, + "num_beams": { + "label": "Beams", + "type": "int", + "default": 1, + "min": 1, + "max": 8 + }, + "repetition_penalty": { + "label": "Repetition Penalty", + "type": "float", + "default": 1.0, + "min": 0.1, + "max": 10.0 + }, + "text": { + "label": "Generated Text", + "display": "output", + "type": "string" + }, + "result": { + "label": "Generation Result", + "display": "output", + "type": "object" + }, + "proposal_summary": { + "label": "Prompt Proposal Summary", + "display": "output", + "type": "string", + "hidden": true + } + }, + "time": [0, 0, 0], + "memory": [0, 0, 0], + "cache": false + }, + "modules.HuggingFaceTransformers.LoadImageTextToTextModel": { + "module": "modules.HuggingFaceTransformers", + "action": "LoadImageTextToTextModel", + "type": "custom", + "label": "Load Image/Video-to-Text Model", + "category": "Hugging Face Transformers", + "description": "Load an immutable local-only image/video-to-text model and processor.", + "resizable": true, + "skipParamsCheck": false, + "style": {}, + "params": { + "model": { + "label": "Model", + "display": "output", + "type": "transformers_image_text_to_text" + }, + "pipeline_class": { + "label": "Execution Class", + "type": "string", + "default": "AutoModelForImageTextToText", + "hidden": true + }, + "model_id": { + "label": "Model", + "display": "modelselect", + "type": "string", + "fieldOptions": { + "noValidation": true, + "sources": ["hub", "local"] + } + }, + "revision": { + "label": "Exact Hub Commit", + "type": "string", + "default": "" + }, + "dtype": { + "label": "DType", + "type": "string", + "options": [ + { + "schemaVersion": 1, + "value": "float32", + "label": "float32", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "float16", + "label": "float16", + "compatibility": "incompatible", + "availability": "unavailable", + "installationState": "unavailable", + "disabledReason": "float16 is not supported by the active runtime." + }, + { + "schemaVersion": 1, + "value": "bfloat16", + "label": "bfloat16", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + } + ], + "default": "float32" + }, + "device": { + "label": "Device", + "type": "string", + "options": { + "cpu:0": { + "schemaVersion": 1, + "value": "cpu:0", + "label": "cpu:0", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "cpu": { + "schemaVersion": 1, + "value": "cpu", + "label": "cpu", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + } + }, + "default": "cpu:0" + }, + "quantization_mode": { + "label": "Quantization", + "type": "string", + "options": [ + { + "schemaVersion": 1, + "value": "none", + "label": "none", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "bnb_4bit", + "label": "bnb_4bit", + "compatibility": "incompatible", + "availability": "unavailable", + "installationState": "unavailable", + "disabledReason": "MoDiff has not qualified this backend on the active platform" + } + ], + "default": "none" + }, + "receipt": { + "label": "Model Receipt", + "display": "output", + "type": "object" + } + }, + "time": [0, 0, 0], + "memory": [0, 0, 0], + "cache": false + }, + "modules.Image.Preview": { + "module": "modules.Image", + "action": "Preview", + "type": "custom", + "label": "Preview Image", + "category": "image", + "description": "Preview an image", + "resizable": true, + "skipParamsCheck": false, + "style": {}, + "params": { + "vae": { + "type": "pipeline", + "display": "input", + "label": "VAE" + }, + "device": { + "type": "string", + "default": "cpu:0", + "options": { + "cpu:0": { + "schemaVersion": 1, + "value": "cpu:0", + "label": "cpu:0", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "cpu": { + "schemaVersion": 1, + "value": "cpu", + "label": "cpu", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + } + } + }, + "image": { + "type": ["image", "latent"], + "display": "input", + "onChange": { + "action": "show", + "data": { + "true": ["vae", "device"], + "false": [] + }, + "condition": { + "type": "latent" + } + } + }, + "preview": { + "display": "ui_image", + "type": "url", + "dataSource": "output" + }, + "output": { + "type": "image", + "display": "output", + "label": "All images" + }, + "export": { + "type": "str", + "default": "0", + "description": "Export the image at the given index. Leave empty to export all images." + }, + "filtered": { + "type": "image", + "display": "output", + "label": "Selected image" + } + }, + "time": [0, 0, 0], + "memory": [0, 0, 0], + "cache": false + }, + "modules.ModularDiffusers.DecodeLatents": { + "module": "modules.ModularDiffusers", + "action": "DecodeLatents", + "type": "custom", + "label": "Decode Latents", + "category": "sampler", + "description": "", + "resizable": true, + "skipParamsCheck": true, + "style": {}, + "params": { + "vae": { + "label": "VAE *", + "display": "input", + "type": "diffusers_auto_model", + "onSignal": "update_node", + "signalCompatibility": { + "role": "vae" + } + }, + "latents": { + "label": "Latents *", + "type": "latents", + "display": "input" + }, + "images": { + "label": "Images", + "type": "image", + "display": "output" + }, + "doc": { + "label": "Doc", + "type": "string", + "display": "output" + } + }, + "time": [0, 0, 0], + "memory": [0, 0, 0], + "cache": false + }, + "modules.ModularDiffusers.Denoise": { + "module": "modules.ModularDiffusers", + "action": "Denoise", + "type": "custom", + "label": "Denoise", + "category": "sampler", + "description": "", + "resizable": true, + "skipParamsCheck": true, + "style": {}, + "params": { + "unet": { + "label": "Denoise Model *", + "display": "input", + "type": "diffusers_auto_model", + "required": true, + "onSignal": [ + "update_node", + { + "action": "signal", + "target": "guider" + }, + { + "action": "signal", + "target": "controlnet_bundle" + } + ], + "signalCompatibility": { + "role": "denoiser" + } + }, + "embeddings": { + "label": "Text Embeddings *", + "type": "embeddings", + "display": "input" + }, + "width": { + "label": "Width", + "type": "int", + "default": 1024, + "min": 64, + "step": 16, + "value": 1024 + }, + "height": { + "label": "Height", + "type": "int", + "default": 1024, + "min": 64, + "step": 16, + "value": 1024 + }, + "seed": { + "label": "Seed", + "type": "int", + "display": "random", + "default": 0, + "min": 0, + "max": 4294967295 + }, + "num_inference_steps": { + "label": "Steps", + "type": "int", + "display": "slider", + "default": 16, + "min": 1, + "max": 100, + "value": 16 + }, + "num_images_per_prompt": { + "label": "Images Per Prompt", + "type": "int", + "default": 1, + "min": 1, + "max": 8, + "step": 1 + }, + "image_cond_latents": { + "label": "Reference Latents", + "type": "latents", + "display": "input" + }, + "scheduler": { + "label": "Scheduler *", + "type": "diffusers_auto_model", + "display": "input", + "signalCompatibility": { + "role": "scheduler" + } + }, + "latents": { + "label": "Latents", + "type": "latents", + "display": "output" + }, + "doc": { + "label": "Doc", + "type": "string", + "display": "output" + }, + "reference_binding": { + "label": "Reference Binding", + "type": "reference_conditioning", + "display": "input", + "fieldOptions": { + "referenceBinding": { + "schemaVersion": 1, + "maxReferences": 10 + } + }, + "default": null + } + }, + "time": [0, 0, 0], + "memory": [0, 0, 0], + "cache": false + }, + "modules.ModularDiffusers.EncodePrompt": { + "module": "modules.ModularDiffusers", + "action": "EncodePrompt", + "type": "custom", + "label": "Encode Prompt", + "category": "embedding", + "description": "", + "resizable": true, + "skipParamsCheck": true, + "style": {}, + "params": { + "text_encoders": { + "label": "Text Encoders *", + "required": true, + "type": "diffusers_auto_models", + "display": "input", + "onSignal": "update_node", + "signalCompatibility": { + "role": "text_encoders" + } + }, + "prompt_input": { + "label": "Prompt Input", + "type": "string", + "display": "input", + "description": "Optional connected prompt. When connected, this replaces the inline Prompt value." + }, + "guider": { + "label": "Guider", + "type": "custom_guider", + "display": "input", + "hidden": true, + "description": "Shared Diffusers guidance used by prompt encoding and denoising when the selected pipeline supports it." + }, + "layout_reference_summary": { + "label": "Bound Reference Summary", + "type": "string", + "display": "output", + "hidden": true, + "description": "Display-only ordered reference identities and actual preprocessing sizes from the current encoder cache." + }, + "prompt": { + "label": "Prompt *", + "type": "string", + "display": "textarea", + "default": "", + "value": "A red ceramic teapot on a wooden table beside a window, soft morning light, detailed photograph.", + "fieldOptions": { + "exampleAttribution": "MoDiff task example" + } + }, + "max_sequence_length": { + "label": "Maximum Sequence Length", + "type": "int", + "default": 8192, + "min": 1, + "max": 8192, + "step": 1 + }, + "text_encoder_out_layers": { + "label": "Text Encoder Layers", + "type": "int", + "display": "select", + "default": [4, 8, 12, 16, 20, 24, 28, 32], + "options": [ + { + "schemaVersion": 1, + "value": "0", + "label": "0", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "1", + "label": "1", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "2", + "label": "2", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "3", + "label": "3", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "4", + "label": "4", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "5", + "label": "5", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "6", + "label": "6", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "7", + "label": "7", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "8", + "label": "8", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "9", + "label": "9", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "10", + "label": "10", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "11", + "label": "11", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "12", + "label": "12", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "13", + "label": "13", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "14", + "label": "14", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "15", + "label": "15", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "16", + "label": "16", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "17", + "label": "17", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "18", + "label": "18", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "19", + "label": "19", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "20", + "label": "20", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "21", + "label": "21", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "22", + "label": "22", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "23", + "label": "23", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "24", + "label": "24", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "25", + "label": "25", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "26", + "label": "26", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "27", + "label": "27", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "28", + "label": "28", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "29", + "label": "29", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "30", + "label": "30", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "31", + "label": "31", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "32", + "label": "32", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + } + ], + "fieldOptions": { + "multiple": true, + "tupleValue": true, + "tupleLength": 8 + } + }, + "embeddings": { + "label": "Text Embeddings", + "type": "embeddings", + "display": "output" + }, + "doc": { + "label": "Doc", + "type": "string", + "display": "output" + }, + "layout_conditioning": { + "label": "Layout Conditioning", + "type": "layout_conditioning", + "display": "layout", + "fieldOptions": { + "layoutConditioning": { + "schemaVersion": 2, + "sourceRegions": false, + "supportsBoundSourceRegions": true + } + }, + "default": null + }, + "reference_binding": { + "label": "Reference Binding", + "type": "reference_conditioning", + "display": "input", + "fieldOptions": { + "referenceBinding": { + "schemaVersion": 1, + "maxReferences": 10 + } + }, + "default": null + } + }, + "time": [0, 0, 0], + "memory": [0, 0, 0], + "cache": false + }, + "modules.ModularDiffusers.ModelsLoader": { + "module": "modules.ModularDiffusers", + "action": "ModelsLoader", + "type": "custom", + "label": "Load Models", + "category": "loader", + "description": "", + "resizable": true, + "skipParamsCheck": true, + "style": {}, + "params": { + "model_type": { + "label": "Pipeline Type", + "type": "string", + "options": { + "": { + "schemaVersion": 1, + "value": "", + "label": "", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "DummyCustomPipeline": { + "schemaVersion": 1, + "value": "DummyCustomPipeline", + "label": "Custom", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "StableDiffusionXLModularPipeline": { + "schemaVersion": 1, + "value": "StableDiffusionXLModularPipeline", + "label": "Stable Diffusion XL", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "QwenImageModularPipeline": { + "schemaVersion": 1, + "value": "QwenImageModularPipeline", + "label": "Qwen-Image-2512", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "QwenImageEditModularPipeline": { + "schemaVersion": 1, + "value": "QwenImageEditModularPipeline", + "label": "Qwen-Image-Edit", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "QwenImageEditPlusModularPipeline": { + "schemaVersion": 1, + "value": "QwenImageEditPlusModularPipeline", + "label": "Qwen-Image-Edit-2511", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "QwenImageLayeredModularPipeline": { + "schemaVersion": 1, + "value": "QwenImageLayeredModularPipeline", + "label": "Qwen-Image-Layered", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "FluxModularPipeline": { + "schemaVersion": 1, + "value": "FluxModularPipeline", + "label": "Flux", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "FluxKontextModularPipeline": { + "schemaVersion": 1, + "value": "FluxKontextModularPipeline", + "label": "Flux Kontext", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "Flux2ModularPipeline": { + "schemaVersion": 1, + "value": "Flux2ModularPipeline", + "label": "Flux 2", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "Flux2KleinModularPipeline": { + "schemaVersion": 1, + "value": "Flux2KleinModularPipeline", + "label": "Flux 2 Klein Distilled", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "Flux2KleinBaseModularPipeline": { + "schemaVersion": 1, + "value": "Flux2KleinBaseModularPipeline", + "label": "Flux 2 Klein Base", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "Flux3ModularPipeline": { + "schemaVersion": 1, + "value": "Flux3ModularPipeline", + "label": "FLUX 3 Image Klein Base", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "Flux3DistilledModularPipeline": { + "schemaVersion": 1, + "value": "Flux3DistilledModularPipeline", + "label": "FLUX 3 Image Klein", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "ZImageModularPipeline": { + "schemaVersion": 1, + "value": "ZImageModularPipeline", + "label": "Z-Image", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "WanModularPipeline": { + "schemaVersion": 1, + "value": "WanModularPipeline", + "label": "WAN2 T2V", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "WanImage2VideoModularPipeline": { + "schemaVersion": 1, + "value": "WanImage2VideoModularPipeline", + "label": "WAN2 I2V", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "MiniMaxMusic3ModularPipeline": { + "schemaVersion": 1, + "value": "MiniMaxMusic3ModularPipeline", + "label": "MiniMax Music 3", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "MiniMaxH3ModularPipeline": { + "schemaVersion": 1, + "value": "MiniMaxH3ModularPipeline", + "label": "MiniMax H3", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "AnimaModularPipeline": { + "schemaVersion": 1, + "value": "AnimaModularPipeline", + "label": "Anima", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "ErnieImageModularPipeline": { + "schemaVersion": 1, + "value": "ErnieImageModularPipeline", + "label": "ERNIE Image Turbo", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "HeliosModularPipeline": { + "schemaVersion": 1, + "value": "HeliosModularPipeline", + "label": "Helios", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "HeliosPyramidModularPipeline": { + "schemaVersion": 1, + "value": "HeliosPyramidModularPipeline", + "label": "Helios Pyramid", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "HeliosPyramidDistilledModularPipeline": { + "schemaVersion": 1, + "value": "HeliosPyramidDistilledModularPipeline", + "label": "Helios Pyramid Distilled", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "HunyuanVideo15ModularPipeline": { + "schemaVersion": 1, + "value": "HunyuanVideo15ModularPipeline", + "label": "HunyuanVideo 1.5", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "WanAnimate2ModularPipeline": { + "schemaVersion": 1, + "value": "WanAnimate2ModularPipeline", + "label": "Wan Animate 2", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "WanAnimate2DistilledModularPipeline": { + "schemaVersion": 1, + "value": "WanAnimate2DistilledModularPipeline", + "label": "Wan Animate 2 Distilled", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "Cosmos3OmniModularPipeline": { + "schemaVersion": 1, + "value": "Cosmos3OmniModularPipeline", + "label": "Cosmos 3 Nano", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "Cosmos3DistilledModularPipeline": { + "schemaVersion": 1, + "value": "Cosmos3DistilledModularPipeline", + "label": "Cosmos 3 Distilled", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "Ideogram4ModularPipeline": { + "schemaVersion": 1, + "value": "Ideogram4ModularPipeline", + "label": "Ideogram 4 (Contract only)", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "Krea2ModularPipeline": { + "schemaVersion": 1, + "value": "Krea2ModularPipeline", + "label": "Krea 2 (Contract only)", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "Krea2TurboModularPipeline": { + "schemaVersion": 1, + "value": "Krea2TurboModularPipeline", + "label": "Krea 2 Turbo (Contract only)", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "StableDiffusion3ModularPipeline": { + "schemaVersion": 1, + "value": "StableDiffusion3ModularPipeline", + "label": "Stable Diffusion 3 (Contract only)", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "LTX25ModularPipeline": { + "schemaVersion": 1, + "value": "LTX25ModularPipeline", + "label": "LTX-2.5 (Contract only)", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + } + }, + "onChange": "set_filters", + "description": "Selects the Modular Diffusers pipeline class. This filters compatible checkpoints and publishes the component contract used by connected nodes; it is not the model checkpoint itself.", + "value": "Flux3DistilledModularPipeline" + }, + "repo_id": { + "label": "Repository ID", + "display": "modelselect", + "type": "string", + "value": { + "source": "hub", + "value": "black-forest-labs/flux-3-image-klein" + }, + "fieldOptions": { + "noValidation": true, + "sources": ["hub", "local"], + "filter": { + "hub": { + "className": ["Flux3DistilledModularPipeline"] + } + } + }, + "onChange": "refresh_pipeline_identity" + }, + "reviewed_variant": { + "label": "Model", + "type": "string", + "value": "black-forest-labs/flux-3-image-klein", + "options": [ + { + "schemaVersion": 1, + "value": "black-forest-labs/flux-3-image-klein", + "label": "black-forest-labs/flux-3-image-klein", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + } + ], + "hidden": true, + "fieldOptions": { + "controlTier": "essential" + }, + "description": "Select an immutable, reviewed checkpoint for this exact Modular Diffusers pipeline family. Changing it does not replace the workflow graph or reset its parameters." + }, + "dtype": { + "label": "dtype", + "options": [ + { + "schemaVersion": 1, + "value": "float32", + "label": "float32", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "float16", + "label": "float16", + "compatibility": "incompatible", + "availability": "unavailable", + "installationState": "unavailable", + "disabledReason": "float16 is not supported by the active runtime." + }, + { + "schemaVersion": 1, + "value": "bfloat16", + "label": "bfloat16", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + } + ], + "value": "bfloat16" + }, + "device": { + "label": "Device", + "type": "string", + "value": "cpu:0", + "options": { + "cpu:0": { + "schemaVersion": 1, + "value": "cpu:0", + "label": "cpu:0", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "cpu": { + "schemaVersion": 1, + "value": "cpu", + "label": "cpu", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + } + } + }, + "attention_backend": { + "label": "Attention Backend", + "type": "string", + "default": "inherit", + "options": [ + { + "schemaVersion": 1, + "value": "inherit", + "label": "inherit", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "auto", + "label": "auto", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "native", + "label": "native", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "_native_math", + "label": "_native_math", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + } + ], + "description": "Inherit preserves existing native component defaults; explicit choices use the ordinary Diffusers attention API." + }, + "vae_slicing": { + "label": "VAE Slicing", + "type": "boolean", + "default": null, + "hidden": true, + "description": "An unset policy preserves the native VAE configuration; templates may bind an explicit boolean." + }, + "vae_tiling": { + "label": "VAE Tiling", + "type": "boolean", + "default": null, + "hidden": true, + "description": "An unset policy preserves the native VAE configuration; templates may bind an explicit boolean." + }, + "inpaint_compatibility": { + "label": "Inpaint Compatibility", + "type": "string", + "default": "native", + "hidden": true, + "options": [ + { + "schemaVersion": 1, + "value": "native", + "label": "native", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "whole_v1", + "label": "whole_v1", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + } + ], + "description": "Technical compatibility selection for the reviewed Qwen Edit inpainting candidate; existing nodes retain native policy." + }, + "trust_remote_code": { + "label": "Trust Remote Code", + "type": "boolean", + "value": false, + "description": "Repository code execution is disabled; keep this off for contract preview.", + "onChange": "refresh_pipeline_identity" + }, + "revision": { + "label": "Revision", + "type": "string", + "value": "8454017f9ebaada30c998fccd9f67a80c7580f68", + "description": "Required exact 40-character commit hash for Hub custom contracts.", + "onChange": "refresh_pipeline_identity" + }, + "workflow_id": { + "label": "Reviewed Workflow", + "type": "string", + "value": "", + "hidden": true, + "description": "Exact reviewed component partition selected by a first-party Cluster Node." + }, + "modiff_pipeline_identity": { + "label": "Custom Pipeline Identity", + "type": "object", + "value": null, + "hidden": true + }, + "refresh_pipeline_identity_button": { + "label": "Review and Refresh Custom Contract", + "display": "ui_button", + "value": false, + "hidden": true, + "onChange": "refresh_pipeline_identity" + }, + "auto_offload": { + "label": "Enable Auto Offload", + "type": "boolean", + "value": true + }, + "offload_mode": { + "label": "Offload Mode", + "type": "string", + "options": [ + { + "schemaVersion": 1, + "value": "auto_cpu", + "label": "auto_cpu", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "none", + "label": "none", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "model_cpu", + "label": "model_cpu", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "group_cpu", + "label": "group_cpu", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "group_disk", + "label": "group_disk", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + } + ], + "value": "model_cpu", + "default": "model_cpu" + }, + "weight_loading_mode": { + "label": "Weight Loading", + "type": "string", + "default": "cpu", + "options": [ + { + "schemaVersion": 1, + "value": "cpu", + "label": "cpu", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "cuda", + "label": "cuda", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + } + ], + "fieldOptions": { + "controlTier": "advanced" + }, + "description": "Load weights on CPU or CUDA before disk offload. CUDA loading needs room for a complete component and is available only for supported models." + }, + "weight_format": { + "label": "Weight Format", + "type": "string", + "default": "native", + "options": [ + { + "schemaVersion": 1, + "value": "native", + "label": "native", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + } + ], + "hidden": true, + "fieldOptions": { + "controlTier": "advanced" + }, + "description": "Select a backend-declared immutable component format. Missing reviewed files must be installed through Model Manager." + }, + "unet": { + "label": "Denoise Model", + "display": "input", + "type": "diffusers_auto_model", + "hidden": false + }, + "vae": { + "label": "VAE", + "display": "input", + "type": "diffusers_auto_model", + "hidden": false + }, + "controlnet": { + "label": "ControlNet", + "display": "input", + "type": "diffusers_auto_model", + "hidden": true + }, + "lora_list": { + "label": "Lora", + "display": "input", + "type": "custom_lora" + }, + "text_encoders": { + "label": "Text Encoders", + "display": "output", + "type": "diffusers_auto_models", + "signal": { + "direction": "output", + "origin": "modiff_pipeline_identity", + "value": "Flux3DistilledModularPipeline" + }, + "connectionRole": "text_encoders", + "hidden": false + }, + "unet_out": { + "label": "Denoise Model", + "display": "output", + "type": "diffusers_auto_model", + "signal": { + "direction": "output", + "origin": "modiff_pipeline_identity", + "value": "Flux3DistilledModularPipeline" + }, + "connectionRole": "denoiser", + "hidden": false + }, + "vae_out": { + "label": "VAE", + "display": "output", + "type": "diffusers_auto_model", + "signal": { + "direction": "output", + "origin": "modiff_pipeline_identity", + "value": "Flux3DistilledModularPipeline" + }, + "connectionRole": "vae", + "hidden": false + }, + "scheduler": { + "label": "Scheduler", + "display": "output", + "type": "diffusers_auto_model", + "signal": { + "direction": "output", + "origin": "modiff_pipeline_identity", + "value": "Flux3DistilledModularPipeline" + }, + "connectionRole": "scheduler", + "hidden": false + }, + "image_encoder": { + "label": "Image Encoder", + "display": "output", + "type": "diffusers_auto_model", + "signal": { + "direction": "output", + "origin": "modiff_pipeline_identity", + "value": "Flux3DistilledModularPipeline" + }, + "connectionRole": "image_encoder", + "hidden": true + }, + "pipeline_components": { + "label": "Pipeline Components", + "display": "output", + "type": "diffusers_modular_pipeline_components", + "signal": { + "direction": "output", + "origin": "modiff_pipeline_identity", + "value": "Flux3DistilledModularPipeline" + }, + "connectionRole": "pipeline_components", + "hidden": false + }, + "quant_config": { + "label": "Quant Config", + "display": "input", + "type": "quant_config" + } + }, + "time": [0, 0, 0], + "memory": [0, 0, 0], + "cache": false + } + }, + "baseSpec": { + "schemaVersion": 1, + "canonicalizationVersion": 1, + "id": "flux3-klein:modular:text-to-image:v1", + "modelType": "Flux3DistilledModularPipeline", + "mode": "text_to_image", + "executionProfileId": "flux3-klein:modular", + "loaderModule": "modules.ModularDiffusers", + "loaderAction": "ModelsLoader", + "executionPath": "modular-diffusers", + "pipelineClass": "Flux3DistilledModularPipeline", + "defaultRepo": "black-forest-labs/flux-3-image-klein", + "roles": [ + ["models", "modules.ModularDiffusers.ModelsLoader", -720, -80], + ["prompt", "modules.ModularDiffusers.EncodePrompt", -360, -240], + ["denoise", "modules.ModularDiffusers.Denoise", 80, -80], + ["decode", "modules.ModularDiffusers.DecodeLatents", 440, -80], + ["preview", "modules.Image.Preview", 800, -80] + ], + "edges": [ + ["models", "text_encoders", "prompt", "text_encoders"], + ["models", "unet_out", "denoise", "unet"], + ["models", "scheduler", "denoise", "scheduler"], + ["models", "vae_out", "decode", "vae"], + ["prompt", "embeddings", "denoise", "embeddings"], + ["denoise", "latents", "decode", "latents"], + ["decode", "images", "preview", "image"] + ], + "bindings": [ + ["models", "model_type", "pipelineClass"], + ["models", "repo_id", "artifact"], + ["models", "revision", "defaultRevision"], + ["models", "dtype", "dtype"], + ["models", "device", "device"], + ["models", "auto_offload", "autoOffload"], + ["models", "offload_mode", "offloadMode"], + ["models", "trust_remote_code", "false"], + ["prompt", "prompt", "prompt"], + ["denoise", "width", "width"], + ["denoise", "height", "height"], + ["denoise", "seed", "seed"], + ["denoise", "num_inference_steps", "steps"], + ["prompt", "max_sequence_length", "maxSequenceLength"], + ["models", "weight_format", "weightFormat"] + ], + "autoFields": [ + "resolvedArtifact", + "artifact", + "installTarget.repo", + "modelRepo", + "pipelineClass", + "dtype", + "offloadMode", + "quantizedComponents", + "attentionBackend", + "regionalCompile", + "denoiserCache", + "layerwiseCasting", + "channelsLast" + ], + "actions": [], + "contentHash": "studio-spec-v1-6697a7f5" + }, + "capability": { + "modelType": "Flux3DistilledModularPipeline", + "label": "FLUX 3 Image Klein", + "displayName": "FLUX 3 Image Klein", + "family": "FLUX Image", + "defaultRepo": "black-forest-labs/flux-3-image-klein", + "defaultDtype": "bfloat16", + "defaultSize": { + "width": 1024, + "height": 1024, + "aspectRatio": "1:1" + }, + "recommendedSteps": 16, + "recommendedGuidance": 1.0, + "supportsGuidance": false, + "guidanceLabel": "Classifier-free guidance", + "supportsNegativePrompt": false, + "supportsImageInput": true, + "supportsMask": false, + "supportsMultiImage": true, + "supportsControlImage": false, + "supportsLayers": false, + "supportsLora": false, + "outputKind": "image", + "modes": ["text_to_image", "edit_image"], + "modeRequirements": { + "edit_image": { + "requiredImages": ["referenceImages"] + } + }, + "executionStatus": "contract_only", + "supportTier": "experimental", + "qualificationStatus": "contract_only", + "qualifiedModes": [], + "autoEligible": false, + "templateEligible": false, + "galleryEligible": false, + "liveProof": false, + "revisionCandidates": ["8454017f9ebaada30c998fccd9f67a80c7580f68"], + "downloadFiles": [ + "LICENSE.md", + "NOTICE.md", + "modular_model_index.json", + "text_encoder/LICENSE", + "text_encoder/chat_template.json", + "text_encoder/config.json", + "text_encoder/generation_config.json", + "text_encoder/merges.txt", + "text_encoder/model-00001-of-00002.safetensors", + "text_encoder/model-00002-of-00002.safetensors", + "text_encoder/model.safetensors.index.json", + "text_encoder/preprocessor_config.json", + "text_encoder/tokenizer.json", + "text_encoder/tokenizer_config.json", + "text_encoder/video_preprocessor_config.json", + "text_encoder/vocab.json", + "transformer/config.json", + "transformer/diffusion_pytorch_model-00001-of-00002.safetensors", + "transformer/diffusion_pytorch_model-00002-of-00002.safetensors", + "transformer/diffusion_pytorch_model.safetensors.index.json", + "vae/config.json", + "vae/diffusion_pytorch_model.safetensors" + ], + "weightFormatSelections": [ + { + "weightFormat": "fp8r", + "repo": "black-forest-labs/flux-3-image-klein", + "revision": "8454017f9ebaada30c998fccd9f67a80c7580f68", + "downloadFiles": [ + "LICENSE.md", + "NOTICE.md", + "modular_model_index.json", + "text_encoder/LICENSE", + "text_encoder/chat_template.json", + "text_encoder/config.json", + "text_encoder/generation_config.json", + "text_encoder/merges.txt", + "text_encoder/model-00001-of-00002.safetensors", + "text_encoder/model-00002-of-00002.safetensors", + "text_encoder/model.safetensors.index.json", + "text_encoder/preprocessor_config.json", + "text_encoder/tokenizer.json", + "text_encoder/tokenizer_config.json", + "text_encoder/video_preprocessor_config.json", + "text_encoder/vocab.json", + "transformer/config.json", + "vae/config.json", + "vae/diffusion_pytorch_model.safetensors", + "variants/fp8r/model.safetensors" + ] + }, + { + "weightFormat": "nvfp4", + "repo": "black-forest-labs/flux-3-image-klein", + "revision": "8454017f9ebaada30c998fccd9f67a80c7580f68", + "downloadFiles": [ + "LICENSE.md", + "NOTICE.md", + "modular_model_index.json", + "text_encoder/LICENSE", + "text_encoder/chat_template.json", + "text_encoder/config.json", + "text_encoder/generation_config.json", + "text_encoder/merges.txt", + "text_encoder/model-00001-of-00002.safetensors", + "text_encoder/model-00002-of-00002.safetensors", + "text_encoder/model.safetensors.index.json", + "text_encoder/preprocessor_config.json", + "text_encoder/tokenizer.json", + "text_encoder/tokenizer_config.json", + "text_encoder/video_preprocessor_config.json", + "text_encoder/vocab.json", + "transformer/config.json", + "vae/config.json", + "vae/diffusion_pytorch_model.safetensors", + "variants/nvfp4/model.safetensors" + ] + } + ], + "notes": [ + "Source-audit candidate only; the installed reviewed release has no FLUX 3 exports.", + "Immutable artifact metadata is reviewed; pretrained weights and runtime qualification remain pending." + ], + "schemaVersion": 2, + "mediaKind": "image", + "pipelineClasses": [], + "executionProfiles": [], + "studioExecutionSpecs": [], + "runnableModes": [], + "inputContracts": { + "edit_image": { + "requiredImages": ["referenceImages"] + } + }, + "parameterAliases": { + "modelRepository": ["model_id", "model", "repo"], + "guidanceScale": ["guidance_scale", "true_cfg_scale", "guidance"], + "steps": ["num_inference_steps", "steps"], + "sourceImage": ["image", "reference_images"], + "maskImage": ["mask_image", "mask"], + "controlImage": ["control_image", "conditioning_image"] + }, + "defaults": { + "dtype": "bfloat16", + "size": { + "width": 1024, + "height": 1024, + "aspectRatio": "1:1" + }, + "steps": 16, + "guidanceScale": 1.0, + "offloadMode": null + }, + "artifactCandidates": ["black-forest-labs/flux-3-image-klein"], + "quantizationSupport": { + "defaultMode": "none", + "components": [], + "offloadModes": [] + }, + "optionalRuntimeProfileIds": [], + "optionalRuntimeProfiles": [], + "optionalRuntimeRequirement": { + "schemaVersion": 1, + "delivery": "base", + "requiredNow": false, + "profileIds": [], + "executionProfileIds": [], + "state": "base_satisfied", + "reason": "no_optional_runtime_required" + }, + "taskTemplateContracts": [] + }, + "operationContracts": [ + { + "pipelineClass": "Flux3DistilledModularPipeline", + "task": "text_to_image", + "operationId": "diffusion.decode_latents", + "nodeKey": "modules.ModularDiffusers.DecodeLatents", + "nodeType": "decoder", + "blockName": "decode", + "decomposition": "block", + "support": "declared", + "ports": [ + { + "name": "latents", + "semanticName": "latents", + "direction": "input", + "roles": ["value"], + "types": ["latents"], + "required": true, + "hidden": false, + "semantics": { + "kind": "latents", + "scope": "Flux3DistilledModularPipeline", + "state": null, + "owner": "same_loader", + "members": [] + } + }, + { + "name": "vae", + "semanticName": "vae", + "direction": "input", + "roles": ["component"], + "types": ["diffusers_auto_model"], + "required": true, + "hidden": false, + "semantics": { + "kind": "component", + "scope": "Flux3DistilledModularPipeline", + "state": null, + "owner": "same_loader", + "members": [ + { + "name": "vae", + "type": "diffusers.models.autoencoders.autoencoder_kl_flux2.AutoencoderKLFlux2" + } + ] + } + }, + { + "name": "images", + "semanticName": "images", + "direction": "output", + "roles": ["value"], + "types": ["image"], + "required": false, + "hidden": false, + "semantics": { + "kind": "media", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "doc", + "semanticName": "doc", + "direction": "output", + "roles": ["value"], + "types": ["string"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + } + ], + "workflowId": "text2image", + "binding": { + "values": {}, + "pipelineClass": "Flux3DistilledModularPipeline" + } + }, + { + "pipelineClass": "Flux3DistilledModularPipeline", + "task": "text_to_image", + "operationId": "diffusion.denoise", + "nodeKey": "modules.ModularDiffusers.Denoise", + "nodeType": "denoise", + "blockName": "denoise", + "decomposition": "block", + "support": "declared", + "ports": [ + { + "name": "embeddings", + "semanticName": "embeddings", + "direction": "input", + "roles": ["value"], + "types": ["embeddings"], + "required": true, + "hidden": false, + "semantics": { + "kind": "conditioning", + "scope": "Flux3DistilledModularPipeline", + "state": null, + "owner": "same_loader", + "members": [] + } + }, + { + "name": "width", + "semanticName": "width", + "direction": "input", + "roles": ["value"], + "types": ["int"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "height", + "semanticName": "height", + "direction": "input", + "roles": ["value"], + "types": ["int"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "seed", + "semanticName": "seed", + "direction": "input", + "roles": ["value"], + "types": ["int"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "num_inference_steps", + "semanticName": "num_inference_steps", + "direction": "input", + "roles": ["value"], + "types": ["int"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "num_images_per_prompt", + "semanticName": "num_images_per_prompt", + "direction": "input", + "roles": ["value"], + "types": ["int"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "image_cond_latents", + "semanticName": "image_cond_latents", + "direction": "input", + "roles": ["value"], + "types": ["latents"], + "required": false, + "hidden": false, + "semantics": { + "kind": "latents", + "scope": "Flux3DistilledModularPipeline", + "state": null, + "owner": "same_loader", + "members": [] + } + }, + { + "name": "unet", + "semanticName": "unet", + "direction": "input", + "roles": ["component"], + "types": ["diffusers_auto_model"], + "required": true, + "hidden": false, + "semantics": { + "kind": "component", + "scope": "Flux3DistilledModularPipeline", + "state": null, + "owner": "same_loader", + "members": [ + { + "name": "transformer", + "type": "diffusers.models.transformers.transformer_flux3.Flux3Transformer2DModel" + } + ] + } + }, + { + "name": "scheduler", + "semanticName": "scheduler", + "direction": "input", + "roles": ["component"], + "types": ["diffusers_auto_model"], + "required": true, + "hidden": false, + "semantics": { + "kind": "component", + "scope": "Flux3DistilledModularPipeline", + "state": null, + "owner": "same_loader", + "members": [ + { + "name": "scheduler", + "type": "diffusers.schedulers.scheduling_flow_match_euler_discrete.FlowMatchEulerDiscreteScheduler" + } + ] + } + }, + { + "name": "latents", + "semanticName": "latents", + "direction": "output", + "roles": ["value"], + "types": ["latents"], + "required": false, + "hidden": false, + "semantics": { + "kind": "latents", + "scope": "Flux3DistilledModularPipeline", + "state": null, + "owner": "same_loader", + "members": [] + } + }, + { + "name": "doc", + "semanticName": "doc", + "direction": "output", + "roles": ["value"], + "types": ["string"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + } + ], + "workflowId": "text2image", + "binding": { + "values": {}, + "pipelineClass": "Flux3DistilledModularPipeline" + } + }, + { + "pipelineClass": "Flux3DistilledModularPipeline", + "task": "text_to_image", + "operationId": "diffusion.encode_prompt", + "nodeKey": "modules.ModularDiffusers.EncodePrompt", + "nodeType": "text_encoder", + "blockName": "text_encoder", + "decomposition": "block", + "support": "declared", + "ports": [ + { + "name": "prompt", + "semanticName": "prompt", + "direction": "input", + "roles": ["value"], + "types": ["string"], + "required": true, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "max_sequence_length", + "semanticName": "max_sequence_length", + "direction": "input", + "roles": ["value"], + "types": ["int"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "text_encoder_out_layers", + "semanticName": "text_encoder_out_layers", + "direction": "input", + "roles": ["value"], + "types": ["int"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "text_encoders", + "semanticName": "text_encoders", + "direction": "input", + "roles": ["component"], + "types": ["diffusers_auto_models"], + "required": true, + "hidden": false, + "semantics": { + "kind": "component", + "scope": "Flux3DistilledModularPipeline", + "state": null, + "owner": "same_loader", + "members": [ + { + "name": "text_encoder", + "type": "transformers.models.qwen3_vl.modeling_qwen3_vl.Qwen3VLForConditionalGeneration" + }, + { + "name": "tokenizer", + "type": "transformers.models.auto.processing_auto.AutoProcessor" + } + ] + } + }, + { + "name": "embeddings", + "semanticName": "embeddings", + "direction": "output", + "roles": ["value"], + "types": ["embeddings"], + "required": false, + "hidden": false, + "semantics": { + "kind": "conditioning", + "scope": "Flux3DistilledModularPipeline", + "state": null, + "owner": "same_loader", + "members": [] + } + }, + { + "name": "doc", + "semanticName": "doc", + "direction": "output", + "roles": ["value"], + "types": ["string"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "prompt_input", + "semanticName": "prompt", + "direction": "input", + "roles": ["value"], + "types": ["string"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + } + ], + "workflowId": "text2image", + "binding": { + "values": {}, + "pipelineClass": "Flux3DistilledModularPipeline" + } + }, + { + "pipelineClass": "Flux3DistilledModularPipeline", + "task": "text_to_image", + "operationId": "diffusion.load_models", + "nodeKey": "modules.ModularDiffusers.ModelsLoader", + "nodeType": "loader", + "blockName": null, + "decomposition": "loader", + "support": "declared", + "ports": [ + { + "name": "model_type", + "semanticName": "model_type", + "direction": "input", + "roles": ["value"], + "types": ["string"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "repo_id", + "semanticName": "repo_id", + "direction": "input", + "roles": ["value"], + "types": ["string"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "reviewed_variant", + "semanticName": "reviewed_variant", + "direction": "input", + "roles": ["value"], + "types": ["string"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "device", + "semanticName": "device", + "direction": "input", + "roles": ["value"], + "types": ["string"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "attention_backend", + "semanticName": "attention_backend", + "direction": "input", + "roles": ["value"], + "types": ["string"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "vae_slicing", + "semanticName": "vae_slicing", + "direction": "input", + "roles": ["value"], + "types": ["boolean"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "vae_tiling", + "semanticName": "vae_tiling", + "direction": "input", + "roles": ["value"], + "types": ["boolean"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "inpaint_compatibility", + "semanticName": "inpaint_compatibility", + "direction": "input", + "roles": ["value"], + "types": ["string"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "trust_remote_code", + "semanticName": "trust_remote_code", + "direction": "input", + "roles": ["value"], + "types": ["boolean"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "revision", + "semanticName": "revision", + "direction": "input", + "roles": ["value"], + "types": ["string"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "workflow_id", + "semanticName": "workflow_id", + "direction": "input", + "roles": ["value"], + "types": ["string"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "modiff_pipeline_identity", + "semanticName": "modiff_pipeline_identity", + "direction": "input", + "roles": ["value"], + "types": ["object"], + "required": false, + "hidden": true, + "semantics": { + "kind": "opaque", + "scope": "Flux3DistilledModularPipeline", + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "auto_offload", + "semanticName": "auto_offload", + "direction": "input", + "roles": ["value"], + "types": ["boolean"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "offload_mode", + "semanticName": "offload_mode", + "direction": "input", + "roles": ["value"], + "types": ["string"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "weight_loading_mode", + "semanticName": "weight_loading_mode", + "direction": "input", + "roles": ["value"], + "types": ["string"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "weight_format", + "semanticName": "weight_format", + "direction": "input", + "roles": ["value"], + "types": ["string"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "unet", + "semanticName": "unet", + "direction": "input", + "roles": ["component"], + "types": ["diffusers_auto_model"], + "required": false, + "hidden": false, + "semantics": { + "kind": "component", + "scope": "Flux3DistilledModularPipeline", + "state": null, + "owner": "same_loader", + "members": [ + { + "name": "transformer", + "type": "diffusers.models.transformers.transformer_flux3.Flux3Transformer2DModel" + } + ] + } + }, + { + "name": "vae", + "semanticName": "vae", + "direction": "input", + "roles": ["component"], + "types": ["diffusers_auto_model"], + "required": false, + "hidden": false, + "semantics": { + "kind": "component", + "scope": "Flux3DistilledModularPipeline", + "state": null, + "owner": "same_loader", + "members": [ + { + "name": "vae", + "type": "diffusers.models.autoencoders.autoencoder_kl_flux2.AutoencoderKLFlux2" + } + ] + } + }, + { + "name": "controlnet", + "semanticName": "controlnet", + "direction": "input", + "roles": ["component"], + "types": ["diffusers_auto_model"], + "required": false, + "hidden": true, + "semantics": { + "kind": "component", + "scope": "Flux3DistilledModularPipeline", + "state": null, + "owner": "same_loader", + "members": [] + } + }, + { + "name": "lora_list", + "semanticName": "lora_list", + "direction": "input", + "roles": ["value"], + "types": ["custom_lora"], + "required": false, + "hidden": false, + "semantics": { + "kind": "opaque", + "scope": "Flux3DistilledModularPipeline", + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "text_encoders", + "semanticName": "text_encoders", + "direction": "output", + "roles": ["component"], + "types": ["diffusers_auto_models"], + "required": false, + "hidden": false, + "semantics": { + "kind": "component", + "scope": "Flux3DistilledModularPipeline", + "state": null, + "owner": "same_loader", + "members": [ + { + "name": "text_encoder", + "type": "transformers.models.qwen3_vl.modeling_qwen3_vl.Qwen3VLForConditionalGeneration" + }, + { + "name": "tokenizer", + "type": "transformers.models.auto.processing_auto.AutoProcessor" + } + ] + } + }, + { + "name": "unet_out", + "semanticName": "unet_out", + "direction": "output", + "roles": ["component"], + "types": ["diffusers_auto_model"], + "required": false, + "hidden": false, + "semantics": { + "kind": "component", + "scope": "Flux3DistilledModularPipeline", + "state": null, + "owner": "same_loader", + "members": [ + { + "name": "transformer", + "type": "diffusers.models.transformers.transformer_flux3.Flux3Transformer2DModel" + } + ] + } + }, + { + "name": "vae_out", + "semanticName": "vae_out", + "direction": "output", + "roles": ["component"], + "types": ["diffusers_auto_model"], + "required": false, + "hidden": false, + "semantics": { + "kind": "component", + "scope": "Flux3DistilledModularPipeline", + "state": null, + "owner": "same_loader", + "members": [ + { + "name": "vae", + "type": "diffusers.models.autoencoders.autoencoder_kl_flux2.AutoencoderKLFlux2" + } + ] + } + }, + { + "name": "scheduler", + "semanticName": "scheduler", + "direction": "output", + "roles": ["component"], + "types": ["diffusers_auto_model"], + "required": false, + "hidden": false, + "semantics": { + "kind": "component", + "scope": "Flux3DistilledModularPipeline", + "state": null, + "owner": "same_loader", + "members": [ + { + "name": "scheduler", + "type": "diffusers.schedulers.scheduling_flow_match_euler_discrete.FlowMatchEulerDiscreteScheduler" + } + ] + } + }, + { + "name": "image_encoder", + "semanticName": "image_encoder", + "direction": "output", + "roles": ["component"], + "types": ["diffusers_auto_model"], + "required": false, + "hidden": true, + "semantics": { + "kind": "component", + "scope": "Flux3DistilledModularPipeline", + "state": null, + "owner": "same_loader", + "members": [] + } + }, + { + "name": "pipeline_components", + "semanticName": "pipeline_components", + "direction": "output", + "roles": ["component"], + "types": ["diffusers_modular_pipeline_components"], + "required": false, + "hidden": false, + "semantics": { + "kind": "component", + "scope": "Flux3DistilledModularPipeline", + "state": null, + "owner": "same_loader", + "members": [ + { + "name": "image_processor", + "type": "diffusers.modular_pipelines.flux3.image_processor.Flux3ImageProcessor" + }, + { + "name": "scheduler", + "type": "diffusers.schedulers.scheduling_flow_match_euler_discrete.FlowMatchEulerDiscreteScheduler" + }, + { + "name": "text_encoder", + "type": "transformers.models.qwen3_vl.modeling_qwen3_vl.Qwen3VLForConditionalGeneration" + }, + { + "name": "tokenizer", + "type": "transformers.models.auto.processing_auto.AutoProcessor" + }, + { + "name": "transformer", + "type": "diffusers.models.transformers.transformer_flux3.Flux3Transformer2DModel" + }, + { + "name": "vae", + "type": "diffusers.models.autoencoders.autoencoder_kl_flux2.AutoencoderKLFlux2" + } + ] + } + }, + { + "name": "quant_config", + "semanticName": "quant_config", + "direction": "input", + "roles": ["value"], + "types": ["quant_config"], + "required": false, + "hidden": false, + "semantics": { + "kind": "opaque", + "scope": "Flux3DistilledModularPipeline", + "state": null, + "owner": "none", + "members": [] + } + } + ], + "workflowId": "text2image", + "binding": { + "values": { + "model_type": "Flux3DistilledModularPipeline" + }, + "pipelineClass": "Flux3DistilledModularPipeline" + } + } + ] +} diff --git a/tests/fixtures/weight-format-selections.v1.json b/tests/fixtures/weight-format-selections.v1.json new file mode 100644 index 00000000..170f1471 --- /dev/null +++ b/tests/fixtures/weight-format-selections.v1.json @@ -0,0 +1,127 @@ +{ + "schemaVersion": 1, + "rows": [ + { + "modelType": "Flux3DistilledModularPipeline", + "repo": "black-forest-labs/flux-3-image-klein", + "revision": "8454017f9ebaada30c998fccd9f67a80c7580f68", + "weightFormatSelections": [ + { + "weightFormat": "fp8r", + "repo": "black-forest-labs/flux-3-image-klein", + "revision": "8454017f9ebaada30c998fccd9f67a80c7580f68", + "downloadFiles": [ + "LICENSE.md", + "NOTICE.md", + "modular_model_index.json", + "text_encoder/LICENSE", + "text_encoder/chat_template.json", + "text_encoder/config.json", + "text_encoder/generation_config.json", + "text_encoder/merges.txt", + "text_encoder/model-00001-of-00002.safetensors", + "text_encoder/model-00002-of-00002.safetensors", + "text_encoder/model.safetensors.index.json", + "text_encoder/preprocessor_config.json", + "text_encoder/tokenizer.json", + "text_encoder/tokenizer_config.json", + "text_encoder/video_preprocessor_config.json", + "text_encoder/vocab.json", + "transformer/config.json", + "vae/config.json", + "vae/diffusion_pytorch_model.safetensors", + "variants/fp8r/model.safetensors" + ] + }, + { + "weightFormat": "nvfp4", + "repo": "black-forest-labs/flux-3-image-klein", + "revision": "8454017f9ebaada30c998fccd9f67a80c7580f68", + "downloadFiles": [ + "LICENSE.md", + "NOTICE.md", + "modular_model_index.json", + "text_encoder/LICENSE", + "text_encoder/chat_template.json", + "text_encoder/config.json", + "text_encoder/generation_config.json", + "text_encoder/merges.txt", + "text_encoder/model-00001-of-00002.safetensors", + "text_encoder/model-00002-of-00002.safetensors", + "text_encoder/model.safetensors.index.json", + "text_encoder/preprocessor_config.json", + "text_encoder/tokenizer.json", + "text_encoder/tokenizer_config.json", + "text_encoder/video_preprocessor_config.json", + "text_encoder/vocab.json", + "transformer/config.json", + "vae/config.json", + "vae/diffusion_pytorch_model.safetensors", + "variants/nvfp4/model.safetensors" + ] + } + ] + }, + { + "modelType": "Flux3ModularPipeline", + "repo": "black-forest-labs/flux-3-image-klein-base", + "revision": "1469d27cfb9bb1bd81d3a93f5a023b39dbf136e4", + "weightFormatSelections": [ + { + "weightFormat": "fp8r", + "repo": "black-forest-labs/flux-3-image-klein-base", + "revision": "1469d27cfb9bb1bd81d3a93f5a023b39dbf136e4", + "downloadFiles": [ + "LICENSE.md", + "NOTICE.md", + "modular_model_index.json", + "text_encoder/LICENSE", + "text_encoder/chat_template.json", + "text_encoder/config.json", + "text_encoder/generation_config.json", + "text_encoder/merges.txt", + "text_encoder/model-00001-of-00002.safetensors", + "text_encoder/model-00002-of-00002.safetensors", + "text_encoder/model.safetensors.index.json", + "text_encoder/preprocessor_config.json", + "text_encoder/tokenizer.json", + "text_encoder/tokenizer_config.json", + "text_encoder/video_preprocessor_config.json", + "text_encoder/vocab.json", + "transformer/config.json", + "vae/config.json", + "vae/diffusion_pytorch_model.safetensors", + "variants/fp8r/model.safetensors" + ] + }, + { + "weightFormat": "nvfp4", + "repo": "black-forest-labs/flux-3-image-klein-base", + "revision": "1469d27cfb9bb1bd81d3a93f5a023b39dbf136e4", + "downloadFiles": [ + "LICENSE.md", + "NOTICE.md", + "modular_model_index.json", + "text_encoder/LICENSE", + "text_encoder/chat_template.json", + "text_encoder/config.json", + "text_encoder/generation_config.json", + "text_encoder/merges.txt", + "text_encoder/model-00001-of-00002.safetensors", + "text_encoder/model-00002-of-00002.safetensors", + "text_encoder/model.safetensors.index.json", + "text_encoder/preprocessor_config.json", + "text_encoder/tokenizer.json", + "text_encoder/tokenizer_config.json", + "text_encoder/video_preprocessor_config.json", + "text_encoder/vocab.json", + "transformer/config.json", + "vae/config.json", + "vae/diffusion_pytorch_model.safetensors", + "variants/nvfp4/model.safetensors" + ] + } + ] + } + ] +} diff --git a/vite.config.ts b/vite.config.ts index c7ec7076..246304ea 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -266,6 +266,15 @@ const baseConfig: UserConfig = { includeDependenciesRecursively: false, priority: 10, }, + { + // These planners already load on demand. Their shared graph and + // schema vocabulary compresses once without making store or + // renderer dependencies part of this deferred authoring chunk. + name: 'operation-authoring-tools', + test: /\/src\/(?:workflow\/(?:operationAuthoring|visualOperationGroups|operationStarterRequest|modelSetupAdapters|selectedAudioAdapterAuthority)\.ts|studio\/(?:operationAuthoringRecipe|templateOperationWorkflow)\.ts)$/, + includeDependenciesRecursively: false, + priority: 10, + }, { name: (moduleId) => { // Keep already-eager Studio catalogs/contracts and graph stores together so their From 66e0e36ba51a09f87fe4311a2c84cdc6e8f33bc9 Mon Sep 17 00:00:00 2001 From: Sourav Das Date: Tue, 20 Oct 2026 11:02:45 +0530 Subject: [PATCH 037/440] Expose private evaluation profiles in generic model authoring --- docs/modiff-client-architecture.md | 8 ++ scripts/bundle-budget.mjs | 10 +- scripts/operation-authoring.test.mjs | 160 ++++++++++++++++++++++ src/components/OperationGraphControls.tsx | 12 ++ src/components/OperationModelPicker.tsx | 13 +- src/components/OperationOwnerControls.tsx | 17 ++- src/stores/useNodeStore.ts | 14 +- src/workflow/evaluationAuthoring.ts | 110 +++++++++++++++ src/workflow/workflowChoices.ts | 6 +- 9 files changed, 339 insertions(+), 11 deletions(-) create mode 100644 src/workflow/evaluationAuthoring.ts diff --git a/docs/modiff-client-architecture.md b/docs/modiff-client-architecture.md index 469824a2..def539e8 100644 --- a/docs/modiff-client-architecture.md +++ b/docs/modiff-client-architecture.md @@ -145,6 +145,14 @@ enumeration stays in the popup's lazy `nodeConnectionSearch` module, outside canvas startup. Expert's Stages panel also resolves connected starters from `POST /operations/starter`. +An explicitly validated evaluation runtime can publish a separate, bounded +`evaluationAuthoring` namespace for Custom memory authoring. Its private profiles +join the same generic model picker and starter path; they never enter the legacy +Studio model union or grant Automatic, template, Gallery or live qualification. +The parser rejects any collision with an existing public pipeline profile, and +selection and Apply both require Custom memory. Ordinary runtime discovery omits +the namespace and retains the existing choices. + The backend supplies ordinary node schemas and reviewed connections; the client assigns canvas IDs through the normal node factory. The result is a normal graph, with no template receipt or additional execution representation. Users can build diff --git a/scripts/bundle-budget.mjs b/scripts/bundle-budget.mjs index 6cb6a1e0..9b64fbd4 100644 --- a/scripts/bundle-budget.mjs +++ b/scripts/bundle-budget.mjs @@ -1,3 +1,8 @@ +// Explicit private evaluation authoring adds a bounded lazy parser and Custom +// memory guards. The first build measures startup/chunk/deferred gzip bytes +// 656188/477881/316459 versus 656112/477808/315072. Reserve 128/128/1536 +// additional bytes for the shared metadata and strict collision validation. +// Dependencies, lazy boundaries, minifier and the deferred chunk cap stay fixed. // Final selected-parent field authority and owned Guidance presentation, plus // source-region removal and runtime Auto resource-update corrections, measure // startup/chunk/deferred gzip bytes 656112/477808/315072. Bound the completed @@ -162,6 +167,7 @@ const MAX_STARTUP_CHUNK_GZIP_BYTES = 64 + 2112 + 5086 + + 128 + 128; // Shared icons initialize in graph-vendor, avoiding an entry/lazy-panel cycle // that captured undefined tab icons and crashed cold production startup. The @@ -266,6 +272,7 @@ const MAX_STARTUP_GZIP_BYTES = 64 + 2112 + 5092 + + 128 + 128; // Deferred surfaces are measured separately so code splitting cannot hide an // unbounded feature bundle. These ceilings leave room for the reviewed dialogs @@ -449,7 +456,8 @@ const MAX_DEFERRED_GZIP_BYTES = 64 + 7232 + 22998 + - 896; + 896 + + 1536; const STATIC_MODULE_REFERENCE = /\b(?:import(?=\s|["'{*])(?!\s*\()|export(?=\s|["'{*]))[^;]*?["'](\.\/[^"'?]+\.js)(?:\?v=[0-9a-f]{16})?["']/g; diff --git a/scripts/operation-authoring.test.mjs b/scripts/operation-authoring.test.mjs index f8882e69..40e7cb0c 100644 --- a/scripts/operation-authoring.test.mjs +++ b/scripts/operation-authoring.test.mjs @@ -1777,6 +1777,166 @@ test('workflow discovery retains backend models absent from the legacy Studio un assert.deepEqual(choices.parseWorkflowModelDescriptors(unavailable, support), []); }); +test('evaluation authoring is an explicit private Expert namespace and cannot promote public discovery', async () => { + const evaluation = await server.ssrLoadModule('/src/workflow/evaluationAuthoring.ts'); + const operations = starter().nodes.map((node) => node.operation); + const requirement = { + schemaVersion: 1, + delivery: 'base', + requiredNow: false, + profileIds: [], + executionProfileIds: ['future-evaluation'], + state: 'base_satisfied', + reason: 'base_runtime_ready', + }; + const pipeline = { + pipelineClass: 'FuturePipeline', + coverage: 'research-blocked', + reason: 'Evaluation authoring only', + equivalentTo: [], + upstreamTasks: [{ task: 'text_to_image', source: 'modular', workflowId: 'text2image' }], + tasks: [ + { + task: 'text_to_image', + execution: 'declared', + decomposition: 'stages', + operationIds: operations.map((op) => op.operationId), + executionProfileIds: ['future-evaluation'], + dependencies: 'ready', + runtimeRequirements: [requirement], + }, + ], + }; + const publicSupport = [ + { + ...pipeline, + tasks: pipeline.tasks.map((task) => ({ + ...task, + executionProfileIds: [], + dependencies: 'unknown', + runtimeRequirements: [], + })), + }, + ]; + const payload = { + schemaVersion: 2, + capabilities: [ + { + modelType: 'FuturePipeline', + label: 'Future image', + executionProfiles: [], + defaultRepo: 'owner/future', + autoEligible: false, + templateEligible: false, + galleryEligible: false, + liveProof: false, + }, + ], + evaluationAuthoring: { + schemaVersion: 1, + scope: 'expert-authoring', + autoEligible: false, + templateEligible: false, + galleryEligible: false, + executionProfiles: [ + { + id: 'future-evaluation', + model_type: 'FuturePipeline', + pipeline_class: 'FuturePipeline', + default_repo: 'owner/future', + public: false, + live_proof: false, + modes: ['text_to_image'], + }, + ], + pipelineSupport: [pipeline], + }, + }; + const before = structuredClone(payload); + const parsed = evaluation.parseEvaluationAuthoring(payload, publicSupport, operations); + assert.deepEqual(payload, before); + assert.equal(parsed.descriptors.length, 1); + assert.equal(parsed.descriptors[0].evaluationOnly, true); + assert.equal(parsed.descriptors[0].profileId, 'future-evaluation'); + assert.deepEqual(choices.parseWorkflowModelDescriptors(payload, publicSupport), []); + const rows = choices.workflowChoices(parsed.support, [], [], [], null, parsed.descriptors); + assert.equal(rows.length, 1); + assert.equal(rows[0].evaluationOnly, true); + const sharedPublicPipeline = structuredClone(publicSupport); + sharedPublicPipeline[0].tasks[0].executionProfileIds = ['public-profile']; + assert.throws( + () => evaluation.parseEvaluationAuthoring(payload, sharedPublicPipeline, operations), + /evaluation authoring/i, + 'private metadata cannot replace any existing public profile on the same pipeline', + ); + assert.deepEqual(sharedPublicPipeline[0].tasks[0].executionProfileIds, ['public-profile']); + const nodeStore = (await server.ssrLoadModule('/src/stores/useNodeStore.ts')).useNodesStore; + const original = globalThis.fetch; + try { + globalThis.fetch = async () => + new Response( + JSON.stringify({ + ...payload, + operationContractSchemaVersion: 3, + operationContracts: operations, + pipelineSupportSchemaVersion: 1, + pipelineSupport: publicSupport, + }), + { headers: { 'Content-Type': 'application/json' } }, + ); + await nodeStore.getState().fetchStudioModelCapabilities(); + assert.equal(nodeStore.getState().discoveryRequests.capabilities.status, 'success'); + assert.deepEqual(nodeStore.getState().workflowModelDescriptors, parsed.descriptors); + assert.deepEqual(nodeStore.getState().pipelineSupport, parsed.support); + assert.equal( + nodeStore.getState().studioModelCapabilities.some((model) => model.modelType === 'FuturePipeline'), + false, + ); + } finally { + globalThis.fetch = original; + } + assert.deepEqual( + evaluation.parseEvaluationAuthoring({ ...payload, evaluationAuthoring: undefined }, publicSupport, operations), + { support: publicSupport, descriptors: [] }, + ); + for (const alter of [ + (p) => { + p.evaluationAuthoring.autoEligible = true; + }, + (p) => { + p.evaluationAuthoring.scope = 'automatic'; + }, + (p) => { + p.evaluationAuthoring.executionProfiles[0].public = true; + }, + (p) => { + p.evaluationAuthoring.executionProfiles[0].live_proof = true; + }, + (p) => { + p.evaluationAuthoring.executionProfiles[0].modes = ['edit_image']; + }, + (p) => { + p.evaluationAuthoring.executionProfiles[0].default_repo = 'owner/other'; + }, + (p) => { + p.evaluationAuthoring.executionProfiles[0].modes.push('text_to_image'); + }, + (p) => { + p.evaluationAuthoring.pipelineSupport[0].tasks[0].executionProfileIds = ['other']; + }, + (p) => { + p.evaluationAuthoring.executionProfiles.push(p.evaluationAuthoring.executionProfiles[0]); + }, + (p) => { + p.evaluationAuthoring.unreviewed = true; + }, + ]) { + const malformed = structuredClone(payload); + alter(malformed); + assert.throws(() => evaluation.parseEvaluationAuthoring(malformed, publicSupport, operations)); + } +}); + test('generic public model inventory preserves native defaults and exact additional format Install/Repair selections', async () => { const inventory = await server.ssrLoadModule('/src/workflow/workflowModelInventory.ts'); const actual = JSON.parse( diff --git a/src/components/OperationGraphControls.tsx b/src/components/OperationGraphControls.tsx index 64aebcff..4db227d7 100644 --- a/src/components/OperationGraphControls.tsx +++ b/src/components/OperationGraphControls.tsx @@ -52,6 +52,14 @@ export default function OperationGraphControls({ const workflow = useStudioStore((s) => s.activeWorkflowTabId); const canvasEpoch = useStudioStore((s) => s.workflowCanvasEpoch); const operations = useNodesStore((s) => s.operationContracts); + const evaluationOnly = useNodesStore((s) => + s.workflowModelDescriptors.some( + (descriptor) => + descriptor.evaluationOnly && + descriptor.pipeline === pipeline && + (!executionProfileId || descriptor.profileId === executionProfileId), + ), + ); const [chosenLoader, setLoader] = useState(''); const loader = ownerId ?? chosenLoader; const [busy, setBusy] = useState(false); @@ -88,6 +96,8 @@ export default function OperationGraphControls({ setBusy(true); setError(null); try { + if (evaluationOnly && useStudioStore.getState().form.resourceMode !== 'expert') + throw new Error('Select Custom memory before choosing an evaluation model.'); const starter = await requestOperationStarter(pipeline, task, operations, controller.signal, executionProfileId); if (controller.signal.aborted) return; assertWorkflowOperationContext(context, { includeForm: false }); @@ -124,6 +134,8 @@ export default function OperationGraphControls({ function apply() { if (!preview) return; try { + if (evaluationOnly && useStudioStore.getState().form.resourceMode !== 'expert') + throw new Error('Select Custom memory before choosing an evaluation model.'); assertWorkflowOperationContext(preview.context, { includeForm: false }); const flow = useFlowStore.getState(); if (operationGraphPreviewSignature(flow.toObject()) !== preview.signature) diff --git a/src/components/OperationModelPicker.tsx b/src/components/OperationModelPicker.tsx index ff9d392e..f341b58c 100644 --- a/src/components/OperationModelPicker.tsx +++ b/src/components/OperationModelPicker.tsx @@ -59,6 +59,7 @@ export default function OperationModelPicker({ const diagnostics = useNodesStore((s) => s.modelCacheDiagnostics); const operations = useNodesStore((s) => s.operationContracts); const workflow = useStudioStore((s) => s.activeWorkflowTabId); + const resourceMode = useStudioStore((s) => s.form.resourceMode); const [open, setOpen] = useState(false); const [query, setQuery] = useState(''); const [installed, setInstalled] = useState(false); @@ -76,7 +77,9 @@ export default function OperationModelPicker({ const current = choices.find((c) => c.repo === value && c.pipeline === hint.operation.pipelineClass); const visible = choices.filter( (c) => - (!installed || c.cache?.runnable) && `${c.label} ${c.repo}`.toLowerCase().includes(query.trim().toLowerCase()), + (!c.evaluationOnly || resourceMode === 'expert') && + (!installed || c.cache?.runnable) && + `${c.label} ${c.repo}`.toLowerCase().includes(query.trim().toLowerCase()), ); useEffect(() => { @@ -95,6 +98,8 @@ export default function OperationModelPicker({ setOpen(false); } function apply(candidate: Review) { + if (candidate.choice.evaluationOnly && useStudioStore.getState().form.resourceMode !== 'expert') + throw new Error('Select Custom memory before choosing an evaluation model.'); commitOperationGraph( candidate.plan.graph, candidate.context, @@ -117,6 +122,8 @@ export default function OperationModelPicker({ setError(null); setReview(null); try { + if (choice.evaluationOnly && useStudioStore.getState().form.resourceMode !== 'expert') + throw new Error('Select Custom memory before choosing an evaluation model.'); const starter = await requestOperationStarter( choice.pipeline, choice.task, @@ -283,6 +290,9 @@ export default function OperationModelPicker({ {workflowTaskLabel(hint.operation.task ?? '')}. Selecting a model updates its connected nodes. Nothing is downloaded or executed.

+ {resourceMode !== 'expert' && choices.some((choice) => choice.evaluationOnly) ? ( +

Evaluation models are available with Custom memory.

+ ) : null} ) : null} {choice.support.decomposition === 'stages' ? 'Editable nodes' : 'Whole pipeline'} + {choice.evaluationOnly ? Evaluation · Custom memory : null} {choice.support.dependencies === 'blocked' ? Runtime setup required : null} diff --git a/src/components/OperationOwnerControls.tsx b/src/components/OperationOwnerControls.tsx index 557f1d79..e273b756 100644 --- a/src/components/OperationOwnerControls.tsx +++ b/src/components/OperationOwnerControls.tsx @@ -3,6 +3,7 @@ import { isFocusedStageNode } from '../workflow/encodingNodePresentation'; import { lazy, Suspense, useState } from 'react'; import type { CustomNodeType } from '../stores/useFlowStore'; import { useNodesStore } from '../stores/useNodeStore'; +import { useStudioStore } from '../stores/useStudioStore'; import { blockOperationGraphV2 } from '../studio/blockRuntimeV2'; import { operationAuthoring } from '../workflow/operationAuthoring'; import { workflowChoices } from '../workflow/workflowChoices'; @@ -140,10 +141,15 @@ function OwnerChoices({ const support = useNodesStore((state) => state.pipelineSupport); const models = useNodesStore((state) => state.studioModelCapabilities); const descriptors = useNodesStore((state) => state.workflowModelDescriptors); + const resourceMode = useStudioStore((state) => state.form.resourceMode); const [pipeline, setPipeline] = useState(pipelineClass); const [task, setTask] = useState(currentTask); const [profileId, setProfileId] = useState(''); - const pipelines = support.filter((p) => p.tasks.some((t) => t.operationIds.length)); + const pipelines = support.filter( + (p) => + p.tasks.some((t) => t.operationIds.length) && + (resourceMode === 'expert' || !descriptors.some((d) => d.pipeline === p.pipelineClass && d.evaluationOnly)), + ); const entry = pipelines.find((p) => p.pipelineClass === pipeline); const tasks = entry?.tasks.filter((t) => t.operationIds.length) ?? []; const selected = tasks.find((t) => t.task === task); @@ -155,7 +161,14 @@ function OwnerChoices({ null, descriptors, ).flatMap((choice) => - choice.profileId ? [{ value: choice.profileId, label: `${choice.label} · ${choice.repo}` }] : [], + choice.profileId + ? [ + { + value: choice.profileId, + label: `${choice.label} · ${choice.repo}${choice.evaluationOnly ? ' · Evaluation · Custom memory' : ''}`, + }, + ] + : [], ); return ( diff --git a/src/stores/useNodeStore.ts b/src/stores/useNodeStore.ts index b02b7d07..a830195d 100644 --- a/src/stores/useNodeStore.ts +++ b/src/stores/useNodeStore.ts @@ -1505,11 +1505,13 @@ export const useNodesStore = create()((set, get) => ({ { parseOperationContracts }, { parsePipelineSupport }, { parseWorkflowModelDescriptors }, + { parseEvaluationAuthoring }, { optionalEncodingRoute }, ] = await Promise.all([ import('../workflow/operationContracts'), import('../workflow/operationCatalog'), import('../workflow/workflowChoices'), + import('../workflow/evaluationAuthoring'), import('../workflow/encodingImageRoute'), ]); bindEncodingRouteResolver(optionalEncodingRoute); @@ -1529,15 +1531,15 @@ export const useNodesStore = create()((set, get) => ({ payload.pipelineSupportSchemaVersion, operationContracts, ); + const evaluation = parseEvaluationAuthoring(payload, pipelineSupport, operationContracts); return { ...capabilities, operationContracts, - pipelineSupport, - workflowModelDescriptors: parseWorkflowModelDescriptors( - payload, - pipelineSupport, - capabilities.capabilities, - ), + pipelineSupport: evaluation.support, + workflowModelDescriptors: [ + ...parseWorkflowModelDescriptors(payload, pipelineSupport, capabilities.capabilities), + ...evaluation.descriptors, + ], }; }, }); diff --git a/src/workflow/evaluationAuthoring.ts b/src/workflow/evaluationAuthoring.ts new file mode 100644 index 00000000..7b8063f1 --- /dev/null +++ b/src/workflow/evaluationAuthoring.ts @@ -0,0 +1,110 @@ +import { parsePipelineSupport, type PipelineSupport } from './operationCatalog'; +import { boundedText, identifier, record, type OperationContract } from './operationContracts'; +import type { WorkflowModelDescriptor } from './workflowChoices'; + +/** Explicit installed evaluation metadata only; never changes public model capabilities. */ +export function parseEvaluationAuthoring( + payload: Record, + support: PipelineSupport[], + operations: OperationContract[], +): { support: PipelineSupport[]; descriptors: WorkflowModelDescriptor[] } { + if (payload.evaluationAuthoring === undefined) return { support, descriptors: [] }; + const invalid = (): never => { + throw new Error('Invalid evaluation authoring metadata.'); + }; + const item = record(payload.evaluationAuthoring, [ + 'schemaVersion', + 'scope', + 'autoEligible', + 'templateEligible', + 'galleryEligible', + 'executionProfiles', + 'pipelineSupport', + ]); + if ( + item.schemaVersion !== 1 || + item.scope !== 'expert-authoring' || + item.autoEligible !== false || + item.templateEligible !== false || + item.galleryEligible !== false || + !Array.isArray(item.executionProfiles) || + !item.executionProfiles.length || + item.executionProfiles.length > 32 || + !Array.isArray(item.pipelineSupport) || + !Array.isArray(payload.capabilities) + ) + invalid(); + const profiles = (item.executionProfiles as unknown[]).map((raw) => { + if (!raw || typeof raw !== 'object' || Array.isArray(raw)) return invalid(); + const profile = raw as Record; + if ( + profile.public !== false || + profile.live_proof !== false || + !Array.isArray(profile.modes) || + !profile.modes.length || + profile.modes.length > 64 + ) + invalid(); + return { + id: boundedText(profile.id, 256), + pipeline: identifier(profile.pipeline_class), + model: identifier(profile.model_type), + repo: boundedText(profile.default_repo, 512), + modes: (profile.modes as unknown[]).map(identifier), + }; + }); + const publicIds = new Set(support.flatMap((p) => p.tasks.flatMap((task) => task.executionProfileIds))); + if ( + new Set(profiles.map((p) => p.id)).size !== profiles.length || + profiles.some((p) => publicIds.has(p.id) || new Set(p.modes).size !== p.modes.length) + ) + invalid(); + const pipelines = new Set(profiles.map((p) => p.pipeline)); + // A private namespace may fill an unpublished pipeline, never replace public rows. + if (support.some((p) => pipelines.has(p.pipelineClass) && p.tasks.some((task) => task.executionProfileIds.length))) + invalid(); + const declared = parsePipelineSupport( + item.pipelineSupport, + 1, + operations.filter((operation) => pipelines.has(operation.pipelineClass)), + ); + if (declared.length !== pipelines.size || declared.some((p) => !pipelines.has(p.pipelineClass))) invalid(); + const selected = new Set(); + for (const pipeline of declared) + for (const task of pipeline.tasks) { + if (!task.executionProfileIds.length) invalid(); + for (const id of task.executionProfileIds) { + const profile = profiles.find((p) => p.id === id && p.pipeline === pipeline.pipelineClass); + if (!profile || !profile.modes.includes(task.task)) invalid(); + selected.add(id); + } + } + if (selected.size !== profiles.length) invalid(); + const descriptors = profiles.map((profile): WorkflowModelDescriptor => { + const matches = (payload.capabilities as unknown[]).filter( + (raw) => + raw && + typeof raw === 'object' && + !Array.isArray(raw) && + (raw as Record).modelType === profile.model, + ); + if (matches.length !== 1) return invalid(); + const model = matches[0] as Record; + if ( + model.autoEligible !== false || + model.templateEligible !== false || + model.galleryEligible !== false || + model.liveProof !== false || + model.defaultRepo !== profile.repo + ) + invalid(); + return { + profileId: profile.id, + pipeline: profile.pipeline, + label: boundedText(model.label, 512), + repo: profile.repo, + evaluationOnly: true, + }; + }); + return { support: [...support.filter((p) => !pipelines.has(p.pipelineClass)), ...declared], descriptors }; +} diff --git a/src/workflow/workflowChoices.ts b/src/workflow/workflowChoices.ts index 02fd3873..adab61e9 100644 --- a/src/workflow/workflowChoices.ts +++ b/src/workflow/workflowChoices.ts @@ -13,6 +13,7 @@ export type WorkflowChoice = { profileId?: string; support: PipelineTaskSupport; cache: StudioModelCacheStatus | null; + evaluationOnly?: true; }; export type WorkflowModelDescriptor = { @@ -21,6 +22,7 @@ export type WorkflowModelDescriptor = { label: string; repo: string; inventory?: WorkflowModelInventory; + evaluationOnly?: true; }; /** Presentation-only identities for generic workflows, independent of legacy Studio forms. */ @@ -96,6 +98,7 @@ export function workflowChoices( profileId: string; label: string; repo: string; + evaluationOnly?: true; }>((id) => { const entry = profiles.get(id); if (entry) @@ -115,13 +118,14 @@ export function workflowChoices( cache: null, }, ]; - return matches.map(({ model, profileId, label, repo }) => ({ + return matches.map(({ model, profileId, label, repo, evaluationOnly }) => ({ id: `${pipeline.pipelineClass}:${task.task}:${profileId}`, pipeline: pipeline.pipelineClass, task: task.task, label, repo, profileId, + ...(evaluationOnly ? { evaluationOnly } : {}), support: task, cache: model && model.defaultRepo === repo From 0c830700334fcec8985db37214d976df9d3805cd Mon Sep 17 00:00:00 2001 From: Sourav Das Date: Tue, 20 Oct 2026 11:11:45 +0530 Subject: [PATCH 038/440] Pair manual testing CI with reviewed evaluation authoring backend --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 2293db20..6bd3a443 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -33,7 +33,7 @@ jobs: with: repository: sdevil7th/MoDiff # Paired image stages, scoped enhancement and FLUX3 evaluation contracts. - ref: d8c1a77a2c3975ca905e342c7e38b7dd64077813 + ref: 6e4690bebb77198b7afd28b8e497e96ade3f436f path: MoDiff persist-credentials: false - name: Verify the pinned backend supports native setup From 0ebce07c9c2345e5d52ea5ddce6909b3d5814a0f Mon Sep 17 00:00:00 2001 From: Sourav Das Date: Tue, 20 Oct 2026 11:42:01 +0530 Subject: [PATCH 039/440] Resolve ancillary declarations before displaying run readiness --- docs/modiff-client-architecture.md | 9 + scripts/bundle-budget.mjs | 12 +- src/studio/useRunReadinessIssues.ts | 137 ++++++++++- .../e2e/studio-mocked/runReadinessFixture.tsx | 12 + tests/e2e/studio-mocked/studio-mocked.spec.ts | 230 ++++++++++++++++++ 5 files changed, 394 insertions(+), 6 deletions(-) diff --git a/docs/modiff-client-architecture.md b/docs/modiff-client-architecture.md index def539e8..0498089a 100644 --- a/docs/modiff-client-architecture.md +++ b/docs/modiff-client-architecture.md @@ -1681,3 +1681,12 @@ newer literal edits and conflicting shared Block controls continue to reject the update. Successful patches retain one Undo transaction. Actual Run and Preview still require their exact current ancillary execution scope before export and submission. + +Ancillary graph readiness resolves the current declaration asynchronously before +the synchronous collector inspects its execution scope. While metadata is pending +the graph shows Preparing; failed verification blocks Run with reload/reopen +guidance. Consumers share a display-only witness tied to the complete durable +graph, active workflow epochs and current registry/operation metadata. Stale +requests are aborted and cannot replace the current tab's result. Ordinary graphs +remain synchronous and request no ancillary metadata. Run and Preview still +resolve fresh declarations, and an unprepared synchronous export still refuses. diff --git a/scripts/bundle-budget.mjs b/scripts/bundle-budget.mjs index 9b64fbd4..8a1bce7b 100644 --- a/scripts/bundle-budget.mjs +++ b/scripts/bundle-budget.mjs @@ -1,3 +1,9 @@ +// Shared ancillary readiness resolves the exact current declaration before the +// synchronous collector inspects the scoped graph. Two consumers share one +// display witness; pending/stale/error handling preserves fresh Run authority. +// Measured startup/chunk/deferred gzip bytes are 656712/478407/316414 versus +// 656178/477874/316369. Add 512 bytes to the existing two startup caps only; +// dependencies, loading boundaries and both deferred caps remain unchanged. // Explicit private evaluation authoring adds a bounded lazy parser and Custom // memory guards. The first build measures startup/chunk/deferred gzip bytes // 656188/477881/316459 versus 656112/477808/315072. Reserve 128/128/1536 @@ -168,7 +174,8 @@ const MAX_STARTUP_CHUNK_GZIP_BYTES = 2112 + 5086 + 128 + - 128; + 128 + + 512; // Shared icons initialize in graph-vendor, avoiding an entry/lazy-panel cycle // that captured undefined tab icons and crashed cold production startup. The // Earlier startup measured 589.1 KiB. Shared Block crossing, explicit movement, @@ -273,7 +280,8 @@ const MAX_STARTUP_GZIP_BYTES = 2112 + 5092 + 128 + - 128; + 128 + + 512; // Deferred surfaces are measured separately so code splitting cannot hide an // unbounded feature bundle. These ceilings leave room for the reviewed dialogs // and catalog tools while preventing either one oversized deferred chunk or diff --git a/src/studio/useRunReadinessIssues.ts b/src/studio/useRunReadinessIssues.ts index 8a701781..609dc941 100644 --- a/src/studio/useRunReadinessIssues.ts +++ b/src/studio/useRunReadinessIssues.ts @@ -1,5 +1,10 @@ -import { useMemo } from 'react'; -import { useFlowStore } from '../stores/useFlowStore'; +import { useEffect, useMemo, useState } from 'react'; +import { flowExecutionScopeSourceKey, useFlowStore } from '../stores/useFlowStore'; +import { + hasAncillaryExecutionClaim, + prepareExecutionScope, + type PreparedExecutionScope, +} from '../workflow/prepareExecutionScope'; import { useHuggingFaceNodeLibraryStore } from '../stores/useHuggingFaceNodeLibraryStore'; import { useNodesStore } from '../stores/useNodeStore'; import { useStudioStore } from '../stores/useStudioStore'; @@ -8,6 +13,56 @@ import { useRunIssueStore } from '../stores/useRunIssueStore'; import { buildRunReadinessDecision, collectRunReadinessIssues, runReadinessTaskFingerprint } from './runReadiness'; import type { RunReadinessIssue } from './types'; +type ScopeRequest = { key: string; registry: object; contracts: object }; +type ScopeResult = { request: ScopeRequest; scope?: PreparedExecutionScope; error?: string }; +let displayScope: + | { + request: ScopeRequest; + controller: AbortController; + promise: Promise; + users: number; + } + | undefined; + +// Readiness consumers share only a display witness. Run still resolves its own +// fresh declaration, and synchronous export retains its strict scope boundary. +function retainDisplayScope(request: ScopeRequest) { + if ( + !displayScope || + displayScope.controller.signal.aborted || + displayScope.request.key !== request.key || + displayScope.request.registry !== request.registry || + displayScope.request.contracts !== request.contracts + ) { + const controller = new AbortController(); + displayScope = { + request, + controller, + users: 0, + // Geometry is part of the strict export key. Coalesce a drag/resize burst + // before requesting metadata; an obsolete timer cannot start a request. + promise: new Promise((resolve) => setTimeout(resolve, 75)).then(() => { + controller.signal.throwIfAborted(); + return prepareExecutionScope({ signal: controller.signal }); + }), + }; + } + const current = displayScope; + current.users++; + return { + promise: current.promise, + release: () => { + current.users--; + queueMicrotask(() => { + if (current.users === 0) { + current.controller.abort(); + if (displayScope === current) displayScope = undefined; + } + }); + }, + }; +} + const blockValueFingerprints = new WeakMap(); function blockValuesFingerprint(values: object | undefined) { if (!values) return ''; @@ -54,6 +109,18 @@ export function summarizeRunReadinessIssues(issues: RunReadinessIssue[]) { } export function useRunReadinessIssues({ sid, isConnected, includeStudio = true }: RunReadinessOptions) { + const ancillarySource = useFlowStore((state) => { + try { + return hasAncillaryExecutionClaim(state.nodes) + ? flowExecutionScopeSourceKey(state.nodes, state.edges) + : undefined; + } catch (error) { + // Imported advisory hints are untrusted. Keep malformed presence blocked + // without throwing from a render-time store selector or fetching metadata. + return `invalid:${error instanceof Error ? error.message : String(error)}`; + } + }); + const ancillarySourceError = ancillarySource?.startsWith('invalid:') ? ancillarySource.slice(8) : undefined; const flowFingerprint = useFlowStore((state) => [ state.nodes @@ -95,7 +162,7 @@ export function useRunReadinessIssues({ sid, isConnected, includeStudio = true } ? state.runContextsByClientRunId[failure.clientRunId] : null, ); - const isPreparing = + const isGraphPreparing = canvasTransition?.type === 'template_graph_building' && canvasTransition.workflowTabId === activeWorkflowTabId; const autoResourcePlan = useStudioStore((state) => state.autoResourcePlan); const hfCache = useNodesStore((state) => state.hfCache); @@ -110,12 +177,72 @@ export function useRunReadinessIssues({ sid, isConnected, includeStudio = true } const queueRevision = useTaskStore((state) => state.queueRevision); const currentTaskFingerprint = useTaskStore((state) => runReadinessTaskFingerprint(state.currentTask)); const nodesRegistry = useNodesStore((state) => state.nodesRegistry); + const operationContracts = useNodesStore((state) => state.operationContracts); + const canvasEpoch = useStudioStore((state) => state.workflowCanvasEpoch); + const formEpoch = useStudioStore((state) => state.workflowFormEpoch); + const scopeRequest = useMemo( + () => + ancillarySource && !ancillarySourceError && isConnected && sid && !isGraphPreparing + ? { + key: JSON.stringify([ancillarySource, activeWorkflowTabId, canvasEpoch, formEpoch, sid]), + registry: nodesRegistry, + contracts: operationContracts, + } + : undefined, + [ + ancillarySource, + ancillarySourceError, + activeWorkflowTabId, + canvasEpoch, + formEpoch, + sid, + isConnected, + isGraphPreparing, + nodesRegistry, + operationContracts, + ], + ); + const [scopeResult, setScopeResult] = useState(); + useEffect(() => { + if (!scopeRequest) return; + let active = true; + const pending = retainDisplayScope(scopeRequest); + pending.promise.then( + (scope) => { + if (active) setScopeResult({ request: scopeRequest, scope }); + }, + (error) => { + if (active) + setScopeResult({ request: scopeRequest, error: error instanceof Error ? error.message : String(error) }); + }, + ); + return () => { + active = false; + pending.release(); + }; + }, [scopeRequest]); + const currentScope = scopeResult?.request === scopeRequest ? scopeResult : undefined; + const isPreparing = isGraphPreparing || Boolean(scopeRequest && !currentScope); const modularBlockDefinitions = useHuggingFaceNodeLibraryStore((state) => state.library?.blockDefinitions); const issues = useMemo(() => { // A template graph is assembled, finalized, and laid out as one atomic // transition. Do not classify its intentionally incomplete hidden states. if (isPreparing) return []; - return collectRunReadinessIssues({ sid, isConnected, includeStudio }); + if (ancillarySourceError || currentScope?.error) + return [ + { + id: 'ancillary-declaration-invalid', + code: 'ancillary_declaration_invalid', + category: 'graph', + severity: 'error', + blocking: true, + action: 'inspect_node', + message: + 'The enhancement declaration could not be verified. Reload capabilities or reopen the workflow to retry.', + details: ancillarySourceError ?? currentScope?.error, + } satisfies RunReadinessIssue, + ]; + return collectRunReadinessIssues({ sid, isConnected, includeStudio, executionScope: currentScope?.scope }); // The collector reads stores imperatively; selected snapshots below are intentional invalidation signals. // eslint-disable-next-line react-hooks/exhaustive-deps }, [ @@ -123,6 +250,8 @@ export function useRunReadinessIssues({ sid, isConnected, includeStudio = true } autoResourcePlan, currentTaskFingerprint, currentRunContext, + currentScope, + ancillarySourceError, failure, failureRunContext, discoveryRequests, diff --git a/tests/e2e/studio-mocked/runReadinessFixture.tsx b/tests/e2e/studio-mocked/runReadinessFixture.tsx index 0c7fd5c3..7277d480 100644 --- a/tests/e2e/studio-mocked/runReadinessFixture.tsx +++ b/tests/e2e/studio-mocked/runReadinessFixture.tsx @@ -48,3 +48,15 @@ export function mountRunReadinessProbe() { document.body.appendChild(host); createRoot(host).render(); } + +// eslint-disable-next-line react-refresh/only-export-components -- Isolated mounted-hook test entry point. +function AncillaryReadinessProbe() { + const readiness = useRunReadinessIssues({ sid: 'mock-sid', isConnected: true, includeStudio: false }); + return {JSON.stringify(readiness)}; +} + +export function mountAncillaryReadinessProbe() { + const host = document.createElement('div'); + document.body.appendChild(host); + createRoot(host).render(); +} diff --git a/tests/e2e/studio-mocked/studio-mocked.spec.ts b/tests/e2e/studio-mocked/studio-mocked.spec.ts index c83d7ee0..b5fa6a0f 100644 --- a/tests/e2e/studio-mocked/studio-mocked.spec.ts +++ b/tests/e2e/studio-mocked/studio-mocked.spec.ts @@ -22,6 +22,236 @@ import type { OperationContract } from '../../../src/workflow/operationContracts import type { PipelineSupport } from '../../../src/workflow/operationCatalog'; import type { ApiGraphExport } from '../../../src/types/api'; +test('mounted ancillary readiness resolves current declarations before classifying the graph', async ({ page }) => { + const renderErrors: string[] = []; + page.on('pageerror', (error) => renderErrors.push(error.message)); + await ensureFrontend(); + const fixture = JSON.parse( + await fs.readFile(path.join(CLIENT_ROOT, 'tests/fixtures/ancillary-authoring.v1.json'), 'utf8'), + ); + const actual = JSON.parse( + await fs.readFile(path.join(CLIENT_ROOT, 'tests/fixtures/ancillary-starter.v1.json'), 'utf8'), + ); + let requests = 0; + let rejectDeclaration = false; + let holdNext = true; + let releaseHeld: (() => void) | undefined; + await page.route('**/operations/starter', async (route) => { + requests++; + if (holdNext) { + holdNext = false; + await new Promise((resolve) => { + releaseHeld = resolve; + }); + } + await route.fulfill({ json: rejectDeclaration ? {} : actual.response }).catch(() => {}); + }); + await page.goto(`${FRONTEND_URL}/control-state-matrix.html`, { waitUntil: 'domcontentloaded' }); + await page.evaluate( + async ({ fixture, actual }) => { + const [{ useFlowStore }, { useStudioStore }, { useNodesStore }, { mountAncillaryReadinessProbe }] = + await Promise.all([ + import('/src/stores/useFlowStore.ts'), + import('/src/stores/useStudioStore.ts'), + import('/src/stores/useNodeStore.ts'), + import('/tests/e2e/studio-mocked/runReadinessFixture.tsx'), + ]); + const row = fixture.parents[0], + parent = JSON.parse(row.rawParentJson), + child = parent.ancillaryOperations[0]; + const binding = { + contractId: child.id, + contentHash: child.contentHash, + parent: { ...child.parent, authoringContentHash: parent.contentHash }, + parentRoleNodes: Object.fromEntries(parent.roles.map(([r]) => [r, `main-${r}`])), + roleNodes: Object.fromEntries(child.roles.map(([r]) => [r, `aux-${r}`])), + }; + const registry = { + ...row.registry, + ...Object.fromEntries(actual.response.nodes.map(({ operation, node }) => [operation.nodeKey, node])), + }; + const nodes = [ + ...parent.roles.map((r) => [binding.parentRoleNodes, r]), + ...child.roles.map((r) => [binding.roleNodes, r]), + ].map(([map, [r, key, x, y]]) => ({ + id: map[r], + type: 'custom', + position: { x, y }, + data: structuredClone(registry[key]), + })); + for (const node of nodes) { + if (node.data.params.offload_mode) node.data.params.offload_mode.value = 'none'; + if (node.data.params.auto_offload) node.data.params.auto_offload.value = false; + } + nodes.find((n) => n.id === binding.parentRoleNodes[child.bindings.owner.role]).data.operationAuthoring = { + ancillaryBindings: [binding], + }; + const edges = [ + ...parent.edges.map((r) => [binding.parentRoleNodes, r]), + ...child.edges.map((r) => [binding.roleNodes, r]), + ].map(([map, [a, b, c, d]], i) => ({ + id: `e-${i}`, + source: map[a], + sourceHandle: b, + target: map[c], + targetHandle: d, + })); + for (const [role, name, value] of child.initialValues) + nodes.find((n) => n.id === binding.roleNodes[role]).data.params[name].value = structuredClone(value); + useStudioStore.setState({ + form: { ...useStudioStore.getState().form, resourceMode: 'expert' }, + graphBinding: null, + }); + useNodesStore.setState({ nodesRegistry: registry, operationContracts: actual.operationContracts }); + useFlowStore.setState({ nodes, edges }); + mountAncillaryReadinessProbe(); + mountAncillaryReadinessProbe(); + }, + { fixture, actual }, + ); + const probe = page.getByTestId('mounted-ancillary-readiness').first(); + await expect.poll(() => requests).toBeGreaterThan(0); + await expect.poll(async () => JSON.parse((await probe.textContent()) || '{}').isPreparing).toBe(true); + releaseHeld!(); + await expect.poll(async () => JSON.parse((await probe.textContent()) || '{}').isPreparing).toBe(false); + expect( + JSON.parse((await probe.textContent()) || '{}').issues.filter( + (issue) => issue.code === 'composite_execution_graph_invalid', + ), + ).toEqual([]); + await expect(probe).not.toContainText('ancillary_declaration_invalid'); + expect(requests).toBe(2); // One declaration lookup plus its selected repository, shared by both consumers. + expect( + await page.evaluate(async () => { + const { useFlowStore } = await import('/src/stores/useFlowStore.ts'); + try { + useFlowStore.getState().exportGraph('unprepared'); + return 'unexpected export'; + } catch (error) { + return String(error); + } + }), + ).toMatch(/fresh execution scope/); + + await page.evaluate(async () => { + const { useFlowStore } = await import('/src/stores/useFlowStore.ts'); + for (let i = 0; i < 40; i++) + useFlowStore.setState({ + nodes: useFlowStore + .getState() + .nodes.map((node, index) => + index ? node : { ...node, selected: Boolean(i % 2), data: { ...node.data, progress: i } }, + ), + }); + await new Promise((resolve) => requestAnimationFrame(resolve)); + }); + expect(requests).toBe(2); + await page.evaluate(async () => { + const { useFlowStore } = await import('/src/stores/useFlowStore.ts'); + for (let i = 0; i < 8; i++) { + useFlowStore.setState({ + nodes: useFlowStore + .getState() + .nodes.map((node, index) => (index ? node : { ...node, position: { x: i + 10, y: 20 } })), + }); + await new Promise((resolve) => requestAnimationFrame(resolve)); + } + }); + await expect.poll(async () => JSON.parse((await probe.textContent()) || '{}').isPreparing).toBe(false); + expect(requests).toBe(4); // One settled preparation for a geometry burst. + // A durable edit needs a new declaration; display preparation never grants export authority. + const before = requests; + await page.evaluate(async () => { + const { useFlowStore } = await import('/src/stores/useFlowStore.ts'); + useFlowStore.getState().setParam('main-prompt', 'prompt', 'Edited authored prompt.'); + }); + await expect.poll(() => requests).toBeGreaterThan(before); + await expect.poll(async () => JSON.parse((await probe.textContent()) || '{}').isPreparing).toBe(false); + rejectDeclaration = true; + await page.evaluate(async () => { + const { useStudioStore } = await import('/src/stores/useStudioStore.ts'); + useStudioStore.setState({ activeWorkflowTabId: 'another-current-tab' }); + }); + await expect(probe).toContainText('ancillary_declaration_invalid'); + rejectDeclaration = false; + await page.evaluate(async () => { + const { useNodesStore } = await import('/src/stores/useNodeStore.ts'); + useNodesStore.setState({ nodesRegistry: { ...useNodesStore.getState().nodesRegistry } }); + }); + await expect.poll(async () => JSON.parse((await probe.textContent()) || '{}').isPreparing).toBe(false); + await expect(probe).not.toContainText('ancillary_declaration_invalid'); + expect(requests).toBe(9); + // Advisory claim edits with unchanged node IDs must invalidate the display witness. + await page.evaluate(async () => { + const { useFlowStore } = await import('/src/stores/useFlowStore.ts'); + useFlowStore.setState({ + nodes: useFlowStore.getState().nodes.map((node) => { + if (!node.data.operationAuthoring?.ancillaryBindings) return node; + const changed = structuredClone(node); + changed.data.operationAuthoring.ancillaryBindings[0].contentHash = 'studio-ancillary-v1-deadbeef'; + return changed; + }), + }); + }); + await expect(probe).toContainText('ancillary_declaration_invalid'); + holdNext = true; + await page.evaluate(async (hash) => { + const { useFlowStore } = await import('/src/stores/useFlowStore.ts'); + useFlowStore.setState({ + nodes: useFlowStore.getState().nodes.map((node) => { + if (!node.data.operationAuthoring?.ancillaryBindings) return node; + const changed = structuredClone(node); + changed.data.operationAuthoring.ancillaryBindings[0].contentHash = hash; + return changed; + }), + }); + }, JSON.parse(fixture.parents[0].rawParentJson).ancillaryOperations[0].contentHash); + await expect.poll(() => requests).toBe(12); + await expect.poll(async () => JSON.parse((await probe.textContent()) || '{}').isPreparing).toBe(true); + // A held response from the previous tab must not override its replacement. + await page.evaluate(async () => { + const { useStudioStore } = await import('/src/stores/useStudioStore.ts'); + useStudioStore.setState({ activeWorkflowTabId: 'replacement-current-tab' }); + }); + await expect.poll(() => requests).toBe(14); + await expect.poll(async () => JSON.parse((await probe.textContent()) || '{}').isPreparing).toBe(false); + releaseHeld!(); + await expect(probe).not.toContainText('ancillary_declaration_invalid'); + await page.evaluate(async () => { + const { useFlowStore } = await import('/src/stores/useFlowStore.ts'); + useFlowStore.setState({ nodes: [], edges: [] }); + }); + await expect(probe).not.toContainText('ancillary_declaration_invalid'); + expect(requests).toBe(14); + for (const malformed of [[], null, [{ parent: {} }]]) { + await page.evaluate( + async ({ data, malformed }) => { + const { useFlowStore } = await import('/src/stores/useFlowStore.ts'); + useFlowStore.setState({ + nodes: [ + { + id: 'malformed-import', + type: 'custom', + position: { x: 0, y: 0 }, + data: { ...data, operationAuthoring: { ancillaryBindings: malformed } }, + }, + ], + edges: [], + }); + }, + { data: actual.response.nodes[0].node, malformed }, + ); + await expect(probe).toContainText('ancillary_declaration_invalid'); + expect(requests).toBe(14); + } + await page.evaluate(async () => { + const { useFlowStore } = await import('/src/stores/useFlowStore.ts'); + useFlowStore.setState({ nodes: [], edges: [] }); + }); + await expect(probe).not.toContainText('ancillary_declaration_invalid'); + expect(renderErrors).toEqual([]); +}); + test('Advanced numeric values and step buttons fit a narrow scrolling node', async ({ page }) => { page.setDefaultTimeout(15_000); await ensureFrontend(); From 86c50f41d4384bdaf1e09f7f34c930de273006f5 Mon Sep 17 00:00:00 2001 From: Sourav Das Date: Tue, 20 Oct 2026 12:15:51 +0530 Subject: [PATCH 040/440] Compare encoded references against durable signal declarations --- docs/modiff-client-architecture.md | 6 +++++- scripts/layout-conditioning.test.mjs | 21 +++++++++++++++++++-- src/studio/layoutReferenceContext.ts | 9 ++++++++- 3 files changed, 32 insertions(+), 4 deletions(-) diff --git a/docs/modiff-client-architecture.md b/docs/modiff-client-architecture.md index 0498089a..e9ce1d67 100644 --- a/docs/modiff-client-architecture.md +++ b/docs/modiff-client-architecture.md @@ -202,7 +202,11 @@ Source tools remain disabled unless the selected version-2 descriptor declares `supportsBoundSourceRegions: true` and the operator reads an actual encoded reference summary through the ordinary cache route. The string output `layout_reference_summary` on the actual Image Encode supplier is joined to its producer's persisted task, attempt, -run-input hash, workflow and exact current source ancestry. A genuine encoding +run-input hash, workflow and exact current source ancestry. The comparison uses +durable signal declarations: runtime `signal.value` payloads +are discarded from both live and saved ancestry, matching task persistence. +Source values, wiring, signal declarations and task identity remain checked. +A genuine encoding cache hit may retain its earlier producer identity; the client does not relabel it as a fresh computation. Image Encode can publish a new summary independently of a Prompt that correctly refuses stale source IDs; re-encode that source branch, diff --git a/scripts/layout-conditioning.test.mjs b/scripts/layout-conditioning.test.mjs index f0fa61e1..823bd948 100644 --- a/scripts/layout-conditioning.test.mjs +++ b/scripts/layout-conditioning.test.mjs @@ -127,7 +127,7 @@ test('bound reference summaries have exact bounded data and never substitute for assert.throws(() => layout.validateLayoutConditioningSupport(changed, bound), /rebind/); }); -test('normal ordinary and Block projection binds summaries to exact source ancestry and actual task snapshot', () => { +test('ordinary and Block summaries bind durable source ancestry and task while excluding runtime signal payloads', () => { const source = { id: 'reference', type: 'custom', @@ -139,7 +139,12 @@ test('normal ordinary and Block projection binds summaries to exact source ances module: 'modules.Test', action: 'EncodeReference', params: { - file: { type: 'string', display: 'text', value: 'reference-a.png' }, + file: { + type: 'string', + display: 'text', + value: 'reference-a.png', + signal: { direction: 'input', origin: 'source-file', value: { runtimeModel: 'current-owner' } }, + }, reference_binding: { type: 'reference_conditioning', display: 'output' }, layout_reference_summary: { type: 'string', display: 'output', hidden: true }, }, @@ -230,6 +235,18 @@ test('normal ordinary and Block projection binds summaries to exact source ances ); } const before = referenceContext.layoutReferenceContext([source, encode], edges, 'prompt', 'layout'); + const changedPayload = structuredClone(source); + changedPayload.data.params.file.signal.value = { runtimeModel: 'refreshed-owner' }; + assert.equal( + referenceContext.layoutReferenceContext([changedPayload, encode], edges, 'prompt', 'layout').key, + before.key, + ); + const changedSignal = structuredClone(source); + changedSignal.data.params.file.signal.origin = 'different-source-declaration'; + assert.notEqual( + referenceContext.layoutReferenceContext([changedSignal, encode], edges, 'prompt', 'layout').key, + before.key, + ); const afterPrompt = structuredClone(encode); afterPrompt.data.params.prompt.value = 'Changed raw prompt'; afterPrompt.data.params.layout.value = { schemaVersion: 2, coordinateSpace: 'normalized_xyxy', regions: [] }; diff --git a/src/studio/layoutReferenceContext.ts b/src/studio/layoutReferenceContext.ts index 071585c8..8d635c6b 100644 --- a/src/studio/layoutReferenceContext.ts +++ b/src/studio/layoutReferenceContext.ts @@ -69,7 +69,14 @@ export function layoutReferenceContext(nodes: CustomNodeType[], edges: Edge[], n .filter(([, param]) => param.display !== 'output' && !param.display?.startsWith('ui_')) .map(([key, param]) => [ key, - { value: param.value, default: param.default, type: param.type, signal: param.signal }, + { + value: param.value, + default: param.default, + type: param.type, + // Persisted task snapshots discard runtime signal payloads. + // Keep declaration changes meaningful without comparing that volatile authority. + signal: param.signal ? { ...param.signal, value: undefined } : undefined, + }, ]), ), })); From d33c0df3fa34ff3132d58629903910dc74fa5214 Mon Sep 17 00:00:00 2001 From: Sourav Das Date: Tue, 20 Oct 2026 12:20:02 +0530 Subject: [PATCH 041/440] Pin reviewed manual-testing backend checkpoint --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 6bd3a443..3f57d21f 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -33,7 +33,7 @@ jobs: with: repository: sdevil7th/MoDiff # Paired image stages, scoped enhancement and FLUX3 evaluation contracts. - ref: 6e4690bebb77198b7afd28b8e497e96ade3f436f + ref: 5c88e28ed10b76207a41e577334fc516ef23df3f path: MoDiff persist-credentials: false - name: Verify the pinned backend supports native setup From 003487b25ac39045e93e91029ea9b3ab9cd53d91 Mon Sep 17 00:00:00 2001 From: Sourav Das Date: Tue, 20 Oct 2026 12:37:19 +0530 Subject: [PATCH 042/440] Use Run projection identities for encoded reference cache reads --- docs/modiff-client-architecture.md | 4 ++ scripts/layout-conditioning.test.mjs | 49 +++++++++++++++++++ src/studio/layoutReferenceContext.ts | 23 ++++----- src/ui/LayoutConditioningFixture.tsx | 24 +++++++-- .../layout-conditioning.spec.ts | 11 +++-- 5 files changed, 89 insertions(+), 22 deletions(-) diff --git a/docs/modiff-client-architecture.md b/docs/modiff-client-architecture.md index e9ce1d67..498accc1 100644 --- a/docs/modiff-client-architecture.md +++ b/docs/modiff-client-architecture.md @@ -206,6 +206,10 @@ run-input hash, workflow and exact current source ancestry. The comparison uses durable signal declarations: runtime `signal.value` payloads are discarded from both live and saved ancestry, matching task persistence. Source values, wiring, signal declarations and task identity remain checked. +Cache reads expand the same executable graph as Run and use its canonical leaf +IDs for ordinary, visual-stage and expanded Blocks. A persisted snapshot may +omit rendered children; those leaves are resolved only from the validated +execution projection, never by guessing presentation aliases. A genuine encoding cache hit may retain its earlier producer identity; the client does not relabel it as a fresh computation. Image Encode can publish a new summary independently diff --git a/scripts/layout-conditioning.test.mjs b/scripts/layout-conditioning.test.mjs index 823bd948..fa87a40e 100644 --- a/scripts/layout-conditioning.test.mjs +++ b/scripts/layout-conditioning.test.mjs @@ -195,13 +195,39 @@ test('ordinary and Block summaries bind durable source ancestry and task while e size: { width: 368, height: 480 }, }), ); + const visualGroups = ['modiff.visual-stages.v1/inputs', 'modiff.visual-stages.v2/inputs'].map((provider, index) => { + const base = { ...definition, source: { kind: 'user', provider } }; + const visualDefinition = schema.normalizeBlockDefinitionV2({ + ...base, + contentHash: schema.blockDefinitionContentHashV2(base), + }); + return runtime.createBlockRootNodeV2( + schema.createBlockInstanceV2(visualDefinition, { + instanceId: `visual-group-${index}`, + position: { x: 0, y: 0 }, + size: { width: 368, height: 480 }, + }), + ); + }); + const expanded = runtime.materializeBlockProjectionV2( + runtime.createBlockRootNodeV2(runtime.setBlockPresentationV2(grouped.data.blockInstanceV2, { expanded: true })), + ); for (const graph of [ { nodes: [source, encode], edges, nodeId: 'prompt' }, { nodes: [grouped], edges: [], nodeId: 'group' }, + ...visualGroups.map((root) => ({ nodes: [root], edges: [], nodeId: root.id })), + { ...expanded, nodeId: runtime.blockProjectionNodeIdV2('group', 'prompt') }, ]) { const context = referenceContext.layoutReferenceContext(graph.nodes, graph.edges, graph.nodeId, 'layout'); assert.ok(context); assert.notEqual(context.summaryNodeId, context.nodeId, 'the normal cache belongs to the actual image supplier'); + assert.equal( + context.summaryNodeId, + flow + .expandFlowExecutionGraph(graph.nodes, graph.edges) + .nodes.find((node) => node.data.action === 'EncodeReference').id, + 'cache reads use the same actual supplier identity as Run, including visual stage Blocks', + ); const summary = { schemaVersion: 1, ownerFingerprint: 'sha256:' + 'a'.repeat(64), @@ -235,6 +261,29 @@ test('ordinary and Block summaries bind durable source ancestry and task while e ); } const before = referenceContext.layoutReferenceContext([source, encode], edges, 'prompt', 'layout'); + assert.equal(referenceContext.layoutReferenceContext([grouped], [], 'group/unknown', 'layout'), null); + assert.equal( + referenceContext.layoutReferenceContext( + [grouped], + [], + runtime.blockProjectionNodeIdV2('group', 'unknown'), + 'layout', + ), + null, + ); + const forgedProjection = structuredClone(expanded); + forgedProjection.nodes.find( + (node) => node.id === runtime.blockProjectionNodeIdV2('group', 'prompt'), + ).data.blockProjectionNodeId = 'unknown'; + assert.equal( + referenceContext.layoutReferenceContext( + forgedProjection.nodes, + forgedProjection.edges, + runtime.blockProjectionNodeIdV2('group', 'prompt'), + 'layout', + ), + null, + ); const changedPayload = structuredClone(source); changedPayload.data.params.file.signal.value = { runtimeModel: 'refreshed-owner' }; assert.equal( diff --git a/src/studio/layoutReferenceContext.ts b/src/studio/layoutReferenceContext.ts index 8d635c6b..d48fc524 100644 --- a/src/studio/layoutReferenceContext.ts +++ b/src/studio/layoutReferenceContext.ts @@ -1,10 +1,9 @@ import type { CustomNodeType } from '../stores/useFlowStore'; -import { normalizePersistedFlowState } from '../stores/useFlowStore'; +import { expandFlowExecutionGraph, normalizePersistedFlowState } from '../stores/useFlowStore'; import type { LayoutReferenceSummary } from './layoutConditioning'; import type { Edge } from '@xyflow/react'; -import { blockProjectionNodeIdV2, expandBlockGraphV2ForExecution } from './blockRuntimeV2'; +import { blockProjectionNodeIdV2 } from './blockRuntimeV2'; import { stableStringify } from './stableHash'; -import { unpackVisualOperationGroups, visualOperationGroup } from '../workflow/visualOperationGroupProjection'; /** Resolve a declared layout control through the same flat projection as Run. * The key is display freshness only; it cannot mint backend conditioning. @@ -12,25 +11,23 @@ import { unpackVisualOperationGroups, visualOperationGroup } from '../workflow/v export function layoutReferenceContext(nodes: CustomNodeType[], edges: Edge[], nodeId: string, fieldKey: string) { try { const owner = nodes.find((node) => node.id === nodeId); - if (!owner) return null; let target = nodeId; let field = fieldKey; - const instance = owner.data.blockInstanceV2; - if (instance) { + const instance = owner?.data.blockInstanceV2; + if (owner && instance) { const controls = instance.effectiveInterface.controls.filter((control) => control.controlId === fieldKey); if (controls.length !== 1 || controls[0]!.mirrorBindings?.length) return null; const binding = controls[0]!.binding; - target = visualOperationGroup(owner) - ? `${owner.id}/${binding.nodeId}` - : blockProjectionNodeIdV2(owner.id, binding.nodeId); + target = blockProjectionNodeIdV2(owner.id, binding.nodeId); field = binding.fieldId; - } else if (owner.data.blockProjectionOwnerId) { + } else if (owner?.data.blockProjectionOwnerId) { const root = nodes.find((node) => node.id === owner.data.blockProjectionOwnerId); if (!root?.data.blockInstanceV2 || !owner.data.blockProjectionNodeId) return null; - target = visualOperationGroup(root) ? `${root.id}/${owner.data.blockProjectionNodeId}` : nodeId; + target = blockProjectionNodeIdV2(root.id, owner.data.blockProjectionNodeId); } - const unpacked = unpackVisualOperationGroups({ nodes, edges }).graph; - const graph = expandBlockGraphV2ForExecution(unpacked.nodes, unpacked.edges); + // Canonical snapshots omit rendered children. Resolve their declared leaves + // through the same expansion as Run, never presentation-only slash aliases. + const graph = expandFlowExecutionGraph(nodes, edges); const leaf = graph.nodes.find((node) => node.id === target); if ( leaf?.data.params[field]?.type !== 'layout_conditioning' || diff --git a/src/ui/LayoutConditioningFixture.tsx b/src/ui/LayoutConditioningFixture.tsx index a89d2638..7637ce20 100644 --- a/src/ui/LayoutConditioningFixture.tsx +++ b/src/ui/LayoutConditioningFixture.tsx @@ -3,16 +3,22 @@ import NodeContent from '../components/NodeContent'; import { useFlowStore, type CustomNodeType } from '../stores/useFlowStore'; import { useStudioStore } from '../stores/useStudioStore'; import { graphNodeControlParams, updateGraphNodeControl } from '../studio/graphNodeControls'; -import { createBlockInstanceV2, migrateUserBlockDefinitionV1 } from '../studio/blockSchemaV2'; +import { + blockDefinitionContentHashV2, + createBlockInstanceV2, + migrateUserBlockDefinitionV1, + normalizeBlockDefinitionV2, +} from '../studio/blockSchemaV2'; import { createBlockRootNodeV2 } from '../studio/blockRuntimeV2'; import { ModiffButton } from './primitives'; const query = new URLSearchParams(window.location.search); const grouped = query.has('block'); +const visualStage = grouped && query.has('visual-stage'); const defaulted = query.has('structured-default'); const version = query.has('v2') ? 2 : 1; const boundReferences = query.has('bound-references'); -const fixtureId = grouped ? 'layout-block' : 'layout-ordinary'; +const fixtureId = visualStage ? 'layout-visual-stage' : grouped ? 'layout-block' : 'layout-ordinary'; const initialLayout = { schemaVersion: version, coordinateSpace: 'normalized_xyxy', @@ -70,7 +76,13 @@ const referenceNode: CustomNodeType = { label: 'Reference source', category: 'Control fixture', params: { - file: { type: 'string', display: 'text', label: 'Reference file', value: 'reference-a.png' }, + file: { + type: 'string', + display: 'text', + label: 'Reference file', + value: 'reference-a.png', + signal: { direction: 'input', origin: 'reference-file', value: { runtimeOwner: 'current-owner' } }, + }, reference_binding: { type: 'reference_conditioning', display: 'output' }, layout_reference_summary: { type: 'string', display: 'output', hidden: true }, }, @@ -97,7 +109,7 @@ if (query.has('source-region')) // Development-only fixture using the same field and ordinary/Block control paths. if (query.has('layout-conditioning') && !useFlowStore.getState().nodes.some(({ id }) => id === fixtureId)) { - const definition = migrateUserBlockDefinitionV1({ + const migrated = migrateUserBlockDefinitionV1({ id: 'layout-controls', name: 'Encode Inputs', version: 1, @@ -130,6 +142,10 @@ if (query.has('layout-conditioning') && !useFlowStore.getState().nodes.some(({ i createdAt: 1, updatedAt: 1, }); + const visualBase = { ...migrated, source: { kind: 'user' as const, provider: 'modiff.visual-stages.v2/inputs' } }; + const definition = visualStage + ? normalizeBlockDefinitionV2({ ...visualBase, contentHash: blockDefinitionContentHashV2(visualBase) }) + : migrated; const root = grouped ? createBlockRootNodeV2( createBlockInstanceV2(definition, { diff --git a/tests/e2e/shared-controls/layout-conditioning.spec.ts b/tests/e2e/shared-controls/layout-conditioning.spec.ts index 7ca5246d..15d5615e 100644 --- a/tests/e2e/shared-controls/layout-conditioning.spec.ts +++ b/tests/e2e/shared-controls/layout-conditioning.spec.ts @@ -200,11 +200,12 @@ test('layout default, unsupported source regions and disabled inputs keep their await expect(node.getByRole('button', { name: 'Add region', exact: true })).toBeDisabled(); }); -for (const grouped of [false, true]) { - test(`bound ${grouped ? 'Block' : 'ordinary'} source actions use task-matched summaries and require explicit rebind`, async ({ - page, - }) => { - await page.goto(`/control-state-matrix.html?layout-conditioning&v2&bound-references${grouped ? '&block' : ''}`); +for (const mode of ['ordinary', 'Block', 'visual stage Block']) { + const grouped = mode !== 'ordinary'; + test(`bound ${mode} source actions use task-matched summaries and require explicit rebind`, async ({ page }) => { + await page.goto( + `/control-state-matrix.html?layout-conditioning&v2&bound-references${grouped ? '&block' : ''}${mode === 'visual stage Block' ? '&visual-stage' : ''}`, + ); const node = widget(page); const snapshot = () => page.getByTestId('layout-snapshot').innerText().then(JSON.parse); let recorded = await snapshot(); From b6878ba6f1b3d596ddad7771c7e93a752e459c3b Mon Sep 17 00:00:00 2001 From: Sourav Das Date: Tue, 20 Oct 2026 13:01:06 +0530 Subject: [PATCH 043/440] Pin corrected component publication backend checkpoint --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 3f57d21f..0b1b9926 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -33,7 +33,7 @@ jobs: with: repository: sdevil7th/MoDiff # Paired image stages, scoped enhancement and FLUX3 evaluation contracts. - ref: 5c88e28ed10b76207a41e577334fc516ef23df3f + ref: ff873d97b3d742114753b5046a20fe1288a73214 path: MoDiff persist-credentials: false - name: Verify the pinned backend supports native setup From f654a7897c341621b10e8f9cb5f17a3a0a8fe70b Mon Sep 17 00:00:00 2001 From: Sourav Das Date: Tue, 20 Oct 2026 14:17:54 +0530 Subject: [PATCH 044/440] Keep prompt previews current across transient node status --- docs/modiff-client-architecture.md | 6 +++ scripts/flow-graph-mutations.test.mjs | 25 +++++++++++ scripts/operation-authoring.test.mjs | 15 +++++-- scripts/prompt-enhancement-preview.test.mjs | 48 ++++++++++++++++++++- src/stores/useFlowStore.ts | 4 ++ 5 files changed, 93 insertions(+), 5 deletions(-) diff --git a/docs/modiff-client-architecture.md b/docs/modiff-client-architecture.md index 498accc1..72ab1c52 100644 --- a/docs/modiff-client-architecture.md +++ b/docs/modiff-client-architecture.md @@ -1698,3 +1698,9 @@ graph, active workflow epochs and current registry/operation metadata. Stale requests are aborted and cannot replace the current tab's result. Ordinary graphs remain synchronous and request no ancillary metadata. Run and Preview still resolve fresh declarations, and an unprepared synchronous export still refuses. + +Durable node snapshots treat absent UI state and UI state containing only live +validation/status fields as the same authoring state. This keeps normal run +status updates from invalidating an unchanged Preview. Explicit authored UI +settings, including `false` and zero values, remain part of the source identity; +input, wire, worker and proposal receipt changes still invalidate Apply. diff --git a/scripts/flow-graph-mutations.test.mjs b/scripts/flow-graph-mutations.test.mjs index 31df67a3..58efcf60 100644 --- a/scripts/flow-graph-mutations.test.mjs +++ b/scripts/flow-graph-mutations.test.mjs @@ -1261,6 +1261,31 @@ test('graph replacement clears removed hidden V2 runtimes but not a retained col ); }); +test('durable snapshots canonicalize status-only UI state while retaining explicit authored UI values', () => { + const { durableFlowNodeSnapshot, flowExecutionScopeSourceKey } = flowStoreModule; + const source = node('durable-ui-state', {}); + const key = flowExecutionScopeSourceKey([source], []); + for (const uiState of [{}, { validationSeverity: 'info', validationMessage: 'Running' }]) { + const changed = { ...source, data: { ...source.data, uiState } }; + assert.equal(durableFlowNodeSnapshot(changed).data.uiState, undefined); + assert.equal(flowExecutionScopeSourceKey([changed], []), key); + assert.deepEqual(changed.data.uiState, uiState, 'Snapshotting must not mutate the live status.'); + } + for (const [field, value] of Object.entries({ + collapsed: false, + blockExpanded: false, + blockCollapsedWidth: 0, + blockCollapsedHeight: 0, + clusterCollapsedWidth: 0, + clusterCollapsedHeight: 0, + disabled: false, + })) { + const changed = { ...source, data: { ...source.data, uiState: { [field]: value } } }; + assert.equal(durableFlowNodeSnapshot(changed).data.uiState[field], value); + assert.notEqual(flowExecutionScopeSourceKey([changed], []), key, `${field} is an authored setting.`); + } +}); + test('terminal cleanup is task-scoped and durable graph snapshots never retain execution state', () => { const completedTaskNode = node( 'completed-task-node', diff --git a/scripts/operation-authoring.test.mjs b/scripts/operation-authoring.test.mjs index 40e7cb0c..e8f792cf 100644 --- a/scripts/operation-authoring.test.mjs +++ b/scripts/operation-authoring.test.mjs @@ -495,6 +495,7 @@ test('a reviewed model change survives delayed empty uiState enrichment without delete before.nodes[1].data.uiState; const sibling = structuredClone(before.nodes[1]); sibling.id = 'independent-reviewed-stage'; + sibling.data.uiState = { disabled: false }; delete sibling.data.operationAuthoring; before.nodes.push(sibling); flow.replaceGraph(before); @@ -502,20 +503,24 @@ test('a reviewed model change survives delayed empty uiState enrichment without const context = captureWorkflowOperationContext(); const signature = operationGraphSignature(before); const plan = authoring.planOperationChange(before, before.nodes[0].id, starter('OtherPipeline')); + const liveBefore = JSON.stringify(useFlowStore.getState().nodes); const enriched = structuredClone(before); enriched.nodes[0].data.uiState = {}; enriched.nodes[1].data.uiState = {}; - enriched.nodes[2].data.uiState = {}; + enriched.nodes[2].data.uiState = { disabled: false }; flow.replaceGraph(enriched); + for (const node of enriched.nodes.slice(0, 2)) + assert.deepEqual(useFlowStore.getState().nodes.find((live) => live.id === node.id).data.uiState, {}); assert.notEqual( - JSON.stringify(flow.toObject()), - JSON.stringify(before), + JSON.stringify(useFlowStore.getState().nodes), + liveBefore, 'Exercise the actual delayed metadata difference.', ); + assert.deepEqual(flow.toObject(), before, 'Empty presentation metadata is not a durable workflow edit.'); assert.equal(operationGraphSignature(flow.toObject()), signature); commitOperationGraph(plan.graph, context, signature, 'Change model after presentation refresh'); assert.equal(flow.toObject().nodes[0].data.params.pipeline_class.value, 'OtherPipeline'); - assert.deepEqual(flow.toObject().nodes.find((node) => node.id === sibling.id).data.uiState, {}); + assert.equal(flow.toObject().nodes.find((node) => node.id === sibling.id).data.uiState.disabled, false); assert.deepEqual( flow.toObject().nodes.find((node) => node.id === sibling.id).data.params, enriched.nodes[2].data.params, @@ -523,8 +528,10 @@ test('a reviewed model change survives delayed empty uiState enrichment without assert.equal(useFlowStore.getState().historyPast.length, 1); flow.undo(); assert.equal(flow.toObject().nodes[0].data.params.pipeline_class.value, 'FuturePipeline'); + assert.equal(flow.toObject().nodes.find((node) => node.id === sibling.id).data.uiState.disabled, false); flow.redo(); assert.equal(flow.toObject().nodes[0].data.params.pipeline_class.value, 'OtherPipeline'); + assert.equal(flow.toObject().nodes.find((node) => node.id === sibling.id).data.uiState.disabled, false); }); test('preview normalization preserves every nonempty UI setting and authored graph mutation', async () => { diff --git a/scripts/prompt-enhancement-preview.test.mjs b/scripts/prompt-enhancement-preview.test.mjs index 65fe649d..ff384a21 100644 --- a/scripts/prompt-enhancement-preview.test.mjs +++ b/scripts/prompt-enhancement-preview.test.mjs @@ -520,8 +520,48 @@ test('synthetic fresh and warm observations require task/request/source correlat }); }); +test('normal running and completed node status cannot stale an otherwise unchanged Preview or Apply', async () => { + const { ownerId } = await setup(); + await preview.enablePromptEnhancement(ownerId); + const run = await preview.startPromptEnhancementPreview(ownerId, child.id), + envelope = syntheticEnvelope(run); + const root = flow + .getState() + .nodes.find((node) => + node.data.blockInstanceV2?.effectiveGraph.nodes.some( + (leaf) => runtime.blockProjectionNodeIdV2(node.id, leaf.nodeId) === ownerId, + ), + ); + assert.equal(root.data.uiState, undefined); + const original = activeOwner(ownerId).data.params.prompt.value, + graphSignature = transaction.operationGraphSignature(flow.getState().toObject()); + // The websocket status reducer materializes uiState even when there is no authored UI setting. + flow.getState().setNodeUiState(root.id, { validationSeverity: 'info', validationMessage: 'Running' }); + flow.getState().updateProgress(root.id, -1, { activeTaskId: run.taskId, executionStatus: 'running' }); + flow.getState().setNodeUiState(root.id, { validationSeverity: 'success', validationMessage: 'Completed' }); + flow.getState().updateProgress(root.id, 0, { activeTaskId: run.taskId, executionStatus: 'completed' }); + assert.equal(transaction.operationGraphSignature(flow.getState().toObject()), graphSignature); + const ticket = await preview.finishPromptEnhancementPreview(run); + assert.equal(activeOwner(ownerId).data.params.prompt.value, original); + await preview.applyPromptEnhancementPreview(ticket); + assert.equal(activeOwner(ownerId).data.params.prompt.value, JSON.parse(envelope.value).proposal.text); + flow.getState().undo(); + assert.equal(activeOwner(ownerId).data.params.prompt.value, original); +}); + test('synthetic observation drift, contradictory cache origin, duplicate JSON and later edits cannot mint or reuse Apply', async (t) => { - for (const fault of ['task', 'source', 'graph', 'request', 'consumed', 'digest', 'duplicate', 'later-edit']) + for (const fault of [ + 'task', + 'source', + 'graph', + 'request', + 'consumed', + 'digest', + 'duplicate', + 'ui', + 'wire', + 'later-edit', + ]) await t.test(fault, async () => { const { ownerId } = await setup(); await preview.enablePromptEnhancement(ownerId); @@ -536,6 +576,12 @@ test('synthetic observation drift, contradictory cache origin, duplicate JSON an if (fault === 'digest') envelope.observation.summarySha256 = sha('different summary bytes'); cacheBody = JSON.stringify(envelope); if (fault === 'duplicate') cacheBody = cacheBody.replace('{"value":', '{"value":"discarded","value":'); + if (fault === 'ui') flow.getState().setNodeUiState(flow.getState().nodes[0].id, { disabled: true }); + if (fault === 'wire') { + const graph = flow.getState().toObject(); + assert.ok(graph.edges.length); + flow.getState().replaceGraph({ ...graph, edges: graph.edges.slice(1) }); + } const before = activeOwner(ownerId).data.params.prompt.value; if (fault === 'later-edit') { const ticket = await preview.finishPromptEnhancementPreview(run); diff --git a/src/stores/useFlowStore.ts b/src/stores/useFlowStore.ts index beb26c67..5f9a604d 100644 --- a/src/stores/useFlowStore.ts +++ b/src/stores/useFlowStore.ts @@ -609,6 +609,10 @@ export function durableFlowNodeSnapshot(node: CustomNodeType) { disabled: snapshot.data.uiState.disabled, } : undefined; + // Runtime status may create uiState without any authored UI setting. + if (snapshot.data.uiState && Object.values(snapshot.data.uiState).every((value) => value === undefined)) { + snapshot.data.uiState = undefined; + } Object.entries(snapshot.data.params).forEach(([name, param]) => { if (param.fieldOptions?.huggingFaceClusterPreviewSourceNodeId) { delete snapshot.data.params[name]; From 7a4b3034ca97e5b0a4ad0f69d26d80d022b771c0 Mon Sep 17 00:00:00 2001 From: Sourav Das Date: Tue, 20 Oct 2026 18:05:14 +0530 Subject: [PATCH 045/440] Fix incremental repair of stale layout source regions Allow explicit edits to retain only identical existing stale siblings while requiring every changed or new region to match the current verified source context. Keep full-layout diagnostics and backend execution checks strict. Cover ordinary and visual-stage Block recovery, source ordering, removal, Undo/Redo, persistence and invalid-data boundaries. Correct the six staged image-template descriptions and pin CI to the tested compatible backend. Validation: focused89unit and11browser cases; complete npm run check; production build and unchanged bundle budgets; post-gate CI YAML/pin checks. --- .github/workflows/ci.yml | 2 +- docs/image-template-workflows.md | 26 +-- docs/modiff-client-architecture.md | 5 + scripts/layout-conditioning.test.mjs | 173 ++++++++++++++++++ src/fields/LayoutConditioningField.tsx | 4 +- src/studio/layoutConditioning.ts | 26 +++ .../layout-conditioning.spec.ts | 119 ++++++++++++ 7 files changed, 340 insertions(+), 15 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 0b1b9926..8ae705f4 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -33,7 +33,7 @@ jobs: with: repository: sdevil7th/MoDiff # Paired image stages, scoped enhancement and FLUX3 evaluation contracts. - ref: ff873d97b3d742114753b5046a20fe1288a73214 + ref: bce1530a3cb67836b9f8f80dc9282cc61c85495f path: MoDiff persist-credentials: false - name: Verify the pinned backend supports native setup diff --git a/docs/image-template-workflows.md b/docs/image-template-workflows.md index 195238d0..b4694fc7 100644 --- a/docs/image-template-workflows.md +++ b/docs/image-template-workflows.md @@ -52,18 +52,20 @@ Auto/repeat checks on local ROCm remain separate from Windows or cloud hardware qualification. Changing a fresh template's execution selection invalidates its current exact-template evidence while retaining the historical example. -The other six recipes retain explicit whole-pipeline operations: - -| Whole-pipeline path | Templates | Preserved boundary | -| ------------------------ | --------: | ----------------------------------------------------- | -| FLUX Fill | 2 | Fill model, image and mask recipe | -| FLUX Canny/Depth control | 2 | Selected control artifact and conditioning contract | -| FLUX Redux | 2 | Selected base/prior models and reference conditioning | - -These tasks lack a reviewed native-stage replacement for their exact selected -artifact and parameter contract. Their graphs contain actual loading and -generation operations, required utility nodes and previews. They do not gain an -encoding or Guidance node merely to resemble another workflow. +The other six recipes use generic pipeline stages while retaining their selected +official pipeline's specialty conditioning and sampling contract: + +| Pipeline-stage path | Templates | Preserved boundary | +| ------------------------ | --------: | ------------------------------------------------------------------- | +| FLUX Fill | 2 | Text encoding, official image/mask sampling, decoding and composite | +| FLUX Canny/Depth control | 2 | Text and VAE control encoding, official latent sampling and decode | +| FLUX Redux | 2 | Pinned prior in reference order, matching base sampler and VAE | + +Their fresh graphs contain real **Load Pipeline → Encode Inputs → Denoise → Decode +Latents** operations, required utility nodes and previews. These stages retain +the official pipeline's denoising implementation rather than substituting an +unreviewed native modular recipe. They do not add an unused Guidance owner. +Existing saved whole-pipeline workflows retain their original route. ## Guidance and preserved settings diff --git a/docs/modiff-client-architecture.md b/docs/modiff-client-architecture.md index 72ab1c52..0b684207 100644 --- a/docs/modiff-client-architecture.md +++ b/docs/modiff-client-architecture.md @@ -220,6 +220,11 @@ The summary describes up to ten ordered references, their content identities and original/processed dimensions. It is local display context, not an opaque execution receipt. Source/owner/graph changes mark it stale, and each saved source region requires explicit rebind to a current ID. +An explicit region edit may retain identical already-stale siblings so several +regions can be rebound, removed or reordered one at a time. Every changed or new +region must satisfy the current verified source context; the complete layout +retains its error until all saved sources agree. Whole-layout validation and +backend execution never use this authoring-only exception. The backend independently verifies the same process-local receipt in Prompt and Denoise against actual images, processed tensors, owner and tensor versions. Imported counts or summary strings cannot grant execution authority. A declared diff --git a/scripts/layout-conditioning.test.mjs b/scripts/layout-conditioning.test.mjs index fa87a40e..0dbc9e89 100644 --- a/scripts/layout-conditioning.test.mjs +++ b/scripts/layout-conditioning.test.mjs @@ -127,6 +127,179 @@ test('bound reference summaries have exact bounded data and never substitute for assert.throws(() => layout.validateLayoutConditioningSupport(changed, bound), /rebind/); }); +test('incremental bound edits preserve only identical existing stale siblings while full-layout validation still refuses', () => { + const ids = ['a', 'b', 'c'].map((letter) => `sha256:${letter.repeat(64)}`); + const previous = { + schemaVersion: 2, + coordinateSpace: 'normalized_xyxy', + regions: ids.map((expectedReferenceId, referenceIndex) => + region({ + id: `source_${referenceIndex}`, + action: 'relocate', + source: { referenceIndex, expectedReferenceId, box: [0, 0, 1, 1] }, + }), + ), + }; + const current = { + schemaVersion: 2, + sourceRegions: true, + references: [ids[1], ids[2], ids[0]].map((referenceId) => ({ + referenceId, + sourceSize: [64, 48], + processedSize: [64, 48], + })), + }; + const before = structuredClone(previous); + const partial = structuredClone(previous); + partial.regions[0].source.referenceIndex = 2; + assert.deepEqual(layout.parseLayoutConditioningEdit(partial, previous, current), partial); + assert.deepEqual(previous, before, 'A permitted edit must not silently rebind or mutate the other saved regions.'); + assert.throws(() => layout.validateLayoutConditioningSupport(partial, current), /rebind/); + const reordered = { ...partial, regions: [partial.regions[2], partial.regions[0], partial.regions[1]] }; + assert.deepEqual(layout.parseLayoutConditioningEdit(reordered, partial, current), reordered); + assert.throws(() => layout.validateLayoutConditioningSupport(reordered, current), /rebind/); + const removed = { ...partial, regions: partial.regions.slice(0, 2) }; + assert.deepEqual(layout.parseLayoutConditioningEdit(removed, partial, current), removed); + assert.throws(() => layout.validateLayoutConditioningSupport(removed, current), /rebind/); + const repaired = structuredClone(removed); + repaired.regions[1].source.referenceIndex = 0; + assert.deepEqual(layout.parseLayoutConditioningEdit(repaired, removed, current), repaired); + layout.validateLayoutConditioningSupport(repaired, current); + const fewer = { ...current, references: [current.references[2]] }; + const stillUnbound = structuredClone(previous); + stillUnbound.regions[0].source.referenceIndex = 0; + assert.deepEqual(layout.parseLayoutConditioningEdit(stillUnbound, previous, fewer), stillUnbound); + assert.throws(() => layout.validateLayoutConditioningSupport(stillUnbound, fewer), /no longer bound/); + const onlyValid = { ...repaired, regions: [repaired.regions[0]] }; + assert.deepEqual(layout.parseLayoutConditioningEdit(onlyValid, removed, current), onlyValid); + layout.validateLayoutConditioningSupport(onlyValid, current); +}); + +test('incremental bound edits refuse changed or foreign stale data and retain global schema and capability boundaries', async (t) => { + const id = (letter) => `sha256:${letter.repeat(64)}`; + const previous = { + schemaVersion: 2, + coordinateSpace: 'normalized_xyxy', + regions: [ + region({ + id: 'first', + action: 'relocate', + source: { referenceIndex: 0, expectedReferenceId: id('a'), box: [0, 0, 1, 1] }, + }), + region({ + id: 'second', + action: 'remove', + targetBox: null, + source: { referenceIndex: 1, expectedReferenceId: id('b'), box: [0, 0, 1, 1] }, + }), + ], + }; + const current = { + schemaVersion: 2, + sourceRegions: true, + references: [id('b'), id('a')].map((referenceId) => ({ + referenceId, + sourceSize: [64, 48], + processedSize: [64, 48], + })), + }; + const partial = structuredClone(previous); + partial.regions[0].source.referenceIndex = 1; + for (const [name, change] of [ + [ + 'description', + (next) => { + next.regions[1].description += ' changed'; + }, + ], + [ + 'source box', + (next) => { + next.regions[1].source.box[0] = 0.1; + }, + ], + [ + 'foreign identity', + (next) => { + next.regions[1].source.expectedReferenceId = id('c'); + }, + ], + [ + 'renamed identity', + (next) => { + next.regions[1].id = 'unseen'; + }, + ], + [ + 'new stale sibling', + (next) => { + next.regions.push({ ...structuredClone(next.regions[1]), id: 'new' }); + }, + ], + [ + 'action', + (next) => { + next.regions[1].action = 'relocate'; + next.regions[1].targetBox = [0, 0, 1, 1]; + }, + ], + [ + 'unknown property', + (next) => { + next.extra = true; + }, + ], + [ + 'duplicate region ID', + (next) => { + next.regions[1].id = 'first'; + }, + ], + [ + 'schema', + (next) => { + next.schemaVersion = 3; + }, + ], + [ + 'region count', + (next) => { + next.regions = Array.from({ length: 33 }, (_, index) => ({ ...next.regions[1], id: `r${index}` })); + }, + ], + [ + 'total bytes', + (next) => { + next.regions = Array.from({ length: 20 }, (_, index) => ({ + ...next.regions[1], + id: `r${index}`, + description: 'x'.repeat(4096), + })); + }, + ], + ]) + await t.test(name, () => { + const next = structuredClone(partial); + change(next); + assert.throws(() => layout.parseLayoutConditioningEdit(next, previous, current), /Invalid layout/); + }); + for (const selected of [ + { schemaVersion: 2, sourceRegions: false, supportsBoundSourceRegions: true }, + { schemaVersion: 2, sourceRegions: false }, + { schemaVersion: 1, sourceRegions: true, referenceCount: 2 }, + ]) + assert.throws(() => layout.parseLayoutConditioningEdit(partial, previous, selected), /unavailable/); + const legacy = { + schemaVersion: 1, + coordinateSpace: 'normalized_xyxy', + regions: [region({ source: { referenceIndex: 1, box: [0, 0, 1, 1] } })], + }; + assert.throws(() => layout.parseLayoutConditioningEdit(legacy, legacy, current), /version two rebind/); + assert.throws(() => layout.parseLayoutConditioningEdit(partial, null, current), /rebind/); + assert.throws(() => layout.parseLayoutConditioningEdit(partial, { ...previous, extra: true }, current), /unknown/); + assert.equal(layout.parseLayoutConditioningEdit(null, previous, current), null); +}); + test('ordinary and Block summaries bind durable source ancestry and task while excluding runtime signal payloads', () => { const source = { id: 'reference', diff --git a/src/fields/LayoutConditioningField.tsx b/src/fields/LayoutConditioningField.tsx index 5aa2c1c1..d5428d38 100644 --- a/src/fields/LayoutConditioningField.tsx +++ b/src/fields/LayoutConditioningField.tsx @@ -9,6 +9,7 @@ import { MAX_LAYOUT_REGIONS, nextLayoutRegionId, parseLayoutConditioning, + parseLayoutConditioningEdit, parseLayoutConditioningSupport, parseLayoutReferenceSummary, validateLayoutConditioningSupport, @@ -258,8 +259,7 @@ export default function LayoutConditioningField(props: FieldProps) { const commit = (value: LayoutConditioning | null) => { if (props.disabled || !support) return; try { - const parsed = parseLayoutConditioning(value); - validateLayoutConditioningSupport(parsed, support); + const parsed = parseLayoutConditioningEdit(value, layout, support); props.updateStore(props.fieldKey, parsed); setError(''); setEditing(null); diff --git a/src/studio/layoutConditioning.ts b/src/studio/layoutConditioning.ts index 158cc134..9ad88245 100644 --- a/src/studio/layoutConditioning.ts +++ b/src/studio/layoutConditioning.ts @@ -212,6 +212,32 @@ export function validateLayoutConditioningSupport( } } +/** Authoring recovery only; full-layout validation and backend execution stay strict. */ +export function parseLayoutConditioningEdit( + value: unknown, + previous: unknown, + support: LayoutConditioningSupport, +): LayoutConditioning | null { + const parsed = parseLayoutConditioning(value); + if (parsed?.schemaVersion !== 2 || support.schemaVersion !== 2 || !support.sourceRegions) { + validateLayoutConditioningSupport(parsed, support); + return parsed; + } + const before = parseLayoutConditioning(previous); + const saved = new Map(before?.schemaVersion === 2 ? before.regions.map((region) => [region.id, region]) : []); + // An explicit edit may retain an identical stale sibling while repairing, + // removing or reordering other regions. It cannot introduce/change stale data. + // Parse the whole layout first so IDs, geometry, schema and byte/count bounds + // still apply even to siblings whose current reference identity is deferred. + const changed = parsed.regions.filter((region) => { + const source = region.source; + const stale = source && source.expectedReferenceId !== support.references[source.referenceIndex]?.referenceId; + return !stale || JSON.stringify(saved.get(region.id)) !== JSON.stringify(region); + }); + validateLayoutConditioningSupport({ ...parsed, regions: changed }, support); + return parsed; +} + /** Display metadata only. Actual conditioning still needs the backend receipt. */ export function parseLayoutReferenceSummary(value: unknown): LayoutReferenceSummary { const item = record( diff --git a/tests/e2e/shared-controls/layout-conditioning.spec.ts b/tests/e2e/shared-controls/layout-conditioning.spec.ts index 15d5615e..f65ce8f9 100644 --- a/tests/e2e/shared-controls/layout-conditioning.spec.ts +++ b/tests/e2e/shared-controls/layout-conditioning.spec.ts @@ -344,3 +344,122 @@ for (const mode of ['ordinary', 'Block', 'visual stage Block']) { expect(await contained(page)).toEqual({ width: 368, overflow: 0, controls: true }); }); } + +for (const mode of ['ordinary', 'visual stage Block']) { + test(`bound ${mode} repairs multiple stale regions incrementally without accepting the remaining stale sources`, async ({ + page, + }) => { + await page.goto( + `/control-state-matrix.html?layout-conditioning&v2&bound-references${mode === 'visual stage Block' ? '&block&visual-stage' : ''}`, + ); + const node = widget(page); + const snapshot = () => page.getByTestId('layout-snapshot').innerText().then(JSON.parse); + let recorded = await snapshot(); + const originalIds = ['a', 'b', 'c'].map((letter) => `sha256:${letter.repeat(64)}`); + let referenceIds = originalIds; + let taskId = 'reference_original'; + await page.route('**/cache/**/layout_reference_summary', async (route) => + route.fulfill({ + status: 200, + contentType: 'application/json', + body: JSON.stringify({ + schemaVersion: 1, + ownerFingerprint: 'sha256:' + '1'.repeat(64), + bindingFingerprint: 'sha256:' + '2'.repeat(64), + taskId, + attemptIndex: 0, + runInputHash: 'run_1234abcd', + references: referenceIds.map((referenceId) => ({ + referenceId, + sourceSize: [64, 48], + processedSize: [64, 48], + })), + }), + }), + ); + await page.route('**/runs/reference_*', async (route) => + route.fulfill({ + status: 200, + contentType: 'application/json', + body: JSON.stringify({ + task: { task_id: taskId, attempt_index: 0, run_input_hash: 'run_1234abcd', status: 'completed' }, + workflow_id: 'layout-widget-fixture', + workflow_snapshot: recorded, + outputs: [], + }), + }), + ); + const chooseReference = async (index: number) => { + await node.getByRole('button', { name: 'Source reference index', exact: true }).click(); + await page.getByRole('option', { name: `Reference ${index}: 64×48 → 64×48`, exact: true }).click(); + }; + const currentLayout = async () => (await exported(page)).params.layout_conditioning!.value; + const prompt = (await exported(page)).params.prompt!.value; + await node.getByRole('radio', { name: 'Structured layout', exact: true }).click(); + await node.getByRole('button', { name: 'Read encoded references', exact: true }).click(); + await expect(node.getByRole('status')).toContainText('3 encoded references'); + for (const index of [0, 1, 2]) { + await node.getByRole('button', { name: 'Add region', exact: true }).click(); + await node.getByRole('button', { name: 'Region action', exact: true }).click(); + await page.getByRole('option', { name: 'Relocate from source', exact: true }).click(); + await chooseReference(index); + await node.getByLabel('Region description', { exact: true }).fill(`Move source ${index}`); + await node.getByRole('button', { name: 'Apply region', exact: true }).click(); + } + const original = await currentLayout(); + await node.getByRole('button', { name: 'Replace reference media', exact: true }).click(); + recorded = await snapshot(); + referenceIds = [originalIds[1]!, originalIds[2]!, originalIds[0]!]; + taskId = 'reference_reordered'; + await node.getByRole('button', { name: 'Read encoded references', exact: true }).click(); + await expect(node.getByRole('alert')).toContainText('explicitly rebind'); + expect(await currentLayout()).toEqual(original); + + await node.getByRole('button', { name: 'Edit region_1', exact: true }).click(); + await chooseReference(2); + await node.getByRole('button', { name: 'Apply region', exact: true }).click(); + const partial = await currentLayout(); + expect(partial).toMatchObject({ + regions: [ + { source: { referenceIndex: 2, expectedReferenceId: originalIds[0] } }, + { source: { referenceIndex: 1, expectedReferenceId: originalIds[1] } }, + { source: { referenceIndex: 2, expectedReferenceId: originalIds[2] } }, + ], + }); + await expect(node.getByRole('button', { name: 'Apply region', exact: true })).toHaveCount(0); + await expect(node.getByRole('alert')).toContainText('explicitly rebind'); + await node.getByRole('button', { name: 'Move region_3 up', exact: true }).click(); + expect(await currentLayout()).toMatchObject({ + regions: [{ id: 'region_1' }, { id: 'region_3' }, { id: 'region_2' }], + }); + await node.getByRole('button', { name: 'Undo', exact: true }).click(); + expect(await currentLayout()).toEqual(partial); + await node.getByRole('button', { name: 'Remove region_3', exact: true }).click(); + const removed = await currentLayout(); + expect(removed).toMatchObject({ regions: [{ id: 'region_1' }, { id: 'region_2' }] }); + await expect(node.getByRole('alert')).toContainText('explicitly rebind'); + await node.getByRole('button', { name: 'Undo', exact: true }).click(); + expect(await currentLayout()).toEqual(partial); + await node.getByRole('button', { name: 'Redo', exact: true }).click(); + expect(await currentLayout()).toEqual(removed); + await node.getByRole('button', { name: 'Edit region_2', exact: true }).click(); + await chooseReference(0); + await node.getByRole('button', { name: 'Apply region', exact: true }).click(); + await expect(node.getByRole('alert')).toHaveCount(0); + const repaired = await exported(page); + expect(repaired.params.layout_conditioning!.value).toMatchObject({ + regions: [ + { id: 'region_1', source: { referenceIndex: 2, expectedReferenceId: originalIds[0] } }, + { id: 'region_2', source: { referenceIndex: 0, expectedReferenceId: originalIds[1] } }, + ], + }); + expect(repaired.params.prompt!.value).toBe(prompt); + await page.reload(); + await expect(node.getByRole('button', { name: 'Edit region_1', exact: true })).toBeVisible(); + expect(await exported(page)).toEqual(repaired); + await expect(node.getByRole('alert')).toContainText('source regions are unavailable'); + await node.getByRole('button', { name: 'Read encoded references', exact: true }).click(); + await expect(node.getByRole('alert')).toHaveCount(0); + expect(await exported(page)).toEqual(repaired); + }); +} From eb8c6d726b5b786bb6259e87a863bd40427b967e Mon Sep 17 00:00:00 2001 From: Sourav Das Date: Tue, 20 Oct 2026 18:51:16 +0530 Subject: [PATCH 046/440] Preserve current viewport when importing partial workflow snapshots --- docs/modiff-client-architecture.md | 4 + scripts/workflow-document-origin.test.mjs | 152 +++++++++++++++++++++- src/stores/useStudioStore.ts | 2 +- 3 files changed, 156 insertions(+), 2 deletions(-) diff --git a/docs/modiff-client-architecture.md b/docs/modiff-client-architecture.md index 0b684207..ac33b1e7 100644 --- a/docs/modiff-client-architecture.md +++ b/docs/modiff-client-architecture.md @@ -68,6 +68,10 @@ is cancelled. The activity shelf still reports a running task and opens it on explicit selection; a fresh empty session can recover its snapshot. Recovery must not mutate the running graph or steal the user's editing tab. +Workflow snapshots and portable packages may omit the viewport. Import and +restore retain the current valid camera when it is absent or rejected by the +existing viewport normalizer, without changing graph content or provenance. + ## Graph State And Mutations `src/stores/useFlowStore.ts` is the source of truth for: diff --git a/scripts/workflow-document-origin.test.mjs b/scripts/workflow-document-origin.test.mjs index 84733506..4c2200ee 100644 --- a/scripts/workflow-document-origin.test.mjs +++ b/scripts/workflow-document-origin.test.mjs @@ -3,8 +3,10 @@ import { after, before, beforeEach, test } from 'node:test'; import path from 'node:path'; import { fileURLToPath } from 'node:url'; import { createServer } from 'vite'; +import React from 'react'; +import { renderToStaticMarkup } from 'react-dom/server'; const ROOT = path.resolve(path.dirname(fileURLToPath(import.meta.url)), '..'); -let server, origin, sync, studio, originalFetch; +let server, origin, sync, studio, flow, drops, packages, notifications, defaultForm, originalFetch; const values = new Map(); const storage = { getItem: (key) => values.get(key) ?? null, @@ -30,6 +32,11 @@ before(async () => { origin = await server.ssrLoadModule('/src/studio/workflowDocumentOrigin.ts'); studio = (await server.ssrLoadModule('/src/stores/useStudioStore.ts')).useStudioStore; sync = await server.ssrLoadModule('/src/studio/useWorkflowBackendSync.ts'); + flow = (await server.ssrLoadModule('/src/stores/useFlowStore.ts')).useFlowStore; + drops = await server.ssrLoadModule('/src/workflow/useWorkflowDrop.ts'); + packages = await server.ssrLoadModule('/src/studio/workflowPackage.ts'); + notifications = await server.ssrLoadModule('/src/ui/snackbar.ts'); + defaultForm = (await server.ssrLoadModule('/src/studio/modelProfiles.ts')).DEFAULT_STUDIO_FORM; originalFetch = globalThis.fetch; }); beforeEach(() => { @@ -148,3 +155,146 @@ test('a restored current-document ID never acquires freshness from backendRevisi assert.equal(origin.isFreshWorkflowId(id), false); assert.equal(serialized.includes('FreshWorkflow'), false); }); + +for (const scenario of [ + { name: 'bare graph without viewport', format: 'graph', expected: { x: 0, y: 0, zoom: 1 } }, + { name: 'saved snapshot without viewport', format: 'snapshot' }, + { name: 'normal export package without viewport', format: 'package' }, + { name: 'saved snapshot with a valid viewport', format: 'snapshot', viewport: { x: -50, y: 80, zoom: 0.6 } }, + { name: 'saved snapshot with null viewport', format: 'snapshot', viewport: null }, + { name: 'saved snapshot with invalid zoom', format: 'snapshot', viewport: { x: 10, y: 20, zoom: 0 } }, +]) { + test(`workflow import viewport: ${scenario.name} retains the graph and reports success`, async () => { + const previousFlow = flow.getState(); + const previousReader = globalThis.FileReader; + const previousFetch = globalThis.fetch; + const currentViewport = { x: 25, y: -30, zoom: 0.75 }; + const operationAuthoring = { + schemaVersion: 1, + operation: { pipelineClass: 'TestPipeline', task: 'edit_image', operationId: 'image.load' }, + authored: ['file'], + }; + // Import preserves opaque operation provenance; it grants no execution. + const graph = { + nodes: [ + { + id: 'retained-source', + type: 'custom', + position: { x: 10, y: 20 }, + data: { + type: 'custom', + module: 'modules.Image', + action: 'Load', + label: 'Retained source', + params: { + file: { type: 'str', display: 'filebrowser', value: ['images/retained.png'] }, + image: { type: 'image', display: 'output' }, + }, + operationAuthoring, + }, + }, + { + id: 'retained-preview', + type: 'custom', + position: { x: 300, y: 20 }, + data: { + type: 'custom', + module: 'modules.Image', + action: 'Preview', + label: 'Retained preview', + params: { image: { type: 'image', display: 'input' } }, + }, + }, + ], + edges: [ + { + id: 'retained-wire', + source: 'retained-source', + sourceHandle: 'image', + target: 'retained-preview', + targetHandle: 'image', + }, + ], + ...(Object.hasOwn(scenario, 'viewport') ? { viewport: scenario.viewport } : {}), + }; + const originalGraph = structuredClone(graph); + const form = { ...defaultForm, resourceMode: 'expert' }; + const value = + scenario.format === 'snapshot' + ? { + ...graph, + studioForm: form, + studioGraphBinding: null, + selectedMode: form.mode, + activeTemplateId: null, + sourceOutputId: null, + } + : scenario.format === 'package' + ? packages.buildWorkflowPackage({ graph, form }) + : graph; + const requests = []; + try { + globalThis.fetch = async (...args) => { + requests.push(args); + throw new Error('Import must not dispatch.'); + }; + flow.setState({ nodes: [], edges: [], viewport: { ...currentViewport } }); + const previousViewport = flow.getState().viewport; + for (const toast of notifications.getToastItems()) notifications.closeSnackbar(toast.id); + let handleDrop; + function ImportProbe() { + ({ handleDrop } = drops.useWorkflowDrop({ + addNode: () => assert.fail('A workflow import must not insert an unrelated node.'), + createWorkflowTab: studio.getState().createWorkflowTab, + edgeType: 'default', + nodesRegistry: {}, + screenToFlowPosition: (position) => position, + })); + return null; + } + renderToStaticMarkup(React.createElement(ImportProbe)); + globalThis.FileReader = class { + readAsText() { + this.onload({ target: { result: JSON.stringify(value) } }); + } + }; + const before = studio.getState().workflowTabs.length; + await handleDrop({ + preventDefault() {}, + dataTransfer: { files: { length: 1, item: () => ({ name: 'Imported.json', type: 'application/json' }) } }, + }); + assert.equal(studio.getState().workflowTabs.length, before + 1); + assert.deepEqual( + notifications.getToastItems().map(({ message, variant }) => ({ message, variant })), + [{ message: 'Workflow opened as a new tab', variant: 'success' }], + ); + assert.deepEqual( + flow.getState().nodes.map((node) => node.id), + graph.nodes.map((node) => node.id), + ); + assert.deepEqual(flow.getState().nodes[0].data.operationAuthoring, operationAuthoring); + assert.deepEqual(flow.getState().nodes[0].data.params.file.value, ['images/retained.png']); + assert.deepEqual( + flow.getState().edges.map(({ id, source, sourceHandle, target, targetHandle }) => ({ + id, + source, + sourceHandle, + target, + targetHandle, + })), + graph.edges, + ); + assert.deepEqual( + flow.getState().viewport, + scenario.expected ?? (scenario.viewport?.zoom > 0 ? scenario.viewport : currentViewport), + ); + assert.notEqual(flow.getState().viewport, previousViewport); + assert.deepEqual(graph, originalGraph); + assert.deepEqual(requests, []); + } finally { + flow.setState(previousFlow); + globalThis.FileReader = previousReader; + globalThis.fetch = previousFetch; + } + }); +} diff --git a/src/stores/useStudioStore.ts b/src/stores/useStudioStore.ts index 8c40d57f..6cfb238d 100644 --- a/src/stores/useStudioStore.ts +++ b/src/stores/useStudioStore.ts @@ -723,7 +723,7 @@ function applyWorkflowSnapshot(snapshot: WorkflowTabSnapshot, workflowTabId: str flow.replaceGraph({ nodes: retainedBlockNodes(cloneJson(snapshot.nodes) as typeof flow.nodes, workflowTabId), edges: cloneJson(snapshot.edges) as typeof flow.edges, - viewport: (cloneJson(snapshot.viewport) as typeof flow.viewport) ?? flow.viewport, + viewport: cloneJson(snapshot.viewport ?? flow.viewport) as typeof flow.viewport, }); // Undo/redo belongs to the document whose graph produced it. A canvas // replacement must never leave another tab's snapshots armed. From a3e6e72137e09ce1a7e1f3401dd4773651201c2f Mon Sep 17 00:00:00 2001 From: Sourav Das Date: Wed, 21 Oct 2026 03:29:24 +0530 Subject: [PATCH 047/440] Fix current media collections in V2 Block previews --- docs/modiff-client-architecture.md | 8 + scripts/block-runtime-v2.test.mjs | 123 ++++++++++++++- scripts/bundle-budget.mjs | 12 +- src/studio/blockRuntimeV2.ts | 25 ++- src/studio/userBlocks.ts | 33 ++++ .../e2e/studio-mocked/blockPreviewFixture.tsx | 146 ++++++++++++++++++ tests/e2e/studio-mocked/studio-mocked.spec.ts | 69 +++++++++ 7 files changed, 404 insertions(+), 12 deletions(-) create mode 100644 tests/e2e/studio-mocked/blockPreviewFixture.tsx diff --git a/docs/modiff-client-architecture.md b/docs/modiff-client-architecture.md index ac33b1e7..c32847da 100644 --- a/docs/modiff-client-architecture.md +++ b/docs/modiff-client-architecture.md @@ -1679,6 +1679,14 @@ URL and available task identity match the current instance media reference. Older cached artifacts stay in the immutable source snapshot but cannot override a newer rendered output, including after save/reload or explicit legacy conversion. +V2 preview fields resolve their declared, owner-bound source to the canonical +execution node and output field before reading the active workflow's current +preview slot. A ready slot supplies the complete ordered media collection; +pending or failed slots retain their current-run status. The exact-task scalar +reference remains the saved fallback when no current slot exists. This applies +to collapsed and nested previews and older definitions that expose a declared +output preview as a control, without changing their saved graph or interface. + Durable Block text previews display the text value from the exact task and field, rather than the retained `.txt` download URL. Only an explicit current preview slot for the active workflow can advance the preview to a different diff --git a/scripts/block-runtime-v2.test.mjs b/scripts/block-runtime-v2.test.mjs index 3d2c1350..3a0ae1f5 100644 --- a/scripts/block-runtime-v2.test.mjs +++ b/scripts/block-runtime-v2.test.mjs @@ -2348,6 +2348,116 @@ test('saved Block previews resolve exact retained media without changing graph o assert.equal(reopened.nodes[0].data.blockInstanceV2.previewStates[0].mediaReference, output.url); }); +test('V2 preview source resolves generated fields to the current ordered image collection', async () => { + const users = await server.ssrLoadModule('/src/studio/userBlocks.ts'); + const artifacts = await server.ssrLoadModule('/src/utils/imageArtifacts.ts'); + const current = runtime.setBlockPreviewStateV2( + instance('collection-preview'), + { nodeId: 'preview', outputPortId: 'images' }, + { mediaReference: '/file?file=@data/current-item-0.webp', taskId: 'current-task', status: 'complete' }, + ); + const before = structuredClone(current); + const view = runtime.blockPreviewViewsV2(current)[0]; + const params = view.params[view.previewId]; + const source = users.userBlockPreviewSource(current.instanceId, view.previewId, params.fieldOptions); + const canonical = { nodeId: runtime.blockProjectionNodeIdV2(current.instanceId, 'preview'), fieldKey: 'images' }; + assert.deepEqual(source, canonical); + const output = { + id: 'current-output', + taskId: 'current-task', + mediaItems: [0, 1].map((index) => ({ index, url: `/file?file=@data/current-item-${index}.webp` })), + }; + const key = studioStore.studioPreviewSlotKey(canonical.nodeId, canonical.fieldKey, 'current-workflow'); + const slots = { [key]: { status: 'ready', currentOutputId: output.id } }; + const selected = slots[studioStore.studioPreviewSlotKey(source.nodeId, source.fieldKey, 'current-workflow')]; + assert.equal(selected.currentOutputId, output.id); + assert.deepEqual( + artifacts + .normalizeImageArtifacts({ + value: output.mediaItems.map(({ url }) => url), + artifacts: output.mediaItems, + dataType: 'url', + mimeType: 'image/webp', + }) + .map(({ index }) => index), + [0, 1], + ); + assert.equal(params.value, '/file?file=@data/current-item-0.webp'); + assert.deepEqual(current, before); +}); + +test('V2 preview source retains canonical ownership for nested containers and every media binding', async () => { + const users = await server.ssrLoadModule('/src/studio/userBlocks.ts'); + const ownerId = 'owned-block'; + const nestedId = runtime.blockProjectionNodeIdV2(ownerId, 'nested-container'); + for (const mediaType of ['image', 'video', 'audio', 'text', 'file']) { + const binding = { schemaVersion: 2, ownerId, nodeId: 'preview', outputPortId: 'output', mediaType }; + const options = { blockPreviewBindingV2: binding }; + const before = structuredClone(options); + const expected = { nodeId: runtime.blockProjectionNodeIdV2(ownerId, 'preview'), fieldKey: 'output' }; + assert.deepEqual(users.userBlockPreviewSource(ownerId, 'generated-field', options), expected); + assert.deepEqual(users.userBlockPreviewSource(nestedId, 'generated-field', options), expected); + assert.deepEqual(options, before); + } + const leaf = runtime.blockProjectionNodeIdV2(ownerId, 'preview'); + assert.deepEqual(users.userBlockPreviewSource(leaf, 'output'), { nodeId: leaf, fieldKey: 'output' }); +}); + +test('V2 preview source preserves private-style fields admitted by the actual Block schema', async () => { + const users = await server.ssrLoadModule('/src/studio/userBlocks.ts'); + const declared = definition(); + const preview = declared.graph.nodes.find(({ nodeId }) => nodeId === 'preview'); + preview.data.params._images = preview.data.params.images; + declared.graph.graphHash = schema.blockGraphHashV2(declared.graph); + declared.previews[0].outputPortId = '_images'; + declared.contentHash = schema.blockDefinitionContentHashV2(declared); + const current = schema.createBlockInstanceV2(declared, { + instanceId: 'private-field-preview', + position: { x: 0, y: 0 }, + size: { width: 400, height: 420 }, + values: { prompt: 'unchanged', steps: 16 }, + }); + const view = runtime.blockPreviewViewsV2(current)[0]; + assert.deepEqual( + users.userBlockPreviewSource(current.instanceId, view.previewId, view.params[view.previewId].fieldOptions), + { nodeId: runtime.blockProjectionNodeIdV2(current.instanceId, 'preview'), fieldKey: '_images' }, + ); +}); + +test('V2 preview source rejects malformed and foreign ownership while preserving legacy fallback', async () => { + const users = await server.ssrLoadModule('/src/studio/userBlocks.ts'); + const valid = { schemaVersion: 2, ownerId: 'owner', nodeId: 'preview', outputPortId: 'images', mediaType: 'image' }; + for (const binding of [ + null, + [], + { ...valid, schemaVersion: '2' }, + { ...valid, ownerId: 'foreign-owner' }, + { ...valid, ownerId: '' }, + { ...valid, nodeId: 'x'.repeat(385) }, + { ...valid, outputPortId: [] }, + { ...valid, outputPortId: '1images' }, + { ...valid, mediaType: 'unknown' }, + ]) { + assert.deepEqual(users.userBlockPreviewSource('owner', 'generated-field', { blockPreviewBindingV2: binding }), { + nodeId: 'owner', + fieldKey: 'generated-field', + }); + } + for (const caller of ['foreign-owner', 'block-v2-node:5:owner:4:wrong', 'block-v2-node:50:owner:7:preview']) { + assert.deepEqual(users.userBlockPreviewSource(caller, 'generated-field', { blockPreviewBindingV2: valid }), { + nodeId: caller, + fieldKey: 'generated-field', + }); + } + assert.deepEqual( + users.userBlockPreviewSource('legacy-owner', 'generated-field', { + userBlockSourceNodeId: 'preview', + userBlockSourceFieldKey: 'images', + }), + { nodeId: 'legacy-owner__preview', fieldKey: 'images' }, + ); +}); + test('retained Block text stays text and only an exact current slot advances its task', async () => { const { withDurableBlockPreviewsV2 } = await server.ssrLoadModule('/src/studio/blockPreviewPersistenceV2.ts'); const users = await server.ssrLoadModule('/src/studio/userBlocks.ts'); @@ -2453,7 +2563,7 @@ test('newly created Blocks expose editable text but exclude output preview contr assert.equal(leaf.data.params.preview.value, 'Old preview'); }); -test('legacy exposed preview controls project current instance output without rewriting their contract', async () => { +test('V2 preview source restores legacy exposed preview controls without rewriting their contract', async () => { const users = await server.ssrLoadModule('/src/studio/userBlocks.ts'); const creation = await server.ssrLoadModule('/src/studio/userBlockCreationV2.ts'); const leaf = { @@ -2495,7 +2605,16 @@ test('legacy exposed preview controls project current instance output without re mediaReference: 'Current preview', status: 'complete', }); - const control = Object.values(runtime.blockControlParamsV2(changed)).find((param) => param.display === 'ui_text'); + const controls = runtime.blockControlParamsV2(changed); + const [controlId, control] = Object.entries(controls).find(([, param]) => param.display === 'ui_text'); + const binding = changed.previewStates[0].binding; + assert.deepEqual(users.userBlockPreviewSource(changed.instanceId, controlId, control.fieldOptions), { + nodeId: runtime.blockProjectionNodeIdV2(changed.instanceId, binding.nodeId), + fieldKey: binding.outputPortId, + }); + assert.equal(control.fieldOptions.blockBindingV2.direction, 'control'); + for (const editable of Object.values(controls).filter((param) => param.display !== 'ui_text')) + assert.equal(editable.fieldOptions?.blockPreviewBindingV2, undefined); assert.equal(control.value, 'Current preview'); assert.deepEqual(control.artifacts, []); assert.deepEqual(changed.definitionSnapshot, original.definitionSnapshot); diff --git a/scripts/bundle-budget.mjs b/scripts/bundle-budget.mjs index 8a1bce7b..f491cde2 100644 --- a/scripts/bundle-budget.mjs +++ b/scripts/bundle-budget.mjs @@ -1,3 +1,9 @@ +// Owner-bound V2 preview lookup restores complete ordered media collections, +// including declared legacy preview controls. Startup/chunk/deferred gzip bytes +// measure 656925/478620/316464 versus 656739/478434/316484 before the fix. +// Allow 192 bytes for the 186-byte shared correctness increase in each startup +// cap, leaving 39/34 bytes. Keep strict binding validation, dependencies, loading +// boundaries, minifier and both deferred caps unchanged. // Shared ancillary readiness resolves the exact current declaration before the // synchronous collector inspects the scoped graph. Two consumers share one // display witness; pending/stale/error handling preserves fresh Run authority. @@ -175,7 +181,8 @@ const MAX_STARTUP_CHUNK_GZIP_BYTES = 5086 + 128 + 128 + - 512; + 512 + + 192; // Shared icons initialize in graph-vendor, avoiding an entry/lazy-panel cycle // that captured undefined tab icons and crashed cold production startup. The // Earlier startup measured 589.1 KiB. Shared Block crossing, explicit movement, @@ -281,7 +288,8 @@ const MAX_STARTUP_GZIP_BYTES = 5092 + 128 + 128 + - 512; + 512 + + 192; // Deferred surfaces are measured separately so code splitting cannot hide an // unbounded feature bundle. These ceilings leave room for the reviewed dialogs // and catalog tools while preventing either one oversized deferred chunk or diff --git a/src/studio/blockRuntimeV2.ts b/src/studio/blockRuntimeV2.ts index 794f78f4..43580cbf 100644 --- a/src/studio/blockRuntimeV2.ts +++ b/src/studio/blockRuntimeV2.ts @@ -378,6 +378,18 @@ function currentPreviewValue(base: NodeParams | undefined, preview: BlockPreview }; } +function previewSourceFieldOptionsV2(instance: BlockInstanceV2, binding: BlockPreviewStateV2['binding']) { + return { + blockPreviewBindingV2: { + schemaVersion: 2, + ownerId: instance.instanceId, + nodeId: binding.nodeId, + outputPortId: binding.outputPortId, + mediaType: binding.mediaType, + }, + }; +} + /** Body controls. They intentionally do not use input/output display modes. */ export function blockControlParamsV2(instanceValue: BlockInstanceV2): Record { const instance = normalizeBlockInstanceV2(instanceValue); @@ -415,7 +427,10 @@ function controlParamsForNormalizedInstanceV2(instance: BlockInstanceV2): Record ...(control.required === undefined ? {} : { required: control.required }), disabled: Boolean(control.sealed) || Boolean(base?.disabled), isInput: false, - fieldOptions: projectedBindingFieldOptions(base, instance, control.controlId, 'control', control.binding), + fieldOptions: { + ...projectedBindingFieldOptions(base, instance, control.controlId, 'control', control.binding), + ...(preview ? previewSourceFieldOptionsV2(instance, preview.binding) : {}), + }, } satisfies NodeParams, ]; }), @@ -519,13 +534,7 @@ function previewViewsForNormalizedInstanceV2( ...currentPreviewValue(base, preview), fieldOptions: { ...(isRecord(base?.fieldOptions) ? cloneJson(base.fieldOptions) : {}), - blockPreviewBindingV2: { - schemaVersion: 2, - ownerId: instance.instanceId, - nodeId: binding.nodeId, - outputPortId: binding.outputPortId, - mediaType: binding.mediaType, - }, + ...previewSourceFieldOptionsV2(instance, binding), }, }, }, diff --git a/src/studio/userBlocks.ts b/src/studio/userBlocks.ts index 7df620c7..d0694c47 100644 --- a/src/studio/userBlocks.ts +++ b/src/studio/userBlocks.ts @@ -554,11 +554,44 @@ export function userBlockPreviewParamId(nodeId: string, paramKey: string) { return `${USER_BLOCK_PREVIEW_PREFIX}${safeHandle(nodeId, 'node')}__${safeHandle(paramKey, 'preview')}`; } +function previewBindingId(value: unknown): value is string { + return typeof value === 'string' && /^[A-Za-z0-9][A-Za-z0-9_.:/-]{0,383}$/u.test(value); +} + +function previewBindingFieldId(value: unknown): value is string { + return typeof value === 'string' && /^[A-Za-z_][A-Za-z0-9_.:/-]{0,383}$/u.test(value); +} + +function previewCallerBelongsToOwner(nodeId: string, ownerId: string) { + if (nodeId === ownerId) return true; + const prefix = `block-v2-node:${ownerId.length}:${ownerId}:`; + if (!nodeId.startsWith(prefix)) return false; + const suffix = nodeId.slice(prefix.length); + const semanticId = suffix.slice(suffix.indexOf(':') + 1); + return previewBindingId(semanticId) && blockProjectionNodeIdV2(ownerId, semanticId) === nodeId; +} + export function userBlockPreviewSource( blockNodeId: string, blockFieldKey: string, fieldOptions: Record | undefined, ) { + const binding = fieldOptions?.blockPreviewBindingV2; + if ( + isRecord(binding) && + binding.schemaVersion === 2 && + previewBindingId(binding.ownerId) && + previewBindingId(binding.nodeId) && + previewBindingFieldId(binding.outputPortId) && + typeof binding.mediaType === 'string' && + ['image', 'video', 'audio', 'text', 'file'].includes(binding.mediaType) && + previewCallerBelongsToOwner(blockNodeId, binding.ownerId) + ) { + return { + nodeId: blockProjectionNodeIdV2(binding.ownerId, binding.nodeId), + fieldKey: binding.outputPortId, + }; + } const sourceNodeId = typeof fieldOptions?.userBlockSourceNodeId === 'string' ? fieldOptions.userBlockSourceNodeId : null; const sourceFieldKey = diff --git a/tests/e2e/studio-mocked/blockPreviewFixture.tsx b/tests/e2e/studio-mocked/blockPreviewFixture.tsx new file mode 100644 index 00000000..b37d1729 --- /dev/null +++ b/tests/e2e/studio-mocked/blockPreviewFixture.tsx @@ -0,0 +1,146 @@ +import { createRoot } from 'react-dom/client'; +import UIImageField from '../../../src/fields/UIImageField'; +import { useFlowStore, type CustomNodeType } from '../../../src/stores/useFlowStore'; +import { studioPreviewSlotKey, useStudioStore } from '../../../src/stores/useStudioStore'; +import { + blockPreviewViewsV2, + blockProjectionNodeIdV2, + setBlockPreviewStateV2, +} from '../../../src/studio/blockRuntimeV2'; +import { prepareUserBlockCreationV2 } from '../../../src/studio/userBlockCreationV2'; +import { createUserBlockFromSelection } from '../../../src/studio/userBlocks'; +import type { StudioPreviewSlot } from '../../../src/studio/types'; + +const workflowTabId = 'v2-preview-workflow'; +const taskId = 'v2-preview-task'; +const urls = ['/preview-fixture/item-0.png', '/preview-fixture/item-1.png']; + +function newRoot() { + const leaf: CustomNodeType = { + id: 'collection-leaf', + type: 'custom', + selected: true, + position: { x: 0, y: 0 }, + data: { + type: 'custom', + module: 'modules.Image', + action: 'Preview', + label: 'Preview', + params: { + output: { type: 'image', display: 'output' }, + preview: { type: 'url', display: 'ui_image', dataSource: 'output' }, + }, + }, + }; + const draft = createUserBlockFromSelection({ nodes: [leaf], edges: [] }, 'Collection preview'); + if (!draft.ok) throw new Error(draft.reason); + const prepared = prepareUserBlockCreationV2(draft, draft.block); + const root = prepared.graph.nodes.find((node) => node.data.blockInstanceV2)!; + const instance = root.data.blockInstanceV2!; + return { + ...root, + data: { + ...root.data, + blockInstanceV2: setBlockPreviewStateV2(instance, instance.previewStates[0]!.binding, { + taskId, + mediaReference: urls[0], + status: 'complete', + }), + }, + }; +} + +// eslint-disable-next-line react-refresh/only-export-components -- Isolated mounted-field regression entry point. +function PreviewProbe({ root, slot }: { root: CustomNodeType; slot: StudioPreviewSlot }) { + const view = blockPreviewViewsV2(root.data.blockInstanceV2!)[0]!; + const param = view.params[view.previewId]!; + const setStatus = (status: StudioPreviewSlot['status']) => + useStudioStore.setState({ + previewSlots: { + [studioPreviewSlotKey(slot.nodeId, slot.fieldKey, workflowTabId)]: { ...slot, status }, + }, + }); + return ( +
+ + + + + +
+ ); +} + +export function mountBlockPreviewProbe(savedRoot?: CustomNodeType) { + const root = savedRoot ?? newRoot(); + const binding = root.data.blockInstanceV2!.previewStates[0]!.binding; + const nodeId = blockProjectionNodeIdV2(root.id, binding.nodeId); + const slot: StudioPreviewSlot = { + schemaVersion: 1, + workflowTabId, + nodeId, + fieldKey: binding.outputPortId, + currentOutputId: 'v2-preview-output', + status: 'ready', + generation: 1, + attemptIndex: 0, + pendingClientRunId: null, + pendingTaskId: null, + updatedAt: 100, + }; + useFlowStore.setState({ nodes: [root], edges: [] }); + useStudioStore.setState({ + activeWorkflowTabId: workflowTabId, + outputs: [], + previewSlots: {}, + previewStateRevision: 0, + }); + const host = document.createElement('div'); + document.body.appendChild(host); + createRoot(host).render(); + return { + root, + backend: { + error: false, + revision: 1, + previewSlots: [slot], + outputs: [ + { + id: slot.currentOutputId, + nodeId, + fieldKey: binding.outputPortId, + workflowTabId, + taskId, + attemptIndex: 0, + value: urls, + url: urls[0], + displayType: 'image_collection', + mediaItems: urls.map((url, index) => ({ index, url, displayType: 'image', taskId, attemptIndex: 0 })), + }, + ], + }, + }; +} + +export function hydrateBlockPreviewProbe() { + return useStudioStore.getState().fetchBackendOutputs(); +} diff --git a/tests/e2e/studio-mocked/studio-mocked.spec.ts b/tests/e2e/studio-mocked/studio-mocked.spec.ts index b5fa6a0f..f60aa453 100644 --- a/tests/e2e/studio-mocked/studio-mocked.spec.ts +++ b/tests/e2e/studio-mocked/studio-mocked.spec.ts @@ -22,6 +22,75 @@ import type { OperationContract } from '../../../src/workflow/operationContracts import type { PipelineSupport } from '../../../src/workflow/operationCatalog'; import type { ApiGraphExport } from '../../../src/types/api'; +test('mounted V2 preview retains both current collection items through hydration and reload', async ({ page }) => { + const renderErrors: string[] = []; + page.on('pageerror', (error) => renderErrors.push(error.message)); + await ensureFrontend(); + let backend: unknown = { error: false, outputs: [], previewSlots: [], revision: 0 }; + let graphPosts = 0; + await page.route('**/studio_outputs?*', (route) => route.fulfill({ json: backend })); + await page.route('**/graph', async (route) => { + if (route.request().method() === 'POST') graphPosts++; + await route.fulfill({ json: { error: true, message: 'This rendering fixture must not dispatch.' } }); + }); + const pixel = Buffer.from( + 'iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mP8/x8AAwMCAO+aOCkAAAAASUVORK5CYII=', + 'base64', + ); + await page.route('**/preview-fixture/*.png', (route) => route.fulfill({ body: pixel, contentType: 'image/png' })); + await page.goto(`${FRONTEND_URL}/control-state-matrix.html`, { waitUntil: 'domcontentloaded' }); + const fixture = await page.evaluate(async () => { + const { mountBlockPreviewProbe } = await import('/tests/e2e/studio-mocked/blockPreviewFixture.tsx'); + return mountBlockPreviewProbe(); + }); + backend = fixture.backend; + const probe = page.getByTestId('mounted-v2-preview'); + const currentImages = probe.locator('[data-testid^="node-preview-image-"] img'); + await expect(currentImages).toHaveCount(1); // Exact-task persisted scalar fallback before backend hydration. + await page.evaluate(async () => { + const { hydrateBlockPreviewProbe } = await import('/tests/e2e/studio-mocked/blockPreviewFixture.tsx'); + await hydrateBlockPreviewProbe(); + }); + await expect(currentImages).toHaveCount(2); + await expect(currentImages.nth(0)).toHaveAttribute('src', /\/preview-fixture\/item-0\.png$/); + await expect(currentImages.nth(1)).toHaveAttribute('src', /\/preview-fixture\/item-1\.png$/); + await probe.getByRole('button', { name: 'Open Preview 2 full-resolution preview', exact: true }).click(); + const opened = await page.evaluate(async () => { + const { useSettingsStore } = await import('/src/stores/useSettingsStore.ts'); + return useSettingsStore.getState().lightboxOpener; + }); + if (!opened) throw new Error('The second collection image did not open its full-size preview.'); + expect(opened.currentIndex).toBe(1); + expect(opened.images).toHaveLength(2); + expect(opened.images.map((url: string) => new URL(url).pathname)).toEqual([ + '/preview-fixture/item-0.png', + '/preview-fixture/item-1.png', + ]); + await probe.getByRole('button', { name: 'Pending preview', exact: true }).click(); + await expect(currentImages).toHaveCount(0); + await expect(probe).toContainText('Waiting for this run'); + await probe.getByRole('button', { name: 'Failed preview', exact: true }).click(); + await expect(currentImages).toHaveCount(0); + await expect(probe).toContainText('Run failed before producing a new output.'); + await probe.getByRole('button', { name: 'Ready preview', exact: true }).click(); + await expect(currentImages).toHaveCount(2); + await probe.getByRole('button', { name: 'Other workflow', exact: true }).click(); + await expect(currentImages).toHaveCount(1); // No current collection borrowed across workflow authority. + await probe.getByRole('button', { name: 'Current workflow', exact: true }).click(); + await expect(currentImages).toHaveCount(2); + await page.reload({ waitUntil: 'domcontentloaded' }); + await page.evaluate(async (root) => { + const { mountBlockPreviewProbe, hydrateBlockPreviewProbe } = + await import('/tests/e2e/studio-mocked/blockPreviewFixture.tsx'); + mountBlockPreviewProbe(root); + await hydrateBlockPreviewProbe(); + }, fixture.root); + await expect(currentImages).toHaveCount(2); + await expect(currentImages.nth(1)).toHaveAttribute('src', /\/preview-fixture\/item-1\.png$/); + expect(renderErrors).toEqual([]); + expect(graphPosts).toBe(0); +}); + test('mounted ancillary readiness resolves current declarations before classifying the graph', async ({ page }) => { const renderErrors: string[] = []; page.on('pageerror', (error) => renderErrors.push(error.message)); From b0d655d9dbba51611345b2a3afe9ef49ff966f86 Mon Sep 17 00:00:00 2001 From: Sourav Das Date: Wed, 21 Oct 2026 05:27:02 +0530 Subject: [PATCH 048/440] Test optional LoRA predecessor discovery --- .github/workflows/ci.yml | 2 +- .../model-setup-adapter-authority.test.mjs | 103 ++++++++++++++++++ 2 files changed, 104 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 8ae705f4..48179ac9 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -33,7 +33,7 @@ jobs: with: repository: sdevil7th/MoDiff # Paired image stages, scoped enhancement and FLUX3 evaluation contracts. - ref: bce1530a3cb67836b9f8f80dc9282cc61c85495f + ref: 2f2f02e9fe3c3afb608973acab3d35725cfc009c path: MoDiff persist-credentials: false - name: Verify the pinned backend supports native setup diff --git a/scripts/model-setup-adapter-authority.test.mjs b/scripts/model-setup-adapter-authority.test.mjs index c250c3a3..0d93b762 100644 --- a/scripts/model-setup-adapter-authority.test.mjs +++ b/scripts/model-setup-adapter-authority.test.mjs @@ -1913,3 +1913,106 @@ test('native adapter workflow authority keeps explicit bindings ahead of declara assert.deepEqual(changed, before); }); }); + +test('ordinary public LoRA discovery keeps first adapters optional in fresh, restored and chained graphs', async () => { + const { buildGraphFixPlan } = await server.ssrLoadModule('/src/studio/graphFixer.ts'); + const { createNodeFromRegistry } = await server.ssrLoadModule('/src/workflow/nodeFactory.ts'); + const { inspectRequiredGraphInputs } = await server.ssrLoadModule('/src/studio/requiredGraphInputs.ts'); + const key = 'modules.ModularDiffusers.Lora'; + const original = groups.unpackVisualOperationGroups(cases.get('flux_lora_ghibli_story').graph).graph; + const originalAdapters = original.nodes.filter((node) => `${node.data.module}.${node.data.action}` === key); + assert.equal(originalAdapters.length, 1); + const savedAdapter = originalAdapters[0]; + assert.equal( + original.edges.some((edge) => edge.target === savedAdapter.id && edge.targetHandle === 'previous_loras'), + false, + ); + + // Create through the same ordinary node factory as insertion. Retain the + // reviewed template's real immutable adapter values; do not invent a model + // or substitute a handwritten optional-input definition for discovery. + const fresh = createNodeFromRegistry(key, fixture.registry, savedAdapter.position); + assert.ok(fresh); + fresh.id = savedAdapter.id; + for (const [field, param] of Object.entries(savedAdapter.data.params)) { + if (fresh.data.params[field] && Object.hasOwn(param, 'value')) + fresh.data.params[field].value = structuredClone(param.value); + } + assert.match(fresh.data.params.revision.value, /^[a-f0-9]{40}$/); + assert.match(fresh.data.params.expected_sha256.value, /^[a-f0-9]{64}$/); + const freshGraph = { + nodes: original.nodes.map((node) => (node.id === fresh.id ? fresh : structuredClone(node))), + edges: structuredClone(original.edges), + }; + const predecessorIssues = (graph, registry = fixture.registry) => { + const ids = new Set( + graph.nodes.filter((node) => `${node.data.module}.${node.data.action}` === key).map((node) => node.id), + ); + return buildGraphFixPlan({ ...graph, registry }).issues.filter( + (issue) => + issue.kind === 'missing_input' && issue.targetHandle === 'previous_loras' && ids.has(issue.targetNodeId), + ); + }; + const before = structuredClone(freshGraph); + assert.deepEqual(predecessorIssues(freshGraph), [], 'A fresh singleton must not propose another Lora predecessor.'); + assert.deepEqual(freshGraph, before); + + // JSON restore deliberately retains the historical schema. The live fixer + // contract must override it only in its inspection copy, preserving authored + // values, edges and the saved schema even when its required bit is stale. + const historicalRegistry = structuredClone(fixture.registry); + delete historicalRegistry[key].params.previous_loras.required; + historicalRegistry[key].params.previous_loras.description = + 'Append this adapter to the connected ordered descriptor or descriptor list.'; + for (const staleRequired of [undefined, true]) { + const restored = JSON.parse(JSON.stringify(freshGraph)); + const predecessor = restored.nodes.find((node) => node.id === savedAdapter.id).data.params.previous_loras; + delete predecessor.required; + if (staleRequired !== undefined) predecessor.required = staleRequired; + predecessor.description = 'Append this adapter to the connected ordered descriptor or descriptor list.'; + const storedBefore = structuredClone(restored); + assert.equal( + predecessorIssues(restored, historicalRegistry).length, + 1, + 'The old public metadata reproduces the false Add Lora advisory.', + ); + assert.deepEqual(predecessorIssues(restored), [], 'A saved singleton uses current explicit optional metadata.'); + assert.deepEqual(restored, storedBefore, 'Inspection must not rewrite the restored contract.'); + } + + const caseWithChain = cases.get('flux_lora_cinematic_octane_3d'); + const root = caseWithChain.graph.nodes.find((node) => groups.visualOperationGroup(node) === 'setup'); + const ordered = adapters.modelSetupAdapterChain(caseWithChain.graph, root.id).adapters.map((node) => node.id); + assert.equal(ordered.length, 2); + const chain = groups.unpackVisualOperationGroups(caseWithChain.graph).graph; + assert.ok( + chain.edges.some( + (edge) => + edge.source === ordered[0] && + edge.sourceHandle === 'lora' && + edge.target === ordered[1] && + edge.targetHandle === 'previous_loras', + ), + ); + assert.equal( + chain.edges.some((edge) => edge.target === ordered[0] && edge.targetHandle === 'previous_loras'), + false, + ); + const chainBefore = structuredClone(chain); + assert.deepEqual( + predecessorIssues(chain), + [], + 'An ordered chain keeps its first adapter optional and its second wire intact.', + ); + assert.deepEqual(chain, chainBefore); + + // A genuine discovered required socket remains blocking. Optional chaining + // must not weaken the normal required-input contract for model consumers. + const encoder = createNodeFromRegistry('modules.ModularDiffusers.EncodePrompt', fixture.registry, { x: 0, y: 0 }); + assert.ok(encoder); + assert.equal(encoder.data.params.text_encoders.required, true); + const requiredIssues = inspectRequiredGraphInputs([encoder], { nodes: [encoder], edges: [] }, fixture.registry); + assert.ok( + requiredIssues.some((issue) => issue.nodeId === encoder.id && issue.fieldId === 'text_encoders' && issue.blocking), + ); +}); From 20781cd212766e2b2c0b38fdc27cce7e30aa53ff Mon Sep 17 00:00:00 2001 From: Sourav Das Date: Wed, 21 Oct 2026 06:11:37 +0530 Subject: [PATCH 049/440] Use the system temporary directory for the gallery lock test --- scripts/template-gallery-runner.test.mjs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/template-gallery-runner.test.mjs b/scripts/template-gallery-runner.test.mjs index 31fd9ccb..8aa9964e 100644 --- a/scripts/template-gallery-runner.test.mjs +++ b/scripts/template-gallery-runner.test.mjs @@ -845,7 +845,7 @@ test('resource qualification requires an explicit recipe override', () => { }); test('gallery runner prevents two capture processes from sharing one app execution session', () => { - const directory = mkdtempSync('/tmp/modiff-gallery-lock-'); + const directory = mkdtempSync(resolve(tmpdir(), 'modiff-gallery-lock-')); const lockPath = resolve(directory, '.runner.lock'); const release = acquireRunnerLock(lockPath, process.pid); assert.throws(() => acquireRunnerLock(lockPath, process.pid), /Another template-gallery runner is active/); From fb8001036e6fae2a014ba75a4f789a015c7fb7c9 Mon Sep 17 00:00:00 2001 From: Sourav Das Date: Wed, 21 Oct 2026 18:07:13 +0530 Subject: [PATCH 050/440] Resolve Process Image requirements from the selected task Share cached backend operation requirements between Graph Fix and run readiness. Preserve Mask Composite requirements, reject computed or ambiguous selections, and keep inspection read-only. Add causal unit and frontend regressions for task changes, catalog refresh and missing inputs. Bound the measured startup cost with a reviewed 288-byte allowance in each startup budget; deferred budgets and dependencies stay unchanged. Validation: complete npm run check passed; focused mocked browser regression passed on the same frozen source. Compatible backend: 2f2f02e9fe3c3afb608973acab3d35725cfc009c. --- docs/modiff-client-architecture.md | 7 + package.json | 2 +- scripts/bundle-budget.mjs | 12 +- .../process-image-input-requirements.test.mjs | 236 ++++++++++++++++++ scripts/template-operation-fixtures.py | 3 +- src/components/GraphFixDialog.tsx | 13 +- src/components/TopBar.tsx | 11 +- src/studio/graphFixer.ts | 20 +- src/studio/requiredGraphInputs.ts | 6 +- src/studio/runReadiness.ts | 8 +- src/studio/useRunReadinessIssues.ts | 4 + src/workflow/processImageInputRequirements.ts | 50 ++++ tests/e2e/studio-mocked/studio-mocked.spec.ts | 212 ++++++++++++++++ 13 files changed, 568 insertions(+), 16 deletions(-) create mode 100644 scripts/process-image-input-requirements.test.mjs create mode 100644 src/workflow/processImageInputRequirements.ts diff --git a/docs/modiff-client-architecture.md b/docs/modiff-client-architecture.md index c32847da..6b0512df 100644 --- a/docs/modiff-client-architecture.md +++ b/docs/modiff-client-architecture.md @@ -439,6 +439,13 @@ inferred to be missing. A compatible enabled incoming connection satisfies this presence check; file existence and actual runtime objects still belong to backend validation. +The ordinary Process Image palette facade resolves Image/Mask requirements from +the cached backend operation contract for its current pipeline and operation. +Graph Fix and required-input readiness share that read-only resolution: adjustment, +tiling and stitching do not demand a mask; Mask Composite still does. Inspection +preserves saved fields and wires. Unknown, computed or ambiguous task selections +retain the existing inspection behavior rather than being declared optional. + `blockControlConnectionsV2` resolves root and nested control aliases against the owning effective graph and external public-input wires. Connected body controls show their saved fallback read-only, with the source node/port and an explicit diff --git a/package.json b/package.json index 835f1246..f1da8c6e 100644 --- a/package.json +++ b/package.json @@ -92,7 +92,7 @@ "test:demo-tools": "node --test scripts/bounded-browser-process.test.mjs scripts/run-fashion-demo.test.mjs scripts/prepare-fashion-demo.test.mjs scripts/export-fashion-demo.test.mjs scripts/image-prototyping-campaign.test.mjs", "test:gallery-queue": "node --test scripts/example-generation-queue.test.mjs scripts/image-prototyping-campaign.test.mjs", "test:driver-contract": "node --test scripts/hugging-face-runtime-contract.test.mjs", - "test:graph-mutations": "node --test scripts/flow-graph-mutations.test.mjs scripts/graph-fixer.test.mjs scripts/block-seed-repair-v2.test.mjs scripts/block-derived-control-repair-v2.test.mjs scripts/adapter-chain-links.test.mjs", + "test:graph-mutations": "node --test scripts/flow-graph-mutations.test.mjs scripts/graph-fixer.test.mjs scripts/process-image-input-requirements.test.mjs scripts/block-seed-repair-v2.test.mjs scripts/block-derived-control-repair-v2.test.mjs scripts/adapter-chain-links.test.mjs", "test:graph-visuals": "node --test scripts/graph-visuals.test.mjs scripts/node-measurement-dispatch.test.mjs scripts/node-connection-search.test.mjs", "test:media-viewer": "node --test scripts/media-viewer.test.mjs scripts/workflow-png-package.test.mjs", "test:requests": "node --test scripts/controlled-execution-receipt.test.mjs scripts/media-attachment.test.mjs scripts/node-presentation.test.mjs scripts/service-package.test.mjs scripts/node-store-requests.test.mjs scripts/operation-catalog.test.mjs scripts/operation-component-bundle-inputs.test.mjs scripts/operation-component-bundle.test.mjs scripts/operation-authoring.test.mjs scripts/operation-authoring-recipes.test.mjs scripts/image-stage-groups.test.mjs scripts/model-setup-adapter-authority.test.mjs scripts/audio-authoring.test.mjs scripts/operation-modification-matrix.test.mjs scripts/request-boundary.test.mjs scripts/server-actions.test.mjs scripts/shared-store-requests.test.mjs scripts/supervisor-startup.test.mjs scripts/studio-output-requests.test.mjs scripts/resolved-execution-inputs.test.mjs scripts/prompt-enhancement-summary.test.mjs scripts/ancillary-operations.test.mjs scripts/ancillary-execution-scope.test.mjs scripts/prompt-enhancement-authoring.test.mjs scripts/prompt-enhancement-preview.test.mjs scripts/runtime-resources.test.mjs scripts/websocket-connection.test.mjs scripts/backend-proxy-lifecycle.test.mjs", diff --git a/scripts/bundle-budget.mjs b/scripts/bundle-budget.mjs index f491cde2..ac803426 100644 --- a/scripts/bundle-budget.mjs +++ b/scripts/bundle-budget.mjs @@ -1,3 +1,9 @@ +// Selected Process Image input requirements share the current operation contract +// across readiness and graph recovery. The optimized build measures startup/ +// largest-startup/deferred gzip bytes 657234/478930/316398, versus the recorded +// accepted 656925/478620/316464. Allow 288 bytes in each startup cap, leaving +// 18/12 bytes of headroom; retain strict selector/port validation, dependencies, +// loading boundaries, minifier and both deferred caps unchanged. // Owner-bound V2 preview lookup restores complete ordered media collections, // including declared legacy preview controls. Startup/chunk/deferred gzip bytes // measure 656925/478620/316464 versus 656739/478434/316484 before the fix. @@ -182,7 +188,8 @@ const MAX_STARTUP_CHUNK_GZIP_BYTES = 128 + 128 + 512 + - 192; + 192 + + 288; // Shared icons initialize in graph-vendor, avoiding an entry/lazy-panel cycle // that captured undefined tab icons and crashed cold production startup. The // Earlier startup measured 589.1 KiB. Shared Block crossing, explicit movement, @@ -289,7 +296,8 @@ const MAX_STARTUP_GZIP_BYTES = 128 + 128 + 512 + - 192; + 192 + + 288; // Deferred surfaces are measured separately so code splitting cannot hide an // unbounded feature bundle. These ceilings leave room for the reviewed dialogs // and catalog tools while preventing either one oversized deferred chunk or diff --git a/scripts/process-image-input-requirements.test.mjs b/scripts/process-image-input-requirements.test.mjs new file mode 100644 index 00000000..effa2d51 --- /dev/null +++ b/scripts/process-image-input-requirements.test.mjs @@ -0,0 +1,236 @@ +import assert from 'node:assert/strict'; +import { after, before, test } from 'node:test'; +import path from 'node:path'; +import { fileURLToPath } from 'node:url'; +import { createServer } from 'vite'; + +let server, buildGraphFixPlan, inspectRequiredGraphInputs; +before(async () => { + server = await createServer({ + root: path.resolve(path.dirname(fileURLToPath(import.meta.url)), '..'), + configFile: false, + logLevel: 'silent', + optimizeDeps: { entries: [], noDiscovery: true }, + server: { middlewareMode: true, watch: null }, + appType: 'custom', + }); + ({ buildGraphFixPlan } = await server.ssrLoadModule('/src/studio/graphFixer.ts')); + ({ inspectRequiredGraphInputs } = await server.ssrLoadModule('/src/studio/requiredGraphInputs.ts')); +}); +after(async () => server?.close()); + +// The shared palette declaration intentionally differs from the exact backend +// task overlay (integrated_operation_fields): only composite requires a mask. +const rawDefinition = { + module: 'modules.ImageOperations', + action: 'ProcessImage', + label: 'Process Image', + params: { + image: { label: 'Image', type: 'image', display: 'input' }, + mask: { label: 'Mask', type: 'image', display: 'input' }, + pipeline_class: { type: 'string', default: 'BuiltinImageOperationV1', hidden: true }, + operation: { + type: 'string', + default: 'image_adjustment', + options: [ + 'image_adjustment', + 'image_filter', + 'image_crop', + 'image_upscale', + 'image_stitch', + 'image_tile', + 'image_channels', + 'mask_composite', + ], + }, + output: { type: 'image', display: 'output' }, + }, +}; +const operationContracts = rawDefinition.params.operation.options.map((task) => ({ + pipelineClass: 'BuiltinImageOperationV1', + task, + operationId: 'image.process', + nodeKey: 'modules.ImageOperations.ProcessImage', + nodeType: 'integrated', + decomposition: 'integrated', + support: 'declared', + blockName: null, + ports: ['image', 'mask'].map((name) => ({ + name, + semanticName: name, + direction: 'input', + roles: ['value'], + types: ['image'], + required: name === 'image' || task === 'mask_composite', + hidden: name === 'mask' && task !== 'mask_composite', + })), +})); + +function fixture(task) { + const process = { id: 'process', type: 'custom', position: { x: 200, y: 0 }, data: structuredClone(rawDefinition) }; + process.data.params.operation.value = task; + const source = { + id: 'source', + type: 'custom', + position: { x: 0, y: 0 }, + data: { + module: 'modules.Test', + action: 'Source', + label: 'Source', + params: { image: { type: 'image', display: 'output' } }, + }, + }; + const preview = { + id: 'preview', + type: 'custom', + position: { x: 400, y: 0 }, + data: { + module: 'modules.Image', + action: 'Preview', + label: 'Preview', + params: { image: { type: 'image', display: 'input' } }, + }, + }; + const graph = { + nodes: [source, process, preview], + edges: [ + { id: 'in', source: 'source', sourceHandle: 'image', target: 'process', targetHandle: 'image' }, + { id: 'out', source: 'process', sourceHandle: 'output', target: 'preview', targetHandle: 'image' }, + ], + }; + return { graph, process, registry: { 'modules.ImageOperations.ProcessImage': structuredClone(rawDefinition) } }; +} +function findings(f, contracts = operationContracts) { + return { + fixes: buildGraphFixPlan({ ...f.graph, registry: f.registry, operationContracts: contracts }).issues.filter( + (issue) => issue.targetNodeId === 'process' && issue.kind === 'missing_input', + ), + required: inspectRequiredGraphInputs(f.graph.nodes, f.graph, f.registry, contracts), + }; +} + +test('raw palette Stitch does not request an unused mask', () => { + const f = fixture('image_stitch'); + const before = structuredClone(f); + assert.deepEqual(findings(f).fixes, [], 'Stitch consumes image only; do not propose a mask connection'); + assert.deepEqual(findings(f).required, []); + assert.deepEqual(f, before, 'inspection must not mutate the saved graph or registry'); +}); + +test('adjustment and tile keep mask optional while composite requires it in both inspectors', () => { + for (const task of ['image_adjustment', 'image_tile', 'image_stitch', 'mask_composite']) { + const f = fixture(task); + const found = findings(f); + assert.deepEqual( + found.fixes.map((issue) => issue.targetHandle), + task === 'mask_composite' ? ['mask'] : [], + task, + ); + assert.deepEqual( + found.required.map((issue) => issue.fieldId), + task === 'mask_composite' ? ['mask'] : [], + task, + ); + } +}); + +test('all selected image tasks still require their image source', () => { + for (const task of rawDefinition.params.operation.options) { + const f = fixture(task); + f.graph.edges = f.graph.edges.filter((edge) => edge.id !== 'in'); + assert.ok( + findings(f).fixes.some((issue) => issue.targetHandle === 'image'), + task, + ); + assert.ok( + findings(f).required.some((issue) => issue.fieldId === 'image'), + task, + ); + } +}); + +test('current selected task overrides stale saved mask metadata in either direction without rewriting it', () => { + const f = fixture('image_stitch'); + f.process.data.params.mask.required = true; + assert.deepEqual(findings(f).fixes, []); + assert.deepEqual(findings(f).required, []); + f.process.data.params.operation.value = 'mask_composite'; + f.process.data.params.mask = { ...f.process.data.params.mask, required: false, hidden: true }; + const before = structuredClone(f); + assert.deepEqual( + findings(f).fixes.map((issue) => issue.targetHandle), + ['mask'], + ); + assert.deepEqual( + findings(f).required.map((issue) => issue.fieldId), + ['mask'], + ); + assert.deepEqual(f, before); +}); + +test('composite accepts an enabled compatible mask source but keeps disabled or incompatible sources blocking', () => { + const f = fixture('mask_composite'); + const mask = structuredClone(f.graph.nodes[0]); + mask.id = 'mask'; + f.graph.nodes.push(mask); + f.graph.edges.push({ id: 'mask-in', source: 'mask', sourceHandle: 'image', target: 'process', targetHandle: 'mask' }); + assert.deepEqual(findings(f).fixes, []); + assert.deepEqual(findings(f).required, []); + mask.data.uiState = { disabled: true }; + assert.deepEqual( + findings(f).required.map((issue) => issue.fieldId), + ['mask'], + ); + delete mask.data.uiState; + mask.data.params.image.type = 'string'; + assert.deepEqual( + findings(f).required.map((issue) => issue.fieldId), + ['mask'], + ); +}); + +test('unknown, malformed, computed or ambiguous selection preserves conservative legacy inspection', () => { + const cases = [ + (f) => { + f.process.data.params.operation.value = 'unknown_task'; + }, + (f) => { + f.process.data.params.operation.value = { task: 'image_stitch' }; + }, + (f) => { + f.process.data.params.pipeline_class.value = 'UnknownPipeline'; + }, + (f) => { + f.process.data.params.operation.isConnected = true; + }, + (f) => { + f.graph.edges.push({ + id: 'task-in', + source: 'source', + sourceHandle: 'image', + target: 'process', + targetHandle: 'operation', + }); + }, + ]; + for (const mutate of cases) { + const f = fixture('image_stitch'); + mutate(f); + assert.deepEqual(findings(f), findings(f, [])); + assert.ok(findings(f).fixes.some((issue) => issue.targetHandle === 'mask')); + } + const f = fixture('image_stitch'); + const duplicate = [...operationContracts, operationContracts.find((operation) => operation.task === 'image_stitch')]; + assert.deepEqual(findings(f, duplicate), findings(f, [])); + const malformed = structuredClone(operationContracts); + delete malformed.find((operation) => operation.task === 'image_stitch').ports[1].required; + assert.deepEqual(findings(f, malformed), findings(f, [])); +}); + +test('default selector values resolve and unrelated generic nodes retain their legacy requirements', () => { + const f = fixture('image_stitch'); + delete f.process.data.params.operation.value; + assert.deepEqual(findings(f).fixes, []); + f.process.data.module = 'custom.ImageOperations'; + assert.ok(findings(f).fixes.some((issue) => issue.targetHandle === 'mask')); +}); diff --git a/scripts/template-operation-fixtures.py b/scripts/template-operation-fixtures.py index 85502a20..e7ae1ffb 100644 --- a/scripts/template-operation-fixtures.py +++ b/scripts/template-operation-fixtures.py @@ -80,7 +80,8 @@ def describe(key): describe(key) rows.append({"id": item["id"], "starter": starter, "spec": spec, "capability": STUDIO_MODEL_CAPABILITIES[binding["modelType"]] if binding else None}) - for key in ("modules.ModularDiffusers.Lora", "modules.DiffusersImage.LoadAdapter", + for key in ("modules.ImageOperations.ProcessImage", "modules.ModularDiffusers.Lora", + "modules.DiffusersImage.LoadAdapter", "modules.Spandrel.Upscaler", "modules.Image.Preview", "modules.DiffusersImage.OutpaintCanvas", "modules.Audio.Export", "modules.Audio.Load", "modules.DiffusersAudio.LoadAdapter"): diff --git a/src/components/GraphFixDialog.tsx b/src/components/GraphFixDialog.tsx index d98e2ee2..a618f32e 100644 --- a/src/components/GraphFixDialog.tsx +++ b/src/components/GraphFixDialog.tsx @@ -87,8 +87,16 @@ export default function GraphFixDialog() { const isConnected = useWebsocketStore((state) => state.isConnected); const readiness = useRunReadinessIssues({ sid, isConnected, includeStudio: Boolean(graphBinding) }); const plan = useMemo( - () => buildGraphFixPlan({ nodes, edges, registry, modularBlockDefinitions, readinessIssues: readiness.issues }), - [edges, nodes, readiness.issues, registry, modularBlockDefinitions], + () => + buildGraphFixPlan({ + nodes, + edges, + registry, + operationContracts: readiness.operationContracts, + modularBlockDefinitions, + readinessIssues: readiness.issues, + }), + [edges, nodes, readiness.issues, registry, readiness.operationContracts, modularBlockDefinitions], ); const planFingerprint = plan.issues .map((issue) => `${issue.id}:${issue.candidates.map((item) => item.id).join(',')}`) @@ -205,6 +213,7 @@ export default function GraphFixDialog() { nodes: currentGraph.nodes, edges: currentGraph.edges, registry, + operationContracts: useNodesStore.getState().operationContracts, modularBlockDefinitions, readinessIssues: validation.issues, }); diff --git a/src/components/TopBar.tsx b/src/components/TopBar.tsx index d4d887d2..67d7a982 100644 --- a/src/components/TopBar.tsx +++ b/src/components/TopBar.tsx @@ -286,10 +286,19 @@ function TopBar() { nodes: graphFixNodes, edges: graphFixEdges, registry: nodesRegistry, + operationContracts: runReadiness.operationContracts, modularBlockDefinitions, readinessIssues: runReadiness.issues, }) ?? { issues: [], candidateCount: 0, canFix: false }, - [graphFix.module, graphFixEdges, graphFixNodes, nodesRegistry, runReadiness.issues, modularBlockDefinitions], + [ + graphFix.module, + graphFixEdges, + graphFixNodes, + nodesRegistry, + runReadiness.operationContracts, + runReadiness.issues, + modularBlockDefinitions, + ], ); const blockingRunIssue = runReadiness.blockingIssues[0] ?? null; // Auto planning happens during startup/template preparation and whenever a diff --git a/src/studio/graphFixer.ts b/src/studio/graphFixer.ts index b8a21be4..ad57aa09 100644 --- a/src/studio/graphFixer.ts +++ b/src/studio/graphFixer.ts @@ -15,6 +15,8 @@ import type { HuggingFaceNodeLibraryBlockDefinition } from './huggingFaceNodeLib import { isBlockRootV2Node, nodeConnectorParam, nodeConnectorParams } from './nodeConnectorResolution'; import type { RunReadinessIssue } from './types'; import { operationInputIsSuppliedByBundle } from '../workflow/componentBundleInputs'; +import type { OperationContract } from '../workflow/operationContracts'; +import { processImageInputRequirements } from '../workflow/processImageInputRequirements'; export type GraphFixConfidence = 'safe' | 'choice'; export type GraphFixExternalAction = 'open_model_manager' | 'open_assets' | 'open_setup' | 'inspect_node'; @@ -76,6 +78,7 @@ export type GraphFixContext = { nodes: CustomNodeType[]; edges: Edge[]; registry: Record; + operationContracts?: readonly OperationContract[]; readinessIssues?: RunReadinessIssue[]; modularBlockDefinitions?: readonly HuggingFaceNodeLibraryBlockDefinition[]; }; @@ -125,24 +128,27 @@ function nodeRegistryKey(node: Pick) { return `${node.data.module}.${node.data.action}`; } -function nodesWithLiveContracts(nodes: CustomNodeType[], registry: Record) { +function nodesWithLiveContracts(context: GraphFixContext) { + const { nodes, registry } = context; return nodes.map((node) => { // Block V2 owns an immutable embedded definition snapshot. Applying a // registry contract to its empty root params would create a second socket // authority and make Graph Fix disagree with the canvas/runtime. if (isBlockRootV2Node(node)) return node; const definition = registry[nodeRegistryKey(node)]; - if (!definition) return node; + const requirements = processImageInputRequirements(node, registry, context.operationContracts ?? [], context.edges); + if (!definition && !requirements) return node; const params = Object.fromEntries( Object.entries(node.data.params).map(([key, stored]) => { - const live = definition.params[key]; - if (!live) return [key, stored]; + const live = definition?.params[key]; + if (!live && requirements?.[key] === undefined) return [key, stored]; return [ key, { ...stored, - type: live.type ?? stored.type, - required: live.required ?? stored.required, + type: live?.type ?? stored.type, + required: requirements?.[key]?.required ?? live?.required ?? stored.required, + hidden: requirements?.[key]?.hidden ?? stored.hidden, }, ]; }), @@ -627,7 +633,7 @@ function outputCandidates(issueId: string, context: GraphFixContext, existingOut } export function buildGraphFixPlan(context: GraphFixContext): GraphFixPlan { - context = { ...context, nodes: nodesWithLiveContracts(context.nodes, context.registry) }; + context = { ...context, nodes: nodesWithLiveContracts(context) }; const issues: GraphFixIssue[] = []; const nodesById = new Map(context.nodes.map((node) => [node.id, node])); const validIncoming = new Set(); diff --git a/src/studio/requiredGraphInputs.ts b/src/studio/requiredGraphInputs.ts index 7abc894e..393352be 100644 --- a/src/studio/requiredGraphInputs.ts +++ b/src/studio/requiredGraphInputs.ts @@ -6,12 +6,15 @@ import type { RunReadinessIssue } from './types'; import { runtimeProgressTarget } from './userBlocks'; import { connectionTypesAreCompatible } from '../theme/connectionTypes'; import { operationInputIsSuppliedByBundle } from '../workflow/componentBundleInputs'; +import type { OperationContract } from '../workflow/operationContracts'; +import { processImageInputRequirements } from '../workflow/processImageInputRequirements'; /** Inspect current declarations on the same lowered graph used by Run. */ export function inspectRequiredGraphInputs( visible: CustomNodeType[], graph: { nodes: CustomNodeType[]; edges: Edge[] }, registry: Record, + operations: readonly OperationContract[] = [], ): RunReadinessIssue[] { const enabled = new Map(graph.nodes.filter((node) => !node.data.uiState?.disabled).map((node) => [node.id, node])); const issues: RunReadinessIssue[] = []; @@ -25,11 +28,12 @@ export function inspectRequiredGraphInputs( ); for (const node of enabled.values()) { const declared = registry[`${node.data.module}.${node.data.action}`]?.params; + const requirements = processImageInputRequirements(node, registry, operations, graph.edges); for (const field of new Set([...Object.keys(declared ?? {}), ...Object.keys(node.data.params)])) { const saved = node.data.params[field] ?? declared![field]!; const param = declared?.[field] ?? saved; if ( - !param.required || + !(requirements?.[field]?.required ?? param.required) || param.disabled || param.display === 'output' || !(param.isInput || param.display === 'input' || param.display === 'modelselect') diff --git a/src/studio/runReadiness.ts b/src/studio/runReadiness.ts index d616a121..06fcb2c8 100644 --- a/src/studio/runReadiness.ts +++ b/src/studio/runReadiness.ts @@ -1082,7 +1082,13 @@ function collectGraphStructureIssues(graph = executableFlowGraph()): RunReadines ]; } - return inspectRequiredGraphInputs(useFlowStore.getState().nodes, graph, useNodesStore.getState().nodesRegistry); + const registry = useNodesStore.getState(); + return inspectRequiredGraphInputs( + useFlowStore.getState().nodes, + graph, + registry.nodesRegistry, + registry.operationContracts, + ); } function collectUserBlockCompositionIssues(): RunReadinessIssue[] { diff --git a/src/studio/useRunReadinessIssues.ts b/src/studio/useRunReadinessIssues.ts index 609dc941..7f61b0c4 100644 --- a/src/studio/useRunReadinessIssues.ts +++ b/src/studio/useRunReadinessIssues.ts @@ -133,6 +133,8 @@ export function useRunReadinessIssues({ sid, isConnected, includeStudio = true } param.display === 'input' || // Optional loader pickers can supply a required downstream media input. param.display === 'filebrowser' || + key === 'operation' || + key === 'pipeline_class' || /repo|model|checkpoint|ckpt|safetensors|lora|vae|controlnet|adapter/i.test(key), ) .map(([key, param]) => `${key}:${JSON.stringify(param.value ?? param.default ?? '')}`) @@ -267,6 +269,7 @@ export function useRunReadinessIssues({ sid, isConnected, includeStudio = true } modelCacheDiagnostics, modularBlockDefinitions, nodesRegistry, + operationContracts, optionalRuntimeCatalog, queueRevision, runtimeResources, @@ -280,5 +283,6 @@ export function useRunReadinessIssues({ sid, isConnected, includeStudio = true } return { ...decision, isPreparing, + operationContracts, }; } diff --git a/src/workflow/processImageInputRequirements.ts b/src/workflow/processImageInputRequirements.ts new file mode 100644 index 00000000..3bc4d84c --- /dev/null +++ b/src/workflow/processImageInputRequirements.ts @@ -0,0 +1,50 @@ +import type { Edge } from '@xyflow/react'; +import type { CustomNodeType } from '../stores/useFlowStore'; +import type { NodeData } from '../stores/useNodeStore'; +import type { OperationContract, OperationPort } from './operationContracts'; + +const NODE_KEY = 'modules.ImageOperations.ProcessImage'; + +/** Read the selected facade's existing backend contract without changing its schema. */ +export function processImageInputRequirements( + node: Pick, + registry: Record, + operations: readonly OperationContract[], + edges: readonly Edge[], +): Record>> | null { + if (`${node.data.module}.${node.data.action}` !== NODE_KEY) return null; + const selection = (field: string) => { + const saved = node.data.params[field]; + // A connected selector is computed by execution, not by inspection. + if (saved?.isConnected || edges.some((edge) => edge.target === node.id && edge.targetHandle === field)) return null; + const value = saved?.value ?? saved?.default ?? registry[NODE_KEY]?.params[field]?.default; + return typeof value === 'string' && value.length > 0 ? value : null; + }; + const pipeline = selection('pipeline_class'); + const task = selection('operation'); + if (!pipeline || !task) return null; + const matches = operations.filter( + (operation) => + operation.nodeKey === NODE_KEY && + operation.pipelineClass === pipeline && + operation.task === task && + operation.decomposition === 'integrated', + ); + const ports = + matches.length === 1 && Array.isArray(matches[0]!.ports) + ? matches[0]!.ports.filter((port) => port.direction === 'input' && ['image', 'mask'].includes(port.name)) + : []; + if ( + ports.length !== 2 || + ports[0]!.name === ports[1]!.name || + ports.some( + (port) => + typeof port.required !== 'boolean' || + typeof port.hidden !== 'boolean' || + !Array.isArray(port.types) || + !port.types.includes('image'), + ) + ) + return null; + return Object.fromEntries(ports.map((port) => [port.name, port])); +} diff --git a/tests/e2e/studio-mocked/studio-mocked.spec.ts b/tests/e2e/studio-mocked/studio-mocked.spec.ts index f60aa453..33d7166c 100644 --- a/tests/e2e/studio-mocked/studio-mocked.spec.ts +++ b/tests/e2e/studio-mocked/studio-mocked.spec.ts @@ -9505,6 +9505,218 @@ test('image pipeline drag-to-add excludes generation actions outside the selecte await expect.poll(() => page.evaluate(() => window.__MODIFF_E2E__!.getState().flow.edges.length)).toBe(1); }); +test('raw Process Image task changes keep Mask repairs and readiness current', async ({ page }) => { + await ensureFrontend(); + await installMockRoutes(page); + const fixture = await imageTemplateSchemas(); + const key = 'modules.ImageOperations.ProcessImage'; + const raw = fixture.registry[key]!; + expect(raw.params.mask!.required).toBeUndefined(); + expect(raw.params.mask!.hidden).not.toBe(true); + for (const task of ['image_stitch', 'mask_composite']) { + const contract = fixture.publicPayload.operationContracts.find( + (operation) => operation.nodeKey === key && operation.task === task, + )!; + expect(contract.ports.find((port) => port.name === 'mask')!.required).toBe(task === 'mask_composite'); + } + // Use the real shared palette schema, not a task starter's already narrowed + // fields. All operation contracts remain the standard backend-owned fixture. + await page.route('**/nodes**', (route) => + route.fulfill({ + json: { + nodes: { + ...mockRegistry, + [key]: raw, + 'modules.Image.Load': fixture.registry['modules.Image.Load'], + 'modules.Image.Preview': fixture.registry['modules.Image.Preview'], + }, + }, + }), + ); + let catalogAvailable = true; + await page.route('**/model_capabilities**', (route) => { + const capabilities = includeImageTemplateBindings(mockStudioExecutionCapabilities(), fixture); + return route.fulfill({ + json: { + schemaVersion: 2, + capabilities, + studioExecutionSpecs: capabilities.flatMap((capability) => capability.studioExecutionSpecs ?? []), + operationContractSchemaVersion: 3, + operationContracts: catalogAvailable ? fixture.publicPayload.operationContracts : [], + pipelineSupportSchemaVersion: 1, + pipelineSupport: catalogAvailable ? fixture.publicPayload.pipelineSupport : [], + }, + }); + }); + let graphPosts = 0; + await page.route('**/graph', (route) => { + if (route.request().method() === 'POST') graphPosts++; + return route.fulfill({ json: { error: true, message: 'Readiness regression must not dispatch.' } }); + }); + let uploads = 0; + await page.route('**/file', (route) => { + if (route.request().method() !== 'POST') return route.fallback(); + uploads++; + return route.fulfill({ json: { path: [`@data/images/mask-hint-reference-${uploads}.png`] } }); + }); + const renderErrors: string[] = []; + page.on('pageerror', (error) => renderErrors.push(error.message)); + await page.goto(FRONTEND_URL, { waitUntil: 'domcontentloaded' }); + await page.waitForFunction(() => Boolean(window.__MODIFF_E2E__)); + await page.evaluate(() => + window.__MODIFF_E2E__!.setWebsocketConnection({ sid: 'image-mask-regression', isConnected: true }), + ); + await dismissTaskLauncher(page); + await setWorkflowResourceMode(page, 'expert'); + await openNodesLibrary(page); + await page.getByRole('checkbox', { name: 'Show implementation nodes', exact: true }).check(); + const add = async (module: string, action: string) => { + await page.getByLabel('Search nodes', { exact: true }).fill(action); + await page.getByTestId(`node-row-modules-${module}-${action}`).click(); + await expect + .poll(() => + page.evaluate( + ({ module, action }) => + window + .__MODIFF_E2E__!.getState() + .flow.nodes.filter((node) => node.module === `modules.${module}` && node.action === action).length, + { module, action }, + ), + ) + .toBe(1); + return page.evaluate( + ({ module, action }) => + window + .__MODIFF_E2E__!.getState() + .flow.nodes.find((node) => node.module === `modules.${module}` && node.action === action)!.id, + { module, action }, + ); + }; + const sourceId = await add('Image', 'Load'); + const processId = await add('ImageOperations', 'ProcessImage'); + const previewId = await add('Image', 'Preview'); + const node = (id: string) => page.locator(`.react-flow__node[data-id="${id}"]`); + const pixel = Buffer.from( + 'iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mP8/x8AAwMCAO+aOCkAAAAASUVORK5CYII=', + 'base64', + ); + await node(sourceId) + .locator('[data-key="file"] input[type="file"]') + .setInputFiles([ + { name: 'first-reference.png', mimeType: 'image/png', buffer: pixel }, + { name: 'second-reference.png', mimeType: 'image/png', buffer: pixel }, + ]); + await expect + .poll(() => + page.evaluate( + (id) => + window.__MODIFF_E2E__!.exportWorkflowGraph().nodes.find((node) => node.id === id)!.data.params.file!.value, + sourceId, + ), + ) + .toEqual(['@data/images/mask-hint-reference-1.png', '@data/images/mask-hint-reference-2.png']); + await page.getByRole('button', { name: 'Arrange graph', exact: true }).click(); + const wire = async (source: string, output: string, target: string, input: string) => { + const from = node(source).locator(`.react-flow__handle.source[data-handleid="${output}"]`); + const to = node(target).locator(`.react-flow__handle.target[data-handleid="${input}"]`); + await from.click({ trial: true }); + await to.click({ trial: true }); + const a = (await from.boundingBox())!, + b = (await to.boundingBox())!; + await page.mouse.move(a.x + a.width / 2, a.y + a.height / 2); + await page.mouse.down(); + await page.mouse.move(b.x + b.width / 2, b.y + b.height / 2, { steps: 16 }); + await page.mouse.up(); + }; + await wire(sourceId, 'image', processId, 'image'); + await wire(processId, 'output', previewId, 'image'); + await expect.poll(() => page.evaluate(() => window.__MODIFF_E2E__!.getState().flow.edges.length)).toBe(2); + // Palette insertion selects every new node. Clear that selection before + // asking the side inspector to expose one node's controls. + await page.locator('.react-flow__pane').click({ position: { x: 80, y: 70 } }); + const selectedNodes = page.locator('.react-flow__node.selected'); + await expect(selectedNodes).toHaveCount(0); + await node(processId).locator('header').click(); + await expect(selectedNodes).toHaveCount(1); + await expect(selectedNodes).toHaveAttribute('data-id', processId); + const operation = page.getByTestId('studio-custom-graph-inspector').getByLabel('Operation', { exact: true }); + const select = async (task: string) => { + await operation.click(); + await page.getByRole('option', { name: task, exact: true }).click(); + await expect(operation).toHaveText(task); + }; + const run = page.getByTestId('studio-run'); + const fix = page.getByTestId('graph-fix'); + const readiness = page.getByTestId('studio-run-readiness'); + await select('image_stitch'); + await expect(run).toBeEnabled(); + await expect(fix).toBeDisabled(); + await expect(readiness).toHaveText('Ready'); + await select('mask_composite'); + await expect(run).toBeDisabled(); + await expect(readiness).toContainText('needs Mask before running'); + await expect(fix).toBeEnabled(); + await fix.click(); + const dialog = page.getByTestId('graph-fix-dialog'); + await expect(dialog).toContainText('needs Mask'); + await dialog.getByRole('button', { name: 'Close', exact: true }).click(); + await select('image_stitch'); + await expect(run).toBeEnabled(); + await expect(fix).toBeDisabled(); + await expect(readiness).toHaveText('Ready'); + + const graph = () => + page.evaluate(() => { + const exported = window.__MODIFF_E2E__!.exportWorkflowGraph(); + return { + nodes: exported.nodes.map(({ id, data }) => ({ + id, + module: data.module, + action: data.action, + params: data.params, + })), + edges: exported.edges, + }; + }); + const beforeRefresh = await graph(); + const refresh = () => + page.evaluate(async () => { + // Existing fixture convention invokes the same public discovery action as + // Setup/Workflows. It does not inject a catalog or mutate the graph store. + const { useNodesStore } = await import('/src/stores/useNodeStore.ts'); + await useNodesStore.getState().fetchStudioModelCapabilities(); + }); + // An unavailable catalog retains the old conservative repair heuristic. + // Restoring the exact real catalog must clear it without any graph edit. + catalogAvailable = false; + await refresh(); + await expect(fix).toBeEnabled(); + await fix.click(); + await expect(dialog).toContainText('needs Mask'); + await dialog.getByRole('button', { name: 'Close', exact: true }).click(); + catalogAvailable = true; + await refresh(); + await expect(fix).toBeDisabled(); + await expect(run).toBeEnabled(); + await expect(readiness).toHaveText('Ready'); + expect(await graph()).toEqual(beforeRefresh); + + await node(sourceId).locator('[data-testid^="graph-node-action-"]').click({ button: 'right' }); + await page.getByTestId('node-menu-delete').click(); + await expect + .poll(() => + page.evaluate((id) => window.__MODIFF_E2E__!.getState().flow.nodes.some((node) => node.id === id), sourceId), + ) + .toBe(false); + await expect(run).toBeDisabled(); + await expect(readiness).toContainText('needs Image before running'); + await fix.click(); + await expect(dialog).toContainText('needs Image'); + await expect(dialog).not.toContainText('needs Mask'); + expect(graphPosts).toBe(0); + expect(renderErrors).toEqual([]); +}); + let operationStarterFixturesPromise: Promise; async function operationStarterFixtures() { From dfbedbc6188308a2567a4d2b5b32df3eecdcdf9a Mon Sep 17 00:00:00 2001 From: Sourav Das Date: Thu, 22 Oct 2026 05:56:36 +0530 Subject: [PATCH 051/440] fix: preserve newer saved workflows during startup hydration --- docs/modiff-client-architecture.md | 12 + scripts/workflow-backend-sync.test.mjs | 291 +++++++++++ src/stores/useStudioStore.ts | 20 +- src/studio/useWorkflowBackendSync.ts | 12 +- src/studio/workflowHydrationBaseline.ts | 69 +++ tests/e2e/studio-mocked/studio-mocked.spec.ts | 487 +++++++++++++++++- 6 files changed, 887 insertions(+), 4 deletions(-) create mode 100644 src/studio/workflowHydrationBaseline.ts diff --git a/docs/modiff-client-architecture.md b/docs/modiff-client-architecture.md index 6b0512df..29d85d05 100644 --- a/docs/modiff-client-architecture.md +++ b/docs/modiff-client-architecture.md @@ -1196,6 +1196,18 @@ recovery drafts on the backend; explicit Save places the current document in the named workflow library. Neither can be assumed to have succeeded while its persistence request is failing. +Startup hydration captures each originally clean document before its backend +read. A delayed canvas checkpoint may add passive connection flags and an empty +preview declared by the current registry; these alone must not turn the older +browser checkpoint into an authored update over the newer backend document. +The startup merge compares that clean baseline within the same canvas and +revision context. It recognizes only absent/false connection flags and exact +registry-declared empty image previews; every other value, form, intent, layout, +wire and definition stays exact. This comparison does not rewrite persisted +snapshots or apply to own-save acknowledgements. Restored dirty documents, +edits made during the read and active runs retain their existing protections, +and a tab closed during the read is not reopened by its response. + `src/components/StudioPanel.tsx` is a UI composition layer over those modules. It must not become the owner of graph execution, network parsing, or long-lived domain state. `graphNodeControls.ts` resolves inspector fields from ordinary parameters or the same `blockControlParamsV2` diff --git a/scripts/workflow-backend-sync.test.mjs b/scripts/workflow-backend-sync.test.mjs index 62e399d0..7912fe4f 100644 --- a/scripts/workflow-backend-sync.test.mjs +++ b/scripts/workflow-backend-sync.test.mjs @@ -17,6 +17,8 @@ const storage = () => { let server; let studio; let sync; +let flow; +let nodes; before(async () => { globalThis.location = { origin: 'http://127.0.0.1:5191' }; @@ -37,6 +39,8 @@ before(async () => { }); studio = await server.ssrLoadModule('/src/stores/useStudioStore.ts'); sync = await server.ssrLoadModule('/src/studio/useWorkflowBackendSync.ts'); + flow = await server.ssrLoadModule('/src/stores/useFlowStore.ts'); + nodes = await server.ssrLoadModule('/src/stores/useNodeStore.ts'); }); beforeEach(() => { @@ -252,3 +256,290 @@ test('legacy documents stay saved and new explicit saves promote a draft', async globalThis.fetch = originalFetch; } }); + +function startupHydrationFixture({ dirty = false } = {}) { + const tab = workflowTab({ dirty, prompt: 'Original form' }); + tab.snapshot.nodes = [ + { + id: 'hydration-text', + type: 'custom', + position: { x: 10, y: 20 }, + data: { + type: 'custom', + module: 'modules.Primitive', + action: 'TextValue', + label: 'Text', + category: 'Value', + params: { text: { type: 'string', value: 'Old text' }, output: { type: 'string', display: 'output' } }, + }, + }, + { + id: 'hydration-preview', + type: 'custom', + position: { x: 300, y: 20 }, + data: { + type: 'custom', + module: 'modules.Image', + action: 'Preview', + label: 'Preview', + category: 'Image', + params: { image: { type: 'image', display: 'input' } }, + }, + }, + ]; + const registry = { + 'modules.Image.Preview': { + ...tab.snapshot.nodes[1].data, + params: { + ...tab.snapshot.nodes[1].data.params, + selected_image: { type: 'image', display: 'ui_image', value: [] }, + }, + }, + }; + nodes.useNodesStore.setState({ nodesRegistry: registry }); + studio.useStudioStore.setState({ workflowTabs: [], activeWorkflowTabId: null, currentRunContext: null }); + studio.useStudioStore.getState().mergeBackendWorkflow(tab); + const normalized = structuredClone(studio.useStudioStore.getState().workflowTabs[0]); + normalized.dirty = dirty; + flow.useFlowStore.getState().replaceGraph(normalized.snapshot); + studio.useStudioStore.setState({ + workflowTabs: [normalized], + activeWorkflowTabId: normalized.id, + workflowCanvasEpoch: 25, + form: normalized.snapshot.studioForm, + graphBinding: normalized.snapshot.studioGraphBinding, + selectedMode: normalized.snapshot.selectedMode, + activeTemplateId: normalized.snapshot.activeTemplateId, + sourceOutputId: normalized.snapshot.sourceOutputId, + pinnedGraphInputIds: normalized.snapshot.pinnedGraphInputIds, + autoFieldOverrides: normalized.snapshot.autoFieldOverrides, + outputs: [], + previewSlots: {}, + }); + const incoming = structuredClone(normalized); + incoming.backendRevision = 12; + incoming.snapshot.nodes[0].data.params.text.value = 'New backend text'; + return { + baseline: structuredClone(normalized), + incoming, + registry, + options: { hydrationBaseline: { tab: structuredClone(normalized), canvasEpoch: 25, registry } }, + }; +} + +test('startup hydration replaces a clean baseline after only passive registry and connection metadata', () => { + const fixture = startupHydrationFixture(); + studio.useStudioStore.getState().saveActiveWorkflowTab(true); + const checkpoint = studio.useStudioStore.getState().workflowTabs[0]; + assert.equal(checkpoint.dirty, true); + assert.equal(checkpoint.snapshot.nodes[0].data.params.output.isConnected, false); + assert.deepEqual(checkpoint.snapshot.nodes[1].data.params.selected_image, { + type: 'image', + display: 'ui_image', + value: [], + }); + const unchangedBaseline = structuredClone(fixture.options.hydrationBaseline); + + studio.useStudioStore.getState().mergeBackendWorkflow(fixture.incoming, fixture.options); + + assert.equal( + studio.useStudioStore.getState().workflowTabs[0].snapshot.nodes[0].data.params.text.value, + 'New backend text', + ); + assert.equal(flow.useFlowStore.getState().nodes[0].data.params.text.value, 'New backend text'); + assert.equal(studio.useStudioStore.getState().workflowTabs[0].dirty, false); + assert.deepEqual( + fixture.options.hydrationBaseline, + unchangedBaseline, + 'comparison must not rewrite the baseline or registry', + ); +}); + +const pendingHydrationEdits = [ + [ + 'authored text before the checkpoint', + () => flow.useFlowStore.getState().setParamWithHistory('hydration-text', 'text', 'Operator edit'), + ], + ['form', () => studio.useStudioStore.getState().updateForm({ prompt: 'Operator form edit' })], + ['title', () => studio.useStudioStore.getState().renameWorkflowTab('workflow-sync-test', 'Operator title')], + [ + 'intent', + () => + studio.useStudioStore.setState((state) => ({ + workflowTabs: state.workflowTabs.map((tab) => ({ ...tab, intent: 'draft' })), + })), + ], + [ + 'position', + () => + flow.useFlowStore + .getState() + .onNodesChange([{ type: 'position', id: 'hydration-text', position: { x: 99, y: 20 }, dragging: true }]), + ], + ['dimensions', () => flow.useFlowStore.getState().setNodeSize('hydration-text', 500, 400)], + ['viewport', () => flow.useFlowStore.getState().setViewport({ x: 17, y: 23, zoom: 2 })], + ['binding', () => studio.useStudioStore.setState({ graphBinding: { fingerprint: 'operator-binding' } })], + [ + 'topology', + () => + flow.useFlowStore.getState().onEdgesChange([ + { + type: 'add', + item: { + id: 'new-wire', + source: 'hydration-text', + sourceHandle: 'output', + target: 'hydration-preview', + targetHandle: 'image', + }, + }, + ]), + ], + [ + 'node definition', + () => + flow.useFlowStore.setState((state) => ({ + nodes: state.nodes.map((node) => + node.id === 'hydration-text' ? { ...node, data: { ...node.data, action: 'OtherTextValue' } } : node, + ), + })), + ], + ['schema', () => flow.useFlowStore.getState().setParamWithHistory('hydration-text', 'text', 'int', 'type')], + [ + 'true connection state', + () => flow.useFlowStore.getState().setParam('hydration-text', 'output', true, 'isConnected'), + ], + [ + 'wrong-type connection state', + () => flow.useFlowStore.getState().setParam('hydration-text', 'output', 'false', 'isConnected'), + ], + [ + 'nonempty preview', + () => flow.useFlowStore.getState().setParam('hydration-preview', 'selected_image', ['@data/current.png']), + ], + [ + 'extra preview schema', + () => flow.useFlowStore.getState().setParam('hydration-preview', 'selected_image', 'Authored preview', 'label'), + ], +]; + +for (const [label, edit] of pendingHydrationEdits) { + test(`startup hydration preserves a pending ${label} change`, async () => { + const fixture = startupHydrationFixture(); + await edit(); + // Capture the actual live document, including an edit made before the delayed checkpoint. + studio.useStudioStore.getState().saveActiveWorkflowTab(true); + const expected = structuredClone(studio.useStudioStore.getState().workflowTabs[0]); + studio.useStudioStore.getState().mergeBackendWorkflow(fixture.incoming, fixture.options); + const retained = studio.useStudioStore.getState().workflowTabs[0]; + assert.deepEqual(retained.snapshot, expected.snapshot); + assert.equal(retained.title, expected.title); + assert.equal(retained.dirty, true); + assert.equal(retained.backendRevision, 12); + }); +} + +test('startup hydration protects a real live edit even before its checkpoint marks dirty', () => { + const fixture = startupHydrationFixture(); + flow.useFlowStore.getState().setParamWithHistory('hydration-text', 'text', 'Uncheckpointed operator edit'); + assert.equal(studio.useStudioStore.getState().workflowTabs[0].dirty, false); + studio.useStudioStore.getState().mergeBackendWorkflow(fixture.incoming, fixture.options); + assert.equal( + studio.useStudioStore.getState().workflowTabs[0].snapshot.nodes[0].data.params.text.value, + 'Uncheckpointed operator edit', + ); + assert.equal(flow.useFlowStore.getState().nodes[0].data.params.text.value, 'Uncheckpointed operator edit'); +}); + +test('startup hydration never overrides an originally dirty restored document', () => { + const fixture = startupHydrationFixture({ dirty: true }); + studio.useStudioStore.getState().saveActiveWorkflowTab(true); + const expected = structuredClone(studio.useStudioStore.getState().workflowTabs[0].snapshot); + studio.useStudioStore.getState().mergeBackendWorkflow(fixture.incoming, fixture.options); + assert.deepEqual(studio.useStudioStore.getState().workflowTabs[0].snapshot, expected); + assert.equal(studio.useStudioStore.getState().workflowTabs[0].dirty, true); +}); + +for (const [label, change] of [ + [ + 'undeclared field', + (fixture) => { + delete fixture.registry['modules.Image.Preview'].params.selected_image; + }, + ], + [ + 'mismatched registry schema', + (fixture) => { + fixture.registry['modules.Image.Preview'].params.selected_image.type = 'video'; + }, + ], + [ + 'missing registry', + (fixture) => { + fixture.options.hydrationBaseline.registry = {}; + }, + ], + [ + 'own acknowledgement', + (fixture) => { + fixture.options.acknowledgement = true; + }, + ], + [ + 'changed canvas context', + () => { + studio.useStudioStore.setState({ workflowCanvasEpoch: 26 }); + }, + ], + [ + 'changed active tab context', + () => { + studio.useStudioStore.setState({ activeWorkflowTabId: 'another-tab' }); + }, + ], + [ + 'advanced local revision', + () => { + studio.useStudioStore.setState((state) => ({ + workflowTabs: state.workflowTabs.map((tab) => ({ ...tab, backendRevision: 9 })), + })); + }, + ], +]) { + test(`startup hydration does not waive ${label}`, () => { + const fixture = startupHydrationFixture(); + studio.useStudioStore.getState().saveActiveWorkflowTab(true); + change(fixture); + const expected = structuredClone(studio.useStudioStore.getState().workflowTabs[0].snapshot); + studio.useStudioStore.getState().mergeBackendWorkflow(fixture.incoming, fixture.options); + assert.deepEqual(studio.useStudioStore.getState().workflowTabs[0].snapshot, expected); + assert.equal(studio.useStudioStore.getState().workflowTabs[0].dirty, true); + }); +} + +for (const revision of [6, 7]) { + test(`startup hydration does not replace with stale or equal revision ${revision}`, () => { + const fixture = startupHydrationFixture(); + studio.useStudioStore.getState().saveActiveWorkflowTab(true); + fixture.incoming.backendRevision = revision; + const expected = structuredClone(studio.useStudioStore.getState().workflowTabs[0]); + studio.useStudioStore.getState().mergeBackendWorkflow(fixture.incoming, fixture.options); + assert.deepEqual(studio.useStudioStore.getState().workflowTabs[0], expected); + }); +} + +test('startup hydration retains the active run and current preview authority', () => { + const fixture = startupHydrationFixture(); + studio.useStudioStore.getState().saveActiveWorkflowTab(true); + const context = { workflowTabId: fixture.baseline.id, clientRunId: 'active-local-run', status: 'running' }; + const slots = { + current: { workflowTabId: fixture.baseline.id, taskId: 'actual-current-task', value: '@data/current.png' }, + }; + studio.useStudioStore.setState({ currentRunContext: context, previewSlots: slots }); + const expected = structuredClone(studio.useStudioStore.getState().workflowTabs[0].snapshot); + studio.useStudioStore.getState().mergeBackendWorkflow(fixture.incoming, fixture.options); + assert.deepEqual(studio.useStudioStore.getState().workflowTabs[0].snapshot, expected); + assert.equal(studio.useStudioStore.getState().currentRunContext, context); + assert.equal(studio.useStudioStore.getState().previewSlots, slots); + assert.equal(studio.useStudioStore.getState().workflowTabs[0].dirty, true); +}); diff --git a/src/stores/useStudioStore.ts b/src/stores/useStudioStore.ts index 6cfb238d..cbfb5b6a 100644 --- a/src/stores/useStudioStore.ts +++ b/src/stores/useStudioStore.ts @@ -3,6 +3,10 @@ import { create } from 'zustand'; import { persist, createJSONStorage } from 'zustand/middleware'; import { nanoid } from 'nanoid'; import { forgetFreshWorkflowId, markFreshWorkflowId } from '../studio/workflowDocumentOrigin'; +import { + matchesCleanWorkflowHydrationBaseline, + type WorkflowHydrationBaseline, +} from '../studio/workflowHydrationBaseline'; import { applyResolvedExecutionInputs } from '../studio/resolvedExecutionInputs'; import { DEFAULT_STUDIO_FORM, @@ -235,7 +239,10 @@ type StudioActions = { closeWorkflowTab: (id: string) => void; moveWorkflowTab: (id: string, targetId: string, placement: 'before' | 'after') => void; renameWorkflowTab: (id: string, title: string) => void; - mergeBackendWorkflow: (tab: WorkflowTab, options?: { acknowledgement?: boolean }) => void; + mergeBackendWorkflow: ( + tab: WorkflowTab, + options?: { acknowledgement?: boolean; hydrationBaseline?: WorkflowHydrationBaseline }, + ) => void; removeBackendWorkflow: (id: string) => void; createAppModeConfig: (workflowTabId?: string | null) => string | null; updateAppModeConfig: ( @@ -2947,9 +2954,20 @@ export const useStudioStore = create item.id === tab.id)) continue; if (backendTab && !tab.dirty) { markBackendWorkflow(backendTab); - store.mergeBackendWorkflow(backendTab); + current.mergeBackendWorkflow(backendTab, { + hydrationBaseline: cleanBaseline && { + tab: cleanBaseline, + canvasEpoch: store.workflowCanvasEpoch, + registry: useNodesStore.getState().nodesRegistry, + }, + }); continue; } // A new local document, or a synchronous checkpoint newer than the diff --git a/src/studio/workflowHydrationBaseline.ts b/src/studio/workflowHydrationBaseline.ts new file mode 100644 index 00000000..430ce3a5 --- /dev/null +++ b/src/studio/workflowHydrationBaseline.ts @@ -0,0 +1,69 @@ +import type { NodeData } from '../stores/useNodeStore'; +import { isRecord } from './outputContracts'; +import { stableStringify } from './templateExactness'; +import type { WorkflowTab } from './types'; + +export type WorkflowHydrationBaseline = { + tab: WorkflowTab; + canvasEpoch: number; + registry: Readonly>; +}; + +const EMPTY_IMAGE_PREVIEW = stableStringify({ type: 'image', display: 'ui_image', value: [] }); + +/** Comparison only: passive restore metadata never changes the saved document. */ +export function matchesCleanWorkflowHydrationBaseline(local: WorkflowTab, baseline: WorkflowHydrationBaseline) { + const original = baseline.tab; + if (original.dirty || local.snapshot.nodes.length !== original.snapshot.nodes.length) return false; + const originalNodes: unknown[] = []; + const localNodes: unknown[] = []; + for (const [index, node] of local.snapshot.nodes.entries()) { + const old = original.snapshot.nodes[index]; + if (!isRecord(old) || !isRecord(node) || !isRecord(old.data) || !isRecord(node.data)) return false; + if (!isRecord(old.data.params) || !isRecord(node.data.params)) return false; + const oldParams = { ...old.data.params }; + const params = { ...node.data.params }; + const definition = baseline.registry[`${String(node.data.module)}.${String(node.data.action)}`]; + for (const [field, param] of Object.entries(params)) { + if (!Object.prototype.hasOwnProperty.call(oldParams, field)) { + const declared = + isRecord(definition?.params) && Object.prototype.hasOwnProperty.call(definition.params, field) + ? definition.params[field] + : undefined; + // Only the exact empty preview supplied by this node's current registry + // can appear without being an authored document change. + if (stableStringify(param) !== EMPTY_IMAGE_PREVIEW || stableStringify(declared) !== EMPTY_IMAGE_PREVIEW) + return false; + delete params[field]; + continue; + } + const prior = oldParams[field]; + if ( + isRecord(prior) && + isRecord(param) && + (prior.display === 'input' || prior.display === 'output') && + prior.display === param.display + ) { + const oldParam = { ...prior }; + const currentParam = { ...param }; + if (oldParam.isConnected === false) delete oldParam.isConnected; + if (currentParam.isConnected === false) delete currentParam.isConnected; + oldParams[field] = oldParam; + params[field] = currentParam; + } + } + originalNodes.push({ ...old, data: { ...old.data, params: oldParams } }); + localNodes.push({ ...node, data: { ...node.data, params } }); + } + const signature = (tab: WorkflowTab, nodes: unknown[]) => + stableStringify([ + tab.id, + tab.createdAt, + tab.title, + tab.source, + tab.sourceLabel, + tab.intent ?? 'saved', + { ...tab.snapshot, nodes }, + ]); + return signature(original, originalNodes) === signature(local, localNodes); +} diff --git a/tests/e2e/studio-mocked/studio-mocked.spec.ts b/tests/e2e/studio-mocked/studio-mocked.spec.ts index 33d7166c..46bf4307 100644 --- a/tests/e2e/studio-mocked/studio-mocked.spec.ts +++ b/tests/e2e/studio-mocked/studio-mocked.spec.ts @@ -16,12 +16,485 @@ import { STUDIO_TEMPLATES } from '../../../src/studio/templates'; import { REGISTERED_BLOCK_V2_ROUTES } from '../../../src/studio/registeredBlockV2Routes'; import { acknowledgementRequiredForTemplate } from '../../../src/studio/modelUsagePolicies'; import type { NodeData } from '../../../src/stores/useNodeStore'; -import type { StudioExecutionSpec, StudioModelProfile } from '../../../src/studio/types'; +import type { StudioExecutionSpec, StudioModelProfile, WorkflowTabSnapshot } from '../../../src/studio/types'; +import { DEFAULT_STUDIO_FORM } from '../../../src/studio/modelProfiles'; import type { OperationStarter } from '../../../src/workflow/operationAuthoring'; import type { OperationContract } from '../../../src/workflow/operationContracts'; import type { PipelineSupport } from '../../../src/workflow/operationCatalog'; import type { ApiGraphExport } from '../../../src/types/api'; +function restorationSnapshot(text: string, preview: string, x: number): WorkflowTabSnapshot { + return { + nodes: [ + { + id: 'restoration-text', + type: 'custom', + position: { x, y: 80 }, + data: { + ...nodeDef('modules.Primitive', 'TextValue', 'primitive', { + text: { label: 'Text', type: 'string', display: 'text', value: text }, + output: { type: 'string', display: 'output' }, + }), + label: 'Restoration text', + }, + }, + { + id: 'restoration-preview', + type: 'custom', + position: { x: 500, y: 80 }, + data: { + ...nodeDef('modules.Image', 'Preview', 'image', { + image: { type: 'image', display: 'input' }, + preview: { type: 'url', display: 'ui_image', value: [preview] }, + }), + label: 'Restoration preview', + }, + }, + ], + edges: [], + viewport: { x: 0, y: 0, zoom: 1 }, + studioForm: structuredClone(DEFAULT_STUDIO_FORM), + studioGraphBinding: null, + selectedMode: DEFAULT_STUDIO_FORM.mode, + activeTemplateId: null, + sourceOutputId: null, + pinnedGraphInputIds: [], + autoFieldOverrides: {}, + }; +} + +function restorationText(snapshot: WorkflowTabSnapshot) { + const node = snapshot.nodes.find((value) => (value as { id?: string }).id === 'restoration-text') as { + data: { params: { text: { value: string } } }; + }; + return node.data.params.text.value; +} + +async function prepareRestorationStartup(page: Page, workflowId: string) { + await ensureFrontend(); + await installMockRoutes(page); + const older = restorationSnapshot('Previously acknowledged text', '/preview-fixture/older.png', 80); + const newer = restorationSnapshot('Newer backend text', '/preview-fixture/newer.png', 140); + const initial = { + id: workflowId, + title: 'Disposable restoration regression', + intent: 'saved' as const, + source: 'manual' as const, + createdAt: 100, + updatedAt: 800, + revision: 8, + clientId: 'prior-fixture-session', + snapshot: older, + }; + let backend = structuredClone(initial); + const events: Array<{ + method: string; + revision?: number; + snapshot?: WorkflowTabSnapshot; + rejected?: boolean; + requestId?: number; + phase?: number; + stage?: string; + error?: string; + }> = []; + const hydrationRequests = new WeakMap(); + let requestSequence = 0; + let phaseSequence = 0; + let heldGet: { arrived: () => void; released: Promise; phase: number } | undefined; + let rejectNextPut = false; + + // StrictMode can cancel and re-enter startup. Retain each actual request's + // lifecycle rather than mistaking the first intercepted GET for the live one. + page.on('requestfinished', (request) => { + const identity = hydrationRequests.get(request); + if (identity) events.push({ method: 'GET', ...identity, stage: 'finished' }); + }); + page.on('requestfailed', (request) => { + const identity = hydrationRequests.get(request); + if (identity) events.push({ method: 'GET', ...identity, stage: 'failed', error: request.failure()?.errorText }); + }); + + await page.addInitScript( + ({ record }) => { + if (localStorage.getItem('modiff-restoration-fixture-seeded')) return; + localStorage.clear(); + sessionStorage.clear(); + localStorage.setItem('modiff-restoration-fixture-seeded', '1'); + // This is a clean, acknowledged browser checkpoint, not an injected dirty state. + localStorage.setItem( + 'modiff.studio', + JSON.stringify({ + state: { + form: record.snapshot.studioForm, + selectedMode: record.snapshot.selectedMode, + workflowTabs: [{ ...record, backendRevision: record.revision, dirty: false }], + activeWorkflowTabId: record.id, + activeTemplateId: null, + }, + version: 0, + }), + ); + localStorage.setItem( + 'modiff.flow', + JSON.stringify({ + state: { + nodes: record.snapshot.nodes, + edges: record.snapshot.edges, + viewport: record.snapshot.viewport, + }, + version: 1, + }), + ); + }, + { record: initial }, + ); + await page.route('**/nodes**', (route) => + route.fulfill({ + json: { + instance: 'mock', + nodes: { + ...mockRegistry, + 'modules.Primitive.TextValue': nodeDef('modules.Primitive', 'TextValue', 'primitive', { + text: { label: 'Text', type: 'string', display: 'text', value: 'Previously acknowledged text' }, + output: { type: 'string', display: 'output' }, + }), + }, + }, + }), + ); + await page.routeWebSocket('**/ws**', (socket) => { + socket.send( + JSON.stringify({ type: 'welcome', sid: 'restoration-fixture', instance: 'mock', current: null, queued: {} }), + ); + }); + await page.route(`**/workflows/${workflowId}`, async (route) => { + if (route.request().method() === 'GET') { + const response = structuredClone(backend); + const pending = heldGet; + const request = route.request(); + const identity = { requestId: ++requestSequence, phase: pending?.phase, revision: response.revision }; + hydrationRequests.set(request, identity); + events.push({ method: 'GET', ...identity, stage: 'requested' }); + if (pending) { + pending.arrived(); + await pending.released; + } + events.push({ method: 'GET', ...identity, stage: 'fulfillment-started' }); + try { + await route.fulfill({ json: response }); + events.push({ method: 'GET', ...identity, stage: 'fulfilled' }); + } catch (error) { + const failure = request.failure(); + events.push({ method: 'GET', ...identity, stage: 'fulfillment-error', error: String(error) }); + // A request already failed in the browser remains evidence. Its + // still-live replacement must use the same phase-wide barrier. + if (!failure) throw error; + } + return; + } + if (route.request().method() === 'PUT') { + const payload = route.request().postDataJSON() as { snapshot: WorkflowTabSnapshot }; + const rejected = rejectNextPut; + rejectNextPut = false; + events.push({ method: 'PUT', snapshot: structuredClone(payload.snapshot), rejected }); + if (rejected) { + await route.abort('failed'); + return; + } + backend = { ...backend, ...payload, revision: backend.revision + 1, updatedAt: Date.now() }; + await route.fulfill({ json: backend }); + return; + } + await route.fallback(); + }); + const currentUrl = '/preview-fixture/current-output.png'; + const pixel = Buffer.from( + 'iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mP8/x8AAwMCAO+aOCkAAAAASUVORK5CYII=', + 'base64', + ); + await page.route('**/preview-fixture/*.png', (route) => route.fulfill({ body: pixel, contentType: 'image/png' })); + await page.route('**/studio_outputs**', (route) => + route.fulfill({ + json: { + error: false, + revision: 12, + previewSlots: [ + { + schemaVersion: 1, + workflowTabId: workflowId, + nodeId: 'restoration-preview', + fieldKey: 'preview', + currentOutputId: 'restoration-current-output', + status: 'ready', + generation: 1, + attemptIndex: 0, + pendingClientRunId: null, + pendingTaskId: null, + updatedAt: 1200, + }, + ], + outputs: [ + { + id: 'restoration-current-output', + workflowTabId: workflowId, + nodeId: 'restoration-preview', + fieldKey: 'preview', + taskId: 'restoration-current-task', + attemptIndex: 0, + value: ['/preview-fixture/newer.png'], + url: currentUrl, + backendMediaPath: 'data/outputs/restoration-current.png', + displayType: 'image', + mediaItems: [ + { + index: 0, + url: currentUrl, + backendPath: 'data/outputs/restoration-current.png', + displayType: 'image', + width: 1, + height: 1, + taskId: 'restoration-current-task', + attemptIndex: 0, + }, + ], + }, + ], + }, + }), + ); + let graphPosts = 0; + await page.route('**/graph', async (route) => { + if (route.request().method() === 'POST') graphPosts++; + await route.fulfill({ json: { error: true, message: 'Startup fixture must never execute.' } }); + }); + await page.clock.install({ time: new Date('2026-01-01T00:00:00.000Z') }); + await page.clock.pauseAt(new Date('2026-01-01T00:00:01.000Z')); + const read = () => + page.evaluate(async () => { + const { useStudioStore } = await import('/src/stores/useStudioStore.ts'); + const state = useStudioStore.getState(); + const tab = state.workflowTabs.find((candidate) => candidate.id === state.activeWorkflowTabId); + return { + hydrated: state.workflowCanvasHydrated, + tab, + slots: state.previewSlots, + storage: localStorage.getItem('modiff.studio'), + }; + }); + const waitForCanvas = () => expect.poll(async () => (await read()).hydrated).toBe(true); + const assertCurrentPreview = async () => { + const image = page.getByTestId('node-preview-image-restoration-preview-preview-0').locator('img'); + await expect(image).toHaveAttribute('src', /\/preview-fixture\/current-output\.png$/); + await expect + .poll(() => + image.evaluate((element) => ({ + width: (element as HTMLImageElement).naturalWidth, + height: (element as HTMLImageElement).naturalHeight, + })), + ) + .toEqual({ width: 1, height: 1 }); + expect(Object.values((await read()).slots)).toContainEqual( + expect.objectContaining({ + workflowTabId: workflowId, + currentOutputId: 'restoration-current-output', + status: 'ready', + }), + ); + }; + return { + events, + read, + waitForCanvas, + assertCurrentPreview, + getBackend: () => structuredClone(backend), + graphPosts: () => graphPosts, + publishNewer: () => { + backend = { ...backend, revision: 12, snapshot: structuredClone(newer), updatedAt: 1200 }; + }, + rejectNextSave: () => { + rejectNextPut = true; + }, + holdNextHydration: () => { + expect(heldGet).toBeUndefined(); + let arrived!: () => void; + let unlock!: () => void; + const intercepted = new Promise((resolve) => { + arrived = resolve; + }); + const released = new Promise((resolve) => { + unlock = resolve; + }); + const phase = ++phaseSequence; + const start = events.length; + const barrier = { arrived, released, phase }; + heldGet = barrier; + return { + intercepted, + release: () => { + expect(heldGet).toBe(barrier); + events.push({ method: 'GET', phase, stage: 'barrier-released' }); + heldGet = undefined; + unlock(); + }, + assertReleasedOrdering: async () => { + await expect + .poll(() => + events.some( + (event) => event.phase === phase && event.stage === 'finished' && (event.revision ?? 0) >= 12, + ), + ) + .toBe(true); + const releaseIndex = events.findIndex((event) => event.phase === phase && event.stage === 'barrier-released'); + expect(releaseIndex).toBeGreaterThanOrEqual(start); + expect( + events.slice(start, releaseIndex).filter((event) => event.stage === 'requested').length, + ).toBeGreaterThan(0); + // Check every matching GET in the phase window, including any + // untagged request that would otherwise have bypassed the barrier. + expect( + events + .slice(start, releaseIndex) + .filter( + (event) => + event.method === 'GET' && + ['fulfillment-started', 'fulfilled', 'finished'].includes(event.stage ?? ''), + ), + ).toEqual([]); + }, + }; + }, + }; +} + +test('startup hydration keeps a newer saved document across the canvas checkpoint delay', async ({ page }) => { + const fixture = await prepareRestorationStartup(page, 'clean-restoration-regression'); + fixture.publishNewer(); + const pending = fixture.holdNextHydration(); + await page.goto(FRONTEND_URL, { waitUntil: 'domcontentloaded' }); + await pending.intercepted; + await fixture.waitForCanvas(); + const beforeDelay = await fixture.read(); + await page.clock.runFor(400); // The real mounted WorkflowTabsBar owns its 350 ms checkpoint. + const afterDelay = await fixture.read(); + pending.release(); + await expect.poll(async () => (await fixture.read()).tab?.backendRevision ?? 0).toBeGreaterThanOrEqual(12); + await page.clock.runFor(1200); // Allow the real hydration/autosave hooks to settle. + await test.info().attach('restoration-startup-order.json', { + body: JSON.stringify( + { beforeDelay, afterDelay, events: fixture.events, final: await fixture.read(), backend: fixture.getBackend() }, + null, + 2, + ), + contentType: 'application/json', + }); + await pending.assertReleasedOrdering(); + await fixture.assertCurrentPreview(); // Separate durable-current authority from saved snapshot rollback. + expect(restorationText(fixture.getBackend().snapshot)).toBe('Newer backend text'); + expect(restorationText((await fixture.read()).tab!.snapshot)).toBe('Newer backend text'); + expect(fixture.graphPosts()).toBe(0); +}); + +test('startup hydration retains a real unsaved text edit after a failed save', async ({ page }) => { + const fixture = await prepareRestorationStartup(page, 'unsaved-restoration-regression'); + await page.goto(FRONTEND_URL, { waitUntil: 'domcontentloaded' }); + await fixture.waitForCanvas(); + await page.clock.runFor(1200); + await expect.poll(async () => (await fixture.read()).tab?.dirty).toBe(false); + fixture.rejectNextSave(); + const text = page + .locator('.react-flow__node[data-id="restoration-text"]') + .getByRole('textbox', { name: 'Text', exact: true }); + await text.fill('Genuine unsaved operator edit'); + await text.blur(); + await page.clock.runFor(1200); + await expect.poll(() => fixture.events.some((event) => event.method === 'PUT' && event.rejected)).toBe(true); + const unsaved = await fixture.read(); + expect(unsaved.tab?.dirty).toBe(true); // Produced by real UI editing and checkpoint/autosave, never set by the test. + expect(restorationText(unsaved.tab!.snapshot)).toBe('Genuine unsaved operator edit'); + expect(restorationText(fixture.getBackend().snapshot)).toBe('Previously acknowledged text'); + fixture.publishNewer(); + const pending = fixture.holdNextHydration(); + await page.reload({ waitUntil: 'domcontentloaded' }); + await pending.intercepted; + await fixture.waitForCanvas(); + await page.clock.runFor(400); + pending.release(); + await expect.poll(async () => (await fixture.read()).tab?.backendRevision ?? 0).toBeGreaterThanOrEqual(12); + await page.clock.runFor(1200); + await test.info().attach('restoration-unsaved-order.json', { + body: JSON.stringify( + { unsaved, events: fixture.events, final: await fixture.read(), backend: fixture.getBackend() }, + null, + 2, + ), + contentType: 'application/json', + }); + await pending.assertReleasedOrdering(); + await expect(text).toHaveValue('Genuine unsaved operator edit'); + expect(restorationText(fixture.getBackend().snapshot)).toBe('Genuine unsaved operator edit'); + expect(fixture.graphPosts()).toBe(0); +}); + +test('startup hydration keeps a real edit made while its backend read is pending', async ({ page }) => { + const fixture = await prepareRestorationStartup(page, 'pending-edit-restoration-regression'); + fixture.publishNewer(); + const pending = fixture.holdNextHydration(); + await page.goto(FRONTEND_URL, { waitUntil: 'domcontentloaded' }); + await pending.intercepted; + await fixture.waitForCanvas(); + const text = page + .locator('.react-flow__node[data-id="restoration-text"]') + .getByRole('textbox', { name: 'Text', exact: true }); + await text.fill('Operator edit during the pending read'); + await text.blur(); + const beforeRelease = await fixture.read(); + // The real Auto-field blur checkpoints its override synchronously. + expect(beforeRelease.tab?.dirty).toBe(true); + expect(restorationText(beforeRelease.tab!.snapshot)).toBe('Operator edit during the pending read'); + await expect(text).toHaveValue('Operator edit during the pending read'); + pending.release(); + await expect.poll(async () => (await fixture.read()).tab?.backendRevision ?? 0).toBeGreaterThanOrEqual(12); + await page.clock.runFor(1200); + await test.info().attach('restoration-pending-edit-order.json', { + body: JSON.stringify( + { beforeRelease, events: fixture.events, final: await fixture.read(), backend: fixture.getBackend() }, + null, + 2, + ), + contentType: 'application/json', + }); + await pending.assertReleasedOrdering(); + await expect(text).toHaveValue('Operator edit during the pending read'); + expect(restorationText(fixture.getBackend().snapshot)).toBe('Operator edit during the pending read'); + expect(restorationText((await fixture.read()).tab!.snapshot)).toBe('Operator edit during the pending read'); + expect(fixture.graphPosts()).toBe(0); +}); + +test('startup hydration does not reopen a tab closed while its backend read is pending', async ({ page }) => { + const workflowId = 'closed-pending-restoration-regression'; + const fixture = await prepareRestorationStartup(page, workflowId); + fixture.publishNewer(); + const pending = fixture.holdNextHydration(); + await page.goto(FRONTEND_URL, { waitUntil: 'domcontentloaded' }); + await pending.intercepted; + await fixture.waitForCanvas(); + await page.getByRole('button', { name: 'Close Disposable restoration regression', exact: true }).click(); + const openIds = () => page.evaluate(() => window.__MODIFF_E2E__!.getState().studio.workflowTabs.map((tab) => tab.id)); + await expect.poll(openIds).not.toContain(workflowId); + pending.release(); + await page.clock.runFor(1200); + await pending.assertReleasedOrdering(); + await expect.poll(openIds).not.toContain(workflowId); + expect(fixture.events.filter((event) => event.method === 'PUT')).toHaveLength(0); + expect(fixture.getBackend().revision).toBe(12); + expect(restorationText(fixture.getBackend().snapshot)).toBe('Newer backend text'); + expect(fixture.graphPosts()).toBe(0); + await test.info().attach('restoration-closed-pending-order.json', { + body: JSON.stringify({ events: fixture.events, openIds: await openIds(), backend: fixture.getBackend() }, null, 2), + contentType: 'application/json', + }); +}); + test('mounted V2 preview retains both current collection items through hydration and reload', async ({ page }) => { const renderErrors: string[] = []; page.on('pageerror', (error) => renderErrors.push(error.message)); @@ -8795,6 +9268,7 @@ test('model downloads show topbar activity, session progress, and completion not await installMockRoutes(page); await page.goto(FRONTEND_URL); await expect(page.getByText('MoDiff')).toBeVisible(); + await page.waitForFunction(() => typeof window.__MODIFF_E2E__?.sendWebsocketMessage === 'function'); await page.evaluate(() => { window.__MODIFF_E2E__!.sendWebsocketMessage({ @@ -30938,6 +31412,9 @@ test('selected FLUX image adapter policy enables original two-row editing, reord await page.keyboard.press('Control+Shift+z'); await expect.poll(orderedAdapters).toEqual([...unchanged].reverse()); await page.reload({ waitUntil: 'domcontentloaded' }); + // DEV bridge installation is async; painted controls do not establish its readiness. + await page.waitForFunction(() => typeof window.__MODIFF_E2E__?.exportWorkflowGraph === 'function'); + await expect(page.getByTestId('startup-workspace-gate')).toHaveCount(0); await expect(node).toBeVisible(); await expect.poll(orderedAdapters).toEqual([...unchanged].reverse()); expect((await graph()).nodes.map((entry) => entry.data.label).sort()).toEqual([ @@ -31103,6 +31580,9 @@ async function assertSelectedAliasAdapterAuthoring( await page.keyboard.press('Control+z'); await expect.poll(async () => (await snapshot()).ordered).toEqual([...original].reverse()); await page.reload({ waitUntil: 'domcontentloaded' }); + // DEV bridge installation is async; painted controls do not establish its readiness. + await page.waitForFunction(() => typeof window.__MODIFF_E2E__?.exportWorkflowGraph === 'function'); + await expect(page.getByTestId('startup-workspace-gate')).toHaveCount(0); await expect(node).toBeVisible(); await expect(node.getByRole('button', { name: 'Add LoRA', exact: true })).toBeEnabled(); await expect.poll(async () => (await snapshot()).ordered).toEqual([...original].reverse()); @@ -31335,6 +31815,9 @@ test('ordinary numeric fields preserve imported and typed float precision throug await expect(stepped).toHaveValue('0.35'); const saved = await values(); await page.reload({ waitUntil: 'domcontentloaded' }); + // DEV bridge installation is async; painted controls do not establish its readiness. + await page.waitForFunction(() => typeof window.__MODIFF_E2E__?.exportWorkflowGraph === 'function'); + await expect(page.getByTestId('startup-workspace-gate')).toHaveCount(0); await expect(stepped).toHaveValue('0.35'); await expect(padded).toHaveValue('16.0'); expect(await values()).toEqual(saved); @@ -32176,7 +32659,7 @@ test('mocked Gallery opens every ordered collection image before and after histo await expect .poll(() => image.evaluate((element: HTMLImageElement) => ({ - file: new URL(element.currentSrc).searchParams.get('file'), + file: element.currentSrc ? new URL(element.currentSrc).searchParams.get('file') : null, width: element.naturalWidth, height: element.naturalHeight, })), From 8bdf78c43803ff137c89d3d7cc2f6818592ae745 Mon Sep 17 00:00:00 2001 From: Sourav Das Date: Thu, 22 Oct 2026 22:11:23 +0530 Subject: [PATCH 052/440] Preserve structured PUP edits and imported memory policies --- docs/modiff-client-architecture.md | 4 + docs/workflow-authoring-ux.md | 21 +- scripts/ancillary-execution-scope.test.mjs | 6 +- scripts/ancillary-operations.test.mjs | 10 +- scripts/bundle-budget.mjs | 9 +- scripts/prompt-enhancement-authoring.test.mjs | 127 ++++++++++- scripts/prompt-enhancement-preview.test.mjs | 95 +++++++- scripts/prompt-enhancement-summary.test.mjs | 52 ++++- scripts/workflow-document-origin.test.mjs | 113 ++++++++++ src/stores/useStudioStore.ts | 7 +- src/studio/ancillaryOperations.ts | 11 + src/studio/promptEnhancementAuthoring.ts | 20 +- src/studio/promptEnhancementSummary.ts | 107 ++++++--- tests/e2e/studio-mocked/studio-mocked.spec.ts | 16 +- .../prompt-enhancement-legacy-parent.v1.json | 204 ++++++++++++++++++ 15 files changed, 731 insertions(+), 71 deletions(-) create mode 100644 tests/fixtures/prompt-enhancement-legacy-parent.v1.json diff --git a/docs/modiff-client-architecture.md b/docs/modiff-client-architecture.md index 29d85d05..84e0be38 100644 --- a/docs/modiff-client-architecture.md +++ b/docs/modiff-client-architecture.md @@ -1027,6 +1027,10 @@ is the single policy selector. Both storage keys and legacy normalizers remain unchanged. A restored workflow keeps its own resource settings while tabs share the global editing preference. +Import, tab switching and backend hydration preserve the document's normalized +memory policy before resolving an inferred image recipe. Graph-derived summaries +may refresh; they must not replace an explicit Custom policy with Automatic. +Missing or invalid legacy choices and fresh raw-graph inference still default to Automatic. Graph Fix and Run Issues may open Expert tools without changing execution policy. Older clients can read the same workflow fields but still couple their controls; independent behavior requires the matching updated client bundle. diff --git a/docs/workflow-authoring-ux.md b/docs/workflow-authoring-ux.md index 09d54062..1d8510cc 100644 --- a/docs/workflow-authoring-ux.md +++ b/docs/workflow-authoring-ux.md @@ -87,11 +87,22 @@ proposal. Apply uses the ordinary Undo transaction. **Regenerate** reuses the original request after an untouched Apply; **Disable** preserves subsequent user edits. Reload requires a fresh verified Preview before applying a proposal. -Current enhancement authoring permits plain text-to-image and image editing only. -Structured-layout enhancement remains unavailable because its publisher output -does not preserve the required authored region IDs, count and geometry. Client -contract tests do not qualify generated images, browser Apply with a trained model, -model turnover, Auto placement or any additional hardware. +An enhancement declaration may additionally select `preserve-authored-v1` for +structured layouts. Preview may enhance the caption and region descriptions only. +This capability uses a distinct private version-two authoring recipe. Existing +version-one plain recipes keep their exact declarations and bindings; importing +an old document does not silently upgrade it to structured enhancement. +The complete table must map one-to-one to the authored IDs, source image indices, +source/target boxes and actions. A generated ID can be remapped only through a +unique exact geometry/source/action match; ambiguous or changed regions are refused. +Coordinates must map exactly to the publisher's integer grid and are never rounded. +Existing reference bindings are retained, never created by enhancement. Apply +does not grant a new source-region tool: `sourceRegions: false` retains that +boundary while `layoutPolicy` admits preservation of an already authored DTO. +The downstream encoder still checks the current reference binding. Apply +changes the caption/layout pair in one Undo transaction. Native model output, +browser Apply, model turnover, Auto placement and hardware fit require their own +validation; a declaration or client contract test does not establish them. ## Group nodes into a reusable Block diff --git a/scripts/ancillary-execution-scope.test.mjs b/scripts/ancillary-execution-scope.test.mjs index c4855be0..93abd9b6 100644 --- a/scripts/ancillary-execution-scope.test.mjs +++ b/scripts/ancillary-execution-scope.test.mjs @@ -1,9 +1,11 @@ import assert from 'node:assert/strict'; -import { readFileSync } from 'node:fs'; +import { readFileSync, mkdtempSync, rmSync } from 'node:fs'; +import { tmpdir } from 'node:os'; import path from 'node:path'; import { before, after, test } from 'node:test'; import { createServer } from 'vite'; const ROOT = process.cwd(); +const cache = mkdtempSync(path.join(tmpdir(), 'modiff-ancillary-scope-')); const fixture = JSON.parse(readFileSync(path.join(ROOT, 'tests/fixtures/ancillary-authoring.v1.json'), 'utf8')); let server, select, exporter, hashes, runtime, schema, definitions, selectedStarter, previousWindow; before(async () => { @@ -14,6 +16,7 @@ before(async () => { server = await createServer({ root: ROOT, configFile: false, + cacheDir: cache, logLevel: 'silent', appType: 'custom', optimizeDeps: { entries: [], noDiscovery: true }, @@ -37,6 +40,7 @@ before(async () => { }); after(async () => { await server?.close(); + rmSync(cache, { recursive: true, force: true }); if (previousWindow === undefined) delete globalThis.window; else globalThis.window = previousWindow; }); diff --git a/scripts/ancillary-operations.test.mjs b/scripts/ancillary-operations.test.mjs index 2c138636..bcb2e04a 100644 --- a/scripts/ancillary-operations.test.mjs +++ b/scripts/ancillary-operations.test.mjs @@ -1,16 +1,19 @@ import assert from 'node:assert/strict'; -import { readFileSync } from 'node:fs'; +import { readFileSync, mkdtempSync, rmSync } from 'node:fs'; +import { tmpdir } from 'node:os'; import path from 'node:path'; import { before, after, test } from 'node:test'; import { createServer } from 'vite'; const ROOT = process.cwd(); +const cache = mkdtempSync(path.join(tmpdir(), 'modiff-ancillary-operations-')); const fixture = JSON.parse(readFileSync(path.join(ROOT, 'tests/fixtures/ancillary-authoring.v1.json'), 'utf8')); let server, api, parse, hashes, remap; before(async () => { server = await createServer({ root: ROOT, configFile: false, + cacheDir: cache, logLevel: 'silent', appType: 'custom', optimizeDeps: { entries: [], noDiscovery: true }, @@ -21,7 +24,10 @@ before(async () => { hashes = await server.ssrLoadModule('/src/studio/stableHash.ts'); ({ remapOperationAuthoring: remap } = await server.ssrLoadModule('/src/workflow/operationSharedInputs.ts')); }); -after(async () => server?.close()); +after(async () => { + await server?.close(); + rmSync(cache, { recursive: true, force: true }); +}); const raw = (index = 0) => JSON.parse(fixture.parents[index].rawParentJson); function rehash(parent) { for (const child of parent.ancillaryOperations ?? []) { diff --git a/scripts/bundle-budget.mjs b/scripts/bundle-budget.mjs index ac803426..b92ea287 100644 --- a/scripts/bundle-budget.mjs +++ b/scripts/bundle-budget.mjs @@ -1,3 +1,9 @@ +// Lossless structured prompt enhancement preserves authored layout/source bindings +// and validates native ID mapping in deferred code. Measured deferred gzip grows +// from 316480 to 316833 bytes (+353). Add exactly that feature cost to the prior +// 316662-byte aggregate cap, preserving its 182-byte headroom at 317015 bytes. +// Startup, individual chunk caps, dependencies, minifier and lazy boundaries stay +// unchanged; the existing built assets require no rebuild for this sizing check. // Selected Process Image input requirements share the current operation contract // across readiness and graph recovery. The optimized build measures startup/ // largest-startup/deferred gzip bytes 657234/478930/316398, versus the recorded @@ -481,7 +487,8 @@ const MAX_DEFERRED_GZIP_BYTES = 7232 + 22998 + 896 + - 1536; + 1536 + + 353; const STATIC_MODULE_REFERENCE = /\b(?:import(?=\s|["'{*])(?!\s*\()|export(?=\s|["'{*]))[^;]*?["'](\.\/[^"'?]+\.js)(?:\?v=[0-9a-f]{16})?["']/g; diff --git a/scripts/prompt-enhancement-authoring.test.mjs b/scripts/prompt-enhancement-authoring.test.mjs index 23a7271d..5caa1a93 100644 --- a/scripts/prompt-enhancement-authoring.test.mjs +++ b/scripts/prompt-enhancement-authoring.test.mjs @@ -7,8 +7,9 @@ import { createServer } from 'vite'; const declared = JSON.parse(readFileSync('tests/fixtures/ancillary-authoring.v1.json', 'utf8')); const actual = JSON.parse(readFileSync('tests/fixtures/ancillary-starter.v1.json', 'utf8')); +const legacy = JSON.parse(readFileSync('tests/fixtures/prompt-enhancement-legacy-parent.v1.json', 'utf8')); const cache = mkdtempSync(path.join(tmpdir(), 'modiff-enhancement-authoring-')); -let server, authoring, remap, metadata; +let server, authoring, remap, metadata, stable; before(async () => { const storage = new Map(); globalThis.localStorage = { @@ -27,6 +28,7 @@ before(async () => { }); authoring = await server.ssrLoadModule('/src/studio/promptEnhancementAuthoring.ts'); metadata = await server.ssrLoadModule('/src/studio/ancillaryOperations.ts'); + stable = await server.ssrLoadModule('/src/studio/stableHash.ts'); ({ remapOperationAuthoring: remap } = await server.ssrLoadModule('/src/workflow/operationSharedInputs.ts')); }); after(async () => { @@ -38,11 +40,23 @@ after(async () => { // Real constructor-trapped declaration/registry DTOs, with explicitly synthetic // authored scalar controls. This does not qualify the private profile or model. -function setup() { - const parent = JSON.parse(declared.parents[0].rawParentJson); - assert.deepEqual(parent, actual.response.authoring); +function setup(index = 0, preserve = false, capturedParent) { + const parent = capturedParent ? structuredClone(capturedParent) : JSON.parse(declared.parents[index].rawParentJson); + if (index === 0 && !preserve) assert.deepEqual(parent, actual.response.authoring); + if (preserve) { + const child = parent.ancillaryOperations[0]; + parent.id = parent.id.replace(/:v1$/u, ':v2'); + child.id = `${parent.id}:preview`; + child.parent.authoringRecipeId = parent.id; + child.layoutPolicy = 'preserve-authored-v1'; + if (child.verification) child.verification.supportedPromptModes = ['t2i', 'i2i', 't2i_bbox', 'i2i_bbox']; + const { contentHash: _oldChild, ...semanticChild } = child; + child.contentHash = `studio-ancillary-v1-${stable.hashString(stable.stableStringify(semanticChild))}`; + const { contentHash: _oldParent, ...semanticParent } = parent; + parent.contentHash = `studio-authoring-v1-${stable.hashString(stable.stableStringify(semanticParent))}`; + } const registry = { - ...structuredClone(declared.parents[0].registry), + ...structuredClone(declared.parents[index].registry), ...Object.fromEntries( actual.response.nodes.map(({ operation, node }) => [operation.nodeKey, structuredClone(node)]), ), @@ -160,6 +174,25 @@ test('Enable creates only the exact declared branch and leaves raw prompt/layout await assert.rejects(authoring.planEnablePromptEnhancement(next, owner.id, parent, child.id, registry), /disable/i); }); +test('retained plain v1 full declaration supports normal Disable and Enable without hash migration', async () => { + const { graph, parent, child, owner, registry } = setup(1, false, legacy.authoring); + const currentRegistry = JSON.parse( + readFileSync('tests/fixtures/prompt-enhancement-starter.v1.json', 'utf8'), + ).registry; + for (const [, key] of child.roles) registry[key] = structuredClone(currentRegistry[key]); + assert.equal(parent.contentHash, 'studio-authoring-v1-d43668d0'); + assert.equal(child.contentHash, 'studio-ancillary-v1-95fc4619'); + assert.deepEqual(child.verification.supportedPromptModes, ['t2i', 'i2i']); + assert.equal(Object.hasOwn(child, 'layoutPolicy'), false); + const enabled = await authoring.planEnablePromptEnhancement(graph, owner.id, parent, child.id, registry); + const disabled = await authoring.planDisablePromptEnhancement(enabled, owner.id, parent, child.id); + const reenabled = await authoring.planEnablePromptEnhancement(disabled, owner.id, parent, child.id, registry); + const binding = reenabled.nodes.find((node) => node.id === owner.id).data.operationAuthoring.ancillaryBindings[0]; + assert.equal(binding.contentHash, child.contentHash); + assert.equal(binding.parent.authoringContentHash, parent.contentHash); + assert.deepEqual(parent, legacy.authoring); +}); + test('Apply changes caption and layout together; Disable restores only untouched applied values', async () => { const { graph, parent, child, owner, registry } = setup(); const enabled = await authoring.planEnablePromptEnhancement(graph, owner.id, parent, child.id, registry); @@ -187,6 +220,90 @@ test('Apply changes caption and layout together; Disable restores only untouched ); }); +test('declared structured Apply is one Undo pair and refuses stale bindings or geometry without mutation', async () => { + const { graph, parent, child, owner, registry } = setup(1, true); + const layout = { + schemaVersion: 2, + coordinateSpace: 'normalized_xyxy', + regions: [ + { + id: 'object', + description: 'Original object.', + action: 'relocate', + targetBox: [0.2, 0.2, 0.8, 0.8], + source: { referenceIndex: 0, box: [0, 0, 1, 1], expectedReferenceId: `sha256:${'a'.repeat(64)}` }, + }, + ], + }; + owner.data.params.prompt.value = 'Move .'; + owner.data.params.layout_conditioning.value = structuredClone(layout); + const enabled = await authoring.planEnablePromptEnhancement(graph, owner.id, parent, child.id, registry); + const original = { prompt: 'Move .', layout }; + const hash = await authoring.promptEnhancementPairHash(original); + const proposed = structuredClone(original); + proposed.prompt = 'Move the detailed .'; + proposed.layout.regions[0].description = 'A detailed object.'; + const { useFlowStore: flow } = await server.ssrLoadModule('/src/stores/useFlowStore.ts'); + const studio = await server.ssrLoadModule('/src/stores/useStudioStore.ts'); + const transaction = await server.ssrLoadModule('/src/workflow/operationGraphTransaction.ts'); + studio.useStudioStore.setState({ + activeWorkflowTabId: 'structured-unit', + workflowCanvasEpoch: 1, + workflowFormEpoch: 1, + canvasTransition: null, + graphFinalization: null, + }); + flow.getState().replaceGraph(enabled); + flow.getState().resetHistory(); + const current = flow.getState().toObject(); + const next = await authoring.planApplyPromptEnhancement(current, owner.id, parent, child.id, proposed, hash); + transaction.commitOperationGraph( + next, + studio.captureWorkflowOperationContext(), + transaction.operationGraphSignature(current), + 'Apply structured enhancement', + ); + assert.equal(flow.getState().historyPast.length, 1); + const pair = () => { + const current = flow.getState().nodes.find((node) => node.id === owner.id); + return { prompt: current.data.params.prompt.value, layout: current.data.params.layout_conditioning.value }; + }; + assert.deepEqual(pair(), proposed); + flow.getState().undo(); + assert.deepEqual(pair(), original); + flow.getState().redo(); + assert.deepEqual(pair(), proposed); + for (const mutate of [ + (p) => { + p.layout.regions[0].source.expectedReferenceId = `sha256:${'b'.repeat(64)}`; + }, + (p) => { + p.layout.regions[0].targetBox[0] = 0.201; + }, + (p) => { + p.layout.regions[0].action = 'remove'; + p.layout.regions[0].targetBox = null; + }, + ]) { + const changed = structuredClone(proposed), + before = structuredClone(enabled); + mutate(changed); + await assert.rejects( + authoring.planApplyPromptEnhancement(enabled, owner.id, parent, child.id, changed, hash), + /identities|geometry/, + ); + assert.deepEqual(enabled, before); + } + const stale = structuredClone(enabled); + stale.nodes.find( + (node) => node.id === owner.id, + ).data.params.layout_conditioning.value.regions[0].source.expectedReferenceId = `sha256:${'c'.repeat(64)}`; + await assert.rejects( + authoring.planApplyPromptEnhancement(stale, owner.id, parent, child.id, proposed, hash), + /changed/, + ); +}); + test('Enable refuses stale metadata, source layout and absent registry; Disable protects unrelated connections', async () => { const { graph, parent, child, owner, registry } = setup(); const stale = structuredClone(parent); diff --git a/scripts/prompt-enhancement-preview.test.mjs b/scripts/prompt-enhancement-preview.test.mjs index ff384a21..f52d8295 100644 --- a/scripts/prompt-enhancement-preview.test.mjs +++ b/scripts/prompt-enhancement-preview.test.mjs @@ -259,6 +259,8 @@ function syntheticEnvelope(run, warm = false) { }; const prompt = input(child.bindings.request.role, child.bindings.request.promptField), rendered = `Synthetic rendered ${prompt}`; + const authoredLayout = input(child.bindings.request.role, child.bindings.request.layoutField); + const mode = authoredLayout?.regions.length ? 't2i_bbox' : 't2i'; const consumed = { schemaVersion: 1, renderedPrompt: rendered, @@ -268,8 +270,8 @@ function syntheticEnvelope(run, warm = false) { operation: 'enhance_prompt', enhancement_max_new_tokens: controls.max_new_tokens, prompt_adapter_id: verification.adapter.id, - system_prompt_mode: 't2i', - system_prompt_sha256: verification.systemPromptSha256ByMode.t2i, + system_prompt_mode: mode, + system_prompt_sha256: verification.systemPromptSha256ByMode[mode], rendered_prompt_sha256: sha(rendered), rendered_prompt_utf8_bytes: Buffer.byteLength(rendered), rendered_input_ids_sha256: sha('synthetic input token IDs'), @@ -283,23 +285,44 @@ function syntheticEnvelope(run, warm = false) { adapter: verification.adapter, request: { authoredPromptSha256: sha(prompt), - authoredLayoutKind: 'none', - authoredLayoutSha256: null, + authoredLayoutKind: authoredLayout === null ? 'none' : 'object', + authoredLayoutSha256: authoredLayout === null ? null : sha(canonical({ kind: 'object', value: authoredLayout })), controls, consumedInputSha256: sha(canonical(consumed)), }, modelReceipt: receipt, consumedInput: consumed, proposal: { - mode: 't2i', - text: 'Synthetic independently reviewed proposal.', - structuredProposal: null, + mode, + text: mode === 't2i' ? 'Synthetic independently reviewed proposal.' : null, + structuredProposal: + mode === 't2i' + ? null + : { + schemaVersion: 2, + caption: authoredLayout.regions.map((region) => `Enhanced <${region.id}>.`).join(' '), + rawCaption: authoredLayout.regions.map((_region, index) => `Enhanced .`).join(' '), + layoutConditioning: { + ...structuredClone(authoredLayout), + regions: authoredLayout.regions.map((region) => ({ + ...structuredClone(region), + description: 'Enhanced description.', + })), + }, + rawTable: authoredLayout.regions.map((region, index) => ({ + id: `native_${index}`, + bbox: [region.targetBox[1], region.targetBox[0], region.targetBox[3], region.targetBox[2]].map( + (value) => value * 1000, + ), + desc: 'Enhanced description.', + })), + }, finishReason: 'stop', inputTokens: 7, generatedTokens: 3, applyRequired: true, applicationAllowed: true, - layoutOutputValidated: null, + layoutOutputValidated: mode === 't2i' ? null : true, semanticFidelityVerified: false, applicationBlockedReason: null, }, @@ -382,6 +405,62 @@ test('actual metadata remains private; Enable and atomic Apply use normal Undo/R assert.equal(flow.getState().nodes.length, 4); }); +test('declared structured Preview reaches paired Apply and one Undo without changing authored geometry', async () => { + const saved = structuredClone(parent); + const originalSelectionId = fixture.selection.authoringRecipeId; + try { + const { hashString, stableStringify } = await server.ssrLoadModule('/src/studio/stableHash.ts'); + child.layoutPolicy = 'preserve-authored-v1'; + parent.id = parent.id.replace(/:v1$/u, ':v2'); + child.id = `${parent.id}:preview`; + child.parent.authoringRecipeId = parent.id; + fixture.selection.authoringRecipeId = parent.id; + child.verification.supportedPromptModes = ['t2i', 'i2i', 't2i_bbox', 'i2i_bbox']; + child.verification.layoutRequestSuffixSha256 = sha('synthetic declared preservation suffix'); + const { contentHash: _childHash, ...childBody } = child; + child.contentHash = `studio-ancillary-v1-${hashString(stableStringify(childBody))}`; + const { contentHash: _parentHash, ...parentBody } = parent; + parent.contentHash = `studio-authoring-v1-${hashString(stableStringify(parentBody))}`; + const { ownerId } = await setup(); + const layout = { + schemaVersion: 2, + coordinateSpace: 'normalized_xyxy', + regions: [ + { + id: 'authored_object', + description: 'Original description.', + action: 'place', + targetBox: [0.1, 0.2, 0.4, 0.7], + }, + ], + }; + editOwnerField(ownerId, 'prompt', 'A scene with .'); + editOwnerField(ownerId, 'layout_conditioning', layout); + await preview.enablePromptEnhancement(ownerId); + const run = await preview.startPromptEnhancementPreview(ownerId, child.id); + syntheticEnvelope(run); + const proposal = await preview.finishPromptEnhancementPreview(run); + assert.equal(preview.promptEnhancementPreviewDetails(proposal).proposal.structuredProposal.schemaVersion, 2); + const before = structuredClone(flow.getState().toObject()); + flow.getState().resetHistory(); + await preview.applyPromptEnhancementPreview(proposal); + assert.equal(activeOwner(ownerId).data.params.prompt.value, 'Enhanced .'); + assert.deepEqual( + activeOwner(ownerId).data.params.layout_conditioning.value.regions[0].targetBox, + layout.regions[0].targetBox, + ); + assert.equal(flow.getState().historyPast.length, 1); + flow.getState().undo(); + assert.deepEqual(flow.getState().toObject(), before); + } finally { + fixture.selection.authoringRecipeId = originalSelectionId; + for (const key of Object.keys(child)) delete child[key]; + Object.assign(child, saved.ancillaryOperations[0]); + for (const key of Object.keys(parent)) if (key !== 'ancillaryOperations') delete parent[key]; + Object.assign(parent, { ...saved, ancillaryOperations: [child] }); + } +}); + test('normal unavailable metadata and concurrent document/session/task changes refuse before mutation or dispatch', async (t) => { for (const failure of ['unavailable', 'document', 'session', 'task']) await t.test(failure, async () => { diff --git a/scripts/prompt-enhancement-summary.test.mjs b/scripts/prompt-enhancement-summary.test.mjs index d39a3bb7..d3767f77 100644 --- a/scripts/prompt-enhancement-summary.test.mjs +++ b/scripts/prompt-enhancement-summary.test.mjs @@ -2,11 +2,16 @@ import assert from 'node:assert/strict'; import { createHash } from 'node:crypto'; import { after, before, test } from 'node:test'; import { createServer } from 'vite'; +import { mkdtempSync, rmSync } from 'node:fs'; +import { tmpdir } from 'node:os'; +import path from 'node:path'; +const cache = mkdtempSync(path.join(tmpdir(), 'modiff-enhancement-summary-')); let server, contract, canonical; before(async () => { server = await createServer({ configFile: false, + cacheDir: cache, logLevel: 'silent', appType: 'custom', optimizeDeps: { entries: [], noDiscovery: true }, @@ -15,7 +20,10 @@ before(async () => { contract = await server.ssrLoadModule('/src/studio/promptEnhancementSummary.ts'); canonical = (await server.ssrLoadModule('/src/studio/blockSchemaV2.ts')).canonicalBlockStringifyV2; }); -after(async () => server?.close()); +after(async () => { + await server?.close(); + rmSync(cache, { recursive: true, force: true }); +}); const sha = (text) => `sha256:${createHash('sha256').update(text, 'utf8').digest('hex')}`; const copy = (value) => structuredClone(value); @@ -188,6 +196,48 @@ const parse = (value) => contract.parsePromptEnhancementSummary(JSON.stringify(v const verify = ({ value, expected }) => contract.verifyPromptEnhancementSummaryBindings(JSON.stringify(value), expected); +test('structured source proposals preserve authored binding and remap only a unique exact native table', async () => { + const authored = layout(); + authored.regions[0].action = 'relocate'; + authored.regions[0].source = { referenceIndex: 0, box: [0, 0, 1, 1], expectedReferenceId: sha('bound encoding') }; + const input = fixture({ layout: authored, images: 1 }); + const structured = input.value.proposal.structuredProposal; + structured.schemaVersion = 2; + structured.rawCaption = 'Move from .'; + structured.caption = 'Move from .'; + Object.assign(structured.rawTable[0], { id: 'circle_1', from: 'ref_image_0', src_bbox: [0, 0, 1000, 1000] }); + const result = await verify(input); + assert.deepEqual(result.proposal.structuredProposal.layoutConditioning.regions[0].source, authored.regions[0].source); + for (const mutate of [ + (s) => { + s.rawTable[0].src_bbox[0] = 1; + }, + (s) => { + s.rawTable[0].tgt_bbox[0] = 201; + }, + (s) => { + s.caption = s.rawCaption; + }, + (s) => { + s.rawCaption += ' '; + }, + (s) => { + s.layoutConditioning.regions[0].source.expectedReferenceId = sha('stale binding'); + }, + ]) { + const changed = copy(input); + mutate(changed.value.proposal.structuredProposal); + await assert.rejects(verify(changed), /geometry|bijection|mapping|reference|caption/i); + } + const ambiguous = copy(input); + const s = ambiguous.value.proposal.structuredProposal; + s.layoutConditioning.regions.push({ ...copy(s.layoutConditioning.regions[0]), id: 'another' }); + s.rawTable.push({ ...copy(s.rawTable[0]), id: 'circle_2' }); + s.rawCaption += ' '; + s.caption += ' '; + assert.throws(() => parse(ambiguous.value), /bijection/); +}); + test('synthetic text, image and target-layout summaries parse and match external snapshots without granting Apply', async (t) => { for (const settings of [ {}, diff --git a/scripts/workflow-document-origin.test.mjs b/scripts/workflow-document-origin.test.mjs index 4c2200ee..e003e5e7 100644 --- a/scripts/workflow-document-origin.test.mjs +++ b/scripts/workflow-document-origin.test.mjs @@ -60,6 +60,119 @@ function record(t) { return { ...t, revision: 1 }; } +function ordinaryImageSnapshot(module, action, resourceMode) { + const node = (id, module, action, params) => ({ + id, + type: 'custom', + position: { x: 40, y: 80 }, + data: { type: 'custom', module, action, label: action, params }, + }); + const studioForm = { ...defaultForm, resourceMode, prompt: 'Saved form summary' }; + if (resourceMode === undefined) delete studioForm.resourceMode; + return { + nodes: [ + node('source', 'modules.Image', 'Load', { image: { type: 'image', display: 'output', isConnected: true } }), + node('operation', module, action, { + operation: { type: 'string', value: 'image_upscale' }, + images: { type: 'image', display: 'input', isConnected: true }, + output: { type: 'image', display: 'output', isConnected: false }, + }), + node('model', 'modules.ModularDiffusers', 'ModelsLoader', { + model_type: { type: 'string', value: 'SyntheticPipeline' }, + dtype: { type: 'string', value: 'bfloat16' }, + device: { type: 'string', value: 'cpu' }, + offload_mode: { type: 'string', value: 'none' }, + auto_offload: { type: 'boolean', value: false }, + }), + node('prompt', 'modules.ModularDiffusers', 'EncodePrompt', { + prompt: { type: 'string', value: 'Current graph caption' }, + }), + ], + edges: [ + { id: 'source-wire', source: 'source', sourceHandle: 'image', target: 'operation', targetHandle: 'images' }, + ], + viewport: { x: -20, y: 30, zoom: 0.75 }, + studioForm, + selectedMode: studioForm.mode, + studioGraphBinding: null, + activeTemplateId: null, + sourceOutputId: null, + }; +} + +test('ordinary image document normalization preserves memory policy through import, switching and hydration', async (t) => { + const previousFlow = flow.getState(); + const previousStudio = studio.getState(); + const previousFetch = globalThis.fetch; + const wire = (edge) => [edge.id, edge.source, edge.sourceHandle, edge.target, edge.targetHandle]; + try { + globalThis.fetch = async () => assert.fail('Document normalization must not dispatch a request.'); + for (const [module, action] of [ + ['modules.ImageOperations', 'ProcessImage'], + ['modules.DiffusersImage', 'LoadPipeline'], + ['modules.Spandrel', 'Upscaler'], + ]) { + for (const [label, value, expected] of [ + ['Custom', 'expert', 'expert'], + ['Automatic', 'auto', 'auto'], + ['legacy manual', 'manual', 'expert'], + ['absent', undefined, 'auto'], + ['invalid', 'unrecognized-policy', 'auto'], + ]) { + await t.test(`${action}: ${label}`, () => { + studio.setState({ workflowTabs: [], activeWorkflowTabId: null }); + const snapshot = ordinaryImageSnapshot(module, action, value); + const original = structuredClone(snapshot); + const id = studio.getState().createWorkflowTab('Saved image graph', snapshot, 'import'); + const assertDocument = () => { + const saved = tab(id).snapshot; + assert.equal(saved.studioForm.resourceMode, expected); + assert.equal(studio.getState().form.resourceMode, expected); + assert.equal( + saved.studioForm.prompt, + 'Current graph caption', + 'Graph inference still refreshes its summary.', + ); + assert.equal(saved.studioGraphBinding, null); + assert.deepEqual( + saved.nodes.map(({ id, data }) => [id, data.params]), + snapshot.nodes.map(({ id, data }) => [id, data.params]), + ); + assert.deepEqual(saved.edges.map(wire), snapshot.edges.map(wire)); + assert.deepEqual(saved.viewport, snapshot.viewport); + }; + assertDocument(); + studio.getState().createWorkflowTab('Another document'); + studio.getState().switchWorkflowTab(id); + assertDocument(); + studio.setState({ workflowTabs: [], activeWorkflowTabId: id }); + studio.getState().mergeBackendWorkflow({ + id, + title: 'Saved image graph', + source: 'import', + createdAt: 1, + updatedAt: 2, + revision: 1, + snapshot, + }); + assertDocument(); + assert.deepEqual(snapshot, original, 'Normalization cannot mutate the input document.'); + }); + } + } + } finally { + globalThis.fetch = previousFetch; + flow.setState(previousFlow); + studio.setState(previousStudio); + } +}); + +test('fresh ordinary graph inference still defaults to Automatic without a saved memory choice', async () => { + const inference = await server.ssrLoadModule('/src/studio/workflowInference.ts'); + const snapshot = ordinaryImageSnapshot('modules.ImageOperations', 'ProcessImage', 'expert'); + assert.equal(inference.inferStudioFormFromWorkflow(snapshot.nodes, snapshot.studioForm).resourceMode, 'auto'); +}); + test('a genuinely new tab skips its first GET and consumes its marker before the ordinary PUT', async () => { const id = studio.getState().createWorkflowTab(); const t = tab(id); diff --git a/src/stores/useStudioStore.ts b/src/stores/useStudioStore.ts index cbfb5b6a..053c175d 100644 --- a/src/stores/useStudioStore.ts +++ b/src/stores/useStudioStore.ts @@ -623,7 +623,12 @@ function normalizeWorkflowSnapshot( (node.data.module === 'modules.Spandrel' && node.data.action === 'Upscaler'), ); const inferredManagedForm = shouldRecoverManagedIdentity - ? resolveStudioResourceForm(inferStudioFormFromWorkflow(nodes, persistedStudioForm)) + ? resolveStudioResourceForm({ + ...inferStudioFormFromWorkflow(nodes, persistedStudioForm), + // Graph inference refreshes the recipe summary, not the document's + // explicit memory policy. Missing/invalid legacy values already coerce to Auto. + resourceMode: persistedStudioForm.resourceMode, + }) : persistedStudioForm; const adoptedGraph = shouldRecoverManagedIdentity && !ordinaryImageImport diff --git a/src/studio/ancillaryOperations.ts b/src/studio/ancillaryOperations.ts index b6042deb..fd404a58 100644 --- a/src/studio/ancillaryOperations.ts +++ b/src/studio/ancillaryOperations.ts @@ -8,6 +8,7 @@ import { hashString, stableStringify } from './stableHash'; export type AncillaryVerification = { schemaVersion: 1; supportedPromptModes: PromptEnhancementMode[]; + layoutRequestSuffixSha256?: string; runtimeInputs: { role: string; modelField: string; @@ -40,6 +41,7 @@ export type AncillaryOperation = { parent: AncillaryParentIdentity; executionPurpose: 'explicit_preview'; sourceRegions: false; + layoutPolicy?: 'preserve-authored-v1'; verification?: AncillaryVerification; roles: [string, string, number, number][]; edges: [string, string, string, string][]; @@ -87,6 +89,9 @@ export function parseAncillaryOperations(value: unknown, context: AncillaryParen 'initialValues', 'adapter', 'sourceRegions', + ...(raw && typeof raw === 'object' && Object.prototype.hasOwnProperty.call(raw, 'layoutPolicy') + ? ['layoutPolicy'] + : []), ...(raw && typeof raw === 'object' && Object.prototype.hasOwnProperty.call(raw, 'verification') ? ['verification'] : []), @@ -103,6 +108,8 @@ export function parseAncillaryOperations(value: unknown, context: AncillaryParen ) invalidAncillary('unsupported or duplicate declaration.'); ids.add(id); + if (item.layoutPolicy !== undefined && item.layoutPolicy !== 'preserve-authored-v1') + invalidAncillary('unsupported authored-layout preservation policy.'); const selected = parent(item.parent, false); for (const key of PARENT_KEYS) if (selected[key] !== context[key]) invalidAncillary('parent selection differs.'); const roles = new Set(); @@ -245,8 +252,12 @@ export function parseAncillaryVerification(value: unknown, adapter?: Record { @@ -189,14 +191,6 @@ export async function planEnablePromptEnhancement( const { parseLayoutConditioning } = await import('./layoutConditioning'); parseLayoutConditioning(pair.layout); assertDeclaredLayout(child, pair.layout); - if (pair.layout !== null) { - const layout = parseLayoutConditioning(pair.layout); - if ( - !layout || - layout.regions.some((region) => 'source' in region || ('action' in region && region.action !== 'place')) - ) - invalidAncillary('enhancement does not support source-region or removal proposals; keep the raw prompt path.'); - } const { createNodeFromRegistry } = await import('../workflow/nodeFactory'); const children = child.roles.map(([role, key, x, y]) => { const node = createNodeFromRegistry(key, registry, { x: owner.position.x + x, y: owner.position.y + y }); @@ -340,6 +334,7 @@ export async function planApplyPromptEnhancement( const { canonicalBlockStringifyV2 } = await import('./blockSchemaV2'); const authoredLayout = parseLayoutConditioning(original.layout), proposedLayout = parseLayoutConditioning(pair.layout); + assertDeclaredLayout(child, original.layout); const geometry = (layout: typeof authoredLayout) => layout === null ? null @@ -351,10 +346,7 @@ export async function planApplyPromptEnhancement( return copy; }), }; - if ( - proposedLayout?.regions.some((region) => 'source' in region || ('action' in region && region.action !== 'place')) || - canonicalBlockStringifyV2(geometry(authoredLayout)) !== canonicalBlockStringifyV2(geometry(proposedLayout)) - ) + if (canonicalBlockStringifyV2(geometry(authoredLayout)) !== canonicalBlockStringifyV2(geometry(proposedLayout))) invalidAncillary('a prompt enhancement cannot change authored layout identities or geometry.'); owner.data.params[child.bindings.owner.promptField]!.value = pair.prompt; owner.data.params[child.bindings.owner.layoutField]!.value = structuredClone(pair.layout); @@ -440,10 +432,8 @@ export async function planRefreshPromptEnhancementRequest( owner.data.params[child.bindings.owner.layoutField]!.value = structuredClone(pair.layout); } const { parseLayoutConditioning } = await import('./layoutConditioning'); - const layout = parseLayoutConditioning(pair.layout); + parseLayoutConditioning(pair.layout); assertDeclaredLayout(child, pair.layout); - if (layout?.regions.some((region) => 'source' in region || ('action' in region && region.action !== 'place'))) - invalidAncillary('source-region and removal enhancement are unsupported; keep the raw prompt path.'); request.data.params[child.bindings.request.promptField]!.value = pair.prompt; request.data.params[child.bindings.request.layoutField]!.value = structuredClone(pair.layout); delete selection.appliedPairSha256; diff --git a/src/studio/promptEnhancementSummary.ts b/src/studio/promptEnhancementSummary.ts index 9f874e28..38f3e3ba 100644 --- a/src/studio/promptEnhancementSummary.ts +++ b/src/studio/promptEnhancementSummary.ts @@ -81,10 +81,11 @@ export type EnhancementConsumedInput = { }; export type EnhancementTargetRow = | { id: string; bbox: [number, number, number, number]; desc: string } - | { id: string; from: 'target'; src_bbox: null; tgt_bbox: [number, number, number, number]; desc: string }; + | { id: string; from: string; src_bbox: number[] | null; tgt_bbox: number[] | null; desc: string }; export type EnhancementStructuredProposal = { - schemaVersion: 1; + schemaVersion: 1 | 2; caption: string; + rawCaption?: string; layoutConditioning: LayoutConditioning; rawTable: EnhancementTargetRow[]; }; @@ -555,9 +556,8 @@ function targetLayout(value: unknown): LayoutConditioning { const parsed = parseLayoutConditioning(value); if (!parsed || parsed.regions.length === 0) invalid('expected authored target regions.'); for (const region of parsed.regions) { - if (region.source || (region.action !== undefined && region.action !== 'place') || !region.targetBox) - invalid('source-region proposals are unsupported.'); - upstreamBox(region.targetBox); + if (region.targetBox) upstreamBox(region.targetBox); + if (region.source) upstreamBox(region.source.box); } return parsed; } @@ -567,47 +567,97 @@ function parseStructured( mode: PromptEnhancementMode, imageCount: number, ): EnhancementStructuredProposal { - const item = object(value, ['schemaVersion', 'caption', 'layoutConditioning', 'rawTable']); - if (item.schemaVersion !== 1) invalid('unsupported structured proposal.'); + const version = value && typeof value === 'object' ? (value as Record).schemaVersion : null; + const item = object(value, [ + 'schemaVersion', + 'caption', + 'layoutConditioning', + 'rawTable', + ...(version === 2 ? ['rawCaption'] : []), + ]); + if (item.schemaVersion !== 1 && item.schemaVersion !== 2) invalid('unsupported structured proposal.'); const caption = text(item.caption, 262144, 131072, true); - if (caption.includes('```') || JSON.stringify(item.rawTable).includes('```')) + const rawCaption = item.schemaVersion === 2 ? text(item.rawCaption, 262144, 131072, true) : caption; + if (caption.includes('```') || rawCaption.includes('```') || JSON.stringify(item.rawTable).includes('```')) invalid('structured output contains a Markdown fence.'); const layout = targetLayout(item.layoutConditioning); + if (item.schemaVersion === 1 && layout.regions.some((region) => region.source)) + invalid('source preservation requires a version two native-caption proposal.'); const rows = list(item.rawTable, 32); if (rows.length !== layout.regions.length) invalid('target table differs from layout region count.'); - const seen = new Set(); + const seen = new Set(), + assigned = new Set(), + mapping = new Map(); + const box = (value: unknown) => { + const result = list(value, 4).map((coordinate) => integer(coordinate, 0, 1000)); + if (result.length !== 4 || result[0]! >= result[2]! || result[1]! >= result[3]!) invalid('invalid table box.'); + return result; + }; + const signature = (region: LayoutConditioning['regions'][number]) => + canonicalBlockStringifyV2([ + region.source?.referenceIndex ?? null, + region.source ? upstreamBox(region.source.box) : null, + region.targetBox ? upstreamBox(region.targetBox) : null, + region.action ?? (region.source ? 'relocate' : 'place'), + ]); for (const raw of rows) { const row = object( raw, mode === 't2i_bbox' ? ['id', 'bbox', 'desc'] : ['id', 'from', 'src_bbox', 'tgt_bbox', 'desc'], ); - if (typeof row.id !== 'string' || seen.has(row.id)) invalid('duplicate or unknown target row.'); - const region = layout.regions.find((region) => region.id === row.id); - if (!region || row.desc !== region.description) invalid('table description or ID differs from layout.'); - text(row.desc, 16384, 4096, true); - seen.add(row.id); - if (mode === 'i2i_bbox' && (row.from !== 'target' || row.src_bbox !== null)) - invalid('source table mapping is unsupported.'); - const box = list(mode === 't2i_bbox' ? row.bbox : row.tgt_bbox, 4).map((value) => integer(value, 0, 1000)); if ( - box.length !== 4 || - box[0]! >= box[2]! || - box[1]! >= box[3]! || - canonicalBlockStringifyV2(box) !== canonicalBlockStringifyV2(upstreamBox(region.targetBox!)) + typeof row.id !== 'string' || + !/^[A-Za-z][A-Za-z0-9_]{0,63}$/u.test(row.id) || + /^ref_image_[0-9]+$/u.test(row.id) || + seen.has(row.id) ) - invalid('target table geometry differs from layout.'); + invalid('duplicate or unknown target row.'); + text(row.desc, 16384, 4096, true); + seen.add(row.id); + let expected: unknown[]; + if (mode === 't2i_bbox') expected = [null, null, box(row.bbox), 'place']; + else { + const reference = typeof row.from === 'string' ? /^ref_image_(0|[1-9][0-9]?)$/u.exec(row.from) : null; + const index = reference ? Number(reference[1]) : null; + if (!(row.from === 'target' && row.src_bbox === null) && !(index !== null && index < imageCount)) + invalid('source table mapping differs from actual supplied images.'); + const source = index === null ? null : box(row.src_bbox); + const target = row.tgt_bbox === null ? null : box(row.tgt_bbox); + if (index === null && target === null) invalid('placement requires target geometry.'); + expected = [index, source, target, index === null ? 'place' : target === null ? 'remove' : 'relocate']; + } + let candidates = layout.regions.filter((region) => signature(region) === canonicalBlockStringifyV2(expected)); + if (layout.regions.some((region) => region.id === row.id)) + candidates = candidates.filter((region) => region.id === row.id); + const region = candidates[0]; + if (candidates.length !== 1 || !region || assigned.has(region.id)) + invalid('table has no unambiguous authored-region bijection.'); + if (row.desc !== region.description) invalid('table description differs from layout.'); + assigned.add(region.id); + mapping.set(row.id, region.id); } - const tags = [...caption.matchAll(/<([^<>]*)>/gu)].map((match) => match[1]!); - if (/[<>]/u.test(caption.replace(/<[^<>]*>/gu, ''))) invalid('caption has malformed tags.'); - for (const region of layout.regions) - if (tags.filter((tag) => tag === region.id).length !== 1) invalid('caption must cite each target exactly once.'); + const tags = [...rawCaption.matchAll(/<([^<>]*)>/gu)].map((match) => match[1]!); + if (/[<>]/u.test(rawCaption.replace(/<[^<>]*>/gu, ''))) invalid('caption has malformed tags.'); + for (const identity of mapping.keys()) + if (tags.filter((tag) => tag === identity).length !== 1) invalid('caption must cite each target exactly once.'); for (const tag of tags) { - if (layout.regions.some((region) => region.id === tag)) continue; + if (mapping.has(tag)) continue; const reference = /^ref_image_(0|[1-9][0-9]?)$/u.exec(tag); if (!reference || Number(reference[1]) >= imageCount) invalid('caption cites an unknown reference.'); } + if ( + rawCaption.replace(/<([^<>]*)>/gu, (_match, identity: string) => `<${mapping.get(identity) ?? identity}>`) !== + caption + ) + invalid('caption does not preserve the exact native-to-authored ID mapping.'); jsonBudget(item, 262144); - return { schemaVersion: 1, caption, layoutConditioning: layout, rawTable: rows as EnhancementTargetRow[] }; + return { + schemaVersion: item.schemaVersion, + caption, + ...(item.schemaVersion === 2 ? { rawCaption } : {}), + layoutConditioning: layout, + rawTable: rows as EnhancementTargetRow[], + }; } function parseProposal(value: unknown, consumed: EnhancementConsumedInput, controls: PromptEnhancementControls) { @@ -824,7 +874,6 @@ export async function verifyPromptEnhancementSummaryBindings( if (prompt.includes('\0')) invalid('authored prompt contains NUL.'); if ((await sha256(prompt)) !== summary.request.authoredPromptSha256) invalid('authored prompt digest differs.'); const layout = parseLayoutConditioning(expected.authoredLayout); - if (layout?.regions.some((region) => region.source)) invalid('source-region enhancement is unsupported.'); const layoutKind = layout === null ? 'none' : 'object'; if (summary.request.authoredLayoutKind !== layoutKind) invalid('authored layout representation differs.'); const layoutDigest = diff --git a/tests/e2e/studio-mocked/studio-mocked.spec.ts b/tests/e2e/studio-mocked/studio-mocked.spec.ts index 46bf4307..c2b9ca0e 100644 --- a/tests/e2e/studio-mocked/studio-mocked.spec.ts +++ b/tests/e2e/studio-mocked/studio-mocked.spec.ts @@ -399,7 +399,13 @@ test('startup hydration retains a real unsaved text edit after a failed save', a await page.goto(FRONTEND_URL, { waitUntil: 'domcontentloaded' }); await fixture.waitForCanvas(); await page.clock.runFor(1200); - await expect.poll(async () => (await fixture.read()).tab?.dirty).toBe(false); + // The clock stays paused; late startup publications can schedule another autosave. + await expect + .poll(async () => { + await page.clock.runFor(500); + return (await fixture.read()).tab?.dirty; + }) + .toBe(false); fixture.rejectNextSave(); const text = page .locator('.react-flow__node[data-id="restoration-text"]') @@ -31531,7 +31537,8 @@ async function assertSelectedAliasAdapterAuthoring( }); expect(baseline.guiderEnabled).toBe(selection.guiderEnabled); expect(Number(baseline.embeddedGuidance)).toBe(selection.embeddedGuidance); - await expect(node.getByRole('button', { name: 'Add LoRA', exact: true })).toBeEnabled(); + const addLora = node.getByRole('button', { name: 'Add LoRA', exact: true }); + await expect(addLora).toBeEnabled(); const retainedAdapters = await page.evaluate(async () => { const { STUDIO_TEMPLATES } = await import('/src/studio/templates.ts'); const settings = STUDIO_TEMPLATES.find((template) => template.id === 'flux_lora_cinematic_octane_3d')! @@ -31541,8 +31548,11 @@ async function assertSelectedAliasAdapterAuthoring( return [settings, ...settings.additionalAdapters!]; }); expect(retainedAdapters).toHaveLength(2); + // Arrange and visibility alone do not establish a hittable canvas target. + await page.getByRole('button', { name: 'Arrange graph', exact: true }).click(); + await addLora.click({ trial: true, timeout: 15_000 }); for (const [index, adapter] of retainedAdapters.entries()) { - await node.getByRole('button', { name: 'Add LoRA', exact: true }).click(); + await addLora.click(); const dialog = page.getByRole('dialog', { name: 'Add LoRA', exact: true }); await dialog.getByLabel('Model', { exact: true }).fill(adapter.model!.value); await dialog.getByLabel('Revision', { exact: true }).fill(adapter.model!.revision!); diff --git a/tests/fixtures/prompt-enhancement-legacy-parent.v1.json b/tests/fixtures/prompt-enhancement-legacy-parent.v1.json new file mode 100644 index 00000000..9c32bb6e --- /dev/null +++ b/tests/fixtures/prompt-enhancement-legacy-parent.v1.json @@ -0,0 +1,204 @@ +{ + "schemaVersion": 1, + "scope": "Retained ordinary metadata response, not model or hardware qualification.", + "sourceCommit": "bc65c380988ea28be51751f3ef5d415e4316973f", + "retainedResponseSha256": "97cd283227633ef792de93c36d10792db6143b256b884743c1a724b0ffe020f0", + "authoring": { + "schemaVersion": 1, + "canonicalizationVersion": 1, + "id": "flux3-klein:edit-image:prompt-preview-authoring:v1", + "baseSpecId": "flux3-klein:modular:edit-image:v1", + "baseSpecContentHash": "studio-spec-v1-3eb193af", + "executionProfileIds": ["flux3-klein:modular"], + "roles": [ + ["models", "modules.ModularDiffusers.ModelsLoader", -720, -80], + ["prompt", "modules.ModularDiffusers.EncodePrompt", -360, -240], + ["denoise", "modules.ModularDiffusers.Denoise", 80, -80], + ["decode", "modules.ModularDiffusers.DecodeLatents", 440, -80], + ["preview", "modules.Image.Preview", 800, -80], + ["loadImage", "modules.Image.Load", -720, 320], + ["imageEncode", "modules.ModularDiffusers.ImageEncode", -360, 320] + ], + "edges": [ + ["models", "text_encoders", "prompt", "text_encoders"], + ["models", "unet_out", "denoise", "unet"], + ["models", "scheduler", "denoise", "scheduler"], + ["models", "vae_out", "decode", "vae"], + ["prompt", "embeddings", "denoise", "embeddings"], + ["denoise", "latents", "decode", "latents"], + ["decode", "images", "preview", "image"], + ["models", "vae_out", "imageEncode", "vae"], + ["loadImage", "image", "imageEncode", "image"], + ["imageEncode", "image_cond_latents", "denoise", "image_cond_latents"], + ["imageEncode", "reference_binding", "prompt", "reference_binding"], + ["imageEncode", "reference_binding", "denoise", "reference_binding"] + ], + "bindings": [ + ["models", "model_type", "pipelineClass"], + ["models", "repo_id", "artifact"], + ["models", "revision", "defaultRevision"], + ["models", "dtype", "dtype"], + ["models", "device", "device"], + ["models", "auto_offload", "autoOffload"], + ["models", "offload_mode", "offloadMode"], + ["models", "trust_remote_code", "false"], + ["prompt", "prompt", "prompt"], + ["denoise", "width", "width"], + ["denoise", "height", "height"], + ["denoise", "seed", "seed"], + ["denoise", "num_inference_steps", "steps"], + ["prompt", "max_sequence_length", "maxSequenceLength"], + ["models", "weight_format", "weightFormat"], + ["loadImage", "file", "referenceImages"], + ["loadImage", "alpha_channel", "alphaMode"] + ], + "initialValues": [], + "ancillaryOperations": [ + { + "schemaVersion": 1, + "id": "flux3-klein:edit-image:prompt-preview-authoring:v1:preview", + "parent": { + "authoringRecipeId": "flux3-klein:edit-image:prompt-preview-authoring:v1", + "baseSpecId": "flux3-klein:modular:edit-image:v1", + "baseSpecContentHash": "studio-spec-v1-3eb193af", + "executionProfileId": "flux3-klein:modular", + "pipelineClass": "Flux3DistilledModularPipeline", + "task": "edit_image" + }, + "executionPurpose": "explicit_preview", + "roles": [ + ["provider", "modules.HuggingFaceTransformers.LoadImageTextToTextModel", -720, -400], + ["proposal", "modules.HuggingFaceTransformers.GenerateImageVideoText", -360, -400] + ], + "edges": [["provider", "model", "proposal", "model"]], + "bindings": { + "owner": { + "role": "prompt", + "promptField": "prompt", + "layoutField": "layout_conditioning", + "referenceSource": { + "role": "loadImage", + "field": "image" + } + }, + "request": { + "role": "proposal", + "promptField": "prompt", + "layoutField": "layout_conditioning", + "imagesField": "images" + }, + "output": { + "role": "proposal", + "field": "proposal_summary" + } + }, + "initialValues": [ + [ + "provider", + "model_id", + { + "source": "hub", + "value": "black-forest-labs/flux-3-image-klein-pup" + } + ], + ["provider", "revision", "3f3edb52b2c55de0d49feab28598b68f7f8e4830"], + ["proposal", "operation", "enhance_prompt"] + ], + "fieldOverrides": [ + [ + "proposal", + "enhancement_max_new_tokens", + { + "hidden": false + } + ], + [ + "proposal", + "max_new_tokens", + { + "hidden": true + } + ] + ], + "adapter": { + "id": "transformers-prompt-enhancement-v1", + "declarationSha256": "sha256:2a3d4685988b418115008bbb95fb3e948097580c0bedd2940ea3fe1e40254dc2" + }, + "verification": { + "schemaVersion": 1, + "adapter": { + "id": "transformers-prompt-enhancement-v1", + "declarationSha256": "sha256:2a3d4685988b418115008bbb95fb3e948097580c0bedd2940ea3fe1e40254dc2" + }, + "runtimeInputs": { + "role": "provider", + "modelField": "model_id", + "revisionField": "revision", + "dtypeField": "dtype", + "deviceField": "device", + "quantizationField": "quantization_mode" + }, + "requestInputs": { + "role": "proposal", + "operationField": "operation", + "maxNewTokensField": "enhancement_max_new_tokens", + "minNewTokensField": "min_new_tokens", + "maxInputTokensField": "max_input_tokens", + "maxImagePixelsField": "max_image_pixels" + }, + "supportedPromptModes": ["t2i", "i2i"], + "systemPromptsSha256": "sha256:b5da3ed8bc04ab59dbdb747930f7dbff847e868903fed8028f85ee1a4ac82fb4", + "systemPromptSha256ByMode": { + "t2i": "8b235a421bce2213d11ada01f5a1244443dd72303ffbb4cc9e5a0d8b0de5ab6f", + "i2i": "95cec384d5b6d341caa9fb3f2c7ca45ee80c2364b3a95d4044aebf976f6dd3bf", + "t2i_bbox": "5f513d8ce5838732919f9e645507aa20ff373e88bf93132c768e063c9db3151f", + "i2i_bbox": "9ad10f947e401337cf155cac0518cc428159ef16f2f029f48aae2aaab8380a5e" + }, + "chatTemplateSha256": "sha256:a4aee8afcf2e0711942cf848899be66016f8d14a889ff9ede07bca099c28f715", + "modelReceipt": { + "schemaVersion": 1, + "library": "transformers", + "task": "image-video-to-text", + "source": { + "kind": "hub", + "repository": "black-forest-labs/flux-3-image-klein-pup", + "revision": "3f3edb52b2c55de0d49feab28598b68f7f8e4830" + }, + "loader": { + "preprocessorAutoClass": "AutoProcessor", + "modelAutoClass": "AutoModelForImageTextToText" + }, + "security": { + "localFilesOnly": true, + "trustRemoteCode": false, + "safetensorsOnly": true, + "hostedInference": false + }, + "runtime": { + "transformersVersion": "5.18.0", + "preprocessorClass": "Qwen3VLProcessor", + "modelClass": "Qwen3_5ForConditionalGeneration", + "modelType": "qwen3_5", + "architectures": ["Qwen3_5ForConditionalGeneration"] + } + }, + "quantizationRecipes": [ + { + "mode": "none" + }, + { + "mode": "bnb_4bit", + "quantType": "nf4", + "doubleQuant": true, + "computeDtype": "bfloat16", + "skipModules": ["lm_head", "model.visual"] + } + ] + }, + "sourceRegions": false, + "contentHash": "studio-ancillary-v1-95fc4619" + } + ], + "contentHash": "studio-authoring-v1-d43668d0" + } +} From 03b6e7f7d2c6f746ac5d6d79726490c6d5a98e6b Mon Sep 17 00:00:00 2001 From: Sourav Das Date: Fri, 23 Oct 2026 00:15:52 +0530 Subject: [PATCH 053/440] Cover explicit FP32 text-only prompt enhancement contracts --- scripts/ancillary-execution-scope.test.mjs | 72 +- .../ancillary-fp32-t2i-authoring.v1.json | 1561 +++++++++++++++++ 2 files changed, 1631 insertions(+), 2 deletions(-) create mode 100644 tests/fixtures/ancillary-fp32-t2i-authoring.v1.json diff --git a/scripts/ancillary-execution-scope.test.mjs b/scripts/ancillary-execution-scope.test.mjs index 93abd9b6..2df69212 100644 --- a/scripts/ancillary-execution-scope.test.mjs +++ b/scripts/ancillary-execution-scope.test.mjs @@ -7,6 +7,9 @@ import { createServer } from 'vite'; const ROOT = process.cwd(); const cache = mkdtempSync(path.join(tmpdir(), 'modiff-ancillary-scope-')); const fixture = JSON.parse(readFileSync(path.join(ROOT, 'tests/fixtures/ancillary-authoring.v1.json'), 'utf8')); +const fp32Fixture = JSON.parse( + readFileSync(path.join(ROOT, 'tests/fixtures/ancillary-fp32-t2i-authoring.v1.json'), 'utf8'), +); let server, select, exporter, hashes, runtime, schema, definitions, selectedStarter, previousWindow; before(async () => { previousWindow = globalThis.window; @@ -44,8 +47,8 @@ after(async () => { if (previousWindow === undefined) delete globalThis.window; else globalThis.window = previousWindow; }); -function setup(index = 0) { - const row = fixture.parents[index], +function setup(index = 0, document = fixture) { + const row = document.parents[index], parent = JSON.parse(row.rawParentJson), contract = parent.ancillaryOperations[0], registry = structuredClone(row.registry); @@ -153,6 +156,71 @@ for (let index = 0; index < 4; index++) { assert.equal(JSON.stringify(f), before); }); } +test('actual FP32 T2I declaration selects only its provider Preview and preserves the ordinary image route', () => { + const f = setup(0, fp32Fixture), + before = JSON.stringify(f), + runtime = f.contract.verification.runtimeInputs, + request = f.contract.verification.requestInputs; + assert.equal(f.parent.id, 'flux3-klein:text-to-image:prompt-preview-fp32-authoring:v1'); + assert.equal(f.contract.bindings.owner.referenceSource, null); + assert.equal(f.parent.roles.length, 5); + assert.equal(f.nodes.length, 7); + assert.equal(f.edges.length, 8); + const selected = (role, field) => + f.contract.initialValues.find(([actualRole, actualField]) => actualRole === role && actualField === field)?.[2]; + assert.equal(selected(runtime.role, runtime.dtypeField), 'float32'); + assert.equal(selected(runtime.role, runtime.deviceField), 'cuda:0'); + assert.equal(selected(runtime.role, runtime.quantizationField), 'none'); + assert.equal(selected(request.role, request.maxInputTokensField), 4096); + const ordinary = run(f), + preview = run(f, 'explicit_preview'); + assert.deepEqual(ids(ordinary.nodeIds), ids(Object.values(f.binding.parentRoleNodes))); + assert.deepEqual(ids(preview.nodeIds), ids(Object.values(f.binding.roleNodes))); + assert.deepEqual(Object.keys(api(f, ordinary.targetNodeIds).nodes).sort(), ids(ordinary.nodeIds)); + const previewApi = api(f, preview.targetNodeIds); + assert.deepEqual(Object.keys(previewApi.nodes).sort(), ids(preview.nodeIds)); + const images = previewApi.nodes[f.request.id].params[f.contract.bindings.request.imagesField]; + assert.equal(images?.sourceId, undefined); + assert.equal(images?.value ?? null, null); + assert.equal(JSON.stringify(f), before); +}); + +for (const [name, field, value] of [ + ['dtype', 'dtypeField', 'bfloat16'], + ['device', 'deviceField', 'cpu'], + ['quantization', 'quantizationField', 'bnb_4bit'], +]) + test(`actual FP32 T2I Preview refuses a changed ${name} literal`, () => { + const f = setup(0, fp32Fixture), + runtime = f.contract.verification.runtimeInputs, + provider = f.nodes.find((node) => node.id === f.binding.roleNodes[runtime.role]); + provider.data.params[runtime[field]].value = value; + assert.throws(() => run(f, 'explicit_preview'), /declared input selection changed/u); + assert.deepEqual(ids(run(f).nodeIds), ids(Object.values(f.binding.parentRoleNodes))); + }); + +test('actual FP32 T2I Preview refuses a changed input-token bound', () => { + const f = setup(0, fp32Fixture), + request = f.contract.verification.requestInputs; + f.request.data.params[request.maxInputTokensField].value = 32768; + assert.throws(() => run(f, 'explicit_preview'), /declared input selection changed/u); +}); + +test('current legacy T2I declaration retains its NF4 recipe and refuses FP32 substitution', () => { + const f = setup(0, { + parents: [{ ...fp32Fixture.currentLegacyParent, registry: fp32Fixture.parents[0].registry }], + }), + runtime = f.contract.verification.runtimeInputs, + provider = f.nodes.find((node) => node.id === f.binding.roleNodes[runtime.role]); + assert.equal(f.parent.id, 'flux3-klein:text-to-image:prompt-preview-authoring:v1'); + assert.equal(provider.data.params[runtime.dtypeField].value, 'bfloat16'); + assert.equal(provider.data.params[runtime.quantizationField].value, 'bnb_4bit'); + assert.deepEqual(ids(run(f, 'explicit_preview').nodeIds), ids(Object.values(f.binding.roleNodes))); + provider.data.params[runtime.dtypeField].value = 'float32'; + provider.data.params[runtime.quantizationField].value = 'none'; + assert.throws(() => run(f, 'explicit_preview'), /declared input selection changed/u); +}); + test('unclaimed graphs retain the original all-sinks export and leaf target semantics', () => { const f = setup(); delete f.owner.data.operationAuthoring; diff --git a/tests/fixtures/ancillary-fp32-t2i-authoring.v1.json b/tests/fixtures/ancillary-fp32-t2i-authoring.v1.json new file mode 100644 index 00000000..002a51ca --- /dev/null +++ b/tests/fixtures/ancillary-fp32-t2i-authoring.v1.json @@ -0,0 +1,1561 @@ +{ + "schemaVersion": 1, + "proofScope": "Current static backend parent DTOs and registered provider/proposal parameters under constructor, factory and activation traps. Other unchanged registered roles retain the existing actual fixture. No model, browser, hardware or served-source qualification.", + "parents": [ + { + "selection": { + "authoringRecipeId": "flux3-klein:text-to-image:prompt-preview-fp32-authoring:v1", + "executionProfileId": "flux3-klein:modular", + "pipelineClass": "Flux3DistilledModularPipeline", + "task": "text_to_image" + }, + "rawParentJson": "{\n \"schemaVersion\": 1,\n \"canonicalizationVersion\": 1,\n \"id\": \"flux3-klein:text-to-image:prompt-preview-fp32-authoring:v1\",\n \"baseSpecId\": \"flux3-klein:modular:text-to-image:v1\",\n \"baseSpecContentHash\": \"studio-spec-v1-6697a7f5\",\n \"executionProfileIds\": [\n \"flux3-klein:modular\"\n ],\n \"roles\": [\n [\n \"models\",\n \"modules.ModularDiffusers.ModelsLoader\",\n -720,\n -80\n ],\n [\n \"prompt\",\n \"modules.ModularDiffusers.EncodePrompt\",\n -360,\n -240\n ],\n [\n \"denoise\",\n \"modules.ModularDiffusers.Denoise\",\n 80,\n -80\n ],\n [\n \"decode\",\n \"modules.ModularDiffusers.DecodeLatents\",\n 440,\n -80\n ],\n [\n \"preview\",\n \"modules.Image.Preview\",\n 800,\n -80\n ]\n ],\n \"edges\": [\n [\n \"models\",\n \"text_encoders\",\n \"prompt\",\n \"text_encoders\"\n ],\n [\n \"models\",\n \"unet_out\",\n \"denoise\",\n \"unet\"\n ],\n [\n \"models\",\n \"scheduler\",\n \"denoise\",\n \"scheduler\"\n ],\n [\n \"models\",\n \"vae_out\",\n \"decode\",\n \"vae\"\n ],\n [\n \"prompt\",\n \"embeddings\",\n \"denoise\",\n \"embeddings\"\n ],\n [\n \"denoise\",\n \"latents\",\n \"decode\",\n \"latents\"\n ],\n [\n \"decode\",\n \"images\",\n \"preview\",\n \"image\"\n ]\n ],\n \"bindings\": [\n [\n \"models\",\n \"model_type\",\n \"pipelineClass\"\n ],\n [\n \"models\",\n \"repo_id\",\n \"artifact\"\n ],\n [\n \"models\",\n \"revision\",\n \"defaultRevision\"\n ],\n [\n \"models\",\n \"dtype\",\n \"dtype\"\n ],\n [\n \"models\",\n \"device\",\n \"device\"\n ],\n [\n \"models\",\n \"auto_offload\",\n \"autoOffload\"\n ],\n [\n \"models\",\n \"offload_mode\",\n \"offloadMode\"\n ],\n [\n \"models\",\n \"trust_remote_code\",\n \"false\"\n ],\n [\n \"prompt\",\n \"prompt\",\n \"prompt\"\n ],\n [\n \"denoise\",\n \"width\",\n \"width\"\n ],\n [\n \"denoise\",\n \"height\",\n \"height\"\n ],\n [\n \"denoise\",\n \"seed\",\n \"seed\"\n ],\n [\n \"denoise\",\n \"num_inference_steps\",\n \"steps\"\n ],\n [\n \"prompt\",\n \"max_sequence_length\",\n \"maxSequenceLength\"\n ],\n [\n \"models\",\n \"weight_format\",\n \"weightFormat\"\n ]\n ],\n \"initialValues\": [],\n \"ancillaryOperations\": [\n {\n \"schemaVersion\": 1,\n \"id\": \"flux3-klein:text-to-image:prompt-preview-fp32-authoring:v1:preview\",\n \"parent\": {\n \"authoringRecipeId\": \"flux3-klein:text-to-image:prompt-preview-fp32-authoring:v1\",\n \"baseSpecId\": \"flux3-klein:modular:text-to-image:v1\",\n \"baseSpecContentHash\": \"studio-spec-v1-6697a7f5\",\n \"executionProfileId\": \"flux3-klein:modular\",\n \"pipelineClass\": \"Flux3DistilledModularPipeline\",\n \"task\": \"text_to_image\"\n },\n \"executionPurpose\": \"explicit_preview\",\n \"roles\": [\n [\n \"provider\",\n \"modules.HuggingFaceTransformers.LoadImageTextToTextModel\",\n -720,\n -400\n ],\n [\n \"proposal\",\n \"modules.HuggingFaceTransformers.GenerateImageVideoText\",\n -360,\n -400\n ]\n ],\n \"edges\": [\n [\n \"provider\",\n \"model\",\n \"proposal\",\n \"model\"\n ]\n ],\n \"bindings\": {\n \"owner\": {\n \"role\": \"prompt\",\n \"promptField\": \"prompt\",\n \"layoutField\": \"layout_conditioning\",\n \"referenceSource\": null\n },\n \"request\": {\n \"role\": \"proposal\",\n \"promptField\": \"prompt\",\n \"layoutField\": \"layout_conditioning\",\n \"imagesField\": \"images\"\n },\n \"output\": {\n \"role\": \"proposal\",\n \"field\": \"proposal_summary\"\n }\n },\n \"initialValues\": [\n [\n \"provider\",\n \"model_id\",\n {\n \"source\": \"hub\",\n \"value\": \"black-forest-labs/flux-3-image-klein-pup\"\n }\n ],\n [\n \"provider\",\n \"revision\",\n \"3f3edb52b2c55de0d49feab28598b68f7f8e4830\"\n ],\n [\n \"proposal\",\n \"operation\",\n \"enhance_prompt\"\n ],\n [\n \"provider\",\n \"dtype\",\n \"float32\"\n ],\n [\n \"provider\",\n \"device\",\n \"cuda:0\"\n ],\n [\n \"provider\",\n \"quantization_mode\",\n \"none\"\n ],\n [\n \"proposal\",\n \"max_input_tokens\",\n 4096\n ]\n ],\n \"fieldOverrides\": [\n [\n \"proposal\",\n \"enhancement_max_new_tokens\",\n {\n \"hidden\": false\n }\n ],\n [\n \"proposal\",\n \"max_new_tokens\",\n {\n \"hidden\": true\n }\n ]\n ],\n \"adapter\": {\n \"id\": \"transformers-prompt-enhancement-v1\",\n \"declarationSha256\": \"sha256:2a3d4685988b418115008bbb95fb3e948097580c0bedd2940ea3fe1e40254dc2\"\n },\n \"verification\": {\n \"schemaVersion\": 1,\n \"adapter\": {\n \"id\": \"transformers-prompt-enhancement-v1\",\n \"declarationSha256\": \"sha256:2a3d4685988b418115008bbb95fb3e948097580c0bedd2940ea3fe1e40254dc2\"\n },\n \"runtimeInputs\": {\n \"role\": \"provider\",\n \"modelField\": \"model_id\",\n \"revisionField\": \"revision\",\n \"dtypeField\": \"dtype\",\n \"deviceField\": \"device\",\n \"quantizationField\": \"quantization_mode\"\n },\n \"requestInputs\": {\n \"role\": \"proposal\",\n \"operationField\": \"operation\",\n \"maxNewTokensField\": \"enhancement_max_new_tokens\",\n \"minNewTokensField\": \"min_new_tokens\",\n \"maxInputTokensField\": \"max_input_tokens\",\n \"maxImagePixelsField\": \"max_image_pixels\"\n },\n \"supportedPromptModes\": [\n \"t2i\",\n \"i2i\"\n ],\n \"systemPromptsSha256\": \"sha256:b5da3ed8bc04ab59dbdb747930f7dbff847e868903fed8028f85ee1a4ac82fb4\",\n \"systemPromptSha256ByMode\": {\n \"t2i\": \"8b235a421bce2213d11ada01f5a1244443dd72303ffbb4cc9e5a0d8b0de5ab6f\",\n \"i2i\": \"95cec384d5b6d341caa9fb3f2c7ca45ee80c2364b3a95d4044aebf976f6dd3bf\",\n \"t2i_bbox\": \"5f513d8ce5838732919f9e645507aa20ff373e88bf93132c768e063c9db3151f\",\n \"i2i_bbox\": \"9ad10f947e401337cf155cac0518cc428159ef16f2f029f48aae2aaab8380a5e\"\n },\n \"chatTemplateSha256\": \"sha256:a4aee8afcf2e0711942cf848899be66016f8d14a889ff9ede07bca099c28f715\",\n \"modelReceipt\": {\n \"schemaVersion\": 1,\n \"library\": \"transformers\",\n \"task\": \"image-video-to-text\",\n \"source\": {\n \"kind\": \"hub\",\n \"repository\": \"black-forest-labs/flux-3-image-klein-pup\",\n \"revision\": \"3f3edb52b2c55de0d49feab28598b68f7f8e4830\"\n },\n \"loader\": {\n \"preprocessorAutoClass\": \"AutoProcessor\",\n \"modelAutoClass\": \"AutoModelForImageTextToText\"\n },\n \"security\": {\n \"localFilesOnly\": true,\n \"trustRemoteCode\": false,\n \"safetensorsOnly\": true,\n \"hostedInference\": false\n },\n \"runtime\": {\n \"transformersVersion\": \"5.18.0\",\n \"preprocessorClass\": \"Qwen3VLProcessor\",\n \"modelClass\": \"Qwen3_5ForConditionalGeneration\",\n \"modelType\": \"qwen3_5\",\n \"architectures\": [\n \"Qwen3_5ForConditionalGeneration\"\n ]\n }\n },\n \"quantizationRecipes\": [\n {\n \"mode\": \"none\"\n },\n {\n \"mode\": \"bnb_4bit\",\n \"quantType\": \"nf4\",\n \"doubleQuant\": true,\n \"computeDtype\": \"bfloat16\",\n \"skipModules\": [\n \"lm_head\",\n \"model.visual\"\n ]\n }\n ]\n },\n \"sourceRegions\": false,\n \"contentHash\": \"studio-ancillary-v1-0c2ed3be\"\n }\n ],\n \"contentHash\": \"studio-authoring-v1-ae520eff\"\n}", + "registry": { + "modules.ModularDiffusers.ModelsLoader": { + "module": "modules.ModularDiffusers", + "action": "ModelsLoader", + "type": "custom", + "label": "Load Models", + "category": "loader", + "description": "", + "resizable": true, + "skipParamsCheck": true, + "style": {}, + "params": { + "model_type": { + "label": "Pipeline Type", + "type": "string", + "options": { + "": { + "schemaVersion": 1, + "value": "", + "label": "", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "DummyCustomPipeline": { + "schemaVersion": 1, + "value": "DummyCustomPipeline", + "label": "Custom", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "StableDiffusionXLModularPipeline": { + "schemaVersion": 1, + "value": "StableDiffusionXLModularPipeline", + "label": "Stable Diffusion XL", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "QwenImageModularPipeline": { + "schemaVersion": 1, + "value": "QwenImageModularPipeline", + "label": "Qwen-Image-2512", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "QwenImageEditModularPipeline": { + "schemaVersion": 1, + "value": "QwenImageEditModularPipeline", + "label": "Qwen-Image-Edit", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "QwenImageEditPlusModularPipeline": { + "schemaVersion": 1, + "value": "QwenImageEditPlusModularPipeline", + "label": "Qwen-Image-Edit-2511", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "QwenImageLayeredModularPipeline": { + "schemaVersion": 1, + "value": "QwenImageLayeredModularPipeline", + "label": "Qwen-Image-Layered", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "FluxModularPipeline": { + "schemaVersion": 1, + "value": "FluxModularPipeline", + "label": "Flux", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "FluxKontextModularPipeline": { + "schemaVersion": 1, + "value": "FluxKontextModularPipeline", + "label": "Flux Kontext", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "Flux2ModularPipeline": { + "schemaVersion": 1, + "value": "Flux2ModularPipeline", + "label": "Flux 2", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "Flux2KleinModularPipeline": { + "schemaVersion": 1, + "value": "Flux2KleinModularPipeline", + "label": "Flux 2 Klein Distilled", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "Flux2KleinBaseModularPipeline": { + "schemaVersion": 1, + "value": "Flux2KleinBaseModularPipeline", + "label": "Flux 2 Klein Base", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "Flux3ModularPipeline": { + "schemaVersion": 1, + "value": "Flux3ModularPipeline", + "label": "FLUX 3 Image Klein Base", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "Flux3DistilledModularPipeline": { + "schemaVersion": 1, + "value": "Flux3DistilledModularPipeline", + "label": "FLUX 3 Image Klein", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "ZImageModularPipeline": { + "schemaVersion": 1, + "value": "ZImageModularPipeline", + "label": "Z-Image", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "WanModularPipeline": { + "schemaVersion": 1, + "value": "WanModularPipeline", + "label": "WAN2 T2V", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "WanImage2VideoModularPipeline": { + "schemaVersion": 1, + "value": "WanImage2VideoModularPipeline", + "label": "WAN2 I2V", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "MiniMaxMusic3ModularPipeline": { + "schemaVersion": 1, + "value": "MiniMaxMusic3ModularPipeline", + "label": "MiniMax Music 3", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "MiniMaxH3ModularPipeline": { + "schemaVersion": 1, + "value": "MiniMaxH3ModularPipeline", + "label": "MiniMax H3", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "AnimaModularPipeline": { + "schemaVersion": 1, + "value": "AnimaModularPipeline", + "label": "Anima", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "ErnieImageModularPipeline": { + "schemaVersion": 1, + "value": "ErnieImageModularPipeline", + "label": "ERNIE Image Turbo", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "HeliosModularPipeline": { + "schemaVersion": 1, + "value": "HeliosModularPipeline", + "label": "Helios", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "HeliosPyramidModularPipeline": { + "schemaVersion": 1, + "value": "HeliosPyramidModularPipeline", + "label": "Helios Pyramid", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "HeliosPyramidDistilledModularPipeline": { + "schemaVersion": 1, + "value": "HeliosPyramidDistilledModularPipeline", + "label": "Helios Pyramid Distilled", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "HunyuanVideo15ModularPipeline": { + "schemaVersion": 1, + "value": "HunyuanVideo15ModularPipeline", + "label": "HunyuanVideo 1.5", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "WanAnimate2ModularPipeline": { + "schemaVersion": 1, + "value": "WanAnimate2ModularPipeline", + "label": "Wan Animate 2", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "WanAnimate2DistilledModularPipeline": { + "schemaVersion": 1, + "value": "WanAnimate2DistilledModularPipeline", + "label": "Wan Animate 2 Distilled", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "Cosmos3OmniModularPipeline": { + "schemaVersion": 1, + "value": "Cosmos3OmniModularPipeline", + "label": "Cosmos 3 Nano", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "Cosmos3DistilledModularPipeline": { + "schemaVersion": 1, + "value": "Cosmos3DistilledModularPipeline", + "label": "Cosmos 3 Distilled", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "Ideogram4ModularPipeline": { + "schemaVersion": 1, + "value": "Ideogram4ModularPipeline", + "label": "Ideogram 4 (Contract only)", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "Krea2ModularPipeline": { + "schemaVersion": 1, + "value": "Krea2ModularPipeline", + "label": "Krea 2 (Contract only)", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "Krea2TurboModularPipeline": { + "schemaVersion": 1, + "value": "Krea2TurboModularPipeline", + "label": "Krea 2 Turbo (Contract only)", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "StableDiffusion3ModularPipeline": { + "schemaVersion": 1, + "value": "StableDiffusion3ModularPipeline", + "label": "Stable Diffusion 3 (Contract only)", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "LTX25ModularPipeline": { + "schemaVersion": 1, + "value": "LTX25ModularPipeline", + "label": "LTX-2.5 (Contract only)", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + } + }, + "onChange": "set_filters", + "description": "Selects the Modular Diffusers pipeline class. This filters compatible checkpoints and publishes the component contract used by connected nodes; it is not the model checkpoint itself." + }, + "repo_id": { + "label": "Repository ID", + "display": "modelselect", + "type": "string", + "value": { + "source": "hub", + "value": "" + }, + "fieldOptions": { + "noValidation": true, + "sources": ["hub", "local"], + "filter": { + "hub": { + "className": [""] + }, + "local": { + "className": [""] + } + } + }, + "onChange": "refresh_pipeline_identity" + }, + "reviewed_variant": { + "label": "Model", + "type": "string", + "value": "", + "options": [], + "hidden": true, + "fieldOptions": { + "controlTier": "essential" + }, + "description": "Select an immutable, reviewed checkpoint for this exact Modular Diffusers pipeline family. Changing it does not replace the workflow graph or reset its parameters." + }, + "dtype": { + "label": "dtype", + "options": [ + { + "schemaVersion": 1, + "value": "float32", + "label": "float32", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "float16", + "label": "float16", + "compatibility": "incompatible", + "availability": "unavailable", + "installationState": "unavailable", + "disabledReason": "float16 is not supported by the active runtime." + }, + { + "schemaVersion": 1, + "value": "bfloat16", + "label": "bfloat16", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + } + ], + "value": "float16" + }, + "device": { + "label": "Device", + "type": "string", + "value": "cpu:0", + "options": { + "cpu:0": { + "schemaVersion": 1, + "value": "cpu:0", + "label": "cpu:0", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "cpu": { + "schemaVersion": 1, + "value": "cpu", + "label": "cpu", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + } + } + }, + "attention_backend": { + "label": "Attention Backend", + "type": "string", + "default": "inherit", + "options": [ + { + "schemaVersion": 1, + "value": "inherit", + "label": "inherit", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "auto", + "label": "auto", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "native", + "label": "native", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "_native_math", + "label": "_native_math", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + } + ], + "description": "Inherit preserves existing native component defaults; explicit choices use the ordinary Diffusers attention API." + }, + "vae_slicing": { + "label": "VAE Slicing", + "type": "boolean", + "default": null, + "hidden": true, + "description": "An unset policy preserves the native VAE configuration; templates may bind an explicit boolean." + }, + "vae_tiling": { + "label": "VAE Tiling", + "type": "boolean", + "default": null, + "hidden": true, + "description": "An unset policy preserves the native VAE configuration; templates may bind an explicit boolean." + }, + "trust_remote_code": { + "label": "Trust Remote Code", + "type": "boolean", + "value": false, + "description": "Repository code execution is disabled; keep this off for contract preview.", + "onChange": "refresh_pipeline_identity" + }, + "revision": { + "label": "Revision", + "type": "string", + "value": "", + "description": "Required exact 40-character commit hash for Hub custom contracts.", + "onChange": "refresh_pipeline_identity" + }, + "workflow_id": { + "label": "Reviewed Workflow", + "type": "string", + "value": "", + "hidden": true, + "description": "Exact reviewed component partition selected by a first-party Cluster Node." + }, + "modiff_pipeline_identity": { + "label": "Custom Pipeline Identity", + "type": "object", + "value": null, + "hidden": true + }, + "refresh_pipeline_identity_button": { + "label": "Review and Refresh Custom Contract", + "display": "ui_button", + "value": false, + "hidden": true, + "onChange": "refresh_pipeline_identity" + }, + "auto_offload": { + "label": "Enable Auto Offload", + "type": "boolean", + "value": true + }, + "offload_mode": { + "label": "Offload Mode", + "type": "string", + "options": [ + { + "schemaVersion": 1, + "value": "auto_cpu", + "label": "auto_cpu", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "none", + "label": "none", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "model_cpu", + "label": "model_cpu", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "group_cpu", + "label": "group_cpu", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "group_disk", + "label": "group_disk", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + } + ], + "value": "model_cpu", + "default": "model_cpu" + }, + "weight_loading_mode": { + "label": "Weight Loading", + "type": "string", + "default": "cpu", + "options": [ + { + "schemaVersion": 1, + "value": "cpu", + "label": "cpu", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "cuda", + "label": "cuda", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + } + ], + "fieldOptions": { + "controlTier": "advanced" + }, + "description": "Load weights on CPU or CUDA before disk offload. CUDA loading needs room for a complete component and is available only for supported models." + }, + "weight_format": { + "label": "Weight Format", + "type": "string", + "default": "native", + "options": [ + { + "schemaVersion": 1, + "value": "native", + "label": "native", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + } + ], + "hidden": true, + "fieldOptions": { + "controlTier": "advanced" + }, + "description": "Select a backend-declared immutable component format. Missing reviewed files must be installed through Model Manager." + }, + "unet": { + "label": "Denoise Model", + "display": "input", + "type": "diffusers_auto_model" + }, + "vae": { + "label": "VAE", + "display": "input", + "type": "diffusers_auto_model" + }, + "lora_list": { + "label": "Lora", + "display": "input", + "type": "custom_lora" + }, + "text_encoders": { + "label": "Text Encoders", + "display": "output", + "type": "diffusers_auto_models", + "signal": { + "direction": "output", + "origin": "model_type", + "value": "" + }, + "connectionRole": "text_encoders" + }, + "unet_out": { + "label": "Denoise Model", + "display": "output", + "type": "diffusers_auto_model", + "signal": { + "direction": "output", + "origin": "model_type", + "value": "" + }, + "connectionRole": "denoiser" + }, + "vae_out": { + "label": "VAE", + "display": "output", + "type": "diffusers_auto_model", + "signal": { + "direction": "output", + "origin": "model_type", + "value": "" + }, + "connectionRole": "vae" + }, + "scheduler": { + "label": "Scheduler", + "display": "output", + "type": "diffusers_auto_model", + "signal": { + "direction": "output", + "origin": "model_type", + "value": "" + }, + "connectionRole": "scheduler" + }, + "image_encoder": { + "label": "Image Encoder", + "display": "output", + "type": "diffusers_auto_model", + "signal": { + "direction": "output", + "origin": "model_type", + "value": "" + }, + "connectionRole": "image_encoder" + }, + "pipeline_components": { + "label": "Pipeline Components", + "display": "output", + "type": "diffusers_modular_pipeline_components", + "signal": { + "direction": "output", + "origin": "model_type", + "value": "" + }, + "connectionRole": "pipeline_components" + }, + "quant_config": { + "label": "Quant Config", + "display": "input", + "type": "quant_config" + } + }, + "time": [0, 0, 0], + "memory": [0, 0, 0], + "cache": false + }, + "modules.ModularDiffusers.EncodePrompt": { + "module": "modules.ModularDiffusers", + "action": "EncodePrompt", + "type": "custom", + "label": "Encode Prompt", + "category": "embedding", + "description": "", + "resizable": true, + "skipParamsCheck": true, + "style": {}, + "params": { + "pipeline_components": { + "label": "Pipeline Components", + "type": "diffusers_modular_pipeline_components", + "display": "input", + "required": false, + "hidden": true, + "onSignal": "update_node", + "description": "Optional Models Loader components for the reviewed Qwen text-to-image stages.", + "signalCompatibility": { + "required": true, + "role": "pipeline_components", + "values": { + "QwenImageModularPipeline": ["text_encoder"] + } + } + }, + "text_encoders": { + "label": "Text Encoders *", + "type": "diffusers_auto_models", + "display": "input", + "signalCompatibility": { + "role": "text_encoders" + } + }, + "prompt_input": { + "label": "Prompt Input", + "type": "string", + "display": "input", + "description": "Optional connected prompt. When connected, this replaces the inline Prompt value." + }, + "guider": { + "label": "Guider", + "type": "custom_guider", + "display": "input", + "hidden": true, + "description": "Shared Diffusers guidance used by prompt encoding and denoising when the selected pipeline supports it." + }, + "layout_reference_summary": { + "label": "Bound Reference Summary", + "type": "string", + "display": "output", + "hidden": true, + "description": "Display-only ordered reference identities and actual preprocessing sizes from the current encoder cache." + }, + "prompt": { + "label": "Prompt *", + "type": "string", + "display": "textarea", + "default": "" + }, + "max_sequence_length": { + "label": "Maximum Sequence Length", + "type": "int", + "default": 8192, + "min": 1, + "max": 8192, + "step": 1 + }, + "text_encoder_out_layers": { + "label": "Text Encoder Layers", + "type": "int", + "display": "select", + "default": [4, 8, 12, 16, 20, 24, 28, 32], + "options": [ + { + "schemaVersion": 1, + "value": "0", + "label": "0", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "1", + "label": "1", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "2", + "label": "2", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "3", + "label": "3", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "4", + "label": "4", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "5", + "label": "5", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "6", + "label": "6", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "7", + "label": "7", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "8", + "label": "8", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "9", + "label": "9", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "10", + "label": "10", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "11", + "label": "11", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "12", + "label": "12", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "13", + "label": "13", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "14", + "label": "14", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "15", + "label": "15", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "16", + "label": "16", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "17", + "label": "17", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "18", + "label": "18", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "19", + "label": "19", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "20", + "label": "20", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "21", + "label": "21", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "22", + "label": "22", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "23", + "label": "23", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "24", + "label": "24", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "25", + "label": "25", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "26", + "label": "26", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "27", + "label": "27", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "28", + "label": "28", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "29", + "label": "29", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "30", + "label": "30", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "31", + "label": "31", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "32", + "label": "32", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + } + ], + "fieldOptions": { + "multiple": true, + "tupleValue": true, + "tupleLength": 8 + } + }, + "embeddings": { + "label": "Text Embeddings", + "type": "embeddings", + "display": "output" + }, + "doc": { + "label": "Doc", + "type": "string", + "display": "output" + }, + "layout_conditioning": { + "label": "Layout Conditioning", + "type": "layout_conditioning", + "display": "layout", + "fieldOptions": { + "layoutConditioning": { + "schemaVersion": 2, + "sourceRegions": false, + "supportsBoundSourceRegions": true + } + }, + "default": null + }, + "reference_binding": { + "label": "Reference Binding", + "type": "reference_conditioning", + "display": "input", + "fieldOptions": { + "referenceBinding": { + "schemaVersion": 1, + "maxReferences": 10 + } + }, + "default": null + } + }, + "time": [0, 0, 0], + "memory": [0, 0, 0], + "cache": false + }, + "modules.ModularDiffusers.Denoise": { + "module": "modules.ModularDiffusers", + "action": "Denoise", + "type": "custom", + "label": "Denoise", + "category": "sampler", + "description": "", + "resizable": true, + "skipParamsCheck": true, + "style": {}, + "params": { + "pipeline_components": { + "label": "Pipeline Components", + "type": "diffusers_modular_pipeline_components", + "display": "input", + "required": false, + "hidden": true, + "onSignal": [ + "update_node", + { + "action": "signal", + "target": "guider" + }, + { + "action": "signal", + "target": "controlnet_bundle" + } + ], + "description": "Optional Models Loader components for the reviewed Qwen text-to-image stages.", + "signalCompatibility": { + "required": true, + "role": "pipeline_components", + "values": { + "QwenImageModularPipeline": ["denoise"] + } + } + }, + "unet": { + "label": "Denoise Model *", + "type": "diffusers_auto_model", + "display": "input", + "signalCompatibility": { + "role": "denoiser" + } + }, + "embeddings": { + "label": "Text Embeddings *", + "type": "embeddings", + "display": "input" + }, + "width": { + "label": "Width", + "type": "int", + "default": 1024, + "min": 64, + "step": 16 + }, + "height": { + "label": "Height", + "type": "int", + "default": 1024, + "min": 64, + "step": 16 + }, + "seed": { + "label": "Seed", + "type": "int", + "display": "random", + "default": 0, + "min": 0, + "max": 4294967295 + }, + "num_inference_steps": { + "label": "Steps", + "type": "int", + "display": "slider", + "default": 16, + "min": 1, + "max": 100 + }, + "num_images_per_prompt": { + "label": "Images Per Prompt", + "type": "int", + "default": 1, + "min": 1, + "max": 8, + "step": 1 + }, + "image_cond_latents": { + "label": "Reference Latents", + "type": "latents", + "display": "input" + }, + "scheduler": { + "label": "Scheduler *", + "type": "diffusers_auto_model", + "display": "input", + "signalCompatibility": { + "role": "scheduler" + } + }, + "latents": { + "label": "Latents", + "type": "latents", + "display": "output" + }, + "doc": { + "label": "Doc", + "type": "string", + "display": "output" + }, + "reference_binding": { + "label": "Reference Binding", + "type": "reference_conditioning", + "display": "input", + "fieldOptions": { + "referenceBinding": { + "schemaVersion": 1, + "maxReferences": 10 + } + }, + "default": null + } + }, + "time": [0, 0, 0], + "memory": [0, 0, 0], + "cache": false + }, + "modules.ModularDiffusers.DecodeLatents": { + "module": "modules.ModularDiffusers", + "action": "DecodeLatents", + "type": "custom", + "label": "Decode Latents", + "category": "sampler", + "description": "", + "resizable": true, + "skipParamsCheck": true, + "style": {}, + "params": { + "pipeline_components": { + "label": "Pipeline Components", + "type": "diffusers_modular_pipeline_components", + "display": "input", + "required": false, + "hidden": true, + "onSignal": "update_node", + "description": "Optional Models Loader components for the reviewed Qwen text-to-image stages.", + "signalCompatibility": { + "required": true, + "role": "pipeline_components", + "values": { + "QwenImageModularPipeline": ["decoder"] + } + } + }, + "vae": { + "label": "VAE *", + "type": "diffusers_auto_model", + "display": "input", + "signalCompatibility": { + "role": "vae" + } + }, + "latents": { + "label": "Latents *", + "type": "latents", + "display": "input" + }, + "images": { + "label": "Images", + "type": "image", + "display": "output" + }, + "doc": { + "label": "Doc", + "type": "string", + "display": "output" + } + }, + "time": [0, 0, 0], + "memory": [0, 0, 0], + "cache": false + }, + "modules.Image.Preview": { + "module": "modules.Image", + "action": "Preview", + "type": "custom", + "label": "Preview Image", + "category": "image", + "description": "Preview an image", + "resizable": true, + "skipParamsCheck": false, + "style": {}, + "params": { + "vae": { + "type": "pipeline", + "display": "input", + "label": "VAE" + }, + "device": { + "type": "string", + "default": "cpu:0", + "options": { + "cpu:0": { + "schemaVersion": 1, + "value": "cpu:0", + "label": "cpu:0", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "cpu": { + "schemaVersion": 1, + "value": "cpu", + "label": "cpu", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + } + } + }, + "image": { + "type": ["image", "latent"], + "display": "input", + "onChange": { + "action": "show", + "data": { + "true": ["vae", "device"], + "false": [] + }, + "condition": { + "type": "latent" + } + } + }, + "preview": { + "display": "ui_image", + "type": "url", + "dataSource": "output" + }, + "output": { + "type": "image", + "display": "output", + "label": "All images" + }, + "export": { + "type": "str", + "default": "0", + "description": "Export the image at the given index. Leave empty to export all images." + }, + "filtered": { + "type": "image", + "display": "output", + "label": "Selected image" + } + }, + "time": [0, 0, 0], + "memory": [0, 0, 0], + "cache": false + }, + "modules.HuggingFaceTransformers.LoadImageTextToTextModel": { + "module": "modules.HuggingFaceTransformers", + "action": "LoadImageTextToTextModel", + "type": "custom", + "label": "Load Image/Video-to-Text Model", + "category": "Hugging Face Transformers", + "description": "Load an immutable local-only image/video-to-text model and processor.", + "resizable": true, + "skipParamsCheck": false, + "style": {}, + "params": { + "model": { + "label": "Model", + "display": "output", + "type": "transformers_image_text_to_text" + }, + "pipeline_class": { + "label": "Execution Class", + "type": "string", + "default": "AutoModelForImageTextToText", + "hidden": true + }, + "model_id": { + "label": "Model", + "display": "modelselect", + "type": "string", + "fieldOptions": { + "noValidation": true, + "sources": ["hub", "local"] + } + }, + "revision": { + "label": "Exact Hub Commit", + "type": "string", + "default": "" + }, + "dtype": { + "label": "DType", + "type": "string", + "options": ["float32", "float16", "bfloat16"], + "default": "float32" + }, + "device": { + "label": "Device", + "type": "string", + "options": { + "cpu:0": { + "arch": "cpu", + "backend": "cpu", + "vendor": "cpu", + "architecture": "AMD64", + "memory_kind": "system", + "name": "CPU (0)", + "label": ["cpu:0"], + "total_memory": 0, + "index": 0 + } + }, + "default": "cpu:0" + }, + "quantization_mode": { + "label": "Quantization", + "type": "string", + "options": ["none", "bnb_4bit"], + "default": "none" + }, + "receipt": { + "label": "Model Receipt", + "display": "output", + "type": "object" + } + }, + "time": [0, 0, 0], + "memory": [0, 0, 0], + "cache": false + }, + "modules.HuggingFaceTransformers.GenerateImageVideoText": { + "module": "modules.HuggingFaceTransformers", + "action": "GenerateImageVideoText", + "type": "custom", + "label": "Generate Image/Video Text", + "category": "Hugging Face Transformers", + "description": "Generate bounded text from bounded in-memory images or video frames.", + "resizable": true, + "skipParamsCheck": false, + "style": {}, + "params": { + "max_input_tokens": { + "label": "Input Token Limit", + "type": "int", + "default": 32768, + "min": 1, + "max": 32768 + }, + "max_image_pixels": { + "label": "Reference Pixel Limit", + "type": "int", + "default": 16777216, + "min": 65536, + "max": 16777216 + }, + "model": { + "label": "Model", + "display": "input", + "type": "transformers_image_text_to_text" + }, + "prompt": { + "label": "Prompt", + "type": "text", + "default": "" + }, + "operation": { + "label": "Operation", + "type": "string", + "options": ["standard", "enhance_prompt"], + "default": "standard", + "hidden": true + }, + "enhancement_max_new_tokens": { + "label": "Enhancement Token Limit", + "type": "int", + "default": 3584, + "min": 1, + "max": 3584, + "hidden": true, + "description": "Used only by prompt enhancement; ordinary generation keeps Max New Tokens." + }, + "layout_conditioning": { + "label": "Enhancement Layout", + "type": "layout_conditioning", + "display": "layout", + "default": null, + "hidden": true, + "fieldOptions": { + "layoutConditioning": { + "schemaVersion": 1, + "sourceRegions": false + } + } + }, + "images": { + "label": "Images", + "display": "input", + "type": "image", + "required": false + }, + "video": { + "label": "Video", + "display": "input", + "type": "video", + "required": false + }, + "use_chat_template": { + "label": "Use Chat Template", + "type": "boolean", + "default": true + }, + "max_new_tokens": { + "label": "Max New Tokens", + "type": "int", + "default": 256, + "min": 1, + "max": 2048 + }, + "min_new_tokens": { + "label": "Min New Tokens", + "type": "int", + "default": 0, + "min": 0, + "max": 2048 + }, + "do_sample": { + "label": "Sample", + "type": "boolean", + "default": false + }, + "temperature": { + "label": "Temperature", + "type": "float", + "default": 1, + "min": 0.01, + "max": 5 + }, + "top_p": { + "label": "Top P", + "type": "float", + "default": 1, + "min": 0.01, + "max": 1 + }, + "top_k": { + "label": "Top K", + "type": "int", + "default": 50, + "min": 0, + "max": 1000 + }, + "num_beams": { + "label": "Beams", + "type": "int", + "default": 1, + "min": 1, + "max": 8 + }, + "repetition_penalty": { + "label": "Repetition Penalty", + "type": "float", + "default": 1, + "min": 0.1, + "max": 10 + }, + "text": { + "label": "Generated Text", + "display": "output", + "type": "string" + }, + "result": { + "label": "Generation Result", + "display": "output", + "type": "object" + }, + "proposal_summary": { + "label": "Prompt Proposal Summary", + "display": "output", + "type": "string", + "hidden": true + } + }, + "time": [0, 0, 0], + "memory": [0, 0, 0], + "cache": false + } + } + } + ], + "currentLegacyParent": { + "selection": { + "authoringRecipeId": "flux3-klein:text-to-image:prompt-preview-authoring:v1", + "executionProfileId": "flux3-klein:modular", + "pipelineClass": "Flux3DistilledModularPipeline", + "task": "text_to_image" + }, + "rawParentJson": "{\n \"schemaVersion\": 1,\n \"canonicalizationVersion\": 1,\n \"id\": \"flux3-klein:text-to-image:prompt-preview-authoring:v1\",\n \"baseSpecId\": \"flux3-klein:modular:text-to-image:v1\",\n \"baseSpecContentHash\": \"studio-spec-v1-6697a7f5\",\n \"executionProfileIds\": [\n \"flux3-klein:modular\"\n ],\n \"roles\": [\n [\n \"models\",\n \"modules.ModularDiffusers.ModelsLoader\",\n -720,\n -80\n ],\n [\n \"prompt\",\n \"modules.ModularDiffusers.EncodePrompt\",\n -360,\n -240\n ],\n [\n \"denoise\",\n \"modules.ModularDiffusers.Denoise\",\n 80,\n -80\n ],\n [\n \"decode\",\n \"modules.ModularDiffusers.DecodeLatents\",\n 440,\n -80\n ],\n [\n \"preview\",\n \"modules.Image.Preview\",\n 800,\n -80\n ]\n ],\n \"edges\": [\n [\n \"models\",\n \"text_encoders\",\n \"prompt\",\n \"text_encoders\"\n ],\n [\n \"models\",\n \"unet_out\",\n \"denoise\",\n \"unet\"\n ],\n [\n \"models\",\n \"scheduler\",\n \"denoise\",\n \"scheduler\"\n ],\n [\n \"models\",\n \"vae_out\",\n \"decode\",\n \"vae\"\n ],\n [\n \"prompt\",\n \"embeddings\",\n \"denoise\",\n \"embeddings\"\n ],\n [\n \"denoise\",\n \"latents\",\n \"decode\",\n \"latents\"\n ],\n [\n \"decode\",\n \"images\",\n \"preview\",\n \"image\"\n ]\n ],\n \"bindings\": [\n [\n \"models\",\n \"model_type\",\n \"pipelineClass\"\n ],\n [\n \"models\",\n \"repo_id\",\n \"artifact\"\n ],\n [\n \"models\",\n \"revision\",\n \"defaultRevision\"\n ],\n [\n \"models\",\n \"dtype\",\n \"dtype\"\n ],\n [\n \"models\",\n \"device\",\n \"device\"\n ],\n [\n \"models\",\n \"auto_offload\",\n \"autoOffload\"\n ],\n [\n \"models\",\n \"offload_mode\",\n \"offloadMode\"\n ],\n [\n \"models\",\n \"trust_remote_code\",\n \"false\"\n ],\n [\n \"prompt\",\n \"prompt\",\n \"prompt\"\n ],\n [\n \"denoise\",\n \"width\",\n \"width\"\n ],\n [\n \"denoise\",\n \"height\",\n \"height\"\n ],\n [\n \"denoise\",\n \"seed\",\n \"seed\"\n ],\n [\n \"denoise\",\n \"num_inference_steps\",\n \"steps\"\n ],\n [\n \"prompt\",\n \"max_sequence_length\",\n \"maxSequenceLength\"\n ],\n [\n \"models\",\n \"weight_format\",\n \"weightFormat\"\n ]\n ],\n \"initialValues\": [],\n \"ancillaryOperations\": [\n {\n \"schemaVersion\": 1,\n \"id\": \"flux3-klein:text-to-image:prompt-preview-authoring:v1:preview\",\n \"parent\": {\n \"authoringRecipeId\": \"flux3-klein:text-to-image:prompt-preview-authoring:v1\",\n \"baseSpecId\": \"flux3-klein:modular:text-to-image:v1\",\n \"baseSpecContentHash\": \"studio-spec-v1-6697a7f5\",\n \"executionProfileId\": \"flux3-klein:modular\",\n \"pipelineClass\": \"Flux3DistilledModularPipeline\",\n \"task\": \"text_to_image\"\n },\n \"executionPurpose\": \"explicit_preview\",\n \"roles\": [\n [\n \"provider\",\n \"modules.HuggingFaceTransformers.LoadImageTextToTextModel\",\n -720,\n -400\n ],\n [\n \"proposal\",\n \"modules.HuggingFaceTransformers.GenerateImageVideoText\",\n -360,\n -400\n ]\n ],\n \"edges\": [\n [\n \"provider\",\n \"model\",\n \"proposal\",\n \"model\"\n ]\n ],\n \"bindings\": {\n \"owner\": {\n \"role\": \"prompt\",\n \"promptField\": \"prompt\",\n \"layoutField\": \"layout_conditioning\",\n \"referenceSource\": null\n },\n \"request\": {\n \"role\": \"proposal\",\n \"promptField\": \"prompt\",\n \"layoutField\": \"layout_conditioning\",\n \"imagesField\": \"images\"\n },\n \"output\": {\n \"role\": \"proposal\",\n \"field\": \"proposal_summary\"\n }\n },\n \"initialValues\": [\n [\n \"provider\",\n \"model_id\",\n {\n \"source\": \"hub\",\n \"value\": \"black-forest-labs/flux-3-image-klein-pup\"\n }\n ],\n [\n \"provider\",\n \"revision\",\n \"3f3edb52b2c55de0d49feab28598b68f7f8e4830\"\n ],\n [\n \"proposal\",\n \"operation\",\n \"enhance_prompt\"\n ],\n [\n \"provider\",\n \"dtype\",\n \"bfloat16\"\n ],\n [\n \"provider\",\n \"device\",\n \"cuda:0\"\n ],\n [\n \"provider\",\n \"quantization_mode\",\n \"bnb_4bit\"\n ],\n [\n \"proposal\",\n \"max_input_tokens\",\n 4096\n ]\n ],\n \"fieldOverrides\": [\n [\n \"proposal\",\n \"enhancement_max_new_tokens\",\n {\n \"hidden\": false\n }\n ],\n [\n \"proposal\",\n \"max_new_tokens\",\n {\n \"hidden\": true\n }\n ]\n ],\n \"adapter\": {\n \"id\": \"transformers-prompt-enhancement-v1\",\n \"declarationSha256\": \"sha256:2a3d4685988b418115008bbb95fb3e948097580c0bedd2940ea3fe1e40254dc2\"\n },\n \"verification\": {\n \"schemaVersion\": 1,\n \"adapter\": {\n \"id\": \"transformers-prompt-enhancement-v1\",\n \"declarationSha256\": \"sha256:2a3d4685988b418115008bbb95fb3e948097580c0bedd2940ea3fe1e40254dc2\"\n },\n \"runtimeInputs\": {\n \"role\": \"provider\",\n \"modelField\": \"model_id\",\n \"revisionField\": \"revision\",\n \"dtypeField\": \"dtype\",\n \"deviceField\": \"device\",\n \"quantizationField\": \"quantization_mode\"\n },\n \"requestInputs\": {\n \"role\": \"proposal\",\n \"operationField\": \"operation\",\n \"maxNewTokensField\": \"enhancement_max_new_tokens\",\n \"minNewTokensField\": \"min_new_tokens\",\n \"maxInputTokensField\": \"max_input_tokens\",\n \"maxImagePixelsField\": \"max_image_pixels\"\n },\n \"supportedPromptModes\": [\n \"t2i\",\n \"i2i\"\n ],\n \"systemPromptsSha256\": \"sha256:b5da3ed8bc04ab59dbdb747930f7dbff847e868903fed8028f85ee1a4ac82fb4\",\n \"systemPromptSha256ByMode\": {\n \"t2i\": \"8b235a421bce2213d11ada01f5a1244443dd72303ffbb4cc9e5a0d8b0de5ab6f\",\n \"i2i\": \"95cec384d5b6d341caa9fb3f2c7ca45ee80c2364b3a95d4044aebf976f6dd3bf\",\n \"t2i_bbox\": \"5f513d8ce5838732919f9e645507aa20ff373e88bf93132c768e063c9db3151f\",\n \"i2i_bbox\": \"9ad10f947e401337cf155cac0518cc428159ef16f2f029f48aae2aaab8380a5e\"\n },\n \"chatTemplateSha256\": \"sha256:a4aee8afcf2e0711942cf848899be66016f8d14a889ff9ede07bca099c28f715\",\n \"modelReceipt\": {\n \"schemaVersion\": 1,\n \"library\": \"transformers\",\n \"task\": \"image-video-to-text\",\n \"source\": {\n \"kind\": \"hub\",\n \"repository\": \"black-forest-labs/flux-3-image-klein-pup\",\n \"revision\": \"3f3edb52b2c55de0d49feab28598b68f7f8e4830\"\n },\n \"loader\": {\n \"preprocessorAutoClass\": \"AutoProcessor\",\n \"modelAutoClass\": \"AutoModelForImageTextToText\"\n },\n \"security\": {\n \"localFilesOnly\": true,\n \"trustRemoteCode\": false,\n \"safetensorsOnly\": true,\n \"hostedInference\": false\n },\n \"runtime\": {\n \"transformersVersion\": \"5.18.0\",\n \"preprocessorClass\": \"Qwen3VLProcessor\",\n \"modelClass\": \"Qwen3_5ForConditionalGeneration\",\n \"modelType\": \"qwen3_5\",\n \"architectures\": [\n \"Qwen3_5ForConditionalGeneration\"\n ]\n }\n },\n \"quantizationRecipes\": [\n {\n \"mode\": \"none\"\n },\n {\n \"mode\": \"bnb_4bit\",\n \"quantType\": \"nf4\",\n \"doubleQuant\": true,\n \"computeDtype\": \"bfloat16\",\n \"skipModules\": [\n \"lm_head\",\n \"model.visual\"\n ]\n }\n ]\n },\n \"sourceRegions\": false,\n \"contentHash\": \"studio-ancillary-v1-b46902d2\"\n }\n ],\n \"contentHash\": \"studio-authoring-v1-c39b36d8\"\n}" + } +} From 0877f0608836880f8c744cddd1a61616f6a9747a Mon Sep 17 00:00:00 2001 From: Sourav Das Date: Fri, 23 Oct 2026 12:58:18 +0530 Subject: [PATCH 054/440] Preserve prompt enhancement previews and authored graph state --- docs/modiff-client-architecture.md | 21 ++ scripts/bundle-budget.mjs | 7 +- scripts/prompt-enhancement-preview.test.mjs | 299 ++++++++++++++++- scripts/prompt-enhancement-summary.test.mjs | 204 ++++++++++++ scripts/resolved-execution-inputs.test.mjs | 12 + scripts/run-coordinator.test.mjs | 27 ++ src/components/OutputGalleryPanel.tsx | 2 - src/components/PromptEnhancementControls.tsx | 10 +- src/studio/ancillaryOperations.ts | 19 +- src/studio/promptEnhancementAuthoring.ts | 34 +- src/studio/promptEnhancementPreview.ts | 27 +- src/studio/promptEnhancementSummary.ts | 249 ++++++++++++-- src/studio/resolvedExecutionInputs.ts | 4 +- src/workflow/operationGraphTransaction.ts | 15 +- tests/e2e/studio-mocked/studio-mocked.spec.ts | 307 ++++++++++++++++++ 15 files changed, 1186 insertions(+), 51 deletions(-) diff --git a/docs/modiff-client-architecture.md b/docs/modiff-client-architecture.md index 84e0be38..cc8add6f 100644 --- a/docs/modiff-client-architecture.md +++ b/docs/modiff-client-architecture.md @@ -1744,3 +1744,24 @@ validation/status fields as the same authoring state. This keeps normal run status updates from invalidating an unchanged Preview. Explicit authored UI settings, including `false` and zero values, remain part of the source identity; input, wire, worker and proposal receipt changes still invalidate Apply. + +Reviewed graph transactions clear selection by default, including full model/task +replacement. An in-place action can explicitly preserve selection for same-ID +nodes when its plan declares no selection intent. PUP uses that option to keep +its inspector mounted through request refresh, verification and Apply. A plan +that explicitly selects or deselects nodes still controls selection. Selection +remains transient: it is absent from durable snapshots and does not relax +workflow epochs, graph signatures or Apply guards. + +The additive `append-details-preserve-layout-v1` declaration selects the generic +`enhance_prompt_append_details` operation and one plain PUP generation. Its +version-three `caption-append-preserve-layout-v1` proposal appends the exact native +wording to the exact authored caption with two newlines; the entire authored +layout, including descriptions, remains unchanged. The client independently +checks that composition against the current declared policy, operation, request +hashes and producer before enabling Apply. Native wording cannot contain region +tags, Markdown fences or a table. The UI labels this as appended wording, never +native layout generation or semantic-fidelity proof. Apply stays one ordinary +history transaction; Regenerate recaptures the original request after an +untouched Apply, so appended text does not accumulate. Existing plain and native +structured proposal schemas remain strict and retain their own declarations. diff --git a/scripts/bundle-budget.mjs b/scripts/bundle-budget.mjs index b92ea287..087bbaa2 100644 --- a/scripts/bundle-budget.mjs +++ b/scripts/bundle-budget.mjs @@ -1,3 +1,7 @@ +// Aggregate release feature/correctness cost versus the accepted COMPLETE baseline: +// deferred gzip 316833 -> 318426 (+1593). Raise 317015 to 318608, retaining +// 182 bytes of headroom. This is not per-module attribution or an immediate +// private-baseline measurement; startup/chunk caps and validators stay fixed. // Lossless structured prompt enhancement preserves authored layout/source bindings // and validates native ID mapping in deferred code. Measured deferred gzip grows // from 316480 to 316833 bytes (+353). Add exactly that feature cost to the prior @@ -488,7 +492,8 @@ const MAX_DEFERRED_GZIP_BYTES = 22998 + 896 + 1536 + - 353; + 353 + + 1593; const STATIC_MODULE_REFERENCE = /\b(?:import(?=\s|["'{*])(?!\s*\()|export(?=\s|["'{*]))[^;]*?["'](\.\/[^"'?]+\.js)(?:\?v=[0-9a-f]{16})?["']/g; diff --git a/scripts/prompt-enhancement-preview.test.mjs b/scripts/prompt-enhancement-preview.test.mjs index f52d8295..19a2500b 100644 --- a/scripts/prompt-enhancement-preview.test.mjs +++ b/scripts/prompt-enhancement-preview.test.mjs @@ -18,7 +18,7 @@ const worker = { backend_source: { fingerprint: `sha256:backend-source-v1:${'a'.repeat(64)}` }, }; let server, flow, studio, registry, socket, tasks, authoring, preview, runtime, canonical, transaction, Component; -let originalFetch, calls, onMetadata, onRuntime, submitted, cacheBody, taskReplies; +let originalFetch, calls, onMetadata, onRuntime, submitted, cacheBody, taskReplies, submissionId; before(async () => { const storage = new Map(); globalThis.localStorage = { @@ -56,6 +56,7 @@ beforeEach(() => { onMetadata = null; onRuntime = null; submitted = null; + submissionId = 'synthetic-preview-B'; cacheBody = null; taskReplies = new Map(); studio.setState({ @@ -97,6 +98,7 @@ beforeEach(() => { return json(fixture.response); } if (endpoint === '/runtime/status') { + assert.equal(init.cache, 'no-store', 'Runtime identity reads must bypass HTTP caches.'); onRuntime?.(); return json(worker); } @@ -105,7 +107,7 @@ beforeEach(() => { return json({ error: false, sid: 'unit-preview-sid', - task_id: 'synthetic-preview-B', + task_id: submissionId, message: 'Synthetic transport only', }); } @@ -117,8 +119,14 @@ beforeEach(() => { ? cacheBody : new Response(cacheBody, { headers: { 'Content-Type': 'application/json' } }); } - if (endpoint === '/cache' && init?.method === 'DELETE') - return json({ error: false, nodes: JSON.parse(init.body).nodes }); + if (endpoint === '/cache' && init?.method === 'DELETE') { + const body = JSON.parse(init.body); + return json({ + error: false, + nodes: body.nodes, + ...(body.scope === 'outputs' ? { scope: 'outputs', retainedModelNodes: [] } : {}), + }); + } assert.fail(`Unexpected request ${endpoint}`); }; }); @@ -200,7 +208,7 @@ function editOwnerField(ownerId, field, value) { flow.getState().replaceGraph({ ...graph, nodes: graph.nodes.map((node) => (node.id === root.id ? changed : node)) }); } -function syntheticEnvelope(run, warm = false) { +function syntheticEnvelope(run, warm = false, nativeText = 'Synthetic appended wording.') { const binding = submitted.runtimeHints.executionPurpose.bindings[0], verification = child.verification; const input = (role, field) => submitted.nodes[binding.roleNodes[role]].params[field].value; @@ -260,14 +268,15 @@ function syntheticEnvelope(run, warm = false) { const prompt = input(child.bindings.request.role, child.bindings.request.promptField), rendered = `Synthetic rendered ${prompt}`; const authoredLayout = input(child.bindings.request.role, child.bindings.request.layoutField); - const mode = authoredLayout?.regions.length ? 't2i_bbox' : 't2i'; + const append = child.layoutPolicy === 'append-details-preserve-layout-v1'; + const mode = authoredLayout?.regions.length && !append ? 't2i_bbox' : 't2i'; const consumed = { schemaVersion: 1, renderedPrompt: rendered, references: [], processedImageGrid: [], fingerprints: { - operation: 'enhance_prompt', + operation: input(request.role, request.operationField), enhancement_max_new_tokens: controls.max_new_tokens, prompt_adapter_id: verification.adapter.id, system_prompt_mode: mode, @@ -294,9 +303,16 @@ function syntheticEnvelope(run, warm = false) { consumedInput: consumed, proposal: { mode, - text: mode === 't2i' ? 'Synthetic independently reviewed proposal.' : null, - structuredProposal: - mode === 't2i' + text: mode === 't2i' && !append ? 'Synthetic independently reviewed proposal.' : null, + structuredProposal: append + ? { + schemaVersion: 3, + kind: 'caption-append-preserve-layout-v1', + caption: prompt + '\n\n' + nativeText, + layoutConditioning: structuredClone(authoredLayout), + nativeText, + } + : mode === 't2i' ? null : { schemaVersion: 2, @@ -322,7 +338,7 @@ function syntheticEnvelope(run, warm = false) { generatedTokens: 3, applyRequired: true, applicationAllowed: true, - layoutOutputValidated: mode === 't2i' ? null : true, + layoutOutputValidated: mode === 't2i' && !append ? null : true, semanticFidelityVerified: false, applicationBlockedReason: null, }, @@ -461,6 +477,122 @@ test('declared structured Preview reaches paired Apply and one Undo without chan } }); +test('declared append-details Preview keeps the full layout and Regenerate never appends its own previous output', async () => { + const saved = structuredClone(parent), + originalSelectionId = fixture.selection.authoringRecipeId; + const operationField = fixture.registry['modules.HuggingFaceTransformers.GenerateImageVideoText'].params.operation; + const options = structuredClone(operationField.options); + try { + const { hashString, stableStringify } = await server.ssrLoadModule('/src/studio/stableHash.ts'); + // Synthetic additive protocol variant. Real producer/native coverage is separate. + child.layoutPolicy = 'append-details-preserve-layout-v1'; + parent.id = parent.id.replace(/:v1$/u, ':v3'); + child.id = `${parent.id}:preview`; + child.parent.authoringRecipeId = parent.id; + fixture.selection.authoringRecipeId = parent.id; + child.initialValues.find( + ([role, field]) => + role === child.verification.requestInputs.role && field === child.verification.requestInputs.operationField, + )[2] = 'enhance_prompt_append_details'; + child.verification.supportedPromptModes = ['t2i', 'i2i']; + child.verification.layoutRequestSuffixSha256 = sha('synthetic declared append request'); + operationField.options.push({ + ...operationField.options.find((option) => option.value === 'enhance_prompt'), + value: 'enhance_prompt_append_details', + label: 'enhance_prompt_append_details', + }); + const { contentHash: _childHash, ...childBody } = child; + child.contentHash = `studio-ancillary-v1-${hashString(stableStringify(childBody))}`; + const { contentHash: _parentHash, ...parentBody } = parent; + parent.contentHash = `studio-authoring-v1-${hashString(stableStringify(parentBody))}`; + const { ownerId } = await setup(); + const layout = { + schemaVersion: 2, + coordinateSpace: 'normalized_xyxy', + regions: [ + { + id: 'authored_object', + description: ' Original description.\n', + action: 'place', + targetBox: [0.10001, 0.2, 0.4, 0.7], + }, + ], + }; + const prompt = ' A scene with .\n'; + editOwnerField(ownerId, 'prompt', prompt); + editOwnerField(ownerId, 'layout_conditioning', layout); + await preview.enablePromptEnhancement(ownerId); + const first = await preview.startPromptEnhancementPreview(ownerId, child.id); + const firstEnvelope = syntheticEnvelope(first, false, 'First proposed wording.'); + const firstTicket = await preview.finishPromptEnhancementPreview(first); + const before = structuredClone(flow.getState().toObject()); + const originalPairHash = await authoring.promptEnhancementPairHash({ prompt, layout }); + await assert.rejects( + authoring.planApplyPromptEnhancement( + before, + ownerId, + parent, + child.id, + { prompt: 'Replacement caption .', layout }, + originalPairHash, + ), + /caption prefix/, + ); + const changedLayout = structuredClone(layout); + changedLayout.regions[0].description = 'Changed description'; + await assert.rejects( + authoring.planApplyPromptEnhancement( + before, + ownerId, + parent, + child.id, + { prompt: prompt + '\n\nProposed wording.', layout: changedLayout }, + originalPairHash, + ), + /any authored layout field/, + ); + assert.deepEqual(flow.getState().toObject(), before); + flow.getState().resetHistory(); + await preview.applyPromptEnhancementPreview(firstTicket); + assert.equal(activeOwner(ownerId).data.params.prompt.value, prompt + '\n\nFirst proposed wording.'); + assert.deepEqual(activeOwner(ownerId).data.params.layout_conditioning.value, layout); + assert.equal(flow.getState().historyPast.length, 1); + flow.getState().undo(); + assert.deepEqual(flow.getState().toObject(), before); + flow.getState().redo(); + submissionId = 'synthetic-preview-C'; + const second = await preview.startPromptEnhancementPreview(ownerId, child.id, true); + assert.notEqual(second.taskId, first.taskId); + const binding = submitted.runtimeHints.executionPurpose.bindings[0]; + const request = submitted.nodes[binding.roleNodes[child.bindings.request.role]]; + assert.equal(request.params.prompt.value, prompt, 'Regenerate submits the untouched original caption.'); + assert.deepEqual(request.params.layout_conditioning.value, layout); + assert.ok(calls.includes('/cache'), 'Regenerate uses normal explicit recomputation.'); + syntheticEnvelope(second, false, 'Second proposed wording.'); + const secondTicket = await preview.finishPromptEnhancementPreview(second); + assert.notEqual( + JSON.parse(firstEnvelope.value).producer.taskId, + preview.promptEnhancementPreviewDetails(secondTicket).producer.taskId, + ); + flow.getState().resetHistory(); + await preview.applyPromptEnhancementPreview(secondTicket); + assert.equal(activeOwner(ownerId).data.params.prompt.value, prompt + '\n\nSecond proposed wording.'); + assert.doesNotMatch(activeOwner(ownerId).data.params.prompt.value, /First proposed wording/); + assert.deepEqual(activeOwner(ownerId).data.params.layout_conditioning.value, layout); + assert.equal(flow.getState().historyPast.length, 1); + flow.getState().undo(); + assert.equal(activeOwner(ownerId).data.params.prompt.value, prompt); + assert.deepEqual(activeOwner(ownerId).data.params.layout_conditioning.value, layout); + } finally { + operationField.options = options; + fixture.selection.authoringRecipeId = originalSelectionId; + for (const key of Object.keys(child)) delete child[key]; + Object.assign(child, saved.ancillaryOperations[0]); + for (const key of Object.keys(parent)) if (key !== 'ancillaryOperations') delete parent[key]; + Object.assign(parent, { ...saved, ancillaryOperations: [child] }); + } +}); + test('normal unavailable metadata and concurrent document/session/task changes refuse before mutation or dispatch', async (t) => { for (const failure of ['unavailable', 'document', 'session', 'task']) await t.test(failure, async () => { @@ -551,6 +683,124 @@ test('Preview dispatch uses the selected ordinary scope and does not change the assert.equal(activeOwner(ownerId).data.params.prompt.value, ' Authored unit prompt.\n'); }); +test('request refresh keeps the selected inspector mounted through Preview verification and Apply', async () => { + await setup(); + const { unpackVisualOperationGroups } = await server.ssrLoadModule('/src/workflow/visualOperationGroupProjection.ts'); + const graph = unpackVisualOperationGroups(flow.getState().toObject()).graph; + flow.getState().replaceGraph(graph); + const owner = graph.nodes.find( + (node) => node.data.studioRole === child.bindings.owner.role && node.data.operationAuthoring?.ancillaryParent, + ); + assert.ok(owner, 'The declared prompt owner must be present after normal ungrouping.'); + const ownerId = owner.id; + await preview.enablePromptEnhancement(ownerId); + const edited = 'A later authored prompt requires a fresh ancillary request.'; + flow.getState().setParamWithHistory(ownerId, child.bindings.owner.promptField, edited); + await flow.getState().onNodesChange([{ type: 'select', id: ownerId, selected: true }]); + const selectedIds = () => + flow + .getState() + .nodes.filter((node) => node.selected) + .map((node) => node.id); + assert.deepEqual(selectedIds(), [ownerId]); + const binding = activeOwner(ownerId).data.operationAuthoring.ancillaryBindings[0]; + const requestId = binding.roleNodes[child.bindings.request.role]; + assert.notEqual( + flow.getState().nodes.find((node) => node.id === requestId).data.params[child.bindings.request.promptField].value, + edited, + ); + const lostInspector = []; + const unsubscribe = flow.subscribe(() => { + // GraphNodeInputs mounts the selected node's controls only while selected. + if (!selectedIds().includes(ownerId)) lostInspector.push(true); + }); + try { + const run = await preview.startPromptEnhancementPreview(ownerId, child.id); + assert.deepEqual(lostInspector, [], 'Request refresh must not unmount the action before it receives its run.'); + assert.equal(submitted.nodes[requestId].params[child.bindings.request.promptField].value, edited); + assert.ok( + flow + .getState() + .toObject() + .nodes.every((node) => !Object.hasOwn(node, 'selected')), + ); + const envelope = syntheticEnvelope(run); + const ticket = await preview.finishPromptEnhancementPreview(run); + assert.equal(preview.promptEnhancementPreviewDetails(ticket).producer.taskId, run.taskId); + await preview.applyPromptEnhancementPreview(ticket); + assert.equal(activeOwner(ownerId).data.params.prompt.value, JSON.parse(envelope.value).proposal.text); + assert.deepEqual(selectedIds(), [ownerId]); + await preview.disablePromptEnhancement(ownerId, child.id); + assert.deepEqual(selectedIds(), [ownerId]); + await preview.enablePromptEnhancement(ownerId, child.id); + assert.deepEqual(selectedIds(), [ownerId]); + assert.deepEqual(lostInspector, []); + } finally { + unsubscribe(); + } +}); + +test('ordinary graph replacements clear selection unless explicitly preserved', async (t) => { + const { captureWorkflowOperationContext } = await server.ssrLoadModule('/src/stores/useStudioStore.ts'); + for (const preserveSelection of [false, true]) + await t.test(preserveSelection ? 'explicit in-place refresh' : 'ordinary replacement', async () => { + await setup(); + const selectedId = flow.getState().nodes[0].id; + await flow.getState().onNodesChange([{ type: 'select', id: selectedId, selected: true }]); + const before = flow.getState().toObject(); + assert.ok(before.nodes.every((node) => !Object.hasOwn(node, 'selected'))); + transaction.commitOperationGraph( + structuredClone(before), + captureWorkflowOperationContext(), + transaction.operationGraphSignature(before), + 'Replace reviewed graph', + { preserveSelection }, + ); + assert.deepEqual( + flow + .getState() + .nodes.filter((node) => node.selected) + .map((node) => node.id), + preserveSelection ? [selectedId] : [], + ); + }); +}); + +test('an explicit operation selection plan can select a new node or clear the old selection', async (t) => { + const { createNodeFromRegistry } = await server.ssrLoadModule('/src/workflow/nodeFactory.ts'); + const { captureWorkflowOperationContext } = await server.ssrLoadModule('/src/stores/useStudioStore.ts'); + for (const intent of ['new node', 'clear selection']) + await t.test(intent, async () => { + await setup(); + const previousId = flow.getState().nodes[0].id; + await flow.getState().onNodesChange([{ type: 'select', id: previousId, selected: true }]); + const before = flow.getState().toObject(); + const graph = structuredClone(before); + let nextId = null; + if (intent === 'new node') { + const next = createNodeFromRegistry('modules.Image.Preview', fixture.registry, { x: 2100, y: 0 }); + assert.ok(next); + next.selected = true; + nextId = next.id; + graph.nodes.push(next); + } else graph.nodes[0].selected = false; + transaction.commitOperationGraph( + graph, + captureWorkflowOperationContext(), + transaction.operationGraphSignature(before), + 'Explicit selection intent', + { preserveSelection: true }, + ); + assert.deepEqual( + flow + .getState() + .nodes.filter((node) => node.selected) + .map((node) => node.id), + nextId ? [nextId] : [], + ); + }); +}); + test('a raw unclaimed text-generator graph still requires an ordinary visible output path', async () => { const { createNodeFromRegistry } = await server.ssrLoadModule('/src/workflow/nodeFactory.ts'); const provider = createNodeFromRegistry(child.roles[0][1], fixture.registry, { x: 0, y: 0 }); @@ -599,6 +849,33 @@ test('synthetic fresh and warm observations require task/request/source correlat }); }); +test('a verified Preview cannot Apply after a worker or backend source rollover, without changing the document', async (t) => { + for (const field of ['worker', 'source']) + await t.test(field, async () => { + const originalRuntime = structuredClone(worker); + try { + const { ownerId } = await setup(); + await preview.enablePromptEnhancement(ownerId); + const run = await preview.startPromptEnhancementPreview(ownerId, child.id); + syntheticEnvelope(run); + const ticket = await preview.finishPromptEnhancementPreview(run); + const before = structuredClone(flow.getState().toObject()); + const history = flow.getState().historyPast.length; + // Only the fresh Apply read observes the rollover; same DTOs/epochs stay unchanged. + onRuntime = () => { + if (field === 'worker') worker.instance = 'replacement-worker'; + else worker.backend_source.fingerprint = `sha256:backend-source-v1:${'d'.repeat(64)}`; + }; + await assert.rejects(preview.applyPromptEnhancementPreview(ticket), /worker or backend source changed/); + assert.deepEqual(flow.getState().toObject(), before); + assert.equal(flow.getState().historyPast.length, history); + } finally { + onRuntime = null; + Object.assign(worker, originalRuntime); + } + }); +}); + test('normal running and completed node status cannot stale an otherwise unchanged Preview or Apply', async () => { const { ownerId } = await setup(); await preview.enablePromptEnhancement(ownerId); diff --git a/scripts/prompt-enhancement-summary.test.mjs b/scripts/prompt-enhancement-summary.test.mjs index d3767f77..5f067b35 100644 --- a/scripts/prompt-enhancement-summary.test.mjs +++ b/scripts/prompt-enhancement-summary.test.mjs @@ -196,6 +196,210 @@ const parse = (value) => contract.parsePromptEnhancementSummary(JSON.stringify(v const verify = ({ value, expected }) => contract.verifyPromptEnhancementSummaryBindings(JSON.stringify(value), expected); +// Explicitly synthetic composition protocol: not a captured model response. +function appendFixture({ + images = 0, + authored = layout(), + prompt = ' Keep exactly.\n', + nativeText = ' Additional visual wording 😀.\n', +} = {}) { + const input = fixture({ images, layout: authored, prompt }); + const mode = images ? 'i2i' : 't2i'; + input.value.consumedInput.fingerprints.operation = 'enhance_prompt_append_details'; + input.value.consumedInput.fingerprints.system_prompt_mode = mode; + input.value.request.consumedInputSha256 = sha(canonical(input.value.consumedInput)); + Object.assign(input.value.proposal, { + mode, + text: null, + layoutOutputValidated: true, + structuredProposal: { + schemaVersion: 3, + kind: 'caption-append-preserve-layout-v1', + caption: prompt + '\n\n' + nativeText, + layoutConditioning: copy(authored), + nativeText, + }, + }); + Object.assign(input.expected, { + operation: 'enhance_prompt_append_details', + layoutPolicy: 'append-details-preserve-layout-v1', + }); + return input; +} + +test('append-details verifies exact Unicode caption composition and the entire unchanged authored layout', async (t) => { + for (const images of [0, 1, 10]) + await t.test(`plain native mode with ${images} references`, async () => { + const input = appendFixture({ images }); + const result = await verify(input); + assert.deepEqual(result, input.value); + assert.equal(result.proposal.mode, images ? 'i2i' : 't2i'); + assert.equal( + result.proposal.structuredProposal.caption, + input.expected.authoredPrompt + '\n\n' + result.proposal.structuredProposal.nativeText, + ); + assert.deepEqual(result.proposal.structuredProposal.layoutConditioning, input.expected.authoredLayout); + assert.equal(Object.hasOwn(result.proposal.structuredProposal, 'rawTable'), false); + assert.equal(result.proposal.semanticFidelityVerified, false); + }); + const source = layout(); + Object.assign(source.regions[0], { + action: 'relocate', + targetBox: [0.10001, 0.2, 0.4, 0.7], + source: { referenceIndex: 0, box: [0, 0, 1, 1], expectedReferenceId: sha('authored binding') }, + }); + const input = appendFixture({ images: 1, authored: source, prompt: 'Keep from .' }); + assert.deepEqual( + (await verify(input)).proposal.structuredProposal.layoutConditioning, + source, + 'No native geometry conversion or rounding is involved in composition.', + ); + const legacy = appendFixture({ authored: layout(1) }); + assert.equal((await verify(legacy)).proposal.structuredProposal.layoutConditioning.schemaVersion, 1); +}); + +test('append-details requires the independent current policy and operation, never an untrusted kind alone', async () => { + for (const mutate of [ + (x) => { + delete x.expected.layoutPolicy; + }, + (x) => { + delete x.expected.operation; + }, + (x) => { + x.expected.layoutPolicy = 'preserve-authored-v1'; + }, + (x) => { + x.value.consumedInput.fingerprints.operation = 'enhance_prompt'; + }, + (x) => { + x.value.proposal.mode = x.value.consumedInput.fingerprints.system_prompt_mode = 't2i_bbox'; + }, + (x) => { + x.value.proposal.structuredProposal.rawTable = []; + }, + (x) => { + x.value.proposal.text = 'not a public text output'; + }, + ]) { + const input = appendFixture(); + mutate(input); + await assert.rejects(verify(input)); + } + const rejected = appendFixture(); + Object.assign(rejected.value.proposal, { + structuredProposal: null, + applicationAllowed: false, + layoutOutputValidated: false, + applicationBlockedReason: 'Plain wording was refused.', + }); + assert.equal((await verify(rejected)).proposal.applicationAllowed, false); +}); + +test('append-details rejects every authored caption/layout alteration including descriptions and source identity', async () => { + for (const mutate of [ + (s) => { + s.caption = s.caption.trimStart(); + }, + (s) => { + s.caption = s.caption.replace('\n\n', '\n'); + }, + (s) => { + s.caption = 'Replacement caption .\n\n' + s.nativeText; + }, + (s) => { + s.layoutConditioning.regions[0].description = 'Edited description'; + }, + (s) => { + s.layoutConditioning.regions[0].targetBox[0] += 0.01; + }, + (s) => { + s.layoutConditioning.regions[0].id = 'foreign'; + }, + (s) => { + s.layoutConditioning.schemaVersion = 1; + delete s.layoutConditioning.regions[0].action; + }, + ]) { + const input = appendFixture(); + mutate(input.value.proposal.structuredProposal); + await assert.rejects(verify(input)); + } + const source = layout(); + Object.assign(source.regions[0], { + action: 'remove', + targetBox: null, + source: { referenceIndex: 0, box: [0, 0, 1, 1], expectedReferenceId: sha('current ref') }, + }); + const input = appendFixture({ images: 1, authored: source }); + input.value.proposal.structuredProposal.layoutConditioning.regions[0].source.expectedReferenceId = sha('stale ref'); + await assert.rejects(verify(input), /complete authored layout/); +}); + +test('append-details refuses unsafe suffix grammar, malformed tags and existing byte limits without rewriting text', async () => { + for (const nativeText of [ + '', + ' ', + '', + 'unclosed <', + '```text```', + '~~~text~~~', + 'A paragraph [{"id":"extra"}]', + 'A paragraph []', + 'A mixed trailing table [{"id":"extra"},3]', + '\ud800', + 'bad\u0000text', + ]) { + await assert.rejects(verify(appendFixture({ nativeText }))); + } + for (const nativeText of [ + 'A malformed table [{', + 'A mid-sentence [{"id":"example"}] remains prose.', + 'Quoted [wording], {variables}, 2 * 3, and a list: [1,2].', + '**Visual wording** stays exact.', + ]) { + const input = appendFixture({ nativeText }); + assert.equal((await verify(input)).proposal.structuredProposal.nativeText, nativeText); + } + for (const prompt of [ + 'No authored tag.', + ' ', + ' ', + ' ', + ' incomplete <', + '>', + ]) + await assert.rejects(verify(appendFixture({ prompt }))); + await assert.rejects( + verify(appendFixture({ nativeText: 'x'.repeat(131073) })), + /existing ASCII projection guard exceeded/, + ); + await assert.rejects( + verify(appendFixture({ nativeText: '😀'.repeat(65537) })), + /existing ASCII projection guard exceeded/, + ); +}); + +test('append-details finds trailing tables after ordinary, multiple or unmatched prose brackets', async () => { + for (const nativeText of [ + 'A [red] accent. [{"id":"fox","bbox":[0,0,1000,1000]}]', + 'A [red] accent. []', + 'First [1,2] and [3,4]. [{"description":"a table"}]', + 'An unmatched [ prose prefix. [{"description":"a table"}]', + 'An unmatched [ prose prefix. []', + 'A duplicate region table [{"id":"one","id":"two","bbox":[0,0,1000,1000]}]', + '[red] '.repeat(33), + ]) + await assert.rejects(verify(appendFixture({ nativeText }))); + for (const nativeText of [ + 'A [red] accent with no table.', + 'An incomplete table [{"id":"one"}', + 'A duplicate ordinary object table [{"note":"one","note":"two"}]', + '[0]'.repeat(9), + ]) + assert.equal((await verify(appendFixture({ nativeText }))).proposal.structuredProposal.nativeText, nativeText); +}); + test('structured source proposals preserve authored binding and remap only a unique exact native table', async () => { const authored = layout(); authored.regions[0].action = 'relocate'; diff --git a/scripts/resolved-execution-inputs.test.mjs b/scripts/resolved-execution-inputs.test.mjs index 0dcda352..ce73bfa2 100644 --- a/scripts/resolved-execution-inputs.test.mjs +++ b/scripts/resolved-execution-inputs.test.mjs @@ -1168,6 +1168,18 @@ test('paired backend prompt-enhancement and ordinary receipts survive exact hist assert.equal(enhanced.summary.modelType, undefined, 'capture does not grant an image model identity'); }); +test('captured append-details operation survives the ordinary output receipt parser', () => { + const capture = enhancementReceipt(); + capture.summary.textOperation = 'enhance_prompt_append_details'; + for (const node of capture.nodes) { + if (node.fields.operation) node.fields.operation.value = 'enhance_prompt_append_details'; + } + assert.equal( + inputs.coerceResolvedExecutionInputs(capture, enhancementIdentity(capture)).summary.textOperation, + 'enhance_prompt_append_details', + ); +}); + const enhancementNames = { operation: 'textOperation', enhancement_max_new_tokens: 'enhancementMaxNewTokens', diff --git a/scripts/run-coordinator.test.mjs b/scripts/run-coordinator.test.mjs index 813d83ad..4aaf14aa 100644 --- a/scripts/run-coordinator.test.mjs +++ b/scripts/run-coordinator.test.mjs @@ -2631,6 +2631,33 @@ test('background cache preparation belongs to its task without notifying the act ); }); +test('websocket parsing accepts a pre-node terminal failure without a null optional node name', () => { + // Producer contract: an ownership error can occur before execute_node supplies + // a node name. This is a serialized schema fixture, not a captured live frame. + const terminal = { + type: 'task_failed', + task_id: 'early-owner-failure', + sid: 'session-1', + node: null, + status: 'failed', + message: 'Ancillary owner boundary: foreign cached owner.', + exception_type: 'AncillaryOwnerError', + category: 'execution', + error_code: 'ancillary_owner_boundary', + oom: false, + current: null, + queued: {}, + }; + assert.deepEqual(websocketModule.parseWebsocketMessage(JSON.stringify(terminal)), terminal); + assert.equal(websocketModule.parseWebsocketMessage(JSON.stringify({ ...terminal, node_name: null })), null); + const knownNode = { + ...terminal, + node: 'provider', + node_name: 'modules.HuggingFaceTransformers.LoadImageTextToTextModel', + }; + assert.deepEqual(websocketModule.parseWebsocketMessage(JSON.stringify(knownNode)), knownNode); +}); + test('websocket parsing accepts handled Auto events and rejects malformed typed payloads', () => { assert.deepEqual( websocketModule.parseWebsocketMessage( diff --git a/src/components/OutputGalleryPanel.tsx b/src/components/OutputGalleryPanel.tsx index a72d1dca..92db9f73 100644 --- a/src/components/OutputGalleryPanel.tsx +++ b/src/components/OutputGalleryPanel.tsx @@ -33,7 +33,6 @@ import { outputTaskDisplay } from '../studio/outputTaskDisplay'; import { encodedVideoMetadata, videoOutputSummary } from '../studio/outputUtils'; import { outputText, outputTextType, textOutputViewerOpener } from '../studio/outputText'; import { exportMedia } from '../studio/mediaCapabilities'; -import { validateCurrentRun } from '../studio/runReadiness'; import { prepareExecutionScope } from '../workflow/prepareExecutionScope'; import { coordinateGraphRun } from '../studio/runCoordinator'; import { ensureStudioAutoPlanReadyForRun } from '../studio/useStudioRunActions'; @@ -272,7 +271,6 @@ export default function OutputGalleryPanel({ modalView = false }: { modalView?: setRightPanelTab('studio'); setGalleryLibraryOpen(false); enqueueSnackbar('Workflow package imported', { variant: 'success', autoHideDuration: 2200 }); - window.setTimeout(() => validateCurrentRun({ sid, isConnected, includeStudio: true, showDialog: true }), 0); } catch (error) { enqueueSnackbar(String(error), { variant: 'error', autoHideDuration: 6000 }); } diff --git a/src/components/PromptEnhancementControls.tsx b/src/components/PromptEnhancementControls.tsx index 7db5594c..4d7ffd09 100644 --- a/src/components/PromptEnhancementControls.tsx +++ b/src/components/PromptEnhancementControls.tsx @@ -127,7 +127,10 @@ export default function PromptEnhancementControls({ setRun(next); setMessage('Preview submitted. Follow progress in Session activity.'); }; - const text = details.summary?.proposal.structuredProposal?.caption ?? details.summary?.proposal.text; + const structured = details.summary?.proposal.structuredProposal; + const append = structured?.schemaVersion === 3 || declaration?.layoutPolicy === 'append-details-preserve-layout-v1'; + const text = + structured?.schemaVersion === 3 ? structured.nativeText : (structured?.caption ?? details.summary?.proposal.text); return (
+ {append ? ( +

+ Appends proposed wording; authored layout stays unchanged. +

+ ) : null}
{!binding ? ( + role === verification.requestInputs.role && + field === verification.requestInputs.operationField && + value === 'enhance_prompt_append_details', + )) + ) + invalidAncillary('append-details needs its declared operation and verification metadata.'); if (Object.prototype.hasOwnProperty.call(item, 'fieldOverrides')) { const selected = new Set(); for (const raw of collection(item.fieldOverrides, 32)) { diff --git a/src/studio/promptEnhancementAuthoring.ts b/src/studio/promptEnhancementAuthoring.ts index 243ffe7a..05dec0b8 100644 --- a/src/studio/promptEnhancementAuthoring.ts +++ b/src/studio/promptEnhancementAuthoring.ts @@ -153,15 +153,35 @@ function authoredPair(graph: OperationGraph, ownerId: string, child: AncillaryOp } function assertDeclaredLayout(child: AncillaryOperation, layout: unknown) { + if ( + child.layoutPolicy === 'append-details-preserve-layout-v1' && + (!layout || + typeof layout !== 'object' || + !Array.isArray((layout as { regions?: unknown }).regions) || + !(layout as { regions: unknown[] }).regions.length) + ) + invalidAncillary('appended wording requires the current authored regions.'); if ( layout !== null && child.verification && !child.verification.supportedPromptModes.some( - (mode) => mode === (child.bindings.owner.referenceSource ? 'i2i_bbox' : 't2i_bbox'), + (mode) => + mode === + (child.bindings.owner.referenceSource + ? child.layoutPolicy === 'append-details-preserve-layout-v1' + ? 'i2i' + : 'i2i_bbox' + : child.layoutPolicy === 'append-details-preserve-layout-v1' + ? 't2i' + : 't2i_bbox'), ) ) invalidAncillary('this enhancement does not support authored layout objects. Keep the raw prompt/layout path.'); - if (layout !== null && child.layoutPolicy !== 'preserve-authored-v1') + if ( + layout !== null && + child.layoutPolicy !== 'preserve-authored-v1' && + child.layoutPolicy !== 'append-details-preserve-layout-v1' + ) invalidAncillary('this enhancement does not declare lossless authored-layout preservation.'); } @@ -348,6 +368,16 @@ export async function planApplyPromptEnhancement( }; if (canonicalBlockStringifyV2(geometry(authoredLayout)) !== canonicalBlockStringifyV2(geometry(proposedLayout))) invalidAncillary('a prompt enhancement cannot change authored layout identities or geometry.'); + if ( + child.layoutPolicy === 'append-details-preserve-layout-v1' && + (!pair.prompt.startsWith(original.prompt + '\n\n') || pair.prompt.length === original.prompt.length + 2) + ) + invalidAncillary('appended wording must retain the exact authored caption prefix.'); + if ( + child.layoutPolicy === 'append-details-preserve-layout-v1' && + canonicalBlockStringifyV2(original.layout) !== canonicalBlockStringifyV2(pair.layout) + ) + invalidAncillary('appended wording cannot change any authored layout field.'); owner.data.params[child.bindings.owner.promptField]!.value = pair.prompt; owner.data.params[child.bindings.owner.layoutField]!.value = structuredClone(pair.layout); owner.data.operationAuthoring!.ancillaryParent = { diff --git a/src/studio/promptEnhancementPreview.ts b/src/studio/promptEnhancementPreview.ts index 6386cc23..61c7eef7 100644 --- a/src/studio/promptEnhancementPreview.ts +++ b/src/studio/promptEnhancementPreview.ts @@ -211,7 +211,9 @@ export async function enablePromptEnhancement(ownerId: string, childId?: string, selected.definition, ); selected.assertCurrent(); - commitOperationGraph(graph, selected.context, selected.signature, 'Enable prompt enhancement'); + commitOperationGraph(graph, selected.context, selected.signature, 'Enable prompt enhancement', { + preserveSelection: true, + }); return structuredClone(child); } @@ -228,7 +230,9 @@ export async function disablePromptEnhancement(ownerId: string, childId: string, const child = chooseChild(selected.recipe, childId); const graph = await planDisablePromptEnhancement(selected.graph, ownerId, selected.recipe, child.id); selected.assertCurrent(); - commitOperationGraph(graph, selected.context, selected.signature, 'Disable prompt enhancement'); + commitOperationGraph(graph, selected.context, selected.signature, 'Disable prompt enhancement', { + preserveSelection: true, + }); } /** Local task handle only; server dispatch/owner policy still decides admission. */ @@ -267,7 +271,9 @@ export async function startPromptEnhancementPreview(ownerId: string, childId: st selected.assertCurrent(); assertIdleSession(); if (operationGraphSignature(graph) !== selected.signature) - commitOperationGraph(graph, selected.context, selected.signature, 'Prepare prompt enhancement request'); + commitOperationGraph(graph, selected.context, selected.signature, 'Prepare prompt enhancement request', { + preserveSelection: true, + }); const { owner } = promptEnhancementOwner(ownerId); const bindings = owner.data.operationAuthoring?.ancillaryBindings; const binding = bindings?.length === 1 ? bindings[0] : undefined; @@ -330,6 +336,7 @@ function equal(actual: unknown, expected: unknown, label: string) { async function currentRuntime() { return requestJson(`${config.serverAddress}/runtime/status`, { + cache: 'no-store', parse: (value) => { const item = record(value), source = record(item.backend_source); @@ -577,7 +584,9 @@ export async function finishPromptEnhancementPreview(run: PromptEnhancementPrevi ...verification.modelReceipt, runtime: { ...verification.modelReceipt.runtime, dtype, device, quantization }, }; - equal(literal(state, request.role, request.operationField), 'enhance_prompt', 'selected text operation'); + const operation = + child.layoutPolicy === 'append-details-preserve-layout-v1' ? 'enhance_prompt_append_details' : 'enhance_prompt'; + equal(literal(state, request.role, request.operationField), operation, 'selected text operation'); const expectedControls = { max_new_tokens: literal(state, request.role, request.maxNewTokensField), min_new_tokens: literal(state, request.role, request.minNewTokensField), @@ -600,7 +609,7 @@ export async function finishPromptEnhancementPreview(run: PromptEnhancementPrevi if (!child.bindings.owner.referenceSource && references.length) invalidAncillary('text-only enhancement has unexpected references.'); const mode = - `${references.length ? 'i2i' : 't2i'}${authoredLayout?.regions.length ? '_bbox' : ''}` as PromptEnhancementMode; + `${references.length ? 'i2i' : 't2i'}${authoredLayout?.regions.length && child.layoutPolicy !== 'append-details-preserve-layout-v1' ? '_bbox' : ''}` as PromptEnhancementMode; const verified = await verifyPromptEnhancementSummaryBindings(envelope.value, { producer, adapter: verification.adapter, @@ -610,6 +619,8 @@ export async function finishPromptEnhancementPreview(run: PromptEnhancementPrevi controls: expectedControls, systemPromptSha256: verification.systemPromptSha256ByMode[mode], references, + operation, + ...(child.layoutPolicy ? { layoutPolicy: child.layoutPolicy } : {}), }); selected.assertCurrent(); assertRunCurrent(run); @@ -654,8 +665,12 @@ export async function applyPromptEnhancementPreview(ticket: VerifiedPromptEnhanc pair, state.originalPairHash, ); + // A verified ticket remains owned by the worker/source that produced it, even after model release. + equal(await currentRuntime(), previewRuns.get(state.run)!.runtime, 'worker or backend source'); selected.assertCurrent(); assertRunCurrent(state.run); - commitOperationGraph(graph, selected.context, selected.signature, 'Apply prompt enhancement'); + commitOperationGraph(graph, selected.context, selected.signature, 'Apply prompt enhancement', { + preserveSelection: true, + }); verifiedPreviews.delete(ticket); } diff --git a/src/studio/promptEnhancementSummary.ts b/src/studio/promptEnhancementSummary.ts index 38f3e3ba..2e846499 100644 --- a/src/studio/promptEnhancementSummary.ts +++ b/src/studio/promptEnhancementSummary.ts @@ -64,7 +64,7 @@ export type EnhancementConsumedInput = { references: EnhancementReference[]; processedImageGrid: [number, number, number][]; fingerprints: { - operation: 'enhance_prompt'; + operation: 'enhance_prompt' | 'enhance_prompt_append_details'; enhancement_max_new_tokens: number; prompt_adapter_id: string; system_prompt_mode: PromptEnhancementMode; @@ -82,13 +82,21 @@ export type EnhancementConsumedInput = { export type EnhancementTargetRow = | { id: string; bbox: [number, number, number, number]; desc: string } | { id: string; from: string; src_bbox: number[] | null; tgt_bbox: number[] | null; desc: string }; -export type EnhancementStructuredProposal = { +type NativeStructuredProposal = { schemaVersion: 1 | 2; caption: string; rawCaption?: string; layoutConditioning: LayoutConditioning; rawTable: EnhancementTargetRow[]; }; +export type ComposedEnhancementProposal = { + schemaVersion: 3; + kind: 'caption-append-preserve-layout-v1'; + caption: string; + layoutConditioning: LayoutConditioning; + nativeText: string; +}; +export type EnhancementStructuredProposal = NativeStructuredProposal | ComposedEnhancementProposal; type EnhancementCompletion = { finishReason: 'stop' | 'length'; inputTokens: number; @@ -109,13 +117,21 @@ export type EnhancementProposal = EnhancementCompletion & | { mode: 't2i_bbox' | 'i2i_bbox'; text: null; - structuredProposal: EnhancementStructuredProposal; + structuredProposal: NativeStructuredProposal; applicationAllowed: true; layoutOutputValidated: true; applicationBlockedReason: null; } | { - mode: 't2i_bbox' | 'i2i_bbox'; + mode: 't2i' | 'i2i'; + text: null; + structuredProposal: ComposedEnhancementProposal; + applicationAllowed: true; + layoutOutputValidated: true; + applicationBlockedReason: null; + } + | { + mode: PromptEnhancementMode; text: null; structuredProposal: null; applicationAllowed: false; @@ -488,7 +504,7 @@ function parseConsumed( ...(references.length ? processed : []), ]); if ( - fingerprint.operation !== 'enhance_prompt' || + (fingerprint.operation !== 'enhance_prompt' && fingerprint.operation !== 'enhance_prompt_append_details') || fingerprint.enhancement_max_new_tokens !== controls.max_new_tokens || fingerprint.prompt_adapter_id !== adapterId || !MODES.some((mode) => mode === fingerprint.system_prompt_mode) @@ -562,12 +578,161 @@ function targetLayout(value: unknown): LayoutConditioning { return parsed; } +/** Detect only a bounded, genuine trailing dictionary table, matching the producer. */ +function decodeAppendTable(value: string): unknown { + // Match the producer's duplicate-key decoder without applying summary-envelope + // entry/key budgets to plain native text embedded inside a JSON string. + const stack: (Set | null)[] = []; + for (let index = 0; index < value.length; index++) { + const character = value[index]; + if (character === '"') { + let end = index + 1; + for (; end < value.length; end++) { + if (value[end] === '\\') end++; + else if (value[end] === '"') break; + } + const decoded: unknown = JSON.parse(value.slice(index, end + 1)); + let next = end + 1; + while (next < value.length && /\s/u.test(value[next]!)) next++; + const keys = stack[stack.length - 1]; + if (keys && value[next] === ':') { + if (typeof decoded !== 'string' || keys.has(decoded)) throw new Error('Duplicate native table key.'); + keys.add(decoded); + } + index = end; + } else if (character === '{' || character === '[') stack.push(character === '{' ? new Set() : null); + else if (character === '}' || character === ']') stack.pop(); + } + return JSON.parse(value); +} + +function hasTrailingAppendTable(value: string): boolean { + // The producer's existing competing-region detector accepts JSON duplicate + // keys here, then its strict decoder handles other dictionary tables below. + let attempts = 0; + for (const match of value.matchAll(/\[\s*\{/gu)) { + if (attempts++ >= 32) invalid('native details contain too many JSON candidates.'); + let rows: unknown; + try { + rows = JSON.parse(value.slice(match.index)); + } catch { + continue; + } + if ( + Array.isArray(rows) && + rows.some( + (row) => + row && + typeof row === 'object' && + !Array.isArray(row) && + 'id' in row && + ['bbox', 'src_bbox', 'tgt_bbox'].some((key) => key in row), + ) + ) + return true; + } + attempts = 0; + for (let index = 0; index < value.length; index++) + if (value[index] === '[') { + if (attempts++ >= 32) invalid('native details contain too many JSON candidates.'); + if (parseTrailingAppendTable(value.slice(index))) return true; + } + return false; +} + +function parseTrailingAppendTable(value: string): boolean { + let start: number | null = null, + stack: string[] = [], + quoted = false, + escaped = false, + attempts = 0; + const decoded: { end: number; rows: unknown }[] = []; + const end = value.trimEnd().length; + for (let index = 0; index < value.length; index++) { + const character = value[index]!; + if (start === null) { + if (character === '[') { + if (++attempts > 32) return false; + start = index; + stack = ['[']; + quoted = false; + escaped = false; + } + continue; + } + if (quoted) { + if (escaped) escaped = false; + else if (character === '\\') escaped = true; + else if (character === '"') quoted = false; + continue; + } + if (character === '"') quoted = true; + else if (character === '[' || character === '{') { + stack.push(character); + if (stack.length > 8) return false; + } else if (character === ']' || character === '}') { + if (!stack.length || (stack[stack.length - 1] === '[' ? character !== ']' : character !== '}')) return false; + stack.pop(); + if (!stack.length) { + try { + decoded.push({ end: index + 1, rows: decodeAppendTable(value.slice(start, index + 1)) }); + } catch { + if (index + 1 === end) return false; + } + start = null; + } + } + } + if (start !== null || decoded.length !== 1 || decoded[0]!.end !== end) return false; + const rows = decoded[0]!.rows; + return ( + Array.isArray(rows) && + (!rows.length || rows.some((row) => row !== null && typeof row === 'object' && !Array.isArray(row))) + ); +} + function parseStructured( value: unknown, mode: PromptEnhancementMode, imageCount: number, ): EnhancementStructuredProposal { const version = value && typeof value === 'object' ? (value as Record).schemaVersion : null; + if (version === 3) { + const item = object(value, ['schemaVersion', 'kind', 'caption', 'layoutConditioning', 'nativeText']); + if (item.kind !== 'caption-append-preserve-layout-v1') invalid('unsupported composed proposal.'); + const caption = text(item.caption, 262144, 131072, true); + const nativeText = text(item.nativeText, 262144, 131072, true); + if ( + /[<>]/u.test(nativeText) || + nativeText.includes('```') || + nativeText.includes('~~~') || + hasTrailingAppendTable(nativeText) + ) + invalid('appended wording must be plain text without tags, Markdown fences or a trailing table.'); + const layout = parseLayoutConditioning(item.layoutConditioning); + if (!layout?.regions.length) invalid('composed wording requires authored regions.'); + const tags = [...caption.matchAll(/<([^<>]*)>/gu)].map((match) => match[1]!); + if (/[<>]/u.test(caption.replace(/<[^<>]*>/gu, ''))) invalid('authored caption has malformed tags.'); + for (const region of layout.regions) { + if (tags.filter((tag) => tag === region.id).length !== 1) + invalid('authored caption must cite each region exactly once.'); + if (region.source && region.source.referenceIndex >= imageCount) + invalid('authored source differs from actual references.'); + } + for (const tag of tags) { + if (layout.regions.some((region) => region.id === tag)) continue; + const reference = /^ref_image_(0|[1-9][0-9]?)$/u.exec(tag); + if (!reference || Number(reference[1]) >= imageCount) invalid('authored caption cites an unknown reference.'); + } + jsonBudget(item, 262144); + return { + schemaVersion: 3, + kind: 'caption-append-preserve-layout-v1', + caption, + layoutConditioning: layout, + nativeText, + }; + } const item = object(value, [ 'schemaVersion', 'caption', @@ -676,13 +841,28 @@ function parseProposal(value: unknown, consumed: EnhancementConsumedInput, contr ]); if (item.mode !== consumed.fingerprints.system_prompt_mode) invalid('proposal mode differs from consumed input.'); const mode = item.mode as PromptEnhancementMode; + const append = consumed.fingerprints.operation === 'enhance_prompt_append_details'; + if (append && mode !== 't2i' && mode !== 'i2i') invalid('append-details requires a plain native prompt mode.'); const generated = integer(item.generatedTokens, 1, controls.max_new_tokens); integer(item.inputTokens, 1, 32768); if (item.finishReason !== (generated === controls.max_new_tokens ? 'length' : 'stop')) invalid('finish reason differs from token count.'); if (item.applyRequired !== true || item.semanticFidelityVerified !== false) invalid('proposal cannot assert implicit application or semantic fidelity.'); - if (mode === 't2i' || mode === 'i2i') { + if (append) { + if (item.text !== null) invalid('composed public text must remain null.'); + if (item.layoutOutputValidated === true) { + if (item.applicationAllowed !== true || item.applicationBlockedReason !== null) + invalid('contradictory composed flags.'); + const structured = parseStructured(item.structuredProposal, mode, consumed.references.length); + if (structured.schemaVersion !== 3) invalid('append-details requires its composed proposal kind.'); + item.structuredProposal = structured; + } else { + if (item.layoutOutputValidated !== false || item.applicationAllowed !== false || item.structuredProposal !== null) + invalid('contradictory rejected composition flags.'); + text(item.applicationBlockedReason, 16384, 4096, true); + } + } else if (mode === 't2i' || mode === 'i2i') { text(item.text, 1048576, 262144, true); if ( item.structuredProposal !== null || @@ -696,7 +876,9 @@ function parseProposal(value: unknown, consumed: EnhancementConsumedInput, contr if (item.layoutOutputValidated === true) { if (item.applicationAllowed !== true || item.applicationBlockedReason !== null) invalid('contradictory valid layout flags.'); - item.structuredProposal = parseStructured(item.structuredProposal, mode, consumed.references.length); + const structured = parseStructured(item.structuredProposal, mode, consumed.references.length); + if (structured.schemaVersion === 3) invalid('proposal kind differs from the consumed operation.'); + item.structuredProposal = structured; } else { if (item.layoutOutputValidated !== false || item.applicationAllowed !== false || item.structuredProposal !== null) invalid('contradictory invalid layout flags.'); @@ -762,6 +944,8 @@ export type ExpectedPromptEnhancementSummary = { controls: PromptEnhancementControls; systemPromptSha256: string; references: EnhancementReference[]; + operation?: EnhancementConsumedInput['fingerprints']['operation']; + layoutPolicy?: 'preserve-authored-v1' | 'append-details-preserve-layout-v1'; }; async function sha256(value: string): Promise { @@ -848,16 +1032,30 @@ export async function verifyPromptEnhancementSummaryBindings( expectedValue: ExpectedPromptEnhancementSummary, ): Promise { const summary = parsePromptEnhancementSummary(raw); - const expected = object(expectedSnapshot(expectedValue), [ - 'producer', - 'adapter', - 'modelReceipt', - 'authoredPrompt', - 'authoredLayout', - 'controls', - 'systemPromptSha256', - 'references', - ]); + const expected = object( + expectedSnapshot(expectedValue), + [ + 'producer', + 'adapter', + 'modelReceipt', + 'authoredPrompt', + 'authoredLayout', + 'controls', + 'systemPromptSha256', + 'references', + ], + ['operation', 'layoutPolicy'], + ); + const operation = expected.operation ?? 'enhance_prompt'; + if ( + (operation !== 'enhance_prompt' && operation !== 'enhance_prompt_append_details') || + (expected.layoutPolicy !== undefined && + expected.layoutPolicy !== 'preserve-authored-v1' && + expected.layoutPolicy !== 'append-details-preserve-layout-v1') || + (operation === 'enhance_prompt_append_details') !== (expected.layoutPolicy === 'append-details-preserve-layout-v1') + ) + invalid('operation differs from the independently declared layout policy.'); + equal(summary.consumedInput.fingerprints.operation, operation, 'consumed operation'); equal(summary.producer, parseProducer(expected.producer), 'producer'); equal(summary.adapter, expected.adapter, 'adapter'); equal(summary.request.controls, parseControls(expected.controls), 'controls'); @@ -881,12 +1079,21 @@ export async function verifyPromptEnhancementSummaryBindings( ? null : await sha256(canonicalBlockStringifyV2({ kind: 'object', value: expected.authoredLayout })); if (layoutDigest !== summary.request.authoredLayoutSha256) invalid('authored layout digest differs.'); + const append = operation === 'enhance_prompt_append_details'; const bbox = summary.proposal.mode.endsWith('_bbox'); - if (bbox !== Boolean(layout?.regions.length)) invalid('mode differs from authored regions.'); + if (append ? bbox || !layout?.regions.length : bbox !== Boolean(layout?.regions.length)) + invalid('mode differs from the independently declared authored layout policy.'); if (summary.proposal.structuredProposal) { - targetLayout(layout); - const target = summary.proposal.structuredProposal.layoutConditioning; - equal(layoutGeometry(target), layoutGeometry(layout!), 'authored target geometry'); + const structured = summary.proposal.structuredProposal; + if (structured.schemaVersion === 3) { + if (expected.layoutPolicy !== 'append-details-preserve-layout-v1') + invalid('composed wording has no current policy.'); + equal(structured.caption, prompt + '\n\n' + structured.nativeText, 'exact authored caption composition'); + equal(structured.layoutConditioning, expected.authoredLayout, 'complete authored layout'); + } else { + targetLayout(layout); + equal(layoutGeometry(structured.layoutConditioning), layoutGeometry(layout!), 'authored target geometry'); + } } if ((await sha256(canonicalBlockStringifyV2(summary.consumedInput))) !== summary.request.consumedInputSha256) invalid('consumed input digest differs.'); diff --git a/src/studio/resolvedExecutionInputs.ts b/src/studio/resolvedExecutionInputs.ts index da887f9d..df2aa1ad 100644 --- a/src/studio/resolvedExecutionInputs.ts +++ b/src/studio/resolvedExecutionInputs.ts @@ -4,7 +4,7 @@ import type { WeightLoadingMode } from '../types/api'; type InputValue = string | number | boolean | null | (string | number | boolean | null)[]; export type ModelWeightFormat = 'native' | 'fp8r' | 'nvfp4'; -export type TextGenerationOperation = 'standard' | 'enhance_prompt'; +export type TextGenerationOperation = 'standard' | 'enhance_prompt' | 'enhance_prompt_append_details'; export type PromptEnhancementSystemMode = 't2i' | 'i2i' | 't2i_bbox' | 'i2i_bbox'; type InputField = { value: InputValue; @@ -192,7 +192,7 @@ function textGenerationInputValue(key: string, value: InputValue): boolean { const fingerprint = (item: unknown) => typeof item === 'string' && /^sha256:[0-9a-f]{64}$/u.test(item); switch (key) { case 'operation': - return value === 'standard' || value === 'enhance_prompt'; + return value === 'standard' || value === 'enhance_prompt' || value === 'enhance_prompt_append_details'; case 'enhancement_max_new_tokens': return positiveInteger(value) && value <= 3584; case 'prompt_adapter_id': diff --git a/src/workflow/operationGraphTransaction.ts b/src/workflow/operationGraphTransaction.ts index e12e82c6..2319cd3d 100644 --- a/src/workflow/operationGraphTransaction.ts +++ b/src/workflow/operationGraphTransaction.ts @@ -39,6 +39,7 @@ export function commitOperationGraph( context: WorkflowOperationContext, signature: string, label: string, + options: { preserveSelection?: boolean } = {}, ) { assertWorkflowOperationContext(context, { includeForm: false }); const flow = useFlowStore.getState(); @@ -51,6 +52,11 @@ export function commitOperationGraph( try { const previousNodes = new Map(previous.nodes.map((node) => [node.id, node])); const currentNodes = new Map(current.nodes.map((node) => [node.id, node])); + // Only an explicit in-place refresh retains its mounted inspector. Ordinary + // graph replacements keep their established clear-selection behavior. + const retainSelection = + options.preserveSelection === true && !graph.nodes.some((node) => node.selected !== undefined); + const liveSelection = new Map(flow.nodes.map((node) => [node.id, node.selected])); flow.replaceGraph( { ...graph, @@ -58,9 +64,12 @@ export function commitOperationGraph( const original = previousNodes.get(node.id); // Keep refreshed availability on untouched siblings, rather than // restoring the preview's older presentation metadata over them. - return original && JSON.stringify(reviewNode(node)) === JSON.stringify(reviewNode(original)) - ? (currentNodes.get(node.id) ?? node) - : node; + const next = + original && JSON.stringify(reviewNode(node)) === JSON.stringify(reviewNode(original)) + ? (currentNodes.get(node.id) ?? node) + : node; + const selected = liveSelection.get(node.id); + return retainSelection && selected !== undefined ? { ...next, selected } : next; }), }, { clearRemovedCache: true }, diff --git a/tests/e2e/studio-mocked/studio-mocked.spec.ts b/tests/e2e/studio-mocked/studio-mocked.spec.ts index c2b9ca0e..785e4109 100644 --- a/tests/e2e/studio-mocked/studio-mocked.spec.ts +++ b/tests/e2e/studio-mocked/studio-mocked.spec.ts @@ -13,6 +13,7 @@ import { AUDIO_TEMPLATE_EXECUTION_SELECTIONS, } from '../../../src/studio/templateOperationSelections'; import { STUDIO_TEMPLATES } from '../../../src/studio/templates'; +import { hashString, stableStringify } from '../../../src/studio/stableHash'; import { REGISTERED_BLOCK_V2_ROUTES } from '../../../src/studio/registeredBlockV2Routes'; import { acknowledgementRequiredForTemplate } from '../../../src/studio/modelUsagePolicies'; import type { NodeData } from '../../../src/stores/useNodeStore'; @@ -800,6 +801,312 @@ test('mounted ancillary readiness resolves current declarations before classifyi expect(renderErrors).toEqual([]); }); +for (const appendDetails of [false, true]) + test( + appendDetails + ? 'fixed Studio inspector labels declared append-details and retains the authored layout through refused Preview' + : 'fixed Studio inspector retains a refreshed prompt Preview through terminal refusal', + async ({ page }) => { + await page.setViewportSize({ width: 1920, height: 1200 }); + await ensureFrontend(); + await installMockRoutes(page); + const starter = JSON.parse( + await fs.readFile(path.join(CLIENT_ROOT, 'tests/fixtures/prompt-enhancement-starter.v1.json'), 'utf8'), + ); + const current = JSON.parse( + await fs.readFile(path.join(CLIENT_ROOT, 'tests/fixtures/ancillary-fp32-t2i-authoring.v1.json'), 'utf8'), + ).parents[0]; + const response = { ...starter.response, authoring: JSON.parse(current.rawParentJson) }; + const registry = { ...starter.registry, ...current.registry }; + if (appendDetails) { + // Synthetic additive declaration for a no-model interaction fixture only. + const parent = response.authoring, + child = parent.ancillaryOperations[0]; + parent.id = parent.id.replace(/:v1$/u, ':v3'); + current.selection.authoringRecipeId = parent.id; + child.id = `${parent.id}:preview`; + child.parent.authoringRecipeId = parent.id; + child.layoutPolicy = 'append-details-preserve-layout-v1'; + const request = child.verification.requestInputs; + child.initialValues.find( + ([role, field]: [string, string]) => role === request.role && field === request.operationField, + )[2] = 'enhance_prompt_append_details'; + child.verification.layoutRequestSuffixSha256 = `sha256:${createHash('sha256').update('synthetic append request').digest('hex')}`; + const field = registry['modules.HuggingFaceTransformers.GenerateImageVideoText'].params.operation; + field.options.push({ + ...field.options.find(({ value }: { value: string }) => value === 'enhance_prompt'), + value: 'enhance_prompt_append_details', + label: 'enhance_prompt_append_details', + }); + const childBody = { ...child }; + delete childBody.contentHash; + child.contentHash = `studio-ancillary-v1-${hashString(stableStringify(childBody))}`; + const parentBody = { ...parent }; + delete parentBody.contentHash; + parent.contentHash = `studio-authoring-v1-${hashString(stableStringify(parentBody))}`; + } + const taskId = 'inspector-preview-refusal'; + const refusal = 'Synthetic Preview refused; the authored prompt is unchanged.'; + let submitted: ApiGraphExport | undefined; + let graphPosts = 0; + const automaticExecutionPosts: string[] = []; + page.on('request', (request) => { + const pathname = new URL(request.url()).pathname; + if (request.method() === 'POST' && /\/(?:graph|execute|install)(?:\/|$)/u.test(pathname)) + automaticExecutionPosts.push(pathname); + }); + let publishFailure: (() => void) | undefined; + await page.route('**/nodes', (route) => route.fulfill({ json: { instance: 'mock', nodes: registry } })); + await page.route('**/operations/starter', (route) => route.fulfill({ json: response })); + await page.route('**/fields/action', (route) => route.fulfill({ json: { error: false } })); + await page.route('**/runtime/status**', (route) => + route.fulfill({ + json: { + ready: true, + instance: 'mock', + backend_source: { fingerprint: `sha256:backend-source-v1:${'a'.repeat(64)}` }, + packages: { torch: { available: true, cuda_available: true, cuda_device_count: 1 } }, + }, + }), + ); + await page.route('**/graph', async (route) => { + expect(route.request().method()).toBe('POST'); + graphPosts++; + submitted = route.request().postDataJSON(); + await route.fulfill({ json: { error: false, sid: submitted!.sid, task_id: taskId } }); + }); + await page.routeWebSocket('**/ws**', (socket) => { + socket.send( + JSON.stringify({ type: 'welcome', sid: new URL(socket.url()).searchParams.get('sid'), instance: 'mock' }), + ); + publishFailure = () => { + if (!submitted) throw new Error('No owned Preview request was submitted.'); + socket.send( + JSON.stringify({ + type: 'task_failed', + sid: submitted.sid, + task_id: taskId, + client_run_id: submitted.runtimeHints?.clientRunId, + run_input_hash: submitted.runtimeHints?.runInputHash, + message: refusal, + current: null, + queued: {}, + }), + ); + }; + }); + await page.goto(FRONTEND_URL, { waitUntil: 'domcontentloaded' }); + await page.waitForFunction(() => Boolean(window.__MODIFF_E2E__)); + await dismissTaskLauncher(page); + await expect(page.getByTestId('startup-workspace-gate')).toHaveCount(0); + // The established constructor-trapped fixtures provide the initial document; + // selection, editing and Preview below use the mounted application's controls. + const { ownerId, requestId } = await page.evaluate( + async ({ starter, current, response, registry, appendDetails }) => { + const [{ useFlowStore }, { useStudioStore }, { useNodesStore }, workflow, preview] = await Promise.all([ + import('/src/stores/useFlowStore.ts'), + import('/src/stores/useStudioStore.ts'), + import('/src/stores/useNodeStore.ts'), + import('/src/studio/templateOperationWorkflow.ts'), + import('/src/studio/promptEnhancementPreview.ts'), + ]); + const { unpackVisualOperationGroups } = await import('/src/workflow/visualOperationGroupProjection.ts'); + const form = { + ...useStudioStore.getState().form, + modelType: starter.baseSpec.modelType, + mode: starter.baseSpec.mode, + resourceMode: 'expert' as const, + device: 'cpu', + offloadMode: 'none' as const, + autoOffload: false, + prompt: 'Authored inspector prompt.', + width: 1024, + height: 1024, + steps: starter.capability.recommendedSteps, + seed: 4201, + randomSeed: false, + maxSequenceLength: 8192, + }; + const graph = workflow.createTemplateOperationGraph( + { + id: 'inspector-preview-fixture', + label: 'Mocked inspector Preview fixture', + modelType: form.modelType, + mode: form.mode, + executionSelection: { ...current.selection, bindingSpec: { modelType: form.modelType, mode: form.mode } }, + }, + form, + response, + registry, + starter.baseSpec, + starter.capability, + ); + useStudioStore.setState({ + form: { + ...useStudioStore.getState().form, + resourceMode: 'expert', + device: 'cpu', + offloadMode: 'none', + autoOffload: false, + }, + graphBinding: null, + }); + useNodesStore.setState({ nodesRegistry: registry, operationContracts: starter.operationContracts }); + const ordinary = unpackVisualOperationGroups(graph).graph; + if (appendDetails) { + const owner = ordinary.nodes.find( + (node) => node.data.studioRole === response.authoring.ancillaryOperations[0].bindings.owner.role, + )!; + owner.data.params.prompt!.value = 'Authored inspector prompt .'; + owner.data.params.layout_conditioning!.value = { + schemaVersion: 2, + coordinateSpace: 'normalized_xyxy', + regions: [ + { + id: 'subject', + description: 'Original authored description.', + action: 'place', + targetBox: [0.2, 0.2, 0.8, 0.8], + }, + ], + }; + } + useFlowStore.getState().replaceGraph(ordinary); + const owner = ordinary.nodes.find( + (node) => + node.data.studioRole === response.authoring.ancillaryOperations[0].bindings.owner.role && + node.data.operationAuthoring?.ancillaryParent, + ); + if (!owner) throw new Error('The declared prompt owner is absent from the fixture.'); + await preview.enablePromptEnhancement(owner.id); + useFlowStore.getState().resetHistory(); + const binding = preview.promptEnhancementOwner(owner.id).owner.data.operationAuthoring! + .ancillaryBindings![0]!; + return { ownerId: owner.id, requestId: binding.roleNodes.proposal! }; + }, + { starter, current, response, registry, appendDetails }, + ); + // Import and Save persist an editable document; neither requests executable export authority. + const packageData = await page.evaluate(async () => { + const [{ useFlowStore }, { useStudioStore }, { buildWorkflowPackage }] = await Promise.all([ + import('/src/stores/useFlowStore.ts'), + import('/src/stores/useStudioStore.ts'), + import('/src/studio/workflowPackage.ts'), + ]); + return buildWorkflowPackage({ + graph: useFlowStore.getState().toObject(), + form: useStudioStore.getState().form, + }); + }); + await page.getByTestId('left-tab-assets').click(); + await page.getByTestId('left-open-gallery-library').click(); + await expect(page.getByRole('heading', { name: 'Output Gallery', exact: true })).toBeVisible(); + await page.getByTestId('gallery-import-workflow-input').setInputFiles({ + name: 'ancillary-enabled-workflow.json', + mimeType: 'application/json', + buffer: Buffer.from(JSON.stringify(packageData), 'utf8'), + }); + await page.waitForFunction(() => { + const state = window.__MODIFF_E2E__!.getState().studio; + return ( + state.workflowTabs.find((tab: { id: string; source: string }) => tab.id === state.activeWorkflowTabId) + ?.source === 'import' + ); + }); + const imported = await page.evaluate(async () => { + const [{ useFlowStore }, { useStudioStore }] = await Promise.all([ + import('/src/stores/useFlowStore.ts'), + import('/src/stores/useStudioStore.ts'), + ]); + return { id: useStudioStore.getState().activeWorkflowTabId!, graph: useFlowStore.getState().toObject() }; + }); + const savedResponse = page.waitForResponse( + (result) => + result.request().method() === 'PUT' && + new URL(result.url()).pathname === `/workflows/${encodeURIComponent(imported.id)}` && + result.request().postDataJSON().intent === 'saved', + ); + await page.getByTestId('topbar-save-workflow').click(); + const saved = await savedResponse; + expect(saved.status()).toBe(200); + const savedDocument = await saved.json(); + expect(savedDocument.snapshot.nodes).toEqual(imported.graph.nodes); + expect(savedDocument.snapshot.edges).toEqual(imported.graph.edges); + await expect(page.getByTestId('run-issues-dialog')).toHaveCount(0); + expect(graphPosts).toBe(0); + expect(automaticExecutionPosts).toEqual([]); + await page.getByRole('button', { name: 'Arrange graph', exact: true }).click(); + await page.locator(`.react-flow__node[data-id="${ownerId}"]`).locator('header').click(); + const inspector = page.getByTestId('studio-custom-graph-inspector'); + const controls = inspector.getByTestId(`prompt-enhancement-${ownerId}`); + await expect(controls.getByRole('button', { name: 'Preview', exact: true })).toBeEnabled(); + const prompt = inspector.getByLabel(/^Prompt(?: \*)?$/); + if (appendDetails) + await expect(controls).toContainText('Appends proposed wording; authored layout stays unchanged.'); + const freshPrompt = appendDetails + ? 'Edited in the fixed inspector before Preview.' + : 'Edited in the fixed inspector before Preview.'; + await prompt.fill(freshPrompt); + await prompt.blur(); + const read = () => + page.evaluate( + async ({ ownerId, requestId }) => { + const { useFlowStore } = await import('/src/stores/useFlowStore.ts'); + const { nodes } = useFlowStore.getState(); + return { + selected: nodes.filter((node) => node.selected).map((node) => node.id), + authored: nodes.find((node) => node.id === ownerId)?.data.params.prompt?.value, + request: nodes.find((node) => node.id === requestId)?.data.params.prompt?.value, + }; + }, + { ownerId, requestId }, + ); + await expect.poll(read).toEqual({ + selected: [ownerId], + authored: freshPrompt, + request: appendDetails ? 'Authored inspector prompt .' : 'Authored inspector prompt.', + }); + const mountedControls = await controls.elementHandle(); + if (!mountedControls) throw new Error('The fixed inspector controls did not mount.'); + await controls.getByRole('button', { name: 'Preview', exact: true }).click(); + await expect.poll(() => graphPosts).toBe(1); + await expect(controls.getByRole('status')).toHaveText('Preview submitted. Follow progress in Session activity.'); + expect(await mountedControls.evaluate((element) => element.isConnected)).toBe(true); + await expect.poll(read).toEqual({ selected: [ownerId], authored: freshPrompt, request: freshPrompt }); + const purpose = submitted!.runtimeHints!.executionPurpose!; + expect(purpose).toMatchObject({ + kind: 'explicit_preview', + target: { nodeId: requestId, outputField: 'proposal_summary' }, + }); + expect(purpose.bindings).toHaveLength(1); + expect(Object.keys(submitted!.nodes).sort()).toEqual(Object.values(purpose.bindings[0]!.roleNodes).sort()); + expect(submitted!.nodes[requestId]!.params.prompt!.value).toBe(freshPrompt); + if (appendDetails) { + expect(submitted!.nodes[requestId]!.params.operation!.value).toBe('enhance_prompt_append_details'); + expect(submitted!.nodes[requestId]!.params.layout_conditioning!.value).toEqual({ + schemaVersion: 2, + coordinateSpace: 'normalized_xyxy', + regions: [ + { + id: 'subject', + description: 'Original authored description.', + action: 'place', + targetBox: [0.2, 0.2, 0.8, 0.8], + }, + ], + }); + } + publishFailure!(); + await expect(controls.getByRole('alert')).toHaveText(refusal); + await expect(controls.getByRole('button', { name: 'Apply', exact: true })).toBeDisabled(); + await expect(controls.getByRole('button', { name: 'Preview', exact: true })).toBeEnabled(); + expect(await mountedControls.evaluate((element) => element.isConnected)).toBe(true); + await expect(prompt).toHaveValue(freshPrompt); + await expect.poll(read).toEqual({ selected: [ownerId], authored: freshPrompt, request: freshPrompt }); + expect(graphPosts).toBe(1); + }, + ); + test('Advanced numeric values and step buttons fit a narrow scrolling node', async ({ page }) => { page.setDefaultTimeout(15_000); await ensureFrontend(); From 830530cd8e70a548ada9142a4f675279cefeefba Mon Sep 17 00:00:00 2001 From: Sourav Das Date: Fri, 23 Oct 2026 21:40:36 +0530 Subject: [PATCH 055/440] Avoid dirtying unchanged workflows and duplicate queued saves --- docs/modiff-client-architecture.md | 6 ++ scripts/workflow-backend-sync.test.mjs | 106 +++++++++++++++++++++++++ src/stores/useStudioStore.ts | 21 +++-- src/studio/useWorkflowBackendSync.ts | 9 ++- 4 files changed, 133 insertions(+), 9 deletions(-) diff --git a/docs/modiff-client-architecture.md b/docs/modiff-client-architecture.md index cc8add6f..f07597cb 100644 --- a/docs/modiff-client-architecture.md +++ b/docs/modiff-client-architecture.md @@ -1200,6 +1200,12 @@ recovery drafts on the backend; explicit Save places the current document in the named workflow library. Neither can be assumed to have succeeded while its persistence request is failing. +An unchanged canvas checkpoint preserves the document's dirty marker and edit +timestamp. Autosave rechecks the exact backend-owned document signature when its +shared write chain reaches dispatch, so an acknowledged explicit Save is not +followed by a duplicate PUT. Newer edits and a rejected save still require their +normal persistence request; acknowledgement and hydration guards remain intact. + Startup hydration captures each originally clean document before its backend read. A delayed canvas checkpoint may add passive connection flags and an empty preview declared by the current registry; these alone must not turn the older diff --git a/scripts/workflow-backend-sync.test.mjs b/scripts/workflow-backend-sync.test.mjs index 7912fe4f..9c6f08db 100644 --- a/scripts/workflow-backend-sync.test.mjs +++ b/scripts/workflow-backend-sync.test.mjs @@ -145,6 +145,70 @@ test('explicit saves share one in-flight chain per workflow', async () => { } }); +for (const { editedWhileSaving, rejectedSave } of [ + { editedWhileSaving: false, rejectedSave: false }, + { editedWhileSaving: true, rejectedSave: false }, + { editedWhileSaving: false, rejectedSave: true }, +]) { + const outcome = rejectedSave + ? 'retries a rejected save' + : editedWhileSaving + ? 'retains a newer edit' + : 'skips a duplicate'; + test(`queued autosave ${outcome} after waiting for an explicit save`, async () => { + const originalFetch = globalThis.fetch; + const calls = []; + const errors = []; + globalThis.fetch = (_url, options) => + new Promise((resolve, reject) => { + const body = JSON.parse(options.body); + calls.push({ + body, + fail: () => reject(new Error('Explicit Save failed')), + finish: () => + resolve( + new Response(JSON.stringify({ ...body, id: 'workflow-sync-test', revision: calls.length + 7 }), { + headers: { 'Content-Type': 'application/json' }, + }), + ), + }); + }); + const saved = { ...workflowTab({ dirty: true, prompt: 'Explicit document' }), intent: 'saved' }; + studio.useStudioStore.setState({ workflowTabs: [saved], activeWorkflowTabId: null }); + const explicit = sync.saveWorkflowNow(saved, { merge: false }); + const rejected = rejectedSave ? assert.rejects(explicit, /Explicit Save failed/u) : null; + await new Promise((resolve) => setImmediate(resolve)); + const latest = editedWhileSaving + ? { ...saved, snapshot: { ...saved.snapshot, studioForm: { prompt: 'Newer local edit' } } } + : saved; + studio.useStudioStore.setState({ workflowTabs: [latest] }); + sync.queueWorkflowPut(latest, (error) => errors.push(error)); + try { + assert.equal(calls.length, 1); + if (rejectedSave) calls[0].fail(); + else calls[0].finish(); + await (rejected ?? explicit); + await new Promise((resolve) => setImmediate(resolve)); + assert.equal(calls.length, editedWhileSaving || rejectedSave ? 2 : 1); + if (editedWhileSaving || rejectedSave) { + assert.equal( + calls[1].body.snapshot.studioForm.prompt, + editedWhileSaving ? 'Newer local edit' : 'Explicit document', + ); + assert.equal(studio.useStudioStore.getState().workflowTabs[0].dirty, true); + } else { + assert.equal(studio.useStudioStore.getState().workflowTabs[0].dirty, false); + } + assert.deepEqual(errors, []); + } finally { + calls.forEach((call) => call.finish()); + await (rejected ?? explicit); + await new Promise((resolve) => setImmediate(resolve)); + globalThis.fetch = originalFetch; + } + }); +} + test('a delayed own-save acknowledgement never replaces a newer clean document', () => { const newer = workflowTab({ dirty: false, prompt: 'Restored by Redo' }); studio.useStudioStore.setState({ workflowTabs: [newer], activeWorkflowTabId: null }); @@ -327,6 +391,48 @@ function startupHydrationFixture({ dirty = false } = {}) { }; } +function checkpointedSavedWorkflow() { + startupHydrationFixture(); + // Persist the passive registry/connection metadata once, as a successful PUT would. + studio.useStudioStore.getState().saveActiveWorkflowTab(true); + const saved = { ...studio.useStudioStore.getState().workflowTabs[0], dirty: false, updatedAt: 1234 }; + studio.useStudioStore.setState({ workflowTabs: [saved] }); + sync.markBackendWorkflow(saved); + return saved; +} + +test('unchanged canvas checkpoints preserve the saved marker and document timestamp', () => { + const saved = checkpointedSavedWorkflow(); + for (let index = 0; index < 5; index += 1) { + studio.useStudioStore.getState().saveActiveWorkflowTab(true); + const current = studio.useStudioStore.getState().workflowTabs[0]; + assert.equal(current.dirty, false); + assert.equal(current.updatedAt, saved.updatedAt); + assert.equal(current, saved, 'an identical checkpoint must retain the document'); + } +}); + +test('an unchanged checkpoint preserves an unsaved edit until its exact acknowledgement', () => { + checkpointedSavedWorkflow(); + flow.useFlowStore.getState().setParamWithHistory('hydration-text', 'text', 'Keep this unsaved edit'); + studio.useStudioStore.getState().saveActiveWorkflowTab(true); + const edited = studio.useStudioStore.getState().workflowTabs[0]; + assert.equal(edited.dirty, true); + assert.equal(edited.snapshot.nodes[0].data.params.text.value, 'Keep this unsaved edit'); + assert.equal(sync.clearDirtyMarkerForExactBackendDocument(edited.id), false); + studio.useStudioStore.getState().saveActiveWorkflowTab(true); + assert.equal(studio.useStudioStore.getState().workflowTabs[0], edited); +}); + +test('switching away from an unchanged saved canvas does not mark it unsaved', () => { + const saved = checkpointedSavedWorkflow(); + const other = { ...structuredClone(saved), id: 'other-clean-workflow', title: 'Other workflow' }; + studio.useStudioStore.setState({ workflowTabs: [saved, other] }); + studio.useStudioStore.getState().switchWorkflowTab(other.id); + assert.equal(studio.useStudioStore.getState().workflowTabs[0], saved); + assert.equal(studio.useStudioStore.getState().workflowTabs[0].dirty, false); +}); + test('startup hydration replaces a clean baseline after only passive registry and connection metadata', () => { const fixture = startupHydrationFixture(); studio.useStudioStore.getState().saveActiveWorkflowTab(true); diff --git a/src/stores/useStudioStore.ts b/src/stores/useStudioStore.ts index 053c175d..e915a5a0 100644 --- a/src/stores/useStudioStore.ts +++ b/src/stores/useStudioStore.ts @@ -757,9 +757,13 @@ function retainActiveBlockPreviews() { function savedTabsWithActiveSnapshot(state: StudioState & StudioVolatileState) { if (!state.activeWorkflowTabId) return state.workflowTabs; const snapshot = currentWorkflowSnapshot(state); - return state.workflowTabs.map((tab) => - tab.id === state.activeWorkflowTabId ? { ...tab, snapshot, updatedAt: Date.now(), dirty: true } : tab, - ); + return state.workflowTabs.map((tab) => { + if (tab.id !== state.activeWorkflowTabId) return tab; + const current = { ...tab, snapshot }; + // Canvas subscriptions also checkpoint passive updates and tab navigation. + // An identical document keeps its saved state, including pending real edits. + return sameWorkflowDocument(tab, current) ? tab : { ...current, updatedAt: Date.now(), dirty: true }; + }); } function sameWorkflowDocument(left: WorkflowTab, right: WorkflowTab) { @@ -2728,11 +2732,12 @@ export const useStudioStore = create { - set((state) => ({ - workflowTabs: savedTabsWithActiveSnapshot(state).map((tab) => - tab.id === state.activeWorkflowTabId ? { ...tab, dirty } : tab, - ), - })); + set((state) => { + const workflowTabs = savedTabsWithActiveSnapshot(state).map((tab) => + tab.id === state.activeWorkflowTabId && !dirty && tab.dirty ? { ...tab, dirty: false } : tab, + ); + return workflowTabs.every((tab, index) => tab === state.workflowTabs[index]) ? state : { workflowTabs }; + }); }, createWorkflowTab: (title, snapshot, source = 'new', sourceLabel) => { diff --git a/src/studio/useWorkflowBackendSync.ts b/src/studio/useWorkflowBackendSync.ts index da21df8f..d719533b 100644 --- a/src/studio/useWorkflowBackendSync.ts +++ b/src/studio/useWorkflowBackendSync.ts @@ -216,7 +216,7 @@ export async function deleteWorkflowNow(id: string) { useStudioStore.getState().removeBackendWorkflow(id); } -function queueWorkflowPut(tab: WorkflowTab, onError: (error: unknown) => void) { +export function queueWorkflowPut(tab: WorkflowTab, onError: (error: unknown) => void) { const signature = contentSignature(tab); pendingSignatures.set(tab.id, signature); const previous = saveChains.get(tab.id) ?? Promise.resolve(); @@ -225,6 +225,13 @@ function queueWorkflowPut(tab: WorkflowTab, onError: (error: unknown) => void) { .then(async () => { const current = useStudioStore.getState().workflowTabs.find((item) => item.id === tab.id); if (!current || contentSignature(current) !== signature) return; + // An explicit Save or websocket acknowledgement may have persisted this + // exact document while the autosave waited on the shared write chain. + if (backendSignatures.get(tab.id) === signature) { + if (pendingSignatures.get(tab.id) === signature) pendingSignatures.delete(tab.id); + clearDirtyMarkerForExactBackendDocument(tab.id); + return; + } try { const saved = await putWorkflow(current); if (!saved) return; From 52aa84d16ccc1c59f6eeb04bcebf966b59191445 Mon Sep 17 00:00:00 2001 From: Sourav Das Date: Sat, 24 Oct 2026 06:21:04 +0530 Subject: [PATCH 056/440] test: cover redundant workflow saves in the browser --- .github/workflows/ci.yml | 2 +- tests/e2e/studio-mocked/studio-mocked.spec.ts | 156 +++++++++++++++++- 2 files changed, 156 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 48179ac9..cc75bf05 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -33,7 +33,7 @@ jobs: with: repository: sdevil7th/MoDiff # Paired image stages, scoped enhancement and FLUX3 evaluation contracts. - ref: 2f2f02e9fe3c3afb608973acab3d35725cfc009c + ref: fa46d7a95316a4e7257abfeb2a2ae1186f3853d0 path: MoDiff persist-credentials: false - name: Verify the pinned backend supports native setup diff --git a/tests/e2e/studio-mocked/studio-mocked.spec.ts b/tests/e2e/studio-mocked/studio-mocked.spec.ts index 785e4109..c5347aae 100644 --- a/tests/e2e/studio-mocked/studio-mocked.spec.ts +++ b/tests/e2e/studio-mocked/studio-mocked.spec.ts @@ -102,6 +102,7 @@ async function prepareRestorationStartup(page: Page, workflowId: string) { let requestSequence = 0; let phaseSequence = 0; let heldGet: { arrived: () => void; released: Promise; phase: number } | undefined; + let heldPut: { arrived: () => void; released: Promise; phase: number } | undefined; let rejectNextPut = false; // StrictMode can cancel and re-enter startup. Retain each actual request's @@ -197,13 +198,25 @@ async function prepareRestorationStartup(page: Page, workflowId: string) { const payload = route.request().postDataJSON() as { snapshot: WorkflowTabSnapshot }; const rejected = rejectNextPut; rejectNextPut = false; - events.push({ method: 'PUT', snapshot: structuredClone(payload.snapshot), rejected }); + const pending = heldPut; + events.push({ + method: 'PUT', + snapshot: structuredClone(payload.snapshot), + rejected, + phase: pending?.phase, + stage: 'requested', + }); if (rejected) { await route.abort('failed'); return; } + if (pending) { + pending.arrived(); + await pending.released; + } backend = { ...backend, ...payload, revision: backend.revision + 1, updatedAt: Date.now() }; await route.fulfill({ json: backend }); + if (pending) events.push({ method: 'PUT-response', phase: pending.phase, stage: 'fulfilled' }); return; } await route.fallback(); @@ -315,6 +328,29 @@ async function prepareRestorationStartup(page: Page, workflowId: string) { rejectNextSave: () => { rejectNextPut = true; }, + holdNextSave: () => { + expect(heldPut).toBeUndefined(); + let arrived!: () => void; + let unlock!: () => void; + const intercepted = new Promise((resolve) => { + arrived = resolve; + }); + const released = new Promise((resolve) => { + unlock = resolve; + }); + const phase = ++phaseSequence; + const barrier = { arrived, released, phase }; + heldPut = barrier; + return { + intercepted, + release: () => { + expect(heldPut).toBe(barrier); + events.push({ method: 'PUT-response', phase, stage: 'barrier-released' }); + heldPut = undefined; + unlock(); + }, + }; + }, holdNextHydration: () => { expect(heldGet).toBeUndefined(); let arrived!: () => void; @@ -502,6 +538,124 @@ test('startup hydration does not reopen a tab closed while its backend read is p }); }); +test('unchanged canvas checkpoints and native tab switches keep a saved document clean without another PUT', async ({ + page, +}) => { + const workflowId = 'unchanged-checkpoint-save-regression'; + const fixture = await prepareRestorationStartup(page, workflowId); + await page.goto(FRONTEND_URL, { waitUntil: 'domcontentloaded' }); + await fixture.waitForCanvas(); + await page.clock.runFor(1200); + await expect + .poll(async () => { + await page.clock.runFor(500); + return (await fixture.read()).tab?.dirty; + }) + .toBe(false); + await fixture.assertCurrentPreview(); + const before = (await fixture.read()).tab!; + const backendBefore = fixture.getBackend(); + const start = fixture.events.length; + const tab = page.getByTestId(`workflow-tab-${workflowId}`); + const textNode = page.locator('.react-flow__node[data-id="restoration-text"]'); + await textNode.getByText('Restoration text', { exact: true }).click(); + await expect(textNode).toHaveClass(/\bselected\b/); + await page.clock.runFor(400); // Selection schedules the real 350 ms checkpoint without changing the document. + expect((await fixture.read()).tab).toEqual(before); + await expect(tab).not.toHaveAccessibleName(/unsaved changes/); + await page.getByTestId('workflow-tab-new').click(); + await expect.poll(async () => (await fixture.read()).tab?.id).not.toBe(workflowId); + await tab.click(); + await fixture.waitForCanvas(); + await expect(tab).toHaveAttribute('aria-selected', 'true'); + await page.clock.runFor(1200); + const after = (await fixture.read()).tab!; + expect(after).toEqual(before); // Includes the complete snapshot, clean marker, timestamp and backend revision. + await expect(tab).not.toHaveAccessibleName(/unsaved changes/); + expect(fixture.events.slice(start).filter((event) => event.method === 'PUT')).toEqual([]); + expect(fixture.getBackend()).toEqual(backendBefore); + await fixture.assertCurrentPreview(); + expect(fixture.graphPosts()).toBe(0); + await test.info().attach('unchanged-checkpoint-save-order.json', { + body: JSON.stringify( + { before, after, events: fixture.events.slice(start), backend: fixture.getBackend() }, + null, + 2, + ), + contentType: 'application/json', + }); +}); + +test('an explicit Save acknowledgement consumes the same document queued by mounted autosave with exactly one PUT', async ({ + page, +}) => { + const workflowId = 'explicit-save-autosave-order-regression'; + const fixture = await prepareRestorationStartup(page, workflowId); + await page.goto(FRONTEND_URL, { waitUntil: 'domcontentloaded' }); + await fixture.waitForCanvas(); + await page.clock.runFor(1200); + await expect + .poll(async () => { + await page.clock.runFor(500); + return (await fixture.read()).tab?.dirty; + }) + .toBe(false); + await fixture.assertCurrentPreview(); + const backendBefore = fixture.getBackend(); + const start = fixture.events.length; + const pending = fixture.holdNextSave(); + const text = page + .locator('.react-flow__node[data-id="restoration-text"]') + .getByRole('textbox', { name: 'Text', exact: true }); + await text.fill('Native edit saved once across the autosave queue'); + await text.blur(); + const edited = (await fixture.read()).tab!; + expect(edited.dirty).toBe(true); + const acknowledged = page.waitForResponse( + (response) => + new URL(response.url()).pathname.endsWith(`/workflows/${workflowId}`) && response.request().method() === 'PUT', + ); + await page.getByTestId('topbar-save-workflow').click(); + await pending.intercepted; + await page.clock.runFor(1200); // The mounted 500 ms autosave queues behind the still-pending explicit Save. + const beforeAcknowledgement = await fixture.read(); + expect(beforeAcknowledgement.tab?.dirty).toBe(true); + expect(fixture.getBackend()).toEqual(backendBefore); + const putsBeforeAcknowledgement = fixture.events.slice(start).filter((event) => event.method === 'PUT'); + expect(putsBeforeAcknowledgement).toHaveLength(1); + expect(putsBeforeAcknowledgement[0].snapshot).toEqual(edited.snapshot); + expect(fixture.events.slice(start).filter((event) => event.method === 'PUT-response')).toEqual([]); + pending.release(); + expect((await acknowledged).status()).toBe(200); + await expect + .poll(async () => { + await page.clock.runFor(500); + return (await fixture.read()).tab?.dirty; + }) + .toBe(false); + await page.clock.runFor(1200); + const after = (await fixture.read()).tab!; + const puts = fixture.events.slice(start).filter((event) => event.method === 'PUT'); + expect(puts).toHaveLength(1); + expect(puts[0].snapshot).toEqual(edited.snapshot); + expect(after.snapshot).toEqual(edited.snapshot); + expect(fixture.getBackend().snapshot).toEqual(edited.snapshot); + expect(fixture.getBackend().revision).toBe(backendBefore.revision + 1); + expect(after.backendRevision).toBe(fixture.getBackend().revision); + await expect(text).toHaveValue('Native edit saved once across the autosave queue'); + await expect(page.getByTestId(`workflow-tab-${workflowId}`)).not.toHaveAccessibleName(/unsaved changes/); + await fixture.assertCurrentPreview(); + expect(fixture.graphPosts()).toBe(0); + await test.info().attach('explicit-save-autosave-order.json', { + body: JSON.stringify( + { edited, beforeAcknowledgement, after, events: fixture.events.slice(start), backend: fixture.getBackend() }, + null, + 2, + ), + contentType: 'application/json', + }); +}); + test('mounted V2 preview retains both current collection items through hydration and reload', async ({ page }) => { const renderErrors: string[] = []; page.on('pageerror', (error) => renderErrors.push(error.message)); From 4ac1cddc4b37ca9f0b60cc8b016a4d8fca4a3112 Mon Sep 17 00:00:00 2001 From: Sourav Das Date: Sat, 24 Oct 2026 07:13:02 +0530 Subject: [PATCH 057/440] fix: acknowledge exact persisted workflows during dirty hydration --- src/studio/useWorkflowBackendSync.ts | 7 +- tests/e2e/studio-mocked/studio-mocked.spec.ts | 88 +++++++++++++++++++ 2 files changed, 93 insertions(+), 2 deletions(-) diff --git a/src/studio/useWorkflowBackendSync.ts b/src/studio/useWorkflowBackendSync.ts index d719533b..da988f1e 100644 --- a/src/studio/useWorkflowBackendSync.ts +++ b/src/studio/useWorkflowBackendSync.ts @@ -304,8 +304,11 @@ export function useWorkflowBackendSync() { const backendTab = await readWorkflowForHydration(tab, controller.signal); if (cancelled) return; const current = useStudioStore.getState(); - if (isWorkflowTabClosed(tab.id) || !current.workflowTabs.some((item) => item.id === tab.id)) continue; - if (backendTab && !tab.dirty) { + const latestTab = current.workflowTabs.find((item) => item.id === tab.id); + if (isWorkflowTabClosed(tab.id) || !latestTab) continue; + // Dirty protects an unacknowledged document, including a committed PUT whose response was lost. + // Reuse only an exact match with the latest open tab; the normal merge still protects live edits. + if (backendTab && (!tab.dirty || contentSignature(latestTab) === contentSignature(backendTab))) { markBackendWorkflow(backendTab); current.mergeBackendWorkflow(backendTab, { hydrationBaseline: cleanBaseline && { diff --git a/tests/e2e/studio-mocked/studio-mocked.spec.ts b/tests/e2e/studio-mocked/studio-mocked.spec.ts index c5347aae..42e96d5d 100644 --- a/tests/e2e/studio-mocked/studio-mocked.spec.ts +++ b/tests/e2e/studio-mocked/studio-mocked.spec.ts @@ -104,6 +104,7 @@ async function prepareRestorationStartup(page: Page, workflowId: string) { let heldGet: { arrived: () => void; released: Promise; phase: number } | undefined; let heldPut: { arrived: () => void; released: Promise; phase: number } | undefined; let rejectNextPut = false; + let commitRejectedPut = false; // StrictMode can cancel and re-enter startup. Retain each actual request's // lifecycle rather than mistaking the first intercepted GET for the live one. @@ -197,7 +198,9 @@ async function prepareRestorationStartup(page: Page, workflowId: string) { if (route.request().method() === 'PUT') { const payload = route.request().postDataJSON() as { snapshot: WorkflowTabSnapshot }; const rejected = rejectNextPut; + const committedWithoutAcknowledgement = commitRejectedPut; rejectNextPut = false; + commitRejectedPut = false; const pending = heldPut; events.push({ method: 'PUT', @@ -207,6 +210,10 @@ async function prepareRestorationStartup(page: Page, workflowId: string) { stage: 'requested', }); if (rejected) { + if (committedWithoutAcknowledgement) { + backend = { ...backend, ...payload, revision: backend.revision + 1, updatedAt: Date.now() }; + events.push({ method: 'PUT-commit', revision: backend.revision, stage: 'committed-without-acknowledgement' }); + } await route.abort('failed'); return; } @@ -328,6 +335,10 @@ async function prepareRestorationStartup(page: Page, workflowId: string) { rejectNextSave: () => { rejectNextPut = true; }, + commitNextSaveWithoutAcknowledgement: () => { + rejectNextPut = true; + commitRejectedPut = true; + }, holdNextSave: () => { expect(heldPut).toBeUndefined(); let arrived!: () => void; @@ -478,6 +489,59 @@ test('startup hydration retains a real unsaved text edit after a failed save', a expect(fixture.graphPosts()).toBe(0); }); +test('startup hydration acknowledges an exact dirty document committed before its save response was lost without another PUT', async ({ + page, +}) => { + const workflowId = 'committed-dirty-hydration-regression'; + const fixture = await prepareRestorationStartup(page, workflowId); + await page.goto(FRONTEND_URL, { waitUntil: 'domcontentloaded' }); + await fixture.waitForCanvas(); + await page.clock.runFor(1200); + await expect + .poll(async () => { + await page.clock.runFor(500); + return (await fixture.read()).tab?.dirty; + }) + .toBe(false); + fixture.commitNextSaveWithoutAcknowledgement(); + const text = page + .locator('.react-flow__node[data-id="restoration-text"]') + .getByRole('textbox', { name: 'Text', exact: true }); + await text.fill('Committed wording with a lost acknowledgement'); + await text.blur(); + await page.clock.runFor(1200); + await expect + .poll(() => fixture.events.some((event) => event.stage === 'committed-without-acknowledgement')) + .toBe(true); + const beforeReload = await fixture.read(); + expect(beforeReload.tab?.dirty).toBe(true); // Real UI editing plus a failed response produced this marker. + const committed = fixture.getBackend(); + expect(beforeReload.tab!.snapshot).toEqual(committed.snapshot); + const start = fixture.events.length; + await page.reload({ waitUntil: 'domcontentloaded' }); + await fixture.waitForCanvas(); + await expect + .poll(() => fixture.events.slice(start).some((event) => event.method === 'GET' && event.stage === 'finished')) + .toBe(true); + await page.clock.runFor(1200); + await expect + .poll(async () => (await fixture.read()).tab?.backendRevision ?? 0) + .toBeGreaterThanOrEqual(committed.revision); + const afterReload = await fixture.read(); + await test.info().attach('committed-dirty-hydration-order.json', { + body: JSON.stringify({ beforeReload, afterReload, committed, events: fixture.events.slice(start) }, null, 2), + contentType: 'application/json', + }); + expect(fixture.events.slice(start).filter((event) => event.method === 'PUT')).toEqual([]); + await expect(page.getByTestId(`workflow-tab-${workflowId}`)).not.toHaveAccessibleName(/unsaved changes/); + expect(fixture.getBackend()).toEqual(committed); // Includes revision and timestamp, not only authored content. + expect(afterReload.tab?.snapshot).toEqual(committed.snapshot); + expect(afterReload.tab?.backendRevision).toBe(committed.revision); + await expect(text).toHaveValue('Committed wording with a lost acknowledgement'); + await fixture.assertCurrentPreview(); + expect(fixture.graphPosts()).toBe(0); +}); + test('startup hydration keeps a real edit made while its backend read is pending', async ({ page }) => { const fixture = await prepareRestorationStartup(page, 'pending-edit-restoration-regression'); fixture.publishNewer(); @@ -24129,6 +24193,30 @@ test('workflow tabs remain a single horizontally scrollable row with pinned new- const inactiveTab = tabList.locator('[role="tab"][aria-selected="false"]').first(); expect((await readTabVisual(inactiveTab)).contrast).toBeGreaterThanOrEqual(4.5); + // Dirty styling needs a real unsaved document, not passive tab-switch side effects. + const selectedTestId = await selectedTab.getAttribute('data-testid'); + expect(selectedTestId).toMatch(/^workflow-tab-/); + const dirtyWorkflowId = selectedTestId!.slice('workflow-tab-'.length); + const dirtyTitle = 'Unsaved tab styling'; + const rejectedTitles: unknown[] = []; + await page.route(`**/workflows/${dirtyWorkflowId}`, async (route) => { + if (route.request().method() !== 'PUT') { + await route.fallback(); + return; + } + const payload = route.request().postDataJSON() as { title?: unknown }; + rejectedTitles.push(payload.title); + await route.abort('failed'); // Keep only this edited document unacknowledged throughout the styling checks. + }); + await page.getByTestId('topbar-save-workflow').click(); + const saveDialog = page.getByTestId('save-workflow-dialog'); + await expect(saveDialog).toBeVisible(); + await page.getByTestId('save-workflow-name').fill(dirtyTitle); + await page.getByTestId('confirm-save-workflow').click(); + await expect.poll(() => rejectedTitles.filter((title) => title === dirtyTitle).length).toBeGreaterThan(0); + await saveDialog.getByRole('button', { name: 'Cancel', exact: true }).click(); + await expect(saveDialog).toHaveCount(0); + await expect.poll(() => tabList.locator('[data-dirty="true"]').count()).toBeGreaterThan(0); const dirtyTab = tabList.locator('[data-dirty="true"]').first().getByRole('tab'); await expect(dirtyTab).toHaveAttribute('aria-label', /\(unsaved changes\)$/); From 56fdce2d1a14764cf7ddac1a4938a9f709a62981 Mon Sep 17 00:00:00 2001 From: Sourav Das Date: Sat, 24 Oct 2026 07:32:17 +0530 Subject: [PATCH 058/440] ci: pair hydration checks with approved cache root backend --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index cc75bf05..b6ecbf57 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -33,7 +33,7 @@ jobs: with: repository: sdevil7th/MoDiff # Paired image stages, scoped enhancement and FLUX3 evaluation contracts. - ref: fa46d7a95316a4e7257abfeb2a2ae1186f3853d0 + ref: 0e70ce43dc1b1184fef4ae7a6b197ab24f7cb7df path: MoDiff persist-credentials: false - name: Verify the pinned backend supports native setup From 9eaae2a4a675564d831c899bbdc1a32336425d8b Mon Sep 17 00:00:00 2001 From: Sourav Das Date: Sat, 24 Oct 2026 08:52:02 +0530 Subject: [PATCH 059/440] fix: normalize imported workflow titles before saving --- package.json | 2 +- .../workflow-package-import-title.test.mjs | 90 +++++++++++++++++++ src/studio/workflowPackage.ts | 4 +- 3 files changed, 93 insertions(+), 3 deletions(-) create mode 100644 scripts/workflow-package-import-title.test.mjs diff --git a/package.json b/package.json index f1da8c6e..8ec75aa6 100644 --- a/package.json +++ b/package.json @@ -100,7 +100,7 @@ "test:run-activity": "node --test scripts/run-activity.test.mjs", "test:template-input-preview": "node --test scripts/template-input-preview.test.mjs", "test:asset-storage": "node --test scripts/template-assets.test.mjs && node scripts/run-python.mjs scripts/template-gallery-assets.test.py", - "test:workflow-save": "node --test scripts/workflow-save.test.mjs scripts/workflow-backend-sync.test.mjs scripts/workflow-document-origin.test.mjs", + "test:workflow-save": "node --test scripts/workflow-save.test.mjs scripts/workflow-backend-sync.test.mjs scripts/workflow-document-origin.test.mjs scripts/workflow-package-import-title.test.mjs", "test:styles": "node --test scripts/modiff-style.test.mjs", "test:unit": "npm run test:styles && npm run test:templates && npm run test:task-templates && npm run test:template-quality && npm run gallery:card-coverage && npm run test:release-contract && npm run test:live-qwen-proof && npm run test:gallery-harness && npm run test:gallery-runner && node --test scripts/generation-campaign-retry-ledger.test.mjs && npm run test:gallery-queue && npm run test:driver-contract && npm run test:hugging-face-node-library && npm run test:modular-hierarchy-v2 && npm run test:block-schema-v2 && npm run test:block-route-selection-v1 && npm run test:block-runtime-v2 && npm run test:block-renderer-v2 && npm run test:block-persistence-v2 && npm run test:composite-migration-ui && npm run test:legacy-cluster-recovery-audit && npm run test:composite-block-capabilities-v2 && npm run test:registered-block-v2-adapter && npm run test:hugging-face-cluster-drag && npm run test:graph-export && npm run test:graph-mutations && npm run test:graph-visuals && npm run test:media-viewer && npm run test:requests && npm run test:run-coordinator && npm run test:run-activity && npm run test:template-input-preview && npm run test:asset-storage && npm run test:workflow-save", "typecheck": "tsc -b --pretty false", diff --git a/scripts/workflow-package-import-title.test.mjs b/scripts/workflow-package-import-title.test.mjs new file mode 100644 index 00000000..14cf7289 --- /dev/null +++ b/scripts/workflow-package-import-title.test.mjs @@ -0,0 +1,90 @@ +import assert from 'node:assert/strict'; +import { after, before, test } from 'node:test'; +import path from 'node:path'; +import { fileURLToPath } from 'node:url'; +import { createServer } from 'vite'; + +const ROOT = path.resolve(path.dirname(fileURLToPath(import.meta.url)), '..'); +let server; +let packages; + +before(async () => { + server = await createServer({ + root: ROOT, + configFile: false, + logLevel: 'silent', + optimizeDeps: { entries: [], noDiscovery: true }, + server: { middlewareMode: true, hmr: false, watch: null }, + appType: 'custom', + }); + packages = await server.ssrLoadModule('/src/studio/workflowPackage.ts'); +}); + +after(async () => { + await server?.close(); +}); + +function parse({ prompt = '', templateLabel } = {}) { + const graph = { + nodes: [{ id: 'retained-text', data: { params: { text: { value: prompt } } } }], + edges: [], + viewport: { x: 12, y: -8, zoom: 0.75 }, + }; + const input = { + graph, + metadata: { studio: { prompt } }, + intent: 'draft', + ...(templateLabel !== undefined + ? { + latestOutput: { + id: 'retained-output', + url: '/retained-output.png', + prompt, + templateLabel, + graphSnapshot: graph, + }, + } + : {}), + }; + const before = structuredClone(input); + const parsed = packages.parseWorkflowPackage(input); + assert.ok(parsed); + assert.deepEqual(input, before, 'Title normalization must not rewrite the imported package or its intent.'); + assert.equal(parsed.packageData, input); + assert.deepEqual(parsed.snapshot.nodes, graph.nodes); + assert.deepEqual(parsed.snapshot.edges, graph.edges); + assert.deepEqual(parsed.snapshot.viewport, graph.viewport); + return parsed; +} + +test('prompt-derived import titles trim a truncated boundary without changing the authored prompt or graph', () => { + const prompt = + 'Give the a vivid blue knitted scarf while retaining the fox, mossy rock, forest, lighting, and composition from the reference image.'; + assert.equal(prompt.slice(0, 28), 'Give the a vivid blue '); + const parsed = parse({ prompt }); + assert.equal(parsed.title, 'Give the a vivid blue'); + assert.equal(parsed.snapshot.studioForm.prompt, prompt); +}); + +test('template import labels retain their full text and interior spaces while trimming their boundaries', () => { + const templateLabel = ' \nA full template title longer than twenty-eight characters\t '; + const parsed = parse({ prompt: 'A different prompt', templateLabel }); + assert.equal(parsed.title, 'A full template title longer than twenty-eight characters'); + assert.equal(parsed.output.templateLabel, templateLabel, 'The retained output receipt remains unchanged.'); + assert.notEqual(parsed.title, parse({ templateLabel: 'Another genuine title' }).title); +}); + +test('blank imported title candidates use the existing Imported workflow fallback', () => { + assert.equal(parse({ prompt: ' \n\t ' }).title, 'Imported workflow'); + assert.equal(parse({ prompt: 'Other wording', templateLabel: ' \t ' }).title, 'Imported workflow'); + assert.equal(parse().title, 'Imported workflow'); +}); + +test('prompt titles retain the existing prefix limit and distinct authored wording', () => { + const prompt = ' A distinct caption that continues beyond the title boundary'; + const parsed = parse({ prompt }); + assert.equal(parsed.title, 'A distinct caption that c'); + assert.equal(parsed.snapshot.studioForm.prompt, prompt); + assert.notEqual(parsed.title, parse({ prompt: 'A genuinely different caption' }).title); + assert.equal(parse({ prompt: 'Prompt fallback', templateLabel: '' }).title, 'Prompt fallback'); +}); diff --git a/src/studio/workflowPackage.ts b/src/studio/workflowPackage.ts index 9efe3660..7ef9d26b 100644 --- a/src/studio/workflowPackage.ts +++ b/src/studio/workflowPackage.ts @@ -169,9 +169,9 @@ function getNestedRecord(root: Record, key: string) { } function titleForImportedPackage(output: StudioOutput | undefined, form: StudioFormState) { - if (output?.templateLabel) return output.templateLabel; const prompt = output?.prompt || form.prompt; - return prompt ? prompt.slice(0, 28) : 'Imported workflow'; + const title = output?.templateLabel || (prompt ? prompt.slice(0, 28) : ''); + return title.trim() || 'Imported workflow'; } export function parseWorkflowPackage(value: unknown): ParsedWorkflowPackage | null { From d759b016344c90de7064e22fe26dd57fef14299d Mon Sep 17 00:00:00 2001 From: Sourav Das Date: Sat, 24 Oct 2026 16:53:04 +0530 Subject: [PATCH 060/440] WIP: expose FLUX3 workflow selection and current runtime options Make reviewed Custom-only models discoverable, offer declared PUP recipes and LoRA editing, preserve seed zero, and refresh volatile option availability without changing imported controls. Complete client check and five focused cases passed; broad browser suite remains failed. Local native-testing checkpoint only. --- docs/modiff-client-architecture.md | 20 + scripts/bundle-budget.mjs | 12 +- scripts/flow-graph-export.test.mjs | 56 + scripts/operation-authoring.test.mjs | 449 + src/components/ModelSetupAdapterControls.tsx | 23 +- src/components/NodeContent.tsx | 12 +- src/components/OperationGraphControls.tsx | 29 +- src/components/OperationModelPicker.tsx | 35 +- src/stores/flowGraphExport.ts | 5 +- src/studio/runtimeOptions.ts | 70 +- src/workflow/evaluationAuthoring.ts | 65 + src/workflow/modelSetupAdapters.ts | 54 +- src/workflow/workflowChoices.ts | 36 +- src/workflow/workflowDraft.ts | 12 +- tests/e2e/studio-mocked/studio-mocked.spec.ts | 218 +- .../evaluation-image-authoring.v1.json | 9200 +++++++++++++++++ 16 files changed, 10220 insertions(+), 76 deletions(-) create mode 100644 tests/fixtures/evaluation-image-authoring.v1.json diff --git a/docs/modiff-client-architecture.md b/docs/modiff-client-architecture.md index f07597cb..c1b2cd3d 100644 --- a/docs/modiff-client-architecture.md +++ b/docs/modiff-client-architecture.md @@ -157,6 +157,24 @@ The parser rejects any collision with an existing public pipeline profile, and selection and Apply both require Custom memory. Ordinary runtime discovery omits the namespace and retains the existing choices. +Compatible evaluation models remain visible while Automatic memory is selected, +with a Custom-memory requirement. Searching by model or repository ignores +spacing and punctuation. An explicit button changes the current workflow to +Custom; browsing, cancelling, or changing memory never selects or runs a model. +Optional evaluation `adapterAuthoring` uses the existing immutable policy parser +and requires current verified runtime metadata, the exact selected task/profile, +and all declared loader controls before normal Add/Edit LoRA is available. It +does not expand the public model union or grant Auto support. Optional per-task +`authoringRecipes` select a current declared starter; its enhancement offer is +attached after ordinary media/output completion without enabling a provider. + +Static registered fields render versioned option availability from the current +node registry, including after a cross-platform import or registry refresh. This +projection preserves saved values, labels, membership and graph/recipe hashes; +an imported-only or ambiguous option remains unavailable. Dynamic actions and +`optionsSource` retain their existing authority and consent. No registry refresh +changes an authored selection or performs an install. + The backend supplies ordinary node schemas and reviewed connections; the client assigns canvas IDs through the normal node factory. The result is a normal graph, with no template receipt or additional execution representation. Users can build @@ -171,6 +189,8 @@ Backend-declared `sharedInputs` bind seed controls of stages that continue one generator. `operationSharedInputs` validates their loader scope and membership; ordinary parameter edits update the group under one history transaction. Export uses one random draw per group and rejects inconsistent literals or input sources. +Untouched random-field controls use the declared default before unwrapping the +stored value, so Run and inspection retain a locked zero seed consistently. New stages inherit the existing shared value; a connected custom source is wired to every member. Distinct loader branches remain independent. No additional execution representation or model-family dispatch is introduced. The lazy diff --git a/scripts/bundle-budget.mjs b/scripts/bundle-budget.mjs index 087bbaa2..e8590ee2 100644 --- a/scripts/bundle-budget.mjs +++ b/scripts/bundle-budget.mjs @@ -1,3 +1,10 @@ +// Normal evaluation discovery/Custom selection, declared PUP/LoRA authoring, +// default-seed consumption and current runtime-option presentation measure +// largest-startup/startup/deferred gzip bytes 479207/657512/319433 in the +// canonical Linux complete check. Allow 288/288/864 bytes over the prior caps, +// leaving 23/28/39 bytes of headroom. This is aggregate measured feature and +// correctness cost, not per-module attribution. Keep dependencies, minifier, +// loading boundaries, all validators and the 65536-byte deferred chunk cap fixed. // Aggregate release feature/correctness cost versus the accepted COMPLETE baseline: // deferred gzip 316833 -> 318426 (+1593). Raise 317015 to 318608, retaining // 182 bytes of headroom. This is not per-module attribution or an immediate @@ -199,6 +206,7 @@ const MAX_STARTUP_CHUNK_GZIP_BYTES = 128 + 512 + 192 + + 288 + 288; // Shared icons initialize in graph-vendor, avoiding an entry/lazy-panel cycle // that captured undefined tab icons and crashed cold production startup. The @@ -307,6 +315,7 @@ const MAX_STARTUP_GZIP_BYTES = 128 + 512 + 192 + + 288 + 288; // Deferred surfaces are measured separately so code splitting cannot hide an // unbounded feature bundle. These ceilings leave room for the reviewed dialogs @@ -493,7 +502,8 @@ const MAX_DEFERRED_GZIP_BYTES = 896 + 1536 + 353 + - 1593; + 1593 + + 864; const STATIC_MODULE_REFERENCE = /\b(?:import(?=\s|["'{*])(?!\s*\()|export(?=\s|["'{*]))[^;]*?["'](\.\/[^"'?]+\.js)(?:\?v=[0-9a-f]{16})?["']/g; diff --git a/scripts/flow-graph-export.test.mjs b/scripts/flow-graph-export.test.mjs index 4cdbfaae..a7183edb 100644 --- a/scripts/flow-graph-export.test.mjs +++ b/scripts/flow-graph-export.test.mjs @@ -162,6 +162,62 @@ test('locked random-field seeds export without the random display marker', () => assert.equal('display' in seed, false); }); +test('Run exports untouched random-field defaults and preserves explicit zero seeds', () => { + const updates = []; + const cases = [ + { default: 0 }, + { default: { value: 0, isRandom: false } }, + { value: 0, default: { value: 91, isRandom: true } }, + { value: { value: 0, isRandom: false }, default: 91 }, + ]; + for (const stored of cases) { + const node = seedNode(undefined); + node.data.params.seed = { type: 'int', display: 'random', ...stored }; + const original = structuredClone(node); + for (const randomizeSeeds of [false, true]) { + const result = exportModule.buildApiGraphExport({ + nodes: [node], + edges: [], + sid: 'untouched-seed', + randomizeSeeds, + setParam: (...args) => updates.push(args), + }); + assert.equal(result.nodes.generate.params.seed.value, 0); + assert.equal('display' in result.nodes.generate.params.seed, false); + } + assert.deepEqual(node, original); + } + assert.deepEqual(updates, []); +}); + +test('untouched random defaults retain one shared managed seed on Run', () => { + const originalRandom = Math.random; + let calls = 0; + Math.random = () => (calls++ === 0 ? 0.25 : 0.75); + try { + const nodes = ['encode', 'denoise'].map((id) => { + const node = seedNode(undefined); + node.id = id; + node.data.studioOwned = true; + node.data.params.seed.default = { value: 0, isRandom: true }; + return node; + }); + const updates = []; + const result = exportModule.buildApiGraphExport({ + nodes, + edges: [], + sid: 'default-shared-seed', + setParam: (...args) => updates.push(args), + }); + assert.equal(result.nodes.encode.params.seed.value, 1_073_741_824); + assert.equal(result.nodes.denoise.params.seed.value, 1_073_741_824); + assert.equal(calls, 1); + assert.equal(updates.length, 2); + } finally { + Math.random = originalRandom; + } +}); + test('random-on-export seeds retain random behavior and metadata', () => { const originalRandom = Math.random; const updates = []; diff --git a/scripts/operation-authoring.test.mjs b/scripts/operation-authoring.test.mjs index e8f792cf..810d49e5 100644 --- a/scripts/operation-authoring.test.mjs +++ b/scripts/operation-authoring.test.mjs @@ -6,6 +6,9 @@ import React from 'react'; import { renderToStaticMarkup } from 'react-dom/server'; let server, authoring, requests, drafts, choices; +const evaluationImageFixture = JSON.parse( + fs.readFileSync(new URL('../tests/fixtures/evaluation-image-authoring.v1.json', import.meta.url), 'utf8'), +); const originalFetch = globalThis.fetch; before(async () => { globalThis.fetch = async (url, options) => { @@ -1944,6 +1947,452 @@ test('evaluation authoring is an explicit private Expert namespace and cannot pr } }); +function evaluationImagePayload() { + return structuredClone({ + schemaVersion: 2, + capabilities: evaluationImageFixture.capabilities, + evaluationAuthoring: evaluationImageFixture.evaluationAuthoring, + }); +} + +async function evaluationImageAuthority(payload = evaluationImagePayload()) { + const { parseEvaluationAuthoring } = await server.ssrLoadModule('/src/workflow/evaluationAuthoring.ts'); + const parsed = parseEvaluationAuthoring(payload, [], evaluationImageFixture.operationContracts); + return { + nodesRegistry: {}, + studioModelCapabilities: [], + studioModelCapabilitiesAuthoritative: true, + studioExecutionSpecInvalid: false, + operationContracts: evaluationImageFixture.operationContracts, + pipelineSupport: parsed.support, + workflowModelDescriptors: parsed.descriptors, + resourceMode: 'expert', + runtimeStatus: { ready: true, runtimeEnvironment: { profileVerified: true, executionReady: true } }, + discoveryRequests: { + nodes: { status: 'success' }, + capabilities: { status: 'success' }, + runtime: { status: 'success' }, + }, + }; +} + +test('evaluation model discovery keeps declared choices searchable across spaces and dots without public promotion', async () => { + const payload = evaluationImagePayload(); + const before = structuredClone(payload); + const authority = await evaluationImageAuthority(payload); + assert.deepEqual(payload, before, 'Parsing must not mutate the backend DTO.'); + const rows = choices.workflowChoices(authority.pipelineSupport, [], [], [], null, authority.workflowModelDescriptors); + assert.equal(rows.length, 4); + for (const query of ['FLUX3', 'flux 3', 'FLUX.3', 'black forest labs']) + assert.equal(rows.filter((row) => choices.workflowModelMatchesQuery(row, query)).length, 4, query); + assert.equal(rows.filter((row) => choices.workflowModelMatchesQuery(row, 'base')).length, 2); + assert.equal(rows.filter((row) => choices.workflowModelMatchesQuery(row, 'unrelated')).length, 0); + for (const row of rows) { + assert.equal(row.evaluationOnly, true); + assert.equal( + row.authoringRecipeId, + evaluationImageFixture.evaluationAuthoring.authoringRecipes.find( + (recipe) => recipe.executionProfileId === row.profileId && recipe.task === row.task, + ).authoringRecipeId, + ); + } + const { parseStudioModelCapabilities } = await server.ssrLoadModule('/src/stores/useNodeStore.ts'); + assert.deepEqual( + parseStudioModelCapabilities(payload).capabilities, + [], + 'Private identities stay outside the legacy union.', + ); + assert.equal( + choices.workflowModelMatchesQuery({ label: 'Future Vision.7', repo: 'another/future-vision-7' }, 'future vision7'), + true, + ); +}); + +test('evaluation authoring validates selected policy and recipe bindings and rejects malformed extensions', async () => { + const authority = await evaluationImageAuthority(); + assert.deepEqual( + authority.workflowModelDescriptors.map((row) => row.adapterAuthoringProfile.adapterAuthoring), + evaluationImageFixture.evaluationAuthoring.executionProfiles.map((row) => row.adapterAuthoring), + ); + for (const alter of [ + (p) => { + p.evaluationAuthoring.authoringRecipes.push(p.evaluationAuthoring.authoringRecipes[0]); + }, + (p) => { + p.evaluationAuthoring.authoringRecipes[0].executionProfileId = 'unpublished'; + }, + (p) => { + p.evaluationAuthoring.authoringRecipes[0].pipelineClass = 'AnotherPipeline'; + }, + (p) => { + p.evaluationAuthoring.authoringRecipes[0].task = 'unconditional_image'; + }, + (p) => { + p.evaluationAuthoring.authoringRecipes[0].extraAuthority = true; + }, + (p) => { + p.evaluationAuthoring.executionProfiles[0].adapterAuthoring = + p.evaluationAuthoring.executionProfiles[1].adapterAuthoring; + }, + (p) => { + p.evaluationAuthoring.executionProfiles[0].adapterAuthoring.maxOwnedAdapters = 33; + }, + (p) => { + p.evaluationAuthoring.executionProfiles[0].adapterAuthoring.requiredControls.quant_config = {}; + }, + (p) => { + p.evaluationAuthoring.executionProfiles[0].optionalRuntimeRequirement.executionProfileIds = ['other']; + }, + ]) { + const payload = evaluationImagePayload(); + alter(payload); + await assert.rejects(() => evaluationImageAuthority(payload)); + } + const old = evaluationImagePayload(); + delete old.evaluationAuthoring.authoringRecipes; + for (const profile of old.evaluationAuthoring.executionProfiles) delete profile.adapterAuthoring; + const parsed = await evaluationImageAuthority(old); + assert.ok(parsed.workflowModelDescriptors.every((row) => !row.adapterAuthoringProfile && !row.authoringRecipes)); +}); + +test('evaluation selected native policy permits ordinary Add and Remove without rewriting the model or unrelated nodes', async () => { + const adapters = await server.ssrLoadModule('/src/workflow/modelSetupAdapters.ts'); + const groups = await server.ssrLoadModule('/src/workflow/visualOperationGroups.ts'); + const authority = await evaluationImageAuthority(); + const raw = structuredClone(evaluationImageFixture.starter); + delete raw.authoring; + const selected = evaluationImageFixture.evaluationAuthoring.executionProfiles.find( + (profile) => profile.pipeline_class === raw.pipelineClass, + ); + const parsed = requests.parseOperationStarter(raw, raw.pipelineClass, raw.task, authority.operationContracts, { + executionProfileId: selected.id, + repository: selected.default_repo, + }); + const owner = parsed.nodes.find((node) => node.operation.decomposition === 'loader').node; + authority.nodesRegistry = Object.fromEntries( + parsed.nodes.map((node) => [node.operation.nodeKey, structuredClone(node.node)]), + ); + for (const [name, value] of Object.entries(selected.adapterAuthoring.requiredControls)) + owner.params[name].value = structuredClone(value); + authority.nodesRegistry['modules.ModularDiffusers.Lora'] = { + type: 'custom', + module: 'modules.ModularDiffusers', + action: 'Lora', + category: 'loader', + label: 'LoRA', + params: { + model: { type: 'string', value: { source: 'local', value: '' } }, + revision: { type: 'string', value: '' }, + expected_sha256: { type: 'string', value: '' }, + weight_name: { type: 'string', value: '' }, + adapter_name: { type: 'string', value: '' }, + scale: { type: 'float', value: 1 }, + previous_loras: { type: 'custom_lora', display: 'input' }, + lora: { type: 'custom_lora', display: 'output' }, + }, + }; + const graph = groups.groupNewOperationGraph(authoring.createOperationStarter(parsed, { x: 0, y: 0 })); + const root = graph.nodes.find((node) => groups.visualOperationGroup(node) === 'setup'); + const chain = adapters.modelSetupAdapterChain(graph, root.id); + const before = structuredClone(graph); + assert.equal(adapters.modelSetupAdapterAddUnavailable(chain, authority), null); + const next = adapters.planModelSetupAdapterEdit( + graph, + root.id, + { + kind: 'add', + registry: authority.nodesRegistry, + values: { model: { source: 'local', value: 'metadata-only.safetensors' }, scale: '0.4' }, + }, + authority, + ); + const added = adapters.modelSetupAdapterChain(next, root.id); + assert.equal(added.adapters.length, 1); + assert.deepEqual(added.owner.data.params, chain.owner.data.params); + assert.equal(added.adapters[0].data.params.scale.value, '0.4'); + const restored = adapters.planModelSetupAdapterEdit(next, root.id, { kind: 'remove', nodeId: added.adapters[0].id }); + assert.deepEqual(adapters.modelSetupAdapterChain(restored, root.id).owner.data.params, chain.owner.data.params); + assert.equal(adapters.modelSetupAdapterChain(restored, root.id).adapters.length, 0); + assert.deepEqual(graph, before); + for (const alter of [ + (a) => { + a.resourceMode = 'auto'; + }, + (a) => { + a.discoveryRequests.runtime.status = 'error'; + }, + (a) => { + a.runtimeStatus.runtimeEnvironment.profileVerified = false; + }, + (a) => { + a.runtimeStatus.runtimeEnvironment.executionReady = false; + }, + (a) => { + a.discoveryRequests.capabilities.status = 'loading'; + }, + (a) => { + a.workflowModelDescriptors = []; + }, + (a) => { + a.workflowModelDescriptors.push(structuredClone(a.workflowModelDescriptors[1])); + }, + (a) => { + a.workflowModelDescriptors[1].adapterAuthoringProfile.repository_revisions[0].revision = 'f'.repeat(40); + }, + (a) => { + a.workflowModelDescriptors[1].modelType = 'AnotherModel'; + }, + (a) => { + delete a.workflowModelDescriptors[1].adapterAuthoringProfile; + }, + (a) => { + a.pipelineSupport + .find((p) => p.pipelineClass === raw.pipelineClass) + .tasks.find((t) => t.task === raw.task).dependencies = 'missing'; + }, + ]) { + const invalid = structuredClone(authority); + alter(invalid); + assert.ok(adapters.modelSetupAdapterAddUnavailable(chain, invalid)); + assert.throws(() => + adapters.planModelSetupAdapterEdit( + graph, + root.id, + { + kind: 'add', + registry: invalid.nodesRegistry, + values: { model: { source: 'local', value: 'metadata-only.safetensors' } }, + }, + invalid, + ), + ); + assert.deepEqual(graph, before); + } +}); + +test('fresh declared evaluation drafts attach the current optional enhancement offer after ordinary output completion', async () => { + const authority = await evaluationImageAuthority(); + const raw = structuredClone(evaluationImageFixture.starter); + const profile = evaluationImageFixture.evaluationAuthoring.executionProfiles.find( + (p) => p.pipeline_class === raw.pipelineClass, + ); + const selected = requests.parseOperationStarter(raw, raw.pipelineClass, raw.task, authority.operationContracts, { + executionProfileId: profile.id, + repository: profile.default_repo, + authoringRecipeId: raw.authoring.id, + }); + const registry = Object.fromEntries(selected.nodes.map((node) => [node.operation.nodeKey, node.node])); + registry['modules.Image.Preview'] = { + type: 'custom', + module: 'modules.Image', + action: 'Preview', + category: 'image', + label: 'Preview', + params: { image: { type: 'image', display: 'input' } }, + }; + const before = structuredClone(selected); + const draft = drafts.createWorkflowDraft(selected, registry); + const { unpackVisualOperationGroups } = await server.ssrLoadModule('/src/workflow/visualOperationGroups.ts'); + const { promptEnhancementParentFromHint } = await server.ssrLoadModule('/src/studio/promptEnhancementAuthoring.ts'); + const unpacked = unpackVisualOperationGroups(draft.graph).graph; + const offered = unpacked.nodes.filter((node) => promptEnhancementParentFromHint(node.data.operationAuthoring)); + assert.equal(offered.length, 1); + const offer = promptEnhancementParentFromHint(offered[0].data.operationAuthoring); + assert.equal(offer.parent.authoringRecipeId, raw.authoring.id); + assert.equal(offer.parent.authoringContentHash, raw.authoring.contentHash); + assert.equal(offer.parent.executionProfileId, profile.id); + assert.ok(unpacked.nodes.some((node) => node.data.module === 'modules.Image' && node.data.action === 'Preview')); + assert.equal( + unpacked.nodes.some((node) => node.data.action === 'GenerateImageVideoText'), + false, + 'An offer does not Enable a provider branch.', + ); + assert.deepEqual(selected, before); +}); + +test('a previously unknown evaluation image model uses the same declared policy parser without a model-name branch', async () => { + const source = evaluationImagePayload(); + const names = new Map([ + ['Flux3ModularPipeline', 'FutureImageModularPipeline'], + ['Flux3DistilledModularPipeline', 'FutureCompactImageModularPipeline'], + ]); + const remap = (value) => + typeof value === 'string' + ? (names.get(value) ?? value) + : Array.isArray(value) + ? value.map(remap) + : value && typeof value === 'object' + ? Object.fromEntries(Object.entries(value).map(([key, item]) => [key, remap(item)])) + : value; + const evaluation = await server.ssrLoadModule('/src/workflow/evaluationAuthoring.ts'); + const parsed = evaluation.parseEvaluationAuthoring( + remap(source), + [], + remap(evaluationImageFixture.operationContracts), + ); + assert.equal(parsed.descriptors.length, 2); + assert.ok(parsed.descriptors.every((row) => row.pipeline.startsWith('Future') && row.adapterAuthoringProfile)); + assert.deepEqual( + parsed.descriptors.map((row) => row.adapterAuthoringProfile.adapterAuthoring), + evaluationImageFixture.evaluationAuthoring.executionProfiles.map((row) => row.adapterAuthoring), + ); +}); + +test('evaluation authoring mock payload declares every operation task before the private namespace is decoded', async () => { + const contracts = await server.ssrLoadModule('/src/workflow/operationContracts.ts'); + const catalog = await server.ssrLoadModule('/src/workflow/operationCatalog.ts'); + const evaluation = await server.ssrLoadModule('/src/workflow/evaluationAuthoring.ts'); + const publicStarter = starter(); + const payload = { + ...structuredClone(evaluationImageFixture), + operationContractSchemaVersion: 3, + operationContracts: [ + ...publicStarter.nodes.map((row) => row.operation), + ...evaluationImageFixture.operationContracts, + ], + pipelineSupportSchemaVersion: 1, + pipelineSupport: [ + { + pipelineClass: publicStarter.pipelineClass, + coverage: 'local-adapter', + reason: 'Native authoring fixture; execution unqualified', + equivalentTo: [], + upstreamTasks: [], + tasks: [ + { + task: publicStarter.task, + execution: 'declared', + decomposition: 'stages', + operationIds: publicStarter.nodes.map((row) => row.operation.operationId), + executionProfileIds: [], + dependencies: 'unknown', + runtimeRequirements: [], + }, + ], + }, + ...(evaluationImageFixture.pipelineSupport ?? []), + ], + }; + const operations = contracts.parseOperationContracts( + payload.operationContracts, + payload.operationContractSchemaVersion, + ); + const support = catalog.parsePipelineSupport( + payload.pipelineSupport, + payload.pipelineSupportSchemaVersion, + operations, + ); + const privateRows = support.filter((row) => row.coverage === 'research-blocked'); + assert.equal(privateRows.length, 2); + assert.equal(privateRows.flatMap((row) => row.tasks).length, 4); + assert.ok( + privateRows + .flatMap((row) => row.tasks) + .every((task) => task.dependencies === 'unknown' && task.executionProfileIds.length === 0), + ); + assert.throws( + () => + catalog.parsePipelineSupport( + payload.pipelineSupport.filter((row) => row.coverage !== 'research-blocked'), + 1, + operations, + ), + /Invalid backend operation contract/u, + ); + const decoded = evaluation.parseEvaluationAuthoring(payload, support, operations); + assert.equal(decoded.descriptors.length, 2); + assert.equal( + decoded.support + .filter((row) => privateRows.some((privateRow) => privateRow.pipelineClass === row.pipelineClass)) + .flatMap((row) => row.tasks).length, + 4, + ); +}); + +test('imported runtime option presentation follows current registry availability in both directions without changing the document', async () => { + const options = await server.ssrLoadModule('/src/studio/runtimeOptions.ts'); + const descriptor = (value, available) => ({ + schemaVersion: 1, + value, + label: value, + compatibility: available ? 'compatible' : 'incompatible', + availability: available ? 'installed' : 'unavailable', + installationState: available ? 'installed' : 'unavailable', + ...(available ? {} : { disabledReason: 'Other platform' }), + }); + for (const [savedReady, currentReady] of [ + [false, true], + [true, false], + ]) { + const saved = [descriptor('none', true), descriptor('reviewed-format', savedReady)]; + const current = [ + descriptor('none', true), + descriptor('reviewed-format', currentReady), + descriptor('new-format', true), + ]; + const document = { value: 'none', options: saved, min: 0, hidden: false, source: 'saved', onChange: undefined }; + const original = structuredClone(document); + const presented = options.runtimeOptionEntries(document.options, current); + assert.equal(presented.find((row) => row.value === 'reviewed-format').disabled, !currentReady); + assert.deepEqual( + presented.map((row) => row.value), + ['none', 'reviewed-format'], + 'Current metadata cannot expand authored membership.', + ); + assert.deepEqual(document, original); + const importedOnly = options.runtimeOptionEntries([descriptor('snapshot-only', true)], current); + assert.equal(importedOnly[0].disabled, true, 'An import cannot enable an option absent from the current registry.'); + } +}); + +test('runtime option presentation preserves dynamic authority, dictionary membership and ambiguous-option refusal', async () => { + const options = await server.ssrLoadModule('/src/studio/runtimeOptions.ts'); + const ready = (value) => ({ + schemaVersion: 1, + value, + label: value, + compatibility: 'compatible', + availability: 'installed', + installationState: 'installed', + }); + const saved = { + __formats: 'Formats', + reviewed: { + ...ready('reviewed'), + label: 'Saved label', + group: 'Saved group', + compatibility: 'incompatible', + availability: 'unavailable', + }, + imported: ready('imported'), + }; + const before = structuredClone(saved); + const live = { quantization: { options: [ready('reviewed')] } }; + const presented = options.registeredRuntimeOptionPresentation(saved, 'quantization', live); + assert.deepEqual(Object.keys(presented), Object.keys(saved)); + assert.equal(presented.__formats, 'Formats'); + assert.equal(presented.reviewed.label, 'Saved label'); + assert.equal(presented.reviewed.group, 'Saved group'); + assert.equal(options.runtimeOptionEntries(presented).find((row) => row.value === 'reviewed').disabled, false); + assert.equal(options.runtimeOptionEntries(presented).find((row) => row.value === 'imported').disabled, true); + assert.equal( + options.runtimeOptionEntries([ready('reviewed')], [ready('reviewed'), ready('reviewed')])[0].disabled, + true, + ); + assert.deepEqual(saved, before); + for (const changes of [ + { quantization: { options: live.quantization.options, optionsSource: {} } }, + { other: { onChange: 'refresh_options' } }, + { other: { onSignal: [{ action: 'exec', data: 'refresh_options' }] } }, + { other: { onChange: { action: 'create', data: {} } } }, + { other: { onChange: { action: 'value', target: 'quantization', prop: 'options', data: {} } } }, + ]) { + assert.equal(options.registeredRuntimeOptionPresentation(saved, 'quantization', { ...live, ...changes }), saved); + } + assert.equal(options.registeredRuntimeOptionPresentation(saved, 'quantization', undefined), saved); + assert.deepEqual(options.runtimeOptionEntries(['legacy'], ['new']), options.runtimeOptionEntries(['legacy'])); +}); + test('generic public model inventory preserves native defaults and exact additional format Install/Repair selections', async () => { const inventory = await server.ssrLoadModule('/src/workflow/workflowModelInventory.ts'); const actual = JSON.parse( diff --git a/src/components/ModelSetupAdapterControls.tsx b/src/components/ModelSetupAdapterControls.tsx index 8ba9886e..b67b6d78 100644 --- a/src/components/ModelSetupAdapterControls.tsx +++ b/src/components/ModelSetupAdapterControls.tsx @@ -31,7 +31,8 @@ export default function ModelSetupAdapterControls({ updateStore: (param: string, value: unknown, key?: keyof NodeParams) => void; }) { const graph = useFlowStore(useShallow((state) => ({ nodes: state.nodes, edges: state.edges }))); - const authority = useNodesStore( + const resourceMode = useStudioStore((state) => state.form.resourceMode); + const discovered = useNodesStore( useShallow((state) => ({ nodesRegistry: state.nodesRegistry, studioModelCapabilities: state.studioModelCapabilities, @@ -39,9 +40,12 @@ export default function ModelSetupAdapterControls({ studioExecutionSpecInvalid: state.studioExecutionSpecInvalid, operationContracts: state.operationContracts, pipelineSupport: state.pipelineSupport, + workflowModelDescriptors: state.workflowModelDescriptors, + runtimeStatus: state.runtimeStatus, discoveryRequests: state.discoveryRequests, })), ); + const authority = { ...discovered, resourceMode }; const [draft, setDraft] = useState(null); const [error, setError] = useState(null); const [open, setOpen] = useState(false); @@ -70,7 +74,7 @@ export default function ModelSetupAdapterControls({ graph, node.id, edit.kind === 'add' || edit.kind === 'replace' ? { ...edit, registry: current.nodesRegistry } : edit, - current, + { ...current, resourceMode: useStudioStore.getState().form.resourceMode }, ); commitOperationGraph(next, context, operationGraphSignature(graph), `${edit.kind} model adapter`); useStudioStore.getState().saveActiveWorkflowTab(true); @@ -87,8 +91,14 @@ export default function ModelSetupAdapterControls({ try { currentChain = modelSetupAdapterChain(graph, node.id); const unavailable = replaceId - ? modelSetupAdapterEditUnavailable(currentChain, useNodesStore.getState()) - : modelSetupAdapterAddUnavailable(currentChain, useNodesStore.getState()); + ? modelSetupAdapterEditUnavailable(currentChain, { + ...useNodesStore.getState(), + resourceMode: useStudioStore.getState().form.resourceMode, + }) + : modelSetupAdapterAddUnavailable(currentChain, { + ...useNodesStore.getState(), + resourceMode: useStudioStore.getState().form.resourceMode, + }); if (unavailable) throw new Error(unavailable); } catch (failure) { setError(failure instanceof Error ? failure.message : 'Adapter controls are unavailable.'); @@ -175,7 +185,10 @@ export default function ModelSetupAdapterControls({ } try { const chain = modelSetupAdapterChain(useFlowStore.getState().toObject(), node.id); - const unavailable = modelSetupAdapterEditUnavailable(chain, useNodesStore.getState()); + const unavailable = modelSetupAdapterEditUnavailable(chain, { + ...useNodesStore.getState(), + resourceMode: useStudioStore.getState().form.resourceMode, + }); if (unavailable) throw new Error(unavailable); updateStore(param, value, key); } catch (failure) { diff --git a/src/components/NodeContent.tsx b/src/components/NodeContent.tsx index e5f46d48..02e5f35b 100644 --- a/src/components/NodeContent.tsx +++ b/src/components/NodeContent.tsx @@ -13,10 +13,10 @@ import { type WorkflowOperationContext, } from '../stores/useStudioStore'; import { formPatchForAutoCandidate, selectedAutoCandidate } from '../studio/autoResource'; -import { NodeParams, type NodeParamOptions, type NodeParamSignal } from '../stores/useNodeStore'; +import { NodeParams, type NodeParamOptions, type NodeParamSignal, useNodesStore } from '../stores/useNodeStore'; import { useFlowStore } from '../stores/useFlowStore'; import { classifyManagedControl } from '../studio/managedControlPolicy'; -import { runtimeOptionValues } from '../studio/runtimeOptions'; +import { registeredRuntimeOptionPresentation, runtimeOptionValues } from '../studio/runtimeOptions'; import { sanitizeModiffFieldStyle, type ModiffFieldStyle } from '../theme'; import type { ImageArtifact } from '../utils/imageArtifacts'; import { GraphControlButton } from '../ui/GraphControls'; @@ -153,6 +153,7 @@ const NodeContent = memo(function NodeContent({ const studioResourceMode = studioForm.resourceMode; const studioGraphBinding = useStudioStore((state) => state.graphBinding); const graphNode = useFlowStore((state) => state.nodes.find((node) => node.id === nodeId)); + const nodesRegistry = useNodesStore((state) => state.nodesRegistry); const connectionNotes = useFlowStore( useShallow((state) => blockControlConnectionNotesV2( @@ -212,7 +213,12 @@ const NodeContent = memo(function NodeContent({ Array.isArray(data.type) && data.type.length > 0 ? data.type[0] : data.type || 'string' ) as string; const connectionType = data.type || 'string'; - const options = liveFieldOptions(module, key, display, data.options || []); + const options = liveFieldOptions( + module, + key, + display, + registeredRuntimeOptionPresentation(data.options || [], key, nodesRegistry[`${module}.${action}`]?.params), + ); const fieldType = getFieldType(display, dataType, options); // A managed model choice already resolves the repository, implementation // route and pipeline class atomically. Keep model_type in the persisted diff --git a/src/components/OperationGraphControls.tsx b/src/components/OperationGraphControls.tsx index 4db227d7..2b2274a7 100644 --- a/src/components/OperationGraphControls.tsx +++ b/src/components/OperationGraphControls.tsx @@ -52,14 +52,18 @@ export default function OperationGraphControls({ const workflow = useStudioStore((s) => s.activeWorkflowTabId); const canvasEpoch = useStudioStore((s) => s.workflowCanvasEpoch); const operations = useNodesStore((s) => s.operationContracts); - const evaluationOnly = useNodesStore((s) => - s.workflowModelDescriptors.some( - (descriptor) => - descriptor.evaluationOnly && - descriptor.pipeline === pipeline && - (!executionProfileId || descriptor.profileId === executionProfileId), - ), + const descriptors = useNodesStore((s) => s.workflowModelDescriptors); + const matchingDescriptors = descriptors.filter( + (descriptor) => + descriptor.evaluationOnly && + descriptor.pipeline === pipeline && + (!executionProfileId || descriptor.profileId === executionProfileId), ); + const evaluationOnly = matchingDescriptors.length > 0; + const selectedExecutionProfileId = + executionProfileId ?? (matchingDescriptors.length === 1 ? matchingDescriptors[0]!.profileId : undefined); + const authoringRecipeId = + matchingDescriptors.length === 1 ? matchingDescriptors[0]!.authoringRecipes?.[task] : undefined; const [chosenLoader, setLoader] = useState(''); const loader = ownerId ?? chosenLoader; const [busy, setBusy] = useState(false); @@ -84,7 +88,7 @@ export default function OperationGraphControls({ return () => { pending.current?.abort(); }; - }, [pipeline, task, workflow, canvasEpoch, loader, blockId, executionProfileId]); + }, [pipeline, task, workflow, canvasEpoch, loader, blockId, selectedExecutionProfileId, authoringRecipeId]); async function prepare(change: boolean) { if (pending.current) return; @@ -98,7 +102,14 @@ export default function OperationGraphControls({ try { if (evaluationOnly && useStudioStore.getState().form.resourceMode !== 'expert') throw new Error('Select Custom memory before choosing an evaluation model.'); - const starter = await requestOperationStarter(pipeline, task, operations, controller.signal, executionProfileId); + const starter = await requestOperationStarter( + pipeline, + task, + operations, + controller.signal, + selectedExecutionProfileId, + authoringRecipeId, + ); if (controller.signal.aborted) return; assertWorkflowOperationContext(context, { includeForm: false }); if (operationGraphPreviewSignature(useFlowStore.getState().toObject()) !== signature) diff --git a/src/components/OperationModelPicker.tsx b/src/components/OperationModelPicker.tsx index f341b58c..895aecd6 100644 --- a/src/components/OperationModelPicker.tsx +++ b/src/components/OperationModelPicker.tsx @@ -18,6 +18,7 @@ import { commitOperationGraph, operationGraphSignature } from '../workflow/opera import { groupWorkflowModels, workflowChoices, + workflowModelMatchesQuery, workflowTaskLabel, type WorkflowChoice, } from '../workflow/workflowChoices'; @@ -75,12 +76,7 @@ export default function OperationModelPicker({ [support, models, cache, local, diagnostics, descriptors, hint.operation.task], ); const current = choices.find((c) => c.repo === value && c.pipeline === hint.operation.pipelineClass); - const visible = choices.filter( - (c) => - (!c.evaluationOnly || resourceMode === 'expert') && - (!installed || c.cache?.runnable) && - `${c.label} ${c.repo}`.toLowerCase().includes(query.trim().toLowerCase()), - ); + const visible = choices.filter((c) => (!installed || c.cache?.runnable) && workflowModelMatchesQuery(c, query)); useEffect(() => { setOpen(false); @@ -130,6 +126,7 @@ export default function OperationModelPicker({ operations, controller.signal, choice.profileId, + choice.authoringRecipeId, ); if (controller.signal.aborted) return; assertWorkflowOperationContext(context, { includeForm: false }); @@ -291,7 +288,21 @@ export default function OperationModelPicker({ downloaded or executed.

{resourceMode !== 'expert' && choices.some((choice) => choice.evaluationOnly) ? ( -

Evaluation models are available with Custom memory.

+
+

Some models require Custom memory. Switching does not select a model or run the workflow.

+ { + const studio = useStudioStore.getState(); + if (studio.activeWorkflowTabId !== workflow) return; + studio.updateForm({ resourceMode: 'expert' }); + setReview(null); + setError(null); + }} + > + Use Custom memory + +
) : null} void choose(choice)} tone={review?.choice.id === choice.id ? 'primary' : 'ghost'} > @@ -338,7 +349,11 @@ export default function OperationModelPicker({ ) : null} {choice.support.decomposition === 'stages' ? 'Editable nodes' : 'Whole pipeline'} - {choice.evaluationOnly ? Evaluation · Custom memory : null} + {choice.evaluationOnly ? ( + + {resourceMode === 'expert' ? 'Evaluation · Custom memory' : 'Custom memory required'} + + ) : null} {choice.support.dependencies === 'blocked' ? Runtime setup required : null} @@ -360,7 +375,7 @@ export default function OperationModelPicker({ aria-pressed={review?.choice.id === route.id} align="left" className="h-auto w-full justify-between px-2 py-2" - disabled={busy} + disabled={busy || (route.evaluationOnly && resourceMode !== 'expert')} onClick={() => void choose(route)} tone={review?.choice.id === route.id ? 'primary' : 'ghost'} > diff --git a/src/stores/flowGraphExport.ts b/src/stores/flowGraphExport.ts index d8ddfb92..32f5e8f4 100644 --- a/src/stores/flowGraphExport.ts +++ b/src/stores/flowGraphExport.ts @@ -38,8 +38,9 @@ function resolveRandomFieldValue( sharedRandomValues: Map, operationSharedKey?: string, ) { - const randomValue = isRecord(paramData.value) ? paramData.value : null; - const fieldValue = randomValue && 'value' in randomValue ? randomValue.value : paramData.value; + const effectiveValue = paramData.value ?? paramData.default; + const randomValue = isRecord(effectiveValue) ? effectiveValue : null; + const fieldValue = randomValue && 'value' in randomValue ? randomValue.value : effectiveValue; const isRandom = randomValue && 'isRandom' in randomValue ? Boolean(randomValue.isRandom) : false; if (!isRandom) { diff --git a/src/studio/runtimeOptions.ts b/src/studio/runtimeOptions.ts index ef25665a..ebe44b66 100644 --- a/src/studio/runtimeOptions.ts +++ b/src/studio/runtimeOptions.ts @@ -1,4 +1,5 @@ import type { OptionDescriptor } from './types'; +import type { NodeParamOptions, NodeParams } from '../stores/useNodeStore'; type UnknownRecord = Record; @@ -112,7 +113,8 @@ function normalizedOption(raw: unknown, fallbackValue?: string, fallbackKey?: st * declarations. Invalid object values are omitted instead of becoming * "[object Object]". */ -export function runtimeOptionEntries(options: unknown): RuntimeOptionEntry[] { +export function runtimeOptionEntries(options: unknown, currentOptions?: unknown): RuntimeOptionEntry[] { + if (currentOptions !== undefined) options = runtimeOptionPresentation(options, currentOptions); if (Array.isArray(options)) { return options .map((option, index) => normalizedOption(option, undefined, `option-${index}`)) @@ -134,6 +136,72 @@ export function runtimeOptionEntries(options: unknown): RuntimeOptionEntry[] { .filter((entry): entry is RuntimeOptionEntry => Boolean(entry)); } +/** Current runtime status is presentation, not part of an imported document. */ +export function runtimeOptionPresentation(options: unknown, currentOptions: unknown): NodeParamOptions { + const saved = runtimeOptionEntries(options); + const current = runtimeOptionEntries(currentOptions); + if (![...saved, ...current].some((row) => row.type === 'option' && row.descriptor)) { + return (options ?? []) as NodeParamOptions; + } + const present = (raw: unknown, key?: string) => { + const entry = normalizedOption(raw, key, key); + if (!entry || entry.type !== 'option') return raw; + const matches = current.filter((row) => row.type === 'option' && row.value === entry.value); + const match = matches.length === 1 ? matches[0] : undefined; + const live = match?.type === 'option' ? match.descriptor : undefined; + return { + schemaVersion: 1, + value: entry.value, + label: entry.label, + ...(entry.group ? { group: entry.group } : {}), + compatibility: live?.compatibility ?? 'unknown', + availability: live?.availability ?? 'unavailable', + installationState: live?.installationState ?? 'unavailable', + ...(live?.dependencies ? { dependencies: { ...live.dependencies } } : {}), + ...(live?.disabledReason + ? { disabledReason: live.disabledReason } + : !live + ? { disabledReason: 'This option is not declared by the current runtime.' } + : {}), + }; + }; + if (Array.isArray(options)) return options.map((raw) => present(raw)); + if (!isRecord(options)) return []; + return Object.fromEntries( + Object.entries(options).map(([key, raw]) => [key, key.startsWith('__') ? raw : present(raw, key)]), + ); +} + +function actionCanSetOptions(action: unknown, fieldKey: string): boolean { + if (Array.isArray(action)) return action.some((item) => actionCanSetOptions(item, fieldKey)); + if (typeof action === 'string') return true; + if (!isRecord(action)) return false; + return ( + action.action === 'exec' || + action.action === 'create' || + (action.action === 'value' && action.target === fieldKey && action.prop === 'options') + ); +} + +/** Dynamic actions/optionsSource keep their existing authority and consent. */ +export function registeredRuntimeOptionPresentation( + options: NodeParamOptions, + fieldKey: string, + currentFields: Record | undefined, +): NodeParamOptions { + const current = currentFields?.[fieldKey]; + if ( + !current || + Object.prototype.hasOwnProperty.call(current, 'optionsSource') || + Object.values(currentFields ?? {}).some( + (field) => actionCanSetOptions(field.onChange, fieldKey) || actionCanSetOptions(field.onSignal, fieldKey), + ) + ) { + return options; + } + return runtimeOptionPresentation(options, current.options ?? []); +} + export function runtimeOptionValues(options: unknown, { includeDisabled = false }: { includeDisabled?: boolean } = {}) { return runtimeOptionEntries(options) .filter( diff --git a/src/workflow/evaluationAuthoring.ts b/src/workflow/evaluationAuthoring.ts index 7b8063f1..8bc7ad37 100644 --- a/src/workflow/evaluationAuthoring.ts +++ b/src/workflow/evaluationAuthoring.ts @@ -1,6 +1,7 @@ import { parsePipelineSupport, type PipelineSupport } from './operationCatalog'; import { boundedText, identifier, record, type OperationContract } from './operationContracts'; import type { WorkflowModelDescriptor } from './workflowChoices'; +import { parseImageAdapterAuthoringPolicy, parseOptionalRuntimeExecutionProfiles } from '../studio/optionalRuntimes'; /** Explicit installed evaluation metadata only; never changes public model capabilities. */ export function parseEvaluationAuthoring( @@ -12,6 +13,10 @@ export function parseEvaluationAuthoring( const invalid = (): never => { throw new Error('Invalid evaluation authoring metadata.'); }; + const hasRecipes = + payload.evaluationAuthoring !== null && + typeof payload.evaluationAuthoring === 'object' && + Object.prototype.hasOwnProperty.call(payload.evaluationAuthoring, 'authoringRecipes'); const item = record(payload.evaluationAuthoring, [ 'schemaVersion', 'scope', @@ -20,6 +25,7 @@ export function parseEvaluationAuthoring( 'galleryEligible', 'executionProfiles', 'pipelineSupport', + ...(hasRecipes ? ['authoringRecipes'] : []), ]); if ( item.schemaVersion !== 1 || @@ -51,6 +57,7 @@ export function parseEvaluationAuthoring( model: identifier(profile.model_type), repo: boundedText(profile.default_repo, 512), modes: (profile.modes as unknown[]).map(identifier), + raw: profile, }; }); const publicIds = new Set(support.flatMap((p) => p.tasks.flatMap((task) => task.executionProfileIds))); @@ -80,6 +87,30 @@ export function parseEvaluationAuthoring( } } if (selected.size !== profiles.length) invalid(); + const recipes = new Map>(); + if (hasRecipes) { + if (!Array.isArray(item.authoringRecipes) || item.authoringRecipes.length > 4) invalid(); + for (const raw of item.authoringRecipes as unknown[]) { + const row = record(raw, ['executionProfileId', 'pipelineClass', 'task', 'authoringRecipeId']); + const profileId = boundedText(row.executionProfileId, 256); + const task = identifier(row.task); + const profile = profiles.find((p) => p.id === profileId && p.pipeline === row.pipelineClass); + if ( + !profile || + !profile.modes.includes(task) || + !declared.some( + (pipeline) => + pipeline.pipelineClass === profile.pipeline && + pipeline.tasks.some((row) => row.task === task && row.executionProfileIds.includes(profileId)), + ) + ) + invalid(); + const byTask = recipes.get(profileId) ?? {}; + if (Object.prototype.hasOwnProperty.call(byTask, task)) invalid(); + byTask[task] = boundedText(row.authoringRecipeId, 256); + recipes.set(profileId, byTask); + } + } const descriptors = profiles.map((profile): WorkflowModelDescriptor => { const matches = (payload.capabilities as unknown[]).filter( (raw) => @@ -98,12 +129,46 @@ export function parseEvaluationAuthoring( model.defaultRepo !== profile.repo ) invalid(); + let adapterAuthoringProfile: WorkflowModelDescriptor['adapterAuthoringProfile']; + if (Object.prototype.hasOwnProperty.call(profile.raw, 'adapterAuthoring')) { + const [parsed] = parseOptionalRuntimeExecutionProfiles( + [structuredClone(profile.raw)], + undefined, + (mode): mode is string => typeof mode === 'string' && profile.modes.includes(mode), + ); + const adapterAuthoring = parseImageAdapterAuthoringPolicy( + parsed!.adapterAuthoring, + profile.modes, + parsed!.repository_revisions as { repo: string; revision: string }[] | undefined, + { + loader_module: boundedText(parsed!.loader_module, 256), + loader_action: identifier(parsed!.loader_action), + execution_path: boundedText(parsed!.execution_path, 256), + }, + ); + adapterAuthoringProfile = { + id: profile.id, + model_type: profile.model, + pipeline_class: profile.pipeline, + default_repo: profile.repo, + modes: profile.modes, + loader_module: boundedText(parsed!.loader_module, 256), + loader_action: identifier(parsed!.loader_action), + execution_path: boundedText(parsed!.execution_path, 256), + repository_revisions: adapterAuthoring.repositoryRevisions, + optionalRuntimeRequirement: parsed!.optionalRuntimeRequirement, + adapterAuthoring, + }; + } return { profileId: profile.id, pipeline: profile.pipeline, label: boundedText(model.label, 512), repo: profile.repo, evaluationOnly: true, + modelType: profile.model, + ...(adapterAuthoringProfile ? { adapterAuthoringProfile } : {}), + ...(recipes.has(profile.id) ? { authoringRecipes: recipes.get(profile.id) } : {}), }; }); return { support: [...support.filter((p) => !pipelines.has(p.pipelineClass)), ...declared], descriptors }; diff --git a/src/workflow/modelSetupAdapters.ts b/src/workflow/modelSetupAdapters.ts index 842bdb2f..8ce2078a 100644 --- a/src/workflow/modelSetupAdapters.ts +++ b/src/workflow/modelSetupAdapters.ts @@ -1,7 +1,8 @@ import { nanoid } from 'nanoid'; import type { CustomNodeType } from '../stores/useFlowStore'; -import type { DiscoveryRequestState, NodeData } from '../stores/useNodeStore'; +import type { DiscoveryRequestState, NodeData, RuntimeStatus } from '../stores/useNodeStore'; import type { StudioImageAdapterAuthoringPolicy, StudioModelProfile } from '../studio/types'; +import type { WorkflowModelDescriptor } from './workflowChoices'; import type { OperationContract } from './operationContracts'; import type { PipelineSupport } from './operationCatalog'; import type { OperationGraph } from './operationAuthoring'; @@ -142,9 +143,13 @@ export type ModelSetupAdapterAuthority = { studioExecutionSpecInvalid: boolean; operationContracts: readonly OperationContract[]; pipelineSupport: readonly PipelineSupport[]; + workflowModelDescriptors?: readonly WorkflowModelDescriptor[]; + resourceMode?: 'auto' | 'expert'; + runtimeStatus?: RuntimeStatus | null; discoveryRequests: { nodes: Pick; capabilities: Pick; + runtime?: Pick; }; }; @@ -368,7 +373,7 @@ function modelSetupAdapterAuthoringLimit( !/^[a-f0-9]{40}$/u.test(revision) ) return 'Select a reviewed image model and exact revision before adding LoRA.'; - const matches = authority.studioModelCapabilities.flatMap((capability) => + const publicMatches = authority.studioModelCapabilities.flatMap((capability) => (capability.executionProfiles ?? []) .filter( (profile) => @@ -382,11 +387,50 @@ function modelSetupAdapterAuthoringLimit( repository.value as string, ), ) - .map((profile) => ({ capability, profile })), + .map((profile) => ({ capability, profile, evaluationOnly: false })), ); + const evaluationMatches = (authority.workflowModelDescriptors ?? []).flatMap((descriptor) => { + const profile = descriptor.adapterAuthoringProfile; + return descriptor.evaluationOnly && + profile && + descriptor.profileId === profile.id && + descriptor.modelType === profile.model_type && + descriptor.pipeline === profile.pipeline_class && + descriptor.repo === profile.default_repo && + profile.pipeline_class === pipeline && + profile.loader_module === owner.data.module && + profile.loader_action === owner.data.action && + task.executionProfileIds.includes(profile.id) && + (native || value('execution_profile_id') === profile.id) && + profile.default_repo === repository.value + ? [{ capability: undefined, profile, evaluationOnly: true }] + : []; + }); + const matches = [...publicMatches, ...evaluationMatches]; if (matches.length !== 1) return 'The selected image model profile is unavailable or ambiguous. Refresh capabilities.'; - const { capability, profile } = matches[0]!; + const { capability, profile, evaluationOnly } = matches[0]!; + if (evaluationOnly) { + if (authority.resourceMode !== 'expert') return 'Select Custom memory before editing evaluation model LoRA.'; + const runtime = authority.runtimeStatus; + const requirement = profile.optionalRuntimeRequirement; + const readyState = (state: string) => state === 'base_satisfied' || state === 'active'; + const requirements = task.runtimeRequirements.filter((row) => row.executionProfileIds.includes(profile.id)); + if ( + authority.discoveryRequests.runtime?.status !== 'success' || + runtime?.ready !== true || + !runtime.runtimeEnvironment?.profileVerified || + !runtime.runtimeEnvironment?.executionReady || + task.dependencies !== 'ready' || + !requirement || + requirement.executionProfileIds.length !== 1 || + requirement.executionProfileIds[0] !== profile.id || + !readyState(requirement.state) || + !requirements.length || + requirements.some((row) => !readyState(row.state)) + ) + return 'Refresh the verified evaluation runtime and model capabilities before editing LoRA.'; + } const adapter = authority.nodesRegistry[adapterKey]; const loader = authority.nodesRegistry[key(owner)]; if ( @@ -451,7 +495,7 @@ function modelSetupAdapterAuthoringLimit( const canonical = native ? authority.studioModelCapabilities.find((item) => item.modelType === pipeline) : undefined; - if (capability.supportsLora !== true || (canonical && canonical.supportsLora !== true)) + if (capability?.supportsLora !== true || (canonical && canonical.supportsLora !== true)) return 'The selected image model does not support LoRA.'; } if (!profile.repository_revisions?.some((pair) => pair.repo === repository.value && pair.revision === revision)) diff --git a/src/workflow/workflowChoices.ts b/src/workflow/workflowChoices.ts index adab61e9..553ce228 100644 --- a/src/workflow/workflowChoices.ts +++ b/src/workflow/workflowChoices.ts @@ -1,5 +1,6 @@ import type { ModelCacheDiagnostics } from '../stores/useNodeStore'; import type { StudioModelProfile } from '../studio/types'; +import type { StudioExecutionProfile, StudioImageAdapterAuthoringPolicy } from '../studio/types'; import { getRepoCacheStatus, getStudioModelCacheStatus, type StudioModelCacheStatus } from '../studio/modelCache'; import type { PipelineSupport, PipelineTaskSupport } from './operationCatalog'; import { parseWorkflowModelInventory, type WorkflowModelInventory } from './workflowModelInventory'; @@ -14,6 +15,24 @@ export type WorkflowChoice = { support: PipelineTaskSupport; cache: StudioModelCacheStatus | null; evaluationOnly?: true; + authoringRecipeId?: string; +}; + +/** Generic selected-profile authority; it does not widen the legacy Studio model union. */ +export type WorkflowImageAdapterProfile = Pick< + StudioExecutionProfile, + | 'id' + | 'pipeline_class' + | 'loader_module' + | 'loader_action' + | 'execution_path' + | 'default_repo' + | 'optionalRuntimeRequirement' +> & { + model_type: string; + modes: string[]; + repository_revisions: StudioImageAdapterAuthoringPolicy['repositoryRevisions']; + adapterAuthoring: StudioImageAdapterAuthoringPolicy; }; export type WorkflowModelDescriptor = { @@ -23,6 +42,9 @@ export type WorkflowModelDescriptor = { repo: string; inventory?: WorkflowModelInventory; evaluationOnly?: true; + modelType?: string; + adapterAuthoringProfile?: WorkflowImageAdapterProfile; + authoringRecipes?: Readonly>; }; /** Presentation-only identities for generic workflows, independent of legacy Studio forms. */ @@ -99,6 +121,7 @@ export function workflowChoices( label: string; repo: string; evaluationOnly?: true; + authoringRecipes?: Readonly>; }>((id) => { const entry = profiles.get(id); if (entry) @@ -118,7 +141,7 @@ export function workflowChoices( cache: null, }, ]; - return matches.map(({ model, profileId, label, repo, evaluationOnly }) => ({ + return matches.map(({ model, profileId, label, repo, evaluationOnly, authoringRecipes }) => ({ id: `${pipeline.pipelineClass}:${task.task}:${profileId}`, pipeline: pipeline.pipelineClass, task: task.task, @@ -126,6 +149,7 @@ export function workflowChoices( repo, profileId, ...(evaluationOnly ? { evaluationOnly } : {}), + ...(authoringRecipes?.[task.task] ? { authoringRecipeId: authoringRecipes[task.task] } : {}), support: task, cache: model && model.defaultRepo === repo @@ -157,6 +181,16 @@ export function workflowTaskLabel(task: string): string { return TASK_LABELS[task] ?? task.replace(/_/gu, ' ').replace(/^./u, (c) => c.toUpperCase()); } +/** Search presentation text independently of punctuation in a model or repository name. */ +export function workflowModelMatchesQuery(choice: Pick, query: string): boolean { + const normalize = (value: string) => value.toLowerCase().replace(/[^\p{L}\p{N}]/gu, ''); + const text = normalize(`${choice.label} ${choice.repo ?? ''}`); + return query + .trim() + .split(/\s+/u) + .every((part) => text.includes(normalize(part))); +} + /** One model row per repository/task, with exact backend routes still selectable. */ export function groupWorkflowModels(choices: WorkflowChoice[], currentId?: string) { const groups = new Map(); diff --git a/src/workflow/workflowDraft.ts b/src/workflow/workflowDraft.ts index 7aed6953..f02504f2 100644 --- a/src/workflow/workflowDraft.ts +++ b/src/workflow/workflowDraft.ts @@ -5,6 +5,7 @@ import { createOperationStarter, type OperationStarter } from './operationAuthor import { createNodeFromRegistry } from './nodeFactory'; import { groupNewOperationGraph } from './visualOperationGroups'; import { workflowTaskCategory } from './workflowTaskBrowser'; +import { refreshPromptEnhancementParents } from '../studio/promptEnhancementAuthoring'; const OUTPUTS = [ { type: 'image', key: 'modules.Image.Preview', input: 'image' }, @@ -116,5 +117,14 @@ export function createWorkflowDraft(starter: OperationStarter, registry: Record< } if (!outputCount) notices.push('No compatible output node is registered. Connect a Preview, Save or Export node before running.'); - return { graph: groupNewOperationGraph(graph), notices }; + return { + graph: groupNewOperationGraph( + refreshPromptEnhancementParents( + graph, + starter.authoring, + sources.map((node) => node.id), + ), + ), + notices, + }; } diff --git a/tests/e2e/studio-mocked/studio-mocked.spec.ts b/tests/e2e/studio-mocked/studio-mocked.spec.ts index 42e96d5d..e7b72437 100644 --- a/tests/e2e/studio-mocked/studio-mocked.spec.ts +++ b/tests/e2e/studio-mocked/studio-mocked.spec.ts @@ -10750,10 +10750,17 @@ test('operation authoring fixtures isolate mutations between cached reads', asyn expect(await operationStarterFixtures()).toEqual(expected); }); -async function installOperationAuthoringRoutes(page: Page, exactModel = false) { +async function installOperationAuthoringRoutes(page: Page, exactModel = false, evaluationImage = false) { await installMockRoutes(page); const starters = await operationStarterFixtures(); - const operations = starters.flatMap((s) => s.nodes.map((n) => n.operation)); + const evaluation = evaluationImage + ? JSON.parse(await fs.readFile(path.join(CLIENT_ROOT, 'tests/fixtures/evaluation-image-authoring.v1.json'), 'utf8')) + : null; + const imageSchemas = evaluation ? await imageTemplateSchemas() : null; + const operations = [ + ...starters.flatMap((s) => s.nodes.map((n) => n.operation)), + ...(evaluation?.operationContracts ?? []), + ]; await page.unroute('**/model_capabilities**'); await page.route('**/model_capabilities**', (route) => route.fulfill({ @@ -10761,50 +10768,62 @@ async function installOperationAuthoringRoutes(page: Page, exactModel = false) { contentType: 'application/json', body: JSON.stringify({ schemaVersion: 2, - capabilities: mockStudioExecutionCapabilities(), + capabilities: [...mockStudioExecutionCapabilities(), ...(evaluation?.capabilities ?? [])], + ...(evaluation ? { evaluationAuthoring: evaluation.evaluationAuthoring } : {}), operationContractSchemaVersion: 3, operationContracts: operations, pipelineSupportSchemaVersion: 1, - pipelineSupport: [...new Set(starters.map((s) => s.pipelineClass))].map((pipelineClass) => ({ - pipelineClass, - coverage: 'local-adapter', - reason: 'Native authoring fixture; execution unqualified', - equivalentTo: [], - upstreamTasks: [], - tasks: starters - .filter((s) => s.pipelineClass === pipelineClass) - .map((s) => ({ - task: s.task, - execution: 'declared', - decomposition: s.nodes.some((n) => ['pipeline', 'integrated'].includes(n.operation.decomposition)) - ? 'pipeline' - : 'stages', - operationIds: s.nodes.map((n) => n.operation.operationId), - executionProfileIds: - exactModel && s.pipelineClass === 'QwenImageModularPipeline' ? ['qwen-image:modular'] : [], - dependencies: exactModel && s.pipelineClass === 'QwenImageModularPipeline' ? 'ready' : 'unknown', - runtimeRequirements: - exactModel && s.pipelineClass === 'QwenImageModularPipeline' - ? [ - { - schemaVersion: 1, - delivery: 'base', - requiredNow: false, - profileIds: [], - executionProfileIds: ['qwen-image:modular'], - state: 'base_satisfied', - reason: 'base_runtime', - }, - ] - : [], - })), - })), + pipelineSupport: [ + ...[...new Set(starters.map((s) => s.pipelineClass))].map((pipelineClass) => ({ + pipelineClass, + coverage: 'local-adapter', + reason: 'Native authoring fixture; execution unqualified', + equivalentTo: [], + upstreamTasks: [], + tasks: starters + .filter((s) => s.pipelineClass === pipelineClass) + .map((s) => ({ + task: s.task, + execution: 'declared', + decomposition: s.nodes.some((n) => ['pipeline', 'integrated'].includes(n.operation.decomposition)) + ? 'pipeline' + : 'stages', + operationIds: s.nodes.map((n) => n.operation.operationId), + executionProfileIds: + exactModel && s.pipelineClass === 'QwenImageModularPipeline' ? ['qwen-image:modular'] : [], + dependencies: exactModel && s.pipelineClass === 'QwenImageModularPipeline' ? 'ready' : 'unknown', + runtimeRequirements: + exactModel && s.pipelineClass === 'QwenImageModularPipeline' + ? [ + { + schemaVersion: 1, + delivery: 'base', + requiredNow: false, + profileIds: [], + executionProfileIds: ['qwen-image:modular'], + state: 'base_satisfied', + reason: 'base_runtime', + }, + ] + : [], + })), + })), + ...(evaluation?.pipelineSupport ?? []), + ], }), }), ); await page.unroute('**/nodes'); const registry = { ...Object.fromEntries(starters.flatMap((s) => s.nodes.map((n) => [n.operation.nodeKey, n.node]))), + ...Object.fromEntries( + (evaluation?.starter.nodes ?? []).map((n: OperationStarter['nodes'][number]) => [n.operation.nodeKey, n.node]), + ), + ...(imageSchemas + ? { + 'modules.ModularDiffusers.Lora': imageSchemas.registry['modules.ModularDiffusers.Lora']!, + } + : {}), 'modules.Image.Load': mockRegistry['modules.Image.Load'], 'modules.Image.Preview': mockGraphQualifiedQwenRegistry['modules.Image.Preview'], 'modules.Audio.Preview': nodeDef('modules.Audio', 'Preview', 'audio', { @@ -10814,6 +10833,21 @@ async function installOperationAuthoringRoutes(page: Page, exactModel = false) { await page.route('**/nodes', (route) => route.fulfill({ status: 200, contentType: 'application/json', body: JSON.stringify({ nodes: registry }) }), ); + if (evaluation) + await page.route('**/runtime/status**', (route) => + route.fulfill({ + json: { + ready: true, + runtime_profile: { + requested: 'mock-declared-runtime', + installed: 'mock-declared-runtime', + execution_ready: true, + status: 'ready', + }, + packages: { torch: { available: true, cuda_available: true, cuda_device_count: 1 } }, + }, + }), + ); await page.route('**/operations/task-starter', (route) => { const selection = route.request().postDataJSON(); const value = structuredClone(starters.find((s) => s.task === selection.task)); @@ -10832,7 +10866,11 @@ async function installOperationAuthoringRoutes(page: Page, exactModel = false) { await page.route('**/operations/starter', (route) => { const selection = route.request().postDataJSON(); const value = structuredClone( - starters.find((s) => s.pipelineClass === selection.pipelineClass && s.task === selection.task), + evaluation && + selection.executionProfileId === 'flux3-klein-base:modular' && + selection.authoringRecipeId === evaluation.starter.authoring.id + ? evaluation.starter + : starters.find((s) => s.pipelineClass === selection.pipelineClass && s.task === selection.task), ); if (exactModel && value && selection.executionProfileId === 'qwen-image:modular') { const loader = value.nodes.find((n) => n.operation.decomposition === 'loader')!; @@ -11453,6 +11491,110 @@ test('ordinary operation graphs preserve native edits through model/task preview expect(errors).toEqual([]); }); +test('normal New T2I discovers declared evaluation models in Auto without changing the draft until an explicit Custom choice', async ({ + page, +}) => { + await page.setViewportSize({ width: 1680, height: 1050 }); + await ensureFrontend(); + await installOperationAuthoringRoutes(page, true, true); + await page.addInitScript(() => + localStorage.setItem('modiff.settings', JSON.stringify({ state: { workspaceMode: 'developer' }, version: 0 })), + ); + const executionRequests: string[] = []; + const starterSelections: Record[] = []; + page.on('request', (request) => { + const pathname = new URL(request.url()).pathname; + if (request.method() === 'POST' && /\/(?:graph|execute|install)(?:\/|$)/u.test(pathname)) + executionRequests.push(pathname); + if (request.method() === 'POST' && pathname === '/operations/starter') + starterSelections.push(request.postDataJSON()); + }); + await page.goto(FRONTEND_URL, { waitUntil: 'domcontentloaded' }); + const launcher = page.getByRole('dialog', { name: 'Workflows', exact: true }); + await launcher.getByTestId('workflow-task-text_to_image').click(); + await expect(launcher).toHaveCount(0); + await page.waitForFunction(() => Boolean(window.__MODIFF_E2E__?.getState().studio.workflowCanvasHydrated)); + const setupId = await page.evaluate( + () => window.__MODIFF_E2E__!.getState().flow.nodes.find((node) => node.label === 'Model Setup')!.id, + ); + const setup = page.locator(`.react-flow__node[data-id="${setupId}"]`); + const picker = page.getByRole('dialog', { name: 'Choose model for Load Models', exact: true }); + const read = () => + page.evaluate(() => { + const state = window.__MODIFF_E2E__!.getState(); + const tab = state.studio.workflowTabs.find((tab) => tab.id === state.studio.activeWorkflowTabId)!; + return { + graph: window.__MODIFF_E2E__!.exportWorkflowGraph(), + form: state.studio.form, + backendRevision: tab.backendRevision, + dirty: tab.dirty, + }; + }); + await expect + .poll(async () => { + const state = await read(); + return { dirty: state.dirty, saved: state.backendRevision > 0 }; + }) + .toEqual({ dirty: false, saved: true }); + const original = await read(); + expect(original.form.resourceMode).toBe('auto'); + await setup.getByRole('button', { name: 'Choose model', exact: true }).click(); + for (const query of ['FLUX3', 'FLUX 3', 'FLUX.3']) { + await picker.getByRole('searchbox', { name: 'Search compatible models' }).fill(query); + const rows = picker.getByRole('button').filter({ hasText: 'black-forest-labs/flux-3-image-klein' }); + await expect(rows).toHaveCount(2); + for (const row of await rows.all()) { + await expect(row).toContainText('Custom memory required'); + await expect(row).toBeDisabled(); + } + } + await page.keyboard.press('Escape'); + await expect(picker).toHaveCount(0); + expect(await read()).toEqual(original); + expect(starterSelections).toEqual([]); + await setup.getByRole('button', { name: 'Choose model', exact: true }).click(); + await picker.getByRole('button', { name: 'Use Custom memory', exact: true }).click(); + expect((await read()).form.resourceMode).toBe('expert'); + expect((await read()).graph).toEqual(original.graph); + expect(starterSelections).toEqual([]); + await picker.getByRole('searchbox', { name: 'Search compatible models' }).fill('FLUX.3 base'); + await picker.getByRole('button').filter({ hasText: 'black-forest-labs/flux-3-image-klein-base' }).click(); + await expect(picker.getByRole('button', { name: 'Apply model change', exact: true })).toBeVisible(); + expect(starterSelections[0]).toMatchObject({ + executionProfileId: 'flux3-klein-base:modular', + authoringRecipeId: 'flux3-klein-base:text-to-image:prompt-preview-fp32-authoring:v3', + }); + await picker.getByRole('button', { name: 'Apply model change', exact: true }).click(); + await expect(picker).toHaveCount(0); + const current = await read(); + expect(current.form.prompt).toBe(original.form.prompt); + await expect(page.getByRole('button', { name: 'Enable enhancement', exact: true })).toBeVisible(); + const selectedSetupId = current.graph.nodes.find((node) => node.data.label === 'Model Setup')!.id; + const selectedSetup = page.locator(`.react-flow__node[data-id="${selectedSetupId}"]`); + await expect(selectedSetup.getByRole('button', { name: 'Add LoRA', exact: true })).toBeDisabled(); + // The user's explicit memory choice does not rewrite required loader controls. + const autoOffload = selectedSetup.getByRole('switch', { name: 'Enable Auto Offload', exact: true }); + await expect(autoOffload).toBeChecked(); + await autoOffload.click(); + await expect(autoOffload).not.toBeChecked(); + await selectedSetup.getByLabel('Offload Mode', { exact: true }).click(); + await page.getByRole('option', { name: 'Off', exact: true }).click(); + await expect(selectedSetup.getByRole('button', { name: 'Add LoRA', exact: true })).toBeEnabled(); + await selectedSetup.getByRole('button', { name: 'Add LoRA', exact: true }).click(); + const adapter = page.getByRole('dialog', { name: 'Add LoRA', exact: true }); + await adapter.getByLabel('Model', { exact: true }).fill('review/metadata-only-adapter'); + await adapter.getByLabel('Revision', { exact: true }).fill('a'.repeat(40)); + await adapter.getByLabel('Expected SHA-256', { exact: true }).fill('b'.repeat(64)); + await adapter.getByLabel('Weight Name', { exact: true }).fill('adapter.safetensors'); + await adapter.getByRole('button', { name: 'Add adapter', exact: true }).click(); + await expect(adapter).toHaveCount(0); + const row = selectedSetup.getByRole('region', { name: 'Adapter 1', exact: true }); + await expect(row).toBeVisible(); + await row.getByRole('button', { name: 'Remove', exact: true }).click(); + await expect(row).toHaveCount(0); + expect(executionRequests).toEqual([]); +}); + for (const workspace of ['expert'] as const) { test(`${workspace} loader inspector changes its own model and task without library selection`, async ({ page }) => { page.setDefaultTimeout(15_000); diff --git a/tests/fixtures/evaluation-image-authoring.v1.json b/tests/fixtures/evaluation-image-authoring.v1.json new file mode 100644 index 00000000..084e2359 --- /dev/null +++ b/tests/fixtures/evaluation-image-authoring.v1.json @@ -0,0 +1,9200 @@ +{ + "schemaVersion": 1, + "proofScope": "Source-only declared private evaluation profiles/policies joined with unchanged retained backend display, operation and ordinary Base T2I starter metadata. Mocked client authoring coverage only; no installed artifacts, runtime, Auto, hardware, model output or public qualification.", + "sourceProjectionSHA256": "75a1c2c66111b3df73582bdaa7ff067e3b2f2005c9cd3560023d8917b64f848d", + "retainedCapabilitiesSHA256": "8202825221ec2d27223cced9235ce08e5aaf2d8797f6fe3b85d4190d6b29b25c", + "retainedBaseStarterSHA256": "0f1021d6c58edd7cbf1cccd5bc072e5bc8c3ba83027f8fa2610840ee3ac6371d", + "capabilities": [ + { + "modelType": "Flux3ModularPipeline", + "label": "FLUX 3 Image Klein Base", + "defaultRepo": "black-forest-labs/flux-3-image-klein-base", + "autoEligible": false, + "templateEligible": false, + "galleryEligible": false, + "liveProof": false, + "executionProfiles": [] + }, + { + "modelType": "Flux3DistilledModularPipeline", + "label": "FLUX 3 Image Klein", + "defaultRepo": "black-forest-labs/flux-3-image-klein", + "autoEligible": false, + "templateEligible": false, + "galleryEligible": false, + "liveProof": false, + "executionProfiles": [] + } + ], + "evaluationAuthoring": { + "schemaVersion": 1, + "scope": "expert-authoring", + "autoEligible": false, + "templateEligible": false, + "galleryEligible": false, + "executionProfiles": [ + { + "id": "flux3-klein:modular", + "model_type": "Flux3DistilledModularPipeline", + "modes": ["text_to_image", "edit_image"], + "loader_module": "modules.ModularDiffusers", + "loader_action": "ModelsLoader", + "execution_path": "modular-diffusers", + "pipeline_class": "Flux3DistilledModularPipeline", + "default_repo": "black-forest-labs/flux-3-image-klein", + "fallback_repo": null, + "quantizable_components": [], + "default_quantized_components": [], + "supported_offload_modes": ["none", "model_cpu", "group_cpu", "group_disk"], + "retry_offload_modes": [], + "max_low_memory_side": null, + "max_low_memory_steps": null, + "live_proof": false, + "optional_runtime_profiles": [], + "optional_runtime_delivery": "base", + "optional_runtime_platform_deliveries": [], + "compatible_repos": [], + "public": false, + "adapterAuthoring": { + "schemaVersion": 1, + "mediaKind": "image", + "adapterNodeKey": "modules.ModularDiffusers.Lora", + "tasks": ["text_to_image", "edit_image"], + "maxOwnedAdapters": 32, + "repositoryRevisions": [ + { + "repo": "black-forest-labs/flux-3-image-klein", + "revision": "8454017f9ebaada30c998fccd9f67a80c7580f68" + } + ], + "requiredControls": { + "offload_mode": "none", + "auto_offload": false, + "weight_loading_mode": "cpu", + "quant_config": null, + "unet": null, + "vae": null, + "controlnet": null, + "trust_remote_code": false + } + }, + "backend_path": "modules.ModularDiffusers.ModelsLoader", + "optionalRuntimeRequirement": { + "schemaVersion": 1, + "delivery": "base", + "requiredNow": false, + "profileIds": [], + "executionProfileIds": ["flux3-klein:modular"], + "state": "base_satisfied", + "reason": "no_optional_runtime_required" + }, + "repository_revisions": [ + { + "repo": "black-forest-labs/flux-3-image-klein", + "revision": "8454017f9ebaada30c998fccd9f67a80c7580f68" + } + ] + }, + { + "id": "flux3-klein-base:modular", + "model_type": "Flux3ModularPipeline", + "modes": ["text_to_image", "edit_image"], + "loader_module": "modules.ModularDiffusers", + "loader_action": "ModelsLoader", + "execution_path": "modular-diffusers", + "pipeline_class": "Flux3ModularPipeline", + "default_repo": "black-forest-labs/flux-3-image-klein-base", + "fallback_repo": null, + "quantizable_components": [], + "default_quantized_components": [], + "supported_offload_modes": ["none", "model_cpu", "group_cpu", "group_disk"], + "retry_offload_modes": [], + "max_low_memory_side": null, + "max_low_memory_steps": null, + "live_proof": false, + "optional_runtime_profiles": [], + "optional_runtime_delivery": "base", + "optional_runtime_platform_deliveries": [], + "compatible_repos": [], + "public": false, + "adapterAuthoring": { + "schemaVersion": 1, + "mediaKind": "image", + "adapterNodeKey": "modules.ModularDiffusers.Lora", + "tasks": ["text_to_image", "edit_image"], + "maxOwnedAdapters": 32, + "repositoryRevisions": [ + { + "repo": "black-forest-labs/flux-3-image-klein-base", + "revision": "1469d27cfb9bb1bd81d3a93f5a023b39dbf136e4" + } + ], + "requiredControls": { + "offload_mode": "none", + "auto_offload": false, + "weight_loading_mode": "cpu", + "quant_config": null, + "unet": null, + "vae": null, + "controlnet": null, + "trust_remote_code": false + } + }, + "backend_path": "modules.ModularDiffusers.ModelsLoader", + "optionalRuntimeRequirement": { + "schemaVersion": 1, + "delivery": "base", + "requiredNow": false, + "profileIds": [], + "executionProfileIds": ["flux3-klein-base:modular"], + "state": "base_satisfied", + "reason": "no_optional_runtime_required" + }, + "repository_revisions": [ + { + "repo": "black-forest-labs/flux-3-image-klein-base", + "revision": "1469d27cfb9bb1bd81d3a93f5a023b39dbf136e4" + } + ] + } + ], + "pipelineSupport": [ + { + "coverage": "research-blocked", + "equivalentTo": [], + "pipelineClass": "Flux3DistilledModularPipeline", + "reason": "Only unpublished source-level execution specifications select this class; installed-runtime admission remains pending.", + "upstreamTasks": [ + { + "source": "modular", + "task": "text_to_image", + "workflowId": "text2image" + }, + { + "source": "modular", + "task": "edit_image", + "workflowId": "image_conditioned" + } + ], + "tasks": [ + { + "task": "edit_image", + "execution": "adapter", + "decomposition": "stages", + "operationIds": [ + "diffusion.decode_latents", + "diffusion.denoise", + "diffusion.encode_image", + "diffusion.encode_prompt", + "diffusion.load_models" + ], + "executionProfileIds": ["flux3-klein:modular"], + "dependencies": "ready", + "runtimeRequirements": [ + { + "schemaVersion": 1, + "delivery": "base", + "requiredNow": false, + "profileIds": [], + "executionProfileIds": ["flux3-klein:modular"], + "state": "base_satisfied", + "reason": "no_optional_runtime_required" + } + ] + }, + { + "task": "text_to_image", + "execution": "adapter", + "decomposition": "stages", + "operationIds": [ + "diffusion.decode_latents", + "diffusion.denoise", + "diffusion.encode_prompt", + "diffusion.load_models" + ], + "executionProfileIds": ["flux3-klein:modular"], + "dependencies": "ready", + "runtimeRequirements": [ + { + "schemaVersion": 1, + "delivery": "base", + "requiredNow": false, + "profileIds": [], + "executionProfileIds": ["flux3-klein:modular"], + "state": "base_satisfied", + "reason": "no_optional_runtime_required" + } + ] + } + ] + }, + { + "coverage": "research-blocked", + "equivalentTo": [], + "pipelineClass": "Flux3ModularPipeline", + "reason": "Only unpublished source-level execution specifications select this class; installed-runtime admission remains pending.", + "upstreamTasks": [ + { + "source": "modular", + "task": "text_to_image", + "workflowId": "text2image" + }, + { + "source": "modular", + "task": "edit_image", + "workflowId": "image_conditioned" + } + ], + "tasks": [ + { + "task": "edit_image", + "execution": "adapter", + "decomposition": "stages", + "operationIds": [ + "diffusion.decode_latents", + "diffusion.denoise", + "diffusion.encode_image", + "diffusion.encode_prompt", + "diffusion.guidance", + "diffusion.load_models" + ], + "executionProfileIds": ["flux3-klein-base:modular"], + "dependencies": "ready", + "runtimeRequirements": [ + { + "schemaVersion": 1, + "delivery": "base", + "requiredNow": false, + "profileIds": [], + "executionProfileIds": ["flux3-klein-base:modular"], + "state": "base_satisfied", + "reason": "no_optional_runtime_required" + } + ] + }, + { + "task": "text_to_image", + "execution": "adapter", + "decomposition": "stages", + "operationIds": [ + "diffusion.decode_latents", + "diffusion.denoise", + "diffusion.encode_prompt", + "diffusion.guidance", + "diffusion.load_models" + ], + "executionProfileIds": ["flux3-klein-base:modular"], + "dependencies": "ready", + "runtimeRequirements": [ + { + "schemaVersion": 1, + "delivery": "base", + "requiredNow": false, + "profileIds": [], + "executionProfileIds": ["flux3-klein-base:modular"], + "state": "base_satisfied", + "reason": "no_optional_runtime_required" + } + ] + } + ] + } + ], + "authoringRecipes": [ + { + "executionProfileId": "flux3-klein:modular", + "pipelineClass": "Flux3DistilledModularPipeline", + "task": "text_to_image", + "authoringRecipeId": "flux3-klein:text-to-image:prompt-preview-fp32-authoring:v3" + }, + { + "executionProfileId": "flux3-klein:modular", + "pipelineClass": "Flux3DistilledModularPipeline", + "task": "edit_image", + "authoringRecipeId": "flux3-klein:edit-image:prompt-preview-authoring:v3" + }, + { + "executionProfileId": "flux3-klein-base:modular", + "pipelineClass": "Flux3ModularPipeline", + "task": "text_to_image", + "authoringRecipeId": "flux3-klein-base:text-to-image:prompt-preview-fp32-authoring:v3" + }, + { + "executionProfileId": "flux3-klein-base:modular", + "pipelineClass": "Flux3ModularPipeline", + "task": "edit_image", + "authoringRecipeId": "flux3-klein-base:edit-image:prompt-preview-authoring:v3" + } + ] + }, + "operationContracts": [ + { + "pipelineClass": "Flux3DistilledModularPipeline", + "task": null, + "operationId": "diffusion.decode_latents", + "nodeKey": "modules.ModularDiffusers.DecodeLatents", + "nodeType": "decoder", + "blockName": "decode", + "decomposition": "block", + "support": "declared", + "ports": [ + { + "name": "latents", + "semanticName": "latents", + "direction": "input", + "roles": ["value"], + "types": ["latents"], + "required": true, + "hidden": false, + "semantics": { + "kind": "latents", + "scope": "Flux3DistilledModularPipeline", + "state": null, + "owner": "same_loader", + "members": [] + } + }, + { + "name": "vae", + "semanticName": "vae", + "direction": "input", + "roles": ["component"], + "types": ["diffusers_auto_model"], + "required": true, + "hidden": false, + "semantics": { + "kind": "component", + "scope": "Flux3DistilledModularPipeline", + "state": null, + "owner": "same_loader", + "members": [] + } + }, + { + "name": "images", + "semanticName": "images", + "direction": "output", + "roles": ["value"], + "types": ["image"], + "required": false, + "hidden": false, + "semantics": { + "kind": "media", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "doc", + "semanticName": "doc", + "direction": "output", + "roles": ["value"], + "types": ["string"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + } + ], + "workflowId": null, + "binding": { + "values": {}, + "pipelineClass": "Flux3DistilledModularPipeline" + } + }, + { + "pipelineClass": "Flux3DistilledModularPipeline", + "task": null, + "operationId": "diffusion.denoise", + "nodeKey": "modules.ModularDiffusers.Denoise", + "nodeType": "denoise", + "blockName": "denoise", + "decomposition": "block", + "support": "declared", + "ports": [ + { + "name": "embeddings", + "semanticName": "embeddings", + "direction": "input", + "roles": ["value"], + "types": ["embeddings"], + "required": true, + "hidden": false, + "semantics": { + "kind": "conditioning", + "scope": "Flux3DistilledModularPipeline", + "state": null, + "owner": "same_loader", + "members": [] + } + }, + { + "name": "width", + "semanticName": "width", + "direction": "input", + "roles": ["value"], + "types": ["int"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "height", + "semanticName": "height", + "direction": "input", + "roles": ["value"], + "types": ["int"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "seed", + "semanticName": "seed", + "direction": "input", + "roles": ["value"], + "types": ["int"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "num_inference_steps", + "semanticName": "num_inference_steps", + "direction": "input", + "roles": ["value"], + "types": ["int"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "num_images_per_prompt", + "semanticName": "num_images_per_prompt", + "direction": "input", + "roles": ["value"], + "types": ["int"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "image_cond_latents", + "semanticName": "image_cond_latents", + "direction": "input", + "roles": ["value"], + "types": ["latents"], + "required": false, + "hidden": false, + "semantics": { + "kind": "latents", + "scope": "Flux3DistilledModularPipeline", + "state": null, + "owner": "same_loader", + "members": [] + } + }, + { + "name": "unet", + "semanticName": "unet", + "direction": "input", + "roles": ["component"], + "types": ["diffusers_auto_model"], + "required": true, + "hidden": false, + "semantics": { + "kind": "component", + "scope": "Flux3DistilledModularPipeline", + "state": null, + "owner": "same_loader", + "members": [] + } + }, + { + "name": "scheduler", + "semanticName": "scheduler", + "direction": "input", + "roles": ["component"], + "types": ["diffusers_auto_model"], + "required": true, + "hidden": false, + "semantics": { + "kind": "component", + "scope": "Flux3DistilledModularPipeline", + "state": null, + "owner": "same_loader", + "members": [] + } + }, + { + "name": "latents", + "semanticName": "latents", + "direction": "output", + "roles": ["value"], + "types": ["latents"], + "required": false, + "hidden": false, + "semantics": { + "kind": "latents", + "scope": "Flux3DistilledModularPipeline", + "state": null, + "owner": "same_loader", + "members": [] + } + }, + { + "name": "doc", + "semanticName": "doc", + "direction": "output", + "roles": ["value"], + "types": ["string"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "reference_binding", + "semanticName": "reference_binding", + "direction": "input", + "roles": ["value"], + "types": ["reference_conditioning"], + "required": false, + "hidden": false, + "semantics": { + "kind": "opaque", + "scope": "Flux3DistilledModularPipeline", + "state": null, + "owner": "none", + "members": [] + } + } + ], + "workflowId": null, + "binding": { + "values": {}, + "pipelineClass": "Flux3DistilledModularPipeline" + } + }, + { + "pipelineClass": "Flux3DistilledModularPipeline", + "task": null, + "operationId": "diffusion.encode_image", + "nodeKey": "modules.ModularDiffusers.ImageEncode", + "nodeType": "vae_encoder", + "blockName": "vae_encoder", + "decomposition": "block", + "support": "declared", + "ports": [ + { + "name": "image", + "semanticName": "image", + "direction": "input", + "roles": ["value"], + "types": ["image"], + "required": true, + "hidden": false, + "semantics": { + "kind": "media", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "vae", + "semanticName": "vae", + "direction": "input", + "roles": ["component"], + "types": ["diffusers_auto_model"], + "required": true, + "hidden": false, + "semantics": { + "kind": "component", + "scope": "Flux3DistilledModularPipeline", + "state": null, + "owner": "same_loader", + "members": [] + } + }, + { + "name": "image_cond_latents", + "semanticName": "image_cond_latents", + "direction": "output", + "roles": ["value"], + "types": ["latents"], + "required": false, + "hidden": false, + "semantics": { + "kind": "latents", + "scope": "Flux3DistilledModularPipeline", + "state": null, + "owner": "same_loader", + "members": [] + } + }, + { + "name": "reference_binding", + "semanticName": "reference_binding", + "direction": "output", + "roles": ["value"], + "types": ["reference_conditioning"], + "required": false, + "hidden": false, + "semantics": { + "kind": "opaque", + "scope": "Flux3DistilledModularPipeline", + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "doc", + "semanticName": "doc", + "direction": "output", + "roles": ["value"], + "types": ["string"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + } + ], + "workflowId": null, + "binding": { + "values": {}, + "pipelineClass": "Flux3DistilledModularPipeline" + } + }, + { + "pipelineClass": "Flux3DistilledModularPipeline", + "task": null, + "operationId": "diffusion.encode_prompt", + "nodeKey": "modules.ModularDiffusers.EncodePrompt", + "nodeType": "text_encoder", + "blockName": "text_encoder", + "decomposition": "block", + "support": "declared", + "ports": [ + { + "name": "prompt", + "semanticName": "prompt", + "direction": "input", + "roles": ["value"], + "types": ["string"], + "required": true, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "max_sequence_length", + "semanticName": "max_sequence_length", + "direction": "input", + "roles": ["value"], + "types": ["int"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "text_encoder_out_layers", + "semanticName": "text_encoder_out_layers", + "direction": "input", + "roles": ["value"], + "types": ["int"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "text_encoders", + "semanticName": "text_encoders", + "direction": "input", + "roles": ["component"], + "types": ["diffusers_auto_models"], + "required": true, + "hidden": false, + "semantics": { + "kind": "component", + "scope": "Flux3DistilledModularPipeline", + "state": null, + "owner": "same_loader", + "members": [] + } + }, + { + "name": "embeddings", + "semanticName": "embeddings", + "direction": "output", + "roles": ["value"], + "types": ["embeddings"], + "required": false, + "hidden": false, + "semantics": { + "kind": "conditioning", + "scope": "Flux3DistilledModularPipeline", + "state": null, + "owner": "same_loader", + "members": [] + } + }, + { + "name": "doc", + "semanticName": "doc", + "direction": "output", + "roles": ["value"], + "types": ["string"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "layout_conditioning", + "semanticName": "layout_conditioning", + "direction": "input", + "roles": ["value"], + "types": ["layout_conditioning"], + "required": false, + "hidden": false, + "semantics": { + "kind": "opaque", + "scope": "Flux3DistilledModularPipeline", + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "reference_binding", + "semanticName": "reference_binding", + "direction": "input", + "roles": ["value"], + "types": ["reference_conditioning"], + "required": false, + "hidden": false, + "semantics": { + "kind": "opaque", + "scope": "Flux3DistilledModularPipeline", + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "prompt_input", + "semanticName": "prompt", + "direction": "input", + "roles": ["value"], + "types": ["string"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + } + ], + "workflowId": null, + "binding": { + "values": {}, + "pipelineClass": "Flux3DistilledModularPipeline" + } + }, + { + "pipelineClass": "Flux3DistilledModularPipeline", + "task": "edit_image", + "operationId": "diffusion.decode_latents", + "nodeKey": "modules.ModularDiffusers.DecodeLatents", + "nodeType": "decoder", + "blockName": "decode", + "decomposition": "block", + "support": "declared", + "ports": [ + { + "name": "latents", + "semanticName": "latents", + "direction": "input", + "roles": ["value"], + "types": ["latents"], + "required": true, + "hidden": false, + "semantics": { + "kind": "latents", + "scope": "Flux3DistilledModularPipeline", + "state": null, + "owner": "same_loader", + "members": [] + } + }, + { + "name": "vae", + "semanticName": "vae", + "direction": "input", + "roles": ["component"], + "types": ["diffusers_auto_model"], + "required": true, + "hidden": false, + "semantics": { + "kind": "component", + "scope": "Flux3DistilledModularPipeline", + "state": null, + "owner": "same_loader", + "members": [ + { + "name": "vae", + "type": "diffusers.models.autoencoders.autoencoder_kl_flux2.AutoencoderKLFlux2" + } + ] + } + }, + { + "name": "images", + "semanticName": "images", + "direction": "output", + "roles": ["value"], + "types": ["image"], + "required": false, + "hidden": false, + "semantics": { + "kind": "media", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "doc", + "semanticName": "doc", + "direction": "output", + "roles": ["value"], + "types": ["string"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + } + ], + "workflowId": "image_conditioned", + "binding": { + "values": {}, + "pipelineClass": "Flux3DistilledModularPipeline" + } + }, + { + "pipelineClass": "Flux3DistilledModularPipeline", + "task": "edit_image", + "operationId": "diffusion.denoise", + "nodeKey": "modules.ModularDiffusers.Denoise", + "nodeType": "denoise", + "blockName": "denoise", + "decomposition": "block", + "support": "declared", + "ports": [ + { + "name": "embeddings", + "semanticName": "embeddings", + "direction": "input", + "roles": ["value"], + "types": ["embeddings"], + "required": true, + "hidden": false, + "semantics": { + "kind": "conditioning", + "scope": "Flux3DistilledModularPipeline", + "state": null, + "owner": "same_loader", + "members": [] + } + }, + { + "name": "width", + "semanticName": "width", + "direction": "input", + "roles": ["value"], + "types": ["int"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "height", + "semanticName": "height", + "direction": "input", + "roles": ["value"], + "types": ["int"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "seed", + "semanticName": "seed", + "direction": "input", + "roles": ["value"], + "types": ["int"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "num_inference_steps", + "semanticName": "num_inference_steps", + "direction": "input", + "roles": ["value"], + "types": ["int"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "num_images_per_prompt", + "semanticName": "num_images_per_prompt", + "direction": "input", + "roles": ["value"], + "types": ["int"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "image_cond_latents", + "semanticName": "image_cond_latents", + "direction": "input", + "roles": ["value"], + "types": ["latents"], + "required": false, + "hidden": false, + "semantics": { + "kind": "latents", + "scope": "Flux3DistilledModularPipeline", + "state": null, + "owner": "same_loader", + "members": [] + } + }, + { + "name": "unet", + "semanticName": "unet", + "direction": "input", + "roles": ["component"], + "types": ["diffusers_auto_model"], + "required": true, + "hidden": false, + "semantics": { + "kind": "component", + "scope": "Flux3DistilledModularPipeline", + "state": null, + "owner": "same_loader", + "members": [ + { + "name": "transformer", + "type": "diffusers.models.transformers.transformer_flux3.Flux3Transformer2DModel" + } + ] + } + }, + { + "name": "scheduler", + "semanticName": "scheduler", + "direction": "input", + "roles": ["component"], + "types": ["diffusers_auto_model"], + "required": true, + "hidden": false, + "semantics": { + "kind": "component", + "scope": "Flux3DistilledModularPipeline", + "state": null, + "owner": "same_loader", + "members": [ + { + "name": "scheduler", + "type": "diffusers.schedulers.scheduling_flow_match_euler_discrete.FlowMatchEulerDiscreteScheduler" + } + ] + } + }, + { + "name": "latents", + "semanticName": "latents", + "direction": "output", + "roles": ["value"], + "types": ["latents"], + "required": false, + "hidden": false, + "semantics": { + "kind": "latents", + "scope": "Flux3DistilledModularPipeline", + "state": null, + "owner": "same_loader", + "members": [] + } + }, + { + "name": "doc", + "semanticName": "doc", + "direction": "output", + "roles": ["value"], + "types": ["string"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "reference_binding", + "semanticName": "reference_binding", + "direction": "input", + "roles": ["value"], + "types": ["reference_conditioning"], + "required": false, + "hidden": false, + "semantics": { + "kind": "opaque", + "scope": "Flux3DistilledModularPipeline", + "state": null, + "owner": "none", + "members": [] + } + } + ], + "workflowId": "image_conditioned", + "binding": { + "values": {}, + "pipelineClass": "Flux3DistilledModularPipeline" + } + }, + { + "pipelineClass": "Flux3DistilledModularPipeline", + "task": "edit_image", + "operationId": "diffusion.encode_image", + "nodeKey": "modules.ModularDiffusers.ImageEncode", + "nodeType": "vae_encoder", + "blockName": "vae_encoder", + "decomposition": "block", + "support": "declared", + "ports": [ + { + "name": "image", + "semanticName": "image", + "direction": "input", + "roles": ["value"], + "types": ["image"], + "required": true, + "hidden": false, + "semantics": { + "kind": "media", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "vae", + "semanticName": "vae", + "direction": "input", + "roles": ["component"], + "types": ["diffusers_auto_model"], + "required": true, + "hidden": false, + "semantics": { + "kind": "component", + "scope": "Flux3DistilledModularPipeline", + "state": null, + "owner": "same_loader", + "members": [ + { + "name": "vae", + "type": "diffusers.models.autoencoders.autoencoder_kl_flux2.AutoencoderKLFlux2" + } + ] + } + }, + { + "name": "image_cond_latents", + "semanticName": "image_cond_latents", + "direction": "output", + "roles": ["value"], + "types": ["latents"], + "required": false, + "hidden": false, + "semantics": { + "kind": "latents", + "scope": "Flux3DistilledModularPipeline", + "state": null, + "owner": "same_loader", + "members": [] + } + }, + { + "name": "reference_binding", + "semanticName": "reference_binding", + "direction": "output", + "roles": ["value"], + "types": ["reference_conditioning"], + "required": false, + "hidden": false, + "semantics": { + "kind": "opaque", + "scope": "Flux3DistilledModularPipeline", + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "doc", + "semanticName": "doc", + "direction": "output", + "roles": ["value"], + "types": ["string"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + } + ], + "workflowId": "image_conditioned", + "binding": { + "values": {}, + "pipelineClass": "Flux3DistilledModularPipeline" + } + }, + { + "pipelineClass": "Flux3DistilledModularPipeline", + "task": "edit_image", + "operationId": "diffusion.encode_prompt", + "nodeKey": "modules.ModularDiffusers.EncodePrompt", + "nodeType": "text_encoder", + "blockName": "text_encoder", + "decomposition": "block", + "support": "declared", + "ports": [ + { + "name": "prompt", + "semanticName": "prompt", + "direction": "input", + "roles": ["value"], + "types": ["string"], + "required": true, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "max_sequence_length", + "semanticName": "max_sequence_length", + "direction": "input", + "roles": ["value"], + "types": ["int"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "text_encoder_out_layers", + "semanticName": "text_encoder_out_layers", + "direction": "input", + "roles": ["value"], + "types": ["int"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "text_encoders", + "semanticName": "text_encoders", + "direction": "input", + "roles": ["component"], + "types": ["diffusers_auto_models"], + "required": true, + "hidden": false, + "semantics": { + "kind": "component", + "scope": "Flux3DistilledModularPipeline", + "state": null, + "owner": "same_loader", + "members": [ + { + "name": "text_encoder", + "type": "transformers.models.qwen3_vl.modeling_qwen3_vl.Qwen3VLForConditionalGeneration" + }, + { + "name": "tokenizer", + "type": "transformers.models.auto.processing_auto.AutoProcessor" + } + ] + } + }, + { + "name": "embeddings", + "semanticName": "embeddings", + "direction": "output", + "roles": ["value"], + "types": ["embeddings"], + "required": false, + "hidden": false, + "semantics": { + "kind": "conditioning", + "scope": "Flux3DistilledModularPipeline", + "state": null, + "owner": "same_loader", + "members": [] + } + }, + { + "name": "doc", + "semanticName": "doc", + "direction": "output", + "roles": ["value"], + "types": ["string"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "layout_conditioning", + "semanticName": "layout_conditioning", + "direction": "input", + "roles": ["value"], + "types": ["layout_conditioning"], + "required": false, + "hidden": false, + "semantics": { + "kind": "opaque", + "scope": "Flux3DistilledModularPipeline", + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "reference_binding", + "semanticName": "reference_binding", + "direction": "input", + "roles": ["value"], + "types": ["reference_conditioning"], + "required": false, + "hidden": false, + "semantics": { + "kind": "opaque", + "scope": "Flux3DistilledModularPipeline", + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "prompt_input", + "semanticName": "prompt", + "direction": "input", + "roles": ["value"], + "types": ["string"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + } + ], + "workflowId": "image_conditioned", + "binding": { + "values": {}, + "pipelineClass": "Flux3DistilledModularPipeline" + } + }, + { + "pipelineClass": "Flux3DistilledModularPipeline", + "task": "edit_image", + "operationId": "diffusion.load_models", + "nodeKey": "modules.ModularDiffusers.ModelsLoader", + "nodeType": "loader", + "blockName": null, + "decomposition": "loader", + "support": "declared", + "ports": [ + { + "name": "model_type", + "semanticName": "model_type", + "direction": "input", + "roles": ["value"], + "types": ["string"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "repo_id", + "semanticName": "repo_id", + "direction": "input", + "roles": ["value"], + "types": ["string"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "reviewed_variant", + "semanticName": "reviewed_variant", + "direction": "input", + "roles": ["value"], + "types": ["string"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "device", + "semanticName": "device", + "direction": "input", + "roles": ["value"], + "types": ["string"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "attention_backend", + "semanticName": "attention_backend", + "direction": "input", + "roles": ["value"], + "types": ["string"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "vae_slicing", + "semanticName": "vae_slicing", + "direction": "input", + "roles": ["value"], + "types": ["boolean"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "vae_tiling", + "semanticName": "vae_tiling", + "direction": "input", + "roles": ["value"], + "types": ["boolean"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "inpaint_compatibility", + "semanticName": "inpaint_compatibility", + "direction": "input", + "roles": ["value"], + "types": ["string"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "trust_remote_code", + "semanticName": "trust_remote_code", + "direction": "input", + "roles": ["value"], + "types": ["boolean"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "revision", + "semanticName": "revision", + "direction": "input", + "roles": ["value"], + "types": ["string"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "workflow_id", + "semanticName": "workflow_id", + "direction": "input", + "roles": ["value"], + "types": ["string"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "modiff_pipeline_identity", + "semanticName": "modiff_pipeline_identity", + "direction": "input", + "roles": ["value"], + "types": ["object"], + "required": false, + "hidden": true, + "semantics": { + "kind": "opaque", + "scope": "Flux3DistilledModularPipeline", + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "auto_offload", + "semanticName": "auto_offload", + "direction": "input", + "roles": ["value"], + "types": ["boolean"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "offload_mode", + "semanticName": "offload_mode", + "direction": "input", + "roles": ["value"], + "types": ["string"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "weight_loading_mode", + "semanticName": "weight_loading_mode", + "direction": "input", + "roles": ["value"], + "types": ["string"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "weight_format", + "semanticName": "weight_format", + "direction": "input", + "roles": ["value"], + "types": ["string"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "unet", + "semanticName": "unet", + "direction": "input", + "roles": ["component"], + "types": ["diffusers_auto_model"], + "required": false, + "hidden": false, + "semantics": { + "kind": "component", + "scope": "Flux3DistilledModularPipeline", + "state": null, + "owner": "same_loader", + "members": [ + { + "name": "transformer", + "type": "diffusers.models.transformers.transformer_flux3.Flux3Transformer2DModel" + } + ] + } + }, + { + "name": "vae", + "semanticName": "vae", + "direction": "input", + "roles": ["component"], + "types": ["diffusers_auto_model"], + "required": false, + "hidden": false, + "semantics": { + "kind": "component", + "scope": "Flux3DistilledModularPipeline", + "state": null, + "owner": "same_loader", + "members": [ + { + "name": "vae", + "type": "diffusers.models.autoencoders.autoencoder_kl_flux2.AutoencoderKLFlux2" + } + ] + } + }, + { + "name": "controlnet", + "semanticName": "controlnet", + "direction": "input", + "roles": ["component"], + "types": ["diffusers_auto_model"], + "required": false, + "hidden": true, + "semantics": { + "kind": "component", + "scope": "Flux3DistilledModularPipeline", + "state": null, + "owner": "same_loader", + "members": [] + } + }, + { + "name": "lora_list", + "semanticName": "lora_list", + "direction": "input", + "roles": ["value"], + "types": ["custom_lora"], + "required": false, + "hidden": false, + "semantics": { + "kind": "opaque", + "scope": "Flux3DistilledModularPipeline", + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "text_encoders", + "semanticName": "text_encoders", + "direction": "output", + "roles": ["component"], + "types": ["diffusers_auto_models"], + "required": false, + "hidden": false, + "semantics": { + "kind": "component", + "scope": "Flux3DistilledModularPipeline", + "state": null, + "owner": "same_loader", + "members": [ + { + "name": "text_encoder", + "type": "transformers.models.qwen3_vl.modeling_qwen3_vl.Qwen3VLForConditionalGeneration" + }, + { + "name": "tokenizer", + "type": "transformers.models.auto.processing_auto.AutoProcessor" + } + ] + } + }, + { + "name": "unet_out", + "semanticName": "unet_out", + "direction": "output", + "roles": ["component"], + "types": ["diffusers_auto_model"], + "required": false, + "hidden": false, + "semantics": { + "kind": "component", + "scope": "Flux3DistilledModularPipeline", + "state": null, + "owner": "same_loader", + "members": [ + { + "name": "transformer", + "type": "diffusers.models.transformers.transformer_flux3.Flux3Transformer2DModel" + } + ] + } + }, + { + "name": "vae_out", + "semanticName": "vae_out", + "direction": "output", + "roles": ["component"], + "types": ["diffusers_auto_model"], + "required": false, + "hidden": false, + "semantics": { + "kind": "component", + "scope": "Flux3DistilledModularPipeline", + "state": null, + "owner": "same_loader", + "members": [ + { + "name": "vae", + "type": "diffusers.models.autoencoders.autoencoder_kl_flux2.AutoencoderKLFlux2" + } + ] + } + }, + { + "name": "scheduler", + "semanticName": "scheduler", + "direction": "output", + "roles": ["component"], + "types": ["diffusers_auto_model"], + "required": false, + "hidden": false, + "semantics": { + "kind": "component", + "scope": "Flux3DistilledModularPipeline", + "state": null, + "owner": "same_loader", + "members": [ + { + "name": "scheduler", + "type": "diffusers.schedulers.scheduling_flow_match_euler_discrete.FlowMatchEulerDiscreteScheduler" + } + ] + } + }, + { + "name": "image_encoder", + "semanticName": "image_encoder", + "direction": "output", + "roles": ["component"], + "types": ["diffusers_auto_model"], + "required": false, + "hidden": true, + "semantics": { + "kind": "component", + "scope": "Flux3DistilledModularPipeline", + "state": null, + "owner": "same_loader", + "members": [] + } + }, + { + "name": "pipeline_components", + "semanticName": "pipeline_components", + "direction": "output", + "roles": ["component"], + "types": ["diffusers_modular_pipeline_components"], + "required": false, + "hidden": false, + "semantics": { + "kind": "component", + "scope": "Flux3DistilledModularPipeline", + "state": null, + "owner": "same_loader", + "members": [ + { + "name": "image_processor", + "type": "diffusers.modular_pipelines.flux3.image_processor.Flux3ImageProcessor" + }, + { + "name": "scheduler", + "type": "diffusers.schedulers.scheduling_flow_match_euler_discrete.FlowMatchEulerDiscreteScheduler" + }, + { + "name": "text_encoder", + "type": "transformers.models.qwen3_vl.modeling_qwen3_vl.Qwen3VLForConditionalGeneration" + }, + { + "name": "tokenizer", + "type": "transformers.models.auto.processing_auto.AutoProcessor" + }, + { + "name": "transformer", + "type": "diffusers.models.transformers.transformer_flux3.Flux3Transformer2DModel" + }, + { + "name": "vae", + "type": "diffusers.models.autoencoders.autoencoder_kl_flux2.AutoencoderKLFlux2" + } + ] + } + }, + { + "name": "quant_config", + "semanticName": "quant_config", + "direction": "input", + "roles": ["value"], + "types": ["quant_config"], + "required": false, + "hidden": false, + "semantics": { + "kind": "opaque", + "scope": "Flux3DistilledModularPipeline", + "state": null, + "owner": "none", + "members": [] + } + } + ], + "workflowId": "image_conditioned", + "binding": { + "values": { + "model_type": "Flux3DistilledModularPipeline" + }, + "pipelineClass": "Flux3DistilledModularPipeline" + } + }, + { + "pipelineClass": "Flux3DistilledModularPipeline", + "task": "text_to_image", + "operationId": "diffusion.decode_latents", + "nodeKey": "modules.ModularDiffusers.DecodeLatents", + "nodeType": "decoder", + "blockName": "decode", + "decomposition": "block", + "support": "declared", + "ports": [ + { + "name": "latents", + "semanticName": "latents", + "direction": "input", + "roles": ["value"], + "types": ["latents"], + "required": true, + "hidden": false, + "semantics": { + "kind": "latents", + "scope": "Flux3DistilledModularPipeline", + "state": null, + "owner": "same_loader", + "members": [] + } + }, + { + "name": "vae", + "semanticName": "vae", + "direction": "input", + "roles": ["component"], + "types": ["diffusers_auto_model"], + "required": true, + "hidden": false, + "semantics": { + "kind": "component", + "scope": "Flux3DistilledModularPipeline", + "state": null, + "owner": "same_loader", + "members": [ + { + "name": "vae", + "type": "diffusers.models.autoencoders.autoencoder_kl_flux2.AutoencoderKLFlux2" + } + ] + } + }, + { + "name": "images", + "semanticName": "images", + "direction": "output", + "roles": ["value"], + "types": ["image"], + "required": false, + "hidden": false, + "semantics": { + "kind": "media", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "doc", + "semanticName": "doc", + "direction": "output", + "roles": ["value"], + "types": ["string"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + } + ], + "workflowId": "text2image", + "binding": { + "values": {}, + "pipelineClass": "Flux3DistilledModularPipeline" + } + }, + { + "pipelineClass": "Flux3DistilledModularPipeline", + "task": "text_to_image", + "operationId": "diffusion.denoise", + "nodeKey": "modules.ModularDiffusers.Denoise", + "nodeType": "denoise", + "blockName": "denoise", + "decomposition": "block", + "support": "declared", + "ports": [ + { + "name": "embeddings", + "semanticName": "embeddings", + "direction": "input", + "roles": ["value"], + "types": ["embeddings"], + "required": true, + "hidden": false, + "semantics": { + "kind": "conditioning", + "scope": "Flux3DistilledModularPipeline", + "state": null, + "owner": "same_loader", + "members": [] + } + }, + { + "name": "width", + "semanticName": "width", + "direction": "input", + "roles": ["value"], + "types": ["int"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "height", + "semanticName": "height", + "direction": "input", + "roles": ["value"], + "types": ["int"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "seed", + "semanticName": "seed", + "direction": "input", + "roles": ["value"], + "types": ["int"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "num_inference_steps", + "semanticName": "num_inference_steps", + "direction": "input", + "roles": ["value"], + "types": ["int"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "num_images_per_prompt", + "semanticName": "num_images_per_prompt", + "direction": "input", + "roles": ["value"], + "types": ["int"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "image_cond_latents", + "semanticName": "image_cond_latents", + "direction": "input", + "roles": ["value"], + "types": ["latents"], + "required": false, + "hidden": false, + "semantics": { + "kind": "latents", + "scope": "Flux3DistilledModularPipeline", + "state": null, + "owner": "same_loader", + "members": [] + } + }, + { + "name": "unet", + "semanticName": "unet", + "direction": "input", + "roles": ["component"], + "types": ["diffusers_auto_model"], + "required": true, + "hidden": false, + "semantics": { + "kind": "component", + "scope": "Flux3DistilledModularPipeline", + "state": null, + "owner": "same_loader", + "members": [ + { + "name": "transformer", + "type": "diffusers.models.transformers.transformer_flux3.Flux3Transformer2DModel" + } + ] + } + }, + { + "name": "scheduler", + "semanticName": "scheduler", + "direction": "input", + "roles": ["component"], + "types": ["diffusers_auto_model"], + "required": true, + "hidden": false, + "semantics": { + "kind": "component", + "scope": "Flux3DistilledModularPipeline", + "state": null, + "owner": "same_loader", + "members": [ + { + "name": "scheduler", + "type": "diffusers.schedulers.scheduling_flow_match_euler_discrete.FlowMatchEulerDiscreteScheduler" + } + ] + } + }, + { + "name": "latents", + "semanticName": "latents", + "direction": "output", + "roles": ["value"], + "types": ["latents"], + "required": false, + "hidden": false, + "semantics": { + "kind": "latents", + "scope": "Flux3DistilledModularPipeline", + "state": null, + "owner": "same_loader", + "members": [] + } + }, + { + "name": "doc", + "semanticName": "doc", + "direction": "output", + "roles": ["value"], + "types": ["string"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "reference_binding", + "semanticName": "reference_binding", + "direction": "input", + "roles": ["value"], + "types": ["reference_conditioning"], + "required": false, + "hidden": false, + "semantics": { + "kind": "opaque", + "scope": "Flux3DistilledModularPipeline", + "state": null, + "owner": "none", + "members": [] + } + } + ], + "workflowId": "text2image", + "binding": { + "values": {}, + "pipelineClass": "Flux3DistilledModularPipeline" + } + }, + { + "pipelineClass": "Flux3DistilledModularPipeline", + "task": "text_to_image", + "operationId": "diffusion.encode_prompt", + "nodeKey": "modules.ModularDiffusers.EncodePrompt", + "nodeType": "text_encoder", + "blockName": "text_encoder", + "decomposition": "block", + "support": "declared", + "ports": [ + { + "name": "prompt", + "semanticName": "prompt", + "direction": "input", + "roles": ["value"], + "types": ["string"], + "required": true, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "max_sequence_length", + "semanticName": "max_sequence_length", + "direction": "input", + "roles": ["value"], + "types": ["int"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "text_encoder_out_layers", + "semanticName": "text_encoder_out_layers", + "direction": "input", + "roles": ["value"], + "types": ["int"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "text_encoders", + "semanticName": "text_encoders", + "direction": "input", + "roles": ["component"], + "types": ["diffusers_auto_models"], + "required": true, + "hidden": false, + "semantics": { + "kind": "component", + "scope": "Flux3DistilledModularPipeline", + "state": null, + "owner": "same_loader", + "members": [ + { + "name": "text_encoder", + "type": "transformers.models.qwen3_vl.modeling_qwen3_vl.Qwen3VLForConditionalGeneration" + }, + { + "name": "tokenizer", + "type": "transformers.models.auto.processing_auto.AutoProcessor" + } + ] + } + }, + { + "name": "embeddings", + "semanticName": "embeddings", + "direction": "output", + "roles": ["value"], + "types": ["embeddings"], + "required": false, + "hidden": false, + "semantics": { + "kind": "conditioning", + "scope": "Flux3DistilledModularPipeline", + "state": null, + "owner": "same_loader", + "members": [] + } + }, + { + "name": "doc", + "semanticName": "doc", + "direction": "output", + "roles": ["value"], + "types": ["string"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "layout_conditioning", + "semanticName": "layout_conditioning", + "direction": "input", + "roles": ["value"], + "types": ["layout_conditioning"], + "required": false, + "hidden": false, + "semantics": { + "kind": "opaque", + "scope": "Flux3DistilledModularPipeline", + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "reference_binding", + "semanticName": "reference_binding", + "direction": "input", + "roles": ["value"], + "types": ["reference_conditioning"], + "required": false, + "hidden": false, + "semantics": { + "kind": "opaque", + "scope": "Flux3DistilledModularPipeline", + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "prompt_input", + "semanticName": "prompt", + "direction": "input", + "roles": ["value"], + "types": ["string"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + } + ], + "workflowId": "text2image", + "binding": { + "values": {}, + "pipelineClass": "Flux3DistilledModularPipeline" + } + }, + { + "pipelineClass": "Flux3DistilledModularPipeline", + "task": "text_to_image", + "operationId": "diffusion.load_models", + "nodeKey": "modules.ModularDiffusers.ModelsLoader", + "nodeType": "loader", + "blockName": null, + "decomposition": "loader", + "support": "declared", + "ports": [ + { + "name": "model_type", + "semanticName": "model_type", + "direction": "input", + "roles": ["value"], + "types": ["string"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "repo_id", + "semanticName": "repo_id", + "direction": "input", + "roles": ["value"], + "types": ["string"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "reviewed_variant", + "semanticName": "reviewed_variant", + "direction": "input", + "roles": ["value"], + "types": ["string"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "device", + "semanticName": "device", + "direction": "input", + "roles": ["value"], + "types": ["string"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "attention_backend", + "semanticName": "attention_backend", + "direction": "input", + "roles": ["value"], + "types": ["string"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "vae_slicing", + "semanticName": "vae_slicing", + "direction": "input", + "roles": ["value"], + "types": ["boolean"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "vae_tiling", + "semanticName": "vae_tiling", + "direction": "input", + "roles": ["value"], + "types": ["boolean"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "inpaint_compatibility", + "semanticName": "inpaint_compatibility", + "direction": "input", + "roles": ["value"], + "types": ["string"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "trust_remote_code", + "semanticName": "trust_remote_code", + "direction": "input", + "roles": ["value"], + "types": ["boolean"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "revision", + "semanticName": "revision", + "direction": "input", + "roles": ["value"], + "types": ["string"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "workflow_id", + "semanticName": "workflow_id", + "direction": "input", + "roles": ["value"], + "types": ["string"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "modiff_pipeline_identity", + "semanticName": "modiff_pipeline_identity", + "direction": "input", + "roles": ["value"], + "types": ["object"], + "required": false, + "hidden": true, + "semantics": { + "kind": "opaque", + "scope": "Flux3DistilledModularPipeline", + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "auto_offload", + "semanticName": "auto_offload", + "direction": "input", + "roles": ["value"], + "types": ["boolean"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "offload_mode", + "semanticName": "offload_mode", + "direction": "input", + "roles": ["value"], + "types": ["string"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "weight_loading_mode", + "semanticName": "weight_loading_mode", + "direction": "input", + "roles": ["value"], + "types": ["string"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "weight_format", + "semanticName": "weight_format", + "direction": "input", + "roles": ["value"], + "types": ["string"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "unet", + "semanticName": "unet", + "direction": "input", + "roles": ["component"], + "types": ["diffusers_auto_model"], + "required": false, + "hidden": false, + "semantics": { + "kind": "component", + "scope": "Flux3DistilledModularPipeline", + "state": null, + "owner": "same_loader", + "members": [ + { + "name": "transformer", + "type": "diffusers.models.transformers.transformer_flux3.Flux3Transformer2DModel" + } + ] + } + }, + { + "name": "vae", + "semanticName": "vae", + "direction": "input", + "roles": ["component"], + "types": ["diffusers_auto_model"], + "required": false, + "hidden": false, + "semantics": { + "kind": "component", + "scope": "Flux3DistilledModularPipeline", + "state": null, + "owner": "same_loader", + "members": [ + { + "name": "vae", + "type": "diffusers.models.autoencoders.autoencoder_kl_flux2.AutoencoderKLFlux2" + } + ] + } + }, + { + "name": "controlnet", + "semanticName": "controlnet", + "direction": "input", + "roles": ["component"], + "types": ["diffusers_auto_model"], + "required": false, + "hidden": true, + "semantics": { + "kind": "component", + "scope": "Flux3DistilledModularPipeline", + "state": null, + "owner": "same_loader", + "members": [] + } + }, + { + "name": "lora_list", + "semanticName": "lora_list", + "direction": "input", + "roles": ["value"], + "types": ["custom_lora"], + "required": false, + "hidden": false, + "semantics": { + "kind": "opaque", + "scope": "Flux3DistilledModularPipeline", + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "text_encoders", + "semanticName": "text_encoders", + "direction": "output", + "roles": ["component"], + "types": ["diffusers_auto_models"], + "required": false, + "hidden": false, + "semantics": { + "kind": "component", + "scope": "Flux3DistilledModularPipeline", + "state": null, + "owner": "same_loader", + "members": [ + { + "name": "text_encoder", + "type": "transformers.models.qwen3_vl.modeling_qwen3_vl.Qwen3VLForConditionalGeneration" + }, + { + "name": "tokenizer", + "type": "transformers.models.auto.processing_auto.AutoProcessor" + } + ] + } + }, + { + "name": "unet_out", + "semanticName": "unet_out", + "direction": "output", + "roles": ["component"], + "types": ["diffusers_auto_model"], + "required": false, + "hidden": false, + "semantics": { + "kind": "component", + "scope": "Flux3DistilledModularPipeline", + "state": null, + "owner": "same_loader", + "members": [ + { + "name": "transformer", + "type": "diffusers.models.transformers.transformer_flux3.Flux3Transformer2DModel" + } + ] + } + }, + { + "name": "vae_out", + "semanticName": "vae_out", + "direction": "output", + "roles": ["component"], + "types": ["diffusers_auto_model"], + "required": false, + "hidden": false, + "semantics": { + "kind": "component", + "scope": "Flux3DistilledModularPipeline", + "state": null, + "owner": "same_loader", + "members": [ + { + "name": "vae", + "type": "diffusers.models.autoencoders.autoencoder_kl_flux2.AutoencoderKLFlux2" + } + ] + } + }, + { + "name": "scheduler", + "semanticName": "scheduler", + "direction": "output", + "roles": ["component"], + "types": ["diffusers_auto_model"], + "required": false, + "hidden": false, + "semantics": { + "kind": "component", + "scope": "Flux3DistilledModularPipeline", + "state": null, + "owner": "same_loader", + "members": [ + { + "name": "scheduler", + "type": "diffusers.schedulers.scheduling_flow_match_euler_discrete.FlowMatchEulerDiscreteScheduler" + } + ] + } + }, + { + "name": "image_encoder", + "semanticName": "image_encoder", + "direction": "output", + "roles": ["component"], + "types": ["diffusers_auto_model"], + "required": false, + "hidden": true, + "semantics": { + "kind": "component", + "scope": "Flux3DistilledModularPipeline", + "state": null, + "owner": "same_loader", + "members": [] + } + }, + { + "name": "pipeline_components", + "semanticName": "pipeline_components", + "direction": "output", + "roles": ["component"], + "types": ["diffusers_modular_pipeline_components"], + "required": false, + "hidden": false, + "semantics": { + "kind": "component", + "scope": "Flux3DistilledModularPipeline", + "state": null, + "owner": "same_loader", + "members": [ + { + "name": "image_processor", + "type": "diffusers.modular_pipelines.flux3.image_processor.Flux3ImageProcessor" + }, + { + "name": "scheduler", + "type": "diffusers.schedulers.scheduling_flow_match_euler_discrete.FlowMatchEulerDiscreteScheduler" + }, + { + "name": "text_encoder", + "type": "transformers.models.qwen3_vl.modeling_qwen3_vl.Qwen3VLForConditionalGeneration" + }, + { + "name": "tokenizer", + "type": "transformers.models.auto.processing_auto.AutoProcessor" + }, + { + "name": "transformer", + "type": "diffusers.models.transformers.transformer_flux3.Flux3Transformer2DModel" + }, + { + "name": "vae", + "type": "diffusers.models.autoencoders.autoencoder_kl_flux2.AutoencoderKLFlux2" + } + ] + } + }, + { + "name": "quant_config", + "semanticName": "quant_config", + "direction": "input", + "roles": ["value"], + "types": ["quant_config"], + "required": false, + "hidden": false, + "semantics": { + "kind": "opaque", + "scope": "Flux3DistilledModularPipeline", + "state": null, + "owner": "none", + "members": [] + } + } + ], + "workflowId": "text2image", + "binding": { + "values": { + "model_type": "Flux3DistilledModularPipeline" + }, + "pipelineClass": "Flux3DistilledModularPipeline" + } + }, + { + "pipelineClass": "Flux3ModularPipeline", + "task": null, + "operationId": "diffusion.decode_latents", + "nodeKey": "modules.ModularDiffusers.DecodeLatents", + "nodeType": "decoder", + "blockName": "decode", + "decomposition": "block", + "support": "declared", + "ports": [ + { + "name": "latents", + "semanticName": "latents", + "direction": "input", + "roles": ["value"], + "types": ["latents"], + "required": true, + "hidden": false, + "semantics": { + "kind": "latents", + "scope": "Flux3ModularPipeline", + "state": null, + "owner": "same_loader", + "members": [] + } + }, + { + "name": "vae", + "semanticName": "vae", + "direction": "input", + "roles": ["component"], + "types": ["diffusers_auto_model"], + "required": true, + "hidden": false, + "semantics": { + "kind": "component", + "scope": "Flux3ModularPipeline", + "state": null, + "owner": "same_loader", + "members": [] + } + }, + { + "name": "images", + "semanticName": "images", + "direction": "output", + "roles": ["value"], + "types": ["image"], + "required": false, + "hidden": false, + "semantics": { + "kind": "media", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "doc", + "semanticName": "doc", + "direction": "output", + "roles": ["value"], + "types": ["string"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + } + ], + "workflowId": null, + "binding": { + "values": {}, + "pipelineClass": "Flux3ModularPipeline" + } + }, + { + "pipelineClass": "Flux3ModularPipeline", + "task": null, + "operationId": "diffusion.denoise", + "nodeKey": "modules.ModularDiffusers.Denoise", + "nodeType": "denoise", + "blockName": "denoise", + "decomposition": "block", + "support": "declared", + "ports": [ + { + "name": "embeddings", + "semanticName": "embeddings", + "direction": "input", + "roles": ["value"], + "types": ["embeddings"], + "required": true, + "hidden": false, + "semantics": { + "kind": "conditioning", + "scope": "Flux3ModularPipeline", + "state": null, + "owner": "same_loader", + "members": [] + } + }, + { + "name": "width", + "semanticName": "width", + "direction": "input", + "roles": ["value"], + "types": ["int"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "height", + "semanticName": "height", + "direction": "input", + "roles": ["value"], + "types": ["int"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "seed", + "semanticName": "seed", + "direction": "input", + "roles": ["value"], + "types": ["int"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "num_inference_steps", + "semanticName": "num_inference_steps", + "direction": "input", + "roles": ["value"], + "types": ["int"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "num_images_per_prompt", + "semanticName": "num_images_per_prompt", + "direction": "input", + "roles": ["value"], + "types": ["int"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "image_cond_latents", + "semanticName": "image_cond_latents", + "direction": "input", + "roles": ["value"], + "types": ["latents"], + "required": false, + "hidden": false, + "semantics": { + "kind": "latents", + "scope": "Flux3ModularPipeline", + "state": null, + "owner": "same_loader", + "members": [] + } + }, + { + "name": "unet", + "semanticName": "unet", + "direction": "input", + "roles": ["component"], + "types": ["diffusers_auto_model"], + "required": true, + "hidden": false, + "semantics": { + "kind": "component", + "scope": "Flux3ModularPipeline", + "state": null, + "owner": "same_loader", + "members": [] + } + }, + { + "name": "scheduler", + "semanticName": "scheduler", + "direction": "input", + "roles": ["component"], + "types": ["diffusers_auto_model"], + "required": true, + "hidden": false, + "semantics": { + "kind": "component", + "scope": "Flux3ModularPipeline", + "state": null, + "owner": "same_loader", + "members": [] + } + }, + { + "name": "guider", + "semanticName": "guider", + "direction": "input", + "roles": ["component"], + "types": ["custom_guider"], + "required": false, + "hidden": false, + "semantics": { + "kind": "component", + "scope": "Flux3ModularPipeline", + "state": null, + "owner": "same_loader", + "members": [] + } + }, + { + "name": "latents", + "semanticName": "latents", + "direction": "output", + "roles": ["value"], + "types": ["latents"], + "required": false, + "hidden": false, + "semantics": { + "kind": "latents", + "scope": "Flux3ModularPipeline", + "state": null, + "owner": "same_loader", + "members": [] + } + }, + { + "name": "doc", + "semanticName": "doc", + "direction": "output", + "roles": ["value"], + "types": ["string"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "reference_binding", + "semanticName": "reference_binding", + "direction": "input", + "roles": ["value"], + "types": ["reference_conditioning"], + "required": false, + "hidden": false, + "semantics": { + "kind": "opaque", + "scope": "Flux3ModularPipeline", + "state": null, + "owner": "none", + "members": [] + } + } + ], + "workflowId": null, + "binding": { + "values": {}, + "pipelineClass": "Flux3ModularPipeline" + } + }, + { + "pipelineClass": "Flux3ModularPipeline", + "task": null, + "operationId": "diffusion.encode_image", + "nodeKey": "modules.ModularDiffusers.ImageEncode", + "nodeType": "vae_encoder", + "blockName": "vae_encoder", + "decomposition": "block", + "support": "declared", + "ports": [ + { + "name": "image", + "semanticName": "image", + "direction": "input", + "roles": ["value"], + "types": ["image"], + "required": true, + "hidden": false, + "semantics": { + "kind": "media", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "vae", + "semanticName": "vae", + "direction": "input", + "roles": ["component"], + "types": ["diffusers_auto_model"], + "required": true, + "hidden": false, + "semantics": { + "kind": "component", + "scope": "Flux3ModularPipeline", + "state": null, + "owner": "same_loader", + "members": [] + } + }, + { + "name": "image_cond_latents", + "semanticName": "image_cond_latents", + "direction": "output", + "roles": ["value"], + "types": ["latents"], + "required": false, + "hidden": false, + "semantics": { + "kind": "latents", + "scope": "Flux3ModularPipeline", + "state": null, + "owner": "same_loader", + "members": [] + } + }, + { + "name": "reference_binding", + "semanticName": "reference_binding", + "direction": "output", + "roles": ["value"], + "types": ["reference_conditioning"], + "required": false, + "hidden": false, + "semantics": { + "kind": "opaque", + "scope": "Flux3ModularPipeline", + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "doc", + "semanticName": "doc", + "direction": "output", + "roles": ["value"], + "types": ["string"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + } + ], + "workflowId": null, + "binding": { + "values": {}, + "pipelineClass": "Flux3ModularPipeline" + } + }, + { + "pipelineClass": "Flux3ModularPipeline", + "task": null, + "operationId": "diffusion.encode_prompt", + "nodeKey": "modules.ModularDiffusers.EncodePrompt", + "nodeType": "text_encoder", + "blockName": "text_encoder", + "decomposition": "block", + "support": "declared", + "ports": [ + { + "name": "prompt", + "semanticName": "prompt", + "direction": "input", + "roles": ["value"], + "types": ["string"], + "required": true, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "negative_prompt", + "semanticName": "negative_prompt", + "direction": "input", + "roles": ["value"], + "types": ["string"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "max_sequence_length", + "semanticName": "max_sequence_length", + "direction": "input", + "roles": ["value"], + "types": ["int"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "text_encoder_out_layers", + "semanticName": "text_encoder_out_layers", + "direction": "input", + "roles": ["value"], + "types": ["int"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "text_encoders", + "semanticName": "text_encoders", + "direction": "input", + "roles": ["component"], + "types": ["diffusers_auto_models"], + "required": true, + "hidden": false, + "semantics": { + "kind": "component", + "scope": "Flux3ModularPipeline", + "state": null, + "owner": "same_loader", + "members": [] + } + }, + { + "name": "embeddings", + "semanticName": "embeddings", + "direction": "output", + "roles": ["value"], + "types": ["embeddings"], + "required": false, + "hidden": false, + "semantics": { + "kind": "conditioning", + "scope": "Flux3ModularPipeline", + "state": null, + "owner": "same_loader", + "members": [] + } + }, + { + "name": "doc", + "semanticName": "doc", + "direction": "output", + "roles": ["value"], + "types": ["string"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "layout_conditioning", + "semanticName": "layout_conditioning", + "direction": "input", + "roles": ["value"], + "types": ["layout_conditioning"], + "required": false, + "hidden": false, + "semantics": { + "kind": "opaque", + "scope": "Flux3ModularPipeline", + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "reference_binding", + "semanticName": "reference_binding", + "direction": "input", + "roles": ["value"], + "types": ["reference_conditioning"], + "required": false, + "hidden": false, + "semantics": { + "kind": "opaque", + "scope": "Flux3ModularPipeline", + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "prompt_input", + "semanticName": "prompt", + "direction": "input", + "roles": ["value"], + "types": ["string"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + } + ], + "workflowId": null, + "binding": { + "values": {}, + "pipelineClass": "Flux3ModularPipeline" + } + }, + { + "pipelineClass": "Flux3ModularPipeline", + "task": "edit_image", + "operationId": "diffusion.decode_latents", + "nodeKey": "modules.ModularDiffusers.DecodeLatents", + "nodeType": "decoder", + "blockName": "decode", + "decomposition": "block", + "support": "declared", + "ports": [ + { + "name": "latents", + "semanticName": "latents", + "direction": "input", + "roles": ["value"], + "types": ["latents"], + "required": true, + "hidden": false, + "semantics": { + "kind": "latents", + "scope": "Flux3ModularPipeline", + "state": null, + "owner": "same_loader", + "members": [] + } + }, + { + "name": "vae", + "semanticName": "vae", + "direction": "input", + "roles": ["component"], + "types": ["diffusers_auto_model"], + "required": true, + "hidden": false, + "semantics": { + "kind": "component", + "scope": "Flux3ModularPipeline", + "state": null, + "owner": "same_loader", + "members": [ + { + "name": "vae", + "type": "diffusers.models.autoencoders.autoencoder_kl_flux2.AutoencoderKLFlux2" + } + ] + } + }, + { + "name": "images", + "semanticName": "images", + "direction": "output", + "roles": ["value"], + "types": ["image"], + "required": false, + "hidden": false, + "semantics": { + "kind": "media", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "doc", + "semanticName": "doc", + "direction": "output", + "roles": ["value"], + "types": ["string"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + } + ], + "workflowId": "image_conditioned", + "binding": { + "values": {}, + "pipelineClass": "Flux3ModularPipeline" + } + }, + { + "pipelineClass": "Flux3ModularPipeline", + "task": "edit_image", + "operationId": "diffusion.denoise", + "nodeKey": "modules.ModularDiffusers.Denoise", + "nodeType": "denoise", + "blockName": "denoise", + "decomposition": "block", + "support": "declared", + "ports": [ + { + "name": "embeddings", + "semanticName": "embeddings", + "direction": "input", + "roles": ["value"], + "types": ["embeddings"], + "required": true, + "hidden": false, + "semantics": { + "kind": "conditioning", + "scope": "Flux3ModularPipeline", + "state": null, + "owner": "same_loader", + "members": [] + } + }, + { + "name": "width", + "semanticName": "width", + "direction": "input", + "roles": ["value"], + "types": ["int"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "height", + "semanticName": "height", + "direction": "input", + "roles": ["value"], + "types": ["int"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "seed", + "semanticName": "seed", + "direction": "input", + "roles": ["value"], + "types": ["int"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "num_inference_steps", + "semanticName": "num_inference_steps", + "direction": "input", + "roles": ["value"], + "types": ["int"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "num_images_per_prompt", + "semanticName": "num_images_per_prompt", + "direction": "input", + "roles": ["value"], + "types": ["int"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "image_cond_latents", + "semanticName": "image_cond_latents", + "direction": "input", + "roles": ["value"], + "types": ["latents"], + "required": false, + "hidden": false, + "semantics": { + "kind": "latents", + "scope": "Flux3ModularPipeline", + "state": null, + "owner": "same_loader", + "members": [] + } + }, + { + "name": "unet", + "semanticName": "unet", + "direction": "input", + "roles": ["component"], + "types": ["diffusers_auto_model"], + "required": true, + "hidden": false, + "semantics": { + "kind": "component", + "scope": "Flux3ModularPipeline", + "state": null, + "owner": "same_loader", + "members": [ + { + "name": "transformer", + "type": "diffusers.models.transformers.transformer_flux3.Flux3Transformer2DModel" + } + ] + } + }, + { + "name": "scheduler", + "semanticName": "scheduler", + "direction": "input", + "roles": ["component"], + "types": ["diffusers_auto_model"], + "required": true, + "hidden": false, + "semantics": { + "kind": "component", + "scope": "Flux3ModularPipeline", + "state": null, + "owner": "same_loader", + "members": [ + { + "name": "scheduler", + "type": "diffusers.schedulers.scheduling_flow_match_euler_discrete.FlowMatchEulerDiscreteScheduler" + } + ] + } + }, + { + "name": "guider", + "semanticName": "guider", + "direction": "input", + "roles": ["component"], + "types": ["custom_guider"], + "required": false, + "hidden": false, + "semantics": { + "kind": "component", + "scope": "Flux3ModularPipeline", + "state": null, + "owner": "same_loader", + "members": [ + { + "name": "guider", + "type": "diffusers.guiders.classifier_free_guidance.ClassifierFreeGuidance" + } + ] + } + }, + { + "name": "latents", + "semanticName": "latents", + "direction": "output", + "roles": ["value"], + "types": ["latents"], + "required": false, + "hidden": false, + "semantics": { + "kind": "latents", + "scope": "Flux3ModularPipeline", + "state": null, + "owner": "same_loader", + "members": [] + } + }, + { + "name": "doc", + "semanticName": "doc", + "direction": "output", + "roles": ["value"], + "types": ["string"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "reference_binding", + "semanticName": "reference_binding", + "direction": "input", + "roles": ["value"], + "types": ["reference_conditioning"], + "required": false, + "hidden": false, + "semantics": { + "kind": "opaque", + "scope": "Flux3ModularPipeline", + "state": null, + "owner": "none", + "members": [] + } + } + ], + "workflowId": "image_conditioned", + "binding": { + "values": {}, + "pipelineClass": "Flux3ModularPipeline" + } + }, + { + "pipelineClass": "Flux3ModularPipeline", + "task": "edit_image", + "operationId": "diffusion.encode_image", + "nodeKey": "modules.ModularDiffusers.ImageEncode", + "nodeType": "vae_encoder", + "blockName": "vae_encoder", + "decomposition": "block", + "support": "declared", + "ports": [ + { + "name": "image", + "semanticName": "image", + "direction": "input", + "roles": ["value"], + "types": ["image"], + "required": true, + "hidden": false, + "semantics": { + "kind": "media", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "vae", + "semanticName": "vae", + "direction": "input", + "roles": ["component"], + "types": ["diffusers_auto_model"], + "required": true, + "hidden": false, + "semantics": { + "kind": "component", + "scope": "Flux3ModularPipeline", + "state": null, + "owner": "same_loader", + "members": [ + { + "name": "vae", + "type": "diffusers.models.autoencoders.autoencoder_kl_flux2.AutoencoderKLFlux2" + } + ] + } + }, + { + "name": "image_cond_latents", + "semanticName": "image_cond_latents", + "direction": "output", + "roles": ["value"], + "types": ["latents"], + "required": false, + "hidden": false, + "semantics": { + "kind": "latents", + "scope": "Flux3ModularPipeline", + "state": null, + "owner": "same_loader", + "members": [] + } + }, + { + "name": "reference_binding", + "semanticName": "reference_binding", + "direction": "output", + "roles": ["value"], + "types": ["reference_conditioning"], + "required": false, + "hidden": false, + "semantics": { + "kind": "opaque", + "scope": "Flux3ModularPipeline", + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "doc", + "semanticName": "doc", + "direction": "output", + "roles": ["value"], + "types": ["string"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + } + ], + "workflowId": "image_conditioned", + "binding": { + "values": {}, + "pipelineClass": "Flux3ModularPipeline" + } + }, + { + "pipelineClass": "Flux3ModularPipeline", + "task": "edit_image", + "operationId": "diffusion.encode_prompt", + "nodeKey": "modules.ModularDiffusers.EncodePrompt", + "nodeType": "text_encoder", + "blockName": "text_encoder", + "decomposition": "block", + "support": "declared", + "ports": [ + { + "name": "prompt", + "semanticName": "prompt", + "direction": "input", + "roles": ["value"], + "types": ["string"], + "required": true, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "negative_prompt", + "semanticName": "negative_prompt", + "direction": "input", + "roles": ["value"], + "types": ["string"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "max_sequence_length", + "semanticName": "max_sequence_length", + "direction": "input", + "roles": ["value"], + "types": ["int"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "text_encoder_out_layers", + "semanticName": "text_encoder_out_layers", + "direction": "input", + "roles": ["value"], + "types": ["int"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "text_encoders", + "semanticName": "text_encoders", + "direction": "input", + "roles": ["component"], + "types": ["diffusers_auto_models"], + "required": true, + "hidden": false, + "semantics": { + "kind": "component", + "scope": "Flux3ModularPipeline", + "state": null, + "owner": "same_loader", + "members": [ + { + "name": "text_encoder", + "type": "transformers.models.qwen3_vl.modeling_qwen3_vl.Qwen3VLForConditionalGeneration" + }, + { + "name": "tokenizer", + "type": "transformers.models.auto.processing_auto.AutoProcessor" + } + ] + } + }, + { + "name": "embeddings", + "semanticName": "embeddings", + "direction": "output", + "roles": ["value"], + "types": ["embeddings"], + "required": false, + "hidden": false, + "semantics": { + "kind": "conditioning", + "scope": "Flux3ModularPipeline", + "state": null, + "owner": "same_loader", + "members": [] + } + }, + { + "name": "doc", + "semanticName": "doc", + "direction": "output", + "roles": ["value"], + "types": ["string"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "layout_conditioning", + "semanticName": "layout_conditioning", + "direction": "input", + "roles": ["value"], + "types": ["layout_conditioning"], + "required": false, + "hidden": false, + "semantics": { + "kind": "opaque", + "scope": "Flux3ModularPipeline", + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "reference_binding", + "semanticName": "reference_binding", + "direction": "input", + "roles": ["value"], + "types": ["reference_conditioning"], + "required": false, + "hidden": false, + "semantics": { + "kind": "opaque", + "scope": "Flux3ModularPipeline", + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "prompt_input", + "semanticName": "prompt", + "direction": "input", + "roles": ["value"], + "types": ["string"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + } + ], + "workflowId": "image_conditioned", + "binding": { + "values": {}, + "pipelineClass": "Flux3ModularPipeline" + } + }, + { + "pipelineClass": "Flux3ModularPipeline", + "task": "edit_image", + "operationId": "diffusion.guidance", + "nodeKey": "modules.ModularDiffusers.Guider", + "nodeType": "guidance", + "blockName": null, + "decomposition": "bundle", + "support": "declared", + "ports": [ + { + "name": "model_type", + "semanticName": "model_type", + "direction": "input", + "roles": ["value"], + "types": ["string"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "guider", + "semanticName": "guider", + "direction": "input", + "roles": ["value"], + "types": ["string"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "guidance_scale", + "semanticName": "guidance_scale", + "direction": "input", + "roles": ["value"], + "types": ["float"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "guidance_rescale", + "semanticName": "guidance_rescale", + "direction": "input", + "roles": ["value"], + "types": ["float"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "use_original_formulation", + "semanticName": "use_original_formulation", + "direction": "input", + "roles": ["value"], + "types": ["boolean"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "enabled", + "semanticName": "enabled", + "direction": "input", + "roles": ["value"], + "types": ["boolean"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "start", + "semanticName": "start", + "direction": "input", + "roles": ["value"], + "types": ["float"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "stop", + "semanticName": "stop", + "direction": "input", + "roles": ["value"], + "types": ["float"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "guider_out", + "semanticName": "guider_out", + "direction": "output", + "roles": ["component"], + "types": ["custom_guider"], + "required": false, + "hidden": false, + "semantics": { + "kind": "component", + "scope": "Flux3ModularPipeline", + "state": null, + "owner": "same_loader", + "members": [] + } + }, + { + "name": "layers_config", + "semanticName": "layers_config", + "direction": "input", + "roles": ["value"], + "types": ["layers_config"], + "required": false, + "hidden": false, + "semantics": { + "kind": "opaque", + "scope": "Flux3ModularPipeline", + "state": null, + "owner": "none", + "members": [] + } + } + ], + "workflowId": "image_conditioned", + "binding": { + "values": { + "model_type": "Flux3ModularPipeline" + }, + "pipelineClass": "Flux3ModularPipeline" + } + }, + { + "pipelineClass": "Flux3ModularPipeline", + "task": "edit_image", + "operationId": "diffusion.load_models", + "nodeKey": "modules.ModularDiffusers.ModelsLoader", + "nodeType": "loader", + "blockName": null, + "decomposition": "loader", + "support": "declared", + "ports": [ + { + "name": "model_type", + "semanticName": "model_type", + "direction": "input", + "roles": ["value"], + "types": ["string"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "repo_id", + "semanticName": "repo_id", + "direction": "input", + "roles": ["value"], + "types": ["string"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "reviewed_variant", + "semanticName": "reviewed_variant", + "direction": "input", + "roles": ["value"], + "types": ["string"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "device", + "semanticName": "device", + "direction": "input", + "roles": ["value"], + "types": ["string"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "attention_backend", + "semanticName": "attention_backend", + "direction": "input", + "roles": ["value"], + "types": ["string"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "vae_slicing", + "semanticName": "vae_slicing", + "direction": "input", + "roles": ["value"], + "types": ["boolean"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "vae_tiling", + "semanticName": "vae_tiling", + "direction": "input", + "roles": ["value"], + "types": ["boolean"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "inpaint_compatibility", + "semanticName": "inpaint_compatibility", + "direction": "input", + "roles": ["value"], + "types": ["string"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "trust_remote_code", + "semanticName": "trust_remote_code", + "direction": "input", + "roles": ["value"], + "types": ["boolean"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "revision", + "semanticName": "revision", + "direction": "input", + "roles": ["value"], + "types": ["string"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "workflow_id", + "semanticName": "workflow_id", + "direction": "input", + "roles": ["value"], + "types": ["string"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "modiff_pipeline_identity", + "semanticName": "modiff_pipeline_identity", + "direction": "input", + "roles": ["value"], + "types": ["object"], + "required": false, + "hidden": true, + "semantics": { + "kind": "opaque", + "scope": "Flux3ModularPipeline", + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "auto_offload", + "semanticName": "auto_offload", + "direction": "input", + "roles": ["value"], + "types": ["boolean"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "offload_mode", + "semanticName": "offload_mode", + "direction": "input", + "roles": ["value"], + "types": ["string"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "weight_loading_mode", + "semanticName": "weight_loading_mode", + "direction": "input", + "roles": ["value"], + "types": ["string"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "weight_format", + "semanticName": "weight_format", + "direction": "input", + "roles": ["value"], + "types": ["string"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "unet", + "semanticName": "unet", + "direction": "input", + "roles": ["component"], + "types": ["diffusers_auto_model"], + "required": false, + "hidden": false, + "semantics": { + "kind": "component", + "scope": "Flux3ModularPipeline", + "state": null, + "owner": "same_loader", + "members": [ + { + "name": "transformer", + "type": "diffusers.models.transformers.transformer_flux3.Flux3Transformer2DModel" + } + ] + } + }, + { + "name": "vae", + "semanticName": "vae", + "direction": "input", + "roles": ["component"], + "types": ["diffusers_auto_model"], + "required": false, + "hidden": false, + "semantics": { + "kind": "component", + "scope": "Flux3ModularPipeline", + "state": null, + "owner": "same_loader", + "members": [ + { + "name": "vae", + "type": "diffusers.models.autoencoders.autoencoder_kl_flux2.AutoencoderKLFlux2" + } + ] + } + }, + { + "name": "controlnet", + "semanticName": "controlnet", + "direction": "input", + "roles": ["component"], + "types": ["diffusers_auto_model"], + "required": false, + "hidden": true, + "semantics": { + "kind": "component", + "scope": "Flux3ModularPipeline", + "state": null, + "owner": "same_loader", + "members": [] + } + }, + { + "name": "lora_list", + "semanticName": "lora_list", + "direction": "input", + "roles": ["value"], + "types": ["custom_lora"], + "required": false, + "hidden": false, + "semantics": { + "kind": "opaque", + "scope": "Flux3ModularPipeline", + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "text_encoders", + "semanticName": "text_encoders", + "direction": "output", + "roles": ["component"], + "types": ["diffusers_auto_models"], + "required": false, + "hidden": false, + "semantics": { + "kind": "component", + "scope": "Flux3ModularPipeline", + "state": null, + "owner": "same_loader", + "members": [ + { + "name": "text_encoder", + "type": "transformers.models.qwen3_vl.modeling_qwen3_vl.Qwen3VLForConditionalGeneration" + }, + { + "name": "tokenizer", + "type": "transformers.models.auto.processing_auto.AutoProcessor" + } + ] + } + }, + { + "name": "unet_out", + "semanticName": "unet_out", + "direction": "output", + "roles": ["component"], + "types": ["diffusers_auto_model"], + "required": false, + "hidden": false, + "semantics": { + "kind": "component", + "scope": "Flux3ModularPipeline", + "state": null, + "owner": "same_loader", + "members": [ + { + "name": "transformer", + "type": "diffusers.models.transformers.transformer_flux3.Flux3Transformer2DModel" + } + ] + } + }, + { + "name": "vae_out", + "semanticName": "vae_out", + "direction": "output", + "roles": ["component"], + "types": ["diffusers_auto_model"], + "required": false, + "hidden": false, + "semantics": { + "kind": "component", + "scope": "Flux3ModularPipeline", + "state": null, + "owner": "same_loader", + "members": [ + { + "name": "vae", + "type": "diffusers.models.autoencoders.autoencoder_kl_flux2.AutoencoderKLFlux2" + } + ] + } + }, + { + "name": "scheduler", + "semanticName": "scheduler", + "direction": "output", + "roles": ["component"], + "types": ["diffusers_auto_model"], + "required": false, + "hidden": false, + "semantics": { + "kind": "component", + "scope": "Flux3ModularPipeline", + "state": null, + "owner": "same_loader", + "members": [ + { + "name": "scheduler", + "type": "diffusers.schedulers.scheduling_flow_match_euler_discrete.FlowMatchEulerDiscreteScheduler" + } + ] + } + }, + { + "name": "image_encoder", + "semanticName": "image_encoder", + "direction": "output", + "roles": ["component"], + "types": ["diffusers_auto_model"], + "required": false, + "hidden": true, + "semantics": { + "kind": "component", + "scope": "Flux3ModularPipeline", + "state": null, + "owner": "same_loader", + "members": [] + } + }, + { + "name": "pipeline_components", + "semanticName": "pipeline_components", + "direction": "output", + "roles": ["component"], + "types": ["diffusers_modular_pipeline_components"], + "required": false, + "hidden": false, + "semantics": { + "kind": "component", + "scope": "Flux3ModularPipeline", + "state": null, + "owner": "same_loader", + "members": [ + { + "name": "guider", + "type": "diffusers.guiders.classifier_free_guidance.ClassifierFreeGuidance" + }, + { + "name": "image_processor", + "type": "diffusers.modular_pipelines.flux3.image_processor.Flux3ImageProcessor" + }, + { + "name": "scheduler", + "type": "diffusers.schedulers.scheduling_flow_match_euler_discrete.FlowMatchEulerDiscreteScheduler" + }, + { + "name": "text_encoder", + "type": "transformers.models.qwen3_vl.modeling_qwen3_vl.Qwen3VLForConditionalGeneration" + }, + { + "name": "tokenizer", + "type": "transformers.models.auto.processing_auto.AutoProcessor" + }, + { + "name": "transformer", + "type": "diffusers.models.transformers.transformer_flux3.Flux3Transformer2DModel" + }, + { + "name": "vae", + "type": "diffusers.models.autoencoders.autoencoder_kl_flux2.AutoencoderKLFlux2" + } + ] + } + }, + { + "name": "quant_config", + "semanticName": "quant_config", + "direction": "input", + "roles": ["value"], + "types": ["quant_config"], + "required": false, + "hidden": false, + "semantics": { + "kind": "opaque", + "scope": "Flux3ModularPipeline", + "state": null, + "owner": "none", + "members": [] + } + } + ], + "workflowId": "image_conditioned", + "binding": { + "values": { + "model_type": "Flux3ModularPipeline" + }, + "pipelineClass": "Flux3ModularPipeline" + } + }, + { + "pipelineClass": "Flux3ModularPipeline", + "task": "text_to_image", + "operationId": "diffusion.decode_latents", + "nodeKey": "modules.ModularDiffusers.DecodeLatents", + "nodeType": "decoder", + "blockName": "decode", + "decomposition": "block", + "support": "declared", + "ports": [ + { + "name": "latents", + "semanticName": "latents", + "direction": "input", + "roles": ["value"], + "types": ["latents"], + "required": true, + "hidden": false, + "semantics": { + "kind": "latents", + "scope": "Flux3ModularPipeline", + "state": null, + "owner": "same_loader", + "members": [] + } + }, + { + "name": "vae", + "semanticName": "vae", + "direction": "input", + "roles": ["component"], + "types": ["diffusers_auto_model"], + "required": true, + "hidden": false, + "semantics": { + "kind": "component", + "scope": "Flux3ModularPipeline", + "state": null, + "owner": "same_loader", + "members": [ + { + "name": "vae", + "type": "diffusers.models.autoencoders.autoencoder_kl_flux2.AutoencoderKLFlux2" + } + ] + } + }, + { + "name": "images", + "semanticName": "images", + "direction": "output", + "roles": ["value"], + "types": ["image"], + "required": false, + "hidden": false, + "semantics": { + "kind": "media", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "doc", + "semanticName": "doc", + "direction": "output", + "roles": ["value"], + "types": ["string"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + } + ], + "workflowId": "text2image", + "binding": { + "values": {}, + "pipelineClass": "Flux3ModularPipeline" + } + }, + { + "pipelineClass": "Flux3ModularPipeline", + "task": "text_to_image", + "operationId": "diffusion.denoise", + "nodeKey": "modules.ModularDiffusers.Denoise", + "nodeType": "denoise", + "blockName": "denoise", + "decomposition": "block", + "support": "declared", + "ports": [ + { + "name": "embeddings", + "semanticName": "embeddings", + "direction": "input", + "roles": ["value"], + "types": ["embeddings"], + "required": true, + "hidden": false, + "semantics": { + "kind": "conditioning", + "scope": "Flux3ModularPipeline", + "state": null, + "owner": "same_loader", + "members": [] + } + }, + { + "name": "width", + "semanticName": "width", + "direction": "input", + "roles": ["value"], + "types": ["int"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "height", + "semanticName": "height", + "direction": "input", + "roles": ["value"], + "types": ["int"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "seed", + "semanticName": "seed", + "direction": "input", + "roles": ["value"], + "types": ["int"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "num_inference_steps", + "semanticName": "num_inference_steps", + "direction": "input", + "roles": ["value"], + "types": ["int"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "num_images_per_prompt", + "semanticName": "num_images_per_prompt", + "direction": "input", + "roles": ["value"], + "types": ["int"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "image_cond_latents", + "semanticName": "image_cond_latents", + "direction": "input", + "roles": ["value"], + "types": ["latents"], + "required": false, + "hidden": false, + "semantics": { + "kind": "latents", + "scope": "Flux3ModularPipeline", + "state": null, + "owner": "same_loader", + "members": [] + } + }, + { + "name": "unet", + "semanticName": "unet", + "direction": "input", + "roles": ["component"], + "types": ["diffusers_auto_model"], + "required": true, + "hidden": false, + "semantics": { + "kind": "component", + "scope": "Flux3ModularPipeline", + "state": null, + "owner": "same_loader", + "members": [ + { + "name": "transformer", + "type": "diffusers.models.transformers.transformer_flux3.Flux3Transformer2DModel" + } + ] + } + }, + { + "name": "scheduler", + "semanticName": "scheduler", + "direction": "input", + "roles": ["component"], + "types": ["diffusers_auto_model"], + "required": true, + "hidden": false, + "semantics": { + "kind": "component", + "scope": "Flux3ModularPipeline", + "state": null, + "owner": "same_loader", + "members": [ + { + "name": "scheduler", + "type": "diffusers.schedulers.scheduling_flow_match_euler_discrete.FlowMatchEulerDiscreteScheduler" + } + ] + } + }, + { + "name": "guider", + "semanticName": "guider", + "direction": "input", + "roles": ["component"], + "types": ["custom_guider"], + "required": false, + "hidden": false, + "semantics": { + "kind": "component", + "scope": "Flux3ModularPipeline", + "state": null, + "owner": "same_loader", + "members": [ + { + "name": "guider", + "type": "diffusers.guiders.classifier_free_guidance.ClassifierFreeGuidance" + } + ] + } + }, + { + "name": "latents", + "semanticName": "latents", + "direction": "output", + "roles": ["value"], + "types": ["latents"], + "required": false, + "hidden": false, + "semantics": { + "kind": "latents", + "scope": "Flux3ModularPipeline", + "state": null, + "owner": "same_loader", + "members": [] + } + }, + { + "name": "doc", + "semanticName": "doc", + "direction": "output", + "roles": ["value"], + "types": ["string"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "reference_binding", + "semanticName": "reference_binding", + "direction": "input", + "roles": ["value"], + "types": ["reference_conditioning"], + "required": false, + "hidden": false, + "semantics": { + "kind": "opaque", + "scope": "Flux3ModularPipeline", + "state": null, + "owner": "none", + "members": [] + } + } + ], + "workflowId": "text2image", + "binding": { + "values": {}, + "pipelineClass": "Flux3ModularPipeline" + } + }, + { + "pipelineClass": "Flux3ModularPipeline", + "task": "text_to_image", + "operationId": "diffusion.encode_prompt", + "nodeKey": "modules.ModularDiffusers.EncodePrompt", + "nodeType": "text_encoder", + "blockName": "text_encoder", + "decomposition": "block", + "support": "declared", + "ports": [ + { + "name": "prompt", + "semanticName": "prompt", + "direction": "input", + "roles": ["value"], + "types": ["string"], + "required": true, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "negative_prompt", + "semanticName": "negative_prompt", + "direction": "input", + "roles": ["value"], + "types": ["string"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "max_sequence_length", + "semanticName": "max_sequence_length", + "direction": "input", + "roles": ["value"], + "types": ["int"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "text_encoder_out_layers", + "semanticName": "text_encoder_out_layers", + "direction": "input", + "roles": ["value"], + "types": ["int"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "text_encoders", + "semanticName": "text_encoders", + "direction": "input", + "roles": ["component"], + "types": ["diffusers_auto_models"], + "required": true, + "hidden": false, + "semantics": { + "kind": "component", + "scope": "Flux3ModularPipeline", + "state": null, + "owner": "same_loader", + "members": [ + { + "name": "text_encoder", + "type": "transformers.models.qwen3_vl.modeling_qwen3_vl.Qwen3VLForConditionalGeneration" + }, + { + "name": "tokenizer", + "type": "transformers.models.auto.processing_auto.AutoProcessor" + } + ] + } + }, + { + "name": "embeddings", + "semanticName": "embeddings", + "direction": "output", + "roles": ["value"], + "types": ["embeddings"], + "required": false, + "hidden": false, + "semantics": { + "kind": "conditioning", + "scope": "Flux3ModularPipeline", + "state": null, + "owner": "same_loader", + "members": [] + } + }, + { + "name": "doc", + "semanticName": "doc", + "direction": "output", + "roles": ["value"], + "types": ["string"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "layout_conditioning", + "semanticName": "layout_conditioning", + "direction": "input", + "roles": ["value"], + "types": ["layout_conditioning"], + "required": false, + "hidden": false, + "semantics": { + "kind": "opaque", + "scope": "Flux3ModularPipeline", + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "reference_binding", + "semanticName": "reference_binding", + "direction": "input", + "roles": ["value"], + "types": ["reference_conditioning"], + "required": false, + "hidden": false, + "semantics": { + "kind": "opaque", + "scope": "Flux3ModularPipeline", + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "prompt_input", + "semanticName": "prompt", + "direction": "input", + "roles": ["value"], + "types": ["string"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + } + ], + "workflowId": "text2image", + "binding": { + "values": {}, + "pipelineClass": "Flux3ModularPipeline" + } + }, + { + "pipelineClass": "Flux3ModularPipeline", + "task": "text_to_image", + "operationId": "diffusion.guidance", + "nodeKey": "modules.ModularDiffusers.Guider", + "nodeType": "guidance", + "blockName": null, + "decomposition": "bundle", + "support": "declared", + "ports": [ + { + "name": "model_type", + "semanticName": "model_type", + "direction": "input", + "roles": ["value"], + "types": ["string"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "guider", + "semanticName": "guider", + "direction": "input", + "roles": ["value"], + "types": ["string"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "guidance_scale", + "semanticName": "guidance_scale", + "direction": "input", + "roles": ["value"], + "types": ["float"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "guidance_rescale", + "semanticName": "guidance_rescale", + "direction": "input", + "roles": ["value"], + "types": ["float"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "use_original_formulation", + "semanticName": "use_original_formulation", + "direction": "input", + "roles": ["value"], + "types": ["boolean"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "enabled", + "semanticName": "enabled", + "direction": "input", + "roles": ["value"], + "types": ["boolean"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "start", + "semanticName": "start", + "direction": "input", + "roles": ["value"], + "types": ["float"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "stop", + "semanticName": "stop", + "direction": "input", + "roles": ["value"], + "types": ["float"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "guider_out", + "semanticName": "guider_out", + "direction": "output", + "roles": ["component"], + "types": ["custom_guider"], + "required": false, + "hidden": false, + "semantics": { + "kind": "component", + "scope": "Flux3ModularPipeline", + "state": null, + "owner": "same_loader", + "members": [] + } + }, + { + "name": "layers_config", + "semanticName": "layers_config", + "direction": "input", + "roles": ["value"], + "types": ["layers_config"], + "required": false, + "hidden": false, + "semantics": { + "kind": "opaque", + "scope": "Flux3ModularPipeline", + "state": null, + "owner": "none", + "members": [] + } + } + ], + "workflowId": "text2image", + "binding": { + "values": { + "model_type": "Flux3ModularPipeline" + }, + "pipelineClass": "Flux3ModularPipeline" + } + }, + { + "pipelineClass": "Flux3ModularPipeline", + "task": "text_to_image", + "operationId": "diffusion.load_models", + "nodeKey": "modules.ModularDiffusers.ModelsLoader", + "nodeType": "loader", + "blockName": null, + "decomposition": "loader", + "support": "declared", + "ports": [ + { + "name": "model_type", + "semanticName": "model_type", + "direction": "input", + "roles": ["value"], + "types": ["string"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "repo_id", + "semanticName": "repo_id", + "direction": "input", + "roles": ["value"], + "types": ["string"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "reviewed_variant", + "semanticName": "reviewed_variant", + "direction": "input", + "roles": ["value"], + "types": ["string"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "device", + "semanticName": "device", + "direction": "input", + "roles": ["value"], + "types": ["string"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "attention_backend", + "semanticName": "attention_backend", + "direction": "input", + "roles": ["value"], + "types": ["string"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "vae_slicing", + "semanticName": "vae_slicing", + "direction": "input", + "roles": ["value"], + "types": ["boolean"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "vae_tiling", + "semanticName": "vae_tiling", + "direction": "input", + "roles": ["value"], + "types": ["boolean"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "inpaint_compatibility", + "semanticName": "inpaint_compatibility", + "direction": "input", + "roles": ["value"], + "types": ["string"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "trust_remote_code", + "semanticName": "trust_remote_code", + "direction": "input", + "roles": ["value"], + "types": ["boolean"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "revision", + "semanticName": "revision", + "direction": "input", + "roles": ["value"], + "types": ["string"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "workflow_id", + "semanticName": "workflow_id", + "direction": "input", + "roles": ["value"], + "types": ["string"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "modiff_pipeline_identity", + "semanticName": "modiff_pipeline_identity", + "direction": "input", + "roles": ["value"], + "types": ["object"], + "required": false, + "hidden": true, + "semantics": { + "kind": "opaque", + "scope": "Flux3ModularPipeline", + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "auto_offload", + "semanticName": "auto_offload", + "direction": "input", + "roles": ["value"], + "types": ["boolean"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "offload_mode", + "semanticName": "offload_mode", + "direction": "input", + "roles": ["value"], + "types": ["string"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "weight_loading_mode", + "semanticName": "weight_loading_mode", + "direction": "input", + "roles": ["value"], + "types": ["string"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "weight_format", + "semanticName": "weight_format", + "direction": "input", + "roles": ["value"], + "types": ["string"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "unet", + "semanticName": "unet", + "direction": "input", + "roles": ["component"], + "types": ["diffusers_auto_model"], + "required": false, + "hidden": false, + "semantics": { + "kind": "component", + "scope": "Flux3ModularPipeline", + "state": null, + "owner": "same_loader", + "members": [ + { + "name": "transformer", + "type": "diffusers.models.transformers.transformer_flux3.Flux3Transformer2DModel" + } + ] + } + }, + { + "name": "vae", + "semanticName": "vae", + "direction": "input", + "roles": ["component"], + "types": ["diffusers_auto_model"], + "required": false, + "hidden": false, + "semantics": { + "kind": "component", + "scope": "Flux3ModularPipeline", + "state": null, + "owner": "same_loader", + "members": [ + { + "name": "vae", + "type": "diffusers.models.autoencoders.autoencoder_kl_flux2.AutoencoderKLFlux2" + } + ] + } + }, + { + "name": "controlnet", + "semanticName": "controlnet", + "direction": "input", + "roles": ["component"], + "types": ["diffusers_auto_model"], + "required": false, + "hidden": true, + "semantics": { + "kind": "component", + "scope": "Flux3ModularPipeline", + "state": null, + "owner": "same_loader", + "members": [] + } + }, + { + "name": "lora_list", + "semanticName": "lora_list", + "direction": "input", + "roles": ["value"], + "types": ["custom_lora"], + "required": false, + "hidden": false, + "semantics": { + "kind": "opaque", + "scope": "Flux3ModularPipeline", + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "text_encoders", + "semanticName": "text_encoders", + "direction": "output", + "roles": ["component"], + "types": ["diffusers_auto_models"], + "required": false, + "hidden": false, + "semantics": { + "kind": "component", + "scope": "Flux3ModularPipeline", + "state": null, + "owner": "same_loader", + "members": [ + { + "name": "text_encoder", + "type": "transformers.models.qwen3_vl.modeling_qwen3_vl.Qwen3VLForConditionalGeneration" + }, + { + "name": "tokenizer", + "type": "transformers.models.auto.processing_auto.AutoProcessor" + } + ] + } + }, + { + "name": "unet_out", + "semanticName": "unet_out", + "direction": "output", + "roles": ["component"], + "types": ["diffusers_auto_model"], + "required": false, + "hidden": false, + "semantics": { + "kind": "component", + "scope": "Flux3ModularPipeline", + "state": null, + "owner": "same_loader", + "members": [ + { + "name": "transformer", + "type": "diffusers.models.transformers.transformer_flux3.Flux3Transformer2DModel" + } + ] + } + }, + { + "name": "vae_out", + "semanticName": "vae_out", + "direction": "output", + "roles": ["component"], + "types": ["diffusers_auto_model"], + "required": false, + "hidden": false, + "semantics": { + "kind": "component", + "scope": "Flux3ModularPipeline", + "state": null, + "owner": "same_loader", + "members": [ + { + "name": "vae", + "type": "diffusers.models.autoencoders.autoencoder_kl_flux2.AutoencoderKLFlux2" + } + ] + } + }, + { + "name": "scheduler", + "semanticName": "scheduler", + "direction": "output", + "roles": ["component"], + "types": ["diffusers_auto_model"], + "required": false, + "hidden": false, + "semantics": { + "kind": "component", + "scope": "Flux3ModularPipeline", + "state": null, + "owner": "same_loader", + "members": [ + { + "name": "scheduler", + "type": "diffusers.schedulers.scheduling_flow_match_euler_discrete.FlowMatchEulerDiscreteScheduler" + } + ] + } + }, + { + "name": "image_encoder", + "semanticName": "image_encoder", + "direction": "output", + "roles": ["component"], + "types": ["diffusers_auto_model"], + "required": false, + "hidden": true, + "semantics": { + "kind": "component", + "scope": "Flux3ModularPipeline", + "state": null, + "owner": "same_loader", + "members": [] + } + }, + { + "name": "pipeline_components", + "semanticName": "pipeline_components", + "direction": "output", + "roles": ["component"], + "types": ["diffusers_modular_pipeline_components"], + "required": false, + "hidden": false, + "semantics": { + "kind": "component", + "scope": "Flux3ModularPipeline", + "state": null, + "owner": "same_loader", + "members": [ + { + "name": "guider", + "type": "diffusers.guiders.classifier_free_guidance.ClassifierFreeGuidance" + }, + { + "name": "image_processor", + "type": "diffusers.modular_pipelines.flux3.image_processor.Flux3ImageProcessor" + }, + { + "name": "scheduler", + "type": "diffusers.schedulers.scheduling_flow_match_euler_discrete.FlowMatchEulerDiscreteScheduler" + }, + { + "name": "text_encoder", + "type": "transformers.models.qwen3_vl.modeling_qwen3_vl.Qwen3VLForConditionalGeneration" + }, + { + "name": "tokenizer", + "type": "transformers.models.auto.processing_auto.AutoProcessor" + }, + { + "name": "transformer", + "type": "diffusers.models.transformers.transformer_flux3.Flux3Transformer2DModel" + }, + { + "name": "vae", + "type": "diffusers.models.autoencoders.autoencoder_kl_flux2.AutoencoderKLFlux2" + } + ] + } + }, + { + "name": "quant_config", + "semanticName": "quant_config", + "direction": "input", + "roles": ["value"], + "types": ["quant_config"], + "required": false, + "hidden": false, + "semantics": { + "kind": "opaque", + "scope": "Flux3ModularPipeline", + "state": null, + "owner": "none", + "members": [] + } + } + ], + "workflowId": "text2image", + "binding": { + "values": { + "model_type": "Flux3ModularPipeline" + }, + "pipelineClass": "Flux3ModularPipeline" + } + } + ], + "starter": { + "schemaVersion": 1, + "pipelineClass": "Flux3ModularPipeline", + "task": "text_to_image", + "workflowId": "text2image", + "nodes": [ + { + "operation": { + "pipelineClass": "Flux3ModularPipeline", + "task": "text_to_image", + "operationId": "diffusion.load_models", + "nodeKey": "modules.ModularDiffusers.ModelsLoader", + "nodeType": "loader", + "blockName": null, + "decomposition": "loader", + "support": "declared", + "ports": [ + { + "name": "model_type", + "semanticName": "model_type", + "direction": "input", + "roles": ["value"], + "types": ["string"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "repo_id", + "semanticName": "repo_id", + "direction": "input", + "roles": ["value"], + "types": ["string"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "reviewed_variant", + "semanticName": "reviewed_variant", + "direction": "input", + "roles": ["value"], + "types": ["string"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "device", + "semanticName": "device", + "direction": "input", + "roles": ["value"], + "types": ["string"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "attention_backend", + "semanticName": "attention_backend", + "direction": "input", + "roles": ["value"], + "types": ["string"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "vae_slicing", + "semanticName": "vae_slicing", + "direction": "input", + "roles": ["value"], + "types": ["boolean"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "vae_tiling", + "semanticName": "vae_tiling", + "direction": "input", + "roles": ["value"], + "types": ["boolean"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "inpaint_compatibility", + "semanticName": "inpaint_compatibility", + "direction": "input", + "roles": ["value"], + "types": ["string"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "trust_remote_code", + "semanticName": "trust_remote_code", + "direction": "input", + "roles": ["value"], + "types": ["boolean"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "revision", + "semanticName": "revision", + "direction": "input", + "roles": ["value"], + "types": ["string"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "workflow_id", + "semanticName": "workflow_id", + "direction": "input", + "roles": ["value"], + "types": ["string"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "modiff_pipeline_identity", + "semanticName": "modiff_pipeline_identity", + "direction": "input", + "roles": ["value"], + "types": ["object"], + "required": false, + "hidden": true, + "semantics": { + "kind": "opaque", + "scope": "Flux3ModularPipeline", + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "auto_offload", + "semanticName": "auto_offload", + "direction": "input", + "roles": ["value"], + "types": ["boolean"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "offload_mode", + "semanticName": "offload_mode", + "direction": "input", + "roles": ["value"], + "types": ["string"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "weight_loading_mode", + "semanticName": "weight_loading_mode", + "direction": "input", + "roles": ["value"], + "types": ["string"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "weight_format", + "semanticName": "weight_format", + "direction": "input", + "roles": ["value"], + "types": ["string"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "unet", + "semanticName": "unet", + "direction": "input", + "roles": ["component"], + "types": ["diffusers_auto_model"], + "required": false, + "hidden": false, + "semantics": { + "kind": "component", + "scope": "Flux3ModularPipeline", + "state": null, + "owner": "same_loader", + "members": [ + { + "name": "transformer", + "type": "diffusers.models.transformers.transformer_flux3.Flux3Transformer2DModel" + } + ] + } + }, + { + "name": "vae", + "semanticName": "vae", + "direction": "input", + "roles": ["component"], + "types": ["diffusers_auto_model"], + "required": false, + "hidden": false, + "semantics": { + "kind": "component", + "scope": "Flux3ModularPipeline", + "state": null, + "owner": "same_loader", + "members": [ + { + "name": "vae", + "type": "diffusers.models.autoencoders.autoencoder_kl_flux2.AutoencoderKLFlux2" + } + ] + } + }, + { + "name": "controlnet", + "semanticName": "controlnet", + "direction": "input", + "roles": ["component"], + "types": ["diffusers_auto_model"], + "required": false, + "hidden": true, + "semantics": { + "kind": "component", + "scope": "Flux3ModularPipeline", + "state": null, + "owner": "same_loader", + "members": [] + } + }, + { + "name": "lora_list", + "semanticName": "lora_list", + "direction": "input", + "roles": ["value"], + "types": ["custom_lora"], + "required": false, + "hidden": false, + "semantics": { + "kind": "opaque", + "scope": "Flux3ModularPipeline", + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "text_encoders", + "semanticName": "text_encoders", + "direction": "output", + "roles": ["component"], + "types": ["diffusers_auto_models"], + "required": false, + "hidden": false, + "semantics": { + "kind": "component", + "scope": "Flux3ModularPipeline", + "state": null, + "owner": "same_loader", + "members": [ + { + "name": "text_encoder", + "type": "transformers.models.qwen3_vl.modeling_qwen3_vl.Qwen3VLForConditionalGeneration" + }, + { + "name": "tokenizer", + "type": "transformers.models.auto.processing_auto.AutoProcessor" + } + ] + } + }, + { + "name": "unet_out", + "semanticName": "unet_out", + "direction": "output", + "roles": ["component"], + "types": ["diffusers_auto_model"], + "required": false, + "hidden": false, + "semantics": { + "kind": "component", + "scope": "Flux3ModularPipeline", + "state": null, + "owner": "same_loader", + "members": [ + { + "name": "transformer", + "type": "diffusers.models.transformers.transformer_flux3.Flux3Transformer2DModel" + } + ] + } + }, + { + "name": "vae_out", + "semanticName": "vae_out", + "direction": "output", + "roles": ["component"], + "types": ["diffusers_auto_model"], + "required": false, + "hidden": false, + "semantics": { + "kind": "component", + "scope": "Flux3ModularPipeline", + "state": null, + "owner": "same_loader", + "members": [ + { + "name": "vae", + "type": "diffusers.models.autoencoders.autoencoder_kl_flux2.AutoencoderKLFlux2" + } + ] + } + }, + { + "name": "scheduler", + "semanticName": "scheduler", + "direction": "output", + "roles": ["component"], + "types": ["diffusers_auto_model"], + "required": false, + "hidden": false, + "semantics": { + "kind": "component", + "scope": "Flux3ModularPipeline", + "state": null, + "owner": "same_loader", + "members": [ + { + "name": "scheduler", + "type": "diffusers.schedulers.scheduling_flow_match_euler_discrete.FlowMatchEulerDiscreteScheduler" + } + ] + } + }, + { + "name": "image_encoder", + "semanticName": "image_encoder", + "direction": "output", + "roles": ["component"], + "types": ["diffusers_auto_model"], + "required": false, + "hidden": true, + "semantics": { + "kind": "component", + "scope": "Flux3ModularPipeline", + "state": null, + "owner": "same_loader", + "members": [] + } + }, + { + "name": "pipeline_components", + "semanticName": "pipeline_components", + "direction": "output", + "roles": ["component"], + "types": ["diffusers_modular_pipeline_components"], + "required": false, + "hidden": false, + "semantics": { + "kind": "component", + "scope": "Flux3ModularPipeline", + "state": null, + "owner": "same_loader", + "members": [ + { + "name": "guider", + "type": "diffusers.guiders.classifier_free_guidance.ClassifierFreeGuidance" + }, + { + "name": "image_processor", + "type": "diffusers.modular_pipelines.flux3.image_processor.Flux3ImageProcessor" + }, + { + "name": "scheduler", + "type": "diffusers.schedulers.scheduling_flow_match_euler_discrete.FlowMatchEulerDiscreteScheduler" + }, + { + "name": "text_encoder", + "type": "transformers.models.qwen3_vl.modeling_qwen3_vl.Qwen3VLForConditionalGeneration" + }, + { + "name": "tokenizer", + "type": "transformers.models.auto.processing_auto.AutoProcessor" + }, + { + "name": "transformer", + "type": "diffusers.models.transformers.transformer_flux3.Flux3Transformer2DModel" + }, + { + "name": "vae", + "type": "diffusers.models.autoencoders.autoencoder_kl_flux2.AutoencoderKLFlux2" + } + ] + } + }, + { + "name": "quant_config", + "semanticName": "quant_config", + "direction": "input", + "roles": ["value"], + "types": ["quant_config"], + "required": false, + "hidden": false, + "semantics": { + "kind": "opaque", + "scope": "Flux3ModularPipeline", + "state": null, + "owner": "none", + "members": [] + } + } + ], + "workflowId": "text2image", + "binding": { + "values": { + "model_type": "Flux3ModularPipeline" + }, + "pipelineClass": "Flux3ModularPipeline" + } + }, + "node": { + "module": "modules.ModularDiffusers", + "action": "ModelsLoader", + "type": "custom", + "label": "Load Models", + "category": "loader", + "description": "", + "resizable": true, + "skipParamsCheck": true, + "style": {}, + "params": { + "model_type": { + "label": "Pipeline Type", + "type": "string", + "options": { + "": { + "schemaVersion": 1, + "value": "", + "label": "", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "DummyCustomPipeline": { + "schemaVersion": 1, + "value": "DummyCustomPipeline", + "label": "Custom", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "StableDiffusionXLModularPipeline": { + "schemaVersion": 1, + "value": "StableDiffusionXLModularPipeline", + "label": "Stable Diffusion XL", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "QwenImageModularPipeline": { + "schemaVersion": 1, + "value": "QwenImageModularPipeline", + "label": "Qwen-Image-2512", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "QwenImageEditModularPipeline": { + "schemaVersion": 1, + "value": "QwenImageEditModularPipeline", + "label": "Qwen-Image-Edit", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "QwenImageEditPlusModularPipeline": { + "schemaVersion": 1, + "value": "QwenImageEditPlusModularPipeline", + "label": "Qwen-Image-Edit-2511", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "QwenImageLayeredModularPipeline": { + "schemaVersion": 1, + "value": "QwenImageLayeredModularPipeline", + "label": "Qwen-Image-Layered", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "FluxModularPipeline": { + "schemaVersion": 1, + "value": "FluxModularPipeline", + "label": "Flux", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "FluxKontextModularPipeline": { + "schemaVersion": 1, + "value": "FluxKontextModularPipeline", + "label": "Flux Kontext", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "Flux2ModularPipeline": { + "schemaVersion": 1, + "value": "Flux2ModularPipeline", + "label": "Flux 2", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "Flux2KleinModularPipeline": { + "schemaVersion": 1, + "value": "Flux2KleinModularPipeline", + "label": "Flux 2 Klein Distilled", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "Flux2KleinBaseModularPipeline": { + "schemaVersion": 1, + "value": "Flux2KleinBaseModularPipeline", + "label": "Flux 2 Klein Base", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "Flux3ModularPipeline": { + "schemaVersion": 1, + "value": "Flux3ModularPipeline", + "label": "FLUX 3 Image Klein Base", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "Flux3DistilledModularPipeline": { + "schemaVersion": 1, + "value": "Flux3DistilledModularPipeline", + "label": "FLUX 3 Image Klein", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "ZImageModularPipeline": { + "schemaVersion": 1, + "value": "ZImageModularPipeline", + "label": "Z-Image", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "WanModularPipeline": { + "schemaVersion": 1, + "value": "WanModularPipeline", + "label": "WAN2 T2V", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "WanImage2VideoModularPipeline": { + "schemaVersion": 1, + "value": "WanImage2VideoModularPipeline", + "label": "WAN2 I2V", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "MiniMaxMusic3ModularPipeline": { + "schemaVersion": 1, + "value": "MiniMaxMusic3ModularPipeline", + "label": "MiniMax Music 3", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "MiniMaxH3ModularPipeline": { + "schemaVersion": 1, + "value": "MiniMaxH3ModularPipeline", + "label": "MiniMax H3", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "AnimaModularPipeline": { + "schemaVersion": 1, + "value": "AnimaModularPipeline", + "label": "Anima", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "ErnieImageModularPipeline": { + "schemaVersion": 1, + "value": "ErnieImageModularPipeline", + "label": "ERNIE Image Turbo", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "HeliosModularPipeline": { + "schemaVersion": 1, + "value": "HeliosModularPipeline", + "label": "Helios", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "HeliosPyramidModularPipeline": { + "schemaVersion": 1, + "value": "HeliosPyramidModularPipeline", + "label": "Helios Pyramid", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "HeliosPyramidDistilledModularPipeline": { + "schemaVersion": 1, + "value": "HeliosPyramidDistilledModularPipeline", + "label": "Helios Pyramid Distilled", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "HunyuanVideo15ModularPipeline": { + "schemaVersion": 1, + "value": "HunyuanVideo15ModularPipeline", + "label": "HunyuanVideo 1.5", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "WanAnimate2ModularPipeline": { + "schemaVersion": 1, + "value": "WanAnimate2ModularPipeline", + "label": "Wan Animate 2", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "WanAnimate2DistilledModularPipeline": { + "schemaVersion": 1, + "value": "WanAnimate2DistilledModularPipeline", + "label": "Wan Animate 2 Distilled", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "Cosmos3OmniModularPipeline": { + "schemaVersion": 1, + "value": "Cosmos3OmniModularPipeline", + "label": "Cosmos 3 Nano", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "Cosmos3DistilledModularPipeline": { + "schemaVersion": 1, + "value": "Cosmos3DistilledModularPipeline", + "label": "Cosmos 3 Distilled", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "Ideogram4ModularPipeline": { + "schemaVersion": 1, + "value": "Ideogram4ModularPipeline", + "label": "Ideogram 4 (Contract only)", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "Krea2ModularPipeline": { + "schemaVersion": 1, + "value": "Krea2ModularPipeline", + "label": "Krea 2 (Contract only)", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "Krea2TurboModularPipeline": { + "schemaVersion": 1, + "value": "Krea2TurboModularPipeline", + "label": "Krea 2 Turbo (Contract only)", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "StableDiffusion3ModularPipeline": { + "schemaVersion": 1, + "value": "StableDiffusion3ModularPipeline", + "label": "Stable Diffusion 3 (Contract only)", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "LTX25ModularPipeline": { + "schemaVersion": 1, + "value": "LTX25ModularPipeline", + "label": "LTX-2.5 (Contract only)", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + } + }, + "onChange": "set_filters", + "description": "Selects the Modular Diffusers pipeline class. This filters compatible checkpoints and publishes the component contract used by connected nodes; it is not the model checkpoint itself.", + "value": "Flux3ModularPipeline" + }, + "repo_id": { + "label": "Repository ID", + "display": "modelselect", + "type": "string", + "value": { + "source": "hub", + "value": "black-forest-labs/flux-3-image-klein-base" + }, + "fieldOptions": { + "noValidation": true, + "sources": ["hub", "local"], + "filter": { + "hub": { + "className": ["Flux3ModularPipeline"] + } + } + }, + "onChange": "refresh_pipeline_identity" + }, + "reviewed_variant": { + "label": "Model", + "type": "string", + "value": "black-forest-labs/flux-3-image-klein-base", + "options": [ + { + "schemaVersion": 1, + "value": "black-forest-labs/flux-3-image-klein-base", + "label": "black-forest-labs/flux-3-image-klein-base", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + } + ], + "hidden": true, + "fieldOptions": { + "controlTier": "essential" + }, + "description": "Select an immutable, reviewed checkpoint for this exact Modular Diffusers pipeline family. Changing it does not replace the workflow graph or reset its parameters." + }, + "dtype": { + "label": "dtype", + "options": [ + { + "schemaVersion": 1, + "value": "float32", + "label": "float32", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "float16", + "label": "float16", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "bfloat16", + "label": "bfloat16", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + } + ], + "value": "bfloat16" + }, + "device": { + "label": "Device", + "type": "string", + "value": "cuda:0", + "options": { + "cuda:0": { + "schemaVersion": 1, + "value": "cuda:0", + "label": "cuda:0", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "cpu:0": { + "schemaVersion": 1, + "value": "cpu:0", + "label": "cpu:0", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "cpu": { + "schemaVersion": 1, + "value": "cpu", + "label": "cpu", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + } + } + }, + "attention_backend": { + "label": "Attention Backend", + "type": "string", + "default": "inherit", + "options": [ + { + "schemaVersion": 1, + "value": "inherit", + "label": "inherit", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "auto", + "label": "auto", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "native", + "label": "native", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "_native_math", + "label": "_native_math", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + } + ], + "description": "Inherit preserves existing native component defaults; explicit choices use the ordinary Diffusers attention API." + }, + "vae_slicing": { + "label": "VAE Slicing", + "type": "boolean", + "default": null, + "hidden": true, + "description": "An unset policy preserves the native VAE configuration; templates may bind an explicit boolean." + }, + "vae_tiling": { + "label": "VAE Tiling", + "type": "boolean", + "default": null, + "hidden": true, + "description": "An unset policy preserves the native VAE configuration; templates may bind an explicit boolean." + }, + "inpaint_compatibility": { + "label": "Inpaint Compatibility", + "type": "string", + "default": "native", + "hidden": true, + "options": [ + { + "schemaVersion": 1, + "value": "native", + "label": "native", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "whole_v1", + "label": "whole_v1", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + } + ], + "description": "Technical compatibility selection for the reviewed Qwen Edit inpainting candidate; existing nodes retain native policy." + }, + "trust_remote_code": { + "label": "Trust Remote Code", + "type": "boolean", + "value": false, + "description": "Repository code execution is disabled; keep this off for contract preview.", + "onChange": "refresh_pipeline_identity" + }, + "revision": { + "label": "Revision", + "type": "string", + "value": "1469d27cfb9bb1bd81d3a93f5a023b39dbf136e4", + "description": "Required exact 40-character commit hash for Hub custom contracts.", + "onChange": "refresh_pipeline_identity" + }, + "workflow_id": { + "label": "Reviewed Workflow", + "type": "string", + "value": "text2image", + "hidden": true, + "description": "Exact reviewed component partition selected by a first-party Cluster Node." + }, + "modiff_pipeline_identity": { + "label": "Custom Pipeline Identity", + "type": "object", + "value": null, + "hidden": true + }, + "refresh_pipeline_identity_button": { + "label": "Review and Refresh Custom Contract", + "display": "ui_button", + "value": false, + "hidden": true, + "onChange": "refresh_pipeline_identity" + }, + "auto_offload": { + "label": "Enable Auto Offload", + "type": "boolean", + "value": true + }, + "offload_mode": { + "label": "Offload Mode", + "type": "string", + "options": [ + { + "schemaVersion": 1, + "value": "auto_cpu", + "label": "auto_cpu", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "none", + "label": "none", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "model_cpu", + "label": "model_cpu", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "group_cpu", + "label": "group_cpu", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "group_disk", + "label": "group_disk", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + } + ], + "value": "model_cpu", + "default": "model_cpu" + }, + "weight_loading_mode": { + "label": "Weight Loading", + "type": "string", + "default": "cpu", + "options": [ + { + "schemaVersion": 1, + "value": "cpu", + "label": "cpu", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "cuda", + "label": "cuda", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + } + ], + "fieldOptions": { + "controlTier": "advanced" + }, + "description": "Load weights on CPU or CUDA before disk offload. CUDA loading needs room for a complete component and is available only for supported models." + }, + "weight_format": { + "label": "Weight Format", + "type": "string", + "default": "native", + "options": [ + { + "schemaVersion": 1, + "value": "native", + "label": "native", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "fp8r", + "label": "fp8r", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "nvfp4", + "label": "nvfp4", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + } + ], + "hidden": false, + "fieldOptions": { + "controlTier": "advanced" + }, + "description": "Select a backend-declared immutable component format. Missing reviewed files must be installed through Model Manager." + }, + "unet": { + "label": "Denoise Model", + "display": "input", + "type": "diffusers_auto_model", + "hidden": false + }, + "vae": { + "label": "VAE", + "display": "input", + "type": "diffusers_auto_model", + "hidden": false + }, + "controlnet": { + "label": "ControlNet", + "display": "input", + "type": "diffusers_auto_model", + "hidden": true + }, + "lora_list": { + "label": "Lora", + "display": "input", + "type": "custom_lora" + }, + "text_encoders": { + "label": "Text Encoders", + "display": "output", + "type": "diffusers_auto_models", + "signal": { + "direction": "output", + "origin": "modiff_pipeline_identity", + "value": "Flux3ModularPipeline" + }, + "connectionRole": "text_encoders", + "hidden": false + }, + "unet_out": { + "label": "Denoise Model", + "display": "output", + "type": "diffusers_auto_model", + "signal": { + "direction": "output", + "origin": "modiff_pipeline_identity", + "value": "Flux3ModularPipeline" + }, + "connectionRole": "denoiser", + "hidden": false + }, + "vae_out": { + "label": "VAE", + "display": "output", + "type": "diffusers_auto_model", + "signal": { + "direction": "output", + "origin": "modiff_pipeline_identity", + "value": "Flux3ModularPipeline" + }, + "connectionRole": "vae", + "hidden": false + }, + "scheduler": { + "label": "Scheduler", + "display": "output", + "type": "diffusers_auto_model", + "signal": { + "direction": "output", + "origin": "modiff_pipeline_identity", + "value": "Flux3ModularPipeline" + }, + "connectionRole": "scheduler", + "hidden": false + }, + "image_encoder": { + "label": "Image Encoder", + "display": "output", + "type": "diffusers_auto_model", + "signal": { + "direction": "output", + "origin": "modiff_pipeline_identity", + "value": "Flux3ModularPipeline" + }, + "connectionRole": "image_encoder", + "hidden": true + }, + "pipeline_components": { + "label": "Pipeline Components", + "display": "output", + "type": "diffusers_modular_pipeline_components", + "signal": { + "direction": "output", + "origin": "modiff_pipeline_identity", + "value": "Flux3ModularPipeline" + }, + "connectionRole": "pipeline_components", + "hidden": false + }, + "quant_config": { + "label": "Quant Config", + "display": "input", + "type": "quant_config" + } + }, + "time": [0, 0, 0], + "memory": [0, 0, 0], + "cache": false + } + }, + { + "operation": { + "pipelineClass": "Flux3ModularPipeline", + "task": "text_to_image", + "operationId": "diffusion.guidance", + "nodeKey": "modules.ModularDiffusers.Guider", + "nodeType": "guidance", + "blockName": null, + "decomposition": "bundle", + "support": "declared", + "ports": [ + { + "name": "model_type", + "semanticName": "model_type", + "direction": "input", + "roles": ["value"], + "types": ["string"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "guider", + "semanticName": "guider", + "direction": "input", + "roles": ["value"], + "types": ["string"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "guidance_scale", + "semanticName": "guidance_scale", + "direction": "input", + "roles": ["value"], + "types": ["float"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "guidance_rescale", + "semanticName": "guidance_rescale", + "direction": "input", + "roles": ["value"], + "types": ["float"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "use_original_formulation", + "semanticName": "use_original_formulation", + "direction": "input", + "roles": ["value"], + "types": ["boolean"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "enabled", + "semanticName": "enabled", + "direction": "input", + "roles": ["value"], + "types": ["boolean"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "start", + "semanticName": "start", + "direction": "input", + "roles": ["value"], + "types": ["float"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "stop", + "semanticName": "stop", + "direction": "input", + "roles": ["value"], + "types": ["float"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "guider_out", + "semanticName": "guider_out", + "direction": "output", + "roles": ["component"], + "types": ["custom_guider"], + "required": false, + "hidden": false, + "semantics": { + "kind": "component", + "scope": "Flux3ModularPipeline", + "state": null, + "owner": "same_loader", + "members": [] + } + }, + { + "name": "layers_config", + "semanticName": "layers_config", + "direction": "input", + "roles": ["value"], + "types": ["layers_config"], + "required": false, + "hidden": false, + "semantics": { + "kind": "opaque", + "scope": "Flux3ModularPipeline", + "state": null, + "owner": "none", + "members": [] + } + } + ], + "workflowId": "text2image", + "binding": { + "values": { + "model_type": "Flux3ModularPipeline" + }, + "pipelineClass": "Flux3ModularPipeline" + } + }, + "node": { + "module": "modules.ModularDiffusers", + "action": "Guider", + "type": "custom", + "label": "Guidance", + "category": "sampler", + "description": "", + "resizable": true, + "skipParamsCheck": true, + "style": {}, + "params": { + "model_type": { + "type": "string", + "default": "", + "hidden": true, + "value": "Flux3ModularPipeline" + }, + "guider": { + "label": "Guider", + "fieldOptions": { + "loading": true + }, + "type": "string", + "options": [ + { + "schemaVersion": 1, + "value": "ClassifierFreeGuidance", + "label": "ClassifierFreeGuidance", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + } + ], + "value": "ClassifierFreeGuidance", + "onChange": [ + "updateNode", + { + "SkipLayerGuidance": ["layers_config"], + "AutoGuidance": ["layers_config"], + "SmoothedEnergyGuidance": ["layers_config"], + "PerturbedAttentionGuidance": ["layers_config"] + } + ] + }, + "guidance_scale": { + "label": "Guidance Scale", + "type": "float", + "display": "slider", + "value": 3.5, + "min": 1.0, + "max": 20.0, + "step": 0.1 + }, + "guidance_rescale": { + "label": "Guidance Rescale", + "type": "float", + "display": "slider", + "value": 0.0, + "min": 0.0, + "max": 10.0, + "step": 0.1 + }, + "use_original_formulation": { + "label": "Original Formulation", + "type": "boolean", + "value": false + }, + "enabled": { + "label": "Enabled", + "type": "boolean", + "value": true + }, + "start": { + "label": "Start", + "type": "float", + "display": "slider", + "value": 0.0, + "min": 0.0, + "max": 1.0, + "step": 0.01 + }, + "stop": { + "label": "Stop", + "type": "float", + "display": "slider", + "value": 1.0, + "min": 0.01, + "max": 1.0, + "step": 0.01 + }, + "guider_out": { + "label": "Guider", + "display": "output", + "type": "custom_guider", + "onSignal": [ + { + "action": "value", + "target": "model_type" + }, + { + "action": "value", + "target": "guider", + "prop": "options", + "data": { + "StableDiffusionXLModularPipeline": [ + "ClassifierFreeGuidance", + "SkipLayerGuidance", + "AdaptiveProjectedGuidance", + "AdaptiveProjectedMixGuidance", + "MagnitudeAwareGuidance", + "ClassifierFreeZeroStarGuidance", + "AutoGuidance", + "SmoothedEnergyGuidance", + "PerturbedAttentionGuidance", + "TangentialClassifierFreeGuidance", + "FrequencyDecoupledGuidance" + ], + "QwenImageModularPipeline": [ + "ClassifierFreeGuidance", + "SkipLayerGuidance", + "AdaptiveProjectedGuidance", + "AdaptiveProjectedMixGuidance", + "MagnitudeAwareGuidance", + "ClassifierFreeZeroStarGuidance", + "AutoGuidance", + "SmoothedEnergyGuidance", + "PerturbedAttentionGuidance", + "TangentialClassifierFreeGuidance", + "FrequencyDecoupledGuidance" + ], + "QwenImageEditModularPipeline": [ + "ClassifierFreeGuidance", + "SkipLayerGuidance", + "AdaptiveProjectedGuidance", + "AdaptiveProjectedMixGuidance", + "MagnitudeAwareGuidance", + "ClassifierFreeZeroStarGuidance", + "AutoGuidance", + "SmoothedEnergyGuidance", + "PerturbedAttentionGuidance", + "TangentialClassifierFreeGuidance", + "FrequencyDecoupledGuidance" + ], + "QwenImageEditPlusModularPipeline": [ + "ClassifierFreeGuidance", + "SkipLayerGuidance", + "AdaptiveProjectedGuidance", + "AdaptiveProjectedMixGuidance", + "MagnitudeAwareGuidance", + "ClassifierFreeZeroStarGuidance", + "AutoGuidance", + "SmoothedEnergyGuidance", + "PerturbedAttentionGuidance", + "TangentialClassifierFreeGuidance", + "FrequencyDecoupledGuidance" + ], + "QwenImageLayeredModularPipeline": [ + "ClassifierFreeGuidance", + "AdaptiveProjectedGuidance", + "AdaptiveProjectedMixGuidance", + "MagnitudeAwareGuidance", + "ClassifierFreeZeroStarGuidance", + "TangentialClassifierFreeGuidance", + "FrequencyDecoupledGuidance" + ], + "FluxModularPipeline": ["ClassifierFreeGuidance"], + "FluxKontextModularPipeline": ["ClassifierFreeGuidance"], + "Flux2KleinBaseModularPipeline": ["ClassifierFreeGuidance"], + "Flux3ModularPipeline": ["ClassifierFreeGuidance"], + "ZImageModularPipeline": [ + "ClassifierFreeGuidance", + "AdaptiveProjectedGuidance", + "AdaptiveProjectedMixGuidance", + "MagnitudeAwareGuidance", + "ClassifierFreeZeroStarGuidance", + "TangentialClassifierFreeGuidance", + "FrequencyDecoupledGuidance" + ], + "WanModularPipeline": [ + "ClassifierFreeGuidance", + "AdaptiveProjectedGuidance", + "AdaptiveProjectedMixGuidance", + "MagnitudeAwareGuidance", + "ClassifierFreeZeroStarGuidance", + "TangentialClassifierFreeGuidance", + "FrequencyDecoupledGuidance" + ], + "WanImage2VideoModularPipeline": [ + "ClassifierFreeGuidance", + "AdaptiveProjectedGuidance", + "AdaptiveProjectedMixGuidance", + "MagnitudeAwareGuidance", + "ClassifierFreeZeroStarGuidance", + "TangentialClassifierFreeGuidance", + "FrequencyDecoupledGuidance" + ] + } + }, + { + "action": "signal", + "target": "layers_config" + } + ], + "signalCompatibility": { + "values": { + "StableDiffusionXLModularPipeline": [ + "ClassifierFreeGuidance", + "SkipLayerGuidance", + "AdaptiveProjectedGuidance", + "AdaptiveProjectedMixGuidance", + "MagnitudeAwareGuidance", + "ClassifierFreeZeroStarGuidance", + "AutoGuidance", + "SmoothedEnergyGuidance", + "PerturbedAttentionGuidance", + "TangentialClassifierFreeGuidance", + "FrequencyDecoupledGuidance" + ], + "QwenImageModularPipeline": [ + "ClassifierFreeGuidance", + "SkipLayerGuidance", + "AdaptiveProjectedGuidance", + "AdaptiveProjectedMixGuidance", + "MagnitudeAwareGuidance", + "ClassifierFreeZeroStarGuidance", + "AutoGuidance", + "SmoothedEnergyGuidance", + "PerturbedAttentionGuidance", + "TangentialClassifierFreeGuidance", + "FrequencyDecoupledGuidance" + ], + "QwenImageEditModularPipeline": [ + "ClassifierFreeGuidance", + "SkipLayerGuidance", + "AdaptiveProjectedGuidance", + "AdaptiveProjectedMixGuidance", + "MagnitudeAwareGuidance", + "ClassifierFreeZeroStarGuidance", + "AutoGuidance", + "SmoothedEnergyGuidance", + "PerturbedAttentionGuidance", + "TangentialClassifierFreeGuidance", + "FrequencyDecoupledGuidance" + ], + "QwenImageEditPlusModularPipeline": [ + "ClassifierFreeGuidance", + "SkipLayerGuidance", + "AdaptiveProjectedGuidance", + "AdaptiveProjectedMixGuidance", + "MagnitudeAwareGuidance", + "ClassifierFreeZeroStarGuidance", + "AutoGuidance", + "SmoothedEnergyGuidance", + "PerturbedAttentionGuidance", + "TangentialClassifierFreeGuidance", + "FrequencyDecoupledGuidance" + ], + "QwenImageLayeredModularPipeline": [ + "ClassifierFreeGuidance", + "AdaptiveProjectedGuidance", + "AdaptiveProjectedMixGuidance", + "MagnitudeAwareGuidance", + "ClassifierFreeZeroStarGuidance", + "TangentialClassifierFreeGuidance", + "FrequencyDecoupledGuidance" + ], + "FluxModularPipeline": ["ClassifierFreeGuidance"], + "FluxKontextModularPipeline": ["ClassifierFreeGuidance"], + "Flux2KleinBaseModularPipeline": ["ClassifierFreeGuidance"], + "Flux3ModularPipeline": ["ClassifierFreeGuidance"], + "ZImageModularPipeline": [ + "ClassifierFreeGuidance", + "AdaptiveProjectedGuidance", + "AdaptiveProjectedMixGuidance", + "MagnitudeAwareGuidance", + "ClassifierFreeZeroStarGuidance", + "TangentialClassifierFreeGuidance", + "FrequencyDecoupledGuidance" + ], + "WanModularPipeline": [ + "ClassifierFreeGuidance", + "AdaptiveProjectedGuidance", + "AdaptiveProjectedMixGuidance", + "MagnitudeAwareGuidance", + "ClassifierFreeZeroStarGuidance", + "TangentialClassifierFreeGuidance", + "FrequencyDecoupledGuidance" + ], + "WanImage2VideoModularPipeline": [ + "ClassifierFreeGuidance", + "AdaptiveProjectedGuidance", + "AdaptiveProjectedMixGuidance", + "MagnitudeAwareGuidance", + "ClassifierFreeZeroStarGuidance", + "TangentialClassifierFreeGuidance", + "FrequencyDecoupledGuidance" + ] + } + } + }, + "layers_config": { + "label": "Layers", + "type": "layers_config", + "display": "input" + } + }, + "time": [0, 0, 0], + "memory": [0, 0, 0], + "cache": false + } + }, + { + "operation": { + "pipelineClass": "Flux3ModularPipeline", + "task": "text_to_image", + "operationId": "diffusion.encode_prompt", + "nodeKey": "modules.ModularDiffusers.EncodePrompt", + "nodeType": "text_encoder", + "blockName": "text_encoder", + "decomposition": "block", + "support": "declared", + "ports": [ + { + "name": "prompt", + "semanticName": "prompt", + "direction": "input", + "roles": ["value"], + "types": ["string"], + "required": true, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "negative_prompt", + "semanticName": "negative_prompt", + "direction": "input", + "roles": ["value"], + "types": ["string"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "max_sequence_length", + "semanticName": "max_sequence_length", + "direction": "input", + "roles": ["value"], + "types": ["int"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "text_encoder_out_layers", + "semanticName": "text_encoder_out_layers", + "direction": "input", + "roles": ["value"], + "types": ["int"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "text_encoders", + "semanticName": "text_encoders", + "direction": "input", + "roles": ["component"], + "types": ["diffusers_auto_models"], + "required": true, + "hidden": false, + "semantics": { + "kind": "component", + "scope": "Flux3ModularPipeline", + "state": null, + "owner": "same_loader", + "members": [ + { + "name": "text_encoder", + "type": "transformers.models.qwen3_vl.modeling_qwen3_vl.Qwen3VLForConditionalGeneration" + }, + { + "name": "tokenizer", + "type": "transformers.models.auto.processing_auto.AutoProcessor" + } + ] + } + }, + { + "name": "embeddings", + "semanticName": "embeddings", + "direction": "output", + "roles": ["value"], + "types": ["embeddings"], + "required": false, + "hidden": false, + "semantics": { + "kind": "conditioning", + "scope": "Flux3ModularPipeline", + "state": null, + "owner": "same_loader", + "members": [] + } + }, + { + "name": "doc", + "semanticName": "doc", + "direction": "output", + "roles": ["value"], + "types": ["string"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "layout_conditioning", + "semanticName": "layout_conditioning", + "direction": "input", + "roles": ["value"], + "types": ["layout_conditioning"], + "required": false, + "hidden": false, + "semantics": { + "kind": "opaque", + "scope": "Flux3ModularPipeline", + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "reference_binding", + "semanticName": "reference_binding", + "direction": "input", + "roles": ["value"], + "types": ["reference_conditioning"], + "required": false, + "hidden": false, + "semantics": { + "kind": "opaque", + "scope": "Flux3ModularPipeline", + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "prompt_input", + "semanticName": "prompt", + "direction": "input", + "roles": ["value"], + "types": ["string"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + } + ], + "workflowId": "text2image", + "binding": { + "values": {}, + "pipelineClass": "Flux3ModularPipeline" + } + }, + "node": { + "module": "modules.ModularDiffusers", + "action": "EncodePrompt", + "type": "custom", + "label": "Encode Prompt", + "category": "embedding", + "description": "", + "resizable": true, + "skipParamsCheck": true, + "style": {}, + "params": { + "text_encoders": { + "label": "Text Encoders *", + "required": true, + "type": "diffusers_auto_models", + "display": "input", + "onSignal": "update_node", + "signalCompatibility": { + "role": "text_encoders" + } + }, + "prompt_input": { + "label": "Prompt Input", + "type": "string", + "display": "input", + "description": "Optional connected prompt. When connected, this replaces the inline Prompt value." + }, + "guider": { + "label": "Guider", + "type": "custom_guider", + "display": "input", + "hidden": true, + "description": "Shared Diffusers guidance used by prompt encoding and denoising when the selected pipeline supports it." + }, + "layout_reference_summary": { + "label": "Bound Reference Summary", + "type": "string", + "display": "output", + "hidden": true, + "description": "Display-only ordered reference identities and actual preprocessing sizes from the current encoder cache." + }, + "prompt": { + "label": "Prompt *", + "type": "string", + "display": "textarea", + "default": "", + "value": "A red ceramic teapot on a wooden table beside a window, soft morning light, detailed photograph.", + "fieldOptions": { + "exampleAttribution": "MoDiff task example" + } + }, + "negative_prompt": { + "label": "Negative Prompt", + "type": "string", + "display": "textarea", + "default": "" + }, + "max_sequence_length": { + "label": "Maximum Sequence Length", + "type": "int", + "default": 8192, + "min": 1, + "max": 8192, + "step": 1 + }, + "text_encoder_out_layers": { + "label": "Text Encoder Layers", + "type": "int", + "display": "select", + "default": [4, 8, 12, 16, 20, 24, 28, 32], + "options": [ + { + "schemaVersion": 1, + "value": "0", + "label": "0", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "1", + "label": "1", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "2", + "label": "2", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "3", + "label": "3", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "4", + "label": "4", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "5", + "label": "5", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "6", + "label": "6", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "7", + "label": "7", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "8", + "label": "8", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "9", + "label": "9", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "10", + "label": "10", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "11", + "label": "11", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "12", + "label": "12", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "13", + "label": "13", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "14", + "label": "14", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "15", + "label": "15", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "16", + "label": "16", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "17", + "label": "17", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "18", + "label": "18", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "19", + "label": "19", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "20", + "label": "20", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "21", + "label": "21", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "22", + "label": "22", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "23", + "label": "23", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "24", + "label": "24", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "25", + "label": "25", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "26", + "label": "26", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "27", + "label": "27", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "28", + "label": "28", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "29", + "label": "29", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "30", + "label": "30", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "31", + "label": "31", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "32", + "label": "32", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + } + ], + "fieldOptions": { + "multiple": true, + "tupleValue": true, + "tupleLength": 8 + } + }, + "embeddings": { + "label": "Text Embeddings", + "type": "embeddings", + "display": "output" + }, + "doc": { + "label": "Doc", + "type": "string", + "display": "output" + }, + "layout_conditioning": { + "label": "Layout Conditioning", + "type": "layout_conditioning", + "display": "layout", + "fieldOptions": { + "layoutConditioning": { + "schemaVersion": 2, + "sourceRegions": false, + "supportsBoundSourceRegions": true + } + }, + "default": null + }, + "reference_binding": { + "label": "Reference Binding", + "type": "reference_conditioning", + "display": "input", + "fieldOptions": { + "referenceBinding": { + "schemaVersion": 1, + "maxReferences": 10 + } + }, + "default": null + } + }, + "time": [0, 0, 0], + "memory": [0, 0, 0], + "cache": false + } + }, + { + "operation": { + "pipelineClass": "Flux3ModularPipeline", + "task": "text_to_image", + "operationId": "diffusion.denoise", + "nodeKey": "modules.ModularDiffusers.Denoise", + "nodeType": "denoise", + "blockName": "denoise", + "decomposition": "block", + "support": "declared", + "ports": [ + { + "name": "embeddings", + "semanticName": "embeddings", + "direction": "input", + "roles": ["value"], + "types": ["embeddings"], + "required": true, + "hidden": false, + "semantics": { + "kind": "conditioning", + "scope": "Flux3ModularPipeline", + "state": null, + "owner": "same_loader", + "members": [] + } + }, + { + "name": "width", + "semanticName": "width", + "direction": "input", + "roles": ["value"], + "types": ["int"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "height", + "semanticName": "height", + "direction": "input", + "roles": ["value"], + "types": ["int"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "seed", + "semanticName": "seed", + "direction": "input", + "roles": ["value"], + "types": ["int"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "num_inference_steps", + "semanticName": "num_inference_steps", + "direction": "input", + "roles": ["value"], + "types": ["int"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "num_images_per_prompt", + "semanticName": "num_images_per_prompt", + "direction": "input", + "roles": ["value"], + "types": ["int"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "image_cond_latents", + "semanticName": "image_cond_latents", + "direction": "input", + "roles": ["value"], + "types": ["latents"], + "required": false, + "hidden": false, + "semantics": { + "kind": "latents", + "scope": "Flux3ModularPipeline", + "state": null, + "owner": "same_loader", + "members": [] + } + }, + { + "name": "unet", + "semanticName": "unet", + "direction": "input", + "roles": ["component"], + "types": ["diffusers_auto_model"], + "required": true, + "hidden": false, + "semantics": { + "kind": "component", + "scope": "Flux3ModularPipeline", + "state": null, + "owner": "same_loader", + "members": [ + { + "name": "transformer", + "type": "diffusers.models.transformers.transformer_flux3.Flux3Transformer2DModel" + } + ] + } + }, + { + "name": "scheduler", + "semanticName": "scheduler", + "direction": "input", + "roles": ["component"], + "types": ["diffusers_auto_model"], + "required": true, + "hidden": false, + "semantics": { + "kind": "component", + "scope": "Flux3ModularPipeline", + "state": null, + "owner": "same_loader", + "members": [ + { + "name": "scheduler", + "type": "diffusers.schedulers.scheduling_flow_match_euler_discrete.FlowMatchEulerDiscreteScheduler" + } + ] + } + }, + { + "name": "guider", + "semanticName": "guider", + "direction": "input", + "roles": ["component"], + "types": ["custom_guider"], + "required": false, + "hidden": false, + "semantics": { + "kind": "component", + "scope": "Flux3ModularPipeline", + "state": null, + "owner": "same_loader", + "members": [ + { + "name": "guider", + "type": "diffusers.guiders.classifier_free_guidance.ClassifierFreeGuidance" + } + ] + } + }, + { + "name": "latents", + "semanticName": "latents", + "direction": "output", + "roles": ["value"], + "types": ["latents"], + "required": false, + "hidden": false, + "semantics": { + "kind": "latents", + "scope": "Flux3ModularPipeline", + "state": null, + "owner": "same_loader", + "members": [] + } + }, + { + "name": "doc", + "semanticName": "doc", + "direction": "output", + "roles": ["value"], + "types": ["string"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "reference_binding", + "semanticName": "reference_binding", + "direction": "input", + "roles": ["value"], + "types": ["reference_conditioning"], + "required": false, + "hidden": false, + "semantics": { + "kind": "opaque", + "scope": "Flux3ModularPipeline", + "state": null, + "owner": "none", + "members": [] + } + } + ], + "workflowId": "text2image", + "binding": { + "values": {}, + "pipelineClass": "Flux3ModularPipeline" + } + }, + "node": { + "module": "modules.ModularDiffusers", + "action": "Denoise", + "type": "custom", + "label": "Denoise", + "category": "sampler", + "description": "", + "resizable": true, + "skipParamsCheck": true, + "style": {}, + "params": { + "unet": { + "label": "Denoise Model *", + "display": "input", + "type": "diffusers_auto_model", + "required": true, + "onSignal": [ + "update_node", + { + "action": "signal", + "target": "guider" + }, + { + "action": "signal", + "target": "controlnet_bundle" + } + ], + "signalCompatibility": { + "role": "denoiser" + } + }, + "embeddings": { + "label": "Text Embeddings *", + "type": "embeddings", + "display": "input" + }, + "width": { + "label": "Width", + "type": "int", + "default": 1024, + "min": 64, + "step": 16, + "value": 1024 + }, + "height": { + "label": "Height", + "type": "int", + "default": 1024, + "min": 64, + "step": 16, + "value": 1024 + }, + "seed": { + "label": "Seed", + "type": "int", + "display": "random", + "default": 0, + "min": 0, + "max": 4294967295 + }, + "num_inference_steps": { + "label": "Steps", + "type": "int", + "display": "slider", + "default": 50, + "min": 1, + "max": 100, + "value": 50 + }, + "num_images_per_prompt": { + "label": "Images Per Prompt", + "type": "int", + "default": 1, + "min": 1, + "max": 8, + "step": 1 + }, + "image_cond_latents": { + "label": "Reference Latents", + "type": "latents", + "display": "input" + }, + "scheduler": { + "label": "Scheduler *", + "type": "diffusers_auto_model", + "display": "input", + "signalCompatibility": { + "role": "scheduler" + } + }, + "guider": { + "label": "Guider", + "type": "custom_guider", + "display": "input" + }, + "latents": { + "label": "Latents", + "type": "latents", + "display": "output" + }, + "doc": { + "label": "Doc", + "type": "string", + "display": "output" + }, + "reference_binding": { + "label": "Reference Binding", + "type": "reference_conditioning", + "display": "input", + "fieldOptions": { + "referenceBinding": { + "schemaVersion": 1, + "maxReferences": 10 + } + }, + "default": null + } + }, + "time": [0, 0, 0], + "memory": [0, 0, 0], + "cache": false + } + }, + { + "operation": { + "pipelineClass": "Flux3ModularPipeline", + "task": "text_to_image", + "operationId": "diffusion.decode_latents", + "nodeKey": "modules.ModularDiffusers.DecodeLatents", + "nodeType": "decoder", + "blockName": "decode", + "decomposition": "block", + "support": "declared", + "ports": [ + { + "name": "latents", + "semanticName": "latents", + "direction": "input", + "roles": ["value"], + "types": ["latents"], + "required": true, + "hidden": false, + "semantics": { + "kind": "latents", + "scope": "Flux3ModularPipeline", + "state": null, + "owner": "same_loader", + "members": [] + } + }, + { + "name": "vae", + "semanticName": "vae", + "direction": "input", + "roles": ["component"], + "types": ["diffusers_auto_model"], + "required": true, + "hidden": false, + "semantics": { + "kind": "component", + "scope": "Flux3ModularPipeline", + "state": null, + "owner": "same_loader", + "members": [ + { + "name": "vae", + "type": "diffusers.models.autoencoders.autoencoder_kl_flux2.AutoencoderKLFlux2" + } + ] + } + }, + { + "name": "images", + "semanticName": "images", + "direction": "output", + "roles": ["value"], + "types": ["image"], + "required": false, + "hidden": false, + "semantics": { + "kind": "media", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "doc", + "semanticName": "doc", + "direction": "output", + "roles": ["value"], + "types": ["string"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + } + ], + "workflowId": "text2image", + "binding": { + "values": {}, + "pipelineClass": "Flux3ModularPipeline" + } + }, + "node": { + "module": "modules.ModularDiffusers", + "action": "DecodeLatents", + "type": "custom", + "label": "Decode Latents", + "category": "sampler", + "description": "", + "resizable": true, + "skipParamsCheck": true, + "style": {}, + "params": { + "vae": { + "label": "VAE *", + "display": "input", + "type": "diffusers_auto_model", + "onSignal": "update_node", + "signalCompatibility": { + "role": "vae" + } + }, + "latents": { + "label": "Latents *", + "type": "latents", + "display": "input" + }, + "images": { + "label": "Images", + "type": "image", + "display": "output" + }, + "doc": { + "label": "Doc", + "type": "string", + "display": "output" + } + }, + "time": [0, 0, 0], + "memory": [0, 0, 0], + "cache": false + } + } + ], + "edges": [ + { + "source": "diffusion.load_models", + "sourceHandle": "text_encoders", + "target": "diffusion.encode_prompt", + "targetHandle": "text_encoders" + }, + { + "source": "diffusion.load_models", + "sourceHandle": "scheduler", + "target": "diffusion.denoise", + "targetHandle": "scheduler" + }, + { + "source": "diffusion.load_models", + "sourceHandle": "unet_out", + "target": "diffusion.denoise", + "targetHandle": "unet" + }, + { + "source": "diffusion.load_models", + "sourceHandle": "vae_out", + "target": "diffusion.decode_latents", + "targetHandle": "vae" + }, + { + "source": "diffusion.encode_prompt", + "sourceHandle": "embeddings", + "target": "diffusion.denoise", + "targetHandle": "embeddings" + }, + { + "source": "diffusion.denoise", + "sourceHandle": "latents", + "target": "diffusion.decode_latents", + "targetHandle": "latents" + }, + { + "source": "diffusion.guidance", + "sourceHandle": "guider_out", + "target": "diffusion.denoise", + "targetHandle": "guider" + } + ], + "requiredInputs": [ + { + "operationId": "diffusion.encode_prompt", + "field": "prompt" + } + ], + "sharedInputs": [], + "upstreamBlocks": ["text_encoder", "denoise", "decode"], + "authoring": { + "schemaVersion": 1, + "canonicalizationVersion": 1, + "id": "flux3-klein-base:text-to-image:prompt-preview-fp32-authoring:v3", + "baseSpecId": "flux3-klein-base:modular:text-to-image:v1", + "baseSpecContentHash": "studio-spec-v1-b86b1275", + "executionProfileIds": ["flux3-klein-base:modular"], + "roles": [ + ["models", "modules.ModularDiffusers.ModelsLoader", -720, -80], + ["prompt", "modules.ModularDiffusers.EncodePrompt", -360, -240], + ["denoise", "modules.ModularDiffusers.Denoise", 80, -80], + ["decode", "modules.ModularDiffusers.DecodeLatents", 440, -80], + ["preview", "modules.Image.Preview", 800, -80], + ["guider", "modules.ModularDiffusers.Guider", -360, 160] + ], + "edges": [ + ["models", "text_encoders", "prompt", "text_encoders"], + ["models", "unet_out", "denoise", "unet"], + ["models", "scheduler", "denoise", "scheduler"], + ["models", "vae_out", "decode", "vae"], + ["prompt", "embeddings", "denoise", "embeddings"], + ["denoise", "latents", "decode", "latents"], + ["decode", "images", "preview", "image"], + ["guider", "guider_out", "denoise", "guider"] + ], + "bindings": [ + ["models", "model_type", "pipelineClass"], + ["models", "repo_id", "artifact"], + ["models", "revision", "defaultRevision"], + ["models", "dtype", "dtype"], + ["models", "device", "device"], + ["models", "auto_offload", "autoOffload"], + ["models", "offload_mode", "offloadMode"], + ["models", "trust_remote_code", "false"], + ["prompt", "prompt", "prompt"], + ["prompt", "negative_prompt", "negativePrompt"], + ["denoise", "width", "width"], + ["denoise", "height", "height"], + ["denoise", "seed", "seed"], + ["denoise", "num_inference_steps", "steps"], + ["prompt", "max_sequence_length", "maxSequenceLength"], + ["models", "weight_format", "weightFormat"], + ["guider", "guider", "classifierFreeGuidance"], + ["guider", "model_type", "pipelineClass"], + ["guider", "guidance_scale", "guidanceScale"] + ], + "initialValues": [], + "ancillaryOperations": [ + { + "schemaVersion": 1, + "id": "flux3-klein-base:text-to-image:prompt-preview-fp32-authoring:v3:preview", + "parent": { + "authoringRecipeId": "flux3-klein-base:text-to-image:prompt-preview-fp32-authoring:v3", + "baseSpecId": "flux3-klein-base:modular:text-to-image:v1", + "baseSpecContentHash": "studio-spec-v1-b86b1275", + "executionProfileId": "flux3-klein-base:modular", + "pipelineClass": "Flux3ModularPipeline", + "task": "text_to_image" + }, + "executionPurpose": "explicit_preview", + "roles": [ + ["provider", "modules.HuggingFaceTransformers.LoadImageTextToTextModel", -720, -400], + ["proposal", "modules.HuggingFaceTransformers.GenerateImageVideoText", -360, -400] + ], + "edges": [["provider", "model", "proposal", "model"]], + "bindings": { + "owner": { + "role": "prompt", + "promptField": "prompt", + "layoutField": "layout_conditioning", + "referenceSource": null + }, + "request": { + "role": "proposal", + "promptField": "prompt", + "layoutField": "layout_conditioning", + "imagesField": "images" + }, + "output": { + "role": "proposal", + "field": "proposal_summary" + } + }, + "initialValues": [ + [ + "provider", + "model_id", + { + "source": "hub", + "value": "black-forest-labs/flux-3-image-klein-pup" + } + ], + ["provider", "revision", "3f3edb52b2c55de0d49feab28598b68f7f8e4830"], + ["proposal", "operation", "enhance_prompt_append_details"], + ["provider", "dtype", "float32"], + ["provider", "device", "cuda:0"], + ["provider", "quantization_mode", "none"], + ["proposal", "max_input_tokens", 4096] + ], + "fieldOverrides": [ + [ + "proposal", + "enhancement_max_new_tokens", + { + "hidden": false + } + ], + [ + "proposal", + "max_new_tokens", + { + "hidden": true + } + ] + ], + "adapter": { + "id": "transformers-prompt-enhancement-v1", + "declarationSha256": "sha256:2a3d4685988b418115008bbb95fb3e948097580c0bedd2940ea3fe1e40254dc2" + }, + "verification": { + "schemaVersion": 1, + "adapter": { + "id": "transformers-prompt-enhancement-v1", + "declarationSha256": "sha256:2a3d4685988b418115008bbb95fb3e948097580c0bedd2940ea3fe1e40254dc2" + }, + "runtimeInputs": { + "role": "provider", + "modelField": "model_id", + "revisionField": "revision", + "dtypeField": "dtype", + "deviceField": "device", + "quantizationField": "quantization_mode" + }, + "requestInputs": { + "role": "proposal", + "operationField": "operation", + "maxNewTokensField": "enhancement_max_new_tokens", + "minNewTokensField": "min_new_tokens", + "maxInputTokensField": "max_input_tokens", + "maxImagePixelsField": "max_image_pixels" + }, + "supportedPromptModes": ["t2i", "i2i"], + "systemPromptsSha256": "sha256:b5da3ed8bc04ab59dbdb747930f7dbff847e868903fed8028f85ee1a4ac82fb4", + "systemPromptSha256ByMode": { + "t2i": "8b235a421bce2213d11ada01f5a1244443dd72303ffbb4cc9e5a0d8b0de5ab6f", + "i2i": "95cec384d5b6d341caa9fb3f2c7ca45ee80c2364b3a95d4044aebf976f6dd3bf", + "t2i_bbox": "5f513d8ce5838732919f9e645507aa20ff373e88bf93132c768e063c9db3151f", + "i2i_bbox": "9ad10f947e401337cf155cac0518cc428159ef16f2f029f48aae2aaab8380a5e" + }, + "chatTemplateSha256": "sha256:a4aee8afcf2e0711942cf848899be66016f8d14a889ff9ede07bca099c28f715", + "modelReceipt": { + "schemaVersion": 1, + "library": "transformers", + "task": "image-video-to-text", + "source": { + "kind": "hub", + "repository": "black-forest-labs/flux-3-image-klein-pup", + "revision": "3f3edb52b2c55de0d49feab28598b68f7f8e4830" + }, + "loader": { + "preprocessorAutoClass": "AutoProcessor", + "modelAutoClass": "AutoModelForImageTextToText" + }, + "security": { + "localFilesOnly": true, + "trustRemoteCode": false, + "safetensorsOnly": true, + "hostedInference": false + }, + "runtime": { + "transformersVersion": "5.18.0", + "preprocessorClass": "Qwen3VLProcessor", + "modelClass": "Qwen3_5ForConditionalGeneration", + "modelType": "qwen3_5", + "architectures": ["Qwen3_5ForConditionalGeneration"] + } + }, + "quantizationRecipes": [ + { + "mode": "none" + }, + { + "mode": "bnb_4bit", + "quantType": "nf4", + "doubleQuant": true, + "computeDtype": "bfloat16", + "skipModules": ["lm_head", "model.visual"] + } + ], + "layoutRequestSuffixSha256": "sha256:5c48f090514be3472650c23ccd5f6cc19077bf68cd163338aaf6903f720a7561" + }, + "sourceRegions": false, + "layoutPolicy": "append-details-preserve-layout-v1", + "contentHash": "studio-ancillary-v1-cce5b05b" + } + ], + "contentHash": "studio-authoring-v1-df18f7a1" + } + }, + "retainedCanonicalPipelineSupportSHA256": "dc6ad04fd3e10f88dad4a45fe41471383ad230bd080c69e973bdf5bfa95a6fe4", + "pipelineSupport": [ + { + "coverage": "research-blocked", + "equivalentTo": [], + "pipelineClass": "Flux3DistilledModularPipeline", + "reason": "Only unpublished source-level execution specifications select this class; installed-runtime admission remains pending.", + "upstreamTasks": [ + { + "source": "modular", + "task": "text_to_image", + "workflowId": "text2image" + }, + { + "source": "modular", + "task": "edit_image", + "workflowId": "image_conditioned" + } + ], + "tasks": [ + { + "task": "edit_image", + "execution": "declared", + "decomposition": "stages", + "operationIds": [ + "diffusion.decode_latents", + "diffusion.denoise", + "diffusion.encode_image", + "diffusion.encode_prompt", + "diffusion.load_models" + ], + "executionProfileIds": [], + "dependencies": "unknown", + "runtimeRequirements": [] + }, + { + "task": "text_to_image", + "execution": "declared", + "decomposition": "stages", + "operationIds": [ + "diffusion.decode_latents", + "diffusion.denoise", + "diffusion.encode_prompt", + "diffusion.load_models" + ], + "executionProfileIds": [], + "dependencies": "unknown", + "runtimeRequirements": [] + } + ] + }, + { + "coverage": "research-blocked", + "equivalentTo": [], + "pipelineClass": "Flux3ModularPipeline", + "reason": "Only unpublished source-level execution specifications select this class; installed-runtime admission remains pending.", + "upstreamTasks": [ + { + "source": "modular", + "task": "text_to_image", + "workflowId": "text2image" + }, + { + "source": "modular", + "task": "edit_image", + "workflowId": "image_conditioned" + } + ], + "tasks": [ + { + "task": "edit_image", + "execution": "declared", + "decomposition": "stages", + "operationIds": [ + "diffusion.decode_latents", + "diffusion.denoise", + "diffusion.encode_image", + "diffusion.encode_prompt", + "diffusion.guidance", + "diffusion.load_models" + ], + "executionProfileIds": [], + "dependencies": "unknown", + "runtimeRequirements": [] + }, + { + "task": "text_to_image", + "execution": "declared", + "decomposition": "stages", + "operationIds": [ + "diffusion.decode_latents", + "diffusion.denoise", + "diffusion.encode_prompt", + "diffusion.guidance", + "diffusion.load_models" + ], + "executionProfileIds": [], + "dependencies": "unknown", + "runtimeRequirements": [] + } + ] + } + ] +} From 9b8fe1ed0ec320c361e35053e834f8e021c296df Mon Sep 17 00:00:00 2001 From: Sourav Das Date: Mon, 26 Oct 2026 01:19:29 +0530 Subject: [PATCH 061/440] Expose public FLUX 3 authoring and exact weight-format controls --- .github/workflows/ci.yml | 2 +- config/template-asset-rights.v1.json | 14 +- docs/image-template-workflows.md | 12 + docs/modiff-client-architecture.md | 97 +- docs/template-gallery-assets.md | 29 + package.json | 2 +- scripts/ancillary-operations.test.mjs | 97 + scripts/bundle-budget.mjs | 36 +- .../flux3-public-template-planning.test.mjs | 454 + scripts/graph-visuals.test.mjs | 4 +- scripts/operation-authoring.test.mjs | 415 +- scripts/prompt-enhancement-authoring.test.mjs | 80 + scripts/prompt-enhancement-preview.test.mjs | 315 +- scripts/prompt-enhancement-summary.test.mjs | 130 +- scripts/registered-block-v2-adapter.test.mjs | 62 + scripts/task-template-contracts.test.mjs | 101 + scripts/template-gallery-assets.py | 8 +- scripts/template-gallery-assets.test.py | 109 + scripts/template-gallery-runner.mjs | 14 +- scripts/template-gallery-runner.test.mjs | 14 + scripts/template-qualification.mjs | 7 +- scripts/template-qualification.test.mjs | 166 +- .../weight-format-template-binding.test.mjs | 988 + src/components/LeftLibraryPanels.tsx | 59 +- src/components/ModelManagerDialog.tsx | 45 +- src/components/ModelSetupPanel.tsx | 34 +- src/components/PromptEnhancementControls.tsx | 84 +- src/fields/NumberField.tsx | 2 +- src/stores/useNodeStore.ts | 26 +- src/stores/useStudioStore.ts | 2 + src/studio/ancillaryOperations.ts | 37 +- src/studio/artifactRequirements.ts | 131 +- src/studio/autoResource.ts | 42 +- src/studio/executionSpecValues.ts | 6 +- src/studio/executionSpecs.ts | 18 +- src/studio/graphBridge.ts | 48 +- src/studio/huggingFaceClusterInstance.ts | 5 +- src/studio/managedControlPolicy.ts | 1 + src/studio/managedControlSync.ts | 49 +- src/studio/modelCache.ts | 16 +- src/studio/modelProfiles.ts | 51 + src/studio/optionalRuntimes.ts | 13 + src/studio/outputContracts.ts | 10 +- src/studio/promptEnhancementAuthoring.ts | 57 +- src/studio/promptEnhancementConstraints.ts | 249 + src/studio/promptEnhancementPreview.ts | 124 +- src/studio/promptEnhancementSummary.ts | 108 +- src/studio/registeredBlockAdapterV2.ts | 59 +- src/studio/registeredBlockV2FanOutRoutes.ts | 36 +- src/studio/runReadiness.ts | 127 +- src/studio/templateExactness.ts | 33 +- src/studio/templateOperationSelections.ts | 138 + src/studio/templateOperationWorkflow.ts | 28 + src/studio/templates.ts | 938 + src/studio/types.ts | 31 +- src/studio/useStudioReadiness.ts | 61 +- src/studio/useStudioRunActions.ts | 36 +- src/studio/weightFormat.ts | 174 + src/workflow/authoringRecipeOffers.ts | 108 + src/workflow/evaluationAuthoring.ts | 34 +- src/workflow/workflowChoices.ts | 74 +- tests/e2e/studio-mocked/studio-mocked.spec.ts | 806 +- .../authored-layout-constraint.v1.json | 69 + ...on-prompt-enhancement-alternatives.v1.json | 29188 ++++++++++++ ...public-flux3-migration-comparisons.v1.json | 9994 ++++ .../public-flux3-missing-provider.v1.json | 32724 +++++++++++++ .../public-flux3-template-creators.v1.json | 37963 ++++++++++++++++ 67 files changed, 116762 insertions(+), 232 deletions(-) create mode 100644 scripts/flux3-public-template-planning.test.mjs create mode 100644 scripts/weight-format-template-binding.test.mjs create mode 100644 src/studio/promptEnhancementConstraints.ts create mode 100644 src/studio/weightFormat.ts create mode 100644 src/workflow/authoringRecipeOffers.ts create mode 100644 tests/fixtures/authored-layout-constraint.v1.json create mode 100644 tests/fixtures/evaluation-prompt-enhancement-alternatives.v1.json create mode 100644 tests/fixtures/public-flux3-migration-comparisons.v1.json create mode 100644 tests/fixtures/public-flux3-missing-provider.v1.json create mode 100644 tests/fixtures/public-flux3-template-creators.v1.json diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index b6ecbf57..8064c7b9 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -33,7 +33,7 @@ jobs: with: repository: sdevil7th/MoDiff # Paired image stages, scoped enhancement and FLUX3 evaluation contracts. - ref: 0e70ce43dc1b1184fef4ae7a6b197ab24f7cb7df + ref: 9ac9879529b0039b011dc283ac190fa02dd9efa5 path: MoDiff persist-credentials: false - name: Verify the pinned backend supports native setup diff --git a/config/template-asset-rights.v1.json b/config/template-asset-rights.v1.json index 7f6fa09c..efc058c2 100644 --- a/config/template-asset-rights.v1.json +++ b/config/template-asset-rights.v1.json @@ -1203,7 +1203,13 @@ "reviewedAt": "2026-08-03", "reviewClass": "standard-human-attestation", "provenanceTemplateId": "flux2_klein_edit", - "consumingTemplateIds": ["flux2_klein_edit"] + "consumingTemplateIds": [ + "flux2_klein_edit", + "flux3_klein_base_fp8r512_multi_reference_edit", + "flux3_klein_base_fp8r512_single_reference_edit", + "flux3_klein_fp8r512_multi_reference_edit", + "flux3_klein_fp8r512_single_reference_edit" + ] }, { "path": "template-gallery/inputs/flux2_klein_multi_reference.before.webp", @@ -1613,7 +1619,11 @@ "reviewedAt": "2026-08-03", "reviewClass": "standard-human-attestation", "provenanceTemplateId": "qwen_control_image_layout", - "consumingTemplateIds": ["qwen_control_image_layout"] + "consumingTemplateIds": [ + "flux3_klein_base_fp8r512_multi_reference_edit", + "flux3_klein_fp8r512_multi_reference_edit", + "qwen_control_image_layout" + ] }, { "path": "template-gallery/inputs/qwen_edit_plus_single_image.before.webp", diff --git a/docs/image-template-workflows.md b/docs/image-template-workflows.md index b4694fc7..4b93e815 100644 --- a/docs/image-template-workflows.md +++ b/docs/image-template-workflows.md @@ -151,6 +151,18 @@ parity. Use the backend's [image template validation guide](https://github.com/s for matched old/new runs, runtime and input identity checks, decoded-image comparison and the Windows validation procedure. +## Qualification-only blocked-template probes + +A complete recipe may remain a blocked planning template while its exact output +and visual quality are unqualified. The Gallery runner's explicit +`--allow-blocked-probe --record-qualification` combination may retain a successful +locked run as an execution receipt. Direct `release:template:qualify` accepts +`--allow-blocked-probe` for the same lookup scope. A current canonical workflow, +unchanged recipe locks, immutable model, valid output and resource measurements +remain required. This does not clear the template's blocked status or authorize +Gallery publication, model/Auto eligibility, or reuse of failed evidence. Normal +media provenance, quality review and per-file rights gates still apply. + ## Contributor checks The current builder is shared by interactive template creation and the developer diff --git a/docs/modiff-client-architecture.md b/docs/modiff-client-architecture.md index c1b2cd3d..925e1c41 100644 --- a/docs/modiff-client-architecture.md +++ b/docs/modiff-client-architecture.md @@ -151,8 +151,13 @@ canvas startup. Expert's Stages panel also resolves connected starters from `POST /operations/starter`. An explicitly validated evaluation runtime can publish a separate, bounded `evaluationAuthoring` namespace for Custom memory authoring. Its private profiles -join the same generic model picker and starter path; they never enter the legacy -Studio model union or grant Automatic, template, Gallery or live qualification. +join the same generic model picker and starter path. A reviewed identity can have +internal presentation typing for future templates without becoming a runnable +Studio capability. Explicit contract-only and display-only records must retain +false Automatic/template/Gallery/live flags and no published execution profiles, +runnable modes or qualified modes. The separate private authoring namespace +remains authoritative; presentation typing does not change its starter or grant +qualification. The parser rejects any collision with an existing public pipeline profile, and selection and Apply both require Custom memory. Ordinary runtime discovery omits the namespace and retains the existing choices. @@ -168,6 +173,19 @@ does not expand the public model union or grant Auto support. Optional per-task `authoringRecipes` select a current declared starter; its enhancement offer is attached after ordinary media/output completion without enabling a provider. +An optional per-task `rawAuthoringRecipeId` declares a distinct raw-prompt +alternative. Explicit Enable selects that exact alternative for a null layout, +or the original declaration for authored regions. Both fresh responses must +declare identical parent operations, bindings, values and edges. Selection and +Enable commit together; existing bindings and explicit structured recipes are +not migrated. Missing, malformed or changed metadata refuses without mutation. +Optional `rawAuthoringRecipeChoices` adds at most four unique, labelled raw +alternatives, including the declared default. The pre-Enable selector changes +only a local choice. Enable revalidates the exact selected recipe; an explicit +raw choice refuses a structured layout instead of selecting a different provider. +The existing parent identity retains that choice through Disable and reload. +These choices grant no runtime installation, resource fit or model qualification. + Static registered fields render versioned option availability from the current node registry, including after a cross-platform import or registry refresh. This projection preserves saved values, labels, membership and graph/recipe hashes; @@ -932,6 +950,12 @@ entries in a disposable temporary directory and is required by the main validation gates. The hidden dynamic-field compiler is retained only for explicit, receipt-bound legacy V1 migration. +Sealed admission-declared signal identities retain only their exact options-map +branch in compiled definitions; unrelated installed pipeline choices cannot change +the immutable selected contract. Ordinary node descriptors and mutable selectors +retain their full maps, and a missing selected branch or mismatched signal refuses +compilation. + Values stored in a reviewed compiled catalog entry establish the initial `BlockInstanceV2` baseline and MUST start with customization state `unchanged`; they are not user edits merely because the compiler emits them @@ -1439,6 +1463,12 @@ being filled from the current filesystem or a later backend response. Fields must preserve `data-key`, `modiff-field`, `nodrag`, `nowheel`, hidden, disabled, and backend-action contracts. Backend-provided styles are sanitized to safe layout properties by `src/theme/modiffStyle.ts`; visual styling from dynamic payloads is not trusted. +Ordinary numeric controls keep incomplete typing in a local text draft. Blur, +Enter, step buttons and completed drags commit the bounded finite value as a JSON +number, including zero and precise floats. Arrow keys adjust the draft until +commit; Escape restores the prior value. Historical imported numeric strings +remain readable; merely opening a field does not rewrite the saved document. + The backend isolates reviewed nonqueued generic Modular loader/schema callbacks from live model owners. Their existing `/fields/action` and WebSocket messages are unchanged; no client model-family dispatch or extra execution path is needed. @@ -1791,3 +1821,66 @@ native layout generation or semantic-fidelity proof. Apply stays one ordinary history transaction; Regenerate recaptures the original request after an untouched Apply, so appended text does not accumulate. Existing plain and native structured proposal schemas remain strict and retain their own declarations. + +A source-declared `required_diffusers_provider` binds an execution profile to +one of its declared optional overlays and to an explicit required-now runtime +requirement. Its specification repeats the exact identity as the hash-covered +`requiredDiffusersProvider`. Both legacy specification key sets remain valid +without that extension; omission, a different provider, base delivery or a stale +hash refuses a new provider-bound specification. This declarative dependency +does not hide model choices or grant installation, activation, fit or Auto +qualification. Observed runtime readiness remains a separate backend decision. + +An explicit public execution profile may declare bounded per-task +`authoringRecipes`, including a distinct raw default and labelled raw choices. +Public descriptors and the private evaluation namespace share the same strict +offer parser: every row must belong to its exact profile, pipeline and supported +task, with unique choices and the declared default included. Known Studio model +identities retain those offers through the ordinary workflow picker rather than +discarding them at the legacy presentation boundary. The existing prompt editing +controls consume the same descriptor maps for both sources; public offers do not +receive `evaluationOnly` or inherit private authority. Payloads without explicit +offers preserve their earlier behavior, and public/private collisions still +refuse. This editing metadata grants neither model fit nor execution readiness. + +The optional `layoutAuthoringRecipeChoices` offer adds explicit modes for authored +regions. It includes the normal append default and is disjoint from raw choices. +The descriptor carries these as `layoutPromptAuthoringChoices`; Enable selects +only an exact currently declared identity. A saved explicit mode survives Disable +and reload, while null layout, conflicting raw/layout selections and withdrawn +metadata refuse without editing the graph. Selecting a mode and enabling its +nodes remain one Undo transaction. No model name selects this policy. + +The `constrained-authored-table-v1` mode uses a separate hash-covered +`authoredLayoutConstraint` and the generic `enhance_prompt_constrained_authored_v1` +operation. The client validates the closed source/tokenizer/limit contract and +matches it to the consumed request, exact original row projection, token input +fingerprint and sealed completion. A complete EOS may end at the token limit only +for this explicit mode. Existing plain/append completion rules and key sets stay +unchanged. The raw output hash is part of the existing sealed producer record; +it is not reconstructed from parsed JSON, whose escapes may differ. Apply still +requires the current producer, atomic authored-pair checks and human wording +review. Fixed coordinates, a valid table and `contract_only` metadata establish +neither generated geometry nor semantic quality, Auto or hardware qualification. + +### Template weight storage format + +Optional form and locked-template `weightFormat` selects immutable storage, +independently of compute dtype and diffusion quantization. Missing or native +values preserve historical native recipe hashes. A present unsupported or null +saved/imported value becomes a blocked `null` sentinel: the workflow and its +authored graph remain recoverable, hashes distinguish it from Native, and an +explicit supported selection is required before planning, installation or Run. +Execution and field-edit parsing stays strict. Explicit non-native values +participate in recipe locks, Modified detection, persistence and resource-plan +identity. Managed controls synchronize only inside their existing binding; +ordinary graphs remain authoritative over their own node values. + +A non-native selection needs the current backend's exact profile, pipeline, Hub +repository, immutable revision and format-specific file manifest. Model Manager +uses that manifest, so a native-only installation cannot satisfy the selected +format. This metadata grants no runtime, Auto, model or Gallery qualification +and does not install packages or files during discovery. Non-native selections +require Expert because the backend Auto resource contract has no format field; +native-only plans cannot be reused as format-specific readiness or hardware-fit +evidence. diff --git a/docs/template-gallery-assets.md b/docs/template-gallery-assets.md index 198ee34e..90a26813 100644 --- a/docs/template-gallery-assets.md +++ b/docs/template-gallery-assets.md @@ -451,6 +451,35 @@ Never mutate a released source configuration to `main`, a tag, or a pull-request ref. Rollback means restoring the previous checked-in commit SHA and asset-set identity. +## Reviewed approved-subset source updates + +`upload-provisional` remains non-activating. When a release deliberately retains +held previews, maintainers may review an immutable source-descriptor update, +as the existing approved-subset runtime contract supports. This is separate +from the complete-set `activate` command. + +After human rights approval of every newly included byte and the uploader's +anonymous verification, review the exact returned Dataset revision and subset +manifest against the complete local manifest and rights ledger. Update only +`repoId`, the immutable `revision`, and the corresponding source identities in +`src/studio/templateAssetSource.json`: `assetSetId` is the verified subset; +`completeAssetSetId` is the complete checked authoring manifest; and the sorted +`unavailableAssets` list must exactly match the verified remote `missingAssets`. +Preserve the existing path roots and Dataset type. Never infer these values +from directory contents or clear a hold to make the sets match. + +Run `verify-remote --full` against that reviewed descriptor before its commit. +It validates the exact complete manifest or approved-subset projection and +rights ledger, then anonymously verifies every included byte and rejects +unexpected managed files. Run the ordinary asset storage/release checks and +Setup's Gallery materialization check for the same pinned source. Rollback is +the previous descriptor and identities. Keep held assets excluded; do not use +complete-set `activate` or `prune-local` for a subset. + +This source update does not approve media rights, template quality, model +execution, Auto, or Gallery eligibility. New inputs and previews still require +the normal per-file human rights and template evidence reviews. + ## Live generation batching The maintainer-only Gallery runner may reuse a loaded pipeline only for consecutive templates with the same normalized Studio `modelType`. The first template, every model boundary, and every failed template resets the reuse chain and invokes accelerator cleanup. Template inputs come from an explicit checked-in input map; the runner never acquires or repairs a model during execution. Use `npm run gallery:run -- --help` for the current options rather than retaining dated host-specific command batches in documentation. diff --git a/package.json b/package.json index 8ec75aa6..963ce89e 100644 --- a/package.json +++ b/package.json @@ -80,7 +80,7 @@ "test:graph-export": "node --test scripts/flow-graph-export.test.mjs", "test:hugging-face-cluster-drag": "node --test scripts/hugging-face-cluster-drag.test.mjs", "test:hugging-face-node-library": "node --test scripts/hugging-face-node-library.test.mjs", - "test:templates": "node --test scripts/modiff-template.test.mjs scripts/template-operation-workflows.test.mjs scripts/image-full-native-template-candidates.test.mjs scripts/image-model-usage-policies.test.mjs scripts/workflow-library-dependency-contracts.test.mjs scripts/workflow-library-canonical-export.test.mjs scripts/workflow-library-image-stages.test.mjs", + "test:templates": "node --test scripts/modiff-template.test.mjs scripts/template-operation-workflows.test.mjs scripts/image-full-native-template-candidates.test.mjs scripts/image-model-usage-policies.test.mjs scripts/workflow-library-dependency-contracts.test.mjs scripts/workflow-library-canonical-export.test.mjs scripts/workflow-library-image-stages.test.mjs scripts/weight-format-template-binding.test.mjs scripts/flux3-public-template-planning.test.mjs", "test:task-templates": "node --test scripts/task-template-contracts.test.mjs", "test:template-assets:local": "node --test scripts/template-default-inputs.test.mjs", "test:template-quality": "node --test scripts/template-quality.test.mjs", diff --git a/scripts/ancillary-operations.test.mjs b/scripts/ancillary-operations.test.mjs index bcb2e04a..a69c466f 100644 --- a/scripts/ancillary-operations.test.mjs +++ b/scripts/ancillary-operations.test.mjs @@ -29,6 +29,9 @@ after(async () => { rmSync(cache, { recursive: true, force: true }); }); const raw = (index = 0) => JSON.parse(fixture.parents[index].rawParentJson); +const authoredConstraint = JSON.parse( + readFileSync('tests/fixtures/authored-layout-constraint.v1.json', 'utf8'), +).contract; function rehash(parent) { for (const child of parent.ancillaryOperations ?? []) { delete child.contentHash; @@ -49,6 +52,100 @@ function binding() { roleNodes: Object.fromEntries(child.roles.map(([role]) => [role, `aux:${role}`])), }; } +test('a constrained ancillary requires its hash-covered source contract and exact native operation', () => { + const captured = JSON.parse( + readFileSync('tests/fixtures/evaluation-prompt-enhancement-alternatives.v1.json', 'utf8'), + ); + const starter = captured.starters.find( + (row) => row.task === 'text_to_image' && row.authoring.ancillaryOperations[0].layoutPolicy, + ); + const parent = structuredClone(starter.authoring); + const child = parent.ancillaryOperations[0]; + child.layoutPolicy = authoredConstraint.layoutPolicy; + child.authoredLayoutConstraint = structuredClone(authoredConstraint); + child.initialValues.find( + ([role, field]) => + role === child.verification.requestInputs.role && field === child.verification.requestInputs.operationField, + )[2] = authoredConstraint.operation; + rehash(parent); + const context = { ...child.parent, parentRoles: parent.roles.map(([role]) => role) }; + assert.deepEqual(api.parseAncillaryOperations(parent.ancillaryOperations, context), parent.ancillaryOperations); + for (const mutate of [ + (item) => { + delete item.authoredLayoutConstraint; + }, + (item) => { + item.layoutPolicy = 'append-details-preserve-layout-v1'; + }, + (item) => { + item.authoredLayoutConstraint.revision = 'a'.repeat(40); + }, + (item) => { + item.authoredLayoutConstraint.transformersVersion = '0.0.0'; + }, + (item) => { + item.initialValues.find( + ([role, field]) => + role === item.verification.requestInputs.role && field === item.verification.requestInputs.operationField, + )[2] = 'enhance_prompt'; + }, + (item) => { + item.authoredLayoutConstraint.extra = true; + }, + ]) { + const changed = structuredClone(parent); + mutate(changed.ancillaryOperations[0]); + rehash(changed); + assert.throws(() => api.parseAncillaryOperations(changed.ancillaryOperations, context)); + } +}); + +test('constraint metadata stays bounded and cannot execute accessors or widen token/deadline scope', async () => { + const { parseAuthoredLayoutConstraint } = await server.ssrLoadModule('/src/studio/promptEnhancementConstraints.ts'); + assert.deepEqual(parseAuthoredLayoutConstraint(authoredConstraint), authoredConstraint); + for (const mutate of [ + (item) => { + item.limits.lookup_seconds = 3; + }, + (item) => { + item.limits.max_new_tokens = 3585; + }, + (item) => { + item.deadlineSeconds = 1801; + }, + (item) => { + item.preparationRamBytes = 268435457; + }, + (item) => { + delete item.sourcePreTokenizerSha256; + }, + (item) => { + item.effectivePreTokenizerSha256 = false; + }, + (item) => { + item.reservedAddedTokenIds[0] = 0; + }, + (item) => { + item.effectiveEosTokenIds[0] = 1; + }, + (item) => { + item.artifacts[0].path = '../tokenizer.json'; + }, + (item) => { + item.artifacts[0].byteSize = true; + }, + (item) => { + Object.defineProperty(item, 'limits', { enumerable: true, get: () => assert.fail('No getter may execute') }); + }, + (item) => { + Object.defineProperty(item.artifacts, '0', { enumerable: true, get: () => assert.fail('No getter may execute') }); + }, + ]) { + const bad = structuredClone(authoredConstraint); + mutate(bad); + assert.throws(() => parseAuthoredLayoutConstraint(bad), /constraint contract/); + } +}); for (const [index, row] of fixture.parents.entries()) { test(`actual captured parent ${index + 1} retains exact optional child/hash`, () => assert.deepEqual(parse(raw(index), row.selection), raw(index))); diff --git a/scripts/bundle-budget.mjs b/scripts/bundle-budget.mjs index e8590ee2..72f61f23 100644 --- a/scripts/bundle-budget.mjs +++ b/scripts/bundle-budget.mjs @@ -1,3 +1,24 @@ +// Explicit artifact-format preservation and ten blocked FP8r planning recipes +// measure largest/startup/deferred gzip 487800/666105/324323, versus the accepted +// 480984/659291/323388 baseline. Add only the measured 6816/6814/935 aggregate +// growth, retaining 15/17/39 bytes of headroom. Dependencies, minifier, loading +// boundaries, validators and the independent 65536-byte chunk limit stay fixed. +// Mandatory source/effective pre-tokenizer identities add the final strict +// consumer checks. The final build measures deferred gzip 323388 versus +// 323285 (+103); retain 39 bytes of aggregate headroom at 323427. Startup +// measures 659291/480984 below its existing caps. No dependency, minifier, +// loading-boundary, validator or individual deferred chunk cap changes. +// Generic public recipe/provider discovery and the strict authored-layout PUP +// consumer measure largest/startup/deferred gzip 480976/659280/323285 bytes, +// versus 479207/657512/321188 at the accepted prior feature checkpoint. +// Add the measured aggregate growth 1769/1768/2097, retaining 23/28/39 bytes +// of headroom. Dependencies, minifier, loading boundaries, validation and the +// independent 65536-byte deferred chunk limit are unchanged. +// Declared raw/layout PUP selection adds bounded alternative parsing, exact-parent +// rebinding and deferred controls. Measured deferred gzip grows 319433 -> 320994 +// (+1561 bytes across the deferred graph). Add only this measured growth +// to the aggregate cap, preserving 39 bytes of headroom at 321033. Startup/chunk +// caps, dependencies, minifier, lazy boundaries and validators remain unchanged. // Normal evaluation discovery/Custom selection, declared PUP/LoRA authoring, // default-seed consumption and current runtime-option presentation measure // largest-startup/startup/deferred gzip bytes 479207/657512/319433 in the @@ -177,6 +198,8 @@ const SOURCE_LICENSES = new URL('../public/THIRD_PARTY_LICENSES.txt', import.met // Retain the strict current-owner/parser checks and allow 128 startup/chunk // bytes only; dependencies, lazy boundaries, minifier and deferred caps stay fixed. const MAX_STARTUP_CHUNK_GZIP_BYTES = + 6816 + + 1769 + 450 * 1024 + 896 + 768 + @@ -286,6 +309,8 @@ const MAX_STARTUP_CHUNK_GZIP_BYTES = // Preserve the separately measured 64-byte shared loading-policy allowance above. // Preserve the measured 384-byte selected-image authoring allowance above. const MAX_STARTUP_GZIP_BYTES = + 6814 + + 1768 + 624 * 1024 + 896 + 768 + @@ -474,7 +499,14 @@ const MAX_DEFERRED_CHUNK_GZIP_BYTES = 64 * 1024; // Keep both aggregate and individual deferred limits unchanged. // The selected-image authoring feature above uses 320 additional aggregate bytes; // the independently bounded 64 KiB deferred chunks and loading checks stay fixed. +// Sealed selector normalization and reviewed catalog pins measure deferred gzip +// 320994 -> 321188 bytes (+194). Add only that measured aggregate cost to the +// 321033-byte cap, preserving 39 bytes of headroom at 321227. Startup caps, the +// 65536-byte deferred chunk cap, dependencies and loading boundaries stay fixed. const MAX_DEFERRED_GZIP_BYTES = + 935 + + 103 + + 2097 + 248 * 1024 + 32 + 2368 + @@ -503,7 +535,9 @@ const MAX_DEFERRED_GZIP_BYTES = 1536 + 353 + 1593 + - 864; + 864 + + 1561 + + 194; const STATIC_MODULE_REFERENCE = /\b(?:import(?=\s|["'{*])(?!\s*\()|export(?=\s|["'{*]))[^;]*?["'](\.\/[^"'?]+\.js)(?:\?v=[0-9a-f]{16})?["']/g; diff --git a/scripts/flux3-public-template-planning.test.mjs b/scripts/flux3-public-template-planning.test.mjs new file mode 100644 index 00000000..4a4bca7a --- /dev/null +++ b/scripts/flux3-public-template-planning.test.mjs @@ -0,0 +1,454 @@ +import assert from 'node:assert/strict'; +import { readFile } from 'node:fs/promises'; +import { after, before, test } from 'node:test'; +import path from 'node:path'; +import { fileURLToPath } from 'node:url'; +import { createServer } from 'vite'; + +const ROOT = path.resolve(path.dirname(fileURLToPath(import.meta.url)), '..'); +const originalGlobals = Object.fromEntries( + ['window', 'localStorage', 'fetch'].map((key) => [key, Object.getOwnPropertyDescriptor(globalThis, key)]), +); +let networkRequests = 0; +const variants = [ + ['flux3_klein_fp8r512', 'flux3-klein', 'Flux3DistilledModularPipeline', 16, 1], + ['flux3_klein_base_fp8r512', 'flux3-klein-base', 'Flux3ModularPipeline', 50, 3.5], +]; +const kinds = ['text_to_image', 'single_reference_edit', 'multi_reference_edit', 'raw_coordinate_prompt', 'lora_style']; +const ids = variants.flatMap(([prefix]) => kinds.map((kind) => `${prefix}_${kind}`)); +let server, templates, inputs, modelSelection, fixture; + +before(async () => { + const storage = new Map(); + globalThis.localStorage = { + getItem: (key) => storage.get(key) ?? null, + setItem: (key, value) => storage.set(key, String(value)), + removeItem: (key) => storage.delete(key), + }; + globalThis.window = { + location: { origin: 'http://127.0.0.1:5191' }, + localStorage: globalThis.localStorage, + dispatchEvent: () => true, + }; + globalThis.fetch = async () => { + networkRequests += 1; + throw new Error('Planning contract units must not contact any backend or network.'); + }; + server = await createServer({ + root: ROOT, + configFile: false, + logLevel: 'silent', + optimizeDeps: { entries: [], noDiscovery: true }, + server: { middlewareMode: true, watch: null }, + appType: 'custom', + }); + templates = await server.ssrLoadModule('/src/studio/templates.ts'); + inputs = await server.ssrLoadModule('/src/studio/templateInputs.ts'); + modelSelection = await server.ssrLoadModule('/src/studio/templateModelSelection.ts'); + fixture = JSON.parse(await readFile(path.join(ROOT, 'tests/fixtures/public-flux3-missing-provider.v1.json'), 'utf8')); +}); +after(async () => { + try { + await server?.close(); + assert.equal(networkRequests, 0); + } finally { + for (const [key, descriptor] of Object.entries(originalGlobals)) { + if (descriptor) Object.defineProperty(globalThis, key, descriptor); + else delete globalThis[key]; + } + } +}); + +const card = (id) => templates.PLANNING_STUDIO_TEMPLATES.find((item) => item.id === id); + +test('ten public-intent descriptors remain blocked planning entries without output or qualification claims', () => { + assert.equal(new Set(ids).size, 10); + for (const id of ids) { + const value = card(id); + assert.ok(value, id); + assert.equal( + templates.STUDIO_TEMPLATES.some((item) => item.id === id), + false, + ); + assert.equal(value.difficulty, 'blocked'); + assert.equal(value.readinessPolicy, 'planning'); + assert.equal(value.example.status, 'blocked'); + assert.match(value.example.blockReason, /grants no Gallery, Auto or hardware qualification/); + for (const key of ['outputPath', 'thumbnailPath', 'mediaHash', 'runtimeFingerprint', 'verificationTimestamp']) + assert.equal(Object.hasOwn(value.example, key), false, `${id}:${key}`); + assert.equal( + value.mediaSlots.every((slot) => !slot.path && !slot.posterPath), + true, + ); + } +}); + +test('each card resolves the real public profile and immutable artifact while stale or private identities refuse', () => { + const capabilities = fixture.capabilitiesPayload.capabilities; + assert.equal(fixture.activeProvider, null); + for (const id of ids) { + const value = card(id); + const selected = modelSelection.resolveTemplateModelSelection(value, capabilities); + assert.ok(selected, id); + assert.equal(selected.profile.public, true); + assert.match(selected.profile.id, /^flux3-klein(?:-base)?:official-provider:v1$/u); + assert.equal(value.executionSelection.memoryPolicy, 'custom_experimental'); + assert.equal(value.executionSelection.implementation, 'native_stages'); + assert.equal(value.modelArtifact.revision, selected.revision); + assert.equal(value.modelArtifact.value, selected.repository); + const staleRevision = { ...value, modelArtifact: { ...value.modelArtifact, revision: '0'.repeat(40) } }; + assert.equal(modelSelection.resolveTemplateModelSelection(staleRevision, capabilities), null); + const privateIdentity = { + ...value, + executionSelection: { ...value.executionSelection, executionProfileId: 'foreign-private-profile' }, + }; + assert.equal(modelSelection.resolveTemplateModelSelection(privateIdentity, capabilities), null); + assert.equal(selected.capability.templateEligible, false); + assert.equal(selected.capability.galleryEligible, false); + assert.equal(selected.capability.liveProof, false); + assert.deepEqual(selected.capability.qualifiedModes, []); + } +}); + +test('approved named source images bind ordinary one- and ordered two-reference edit contracts', () => { + const cobalt = 'sha256:bytes:d5ba3943d6c0a264860ba0cde18d87e2d9554a3f7328308f4d771e082a9e0c24'; + const dieline = 'sha256:bytes:b748201353f02543c2a48920bb514c2741366151df45bf6c4904aeb0f32f1a67'; + for (const [prefix] of variants) { + for (const [suffix, count] of [ + ['single_reference_edit', 1], + ['multi_reference_edit', 2], + ]) { + const value = card(`${prefix}_${suffix}`); + assert.deepEqual( + [value.mode, value.executionSelection.task, value.executionSelection.bindingSpec.mode], + ['edit_image', 'edit_image', 'edit_image'], + ); + assert.equal(value.inputRequirements.referenceImages, count); + const resolution = inputs.resolveTemplateInputs(value); + assert.deepEqual(resolution.missingLabels, []); + assert.deepEqual(resolution.downstreamBindings, []); + const binding = resolution.templateDefaultBindings[0]; + assert.equal(binding.origin, 'template'); + assert.equal(binding.field, 'referenceImages'); + assert.equal(binding.defaultAssets.length, count); + assert.deepEqual( + binding.defaultAssets.map((asset) => asset.runtimeSha256), + [cobalt, dieline].slice(0, count), + ); + assert.deepEqual( + binding.defaultAssets.map((asset) => asset.runtimePath), + [ + '/template-gallery/inputs/flux2_klein_edit.before.png', + '/template-gallery/inputs/qwen_control_image_layout.before.png', + ].slice(0, count), + ); + assert.equal(new Set(binding.defaultAssets.map((asset) => asset.runtimeSha256)).size, count); + assert.match(value.prompt, /reference image 1/i); + if (count === 2) assert.match(value.example.notes, /not ControlNet/); + } + } +}); + +test('the real per-task offers retain append default and explicit raw precision or constrained choices', () => { + for (const id of ids) { + const value = card(id); + const { profile } = modelSelection.resolveTemplateModelSelection(value, fixture.capabilitiesPayload.capabilities); + const selection = value.executionSelection; + const offer = profile.authoringRecipes.find((item) => item.task === value.mode); + assert.ok(offer, id); + assert.equal(selection.authoringRecipeId, offer.authoringRecipeId); + assert.match(offer.authoringRecipeId, /:prompt-preview-append-fp32:v1$/u); + assert.deepEqual( + offer.rawAuthoringRecipeChoices.map(({ label }) => label), + ['Raw wording: FP32', 'Raw wording: BF16 + NF4'], + ); + assert.deepEqual( + offer.rawAuthoringRecipeChoices.map(({ authoringRecipeId }) => authoringRecipeId), + [offer.authoringRecipeId.replace('append-fp32', 'fp32'), offer.authoringRecipeId.replace('append-fp32', 'nf4')], + ); + assert.deepEqual( + offer.layoutAuthoringRecipeChoices.map(({ label }) => label), + ['Append wording: preserve authored layout', 'Generate constrained table: FP32 (Expert)'], + ); + assert.equal(offer.layoutAuthoringRecipeChoices[0].authoringRecipeId, offer.authoringRecipeId); + assert.equal( + offer.layoutAuthoringRecipeChoices[1].authoringRecipeId, + offer.authoringRecipeId.replace('append-fp32', 'constrained-fp32'), + ); + } +}); + +test('locked diffusion recipes remain explicit and independent of optional PUP NF4', () => { + for (const [prefix, , , steps, guidance] of variants) { + for (const kind of kinds) { + const value = card(`${prefix}_${kind}`); + const locked = value.example.lockedSettings; + assert.deepEqual([locked.width, locked.height, locked.steps, locked.guidanceScale], [512, 512, steps, guidance]); + assert.deepEqual( + [locked.dtype, locked.quantizationMode, locked.resourceMode, locked.autoOffload, locked.offloadMode], + ['bfloat16', 'none', 'expert', false, 'none'], + ); + assert.equal(locked.randomSeed, false); + assert.equal(value.example.expectedOutput.width, 512); + assert.equal(locked.weightFormat, 'fp8r'); + } + } +}); + +test('raw coordinate examples are complete prompt text without seeded layout or generated-table claims', () => { + for (const [prefix] of variants) { + const value = card(`${prefix}_raw_coordinate_prompt`); + const [caption, json] = value.prompt.split('\n'); + assert.equal(caption, 'A still life with .'); + assert.deepEqual(JSON.parse(json), [ + { id: 'apple_1', bbox: [250, 125, 750, 875], desc: 'A red apple, with a green leaf.' }, + ]); + assert.equal(Object.hasOwn(value.example.lockedSettings, 'layoutConditioning'), false); + assert.match(value.example.notes, /layout_conditioning field remains null/); + assert.match(value.example.notes, /PUP stays disabled/); + assert.match(value.example.blockReason, /not a seeded region-widget or generated-table template/); + } +}); + +test('an optional user adapter remains incomplete while concrete Base Tarot remains license blocked', () => { + const user = card('flux3_klein_fp8r512_lora_style'); + assert.equal(user.evidencePolicy, 'user_supplied'); + assert.equal(user.inputRequirements.loraAdapter, true); + assert.ok(user.requiredBackendCapabilities.includes('modules.ModularDiffusers.Lora')); + assert.deepEqual(user.workflowBlockSettings.lora.model, { source: 'hub', value: '' }); + assert.match(user.example.blockReason, /compatible immutable user LoRA/); + const base = card('flux3_klein_base_fp8r512_lora_style'); + assert.deepEqual(base.workflowBlocks, ['lora']); + assert.ok(base.requiredBackendCapabilities.includes('modules.ModularDiffusers.Lora')); + assert.deepEqual(base.executionSelection.loraPolicy, { defaultAdapterName: 'tarot' }); + assert.deepEqual(base.workflowBlockSettings.lora, { + model: { + source: 'hub', + value: 'diffusers-modular/flux3-tarot-lora', + revision: '96fe1071462ed2e95c96035625e9f217d7f61f48', + sha256: 'b5adac5ac7232708c2b3b55b1bb7a69c06c0c3e929f96073b7c5c7f3722c946a', + byteSize: 80385992, + }, + weightName: 'pytorch_lora_weights.safetensors', + adapterName: 'tarot', + scale: 1, + }); + assert.equal(Object.hasOwn(base.workflowBlockSettings.lora.model, 'license'), false); + assert.match(base.example.blockReason, /license: other without an explicit grant/); + assert.match(base.prompt, /trtcrd/); +}); + +// Complete source inputs are not native output, fit or publication proof. +test('eight fixed-input recipes are source-complete while all ten still require native proof', () => { + const fixed = ids.filter((id) => !id.endsWith('_lora_style')); + assert.equal(fixed.length, 8); + for (const id of fixed) { + const value = card(id); + assert.deepEqual(inputs.resolveTemplateInputs(value).missingLabels, []); + assert.ok(value.prompt.trim()); + assert.equal(value.runtimeReuseKey.includes(':fp8r:'), true); + assert.equal(value.executionSelection.memoryPolicy, 'custom_experimental'); + } + for (const id of ids) { + const value = card(id); + assert.equal( + templates.STUDIO_TEMPLATES.some((item) => item.id === id), + false, + ); + assert.equal(value.readinessPolicy, 'planning'); + assert.equal(value.example.status, 'blocked'); + assert.match(value.example.blockReason, /Native output and template qualification/); + assert.equal(Object.hasOwn(value.example, 'outputPath'), false); + assert.equal(Object.hasOwn(value.example, 'runtimeFingerprint'), false); + } +}); + +// This uses captured source metadata and mocked managed input paths only. It +// constructs ordinary graphs; it does not read media, execute or qualify models. +test('all eight fixed-input planning cards create exact ordinary FP8r task graphs', async () => { + const load = (name) => server.ssrLoadModule(`/src/${name}.ts`); + const [operations, catalog, choices, requests, creator, flow, defaults, exactness] = await Promise.all([ + load('workflow/operationContracts'), + load('workflow/operationCatalog'), + load('workflow/workflowChoices'), + load('workflow/operationStarterRequest'), + load('studio/templateOperationWorkflow'), + load('stores/useFlowStore'), + load('studio/modelProfiles'), + load('studio/templateExactness'), + ]); + const captured = JSON.parse( + await readFile(path.join(ROOT, 'tests/fixtures/public-flux3-template-creators.v1.json'), 'utf8'), + ); + const capturedBefore = structuredClone(captured); + assert.equal(captured.activeProvider, null); + assert.equal(captured.starters.length, 10); + for (const key of ['modules.Image.Load', 'modules.Image.Preview', 'modules.ModularDiffusers.ImageEncode']) { + const leaf = captured.registry[key]; + assert.ok(leaf, key); + assert.equal(`${leaf.module}.${leaf.action}`, key); + } + const payload = captured.capabilitiesPayload; + const contracts = operations.parseOperationContracts( + payload.operationContracts, + payload.operationContractSchemaVersion, + ); + const support = catalog.parsePipelineSupport( + payload.pipelineSupport, + payload.pipelineSupportSchemaVersion, + contracts, + ); + const descriptors = choices.parseWorkflowModelDescriptors(payload, support); + const registry = structuredClone(captured.registry); + const registryBefore = structuredClone(registry); + const fixed = ids.filter((id) => !id.endsWith('_lora_style')); + assert.equal(fixed.length, 8); + for (const id of fixed) { + const value = card(id); + const cardBefore = structuredClone(value); + const selected = modelSelection.resolveTemplateModelSelection(value, payload.capabilities); + assert.ok(selected, id); + const { capability, repository, revision } = selected; + const selection = value.executionSelection; + const specs = capability.studioExecutionSpecs.filter( + (item) => item.mode === value.mode && item.executionProfileId === selection.executionProfileId, + ); + assert.equal(specs.length, 1, id); + const spec = specs[0]; + const sources = captured.starters.filter( + (item) => + item.pipelineClass === selection.pipelineClass && + item.task === selection.task && + item.authoring.id === selection.authoringRecipeId && + item.authoring.executionProfileIds.includes(selection.executionProfileId), + ); + assert.equal(sources.length, 1, `${id}: exact captured public per-task starter`); + const starter = requests.parseOperationStarter( + structuredClone(sources[0]), + selection.pipelineClass, + selection.task, + contracts, + { executionProfileId: selection.executionProfileId, authoringRecipeId: selection.authoringRecipeId }, + ); + const rawOwners = starter.nodes.filter( + (item) => item.node.module === 'modules.ModularDiffusers' && item.node.action === 'ModelsLoader', + ); + assert.equal(rawOwners.length, 1); + const device = rawOwners[0].node.params.device.value; + assert.equal(device, 'cpu:0', 'use the actual captured CPU fixture device, not a GPU claim'); + for (const [, key] of starter.authoring.roles) + assert.ok(value.requiredBackendCapabilities.includes(key), `${id}: declared creator role ${key}`); + const assets = inputs + .resolveTemplateInputs(value) + .templateDefaultBindings.flatMap((binding) => binding.defaultAssets); + // These do not resolve or copy public assets: the real upload service would + // supply managed input paths after normal hash verification. + const references = assets.map((asset, index) => `unit-managed-inputs/${id}/${index}-${asset.fileName}`); + const form = { + ...defaults.DEFAULT_STUDIO_FORM, + ...exactness.getTemplateLockedSettings(value), + mode: value.mode, + modelType: value.modelType, + modelRepo: repository, + device, + referenceImages: references, + }; + assert.deepEqual( + [form.weightFormat, form.dtype, form.quantizationMode, form.resourceMode], + ['fp8r', 'bfloat16', 'none', 'expert'], + ); + const grouped = creator.createTemplateOperationGraph(value, form, starter, registry, spec, capability, { + workflowModelDescriptors: descriptors, + }); + const graph = flow.expandFlowExecutionGraph(grouped.nodes, grouped.edges); + const nodeFor = (module, action) => { + const nodes = graph.nodes.filter((node) => node.data.module === module && node.data.action === action); + assert.equal(nodes.length, 1, `${id}: ${module}.${action}`); + return nodes[0]; + }; + const owner = nodeFor('modules.ModularDiffusers', 'ModelsLoader'); + const prompt = nodeFor('modules.ModularDiffusers', 'EncodePrompt'); + const denoise = nodeFor('modules.ModularDiffusers', 'Denoise'); + const preview = nodeFor('modules.Image', 'Preview'); + assert.deepEqual(owner.data.params.repo_id.value, { source: 'hub', value: repository }); + assert.deepEqual( + [ + owner.data.params.model_type.value, + owner.data.params.revision.value, + owner.data.params.weight_format.value, + owner.data.params.dtype.value, + owner.data.params.device.value, + ], + [selection.pipelineClass, revision, 'fp8r', 'bfloat16', device], + ); + assert.equal(owner.data.params.auto_offload.value, false); + assert.equal(owner.data.params.offload_mode.value, 'none'); + assert.equal( + graph.edges.some((edge) => edge.target === owner.id && edge.targetHandle === 'quant_config'), + false, + ); + assert.equal(prompt.data.params.prompt.value, value.prompt); + assert.equal(prompt.data.params.layout_conditioning.value ?? prompt.data.params.layout_conditioning.default, null); + assert.deepEqual( + [ + denoise.data.params.width.value, + denoise.data.params.height.value, + denoise.data.params.num_inference_steps.value, + ], + [512, 512, form.steps], + ); + const edge = (from, sourceHandle, to, targetHandle) => { + const matches = graph.edges.filter( + (item) => + item.source === from.id && + item.sourceHandle === sourceHandle && + item.target === to.id && + item.targetHandle === targetHandle, + ); + assert.equal( + matches.length, + 1, + `${id}: ${from.data.action}.${sourceHandle} -> ${to.data.action}.${targetHandle}`, + ); + }; + edge(nodeFor('modules.ModularDiffusers', 'DecodeLatents'), 'images', preview, 'image'); + if (value.mode === 'edit_image') { + const image = nodeFor('modules.Image', 'Load'); + const encoder = nodeFor('modules.ModularDiffusers', 'ImageEncode'); + assert.deepEqual(image.data.params.file.value, references, `${id}: preserve ordered references`); + assert.equal(references.length, value.inputRequirements.referenceImages); + edge(owner, 'vae_out', encoder, 'vae'); + edge(image, 'image', encoder, 'image'); + edge(encoder, 'image_cond_latents', denoise, 'image_cond_latents'); + edge(encoder, 'reference_binding', prompt, 'reference_binding'); + edge(encoder, 'reference_binding', denoise, 'reference_binding'); + } else { + assert.deepEqual(references, []); + assert.equal( + graph.nodes.some( + (node) => + node.data.action === 'ImageEncode' || (node.data.module === 'modules.Image' && node.data.action === 'Load'), + ), + false, + ); + assert.equal( + graph.edges.some((item) => item.target === denoise.id && item.targetHandle === 'image_cond_latents'), + false, + ); + } + if (value.modelType === 'Flux3ModularPipeline') { + const guider = nodeFor('modules.ModularDiffusers', 'Guider'); + assert.equal(guider.data.params.guidance_scale.value, 3.5); + edge(guider, 'guider_out', denoise, 'guider'); + } + assert.equal( + graph.nodes.some((node) => node.data.module === 'modules.HuggingFaceTransformers'), + false, + 'PUP starts disabled; graph authoring is not a provider execution', + ); + assert.deepEqual(value, cardBefore); + assert.equal(value.example.status, 'blocked'); + } + assert.deepEqual(registry, registryBefore); + assert.deepEqual(captured, capturedBefore); +}); diff --git a/scripts/graph-visuals.test.mjs b/scripts/graph-visuals.test.mjs index 4368286b..b0842c27 100644 --- a/scripts/graph-visuals.test.mjs +++ b/scripts/graph-visuals.test.mjs @@ -757,7 +757,7 @@ test('graph fields and overlays use graph-safe controls without losing specializ assert.match(numberField, /onKeyDown=\{handleKeyDown\}/); assert.match(numberField, /document\.addEventListener\('mousemove', handleMouseMove\)/); assert.match(numberField, /document\.removeEventListener\('mouseup', handleMouseUp\)/); - assert.match(numberField, /updateStore\(fieldKey, nextValue\)/); + assert.match(numberField, /updateStore\(fieldKey, Number\(nextValue\)\)/); const fileField = fs.readFileSync(path.join(ROOT, 'src', 'fields', 'FileBrowserField.tsx'), 'utf8'); assert.match(fileField, / { + const pipelineClass = 'FuturePipeline'; + const profileId = 'future:official:v1'; + const tasks = ['text_to_image', 'edit_image']; + const offers = tasks.map((task) => ({ + executionProfileId: profileId, + pipelineClass, + task, + authoringRecipeId: `future:${task}:append:v1`, + rawAuthoringRecipeId: `future:${task}:raw:v1`, + rawAuthoringRecipeChoices: [ + { authoringRecipeId: `future:${task}:raw:v1`, label: 'Raw FP32' }, + { authoringRecipeId: `future:${task}:raw-nf4:v1`, label: 'Raw NF4' }, + ], + layoutAuthoringRecipeChoices: [ + { authoringRecipeId: `future:${task}:append:v1`, label: 'Append wording' }, + { authoringRecipeId: `future:${task}:constrained:v1`, label: 'Wording for authored regions' }, + ], + })); + const profile = { + id: profileId, + pipeline_class: pipelineClass, + model_type: 'FutureModel', + default_repo: 'review/future-model', + modes: tasks, + public: true, + authoringRecipes: offers, + }; + const model = { + modelType: profile.model_type, + label: 'Future model', + defaultRepo: profile.default_repo, + executionProfiles: [profile], + }; + const support = [ + { + pipelineClass, + tasks: tasks.map((task) => ({ + task, + operationIds: ['load', 'run'], + executionProfileIds: [profileId], + })), + }, + ]; + const payload = { schemaVersion: 2, capabilities: [model] }; + const original = structuredClone(payload); + for (const known of [[], [model]]) { + const descriptors = choices.parseWorkflowModelDescriptors(payload, support, known); + assert.equal(descriptors.length, 1); + const [descriptor] = descriptors; + assert.equal(descriptor.evaluationOnly, undefined); + for (const offer of offers) { + assert.equal(descriptor.authoringRecipes[offer.task], offer.authoringRecipeId); + assert.equal(descriptor.rawPromptAuthoringRecipes[offer.task], offer.rawAuthoringRecipeId); + assert.deepEqual(descriptor.rawPromptAuthoringChoices[offer.task], offer.rawAuthoringRecipeChoices); + assert.deepEqual(descriptor.layoutPromptAuthoringChoices[offer.task], offer.layoutAuthoringRecipeChoices); + } + const rows = choices.workflowChoices(support, known, [], [], null, descriptors); + assert.equal(rows.length, 2); + assert.ok(rows.every((row) => !row.evaluationOnly)); + for (const row of rows) + assert.equal(row.authoringRecipeId, offers.find((offer) => offer.task === row.task).authoringRecipeId); + } + assert.deepEqual(payload, original, 'Parsing cannot rewrite source metadata or promote private identities'); + for (const alter of [ + (rows) => { + rows.push(structuredClone(rows[0])); + }, + (rows) => { + rows[0].executionProfileId = 'another:profile'; + }, + (rows) => { + rows[0].pipelineClass = 'AnotherPipeline'; + }, + (rows) => { + rows[0].task = 'unsupported_task'; + }, + (rows) => { + rows[0].rawAuthoringRecipeChoices[0].label = ' padded '; + }, + (rows) => { + rows[0].rawAuthoringRecipeChoices[0].authoringRecipeId = 'undeclared:v1'; + }, + (rows) => { + rows[0].rawAuthoringRecipeChoices[1].authoringRecipeId = rows[0].authoringRecipeId; + }, + ]) { + const bad = structuredClone(payload); + alter(bad.capabilities[0].executionProfiles[0].authoringRecipes); + assert.throws(() => choices.parseWorkflowModelDescriptors(bad, support, [model])); + } + const old = structuredClone(payload); + delete old.capabilities[0].executionProfiles[0].authoringRecipes; + assert.deepEqual( + choices.parseWorkflowModelDescriptors(old, support, [model]), + [], + 'Old known-model payloads keep their legacy presentation boundary', + ); + const undeclaredPublic = structuredClone(payload); + delete undeclaredPublic.capabilities[0].executionProfiles[0].public; + assert.throws(() => choices.parseWorkflowModelDescriptors(undeclaredPublic, support, [model])); + const privateOffer = structuredClone(payload); + privateOffer.capabilities[0].executionProfiles[0].public = false; + assert.deepEqual( + choices.parseWorkflowModelDescriptors(privateOffer, support, [model]), + [], + 'Private offers are never promoted through public descriptors', + ); +}); + +test('authored layout choices are explicit bounded offers and cannot overlap raw alternatives', async () => { + const { parseAuthoringRecipeOffers } = await server.ssrLoadModule('/src/workflow/authoringRecipeOffers.ts'); + const profile = { id: 'future:official:v1', pipeline: 'FuturePipeline', modes: ['text_to_image'] }; + const row = { + executionProfileId: profile.id, + pipelineClass: profile.pipeline, + task: profile.modes[0], + authoringRecipeId: 'future:append:v1', + rawAuthoringRecipeId: 'future:raw:v1', + rawAuthoringRecipeChoices: [{ authoringRecipeId: 'future:raw:v1', label: 'Raw wording' }], + layoutAuthoringRecipeChoices: [ + { authoringRecipeId: 'future:append:v1', label: 'Append wording; keep layout' }, + { authoringRecipeId: 'future:constrained:v1', label: 'Generate wording for authored regions' }, + ], + }; + const support = [{ pipelineClass: profile.pipeline, tasks: [{ task: row.task, executionProfileIds: [profile.id] }] }]; + const invalid = () => { + throw new Error('invalid offers'); + }; + const parsed = parseAuthoringRecipeOffers([row], [profile], support, invalid); + assert.deepEqual(parsed.layoutChoices.get(profile.id)[row.task], row.layoutAuthoringRecipeChoices); + assert.equal( + parsed.recipes.get(profile.id)[row.task], + row.authoringRecipeId, + 'Adding an explicit mode cannot change the default.', + ); + const original = structuredClone(row); + for (const alter of [ + (item) => { + item.layoutAuthoringRecipeChoices = []; + }, + (item) => { + item.layoutAuthoringRecipeChoices[0].authoringRecipeId = 'another:v1'; + }, + (item) => { + item.layoutAuthoringRecipeChoices[1].authoringRecipeId = item.authoringRecipeId; + }, + (item) => { + item.layoutAuthoringRecipeChoices[1].authoringRecipeId = item.rawAuthoringRecipeId; + }, + (item) => { + item.layoutAuthoringRecipeChoices[1].label = ' padded '; + }, + (item) => { + item.layoutAuthoringRecipeChoices.push( + ...Array.from({ length: 3 }, (_, index) => ({ authoringRecipeId: `other:${index}`, label: 'Other' })), + ); + }, + (item) => { + Object.defineProperty(item.layoutAuthoringRecipeChoices, '0', { + enumerable: true, + get: () => original.layoutAuthoringRecipeChoices[0], + }); + }, + (item) => { + item.layoutAuthoringRecipeChoices.extra = true; + }, + ]) { + const bad = structuredClone(row); + alter(bad); + assert.throws(() => parseAuthoringRecipeOffers([bad], [profile], support, invalid)); + } + assert.deepEqual(row, original, 'Metadata parsing cannot alter source offers.'); + const old = structuredClone(row); + delete old.layoutAuthoringRecipeChoices; + assert.equal(parseAuthoringRecipeOffers([old], [profile], support, invalid).layoutChoices.size, 0); +}); + async function operationBlock(instanceId = 'operation-block', selectedStarter = seededStarter(true)) { const schema = await server.ssrLoadModule('/src/studio/blockSchemaV2.ts'); const runtime = await server.ssrLoadModule('/src/studio/blockRuntimeV2.ts'); @@ -2000,7 +2178,7 @@ test('evaluation model discovery keeps declared choices searchable across spaces assert.deepEqual( parseStudioModelCapabilities(payload).capabilities, [], - 'Private identities stay outside the legacy union.', + 'Private execution profiles stay outside runnable Studio capabilities.', ); assert.equal( choices.workflowModelMatchesQuery({ label: 'Future Vision.7', repo: 'another/future-vision-7' }, 'future vision7'), @@ -2008,6 +2186,129 @@ test('evaluation model discovery keeps declared choices searchable across spaces ); }); +test('typed template identities preserve contract-only workflow discovery and reject inconsistent admissions', async () => { + const { parseStudioModelCapabilities } = await server.ssrLoadModule('/src/stores/useNodeStore.ts'); + const profiles = await server.ssrLoadModule('/src/studio/modelProfiles.ts'); + const { STUDIO_TEMPLATES, PLANNING_STUDIO_TEMPLATES } = await server.ssrLoadModule('/src/studio/templates.ts'); + const payload = evaluationImagePayload(); + const before = structuredClone(payload); + const original = await evaluationImageAuthority(payload); + const baseline = choices.workflowChoices( + original.pipelineSupport, + [], + [], + [], + null, + original.workflowModelDescriptors, + ); + const full = structuredClone(payload); + for (const capability of full.capabilities) + Object.assign(capability, { + executionStatus: 'contract_only', + modes: ['text_to_image', 'edit_image'], + runnableModes: [], + qualifiedModes: [], + }); + for (const value of [payload, full]) { + const parsed = parseStudioModelCapabilities(value); + assert.deepEqual(parsed.capabilities, []); + const authority = await evaluationImageAuthority(value); + assert.deepEqual( + choices.workflowChoices( + authority.pipelineSupport, + parsed.capabilities, + [], + [], + null, + authority.workflowModelDescriptors, + ), + baseline, + 'Task, profile, private recipe, cache and Custom-memory identity stay on the ordinary starter path.', + ); + } + assert.deepEqual(payload, before, 'The actual retained metadata is not rewritten.'); + assert.equal(baseline.length, 4); + assert.ok( + baseline.every( + (row) => row.evaluationOnly && row.authoringRecipeId && ['text_to_image', 'edit_image'].includes(row.task), + ), + ); + for (const capability of payload.capabilities) { + const profile = profiles.STUDIO_MODEL_PROFILES[capability.modelType]; + assert.equal(profile.catalogVisibility, 'internal'); + assert.equal(profile.defaultRepo, capability.defaultRepo); + assert.deepEqual(profile.modes, ['text_to_image', 'edit_image']); + assert.ok( + [profile.autoEligible, profile.templateEligible, profile.galleryEligible, profile.liveProof].every( + (flag) => flag === false, + ), + ); + assert.equal( + profiles.isStudioModelVisibleInCatalog(capability.modelType, { + includeWorkflowOnly: true, + currentModelType: capability.modelType, + }), + false, + ); + assert.equal( + STUDIO_TEMPLATES.some((template) => template.modelType === capability.modelType), + false, + 'Private fixture model types gain no visible Studio cards.', + ); + } + const privateProfileIds = new Set(payload.evaluationAuthoring.executionProfiles.map((profile) => profile.id)); + const privateRecipeIds = new Set( + payload.evaluationAuthoring.authoringRecipes.map((recipe) => recipe.authoringRecipeId), + ); + assert.equal( + PLANNING_STUDIO_TEMPLATES.some( + (template) => + privateProfileIds.has(template.executionSelection?.executionProfileId) || + privateRecipeIds.has(template.executionSelection?.authoringRecipeId), + ), + false, + 'Planning cards cannot promote this fixture private execution-profile or recipe authority.', + ); + for (const alter of [ + (p) => { + p.capabilities[0].autoEligible = true; + }, + (p) => { + p.capabilities[0].templateEligible = true; + }, + (p) => { + p.capabilities[0].galleryEligible = true; + }, + (p) => { + p.capabilities[0].liveProof = true; + }, + (p) => { + delete p.capabilities[0].liveProof; + }, + (p) => { + p.capabilities[0].executionProfiles = [{ id: 'unreviewed' }]; + }, + (p) => { + p.capabilities[0].runnableModes = ['text_to_image']; + }, + (p) => { + p.capabilities[0].qualifiedModes = ['text_to_image']; + }, + (p) => { + p.schemaVersion = 1; + }, + ]) { + const invalid = structuredClone(full); + alter(invalid); + assert.throws(() => parseStudioModelCapabilities(invalid), /model.capabilities/i); + } + const publicProfile = structuredClone(profiles.STUDIO_MODEL_PROFILES.StableDiffusionPipeline); + assert.equal( + parseStudioModelCapabilities({ schemaVersion: 2, capabilities: [publicProfile] }).capabilities[0].modelType, + 'StableDiffusionPipeline', + ); +}); + test('evaluation authoring validates selected policy and recipe bindings and rejects malformed extensions', async () => { const authority = await evaluationImageAuthority(); assert.deepEqual( @@ -2055,6 +2356,118 @@ test('evaluation authoring validates selected policy and recipe bindings and rej assert.ok(parsed.workflowModelDescriptors.every((row) => !row.adapterAuthoringProfile && !row.authoringRecipes)); }); +test('evaluation authoring retains an optional exact raw recipe per selected task without public promotion', async () => { + const payload = evaluationImagePayload(); + for (const row of payload.evaluationAuthoring.authoringRecipes) + row.rawAuthoringRecipeId = `${row.authoringRecipeId}:raw`; + const before = structuredClone(payload); + const parsed = await evaluationImageAuthority(payload); + for (const row of payload.evaluationAuthoring.authoringRecipes) { + const descriptor = parsed.workflowModelDescriptors.find( + (descriptor) => descriptor.profileId === row.executionProfileId, + ); + assert.equal(descriptor.rawPromptAuthoringRecipes[row.task], row.rawAuthoringRecipeId); + assert.equal(descriptor.authoringRecipes[row.task], row.authoringRecipeId); + assert.equal(descriptor.evaluationOnly, true); + } + assert.deepEqual(payload, before); + for (const value of [ + null, + '', + 17, + 'x'.repeat(257), + payload.evaluationAuthoring.authoringRecipes[0].authoringRecipeId, + ]) { + const malformed = structuredClone(payload); + malformed.evaluationAuthoring.authoringRecipes[0].rawAuthoringRecipeId = value; + await assert.rejects(() => evaluationImageAuthority(malformed)); + } + const malformed = structuredClone(payload); + Object.defineProperty(malformed.evaluationAuthoring.authoringRecipes[0], 'rawAuthoringRecipeId', { + enumerable: true, + get: () => { + throw new Error('getter executed'); + }, + }); + await assert.rejects(() => evaluationImageAuthority(malformed), /Invalid/); +}); + +test('declared raw enhancement choices retain labels and exact defaults while rejecting malformed alternatives', async () => { + const payload = evaluationImagePayload(); + const row = payload.evaluationAuthoring.authoringRecipes[0]; + row.rawAuthoringRecipeId = `${row.authoringRecipeId}:raw`; + row.rawAuthoringRecipeChoices = [ + { authoringRecipeId: row.rawAuthoringRecipeId, label: 'Raw wording: FP32' }, + { authoringRecipeId: `${row.authoringRecipeId}:nf4`, label: 'Raw wording: BF16 + NF4' }, + ]; + const before = structuredClone(payload); + const parsed = await evaluationImageAuthority(payload); + assert.deepEqual( + parsed.workflowModelDescriptors.find((descriptor) => descriptor.profileId === row.executionProfileId) + .rawPromptAuthoringChoices[row.task], + row.rawAuthoringRecipeChoices, + ); + assert.deepEqual(payload, before); + for (const alter of [ + (r) => { + delete r.rawAuthoringRecipeId; + }, + (r) => { + r.rawAuthoringRecipeChoices = []; + }, + (r) => { + r.rawAuthoringRecipeChoices = null; + }, + (r) => { + r.rawAuthoringRecipeChoices.push(...r.rawAuthoringRecipeChoices, r.rawAuthoringRecipeChoices[0]); + }, + (r) => { + r.rawAuthoringRecipeChoices[1] = r.rawAuthoringRecipeChoices[0]; + }, + (r) => { + r.rawAuthoringRecipeChoices.shift(); + }, + (r) => { + r.rawAuthoringRecipeChoices[1].authoringRecipeId = r.authoringRecipeId; + }, + (r) => { + r.rawAuthoringRecipeChoices[1].extra = true; + }, + (r) => { + r.rawAuthoringRecipeChoices[1].label = ''; + }, + (r) => { + r.rawAuthoringRecipeChoices[1].label = ' Raw wording'; + }, + (r) => { + r.rawAuthoringRecipeChoices[1].label = 'x'.repeat(129); + }, + (r) => { + delete r.rawAuthoringRecipeChoices[1]; + }, + (r) => { + Object.defineProperty(r.rawAuthoringRecipeChoices[1], 'label', { + enumerable: true, + get: () => { + throw new Error('getter executed'); + }, + }); + }, + (r) => { + Object.defineProperty(r, 'rawAuthoringRecipeChoices', { + enumerable: true, + get: () => { + throw new Error('getter executed'); + }, + }); + }, + ]) { + const malformed = structuredClone(payload); + alter(malformed.evaluationAuthoring.authoringRecipes[0]); + await assert.rejects(() => evaluationImageAuthority(malformed), /Invalid/); + } +}); + test('evaluation selected native policy permits ordinary Add and Remove without rewriting the model or unrelated nodes', async () => { const adapters = await server.ssrLoadModule('/src/workflow/modelSetupAdapters.ts'); const groups = await server.ssrLoadModule('/src/workflow/visualOperationGroups.ts'); diff --git a/scripts/prompt-enhancement-authoring.test.mjs b/scripts/prompt-enhancement-authoring.test.mjs index 5caa1a93..de26cedc 100644 --- a/scripts/prompt-enhancement-authoring.test.mjs +++ b/scripts/prompt-enhancement-authoring.test.mjs @@ -94,6 +94,86 @@ test('absent metadata preserves legacy graph bytes and adds no feature', () => { assert.deepEqual(graph, { nodes: [], edges: [] }); }); +test('alternative enhancement parent selection preserves authored graph state and refuses structural drift', async (t) => { + const { graph, parent, owner } = setup(); + const target = structuredClone(parent); + target.id = `${parent.id}:alternative`; + const child = target.ancillaryOperations[0]; + child.id = `${target.id}:preview`; + child.parent.authoringRecipeId = target.id; + const rehash = () => { + const { contentHash: _childHash, ...childBody } = child; + child.contentHash = `studio-ancillary-v1-${stable.hashString(stable.stableStringify(childBody))}`; + const { contentHash: _parentHash, ...body } = target; + target.contentHash = `studio-authoring-v1-${stable.hashString(stable.stableStringify(body))}`; + }; + rehash(); + const before = structuredClone(graph); + const chosen = await authoring.planSelectPromptEnhancementParent(graph, owner.id, parent, target); + assert.deepEqual(graph, before); + assert.deepEqual(chosen.edges, graph.edges); + assert.equal(chosen.nodes.length, graph.nodes.length); + const expected = structuredClone(graph); + expected.nodes.find((node) => node.id === owner.id).data.operationAuthoring.ancillaryParent.parent = { + ...child.parent, + authoringContentHash: target.contentHash, + }; + assert.deepEqual(chosen, expected, 'Only the selected owner advisory identity changes.'); + for (const [name, alter] of [ + [ + 'base spec', + (p) => { + p.baseSpecId = 'another'; + }, + ], + [ + 'roles', + (p) => { + p.roles[0][2] += 1; + }, + ], + [ + 'bindings', + (p) => { + p.bindings[0][1] = 'another'; + }, + ], + [ + 'initial values', + (p) => { + p.initialValues.push(['prompt', 'unrelated', 1]); + }, + ], + [ + 'edges', + (p) => { + p.edges[0][1] = 'another'; + }, + ], + [ + 'owner', + (p) => { + p.ancillaryOperations[0].bindings.owner.layoutField = 'another'; + }, + ], + [ + 'multiple children', + (p) => { + p.ancillaryOperations.push(p.ancillaryOperations[0]); + }, + ], + ]) + await t.test(name, async () => { + const malformed = structuredClone(target); + alter(malformed); + await assert.rejects( + authoring.planSelectPromptEnhancementParent(graph, owner.id, parent, malformed), + /alternative/, + ); + assert.deepEqual(graph, before); + }); +}); + test('saved enhancement selection is a strict advisory context with exact role remapping', () => { const { owner, parent } = setup(); const before = structuredClone(owner.data.operationAuthoring); diff --git a/scripts/prompt-enhancement-preview.test.mjs b/scripts/prompt-enhancement-preview.test.mjs index 19a2500b..18051cfd 100644 --- a/scripts/prompt-enhancement-preview.test.mjs +++ b/scripts/prompt-enhancement-preview.test.mjs @@ -82,6 +82,7 @@ beforeEach(() => { registry.setState({ nodesRegistry: structuredClone(fixture.registry), operationContracts: structuredClone(fixture.operationContracts), + workflowModelDescriptors: [], }); socket.setState({ isConnected: true, sid: 'unit-preview-sid' }); tasks.setState({ currentTask: undefined, queuedTasks: {}, sessionRuns: [] }); @@ -94,8 +95,8 @@ beforeEach(() => { const json = (value) => new Response(JSON.stringify(value), { status: 200, headers: { 'Content-Type': 'application/json' } }); if (endpoint === '/operations/starter') { - onMetadata?.(); - return json(fixture.response); + const response = onMetadata?.(JSON.parse(init.body)); + return json(response ?? fixture.response); } if (endpoint === '/runtime/status') { assert.equal(init.cache, 'no-store', 'Runtime identity reads must bypass HTTP caches.'); @@ -650,6 +651,316 @@ test('current plain-only declaration refuses every authored layout object before } }); +test('normal Enable selects only the declared raw alternative for null layout and returns to append for authored regions', async () => { + const saved = structuredClone(parent), + originalSelectionId = fixture.selection.authoringRecipeId; + const operationField = fixture.registry['modules.HuggingFaceTransformers.GenerateImageVideoText'].params.operation; + const options = structuredClone(operationField.options); + const rawResponse = structuredClone(fixture.response); + const { hashString, stableStringify } = await server.ssrLoadModule('/src/studio/stableHash.ts'); + try { + // Synthetic paired DTOs exercise generic selection; this is not model evidence. + parent.id = parent.id.replace(/:v1$/u, ':v3'); + child.id = `${parent.id}:preview`; + child.parent.authoringRecipeId = parent.id; + child.layoutPolicy = 'append-details-preserve-layout-v1'; + child.initialValues.find( + ([role, field]) => + role === child.verification.requestInputs.role && field === child.verification.requestInputs.operationField, + )[2] = 'enhance_prompt_append_details'; + child.verification.layoutRequestSuffixSha256 = sha('synthetic declared append request'); + child.contentHash = `studio-ancillary-v1-${hashString(stableStringify(Object.fromEntries(Object.entries(child).filter(([key]) => key !== 'contentHash'))))}`; + parent.contentHash = `studio-authoring-v1-${hashString(stableStringify(Object.fromEntries(Object.entries(parent).filter(([key]) => key !== 'contentHash'))))}`; + fixture.selection.authoringRecipeId = parent.id; + operationField.options.push({ + ...options.find((option) => option.value === 'enhance_prompt'), + value: 'enhance_prompt_append_details', + label: 'enhance_prompt_append_details', + }); + const { ownerId } = await setup(); + const descriptor = { + profileId: fixture.selection.executionProfileId, + pipeline: fixture.response.pipelineClass, + label: 'Synthetic paired model', + repo: child.verification.modelReceipt.source.repository, + evaluationOnly: true, + authoringRecipes: { [fixture.response.task]: parent.id }, + rawPromptAuthoringRecipes: { [fixture.response.task]: rawResponse.authoring.id }, + }; + registry.setState({ + nodesRegistry: structuredClone(fixture.registry), + workflowModelDescriptors: [structuredClone(descriptor)], + }); + const selections = []; + onMetadata = (selection) => { + selections.push(selection.authoringRecipeId); + return selection.authoringRecipeId === rawResponse.authoring.id ? rawResponse : fixture.response; + }; + for (const layout of [{}, { schemaVersion: 2, coordinateSpace: 'normalized_xyxy', regions: [] }]) { + editOwnerField(ownerId, 'layout_conditioning', layout); + const before = structuredClone(flow.getState().toObject()); + await assert.rejects(preview.enablePromptEnhancement(ownerId), /layout|regions|invalid/i); + assert.deepEqual(flow.getState().toObject(), before); + assert.equal(calls.includes('/graph'), false); + } + editOwnerField(ownerId, 'layout_conditioning', null); + flow.getState().resetHistory(); + const beforeEnable = structuredClone(flow.getState().toObject()); + onMetadata = (selection) => { + if (selection.authoringRecipeId === rawResponse.authoring.id) + registry.setState({ workflowModelDescriptors: [{ ...descriptor, rawPromptAuthoringRecipes: {} }] }); + return selection.authoringRecipeId === rawResponse.authoring.id ? rawResponse : fixture.response; + }; + await assert.rejects(preview.enablePromptEnhancement(ownerId), /metadata changed/); + assert.deepEqual(flow.getState().toObject(), beforeEnable); + assert.equal(flow.getState().historyPast.length, 0); + registry.setState({ workflowModelDescriptors: [structuredClone(descriptor)] }); + onMetadata = (selection) => { + selections.push(selection.authoringRecipeId); + return selection.authoringRecipeId === rawResponse.authoring.id ? rawResponse : fixture.response; + }; + const enabled = await preview.enablePromptEnhancement(ownerId); + assert.equal(enabled.id, rawResponse.authoring.ancillaryOperations[0].id); + assert.equal(activeOwner(ownerId).data.params.layout_conditioning.value, null); + assert.equal(activeOwner(ownerId).data.params.prompt.value, ' Authored unit prompt.\n'); + assert.equal(flow.getState().historyPast.length, 1, 'Parent selection and Enable are one Undo transaction.'); + assert.equal(calls.includes('/graph'), false, 'Enable does not submit a model task.'); + flow.getState().undo(); + assert.deepEqual(flow.getState().toObject(), beforeEnable); + flow.getState().redo(); + await preview.disablePromptEnhancement(ownerId, enabled.id); + const layout = { + schemaVersion: 2, + coordinateSpace: 'normalized_xyxy', + regions: [{ id: 'subject', description: 'Authored subject', action: 'place', targetBox: [0.1, 0.2, 0.8, 0.9] }], + }; + editOwnerField(ownerId, 'layout_conditioning', layout); + const appended = await preview.enablePromptEnhancement(ownerId); + assert.equal(appended.id, child.id); + assert.deepEqual(activeOwner(ownerId).data.params.layout_conditioning.value, layout); + assert.ok(selections.includes(rawResponse.authoring.id)); + assert.equal(calls.includes('/graph'), false); + } finally { + registry.setState({ workflowModelDescriptors: [] }); + operationField.options = options; + fixture.selection.authoringRecipeId = originalSelectionId; + for (const key of Object.keys(child)) delete child[key]; + Object.assign(child, saved.ancillaryOperations[0]); + for (const key of Object.keys(parent)) if (key !== 'ancillaryOperations') delete parent[key]; + Object.assign(parent, { ...saved, ancillaryOperations: [child] }); + } +}); + +test('an explicit declared raw provider choice preserves NF4 identity across Disable and reload and refuses structured or withdrawn choices', async () => { + const actual = JSON.parse(readFileSync('tests/fixtures/evaluation-prompt-enhancement-alternatives.v1.json', 'utf8')); + const display = JSON.parse(readFileSync('tests/fixtures/evaluation-image-authoring.v1.json', 'utf8')); + const operations = [ + ...new Map( + actual.starters.flatMap((starter) => + starter.nodes.map(({ operation }) => [ + `${operation.pipelineClass}:${operation.task}:${operation.operationId}`, + operation, + ]), + ), + ).values(), + ]; + const { parseEvaluationAuthoring } = await server.ssrLoadModule('/src/workflow/evaluationAuthoring.ts'); + const descriptors = parseEvaluationAuthoring( + { capabilities: display.capabilities, evaluationAuthoring: actual.evaluationAuthoring }, + [], + operations, + ).descriptors; + const offer = actual.evaluationAuthoring.authoringRecipes.find( + (row) => row.task === 'text_to_image' && row.rawAuthoringRecipeChoices, + ); + const nf4 = offer.rawAuthoringRecipeChoices.find((choice) => choice.authoringRecipeId !== offer.rawAuthoringRecipeId); + const source = actual.starters.find((starter) => starter.authoring.id === offer.authoringRecipeId); + const sourceRegistry = { + ...structuredClone(fixture.registry), + ...Object.fromEntries( + actual.starters.flatMap((starter) => starter.nodes.map(({ operation, node }) => [operation.nodeKey, node])), + ), + ...actual.registry, + }; + const { parseOperationStarter } = await server.ssrLoadModule('/src/workflow/operationStarterRequest.ts'); + const { createWorkflowDraft } = await server.ssrLoadModule('/src/workflow/workflowDraft.ts'); + const { expandFlowExecutionGraph } = await server.ssrLoadModule('/src/stores/useFlowStore.ts'); + const parsed = parseOperationStarter(source, offer.pipelineClass, offer.task, operations, { + executionProfileId: offer.executionProfileId, + authoringRecipeId: offer.authoringRecipeId, + }); + registry.setState({ + nodesRegistry: sourceRegistry, + operationContracts: operations, + workflowModelDescriptors: descriptors, + }); + flow.getState().replaceGraph(createWorkflowDraft(parsed, sourceRegistry).graph); + const owner = expandFlowExecutionGraph(flow.getState().nodes, flow.getState().edges).nodes.find( + (node) => node.data.operationAuthoring?.ancillaryParent, + ); + const ownerId = owner.id; + onMetadata = (selection) => { + const selected = actual.starters.find((starter) => starter.authoring.id === selection.authoringRecipeId); + assert.ok(selected, 'Only the captured current declaration may answer metadata.'); + return selected; + }; + try { + const declared = await preview.enablePromptEnhancement(ownerId, undefined, undefined, nf4.authoringRecipeId); + assert.equal(declared.parent.authoringRecipeId, nf4.authoringRecipeId); + const binding = activeOwner(ownerId).data.operationAuthoring.ancillaryBindings[0]; + const native = expandFlowExecutionGraph(flow.getState().nodes, flow.getState().edges); + const provider = native.nodes.find( + (node) => node.id === binding.roleNodes[declared.verification.runtimeInputs.role], + ); + for (const [name, expected] of [ + [declared.verification.runtimeInputs.dtypeField, 'bfloat16'], + [declared.verification.runtimeInputs.quantizationField, 'bnb_4bit'], + ]) + assert.equal(provider.data.params[name].value ?? provider.data.params[name].default, expected); + await preview.disablePromptEnhancement(ownerId, declared.id); + flow.getState().replaceGraph(JSON.parse(JSON.stringify(flow.getState().toObject()))); + const restored = await preview.enablePromptEnhancement(ownerId); + assert.equal(restored.id, declared.id, 'The exact existing raw parent preserves the explicit choice after reload.'); + await preview.disablePromptEnhancement(ownerId, restored.id); + const layout = { + schemaVersion: 2, + coordinateSpace: 'normalized_xyxy', + regions: [{ id: 'subject', description: 'Original subject', action: 'place', targetBox: [0, 0, 1, 1] }], + }; + editOwnerField(ownerId, 'layout_conditioning', layout); + const before = structuredClone(flow.getState().toObject()); + await assert.rejects( + preview.enablePromptEnhancement(ownerId, undefined, undefined, nf4.authoringRecipeId), + /requires Raw prompt mode/, + ); + assert.deepEqual(flow.getState().toObject(), before); + const changed = structuredClone(descriptors); + changed.find((row) => row.profileId === offer.executionProfileId).rawPromptAuthoringChoices[offer.task] = [ + { authoringRecipeId: offer.rawAuthoringRecipeId, label: 'Raw wording: FP32' }, + ]; + registry.setState({ workflowModelDescriptors: changed }); + await assert.rejects( + preview.enablePromptEnhancement(ownerId, undefined, undefined, nf4.authoringRecipeId), + /no longer declared/, + ); + assert.deepEqual(flow.getState().toObject(), before); + assert.equal(calls.includes('/graph'), false); + } finally { + registry.setState({ workflowModelDescriptors: [] }); + } +}); + +test('explicit authored-layout selection preserves its identity and refuses null, stale or conflicting choices atomically', async () => { + const actual = JSON.parse(readFileSync('tests/fixtures/evaluation-prompt-enhancement-alternatives.v1.json', 'utf8')); + const display = JSON.parse(readFileSync('tests/fixtures/evaluation-image-authoring.v1.json', 'utf8')); + const operations = [ + ...new Map( + actual.starters.flatMap((starter) => + starter.nodes.map(({ operation }) => [ + `${operation.pipelineClass}:${operation.task}:${operation.operationId}`, + operation, + ]), + ), + ).values(), + ]; + const { parseEvaluationAuthoring } = await server.ssrLoadModule('/src/workflow/evaluationAuthoring.ts'); + const descriptors = parseEvaluationAuthoring( + { capabilities: display.capabilities, evaluationAuthoring: actual.evaluationAuthoring }, + [], + operations, + ).descriptors; + const offer = actual.evaluationAuthoring.authoringRecipes.find((row) => row.task === 'text_to_image'); + const source = actual.starters.find((starter) => starter.authoring.id === offer.authoringRecipeId); + // Two synthetic identities share captured append semantics: this exercises + // selection/transactions, not the new constrained decoder or model output. + const alternative = structuredClone(source); + alternative.authoring.id = 'synthetic:explicit-layout:v1'; + const alternateChild = alternative.authoring.ancillaryOperations[0]; + alternateChild.id = `${alternative.authoring.id}:preview`; + alternateChild.parent.authoringRecipeId = alternative.authoring.id; + const { hashString, stableStringify } = await server.ssrLoadModule('/src/studio/stableHash.ts'); + const rehash = (item, prefix) => + `${prefix}${hashString(stableStringify(Object.fromEntries(Object.entries(item).filter(([key]) => key !== 'contentHash'))))}`; + alternateChild.contentHash = rehash(alternateChild, 'studio-ancillary-v1-'); + alternative.authoring.contentHash = rehash(alternative.authoring, 'studio-authoring-v1-'); + const descriptor = descriptors.find((row) => row.profileId === offer.executionProfileId); + descriptor.layoutPromptAuthoringChoices = { + [offer.task]: [ + { authoringRecipeId: offer.authoringRecipeId, label: 'Append wording' }, + { authoringRecipeId: alternative.authoring.id, label: 'Explicit layout mode' }, + ], + }; + const sourceRegistry = { + ...structuredClone(fixture.registry), + ...Object.fromEntries( + actual.starters.flatMap((starter) => starter.nodes.map(({ operation, node }) => [operation.nodeKey, node])), + ), + ...actual.registry, + }; + const { parseOperationStarter } = await server.ssrLoadModule('/src/workflow/operationStarterRequest.ts'); + const { createWorkflowDraft } = await server.ssrLoadModule('/src/workflow/workflowDraft.ts'); + const { expandFlowExecutionGraph } = await server.ssrLoadModule('/src/stores/useFlowStore.ts'); + const parsed = parseOperationStarter(source, offer.pipelineClass, offer.task, operations, { + executionProfileId: offer.executionProfileId, + authoringRecipeId: offer.authoringRecipeId, + }); + registry.setState({ + nodesRegistry: sourceRegistry, + operationContracts: operations, + workflowModelDescriptors: descriptors, + }); + flow.getState().replaceGraph(createWorkflowDraft(parsed, sourceRegistry).graph); + const ownerId = expandFlowExecutionGraph(flow.getState().nodes, flow.getState().edges).nodes.find( + (node) => node.data.operationAuthoring?.ancillaryParent, + ).id; + onMetadata = (selection) => + selection.authoringRecipeId === alternative.authoring.id + ? alternative + : actual.starters.find((starter) => starter.authoring.id === selection.authoringRecipeId); + const layout = { + schemaVersion: 2, + coordinateSpace: 'normalized_xyxy', + regions: [{ id: 'subject', description: 'Authored subject', action: 'place', targetBox: [0.1, 0.2, 0.8, 0.9] }], + }; + editOwnerField(ownerId, 'layout_conditioning', layout); + flow.getState().resetHistory(); + const before = structuredClone(flow.getState().toObject()); + const declared = await preview.enablePromptEnhancement( + ownerId, + undefined, + undefined, + undefined, + alternative.authoring.id, + ); + assert.equal(declared.parent.authoringRecipeId, alternative.authoring.id); + assert.deepEqual(activeOwner(ownerId).data.params.layout_conditioning.value, layout); + assert.equal(flow.getState().historyPast.length, 1); + flow.getState().undo(); + assert.deepEqual(flow.getState().toObject(), before); + flow.getState().redo(); + await preview.disablePromptEnhancement(ownerId, declared.id); + flow.getState().replaceGraph(JSON.parse(JSON.stringify(flow.getState().toObject()))); + const restored = await preview.enablePromptEnhancement(ownerId); + assert.equal(restored.id, declared.id, 'A saved explicit layout mode must not silently become append.'); + await preview.disablePromptEnhancement(ownerId, restored.id); + for (const [rawId, layoutId, expected] of [ + [undefined, 'withdrawn:v1', /no longer declared/], + [offer.rawAuthoringRecipeId, alternative.authoring.id, /one.*mode|both/i], + ]) { + const unchanged = structuredClone(flow.getState().toObject()); + await assert.rejects(preview.enablePromptEnhancement(ownerId, undefined, undefined, rawId, layoutId), expected); + assert.deepEqual(flow.getState().toObject(), unchanged); + } + editOwnerField(ownerId, 'layout_conditioning', null); + const noLayout = structuredClone(flow.getState().toObject()); + await assert.rejects( + preview.enablePromptEnhancement(ownerId, undefined, undefined, undefined, alternative.authoring.id), + /authored regions/, + ); + assert.deepEqual(flow.getState().toObject(), noLayout); + assert.equal(calls.includes('/graph'), false); +}); + test('optional controls render the raw path and disabled actions with existing wrapping tokens', async () => { const { ownerId } = await setup(); const previous = socket.getInitialState().isConnected; diff --git a/scripts/prompt-enhancement-summary.test.mjs b/scripts/prompt-enhancement-summary.test.mjs index 5f067b35..e79fea3a 100644 --- a/scripts/prompt-enhancement-summary.test.mjs +++ b/scripts/prompt-enhancement-summary.test.mjs @@ -2,7 +2,7 @@ import assert from 'node:assert/strict'; import { createHash } from 'node:crypto'; import { after, before, test } from 'node:test'; import { createServer } from 'vite'; -import { mkdtempSync, rmSync } from 'node:fs'; +import { mkdtempSync, rmSync, readFileSync } from 'node:fs'; import { tmpdir } from 'node:os'; import path from 'node:path'; @@ -196,6 +196,134 @@ const parse = (value) => contract.parsePromptEnhancementSummary(JSON.stringify(v const verify = ({ value, expected }) => contract.verifyPromptEnhancementSummaryBindings(JSON.stringify(value), expected); +// Source-only declaration with synthetic output/producer, never a model receipt. +const constraintDeclaration = JSON.parse( + readFileSync('tests/fixtures/authored-layout-constraint.v1.json', 'utf8'), +).contract; +const asciiCanonical = (value) => + canonical(value).replace( + /[\u007f-\uffff]/g, + (character) => `\\u${character.charCodeAt(0).toString(16).padStart(4, '0')}`, + ); +function constrainedFixture(images = 0) { + const input = fixture({ images, layout: layout(), prompt: 'Keep at its authored coordinates.' }); + const consumed = input.value.consumedInput; + const source = copy(constraintDeclaration); + const selectedAdapter = { ...input.value.adapter, id: source.adapterId }; + input.value.adapter = copy(selectedAdapter); + input.expected.adapter = copy(selectedAdapter); + consumed.fingerprints.prompt_adapter_id = source.adapterId; + consumed.fingerprints.operation = source.operation; + input.expected.operation = source.operation; + input.expected.layoutPolicy = source.layoutPolicy; + input.expected.authoredLayoutConstraint = copy(source); + const receipt = input.expected.modelReceipt; + receipt.source = { kind: 'hub', repository: source.repository, revision: source.revision }; + receipt.runtime.device = 'cuda:0'; + receipt.runtime.transformersVersion = source.transformersVersion; + input.value.modelReceipt = { ...copy(receipt), receiptDigest: sha(asciiCanonical(receipt)) }; + const rows = [ + { + id: 'region_1', + ...(images ? { from: 'target', src_bbox: null, tgt_bbox: [200, 100, 700, 400] } : { bbox: [200, 100, 700, 400] }), + desc: input.expected.authoredLayout.regions[0].description, + }, + ]; + const constraint = { + contract: source, + authoritativeRowsSha256: sha(asciiCanonical(rows)), + vocabularySha256: source.ordinaryVocabularySha256, + tokenizerSemanticSha256: source.tokenizerSemanticSha256, + renderedInputIdsSha256: consumed.fingerprints.rendered_input_ids_sha256, + promptTokenCount: input.value.proposal.inputTokens, + limits: { ...source.limits, max_new_tokens: input.value.request.controls.max_new_tokens }, + }; + consumed.fingerprints.authored_layout_constraint = constraint; + input.value.proposal.constraintCompletion = { + version: source.version, + terminalTokenId: source.effectiveEosTokenIds[0], + grammarComplete: true, + rawOutputSha256: sha('synthetic full raw output'), + generatedTokens: input.value.proposal.generatedTokens, + constraintFingerprintSha256: sha(asciiCanonical(constraint)), + }; + input.value.request.consumedInputSha256 = sha(canonical(consumed)); + return input; +} + +test('constrained authored-table summaries bind the source contract and exact original rows with genuine EOS at the token bound', async () => { + for (const images of [0, 2]) { + const input = constrainedFixture(images); + const result = await verify(input); + assert.equal(result.proposal.applicationAllowed, true); + assert.equal(result.proposal.semanticFidelityVerified, false); + input.value.proposal.generatedTokens = input.value.request.controls.max_new_tokens; + input.value.proposal.constraintCompletion.generatedTokens = input.value.proposal.generatedTokens; + assert.equal((await verify(input)).proposal.finishReason, 'stop'); + } +}); + +test('constrained proposals cannot borrow old keysets, drift contract/input/geometry or self-declare completion', async () => { + for (const mutate of [ + (x) => { + delete x.value.consumedInput.fingerprints.authored_layout_constraint; + }, + (x) => { + delete x.expected.authoredLayoutConstraint; + }, + (x) => { + x.value.consumedInput.fingerprints.authored_layout_constraint.contract.status = 'qualified'; + }, + (x) => { + const constraint = x.value.consumedInput.fingerprints.authored_layout_constraint; + constraint.contract = { ...constraint.contract, effectivePreTokenizerSha256: sha('foreign tokenizer') }; + }, + (x) => { + x.value.consumedInput.fingerprints.authored_layout_constraint.authoritativeRowsSha256 = sha('foreign rows'); + }, + (x) => { + x.value.consumedInput.fingerprints.authored_layout_constraint.renderedInputIdsSha256 = sha('foreign tokens'); + }, + (x) => { + x.value.consumedInput.fingerprints.authored_layout_constraint.limits.max_new_tokens++; + }, + (x) => { + x.value.consumedInput.fingerprints.authored_layout_constraint.promptTokenCount++; + }, + (x) => { + x.value.proposal.constraintCompletion.terminalTokenId = constraintDeclaration.padTokenId; + }, + (x) => { + x.value.proposal.constraintCompletion.constraintFingerprintSha256 = sha('foreign constraint'); + }, + (x) => { + x.value.proposal.constraintCompletion.grammarComplete = false; + }, + (x) => { + x.value.proposal.constraintCompletion.generatedTokens++; + }, + (x) => { + x.value.proposal.finishReason = 'length'; + }, + (x) => { + x.value.modelReceipt.runtime.dtype = x.expected.modelReceipt.runtime.dtype = 'bfloat16'; + }, + (x) => { + x.value.proposal.structuredProposal.layoutConditioning.regions[0].targetBox[0] = 0.3; + }, + (x) => { + x.value.consumedInput.fingerprints.operation = x.expected.operation = 'enhance_prompt'; + }, + ]) { + const changed = constrainedFixture(); + mutate(changed); + await assert.rejects(verify(changed)); + } + const old = fixture(); + old.value.proposal.constraintCompletion = constrainedFixture().value.proposal.constraintCompletion; + assert.throws(() => parse(old.value), /unexpected|properties|keys/i); +}); + // Explicitly synthetic composition protocol: not a captured model response. function appendFixture({ images = 0, diff --git a/scripts/registered-block-v2-adapter.test.mjs b/scripts/registered-block-v2-adapter.test.mjs index 7af5d092..d7867f09 100644 --- a/scripts/registered-block-v2-adapter.test.mjs +++ b/scripts/registered-block-v2-adapter.test.mjs @@ -588,6 +588,68 @@ test('definition and hashes ignore workflow ids, mutable values, layout, preview assert.equal('instanceOnlyMutation' in right.instance.definitionSnapshot.graph.nodes[0].data, false); }); +function sealedSignalFixture(instanceId, choices, declareSealedSignal = true) { + const definition = fixtureDefinition(); + const admission = definition.executionAdmissions[0]; + if (declareSealedSignal) + admission.dynamicFieldActions.push({ + role: 'generate', + field: 'images', + event: 'onSignal', + valueSource: 'artifact', + }); + const skeleton = fixtureSkeleton(definition, instanceId); + const node = skeleton.nodes.find((item) => item.data.huggingFaceClusterExecutionRole === 'generate'); + node.data.params.signal_choice = { type: 'string', options: ['base'], value: 'base' }; + node.data.params.images.signal = { direction: 'output', value: admission.artifact.repo }; + node.data.params.images.onSignal = [ + { action: 'value', target: 'signal_choice', prop: 'options', data: choices }, + { action: 'signal', target: 'components' }, + ]; + return { definition, skeleton, node }; +} + +test('sealed registered signal choices ignore unrelated availability and preserve the selected branch', () => { + const selected = 'fixture/image-model'; + const left = sealedSignalFixture('sealed-signal-base', { [selected]: ['base'], OtherPipeline: ['other'] }); + const right = sealedSignalFixture('sealed-signal-extra', { + [selected]: ['base'], + OtherPipeline: ['other'], + NewAvailablePipeline: ['new'], + }); + const before = structuredClone(right.skeleton); + const compile = ({ definition, skeleton }) => + adapter.compileRegisteredBlockV2(definition, skeleton, { instanceId: 'sealed-signal-result' }); + const baseline = compile(left); + const extended = compile(right); + assert.deepEqual(extended.definition, baseline.definition); + assert.deepEqual(right.skeleton, before, 'compilation must not mutate the ordinary source descriptor'); + const descriptor = extended.definition.graph.nodes.find(({ nodeId }) => nodeId === 'generate').data.params.images + .onSignal; + assert.deepEqual(descriptor[0].data, { [selected]: ['base'] }); + assert.deepEqual(descriptor[1], { action: 'signal', target: 'components' }); + const changed = sealedSignalFixture('sealed-signal-changed', { [selected]: ['different'], OtherPipeline: ['other'] }); + assert.notEqual(compile(changed).definition.contentHash, baseline.definition.contentHash); +}); + +test('unsealed registered signal maps remain semantic and sealed mismatches fail closed', () => { + const selected = 'fixture/image-model'; + const compile = ({ definition, skeleton }) => + adapter.compileRegisteredBlockV2(definition, skeleton, { instanceId: 'signal-boundary-result' }); + const ordinary = sealedSignalFixture('signal-ordinary', { [selected]: ['base'] }, false); + const extended = sealedSignalFixture( + 'signal-ordinary-extra', + { [selected]: ['base'], OtherPipeline: ['other'] }, + false, + ); + assert.notEqual(compile(ordinary).definition.contentHash, compile(extended).definition.contentHash); + const missing = sealedSignalFixture('signal-missing-branch', { OtherPipeline: ['other'] }); + assert.throws(() => compile(missing), /no exact options branch/); + const mismatch = sealedSignalFixture('signal-wrong-identity', { [selected]: ['base'] }); + mismatch.node.data.params.images.signal.value = 'OtherPipeline'; + assert.throws(() => compile(mismatch), /does not witness its declared sealed signal identity/); +}); + test('explicit false field-action busy flags are non-semantic while disabled true remains reviewed schema', () => { const source = fixtureDefinition(); const absentSkeleton = fixtureSkeleton(source, 'legacy-disabled-absent'); diff --git a/scripts/task-template-contracts.test.mjs b/scripts/task-template-contracts.test.mjs index 9becc962..e56da9c6 100644 --- a/scripts/task-template-contracts.test.mjs +++ b/scripts/task-template-contracts.test.mjs @@ -33,6 +33,107 @@ after(async () => { await server?.close(); }); +test('required Diffusers providers are hash-covered and bound to the exact declared overlay profile', async () => { + const runtime = await server.ssrLoadModule('/src/studio/optionalRuntimes.ts'); + const modelType = 'DDPMPipeline'; + const mode = 'unconditional_image'; + const providerId = 'reviewed-diffusers-provider-v1'; + const profile = { + id: 'provider-fixture:direct', + modes: [mode], + loader_module: 'modules.DiffusersImage', + loader_action: 'LoadPipeline', + execution_path: 'diffusers-pipeline', + pipeline_class: modelType, + default_repo: modelProfilesModule.DDPM_CIFAR10_REPO, + optional_runtime_delivery: 'optional_overlay', + optional_runtime_profiles: [providerId], + required_diffusers_provider: providerId, + optionalRuntimeRequirement: { + schemaVersion: 1, + delivery: 'optional_overlay', + requiredNow: true, + profileIds: [providerId], + executionProfileIds: ['provider-fixture:direct'], + state: 'missing', + reason: 'optional_runtime_missing', + }, + }; + const semantic = { + schemaVersion: 1, + canonicalizationVersion: 1, + id: 'provider-fixture:unconditional:v1', + modelType, + mode, + executionProfileId: profile.id, + loaderModule: profile.loader_module, + loaderAction: profile.loader_action, + executionPath: profile.execution_path, + pipelineClass: modelType, + defaultRepo: profile.default_repo, + roles: [ + ['diffusersImagePipeline', 'modules.DiffusersImage.LoadPipeline', 0, 0], + ['diffusersUnconditionalGenerate', 'modules.DiffusersImage.UnconditionalGenerate', 400, 0], + ['preview', 'modules.Image.Preview', 800, 0], + ], + edges: [ + ['diffusersImagePipeline', 'pipeline', 'diffusersUnconditionalGenerate', 'pipeline'], + ['diffusersUnconditionalGenerate', 'images', 'preview', 'image'], + ], + bindings: [['diffusersImagePipeline', 'quantized_components', 'emptyList']], + autoFields: [], + actions: [], + requiredDiffusersProvider: providerId, + }; + const signed = (value) => ({ + ...value, + contentHash: `studio-spec-v1-${hashModule.hashString(hashModule.stableStringify(value))}`, + }); + const parseProfile = (value) => + runtime.parseOptionalRuntimeExecutionProfiles([structuredClone(value)], undefined, (item) => item === mode)[0]; + const parseSpec = (value, selected = profile) => + executionSpecsModule.parseStudioExecutionSpecs([value], modelType, [mode], [selected]); + const parsed = parseProfile(profile); + for (const item of [semantic, { ...semantic, auxiliaryTerminalRoles: [] }]) { + assert.deepEqual(parseSpec(signed(item), parsed), [signed(item)]); + } + + for (const change of [ + { required_diffusers_provider: null }, + { required_diffusers_provider: '' }, + { required_diffusers_provider: 'wrong:runtime' }, + { optional_runtime_profiles: [] }, + { optional_runtime_profiles: ['different-provider'] }, + { optional_runtime_profiles: [providerId, providerId] }, + { optional_runtime_delivery: 'base' }, + { optionalRuntimeRequirement: undefined }, + { optionalRuntimeRequirement: { ...profile.optionalRuntimeRequirement, requiredNow: false } }, + { optionalRuntimeRequirement: { ...profile.optionalRuntimeRequirement, profileIds: ['different-provider'] } }, + ]) { + assert.throws(() => parseProfile({ ...profile, ...change }), undefined, JSON.stringify(change)); + } + for (const value of [null, '', 'different-provider', 'wrong:runtime', undefined]) { + assert.throws(() => parseSpec(signed({ ...semantic, requiredDiffusersProvider: value }))); + } + const { requiredDiffusersProvider: _required, ...legacySemantic } = semantic; + assert.throws(() => parseSpec(signed(legacySemantic)), 'A required provider cannot be omitted from its spec'); + const { required_diffusers_provider: _provider, ...legacyProfile } = profile; + assert.throws(() => parseSpec(signed(semantic), legacyProfile), 'The spec cannot introduce undeclared authority'); + const otherProfile = { + ...profile, + required_diffusers_provider: 'different-provider', + optional_runtime_profiles: ['different-provider'], + }; + assert.throws( + () => parseSpec({ ...signed(semantic), requiredDiffusersProvider: 'different-provider' }, otherProfile), + 'Even a consistently changed profile cannot reuse the old specification hash', + ); + for (const item of [legacySemantic, { ...legacySemantic, auxiliaryTerminalRoles: [] }]) { + const old = signed(item); + assert.deepEqual(parseSpec(old, legacyProfile), [old], 'Both old key sets retain their original hash and meaning'); + } +}); + test('empty multiple-choice bindings preserve an empty list while text bindings stay scalar', async () => { const modelType = 'DDPMPipeline'; const mode = 'unconditional_image'; diff --git a/scripts/template-gallery-assets.py b/scripts/template-gallery-assets.py index cd330a47..78d165fe 100644 --- a/scripts/template-gallery-assets.py +++ b/scripts/template-gallery-assets.py @@ -1194,6 +1194,11 @@ def assert_remote_manifest_matches(repo_id: str, revision: str) -> dict[str, Any local_rights_by_path = { record["path"]: record for record in local_rights["records"] } + if any(local_rights_by_path[path].get("publishDecision") != "approved" + for path in expected_paths): + raise AssetPipelineError( + "The approved-subset Dataset includes a held rights record." + ) expected_remote_rights = { "schemaVersion": 1, "assetSetId": remote["assetSetId"], @@ -1679,7 +1684,8 @@ def command_verify_remote(args: argparse.Namespace) -> int: "No activated Dataset source exists; pass --repo-id and --revision." ) if args.full: - manifest = validate_checked_manifest_contract() + # The reviewed source may select the exact rights-approved subset. + manifest = assert_remote_manifest_matches(repo_id, revision) verify_public_remote_snapshot(repo_id, revision, manifest) else: manifest = assert_remote_manifest_matches(repo_id, revision) diff --git a/scripts/template-gallery-assets.test.py b/scripts/template-gallery-assets.test.py index 17ec4cb1..bfe8a6d8 100644 --- a/scripts/template-gallery-assets.test.py +++ b/scripts/template-gallery-assets.test.py @@ -751,6 +751,115 @@ def test_public_snapshot_verification_is_full_and_unauthenticated(self) -> None: Path("/verified/snapshot"), manifest, reject_unexpected=True ) + def test_full_remote_verification_preserves_complete_and_exact_approved_subset_contracts(self) -> None: + repo = "modiff-project/template-gallery" + revision = "0123456789abcdef0123456789abcdef01234567" + cases = ("complete", "subset", "source-revision", "complete-identity", "missing-path", + "published-hold", "rights-mismatch", "asset-bytes", "unexpected-file") + for case in cases: + with self.subTest(case=case), tempfile.TemporaryDirectory() as temporary: + root = Path(temporary) + source_path, rights_path = root / "source.json", root / "rights.json" + manifest_path, snapshot = root / "manifest.json", root / "snapshot" + payloads = {"template-gallery/approved.bin": b"original public demo", + "template-gallery/held.bin": b"permission still pending"} + complete = ready_manifest([asset_record(path, body) for path, body in payloads.items()]) + with patch.object(assets, "ASSET_RIGHTS_PATH", rights_path): + ledger = assets.build_rights_template(complete) + for index, record in enumerate(ledger["records"]): + if index == 0 or case == "complete": + record.update({ + "publishDecision": "approved", "holdReason": None, + "creatorOrRightsholder": "Unit fixture author", + "creationMethod": "Original geometric unit fixture", + "sourceLicense": "not-applicable", "modelTerms": [], "aiGenerated": False, + "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [], + "assetLicense": "Unit fixture terms", "reviewedBy": "Unit fixture reviewer", + "reviewedAt": "2026-10-25", + }) + if case == "complete": + remote, remote_rights, unavailable = complete, ledger, [] + else: + remote, remote_rights, unavailable = assets.build_provisional_publication(complete, ledger) + source = {"mode": "huggingface", "repoId": repo, "revision": revision, + "assetSetId": remote["assetSetId"]} + if case != "complete": + source.update(completeAssetSetId=complete["assetSetId"], unavailableAssets=unavailable) + if case == "source-revision": + source["revision"] = "f" * 40 + elif case == "complete-identity": + source["completeAssetSetId"] = "sha256:canonical-json:" + "0" * 64 + elif case == "missing-path": + source["unavailableAssets"] = [] + elif case == "published-hold": + # Independent local/remote copies prove matching held rights + # reach the approval guard, rather than the ledger-mismatch guard. + remote_rights = json.loads(json.dumps(remote_rights)) + for record in (ledger["records"][0], remote_rights["records"][0]): + record.update(publishDecision="hold", holdReason="Unit hold remains.") + self.assertIsNot(ledger["records"][0], remote_rights["records"][0]) + self.assertEqual(ledger["records"][0], remote_rights["records"][0]) + elif case == "rights-mismatch": + remote_rights = json.loads(json.dumps(remote_rights)) + remote_rights["records"][0]["sha256"] = "sha256:bytes:" + "0" * 64 + for record in remote["assets"]: + target = snapshot / record["path"] + target.parent.mkdir(parents=True, exist_ok=True) + target.write_bytes(payloads[record["path"]]) + metadata = snapshot / "_modiff" + metadata.mkdir() + assets.write_json(metadata / "template-assets.v1.json", remote) + assets.write_json(metadata / "template-asset-rights.v1.json", remote_rights) + if case == "asset-bytes": + (snapshot / "template-gallery/approved.bin").write_bytes(b"changed") + elif case == "unexpected-file": + (metadata / "unreviewed.json").write_text("{}", encoding="utf-8") + assets.write_json(source_path, source) + assets.write_json(rights_path, ledger) + assets.write_json(manifest_path, complete) + source_before, rights_before = source_path.read_bytes(), rights_path.read_bytes() + api = Mock() + api.repo_info.return_value = SimpleNamespace(private=False) + api_factory = Mock(return_value=api) + snapshot_download = Mock(return_value=str(snapshot)) + output = io.StringIO() + with ( + patch.object(assets, "SOURCE_CONFIG_PATH", source_path), + patch.object(assets, "ASSET_RIGHTS_PATH", rights_path), + patch.object(assets, "ASSET_MANIFEST_PATH", manifest_path), + patch.object(assets, "required_asset_paths", return_value={"approved.bin", "held.bin"}), + patch.object(assets, "remote_manifest", return_value=remote), + patch.object(assets, "remote_rights_ledger", return_value=remote_rights), + patch.object(assets, "require_hub", return_value=(api_factory, None, snapshot_download)), + redirect_stdout(output), + ): + args = SimpleNamespace(repo_id=repo, revision=revision, full=True) + if case in {"complete", "subset"}: + self.assertEqual(assets.command_verify_remote(args), 0) + self.assertIn(f"for {remote['assetCount']} assets", output.getvalue()) + elif case == "published-hold": + with self.assertRaisesRegex(assets.AssetPipelineError, "includes a held rights record"): + assets.assert_remote_manifest_matches(repo, revision) + api_factory.assert_not_called() + snapshot_download.assert_not_called() + with self.assertRaisesRegex(assets.AssetPipelineError, "includes a held rights record"): + assets.command_verify_remote(args) + else: + with self.assertRaises(assets.AssetPipelineError): + assets.command_verify_remote(args) + self.assertEqual(source_path.read_bytes(), source_before) + self.assertEqual(rights_path.read_bytes(), rights_before) + if case in {"complete", "subset", "asset-bytes", "unexpected-file"}: + api_factory.assert_called_once_with(token=False) + api.repo_info.assert_called_once_with(repo_id=repo, repo_type="dataset", + revision=revision, token=False) + snapshot_download.assert_called_once_with( + repo_id=repo, repo_type="dataset", revision=revision, token=False, + allow_patterns=["template-gallery/**", "_modiff/**"]) + else: + api_factory.assert_not_called() + snapshot_download.assert_not_called() + def test_activation_writes_source_only_after_full_public_byte_verification( self, ) -> None: diff --git a/scripts/template-gallery-runner.mjs b/scripts/template-gallery-runner.mjs index 835fdae7..456b2bb7 100644 --- a/scripts/template-gallery-runner.mjs +++ b/scripts/template-gallery-runner.mjs @@ -394,8 +394,9 @@ Use --allow-non-exact only to capture a currently non-exact template after all o its model and input locks have been supplied. The resulting evidence must still pass the normal two-run comparison and manual quality review before publishing. -Use --allow-blocked-probe only for bounded qualification evidence. It never -permits direct publishing of a blocked template. +Use --allow-blocked-probe only for bounded qualification evidence. Combine it +with --record-qualification to retain a successful locked proof while the card +remains blocked. It never permits direct publishing of a blocked template. Options: --server Backend URL. Default: ${DEFAULT_SERVER} @@ -1388,6 +1389,13 @@ async function findRunOutputByStudioRole(page, { templateId, taskId, startedAt, ); } +export function templateQualificationArgs(args) { + return [ + join(ROOT, 'scripts', 'template-qualification.mjs'), + ...(args.allowBlockedProbe === true ? ['--allow-blocked-probe'] : []), + ]; +} + export function formOverridesForTemplate(template, args) { if (template.exampleStatus === 'blocked' && !args.allowBlockedProbe) { return { skipReason: `Template is ${template.exampleStatus}.` }; @@ -2494,7 +2502,7 @@ async function main() { if (!provenancePath) { throw new Error(`Template ${template.id} completed without a provenance file to record.`); } - const qualification = spawnSync(process.execPath, [join(ROOT, 'scripts', 'template-qualification.mjs')], { + const qualification = spawnSync(process.execPath, templateQualificationArgs(args), { cwd: ROOT, encoding: 'utf8', env: { diff --git a/scripts/template-gallery-runner.test.mjs b/scripts/template-gallery-runner.test.mjs index 8aa9964e..bce71422 100644 --- a/scripts/template-gallery-runner.test.mjs +++ b/scripts/template-gallery-runner.test.mjs @@ -36,6 +36,7 @@ import { runWithGalleryBrowserRecovery, shouldPrepareRuntimeForTemplate, taskProgressFingerprint, + templateQualificationArgs, waitForQueueIdle, waitForTaskTerminal, } from './template-gallery-runner.mjs'; @@ -817,6 +818,19 @@ test('gallery runner can retain successful locked runs without publishing galler assert.match(source, /!result\.sourceOnly && !result\.skipped/); }); +test('blocked-template registrar lookup is forwarded only by explicit qualification opt-in', () => { + const ordinary = parseArgs(['node', 'runner', '--record-qualification']); + const explicit = parseArgs(['node', 'runner', '--record-qualification', '--allow-blocked-probe']); + const script = resolve(ROOT, 'scripts/template-qualification.mjs'); + assert.deepEqual(templateQualificationArgs(ordinary), [script]); + assert.deepEqual(templateQualificationArgs(explicit), [script, '--allow-blocked-probe']); + assert.equal(explicit.publish, false); + assert.throws( + () => parseArgs(['node', 'runner', '--record-qualification', '--allow-blocked-probe', '--publish']), + /qualification-only and cannot be combined with --publish/, + ); +}); + test('resource qualification capture is a single non-publishing locked-workload run', () => { const args = parseArgs([ 'node', diff --git a/scripts/template-qualification.mjs b/scripts/template-qualification.mjs index a73c2726..320acce5 100644 --- a/scripts/template-qualification.mjs +++ b/scripts/template-qualification.mjs @@ -9,6 +9,11 @@ import { canonicalWorkflowContract, findCanonicalWorkflowRecord } from './releas const SCRIPT_DIR = dirname(fileURLToPath(import.meta.url)); const CLIENT_ROOT = resolve(SCRIPT_DIR, '..'); const BACKEND_ROOT = resolve(process.env.MODIFF_BACKEND_DIR || join(CLIENT_ROOT, '..', 'MoDiff')); +const qualificationArgs = process.argv.slice(2); +if (qualificationArgs.length > 1 || qualificationArgs.some((value) => value !== '--allow-blocked-probe')) { + throw new Error('Template qualification accepts only one optional --allow-blocked-probe argument.'); +} +const allowBlockedProbe = qualificationArgs.length === 1; const ARTIFACT_ROOT = process.env.MODIFF_LIVE_PROOF_ARTIFACT ? resolve(process.env.MODIFF_LIVE_PROOF_ARTIFACT) : null; const DIRECT_PROVENANCE_PATH = process.env.MODIFF_TEMPLATE_PROVENANCE ? resolve(process.env.MODIFF_TEMPLATE_PROVENANCE) @@ -80,7 +85,7 @@ if ((provenance.blockers ?? []).length > 0) { throw new Error(`Template proof contains blocker(s): ${provenance.blockers.join(' ')}`); } -const runtime = await loadTemplateRuntime(CLIENT_ROOT); +const runtime = await loadTemplateRuntime(CLIENT_ROOT, { includePlanning: allowBlockedProbe }); const templateId = provenance.template?.id ?? status.templateId; const template = runtime.templates.find((item) => item.id === templateId); if (!template) throw new Error(`Template ${String(templateId)} is not in the runtime catalog.`); diff --git a/scripts/template-qualification.test.mjs b/scripts/template-qualification.test.mjs index 8b8e3caa..3ad92631 100644 --- a/scripts/template-qualification.test.mjs +++ b/scripts/template-qualification.test.mjs @@ -1,5 +1,5 @@ import assert from 'node:assert/strict'; -import { mkdirSync, mkdtempSync, readFileSync, rmSync, writeFileSync } from 'node:fs'; +import { existsSync, mkdirSync, mkdtempSync, readFileSync, rmSync, writeFileSync } from 'node:fs'; import { tmpdir } from 'node:os'; import { join, resolve } from 'node:path'; import { spawnSync } from 'node:child_process'; @@ -11,7 +11,7 @@ import { loadTemplateRuntime } from './template-gallery-harness.mjs'; const ROOT = resolve(import.meta.dirname, '..'); const SCRIPT = join(ROOT, 'scripts', 'template-qualification.mjs'); -function writeBackendFixture(directory) { +function writeBackendFixture(directory, templateId = 'qwen_low_vram_product_concept') { const backendDirectory = join(directory, 'backend'); const graphPath = 'studio/qwen-image-modular-pipeline/text-to-image.json'; const graph = { @@ -36,7 +36,7 @@ function writeBackendFixture(directory) { id: 'QwenImageModularPipeline:text_to_image', modelType: 'QwenImageModularPipeline', mode: 'text_to_image', - sourceTemplateId: 'qwen_low_vram_product_concept', + sourceTemplateId: templateId, graphPath, graphHash: canonicalJsonHash(graph), }, @@ -48,9 +48,10 @@ function writeBackendFixture(directory) { return backendDirectory; } -async function fixture() { - const runtime = await loadTemplateRuntime(ROOT); - const template = runtime.templates.find((candidate) => candidate.id === 'qwen_low_vram_product_concept'); +async function fixture(templateId = 'qwen_low_vram_product_concept') { + const runtime = await loadTemplateRuntime(ROOT, { includePlanning: true }); + const template = runtime.templates.find((candidate) => candidate.id === templateId); + assert.ok(template, templateId); const expectedOutput = template.example?.expectedOutput; return { schemaVersion: 2, @@ -78,9 +79,10 @@ async function fixture() { output: { items: [ { - mediaType: 'image', + mediaType: template.example.mediaType, width: expectedOutput.width, height: expectedOutput.height, + ...(expectedOutput.frames ? { frames: expectedOutput.frames } : {}), decodedSha256: 'sha256:decoded-rgba:test', }, ], @@ -171,3 +173,153 @@ test('template proofs with output dimensions that violate the locked contract ar assert.match(result.stderr, /output contract mismatch for width/i); rmSync(directory, { recursive: true, force: true }); }); + +// Synthetic registrar fixtures test evidence retention, never model output quality. +const BLOCKED_TEMPLATE_ID = 'wan_vace_direct_text_to_video'; + +function qualificationFixtureProcess(directory, provenance, argv = [], { canonical = true } = {}) { + const provenancePath = join(directory, 'proof.json'); + const registryPath = join(directory, 'registry.json'); + const backendDirectory = canonical + ? writeBackendFixture(directory, provenance.template.id) + : join(directory, 'backend'); + if (!canonical) { + mkdirSync(join(backendDirectory, 'data'), { recursive: true }); + writeFileSync(join(backendDirectory, 'data', 'workflow-library-manifest.json'), '{"workflows":[]}\n'); + } + writeFileSync(provenancePath, `${JSON.stringify(provenance, null, 2)}\n`); + const result = spawnSync(process.execPath, [SCRIPT, ...argv], { + cwd: ROOT, + encoding: 'utf8', + timeout: 30_000, + env: { + ...process.env, + MODIFF_BACKEND_DIR: backendDirectory, + MODIFF_TEMPLATE_PROVENANCE: provenancePath, + MODIFF_TEMPLATE_RECEIPT_REGISTRY: registryPath, + MODIFF_TEMPLATE_PROVENANCE_DIR: join(directory, 'retained'), + }, + }); + return { result, registryPath }; +} + +test('blocked template lookup requires explicit opt-in and retaining a receipt cannot promote its source', async () => { + const directory = mkdtempSync(join(tmpdir(), 'modiff-template-qualification-blocked-')); + const sourcePaths = [ + join(ROOT, 'src/studio/templates.ts'), + join(ROOT, 'src/studio/templateOperationSelections.ts'), + join(ROOT, 'public/template-gallery/manifest.json'), + ]; + const sourceBefore = sourcePaths.map((file) => readFileSync(file)); + const provenance = await fixture(BLOCKED_TEMPLATE_ID); + try { + const ordinary = qualificationFixtureProcess(directory, provenance); + assert.notEqual(ordinary.result.status, 0); + assert.match(ordinary.result.stderr, /not in the runtime catalog/); + assert.equal(existsSync(ordinary.registryPath), false); + const explicit = qualificationFixtureProcess(directory, provenance, ['--allow-blocked-probe']); + assert.equal(explicit.result.status, 0, explicit.result.stderr); + const registry = JSON.parse(readFileSync(explicit.registryPath, 'utf8')); + assert.equal(registry.receipts.length, 1); + assert.equal(registry.receipts[0].templateId, BLOCKED_TEMPLATE_ID); + assert.equal(registry.receipts[0].catalogTemplateLockHash, provenance.template.catalogTemplateLockHash); + assert.equal(registry.receipts[0].promptSettingsHash, provenance.template.promptSettingsHash); + assert.equal(registry.receipts[0].outputHash, provenance.mediaHash); + const runtime = await loadTemplateRuntime(ROOT, { includePlanning: true }); + assert.equal(runtime.templates.find((item) => item.id === BLOCKED_TEMPLATE_ID).example.status, 'blocked'); + sourcePaths.forEach((file, index) => assert.deepEqual(readFileSync(file), sourceBefore[index], file)); + } finally { + rmSync(directory, { recursive: true, force: true }); + } +}); + +test('blocked lookup opt-in retains every receipt prerequisite', async (t) => { + const provenance = await fixture(BLOCKED_TEMPLATE_ID); + const cases = [ + [ + 'proof blockers', + (value) => { + value.blockers = ['unresolved source identity']; + }, + /contains blocker/, + ], + [ + 'catalog lock', + (value) => { + value.template.catalogTemplateLockHash = 'tpl_stale'; + }, + /catalog lock is stale/i, + ], + [ + 'prompt lock', + (value) => { + value.template.promptSettingsHash = 'prompt_stale'; + }, + /prompt\/settings lock is stale/i, + ], + ['canonical workflow', () => {}, /no current canonical workflow/i, { canonical: false }], + [ + 'output contract', + (value) => { + value.output.items[0].width += 16; + }, + /output contract mismatch for width/i, + ], + [ + 'immutable model', + (value) => { + value.modelRevision = 'model@main'; + }, + /missing modelRevision/, + ], + [ + 'resource identity', + (value) => { + value.execution.resourceCandidateId = null; + }, + /missing resourceCandidateId/, + ], + [ + 'timing', + (value) => { + value.execution.elapsedSeconds = null; + }, + /missing executionDurationSeconds/, + ], + [ + 'memory', + (value) => { + value.execution.peakMemoryBytes = 0; + }, + /missing peakMemoryBytes/, + ], + ]; + for (const [name, change, expected, options] of cases) { + await t.test(name, () => { + const directory = mkdtempSync(join(tmpdir(), 'modiff-template-qualification-blocked-negative-')); + try { + const candidate = structuredClone(provenance); + change(candidate); + const { result, registryPath } = qualificationFixtureProcess( + directory, + candidate, + ['--allow-blocked-probe'], + options, + ); + assert.notEqual(result.status, 0); + assert.match(result.stderr, expected); + assert.equal(existsSync(registryPath), false); + } finally { + rmSync(directory, { recursive: true, force: true }); + } + }); + } +}); + +test('template qualification rejects unknown or repeated lookup options', () => { + for (const argv of [['--include-planning'], ['--publish'], ['--allow-blocked-probe', '--allow-blocked-probe']]) { + const result = spawnSync(process.execPath, [SCRIPT, ...argv], { cwd: ROOT, encoding: 'utf8', timeout: 30_000 }); + assert.notEqual(result.status, 0); + assert.match(result.stderr, /only one optional --allow-blocked-probe argument/); + } +}); diff --git a/scripts/weight-format-template-binding.test.mjs b/scripts/weight-format-template-binding.test.mjs new file mode 100644 index 00000000..23f3c172 --- /dev/null +++ b/scripts/weight-format-template-binding.test.mjs @@ -0,0 +1,988 @@ +import assert from 'node:assert/strict'; +import { readFile } from 'node:fs/promises'; +import path from 'node:path'; +import { fileURLToPath } from 'node:url'; +import { after, before, test } from 'node:test'; +import { createServer } from 'vite'; + +const ROOT = path.resolve(path.dirname(fileURLToPath(import.meta.url)), '..'); +const original = Object.fromEntries(['window', 'localStorage', 'fetch'].map((key) => [key, globalThis[key]])); +let server, fixture; +const load = (name) => server.ssrLoadModule(`/src/${name}.ts`); + +before(async () => { + const storage = new Map(); + globalThis.localStorage = { + getItem: (key) => storage.get(key) ?? null, + setItem: (key, value) => storage.set(key, String(value)), + removeItem: (key) => storage.delete(key), + }; + globalThis.window = { + location: { origin: 'http://127.0.0.1:5191' }, + localStorage: globalThis.localStorage, + dispatchEvent: () => true, + }; + globalThis.fetch = async (url, options) => { + assert.match(String(url), /\/cache$/u, 'these units may only simulate normal cache eviction'); + assert.equal(options?.method, 'DELETE'); + return new Response(JSON.stringify({ error: false, nodes: JSON.parse(options.body).nodes }), { + headers: { 'Content-Type': 'application/json' }, + }); + }; + fixture = JSON.parse(await readFile(path.join(ROOT, 'tests/fixtures/public-flux3-missing-provider.v1.json'), 'utf8')); + server = await createServer({ + root: ROOT, + configFile: false, + logLevel: 'silent', + optimizeDeps: { entries: [], noDiscovery: true }, + server: { middlewareMode: true, watch: null }, + appType: 'custom', + }); +}); +after(async () => { + await server?.close(); + for (const [key, value] of Object.entries(original)) { + if (value === undefined) delete globalThis[key]; + else globalThis[key] = value; + } +}); + +function selectedCase(modelType = 'Flux3DistilledModularPipeline') { + const capability = fixture.capabilitiesPayload.capabilities.find((item) => item.modelType === modelType); + assert.ok(capability, modelType); + const spec = capability.studioExecutionSpecs.find((item) => item.mode === 'text_to_image'); + assert.ok(spec); + return { + capability, + spec, + profile: capability.executionProfiles.find((item) => item.id === spec.executionProfileId), + }; +} + +async function formFor(capability, values = {}) { + const { DEFAULT_STUDIO_FORM } = await load('studio/modelProfiles'); + return { + ...DEFAULT_STUDIO_FORM, + mode: 'text_to_image', + modelType: capability.modelType, + modelRepo: capability.defaultRepo, + resourceMode: 'expert', + dtype: 'bfloat16', + quantizationMode: 'none', + autoOffload: false, + offloadMode: 'none', + width: 512, + height: 512, + randomSeed: false, + ...values, + }; +} + +// Keep this first and import only pre-existing modules: old source must fail on +// its actual dropped/hardcoded value, never on absence of the new helper file. +test('persisted explicit FP8r reaches the declared semantic weight-format binding', async () => { + const { capability, spec } = selectedCase(); + const contracts = await load('studio/outputContracts'); + const values = await load('studio/executionSpecValues'); + const form = await formFor(capability, { weightFormat: 'fp8r' }); + const restored = contracts.coerceStudioFormState(form); + const resolved = values.resolveStudioExecutionSpecValues({ ...restored, weightFormat: 'fp8r' }, spec, capability); + assert.deepEqual([restored.weightFormat, resolved.weightFormat], ['fp8r', 'fp8r']); + assert.deepEqual([resolved.dtype, resolved.quantizationMode], ['bfloat16', 'none']); +}); + +async function descriptors() { + const operations = await load('workflow/operationContracts'); + const catalog = await load('workflow/operationCatalog'); + const choices = await load('workflow/workflowChoices'); + const payload = fixture.capabilitiesPayload; + const contracts = operations.parseOperationContracts( + payload.operationContracts, + payload.operationContractSchemaVersion, + ); + const support = catalog.parsePipelineSupport( + payload.pipelineSupport, + payload.pipelineSupportSchemaVersion, + contracts, + ); + return { contracts, rows: choices.parseWorkflowModelDescriptors(payload, support) }; +} + +async function loaderFor(capability, spec) { + const { contracts } = await descriptors(); + const requests = await load('workflow/operationStarterRequest'); + const operations = await load('workflow/operationAuthoring'); + const source = fixture.starters.find( + (item) => + item.pipelineClass === spec.pipelineClass && + item.task === spec.mode && + item.authoring.executionProfileIds.includes(spec.executionProfileId) && + item.authoring.id.endsWith(':prompt-preview-append-fp32:v1'), + ); + assert.ok(source, spec.executionProfileId); + const raw = structuredClone(source); + const selection = { executionProfileId: spec.executionProfileId, authoringRecipeId: raw.authoring.id }; + const starter = requests.parseOperationStarter(raw, spec.pipelineClass, spec.mode, contracts, selection); + const graph = operations.createOperationStarter(starter, { x: 80, y: 120 }); + const loader = graph.nodes.find( + (node) => node.data.module === 'modules.ModularDiffusers' && node.data.action === 'ModelsLoader', + ); + assert.ok(loader); + assert.equal(loader.data.params.repo_id.value.value, capability.defaultRepo); + return { loader, raw, starter }; +} + +function withFormat(loader, format = 'fp8r') { + const node = structuredClone(loader); + node.data.params.weight_format = { ...node.data.params.weight_format, value: format }; + return node; +} + +test('format values are closed and current loader options are required for non-native edits', async () => { + const formats = await load('studio/weightFormat'); + assert.equal(formats.studioWeightFormat(undefined), 'native'); + for (const value of ['native', 'fp8r', 'nvfp4']) assert.equal(formats.studioWeightFormat(value), value); + for (const value of [null, true, 1, [], {}, 'FP8R', 'bnb_4bit']) + assert.throws(() => formats.studioWeightFormat(value), /backend-declared weight format/); + assert.equal(formats.assertStudioWeightFormatOptions(undefined), 'native'); + assert.throws(() => formats.assertStudioWeightFormatOptions('fp8r'), /current loader fields/); + assert.throws( + () => formats.assertStudioWeightFormatOptions('fp8r', { options: ['native'] }), + /current loader fields/, + ); + assert.equal(formats.assertStudioWeightFormatOptions('fp8r', { options: ['native', 'fp8r'] }), 'fp8r'); +}); + +test('native absence preserves historical template and prompt lock shapes while explicit formats bind new locks', async () => { + const exactness = await load('studio/templateExactness'); + const templates = await load('studio/templates'); + const hashes = await load('studio/stableHash'); + const template = structuredClone( + templates.STUDIO_TEMPLATES.find((item) => item.id === 'qwen_low_vram_product_concept'), + ); + assert.ok(template); + const before = structuredClone(template); + const native = { + ...template, + example: { ...template.example, lockedSettings: { ...template.example.lockedSettings, weightFormat: 'native' } }, + }; + const oldSettings = exactness.getTemplateLockedSettings(template); + assert.equal(Object.hasOwn(oldSettings, 'weightFormat'), false); + assert.deepEqual(exactness.getTemplateLockedSettings(native), oldSettings); + assert.equal(exactness.getTemplateLockHash(native), exactness.getTemplateLockHash(template)); + assert.equal( + exactness.getPromptSettingsHash({ ...oldSettings, weightFormat: 'native' }), + exactness.getPromptSettingsHash(oldSettings), + ); + assert.equal( + exactness.getPromptSettingsHash(oldSettings), + `ps_${hashes.hashString(hashes.stableStringify(oldSettings))}`, + ); + const fp8 = { + ...native, + example: { ...native.example, lockedSettings: { ...native.example.lockedSettings, weightFormat: 'fp8r' } }, + }; + const fp4 = { + ...fp8, + example: { ...fp8.example, lockedSettings: { ...fp8.example.lockedSettings, weightFormat: 'nvfp4' } }, + }; + assert.equal(exactness.getTemplateLockedSettings(fp8).weightFormat, 'fp8r'); + assert.notEqual(exactness.getTemplateLockHash(fp8), exactness.getTemplateLockHash(template)); + assert.notEqual(exactness.getTemplateLockHash(fp4), exactness.getTemplateLockHash(fp8)); + assert.notEqual( + exactness.getPromptSettingsHash(exactness.getTemplateLockedSettings(fp8)), + exactness.getPromptSettingsHash(oldSettings), + ); + assert.deepEqual(template, before); +}); + +test('each real public owner joins only its declared immutable weight-format inventory', async () => { + const formats = await load('studio/weightFormat'); + const { rows } = await descriptors(); + const fixtureBefore = structuredClone(fixture); + for (const modelType of ['Flux3DistilledModularPipeline', 'Flux3ModularPipeline']) { + const { capability, spec } = selectedCase(modelType); + const { loader } = await loaderFor(capability, spec); + assert.equal(formats.selectedNodeWeightFormatArtifact(loader, rows), null); + for (const format of ['fp8r', 'nvfp4']) { + const node = withFormat(loader, format); + const selected = formats.selectedNodeWeightFormatArtifact(node, rows); + const expected = capability.weightFormatSelections.find((item) => item.weightFormat === format); + assert.ok(expected); + assert.deepEqual(selected.selection, expected); + assert.equal(selected.descriptor.profileId, spec.executionProfileId); + assert.deepEqual(selected.options, ['native', 'fp8r', 'nvfp4']); + assert.equal( + Object.hasOwn(node.data.params, 'execution_profile_id'), + false, + 'actual ordinary loader does not carry a fabricated profile parameter', + ); + for (const [field, value] of [ + ['revision', '0'.repeat(40)], + ['model_type', 'ForeignPipeline'], + ]) { + const invalid = structuredClone(node); + invalid.data.params[field].value = value; + const before = structuredClone(invalid); + assert.throws(() => formats.selectedNodeWeightFormatArtifact(invalid, rows), /exact backend|do not declare/); + assert.deepEqual(invalid, before); + } + assert.throws( + () => + formats.selectedNodeWeightFormatArtifact( + node, + rows.filter((row) => row.profileId !== spec.executionProfileId), + ), + /exact backend|do not declare/, + ); + const descriptor = rows.find((row) => row.profileId === spec.executionProfileId); + const ambiguous = [...rows, { ...descriptor, profileId: 'ambiguous-same-artifact' }]; + assert.throws(() => formats.selectedNodeWeightFormatArtifact(node, ambiguous), /exact backend|do not declare/); + assert.equal( + formats.selectedNodeWeightFormatArtifact(node, ambiguous, spec.executionProfileId).descriptor.profileId, + spec.executionProfileId, + 'a verified template selection can disambiguate its exact profile', + ); + assert.throws( + () => formats.selectedNodeWeightFormatArtifact(node, [...rows, descriptor], spec.executionProfileId), + /exact backend|do not declare/, + 'the same explicit profile cannot have duplicate authorities', + ); + const local = structuredClone(node); + local.data.params.repo_id.value = { source: 'local', value: 'local-file.safetensors' }; + assert.throws(() => formats.selectedNodeWeightFormatArtifact(local, rows), /immutable Hub/); + const foreign = structuredClone(node); + foreign.data.module = 'modules.Foreign'; + assert.throws(() => formats.selectedNodeWeightFormatArtifact(foreign, rows), /does not declare/); + } + } + assert.deepEqual(fixture, fixtureBefore, 'source metadata and dormant qualification flags must remain unchanged'); +}); + +test('the public template creator binds FP8r from exact metadata without changing the shared registry', async () => { + const { createTemplateOperationGraph } = await load('studio/templateOperationWorkflow'); + const { expandFlowExecutionGraph } = await load('stores/useFlowStore'); + const { STUDIO_TEMPLATES } = await load('studio/templates'); + const { rows } = await descriptors(); + const originalFixture = structuredClone(fixture); + // This CPU source capture omits the ordinary Preview leaf. Reuse its real + // maintained definition without changing either shared metadata fixture. + const ancillary = JSON.parse(await readFile(path.join(ROOT, 'tests/fixtures/ancillary-authoring.v1.json'), 'utf8')); + const preview = ancillary.parents[0].registry['modules.Image.Preview']; + assert.deepEqual([preview.module, preview.action], ['modules.Image', 'Preview']); + const registry = { ...structuredClone(fixture.registry), 'modules.Image.Preview': structuredClone(preview) }; + const registryBefore = structuredClone(registry); + for (const modelType of ['Flux3DistilledModularPipeline', 'Flux3ModularPipeline']) { + const { capability, spec } = selectedCase(modelType); + const { starter } = await loaderFor(capability, spec); + const rawOwner = starter.nodes.find((item) => item.node.action === 'ModelsLoader'); + const declaredDevice = rawOwner.node.params.device.value; + assert.equal(declaredDevice, 'cpu:0', 'this source fixture declares only CPU devices'); + // A legitimate initial static field can still be native-only. Current + // descriptor metadata supplies choices to this instance, not to the registry. + rawOwner.node.params.weight_format.options = ['native']; + rawOwner.node.params.weight_format.hidden = true; + const template = structuredClone(STUDIO_TEMPLATES.find((item) => item.id === 'qwen_low_vram_product_concept')); + Object.assign(template, { + id: 'unit-format-template', + modelType, + mode: 'text_to_image', + workflowBlocks: [], + modelArtifact: { source: 'hub', value: capability.defaultRepo, revision: capability.revisionCandidates[0] }, + executionSelection: { + schemaVersion: 1, + pipelineClass: spec.pipelineClass, + task: spec.mode, + executionProfileId: spec.executionProfileId, + bindingSpec: { modelType, mode: spec.mode }, + implementation: 'native_stages', + memoryPolicy: 'custom_experimental', + authoringRecipeId: starter.authoring.id, + }, + }); + template.example = { ...template.example, mediaType: 'image', modelRevision: capability.revisionCandidates[0] }; + const graph = createTemplateOperationGraph( + template, + await formFor(capability, { weightFormat: 'fp8r', device: declaredDevice }), + starter, + registry, + spec, + capability, + { workflowModelDescriptors: rows }, + ); + const effective = expandFlowExecutionGraph(graph.nodes, graph.edges); + const owner = effective.nodes.find((node) => node.data.action === 'ModelsLoader'); + assert.ok(owner, 'inspect the declared executable owner inside the normal grouped template'); + assert.equal(owner.data.params.weight_format.value, 'fp8r'); + assert.deepEqual(owner.data.params.weight_format.options, ['native', 'fp8r', 'nvfp4']); + assert.equal(owner.data.params.weight_format.hidden, false); + assert.equal(Object.hasOwn(owner.data.params, 'execution_profile_id'), false); + assert.deepEqual(owner.data.params.repo_id.value, { source: 'hub', value: capability.defaultRepo }); + assert.equal(owner.data.params.revision.value, capability.revisionCandidates[0]); + } + assert.deepEqual(registry, registryBefore); + assert.deepEqual(fixture, originalFixture); + assert.equal(fixture.activeProvider, null, 'graph construction does not install or qualify the missing provider'); +}); + +test('native-only cache cannot satisfy a distinct variant and deduplication preserves both exact file selections', async () => { + const formats = await load('studio/weightFormat'); + const artifacts = await load('studio/artifactRequirements'); + const { capability, spec } = selectedCase(); + const { loader } = await loaderFor(capability, spec); + const { rows } = await descriptors(); + const selected = formats.selectedNodeWeightFormatArtifact(withFormat(loader), rows).selection; + const reference = (files) => ({ + nodeId: loader.id, + kind: 'repo', + value: selected.repo, + revision: selected.revision, + paramKey: 'repo_id', + downloadFiles: files, + }); + const baseCache = { + id: selected.repo, + complete: true, + installed: true, + planned_revision: selected.revision, + planned_files: [...capability.downloadFiles], + }; + const requirements = artifacts.getGraphWorkflowArtifactRequirements({ + references: [ + reference(capability.downloadFiles), + reference(selected.downloadFiles), + reference(selected.downloadFiles), + ], + hfCache: [baseCache], + localModels: [], + modelCacheDiagnostics: null, + }); + assert.equal( + requirements.length, + 2, + 'native and variant manifests are distinct, duplicate exact variant is one target', + ); + const missing = requirements.find((item) => item.installTarget?.files?.includes('variants/fp8r/model.safetensors')); + assert.ok(missing); + assert.equal(missing.status.runnable, false); + assert.equal(missing.primaryAction, 'Repair'); + assert.deepEqual(missing.installTarget.files, selected.downloadFiles); + assert.equal(missing.installTarget.revision, selected.revision); + assert.notEqual(missing.installTarget.files, selected.downloadFiles); + const installed = artifacts.getGraphWorkflowArtifactRequirements({ + references: [reference(selected.downloadFiles)], + hfCache: [{ ...baseCache, planned_files: [...selected.downloadFiles] }], + localModels: [], + modelCacheDiagnostics: null, + }); + assert.equal(installed[0].status.runnable, true); + assert.equal(installed[0].installTarget, undefined); + const separateInstalled = artifacts.getGraphWorkflowArtifactRequirements({ + references: [ + reference(capability.downloadFiles), + reference(selected.downloadFiles), + reference(selected.downloadFiles), + ], + hfCache: [{ ...baseCache, planned_files: [...new Set([...capability.downloadFiles, ...selected.downloadFiles])] }], + localModels: [], + modelCacheDiagnostics: null, + }); + assert.equal( + separateInstalled.every((item) => item.status.runnable && item.installTarget === undefined), + true, + ); + assert.equal(separateInstalled.length, 2); + assert.equal( + new Set(separateInstalled.map((item) => item.id)).size, + 2, + 'exact manifest identity must survive deduplication after Ready drops installTarget', + ); +}); + +test('incompatible model or execution changes require an explicit Native choice without mutating the draft', async () => { + const formats = await load('studio/weightFormat'); + const values = await load('studio/executionSpecValues'); + const { rows } = await descriptors(); + const { capability, spec } = selectedCase(); + const form = await formFor(capability, { weightFormat: 'fp8r' }); + const before = structuredClone(form); + assert.doesNotThrow(() => formats.assertFormWeightFormatSelection(form, spec, capability, rows)); + const noBinding = { ...spec, bindings: spec.bindings.filter(([, , source]) => source !== 'weightFormat') }; + assert.throws(() => values.resolveStudioExecutionSpecValues(form, noBinding, capability), /does not declare/); + for (const [selectedSpec, selectedCapability, selectedRows] of [ + [noBinding, capability, rows], + [spec, { ...capability, modelType: 'ForeignPipeline' }, rows], + [spec, { ...capability, revisionCandidates: ['0'.repeat(40)] }, rows], + [spec, capability, []], + ]) + assert.throws( + () => formats.assertFormWeightFormatSelection(form, selectedSpec, selectedCapability, selectedRows), + /Choose Native explicitly; the graph is unchanged/, + ); + assert.deepEqual(form, before); + assert.doesNotThrow(() => + formats.assertFormWeightFormatSelection( + { ...form, weightFormat: 'native' }, + noBinding, + { ...capability, modelType: 'ForeignPipeline' }, + [], + ), + ); +}); + +test('managed weight-format aliases validate every current target before changing form or siblings', async () => { + const sync = await load('studio/managedControlSync'); + const { useFlowStore } = await load('stores/useFlowStore'); + const { useStudioStore } = await load('stores/useStudioStore'); + const { capability, spec } = selectedCase(); + const { loader } = await loaderFor(capability, spec); + const originalFlow = useFlowStore.getState(); + const originalStudio = useStudioStore.getState(); + try { + const node = (id) => { + const value = withFormat(loader, 'native'); + value.id = id; + value.data.studioRole = 'models'; + value.data.params.weight_format.options = ['native', 'fp8r', 'nvfp4']; + return value; + }; + const a = node('format-a'), + b = node('format-b'), + ordinary = node('format-manual'); + const binding = { + mode: 'text_to_image', + modelType: capability.modelType, + nodes: { models: a.id }, + managedNodeIds: [a.id, b.id], + managedEdgeIds: [], + fingerprint: 'unit-weight-format', + createdAt: 1, + updatedAt: 1, + }; + useFlowStore.setState({ nodes: [a, b, ordinary], edges: [] }); + useStudioStore.setState({ form: await formFor(capability), graphBinding: binding }); + sync.syncManagedNodeControlChange(a.id, 'weight_format', 'fp8r'); + assert.equal(useStudioStore.getState().form.weightFormat, 'fp8r'); + for (const id of [a.id, b.id]) + assert.equal( + useFlowStore.getState().nodes.find((item) => item.id === id).data.params.weight_format.value, + 'fp8r', + ); + assert.equal( + useFlowStore.getState().nodes.find((item) => item.id === ordinary.id).data.params.weight_format.value, + 'native', + ); + const restricted = structuredClone(useFlowStore.getState().nodes); + restricted.find((item) => item.id === b.id).data.params.weight_format.options = ['native']; + useFlowStore.setState({ nodes: restricted }); + const formBefore = structuredClone(useStudioStore.getState().form); + const nodesBefore = structuredClone(useFlowStore.getState().nodes); + assert.throws(() => sync.syncManagedNodeControlChange(a.id, 'weight_format', 'nvfp4'), /current loader fields/); + assert.deepEqual(useStudioStore.getState().form, formBefore); + assert.deepEqual(useFlowStore.getState().nodes, nodesBefore); + sync.syncManagedNodeControlChange(ordinary.id, 'weight_format', 'nvfp4'); + assert.deepEqual( + useStudioStore.getState().form, + formBefore, + 'ordinary graph fields are not managed form authority', + ); + assert.deepEqual(useFlowStore.getState().nodes, nodesBefore); + } finally { + useFlowStore.setState(originalFlow, true); + useStudioStore.setState(originalStudio, true); + } +}); + +test('applying a historical native template clears a prior explicit format without rewriting its locks', async () => { + const { useStudioStore } = await load('stores/useStudioStore'); + const { STUDIO_TEMPLATES } = await load('studio/templates'); + const formats = await load('studio/weightFormat'); + const exactness = await load('studio/templateExactness'); + const template = STUDIO_TEMPLATES.find((item) => item.id === 'qwen_low_vram_product_concept'); + assert.ok(template); + const before = structuredClone(template); + const hash = exactness.getTemplateLockHash(template); + const originalStudio = useStudioStore.getState(); + try { + useStudioStore.setState({ form: { ...originalStudio.form, weightFormat: 'fp8r' } }); + useStudioStore.getState().applyTemplate(template); + assert.equal(formats.studioWeightFormat(useStudioStore.getState().form.weightFormat), 'native'); + assert.equal(Object.hasOwn(exactness.getTemplateLockedSettings(template), 'weightFormat'), false); + assert.equal(exactness.getTemplateLockHash(template), hash); + assert.deepEqual(template, before); + } finally { + useStudioStore.setState(originalStudio, true); + } +}); + +test('actual managed sync entry points refuse an unsupported format before graph, form or binding mutation', async () => { + const bridge = await load('studio/graphBridge'); + const { useFlowStore } = await load('stores/useFlowStore'); + const { useStudioStore } = await load('stores/useStudioStore'); + const { useNodesStore } = await load('stores/useNodeStore'); + const { STUDIO_TEMPLATES } = await load('studio/templates'); + const { getTemplateLockedSettings } = await load('studio/templateExactness'); + const legacy = STUDIO_TEMPLATES.find((item) => item.id === 'qwen_low_vram_product_concept'); + assert.ok(legacy); + const { capability, spec } = selectedCase(); + const { rows } = await descriptors(); + const { loader } = await loaderFor(capability, spec); + const current = await formFor(capability, { weightFormat: 'fp8r' }); + const requested = { + ...current, + ...getTemplateLockedSettings(legacy), + modelType: legacy.modelType, + mode: legacy.mode, + resourceMode: 'expert', + weightFormat: 'fp8r', + }; + const binding = { + mode: current.mode, + modelType: current.modelType, + nodes: { models: loader.id }, + managedNodeIds: [loader.id], + managedEdgeIds: [], + fingerprint: 'unit-unchanged-before-refusal', + createdAt: 1, + updatedAt: 1, + }; + const oldFlow = useFlowStore.getState(), + oldStudio = useStudioStore.getState(), + oldNodes = useNodesStore.getState(); + try { + useFlowStore.setState({ nodes: [loader], edges: [], historyPast: [], historyFuture: [] }); + useStudioStore.setState({ form: current, graphBinding: binding, graphFinalization: null }); + useNodesStore.setState({ + studioModelCapabilities: fixture.capabilitiesPayload.capabilities, + studioExecutionSpecInvalid: false, + workflowModelDescriptors: rows, + }); + const snapshot = () => + structuredClone({ + form: useStudioStore.getState().form, + binding: useStudioStore.getState().graphBinding, + finalization: useStudioStore.getState().graphFinalization, + nodes: useFlowStore.getState().nodes, + edges: useFlowStore.getState().edges, + historyPast: useFlowStore.getState().historyPast, + historyFuture: useFlowStore.getState().historyFuture, + }); + const before = snapshot(); + for (const action of [bridge.syncStudioGraphValues, bridge.syncStudioGraphDefinition]) { + assert.throws(() => action(requested), /Choose Native explicitly; the graph is unchanged/); + assert.deepEqual(snapshot(), before); + } + } finally { + useFlowStore.setState(oldFlow, true); + useStudioStore.setState(oldStudio, true); + useNodesStore.setState(oldNodes, true); + } +}); + +test('the model-change owner preflight preserves explicit formats only for exact compatible target artifacts', async () => { + const { studioModelChangeWeightFormatPatch } = await load('studio/useStudioRunActions'); + const { rows } = await descriptors(); + const metadata = { + studioModelCapabilities: fixture.capabilitiesPayload.capabilities, + studioExecutionSpecInvalid: false, + workflowModelDescriptors: rows, + }; + const metadataBefore = structuredClone(metadata); + for (const [sourceType, targetType] of [ + ['Flux3DistilledModularPipeline', 'Flux3ModularPipeline'], + ['Flux3ModularPipeline', 'Flux3DistilledModularPipeline'], + ]) { + const { capability } = selectedCase(sourceType); + const target = selectedCase(targetType).capability; + const current = await formFor(capability, { weightFormat: 'fp8r' }); + const before = structuredClone(current); + assert.deepEqual(studioModelChangeWeightFormatPatch(current, targetType, metadata), { + modelRepo: target.defaultRepo, + }); + assert.deepEqual(current, before); + for (const [model, authority] of [ + ['QwenImageModularPipeline', metadata], + [targetType, { ...metadata, studioExecutionSpecInvalid: true }], + [ + targetType, + { ...metadata, workflowModelDescriptors: [...rows, rows.find((row) => row.repo === target.defaultRepo)] }, + ], + ]) { + assert.throws( + () => studioModelChangeWeightFormatPatch(current, model, authority), + /Choose Native explicitly; the graph is unchanged/, + ); + assert.deepEqual(current, before); + } + assert.deepEqual( + studioModelChangeWeightFormatPatch({ ...current, weightFormat: 'native' }, 'QwenImageModularPipeline', metadata), + {}, + 'an explicit Native reset retains the historical model-change path', + ); + } + assert.deepEqual(metadata, metadataBefore); +}); + +test('an explicit weight format cannot reuse or request a native-only Auto resource plan', async () => { + const auto = await load('studio/autoResource'); + const values = await load('studio/executionSpecValues'); + const formats = await load('studio/weightFormat'); + const { capability, spec } = selectedCase(); + const native = await formFor(capability, { resourceMode: 'auto' }); + const explicit = { ...native, weightFormat: 'fp8r' }; + // Exercise the existing legacy-plan path; this is a client fixture, not a + // fabricated backend hardware receipt for the newly selected format. + const candidate = { + id: 'legacy-native', + dtype: 'bfloat16', + quantizationMode: 'none', + offloadMode: 'none', + autoOffload: false, + installed: true, + }; + const plan = { selectedCandidate: candidate, candidates: [candidate], error: false }; + const before = structuredClone({ native, explicit, plan }); + assert.equal(auto.selectedAutoCandidate(plan, native), candidate); + assert.equal(auto.autoPlanIsReady(plan, native), true); + assert.equal(auto.autoResourceHealthBadge(plan, native), 'This should work'); + assert.equal(auto.autoResourceCompatibility(plan, native).source, 'backend_auto_planner'); + assert.equal(auto.formPatchForAutoCandidate(candidate, native).resourceMode, 'auto'); + assert.equal(values.resolveStudioExecutionSpecValues(native, spec, capability).weightFormat, 'native'); + assert.equal(auto.selectedAutoCandidate(plan, explicit), null); + assert.equal(auto.autoPlanIsReady(plan, explicit), false); + assert.equal( + auto.autoResourceInstallTarget({ ...plan, selectedInstallTarget: { repo: capability.defaultRepo } }, explicit), + null, + ); + assert.equal(auto.autoResourceHealthBadge(plan, explicit), 'Expert only'); + const refusal = auto.autoResourceCompatibility(plan, explicit); + assert.equal(refusal.state, 'expert_only'); + assert.equal(refusal.code, 'weight_format_auto_contract_unavailable'); + assert.equal(refusal.source, 'client_contract_guard'); + assert.equal(refusal.action, null); + const unavailable = (error) => error instanceof Error && error.message === formats.WEIGHT_FORMAT_AUTO_UNAVAILABLE; + assert.throws(() => auto.formPatchForAutoCandidate(candidate, explicit), unavailable); + assert.deepEqual(auto.formPatchForAutoCandidate(null, explicit), {}); + assert.throws(() => values.resolveStudioExecutionSpecValues(explicit, spec, capability), unavailable); + const expert = { ...explicit, resourceMode: 'expert' }; + assert.equal(values.resolveStudioExecutionSpecValues(expert, spec, capability).weightFormat, 'fp8r'); + const { rows } = await descriptors(); + assert.equal(formats.assertFormWeightFormatSelection(expert, spec, capability, rows).selection.weightFormat, 'fp8r'); + const originalFetch = globalThis.fetch; + let calls = 0; + globalThis.fetch = async () => { + calls += 1; + throw new Error('unexpected Auto request'); + }; + try { + await assert.rejects(auto.fetchAutoResourcePlan(explicit), unavailable); + await assert.rejects(auto.fetchAutoResourcePlans([native, explicit]), unavailable); + assert.equal(calls, 0, 'refuse before any native-only backend plan request'); + } finally { + globalThis.fetch = originalFetch; + } + assert.deepEqual({ native, explicit, plan }, before); +}); + +test('selected-format summaries and graph requirements use exact files without a native readiness fallback', async () => { + const formats = await load('studio/weightFormat'); + const cache = await load('studio/modelCache'); + const artifacts = await load('studio/artifactRequirements'); + const { capability, spec } = selectedCase(); + const { rows } = await descriptors(); + const { loader } = await loaderFor(capability, spec); + const form = await formFor(capability, { weightFormat: 'fp8r' }); + const selected = formats.selectedNodeWeightFormatArtifact(withFormat(loader), rows).selection; + const capabilities = fixture.capabilitiesPayload.capabilities; + const before = structuredClone({ form, capability, rows, capabilities }); + const nativeCache = [ + { + id: capability.defaultRepo, + installed: true, + complete: true, + planned_revision: capability.revisionCandidates[0], + planned_files: [...capability.downloadFiles], + }, + ]; + const options = { hfCache: nativeCache, localModels: [], modelCacheDiagnostics: null }; + const native = { ...form, weightFormat: 'native' }; + assert.equal(formats.studioWeightFormatProfile(native, capability, [], [], true), capability); + assert.equal(cache.getStudioModelCacheStatus(capability, nativeCache, [], null).runnable, true); + const profile = formats.studioWeightFormatProfile(form, capability, capabilities, rows); + assert.ok(profile); + assert.deepEqual( + [profile.defaultRepo, profile.revisionCandidates, profile.downloadFiles], + [selected.repo, [selected.revision], selected.downloadFiles], + ); + assert.match(profile.label, /FP8R/u); + assert.notEqual(profile.downloadFiles, selected.downloadFiles); + for (const key of ['templateEligible', 'galleryEligible', 'autoEligible']) + assert.equal(profile[key], capability[key]); + const status = cache.getStudioModelCacheStatus(profile, nativeCache, [], null); + assert.equal(status.runnable, false); + assert.equal(status.repairRequired, true); + assert.equal( + cache.reviewedExpertInstallTarget(profile, status), + null, + 'the fixture has no active required provider; summary projection cannot grant installation readiness', + ); + const requirements = artifacts.getStudioWorkflowArtifactRequirements({ + ...options, + form, + backendCapabilities: capabilities, + workflowModelDescriptors: rows, + }); + const pipeline = requirements.find((item) => item.repo === selected.repo); + assert.ok(pipeline); + assert.equal(pipeline.primaryAction, 'Repair'); + assert.equal(pipeline.status.runnable, false); + assert.deepEqual( + [pipeline.installTarget.revision, pipeline.installTarget.files], + [selected.revision, selected.downloadFiles], + ); + for (const [caps, declarations, invalid] of [ + [[], rows, false], + [capabilities, [], false], + [capabilities, rows, true], + ]) { + assert.equal(formats.studioWeightFormatProfile(form, capability, caps, declarations, invalid), null); + const missing = artifacts.getStudioWorkflowArtifactRequirements({ + ...options, + form, + backendCapabilities: caps, + workflowModelDescriptors: declarations, + studioExecutionSpecInvalid: invalid, + }); + assert.equal(missing.length, 1); + assert.equal(missing[0].primaryAction, 'Details'); + assert.equal(missing[0].status.runnable, false); + assert.equal(missing[0].installTarget, undefined); + } + const diagnostic = cache.getStudioModelCacheStatus(null, nativeCache, [], null); + assert.equal(diagnostic.runnable, false); + assert.equal(diagnostic.repairRequired, false); + assert.match(diagnostic.reason, /no native installation is selected/u); + const reference = { nodeId: loader.id, kind: 'repo', value: selected.repo, paramKey: 'repo_id' }; + const unrelated = { nodeId: 'unrelated-native', kind: 'repo', value: 'unrelated/native', paramKey: 'repo_id' }; + const unrelatedBaseline = artifacts.getGraphWorkflowArtifactRequirements({ ...options, references: [unrelated] })[0]; + const graph = artifacts.getGraphWorkflowArtifactRequirements({ + ...options, + references: [reference, unrelated], + nodes: [withFormat(loader)], + workflowModelDescriptors: rows, + }); + assert.equal(graph[0].primaryAction, 'Repair'); + assert.deepEqual( + [graph[0].installTarget.revision, graph[0].installTarget.files], + [selected.revision, selected.downloadFiles], + ); + assert.deepEqual(graph[1], unrelatedBaseline); + const invalidGraph = artifacts.getGraphWorkflowArtifactRequirements({ + ...options, + references: [reference, unrelated], + nodes: [withFormat(loader)], + workflowModelDescriptors: [], + }); + assert.equal(invalidGraph[0].primaryAction, 'Details'); + assert.equal(invalidGraph[0].status.runnable, false); + assert.equal(invalidGraph[0].installTarget, undefined); + assert.deepEqual(invalidGraph[1], unrelatedBaseline); + assert.deepEqual({ form, capability, rows, capabilities }, before); +}); + +test('actual persistence hydration retains unsupported format documents as blocked and recoverable', async () => { + const { useStudioStore } = await load('stores/useStudioStore'); + const { useFlowStore } = await load('stores/useFlowStore'); + const contracts = await load('studio/outputContracts'); + const formats = await load('studio/weightFormat'); + const exact = await load('studio/templateExactness'); + const auto = await load('studio/autoResource'); + const artifacts = await load('studio/artifactRequirements'); + const values = await load('studio/executionSpecValues'); + const { STUDIO_TEMPLATES } = await load('studio/templates'); + const { capability, spec } = selectedCase(); + const { loader } = await loaderFor(capability, spec); + const unknown = await formFor(capability, { + weightFormat: 'future-unsupported-format', + prompt: 'Retain authored wording.', + referenceImages: ['images/retained-unit-source.png'], + }); + const nullForm = { ...unknown, prompt: 'Retain the other document.', weightFormat: null }; + // A saved manual graph contains authored values, not registry callbacks or + // generated pipeline-identity signal values (durableFlowNodeSnapshot removes + // those intentionally). Keep every authored field in this realistic fixture. + const graphNode = { + id: loader.id, + type: loader.type, + position: { x: 80, y: 120 }, + data: { + module: loader.data.module, + action: loader.data.action, + type: loader.data.type, + label: 'Retain authored model label', + params: Object.fromEntries( + ['model_type', 'repo_id', 'revision', 'weight_format'].map((key) => [ + key, + { + type: loader.data.params[key].type, + label: loader.data.params[key].label, + value: + key === 'weight_format' ? 'future-unsupported-format' : structuredClone(loader.data.params[key].value), + }, + ]), + ), + }, + }; + const snapshot = (form) => ({ + nodes: [graphNode], + edges: [], + viewport: { x: 10, y: 20, zoom: 1 }, + studioForm: form, + selectedMode: form.mode, + activeTemplateId: null, + studioGraphBinding: null, + sourceOutputId: null, + pinnedGraphInputIds: [], + autoFieldOverrides: {}, + }); + const tabs = [ + { + id: 'blocked-saved', + title: 'Saved authoring', + intent: 'saved', + dirty: false, + source: 'manual', + createdAt: 1, + updatedAt: 2, + backendRevision: 7, + snapshot: snapshot(unknown), + }, + { + id: 'blocked-draft', + title: 'Dirty authoring', + intent: 'draft', + dirty: true, + source: 'manual', + createdAt: 3, + updatedAt: 4, + snapshot: snapshot(nullForm), + }, + ]; + const oldStudio = useStudioStore.getState(), + oldFlow = useFlowStore.getState(); + const oldStorage = localStorage.getItem('modiff.studio'), + oldFetch = globalThis.fetch; + let requests = 0; + globalThis.fetch = async () => { + requests += 1; + throw new Error('hydration must not contact the backend'); + }; + try { + localStorage.setItem( + 'modiff.studio', + JSON.stringify({ + version: 0, + state: { + form: unknown, + selectedMode: unknown.mode, + activeWorkflowTabId: tabs[0].id, + workflowTabs: tabs, + savedSnippets: ['Keep this authored snippet.'], + promptHistory: ['Keep this prompt.'], + }, + }), + ); + await useStudioStore.persist.rehydrate(); + assert.equal(useStudioStore.persist.hasHydrated(), true); + const state = useStudioStore.getState(); + assert.equal(state.form.weightFormat, null); + assert.equal(state.form.prompt, unknown.prompt); + assert.deepEqual(state.form.referenceImages, unknown.referenceImages); + assert.deepEqual( + state.workflowTabs.map((tab) => [ + tab.id, + tab.title, + tab.intent, + tab.dirty, + tab.snapshot.studioForm.prompt, + tab.snapshot.studioForm.weightFormat, + ]), + tabs.map((tab) => [tab.id, tab.title, tab.intent, tab.dirty, tab.snapshot.studioForm.prompt, null]), + ); + assert.deepEqual( + state.workflowTabs.map((tab) => tab.snapshot.nodes), + tabs.map((tab) => tab.snapshot.nodes), + ); + assert.deepEqual( + state.workflowTabs.map((tab) => tab.snapshot.edges), + [[], []], + ); + assert.deepEqual( + state.workflowTabs.map((tab) => tab.snapshot.viewport), + tabs.map((tab) => tab.snapshot.viewport), + ); + assert.deepEqual( + state.workflowTabs.map((tab) => tab.snapshot.studioForm.referenceImages), + [unknown.referenceImages, nullForm.referenceImages], + ); + assert.deepEqual(useFlowStore.getState().nodes, [graphNode]); + assert.deepEqual(state.savedSnippets, ['Keep this authored snippet.']); + assert.deepEqual(state.promptHistory, ['Keep this prompt.']); + const template = STUDIO_TEMPLATES.find((item) => item.id === 'qwen_low_vram_product_concept'); + assert.ok(template); + const blockedTemplate = { + ...template, + example: { ...template.example, lockedSettings: { ...template.example.lockedSettings, weightFormat: null } }, + }; + assert.doesNotThrow(() => exact.getTemplateLockHash(blockedTemplate)); + assert.notEqual( + exact.getPromptSettingsHash(state.form), + exact.getPromptSettingsHash({ ...state.form, weightFormat: 'native' }), + ); + assert.equal( + exact.getTemplateModifiedFields(blockedTemplate, { ...state.form, weightFormat: null }).includes('weightFormat'), + true, + ); + assert.throws( + () => values.resolveStudioExecutionSpecValues(state.form, spec, capability), + /backend-declared weight format/, + ); + const plan = { selectedCandidate: { id: 'legacy-native', installed: true }, candidates: [] }; + assert.equal(auto.selectedAutoCandidate(plan, state.form), null); + assert.equal(auto.autoPlanIsReady(plan, state.form), false); + assert.equal(auto.autoResourceInstallTarget(plan, state.form), null); + const requirement = artifacts.getStudioWorkflowArtifactRequirements({ + form: state.form, + hfCache: [], + localModels: [], + modelCacheDiagnostics: null, + }); + assert.equal(requirement[0].primaryAction, 'Details'); + assert.equal(requirement[0].installTarget, undefined); + await assert.rejects(auto.fetchAutoResourcePlan(state.form), /no backend Auto resource contract/); + const output = contracts.coerceStudioOutput({ + id: 'blocked-output', + url: '/source-metadata-only.png', + formSnapshot: unknown, + graphSnapshot: { nodes: [graphNode], edges: [] }, + promptSettingsHash: 'previous-native-proof', + exactTemplateCompatible: true, + }); + assert.ok(output); + assert.equal(output.formSnapshot.weightFormat, null); + assert.equal(output.promptSettingsHash, undefined); + assert.equal(output.exactTemplateCompatible, false); + assert.deepEqual(output.graphSnapshot.nodes, [graphNode]); + assert.equal(requests, 0); + useStudioStore.getState().updateForm({ weightFormat: 'native' }); + assert.equal(formats.studioWeightFormat(useStudioStore.getState().form.weightFormat), 'native'); + assert.equal(useStudioStore.getState().form.prompt, unknown.prompt); + assert.equal(requests, 0); + } finally { + globalThis.fetch = oldFetch; + useFlowStore.setState(oldFlow, true); + useStudioStore.setState(oldStudio, true); + if (oldStorage === null) localStorage.removeItem('modiff.studio'); + else localStorage.setItem('modiff.studio', oldStorage); + } +}); diff --git a/src/components/LeftLibraryPanels.tsx b/src/components/LeftLibraryPanels.tsx index d05b9eca..9d3fc486 100644 --- a/src/components/LeftLibraryPanels.tsx +++ b/src/components/LeftLibraryPanels.tsx @@ -16,6 +16,8 @@ import { import config from '../../app.config'; import { useFlowStore, type CustomNodeType } from '../stores/useFlowStore'; import { useNodesStore } from '../stores/useNodeStore'; +import { studioWeightFormatProfile, hasNonNativeStudioWeightFormat } from '../studio/weightFormat'; +import type { StudioFormState } from '../studio/types'; import { useSettingsStore } from '../stores/useSettingsStore'; import { scopedOutputsForWorkflow, useStudioStore } from '../stores/useStudioStore'; import { useWebsocketStore } from '../stores/useWebsocketStore'; @@ -697,6 +699,8 @@ export function ModelsLibraryPanel() { const hfDownloadProgress = useNodesStore((state) => state.hfDownloadProgress); const nodesRegistry = useNodesStore((state) => state.nodesRegistry); const studioModelCapabilities = useNodesStore((state) => state.studioModelCapabilities); + const workflowModelDescriptors = useNodesStore((state) => state.workflowModelDescriptors); + const studioExecutionSpecInvalid = useNodesStore((state) => state.studioExecutionSpecInvalid); const studioModelCapabilitiesAuthoritative = useNodesStore((state) => state.studioModelCapabilitiesAuthoritative); const installHfModel = useNodesStore((state) => state.installHfModel); const fetchRuntimeStatus = useNodesStore((state) => state.fetchRuntimeStatus); @@ -726,14 +730,37 @@ export function ModelsLibraryPanel() { }, [fetchHfCache, fetchLocalModels, fetchModelCacheDiagnostics, fetchRuntimeStatus]); const hasWorkflowModelContext = Boolean(activeTemplateId || graphBinding || sourceOutputId); - const workflowProfile = STUDIO_MODEL_PROFILES[form.modelType]; + const workflowProfile = studioWeightFormatProfile( + form, + STUDIO_MODEL_PROFILES[form.modelType], + studioModelCapabilities, + workflowModelDescriptors, + studioExecutionSpecInvalid || !studioModelCapabilitiesAuthoritative, + ); const supportedProfiles = useMemo( () => getCatalogModelProfiles({ currentModelType: hasWorkflowModelContext ? form.modelType : null, includeWorkflowOnly: true, + }).flatMap((profile) => { + if (profile.modelType !== form.modelType || !hasNonNativeStudioWeightFormat(form)) return [profile]; + const selected = studioWeightFormatProfile( + form, + profile, + studioModelCapabilities, + workflowModelDescriptors, + studioExecutionSpecInvalid || !studioModelCapabilitiesAuthoritative, + ); + return selected ? [selected] : []; }), - [form.modelType, hasWorkflowModelContext], + [ + form, + hasWorkflowModelContext, + studioModelCapabilities, + studioModelCapabilitiesAuthoritative, + workflowModelDescriptors, + studioExecutionSpecInvalid, + ], ); const supportedPlanForms = useMemo( () => supportedProfiles.map((profile) => getFormDefaultsForModel(profile.modelType)), @@ -789,6 +816,9 @@ export function ModelsLibraryPanel() { localModels, modelCacheDiagnostics, includePipeline: false, + backendCapabilities: studioModelCapabilities, + workflowModelDescriptors, + studioExecutionSpecInvalid: studioExecutionSpecInvalid || !studioModelCapabilitiesAuthoritative, }) : []; @@ -915,6 +945,11 @@ export function ModelsLibraryPanel() { ) : null}
) : null} + {hasWorkflowModelContext && hasNonNativeStudioWeightFormat(form) && !workflowProfile ? ( +

+ {getStudioModelCacheStatus(null, hfCache, localModels, modelCacheDiagnostics).reason} +

+ ) : null} {hasWorkflowModelContext && workflowProfile ? (
@@ -922,6 +957,7 @@ export function ModelsLibraryPanel() {
); @@ -1061,6 +1102,7 @@ export function ModelsLibraryPanel() { function SupportedModelRow({ autoPlan, + form, installProgress, onInstall, onOpenSetup, @@ -1068,19 +1110,28 @@ function SupportedModelRow({ status, }: { autoPlan?: StudioAutoResourcePlan; + form?: StudioFormState; installProgress: ReturnType['hfDownloadProgress']; onInstall: (target: StudioAutoResourceInstallTarget) => Promise; onOpenSetup: () => void; profile: (typeof STUDIO_MODEL_PROFILES)[keyof typeof STUDIO_MODEL_PROFILES]; status: ReturnType; }) { - const installTarget = autoResourceInstallTarget(autoPlan) ?? { + const installTarget = autoResourceInstallTarget(autoPlan, form) ?? { repo: profile.defaultRepo, label: profile.label, actionLabel: 'Install', + ...(form && hasNonNativeStudioWeightFormat(form) + ? { + revision: profile.revisionCandidates![0], + files: [...profile.downloadFiles!], + repair: status.repairRequired, + actionLabel: status.repairRequired ? 'Repair' : 'Install', + } + : {}), }; const progress = installProgress[installTarget.repo]; - const compatibility = autoResourceCompatibility(autoPlan); + const compatibility = autoResourceCompatibility(autoPlan, form); const installing = progress?.status === 'queued' || progress?.status === 'running' || progress?.status === 'downloading'; const blocked = compatibility.state === 'unsuitable' && !status.runnable; diff --git a/src/components/ModelManagerDialog.tsx b/src/components/ModelManagerDialog.tsx index 8890060e..f8cf1802 100644 --- a/src/components/ModelManagerDialog.tsx +++ b/src/components/ModelManagerDialog.tsx @@ -20,6 +20,7 @@ import { import config from '../../app.config'; import { useFlowStore } from '../stores/useFlowStore'; import { useNodesStore } from '../stores/useNodeStore'; +import { studioWeightFormatProfile, hasNonNativeStudioWeightFormat } from '../studio/weightFormat'; import { useSettingsStore } from '../stores/useSettingsStore'; import { useStudioStore } from '../stores/useStudioStore'; import { useWebsocketStore } from '../stores/useWebsocketStore'; @@ -479,6 +480,7 @@ function ModelManagerDialog({ const nodesRegistry = useNodesStore((state) => state.nodesRegistry); const studioModelCapabilities = useNodesStore((state) => state.studioModelCapabilities); const workflowModelDescriptors = useNodesStore((state) => state.workflowModelDescriptors); + const studioExecutionSpecInvalid = useNodesStore((state) => state.studioExecutionSpecInvalid); const studioModelCapabilitiesAuthoritative = useNodesStore((state) => state.studioModelCapabilitiesAuthoritative); const refreshModelIndexes = useNodesStore((state) => state.refreshModelIndexes); const fetchRegistry = useNodesStore((state) => state.fetchRegistry); @@ -551,6 +553,16 @@ function ModelManagerDialog({ currentModelType: focus?.modelType ?? studioForm.modelType, includeWorkflowOnly: expertMode, }).flatMap((profile) => { + if (profile.modelType === studioForm.modelType && hasNonNativeStudioWeightFormat(studioForm)) { + const selected = studioWeightFormatProfile( + studioForm, + profile, + studioModelCapabilities, + workflowModelDescriptors, + studioExecutionSpecInvalid || !studioModelCapabilitiesAuthoritative, + ); + return selected ? [selected] : []; + } if (!studioModelCapabilitiesAuthoritative) return [profile]; const capability = studioModelCapabilities.find((item) => item.modelType === profile.modelType); if (!capability) return [profile]; @@ -579,7 +591,9 @@ function ModelManagerDialog({ expertMode, focus?.modelType, focus?.repo, - studioForm.modelType, + studioForm, + workflowModelDescriptors, + studioExecutionSpecInvalid, studioModelCapabilities, studioModelCapabilitiesAuthoritative, ]); @@ -634,6 +648,9 @@ function ModelManagerDialog({ form: studioForm, hfCache: compactHfCache, includePipeline: false, + backendCapabilities: studioModelCapabilities, + workflowModelDescriptors, + studioExecutionSpecInvalid: studioExecutionSpecInvalid || !studioModelCapabilitiesAuthoritative, localModels, modelCacheDiagnostics, }) @@ -644,6 +661,10 @@ function ModelManagerDialog({ hasWorkflowModelContext, localModels, modelCacheDiagnostics, + studioModelCapabilities, + studioModelCapabilitiesAuthoritative, + workflowModelDescriptors, + studioExecutionSpecInvalid, studioForm, workflowPlanKey, ], @@ -1074,6 +1095,18 @@ function ModelManagerDialog({ } > + {hasNonNativeStudioWeightFormat(studioForm) && + !studioWeightFormatProfile( + studioForm, + STUDIO_MODEL_PROFILES[studioForm.modelType], + studioModelCapabilities, + workflowModelDescriptors, + studioExecutionSpecInvalid || !studioModelCapabilitiesAuthoritative, + ) ? ( +

+ {getStudioModelCacheStatus(null, compactHfCache, localModels, modelCacheDiagnostics).reason} +

+ ) : null} {hfTokenEditorOpen ? (
{group}
{profiles.map((profile) => { - const rowForm = getFormDefaultsForMode(getPrimaryModeForProfile(profile), profile.modelType); + const rowForm = + profile.modelType === studioForm.modelType && hasNonNativeStudioWeightFormat(studioForm) + ? studioForm + : getFormDefaultsForMode(getPrimaryModeForProfile(profile), profile.modelType); const planKey = autoPlanKeyForForm(rowForm); const rowPlan = autoResourcePlans[planKey]; - const rowInstallTarget = autoResourceInstallTarget(rowPlan); + const rowInstallTarget = autoResourceInstallTarget( + rowPlan, + hasNonNativeStudioWeightFormat(rowForm) ? rowForm : undefined, + ); return ( state.localModels); const modelCacheDiagnostics = useNodesStore((state) => state.modelCacheDiagnostics); const studioModelCapabilities = useNodesStore((state) => state.studioModelCapabilities); + const studioModelCapabilitiesAuthoritative = useNodesStore((state) => state.studioModelCapabilitiesAuthoritative); + const workflowModelDescriptors = useNodesStore((state) => state.workflowModelDescriptors); + const studioExecutionSpecInvalid = useNodesStore((state) => state.studioExecutionSpecInvalid); const runtimeStatus = useNodesStore((state) => state.runtimeStatus); const runtimeError = useNodesStore((state) => state.runtimeError); const hfDownloadProgress = useNodesStore((state) => state.hfDownloadProgress); @@ -206,7 +210,9 @@ export default function ModelSetupPanel() { state.nodes .map((node) => { const modelParams = Object.entries(node.data.params) - .filter(([key]) => /repo|model|checkpoint|ckpt|safetensors|lora|vae|controlnet|adapter/i.test(key)) + .filter(([key]) => + /repo|model|checkpoint|ckpt|safetensors|lora|vae|controlnet|adapter|weight_format|revision/i.test(key), + ) .map(([key, param]) => `${key}:${JSON.stringify(param.value ?? param.default ?? '')}`) .join(','); return `${node.id}:${node.data.module}:${node.data.action}:${node.data.uiState?.disabled ? 'disabled' : 'enabled'}:${modelParams}`; @@ -241,7 +247,13 @@ export default function ModelSetupPanel() { !graphBinding && (graphInspection.nodeCount > 0 || graphInspection.blockingIssues.length > 0)); const workflowAutoPlanKey = autoPlanKeyForForm(form); - const workflowProfile = STUDIO_MODEL_PROFILES[form.modelType]; + const workflowProfile = studioWeightFormatProfile( + form, + STUDIO_MODEL_PROFILES[form.modelType], + studioModelCapabilities, + workflowModelDescriptors, + studioExecutionSpecInvalid || !studioModelCapabilitiesAuthoritative, + ); const profiles = hasWorkflowModelContext && workflowProfile ? [ @@ -262,6 +274,9 @@ export default function ModelSetupPanel() { form, hfCache, includePipeline: false, + backendCapabilities: studioModelCapabilities, + workflowModelDescriptors, + studioExecutionSpecInvalid: studioExecutionSpecInvalid || !studioModelCapabilitiesAuthoritative, localModels, modelCacheDiagnostics, }) @@ -269,6 +284,8 @@ export default function ModelSetupPanel() { const graphArtifactRequirements = hasCustomGraphContext ? getGraphWorkflowArtifactRequirements({ references: graphInspection.modelRefs, + nodes: useFlowStore.getState().nodes, + workflowModelDescriptors, hfCache, localModels, modelCacheDiagnostics, @@ -608,6 +625,11 @@ export default function ModelSetupPanel() { Contextual
+ {hasNonNativeStudioWeightFormat(form) && !workflowProfile ? ( +

+ {getStudioModelCacheStatus(null, hfCache, localModels, modelCacheDiagnostics).reason} +

+ ) : null} {profiles.map(({ autoPlan, backendCapability, profile, status }) => ( ; }) { - const autoInstallTarget = autoResourceInstallTarget(autoPlan, form); + const autoInstallTarget = + autoResourceInstallTarget(autoPlan, form) ?? + (hasNonNativeStudioWeightFormat(form) ? reviewedExpertInstallTarget(profile, status) : null); const autoCandidate = selectedAutoCandidate(autoPlan, form); const autoReady = autoPlanIsReady(autoPlan, form); - const ready = autoPlan ? autoReady : status.runnable; + const ready = hasNonNativeStudioWeightFormat(form) ? status.runnable : autoPlan ? autoReady : status.runnable; const installRepo = autoInstallTarget?.repo ?? profile.defaultRepo; const progress = hfDownloadProgress[installRepo]; const installing = isHfDownloadActive(progress); diff --git a/src/components/PromptEnhancementControls.tsx b/src/components/PromptEnhancementControls.tsx index 4d7ffd09..e757b2b8 100644 --- a/src/components/PromptEnhancementControls.tsx +++ b/src/components/PromptEnhancementControls.tsx @@ -5,7 +5,9 @@ import { useWebsocketStore } from '../stores/useWebsocketStore'; import { useTaskStore } from '../stores/useTaskStore'; import { useNodesStore } from '../stores/useNodeStore'; import type { AncillaryOperation } from '../studio/ancillaryOperations'; +import { AUTHORED_CONSTRAINT_POLICY } from '../studio/promptEnhancementConstraints'; import { GraphControlButton } from '../ui/GraphControls'; +import { ModiffDisclosure, ModiffFieldShell, ModiffSelect } from '../ui'; import { promptEnhancementOwner, enablePromptEnhancement, @@ -36,12 +38,14 @@ export default function PromptEnhancementControls({ const connected = useWebsocketStore((state) => state.isConnected); const currentTask = useTaskStore((state) => state.currentTask); const operationCount = useNodesStore((state) => state.operationContracts.length); + const descriptors = useNodesStore((state) => state.workflowModelDescriptors); const [busy, setBusy] = useState(null); const [error, setError] = useState(null); const [message, setMessage] = useState(null); const [run, setRun] = useState(null); const [verified, setVerified] = useState(null); const [declaration, setDeclaration] = useState(null); + const [rawChoice, setRawChoice] = useState(null); const terminal = useTaskStore((state) => run ? state.sessionRuns.find((task) => task.task_id === run.taskId || task.id === run.taskId) : undefined, ); @@ -56,6 +60,35 @@ export default function PromptEnhancementControls({ const binding = selected.owner?.data.operationAuthoring?.ancillaryBindings?.[0]; const bindingId = binding?.contractId, bindingHash = binding?.contentHash; + const parent = selected.selection?.parent; + const matching = descriptors.filter( + (descriptor) => + descriptor.profileId === parent?.executionProfileId && descriptor.pipeline === parent?.pipelineClass, + ); + const rawChoices = + parent && matching.length === 1 ? (matching[0]!.rawPromptAuthoringChoices?.[parent.task] ?? []) : []; + const layoutChoices = + parent && matching.length === 1 ? (matching[0]!.layoutPromptAuthoringChoices?.[parent.task] ?? []) : []; + const currentRawChoice = rawChoices.find( + (choice) => choice.authoringRecipeId === parent?.authoringRecipeId, + )?.authoringRecipeId; + const selectedRawChoice = rawChoice ?? currentRawChoice ?? ''; + const currentLayoutChoice = layoutChoices.find( + (choice) => + choice.authoringRecipeId === parent?.authoringRecipeId && + choice.authoringRecipeId !== matching[0]?.authoringRecipes?.[parent?.task ?? ''], + )?.authoringRecipeId; + const hasLayoutChoices = layoutChoices.length > 1; + const selectedModeChoice = rawChoice ?? currentLayoutChoice ?? currentRawChoice ?? ''; + const enable = async () => { + const chosen = hasLayoutChoices ? selectedModeChoice : selectedRawChoice; + const raw = rawChoices.some((choice) => choice.authoringRecipeId === chosen) ? chosen : undefined; + const layout = + hasLayoutChoices && layoutChoices.some((choice) => choice.authoringRecipeId === chosen) ? chosen : undefined; + if (chosen && !raw && !layout) + throw new Error('The selected enhancement mode is no longer available. Choose a current mode.'); + return enablePromptEnhancement(ownerId, undefined, undefined, raw, layout); + }; const details = (() => { if (!verified) return { summary: null, stale: false }; try { @@ -81,7 +114,8 @@ export default function PromptEnhancementControls({ setVerified(null); setError(null); setMessage(null); - }, [ownerId, tab]); + setRawChoice(null); + }, [ownerId, tab, parent?.executionProfileId, parent?.task]); useEffect(() => { setDeclaration(null); if (!bindingId || !connected || !operationCount) return; @@ -147,6 +181,52 @@ export default function PromptEnhancementControls({ Appends proposed wording; authored layout stays unchanged.

) : null} + {declaration?.layoutPolicy === AUTHORED_CONSTRAINT_POLICY ? ( +

+ Proposes wording for your authored regions. Coordinates and region identities stay fixed; review the wording + before Apply. +

+ ) : null} + {!binding && hasLayoutChoices ? ( + <> + + ({ value: choice.authoringRecipeId, label: choice.label })), + ...layoutChoices.map((choice) => ({ value: choice.authoringRecipeId, label: choice.label })), + ]} + /> + +

+ Layout modes require authored regions. Review the mode before enabling enhancement. +

+ + ) : !binding && rawChoices.length > 1 ? ( + <> + + ({ value: choice.authoringRecipeId, label: choice.label })), + ]} + /> + + {selectedRawChoice ? ( + +

Recipe: {selectedRawChoice}

+
+ ) : null} + + ) : null}
{!binding ? ( void act('Enabling enhancement', async () => { - setDeclaration(await enablePromptEnhancement(ownerId)); + setDeclaration(await enable()); setMessage('Enabled. Review the declared model and resource controls before Preview.'); }) } diff --git a/src/fields/NumberField.tsx b/src/fields/NumberField.tsx index d06df560..53c5542f 100644 --- a/src/fields/NumberField.tsx +++ b/src/fields/NumberField.tsx @@ -61,7 +61,7 @@ export default function NumberField(props: FieldProps) { (value: number | string) => { const nextValue = formatValue(value); setDraftValue(nextValue); - updateStore(fieldKey, nextValue); + updateStore(fieldKey, Number(nextValue)); }, [fieldKey, formatValue, updateStore], ); diff --git a/src/stores/useNodeStore.ts b/src/stores/useNodeStore.ts index a830195d..c315f1ac 100644 --- a/src/stores/useNodeStore.ts +++ b/src/stores/useNodeStore.ts @@ -860,10 +860,28 @@ export function parseStudioModelCapabilities(value: unknown) { const modelTypes = new Set(); const capabilities = payload.capabilities.flatMap((item) => { if (!isRecord(item) || typeof item.modelType !== 'string') invalidModelCapabilities(); - // A newer backend can advertise models this client does not have a Studio - // presentation for yet. Ignore those records instead of casting them into - // the closed client model union. Experimental capabilities are likewise a - // separate response field and are never promoted into runnable Studio data. + // Presentation typing never promotes contract-only identities into runnable + // Studio capabilities. Their exact private routes are parsed separately by + // evaluationAuthoring, including older display-only records without modes. + if ( + item.executionStatus === 'contract_only' || + (item.modes === undefined && Array.isArray(item.executionProfiles) && item.executionProfiles.length === 0) + ) { + if ( + payload.schemaVersion !== 2 || + [item.autoEligible, item.templateEligible, item.galleryEligible, item.liveProof].some( + (flag) => flag !== false, + ) || + !Array.isArray(item.executionProfiles) || + item.executionProfiles.length !== 0 || + (item.runnableModes !== undefined && (!Array.isArray(item.runnableModes) || item.runnableModes.length !== 0)) || + (item.qualifiedModes !== undefined && (!Array.isArray(item.qualifiedModes) || item.qualifiedModes.length !== 0)) + ) + invalidModelCapabilities(); + return []; + } + // A newer backend can advertise public models without a legacy Studio + // presentation. Their generic workflow descriptors remain independently parsed. if (!isStudioModelType(item.modelType)) return []; if ( payload.schemaVersion !== 2 && diff --git a/src/stores/useStudioStore.ts b/src/stores/useStudioStore.ts index e915a5a0..497b4c1a 100644 --- a/src/stores/useStudioStore.ts +++ b/src/stores/useStudioStore.ts @@ -1717,6 +1717,8 @@ export const useStudioStore = create + role === verification.requestInputs.role && + field === verification.requestInputs.operationField && + value === AUTHORED_CONSTRAINT_OPERATION, + ) + ) + invalidAncillary('the constrained source contract differs from the selected native operation.'); + } if (Object.prototype.hasOwnProperty.call(item, 'fieldOverrides')) { const selected = new Set(); for (const raw of collection(item.fieldOverrides, 32)) { diff --git a/src/studio/artifactRequirements.ts b/src/studio/artifactRequirements.ts index a8fdee03..5c31a9d1 100644 --- a/src/studio/artifactRequirements.ts +++ b/src/studio/artifactRequirements.ts @@ -1,4 +1,12 @@ import type { ModelCacheDiagnostics } from '../stores/useNodeStore'; +import { hashString } from './stableHash'; +import type { CustomNodeType } from '../stores/useFlowStore'; +import type { WorkflowModelDescriptor } from '../workflow/workflowChoices'; +import { + selectedNodeWeightFormatArtifact, + studioWeightFormatProfile, + hasNonNativeStudioWeightFormat, +} from './weightFormat'; import { autoPlanIsReady, autoResourceInstallTarget, @@ -6,9 +14,14 @@ import { type StudioAutoResourceInstallTarget, type StudioAutoResourcePlan, } from './autoResource'; -import { getRepoCacheStatus, localModelsContain, type StudioModelCacheStatus } from './modelCache'; +import { + getRepoCacheStatus, + getStudioModelCacheStatus, + localModelsContain, + type StudioModelCacheStatus, +} from './modelCache'; import { getModelRequirementsForMode, getProfileForForm } from './modelProfiles'; -import type { StudioFormState, StudioModelRequirement } from './types'; +import type { StudioFormState, StudioModelRequirement, StudioModelProfile } from './types'; export type WorkflowArtifactRequirementRole = 'Pipeline' | 'Adapter' | 'Control' | 'Safety checker' | 'Text encoder' | 'VAE' | 'Transformer' | 'Other component'; @@ -39,6 +52,9 @@ type WorkflowArtifactRequirementOptions = { localModels: unknown[]; modelCacheDiagnostics: ModelCacheDiagnostics | null; includePipeline?: boolean; + backendCapabilities?: readonly StudioModelProfile[]; + workflowModelDescriptors?: readonly WorkflowModelDescriptor[]; + studioExecutionSpecInvalid?: boolean; }; export type WorkflowGraphArtifactReference = { @@ -48,10 +64,14 @@ export type WorkflowGraphArtifactReference = { value: string; paramKey: string; revision?: string; + /** Selected source-reviewed inventory; never arbitrary graph-provided paths. */ + downloadFiles?: string[]; }; type GraphWorkflowArtifactRequirementOptions = { references: WorkflowGraphArtifactReference[]; + nodes?: readonly CustomNodeType[]; + workflowModelDescriptors?: readonly WorkflowModelDescriptor[]; hfCache: unknown[]; localModels: unknown[]; modelCacheDiagnostics: ModelCacheDiagnostics | null; @@ -161,8 +181,36 @@ export function getStudioWorkflowArtifactRequirements({ includePipeline = true, localModels, modelCacheDiagnostics, + backendCapabilities = [], + workflowModelDescriptors = [], + studioExecutionSpecInvalid = false, }: WorkflowArtifactRequirementOptions): WorkflowArtifactRequirement[] { - const profile = getProfileForForm(form); + const nativeProfile = getProfileForForm(form); + const profile = studioWeightFormatProfile( + form, + nativeProfile, + backendCapabilities, + workflowModelDescriptors, + studioExecutionSpecInvalid, + ); + if (!profile) { + const status = getStudioModelCacheStatus(null, hfCache, localModels, modelCacheDiagnostics); + return includePipeline + ? [ + { + id: `profile:${form.modelType}:weight-format-unavailable`, + role: 'Pipeline', + label: nativeProfile.label, + repo: nativeProfile.defaultRepo, + artifact: nativeProfile.defaultRepo, + source: 'profile', + status, + primaryAction: 'Details', + details: status.reason, + }, + ] + : []; + } const requirements: WorkflowArtifactRequirement[] = []; if (includePipeline && profile.artifactInstallRequired !== false) { @@ -203,7 +251,14 @@ export function getStudioWorkflowArtifactRequirements({ details: profile.artifactLabel, hfCache, id: `profile:${profile.modelType}:${profile.defaultRepo}`, - installTarget: { repo: profile.defaultRepo, label: profile.label, actionLabel: 'Install' }, + installTarget: { + repo: profile.defaultRepo, + label: profile.label, + actionLabel: 'Install', + ...(hasNonNativeStudioWeightFormat(form) + ? { revision: profile.revisionCandidates![0], files: [...profile.downloadFiles!] } + : {}), + }, label: profile.label, localModels, modelCacheDiagnostics, @@ -243,16 +298,67 @@ export function getStudioWorkflowArtifactRequirements({ export function getGraphWorkflowArtifactRequirements({ references, + nodes = [], + workflowModelDescriptors = [], hfCache, localModels, modelCacheDiagnostics, }: GraphWorkflowArtifactRequirementOptions): WorkflowArtifactRequirement[] { - const requirements = references.map((reference): WorkflowArtifactRequirement => { + const invalidFormatNodes = new Set(); + const selections = new Map>>(); + for (const node of nodes) { + if (node.data.module !== 'modules.ModularDiffusers' || node.data.action !== 'ModelsLoader') continue; + try { + const selected = selectedNodeWeightFormatArtifact(node, workflowModelDescriptors); + if (selected) selections.set(node.id, selected); + } catch { + invalidFormatNodes.add(node.id); + } + } + const selectedReferences = references.map((reference) => { + const selected = selections.get(reference.nodeId)?.selection; + return selected && reference.kind === 'repo' && selected.repo === reference.value + ? { ...reference, revision: selected.revision, downloadFiles: [...selected.downloadFiles] } + : reference; + }); + const seen = new Set(); + const exactReferences = selectedReferences.filter((reference) => { const label = reference.value.split(/[\\/]/).pop() || reference.value; + const selection = reference.downloadFiles + ? ':' + JSON.stringify([reference.revision, reference.downloadFiles]) + : ''; + const key = `${roleForArtifact(reference.value, label)}:${reference.value}`.toLowerCase() + selection; + if (seen.has(key)) return false; + seen.add(key); + return true; + }); + const requirements = exactReferences.map((reference): WorkflowArtifactRequirement => { + const label = reference.value.split(/[\\/]/).pop() || reference.value; + const selectionId = reference.downloadFiles + ? ':selection-' + hashString(JSON.stringify([reference.revision, reference.downloadFiles])) + : ''; + const id = `graph:${reference.nodeId}:${reference.paramKey}:${reference.value}${selectionId}`; + if (invalidFormatNodes.has(reference.nodeId)) { + const status = getStudioModelCacheStatus(null, hfCache, localModels, modelCacheDiagnostics); + return { + id, + role: roleForArtifact(reference.value, label), + label, + repo: reference.value, + artifact: reference.value, + source: 'graph', + status, + primaryAction: 'Details', + nodeId: reference.nodeId, + nodeLabel: reference.nodeLabel, + paramKey: reference.paramKey, + details: status.reason, + }; + } if (reference.kind === 'path') { const status = localPathStatus(reference.value, localModels); return { - id: `graph:${reference.nodeId}:${reference.paramKey}:${reference.value}`, + id, role: roleForArtifact(reference.value, label), label, repo: reference.value, @@ -273,13 +379,18 @@ export function getGraphWorkflowArtifactRequirements({ label, actionLabel: 'Install' as const, revision: reference.revision, + ...(reference.downloadFiles ? { files: [...reference.downloadFiles] } : {}), }; const status = getRepoCacheStatus(reference.value, hfCache, localModels, modelCacheDiagnostics, { revision: reference.revision, + ...(reference.downloadFiles ? { files: [...reference.downloadFiles] } : {}), }); - const primaryAction = actionForStatus(status, installTarget); + const effectiveInstallTarget = status.repairRequired + ? { ...installTarget, repair: true, actionLabel: 'Repair' as const } + : installTarget; + const primaryAction = actionForStatus(status, effectiveInstallTarget); return { - id: `graph:${reference.nodeId}:${reference.paramKey}:${reference.value}`, + id, role: roleForArtifact(reference.value, label), label, repo: reference.value, @@ -289,7 +400,7 @@ export function getGraphWorkflowArtifactRequirements({ primaryAction, installTarget: primaryAction === 'Install' || primaryAction === 'Repair' - ? { ...installTarget, actionLabel: primaryAction } + ? { ...effectiveInstallTarget, actionLabel: primaryAction } : undefined, nodeId: reference.nodeId, nodeLabel: reference.nodeLabel, @@ -298,5 +409,5 @@ export function getGraphWorkflowArtifactRequirements({ }; }); - return dedupeRequirements(requirements); + return requirements; } diff --git a/src/studio/autoResource.ts b/src/studio/autoResource.ts index 61f7f0dc..9d281075 100644 --- a/src/studio/autoResource.ts +++ b/src/studio/autoResource.ts @@ -4,6 +4,7 @@ import { deepEqual } from '../utils/deepEqual'; import { formatRequestError, requestJson } from '../utils/requestJson'; import { normalizeStudioDeviceOffloadPlan, studioOffloadPlanConflict } from './deviceOffload'; import { AUTO_RESOURCE_LOADER_TARGETS, AUTO_RESOURCE_TARGET_KEYS } from './resourcePlanner'; +import { hasNonNativeStudioWeightFormat, WEIGHT_FORMAT_AUTO_UNAVAILABLE } from './weightFormat'; import type { OptionalRuntimeRequirement } from './optionalRuntimes'; import type { StudioFormState, StudioOffloadMode, StudioResourcePreference } from './types'; @@ -184,7 +185,7 @@ export type StudioCompatibilityAssessment = { candidateId?: string | null; command?: string | null; } | null; - source: 'backend_auto_planner'; + source: 'backend_auto_planner' | 'client_contract_guard'; }; export type StudioAutoResourcePlan = { @@ -423,6 +424,7 @@ async function postAutoResourcePlan(body: Record, signal?: Abor } export function fetchAutoResourcePlan(form: StudioFormState, signal?: AbortSignal) { + if (hasNonNativeStudioWeightFormat(form)) return Promise.reject(new Error(WEIGHT_FORMAT_AUTO_UNAVAILABLE)); return postAutoResourcePlan({ form }, signal); } @@ -451,6 +453,7 @@ export function autoPlanKeyForForm( | 'device' | 'dtype' | 'quantizationMode' + | 'weightFormat' | 'offloadMode' | 'autoOffload' | 'width' @@ -470,10 +473,15 @@ export function autoPlanKeyForForm( form.autoOffload ? 'offload' : 'no-offload', form.width, form.height, + ...(hasNonNativeStudioWeightFormat(form) + ? ['weight-format=' + (form.weightFormat === null ? 'blocked' : form.weightFormat)] + : []), ].join(':'); } export function fetchAutoResourcePlans(forms: StudioFormState[], keys: string[] = [], signal?: AbortSignal) { + if (forms.some((form) => hasNonNativeStudioWeightFormat(form))) + return Promise.reject(new Error(WEIGHT_FORMAT_AUTO_UNAVAILABLE)); return requestJson(`${config.serverAddress}/auto_resource/plans`, { method: 'POST', headers: { 'Content-Type': 'application/json' }, @@ -486,7 +494,7 @@ export function fetchAutoResourcePlans(forms: StudioFormState[], keys: string[] export function autoCandidateSupportsExecutionDevice( candidate: StudioAutoResourceCandidate | null | undefined, - form: Pick, + form: Pick, ) { if (!candidate) return false; const offloadMode = formPatchForAutoCandidate(candidate).offloadMode ?? form.offloadMode; @@ -499,8 +507,9 @@ export function autoCandidateSupportsExecutionDevice( export function selectedAutoCandidate( plan: StudioAutoResourcePlan | null | undefined, - form?: Pick, + form?: Pick, ) { + if (form && hasNonNativeStudioWeightFormat(form)) return null; const selected = plan?.selectedCandidate; if (isSchemaV2(plan)) { if (!selected?.id || !Array.isArray(plan.candidates)) return null; @@ -578,7 +587,7 @@ export function autoResourcePlanTargetMatches( export function autoPlanIsReady( plan: StudioAutoResourcePlan | null | undefined, - form?: Pick, + form?: Pick, ) { if (isSchemaV2(plan) && plan.compatibility?.state !== 'ready') return false; const selected = selectedAutoCandidate(plan, form); @@ -606,7 +615,7 @@ export function autoPlanIsReady( export function modelInstallIsReady( installedRunnable: boolean, plan: StudioAutoResourcePlan | null | undefined, - form?: Pick, + form?: Pick, ) { return installedRunnable || autoPlanIsReady(plan, form); } @@ -615,7 +624,7 @@ export function modelInstallReadyReason( installedRunnable: boolean, installedReason: string, plan: StudioAutoResourcePlan | null | undefined, - form?: Pick, + form?: Pick, ) { if (installedRunnable) return installedReason; return autoPlanIsReady(plan, form) ? 'Required model artifacts are complete and available for this workflow.' : null; @@ -681,8 +690,9 @@ function candidateHasResourceBlock(candidate: StudioAutoResourceCandidate) { export function autoResourceInstallTarget( plan: StudioAutoResourcePlan | null | undefined, - form?: Pick, + form?: Pick, ): StudioAutoResourceInstallTarget | null { + if (form && hasNonNativeStudioWeightFormat(form)) return null; if (!plan || autoPlanIsReady(plan, form)) return null; if (plan.selectedInstallTarget?.repo) return plan.selectedInstallTarget; const candidates = [...(plan.candidates ?? [])].sort((a, b) => (a.rank ?? 999) - (b.rank ?? 999)); @@ -719,8 +729,9 @@ export function autoResourceInstallTarget( export function autoResourceHealthBadge( plan: StudioAutoResourcePlan | null | undefined, - form?: Pick, + form?: Pick, ): StudioAutoResourceHealthBadge { + if (form && hasNonNativeStudioWeightFormat(form)) return 'Expert only'; if (!plan) return 'Needs setup'; if (plan.healthBadge) return plan.healthBadge; const selected = selectedAutoCandidate(plan, form); @@ -733,8 +744,20 @@ export function autoResourceHealthBadge( export function autoResourceCompatibility( plan: StudioAutoResourcePlan | null | undefined, - form?: Pick, + form?: Pick, ): StudioCompatibilityAssessment { + if (form && hasNonNativeStudioWeightFormat(form)) { + return { + state: 'expert_only', + severity: 'info', + code: 'weight_format_auto_contract_unavailable', + summary: 'Expert required', + detail: WEIGHT_FORMAT_AUTO_UNAVAILABLE, + action: null, + // A local refusal is never a backend hardware or execution receipt. + source: 'client_contract_guard', + }; + } if (!plan) { return { state: 'checking', @@ -814,6 +837,7 @@ export function formPatchForAutoCandidate( pinnedFormKeys?: ReadonlySet, ): Partial { if (!candidate) return {}; + if (currentForm && hasNonNativeStudioWeightFormat(currentForm)) throw new Error(WEIGHT_FORMAT_AUTO_UNAVAILABLE); const patch: Partial = { resourceMode: 'auto', }; diff --git a/src/studio/executionSpecValues.ts b/src/studio/executionSpecValues.ts index 17124316..1f927cf1 100644 --- a/src/studio/executionSpecValues.ts +++ b/src/studio/executionSpecValues.ts @@ -1,5 +1,6 @@ import { formPatchForAutoCandidate, type StudioAutoResourceCandidate } from './autoResource'; import { getModelRequirementsForMode, WAN_VACE_REVISION } from './modelProfiles'; +import { executionStudioWeightFormat } from './weightFormat'; import type { StudioExecutionSpec, StudioFormState, StudioModelProfile, StudioMode } from './types'; /** Shared semantic values for backend-declared bindings; no graph mutation or authority. */ @@ -15,6 +16,9 @@ export function resolveStudioExecutionSpecValues( } = {}, ) { const candidate = options.candidate ?? null; + const weightFormat = executionStudioWeightFormat(form); + if (weightFormat !== 'native' && !spec.bindings.some(([, , source]) => source === 'weightFormat')) + throw new Error('The selected execution specification does not declare a weight-format control.'); const attentionBackend = typeof form.attentionBackend === 'string' && form.attentionBackend.trim() ? form.attentionBackend : 'auto'; const audioTemplateBaseModel = options.audioTemplateBaseModel ?? null; @@ -65,7 +69,7 @@ export function resolveStudioExecutionSpecValues( quantizationMode, quantizedComponents: ['transformer'], deviceMapNone: 'none', - weightFormat: 'native', + weightFormat, attentionBackend, nativeMath: '_native_math', empty: '', diff --git a/src/studio/executionSpecs.ts b/src/studio/executionSpecs.ts index 58b0bfa2..efcda0db 100644 --- a/src/studio/executionSpecs.ts +++ b/src/studio/executionSpecs.ts @@ -26,6 +26,14 @@ const SPEC_KEYS = // execution sinks were declared. const LEGACY_SPEC_KEYS = 'actions,autoFields,bindings,canonicalizationVersion,contentHash,defaultRepo,edges,executionPath,executionProfileId,id,loaderAction,loaderModule,mode,modelType,pipelineClass,roles,schemaVersion'; +// An optional sealed-provider dependency is hash-covered. Neither extension +// changes the accepted key set or hash of specifications that predate it. +const SPEC_KEY_SETS = new Set([ + SPEC_KEYS, + LEGACY_SPEC_KEYS, + ...[SPEC_KEYS, LEGACY_SPEC_KEYS].map((keys) => [...keys.split(','), 'requiredDiffusersProvider'].sort().join()), +]); +const RUNTIME_PROVIDER_ID = /^[a-z\d][a-z\d._-]{0,127}$/; function listed(value: string) { return new Set(value.split('|') as T[]); } @@ -100,8 +108,9 @@ export function parseStudioExecutionSpecs( const specs = value.map((raw) => { if (!record(raw)) invalid(); const keys = Object.keys(raw).sort().join(); - if (keys !== SPEC_KEYS && keys !== LEGACY_SPEC_KEYS) invalid(); + if (!SPEC_KEY_SETS.has(keys)) invalid(); const profile = profiles?.find((item) => item.id === raw.executionProfileId); + const hasProvider = Object.prototype.hasOwnProperty.call(raw, 'requiredDiffusersProvider'); if ( raw.schemaVersion !== 1 || raw.canonicalizationVersion !== 1 || @@ -110,6 +119,13 @@ export function parseStudioExecutionSpecs( raw.modelType !== modelType || !modes.includes(raw.mode as StudioMode) || !profile || + hasProvider !== (profile.required_diffusers_provider !== undefined) || + (hasProvider && + (typeof raw.requiredDiffusersProvider !== 'string' || + !RUNTIME_PROVIDER_ID.test(raw.requiredDiffusersProvider) || + raw.requiredDiffusersProvider !== profile.required_diffusers_provider || + profile.optional_runtime_delivery !== 'optional_overlay' || + !profile.optional_runtime_profiles?.includes(raw.requiredDiffusersProvider))) || !profile.modes.includes(raw.mode as StudioMode) || raw.loaderModule !== profile.loader_module || raw.loaderAction !== profile.loader_action || diff --git a/src/studio/graphBridge.ts b/src/studio/graphBridge.ts index af05ae2a..f659a504 100644 --- a/src/studio/graphBridge.ts +++ b/src/studio/graphBridge.ts @@ -41,6 +41,11 @@ import { import { formPatchForAutoCandidate, selectedAutoCandidate } from './autoResource'; import { exactStudioExecutionProfileForForm, exactStudioExecutionSpecForForm } from './executionSpecs'; import { resolveStudioExecutionSpecValues } from './executionSpecValues'; +import { + assertStudioWeightFormatOptions, + assertFormWeightFormatSelection, + explicitStudioWeightFormat, +} from './weightFormat'; import { syncManagedFormControlAliases } from './managedControlSync'; import { resolveStudioResourceForm } from './resourcePlanner'; import { hashString, stableStringify } from './templateExactness'; @@ -621,7 +626,8 @@ function hasPartialCombinedControlGroup(binding: StudioGraphBinding) { function bindingFingerprint(form: StudioFormState) { const spec = executionSpecForForm(form); const receipt = spec ? `:${spec.id}:${spec.contentHash}` : spec === null ? ':invalid-spec' : ''; - return `${form.mode}:${form.modelType}:${form.resourceMode}:${form.quantizationMode}${receipt}`; + const format = explicitStudioWeightFormat(form); + return `${form.mode}:${form.modelType}:${form.resourceMode}:${form.quantizationMode}${receipt}${format !== undefined ? `:weight-format=${format === null ? 'blocked' : format}` : ''}`; } function bindingMatchesForm(binding: StudioGraphBinding, form: StudioFormState) { @@ -3410,6 +3416,33 @@ function applyExecutionSpecValues(binding: StudioGraphBinding, form: StudioFormS audioTemplateBaseModel, seed: seedValue(form), }); + const declaredFormat = assertFormWeightFormatSelection( + form, + spec, + capability, + useNodesStore.getState().workflowModelDescriptors, + ); + for (const [role, param, source] of spec.bindings) { + if (source !== 'weightFormat') continue; + const nodeId = binding.nodes[role]; + const node = nodeId ? getNode(nodeId) : undefined; + const field = node?.data.params[param]; + if (declaredFormat) { + if ( + !nodeId || + !field || + node?.data.module !== 'modules.ModularDiffusers' || + node.data.action !== 'ModelsLoader' || + param !== 'weight_format' + ) + throw new Error('The declared weight format needs its exact model-loader control.'); + // Instance metadata comes from the current exact backend declaration; + // the normal backend field update remains authoritative for this model. + useFlowStore.getState().setParam(nodeId, param, [...declaredFormat.options], 'options'); + useFlowStore.getState().setParam(nodeId, param, false, 'hidden'); + } + assertStudioWeightFormatOptions(values[source], nodeId ? getNode(nodeId)?.data.params[param] : undefined); + } const bindsAuxiliaryModel = spec.bindings.some(([, , source]) => ['kind', 'repo', 'revision'].includes(source)); if (binding.nodes.diffusersImagePipeline && !bindsAuxiliaryModel) { setParamIfPresent(binding.nodes.diffusersImagePipeline, ['conditioning_kind'], 'none'); @@ -3826,10 +3859,21 @@ function applyFormValues(binding: StudioGraphBinding, form: StudioFormState) { } } +function assertGraphWeightFormatSelection(form: StudioFormState) { + const metadata = useNodesStore.getState(); + return assertFormWeightFormatSelection( + form, + executionSpecForForm(form), + metadata.studioModelCapabilities.find((item) => item.modelType === form.modelType), + metadata.workflowModelDescriptors, + ); +} + export function syncStudioGraphValues(form: StudioFormState = useStudioStore.getState().form) { const plannedForm = resolveGraphResourceForm(form); const binding = useStudioStore.getState().graphBinding; if (!binding) return false; + assertGraphWeightFormatSelection(plannedForm); syncManagedFormControlAliases(plannedForm, binding); applyFormValues(binding, plannedForm); return true; @@ -3885,6 +3929,7 @@ export function syncStudioGraphDefinition(form: StudioFormState = useStudioStore const studio = useStudioStore.getState(); let binding = studio.graphBinding; if (!binding) return false; + assertGraphWeightFormatSelection(plannedForm); if (!bindingMatchesForm(binding, plannedForm)) { const canMigrateControlledFingerprint = Boolean( binding.controlled && @@ -4587,6 +4632,7 @@ async function createOrUpdateStudioGraphInner( const form = resolveGraphResourceForm(formInput); const existingStudio = useStudioStore.getState(); const existingBinding = existingStudio.graphBinding; + assertGraphWeightFormatSelection(form); if (existingBinding?.controlled) { if ( bindingFinalizationProofMatches(existingBinding, form) && diff --git a/src/studio/huggingFaceClusterInstance.ts b/src/studio/huggingFaceClusterInstance.ts index d4bc4123..516f7885 100644 --- a/src/studio/huggingFaceClusterInstance.ts +++ b/src/studio/huggingFaceClusterInstance.ts @@ -392,9 +392,8 @@ export function setHuggingFaceClusterParameter( ): HuggingFaceClusterInstance { const field = definition.inputs.find((candidate) => candidate.name === name); if (!field) invalid(`unknown parameter ${name}.`); - // NumberField deliberately commits text so users can edit incomplete values. - // Cluster instances are durable semantic receipts, so retain the exact JSON - // type declared by the reviewed backend definition instead of a DOM string. + // Historical widgets and imported documents may supply numeric strings. + // Cluster instances retain the JSON type declared by the backend definition. const normalizedValue = typeof value === 'string' && (field.type === 'int' || field.type === 'builtins.int') ? Number(value) diff --git a/src/studio/managedControlPolicy.ts b/src/studio/managedControlPolicy.ts index bbbc3e15..0488abe7 100644 --- a/src/studio/managedControlPolicy.ts +++ b/src/studio/managedControlPolicy.ts @@ -388,6 +388,7 @@ const OUTPUT_PREVIEW_POLICY = { const MODELS_POLICY = { model_type: advanced('modelType'), + weight_format: advanced('weightFormat'), repo_id: advanced(), model_id: advanced(), dtype: advanced('dtype'), diff --git a/src/studio/managedControlSync.ts b/src/studio/managedControlSync.ts index ea647727..1b99a4b9 100644 --- a/src/studio/managedControlSync.ts +++ b/src/studio/managedControlSync.ts @@ -4,6 +4,7 @@ import type { NodeParams } from '../stores/useNodeStore'; import { useStudioStore } from '../stores/useStudioStore'; import { classifyManagedControl, type ManagedControlFormKey } from './managedControlPolicy'; import { runtimeOptionValues } from './runtimeOptions'; +import { assertStudioWeightFormatOptions, studioWeightFormat } from './weightFormat'; import type { StudioFormState, StudioGraphBinding } from './types'; const AUDIO_MODES = new Set(['text_to_audio', 'audio_variation', 'audio_continuation', 'audio_repaint']); @@ -213,7 +214,12 @@ function valueForTarget(sourceValue: unknown, targetParam: NodeParams, randomSee return sourceScalar; } -function formPatchForControl(formKey: keyof StudioFormState, value: unknown): Partial | null { +function formPatchForControl( + formKey: keyof StudioFormState, + value: unknown, + param?: NodeParams, +): Partial | null { + if (formKey === 'weightFormat') return { weightFormat: assertStudioWeightFormatOptions(value, param) }; const form = useStudioStore.getState().form; if (formKey === 'seed' && typeof value === 'object' && value !== null && !Array.isArray(value)) { const parsedSeed = Number((value as Record).value); @@ -263,12 +269,16 @@ export function syncManagedControlGroup( sourceValue: unknown, randomSeed = false, ) { - managedNodes(binding).forEach((node) => { - Object.entries(node.data.params ?? {}).forEach(([paramKey, param]) => { - if (managedControlSyncGroup(node, paramKey, binding) !== syncGroup) return; - useFlowStore.getState().setParam(node.id, paramKey, valueForTarget(sourceValue, param, randomSeed)); - }); - }); + const targets = managedNodes(binding).flatMap((node) => + Object.entries(node.data.params ?? {}) + .filter(([paramKey]) => managedControlSyncGroup(node, paramKey, binding) === syncGroup) + .map(([paramKey, param]) => ({ node, paramKey, param })), + ); + if (syncGroup === 'form:weightFormat') + targets.forEach(({ param }) => assertStudioWeightFormatOptions(sourceValue, param)); + targets.forEach(({ node, paramKey, param }) => + useFlowStore.getState().setParam(node.id, paramKey, valueForTarget(sourceValue, param, randomSeed)), + ); } export function syncManagedFormControlAliases(form: StudioFormState, binding: StudioGraphBinding) { @@ -289,7 +299,12 @@ export function syncManagedFormControlAliases(form: StudioFormState, binding: St syncGroups.forEach((syncGroup) => { const formKey = syncGroup.slice('form:'.length) as keyof StudioFormState; - syncManagedControlGroup(binding, syncGroup, form[formKey], form.randomSeed); + syncManagedControlGroup( + binding, + syncGroup, + formKey === 'weightFormat' ? studioWeightFormat(form.weightFormat) : form[formKey], + form.randomSeed, + ); }); declarativeBindings.forEach((declarativeBinding, syncGroup) => { const value = declarativeBindingValue(declarativeBinding, form); @@ -320,11 +335,25 @@ export function syncManagedNodeControlChange(nodeId: string, paramKey: string, v if (!syncGroup) return; let form = useStudioStore.getState().form; if (formKey) { - const patch = formPatchForControl(formKey, value); + const patch = formPatchForControl(formKey, value, param); if (!patch) return; + if (formKey === 'weightFormat') { + // Validate every mirrored current schema before the form or sibling writes. + managedNodes(binding).forEach((target) => + Object.entries(target.data.params ?? {}).forEach(([name, field]) => { + if (managedControlSyncGroup(target, name, binding) === syncGroup) + assertStudioWeightFormatOptions(value, field); + }), + ); + } useStudioStore.getState().updateForm(patch); form = useStudioStore.getState().form; - syncManagedControlGroup(binding, syncGroup, form[formKey], form.randomSeed); + syncManagedControlGroup( + binding, + syncGroup, + formKey === 'weightFormat' ? studioWeightFormat(form.weightFormat) : form[formKey], + form.randomSeed, + ); return; } syncManagedControlGroup(binding, syncGroup, value, form.randomSeed); diff --git a/src/studio/modelCache.ts b/src/studio/modelCache.ts index 5a87fdd1..325108f7 100644 --- a/src/studio/modelCache.ts +++ b/src/studio/modelCache.ts @@ -105,11 +105,25 @@ export function localModelsContain(localModels: unknown[], repo: string) { } export function getStudioModelCacheStatus( - profile: StudioModelProfile, + profile: StudioModelProfile | null, hfCache: unknown[], localModels: unknown[], diagnostics: ModelCacheDiagnostics | null, ): StudioModelCacheStatus { + if (!profile) { + return { + hfCached: false, + localCached: false, + appDataDiscovered: false, + matchingExternalPackages: [], + matchingExternalRepos: [], + installed: false, + runnable: false, + repairRequired: false, + scannedPaths: [], + reason: 'Refresh the exact backend model declaration for this weight format; no native installation is selected.', + }; + } if (profile.artifactInstallRequired === false) { return { hfCached: false, diff --git a/src/studio/modelProfiles.ts b/src/studio/modelProfiles.ts index dcad3f8e..a840902e 100644 --- a/src/studio/modelProfiles.ts +++ b/src/studio/modelProfiles.ts @@ -79,6 +79,10 @@ export const FLUX2_KLEIN_BASE_REPO = 'black-forest-labs/FLUX.2-klein-base-4B'; export const FLUX2_DEV_REPO = 'black-forest-labs/FLUX.2-dev'; export const FLUX2_DEV_REVISION = '26afe3a78bb242c0a8bb181dcc8937bb16e5c66c'; export const FLUX2_KLEIN_BASE_REVISION = 'a3b4f4849157f664bdbc776fd7453c2783562f4d'; +export const FLUX3_BASE_REPO = 'black-forest-labs/flux-3-image-klein-base'; +export const FLUX3_BASE_REVISION = '1469d27cfb9bb1bd81d3a93f5a023b39dbf136e4'; +export const FLUX3_DISTILLED_REPO = 'black-forest-labs/flux-3-image-klein'; +export const FLUX3_DISTILLED_REVISION = '8454017f9ebaada30c998fccd9f67a80c7580f68'; export const FLUX_DEV_FP8_REPO = 'black-forest-labs/FLUX.1-dev-FP8'; export const FLUX_KONTEXT_NVFP4_REPO = 'black-forest-labs/FLUX.1-Kontext-dev-NVFP4'; export const SDXL_BASE_REPO = 'stabilityai/stable-diffusion-xl-base-1.0'; @@ -449,6 +453,8 @@ const STUDIO_MODEL_LABEL_VALUES = [ 'Built-in Video Operations', 'Real-ESRGAN x2 Video Upscale', 'Real-ESRGAN x2 Image Upscale', + 'FLUX 3 Image Klein Base', + 'FLUX 3 Image Klein', ] as const; export const STUDIO_MODE_DESCRIPTIONS: Record = { @@ -1038,6 +1044,47 @@ const EXPERT_WORKFLOW_PENDING = { liveProof: false, } satisfies Partial; +/** Static presentation for reviewed identities, never a runnable or public admission. + * Current backend profiles and recipes remain authoritative for ordinary graphs. */ +function contractOnlyImageProfile( + defaultRepo: string, + revision: string, + steps: number, + guidance: number, + supportsGuidance: boolean, +): StudioModelProfileSource { + return { + family: 'FLUX Image', + catalogVisibility: 'internal', + defaultRepo, + defaultDtype: 'bfloat16', + defaultSize: { width: 1024, height: 1024, aspectRatio: '1:1' }, + recommendedSteps: steps, + recommendedGuidance: guidance, + recommendedMaxSequenceLength: 8192, + supportsNegativePrompt: supportsGuidance, + supportFlags: 5, + outputKind: 'image', + offloadSupport: { + modes: ['none', 'model_cpu', 'group_cpu', 'group_disk'], + default: 'none', + lowVram: 'none', + emergency: 'none', + }, + lowVram: { dtype: 'bfloat16', autoOffload: false, offloadMode: 'none', steps, width: 1024, height: 1024 }, + modes: ['text_to_image', 'edit_image'], + modeRequirements: { edit_image: { requiredImages: ['referenceImages'] } }, + revisionCandidates: [revision], + executionStatus: 'expert_only', + qualificationStatus: 'contract-only-presentation', + qualifiedModes: [], + autoEligible: false, + templateEligible: false, + galleryEligible: false, + liveProof: false, + }; +} + function expertVideoProfile( source: StudioModelProfileSource, modes: StudioMode[], @@ -3727,6 +3774,8 @@ const STUDIO_MODEL_PROFILE_SOURCES = { galleryEligible: false, liveProof: true, }, + Flux3ModularPipeline: contractOnlyImageProfile(FLUX3_BASE_REPO, FLUX3_BASE_REVISION, 50, 3.5, true), + Flux3DistilledModularPipeline: contractOnlyImageProfile(FLUX3_DISTILLED_REPO, FLUX3_DISTILLED_REVISION, 16, 1, false), } satisfies Record; if (STUDIO_MODEL_LABEL_VALUES.length !== Object.keys(STUDIO_MODEL_PROFILE_SOURCES).length) { @@ -4496,6 +4545,8 @@ export const STUDIO_AUTO_MODEL_REQUIREMENTS = { notes: 'Uses the generic Spandrel image upscaler and preserves the model-reported native scale.', manualOnlyReason: 'One exact ROCm run is qualified; broader platform coverage remains pending.', }, + Flux3ModularPipeline: /* @__PURE__ */ pendingPlanningRequirement('Flux3ModularPipeline'), + Flux3DistilledModularPipeline: /* @__PURE__ */ pendingPlanningRequirement('Flux3DistilledModularPipeline'), } satisfies Record; export function getStudioModelDisplayName(profile: StudioModelProfile) { diff --git a/src/studio/optionalRuntimes.ts b/src/studio/optionalRuntimes.ts index df05c22a..452d9da7 100644 --- a/src/studio/optionalRuntimes.ts +++ b/src/studio/optionalRuntimes.ts @@ -450,6 +450,19 @@ export function parseOptionalRuntimeExecutionProfiles( profile.optional_runtime_delivery !== requirement.delivery))) ) invalid(); + if (Object.prototype.hasOwnProperty.call(profile, 'required_diffusers_provider')) { + const provider = profile.required_diffusers_provider; + if (typeof provider !== 'string' || !runtimeId.test(provider)) invalid(); + const declared = ids(profile.optional_runtime_profiles, runtimeId, false); + if ( + profile.optional_runtime_delivery !== 'optional_overlay' || + !declared.includes(provider) || + requirement?.delivery !== 'optional_overlay' || + requirement.requiredNow !== true || + !requirement.profileIds.includes(provider) + ) + invalid(); + } delete profile.optional_runtime_requirement; profile.modes = modes; profile.optionalRuntimeRequirement = requirement; diff --git a/src/studio/outputContracts.ts b/src/studio/outputContracts.ts index 73a44e05..76839c94 100644 --- a/src/studio/outputContracts.ts +++ b/src/studio/outputContracts.ts @@ -10,6 +10,7 @@ import { PLANNING_STUDIO_TEMPLATES, STUDIO_TEMPLATES } from './templates'; import { CONTROLLED_GRAPH_CONTRACT_IDS, type ControlledGraphContractId } from './controlledWorkflowContracts'; import { blockOutputRunFormV2 } from './blockRunFormV2'; import { applyResolvedExecutionInputs } from './resolvedExecutionInputs'; +import { persistedStudioWeightFormat } from './weightFormat'; import type { StudioFormState, LegacyStudioOutputField, @@ -162,6 +163,7 @@ export function coerceStudioFormState(value: unknown): StudioFormState { classLabel: numberValue(form.classLabel, DEFAULT_STUDIO_FORM.classLabel), resourceMode: normalizeStudioResourceMode(form.resourceMode), dtype: stringUnionValue(form.dtype, STUDIO_DTYPES, DEFAULT_STUDIO_FORM.dtype), + ...(form.weightFormat === undefined ? {} : { weightFormat: persistedStudioWeightFormat(form.weightFormat) }), quantizationMode: stringUnionValue( form.quantizationMode, STUDIO_QUANTIZATION_MODES, @@ -493,9 +495,13 @@ export function coerceStudioOutput(value: unknown): StudioOutput | undefined { mediaCollectionHash: optionalString(value.mediaCollectionHash), mediaItems: coerceStudioOutputMediaItems(value.mediaItems), templateLockHash: optionalString(value.templateLockHash), - promptSettingsHash: optionalString(value.promptSettingsHash), + promptSettingsHash: formSnapshot.weightFormat === null ? undefined : optionalString(value.promptSettingsHash), exactTemplateCompatible: - typeof value.exactTemplateCompatible === 'boolean' ? value.exactTemplateCompatible : undefined, + formSnapshot.weightFormat === null + ? false + : typeof value.exactTemplateCompatible === 'boolean' + ? value.exactTemplateCompatible + : undefined, variationGroupId: optionalString(value.variationGroupId), variationLabel: optionalString(value.variationLabel), provenance: safeCloneJson(value.provenance) as StudioOutput['provenance'], diff --git a/src/studio/promptEnhancementAuthoring.ts b/src/studio/promptEnhancementAuthoring.ts index 05dec0b8..8d05ebf0 100644 --- a/src/studio/promptEnhancementAuthoring.ts +++ b/src/studio/promptEnhancementAuthoring.ts @@ -16,6 +16,7 @@ export type { PromptEnhancementParent } from './promptEnhancementParent'; import type { OperationAuthoringRecipe } from './operationAuthoringRecipe'; import type { OperationGraph } from '../workflow/operationAuthoring'; import type { NodeData } from '../stores/useNodeStore'; +import { AUTHORED_CONSTRAINT_POLICY } from './promptEnhancementConstraints'; /** Attach only a backend-declared offer to its actual prompt owner before grouping. * This does not add a branch, change values, make a request, or grant readiness. */ @@ -93,6 +94,51 @@ export function refreshPromptEnhancementParents( export type AuthoredEnhancementPair = { prompt: string; layout: unknown }; +/** Explicit Enable may choose a backend-declared raw/layout alternative. Only + * advisory identities differ: existing image operations, values and wires stay exact. */ +export async function planSelectPromptEnhancementParent( + graph: OperationGraph, + ownerId: string, + current: OperationAuthoringRecipe, + next: OperationAuthoringRecipe, +): Promise { + const { owner, selection, unpacked, groups } = await editableContext(graph, ownerId); + sameParent(selection, current); + if (owner.data.operationAuthoring?.ancillaryBindings?.length) + invalidAncillary('disable the current enhancement before selecting another one.'); + const { canonicalBlockStringifyV2 } = await import('./blockSchemaV2'); + const parentBody = (value: OperationAuthoringRecipe) => ({ + schemaVersion: value.schemaVersion, + canonicalizationVersion: value.canonicalizationVersion, + baseSpecId: value.baseSpecId, + baseSpecContentHash: value.baseSpecContentHash, + executionProfileIds: value.executionProfileIds, + roles: value.roles, + edges: value.edges, + bindings: value.bindings, + initialValues: value.initialValues, + }); + if (canonicalBlockStringifyV2(parentBody(current)) !== canonicalBlockStringifyV2(parentBody(next))) + invalidAncillary('the alternative enhancement changes its parent graph declaration.'); + const currentChild = current.ancillaryOperations?.[0], + child = next.ancillaryOperations?.[0]; + if ( + current.ancillaryOperations?.length !== 1 || + next.ancillaryOperations?.length !== 1 || + !currentChild || + !child || + canonicalBlockStringifyV2(currentChild.bindings.owner) !== canonicalBlockStringifyV2(child.bindings.owner) || + owner.id !== selection.parentRoleNodes[child.bindings.owner.role] + ) + invalidAncillary('the alternative enhancement changes its authored input owner.'); + owner.data.operationAuthoring!.ancillaryParent = parsePromptEnhancementParent({ + schemaVersion: 1, + parent: { ...child.parent, authoringContentHash: next.contentHash }, + parentRoleNodes: selection.parentRoleNodes, + }); + return groups.restoreVisualOperationGroups(unpacked.graph, unpacked); +} + function sameParent(selection: PromptEnhancementParent, recipe: OperationAuthoringRecipe) { const parent = selection.parent; if ( @@ -154,13 +200,17 @@ function authoredPair(graph: OperationGraph, ownerId: string, child: AncillaryOp function assertDeclaredLayout(child: AncillaryOperation, layout: unknown) { if ( - child.layoutPolicy === 'append-details-preserve-layout-v1' && + (child.layoutPolicy === 'append-details-preserve-layout-v1' || child.layoutPolicy === AUTHORED_CONSTRAINT_POLICY) && (!layout || typeof layout !== 'object' || !Array.isArray((layout as { regions?: unknown }).regions) || !(layout as { regions: unknown[] }).regions.length) ) - invalidAncillary('appended wording requires the current authored regions.'); + invalidAncillary( + child.layoutPolicy === 'append-details-preserve-layout-v1' + ? 'appended wording requires the current authored regions.' + : 'this enhancement mode requires the current authored regions.', + ); if ( layout !== null && child.verification && @@ -180,7 +230,8 @@ function assertDeclaredLayout(child: AncillaryOperation, layout: unknown) { if ( layout !== null && child.layoutPolicy !== 'preserve-authored-v1' && - child.layoutPolicy !== 'append-details-preserve-layout-v1' + child.layoutPolicy !== 'append-details-preserve-layout-v1' && + child.layoutPolicy !== AUTHORED_CONSTRAINT_POLICY ) invalidAncillary('this enhancement does not declare lossless authored-layout preservation.'); } diff --git a/src/studio/promptEnhancementConstraints.ts b/src/studio/promptEnhancementConstraints.ts new file mode 100644 index 00000000..bad55e73 --- /dev/null +++ b/src/studio/promptEnhancementConstraints.ts @@ -0,0 +1,249 @@ +/** Bounded editing metadata; this never grants model execution or validates wording quality. */ +export const AUTHORED_CONSTRAINT_OPERATION = 'enhance_prompt_constrained_authored_v1'; +export const AUTHORED_CONSTRAINT_POLICY = 'constrained-authored-table-v1'; +export const AUTHORED_CONSTRAINT_VERSION = 'authored-layout-byte-prefix-v1'; + +export type AuthoredConstraintLimits = { + max_regions: number; + max_references: number; + max_caption_chars: number; + max_description_chars: number; + max_output_bytes: number; + max_new_tokens: number; + max_vocabulary_tokens: number; + max_token_bytes: number; + max_vocabulary_bytes: number; + max_trie_nodes: number; + max_cache_bytes: number; + build_seconds: number; + lookup_seconds: number; + max_request_seconds: number; +}; +export type AuthoredLayoutConstraint = { + schemaVersion: 1; + version: typeof AUTHORED_CONSTRAINT_VERSION; + status: 'contract_only'; + operation: typeof AUTHORED_CONSTRAINT_OPERATION; + layoutPolicy: typeof AUTHORED_CONSTRAINT_POLICY; + adapterId: string; + repository: string; + revision: string; + transformersVersion: string; + tokenizersVersion: string; + tokenizerClass: string; + ordinaryVocabularyTokens: number; + ordinaryVocabularySha256: string; + tokenizerSemanticSha256: string; + sourcePreTokenizerSha256: string; + effectivePreTokenizerSha256: string; + reservedAddedTokenIds: number[]; + trueSpecialTokenIds: number[]; + configuredEosTokenIds: number[]; + effectiveEosTokenIds: number[]; + padTokenId: number; + preparationRamBytes: number; + deadlineSeconds: number; + artifacts: { path: string; byteSize: number; sha256: string }[]; + declarationSha256: string; + limits: AuthoredConstraintLimits; +}; +export type ConsumedAuthoredLayoutConstraint = { + contract: AuthoredLayoutConstraint; + authoritativeRowsSha256: string; + vocabularySha256: string; + tokenizerSemanticSha256: string; + renderedInputIdsSha256: string; + promptTokenCount: number; + limits: AuthoredConstraintLimits; +}; +export type AuthoredConstraintCompletion = { + version: typeof AUTHORED_CONSTRAINT_VERSION; + terminalTokenId: number; + grammarComplete: true; + rawOutputSha256: string; + generatedTokens: number; + constraintFingerprintSha256: string; +}; +const invalid = (): never => { + throw new Error('Invalid authored-layout constraint contract.'); +}; +const closed = (value: unknown, keys: readonly string[]): Record => { + if ( + !value || + typeof value !== 'object' || + Array.isArray(value) || + ![null, Object.prototype].includes(Object.getPrototypeOf(value)) + ) + return invalid(); + if (Reflect.ownKeys(value).length !== keys.length) return invalid(); + for (const key of keys) { + const entry = Object.getOwnPropertyDescriptor(value, key); + if (!entry?.enumerable || !('value' in entry)) return invalid(); + } + return value as Record; +}; +const integer = (value: unknown, min: number, max: number): number => + typeof value === 'number' && Number.isSafeInteger(value) && value >= min && value <= max ? value : invalid(); +const text = (value: unknown, max = 256): string => + typeof value === 'string' && + value.length > 0 && + value.length <= max && + value.trim() === value && + [...value].every((c) => c.charCodeAt(0) >= 32) + ? value + : invalid(); +const digest = (value: unknown, prefix = true): string => + typeof value === 'string' && (prefix ? /^sha256:[0-9a-f]{64}$/u : /^[0-9a-f]{64}$/u).test(value) ? value : invalid(); +const ids = (value: unknown, max = 512): number[] => { + if ( + !Array.isArray(value) || + !value.length || + value.length > max || + Reflect.ownKeys(value).length !== value.length + 1 + ) + return invalid(); + const rows = Array.from({ length: value.length }, (_, index) => { + const item = Object.getOwnPropertyDescriptor(value, index); + return item?.enumerable && 'value' in item ? integer(item.value, 0, 1000000) : invalid(); + }); + if (new Set(rows).size !== rows.length) return invalid(); + return rows; +}; +export function parseAuthoredConstraintLimits(value: unknown): AuthoredConstraintLimits { + const caps = { + max_regions: 32, + max_references: 10, + max_caption_chars: 131072, + max_description_chars: 4096, + max_output_bytes: 262144, + max_new_tokens: 3584, + max_vocabulary_tokens: 300000, + max_token_bytes: 512, + max_vocabulary_bytes: 16777216, + max_trie_nodes: 2000000, + max_cache_bytes: 16777216, + build_seconds: 10, + lookup_seconds: 2, + max_request_seconds: 1800, + }; + const row = closed(value, Object.keys(caps)); + for (const [key, cap] of Object.entries(caps)) integer(row[key], 1, cap); + return row as AuthoredConstraintLimits; +} +export function parseAuthoredLayoutConstraint(value: unknown): AuthoredLayoutConstraint { + const item = closed(value, [ + 'schemaVersion', + 'version', + 'status', + 'operation', + 'layoutPolicy', + 'adapterId', + 'repository', + 'revision', + 'transformersVersion', + 'tokenizersVersion', + 'tokenizerClass', + 'ordinaryVocabularyTokens', + 'ordinaryVocabularySha256', + 'tokenizerSemanticSha256', + 'sourcePreTokenizerSha256', + 'effectivePreTokenizerSha256', + 'reservedAddedTokenIds', + 'trueSpecialTokenIds', + 'configuredEosTokenIds', + 'effectiveEosTokenIds', + 'padTokenId', + 'preparationRamBytes', + 'deadlineSeconds', + 'artifacts', + 'declarationSha256', + 'limits', + ]); + if ( + item.schemaVersion !== 1 || + item.version !== AUTHORED_CONSTRAINT_VERSION || + item.status !== 'contract_only' || + item.operation !== AUTHORED_CONSTRAINT_OPERATION || + item.layoutPolicy !== AUTHORED_CONSTRAINT_POLICY + ) + invalid(); + for (const key of ['adapterId', 'repository', 'transformersVersion', 'tokenizersVersion', 'tokenizerClass']) + text(item[key]); + if (!/^[0-9a-f]{40}$/u.test(text(item.revision, 40))) invalid(); + const count = integer(item.ordinaryVocabularyTokens, 1, 300000); + for (const key of [ + 'ordinaryVocabularySha256', + 'tokenizerSemanticSha256', + 'sourcePreTokenizerSha256', + 'effectivePreTokenizerSha256', + 'declarationSha256', + ]) + digest(item[key]); + const reserved = ids(item.reservedAddedTokenIds), + specials = ids(item.trueSpecialTokenIds); + const configured = ids(item.configuredEosTokenIds, 16), + effective = ids(item.effectiveEosTokenIds, 16); + if ( + reserved.some((id) => id < count) || + specials.some((id) => !reserved.includes(id)) || + configured.some((id) => !specials.includes(id)) || + effective.some((id) => !configured.includes(id)) || + !reserved.includes(integer(item.padTokenId, count, 1000000)) + ) + invalid(); + integer(item.preparationRamBytes, 1, 268435456); + const deadline = integer(item.deadlineSeconds, 1, 1800); + const limits = parseAuthoredConstraintLimits(item.limits); + if (limits.max_vocabulary_tokens < count || limits.max_request_seconds !== deadline) invalid(); + if (!Array.isArray(item.artifacts) || item.artifacts.length !== 3 || Reflect.ownKeys(item.artifacts).length !== 4) + invalid(); + const names = ['tokenizer.json', 'tokenizer_config.json', 'generation_config.json']; + for (let index = 0; index < 3; index++) { + const entry = Object.getOwnPropertyDescriptor(item.artifacts, index); + if (!entry?.enumerable || !('value' in entry)) invalid(); + const row = closed(entry!.value, ['path', 'byteSize', 'sha256']); + if (row.path !== names[index]) invalid(); + integer(row.byteSize, 1, 24 * 1024 ** 2); + digest(row.sha256, false); + } + if (JSON.stringify(item).length > 16384) invalid(); + return item as AuthoredLayoutConstraint; +} +export function parseConsumedAuthoredLayoutConstraint(value: unknown): ConsumedAuthoredLayoutConstraint { + const item = closed(value, [ + 'contract', + 'authoritativeRowsSha256', + 'vocabularySha256', + 'tokenizerSemanticSha256', + 'renderedInputIdsSha256', + 'promptTokenCount', + 'limits', + ]); + parseAuthoredLayoutConstraint(item.contract); + for (const key of [ + 'authoritativeRowsSha256', + 'vocabularySha256', + 'tokenizerSemanticSha256', + 'renderedInputIdsSha256', + ]) + digest(item[key]); + integer(item.promptTokenCount, 1, 32768); + parseAuthoredConstraintLimits(item.limits); + return item as ConsumedAuthoredLayoutConstraint; +} +export function parseAuthoredConstraintCompletion(value: unknown): AuthoredConstraintCompletion { + const item = closed(value, [ + 'version', + 'terminalTokenId', + 'grammarComplete', + 'rawOutputSha256', + 'generatedTokens', + 'constraintFingerprintSha256', + ]); + if (item.version !== AUTHORED_CONSTRAINT_VERSION || item.grammarComplete !== true) invalid(); + integer(item.terminalTokenId, 0, 1000000); + integer(item.generatedTokens, 1, 3584); + digest(item.rawOutputSha256); + digest(item.constraintFingerprintSha256); + return item as AuthoredConstraintCompletion; +} diff --git a/src/studio/promptEnhancementPreview.ts b/src/studio/promptEnhancementPreview.ts index 61c7eef7..1bf0e794 100644 --- a/src/studio/promptEnhancementPreview.ts +++ b/src/studio/promptEnhancementPreview.ts @@ -18,6 +18,7 @@ import { planEnablePromptEnhancement, planDisablePromptEnhancement, planRefreshPromptEnhancementRequest, + planSelectPromptEnhancementParent, } from './promptEnhancementAuthoring'; import { coordinateGraphRun, type CoordinatedGraphRunResult } from './runCoordinator'; import { validateCurrentRun } from './runReadiness'; @@ -38,6 +39,7 @@ import { } from './promptEnhancementSummary'; import { parseLayoutConditioning } from './layoutConditioning'; import { planApplyPromptEnhancement, promptEnhancementPairHash } from './promptEnhancementAuthoring'; +import { AUTHORED_CONSTRAINT_OPERATION, AUTHORED_CONSTRAINT_POLICY } from './promptEnhancementConstraints'; function currentSourceKey() { const { nodes, edges } = useFlowStore.getState(); @@ -57,14 +59,28 @@ export function promptEnhancementOwner( /** A normal metadata request can refuse private/unavailable profiles. Nothing * mutates or prepares until both exact selected responses have validated. */ -async function resolveSelection(ownerId: string, signal?: AbortSignal) { +async function resolveSelection( + ownerId: string, + signal?: AbortSignal, + chooseForAuthoredLayout = false, + rawAuthoringRecipeId?: string, + layoutAuthoringRecipeId?: string, +) { const context = { ...captureWorkflowOperationContext() }; const sourceKey = currentSourceKey(); - const graph = useFlowStore.getState().toObject(); + let graph = useFlowStore.getState().toObject(); const signature = operationGraphSignature(graph); - const { selection, native } = promptEnhancementOwner(ownerId); + let { selection, native } = promptEnhancementOwner(ownerId); const identity = selection.parent; const operations = useNodesStore.getState().operationContracts; + const descriptors = () => + useNodesStore + .getState() + .workflowModelDescriptors.filter( + (descriptor) => + descriptor.profileId === identity.executionProfileId && descriptor.pipeline === identity.pipelineClass, + ); + const descriptorsKey = canonicalBlockStringifyV2(descriptors()); const operationsKey = canonicalBlockStringifyV2( operations.filter( (operation) => operation.pipelineClass === identity.pipelineClass && operation.task === identity.task, @@ -75,6 +91,7 @@ async function resolveSelection(ownerId: string, signal?: AbortSignal) { assertWorkflowOperationContext(context); if ( currentSourceKey() !== sourceKey || + canonicalBlockStringifyV2(descriptors()) !== descriptorsKey || operationsKey !== canonicalBlockStringifyV2( useNodesStore @@ -95,7 +112,7 @@ async function resolveSelection(ownerId: string, signal?: AbortSignal) { identity.authoringRecipeId, ); check(); - const recipe = first.authoring; + let recipe = first.authoring; if ( !recipe || recipe.contentHash !== identity.authoringContentHash || @@ -131,7 +148,7 @@ async function resolveSelection(ownerId: string, signal?: AbortSignal) { typeof artifact.value !== 'string' ) invalidAncillary('the selected parent requires its immutable Hub artifact.'); - const selected = await requestOperationStarter( + let selected = await requestOperationStarter( identity.pipelineClass, identity.task, operations, @@ -143,6 +160,75 @@ async function resolveSelection(ownerId: string, signal?: AbortSignal) { check(); if (!selected.authoring || canonicalBlockStringifyV2(selected.authoring) !== canonicalBlockStringifyV2(recipe)) invalidAncillary('the selected repository resolved a different enhancement declaration.'); + if (chooseForAuthoredLayout) { + const choices = descriptors(); + const normalId = choices.length === 1 ? choices[0]!.authoringRecipes?.[identity.task] : undefined; + const rawId = choices.length === 1 ? choices[0]!.rawPromptAuthoringRecipes?.[identity.task] : undefined; + const declared = choices.length === 1 ? (choices[0]!.rawPromptAuthoringChoices?.[identity.task] ?? []) : []; + const layoutDeclared = + choices.length === 1 ? (choices[0]!.layoutPromptAuthoringChoices?.[identity.task] ?? []) : []; + const rawIds = new Set([...(rawId ? [rawId] : []), ...declared.map((choice) => choice.authoringRecipeId)]); + const layoutIds = new Set([ + ...(normalId ? [normalId] : []), + ...layoutDeclared.map((choice) => choice.authoringRecipeId), + ]); + if (rawAuthoringRecipeId !== undefined && (!normalId || !rawId || !rawIds.has(rawAuthoringRecipeId))) + invalidAncillary('the selected raw enhancement recipe is no longer declared. Refresh the current choices.'); + if (layoutAuthoringRecipeId !== undefined && (!normalId || !layoutIds.has(layoutAuthoringRecipeId))) + invalidAncillary('the selected layout enhancement recipe is no longer declared. Refresh the current choices.'); + // Only exact backend-declared alternatives opt into selection. Unrelated + // saved recipes retain their identity; an explicit layout choice is never + // inferred from a model name or substituted for the normal append default. + if (normalId && (rawId || layoutDeclared.length) && (layoutIds.has(recipe.id) || rawIds.has(recipe.id))) { + const owner = native.nodes.find((node) => node.id === ownerId); + const child = recipe.ancillaryOperations?.length === 1 ? recipe.ancillaryOperations[0] : undefined; + if (!owner || !child || owner.data.operationAuthoring?.ancillaryBindings?.length) + invalidAncillary('disable the current enhancement before selecting another one.'); + const field = child.bindings.owner.layoutField; + if (native.edges.some((edge) => edge.target === ownerId && edge.targetHandle === field)) + invalidAncillary('enhancement needs authored inline prompt and layout controls.'); + const parameter = owner.data.params[field]; + if (!parameter) invalidAncillary('the authored layout control is unavailable.'); + const layout = parseLayoutConditioning(parameter.value ?? parameter.default ?? null); + if (layout && !layout.regions.length) + invalidAncillary('add authored regions or select Raw layout before enabling enhancement.'); + if (rawAuthoringRecipeId !== undefined && layout !== null) + invalidAncillary( + 'the selected raw enhancement recipe requires Raw prompt mode. Your authored layout is unchanged.', + ); + if ( + layout === null && + (layoutAuthoringRecipeId !== undefined || + (layoutIds.has(recipe.id) && recipe.id !== normalId && rawAuthoringRecipeId === undefined)) + ) + invalidAncillary('the selected layout enhancement requires authored regions. Your prompt is unchanged.'); + const desired = + layout === null + ? (rawAuthoringRecipeId ?? (rawIds.has(recipe.id) ? recipe.id : rawId) ?? normalId) + : (layoutAuthoringRecipeId ?? (layoutIds.has(recipe.id) ? recipe.id : normalId)); + if (desired !== recipe.id) { + const alternative = await requestOperationStarter( + identity.pipelineClass, + identity.task, + operations, + signal, + identity.executionProfileId, + desired, + artifact.value, + ); + check(); + if (!alternative.authoring) invalidAncillary('the declared alternative is unavailable.'); + graph = { + ...graph, + ...(await planSelectPromptEnhancementParent(graph, ownerId, recipe, alternative.authoring)), + }; + ({ selection, native } = promptEnhancementOwner(ownerId, graph)); + recipe = alternative.authoring; + selected = alternative; + } + } else if (rawAuthoringRecipeId !== undefined || layoutAuthoringRecipeId !== undefined) + invalidAncillary('the current parent does not declare the selected enhancement alternative.'); + } for (const [role, field, source] of recipe.bindings) { if (source !== 'pipelineClass' && source !== 'defaultRevision' && source !== 'executionProfileId') continue; const expected = @@ -199,8 +285,25 @@ function chooseChild(recipe: OperationAuthoringRecipe, childId?: string): Ancill return child; } -export async function enablePromptEnhancement(ownerId: string, childId?: string, signal?: AbortSignal) { - const selected = await resolveSelection(ownerId, signal); +export async function enablePromptEnhancement( + ownerId: string, + childId?: string, + signal?: AbortSignal, + rawAuthoringRecipeId?: string, + layoutAuthoringRecipeId?: string, +) { + if ( + (childId !== undefined && (rawAuthoringRecipeId !== undefined || layoutAuthoringRecipeId !== undefined)) || + (rawAuthoringRecipeId !== undefined && layoutAuthoringRecipeId !== undefined) + ) + invalidAncillary('choose one enhancement mode or a current child, not both.'); + const selected = await resolveSelection( + ownerId, + signal, + childId === undefined, + rawAuthoringRecipeId, + layoutAuthoringRecipeId, + ); const child = chooseChild(selected.recipe, childId); const graph = await planEnablePromptEnhancement( selected.graph, @@ -585,7 +688,11 @@ export async function finishPromptEnhancementPreview(run: PromptEnhancementPrevi runtime: { ...verification.modelReceipt.runtime, dtype, device, quantization }, }; const operation = - child.layoutPolicy === 'append-details-preserve-layout-v1' ? 'enhance_prompt_append_details' : 'enhance_prompt'; + child.layoutPolicy === AUTHORED_CONSTRAINT_POLICY + ? AUTHORED_CONSTRAINT_OPERATION + : child.layoutPolicy === 'append-details-preserve-layout-v1' + ? 'enhance_prompt_append_details' + : 'enhance_prompt'; equal(literal(state, request.role, request.operationField), operation, 'selected text operation'); const expectedControls = { max_new_tokens: literal(state, request.role, request.maxNewTokensField), @@ -621,6 +728,7 @@ export async function finishPromptEnhancementPreview(run: PromptEnhancementPrevi references, operation, ...(child.layoutPolicy ? { layoutPolicy: child.layoutPolicy } : {}), + ...(child.authoredLayoutConstraint ? { authoredLayoutConstraint: child.authoredLayoutConstraint } : {}), }); selected.assertCurrent(); assertRunCurrent(run); diff --git a/src/studio/promptEnhancementSummary.ts b/src/studio/promptEnhancementSummary.ts index 2e846499..c1d80f85 100644 --- a/src/studio/promptEnhancementSummary.ts +++ b/src/studio/promptEnhancementSummary.ts @@ -1,5 +1,15 @@ import { canonicalBlockStringifyV2 } from './blockSchemaV2'; import { parseLayoutConditioning, type LayoutConditioning } from './layoutConditioning'; +import { + AUTHORED_CONSTRAINT_OPERATION, + AUTHORED_CONSTRAINT_POLICY, + parseAuthoredConstraintCompletion, + parseAuthoredLayoutConstraint, + parseConsumedAuthoredLayoutConstraint, + type AuthoredLayoutConstraint, + type ConsumedAuthoredLayoutConstraint, + type AuthoredConstraintCompletion, +} from './promptEnhancementConstraints'; /** Transport observations only. Parsing or matching hashes never authorizes Apply. */ export type PromptEnhancementMode = 't2i' | 'i2i' | 't2i_bbox' | 'i2i_bbox'; @@ -64,7 +74,8 @@ export type EnhancementConsumedInput = { references: EnhancementReference[]; processedImageGrid: [number, number, number][]; fingerprints: { - operation: 'enhance_prompt' | 'enhance_prompt_append_details'; + operation: 'enhance_prompt' | 'enhance_prompt_append_details' | typeof AUTHORED_CONSTRAINT_OPERATION; + authored_layout_constraint?: ConsumedAuthoredLayoutConstraint; enhancement_max_new_tokens: number; prompt_adapter_id: string; system_prompt_mode: PromptEnhancementMode; @@ -103,6 +114,7 @@ type EnhancementCompletion = { generatedTokens: number; applyRequired: true; semanticFidelityVerified: false; + constraintCompletion?: AuthoredConstraintCompletion; }; export type EnhancementProposal = EnhancementCompletion & ( @@ -491,6 +503,10 @@ function parseConsumed( 'processed_pixel_shape', 'processed_grid_shape', ]; + const constrained = + item.fingerprints !== null && + typeof item.fingerprints === 'object' && + (item.fingerprints as Record).operation === AUTHORED_CONSTRAINT_OPERATION; const fingerprint = object(item.fingerprints, [ 'operation', 'enhancement_max_new_tokens', @@ -502,9 +518,12 @@ function parseConsumed( 'rendered_input_ids_sha256', 'reference_source_sha256', ...(references.length ? processed : []), + ...(constrained ? ['authored_layout_constraint'] : []), ]); if ( - (fingerprint.operation !== 'enhance_prompt' && fingerprint.operation !== 'enhance_prompt_append_details') || + (fingerprint.operation !== 'enhance_prompt' && + fingerprint.operation !== 'enhance_prompt_append_details' && + fingerprint.operation !== AUTHORED_CONSTRAINT_OPERATION) || fingerprint.enhancement_max_new_tokens !== controls.max_new_tokens || fingerprint.prompt_adapter_id !== adapterId || !MODES.some((mode) => mode === fingerprint.system_prompt_mode) @@ -549,6 +568,21 @@ function parseConsumed( } const imageMode = fingerprint.system_prompt_mode === 'i2i' || fingerprint.system_prompt_mode === 'i2i_bbox'; if (imageMode !== references.length > 0) invalid('mode differs from the actual image count.'); + if (constrained) { + const constraint = parseConsumedAuthoredLayoutConstraint(fingerprint.authored_layout_constraint); + if (!String(fingerprint.system_prompt_mode).endsWith('_bbox') || controls.min_new_tokens !== 0) + invalid('constrained generation requires its authored-layout mode and greedy controls.'); + equal(constraint.vocabularySha256, constraint.contract.ordinaryVocabularySha256, 'constraint vocabulary'); + equal(constraint.tokenizerSemanticSha256, constraint.contract.tokenizerSemanticSha256, 'constraint tokenizer'); + equal(constraint.renderedInputIdsSha256, fingerprint.rendered_input_ids_sha256, 'constraint input tokens'); + if (controls.max_new_tokens > constraint.contract.limits.max_new_tokens) + invalid('constraint generation limit exceeded.'); + equal( + constraint.limits, + { ...constraint.contract.limits, max_new_tokens: controls.max_new_tokens }, + 'constraint limits', + ); + } jsonBudget(item, 262144); return item as EnhancementConsumedInput; } @@ -826,6 +860,7 @@ function parseStructured( } function parseProposal(value: unknown, consumed: EnhancementConsumedInput, controls: PromptEnhancementControls) { + const constraint = consumed.fingerprints.authored_layout_constraint; const item = object(value, [ 'mode', 'text', @@ -838,6 +873,7 @@ function parseProposal(value: unknown, consumed: EnhancementConsumedInput, contr 'layoutOutputValidated', 'semanticFidelityVerified', 'applicationBlockedReason', + ...(constraint ? ['constraintCompletion'] : []), ]); if (item.mode !== consumed.fingerprints.system_prompt_mode) invalid('proposal mode differs from consumed input.'); const mode = item.mode as PromptEnhancementMode; @@ -845,10 +881,21 @@ function parseProposal(value: unknown, consumed: EnhancementConsumedInput, contr if (append && mode !== 't2i' && mode !== 'i2i') invalid('append-details requires a plain native prompt mode.'); const generated = integer(item.generatedTokens, 1, controls.max_new_tokens); integer(item.inputTokens, 1, 32768); - if (item.finishReason !== (generated === controls.max_new_tokens ? 'length' : 'stop')) + if (item.finishReason !== (constraint ? 'stop' : generated === controls.max_new_tokens ? 'length' : 'stop')) invalid('finish reason differs from token count.'); if (item.applyRequired !== true || item.semanticFidelityVerified !== false) invalid('proposal cannot assert implicit application or semantic fidelity.'); + if (constraint) { + const completion = parseAuthoredConstraintCompletion(item.constraintCompletion); + if ( + completion.generatedTokens !== generated || + item.inputTokens !== constraint.promptTokenCount || + !constraint.contract.effectiveEosTokenIds.includes(completion.terminalTokenId) || + item.layoutOutputValidated !== true || + item.applicationAllowed !== true + ) + invalid('constrained completion differs from its consumed request or terminal evidence.'); + } if (append) { if (item.text !== null) invalid('composed public text must remain null.'); if (item.layoutOutputValidated === true) { @@ -945,7 +992,8 @@ export type ExpectedPromptEnhancementSummary = { systemPromptSha256: string; references: EnhancementReference[]; operation?: EnhancementConsumedInput['fingerprints']['operation']; - layoutPolicy?: 'preserve-authored-v1' | 'append-details-preserve-layout-v1'; + layoutPolicy?: 'preserve-authored-v1' | 'append-details-preserve-layout-v1' | typeof AUTHORED_CONSTRAINT_POLICY; + authoredLayoutConstraint?: AuthoredLayoutConstraint; }; async function sha256(value: string): Promise { @@ -1044,15 +1092,22 @@ export async function verifyPromptEnhancementSummaryBindings( 'systemPromptSha256', 'references', ], - ['operation', 'layoutPolicy'], + ['operation', 'layoutPolicy', 'authoredLayoutConstraint'], ); const operation = expected.operation ?? 'enhance_prompt'; if ( - (operation !== 'enhance_prompt' && operation !== 'enhance_prompt_append_details') || + (operation !== 'enhance_prompt' && + operation !== 'enhance_prompt_append_details' && + operation !== AUTHORED_CONSTRAINT_OPERATION) || (expected.layoutPolicy !== undefined && expected.layoutPolicy !== 'preserve-authored-v1' && - expected.layoutPolicy !== 'append-details-preserve-layout-v1') || - (operation === 'enhance_prompt_append_details') !== (expected.layoutPolicy === 'append-details-preserve-layout-v1') + expected.layoutPolicy !== 'append-details-preserve-layout-v1' && + expected.layoutPolicy !== AUTHORED_CONSTRAINT_POLICY) || + (operation === 'enhance_prompt_append_details') !== + (expected.layoutPolicy === 'append-details-preserve-layout-v1') || + (operation === AUTHORED_CONSTRAINT_OPERATION) !== (expected.layoutPolicy === AUTHORED_CONSTRAINT_POLICY) || + (operation === AUTHORED_CONSTRAINT_OPERATION) !== + Object.prototype.hasOwnProperty.call(expected, 'authoredLayoutConstraint') ) invalid('operation differs from the independently declared layout policy.'); equal(summary.consumedInput.fingerprints.operation, operation, 'consumed operation'); @@ -1080,6 +1135,43 @@ export async function verifyPromptEnhancementSummaryBindings( : await sha256(canonicalBlockStringifyV2({ kind: 'object', value: expected.authoredLayout })); if (layoutDigest !== summary.request.authoredLayoutSha256) invalid('authored layout digest differs.'); const append = operation === 'enhance_prompt_append_details'; + if (operation === AUTHORED_CONSTRAINT_OPERATION) { + const contract = parseAuthoredLayoutConstraint(expected.authoredLayoutConstraint); + const constraint = summary.consumedInput.fingerprints.authored_layout_constraint!; + equal(constraint.contract, contract, 'source constraint contract'); + equal(contract.adapterId, summary.adapter.id, 'constraint adapter'); + equal(contract.repository, summary.modelReceipt.source.repository, 'constraint model'); + equal(contract.revision, summary.modelReceipt.source.revision, 'constraint revision'); + equal(contract.transformersVersion, summary.modelReceipt.runtime.transformersVersion, 'constraint runtime'); + if ( + summary.modelReceipt.runtime.dtype !== 'float32' || + summary.modelReceipt.runtime.device !== 'cuda:0' || + summary.modelReceipt.runtime.quantization.mode !== 'none' + ) + invalid('constrained generation requires the explicitly declared FP32 provider.'); + const rows = targetLayout(layout).regions.map((region) => { + const target = region.targetBox ? upstreamBox(region.targetBox) : null; + if (!summary.consumedInput.references.length) { + if (region.source) invalid('text-only constraints cannot acquire reference authority.'); + return { id: region.id, bbox: target, desc: region.description }; + } + if (region.source && region.source.referenceIndex >= summary.consumedInput.references.length) + invalid('constraint source reference is outside the current ordered input.'); + return { + id: region.id, + from: region.source ? `ref_image_${region.source.referenceIndex}` : 'target', + src_bbox: region.source ? upstreamBox(region.source.box) : null, + tgt_bbox: target, + desc: region.description, + }; + }); + equal(constraint.authoritativeRowsSha256, await sha256(receiptCanonical(rows)), 'authored constraint rows'); + equal( + summary.proposal.constraintCompletion!.constraintFingerprintSha256, + await sha256(receiptCanonical(constraint)), + 'constraint completion binding', + ); + } const bbox = summary.proposal.mode.endsWith('_bbox'); if (append ? bbox || !layout?.regions.length : bbox !== Boolean(layout?.regions.length)) invalid('mode differs from the independently declared authored layout policy.'); diff --git a/src/studio/registeredBlockAdapterV2.ts b/src/studio/registeredBlockAdapterV2.ts index 5c8e29c4..daeb65ca 100644 --- a/src/studio/registeredBlockAdapterV2.ts +++ b/src/studio/registeredBlockAdapterV2.ts @@ -235,11 +235,59 @@ function semanticParam(param: NodeParams, label: string) { return jsonObject(semantic, label); } -function semanticNodeData(node: CustomNodeType) { +function sealedSignalOptions( + node: CustomNodeType, + fieldId: string, + param: NodeParams, + admission: HuggingFaceNodeLibraryExecutionAdmission, +) { + const declarations = admission.dynamicFieldActions.filter( + ({ role, field, event }) => + role === node.data.huggingFaceClusterExecutionRole && field === fieldId && event === 'onSignal', + ); + if (!declarations.length) return param.onSignal; + if (declarations.length !== 1) invalid(`node ${node.id}.${fieldId} has ambiguous declared signal actions.`); + const source = declarations[0]!.valueSource; + if (!Object.prototype.hasOwnProperty.call(admission.sealedBindingValues, source)) return param.onSignal; + const selected = admission.sealedBindingValues[source]; + // Only exact string-keyed identity maps are projected. Mutable and ordinary + // node descriptors retain their complete choices and existing behavior. + if (typeof selected !== 'string' || !selected) return param.onSignal; + if (!isRecord(param.signal) || param.signal.value !== selected) + invalid(`node ${node.id}.${fieldId} does not witness its declared sealed signal identity.`); + const project = (descriptor: unknown): unknown => { + if (Array.isArray(descriptor)) return descriptor.map(project); + if ( + !isRecord(descriptor) || + descriptor.action !== 'value' || + descriptor.prop !== 'options' || + !isRecord(descriptor.data) + ) + return descriptor; + if ( + typeof descriptor.target !== 'string' || + !Object.prototype.hasOwnProperty.call(node.data.params, descriptor.target) || + !Object.prototype.hasOwnProperty.call(descriptor.data, selected) + ) + invalid(`node ${node.id}.${fieldId} has no exact options branch for its sealed signal identity.`); + return { ...descriptor, data: { [selected]: descriptor.data[selected] } }; + }; + return project(param.onSignal); +} + +function semanticNodeData(node: CustomNodeType, admission: HuggingFaceNodeLibraryExecutionAdmission) { const params = Object.fromEntries( Object.entries(node.data.params) .sort(([left], [right]) => lexicalCompare(left, right)) - .map(([fieldId, param]) => [fieldId, semanticParam(param, `node ${node.id}.${fieldId}`)]), + .map(([fieldId, param]) => { + const semantic = semanticParam(param, `node ${node.id}.${fieldId}`); + if (param.onSignal !== undefined) + semantic.onSignal = jsonValue( + sealedSignalOptions(node, fieldId, param, admission), + `node ${node.id}.${fieldId}.onSignal`, + ); + return [fieldId, semantic]; + }), ); return jsonObject( { @@ -729,13 +777,14 @@ function deterministicExecutionOrder(nodes: readonly BlockGraphNodeV2[], edges: function blockGraph( skeleton: HuggingFaceClusterExecutionSkeleton, semanticIds: ReadonlyMap, - modularMetadata: ReadonlyMap = new Map(), + modularMetadata: ReadonlyMap, + admission: HuggingFaceNodeLibraryExecutionAdmission, ) { const nodes: BlockGraphNodeV2[] = skeleton.nodes .map((node) => { const semanticRole = node.data.huggingFaceClusterExecutionRole!; const metadata = modularMetadata.get(semanticRole); - const semanticData = semanticNodeData(node); + const semanticData = semanticNodeData(node, admission); return { nodeId: semanticIds.get(node.id)!, nodeType: node.type || node.data.type || 'custom', @@ -905,7 +954,7 @@ export function compileRegisteredBlockV2( controlIds.add(controlId); }); - const graph = blockGraph(skeleton, semanticIds, exact.metadataBySemanticRole); + const graph = blockGraph(skeleton, semanticIds, exact.metadataBySemanticRole, admission); const reviewedInputBindings = new Map( (exact.boundaryInputs ?? options.route?.boundary.inputs ?? []).map((binding) => [ binding.inputName ?? binding.portId, diff --git a/src/studio/registeredBlockV2FanOutRoutes.ts b/src/studio/registeredBlockV2FanOutRoutes.ts index 8184a3bd..8262005d 100644 --- a/src/studio/registeredBlockV2FanOutRoutes.ts +++ b/src/studio/registeredBlockV2FanOutRoutes.ts @@ -1007,8 +1007,8 @@ export const REGISTERED_BLOCK_V2_FANOUT_ROUTES = Object.freeze([ { event: 'onSignal', field: 'unet', role: 'ipAdapter', valueSource: 'pipelineClass' }, { event: 'onSignal', field: 'guider_out', role: 'guider', valueSource: 'pipelineClass' }, ], - compiledDefinitionContentHash: 'block-definition-v2-8471dd70', - compiledDefinitionCanonicalSha256: 'sha256:22309165446e3fe286e050780d7dcbd510b282fb2f05ff65622becb6f245c9f6', + compiledDefinitionContentHash: 'block-definition-v2-b2f0f280', + compiledDefinitionCanonicalSha256: 'sha256:51e7028a8650346c8dc9922cc55d0d2b84777c45e9a8cef035c1d5b095f777b3', controlFanOuts: [ { source: 'dtype', @@ -1126,8 +1126,8 @@ export const REGISTERED_BLOCK_V2_FANOUT_ROUTES = Object.freeze([ { event: 'onSignal', field: 'unet', role: 'ipAdapter', valueSource: 'pipelineClass' }, { event: 'onSignal', field: 'guider_out', role: 'guider', valueSource: 'pipelineClass' }, ], - compiledDefinitionContentHash: 'block-definition-v2-4e0a0ec5', - compiledDefinitionCanonicalSha256: 'sha256:ffe18a17e0fb2304bf51c949424108c1c0074537f7ca813d90462ab9afef999b', + compiledDefinitionContentHash: 'block-definition-v2-e2629765', + compiledDefinitionCanonicalSha256: 'sha256:2e14a68f6ff34f3873cd9508a39e579f1eee40647285f5fd7e0ac8c82699fabe', controlFanOuts: [ { source: 'dtype', @@ -1234,8 +1234,8 @@ export const REGISTERED_BLOCK_V2_FANOUT_ROUTES = Object.freeze([ { event: 'onSignal', field: 'unet', role: 'ipAdapter', valueSource: 'pipelineClass' }, { event: 'onSignal', field: 'guider_out', role: 'guider', valueSource: 'pipelineClass' }, ], - compiledDefinitionContentHash: 'block-definition-v2-6ed9910a', - compiledDefinitionCanonicalSha256: 'sha256:e6cb37718813ef6010016f1a2cacf728a6678bd167630fff28f3613e576956d5', + compiledDefinitionContentHash: 'block-definition-v2-379265fa', + compiledDefinitionCanonicalSha256: 'sha256:9a575a4a3ed7b5738eee56191f117a5d0172f6c03600a8c540706bdba45e3465', controlFanOuts: [ { source: 'dtype', @@ -1354,8 +1354,8 @@ export const REGISTERED_BLOCK_V2_FANOUT_ROUTES = Object.freeze([ { event: 'onSignal', field: 'unet', role: 'ipAdapter', valueSource: 'pipelineClass' }, { event: 'onSignal', field: 'guider_out', role: 'guider', valueSource: 'pipelineClass' }, ], - compiledDefinitionContentHash: 'block-definition-v2-e32aeac4', - compiledDefinitionCanonicalSha256: 'sha256:1f4c0e95880104f73cf1ccb3b20cb0dd064fd6c8633e954748d094fb60dde0e5', + compiledDefinitionContentHash: 'block-definition-v2-8525ceac', + compiledDefinitionCanonicalSha256: 'sha256:80cde6d0ffdac99665faebc92385962d0e41e70e2c5d6426e002ea8c87403d80', controlFanOuts: [ { source: 'dtype', @@ -1461,8 +1461,8 @@ export const REGISTERED_BLOCK_V2_FANOUT_ROUTES = Object.freeze([ { event: 'onSignal', field: 'unet', role: 'ipAdapter', valueSource: 'pipelineClass' }, { event: 'onSignal', field: 'guider_out', role: 'guider', valueSource: 'pipelineClass' }, ], - compiledDefinitionContentHash: 'block-definition-v2-874adb59', - compiledDefinitionCanonicalSha256: 'sha256:936d77487a54c3266e09c83a166d53495f626681d8dae6bc104c093680e82abe', + compiledDefinitionContentHash: 'block-definition-v2-d00ee951', + compiledDefinitionCanonicalSha256: 'sha256:c097c8e03f20e8c607ae066ae697cfe7b4848426f81f9fd549cb562b58613033', controlFanOuts: [ { source: 'alphaMode', @@ -1537,8 +1537,8 @@ export const REGISTERED_BLOCK_V2_FANOUT_ROUTES = Object.freeze([ { event: 'onSignal', field: 'unet', role: 'ipAdapter', valueSource: 'pipelineClass' }, { event: 'onSignal', field: 'guider_out', role: 'guider', valueSource: 'pipelineClass' }, ], - compiledDefinitionContentHash: 'block-definition-v2-8c1723bc', - compiledDefinitionCanonicalSha256: 'sha256:0bcbd9927ebb8abb5ca32c08863fce741196b0007d87e562ff4bb1215fdcfeef', + compiledDefinitionContentHash: 'block-definition-v2-cf881b74', + compiledDefinitionCanonicalSha256: 'sha256:c2d6020546a8cd953946b2a71dc1e14641c335fc923e0536be39b6969a4e1716', controlFanOuts: [ { source: 'guidanceScale', @@ -4117,8 +4117,8 @@ export const REGISTERED_BLOCK_V2_FANOUT_ROUTES = Object.freeze([ { event: 'onSignal', field: 'unet', role: 'ipAdapter', valueSource: 'pipelineClass' }, { event: 'onSignal', field: 'guider_out', role: 'guider', valueSource: 'pipelineClass' }, ], - compiledDefinitionContentHash: 'block-definition-v2-695cc609', - compiledDefinitionCanonicalSha256: 'sha256:f46fff0c0fdfe617566e24e4ac29274ed0a29c3957b8057b56989fd13e970c77', + compiledDefinitionContentHash: 'block-definition-v2-25787e3b', + compiledDefinitionCanonicalSha256: 'sha256:57d753349ca1b51e6c80e7379fca3b35d5f62ba6f150aedbc28bcff2c4d5d11a', controlFanOuts: [ { source: 'dtype', @@ -4243,8 +4243,8 @@ export const REGISTERED_BLOCK_V2_FANOUT_ROUTES = Object.freeze([ { event: 'onSignal', field: 'unet', role: 'ipAdapter', valueSource: 'pipelineClass' }, { event: 'onSignal', field: 'guider_out', role: 'guider', valueSource: 'pipelineClass' }, ], - compiledDefinitionContentHash: 'block-definition-v2-83320b01', - compiledDefinitionCanonicalSha256: 'sha256:d6c667706e66592a37b1bbdea245e8280b6a32327ed931385de0d7170ea7886d', + compiledDefinitionContentHash: 'block-definition-v2-7daa0d19', + compiledDefinitionCanonicalSha256: 'sha256:519b12ae04afc4fae0d611249304a93a7962465429fa942125d0103ac7a6d48a', controlFanOuts: [ { source: 'dtype', @@ -4368,8 +4368,8 @@ export const REGISTERED_BLOCK_V2_FANOUT_ROUTES = Object.freeze([ { event: 'onSignal', field: 'unet', role: 'ipAdapter', valueSource: 'pipelineClass' }, { event: 'onSignal', field: 'guider_out', role: 'guider', valueSource: 'pipelineClass' }, ], - compiledDefinitionContentHash: 'block-definition-v2-8acd62de', - compiledDefinitionCanonicalSha256: 'sha256:e24ce4d42d61c3e23ced8e7f44ea29df95196b601adbc3a74f16c23e6002dc2b', + compiledDefinitionContentHash: 'block-definition-v2-5afc0ffe', + compiledDefinitionCanonicalSha256: 'sha256:643f41459ff0f876c68005873bb15038ef36f52503a08e48015fa6e4382937cf', controlFanOuts: [ { source: 'alphaMode', diff --git a/src/studio/runReadiness.ts b/src/studio/runReadiness.ts index 06fcb2c8..841524f3 100644 --- a/src/studio/runReadiness.ts +++ b/src/studio/runReadiness.ts @@ -1,5 +1,10 @@ import { hasAncillaryExecutionClaim, type PreparedExecutionScope } from '../workflow/prepareExecutionScope'; import { inspectRequiredGraphInputs } from './requiredGraphInputs'; +import { + selectedNodeWeightFormatArtifact, + studioWeightFormatProfile, + hasNonNativeStudioWeightFormat, +} from './weightFormat'; import { useFlowStore, withoutBlockCompilationTransientsV2, @@ -795,7 +800,8 @@ function getModelRepoFromNode(node: ReturnType['no function collectGraphModelIssues(graph = executableFlowGraph()): RunReadinessIssue[] { const { nodes } = graph; - const { hfCache, localModels, modelCacheDiagnostics, discoveryRequests } = useNodesStore.getState(); + const { hfCache, localModels, modelCacheDiagnostics, discoveryRequests, workflowModelDescriptors } = + useNodesStore.getState(); const modelDiscoveryStarted = discoveryRequests.hfCache.status !== 'idle' || discoveryRequests.localModels.status !== 'idle'; const modelIndexesReady = @@ -804,12 +810,31 @@ function collectGraphModelIssues(graph = executableFlowGraph()): RunReadinessIss // that an installed graph model is missing. if (modelDiscoveryStarted && !modelIndexesReady) return []; const graphReferences: WorkflowGraphArtifactReference[] = []; + const formatIssues: RunReadinessIssue[] = []; nodes.forEach((node) => { if (node.data.uiState?.disabled) return; const isModelLoader = node.data.module === 'modules.ModularDiffusers' && ['ModelsLoader', 'AutoModelLoader'].includes(node.data.action); + let selectedFormat: ReturnType = null; + try { + if (node.data.module === 'modules.ModularDiffusers' && node.data.action === 'ModelsLoader') + selectedFormat = selectedNodeWeightFormatArtifact(node, workflowModelDescriptors); + } catch (error) { + formatIssues.push( + issue({ + category: 'model', + severity: 'error', + blocking: true, + action: 'inspect_node', + nodeId: node.id, + message: 'The selected weight-format artifact is not declared for this loader.', + details: error instanceof Error ? error.message : String(error), + }), + ); + return; + } const nodeReferences = collectNodeModelReferences(node); const loaderRepo = isModelLoader ? getModelRepoFromNode(node) : ''; if ( @@ -823,6 +848,9 @@ function collectGraphModelIssues(graph = executableFlowGraph()): RunReadinessIss nodeLabel: node.data.label || node.data.action, value: loaderRepo, paramKey: node.data.params?.reviewed_variant ? 'reviewed_variant' : 'repo_id', + ...(selectedFormat + ? { revision: selectedFormat.selection.revision, downloadFiles: [...selectedFormat.selection.downloadFiles] } + : {}), }); } @@ -831,42 +859,48 @@ function collectGraphModelIssues(graph = executableFlowGraph()): RunReadinessIss ...reference, nodeId: node.id, nodeLabel: node.data.label || node.data.action, + ...(selectedFormat && reference.kind === 'repo' && reference.value === selectedFormat.selection.repo + ? { revision: selectedFormat.selection.revision, downloadFiles: [...selectedFormat.selection.downloadFiles] } + : {}), }); }); }); - return getGraphWorkflowArtifactRequirements({ - references: graphReferences, - hfCache, - localModels, - modelCacheDiagnostics, - }) - .filter((requirement) => !requirement.status.runnable) - .map((requirement) => - issue({ - category: requirement.primaryAction === 'Repair' ? 'model_integrity' : 'model', - severity: 'error', - nodeId: requirement.nodeId, - repoId: requirement.modelPath ? undefined : requirement.repo, - installOptions: requirement.installTarget - ? { - ...(requirement.installTarget.revision ? { revision: requirement.installTarget.revision } : {}), - ...(requirement.installTarget.files?.length ? { files: [...requirement.installTarget.files] } : {}), - ...(requirement.installTarget.repair ? { repair: true } : {}), - } - : undefined, - modelPath: requirement.modelPath, - blocking: true, - action: - requirement.primaryAction === 'Install' || requirement.primaryAction === 'Repair' - ? 'install_model' - : 'open_model_manager', - message: requirement.modelPath - ? `Model file is missing for imported workflow node ${requirement.nodeLabel || requirement.nodeId || 'unknown'}.` - : `${requirement.repo} is required by imported workflow node ${requirement.nodeLabel || requirement.nodeId || 'unknown'}.`, - details: requirement.details, - }), - ); + return [ + ...formatIssues, + ...getGraphWorkflowArtifactRequirements({ + references: graphReferences, + hfCache, + localModels, + modelCacheDiagnostics, + }) + .filter((requirement) => !requirement.status.runnable) + .map((requirement) => + issue({ + category: requirement.primaryAction === 'Repair' ? 'model_integrity' : 'model', + severity: 'error', + nodeId: requirement.nodeId, + repoId: requirement.modelPath ? undefined : requirement.repo, + installOptions: requirement.installTarget + ? { + ...(requirement.installTarget.revision ? { revision: requirement.installTarget.revision } : {}), + ...(requirement.installTarget.files?.length ? { files: [...requirement.installTarget.files] } : {}), + ...(requirement.installTarget.repair ? { repair: true } : {}), + } + : undefined, + modelPath: requirement.modelPath, + blocking: true, + action: + requirement.primaryAction === 'Install' || requirement.primaryAction === 'Repair' + ? 'install_model' + : 'open_model_manager', + message: requirement.modelPath + ? `Model file is missing for imported workflow node ${requirement.nodeLabel || requirement.nodeId || 'unknown'}.` + : `${requirement.repo} is required by imported workflow node ${requirement.nodeLabel || requirement.nodeId || 'unknown'}.`, + details: requirement.details, + }), + ), + ]; } function nodeParamValue(node: ReturnType[number], key: string) { @@ -1346,13 +1380,22 @@ function collectStudioIssues(form: StudioFormState): RunReadinessIssue[] { discoveryRequests, studioModelCapabilities, studioModelCapabilitiesAuthoritative, + workflowModelDescriptors, + studioExecutionSpecInvalid, } = useNodesStore.getState(); const { graphBinding, autoResourcePlan, autoResourceCheck } = useStudioStore.getState(); const templateBaseModel = getStudioTemplateLoraBaseModel(useStudioStore.getState().activeTemplateId); const expectedAutoRepo = templateBaseModel?.source === 'hub' ? templateBaseModel.value : true; const auto = form.resourceMode === 'auto'; const profile = getProfileForForm(form); - const modelStatus = getStudioModelCacheStatus(profile, hfCache, localModels, modelCacheDiagnostics); + const selectedProfile = studioWeightFormatProfile( + form, + profile, + studioModelCapabilities, + workflowModelDescriptors, + studioExecutionSpecInvalid || !studioModelCapabilitiesAuthoritative, + ); + const modelStatus = getStudioModelCacheStatus(selectedProfile, hfCache, localModels, modelCacheDiagnostics); const autoCandidate = auto ? selectedAutoCandidate(autoResourcePlan, form) : null; const autoInstallTarget = auto ? autoResourceInstallTarget(autoResourcePlan, form) : null; const autoCompatibility = autoResourceCompatibility(autoResourcePlan, form); @@ -1466,8 +1509,17 @@ function collectStudioIssues(form: StudioFormState): RunReadinessIssue[] { nodeId: graphBinding?.nodes.models, repoId: profile.defaultRepo, blocking: true, - action: 'install_model', - message: `${profile.label} is missing, so ${STUDIO_MODE_LABELS[form.mode]} cannot run.`, + action: selectedProfile ? 'install_model' : 'open_setup', + ...(selectedProfile && hasNonNativeStudioWeightFormat(form) + ? { + installOptions: { + revision: selectedProfile.revisionCandidates![0], + files: [...selectedProfile.downloadFiles!], + repair: modelStatus.repairRequired, + }, + } + : {}), + message: `${selectedProfile?.label ?? profile.label} is missing, so ${STUDIO_MODE_LABELS[form.mode]} cannot run.`, details: modelStatus.reason, }), ); @@ -1538,6 +1590,9 @@ function collectStudioIssues(form: StudioFormState): RunReadinessIssue[] { localModels, modelCacheDiagnostics, includePipeline: false, + backendCapabilities: studioModelCapabilities, + workflowModelDescriptors, + studioExecutionSpecInvalid: studioExecutionSpecInvalid || !studioModelCapabilitiesAuthoritative, }).forEach((requirement) => { const status = requirement.status; if (status.runnable) return; diff --git a/src/studio/templateExactness.ts b/src/studio/templateExactness.ts index fa4bb87b..543aa2f7 100644 --- a/src/studio/templateExactness.ts +++ b/src/studio/templateExactness.ts @@ -11,6 +11,7 @@ import type { TemplateMediaType, } from './types'; import { hashString, stableStringify } from './stableHash'; +import { explicitStudioWeightFormat, persistedStudioWeightFormat } from './weightFormat'; export { hashString, stableStringify } from './stableHash'; export const TEMPLATE_GALLERY_MANIFEST_PATH = resolveTemplateAssetUrl('/template-gallery/manifest.json') as string; @@ -226,6 +227,7 @@ const LOCKED_FIELDS = [ 'guidanceScale', 'resourceMode', 'dtype', + 'weightFormat', 'quantizationMode', 'autoOffload', 'offloadMode', @@ -297,10 +299,15 @@ export function getTemplateLockedSettings(template: StudioTemplate): StudioTempl }; return LOCKED_FIELDS.reduce( - (settings, field) => ({ - ...settings, - [field]: merged[field], - }), + (settings, field) => + field === 'weightFormat' + ? { + ...settings, + ...(explicitStudioWeightFormat(merged) !== undefined + ? { weightFormat: explicitStudioWeightFormat(merged) } + : {}), + } + : { ...settings, [field]: merged[field] }, {} as StudioTemplateLockedSettings, ); } @@ -329,10 +336,15 @@ export function getTemplateLockHash( export function getPromptSettingsHash(settings: StudioTemplateLockedSettings | StudioFormState) { const promptSettings = LOCKED_FIELDS.reduce( - (locked, field) => ({ - ...locked, - [field]: settings[field], - }), + (locked, field) => + field === 'weightFormat' + ? { + ...locked, + ...(explicitStudioWeightFormat(settings) !== undefined + ? { weightFormat: explicitStudioWeightFormat(settings) } + : {}), + } + : { ...locked, [field]: settings[field] }, {} as StudioTemplateLockedSettings, ); @@ -342,8 +354,9 @@ export function getPromptSettingsHash(settings: StudioTemplateLockedSettings | S export function getTemplateModifiedFields(template: StudioTemplate, form: StudioFormState) { const locked = getTemplateLockedSettings(template); return LOCKED_FIELDS.filter((field) => { - const lockedValue = locked[field]; - const formValue = form[field]; + const lockedValue = field === 'weightFormat' ? persistedStudioWeightFormat(locked[field]) : locked[field]; + const formValue = field === 'weightFormat' ? persistedStudioWeightFormat(form[field]) : form[field]; + if (field === 'weightFormat' && (lockedValue === null || formValue === null)) return true; return String(lockedValue) !== String(formValue); }); } diff --git a/src/studio/templateOperationSelections.ts b/src/studio/templateOperationSelections.ts index 3c9345d7..ea87f29c 100644 --- a/src/studio/templateOperationSelections.ts +++ b/src/studio/templateOperationSelections.ts @@ -136,6 +136,144 @@ export function qwenInpaintNativeCandidateSelection(id: StudioTemplateId): Studi /** Curated fresh recipes, not global model defaults or execution authority. */ export const IMAGE_TEMPLATE_EXECUTION_SELECTIONS: Partial> = { + // Public-intent planning descriptors; no runtime or Gallery qualification. + flux3_klein_fp8r512_text_to_image: { + schemaVersion: 1, + pipelineClass: 'Flux3DistilledModularPipeline', + task: 'text_to_image', + executionProfileId: 'flux3-klein:official-provider:v1', + bindingSpec: { + modelType: 'Flux3DistilledModularPipeline', + mode: 'text_to_image', + }, + implementation: 'native_stages', + memoryPolicy: 'custom_experimental', + authoringRecipeId: 'flux3-klein:official:text-to-image:prompt-preview-append-fp32:v1', + }, + flux3_klein_fp8r512_single_reference_edit: { + schemaVersion: 1, + pipelineClass: 'Flux3DistilledModularPipeline', + task: 'edit_image', + executionProfileId: 'flux3-klein:official-provider:v1', + bindingSpec: { + modelType: 'Flux3DistilledModularPipeline', + mode: 'edit_image', + }, + implementation: 'native_stages', + memoryPolicy: 'custom_experimental', + authoringRecipeId: 'flux3-klein:official:edit-image:prompt-preview-append-fp32:v1', + }, + flux3_klein_fp8r512_multi_reference_edit: { + schemaVersion: 1, + pipelineClass: 'Flux3DistilledModularPipeline', + task: 'edit_image', + executionProfileId: 'flux3-klein:official-provider:v1', + bindingSpec: { + modelType: 'Flux3DistilledModularPipeline', + mode: 'edit_image', + }, + implementation: 'native_stages', + memoryPolicy: 'custom_experimental', + authoringRecipeId: 'flux3-klein:official:edit-image:prompt-preview-append-fp32:v1', + }, + flux3_klein_fp8r512_raw_coordinate_prompt: { + schemaVersion: 1, + pipelineClass: 'Flux3DistilledModularPipeline', + task: 'text_to_image', + executionProfileId: 'flux3-klein:official-provider:v1', + bindingSpec: { + modelType: 'Flux3DistilledModularPipeline', + mode: 'text_to_image', + }, + implementation: 'native_stages', + memoryPolicy: 'custom_experimental', + authoringRecipeId: 'flux3-klein:official:text-to-image:prompt-preview-append-fp32:v1', + }, + flux3_klein_fp8r512_lora_style: { + schemaVersion: 1, + pipelineClass: 'Flux3DistilledModularPipeline', + task: 'text_to_image', + executionProfileId: 'flux3-klein:official-provider:v1', + bindingSpec: { + modelType: 'Flux3DistilledModularPipeline', + mode: 'text_to_image', + }, + implementation: 'native_stages', + memoryPolicy: 'custom_experimental', + authoringRecipeId: 'flux3-klein:official:text-to-image:prompt-preview-append-fp32:v1', + loraPolicy: { + defaultAdapterName: 'style', + }, + }, + flux3_klein_base_fp8r512_text_to_image: { + schemaVersion: 1, + pipelineClass: 'Flux3ModularPipeline', + task: 'text_to_image', + executionProfileId: 'flux3-klein-base:official-provider:v1', + bindingSpec: { + modelType: 'Flux3ModularPipeline', + mode: 'text_to_image', + }, + implementation: 'native_stages', + memoryPolicy: 'custom_experimental', + authoringRecipeId: 'flux3-klein-base:official:text-to-image:prompt-preview-append-fp32:v1', + }, + flux3_klein_base_fp8r512_single_reference_edit: { + schemaVersion: 1, + pipelineClass: 'Flux3ModularPipeline', + task: 'edit_image', + executionProfileId: 'flux3-klein-base:official-provider:v1', + bindingSpec: { + modelType: 'Flux3ModularPipeline', + mode: 'edit_image', + }, + implementation: 'native_stages', + memoryPolicy: 'custom_experimental', + authoringRecipeId: 'flux3-klein-base:official:edit-image:prompt-preview-append-fp32:v1', + }, + flux3_klein_base_fp8r512_multi_reference_edit: { + schemaVersion: 1, + pipelineClass: 'Flux3ModularPipeline', + task: 'edit_image', + executionProfileId: 'flux3-klein-base:official-provider:v1', + bindingSpec: { + modelType: 'Flux3ModularPipeline', + mode: 'edit_image', + }, + implementation: 'native_stages', + memoryPolicy: 'custom_experimental', + authoringRecipeId: 'flux3-klein-base:official:edit-image:prompt-preview-append-fp32:v1', + }, + flux3_klein_base_fp8r512_raw_coordinate_prompt: { + schemaVersion: 1, + pipelineClass: 'Flux3ModularPipeline', + task: 'text_to_image', + executionProfileId: 'flux3-klein-base:official-provider:v1', + bindingSpec: { + modelType: 'Flux3ModularPipeline', + mode: 'text_to_image', + }, + implementation: 'native_stages', + memoryPolicy: 'custom_experimental', + authoringRecipeId: 'flux3-klein-base:official:text-to-image:prompt-preview-append-fp32:v1', + }, + flux3_klein_base_fp8r512_lora_style: { + schemaVersion: 1, + pipelineClass: 'Flux3ModularPipeline', + task: 'text_to_image', + executionProfileId: 'flux3-klein-base:official-provider:v1', + bindingSpec: { + modelType: 'Flux3ModularPipeline', + mode: 'text_to_image', + }, + implementation: 'native_stages', + memoryPolicy: 'custom_experimental', + authoringRecipeId: 'flux3-klein-base:official:text-to-image:prompt-preview-append-fp32:v1', + loraPolicy: { + defaultAdapterName: 'tarot', + }, + }, + ...recipes( STANDARD_Z_TEMPLATE_IDS, native( diff --git a/src/studio/templateOperationWorkflow.ts b/src/studio/templateOperationWorkflow.ts index 114017fa..44bd95c6 100644 --- a/src/studio/templateOperationWorkflow.ts +++ b/src/studio/templateOperationWorkflow.ts @@ -23,6 +23,7 @@ import { CONTROLLED_WORKFLOW_NODE_KEYS } from './controlledWorkflowContracts'; import { loraWorkflowFieldValues, upscaleWorkflowFieldValues } from './controlledWorkflowValues'; import { orderedAdapterChainLinks } from './adapterChainLinks'; import { resolveStudioExecutionSpecValues } from './executionSpecValues'; +import { selectedNodeWeightFormatArtifact } from './weightFormat'; import { resolveTemplateModelSelection } from './templateModelSelection'; import type { StudioExecutionSpec, @@ -310,6 +311,33 @@ export function createTemplateOperationGraph( throw new Error('The template binding cannot change a declared dependency identity.'); } const value = values[source]; + if (source === 'weightFormat' && value !== 'native') { + if (node !== owner || field !== 'weight_format') + throw new Error('The weight-format binding must belong to the exact model owner.'); + // The static registry starts native-only. Populate this draft field from + // current backend declarations for its exact owner and immutable artifact. + const probe = { + ...node, + data: { + ...node.data, + params: { + ...node.data.params, + weight_format: { ...node.data.params.weight_format!, value }, + }, + }, + }; + const selected = selectedNodeWeightFormatArtifact( + probe, + authority?.workflowModelDescriptors ?? [], + selection.executionProfileId, + ); + if (!selected) throw new Error('The template weight-format selection is missing.'); + node.data.params.weight_format = { + ...node.data.params.weight_format!, + options: [...selected.options], + hidden: false, + }; + } if (value === undefined) throw new Error(`The template setting ${source} has no declared value.`); if (backendDefaultInputs.has(source as 'prompt' | 'negativePrompt') && value === '') { const hint = operationAuthoring(node); diff --git a/src/studio/templates.ts b/src/studio/templates.ts index 547c6095..e07806d4 100644 --- a/src/studio/templates.ts +++ b/src/studio/templates.ts @@ -3968,6 +3968,944 @@ function withVideoDeliveryWorkflow(template: StudioTemplateSource, index: number const NORMALIZED_STUDIO_TEMPLATES: StudioTemplate[] = [ ...BASE_STUDIO_TEMPLATES.map(withVideoDeliveryWorkflow), + // Kept in PLANNING_STUDIO_TEMPLATES until exact runtime/media/rights review. + withTemplateRecipeDefaults( + { + id: 'flux3_klein_fp8r512_text_to_image', + label: 'FLUX 3 Distilled Quick 512 FP8r - Text to Image: Ceramic Radio', + modelDisplayName: 'FLUX 3 Image Klein Distilled', + mode: 'text_to_image', + modelType: 'Flux3DistilledModularPipeline', + runtimeReuseKey: 'Flux3DistilledModularPipeline:fp8r:bfloat16:none:resident:none:expert', + category: 'flux', + tags: ['flux3', 'public-intent', 'planning', 'text-to-image', 'fp8r', '512-square', 'unqualified-recipe'], + difficulty: 'blocked', + modelArtifact: { + source: 'hub', + value: 'black-forest-labs/flux-3-image-klein', + revision: '8454017f9ebaada30c998fccd9f67a80c7580f68', + }, + requiredBackendCapabilities: [ + 'modules.ModularDiffusers.ModelsLoader', + 'modules.ModularDiffusers.EncodePrompt', + 'modules.ModularDiffusers.Denoise', + 'modules.ModularDiffusers.DecodeLatents', + 'modules.Image.Preview', + ], + vramEstimate: + 'Unmeasured for this exact 512 FP8r recipe. FP8r storage does not guarantee native FP8 GEMM or device fit.', + runtimeEstimate: 'Unmeasured distinct 512 x 512 FP8r recipe; original 1024 receipts are not reused.', + description: + 'Create an original studio product photograph of a compact ceramic field radio on a pale limestone plinth. The body has a warm ivory glaze, two circular brass controls and a dark woven speaker grille. Compose a front three-quarter view with generous negative space, soft daylight from the left, grounded contact shadows and fine believable material texture. Keep the object unbranded, the background quiet and the color palette restrained. No people, logos or readable text.', + userGoal: + 'Inspect the ordinary editable graph and select only the declared runtime and prompt enhancement choices.', + presetId: 'flux_fast', + example: { + mediaType: 'image', + status: 'blocked', + lockedSeed: 481001, + modelRevision: '8454017f9ebaada30c998fccd9f67a80c7580f68', + lockedSettings: { + width: 512, + height: 512, + randomSeed: false, + steps: 16, + guidanceScale: 1, + maxSequenceLength: 8192, + dtype: 'bfloat16', + quantizationMode: 'none', + resourceMode: 'expert', + autoOffload: false, + offloadMode: 'none', + weightFormat: 'fp8r', + }, + expectedOutput: { + width: 512, + height: 512, + }, + runtimeEstimate: 'Pending measured exact 512 FP8r recipe', + blockReason: + 'Native output and template qualification, approved new output media and rights review are pending; this distinct 512 FP8r recipe grants no Gallery, Auto or hardware qualification.', + notes: + 'No generated output, public output media, template receipt or fit measurement is attached. Diffusion uses FP8r storage, BF16 compute and no added quantization. PUP starts disabled; its explicit FP32/NF4 choices are separate.', + }, + executionSelection: IMAGE_TEMPLATE_EXECUTION_SELECTIONS.flux3_klein_fp8r512_text_to_image, + promptGuide: { + ...BASE_PROMPT_GUIDE, + modelHints: [ + 'The exact public source profile is required; package qualification alone is not a template image proof.', + 'PUP is advisory and starts disabled. No authored regions: ordinary Enable selects declared raw FP32. Select BF16 + NF4 explicitly if desired; this never changes diffusion FP8r storage selection.', + 'With authored regions, append wording preserves them. Constrained table generation is a separate explicit Expert choice; do not enable it on a null layout.', + ], + }, + }, + [ + 'Create an original studio product photograph of a compact ceramic field radio on a pale limestone plinth. The body has a warm ivory glaze, two circular brass controls and a dark woven speaker grille. Compose a front three-quarter view with generous negative space, soft daylight from the left, grounded contact shadows and fine believable material texture. Keep the object unbranded, the background quiet and the color palette restrained. No people, logos or readable text.', + '', + ], + -1, + ), + withTemplateRecipeDefaults( + { + id: 'flux3_klein_fp8r512_single_reference_edit', + label: 'FLUX 3 Distilled Quick 512 FP8r - Image Edit: Amber Glass', + modelDisplayName: 'FLUX 3 Image Klein Distilled', + mode: 'edit_image', + modelType: 'Flux3DistilledModularPipeline', + runtimeReuseKey: 'Flux3DistilledModularPipeline:fp8r:bfloat16:none:resident:none:expert', + category: 'edit', + tags: ['flux3', 'public-intent', 'planning', 'single-reference-edit', 'fp8r', '512-square', 'unqualified-recipe'], + difficulty: 'blocked', + modelArtifact: { + source: 'hub', + value: 'black-forest-labs/flux-3-image-klein', + revision: '8454017f9ebaada30c998fccd9f67a80c7580f68', + }, + requiredBackendCapabilities: [ + 'modules.ModularDiffusers.ModelsLoader', + 'modules.ModularDiffusers.EncodePrompt', + 'modules.ModularDiffusers.Denoise', + 'modules.ModularDiffusers.DecodeLatents', + 'modules.Image.Preview', + 'modules.ModularDiffusers.ImageEncode', + 'modules.Image.Load', + ], + vramEstimate: + 'Unmeasured for this exact 512 FP8r recipe. FP8r storage does not guarantee native FP8 GEMM or device fit.', + runtimeEstimate: 'Unmeasured distinct 512 x 512 FP8r recipe; original 1024 receipts are not reused.', + description: + 'Edit reference image 1: change the cobalt-blue transparent glass cube to warm amber transparent glass. Preserve its square silhouette, thick glass base, camera perspective, position on the pale rough stone slab, neutral background, soft light direction and grounded shadow. Keep the object unbranded; add no objects, logos or text.', + userGoal: 'Use the included approved cobalt glass input and review the amber-color edit.', + presetId: 'flux_fast', + example: { + mediaType: 'image', + status: 'blocked', + lockedSeed: 481002, + modelRevision: '8454017f9ebaada30c998fccd9f67a80c7580f68', + lockedSettings: { + width: 512, + height: 512, + randomSeed: false, + steps: 16, + guidanceScale: 1, + maxSequenceLength: 8192, + dtype: 'bfloat16', + quantizationMode: 'none', + resourceMode: 'expert', + autoOffload: false, + offloadMode: 'none', + weightFormat: 'fp8r', + }, + expectedOutput: { + width: 512, + height: 512, + }, + runtimeEstimate: 'Pending measured exact 512 FP8r recipe', + blockReason: + 'Native output and template qualification, approved new output media and rights review are pending; this distinct 512 FP8r recipe grants no Gallery, Auto or hardware qualification.', + notes: + 'No generated output, public output media, template receipt or fit measurement is attached. Diffusion uses FP8r storage, BF16 compute and no added quantization. PUP starts disabled; its explicit FP32/NF4 choices are separate.', + }, + inputRequirements: { + referenceImages: 1, + }, + inputBindings: [ + { + id: 'flux3_klein_fp8r512_single_reference_edit-references', + label: 'Approved cobalt glass source', + mediaType: 'image', + origin: 'template', + requiredAt: 'workflow_start', + field: 'referenceImages', + defaultAssets: [ + { + id: 'approved-cobalt-glass-source', + label: 'Approved cobalt glass cube on stone', + mediaType: 'image', + runtimePath: '/template-gallery/inputs/flux2_klein_edit.before.png', + runtimeSha256: 'sha256:bytes:d5ba3943d6c0a264860ba0cde18d87e2d9554a3f7328308f4d771e082a9e0c24', + fileName: 'flux2_klein_edit.before.png', + previewPath: '/template-gallery/inputs/flux2_klein_edit.before.png', + }, + ], + }, + ], + executionSelection: IMAGE_TEMPLATE_EXECUTION_SELECTIONS.flux3_klein_fp8r512_single_reference_edit, + promptGuide: { + ...EDIT_PROMPT_GUIDE, + modelHints: [ + 'The exact public source profile is required; package qualification alone is not a template image proof.', + 'PUP is advisory and starts disabled. No authored regions: ordinary Enable selects declared raw FP32. Select BF16 + NF4 explicitly if desired; this never changes diffusion FP8r storage selection.', + 'With authored regions, append wording preserves them. Constrained table generation is a separate explicit Expert choice; do not enable it on a null layout.', + ], + }, + }, + [ + 'Edit reference image 1: change the cobalt-blue transparent glass cube to warm amber transparent glass. Preserve its square silhouette, thick glass base, camera perspective, position on the pale rough stone slab, neutral background, soft light direction and grounded shadow. Keep the object unbranded; add no objects, logos or text.', + '', + ], + -1, + ), + withTemplateRecipeDefaults( + { + id: 'flux3_klein_fp8r512_multi_reference_edit', + label: 'FLUX 3 Distilled Quick 512 FP8r - Two-Reference Edit: Glass Packaging', + modelDisplayName: 'FLUX 3 Image Klein Distilled', + mode: 'edit_image', + modelType: 'Flux3DistilledModularPipeline', + runtimeReuseKey: 'Flux3DistilledModularPipeline:fp8r:bfloat16:none:resident:none:expert', + category: 'reference', + tags: ['flux3', 'public-intent', 'planning', 'multi-reference-edit', 'fp8r', '512-square', 'unqualified-recipe'], + difficulty: 'blocked', + modelArtifact: { + source: 'hub', + value: 'black-forest-labs/flux-3-image-klein', + revision: '8454017f9ebaada30c998fccd9f67a80c7580f68', + }, + requiredBackendCapabilities: [ + 'modules.ModularDiffusers.ModelsLoader', + 'modules.ModularDiffusers.EncodePrompt', + 'modules.ModularDiffusers.Denoise', + 'modules.ModularDiffusers.DecodeLatents', + 'modules.Image.Preview', + 'modules.ModularDiffusers.ImageEncode', + 'modules.Image.Load', + ], + vramEstimate: + 'Unmeasured for this exact 512 FP8r recipe. FP8r storage does not guarantee native FP8 GEMM or device fit.', + runtimeEstimate: 'Unmeasured distinct 512 x 512 FP8r recipe; original 1024 receipts are not reused.', + description: + 'Use reference image 1 as the cobalt-blue glass product subject. Use reference image 2 as the flat packaging dieline: preserve the cream background, black panel outlines, fold guides, rounded placeholder panels and yellow accent bands. Place a small coherent product photograph of the blue glass cube in the large central panel, leaving the structural lines and other panels intact. Keep the result a flat unfolded packaging design. Do not duplicate the product, add people, invent a brand or add readable text.', + userGoal: 'Use the two included approved inputs in order: glass subject first, flat packaging layout second.', + presetId: 'flux_fast', + example: { + mediaType: 'image', + status: 'blocked', + lockedSeed: 481003, + modelRevision: '8454017f9ebaada30c998fccd9f67a80c7580f68', + lockedSettings: { + width: 512, + height: 512, + randomSeed: false, + steps: 16, + guidanceScale: 1, + maxSequenceLength: 8192, + dtype: 'bfloat16', + quantizationMode: 'none', + resourceMode: 'expert', + autoOffload: false, + offloadMode: 'none', + weightFormat: 'fp8r', + }, + expectedOutput: { + width: 512, + height: 512, + }, + runtimeEstimate: 'Pending measured exact 512 FP8r recipe', + blockReason: + 'Native output and template qualification, approved new output media and rights review are pending; this distinct 512 FP8r recipe grants no Gallery, Auto or hardware qualification.', + notes: + 'No generated output, public output media, template receipt or fit measurement is attached. Diffusion uses FP8r storage, BF16 compute and no added quantization. PUP starts disabled; its explicit FP32/NF4 choices are separate. The second reference is normal edit-image conditioning, not ControlNet or source-owned structured geometry.', + }, + inputRequirements: { + referenceImages: 2, + }, + inputBindings: [ + { + id: 'flux3_klein_fp8r512_multi_reference_edit-references', + label: 'Ordered glass subject and packaging layout references', + mediaType: 'image', + origin: 'template', + requiredAt: 'workflow_start', + field: 'referenceImages', + defaultAssets: [ + { + id: 'approved-cobalt-glass-source', + label: 'Approved cobalt glass cube on stone', + mediaType: 'image', + runtimePath: '/template-gallery/inputs/flux2_klein_edit.before.png', + runtimeSha256: 'sha256:bytes:d5ba3943d6c0a264860ba0cde18d87e2d9554a3f7328308f4d771e082a9e0c24', + fileName: 'flux2_klein_edit.before.png', + previewPath: '/template-gallery/inputs/flux2_klein_edit.before.png', + }, + { + id: 'approved-packaging-dieline-source', + label: 'Approved cream and yellow packaging dieline', + mediaType: 'image', + runtimePath: '/template-gallery/inputs/qwen_control_image_layout.before.png', + runtimeSha256: 'sha256:bytes:b748201353f02543c2a48920bb514c2741366151df45bf6c4904aeb0f32f1a67', + fileName: 'qwen_control_image_layout.before.png', + previewPath: '/template-gallery/inputs/qwen_control_image_layout.before.png', + }, + ], + }, + ], + executionSelection: IMAGE_TEMPLATE_EXECUTION_SELECTIONS.flux3_klein_fp8r512_multi_reference_edit, + promptGuide: { + ...EDIT_PROMPT_GUIDE, + modelHints: [ + 'The exact public source profile is required; package qualification alone is not a template image proof.', + 'PUP is advisory and starts disabled. No authored regions: ordinary Enable selects declared raw FP32. Select BF16 + NF4 explicitly if desired; this never changes diffusion FP8r storage selection.', + 'With authored regions, append wording preserves them. Constrained table generation is a separate explicit Expert choice; do not enable it on a null layout.', + ], + }, + }, + [ + 'Use reference image 1 as the cobalt-blue glass product subject. Use reference image 2 as the flat packaging dieline: preserve the cream background, black panel outlines, fold guides, rounded placeholder panels and yellow accent bands. Place a small coherent product photograph of the blue glass cube in the large central panel, leaving the structural lines and other panels intact. Keep the result a flat unfolded packaging design. Do not duplicate the product, add people, invent a brand or add readable text.', + '', + ], + -1, + ), + withTemplateRecipeDefaults( + { + id: 'flux3_klein_fp8r512_raw_coordinate_prompt', + label: 'FLUX 3 Distilled Quick 512 FP8r - Raw Prompt Coordinates: Apple', + modelDisplayName: 'FLUX 3 Image Klein Distilled', + mode: 'text_to_image', + modelType: 'Flux3DistilledModularPipeline', + runtimeReuseKey: 'Flux3DistilledModularPipeline:fp8r:bfloat16:none:resident:none:expert', + category: 'reference', + tags: [ + 'flux3', + 'public-intent', + 'planning', + 'fp8r', + '512-square', + 'unqualified-recipe', + 'raw-prompt-coordinates', + ], + difficulty: 'blocked', + modelArtifact: { + source: 'hub', + value: 'black-forest-labs/flux-3-image-klein', + revision: '8454017f9ebaada30c998fccd9f67a80c7580f68', + }, + requiredBackendCapabilities: [ + 'modules.ModularDiffusers.ModelsLoader', + 'modules.ModularDiffusers.EncodePrompt', + 'modules.ModularDiffusers.Denoise', + 'modules.ModularDiffusers.DecodeLatents', + 'modules.Image.Preview', + ], + vramEstimate: + 'Unmeasured for this exact 512 FP8r recipe. FP8r storage does not guarantee native FP8 GEMM or device fit.', + runtimeEstimate: 'Unmeasured distinct 512 x 512 FP8r recipe; original 1024 receipts are not reused.', + description: + 'A still life with .\n[{"id":"apple_1","bbox":[250,125,750,875],"desc":"A red apple, with a green leaf."}]', + userGoal: 'Inspect the literal raw coordinate prompt; the structured-layout widget remains unset/null.', + presetId: 'flux_fast', + example: { + mediaType: 'image', + status: 'blocked', + lockedSeed: 481004, + modelRevision: '8454017f9ebaada30c998fccd9f67a80c7580f68', + lockedSettings: { + width: 512, + height: 512, + randomSeed: false, + steps: 16, + guidanceScale: 1, + maxSequenceLength: 8192, + dtype: 'bfloat16', + quantizationMode: 'none', + resourceMode: 'expert', + autoOffload: false, + offloadMode: 'none', + weightFormat: 'fp8r', + }, + expectedOutput: { + width: 512, + height: 512, + }, + runtimeEstimate: 'Pending measured exact 512 FP8r recipe', + blockReason: + 'Native output and template qualification, approved new output media and rights review are pending; this distinct 512 FP8r recipe grants no Gallery, Auto or hardware qualification. Spatial adherence is unproved. This is not a seeded region-widget or generated-table template.', + notes: + 'The raw prompt uses the existing shared layout fixture syntax, y-first integer coordinates [250,125,750,875]. The layout_conditioning field remains null through normal T2I defaults. PUP stays disabled so the literal table is not rewritten. No source-reference IDs, widget geometry, strict generated-table completion or F3-06 proof is claimed.', + }, + executionSelection: IMAGE_TEMPLATE_EXECUTION_SELECTIONS.flux3_klein_fp8r512_raw_coordinate_prompt, + promptGuide: { + ...BASE_PROMPT_GUIDE, + modelHints: [ + 'Keep PUP disabled for this raw-coordinate example.', + 'The table is literal prompt text; no authored-region widget is seeded.', + 'Native spatial adherence and output quality remain unqualified.', + ], + }, + }, + [ + 'A still life with .\n[{"id":"apple_1","bbox":[250,125,750,875],"desc":"A red apple, with a green leaf."}]', + '', + ], + -1, + ), + withTemplateRecipeDefaults( + { + id: 'flux3_klein_fp8r512_lora_style', + label: 'FLUX 3 Distilled Quick 512 FP8r - Optional User LoRA (Artifact Required)', + modelDisplayName: 'FLUX 3 Image Klein Distilled', + mode: 'text_to_image', + modelType: 'Flux3DistilledModularPipeline', + runtimeReuseKey: 'Flux3DistilledModularPipeline:fp8r:bfloat16:none:resident:none:expert', + category: 'lora', + tags: ['flux3', 'public-intent', 'planning', 'lora-style', 'fp8r', '512-square', 'unqualified-recipe'], + difficulty: 'blocked', + modelArtifact: { + source: 'hub', + value: 'black-forest-labs/flux-3-image-klein', + revision: '8454017f9ebaada30c998fccd9f67a80c7580f68', + }, + requiredBackendCapabilities: [ + 'modules.ModularDiffusers.ModelsLoader', + 'modules.ModularDiffusers.EncodePrompt', + 'modules.ModularDiffusers.Denoise', + 'modules.ModularDiffusers.DecodeLatents', + 'modules.Image.Preview', + 'modules.ModularDiffusers.Lora', + ], + vramEstimate: + 'Unmeasured for this exact 512 FP8r recipe. FP8r storage does not guarantee native FP8 GEMM or device fit.', + runtimeEstimate: 'Unmeasured distinct 512 x 512 FP8r recipe; original 1024 receipts are not reused.', + description: + 'Create an original studio still life of an unbranded ceramic field radio, a folded linen cloth and a single dried grass stem. Compose a balanced three-quarter tabletop view with warm side lighting, realistic contact shadows and clear separation between the radio and background. Apply only the visual style supplied by the operator-selected compatible LoRA. Preserve a coherent object silhouette and avoid logos, readable text, unrelated objects or imitation of a named artist.', + userGoal: + 'Inspect the ordinary editable graph and select only the declared runtime and prompt enhancement choices.', + presetId: 'flux_fast', + example: { + mediaType: 'image', + status: 'blocked', + lockedSeed: 481005, + modelRevision: '8454017f9ebaada30c998fccd9f67a80c7580f68', + lockedSettings: { + width: 512, + height: 512, + randomSeed: false, + steps: 16, + guidanceScale: 1, + maxSequenceLength: 8192, + dtype: 'bfloat16', + quantizationMode: 'none', + resourceMode: 'expert', + autoOffload: false, + offloadMode: 'none', + weightFormat: 'fp8r', + }, + expectedOutput: { + width: 512, + height: 512, + }, + runtimeEstimate: 'Pending measured exact 512 FP8r recipe', + blockReason: + 'Native output and template qualification, approved new output media and rights review are pending; this distinct 512 FP8r recipe grants no Gallery, Auto or hardware qualification. A compatible immutable user LoRA and its reviewed terms must be selected; no shipped adapter or Distilled Tarot compatibility is claimed.', + notes: + 'No generated output, public output media, template receipt or fit measurement is attached. Diffusion uses FP8r storage, BF16 compute and no added quantization. PUP starts disabled; its explicit FP32/NF4 choices are separate. This optional user-artifact card is intentionally incomplete until its adapter is selected and locked; it is not one of the ready-to-probe no-adapter recipes.', + }, + evidencePolicy: 'user_supplied', + inputRequirements: { + loraAdapter: true, + }, + workflowBlocks: ['lora'], + workflowBlockSettings: { + lora: { + model: { + source: 'hub', + value: '', + }, + baseModel: { + source: 'hub', + value: 'black-forest-labs/flux-3-image-klein', + revision: '8454017f9ebaada30c998fccd9f67a80c7580f68', + }, + adapterName: 'style', + scale: 0.7, + }, + }, + executionSelection: IMAGE_TEMPLATE_EXECUTION_SELECTIONS.flux3_klein_fp8r512_lora_style, + promptGuide: { + ...BASE_PROMPT_GUIDE, + modelHints: [ + 'The exact public source profile is required; package qualification alone is not a template image proof.', + 'PUP is advisory and starts disabled. No authored regions: ordinary Enable selects declared raw FP32. Select BF16 + NF4 explicitly if desired; this never changes diffusion FP8r storage selection.', + 'With authored regions, append wording preserves them. Constrained table generation is a separate explicit Expert choice; do not enable it on a null layout.', + 'The empty Hub adapter input is deliberate. Select an exact compatible reviewed adapter and revision before running; this card supplies no weights or compatibility proof.', + ], + }, + }, + [ + 'Create an original studio still life of an unbranded ceramic field radio, a folded linen cloth and a single dried grass stem. Compose a balanced three-quarter tabletop view with warm side lighting, realistic contact shadows and clear separation between the radio and background. Apply only the visual style supplied by the operator-selected compatible LoRA. Preserve a coherent object silhouette and avoid logos, readable text, unrelated objects or imitation of a named artist.', + '', + ], + -1, + ), + withTemplateRecipeDefaults( + { + id: 'flux3_klein_base_fp8r512_text_to_image', + label: 'FLUX 3 Base 512 FP8r (50 steps) - Text to Image: Ceramic Radio', + modelDisplayName: 'FLUX 3 Image Klein Base', + mode: 'text_to_image', + modelType: 'Flux3ModularPipeline', + runtimeReuseKey: 'Flux3ModularPipeline:fp8r:bfloat16:none:resident:none:expert', + category: 'flux', + tags: ['flux3', 'public-intent', 'planning', 'text-to-image', 'fp8r', '512-square', 'unqualified-recipe'], + difficulty: 'blocked', + modelArtifact: { + source: 'hub', + value: 'black-forest-labs/flux-3-image-klein-base', + revision: '1469d27cfb9bb1bd81d3a93f5a023b39dbf136e4', + }, + requiredBackendCapabilities: [ + 'modules.ModularDiffusers.ModelsLoader', + 'modules.ModularDiffusers.EncodePrompt', + 'modules.ModularDiffusers.Denoise', + 'modules.ModularDiffusers.DecodeLatents', + 'modules.Image.Preview', + 'modules.ModularDiffusers.Guider', + ], + vramEstimate: + 'Unmeasured for this exact 512 FP8r recipe. FP8r storage does not guarantee native FP8 GEMM or device fit.', + runtimeEstimate: 'Unmeasured distinct 512 x 512 FP8r recipe; original 1024 receipts are not reused.', + description: + 'Create an original studio product photograph of a compact ceramic field radio on a pale limestone plinth. The body has a warm ivory glaze, two circular brass controls and a dark woven speaker grille. Compose a front three-quarter view with generous negative space, soft daylight from the left, grounded contact shadows and fine believable material texture. Keep the object unbranded, the background quiet and the color palette restrained. No people, logos or readable text.', + userGoal: + 'Inspect the ordinary editable graph and select only the declared runtime and prompt enhancement choices.', + presetId: 'flux_quality', + example: { + mediaType: 'image', + status: 'blocked', + lockedSeed: 481101, + modelRevision: '1469d27cfb9bb1bd81d3a93f5a023b39dbf136e4', + lockedSettings: { + width: 512, + height: 512, + randomSeed: false, + steps: 50, + guidanceScale: 3.5, + maxSequenceLength: 8192, + dtype: 'bfloat16', + quantizationMode: 'none', + resourceMode: 'expert', + autoOffload: false, + offloadMode: 'none', + weightFormat: 'fp8r', + }, + expectedOutput: { + width: 512, + height: 512, + }, + runtimeEstimate: 'Pending measured exact 512 FP8r recipe', + blockReason: + 'Native output and template qualification, approved new output media and rights review are pending; this distinct 512 FP8r recipe grants no Gallery, Auto or hardware qualification.', + notes: + 'No generated output, public output media, template receipt or fit measurement is attached. Diffusion uses FP8r storage, BF16 compute and no added quantization. PUP starts disabled; its explicit FP32/NF4 choices are separate.', + }, + executionSelection: IMAGE_TEMPLATE_EXECUTION_SELECTIONS.flux3_klein_base_fp8r512_text_to_image, + promptGuide: { + ...BASE_PROMPT_GUIDE, + modelHints: [ + 'The exact public source profile is required; package qualification alone is not a template image proof.', + 'PUP is advisory and starts disabled. No authored regions: ordinary Enable selects declared raw FP32. Select BF16 + NF4 explicitly if desired; this never changes diffusion FP8r storage selection.', + 'With authored regions, append wording preserves them. Constrained table generation is a separate explicit Expert choice; do not enable it on a null layout.', + ], + }, + }, + [ + 'Create an original studio product photograph of a compact ceramic field radio on a pale limestone plinth. The body has a warm ivory glaze, two circular brass controls and a dark woven speaker grille. Compose a front three-quarter view with generous negative space, soft daylight from the left, grounded contact shadows and fine believable material texture. Keep the object unbranded, the background quiet and the color palette restrained. No people, logos or readable text.', + '', + ], + -1, + ), + withTemplateRecipeDefaults( + { + id: 'flux3_klein_base_fp8r512_single_reference_edit', + label: 'FLUX 3 Base 512 FP8r (50 steps) - Image Edit: Amber Glass', + modelDisplayName: 'FLUX 3 Image Klein Base', + mode: 'edit_image', + modelType: 'Flux3ModularPipeline', + runtimeReuseKey: 'Flux3ModularPipeline:fp8r:bfloat16:none:resident:none:expert', + category: 'edit', + tags: ['flux3', 'public-intent', 'planning', 'single-reference-edit', 'fp8r', '512-square', 'unqualified-recipe'], + difficulty: 'blocked', + modelArtifact: { + source: 'hub', + value: 'black-forest-labs/flux-3-image-klein-base', + revision: '1469d27cfb9bb1bd81d3a93f5a023b39dbf136e4', + }, + requiredBackendCapabilities: [ + 'modules.ModularDiffusers.ModelsLoader', + 'modules.ModularDiffusers.EncodePrompt', + 'modules.ModularDiffusers.Denoise', + 'modules.ModularDiffusers.DecodeLatents', + 'modules.Image.Preview', + 'modules.ModularDiffusers.ImageEncode', + 'modules.Image.Load', + 'modules.ModularDiffusers.Guider', + ], + vramEstimate: + 'Unmeasured for this exact 512 FP8r recipe. FP8r storage does not guarantee native FP8 GEMM or device fit.', + runtimeEstimate: 'Unmeasured distinct 512 x 512 FP8r recipe; original 1024 receipts are not reused.', + description: + 'Edit reference image 1: change the cobalt-blue transparent glass cube to warm amber transparent glass. Preserve its square silhouette, thick glass base, camera perspective, position on the pale rough stone slab, neutral background, soft light direction and grounded shadow. Keep the object unbranded; add no objects, logos or text.', + userGoal: 'Use the included approved cobalt glass input and review the amber-color edit.', + presetId: 'flux_quality', + example: { + mediaType: 'image', + status: 'blocked', + lockedSeed: 481102, + modelRevision: '1469d27cfb9bb1bd81d3a93f5a023b39dbf136e4', + lockedSettings: { + width: 512, + height: 512, + randomSeed: false, + steps: 50, + guidanceScale: 3.5, + maxSequenceLength: 8192, + dtype: 'bfloat16', + quantizationMode: 'none', + resourceMode: 'expert', + autoOffload: false, + offloadMode: 'none', + weightFormat: 'fp8r', + }, + expectedOutput: { + width: 512, + height: 512, + }, + runtimeEstimate: 'Pending measured exact 512 FP8r recipe', + blockReason: + 'Native output and template qualification, approved new output media and rights review are pending; this distinct 512 FP8r recipe grants no Gallery, Auto or hardware qualification.', + notes: + 'No generated output, public output media, template receipt or fit measurement is attached. Diffusion uses FP8r storage, BF16 compute and no added quantization. PUP starts disabled; its explicit FP32/NF4 choices are separate.', + }, + inputRequirements: { + referenceImages: 1, + }, + inputBindings: [ + { + id: 'flux3_klein_base_fp8r512_single_reference_edit-references', + label: 'Approved cobalt glass source', + mediaType: 'image', + origin: 'template', + requiredAt: 'workflow_start', + field: 'referenceImages', + defaultAssets: [ + { + id: 'approved-cobalt-glass-source', + label: 'Approved cobalt glass cube on stone', + mediaType: 'image', + runtimePath: '/template-gallery/inputs/flux2_klein_edit.before.png', + runtimeSha256: 'sha256:bytes:d5ba3943d6c0a264860ba0cde18d87e2d9554a3f7328308f4d771e082a9e0c24', + fileName: 'flux2_klein_edit.before.png', + previewPath: '/template-gallery/inputs/flux2_klein_edit.before.png', + }, + ], + }, + ], + executionSelection: IMAGE_TEMPLATE_EXECUTION_SELECTIONS.flux3_klein_base_fp8r512_single_reference_edit, + promptGuide: { + ...EDIT_PROMPT_GUIDE, + modelHints: [ + 'The exact public source profile is required; package qualification alone is not a template image proof.', + 'PUP is advisory and starts disabled. No authored regions: ordinary Enable selects declared raw FP32. Select BF16 + NF4 explicitly if desired; this never changes diffusion FP8r storage selection.', + 'With authored regions, append wording preserves them. Constrained table generation is a separate explicit Expert choice; do not enable it on a null layout.', + ], + }, + }, + [ + 'Edit reference image 1: change the cobalt-blue transparent glass cube to warm amber transparent glass. Preserve its square silhouette, thick glass base, camera perspective, position on the pale rough stone slab, neutral background, soft light direction and grounded shadow. Keep the object unbranded; add no objects, logos or text.', + '', + ], + -1, + ), + withTemplateRecipeDefaults( + { + id: 'flux3_klein_base_fp8r512_multi_reference_edit', + label: 'FLUX 3 Base 512 FP8r (50 steps) - Two-Reference Edit: Glass Packaging', + modelDisplayName: 'FLUX 3 Image Klein Base', + mode: 'edit_image', + modelType: 'Flux3ModularPipeline', + runtimeReuseKey: 'Flux3ModularPipeline:fp8r:bfloat16:none:resident:none:expert', + category: 'reference', + tags: ['flux3', 'public-intent', 'planning', 'multi-reference-edit', 'fp8r', '512-square', 'unqualified-recipe'], + difficulty: 'blocked', + modelArtifact: { + source: 'hub', + value: 'black-forest-labs/flux-3-image-klein-base', + revision: '1469d27cfb9bb1bd81d3a93f5a023b39dbf136e4', + }, + requiredBackendCapabilities: [ + 'modules.ModularDiffusers.ModelsLoader', + 'modules.ModularDiffusers.EncodePrompt', + 'modules.ModularDiffusers.Denoise', + 'modules.ModularDiffusers.DecodeLatents', + 'modules.Image.Preview', + 'modules.ModularDiffusers.ImageEncode', + 'modules.Image.Load', + 'modules.ModularDiffusers.Guider', + ], + vramEstimate: + 'Unmeasured for this exact 512 FP8r recipe. FP8r storage does not guarantee native FP8 GEMM or device fit.', + runtimeEstimate: 'Unmeasured distinct 512 x 512 FP8r recipe; original 1024 receipts are not reused.', + description: + 'Use reference image 1 as the cobalt-blue glass product subject. Use reference image 2 as the flat packaging dieline: preserve the cream background, black panel outlines, fold guides, rounded placeholder panels and yellow accent bands. Place a small coherent product photograph of the blue glass cube in the large central panel, leaving the structural lines and other panels intact. Keep the result a flat unfolded packaging design. Do not duplicate the product, add people, invent a brand or add readable text.', + userGoal: 'Use the two included approved inputs in order: glass subject first, flat packaging layout second.', + presetId: 'flux_quality', + example: { + mediaType: 'image', + status: 'blocked', + lockedSeed: 481103, + modelRevision: '1469d27cfb9bb1bd81d3a93f5a023b39dbf136e4', + lockedSettings: { + width: 512, + height: 512, + randomSeed: false, + steps: 50, + guidanceScale: 3.5, + maxSequenceLength: 8192, + dtype: 'bfloat16', + quantizationMode: 'none', + resourceMode: 'expert', + autoOffload: false, + offloadMode: 'none', + weightFormat: 'fp8r', + }, + expectedOutput: { + width: 512, + height: 512, + }, + runtimeEstimate: 'Pending measured exact 512 FP8r recipe', + blockReason: + 'Native output and template qualification, approved new output media and rights review are pending; this distinct 512 FP8r recipe grants no Gallery, Auto or hardware qualification.', + notes: + 'No generated output, public output media, template receipt or fit measurement is attached. Diffusion uses FP8r storage, BF16 compute and no added quantization. PUP starts disabled; its explicit FP32/NF4 choices are separate. The second reference is normal edit-image conditioning, not ControlNet or source-owned structured geometry.', + }, + inputRequirements: { + referenceImages: 2, + }, + inputBindings: [ + { + id: 'flux3_klein_base_fp8r512_multi_reference_edit-references', + label: 'Ordered glass subject and packaging layout references', + mediaType: 'image', + origin: 'template', + requiredAt: 'workflow_start', + field: 'referenceImages', + defaultAssets: [ + { + id: 'approved-cobalt-glass-source', + label: 'Approved cobalt glass cube on stone', + mediaType: 'image', + runtimePath: '/template-gallery/inputs/flux2_klein_edit.before.png', + runtimeSha256: 'sha256:bytes:d5ba3943d6c0a264860ba0cde18d87e2d9554a3f7328308f4d771e082a9e0c24', + fileName: 'flux2_klein_edit.before.png', + previewPath: '/template-gallery/inputs/flux2_klein_edit.before.png', + }, + { + id: 'approved-packaging-dieline-source', + label: 'Approved cream and yellow packaging dieline', + mediaType: 'image', + runtimePath: '/template-gallery/inputs/qwen_control_image_layout.before.png', + runtimeSha256: 'sha256:bytes:b748201353f02543c2a48920bb514c2741366151df45bf6c4904aeb0f32f1a67', + fileName: 'qwen_control_image_layout.before.png', + previewPath: '/template-gallery/inputs/qwen_control_image_layout.before.png', + }, + ], + }, + ], + executionSelection: IMAGE_TEMPLATE_EXECUTION_SELECTIONS.flux3_klein_base_fp8r512_multi_reference_edit, + promptGuide: { + ...EDIT_PROMPT_GUIDE, + modelHints: [ + 'The exact public source profile is required; package qualification alone is not a template image proof.', + 'PUP is advisory and starts disabled. No authored regions: ordinary Enable selects declared raw FP32. Select BF16 + NF4 explicitly if desired; this never changes diffusion FP8r storage selection.', + 'With authored regions, append wording preserves them. Constrained table generation is a separate explicit Expert choice; do not enable it on a null layout.', + ], + }, + }, + [ + 'Use reference image 1 as the cobalt-blue glass product subject. Use reference image 2 as the flat packaging dieline: preserve the cream background, black panel outlines, fold guides, rounded placeholder panels and yellow accent bands. Place a small coherent product photograph of the blue glass cube in the large central panel, leaving the structural lines and other panels intact. Keep the result a flat unfolded packaging design. Do not duplicate the product, add people, invent a brand or add readable text.', + '', + ], + -1, + ), + withTemplateRecipeDefaults( + { + id: 'flux3_klein_base_fp8r512_raw_coordinate_prompt', + label: 'FLUX 3 Base 512 FP8r (50 steps) - Raw Prompt Coordinates: Apple', + modelDisplayName: 'FLUX 3 Image Klein Base', + mode: 'text_to_image', + modelType: 'Flux3ModularPipeline', + runtimeReuseKey: 'Flux3ModularPipeline:fp8r:bfloat16:none:resident:none:expert', + category: 'reference', + tags: [ + 'flux3', + 'public-intent', + 'planning', + 'fp8r', + '512-square', + 'unqualified-recipe', + 'raw-prompt-coordinates', + ], + difficulty: 'blocked', + modelArtifact: { + source: 'hub', + value: 'black-forest-labs/flux-3-image-klein-base', + revision: '1469d27cfb9bb1bd81d3a93f5a023b39dbf136e4', + }, + requiredBackendCapabilities: [ + 'modules.ModularDiffusers.ModelsLoader', + 'modules.ModularDiffusers.EncodePrompt', + 'modules.ModularDiffusers.Denoise', + 'modules.ModularDiffusers.DecodeLatents', + 'modules.Image.Preview', + 'modules.ModularDiffusers.Guider', + ], + vramEstimate: + 'Unmeasured for this exact 512 FP8r recipe. FP8r storage does not guarantee native FP8 GEMM or device fit.', + runtimeEstimate: 'Unmeasured distinct 512 x 512 FP8r recipe; original 1024 receipts are not reused.', + description: + 'A still life with .\n[{"id":"apple_1","bbox":[250,125,750,875],"desc":"A red apple, with a green leaf."}]', + userGoal: 'Inspect the literal raw coordinate prompt; the structured-layout widget remains unset/null.', + presetId: 'flux_quality', + example: { + mediaType: 'image', + status: 'blocked', + lockedSeed: 481104, + modelRevision: '1469d27cfb9bb1bd81d3a93f5a023b39dbf136e4', + lockedSettings: { + width: 512, + height: 512, + randomSeed: false, + steps: 50, + guidanceScale: 3.5, + maxSequenceLength: 8192, + dtype: 'bfloat16', + quantizationMode: 'none', + resourceMode: 'expert', + autoOffload: false, + offloadMode: 'none', + weightFormat: 'fp8r', + }, + expectedOutput: { + width: 512, + height: 512, + }, + runtimeEstimate: 'Pending measured exact 512 FP8r recipe', + blockReason: + 'Native output and template qualification, approved new output media and rights review are pending; this distinct 512 FP8r recipe grants no Gallery, Auto or hardware qualification. Spatial adherence is unproved. This is not a seeded region-widget or generated-table template.', + notes: + 'The raw prompt uses the existing shared layout fixture syntax, y-first integer coordinates [250,125,750,875]. The layout_conditioning field remains null through normal T2I defaults. PUP stays disabled so the literal table is not rewritten. No source-reference IDs, widget geometry, strict generated-table completion or F3-06 proof is claimed.', + }, + executionSelection: IMAGE_TEMPLATE_EXECUTION_SELECTIONS.flux3_klein_base_fp8r512_raw_coordinate_prompt, + promptGuide: { + ...BASE_PROMPT_GUIDE, + modelHints: [ + 'Keep PUP disabled for this raw-coordinate example.', + 'The table is literal prompt text; no authored-region widget is seeded.', + 'Native spatial adherence and output quality remain unqualified.', + ], + }, + }, + [ + 'A still life with .\n[{"id":"apple_1","bbox":[250,125,750,875],"desc":"A red apple, with a green leaf."}]', + '', + ], + -1, + ), + withTemplateRecipeDefaults( + { + id: 'flux3_klein_base_fp8r512_lora_style', + label: 'FLUX 3 Base 512 FP8r (50 steps) - Tarot LoRA (License Hold)', + modelDisplayName: 'FLUX 3 Image Klein Base', + mode: 'text_to_image', + modelType: 'Flux3ModularPipeline', + runtimeReuseKey: 'Flux3ModularPipeline:fp8r:bfloat16:none:resident:none:expert', + category: 'lora', + tags: ['flux3', 'public-intent', 'planning', 'lora-style', 'fp8r', '512-square', 'unqualified-recipe'], + difficulty: 'blocked', + modelArtifact: { + source: 'hub', + value: 'black-forest-labs/flux-3-image-klein-base', + revision: '1469d27cfb9bb1bd81d3a93f5a023b39dbf136e4', + }, + requiredBackendCapabilities: [ + 'modules.ModularDiffusers.ModelsLoader', + 'modules.ModularDiffusers.EncodePrompt', + 'modules.ModularDiffusers.Denoise', + 'modules.ModularDiffusers.DecodeLatents', + 'modules.Image.Preview', + 'modules.ModularDiffusers.Lora', + 'modules.ModularDiffusers.Guider', + ], + vramEstimate: + 'Unmeasured for this exact 512 FP8r recipe. FP8r storage does not guarantee native FP8 GEMM or device fit.', + runtimeEstimate: 'Unmeasured distinct 512 x 512 FP8r recipe; original 1024 receipts are not reused.', + description: + 'A trtcrd of a single red fox standing on a moss-covered rock in an ancient forest, tarot style, an ornate gold frame, engraved linework, rich restrained colors, no lettering, no logos.', + userGoal: + 'Inspect the exact Base Tarot adapter and distinct 512 FP8r recipe; license and output evidence remain on hold.', + presetId: 'flux_quality', + example: { + mediaType: 'image', + status: 'blocked', + lockedSeed: 481105, + modelRevision: '1469d27cfb9bb1bd81d3a93f5a023b39dbf136e4', + lockedSettings: { + width: 512, + height: 512, + randomSeed: false, + steps: 50, + guidanceScale: 3.5, + maxSequenceLength: 8192, + dtype: 'bfloat16', + quantizationMode: 'none', + resourceMode: 'expert', + autoOffload: false, + offloadMode: 'none', + weightFormat: 'fp8r', + }, + expectedOutput: { + width: 512, + height: 512, + }, + runtimeEstimate: 'Pending measured exact 512 FP8r recipe', + blockReason: + 'Native output and template qualification, approved new output media and rights review are pending; this distinct 512 FP8r recipe grants no Gallery, Auto or hardware qualification. The exact adapter card declares license: other without an explicit grant; adapter terms and public use remain on hold.', + notes: + 'No generated output, public output media, template receipt or fit measurement is attached. Diffusion uses FP8r storage, BF16 compute and no added quantization. PUP starts disabled; its explicit FP32/NF4 choices are separate. The named rank16 adapter is Base-trained; historical 1024 receipts do not qualify this 512 recipe or the new trtcrd prompt.', + }, + evidencePolicy: 'generated', + workflowBlocks: ['lora'], + workflowBlockSettings: { + lora: { + model: { + source: 'hub', + value: 'diffusers-modular/flux3-tarot-lora', + revision: '96fe1071462ed2e95c96035625e9f217d7f61f48', + sha256: 'b5adac5ac7232708c2b3b55b1bb7a69c06c0c3e929f96073b7c5c7f3722c946a', + byteSize: 80385992, + }, + weightName: 'pytorch_lora_weights.safetensors', + adapterName: 'tarot', + scale: 1, + }, + }, + executionSelection: IMAGE_TEMPLATE_EXECUTION_SELECTIONS.flux3_klein_base_fp8r512_lora_style, + promptGuide: { + ...BASE_PROMPT_GUIDE, + modelHints: [ + 'The exact public source profile is required; package qualification alone is not a template image proof.', + 'PUP is advisory and starts disabled. No authored regions: ordinary Enable selects declared raw FP32. Select BF16 + NF4 explicitly if desired; this never changes diffusion FP8r storage selection.', + 'With authored regions, append wording preserves them. Constrained table generation is a separate explicit Expert choice; do not enable it on a null layout.', + 'This exact Base-trained Tarot artifact is named and hash-locked, but its pinned license: other metadata is unresolved. Keep the card blocked until adapter terms, current native quality and new output rights are reviewed.', + ], + }, + }, + [ + 'A trtcrd of a single red fox standing on a moss-covered rock in an ancient forest, tarot style, an ornate gold frame, engraved linework, rich restrained colors, no lettering, no logos.', + '', + ], + -1, + ), // Experimental Custom recipes use explicit full-model contracts; their // availability does not publish output, Auto, Gallery or runtime proof. withTemplateRecipeDefaults( diff --git a/src/studio/types.ts b/src/studio/types.ts index a84f0d4c..fd5abbb0 100644 --- a/src/studio/types.ts +++ b/src/studio/types.ts @@ -213,7 +213,9 @@ export type StudioModelType = | 'BuiltinImageOperation' | 'BuiltinVideoOperation' | 'SpandrelVideoUpscale' - | 'SpandrelImageUpscale'; + | 'SpandrelImageUpscale' + | 'Flux3ModularPipeline' + | 'Flux3DistilledModularPipeline'; export type StudioAspectRatio = '1:1' | '4:3' | '3:4' | '16:9' | '9:16' | 'custom'; export type StudioQuantizationMode = 'none' | 'bnb_4bit' | 'bnb_8bit' | 'quanto_float8' | 'torchao_float8'; @@ -248,6 +250,16 @@ export type StudioPresetId = | 'flux_control'; export type StudioTemplateId = + | 'flux3_klein_fp8r512_text_to_image' + | 'flux3_klein_fp8r512_single_reference_edit' + | 'flux3_klein_fp8r512_multi_reference_edit' + | 'flux3_klein_fp8r512_raw_coordinate_prompt' + | 'flux3_klein_fp8r512_lora_style' + | 'flux3_klein_base_fp8r512_text_to_image' + | 'flux3_klein_base_fp8r512_single_reference_edit' + | 'flux3_klein_base_fp8r512_multi_reference_edit' + | 'flux3_klein_base_fp8r512_raw_coordinate_prompt' + | 'flux3_klein_base_fp8r512_lora_style' | 'z_image_quick_concept' | 'z_image_product_mockup' | 'z_image_poster' @@ -824,6 +836,8 @@ export type StudioFormState = { confirmedCommunityArtifact?: string; dtype: 'float32' | 'float16' | 'bfloat16'; quantizationMode: StudioQuantizationMode; + /** Immutable storage format; omission is historical native, null is a blocked saved value. */ + weightFormat?: import('./weightFormat').StudioWeightFormat | null; device: string; autoOffload: boolean; offloadMode: StudioOffloadMode; @@ -940,6 +954,18 @@ export type StudioExecutionProfile = { delivery: 'base' | 'optional_overlay'; }>; optional_runtime_profiles?: string[]; + /** Source-declared sealed Diffusers overlay; visibility does not grant execution. */ + required_diffusers_provider?: string; + /** Explicit per-task editing offers; workflow metadata parsing validates these. */ + authoringRecipes?: readonly { + executionProfileId: string; + pipelineClass: string; + task: string; + authoringRecipeId: string; + rawAuthoringRecipeId?: string; + rawAuthoringRecipeChoices?: readonly { authoringRecipeId: string; label: string }[]; + layoutAuthoringRecipeChoices?: readonly { authoringRecipeId: string; label: string }[]; + }[]; optionalRuntimeRequirement?: OptionalRuntimeRequirement; expert_cuda_policy?: StudioExpertCudaPolicy; expert_quantization_policy?: StudioExpertQuantizationPolicy; @@ -965,6 +991,8 @@ export type StudioExecutionSpec = { actions: []; /** Declared non-media sink roles retained for execution/audit side effects. */ auxiliaryTerminalRoles?: StudioGraphRole[]; + /** Hash-covered dependency, identical to the selected execution profile. */ + requiredDiffusersProvider?: string; contentHash: string; }; @@ -1489,6 +1517,7 @@ export type StudioTemplateLockedSettings = Pick< | 'guidanceScale' | 'resourceMode' | 'dtype' + | 'weightFormat' | 'quantizationMode' | 'autoOffload' | 'offloadMode' diff --git a/src/studio/useStudioReadiness.ts b/src/studio/useStudioReadiness.ts index 8450e70a..02128b8c 100644 --- a/src/studio/useStudioReadiness.ts +++ b/src/studio/useStudioReadiness.ts @@ -1,5 +1,6 @@ import { useMemo } from 'react'; -import type { ModelCacheDiagnostics } from '../stores/useNodeStore'; +import { useNodesStore, type ModelCacheDiagnostics } from '../stores/useNodeStore'; +import { studioWeightFormatProfile } from './weightFormat'; import { autoResourceInstallTarget, type StudioAutoResourcePlan } from './autoResource'; import { getStudioWorkflowArtifactRequirements } from './artifactRequirements'; import { getStudioModelCacheStatus } from './modelCache'; @@ -26,6 +27,8 @@ export function useStudioReadiness({ backendCapabilities = [], backendCapabilitiesAuthoritative = false, }: StudioReadinessOptions) { + const workflowModelDescriptors = useNodesStore((state) => state.workflowModelDescriptors); + const studioExecutionSpecInvalid = useNodesStore((state) => state.studioExecutionSpecInvalid); const capability = useMemo(() => { const fallback = getProfileForForm(form); const backend = backendCapabilities.find((item) => item.modelType === form.modelType); @@ -45,9 +48,27 @@ export function useStudioReadiness({ const backend = backendCapabilities.find((item) => item.modelType === form.modelType); return backend ? advertisedStudioModes(backend) : []; }, [backendCapabilities, backendCapabilitiesAuthoritative, capability.modes, form.modelType]); + const selectedCapability = useMemo( + () => + studioWeightFormatProfile( + form, + capability, + backendCapabilities, + workflowModelDescriptors, + studioExecutionSpecInvalid || !backendCapabilitiesAuthoritative, + ), + [ + form, + capability, + backendCapabilities, + backendCapabilitiesAuthoritative, + workflowModelDescriptors, + studioExecutionSpecInvalid, + ], + ); const modelStatus = useMemo( - () => getStudioModelCacheStatus(capability, hfCache, localModels, modelCacheDiagnostics), - [capability, hfCache, localModels, modelCacheDiagnostics], + () => getStudioModelCacheStatus(selectedCapability, hfCache, localModels, modelCacheDiagnostics), + [selectedCapability, hfCache, localModels, modelCacheDiagnostics], ); const workflowArtifactRequirements = useMemo( () => @@ -58,8 +79,21 @@ export function useStudioReadiness({ localModels, modelCacheDiagnostics, includePipeline: false, + backendCapabilities, + workflowModelDescriptors, + studioExecutionSpecInvalid: studioExecutionSpecInvalid || !backendCapabilitiesAuthoritative, }), - [autoResourcePlan, form, hfCache, localModels, modelCacheDiagnostics], + [ + autoResourcePlan, + form, + hfCache, + localModels, + modelCacheDiagnostics, + backendCapabilities, + backendCapabilitiesAuthoritative, + workflowModelDescriptors, + studioExecutionSpecInvalid, + ], ); const modeImageRequirements = capability.modeRequirements?.[form.mode]?.requiredImages ?? []; const requiresReferenceImage = modeImageRequirements.includes('referenceImages'); @@ -79,15 +113,24 @@ export function useStudioReadiness({ [autoResourcePlan, form], ); const exactCapabilityRevision = - capability.revisionCandidates?.length === 1 ? capability.revisionCandidates[0] : undefined; + selectedCapability?.revisionCandidates?.length === 1 ? selectedCapability.revisionCandidates[0] : undefined; const missingInstallTarget = autoInstallTarget ?? - (form.resourceMode !== 'auto' && capability.artifactInstallRequired !== false && !modelStatus.runnable + (form.resourceMode !== 'auto' && + selectedCapability && + selectedCapability.artifactInstallRequired !== false && + !modelStatus.runnable ? { - repo: capability.defaultRepo, - label: capability.label, + repo: selectedCapability.defaultRepo, + label: selectedCapability.label, revision: exactCapabilityRevision, - files: capability.downloadFiles, + files: selectedCapability.downloadFiles, + ...(form.weightFormat !== undefined && form.weightFormat !== 'native' + ? { + repair: modelStatus.repairRequired, + actionLabel: modelStatus.repairRequired ? 'Repair' : 'Install', + } + : {}), } : missingModeRequirement ? { repo: missingModeRequirement.repo, label: missingModeRequirement.label } diff --git a/src/studio/useStudioRunActions.ts b/src/studio/useStudioRunActions.ts index 08d2394c..75fda8f1 100644 --- a/src/studio/useStudioRunActions.ts +++ b/src/studio/useStudioRunActions.ts @@ -31,10 +31,34 @@ import { coordinateGraphRun } from './runCoordinator'; import { prepareHuggingFaceClustersForRun } from './huggingFaceClusterPreparation'; import { materializeTemplateDefaultInputs } from './templateInputs'; import { STUDIO_TEMPLATES } from './templates'; -import { exactStudioExecutionProfileForForm } from './executionSpecs'; +import { exactStudioExecutionProfileForForm, exactStudioExecutionSpecForForm } from './executionSpecs'; +import { assertFormWeightFormatSelection, hasNonNativeStudioWeightFormat } from './weightFormat'; import { DEFAULT_STUDIO_FORM, STUDIO_MODEL_PROFILES } from './modelProfiles'; import type { StudioFormState, StudioMode, StudioModelType } from './types'; +// Run the same admission before the model-change owner commits its form. +// A model selection may replace its artifact; it must not silently erase an +// explicit storage choice or leave the new form paired with the old graph. +export function studioModelChangeWeightFormatPatch( + current: StudioFormState, + modelType: StudioModelType, + metadata: Pick< + ReturnType, + 'studioModelCapabilities' | 'studioExecutionSpecInvalid' | 'workflowModelDescriptors' + >, +): Partial { + if (!hasNonNativeStudioWeightFormat(current)) return {}; + const capability = metadata.studioModelCapabilities.find((item) => item.modelType === modelType); + const candidate = { ...current, modelType, modelRepo: capability?.defaultRepo }; + const spec = exactStudioExecutionSpecForForm( + metadata.studioModelCapabilities, + metadata.studioExecutionSpecInvalid, + candidate, + ); + assertFormWeightFormatSelection(candidate, spec, capability, metadata.workflowModelDescriptors); + return { modelRepo: capability!.defaultRepo }; +} + export async function ensureStudioAutoPlanReadyForRun( context: WorkflowOperationContext = captureWorkflowOperationContext(), ) { @@ -222,6 +246,15 @@ export function useStudioRunActions({ (modelType: StudioModelType) => { const current = useStudioStore.getState().form; const nodeStore = useNodesStore.getState(); + let weightFormatPatch: Partial; + try { + weightFormatPatch = studioModelChangeWeightFormatPatch(current, modelType, nodeStore); + } catch (error) { + const message = String(error); + useStudioStore.getState().setLastError(message); + enqueueSnackbar(message, { variant: 'error', autoHideDuration: 7000 }); + return; + } const executionProfile = exactStudioExecutionProfileForForm( nodeStore.studioModelCapabilities, nodeStore.studioExecutionSpecInvalid, @@ -234,6 +267,7 @@ export function useStudioRunActions({ : 'none'; const profile = STUDIO_MODEL_PROFILES[modelType]; useStudioStore.getState().updateForm({ + ...weightFormatPatch, modelType, quantizationMode, pagScale: profile.recommendedPagScale ?? DEFAULT_STUDIO_FORM.pagScale, diff --git a/src/studio/weightFormat.ts b/src/studio/weightFormat.ts new file mode 100644 index 00000000..b5acfc70 --- /dev/null +++ b/src/studio/weightFormat.ts @@ -0,0 +1,174 @@ +import type { CustomNodeType } from '../stores/useFlowStore'; +import type { NodeParams } from '../stores/useNodeStore'; +import type { WorkflowModelDescriptor } from '../workflow/workflowChoices'; +import { parseWeightFormatSelections } from '../workflow/workflowModelInventory'; +import { runtimeOptionValues } from './runtimeOptions'; +import type { StudioFormState, StudioExecutionSpec, StudioModelProfile } from './types'; + +export type StudioWeightFormat = 'native' | 'fp8r' | 'nvfp4'; + +/** Missing historical values mean native; no quantization-mode inference. */ +export function studioWeightFormat(value: unknown): StudioWeightFormat { + if (value === undefined) return 'native'; + if (value !== 'native' && value !== 'fp8r' && value !== 'nvfp4') + throw new Error('Choose a backend-declared weight format.'); + return value; +} + +/** Persistence retains an unsupported selection as blocked, never as Native. + * Runtime execution and field edits continue to use the strict parser above. */ +export function persistedStudioWeightFormat(value: unknown): StudioWeightFormat | null { + if (value === undefined) return 'native'; + return value === 'native' || value === 'fp8r' || value === 'nvfp4' ? value : null; +} + +export const WEIGHT_FORMAT_AUTO_UNAVAILABLE = + 'This weight format has no backend Auto resource contract. Choose Expert explicitly; no hardware fit is implied.'; + +export function executionStudioWeightFormat(form: Pick) { + const format = studioWeightFormat(form.weightFormat); + if (format !== 'native' && form.resourceMode !== 'expert') throw new Error(WEIGHT_FORMAT_AUTO_UNAVAILABLE); + return format; +} + +export function assertStudioWeightFormatOptions(value: unknown, field?: Pick) { + const format = studioWeightFormat(value); + const allowed = field ? runtimeOptionValues(field.options) : []; + if ((format !== 'native' || allowed.length > 0) && !allowed.includes(format)) + throw new Error('The selected weight format is not declared by the current loader fields.'); + return format; +} + +/** Read the exact backend inventory, without granting install/runtime qualification. */ +export function selectedNodeWeightFormatArtifact( + node: Pick, + descriptors: readonly WorkflowModelDescriptor[], + executionProfileId?: string, +) { + const params = node.data.params ?? {}; + const field = params.weight_format; + const format = studioWeightFormat(field?.value !== undefined ? field.value : field?.default); + if (format === 'native') return null; + if (node.data.module !== 'modules.ModularDiffusers' || node.data.action !== 'ModelsLoader') + throw new Error('This loader does not declare a weight-format artifact selection.'); + const value = (name: string) => params[name]?.value ?? params[name]?.default; + const repository = value('repo_id'); + if ( + !repository || + typeof repository !== 'object' || + Array.isArray(repository) || + !('source' in repository) || + repository.source !== 'hub' || + !('value' in repository) || + typeof repository.value !== 'string' + ) + throw new Error('A weight-format artifact requires one immutable Hub model selection.'); + // Ordinary loader graphs have no execution_profile_id parameter. Require a + // unique current source declaration for the exact visible loader identity; + // template callers can additionally bind their already-selected profile. + const matching = descriptors + .filter( + (row) => + (executionProfileId === undefined || row.profileId === executionProfileId) && + row.pipeline === value('model_type') && + row.repo === repository.value, + ) + .map((descriptor) => { + const declared = parseWeightFormatSelections(descriptor.inventory?.weightFormatSelections) ?? []; + const selection = declared.find( + (row) => row.weightFormat === format && row.repo === repository.value && row.revision === value('revision'), + ); + return { descriptor, declared, selection }; + }) + .filter((row) => row.selection !== undefined); + if (matching.length !== 1) + throw new Error( + 'Refresh exact backend model capabilities; the selected artifact does not declare one unambiguous weight format.', + ); + const { descriptor, declared, selection } = matching[0]!; + return { descriptor, selection: selection!, options: ['native', ...declared.map((row) => row.weightFormat)] }; +} + +/** Presentation can diagnose an invalid imported value without treating it as valid. */ +export function hasNonNativeStudioWeightFormat(form: Pick) { + return form.weightFormat !== undefined && form.weightFormat !== 'native'; +} + +/** Omit native from old hash-covered settings; explicit non-native values bind proofs. */ +export function explicitStudioWeightFormat(form: Pick) { + const format = persistedStudioWeightFormat(form.weightFormat); + return format === 'native' ? undefined : format; +} + +/** Refuse incompatible model changes before managed graph creation/mutation. */ +export function assertFormWeightFormatSelection( + form: StudioFormState, + spec: StudioExecutionSpec | null | undefined, + capability: StudioModelProfile | undefined, + descriptors: readonly WorkflowModelDescriptor[], +) { + const format = executionStudioWeightFormat(form); + if (format === 'native') return null; + if ( + !spec || + !spec.bindings.some(([, , source]) => source === 'weightFormat') || + !capability || + capability.modelType !== form.modelType || + capability.revisionCandidates?.length !== 1 + ) + throw new Error( + 'This model does not declare the selected weight format. Choose Native explicitly; the graph is unchanged.', + ); + const repository = form.modelRepo ?? spec.defaultRepo; + const matching = descriptors.filter( + (row) => + row.profileId === spec.executionProfileId && row.pipeline === spec.pipelineClass && row.repo === repository, + ); + if (matching.length !== 1) + throw new Error( + 'This model does not declare the selected weight format. Choose Native explicitly; the graph is unchanged.', + ); + const descriptor = matching[0]!; + const declared = parseWeightFormatSelections(descriptor.inventory?.weightFormatSelections) ?? []; + const choices = declared.filter( + (row) => + row.weightFormat === format && row.repo === repository && row.revision === capability.revisionCandidates![0], + ); + if (choices.length !== 1) + throw new Error( + 'This model does not declare the selected weight format. Choose Native explicitly; the graph is unchanged.', + ); + return { descriptor, selection: choices[0]!, options: ['native', ...declared.map((row) => row.weightFormat)] }; +} + +/** Project the existing profile into the exact selected artifact for summaries. + * A missing/invalid declaration returns no profile, never the native fallback. */ +export function studioWeightFormatProfile( + form: StudioFormState, + nativeProfile: StudioModelProfile, + capabilities: readonly StudioModelProfile[], + descriptors: readonly WorkflowModelDescriptor[], + invalid = false, +): StudioModelProfile | null { + try { + if (!hasNonNativeStudioWeightFormat(form)) return nativeProfile; + if (invalid) return null; + const matches = capabilities.filter((item) => item.modelType === form.modelType); + if (matches.length !== 1) return null; + const capability = matches[0]!; + const specs = capability.studioExecutionSpecs?.filter((item) => item.mode === form.mode) ?? []; + if (specs.length !== 1) return null; + const selected = assertFormWeightFormatSelection(form, specs[0], capability, descriptors); + if (!selected) return null; + return { + ...nativeProfile, + ...capability, + label: `${nativeProfile.label} · ${studioWeightFormat(form.weightFormat).toUpperCase()}`, + defaultRepo: selected.selection.repo, + revisionCandidates: [selected.selection.revision], + downloadFiles: [...selected.selection.downloadFiles], + }; + } catch { + return null; + } +} diff --git a/src/workflow/authoringRecipeOffers.ts b/src/workflow/authoringRecipeOffers.ts new file mode 100644 index 00000000..458c0920 --- /dev/null +++ b/src/workflow/authoringRecipeOffers.ts @@ -0,0 +1,108 @@ +import { boundedText, identifier, record } from './operationContracts'; +import type { PipelineSupport } from './operationCatalog'; + +/** One bounded wire contract shared by public and explicit evaluation offers. */ +export function parseAuthoringRecipeOffers( + value: unknown, + profiles: readonly { id: string; pipeline: string; modes: readonly string[] }[], + declared: readonly PipelineSupport[], + invalid: () => never, +) { + const recipes = new Map>(); + const rawRecipes = new Map>(); + const rawChoices = new Map>(); + const layoutChoices = new Map>(); + const parseChoices = (value: unknown) => { + if (!Array.isArray(value) || !value.length || value.length > 4) return invalid(); + if (Reflect.ownKeys(value).length !== value.length + 1) return invalid(); + const selected = Array.from({ length: value.length }, (_, index) => { + const entry = Object.getOwnPropertyDescriptor(value, index); + if (!entry?.enumerable || !('value' in entry)) return invalid(); + const choice = record(entry.value, ['authoringRecipeId', 'label']); + if (Reflect.ownKeys(choice).length !== 2) return invalid(); + const identity = Object.getOwnPropertyDescriptor(choice, 'authoringRecipeId'); + const label = Object.getOwnPropertyDescriptor(choice, 'label'); + if (!identity?.enumerable || !('value' in identity) || !label?.enumerable || !('value' in label)) + return invalid(); + const selectedLabel = boundedText(label.value, 128); + if (selectedLabel !== selectedLabel.trim()) return invalid(); + return { authoringRecipeId: boundedText(identity.value, 256), label: selectedLabel }; + }); + if (new Set(selected.map((choice) => choice.authoringRecipeId)).size !== selected.length) return invalid(); + return selected; + }; + if (!Array.isArray(value) || value.length > 4) invalid(); + for (const raw of value as unknown[]) { + const hasRaw = + raw !== null && typeof raw === 'object' && Object.prototype.hasOwnProperty.call(raw, 'rawAuthoringRecipeId'); + const rawRecipe = hasRaw ? Object.getOwnPropertyDescriptor(raw, 'rawAuthoringRecipeId') : undefined; + if (hasRaw && (!rawRecipe?.enumerable || !('value' in rawRecipe))) invalid(); + const hasChoices = + raw !== null && typeof raw === 'object' && Object.prototype.hasOwnProperty.call(raw, 'rawAuthoringRecipeChoices'); + const choices = hasChoices ? Object.getOwnPropertyDescriptor(raw, 'rawAuthoringRecipeChoices') : undefined; + if (hasChoices && (!hasRaw || !choices?.enumerable || !('value' in choices))) invalid(); + const hasLayout = + raw !== null && + typeof raw === 'object' && + Object.prototype.hasOwnProperty.call(raw, 'layoutAuthoringRecipeChoices'); + const layout = hasLayout ? Object.getOwnPropertyDescriptor(raw, 'layoutAuthoringRecipeChoices') : undefined; + if (hasLayout && (!layout?.enumerable || !('value' in layout))) invalid(); + const row = record(raw, [ + 'executionProfileId', + 'pipelineClass', + 'task', + 'authoringRecipeId', + ...(hasRaw ? ['rawAuthoringRecipeId'] : []), + ...(hasChoices ? ['rawAuthoringRecipeChoices'] : []), + ...(hasLayout ? ['layoutAuthoringRecipeChoices'] : []), + ]); + const profileId = boundedText(row.executionProfileId, 256); + const task = identifier(row.task); + const profile = profiles.find((p) => p.id === profileId && p.pipeline === row.pipelineClass); + if ( + !profile || + !profile.modes.includes(task) || + !declared.some( + (pipeline) => + pipeline.pipelineClass === profile.pipeline && + pipeline.tasks.some((row) => row.task === task && row.executionProfileIds.includes(profileId)), + ) + ) + invalid(); + const byTask = recipes.get(profileId) ?? {}; + if (Object.prototype.hasOwnProperty.call(byTask, task)) invalid(); + byTask[task] = boundedText(row.authoringRecipeId, 256); + recipes.set(profileId, byTask); + if (hasRaw) { + const rawId = boundedText(rawRecipe!.value, 256); + if (rawId === byTask[task]) invalid(); + const rawByTask = rawRecipes.get(profileId) ?? {}; + rawByTask[task] = rawId; + rawRecipes.set(profileId, rawByTask); + if (hasChoices) { + const selected = parseChoices(choices!.value); + const ids = selected.map((choice) => choice.authoringRecipeId); + if (!ids.includes(rawId) || ids.includes(byTask[task]!)) invalid(); + const byTaskChoices = rawChoices.get(profileId) ?? {}; + byTaskChoices[task] = selected; + rawChoices.set(profileId, byTaskChoices); + } + } + if (hasLayout) { + const selected = parseChoices(layout!.value); + const rawIds = new Set([ + ...(hasRaw ? [rawRecipes.get(profileId)![task]] : []), + ...(rawChoices.get(profileId)?.[task]?.map((choice) => choice.authoringRecipeId) ?? []), + ]); + if ( + !selected.some((choice) => choice.authoringRecipeId === byTask[task]) || + selected.some((choice) => rawIds.has(choice.authoringRecipeId)) + ) + invalid(); + const byTaskChoices = layoutChoices.get(profileId) ?? {}; + byTaskChoices[task] = selected; + layoutChoices.set(profileId, byTaskChoices); + } + } + return { recipes, rawRecipes, rawChoices, layoutChoices }; +} diff --git a/src/workflow/evaluationAuthoring.ts b/src/workflow/evaluationAuthoring.ts index 8bc7ad37..28cdd40c 100644 --- a/src/workflow/evaluationAuthoring.ts +++ b/src/workflow/evaluationAuthoring.ts @@ -1,6 +1,7 @@ import { parsePipelineSupport, type PipelineSupport } from './operationCatalog'; import { boundedText, identifier, record, type OperationContract } from './operationContracts'; import type { WorkflowModelDescriptor } from './workflowChoices'; +import { parseAuthoringRecipeOffers } from './authoringRecipeOffers'; import { parseImageAdapterAuthoringPolicy, parseOptionalRuntimeExecutionProfiles } from '../studio/optionalRuntimes'; /** Explicit installed evaluation metadata only; never changes public model capabilities. */ @@ -87,30 +88,12 @@ export function parseEvaluationAuthoring( } } if (selected.size !== profiles.length) invalid(); - const recipes = new Map>(); - if (hasRecipes) { - if (!Array.isArray(item.authoringRecipes) || item.authoringRecipes.length > 4) invalid(); - for (const raw of item.authoringRecipes as unknown[]) { - const row = record(raw, ['executionProfileId', 'pipelineClass', 'task', 'authoringRecipeId']); - const profileId = boundedText(row.executionProfileId, 256); - const task = identifier(row.task); - const profile = profiles.find((p) => p.id === profileId && p.pipeline === row.pipelineClass); - if ( - !profile || - !profile.modes.includes(task) || - !declared.some( - (pipeline) => - pipeline.pipelineClass === profile.pipeline && - pipeline.tasks.some((row) => row.task === task && row.executionProfileIds.includes(profileId)), - ) - ) - invalid(); - const byTask = recipes.get(profileId) ?? {}; - if (Object.prototype.hasOwnProperty.call(byTask, task)) invalid(); - byTask[task] = boundedText(row.authoringRecipeId, 256); - recipes.set(profileId, byTask); - } - } + const { recipes, rawRecipes, rawChoices, layoutChoices } = parseAuthoringRecipeOffers( + hasRecipes ? item.authoringRecipes : [], + profiles, + declared, + invalid, + ); const descriptors = profiles.map((profile): WorkflowModelDescriptor => { const matches = (payload.capabilities as unknown[]).filter( (raw) => @@ -169,6 +152,9 @@ export function parseEvaluationAuthoring( modelType: profile.model, ...(adapterAuthoringProfile ? { adapterAuthoringProfile } : {}), ...(recipes.has(profile.id) ? { authoringRecipes: recipes.get(profile.id) } : {}), + ...(rawRecipes.has(profile.id) ? { rawPromptAuthoringRecipes: rawRecipes.get(profile.id) } : {}), + ...(rawChoices.has(profile.id) ? { rawPromptAuthoringChoices: rawChoices.get(profile.id) } : {}), + ...(layoutChoices.has(profile.id) ? { layoutPromptAuthoringChoices: layoutChoices.get(profile.id) } : {}), }; }); return { support: [...support.filter((p) => !pipelines.has(p.pipelineClass)), ...declared], descriptors }; diff --git a/src/workflow/workflowChoices.ts b/src/workflow/workflowChoices.ts index 553ce228..cdb95438 100644 --- a/src/workflow/workflowChoices.ts +++ b/src/workflow/workflowChoices.ts @@ -4,6 +4,8 @@ import type { StudioExecutionProfile, StudioImageAdapterAuthoringPolicy } from ' import { getRepoCacheStatus, getStudioModelCacheStatus, type StudioModelCacheStatus } from '../studio/modelCache'; import type { PipelineSupport, PipelineTaskSupport } from './operationCatalog'; import { parseWorkflowModelInventory, type WorkflowModelInventory } from './workflowModelInventory'; +import { parseAuthoringRecipeOffers } from './authoringRecipeOffers'; +import { identifier } from './operationContracts'; export type WorkflowChoice = { id: string; @@ -45,6 +47,10 @@ export type WorkflowModelDescriptor = { modelType?: string; adapterAuthoringProfile?: WorkflowImageAdapterProfile; authoringRecipes?: Readonly>; + /** Explicit backend alternative for a null authored layout; never inferred from model names. */ + rawPromptAuthoringRecipes?: Readonly>; + rawPromptAuthoringChoices?: Readonly>; + layoutPromptAuthoringChoices?: Readonly>; }; /** Presentation-only identities for generic workflows, independent of legacy Studio forms. */ @@ -76,22 +82,69 @@ export function parseWorkflowModelDescriptors( const result: WorkflowModelDescriptor[] = []; for (const raw of payload.capabilities as unknown[]) { const model = object(raw); - if (typeof model.modelType === 'string' && known.has(model.modelType)) continue; + const knownModel = typeof model.modelType === 'string' && known.has(model.modelType); const profiles = model.executionProfiles; + // Older known-model records retain their legacy presentation boundary. + // Explicit offers opt into this same generic profile/task contract. + if ( + knownModel && + (!Array.isArray(profiles) || + !profiles.some( + (profile) => + profile !== null && + typeof profile === 'object' && + Object.prototype.hasOwnProperty.call(profile, 'authoringRecipes'), + )) + ) + continue; if (profiles === undefined) continue; if (!Array.isArray(profiles) || profiles.length > 512) invalid(); for (const rawProfile of profiles as unknown[]) { const profile = object(rawProfile); + const hasOffers = Object.prototype.hasOwnProperty.call(profile, 'authoringRecipes'); + if (knownModel && !hasOffers) continue; const profileId = text(profile.id); if (!selectedIds.has(profileId)) continue; const pipeline = text(profile.pipeline_class); if (profile.public === false || !selected.has(`${pipeline}:${profileId}`)) continue; + if (hasOffers && profile.public !== true) invalid(); if (text(profile.model_type) !== text(model.modelType) || seen.has(profileId)) invalid(); if (profile.public !== undefined && typeof profile.public !== 'boolean') invalid(); seen.add(profileId); const repo = text(profile.default_repo); const inventory = parseWorkflowModelInventory(model, repo); - result.push({ profileId, pipeline, label: text(model.label), repo, ...(inventory ? { inventory } : {}) }); + let offers: Pick< + WorkflowModelDescriptor, + 'authoringRecipes' | 'rawPromptAuthoringRecipes' | 'rawPromptAuthoringChoices' | 'layoutPromptAuthoringChoices' + > = {}; + if (hasOffers) { + const declaredModes = Array.isArray(profile.modes) ? profile.modes : invalid(); + if (!declaredModes.length || declaredModes.length > 64) invalid(); + const modes = declaredModes.map(identifier); + if (new Set(modes).size !== modes.length) invalid(); + const parsed = parseAuthoringRecipeOffers( + profile.authoringRecipes, + [{ id: profileId, pipeline, modes }], + support, + invalid, + ); + offers = { + ...(parsed.recipes.has(profileId) ? { authoringRecipes: parsed.recipes.get(profileId) } : {}), + ...(parsed.rawRecipes.has(profileId) ? { rawPromptAuthoringRecipes: parsed.rawRecipes.get(profileId) } : {}), + ...(parsed.rawChoices.has(profileId) ? { rawPromptAuthoringChoices: parsed.rawChoices.get(profileId) } : {}), + ...(parsed.layoutChoices.has(profileId) + ? { layoutPromptAuthoringChoices: parsed.layoutChoices.get(profileId) } + : {}), + }; + } + result.push({ + profileId, + pipeline, + label: text(model.label), + repo, + ...(inventory ? { inventory } : {}), + ...offers, + }); } } return result; @@ -124,9 +177,22 @@ export function workflowChoices( authoringRecipes?: Readonly>; }>((id) => { const entry = profiles.get(id); - if (entry) - return [{ model: entry.model, profileId: id, label: entry.model.label, repo: entry.profile.default_repo }]; const descriptor = descriptors.find((d) => d.profileId === id && d.pipeline === pipeline.pipelineClass); + if (entry) + return [ + { + model: entry.model, + profileId: id, + label: entry.model.label, + repo: entry.profile.default_repo, + ...(descriptor && + !descriptor.evaluationOnly && + descriptor.repo === entry.profile.default_repo && + descriptor.authoringRecipes + ? { authoringRecipes: descriptor.authoringRecipes } + : {}), + }, + ]; return descriptor ? [{ model: undefined, ...descriptor }] : []; }); if (!matches.length) diff --git a/tests/e2e/studio-mocked/studio-mocked.spec.ts b/tests/e2e/studio-mocked/studio-mocked.spec.ts index e7b72437..ad7add3b 100644 --- a/tests/e2e/studio-mocked/studio-mocked.spec.ts +++ b/tests/e2e/studio-mocked/studio-mocked.spec.ts @@ -10750,12 +10750,27 @@ test('operation authoring fixtures isolate mutations between cached reads', asyn expect(await operationStarterFixtures()).toEqual(expected); }); -async function installOperationAuthoringRoutes(page: Page, exactModel = false, evaluationImage = false) { +async function installOperationAuthoringRoutes( + page: Page, + exactModel = false, + evaluationImage = false, + evaluationEnhancement = false, +) { await installMockRoutes(page); const starters = await operationStarterFixtures(); const evaluation = evaluationImage ? JSON.parse(await fs.readFile(path.join(CLIENT_ROOT, 'tests/fixtures/evaluation-image-authoring.v1.json'), 'utf8')) : null; + const enhancement = evaluationEnhancement + ? JSON.parse( + await fs.readFile( + path.join(CLIENT_ROOT, 'tests/fixtures/evaluation-prompt-enhancement-alternatives.v1.json'), + 'utf8', + ), + ) + : null; + if (enhancement && evaluation) evaluation.evaluationAuthoring = enhancement.evaluationAuthoring; + const enhancementStarters: OperationStarter[] = enhancement?.starters ?? []; const imageSchemas = evaluation ? await imageTemplateSchemas() : null; const operations = [ ...starters.flatMap((s) => s.nodes.map((n) => n.operation)), @@ -10819,6 +10834,10 @@ async function installOperationAuthoringRoutes(page: Page, exactModel = false, e ...Object.fromEntries( (evaluation?.starter.nodes ?? []).map((n: OperationStarter['nodes'][number]) => [n.operation.nodeKey, n.node]), ), + ...Object.fromEntries( + enhancementStarters.flatMap((starter) => starter.nodes.map((n) => [n.operation.nodeKey, n.node])), + ), + ...(enhancement?.registry ?? {}), ...(imageSchemas ? { 'modules.ModularDiffusers.Lora': imageSchemas.registry['modules.ModularDiffusers.Lora']!, @@ -10866,11 +10885,18 @@ async function installOperationAuthoringRoutes(page: Page, exactModel = false, e await page.route('**/operations/starter', (route) => { const selection = route.request().postDataJSON(); const value = structuredClone( - evaluation && + enhancementStarters.find( + (starter) => + starter.pipelineClass === selection.pipelineClass && + starter.task === selection.task && + starter.authoring?.id === selection.authoringRecipeId && + starter.authoring.executionProfileIds.includes(selection.executionProfileId), + ) ?? + (evaluation && selection.executionProfileId === 'flux3-klein-base:modular' && selection.authoringRecipeId === evaluation.starter.authoring.id - ? evaluation.starter - : starters.find((s) => s.pipelineClass === selection.pipelineClass && s.task === selection.task), + ? evaluation.starter + : starters.find((s) => s.pipelineClass === selection.pipelineClass && s.task === selection.task)), ); if (exactModel && value && selection.executionProfileId === 'qwen-image:modular') { const loader = value.nodes.find((n) => n.operation.decomposition === 'loader')!; @@ -10903,6 +10929,120 @@ async function installOperationAuthoringRoutes(page: Page, exactModel = false, e return starters; } +/** Actual source DTOs with no sealed provider; HTTP mocks do not qualify execution. */ +async function installPublicFlux3AuthoringRoutes(page: Page, exactModel = false) { + const standard = await installOperationAuthoringRoutes(page, exactModel); + const fixture = JSON.parse( + await fs.readFile(path.join(CLIENT_ROOT, 'tests/fixtures/public-flux3-missing-provider.v1.json'), 'utf8'), + ); + expect(fixture.activeProvider).toBeNull(); + expect(fixture.starters).toHaveLength(8); + const starters: OperationStarter[] = fixture.starters; + const publicModels = new Set( + fixture.capabilitiesPayload.capabilities.map((value: { modelType: string }) => value.modelType), + ); + await page.unroute('**/model_capabilities**'); + await page.route('**/model_capabilities**', (route) => + route.fulfill({ + json: { + ...fixture.capabilitiesPayload, + capabilities: [ + ...mockStudioExecutionCapabilities().filter((value) => !publicModels.has(value.modelType)), + ...fixture.capabilitiesPayload.capabilities, + ], + operationContracts: [ + ...standard.flatMap((starter) => starter.nodes.map((node) => node.operation)), + ...fixture.capabilitiesPayload.operationContracts, + ], + pipelineSupport: [ + ...[...new Set(standard.map((starter) => starter.pipelineClass))].map((pipelineClass) => ({ + pipelineClass, + coverage: 'local-adapter', + reason: 'Native authoring fixture; execution unqualified', + equivalentTo: [], + upstreamTasks: [], + tasks: standard + .filter((starter) => starter.pipelineClass === pipelineClass) + .map((starter) => ({ + task: starter.task, + execution: 'declared', + decomposition: starter.nodes.some((node) => + ['pipeline', 'integrated'].includes(node.operation.decomposition), + ) + ? 'pipeline' + : 'stages', + operationIds: starter.nodes.map((node) => node.operation.operationId), + executionProfileIds: + exactModel && pipelineClass === 'QwenImageModularPipeline' ? ['qwen-image:modular'] : [], + dependencies: exactModel && pipelineClass === 'QwenImageModularPipeline' ? 'ready' : 'unknown', + runtimeRequirements: + exactModel && pipelineClass === 'QwenImageModularPipeline' + ? [ + { + schemaVersion: 1, + delivery: 'base', + requiredNow: false, + profileIds: [], + executionProfileIds: ['qwen-image:modular'], + state: 'base_satisfied', + reason: 'base_runtime', + }, + ] + : [], + })), + })), + ...fixture.capabilitiesPayload.pipelineSupport, + ], + }, + }), + ); + await page.unroute('**/nodes'); + await page.route('**/nodes', (route) => + route.fulfill({ + json: { + nodes: { + ...Object.fromEntries( + standard.flatMap((starter) => starter.nodes.map((node) => [node.operation.nodeKey, node.node])), + ), + ...fixture.registry, + 'modules.Image.Load': mockRegistry['modules.Image.Load'], + 'modules.Image.Preview': mockGraphQualifiedQwenRegistry['modules.Image.Preview'], + }, + }, + }), + ); + await page.route('**/operations/starter', (route) => { + const selection = route.request().postDataJSON(); + // Preserve the standard profiled routes when adding the exact public + // FLUX3 starters. Cross-family review needs both selectable identities. + if (!publicModels.has(selection.pipelineClass)) return route.fallback(); + const exact = starters.find( + (starter) => + starter.pipelineClass === selection.pipelineClass && + starter.task === selection.task && + starter.authoring?.id === selection.authoringRecipeId && + starter.authoring.executionProfileIds.includes(selection.executionProfileId), + ); + const baseline = + !selection.executionProfileId && !selection.authoringRecipeId + ? standard.find( + (starter) => starter.pipelineClass === selection.pipelineClass && starter.task === selection.task, + ) + : undefined; + return route.fulfill({ + status: exact || baseline ? 200 : 400, + json: exact ?? baseline ?? { error: 'Unknown exact public selection' }, + }); + }); + await page.unroute('**/runtime/optional-runtimes**'); + await page.route('**/runtime/optional-runtimes**', (route) => + route.request().method() === 'GET' + ? route.fulfill({ json: fixture.optionalRuntimeCatalog }) + : route.fulfill({ status: 409, json: { error: 'Source-only fixture cannot install or activate a runtime.' } }), + ); + return fixture; +} + async function selectOperationPipeline(page: Page, pipeline: string, task?: string) { const panel = page.getByRole('region', { name: 'Diffusers operations' }); await panel.getByLabel('Operation pipeline').click(); @@ -11595,6 +11735,594 @@ test('normal New T2I discovers declared evaluation models in Auto without changi expect(executionRequests).toEqual([]); }); +for (const variant of ['flux3-klein', 'flux3-klein-base'] as const) + test(`normal New T2I selects public ${variant} before provider setup and keeps explicit PUP choices`, async ({ + page, + }) => { + await page.setViewportSize({ width: 1920, height: 1200 }); + await ensureFrontend(); + const fixture = await installPublicFlux3AuthoringRoutes(page); + await page.routeWebSocket('**/ws**', (socket) => + socket.send( + JSON.stringify({ + type: 'welcome', + sid: new URL(socket.url()).searchParams.get('sid'), + instance: 'mock', + current: null, + queued: {}, + }), + ), + ); + const forbiddenPosts: string[] = []; + const selections: Record[] = []; + page.on('request', (request) => { + const pathname = new URL(request.url()).pathname; + if ( + request.method() === 'POST' && + (/\/(?:graph|execute|install)(?:\/|$)/u.test(pathname) || pathname.startsWith('/runtime/optional-runtimes')) + ) + forbiddenPosts.push(pathname); + if (request.method() === 'POST' && pathname === '/operations/starter') selections.push(request.postDataJSON()); + }); + await page.goto(FRONTEND_URL, { waitUntil: 'domcontentloaded' }); + const launcher = page.getByRole('dialog', { name: 'Workflows', exact: true }); + await launcher.getByTestId('workflow-task-text_to_image').click(); + await expect(launcher).toHaveCount(0); + await page.waitForFunction(() => Boolean(window.__MODIFF_E2E__?.getState().studio.workflowCanvasHydrated)); + await expect(page.getByRole('button', { name: 'Connected', exact: true })).toBeVisible(); + expect(await page.evaluate(() => window.__MODIFF_E2E__!.getState().studio.form.resourceMode)).toBe('auto'); + const setupId = await page.evaluate( + () => window.__MODIFF_E2E__!.getState().flow.nodes.find((node) => node.label === 'Model Setup')!.id, + ); + await page + .locator(`.react-flow__node[data-id="${setupId}"]`) + .getByRole('button', { name: 'Choose model', exact: true }) + .click(); + const picker = page.getByRole('dialog', { name: 'Choose model for Load Models', exact: true }); + await picker.getByRole('searchbox', { name: 'Search compatible models' }).fill('FLUX3'); + const choices = picker.getByRole('button').filter({ hasText: 'black-forest-labs/flux-3-image-klein' }); + await expect(choices).toHaveCount(2); + for (const choice of await choices.all()) { + await expect(choice).toBeEnabled(); + await expect(choice).toContainText('Runtime setup required'); + await expect(choice).not.toContainText('Custom memory required'); + } + const profileId = `${variant}:official-provider:v1`; + const capability = fixture.capabilitiesPayload.capabilities.find( + (model: { executionProfiles: Array<{ id: string }> }) => + model.executionProfiles.some((profile) => profile.id === profileId), + ); + const profile = capability.executionProfiles.find((value: { id: string }) => value.id === profileId); + expect(profile.public).toBe(true); + expect(profile.optionalRuntimeRequirement.requiredNow).toBe(true); + expect(profile.optionalRuntimeRequirement.state).not.toBe('active'); + const prefix = `${variant}:official:text-to-image:prompt-preview-`; + const repo = `black-forest-labs/flux-3-image-${variant.replace('flux3-', '')}`; + await picker + .getByRole('button') + .filter({ has: page.getByText(repo, { exact: true }) }) + .click(); + await picker.getByRole('button', { name: 'Apply model change', exact: true }).click(); + await expect(picker).toHaveCount(0); + expect(selections[0]).toMatchObject({ + task: 'text_to_image', + executionProfileId: profileId, + authoringRecipeId: `${prefix}append-fp32:v1`, + }); + const read = () => + page.evaluate(async () => { + const raw = window.__MODIFF_E2E__!.exportWorkflowGraph(); + const { expandFlowExecutionGraph } = await import('/src/stores/useFlowStore.ts'); + const graph = expandFlowExecutionGraph(raw.nodes, raw.edges); + const owner = graph.nodes.find((node) => node.data.operationAuthoring?.ancillaryParent)!; + const identity = owner.data.operationAuthoring!.ancillaryParent!.parent; + const binding = owner.data.operationAuthoring!.ancillaryBindings?.[0]; + const provider = binding && graph.nodes.find((node) => node.id === binding.roleNodes.provider); + return { + identity, + binding: binding?.contractId ?? null, + prompt: owner.data.params.prompt!.value ?? owner.data.params.prompt!.default, + layout: + owner.data.params.layout_conditioning!.value ?? owner.data.params.layout_conditioning!.default ?? null, + provider: provider + ? { + dtype: provider.data.params.dtype!.value ?? provider.data.params.dtype!.default, + quantization: + provider.data.params.quantization_mode!.value ?? provider.data.params.quantization_mode!.default, + } + : null, + }; + }); + const selected = await read(); + expect(selected.identity).toMatchObject({ + task: 'text_to_image', + executionProfileId: profileId, + authoringRecipeId: `${prefix}append-fp32:v1`, + }); + expect(selected.layout).toBeNull(); + expect(selected.binding).toBeNull(); + expect(await page.evaluate(() => window.__MODIFF_E2E__!.getState().studio.form.resourceMode)).toBe('auto'); + const mode = page.getByRole('button', { name: 'Prompt enhancement mode', exact: true }); + await mode.click(); + for (const label of [ + 'Raw wording: FP32', + 'Raw wording: BF16 + NF4', + 'Append wording: preserve authored layout', + 'Generate constrained table: FP32 (Expert)', + ]) + await expect(page.getByRole('option', { name: label, exact: true })).toBeVisible(); + await page.getByRole('option', { name: 'Raw wording: BF16 + NF4', exact: true }).click(); + expect(await read()).toEqual(selected); + await page.getByRole('button', { name: 'Enable enhancement', exact: true }).click(); + await expect(page.getByRole('button', { name: 'Preview', exact: true })).toBeVisible(); + const enabled = await read(); + const nf4Recipe = (fixture.starters as OperationStarter[]).find( + (starter) => starter.authoring?.id === `${prefix}nf4:v1`, + )!.authoring!; + expect(enabled.identity).toEqual({ + ...nf4Recipe.ancillaryOperations![0]!.parent, + authoringContentHash: nf4Recipe.contentHash, + }); + expect(enabled.binding).toBe(`${prefix}nf4:v1:preview`); + expect(enabled.provider).toEqual({ dtype: 'bfloat16', quantization: 'bnb_4bit' }); + expect(enabled.prompt).toBe(selected.prompt); + expect(enabled.layout).toBeNull(); + await page.getByRole('button', { name: 'Disable', exact: true }).click(); + await expect.poll(read).toEqual({ ...enabled, binding: null, provider: null }); + const disabled = await read(); + await mode.click(); + await page.getByRole('option', { name: 'Generate constrained table: FP32 (Expert)', exact: true }).click(); + await page.getByRole('button', { name: 'Enable enhancement', exact: true }).click(); + await expect( + page + .getByRole('alert') + .filter({ hasText: 'the selected layout enhancement requires authored regions. Your prompt is unchanged.' }), + ).toBeVisible(); + expect(await read()).toEqual(disabled); + expect(forbiddenPosts).toEqual([]); + }); + +/** Read-only projection of the ordinary graph; no form/store setters. */ +async function publicFlux3FormatSnapshot(page: Page) { + return page.evaluate(async () => { + const exported = window.__MODIFF_E2E__!.exportWorkflowGraph(); + const { expandFlowExecutionGraph } = await import('/src/stores/useFlowStore.ts'); + const { runtimeOptionValues } = await import('/src/studio/runtimeOptions.ts'); + const graph = expandFlowExecutionGraph(exported.nodes, exported.edges); + const owners = graph.nodes.filter( + (node) => node.data.module === 'modules.ModularDiffusers' && node.data.action === 'ModelsLoader', + ); + if (owners.length !== 1) throw new Error('Expected one ordinary model owner.'); + const owner = owners[0]!; + const value = (field: string) => owner.data.params[field]?.value ?? owner.data.params[field]?.default; + const parentOwners = graph.nodes.filter((node) => node.data.operationAuthoring?.ancillaryParent); + if (parentOwners.length !== 1) throw new Error('Expected one declared public prompt owner.'); + return { + selection: { + ownerId: owner.id, + pipelineClass: value('model_type'), + repository: value('repo_id'), + revision: value('revision'), + dtype: value('dtype'), + weightFormat: value('weight_format'), + options: runtimeOptionValues(owner.data.params.weight_format?.options), + quantConfigConnected: graph.edges.some( + (edge) => edge.target === owner.id && edge.targetHandle === 'quant_config', + ), + }, + parent: parentOwners[0]!.data.operationAuthoring!.ancillaryParent!.parent, + resourceMode: window.__MODIFF_E2E__!.getState().studio.form.resourceMode, + semanticGraph: { + nodes: graph.nodes + .map((node) => ({ + id: node.id, + type: node.type, + module: node.data.module, + action: node.data.action, + label: node.data.label, + params: node.data.params, + operationAuthoring: node.data.operationAuthoring ?? null, + studioRole: node.data.studioRole ?? null, + })) + .sort((left, right) => left.id.localeCompare(right.id)), + edges: graph.edges + .map((edge) => [ + edge.source, + edge.sourceHandle ?? null, + edge.target, + edge.targetHandle ?? null, + edge.type ?? null, + ]) + .sort((left, right) => JSON.stringify(left).localeCompare(JSON.stringify(right))), + }, + }; + }); +} + +async function publicFlux3FormatSetup(page: Page) { + const id = await page.evaluate(() => { + const nodes = window.__MODIFF_E2E__!.getState().flow.nodes.filter((node) => node.label === 'Model Setup'); + if (nodes.length !== 1) throw new Error('Expected the ordinary Model Setup stage.'); + return nodes[0]!.id; + }); + return page.locator(`.react-flow__node[data-id="${id}"]`); +} + +async function publicFlux3FormatControl(page: Page) { + const setup = await publicFlux3FormatSetup(page); + const format = setup.getByLabel('Weight Format', { exact: true }); + if (!(await format.isVisible())) await setup.getByRole('button', { name: 'Advanced', exact: true }).click(); + await expect(format).toBeVisible(); + return format; +} + +/** Existing mocked HTTP/Save routes, real captured schema, normal UI edits. */ +async function openPublicFlux3Fp8rWorkflow(page: Page) { + await page.setViewportSize({ width: 1920, height: 1200 }); + await ensureFrontend(); + const fixture = await installPublicFlux3AuthoringRoutes(page, true); + const comparisons = JSON.parse( + await fs.readFile(path.join(CLIENT_ROOT, 'tests/fixtures/public-flux3-migration-comparisons.v1.json'), 'utf8'), + ); + expect(comparisons.schemaVersion).toBe(1); + expect(comparisons.activeProvider).toBeNull(); + expect(comparisons.comparisons).toHaveLength(3); + expect( + comparisons.comparisons.map((row: { selection: { pipelineClass: string; task: string } }) => row.selection), + ).toEqual([ + { pipelineClass: 'Flux3DistilledModularPipeline', task: 'text_to_image' }, + { pipelineClass: 'Flux3ModularPipeline', task: 'text_to_image' }, + { pipelineClass: 'QwenImageModularPipeline', task: 'text_to_image' }, + ]); + // Only these actual unprofiled comparison requests supplement the existing + // strict public routes. No private starter or profile is relabelled. + await page.route('**/operations/starter', (route) => { + const selection = route.request().postDataJSON(); + if (Object.keys(selection).sort().join(',') !== 'pipelineClass,task') return route.fallback(); + const row = comparisons.comparisons.find( + (item: { selection: { pipelineClass: string; task: string } }) => + item.selection.pipelineClass === selection.pipelineClass && item.selection.task === selection.task, + ); + return row ? route.fulfill({ json: row.starter }) : route.fallback(); + }); + await page.routeWebSocket('**/ws**', (socket) => + socket.send( + JSON.stringify({ + type: 'welcome', + sid: new URL(socket.url()).searchParams.get('sid'), + instance: 'mock', + current: null, + queued: {}, + }), + ), + ); + const forbiddenPosts: string[] = []; + page.on('request', (request) => { + const pathname = new URL(request.url()).pathname; + if ( + request.method() === 'POST' && + (/\/(?:graph|execute|install)(?:\/|$)/u.test(pathname) || pathname.startsWith('/runtime/optional-runtimes')) + ) + forbiddenPosts.push(pathname); + }); + await page.goto(FRONTEND_URL, { waitUntil: 'domcontentloaded' }); + const launcher = page.getByRole('dialog', { name: 'Workflows', exact: true }); + await launcher.getByTestId('workflow-task-text_to_image').click(); + await expect(launcher).toHaveCount(0); + await page.waitForFunction(() => Boolean(window.__MODIFF_E2E__?.getState().studio.workflowCanvasHydrated)); + await expect(page.getByRole('button', { name: 'Connected', exact: true })).toBeVisible(); + const policy = page.getByTestId('topbar-resource-policy'); + await expect(policy).toHaveAttribute('aria-label', 'Memory policy: Automatic. Click to switch.'); + await policy.click(); + await expect(policy).toHaveAttribute('aria-label', 'Memory policy: Custom. Click to switch.'); + await (await publicFlux3FormatSetup(page)).getByRole('button', { name: 'Choose model', exact: true }).click(); + const picker = page.getByRole('dialog', { name: 'Choose model for Load Models', exact: true }); + await picker.getByRole('searchbox', { name: 'Search compatible models' }).fill('FLUX3'); + await picker + .getByRole('button') + .filter({ has: page.getByText('black-forest-labs/flux-3-image-klein', { exact: true }) }) + .click(); + await picker.getByRole('button', { name: 'Apply model change', exact: true }).click(); + await expect(picker).toHaveCount(0); + const format = await publicFlux3FormatControl(page); + await format.click(); + for (const label of ['native', 'fp8r', 'nvfp4']) + await expect(page.getByRole('option', { name: label, exact: true })).toBeVisible(); + await page.getByRole('option', { name: 'fp8r', exact: true }).click(); + await expect(format).toHaveText('fp8r'); + await expect.poll(async () => (await publicFlux3FormatSnapshot(page)).selection.weightFormat).toBe('fp8r'); + await waitForOperationGraphToSettle(page); + return { fixture, forbiddenPosts }; +} + +test('ordinary public FLUX3 FP8r control survives Save and cold reload with its exact model identity', async ({ + page, +}) => { + const { fixture, forbiddenPosts } = await openPublicFlux3Fp8rWorkflow(page); + const expected = await publicFlux3FormatSnapshot(page); + expect(expected.selection).toMatchObject({ + pipelineClass: 'Flux3DistilledModularPipeline', + repository: { source: 'hub', value: 'black-forest-labs/flux-3-image-klein' }, + revision: '8454017f9ebaada30c998fccd9f67a80c7580f68', + dtype: 'bfloat16', + weightFormat: 'fp8r', + options: ['native', 'fp8r', 'nvfp4'], + quantConfigConnected: false, + }); + expect(expected.parent.executionProfileId).toBe('flux3-klein:official-provider:v1'); + expect(expected.resourceMode).toBe('expert'); + expect(fixture.activeProvider).toBeNull(); + await page.getByTestId('topbar-save-workflow').click(); + await expect + .poll(() => + page.evaluate(() => { + const state = window.__MODIFF_E2E__!.getState().studio; + const tab = state.workflowTabs.find((value) => value.id === state.activeWorkflowTabId)!; + return { dirty: tab.dirty, saved: tab.backendRevision > 0 }; + }), + ) + .toEqual({ dirty: false, saved: true }); + await page.reload({ waitUntil: 'domcontentloaded' }); + await page.waitForFunction(() => Boolean(window.__MODIFF_E2E__?.getState().studio.workflowCanvasHydrated)); + await expect(page.getByTestId('startup-workspace-gate')).toHaveCount(0); + await expect(page.getByRole('button', { name: 'Connected', exact: true })).toBeVisible(); + await waitForOperationGraphToSettle(page); + const restored = await publicFlux3FormatSnapshot(page); + expect(restored.selection).toEqual(expected.selection); + expect(restored.parent).toEqual(expected.parent); + expect(restored.resourceMode).toBe('expert'); + await expect(await publicFlux3FormatControl(page)).toHaveText('fp8r'); + expect(forbiddenPosts).toEqual([]); +}); + +test('ordinary FP8r model changes preserve a compatible Base format and cancelled cross-family review is atomic', async ({ + page, +}) => { + const { forbiddenPosts } = await openPublicFlux3Fp8rWorkflow(page); + await (await publicFlux3FormatSetup(page)).getByRole('button', { name: 'Choose model', exact: true }).click(); + const picker = page.getByRole('dialog', { name: 'Choose model for Load Models', exact: true }); + await picker.getByRole('searchbox', { name: 'Search compatible models' }).fill('FLUX3 base'); + await picker + .getByRole('button') + .filter({ has: page.getByText('black-forest-labs/flux-3-image-klein-base', { exact: true }) }) + .click(); + await picker.getByRole('button', { name: 'Apply model change', exact: true }).click(); + await expect(picker).toHaveCount(0); + await waitForOperationGraphToSettle(page); + const base = await publicFlux3FormatSnapshot(page); + expect(base.selection).toMatchObject({ + pipelineClass: 'Flux3ModularPipeline', + repository: { source: 'hub', value: 'black-forest-labs/flux-3-image-klein-base' }, + revision: '1469d27cfb9bb1bd81d3a93f5a023b39dbf136e4', + dtype: 'bfloat16', + weightFormat: 'fp8r', + options: ['native', 'fp8r', 'nvfp4'], + quantConfigConnected: false, + }); + expect(base.parent.executionProfileId).toBe('flux3-klein-base:official-provider:v1'); + await expect(await publicFlux3FormatControl(page)).toHaveText('fp8r'); + const beforeReview = await publicFlux3FormatSnapshot(page); + await (await publicFlux3FormatSetup(page)).getByRole('button', { name: 'Choose model', exact: true }).click(); + await picker.getByRole('searchbox', { name: 'Search compatible models' }).fill('Qwen/Qwen-Image-2512'); + const qwenRequest = page.waitForRequest( + (request) => + request.url().endsWith('/operations/starter') && + request.method() === 'POST' && + request.postDataJSON().executionProfileId === 'qwen-image:modular', + ); + await picker + .getByRole('button') + .filter({ has: page.getByText('Qwen/Qwen-Image-2512', { exact: true }) }) + .click(); + expect((await qwenRequest).postDataJSON()).toEqual({ + pipelineClass: 'QwenImageModularPipeline', + task: 'text_to_image', + executionProfileId: 'qwen-image:modular', + }); + const review = picker.getByTestId('model-selection-review'); + await expect(review).toBeVisible(); + await review.getByRole('button', { name: /^Needs attention \(/u }).click(); + await expect(review).toContainText(/Weight Format cannot be applied.*fp8r.*remains available in Implementation/u); + expect((await publicFlux3FormatSnapshot(page)).semanticGraph).toEqual(beforeReview.semanticGraph); + await review.getByRole('button', { name: 'Keep current model', exact: true }).click(); + await expect(review).toHaveCount(0); + await page.keyboard.press('Escape'); + await expect(picker).toHaveCount(0); + await waitForOperationGraphToSettle(page); + expect(await publicFlux3FormatSnapshot(page)).toEqual(beforeReview); + expect(forbiddenPosts).toEqual([]); +}); + +for (const task of ['text_to_image', 'edit_image'] as const) + test(`normal New ${task} enables declared raw PUP and preserves authored layout through Disable, Undo and cold reload`, async ({ + page, + }) => { + await page.setViewportSize({ width: 1920, height: 1200 }); + await ensureFrontend(); + await installOperationAuthoringRoutes(page, true, true, true); + // Enable uses the ordinary live-worker connection guard. Keep this mocked + // worker connected across cold reloads; HTTP metadata alone is insufficient. + await page.routeWebSocket('**/ws**', (socket) => { + socket.send( + JSON.stringify({ + type: 'welcome', + sid: new URL(socket.url()).searchParams.get('sid'), + instance: 'mock', + current: null, + queued: {}, + }), + ); + }); + const forbiddenPosts: string[] = []; + page.on('request', (request) => { + const pathname = new URL(request.url()).pathname; + if (request.method() === 'POST' && /\/(?:graph|execute|install)(?:\/|$)/u.test(pathname)) + forbiddenPosts.push(pathname); + }); + await page.goto(FRONTEND_URL, { waitUntil: 'domcontentloaded' }); + const launcher = page.getByRole('dialog', { name: 'Workflows', exact: true }); + await launcher.getByTestId(`workflow-task-${task}`).click(); + await expect(launcher).toHaveCount(0); + await page.waitForFunction(() => Boolean(window.__MODIFF_E2E__?.getState().studio.workflowCanvasHydrated)); + await expect(page.getByRole('button', { name: 'Connected', exact: true })).toBeVisible(); + const setupId = await page.evaluate( + () => window.__MODIFF_E2E__!.getState().flow.nodes.find((node) => node.label === 'Model Setup')!.id, + ); + await page + .locator(`.react-flow__node[data-id="${setupId}"]`) + .getByRole('button', { name: 'Choose model', exact: true }) + .click(); + // Both task starters use the same ordinary picker and explicit Custom action. + const actualPicker = page + .getByRole('dialog') + .filter({ has: page.getByRole('searchbox', { name: 'Search compatible models' }) }); + await expect(actualPicker).toHaveCount(1); + await actualPicker.getByRole('button', { name: 'Use Custom memory', exact: true }).click(); + await actualPicker.getByRole('searchbox', { name: 'Search compatible models' }).fill('FLUX3 base'); + await actualPicker.getByRole('button').filter({ hasText: 'black-forest-labs/flux-3-image-klein-base' }).click(); + await actualPicker.getByRole('button', { name: 'Apply model change', exact: true }).click(); + await expect(actualPicker).toHaveCount(0); + const read = () => + page.evaluate(async () => { + const raw = window.__MODIFF_E2E__!.exportWorkflowGraph(); + const { expandFlowExecutionGraph } = await import('/src/stores/useFlowStore.ts'); + const graph = expandFlowExecutionGraph(raw.nodes, raw.edges); + const owner = graph.nodes.find((node) => node.data.operationAuthoring?.ancillaryParent)!; + const { parseLayoutConditioning } = await import('/src/studio/layoutConditioning.ts'); + const parentIds = new Set(Object.values(owner.data.operationAuthoring!.ancillaryParent!.parentRoleNodes)); + const binding = owner.data.operationAuthoring!.ancillaryBindings?.[0]; + const request = binding && graph.nodes.find((node) => node.id === binding.roleNodes.proposal); + const provider = binding && graph.nodes.find((node) => node.id === binding.roleNodes.provider); + const parentEdges = graph.edges + .filter((edge) => parentIds.has(edge.source) && parentIds.has(edge.target)) + .map((edge) => [edge.source, edge.sourceHandle, edge.target, edge.targetHandle]); + if ( + new Set(parentEdges.map(([, , target, targetHandle]) => JSON.stringify([target, targetHandle]))).size !== + parentEdges.length + ) + throw new Error('The parent graph has multiple wires driving the same input.'); + // Regrouping may reorder independent wires. Retain every full tuple + // and its multiplicity while comparing semantic connections exactly. + parentEdges.sort((left, right) => JSON.stringify(left).localeCompare(JSON.stringify(right))); + return { + parentId: owner.data.operationAuthoring!.ancillaryParent!.parent.authoringRecipeId, + contractId: binding?.contractId ?? null, + prompt: owner.data.params.prompt!.value ?? owner.data.params.prompt!.default, + layout: parseLayoutConditioning( + owner.data.params.layout_conditioning!.value ?? owner.data.params.layout_conditioning!.default ?? null, + ), + requestPrompt: request?.data.params.prompt?.value ?? null, + requestLayout: request?.data.params.layout_conditioning?.value ?? null, + provider: provider + ? { + dtype: provider.data.params.dtype!.value ?? provider.data.params.dtype!.default, + quantization: + provider.data.params.quantization_mode!.value ?? provider.data.params.quantization_mode!.default, + } + : null, + parentEdges, + }; + }); + const raw = await read(); + const saveAndColdReload = async (expected: Awaited>) => { + await page.keyboard.press('Control+s'); + await expect + .poll(() => + page.evaluate(() => { + const state = window.__MODIFF_E2E__!.getState().studio; + const tab = state.workflowTabs.find((tab) => tab.id === state.activeWorkflowTabId)!; + return { dirty: tab.dirty, saved: tab.backendRevision > 0 }; + }), + ) + .toEqual({ dirty: false, saved: true }); + await page.reload({ waitUntil: 'domcontentloaded' }); + await page.waitForFunction(() => Boolean(window.__MODIFF_E2E__?.getState().studio.workflowCanvasHydrated)); + await expect(page.getByTestId('startup-workspace-gate')).toHaveCount(0); + await expect(page.getByRole('button', { name: 'Connected', exact: true })).toBeVisible(); + await expect.poll(read).toEqual(expected); + await expect(page.getByRole('button', { name: 'Preview', exact: true })).toBeVisible(); + await expect(page.getByRole('button', { name: 'Preview', exact: true })).toBeEnabled(); + }; + expect(raw.layout).toBeNull(); + expect(raw.contractId).toBeNull(); + await expect(page.getByRole('button', { name: 'Enable enhancement', exact: true })).toBeEnabled(); + await page.getByRole('button', { name: 'Enable enhancement', exact: true }).click(); + await expect(page.getByRole('button', { name: 'Preview', exact: true })).toBeVisible(); + const enabled = await read(); + expect(enabled.parentId).toBe( + `flux3-klein-base:${task === 'text_to_image' ? 'text-to-image:prompt-preview-fp32' : 'edit-image:prompt-preview'}-authoring:v1`, + ); + expect(enabled.contractId).toBe(`${enabled.parentId}:preview`); + expect(enabled.prompt).toBe(raw.prompt); + expect(enabled.requestPrompt).toBe(raw.prompt); + expect(enabled.layout).toBeNull(); + expect(enabled.requestLayout).toBeNull(); + expect(enabled.parentEdges).toEqual(raw.parentEdges); + await saveAndColdReload(enabled); + await page.getByRole('button', { name: 'Disable', exact: true }).click(); + await expect(page.getByRole('button', { name: 'Enable enhancement', exact: true })).toBeVisible(); + if (task === 'text_to_image') { + const choice = page.getByRole('button', { name: 'Raw prompt enhancement', exact: true }); + await choice.click(); + await page.getByRole('option', { name: 'Raw wording: BF16 + NF4', exact: true }).click(); + await page.getByRole('button', { name: 'Selection details', exact: true }).click(); + await expect( + page.getByText('Recipe: flux3-klein-base:text-to-image:prompt-preview-authoring:v1', { exact: true }), + ).toBeVisible(); + const beforeChoice = await read(); + expect(beforeChoice.contractId).toBeNull(); + expect(beforeChoice.prompt).toBe(raw.prompt); + expect(beforeChoice.parentEdges).toEqual(raw.parentEdges); + await page.getByRole('button', { name: 'Enable enhancement', exact: true }).click(); + await expect(page.getByRole('button', { name: 'Preview', exact: true })).toBeVisible(); + const nf4 = await read(); + expect(nf4.parentId).toBe('flux3-klein-base:text-to-image:prompt-preview-authoring:v1'); + expect(nf4.provider).toEqual({ dtype: 'bfloat16', quantization: 'bnb_4bit' }); + expect(nf4.prompt).toBe(raw.prompt); + expect(nf4.layout).toBeNull(); + expect(nf4.parentEdges).toEqual(raw.parentEdges); + await saveAndColdReload(nf4); + await page.getByRole('button', { name: 'Disable', exact: true }).click(); + await expect(choice).toContainText('Raw wording: BF16 + NF4'); + } + await page.getByRole('radio', { name: 'Structured layout', exact: true }).click(); + const empty = await read(); + await page.getByRole('button', { name: 'Enable enhancement', exact: true }).click(); + await expect( + page.getByRole('alert').filter({ hasText: 'add authored regions or select Raw layout' }), + ).toBeVisible(); + expect(await read()).toEqual(empty); + await page.getByRole('button', { name: 'Add region', exact: true }).click(); + await page.getByLabel('Region description', { exact: true }).fill(' Authored copper lantern.\n'); + await page.getByRole('button', { name: 'Apply region', exact: true }).click(); + const authored = await read(); + expect(authored.layout!.regions).toHaveLength(1); + if (task === 'text_to_image') { + await page.getByRole('button', { name: 'Enable enhancement', exact: true }).click(); + await expect(page.getByRole('alert').filter({ hasText: 'requires Raw prompt mode' })).toBeVisible(); + expect(await read()).toEqual(authored); + await page.getByRole('button', { name: 'Raw prompt enhancement', exact: true }).click(); + await page.getByRole('option', { name: 'Match current layout', exact: true }).click(); + } + await page.getByRole('button', { name: 'Enable enhancement', exact: true }).click(); + await expect(page.getByRole('button', { name: 'Preview', exact: true })).toBeVisible(); + const appended = await read(); + expect(appended.parentId).toBe(raw.parentId); + expect(appended.contractId).toBe(`${raw.parentId}:preview`); + expect(appended.prompt).toBe(authored.prompt); + expect(appended.layout).toEqual(authored.layout); + expect(appended.requestLayout).toEqual(authored.layout); + expect(appended.parentEdges).toEqual(raw.parentEdges); + await page.locator('.react-flow__pane').click({ position: { x: 30, y: 120 } }); + await page.keyboard.press('Control+z'); + await expect.poll(read).toEqual(authored); + await page.keyboard.press('Control+Shift+z'); + await expect.poll(read).toEqual(appended); + await saveAndColdReload(appended); + expect(forbiddenPosts).toEqual([]); + await page.screenshot({ path: test.info().outputPath(`normal-raw-pup-${task}.png`), animations: 'disabled' }); + }); + for (const workspace of ['expert'] as const) { test(`${workspace} loader inspector changes its own model and task without library selection`, async ({ page }) => { page.setDefaultTimeout(15_000); @@ -21562,7 +22290,7 @@ test('graph field controls commit without moving or scrolling nodes and preserve { nodeId: ids.generate }, ), ) - .toBe('7'); + .toBe(7); const graphAfterCommit = await page.evaluate(() => window.__MODIFF_E2E__!.exportWorkflowGraph()); expect(graphAfterCommit.nodes.find((node) => node.id === ids.generate)!.position).toEqual(initialGeneratePosition); @@ -21603,7 +22331,7 @@ test('graph field controls commit without moving or scrolling nodes and preserve ?.value, { nodeId: ids.generate }, ), - ).toBe('7'); + ).toBe(7); await page.keyboard.press('Control+z'); await expect @@ -21619,7 +22347,7 @@ test('graph field controls commit without moving or scrolling nodes and preserve ?.value, { nodeId: ids.generate }, ), - ).toBe('7'); + ).toBe(7); await page.keyboard.press('Control+Shift+z'); await expect @@ -21635,7 +22363,7 @@ test('graph field controls commit without moving or scrolling nodes and preserve ?.value, { nodeId: ids.generate }, ), - ).toBe('7'); + ).toBe(7); }); test('mocked dynamic node definitions update node and field metadata without value changes', async ({ page }) => { @@ -32018,20 +32746,20 @@ test('Model Setup adapter dialog inserts only populated immutable rows and add, await dialog.getByRole('button', { name: 'Add adapter', exact: true }).click(); await expect(dialog).toHaveCount(0); await expect.poll(orderedModels).toEqual(['review/first-adapter', 'review/second-adapter']); - await expect.poll(orderedScales).toEqual(['0.8', '0.35']); + await expect.poll(orderedScales).toEqual([0.8, 0.35]); const secondScale = node.getByRole('region', { name: 'Adapter 2', exact: true }).getByLabel('Scale', { exact: true }); await secondScale.fill('0.355'); await secondScale.press('Tab'); - await expect.poll(orderedScales).toEqual(['0.8', '0.355']); + await expect.poll(orderedScales).toEqual([0.8, 0.355]); await secondScale.fill('0.35'); await secondScale.press('Tab'); - await expect.poll(orderedScales).toEqual(['0.8', '0.35']); + await expect.poll(orderedScales).toEqual([0.8, 0.35]); await node .getByRole('region', { name: 'Adapter 2', exact: true }) .getByRole('button', { name: 'Move up', exact: true }) .click(); await expect.poll(orderedModels).toEqual(['review/second-adapter', 'review/first-adapter']); - await expect.poll(orderedScales).toEqual(['0.35', '0.8']); + await expect.poll(orderedScales).toEqual([0.35, 0.8]); await node .getByRole('region', { name: 'Adapter 1', exact: true }) .getByRole('button', { name: 'Remove', exact: true }) @@ -32044,7 +32772,7 @@ test('Model Setup adapter dialog inserts only populated immutable rows and add, await expect(node).toBeVisible(); await expect.poll(orderedModels).toEqual(['review/second-adapter', 'review/first-adapter']); expect((await graph()).nodes).toHaveLength(4); - await expect.poll(orderedScales).toEqual(['0.35', '0.8']); + await expect.poll(orderedScales).toEqual([0.35, 0.8]); await expect( node.getByRole('region', { name: 'Adapter 1', exact: true }).getByLabel('Scale', { exact: true }), ).toHaveValue('0.35'); @@ -32420,6 +33148,22 @@ test('ordinary numeric fields preserve imported and typed float precision throug tiny: { label: 'Tiny float', type: 'float', display: 'number', value: -1.25e-7, step: 1e-8 }, ultra: { label: 'Ultra small float', type: 'float', display: 'number', value: 1e-120, step: 0.1 }, integer: { label: 'Integer', type: 'int', display: 'number', value: 4, default: 3, min: 1, max: 6 }, + max_input_tokens: { label: 'Input Token Limit', type: 'int', default: 32768, min: 1, max: 32768 }, + max_image_pixels: { + label: 'Reference Pixel Limit', + type: 'int', + default: 16777216, + min: 1, + max: 16777216, + }, + enhancement_max_new_tokens: { + label: 'Enhancement Token Limit', + type: 'int', + default: 3584, + min: 1, + max: 3584, + }, + min_new_tokens: { label: 'Minimum Token Limit', type: 'int', default: 1, min: 0, max: 3584 }, }, }, }, @@ -32453,26 +33197,46 @@ test('ordinary numeric fields preserve imported and typed float precision throug await input.press('Tab'); } expect(await values()).toMatchObject({ - stepped: '0.35', - padded: '16.0', - whole_step: '1.5', - unstepped: '0.125', - tiny: '-1.25e-7', - ultra: '1e-120', + stepped: 0.35, + padded: 16, + whole_step: 1.5, + unstepped: 0.125, + tiny: -1.25e-7, + ultra: 1e-120, + }); + for (const [label, value] of [ + ['Input Token Limit', '4096'], + ['Reference Pixel Limit', '262144'], + ['Enhancement Token Limit', '256'], + ['Minimum Token Limit', '0'], + ] as const) { + const input = node.getByLabel(label, { exact: true }); + await input.fill(value); + await input.press('Tab'); + } + expect(await values()).toMatchObject({ + max_input_tokens: 4096, + max_image_pixels: 262144, + enhancement_max_new_tokens: 256, + min_new_tokens: 0, }); expect(Number((await values()).padded)).toBe(16); await node.getByRole('button', { name: 'Increase Stepped float', exact: true }).click(); await expect(stepped).toHaveValue('0.45'); + expect((await values()).stepped).toBe(0.45); await node.getByRole('button', { name: 'Decrease Stepped float', exact: true }).click(); await expect(stepped).toHaveValue('0.35'); + expect((await values()).stepped).toBe(0.35); await stepped.focus(); await stepped.press('ArrowDown'); await stepped.press('Enter'); await expect(stepped).toHaveValue('0.25'); + expect((await values()).stepped).toBe(0.25); await stepped.focus(); await stepped.press('ArrowUp'); await stepped.press('Tab'); await expect(stepped).toHaveValue('0.35'); + expect((await values()).stepped).toBe(0.35); await node.getByRole('button', { name: 'Increase Tiny float', exact: true }).click(); await expect(tiny).toHaveValue('-1.15e-7'); await node.getByRole('button', { name: 'Decrease Tiny float', exact: true }).click(); @@ -32510,7 +33274,7 @@ test('ordinary numeric fields preserve imported and typed float precision throug await page.evaluate(async () => (await import('/src/stores/useFlowStore.ts')).useFlowStore.getState().resetHistory()); await stepped.fill('0.65'); await stepped.press('Tab'); - await expect.poll(values).toMatchObject({ stepped: '0.65' }); + await expect.poll(values).toMatchObject({ stepped: 0.65 }); await page.locator('.react-flow__pane').click({ position: { x: 40, y: 140 } }); await page.keyboard.press('Control+z'); await expect(stepped).toHaveValue('0.35'); @@ -32777,7 +33541,7 @@ test('optional Prepare Mask keeps the exact outpaint source, canvas, mask and ge await feather.press('Enter'); await expect(feather).toHaveValue('0'); const edited = await optionalStageApi(page); - expect(edited['modules.DiffusersImage.OutpaintCanvas'].params.feather.value).toBe('0'); + expect(edited['modules.DiffusersImage.OutpaintCanvas'].params.feather.value).toBe(0); expect(edited[consumerKey].params.mask_image.sourceKey).toBe('mask_image'); expect(edited[consumerKey].params.width.sourceKey).toBe('width_out'); expect(edited[consumerKey].params.height.sourceKey).toBe('height_out'); diff --git a/tests/fixtures/authored-layout-constraint.v1.json b/tests/fixtures/authored-layout-constraint.v1.json new file mode 100644 index 00000000..9be8192e --- /dev/null +++ b/tests/fixtures/authored-layout-constraint.v1.json @@ -0,0 +1,69 @@ +{ + "scope": "Source metadata only; no model, tokenizer API or native output proof", + "contract": { + "schemaVersion": 1, + "version": "authored-layout-byte-prefix-v1", + "status": "contract_only", + "operation": "enhance_prompt_constrained_authored_v1", + "layoutPolicy": "constrained-authored-table-v1", + "adapterId": "transformers-prompt-enhancement-v1", + "repository": "black-forest-labs/flux-3-image-klein-pup", + "revision": "3f3edb52b2c55de0d49feab28598b68f7f8e4830", + "transformersVersion": "5.18.0", + "tokenizersVersion": "0.23.2", + "tokenizerClass": "Qwen3_5Tokenizer", + "ordinaryVocabularyTokens": 248044, + "ordinaryVocabularySha256": "sha256:13431bd652cdbd32f84568d0c2b9945ba506071178fdb527d40c4ece256f8b39", + "tokenizerSemanticSha256": "sha256:40ebf1d8462c42c3b781b870aaa28884b24f86234bc0b49d54d2bbcf5ddc404a", + "sourcePreTokenizerSha256": "sha256:d730489d91319a99960af82e8fed44be8533ca92615198807b41c29dda5556fc", + "effectivePreTokenizerSha256": "sha256:4cba7e5c03fddf4af78a44f283740fd19687522c60cc36ee271b655f634a7af3", + "reservedAddedTokenIds": [ + 248044, 248045, 248046, 248047, 248048, 248049, 248050, 248051, 248052, 248053, 248054, 248055, 248056, 248057, + 248058, 248059, 248060, 248061, 248062, 248063, 248064, 248065, 248066, 248067, 248068, 248069, 248070, 248071, + 248072, 248073, 248074, 248075, 248076 + ], + "trueSpecialTokenIds": [ + 248044, 248045, 248046, 248047, 248048, 248049, 248050, 248051, 248052, 248053, 248054, 248055, 248056, 248057, + 248070, 248071, 248072, 248073, 248074, 248075, 248076 + ], + "configuredEosTokenIds": [248046, 248044], + "effectiveEosTokenIds": [248046], + "padTokenId": 248044, + "preparationRamBytes": 268435456, + "deadlineSeconds": 1800, + "artifacts": [ + { + "path": "tokenizer.json", + "byteSize": 19989325, + "sha256": "06b9509352d2af50381ab2247e083b80d32d5c0aba91c272ca9ff729b6a0e523" + }, + { + "path": "tokenizer_config.json", + "byteSize": 1164, + "sha256": "7488550a894dcf741616126e322ea31d66cf9457b59ec5825f4c7efdced421f8" + }, + { + "path": "generation_config.json", + "byteSize": 163, + "sha256": "e92258e3c39afbaa73fd53a98640c56f6d42fb091e1664697bd5396a1dcbb761" + } + ], + "declarationSha256": "sha256:f321df19db5e99786b807a13d8f380e4bc0577e27163b94e6762661881ac5c08", + "limits": { + "max_regions": 32, + "max_references": 10, + "max_caption_chars": 131072, + "max_description_chars": 4096, + "max_output_bytes": 262144, + "max_new_tokens": 3584, + "max_vocabulary_tokens": 300000, + "max_token_bytes": 512, + "max_vocabulary_bytes": 16777216, + "max_trie_nodes": 2000000, + "max_cache_bytes": 16777216, + "build_seconds": 10, + "lookup_seconds": 2, + "max_request_seconds": 1800 + } + } +} diff --git a/tests/fixtures/evaluation-prompt-enhancement-alternatives.v1.json b/tests/fixtures/evaluation-prompt-enhancement-alternatives.v1.json new file mode 100644 index 00000000..d27e874e --- /dev/null +++ b/tests/fixtures/evaluation-prompt-enhancement-alternatives.v1.json @@ -0,0 +1,29188 @@ +{ + "schemaVersion": 1, + "proofScope": "SOURCE_DTO_INSTALLED_REVIEWED_APIS_CONSTRUCTOR_TRAPPED", + "evaluationAuthoring": { + "schemaVersion": 1, + "scope": "expert-authoring", + "autoEligible": false, + "templateEligible": false, + "galleryEligible": false, + "executionProfiles": [ + { + "id": "flux3-klein:modular", + "model_type": "Flux3DistilledModularPipeline", + "modes": ["text_to_image", "edit_image"], + "loader_module": "modules.ModularDiffusers", + "loader_action": "ModelsLoader", + "execution_path": "modular-diffusers", + "pipeline_class": "Flux3DistilledModularPipeline", + "default_repo": "black-forest-labs/flux-3-image-klein", + "fallback_repo": null, + "quantizable_components": [], + "default_quantized_components": [], + "supported_offload_modes": ["none", "model_cpu", "group_cpu", "group_disk"], + "retry_offload_modes": [], + "max_low_memory_side": null, + "max_low_memory_steps": null, + "live_proof": false, + "optional_runtime_profiles": [], + "optional_runtime_delivery": "base", + "optional_runtime_platform_deliveries": [], + "compatible_repos": [], + "public": false, + "adapterAuthoring": { + "schemaVersion": 1, + "mediaKind": "image", + "adapterNodeKey": "modules.ModularDiffusers.Lora", + "tasks": ["text_to_image", "edit_image"], + "maxOwnedAdapters": 32, + "repositoryRevisions": [ + { + "repo": "black-forest-labs/flux-3-image-klein", + "revision": "8454017f9ebaada30c998fccd9f67a80c7580f68" + } + ], + "requiredControls": { + "offload_mode": "none", + "auto_offload": false, + "weight_loading_mode": "cpu", + "quant_config": null, + "unet": null, + "vae": null, + "controlnet": null, + "trust_remote_code": false + } + }, + "backend_path": "modules.ModularDiffusers.ModelsLoader", + "optionalRuntimeRequirement": { + "schemaVersion": 1, + "delivery": "base", + "requiredNow": false, + "profileIds": [], + "executionProfileIds": ["flux3-klein:modular"], + "state": "base_satisfied", + "reason": "no_optional_runtime_required" + }, + "repository_revisions": [ + { + "repo": "black-forest-labs/flux-3-image-klein", + "revision": "8454017f9ebaada30c998fccd9f67a80c7580f68" + } + ] + }, + { + "id": "flux3-klein-base:modular", + "model_type": "Flux3ModularPipeline", + "modes": ["text_to_image", "edit_image"], + "loader_module": "modules.ModularDiffusers", + "loader_action": "ModelsLoader", + "execution_path": "modular-diffusers", + "pipeline_class": "Flux3ModularPipeline", + "default_repo": "black-forest-labs/flux-3-image-klein-base", + "fallback_repo": null, + "quantizable_components": [], + "default_quantized_components": [], + "supported_offload_modes": ["none", "model_cpu", "group_cpu", "group_disk"], + "retry_offload_modes": [], + "max_low_memory_side": null, + "max_low_memory_steps": null, + "live_proof": false, + "optional_runtime_profiles": [], + "optional_runtime_delivery": "base", + "optional_runtime_platform_deliveries": [], + "compatible_repos": [], + "public": false, + "adapterAuthoring": { + "schemaVersion": 1, + "mediaKind": "image", + "adapterNodeKey": "modules.ModularDiffusers.Lora", + "tasks": ["text_to_image", "edit_image"], + "maxOwnedAdapters": 32, + "repositoryRevisions": [ + { + "repo": "black-forest-labs/flux-3-image-klein-base", + "revision": "1469d27cfb9bb1bd81d3a93f5a023b39dbf136e4" + } + ], + "requiredControls": { + "offload_mode": "none", + "auto_offload": false, + "weight_loading_mode": "cpu", + "quant_config": null, + "unet": null, + "vae": null, + "controlnet": null, + "trust_remote_code": false + } + }, + "backend_path": "modules.ModularDiffusers.ModelsLoader", + "optionalRuntimeRequirement": { + "schemaVersion": 1, + "delivery": "base", + "requiredNow": false, + "profileIds": [], + "executionProfileIds": ["flux3-klein-base:modular"], + "state": "base_satisfied", + "reason": "no_optional_runtime_required" + }, + "repository_revisions": [ + { + "repo": "black-forest-labs/flux-3-image-klein-base", + "revision": "1469d27cfb9bb1bd81d3a93f5a023b39dbf136e4" + } + ] + } + ], + "pipelineSupport": [ + { + "coverage": "research-blocked", + "equivalentTo": [], + "pipelineClass": "Flux3DistilledModularPipeline", + "reason": "Only unpublished source-level execution specifications select this class; installed-runtime admission remains pending.", + "upstreamTasks": [ + { + "source": "modular", + "task": "text_to_image", + "workflowId": "text2image" + }, + { + "source": "modular", + "task": "edit_image", + "workflowId": "image_conditioned" + } + ], + "tasks": [ + { + "task": "edit_image", + "execution": "adapter", + "decomposition": "stages", + "operationIds": [ + "diffusion.decode_latents", + "diffusion.denoise", + "diffusion.encode_image", + "diffusion.encode_prompt", + "diffusion.load_models" + ], + "executionProfileIds": ["flux3-klein:modular"], + "dependencies": "ready", + "runtimeRequirements": [ + { + "schemaVersion": 1, + "delivery": "base", + "requiredNow": false, + "profileIds": [], + "executionProfileIds": ["flux3-klein:modular"], + "state": "base_satisfied", + "reason": "no_optional_runtime_required" + } + ] + }, + { + "task": "text_to_image", + "execution": "adapter", + "decomposition": "stages", + "operationIds": [ + "diffusion.decode_latents", + "diffusion.denoise", + "diffusion.encode_prompt", + "diffusion.load_models" + ], + "executionProfileIds": ["flux3-klein:modular"], + "dependencies": "ready", + "runtimeRequirements": [ + { + "schemaVersion": 1, + "delivery": "base", + "requiredNow": false, + "profileIds": [], + "executionProfileIds": ["flux3-klein:modular"], + "state": "base_satisfied", + "reason": "no_optional_runtime_required" + } + ] + } + ] + }, + { + "coverage": "research-blocked", + "equivalentTo": [], + "pipelineClass": "Flux3ModularPipeline", + "reason": "Only unpublished source-level execution specifications select this class; installed-runtime admission remains pending.", + "upstreamTasks": [ + { + "source": "modular", + "task": "text_to_image", + "workflowId": "text2image" + }, + { + "source": "modular", + "task": "edit_image", + "workflowId": "image_conditioned" + } + ], + "tasks": [ + { + "task": "edit_image", + "execution": "adapter", + "decomposition": "stages", + "operationIds": [ + "diffusion.decode_latents", + "diffusion.denoise", + "diffusion.encode_image", + "diffusion.encode_prompt", + "diffusion.guidance", + "diffusion.load_models" + ], + "executionProfileIds": ["flux3-klein-base:modular"], + "dependencies": "ready", + "runtimeRequirements": [ + { + "schemaVersion": 1, + "delivery": "base", + "requiredNow": false, + "profileIds": [], + "executionProfileIds": ["flux3-klein-base:modular"], + "state": "base_satisfied", + "reason": "no_optional_runtime_required" + } + ] + }, + { + "task": "text_to_image", + "execution": "adapter", + "decomposition": "stages", + "operationIds": [ + "diffusion.decode_latents", + "diffusion.denoise", + "diffusion.encode_prompt", + "diffusion.guidance", + "diffusion.load_models" + ], + "executionProfileIds": ["flux3-klein-base:modular"], + "dependencies": "ready", + "runtimeRequirements": [ + { + "schemaVersion": 1, + "delivery": "base", + "requiredNow": false, + "profileIds": [], + "executionProfileIds": ["flux3-klein-base:modular"], + "state": "base_satisfied", + "reason": "no_optional_runtime_required" + } + ] + } + ] + } + ], + "authoringRecipes": [ + { + "executionProfileId": "flux3-klein:modular", + "pipelineClass": "Flux3DistilledModularPipeline", + "task": "text_to_image", + "authoringRecipeId": "flux3-klein:text-to-image:prompt-preview-fp32-authoring:v3", + "rawAuthoringRecipeId": "flux3-klein:text-to-image:prompt-preview-fp32-authoring:v1", + "rawAuthoringRecipeChoices": [ + { + "authoringRecipeId": "flux3-klein:text-to-image:prompt-preview-fp32-authoring:v1", + "label": "Raw wording: FP32" + }, + { + "authoringRecipeId": "flux3-klein:text-to-image:prompt-preview-authoring:v1", + "label": "Raw wording: BF16 + NF4" + } + ] + }, + { + "executionProfileId": "flux3-klein:modular", + "pipelineClass": "Flux3DistilledModularPipeline", + "task": "edit_image", + "authoringRecipeId": "flux3-klein:edit-image:prompt-preview-authoring:v3", + "rawAuthoringRecipeId": "flux3-klein:edit-image:prompt-preview-authoring:v1" + }, + { + "executionProfileId": "flux3-klein-base:modular", + "pipelineClass": "Flux3ModularPipeline", + "task": "text_to_image", + "authoringRecipeId": "flux3-klein-base:text-to-image:prompt-preview-fp32-authoring:v3", + "rawAuthoringRecipeId": "flux3-klein-base:text-to-image:prompt-preview-fp32-authoring:v1", + "rawAuthoringRecipeChoices": [ + { + "authoringRecipeId": "flux3-klein-base:text-to-image:prompt-preview-fp32-authoring:v1", + "label": "Raw wording: FP32" + }, + { + "authoringRecipeId": "flux3-klein-base:text-to-image:prompt-preview-authoring:v1", + "label": "Raw wording: BF16 + NF4" + } + ] + }, + { + "executionProfileId": "flux3-klein-base:modular", + "pipelineClass": "Flux3ModularPipeline", + "task": "edit_image", + "authoringRecipeId": "flux3-klein-base:edit-image:prompt-preview-authoring:v3", + "rawAuthoringRecipeId": "flux3-klein-base:edit-image:prompt-preview-authoring:v1" + } + ] + }, + "starters": [ + { + "schemaVersion": 1, + "pipelineClass": "Flux3DistilledModularPipeline", + "task": "text_to_image", + "workflowId": "text2image", + "nodes": [ + { + "operation": { + "pipelineClass": "Flux3DistilledModularPipeline", + "task": "text_to_image", + "operationId": "diffusion.load_models", + "nodeKey": "modules.ModularDiffusers.ModelsLoader", + "nodeType": "loader", + "blockName": null, + "decomposition": "loader", + "support": "declared", + "ports": [ + { + "name": "model_type", + "semanticName": "model_type", + "direction": "input", + "roles": ["value"], + "types": ["string"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "repo_id", + "semanticName": "repo_id", + "direction": "input", + "roles": ["value"], + "types": ["string"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "reviewed_variant", + "semanticName": "reviewed_variant", + "direction": "input", + "roles": ["value"], + "types": ["string"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "device", + "semanticName": "device", + "direction": "input", + "roles": ["value"], + "types": ["string"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "attention_backend", + "semanticName": "attention_backend", + "direction": "input", + "roles": ["value"], + "types": ["string"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "vae_slicing", + "semanticName": "vae_slicing", + "direction": "input", + "roles": ["value"], + "types": ["boolean"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "vae_tiling", + "semanticName": "vae_tiling", + "direction": "input", + "roles": ["value"], + "types": ["boolean"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "inpaint_compatibility", + "semanticName": "inpaint_compatibility", + "direction": "input", + "roles": ["value"], + "types": ["string"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "trust_remote_code", + "semanticName": "trust_remote_code", + "direction": "input", + "roles": ["value"], + "types": ["boolean"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "revision", + "semanticName": "revision", + "direction": "input", + "roles": ["value"], + "types": ["string"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "workflow_id", + "semanticName": "workflow_id", + "direction": "input", + "roles": ["value"], + "types": ["string"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "modiff_pipeline_identity", + "semanticName": "modiff_pipeline_identity", + "direction": "input", + "roles": ["value"], + "types": ["object"], + "required": false, + "hidden": true, + "semantics": { + "kind": "opaque", + "scope": "Flux3DistilledModularPipeline", + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "auto_offload", + "semanticName": "auto_offload", + "direction": "input", + "roles": ["value"], + "types": ["boolean"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "offload_mode", + "semanticName": "offload_mode", + "direction": "input", + "roles": ["value"], + "types": ["string"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "weight_loading_mode", + "semanticName": "weight_loading_mode", + "direction": "input", + "roles": ["value"], + "types": ["string"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "weight_format", + "semanticName": "weight_format", + "direction": "input", + "roles": ["value"], + "types": ["string"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "unet", + "semanticName": "unet", + "direction": "input", + "roles": ["component"], + "types": ["diffusers_auto_model"], + "required": false, + "hidden": false, + "semantics": { + "kind": "component", + "scope": "Flux3DistilledModularPipeline", + "state": null, + "owner": "same_loader", + "members": [ + { + "name": "transformer", + "type": "diffusers.models.transformers.transformer_flux3.Flux3Transformer2DModel" + } + ] + } + }, + { + "name": "vae", + "semanticName": "vae", + "direction": "input", + "roles": ["component"], + "types": ["diffusers_auto_model"], + "required": false, + "hidden": false, + "semantics": { + "kind": "component", + "scope": "Flux3DistilledModularPipeline", + "state": null, + "owner": "same_loader", + "members": [ + { + "name": "vae", + "type": "diffusers.models.autoencoders.autoencoder_kl_flux2.AutoencoderKLFlux2" + } + ] + } + }, + { + "name": "controlnet", + "semanticName": "controlnet", + "direction": "input", + "roles": ["component"], + "types": ["diffusers_auto_model"], + "required": false, + "hidden": true, + "semantics": { + "kind": "component", + "scope": "Flux3DistilledModularPipeline", + "state": null, + "owner": "same_loader", + "members": [] + } + }, + { + "name": "lora_list", + "semanticName": "lora_list", + "direction": "input", + "roles": ["value"], + "types": ["custom_lora"], + "required": false, + "hidden": false, + "semantics": { + "kind": "opaque", + "scope": "Flux3DistilledModularPipeline", + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "text_encoders", + "semanticName": "text_encoders", + "direction": "output", + "roles": ["component"], + "types": ["diffusers_auto_models"], + "required": false, + "hidden": false, + "semantics": { + "kind": "component", + "scope": "Flux3DistilledModularPipeline", + "state": null, + "owner": "same_loader", + "members": [ + { + "name": "text_encoder", + "type": "transformers.models.qwen3_vl.modeling_qwen3_vl.Qwen3VLForConditionalGeneration" + }, + { + "name": "tokenizer", + "type": "transformers.models.auto.processing_auto.AutoProcessor" + } + ] + } + }, + { + "name": "unet_out", + "semanticName": "unet_out", + "direction": "output", + "roles": ["component"], + "types": ["diffusers_auto_model"], + "required": false, + "hidden": false, + "semantics": { + "kind": "component", + "scope": "Flux3DistilledModularPipeline", + "state": null, + "owner": "same_loader", + "members": [ + { + "name": "transformer", + "type": "diffusers.models.transformers.transformer_flux3.Flux3Transformer2DModel" + } + ] + } + }, + { + "name": "vae_out", + "semanticName": "vae_out", + "direction": "output", + "roles": ["component"], + "types": ["diffusers_auto_model"], + "required": false, + "hidden": false, + "semantics": { + "kind": "component", + "scope": "Flux3DistilledModularPipeline", + "state": null, + "owner": "same_loader", + "members": [ + { + "name": "vae", + "type": "diffusers.models.autoencoders.autoencoder_kl_flux2.AutoencoderKLFlux2" + } + ] + } + }, + { + "name": "scheduler", + "semanticName": "scheduler", + "direction": "output", + "roles": ["component"], + "types": ["diffusers_auto_model"], + "required": false, + "hidden": false, + "semantics": { + "kind": "component", + "scope": "Flux3DistilledModularPipeline", + "state": null, + "owner": "same_loader", + "members": [ + { + "name": "scheduler", + "type": "diffusers.schedulers.scheduling_flow_match_euler_discrete.FlowMatchEulerDiscreteScheduler" + } + ] + } + }, + { + "name": "image_encoder", + "semanticName": "image_encoder", + "direction": "output", + "roles": ["component"], + "types": ["diffusers_auto_model"], + "required": false, + "hidden": true, + "semantics": { + "kind": "component", + "scope": "Flux3DistilledModularPipeline", + "state": null, + "owner": "same_loader", + "members": [] + } + }, + { + "name": "pipeline_components", + "semanticName": "pipeline_components", + "direction": "output", + "roles": ["component"], + "types": ["diffusers_modular_pipeline_components"], + "required": false, + "hidden": false, + "semantics": { + "kind": "component", + "scope": "Flux3DistilledModularPipeline", + "state": null, + "owner": "same_loader", + "members": [ + { + "name": "image_processor", + "type": "diffusers.modular_pipelines.flux3.image_processor.Flux3ImageProcessor" + }, + { + "name": "scheduler", + "type": "diffusers.schedulers.scheduling_flow_match_euler_discrete.FlowMatchEulerDiscreteScheduler" + }, + { + "name": "text_encoder", + "type": "transformers.models.qwen3_vl.modeling_qwen3_vl.Qwen3VLForConditionalGeneration" + }, + { + "name": "tokenizer", + "type": "transformers.models.auto.processing_auto.AutoProcessor" + }, + { + "name": "transformer", + "type": "diffusers.models.transformers.transformer_flux3.Flux3Transformer2DModel" + }, + { + "name": "vae", + "type": "diffusers.models.autoencoders.autoencoder_kl_flux2.AutoencoderKLFlux2" + } + ] + } + }, + { + "name": "quant_config", + "semanticName": "quant_config", + "direction": "input", + "roles": ["value"], + "types": ["quant_config"], + "required": false, + "hidden": false, + "semantics": { + "kind": "opaque", + "scope": "Flux3DistilledModularPipeline", + "state": null, + "owner": "none", + "members": [] + } + } + ], + "workflowId": "text2image", + "binding": { + "values": { + "model_type": "Flux3DistilledModularPipeline" + }, + "pipelineClass": "Flux3DistilledModularPipeline" + } + }, + "node": { + "module": "modules.ModularDiffusers", + "action": "ModelsLoader", + "type": "custom", + "label": "Load Models", + "category": "loader", + "description": "", + "resizable": true, + "skipParamsCheck": true, + "style": {}, + "params": { + "model_type": { + "label": "Pipeline Type", + "type": "string", + "options": { + "": { + "schemaVersion": 1, + "value": "", + "label": "", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "DummyCustomPipeline": { + "schemaVersion": 1, + "value": "DummyCustomPipeline", + "label": "Custom", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "StableDiffusionXLModularPipeline": { + "schemaVersion": 1, + "value": "StableDiffusionXLModularPipeline", + "label": "Stable Diffusion XL", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "QwenImageModularPipeline": { + "schemaVersion": 1, + "value": "QwenImageModularPipeline", + "label": "Qwen-Image-2512", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "QwenImageEditModularPipeline": { + "schemaVersion": 1, + "value": "QwenImageEditModularPipeline", + "label": "Qwen-Image-Edit", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "QwenImageEditPlusModularPipeline": { + "schemaVersion": 1, + "value": "QwenImageEditPlusModularPipeline", + "label": "Qwen-Image-Edit-2511", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "QwenImageLayeredModularPipeline": { + "schemaVersion": 1, + "value": "QwenImageLayeredModularPipeline", + "label": "Qwen-Image-Layered", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "FluxModularPipeline": { + "schemaVersion": 1, + "value": "FluxModularPipeline", + "label": "Flux", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "FluxKontextModularPipeline": { + "schemaVersion": 1, + "value": "FluxKontextModularPipeline", + "label": "Flux Kontext", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "Flux2ModularPipeline": { + "schemaVersion": 1, + "value": "Flux2ModularPipeline", + "label": "Flux 2", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "Flux2KleinModularPipeline": { + "schemaVersion": 1, + "value": "Flux2KleinModularPipeline", + "label": "Flux 2 Klein Distilled", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "Flux2KleinBaseModularPipeline": { + "schemaVersion": 1, + "value": "Flux2KleinBaseModularPipeline", + "label": "Flux 2 Klein Base", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "Flux3ModularPipeline": { + "schemaVersion": 1, + "value": "Flux3ModularPipeline", + "label": "FLUX 3 Image Klein Base", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "Flux3DistilledModularPipeline": { + "schemaVersion": 1, + "value": "Flux3DistilledModularPipeline", + "label": "FLUX 3 Image Klein", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "ZImageModularPipeline": { + "schemaVersion": 1, + "value": "ZImageModularPipeline", + "label": "Z-Image", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "WanModularPipeline": { + "schemaVersion": 1, + "value": "WanModularPipeline", + "label": "WAN2 T2V", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "WanImage2VideoModularPipeline": { + "schemaVersion": 1, + "value": "WanImage2VideoModularPipeline", + "label": "WAN2 I2V", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "MiniMaxMusic3ModularPipeline": { + "schemaVersion": 1, + "value": "MiniMaxMusic3ModularPipeline", + "label": "MiniMax Music 3", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "MiniMaxH3ModularPipeline": { + "schemaVersion": 1, + "value": "MiniMaxH3ModularPipeline", + "label": "MiniMax H3", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "AnimaModularPipeline": { + "schemaVersion": 1, + "value": "AnimaModularPipeline", + "label": "Anima", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "ErnieImageModularPipeline": { + "schemaVersion": 1, + "value": "ErnieImageModularPipeline", + "label": "ERNIE Image Turbo", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "HeliosModularPipeline": { + "schemaVersion": 1, + "value": "HeliosModularPipeline", + "label": "Helios", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "HeliosPyramidModularPipeline": { + "schemaVersion": 1, + "value": "HeliosPyramidModularPipeline", + "label": "Helios Pyramid", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "HeliosPyramidDistilledModularPipeline": { + "schemaVersion": 1, + "value": "HeliosPyramidDistilledModularPipeline", + "label": "Helios Pyramid Distilled", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "HunyuanVideo15ModularPipeline": { + "schemaVersion": 1, + "value": "HunyuanVideo15ModularPipeline", + "label": "HunyuanVideo 1.5", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "WanAnimate2ModularPipeline": { + "schemaVersion": 1, + "value": "WanAnimate2ModularPipeline", + "label": "Wan Animate 2", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "WanAnimate2DistilledModularPipeline": { + "schemaVersion": 1, + "value": "WanAnimate2DistilledModularPipeline", + "label": "Wan Animate 2 Distilled", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "Cosmos3OmniModularPipeline": { + "schemaVersion": 1, + "value": "Cosmos3OmniModularPipeline", + "label": "Cosmos 3 Nano", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "Cosmos3DistilledModularPipeline": { + "schemaVersion": 1, + "value": "Cosmos3DistilledModularPipeline", + "label": "Cosmos 3 Distilled", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "Ideogram4ModularPipeline": { + "schemaVersion": 1, + "value": "Ideogram4ModularPipeline", + "label": "Ideogram 4 (Contract only)", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "Krea2ModularPipeline": { + "schemaVersion": 1, + "value": "Krea2ModularPipeline", + "label": "Krea 2 (Contract only)", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "Krea2TurboModularPipeline": { + "schemaVersion": 1, + "value": "Krea2TurboModularPipeline", + "label": "Krea 2 Turbo (Contract only)", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "StableDiffusion3ModularPipeline": { + "schemaVersion": 1, + "value": "StableDiffusion3ModularPipeline", + "label": "Stable Diffusion 3 (Contract only)", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "LTX25ModularPipeline": { + "schemaVersion": 1, + "value": "LTX25ModularPipeline", + "label": "LTX-2.5 (Contract only)", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + } + }, + "onChange": "set_filters", + "description": "Selects the Modular Diffusers pipeline class. This filters compatible checkpoints and publishes the component contract used by connected nodes; it is not the model checkpoint itself.", + "value": "Flux3DistilledModularPipeline" + }, + "repo_id": { + "label": "Repository ID", + "display": "modelselect", + "type": "string", + "value": { + "source": "hub", + "value": "black-forest-labs/flux-3-image-klein" + }, + "fieldOptions": { + "noValidation": true, + "sources": ["hub", "local"], + "filter": { + "hub": { + "className": ["Flux3DistilledModularPipeline"] + } + } + }, + "onChange": "refresh_pipeline_identity" + }, + "reviewed_variant": { + "label": "Model", + "type": "string", + "value": "black-forest-labs/flux-3-image-klein", + "options": [ + { + "schemaVersion": 1, + "value": "black-forest-labs/flux-3-image-klein", + "label": "black-forest-labs/flux-3-image-klein", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + } + ], + "hidden": true, + "fieldOptions": { + "controlTier": "essential" + }, + "description": "Select an immutable, reviewed checkpoint for this exact Modular Diffusers pipeline family. Changing it does not replace the workflow graph or reset its parameters." + }, + "dtype": { + "label": "dtype", + "options": [ + { + "schemaVersion": 1, + "value": "float32", + "label": "float32", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "float16", + "label": "float16", + "compatibility": "incompatible", + "availability": "unavailable", + "installationState": "unavailable", + "disabledReason": "float16 is not supported by the active runtime." + }, + { + "schemaVersion": 1, + "value": "bfloat16", + "label": "bfloat16", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + } + ], + "value": "bfloat16" + }, + "device": { + "label": "Device", + "type": "string", + "value": "cpu:0", + "options": { + "cpu:0": { + "schemaVersion": 1, + "value": "cpu:0", + "label": "cpu:0", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "cpu": { + "schemaVersion": 1, + "value": "cpu", + "label": "cpu", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + } + } + }, + "attention_backend": { + "label": "Attention Backend", + "type": "string", + "default": "inherit", + "options": [ + { + "schemaVersion": 1, + "value": "inherit", + "label": "inherit", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "auto", + "label": "auto", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "native", + "label": "native", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "_native_math", + "label": "_native_math", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + } + ], + "description": "Inherit preserves existing native component defaults; explicit choices use the ordinary Diffusers attention API." + }, + "vae_slicing": { + "label": "VAE Slicing", + "type": "boolean", + "default": null, + "hidden": true, + "description": "An unset policy preserves the native VAE configuration; templates may bind an explicit boolean." + }, + "vae_tiling": { + "label": "VAE Tiling", + "type": "boolean", + "default": null, + "hidden": true, + "description": "An unset policy preserves the native VAE configuration; templates may bind an explicit boolean." + }, + "inpaint_compatibility": { + "label": "Inpaint Compatibility", + "type": "string", + "default": "native", + "hidden": true, + "options": [ + { + "schemaVersion": 1, + "value": "native", + "label": "native", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "whole_v1", + "label": "whole_v1", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + } + ], + "description": "Technical compatibility selection for the reviewed Qwen Edit inpainting candidate; existing nodes retain native policy." + }, + "trust_remote_code": { + "label": "Trust Remote Code", + "type": "boolean", + "value": false, + "description": "Repository code execution is disabled; keep this off for contract preview.", + "onChange": "refresh_pipeline_identity" + }, + "revision": { + "label": "Revision", + "type": "string", + "value": "8454017f9ebaada30c998fccd9f67a80c7580f68", + "description": "Required exact 40-character commit hash for Hub custom contracts.", + "onChange": "refresh_pipeline_identity" + }, + "workflow_id": { + "label": "Reviewed Workflow", + "type": "string", + "value": "text2image", + "hidden": true, + "description": "Exact reviewed component partition selected by a first-party Cluster Node." + }, + "modiff_pipeline_identity": { + "label": "Custom Pipeline Identity", + "type": "object", + "value": null, + "hidden": true + }, + "refresh_pipeline_identity_button": { + "label": "Review and Refresh Custom Contract", + "display": "ui_button", + "value": false, + "hidden": true, + "onChange": "refresh_pipeline_identity" + }, + "auto_offload": { + "label": "Enable Auto Offload", + "type": "boolean", + "value": true + }, + "offload_mode": { + "label": "Offload Mode", + "type": "string", + "options": [ + { + "schemaVersion": 1, + "value": "auto_cpu", + "label": "auto_cpu", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "none", + "label": "none", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "model_cpu", + "label": "model_cpu", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "group_cpu", + "label": "group_cpu", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "group_disk", + "label": "group_disk", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + } + ], + "value": "model_cpu", + "default": "model_cpu" + }, + "weight_loading_mode": { + "label": "Weight Loading", + "type": "string", + "default": "cpu", + "options": [ + { + "schemaVersion": 1, + "value": "cpu", + "label": "cpu", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "cuda", + "label": "cuda", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + } + ], + "fieldOptions": { + "controlTier": "advanced" + }, + "description": "Load weights on CPU or CUDA before disk offload. CUDA loading needs room for a complete component and is available only for supported models." + }, + "weight_format": { + "label": "Weight Format", + "type": "string", + "default": "native", + "options": [ + { + "schemaVersion": 1, + "value": "native", + "label": "native", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "fp8r", + "label": "fp8r", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "nvfp4", + "label": "nvfp4", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + } + ], + "hidden": false, + "fieldOptions": { + "controlTier": "advanced" + }, + "description": "Select a backend-declared immutable component format. Missing reviewed files must be installed through Model Manager." + }, + "unet": { + "label": "Denoise Model", + "display": "input", + "type": "diffusers_auto_model", + "hidden": false + }, + "vae": { + "label": "VAE", + "display": "input", + "type": "diffusers_auto_model", + "hidden": false + }, + "controlnet": { + "label": "ControlNet", + "display": "input", + "type": "diffusers_auto_model", + "hidden": true + }, + "lora_list": { + "label": "Lora", + "display": "input", + "type": "custom_lora" + }, + "text_encoders": { + "label": "Text Encoders", + "display": "output", + "type": "diffusers_auto_models", + "signal": { + "direction": "output", + "origin": "modiff_pipeline_identity", + "value": "Flux3DistilledModularPipeline" + }, + "connectionRole": "text_encoders", + "hidden": false + }, + "unet_out": { + "label": "Denoise Model", + "display": "output", + "type": "diffusers_auto_model", + "signal": { + "direction": "output", + "origin": "modiff_pipeline_identity", + "value": "Flux3DistilledModularPipeline" + }, + "connectionRole": "denoiser", + "hidden": false + }, + "vae_out": { + "label": "VAE", + "display": "output", + "type": "diffusers_auto_model", + "signal": { + "direction": "output", + "origin": "modiff_pipeline_identity", + "value": "Flux3DistilledModularPipeline" + }, + "connectionRole": "vae", + "hidden": false + }, + "scheduler": { + "label": "Scheduler", + "display": "output", + "type": "diffusers_auto_model", + "signal": { + "direction": "output", + "origin": "modiff_pipeline_identity", + "value": "Flux3DistilledModularPipeline" + }, + "connectionRole": "scheduler", + "hidden": false + }, + "image_encoder": { + "label": "Image Encoder", + "display": "output", + "type": "diffusers_auto_model", + "signal": { + "direction": "output", + "origin": "modiff_pipeline_identity", + "value": "Flux3DistilledModularPipeline" + }, + "connectionRole": "image_encoder", + "hidden": true + }, + "pipeline_components": { + "label": "Pipeline Components", + "display": "output", + "type": "diffusers_modular_pipeline_components", + "signal": { + "direction": "output", + "origin": "modiff_pipeline_identity", + "value": "Flux3DistilledModularPipeline" + }, + "connectionRole": "pipeline_components", + "hidden": false + }, + "quant_config": { + "label": "Quant Config", + "display": "input", + "type": "quant_config" + } + }, + "time": [0, 0, 0], + "memory": [0, 0, 0], + "cache": false + } + }, + { + "operation": { + "pipelineClass": "Flux3DistilledModularPipeline", + "task": "text_to_image", + "operationId": "diffusion.encode_prompt", + "nodeKey": "modules.ModularDiffusers.EncodePrompt", + "nodeType": "text_encoder", + "blockName": "text_encoder", + "decomposition": "block", + "support": "declared", + "ports": [ + { + "name": "prompt", + "semanticName": "prompt", + "direction": "input", + "roles": ["value"], + "types": ["string"], + "required": true, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "max_sequence_length", + "semanticName": "max_sequence_length", + "direction": "input", + "roles": ["value"], + "types": ["int"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "text_encoder_out_layers", + "semanticName": "text_encoder_out_layers", + "direction": "input", + "roles": ["value"], + "types": ["int"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "text_encoders", + "semanticName": "text_encoders", + "direction": "input", + "roles": ["component"], + "types": ["diffusers_auto_models"], + "required": true, + "hidden": false, + "semantics": { + "kind": "component", + "scope": "Flux3DistilledModularPipeline", + "state": null, + "owner": "same_loader", + "members": [ + { + "name": "text_encoder", + "type": "transformers.models.qwen3_vl.modeling_qwen3_vl.Qwen3VLForConditionalGeneration" + }, + { + "name": "tokenizer", + "type": "transformers.models.auto.processing_auto.AutoProcessor" + } + ] + } + }, + { + "name": "embeddings", + "semanticName": "embeddings", + "direction": "output", + "roles": ["value"], + "types": ["embeddings"], + "required": false, + "hidden": false, + "semantics": { + "kind": "conditioning", + "scope": "Flux3DistilledModularPipeline", + "state": null, + "owner": "same_loader", + "members": [] + } + }, + { + "name": "doc", + "semanticName": "doc", + "direction": "output", + "roles": ["value"], + "types": ["string"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "layout_conditioning", + "semanticName": "layout_conditioning", + "direction": "input", + "roles": ["value"], + "types": ["layout_conditioning"], + "required": false, + "hidden": false, + "semantics": { + "kind": "opaque", + "scope": "Flux3DistilledModularPipeline", + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "reference_binding", + "semanticName": "reference_binding", + "direction": "input", + "roles": ["value"], + "types": ["reference_conditioning"], + "required": false, + "hidden": false, + "semantics": { + "kind": "opaque", + "scope": "Flux3DistilledModularPipeline", + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "prompt_input", + "semanticName": "prompt", + "direction": "input", + "roles": ["value"], + "types": ["string"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + } + ], + "workflowId": "text2image", + "binding": { + "values": {}, + "pipelineClass": "Flux3DistilledModularPipeline" + } + }, + "node": { + "module": "modules.ModularDiffusers", + "action": "EncodePrompt", + "type": "custom", + "label": "Encode Prompt", + "category": "embedding", + "description": "", + "resizable": true, + "skipParamsCheck": true, + "style": {}, + "params": { + "text_encoders": { + "label": "Text Encoders *", + "required": true, + "type": "diffusers_auto_models", + "display": "input", + "onSignal": "update_node", + "signalCompatibility": { + "role": "text_encoders" + } + }, + "prompt_input": { + "label": "Prompt Input", + "type": "string", + "display": "input", + "description": "Optional connected prompt. When connected, this replaces the inline Prompt value." + }, + "guider": { + "label": "Guider", + "type": "custom_guider", + "display": "input", + "hidden": true, + "description": "Shared Diffusers guidance used by prompt encoding and denoising when the selected pipeline supports it." + }, + "layout_reference_summary": { + "label": "Bound Reference Summary", + "type": "string", + "display": "output", + "hidden": true, + "description": "Display-only ordered reference identities and actual preprocessing sizes from the current encoder cache." + }, + "prompt": { + "label": "Prompt *", + "type": "string", + "display": "textarea", + "default": "", + "value": "A red ceramic teapot on a wooden table beside a window, soft morning light, detailed photograph.", + "fieldOptions": { + "exampleAttribution": "MoDiff task example" + } + }, + "max_sequence_length": { + "label": "Maximum Sequence Length", + "type": "int", + "default": 8192, + "min": 1, + "max": 8192, + "step": 1 + }, + "text_encoder_out_layers": { + "label": "Text Encoder Layers", + "type": "int", + "display": "select", + "default": [4, 8, 12, 16, 20, 24, 28, 32], + "options": [ + { + "schemaVersion": 1, + "value": "0", + "label": "0", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "1", + "label": "1", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "2", + "label": "2", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "3", + "label": "3", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "4", + "label": "4", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "5", + "label": "5", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "6", + "label": "6", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "7", + "label": "7", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "8", + "label": "8", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "9", + "label": "9", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "10", + "label": "10", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "11", + "label": "11", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "12", + "label": "12", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "13", + "label": "13", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "14", + "label": "14", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "15", + "label": "15", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "16", + "label": "16", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "17", + "label": "17", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "18", + "label": "18", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "19", + "label": "19", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "20", + "label": "20", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "21", + "label": "21", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "22", + "label": "22", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "23", + "label": "23", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "24", + "label": "24", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "25", + "label": "25", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "26", + "label": "26", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "27", + "label": "27", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "28", + "label": "28", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "29", + "label": "29", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "30", + "label": "30", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "31", + "label": "31", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "32", + "label": "32", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + } + ], + "fieldOptions": { + "multiple": true, + "tupleValue": true, + "tupleLength": 8 + } + }, + "embeddings": { + "label": "Text Embeddings", + "type": "embeddings", + "display": "output" + }, + "doc": { + "label": "Doc", + "type": "string", + "display": "output" + }, + "layout_conditioning": { + "label": "Layout Conditioning", + "type": "layout_conditioning", + "display": "layout", + "fieldOptions": { + "layoutConditioning": { + "schemaVersion": 2, + "sourceRegions": false, + "supportsBoundSourceRegions": true + } + }, + "default": null + }, + "reference_binding": { + "label": "Reference Binding", + "type": "reference_conditioning", + "display": "input", + "fieldOptions": { + "referenceBinding": { + "schemaVersion": 1, + "maxReferences": 10 + } + }, + "default": null + } + }, + "time": [0, 0, 0], + "memory": [0, 0, 0], + "cache": false + } + }, + { + "operation": { + "pipelineClass": "Flux3DistilledModularPipeline", + "task": "text_to_image", + "operationId": "diffusion.denoise", + "nodeKey": "modules.ModularDiffusers.Denoise", + "nodeType": "denoise", + "blockName": "denoise", + "decomposition": "block", + "support": "declared", + "ports": [ + { + "name": "embeddings", + "semanticName": "embeddings", + "direction": "input", + "roles": ["value"], + "types": ["embeddings"], + "required": true, + "hidden": false, + "semantics": { + "kind": "conditioning", + "scope": "Flux3DistilledModularPipeline", + "state": null, + "owner": "same_loader", + "members": [] + } + }, + { + "name": "width", + "semanticName": "width", + "direction": "input", + "roles": ["value"], + "types": ["int"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "height", + "semanticName": "height", + "direction": "input", + "roles": ["value"], + "types": ["int"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "seed", + "semanticName": "seed", + "direction": "input", + "roles": ["value"], + "types": ["int"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "num_inference_steps", + "semanticName": "num_inference_steps", + "direction": "input", + "roles": ["value"], + "types": ["int"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "num_images_per_prompt", + "semanticName": "num_images_per_prompt", + "direction": "input", + "roles": ["value"], + "types": ["int"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "image_cond_latents", + "semanticName": "image_cond_latents", + "direction": "input", + "roles": ["value"], + "types": ["latents"], + "required": false, + "hidden": false, + "semantics": { + "kind": "latents", + "scope": "Flux3DistilledModularPipeline", + "state": null, + "owner": "same_loader", + "members": [] + } + }, + { + "name": "unet", + "semanticName": "unet", + "direction": "input", + "roles": ["component"], + "types": ["diffusers_auto_model"], + "required": true, + "hidden": false, + "semantics": { + "kind": "component", + "scope": "Flux3DistilledModularPipeline", + "state": null, + "owner": "same_loader", + "members": [ + { + "name": "transformer", + "type": "diffusers.models.transformers.transformer_flux3.Flux3Transformer2DModel" + } + ] + } + }, + { + "name": "scheduler", + "semanticName": "scheduler", + "direction": "input", + "roles": ["component"], + "types": ["diffusers_auto_model"], + "required": true, + "hidden": false, + "semantics": { + "kind": "component", + "scope": "Flux3DistilledModularPipeline", + "state": null, + "owner": "same_loader", + "members": [ + { + "name": "scheduler", + "type": "diffusers.schedulers.scheduling_flow_match_euler_discrete.FlowMatchEulerDiscreteScheduler" + } + ] + } + }, + { + "name": "latents", + "semanticName": "latents", + "direction": "output", + "roles": ["value"], + "types": ["latents"], + "required": false, + "hidden": false, + "semantics": { + "kind": "latents", + "scope": "Flux3DistilledModularPipeline", + "state": null, + "owner": "same_loader", + "members": [] + } + }, + { + "name": "doc", + "semanticName": "doc", + "direction": "output", + "roles": ["value"], + "types": ["string"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "reference_binding", + "semanticName": "reference_binding", + "direction": "input", + "roles": ["value"], + "types": ["reference_conditioning"], + "required": false, + "hidden": false, + "semantics": { + "kind": "opaque", + "scope": "Flux3DistilledModularPipeline", + "state": null, + "owner": "none", + "members": [] + } + } + ], + "workflowId": "text2image", + "binding": { + "values": {}, + "pipelineClass": "Flux3DistilledModularPipeline" + } + }, + "node": { + "module": "modules.ModularDiffusers", + "action": "Denoise", + "type": "custom", + "label": "Denoise", + "category": "sampler", + "description": "", + "resizable": true, + "skipParamsCheck": true, + "style": {}, + "params": { + "unet": { + "label": "Denoise Model *", + "display": "input", + "type": "diffusers_auto_model", + "required": true, + "onSignal": [ + "update_node", + { + "action": "signal", + "target": "guider" + }, + { + "action": "signal", + "target": "controlnet_bundle" + } + ], + "signalCompatibility": { + "role": "denoiser" + } + }, + "embeddings": { + "label": "Text Embeddings *", + "type": "embeddings", + "display": "input" + }, + "width": { + "label": "Width", + "type": "int", + "default": 1024, + "min": 64, + "step": 16, + "value": 1024 + }, + "height": { + "label": "Height", + "type": "int", + "default": 1024, + "min": 64, + "step": 16, + "value": 1024 + }, + "seed": { + "label": "Seed", + "type": "int", + "display": "random", + "default": 0, + "min": 0, + "max": 4294967295 + }, + "num_inference_steps": { + "label": "Steps", + "type": "int", + "display": "slider", + "default": 16, + "min": 1, + "max": 100, + "value": 16 + }, + "num_images_per_prompt": { + "label": "Images Per Prompt", + "type": "int", + "default": 1, + "min": 1, + "max": 8, + "step": 1 + }, + "image_cond_latents": { + "label": "Reference Latents", + "type": "latents", + "display": "input" + }, + "scheduler": { + "label": "Scheduler *", + "type": "diffusers_auto_model", + "display": "input", + "signalCompatibility": { + "role": "scheduler" + } + }, + "latents": { + "label": "Latents", + "type": "latents", + "display": "output" + }, + "doc": { + "label": "Doc", + "type": "string", + "display": "output" + }, + "reference_binding": { + "label": "Reference Binding", + "type": "reference_conditioning", + "display": "input", + "fieldOptions": { + "referenceBinding": { + "schemaVersion": 1, + "maxReferences": 10 + } + }, + "default": null + } + }, + "time": [0, 0, 0], + "memory": [0, 0, 0], + "cache": false + } + }, + { + "operation": { + "pipelineClass": "Flux3DistilledModularPipeline", + "task": "text_to_image", + "operationId": "diffusion.decode_latents", + "nodeKey": "modules.ModularDiffusers.DecodeLatents", + "nodeType": "decoder", + "blockName": "decode", + "decomposition": "block", + "support": "declared", + "ports": [ + { + "name": "latents", + "semanticName": "latents", + "direction": "input", + "roles": ["value"], + "types": ["latents"], + "required": true, + "hidden": false, + "semantics": { + "kind": "latents", + "scope": "Flux3DistilledModularPipeline", + "state": null, + "owner": "same_loader", + "members": [] + } + }, + { + "name": "vae", + "semanticName": "vae", + "direction": "input", + "roles": ["component"], + "types": ["diffusers_auto_model"], + "required": true, + "hidden": false, + "semantics": { + "kind": "component", + "scope": "Flux3DistilledModularPipeline", + "state": null, + "owner": "same_loader", + "members": [ + { + "name": "vae", + "type": "diffusers.models.autoencoders.autoencoder_kl_flux2.AutoencoderKLFlux2" + } + ] + } + }, + { + "name": "images", + "semanticName": "images", + "direction": "output", + "roles": ["value"], + "types": ["image"], + "required": false, + "hidden": false, + "semantics": { + "kind": "media", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "doc", + "semanticName": "doc", + "direction": "output", + "roles": ["value"], + "types": ["string"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + } + ], + "workflowId": "text2image", + "binding": { + "values": {}, + "pipelineClass": "Flux3DistilledModularPipeline" + } + }, + "node": { + "module": "modules.ModularDiffusers", + "action": "DecodeLatents", + "type": "custom", + "label": "Decode Latents", + "category": "sampler", + "description": "", + "resizable": true, + "skipParamsCheck": true, + "style": {}, + "params": { + "vae": { + "label": "VAE *", + "display": "input", + "type": "diffusers_auto_model", + "onSignal": "update_node", + "signalCompatibility": { + "role": "vae" + } + }, + "latents": { + "label": "Latents *", + "type": "latents", + "display": "input" + }, + "images": { + "label": "Images", + "type": "image", + "display": "output" + }, + "doc": { + "label": "Doc", + "type": "string", + "display": "output" + } + }, + "time": [0, 0, 0], + "memory": [0, 0, 0], + "cache": false + } + } + ], + "edges": [ + { + "source": "diffusion.load_models", + "sourceHandle": "text_encoders", + "target": "diffusion.encode_prompt", + "targetHandle": "text_encoders" + }, + { + "source": "diffusion.load_models", + "sourceHandle": "scheduler", + "target": "diffusion.denoise", + "targetHandle": "scheduler" + }, + { + "source": "diffusion.load_models", + "sourceHandle": "unet_out", + "target": "diffusion.denoise", + "targetHandle": "unet" + }, + { + "source": "diffusion.load_models", + "sourceHandle": "vae_out", + "target": "diffusion.decode_latents", + "targetHandle": "vae" + }, + { + "source": "diffusion.encode_prompt", + "sourceHandle": "embeddings", + "target": "diffusion.denoise", + "targetHandle": "embeddings" + }, + { + "source": "diffusion.denoise", + "sourceHandle": "latents", + "target": "diffusion.decode_latents", + "targetHandle": "latents" + } + ], + "requiredInputs": [ + { + "operationId": "diffusion.encode_prompt", + "field": "prompt" + } + ], + "sharedInputs": [], + "upstreamBlocks": ["text_encoder", "denoise", "decode"], + "authoring": { + "schemaVersion": 1, + "canonicalizationVersion": 1, + "id": "flux3-klein:text-to-image:prompt-preview-fp32-authoring:v3", + "baseSpecId": "flux3-klein:modular:text-to-image:v1", + "baseSpecContentHash": "studio-spec-v1-6697a7f5", + "executionProfileIds": ["flux3-klein:modular"], + "roles": [ + ["models", "modules.ModularDiffusers.ModelsLoader", -720, -80], + ["prompt", "modules.ModularDiffusers.EncodePrompt", -360, -240], + ["denoise", "modules.ModularDiffusers.Denoise", 80, -80], + ["decode", "modules.ModularDiffusers.DecodeLatents", 440, -80], + ["preview", "modules.Image.Preview", 800, -80] + ], + "edges": [ + ["models", "text_encoders", "prompt", "text_encoders"], + ["models", "unet_out", "denoise", "unet"], + ["models", "scheduler", "denoise", "scheduler"], + ["models", "vae_out", "decode", "vae"], + ["prompt", "embeddings", "denoise", "embeddings"], + ["denoise", "latents", "decode", "latents"], + ["decode", "images", "preview", "image"] + ], + "bindings": [ + ["models", "model_type", "pipelineClass"], + ["models", "repo_id", "artifact"], + ["models", "revision", "defaultRevision"], + ["models", "dtype", "dtype"], + ["models", "device", "device"], + ["models", "auto_offload", "autoOffload"], + ["models", "offload_mode", "offloadMode"], + ["models", "trust_remote_code", "false"], + ["prompt", "prompt", "prompt"], + ["denoise", "width", "width"], + ["denoise", "height", "height"], + ["denoise", "seed", "seed"], + ["denoise", "num_inference_steps", "steps"], + ["prompt", "max_sequence_length", "maxSequenceLength"], + ["models", "weight_format", "weightFormat"] + ], + "initialValues": [], + "ancillaryOperations": [ + { + "schemaVersion": 1, + "id": "flux3-klein:text-to-image:prompt-preview-fp32-authoring:v3:preview", + "parent": { + "authoringRecipeId": "flux3-klein:text-to-image:prompt-preview-fp32-authoring:v3", + "baseSpecId": "flux3-klein:modular:text-to-image:v1", + "baseSpecContentHash": "studio-spec-v1-6697a7f5", + "executionProfileId": "flux3-klein:modular", + "pipelineClass": "Flux3DistilledModularPipeline", + "task": "text_to_image" + }, + "executionPurpose": "explicit_preview", + "roles": [ + ["provider", "modules.HuggingFaceTransformers.LoadImageTextToTextModel", -720, -400], + ["proposal", "modules.HuggingFaceTransformers.GenerateImageVideoText", -360, -400] + ], + "edges": [["provider", "model", "proposal", "model"]], + "bindings": { + "owner": { + "role": "prompt", + "promptField": "prompt", + "layoutField": "layout_conditioning", + "referenceSource": null + }, + "request": { + "role": "proposal", + "promptField": "prompt", + "layoutField": "layout_conditioning", + "imagesField": "images" + }, + "output": { + "role": "proposal", + "field": "proposal_summary" + } + }, + "initialValues": [ + [ + "provider", + "model_id", + { + "source": "hub", + "value": "black-forest-labs/flux-3-image-klein-pup" + } + ], + ["provider", "revision", "3f3edb52b2c55de0d49feab28598b68f7f8e4830"], + ["proposal", "operation", "enhance_prompt_append_details"], + ["provider", "dtype", "float32"], + ["provider", "device", "cuda:0"], + ["provider", "quantization_mode", "none"], + ["proposal", "max_input_tokens", 4096] + ], + "fieldOverrides": [ + [ + "proposal", + "enhancement_max_new_tokens", + { + "hidden": false + } + ], + [ + "proposal", + "max_new_tokens", + { + "hidden": true + } + ] + ], + "adapter": { + "id": "transformers-prompt-enhancement-v1", + "declarationSha256": "sha256:2a3d4685988b418115008bbb95fb3e948097580c0bedd2940ea3fe1e40254dc2" + }, + "verification": { + "schemaVersion": 1, + "adapter": { + "id": "transformers-prompt-enhancement-v1", + "declarationSha256": "sha256:2a3d4685988b418115008bbb95fb3e948097580c0bedd2940ea3fe1e40254dc2" + }, + "runtimeInputs": { + "role": "provider", + "modelField": "model_id", + "revisionField": "revision", + "dtypeField": "dtype", + "deviceField": "device", + "quantizationField": "quantization_mode" + }, + "requestInputs": { + "role": "proposal", + "operationField": "operation", + "maxNewTokensField": "enhancement_max_new_tokens", + "minNewTokensField": "min_new_tokens", + "maxInputTokensField": "max_input_tokens", + "maxImagePixelsField": "max_image_pixels" + }, + "supportedPromptModes": ["t2i", "i2i"], + "systemPromptsSha256": "sha256:b5da3ed8bc04ab59dbdb747930f7dbff847e868903fed8028f85ee1a4ac82fb4", + "systemPromptSha256ByMode": { + "t2i": "8b235a421bce2213d11ada01f5a1244443dd72303ffbb4cc9e5a0d8b0de5ab6f", + "i2i": "95cec384d5b6d341caa9fb3f2c7ca45ee80c2364b3a95d4044aebf976f6dd3bf", + "t2i_bbox": "5f513d8ce5838732919f9e645507aa20ff373e88bf93132c768e063c9db3151f", + "i2i_bbox": "9ad10f947e401337cf155cac0518cc428159ef16f2f029f48aae2aaab8380a5e" + }, + "chatTemplateSha256": "sha256:a4aee8afcf2e0711942cf848899be66016f8d14a889ff9ede07bca099c28f715", + "modelReceipt": { + "schemaVersion": 1, + "library": "transformers", + "task": "image-video-to-text", + "source": { + "kind": "hub", + "repository": "black-forest-labs/flux-3-image-klein-pup", + "revision": "3f3edb52b2c55de0d49feab28598b68f7f8e4830" + }, + "loader": { + "preprocessorAutoClass": "AutoProcessor", + "modelAutoClass": "AutoModelForImageTextToText" + }, + "security": { + "localFilesOnly": true, + "trustRemoteCode": false, + "safetensorsOnly": true, + "hostedInference": false + }, + "runtime": { + "transformersVersion": "5.18.0", + "preprocessorClass": "Qwen3VLProcessor", + "modelClass": "Qwen3_5ForConditionalGeneration", + "modelType": "qwen3_5", + "architectures": ["Qwen3_5ForConditionalGeneration"] + } + }, + "quantizationRecipes": [ + { + "mode": "none" + }, + { + "mode": "bnb_4bit", + "quantType": "nf4", + "doubleQuant": true, + "computeDtype": "bfloat16", + "skipModules": ["lm_head", "model.visual"] + } + ], + "layoutRequestSuffixSha256": "sha256:5c48f090514be3472650c23ccd5f6cc19077bf68cd163338aaf6903f720a7561" + }, + "sourceRegions": false, + "layoutPolicy": "append-details-preserve-layout-v1", + "contentHash": "studio-ancillary-v1-d04610d7" + } + ], + "contentHash": "studio-authoring-v1-3145a6be" + } + }, + { + "schemaVersion": 1, + "pipelineClass": "Flux3DistilledModularPipeline", + "task": "text_to_image", + "workflowId": "text2image", + "nodes": [ + { + "operation": { + "pipelineClass": "Flux3DistilledModularPipeline", + "task": "text_to_image", + "operationId": "diffusion.load_models", + "nodeKey": "modules.ModularDiffusers.ModelsLoader", + "nodeType": "loader", + "blockName": null, + "decomposition": "loader", + "support": "declared", + "ports": [ + { + "name": "model_type", + "semanticName": "model_type", + "direction": "input", + "roles": ["value"], + "types": ["string"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "repo_id", + "semanticName": "repo_id", + "direction": "input", + "roles": ["value"], + "types": ["string"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "reviewed_variant", + "semanticName": "reviewed_variant", + "direction": "input", + "roles": ["value"], + "types": ["string"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "device", + "semanticName": "device", + "direction": "input", + "roles": ["value"], + "types": ["string"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "attention_backend", + "semanticName": "attention_backend", + "direction": "input", + "roles": ["value"], + "types": ["string"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "vae_slicing", + "semanticName": "vae_slicing", + "direction": "input", + "roles": ["value"], + "types": ["boolean"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "vae_tiling", + "semanticName": "vae_tiling", + "direction": "input", + "roles": ["value"], + "types": ["boolean"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "inpaint_compatibility", + "semanticName": "inpaint_compatibility", + "direction": "input", + "roles": ["value"], + "types": ["string"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "trust_remote_code", + "semanticName": "trust_remote_code", + "direction": "input", + "roles": ["value"], + "types": ["boolean"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "revision", + "semanticName": "revision", + "direction": "input", + "roles": ["value"], + "types": ["string"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "workflow_id", + "semanticName": "workflow_id", + "direction": "input", + "roles": ["value"], + "types": ["string"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "modiff_pipeline_identity", + "semanticName": "modiff_pipeline_identity", + "direction": "input", + "roles": ["value"], + "types": ["object"], + "required": false, + "hidden": true, + "semantics": { + "kind": "opaque", + "scope": "Flux3DistilledModularPipeline", + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "auto_offload", + "semanticName": "auto_offload", + "direction": "input", + "roles": ["value"], + "types": ["boolean"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "offload_mode", + "semanticName": "offload_mode", + "direction": "input", + "roles": ["value"], + "types": ["string"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "weight_loading_mode", + "semanticName": "weight_loading_mode", + "direction": "input", + "roles": ["value"], + "types": ["string"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "weight_format", + "semanticName": "weight_format", + "direction": "input", + "roles": ["value"], + "types": ["string"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "unet", + "semanticName": "unet", + "direction": "input", + "roles": ["component"], + "types": ["diffusers_auto_model"], + "required": false, + "hidden": false, + "semantics": { + "kind": "component", + "scope": "Flux3DistilledModularPipeline", + "state": null, + "owner": "same_loader", + "members": [ + { + "name": "transformer", + "type": "diffusers.models.transformers.transformer_flux3.Flux3Transformer2DModel" + } + ] + } + }, + { + "name": "vae", + "semanticName": "vae", + "direction": "input", + "roles": ["component"], + "types": ["diffusers_auto_model"], + "required": false, + "hidden": false, + "semantics": { + "kind": "component", + "scope": "Flux3DistilledModularPipeline", + "state": null, + "owner": "same_loader", + "members": [ + { + "name": "vae", + "type": "diffusers.models.autoencoders.autoencoder_kl_flux2.AutoencoderKLFlux2" + } + ] + } + }, + { + "name": "controlnet", + "semanticName": "controlnet", + "direction": "input", + "roles": ["component"], + "types": ["diffusers_auto_model"], + "required": false, + "hidden": true, + "semantics": { + "kind": "component", + "scope": "Flux3DistilledModularPipeline", + "state": null, + "owner": "same_loader", + "members": [] + } + }, + { + "name": "lora_list", + "semanticName": "lora_list", + "direction": "input", + "roles": ["value"], + "types": ["custom_lora"], + "required": false, + "hidden": false, + "semantics": { + "kind": "opaque", + "scope": "Flux3DistilledModularPipeline", + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "text_encoders", + "semanticName": "text_encoders", + "direction": "output", + "roles": ["component"], + "types": ["diffusers_auto_models"], + "required": false, + "hidden": false, + "semantics": { + "kind": "component", + "scope": "Flux3DistilledModularPipeline", + "state": null, + "owner": "same_loader", + "members": [ + { + "name": "text_encoder", + "type": "transformers.models.qwen3_vl.modeling_qwen3_vl.Qwen3VLForConditionalGeneration" + }, + { + "name": "tokenizer", + "type": "transformers.models.auto.processing_auto.AutoProcessor" + } + ] + } + }, + { + "name": "unet_out", + "semanticName": "unet_out", + "direction": "output", + "roles": ["component"], + "types": ["diffusers_auto_model"], + "required": false, + "hidden": false, + "semantics": { + "kind": "component", + "scope": "Flux3DistilledModularPipeline", + "state": null, + "owner": "same_loader", + "members": [ + { + "name": "transformer", + "type": "diffusers.models.transformers.transformer_flux3.Flux3Transformer2DModel" + } + ] + } + }, + { + "name": "vae_out", + "semanticName": "vae_out", + "direction": "output", + "roles": ["component"], + "types": ["diffusers_auto_model"], + "required": false, + "hidden": false, + "semantics": { + "kind": "component", + "scope": "Flux3DistilledModularPipeline", + "state": null, + "owner": "same_loader", + "members": [ + { + "name": "vae", + "type": "diffusers.models.autoencoders.autoencoder_kl_flux2.AutoencoderKLFlux2" + } + ] + } + }, + { + "name": "scheduler", + "semanticName": "scheduler", + "direction": "output", + "roles": ["component"], + "types": ["diffusers_auto_model"], + "required": false, + "hidden": false, + "semantics": { + "kind": "component", + "scope": "Flux3DistilledModularPipeline", + "state": null, + "owner": "same_loader", + "members": [ + { + "name": "scheduler", + "type": "diffusers.schedulers.scheduling_flow_match_euler_discrete.FlowMatchEulerDiscreteScheduler" + } + ] + } + }, + { + "name": "image_encoder", + "semanticName": "image_encoder", + "direction": "output", + "roles": ["component"], + "types": ["diffusers_auto_model"], + "required": false, + "hidden": true, + "semantics": { + "kind": "component", + "scope": "Flux3DistilledModularPipeline", + "state": null, + "owner": "same_loader", + "members": [] + } + }, + { + "name": "pipeline_components", + "semanticName": "pipeline_components", + "direction": "output", + "roles": ["component"], + "types": ["diffusers_modular_pipeline_components"], + "required": false, + "hidden": false, + "semantics": { + "kind": "component", + "scope": "Flux3DistilledModularPipeline", + "state": null, + "owner": "same_loader", + "members": [ + { + "name": "image_processor", + "type": "diffusers.modular_pipelines.flux3.image_processor.Flux3ImageProcessor" + }, + { + "name": "scheduler", + "type": "diffusers.schedulers.scheduling_flow_match_euler_discrete.FlowMatchEulerDiscreteScheduler" + }, + { + "name": "text_encoder", + "type": "transformers.models.qwen3_vl.modeling_qwen3_vl.Qwen3VLForConditionalGeneration" + }, + { + "name": "tokenizer", + "type": "transformers.models.auto.processing_auto.AutoProcessor" + }, + { + "name": "transformer", + "type": "diffusers.models.transformers.transformer_flux3.Flux3Transformer2DModel" + }, + { + "name": "vae", + "type": "diffusers.models.autoencoders.autoencoder_kl_flux2.AutoencoderKLFlux2" + } + ] + } + }, + { + "name": "quant_config", + "semanticName": "quant_config", + "direction": "input", + "roles": ["value"], + "types": ["quant_config"], + "required": false, + "hidden": false, + "semantics": { + "kind": "opaque", + "scope": "Flux3DistilledModularPipeline", + "state": null, + "owner": "none", + "members": [] + } + } + ], + "workflowId": "text2image", + "binding": { + "values": { + "model_type": "Flux3DistilledModularPipeline" + }, + "pipelineClass": "Flux3DistilledModularPipeline" + } + }, + "node": { + "module": "modules.ModularDiffusers", + "action": "ModelsLoader", + "type": "custom", + "label": "Load Models", + "category": "loader", + "description": "", + "resizable": true, + "skipParamsCheck": true, + "style": {}, + "params": { + "model_type": { + "label": "Pipeline Type", + "type": "string", + "options": { + "": { + "schemaVersion": 1, + "value": "", + "label": "", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "DummyCustomPipeline": { + "schemaVersion": 1, + "value": "DummyCustomPipeline", + "label": "Custom", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "StableDiffusionXLModularPipeline": { + "schemaVersion": 1, + "value": "StableDiffusionXLModularPipeline", + "label": "Stable Diffusion XL", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "QwenImageModularPipeline": { + "schemaVersion": 1, + "value": "QwenImageModularPipeline", + "label": "Qwen-Image-2512", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "QwenImageEditModularPipeline": { + "schemaVersion": 1, + "value": "QwenImageEditModularPipeline", + "label": "Qwen-Image-Edit", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "QwenImageEditPlusModularPipeline": { + "schemaVersion": 1, + "value": "QwenImageEditPlusModularPipeline", + "label": "Qwen-Image-Edit-2511", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "QwenImageLayeredModularPipeline": { + "schemaVersion": 1, + "value": "QwenImageLayeredModularPipeline", + "label": "Qwen-Image-Layered", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "FluxModularPipeline": { + "schemaVersion": 1, + "value": "FluxModularPipeline", + "label": "Flux", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "FluxKontextModularPipeline": { + "schemaVersion": 1, + "value": "FluxKontextModularPipeline", + "label": "Flux Kontext", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "Flux2ModularPipeline": { + "schemaVersion": 1, + "value": "Flux2ModularPipeline", + "label": "Flux 2", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "Flux2KleinModularPipeline": { + "schemaVersion": 1, + "value": "Flux2KleinModularPipeline", + "label": "Flux 2 Klein Distilled", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "Flux2KleinBaseModularPipeline": { + "schemaVersion": 1, + "value": "Flux2KleinBaseModularPipeline", + "label": "Flux 2 Klein Base", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "Flux3ModularPipeline": { + "schemaVersion": 1, + "value": "Flux3ModularPipeline", + "label": "FLUX 3 Image Klein Base", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "Flux3DistilledModularPipeline": { + "schemaVersion": 1, + "value": "Flux3DistilledModularPipeline", + "label": "FLUX 3 Image Klein", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "ZImageModularPipeline": { + "schemaVersion": 1, + "value": "ZImageModularPipeline", + "label": "Z-Image", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "WanModularPipeline": { + "schemaVersion": 1, + "value": "WanModularPipeline", + "label": "WAN2 T2V", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "WanImage2VideoModularPipeline": { + "schemaVersion": 1, + "value": "WanImage2VideoModularPipeline", + "label": "WAN2 I2V", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "MiniMaxMusic3ModularPipeline": { + "schemaVersion": 1, + "value": "MiniMaxMusic3ModularPipeline", + "label": "MiniMax Music 3", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "MiniMaxH3ModularPipeline": { + "schemaVersion": 1, + "value": "MiniMaxH3ModularPipeline", + "label": "MiniMax H3", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "AnimaModularPipeline": { + "schemaVersion": 1, + "value": "AnimaModularPipeline", + "label": "Anima", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "ErnieImageModularPipeline": { + "schemaVersion": 1, + "value": "ErnieImageModularPipeline", + "label": "ERNIE Image Turbo", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "HeliosModularPipeline": { + "schemaVersion": 1, + "value": "HeliosModularPipeline", + "label": "Helios", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "HeliosPyramidModularPipeline": { + "schemaVersion": 1, + "value": "HeliosPyramidModularPipeline", + "label": "Helios Pyramid", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "HeliosPyramidDistilledModularPipeline": { + "schemaVersion": 1, + "value": "HeliosPyramidDistilledModularPipeline", + "label": "Helios Pyramid Distilled", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "HunyuanVideo15ModularPipeline": { + "schemaVersion": 1, + "value": "HunyuanVideo15ModularPipeline", + "label": "HunyuanVideo 1.5", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "WanAnimate2ModularPipeline": { + "schemaVersion": 1, + "value": "WanAnimate2ModularPipeline", + "label": "Wan Animate 2", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "WanAnimate2DistilledModularPipeline": { + "schemaVersion": 1, + "value": "WanAnimate2DistilledModularPipeline", + "label": "Wan Animate 2 Distilled", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "Cosmos3OmniModularPipeline": { + "schemaVersion": 1, + "value": "Cosmos3OmniModularPipeline", + "label": "Cosmos 3 Nano", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "Cosmos3DistilledModularPipeline": { + "schemaVersion": 1, + "value": "Cosmos3DistilledModularPipeline", + "label": "Cosmos 3 Distilled", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "Ideogram4ModularPipeline": { + "schemaVersion": 1, + "value": "Ideogram4ModularPipeline", + "label": "Ideogram 4 (Contract only)", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "Krea2ModularPipeline": { + "schemaVersion": 1, + "value": "Krea2ModularPipeline", + "label": "Krea 2 (Contract only)", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "Krea2TurboModularPipeline": { + "schemaVersion": 1, + "value": "Krea2TurboModularPipeline", + "label": "Krea 2 Turbo (Contract only)", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "StableDiffusion3ModularPipeline": { + "schemaVersion": 1, + "value": "StableDiffusion3ModularPipeline", + "label": "Stable Diffusion 3 (Contract only)", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "LTX25ModularPipeline": { + "schemaVersion": 1, + "value": "LTX25ModularPipeline", + "label": "LTX-2.5 (Contract only)", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + } + }, + "onChange": "set_filters", + "description": "Selects the Modular Diffusers pipeline class. This filters compatible checkpoints and publishes the component contract used by connected nodes; it is not the model checkpoint itself.", + "value": "Flux3DistilledModularPipeline" + }, + "repo_id": { + "label": "Repository ID", + "display": "modelselect", + "type": "string", + "value": { + "source": "hub", + "value": "black-forest-labs/flux-3-image-klein" + }, + "fieldOptions": { + "noValidation": true, + "sources": ["hub", "local"], + "filter": { + "hub": { + "className": ["Flux3DistilledModularPipeline"] + } + } + }, + "onChange": "refresh_pipeline_identity" + }, + "reviewed_variant": { + "label": "Model", + "type": "string", + "value": "black-forest-labs/flux-3-image-klein", + "options": [ + { + "schemaVersion": 1, + "value": "black-forest-labs/flux-3-image-klein", + "label": "black-forest-labs/flux-3-image-klein", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + } + ], + "hidden": true, + "fieldOptions": { + "controlTier": "essential" + }, + "description": "Select an immutable, reviewed checkpoint for this exact Modular Diffusers pipeline family. Changing it does not replace the workflow graph or reset its parameters." + }, + "dtype": { + "label": "dtype", + "options": [ + { + "schemaVersion": 1, + "value": "float32", + "label": "float32", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "float16", + "label": "float16", + "compatibility": "incompatible", + "availability": "unavailable", + "installationState": "unavailable", + "disabledReason": "float16 is not supported by the active runtime." + }, + { + "schemaVersion": 1, + "value": "bfloat16", + "label": "bfloat16", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + } + ], + "value": "bfloat16" + }, + "device": { + "label": "Device", + "type": "string", + "value": "cpu:0", + "options": { + "cpu:0": { + "schemaVersion": 1, + "value": "cpu:0", + "label": "cpu:0", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "cpu": { + "schemaVersion": 1, + "value": "cpu", + "label": "cpu", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + } + } + }, + "attention_backend": { + "label": "Attention Backend", + "type": "string", + "default": "inherit", + "options": [ + { + "schemaVersion": 1, + "value": "inherit", + "label": "inherit", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "auto", + "label": "auto", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "native", + "label": "native", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "_native_math", + "label": "_native_math", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + } + ], + "description": "Inherit preserves existing native component defaults; explicit choices use the ordinary Diffusers attention API." + }, + "vae_slicing": { + "label": "VAE Slicing", + "type": "boolean", + "default": null, + "hidden": true, + "description": "An unset policy preserves the native VAE configuration; templates may bind an explicit boolean." + }, + "vae_tiling": { + "label": "VAE Tiling", + "type": "boolean", + "default": null, + "hidden": true, + "description": "An unset policy preserves the native VAE configuration; templates may bind an explicit boolean." + }, + "inpaint_compatibility": { + "label": "Inpaint Compatibility", + "type": "string", + "default": "native", + "hidden": true, + "options": [ + { + "schemaVersion": 1, + "value": "native", + "label": "native", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "whole_v1", + "label": "whole_v1", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + } + ], + "description": "Technical compatibility selection for the reviewed Qwen Edit inpainting candidate; existing nodes retain native policy." + }, + "trust_remote_code": { + "label": "Trust Remote Code", + "type": "boolean", + "value": false, + "description": "Repository code execution is disabled; keep this off for contract preview.", + "onChange": "refresh_pipeline_identity" + }, + "revision": { + "label": "Revision", + "type": "string", + "value": "8454017f9ebaada30c998fccd9f67a80c7580f68", + "description": "Required exact 40-character commit hash for Hub custom contracts.", + "onChange": "refresh_pipeline_identity" + }, + "workflow_id": { + "label": "Reviewed Workflow", + "type": "string", + "value": "text2image", + "hidden": true, + "description": "Exact reviewed component partition selected by a first-party Cluster Node." + }, + "modiff_pipeline_identity": { + "label": "Custom Pipeline Identity", + "type": "object", + "value": null, + "hidden": true + }, + "refresh_pipeline_identity_button": { + "label": "Review and Refresh Custom Contract", + "display": "ui_button", + "value": false, + "hidden": true, + "onChange": "refresh_pipeline_identity" + }, + "auto_offload": { + "label": "Enable Auto Offload", + "type": "boolean", + "value": true + }, + "offload_mode": { + "label": "Offload Mode", + "type": "string", + "options": [ + { + "schemaVersion": 1, + "value": "auto_cpu", + "label": "auto_cpu", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "none", + "label": "none", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "model_cpu", + "label": "model_cpu", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "group_cpu", + "label": "group_cpu", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "group_disk", + "label": "group_disk", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + } + ], + "value": "model_cpu", + "default": "model_cpu" + }, + "weight_loading_mode": { + "label": "Weight Loading", + "type": "string", + "default": "cpu", + "options": [ + { + "schemaVersion": 1, + "value": "cpu", + "label": "cpu", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "cuda", + "label": "cuda", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + } + ], + "fieldOptions": { + "controlTier": "advanced" + }, + "description": "Load weights on CPU or CUDA before disk offload. CUDA loading needs room for a complete component and is available only for supported models." + }, + "weight_format": { + "label": "Weight Format", + "type": "string", + "default": "native", + "options": [ + { + "schemaVersion": 1, + "value": "native", + "label": "native", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "fp8r", + "label": "fp8r", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "nvfp4", + "label": "nvfp4", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + } + ], + "hidden": false, + "fieldOptions": { + "controlTier": "advanced" + }, + "description": "Select a backend-declared immutable component format. Missing reviewed files must be installed through Model Manager." + }, + "unet": { + "label": "Denoise Model", + "display": "input", + "type": "diffusers_auto_model", + "hidden": false + }, + "vae": { + "label": "VAE", + "display": "input", + "type": "diffusers_auto_model", + "hidden": false + }, + "controlnet": { + "label": "ControlNet", + "display": "input", + "type": "diffusers_auto_model", + "hidden": true + }, + "lora_list": { + "label": "Lora", + "display": "input", + "type": "custom_lora" + }, + "text_encoders": { + "label": "Text Encoders", + "display": "output", + "type": "diffusers_auto_models", + "signal": { + "direction": "output", + "origin": "modiff_pipeline_identity", + "value": "Flux3DistilledModularPipeline" + }, + "connectionRole": "text_encoders", + "hidden": false + }, + "unet_out": { + "label": "Denoise Model", + "display": "output", + "type": "diffusers_auto_model", + "signal": { + "direction": "output", + "origin": "modiff_pipeline_identity", + "value": "Flux3DistilledModularPipeline" + }, + "connectionRole": "denoiser", + "hidden": false + }, + "vae_out": { + "label": "VAE", + "display": "output", + "type": "diffusers_auto_model", + "signal": { + "direction": "output", + "origin": "modiff_pipeline_identity", + "value": "Flux3DistilledModularPipeline" + }, + "connectionRole": "vae", + "hidden": false + }, + "scheduler": { + "label": "Scheduler", + "display": "output", + "type": "diffusers_auto_model", + "signal": { + "direction": "output", + "origin": "modiff_pipeline_identity", + "value": "Flux3DistilledModularPipeline" + }, + "connectionRole": "scheduler", + "hidden": false + }, + "image_encoder": { + "label": "Image Encoder", + "display": "output", + "type": "diffusers_auto_model", + "signal": { + "direction": "output", + "origin": "modiff_pipeline_identity", + "value": "Flux3DistilledModularPipeline" + }, + "connectionRole": "image_encoder", + "hidden": true + }, + "pipeline_components": { + "label": "Pipeline Components", + "display": "output", + "type": "diffusers_modular_pipeline_components", + "signal": { + "direction": "output", + "origin": "modiff_pipeline_identity", + "value": "Flux3DistilledModularPipeline" + }, + "connectionRole": "pipeline_components", + "hidden": false + }, + "quant_config": { + "label": "Quant Config", + "display": "input", + "type": "quant_config" + } + }, + "time": [0, 0, 0], + "memory": [0, 0, 0], + "cache": false + } + }, + { + "operation": { + "pipelineClass": "Flux3DistilledModularPipeline", + "task": "text_to_image", + "operationId": "diffusion.encode_prompt", + "nodeKey": "modules.ModularDiffusers.EncodePrompt", + "nodeType": "text_encoder", + "blockName": "text_encoder", + "decomposition": "block", + "support": "declared", + "ports": [ + { + "name": "prompt", + "semanticName": "prompt", + "direction": "input", + "roles": ["value"], + "types": ["string"], + "required": true, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "max_sequence_length", + "semanticName": "max_sequence_length", + "direction": "input", + "roles": ["value"], + "types": ["int"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "text_encoder_out_layers", + "semanticName": "text_encoder_out_layers", + "direction": "input", + "roles": ["value"], + "types": ["int"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "text_encoders", + "semanticName": "text_encoders", + "direction": "input", + "roles": ["component"], + "types": ["diffusers_auto_models"], + "required": true, + "hidden": false, + "semantics": { + "kind": "component", + "scope": "Flux3DistilledModularPipeline", + "state": null, + "owner": "same_loader", + "members": [ + { + "name": "text_encoder", + "type": "transformers.models.qwen3_vl.modeling_qwen3_vl.Qwen3VLForConditionalGeneration" + }, + { + "name": "tokenizer", + "type": "transformers.models.auto.processing_auto.AutoProcessor" + } + ] + } + }, + { + "name": "embeddings", + "semanticName": "embeddings", + "direction": "output", + "roles": ["value"], + "types": ["embeddings"], + "required": false, + "hidden": false, + "semantics": { + "kind": "conditioning", + "scope": "Flux3DistilledModularPipeline", + "state": null, + "owner": "same_loader", + "members": [] + } + }, + { + "name": "doc", + "semanticName": "doc", + "direction": "output", + "roles": ["value"], + "types": ["string"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "layout_conditioning", + "semanticName": "layout_conditioning", + "direction": "input", + "roles": ["value"], + "types": ["layout_conditioning"], + "required": false, + "hidden": false, + "semantics": { + "kind": "opaque", + "scope": "Flux3DistilledModularPipeline", + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "reference_binding", + "semanticName": "reference_binding", + "direction": "input", + "roles": ["value"], + "types": ["reference_conditioning"], + "required": false, + "hidden": false, + "semantics": { + "kind": "opaque", + "scope": "Flux3DistilledModularPipeline", + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "prompt_input", + "semanticName": "prompt", + "direction": "input", + "roles": ["value"], + "types": ["string"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + } + ], + "workflowId": "text2image", + "binding": { + "values": {}, + "pipelineClass": "Flux3DistilledModularPipeline" + } + }, + "node": { + "module": "modules.ModularDiffusers", + "action": "EncodePrompt", + "type": "custom", + "label": "Encode Prompt", + "category": "embedding", + "description": "", + "resizable": true, + "skipParamsCheck": true, + "style": {}, + "params": { + "text_encoders": { + "label": "Text Encoders *", + "required": true, + "type": "diffusers_auto_models", + "display": "input", + "onSignal": "update_node", + "signalCompatibility": { + "role": "text_encoders" + } + }, + "prompt_input": { + "label": "Prompt Input", + "type": "string", + "display": "input", + "description": "Optional connected prompt. When connected, this replaces the inline Prompt value." + }, + "guider": { + "label": "Guider", + "type": "custom_guider", + "display": "input", + "hidden": true, + "description": "Shared Diffusers guidance used by prompt encoding and denoising when the selected pipeline supports it." + }, + "layout_reference_summary": { + "label": "Bound Reference Summary", + "type": "string", + "display": "output", + "hidden": true, + "description": "Display-only ordered reference identities and actual preprocessing sizes from the current encoder cache." + }, + "prompt": { + "label": "Prompt *", + "type": "string", + "display": "textarea", + "default": "", + "value": "A red ceramic teapot on a wooden table beside a window, soft morning light, detailed photograph.", + "fieldOptions": { + "exampleAttribution": "MoDiff task example" + } + }, + "max_sequence_length": { + "label": "Maximum Sequence Length", + "type": "int", + "default": 8192, + "min": 1, + "max": 8192, + "step": 1 + }, + "text_encoder_out_layers": { + "label": "Text Encoder Layers", + "type": "int", + "display": "select", + "default": [4, 8, 12, 16, 20, 24, 28, 32], + "options": [ + { + "schemaVersion": 1, + "value": "0", + "label": "0", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "1", + "label": "1", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "2", + "label": "2", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "3", + "label": "3", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "4", + "label": "4", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "5", + "label": "5", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "6", + "label": "6", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "7", + "label": "7", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "8", + "label": "8", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "9", + "label": "9", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "10", + "label": "10", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "11", + "label": "11", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "12", + "label": "12", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "13", + "label": "13", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "14", + "label": "14", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "15", + "label": "15", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "16", + "label": "16", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "17", + "label": "17", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "18", + "label": "18", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "19", + "label": "19", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "20", + "label": "20", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "21", + "label": "21", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "22", + "label": "22", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "23", + "label": "23", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "24", + "label": "24", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "25", + "label": "25", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "26", + "label": "26", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "27", + "label": "27", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "28", + "label": "28", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "29", + "label": "29", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "30", + "label": "30", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "31", + "label": "31", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "32", + "label": "32", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + } + ], + "fieldOptions": { + "multiple": true, + "tupleValue": true, + "tupleLength": 8 + } + }, + "embeddings": { + "label": "Text Embeddings", + "type": "embeddings", + "display": "output" + }, + "doc": { + "label": "Doc", + "type": "string", + "display": "output" + }, + "layout_conditioning": { + "label": "Layout Conditioning", + "type": "layout_conditioning", + "display": "layout", + "fieldOptions": { + "layoutConditioning": { + "schemaVersion": 2, + "sourceRegions": false, + "supportsBoundSourceRegions": true + } + }, + "default": null + }, + "reference_binding": { + "label": "Reference Binding", + "type": "reference_conditioning", + "display": "input", + "fieldOptions": { + "referenceBinding": { + "schemaVersion": 1, + "maxReferences": 10 + } + }, + "default": null + } + }, + "time": [0, 0, 0], + "memory": [0, 0, 0], + "cache": false + } + }, + { + "operation": { + "pipelineClass": "Flux3DistilledModularPipeline", + "task": "text_to_image", + "operationId": "diffusion.denoise", + "nodeKey": "modules.ModularDiffusers.Denoise", + "nodeType": "denoise", + "blockName": "denoise", + "decomposition": "block", + "support": "declared", + "ports": [ + { + "name": "embeddings", + "semanticName": "embeddings", + "direction": "input", + "roles": ["value"], + "types": ["embeddings"], + "required": true, + "hidden": false, + "semantics": { + "kind": "conditioning", + "scope": "Flux3DistilledModularPipeline", + "state": null, + "owner": "same_loader", + "members": [] + } + }, + { + "name": "width", + "semanticName": "width", + "direction": "input", + "roles": ["value"], + "types": ["int"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "height", + "semanticName": "height", + "direction": "input", + "roles": ["value"], + "types": ["int"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "seed", + "semanticName": "seed", + "direction": "input", + "roles": ["value"], + "types": ["int"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "num_inference_steps", + "semanticName": "num_inference_steps", + "direction": "input", + "roles": ["value"], + "types": ["int"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "num_images_per_prompt", + "semanticName": "num_images_per_prompt", + "direction": "input", + "roles": ["value"], + "types": ["int"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "image_cond_latents", + "semanticName": "image_cond_latents", + "direction": "input", + "roles": ["value"], + "types": ["latents"], + "required": false, + "hidden": false, + "semantics": { + "kind": "latents", + "scope": "Flux3DistilledModularPipeline", + "state": null, + "owner": "same_loader", + "members": [] + } + }, + { + "name": "unet", + "semanticName": "unet", + "direction": "input", + "roles": ["component"], + "types": ["diffusers_auto_model"], + "required": true, + "hidden": false, + "semantics": { + "kind": "component", + "scope": "Flux3DistilledModularPipeline", + "state": null, + "owner": "same_loader", + "members": [ + { + "name": "transformer", + "type": "diffusers.models.transformers.transformer_flux3.Flux3Transformer2DModel" + } + ] + } + }, + { + "name": "scheduler", + "semanticName": "scheduler", + "direction": "input", + "roles": ["component"], + "types": ["diffusers_auto_model"], + "required": true, + "hidden": false, + "semantics": { + "kind": "component", + "scope": "Flux3DistilledModularPipeline", + "state": null, + "owner": "same_loader", + "members": [ + { + "name": "scheduler", + "type": "diffusers.schedulers.scheduling_flow_match_euler_discrete.FlowMatchEulerDiscreteScheduler" + } + ] + } + }, + { + "name": "latents", + "semanticName": "latents", + "direction": "output", + "roles": ["value"], + "types": ["latents"], + "required": false, + "hidden": false, + "semantics": { + "kind": "latents", + "scope": "Flux3DistilledModularPipeline", + "state": null, + "owner": "same_loader", + "members": [] + } + }, + { + "name": "doc", + "semanticName": "doc", + "direction": "output", + "roles": ["value"], + "types": ["string"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "reference_binding", + "semanticName": "reference_binding", + "direction": "input", + "roles": ["value"], + "types": ["reference_conditioning"], + "required": false, + "hidden": false, + "semantics": { + "kind": "opaque", + "scope": "Flux3DistilledModularPipeline", + "state": null, + "owner": "none", + "members": [] + } + } + ], + "workflowId": "text2image", + "binding": { + "values": {}, + "pipelineClass": "Flux3DistilledModularPipeline" + } + }, + "node": { + "module": "modules.ModularDiffusers", + "action": "Denoise", + "type": "custom", + "label": "Denoise", + "category": "sampler", + "description": "", + "resizable": true, + "skipParamsCheck": true, + "style": {}, + "params": { + "unet": { + "label": "Denoise Model *", + "display": "input", + "type": "diffusers_auto_model", + "required": true, + "onSignal": [ + "update_node", + { + "action": "signal", + "target": "guider" + }, + { + "action": "signal", + "target": "controlnet_bundle" + } + ], + "signalCompatibility": { + "role": "denoiser" + } + }, + "embeddings": { + "label": "Text Embeddings *", + "type": "embeddings", + "display": "input" + }, + "width": { + "label": "Width", + "type": "int", + "default": 1024, + "min": 64, + "step": 16, + "value": 1024 + }, + "height": { + "label": "Height", + "type": "int", + "default": 1024, + "min": 64, + "step": 16, + "value": 1024 + }, + "seed": { + "label": "Seed", + "type": "int", + "display": "random", + "default": 0, + "min": 0, + "max": 4294967295 + }, + "num_inference_steps": { + "label": "Steps", + "type": "int", + "display": "slider", + "default": 16, + "min": 1, + "max": 100, + "value": 16 + }, + "num_images_per_prompt": { + "label": "Images Per Prompt", + "type": "int", + "default": 1, + "min": 1, + "max": 8, + "step": 1 + }, + "image_cond_latents": { + "label": "Reference Latents", + "type": "latents", + "display": "input" + }, + "scheduler": { + "label": "Scheduler *", + "type": "diffusers_auto_model", + "display": "input", + "signalCompatibility": { + "role": "scheduler" + } + }, + "latents": { + "label": "Latents", + "type": "latents", + "display": "output" + }, + "doc": { + "label": "Doc", + "type": "string", + "display": "output" + }, + "reference_binding": { + "label": "Reference Binding", + "type": "reference_conditioning", + "display": "input", + "fieldOptions": { + "referenceBinding": { + "schemaVersion": 1, + "maxReferences": 10 + } + }, + "default": null + } + }, + "time": [0, 0, 0], + "memory": [0, 0, 0], + "cache": false + } + }, + { + "operation": { + "pipelineClass": "Flux3DistilledModularPipeline", + "task": "text_to_image", + "operationId": "diffusion.decode_latents", + "nodeKey": "modules.ModularDiffusers.DecodeLatents", + "nodeType": "decoder", + "blockName": "decode", + "decomposition": "block", + "support": "declared", + "ports": [ + { + "name": "latents", + "semanticName": "latents", + "direction": "input", + "roles": ["value"], + "types": ["latents"], + "required": true, + "hidden": false, + "semantics": { + "kind": "latents", + "scope": "Flux3DistilledModularPipeline", + "state": null, + "owner": "same_loader", + "members": [] + } + }, + { + "name": "vae", + "semanticName": "vae", + "direction": "input", + "roles": ["component"], + "types": ["diffusers_auto_model"], + "required": true, + "hidden": false, + "semantics": { + "kind": "component", + "scope": "Flux3DistilledModularPipeline", + "state": null, + "owner": "same_loader", + "members": [ + { + "name": "vae", + "type": "diffusers.models.autoencoders.autoencoder_kl_flux2.AutoencoderKLFlux2" + } + ] + } + }, + { + "name": "images", + "semanticName": "images", + "direction": "output", + "roles": ["value"], + "types": ["image"], + "required": false, + "hidden": false, + "semantics": { + "kind": "media", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "doc", + "semanticName": "doc", + "direction": "output", + "roles": ["value"], + "types": ["string"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + } + ], + "workflowId": "text2image", + "binding": { + "values": {}, + "pipelineClass": "Flux3DistilledModularPipeline" + } + }, + "node": { + "module": "modules.ModularDiffusers", + "action": "DecodeLatents", + "type": "custom", + "label": "Decode Latents", + "category": "sampler", + "description": "", + "resizable": true, + "skipParamsCheck": true, + "style": {}, + "params": { + "vae": { + "label": "VAE *", + "display": "input", + "type": "diffusers_auto_model", + "onSignal": "update_node", + "signalCompatibility": { + "role": "vae" + } + }, + "latents": { + "label": "Latents *", + "type": "latents", + "display": "input" + }, + "images": { + "label": "Images", + "type": "image", + "display": "output" + }, + "doc": { + "label": "Doc", + "type": "string", + "display": "output" + } + }, + "time": [0, 0, 0], + "memory": [0, 0, 0], + "cache": false + } + } + ], + "edges": [ + { + "source": "diffusion.load_models", + "sourceHandle": "text_encoders", + "target": "diffusion.encode_prompt", + "targetHandle": "text_encoders" + }, + { + "source": "diffusion.load_models", + "sourceHandle": "scheduler", + "target": "diffusion.denoise", + "targetHandle": "scheduler" + }, + { + "source": "diffusion.load_models", + "sourceHandle": "unet_out", + "target": "diffusion.denoise", + "targetHandle": "unet" + }, + { + "source": "diffusion.load_models", + "sourceHandle": "vae_out", + "target": "diffusion.decode_latents", + "targetHandle": "vae" + }, + { + "source": "diffusion.encode_prompt", + "sourceHandle": "embeddings", + "target": "diffusion.denoise", + "targetHandle": "embeddings" + }, + { + "source": "diffusion.denoise", + "sourceHandle": "latents", + "target": "diffusion.decode_latents", + "targetHandle": "latents" + } + ], + "requiredInputs": [ + { + "operationId": "diffusion.encode_prompt", + "field": "prompt" + } + ], + "sharedInputs": [], + "upstreamBlocks": ["text_encoder", "denoise", "decode"], + "authoring": { + "schemaVersion": 1, + "canonicalizationVersion": 1, + "id": "flux3-klein:text-to-image:prompt-preview-fp32-authoring:v1", + "baseSpecId": "flux3-klein:modular:text-to-image:v1", + "baseSpecContentHash": "studio-spec-v1-6697a7f5", + "executionProfileIds": ["flux3-klein:modular"], + "roles": [ + ["models", "modules.ModularDiffusers.ModelsLoader", -720, -80], + ["prompt", "modules.ModularDiffusers.EncodePrompt", -360, -240], + ["denoise", "modules.ModularDiffusers.Denoise", 80, -80], + ["decode", "modules.ModularDiffusers.DecodeLatents", 440, -80], + ["preview", "modules.Image.Preview", 800, -80] + ], + "edges": [ + ["models", "text_encoders", "prompt", "text_encoders"], + ["models", "unet_out", "denoise", "unet"], + ["models", "scheduler", "denoise", "scheduler"], + ["models", "vae_out", "decode", "vae"], + ["prompt", "embeddings", "denoise", "embeddings"], + ["denoise", "latents", "decode", "latents"], + ["decode", "images", "preview", "image"] + ], + "bindings": [ + ["models", "model_type", "pipelineClass"], + ["models", "repo_id", "artifact"], + ["models", "revision", "defaultRevision"], + ["models", "dtype", "dtype"], + ["models", "device", "device"], + ["models", "auto_offload", "autoOffload"], + ["models", "offload_mode", "offloadMode"], + ["models", "trust_remote_code", "false"], + ["prompt", "prompt", "prompt"], + ["denoise", "width", "width"], + ["denoise", "height", "height"], + ["denoise", "seed", "seed"], + ["denoise", "num_inference_steps", "steps"], + ["prompt", "max_sequence_length", "maxSequenceLength"], + ["models", "weight_format", "weightFormat"] + ], + "initialValues": [], + "ancillaryOperations": [ + { + "schemaVersion": 1, + "id": "flux3-klein:text-to-image:prompt-preview-fp32-authoring:v1:preview", + "parent": { + "authoringRecipeId": "flux3-klein:text-to-image:prompt-preview-fp32-authoring:v1", + "baseSpecId": "flux3-klein:modular:text-to-image:v1", + "baseSpecContentHash": "studio-spec-v1-6697a7f5", + "executionProfileId": "flux3-klein:modular", + "pipelineClass": "Flux3DistilledModularPipeline", + "task": "text_to_image" + }, + "executionPurpose": "explicit_preview", + "roles": [ + ["provider", "modules.HuggingFaceTransformers.LoadImageTextToTextModel", -720, -400], + ["proposal", "modules.HuggingFaceTransformers.GenerateImageVideoText", -360, -400] + ], + "edges": [["provider", "model", "proposal", "model"]], + "bindings": { + "owner": { + "role": "prompt", + "promptField": "prompt", + "layoutField": "layout_conditioning", + "referenceSource": null + }, + "request": { + "role": "proposal", + "promptField": "prompt", + "layoutField": "layout_conditioning", + "imagesField": "images" + }, + "output": { + "role": "proposal", + "field": "proposal_summary" + } + }, + "initialValues": [ + [ + "provider", + "model_id", + { + "source": "hub", + "value": "black-forest-labs/flux-3-image-klein-pup" + } + ], + ["provider", "revision", "3f3edb52b2c55de0d49feab28598b68f7f8e4830"], + ["proposal", "operation", "enhance_prompt"], + ["provider", "dtype", "float32"], + ["provider", "device", "cuda:0"], + ["provider", "quantization_mode", "none"], + ["proposal", "max_input_tokens", 4096] + ], + "fieldOverrides": [ + [ + "proposal", + "enhancement_max_new_tokens", + { + "hidden": false + } + ], + [ + "proposal", + "max_new_tokens", + { + "hidden": true + } + ] + ], + "adapter": { + "id": "transformers-prompt-enhancement-v1", + "declarationSha256": "sha256:2a3d4685988b418115008bbb95fb3e948097580c0bedd2940ea3fe1e40254dc2" + }, + "verification": { + "schemaVersion": 1, + "adapter": { + "id": "transformers-prompt-enhancement-v1", + "declarationSha256": "sha256:2a3d4685988b418115008bbb95fb3e948097580c0bedd2940ea3fe1e40254dc2" + }, + "runtimeInputs": { + "role": "provider", + "modelField": "model_id", + "revisionField": "revision", + "dtypeField": "dtype", + "deviceField": "device", + "quantizationField": "quantization_mode" + }, + "requestInputs": { + "role": "proposal", + "operationField": "operation", + "maxNewTokensField": "enhancement_max_new_tokens", + "minNewTokensField": "min_new_tokens", + "maxInputTokensField": "max_input_tokens", + "maxImagePixelsField": "max_image_pixels" + }, + "supportedPromptModes": ["t2i", "i2i"], + "systemPromptsSha256": "sha256:b5da3ed8bc04ab59dbdb747930f7dbff847e868903fed8028f85ee1a4ac82fb4", + "systemPromptSha256ByMode": { + "t2i": "8b235a421bce2213d11ada01f5a1244443dd72303ffbb4cc9e5a0d8b0de5ab6f", + "i2i": "95cec384d5b6d341caa9fb3f2c7ca45ee80c2364b3a95d4044aebf976f6dd3bf", + "t2i_bbox": "5f513d8ce5838732919f9e645507aa20ff373e88bf93132c768e063c9db3151f", + "i2i_bbox": "9ad10f947e401337cf155cac0518cc428159ef16f2f029f48aae2aaab8380a5e" + }, + "chatTemplateSha256": "sha256:a4aee8afcf2e0711942cf848899be66016f8d14a889ff9ede07bca099c28f715", + "modelReceipt": { + "schemaVersion": 1, + "library": "transformers", + "task": "image-video-to-text", + "source": { + "kind": "hub", + "repository": "black-forest-labs/flux-3-image-klein-pup", + "revision": "3f3edb52b2c55de0d49feab28598b68f7f8e4830" + }, + "loader": { + "preprocessorAutoClass": "AutoProcessor", + "modelAutoClass": "AutoModelForImageTextToText" + }, + "security": { + "localFilesOnly": true, + "trustRemoteCode": false, + "safetensorsOnly": true, + "hostedInference": false + }, + "runtime": { + "transformersVersion": "5.18.0", + "preprocessorClass": "Qwen3VLProcessor", + "modelClass": "Qwen3_5ForConditionalGeneration", + "modelType": "qwen3_5", + "architectures": ["Qwen3_5ForConditionalGeneration"] + } + }, + "quantizationRecipes": [ + { + "mode": "none" + }, + { + "mode": "bnb_4bit", + "quantType": "nf4", + "doubleQuant": true, + "computeDtype": "bfloat16", + "skipModules": ["lm_head", "model.visual"] + } + ] + }, + "sourceRegions": false, + "contentHash": "studio-ancillary-v1-0c2ed3be" + } + ], + "contentHash": "studio-authoring-v1-ae520eff" + } + }, + { + "schemaVersion": 1, + "pipelineClass": "Flux3DistilledModularPipeline", + "task": "text_to_image", + "workflowId": "text2image", + "nodes": [ + { + "operation": { + "pipelineClass": "Flux3DistilledModularPipeline", + "task": "text_to_image", + "operationId": "diffusion.load_models", + "nodeKey": "modules.ModularDiffusers.ModelsLoader", + "nodeType": "loader", + "blockName": null, + "decomposition": "loader", + "support": "declared", + "ports": [ + { + "name": "model_type", + "semanticName": "model_type", + "direction": "input", + "roles": ["value"], + "types": ["string"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "repo_id", + "semanticName": "repo_id", + "direction": "input", + "roles": ["value"], + "types": ["string"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "reviewed_variant", + "semanticName": "reviewed_variant", + "direction": "input", + "roles": ["value"], + "types": ["string"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "device", + "semanticName": "device", + "direction": "input", + "roles": ["value"], + "types": ["string"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "attention_backend", + "semanticName": "attention_backend", + "direction": "input", + "roles": ["value"], + "types": ["string"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "vae_slicing", + "semanticName": "vae_slicing", + "direction": "input", + "roles": ["value"], + "types": ["boolean"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "vae_tiling", + "semanticName": "vae_tiling", + "direction": "input", + "roles": ["value"], + "types": ["boolean"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "inpaint_compatibility", + "semanticName": "inpaint_compatibility", + "direction": "input", + "roles": ["value"], + "types": ["string"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "trust_remote_code", + "semanticName": "trust_remote_code", + "direction": "input", + "roles": ["value"], + "types": ["boolean"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "revision", + "semanticName": "revision", + "direction": "input", + "roles": ["value"], + "types": ["string"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "workflow_id", + "semanticName": "workflow_id", + "direction": "input", + "roles": ["value"], + "types": ["string"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "modiff_pipeline_identity", + "semanticName": "modiff_pipeline_identity", + "direction": "input", + "roles": ["value"], + "types": ["object"], + "required": false, + "hidden": true, + "semantics": { + "kind": "opaque", + "scope": "Flux3DistilledModularPipeline", + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "auto_offload", + "semanticName": "auto_offload", + "direction": "input", + "roles": ["value"], + "types": ["boolean"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "offload_mode", + "semanticName": "offload_mode", + "direction": "input", + "roles": ["value"], + "types": ["string"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "weight_loading_mode", + "semanticName": "weight_loading_mode", + "direction": "input", + "roles": ["value"], + "types": ["string"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "weight_format", + "semanticName": "weight_format", + "direction": "input", + "roles": ["value"], + "types": ["string"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "unet", + "semanticName": "unet", + "direction": "input", + "roles": ["component"], + "types": ["diffusers_auto_model"], + "required": false, + "hidden": false, + "semantics": { + "kind": "component", + "scope": "Flux3DistilledModularPipeline", + "state": null, + "owner": "same_loader", + "members": [ + { + "name": "transformer", + "type": "diffusers.models.transformers.transformer_flux3.Flux3Transformer2DModel" + } + ] + } + }, + { + "name": "vae", + "semanticName": "vae", + "direction": "input", + "roles": ["component"], + "types": ["diffusers_auto_model"], + "required": false, + "hidden": false, + "semantics": { + "kind": "component", + "scope": "Flux3DistilledModularPipeline", + "state": null, + "owner": "same_loader", + "members": [ + { + "name": "vae", + "type": "diffusers.models.autoencoders.autoencoder_kl_flux2.AutoencoderKLFlux2" + } + ] + } + }, + { + "name": "controlnet", + "semanticName": "controlnet", + "direction": "input", + "roles": ["component"], + "types": ["diffusers_auto_model"], + "required": false, + "hidden": true, + "semantics": { + "kind": "component", + "scope": "Flux3DistilledModularPipeline", + "state": null, + "owner": "same_loader", + "members": [] + } + }, + { + "name": "lora_list", + "semanticName": "lora_list", + "direction": "input", + "roles": ["value"], + "types": ["custom_lora"], + "required": false, + "hidden": false, + "semantics": { + "kind": "opaque", + "scope": "Flux3DistilledModularPipeline", + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "text_encoders", + "semanticName": "text_encoders", + "direction": "output", + "roles": ["component"], + "types": ["diffusers_auto_models"], + "required": false, + "hidden": false, + "semantics": { + "kind": "component", + "scope": "Flux3DistilledModularPipeline", + "state": null, + "owner": "same_loader", + "members": [ + { + "name": "text_encoder", + "type": "transformers.models.qwen3_vl.modeling_qwen3_vl.Qwen3VLForConditionalGeneration" + }, + { + "name": "tokenizer", + "type": "transformers.models.auto.processing_auto.AutoProcessor" + } + ] + } + }, + { + "name": "unet_out", + "semanticName": "unet_out", + "direction": "output", + "roles": ["component"], + "types": ["diffusers_auto_model"], + "required": false, + "hidden": false, + "semantics": { + "kind": "component", + "scope": "Flux3DistilledModularPipeline", + "state": null, + "owner": "same_loader", + "members": [ + { + "name": "transformer", + "type": "diffusers.models.transformers.transformer_flux3.Flux3Transformer2DModel" + } + ] + } + }, + { + "name": "vae_out", + "semanticName": "vae_out", + "direction": "output", + "roles": ["component"], + "types": ["diffusers_auto_model"], + "required": false, + "hidden": false, + "semantics": { + "kind": "component", + "scope": "Flux3DistilledModularPipeline", + "state": null, + "owner": "same_loader", + "members": [ + { + "name": "vae", + "type": "diffusers.models.autoencoders.autoencoder_kl_flux2.AutoencoderKLFlux2" + } + ] + } + }, + { + "name": "scheduler", + "semanticName": "scheduler", + "direction": "output", + "roles": ["component"], + "types": ["diffusers_auto_model"], + "required": false, + "hidden": false, + "semantics": { + "kind": "component", + "scope": "Flux3DistilledModularPipeline", + "state": null, + "owner": "same_loader", + "members": [ + { + "name": "scheduler", + "type": "diffusers.schedulers.scheduling_flow_match_euler_discrete.FlowMatchEulerDiscreteScheduler" + } + ] + } + }, + { + "name": "image_encoder", + "semanticName": "image_encoder", + "direction": "output", + "roles": ["component"], + "types": ["diffusers_auto_model"], + "required": false, + "hidden": true, + "semantics": { + "kind": "component", + "scope": "Flux3DistilledModularPipeline", + "state": null, + "owner": "same_loader", + "members": [] + } + }, + { + "name": "pipeline_components", + "semanticName": "pipeline_components", + "direction": "output", + "roles": ["component"], + "types": ["diffusers_modular_pipeline_components"], + "required": false, + "hidden": false, + "semantics": { + "kind": "component", + "scope": "Flux3DistilledModularPipeline", + "state": null, + "owner": "same_loader", + "members": [ + { + "name": "image_processor", + "type": "diffusers.modular_pipelines.flux3.image_processor.Flux3ImageProcessor" + }, + { + "name": "scheduler", + "type": "diffusers.schedulers.scheduling_flow_match_euler_discrete.FlowMatchEulerDiscreteScheduler" + }, + { + "name": "text_encoder", + "type": "transformers.models.qwen3_vl.modeling_qwen3_vl.Qwen3VLForConditionalGeneration" + }, + { + "name": "tokenizer", + "type": "transformers.models.auto.processing_auto.AutoProcessor" + }, + { + "name": "transformer", + "type": "diffusers.models.transformers.transformer_flux3.Flux3Transformer2DModel" + }, + { + "name": "vae", + "type": "diffusers.models.autoencoders.autoencoder_kl_flux2.AutoencoderKLFlux2" + } + ] + } + }, + { + "name": "quant_config", + "semanticName": "quant_config", + "direction": "input", + "roles": ["value"], + "types": ["quant_config"], + "required": false, + "hidden": false, + "semantics": { + "kind": "opaque", + "scope": "Flux3DistilledModularPipeline", + "state": null, + "owner": "none", + "members": [] + } + } + ], + "workflowId": "text2image", + "binding": { + "values": { + "model_type": "Flux3DistilledModularPipeline" + }, + "pipelineClass": "Flux3DistilledModularPipeline" + } + }, + "node": { + "module": "modules.ModularDiffusers", + "action": "ModelsLoader", + "type": "custom", + "label": "Load Models", + "category": "loader", + "description": "", + "resizable": true, + "skipParamsCheck": true, + "style": {}, + "params": { + "model_type": { + "label": "Pipeline Type", + "type": "string", + "options": { + "": { + "schemaVersion": 1, + "value": "", + "label": "", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "DummyCustomPipeline": { + "schemaVersion": 1, + "value": "DummyCustomPipeline", + "label": "Custom", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "StableDiffusionXLModularPipeline": { + "schemaVersion": 1, + "value": "StableDiffusionXLModularPipeline", + "label": "Stable Diffusion XL", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "QwenImageModularPipeline": { + "schemaVersion": 1, + "value": "QwenImageModularPipeline", + "label": "Qwen-Image-2512", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "QwenImageEditModularPipeline": { + "schemaVersion": 1, + "value": "QwenImageEditModularPipeline", + "label": "Qwen-Image-Edit", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "QwenImageEditPlusModularPipeline": { + "schemaVersion": 1, + "value": "QwenImageEditPlusModularPipeline", + "label": "Qwen-Image-Edit-2511", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "QwenImageLayeredModularPipeline": { + "schemaVersion": 1, + "value": "QwenImageLayeredModularPipeline", + "label": "Qwen-Image-Layered", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "FluxModularPipeline": { + "schemaVersion": 1, + "value": "FluxModularPipeline", + "label": "Flux", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "FluxKontextModularPipeline": { + "schemaVersion": 1, + "value": "FluxKontextModularPipeline", + "label": "Flux Kontext", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "Flux2ModularPipeline": { + "schemaVersion": 1, + "value": "Flux2ModularPipeline", + "label": "Flux 2", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "Flux2KleinModularPipeline": { + "schemaVersion": 1, + "value": "Flux2KleinModularPipeline", + "label": "Flux 2 Klein Distilled", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "Flux2KleinBaseModularPipeline": { + "schemaVersion": 1, + "value": "Flux2KleinBaseModularPipeline", + "label": "Flux 2 Klein Base", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "Flux3ModularPipeline": { + "schemaVersion": 1, + "value": "Flux3ModularPipeline", + "label": "FLUX 3 Image Klein Base", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "Flux3DistilledModularPipeline": { + "schemaVersion": 1, + "value": "Flux3DistilledModularPipeline", + "label": "FLUX 3 Image Klein", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "ZImageModularPipeline": { + "schemaVersion": 1, + "value": "ZImageModularPipeline", + "label": "Z-Image", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "WanModularPipeline": { + "schemaVersion": 1, + "value": "WanModularPipeline", + "label": "WAN2 T2V", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "WanImage2VideoModularPipeline": { + "schemaVersion": 1, + "value": "WanImage2VideoModularPipeline", + "label": "WAN2 I2V", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "MiniMaxMusic3ModularPipeline": { + "schemaVersion": 1, + "value": "MiniMaxMusic3ModularPipeline", + "label": "MiniMax Music 3", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "MiniMaxH3ModularPipeline": { + "schemaVersion": 1, + "value": "MiniMaxH3ModularPipeline", + "label": "MiniMax H3", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "AnimaModularPipeline": { + "schemaVersion": 1, + "value": "AnimaModularPipeline", + "label": "Anima", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "ErnieImageModularPipeline": { + "schemaVersion": 1, + "value": "ErnieImageModularPipeline", + "label": "ERNIE Image Turbo", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "HeliosModularPipeline": { + "schemaVersion": 1, + "value": "HeliosModularPipeline", + "label": "Helios", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "HeliosPyramidModularPipeline": { + "schemaVersion": 1, + "value": "HeliosPyramidModularPipeline", + "label": "Helios Pyramid", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "HeliosPyramidDistilledModularPipeline": { + "schemaVersion": 1, + "value": "HeliosPyramidDistilledModularPipeline", + "label": "Helios Pyramid Distilled", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "HunyuanVideo15ModularPipeline": { + "schemaVersion": 1, + "value": "HunyuanVideo15ModularPipeline", + "label": "HunyuanVideo 1.5", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "WanAnimate2ModularPipeline": { + "schemaVersion": 1, + "value": "WanAnimate2ModularPipeline", + "label": "Wan Animate 2", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "WanAnimate2DistilledModularPipeline": { + "schemaVersion": 1, + "value": "WanAnimate2DistilledModularPipeline", + "label": "Wan Animate 2 Distilled", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "Cosmos3OmniModularPipeline": { + "schemaVersion": 1, + "value": "Cosmos3OmniModularPipeline", + "label": "Cosmos 3 Nano", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "Cosmos3DistilledModularPipeline": { + "schemaVersion": 1, + "value": "Cosmos3DistilledModularPipeline", + "label": "Cosmos 3 Distilled", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "Ideogram4ModularPipeline": { + "schemaVersion": 1, + "value": "Ideogram4ModularPipeline", + "label": "Ideogram 4 (Contract only)", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "Krea2ModularPipeline": { + "schemaVersion": 1, + "value": "Krea2ModularPipeline", + "label": "Krea 2 (Contract only)", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "Krea2TurboModularPipeline": { + "schemaVersion": 1, + "value": "Krea2TurboModularPipeline", + "label": "Krea 2 Turbo (Contract only)", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "StableDiffusion3ModularPipeline": { + "schemaVersion": 1, + "value": "StableDiffusion3ModularPipeline", + "label": "Stable Diffusion 3 (Contract only)", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "LTX25ModularPipeline": { + "schemaVersion": 1, + "value": "LTX25ModularPipeline", + "label": "LTX-2.5 (Contract only)", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + } + }, + "onChange": "set_filters", + "description": "Selects the Modular Diffusers pipeline class. This filters compatible checkpoints and publishes the component contract used by connected nodes; it is not the model checkpoint itself.", + "value": "Flux3DistilledModularPipeline" + }, + "repo_id": { + "label": "Repository ID", + "display": "modelselect", + "type": "string", + "value": { + "source": "hub", + "value": "black-forest-labs/flux-3-image-klein" + }, + "fieldOptions": { + "noValidation": true, + "sources": ["hub", "local"], + "filter": { + "hub": { + "className": ["Flux3DistilledModularPipeline"] + } + } + }, + "onChange": "refresh_pipeline_identity" + }, + "reviewed_variant": { + "label": "Model", + "type": "string", + "value": "black-forest-labs/flux-3-image-klein", + "options": [ + { + "schemaVersion": 1, + "value": "black-forest-labs/flux-3-image-klein", + "label": "black-forest-labs/flux-3-image-klein", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + } + ], + "hidden": true, + "fieldOptions": { + "controlTier": "essential" + }, + "description": "Select an immutable, reviewed checkpoint for this exact Modular Diffusers pipeline family. Changing it does not replace the workflow graph or reset its parameters." + }, + "dtype": { + "label": "dtype", + "options": [ + { + "schemaVersion": 1, + "value": "float32", + "label": "float32", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "float16", + "label": "float16", + "compatibility": "incompatible", + "availability": "unavailable", + "installationState": "unavailable", + "disabledReason": "float16 is not supported by the active runtime." + }, + { + "schemaVersion": 1, + "value": "bfloat16", + "label": "bfloat16", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + } + ], + "value": "bfloat16" + }, + "device": { + "label": "Device", + "type": "string", + "value": "cpu:0", + "options": { + "cpu:0": { + "schemaVersion": 1, + "value": "cpu:0", + "label": "cpu:0", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "cpu": { + "schemaVersion": 1, + "value": "cpu", + "label": "cpu", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + } + } + }, + "attention_backend": { + "label": "Attention Backend", + "type": "string", + "default": "inherit", + "options": [ + { + "schemaVersion": 1, + "value": "inherit", + "label": "inherit", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "auto", + "label": "auto", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "native", + "label": "native", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "_native_math", + "label": "_native_math", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + } + ], + "description": "Inherit preserves existing native component defaults; explicit choices use the ordinary Diffusers attention API." + }, + "vae_slicing": { + "label": "VAE Slicing", + "type": "boolean", + "default": null, + "hidden": true, + "description": "An unset policy preserves the native VAE configuration; templates may bind an explicit boolean." + }, + "vae_tiling": { + "label": "VAE Tiling", + "type": "boolean", + "default": null, + "hidden": true, + "description": "An unset policy preserves the native VAE configuration; templates may bind an explicit boolean." + }, + "inpaint_compatibility": { + "label": "Inpaint Compatibility", + "type": "string", + "default": "native", + "hidden": true, + "options": [ + { + "schemaVersion": 1, + "value": "native", + "label": "native", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "whole_v1", + "label": "whole_v1", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + } + ], + "description": "Technical compatibility selection for the reviewed Qwen Edit inpainting candidate; existing nodes retain native policy." + }, + "trust_remote_code": { + "label": "Trust Remote Code", + "type": "boolean", + "value": false, + "description": "Repository code execution is disabled; keep this off for contract preview.", + "onChange": "refresh_pipeline_identity" + }, + "revision": { + "label": "Revision", + "type": "string", + "value": "8454017f9ebaada30c998fccd9f67a80c7580f68", + "description": "Required exact 40-character commit hash for Hub custom contracts.", + "onChange": "refresh_pipeline_identity" + }, + "workflow_id": { + "label": "Reviewed Workflow", + "type": "string", + "value": "text2image", + "hidden": true, + "description": "Exact reviewed component partition selected by a first-party Cluster Node." + }, + "modiff_pipeline_identity": { + "label": "Custom Pipeline Identity", + "type": "object", + "value": null, + "hidden": true + }, + "refresh_pipeline_identity_button": { + "label": "Review and Refresh Custom Contract", + "display": "ui_button", + "value": false, + "hidden": true, + "onChange": "refresh_pipeline_identity" + }, + "auto_offload": { + "label": "Enable Auto Offload", + "type": "boolean", + "value": true + }, + "offload_mode": { + "label": "Offload Mode", + "type": "string", + "options": [ + { + "schemaVersion": 1, + "value": "auto_cpu", + "label": "auto_cpu", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "none", + "label": "none", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "model_cpu", + "label": "model_cpu", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "group_cpu", + "label": "group_cpu", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "group_disk", + "label": "group_disk", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + } + ], + "value": "model_cpu", + "default": "model_cpu" + }, + "weight_loading_mode": { + "label": "Weight Loading", + "type": "string", + "default": "cpu", + "options": [ + { + "schemaVersion": 1, + "value": "cpu", + "label": "cpu", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "cuda", + "label": "cuda", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + } + ], + "fieldOptions": { + "controlTier": "advanced" + }, + "description": "Load weights on CPU or CUDA before disk offload. CUDA loading needs room for a complete component and is available only for supported models." + }, + "weight_format": { + "label": "Weight Format", + "type": "string", + "default": "native", + "options": [ + { + "schemaVersion": 1, + "value": "native", + "label": "native", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "fp8r", + "label": "fp8r", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "nvfp4", + "label": "nvfp4", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + } + ], + "hidden": false, + "fieldOptions": { + "controlTier": "advanced" + }, + "description": "Select a backend-declared immutable component format. Missing reviewed files must be installed through Model Manager." + }, + "unet": { + "label": "Denoise Model", + "display": "input", + "type": "diffusers_auto_model", + "hidden": false + }, + "vae": { + "label": "VAE", + "display": "input", + "type": "diffusers_auto_model", + "hidden": false + }, + "controlnet": { + "label": "ControlNet", + "display": "input", + "type": "diffusers_auto_model", + "hidden": true + }, + "lora_list": { + "label": "Lora", + "display": "input", + "type": "custom_lora" + }, + "text_encoders": { + "label": "Text Encoders", + "display": "output", + "type": "diffusers_auto_models", + "signal": { + "direction": "output", + "origin": "modiff_pipeline_identity", + "value": "Flux3DistilledModularPipeline" + }, + "connectionRole": "text_encoders", + "hidden": false + }, + "unet_out": { + "label": "Denoise Model", + "display": "output", + "type": "diffusers_auto_model", + "signal": { + "direction": "output", + "origin": "modiff_pipeline_identity", + "value": "Flux3DistilledModularPipeline" + }, + "connectionRole": "denoiser", + "hidden": false + }, + "vae_out": { + "label": "VAE", + "display": "output", + "type": "diffusers_auto_model", + "signal": { + "direction": "output", + "origin": "modiff_pipeline_identity", + "value": "Flux3DistilledModularPipeline" + }, + "connectionRole": "vae", + "hidden": false + }, + "scheduler": { + "label": "Scheduler", + "display": "output", + "type": "diffusers_auto_model", + "signal": { + "direction": "output", + "origin": "modiff_pipeline_identity", + "value": "Flux3DistilledModularPipeline" + }, + "connectionRole": "scheduler", + "hidden": false + }, + "image_encoder": { + "label": "Image Encoder", + "display": "output", + "type": "diffusers_auto_model", + "signal": { + "direction": "output", + "origin": "modiff_pipeline_identity", + "value": "Flux3DistilledModularPipeline" + }, + "connectionRole": "image_encoder", + "hidden": true + }, + "pipeline_components": { + "label": "Pipeline Components", + "display": "output", + "type": "diffusers_modular_pipeline_components", + "signal": { + "direction": "output", + "origin": "modiff_pipeline_identity", + "value": "Flux3DistilledModularPipeline" + }, + "connectionRole": "pipeline_components", + "hidden": false + }, + "quant_config": { + "label": "Quant Config", + "display": "input", + "type": "quant_config" + } + }, + "time": [0, 0, 0], + "memory": [0, 0, 0], + "cache": false + } + }, + { + "operation": { + "pipelineClass": "Flux3DistilledModularPipeline", + "task": "text_to_image", + "operationId": "diffusion.encode_prompt", + "nodeKey": "modules.ModularDiffusers.EncodePrompt", + "nodeType": "text_encoder", + "blockName": "text_encoder", + "decomposition": "block", + "support": "declared", + "ports": [ + { + "name": "prompt", + "semanticName": "prompt", + "direction": "input", + "roles": ["value"], + "types": ["string"], + "required": true, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "max_sequence_length", + "semanticName": "max_sequence_length", + "direction": "input", + "roles": ["value"], + "types": ["int"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "text_encoder_out_layers", + "semanticName": "text_encoder_out_layers", + "direction": "input", + "roles": ["value"], + "types": ["int"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "text_encoders", + "semanticName": "text_encoders", + "direction": "input", + "roles": ["component"], + "types": ["diffusers_auto_models"], + "required": true, + "hidden": false, + "semantics": { + "kind": "component", + "scope": "Flux3DistilledModularPipeline", + "state": null, + "owner": "same_loader", + "members": [ + { + "name": "text_encoder", + "type": "transformers.models.qwen3_vl.modeling_qwen3_vl.Qwen3VLForConditionalGeneration" + }, + { + "name": "tokenizer", + "type": "transformers.models.auto.processing_auto.AutoProcessor" + } + ] + } + }, + { + "name": "embeddings", + "semanticName": "embeddings", + "direction": "output", + "roles": ["value"], + "types": ["embeddings"], + "required": false, + "hidden": false, + "semantics": { + "kind": "conditioning", + "scope": "Flux3DistilledModularPipeline", + "state": null, + "owner": "same_loader", + "members": [] + } + }, + { + "name": "doc", + "semanticName": "doc", + "direction": "output", + "roles": ["value"], + "types": ["string"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "layout_conditioning", + "semanticName": "layout_conditioning", + "direction": "input", + "roles": ["value"], + "types": ["layout_conditioning"], + "required": false, + "hidden": false, + "semantics": { + "kind": "opaque", + "scope": "Flux3DistilledModularPipeline", + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "reference_binding", + "semanticName": "reference_binding", + "direction": "input", + "roles": ["value"], + "types": ["reference_conditioning"], + "required": false, + "hidden": false, + "semantics": { + "kind": "opaque", + "scope": "Flux3DistilledModularPipeline", + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "prompt_input", + "semanticName": "prompt", + "direction": "input", + "roles": ["value"], + "types": ["string"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + } + ], + "workflowId": "text2image", + "binding": { + "values": {}, + "pipelineClass": "Flux3DistilledModularPipeline" + } + }, + "node": { + "module": "modules.ModularDiffusers", + "action": "EncodePrompt", + "type": "custom", + "label": "Encode Prompt", + "category": "embedding", + "description": "", + "resizable": true, + "skipParamsCheck": true, + "style": {}, + "params": { + "text_encoders": { + "label": "Text Encoders *", + "required": true, + "type": "diffusers_auto_models", + "display": "input", + "onSignal": "update_node", + "signalCompatibility": { + "role": "text_encoders" + } + }, + "prompt_input": { + "label": "Prompt Input", + "type": "string", + "display": "input", + "description": "Optional connected prompt. When connected, this replaces the inline Prompt value." + }, + "guider": { + "label": "Guider", + "type": "custom_guider", + "display": "input", + "hidden": true, + "description": "Shared Diffusers guidance used by prompt encoding and denoising when the selected pipeline supports it." + }, + "layout_reference_summary": { + "label": "Bound Reference Summary", + "type": "string", + "display": "output", + "hidden": true, + "description": "Display-only ordered reference identities and actual preprocessing sizes from the current encoder cache." + }, + "prompt": { + "label": "Prompt *", + "type": "string", + "display": "textarea", + "default": "", + "value": "A red ceramic teapot on a wooden table beside a window, soft morning light, detailed photograph.", + "fieldOptions": { + "exampleAttribution": "MoDiff task example" + } + }, + "max_sequence_length": { + "label": "Maximum Sequence Length", + "type": "int", + "default": 8192, + "min": 1, + "max": 8192, + "step": 1 + }, + "text_encoder_out_layers": { + "label": "Text Encoder Layers", + "type": "int", + "display": "select", + "default": [4, 8, 12, 16, 20, 24, 28, 32], + "options": [ + { + "schemaVersion": 1, + "value": "0", + "label": "0", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "1", + "label": "1", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "2", + "label": "2", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "3", + "label": "3", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "4", + "label": "4", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "5", + "label": "5", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "6", + "label": "6", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "7", + "label": "7", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "8", + "label": "8", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "9", + "label": "9", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "10", + "label": "10", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "11", + "label": "11", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "12", + "label": "12", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "13", + "label": "13", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "14", + "label": "14", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "15", + "label": "15", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "16", + "label": "16", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "17", + "label": "17", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "18", + "label": "18", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "19", + "label": "19", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "20", + "label": "20", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "21", + "label": "21", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "22", + "label": "22", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "23", + "label": "23", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "24", + "label": "24", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "25", + "label": "25", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "26", + "label": "26", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "27", + "label": "27", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "28", + "label": "28", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "29", + "label": "29", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "30", + "label": "30", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "31", + "label": "31", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "32", + "label": "32", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + } + ], + "fieldOptions": { + "multiple": true, + "tupleValue": true, + "tupleLength": 8 + } + }, + "embeddings": { + "label": "Text Embeddings", + "type": "embeddings", + "display": "output" + }, + "doc": { + "label": "Doc", + "type": "string", + "display": "output" + }, + "layout_conditioning": { + "label": "Layout Conditioning", + "type": "layout_conditioning", + "display": "layout", + "fieldOptions": { + "layoutConditioning": { + "schemaVersion": 2, + "sourceRegions": false, + "supportsBoundSourceRegions": true + } + }, + "default": null + }, + "reference_binding": { + "label": "Reference Binding", + "type": "reference_conditioning", + "display": "input", + "fieldOptions": { + "referenceBinding": { + "schemaVersion": 1, + "maxReferences": 10 + } + }, + "default": null + } + }, + "time": [0, 0, 0], + "memory": [0, 0, 0], + "cache": false + } + }, + { + "operation": { + "pipelineClass": "Flux3DistilledModularPipeline", + "task": "text_to_image", + "operationId": "diffusion.denoise", + "nodeKey": "modules.ModularDiffusers.Denoise", + "nodeType": "denoise", + "blockName": "denoise", + "decomposition": "block", + "support": "declared", + "ports": [ + { + "name": "embeddings", + "semanticName": "embeddings", + "direction": "input", + "roles": ["value"], + "types": ["embeddings"], + "required": true, + "hidden": false, + "semantics": { + "kind": "conditioning", + "scope": "Flux3DistilledModularPipeline", + "state": null, + "owner": "same_loader", + "members": [] + } + }, + { + "name": "width", + "semanticName": "width", + "direction": "input", + "roles": ["value"], + "types": ["int"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "height", + "semanticName": "height", + "direction": "input", + "roles": ["value"], + "types": ["int"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "seed", + "semanticName": "seed", + "direction": "input", + "roles": ["value"], + "types": ["int"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "num_inference_steps", + "semanticName": "num_inference_steps", + "direction": "input", + "roles": ["value"], + "types": ["int"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "num_images_per_prompt", + "semanticName": "num_images_per_prompt", + "direction": "input", + "roles": ["value"], + "types": ["int"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "image_cond_latents", + "semanticName": "image_cond_latents", + "direction": "input", + "roles": ["value"], + "types": ["latents"], + "required": false, + "hidden": false, + "semantics": { + "kind": "latents", + "scope": "Flux3DistilledModularPipeline", + "state": null, + "owner": "same_loader", + "members": [] + } + }, + { + "name": "unet", + "semanticName": "unet", + "direction": "input", + "roles": ["component"], + "types": ["diffusers_auto_model"], + "required": true, + "hidden": false, + "semantics": { + "kind": "component", + "scope": "Flux3DistilledModularPipeline", + "state": null, + "owner": "same_loader", + "members": [ + { + "name": "transformer", + "type": "diffusers.models.transformers.transformer_flux3.Flux3Transformer2DModel" + } + ] + } + }, + { + "name": "scheduler", + "semanticName": "scheduler", + "direction": "input", + "roles": ["component"], + "types": ["diffusers_auto_model"], + "required": true, + "hidden": false, + "semantics": { + "kind": "component", + "scope": "Flux3DistilledModularPipeline", + "state": null, + "owner": "same_loader", + "members": [ + { + "name": "scheduler", + "type": "diffusers.schedulers.scheduling_flow_match_euler_discrete.FlowMatchEulerDiscreteScheduler" + } + ] + } + }, + { + "name": "latents", + "semanticName": "latents", + "direction": "output", + "roles": ["value"], + "types": ["latents"], + "required": false, + "hidden": false, + "semantics": { + "kind": "latents", + "scope": "Flux3DistilledModularPipeline", + "state": null, + "owner": "same_loader", + "members": [] + } + }, + { + "name": "doc", + "semanticName": "doc", + "direction": "output", + "roles": ["value"], + "types": ["string"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "reference_binding", + "semanticName": "reference_binding", + "direction": "input", + "roles": ["value"], + "types": ["reference_conditioning"], + "required": false, + "hidden": false, + "semantics": { + "kind": "opaque", + "scope": "Flux3DistilledModularPipeline", + "state": null, + "owner": "none", + "members": [] + } + } + ], + "workflowId": "text2image", + "binding": { + "values": {}, + "pipelineClass": "Flux3DistilledModularPipeline" + } + }, + "node": { + "module": "modules.ModularDiffusers", + "action": "Denoise", + "type": "custom", + "label": "Denoise", + "category": "sampler", + "description": "", + "resizable": true, + "skipParamsCheck": true, + "style": {}, + "params": { + "unet": { + "label": "Denoise Model *", + "display": "input", + "type": "diffusers_auto_model", + "required": true, + "onSignal": [ + "update_node", + { + "action": "signal", + "target": "guider" + }, + { + "action": "signal", + "target": "controlnet_bundle" + } + ], + "signalCompatibility": { + "role": "denoiser" + } + }, + "embeddings": { + "label": "Text Embeddings *", + "type": "embeddings", + "display": "input" + }, + "width": { + "label": "Width", + "type": "int", + "default": 1024, + "min": 64, + "step": 16, + "value": 1024 + }, + "height": { + "label": "Height", + "type": "int", + "default": 1024, + "min": 64, + "step": 16, + "value": 1024 + }, + "seed": { + "label": "Seed", + "type": "int", + "display": "random", + "default": 0, + "min": 0, + "max": 4294967295 + }, + "num_inference_steps": { + "label": "Steps", + "type": "int", + "display": "slider", + "default": 16, + "min": 1, + "max": 100, + "value": 16 + }, + "num_images_per_prompt": { + "label": "Images Per Prompt", + "type": "int", + "default": 1, + "min": 1, + "max": 8, + "step": 1 + }, + "image_cond_latents": { + "label": "Reference Latents", + "type": "latents", + "display": "input" + }, + "scheduler": { + "label": "Scheduler *", + "type": "diffusers_auto_model", + "display": "input", + "signalCompatibility": { + "role": "scheduler" + } + }, + "latents": { + "label": "Latents", + "type": "latents", + "display": "output" + }, + "doc": { + "label": "Doc", + "type": "string", + "display": "output" + }, + "reference_binding": { + "label": "Reference Binding", + "type": "reference_conditioning", + "display": "input", + "fieldOptions": { + "referenceBinding": { + "schemaVersion": 1, + "maxReferences": 10 + } + }, + "default": null + } + }, + "time": [0, 0, 0], + "memory": [0, 0, 0], + "cache": false + } + }, + { + "operation": { + "pipelineClass": "Flux3DistilledModularPipeline", + "task": "text_to_image", + "operationId": "diffusion.decode_latents", + "nodeKey": "modules.ModularDiffusers.DecodeLatents", + "nodeType": "decoder", + "blockName": "decode", + "decomposition": "block", + "support": "declared", + "ports": [ + { + "name": "latents", + "semanticName": "latents", + "direction": "input", + "roles": ["value"], + "types": ["latents"], + "required": true, + "hidden": false, + "semantics": { + "kind": "latents", + "scope": "Flux3DistilledModularPipeline", + "state": null, + "owner": "same_loader", + "members": [] + } + }, + { + "name": "vae", + "semanticName": "vae", + "direction": "input", + "roles": ["component"], + "types": ["diffusers_auto_model"], + "required": true, + "hidden": false, + "semantics": { + "kind": "component", + "scope": "Flux3DistilledModularPipeline", + "state": null, + "owner": "same_loader", + "members": [ + { + "name": "vae", + "type": "diffusers.models.autoencoders.autoencoder_kl_flux2.AutoencoderKLFlux2" + } + ] + } + }, + { + "name": "images", + "semanticName": "images", + "direction": "output", + "roles": ["value"], + "types": ["image"], + "required": false, + "hidden": false, + "semantics": { + "kind": "media", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "doc", + "semanticName": "doc", + "direction": "output", + "roles": ["value"], + "types": ["string"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + } + ], + "workflowId": "text2image", + "binding": { + "values": {}, + "pipelineClass": "Flux3DistilledModularPipeline" + } + }, + "node": { + "module": "modules.ModularDiffusers", + "action": "DecodeLatents", + "type": "custom", + "label": "Decode Latents", + "category": "sampler", + "description": "", + "resizable": true, + "skipParamsCheck": true, + "style": {}, + "params": { + "vae": { + "label": "VAE *", + "display": "input", + "type": "diffusers_auto_model", + "onSignal": "update_node", + "signalCompatibility": { + "role": "vae" + } + }, + "latents": { + "label": "Latents *", + "type": "latents", + "display": "input" + }, + "images": { + "label": "Images", + "type": "image", + "display": "output" + }, + "doc": { + "label": "Doc", + "type": "string", + "display": "output" + } + }, + "time": [0, 0, 0], + "memory": [0, 0, 0], + "cache": false + } + } + ], + "edges": [ + { + "source": "diffusion.load_models", + "sourceHandle": "text_encoders", + "target": "diffusion.encode_prompt", + "targetHandle": "text_encoders" + }, + { + "source": "diffusion.load_models", + "sourceHandle": "scheduler", + "target": "diffusion.denoise", + "targetHandle": "scheduler" + }, + { + "source": "diffusion.load_models", + "sourceHandle": "unet_out", + "target": "diffusion.denoise", + "targetHandle": "unet" + }, + { + "source": "diffusion.load_models", + "sourceHandle": "vae_out", + "target": "diffusion.decode_latents", + "targetHandle": "vae" + }, + { + "source": "diffusion.encode_prompt", + "sourceHandle": "embeddings", + "target": "diffusion.denoise", + "targetHandle": "embeddings" + }, + { + "source": "diffusion.denoise", + "sourceHandle": "latents", + "target": "diffusion.decode_latents", + "targetHandle": "latents" + } + ], + "requiredInputs": [ + { + "operationId": "diffusion.encode_prompt", + "field": "prompt" + } + ], + "sharedInputs": [], + "upstreamBlocks": ["text_encoder", "denoise", "decode"], + "authoring": { + "schemaVersion": 1, + "canonicalizationVersion": 1, + "id": "flux3-klein:text-to-image:prompt-preview-authoring:v1", + "baseSpecId": "flux3-klein:modular:text-to-image:v1", + "baseSpecContentHash": "studio-spec-v1-6697a7f5", + "executionProfileIds": ["flux3-klein:modular"], + "roles": [ + ["models", "modules.ModularDiffusers.ModelsLoader", -720, -80], + ["prompt", "modules.ModularDiffusers.EncodePrompt", -360, -240], + ["denoise", "modules.ModularDiffusers.Denoise", 80, -80], + ["decode", "modules.ModularDiffusers.DecodeLatents", 440, -80], + ["preview", "modules.Image.Preview", 800, -80] + ], + "edges": [ + ["models", "text_encoders", "prompt", "text_encoders"], + ["models", "unet_out", "denoise", "unet"], + ["models", "scheduler", "denoise", "scheduler"], + ["models", "vae_out", "decode", "vae"], + ["prompt", "embeddings", "denoise", "embeddings"], + ["denoise", "latents", "decode", "latents"], + ["decode", "images", "preview", "image"] + ], + "bindings": [ + ["models", "model_type", "pipelineClass"], + ["models", "repo_id", "artifact"], + ["models", "revision", "defaultRevision"], + ["models", "dtype", "dtype"], + ["models", "device", "device"], + ["models", "auto_offload", "autoOffload"], + ["models", "offload_mode", "offloadMode"], + ["models", "trust_remote_code", "false"], + ["prompt", "prompt", "prompt"], + ["denoise", "width", "width"], + ["denoise", "height", "height"], + ["denoise", "seed", "seed"], + ["denoise", "num_inference_steps", "steps"], + ["prompt", "max_sequence_length", "maxSequenceLength"], + ["models", "weight_format", "weightFormat"] + ], + "initialValues": [], + "ancillaryOperations": [ + { + "schemaVersion": 1, + "id": "flux3-klein:text-to-image:prompt-preview-authoring:v1:preview", + "parent": { + "authoringRecipeId": "flux3-klein:text-to-image:prompt-preview-authoring:v1", + "baseSpecId": "flux3-klein:modular:text-to-image:v1", + "baseSpecContentHash": "studio-spec-v1-6697a7f5", + "executionProfileId": "flux3-klein:modular", + "pipelineClass": "Flux3DistilledModularPipeline", + "task": "text_to_image" + }, + "executionPurpose": "explicit_preview", + "roles": [ + ["provider", "modules.HuggingFaceTransformers.LoadImageTextToTextModel", -720, -400], + ["proposal", "modules.HuggingFaceTransformers.GenerateImageVideoText", -360, -400] + ], + "edges": [["provider", "model", "proposal", "model"]], + "bindings": { + "owner": { + "role": "prompt", + "promptField": "prompt", + "layoutField": "layout_conditioning", + "referenceSource": null + }, + "request": { + "role": "proposal", + "promptField": "prompt", + "layoutField": "layout_conditioning", + "imagesField": "images" + }, + "output": { + "role": "proposal", + "field": "proposal_summary" + } + }, + "initialValues": [ + [ + "provider", + "model_id", + { + "source": "hub", + "value": "black-forest-labs/flux-3-image-klein-pup" + } + ], + ["provider", "revision", "3f3edb52b2c55de0d49feab28598b68f7f8e4830"], + ["proposal", "operation", "enhance_prompt"], + ["provider", "dtype", "bfloat16"], + ["provider", "device", "cuda:0"], + ["provider", "quantization_mode", "bnb_4bit"], + ["proposal", "max_input_tokens", 4096] + ], + "fieldOverrides": [ + [ + "proposal", + "enhancement_max_new_tokens", + { + "hidden": false + } + ], + [ + "proposal", + "max_new_tokens", + { + "hidden": true + } + ] + ], + "adapter": { + "id": "transformers-prompt-enhancement-v1", + "declarationSha256": "sha256:2a3d4685988b418115008bbb95fb3e948097580c0bedd2940ea3fe1e40254dc2" + }, + "verification": { + "schemaVersion": 1, + "adapter": { + "id": "transformers-prompt-enhancement-v1", + "declarationSha256": "sha256:2a3d4685988b418115008bbb95fb3e948097580c0bedd2940ea3fe1e40254dc2" + }, + "runtimeInputs": { + "role": "provider", + "modelField": "model_id", + "revisionField": "revision", + "dtypeField": "dtype", + "deviceField": "device", + "quantizationField": "quantization_mode" + }, + "requestInputs": { + "role": "proposal", + "operationField": "operation", + "maxNewTokensField": "enhancement_max_new_tokens", + "minNewTokensField": "min_new_tokens", + "maxInputTokensField": "max_input_tokens", + "maxImagePixelsField": "max_image_pixels" + }, + "supportedPromptModes": ["t2i", "i2i"], + "systemPromptsSha256": "sha256:b5da3ed8bc04ab59dbdb747930f7dbff847e868903fed8028f85ee1a4ac82fb4", + "systemPromptSha256ByMode": { + "t2i": "8b235a421bce2213d11ada01f5a1244443dd72303ffbb4cc9e5a0d8b0de5ab6f", + "i2i": "95cec384d5b6d341caa9fb3f2c7ca45ee80c2364b3a95d4044aebf976f6dd3bf", + "t2i_bbox": "5f513d8ce5838732919f9e645507aa20ff373e88bf93132c768e063c9db3151f", + "i2i_bbox": "9ad10f947e401337cf155cac0518cc428159ef16f2f029f48aae2aaab8380a5e" + }, + "chatTemplateSha256": "sha256:a4aee8afcf2e0711942cf848899be66016f8d14a889ff9ede07bca099c28f715", + "modelReceipt": { + "schemaVersion": 1, + "library": "transformers", + "task": "image-video-to-text", + "source": { + "kind": "hub", + "repository": "black-forest-labs/flux-3-image-klein-pup", + "revision": "3f3edb52b2c55de0d49feab28598b68f7f8e4830" + }, + "loader": { + "preprocessorAutoClass": "AutoProcessor", + "modelAutoClass": "AutoModelForImageTextToText" + }, + "security": { + "localFilesOnly": true, + "trustRemoteCode": false, + "safetensorsOnly": true, + "hostedInference": false + }, + "runtime": { + "transformersVersion": "5.18.0", + "preprocessorClass": "Qwen3VLProcessor", + "modelClass": "Qwen3_5ForConditionalGeneration", + "modelType": "qwen3_5", + "architectures": ["Qwen3_5ForConditionalGeneration"] + } + }, + "quantizationRecipes": [ + { + "mode": "none" + }, + { + "mode": "bnb_4bit", + "quantType": "nf4", + "doubleQuant": true, + "computeDtype": "bfloat16", + "skipModules": ["lm_head", "model.visual"] + } + ] + }, + "sourceRegions": false, + "contentHash": "studio-ancillary-v1-b46902d2" + } + ], + "contentHash": "studio-authoring-v1-c39b36d8" + } + }, + { + "schemaVersion": 1, + "pipelineClass": "Flux3DistilledModularPipeline", + "task": "edit_image", + "workflowId": "image_conditioned", + "nodes": [ + { + "operation": { + "pipelineClass": "Flux3DistilledModularPipeline", + "task": "edit_image", + "operationId": "diffusion.load_models", + "nodeKey": "modules.ModularDiffusers.ModelsLoader", + "nodeType": "loader", + "blockName": null, + "decomposition": "loader", + "support": "declared", + "ports": [ + { + "name": "model_type", + "semanticName": "model_type", + "direction": "input", + "roles": ["value"], + "types": ["string"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "repo_id", + "semanticName": "repo_id", + "direction": "input", + "roles": ["value"], + "types": ["string"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "reviewed_variant", + "semanticName": "reviewed_variant", + "direction": "input", + "roles": ["value"], + "types": ["string"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "device", + "semanticName": "device", + "direction": "input", + "roles": ["value"], + "types": ["string"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "attention_backend", + "semanticName": "attention_backend", + "direction": "input", + "roles": ["value"], + "types": ["string"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "vae_slicing", + "semanticName": "vae_slicing", + "direction": "input", + "roles": ["value"], + "types": ["boolean"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "vae_tiling", + "semanticName": "vae_tiling", + "direction": "input", + "roles": ["value"], + "types": ["boolean"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "inpaint_compatibility", + "semanticName": "inpaint_compatibility", + "direction": "input", + "roles": ["value"], + "types": ["string"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "trust_remote_code", + "semanticName": "trust_remote_code", + "direction": "input", + "roles": ["value"], + "types": ["boolean"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "revision", + "semanticName": "revision", + "direction": "input", + "roles": ["value"], + "types": ["string"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "workflow_id", + "semanticName": "workflow_id", + "direction": "input", + "roles": ["value"], + "types": ["string"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "modiff_pipeline_identity", + "semanticName": "modiff_pipeline_identity", + "direction": "input", + "roles": ["value"], + "types": ["object"], + "required": false, + "hidden": true, + "semantics": { + "kind": "opaque", + "scope": "Flux3DistilledModularPipeline", + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "auto_offload", + "semanticName": "auto_offload", + "direction": "input", + "roles": ["value"], + "types": ["boolean"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "offload_mode", + "semanticName": "offload_mode", + "direction": "input", + "roles": ["value"], + "types": ["string"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "weight_loading_mode", + "semanticName": "weight_loading_mode", + "direction": "input", + "roles": ["value"], + "types": ["string"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "weight_format", + "semanticName": "weight_format", + "direction": "input", + "roles": ["value"], + "types": ["string"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "unet", + "semanticName": "unet", + "direction": "input", + "roles": ["component"], + "types": ["diffusers_auto_model"], + "required": false, + "hidden": false, + "semantics": { + "kind": "component", + "scope": "Flux3DistilledModularPipeline", + "state": null, + "owner": "same_loader", + "members": [ + { + "name": "transformer", + "type": "diffusers.models.transformers.transformer_flux3.Flux3Transformer2DModel" + } + ] + } + }, + { + "name": "vae", + "semanticName": "vae", + "direction": "input", + "roles": ["component"], + "types": ["diffusers_auto_model"], + "required": false, + "hidden": false, + "semantics": { + "kind": "component", + "scope": "Flux3DistilledModularPipeline", + "state": null, + "owner": "same_loader", + "members": [ + { + "name": "vae", + "type": "diffusers.models.autoencoders.autoencoder_kl_flux2.AutoencoderKLFlux2" + } + ] + } + }, + { + "name": "controlnet", + "semanticName": "controlnet", + "direction": "input", + "roles": ["component"], + "types": ["diffusers_auto_model"], + "required": false, + "hidden": true, + "semantics": { + "kind": "component", + "scope": "Flux3DistilledModularPipeline", + "state": null, + "owner": "same_loader", + "members": [] + } + }, + { + "name": "lora_list", + "semanticName": "lora_list", + "direction": "input", + "roles": ["value"], + "types": ["custom_lora"], + "required": false, + "hidden": false, + "semantics": { + "kind": "opaque", + "scope": "Flux3DistilledModularPipeline", + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "text_encoders", + "semanticName": "text_encoders", + "direction": "output", + "roles": ["component"], + "types": ["diffusers_auto_models"], + "required": false, + "hidden": false, + "semantics": { + "kind": "component", + "scope": "Flux3DistilledModularPipeline", + "state": null, + "owner": "same_loader", + "members": [ + { + "name": "text_encoder", + "type": "transformers.models.qwen3_vl.modeling_qwen3_vl.Qwen3VLForConditionalGeneration" + }, + { + "name": "tokenizer", + "type": "transformers.models.auto.processing_auto.AutoProcessor" + } + ] + } + }, + { + "name": "unet_out", + "semanticName": "unet_out", + "direction": "output", + "roles": ["component"], + "types": ["diffusers_auto_model"], + "required": false, + "hidden": false, + "semantics": { + "kind": "component", + "scope": "Flux3DistilledModularPipeline", + "state": null, + "owner": "same_loader", + "members": [ + { + "name": "transformer", + "type": "diffusers.models.transformers.transformer_flux3.Flux3Transformer2DModel" + } + ] + } + }, + { + "name": "vae_out", + "semanticName": "vae_out", + "direction": "output", + "roles": ["component"], + "types": ["diffusers_auto_model"], + "required": false, + "hidden": false, + "semantics": { + "kind": "component", + "scope": "Flux3DistilledModularPipeline", + "state": null, + "owner": "same_loader", + "members": [ + { + "name": "vae", + "type": "diffusers.models.autoencoders.autoencoder_kl_flux2.AutoencoderKLFlux2" + } + ] + } + }, + { + "name": "scheduler", + "semanticName": "scheduler", + "direction": "output", + "roles": ["component"], + "types": ["diffusers_auto_model"], + "required": false, + "hidden": false, + "semantics": { + "kind": "component", + "scope": "Flux3DistilledModularPipeline", + "state": null, + "owner": "same_loader", + "members": [ + { + "name": "scheduler", + "type": "diffusers.schedulers.scheduling_flow_match_euler_discrete.FlowMatchEulerDiscreteScheduler" + } + ] + } + }, + { + "name": "image_encoder", + "semanticName": "image_encoder", + "direction": "output", + "roles": ["component"], + "types": ["diffusers_auto_model"], + "required": false, + "hidden": true, + "semantics": { + "kind": "component", + "scope": "Flux3DistilledModularPipeline", + "state": null, + "owner": "same_loader", + "members": [] + } + }, + { + "name": "pipeline_components", + "semanticName": "pipeline_components", + "direction": "output", + "roles": ["component"], + "types": ["diffusers_modular_pipeline_components"], + "required": false, + "hidden": false, + "semantics": { + "kind": "component", + "scope": "Flux3DistilledModularPipeline", + "state": null, + "owner": "same_loader", + "members": [ + { + "name": "image_processor", + "type": "diffusers.modular_pipelines.flux3.image_processor.Flux3ImageProcessor" + }, + { + "name": "scheduler", + "type": "diffusers.schedulers.scheduling_flow_match_euler_discrete.FlowMatchEulerDiscreteScheduler" + }, + { + "name": "text_encoder", + "type": "transformers.models.qwen3_vl.modeling_qwen3_vl.Qwen3VLForConditionalGeneration" + }, + { + "name": "tokenizer", + "type": "transformers.models.auto.processing_auto.AutoProcessor" + }, + { + "name": "transformer", + "type": "diffusers.models.transformers.transformer_flux3.Flux3Transformer2DModel" + }, + { + "name": "vae", + "type": "diffusers.models.autoencoders.autoencoder_kl_flux2.AutoencoderKLFlux2" + } + ] + } + }, + { + "name": "quant_config", + "semanticName": "quant_config", + "direction": "input", + "roles": ["value"], + "types": ["quant_config"], + "required": false, + "hidden": false, + "semantics": { + "kind": "opaque", + "scope": "Flux3DistilledModularPipeline", + "state": null, + "owner": "none", + "members": [] + } + } + ], + "workflowId": "image_conditioned", + "binding": { + "values": { + "model_type": "Flux3DistilledModularPipeline" + }, + "pipelineClass": "Flux3DistilledModularPipeline" + } + }, + "node": { + "module": "modules.ModularDiffusers", + "action": "ModelsLoader", + "type": "custom", + "label": "Load Models", + "category": "loader", + "description": "", + "resizable": true, + "skipParamsCheck": true, + "style": {}, + "params": { + "model_type": { + "label": "Pipeline Type", + "type": "string", + "options": { + "": { + "schemaVersion": 1, + "value": "", + "label": "", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "DummyCustomPipeline": { + "schemaVersion": 1, + "value": "DummyCustomPipeline", + "label": "Custom", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "StableDiffusionXLModularPipeline": { + "schemaVersion": 1, + "value": "StableDiffusionXLModularPipeline", + "label": "Stable Diffusion XL", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "QwenImageModularPipeline": { + "schemaVersion": 1, + "value": "QwenImageModularPipeline", + "label": "Qwen-Image-2512", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "QwenImageEditModularPipeline": { + "schemaVersion": 1, + "value": "QwenImageEditModularPipeline", + "label": "Qwen-Image-Edit", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "QwenImageEditPlusModularPipeline": { + "schemaVersion": 1, + "value": "QwenImageEditPlusModularPipeline", + "label": "Qwen-Image-Edit-2511", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "QwenImageLayeredModularPipeline": { + "schemaVersion": 1, + "value": "QwenImageLayeredModularPipeline", + "label": "Qwen-Image-Layered", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "FluxModularPipeline": { + "schemaVersion": 1, + "value": "FluxModularPipeline", + "label": "Flux", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "FluxKontextModularPipeline": { + "schemaVersion": 1, + "value": "FluxKontextModularPipeline", + "label": "Flux Kontext", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "Flux2ModularPipeline": { + "schemaVersion": 1, + "value": "Flux2ModularPipeline", + "label": "Flux 2", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "Flux2KleinModularPipeline": { + "schemaVersion": 1, + "value": "Flux2KleinModularPipeline", + "label": "Flux 2 Klein Distilled", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "Flux2KleinBaseModularPipeline": { + "schemaVersion": 1, + "value": "Flux2KleinBaseModularPipeline", + "label": "Flux 2 Klein Base", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "Flux3ModularPipeline": { + "schemaVersion": 1, + "value": "Flux3ModularPipeline", + "label": "FLUX 3 Image Klein Base", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "Flux3DistilledModularPipeline": { + "schemaVersion": 1, + "value": "Flux3DistilledModularPipeline", + "label": "FLUX 3 Image Klein", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "ZImageModularPipeline": { + "schemaVersion": 1, + "value": "ZImageModularPipeline", + "label": "Z-Image", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "WanModularPipeline": { + "schemaVersion": 1, + "value": "WanModularPipeline", + "label": "WAN2 T2V", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "WanImage2VideoModularPipeline": { + "schemaVersion": 1, + "value": "WanImage2VideoModularPipeline", + "label": "WAN2 I2V", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "MiniMaxMusic3ModularPipeline": { + "schemaVersion": 1, + "value": "MiniMaxMusic3ModularPipeline", + "label": "MiniMax Music 3", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "MiniMaxH3ModularPipeline": { + "schemaVersion": 1, + "value": "MiniMaxH3ModularPipeline", + "label": "MiniMax H3", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "AnimaModularPipeline": { + "schemaVersion": 1, + "value": "AnimaModularPipeline", + "label": "Anima", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "ErnieImageModularPipeline": { + "schemaVersion": 1, + "value": "ErnieImageModularPipeline", + "label": "ERNIE Image Turbo", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "HeliosModularPipeline": { + "schemaVersion": 1, + "value": "HeliosModularPipeline", + "label": "Helios", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "HeliosPyramidModularPipeline": { + "schemaVersion": 1, + "value": "HeliosPyramidModularPipeline", + "label": "Helios Pyramid", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "HeliosPyramidDistilledModularPipeline": { + "schemaVersion": 1, + "value": "HeliosPyramidDistilledModularPipeline", + "label": "Helios Pyramid Distilled", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "HunyuanVideo15ModularPipeline": { + "schemaVersion": 1, + "value": "HunyuanVideo15ModularPipeline", + "label": "HunyuanVideo 1.5", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "WanAnimate2ModularPipeline": { + "schemaVersion": 1, + "value": "WanAnimate2ModularPipeline", + "label": "Wan Animate 2", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "WanAnimate2DistilledModularPipeline": { + "schemaVersion": 1, + "value": "WanAnimate2DistilledModularPipeline", + "label": "Wan Animate 2 Distilled", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "Cosmos3OmniModularPipeline": { + "schemaVersion": 1, + "value": "Cosmos3OmniModularPipeline", + "label": "Cosmos 3 Nano", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "Cosmos3DistilledModularPipeline": { + "schemaVersion": 1, + "value": "Cosmos3DistilledModularPipeline", + "label": "Cosmos 3 Distilled", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "Ideogram4ModularPipeline": { + "schemaVersion": 1, + "value": "Ideogram4ModularPipeline", + "label": "Ideogram 4 (Contract only)", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "Krea2ModularPipeline": { + "schemaVersion": 1, + "value": "Krea2ModularPipeline", + "label": "Krea 2 (Contract only)", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "Krea2TurboModularPipeline": { + "schemaVersion": 1, + "value": "Krea2TurboModularPipeline", + "label": "Krea 2 Turbo (Contract only)", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "StableDiffusion3ModularPipeline": { + "schemaVersion": 1, + "value": "StableDiffusion3ModularPipeline", + "label": "Stable Diffusion 3 (Contract only)", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "LTX25ModularPipeline": { + "schemaVersion": 1, + "value": "LTX25ModularPipeline", + "label": "LTX-2.5 (Contract only)", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + } + }, + "onChange": "set_filters", + "description": "Selects the Modular Diffusers pipeline class. This filters compatible checkpoints and publishes the component contract used by connected nodes; it is not the model checkpoint itself.", + "value": "Flux3DistilledModularPipeline" + }, + "repo_id": { + "label": "Repository ID", + "display": "modelselect", + "type": "string", + "value": { + "source": "hub", + "value": "black-forest-labs/flux-3-image-klein" + }, + "fieldOptions": { + "noValidation": true, + "sources": ["hub", "local"], + "filter": { + "hub": { + "className": ["Flux3DistilledModularPipeline"] + } + } + }, + "onChange": "refresh_pipeline_identity" + }, + "reviewed_variant": { + "label": "Model", + "type": "string", + "value": "black-forest-labs/flux-3-image-klein", + "options": [ + { + "schemaVersion": 1, + "value": "black-forest-labs/flux-3-image-klein", + "label": "black-forest-labs/flux-3-image-klein", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + } + ], + "hidden": true, + "fieldOptions": { + "controlTier": "essential" + }, + "description": "Select an immutable, reviewed checkpoint for this exact Modular Diffusers pipeline family. Changing it does not replace the workflow graph or reset its parameters." + }, + "dtype": { + "label": "dtype", + "options": [ + { + "schemaVersion": 1, + "value": "float32", + "label": "float32", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "float16", + "label": "float16", + "compatibility": "incompatible", + "availability": "unavailable", + "installationState": "unavailable", + "disabledReason": "float16 is not supported by the active runtime." + }, + { + "schemaVersion": 1, + "value": "bfloat16", + "label": "bfloat16", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + } + ], + "value": "bfloat16" + }, + "device": { + "label": "Device", + "type": "string", + "value": "cpu:0", + "options": { + "cpu:0": { + "schemaVersion": 1, + "value": "cpu:0", + "label": "cpu:0", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "cpu": { + "schemaVersion": 1, + "value": "cpu", + "label": "cpu", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + } + } + }, + "attention_backend": { + "label": "Attention Backend", + "type": "string", + "default": "inherit", + "options": [ + { + "schemaVersion": 1, + "value": "inherit", + "label": "inherit", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "auto", + "label": "auto", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "native", + "label": "native", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "_native_math", + "label": "_native_math", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + } + ], + "description": "Inherit preserves existing native component defaults; explicit choices use the ordinary Diffusers attention API." + }, + "vae_slicing": { + "label": "VAE Slicing", + "type": "boolean", + "default": null, + "hidden": true, + "description": "An unset policy preserves the native VAE configuration; templates may bind an explicit boolean." + }, + "vae_tiling": { + "label": "VAE Tiling", + "type": "boolean", + "default": null, + "hidden": true, + "description": "An unset policy preserves the native VAE configuration; templates may bind an explicit boolean." + }, + "inpaint_compatibility": { + "label": "Inpaint Compatibility", + "type": "string", + "default": "native", + "hidden": true, + "options": [ + { + "schemaVersion": 1, + "value": "native", + "label": "native", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "whole_v1", + "label": "whole_v1", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + } + ], + "description": "Technical compatibility selection for the reviewed Qwen Edit inpainting candidate; existing nodes retain native policy." + }, + "trust_remote_code": { + "label": "Trust Remote Code", + "type": "boolean", + "value": false, + "description": "Repository code execution is disabled; keep this off for contract preview.", + "onChange": "refresh_pipeline_identity" + }, + "revision": { + "label": "Revision", + "type": "string", + "value": "8454017f9ebaada30c998fccd9f67a80c7580f68", + "description": "Required exact 40-character commit hash for Hub custom contracts.", + "onChange": "refresh_pipeline_identity" + }, + "workflow_id": { + "label": "Reviewed Workflow", + "type": "string", + "value": "image_conditioned", + "hidden": true, + "description": "Exact reviewed component partition selected by a first-party Cluster Node." + }, + "modiff_pipeline_identity": { + "label": "Custom Pipeline Identity", + "type": "object", + "value": null, + "hidden": true + }, + "refresh_pipeline_identity_button": { + "label": "Review and Refresh Custom Contract", + "display": "ui_button", + "value": false, + "hidden": true, + "onChange": "refresh_pipeline_identity" + }, + "auto_offload": { + "label": "Enable Auto Offload", + "type": "boolean", + "value": true + }, + "offload_mode": { + "label": "Offload Mode", + "type": "string", + "options": [ + { + "schemaVersion": 1, + "value": "auto_cpu", + "label": "auto_cpu", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "none", + "label": "none", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "model_cpu", + "label": "model_cpu", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "group_cpu", + "label": "group_cpu", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "group_disk", + "label": "group_disk", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + } + ], + "value": "model_cpu", + "default": "model_cpu" + }, + "weight_loading_mode": { + "label": "Weight Loading", + "type": "string", + "default": "cpu", + "options": [ + { + "schemaVersion": 1, + "value": "cpu", + "label": "cpu", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "cuda", + "label": "cuda", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + } + ], + "fieldOptions": { + "controlTier": "advanced" + }, + "description": "Load weights on CPU or CUDA before disk offload. CUDA loading needs room for a complete component and is available only for supported models." + }, + "weight_format": { + "label": "Weight Format", + "type": "string", + "default": "native", + "options": [ + { + "schemaVersion": 1, + "value": "native", + "label": "native", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "fp8r", + "label": "fp8r", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "nvfp4", + "label": "nvfp4", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + } + ], + "hidden": false, + "fieldOptions": { + "controlTier": "advanced" + }, + "description": "Select a backend-declared immutable component format. Missing reviewed files must be installed through Model Manager." + }, + "unet": { + "label": "Denoise Model", + "display": "input", + "type": "diffusers_auto_model", + "hidden": false + }, + "vae": { + "label": "VAE", + "display": "input", + "type": "diffusers_auto_model", + "hidden": false + }, + "controlnet": { + "label": "ControlNet", + "display": "input", + "type": "diffusers_auto_model", + "hidden": true + }, + "lora_list": { + "label": "Lora", + "display": "input", + "type": "custom_lora" + }, + "text_encoders": { + "label": "Text Encoders", + "display": "output", + "type": "diffusers_auto_models", + "signal": { + "direction": "output", + "origin": "modiff_pipeline_identity", + "value": "Flux3DistilledModularPipeline" + }, + "connectionRole": "text_encoders", + "hidden": false + }, + "unet_out": { + "label": "Denoise Model", + "display": "output", + "type": "diffusers_auto_model", + "signal": { + "direction": "output", + "origin": "modiff_pipeline_identity", + "value": "Flux3DistilledModularPipeline" + }, + "connectionRole": "denoiser", + "hidden": false + }, + "vae_out": { + "label": "VAE", + "display": "output", + "type": "diffusers_auto_model", + "signal": { + "direction": "output", + "origin": "modiff_pipeline_identity", + "value": "Flux3DistilledModularPipeline" + }, + "connectionRole": "vae", + "hidden": false + }, + "scheduler": { + "label": "Scheduler", + "display": "output", + "type": "diffusers_auto_model", + "signal": { + "direction": "output", + "origin": "modiff_pipeline_identity", + "value": "Flux3DistilledModularPipeline" + }, + "connectionRole": "scheduler", + "hidden": false + }, + "image_encoder": { + "label": "Image Encoder", + "display": "output", + "type": "diffusers_auto_model", + "signal": { + "direction": "output", + "origin": "modiff_pipeline_identity", + "value": "Flux3DistilledModularPipeline" + }, + "connectionRole": "image_encoder", + "hidden": true + }, + "pipeline_components": { + "label": "Pipeline Components", + "display": "output", + "type": "diffusers_modular_pipeline_components", + "signal": { + "direction": "output", + "origin": "modiff_pipeline_identity", + "value": "Flux3DistilledModularPipeline" + }, + "connectionRole": "pipeline_components", + "hidden": false + }, + "quant_config": { + "label": "Quant Config", + "display": "input", + "type": "quant_config" + } + }, + "time": [0, 0, 0], + "memory": [0, 0, 0], + "cache": false + } + }, + { + "operation": { + "pipelineClass": "Flux3DistilledModularPipeline", + "task": "edit_image", + "operationId": "diffusion.encode_prompt", + "nodeKey": "modules.ModularDiffusers.EncodePrompt", + "nodeType": "text_encoder", + "blockName": "text_encoder", + "decomposition": "block", + "support": "declared", + "ports": [ + { + "name": "prompt", + "semanticName": "prompt", + "direction": "input", + "roles": ["value"], + "types": ["string"], + "required": true, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "max_sequence_length", + "semanticName": "max_sequence_length", + "direction": "input", + "roles": ["value"], + "types": ["int"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "text_encoder_out_layers", + "semanticName": "text_encoder_out_layers", + "direction": "input", + "roles": ["value"], + "types": ["int"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "text_encoders", + "semanticName": "text_encoders", + "direction": "input", + "roles": ["component"], + "types": ["diffusers_auto_models"], + "required": true, + "hidden": false, + "semantics": { + "kind": "component", + "scope": "Flux3DistilledModularPipeline", + "state": null, + "owner": "same_loader", + "members": [ + { + "name": "text_encoder", + "type": "transformers.models.qwen3_vl.modeling_qwen3_vl.Qwen3VLForConditionalGeneration" + }, + { + "name": "tokenizer", + "type": "transformers.models.auto.processing_auto.AutoProcessor" + } + ] + } + }, + { + "name": "embeddings", + "semanticName": "embeddings", + "direction": "output", + "roles": ["value"], + "types": ["embeddings"], + "required": false, + "hidden": false, + "semantics": { + "kind": "conditioning", + "scope": "Flux3DistilledModularPipeline", + "state": null, + "owner": "same_loader", + "members": [] + } + }, + { + "name": "doc", + "semanticName": "doc", + "direction": "output", + "roles": ["value"], + "types": ["string"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "layout_conditioning", + "semanticName": "layout_conditioning", + "direction": "input", + "roles": ["value"], + "types": ["layout_conditioning"], + "required": false, + "hidden": false, + "semantics": { + "kind": "opaque", + "scope": "Flux3DistilledModularPipeline", + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "reference_binding", + "semanticName": "reference_binding", + "direction": "input", + "roles": ["value"], + "types": ["reference_conditioning"], + "required": false, + "hidden": false, + "semantics": { + "kind": "opaque", + "scope": "Flux3DistilledModularPipeline", + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "prompt_input", + "semanticName": "prompt", + "direction": "input", + "roles": ["value"], + "types": ["string"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + } + ], + "workflowId": "image_conditioned", + "binding": { + "values": {}, + "pipelineClass": "Flux3DistilledModularPipeline" + } + }, + "node": { + "module": "modules.ModularDiffusers", + "action": "EncodePrompt", + "type": "custom", + "label": "Encode Prompt", + "category": "embedding", + "description": "", + "resizable": true, + "skipParamsCheck": true, + "style": {}, + "params": { + "text_encoders": { + "label": "Text Encoders *", + "required": true, + "type": "diffusers_auto_models", + "display": "input", + "onSignal": "update_node", + "signalCompatibility": { + "role": "text_encoders" + } + }, + "prompt_input": { + "label": "Prompt Input", + "type": "string", + "display": "input", + "description": "Optional connected prompt. When connected, this replaces the inline Prompt value." + }, + "guider": { + "label": "Guider", + "type": "custom_guider", + "display": "input", + "hidden": true, + "description": "Shared Diffusers guidance used by prompt encoding and denoising when the selected pipeline supports it." + }, + "layout_reference_summary": { + "label": "Bound Reference Summary", + "type": "string", + "display": "output", + "hidden": true, + "description": "Display-only ordered reference identities and actual preprocessing sizes from the current encoder cache." + }, + "prompt": { + "label": "Prompt *", + "type": "string", + "display": "textarea", + "default": "", + "value": "Change the background to a sunlit garden. Keep the main subject, its pose and its appearance unchanged.", + "fieldOptions": { + "exampleAttribution": "MoDiff task example" + } + }, + "max_sequence_length": { + "label": "Maximum Sequence Length", + "type": "int", + "default": 8192, + "min": 1, + "max": 8192, + "step": 1 + }, + "text_encoder_out_layers": { + "label": "Text Encoder Layers", + "type": "int", + "display": "select", + "default": [4, 8, 12, 16, 20, 24, 28, 32], + "options": [ + { + "schemaVersion": 1, + "value": "0", + "label": "0", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "1", + "label": "1", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "2", + "label": "2", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "3", + "label": "3", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "4", + "label": "4", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "5", + "label": "5", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "6", + "label": "6", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "7", + "label": "7", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "8", + "label": "8", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "9", + "label": "9", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "10", + "label": "10", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "11", + "label": "11", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "12", + "label": "12", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "13", + "label": "13", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "14", + "label": "14", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "15", + "label": "15", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "16", + "label": "16", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "17", + "label": "17", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "18", + "label": "18", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "19", + "label": "19", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "20", + "label": "20", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "21", + "label": "21", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "22", + "label": "22", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "23", + "label": "23", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "24", + "label": "24", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "25", + "label": "25", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "26", + "label": "26", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "27", + "label": "27", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "28", + "label": "28", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "29", + "label": "29", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "30", + "label": "30", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "31", + "label": "31", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "32", + "label": "32", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + } + ], + "fieldOptions": { + "multiple": true, + "tupleValue": true, + "tupleLength": 8 + } + }, + "embeddings": { + "label": "Text Embeddings", + "type": "embeddings", + "display": "output" + }, + "doc": { + "label": "Doc", + "type": "string", + "display": "output" + }, + "layout_conditioning": { + "label": "Layout Conditioning", + "type": "layout_conditioning", + "display": "layout", + "fieldOptions": { + "layoutConditioning": { + "schemaVersion": 2, + "sourceRegions": false, + "supportsBoundSourceRegions": true + } + }, + "default": null + }, + "reference_binding": { + "label": "Reference Binding", + "type": "reference_conditioning", + "display": "input", + "fieldOptions": { + "referenceBinding": { + "schemaVersion": 1, + "maxReferences": 10 + } + }, + "default": null + } + }, + "time": [0, 0, 0], + "memory": [0, 0, 0], + "cache": false + } + }, + { + "operation": { + "pipelineClass": "Flux3DistilledModularPipeline", + "task": "edit_image", + "operationId": "diffusion.encode_image", + "nodeKey": "modules.ModularDiffusers.ImageEncode", + "nodeType": "vae_encoder", + "blockName": "vae_encoder", + "decomposition": "block", + "support": "declared", + "ports": [ + { + "name": "image", + "semanticName": "image", + "direction": "input", + "roles": ["value"], + "types": ["image"], + "required": true, + "hidden": false, + "semantics": { + "kind": "media", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "vae", + "semanticName": "vae", + "direction": "input", + "roles": ["component"], + "types": ["diffusers_auto_model"], + "required": true, + "hidden": false, + "semantics": { + "kind": "component", + "scope": "Flux3DistilledModularPipeline", + "state": null, + "owner": "same_loader", + "members": [ + { + "name": "vae", + "type": "diffusers.models.autoencoders.autoencoder_kl_flux2.AutoencoderKLFlux2" + } + ] + } + }, + { + "name": "image_cond_latents", + "semanticName": "image_cond_latents", + "direction": "output", + "roles": ["value"], + "types": ["latents"], + "required": false, + "hidden": false, + "semantics": { + "kind": "latents", + "scope": "Flux3DistilledModularPipeline", + "state": null, + "owner": "same_loader", + "members": [] + } + }, + { + "name": "reference_binding", + "semanticName": "reference_binding", + "direction": "output", + "roles": ["value"], + "types": ["reference_conditioning"], + "required": false, + "hidden": false, + "semantics": { + "kind": "opaque", + "scope": "Flux3DistilledModularPipeline", + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "doc", + "semanticName": "doc", + "direction": "output", + "roles": ["value"], + "types": ["string"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + } + ], + "workflowId": "image_conditioned", + "binding": { + "values": {}, + "pipelineClass": "Flux3DistilledModularPipeline" + } + }, + "node": { + "module": "modules.ModularDiffusers", + "action": "ImageEncode", + "type": "custom", + "label": "Encode Image", + "category": "sampler", + "description": "", + "resizable": true, + "skipParamsCheck": true, + "style": {}, + "params": { + "layout_reference_summary": { + "label": "Bound Reference Summary", + "type": "string", + "display": "output", + "hidden": true, + "description": "Display-only ordered reference identities and actual preprocessing sizes from this image encoding cache." + }, + "vae": { + "label": "VAE *", + "display": "input", + "type": "diffusers_auto_model", + "onSignal": "update_node", + "signalCompatibility": { + "role": "vae" + } + }, + "encode_summary_data": { + "label": "Encode summary", + "display": "output", + "type": "str", + "hidden": true + }, + "encode_summary": { + "label": "Encode summary", + "display": "ui_text", + "type": "text", + "dataSource": "encode_summary_data", + "hidden": true + }, + "image": { + "label": "Image *", + "type": "image", + "display": "input" + }, + "image_cond_latents": { + "label": "Reference Latents", + "type": "latents", + "display": "output" + }, + "reference_binding": { + "label": "Reference Binding", + "type": "reference_conditioning", + "display": "output", + "fieldOptions": { + "referenceBinding": { + "schemaVersion": 1, + "maxReferences": 10 + } + } + }, + "doc": { + "label": "Doc", + "type": "string", + "display": "output" + } + }, + "time": [0, 0, 0], + "memory": [0, 0, 0], + "cache": false + } + }, + { + "operation": { + "pipelineClass": "Flux3DistilledModularPipeline", + "task": "edit_image", + "operationId": "diffusion.denoise", + "nodeKey": "modules.ModularDiffusers.Denoise", + "nodeType": "denoise", + "blockName": "denoise", + "decomposition": "block", + "support": "declared", + "ports": [ + { + "name": "embeddings", + "semanticName": "embeddings", + "direction": "input", + "roles": ["value"], + "types": ["embeddings"], + "required": true, + "hidden": false, + "semantics": { + "kind": "conditioning", + "scope": "Flux3DistilledModularPipeline", + "state": null, + "owner": "same_loader", + "members": [] + } + }, + { + "name": "width", + "semanticName": "width", + "direction": "input", + "roles": ["value"], + "types": ["int"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "height", + "semanticName": "height", + "direction": "input", + "roles": ["value"], + "types": ["int"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "seed", + "semanticName": "seed", + "direction": "input", + "roles": ["value"], + "types": ["int"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "num_inference_steps", + "semanticName": "num_inference_steps", + "direction": "input", + "roles": ["value"], + "types": ["int"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "num_images_per_prompt", + "semanticName": "num_images_per_prompt", + "direction": "input", + "roles": ["value"], + "types": ["int"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "image_cond_latents", + "semanticName": "image_cond_latents", + "direction": "input", + "roles": ["value"], + "types": ["latents"], + "required": false, + "hidden": false, + "semantics": { + "kind": "latents", + "scope": "Flux3DistilledModularPipeline", + "state": null, + "owner": "same_loader", + "members": [] + } + }, + { + "name": "unet", + "semanticName": "unet", + "direction": "input", + "roles": ["component"], + "types": ["diffusers_auto_model"], + "required": true, + "hidden": false, + "semantics": { + "kind": "component", + "scope": "Flux3DistilledModularPipeline", + "state": null, + "owner": "same_loader", + "members": [ + { + "name": "transformer", + "type": "diffusers.models.transformers.transformer_flux3.Flux3Transformer2DModel" + } + ] + } + }, + { + "name": "scheduler", + "semanticName": "scheduler", + "direction": "input", + "roles": ["component"], + "types": ["diffusers_auto_model"], + "required": true, + "hidden": false, + "semantics": { + "kind": "component", + "scope": "Flux3DistilledModularPipeline", + "state": null, + "owner": "same_loader", + "members": [ + { + "name": "scheduler", + "type": "diffusers.schedulers.scheduling_flow_match_euler_discrete.FlowMatchEulerDiscreteScheduler" + } + ] + } + }, + { + "name": "latents", + "semanticName": "latents", + "direction": "output", + "roles": ["value"], + "types": ["latents"], + "required": false, + "hidden": false, + "semantics": { + "kind": "latents", + "scope": "Flux3DistilledModularPipeline", + "state": null, + "owner": "same_loader", + "members": [] + } + }, + { + "name": "doc", + "semanticName": "doc", + "direction": "output", + "roles": ["value"], + "types": ["string"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "reference_binding", + "semanticName": "reference_binding", + "direction": "input", + "roles": ["value"], + "types": ["reference_conditioning"], + "required": false, + "hidden": false, + "semantics": { + "kind": "opaque", + "scope": "Flux3DistilledModularPipeline", + "state": null, + "owner": "none", + "members": [] + } + } + ], + "workflowId": "image_conditioned", + "binding": { + "values": {}, + "pipelineClass": "Flux3DistilledModularPipeline" + } + }, + "node": { + "module": "modules.ModularDiffusers", + "action": "Denoise", + "type": "custom", + "label": "Denoise", + "category": "sampler", + "description": "", + "resizable": true, + "skipParamsCheck": true, + "style": {}, + "params": { + "unet": { + "label": "Denoise Model *", + "display": "input", + "type": "diffusers_auto_model", + "required": true, + "onSignal": [ + "update_node", + { + "action": "signal", + "target": "guider" + }, + { + "action": "signal", + "target": "controlnet_bundle" + } + ], + "signalCompatibility": { + "role": "denoiser" + } + }, + "embeddings": { + "label": "Text Embeddings *", + "type": "embeddings", + "display": "input" + }, + "width": { + "label": "Width", + "type": "int", + "default": 1024, + "min": 64, + "step": 16, + "value": 1024 + }, + "height": { + "label": "Height", + "type": "int", + "default": 1024, + "min": 64, + "step": 16, + "value": 1024 + }, + "seed": { + "label": "Seed", + "type": "int", + "display": "random", + "default": 0, + "min": 0, + "max": 4294967295 + }, + "num_inference_steps": { + "label": "Steps", + "type": "int", + "display": "slider", + "default": 16, + "min": 1, + "max": 100, + "value": 16 + }, + "num_images_per_prompt": { + "label": "Images Per Prompt", + "type": "int", + "default": 1, + "min": 1, + "max": 8, + "step": 1 + }, + "image_cond_latents": { + "label": "Reference Latents", + "type": "latents", + "display": "input" + }, + "scheduler": { + "label": "Scheduler *", + "type": "diffusers_auto_model", + "display": "input", + "signalCompatibility": { + "role": "scheduler" + } + }, + "latents": { + "label": "Latents", + "type": "latents", + "display": "output" + }, + "doc": { + "label": "Doc", + "type": "string", + "display": "output" + }, + "reference_binding": { + "label": "Reference Binding", + "type": "reference_conditioning", + "display": "input", + "fieldOptions": { + "referenceBinding": { + "schemaVersion": 1, + "maxReferences": 10 + } + }, + "default": null + } + }, + "time": [0, 0, 0], + "memory": [0, 0, 0], + "cache": false + } + }, + { + "operation": { + "pipelineClass": "Flux3DistilledModularPipeline", + "task": "edit_image", + "operationId": "diffusion.decode_latents", + "nodeKey": "modules.ModularDiffusers.DecodeLatents", + "nodeType": "decoder", + "blockName": "decode", + "decomposition": "block", + "support": "declared", + "ports": [ + { + "name": "latents", + "semanticName": "latents", + "direction": "input", + "roles": ["value"], + "types": ["latents"], + "required": true, + "hidden": false, + "semantics": { + "kind": "latents", + "scope": "Flux3DistilledModularPipeline", + "state": null, + "owner": "same_loader", + "members": [] + } + }, + { + "name": "vae", + "semanticName": "vae", + "direction": "input", + "roles": ["component"], + "types": ["diffusers_auto_model"], + "required": true, + "hidden": false, + "semantics": { + "kind": "component", + "scope": "Flux3DistilledModularPipeline", + "state": null, + "owner": "same_loader", + "members": [ + { + "name": "vae", + "type": "diffusers.models.autoencoders.autoencoder_kl_flux2.AutoencoderKLFlux2" + } + ] + } + }, + { + "name": "images", + "semanticName": "images", + "direction": "output", + "roles": ["value"], + "types": ["image"], + "required": false, + "hidden": false, + "semantics": { + "kind": "media", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "doc", + "semanticName": "doc", + "direction": "output", + "roles": ["value"], + "types": ["string"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + } + ], + "workflowId": "image_conditioned", + "binding": { + "values": {}, + "pipelineClass": "Flux3DistilledModularPipeline" + } + }, + "node": { + "module": "modules.ModularDiffusers", + "action": "DecodeLatents", + "type": "custom", + "label": "Decode Latents", + "category": "sampler", + "description": "", + "resizable": true, + "skipParamsCheck": true, + "style": {}, + "params": { + "vae": { + "label": "VAE *", + "display": "input", + "type": "diffusers_auto_model", + "onSignal": "update_node", + "signalCompatibility": { + "role": "vae" + } + }, + "latents": { + "label": "Latents *", + "type": "latents", + "display": "input" + }, + "images": { + "label": "Images", + "type": "image", + "display": "output" + }, + "doc": { + "label": "Doc", + "type": "string", + "display": "output" + } + }, + "time": [0, 0, 0], + "memory": [0, 0, 0], + "cache": false + } + } + ], + "edges": [ + { + "source": "diffusion.load_models", + "sourceHandle": "text_encoders", + "target": "diffusion.encode_prompt", + "targetHandle": "text_encoders" + }, + { + "source": "diffusion.load_models", + "sourceHandle": "vae_out", + "target": "diffusion.encode_image", + "targetHandle": "vae" + }, + { + "source": "diffusion.load_models", + "sourceHandle": "scheduler", + "target": "diffusion.denoise", + "targetHandle": "scheduler" + }, + { + "source": "diffusion.load_models", + "sourceHandle": "unet_out", + "target": "diffusion.denoise", + "targetHandle": "unet" + }, + { + "source": "diffusion.load_models", + "sourceHandle": "vae_out", + "target": "diffusion.decode_latents", + "targetHandle": "vae" + }, + { + "source": "diffusion.encode_prompt", + "sourceHandle": "embeddings", + "target": "diffusion.denoise", + "targetHandle": "embeddings" + }, + { + "source": "diffusion.denoise", + "sourceHandle": "latents", + "target": "diffusion.decode_latents", + "targetHandle": "latents" + }, + { + "source": "diffusion.encode_image", + "sourceHandle": "image_cond_latents", + "target": "diffusion.denoise", + "targetHandle": "image_cond_latents" + }, + { + "source": "diffusion.encode_image", + "sourceHandle": "reference_binding", + "target": "diffusion.encode_prompt", + "targetHandle": "reference_binding" + }, + { + "source": "diffusion.encode_image", + "sourceHandle": "reference_binding", + "target": "diffusion.denoise", + "targetHandle": "reference_binding" + } + ], + "requiredInputs": [ + { + "operationId": "diffusion.encode_image", + "field": "image" + }, + { + "operationId": "diffusion.encode_prompt", + "field": "prompt" + } + ], + "sharedInputs": [], + "upstreamBlocks": ["text_encoder", "vae_encoder", "denoise", "decode"], + "authoring": { + "schemaVersion": 1, + "canonicalizationVersion": 1, + "id": "flux3-klein:edit-image:prompt-preview-authoring:v3", + "baseSpecId": "flux3-klein:modular:edit-image:v1", + "baseSpecContentHash": "studio-spec-v1-3eb193af", + "executionProfileIds": ["flux3-klein:modular"], + "roles": [ + ["models", "modules.ModularDiffusers.ModelsLoader", -720, -80], + ["prompt", "modules.ModularDiffusers.EncodePrompt", -360, -240], + ["denoise", "modules.ModularDiffusers.Denoise", 80, -80], + ["decode", "modules.ModularDiffusers.DecodeLatents", 440, -80], + ["preview", "modules.Image.Preview", 800, -80], + ["loadImage", "modules.Image.Load", -720, 320], + ["imageEncode", "modules.ModularDiffusers.ImageEncode", -360, 320] + ], + "edges": [ + ["models", "text_encoders", "prompt", "text_encoders"], + ["models", "unet_out", "denoise", "unet"], + ["models", "scheduler", "denoise", "scheduler"], + ["models", "vae_out", "decode", "vae"], + ["prompt", "embeddings", "denoise", "embeddings"], + ["denoise", "latents", "decode", "latents"], + ["decode", "images", "preview", "image"], + ["models", "vae_out", "imageEncode", "vae"], + ["loadImage", "image", "imageEncode", "image"], + ["imageEncode", "image_cond_latents", "denoise", "image_cond_latents"], + ["imageEncode", "reference_binding", "prompt", "reference_binding"], + ["imageEncode", "reference_binding", "denoise", "reference_binding"] + ], + "bindings": [ + ["models", "model_type", "pipelineClass"], + ["models", "repo_id", "artifact"], + ["models", "revision", "defaultRevision"], + ["models", "dtype", "dtype"], + ["models", "device", "device"], + ["models", "auto_offload", "autoOffload"], + ["models", "offload_mode", "offloadMode"], + ["models", "trust_remote_code", "false"], + ["prompt", "prompt", "prompt"], + ["denoise", "width", "width"], + ["denoise", "height", "height"], + ["denoise", "seed", "seed"], + ["denoise", "num_inference_steps", "steps"], + ["prompt", "max_sequence_length", "maxSequenceLength"], + ["models", "weight_format", "weightFormat"], + ["loadImage", "file", "referenceImages"], + ["loadImage", "alpha_channel", "alphaMode"] + ], + "initialValues": [], + "ancillaryOperations": [ + { + "schemaVersion": 1, + "id": "flux3-klein:edit-image:prompt-preview-authoring:v3:preview", + "parent": { + "authoringRecipeId": "flux3-klein:edit-image:prompt-preview-authoring:v3", + "baseSpecId": "flux3-klein:modular:edit-image:v1", + "baseSpecContentHash": "studio-spec-v1-3eb193af", + "executionProfileId": "flux3-klein:modular", + "pipelineClass": "Flux3DistilledModularPipeline", + "task": "edit_image" + }, + "executionPurpose": "explicit_preview", + "roles": [ + ["provider", "modules.HuggingFaceTransformers.LoadImageTextToTextModel", -720, -400], + ["proposal", "modules.HuggingFaceTransformers.GenerateImageVideoText", -360, -400] + ], + "edges": [["provider", "model", "proposal", "model"]], + "bindings": { + "owner": { + "role": "prompt", + "promptField": "prompt", + "layoutField": "layout_conditioning", + "referenceSource": { + "role": "loadImage", + "field": "image" + } + }, + "request": { + "role": "proposal", + "promptField": "prompt", + "layoutField": "layout_conditioning", + "imagesField": "images" + }, + "output": { + "role": "proposal", + "field": "proposal_summary" + } + }, + "initialValues": [ + [ + "provider", + "model_id", + { + "source": "hub", + "value": "black-forest-labs/flux-3-image-klein-pup" + } + ], + ["provider", "revision", "3f3edb52b2c55de0d49feab28598b68f7f8e4830"], + ["proposal", "operation", "enhance_prompt_append_details"] + ], + "fieldOverrides": [ + [ + "proposal", + "enhancement_max_new_tokens", + { + "hidden": false + } + ], + [ + "proposal", + "max_new_tokens", + { + "hidden": true + } + ] + ], + "adapter": { + "id": "transformers-prompt-enhancement-v1", + "declarationSha256": "sha256:2a3d4685988b418115008bbb95fb3e948097580c0bedd2940ea3fe1e40254dc2" + }, + "verification": { + "schemaVersion": 1, + "adapter": { + "id": "transformers-prompt-enhancement-v1", + "declarationSha256": "sha256:2a3d4685988b418115008bbb95fb3e948097580c0bedd2940ea3fe1e40254dc2" + }, + "runtimeInputs": { + "role": "provider", + "modelField": "model_id", + "revisionField": "revision", + "dtypeField": "dtype", + "deviceField": "device", + "quantizationField": "quantization_mode" + }, + "requestInputs": { + "role": "proposal", + "operationField": "operation", + "maxNewTokensField": "enhancement_max_new_tokens", + "minNewTokensField": "min_new_tokens", + "maxInputTokensField": "max_input_tokens", + "maxImagePixelsField": "max_image_pixels" + }, + "supportedPromptModes": ["t2i", "i2i"], + "systemPromptsSha256": "sha256:b5da3ed8bc04ab59dbdb747930f7dbff847e868903fed8028f85ee1a4ac82fb4", + "systemPromptSha256ByMode": { + "t2i": "8b235a421bce2213d11ada01f5a1244443dd72303ffbb4cc9e5a0d8b0de5ab6f", + "i2i": "95cec384d5b6d341caa9fb3f2c7ca45ee80c2364b3a95d4044aebf976f6dd3bf", + "t2i_bbox": "5f513d8ce5838732919f9e645507aa20ff373e88bf93132c768e063c9db3151f", + "i2i_bbox": "9ad10f947e401337cf155cac0518cc428159ef16f2f029f48aae2aaab8380a5e" + }, + "chatTemplateSha256": "sha256:a4aee8afcf2e0711942cf848899be66016f8d14a889ff9ede07bca099c28f715", + "modelReceipt": { + "schemaVersion": 1, + "library": "transformers", + "task": "image-video-to-text", + "source": { + "kind": "hub", + "repository": "black-forest-labs/flux-3-image-klein-pup", + "revision": "3f3edb52b2c55de0d49feab28598b68f7f8e4830" + }, + "loader": { + "preprocessorAutoClass": "AutoProcessor", + "modelAutoClass": "AutoModelForImageTextToText" + }, + "security": { + "localFilesOnly": true, + "trustRemoteCode": false, + "safetensorsOnly": true, + "hostedInference": false + }, + "runtime": { + "transformersVersion": "5.18.0", + "preprocessorClass": "Qwen3VLProcessor", + "modelClass": "Qwen3_5ForConditionalGeneration", + "modelType": "qwen3_5", + "architectures": ["Qwen3_5ForConditionalGeneration"] + } + }, + "quantizationRecipes": [ + { + "mode": "none" + }, + { + "mode": "bnb_4bit", + "quantType": "nf4", + "doubleQuant": true, + "computeDtype": "bfloat16", + "skipModules": ["lm_head", "model.visual"] + } + ], + "layoutRequestSuffixSha256": "sha256:5c48f090514be3472650c23ccd5f6cc19077bf68cd163338aaf6903f720a7561" + }, + "sourceRegions": false, + "layoutPolicy": "append-details-preserve-layout-v1", + "contentHash": "studio-ancillary-v1-05643066" + } + ], + "contentHash": "studio-authoring-v1-32c579cc" + } + }, + { + "schemaVersion": 1, + "pipelineClass": "Flux3DistilledModularPipeline", + "task": "edit_image", + "workflowId": "image_conditioned", + "nodes": [ + { + "operation": { + "pipelineClass": "Flux3DistilledModularPipeline", + "task": "edit_image", + "operationId": "diffusion.load_models", + "nodeKey": "modules.ModularDiffusers.ModelsLoader", + "nodeType": "loader", + "blockName": null, + "decomposition": "loader", + "support": "declared", + "ports": [ + { + "name": "model_type", + "semanticName": "model_type", + "direction": "input", + "roles": ["value"], + "types": ["string"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "repo_id", + "semanticName": "repo_id", + "direction": "input", + "roles": ["value"], + "types": ["string"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "reviewed_variant", + "semanticName": "reviewed_variant", + "direction": "input", + "roles": ["value"], + "types": ["string"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "device", + "semanticName": "device", + "direction": "input", + "roles": ["value"], + "types": ["string"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "attention_backend", + "semanticName": "attention_backend", + "direction": "input", + "roles": ["value"], + "types": ["string"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "vae_slicing", + "semanticName": "vae_slicing", + "direction": "input", + "roles": ["value"], + "types": ["boolean"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "vae_tiling", + "semanticName": "vae_tiling", + "direction": "input", + "roles": ["value"], + "types": ["boolean"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "inpaint_compatibility", + "semanticName": "inpaint_compatibility", + "direction": "input", + "roles": ["value"], + "types": ["string"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "trust_remote_code", + "semanticName": "trust_remote_code", + "direction": "input", + "roles": ["value"], + "types": ["boolean"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "revision", + "semanticName": "revision", + "direction": "input", + "roles": ["value"], + "types": ["string"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "workflow_id", + "semanticName": "workflow_id", + "direction": "input", + "roles": ["value"], + "types": ["string"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "modiff_pipeline_identity", + "semanticName": "modiff_pipeline_identity", + "direction": "input", + "roles": ["value"], + "types": ["object"], + "required": false, + "hidden": true, + "semantics": { + "kind": "opaque", + "scope": "Flux3DistilledModularPipeline", + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "auto_offload", + "semanticName": "auto_offload", + "direction": "input", + "roles": ["value"], + "types": ["boolean"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "offload_mode", + "semanticName": "offload_mode", + "direction": "input", + "roles": ["value"], + "types": ["string"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "weight_loading_mode", + "semanticName": "weight_loading_mode", + "direction": "input", + "roles": ["value"], + "types": ["string"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "weight_format", + "semanticName": "weight_format", + "direction": "input", + "roles": ["value"], + "types": ["string"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "unet", + "semanticName": "unet", + "direction": "input", + "roles": ["component"], + "types": ["diffusers_auto_model"], + "required": false, + "hidden": false, + "semantics": { + "kind": "component", + "scope": "Flux3DistilledModularPipeline", + "state": null, + "owner": "same_loader", + "members": [ + { + "name": "transformer", + "type": "diffusers.models.transformers.transformer_flux3.Flux3Transformer2DModel" + } + ] + } + }, + { + "name": "vae", + "semanticName": "vae", + "direction": "input", + "roles": ["component"], + "types": ["diffusers_auto_model"], + "required": false, + "hidden": false, + "semantics": { + "kind": "component", + "scope": "Flux3DistilledModularPipeline", + "state": null, + "owner": "same_loader", + "members": [ + { + "name": "vae", + "type": "diffusers.models.autoencoders.autoencoder_kl_flux2.AutoencoderKLFlux2" + } + ] + } + }, + { + "name": "controlnet", + "semanticName": "controlnet", + "direction": "input", + "roles": ["component"], + "types": ["diffusers_auto_model"], + "required": false, + "hidden": true, + "semantics": { + "kind": "component", + "scope": "Flux3DistilledModularPipeline", + "state": null, + "owner": "same_loader", + "members": [] + } + }, + { + "name": "lora_list", + "semanticName": "lora_list", + "direction": "input", + "roles": ["value"], + "types": ["custom_lora"], + "required": false, + "hidden": false, + "semantics": { + "kind": "opaque", + "scope": "Flux3DistilledModularPipeline", + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "text_encoders", + "semanticName": "text_encoders", + "direction": "output", + "roles": ["component"], + "types": ["diffusers_auto_models"], + "required": false, + "hidden": false, + "semantics": { + "kind": "component", + "scope": "Flux3DistilledModularPipeline", + "state": null, + "owner": "same_loader", + "members": [ + { + "name": "text_encoder", + "type": "transformers.models.qwen3_vl.modeling_qwen3_vl.Qwen3VLForConditionalGeneration" + }, + { + "name": "tokenizer", + "type": "transformers.models.auto.processing_auto.AutoProcessor" + } + ] + } + }, + { + "name": "unet_out", + "semanticName": "unet_out", + "direction": "output", + "roles": ["component"], + "types": ["diffusers_auto_model"], + "required": false, + "hidden": false, + "semantics": { + "kind": "component", + "scope": "Flux3DistilledModularPipeline", + "state": null, + "owner": "same_loader", + "members": [ + { + "name": "transformer", + "type": "diffusers.models.transformers.transformer_flux3.Flux3Transformer2DModel" + } + ] + } + }, + { + "name": "vae_out", + "semanticName": "vae_out", + "direction": "output", + "roles": ["component"], + "types": ["diffusers_auto_model"], + "required": false, + "hidden": false, + "semantics": { + "kind": "component", + "scope": "Flux3DistilledModularPipeline", + "state": null, + "owner": "same_loader", + "members": [ + { + "name": "vae", + "type": "diffusers.models.autoencoders.autoencoder_kl_flux2.AutoencoderKLFlux2" + } + ] + } + }, + { + "name": "scheduler", + "semanticName": "scheduler", + "direction": "output", + "roles": ["component"], + "types": ["diffusers_auto_model"], + "required": false, + "hidden": false, + "semantics": { + "kind": "component", + "scope": "Flux3DistilledModularPipeline", + "state": null, + "owner": "same_loader", + "members": [ + { + "name": "scheduler", + "type": "diffusers.schedulers.scheduling_flow_match_euler_discrete.FlowMatchEulerDiscreteScheduler" + } + ] + } + }, + { + "name": "image_encoder", + "semanticName": "image_encoder", + "direction": "output", + "roles": ["component"], + "types": ["diffusers_auto_model"], + "required": false, + "hidden": true, + "semantics": { + "kind": "component", + "scope": "Flux3DistilledModularPipeline", + "state": null, + "owner": "same_loader", + "members": [] + } + }, + { + "name": "pipeline_components", + "semanticName": "pipeline_components", + "direction": "output", + "roles": ["component"], + "types": ["diffusers_modular_pipeline_components"], + "required": false, + "hidden": false, + "semantics": { + "kind": "component", + "scope": "Flux3DistilledModularPipeline", + "state": null, + "owner": "same_loader", + "members": [ + { + "name": "image_processor", + "type": "diffusers.modular_pipelines.flux3.image_processor.Flux3ImageProcessor" + }, + { + "name": "scheduler", + "type": "diffusers.schedulers.scheduling_flow_match_euler_discrete.FlowMatchEulerDiscreteScheduler" + }, + { + "name": "text_encoder", + "type": "transformers.models.qwen3_vl.modeling_qwen3_vl.Qwen3VLForConditionalGeneration" + }, + { + "name": "tokenizer", + "type": "transformers.models.auto.processing_auto.AutoProcessor" + }, + { + "name": "transformer", + "type": "diffusers.models.transformers.transformer_flux3.Flux3Transformer2DModel" + }, + { + "name": "vae", + "type": "diffusers.models.autoencoders.autoencoder_kl_flux2.AutoencoderKLFlux2" + } + ] + } + }, + { + "name": "quant_config", + "semanticName": "quant_config", + "direction": "input", + "roles": ["value"], + "types": ["quant_config"], + "required": false, + "hidden": false, + "semantics": { + "kind": "opaque", + "scope": "Flux3DistilledModularPipeline", + "state": null, + "owner": "none", + "members": [] + } + } + ], + "workflowId": "image_conditioned", + "binding": { + "values": { + "model_type": "Flux3DistilledModularPipeline" + }, + "pipelineClass": "Flux3DistilledModularPipeline" + } + }, + "node": { + "module": "modules.ModularDiffusers", + "action": "ModelsLoader", + "type": "custom", + "label": "Load Models", + "category": "loader", + "description": "", + "resizable": true, + "skipParamsCheck": true, + "style": {}, + "params": { + "model_type": { + "label": "Pipeline Type", + "type": "string", + "options": { + "": { + "schemaVersion": 1, + "value": "", + "label": "", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "DummyCustomPipeline": { + "schemaVersion": 1, + "value": "DummyCustomPipeline", + "label": "Custom", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "StableDiffusionXLModularPipeline": { + "schemaVersion": 1, + "value": "StableDiffusionXLModularPipeline", + "label": "Stable Diffusion XL", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "QwenImageModularPipeline": { + "schemaVersion": 1, + "value": "QwenImageModularPipeline", + "label": "Qwen-Image-2512", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "QwenImageEditModularPipeline": { + "schemaVersion": 1, + "value": "QwenImageEditModularPipeline", + "label": "Qwen-Image-Edit", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "QwenImageEditPlusModularPipeline": { + "schemaVersion": 1, + "value": "QwenImageEditPlusModularPipeline", + "label": "Qwen-Image-Edit-2511", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "QwenImageLayeredModularPipeline": { + "schemaVersion": 1, + "value": "QwenImageLayeredModularPipeline", + "label": "Qwen-Image-Layered", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "FluxModularPipeline": { + "schemaVersion": 1, + "value": "FluxModularPipeline", + "label": "Flux", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "FluxKontextModularPipeline": { + "schemaVersion": 1, + "value": "FluxKontextModularPipeline", + "label": "Flux Kontext", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "Flux2ModularPipeline": { + "schemaVersion": 1, + "value": "Flux2ModularPipeline", + "label": "Flux 2", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "Flux2KleinModularPipeline": { + "schemaVersion": 1, + "value": "Flux2KleinModularPipeline", + "label": "Flux 2 Klein Distilled", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "Flux2KleinBaseModularPipeline": { + "schemaVersion": 1, + "value": "Flux2KleinBaseModularPipeline", + "label": "Flux 2 Klein Base", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "Flux3ModularPipeline": { + "schemaVersion": 1, + "value": "Flux3ModularPipeline", + "label": "FLUX 3 Image Klein Base", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "Flux3DistilledModularPipeline": { + "schemaVersion": 1, + "value": "Flux3DistilledModularPipeline", + "label": "FLUX 3 Image Klein", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "ZImageModularPipeline": { + "schemaVersion": 1, + "value": "ZImageModularPipeline", + "label": "Z-Image", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "WanModularPipeline": { + "schemaVersion": 1, + "value": "WanModularPipeline", + "label": "WAN2 T2V", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "WanImage2VideoModularPipeline": { + "schemaVersion": 1, + "value": "WanImage2VideoModularPipeline", + "label": "WAN2 I2V", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "MiniMaxMusic3ModularPipeline": { + "schemaVersion": 1, + "value": "MiniMaxMusic3ModularPipeline", + "label": "MiniMax Music 3", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "MiniMaxH3ModularPipeline": { + "schemaVersion": 1, + "value": "MiniMaxH3ModularPipeline", + "label": "MiniMax H3", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "AnimaModularPipeline": { + "schemaVersion": 1, + "value": "AnimaModularPipeline", + "label": "Anima", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "ErnieImageModularPipeline": { + "schemaVersion": 1, + "value": "ErnieImageModularPipeline", + "label": "ERNIE Image Turbo", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "HeliosModularPipeline": { + "schemaVersion": 1, + "value": "HeliosModularPipeline", + "label": "Helios", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "HeliosPyramidModularPipeline": { + "schemaVersion": 1, + "value": "HeliosPyramidModularPipeline", + "label": "Helios Pyramid", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "HeliosPyramidDistilledModularPipeline": { + "schemaVersion": 1, + "value": "HeliosPyramidDistilledModularPipeline", + "label": "Helios Pyramid Distilled", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "HunyuanVideo15ModularPipeline": { + "schemaVersion": 1, + "value": "HunyuanVideo15ModularPipeline", + "label": "HunyuanVideo 1.5", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "WanAnimate2ModularPipeline": { + "schemaVersion": 1, + "value": "WanAnimate2ModularPipeline", + "label": "Wan Animate 2", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "WanAnimate2DistilledModularPipeline": { + "schemaVersion": 1, + "value": "WanAnimate2DistilledModularPipeline", + "label": "Wan Animate 2 Distilled", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "Cosmos3OmniModularPipeline": { + "schemaVersion": 1, + "value": "Cosmos3OmniModularPipeline", + "label": "Cosmos 3 Nano", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "Cosmos3DistilledModularPipeline": { + "schemaVersion": 1, + "value": "Cosmos3DistilledModularPipeline", + "label": "Cosmos 3 Distilled", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "Ideogram4ModularPipeline": { + "schemaVersion": 1, + "value": "Ideogram4ModularPipeline", + "label": "Ideogram 4 (Contract only)", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "Krea2ModularPipeline": { + "schemaVersion": 1, + "value": "Krea2ModularPipeline", + "label": "Krea 2 (Contract only)", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "Krea2TurboModularPipeline": { + "schemaVersion": 1, + "value": "Krea2TurboModularPipeline", + "label": "Krea 2 Turbo (Contract only)", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "StableDiffusion3ModularPipeline": { + "schemaVersion": 1, + "value": "StableDiffusion3ModularPipeline", + "label": "Stable Diffusion 3 (Contract only)", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "LTX25ModularPipeline": { + "schemaVersion": 1, + "value": "LTX25ModularPipeline", + "label": "LTX-2.5 (Contract only)", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + } + }, + "onChange": "set_filters", + "description": "Selects the Modular Diffusers pipeline class. This filters compatible checkpoints and publishes the component contract used by connected nodes; it is not the model checkpoint itself.", + "value": "Flux3DistilledModularPipeline" + }, + "repo_id": { + "label": "Repository ID", + "display": "modelselect", + "type": "string", + "value": { + "source": "hub", + "value": "black-forest-labs/flux-3-image-klein" + }, + "fieldOptions": { + "noValidation": true, + "sources": ["hub", "local"], + "filter": { + "hub": { + "className": ["Flux3DistilledModularPipeline"] + } + } + }, + "onChange": "refresh_pipeline_identity" + }, + "reviewed_variant": { + "label": "Model", + "type": "string", + "value": "black-forest-labs/flux-3-image-klein", + "options": [ + { + "schemaVersion": 1, + "value": "black-forest-labs/flux-3-image-klein", + "label": "black-forest-labs/flux-3-image-klein", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + } + ], + "hidden": true, + "fieldOptions": { + "controlTier": "essential" + }, + "description": "Select an immutable, reviewed checkpoint for this exact Modular Diffusers pipeline family. Changing it does not replace the workflow graph or reset its parameters." + }, + "dtype": { + "label": "dtype", + "options": [ + { + "schemaVersion": 1, + "value": "float32", + "label": "float32", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "float16", + "label": "float16", + "compatibility": "incompatible", + "availability": "unavailable", + "installationState": "unavailable", + "disabledReason": "float16 is not supported by the active runtime." + }, + { + "schemaVersion": 1, + "value": "bfloat16", + "label": "bfloat16", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + } + ], + "value": "bfloat16" + }, + "device": { + "label": "Device", + "type": "string", + "value": "cpu:0", + "options": { + "cpu:0": { + "schemaVersion": 1, + "value": "cpu:0", + "label": "cpu:0", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "cpu": { + "schemaVersion": 1, + "value": "cpu", + "label": "cpu", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + } + } + }, + "attention_backend": { + "label": "Attention Backend", + "type": "string", + "default": "inherit", + "options": [ + { + "schemaVersion": 1, + "value": "inherit", + "label": "inherit", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "auto", + "label": "auto", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "native", + "label": "native", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "_native_math", + "label": "_native_math", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + } + ], + "description": "Inherit preserves existing native component defaults; explicit choices use the ordinary Diffusers attention API." + }, + "vae_slicing": { + "label": "VAE Slicing", + "type": "boolean", + "default": null, + "hidden": true, + "description": "An unset policy preserves the native VAE configuration; templates may bind an explicit boolean." + }, + "vae_tiling": { + "label": "VAE Tiling", + "type": "boolean", + "default": null, + "hidden": true, + "description": "An unset policy preserves the native VAE configuration; templates may bind an explicit boolean." + }, + "inpaint_compatibility": { + "label": "Inpaint Compatibility", + "type": "string", + "default": "native", + "hidden": true, + "options": [ + { + "schemaVersion": 1, + "value": "native", + "label": "native", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "whole_v1", + "label": "whole_v1", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + } + ], + "description": "Technical compatibility selection for the reviewed Qwen Edit inpainting candidate; existing nodes retain native policy." + }, + "trust_remote_code": { + "label": "Trust Remote Code", + "type": "boolean", + "value": false, + "description": "Repository code execution is disabled; keep this off for contract preview.", + "onChange": "refresh_pipeline_identity" + }, + "revision": { + "label": "Revision", + "type": "string", + "value": "8454017f9ebaada30c998fccd9f67a80c7580f68", + "description": "Required exact 40-character commit hash for Hub custom contracts.", + "onChange": "refresh_pipeline_identity" + }, + "workflow_id": { + "label": "Reviewed Workflow", + "type": "string", + "value": "image_conditioned", + "hidden": true, + "description": "Exact reviewed component partition selected by a first-party Cluster Node." + }, + "modiff_pipeline_identity": { + "label": "Custom Pipeline Identity", + "type": "object", + "value": null, + "hidden": true + }, + "refresh_pipeline_identity_button": { + "label": "Review and Refresh Custom Contract", + "display": "ui_button", + "value": false, + "hidden": true, + "onChange": "refresh_pipeline_identity" + }, + "auto_offload": { + "label": "Enable Auto Offload", + "type": "boolean", + "value": true + }, + "offload_mode": { + "label": "Offload Mode", + "type": "string", + "options": [ + { + "schemaVersion": 1, + "value": "auto_cpu", + "label": "auto_cpu", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "none", + "label": "none", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "model_cpu", + "label": "model_cpu", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "group_cpu", + "label": "group_cpu", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "group_disk", + "label": "group_disk", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + } + ], + "value": "model_cpu", + "default": "model_cpu" + }, + "weight_loading_mode": { + "label": "Weight Loading", + "type": "string", + "default": "cpu", + "options": [ + { + "schemaVersion": 1, + "value": "cpu", + "label": "cpu", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "cuda", + "label": "cuda", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + } + ], + "fieldOptions": { + "controlTier": "advanced" + }, + "description": "Load weights on CPU or CUDA before disk offload. CUDA loading needs room for a complete component and is available only for supported models." + }, + "weight_format": { + "label": "Weight Format", + "type": "string", + "default": "native", + "options": [ + { + "schemaVersion": 1, + "value": "native", + "label": "native", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "fp8r", + "label": "fp8r", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "nvfp4", + "label": "nvfp4", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + } + ], + "hidden": false, + "fieldOptions": { + "controlTier": "advanced" + }, + "description": "Select a backend-declared immutable component format. Missing reviewed files must be installed through Model Manager." + }, + "unet": { + "label": "Denoise Model", + "display": "input", + "type": "diffusers_auto_model", + "hidden": false + }, + "vae": { + "label": "VAE", + "display": "input", + "type": "diffusers_auto_model", + "hidden": false + }, + "controlnet": { + "label": "ControlNet", + "display": "input", + "type": "diffusers_auto_model", + "hidden": true + }, + "lora_list": { + "label": "Lora", + "display": "input", + "type": "custom_lora" + }, + "text_encoders": { + "label": "Text Encoders", + "display": "output", + "type": "diffusers_auto_models", + "signal": { + "direction": "output", + "origin": "modiff_pipeline_identity", + "value": "Flux3DistilledModularPipeline" + }, + "connectionRole": "text_encoders", + "hidden": false + }, + "unet_out": { + "label": "Denoise Model", + "display": "output", + "type": "diffusers_auto_model", + "signal": { + "direction": "output", + "origin": "modiff_pipeline_identity", + "value": "Flux3DistilledModularPipeline" + }, + "connectionRole": "denoiser", + "hidden": false + }, + "vae_out": { + "label": "VAE", + "display": "output", + "type": "diffusers_auto_model", + "signal": { + "direction": "output", + "origin": "modiff_pipeline_identity", + "value": "Flux3DistilledModularPipeline" + }, + "connectionRole": "vae", + "hidden": false + }, + "scheduler": { + "label": "Scheduler", + "display": "output", + "type": "diffusers_auto_model", + "signal": { + "direction": "output", + "origin": "modiff_pipeline_identity", + "value": "Flux3DistilledModularPipeline" + }, + "connectionRole": "scheduler", + "hidden": false + }, + "image_encoder": { + "label": "Image Encoder", + "display": "output", + "type": "diffusers_auto_model", + "signal": { + "direction": "output", + "origin": "modiff_pipeline_identity", + "value": "Flux3DistilledModularPipeline" + }, + "connectionRole": "image_encoder", + "hidden": true + }, + "pipeline_components": { + "label": "Pipeline Components", + "display": "output", + "type": "diffusers_modular_pipeline_components", + "signal": { + "direction": "output", + "origin": "modiff_pipeline_identity", + "value": "Flux3DistilledModularPipeline" + }, + "connectionRole": "pipeline_components", + "hidden": false + }, + "quant_config": { + "label": "Quant Config", + "display": "input", + "type": "quant_config" + } + }, + "time": [0, 0, 0], + "memory": [0, 0, 0], + "cache": false + } + }, + { + "operation": { + "pipelineClass": "Flux3DistilledModularPipeline", + "task": "edit_image", + "operationId": "diffusion.encode_prompt", + "nodeKey": "modules.ModularDiffusers.EncodePrompt", + "nodeType": "text_encoder", + "blockName": "text_encoder", + "decomposition": "block", + "support": "declared", + "ports": [ + { + "name": "prompt", + "semanticName": "prompt", + "direction": "input", + "roles": ["value"], + "types": ["string"], + "required": true, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "max_sequence_length", + "semanticName": "max_sequence_length", + "direction": "input", + "roles": ["value"], + "types": ["int"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "text_encoder_out_layers", + "semanticName": "text_encoder_out_layers", + "direction": "input", + "roles": ["value"], + "types": ["int"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "text_encoders", + "semanticName": "text_encoders", + "direction": "input", + "roles": ["component"], + "types": ["diffusers_auto_models"], + "required": true, + "hidden": false, + "semantics": { + "kind": "component", + "scope": "Flux3DistilledModularPipeline", + "state": null, + "owner": "same_loader", + "members": [ + { + "name": "text_encoder", + "type": "transformers.models.qwen3_vl.modeling_qwen3_vl.Qwen3VLForConditionalGeneration" + }, + { + "name": "tokenizer", + "type": "transformers.models.auto.processing_auto.AutoProcessor" + } + ] + } + }, + { + "name": "embeddings", + "semanticName": "embeddings", + "direction": "output", + "roles": ["value"], + "types": ["embeddings"], + "required": false, + "hidden": false, + "semantics": { + "kind": "conditioning", + "scope": "Flux3DistilledModularPipeline", + "state": null, + "owner": "same_loader", + "members": [] + } + }, + { + "name": "doc", + "semanticName": "doc", + "direction": "output", + "roles": ["value"], + "types": ["string"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "layout_conditioning", + "semanticName": "layout_conditioning", + "direction": "input", + "roles": ["value"], + "types": ["layout_conditioning"], + "required": false, + "hidden": false, + "semantics": { + "kind": "opaque", + "scope": "Flux3DistilledModularPipeline", + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "reference_binding", + "semanticName": "reference_binding", + "direction": "input", + "roles": ["value"], + "types": ["reference_conditioning"], + "required": false, + "hidden": false, + "semantics": { + "kind": "opaque", + "scope": "Flux3DistilledModularPipeline", + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "prompt_input", + "semanticName": "prompt", + "direction": "input", + "roles": ["value"], + "types": ["string"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + } + ], + "workflowId": "image_conditioned", + "binding": { + "values": {}, + "pipelineClass": "Flux3DistilledModularPipeline" + } + }, + "node": { + "module": "modules.ModularDiffusers", + "action": "EncodePrompt", + "type": "custom", + "label": "Encode Prompt", + "category": "embedding", + "description": "", + "resizable": true, + "skipParamsCheck": true, + "style": {}, + "params": { + "text_encoders": { + "label": "Text Encoders *", + "required": true, + "type": "diffusers_auto_models", + "display": "input", + "onSignal": "update_node", + "signalCompatibility": { + "role": "text_encoders" + } + }, + "prompt_input": { + "label": "Prompt Input", + "type": "string", + "display": "input", + "description": "Optional connected prompt. When connected, this replaces the inline Prompt value." + }, + "guider": { + "label": "Guider", + "type": "custom_guider", + "display": "input", + "hidden": true, + "description": "Shared Diffusers guidance used by prompt encoding and denoising when the selected pipeline supports it." + }, + "layout_reference_summary": { + "label": "Bound Reference Summary", + "type": "string", + "display": "output", + "hidden": true, + "description": "Display-only ordered reference identities and actual preprocessing sizes from the current encoder cache." + }, + "prompt": { + "label": "Prompt *", + "type": "string", + "display": "textarea", + "default": "", + "value": "Change the background to a sunlit garden. Keep the main subject, its pose and its appearance unchanged.", + "fieldOptions": { + "exampleAttribution": "MoDiff task example" + } + }, + "max_sequence_length": { + "label": "Maximum Sequence Length", + "type": "int", + "default": 8192, + "min": 1, + "max": 8192, + "step": 1 + }, + "text_encoder_out_layers": { + "label": "Text Encoder Layers", + "type": "int", + "display": "select", + "default": [4, 8, 12, 16, 20, 24, 28, 32], + "options": [ + { + "schemaVersion": 1, + "value": "0", + "label": "0", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "1", + "label": "1", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "2", + "label": "2", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "3", + "label": "3", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "4", + "label": "4", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "5", + "label": "5", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "6", + "label": "6", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "7", + "label": "7", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "8", + "label": "8", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "9", + "label": "9", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "10", + "label": "10", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "11", + "label": "11", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "12", + "label": "12", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "13", + "label": "13", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "14", + "label": "14", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "15", + "label": "15", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "16", + "label": "16", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "17", + "label": "17", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "18", + "label": "18", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "19", + "label": "19", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "20", + "label": "20", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "21", + "label": "21", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "22", + "label": "22", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "23", + "label": "23", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "24", + "label": "24", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "25", + "label": "25", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "26", + "label": "26", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "27", + "label": "27", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "28", + "label": "28", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "29", + "label": "29", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "30", + "label": "30", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "31", + "label": "31", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "32", + "label": "32", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + } + ], + "fieldOptions": { + "multiple": true, + "tupleValue": true, + "tupleLength": 8 + } + }, + "embeddings": { + "label": "Text Embeddings", + "type": "embeddings", + "display": "output" + }, + "doc": { + "label": "Doc", + "type": "string", + "display": "output" + }, + "layout_conditioning": { + "label": "Layout Conditioning", + "type": "layout_conditioning", + "display": "layout", + "fieldOptions": { + "layoutConditioning": { + "schemaVersion": 2, + "sourceRegions": false, + "supportsBoundSourceRegions": true + } + }, + "default": null + }, + "reference_binding": { + "label": "Reference Binding", + "type": "reference_conditioning", + "display": "input", + "fieldOptions": { + "referenceBinding": { + "schemaVersion": 1, + "maxReferences": 10 + } + }, + "default": null + } + }, + "time": [0, 0, 0], + "memory": [0, 0, 0], + "cache": false + } + }, + { + "operation": { + "pipelineClass": "Flux3DistilledModularPipeline", + "task": "edit_image", + "operationId": "diffusion.encode_image", + "nodeKey": "modules.ModularDiffusers.ImageEncode", + "nodeType": "vae_encoder", + "blockName": "vae_encoder", + "decomposition": "block", + "support": "declared", + "ports": [ + { + "name": "image", + "semanticName": "image", + "direction": "input", + "roles": ["value"], + "types": ["image"], + "required": true, + "hidden": false, + "semantics": { + "kind": "media", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "vae", + "semanticName": "vae", + "direction": "input", + "roles": ["component"], + "types": ["diffusers_auto_model"], + "required": true, + "hidden": false, + "semantics": { + "kind": "component", + "scope": "Flux3DistilledModularPipeline", + "state": null, + "owner": "same_loader", + "members": [ + { + "name": "vae", + "type": "diffusers.models.autoencoders.autoencoder_kl_flux2.AutoencoderKLFlux2" + } + ] + } + }, + { + "name": "image_cond_latents", + "semanticName": "image_cond_latents", + "direction": "output", + "roles": ["value"], + "types": ["latents"], + "required": false, + "hidden": false, + "semantics": { + "kind": "latents", + "scope": "Flux3DistilledModularPipeline", + "state": null, + "owner": "same_loader", + "members": [] + } + }, + { + "name": "reference_binding", + "semanticName": "reference_binding", + "direction": "output", + "roles": ["value"], + "types": ["reference_conditioning"], + "required": false, + "hidden": false, + "semantics": { + "kind": "opaque", + "scope": "Flux3DistilledModularPipeline", + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "doc", + "semanticName": "doc", + "direction": "output", + "roles": ["value"], + "types": ["string"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + } + ], + "workflowId": "image_conditioned", + "binding": { + "values": {}, + "pipelineClass": "Flux3DistilledModularPipeline" + } + }, + "node": { + "module": "modules.ModularDiffusers", + "action": "ImageEncode", + "type": "custom", + "label": "Encode Image", + "category": "sampler", + "description": "", + "resizable": true, + "skipParamsCheck": true, + "style": {}, + "params": { + "layout_reference_summary": { + "label": "Bound Reference Summary", + "type": "string", + "display": "output", + "hidden": true, + "description": "Display-only ordered reference identities and actual preprocessing sizes from this image encoding cache." + }, + "vae": { + "label": "VAE *", + "display": "input", + "type": "diffusers_auto_model", + "onSignal": "update_node", + "signalCompatibility": { + "role": "vae" + } + }, + "encode_summary_data": { + "label": "Encode summary", + "display": "output", + "type": "str", + "hidden": true + }, + "encode_summary": { + "label": "Encode summary", + "display": "ui_text", + "type": "text", + "dataSource": "encode_summary_data", + "hidden": true + }, + "image": { + "label": "Image *", + "type": "image", + "display": "input" + }, + "image_cond_latents": { + "label": "Reference Latents", + "type": "latents", + "display": "output" + }, + "reference_binding": { + "label": "Reference Binding", + "type": "reference_conditioning", + "display": "output", + "fieldOptions": { + "referenceBinding": { + "schemaVersion": 1, + "maxReferences": 10 + } + } + }, + "doc": { + "label": "Doc", + "type": "string", + "display": "output" + } + }, + "time": [0, 0, 0], + "memory": [0, 0, 0], + "cache": false + } + }, + { + "operation": { + "pipelineClass": "Flux3DistilledModularPipeline", + "task": "edit_image", + "operationId": "diffusion.denoise", + "nodeKey": "modules.ModularDiffusers.Denoise", + "nodeType": "denoise", + "blockName": "denoise", + "decomposition": "block", + "support": "declared", + "ports": [ + { + "name": "embeddings", + "semanticName": "embeddings", + "direction": "input", + "roles": ["value"], + "types": ["embeddings"], + "required": true, + "hidden": false, + "semantics": { + "kind": "conditioning", + "scope": "Flux3DistilledModularPipeline", + "state": null, + "owner": "same_loader", + "members": [] + } + }, + { + "name": "width", + "semanticName": "width", + "direction": "input", + "roles": ["value"], + "types": ["int"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "height", + "semanticName": "height", + "direction": "input", + "roles": ["value"], + "types": ["int"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "seed", + "semanticName": "seed", + "direction": "input", + "roles": ["value"], + "types": ["int"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "num_inference_steps", + "semanticName": "num_inference_steps", + "direction": "input", + "roles": ["value"], + "types": ["int"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "num_images_per_prompt", + "semanticName": "num_images_per_prompt", + "direction": "input", + "roles": ["value"], + "types": ["int"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "image_cond_latents", + "semanticName": "image_cond_latents", + "direction": "input", + "roles": ["value"], + "types": ["latents"], + "required": false, + "hidden": false, + "semantics": { + "kind": "latents", + "scope": "Flux3DistilledModularPipeline", + "state": null, + "owner": "same_loader", + "members": [] + } + }, + { + "name": "unet", + "semanticName": "unet", + "direction": "input", + "roles": ["component"], + "types": ["diffusers_auto_model"], + "required": true, + "hidden": false, + "semantics": { + "kind": "component", + "scope": "Flux3DistilledModularPipeline", + "state": null, + "owner": "same_loader", + "members": [ + { + "name": "transformer", + "type": "diffusers.models.transformers.transformer_flux3.Flux3Transformer2DModel" + } + ] + } + }, + { + "name": "scheduler", + "semanticName": "scheduler", + "direction": "input", + "roles": ["component"], + "types": ["diffusers_auto_model"], + "required": true, + "hidden": false, + "semantics": { + "kind": "component", + "scope": "Flux3DistilledModularPipeline", + "state": null, + "owner": "same_loader", + "members": [ + { + "name": "scheduler", + "type": "diffusers.schedulers.scheduling_flow_match_euler_discrete.FlowMatchEulerDiscreteScheduler" + } + ] + } + }, + { + "name": "latents", + "semanticName": "latents", + "direction": "output", + "roles": ["value"], + "types": ["latents"], + "required": false, + "hidden": false, + "semantics": { + "kind": "latents", + "scope": "Flux3DistilledModularPipeline", + "state": null, + "owner": "same_loader", + "members": [] + } + }, + { + "name": "doc", + "semanticName": "doc", + "direction": "output", + "roles": ["value"], + "types": ["string"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "reference_binding", + "semanticName": "reference_binding", + "direction": "input", + "roles": ["value"], + "types": ["reference_conditioning"], + "required": false, + "hidden": false, + "semantics": { + "kind": "opaque", + "scope": "Flux3DistilledModularPipeline", + "state": null, + "owner": "none", + "members": [] + } + } + ], + "workflowId": "image_conditioned", + "binding": { + "values": {}, + "pipelineClass": "Flux3DistilledModularPipeline" + } + }, + "node": { + "module": "modules.ModularDiffusers", + "action": "Denoise", + "type": "custom", + "label": "Denoise", + "category": "sampler", + "description": "", + "resizable": true, + "skipParamsCheck": true, + "style": {}, + "params": { + "unet": { + "label": "Denoise Model *", + "display": "input", + "type": "diffusers_auto_model", + "required": true, + "onSignal": [ + "update_node", + { + "action": "signal", + "target": "guider" + }, + { + "action": "signal", + "target": "controlnet_bundle" + } + ], + "signalCompatibility": { + "role": "denoiser" + } + }, + "embeddings": { + "label": "Text Embeddings *", + "type": "embeddings", + "display": "input" + }, + "width": { + "label": "Width", + "type": "int", + "default": 1024, + "min": 64, + "step": 16, + "value": 1024 + }, + "height": { + "label": "Height", + "type": "int", + "default": 1024, + "min": 64, + "step": 16, + "value": 1024 + }, + "seed": { + "label": "Seed", + "type": "int", + "display": "random", + "default": 0, + "min": 0, + "max": 4294967295 + }, + "num_inference_steps": { + "label": "Steps", + "type": "int", + "display": "slider", + "default": 16, + "min": 1, + "max": 100, + "value": 16 + }, + "num_images_per_prompt": { + "label": "Images Per Prompt", + "type": "int", + "default": 1, + "min": 1, + "max": 8, + "step": 1 + }, + "image_cond_latents": { + "label": "Reference Latents", + "type": "latents", + "display": "input" + }, + "scheduler": { + "label": "Scheduler *", + "type": "diffusers_auto_model", + "display": "input", + "signalCompatibility": { + "role": "scheduler" + } + }, + "latents": { + "label": "Latents", + "type": "latents", + "display": "output" + }, + "doc": { + "label": "Doc", + "type": "string", + "display": "output" + }, + "reference_binding": { + "label": "Reference Binding", + "type": "reference_conditioning", + "display": "input", + "fieldOptions": { + "referenceBinding": { + "schemaVersion": 1, + "maxReferences": 10 + } + }, + "default": null + } + }, + "time": [0, 0, 0], + "memory": [0, 0, 0], + "cache": false + } + }, + { + "operation": { + "pipelineClass": "Flux3DistilledModularPipeline", + "task": "edit_image", + "operationId": "diffusion.decode_latents", + "nodeKey": "modules.ModularDiffusers.DecodeLatents", + "nodeType": "decoder", + "blockName": "decode", + "decomposition": "block", + "support": "declared", + "ports": [ + { + "name": "latents", + "semanticName": "latents", + "direction": "input", + "roles": ["value"], + "types": ["latents"], + "required": true, + "hidden": false, + "semantics": { + "kind": "latents", + "scope": "Flux3DistilledModularPipeline", + "state": null, + "owner": "same_loader", + "members": [] + } + }, + { + "name": "vae", + "semanticName": "vae", + "direction": "input", + "roles": ["component"], + "types": ["diffusers_auto_model"], + "required": true, + "hidden": false, + "semantics": { + "kind": "component", + "scope": "Flux3DistilledModularPipeline", + "state": null, + "owner": "same_loader", + "members": [ + { + "name": "vae", + "type": "diffusers.models.autoencoders.autoencoder_kl_flux2.AutoencoderKLFlux2" + } + ] + } + }, + { + "name": "images", + "semanticName": "images", + "direction": "output", + "roles": ["value"], + "types": ["image"], + "required": false, + "hidden": false, + "semantics": { + "kind": "media", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "doc", + "semanticName": "doc", + "direction": "output", + "roles": ["value"], + "types": ["string"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + } + ], + "workflowId": "image_conditioned", + "binding": { + "values": {}, + "pipelineClass": "Flux3DistilledModularPipeline" + } + }, + "node": { + "module": "modules.ModularDiffusers", + "action": "DecodeLatents", + "type": "custom", + "label": "Decode Latents", + "category": "sampler", + "description": "", + "resizable": true, + "skipParamsCheck": true, + "style": {}, + "params": { + "vae": { + "label": "VAE *", + "display": "input", + "type": "diffusers_auto_model", + "onSignal": "update_node", + "signalCompatibility": { + "role": "vae" + } + }, + "latents": { + "label": "Latents *", + "type": "latents", + "display": "input" + }, + "images": { + "label": "Images", + "type": "image", + "display": "output" + }, + "doc": { + "label": "Doc", + "type": "string", + "display": "output" + } + }, + "time": [0, 0, 0], + "memory": [0, 0, 0], + "cache": false + } + } + ], + "edges": [ + { + "source": "diffusion.load_models", + "sourceHandle": "text_encoders", + "target": "diffusion.encode_prompt", + "targetHandle": "text_encoders" + }, + { + "source": "diffusion.load_models", + "sourceHandle": "vae_out", + "target": "diffusion.encode_image", + "targetHandle": "vae" + }, + { + "source": "diffusion.load_models", + "sourceHandle": "scheduler", + "target": "diffusion.denoise", + "targetHandle": "scheduler" + }, + { + "source": "diffusion.load_models", + "sourceHandle": "unet_out", + "target": "diffusion.denoise", + "targetHandle": "unet" + }, + { + "source": "diffusion.load_models", + "sourceHandle": "vae_out", + "target": "diffusion.decode_latents", + "targetHandle": "vae" + }, + { + "source": "diffusion.encode_prompt", + "sourceHandle": "embeddings", + "target": "diffusion.denoise", + "targetHandle": "embeddings" + }, + { + "source": "diffusion.denoise", + "sourceHandle": "latents", + "target": "diffusion.decode_latents", + "targetHandle": "latents" + }, + { + "source": "diffusion.encode_image", + "sourceHandle": "image_cond_latents", + "target": "diffusion.denoise", + "targetHandle": "image_cond_latents" + }, + { + "source": "diffusion.encode_image", + "sourceHandle": "reference_binding", + "target": "diffusion.encode_prompt", + "targetHandle": "reference_binding" + }, + { + "source": "diffusion.encode_image", + "sourceHandle": "reference_binding", + "target": "diffusion.denoise", + "targetHandle": "reference_binding" + } + ], + "requiredInputs": [ + { + "operationId": "diffusion.encode_image", + "field": "image" + }, + { + "operationId": "diffusion.encode_prompt", + "field": "prompt" + } + ], + "sharedInputs": [], + "upstreamBlocks": ["text_encoder", "vae_encoder", "denoise", "decode"], + "authoring": { + "schemaVersion": 1, + "canonicalizationVersion": 1, + "id": "flux3-klein:edit-image:prompt-preview-authoring:v1", + "baseSpecId": "flux3-klein:modular:edit-image:v1", + "baseSpecContentHash": "studio-spec-v1-3eb193af", + "executionProfileIds": ["flux3-klein:modular"], + "roles": [ + ["models", "modules.ModularDiffusers.ModelsLoader", -720, -80], + ["prompt", "modules.ModularDiffusers.EncodePrompt", -360, -240], + ["denoise", "modules.ModularDiffusers.Denoise", 80, -80], + ["decode", "modules.ModularDiffusers.DecodeLatents", 440, -80], + ["preview", "modules.Image.Preview", 800, -80], + ["loadImage", "modules.Image.Load", -720, 320], + ["imageEncode", "modules.ModularDiffusers.ImageEncode", -360, 320] + ], + "edges": [ + ["models", "text_encoders", "prompt", "text_encoders"], + ["models", "unet_out", "denoise", "unet"], + ["models", "scheduler", "denoise", "scheduler"], + ["models", "vae_out", "decode", "vae"], + ["prompt", "embeddings", "denoise", "embeddings"], + ["denoise", "latents", "decode", "latents"], + ["decode", "images", "preview", "image"], + ["models", "vae_out", "imageEncode", "vae"], + ["loadImage", "image", "imageEncode", "image"], + ["imageEncode", "image_cond_latents", "denoise", "image_cond_latents"], + ["imageEncode", "reference_binding", "prompt", "reference_binding"], + ["imageEncode", "reference_binding", "denoise", "reference_binding"] + ], + "bindings": [ + ["models", "model_type", "pipelineClass"], + ["models", "repo_id", "artifact"], + ["models", "revision", "defaultRevision"], + ["models", "dtype", "dtype"], + ["models", "device", "device"], + ["models", "auto_offload", "autoOffload"], + ["models", "offload_mode", "offloadMode"], + ["models", "trust_remote_code", "false"], + ["prompt", "prompt", "prompt"], + ["denoise", "width", "width"], + ["denoise", "height", "height"], + ["denoise", "seed", "seed"], + ["denoise", "num_inference_steps", "steps"], + ["prompt", "max_sequence_length", "maxSequenceLength"], + ["models", "weight_format", "weightFormat"], + ["loadImage", "file", "referenceImages"], + ["loadImage", "alpha_channel", "alphaMode"] + ], + "initialValues": [], + "ancillaryOperations": [ + { + "schemaVersion": 1, + "id": "flux3-klein:edit-image:prompt-preview-authoring:v1:preview", + "parent": { + "authoringRecipeId": "flux3-klein:edit-image:prompt-preview-authoring:v1", + "baseSpecId": "flux3-klein:modular:edit-image:v1", + "baseSpecContentHash": "studio-spec-v1-3eb193af", + "executionProfileId": "flux3-klein:modular", + "pipelineClass": "Flux3DistilledModularPipeline", + "task": "edit_image" + }, + "executionPurpose": "explicit_preview", + "roles": [ + ["provider", "modules.HuggingFaceTransformers.LoadImageTextToTextModel", -720, -400], + ["proposal", "modules.HuggingFaceTransformers.GenerateImageVideoText", -360, -400] + ], + "edges": [["provider", "model", "proposal", "model"]], + "bindings": { + "owner": { + "role": "prompt", + "promptField": "prompt", + "layoutField": "layout_conditioning", + "referenceSource": { + "role": "loadImage", + "field": "image" + } + }, + "request": { + "role": "proposal", + "promptField": "prompt", + "layoutField": "layout_conditioning", + "imagesField": "images" + }, + "output": { + "role": "proposal", + "field": "proposal_summary" + } + }, + "initialValues": [ + [ + "provider", + "model_id", + { + "source": "hub", + "value": "black-forest-labs/flux-3-image-klein-pup" + } + ], + ["provider", "revision", "3f3edb52b2c55de0d49feab28598b68f7f8e4830"], + ["proposal", "operation", "enhance_prompt"] + ], + "fieldOverrides": [ + [ + "proposal", + "enhancement_max_new_tokens", + { + "hidden": false + } + ], + [ + "proposal", + "max_new_tokens", + { + "hidden": true + } + ] + ], + "adapter": { + "id": "transformers-prompt-enhancement-v1", + "declarationSha256": "sha256:2a3d4685988b418115008bbb95fb3e948097580c0bedd2940ea3fe1e40254dc2" + }, + "verification": { + "schemaVersion": 1, + "adapter": { + "id": "transformers-prompt-enhancement-v1", + "declarationSha256": "sha256:2a3d4685988b418115008bbb95fb3e948097580c0bedd2940ea3fe1e40254dc2" + }, + "runtimeInputs": { + "role": "provider", + "modelField": "model_id", + "revisionField": "revision", + "dtypeField": "dtype", + "deviceField": "device", + "quantizationField": "quantization_mode" + }, + "requestInputs": { + "role": "proposal", + "operationField": "operation", + "maxNewTokensField": "enhancement_max_new_tokens", + "minNewTokensField": "min_new_tokens", + "maxInputTokensField": "max_input_tokens", + "maxImagePixelsField": "max_image_pixels" + }, + "supportedPromptModes": ["t2i", "i2i"], + "systemPromptsSha256": "sha256:b5da3ed8bc04ab59dbdb747930f7dbff847e868903fed8028f85ee1a4ac82fb4", + "systemPromptSha256ByMode": { + "t2i": "8b235a421bce2213d11ada01f5a1244443dd72303ffbb4cc9e5a0d8b0de5ab6f", + "i2i": "95cec384d5b6d341caa9fb3f2c7ca45ee80c2364b3a95d4044aebf976f6dd3bf", + "t2i_bbox": "5f513d8ce5838732919f9e645507aa20ff373e88bf93132c768e063c9db3151f", + "i2i_bbox": "9ad10f947e401337cf155cac0518cc428159ef16f2f029f48aae2aaab8380a5e" + }, + "chatTemplateSha256": "sha256:a4aee8afcf2e0711942cf848899be66016f8d14a889ff9ede07bca099c28f715", + "modelReceipt": { + "schemaVersion": 1, + "library": "transformers", + "task": "image-video-to-text", + "source": { + "kind": "hub", + "repository": "black-forest-labs/flux-3-image-klein-pup", + "revision": "3f3edb52b2c55de0d49feab28598b68f7f8e4830" + }, + "loader": { + "preprocessorAutoClass": "AutoProcessor", + "modelAutoClass": "AutoModelForImageTextToText" + }, + "security": { + "localFilesOnly": true, + "trustRemoteCode": false, + "safetensorsOnly": true, + "hostedInference": false + }, + "runtime": { + "transformersVersion": "5.18.0", + "preprocessorClass": "Qwen3VLProcessor", + "modelClass": "Qwen3_5ForConditionalGeneration", + "modelType": "qwen3_5", + "architectures": ["Qwen3_5ForConditionalGeneration"] + } + }, + "quantizationRecipes": [ + { + "mode": "none" + }, + { + "mode": "bnb_4bit", + "quantType": "nf4", + "doubleQuant": true, + "computeDtype": "bfloat16", + "skipModules": ["lm_head", "model.visual"] + } + ] + }, + "sourceRegions": false, + "contentHash": "studio-ancillary-v1-95fc4619" + } + ], + "contentHash": "studio-authoring-v1-d43668d0" + } + }, + { + "schemaVersion": 1, + "pipelineClass": "Flux3ModularPipeline", + "task": "text_to_image", + "workflowId": "text2image", + "nodes": [ + { + "operation": { + "pipelineClass": "Flux3ModularPipeline", + "task": "text_to_image", + "operationId": "diffusion.load_models", + "nodeKey": "modules.ModularDiffusers.ModelsLoader", + "nodeType": "loader", + "blockName": null, + "decomposition": "loader", + "support": "declared", + "ports": [ + { + "name": "model_type", + "semanticName": "model_type", + "direction": "input", + "roles": ["value"], + "types": ["string"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "repo_id", + "semanticName": "repo_id", + "direction": "input", + "roles": ["value"], + "types": ["string"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "reviewed_variant", + "semanticName": "reviewed_variant", + "direction": "input", + "roles": ["value"], + "types": ["string"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "device", + "semanticName": "device", + "direction": "input", + "roles": ["value"], + "types": ["string"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "attention_backend", + "semanticName": "attention_backend", + "direction": "input", + "roles": ["value"], + "types": ["string"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "vae_slicing", + "semanticName": "vae_slicing", + "direction": "input", + "roles": ["value"], + "types": ["boolean"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "vae_tiling", + "semanticName": "vae_tiling", + "direction": "input", + "roles": ["value"], + "types": ["boolean"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "inpaint_compatibility", + "semanticName": "inpaint_compatibility", + "direction": "input", + "roles": ["value"], + "types": ["string"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "trust_remote_code", + "semanticName": "trust_remote_code", + "direction": "input", + "roles": ["value"], + "types": ["boolean"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "revision", + "semanticName": "revision", + "direction": "input", + "roles": ["value"], + "types": ["string"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "workflow_id", + "semanticName": "workflow_id", + "direction": "input", + "roles": ["value"], + "types": ["string"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "modiff_pipeline_identity", + "semanticName": "modiff_pipeline_identity", + "direction": "input", + "roles": ["value"], + "types": ["object"], + "required": false, + "hidden": true, + "semantics": { + "kind": "opaque", + "scope": "Flux3ModularPipeline", + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "auto_offload", + "semanticName": "auto_offload", + "direction": "input", + "roles": ["value"], + "types": ["boolean"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "offload_mode", + "semanticName": "offload_mode", + "direction": "input", + "roles": ["value"], + "types": ["string"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "weight_loading_mode", + "semanticName": "weight_loading_mode", + "direction": "input", + "roles": ["value"], + "types": ["string"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "weight_format", + "semanticName": "weight_format", + "direction": "input", + "roles": ["value"], + "types": ["string"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "unet", + "semanticName": "unet", + "direction": "input", + "roles": ["component"], + "types": ["diffusers_auto_model"], + "required": false, + "hidden": false, + "semantics": { + "kind": "component", + "scope": "Flux3ModularPipeline", + "state": null, + "owner": "same_loader", + "members": [ + { + "name": "transformer", + "type": "diffusers.models.transformers.transformer_flux3.Flux3Transformer2DModel" + } + ] + } + }, + { + "name": "vae", + "semanticName": "vae", + "direction": "input", + "roles": ["component"], + "types": ["diffusers_auto_model"], + "required": false, + "hidden": false, + "semantics": { + "kind": "component", + "scope": "Flux3ModularPipeline", + "state": null, + "owner": "same_loader", + "members": [ + { + "name": "vae", + "type": "diffusers.models.autoencoders.autoencoder_kl_flux2.AutoencoderKLFlux2" + } + ] + } + }, + { + "name": "controlnet", + "semanticName": "controlnet", + "direction": "input", + "roles": ["component"], + "types": ["diffusers_auto_model"], + "required": false, + "hidden": true, + "semantics": { + "kind": "component", + "scope": "Flux3ModularPipeline", + "state": null, + "owner": "same_loader", + "members": [] + } + }, + { + "name": "lora_list", + "semanticName": "lora_list", + "direction": "input", + "roles": ["value"], + "types": ["custom_lora"], + "required": false, + "hidden": false, + "semantics": { + "kind": "opaque", + "scope": "Flux3ModularPipeline", + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "text_encoders", + "semanticName": "text_encoders", + "direction": "output", + "roles": ["component"], + "types": ["diffusers_auto_models"], + "required": false, + "hidden": false, + "semantics": { + "kind": "component", + "scope": "Flux3ModularPipeline", + "state": null, + "owner": "same_loader", + "members": [ + { + "name": "text_encoder", + "type": "transformers.models.qwen3_vl.modeling_qwen3_vl.Qwen3VLForConditionalGeneration" + }, + { + "name": "tokenizer", + "type": "transformers.models.auto.processing_auto.AutoProcessor" + } + ] + } + }, + { + "name": "unet_out", + "semanticName": "unet_out", + "direction": "output", + "roles": ["component"], + "types": ["diffusers_auto_model"], + "required": false, + "hidden": false, + "semantics": { + "kind": "component", + "scope": "Flux3ModularPipeline", + "state": null, + "owner": "same_loader", + "members": [ + { + "name": "transformer", + "type": "diffusers.models.transformers.transformer_flux3.Flux3Transformer2DModel" + } + ] + } + }, + { + "name": "vae_out", + "semanticName": "vae_out", + "direction": "output", + "roles": ["component"], + "types": ["diffusers_auto_model"], + "required": false, + "hidden": false, + "semantics": { + "kind": "component", + "scope": "Flux3ModularPipeline", + "state": null, + "owner": "same_loader", + "members": [ + { + "name": "vae", + "type": "diffusers.models.autoencoders.autoencoder_kl_flux2.AutoencoderKLFlux2" + } + ] + } + }, + { + "name": "scheduler", + "semanticName": "scheduler", + "direction": "output", + "roles": ["component"], + "types": ["diffusers_auto_model"], + "required": false, + "hidden": false, + "semantics": { + "kind": "component", + "scope": "Flux3ModularPipeline", + "state": null, + "owner": "same_loader", + "members": [ + { + "name": "scheduler", + "type": "diffusers.schedulers.scheduling_flow_match_euler_discrete.FlowMatchEulerDiscreteScheduler" + } + ] + } + }, + { + "name": "image_encoder", + "semanticName": "image_encoder", + "direction": "output", + "roles": ["component"], + "types": ["diffusers_auto_model"], + "required": false, + "hidden": true, + "semantics": { + "kind": "component", + "scope": "Flux3ModularPipeline", + "state": null, + "owner": "same_loader", + "members": [] + } + }, + { + "name": "pipeline_components", + "semanticName": "pipeline_components", + "direction": "output", + "roles": ["component"], + "types": ["diffusers_modular_pipeline_components"], + "required": false, + "hidden": false, + "semantics": { + "kind": "component", + "scope": "Flux3ModularPipeline", + "state": null, + "owner": "same_loader", + "members": [ + { + "name": "guider", + "type": "diffusers.guiders.classifier_free_guidance.ClassifierFreeGuidance" + }, + { + "name": "image_processor", + "type": "diffusers.modular_pipelines.flux3.image_processor.Flux3ImageProcessor" + }, + { + "name": "scheduler", + "type": "diffusers.schedulers.scheduling_flow_match_euler_discrete.FlowMatchEulerDiscreteScheduler" + }, + { + "name": "text_encoder", + "type": "transformers.models.qwen3_vl.modeling_qwen3_vl.Qwen3VLForConditionalGeneration" + }, + { + "name": "tokenizer", + "type": "transformers.models.auto.processing_auto.AutoProcessor" + }, + { + "name": "transformer", + "type": "diffusers.models.transformers.transformer_flux3.Flux3Transformer2DModel" + }, + { + "name": "vae", + "type": "diffusers.models.autoencoders.autoencoder_kl_flux2.AutoencoderKLFlux2" + } + ] + } + }, + { + "name": "quant_config", + "semanticName": "quant_config", + "direction": "input", + "roles": ["value"], + "types": ["quant_config"], + "required": false, + "hidden": false, + "semantics": { + "kind": "opaque", + "scope": "Flux3ModularPipeline", + "state": null, + "owner": "none", + "members": [] + } + } + ], + "workflowId": "text2image", + "binding": { + "values": { + "model_type": "Flux3ModularPipeline" + }, + "pipelineClass": "Flux3ModularPipeline" + } + }, + "node": { + "module": "modules.ModularDiffusers", + "action": "ModelsLoader", + "type": "custom", + "label": "Load Models", + "category": "loader", + "description": "", + "resizable": true, + "skipParamsCheck": true, + "style": {}, + "params": { + "model_type": { + "label": "Pipeline Type", + "type": "string", + "options": { + "": { + "schemaVersion": 1, + "value": "", + "label": "", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "DummyCustomPipeline": { + "schemaVersion": 1, + "value": "DummyCustomPipeline", + "label": "Custom", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "StableDiffusionXLModularPipeline": { + "schemaVersion": 1, + "value": "StableDiffusionXLModularPipeline", + "label": "Stable Diffusion XL", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "QwenImageModularPipeline": { + "schemaVersion": 1, + "value": "QwenImageModularPipeline", + "label": "Qwen-Image-2512", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "QwenImageEditModularPipeline": { + "schemaVersion": 1, + "value": "QwenImageEditModularPipeline", + "label": "Qwen-Image-Edit", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "QwenImageEditPlusModularPipeline": { + "schemaVersion": 1, + "value": "QwenImageEditPlusModularPipeline", + "label": "Qwen-Image-Edit-2511", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "QwenImageLayeredModularPipeline": { + "schemaVersion": 1, + "value": "QwenImageLayeredModularPipeline", + "label": "Qwen-Image-Layered", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "FluxModularPipeline": { + "schemaVersion": 1, + "value": "FluxModularPipeline", + "label": "Flux", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "FluxKontextModularPipeline": { + "schemaVersion": 1, + "value": "FluxKontextModularPipeline", + "label": "Flux Kontext", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "Flux2ModularPipeline": { + "schemaVersion": 1, + "value": "Flux2ModularPipeline", + "label": "Flux 2", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "Flux2KleinModularPipeline": { + "schemaVersion": 1, + "value": "Flux2KleinModularPipeline", + "label": "Flux 2 Klein Distilled", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "Flux2KleinBaseModularPipeline": { + "schemaVersion": 1, + "value": "Flux2KleinBaseModularPipeline", + "label": "Flux 2 Klein Base", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "Flux3ModularPipeline": { + "schemaVersion": 1, + "value": "Flux3ModularPipeline", + "label": "FLUX 3 Image Klein Base", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "Flux3DistilledModularPipeline": { + "schemaVersion": 1, + "value": "Flux3DistilledModularPipeline", + "label": "FLUX 3 Image Klein", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "ZImageModularPipeline": { + "schemaVersion": 1, + "value": "ZImageModularPipeline", + "label": "Z-Image", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "WanModularPipeline": { + "schemaVersion": 1, + "value": "WanModularPipeline", + "label": "WAN2 T2V", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "WanImage2VideoModularPipeline": { + "schemaVersion": 1, + "value": "WanImage2VideoModularPipeline", + "label": "WAN2 I2V", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "MiniMaxMusic3ModularPipeline": { + "schemaVersion": 1, + "value": "MiniMaxMusic3ModularPipeline", + "label": "MiniMax Music 3", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "MiniMaxH3ModularPipeline": { + "schemaVersion": 1, + "value": "MiniMaxH3ModularPipeline", + "label": "MiniMax H3", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "AnimaModularPipeline": { + "schemaVersion": 1, + "value": "AnimaModularPipeline", + "label": "Anima", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "ErnieImageModularPipeline": { + "schemaVersion": 1, + "value": "ErnieImageModularPipeline", + "label": "ERNIE Image Turbo", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "HeliosModularPipeline": { + "schemaVersion": 1, + "value": "HeliosModularPipeline", + "label": "Helios", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "HeliosPyramidModularPipeline": { + "schemaVersion": 1, + "value": "HeliosPyramidModularPipeline", + "label": "Helios Pyramid", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "HeliosPyramidDistilledModularPipeline": { + "schemaVersion": 1, + "value": "HeliosPyramidDistilledModularPipeline", + "label": "Helios Pyramid Distilled", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "HunyuanVideo15ModularPipeline": { + "schemaVersion": 1, + "value": "HunyuanVideo15ModularPipeline", + "label": "HunyuanVideo 1.5", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "WanAnimate2ModularPipeline": { + "schemaVersion": 1, + "value": "WanAnimate2ModularPipeline", + "label": "Wan Animate 2", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "WanAnimate2DistilledModularPipeline": { + "schemaVersion": 1, + "value": "WanAnimate2DistilledModularPipeline", + "label": "Wan Animate 2 Distilled", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "Cosmos3OmniModularPipeline": { + "schemaVersion": 1, + "value": "Cosmos3OmniModularPipeline", + "label": "Cosmos 3 Nano", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "Cosmos3DistilledModularPipeline": { + "schemaVersion": 1, + "value": "Cosmos3DistilledModularPipeline", + "label": "Cosmos 3 Distilled", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "Ideogram4ModularPipeline": { + "schemaVersion": 1, + "value": "Ideogram4ModularPipeline", + "label": "Ideogram 4 (Contract only)", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "Krea2ModularPipeline": { + "schemaVersion": 1, + "value": "Krea2ModularPipeline", + "label": "Krea 2 (Contract only)", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "Krea2TurboModularPipeline": { + "schemaVersion": 1, + "value": "Krea2TurboModularPipeline", + "label": "Krea 2 Turbo (Contract only)", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "StableDiffusion3ModularPipeline": { + "schemaVersion": 1, + "value": "StableDiffusion3ModularPipeline", + "label": "Stable Diffusion 3 (Contract only)", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "LTX25ModularPipeline": { + "schemaVersion": 1, + "value": "LTX25ModularPipeline", + "label": "LTX-2.5 (Contract only)", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + } + }, + "onChange": "set_filters", + "description": "Selects the Modular Diffusers pipeline class. This filters compatible checkpoints and publishes the component contract used by connected nodes; it is not the model checkpoint itself.", + "value": "Flux3ModularPipeline" + }, + "repo_id": { + "label": "Repository ID", + "display": "modelselect", + "type": "string", + "value": { + "source": "hub", + "value": "black-forest-labs/flux-3-image-klein-base" + }, + "fieldOptions": { + "noValidation": true, + "sources": ["hub", "local"], + "filter": { + "hub": { + "className": ["Flux3ModularPipeline"] + } + } + }, + "onChange": "refresh_pipeline_identity" + }, + "reviewed_variant": { + "label": "Model", + "type": "string", + "value": "black-forest-labs/flux-3-image-klein-base", + "options": [ + { + "schemaVersion": 1, + "value": "black-forest-labs/flux-3-image-klein-base", + "label": "black-forest-labs/flux-3-image-klein-base", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + } + ], + "hidden": true, + "fieldOptions": { + "controlTier": "essential" + }, + "description": "Select an immutable, reviewed checkpoint for this exact Modular Diffusers pipeline family. Changing it does not replace the workflow graph or reset its parameters." + }, + "dtype": { + "label": "dtype", + "options": [ + { + "schemaVersion": 1, + "value": "float32", + "label": "float32", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "float16", + "label": "float16", + "compatibility": "incompatible", + "availability": "unavailable", + "installationState": "unavailable", + "disabledReason": "float16 is not supported by the active runtime." + }, + { + "schemaVersion": 1, + "value": "bfloat16", + "label": "bfloat16", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + } + ], + "value": "bfloat16" + }, + "device": { + "label": "Device", + "type": "string", + "value": "cpu:0", + "options": { + "cpu:0": { + "schemaVersion": 1, + "value": "cpu:0", + "label": "cpu:0", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "cpu": { + "schemaVersion": 1, + "value": "cpu", + "label": "cpu", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + } + } + }, + "attention_backend": { + "label": "Attention Backend", + "type": "string", + "default": "inherit", + "options": [ + { + "schemaVersion": 1, + "value": "inherit", + "label": "inherit", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "auto", + "label": "auto", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "native", + "label": "native", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "_native_math", + "label": "_native_math", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + } + ], + "description": "Inherit preserves existing native component defaults; explicit choices use the ordinary Diffusers attention API." + }, + "vae_slicing": { + "label": "VAE Slicing", + "type": "boolean", + "default": null, + "hidden": true, + "description": "An unset policy preserves the native VAE configuration; templates may bind an explicit boolean." + }, + "vae_tiling": { + "label": "VAE Tiling", + "type": "boolean", + "default": null, + "hidden": true, + "description": "An unset policy preserves the native VAE configuration; templates may bind an explicit boolean." + }, + "inpaint_compatibility": { + "label": "Inpaint Compatibility", + "type": "string", + "default": "native", + "hidden": true, + "options": [ + { + "schemaVersion": 1, + "value": "native", + "label": "native", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "whole_v1", + "label": "whole_v1", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + } + ], + "description": "Technical compatibility selection for the reviewed Qwen Edit inpainting candidate; existing nodes retain native policy." + }, + "trust_remote_code": { + "label": "Trust Remote Code", + "type": "boolean", + "value": false, + "description": "Repository code execution is disabled; keep this off for contract preview.", + "onChange": "refresh_pipeline_identity" + }, + "revision": { + "label": "Revision", + "type": "string", + "value": "1469d27cfb9bb1bd81d3a93f5a023b39dbf136e4", + "description": "Required exact 40-character commit hash for Hub custom contracts.", + "onChange": "refresh_pipeline_identity" + }, + "workflow_id": { + "label": "Reviewed Workflow", + "type": "string", + "value": "text2image", + "hidden": true, + "description": "Exact reviewed component partition selected by a first-party Cluster Node." + }, + "modiff_pipeline_identity": { + "label": "Custom Pipeline Identity", + "type": "object", + "value": null, + "hidden": true + }, + "refresh_pipeline_identity_button": { + "label": "Review and Refresh Custom Contract", + "display": "ui_button", + "value": false, + "hidden": true, + "onChange": "refresh_pipeline_identity" + }, + "auto_offload": { + "label": "Enable Auto Offload", + "type": "boolean", + "value": true + }, + "offload_mode": { + "label": "Offload Mode", + "type": "string", + "options": [ + { + "schemaVersion": 1, + "value": "auto_cpu", + "label": "auto_cpu", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "none", + "label": "none", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "model_cpu", + "label": "model_cpu", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "group_cpu", + "label": "group_cpu", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "group_disk", + "label": "group_disk", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + } + ], + "value": "model_cpu", + "default": "model_cpu" + }, + "weight_loading_mode": { + "label": "Weight Loading", + "type": "string", + "default": "cpu", + "options": [ + { + "schemaVersion": 1, + "value": "cpu", + "label": "cpu", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "cuda", + "label": "cuda", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + } + ], + "fieldOptions": { + "controlTier": "advanced" + }, + "description": "Load weights on CPU or CUDA before disk offload. CUDA loading needs room for a complete component and is available only for supported models." + }, + "weight_format": { + "label": "Weight Format", + "type": "string", + "default": "native", + "options": [ + { + "schemaVersion": 1, + "value": "native", + "label": "native", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "fp8r", + "label": "fp8r", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "nvfp4", + "label": "nvfp4", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + } + ], + "hidden": false, + "fieldOptions": { + "controlTier": "advanced" + }, + "description": "Select a backend-declared immutable component format. Missing reviewed files must be installed through Model Manager." + }, + "unet": { + "label": "Denoise Model", + "display": "input", + "type": "diffusers_auto_model", + "hidden": false + }, + "vae": { + "label": "VAE", + "display": "input", + "type": "diffusers_auto_model", + "hidden": false + }, + "controlnet": { + "label": "ControlNet", + "display": "input", + "type": "diffusers_auto_model", + "hidden": true + }, + "lora_list": { + "label": "Lora", + "display": "input", + "type": "custom_lora" + }, + "text_encoders": { + "label": "Text Encoders", + "display": "output", + "type": "diffusers_auto_models", + "signal": { + "direction": "output", + "origin": "modiff_pipeline_identity", + "value": "Flux3ModularPipeline" + }, + "connectionRole": "text_encoders", + "hidden": false + }, + "unet_out": { + "label": "Denoise Model", + "display": "output", + "type": "diffusers_auto_model", + "signal": { + "direction": "output", + "origin": "modiff_pipeline_identity", + "value": "Flux3ModularPipeline" + }, + "connectionRole": "denoiser", + "hidden": false + }, + "vae_out": { + "label": "VAE", + "display": "output", + "type": "diffusers_auto_model", + "signal": { + "direction": "output", + "origin": "modiff_pipeline_identity", + "value": "Flux3ModularPipeline" + }, + "connectionRole": "vae", + "hidden": false + }, + "scheduler": { + "label": "Scheduler", + "display": "output", + "type": "diffusers_auto_model", + "signal": { + "direction": "output", + "origin": "modiff_pipeline_identity", + "value": "Flux3ModularPipeline" + }, + "connectionRole": "scheduler", + "hidden": false + }, + "image_encoder": { + "label": "Image Encoder", + "display": "output", + "type": "diffusers_auto_model", + "signal": { + "direction": "output", + "origin": "modiff_pipeline_identity", + "value": "Flux3ModularPipeline" + }, + "connectionRole": "image_encoder", + "hidden": true + }, + "pipeline_components": { + "label": "Pipeline Components", + "display": "output", + "type": "diffusers_modular_pipeline_components", + "signal": { + "direction": "output", + "origin": "modiff_pipeline_identity", + "value": "Flux3ModularPipeline" + }, + "connectionRole": "pipeline_components", + "hidden": false + }, + "quant_config": { + "label": "Quant Config", + "display": "input", + "type": "quant_config" + } + }, + "time": [0, 0, 0], + "memory": [0, 0, 0], + "cache": false + } + }, + { + "operation": { + "pipelineClass": "Flux3ModularPipeline", + "task": "text_to_image", + "operationId": "diffusion.guidance", + "nodeKey": "modules.ModularDiffusers.Guider", + "nodeType": "guidance", + "blockName": null, + "decomposition": "bundle", + "support": "declared", + "ports": [ + { + "name": "model_type", + "semanticName": "model_type", + "direction": "input", + "roles": ["value"], + "types": ["string"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "guider", + "semanticName": "guider", + "direction": "input", + "roles": ["value"], + "types": ["string"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "guidance_scale", + "semanticName": "guidance_scale", + "direction": "input", + "roles": ["value"], + "types": ["float"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "guidance_rescale", + "semanticName": "guidance_rescale", + "direction": "input", + "roles": ["value"], + "types": ["float"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "use_original_formulation", + "semanticName": "use_original_formulation", + "direction": "input", + "roles": ["value"], + "types": ["boolean"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "enabled", + "semanticName": "enabled", + "direction": "input", + "roles": ["value"], + "types": ["boolean"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "start", + "semanticName": "start", + "direction": "input", + "roles": ["value"], + "types": ["float"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "stop", + "semanticName": "stop", + "direction": "input", + "roles": ["value"], + "types": ["float"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "guider_out", + "semanticName": "guider_out", + "direction": "output", + "roles": ["component"], + "types": ["custom_guider"], + "required": false, + "hidden": false, + "semantics": { + "kind": "component", + "scope": "Flux3ModularPipeline", + "state": null, + "owner": "same_loader", + "members": [] + } + }, + { + "name": "layers_config", + "semanticName": "layers_config", + "direction": "input", + "roles": ["value"], + "types": ["layers_config"], + "required": false, + "hidden": false, + "semantics": { + "kind": "opaque", + "scope": "Flux3ModularPipeline", + "state": null, + "owner": "none", + "members": [] + } + } + ], + "workflowId": "text2image", + "binding": { + "values": { + "model_type": "Flux3ModularPipeline" + }, + "pipelineClass": "Flux3ModularPipeline" + } + }, + "node": { + "module": "modules.ModularDiffusers", + "action": "Guider", + "type": "custom", + "label": "Guidance", + "category": "sampler", + "description": "", + "resizable": true, + "skipParamsCheck": true, + "style": {}, + "params": { + "model_type": { + "type": "string", + "default": "", + "hidden": true, + "value": "Flux3ModularPipeline" + }, + "guider": { + "label": "Guider", + "fieldOptions": { + "loading": true + }, + "type": "string", + "options": [ + { + "schemaVersion": 1, + "value": "ClassifierFreeGuidance", + "label": "ClassifierFreeGuidance", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + } + ], + "value": "ClassifierFreeGuidance", + "onChange": [ + "updateNode", + { + "SkipLayerGuidance": ["layers_config"], + "AutoGuidance": ["layers_config"], + "SmoothedEnergyGuidance": ["layers_config"], + "PerturbedAttentionGuidance": ["layers_config"] + } + ] + }, + "guidance_scale": { + "label": "Guidance Scale", + "type": "float", + "display": "slider", + "value": 3.5, + "min": 1.0, + "max": 20.0, + "step": 0.1 + }, + "guidance_rescale": { + "label": "Guidance Rescale", + "type": "float", + "display": "slider", + "value": 0.0, + "min": 0.0, + "max": 10.0, + "step": 0.1 + }, + "use_original_formulation": { + "label": "Original Formulation", + "type": "boolean", + "value": false + }, + "enabled": { + "label": "Enabled", + "type": "boolean", + "value": true + }, + "start": { + "label": "Start", + "type": "float", + "display": "slider", + "value": 0.0, + "min": 0.0, + "max": 1.0, + "step": 0.01 + }, + "stop": { + "label": "Stop", + "type": "float", + "display": "slider", + "value": 1.0, + "min": 0.01, + "max": 1.0, + "step": 0.01 + }, + "guider_out": { + "label": "Guider", + "display": "output", + "type": "custom_guider", + "onSignal": [ + { + "action": "value", + "target": "model_type" + }, + { + "action": "value", + "target": "guider", + "prop": "options", + "data": { + "StableDiffusionXLModularPipeline": [ + "ClassifierFreeGuidance", + "SkipLayerGuidance", + "AdaptiveProjectedGuidance", + "AdaptiveProjectedMixGuidance", + "MagnitudeAwareGuidance", + "ClassifierFreeZeroStarGuidance", + "AutoGuidance", + "SmoothedEnergyGuidance", + "PerturbedAttentionGuidance", + "TangentialClassifierFreeGuidance", + "FrequencyDecoupledGuidance" + ], + "QwenImageModularPipeline": [ + "ClassifierFreeGuidance", + "SkipLayerGuidance", + "AdaptiveProjectedGuidance", + "AdaptiveProjectedMixGuidance", + "MagnitudeAwareGuidance", + "ClassifierFreeZeroStarGuidance", + "AutoGuidance", + "SmoothedEnergyGuidance", + "PerturbedAttentionGuidance", + "TangentialClassifierFreeGuidance", + "FrequencyDecoupledGuidance" + ], + "QwenImageEditModularPipeline": [ + "ClassifierFreeGuidance", + "SkipLayerGuidance", + "AdaptiveProjectedGuidance", + "AdaptiveProjectedMixGuidance", + "MagnitudeAwareGuidance", + "ClassifierFreeZeroStarGuidance", + "AutoGuidance", + "SmoothedEnergyGuidance", + "PerturbedAttentionGuidance", + "TangentialClassifierFreeGuidance", + "FrequencyDecoupledGuidance" + ], + "QwenImageEditPlusModularPipeline": [ + "ClassifierFreeGuidance", + "SkipLayerGuidance", + "AdaptiveProjectedGuidance", + "AdaptiveProjectedMixGuidance", + "MagnitudeAwareGuidance", + "ClassifierFreeZeroStarGuidance", + "AutoGuidance", + "SmoothedEnergyGuidance", + "PerturbedAttentionGuidance", + "TangentialClassifierFreeGuidance", + "FrequencyDecoupledGuidance" + ], + "QwenImageLayeredModularPipeline": [ + "ClassifierFreeGuidance", + "AdaptiveProjectedGuidance", + "AdaptiveProjectedMixGuidance", + "MagnitudeAwareGuidance", + "ClassifierFreeZeroStarGuidance", + "TangentialClassifierFreeGuidance", + "FrequencyDecoupledGuidance" + ], + "FluxModularPipeline": ["ClassifierFreeGuidance"], + "FluxKontextModularPipeline": ["ClassifierFreeGuidance"], + "Flux2KleinBaseModularPipeline": ["ClassifierFreeGuidance"], + "Flux3ModularPipeline": ["ClassifierFreeGuidance"], + "ZImageModularPipeline": [ + "ClassifierFreeGuidance", + "AdaptiveProjectedGuidance", + "AdaptiveProjectedMixGuidance", + "MagnitudeAwareGuidance", + "ClassifierFreeZeroStarGuidance", + "TangentialClassifierFreeGuidance", + "FrequencyDecoupledGuidance" + ], + "WanModularPipeline": [ + "ClassifierFreeGuidance", + "AdaptiveProjectedGuidance", + "AdaptiveProjectedMixGuidance", + "MagnitudeAwareGuidance", + "ClassifierFreeZeroStarGuidance", + "TangentialClassifierFreeGuidance", + "FrequencyDecoupledGuidance" + ], + "WanImage2VideoModularPipeline": [ + "ClassifierFreeGuidance", + "AdaptiveProjectedGuidance", + "AdaptiveProjectedMixGuidance", + "MagnitudeAwareGuidance", + "ClassifierFreeZeroStarGuidance", + "TangentialClassifierFreeGuidance", + "FrequencyDecoupledGuidance" + ] + } + }, + { + "action": "signal", + "target": "layers_config" + } + ], + "signalCompatibility": { + "values": { + "StableDiffusionXLModularPipeline": [ + "ClassifierFreeGuidance", + "SkipLayerGuidance", + "AdaptiveProjectedGuidance", + "AdaptiveProjectedMixGuidance", + "MagnitudeAwareGuidance", + "ClassifierFreeZeroStarGuidance", + "AutoGuidance", + "SmoothedEnergyGuidance", + "PerturbedAttentionGuidance", + "TangentialClassifierFreeGuidance", + "FrequencyDecoupledGuidance" + ], + "QwenImageModularPipeline": [ + "ClassifierFreeGuidance", + "SkipLayerGuidance", + "AdaptiveProjectedGuidance", + "AdaptiveProjectedMixGuidance", + "MagnitudeAwareGuidance", + "ClassifierFreeZeroStarGuidance", + "AutoGuidance", + "SmoothedEnergyGuidance", + "PerturbedAttentionGuidance", + "TangentialClassifierFreeGuidance", + "FrequencyDecoupledGuidance" + ], + "QwenImageEditModularPipeline": [ + "ClassifierFreeGuidance", + "SkipLayerGuidance", + "AdaptiveProjectedGuidance", + "AdaptiveProjectedMixGuidance", + "MagnitudeAwareGuidance", + "ClassifierFreeZeroStarGuidance", + "AutoGuidance", + "SmoothedEnergyGuidance", + "PerturbedAttentionGuidance", + "TangentialClassifierFreeGuidance", + "FrequencyDecoupledGuidance" + ], + "QwenImageEditPlusModularPipeline": [ + "ClassifierFreeGuidance", + "SkipLayerGuidance", + "AdaptiveProjectedGuidance", + "AdaptiveProjectedMixGuidance", + "MagnitudeAwareGuidance", + "ClassifierFreeZeroStarGuidance", + "AutoGuidance", + "SmoothedEnergyGuidance", + "PerturbedAttentionGuidance", + "TangentialClassifierFreeGuidance", + "FrequencyDecoupledGuidance" + ], + "QwenImageLayeredModularPipeline": [ + "ClassifierFreeGuidance", + "AdaptiveProjectedGuidance", + "AdaptiveProjectedMixGuidance", + "MagnitudeAwareGuidance", + "ClassifierFreeZeroStarGuidance", + "TangentialClassifierFreeGuidance", + "FrequencyDecoupledGuidance" + ], + "FluxModularPipeline": ["ClassifierFreeGuidance"], + "FluxKontextModularPipeline": ["ClassifierFreeGuidance"], + "Flux2KleinBaseModularPipeline": ["ClassifierFreeGuidance"], + "Flux3ModularPipeline": ["ClassifierFreeGuidance"], + "ZImageModularPipeline": [ + "ClassifierFreeGuidance", + "AdaptiveProjectedGuidance", + "AdaptiveProjectedMixGuidance", + "MagnitudeAwareGuidance", + "ClassifierFreeZeroStarGuidance", + "TangentialClassifierFreeGuidance", + "FrequencyDecoupledGuidance" + ], + "WanModularPipeline": [ + "ClassifierFreeGuidance", + "AdaptiveProjectedGuidance", + "AdaptiveProjectedMixGuidance", + "MagnitudeAwareGuidance", + "ClassifierFreeZeroStarGuidance", + "TangentialClassifierFreeGuidance", + "FrequencyDecoupledGuidance" + ], + "WanImage2VideoModularPipeline": [ + "ClassifierFreeGuidance", + "AdaptiveProjectedGuidance", + "AdaptiveProjectedMixGuidance", + "MagnitudeAwareGuidance", + "ClassifierFreeZeroStarGuidance", + "TangentialClassifierFreeGuidance", + "FrequencyDecoupledGuidance" + ] + } + } + }, + "layers_config": { + "label": "Layers", + "type": "layers_config", + "display": "input" + } + }, + "time": [0, 0, 0], + "memory": [0, 0, 0], + "cache": false + } + }, + { + "operation": { + "pipelineClass": "Flux3ModularPipeline", + "task": "text_to_image", + "operationId": "diffusion.encode_prompt", + "nodeKey": "modules.ModularDiffusers.EncodePrompt", + "nodeType": "text_encoder", + "blockName": "text_encoder", + "decomposition": "block", + "support": "declared", + "ports": [ + { + "name": "prompt", + "semanticName": "prompt", + "direction": "input", + "roles": ["value"], + "types": ["string"], + "required": true, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "negative_prompt", + "semanticName": "negative_prompt", + "direction": "input", + "roles": ["value"], + "types": ["string"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "max_sequence_length", + "semanticName": "max_sequence_length", + "direction": "input", + "roles": ["value"], + "types": ["int"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "text_encoder_out_layers", + "semanticName": "text_encoder_out_layers", + "direction": "input", + "roles": ["value"], + "types": ["int"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "text_encoders", + "semanticName": "text_encoders", + "direction": "input", + "roles": ["component"], + "types": ["diffusers_auto_models"], + "required": true, + "hidden": false, + "semantics": { + "kind": "component", + "scope": "Flux3ModularPipeline", + "state": null, + "owner": "same_loader", + "members": [ + { + "name": "text_encoder", + "type": "transformers.models.qwen3_vl.modeling_qwen3_vl.Qwen3VLForConditionalGeneration" + }, + { + "name": "tokenizer", + "type": "transformers.models.auto.processing_auto.AutoProcessor" + } + ] + } + }, + { + "name": "embeddings", + "semanticName": "embeddings", + "direction": "output", + "roles": ["value"], + "types": ["embeddings"], + "required": false, + "hidden": false, + "semantics": { + "kind": "conditioning", + "scope": "Flux3ModularPipeline", + "state": null, + "owner": "same_loader", + "members": [] + } + }, + { + "name": "doc", + "semanticName": "doc", + "direction": "output", + "roles": ["value"], + "types": ["string"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "layout_conditioning", + "semanticName": "layout_conditioning", + "direction": "input", + "roles": ["value"], + "types": ["layout_conditioning"], + "required": false, + "hidden": false, + "semantics": { + "kind": "opaque", + "scope": "Flux3ModularPipeline", + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "reference_binding", + "semanticName": "reference_binding", + "direction": "input", + "roles": ["value"], + "types": ["reference_conditioning"], + "required": false, + "hidden": false, + "semantics": { + "kind": "opaque", + "scope": "Flux3ModularPipeline", + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "prompt_input", + "semanticName": "prompt", + "direction": "input", + "roles": ["value"], + "types": ["string"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + } + ], + "workflowId": "text2image", + "binding": { + "values": {}, + "pipelineClass": "Flux3ModularPipeline" + } + }, + "node": { + "module": "modules.ModularDiffusers", + "action": "EncodePrompt", + "type": "custom", + "label": "Encode Prompt", + "category": "embedding", + "description": "", + "resizable": true, + "skipParamsCheck": true, + "style": {}, + "params": { + "text_encoders": { + "label": "Text Encoders *", + "required": true, + "type": "diffusers_auto_models", + "display": "input", + "onSignal": "update_node", + "signalCompatibility": { + "role": "text_encoders" + } + }, + "prompt_input": { + "label": "Prompt Input", + "type": "string", + "display": "input", + "description": "Optional connected prompt. When connected, this replaces the inline Prompt value." + }, + "guider": { + "label": "Guider", + "type": "custom_guider", + "display": "input", + "hidden": true, + "description": "Shared Diffusers guidance used by prompt encoding and denoising when the selected pipeline supports it." + }, + "layout_reference_summary": { + "label": "Bound Reference Summary", + "type": "string", + "display": "output", + "hidden": true, + "description": "Display-only ordered reference identities and actual preprocessing sizes from the current encoder cache." + }, + "prompt": { + "label": "Prompt *", + "type": "string", + "display": "textarea", + "default": "", + "value": "A red ceramic teapot on a wooden table beside a window, soft morning light, detailed photograph.", + "fieldOptions": { + "exampleAttribution": "MoDiff task example" + } + }, + "negative_prompt": { + "label": "Negative Prompt", + "type": "string", + "display": "textarea", + "default": "" + }, + "max_sequence_length": { + "label": "Maximum Sequence Length", + "type": "int", + "default": 8192, + "min": 1, + "max": 8192, + "step": 1 + }, + "text_encoder_out_layers": { + "label": "Text Encoder Layers", + "type": "int", + "display": "select", + "default": [4, 8, 12, 16, 20, 24, 28, 32], + "options": [ + { + "schemaVersion": 1, + "value": "0", + "label": "0", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "1", + "label": "1", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "2", + "label": "2", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "3", + "label": "3", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "4", + "label": "4", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "5", + "label": "5", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "6", + "label": "6", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "7", + "label": "7", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "8", + "label": "8", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "9", + "label": "9", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "10", + "label": "10", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "11", + "label": "11", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "12", + "label": "12", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "13", + "label": "13", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "14", + "label": "14", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "15", + "label": "15", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "16", + "label": "16", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "17", + "label": "17", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "18", + "label": "18", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "19", + "label": "19", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "20", + "label": "20", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "21", + "label": "21", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "22", + "label": "22", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "23", + "label": "23", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "24", + "label": "24", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "25", + "label": "25", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "26", + "label": "26", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "27", + "label": "27", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "28", + "label": "28", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "29", + "label": "29", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "30", + "label": "30", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "31", + "label": "31", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "32", + "label": "32", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + } + ], + "fieldOptions": { + "multiple": true, + "tupleValue": true, + "tupleLength": 8 + } + }, + "embeddings": { + "label": "Text Embeddings", + "type": "embeddings", + "display": "output" + }, + "doc": { + "label": "Doc", + "type": "string", + "display": "output" + }, + "layout_conditioning": { + "label": "Layout Conditioning", + "type": "layout_conditioning", + "display": "layout", + "fieldOptions": { + "layoutConditioning": { + "schemaVersion": 2, + "sourceRegions": false, + "supportsBoundSourceRegions": true + } + }, + "default": null + }, + "reference_binding": { + "label": "Reference Binding", + "type": "reference_conditioning", + "display": "input", + "fieldOptions": { + "referenceBinding": { + "schemaVersion": 1, + "maxReferences": 10 + } + }, + "default": null + } + }, + "time": [0, 0, 0], + "memory": [0, 0, 0], + "cache": false + } + }, + { + "operation": { + "pipelineClass": "Flux3ModularPipeline", + "task": "text_to_image", + "operationId": "diffusion.denoise", + "nodeKey": "modules.ModularDiffusers.Denoise", + "nodeType": "denoise", + "blockName": "denoise", + "decomposition": "block", + "support": "declared", + "ports": [ + { + "name": "embeddings", + "semanticName": "embeddings", + "direction": "input", + "roles": ["value"], + "types": ["embeddings"], + "required": true, + "hidden": false, + "semantics": { + "kind": "conditioning", + "scope": "Flux3ModularPipeline", + "state": null, + "owner": "same_loader", + "members": [] + } + }, + { + "name": "width", + "semanticName": "width", + "direction": "input", + "roles": ["value"], + "types": ["int"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "height", + "semanticName": "height", + "direction": "input", + "roles": ["value"], + "types": ["int"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "seed", + "semanticName": "seed", + "direction": "input", + "roles": ["value"], + "types": ["int"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "num_inference_steps", + "semanticName": "num_inference_steps", + "direction": "input", + "roles": ["value"], + "types": ["int"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "num_images_per_prompt", + "semanticName": "num_images_per_prompt", + "direction": "input", + "roles": ["value"], + "types": ["int"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "image_cond_latents", + "semanticName": "image_cond_latents", + "direction": "input", + "roles": ["value"], + "types": ["latents"], + "required": false, + "hidden": false, + "semantics": { + "kind": "latents", + "scope": "Flux3ModularPipeline", + "state": null, + "owner": "same_loader", + "members": [] + } + }, + { + "name": "unet", + "semanticName": "unet", + "direction": "input", + "roles": ["component"], + "types": ["diffusers_auto_model"], + "required": true, + "hidden": false, + "semantics": { + "kind": "component", + "scope": "Flux3ModularPipeline", + "state": null, + "owner": "same_loader", + "members": [ + { + "name": "transformer", + "type": "diffusers.models.transformers.transformer_flux3.Flux3Transformer2DModel" + } + ] + } + }, + { + "name": "scheduler", + "semanticName": "scheduler", + "direction": "input", + "roles": ["component"], + "types": ["diffusers_auto_model"], + "required": true, + "hidden": false, + "semantics": { + "kind": "component", + "scope": "Flux3ModularPipeline", + "state": null, + "owner": "same_loader", + "members": [ + { + "name": "scheduler", + "type": "diffusers.schedulers.scheduling_flow_match_euler_discrete.FlowMatchEulerDiscreteScheduler" + } + ] + } + }, + { + "name": "guider", + "semanticName": "guider", + "direction": "input", + "roles": ["component"], + "types": ["custom_guider"], + "required": false, + "hidden": false, + "semantics": { + "kind": "component", + "scope": "Flux3ModularPipeline", + "state": null, + "owner": "same_loader", + "members": [ + { + "name": "guider", + "type": "diffusers.guiders.classifier_free_guidance.ClassifierFreeGuidance" + } + ] + } + }, + { + "name": "latents", + "semanticName": "latents", + "direction": "output", + "roles": ["value"], + "types": ["latents"], + "required": false, + "hidden": false, + "semantics": { + "kind": "latents", + "scope": "Flux3ModularPipeline", + "state": null, + "owner": "same_loader", + "members": [] + } + }, + { + "name": "doc", + "semanticName": "doc", + "direction": "output", + "roles": ["value"], + "types": ["string"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "reference_binding", + "semanticName": "reference_binding", + "direction": "input", + "roles": ["value"], + "types": ["reference_conditioning"], + "required": false, + "hidden": false, + "semantics": { + "kind": "opaque", + "scope": "Flux3ModularPipeline", + "state": null, + "owner": "none", + "members": [] + } + } + ], + "workflowId": "text2image", + "binding": { + "values": {}, + "pipelineClass": "Flux3ModularPipeline" + } + }, + "node": { + "module": "modules.ModularDiffusers", + "action": "Denoise", + "type": "custom", + "label": "Denoise", + "category": "sampler", + "description": "", + "resizable": true, + "skipParamsCheck": true, + "style": {}, + "params": { + "unet": { + "label": "Denoise Model *", + "display": "input", + "type": "diffusers_auto_model", + "required": true, + "onSignal": [ + "update_node", + { + "action": "signal", + "target": "guider" + }, + { + "action": "signal", + "target": "controlnet_bundle" + } + ], + "signalCompatibility": { + "role": "denoiser" + } + }, + "embeddings": { + "label": "Text Embeddings *", + "type": "embeddings", + "display": "input" + }, + "width": { + "label": "Width", + "type": "int", + "default": 1024, + "min": 64, + "step": 16, + "value": 1024 + }, + "height": { + "label": "Height", + "type": "int", + "default": 1024, + "min": 64, + "step": 16, + "value": 1024 + }, + "seed": { + "label": "Seed", + "type": "int", + "display": "random", + "default": 0, + "min": 0, + "max": 4294967295 + }, + "num_inference_steps": { + "label": "Steps", + "type": "int", + "display": "slider", + "default": 50, + "min": 1, + "max": 100, + "value": 50 + }, + "num_images_per_prompt": { + "label": "Images Per Prompt", + "type": "int", + "default": 1, + "min": 1, + "max": 8, + "step": 1 + }, + "image_cond_latents": { + "label": "Reference Latents", + "type": "latents", + "display": "input" + }, + "scheduler": { + "label": "Scheduler *", + "type": "diffusers_auto_model", + "display": "input", + "signalCompatibility": { + "role": "scheduler" + } + }, + "guider": { + "label": "Guider", + "type": "custom_guider", + "display": "input" + }, + "latents": { + "label": "Latents", + "type": "latents", + "display": "output" + }, + "doc": { + "label": "Doc", + "type": "string", + "display": "output" + }, + "reference_binding": { + "label": "Reference Binding", + "type": "reference_conditioning", + "display": "input", + "fieldOptions": { + "referenceBinding": { + "schemaVersion": 1, + "maxReferences": 10 + } + }, + "default": null + } + }, + "time": [0, 0, 0], + "memory": [0, 0, 0], + "cache": false + } + }, + { + "operation": { + "pipelineClass": "Flux3ModularPipeline", + "task": "text_to_image", + "operationId": "diffusion.decode_latents", + "nodeKey": "modules.ModularDiffusers.DecodeLatents", + "nodeType": "decoder", + "blockName": "decode", + "decomposition": "block", + "support": "declared", + "ports": [ + { + "name": "latents", + "semanticName": "latents", + "direction": "input", + "roles": ["value"], + "types": ["latents"], + "required": true, + "hidden": false, + "semantics": { + "kind": "latents", + "scope": "Flux3ModularPipeline", + "state": null, + "owner": "same_loader", + "members": [] + } + }, + { + "name": "vae", + "semanticName": "vae", + "direction": "input", + "roles": ["component"], + "types": ["diffusers_auto_model"], + "required": true, + "hidden": false, + "semantics": { + "kind": "component", + "scope": "Flux3ModularPipeline", + "state": null, + "owner": "same_loader", + "members": [ + { + "name": "vae", + "type": "diffusers.models.autoencoders.autoencoder_kl_flux2.AutoencoderKLFlux2" + } + ] + } + }, + { + "name": "images", + "semanticName": "images", + "direction": "output", + "roles": ["value"], + "types": ["image"], + "required": false, + "hidden": false, + "semantics": { + "kind": "media", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "doc", + "semanticName": "doc", + "direction": "output", + "roles": ["value"], + "types": ["string"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + } + ], + "workflowId": "text2image", + "binding": { + "values": {}, + "pipelineClass": "Flux3ModularPipeline" + } + }, + "node": { + "module": "modules.ModularDiffusers", + "action": "DecodeLatents", + "type": "custom", + "label": "Decode Latents", + "category": "sampler", + "description": "", + "resizable": true, + "skipParamsCheck": true, + "style": {}, + "params": { + "vae": { + "label": "VAE *", + "display": "input", + "type": "diffusers_auto_model", + "onSignal": "update_node", + "signalCompatibility": { + "role": "vae" + } + }, + "latents": { + "label": "Latents *", + "type": "latents", + "display": "input" + }, + "images": { + "label": "Images", + "type": "image", + "display": "output" + }, + "doc": { + "label": "Doc", + "type": "string", + "display": "output" + } + }, + "time": [0, 0, 0], + "memory": [0, 0, 0], + "cache": false + } + } + ], + "edges": [ + { + "source": "diffusion.load_models", + "sourceHandle": "text_encoders", + "target": "diffusion.encode_prompt", + "targetHandle": "text_encoders" + }, + { + "source": "diffusion.load_models", + "sourceHandle": "scheduler", + "target": "diffusion.denoise", + "targetHandle": "scheduler" + }, + { + "source": "diffusion.load_models", + "sourceHandle": "unet_out", + "target": "diffusion.denoise", + "targetHandle": "unet" + }, + { + "source": "diffusion.load_models", + "sourceHandle": "vae_out", + "target": "diffusion.decode_latents", + "targetHandle": "vae" + }, + { + "source": "diffusion.encode_prompt", + "sourceHandle": "embeddings", + "target": "diffusion.denoise", + "targetHandle": "embeddings" + }, + { + "source": "diffusion.denoise", + "sourceHandle": "latents", + "target": "diffusion.decode_latents", + "targetHandle": "latents" + }, + { + "source": "diffusion.guidance", + "sourceHandle": "guider_out", + "target": "diffusion.denoise", + "targetHandle": "guider" + } + ], + "requiredInputs": [ + { + "operationId": "diffusion.encode_prompt", + "field": "prompt" + } + ], + "sharedInputs": [], + "upstreamBlocks": ["text_encoder", "denoise", "decode"], + "authoring": { + "schemaVersion": 1, + "canonicalizationVersion": 1, + "id": "flux3-klein-base:text-to-image:prompt-preview-fp32-authoring:v3", + "baseSpecId": "flux3-klein-base:modular:text-to-image:v1", + "baseSpecContentHash": "studio-spec-v1-b86b1275", + "executionProfileIds": ["flux3-klein-base:modular"], + "roles": [ + ["models", "modules.ModularDiffusers.ModelsLoader", -720, -80], + ["prompt", "modules.ModularDiffusers.EncodePrompt", -360, -240], + ["denoise", "modules.ModularDiffusers.Denoise", 80, -80], + ["decode", "modules.ModularDiffusers.DecodeLatents", 440, -80], + ["preview", "modules.Image.Preview", 800, -80], + ["guider", "modules.ModularDiffusers.Guider", -360, 160] + ], + "edges": [ + ["models", "text_encoders", "prompt", "text_encoders"], + ["models", "unet_out", "denoise", "unet"], + ["models", "scheduler", "denoise", "scheduler"], + ["models", "vae_out", "decode", "vae"], + ["prompt", "embeddings", "denoise", "embeddings"], + ["denoise", "latents", "decode", "latents"], + ["decode", "images", "preview", "image"], + ["guider", "guider_out", "denoise", "guider"] + ], + "bindings": [ + ["models", "model_type", "pipelineClass"], + ["models", "repo_id", "artifact"], + ["models", "revision", "defaultRevision"], + ["models", "dtype", "dtype"], + ["models", "device", "device"], + ["models", "auto_offload", "autoOffload"], + ["models", "offload_mode", "offloadMode"], + ["models", "trust_remote_code", "false"], + ["prompt", "prompt", "prompt"], + ["prompt", "negative_prompt", "negativePrompt"], + ["denoise", "width", "width"], + ["denoise", "height", "height"], + ["denoise", "seed", "seed"], + ["denoise", "num_inference_steps", "steps"], + ["prompt", "max_sequence_length", "maxSequenceLength"], + ["models", "weight_format", "weightFormat"], + ["guider", "guider", "classifierFreeGuidance"], + ["guider", "model_type", "pipelineClass"], + ["guider", "guidance_scale", "guidanceScale"] + ], + "initialValues": [], + "ancillaryOperations": [ + { + "schemaVersion": 1, + "id": "flux3-klein-base:text-to-image:prompt-preview-fp32-authoring:v3:preview", + "parent": { + "authoringRecipeId": "flux3-klein-base:text-to-image:prompt-preview-fp32-authoring:v3", + "baseSpecId": "flux3-klein-base:modular:text-to-image:v1", + "baseSpecContentHash": "studio-spec-v1-b86b1275", + "executionProfileId": "flux3-klein-base:modular", + "pipelineClass": "Flux3ModularPipeline", + "task": "text_to_image" + }, + "executionPurpose": "explicit_preview", + "roles": [ + ["provider", "modules.HuggingFaceTransformers.LoadImageTextToTextModel", -720, -400], + ["proposal", "modules.HuggingFaceTransformers.GenerateImageVideoText", -360, -400] + ], + "edges": [["provider", "model", "proposal", "model"]], + "bindings": { + "owner": { + "role": "prompt", + "promptField": "prompt", + "layoutField": "layout_conditioning", + "referenceSource": null + }, + "request": { + "role": "proposal", + "promptField": "prompt", + "layoutField": "layout_conditioning", + "imagesField": "images" + }, + "output": { + "role": "proposal", + "field": "proposal_summary" + } + }, + "initialValues": [ + [ + "provider", + "model_id", + { + "source": "hub", + "value": "black-forest-labs/flux-3-image-klein-pup" + } + ], + ["provider", "revision", "3f3edb52b2c55de0d49feab28598b68f7f8e4830"], + ["proposal", "operation", "enhance_prompt_append_details"], + ["provider", "dtype", "float32"], + ["provider", "device", "cuda:0"], + ["provider", "quantization_mode", "none"], + ["proposal", "max_input_tokens", 4096] + ], + "fieldOverrides": [ + [ + "proposal", + "enhancement_max_new_tokens", + { + "hidden": false + } + ], + [ + "proposal", + "max_new_tokens", + { + "hidden": true + } + ] + ], + "adapter": { + "id": "transformers-prompt-enhancement-v1", + "declarationSha256": "sha256:2a3d4685988b418115008bbb95fb3e948097580c0bedd2940ea3fe1e40254dc2" + }, + "verification": { + "schemaVersion": 1, + "adapter": { + "id": "transformers-prompt-enhancement-v1", + "declarationSha256": "sha256:2a3d4685988b418115008bbb95fb3e948097580c0bedd2940ea3fe1e40254dc2" + }, + "runtimeInputs": { + "role": "provider", + "modelField": "model_id", + "revisionField": "revision", + "dtypeField": "dtype", + "deviceField": "device", + "quantizationField": "quantization_mode" + }, + "requestInputs": { + "role": "proposal", + "operationField": "operation", + "maxNewTokensField": "enhancement_max_new_tokens", + "minNewTokensField": "min_new_tokens", + "maxInputTokensField": "max_input_tokens", + "maxImagePixelsField": "max_image_pixels" + }, + "supportedPromptModes": ["t2i", "i2i"], + "systemPromptsSha256": "sha256:b5da3ed8bc04ab59dbdb747930f7dbff847e868903fed8028f85ee1a4ac82fb4", + "systemPromptSha256ByMode": { + "t2i": "8b235a421bce2213d11ada01f5a1244443dd72303ffbb4cc9e5a0d8b0de5ab6f", + "i2i": "95cec384d5b6d341caa9fb3f2c7ca45ee80c2364b3a95d4044aebf976f6dd3bf", + "t2i_bbox": "5f513d8ce5838732919f9e645507aa20ff373e88bf93132c768e063c9db3151f", + "i2i_bbox": "9ad10f947e401337cf155cac0518cc428159ef16f2f029f48aae2aaab8380a5e" + }, + "chatTemplateSha256": "sha256:a4aee8afcf2e0711942cf848899be66016f8d14a889ff9ede07bca099c28f715", + "modelReceipt": { + "schemaVersion": 1, + "library": "transformers", + "task": "image-video-to-text", + "source": { + "kind": "hub", + "repository": "black-forest-labs/flux-3-image-klein-pup", + "revision": "3f3edb52b2c55de0d49feab28598b68f7f8e4830" + }, + "loader": { + "preprocessorAutoClass": "AutoProcessor", + "modelAutoClass": "AutoModelForImageTextToText" + }, + "security": { + "localFilesOnly": true, + "trustRemoteCode": false, + "safetensorsOnly": true, + "hostedInference": false + }, + "runtime": { + "transformersVersion": "5.18.0", + "preprocessorClass": "Qwen3VLProcessor", + "modelClass": "Qwen3_5ForConditionalGeneration", + "modelType": "qwen3_5", + "architectures": ["Qwen3_5ForConditionalGeneration"] + } + }, + "quantizationRecipes": [ + { + "mode": "none" + }, + { + "mode": "bnb_4bit", + "quantType": "nf4", + "doubleQuant": true, + "computeDtype": "bfloat16", + "skipModules": ["lm_head", "model.visual"] + } + ], + "layoutRequestSuffixSha256": "sha256:5c48f090514be3472650c23ccd5f6cc19077bf68cd163338aaf6903f720a7561" + }, + "sourceRegions": false, + "layoutPolicy": "append-details-preserve-layout-v1", + "contentHash": "studio-ancillary-v1-cce5b05b" + } + ], + "contentHash": "studio-authoring-v1-df18f7a1" + } + }, + { + "schemaVersion": 1, + "pipelineClass": "Flux3ModularPipeline", + "task": "text_to_image", + "workflowId": "text2image", + "nodes": [ + { + "operation": { + "pipelineClass": "Flux3ModularPipeline", + "task": "text_to_image", + "operationId": "diffusion.load_models", + "nodeKey": "modules.ModularDiffusers.ModelsLoader", + "nodeType": "loader", + "blockName": null, + "decomposition": "loader", + "support": "declared", + "ports": [ + { + "name": "model_type", + "semanticName": "model_type", + "direction": "input", + "roles": ["value"], + "types": ["string"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "repo_id", + "semanticName": "repo_id", + "direction": "input", + "roles": ["value"], + "types": ["string"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "reviewed_variant", + "semanticName": "reviewed_variant", + "direction": "input", + "roles": ["value"], + "types": ["string"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "device", + "semanticName": "device", + "direction": "input", + "roles": ["value"], + "types": ["string"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "attention_backend", + "semanticName": "attention_backend", + "direction": "input", + "roles": ["value"], + "types": ["string"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "vae_slicing", + "semanticName": "vae_slicing", + "direction": "input", + "roles": ["value"], + "types": ["boolean"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "vae_tiling", + "semanticName": "vae_tiling", + "direction": "input", + "roles": ["value"], + "types": ["boolean"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "inpaint_compatibility", + "semanticName": "inpaint_compatibility", + "direction": "input", + "roles": ["value"], + "types": ["string"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "trust_remote_code", + "semanticName": "trust_remote_code", + "direction": "input", + "roles": ["value"], + "types": ["boolean"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "revision", + "semanticName": "revision", + "direction": "input", + "roles": ["value"], + "types": ["string"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "workflow_id", + "semanticName": "workflow_id", + "direction": "input", + "roles": ["value"], + "types": ["string"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "modiff_pipeline_identity", + "semanticName": "modiff_pipeline_identity", + "direction": "input", + "roles": ["value"], + "types": ["object"], + "required": false, + "hidden": true, + "semantics": { + "kind": "opaque", + "scope": "Flux3ModularPipeline", + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "auto_offload", + "semanticName": "auto_offload", + "direction": "input", + "roles": ["value"], + "types": ["boolean"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "offload_mode", + "semanticName": "offload_mode", + "direction": "input", + "roles": ["value"], + "types": ["string"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "weight_loading_mode", + "semanticName": "weight_loading_mode", + "direction": "input", + "roles": ["value"], + "types": ["string"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "weight_format", + "semanticName": "weight_format", + "direction": "input", + "roles": ["value"], + "types": ["string"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "unet", + "semanticName": "unet", + "direction": "input", + "roles": ["component"], + "types": ["diffusers_auto_model"], + "required": false, + "hidden": false, + "semantics": { + "kind": "component", + "scope": "Flux3ModularPipeline", + "state": null, + "owner": "same_loader", + "members": [ + { + "name": "transformer", + "type": "diffusers.models.transformers.transformer_flux3.Flux3Transformer2DModel" + } + ] + } + }, + { + "name": "vae", + "semanticName": "vae", + "direction": "input", + "roles": ["component"], + "types": ["diffusers_auto_model"], + "required": false, + "hidden": false, + "semantics": { + "kind": "component", + "scope": "Flux3ModularPipeline", + "state": null, + "owner": "same_loader", + "members": [ + { + "name": "vae", + "type": "diffusers.models.autoencoders.autoencoder_kl_flux2.AutoencoderKLFlux2" + } + ] + } + }, + { + "name": "controlnet", + "semanticName": "controlnet", + "direction": "input", + "roles": ["component"], + "types": ["diffusers_auto_model"], + "required": false, + "hidden": true, + "semantics": { + "kind": "component", + "scope": "Flux3ModularPipeline", + "state": null, + "owner": "same_loader", + "members": [] + } + }, + { + "name": "lora_list", + "semanticName": "lora_list", + "direction": "input", + "roles": ["value"], + "types": ["custom_lora"], + "required": false, + "hidden": false, + "semantics": { + "kind": "opaque", + "scope": "Flux3ModularPipeline", + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "text_encoders", + "semanticName": "text_encoders", + "direction": "output", + "roles": ["component"], + "types": ["diffusers_auto_models"], + "required": false, + "hidden": false, + "semantics": { + "kind": "component", + "scope": "Flux3ModularPipeline", + "state": null, + "owner": "same_loader", + "members": [ + { + "name": "text_encoder", + "type": "transformers.models.qwen3_vl.modeling_qwen3_vl.Qwen3VLForConditionalGeneration" + }, + { + "name": "tokenizer", + "type": "transformers.models.auto.processing_auto.AutoProcessor" + } + ] + } + }, + { + "name": "unet_out", + "semanticName": "unet_out", + "direction": "output", + "roles": ["component"], + "types": ["diffusers_auto_model"], + "required": false, + "hidden": false, + "semantics": { + "kind": "component", + "scope": "Flux3ModularPipeline", + "state": null, + "owner": "same_loader", + "members": [ + { + "name": "transformer", + "type": "diffusers.models.transformers.transformer_flux3.Flux3Transformer2DModel" + } + ] + } + }, + { + "name": "vae_out", + "semanticName": "vae_out", + "direction": "output", + "roles": ["component"], + "types": ["diffusers_auto_model"], + "required": false, + "hidden": false, + "semantics": { + "kind": "component", + "scope": "Flux3ModularPipeline", + "state": null, + "owner": "same_loader", + "members": [ + { + "name": "vae", + "type": "diffusers.models.autoencoders.autoencoder_kl_flux2.AutoencoderKLFlux2" + } + ] + } + }, + { + "name": "scheduler", + "semanticName": "scheduler", + "direction": "output", + "roles": ["component"], + "types": ["diffusers_auto_model"], + "required": false, + "hidden": false, + "semantics": { + "kind": "component", + "scope": "Flux3ModularPipeline", + "state": null, + "owner": "same_loader", + "members": [ + { + "name": "scheduler", + "type": "diffusers.schedulers.scheduling_flow_match_euler_discrete.FlowMatchEulerDiscreteScheduler" + } + ] + } + }, + { + "name": "image_encoder", + "semanticName": "image_encoder", + "direction": "output", + "roles": ["component"], + "types": ["diffusers_auto_model"], + "required": false, + "hidden": true, + "semantics": { + "kind": "component", + "scope": "Flux3ModularPipeline", + "state": null, + "owner": "same_loader", + "members": [] + } + }, + { + "name": "pipeline_components", + "semanticName": "pipeline_components", + "direction": "output", + "roles": ["component"], + "types": ["diffusers_modular_pipeline_components"], + "required": false, + "hidden": false, + "semantics": { + "kind": "component", + "scope": "Flux3ModularPipeline", + "state": null, + "owner": "same_loader", + "members": [ + { + "name": "guider", + "type": "diffusers.guiders.classifier_free_guidance.ClassifierFreeGuidance" + }, + { + "name": "image_processor", + "type": "diffusers.modular_pipelines.flux3.image_processor.Flux3ImageProcessor" + }, + { + "name": "scheduler", + "type": "diffusers.schedulers.scheduling_flow_match_euler_discrete.FlowMatchEulerDiscreteScheduler" + }, + { + "name": "text_encoder", + "type": "transformers.models.qwen3_vl.modeling_qwen3_vl.Qwen3VLForConditionalGeneration" + }, + { + "name": "tokenizer", + "type": "transformers.models.auto.processing_auto.AutoProcessor" + }, + { + "name": "transformer", + "type": "diffusers.models.transformers.transformer_flux3.Flux3Transformer2DModel" + }, + { + "name": "vae", + "type": "diffusers.models.autoencoders.autoencoder_kl_flux2.AutoencoderKLFlux2" + } + ] + } + }, + { + "name": "quant_config", + "semanticName": "quant_config", + "direction": "input", + "roles": ["value"], + "types": ["quant_config"], + "required": false, + "hidden": false, + "semantics": { + "kind": "opaque", + "scope": "Flux3ModularPipeline", + "state": null, + "owner": "none", + "members": [] + } + } + ], + "workflowId": "text2image", + "binding": { + "values": { + "model_type": "Flux3ModularPipeline" + }, + "pipelineClass": "Flux3ModularPipeline" + } + }, + "node": { + "module": "modules.ModularDiffusers", + "action": "ModelsLoader", + "type": "custom", + "label": "Load Models", + "category": "loader", + "description": "", + "resizable": true, + "skipParamsCheck": true, + "style": {}, + "params": { + "model_type": { + "label": "Pipeline Type", + "type": "string", + "options": { + "": { + "schemaVersion": 1, + "value": "", + "label": "", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "DummyCustomPipeline": { + "schemaVersion": 1, + "value": "DummyCustomPipeline", + "label": "Custom", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "StableDiffusionXLModularPipeline": { + "schemaVersion": 1, + "value": "StableDiffusionXLModularPipeline", + "label": "Stable Diffusion XL", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "QwenImageModularPipeline": { + "schemaVersion": 1, + "value": "QwenImageModularPipeline", + "label": "Qwen-Image-2512", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "QwenImageEditModularPipeline": { + "schemaVersion": 1, + "value": "QwenImageEditModularPipeline", + "label": "Qwen-Image-Edit", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "QwenImageEditPlusModularPipeline": { + "schemaVersion": 1, + "value": "QwenImageEditPlusModularPipeline", + "label": "Qwen-Image-Edit-2511", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "QwenImageLayeredModularPipeline": { + "schemaVersion": 1, + "value": "QwenImageLayeredModularPipeline", + "label": "Qwen-Image-Layered", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "FluxModularPipeline": { + "schemaVersion": 1, + "value": "FluxModularPipeline", + "label": "Flux", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "FluxKontextModularPipeline": { + "schemaVersion": 1, + "value": "FluxKontextModularPipeline", + "label": "Flux Kontext", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "Flux2ModularPipeline": { + "schemaVersion": 1, + "value": "Flux2ModularPipeline", + "label": "Flux 2", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "Flux2KleinModularPipeline": { + "schemaVersion": 1, + "value": "Flux2KleinModularPipeline", + "label": "Flux 2 Klein Distilled", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "Flux2KleinBaseModularPipeline": { + "schemaVersion": 1, + "value": "Flux2KleinBaseModularPipeline", + "label": "Flux 2 Klein Base", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "Flux3ModularPipeline": { + "schemaVersion": 1, + "value": "Flux3ModularPipeline", + "label": "FLUX 3 Image Klein Base", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "Flux3DistilledModularPipeline": { + "schemaVersion": 1, + "value": "Flux3DistilledModularPipeline", + "label": "FLUX 3 Image Klein", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "ZImageModularPipeline": { + "schemaVersion": 1, + "value": "ZImageModularPipeline", + "label": "Z-Image", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "WanModularPipeline": { + "schemaVersion": 1, + "value": "WanModularPipeline", + "label": "WAN2 T2V", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "WanImage2VideoModularPipeline": { + "schemaVersion": 1, + "value": "WanImage2VideoModularPipeline", + "label": "WAN2 I2V", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "MiniMaxMusic3ModularPipeline": { + "schemaVersion": 1, + "value": "MiniMaxMusic3ModularPipeline", + "label": "MiniMax Music 3", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "MiniMaxH3ModularPipeline": { + "schemaVersion": 1, + "value": "MiniMaxH3ModularPipeline", + "label": "MiniMax H3", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "AnimaModularPipeline": { + "schemaVersion": 1, + "value": "AnimaModularPipeline", + "label": "Anima", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "ErnieImageModularPipeline": { + "schemaVersion": 1, + "value": "ErnieImageModularPipeline", + "label": "ERNIE Image Turbo", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "HeliosModularPipeline": { + "schemaVersion": 1, + "value": "HeliosModularPipeline", + "label": "Helios", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "HeliosPyramidModularPipeline": { + "schemaVersion": 1, + "value": "HeliosPyramidModularPipeline", + "label": "Helios Pyramid", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "HeliosPyramidDistilledModularPipeline": { + "schemaVersion": 1, + "value": "HeliosPyramidDistilledModularPipeline", + "label": "Helios Pyramid Distilled", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "HunyuanVideo15ModularPipeline": { + "schemaVersion": 1, + "value": "HunyuanVideo15ModularPipeline", + "label": "HunyuanVideo 1.5", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "WanAnimate2ModularPipeline": { + "schemaVersion": 1, + "value": "WanAnimate2ModularPipeline", + "label": "Wan Animate 2", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "WanAnimate2DistilledModularPipeline": { + "schemaVersion": 1, + "value": "WanAnimate2DistilledModularPipeline", + "label": "Wan Animate 2 Distilled", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "Cosmos3OmniModularPipeline": { + "schemaVersion": 1, + "value": "Cosmos3OmniModularPipeline", + "label": "Cosmos 3 Nano", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "Cosmos3DistilledModularPipeline": { + "schemaVersion": 1, + "value": "Cosmos3DistilledModularPipeline", + "label": "Cosmos 3 Distilled", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "Ideogram4ModularPipeline": { + "schemaVersion": 1, + "value": "Ideogram4ModularPipeline", + "label": "Ideogram 4 (Contract only)", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "Krea2ModularPipeline": { + "schemaVersion": 1, + "value": "Krea2ModularPipeline", + "label": "Krea 2 (Contract only)", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "Krea2TurboModularPipeline": { + "schemaVersion": 1, + "value": "Krea2TurboModularPipeline", + "label": "Krea 2 Turbo (Contract only)", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "StableDiffusion3ModularPipeline": { + "schemaVersion": 1, + "value": "StableDiffusion3ModularPipeline", + "label": "Stable Diffusion 3 (Contract only)", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "LTX25ModularPipeline": { + "schemaVersion": 1, + "value": "LTX25ModularPipeline", + "label": "LTX-2.5 (Contract only)", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + } + }, + "onChange": "set_filters", + "description": "Selects the Modular Diffusers pipeline class. This filters compatible checkpoints and publishes the component contract used by connected nodes; it is not the model checkpoint itself.", + "value": "Flux3ModularPipeline" + }, + "repo_id": { + "label": "Repository ID", + "display": "modelselect", + "type": "string", + "value": { + "source": "hub", + "value": "black-forest-labs/flux-3-image-klein-base" + }, + "fieldOptions": { + "noValidation": true, + "sources": ["hub", "local"], + "filter": { + "hub": { + "className": ["Flux3ModularPipeline"] + } + } + }, + "onChange": "refresh_pipeline_identity" + }, + "reviewed_variant": { + "label": "Model", + "type": "string", + "value": "black-forest-labs/flux-3-image-klein-base", + "options": [ + { + "schemaVersion": 1, + "value": "black-forest-labs/flux-3-image-klein-base", + "label": "black-forest-labs/flux-3-image-klein-base", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + } + ], + "hidden": true, + "fieldOptions": { + "controlTier": "essential" + }, + "description": "Select an immutable, reviewed checkpoint for this exact Modular Diffusers pipeline family. Changing it does not replace the workflow graph or reset its parameters." + }, + "dtype": { + "label": "dtype", + "options": [ + { + "schemaVersion": 1, + "value": "float32", + "label": "float32", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "float16", + "label": "float16", + "compatibility": "incompatible", + "availability": "unavailable", + "installationState": "unavailable", + "disabledReason": "float16 is not supported by the active runtime." + }, + { + "schemaVersion": 1, + "value": "bfloat16", + "label": "bfloat16", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + } + ], + "value": "bfloat16" + }, + "device": { + "label": "Device", + "type": "string", + "value": "cpu:0", + "options": { + "cpu:0": { + "schemaVersion": 1, + "value": "cpu:0", + "label": "cpu:0", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "cpu": { + "schemaVersion": 1, + "value": "cpu", + "label": "cpu", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + } + } + }, + "attention_backend": { + "label": "Attention Backend", + "type": "string", + "default": "inherit", + "options": [ + { + "schemaVersion": 1, + "value": "inherit", + "label": "inherit", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "auto", + "label": "auto", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "native", + "label": "native", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "_native_math", + "label": "_native_math", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + } + ], + "description": "Inherit preserves existing native component defaults; explicit choices use the ordinary Diffusers attention API." + }, + "vae_slicing": { + "label": "VAE Slicing", + "type": "boolean", + "default": null, + "hidden": true, + "description": "An unset policy preserves the native VAE configuration; templates may bind an explicit boolean." + }, + "vae_tiling": { + "label": "VAE Tiling", + "type": "boolean", + "default": null, + "hidden": true, + "description": "An unset policy preserves the native VAE configuration; templates may bind an explicit boolean." + }, + "inpaint_compatibility": { + "label": "Inpaint Compatibility", + "type": "string", + "default": "native", + "hidden": true, + "options": [ + { + "schemaVersion": 1, + "value": "native", + "label": "native", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "whole_v1", + "label": "whole_v1", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + } + ], + "description": "Technical compatibility selection for the reviewed Qwen Edit inpainting candidate; existing nodes retain native policy." + }, + "trust_remote_code": { + "label": "Trust Remote Code", + "type": "boolean", + "value": false, + "description": "Repository code execution is disabled; keep this off for contract preview.", + "onChange": "refresh_pipeline_identity" + }, + "revision": { + "label": "Revision", + "type": "string", + "value": "1469d27cfb9bb1bd81d3a93f5a023b39dbf136e4", + "description": "Required exact 40-character commit hash for Hub custom contracts.", + "onChange": "refresh_pipeline_identity" + }, + "workflow_id": { + "label": "Reviewed Workflow", + "type": "string", + "value": "text2image", + "hidden": true, + "description": "Exact reviewed component partition selected by a first-party Cluster Node." + }, + "modiff_pipeline_identity": { + "label": "Custom Pipeline Identity", + "type": "object", + "value": null, + "hidden": true + }, + "refresh_pipeline_identity_button": { + "label": "Review and Refresh Custom Contract", + "display": "ui_button", + "value": false, + "hidden": true, + "onChange": "refresh_pipeline_identity" + }, + "auto_offload": { + "label": "Enable Auto Offload", + "type": "boolean", + "value": true + }, + "offload_mode": { + "label": "Offload Mode", + "type": "string", + "options": [ + { + "schemaVersion": 1, + "value": "auto_cpu", + "label": "auto_cpu", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "none", + "label": "none", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "model_cpu", + "label": "model_cpu", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "group_cpu", + "label": "group_cpu", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "group_disk", + "label": "group_disk", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + } + ], + "value": "model_cpu", + "default": "model_cpu" + }, + "weight_loading_mode": { + "label": "Weight Loading", + "type": "string", + "default": "cpu", + "options": [ + { + "schemaVersion": 1, + "value": "cpu", + "label": "cpu", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "cuda", + "label": "cuda", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + } + ], + "fieldOptions": { + "controlTier": "advanced" + }, + "description": "Load weights on CPU or CUDA before disk offload. CUDA loading needs room for a complete component and is available only for supported models." + }, + "weight_format": { + "label": "Weight Format", + "type": "string", + "default": "native", + "options": [ + { + "schemaVersion": 1, + "value": "native", + "label": "native", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "fp8r", + "label": "fp8r", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "nvfp4", + "label": "nvfp4", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + } + ], + "hidden": false, + "fieldOptions": { + "controlTier": "advanced" + }, + "description": "Select a backend-declared immutable component format. Missing reviewed files must be installed through Model Manager." + }, + "unet": { + "label": "Denoise Model", + "display": "input", + "type": "diffusers_auto_model", + "hidden": false + }, + "vae": { + "label": "VAE", + "display": "input", + "type": "diffusers_auto_model", + "hidden": false + }, + "controlnet": { + "label": "ControlNet", + "display": "input", + "type": "diffusers_auto_model", + "hidden": true + }, + "lora_list": { + "label": "Lora", + "display": "input", + "type": "custom_lora" + }, + "text_encoders": { + "label": "Text Encoders", + "display": "output", + "type": "diffusers_auto_models", + "signal": { + "direction": "output", + "origin": "modiff_pipeline_identity", + "value": "Flux3ModularPipeline" + }, + "connectionRole": "text_encoders", + "hidden": false + }, + "unet_out": { + "label": "Denoise Model", + "display": "output", + "type": "diffusers_auto_model", + "signal": { + "direction": "output", + "origin": "modiff_pipeline_identity", + "value": "Flux3ModularPipeline" + }, + "connectionRole": "denoiser", + "hidden": false + }, + "vae_out": { + "label": "VAE", + "display": "output", + "type": "diffusers_auto_model", + "signal": { + "direction": "output", + "origin": "modiff_pipeline_identity", + "value": "Flux3ModularPipeline" + }, + "connectionRole": "vae", + "hidden": false + }, + "scheduler": { + "label": "Scheduler", + "display": "output", + "type": "diffusers_auto_model", + "signal": { + "direction": "output", + "origin": "modiff_pipeline_identity", + "value": "Flux3ModularPipeline" + }, + "connectionRole": "scheduler", + "hidden": false + }, + "image_encoder": { + "label": "Image Encoder", + "display": "output", + "type": "diffusers_auto_model", + "signal": { + "direction": "output", + "origin": "modiff_pipeline_identity", + "value": "Flux3ModularPipeline" + }, + "connectionRole": "image_encoder", + "hidden": true + }, + "pipeline_components": { + "label": "Pipeline Components", + "display": "output", + "type": "diffusers_modular_pipeline_components", + "signal": { + "direction": "output", + "origin": "modiff_pipeline_identity", + "value": "Flux3ModularPipeline" + }, + "connectionRole": "pipeline_components", + "hidden": false + }, + "quant_config": { + "label": "Quant Config", + "display": "input", + "type": "quant_config" + } + }, + "time": [0, 0, 0], + "memory": [0, 0, 0], + "cache": false + } + }, + { + "operation": { + "pipelineClass": "Flux3ModularPipeline", + "task": "text_to_image", + "operationId": "diffusion.guidance", + "nodeKey": "modules.ModularDiffusers.Guider", + "nodeType": "guidance", + "blockName": null, + "decomposition": "bundle", + "support": "declared", + "ports": [ + { + "name": "model_type", + "semanticName": "model_type", + "direction": "input", + "roles": ["value"], + "types": ["string"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "guider", + "semanticName": "guider", + "direction": "input", + "roles": ["value"], + "types": ["string"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "guidance_scale", + "semanticName": "guidance_scale", + "direction": "input", + "roles": ["value"], + "types": ["float"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "guidance_rescale", + "semanticName": "guidance_rescale", + "direction": "input", + "roles": ["value"], + "types": ["float"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "use_original_formulation", + "semanticName": "use_original_formulation", + "direction": "input", + "roles": ["value"], + "types": ["boolean"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "enabled", + "semanticName": "enabled", + "direction": "input", + "roles": ["value"], + "types": ["boolean"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "start", + "semanticName": "start", + "direction": "input", + "roles": ["value"], + "types": ["float"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "stop", + "semanticName": "stop", + "direction": "input", + "roles": ["value"], + "types": ["float"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "guider_out", + "semanticName": "guider_out", + "direction": "output", + "roles": ["component"], + "types": ["custom_guider"], + "required": false, + "hidden": false, + "semantics": { + "kind": "component", + "scope": "Flux3ModularPipeline", + "state": null, + "owner": "same_loader", + "members": [] + } + }, + { + "name": "layers_config", + "semanticName": "layers_config", + "direction": "input", + "roles": ["value"], + "types": ["layers_config"], + "required": false, + "hidden": false, + "semantics": { + "kind": "opaque", + "scope": "Flux3ModularPipeline", + "state": null, + "owner": "none", + "members": [] + } + } + ], + "workflowId": "text2image", + "binding": { + "values": { + "model_type": "Flux3ModularPipeline" + }, + "pipelineClass": "Flux3ModularPipeline" + } + }, + "node": { + "module": "modules.ModularDiffusers", + "action": "Guider", + "type": "custom", + "label": "Guidance", + "category": "sampler", + "description": "", + "resizable": true, + "skipParamsCheck": true, + "style": {}, + "params": { + "model_type": { + "type": "string", + "default": "", + "hidden": true, + "value": "Flux3ModularPipeline" + }, + "guider": { + "label": "Guider", + "fieldOptions": { + "loading": true + }, + "type": "string", + "options": [ + { + "schemaVersion": 1, + "value": "ClassifierFreeGuidance", + "label": "ClassifierFreeGuidance", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + } + ], + "value": "ClassifierFreeGuidance", + "onChange": [ + "updateNode", + { + "SkipLayerGuidance": ["layers_config"], + "AutoGuidance": ["layers_config"], + "SmoothedEnergyGuidance": ["layers_config"], + "PerturbedAttentionGuidance": ["layers_config"] + } + ] + }, + "guidance_scale": { + "label": "Guidance Scale", + "type": "float", + "display": "slider", + "value": 3.5, + "min": 1.0, + "max": 20.0, + "step": 0.1 + }, + "guidance_rescale": { + "label": "Guidance Rescale", + "type": "float", + "display": "slider", + "value": 0.0, + "min": 0.0, + "max": 10.0, + "step": 0.1 + }, + "use_original_formulation": { + "label": "Original Formulation", + "type": "boolean", + "value": false + }, + "enabled": { + "label": "Enabled", + "type": "boolean", + "value": true + }, + "start": { + "label": "Start", + "type": "float", + "display": "slider", + "value": 0.0, + "min": 0.0, + "max": 1.0, + "step": 0.01 + }, + "stop": { + "label": "Stop", + "type": "float", + "display": "slider", + "value": 1.0, + "min": 0.01, + "max": 1.0, + "step": 0.01 + }, + "guider_out": { + "label": "Guider", + "display": "output", + "type": "custom_guider", + "onSignal": [ + { + "action": "value", + "target": "model_type" + }, + { + "action": "value", + "target": "guider", + "prop": "options", + "data": { + "StableDiffusionXLModularPipeline": [ + "ClassifierFreeGuidance", + "SkipLayerGuidance", + "AdaptiveProjectedGuidance", + "AdaptiveProjectedMixGuidance", + "MagnitudeAwareGuidance", + "ClassifierFreeZeroStarGuidance", + "AutoGuidance", + "SmoothedEnergyGuidance", + "PerturbedAttentionGuidance", + "TangentialClassifierFreeGuidance", + "FrequencyDecoupledGuidance" + ], + "QwenImageModularPipeline": [ + "ClassifierFreeGuidance", + "SkipLayerGuidance", + "AdaptiveProjectedGuidance", + "AdaptiveProjectedMixGuidance", + "MagnitudeAwareGuidance", + "ClassifierFreeZeroStarGuidance", + "AutoGuidance", + "SmoothedEnergyGuidance", + "PerturbedAttentionGuidance", + "TangentialClassifierFreeGuidance", + "FrequencyDecoupledGuidance" + ], + "QwenImageEditModularPipeline": [ + "ClassifierFreeGuidance", + "SkipLayerGuidance", + "AdaptiveProjectedGuidance", + "AdaptiveProjectedMixGuidance", + "MagnitudeAwareGuidance", + "ClassifierFreeZeroStarGuidance", + "AutoGuidance", + "SmoothedEnergyGuidance", + "PerturbedAttentionGuidance", + "TangentialClassifierFreeGuidance", + "FrequencyDecoupledGuidance" + ], + "QwenImageEditPlusModularPipeline": [ + "ClassifierFreeGuidance", + "SkipLayerGuidance", + "AdaptiveProjectedGuidance", + "AdaptiveProjectedMixGuidance", + "MagnitudeAwareGuidance", + "ClassifierFreeZeroStarGuidance", + "AutoGuidance", + "SmoothedEnergyGuidance", + "PerturbedAttentionGuidance", + "TangentialClassifierFreeGuidance", + "FrequencyDecoupledGuidance" + ], + "QwenImageLayeredModularPipeline": [ + "ClassifierFreeGuidance", + "AdaptiveProjectedGuidance", + "AdaptiveProjectedMixGuidance", + "MagnitudeAwareGuidance", + "ClassifierFreeZeroStarGuidance", + "TangentialClassifierFreeGuidance", + "FrequencyDecoupledGuidance" + ], + "FluxModularPipeline": ["ClassifierFreeGuidance"], + "FluxKontextModularPipeline": ["ClassifierFreeGuidance"], + "Flux2KleinBaseModularPipeline": ["ClassifierFreeGuidance"], + "Flux3ModularPipeline": ["ClassifierFreeGuidance"], + "ZImageModularPipeline": [ + "ClassifierFreeGuidance", + "AdaptiveProjectedGuidance", + "AdaptiveProjectedMixGuidance", + "MagnitudeAwareGuidance", + "ClassifierFreeZeroStarGuidance", + "TangentialClassifierFreeGuidance", + "FrequencyDecoupledGuidance" + ], + "WanModularPipeline": [ + "ClassifierFreeGuidance", + "AdaptiveProjectedGuidance", + "AdaptiveProjectedMixGuidance", + "MagnitudeAwareGuidance", + "ClassifierFreeZeroStarGuidance", + "TangentialClassifierFreeGuidance", + "FrequencyDecoupledGuidance" + ], + "WanImage2VideoModularPipeline": [ + "ClassifierFreeGuidance", + "AdaptiveProjectedGuidance", + "AdaptiveProjectedMixGuidance", + "MagnitudeAwareGuidance", + "ClassifierFreeZeroStarGuidance", + "TangentialClassifierFreeGuidance", + "FrequencyDecoupledGuidance" + ] + } + }, + { + "action": "signal", + "target": "layers_config" + } + ], + "signalCompatibility": { + "values": { + "StableDiffusionXLModularPipeline": [ + "ClassifierFreeGuidance", + "SkipLayerGuidance", + "AdaptiveProjectedGuidance", + "AdaptiveProjectedMixGuidance", + "MagnitudeAwareGuidance", + "ClassifierFreeZeroStarGuidance", + "AutoGuidance", + "SmoothedEnergyGuidance", + "PerturbedAttentionGuidance", + "TangentialClassifierFreeGuidance", + "FrequencyDecoupledGuidance" + ], + "QwenImageModularPipeline": [ + "ClassifierFreeGuidance", + "SkipLayerGuidance", + "AdaptiveProjectedGuidance", + "AdaptiveProjectedMixGuidance", + "MagnitudeAwareGuidance", + "ClassifierFreeZeroStarGuidance", + "AutoGuidance", + "SmoothedEnergyGuidance", + "PerturbedAttentionGuidance", + "TangentialClassifierFreeGuidance", + "FrequencyDecoupledGuidance" + ], + "QwenImageEditModularPipeline": [ + "ClassifierFreeGuidance", + "SkipLayerGuidance", + "AdaptiveProjectedGuidance", + "AdaptiveProjectedMixGuidance", + "MagnitudeAwareGuidance", + "ClassifierFreeZeroStarGuidance", + "AutoGuidance", + "SmoothedEnergyGuidance", + "PerturbedAttentionGuidance", + "TangentialClassifierFreeGuidance", + "FrequencyDecoupledGuidance" + ], + "QwenImageEditPlusModularPipeline": [ + "ClassifierFreeGuidance", + "SkipLayerGuidance", + "AdaptiveProjectedGuidance", + "AdaptiveProjectedMixGuidance", + "MagnitudeAwareGuidance", + "ClassifierFreeZeroStarGuidance", + "AutoGuidance", + "SmoothedEnergyGuidance", + "PerturbedAttentionGuidance", + "TangentialClassifierFreeGuidance", + "FrequencyDecoupledGuidance" + ], + "QwenImageLayeredModularPipeline": [ + "ClassifierFreeGuidance", + "AdaptiveProjectedGuidance", + "AdaptiveProjectedMixGuidance", + "MagnitudeAwareGuidance", + "ClassifierFreeZeroStarGuidance", + "TangentialClassifierFreeGuidance", + "FrequencyDecoupledGuidance" + ], + "FluxModularPipeline": ["ClassifierFreeGuidance"], + "FluxKontextModularPipeline": ["ClassifierFreeGuidance"], + "Flux2KleinBaseModularPipeline": ["ClassifierFreeGuidance"], + "Flux3ModularPipeline": ["ClassifierFreeGuidance"], + "ZImageModularPipeline": [ + "ClassifierFreeGuidance", + "AdaptiveProjectedGuidance", + "AdaptiveProjectedMixGuidance", + "MagnitudeAwareGuidance", + "ClassifierFreeZeroStarGuidance", + "TangentialClassifierFreeGuidance", + "FrequencyDecoupledGuidance" + ], + "WanModularPipeline": [ + "ClassifierFreeGuidance", + "AdaptiveProjectedGuidance", + "AdaptiveProjectedMixGuidance", + "MagnitudeAwareGuidance", + "ClassifierFreeZeroStarGuidance", + "TangentialClassifierFreeGuidance", + "FrequencyDecoupledGuidance" + ], + "WanImage2VideoModularPipeline": [ + "ClassifierFreeGuidance", + "AdaptiveProjectedGuidance", + "AdaptiveProjectedMixGuidance", + "MagnitudeAwareGuidance", + "ClassifierFreeZeroStarGuidance", + "TangentialClassifierFreeGuidance", + "FrequencyDecoupledGuidance" + ] + } + } + }, + "layers_config": { + "label": "Layers", + "type": "layers_config", + "display": "input" + } + }, + "time": [0, 0, 0], + "memory": [0, 0, 0], + "cache": false + } + }, + { + "operation": { + "pipelineClass": "Flux3ModularPipeline", + "task": "text_to_image", + "operationId": "diffusion.encode_prompt", + "nodeKey": "modules.ModularDiffusers.EncodePrompt", + "nodeType": "text_encoder", + "blockName": "text_encoder", + "decomposition": "block", + "support": "declared", + "ports": [ + { + "name": "prompt", + "semanticName": "prompt", + "direction": "input", + "roles": ["value"], + "types": ["string"], + "required": true, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "negative_prompt", + "semanticName": "negative_prompt", + "direction": "input", + "roles": ["value"], + "types": ["string"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "max_sequence_length", + "semanticName": "max_sequence_length", + "direction": "input", + "roles": ["value"], + "types": ["int"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "text_encoder_out_layers", + "semanticName": "text_encoder_out_layers", + "direction": "input", + "roles": ["value"], + "types": ["int"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "text_encoders", + "semanticName": "text_encoders", + "direction": "input", + "roles": ["component"], + "types": ["diffusers_auto_models"], + "required": true, + "hidden": false, + "semantics": { + "kind": "component", + "scope": "Flux3ModularPipeline", + "state": null, + "owner": "same_loader", + "members": [ + { + "name": "text_encoder", + "type": "transformers.models.qwen3_vl.modeling_qwen3_vl.Qwen3VLForConditionalGeneration" + }, + { + "name": "tokenizer", + "type": "transformers.models.auto.processing_auto.AutoProcessor" + } + ] + } + }, + { + "name": "embeddings", + "semanticName": "embeddings", + "direction": "output", + "roles": ["value"], + "types": ["embeddings"], + "required": false, + "hidden": false, + "semantics": { + "kind": "conditioning", + "scope": "Flux3ModularPipeline", + "state": null, + "owner": "same_loader", + "members": [] + } + }, + { + "name": "doc", + "semanticName": "doc", + "direction": "output", + "roles": ["value"], + "types": ["string"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "layout_conditioning", + "semanticName": "layout_conditioning", + "direction": "input", + "roles": ["value"], + "types": ["layout_conditioning"], + "required": false, + "hidden": false, + "semantics": { + "kind": "opaque", + "scope": "Flux3ModularPipeline", + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "reference_binding", + "semanticName": "reference_binding", + "direction": "input", + "roles": ["value"], + "types": ["reference_conditioning"], + "required": false, + "hidden": false, + "semantics": { + "kind": "opaque", + "scope": "Flux3ModularPipeline", + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "prompt_input", + "semanticName": "prompt", + "direction": "input", + "roles": ["value"], + "types": ["string"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + } + ], + "workflowId": "text2image", + "binding": { + "values": {}, + "pipelineClass": "Flux3ModularPipeline" + } + }, + "node": { + "module": "modules.ModularDiffusers", + "action": "EncodePrompt", + "type": "custom", + "label": "Encode Prompt", + "category": "embedding", + "description": "", + "resizable": true, + "skipParamsCheck": true, + "style": {}, + "params": { + "text_encoders": { + "label": "Text Encoders *", + "required": true, + "type": "diffusers_auto_models", + "display": "input", + "onSignal": "update_node", + "signalCompatibility": { + "role": "text_encoders" + } + }, + "prompt_input": { + "label": "Prompt Input", + "type": "string", + "display": "input", + "description": "Optional connected prompt. When connected, this replaces the inline Prompt value." + }, + "guider": { + "label": "Guider", + "type": "custom_guider", + "display": "input", + "hidden": true, + "description": "Shared Diffusers guidance used by prompt encoding and denoising when the selected pipeline supports it." + }, + "layout_reference_summary": { + "label": "Bound Reference Summary", + "type": "string", + "display": "output", + "hidden": true, + "description": "Display-only ordered reference identities and actual preprocessing sizes from the current encoder cache." + }, + "prompt": { + "label": "Prompt *", + "type": "string", + "display": "textarea", + "default": "", + "value": "A red ceramic teapot on a wooden table beside a window, soft morning light, detailed photograph.", + "fieldOptions": { + "exampleAttribution": "MoDiff task example" + } + }, + "negative_prompt": { + "label": "Negative Prompt", + "type": "string", + "display": "textarea", + "default": "" + }, + "max_sequence_length": { + "label": "Maximum Sequence Length", + "type": "int", + "default": 8192, + "min": 1, + "max": 8192, + "step": 1 + }, + "text_encoder_out_layers": { + "label": "Text Encoder Layers", + "type": "int", + "display": "select", + "default": [4, 8, 12, 16, 20, 24, 28, 32], + "options": [ + { + "schemaVersion": 1, + "value": "0", + "label": "0", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "1", + "label": "1", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "2", + "label": "2", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "3", + "label": "3", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "4", + "label": "4", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "5", + "label": "5", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "6", + "label": "6", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "7", + "label": "7", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "8", + "label": "8", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "9", + "label": "9", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "10", + "label": "10", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "11", + "label": "11", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "12", + "label": "12", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "13", + "label": "13", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "14", + "label": "14", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "15", + "label": "15", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "16", + "label": "16", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "17", + "label": "17", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "18", + "label": "18", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "19", + "label": "19", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "20", + "label": "20", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "21", + "label": "21", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "22", + "label": "22", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "23", + "label": "23", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "24", + "label": "24", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "25", + "label": "25", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "26", + "label": "26", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "27", + "label": "27", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "28", + "label": "28", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "29", + "label": "29", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "30", + "label": "30", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "31", + "label": "31", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "32", + "label": "32", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + } + ], + "fieldOptions": { + "multiple": true, + "tupleValue": true, + "tupleLength": 8 + } + }, + "embeddings": { + "label": "Text Embeddings", + "type": "embeddings", + "display": "output" + }, + "doc": { + "label": "Doc", + "type": "string", + "display": "output" + }, + "layout_conditioning": { + "label": "Layout Conditioning", + "type": "layout_conditioning", + "display": "layout", + "fieldOptions": { + "layoutConditioning": { + "schemaVersion": 2, + "sourceRegions": false, + "supportsBoundSourceRegions": true + } + }, + "default": null + }, + "reference_binding": { + "label": "Reference Binding", + "type": "reference_conditioning", + "display": "input", + "fieldOptions": { + "referenceBinding": { + "schemaVersion": 1, + "maxReferences": 10 + } + }, + "default": null + } + }, + "time": [0, 0, 0], + "memory": [0, 0, 0], + "cache": false + } + }, + { + "operation": { + "pipelineClass": "Flux3ModularPipeline", + "task": "text_to_image", + "operationId": "diffusion.denoise", + "nodeKey": "modules.ModularDiffusers.Denoise", + "nodeType": "denoise", + "blockName": "denoise", + "decomposition": "block", + "support": "declared", + "ports": [ + { + "name": "embeddings", + "semanticName": "embeddings", + "direction": "input", + "roles": ["value"], + "types": ["embeddings"], + "required": true, + "hidden": false, + "semantics": { + "kind": "conditioning", + "scope": "Flux3ModularPipeline", + "state": null, + "owner": "same_loader", + "members": [] + } + }, + { + "name": "width", + "semanticName": "width", + "direction": "input", + "roles": ["value"], + "types": ["int"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "height", + "semanticName": "height", + "direction": "input", + "roles": ["value"], + "types": ["int"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "seed", + "semanticName": "seed", + "direction": "input", + "roles": ["value"], + "types": ["int"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "num_inference_steps", + "semanticName": "num_inference_steps", + "direction": "input", + "roles": ["value"], + "types": ["int"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "num_images_per_prompt", + "semanticName": "num_images_per_prompt", + "direction": "input", + "roles": ["value"], + "types": ["int"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "image_cond_latents", + "semanticName": "image_cond_latents", + "direction": "input", + "roles": ["value"], + "types": ["latents"], + "required": false, + "hidden": false, + "semantics": { + "kind": "latents", + "scope": "Flux3ModularPipeline", + "state": null, + "owner": "same_loader", + "members": [] + } + }, + { + "name": "unet", + "semanticName": "unet", + "direction": "input", + "roles": ["component"], + "types": ["diffusers_auto_model"], + "required": true, + "hidden": false, + "semantics": { + "kind": "component", + "scope": "Flux3ModularPipeline", + "state": null, + "owner": "same_loader", + "members": [ + { + "name": "transformer", + "type": "diffusers.models.transformers.transformer_flux3.Flux3Transformer2DModel" + } + ] + } + }, + { + "name": "scheduler", + "semanticName": "scheduler", + "direction": "input", + "roles": ["component"], + "types": ["diffusers_auto_model"], + "required": true, + "hidden": false, + "semantics": { + "kind": "component", + "scope": "Flux3ModularPipeline", + "state": null, + "owner": "same_loader", + "members": [ + { + "name": "scheduler", + "type": "diffusers.schedulers.scheduling_flow_match_euler_discrete.FlowMatchEulerDiscreteScheduler" + } + ] + } + }, + { + "name": "guider", + "semanticName": "guider", + "direction": "input", + "roles": ["component"], + "types": ["custom_guider"], + "required": false, + "hidden": false, + "semantics": { + "kind": "component", + "scope": "Flux3ModularPipeline", + "state": null, + "owner": "same_loader", + "members": [ + { + "name": "guider", + "type": "diffusers.guiders.classifier_free_guidance.ClassifierFreeGuidance" + } + ] + } + }, + { + "name": "latents", + "semanticName": "latents", + "direction": "output", + "roles": ["value"], + "types": ["latents"], + "required": false, + "hidden": false, + "semantics": { + "kind": "latents", + "scope": "Flux3ModularPipeline", + "state": null, + "owner": "same_loader", + "members": [] + } + }, + { + "name": "doc", + "semanticName": "doc", + "direction": "output", + "roles": ["value"], + "types": ["string"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "reference_binding", + "semanticName": "reference_binding", + "direction": "input", + "roles": ["value"], + "types": ["reference_conditioning"], + "required": false, + "hidden": false, + "semantics": { + "kind": "opaque", + "scope": "Flux3ModularPipeline", + "state": null, + "owner": "none", + "members": [] + } + } + ], + "workflowId": "text2image", + "binding": { + "values": {}, + "pipelineClass": "Flux3ModularPipeline" + } + }, + "node": { + "module": "modules.ModularDiffusers", + "action": "Denoise", + "type": "custom", + "label": "Denoise", + "category": "sampler", + "description": "", + "resizable": true, + "skipParamsCheck": true, + "style": {}, + "params": { + "unet": { + "label": "Denoise Model *", + "display": "input", + "type": "diffusers_auto_model", + "required": true, + "onSignal": [ + "update_node", + { + "action": "signal", + "target": "guider" + }, + { + "action": "signal", + "target": "controlnet_bundle" + } + ], + "signalCompatibility": { + "role": "denoiser" + } + }, + "embeddings": { + "label": "Text Embeddings *", + "type": "embeddings", + "display": "input" + }, + "width": { + "label": "Width", + "type": "int", + "default": 1024, + "min": 64, + "step": 16, + "value": 1024 + }, + "height": { + "label": "Height", + "type": "int", + "default": 1024, + "min": 64, + "step": 16, + "value": 1024 + }, + "seed": { + "label": "Seed", + "type": "int", + "display": "random", + "default": 0, + "min": 0, + "max": 4294967295 + }, + "num_inference_steps": { + "label": "Steps", + "type": "int", + "display": "slider", + "default": 50, + "min": 1, + "max": 100, + "value": 50 + }, + "num_images_per_prompt": { + "label": "Images Per Prompt", + "type": "int", + "default": 1, + "min": 1, + "max": 8, + "step": 1 + }, + "image_cond_latents": { + "label": "Reference Latents", + "type": "latents", + "display": "input" + }, + "scheduler": { + "label": "Scheduler *", + "type": "diffusers_auto_model", + "display": "input", + "signalCompatibility": { + "role": "scheduler" + } + }, + "guider": { + "label": "Guider", + "type": "custom_guider", + "display": "input" + }, + "latents": { + "label": "Latents", + "type": "latents", + "display": "output" + }, + "doc": { + "label": "Doc", + "type": "string", + "display": "output" + }, + "reference_binding": { + "label": "Reference Binding", + "type": "reference_conditioning", + "display": "input", + "fieldOptions": { + "referenceBinding": { + "schemaVersion": 1, + "maxReferences": 10 + } + }, + "default": null + } + }, + "time": [0, 0, 0], + "memory": [0, 0, 0], + "cache": false + } + }, + { + "operation": { + "pipelineClass": "Flux3ModularPipeline", + "task": "text_to_image", + "operationId": "diffusion.decode_latents", + "nodeKey": "modules.ModularDiffusers.DecodeLatents", + "nodeType": "decoder", + "blockName": "decode", + "decomposition": "block", + "support": "declared", + "ports": [ + { + "name": "latents", + "semanticName": "latents", + "direction": "input", + "roles": ["value"], + "types": ["latents"], + "required": true, + "hidden": false, + "semantics": { + "kind": "latents", + "scope": "Flux3ModularPipeline", + "state": null, + "owner": "same_loader", + "members": [] + } + }, + { + "name": "vae", + "semanticName": "vae", + "direction": "input", + "roles": ["component"], + "types": ["diffusers_auto_model"], + "required": true, + "hidden": false, + "semantics": { + "kind": "component", + "scope": "Flux3ModularPipeline", + "state": null, + "owner": "same_loader", + "members": [ + { + "name": "vae", + "type": "diffusers.models.autoencoders.autoencoder_kl_flux2.AutoencoderKLFlux2" + } + ] + } + }, + { + "name": "images", + "semanticName": "images", + "direction": "output", + "roles": ["value"], + "types": ["image"], + "required": false, + "hidden": false, + "semantics": { + "kind": "media", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "doc", + "semanticName": "doc", + "direction": "output", + "roles": ["value"], + "types": ["string"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + } + ], + "workflowId": "text2image", + "binding": { + "values": {}, + "pipelineClass": "Flux3ModularPipeline" + } + }, + "node": { + "module": "modules.ModularDiffusers", + "action": "DecodeLatents", + "type": "custom", + "label": "Decode Latents", + "category": "sampler", + "description": "", + "resizable": true, + "skipParamsCheck": true, + "style": {}, + "params": { + "vae": { + "label": "VAE *", + "display": "input", + "type": "diffusers_auto_model", + "onSignal": "update_node", + "signalCompatibility": { + "role": "vae" + } + }, + "latents": { + "label": "Latents *", + "type": "latents", + "display": "input" + }, + "images": { + "label": "Images", + "type": "image", + "display": "output" + }, + "doc": { + "label": "Doc", + "type": "string", + "display": "output" + } + }, + "time": [0, 0, 0], + "memory": [0, 0, 0], + "cache": false + } + } + ], + "edges": [ + { + "source": "diffusion.load_models", + "sourceHandle": "text_encoders", + "target": "diffusion.encode_prompt", + "targetHandle": "text_encoders" + }, + { + "source": "diffusion.load_models", + "sourceHandle": "scheduler", + "target": "diffusion.denoise", + "targetHandle": "scheduler" + }, + { + "source": "diffusion.load_models", + "sourceHandle": "unet_out", + "target": "diffusion.denoise", + "targetHandle": "unet" + }, + { + "source": "diffusion.load_models", + "sourceHandle": "vae_out", + "target": "diffusion.decode_latents", + "targetHandle": "vae" + }, + { + "source": "diffusion.encode_prompt", + "sourceHandle": "embeddings", + "target": "diffusion.denoise", + "targetHandle": "embeddings" + }, + { + "source": "diffusion.denoise", + "sourceHandle": "latents", + "target": "diffusion.decode_latents", + "targetHandle": "latents" + }, + { + "source": "diffusion.guidance", + "sourceHandle": "guider_out", + "target": "diffusion.denoise", + "targetHandle": "guider" + } + ], + "requiredInputs": [ + { + "operationId": "diffusion.encode_prompt", + "field": "prompt" + } + ], + "sharedInputs": [], + "upstreamBlocks": ["text_encoder", "denoise", "decode"], + "authoring": { + "schemaVersion": 1, + "canonicalizationVersion": 1, + "id": "flux3-klein-base:text-to-image:prompt-preview-fp32-authoring:v1", + "baseSpecId": "flux3-klein-base:modular:text-to-image:v1", + "baseSpecContentHash": "studio-spec-v1-b86b1275", + "executionProfileIds": ["flux3-klein-base:modular"], + "roles": [ + ["models", "modules.ModularDiffusers.ModelsLoader", -720, -80], + ["prompt", "modules.ModularDiffusers.EncodePrompt", -360, -240], + ["denoise", "modules.ModularDiffusers.Denoise", 80, -80], + ["decode", "modules.ModularDiffusers.DecodeLatents", 440, -80], + ["preview", "modules.Image.Preview", 800, -80], + ["guider", "modules.ModularDiffusers.Guider", -360, 160] + ], + "edges": [ + ["models", "text_encoders", "prompt", "text_encoders"], + ["models", "unet_out", "denoise", "unet"], + ["models", "scheduler", "denoise", "scheduler"], + ["models", "vae_out", "decode", "vae"], + ["prompt", "embeddings", "denoise", "embeddings"], + ["denoise", "latents", "decode", "latents"], + ["decode", "images", "preview", "image"], + ["guider", "guider_out", "denoise", "guider"] + ], + "bindings": [ + ["models", "model_type", "pipelineClass"], + ["models", "repo_id", "artifact"], + ["models", "revision", "defaultRevision"], + ["models", "dtype", "dtype"], + ["models", "device", "device"], + ["models", "auto_offload", "autoOffload"], + ["models", "offload_mode", "offloadMode"], + ["models", "trust_remote_code", "false"], + ["prompt", "prompt", "prompt"], + ["prompt", "negative_prompt", "negativePrompt"], + ["denoise", "width", "width"], + ["denoise", "height", "height"], + ["denoise", "seed", "seed"], + ["denoise", "num_inference_steps", "steps"], + ["prompt", "max_sequence_length", "maxSequenceLength"], + ["models", "weight_format", "weightFormat"], + ["guider", "guider", "classifierFreeGuidance"], + ["guider", "model_type", "pipelineClass"], + ["guider", "guidance_scale", "guidanceScale"] + ], + "initialValues": [], + "ancillaryOperations": [ + { + "schemaVersion": 1, + "id": "flux3-klein-base:text-to-image:prompt-preview-fp32-authoring:v1:preview", + "parent": { + "authoringRecipeId": "flux3-klein-base:text-to-image:prompt-preview-fp32-authoring:v1", + "baseSpecId": "flux3-klein-base:modular:text-to-image:v1", + "baseSpecContentHash": "studio-spec-v1-b86b1275", + "executionProfileId": "flux3-klein-base:modular", + "pipelineClass": "Flux3ModularPipeline", + "task": "text_to_image" + }, + "executionPurpose": "explicit_preview", + "roles": [ + ["provider", "modules.HuggingFaceTransformers.LoadImageTextToTextModel", -720, -400], + ["proposal", "modules.HuggingFaceTransformers.GenerateImageVideoText", -360, -400] + ], + "edges": [["provider", "model", "proposal", "model"]], + "bindings": { + "owner": { + "role": "prompt", + "promptField": "prompt", + "layoutField": "layout_conditioning", + "referenceSource": null + }, + "request": { + "role": "proposal", + "promptField": "prompt", + "layoutField": "layout_conditioning", + "imagesField": "images" + }, + "output": { + "role": "proposal", + "field": "proposal_summary" + } + }, + "initialValues": [ + [ + "provider", + "model_id", + { + "source": "hub", + "value": "black-forest-labs/flux-3-image-klein-pup" + } + ], + ["provider", "revision", "3f3edb52b2c55de0d49feab28598b68f7f8e4830"], + ["proposal", "operation", "enhance_prompt"], + ["provider", "dtype", "float32"], + ["provider", "device", "cuda:0"], + ["provider", "quantization_mode", "none"], + ["proposal", "max_input_tokens", 4096] + ], + "fieldOverrides": [ + [ + "proposal", + "enhancement_max_new_tokens", + { + "hidden": false + } + ], + [ + "proposal", + "max_new_tokens", + { + "hidden": true + } + ] + ], + "adapter": { + "id": "transformers-prompt-enhancement-v1", + "declarationSha256": "sha256:2a3d4685988b418115008bbb95fb3e948097580c0bedd2940ea3fe1e40254dc2" + }, + "verification": { + "schemaVersion": 1, + "adapter": { + "id": "transformers-prompt-enhancement-v1", + "declarationSha256": "sha256:2a3d4685988b418115008bbb95fb3e948097580c0bedd2940ea3fe1e40254dc2" + }, + "runtimeInputs": { + "role": "provider", + "modelField": "model_id", + "revisionField": "revision", + "dtypeField": "dtype", + "deviceField": "device", + "quantizationField": "quantization_mode" + }, + "requestInputs": { + "role": "proposal", + "operationField": "operation", + "maxNewTokensField": "enhancement_max_new_tokens", + "minNewTokensField": "min_new_tokens", + "maxInputTokensField": "max_input_tokens", + "maxImagePixelsField": "max_image_pixels" + }, + "supportedPromptModes": ["t2i", "i2i"], + "systemPromptsSha256": "sha256:b5da3ed8bc04ab59dbdb747930f7dbff847e868903fed8028f85ee1a4ac82fb4", + "systemPromptSha256ByMode": { + "t2i": "8b235a421bce2213d11ada01f5a1244443dd72303ffbb4cc9e5a0d8b0de5ab6f", + "i2i": "95cec384d5b6d341caa9fb3f2c7ca45ee80c2364b3a95d4044aebf976f6dd3bf", + "t2i_bbox": "5f513d8ce5838732919f9e645507aa20ff373e88bf93132c768e063c9db3151f", + "i2i_bbox": "9ad10f947e401337cf155cac0518cc428159ef16f2f029f48aae2aaab8380a5e" + }, + "chatTemplateSha256": "sha256:a4aee8afcf2e0711942cf848899be66016f8d14a889ff9ede07bca099c28f715", + "modelReceipt": { + "schemaVersion": 1, + "library": "transformers", + "task": "image-video-to-text", + "source": { + "kind": "hub", + "repository": "black-forest-labs/flux-3-image-klein-pup", + "revision": "3f3edb52b2c55de0d49feab28598b68f7f8e4830" + }, + "loader": { + "preprocessorAutoClass": "AutoProcessor", + "modelAutoClass": "AutoModelForImageTextToText" + }, + "security": { + "localFilesOnly": true, + "trustRemoteCode": false, + "safetensorsOnly": true, + "hostedInference": false + }, + "runtime": { + "transformersVersion": "5.18.0", + "preprocessorClass": "Qwen3VLProcessor", + "modelClass": "Qwen3_5ForConditionalGeneration", + "modelType": "qwen3_5", + "architectures": ["Qwen3_5ForConditionalGeneration"] + } + }, + "quantizationRecipes": [ + { + "mode": "none" + }, + { + "mode": "bnb_4bit", + "quantType": "nf4", + "doubleQuant": true, + "computeDtype": "bfloat16", + "skipModules": ["lm_head", "model.visual"] + } + ] + }, + "sourceRegions": false, + "contentHash": "studio-ancillary-v1-7b4252ba" + } + ], + "contentHash": "studio-authoring-v1-41ea7fa0" + } + }, + { + "schemaVersion": 1, + "pipelineClass": "Flux3ModularPipeline", + "task": "text_to_image", + "workflowId": "text2image", + "nodes": [ + { + "operation": { + "pipelineClass": "Flux3ModularPipeline", + "task": "text_to_image", + "operationId": "diffusion.load_models", + "nodeKey": "modules.ModularDiffusers.ModelsLoader", + "nodeType": "loader", + "blockName": null, + "decomposition": "loader", + "support": "declared", + "ports": [ + { + "name": "model_type", + "semanticName": "model_type", + "direction": "input", + "roles": ["value"], + "types": ["string"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "repo_id", + "semanticName": "repo_id", + "direction": "input", + "roles": ["value"], + "types": ["string"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "reviewed_variant", + "semanticName": "reviewed_variant", + "direction": "input", + "roles": ["value"], + "types": ["string"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "device", + "semanticName": "device", + "direction": "input", + "roles": ["value"], + "types": ["string"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "attention_backend", + "semanticName": "attention_backend", + "direction": "input", + "roles": ["value"], + "types": ["string"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "vae_slicing", + "semanticName": "vae_slicing", + "direction": "input", + "roles": ["value"], + "types": ["boolean"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "vae_tiling", + "semanticName": "vae_tiling", + "direction": "input", + "roles": ["value"], + "types": ["boolean"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "inpaint_compatibility", + "semanticName": "inpaint_compatibility", + "direction": "input", + "roles": ["value"], + "types": ["string"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "trust_remote_code", + "semanticName": "trust_remote_code", + "direction": "input", + "roles": ["value"], + "types": ["boolean"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "revision", + "semanticName": "revision", + "direction": "input", + "roles": ["value"], + "types": ["string"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "workflow_id", + "semanticName": "workflow_id", + "direction": "input", + "roles": ["value"], + "types": ["string"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "modiff_pipeline_identity", + "semanticName": "modiff_pipeline_identity", + "direction": "input", + "roles": ["value"], + "types": ["object"], + "required": false, + "hidden": true, + "semantics": { + "kind": "opaque", + "scope": "Flux3ModularPipeline", + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "auto_offload", + "semanticName": "auto_offload", + "direction": "input", + "roles": ["value"], + "types": ["boolean"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "offload_mode", + "semanticName": "offload_mode", + "direction": "input", + "roles": ["value"], + "types": ["string"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "weight_loading_mode", + "semanticName": "weight_loading_mode", + "direction": "input", + "roles": ["value"], + "types": ["string"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "weight_format", + "semanticName": "weight_format", + "direction": "input", + "roles": ["value"], + "types": ["string"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "unet", + "semanticName": "unet", + "direction": "input", + "roles": ["component"], + "types": ["diffusers_auto_model"], + "required": false, + "hidden": false, + "semantics": { + "kind": "component", + "scope": "Flux3ModularPipeline", + "state": null, + "owner": "same_loader", + "members": [ + { + "name": "transformer", + "type": "diffusers.models.transformers.transformer_flux3.Flux3Transformer2DModel" + } + ] + } + }, + { + "name": "vae", + "semanticName": "vae", + "direction": "input", + "roles": ["component"], + "types": ["diffusers_auto_model"], + "required": false, + "hidden": false, + "semantics": { + "kind": "component", + "scope": "Flux3ModularPipeline", + "state": null, + "owner": "same_loader", + "members": [ + { + "name": "vae", + "type": "diffusers.models.autoencoders.autoencoder_kl_flux2.AutoencoderKLFlux2" + } + ] + } + }, + { + "name": "controlnet", + "semanticName": "controlnet", + "direction": "input", + "roles": ["component"], + "types": ["diffusers_auto_model"], + "required": false, + "hidden": true, + "semantics": { + "kind": "component", + "scope": "Flux3ModularPipeline", + "state": null, + "owner": "same_loader", + "members": [] + } + }, + { + "name": "lora_list", + "semanticName": "lora_list", + "direction": "input", + "roles": ["value"], + "types": ["custom_lora"], + "required": false, + "hidden": false, + "semantics": { + "kind": "opaque", + "scope": "Flux3ModularPipeline", + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "text_encoders", + "semanticName": "text_encoders", + "direction": "output", + "roles": ["component"], + "types": ["diffusers_auto_models"], + "required": false, + "hidden": false, + "semantics": { + "kind": "component", + "scope": "Flux3ModularPipeline", + "state": null, + "owner": "same_loader", + "members": [ + { + "name": "text_encoder", + "type": "transformers.models.qwen3_vl.modeling_qwen3_vl.Qwen3VLForConditionalGeneration" + }, + { + "name": "tokenizer", + "type": "transformers.models.auto.processing_auto.AutoProcessor" + } + ] + } + }, + { + "name": "unet_out", + "semanticName": "unet_out", + "direction": "output", + "roles": ["component"], + "types": ["diffusers_auto_model"], + "required": false, + "hidden": false, + "semantics": { + "kind": "component", + "scope": "Flux3ModularPipeline", + "state": null, + "owner": "same_loader", + "members": [ + { + "name": "transformer", + "type": "diffusers.models.transformers.transformer_flux3.Flux3Transformer2DModel" + } + ] + } + }, + { + "name": "vae_out", + "semanticName": "vae_out", + "direction": "output", + "roles": ["component"], + "types": ["diffusers_auto_model"], + "required": false, + "hidden": false, + "semantics": { + "kind": "component", + "scope": "Flux3ModularPipeline", + "state": null, + "owner": "same_loader", + "members": [ + { + "name": "vae", + "type": "diffusers.models.autoencoders.autoencoder_kl_flux2.AutoencoderKLFlux2" + } + ] + } + }, + { + "name": "scheduler", + "semanticName": "scheduler", + "direction": "output", + "roles": ["component"], + "types": ["diffusers_auto_model"], + "required": false, + "hidden": false, + "semantics": { + "kind": "component", + "scope": "Flux3ModularPipeline", + "state": null, + "owner": "same_loader", + "members": [ + { + "name": "scheduler", + "type": "diffusers.schedulers.scheduling_flow_match_euler_discrete.FlowMatchEulerDiscreteScheduler" + } + ] + } + }, + { + "name": "image_encoder", + "semanticName": "image_encoder", + "direction": "output", + "roles": ["component"], + "types": ["diffusers_auto_model"], + "required": false, + "hidden": true, + "semantics": { + "kind": "component", + "scope": "Flux3ModularPipeline", + "state": null, + "owner": "same_loader", + "members": [] + } + }, + { + "name": "pipeline_components", + "semanticName": "pipeline_components", + "direction": "output", + "roles": ["component"], + "types": ["diffusers_modular_pipeline_components"], + "required": false, + "hidden": false, + "semantics": { + "kind": "component", + "scope": "Flux3ModularPipeline", + "state": null, + "owner": "same_loader", + "members": [ + { + "name": "guider", + "type": "diffusers.guiders.classifier_free_guidance.ClassifierFreeGuidance" + }, + { + "name": "image_processor", + "type": "diffusers.modular_pipelines.flux3.image_processor.Flux3ImageProcessor" + }, + { + "name": "scheduler", + "type": "diffusers.schedulers.scheduling_flow_match_euler_discrete.FlowMatchEulerDiscreteScheduler" + }, + { + "name": "text_encoder", + "type": "transformers.models.qwen3_vl.modeling_qwen3_vl.Qwen3VLForConditionalGeneration" + }, + { + "name": "tokenizer", + "type": "transformers.models.auto.processing_auto.AutoProcessor" + }, + { + "name": "transformer", + "type": "diffusers.models.transformers.transformer_flux3.Flux3Transformer2DModel" + }, + { + "name": "vae", + "type": "diffusers.models.autoencoders.autoencoder_kl_flux2.AutoencoderKLFlux2" + } + ] + } + }, + { + "name": "quant_config", + "semanticName": "quant_config", + "direction": "input", + "roles": ["value"], + "types": ["quant_config"], + "required": false, + "hidden": false, + "semantics": { + "kind": "opaque", + "scope": "Flux3ModularPipeline", + "state": null, + "owner": "none", + "members": [] + } + } + ], + "workflowId": "text2image", + "binding": { + "values": { + "model_type": "Flux3ModularPipeline" + }, + "pipelineClass": "Flux3ModularPipeline" + } + }, + "node": { + "module": "modules.ModularDiffusers", + "action": "ModelsLoader", + "type": "custom", + "label": "Load Models", + "category": "loader", + "description": "", + "resizable": true, + "skipParamsCheck": true, + "style": {}, + "params": { + "model_type": { + "label": "Pipeline Type", + "type": "string", + "options": { + "": { + "schemaVersion": 1, + "value": "", + "label": "", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "DummyCustomPipeline": { + "schemaVersion": 1, + "value": "DummyCustomPipeline", + "label": "Custom", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "StableDiffusionXLModularPipeline": { + "schemaVersion": 1, + "value": "StableDiffusionXLModularPipeline", + "label": "Stable Diffusion XL", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "QwenImageModularPipeline": { + "schemaVersion": 1, + "value": "QwenImageModularPipeline", + "label": "Qwen-Image-2512", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "QwenImageEditModularPipeline": { + "schemaVersion": 1, + "value": "QwenImageEditModularPipeline", + "label": "Qwen-Image-Edit", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "QwenImageEditPlusModularPipeline": { + "schemaVersion": 1, + "value": "QwenImageEditPlusModularPipeline", + "label": "Qwen-Image-Edit-2511", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "QwenImageLayeredModularPipeline": { + "schemaVersion": 1, + "value": "QwenImageLayeredModularPipeline", + "label": "Qwen-Image-Layered", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "FluxModularPipeline": { + "schemaVersion": 1, + "value": "FluxModularPipeline", + "label": "Flux", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "FluxKontextModularPipeline": { + "schemaVersion": 1, + "value": "FluxKontextModularPipeline", + "label": "Flux Kontext", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "Flux2ModularPipeline": { + "schemaVersion": 1, + "value": "Flux2ModularPipeline", + "label": "Flux 2", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "Flux2KleinModularPipeline": { + "schemaVersion": 1, + "value": "Flux2KleinModularPipeline", + "label": "Flux 2 Klein Distilled", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "Flux2KleinBaseModularPipeline": { + "schemaVersion": 1, + "value": "Flux2KleinBaseModularPipeline", + "label": "Flux 2 Klein Base", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "Flux3ModularPipeline": { + "schemaVersion": 1, + "value": "Flux3ModularPipeline", + "label": "FLUX 3 Image Klein Base", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "Flux3DistilledModularPipeline": { + "schemaVersion": 1, + "value": "Flux3DistilledModularPipeline", + "label": "FLUX 3 Image Klein", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "ZImageModularPipeline": { + "schemaVersion": 1, + "value": "ZImageModularPipeline", + "label": "Z-Image", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "WanModularPipeline": { + "schemaVersion": 1, + "value": "WanModularPipeline", + "label": "WAN2 T2V", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "WanImage2VideoModularPipeline": { + "schemaVersion": 1, + "value": "WanImage2VideoModularPipeline", + "label": "WAN2 I2V", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "MiniMaxMusic3ModularPipeline": { + "schemaVersion": 1, + "value": "MiniMaxMusic3ModularPipeline", + "label": "MiniMax Music 3", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "MiniMaxH3ModularPipeline": { + "schemaVersion": 1, + "value": "MiniMaxH3ModularPipeline", + "label": "MiniMax H3", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "AnimaModularPipeline": { + "schemaVersion": 1, + "value": "AnimaModularPipeline", + "label": "Anima", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "ErnieImageModularPipeline": { + "schemaVersion": 1, + "value": "ErnieImageModularPipeline", + "label": "ERNIE Image Turbo", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "HeliosModularPipeline": { + "schemaVersion": 1, + "value": "HeliosModularPipeline", + "label": "Helios", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "HeliosPyramidModularPipeline": { + "schemaVersion": 1, + "value": "HeliosPyramidModularPipeline", + "label": "Helios Pyramid", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "HeliosPyramidDistilledModularPipeline": { + "schemaVersion": 1, + "value": "HeliosPyramidDistilledModularPipeline", + "label": "Helios Pyramid Distilled", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "HunyuanVideo15ModularPipeline": { + "schemaVersion": 1, + "value": "HunyuanVideo15ModularPipeline", + "label": "HunyuanVideo 1.5", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "WanAnimate2ModularPipeline": { + "schemaVersion": 1, + "value": "WanAnimate2ModularPipeline", + "label": "Wan Animate 2", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "WanAnimate2DistilledModularPipeline": { + "schemaVersion": 1, + "value": "WanAnimate2DistilledModularPipeline", + "label": "Wan Animate 2 Distilled", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "Cosmos3OmniModularPipeline": { + "schemaVersion": 1, + "value": "Cosmos3OmniModularPipeline", + "label": "Cosmos 3 Nano", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "Cosmos3DistilledModularPipeline": { + "schemaVersion": 1, + "value": "Cosmos3DistilledModularPipeline", + "label": "Cosmos 3 Distilled", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "Ideogram4ModularPipeline": { + "schemaVersion": 1, + "value": "Ideogram4ModularPipeline", + "label": "Ideogram 4 (Contract only)", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "Krea2ModularPipeline": { + "schemaVersion": 1, + "value": "Krea2ModularPipeline", + "label": "Krea 2 (Contract only)", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "Krea2TurboModularPipeline": { + "schemaVersion": 1, + "value": "Krea2TurboModularPipeline", + "label": "Krea 2 Turbo (Contract only)", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "StableDiffusion3ModularPipeline": { + "schemaVersion": 1, + "value": "StableDiffusion3ModularPipeline", + "label": "Stable Diffusion 3 (Contract only)", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "LTX25ModularPipeline": { + "schemaVersion": 1, + "value": "LTX25ModularPipeline", + "label": "LTX-2.5 (Contract only)", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + } + }, + "onChange": "set_filters", + "description": "Selects the Modular Diffusers pipeline class. This filters compatible checkpoints and publishes the component contract used by connected nodes; it is not the model checkpoint itself.", + "value": "Flux3ModularPipeline" + }, + "repo_id": { + "label": "Repository ID", + "display": "modelselect", + "type": "string", + "value": { + "source": "hub", + "value": "black-forest-labs/flux-3-image-klein-base" + }, + "fieldOptions": { + "noValidation": true, + "sources": ["hub", "local"], + "filter": { + "hub": { + "className": ["Flux3ModularPipeline"] + } + } + }, + "onChange": "refresh_pipeline_identity" + }, + "reviewed_variant": { + "label": "Model", + "type": "string", + "value": "black-forest-labs/flux-3-image-klein-base", + "options": [ + { + "schemaVersion": 1, + "value": "black-forest-labs/flux-3-image-klein-base", + "label": "black-forest-labs/flux-3-image-klein-base", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + } + ], + "hidden": true, + "fieldOptions": { + "controlTier": "essential" + }, + "description": "Select an immutable, reviewed checkpoint for this exact Modular Diffusers pipeline family. Changing it does not replace the workflow graph or reset its parameters." + }, + "dtype": { + "label": "dtype", + "options": [ + { + "schemaVersion": 1, + "value": "float32", + "label": "float32", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "float16", + "label": "float16", + "compatibility": "incompatible", + "availability": "unavailable", + "installationState": "unavailable", + "disabledReason": "float16 is not supported by the active runtime." + }, + { + "schemaVersion": 1, + "value": "bfloat16", + "label": "bfloat16", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + } + ], + "value": "bfloat16" + }, + "device": { + "label": "Device", + "type": "string", + "value": "cpu:0", + "options": { + "cpu:0": { + "schemaVersion": 1, + "value": "cpu:0", + "label": "cpu:0", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "cpu": { + "schemaVersion": 1, + "value": "cpu", + "label": "cpu", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + } + } + }, + "attention_backend": { + "label": "Attention Backend", + "type": "string", + "default": "inherit", + "options": [ + { + "schemaVersion": 1, + "value": "inherit", + "label": "inherit", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "auto", + "label": "auto", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "native", + "label": "native", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "_native_math", + "label": "_native_math", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + } + ], + "description": "Inherit preserves existing native component defaults; explicit choices use the ordinary Diffusers attention API." + }, + "vae_slicing": { + "label": "VAE Slicing", + "type": "boolean", + "default": null, + "hidden": true, + "description": "An unset policy preserves the native VAE configuration; templates may bind an explicit boolean." + }, + "vae_tiling": { + "label": "VAE Tiling", + "type": "boolean", + "default": null, + "hidden": true, + "description": "An unset policy preserves the native VAE configuration; templates may bind an explicit boolean." + }, + "inpaint_compatibility": { + "label": "Inpaint Compatibility", + "type": "string", + "default": "native", + "hidden": true, + "options": [ + { + "schemaVersion": 1, + "value": "native", + "label": "native", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "whole_v1", + "label": "whole_v1", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + } + ], + "description": "Technical compatibility selection for the reviewed Qwen Edit inpainting candidate; existing nodes retain native policy." + }, + "trust_remote_code": { + "label": "Trust Remote Code", + "type": "boolean", + "value": false, + "description": "Repository code execution is disabled; keep this off for contract preview.", + "onChange": "refresh_pipeline_identity" + }, + "revision": { + "label": "Revision", + "type": "string", + "value": "1469d27cfb9bb1bd81d3a93f5a023b39dbf136e4", + "description": "Required exact 40-character commit hash for Hub custom contracts.", + "onChange": "refresh_pipeline_identity" + }, + "workflow_id": { + "label": "Reviewed Workflow", + "type": "string", + "value": "text2image", + "hidden": true, + "description": "Exact reviewed component partition selected by a first-party Cluster Node." + }, + "modiff_pipeline_identity": { + "label": "Custom Pipeline Identity", + "type": "object", + "value": null, + "hidden": true + }, + "refresh_pipeline_identity_button": { + "label": "Review and Refresh Custom Contract", + "display": "ui_button", + "value": false, + "hidden": true, + "onChange": "refresh_pipeline_identity" + }, + "auto_offload": { + "label": "Enable Auto Offload", + "type": "boolean", + "value": true + }, + "offload_mode": { + "label": "Offload Mode", + "type": "string", + "options": [ + { + "schemaVersion": 1, + "value": "auto_cpu", + "label": "auto_cpu", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "none", + "label": "none", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "model_cpu", + "label": "model_cpu", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "group_cpu", + "label": "group_cpu", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "group_disk", + "label": "group_disk", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + } + ], + "value": "model_cpu", + "default": "model_cpu" + }, + "weight_loading_mode": { + "label": "Weight Loading", + "type": "string", + "default": "cpu", + "options": [ + { + "schemaVersion": 1, + "value": "cpu", + "label": "cpu", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "cuda", + "label": "cuda", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + } + ], + "fieldOptions": { + "controlTier": "advanced" + }, + "description": "Load weights on CPU or CUDA before disk offload. CUDA loading needs room for a complete component and is available only for supported models." + }, + "weight_format": { + "label": "Weight Format", + "type": "string", + "default": "native", + "options": [ + { + "schemaVersion": 1, + "value": "native", + "label": "native", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "fp8r", + "label": "fp8r", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "nvfp4", + "label": "nvfp4", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + } + ], + "hidden": false, + "fieldOptions": { + "controlTier": "advanced" + }, + "description": "Select a backend-declared immutable component format. Missing reviewed files must be installed through Model Manager." + }, + "unet": { + "label": "Denoise Model", + "display": "input", + "type": "diffusers_auto_model", + "hidden": false + }, + "vae": { + "label": "VAE", + "display": "input", + "type": "diffusers_auto_model", + "hidden": false + }, + "controlnet": { + "label": "ControlNet", + "display": "input", + "type": "diffusers_auto_model", + "hidden": true + }, + "lora_list": { + "label": "Lora", + "display": "input", + "type": "custom_lora" + }, + "text_encoders": { + "label": "Text Encoders", + "display": "output", + "type": "diffusers_auto_models", + "signal": { + "direction": "output", + "origin": "modiff_pipeline_identity", + "value": "Flux3ModularPipeline" + }, + "connectionRole": "text_encoders", + "hidden": false + }, + "unet_out": { + "label": "Denoise Model", + "display": "output", + "type": "diffusers_auto_model", + "signal": { + "direction": "output", + "origin": "modiff_pipeline_identity", + "value": "Flux3ModularPipeline" + }, + "connectionRole": "denoiser", + "hidden": false + }, + "vae_out": { + "label": "VAE", + "display": "output", + "type": "diffusers_auto_model", + "signal": { + "direction": "output", + "origin": "modiff_pipeline_identity", + "value": "Flux3ModularPipeline" + }, + "connectionRole": "vae", + "hidden": false + }, + "scheduler": { + "label": "Scheduler", + "display": "output", + "type": "diffusers_auto_model", + "signal": { + "direction": "output", + "origin": "modiff_pipeline_identity", + "value": "Flux3ModularPipeline" + }, + "connectionRole": "scheduler", + "hidden": false + }, + "image_encoder": { + "label": "Image Encoder", + "display": "output", + "type": "diffusers_auto_model", + "signal": { + "direction": "output", + "origin": "modiff_pipeline_identity", + "value": "Flux3ModularPipeline" + }, + "connectionRole": "image_encoder", + "hidden": true + }, + "pipeline_components": { + "label": "Pipeline Components", + "display": "output", + "type": "diffusers_modular_pipeline_components", + "signal": { + "direction": "output", + "origin": "modiff_pipeline_identity", + "value": "Flux3ModularPipeline" + }, + "connectionRole": "pipeline_components", + "hidden": false + }, + "quant_config": { + "label": "Quant Config", + "display": "input", + "type": "quant_config" + } + }, + "time": [0, 0, 0], + "memory": [0, 0, 0], + "cache": false + } + }, + { + "operation": { + "pipelineClass": "Flux3ModularPipeline", + "task": "text_to_image", + "operationId": "diffusion.guidance", + "nodeKey": "modules.ModularDiffusers.Guider", + "nodeType": "guidance", + "blockName": null, + "decomposition": "bundle", + "support": "declared", + "ports": [ + { + "name": "model_type", + "semanticName": "model_type", + "direction": "input", + "roles": ["value"], + "types": ["string"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "guider", + "semanticName": "guider", + "direction": "input", + "roles": ["value"], + "types": ["string"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "guidance_scale", + "semanticName": "guidance_scale", + "direction": "input", + "roles": ["value"], + "types": ["float"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "guidance_rescale", + "semanticName": "guidance_rescale", + "direction": "input", + "roles": ["value"], + "types": ["float"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "use_original_formulation", + "semanticName": "use_original_formulation", + "direction": "input", + "roles": ["value"], + "types": ["boolean"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "enabled", + "semanticName": "enabled", + "direction": "input", + "roles": ["value"], + "types": ["boolean"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "start", + "semanticName": "start", + "direction": "input", + "roles": ["value"], + "types": ["float"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "stop", + "semanticName": "stop", + "direction": "input", + "roles": ["value"], + "types": ["float"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "guider_out", + "semanticName": "guider_out", + "direction": "output", + "roles": ["component"], + "types": ["custom_guider"], + "required": false, + "hidden": false, + "semantics": { + "kind": "component", + "scope": "Flux3ModularPipeline", + "state": null, + "owner": "same_loader", + "members": [] + } + }, + { + "name": "layers_config", + "semanticName": "layers_config", + "direction": "input", + "roles": ["value"], + "types": ["layers_config"], + "required": false, + "hidden": false, + "semantics": { + "kind": "opaque", + "scope": "Flux3ModularPipeline", + "state": null, + "owner": "none", + "members": [] + } + } + ], + "workflowId": "text2image", + "binding": { + "values": { + "model_type": "Flux3ModularPipeline" + }, + "pipelineClass": "Flux3ModularPipeline" + } + }, + "node": { + "module": "modules.ModularDiffusers", + "action": "Guider", + "type": "custom", + "label": "Guidance", + "category": "sampler", + "description": "", + "resizable": true, + "skipParamsCheck": true, + "style": {}, + "params": { + "model_type": { + "type": "string", + "default": "", + "hidden": true, + "value": "Flux3ModularPipeline" + }, + "guider": { + "label": "Guider", + "fieldOptions": { + "loading": true + }, + "type": "string", + "options": [ + { + "schemaVersion": 1, + "value": "ClassifierFreeGuidance", + "label": "ClassifierFreeGuidance", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + } + ], + "value": "ClassifierFreeGuidance", + "onChange": [ + "updateNode", + { + "SkipLayerGuidance": ["layers_config"], + "AutoGuidance": ["layers_config"], + "SmoothedEnergyGuidance": ["layers_config"], + "PerturbedAttentionGuidance": ["layers_config"] + } + ] + }, + "guidance_scale": { + "label": "Guidance Scale", + "type": "float", + "display": "slider", + "value": 3.5, + "min": 1.0, + "max": 20.0, + "step": 0.1 + }, + "guidance_rescale": { + "label": "Guidance Rescale", + "type": "float", + "display": "slider", + "value": 0.0, + "min": 0.0, + "max": 10.0, + "step": 0.1 + }, + "use_original_formulation": { + "label": "Original Formulation", + "type": "boolean", + "value": false + }, + "enabled": { + "label": "Enabled", + "type": "boolean", + "value": true + }, + "start": { + "label": "Start", + "type": "float", + "display": "slider", + "value": 0.0, + "min": 0.0, + "max": 1.0, + "step": 0.01 + }, + "stop": { + "label": "Stop", + "type": "float", + "display": "slider", + "value": 1.0, + "min": 0.01, + "max": 1.0, + "step": 0.01 + }, + "guider_out": { + "label": "Guider", + "display": "output", + "type": "custom_guider", + "onSignal": [ + { + "action": "value", + "target": "model_type" + }, + { + "action": "value", + "target": "guider", + "prop": "options", + "data": { + "StableDiffusionXLModularPipeline": [ + "ClassifierFreeGuidance", + "SkipLayerGuidance", + "AdaptiveProjectedGuidance", + "AdaptiveProjectedMixGuidance", + "MagnitudeAwareGuidance", + "ClassifierFreeZeroStarGuidance", + "AutoGuidance", + "SmoothedEnergyGuidance", + "PerturbedAttentionGuidance", + "TangentialClassifierFreeGuidance", + "FrequencyDecoupledGuidance" + ], + "QwenImageModularPipeline": [ + "ClassifierFreeGuidance", + "SkipLayerGuidance", + "AdaptiveProjectedGuidance", + "AdaptiveProjectedMixGuidance", + "MagnitudeAwareGuidance", + "ClassifierFreeZeroStarGuidance", + "AutoGuidance", + "SmoothedEnergyGuidance", + "PerturbedAttentionGuidance", + "TangentialClassifierFreeGuidance", + "FrequencyDecoupledGuidance" + ], + "QwenImageEditModularPipeline": [ + "ClassifierFreeGuidance", + "SkipLayerGuidance", + "AdaptiveProjectedGuidance", + "AdaptiveProjectedMixGuidance", + "MagnitudeAwareGuidance", + "ClassifierFreeZeroStarGuidance", + "AutoGuidance", + "SmoothedEnergyGuidance", + "PerturbedAttentionGuidance", + "TangentialClassifierFreeGuidance", + "FrequencyDecoupledGuidance" + ], + "QwenImageEditPlusModularPipeline": [ + "ClassifierFreeGuidance", + "SkipLayerGuidance", + "AdaptiveProjectedGuidance", + "AdaptiveProjectedMixGuidance", + "MagnitudeAwareGuidance", + "ClassifierFreeZeroStarGuidance", + "AutoGuidance", + "SmoothedEnergyGuidance", + "PerturbedAttentionGuidance", + "TangentialClassifierFreeGuidance", + "FrequencyDecoupledGuidance" + ], + "QwenImageLayeredModularPipeline": [ + "ClassifierFreeGuidance", + "AdaptiveProjectedGuidance", + "AdaptiveProjectedMixGuidance", + "MagnitudeAwareGuidance", + "ClassifierFreeZeroStarGuidance", + "TangentialClassifierFreeGuidance", + "FrequencyDecoupledGuidance" + ], + "FluxModularPipeline": ["ClassifierFreeGuidance"], + "FluxKontextModularPipeline": ["ClassifierFreeGuidance"], + "Flux2KleinBaseModularPipeline": ["ClassifierFreeGuidance"], + "Flux3ModularPipeline": ["ClassifierFreeGuidance"], + "ZImageModularPipeline": [ + "ClassifierFreeGuidance", + "AdaptiveProjectedGuidance", + "AdaptiveProjectedMixGuidance", + "MagnitudeAwareGuidance", + "ClassifierFreeZeroStarGuidance", + "TangentialClassifierFreeGuidance", + "FrequencyDecoupledGuidance" + ], + "WanModularPipeline": [ + "ClassifierFreeGuidance", + "AdaptiveProjectedGuidance", + "AdaptiveProjectedMixGuidance", + "MagnitudeAwareGuidance", + "ClassifierFreeZeroStarGuidance", + "TangentialClassifierFreeGuidance", + "FrequencyDecoupledGuidance" + ], + "WanImage2VideoModularPipeline": [ + "ClassifierFreeGuidance", + "AdaptiveProjectedGuidance", + "AdaptiveProjectedMixGuidance", + "MagnitudeAwareGuidance", + "ClassifierFreeZeroStarGuidance", + "TangentialClassifierFreeGuidance", + "FrequencyDecoupledGuidance" + ] + } + }, + { + "action": "signal", + "target": "layers_config" + } + ], + "signalCompatibility": { + "values": { + "StableDiffusionXLModularPipeline": [ + "ClassifierFreeGuidance", + "SkipLayerGuidance", + "AdaptiveProjectedGuidance", + "AdaptiveProjectedMixGuidance", + "MagnitudeAwareGuidance", + "ClassifierFreeZeroStarGuidance", + "AutoGuidance", + "SmoothedEnergyGuidance", + "PerturbedAttentionGuidance", + "TangentialClassifierFreeGuidance", + "FrequencyDecoupledGuidance" + ], + "QwenImageModularPipeline": [ + "ClassifierFreeGuidance", + "SkipLayerGuidance", + "AdaptiveProjectedGuidance", + "AdaptiveProjectedMixGuidance", + "MagnitudeAwareGuidance", + "ClassifierFreeZeroStarGuidance", + "AutoGuidance", + "SmoothedEnergyGuidance", + "PerturbedAttentionGuidance", + "TangentialClassifierFreeGuidance", + "FrequencyDecoupledGuidance" + ], + "QwenImageEditModularPipeline": [ + "ClassifierFreeGuidance", + "SkipLayerGuidance", + "AdaptiveProjectedGuidance", + "AdaptiveProjectedMixGuidance", + "MagnitudeAwareGuidance", + "ClassifierFreeZeroStarGuidance", + "AutoGuidance", + "SmoothedEnergyGuidance", + "PerturbedAttentionGuidance", + "TangentialClassifierFreeGuidance", + "FrequencyDecoupledGuidance" + ], + "QwenImageEditPlusModularPipeline": [ + "ClassifierFreeGuidance", + "SkipLayerGuidance", + "AdaptiveProjectedGuidance", + "AdaptiveProjectedMixGuidance", + "MagnitudeAwareGuidance", + "ClassifierFreeZeroStarGuidance", + "AutoGuidance", + "SmoothedEnergyGuidance", + "PerturbedAttentionGuidance", + "TangentialClassifierFreeGuidance", + "FrequencyDecoupledGuidance" + ], + "QwenImageLayeredModularPipeline": [ + "ClassifierFreeGuidance", + "AdaptiveProjectedGuidance", + "AdaptiveProjectedMixGuidance", + "MagnitudeAwareGuidance", + "ClassifierFreeZeroStarGuidance", + "TangentialClassifierFreeGuidance", + "FrequencyDecoupledGuidance" + ], + "FluxModularPipeline": ["ClassifierFreeGuidance"], + "FluxKontextModularPipeline": ["ClassifierFreeGuidance"], + "Flux2KleinBaseModularPipeline": ["ClassifierFreeGuidance"], + "Flux3ModularPipeline": ["ClassifierFreeGuidance"], + "ZImageModularPipeline": [ + "ClassifierFreeGuidance", + "AdaptiveProjectedGuidance", + "AdaptiveProjectedMixGuidance", + "MagnitudeAwareGuidance", + "ClassifierFreeZeroStarGuidance", + "TangentialClassifierFreeGuidance", + "FrequencyDecoupledGuidance" + ], + "WanModularPipeline": [ + "ClassifierFreeGuidance", + "AdaptiveProjectedGuidance", + "AdaptiveProjectedMixGuidance", + "MagnitudeAwareGuidance", + "ClassifierFreeZeroStarGuidance", + "TangentialClassifierFreeGuidance", + "FrequencyDecoupledGuidance" + ], + "WanImage2VideoModularPipeline": [ + "ClassifierFreeGuidance", + "AdaptiveProjectedGuidance", + "AdaptiveProjectedMixGuidance", + "MagnitudeAwareGuidance", + "ClassifierFreeZeroStarGuidance", + "TangentialClassifierFreeGuidance", + "FrequencyDecoupledGuidance" + ] + } + } + }, + "layers_config": { + "label": "Layers", + "type": "layers_config", + "display": "input" + } + }, + "time": [0, 0, 0], + "memory": [0, 0, 0], + "cache": false + } + }, + { + "operation": { + "pipelineClass": "Flux3ModularPipeline", + "task": "text_to_image", + "operationId": "diffusion.encode_prompt", + "nodeKey": "modules.ModularDiffusers.EncodePrompt", + "nodeType": "text_encoder", + "blockName": "text_encoder", + "decomposition": "block", + "support": "declared", + "ports": [ + { + "name": "prompt", + "semanticName": "prompt", + "direction": "input", + "roles": ["value"], + "types": ["string"], + "required": true, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "negative_prompt", + "semanticName": "negative_prompt", + "direction": "input", + "roles": ["value"], + "types": ["string"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "max_sequence_length", + "semanticName": "max_sequence_length", + "direction": "input", + "roles": ["value"], + "types": ["int"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "text_encoder_out_layers", + "semanticName": "text_encoder_out_layers", + "direction": "input", + "roles": ["value"], + "types": ["int"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "text_encoders", + "semanticName": "text_encoders", + "direction": "input", + "roles": ["component"], + "types": ["diffusers_auto_models"], + "required": true, + "hidden": false, + "semantics": { + "kind": "component", + "scope": "Flux3ModularPipeline", + "state": null, + "owner": "same_loader", + "members": [ + { + "name": "text_encoder", + "type": "transformers.models.qwen3_vl.modeling_qwen3_vl.Qwen3VLForConditionalGeneration" + }, + { + "name": "tokenizer", + "type": "transformers.models.auto.processing_auto.AutoProcessor" + } + ] + } + }, + { + "name": "embeddings", + "semanticName": "embeddings", + "direction": "output", + "roles": ["value"], + "types": ["embeddings"], + "required": false, + "hidden": false, + "semantics": { + "kind": "conditioning", + "scope": "Flux3ModularPipeline", + "state": null, + "owner": "same_loader", + "members": [] + } + }, + { + "name": "doc", + "semanticName": "doc", + "direction": "output", + "roles": ["value"], + "types": ["string"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "layout_conditioning", + "semanticName": "layout_conditioning", + "direction": "input", + "roles": ["value"], + "types": ["layout_conditioning"], + "required": false, + "hidden": false, + "semantics": { + "kind": "opaque", + "scope": "Flux3ModularPipeline", + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "reference_binding", + "semanticName": "reference_binding", + "direction": "input", + "roles": ["value"], + "types": ["reference_conditioning"], + "required": false, + "hidden": false, + "semantics": { + "kind": "opaque", + "scope": "Flux3ModularPipeline", + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "prompt_input", + "semanticName": "prompt", + "direction": "input", + "roles": ["value"], + "types": ["string"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + } + ], + "workflowId": "text2image", + "binding": { + "values": {}, + "pipelineClass": "Flux3ModularPipeline" + } + }, + "node": { + "module": "modules.ModularDiffusers", + "action": "EncodePrompt", + "type": "custom", + "label": "Encode Prompt", + "category": "embedding", + "description": "", + "resizable": true, + "skipParamsCheck": true, + "style": {}, + "params": { + "text_encoders": { + "label": "Text Encoders *", + "required": true, + "type": "diffusers_auto_models", + "display": "input", + "onSignal": "update_node", + "signalCompatibility": { + "role": "text_encoders" + } + }, + "prompt_input": { + "label": "Prompt Input", + "type": "string", + "display": "input", + "description": "Optional connected prompt. When connected, this replaces the inline Prompt value." + }, + "guider": { + "label": "Guider", + "type": "custom_guider", + "display": "input", + "hidden": true, + "description": "Shared Diffusers guidance used by prompt encoding and denoising when the selected pipeline supports it." + }, + "layout_reference_summary": { + "label": "Bound Reference Summary", + "type": "string", + "display": "output", + "hidden": true, + "description": "Display-only ordered reference identities and actual preprocessing sizes from the current encoder cache." + }, + "prompt": { + "label": "Prompt *", + "type": "string", + "display": "textarea", + "default": "", + "value": "A red ceramic teapot on a wooden table beside a window, soft morning light, detailed photograph.", + "fieldOptions": { + "exampleAttribution": "MoDiff task example" + } + }, + "negative_prompt": { + "label": "Negative Prompt", + "type": "string", + "display": "textarea", + "default": "" + }, + "max_sequence_length": { + "label": "Maximum Sequence Length", + "type": "int", + "default": 8192, + "min": 1, + "max": 8192, + "step": 1 + }, + "text_encoder_out_layers": { + "label": "Text Encoder Layers", + "type": "int", + "display": "select", + "default": [4, 8, 12, 16, 20, 24, 28, 32], + "options": [ + { + "schemaVersion": 1, + "value": "0", + "label": "0", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "1", + "label": "1", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "2", + "label": "2", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "3", + "label": "3", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "4", + "label": "4", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "5", + "label": "5", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "6", + "label": "6", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "7", + "label": "7", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "8", + "label": "8", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "9", + "label": "9", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "10", + "label": "10", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "11", + "label": "11", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "12", + "label": "12", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "13", + "label": "13", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "14", + "label": "14", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "15", + "label": "15", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "16", + "label": "16", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "17", + "label": "17", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "18", + "label": "18", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "19", + "label": "19", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "20", + "label": "20", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "21", + "label": "21", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "22", + "label": "22", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "23", + "label": "23", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "24", + "label": "24", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "25", + "label": "25", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "26", + "label": "26", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "27", + "label": "27", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "28", + "label": "28", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "29", + "label": "29", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "30", + "label": "30", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "31", + "label": "31", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "32", + "label": "32", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + } + ], + "fieldOptions": { + "multiple": true, + "tupleValue": true, + "tupleLength": 8 + } + }, + "embeddings": { + "label": "Text Embeddings", + "type": "embeddings", + "display": "output" + }, + "doc": { + "label": "Doc", + "type": "string", + "display": "output" + }, + "layout_conditioning": { + "label": "Layout Conditioning", + "type": "layout_conditioning", + "display": "layout", + "fieldOptions": { + "layoutConditioning": { + "schemaVersion": 2, + "sourceRegions": false, + "supportsBoundSourceRegions": true + } + }, + "default": null + }, + "reference_binding": { + "label": "Reference Binding", + "type": "reference_conditioning", + "display": "input", + "fieldOptions": { + "referenceBinding": { + "schemaVersion": 1, + "maxReferences": 10 + } + }, + "default": null + } + }, + "time": [0, 0, 0], + "memory": [0, 0, 0], + "cache": false + } + }, + { + "operation": { + "pipelineClass": "Flux3ModularPipeline", + "task": "text_to_image", + "operationId": "diffusion.denoise", + "nodeKey": "modules.ModularDiffusers.Denoise", + "nodeType": "denoise", + "blockName": "denoise", + "decomposition": "block", + "support": "declared", + "ports": [ + { + "name": "embeddings", + "semanticName": "embeddings", + "direction": "input", + "roles": ["value"], + "types": ["embeddings"], + "required": true, + "hidden": false, + "semantics": { + "kind": "conditioning", + "scope": "Flux3ModularPipeline", + "state": null, + "owner": "same_loader", + "members": [] + } + }, + { + "name": "width", + "semanticName": "width", + "direction": "input", + "roles": ["value"], + "types": ["int"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "height", + "semanticName": "height", + "direction": "input", + "roles": ["value"], + "types": ["int"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "seed", + "semanticName": "seed", + "direction": "input", + "roles": ["value"], + "types": ["int"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "num_inference_steps", + "semanticName": "num_inference_steps", + "direction": "input", + "roles": ["value"], + "types": ["int"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "num_images_per_prompt", + "semanticName": "num_images_per_prompt", + "direction": "input", + "roles": ["value"], + "types": ["int"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "image_cond_latents", + "semanticName": "image_cond_latents", + "direction": "input", + "roles": ["value"], + "types": ["latents"], + "required": false, + "hidden": false, + "semantics": { + "kind": "latents", + "scope": "Flux3ModularPipeline", + "state": null, + "owner": "same_loader", + "members": [] + } + }, + { + "name": "unet", + "semanticName": "unet", + "direction": "input", + "roles": ["component"], + "types": ["diffusers_auto_model"], + "required": true, + "hidden": false, + "semantics": { + "kind": "component", + "scope": "Flux3ModularPipeline", + "state": null, + "owner": "same_loader", + "members": [ + { + "name": "transformer", + "type": "diffusers.models.transformers.transformer_flux3.Flux3Transformer2DModel" + } + ] + } + }, + { + "name": "scheduler", + "semanticName": "scheduler", + "direction": "input", + "roles": ["component"], + "types": ["diffusers_auto_model"], + "required": true, + "hidden": false, + "semantics": { + "kind": "component", + "scope": "Flux3ModularPipeline", + "state": null, + "owner": "same_loader", + "members": [ + { + "name": "scheduler", + "type": "diffusers.schedulers.scheduling_flow_match_euler_discrete.FlowMatchEulerDiscreteScheduler" + } + ] + } + }, + { + "name": "guider", + "semanticName": "guider", + "direction": "input", + "roles": ["component"], + "types": ["custom_guider"], + "required": false, + "hidden": false, + "semantics": { + "kind": "component", + "scope": "Flux3ModularPipeline", + "state": null, + "owner": "same_loader", + "members": [ + { + "name": "guider", + "type": "diffusers.guiders.classifier_free_guidance.ClassifierFreeGuidance" + } + ] + } + }, + { + "name": "latents", + "semanticName": "latents", + "direction": "output", + "roles": ["value"], + "types": ["latents"], + "required": false, + "hidden": false, + "semantics": { + "kind": "latents", + "scope": "Flux3ModularPipeline", + "state": null, + "owner": "same_loader", + "members": [] + } + }, + { + "name": "doc", + "semanticName": "doc", + "direction": "output", + "roles": ["value"], + "types": ["string"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "reference_binding", + "semanticName": "reference_binding", + "direction": "input", + "roles": ["value"], + "types": ["reference_conditioning"], + "required": false, + "hidden": false, + "semantics": { + "kind": "opaque", + "scope": "Flux3ModularPipeline", + "state": null, + "owner": "none", + "members": [] + } + } + ], + "workflowId": "text2image", + "binding": { + "values": {}, + "pipelineClass": "Flux3ModularPipeline" + } + }, + "node": { + "module": "modules.ModularDiffusers", + "action": "Denoise", + "type": "custom", + "label": "Denoise", + "category": "sampler", + "description": "", + "resizable": true, + "skipParamsCheck": true, + "style": {}, + "params": { + "unet": { + "label": "Denoise Model *", + "display": "input", + "type": "diffusers_auto_model", + "required": true, + "onSignal": [ + "update_node", + { + "action": "signal", + "target": "guider" + }, + { + "action": "signal", + "target": "controlnet_bundle" + } + ], + "signalCompatibility": { + "role": "denoiser" + } + }, + "embeddings": { + "label": "Text Embeddings *", + "type": "embeddings", + "display": "input" + }, + "width": { + "label": "Width", + "type": "int", + "default": 1024, + "min": 64, + "step": 16, + "value": 1024 + }, + "height": { + "label": "Height", + "type": "int", + "default": 1024, + "min": 64, + "step": 16, + "value": 1024 + }, + "seed": { + "label": "Seed", + "type": "int", + "display": "random", + "default": 0, + "min": 0, + "max": 4294967295 + }, + "num_inference_steps": { + "label": "Steps", + "type": "int", + "display": "slider", + "default": 50, + "min": 1, + "max": 100, + "value": 50 + }, + "num_images_per_prompt": { + "label": "Images Per Prompt", + "type": "int", + "default": 1, + "min": 1, + "max": 8, + "step": 1 + }, + "image_cond_latents": { + "label": "Reference Latents", + "type": "latents", + "display": "input" + }, + "scheduler": { + "label": "Scheduler *", + "type": "diffusers_auto_model", + "display": "input", + "signalCompatibility": { + "role": "scheduler" + } + }, + "guider": { + "label": "Guider", + "type": "custom_guider", + "display": "input" + }, + "latents": { + "label": "Latents", + "type": "latents", + "display": "output" + }, + "doc": { + "label": "Doc", + "type": "string", + "display": "output" + }, + "reference_binding": { + "label": "Reference Binding", + "type": "reference_conditioning", + "display": "input", + "fieldOptions": { + "referenceBinding": { + "schemaVersion": 1, + "maxReferences": 10 + } + }, + "default": null + } + }, + "time": [0, 0, 0], + "memory": [0, 0, 0], + "cache": false + } + }, + { + "operation": { + "pipelineClass": "Flux3ModularPipeline", + "task": "text_to_image", + "operationId": "diffusion.decode_latents", + "nodeKey": "modules.ModularDiffusers.DecodeLatents", + "nodeType": "decoder", + "blockName": "decode", + "decomposition": "block", + "support": "declared", + "ports": [ + { + "name": "latents", + "semanticName": "latents", + "direction": "input", + "roles": ["value"], + "types": ["latents"], + "required": true, + "hidden": false, + "semantics": { + "kind": "latents", + "scope": "Flux3ModularPipeline", + "state": null, + "owner": "same_loader", + "members": [] + } + }, + { + "name": "vae", + "semanticName": "vae", + "direction": "input", + "roles": ["component"], + "types": ["diffusers_auto_model"], + "required": true, + "hidden": false, + "semantics": { + "kind": "component", + "scope": "Flux3ModularPipeline", + "state": null, + "owner": "same_loader", + "members": [ + { + "name": "vae", + "type": "diffusers.models.autoencoders.autoencoder_kl_flux2.AutoencoderKLFlux2" + } + ] + } + }, + { + "name": "images", + "semanticName": "images", + "direction": "output", + "roles": ["value"], + "types": ["image"], + "required": false, + "hidden": false, + "semantics": { + "kind": "media", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "doc", + "semanticName": "doc", + "direction": "output", + "roles": ["value"], + "types": ["string"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + } + ], + "workflowId": "text2image", + "binding": { + "values": {}, + "pipelineClass": "Flux3ModularPipeline" + } + }, + "node": { + "module": "modules.ModularDiffusers", + "action": "DecodeLatents", + "type": "custom", + "label": "Decode Latents", + "category": "sampler", + "description": "", + "resizable": true, + "skipParamsCheck": true, + "style": {}, + "params": { + "vae": { + "label": "VAE *", + "display": "input", + "type": "diffusers_auto_model", + "onSignal": "update_node", + "signalCompatibility": { + "role": "vae" + } + }, + "latents": { + "label": "Latents *", + "type": "latents", + "display": "input" + }, + "images": { + "label": "Images", + "type": "image", + "display": "output" + }, + "doc": { + "label": "Doc", + "type": "string", + "display": "output" + } + }, + "time": [0, 0, 0], + "memory": [0, 0, 0], + "cache": false + } + } + ], + "edges": [ + { + "source": "diffusion.load_models", + "sourceHandle": "text_encoders", + "target": "diffusion.encode_prompt", + "targetHandle": "text_encoders" + }, + { + "source": "diffusion.load_models", + "sourceHandle": "scheduler", + "target": "diffusion.denoise", + "targetHandle": "scheduler" + }, + { + "source": "diffusion.load_models", + "sourceHandle": "unet_out", + "target": "diffusion.denoise", + "targetHandle": "unet" + }, + { + "source": "diffusion.load_models", + "sourceHandle": "vae_out", + "target": "diffusion.decode_latents", + "targetHandle": "vae" + }, + { + "source": "diffusion.encode_prompt", + "sourceHandle": "embeddings", + "target": "diffusion.denoise", + "targetHandle": "embeddings" + }, + { + "source": "diffusion.denoise", + "sourceHandle": "latents", + "target": "diffusion.decode_latents", + "targetHandle": "latents" + }, + { + "source": "diffusion.guidance", + "sourceHandle": "guider_out", + "target": "diffusion.denoise", + "targetHandle": "guider" + } + ], + "requiredInputs": [ + { + "operationId": "diffusion.encode_prompt", + "field": "prompt" + } + ], + "sharedInputs": [], + "upstreamBlocks": ["text_encoder", "denoise", "decode"], + "authoring": { + "schemaVersion": 1, + "canonicalizationVersion": 1, + "id": "flux3-klein-base:text-to-image:prompt-preview-authoring:v1", + "baseSpecId": "flux3-klein-base:modular:text-to-image:v1", + "baseSpecContentHash": "studio-spec-v1-b86b1275", + "executionProfileIds": ["flux3-klein-base:modular"], + "roles": [ + ["models", "modules.ModularDiffusers.ModelsLoader", -720, -80], + ["prompt", "modules.ModularDiffusers.EncodePrompt", -360, -240], + ["denoise", "modules.ModularDiffusers.Denoise", 80, -80], + ["decode", "modules.ModularDiffusers.DecodeLatents", 440, -80], + ["preview", "modules.Image.Preview", 800, -80], + ["guider", "modules.ModularDiffusers.Guider", -360, 160] + ], + "edges": [ + ["models", "text_encoders", "prompt", "text_encoders"], + ["models", "unet_out", "denoise", "unet"], + ["models", "scheduler", "denoise", "scheduler"], + ["models", "vae_out", "decode", "vae"], + ["prompt", "embeddings", "denoise", "embeddings"], + ["denoise", "latents", "decode", "latents"], + ["decode", "images", "preview", "image"], + ["guider", "guider_out", "denoise", "guider"] + ], + "bindings": [ + ["models", "model_type", "pipelineClass"], + ["models", "repo_id", "artifact"], + ["models", "revision", "defaultRevision"], + ["models", "dtype", "dtype"], + ["models", "device", "device"], + ["models", "auto_offload", "autoOffload"], + ["models", "offload_mode", "offloadMode"], + ["models", "trust_remote_code", "false"], + ["prompt", "prompt", "prompt"], + ["prompt", "negative_prompt", "negativePrompt"], + ["denoise", "width", "width"], + ["denoise", "height", "height"], + ["denoise", "seed", "seed"], + ["denoise", "num_inference_steps", "steps"], + ["prompt", "max_sequence_length", "maxSequenceLength"], + ["models", "weight_format", "weightFormat"], + ["guider", "guider", "classifierFreeGuidance"], + ["guider", "model_type", "pipelineClass"], + ["guider", "guidance_scale", "guidanceScale"] + ], + "initialValues": [], + "ancillaryOperations": [ + { + "schemaVersion": 1, + "id": "flux3-klein-base:text-to-image:prompt-preview-authoring:v1:preview", + "parent": { + "authoringRecipeId": "flux3-klein-base:text-to-image:prompt-preview-authoring:v1", + "baseSpecId": "flux3-klein-base:modular:text-to-image:v1", + "baseSpecContentHash": "studio-spec-v1-b86b1275", + "executionProfileId": "flux3-klein-base:modular", + "pipelineClass": "Flux3ModularPipeline", + "task": "text_to_image" + }, + "executionPurpose": "explicit_preview", + "roles": [ + ["provider", "modules.HuggingFaceTransformers.LoadImageTextToTextModel", -720, -400], + ["proposal", "modules.HuggingFaceTransformers.GenerateImageVideoText", -360, -400] + ], + "edges": [["provider", "model", "proposal", "model"]], + "bindings": { + "owner": { + "role": "prompt", + "promptField": "prompt", + "layoutField": "layout_conditioning", + "referenceSource": null + }, + "request": { + "role": "proposal", + "promptField": "prompt", + "layoutField": "layout_conditioning", + "imagesField": "images" + }, + "output": { + "role": "proposal", + "field": "proposal_summary" + } + }, + "initialValues": [ + [ + "provider", + "model_id", + { + "source": "hub", + "value": "black-forest-labs/flux-3-image-klein-pup" + } + ], + ["provider", "revision", "3f3edb52b2c55de0d49feab28598b68f7f8e4830"], + ["proposal", "operation", "enhance_prompt"], + ["provider", "dtype", "bfloat16"], + ["provider", "device", "cuda:0"], + ["provider", "quantization_mode", "bnb_4bit"], + ["proposal", "max_input_tokens", 4096] + ], + "fieldOverrides": [ + [ + "proposal", + "enhancement_max_new_tokens", + { + "hidden": false + } + ], + [ + "proposal", + "max_new_tokens", + { + "hidden": true + } + ] + ], + "adapter": { + "id": "transformers-prompt-enhancement-v1", + "declarationSha256": "sha256:2a3d4685988b418115008bbb95fb3e948097580c0bedd2940ea3fe1e40254dc2" + }, + "verification": { + "schemaVersion": 1, + "adapter": { + "id": "transformers-prompt-enhancement-v1", + "declarationSha256": "sha256:2a3d4685988b418115008bbb95fb3e948097580c0bedd2940ea3fe1e40254dc2" + }, + "runtimeInputs": { + "role": "provider", + "modelField": "model_id", + "revisionField": "revision", + "dtypeField": "dtype", + "deviceField": "device", + "quantizationField": "quantization_mode" + }, + "requestInputs": { + "role": "proposal", + "operationField": "operation", + "maxNewTokensField": "enhancement_max_new_tokens", + "minNewTokensField": "min_new_tokens", + "maxInputTokensField": "max_input_tokens", + "maxImagePixelsField": "max_image_pixels" + }, + "supportedPromptModes": ["t2i", "i2i"], + "systemPromptsSha256": "sha256:b5da3ed8bc04ab59dbdb747930f7dbff847e868903fed8028f85ee1a4ac82fb4", + "systemPromptSha256ByMode": { + "t2i": "8b235a421bce2213d11ada01f5a1244443dd72303ffbb4cc9e5a0d8b0de5ab6f", + "i2i": "95cec384d5b6d341caa9fb3f2c7ca45ee80c2364b3a95d4044aebf976f6dd3bf", + "t2i_bbox": "5f513d8ce5838732919f9e645507aa20ff373e88bf93132c768e063c9db3151f", + "i2i_bbox": "9ad10f947e401337cf155cac0518cc428159ef16f2f029f48aae2aaab8380a5e" + }, + "chatTemplateSha256": "sha256:a4aee8afcf2e0711942cf848899be66016f8d14a889ff9ede07bca099c28f715", + "modelReceipt": { + "schemaVersion": 1, + "library": "transformers", + "task": "image-video-to-text", + "source": { + "kind": "hub", + "repository": "black-forest-labs/flux-3-image-klein-pup", + "revision": "3f3edb52b2c55de0d49feab28598b68f7f8e4830" + }, + "loader": { + "preprocessorAutoClass": "AutoProcessor", + "modelAutoClass": "AutoModelForImageTextToText" + }, + "security": { + "localFilesOnly": true, + "trustRemoteCode": false, + "safetensorsOnly": true, + "hostedInference": false + }, + "runtime": { + "transformersVersion": "5.18.0", + "preprocessorClass": "Qwen3VLProcessor", + "modelClass": "Qwen3_5ForConditionalGeneration", + "modelType": "qwen3_5", + "architectures": ["Qwen3_5ForConditionalGeneration"] + } + }, + "quantizationRecipes": [ + { + "mode": "none" + }, + { + "mode": "bnb_4bit", + "quantType": "nf4", + "doubleQuant": true, + "computeDtype": "bfloat16", + "skipModules": ["lm_head", "model.visual"] + } + ] + }, + "sourceRegions": false, + "contentHash": "studio-ancillary-v1-c90ef86a" + } + ], + "contentHash": "studio-authoring-v1-bf60d263" + } + }, + { + "schemaVersion": 1, + "pipelineClass": "Flux3ModularPipeline", + "task": "edit_image", + "workflowId": "image_conditioned", + "nodes": [ + { + "operation": { + "pipelineClass": "Flux3ModularPipeline", + "task": "edit_image", + "operationId": "diffusion.load_models", + "nodeKey": "modules.ModularDiffusers.ModelsLoader", + "nodeType": "loader", + "blockName": null, + "decomposition": "loader", + "support": "declared", + "ports": [ + { + "name": "model_type", + "semanticName": "model_type", + "direction": "input", + "roles": ["value"], + "types": ["string"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "repo_id", + "semanticName": "repo_id", + "direction": "input", + "roles": ["value"], + "types": ["string"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "reviewed_variant", + "semanticName": "reviewed_variant", + "direction": "input", + "roles": ["value"], + "types": ["string"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "device", + "semanticName": "device", + "direction": "input", + "roles": ["value"], + "types": ["string"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "attention_backend", + "semanticName": "attention_backend", + "direction": "input", + "roles": ["value"], + "types": ["string"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "vae_slicing", + "semanticName": "vae_slicing", + "direction": "input", + "roles": ["value"], + "types": ["boolean"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "vae_tiling", + "semanticName": "vae_tiling", + "direction": "input", + "roles": ["value"], + "types": ["boolean"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "inpaint_compatibility", + "semanticName": "inpaint_compatibility", + "direction": "input", + "roles": ["value"], + "types": ["string"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "trust_remote_code", + "semanticName": "trust_remote_code", + "direction": "input", + "roles": ["value"], + "types": ["boolean"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "revision", + "semanticName": "revision", + "direction": "input", + "roles": ["value"], + "types": ["string"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "workflow_id", + "semanticName": "workflow_id", + "direction": "input", + "roles": ["value"], + "types": ["string"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "modiff_pipeline_identity", + "semanticName": "modiff_pipeline_identity", + "direction": "input", + "roles": ["value"], + "types": ["object"], + "required": false, + "hidden": true, + "semantics": { + "kind": "opaque", + "scope": "Flux3ModularPipeline", + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "auto_offload", + "semanticName": "auto_offload", + "direction": "input", + "roles": ["value"], + "types": ["boolean"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "offload_mode", + "semanticName": "offload_mode", + "direction": "input", + "roles": ["value"], + "types": ["string"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "weight_loading_mode", + "semanticName": "weight_loading_mode", + "direction": "input", + "roles": ["value"], + "types": ["string"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "weight_format", + "semanticName": "weight_format", + "direction": "input", + "roles": ["value"], + "types": ["string"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "unet", + "semanticName": "unet", + "direction": "input", + "roles": ["component"], + "types": ["diffusers_auto_model"], + "required": false, + "hidden": false, + "semantics": { + "kind": "component", + "scope": "Flux3ModularPipeline", + "state": null, + "owner": "same_loader", + "members": [ + { + "name": "transformer", + "type": "diffusers.models.transformers.transformer_flux3.Flux3Transformer2DModel" + } + ] + } + }, + { + "name": "vae", + "semanticName": "vae", + "direction": "input", + "roles": ["component"], + "types": ["diffusers_auto_model"], + "required": false, + "hidden": false, + "semantics": { + "kind": "component", + "scope": "Flux3ModularPipeline", + "state": null, + "owner": "same_loader", + "members": [ + { + "name": "vae", + "type": "diffusers.models.autoencoders.autoencoder_kl_flux2.AutoencoderKLFlux2" + } + ] + } + }, + { + "name": "controlnet", + "semanticName": "controlnet", + "direction": "input", + "roles": ["component"], + "types": ["diffusers_auto_model"], + "required": false, + "hidden": true, + "semantics": { + "kind": "component", + "scope": "Flux3ModularPipeline", + "state": null, + "owner": "same_loader", + "members": [] + } + }, + { + "name": "lora_list", + "semanticName": "lora_list", + "direction": "input", + "roles": ["value"], + "types": ["custom_lora"], + "required": false, + "hidden": false, + "semantics": { + "kind": "opaque", + "scope": "Flux3ModularPipeline", + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "text_encoders", + "semanticName": "text_encoders", + "direction": "output", + "roles": ["component"], + "types": ["diffusers_auto_models"], + "required": false, + "hidden": false, + "semantics": { + "kind": "component", + "scope": "Flux3ModularPipeline", + "state": null, + "owner": "same_loader", + "members": [ + { + "name": "text_encoder", + "type": "transformers.models.qwen3_vl.modeling_qwen3_vl.Qwen3VLForConditionalGeneration" + }, + { + "name": "tokenizer", + "type": "transformers.models.auto.processing_auto.AutoProcessor" + } + ] + } + }, + { + "name": "unet_out", + "semanticName": "unet_out", + "direction": "output", + "roles": ["component"], + "types": ["diffusers_auto_model"], + "required": false, + "hidden": false, + "semantics": { + "kind": "component", + "scope": "Flux3ModularPipeline", + "state": null, + "owner": "same_loader", + "members": [ + { + "name": "transformer", + "type": "diffusers.models.transformers.transformer_flux3.Flux3Transformer2DModel" + } + ] + } + }, + { + "name": "vae_out", + "semanticName": "vae_out", + "direction": "output", + "roles": ["component"], + "types": ["diffusers_auto_model"], + "required": false, + "hidden": false, + "semantics": { + "kind": "component", + "scope": "Flux3ModularPipeline", + "state": null, + "owner": "same_loader", + "members": [ + { + "name": "vae", + "type": "diffusers.models.autoencoders.autoencoder_kl_flux2.AutoencoderKLFlux2" + } + ] + } + }, + { + "name": "scheduler", + "semanticName": "scheduler", + "direction": "output", + "roles": ["component"], + "types": ["diffusers_auto_model"], + "required": false, + "hidden": false, + "semantics": { + "kind": "component", + "scope": "Flux3ModularPipeline", + "state": null, + "owner": "same_loader", + "members": [ + { + "name": "scheduler", + "type": "diffusers.schedulers.scheduling_flow_match_euler_discrete.FlowMatchEulerDiscreteScheduler" + } + ] + } + }, + { + "name": "image_encoder", + "semanticName": "image_encoder", + "direction": "output", + "roles": ["component"], + "types": ["diffusers_auto_model"], + "required": false, + "hidden": true, + "semantics": { + "kind": "component", + "scope": "Flux3ModularPipeline", + "state": null, + "owner": "same_loader", + "members": [] + } + }, + { + "name": "pipeline_components", + "semanticName": "pipeline_components", + "direction": "output", + "roles": ["component"], + "types": ["diffusers_modular_pipeline_components"], + "required": false, + "hidden": false, + "semantics": { + "kind": "component", + "scope": "Flux3ModularPipeline", + "state": null, + "owner": "same_loader", + "members": [ + { + "name": "guider", + "type": "diffusers.guiders.classifier_free_guidance.ClassifierFreeGuidance" + }, + { + "name": "image_processor", + "type": "diffusers.modular_pipelines.flux3.image_processor.Flux3ImageProcessor" + }, + { + "name": "scheduler", + "type": "diffusers.schedulers.scheduling_flow_match_euler_discrete.FlowMatchEulerDiscreteScheduler" + }, + { + "name": "text_encoder", + "type": "transformers.models.qwen3_vl.modeling_qwen3_vl.Qwen3VLForConditionalGeneration" + }, + { + "name": "tokenizer", + "type": "transformers.models.auto.processing_auto.AutoProcessor" + }, + { + "name": "transformer", + "type": "diffusers.models.transformers.transformer_flux3.Flux3Transformer2DModel" + }, + { + "name": "vae", + "type": "diffusers.models.autoencoders.autoencoder_kl_flux2.AutoencoderKLFlux2" + } + ] + } + }, + { + "name": "quant_config", + "semanticName": "quant_config", + "direction": "input", + "roles": ["value"], + "types": ["quant_config"], + "required": false, + "hidden": false, + "semantics": { + "kind": "opaque", + "scope": "Flux3ModularPipeline", + "state": null, + "owner": "none", + "members": [] + } + } + ], + "workflowId": "image_conditioned", + "binding": { + "values": { + "model_type": "Flux3ModularPipeline" + }, + "pipelineClass": "Flux3ModularPipeline" + } + }, + "node": { + "module": "modules.ModularDiffusers", + "action": "ModelsLoader", + "type": "custom", + "label": "Load Models", + "category": "loader", + "description": "", + "resizable": true, + "skipParamsCheck": true, + "style": {}, + "params": { + "model_type": { + "label": "Pipeline Type", + "type": "string", + "options": { + "": { + "schemaVersion": 1, + "value": "", + "label": "", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "DummyCustomPipeline": { + "schemaVersion": 1, + "value": "DummyCustomPipeline", + "label": "Custom", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "StableDiffusionXLModularPipeline": { + "schemaVersion": 1, + "value": "StableDiffusionXLModularPipeline", + "label": "Stable Diffusion XL", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "QwenImageModularPipeline": { + "schemaVersion": 1, + "value": "QwenImageModularPipeline", + "label": "Qwen-Image-2512", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "QwenImageEditModularPipeline": { + "schemaVersion": 1, + "value": "QwenImageEditModularPipeline", + "label": "Qwen-Image-Edit", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "QwenImageEditPlusModularPipeline": { + "schemaVersion": 1, + "value": "QwenImageEditPlusModularPipeline", + "label": "Qwen-Image-Edit-2511", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "QwenImageLayeredModularPipeline": { + "schemaVersion": 1, + "value": "QwenImageLayeredModularPipeline", + "label": "Qwen-Image-Layered", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "FluxModularPipeline": { + "schemaVersion": 1, + "value": "FluxModularPipeline", + "label": "Flux", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "FluxKontextModularPipeline": { + "schemaVersion": 1, + "value": "FluxKontextModularPipeline", + "label": "Flux Kontext", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "Flux2ModularPipeline": { + "schemaVersion": 1, + "value": "Flux2ModularPipeline", + "label": "Flux 2", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "Flux2KleinModularPipeline": { + "schemaVersion": 1, + "value": "Flux2KleinModularPipeline", + "label": "Flux 2 Klein Distilled", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "Flux2KleinBaseModularPipeline": { + "schemaVersion": 1, + "value": "Flux2KleinBaseModularPipeline", + "label": "Flux 2 Klein Base", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "Flux3ModularPipeline": { + "schemaVersion": 1, + "value": "Flux3ModularPipeline", + "label": "FLUX 3 Image Klein Base", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "Flux3DistilledModularPipeline": { + "schemaVersion": 1, + "value": "Flux3DistilledModularPipeline", + "label": "FLUX 3 Image Klein", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "ZImageModularPipeline": { + "schemaVersion": 1, + "value": "ZImageModularPipeline", + "label": "Z-Image", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "WanModularPipeline": { + "schemaVersion": 1, + "value": "WanModularPipeline", + "label": "WAN2 T2V", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "WanImage2VideoModularPipeline": { + "schemaVersion": 1, + "value": "WanImage2VideoModularPipeline", + "label": "WAN2 I2V", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "MiniMaxMusic3ModularPipeline": { + "schemaVersion": 1, + "value": "MiniMaxMusic3ModularPipeline", + "label": "MiniMax Music 3", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "MiniMaxH3ModularPipeline": { + "schemaVersion": 1, + "value": "MiniMaxH3ModularPipeline", + "label": "MiniMax H3", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "AnimaModularPipeline": { + "schemaVersion": 1, + "value": "AnimaModularPipeline", + "label": "Anima", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "ErnieImageModularPipeline": { + "schemaVersion": 1, + "value": "ErnieImageModularPipeline", + "label": "ERNIE Image Turbo", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "HeliosModularPipeline": { + "schemaVersion": 1, + "value": "HeliosModularPipeline", + "label": "Helios", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "HeliosPyramidModularPipeline": { + "schemaVersion": 1, + "value": "HeliosPyramidModularPipeline", + "label": "Helios Pyramid", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "HeliosPyramidDistilledModularPipeline": { + "schemaVersion": 1, + "value": "HeliosPyramidDistilledModularPipeline", + "label": "Helios Pyramid Distilled", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "HunyuanVideo15ModularPipeline": { + "schemaVersion": 1, + "value": "HunyuanVideo15ModularPipeline", + "label": "HunyuanVideo 1.5", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "WanAnimate2ModularPipeline": { + "schemaVersion": 1, + "value": "WanAnimate2ModularPipeline", + "label": "Wan Animate 2", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "WanAnimate2DistilledModularPipeline": { + "schemaVersion": 1, + "value": "WanAnimate2DistilledModularPipeline", + "label": "Wan Animate 2 Distilled", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "Cosmos3OmniModularPipeline": { + "schemaVersion": 1, + "value": "Cosmos3OmniModularPipeline", + "label": "Cosmos 3 Nano", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "Cosmos3DistilledModularPipeline": { + "schemaVersion": 1, + "value": "Cosmos3DistilledModularPipeline", + "label": "Cosmos 3 Distilled", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "Ideogram4ModularPipeline": { + "schemaVersion": 1, + "value": "Ideogram4ModularPipeline", + "label": "Ideogram 4 (Contract only)", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "Krea2ModularPipeline": { + "schemaVersion": 1, + "value": "Krea2ModularPipeline", + "label": "Krea 2 (Contract only)", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "Krea2TurboModularPipeline": { + "schemaVersion": 1, + "value": "Krea2TurboModularPipeline", + "label": "Krea 2 Turbo (Contract only)", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "StableDiffusion3ModularPipeline": { + "schemaVersion": 1, + "value": "StableDiffusion3ModularPipeline", + "label": "Stable Diffusion 3 (Contract only)", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "LTX25ModularPipeline": { + "schemaVersion": 1, + "value": "LTX25ModularPipeline", + "label": "LTX-2.5 (Contract only)", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + } + }, + "onChange": "set_filters", + "description": "Selects the Modular Diffusers pipeline class. This filters compatible checkpoints and publishes the component contract used by connected nodes; it is not the model checkpoint itself.", + "value": "Flux3ModularPipeline" + }, + "repo_id": { + "label": "Repository ID", + "display": "modelselect", + "type": "string", + "value": { + "source": "hub", + "value": "black-forest-labs/flux-3-image-klein-base" + }, + "fieldOptions": { + "noValidation": true, + "sources": ["hub", "local"], + "filter": { + "hub": { + "className": ["Flux3ModularPipeline"] + } + } + }, + "onChange": "refresh_pipeline_identity" + }, + "reviewed_variant": { + "label": "Model", + "type": "string", + "value": "black-forest-labs/flux-3-image-klein-base", + "options": [ + { + "schemaVersion": 1, + "value": "black-forest-labs/flux-3-image-klein-base", + "label": "black-forest-labs/flux-3-image-klein-base", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + } + ], + "hidden": true, + "fieldOptions": { + "controlTier": "essential" + }, + "description": "Select an immutable, reviewed checkpoint for this exact Modular Diffusers pipeline family. Changing it does not replace the workflow graph or reset its parameters." + }, + "dtype": { + "label": "dtype", + "options": [ + { + "schemaVersion": 1, + "value": "float32", + "label": "float32", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "float16", + "label": "float16", + "compatibility": "incompatible", + "availability": "unavailable", + "installationState": "unavailable", + "disabledReason": "float16 is not supported by the active runtime." + }, + { + "schemaVersion": 1, + "value": "bfloat16", + "label": "bfloat16", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + } + ], + "value": "bfloat16" + }, + "device": { + "label": "Device", + "type": "string", + "value": "cpu:0", + "options": { + "cpu:0": { + "schemaVersion": 1, + "value": "cpu:0", + "label": "cpu:0", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "cpu": { + "schemaVersion": 1, + "value": "cpu", + "label": "cpu", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + } + } + }, + "attention_backend": { + "label": "Attention Backend", + "type": "string", + "default": "inherit", + "options": [ + { + "schemaVersion": 1, + "value": "inherit", + "label": "inherit", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "auto", + "label": "auto", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "native", + "label": "native", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "_native_math", + "label": "_native_math", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + } + ], + "description": "Inherit preserves existing native component defaults; explicit choices use the ordinary Diffusers attention API." + }, + "vae_slicing": { + "label": "VAE Slicing", + "type": "boolean", + "default": null, + "hidden": true, + "description": "An unset policy preserves the native VAE configuration; templates may bind an explicit boolean." + }, + "vae_tiling": { + "label": "VAE Tiling", + "type": "boolean", + "default": null, + "hidden": true, + "description": "An unset policy preserves the native VAE configuration; templates may bind an explicit boolean." + }, + "inpaint_compatibility": { + "label": "Inpaint Compatibility", + "type": "string", + "default": "native", + "hidden": true, + "options": [ + { + "schemaVersion": 1, + "value": "native", + "label": "native", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "whole_v1", + "label": "whole_v1", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + } + ], + "description": "Technical compatibility selection for the reviewed Qwen Edit inpainting candidate; existing nodes retain native policy." + }, + "trust_remote_code": { + "label": "Trust Remote Code", + "type": "boolean", + "value": false, + "description": "Repository code execution is disabled; keep this off for contract preview.", + "onChange": "refresh_pipeline_identity" + }, + "revision": { + "label": "Revision", + "type": "string", + "value": "1469d27cfb9bb1bd81d3a93f5a023b39dbf136e4", + "description": "Required exact 40-character commit hash for Hub custom contracts.", + "onChange": "refresh_pipeline_identity" + }, + "workflow_id": { + "label": "Reviewed Workflow", + "type": "string", + "value": "image_conditioned", + "hidden": true, + "description": "Exact reviewed component partition selected by a first-party Cluster Node." + }, + "modiff_pipeline_identity": { + "label": "Custom Pipeline Identity", + "type": "object", + "value": null, + "hidden": true + }, + "refresh_pipeline_identity_button": { + "label": "Review and Refresh Custom Contract", + "display": "ui_button", + "value": false, + "hidden": true, + "onChange": "refresh_pipeline_identity" + }, + "auto_offload": { + "label": "Enable Auto Offload", + "type": "boolean", + "value": true + }, + "offload_mode": { + "label": "Offload Mode", + "type": "string", + "options": [ + { + "schemaVersion": 1, + "value": "auto_cpu", + "label": "auto_cpu", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "none", + "label": "none", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "model_cpu", + "label": "model_cpu", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "group_cpu", + "label": "group_cpu", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "group_disk", + "label": "group_disk", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + } + ], + "value": "model_cpu", + "default": "model_cpu" + }, + "weight_loading_mode": { + "label": "Weight Loading", + "type": "string", + "default": "cpu", + "options": [ + { + "schemaVersion": 1, + "value": "cpu", + "label": "cpu", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "cuda", + "label": "cuda", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + } + ], + "fieldOptions": { + "controlTier": "advanced" + }, + "description": "Load weights on CPU or CUDA before disk offload. CUDA loading needs room for a complete component and is available only for supported models." + }, + "weight_format": { + "label": "Weight Format", + "type": "string", + "default": "native", + "options": [ + { + "schemaVersion": 1, + "value": "native", + "label": "native", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "fp8r", + "label": "fp8r", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "nvfp4", + "label": "nvfp4", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + } + ], + "hidden": false, + "fieldOptions": { + "controlTier": "advanced" + }, + "description": "Select a backend-declared immutable component format. Missing reviewed files must be installed through Model Manager." + }, + "unet": { + "label": "Denoise Model", + "display": "input", + "type": "diffusers_auto_model", + "hidden": false + }, + "vae": { + "label": "VAE", + "display": "input", + "type": "diffusers_auto_model", + "hidden": false + }, + "controlnet": { + "label": "ControlNet", + "display": "input", + "type": "diffusers_auto_model", + "hidden": true + }, + "lora_list": { + "label": "Lora", + "display": "input", + "type": "custom_lora" + }, + "text_encoders": { + "label": "Text Encoders", + "display": "output", + "type": "diffusers_auto_models", + "signal": { + "direction": "output", + "origin": "modiff_pipeline_identity", + "value": "Flux3ModularPipeline" + }, + "connectionRole": "text_encoders", + "hidden": false + }, + "unet_out": { + "label": "Denoise Model", + "display": "output", + "type": "diffusers_auto_model", + "signal": { + "direction": "output", + "origin": "modiff_pipeline_identity", + "value": "Flux3ModularPipeline" + }, + "connectionRole": "denoiser", + "hidden": false + }, + "vae_out": { + "label": "VAE", + "display": "output", + "type": "diffusers_auto_model", + "signal": { + "direction": "output", + "origin": "modiff_pipeline_identity", + "value": "Flux3ModularPipeline" + }, + "connectionRole": "vae", + "hidden": false + }, + "scheduler": { + "label": "Scheduler", + "display": "output", + "type": "diffusers_auto_model", + "signal": { + "direction": "output", + "origin": "modiff_pipeline_identity", + "value": "Flux3ModularPipeline" + }, + "connectionRole": "scheduler", + "hidden": false + }, + "image_encoder": { + "label": "Image Encoder", + "display": "output", + "type": "diffusers_auto_model", + "signal": { + "direction": "output", + "origin": "modiff_pipeline_identity", + "value": "Flux3ModularPipeline" + }, + "connectionRole": "image_encoder", + "hidden": true + }, + "pipeline_components": { + "label": "Pipeline Components", + "display": "output", + "type": "diffusers_modular_pipeline_components", + "signal": { + "direction": "output", + "origin": "modiff_pipeline_identity", + "value": "Flux3ModularPipeline" + }, + "connectionRole": "pipeline_components", + "hidden": false + }, + "quant_config": { + "label": "Quant Config", + "display": "input", + "type": "quant_config" + } + }, + "time": [0, 0, 0], + "memory": [0, 0, 0], + "cache": false + } + }, + { + "operation": { + "pipelineClass": "Flux3ModularPipeline", + "task": "edit_image", + "operationId": "diffusion.guidance", + "nodeKey": "modules.ModularDiffusers.Guider", + "nodeType": "guidance", + "blockName": null, + "decomposition": "bundle", + "support": "declared", + "ports": [ + { + "name": "model_type", + "semanticName": "model_type", + "direction": "input", + "roles": ["value"], + "types": ["string"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "guider", + "semanticName": "guider", + "direction": "input", + "roles": ["value"], + "types": ["string"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "guidance_scale", + "semanticName": "guidance_scale", + "direction": "input", + "roles": ["value"], + "types": ["float"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "guidance_rescale", + "semanticName": "guidance_rescale", + "direction": "input", + "roles": ["value"], + "types": ["float"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "use_original_formulation", + "semanticName": "use_original_formulation", + "direction": "input", + "roles": ["value"], + "types": ["boolean"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "enabled", + "semanticName": "enabled", + "direction": "input", + "roles": ["value"], + "types": ["boolean"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "start", + "semanticName": "start", + "direction": "input", + "roles": ["value"], + "types": ["float"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "stop", + "semanticName": "stop", + "direction": "input", + "roles": ["value"], + "types": ["float"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "guider_out", + "semanticName": "guider_out", + "direction": "output", + "roles": ["component"], + "types": ["custom_guider"], + "required": false, + "hidden": false, + "semantics": { + "kind": "component", + "scope": "Flux3ModularPipeline", + "state": null, + "owner": "same_loader", + "members": [] + } + }, + { + "name": "layers_config", + "semanticName": "layers_config", + "direction": "input", + "roles": ["value"], + "types": ["layers_config"], + "required": false, + "hidden": false, + "semantics": { + "kind": "opaque", + "scope": "Flux3ModularPipeline", + "state": null, + "owner": "none", + "members": [] + } + } + ], + "workflowId": "image_conditioned", + "binding": { + "values": { + "model_type": "Flux3ModularPipeline" + }, + "pipelineClass": "Flux3ModularPipeline" + } + }, + "node": { + "module": "modules.ModularDiffusers", + "action": "Guider", + "type": "custom", + "label": "Guidance", + "category": "sampler", + "description": "", + "resizable": true, + "skipParamsCheck": true, + "style": {}, + "params": { + "model_type": { + "type": "string", + "default": "", + "hidden": true, + "value": "Flux3ModularPipeline" + }, + "guider": { + "label": "Guider", + "fieldOptions": { + "loading": true + }, + "type": "string", + "options": [ + { + "schemaVersion": 1, + "value": "ClassifierFreeGuidance", + "label": "ClassifierFreeGuidance", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + } + ], + "value": "ClassifierFreeGuidance", + "onChange": [ + "updateNode", + { + "SkipLayerGuidance": ["layers_config"], + "AutoGuidance": ["layers_config"], + "SmoothedEnergyGuidance": ["layers_config"], + "PerturbedAttentionGuidance": ["layers_config"] + } + ] + }, + "guidance_scale": { + "label": "Guidance Scale", + "type": "float", + "display": "slider", + "value": 3.5, + "min": 1.0, + "max": 20.0, + "step": 0.1 + }, + "guidance_rescale": { + "label": "Guidance Rescale", + "type": "float", + "display": "slider", + "value": 0.0, + "min": 0.0, + "max": 10.0, + "step": 0.1 + }, + "use_original_formulation": { + "label": "Original Formulation", + "type": "boolean", + "value": false + }, + "enabled": { + "label": "Enabled", + "type": "boolean", + "value": true + }, + "start": { + "label": "Start", + "type": "float", + "display": "slider", + "value": 0.0, + "min": 0.0, + "max": 1.0, + "step": 0.01 + }, + "stop": { + "label": "Stop", + "type": "float", + "display": "slider", + "value": 1.0, + "min": 0.01, + "max": 1.0, + "step": 0.01 + }, + "guider_out": { + "label": "Guider", + "display": "output", + "type": "custom_guider", + "onSignal": [ + { + "action": "value", + "target": "model_type" + }, + { + "action": "value", + "target": "guider", + "prop": "options", + "data": { + "StableDiffusionXLModularPipeline": [ + "ClassifierFreeGuidance", + "SkipLayerGuidance", + "AdaptiveProjectedGuidance", + "AdaptiveProjectedMixGuidance", + "MagnitudeAwareGuidance", + "ClassifierFreeZeroStarGuidance", + "AutoGuidance", + "SmoothedEnergyGuidance", + "PerturbedAttentionGuidance", + "TangentialClassifierFreeGuidance", + "FrequencyDecoupledGuidance" + ], + "QwenImageModularPipeline": [ + "ClassifierFreeGuidance", + "SkipLayerGuidance", + "AdaptiveProjectedGuidance", + "AdaptiveProjectedMixGuidance", + "MagnitudeAwareGuidance", + "ClassifierFreeZeroStarGuidance", + "AutoGuidance", + "SmoothedEnergyGuidance", + "PerturbedAttentionGuidance", + "TangentialClassifierFreeGuidance", + "FrequencyDecoupledGuidance" + ], + "QwenImageEditModularPipeline": [ + "ClassifierFreeGuidance", + "SkipLayerGuidance", + "AdaptiveProjectedGuidance", + "AdaptiveProjectedMixGuidance", + "MagnitudeAwareGuidance", + "ClassifierFreeZeroStarGuidance", + "AutoGuidance", + "SmoothedEnergyGuidance", + "PerturbedAttentionGuidance", + "TangentialClassifierFreeGuidance", + "FrequencyDecoupledGuidance" + ], + "QwenImageEditPlusModularPipeline": [ + "ClassifierFreeGuidance", + "SkipLayerGuidance", + "AdaptiveProjectedGuidance", + "AdaptiveProjectedMixGuidance", + "MagnitudeAwareGuidance", + "ClassifierFreeZeroStarGuidance", + "AutoGuidance", + "SmoothedEnergyGuidance", + "PerturbedAttentionGuidance", + "TangentialClassifierFreeGuidance", + "FrequencyDecoupledGuidance" + ], + "QwenImageLayeredModularPipeline": [ + "ClassifierFreeGuidance", + "AdaptiveProjectedGuidance", + "AdaptiveProjectedMixGuidance", + "MagnitudeAwareGuidance", + "ClassifierFreeZeroStarGuidance", + "TangentialClassifierFreeGuidance", + "FrequencyDecoupledGuidance" + ], + "FluxModularPipeline": ["ClassifierFreeGuidance"], + "FluxKontextModularPipeline": ["ClassifierFreeGuidance"], + "Flux2KleinBaseModularPipeline": ["ClassifierFreeGuidance"], + "Flux3ModularPipeline": ["ClassifierFreeGuidance"], + "ZImageModularPipeline": [ + "ClassifierFreeGuidance", + "AdaptiveProjectedGuidance", + "AdaptiveProjectedMixGuidance", + "MagnitudeAwareGuidance", + "ClassifierFreeZeroStarGuidance", + "TangentialClassifierFreeGuidance", + "FrequencyDecoupledGuidance" + ], + "WanModularPipeline": [ + "ClassifierFreeGuidance", + "AdaptiveProjectedGuidance", + "AdaptiveProjectedMixGuidance", + "MagnitudeAwareGuidance", + "ClassifierFreeZeroStarGuidance", + "TangentialClassifierFreeGuidance", + "FrequencyDecoupledGuidance" + ], + "WanImage2VideoModularPipeline": [ + "ClassifierFreeGuidance", + "AdaptiveProjectedGuidance", + "AdaptiveProjectedMixGuidance", + "MagnitudeAwareGuidance", + "ClassifierFreeZeroStarGuidance", + "TangentialClassifierFreeGuidance", + "FrequencyDecoupledGuidance" + ] + } + }, + { + "action": "signal", + "target": "layers_config" + } + ], + "signalCompatibility": { + "values": { + "StableDiffusionXLModularPipeline": [ + "ClassifierFreeGuidance", + "SkipLayerGuidance", + "AdaptiveProjectedGuidance", + "AdaptiveProjectedMixGuidance", + "MagnitudeAwareGuidance", + "ClassifierFreeZeroStarGuidance", + "AutoGuidance", + "SmoothedEnergyGuidance", + "PerturbedAttentionGuidance", + "TangentialClassifierFreeGuidance", + "FrequencyDecoupledGuidance" + ], + "QwenImageModularPipeline": [ + "ClassifierFreeGuidance", + "SkipLayerGuidance", + "AdaptiveProjectedGuidance", + "AdaptiveProjectedMixGuidance", + "MagnitudeAwareGuidance", + "ClassifierFreeZeroStarGuidance", + "AutoGuidance", + "SmoothedEnergyGuidance", + "PerturbedAttentionGuidance", + "TangentialClassifierFreeGuidance", + "FrequencyDecoupledGuidance" + ], + "QwenImageEditModularPipeline": [ + "ClassifierFreeGuidance", + "SkipLayerGuidance", + "AdaptiveProjectedGuidance", + "AdaptiveProjectedMixGuidance", + "MagnitudeAwareGuidance", + "ClassifierFreeZeroStarGuidance", + "AutoGuidance", + "SmoothedEnergyGuidance", + "PerturbedAttentionGuidance", + "TangentialClassifierFreeGuidance", + "FrequencyDecoupledGuidance" + ], + "QwenImageEditPlusModularPipeline": [ + "ClassifierFreeGuidance", + "SkipLayerGuidance", + "AdaptiveProjectedGuidance", + "AdaptiveProjectedMixGuidance", + "MagnitudeAwareGuidance", + "ClassifierFreeZeroStarGuidance", + "AutoGuidance", + "SmoothedEnergyGuidance", + "PerturbedAttentionGuidance", + "TangentialClassifierFreeGuidance", + "FrequencyDecoupledGuidance" + ], + "QwenImageLayeredModularPipeline": [ + "ClassifierFreeGuidance", + "AdaptiveProjectedGuidance", + "AdaptiveProjectedMixGuidance", + "MagnitudeAwareGuidance", + "ClassifierFreeZeroStarGuidance", + "TangentialClassifierFreeGuidance", + "FrequencyDecoupledGuidance" + ], + "FluxModularPipeline": ["ClassifierFreeGuidance"], + "FluxKontextModularPipeline": ["ClassifierFreeGuidance"], + "Flux2KleinBaseModularPipeline": ["ClassifierFreeGuidance"], + "Flux3ModularPipeline": ["ClassifierFreeGuidance"], + "ZImageModularPipeline": [ + "ClassifierFreeGuidance", + "AdaptiveProjectedGuidance", + "AdaptiveProjectedMixGuidance", + "MagnitudeAwareGuidance", + "ClassifierFreeZeroStarGuidance", + "TangentialClassifierFreeGuidance", + "FrequencyDecoupledGuidance" + ], + "WanModularPipeline": [ + "ClassifierFreeGuidance", + "AdaptiveProjectedGuidance", + "AdaptiveProjectedMixGuidance", + "MagnitudeAwareGuidance", + "ClassifierFreeZeroStarGuidance", + "TangentialClassifierFreeGuidance", + "FrequencyDecoupledGuidance" + ], + "WanImage2VideoModularPipeline": [ + "ClassifierFreeGuidance", + "AdaptiveProjectedGuidance", + "AdaptiveProjectedMixGuidance", + "MagnitudeAwareGuidance", + "ClassifierFreeZeroStarGuidance", + "TangentialClassifierFreeGuidance", + "FrequencyDecoupledGuidance" + ] + } + } + }, + "layers_config": { + "label": "Layers", + "type": "layers_config", + "display": "input" + } + }, + "time": [0, 0, 0], + "memory": [0, 0, 0], + "cache": false + } + }, + { + "operation": { + "pipelineClass": "Flux3ModularPipeline", + "task": "edit_image", + "operationId": "diffusion.encode_prompt", + "nodeKey": "modules.ModularDiffusers.EncodePrompt", + "nodeType": "text_encoder", + "blockName": "text_encoder", + "decomposition": "block", + "support": "declared", + "ports": [ + { + "name": "prompt", + "semanticName": "prompt", + "direction": "input", + "roles": ["value"], + "types": ["string"], + "required": true, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "negative_prompt", + "semanticName": "negative_prompt", + "direction": "input", + "roles": ["value"], + "types": ["string"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "max_sequence_length", + "semanticName": "max_sequence_length", + "direction": "input", + "roles": ["value"], + "types": ["int"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "text_encoder_out_layers", + "semanticName": "text_encoder_out_layers", + "direction": "input", + "roles": ["value"], + "types": ["int"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "text_encoders", + "semanticName": "text_encoders", + "direction": "input", + "roles": ["component"], + "types": ["diffusers_auto_models"], + "required": true, + "hidden": false, + "semantics": { + "kind": "component", + "scope": "Flux3ModularPipeline", + "state": null, + "owner": "same_loader", + "members": [ + { + "name": "text_encoder", + "type": "transformers.models.qwen3_vl.modeling_qwen3_vl.Qwen3VLForConditionalGeneration" + }, + { + "name": "tokenizer", + "type": "transformers.models.auto.processing_auto.AutoProcessor" + } + ] + } + }, + { + "name": "embeddings", + "semanticName": "embeddings", + "direction": "output", + "roles": ["value"], + "types": ["embeddings"], + "required": false, + "hidden": false, + "semantics": { + "kind": "conditioning", + "scope": "Flux3ModularPipeline", + "state": null, + "owner": "same_loader", + "members": [] + } + }, + { + "name": "doc", + "semanticName": "doc", + "direction": "output", + "roles": ["value"], + "types": ["string"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "layout_conditioning", + "semanticName": "layout_conditioning", + "direction": "input", + "roles": ["value"], + "types": ["layout_conditioning"], + "required": false, + "hidden": false, + "semantics": { + "kind": "opaque", + "scope": "Flux3ModularPipeline", + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "reference_binding", + "semanticName": "reference_binding", + "direction": "input", + "roles": ["value"], + "types": ["reference_conditioning"], + "required": false, + "hidden": false, + "semantics": { + "kind": "opaque", + "scope": "Flux3ModularPipeline", + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "prompt_input", + "semanticName": "prompt", + "direction": "input", + "roles": ["value"], + "types": ["string"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + } + ], + "workflowId": "image_conditioned", + "binding": { + "values": {}, + "pipelineClass": "Flux3ModularPipeline" + } + }, + "node": { + "module": "modules.ModularDiffusers", + "action": "EncodePrompt", + "type": "custom", + "label": "Encode Prompt", + "category": "embedding", + "description": "", + "resizable": true, + "skipParamsCheck": true, + "style": {}, + "params": { + "text_encoders": { + "label": "Text Encoders *", + "required": true, + "type": "diffusers_auto_models", + "display": "input", + "onSignal": "update_node", + "signalCompatibility": { + "role": "text_encoders" + } + }, + "prompt_input": { + "label": "Prompt Input", + "type": "string", + "display": "input", + "description": "Optional connected prompt. When connected, this replaces the inline Prompt value." + }, + "guider": { + "label": "Guider", + "type": "custom_guider", + "display": "input", + "hidden": true, + "description": "Shared Diffusers guidance used by prompt encoding and denoising when the selected pipeline supports it." + }, + "layout_reference_summary": { + "label": "Bound Reference Summary", + "type": "string", + "display": "output", + "hidden": true, + "description": "Display-only ordered reference identities and actual preprocessing sizes from the current encoder cache." + }, + "prompt": { + "label": "Prompt *", + "type": "string", + "display": "textarea", + "default": "", + "value": "Change the background to a sunlit garden. Keep the main subject, its pose and its appearance unchanged.", + "fieldOptions": { + "exampleAttribution": "MoDiff task example" + } + }, + "negative_prompt": { + "label": "Negative Prompt", + "type": "string", + "display": "textarea", + "default": "" + }, + "max_sequence_length": { + "label": "Maximum Sequence Length", + "type": "int", + "default": 8192, + "min": 1, + "max": 8192, + "step": 1 + }, + "text_encoder_out_layers": { + "label": "Text Encoder Layers", + "type": "int", + "display": "select", + "default": [4, 8, 12, 16, 20, 24, 28, 32], + "options": [ + { + "schemaVersion": 1, + "value": "0", + "label": "0", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "1", + "label": "1", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "2", + "label": "2", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "3", + "label": "3", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "4", + "label": "4", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "5", + "label": "5", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "6", + "label": "6", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "7", + "label": "7", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "8", + "label": "8", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "9", + "label": "9", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "10", + "label": "10", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "11", + "label": "11", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "12", + "label": "12", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "13", + "label": "13", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "14", + "label": "14", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "15", + "label": "15", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "16", + "label": "16", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "17", + "label": "17", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "18", + "label": "18", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "19", + "label": "19", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "20", + "label": "20", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "21", + "label": "21", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "22", + "label": "22", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "23", + "label": "23", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "24", + "label": "24", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "25", + "label": "25", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "26", + "label": "26", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "27", + "label": "27", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "28", + "label": "28", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "29", + "label": "29", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "30", + "label": "30", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "31", + "label": "31", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "32", + "label": "32", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + } + ], + "fieldOptions": { + "multiple": true, + "tupleValue": true, + "tupleLength": 8 + } + }, + "embeddings": { + "label": "Text Embeddings", + "type": "embeddings", + "display": "output" + }, + "doc": { + "label": "Doc", + "type": "string", + "display": "output" + }, + "layout_conditioning": { + "label": "Layout Conditioning", + "type": "layout_conditioning", + "display": "layout", + "fieldOptions": { + "layoutConditioning": { + "schemaVersion": 2, + "sourceRegions": false, + "supportsBoundSourceRegions": true + } + }, + "default": null + }, + "reference_binding": { + "label": "Reference Binding", + "type": "reference_conditioning", + "display": "input", + "fieldOptions": { + "referenceBinding": { + "schemaVersion": 1, + "maxReferences": 10 + } + }, + "default": null + } + }, + "time": [0, 0, 0], + "memory": [0, 0, 0], + "cache": false + } + }, + { + "operation": { + "pipelineClass": "Flux3ModularPipeline", + "task": "edit_image", + "operationId": "diffusion.encode_image", + "nodeKey": "modules.ModularDiffusers.ImageEncode", + "nodeType": "vae_encoder", + "blockName": "vae_encoder", + "decomposition": "block", + "support": "declared", + "ports": [ + { + "name": "image", + "semanticName": "image", + "direction": "input", + "roles": ["value"], + "types": ["image"], + "required": true, + "hidden": false, + "semantics": { + "kind": "media", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "vae", + "semanticName": "vae", + "direction": "input", + "roles": ["component"], + "types": ["diffusers_auto_model"], + "required": true, + "hidden": false, + "semantics": { + "kind": "component", + "scope": "Flux3ModularPipeline", + "state": null, + "owner": "same_loader", + "members": [ + { + "name": "vae", + "type": "diffusers.models.autoencoders.autoencoder_kl_flux2.AutoencoderKLFlux2" + } + ] + } + }, + { + "name": "image_cond_latents", + "semanticName": "image_cond_latents", + "direction": "output", + "roles": ["value"], + "types": ["latents"], + "required": false, + "hidden": false, + "semantics": { + "kind": "latents", + "scope": "Flux3ModularPipeline", + "state": null, + "owner": "same_loader", + "members": [] + } + }, + { + "name": "reference_binding", + "semanticName": "reference_binding", + "direction": "output", + "roles": ["value"], + "types": ["reference_conditioning"], + "required": false, + "hidden": false, + "semantics": { + "kind": "opaque", + "scope": "Flux3ModularPipeline", + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "doc", + "semanticName": "doc", + "direction": "output", + "roles": ["value"], + "types": ["string"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + } + ], + "workflowId": "image_conditioned", + "binding": { + "values": {}, + "pipelineClass": "Flux3ModularPipeline" + } + }, + "node": { + "module": "modules.ModularDiffusers", + "action": "ImageEncode", + "type": "custom", + "label": "Encode Image", + "category": "sampler", + "description": "", + "resizable": true, + "skipParamsCheck": true, + "style": {}, + "params": { + "layout_reference_summary": { + "label": "Bound Reference Summary", + "type": "string", + "display": "output", + "hidden": true, + "description": "Display-only ordered reference identities and actual preprocessing sizes from this image encoding cache." + }, + "vae": { + "label": "VAE *", + "display": "input", + "type": "diffusers_auto_model", + "onSignal": "update_node", + "signalCompatibility": { + "role": "vae" + } + }, + "encode_summary_data": { + "label": "Encode summary", + "display": "output", + "type": "str", + "hidden": true + }, + "encode_summary": { + "label": "Encode summary", + "display": "ui_text", + "type": "text", + "dataSource": "encode_summary_data", + "hidden": true + }, + "image": { + "label": "Image *", + "type": "image", + "display": "input" + }, + "image_cond_latents": { + "label": "Reference Latents", + "type": "latents", + "display": "output" + }, + "reference_binding": { + "label": "Reference Binding", + "type": "reference_conditioning", + "display": "output", + "fieldOptions": { + "referenceBinding": { + "schemaVersion": 1, + "maxReferences": 10 + } + } + }, + "doc": { + "label": "Doc", + "type": "string", + "display": "output" + } + }, + "time": [0, 0, 0], + "memory": [0, 0, 0], + "cache": false + } + }, + { + "operation": { + "pipelineClass": "Flux3ModularPipeline", + "task": "edit_image", + "operationId": "diffusion.denoise", + "nodeKey": "modules.ModularDiffusers.Denoise", + "nodeType": "denoise", + "blockName": "denoise", + "decomposition": "block", + "support": "declared", + "ports": [ + { + "name": "embeddings", + "semanticName": "embeddings", + "direction": "input", + "roles": ["value"], + "types": ["embeddings"], + "required": true, + "hidden": false, + "semantics": { + "kind": "conditioning", + "scope": "Flux3ModularPipeline", + "state": null, + "owner": "same_loader", + "members": [] + } + }, + { + "name": "width", + "semanticName": "width", + "direction": "input", + "roles": ["value"], + "types": ["int"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "height", + "semanticName": "height", + "direction": "input", + "roles": ["value"], + "types": ["int"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "seed", + "semanticName": "seed", + "direction": "input", + "roles": ["value"], + "types": ["int"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "num_inference_steps", + "semanticName": "num_inference_steps", + "direction": "input", + "roles": ["value"], + "types": ["int"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "num_images_per_prompt", + "semanticName": "num_images_per_prompt", + "direction": "input", + "roles": ["value"], + "types": ["int"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "image_cond_latents", + "semanticName": "image_cond_latents", + "direction": "input", + "roles": ["value"], + "types": ["latents"], + "required": false, + "hidden": false, + "semantics": { + "kind": "latents", + "scope": "Flux3ModularPipeline", + "state": null, + "owner": "same_loader", + "members": [] + } + }, + { + "name": "unet", + "semanticName": "unet", + "direction": "input", + "roles": ["component"], + "types": ["diffusers_auto_model"], + "required": true, + "hidden": false, + "semantics": { + "kind": "component", + "scope": "Flux3ModularPipeline", + "state": null, + "owner": "same_loader", + "members": [ + { + "name": "transformer", + "type": "diffusers.models.transformers.transformer_flux3.Flux3Transformer2DModel" + } + ] + } + }, + { + "name": "scheduler", + "semanticName": "scheduler", + "direction": "input", + "roles": ["component"], + "types": ["diffusers_auto_model"], + "required": true, + "hidden": false, + "semantics": { + "kind": "component", + "scope": "Flux3ModularPipeline", + "state": null, + "owner": "same_loader", + "members": [ + { + "name": "scheduler", + "type": "diffusers.schedulers.scheduling_flow_match_euler_discrete.FlowMatchEulerDiscreteScheduler" + } + ] + } + }, + { + "name": "guider", + "semanticName": "guider", + "direction": "input", + "roles": ["component"], + "types": ["custom_guider"], + "required": false, + "hidden": false, + "semantics": { + "kind": "component", + "scope": "Flux3ModularPipeline", + "state": null, + "owner": "same_loader", + "members": [ + { + "name": "guider", + "type": "diffusers.guiders.classifier_free_guidance.ClassifierFreeGuidance" + } + ] + } + }, + { + "name": "latents", + "semanticName": "latents", + "direction": "output", + "roles": ["value"], + "types": ["latents"], + "required": false, + "hidden": false, + "semantics": { + "kind": "latents", + "scope": "Flux3ModularPipeline", + "state": null, + "owner": "same_loader", + "members": [] + } + }, + { + "name": "doc", + "semanticName": "doc", + "direction": "output", + "roles": ["value"], + "types": ["string"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "reference_binding", + "semanticName": "reference_binding", + "direction": "input", + "roles": ["value"], + "types": ["reference_conditioning"], + "required": false, + "hidden": false, + "semantics": { + "kind": "opaque", + "scope": "Flux3ModularPipeline", + "state": null, + "owner": "none", + "members": [] + } + } + ], + "workflowId": "image_conditioned", + "binding": { + "values": {}, + "pipelineClass": "Flux3ModularPipeline" + } + }, + "node": { + "module": "modules.ModularDiffusers", + "action": "Denoise", + "type": "custom", + "label": "Denoise", + "category": "sampler", + "description": "", + "resizable": true, + "skipParamsCheck": true, + "style": {}, + "params": { + "unet": { + "label": "Denoise Model *", + "display": "input", + "type": "diffusers_auto_model", + "required": true, + "onSignal": [ + "update_node", + { + "action": "signal", + "target": "guider" + }, + { + "action": "signal", + "target": "controlnet_bundle" + } + ], + "signalCompatibility": { + "role": "denoiser" + } + }, + "embeddings": { + "label": "Text Embeddings *", + "type": "embeddings", + "display": "input" + }, + "width": { + "label": "Width", + "type": "int", + "default": 1024, + "min": 64, + "step": 16, + "value": 1024 + }, + "height": { + "label": "Height", + "type": "int", + "default": 1024, + "min": 64, + "step": 16, + "value": 1024 + }, + "seed": { + "label": "Seed", + "type": "int", + "display": "random", + "default": 0, + "min": 0, + "max": 4294967295 + }, + "num_inference_steps": { + "label": "Steps", + "type": "int", + "display": "slider", + "default": 50, + "min": 1, + "max": 100, + "value": 50 + }, + "num_images_per_prompt": { + "label": "Images Per Prompt", + "type": "int", + "default": 1, + "min": 1, + "max": 8, + "step": 1 + }, + "image_cond_latents": { + "label": "Reference Latents", + "type": "latents", + "display": "input" + }, + "scheduler": { + "label": "Scheduler *", + "type": "diffusers_auto_model", + "display": "input", + "signalCompatibility": { + "role": "scheduler" + } + }, + "guider": { + "label": "Guider", + "type": "custom_guider", + "display": "input" + }, + "latents": { + "label": "Latents", + "type": "latents", + "display": "output" + }, + "doc": { + "label": "Doc", + "type": "string", + "display": "output" + }, + "reference_binding": { + "label": "Reference Binding", + "type": "reference_conditioning", + "display": "input", + "fieldOptions": { + "referenceBinding": { + "schemaVersion": 1, + "maxReferences": 10 + } + }, + "default": null + } + }, + "time": [0, 0, 0], + "memory": [0, 0, 0], + "cache": false + } + }, + { + "operation": { + "pipelineClass": "Flux3ModularPipeline", + "task": "edit_image", + "operationId": "diffusion.decode_latents", + "nodeKey": "modules.ModularDiffusers.DecodeLatents", + "nodeType": "decoder", + "blockName": "decode", + "decomposition": "block", + "support": "declared", + "ports": [ + { + "name": "latents", + "semanticName": "latents", + "direction": "input", + "roles": ["value"], + "types": ["latents"], + "required": true, + "hidden": false, + "semantics": { + "kind": "latents", + "scope": "Flux3ModularPipeline", + "state": null, + "owner": "same_loader", + "members": [] + } + }, + { + "name": "vae", + "semanticName": "vae", + "direction": "input", + "roles": ["component"], + "types": ["diffusers_auto_model"], + "required": true, + "hidden": false, + "semantics": { + "kind": "component", + "scope": "Flux3ModularPipeline", + "state": null, + "owner": "same_loader", + "members": [ + { + "name": "vae", + "type": "diffusers.models.autoencoders.autoencoder_kl_flux2.AutoencoderKLFlux2" + } + ] + } + }, + { + "name": "images", + "semanticName": "images", + "direction": "output", + "roles": ["value"], + "types": ["image"], + "required": false, + "hidden": false, + "semantics": { + "kind": "media", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "doc", + "semanticName": "doc", + "direction": "output", + "roles": ["value"], + "types": ["string"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + } + ], + "workflowId": "image_conditioned", + "binding": { + "values": {}, + "pipelineClass": "Flux3ModularPipeline" + } + }, + "node": { + "module": "modules.ModularDiffusers", + "action": "DecodeLatents", + "type": "custom", + "label": "Decode Latents", + "category": "sampler", + "description": "", + "resizable": true, + "skipParamsCheck": true, + "style": {}, + "params": { + "vae": { + "label": "VAE *", + "display": "input", + "type": "diffusers_auto_model", + "onSignal": "update_node", + "signalCompatibility": { + "role": "vae" + } + }, + "latents": { + "label": "Latents *", + "type": "latents", + "display": "input" + }, + "images": { + "label": "Images", + "type": "image", + "display": "output" + }, + "doc": { + "label": "Doc", + "type": "string", + "display": "output" + } + }, + "time": [0, 0, 0], + "memory": [0, 0, 0], + "cache": false + } + } + ], + "edges": [ + { + "source": "diffusion.load_models", + "sourceHandle": "text_encoders", + "target": "diffusion.encode_prompt", + "targetHandle": "text_encoders" + }, + { + "source": "diffusion.load_models", + "sourceHandle": "vae_out", + "target": "diffusion.encode_image", + "targetHandle": "vae" + }, + { + "source": "diffusion.load_models", + "sourceHandle": "scheduler", + "target": "diffusion.denoise", + "targetHandle": "scheduler" + }, + { + "source": "diffusion.load_models", + "sourceHandle": "unet_out", + "target": "diffusion.denoise", + "targetHandle": "unet" + }, + { + "source": "diffusion.load_models", + "sourceHandle": "vae_out", + "target": "diffusion.decode_latents", + "targetHandle": "vae" + }, + { + "source": "diffusion.encode_prompt", + "sourceHandle": "embeddings", + "target": "diffusion.denoise", + "targetHandle": "embeddings" + }, + { + "source": "diffusion.denoise", + "sourceHandle": "latents", + "target": "diffusion.decode_latents", + "targetHandle": "latents" + }, + { + "source": "diffusion.encode_image", + "sourceHandle": "image_cond_latents", + "target": "diffusion.denoise", + "targetHandle": "image_cond_latents" + }, + { + "source": "diffusion.guidance", + "sourceHandle": "guider_out", + "target": "diffusion.denoise", + "targetHandle": "guider" + }, + { + "source": "diffusion.encode_image", + "sourceHandle": "reference_binding", + "target": "diffusion.encode_prompt", + "targetHandle": "reference_binding" + }, + { + "source": "diffusion.encode_image", + "sourceHandle": "reference_binding", + "target": "diffusion.denoise", + "targetHandle": "reference_binding" + } + ], + "requiredInputs": [ + { + "operationId": "diffusion.encode_image", + "field": "image" + }, + { + "operationId": "diffusion.encode_prompt", + "field": "prompt" + } + ], + "sharedInputs": [], + "upstreamBlocks": ["text_encoder", "vae_encoder", "denoise", "decode"], + "authoring": { + "schemaVersion": 1, + "canonicalizationVersion": 1, + "id": "flux3-klein-base:edit-image:prompt-preview-authoring:v3", + "baseSpecId": "flux3-klein-base:modular:edit-image:v1", + "baseSpecContentHash": "studio-spec-v1-c69976c9", + "executionProfileIds": ["flux3-klein-base:modular"], + "roles": [ + ["models", "modules.ModularDiffusers.ModelsLoader", -720, -80], + ["prompt", "modules.ModularDiffusers.EncodePrompt", -360, -240], + ["denoise", "modules.ModularDiffusers.Denoise", 80, -80], + ["decode", "modules.ModularDiffusers.DecodeLatents", 440, -80], + ["preview", "modules.Image.Preview", 800, -80], + ["guider", "modules.ModularDiffusers.Guider", -360, 160], + ["loadImage", "modules.Image.Load", -720, 320], + ["imageEncode", "modules.ModularDiffusers.ImageEncode", -360, 320] + ], + "edges": [ + ["models", "text_encoders", "prompt", "text_encoders"], + ["models", "unet_out", "denoise", "unet"], + ["models", "scheduler", "denoise", "scheduler"], + ["models", "vae_out", "decode", "vae"], + ["prompt", "embeddings", "denoise", "embeddings"], + ["denoise", "latents", "decode", "latents"], + ["decode", "images", "preview", "image"], + ["guider", "guider_out", "denoise", "guider"], + ["models", "vae_out", "imageEncode", "vae"], + ["loadImage", "image", "imageEncode", "image"], + ["imageEncode", "image_cond_latents", "denoise", "image_cond_latents"], + ["imageEncode", "reference_binding", "prompt", "reference_binding"], + ["imageEncode", "reference_binding", "denoise", "reference_binding"] + ], + "bindings": [ + ["models", "model_type", "pipelineClass"], + ["models", "repo_id", "artifact"], + ["models", "revision", "defaultRevision"], + ["models", "dtype", "dtype"], + ["models", "device", "device"], + ["models", "auto_offload", "autoOffload"], + ["models", "offload_mode", "offloadMode"], + ["models", "trust_remote_code", "false"], + ["prompt", "prompt", "prompt"], + ["prompt", "negative_prompt", "negativePrompt"], + ["denoise", "width", "width"], + ["denoise", "height", "height"], + ["denoise", "seed", "seed"], + ["denoise", "num_inference_steps", "steps"], + ["prompt", "max_sequence_length", "maxSequenceLength"], + ["models", "weight_format", "weightFormat"], + ["guider", "guider", "classifierFreeGuidance"], + ["guider", "model_type", "pipelineClass"], + ["guider", "guidance_scale", "guidanceScale"], + ["loadImage", "file", "referenceImages"], + ["loadImage", "alpha_channel", "alphaMode"] + ], + "initialValues": [], + "ancillaryOperations": [ + { + "schemaVersion": 1, + "id": "flux3-klein-base:edit-image:prompt-preview-authoring:v3:preview", + "parent": { + "authoringRecipeId": "flux3-klein-base:edit-image:prompt-preview-authoring:v3", + "baseSpecId": "flux3-klein-base:modular:edit-image:v1", + "baseSpecContentHash": "studio-spec-v1-c69976c9", + "executionProfileId": "flux3-klein-base:modular", + "pipelineClass": "Flux3ModularPipeline", + "task": "edit_image" + }, + "executionPurpose": "explicit_preview", + "roles": [ + ["provider", "modules.HuggingFaceTransformers.LoadImageTextToTextModel", -720, -400], + ["proposal", "modules.HuggingFaceTransformers.GenerateImageVideoText", -360, -400] + ], + "edges": [["provider", "model", "proposal", "model"]], + "bindings": { + "owner": { + "role": "prompt", + "promptField": "prompt", + "layoutField": "layout_conditioning", + "referenceSource": { + "role": "loadImage", + "field": "image" + } + }, + "request": { + "role": "proposal", + "promptField": "prompt", + "layoutField": "layout_conditioning", + "imagesField": "images" + }, + "output": { + "role": "proposal", + "field": "proposal_summary" + } + }, + "initialValues": [ + [ + "provider", + "model_id", + { + "source": "hub", + "value": "black-forest-labs/flux-3-image-klein-pup" + } + ], + ["provider", "revision", "3f3edb52b2c55de0d49feab28598b68f7f8e4830"], + ["proposal", "operation", "enhance_prompt_append_details"] + ], + "fieldOverrides": [ + [ + "proposal", + "enhancement_max_new_tokens", + { + "hidden": false + } + ], + [ + "proposal", + "max_new_tokens", + { + "hidden": true + } + ] + ], + "adapter": { + "id": "transformers-prompt-enhancement-v1", + "declarationSha256": "sha256:2a3d4685988b418115008bbb95fb3e948097580c0bedd2940ea3fe1e40254dc2" + }, + "verification": { + "schemaVersion": 1, + "adapter": { + "id": "transformers-prompt-enhancement-v1", + "declarationSha256": "sha256:2a3d4685988b418115008bbb95fb3e948097580c0bedd2940ea3fe1e40254dc2" + }, + "runtimeInputs": { + "role": "provider", + "modelField": "model_id", + "revisionField": "revision", + "dtypeField": "dtype", + "deviceField": "device", + "quantizationField": "quantization_mode" + }, + "requestInputs": { + "role": "proposal", + "operationField": "operation", + "maxNewTokensField": "enhancement_max_new_tokens", + "minNewTokensField": "min_new_tokens", + "maxInputTokensField": "max_input_tokens", + "maxImagePixelsField": "max_image_pixels" + }, + "supportedPromptModes": ["t2i", "i2i"], + "systemPromptsSha256": "sha256:b5da3ed8bc04ab59dbdb747930f7dbff847e868903fed8028f85ee1a4ac82fb4", + "systemPromptSha256ByMode": { + "t2i": "8b235a421bce2213d11ada01f5a1244443dd72303ffbb4cc9e5a0d8b0de5ab6f", + "i2i": "95cec384d5b6d341caa9fb3f2c7ca45ee80c2364b3a95d4044aebf976f6dd3bf", + "t2i_bbox": "5f513d8ce5838732919f9e645507aa20ff373e88bf93132c768e063c9db3151f", + "i2i_bbox": "9ad10f947e401337cf155cac0518cc428159ef16f2f029f48aae2aaab8380a5e" + }, + "chatTemplateSha256": "sha256:a4aee8afcf2e0711942cf848899be66016f8d14a889ff9ede07bca099c28f715", + "modelReceipt": { + "schemaVersion": 1, + "library": "transformers", + "task": "image-video-to-text", + "source": { + "kind": "hub", + "repository": "black-forest-labs/flux-3-image-klein-pup", + "revision": "3f3edb52b2c55de0d49feab28598b68f7f8e4830" + }, + "loader": { + "preprocessorAutoClass": "AutoProcessor", + "modelAutoClass": "AutoModelForImageTextToText" + }, + "security": { + "localFilesOnly": true, + "trustRemoteCode": false, + "safetensorsOnly": true, + "hostedInference": false + }, + "runtime": { + "transformersVersion": "5.18.0", + "preprocessorClass": "Qwen3VLProcessor", + "modelClass": "Qwen3_5ForConditionalGeneration", + "modelType": "qwen3_5", + "architectures": ["Qwen3_5ForConditionalGeneration"] + } + }, + "quantizationRecipes": [ + { + "mode": "none" + }, + { + "mode": "bnb_4bit", + "quantType": "nf4", + "doubleQuant": true, + "computeDtype": "bfloat16", + "skipModules": ["lm_head", "model.visual"] + } + ], + "layoutRequestSuffixSha256": "sha256:5c48f090514be3472650c23ccd5f6cc19077bf68cd163338aaf6903f720a7561" + }, + "sourceRegions": false, + "layoutPolicy": "append-details-preserve-layout-v1", + "contentHash": "studio-ancillary-v1-a2b1b178" + } + ], + "contentHash": "studio-authoring-v1-de326cb6" + } + }, + { + "schemaVersion": 1, + "pipelineClass": "Flux3ModularPipeline", + "task": "edit_image", + "workflowId": "image_conditioned", + "nodes": [ + { + "operation": { + "pipelineClass": "Flux3ModularPipeline", + "task": "edit_image", + "operationId": "diffusion.load_models", + "nodeKey": "modules.ModularDiffusers.ModelsLoader", + "nodeType": "loader", + "blockName": null, + "decomposition": "loader", + "support": "declared", + "ports": [ + { + "name": "model_type", + "semanticName": "model_type", + "direction": "input", + "roles": ["value"], + "types": ["string"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "repo_id", + "semanticName": "repo_id", + "direction": "input", + "roles": ["value"], + "types": ["string"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "reviewed_variant", + "semanticName": "reviewed_variant", + "direction": "input", + "roles": ["value"], + "types": ["string"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "device", + "semanticName": "device", + "direction": "input", + "roles": ["value"], + "types": ["string"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "attention_backend", + "semanticName": "attention_backend", + "direction": "input", + "roles": ["value"], + "types": ["string"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "vae_slicing", + "semanticName": "vae_slicing", + "direction": "input", + "roles": ["value"], + "types": ["boolean"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "vae_tiling", + "semanticName": "vae_tiling", + "direction": "input", + "roles": ["value"], + "types": ["boolean"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "inpaint_compatibility", + "semanticName": "inpaint_compatibility", + "direction": "input", + "roles": ["value"], + "types": ["string"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "trust_remote_code", + "semanticName": "trust_remote_code", + "direction": "input", + "roles": ["value"], + "types": ["boolean"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "revision", + "semanticName": "revision", + "direction": "input", + "roles": ["value"], + "types": ["string"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "workflow_id", + "semanticName": "workflow_id", + "direction": "input", + "roles": ["value"], + "types": ["string"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "modiff_pipeline_identity", + "semanticName": "modiff_pipeline_identity", + "direction": "input", + "roles": ["value"], + "types": ["object"], + "required": false, + "hidden": true, + "semantics": { + "kind": "opaque", + "scope": "Flux3ModularPipeline", + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "auto_offload", + "semanticName": "auto_offload", + "direction": "input", + "roles": ["value"], + "types": ["boolean"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "offload_mode", + "semanticName": "offload_mode", + "direction": "input", + "roles": ["value"], + "types": ["string"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "weight_loading_mode", + "semanticName": "weight_loading_mode", + "direction": "input", + "roles": ["value"], + "types": ["string"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "weight_format", + "semanticName": "weight_format", + "direction": "input", + "roles": ["value"], + "types": ["string"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "unet", + "semanticName": "unet", + "direction": "input", + "roles": ["component"], + "types": ["diffusers_auto_model"], + "required": false, + "hidden": false, + "semantics": { + "kind": "component", + "scope": "Flux3ModularPipeline", + "state": null, + "owner": "same_loader", + "members": [ + { + "name": "transformer", + "type": "diffusers.models.transformers.transformer_flux3.Flux3Transformer2DModel" + } + ] + } + }, + { + "name": "vae", + "semanticName": "vae", + "direction": "input", + "roles": ["component"], + "types": ["diffusers_auto_model"], + "required": false, + "hidden": false, + "semantics": { + "kind": "component", + "scope": "Flux3ModularPipeline", + "state": null, + "owner": "same_loader", + "members": [ + { + "name": "vae", + "type": "diffusers.models.autoencoders.autoencoder_kl_flux2.AutoencoderKLFlux2" + } + ] + } + }, + { + "name": "controlnet", + "semanticName": "controlnet", + "direction": "input", + "roles": ["component"], + "types": ["diffusers_auto_model"], + "required": false, + "hidden": true, + "semantics": { + "kind": "component", + "scope": "Flux3ModularPipeline", + "state": null, + "owner": "same_loader", + "members": [] + } + }, + { + "name": "lora_list", + "semanticName": "lora_list", + "direction": "input", + "roles": ["value"], + "types": ["custom_lora"], + "required": false, + "hidden": false, + "semantics": { + "kind": "opaque", + "scope": "Flux3ModularPipeline", + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "text_encoders", + "semanticName": "text_encoders", + "direction": "output", + "roles": ["component"], + "types": ["diffusers_auto_models"], + "required": false, + "hidden": false, + "semantics": { + "kind": "component", + "scope": "Flux3ModularPipeline", + "state": null, + "owner": "same_loader", + "members": [ + { + "name": "text_encoder", + "type": "transformers.models.qwen3_vl.modeling_qwen3_vl.Qwen3VLForConditionalGeneration" + }, + { + "name": "tokenizer", + "type": "transformers.models.auto.processing_auto.AutoProcessor" + } + ] + } + }, + { + "name": "unet_out", + "semanticName": "unet_out", + "direction": "output", + "roles": ["component"], + "types": ["diffusers_auto_model"], + "required": false, + "hidden": false, + "semantics": { + "kind": "component", + "scope": "Flux3ModularPipeline", + "state": null, + "owner": "same_loader", + "members": [ + { + "name": "transformer", + "type": "diffusers.models.transformers.transformer_flux3.Flux3Transformer2DModel" + } + ] + } + }, + { + "name": "vae_out", + "semanticName": "vae_out", + "direction": "output", + "roles": ["component"], + "types": ["diffusers_auto_model"], + "required": false, + "hidden": false, + "semantics": { + "kind": "component", + "scope": "Flux3ModularPipeline", + "state": null, + "owner": "same_loader", + "members": [ + { + "name": "vae", + "type": "diffusers.models.autoencoders.autoencoder_kl_flux2.AutoencoderKLFlux2" + } + ] + } + }, + { + "name": "scheduler", + "semanticName": "scheduler", + "direction": "output", + "roles": ["component"], + "types": ["diffusers_auto_model"], + "required": false, + "hidden": false, + "semantics": { + "kind": "component", + "scope": "Flux3ModularPipeline", + "state": null, + "owner": "same_loader", + "members": [ + { + "name": "scheduler", + "type": "diffusers.schedulers.scheduling_flow_match_euler_discrete.FlowMatchEulerDiscreteScheduler" + } + ] + } + }, + { + "name": "image_encoder", + "semanticName": "image_encoder", + "direction": "output", + "roles": ["component"], + "types": ["diffusers_auto_model"], + "required": false, + "hidden": true, + "semantics": { + "kind": "component", + "scope": "Flux3ModularPipeline", + "state": null, + "owner": "same_loader", + "members": [] + } + }, + { + "name": "pipeline_components", + "semanticName": "pipeline_components", + "direction": "output", + "roles": ["component"], + "types": ["diffusers_modular_pipeline_components"], + "required": false, + "hidden": false, + "semantics": { + "kind": "component", + "scope": "Flux3ModularPipeline", + "state": null, + "owner": "same_loader", + "members": [ + { + "name": "guider", + "type": "diffusers.guiders.classifier_free_guidance.ClassifierFreeGuidance" + }, + { + "name": "image_processor", + "type": "diffusers.modular_pipelines.flux3.image_processor.Flux3ImageProcessor" + }, + { + "name": "scheduler", + "type": "diffusers.schedulers.scheduling_flow_match_euler_discrete.FlowMatchEulerDiscreteScheduler" + }, + { + "name": "text_encoder", + "type": "transformers.models.qwen3_vl.modeling_qwen3_vl.Qwen3VLForConditionalGeneration" + }, + { + "name": "tokenizer", + "type": "transformers.models.auto.processing_auto.AutoProcessor" + }, + { + "name": "transformer", + "type": "diffusers.models.transformers.transformer_flux3.Flux3Transformer2DModel" + }, + { + "name": "vae", + "type": "diffusers.models.autoencoders.autoencoder_kl_flux2.AutoencoderKLFlux2" + } + ] + } + }, + { + "name": "quant_config", + "semanticName": "quant_config", + "direction": "input", + "roles": ["value"], + "types": ["quant_config"], + "required": false, + "hidden": false, + "semantics": { + "kind": "opaque", + "scope": "Flux3ModularPipeline", + "state": null, + "owner": "none", + "members": [] + } + } + ], + "workflowId": "image_conditioned", + "binding": { + "values": { + "model_type": "Flux3ModularPipeline" + }, + "pipelineClass": "Flux3ModularPipeline" + } + }, + "node": { + "module": "modules.ModularDiffusers", + "action": "ModelsLoader", + "type": "custom", + "label": "Load Models", + "category": "loader", + "description": "", + "resizable": true, + "skipParamsCheck": true, + "style": {}, + "params": { + "model_type": { + "label": "Pipeline Type", + "type": "string", + "options": { + "": { + "schemaVersion": 1, + "value": "", + "label": "", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "DummyCustomPipeline": { + "schemaVersion": 1, + "value": "DummyCustomPipeline", + "label": "Custom", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "StableDiffusionXLModularPipeline": { + "schemaVersion": 1, + "value": "StableDiffusionXLModularPipeline", + "label": "Stable Diffusion XL", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "QwenImageModularPipeline": { + "schemaVersion": 1, + "value": "QwenImageModularPipeline", + "label": "Qwen-Image-2512", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "QwenImageEditModularPipeline": { + "schemaVersion": 1, + "value": "QwenImageEditModularPipeline", + "label": "Qwen-Image-Edit", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "QwenImageEditPlusModularPipeline": { + "schemaVersion": 1, + "value": "QwenImageEditPlusModularPipeline", + "label": "Qwen-Image-Edit-2511", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "QwenImageLayeredModularPipeline": { + "schemaVersion": 1, + "value": "QwenImageLayeredModularPipeline", + "label": "Qwen-Image-Layered", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "FluxModularPipeline": { + "schemaVersion": 1, + "value": "FluxModularPipeline", + "label": "Flux", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "FluxKontextModularPipeline": { + "schemaVersion": 1, + "value": "FluxKontextModularPipeline", + "label": "Flux Kontext", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "Flux2ModularPipeline": { + "schemaVersion": 1, + "value": "Flux2ModularPipeline", + "label": "Flux 2", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "Flux2KleinModularPipeline": { + "schemaVersion": 1, + "value": "Flux2KleinModularPipeline", + "label": "Flux 2 Klein Distilled", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "Flux2KleinBaseModularPipeline": { + "schemaVersion": 1, + "value": "Flux2KleinBaseModularPipeline", + "label": "Flux 2 Klein Base", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "Flux3ModularPipeline": { + "schemaVersion": 1, + "value": "Flux3ModularPipeline", + "label": "FLUX 3 Image Klein Base", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "Flux3DistilledModularPipeline": { + "schemaVersion": 1, + "value": "Flux3DistilledModularPipeline", + "label": "FLUX 3 Image Klein", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "ZImageModularPipeline": { + "schemaVersion": 1, + "value": "ZImageModularPipeline", + "label": "Z-Image", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "WanModularPipeline": { + "schemaVersion": 1, + "value": "WanModularPipeline", + "label": "WAN2 T2V", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "WanImage2VideoModularPipeline": { + "schemaVersion": 1, + "value": "WanImage2VideoModularPipeline", + "label": "WAN2 I2V", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "MiniMaxMusic3ModularPipeline": { + "schemaVersion": 1, + "value": "MiniMaxMusic3ModularPipeline", + "label": "MiniMax Music 3", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "MiniMaxH3ModularPipeline": { + "schemaVersion": 1, + "value": "MiniMaxH3ModularPipeline", + "label": "MiniMax H3", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "AnimaModularPipeline": { + "schemaVersion": 1, + "value": "AnimaModularPipeline", + "label": "Anima", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "ErnieImageModularPipeline": { + "schemaVersion": 1, + "value": "ErnieImageModularPipeline", + "label": "ERNIE Image Turbo", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "HeliosModularPipeline": { + "schemaVersion": 1, + "value": "HeliosModularPipeline", + "label": "Helios", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "HeliosPyramidModularPipeline": { + "schemaVersion": 1, + "value": "HeliosPyramidModularPipeline", + "label": "Helios Pyramid", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "HeliosPyramidDistilledModularPipeline": { + "schemaVersion": 1, + "value": "HeliosPyramidDistilledModularPipeline", + "label": "Helios Pyramid Distilled", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "HunyuanVideo15ModularPipeline": { + "schemaVersion": 1, + "value": "HunyuanVideo15ModularPipeline", + "label": "HunyuanVideo 1.5", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "WanAnimate2ModularPipeline": { + "schemaVersion": 1, + "value": "WanAnimate2ModularPipeline", + "label": "Wan Animate 2", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "WanAnimate2DistilledModularPipeline": { + "schemaVersion": 1, + "value": "WanAnimate2DistilledModularPipeline", + "label": "Wan Animate 2 Distilled", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "Cosmos3OmniModularPipeline": { + "schemaVersion": 1, + "value": "Cosmos3OmniModularPipeline", + "label": "Cosmos 3 Nano", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "Cosmos3DistilledModularPipeline": { + "schemaVersion": 1, + "value": "Cosmos3DistilledModularPipeline", + "label": "Cosmos 3 Distilled", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "Ideogram4ModularPipeline": { + "schemaVersion": 1, + "value": "Ideogram4ModularPipeline", + "label": "Ideogram 4 (Contract only)", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "Krea2ModularPipeline": { + "schemaVersion": 1, + "value": "Krea2ModularPipeline", + "label": "Krea 2 (Contract only)", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "Krea2TurboModularPipeline": { + "schemaVersion": 1, + "value": "Krea2TurboModularPipeline", + "label": "Krea 2 Turbo (Contract only)", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "StableDiffusion3ModularPipeline": { + "schemaVersion": 1, + "value": "StableDiffusion3ModularPipeline", + "label": "Stable Diffusion 3 (Contract only)", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "LTX25ModularPipeline": { + "schemaVersion": 1, + "value": "LTX25ModularPipeline", + "label": "LTX-2.5 (Contract only)", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + } + }, + "onChange": "set_filters", + "description": "Selects the Modular Diffusers pipeline class. This filters compatible checkpoints and publishes the component contract used by connected nodes; it is not the model checkpoint itself.", + "value": "Flux3ModularPipeline" + }, + "repo_id": { + "label": "Repository ID", + "display": "modelselect", + "type": "string", + "value": { + "source": "hub", + "value": "black-forest-labs/flux-3-image-klein-base" + }, + "fieldOptions": { + "noValidation": true, + "sources": ["hub", "local"], + "filter": { + "hub": { + "className": ["Flux3ModularPipeline"] + } + } + }, + "onChange": "refresh_pipeline_identity" + }, + "reviewed_variant": { + "label": "Model", + "type": "string", + "value": "black-forest-labs/flux-3-image-klein-base", + "options": [ + { + "schemaVersion": 1, + "value": "black-forest-labs/flux-3-image-klein-base", + "label": "black-forest-labs/flux-3-image-klein-base", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + } + ], + "hidden": true, + "fieldOptions": { + "controlTier": "essential" + }, + "description": "Select an immutable, reviewed checkpoint for this exact Modular Diffusers pipeline family. Changing it does not replace the workflow graph or reset its parameters." + }, + "dtype": { + "label": "dtype", + "options": [ + { + "schemaVersion": 1, + "value": "float32", + "label": "float32", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "float16", + "label": "float16", + "compatibility": "incompatible", + "availability": "unavailable", + "installationState": "unavailable", + "disabledReason": "float16 is not supported by the active runtime." + }, + { + "schemaVersion": 1, + "value": "bfloat16", + "label": "bfloat16", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + } + ], + "value": "bfloat16" + }, + "device": { + "label": "Device", + "type": "string", + "value": "cpu:0", + "options": { + "cpu:0": { + "schemaVersion": 1, + "value": "cpu:0", + "label": "cpu:0", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "cpu": { + "schemaVersion": 1, + "value": "cpu", + "label": "cpu", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + } + } + }, + "attention_backend": { + "label": "Attention Backend", + "type": "string", + "default": "inherit", + "options": [ + { + "schemaVersion": 1, + "value": "inherit", + "label": "inherit", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "auto", + "label": "auto", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "native", + "label": "native", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "_native_math", + "label": "_native_math", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + } + ], + "description": "Inherit preserves existing native component defaults; explicit choices use the ordinary Diffusers attention API." + }, + "vae_slicing": { + "label": "VAE Slicing", + "type": "boolean", + "default": null, + "hidden": true, + "description": "An unset policy preserves the native VAE configuration; templates may bind an explicit boolean." + }, + "vae_tiling": { + "label": "VAE Tiling", + "type": "boolean", + "default": null, + "hidden": true, + "description": "An unset policy preserves the native VAE configuration; templates may bind an explicit boolean." + }, + "inpaint_compatibility": { + "label": "Inpaint Compatibility", + "type": "string", + "default": "native", + "hidden": true, + "options": [ + { + "schemaVersion": 1, + "value": "native", + "label": "native", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "whole_v1", + "label": "whole_v1", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + } + ], + "description": "Technical compatibility selection for the reviewed Qwen Edit inpainting candidate; existing nodes retain native policy." + }, + "trust_remote_code": { + "label": "Trust Remote Code", + "type": "boolean", + "value": false, + "description": "Repository code execution is disabled; keep this off for contract preview.", + "onChange": "refresh_pipeline_identity" + }, + "revision": { + "label": "Revision", + "type": "string", + "value": "1469d27cfb9bb1bd81d3a93f5a023b39dbf136e4", + "description": "Required exact 40-character commit hash for Hub custom contracts.", + "onChange": "refresh_pipeline_identity" + }, + "workflow_id": { + "label": "Reviewed Workflow", + "type": "string", + "value": "image_conditioned", + "hidden": true, + "description": "Exact reviewed component partition selected by a first-party Cluster Node." + }, + "modiff_pipeline_identity": { + "label": "Custom Pipeline Identity", + "type": "object", + "value": null, + "hidden": true + }, + "refresh_pipeline_identity_button": { + "label": "Review and Refresh Custom Contract", + "display": "ui_button", + "value": false, + "hidden": true, + "onChange": "refresh_pipeline_identity" + }, + "auto_offload": { + "label": "Enable Auto Offload", + "type": "boolean", + "value": true + }, + "offload_mode": { + "label": "Offload Mode", + "type": "string", + "options": [ + { + "schemaVersion": 1, + "value": "auto_cpu", + "label": "auto_cpu", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "none", + "label": "none", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "model_cpu", + "label": "model_cpu", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "group_cpu", + "label": "group_cpu", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "group_disk", + "label": "group_disk", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + } + ], + "value": "model_cpu", + "default": "model_cpu" + }, + "weight_loading_mode": { + "label": "Weight Loading", + "type": "string", + "default": "cpu", + "options": [ + { + "schemaVersion": 1, + "value": "cpu", + "label": "cpu", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "cuda", + "label": "cuda", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + } + ], + "fieldOptions": { + "controlTier": "advanced" + }, + "description": "Load weights on CPU or CUDA before disk offload. CUDA loading needs room for a complete component and is available only for supported models." + }, + "weight_format": { + "label": "Weight Format", + "type": "string", + "default": "native", + "options": [ + { + "schemaVersion": 1, + "value": "native", + "label": "native", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "fp8r", + "label": "fp8r", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "nvfp4", + "label": "nvfp4", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + } + ], + "hidden": false, + "fieldOptions": { + "controlTier": "advanced" + }, + "description": "Select a backend-declared immutable component format. Missing reviewed files must be installed through Model Manager." + }, + "unet": { + "label": "Denoise Model", + "display": "input", + "type": "diffusers_auto_model", + "hidden": false + }, + "vae": { + "label": "VAE", + "display": "input", + "type": "diffusers_auto_model", + "hidden": false + }, + "controlnet": { + "label": "ControlNet", + "display": "input", + "type": "diffusers_auto_model", + "hidden": true + }, + "lora_list": { + "label": "Lora", + "display": "input", + "type": "custom_lora" + }, + "text_encoders": { + "label": "Text Encoders", + "display": "output", + "type": "diffusers_auto_models", + "signal": { + "direction": "output", + "origin": "modiff_pipeline_identity", + "value": "Flux3ModularPipeline" + }, + "connectionRole": "text_encoders", + "hidden": false + }, + "unet_out": { + "label": "Denoise Model", + "display": "output", + "type": "diffusers_auto_model", + "signal": { + "direction": "output", + "origin": "modiff_pipeline_identity", + "value": "Flux3ModularPipeline" + }, + "connectionRole": "denoiser", + "hidden": false + }, + "vae_out": { + "label": "VAE", + "display": "output", + "type": "diffusers_auto_model", + "signal": { + "direction": "output", + "origin": "modiff_pipeline_identity", + "value": "Flux3ModularPipeline" + }, + "connectionRole": "vae", + "hidden": false + }, + "scheduler": { + "label": "Scheduler", + "display": "output", + "type": "diffusers_auto_model", + "signal": { + "direction": "output", + "origin": "modiff_pipeline_identity", + "value": "Flux3ModularPipeline" + }, + "connectionRole": "scheduler", + "hidden": false + }, + "image_encoder": { + "label": "Image Encoder", + "display": "output", + "type": "diffusers_auto_model", + "signal": { + "direction": "output", + "origin": "modiff_pipeline_identity", + "value": "Flux3ModularPipeline" + }, + "connectionRole": "image_encoder", + "hidden": true + }, + "pipeline_components": { + "label": "Pipeline Components", + "display": "output", + "type": "diffusers_modular_pipeline_components", + "signal": { + "direction": "output", + "origin": "modiff_pipeline_identity", + "value": "Flux3ModularPipeline" + }, + "connectionRole": "pipeline_components", + "hidden": false + }, + "quant_config": { + "label": "Quant Config", + "display": "input", + "type": "quant_config" + } + }, + "time": [0, 0, 0], + "memory": [0, 0, 0], + "cache": false + } + }, + { + "operation": { + "pipelineClass": "Flux3ModularPipeline", + "task": "edit_image", + "operationId": "diffusion.guidance", + "nodeKey": "modules.ModularDiffusers.Guider", + "nodeType": "guidance", + "blockName": null, + "decomposition": "bundle", + "support": "declared", + "ports": [ + { + "name": "model_type", + "semanticName": "model_type", + "direction": "input", + "roles": ["value"], + "types": ["string"], + "required": false, + "hidden": true, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "guider", + "semanticName": "guider", + "direction": "input", + "roles": ["value"], + "types": ["string"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "guidance_scale", + "semanticName": "guidance_scale", + "direction": "input", + "roles": ["value"], + "types": ["float"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "guidance_rescale", + "semanticName": "guidance_rescale", + "direction": "input", + "roles": ["value"], + "types": ["float"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "use_original_formulation", + "semanticName": "use_original_formulation", + "direction": "input", + "roles": ["value"], + "types": ["boolean"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "enabled", + "semanticName": "enabled", + "direction": "input", + "roles": ["value"], + "types": ["boolean"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "start", + "semanticName": "start", + "direction": "input", + "roles": ["value"], + "types": ["float"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "stop", + "semanticName": "stop", + "direction": "input", + "roles": ["value"], + "types": ["float"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "guider_out", + "semanticName": "guider_out", + "direction": "output", + "roles": ["component"], + "types": ["custom_guider"], + "required": false, + "hidden": false, + "semantics": { + "kind": "component", + "scope": "Flux3ModularPipeline", + "state": null, + "owner": "same_loader", + "members": [] + } + }, + { + "name": "layers_config", + "semanticName": "layers_config", + "direction": "input", + "roles": ["value"], + "types": ["layers_config"], + "required": false, + "hidden": false, + "semantics": { + "kind": "opaque", + "scope": "Flux3ModularPipeline", + "state": null, + "owner": "none", + "members": [] + } + } + ], + "workflowId": "image_conditioned", + "binding": { + "values": { + "model_type": "Flux3ModularPipeline" + }, + "pipelineClass": "Flux3ModularPipeline" + } + }, + "node": { + "module": "modules.ModularDiffusers", + "action": "Guider", + "type": "custom", + "label": "Guidance", + "category": "sampler", + "description": "", + "resizable": true, + "skipParamsCheck": true, + "style": {}, + "params": { + "model_type": { + "type": "string", + "default": "", + "hidden": true, + "value": "Flux3ModularPipeline" + }, + "guider": { + "label": "Guider", + "fieldOptions": { + "loading": true + }, + "type": "string", + "options": [ + { + "schemaVersion": 1, + "value": "ClassifierFreeGuidance", + "label": "ClassifierFreeGuidance", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + } + ], + "value": "ClassifierFreeGuidance", + "onChange": [ + "updateNode", + { + "SkipLayerGuidance": ["layers_config"], + "AutoGuidance": ["layers_config"], + "SmoothedEnergyGuidance": ["layers_config"], + "PerturbedAttentionGuidance": ["layers_config"] + } + ] + }, + "guidance_scale": { + "label": "Guidance Scale", + "type": "float", + "display": "slider", + "value": 3.5, + "min": 1.0, + "max": 20.0, + "step": 0.1 + }, + "guidance_rescale": { + "label": "Guidance Rescale", + "type": "float", + "display": "slider", + "value": 0.0, + "min": 0.0, + "max": 10.0, + "step": 0.1 + }, + "use_original_formulation": { + "label": "Original Formulation", + "type": "boolean", + "value": false + }, + "enabled": { + "label": "Enabled", + "type": "boolean", + "value": true + }, + "start": { + "label": "Start", + "type": "float", + "display": "slider", + "value": 0.0, + "min": 0.0, + "max": 1.0, + "step": 0.01 + }, + "stop": { + "label": "Stop", + "type": "float", + "display": "slider", + "value": 1.0, + "min": 0.01, + "max": 1.0, + "step": 0.01 + }, + "guider_out": { + "label": "Guider", + "display": "output", + "type": "custom_guider", + "onSignal": [ + { + "action": "value", + "target": "model_type" + }, + { + "action": "value", + "target": "guider", + "prop": "options", + "data": { + "StableDiffusionXLModularPipeline": [ + "ClassifierFreeGuidance", + "SkipLayerGuidance", + "AdaptiveProjectedGuidance", + "AdaptiveProjectedMixGuidance", + "MagnitudeAwareGuidance", + "ClassifierFreeZeroStarGuidance", + "AutoGuidance", + "SmoothedEnergyGuidance", + "PerturbedAttentionGuidance", + "TangentialClassifierFreeGuidance", + "FrequencyDecoupledGuidance" + ], + "QwenImageModularPipeline": [ + "ClassifierFreeGuidance", + "SkipLayerGuidance", + "AdaptiveProjectedGuidance", + "AdaptiveProjectedMixGuidance", + "MagnitudeAwareGuidance", + "ClassifierFreeZeroStarGuidance", + "AutoGuidance", + "SmoothedEnergyGuidance", + "PerturbedAttentionGuidance", + "TangentialClassifierFreeGuidance", + "FrequencyDecoupledGuidance" + ], + "QwenImageEditModularPipeline": [ + "ClassifierFreeGuidance", + "SkipLayerGuidance", + "AdaptiveProjectedGuidance", + "AdaptiveProjectedMixGuidance", + "MagnitudeAwareGuidance", + "ClassifierFreeZeroStarGuidance", + "AutoGuidance", + "SmoothedEnergyGuidance", + "PerturbedAttentionGuidance", + "TangentialClassifierFreeGuidance", + "FrequencyDecoupledGuidance" + ], + "QwenImageEditPlusModularPipeline": [ + "ClassifierFreeGuidance", + "SkipLayerGuidance", + "AdaptiveProjectedGuidance", + "AdaptiveProjectedMixGuidance", + "MagnitudeAwareGuidance", + "ClassifierFreeZeroStarGuidance", + "AutoGuidance", + "SmoothedEnergyGuidance", + "PerturbedAttentionGuidance", + "TangentialClassifierFreeGuidance", + "FrequencyDecoupledGuidance" + ], + "QwenImageLayeredModularPipeline": [ + "ClassifierFreeGuidance", + "AdaptiveProjectedGuidance", + "AdaptiveProjectedMixGuidance", + "MagnitudeAwareGuidance", + "ClassifierFreeZeroStarGuidance", + "TangentialClassifierFreeGuidance", + "FrequencyDecoupledGuidance" + ], + "FluxModularPipeline": ["ClassifierFreeGuidance"], + "FluxKontextModularPipeline": ["ClassifierFreeGuidance"], + "Flux2KleinBaseModularPipeline": ["ClassifierFreeGuidance"], + "Flux3ModularPipeline": ["ClassifierFreeGuidance"], + "ZImageModularPipeline": [ + "ClassifierFreeGuidance", + "AdaptiveProjectedGuidance", + "AdaptiveProjectedMixGuidance", + "MagnitudeAwareGuidance", + "ClassifierFreeZeroStarGuidance", + "TangentialClassifierFreeGuidance", + "FrequencyDecoupledGuidance" + ], + "WanModularPipeline": [ + "ClassifierFreeGuidance", + "AdaptiveProjectedGuidance", + "AdaptiveProjectedMixGuidance", + "MagnitudeAwareGuidance", + "ClassifierFreeZeroStarGuidance", + "TangentialClassifierFreeGuidance", + "FrequencyDecoupledGuidance" + ], + "WanImage2VideoModularPipeline": [ + "ClassifierFreeGuidance", + "AdaptiveProjectedGuidance", + "AdaptiveProjectedMixGuidance", + "MagnitudeAwareGuidance", + "ClassifierFreeZeroStarGuidance", + "TangentialClassifierFreeGuidance", + "FrequencyDecoupledGuidance" + ] + } + }, + { + "action": "signal", + "target": "layers_config" + } + ], + "signalCompatibility": { + "values": { + "StableDiffusionXLModularPipeline": [ + "ClassifierFreeGuidance", + "SkipLayerGuidance", + "AdaptiveProjectedGuidance", + "AdaptiveProjectedMixGuidance", + "MagnitudeAwareGuidance", + "ClassifierFreeZeroStarGuidance", + "AutoGuidance", + "SmoothedEnergyGuidance", + "PerturbedAttentionGuidance", + "TangentialClassifierFreeGuidance", + "FrequencyDecoupledGuidance" + ], + "QwenImageModularPipeline": [ + "ClassifierFreeGuidance", + "SkipLayerGuidance", + "AdaptiveProjectedGuidance", + "AdaptiveProjectedMixGuidance", + "MagnitudeAwareGuidance", + "ClassifierFreeZeroStarGuidance", + "AutoGuidance", + "SmoothedEnergyGuidance", + "PerturbedAttentionGuidance", + "TangentialClassifierFreeGuidance", + "FrequencyDecoupledGuidance" + ], + "QwenImageEditModularPipeline": [ + "ClassifierFreeGuidance", + "SkipLayerGuidance", + "AdaptiveProjectedGuidance", + "AdaptiveProjectedMixGuidance", + "MagnitudeAwareGuidance", + "ClassifierFreeZeroStarGuidance", + "AutoGuidance", + "SmoothedEnergyGuidance", + "PerturbedAttentionGuidance", + "TangentialClassifierFreeGuidance", + "FrequencyDecoupledGuidance" + ], + "QwenImageEditPlusModularPipeline": [ + "ClassifierFreeGuidance", + "SkipLayerGuidance", + "AdaptiveProjectedGuidance", + "AdaptiveProjectedMixGuidance", + "MagnitudeAwareGuidance", + "ClassifierFreeZeroStarGuidance", + "AutoGuidance", + "SmoothedEnergyGuidance", + "PerturbedAttentionGuidance", + "TangentialClassifierFreeGuidance", + "FrequencyDecoupledGuidance" + ], + "QwenImageLayeredModularPipeline": [ + "ClassifierFreeGuidance", + "AdaptiveProjectedGuidance", + "AdaptiveProjectedMixGuidance", + "MagnitudeAwareGuidance", + "ClassifierFreeZeroStarGuidance", + "TangentialClassifierFreeGuidance", + "FrequencyDecoupledGuidance" + ], + "FluxModularPipeline": ["ClassifierFreeGuidance"], + "FluxKontextModularPipeline": ["ClassifierFreeGuidance"], + "Flux2KleinBaseModularPipeline": ["ClassifierFreeGuidance"], + "Flux3ModularPipeline": ["ClassifierFreeGuidance"], + "ZImageModularPipeline": [ + "ClassifierFreeGuidance", + "AdaptiveProjectedGuidance", + "AdaptiveProjectedMixGuidance", + "MagnitudeAwareGuidance", + "ClassifierFreeZeroStarGuidance", + "TangentialClassifierFreeGuidance", + "FrequencyDecoupledGuidance" + ], + "WanModularPipeline": [ + "ClassifierFreeGuidance", + "AdaptiveProjectedGuidance", + "AdaptiveProjectedMixGuidance", + "MagnitudeAwareGuidance", + "ClassifierFreeZeroStarGuidance", + "TangentialClassifierFreeGuidance", + "FrequencyDecoupledGuidance" + ], + "WanImage2VideoModularPipeline": [ + "ClassifierFreeGuidance", + "AdaptiveProjectedGuidance", + "AdaptiveProjectedMixGuidance", + "MagnitudeAwareGuidance", + "ClassifierFreeZeroStarGuidance", + "TangentialClassifierFreeGuidance", + "FrequencyDecoupledGuidance" + ] + } + } + }, + "layers_config": { + "label": "Layers", + "type": "layers_config", + "display": "input" + } + }, + "time": [0, 0, 0], + "memory": [0, 0, 0], + "cache": false + } + }, + { + "operation": { + "pipelineClass": "Flux3ModularPipeline", + "task": "edit_image", + "operationId": "diffusion.encode_prompt", + "nodeKey": "modules.ModularDiffusers.EncodePrompt", + "nodeType": "text_encoder", + "blockName": "text_encoder", + "decomposition": "block", + "support": "declared", + "ports": [ + { + "name": "prompt", + "semanticName": "prompt", + "direction": "input", + "roles": ["value"], + "types": ["string"], + "required": true, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "negative_prompt", + "semanticName": "negative_prompt", + "direction": "input", + "roles": ["value"], + "types": ["string"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "max_sequence_length", + "semanticName": "max_sequence_length", + "direction": "input", + "roles": ["value"], + "types": ["int"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "text_encoder_out_layers", + "semanticName": "text_encoder_out_layers", + "direction": "input", + "roles": ["value"], + "types": ["int"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "text_encoders", + "semanticName": "text_encoders", + "direction": "input", + "roles": ["component"], + "types": ["diffusers_auto_models"], + "required": true, + "hidden": false, + "semantics": { + "kind": "component", + "scope": "Flux3ModularPipeline", + "state": null, + "owner": "same_loader", + "members": [ + { + "name": "text_encoder", + "type": "transformers.models.qwen3_vl.modeling_qwen3_vl.Qwen3VLForConditionalGeneration" + }, + { + "name": "tokenizer", + "type": "transformers.models.auto.processing_auto.AutoProcessor" + } + ] + } + }, + { + "name": "embeddings", + "semanticName": "embeddings", + "direction": "output", + "roles": ["value"], + "types": ["embeddings"], + "required": false, + "hidden": false, + "semantics": { + "kind": "conditioning", + "scope": "Flux3ModularPipeline", + "state": null, + "owner": "same_loader", + "members": [] + } + }, + { + "name": "doc", + "semanticName": "doc", + "direction": "output", + "roles": ["value"], + "types": ["string"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "layout_conditioning", + "semanticName": "layout_conditioning", + "direction": "input", + "roles": ["value"], + "types": ["layout_conditioning"], + "required": false, + "hidden": false, + "semantics": { + "kind": "opaque", + "scope": "Flux3ModularPipeline", + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "reference_binding", + "semanticName": "reference_binding", + "direction": "input", + "roles": ["value"], + "types": ["reference_conditioning"], + "required": false, + "hidden": false, + "semantics": { + "kind": "opaque", + "scope": "Flux3ModularPipeline", + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "prompt_input", + "semanticName": "prompt", + "direction": "input", + "roles": ["value"], + "types": ["string"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + } + ], + "workflowId": "image_conditioned", + "binding": { + "values": {}, + "pipelineClass": "Flux3ModularPipeline" + } + }, + "node": { + "module": "modules.ModularDiffusers", + "action": "EncodePrompt", + "type": "custom", + "label": "Encode Prompt", + "category": "embedding", + "description": "", + "resizable": true, + "skipParamsCheck": true, + "style": {}, + "params": { + "text_encoders": { + "label": "Text Encoders *", + "required": true, + "type": "diffusers_auto_models", + "display": "input", + "onSignal": "update_node", + "signalCompatibility": { + "role": "text_encoders" + } + }, + "prompt_input": { + "label": "Prompt Input", + "type": "string", + "display": "input", + "description": "Optional connected prompt. When connected, this replaces the inline Prompt value." + }, + "guider": { + "label": "Guider", + "type": "custom_guider", + "display": "input", + "hidden": true, + "description": "Shared Diffusers guidance used by prompt encoding and denoising when the selected pipeline supports it." + }, + "layout_reference_summary": { + "label": "Bound Reference Summary", + "type": "string", + "display": "output", + "hidden": true, + "description": "Display-only ordered reference identities and actual preprocessing sizes from the current encoder cache." + }, + "prompt": { + "label": "Prompt *", + "type": "string", + "display": "textarea", + "default": "", + "value": "Change the background to a sunlit garden. Keep the main subject, its pose and its appearance unchanged.", + "fieldOptions": { + "exampleAttribution": "MoDiff task example" + } + }, + "negative_prompt": { + "label": "Negative Prompt", + "type": "string", + "display": "textarea", + "default": "" + }, + "max_sequence_length": { + "label": "Maximum Sequence Length", + "type": "int", + "default": 8192, + "min": 1, + "max": 8192, + "step": 1 + }, + "text_encoder_out_layers": { + "label": "Text Encoder Layers", + "type": "int", + "display": "select", + "default": [4, 8, 12, 16, 20, 24, 28, 32], + "options": [ + { + "schemaVersion": 1, + "value": "0", + "label": "0", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "1", + "label": "1", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "2", + "label": "2", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "3", + "label": "3", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "4", + "label": "4", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "5", + "label": "5", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "6", + "label": "6", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "7", + "label": "7", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "8", + "label": "8", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "9", + "label": "9", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "10", + "label": "10", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "11", + "label": "11", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "12", + "label": "12", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "13", + "label": "13", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "14", + "label": "14", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "15", + "label": "15", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "16", + "label": "16", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "17", + "label": "17", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "18", + "label": "18", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "19", + "label": "19", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "20", + "label": "20", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "21", + "label": "21", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "22", + "label": "22", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "23", + "label": "23", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "24", + "label": "24", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "25", + "label": "25", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "26", + "label": "26", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "27", + "label": "27", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "28", + "label": "28", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "29", + "label": "29", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "30", + "label": "30", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "31", + "label": "31", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "32", + "label": "32", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + } + ], + "fieldOptions": { + "multiple": true, + "tupleValue": true, + "tupleLength": 8 + } + }, + "embeddings": { + "label": "Text Embeddings", + "type": "embeddings", + "display": "output" + }, + "doc": { + "label": "Doc", + "type": "string", + "display": "output" + }, + "layout_conditioning": { + "label": "Layout Conditioning", + "type": "layout_conditioning", + "display": "layout", + "fieldOptions": { + "layoutConditioning": { + "schemaVersion": 2, + "sourceRegions": false, + "supportsBoundSourceRegions": true + } + }, + "default": null + }, + "reference_binding": { + "label": "Reference Binding", + "type": "reference_conditioning", + "display": "input", + "fieldOptions": { + "referenceBinding": { + "schemaVersion": 1, + "maxReferences": 10 + } + }, + "default": null + } + }, + "time": [0, 0, 0], + "memory": [0, 0, 0], + "cache": false + } + }, + { + "operation": { + "pipelineClass": "Flux3ModularPipeline", + "task": "edit_image", + "operationId": "diffusion.encode_image", + "nodeKey": "modules.ModularDiffusers.ImageEncode", + "nodeType": "vae_encoder", + "blockName": "vae_encoder", + "decomposition": "block", + "support": "declared", + "ports": [ + { + "name": "image", + "semanticName": "image", + "direction": "input", + "roles": ["value"], + "types": ["image"], + "required": true, + "hidden": false, + "semantics": { + "kind": "media", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "vae", + "semanticName": "vae", + "direction": "input", + "roles": ["component"], + "types": ["diffusers_auto_model"], + "required": true, + "hidden": false, + "semantics": { + "kind": "component", + "scope": "Flux3ModularPipeline", + "state": null, + "owner": "same_loader", + "members": [ + { + "name": "vae", + "type": "diffusers.models.autoencoders.autoencoder_kl_flux2.AutoencoderKLFlux2" + } + ] + } + }, + { + "name": "image_cond_latents", + "semanticName": "image_cond_latents", + "direction": "output", + "roles": ["value"], + "types": ["latents"], + "required": false, + "hidden": false, + "semantics": { + "kind": "latents", + "scope": "Flux3ModularPipeline", + "state": null, + "owner": "same_loader", + "members": [] + } + }, + { + "name": "reference_binding", + "semanticName": "reference_binding", + "direction": "output", + "roles": ["value"], + "types": ["reference_conditioning"], + "required": false, + "hidden": false, + "semantics": { + "kind": "opaque", + "scope": "Flux3ModularPipeline", + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "doc", + "semanticName": "doc", + "direction": "output", + "roles": ["value"], + "types": ["string"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + } + ], + "workflowId": "image_conditioned", + "binding": { + "values": {}, + "pipelineClass": "Flux3ModularPipeline" + } + }, + "node": { + "module": "modules.ModularDiffusers", + "action": "ImageEncode", + "type": "custom", + "label": "Encode Image", + "category": "sampler", + "description": "", + "resizable": true, + "skipParamsCheck": true, + "style": {}, + "params": { + "layout_reference_summary": { + "label": "Bound Reference Summary", + "type": "string", + "display": "output", + "hidden": true, + "description": "Display-only ordered reference identities and actual preprocessing sizes from this image encoding cache." + }, + "vae": { + "label": "VAE *", + "display": "input", + "type": "diffusers_auto_model", + "onSignal": "update_node", + "signalCompatibility": { + "role": "vae" + } + }, + "encode_summary_data": { + "label": "Encode summary", + "display": "output", + "type": "str", + "hidden": true + }, + "encode_summary": { + "label": "Encode summary", + "display": "ui_text", + "type": "text", + "dataSource": "encode_summary_data", + "hidden": true + }, + "image": { + "label": "Image *", + "type": "image", + "display": "input" + }, + "image_cond_latents": { + "label": "Reference Latents", + "type": "latents", + "display": "output" + }, + "reference_binding": { + "label": "Reference Binding", + "type": "reference_conditioning", + "display": "output", + "fieldOptions": { + "referenceBinding": { + "schemaVersion": 1, + "maxReferences": 10 + } + } + }, + "doc": { + "label": "Doc", + "type": "string", + "display": "output" + } + }, + "time": [0, 0, 0], + "memory": [0, 0, 0], + "cache": false + } + }, + { + "operation": { + "pipelineClass": "Flux3ModularPipeline", + "task": "edit_image", + "operationId": "diffusion.denoise", + "nodeKey": "modules.ModularDiffusers.Denoise", + "nodeType": "denoise", + "blockName": "denoise", + "decomposition": "block", + "support": "declared", + "ports": [ + { + "name": "embeddings", + "semanticName": "embeddings", + "direction": "input", + "roles": ["value"], + "types": ["embeddings"], + "required": true, + "hidden": false, + "semantics": { + "kind": "conditioning", + "scope": "Flux3ModularPipeline", + "state": null, + "owner": "same_loader", + "members": [] + } + }, + { + "name": "width", + "semanticName": "width", + "direction": "input", + "roles": ["value"], + "types": ["int"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "height", + "semanticName": "height", + "direction": "input", + "roles": ["value"], + "types": ["int"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "seed", + "semanticName": "seed", + "direction": "input", + "roles": ["value"], + "types": ["int"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "num_inference_steps", + "semanticName": "num_inference_steps", + "direction": "input", + "roles": ["value"], + "types": ["int"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "num_images_per_prompt", + "semanticName": "num_images_per_prompt", + "direction": "input", + "roles": ["value"], + "types": ["int"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "image_cond_latents", + "semanticName": "image_cond_latents", + "direction": "input", + "roles": ["value"], + "types": ["latents"], + "required": false, + "hidden": false, + "semantics": { + "kind": "latents", + "scope": "Flux3ModularPipeline", + "state": null, + "owner": "same_loader", + "members": [] + } + }, + { + "name": "unet", + "semanticName": "unet", + "direction": "input", + "roles": ["component"], + "types": ["diffusers_auto_model"], + "required": true, + "hidden": false, + "semantics": { + "kind": "component", + "scope": "Flux3ModularPipeline", + "state": null, + "owner": "same_loader", + "members": [ + { + "name": "transformer", + "type": "diffusers.models.transformers.transformer_flux3.Flux3Transformer2DModel" + } + ] + } + }, + { + "name": "scheduler", + "semanticName": "scheduler", + "direction": "input", + "roles": ["component"], + "types": ["diffusers_auto_model"], + "required": true, + "hidden": false, + "semantics": { + "kind": "component", + "scope": "Flux3ModularPipeline", + "state": null, + "owner": "same_loader", + "members": [ + { + "name": "scheduler", + "type": "diffusers.schedulers.scheduling_flow_match_euler_discrete.FlowMatchEulerDiscreteScheduler" + } + ] + } + }, + { + "name": "guider", + "semanticName": "guider", + "direction": "input", + "roles": ["component"], + "types": ["custom_guider"], + "required": false, + "hidden": false, + "semantics": { + "kind": "component", + "scope": "Flux3ModularPipeline", + "state": null, + "owner": "same_loader", + "members": [ + { + "name": "guider", + "type": "diffusers.guiders.classifier_free_guidance.ClassifierFreeGuidance" + } + ] + } + }, + { + "name": "latents", + "semanticName": "latents", + "direction": "output", + "roles": ["value"], + "types": ["latents"], + "required": false, + "hidden": false, + "semantics": { + "kind": "latents", + "scope": "Flux3ModularPipeline", + "state": null, + "owner": "same_loader", + "members": [] + } + }, + { + "name": "doc", + "semanticName": "doc", + "direction": "output", + "roles": ["value"], + "types": ["string"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "reference_binding", + "semanticName": "reference_binding", + "direction": "input", + "roles": ["value"], + "types": ["reference_conditioning"], + "required": false, + "hidden": false, + "semantics": { + "kind": "opaque", + "scope": "Flux3ModularPipeline", + "state": null, + "owner": "none", + "members": [] + } + } + ], + "workflowId": "image_conditioned", + "binding": { + "values": {}, + "pipelineClass": "Flux3ModularPipeline" + } + }, + "node": { + "module": "modules.ModularDiffusers", + "action": "Denoise", + "type": "custom", + "label": "Denoise", + "category": "sampler", + "description": "", + "resizable": true, + "skipParamsCheck": true, + "style": {}, + "params": { + "unet": { + "label": "Denoise Model *", + "display": "input", + "type": "diffusers_auto_model", + "required": true, + "onSignal": [ + "update_node", + { + "action": "signal", + "target": "guider" + }, + { + "action": "signal", + "target": "controlnet_bundle" + } + ], + "signalCompatibility": { + "role": "denoiser" + } + }, + "embeddings": { + "label": "Text Embeddings *", + "type": "embeddings", + "display": "input" + }, + "width": { + "label": "Width", + "type": "int", + "default": 1024, + "min": 64, + "step": 16, + "value": 1024 + }, + "height": { + "label": "Height", + "type": "int", + "default": 1024, + "min": 64, + "step": 16, + "value": 1024 + }, + "seed": { + "label": "Seed", + "type": "int", + "display": "random", + "default": 0, + "min": 0, + "max": 4294967295 + }, + "num_inference_steps": { + "label": "Steps", + "type": "int", + "display": "slider", + "default": 50, + "min": 1, + "max": 100, + "value": 50 + }, + "num_images_per_prompt": { + "label": "Images Per Prompt", + "type": "int", + "default": 1, + "min": 1, + "max": 8, + "step": 1 + }, + "image_cond_latents": { + "label": "Reference Latents", + "type": "latents", + "display": "input" + }, + "scheduler": { + "label": "Scheduler *", + "type": "diffusers_auto_model", + "display": "input", + "signalCompatibility": { + "role": "scheduler" + } + }, + "guider": { + "label": "Guider", + "type": "custom_guider", + "display": "input" + }, + "latents": { + "label": "Latents", + "type": "latents", + "display": "output" + }, + "doc": { + "label": "Doc", + "type": "string", + "display": "output" + }, + "reference_binding": { + "label": "Reference Binding", + "type": "reference_conditioning", + "display": "input", + "fieldOptions": { + "referenceBinding": { + "schemaVersion": 1, + "maxReferences": 10 + } + }, + "default": null + } + }, + "time": [0, 0, 0], + "memory": [0, 0, 0], + "cache": false + } + }, + { + "operation": { + "pipelineClass": "Flux3ModularPipeline", + "task": "edit_image", + "operationId": "diffusion.decode_latents", + "nodeKey": "modules.ModularDiffusers.DecodeLatents", + "nodeType": "decoder", + "blockName": "decode", + "decomposition": "block", + "support": "declared", + "ports": [ + { + "name": "latents", + "semanticName": "latents", + "direction": "input", + "roles": ["value"], + "types": ["latents"], + "required": true, + "hidden": false, + "semantics": { + "kind": "latents", + "scope": "Flux3ModularPipeline", + "state": null, + "owner": "same_loader", + "members": [] + } + }, + { + "name": "vae", + "semanticName": "vae", + "direction": "input", + "roles": ["component"], + "types": ["diffusers_auto_model"], + "required": true, + "hidden": false, + "semantics": { + "kind": "component", + "scope": "Flux3ModularPipeline", + "state": null, + "owner": "same_loader", + "members": [ + { + "name": "vae", + "type": "diffusers.models.autoencoders.autoencoder_kl_flux2.AutoencoderKLFlux2" + } + ] + } + }, + { + "name": "images", + "semanticName": "images", + "direction": "output", + "roles": ["value"], + "types": ["image"], + "required": false, + "hidden": false, + "semantics": { + "kind": "media", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + }, + { + "name": "doc", + "semanticName": "doc", + "direction": "output", + "roles": ["value"], + "types": ["string"], + "required": false, + "hidden": false, + "semantics": { + "kind": "value", + "scope": null, + "state": null, + "owner": "none", + "members": [] + } + } + ], + "workflowId": "image_conditioned", + "binding": { + "values": {}, + "pipelineClass": "Flux3ModularPipeline" + } + }, + "node": { + "module": "modules.ModularDiffusers", + "action": "DecodeLatents", + "type": "custom", + "label": "Decode Latents", + "category": "sampler", + "description": "", + "resizable": true, + "skipParamsCheck": true, + "style": {}, + "params": { + "vae": { + "label": "VAE *", + "display": "input", + "type": "diffusers_auto_model", + "onSignal": "update_node", + "signalCompatibility": { + "role": "vae" + } + }, + "latents": { + "label": "Latents *", + "type": "latents", + "display": "input" + }, + "images": { + "label": "Images", + "type": "image", + "display": "output" + }, + "doc": { + "label": "Doc", + "type": "string", + "display": "output" + } + }, + "time": [0, 0, 0], + "memory": [0, 0, 0], + "cache": false + } + } + ], + "edges": [ + { + "source": "diffusion.load_models", + "sourceHandle": "text_encoders", + "target": "diffusion.encode_prompt", + "targetHandle": "text_encoders" + }, + { + "source": "diffusion.load_models", + "sourceHandle": "vae_out", + "target": "diffusion.encode_image", + "targetHandle": "vae" + }, + { + "source": "diffusion.load_models", + "sourceHandle": "scheduler", + "target": "diffusion.denoise", + "targetHandle": "scheduler" + }, + { + "source": "diffusion.load_models", + "sourceHandle": "unet_out", + "target": "diffusion.denoise", + "targetHandle": "unet" + }, + { + "source": "diffusion.load_models", + "sourceHandle": "vae_out", + "target": "diffusion.decode_latents", + "targetHandle": "vae" + }, + { + "source": "diffusion.encode_prompt", + "sourceHandle": "embeddings", + "target": "diffusion.denoise", + "targetHandle": "embeddings" + }, + { + "source": "diffusion.denoise", + "sourceHandle": "latents", + "target": "diffusion.decode_latents", + "targetHandle": "latents" + }, + { + "source": "diffusion.encode_image", + "sourceHandle": "image_cond_latents", + "target": "diffusion.denoise", + "targetHandle": "image_cond_latents" + }, + { + "source": "diffusion.guidance", + "sourceHandle": "guider_out", + "target": "diffusion.denoise", + "targetHandle": "guider" + }, + { + "source": "diffusion.encode_image", + "sourceHandle": "reference_binding", + "target": "diffusion.encode_prompt", + "targetHandle": "reference_binding" + }, + { + "source": "diffusion.encode_image", + "sourceHandle": "reference_binding", + "target": "diffusion.denoise", + "targetHandle": "reference_binding" + } + ], + "requiredInputs": [ + { + "operationId": "diffusion.encode_image", + "field": "image" + }, + { + "operationId": "diffusion.encode_prompt", + "field": "prompt" + } + ], + "sharedInputs": [], + "upstreamBlocks": ["text_encoder", "vae_encoder", "denoise", "decode"], + "authoring": { + "schemaVersion": 1, + "canonicalizationVersion": 1, + "id": "flux3-klein-base:edit-image:prompt-preview-authoring:v1", + "baseSpecId": "flux3-klein-base:modular:edit-image:v1", + "baseSpecContentHash": "studio-spec-v1-c69976c9", + "executionProfileIds": ["flux3-klein-base:modular"], + "roles": [ + ["models", "modules.ModularDiffusers.ModelsLoader", -720, -80], + ["prompt", "modules.ModularDiffusers.EncodePrompt", -360, -240], + ["denoise", "modules.ModularDiffusers.Denoise", 80, -80], + ["decode", "modules.ModularDiffusers.DecodeLatents", 440, -80], + ["preview", "modules.Image.Preview", 800, -80], + ["guider", "modules.ModularDiffusers.Guider", -360, 160], + ["loadImage", "modules.Image.Load", -720, 320], + ["imageEncode", "modules.ModularDiffusers.ImageEncode", -360, 320] + ], + "edges": [ + ["models", "text_encoders", "prompt", "text_encoders"], + ["models", "unet_out", "denoise", "unet"], + ["models", "scheduler", "denoise", "scheduler"], + ["models", "vae_out", "decode", "vae"], + ["prompt", "embeddings", "denoise", "embeddings"], + ["denoise", "latents", "decode", "latents"], + ["decode", "images", "preview", "image"], + ["guider", "guider_out", "denoise", "guider"], + ["models", "vae_out", "imageEncode", "vae"], + ["loadImage", "image", "imageEncode", "image"], + ["imageEncode", "image_cond_latents", "denoise", "image_cond_latents"], + ["imageEncode", "reference_binding", "prompt", "reference_binding"], + ["imageEncode", "reference_binding", "denoise", "reference_binding"] + ], + "bindings": [ + ["models", "model_type", "pipelineClass"], + ["models", "repo_id", "artifact"], + ["models", "revision", "defaultRevision"], + ["models", "dtype", "dtype"], + ["models", "device", "device"], + ["models", "auto_offload", "autoOffload"], + ["models", "offload_mode", "offloadMode"], + ["models", "trust_remote_code", "false"], + ["prompt", "prompt", "prompt"], + ["prompt", "negative_prompt", "negativePrompt"], + ["denoise", "width", "width"], + ["denoise", "height", "height"], + ["denoise", "seed", "seed"], + ["denoise", "num_inference_steps", "steps"], + ["prompt", "max_sequence_length", "maxSequenceLength"], + ["models", "weight_format", "weightFormat"], + ["guider", "guider", "classifierFreeGuidance"], + ["guider", "model_type", "pipelineClass"], + ["guider", "guidance_scale", "guidanceScale"], + ["loadImage", "file", "referenceImages"], + ["loadImage", "alpha_channel", "alphaMode"] + ], + "initialValues": [], + "ancillaryOperations": [ + { + "schemaVersion": 1, + "id": "flux3-klein-base:edit-image:prompt-preview-authoring:v1:preview", + "parent": { + "authoringRecipeId": "flux3-klein-base:edit-image:prompt-preview-authoring:v1", + "baseSpecId": "flux3-klein-base:modular:edit-image:v1", + "baseSpecContentHash": "studio-spec-v1-c69976c9", + "executionProfileId": "flux3-klein-base:modular", + "pipelineClass": "Flux3ModularPipeline", + "task": "edit_image" + }, + "executionPurpose": "explicit_preview", + "roles": [ + ["provider", "modules.HuggingFaceTransformers.LoadImageTextToTextModel", -720, -400], + ["proposal", "modules.HuggingFaceTransformers.GenerateImageVideoText", -360, -400] + ], + "edges": [["provider", "model", "proposal", "model"]], + "bindings": { + "owner": { + "role": "prompt", + "promptField": "prompt", + "layoutField": "layout_conditioning", + "referenceSource": { + "role": "loadImage", + "field": "image" + } + }, + "request": { + "role": "proposal", + "promptField": "prompt", + "layoutField": "layout_conditioning", + "imagesField": "images" + }, + "output": { + "role": "proposal", + "field": "proposal_summary" + } + }, + "initialValues": [ + [ + "provider", + "model_id", + { + "source": "hub", + "value": "black-forest-labs/flux-3-image-klein-pup" + } + ], + ["provider", "revision", "3f3edb52b2c55de0d49feab28598b68f7f8e4830"], + ["proposal", "operation", "enhance_prompt"] + ], + "fieldOverrides": [ + [ + "proposal", + "enhancement_max_new_tokens", + { + "hidden": false + } + ], + [ + "proposal", + "max_new_tokens", + { + "hidden": true + } + ] + ], + "adapter": { + "id": "transformers-prompt-enhancement-v1", + "declarationSha256": "sha256:2a3d4685988b418115008bbb95fb3e948097580c0bedd2940ea3fe1e40254dc2" + }, + "verification": { + "schemaVersion": 1, + "adapter": { + "id": "transformers-prompt-enhancement-v1", + "declarationSha256": "sha256:2a3d4685988b418115008bbb95fb3e948097580c0bedd2940ea3fe1e40254dc2" + }, + "runtimeInputs": { + "role": "provider", + "modelField": "model_id", + "revisionField": "revision", + "dtypeField": "dtype", + "deviceField": "device", + "quantizationField": "quantization_mode" + }, + "requestInputs": { + "role": "proposal", + "operationField": "operation", + "maxNewTokensField": "enhancement_max_new_tokens", + "minNewTokensField": "min_new_tokens", + "maxInputTokensField": "max_input_tokens", + "maxImagePixelsField": "max_image_pixels" + }, + "supportedPromptModes": ["t2i", "i2i"], + "systemPromptsSha256": "sha256:b5da3ed8bc04ab59dbdb747930f7dbff847e868903fed8028f85ee1a4ac82fb4", + "systemPromptSha256ByMode": { + "t2i": "8b235a421bce2213d11ada01f5a1244443dd72303ffbb4cc9e5a0d8b0de5ab6f", + "i2i": "95cec384d5b6d341caa9fb3f2c7ca45ee80c2364b3a95d4044aebf976f6dd3bf", + "t2i_bbox": "5f513d8ce5838732919f9e645507aa20ff373e88bf93132c768e063c9db3151f", + "i2i_bbox": "9ad10f947e401337cf155cac0518cc428159ef16f2f029f48aae2aaab8380a5e" + }, + "chatTemplateSha256": "sha256:a4aee8afcf2e0711942cf848899be66016f8d14a889ff9ede07bca099c28f715", + "modelReceipt": { + "schemaVersion": 1, + "library": "transformers", + "task": "image-video-to-text", + "source": { + "kind": "hub", + "repository": "black-forest-labs/flux-3-image-klein-pup", + "revision": "3f3edb52b2c55de0d49feab28598b68f7f8e4830" + }, + "loader": { + "preprocessorAutoClass": "AutoProcessor", + "modelAutoClass": "AutoModelForImageTextToText" + }, + "security": { + "localFilesOnly": true, + "trustRemoteCode": false, + "safetensorsOnly": true, + "hostedInference": false + }, + "runtime": { + "transformersVersion": "5.18.0", + "preprocessorClass": "Qwen3VLProcessor", + "modelClass": "Qwen3_5ForConditionalGeneration", + "modelType": "qwen3_5", + "architectures": ["Qwen3_5ForConditionalGeneration"] + } + }, + "quantizationRecipes": [ + { + "mode": "none" + }, + { + "mode": "bnb_4bit", + "quantType": "nf4", + "doubleQuant": true, + "computeDtype": "bfloat16", + "skipModules": ["lm_head", "model.visual"] + } + ] + }, + "sourceRegions": false, + "contentHash": "studio-ancillary-v1-f4685ebb" + } + ], + "contentHash": "studio-authoring-v1-9c1a94bb" + } + } + ], + "registry": { + "modules.HuggingFaceTransformers.LoadImageTextToTextModel": { + "module": "modules.HuggingFaceTransformers", + "action": "LoadImageTextToTextModel", + "type": "custom", + "label": "Load Image/Video-to-Text Model", + "category": "Hugging Face Transformers", + "description": "Load an immutable local-only image/video-to-text model and processor.", + "resizable": true, + "skipParamsCheck": false, + "style": {}, + "params": { + "model": { + "label": "Model", + "display": "output", + "type": "transformers_image_text_to_text" + }, + "pipeline_class": { + "label": "Execution Class", + "type": "string", + "default": "AutoModelForImageTextToText", + "hidden": true + }, + "model_id": { + "label": "Model", + "display": "modelselect", + "type": "string", + "fieldOptions": { + "noValidation": true, + "sources": ["hub", "local"] + } + }, + "revision": { + "label": "Exact Hub Commit", + "type": "string", + "default": "" + }, + "dtype": { + "label": "DType", + "type": "string", + "options": [ + { + "schemaVersion": 1, + "value": "float32", + "label": "float32", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "float16", + "label": "float16", + "compatibility": "incompatible", + "availability": "unavailable", + "installationState": "unavailable", + "disabledReason": "float16 is not supported by the active runtime." + }, + { + "schemaVersion": 1, + "value": "bfloat16", + "label": "bfloat16", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + } + ], + "default": "float32" + }, + "device": { + "label": "Device", + "type": "string", + "options": { + "cpu:0": { + "schemaVersion": 1, + "value": "cpu:0", + "label": "cpu:0", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + "cpu": { + "schemaVersion": 1, + "value": "cpu", + "label": "cpu", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + } + }, + "default": "cpu:0" + }, + "quantization_mode": { + "label": "Quantization", + "type": "string", + "options": [ + { + "schemaVersion": 1, + "value": "none", + "label": "none", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "bnb_4bit", + "label": "bnb_4bit", + "compatibility": "incompatible", + "availability": "unavailable", + "installationState": "unavailable", + "disabledReason": "MoDiff has not qualified this backend on the active platform" + } + ], + "default": "none" + }, + "receipt": { + "label": "Model Receipt", + "display": "output", + "type": "object" + } + }, + "time": [0, 0, 0], + "memory": [0, 0, 0], + "cache": false + }, + "modules.HuggingFaceTransformers.GenerateImageVideoText": { + "module": "modules.HuggingFaceTransformers", + "action": "GenerateImageVideoText", + "type": "custom", + "label": "Generate Image/Video Text", + "category": "Hugging Face Transformers", + "description": "Generate bounded text from bounded in-memory images or video frames.", + "resizable": true, + "skipParamsCheck": false, + "style": {}, + "params": { + "max_input_tokens": { + "label": "Input Token Limit", + "type": "int", + "default": 32768, + "min": 1, + "max": 32768 + }, + "max_image_pixels": { + "label": "Reference Pixel Limit", + "type": "int", + "default": 16777216, + "min": 65536, + "max": 16777216 + }, + "model": { + "label": "Model", + "display": "input", + "type": "transformers_image_text_to_text" + }, + "prompt": { + "label": "Prompt", + "type": "text", + "default": "" + }, + "operation": { + "label": "Operation", + "type": "string", + "options": [ + { + "schemaVersion": 1, + "value": "standard", + "label": "standard", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "enhance_prompt", + "label": "enhance_prompt", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "enhance_prompt_append_details", + "label": "enhance_prompt_append_details", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + } + ], + "default": "standard", + "hidden": true + }, + "enhancement_max_new_tokens": { + "label": "Enhancement Token Limit", + "type": "int", + "default": 3584, + "min": 1, + "max": 3584, + "hidden": true, + "description": "Used only by prompt enhancement; ordinary generation keeps Max New Tokens." + }, + "layout_conditioning": { + "label": "Enhancement Layout", + "type": "layout_conditioning", + "display": "layout", + "default": null, + "hidden": true, + "fieldOptions": { + "layoutConditioning": { + "schemaVersion": 1, + "sourceRegions": false + } + } + }, + "images": { + "label": "Images", + "display": "input", + "type": "image", + "required": false + }, + "video": { + "label": "Video", + "display": "input", + "type": "video", + "required": false + }, + "use_chat_template": { + "label": "Use Chat Template", + "type": "boolean", + "default": true + }, + "max_new_tokens": { + "label": "Max New Tokens", + "type": "int", + "default": 256, + "min": 1, + "max": 2048 + }, + "min_new_tokens": { + "label": "Min New Tokens", + "type": "int", + "default": 0, + "min": 0, + "max": 2048 + }, + "do_sample": { + "label": "Sample", + "type": "boolean", + "default": false + }, + "temperature": { + "label": "Temperature", + "type": "float", + "default": 1.0, + "min": 0.01, + "max": 5.0 + }, + "top_p": { + "label": "Top P", + "type": "float", + "default": 1.0, + "min": 0.01, + "max": 1.0 + }, + "top_k": { + "label": "Top K", + "type": "int", + "default": 50, + "min": 0, + "max": 1000 + }, + "num_beams": { + "label": "Beams", + "type": "int", + "default": 1, + "min": 1, + "max": 8 + }, + "repetition_penalty": { + "label": "Repetition Penalty", + "type": "float", + "default": 1.0, + "min": 0.1, + "max": 10.0 + }, + "text": { + "label": "Generated Text", + "display": "output", + "type": "string" + }, + "result": { + "label": "Generation Result", + "display": "output", + "type": "object" + }, + "proposal_summary": { + "label": "Prompt Proposal Summary", + "display": "output", + "type": "string", + "hidden": true + }, + "proposal_diagnostic": { + "label": "Rejected Proposal Diagnostic", + "display": "output", + "type": "string", + "hidden": true + } + }, + "time": [0, 0, 0], + "memory": [0, 0, 0], + "cache": false + } + }, + "sourceHashes": { + "modiff/ancillary_execution.py": { + "bytes": 45196, + "sha256": "126c1ae5156f8638bccf37e3fbbc021cc59240acbd392a3b785fa727e1da20a5" + }, + "modiff/studio_execution_specs.py": { + "bytes": 827130, + "sha256": "7c1833cf65a8e67d933e2c7f702bb1524918f59ff75656384fa5890de5b306f5" + }, + "modiff/operation_catalog.py": { + "bytes": 34193, + "sha256": "9df651f6f8d8b1d136acd42038953a61c87df1a9fdf8ed53b97d672850d79251" + }, + "modiff/operation_starters.py": { + "bytes": 26433, + "sha256": "a4bc75ac2f49b3a8baee01659734d64f1b4610d014c42589c8037ab6946c7114" + }, + "modules/HuggingFaceTransformers/main.py": { + "bytes": 85493, + "sha256": "d519db75d06277a6a799ab7c7b5d47b921a4b17da96d072ff56ea549fae9e16a" + }, + "modiff/server.py": { + "bytes": 832038, + "sha256": "9fe6857104a2688ae449094842f5016e9072540ae1e0553a1ea9b5bc5f6fd7ce" + } + } +} diff --git a/tests/fixtures/public-flux3-migration-comparisons.v1.json b/tests/fixtures/public-flux3-migration-comparisons.v1.json new file mode 100644 index 00000000..7e4312b6 --- /dev/null +++ b/tests/fixtures/public-flux3-migration-comparisons.v1.json @@ -0,0 +1,9994 @@ +{ + "activeProvider": null, + "comparisons": [ + { + "selection": { "pipelineClass": "Flux3DistilledModularPipeline", "task": "text_to_image" }, + "starter": { + "edges": [ + { + "source": "diffusion.load_models", + "sourceHandle": "text_encoders", + "target": "diffusion.encode_prompt", + "targetHandle": "text_encoders" + }, + { + "source": "diffusion.load_models", + "sourceHandle": "scheduler", + "target": "diffusion.denoise", + "targetHandle": "scheduler" + }, + { + "source": "diffusion.load_models", + "sourceHandle": "unet_out", + "target": "diffusion.denoise", + "targetHandle": "unet" + }, + { + "source": "diffusion.load_models", + "sourceHandle": "vae_out", + "target": "diffusion.decode_latents", + "targetHandle": "vae" + }, + { + "source": "diffusion.encode_prompt", + "sourceHandle": "embeddings", + "target": "diffusion.denoise", + "targetHandle": "embeddings" + }, + { + "source": "diffusion.denoise", + "sourceHandle": "latents", + "target": "diffusion.decode_latents", + "targetHandle": "latents" + } + ], + "nodes": [ + { + "node": { + "action": "ModelsLoader", + "cache": false, + "category": "loader", + "description": "", + "label": "Load Models", + "memory": [0, 0, 0], + "module": "modules.ModularDiffusers", + "params": { + "attention_backend": { + "default": "inherit", + "description": "Inherit preserves existing native component defaults; explicit choices use the ordinary Diffusers attention API.", + "label": "Attention Backend", + "options": [ + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "inherit", + "schemaVersion": 1, + "value": "inherit" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "auto", + "schemaVersion": 1, + "value": "auto" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "native", + "schemaVersion": 1, + "value": "native" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "_native_math", + "schemaVersion": 1, + "value": "_native_math" + } + ], + "type": "string" + }, + "auto_offload": { "label": "Enable Auto Offload", "type": "boolean", "value": true }, + "controlnet": { + "display": "input", + "hidden": true, + "label": "ControlNet", + "type": "diffusers_auto_model" + }, + "device": { + "label": "Device", + "options": { + "cpu": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "cpu", + "schemaVersion": 1, + "value": "cpu" + }, + "cpu:0": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "cpu:0", + "schemaVersion": 1, + "value": "cpu:0" + } + }, + "type": "string", + "value": "cpu:0" + }, + "dtype": { + "label": "dtype", + "options": [ + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "float32", + "schemaVersion": 1, + "value": "float32" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "float16", + "schemaVersion": 1, + "value": "float16" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "bfloat16", + "schemaVersion": 1, + "value": "bfloat16" + } + ], + "value": "bfloat16" + }, + "image_encoder": { + "connectionRole": "image_encoder", + "display": "output", + "hidden": true, + "label": "Image Encoder", + "signal": { + "direction": "output", + "origin": "modiff_pipeline_identity", + "value": "Flux3DistilledModularPipeline" + }, + "type": "diffusers_auto_model" + }, + "inpaint_compatibility": { + "default": "native", + "description": "Technical compatibility selection for the reviewed Qwen Edit inpainting candidate; existing nodes retain native policy.", + "hidden": true, + "label": "Inpaint Compatibility", + "options": [ + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "native", + "schemaVersion": 1, + "value": "native" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "whole_v1", + "schemaVersion": 1, + "value": "whole_v1" + } + ], + "type": "string" + }, + "lora_list": { "display": "input", "label": "Lora", "type": "custom_lora" }, + "model_type": { + "description": "Selects the Modular Diffusers pipeline class. This filters compatible checkpoints and publishes the component contract used by connected nodes; it is not the model checkpoint itself.", + "label": "Pipeline Type", + "onChange": "set_filters", + "options": { + "": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "", + "schemaVersion": 1, + "value": "" + }, + "AnimaModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Anima", + "schemaVersion": 1, + "value": "AnimaModularPipeline" + }, + "Cosmos3DistilledModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Cosmos 3 Distilled", + "schemaVersion": 1, + "value": "Cosmos3DistilledModularPipeline" + }, + "Cosmos3OmniModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Cosmos 3 Nano", + "schemaVersion": 1, + "value": "Cosmos3OmniModularPipeline" + }, + "DummyCustomPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Custom", + "schemaVersion": 1, + "value": "DummyCustomPipeline" + }, + "ErnieImageModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "ERNIE Image Turbo", + "schemaVersion": 1, + "value": "ErnieImageModularPipeline" + }, + "Flux2KleinBaseModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Flux 2 Klein Base", + "schemaVersion": 1, + "value": "Flux2KleinBaseModularPipeline" + }, + "Flux2KleinModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Flux 2 Klein Distilled", + "schemaVersion": 1, + "value": "Flux2KleinModularPipeline" + }, + "Flux2ModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Flux 2", + "schemaVersion": 1, + "value": "Flux2ModularPipeline" + }, + "Flux3DistilledModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "FLUX 3 Image Klein", + "schemaVersion": 1, + "value": "Flux3DistilledModularPipeline" + }, + "Flux3ModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "FLUX 3 Image Klein Base", + "schemaVersion": 1, + "value": "Flux3ModularPipeline" + }, + "FluxKontextModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Flux Kontext", + "schemaVersion": 1, + "value": "FluxKontextModularPipeline" + }, + "FluxModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Flux", + "schemaVersion": 1, + "value": "FluxModularPipeline" + }, + "HeliosModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Helios", + "schemaVersion": 1, + "value": "HeliosModularPipeline" + }, + "HeliosPyramidDistilledModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Helios Pyramid Distilled", + "schemaVersion": 1, + "value": "HeliosPyramidDistilledModularPipeline" + }, + "HeliosPyramidModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Helios Pyramid", + "schemaVersion": 1, + "value": "HeliosPyramidModularPipeline" + }, + "HunyuanVideo15ModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "HunyuanVideo 1.5", + "schemaVersion": 1, + "value": "HunyuanVideo15ModularPipeline" + }, + "Ideogram4ModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Ideogram 4 (Contract only)", + "schemaVersion": 1, + "value": "Ideogram4ModularPipeline" + }, + "Krea2ModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Krea 2 (Contract only)", + "schemaVersion": 1, + "value": "Krea2ModularPipeline" + }, + "Krea2TurboModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Krea 2 Turbo (Contract only)", + "schemaVersion": 1, + "value": "Krea2TurboModularPipeline" + }, + "LTX25ModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "LTX-2.5 (Contract only)", + "schemaVersion": 1, + "value": "LTX25ModularPipeline" + }, + "MiniMaxH3ModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "MiniMax H3", + "schemaVersion": 1, + "value": "MiniMaxH3ModularPipeline" + }, + "MiniMaxMusic3ModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "MiniMax Music 3", + "schemaVersion": 1, + "value": "MiniMaxMusic3ModularPipeline" + }, + "QwenImageEditModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Qwen-Image-Edit", + "schemaVersion": 1, + "value": "QwenImageEditModularPipeline" + }, + "QwenImageEditPlusModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Qwen-Image-Edit-2511", + "schemaVersion": 1, + "value": "QwenImageEditPlusModularPipeline" + }, + "QwenImageLayeredModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Qwen-Image-Layered", + "schemaVersion": 1, + "value": "QwenImageLayeredModularPipeline" + }, + "QwenImageModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Qwen-Image-2512", + "schemaVersion": 1, + "value": "QwenImageModularPipeline" + }, + "StableDiffusion3ModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Stable Diffusion 3 (Contract only)", + "schemaVersion": 1, + "value": "StableDiffusion3ModularPipeline" + }, + "StableDiffusionXLModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Stable Diffusion XL", + "schemaVersion": 1, + "value": "StableDiffusionXLModularPipeline" + }, + "WanAnimate2DistilledModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Wan Animate 2 Distilled", + "schemaVersion": 1, + "value": "WanAnimate2DistilledModularPipeline" + }, + "WanAnimate2ModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Wan Animate 2", + "schemaVersion": 1, + "value": "WanAnimate2ModularPipeline" + }, + "WanImage2VideoModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "WAN2 I2V", + "schemaVersion": 1, + "value": "WanImage2VideoModularPipeline" + }, + "WanModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "WAN2 T2V", + "schemaVersion": 1, + "value": "WanModularPipeline" + }, + "ZImageModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Z-Image", + "schemaVersion": 1, + "value": "ZImageModularPipeline" + } + }, + "type": "string", + "value": "Flux3DistilledModularPipeline" + }, + "modiff_pipeline_identity": { + "hidden": true, + "label": "Custom Pipeline Identity", + "type": "object", + "value": null + }, + "offload_mode": { + "default": "model_cpu", + "label": "Offload Mode", + "options": [ + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "auto_cpu", + "schemaVersion": 1, + "value": "auto_cpu" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "none", + "schemaVersion": 1, + "value": "none" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "model_cpu", + "schemaVersion": 1, + "value": "model_cpu" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "group_cpu", + "schemaVersion": 1, + "value": "group_cpu" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "group_disk", + "schemaVersion": 1, + "value": "group_disk" + } + ], + "type": "string", + "value": "model_cpu" + }, + "pipeline_components": { + "connectionRole": "pipeline_components", + "display": "output", + "hidden": false, + "label": "Pipeline Components", + "signal": { + "direction": "output", + "origin": "modiff_pipeline_identity", + "value": "Flux3DistilledModularPipeline" + }, + "type": "diffusers_modular_pipeline_components" + }, + "quant_config": { "display": "input", "label": "Quant Config", "type": "quant_config" }, + "refresh_pipeline_identity_button": { + "display": "ui_button", + "hidden": true, + "label": "Review and Refresh Custom Contract", + "onChange": "refresh_pipeline_identity", + "value": false + }, + "repo_id": { + "display": "modelselect", + "fieldOptions": { + "filter": { "hub": { "className": ["Flux3DistilledModularPipeline"] } }, + "noValidation": true, + "sources": ["hub", "local"] + }, + "label": "Repository ID", + "onChange": "refresh_pipeline_identity", + "type": "string", + "value": { "source": "hub", "value": "black-forest-labs/flux-3-image-klein" } + }, + "reviewed_variant": { + "description": "Select an immutable, reviewed checkpoint for this exact Modular Diffusers pipeline family. Changing it does not replace the workflow graph or reset its parameters.", + "fieldOptions": { "controlTier": "essential" }, + "hidden": true, + "label": "Model", + "options": [ + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "black-forest-labs/flux-3-image-klein", + "schemaVersion": 1, + "value": "black-forest-labs/flux-3-image-klein" + } + ], + "type": "string", + "value": "black-forest-labs/flux-3-image-klein" + }, + "revision": { + "description": "Required exact 40-character commit hash for Hub custom contracts.", + "label": "Revision", + "onChange": "refresh_pipeline_identity", + "type": "string", + "value": "8454017f9ebaada30c998fccd9f67a80c7580f68" + }, + "scheduler": { + "connectionRole": "scheduler", + "display": "output", + "hidden": false, + "label": "Scheduler", + "signal": { + "direction": "output", + "origin": "modiff_pipeline_identity", + "value": "Flux3DistilledModularPipeline" + }, + "type": "diffusers_auto_model" + }, + "text_encoders": { + "connectionRole": "text_encoders", + "display": "output", + "hidden": false, + "label": "Text Encoders", + "signal": { + "direction": "output", + "origin": "modiff_pipeline_identity", + "value": "Flux3DistilledModularPipeline" + }, + "type": "diffusers_auto_models" + }, + "trust_remote_code": { + "description": "Repository code execution is disabled; keep this off for contract preview.", + "label": "Trust Remote Code", + "onChange": "refresh_pipeline_identity", + "type": "boolean", + "value": false + }, + "unet": { + "display": "input", + "hidden": false, + "label": "Denoise Model", + "type": "diffusers_auto_model" + }, + "unet_out": { + "connectionRole": "denoiser", + "display": "output", + "hidden": false, + "label": "Denoise Model", + "signal": { + "direction": "output", + "origin": "modiff_pipeline_identity", + "value": "Flux3DistilledModularPipeline" + }, + "type": "diffusers_auto_model" + }, + "vae": { "display": "input", "hidden": false, "label": "VAE", "type": "diffusers_auto_model" }, + "vae_out": { + "connectionRole": "vae", + "display": "output", + "hidden": false, + "label": "VAE", + "signal": { + "direction": "output", + "origin": "modiff_pipeline_identity", + "value": "Flux3DistilledModularPipeline" + }, + "type": "diffusers_auto_model" + }, + "vae_slicing": { + "default": null, + "description": "An unset policy preserves the native VAE configuration; templates may bind an explicit boolean.", + "hidden": true, + "label": "VAE Slicing", + "type": "boolean" + }, + "vae_tiling": { + "default": null, + "description": "An unset policy preserves the native VAE configuration; templates may bind an explicit boolean.", + "hidden": true, + "label": "VAE Tiling", + "type": "boolean" + }, + "weight_format": { + "default": "native", + "description": "Select a backend-declared immutable component format. Missing reviewed files must be installed through Model Manager.", + "fieldOptions": { "controlTier": "advanced" }, + "hidden": false, + "label": "Weight Format", + "options": [ + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "native", + "schemaVersion": 1, + "value": "native" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "fp8r", + "schemaVersion": 1, + "value": "fp8r" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "nvfp4", + "schemaVersion": 1, + "value": "nvfp4" + } + ], + "type": "string" + }, + "weight_loading_mode": { + "default": "cpu", + "description": "Load weights on CPU or CUDA before disk offload. CUDA loading needs room for a complete component and is available only for supported models.", + "fieldOptions": { "controlTier": "advanced" }, + "label": "Weight Loading", + "options": [ + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "cpu", + "schemaVersion": 1, + "value": "cpu" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "cuda", + "schemaVersion": 1, + "value": "cuda" + } + ], + "type": "string" + }, + "workflow_id": { + "description": "Exact reviewed component partition selected by a first-party Cluster Node.", + "hidden": true, + "label": "Reviewed Workflow", + "type": "string", + "value": "text2image" + } + }, + "resizable": true, + "skipParamsCheck": true, + "style": {}, + "time": [0, 0, 0], + "type": "custom" + }, + "operation": { + "binding": { + "pipelineClass": "Flux3DistilledModularPipeline", + "values": { "model_type": "Flux3DistilledModularPipeline" } + }, + "blockName": null, + "decomposition": "loader", + "nodeKey": "modules.ModularDiffusers.ModelsLoader", + "nodeType": "loader", + "operationId": "diffusion.load_models", + "pipelineClass": "Flux3DistilledModularPipeline", + "ports": [ + { + "direction": "input", + "hidden": false, + "name": "model_type", + "required": false, + "roles": ["value"], + "semanticName": "model_type", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": false, + "name": "repo_id", + "required": false, + "roles": ["value"], + "semanticName": "repo_id", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": true, + "name": "reviewed_variant", + "required": false, + "roles": ["value"], + "semanticName": "reviewed_variant", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": false, + "name": "device", + "required": false, + "roles": ["value"], + "semanticName": "device", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": false, + "name": "attention_backend", + "required": false, + "roles": ["value"], + "semanticName": "attention_backend", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": true, + "name": "vae_slicing", + "required": false, + "roles": ["value"], + "semanticName": "vae_slicing", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["boolean"] + }, + { + "direction": "input", + "hidden": true, + "name": "vae_tiling", + "required": false, + "roles": ["value"], + "semanticName": "vae_tiling", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["boolean"] + }, + { + "direction": "input", + "hidden": true, + "name": "inpaint_compatibility", + "required": false, + "roles": ["value"], + "semanticName": "inpaint_compatibility", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": false, + "name": "trust_remote_code", + "required": false, + "roles": ["value"], + "semanticName": "trust_remote_code", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["boolean"] + }, + { + "direction": "input", + "hidden": false, + "name": "revision", + "required": false, + "roles": ["value"], + "semanticName": "revision", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": true, + "name": "workflow_id", + "required": false, + "roles": ["value"], + "semanticName": "workflow_id", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": true, + "name": "modiff_pipeline_identity", + "required": false, + "roles": ["value"], + "semanticName": "modiff_pipeline_identity", + "semantics": { + "kind": "opaque", + "members": [], + "owner": "none", + "scope": "Flux3DistilledModularPipeline", + "state": null + }, + "types": ["object"] + }, + { + "direction": "input", + "hidden": false, + "name": "auto_offload", + "required": false, + "roles": ["value"], + "semanticName": "auto_offload", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["boolean"] + }, + { + "direction": "input", + "hidden": false, + "name": "offload_mode", + "required": false, + "roles": ["value"], + "semanticName": "offload_mode", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": false, + "name": "weight_loading_mode", + "required": false, + "roles": ["value"], + "semanticName": "weight_loading_mode", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": true, + "name": "weight_format", + "required": false, + "roles": ["value"], + "semanticName": "weight_format", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": false, + "name": "unet", + "required": false, + "roles": ["component"], + "semanticName": "unet", + "semantics": { + "kind": "component", + "members": [ + { + "name": "transformer", + "type": "diffusers.models.transformers.transformer_flux3.Flux3Transformer2DModel" + } + ], + "owner": "same_loader", + "scope": "Flux3DistilledModularPipeline", + "state": null + }, + "types": ["diffusers_auto_model"] + }, + { + "direction": "input", + "hidden": false, + "name": "vae", + "required": false, + "roles": ["component"], + "semanticName": "vae", + "semantics": { + "kind": "component", + "members": [ + { "name": "vae", "type": "diffusers.models.autoencoders.autoencoder_kl_flux2.AutoencoderKLFlux2" } + ], + "owner": "same_loader", + "scope": "Flux3DistilledModularPipeline", + "state": null + }, + "types": ["diffusers_auto_model"] + }, + { + "direction": "input", + "hidden": true, + "name": "controlnet", + "required": false, + "roles": ["component"], + "semanticName": "controlnet", + "semantics": { + "kind": "component", + "members": [], + "owner": "same_loader", + "scope": "Flux3DistilledModularPipeline", + "state": null + }, + "types": ["diffusers_auto_model"] + }, + { + "direction": "input", + "hidden": false, + "name": "lora_list", + "required": false, + "roles": ["value"], + "semanticName": "lora_list", + "semantics": { + "kind": "opaque", + "members": [], + "owner": "none", + "scope": "Flux3DistilledModularPipeline", + "state": null + }, + "types": ["custom_lora"] + }, + { + "direction": "output", + "hidden": false, + "name": "text_encoders", + "required": false, + "roles": ["component"], + "semanticName": "text_encoders", + "semantics": { + "kind": "component", + "members": [ + { + "name": "text_encoder", + "type": "transformers.models.qwen3_vl.modeling_qwen3_vl.Qwen3VLForConditionalGeneration" + }, + { "name": "tokenizer", "type": "transformers.models.auto.processing_auto.AutoProcessor" } + ], + "owner": "same_loader", + "scope": "Flux3DistilledModularPipeline", + "state": null + }, + "types": ["diffusers_auto_models"] + }, + { + "direction": "output", + "hidden": false, + "name": "unet_out", + "required": false, + "roles": ["component"], + "semanticName": "unet_out", + "semantics": { + "kind": "component", + "members": [ + { + "name": "transformer", + "type": "diffusers.models.transformers.transformer_flux3.Flux3Transformer2DModel" + } + ], + "owner": "same_loader", + "scope": "Flux3DistilledModularPipeline", + "state": null + }, + "types": ["diffusers_auto_model"] + }, + { + "direction": "output", + "hidden": false, + "name": "vae_out", + "required": false, + "roles": ["component"], + "semanticName": "vae_out", + "semantics": { + "kind": "component", + "members": [ + { "name": "vae", "type": "diffusers.models.autoencoders.autoencoder_kl_flux2.AutoencoderKLFlux2" } + ], + "owner": "same_loader", + "scope": "Flux3DistilledModularPipeline", + "state": null + }, + "types": ["diffusers_auto_model"] + }, + { + "direction": "output", + "hidden": false, + "name": "scheduler", + "required": false, + "roles": ["component"], + "semanticName": "scheduler", + "semantics": { + "kind": "component", + "members": [ + { + "name": "scheduler", + "type": "diffusers.schedulers.scheduling_flow_match_euler_discrete.FlowMatchEulerDiscreteScheduler" + } + ], + "owner": "same_loader", + "scope": "Flux3DistilledModularPipeline", + "state": null + }, + "types": ["diffusers_auto_model"] + }, + { + "direction": "output", + "hidden": true, + "name": "image_encoder", + "required": false, + "roles": ["component"], + "semanticName": "image_encoder", + "semantics": { + "kind": "component", + "members": [], + "owner": "same_loader", + "scope": "Flux3DistilledModularPipeline", + "state": null + }, + "types": ["diffusers_auto_model"] + }, + { + "direction": "output", + "hidden": false, + "name": "pipeline_components", + "required": false, + "roles": ["component"], + "semanticName": "pipeline_components", + "semantics": { + "kind": "component", + "members": [ + { + "name": "image_processor", + "type": "diffusers.modular_pipelines.flux3.image_processor.Flux3ImageProcessor" + }, + { + "name": "scheduler", + "type": "diffusers.schedulers.scheduling_flow_match_euler_discrete.FlowMatchEulerDiscreteScheduler" + }, + { + "name": "text_encoder", + "type": "transformers.models.qwen3_vl.modeling_qwen3_vl.Qwen3VLForConditionalGeneration" + }, + { "name": "tokenizer", "type": "transformers.models.auto.processing_auto.AutoProcessor" }, + { + "name": "transformer", + "type": "diffusers.models.transformers.transformer_flux3.Flux3Transformer2DModel" + }, + { "name": "vae", "type": "diffusers.models.autoencoders.autoencoder_kl_flux2.AutoencoderKLFlux2" } + ], + "owner": "same_loader", + "scope": "Flux3DistilledModularPipeline", + "state": null + }, + "types": ["diffusers_modular_pipeline_components"] + }, + { + "direction": "input", + "hidden": false, + "name": "quant_config", + "required": false, + "roles": ["value"], + "semanticName": "quant_config", + "semantics": { + "kind": "opaque", + "members": [], + "owner": "none", + "scope": "Flux3DistilledModularPipeline", + "state": null + }, + "types": ["quant_config"] + } + ], + "support": "declared", + "task": "text_to_image", + "workflowId": "text2image" + } + }, + { + "node": { + "action": "EncodePrompt", + "cache": false, + "category": "embedding", + "description": "", + "label": "Encode Prompt", + "memory": [0, 0, 0], + "module": "modules.ModularDiffusers", + "params": { + "doc": { "display": "output", "label": "Doc", "type": "string" }, + "embeddings": { "display": "output", "label": "Text Embeddings", "type": "embeddings" }, + "guider": { + "description": "Shared Diffusers guidance used by prompt encoding and denoising when the selected pipeline supports it.", + "display": "input", + "hidden": true, + "label": "Guider", + "type": "custom_guider" + }, + "layout_conditioning": { + "default": null, + "display": "layout", + "fieldOptions": { + "layoutConditioning": { + "schemaVersion": 2, + "sourceRegions": false, + "supportsBoundSourceRegions": true + } + }, + "label": "Layout Conditioning", + "type": "layout_conditioning" + }, + "layout_reference_summary": { + "description": "Display-only ordered reference identities and actual preprocessing sizes from the current encoder cache.", + "display": "output", + "hidden": true, + "label": "Bound Reference Summary", + "type": "string" + }, + "max_sequence_length": { + "default": 8192, + "label": "Maximum Sequence Length", + "max": 8192, + "min": 1, + "step": 1, + "type": "int" + }, + "prompt": { + "default": "", + "display": "textarea", + "fieldOptions": { "exampleAttribution": "MoDiff task example" }, + "label": "Prompt *", + "type": "string", + "value": "A red ceramic teapot on a wooden table beside a window, soft morning light, detailed photograph." + }, + "prompt_input": { + "description": "Optional connected prompt. When connected, this replaces the inline Prompt value.", + "display": "input", + "label": "Prompt Input", + "type": "string" + }, + "reference_binding": { + "default": null, + "display": "input", + "fieldOptions": { "referenceBinding": { "maxReferences": 10, "schemaVersion": 1 } }, + "label": "Reference Binding", + "type": "reference_conditioning" + }, + "text_encoder_out_layers": { + "default": [4, 8, 12, 16, 20, 24, 28, 32], + "display": "select", + "fieldOptions": { "multiple": true, "tupleLength": 8, "tupleValue": true }, + "label": "Text Encoder Layers", + "options": [ + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "0", + "schemaVersion": 1, + "value": "0" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "1", + "schemaVersion": 1, + "value": "1" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "2", + "schemaVersion": 1, + "value": "2" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "3", + "schemaVersion": 1, + "value": "3" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "4", + "schemaVersion": 1, + "value": "4" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "5", + "schemaVersion": 1, + "value": "5" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "6", + "schemaVersion": 1, + "value": "6" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "7", + "schemaVersion": 1, + "value": "7" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "8", + "schemaVersion": 1, + "value": "8" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "9", + "schemaVersion": 1, + "value": "9" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "10", + "schemaVersion": 1, + "value": "10" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "11", + "schemaVersion": 1, + "value": "11" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "12", + "schemaVersion": 1, + "value": "12" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "13", + "schemaVersion": 1, + "value": "13" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "14", + "schemaVersion": 1, + "value": "14" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "15", + "schemaVersion": 1, + "value": "15" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "16", + "schemaVersion": 1, + "value": "16" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "17", + "schemaVersion": 1, + "value": "17" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "18", + "schemaVersion": 1, + "value": "18" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "19", + "schemaVersion": 1, + "value": "19" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "20", + "schemaVersion": 1, + "value": "20" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "21", + "schemaVersion": 1, + "value": "21" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "22", + "schemaVersion": 1, + "value": "22" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "23", + "schemaVersion": 1, + "value": "23" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "24", + "schemaVersion": 1, + "value": "24" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "25", + "schemaVersion": 1, + "value": "25" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "26", + "schemaVersion": 1, + "value": "26" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "27", + "schemaVersion": 1, + "value": "27" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "28", + "schemaVersion": 1, + "value": "28" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "29", + "schemaVersion": 1, + "value": "29" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "30", + "schemaVersion": 1, + "value": "30" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "31", + "schemaVersion": 1, + "value": "31" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "32", + "schemaVersion": 1, + "value": "32" + } + ], + "type": "int" + }, + "text_encoders": { + "display": "input", + "label": "Text Encoders *", + "onSignal": "update_node", + "required": true, + "signalCompatibility": { "role": "text_encoders" }, + "type": "diffusers_auto_models" + } + }, + "resizable": true, + "skipParamsCheck": true, + "style": {}, + "time": [0, 0, 0], + "type": "custom" + }, + "operation": { + "binding": { "pipelineClass": "Flux3DistilledModularPipeline", "values": {} }, + "blockName": "text_encoder", + "decomposition": "block", + "nodeKey": "modules.ModularDiffusers.EncodePrompt", + "nodeType": "text_encoder", + "operationId": "diffusion.encode_prompt", + "pipelineClass": "Flux3DistilledModularPipeline", + "ports": [ + { + "direction": "input", + "hidden": false, + "name": "prompt", + "required": true, + "roles": ["value"], + "semanticName": "prompt", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": false, + "name": "max_sequence_length", + "required": false, + "roles": ["value"], + "semanticName": "max_sequence_length", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["int"] + }, + { + "direction": "input", + "hidden": false, + "name": "text_encoder_out_layers", + "required": false, + "roles": ["value"], + "semanticName": "text_encoder_out_layers", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["int"] + }, + { + "direction": "input", + "hidden": false, + "name": "text_encoders", + "required": true, + "roles": ["component"], + "semanticName": "text_encoders", + "semantics": { + "kind": "component", + "members": [ + { + "name": "text_encoder", + "type": "transformers.models.qwen3_vl.modeling_qwen3_vl.Qwen3VLForConditionalGeneration" + }, + { "name": "tokenizer", "type": "transformers.models.auto.processing_auto.AutoProcessor" } + ], + "owner": "same_loader", + "scope": "Flux3DistilledModularPipeline", + "state": null + }, + "types": ["diffusers_auto_models"] + }, + { + "direction": "output", + "hidden": false, + "name": "embeddings", + "required": false, + "roles": ["value"], + "semanticName": "embeddings", + "semantics": { + "kind": "conditioning", + "members": [], + "owner": "same_loader", + "scope": "Flux3DistilledModularPipeline", + "state": null + }, + "types": ["embeddings"] + }, + { + "direction": "output", + "hidden": false, + "name": "doc", + "required": false, + "roles": ["value"], + "semanticName": "doc", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": false, + "name": "layout_conditioning", + "required": false, + "roles": ["value"], + "semanticName": "layout_conditioning", + "semantics": { + "kind": "opaque", + "members": [], + "owner": "none", + "scope": "Flux3DistilledModularPipeline", + "state": null + }, + "types": ["layout_conditioning"] + }, + { + "direction": "input", + "hidden": false, + "name": "reference_binding", + "required": false, + "roles": ["value"], + "semanticName": "reference_binding", + "semantics": { + "kind": "opaque", + "members": [], + "owner": "none", + "scope": "Flux3DistilledModularPipeline", + "state": null + }, + "types": ["reference_conditioning"] + }, + { + "direction": "input", + "hidden": false, + "name": "prompt_input", + "required": false, + "roles": ["value"], + "semanticName": "prompt", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + } + ], + "support": "declared", + "task": "text_to_image", + "workflowId": "text2image" + } + }, + { + "node": { + "action": "Denoise", + "cache": false, + "category": "sampler", + "description": "", + "label": "Denoise", + "memory": [0, 0, 0], + "module": "modules.ModularDiffusers", + "params": { + "doc": { "display": "output", "label": "Doc", "type": "string" }, + "embeddings": { "display": "input", "label": "Text Embeddings *", "type": "embeddings" }, + "height": { "default": 1024, "label": "Height", "min": 64, "step": 16, "type": "int" }, + "image_cond_latents": { "display": "input", "label": "Reference Latents", "type": "latents" }, + "latents": { "display": "output", "label": "Latents", "type": "latents" }, + "num_images_per_prompt": { + "default": 1, + "label": "Images Per Prompt", + "max": 8, + "min": 1, + "step": 1, + "type": "int" + }, + "num_inference_steps": { + "default": 16, + "display": "slider", + "label": "Steps", + "max": 100, + "min": 1, + "type": "int" + }, + "reference_binding": { + "default": null, + "display": "input", + "fieldOptions": { "referenceBinding": { "maxReferences": 10, "schemaVersion": 1 } }, + "label": "Reference Binding", + "type": "reference_conditioning" + }, + "scheduler": { + "display": "input", + "label": "Scheduler *", + "signalCompatibility": { "role": "scheduler" }, + "type": "diffusers_auto_model" + }, + "seed": { + "default": 0, + "display": "random", + "label": "Seed", + "max": 4294967295, + "min": 0, + "type": "int" + }, + "unet": { + "display": "input", + "label": "Denoise Model *", + "onSignal": [ + "update_node", + { "action": "signal", "target": "guider" }, + { "action": "signal", "target": "controlnet_bundle" } + ], + "required": true, + "signalCompatibility": { "role": "denoiser" }, + "type": "diffusers_auto_model" + }, + "width": { "default": 1024, "label": "Width", "min": 64, "step": 16, "type": "int" } + }, + "resizable": true, + "skipParamsCheck": true, + "style": {}, + "time": [0, 0, 0], + "type": "custom" + }, + "operation": { + "binding": { "pipelineClass": "Flux3DistilledModularPipeline", "values": {} }, + "blockName": "denoise", + "decomposition": "block", + "nodeKey": "modules.ModularDiffusers.Denoise", + "nodeType": "denoise", + "operationId": "diffusion.denoise", + "pipelineClass": "Flux3DistilledModularPipeline", + "ports": [ + { + "direction": "input", + "hidden": false, + "name": "embeddings", + "required": true, + "roles": ["value"], + "semanticName": "embeddings", + "semantics": { + "kind": "conditioning", + "members": [], + "owner": "same_loader", + "scope": "Flux3DistilledModularPipeline", + "state": null + }, + "types": ["embeddings"] + }, + { + "direction": "input", + "hidden": false, + "name": "width", + "required": false, + "roles": ["value"], + "semanticName": "width", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["int"] + }, + { + "direction": "input", + "hidden": false, + "name": "height", + "required": false, + "roles": ["value"], + "semanticName": "height", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["int"] + }, + { + "direction": "input", + "hidden": false, + "name": "seed", + "required": false, + "roles": ["value"], + "semanticName": "seed", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["int"] + }, + { + "direction": "input", + "hidden": false, + "name": "num_inference_steps", + "required": false, + "roles": ["value"], + "semanticName": "num_inference_steps", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["int"] + }, + { + "direction": "input", + "hidden": false, + "name": "num_images_per_prompt", + "required": false, + "roles": ["value"], + "semanticName": "num_images_per_prompt", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["int"] + }, + { + "direction": "input", + "hidden": false, + "name": "image_cond_latents", + "required": false, + "roles": ["value"], + "semanticName": "image_cond_latents", + "semantics": { + "kind": "latents", + "members": [], + "owner": "same_loader", + "scope": "Flux3DistilledModularPipeline", + "state": null + }, + "types": ["latents"] + }, + { + "direction": "input", + "hidden": false, + "name": "unet", + "required": true, + "roles": ["component"], + "semanticName": "unet", + "semantics": { + "kind": "component", + "members": [ + { + "name": "transformer", + "type": "diffusers.models.transformers.transformer_flux3.Flux3Transformer2DModel" + } + ], + "owner": "same_loader", + "scope": "Flux3DistilledModularPipeline", + "state": null + }, + "types": ["diffusers_auto_model"] + }, + { + "direction": "input", + "hidden": false, + "name": "scheduler", + "required": true, + "roles": ["component"], + "semanticName": "scheduler", + "semantics": { + "kind": "component", + "members": [ + { + "name": "scheduler", + "type": "diffusers.schedulers.scheduling_flow_match_euler_discrete.FlowMatchEulerDiscreteScheduler" + } + ], + "owner": "same_loader", + "scope": "Flux3DistilledModularPipeline", + "state": null + }, + "types": ["diffusers_auto_model"] + }, + { + "direction": "output", + "hidden": false, + "name": "latents", + "required": false, + "roles": ["value"], + "semanticName": "latents", + "semantics": { + "kind": "latents", + "members": [], + "owner": "same_loader", + "scope": "Flux3DistilledModularPipeline", + "state": null + }, + "types": ["latents"] + }, + { + "direction": "output", + "hidden": false, + "name": "doc", + "required": false, + "roles": ["value"], + "semanticName": "doc", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": false, + "name": "reference_binding", + "required": false, + "roles": ["value"], + "semanticName": "reference_binding", + "semantics": { + "kind": "opaque", + "members": [], + "owner": "none", + "scope": "Flux3DistilledModularPipeline", + "state": null + }, + "types": ["reference_conditioning"] + } + ], + "support": "declared", + "task": "text_to_image", + "workflowId": "text2image" + } + }, + { + "node": { + "action": "DecodeLatents", + "cache": false, + "category": "sampler", + "description": "", + "label": "Decode Latents", + "memory": [0, 0, 0], + "module": "modules.ModularDiffusers", + "params": { + "doc": { "display": "output", "label": "Doc", "type": "string" }, + "images": { "display": "output", "label": "Images", "type": "image" }, + "latents": { "display": "input", "label": "Latents *", "type": "latents" }, + "vae": { + "display": "input", + "label": "VAE *", + "onSignal": "update_node", + "signalCompatibility": { "role": "vae" }, + "type": "diffusers_auto_model" + } + }, + "resizable": true, + "skipParamsCheck": true, + "style": {}, + "time": [0, 0, 0], + "type": "custom" + }, + "operation": { + "binding": { "pipelineClass": "Flux3DistilledModularPipeline", "values": {} }, + "blockName": "decode", + "decomposition": "block", + "nodeKey": "modules.ModularDiffusers.DecodeLatents", + "nodeType": "decoder", + "operationId": "diffusion.decode_latents", + "pipelineClass": "Flux3DistilledModularPipeline", + "ports": [ + { + "direction": "input", + "hidden": false, + "name": "latents", + "required": true, + "roles": ["value"], + "semanticName": "latents", + "semantics": { + "kind": "latents", + "members": [], + "owner": "same_loader", + "scope": "Flux3DistilledModularPipeline", + "state": null + }, + "types": ["latents"] + }, + { + "direction": "input", + "hidden": false, + "name": "vae", + "required": true, + "roles": ["component"], + "semanticName": "vae", + "semantics": { + "kind": "component", + "members": [ + { "name": "vae", "type": "diffusers.models.autoencoders.autoencoder_kl_flux2.AutoencoderKLFlux2" } + ], + "owner": "same_loader", + "scope": "Flux3DistilledModularPipeline", + "state": null + }, + "types": ["diffusers_auto_model"] + }, + { + "direction": "output", + "hidden": false, + "name": "images", + "required": false, + "roles": ["value"], + "semanticName": "images", + "semantics": { "kind": "media", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["image"] + }, + { + "direction": "output", + "hidden": false, + "name": "doc", + "required": false, + "roles": ["value"], + "semanticName": "doc", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + } + ], + "support": "declared", + "task": "text_to_image", + "workflowId": "text2image" + } + } + ], + "pipelineClass": "Flux3DistilledModularPipeline", + "requiredInputs": [{ "field": "prompt", "operationId": "diffusion.encode_prompt" }], + "schemaVersion": 1, + "sharedInputs": [], + "task": "text_to_image", + "upstreamBlocks": ["text_encoder", "denoise", "decode"], + "workflowId": "text2image" + } + }, + { + "selection": { "pipelineClass": "Flux3ModularPipeline", "task": "text_to_image" }, + "starter": { + "edges": [ + { + "source": "diffusion.load_models", + "sourceHandle": "text_encoders", + "target": "diffusion.encode_prompt", + "targetHandle": "text_encoders" + }, + { + "source": "diffusion.load_models", + "sourceHandle": "scheduler", + "target": "diffusion.denoise", + "targetHandle": "scheduler" + }, + { + "source": "diffusion.load_models", + "sourceHandle": "unet_out", + "target": "diffusion.denoise", + "targetHandle": "unet" + }, + { + "source": "diffusion.load_models", + "sourceHandle": "vae_out", + "target": "diffusion.decode_latents", + "targetHandle": "vae" + }, + { + "source": "diffusion.encode_prompt", + "sourceHandle": "embeddings", + "target": "diffusion.denoise", + "targetHandle": "embeddings" + }, + { + "source": "diffusion.denoise", + "sourceHandle": "latents", + "target": "diffusion.decode_latents", + "targetHandle": "latents" + }, + { + "source": "diffusion.guidance", + "sourceHandle": "guider_out", + "target": "diffusion.denoise", + "targetHandle": "guider" + } + ], + "nodes": [ + { + "node": { + "action": "ModelsLoader", + "cache": false, + "category": "loader", + "description": "", + "label": "Load Models", + "memory": [0, 0, 0], + "module": "modules.ModularDiffusers", + "params": { + "attention_backend": { + "default": "inherit", + "description": "Inherit preserves existing native component defaults; explicit choices use the ordinary Diffusers attention API.", + "label": "Attention Backend", + "options": [ + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "inherit", + "schemaVersion": 1, + "value": "inherit" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "auto", + "schemaVersion": 1, + "value": "auto" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "native", + "schemaVersion": 1, + "value": "native" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "_native_math", + "schemaVersion": 1, + "value": "_native_math" + } + ], + "type": "string" + }, + "auto_offload": { "label": "Enable Auto Offload", "type": "boolean", "value": true }, + "controlnet": { + "display": "input", + "hidden": true, + "label": "ControlNet", + "type": "diffusers_auto_model" + }, + "device": { + "label": "Device", + "options": { + "cpu": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "cpu", + "schemaVersion": 1, + "value": "cpu" + }, + "cpu:0": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "cpu:0", + "schemaVersion": 1, + "value": "cpu:0" + } + }, + "type": "string", + "value": "cpu:0" + }, + "dtype": { + "label": "dtype", + "options": [ + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "float32", + "schemaVersion": 1, + "value": "float32" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "float16", + "schemaVersion": 1, + "value": "float16" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "bfloat16", + "schemaVersion": 1, + "value": "bfloat16" + } + ], + "value": "bfloat16" + }, + "image_encoder": { + "connectionRole": "image_encoder", + "display": "output", + "hidden": true, + "label": "Image Encoder", + "signal": { + "direction": "output", + "origin": "modiff_pipeline_identity", + "value": "Flux3ModularPipeline" + }, + "type": "diffusers_auto_model" + }, + "inpaint_compatibility": { + "default": "native", + "description": "Technical compatibility selection for the reviewed Qwen Edit inpainting candidate; existing nodes retain native policy.", + "hidden": true, + "label": "Inpaint Compatibility", + "options": [ + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "native", + "schemaVersion": 1, + "value": "native" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "whole_v1", + "schemaVersion": 1, + "value": "whole_v1" + } + ], + "type": "string" + }, + "lora_list": { "display": "input", "label": "Lora", "type": "custom_lora" }, + "model_type": { + "description": "Selects the Modular Diffusers pipeline class. This filters compatible checkpoints and publishes the component contract used by connected nodes; it is not the model checkpoint itself.", + "label": "Pipeline Type", + "onChange": "set_filters", + "options": { + "": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "", + "schemaVersion": 1, + "value": "" + }, + "AnimaModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Anima", + "schemaVersion": 1, + "value": "AnimaModularPipeline" + }, + "Cosmos3DistilledModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Cosmos 3 Distilled", + "schemaVersion": 1, + "value": "Cosmos3DistilledModularPipeline" + }, + "Cosmos3OmniModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Cosmos 3 Nano", + "schemaVersion": 1, + "value": "Cosmos3OmniModularPipeline" + }, + "DummyCustomPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Custom", + "schemaVersion": 1, + "value": "DummyCustomPipeline" + }, + "ErnieImageModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "ERNIE Image Turbo", + "schemaVersion": 1, + "value": "ErnieImageModularPipeline" + }, + "Flux2KleinBaseModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Flux 2 Klein Base", + "schemaVersion": 1, + "value": "Flux2KleinBaseModularPipeline" + }, + "Flux2KleinModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Flux 2 Klein Distilled", + "schemaVersion": 1, + "value": "Flux2KleinModularPipeline" + }, + "Flux2ModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Flux 2", + "schemaVersion": 1, + "value": "Flux2ModularPipeline" + }, + "Flux3DistilledModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "FLUX 3 Image Klein", + "schemaVersion": 1, + "value": "Flux3DistilledModularPipeline" + }, + "Flux3ModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "FLUX 3 Image Klein Base", + "schemaVersion": 1, + "value": "Flux3ModularPipeline" + }, + "FluxKontextModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Flux Kontext", + "schemaVersion": 1, + "value": "FluxKontextModularPipeline" + }, + "FluxModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Flux", + "schemaVersion": 1, + "value": "FluxModularPipeline" + }, + "HeliosModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Helios", + "schemaVersion": 1, + "value": "HeliosModularPipeline" + }, + "HeliosPyramidDistilledModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Helios Pyramid Distilled", + "schemaVersion": 1, + "value": "HeliosPyramidDistilledModularPipeline" + }, + "HeliosPyramidModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Helios Pyramid", + "schemaVersion": 1, + "value": "HeliosPyramidModularPipeline" + }, + "HunyuanVideo15ModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "HunyuanVideo 1.5", + "schemaVersion": 1, + "value": "HunyuanVideo15ModularPipeline" + }, + "Ideogram4ModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Ideogram 4 (Contract only)", + "schemaVersion": 1, + "value": "Ideogram4ModularPipeline" + }, + "Krea2ModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Krea 2 (Contract only)", + "schemaVersion": 1, + "value": "Krea2ModularPipeline" + }, + "Krea2TurboModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Krea 2 Turbo (Contract only)", + "schemaVersion": 1, + "value": "Krea2TurboModularPipeline" + }, + "LTX25ModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "LTX-2.5 (Contract only)", + "schemaVersion": 1, + "value": "LTX25ModularPipeline" + }, + "MiniMaxH3ModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "MiniMax H3", + "schemaVersion": 1, + "value": "MiniMaxH3ModularPipeline" + }, + "MiniMaxMusic3ModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "MiniMax Music 3", + "schemaVersion": 1, + "value": "MiniMaxMusic3ModularPipeline" + }, + "QwenImageEditModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Qwen-Image-Edit", + "schemaVersion": 1, + "value": "QwenImageEditModularPipeline" + }, + "QwenImageEditPlusModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Qwen-Image-Edit-2511", + "schemaVersion": 1, + "value": "QwenImageEditPlusModularPipeline" + }, + "QwenImageLayeredModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Qwen-Image-Layered", + "schemaVersion": 1, + "value": "QwenImageLayeredModularPipeline" + }, + "QwenImageModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Qwen-Image-2512", + "schemaVersion": 1, + "value": "QwenImageModularPipeline" + }, + "StableDiffusion3ModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Stable Diffusion 3 (Contract only)", + "schemaVersion": 1, + "value": "StableDiffusion3ModularPipeline" + }, + "StableDiffusionXLModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Stable Diffusion XL", + "schemaVersion": 1, + "value": "StableDiffusionXLModularPipeline" + }, + "WanAnimate2DistilledModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Wan Animate 2 Distilled", + "schemaVersion": 1, + "value": "WanAnimate2DistilledModularPipeline" + }, + "WanAnimate2ModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Wan Animate 2", + "schemaVersion": 1, + "value": "WanAnimate2ModularPipeline" + }, + "WanImage2VideoModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "WAN2 I2V", + "schemaVersion": 1, + "value": "WanImage2VideoModularPipeline" + }, + "WanModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "WAN2 T2V", + "schemaVersion": 1, + "value": "WanModularPipeline" + }, + "ZImageModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Z-Image", + "schemaVersion": 1, + "value": "ZImageModularPipeline" + } + }, + "type": "string", + "value": "Flux3ModularPipeline" + }, + "modiff_pipeline_identity": { + "hidden": true, + "label": "Custom Pipeline Identity", + "type": "object", + "value": null + }, + "offload_mode": { + "default": "model_cpu", + "label": "Offload Mode", + "options": [ + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "auto_cpu", + "schemaVersion": 1, + "value": "auto_cpu" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "none", + "schemaVersion": 1, + "value": "none" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "model_cpu", + "schemaVersion": 1, + "value": "model_cpu" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "group_cpu", + "schemaVersion": 1, + "value": "group_cpu" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "group_disk", + "schemaVersion": 1, + "value": "group_disk" + } + ], + "type": "string", + "value": "model_cpu" + }, + "pipeline_components": { + "connectionRole": "pipeline_components", + "display": "output", + "hidden": false, + "label": "Pipeline Components", + "signal": { + "direction": "output", + "origin": "modiff_pipeline_identity", + "value": "Flux3ModularPipeline" + }, + "type": "diffusers_modular_pipeline_components" + }, + "quant_config": { "display": "input", "label": "Quant Config", "type": "quant_config" }, + "refresh_pipeline_identity_button": { + "display": "ui_button", + "hidden": true, + "label": "Review and Refresh Custom Contract", + "onChange": "refresh_pipeline_identity", + "value": false + }, + "repo_id": { + "display": "modelselect", + "fieldOptions": { + "filter": { "hub": { "className": ["Flux3ModularPipeline"] } }, + "noValidation": true, + "sources": ["hub", "local"] + }, + "label": "Repository ID", + "onChange": "refresh_pipeline_identity", + "type": "string", + "value": { "source": "hub", "value": "black-forest-labs/flux-3-image-klein-base" } + }, + "reviewed_variant": { + "description": "Select an immutable, reviewed checkpoint for this exact Modular Diffusers pipeline family. Changing it does not replace the workflow graph or reset its parameters.", + "fieldOptions": { "controlTier": "essential" }, + "hidden": true, + "label": "Model", + "options": [ + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "black-forest-labs/flux-3-image-klein-base", + "schemaVersion": 1, + "value": "black-forest-labs/flux-3-image-klein-base" + } + ], + "type": "string", + "value": "black-forest-labs/flux-3-image-klein-base" + }, + "revision": { + "description": "Required exact 40-character commit hash for Hub custom contracts.", + "label": "Revision", + "onChange": "refresh_pipeline_identity", + "type": "string", + "value": "1469d27cfb9bb1bd81d3a93f5a023b39dbf136e4" + }, + "scheduler": { + "connectionRole": "scheduler", + "display": "output", + "hidden": false, + "label": "Scheduler", + "signal": { + "direction": "output", + "origin": "modiff_pipeline_identity", + "value": "Flux3ModularPipeline" + }, + "type": "diffusers_auto_model" + }, + "text_encoders": { + "connectionRole": "text_encoders", + "display": "output", + "hidden": false, + "label": "Text Encoders", + "signal": { + "direction": "output", + "origin": "modiff_pipeline_identity", + "value": "Flux3ModularPipeline" + }, + "type": "diffusers_auto_models" + }, + "trust_remote_code": { + "description": "Repository code execution is disabled; keep this off for contract preview.", + "label": "Trust Remote Code", + "onChange": "refresh_pipeline_identity", + "type": "boolean", + "value": false + }, + "unet": { + "display": "input", + "hidden": false, + "label": "Denoise Model", + "type": "diffusers_auto_model" + }, + "unet_out": { + "connectionRole": "denoiser", + "display": "output", + "hidden": false, + "label": "Denoise Model", + "signal": { + "direction": "output", + "origin": "modiff_pipeline_identity", + "value": "Flux3ModularPipeline" + }, + "type": "diffusers_auto_model" + }, + "vae": { "display": "input", "hidden": false, "label": "VAE", "type": "diffusers_auto_model" }, + "vae_out": { + "connectionRole": "vae", + "display": "output", + "hidden": false, + "label": "VAE", + "signal": { + "direction": "output", + "origin": "modiff_pipeline_identity", + "value": "Flux3ModularPipeline" + }, + "type": "diffusers_auto_model" + }, + "vae_slicing": { + "default": null, + "description": "An unset policy preserves the native VAE configuration; templates may bind an explicit boolean.", + "hidden": true, + "label": "VAE Slicing", + "type": "boolean" + }, + "vae_tiling": { + "default": null, + "description": "An unset policy preserves the native VAE configuration; templates may bind an explicit boolean.", + "hidden": true, + "label": "VAE Tiling", + "type": "boolean" + }, + "weight_format": { + "default": "native", + "description": "Select a backend-declared immutable component format. Missing reviewed files must be installed through Model Manager.", + "fieldOptions": { "controlTier": "advanced" }, + "hidden": false, + "label": "Weight Format", + "options": [ + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "native", + "schemaVersion": 1, + "value": "native" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "fp8r", + "schemaVersion": 1, + "value": "fp8r" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "nvfp4", + "schemaVersion": 1, + "value": "nvfp4" + } + ], + "type": "string" + }, + "weight_loading_mode": { + "default": "cpu", + "description": "Load weights on CPU or CUDA before disk offload. CUDA loading needs room for a complete component and is available only for supported models.", + "fieldOptions": { "controlTier": "advanced" }, + "label": "Weight Loading", + "options": [ + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "cpu", + "schemaVersion": 1, + "value": "cpu" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "cuda", + "schemaVersion": 1, + "value": "cuda" + } + ], + "type": "string" + }, + "workflow_id": { + "description": "Exact reviewed component partition selected by a first-party Cluster Node.", + "hidden": true, + "label": "Reviewed Workflow", + "type": "string", + "value": "text2image" + } + }, + "resizable": true, + "skipParamsCheck": true, + "style": {}, + "time": [0, 0, 0], + "type": "custom" + }, + "operation": { + "binding": { + "pipelineClass": "Flux3ModularPipeline", + "values": { "model_type": "Flux3ModularPipeline" } + }, + "blockName": null, + "decomposition": "loader", + "nodeKey": "modules.ModularDiffusers.ModelsLoader", + "nodeType": "loader", + "operationId": "diffusion.load_models", + "pipelineClass": "Flux3ModularPipeline", + "ports": [ + { + "direction": "input", + "hidden": false, + "name": "model_type", + "required": false, + "roles": ["value"], + "semanticName": "model_type", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": false, + "name": "repo_id", + "required": false, + "roles": ["value"], + "semanticName": "repo_id", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": true, + "name": "reviewed_variant", + "required": false, + "roles": ["value"], + "semanticName": "reviewed_variant", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": false, + "name": "device", + "required": false, + "roles": ["value"], + "semanticName": "device", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": false, + "name": "attention_backend", + "required": false, + "roles": ["value"], + "semanticName": "attention_backend", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": true, + "name": "vae_slicing", + "required": false, + "roles": ["value"], + "semanticName": "vae_slicing", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["boolean"] + }, + { + "direction": "input", + "hidden": true, + "name": "vae_tiling", + "required": false, + "roles": ["value"], + "semanticName": "vae_tiling", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["boolean"] + }, + { + "direction": "input", + "hidden": true, + "name": "inpaint_compatibility", + "required": false, + "roles": ["value"], + "semanticName": "inpaint_compatibility", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": false, + "name": "trust_remote_code", + "required": false, + "roles": ["value"], + "semanticName": "trust_remote_code", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["boolean"] + }, + { + "direction": "input", + "hidden": false, + "name": "revision", + "required": false, + "roles": ["value"], + "semanticName": "revision", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": true, + "name": "workflow_id", + "required": false, + "roles": ["value"], + "semanticName": "workflow_id", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": true, + "name": "modiff_pipeline_identity", + "required": false, + "roles": ["value"], + "semanticName": "modiff_pipeline_identity", + "semantics": { + "kind": "opaque", + "members": [], + "owner": "none", + "scope": "Flux3ModularPipeline", + "state": null + }, + "types": ["object"] + }, + { + "direction": "input", + "hidden": false, + "name": "auto_offload", + "required": false, + "roles": ["value"], + "semanticName": "auto_offload", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["boolean"] + }, + { + "direction": "input", + "hidden": false, + "name": "offload_mode", + "required": false, + "roles": ["value"], + "semanticName": "offload_mode", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": false, + "name": "weight_loading_mode", + "required": false, + "roles": ["value"], + "semanticName": "weight_loading_mode", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": true, + "name": "weight_format", + "required": false, + "roles": ["value"], + "semanticName": "weight_format", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": false, + "name": "unet", + "required": false, + "roles": ["component"], + "semanticName": "unet", + "semantics": { + "kind": "component", + "members": [ + { + "name": "transformer", + "type": "diffusers.models.transformers.transformer_flux3.Flux3Transformer2DModel" + } + ], + "owner": "same_loader", + "scope": "Flux3ModularPipeline", + "state": null + }, + "types": ["diffusers_auto_model"] + }, + { + "direction": "input", + "hidden": false, + "name": "vae", + "required": false, + "roles": ["component"], + "semanticName": "vae", + "semantics": { + "kind": "component", + "members": [ + { "name": "vae", "type": "diffusers.models.autoencoders.autoencoder_kl_flux2.AutoencoderKLFlux2" } + ], + "owner": "same_loader", + "scope": "Flux3ModularPipeline", + "state": null + }, + "types": ["diffusers_auto_model"] + }, + { + "direction": "input", + "hidden": true, + "name": "controlnet", + "required": false, + "roles": ["component"], + "semanticName": "controlnet", + "semantics": { + "kind": "component", + "members": [], + "owner": "same_loader", + "scope": "Flux3ModularPipeline", + "state": null + }, + "types": ["diffusers_auto_model"] + }, + { + "direction": "input", + "hidden": false, + "name": "lora_list", + "required": false, + "roles": ["value"], + "semanticName": "lora_list", + "semantics": { + "kind": "opaque", + "members": [], + "owner": "none", + "scope": "Flux3ModularPipeline", + "state": null + }, + "types": ["custom_lora"] + }, + { + "direction": "output", + "hidden": false, + "name": "text_encoders", + "required": false, + "roles": ["component"], + "semanticName": "text_encoders", + "semantics": { + "kind": "component", + "members": [ + { + "name": "text_encoder", + "type": "transformers.models.qwen3_vl.modeling_qwen3_vl.Qwen3VLForConditionalGeneration" + }, + { "name": "tokenizer", "type": "transformers.models.auto.processing_auto.AutoProcessor" } + ], + "owner": "same_loader", + "scope": "Flux3ModularPipeline", + "state": null + }, + "types": ["diffusers_auto_models"] + }, + { + "direction": "output", + "hidden": false, + "name": "unet_out", + "required": false, + "roles": ["component"], + "semanticName": "unet_out", + "semantics": { + "kind": "component", + "members": [ + { + "name": "transformer", + "type": "diffusers.models.transformers.transformer_flux3.Flux3Transformer2DModel" + } + ], + "owner": "same_loader", + "scope": "Flux3ModularPipeline", + "state": null + }, + "types": ["diffusers_auto_model"] + }, + { + "direction": "output", + "hidden": false, + "name": "vae_out", + "required": false, + "roles": ["component"], + "semanticName": "vae_out", + "semantics": { + "kind": "component", + "members": [ + { "name": "vae", "type": "diffusers.models.autoencoders.autoencoder_kl_flux2.AutoencoderKLFlux2" } + ], + "owner": "same_loader", + "scope": "Flux3ModularPipeline", + "state": null + }, + "types": ["diffusers_auto_model"] + }, + { + "direction": "output", + "hidden": false, + "name": "scheduler", + "required": false, + "roles": ["component"], + "semanticName": "scheduler", + "semantics": { + "kind": "component", + "members": [ + { + "name": "scheduler", + "type": "diffusers.schedulers.scheduling_flow_match_euler_discrete.FlowMatchEulerDiscreteScheduler" + } + ], + "owner": "same_loader", + "scope": "Flux3ModularPipeline", + "state": null + }, + "types": ["diffusers_auto_model"] + }, + { + "direction": "output", + "hidden": true, + "name": "image_encoder", + "required": false, + "roles": ["component"], + "semanticName": "image_encoder", + "semantics": { + "kind": "component", + "members": [], + "owner": "same_loader", + "scope": "Flux3ModularPipeline", + "state": null + }, + "types": ["diffusers_auto_model"] + }, + { + "direction": "output", + "hidden": false, + "name": "pipeline_components", + "required": false, + "roles": ["component"], + "semanticName": "pipeline_components", + "semantics": { + "kind": "component", + "members": [ + { "name": "guider", "type": "diffusers.guiders.classifier_free_guidance.ClassifierFreeGuidance" }, + { + "name": "image_processor", + "type": "diffusers.modular_pipelines.flux3.image_processor.Flux3ImageProcessor" + }, + { + "name": "scheduler", + "type": "diffusers.schedulers.scheduling_flow_match_euler_discrete.FlowMatchEulerDiscreteScheduler" + }, + { + "name": "text_encoder", + "type": "transformers.models.qwen3_vl.modeling_qwen3_vl.Qwen3VLForConditionalGeneration" + }, + { "name": "tokenizer", "type": "transformers.models.auto.processing_auto.AutoProcessor" }, + { + "name": "transformer", + "type": "diffusers.models.transformers.transformer_flux3.Flux3Transformer2DModel" + }, + { "name": "vae", "type": "diffusers.models.autoencoders.autoencoder_kl_flux2.AutoencoderKLFlux2" } + ], + "owner": "same_loader", + "scope": "Flux3ModularPipeline", + "state": null + }, + "types": ["diffusers_modular_pipeline_components"] + }, + { + "direction": "input", + "hidden": false, + "name": "quant_config", + "required": false, + "roles": ["value"], + "semanticName": "quant_config", + "semantics": { + "kind": "opaque", + "members": [], + "owner": "none", + "scope": "Flux3ModularPipeline", + "state": null + }, + "types": ["quant_config"] + } + ], + "support": "declared", + "task": "text_to_image", + "workflowId": "text2image" + } + }, + { + "node": { + "action": "Guider", + "cache": false, + "category": "sampler", + "description": "", + "label": "Guidance", + "memory": [0, 0, 0], + "module": "modules.ModularDiffusers", + "params": { + "enabled": { "label": "Enabled", "type": "boolean", "value": true }, + "guidance_rescale": { + "display": "slider", + "label": "Guidance Rescale", + "max": 10.0, + "min": 0.0, + "step": 0.1, + "type": "float", + "value": 0.0 + }, + "guidance_scale": { + "display": "slider", + "label": "Guidance Scale", + "max": 20.0, + "min": 1.0, + "step": 0.1, + "type": "float", + "value": 5 + }, + "guider": { + "fieldOptions": { "loading": true }, + "label": "Guider", + "onChange": [ + "updateNode", + { + "AutoGuidance": ["layers_config"], + "PerturbedAttentionGuidance": ["layers_config"], + "SkipLayerGuidance": ["layers_config"], + "SmoothedEnergyGuidance": ["layers_config"] + } + ], + "options": [ + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "ClassifierFreeGuidance", + "schemaVersion": 1, + "value": "ClassifierFreeGuidance" + } + ], + "type": "string", + "value": "ClassifierFreeGuidance" + }, + "guider_out": { + "display": "output", + "label": "Guider", + "onSignal": [ + { "action": "value", "target": "model_type" }, + { + "action": "value", + "data": { + "Flux2KleinBaseModularPipeline": ["ClassifierFreeGuidance"], + "Flux3ModularPipeline": ["ClassifierFreeGuidance"], + "FluxKontextModularPipeline": ["ClassifierFreeGuidance"], + "FluxModularPipeline": ["ClassifierFreeGuidance"], + "QwenImageEditModularPipeline": [ + "ClassifierFreeGuidance", + "SkipLayerGuidance", + "AdaptiveProjectedGuidance", + "AdaptiveProjectedMixGuidance", + "MagnitudeAwareGuidance", + "ClassifierFreeZeroStarGuidance", + "AutoGuidance", + "SmoothedEnergyGuidance", + "PerturbedAttentionGuidance", + "TangentialClassifierFreeGuidance", + "FrequencyDecoupledGuidance" + ], + "QwenImageEditPlusModularPipeline": [ + "ClassifierFreeGuidance", + "SkipLayerGuidance", + "AdaptiveProjectedGuidance", + "AdaptiveProjectedMixGuidance", + "MagnitudeAwareGuidance", + "ClassifierFreeZeroStarGuidance", + "AutoGuidance", + "SmoothedEnergyGuidance", + "PerturbedAttentionGuidance", + "TangentialClassifierFreeGuidance", + "FrequencyDecoupledGuidance" + ], + "QwenImageLayeredModularPipeline": [ + "ClassifierFreeGuidance", + "AdaptiveProjectedGuidance", + "AdaptiveProjectedMixGuidance", + "MagnitudeAwareGuidance", + "ClassifierFreeZeroStarGuidance", + "TangentialClassifierFreeGuidance", + "FrequencyDecoupledGuidance" + ], + "QwenImageModularPipeline": [ + "ClassifierFreeGuidance", + "SkipLayerGuidance", + "AdaptiveProjectedGuidance", + "AdaptiveProjectedMixGuidance", + "MagnitudeAwareGuidance", + "ClassifierFreeZeroStarGuidance", + "AutoGuidance", + "SmoothedEnergyGuidance", + "PerturbedAttentionGuidance", + "TangentialClassifierFreeGuidance", + "FrequencyDecoupledGuidance" + ], + "StableDiffusionXLModularPipeline": [ + "ClassifierFreeGuidance", + "SkipLayerGuidance", + "AdaptiveProjectedGuidance", + "AdaptiveProjectedMixGuidance", + "MagnitudeAwareGuidance", + "ClassifierFreeZeroStarGuidance", + "AutoGuidance", + "SmoothedEnergyGuidance", + "PerturbedAttentionGuidance", + "TangentialClassifierFreeGuidance", + "FrequencyDecoupledGuidance" + ], + "WanImage2VideoModularPipeline": [ + "ClassifierFreeGuidance", + "AdaptiveProjectedGuidance", + "AdaptiveProjectedMixGuidance", + "MagnitudeAwareGuidance", + "ClassifierFreeZeroStarGuidance", + "TangentialClassifierFreeGuidance", + "FrequencyDecoupledGuidance" + ], + "WanModularPipeline": [ + "ClassifierFreeGuidance", + "AdaptiveProjectedGuidance", + "AdaptiveProjectedMixGuidance", + "MagnitudeAwareGuidance", + "ClassifierFreeZeroStarGuidance", + "TangentialClassifierFreeGuidance", + "FrequencyDecoupledGuidance" + ], + "ZImageModularPipeline": [ + "ClassifierFreeGuidance", + "AdaptiveProjectedGuidance", + "AdaptiveProjectedMixGuidance", + "MagnitudeAwareGuidance", + "ClassifierFreeZeroStarGuidance", + "TangentialClassifierFreeGuidance", + "FrequencyDecoupledGuidance" + ] + }, + "prop": "options", + "target": "guider" + }, + { "action": "signal", "target": "layers_config" } + ], + "signalCompatibility": { + "values": { + "Flux2KleinBaseModularPipeline": ["ClassifierFreeGuidance"], + "Flux3ModularPipeline": ["ClassifierFreeGuidance"], + "FluxKontextModularPipeline": ["ClassifierFreeGuidance"], + "FluxModularPipeline": ["ClassifierFreeGuidance"], + "QwenImageEditModularPipeline": [ + "ClassifierFreeGuidance", + "SkipLayerGuidance", + "AdaptiveProjectedGuidance", + "AdaptiveProjectedMixGuidance", + "MagnitudeAwareGuidance", + "ClassifierFreeZeroStarGuidance", + "AutoGuidance", + "SmoothedEnergyGuidance", + "PerturbedAttentionGuidance", + "TangentialClassifierFreeGuidance", + "FrequencyDecoupledGuidance" + ], + "QwenImageEditPlusModularPipeline": [ + "ClassifierFreeGuidance", + "SkipLayerGuidance", + "AdaptiveProjectedGuidance", + "AdaptiveProjectedMixGuidance", + "MagnitudeAwareGuidance", + "ClassifierFreeZeroStarGuidance", + "AutoGuidance", + "SmoothedEnergyGuidance", + "PerturbedAttentionGuidance", + "TangentialClassifierFreeGuidance", + "FrequencyDecoupledGuidance" + ], + "QwenImageLayeredModularPipeline": [ + "ClassifierFreeGuidance", + "AdaptiveProjectedGuidance", + "AdaptiveProjectedMixGuidance", + "MagnitudeAwareGuidance", + "ClassifierFreeZeroStarGuidance", + "TangentialClassifierFreeGuidance", + "FrequencyDecoupledGuidance" + ], + "QwenImageModularPipeline": [ + "ClassifierFreeGuidance", + "SkipLayerGuidance", + "AdaptiveProjectedGuidance", + "AdaptiveProjectedMixGuidance", + "MagnitudeAwareGuidance", + "ClassifierFreeZeroStarGuidance", + "AutoGuidance", + "SmoothedEnergyGuidance", + "PerturbedAttentionGuidance", + "TangentialClassifierFreeGuidance", + "FrequencyDecoupledGuidance" + ], + "StableDiffusionXLModularPipeline": [ + "ClassifierFreeGuidance", + "SkipLayerGuidance", + "AdaptiveProjectedGuidance", + "AdaptiveProjectedMixGuidance", + "MagnitudeAwareGuidance", + "ClassifierFreeZeroStarGuidance", + "AutoGuidance", + "SmoothedEnergyGuidance", + "PerturbedAttentionGuidance", + "TangentialClassifierFreeGuidance", + "FrequencyDecoupledGuidance" + ], + "WanImage2VideoModularPipeline": [ + "ClassifierFreeGuidance", + "AdaptiveProjectedGuidance", + "AdaptiveProjectedMixGuidance", + "MagnitudeAwareGuidance", + "ClassifierFreeZeroStarGuidance", + "TangentialClassifierFreeGuidance", + "FrequencyDecoupledGuidance" + ], + "WanModularPipeline": [ + "ClassifierFreeGuidance", + "AdaptiveProjectedGuidance", + "AdaptiveProjectedMixGuidance", + "MagnitudeAwareGuidance", + "ClassifierFreeZeroStarGuidance", + "TangentialClassifierFreeGuidance", + "FrequencyDecoupledGuidance" + ], + "ZImageModularPipeline": [ + "ClassifierFreeGuidance", + "AdaptiveProjectedGuidance", + "AdaptiveProjectedMixGuidance", + "MagnitudeAwareGuidance", + "ClassifierFreeZeroStarGuidance", + "TangentialClassifierFreeGuidance", + "FrequencyDecoupledGuidance" + ] + } + }, + "type": "custom_guider" + }, + "layers_config": { "display": "input", "label": "Layers", "type": "layers_config" }, + "model_type": { "default": "", "hidden": true, "type": "string", "value": "Flux3ModularPipeline" }, + "start": { + "display": "slider", + "label": "Start", + "max": 1.0, + "min": 0.0, + "step": 0.01, + "type": "float", + "value": 0.0 + }, + "stop": { + "display": "slider", + "label": "Stop", + "max": 1.0, + "min": 0.01, + "step": 0.01, + "type": "float", + "value": 1.0 + }, + "use_original_formulation": { "label": "Original Formulation", "type": "boolean", "value": false } + }, + "resizable": true, + "skipParamsCheck": true, + "style": {}, + "time": [0, 0, 0], + "type": "custom" + }, + "operation": { + "binding": { + "pipelineClass": "Flux3ModularPipeline", + "values": { "model_type": "Flux3ModularPipeline" } + }, + "blockName": null, + "decomposition": "bundle", + "nodeKey": "modules.ModularDiffusers.Guider", + "nodeType": "guidance", + "operationId": "diffusion.guidance", + "pipelineClass": "Flux3ModularPipeline", + "ports": [ + { + "direction": "input", + "hidden": true, + "name": "model_type", + "required": false, + "roles": ["value"], + "semanticName": "model_type", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": false, + "name": "guider", + "required": false, + "roles": ["value"], + "semanticName": "guider", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": false, + "name": "guidance_scale", + "required": false, + "roles": ["value"], + "semanticName": "guidance_scale", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["float"] + }, + { + "direction": "input", + "hidden": false, + "name": "guidance_rescale", + "required": false, + "roles": ["value"], + "semanticName": "guidance_rescale", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["float"] + }, + { + "direction": "input", + "hidden": false, + "name": "use_original_formulation", + "required": false, + "roles": ["value"], + "semanticName": "use_original_formulation", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["boolean"] + }, + { + "direction": "input", + "hidden": false, + "name": "enabled", + "required": false, + "roles": ["value"], + "semanticName": "enabled", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["boolean"] + }, + { + "direction": "input", + "hidden": false, + "name": "start", + "required": false, + "roles": ["value"], + "semanticName": "start", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["float"] + }, + { + "direction": "input", + "hidden": false, + "name": "stop", + "required": false, + "roles": ["value"], + "semanticName": "stop", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["float"] + }, + { + "direction": "output", + "hidden": false, + "name": "guider_out", + "required": false, + "roles": ["component"], + "semanticName": "guider_out", + "semantics": { + "kind": "component", + "members": [], + "owner": "same_loader", + "scope": "Flux3ModularPipeline", + "state": null + }, + "types": ["custom_guider"] + }, + { + "direction": "input", + "hidden": false, + "name": "layers_config", + "required": false, + "roles": ["value"], + "semanticName": "layers_config", + "semantics": { + "kind": "opaque", + "members": [], + "owner": "none", + "scope": "Flux3ModularPipeline", + "state": null + }, + "types": ["layers_config"] + } + ], + "support": "declared", + "task": "text_to_image", + "workflowId": "text2image" + } + }, + { + "node": { + "action": "EncodePrompt", + "cache": false, + "category": "embedding", + "description": "", + "label": "Encode Prompt", + "memory": [0, 0, 0], + "module": "modules.ModularDiffusers", + "params": { + "doc": { "display": "output", "label": "Doc", "type": "string" }, + "embeddings": { "display": "output", "label": "Text Embeddings", "type": "embeddings" }, + "guider": { + "description": "Shared Diffusers guidance used by prompt encoding and denoising when the selected pipeline supports it.", + "display": "input", + "hidden": true, + "label": "Guider", + "type": "custom_guider" + }, + "layout_conditioning": { + "default": null, + "display": "layout", + "fieldOptions": { + "layoutConditioning": { + "schemaVersion": 2, + "sourceRegions": false, + "supportsBoundSourceRegions": true + } + }, + "label": "Layout Conditioning", + "type": "layout_conditioning" + }, + "layout_reference_summary": { + "description": "Display-only ordered reference identities and actual preprocessing sizes from the current encoder cache.", + "display": "output", + "hidden": true, + "label": "Bound Reference Summary", + "type": "string" + }, + "max_sequence_length": { + "default": 8192, + "label": "Maximum Sequence Length", + "max": 8192, + "min": 1, + "step": 1, + "type": "int" + }, + "negative_prompt": { + "default": "", + "display": "textarea", + "label": "Negative Prompt", + "type": "string" + }, + "prompt": { + "default": "", + "display": "textarea", + "fieldOptions": { "exampleAttribution": "MoDiff task example" }, + "label": "Prompt *", + "type": "string", + "value": "A red ceramic teapot on a wooden table beside a window, soft morning light, detailed photograph." + }, + "prompt_input": { + "description": "Optional connected prompt. When connected, this replaces the inline Prompt value.", + "display": "input", + "label": "Prompt Input", + "type": "string" + }, + "reference_binding": { + "default": null, + "display": "input", + "fieldOptions": { "referenceBinding": { "maxReferences": 10, "schemaVersion": 1 } }, + "label": "Reference Binding", + "type": "reference_conditioning" + }, + "text_encoder_out_layers": { + "default": [4, 8, 12, 16, 20, 24, 28, 32], + "display": "select", + "fieldOptions": { "multiple": true, "tupleLength": 8, "tupleValue": true }, + "label": "Text Encoder Layers", + "options": [ + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "0", + "schemaVersion": 1, + "value": "0" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "1", + "schemaVersion": 1, + "value": "1" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "2", + "schemaVersion": 1, + "value": "2" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "3", + "schemaVersion": 1, + "value": "3" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "4", + "schemaVersion": 1, + "value": "4" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "5", + "schemaVersion": 1, + "value": "5" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "6", + "schemaVersion": 1, + "value": "6" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "7", + "schemaVersion": 1, + "value": "7" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "8", + "schemaVersion": 1, + "value": "8" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "9", + "schemaVersion": 1, + "value": "9" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "10", + "schemaVersion": 1, + "value": "10" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "11", + "schemaVersion": 1, + "value": "11" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "12", + "schemaVersion": 1, + "value": "12" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "13", + "schemaVersion": 1, + "value": "13" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "14", + "schemaVersion": 1, + "value": "14" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "15", + "schemaVersion": 1, + "value": "15" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "16", + "schemaVersion": 1, + "value": "16" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "17", + "schemaVersion": 1, + "value": "17" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "18", + "schemaVersion": 1, + "value": "18" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "19", + "schemaVersion": 1, + "value": "19" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "20", + "schemaVersion": 1, + "value": "20" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "21", + "schemaVersion": 1, + "value": "21" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "22", + "schemaVersion": 1, + "value": "22" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "23", + "schemaVersion": 1, + "value": "23" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "24", + "schemaVersion": 1, + "value": "24" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "25", + "schemaVersion": 1, + "value": "25" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "26", + "schemaVersion": 1, + "value": "26" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "27", + "schemaVersion": 1, + "value": "27" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "28", + "schemaVersion": 1, + "value": "28" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "29", + "schemaVersion": 1, + "value": "29" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "30", + "schemaVersion": 1, + "value": "30" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "31", + "schemaVersion": 1, + "value": "31" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "32", + "schemaVersion": 1, + "value": "32" + } + ], + "type": "int" + }, + "text_encoders": { + "display": "input", + "label": "Text Encoders *", + "onSignal": "update_node", + "required": true, + "signalCompatibility": { "role": "text_encoders" }, + "type": "diffusers_auto_models" + } + }, + "resizable": true, + "skipParamsCheck": true, + "style": {}, + "time": [0, 0, 0], + "type": "custom" + }, + "operation": { + "binding": { "pipelineClass": "Flux3ModularPipeline", "values": {} }, + "blockName": "text_encoder", + "decomposition": "block", + "nodeKey": "modules.ModularDiffusers.EncodePrompt", + "nodeType": "text_encoder", + "operationId": "diffusion.encode_prompt", + "pipelineClass": "Flux3ModularPipeline", + "ports": [ + { + "direction": "input", + "hidden": false, + "name": "prompt", + "required": true, + "roles": ["value"], + "semanticName": "prompt", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": false, + "name": "negative_prompt", + "required": false, + "roles": ["value"], + "semanticName": "negative_prompt", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": false, + "name": "max_sequence_length", + "required": false, + "roles": ["value"], + "semanticName": "max_sequence_length", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["int"] + }, + { + "direction": "input", + "hidden": false, + "name": "text_encoder_out_layers", + "required": false, + "roles": ["value"], + "semanticName": "text_encoder_out_layers", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["int"] + }, + { + "direction": "input", + "hidden": false, + "name": "text_encoders", + "required": true, + "roles": ["component"], + "semanticName": "text_encoders", + "semantics": { + "kind": "component", + "members": [ + { + "name": "text_encoder", + "type": "transformers.models.qwen3_vl.modeling_qwen3_vl.Qwen3VLForConditionalGeneration" + }, + { "name": "tokenizer", "type": "transformers.models.auto.processing_auto.AutoProcessor" } + ], + "owner": "same_loader", + "scope": "Flux3ModularPipeline", + "state": null + }, + "types": ["diffusers_auto_models"] + }, + { + "direction": "output", + "hidden": false, + "name": "embeddings", + "required": false, + "roles": ["value"], + "semanticName": "embeddings", + "semantics": { + "kind": "conditioning", + "members": [], + "owner": "same_loader", + "scope": "Flux3ModularPipeline", + "state": null + }, + "types": ["embeddings"] + }, + { + "direction": "output", + "hidden": false, + "name": "doc", + "required": false, + "roles": ["value"], + "semanticName": "doc", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": false, + "name": "layout_conditioning", + "required": false, + "roles": ["value"], + "semanticName": "layout_conditioning", + "semantics": { + "kind": "opaque", + "members": [], + "owner": "none", + "scope": "Flux3ModularPipeline", + "state": null + }, + "types": ["layout_conditioning"] + }, + { + "direction": "input", + "hidden": false, + "name": "reference_binding", + "required": false, + "roles": ["value"], + "semanticName": "reference_binding", + "semantics": { + "kind": "opaque", + "members": [], + "owner": "none", + "scope": "Flux3ModularPipeline", + "state": null + }, + "types": ["reference_conditioning"] + }, + { + "direction": "input", + "hidden": false, + "name": "prompt_input", + "required": false, + "roles": ["value"], + "semanticName": "prompt", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + } + ], + "support": "declared", + "task": "text_to_image", + "workflowId": "text2image" + } + }, + { + "node": { + "action": "Denoise", + "cache": false, + "category": "sampler", + "description": "", + "label": "Denoise", + "memory": [0, 0, 0], + "module": "modules.ModularDiffusers", + "params": { + "doc": { "display": "output", "label": "Doc", "type": "string" }, + "embeddings": { "display": "input", "label": "Text Embeddings *", "type": "embeddings" }, + "guider": { "display": "input", "label": "Guider", "type": "custom_guider" }, + "height": { "default": 1024, "label": "Height", "min": 64, "step": 16, "type": "int" }, + "image_cond_latents": { "display": "input", "label": "Reference Latents", "type": "latents" }, + "latents": { "display": "output", "label": "Latents", "type": "latents" }, + "num_images_per_prompt": { + "default": 1, + "label": "Images Per Prompt", + "max": 8, + "min": 1, + "step": 1, + "type": "int" + }, + "num_inference_steps": { + "default": 50, + "display": "slider", + "label": "Steps", + "max": 100, + "min": 1, + "type": "int" + }, + "reference_binding": { + "default": null, + "display": "input", + "fieldOptions": { "referenceBinding": { "maxReferences": 10, "schemaVersion": 1 } }, + "label": "Reference Binding", + "type": "reference_conditioning" + }, + "scheduler": { + "display": "input", + "label": "Scheduler *", + "signalCompatibility": { "role": "scheduler" }, + "type": "diffusers_auto_model" + }, + "seed": { + "default": 0, + "display": "random", + "label": "Seed", + "max": 4294967295, + "min": 0, + "type": "int" + }, + "unet": { + "display": "input", + "label": "Denoise Model *", + "onSignal": [ + "update_node", + { "action": "signal", "target": "guider" }, + { "action": "signal", "target": "controlnet_bundle" } + ], + "required": true, + "signalCompatibility": { "role": "denoiser" }, + "type": "diffusers_auto_model" + }, + "width": { "default": 1024, "label": "Width", "min": 64, "step": 16, "type": "int" } + }, + "resizable": true, + "skipParamsCheck": true, + "style": {}, + "time": [0, 0, 0], + "type": "custom" + }, + "operation": { + "binding": { "pipelineClass": "Flux3ModularPipeline", "values": {} }, + "blockName": "denoise", + "decomposition": "block", + "nodeKey": "modules.ModularDiffusers.Denoise", + "nodeType": "denoise", + "operationId": "diffusion.denoise", + "pipelineClass": "Flux3ModularPipeline", + "ports": [ + { + "direction": "input", + "hidden": false, + "name": "embeddings", + "required": true, + "roles": ["value"], + "semanticName": "embeddings", + "semantics": { + "kind": "conditioning", + "members": [], + "owner": "same_loader", + "scope": "Flux3ModularPipeline", + "state": null + }, + "types": ["embeddings"] + }, + { + "direction": "input", + "hidden": false, + "name": "width", + "required": false, + "roles": ["value"], + "semanticName": "width", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["int"] + }, + { + "direction": "input", + "hidden": false, + "name": "height", + "required": false, + "roles": ["value"], + "semanticName": "height", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["int"] + }, + { + "direction": "input", + "hidden": false, + "name": "seed", + "required": false, + "roles": ["value"], + "semanticName": "seed", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["int"] + }, + { + "direction": "input", + "hidden": false, + "name": "num_inference_steps", + "required": false, + "roles": ["value"], + "semanticName": "num_inference_steps", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["int"] + }, + { + "direction": "input", + "hidden": false, + "name": "num_images_per_prompt", + "required": false, + "roles": ["value"], + "semanticName": "num_images_per_prompt", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["int"] + }, + { + "direction": "input", + "hidden": false, + "name": "image_cond_latents", + "required": false, + "roles": ["value"], + "semanticName": "image_cond_latents", + "semantics": { + "kind": "latents", + "members": [], + "owner": "same_loader", + "scope": "Flux3ModularPipeline", + "state": null + }, + "types": ["latents"] + }, + { + "direction": "input", + "hidden": false, + "name": "unet", + "required": true, + "roles": ["component"], + "semanticName": "unet", + "semantics": { + "kind": "component", + "members": [ + { + "name": "transformer", + "type": "diffusers.models.transformers.transformer_flux3.Flux3Transformer2DModel" + } + ], + "owner": "same_loader", + "scope": "Flux3ModularPipeline", + "state": null + }, + "types": ["diffusers_auto_model"] + }, + { + "direction": "input", + "hidden": false, + "name": "scheduler", + "required": true, + "roles": ["component"], + "semanticName": "scheduler", + "semantics": { + "kind": "component", + "members": [ + { + "name": "scheduler", + "type": "diffusers.schedulers.scheduling_flow_match_euler_discrete.FlowMatchEulerDiscreteScheduler" + } + ], + "owner": "same_loader", + "scope": "Flux3ModularPipeline", + "state": null + }, + "types": ["diffusers_auto_model"] + }, + { + "direction": "input", + "hidden": false, + "name": "guider", + "required": false, + "roles": ["component"], + "semanticName": "guider", + "semantics": { + "kind": "component", + "members": [ + { "name": "guider", "type": "diffusers.guiders.classifier_free_guidance.ClassifierFreeGuidance" } + ], + "owner": "same_loader", + "scope": "Flux3ModularPipeline", + "state": null + }, + "types": ["custom_guider"] + }, + { + "direction": "output", + "hidden": false, + "name": "latents", + "required": false, + "roles": ["value"], + "semanticName": "latents", + "semantics": { + "kind": "latents", + "members": [], + "owner": "same_loader", + "scope": "Flux3ModularPipeline", + "state": null + }, + "types": ["latents"] + }, + { + "direction": "output", + "hidden": false, + "name": "doc", + "required": false, + "roles": ["value"], + "semanticName": "doc", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": false, + "name": "reference_binding", + "required": false, + "roles": ["value"], + "semanticName": "reference_binding", + "semantics": { + "kind": "opaque", + "members": [], + "owner": "none", + "scope": "Flux3ModularPipeline", + "state": null + }, + "types": ["reference_conditioning"] + } + ], + "support": "declared", + "task": "text_to_image", + "workflowId": "text2image" + } + }, + { + "node": { + "action": "DecodeLatents", + "cache": false, + "category": "sampler", + "description": "", + "label": "Decode Latents", + "memory": [0, 0, 0], + "module": "modules.ModularDiffusers", + "params": { + "doc": { "display": "output", "label": "Doc", "type": "string" }, + "images": { "display": "output", "label": "Images", "type": "image" }, + "latents": { "display": "input", "label": "Latents *", "type": "latents" }, + "vae": { + "display": "input", + "label": "VAE *", + "onSignal": "update_node", + "signalCompatibility": { "role": "vae" }, + "type": "diffusers_auto_model" + } + }, + "resizable": true, + "skipParamsCheck": true, + "style": {}, + "time": [0, 0, 0], + "type": "custom" + }, + "operation": { + "binding": { "pipelineClass": "Flux3ModularPipeline", "values": {} }, + "blockName": "decode", + "decomposition": "block", + "nodeKey": "modules.ModularDiffusers.DecodeLatents", + "nodeType": "decoder", + "operationId": "diffusion.decode_latents", + "pipelineClass": "Flux3ModularPipeline", + "ports": [ + { + "direction": "input", + "hidden": false, + "name": "latents", + "required": true, + "roles": ["value"], + "semanticName": "latents", + "semantics": { + "kind": "latents", + "members": [], + "owner": "same_loader", + "scope": "Flux3ModularPipeline", + "state": null + }, + "types": ["latents"] + }, + { + "direction": "input", + "hidden": false, + "name": "vae", + "required": true, + "roles": ["component"], + "semanticName": "vae", + "semantics": { + "kind": "component", + "members": [ + { "name": "vae", "type": "diffusers.models.autoencoders.autoencoder_kl_flux2.AutoencoderKLFlux2" } + ], + "owner": "same_loader", + "scope": "Flux3ModularPipeline", + "state": null + }, + "types": ["diffusers_auto_model"] + }, + { + "direction": "output", + "hidden": false, + "name": "images", + "required": false, + "roles": ["value"], + "semanticName": "images", + "semantics": { "kind": "media", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["image"] + }, + { + "direction": "output", + "hidden": false, + "name": "doc", + "required": false, + "roles": ["value"], + "semanticName": "doc", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + } + ], + "support": "declared", + "task": "text_to_image", + "workflowId": "text2image" + } + } + ], + "pipelineClass": "Flux3ModularPipeline", + "requiredInputs": [{ "field": "prompt", "operationId": "diffusion.encode_prompt" }], + "schemaVersion": 1, + "sharedInputs": [], + "task": "text_to_image", + "upstreamBlocks": ["text_encoder", "denoise", "decode"], + "workflowId": "text2image" + } + }, + { + "selection": { "pipelineClass": "QwenImageModularPipeline", "task": "text_to_image" }, + "starter": { + "edges": [ + { + "source": "diffusion.load_models", + "sourceHandle": "text_encoders", + "target": "diffusion.encode_prompt", + "targetHandle": "text_encoders" + }, + { + "source": "diffusion.load_models", + "sourceHandle": "scheduler", + "target": "diffusion.denoise", + "targetHandle": "scheduler" + }, + { + "source": "diffusion.load_models", + "sourceHandle": "unet_out", + "target": "diffusion.denoise", + "targetHandle": "unet" + }, + { + "source": "diffusion.load_models", + "sourceHandle": "vae_out", + "target": "diffusion.decode_latents", + "targetHandle": "vae" + }, + { + "source": "diffusion.encode_prompt", + "sourceHandle": "embeddings", + "target": "diffusion.denoise", + "targetHandle": "embeddings" + }, + { + "source": "diffusion.denoise", + "sourceHandle": "latents", + "target": "diffusion.decode_latents", + "targetHandle": "latents" + }, + { + "source": "diffusion.denoise", + "sourceHandle": "route_state_out", + "target": "diffusion.decode_latents", + "targetHandle": "route_state_in" + }, + { + "source": "diffusion.guidance", + "sourceHandle": "guider_out", + "target": "diffusion.denoise", + "targetHandle": "guider" + }, + { + "source": "diffusion.guidance", + "sourceHandle": "guider_out", + "target": "diffusion.encode_prompt", + "targetHandle": "guider" + } + ], + "nodes": [ + { + "node": { + "action": "ModelsLoader", + "cache": false, + "category": "loader", + "description": "", + "label": "Load Models", + "memory": [0, 0, 0], + "module": "modules.ModularDiffusers", + "params": { + "attention_backend": { + "default": "inherit", + "description": "Inherit preserves existing native component defaults; explicit choices use the ordinary Diffusers attention API.", + "label": "Attention Backend", + "options": [ + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "inherit", + "schemaVersion": 1, + "value": "inherit" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "auto", + "schemaVersion": 1, + "value": "auto" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "native", + "schemaVersion": 1, + "value": "native" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "_native_math", + "schemaVersion": 1, + "value": "_native_math" + } + ], + "type": "string" + }, + "auto_offload": { "label": "Enable Auto Offload", "type": "boolean", "value": true }, + "controlnet": { + "display": "input", + "hidden": true, + "label": "ControlNet", + "type": "diffusers_auto_model" + }, + "device": { + "label": "Device", + "options": { + "cpu": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "cpu", + "schemaVersion": 1, + "value": "cpu" + }, + "cpu:0": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "cpu:0", + "schemaVersion": 1, + "value": "cpu:0" + } + }, + "type": "string", + "value": "cpu:0" + }, + "dtype": { + "label": "dtype", + "options": [ + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "float32", + "schemaVersion": 1, + "value": "float32" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "float16", + "schemaVersion": 1, + "value": "float16" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "bfloat16", + "schemaVersion": 1, + "value": "bfloat16" + } + ], + "value": "bfloat16" + }, + "image_encoder": { + "connectionRole": "image_encoder", + "display": "output", + "hidden": true, + "label": "Image Encoder", + "signal": { + "direction": "output", + "origin": "modiff_pipeline_identity", + "value": "QwenImageModularPipeline" + }, + "type": "diffusers_auto_model" + }, + "inpaint_compatibility": { + "default": "native", + "description": "Technical compatibility selection for the reviewed Qwen Edit inpainting candidate; existing nodes retain native policy.", + "hidden": true, + "label": "Inpaint Compatibility", + "options": [ + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "native", + "schemaVersion": 1, + "value": "native" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "whole_v1", + "schemaVersion": 1, + "value": "whole_v1" + } + ], + "type": "string" + }, + "lora_list": { "display": "input", "label": "Lora", "type": "custom_lora" }, + "model_type": { + "description": "Selects the Modular Diffusers pipeline class. This filters compatible checkpoints and publishes the component contract used by connected nodes; it is not the model checkpoint itself.", + "label": "Pipeline Type", + "onChange": "set_filters", + "options": { + "": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "", + "schemaVersion": 1, + "value": "" + }, + "AnimaModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Anima", + "schemaVersion": 1, + "value": "AnimaModularPipeline" + }, + "Cosmos3DistilledModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Cosmos 3 Distilled", + "schemaVersion": 1, + "value": "Cosmos3DistilledModularPipeline" + }, + "Cosmos3OmniModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Cosmos 3 Nano", + "schemaVersion": 1, + "value": "Cosmos3OmniModularPipeline" + }, + "DummyCustomPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Custom", + "schemaVersion": 1, + "value": "DummyCustomPipeline" + }, + "ErnieImageModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "ERNIE Image Turbo", + "schemaVersion": 1, + "value": "ErnieImageModularPipeline" + }, + "Flux2KleinBaseModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Flux 2 Klein Base", + "schemaVersion": 1, + "value": "Flux2KleinBaseModularPipeline" + }, + "Flux2KleinModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Flux 2 Klein Distilled", + "schemaVersion": 1, + "value": "Flux2KleinModularPipeline" + }, + "Flux2ModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Flux 2", + "schemaVersion": 1, + "value": "Flux2ModularPipeline" + }, + "Flux3DistilledModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "FLUX 3 Image Klein", + "schemaVersion": 1, + "value": "Flux3DistilledModularPipeline" + }, + "Flux3ModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "FLUX 3 Image Klein Base", + "schemaVersion": 1, + "value": "Flux3ModularPipeline" + }, + "FluxKontextModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Flux Kontext", + "schemaVersion": 1, + "value": "FluxKontextModularPipeline" + }, + "FluxModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Flux", + "schemaVersion": 1, + "value": "FluxModularPipeline" + }, + "HeliosModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Helios", + "schemaVersion": 1, + "value": "HeliosModularPipeline" + }, + "HeliosPyramidDistilledModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Helios Pyramid Distilled", + "schemaVersion": 1, + "value": "HeliosPyramidDistilledModularPipeline" + }, + "HeliosPyramidModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Helios Pyramid", + "schemaVersion": 1, + "value": "HeliosPyramidModularPipeline" + }, + "HunyuanVideo15ModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "HunyuanVideo 1.5", + "schemaVersion": 1, + "value": "HunyuanVideo15ModularPipeline" + }, + "Ideogram4ModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Ideogram 4 (Contract only)", + "schemaVersion": 1, + "value": "Ideogram4ModularPipeline" + }, + "Krea2ModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Krea 2 (Contract only)", + "schemaVersion": 1, + "value": "Krea2ModularPipeline" + }, + "Krea2TurboModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Krea 2 Turbo (Contract only)", + "schemaVersion": 1, + "value": "Krea2TurboModularPipeline" + }, + "LTX25ModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "LTX-2.5 (Contract only)", + "schemaVersion": 1, + "value": "LTX25ModularPipeline" + }, + "MiniMaxH3ModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "MiniMax H3", + "schemaVersion": 1, + "value": "MiniMaxH3ModularPipeline" + }, + "MiniMaxMusic3ModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "MiniMax Music 3", + "schemaVersion": 1, + "value": "MiniMaxMusic3ModularPipeline" + }, + "QwenImageEditModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Qwen-Image-Edit", + "schemaVersion": 1, + "value": "QwenImageEditModularPipeline" + }, + "QwenImageEditPlusModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Qwen-Image-Edit-2511", + "schemaVersion": 1, + "value": "QwenImageEditPlusModularPipeline" + }, + "QwenImageLayeredModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Qwen-Image-Layered", + "schemaVersion": 1, + "value": "QwenImageLayeredModularPipeline" + }, + "QwenImageModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Qwen-Image-2512", + "schemaVersion": 1, + "value": "QwenImageModularPipeline" + }, + "StableDiffusion3ModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Stable Diffusion 3 (Contract only)", + "schemaVersion": 1, + "value": "StableDiffusion3ModularPipeline" + }, + "StableDiffusionXLModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Stable Diffusion XL", + "schemaVersion": 1, + "value": "StableDiffusionXLModularPipeline" + }, + "WanAnimate2DistilledModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Wan Animate 2 Distilled", + "schemaVersion": 1, + "value": "WanAnimate2DistilledModularPipeline" + }, + "WanAnimate2ModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Wan Animate 2", + "schemaVersion": 1, + "value": "WanAnimate2ModularPipeline" + }, + "WanImage2VideoModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "WAN2 I2V", + "schemaVersion": 1, + "value": "WanImage2VideoModularPipeline" + }, + "WanModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "WAN2 T2V", + "schemaVersion": 1, + "value": "WanModularPipeline" + }, + "ZImageModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Z-Image", + "schemaVersion": 1, + "value": "ZImageModularPipeline" + } + }, + "type": "string", + "value": "QwenImageModularPipeline" + }, + "modiff_pipeline_identity": { + "hidden": true, + "label": "Custom Pipeline Identity", + "type": "object", + "value": null + }, + "offload_mode": { + "default": "model_cpu", + "label": "Offload Mode", + "options": [ + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "auto_cpu", + "schemaVersion": 1, + "value": "auto_cpu" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "none", + "schemaVersion": 1, + "value": "none" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "model_cpu", + "schemaVersion": 1, + "value": "model_cpu" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "group_cpu", + "schemaVersion": 1, + "value": "group_cpu" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "group_disk", + "schemaVersion": 1, + "value": "group_disk" + } + ], + "type": "string", + "value": "model_cpu" + }, + "pipeline_components": { + "connectionRole": "pipeline_components", + "display": "output", + "hidden": false, + "label": "Pipeline Components", + "signal": { + "direction": "output", + "origin": "modiff_pipeline_identity", + "value": "QwenImageModularPipeline" + }, + "type": "diffusers_modular_pipeline_components" + }, + "quant_config": { "display": "input", "label": "Quant Config", "type": "quant_config" }, + "refresh_pipeline_identity_button": { + "display": "ui_button", + "hidden": true, + "label": "Review and Refresh Custom Contract", + "onChange": "refresh_pipeline_identity", + "value": false + }, + "repo_id": { + "display": "modelselect", + "fieldOptions": { + "filter": { "hub": { "className": ["QwenImageModularPipeline"] } }, + "noValidation": true, + "sources": ["hub", "local"] + }, + "label": "Repository ID", + "onChange": "refresh_pipeline_identity", + "type": "string", + "value": { "source": "hub", "value": "Qwen/Qwen-Image-2512" } + }, + "reviewed_variant": { + "description": "Select an immutable, reviewed checkpoint for this exact Modular Diffusers pipeline family. Changing it does not replace the workflow graph or reset its parameters.", + "fieldOptions": { "controlTier": "essential" }, + "hidden": false, + "label": "Model", + "options": [ + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Qwen/Qwen-Image", + "schemaVersion": 1, + "value": "Qwen/Qwen-Image" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Qwen/Qwen-Image-2512", + "schemaVersion": 1, + "value": "Qwen/Qwen-Image-2512" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "unsloth/Qwen-Image-2512-unsloth-bnb-4bit", + "schemaVersion": 1, + "value": "unsloth/Qwen-Image-2512-unsloth-bnb-4bit" + } + ], + "type": "string", + "value": "Qwen/Qwen-Image-2512" + }, + "revision": { + "description": "Required exact 40-character commit hash for Hub custom contracts.", + "label": "Revision", + "onChange": "refresh_pipeline_identity", + "type": "string", + "value": "25468b98e3276ca6700de15c6628e51b7de54a26" + }, + "scheduler": { + "connectionRole": "scheduler", + "display": "output", + "hidden": false, + "label": "Scheduler", + "signal": { + "direction": "output", + "origin": "modiff_pipeline_identity", + "value": "QwenImageModularPipeline" + }, + "type": "diffusers_auto_model" + }, + "text_encoders": { + "connectionRole": "text_encoders", + "display": "output", + "hidden": false, + "label": "Text Encoders", + "signal": { + "direction": "output", + "origin": "modiff_pipeline_identity", + "value": "QwenImageModularPipeline" + }, + "type": "diffusers_auto_models" + }, + "trust_remote_code": { + "description": "Repository code execution is disabled; keep this off for contract preview.", + "label": "Trust Remote Code", + "onChange": "refresh_pipeline_identity", + "type": "boolean", + "value": false + }, + "unet": { + "display": "input", + "hidden": false, + "label": "Denoise Model", + "type": "diffusers_auto_model" + }, + "unet_out": { + "connectionRole": "denoiser", + "display": "output", + "hidden": false, + "label": "Denoise Model", + "signal": { + "direction": "output", + "origin": "modiff_pipeline_identity", + "value": "QwenImageModularPipeline" + }, + "type": "diffusers_auto_model" + }, + "vae": { "display": "input", "hidden": false, "label": "VAE", "type": "diffusers_auto_model" }, + "vae_out": { + "connectionRole": "vae", + "display": "output", + "hidden": false, + "label": "VAE", + "signal": { + "direction": "output", + "origin": "modiff_pipeline_identity", + "value": "QwenImageModularPipeline" + }, + "type": "diffusers_auto_model" + }, + "vae_slicing": { + "default": null, + "description": "An unset policy preserves the native VAE configuration; templates may bind an explicit boolean.", + "hidden": true, + "label": "VAE Slicing", + "type": "boolean" + }, + "vae_tiling": { + "default": null, + "description": "An unset policy preserves the native VAE configuration; templates may bind an explicit boolean.", + "hidden": true, + "label": "VAE Tiling", + "type": "boolean" + }, + "weight_format": { + "default": "native", + "description": "Select a backend-declared immutable component format. Missing reviewed files must be installed through Model Manager.", + "fieldOptions": { "controlTier": "advanced" }, + "hidden": true, + "label": "Weight Format", + "options": [ + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "native", + "schemaVersion": 1, + "value": "native" + } + ], + "type": "string" + }, + "weight_loading_mode": { + "default": "cpu", + "description": "Load weights on CPU or CUDA before disk offload. CUDA loading needs room for a complete component and is available only for supported models.", + "fieldOptions": { "controlTier": "advanced" }, + "label": "Weight Loading", + "options": [ + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "cpu", + "schemaVersion": 1, + "value": "cpu" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "cuda", + "schemaVersion": 1, + "value": "cuda" + } + ], + "type": "string" + }, + "workflow_id": { + "description": "Exact reviewed component partition selected by a first-party Cluster Node.", + "hidden": true, + "label": "Reviewed Workflow", + "type": "string", + "value": "text2image" + } + }, + "resizable": true, + "skipParamsCheck": true, + "style": {}, + "time": [0, 0, 0], + "type": "custom" + }, + "operation": { + "binding": { + "pipelineClass": "QwenImageModularPipeline", + "values": { "model_type": "QwenImageModularPipeline", "workflow_id": "text2image" } + }, + "blockName": null, + "decomposition": "loader", + "nodeKey": "modules.ModularDiffusers.ModelsLoader", + "nodeType": "loader", + "operationId": "diffusion.load_models", + "pipelineClass": "QwenImageModularPipeline", + "ports": [ + { + "direction": "input", + "hidden": false, + "name": "model_type", + "required": false, + "roles": ["value"], + "semanticName": "model_type", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": false, + "name": "repo_id", + "required": false, + "roles": ["value"], + "semanticName": "repo_id", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": true, + "name": "reviewed_variant", + "required": false, + "roles": ["value"], + "semanticName": "reviewed_variant", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": false, + "name": "device", + "required": false, + "roles": ["value"], + "semanticName": "device", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": false, + "name": "attention_backend", + "required": false, + "roles": ["value"], + "semanticName": "attention_backend", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": true, + "name": "vae_slicing", + "required": false, + "roles": ["value"], + "semanticName": "vae_slicing", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["boolean"] + }, + { + "direction": "input", + "hidden": true, + "name": "vae_tiling", + "required": false, + "roles": ["value"], + "semanticName": "vae_tiling", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["boolean"] + }, + { + "direction": "input", + "hidden": true, + "name": "inpaint_compatibility", + "required": false, + "roles": ["value"], + "semanticName": "inpaint_compatibility", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": false, + "name": "trust_remote_code", + "required": false, + "roles": ["value"], + "semanticName": "trust_remote_code", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["boolean"] + }, + { + "direction": "input", + "hidden": false, + "name": "revision", + "required": false, + "roles": ["value"], + "semanticName": "revision", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": true, + "name": "workflow_id", + "required": false, + "roles": ["value"], + "semanticName": "workflow_id", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": true, + "name": "modiff_pipeline_identity", + "required": false, + "roles": ["value"], + "semanticName": "modiff_pipeline_identity", + "semantics": { + "kind": "opaque", + "members": [], + "owner": "none", + "scope": "QwenImageModularPipeline", + "state": null + }, + "types": ["object"] + }, + { + "direction": "input", + "hidden": false, + "name": "auto_offload", + "required": false, + "roles": ["value"], + "semanticName": "auto_offload", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["boolean"] + }, + { + "direction": "input", + "hidden": false, + "name": "offload_mode", + "required": false, + "roles": ["value"], + "semanticName": "offload_mode", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": false, + "name": "weight_loading_mode", + "required": false, + "roles": ["value"], + "semanticName": "weight_loading_mode", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": true, + "name": "weight_format", + "required": false, + "roles": ["value"], + "semanticName": "weight_format", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": false, + "name": "unet", + "required": false, + "roles": ["component"], + "semanticName": "unet", + "semantics": { + "kind": "component", + "members": [ + { + "name": "transformer", + "type": "diffusers.models.transformers.transformer_qwenimage.QwenImageTransformer2DModel" + } + ], + "owner": "same_loader", + "scope": "QwenImageModularPipeline", + "state": null + }, + "types": ["diffusers_auto_model"] + }, + { + "direction": "input", + "hidden": false, + "name": "vae", + "required": false, + "roles": ["component"], + "semanticName": "vae", + "semantics": { + "kind": "component", + "members": [ + { + "name": "vae", + "type": "diffusers.models.autoencoders.autoencoder_kl_qwenimage.AutoencoderKLQwenImage" + } + ], + "owner": "same_loader", + "scope": "QwenImageModularPipeline", + "state": null + }, + "types": ["diffusers_auto_model"] + }, + { + "direction": "input", + "hidden": true, + "name": "controlnet", + "required": false, + "roles": ["component"], + "semanticName": "controlnet", + "semantics": { + "kind": "component", + "members": [], + "owner": "same_loader", + "scope": "QwenImageModularPipeline", + "state": null + }, + "types": ["diffusers_auto_model"] + }, + { + "direction": "input", + "hidden": false, + "name": "lora_list", + "required": false, + "roles": ["value"], + "semanticName": "lora_list", + "semantics": { + "kind": "opaque", + "members": [], + "owner": "none", + "scope": "QwenImageModularPipeline", + "state": null + }, + "types": ["custom_lora"] + }, + { + "direction": "output", + "hidden": false, + "name": "text_encoders", + "required": false, + "roles": ["component"], + "semanticName": "text_encoders", + "semantics": { + "kind": "component", + "members": [ + { + "name": "text_encoder", + "type": "transformers.models.qwen2_5_vl.modeling_qwen2_5_vl.Qwen2_5_VLForConditionalGeneration" + }, + { "name": "tokenizer", "type": "transformers.models.qwen2.tokenization_qwen2.Qwen2Tokenizer" } + ], + "owner": "same_loader", + "scope": "QwenImageModularPipeline", + "state": null + }, + "types": ["diffusers_auto_models"] + }, + { + "direction": "output", + "hidden": false, + "name": "unet_out", + "required": false, + "roles": ["component"], + "semanticName": "unet_out", + "semantics": { + "kind": "component", + "members": [ + { + "name": "transformer", + "type": "diffusers.models.transformers.transformer_qwenimage.QwenImageTransformer2DModel" + } + ], + "owner": "same_loader", + "scope": "QwenImageModularPipeline", + "state": null + }, + "types": ["diffusers_auto_model"] + }, + { + "direction": "output", + "hidden": false, + "name": "vae_out", + "required": false, + "roles": ["component"], + "semanticName": "vae_out", + "semantics": { + "kind": "component", + "members": [ + { + "name": "vae", + "type": "diffusers.models.autoencoders.autoencoder_kl_qwenimage.AutoencoderKLQwenImage" + } + ], + "owner": "same_loader", + "scope": "QwenImageModularPipeline", + "state": null + }, + "types": ["diffusers_auto_model"] + }, + { + "direction": "output", + "hidden": false, + "name": "scheduler", + "required": false, + "roles": ["component"], + "semanticName": "scheduler", + "semantics": { + "kind": "component", + "members": [ + { + "name": "scheduler", + "type": "diffusers.schedulers.scheduling_flow_match_euler_discrete.FlowMatchEulerDiscreteScheduler" + } + ], + "owner": "same_loader", + "scope": "QwenImageModularPipeline", + "state": null + }, + "types": ["diffusers_auto_model"] + }, + { + "direction": "output", + "hidden": true, + "name": "image_encoder", + "required": false, + "roles": ["component"], + "semanticName": "image_encoder", + "semantics": { + "kind": "component", + "members": [], + "owner": "same_loader", + "scope": "QwenImageModularPipeline", + "state": null + }, + "types": ["diffusers_auto_model"] + }, + { + "direction": "output", + "hidden": false, + "name": "pipeline_components", + "required": false, + "roles": ["component"], + "semanticName": "pipeline_components", + "semantics": { + "kind": "component", + "members": [ + { "name": "guider", "type": "diffusers.guiders.classifier_free_guidance.ClassifierFreeGuidance" }, + { "name": "image_processor", "type": "diffusers.image_processor.VaeImageProcessor" }, + { + "name": "pachifier", + "type": "diffusers.modular_pipelines.qwenimage.modular_pipeline.QwenImagePachifier" + }, + { + "name": "scheduler", + "type": "diffusers.schedulers.scheduling_flow_match_euler_discrete.FlowMatchEulerDiscreteScheduler" + }, + { + "name": "text_encoder", + "type": "transformers.models.qwen2_5_vl.modeling_qwen2_5_vl.Qwen2_5_VLForConditionalGeneration" + }, + { "name": "tokenizer", "type": "transformers.models.qwen2.tokenization_qwen2.Qwen2Tokenizer" }, + { + "name": "transformer", + "type": "diffusers.models.transformers.transformer_qwenimage.QwenImageTransformer2DModel" + }, + { + "name": "vae", + "type": "diffusers.models.autoencoders.autoencoder_kl_qwenimage.AutoencoderKLQwenImage" + } + ], + "owner": "same_loader", + "scope": "QwenImageModularPipeline", + "state": null + }, + "types": ["diffusers_modular_pipeline_components"] + }, + { + "direction": "input", + "hidden": false, + "name": "quant_config", + "required": false, + "roles": ["value"], + "semanticName": "quant_config", + "semantics": { + "kind": "opaque", + "members": [], + "owner": "none", + "scope": "QwenImageModularPipeline", + "state": null + }, + "types": ["quant_config"] + } + ], + "support": "declared", + "task": "text_to_image", + "workflowId": "text2image" + } + }, + { + "node": { + "action": "Guider", + "cache": false, + "category": "sampler", + "description": "", + "label": "Guidance", + "memory": [0, 0, 0], + "module": "modules.ModularDiffusers", + "params": { + "enabled": { "label": "Enabled", "type": "boolean", "value": true }, + "guidance_rescale": { + "display": "slider", + "label": "Guidance Rescale", + "max": 10.0, + "min": 0.0, + "step": 0.1, + "type": "float", + "value": 0.0 + }, + "guidance_scale": { + "display": "slider", + "label": "Guidance Scale", + "max": 20.0, + "min": 0.0, + "step": 0.1, + "type": "float", + "value": 4.0 + }, + "guider": { + "fieldOptions": { "loading": true }, + "label": "Guider", + "onChange": [ + "updateNode", + { + "AutoGuidance": ["layers_config"], + "PerturbedAttentionGuidance": ["layers_config"], + "SkipLayerGuidance": ["layers_config"], + "SmoothedEnergyGuidance": ["layers_config"] + } + ], + "options": [ + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "ClassifierFreeGuidance", + "schemaVersion": 1, + "value": "ClassifierFreeGuidance" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "SkipLayerGuidance", + "schemaVersion": 1, + "value": "SkipLayerGuidance" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "AdaptiveProjectedGuidance", + "schemaVersion": 1, + "value": "AdaptiveProjectedGuidance" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "AdaptiveProjectedMixGuidance", + "schemaVersion": 1, + "value": "AdaptiveProjectedMixGuidance" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "MagnitudeAwareGuidance", + "schemaVersion": 1, + "value": "MagnitudeAwareGuidance" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "ClassifierFreeZeroStarGuidance", + "schemaVersion": 1, + "value": "ClassifierFreeZeroStarGuidance" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "AutoGuidance", + "schemaVersion": 1, + "value": "AutoGuidance" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "SmoothedEnergyGuidance", + "schemaVersion": 1, + "value": "SmoothedEnergyGuidance" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "PerturbedAttentionGuidance", + "schemaVersion": 1, + "value": "PerturbedAttentionGuidance" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "TangentialClassifierFreeGuidance", + "schemaVersion": 1, + "value": "TangentialClassifierFreeGuidance" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "FrequencyDecoupledGuidance", + "schemaVersion": 1, + "value": "FrequencyDecoupledGuidance" + } + ], + "type": "string", + "value": "ClassifierFreeGuidance" + }, + "guider_out": { + "display": "output", + "label": "Guider", + "onSignal": [ + { "action": "value", "target": "model_type" }, + { + "action": "value", + "data": { + "Flux2KleinBaseModularPipeline": ["ClassifierFreeGuidance"], + "Flux3ModularPipeline": ["ClassifierFreeGuidance"], + "FluxKontextModularPipeline": ["ClassifierFreeGuidance"], + "FluxModularPipeline": ["ClassifierFreeGuidance"], + "QwenImageEditModularPipeline": [ + "ClassifierFreeGuidance", + "SkipLayerGuidance", + "AdaptiveProjectedGuidance", + "AdaptiveProjectedMixGuidance", + "MagnitudeAwareGuidance", + "ClassifierFreeZeroStarGuidance", + "AutoGuidance", + "SmoothedEnergyGuidance", + "PerturbedAttentionGuidance", + "TangentialClassifierFreeGuidance", + "FrequencyDecoupledGuidance" + ], + "QwenImageEditPlusModularPipeline": [ + "ClassifierFreeGuidance", + "SkipLayerGuidance", + "AdaptiveProjectedGuidance", + "AdaptiveProjectedMixGuidance", + "MagnitudeAwareGuidance", + "ClassifierFreeZeroStarGuidance", + "AutoGuidance", + "SmoothedEnergyGuidance", + "PerturbedAttentionGuidance", + "TangentialClassifierFreeGuidance", + "FrequencyDecoupledGuidance" + ], + "QwenImageLayeredModularPipeline": [ + "ClassifierFreeGuidance", + "AdaptiveProjectedGuidance", + "AdaptiveProjectedMixGuidance", + "MagnitudeAwareGuidance", + "ClassifierFreeZeroStarGuidance", + "TangentialClassifierFreeGuidance", + "FrequencyDecoupledGuidance" + ], + "QwenImageModularPipeline": [ + "ClassifierFreeGuidance", + "SkipLayerGuidance", + "AdaptiveProjectedGuidance", + "AdaptiveProjectedMixGuidance", + "MagnitudeAwareGuidance", + "ClassifierFreeZeroStarGuidance", + "AutoGuidance", + "SmoothedEnergyGuidance", + "PerturbedAttentionGuidance", + "TangentialClassifierFreeGuidance", + "FrequencyDecoupledGuidance" + ], + "StableDiffusionXLModularPipeline": [ + "ClassifierFreeGuidance", + "SkipLayerGuidance", + "AdaptiveProjectedGuidance", + "AdaptiveProjectedMixGuidance", + "MagnitudeAwareGuidance", + "ClassifierFreeZeroStarGuidance", + "AutoGuidance", + "SmoothedEnergyGuidance", + "PerturbedAttentionGuidance", + "TangentialClassifierFreeGuidance", + "FrequencyDecoupledGuidance" + ], + "WanImage2VideoModularPipeline": [ + "ClassifierFreeGuidance", + "AdaptiveProjectedGuidance", + "AdaptiveProjectedMixGuidance", + "MagnitudeAwareGuidance", + "ClassifierFreeZeroStarGuidance", + "TangentialClassifierFreeGuidance", + "FrequencyDecoupledGuidance" + ], + "WanModularPipeline": [ + "ClassifierFreeGuidance", + "AdaptiveProjectedGuidance", + "AdaptiveProjectedMixGuidance", + "MagnitudeAwareGuidance", + "ClassifierFreeZeroStarGuidance", + "TangentialClassifierFreeGuidance", + "FrequencyDecoupledGuidance" + ], + "ZImageModularPipeline": [ + "ClassifierFreeGuidance", + "AdaptiveProjectedGuidance", + "AdaptiveProjectedMixGuidance", + "MagnitudeAwareGuidance", + "ClassifierFreeZeroStarGuidance", + "TangentialClassifierFreeGuidance", + "FrequencyDecoupledGuidance" + ] + }, + "prop": "options", + "target": "guider" + }, + { "action": "signal", "target": "layers_config" } + ], + "signalCompatibility": { + "values": { + "Flux2KleinBaseModularPipeline": ["ClassifierFreeGuidance"], + "Flux3ModularPipeline": ["ClassifierFreeGuidance"], + "FluxKontextModularPipeline": ["ClassifierFreeGuidance"], + "FluxModularPipeline": ["ClassifierFreeGuidance"], + "QwenImageEditModularPipeline": [ + "ClassifierFreeGuidance", + "SkipLayerGuidance", + "AdaptiveProjectedGuidance", + "AdaptiveProjectedMixGuidance", + "MagnitudeAwareGuidance", + "ClassifierFreeZeroStarGuidance", + "AutoGuidance", + "SmoothedEnergyGuidance", + "PerturbedAttentionGuidance", + "TangentialClassifierFreeGuidance", + "FrequencyDecoupledGuidance" + ], + "QwenImageEditPlusModularPipeline": [ + "ClassifierFreeGuidance", + "SkipLayerGuidance", + "AdaptiveProjectedGuidance", + "AdaptiveProjectedMixGuidance", + "MagnitudeAwareGuidance", + "ClassifierFreeZeroStarGuidance", + "AutoGuidance", + "SmoothedEnergyGuidance", + "PerturbedAttentionGuidance", + "TangentialClassifierFreeGuidance", + "FrequencyDecoupledGuidance" + ], + "QwenImageLayeredModularPipeline": [ + "ClassifierFreeGuidance", + "AdaptiveProjectedGuidance", + "AdaptiveProjectedMixGuidance", + "MagnitudeAwareGuidance", + "ClassifierFreeZeroStarGuidance", + "TangentialClassifierFreeGuidance", + "FrequencyDecoupledGuidance" + ], + "QwenImageModularPipeline": [ + "ClassifierFreeGuidance", + "SkipLayerGuidance", + "AdaptiveProjectedGuidance", + "AdaptiveProjectedMixGuidance", + "MagnitudeAwareGuidance", + "ClassifierFreeZeroStarGuidance", + "AutoGuidance", + "SmoothedEnergyGuidance", + "PerturbedAttentionGuidance", + "TangentialClassifierFreeGuidance", + "FrequencyDecoupledGuidance" + ], + "StableDiffusionXLModularPipeline": [ + "ClassifierFreeGuidance", + "SkipLayerGuidance", + "AdaptiveProjectedGuidance", + "AdaptiveProjectedMixGuidance", + "MagnitudeAwareGuidance", + "ClassifierFreeZeroStarGuidance", + "AutoGuidance", + "SmoothedEnergyGuidance", + "PerturbedAttentionGuidance", + "TangentialClassifierFreeGuidance", + "FrequencyDecoupledGuidance" + ], + "WanImage2VideoModularPipeline": [ + "ClassifierFreeGuidance", + "AdaptiveProjectedGuidance", + "AdaptiveProjectedMixGuidance", + "MagnitudeAwareGuidance", + "ClassifierFreeZeroStarGuidance", + "TangentialClassifierFreeGuidance", + "FrequencyDecoupledGuidance" + ], + "WanModularPipeline": [ + "ClassifierFreeGuidance", + "AdaptiveProjectedGuidance", + "AdaptiveProjectedMixGuidance", + "MagnitudeAwareGuidance", + "ClassifierFreeZeroStarGuidance", + "TangentialClassifierFreeGuidance", + "FrequencyDecoupledGuidance" + ], + "ZImageModularPipeline": [ + "ClassifierFreeGuidance", + "AdaptiveProjectedGuidance", + "AdaptiveProjectedMixGuidance", + "MagnitudeAwareGuidance", + "ClassifierFreeZeroStarGuidance", + "TangentialClassifierFreeGuidance", + "FrequencyDecoupledGuidance" + ] + } + }, + "type": "custom_guider" + }, + "layers_config": { "display": "input", "label": "Layers", "type": "layers_config" }, + "model_type": { "default": "", "hidden": true, "type": "string", "value": "QwenImageModularPipeline" }, + "start": { + "display": "slider", + "label": "Start", + "max": 1.0, + "min": 0.0, + "step": 0.01, + "type": "float", + "value": 0.0 + }, + "stop": { + "display": "slider", + "label": "Stop", + "max": 1.0, + "min": 0.01, + "step": 0.01, + "type": "float", + "value": 1.0 + }, + "use_original_formulation": { "label": "Original Formulation", "type": "boolean", "value": false } + }, + "resizable": true, + "skipParamsCheck": true, + "style": {}, + "time": [0, 0, 0], + "type": "custom" + }, + "operation": { + "binding": { + "pipelineClass": "QwenImageModularPipeline", + "values": { "model_type": "QwenImageModularPipeline" } + }, + "blockName": null, + "decomposition": "bundle", + "nodeKey": "modules.ModularDiffusers.Guider", + "nodeType": "guidance", + "operationId": "diffusion.guidance", + "pipelineClass": "QwenImageModularPipeline", + "ports": [ + { + "direction": "input", + "hidden": true, + "name": "model_type", + "required": false, + "roles": ["value"], + "semanticName": "model_type", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": false, + "name": "guider", + "required": false, + "roles": ["value"], + "semanticName": "guider", + "semantics": { + "control": { + "compatibilityScope": "diffusers.qwen.normalized_cfg.v1", + "enabled": "boolean_field", + "enabledField": "enabled", + "formulation": "boolean_field", + "formulationField": "use_original_formulation", + "negativeConditioning": "pipeline_scoped_when_enabled", + "negativeConditioningScope": "QwenImageModularPipeline", + "parameter": "technique", + "scaleMeaning": "cfg_prediction_mix", + "selectorField": "guider", + "selectorValue": "ClassifierFreeGuidance", + "technique": "classifier_free" + }, + "kind": "value", + "members": [], + "owner": "none", + "scope": null, + "state": null + }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": false, + "name": "guidance_scale", + "required": false, + "roles": ["value"], + "semanticName": "guidance_scale", + "semantics": { + "control": { + "compatibilityScope": "diffusers.qwen.normalized_cfg.v1", + "enabled": "boolean_field", + "enabledField": "enabled", + "formulation": "boolean_field", + "formulationField": "use_original_formulation", + "negativeConditioning": "pipeline_scoped_when_enabled", + "negativeConditioningScope": "QwenImageModularPipeline", + "parameter": "scale", + "scaleMeaning": "cfg_prediction_mix", + "selectorField": "guider", + "selectorValue": "ClassifierFreeGuidance", + "technique": "classifier_free" + }, + "kind": "value", + "members": [], + "owner": "none", + "scope": null, + "state": null + }, + "types": ["float"] + }, + { + "direction": "input", + "hidden": false, + "name": "guidance_rescale", + "required": false, + "roles": ["value"], + "semanticName": "guidance_rescale", + "semantics": { + "control": { + "compatibilityScope": "diffusers.qwen.normalized_cfg.v1", + "enabled": "boolean_field", + "enabledField": "enabled", + "formulation": "boolean_field", + "formulationField": "use_original_formulation", + "negativeConditioning": "pipeline_scoped_when_enabled", + "negativeConditioningScope": "QwenImageModularPipeline", + "parameter": "rescale", + "scaleMeaning": "cfg_prediction_mix", + "selectorField": "guider", + "selectorValue": "ClassifierFreeGuidance", + "technique": "classifier_free" + }, + "kind": "value", + "members": [], + "owner": "none", + "scope": null, + "state": null + }, + "types": ["float"] + }, + { + "direction": "input", + "hidden": false, + "name": "use_original_formulation", + "required": false, + "roles": ["value"], + "semanticName": "use_original_formulation", + "semantics": { + "control": { + "compatibilityScope": "diffusers.qwen.normalized_cfg.v1", + "enabled": "boolean_field", + "enabledField": "enabled", + "formulation": "boolean_field", + "formulationField": "use_original_formulation", + "negativeConditioning": "pipeline_scoped_when_enabled", + "negativeConditioningScope": "QwenImageModularPipeline", + "parameter": "formulation", + "scaleMeaning": "cfg_prediction_mix", + "selectorField": "guider", + "selectorValue": "ClassifierFreeGuidance", + "technique": "classifier_free" + }, + "kind": "value", + "members": [], + "owner": "none", + "scope": null, + "state": null + }, + "types": ["boolean"] + }, + { + "direction": "input", + "hidden": false, + "name": "enabled", + "required": false, + "roles": ["value"], + "semanticName": "enabled", + "semantics": { + "control": { + "compatibilityScope": "diffusers.qwen.normalized_cfg.v1", + "enabled": "boolean_field", + "enabledField": "enabled", + "formulation": "boolean_field", + "formulationField": "use_original_formulation", + "negativeConditioning": "pipeline_scoped_when_enabled", + "negativeConditioningScope": "QwenImageModularPipeline", + "parameter": "enabled", + "scaleMeaning": "cfg_prediction_mix", + "selectorField": "guider", + "selectorValue": "ClassifierFreeGuidance", + "technique": "classifier_free" + }, + "kind": "value", + "members": [], + "owner": "none", + "scope": null, + "state": null + }, + "types": ["boolean"] + }, + { + "direction": "input", + "hidden": false, + "name": "start", + "required": false, + "roles": ["value"], + "semanticName": "start", + "semantics": { + "control": { + "compatibilityScope": "diffusers.qwen.normalized_cfg.v1", + "enabled": "boolean_field", + "enabledField": "enabled", + "formulation": "boolean_field", + "formulationField": "use_original_formulation", + "negativeConditioning": "pipeline_scoped_when_enabled", + "negativeConditioningScope": "QwenImageModularPipeline", + "parameter": "start", + "scaleMeaning": "cfg_prediction_mix", + "selectorField": "guider", + "selectorValue": "ClassifierFreeGuidance", + "technique": "classifier_free" + }, + "kind": "value", + "members": [], + "owner": "none", + "scope": null, + "state": null + }, + "types": ["float"] + }, + { + "direction": "input", + "hidden": false, + "name": "stop", + "required": false, + "roles": ["value"], + "semanticName": "stop", + "semantics": { + "control": { + "compatibilityScope": "diffusers.qwen.normalized_cfg.v1", + "enabled": "boolean_field", + "enabledField": "enabled", + "formulation": "boolean_field", + "formulationField": "use_original_formulation", + "negativeConditioning": "pipeline_scoped_when_enabled", + "negativeConditioningScope": "QwenImageModularPipeline", + "parameter": "stop", + "scaleMeaning": "cfg_prediction_mix", + "selectorField": "guider", + "selectorValue": "ClassifierFreeGuidance", + "technique": "classifier_free" + }, + "kind": "value", + "members": [], + "owner": "none", + "scope": null, + "state": null + }, + "types": ["float"] + }, + { + "direction": "output", + "hidden": false, + "name": "guider_out", + "required": false, + "roles": ["component"], + "semanticName": "guider_out", + "semantics": { + "kind": "component", + "members": [], + "owner": "same_loader", + "scope": "QwenImageModularPipeline", + "state": null + }, + "types": ["custom_guider"] + }, + { + "direction": "input", + "hidden": false, + "name": "layers_config", + "required": false, + "roles": ["value"], + "semanticName": "layers_config", + "semantics": { + "kind": "opaque", + "members": [], + "owner": "none", + "scope": "QwenImageModularPipeline", + "state": null + }, + "types": ["layers_config"] + } + ], + "support": "declared", + "task": "text_to_image", + "workflowId": "text2image" + } + }, + { + "node": { + "action": "EncodePrompt", + "cache": false, + "category": "embedding", + "description": "", + "label": "Encode Prompt", + "memory": [0, 0, 0], + "module": "modules.ModularDiffusers", + "params": { + "doc": { "display": "output", "label": "Doc", "type": "string" }, + "embeddings": { "display": "output", "label": "Text Embeddings", "type": "embeddings" }, + "guider": { + "description": "Shared Diffusers guidance used by prompt encoding and denoising when the selected pipeline supports it.", + "display": "input", + "hidden": false, + "label": "Guider", + "type": "custom_guider" + }, + "layout_reference_summary": { + "description": "Display-only ordered reference identities and actual preprocessing sizes from the current encoder cache.", + "display": "output", + "hidden": true, + "label": "Bound Reference Summary", + "type": "string" + }, + "max_sequence_length": { + "default": 1024, + "fieldOptions": { + "controlTier": "advanced", + "studioBinding": { + "formFields": ["maxSequenceLength"], + "group": "maximum-sequence-length", + "schemaVersion": 1, + "transform": "identity" + } + }, + "label": "Maximum Sequence Length", + "max": 1024, + "min": 1, + "step": 1, + "type": "int" + }, + "negative_prompt": { + "default": "", + "display": "textarea", + "label": "Negative Prompt", + "type": "string" + }, + "pipeline_components": { + "description": "Optional Models Loader components for the reviewed Qwen text-to-image stages.", + "display": "input", + "hidden": false, + "label": "Pipeline Components", + "onSignal": "update_node", + "required": false, + "signalCompatibility": { + "required": true, + "role": "pipeline_components", + "values": { "QwenImageModularPipeline": ["text_encoder"] } + }, + "type": "diffusers_modular_pipeline_components" + }, + "prompt": { + "default": "", + "display": "textarea", + "fieldOptions": { "exampleAttribution": "MoDiff task example" }, + "label": "Prompt *", + "type": "string", + "value": "A red ceramic teapot on a wooden table beside a window, soft morning light, detailed photograph." + }, + "prompt_input": { + "description": "Optional connected prompt. When connected, this replaces the inline Prompt value.", + "display": "input", + "label": "Prompt Input", + "type": "string" + }, + "text_encoders": { + "display": "input", + "label": "Text Encoders *", + "onSignal": "update_node", + "required": true, + "signalCompatibility": { "role": "text_encoders" }, + "type": "diffusers_auto_models" + } + }, + "resizable": true, + "skipParamsCheck": true, + "style": {}, + "time": [0, 0, 0], + "type": "custom" + }, + "operation": { + "binding": { "pipelineClass": "QwenImageModularPipeline", "values": {} }, + "blockName": "text_encoder", + "decomposition": "block", + "nodeKey": "modules.ModularDiffusers.EncodePrompt", + "nodeType": "text_encoder", + "operationId": "diffusion.encode_prompt", + "pipelineClass": "QwenImageModularPipeline", + "ports": [ + { + "direction": "input", + "hidden": false, + "name": "prompt", + "required": true, + "roles": ["value"], + "semanticName": "prompt", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": false, + "name": "negative_prompt", + "required": false, + "roles": ["value"], + "semanticName": "negative_prompt", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": false, + "name": "max_sequence_length", + "required": false, + "roles": ["value"], + "semanticName": "max_sequence_length", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["int"] + }, + { + "direction": "input", + "hidden": false, + "name": "text_encoders", + "required": true, + "roles": ["component"], + "semanticName": "text_encoders", + "semantics": { + "kind": "component", + "members": [ + { + "name": "text_encoder", + "type": "transformers.models.qwen2_5_vl.modeling_qwen2_5_vl.Qwen2_5_VLForConditionalGeneration" + }, + { "name": "tokenizer", "type": "transformers.models.qwen2.tokenization_qwen2.Qwen2Tokenizer" } + ], + "owner": "same_loader", + "scope": "QwenImageModularPipeline", + "state": null, + "suppliedBy": { "input": "pipeline_components", "members": ["text_encoder", "tokenizer"] } + }, + "types": ["diffusers_auto_models"] + }, + { + "direction": "input", + "hidden": false, + "name": "guider", + "required": false, + "roles": ["component"], + "semanticName": "guider", + "semantics": { + "kind": "component", + "members": [ + { "name": "guider", "type": "diffusers.guiders.classifier_free_guidance.ClassifierFreeGuidance" } + ], + "owner": "same_loader", + "scope": "QwenImageModularPipeline", + "state": null + }, + "types": ["custom_guider"] + }, + { + "direction": "output", + "hidden": false, + "name": "embeddings", + "required": false, + "roles": ["value"], + "semanticName": "embeddings", + "semantics": { + "kind": "conditioning", + "members": [], + "owner": "same_loader", + "scope": "QwenImageModularPipeline", + "state": null + }, + "types": ["embeddings"] + }, + { + "direction": "output", + "hidden": false, + "name": "doc", + "required": false, + "roles": ["value"], + "semanticName": "doc", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": false, + "name": "prompt_input", + "required": false, + "roles": ["value"], + "semanticName": "prompt", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": false, + "name": "pipeline_components", + "required": false, + "roles": ["component"], + "semanticName": "pipeline_components", + "semantics": { + "kind": "component", + "members": [ + { + "name": "text_encoder", + "type": "transformers.models.qwen2_5_vl.modeling_qwen2_5_vl.Qwen2_5_VLForConditionalGeneration" + }, + { "name": "tokenizer", "type": "transformers.models.qwen2.tokenization_qwen2.Qwen2Tokenizer" } + ], + "owner": "same_loader", + "scope": "QwenImageModularPipeline", + "state": null + }, + "types": ["diffusers_modular_pipeline_components"] + } + ], + "support": "declared", + "task": "text_to_image", + "workflowId": "text2image" + } + }, + { + "node": { + "action": "Denoise", + "cache": false, + "category": "sampler", + "description": "", + "label": "Denoise", + "memory": [0, 0, 0], + "module": "modules.ModularDiffusers", + "params": { + "controlnet_bundle": { "display": "input", "label": "ControlNet", "type": "custom_controlnet" }, + "doc": { "display": "output", "label": "Doc", "type": "string" }, + "embeddings": { "display": "input", "label": "Text Embeddings *", "type": "embeddings" }, + "guidance_scale": { + "default": 4.5, + "display": "slider", + "hidden": true, + "label": "Guidance Scale", + "max": 30.0, + "min": 1.0, + "step": 0.1, + "type": "float" + }, + "guider": { + "display": "input", + "label": "Guider", + "onChange": { "false": ["guidance_scale"], "true": [] }, + "type": "custom_guider" + }, + "height": { "default": 1024, "label": "Height", "min": 64, "step": 16, "type": "int" }, + "image_latents": { + "display": "input", + "label": "Image Latents", + "onChange": { "false": ["height", "width"], "true": ["strength"] }, + "type": "latents" + }, + "latents": { "display": "output", "label": "Latents", "type": "latents" }, + "num_inference_steps": { + "default": 50, + "display": "slider", + "label": "Steps", + "max": 100, + "min": 1, + "type": "int" + }, + "pipeline_components": { + "description": "Optional Models Loader components for the reviewed Qwen text-to-image stages.", + "display": "input", + "hidden": false, + "label": "Pipeline Components", + "onSignal": [ + "update_node", + { "action": "signal", "target": "guider" }, + { "action": "signal", "target": "controlnet_bundle" } + ], + "required": false, + "signalCompatibility": { + "required": true, + "role": "pipeline_components", + "values": { "QwenImageModularPipeline": ["denoise"] } + }, + "type": "diffusers_modular_pipeline_components" + }, + "route_state_in": { "display": "input", "label": "Route State", "type": "modular_route_state" }, + "route_state_out": { "display": "output", "label": "Route State", "type": "modular_route_state" }, + "scheduler": { + "display": "input", + "label": "Scheduler *", + "signalCompatibility": { "role": "scheduler" }, + "type": "diffusers_auto_model" + }, + "seed": { + "default": 0, + "display": "random", + "label": "Seed", + "max": 4294967295, + "min": 0, + "type": "int" + }, + "strength": { + "default": 0.5, + "label": "Strength", + "max": 1.0, + "min": 0.0, + "step": 0.01, + "type": "float" + }, + "unet": { + "display": "input", + "label": "Denoise Model *", + "onSignal": [ + "update_node", + { "action": "signal", "target": "guider" }, + { "action": "signal", "target": "controlnet_bundle" } + ], + "required": true, + "signalCompatibility": { "role": "denoiser" }, + "type": "diffusers_auto_model" + }, + "width": { "default": 1024, "label": "Width", "min": 64, "step": 16, "type": "int" } + }, + "resizable": true, + "skipParamsCheck": true, + "style": {}, + "time": [0, 0, 0], + "type": "custom" + }, + "operation": { + "binding": { "pipelineClass": "QwenImageModularPipeline", "values": {} }, + "blockName": "denoise", + "decomposition": "block", + "nodeKey": "modules.ModularDiffusers.Denoise", + "nodeType": "denoise", + "operationId": "diffusion.denoise", + "pipelineClass": "QwenImageModularPipeline", + "ports": [ + { + "direction": "input", + "hidden": false, + "name": "embeddings", + "required": true, + "roles": ["value"], + "semanticName": "embeddings", + "semantics": { + "kind": "conditioning", + "members": [], + "owner": "same_loader", + "scope": "QwenImageModularPipeline", + "state": null + }, + "types": ["embeddings"] + }, + { + "direction": "input", + "hidden": false, + "name": "width", + "required": false, + "roles": ["value"], + "semanticName": "width", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["int"] + }, + { + "direction": "input", + "hidden": false, + "name": "height", + "required": false, + "roles": ["value"], + "semanticName": "height", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["int"] + }, + { + "direction": "input", + "hidden": false, + "name": "seed", + "required": false, + "roles": ["value"], + "semanticName": "seed", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["int"] + }, + { + "direction": "input", + "hidden": false, + "name": "num_inference_steps", + "required": false, + "roles": ["value"], + "semanticName": "num_inference_steps", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["int"] + }, + { + "direction": "input", + "hidden": false, + "name": "guidance_scale", + "required": false, + "roles": ["value"], + "semanticName": "guidance_scale", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["float"] + }, + { + "direction": "input", + "hidden": false, + "name": "image_latents", + "required": false, + "roles": ["value"], + "semanticName": "image_latents", + "semantics": { + "kind": "latents", + "members": [], + "owner": "same_loader", + "scope": "QwenImageModularPipeline", + "state": null + }, + "types": ["latents"] + }, + { + "direction": "input", + "hidden": false, + "name": "strength", + "required": false, + "roles": ["value"], + "semanticName": "strength", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["float"] + }, + { + "direction": "input", + "hidden": false, + "name": "controlnet_bundle", + "required": false, + "roles": ["value", "component"], + "semanticName": "controlnet_bundle", + "semantics": { + "kind": "conditioning", + "members": [ + { "name": "guider", "type": "diffusers.guiders.classifier_free_guidance.ClassifierFreeGuidance" }, + { + "name": "pachifier", + "type": "diffusers.modular_pipelines.qwenimage.modular_pipeline.QwenImagePachifier" + }, + { + "name": "scheduler", + "type": "diffusers.schedulers.scheduling_flow_match_euler_discrete.FlowMatchEulerDiscreteScheduler" + }, + { + "name": "transformer", + "type": "diffusers.models.transformers.transformer_qwenimage.QwenImageTransformer2DModel" + } + ], + "owner": "same_loader", + "scope": "QwenImageModularPipeline", + "state": null + }, + "types": ["custom_controlnet"] + }, + { + "direction": "input", + "hidden": false, + "name": "route_state_in", + "required": false, + "roles": ["value"], + "semanticName": "route_state_in", + "semantics": { + "kind": "state", + "members": [], + "owner": "same_loader", + "scope": "QwenImageModularPipeline:text2image", + "state": null + }, + "types": ["modular_route_state"] + }, + { + "direction": "input", + "hidden": false, + "name": "unet", + "required": true, + "roles": ["component"], + "semanticName": "unet", + "semantics": { + "kind": "component", + "members": [ + { + "name": "transformer", + "type": "diffusers.models.transformers.transformer_qwenimage.QwenImageTransformer2DModel" + } + ], + "owner": "same_loader", + "scope": "QwenImageModularPipeline", + "state": null, + "suppliedBy": { "input": "pipeline_components", "members": ["transformer"] } + }, + "types": ["diffusers_auto_model"] + }, + { + "direction": "input", + "hidden": false, + "name": "guider", + "required": false, + "roles": ["component"], + "semanticName": "guider", + "semantics": { + "kind": "component", + "members": [ + { "name": "guider", "type": "diffusers.guiders.classifier_free_guidance.ClassifierFreeGuidance" } + ], + "owner": "same_loader", + "scope": "QwenImageModularPipeline", + "state": null + }, + "types": ["custom_guider"] + }, + { + "direction": "input", + "hidden": false, + "name": "scheduler", + "required": true, + "roles": ["component"], + "semanticName": "scheduler", + "semantics": { + "kind": "component", + "members": [ + { + "name": "scheduler", + "type": "diffusers.schedulers.scheduling_flow_match_euler_discrete.FlowMatchEulerDiscreteScheduler" + } + ], + "owner": "same_loader", + "scope": "QwenImageModularPipeline", + "state": null, + "suppliedBy": { "input": "pipeline_components", "members": ["scheduler"] } + }, + "types": ["diffusers_auto_model"] + }, + { + "direction": "output", + "hidden": false, + "name": "latents", + "required": false, + "roles": ["value"], + "semanticName": "latents", + "semantics": { + "kind": "latents", + "members": [], + "owner": "same_loader", + "scope": "QwenImageModularPipeline", + "state": null + }, + "types": ["latents"] + }, + { + "direction": "output", + "hidden": false, + "name": "route_state_out", + "required": false, + "roles": ["value"], + "semanticName": "route_state_out", + "semantics": { + "kind": "state", + "members": [], + "owner": "same_loader", + "scope": "QwenImageModularPipeline:text2image", + "state": null + }, + "types": ["modular_route_state"] + }, + { + "direction": "output", + "hidden": false, + "name": "doc", + "required": false, + "roles": ["value"], + "semanticName": "doc", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": false, + "name": "pipeline_components", + "required": false, + "roles": ["component"], + "semanticName": "pipeline_components", + "semantics": { + "kind": "component", + "members": [ + { + "name": "scheduler", + "type": "diffusers.schedulers.scheduling_flow_match_euler_discrete.FlowMatchEulerDiscreteScheduler" + }, + { + "name": "transformer", + "type": "diffusers.models.transformers.transformer_qwenimage.QwenImageTransformer2DModel" + } + ], + "owner": "same_loader", + "scope": "QwenImageModularPipeline", + "state": null + }, + "types": ["diffusers_modular_pipeline_components"] + } + ], + "support": "declared", + "task": "text_to_image", + "workflowId": "text2image" + } + }, + { + "node": { + "action": "DecodeLatents", + "cache": false, + "category": "sampler", + "description": "", + "label": "Decode Latents", + "memory": [0, 0, 0], + "module": "modules.ModularDiffusers", + "params": { + "doc": { "display": "output", "label": "Doc", "type": "string" }, + "images": { "display": "output", "label": "Images", "type": "image" }, + "latents": { "display": "input", "label": "Latents *", "type": "latents" }, + "pipeline_components": { + "description": "Optional Models Loader components for the reviewed Qwen text-to-image stages.", + "display": "input", + "hidden": false, + "label": "Pipeline Components", + "onSignal": "update_node", + "required": false, + "signalCompatibility": { + "required": true, + "role": "pipeline_components", + "values": { "QwenImageModularPipeline": ["decoder"] } + }, + "type": "diffusers_modular_pipeline_components" + }, + "route_state_in": { "display": "input", "label": "Route State", "type": "modular_route_state" }, + "vae": { + "display": "input", + "label": "VAE *", + "onSignal": "update_node", + "signalCompatibility": { "role": "vae" }, + "type": "diffusers_auto_model" + } + }, + "resizable": true, + "skipParamsCheck": true, + "style": {}, + "time": [0, 0, 0], + "type": "custom" + }, + "operation": { + "binding": { "pipelineClass": "QwenImageModularPipeline", "values": {} }, + "blockName": "decode", + "decomposition": "block", + "nodeKey": "modules.ModularDiffusers.DecodeLatents", + "nodeType": "decoder", + "operationId": "diffusion.decode_latents", + "pipelineClass": "QwenImageModularPipeline", + "ports": [ + { + "direction": "input", + "hidden": false, + "name": "latents", + "required": true, + "roles": ["value"], + "semanticName": "latents", + "semantics": { + "kind": "latents", + "members": [], + "owner": "same_loader", + "scope": "QwenImageModularPipeline", + "state": null + }, + "types": ["latents"] + }, + { + "direction": "input", + "hidden": false, + "name": "route_state_in", + "required": false, + "roles": ["value"], + "semanticName": "route_state_in", + "semantics": { + "kind": "state", + "members": [], + "owner": "same_loader", + "scope": "QwenImageModularPipeline:text2image", + "state": null + }, + "types": ["modular_route_state"] + }, + { + "direction": "input", + "hidden": false, + "name": "vae", + "required": true, + "roles": ["component"], + "semanticName": "vae", + "semantics": { + "kind": "component", + "members": [ + { + "name": "vae", + "type": "diffusers.models.autoencoders.autoencoder_kl_qwenimage.AutoencoderKLQwenImage" + } + ], + "owner": "same_loader", + "scope": "QwenImageModularPipeline", + "state": null, + "suppliedBy": { "input": "pipeline_components", "members": ["vae"] } + }, + "types": ["diffusers_auto_model"] + }, + { + "direction": "output", + "hidden": false, + "name": "images", + "required": false, + "roles": ["value"], + "semanticName": "images", + "semantics": { "kind": "media", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["image"] + }, + { + "direction": "output", + "hidden": false, + "name": "doc", + "required": false, + "roles": ["value"], + "semanticName": "doc", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": false, + "name": "pipeline_components", + "required": false, + "roles": ["component"], + "semanticName": "pipeline_components", + "semantics": { + "kind": "component", + "members": [ + { + "name": "vae", + "type": "diffusers.models.autoencoders.autoencoder_kl_qwenimage.AutoencoderKLQwenImage" + } + ], + "owner": "same_loader", + "scope": "QwenImageModularPipeline", + "state": null + }, + "types": ["diffusers_modular_pipeline_components"] + } + ], + "support": "declared", + "task": "text_to_image", + "workflowId": "text2image" + } + } + ], + "pipelineClass": "QwenImageModularPipeline", + "requiredInputs": [{ "field": "prompt", "operationId": "diffusion.encode_prompt" }], + "schemaVersion": 1, + "sharedInputs": [], + "task": "text_to_image", + "upstreamBlocks": [ + "text_encoder", + "denoise.input", + "denoise.prepare_latents", + "denoise.set_timesteps", + "denoise.prepare_rope_inputs", + "denoise.denoise", + "denoise.denoise.before_denoiser", + "denoise.denoise.denoiser", + "denoise.denoise.after_denoiser", + "denoise.after_denoise", + "decode.decode", + "decode.postprocess" + ], + "workflowId": "text2image" + } + } + ], + "fixtureControls": { + "allowedRegistryPrimitiveModules": { + "torch.nn.modules.activation.GELU": 1, + "torch.nn.modules.pooling.AdaptiveMaxPool2d": 1, + "torch.nn.modules.pooling.AdaptiveMaxPool3d": 1, + "transformers.activations.FastGELUActivation": 1, + "transformers.activations.GELUActivation": 2, + "transformers.activations.GELUTanh": 1, + "transformers.activations.LinearActivation": 1, + "transformers.activations.MishActivation": 1, + "transformers.activations.NewGELUActivation": 1, + "transformers.activations.QuickGELUActivation": 1, + "transformers.activations.SiLUActivation": 1 + }, + "broaderModelFactories": "not exhaustively instrumented; weight-file/network/process fences retained", + "deviceOptions": "CPU-only controlled projection", + "optimizationCatalog": "empty controlled projection", + "pretrainedModelNodeServerConstructorsTrapped": true, + "privateConfig": true, + "privateManagedRoot": true, + "serverDefinitionProjection": "only exact terminal server singleton assignment omitted" + }, + "operationContracts": [ + { + "binding": { "pipelineClass": "Flux3DistilledModularPipeline", "values": {} }, + "blockName": "decode", + "decomposition": "block", + "nodeKey": "modules.ModularDiffusers.DecodeLatents", + "nodeType": "decoder", + "operationId": "diffusion.decode_latents", + "pipelineClass": "Flux3DistilledModularPipeline", + "ports": [ + { + "direction": "input", + "hidden": false, + "name": "latents", + "required": true, + "roles": ["value"], + "semanticName": "latents", + "semantics": { + "kind": "latents", + "members": [], + "owner": "same_loader", + "scope": "Flux3DistilledModularPipeline", + "state": null + }, + "types": ["latents"] + }, + { + "direction": "input", + "hidden": false, + "name": "vae", + "required": true, + "roles": ["component"], + "semanticName": "vae", + "semantics": { + "kind": "component", + "members": [ + { "name": "vae", "type": "diffusers.models.autoencoders.autoencoder_kl_flux2.AutoencoderKLFlux2" } + ], + "owner": "same_loader", + "scope": "Flux3DistilledModularPipeline", + "state": null + }, + "types": ["diffusers_auto_model"] + }, + { + "direction": "output", + "hidden": false, + "name": "images", + "required": false, + "roles": ["value"], + "semanticName": "images", + "semantics": { "kind": "media", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["image"] + }, + { + "direction": "output", + "hidden": false, + "name": "doc", + "required": false, + "roles": ["value"], + "semanticName": "doc", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + } + ], + "support": "declared", + "task": "text_to_image", + "workflowId": "text2image" + }, + { + "binding": { "pipelineClass": "Flux3DistilledModularPipeline", "values": {} }, + "blockName": "denoise", + "decomposition": "block", + "nodeKey": "modules.ModularDiffusers.Denoise", + "nodeType": "denoise", + "operationId": "diffusion.denoise", + "pipelineClass": "Flux3DistilledModularPipeline", + "ports": [ + { + "direction": "input", + "hidden": false, + "name": "embeddings", + "required": true, + "roles": ["value"], + "semanticName": "embeddings", + "semantics": { + "kind": "conditioning", + "members": [], + "owner": "same_loader", + "scope": "Flux3DistilledModularPipeline", + "state": null + }, + "types": ["embeddings"] + }, + { + "direction": "input", + "hidden": false, + "name": "width", + "required": false, + "roles": ["value"], + "semanticName": "width", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["int"] + }, + { + "direction": "input", + "hidden": false, + "name": "height", + "required": false, + "roles": ["value"], + "semanticName": "height", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["int"] + }, + { + "direction": "input", + "hidden": false, + "name": "seed", + "required": false, + "roles": ["value"], + "semanticName": "seed", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["int"] + }, + { + "direction": "input", + "hidden": false, + "name": "num_inference_steps", + "required": false, + "roles": ["value"], + "semanticName": "num_inference_steps", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["int"] + }, + { + "direction": "input", + "hidden": false, + "name": "num_images_per_prompt", + "required": false, + "roles": ["value"], + "semanticName": "num_images_per_prompt", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["int"] + }, + { + "direction": "input", + "hidden": false, + "name": "image_cond_latents", + "required": false, + "roles": ["value"], + "semanticName": "image_cond_latents", + "semantics": { + "kind": "latents", + "members": [], + "owner": "same_loader", + "scope": "Flux3DistilledModularPipeline", + "state": null + }, + "types": ["latents"] + }, + { + "direction": "input", + "hidden": false, + "name": "unet", + "required": true, + "roles": ["component"], + "semanticName": "unet", + "semantics": { + "kind": "component", + "members": [ + { + "name": "transformer", + "type": "diffusers.models.transformers.transformer_flux3.Flux3Transformer2DModel" + } + ], + "owner": "same_loader", + "scope": "Flux3DistilledModularPipeline", + "state": null + }, + "types": ["diffusers_auto_model"] + }, + { + "direction": "input", + "hidden": false, + "name": "scheduler", + "required": true, + "roles": ["component"], + "semanticName": "scheduler", + "semantics": { + "kind": "component", + "members": [ + { + "name": "scheduler", + "type": "diffusers.schedulers.scheduling_flow_match_euler_discrete.FlowMatchEulerDiscreteScheduler" + } + ], + "owner": "same_loader", + "scope": "Flux3DistilledModularPipeline", + "state": null + }, + "types": ["diffusers_auto_model"] + }, + { + "direction": "output", + "hidden": false, + "name": "latents", + "required": false, + "roles": ["value"], + "semanticName": "latents", + "semantics": { + "kind": "latents", + "members": [], + "owner": "same_loader", + "scope": "Flux3DistilledModularPipeline", + "state": null + }, + "types": ["latents"] + }, + { + "direction": "output", + "hidden": false, + "name": "doc", + "required": false, + "roles": ["value"], + "semanticName": "doc", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": false, + "name": "reference_binding", + "required": false, + "roles": ["value"], + "semanticName": "reference_binding", + "semantics": { + "kind": "opaque", + "members": [], + "owner": "none", + "scope": "Flux3DistilledModularPipeline", + "state": null + }, + "types": ["reference_conditioning"] + } + ], + "support": "declared", + "task": "text_to_image", + "workflowId": "text2image" + }, + { + "binding": { "pipelineClass": "Flux3DistilledModularPipeline", "values": {} }, + "blockName": "text_encoder", + "decomposition": "block", + "nodeKey": "modules.ModularDiffusers.EncodePrompt", + "nodeType": "text_encoder", + "operationId": "diffusion.encode_prompt", + "pipelineClass": "Flux3DistilledModularPipeline", + "ports": [ + { + "direction": "input", + "hidden": false, + "name": "prompt", + "required": true, + "roles": ["value"], + "semanticName": "prompt", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": false, + "name": "max_sequence_length", + "required": false, + "roles": ["value"], + "semanticName": "max_sequence_length", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["int"] + }, + { + "direction": "input", + "hidden": false, + "name": "text_encoder_out_layers", + "required": false, + "roles": ["value"], + "semanticName": "text_encoder_out_layers", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["int"] + }, + { + "direction": "input", + "hidden": false, + "name": "text_encoders", + "required": true, + "roles": ["component"], + "semanticName": "text_encoders", + "semantics": { + "kind": "component", + "members": [ + { + "name": "text_encoder", + "type": "transformers.models.qwen3_vl.modeling_qwen3_vl.Qwen3VLForConditionalGeneration" + }, + { "name": "tokenizer", "type": "transformers.models.auto.processing_auto.AutoProcessor" } + ], + "owner": "same_loader", + "scope": "Flux3DistilledModularPipeline", + "state": null + }, + "types": ["diffusers_auto_models"] + }, + { + "direction": "output", + "hidden": false, + "name": "embeddings", + "required": false, + "roles": ["value"], + "semanticName": "embeddings", + "semantics": { + "kind": "conditioning", + "members": [], + "owner": "same_loader", + "scope": "Flux3DistilledModularPipeline", + "state": null + }, + "types": ["embeddings"] + }, + { + "direction": "output", + "hidden": false, + "name": "doc", + "required": false, + "roles": ["value"], + "semanticName": "doc", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": false, + "name": "layout_conditioning", + "required": false, + "roles": ["value"], + "semanticName": "layout_conditioning", + "semantics": { + "kind": "opaque", + "members": [], + "owner": "none", + "scope": "Flux3DistilledModularPipeline", + "state": null + }, + "types": ["layout_conditioning"] + }, + { + "direction": "input", + "hidden": false, + "name": "reference_binding", + "required": false, + "roles": ["value"], + "semanticName": "reference_binding", + "semantics": { + "kind": "opaque", + "members": [], + "owner": "none", + "scope": "Flux3DistilledModularPipeline", + "state": null + }, + "types": ["reference_conditioning"] + }, + { + "direction": "input", + "hidden": false, + "name": "prompt_input", + "required": false, + "roles": ["value"], + "semanticName": "prompt", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + } + ], + "support": "declared", + "task": "text_to_image", + "workflowId": "text2image" + }, + { + "binding": { + "pipelineClass": "Flux3DistilledModularPipeline", + "values": { "model_type": "Flux3DistilledModularPipeline" } + }, + "blockName": null, + "decomposition": "loader", + "nodeKey": "modules.ModularDiffusers.ModelsLoader", + "nodeType": "loader", + "operationId": "diffusion.load_models", + "pipelineClass": "Flux3DistilledModularPipeline", + "ports": [ + { + "direction": "input", + "hidden": false, + "name": "model_type", + "required": false, + "roles": ["value"], + "semanticName": "model_type", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": false, + "name": "repo_id", + "required": false, + "roles": ["value"], + "semanticName": "repo_id", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": true, + "name": "reviewed_variant", + "required": false, + "roles": ["value"], + "semanticName": "reviewed_variant", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": false, + "name": "device", + "required": false, + "roles": ["value"], + "semanticName": "device", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": false, + "name": "attention_backend", + "required": false, + "roles": ["value"], + "semanticName": "attention_backend", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": true, + "name": "vae_slicing", + "required": false, + "roles": ["value"], + "semanticName": "vae_slicing", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["boolean"] + }, + { + "direction": "input", + "hidden": true, + "name": "vae_tiling", + "required": false, + "roles": ["value"], + "semanticName": "vae_tiling", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["boolean"] + }, + { + "direction": "input", + "hidden": true, + "name": "inpaint_compatibility", + "required": false, + "roles": ["value"], + "semanticName": "inpaint_compatibility", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": false, + "name": "trust_remote_code", + "required": false, + "roles": ["value"], + "semanticName": "trust_remote_code", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["boolean"] + }, + { + "direction": "input", + "hidden": false, + "name": "revision", + "required": false, + "roles": ["value"], + "semanticName": "revision", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": true, + "name": "workflow_id", + "required": false, + "roles": ["value"], + "semanticName": "workflow_id", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": true, + "name": "modiff_pipeline_identity", + "required": false, + "roles": ["value"], + "semanticName": "modiff_pipeline_identity", + "semantics": { + "kind": "opaque", + "members": [], + "owner": "none", + "scope": "Flux3DistilledModularPipeline", + "state": null + }, + "types": ["object"] + }, + { + "direction": "input", + "hidden": false, + "name": "auto_offload", + "required": false, + "roles": ["value"], + "semanticName": "auto_offload", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["boolean"] + }, + { + "direction": "input", + "hidden": false, + "name": "offload_mode", + "required": false, + "roles": ["value"], + "semanticName": "offload_mode", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": false, + "name": "weight_loading_mode", + "required": false, + "roles": ["value"], + "semanticName": "weight_loading_mode", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": true, + "name": "weight_format", + "required": false, + "roles": ["value"], + "semanticName": "weight_format", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": false, + "name": "unet", + "required": false, + "roles": ["component"], + "semanticName": "unet", + "semantics": { + "kind": "component", + "members": [ + { + "name": "transformer", + "type": "diffusers.models.transformers.transformer_flux3.Flux3Transformer2DModel" + } + ], + "owner": "same_loader", + "scope": "Flux3DistilledModularPipeline", + "state": null + }, + "types": ["diffusers_auto_model"] + }, + { + "direction": "input", + "hidden": false, + "name": "vae", + "required": false, + "roles": ["component"], + "semanticName": "vae", + "semantics": { + "kind": "component", + "members": [ + { "name": "vae", "type": "diffusers.models.autoencoders.autoencoder_kl_flux2.AutoencoderKLFlux2" } + ], + "owner": "same_loader", + "scope": "Flux3DistilledModularPipeline", + "state": null + }, + "types": ["diffusers_auto_model"] + }, + { + "direction": "input", + "hidden": true, + "name": "controlnet", + "required": false, + "roles": ["component"], + "semanticName": "controlnet", + "semantics": { + "kind": "component", + "members": [], + "owner": "same_loader", + "scope": "Flux3DistilledModularPipeline", + "state": null + }, + "types": ["diffusers_auto_model"] + }, + { + "direction": "input", + "hidden": false, + "name": "lora_list", + "required": false, + "roles": ["value"], + "semanticName": "lora_list", + "semantics": { + "kind": "opaque", + "members": [], + "owner": "none", + "scope": "Flux3DistilledModularPipeline", + "state": null + }, + "types": ["custom_lora"] + }, + { + "direction": "output", + "hidden": false, + "name": "text_encoders", + "required": false, + "roles": ["component"], + "semanticName": "text_encoders", + "semantics": { + "kind": "component", + "members": [ + { + "name": "text_encoder", + "type": "transformers.models.qwen3_vl.modeling_qwen3_vl.Qwen3VLForConditionalGeneration" + }, + { "name": "tokenizer", "type": "transformers.models.auto.processing_auto.AutoProcessor" } + ], + "owner": "same_loader", + "scope": "Flux3DistilledModularPipeline", + "state": null + }, + "types": ["diffusers_auto_models"] + }, + { + "direction": "output", + "hidden": false, + "name": "unet_out", + "required": false, + "roles": ["component"], + "semanticName": "unet_out", + "semantics": { + "kind": "component", + "members": [ + { + "name": "transformer", + "type": "diffusers.models.transformers.transformer_flux3.Flux3Transformer2DModel" + } + ], + "owner": "same_loader", + "scope": "Flux3DistilledModularPipeline", + "state": null + }, + "types": ["diffusers_auto_model"] + }, + { + "direction": "output", + "hidden": false, + "name": "vae_out", + "required": false, + "roles": ["component"], + "semanticName": "vae_out", + "semantics": { + "kind": "component", + "members": [ + { "name": "vae", "type": "diffusers.models.autoencoders.autoencoder_kl_flux2.AutoencoderKLFlux2" } + ], + "owner": "same_loader", + "scope": "Flux3DistilledModularPipeline", + "state": null + }, + "types": ["diffusers_auto_model"] + }, + { + "direction": "output", + "hidden": false, + "name": "scheduler", + "required": false, + "roles": ["component"], + "semanticName": "scheduler", + "semantics": { + "kind": "component", + "members": [ + { + "name": "scheduler", + "type": "diffusers.schedulers.scheduling_flow_match_euler_discrete.FlowMatchEulerDiscreteScheduler" + } + ], + "owner": "same_loader", + "scope": "Flux3DistilledModularPipeline", + "state": null + }, + "types": ["diffusers_auto_model"] + }, + { + "direction": "output", + "hidden": true, + "name": "image_encoder", + "required": false, + "roles": ["component"], + "semanticName": "image_encoder", + "semantics": { + "kind": "component", + "members": [], + "owner": "same_loader", + "scope": "Flux3DistilledModularPipeline", + "state": null + }, + "types": ["diffusers_auto_model"] + }, + { + "direction": "output", + "hidden": false, + "name": "pipeline_components", + "required": false, + "roles": ["component"], + "semanticName": "pipeline_components", + "semantics": { + "kind": "component", + "members": [ + { + "name": "image_processor", + "type": "diffusers.modular_pipelines.flux3.image_processor.Flux3ImageProcessor" + }, + { + "name": "scheduler", + "type": "diffusers.schedulers.scheduling_flow_match_euler_discrete.FlowMatchEulerDiscreteScheduler" + }, + { + "name": "text_encoder", + "type": "transformers.models.qwen3_vl.modeling_qwen3_vl.Qwen3VLForConditionalGeneration" + }, + { "name": "tokenizer", "type": "transformers.models.auto.processing_auto.AutoProcessor" }, + { + "name": "transformer", + "type": "diffusers.models.transformers.transformer_flux3.Flux3Transformer2DModel" + }, + { "name": "vae", "type": "diffusers.models.autoencoders.autoencoder_kl_flux2.AutoencoderKLFlux2" } + ], + "owner": "same_loader", + "scope": "Flux3DistilledModularPipeline", + "state": null + }, + "types": ["diffusers_modular_pipeline_components"] + }, + { + "direction": "input", + "hidden": false, + "name": "quant_config", + "required": false, + "roles": ["value"], + "semanticName": "quant_config", + "semantics": { + "kind": "opaque", + "members": [], + "owner": "none", + "scope": "Flux3DistilledModularPipeline", + "state": null + }, + "types": ["quant_config"] + } + ], + "support": "declared", + "task": "text_to_image", + "workflowId": "text2image" + }, + { + "binding": { "pipelineClass": "Flux3ModularPipeline", "values": {} }, + "blockName": "decode", + "decomposition": "block", + "nodeKey": "modules.ModularDiffusers.DecodeLatents", + "nodeType": "decoder", + "operationId": "diffusion.decode_latents", + "pipelineClass": "Flux3ModularPipeline", + "ports": [ + { + "direction": "input", + "hidden": false, + "name": "latents", + "required": true, + "roles": ["value"], + "semanticName": "latents", + "semantics": { + "kind": "latents", + "members": [], + "owner": "same_loader", + "scope": "Flux3ModularPipeline", + "state": null + }, + "types": ["latents"] + }, + { + "direction": "input", + "hidden": false, + "name": "vae", + "required": true, + "roles": ["component"], + "semanticName": "vae", + "semantics": { + "kind": "component", + "members": [ + { "name": "vae", "type": "diffusers.models.autoencoders.autoencoder_kl_flux2.AutoencoderKLFlux2" } + ], + "owner": "same_loader", + "scope": "Flux3ModularPipeline", + "state": null + }, + "types": ["diffusers_auto_model"] + }, + { + "direction": "output", + "hidden": false, + "name": "images", + "required": false, + "roles": ["value"], + "semanticName": "images", + "semantics": { "kind": "media", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["image"] + }, + { + "direction": "output", + "hidden": false, + "name": "doc", + "required": false, + "roles": ["value"], + "semanticName": "doc", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + } + ], + "support": "declared", + "task": "text_to_image", + "workflowId": "text2image" + }, + { + "binding": { "pipelineClass": "Flux3ModularPipeline", "values": {} }, + "blockName": "denoise", + "decomposition": "block", + "nodeKey": "modules.ModularDiffusers.Denoise", + "nodeType": "denoise", + "operationId": "diffusion.denoise", + "pipelineClass": "Flux3ModularPipeline", + "ports": [ + { + "direction": "input", + "hidden": false, + "name": "embeddings", + "required": true, + "roles": ["value"], + "semanticName": "embeddings", + "semantics": { + "kind": "conditioning", + "members": [], + "owner": "same_loader", + "scope": "Flux3ModularPipeline", + "state": null + }, + "types": ["embeddings"] + }, + { + "direction": "input", + "hidden": false, + "name": "width", + "required": false, + "roles": ["value"], + "semanticName": "width", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["int"] + }, + { + "direction": "input", + "hidden": false, + "name": "height", + "required": false, + "roles": ["value"], + "semanticName": "height", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["int"] + }, + { + "direction": "input", + "hidden": false, + "name": "seed", + "required": false, + "roles": ["value"], + "semanticName": "seed", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["int"] + }, + { + "direction": "input", + "hidden": false, + "name": "num_inference_steps", + "required": false, + "roles": ["value"], + "semanticName": "num_inference_steps", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["int"] + }, + { + "direction": "input", + "hidden": false, + "name": "num_images_per_prompt", + "required": false, + "roles": ["value"], + "semanticName": "num_images_per_prompt", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["int"] + }, + { + "direction": "input", + "hidden": false, + "name": "image_cond_latents", + "required": false, + "roles": ["value"], + "semanticName": "image_cond_latents", + "semantics": { + "kind": "latents", + "members": [], + "owner": "same_loader", + "scope": "Flux3ModularPipeline", + "state": null + }, + "types": ["latents"] + }, + { + "direction": "input", + "hidden": false, + "name": "unet", + "required": true, + "roles": ["component"], + "semanticName": "unet", + "semantics": { + "kind": "component", + "members": [ + { + "name": "transformer", + "type": "diffusers.models.transformers.transformer_flux3.Flux3Transformer2DModel" + } + ], + "owner": "same_loader", + "scope": "Flux3ModularPipeline", + "state": null + }, + "types": ["diffusers_auto_model"] + }, + { + "direction": "input", + "hidden": false, + "name": "scheduler", + "required": true, + "roles": ["component"], + "semanticName": "scheduler", + "semantics": { + "kind": "component", + "members": [ + { + "name": "scheduler", + "type": "diffusers.schedulers.scheduling_flow_match_euler_discrete.FlowMatchEulerDiscreteScheduler" + } + ], + "owner": "same_loader", + "scope": "Flux3ModularPipeline", + "state": null + }, + "types": ["diffusers_auto_model"] + }, + { + "direction": "input", + "hidden": false, + "name": "guider", + "required": false, + "roles": ["component"], + "semanticName": "guider", + "semantics": { + "kind": "component", + "members": [ + { "name": "guider", "type": "diffusers.guiders.classifier_free_guidance.ClassifierFreeGuidance" } + ], + "owner": "same_loader", + "scope": "Flux3ModularPipeline", + "state": null + }, + "types": ["custom_guider"] + }, + { + "direction": "output", + "hidden": false, + "name": "latents", + "required": false, + "roles": ["value"], + "semanticName": "latents", + "semantics": { + "kind": "latents", + "members": [], + "owner": "same_loader", + "scope": "Flux3ModularPipeline", + "state": null + }, + "types": ["latents"] + }, + { + "direction": "output", + "hidden": false, + "name": "doc", + "required": false, + "roles": ["value"], + "semanticName": "doc", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": false, + "name": "reference_binding", + "required": false, + "roles": ["value"], + "semanticName": "reference_binding", + "semantics": { + "kind": "opaque", + "members": [], + "owner": "none", + "scope": "Flux3ModularPipeline", + "state": null + }, + "types": ["reference_conditioning"] + } + ], + "support": "declared", + "task": "text_to_image", + "workflowId": "text2image" + }, + { + "binding": { "pipelineClass": "Flux3ModularPipeline", "values": {} }, + "blockName": "text_encoder", + "decomposition": "block", + "nodeKey": "modules.ModularDiffusers.EncodePrompt", + "nodeType": "text_encoder", + "operationId": "diffusion.encode_prompt", + "pipelineClass": "Flux3ModularPipeline", + "ports": [ + { + "direction": "input", + "hidden": false, + "name": "prompt", + "required": true, + "roles": ["value"], + "semanticName": "prompt", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": false, + "name": "negative_prompt", + "required": false, + "roles": ["value"], + "semanticName": "negative_prompt", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": false, + "name": "max_sequence_length", + "required": false, + "roles": ["value"], + "semanticName": "max_sequence_length", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["int"] + }, + { + "direction": "input", + "hidden": false, + "name": "text_encoder_out_layers", + "required": false, + "roles": ["value"], + "semanticName": "text_encoder_out_layers", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["int"] + }, + { + "direction": "input", + "hidden": false, + "name": "text_encoders", + "required": true, + "roles": ["component"], + "semanticName": "text_encoders", + "semantics": { + "kind": "component", + "members": [ + { + "name": "text_encoder", + "type": "transformers.models.qwen3_vl.modeling_qwen3_vl.Qwen3VLForConditionalGeneration" + }, + { "name": "tokenizer", "type": "transformers.models.auto.processing_auto.AutoProcessor" } + ], + "owner": "same_loader", + "scope": "Flux3ModularPipeline", + "state": null + }, + "types": ["diffusers_auto_models"] + }, + { + "direction": "output", + "hidden": false, + "name": "embeddings", + "required": false, + "roles": ["value"], + "semanticName": "embeddings", + "semantics": { + "kind": "conditioning", + "members": [], + "owner": "same_loader", + "scope": "Flux3ModularPipeline", + "state": null + }, + "types": ["embeddings"] + }, + { + "direction": "output", + "hidden": false, + "name": "doc", + "required": false, + "roles": ["value"], + "semanticName": "doc", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": false, + "name": "layout_conditioning", + "required": false, + "roles": ["value"], + "semanticName": "layout_conditioning", + "semantics": { + "kind": "opaque", + "members": [], + "owner": "none", + "scope": "Flux3ModularPipeline", + "state": null + }, + "types": ["layout_conditioning"] + }, + { + "direction": "input", + "hidden": false, + "name": "reference_binding", + "required": false, + "roles": ["value"], + "semanticName": "reference_binding", + "semantics": { + "kind": "opaque", + "members": [], + "owner": "none", + "scope": "Flux3ModularPipeline", + "state": null + }, + "types": ["reference_conditioning"] + }, + { + "direction": "input", + "hidden": false, + "name": "prompt_input", + "required": false, + "roles": ["value"], + "semanticName": "prompt", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + } + ], + "support": "declared", + "task": "text_to_image", + "workflowId": "text2image" + }, + { + "binding": { "pipelineClass": "Flux3ModularPipeline", "values": { "model_type": "Flux3ModularPipeline" } }, + "blockName": null, + "decomposition": "bundle", + "nodeKey": "modules.ModularDiffusers.Guider", + "nodeType": "guidance", + "operationId": "diffusion.guidance", + "pipelineClass": "Flux3ModularPipeline", + "ports": [ + { + "direction": "input", + "hidden": true, + "name": "model_type", + "required": false, + "roles": ["value"], + "semanticName": "model_type", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": false, + "name": "guider", + "required": false, + "roles": ["value"], + "semanticName": "guider", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": false, + "name": "guidance_scale", + "required": false, + "roles": ["value"], + "semanticName": "guidance_scale", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["float"] + }, + { + "direction": "input", + "hidden": false, + "name": "guidance_rescale", + "required": false, + "roles": ["value"], + "semanticName": "guidance_rescale", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["float"] + }, + { + "direction": "input", + "hidden": false, + "name": "use_original_formulation", + "required": false, + "roles": ["value"], + "semanticName": "use_original_formulation", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["boolean"] + }, + { + "direction": "input", + "hidden": false, + "name": "enabled", + "required": false, + "roles": ["value"], + "semanticName": "enabled", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["boolean"] + }, + { + "direction": "input", + "hidden": false, + "name": "start", + "required": false, + "roles": ["value"], + "semanticName": "start", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["float"] + }, + { + "direction": "input", + "hidden": false, + "name": "stop", + "required": false, + "roles": ["value"], + "semanticName": "stop", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["float"] + }, + { + "direction": "output", + "hidden": false, + "name": "guider_out", + "required": false, + "roles": ["component"], + "semanticName": "guider_out", + "semantics": { + "kind": "component", + "members": [], + "owner": "same_loader", + "scope": "Flux3ModularPipeline", + "state": null + }, + "types": ["custom_guider"] + }, + { + "direction": "input", + "hidden": false, + "name": "layers_config", + "required": false, + "roles": ["value"], + "semanticName": "layers_config", + "semantics": { + "kind": "opaque", + "members": [], + "owner": "none", + "scope": "Flux3ModularPipeline", + "state": null + }, + "types": ["layers_config"] + } + ], + "support": "declared", + "task": "text_to_image", + "workflowId": "text2image" + }, + { + "binding": { "pipelineClass": "Flux3ModularPipeline", "values": { "model_type": "Flux3ModularPipeline" } }, + "blockName": null, + "decomposition": "loader", + "nodeKey": "modules.ModularDiffusers.ModelsLoader", + "nodeType": "loader", + "operationId": "diffusion.load_models", + "pipelineClass": "Flux3ModularPipeline", + "ports": [ + { + "direction": "input", + "hidden": false, + "name": "model_type", + "required": false, + "roles": ["value"], + "semanticName": "model_type", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": false, + "name": "repo_id", + "required": false, + "roles": ["value"], + "semanticName": "repo_id", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": true, + "name": "reviewed_variant", + "required": false, + "roles": ["value"], + "semanticName": "reviewed_variant", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": false, + "name": "device", + "required": false, + "roles": ["value"], + "semanticName": "device", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": false, + "name": "attention_backend", + "required": false, + "roles": ["value"], + "semanticName": "attention_backend", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": true, + "name": "vae_slicing", + "required": false, + "roles": ["value"], + "semanticName": "vae_slicing", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["boolean"] + }, + { + "direction": "input", + "hidden": true, + "name": "vae_tiling", + "required": false, + "roles": ["value"], + "semanticName": "vae_tiling", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["boolean"] + }, + { + "direction": "input", + "hidden": true, + "name": "inpaint_compatibility", + "required": false, + "roles": ["value"], + "semanticName": "inpaint_compatibility", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": false, + "name": "trust_remote_code", + "required": false, + "roles": ["value"], + "semanticName": "trust_remote_code", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["boolean"] + }, + { + "direction": "input", + "hidden": false, + "name": "revision", + "required": false, + "roles": ["value"], + "semanticName": "revision", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": true, + "name": "workflow_id", + "required": false, + "roles": ["value"], + "semanticName": "workflow_id", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": true, + "name": "modiff_pipeline_identity", + "required": false, + "roles": ["value"], + "semanticName": "modiff_pipeline_identity", + "semantics": { + "kind": "opaque", + "members": [], + "owner": "none", + "scope": "Flux3ModularPipeline", + "state": null + }, + "types": ["object"] + }, + { + "direction": "input", + "hidden": false, + "name": "auto_offload", + "required": false, + "roles": ["value"], + "semanticName": "auto_offload", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["boolean"] + }, + { + "direction": "input", + "hidden": false, + "name": "offload_mode", + "required": false, + "roles": ["value"], + "semanticName": "offload_mode", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": false, + "name": "weight_loading_mode", + "required": false, + "roles": ["value"], + "semanticName": "weight_loading_mode", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": true, + "name": "weight_format", + "required": false, + "roles": ["value"], + "semanticName": "weight_format", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": false, + "name": "unet", + "required": false, + "roles": ["component"], + "semanticName": "unet", + "semantics": { + "kind": "component", + "members": [ + { + "name": "transformer", + "type": "diffusers.models.transformers.transformer_flux3.Flux3Transformer2DModel" + } + ], + "owner": "same_loader", + "scope": "Flux3ModularPipeline", + "state": null + }, + "types": ["diffusers_auto_model"] + }, + { + "direction": "input", + "hidden": false, + "name": "vae", + "required": false, + "roles": ["component"], + "semanticName": "vae", + "semantics": { + "kind": "component", + "members": [ + { "name": "vae", "type": "diffusers.models.autoencoders.autoencoder_kl_flux2.AutoencoderKLFlux2" } + ], + "owner": "same_loader", + "scope": "Flux3ModularPipeline", + "state": null + }, + "types": ["diffusers_auto_model"] + }, + { + "direction": "input", + "hidden": true, + "name": "controlnet", + "required": false, + "roles": ["component"], + "semanticName": "controlnet", + "semantics": { + "kind": "component", + "members": [], + "owner": "same_loader", + "scope": "Flux3ModularPipeline", + "state": null + }, + "types": ["diffusers_auto_model"] + }, + { + "direction": "input", + "hidden": false, + "name": "lora_list", + "required": false, + "roles": ["value"], + "semanticName": "lora_list", + "semantics": { + "kind": "opaque", + "members": [], + "owner": "none", + "scope": "Flux3ModularPipeline", + "state": null + }, + "types": ["custom_lora"] + }, + { + "direction": "output", + "hidden": false, + "name": "text_encoders", + "required": false, + "roles": ["component"], + "semanticName": "text_encoders", + "semantics": { + "kind": "component", + "members": [ + { + "name": "text_encoder", + "type": "transformers.models.qwen3_vl.modeling_qwen3_vl.Qwen3VLForConditionalGeneration" + }, + { "name": "tokenizer", "type": "transformers.models.auto.processing_auto.AutoProcessor" } + ], + "owner": "same_loader", + "scope": "Flux3ModularPipeline", + "state": null + }, + "types": ["diffusers_auto_models"] + }, + { + "direction": "output", + "hidden": false, + "name": "unet_out", + "required": false, + "roles": ["component"], + "semanticName": "unet_out", + "semantics": { + "kind": "component", + "members": [ + { + "name": "transformer", + "type": "diffusers.models.transformers.transformer_flux3.Flux3Transformer2DModel" + } + ], + "owner": "same_loader", + "scope": "Flux3ModularPipeline", + "state": null + }, + "types": ["diffusers_auto_model"] + }, + { + "direction": "output", + "hidden": false, + "name": "vae_out", + "required": false, + "roles": ["component"], + "semanticName": "vae_out", + "semantics": { + "kind": "component", + "members": [ + { "name": "vae", "type": "diffusers.models.autoencoders.autoencoder_kl_flux2.AutoencoderKLFlux2" } + ], + "owner": "same_loader", + "scope": "Flux3ModularPipeline", + "state": null + }, + "types": ["diffusers_auto_model"] + }, + { + "direction": "output", + "hidden": false, + "name": "scheduler", + "required": false, + "roles": ["component"], + "semanticName": "scheduler", + "semantics": { + "kind": "component", + "members": [ + { + "name": "scheduler", + "type": "diffusers.schedulers.scheduling_flow_match_euler_discrete.FlowMatchEulerDiscreteScheduler" + } + ], + "owner": "same_loader", + "scope": "Flux3ModularPipeline", + "state": null + }, + "types": ["diffusers_auto_model"] + }, + { + "direction": "output", + "hidden": true, + "name": "image_encoder", + "required": false, + "roles": ["component"], + "semanticName": "image_encoder", + "semantics": { + "kind": "component", + "members": [], + "owner": "same_loader", + "scope": "Flux3ModularPipeline", + "state": null + }, + "types": ["diffusers_auto_model"] + }, + { + "direction": "output", + "hidden": false, + "name": "pipeline_components", + "required": false, + "roles": ["component"], + "semanticName": "pipeline_components", + "semantics": { + "kind": "component", + "members": [ + { "name": "guider", "type": "diffusers.guiders.classifier_free_guidance.ClassifierFreeGuidance" }, + { + "name": "image_processor", + "type": "diffusers.modular_pipelines.flux3.image_processor.Flux3ImageProcessor" + }, + { + "name": "scheduler", + "type": "diffusers.schedulers.scheduling_flow_match_euler_discrete.FlowMatchEulerDiscreteScheduler" + }, + { + "name": "text_encoder", + "type": "transformers.models.qwen3_vl.modeling_qwen3_vl.Qwen3VLForConditionalGeneration" + }, + { "name": "tokenizer", "type": "transformers.models.auto.processing_auto.AutoProcessor" }, + { + "name": "transformer", + "type": "diffusers.models.transformers.transformer_flux3.Flux3Transformer2DModel" + }, + { "name": "vae", "type": "diffusers.models.autoencoders.autoencoder_kl_flux2.AutoencoderKLFlux2" } + ], + "owner": "same_loader", + "scope": "Flux3ModularPipeline", + "state": null + }, + "types": ["diffusers_modular_pipeline_components"] + }, + { + "direction": "input", + "hidden": false, + "name": "quant_config", + "required": false, + "roles": ["value"], + "semanticName": "quant_config", + "semantics": { + "kind": "opaque", + "members": [], + "owner": "none", + "scope": "Flux3ModularPipeline", + "state": null + }, + "types": ["quant_config"] + } + ], + "support": "declared", + "task": "text_to_image", + "workflowId": "text2image" + }, + { + "binding": { "pipelineClass": "QwenImageModularPipeline", "values": {} }, + "blockName": "decode", + "decomposition": "block", + "nodeKey": "modules.ModularDiffusers.DecodeLatents", + "nodeType": "decoder", + "operationId": "diffusion.decode_latents", + "pipelineClass": "QwenImageModularPipeline", + "ports": [ + { + "direction": "input", + "hidden": false, + "name": "latents", + "required": true, + "roles": ["value"], + "semanticName": "latents", + "semantics": { + "kind": "latents", + "members": [], + "owner": "same_loader", + "scope": "QwenImageModularPipeline", + "state": null + }, + "types": ["latents"] + }, + { + "direction": "input", + "hidden": false, + "name": "route_state_in", + "required": false, + "roles": ["value"], + "semanticName": "route_state_in", + "semantics": { + "kind": "state", + "members": [], + "owner": "same_loader", + "scope": "QwenImageModularPipeline:text2image", + "state": null + }, + "types": ["modular_route_state"] + }, + { + "direction": "input", + "hidden": false, + "name": "vae", + "required": true, + "roles": ["component"], + "semanticName": "vae", + "semantics": { + "kind": "component", + "members": [ + { "name": "vae", "type": "diffusers.models.autoencoders.autoencoder_kl_qwenimage.AutoencoderKLQwenImage" } + ], + "owner": "same_loader", + "scope": "QwenImageModularPipeline", + "state": null, + "suppliedBy": { "input": "pipeline_components", "members": ["vae"] } + }, + "types": ["diffusers_auto_model"] + }, + { + "direction": "output", + "hidden": false, + "name": "images", + "required": false, + "roles": ["value"], + "semanticName": "images", + "semantics": { "kind": "media", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["image"] + }, + { + "direction": "output", + "hidden": false, + "name": "doc", + "required": false, + "roles": ["value"], + "semanticName": "doc", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": false, + "name": "pipeline_components", + "required": false, + "roles": ["component"], + "semanticName": "pipeline_components", + "semantics": { + "kind": "component", + "members": [ + { "name": "vae", "type": "diffusers.models.autoencoders.autoencoder_kl_qwenimage.AutoencoderKLQwenImage" } + ], + "owner": "same_loader", + "scope": "QwenImageModularPipeline", + "state": null + }, + "types": ["diffusers_modular_pipeline_components"] + } + ], + "support": "declared", + "task": "text_to_image", + "workflowId": "text2image" + }, + { + "binding": { "pipelineClass": "QwenImageModularPipeline", "values": {} }, + "blockName": "denoise", + "decomposition": "block", + "nodeKey": "modules.ModularDiffusers.Denoise", + "nodeType": "denoise", + "operationId": "diffusion.denoise", + "pipelineClass": "QwenImageModularPipeline", + "ports": [ + { + "direction": "input", + "hidden": false, + "name": "embeddings", + "required": true, + "roles": ["value"], + "semanticName": "embeddings", + "semantics": { + "kind": "conditioning", + "members": [], + "owner": "same_loader", + "scope": "QwenImageModularPipeline", + "state": null + }, + "types": ["embeddings"] + }, + { + "direction": "input", + "hidden": false, + "name": "width", + "required": false, + "roles": ["value"], + "semanticName": "width", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["int"] + }, + { + "direction": "input", + "hidden": false, + "name": "height", + "required": false, + "roles": ["value"], + "semanticName": "height", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["int"] + }, + { + "direction": "input", + "hidden": false, + "name": "seed", + "required": false, + "roles": ["value"], + "semanticName": "seed", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["int"] + }, + { + "direction": "input", + "hidden": false, + "name": "num_inference_steps", + "required": false, + "roles": ["value"], + "semanticName": "num_inference_steps", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["int"] + }, + { + "direction": "input", + "hidden": false, + "name": "guidance_scale", + "required": false, + "roles": ["value"], + "semanticName": "guidance_scale", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["float"] + }, + { + "direction": "input", + "hidden": false, + "name": "image_latents", + "required": false, + "roles": ["value"], + "semanticName": "image_latents", + "semantics": { + "kind": "latents", + "members": [], + "owner": "same_loader", + "scope": "QwenImageModularPipeline", + "state": null + }, + "types": ["latents"] + }, + { + "direction": "input", + "hidden": false, + "name": "strength", + "required": false, + "roles": ["value"], + "semanticName": "strength", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["float"] + }, + { + "direction": "input", + "hidden": false, + "name": "controlnet_bundle", + "required": false, + "roles": ["value", "component"], + "semanticName": "controlnet_bundle", + "semantics": { + "kind": "conditioning", + "members": [ + { "name": "guider", "type": "diffusers.guiders.classifier_free_guidance.ClassifierFreeGuidance" }, + { + "name": "pachifier", + "type": "diffusers.modular_pipelines.qwenimage.modular_pipeline.QwenImagePachifier" + }, + { + "name": "scheduler", + "type": "diffusers.schedulers.scheduling_flow_match_euler_discrete.FlowMatchEulerDiscreteScheduler" + }, + { + "name": "transformer", + "type": "diffusers.models.transformers.transformer_qwenimage.QwenImageTransformer2DModel" + } + ], + "owner": "same_loader", + "scope": "QwenImageModularPipeline", + "state": null + }, + "types": ["custom_controlnet"] + }, + { + "direction": "input", + "hidden": false, + "name": "route_state_in", + "required": false, + "roles": ["value"], + "semanticName": "route_state_in", + "semantics": { + "kind": "state", + "members": [], + "owner": "same_loader", + "scope": "QwenImageModularPipeline:text2image", + "state": null + }, + "types": ["modular_route_state"] + }, + { + "direction": "input", + "hidden": false, + "name": "unet", + "required": true, + "roles": ["component"], + "semanticName": "unet", + "semantics": { + "kind": "component", + "members": [ + { + "name": "transformer", + "type": "diffusers.models.transformers.transformer_qwenimage.QwenImageTransformer2DModel" + } + ], + "owner": "same_loader", + "scope": "QwenImageModularPipeline", + "state": null, + "suppliedBy": { "input": "pipeline_components", "members": ["transformer"] } + }, + "types": ["diffusers_auto_model"] + }, + { + "direction": "input", + "hidden": false, + "name": "guider", + "required": false, + "roles": ["component"], + "semanticName": "guider", + "semantics": { + "kind": "component", + "members": [ + { "name": "guider", "type": "diffusers.guiders.classifier_free_guidance.ClassifierFreeGuidance" } + ], + "owner": "same_loader", + "scope": "QwenImageModularPipeline", + "state": null + }, + "types": ["custom_guider"] + }, + { + "direction": "input", + "hidden": false, + "name": "scheduler", + "required": true, + "roles": ["component"], + "semanticName": "scheduler", + "semantics": { + "kind": "component", + "members": [ + { + "name": "scheduler", + "type": "diffusers.schedulers.scheduling_flow_match_euler_discrete.FlowMatchEulerDiscreteScheduler" + } + ], + "owner": "same_loader", + "scope": "QwenImageModularPipeline", + "state": null, + "suppliedBy": { "input": "pipeline_components", "members": ["scheduler"] } + }, + "types": ["diffusers_auto_model"] + }, + { + "direction": "output", + "hidden": false, + "name": "latents", + "required": false, + "roles": ["value"], + "semanticName": "latents", + "semantics": { + "kind": "latents", + "members": [], + "owner": "same_loader", + "scope": "QwenImageModularPipeline", + "state": null + }, + "types": ["latents"] + }, + { + "direction": "output", + "hidden": false, + "name": "route_state_out", + "required": false, + "roles": ["value"], + "semanticName": "route_state_out", + "semantics": { + "kind": "state", + "members": [], + "owner": "same_loader", + "scope": "QwenImageModularPipeline:text2image", + "state": null + }, + "types": ["modular_route_state"] + }, + { + "direction": "output", + "hidden": false, + "name": "doc", + "required": false, + "roles": ["value"], + "semanticName": "doc", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": false, + "name": "pipeline_components", + "required": false, + "roles": ["component"], + "semanticName": "pipeline_components", + "semantics": { + "kind": "component", + "members": [ + { + "name": "scheduler", + "type": "diffusers.schedulers.scheduling_flow_match_euler_discrete.FlowMatchEulerDiscreteScheduler" + }, + { + "name": "transformer", + "type": "diffusers.models.transformers.transformer_qwenimage.QwenImageTransformer2DModel" + } + ], + "owner": "same_loader", + "scope": "QwenImageModularPipeline", + "state": null + }, + "types": ["diffusers_modular_pipeline_components"] + } + ], + "support": "declared", + "task": "text_to_image", + "workflowId": "text2image" + }, + { + "binding": { "pipelineClass": "QwenImageModularPipeline", "values": {} }, + "blockName": "text_encoder", + "decomposition": "block", + "nodeKey": "modules.ModularDiffusers.EncodePrompt", + "nodeType": "text_encoder", + "operationId": "diffusion.encode_prompt", + "pipelineClass": "QwenImageModularPipeline", + "ports": [ + { + "direction": "input", + "hidden": false, + "name": "prompt", + "required": true, + "roles": ["value"], + "semanticName": "prompt", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": false, + "name": "negative_prompt", + "required": false, + "roles": ["value"], + "semanticName": "negative_prompt", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": false, + "name": "max_sequence_length", + "required": false, + "roles": ["value"], + "semanticName": "max_sequence_length", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["int"] + }, + { + "direction": "input", + "hidden": false, + "name": "text_encoders", + "required": true, + "roles": ["component"], + "semanticName": "text_encoders", + "semantics": { + "kind": "component", + "members": [ + { + "name": "text_encoder", + "type": "transformers.models.qwen2_5_vl.modeling_qwen2_5_vl.Qwen2_5_VLForConditionalGeneration" + }, + { "name": "tokenizer", "type": "transformers.models.qwen2.tokenization_qwen2.Qwen2Tokenizer" } + ], + "owner": "same_loader", + "scope": "QwenImageModularPipeline", + "state": null, + "suppliedBy": { "input": "pipeline_components", "members": ["text_encoder", "tokenizer"] } + }, + "types": ["diffusers_auto_models"] + }, + { + "direction": "input", + "hidden": false, + "name": "guider", + "required": false, + "roles": ["component"], + "semanticName": "guider", + "semantics": { + "kind": "component", + "members": [ + { "name": "guider", "type": "diffusers.guiders.classifier_free_guidance.ClassifierFreeGuidance" } + ], + "owner": "same_loader", + "scope": "QwenImageModularPipeline", + "state": null + }, + "types": ["custom_guider"] + }, + { + "direction": "output", + "hidden": false, + "name": "embeddings", + "required": false, + "roles": ["value"], + "semanticName": "embeddings", + "semantics": { + "kind": "conditioning", + "members": [], + "owner": "same_loader", + "scope": "QwenImageModularPipeline", + "state": null + }, + "types": ["embeddings"] + }, + { + "direction": "output", + "hidden": false, + "name": "doc", + "required": false, + "roles": ["value"], + "semanticName": "doc", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": false, + "name": "prompt_input", + "required": false, + "roles": ["value"], + "semanticName": "prompt", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": false, + "name": "pipeline_components", + "required": false, + "roles": ["component"], + "semanticName": "pipeline_components", + "semantics": { + "kind": "component", + "members": [ + { + "name": "text_encoder", + "type": "transformers.models.qwen2_5_vl.modeling_qwen2_5_vl.Qwen2_5_VLForConditionalGeneration" + }, + { "name": "tokenizer", "type": "transformers.models.qwen2.tokenization_qwen2.Qwen2Tokenizer" } + ], + "owner": "same_loader", + "scope": "QwenImageModularPipeline", + "state": null + }, + "types": ["diffusers_modular_pipeline_components"] + } + ], + "support": "declared", + "task": "text_to_image", + "workflowId": "text2image" + }, + { + "binding": { + "pipelineClass": "QwenImageModularPipeline", + "values": { "model_type": "QwenImageModularPipeline" } + }, + "blockName": null, + "decomposition": "bundle", + "nodeKey": "modules.ModularDiffusers.Guider", + "nodeType": "guidance", + "operationId": "diffusion.guidance", + "pipelineClass": "QwenImageModularPipeline", + "ports": [ + { + "direction": "input", + "hidden": true, + "name": "model_type", + "required": false, + "roles": ["value"], + "semanticName": "model_type", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": false, + "name": "guider", + "required": false, + "roles": ["value"], + "semanticName": "guider", + "semantics": { + "control": { + "compatibilityScope": "diffusers.qwen.normalized_cfg.v1", + "enabled": "boolean_field", + "enabledField": "enabled", + "formulation": "boolean_field", + "formulationField": "use_original_formulation", + "negativeConditioning": "pipeline_scoped_when_enabled", + "negativeConditioningScope": "QwenImageModularPipeline", + "parameter": "technique", + "scaleMeaning": "cfg_prediction_mix", + "selectorField": "guider", + "selectorValue": "ClassifierFreeGuidance", + "technique": "classifier_free" + }, + "kind": "value", + "members": [], + "owner": "none", + "scope": null, + "state": null + }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": false, + "name": "guidance_scale", + "required": false, + "roles": ["value"], + "semanticName": "guidance_scale", + "semantics": { + "control": { + "compatibilityScope": "diffusers.qwen.normalized_cfg.v1", + "enabled": "boolean_field", + "enabledField": "enabled", + "formulation": "boolean_field", + "formulationField": "use_original_formulation", + "negativeConditioning": "pipeline_scoped_when_enabled", + "negativeConditioningScope": "QwenImageModularPipeline", + "parameter": "scale", + "scaleMeaning": "cfg_prediction_mix", + "selectorField": "guider", + "selectorValue": "ClassifierFreeGuidance", + "technique": "classifier_free" + }, + "kind": "value", + "members": [], + "owner": "none", + "scope": null, + "state": null + }, + "types": ["float"] + }, + { + "direction": "input", + "hidden": false, + "name": "guidance_rescale", + "required": false, + "roles": ["value"], + "semanticName": "guidance_rescale", + "semantics": { + "control": { + "compatibilityScope": "diffusers.qwen.normalized_cfg.v1", + "enabled": "boolean_field", + "enabledField": "enabled", + "formulation": "boolean_field", + "formulationField": "use_original_formulation", + "negativeConditioning": "pipeline_scoped_when_enabled", + "negativeConditioningScope": "QwenImageModularPipeline", + "parameter": "rescale", + "scaleMeaning": "cfg_prediction_mix", + "selectorField": "guider", + "selectorValue": "ClassifierFreeGuidance", + "technique": "classifier_free" + }, + "kind": "value", + "members": [], + "owner": "none", + "scope": null, + "state": null + }, + "types": ["float"] + }, + { + "direction": "input", + "hidden": false, + "name": "use_original_formulation", + "required": false, + "roles": ["value"], + "semanticName": "use_original_formulation", + "semantics": { + "control": { + "compatibilityScope": "diffusers.qwen.normalized_cfg.v1", + "enabled": "boolean_field", + "enabledField": "enabled", + "formulation": "boolean_field", + "formulationField": "use_original_formulation", + "negativeConditioning": "pipeline_scoped_when_enabled", + "negativeConditioningScope": "QwenImageModularPipeline", + "parameter": "formulation", + "scaleMeaning": "cfg_prediction_mix", + "selectorField": "guider", + "selectorValue": "ClassifierFreeGuidance", + "technique": "classifier_free" + }, + "kind": "value", + "members": [], + "owner": "none", + "scope": null, + "state": null + }, + "types": ["boolean"] + }, + { + "direction": "input", + "hidden": false, + "name": "enabled", + "required": false, + "roles": ["value"], + "semanticName": "enabled", + "semantics": { + "control": { + "compatibilityScope": "diffusers.qwen.normalized_cfg.v1", + "enabled": "boolean_field", + "enabledField": "enabled", + "formulation": "boolean_field", + "formulationField": "use_original_formulation", + "negativeConditioning": "pipeline_scoped_when_enabled", + "negativeConditioningScope": "QwenImageModularPipeline", + "parameter": "enabled", + "scaleMeaning": "cfg_prediction_mix", + "selectorField": "guider", + "selectorValue": "ClassifierFreeGuidance", + "technique": "classifier_free" + }, + "kind": "value", + "members": [], + "owner": "none", + "scope": null, + "state": null + }, + "types": ["boolean"] + }, + { + "direction": "input", + "hidden": false, + "name": "start", + "required": false, + "roles": ["value"], + "semanticName": "start", + "semantics": { + "control": { + "compatibilityScope": "diffusers.qwen.normalized_cfg.v1", + "enabled": "boolean_field", + "enabledField": "enabled", + "formulation": "boolean_field", + "formulationField": "use_original_formulation", + "negativeConditioning": "pipeline_scoped_when_enabled", + "negativeConditioningScope": "QwenImageModularPipeline", + "parameter": "start", + "scaleMeaning": "cfg_prediction_mix", + "selectorField": "guider", + "selectorValue": "ClassifierFreeGuidance", + "technique": "classifier_free" + }, + "kind": "value", + "members": [], + "owner": "none", + "scope": null, + "state": null + }, + "types": ["float"] + }, + { + "direction": "input", + "hidden": false, + "name": "stop", + "required": false, + "roles": ["value"], + "semanticName": "stop", + "semantics": { + "control": { + "compatibilityScope": "diffusers.qwen.normalized_cfg.v1", + "enabled": "boolean_field", + "enabledField": "enabled", + "formulation": "boolean_field", + "formulationField": "use_original_formulation", + "negativeConditioning": "pipeline_scoped_when_enabled", + "negativeConditioningScope": "QwenImageModularPipeline", + "parameter": "stop", + "scaleMeaning": "cfg_prediction_mix", + "selectorField": "guider", + "selectorValue": "ClassifierFreeGuidance", + "technique": "classifier_free" + }, + "kind": "value", + "members": [], + "owner": "none", + "scope": null, + "state": null + }, + "types": ["float"] + }, + { + "direction": "output", + "hidden": false, + "name": "guider_out", + "required": false, + "roles": ["component"], + "semanticName": "guider_out", + "semantics": { + "kind": "component", + "members": [], + "owner": "same_loader", + "scope": "QwenImageModularPipeline", + "state": null + }, + "types": ["custom_guider"] + }, + { + "direction": "input", + "hidden": false, + "name": "layers_config", + "required": false, + "roles": ["value"], + "semanticName": "layers_config", + "semantics": { + "kind": "opaque", + "members": [], + "owner": "none", + "scope": "QwenImageModularPipeline", + "state": null + }, + "types": ["layers_config"] + } + ], + "support": "declared", + "task": "text_to_image", + "workflowId": "text2image" + }, + { + "binding": { + "pipelineClass": "QwenImageModularPipeline", + "values": { "model_type": "QwenImageModularPipeline", "workflow_id": "text2image" } + }, + "blockName": null, + "decomposition": "loader", + "nodeKey": "modules.ModularDiffusers.ModelsLoader", + "nodeType": "loader", + "operationId": "diffusion.load_models", + "pipelineClass": "QwenImageModularPipeline", + "ports": [ + { + "direction": "input", + "hidden": false, + "name": "model_type", + "required": false, + "roles": ["value"], + "semanticName": "model_type", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": false, + "name": "repo_id", + "required": false, + "roles": ["value"], + "semanticName": "repo_id", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": true, + "name": "reviewed_variant", + "required": false, + "roles": ["value"], + "semanticName": "reviewed_variant", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": false, + "name": "device", + "required": false, + "roles": ["value"], + "semanticName": "device", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": false, + "name": "attention_backend", + "required": false, + "roles": ["value"], + "semanticName": "attention_backend", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": true, + "name": "vae_slicing", + "required": false, + "roles": ["value"], + "semanticName": "vae_slicing", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["boolean"] + }, + { + "direction": "input", + "hidden": true, + "name": "vae_tiling", + "required": false, + "roles": ["value"], + "semanticName": "vae_tiling", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["boolean"] + }, + { + "direction": "input", + "hidden": true, + "name": "inpaint_compatibility", + "required": false, + "roles": ["value"], + "semanticName": "inpaint_compatibility", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": false, + "name": "trust_remote_code", + "required": false, + "roles": ["value"], + "semanticName": "trust_remote_code", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["boolean"] + }, + { + "direction": "input", + "hidden": false, + "name": "revision", + "required": false, + "roles": ["value"], + "semanticName": "revision", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": true, + "name": "workflow_id", + "required": false, + "roles": ["value"], + "semanticName": "workflow_id", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": true, + "name": "modiff_pipeline_identity", + "required": false, + "roles": ["value"], + "semanticName": "modiff_pipeline_identity", + "semantics": { + "kind": "opaque", + "members": [], + "owner": "none", + "scope": "QwenImageModularPipeline", + "state": null + }, + "types": ["object"] + }, + { + "direction": "input", + "hidden": false, + "name": "auto_offload", + "required": false, + "roles": ["value"], + "semanticName": "auto_offload", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["boolean"] + }, + { + "direction": "input", + "hidden": false, + "name": "offload_mode", + "required": false, + "roles": ["value"], + "semanticName": "offload_mode", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": false, + "name": "weight_loading_mode", + "required": false, + "roles": ["value"], + "semanticName": "weight_loading_mode", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": true, + "name": "weight_format", + "required": false, + "roles": ["value"], + "semanticName": "weight_format", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": false, + "name": "unet", + "required": false, + "roles": ["component"], + "semanticName": "unet", + "semantics": { + "kind": "component", + "members": [ + { + "name": "transformer", + "type": "diffusers.models.transformers.transformer_qwenimage.QwenImageTransformer2DModel" + } + ], + "owner": "same_loader", + "scope": "QwenImageModularPipeline", + "state": null + }, + "types": ["diffusers_auto_model"] + }, + { + "direction": "input", + "hidden": false, + "name": "vae", + "required": false, + "roles": ["component"], + "semanticName": "vae", + "semantics": { + "kind": "component", + "members": [ + { "name": "vae", "type": "diffusers.models.autoencoders.autoencoder_kl_qwenimage.AutoencoderKLQwenImage" } + ], + "owner": "same_loader", + "scope": "QwenImageModularPipeline", + "state": null + }, + "types": ["diffusers_auto_model"] + }, + { + "direction": "input", + "hidden": true, + "name": "controlnet", + "required": false, + "roles": ["component"], + "semanticName": "controlnet", + "semantics": { + "kind": "component", + "members": [], + "owner": "same_loader", + "scope": "QwenImageModularPipeline", + "state": null + }, + "types": ["diffusers_auto_model"] + }, + { + "direction": "input", + "hidden": false, + "name": "lora_list", + "required": false, + "roles": ["value"], + "semanticName": "lora_list", + "semantics": { + "kind": "opaque", + "members": [], + "owner": "none", + "scope": "QwenImageModularPipeline", + "state": null + }, + "types": ["custom_lora"] + }, + { + "direction": "output", + "hidden": false, + "name": "text_encoders", + "required": false, + "roles": ["component"], + "semanticName": "text_encoders", + "semantics": { + "kind": "component", + "members": [ + { + "name": "text_encoder", + "type": "transformers.models.qwen2_5_vl.modeling_qwen2_5_vl.Qwen2_5_VLForConditionalGeneration" + }, + { "name": "tokenizer", "type": "transformers.models.qwen2.tokenization_qwen2.Qwen2Tokenizer" } + ], + "owner": "same_loader", + "scope": "QwenImageModularPipeline", + "state": null + }, + "types": ["diffusers_auto_models"] + }, + { + "direction": "output", + "hidden": false, + "name": "unet_out", + "required": false, + "roles": ["component"], + "semanticName": "unet_out", + "semantics": { + "kind": "component", + "members": [ + { + "name": "transformer", + "type": "diffusers.models.transformers.transformer_qwenimage.QwenImageTransformer2DModel" + } + ], + "owner": "same_loader", + "scope": "QwenImageModularPipeline", + "state": null + }, + "types": ["diffusers_auto_model"] + }, + { + "direction": "output", + "hidden": false, + "name": "vae_out", + "required": false, + "roles": ["component"], + "semanticName": "vae_out", + "semantics": { + "kind": "component", + "members": [ + { "name": "vae", "type": "diffusers.models.autoencoders.autoencoder_kl_qwenimage.AutoencoderKLQwenImage" } + ], + "owner": "same_loader", + "scope": "QwenImageModularPipeline", + "state": null + }, + "types": ["diffusers_auto_model"] + }, + { + "direction": "output", + "hidden": false, + "name": "scheduler", + "required": false, + "roles": ["component"], + "semanticName": "scheduler", + "semantics": { + "kind": "component", + "members": [ + { + "name": "scheduler", + "type": "diffusers.schedulers.scheduling_flow_match_euler_discrete.FlowMatchEulerDiscreteScheduler" + } + ], + "owner": "same_loader", + "scope": "QwenImageModularPipeline", + "state": null + }, + "types": ["diffusers_auto_model"] + }, + { + "direction": "output", + "hidden": true, + "name": "image_encoder", + "required": false, + "roles": ["component"], + "semanticName": "image_encoder", + "semantics": { + "kind": "component", + "members": [], + "owner": "same_loader", + "scope": "QwenImageModularPipeline", + "state": null + }, + "types": ["diffusers_auto_model"] + }, + { + "direction": "output", + "hidden": false, + "name": "pipeline_components", + "required": false, + "roles": ["component"], + "semanticName": "pipeline_components", + "semantics": { + "kind": "component", + "members": [ + { "name": "guider", "type": "diffusers.guiders.classifier_free_guidance.ClassifierFreeGuidance" }, + { "name": "image_processor", "type": "diffusers.image_processor.VaeImageProcessor" }, + { + "name": "pachifier", + "type": "diffusers.modular_pipelines.qwenimage.modular_pipeline.QwenImagePachifier" + }, + { + "name": "scheduler", + "type": "diffusers.schedulers.scheduling_flow_match_euler_discrete.FlowMatchEulerDiscreteScheduler" + }, + { + "name": "text_encoder", + "type": "transformers.models.qwen2_5_vl.modeling_qwen2_5_vl.Qwen2_5_VLForConditionalGeneration" + }, + { "name": "tokenizer", "type": "transformers.models.qwen2.tokenization_qwen2.Qwen2Tokenizer" }, + { + "name": "transformer", + "type": "diffusers.models.transformers.transformer_qwenimage.QwenImageTransformer2DModel" + }, + { "name": "vae", "type": "diffusers.models.autoencoders.autoencoder_kl_qwenimage.AutoencoderKLQwenImage" } + ], + "owner": "same_loader", + "scope": "QwenImageModularPipeline", + "state": null + }, + "types": ["diffusers_modular_pipeline_components"] + }, + { + "direction": "input", + "hidden": false, + "name": "quant_config", + "required": false, + "roles": ["value"], + "semanticName": "quant_config", + "semantics": { + "kind": "opaque", + "members": [], + "owner": "none", + "scope": "QwenImageModularPipeline", + "state": null + }, + "types": ["quant_config"] + } + ], + "support": "declared", + "task": "text_to_image", + "workflowId": "text2image" + } + ], + "proofScope": "Ordinary unprofiled source authoring comparisons only; no model/native/Auto qualification", + "schemaVersion": 1, + "sourceHashes": { + "data/prompt-enhancement-constraints.v1.json": "f321df19db5e99786b807a13d8f380e4bc0577e27163b94e6762661881ac5c08", + "modiff/ancillary_execution.py": "19beae7b072b684208708c8184b1a95d9e3fa85685d2b235bdb8bbc3b6993b30", + "modiff/diffusers_profiles.py": "e4054625fb58711730d5a890bed25658adafdc2e8b45610a848d7dfe3ba8c0d9", + "modiff/operation_catalog.py": "e8cb0738d64652946a9100000f8e2048aa8f96963432a7ed1d4aef34eef3d521", + "modiff/operation_starters.py": "444805940661c0bac6848e36ee3edf7ebe85c5965ce2aeb6a7cb17bee1c58a60", + "modiff/optional_runtimes.py": "991605da4df2a91aab490cbcfe307fe0c3cb514f17e9c55c4088a83a9e0b6041", + "modiff/prompt_enhancement_constraints.py": "501ed02a946ce7255d16505071ff04c0d93eacf73d00626fa24518cd42f96145", + "modiff/runtime_overlays.py": "5949918bef42d68c1087ad36425811e12b608168682990c5c57a05052132e4b6", + "modiff/server.py": "9fe6857104a2688ae449094842f5016e9072540ae1e0553a1ea9b5bc5f6fd7ce", + "modiff/studio_execution_specs.py": "080461244e3ff52b2a8b1c2e0f0dc2113d04389fc9edc4a48bcb926bfc336dac" + } +} diff --git a/tests/fixtures/public-flux3-missing-provider.v1.json b/tests/fixtures/public-flux3-missing-provider.v1.json new file mode 100644 index 00000000..24dafdb7 --- /dev/null +++ b/tests/fixtures/public-flux3-missing-provider.v1.json @@ -0,0 +1,32724 @@ +{ + "activeProvider": null, + "capabilitiesPayload": { + "capabilities": [ + { + "artifactCandidates": ["black-forest-labs/flux-3-image-klein-base"], + "autoEligible": false, + "defaultDtype": "bfloat16", + "defaultRepo": "black-forest-labs/flux-3-image-klein-base", + "defaultSize": { "aspectRatio": "1:1", "height": 1024, "width": 1024 }, + "defaults": { + "dtype": "bfloat16", + "guidanceScale": 3.5, + "offloadMode": null, + "size": { "aspectRatio": "1:1", "height": 1024, "width": 1024 }, + "steps": 50 + }, + "displayName": "FLUX 3 Image Klein Base", + "downloadFiles": [ + "LICENSE.md", + "NOTICE.md", + "modular_model_index.json", + "text_encoder/LICENSE", + "text_encoder/chat_template.json", + "text_encoder/config.json", + "text_encoder/generation_config.json", + "text_encoder/merges.txt", + "text_encoder/model-00001-of-00002.safetensors", + "text_encoder/model-00002-of-00002.safetensors", + "text_encoder/model.safetensors.index.json", + "text_encoder/preprocessor_config.json", + "text_encoder/tokenizer.json", + "text_encoder/tokenizer_config.json", + "text_encoder/video_preprocessor_config.json", + "text_encoder/vocab.json", + "transformer/config.json", + "transformer/diffusion_pytorch_model-00001-of-00002.safetensors", + "transformer/diffusion_pytorch_model-00002-of-00002.safetensors", + "transformer/diffusion_pytorch_model.safetensors.index.json", + "vae/config.json", + "vae/diffusion_pytorch_model.safetensors" + ], + "executionProfiles": [ + { + "adapterAuthoring": { + "adapterNodeKey": "modules.ModularDiffusers.Lora", + "maxOwnedAdapters": 32, + "mediaKind": "image", + "repositoryRevisions": [ + { + "repo": "black-forest-labs/flux-3-image-klein-base", + "revision": "1469d27cfb9bb1bd81d3a93f5a023b39dbf136e4" + } + ], + "requiredControls": { + "auto_offload": false, + "controlnet": null, + "offload_mode": "none", + "quant_config": null, + "trust_remote_code": false, + "unet": null, + "vae": null, + "weight_loading_mode": "cpu" + }, + "schemaVersion": 1, + "tasks": ["text_to_image", "edit_image"] + }, + "authoringRecipes": [ + { + "authoringRecipeId": "flux3-klein-base:official:text-to-image:prompt-preview-append-fp32:v1", + "executionProfileId": "flux3-klein-base:official-provider:v1", + "layoutAuthoringRecipeChoices": [ + { + "authoringRecipeId": "flux3-klein-base:official:text-to-image:prompt-preview-append-fp32:v1", + "label": "Append wording: preserve authored layout" + }, + { + "authoringRecipeId": "flux3-klein-base:official:text-to-image:prompt-preview-constrained-fp32:v1", + "label": "Generate constrained table: FP32 (Expert)" + } + ], + "pipelineClass": "Flux3ModularPipeline", + "rawAuthoringRecipeChoices": [ + { + "authoringRecipeId": "flux3-klein-base:official:text-to-image:prompt-preview-fp32:v1", + "label": "Raw wording: FP32" + }, + { + "authoringRecipeId": "flux3-klein-base:official:text-to-image:prompt-preview-nf4:v1", + "label": "Raw wording: BF16 + NF4" + } + ], + "rawAuthoringRecipeId": "flux3-klein-base:official:text-to-image:prompt-preview-fp32:v1", + "task": "text_to_image" + }, + { + "authoringRecipeId": "flux3-klein-base:official:edit-image:prompt-preview-append-fp32:v1", + "executionProfileId": "flux3-klein-base:official-provider:v1", + "layoutAuthoringRecipeChoices": [ + { + "authoringRecipeId": "flux3-klein-base:official:edit-image:prompt-preview-append-fp32:v1", + "label": "Append wording: preserve authored layout" + }, + { + "authoringRecipeId": "flux3-klein-base:official:edit-image:prompt-preview-constrained-fp32:v1", + "label": "Generate constrained table: FP32 (Expert)" + } + ], + "pipelineClass": "Flux3ModularPipeline", + "rawAuthoringRecipeChoices": [ + { + "authoringRecipeId": "flux3-klein-base:official:edit-image:prompt-preview-fp32:v1", + "label": "Raw wording: FP32" + }, + { + "authoringRecipeId": "flux3-klein-base:official:edit-image:prompt-preview-nf4:v1", + "label": "Raw wording: BF16 + NF4" + } + ], + "rawAuthoringRecipeId": "flux3-klein-base:official:edit-image:prompt-preview-fp32:v1", + "task": "edit_image" + } + ], + "backend_path": "modules.ModularDiffusers.ModelsLoader", + "compatible_repos": [], + "default_quantized_components": [], + "default_repo": "black-forest-labs/flux-3-image-klein-base", + "execution_path": "modular-diffusers", + "fallback_repo": null, + "id": "flux3-klein-base:official-provider:v1", + "live_proof": false, + "loader_action": "ModelsLoader", + "loader_module": "modules.ModularDiffusers", + "max_low_memory_side": null, + "max_low_memory_steps": null, + "model_type": "Flux3ModularPipeline", + "modes": ["text_to_image", "edit_image"], + "optionalRuntimeRequirement": { + "delivery": "optional_overlay", + "executionProfileIds": ["flux3-klein-base:official-provider:v1"], + "profileIds": ["huggingface-diffusers-flux3-7ecb1e1"], + "reason": "optional_runtime_present_unqualified", + "requiredNow": true, + "schemaVersion": 1, + "state": "present_unqualified" + }, + "optional_runtime_delivery": "optional_overlay", + "optional_runtime_platform_deliveries": [ + { "delivery": "optional_overlay", "machine": "x86_64", "platform": "linux" }, + { "delivery": "base", "machine": "arm64", "platform": "linux" }, + { "delivery": "base", "machine": "x86_64", "platform": "macos" }, + { "delivery": "base", "machine": "arm64", "platform": "macos" }, + { "delivery": "optional_overlay", "machine": "x86_64", "platform": "windows" }, + { "delivery": "base", "machine": "arm64", "platform": "windows" } + ], + "optional_runtime_profiles": ["huggingface-diffusers-flux3-7ecb1e1"], + "pipeline_class": "Flux3ModularPipeline", + "public": true, + "quantizable_components": [], + "replaces_private_authoring_profile": "flux3-klein-base:modular", + "repository_revisions": [ + { + "repo": "black-forest-labs/flux-3-image-klein-base", + "revision": "1469d27cfb9bb1bd81d3a93f5a023b39dbf136e4" + } + ], + "required_diffusers_provider": "huggingface-diffusers-flux3-7ecb1e1", + "retry_offload_modes": [], + "supported_offload_modes": ["none", "model_cpu", "group_cpu", "group_disk"] + } + ], + "executionStatus": "expert_only", + "family": "FLUX Image", + "galleryEligible": false, + "guidanceLabel": "Classifier-free guidance", + "inputContracts": { "edit_image": { "requiredImages": ["referenceImages"] } }, + "label": "FLUX 3 Image Klein Base", + "liveProof": false, + "mediaKind": "image", + "modeRequirements": { "edit_image": { "requiredImages": ["referenceImages"] } }, + "modelType": "Flux3ModularPipeline", + "modes": ["text_to_image", "edit_image"], + "notes": [ + "Explicit Expert authoring requires the reviewed optional Diffusers provider.", + "Runtime readiness, model fit, native output and Auto/template qualification are separate." + ], + "optionalRuntimeProfileIds": ["huggingface-diffusers-flux3-7ecb1e1"], + "optionalRuntimeProfiles": [ + { + "activationAvailable": true, + "artifactLocks": [], + "baseRequirements": [ + { "distribution": "accelerate", "importName": "accelerate", "specifier": ">=1.4.0" }, + { "distribution": "anyio", "importName": "anyio", "specifier": "" }, + { "distribution": "certifi", "importName": "certifi", "specifier": "" }, + { "distribution": "click", "importName": "click", "specifier": "" }, + { "distribution": "filelock", "importName": "filelock", "specifier": "" }, + { "distribution": "fsspec", "importName": "fsspec", "specifier": "" }, + { "distribution": "h11", "importName": "h11", "specifier": "" }, + { "distribution": "hf-xet", "importName": "hf_xet", "specifier": "" }, + { "distribution": "httpcore", "importName": "httpcore", "specifier": "" }, + { "distribution": "httpx", "importName": "httpx", "specifier": "" }, + { "distribution": "huggingface-hub", "importName": "huggingface_hub", "specifier": ">=1.32.0,<2.0" }, + { "distribution": "idna", "importName": "idna", "specifier": "" }, + { "distribution": "jinja2", "importName": "jinja2", "specifier": "" }, + { "distribution": "markupsafe", "importName": "markupsafe", "specifier": "" }, + { "distribution": "mpmath", "importName": "mpmath", "specifier": "" }, + { "distribution": "networkx", "importName": "networkx", "specifier": "" }, + { "distribution": "numpy", "importName": "numpy", "specifier": ">=1.17" }, + { "distribution": "packaging", "importName": "packaging", "specifier": ">=20.0" }, + { "distribution": "pillow", "importName": "PIL", "specifier": ">=10.0.1,<=15.0" }, + { "distribution": "protobuf", "importName": "google.protobuf", "specifier": ">=6.31.1" }, + { "distribution": "psutil", "importName": "psutil", "specifier": "" }, + { "distribution": "pyyaml", "importName": "yaml", "specifier": ">=5.1" }, + { "distribution": "regex", "importName": "regex", "specifier": ">=2025.10.22" }, + { "distribution": "safetensors", "importName": "safetensors", "specifier": ">=0.8.0" }, + { "distribution": "sentencepiece", "importName": "sentencepiece", "specifier": ">=0.2.0" }, + { "distribution": "setuptools", "importName": "setuptools", "specifier": "" }, + { "distribution": "sympy", "importName": "sympy", "specifier": "" }, + { "distribution": "torch", "importName": "torch", "specifier": ">=2.6.0" }, + { "distribution": "torchvision", "importName": "torchvision", "specifier": ">=0.21.0" }, + { "distribution": "tqdm", "importName": "tqdm", "specifier": ">=4.60" }, + { "distribution": "typing-extensions", "importName": "typing_extensions", "specifier": "" }, + { "distribution": "colorama", "importName": "colorama", "platforms": ["windows"], "specifier": "" }, + { "distribution": "transformers", "importName": "transformers", "specifier": ">=5.18.0" }, + { "distribution": "peft", "importName": "peft", "specifier": ">=0.21.2" }, + { "distribution": "tokenizers", "importName": "tokenizers", "specifier": "" }, + { "distribution": "typer", "importName": "typer", "specifier": "" }, + { "distribution": "annotated-doc", "importName": "annotated_doc", "specifier": "" }, + { "distribution": "rich", "importName": "rich", "specifier": "" }, + { "distribution": "markdown-it-py", "importName": "markdown_it", "specifier": "" }, + { "distribution": "mdurl", "importName": "mdurl", "specifier": "" }, + { "distribution": "pygments", "importName": "pygments", "specifier": "" }, + { "distribution": "shellingham", "importName": "shellingham", "specifier": "" }, + { "distribution": "requests", "importName": "requests", "specifier": ">=2.25" }, + { "distribution": "urllib3", "importName": "urllib3", "specifier": "" }, + { "distribution": "charset-normalizer", "importName": "charset_normalizer", "specifier": "" }, + { "distribution": "importlib-metadata", "importName": "importlib_metadata", "specifier": "" } + ], + "contractState": "qualified", + "cutoverReady": true, + "excludedQualificationSymbols": ["add_weighted_adapter"], + "id": "huggingface-diffusers-flux3-7ecb1e1", + "installActionAvailable": true, + "installPolicy": "explicit_first_use", + "label": "Official Diffusers FLUX 3 source runtime", + "machine": "x86_64", + "packages": [ + { + "distribution": "diffusers", + "distributionUrl": "https://codeload.github.com/huggingface/diffusers/tar.gz/7ecb1e1b4fe500be7fb7381a7bb79a24d7fa3941", + "importName": "diffusers", + "installedVersion": "0.41.0.dev0", + "license": "Apache-2.0", + "projectUrl": "https://github.com/huggingface/diffusers", + "publisher": "Hugging Face", + "requiredClassSymbols": [ + "Flux3ModularPipeline", + "Flux3DistilledModularPipeline", + "Flux3Transformer2DModel", + "AutoencoderKLFlux2", + "FlowMatchEulerDiscreteScheduler", + "ClassifierFreeGuidance", + "ModularPipeline", + "ComponentsManager", + "ComponentSpec" + ], + "requiredSymbols": [ + "Flux3ModularPipeline", + "Flux3DistilledModularPipeline", + "Flux3Transformer2DModel", + "AutoencoderKLFlux2", + "FlowMatchEulerDiscreteScheduler", + "ClassifierFreeGuidance", + "ModularPipeline", + "ComponentsManager", + "ComponentSpec", + "diffusers.loaders.lora_conversion_utils:_convert_non_diffusers_flux3_lora_to_diffusers" + ], + "requiredVersion": "0.41.0.dev0", + "requirement": "diffusers==0.41.0.dev0", + "role": "runtime_root", + "status": "present_unqualified" + } + ], + "pipelineAdapterMethods": [ + { "method": "load_components", "requiredParameters": ["names", "workflow"] }, + { "method": "__call__", "requiredParameters": ["state", "output"] } + ], + "pipelineAdapterSymbols": ["Flux3ModularPipeline", "Flux3DistilledModularPipeline"], + "platform": "windows", + "providesDiffusers": true, + "requirePeftBackend": true, + "requiredDiffusersSymbols": [ + "Flux3ModularPipeline", + "Flux3DistilledModularPipeline", + "Flux3Transformer2DModel", + "AutoencoderKLFlux2", + "FlowMatchEulerDiscreteScheduler", + "ClassifierFreeGuidance", + "ModularPipeline", + "ComponentsManager", + "ComponentSpec" + ], + "requirements": ["diffusers==0.41.0.dev0"], + "schemaVersion": 1, + "sourceBuilds": [ + { + "buildDependencies": [], + "distribution": "diffusers", + "outputWheel": { + "byteSize": 27721978, + "distribution": "diffusers", + "filename": "diffusers-0.41.0.dev0-py3-none-any.whl", + "machine": "any", + "platform": "any", + "pythonTag": "py3", + "sha256": "59c8eb8aaaa25fe5f912e09c48bf66f7e41655c468a7ec47f56da93d8ca40dbd", + "version": "0.41.0.dev0" + }, + "pythonTag": "py3", + "recipe": "modiff_pure_python_wheel_v1", + "schemaVersion": 1, + "sourceArtifact": { + "archiveRoot": "diffusers-7ecb1e1b4fe500be7fb7381a7bb79a24d7fa3941", + "byteSize": 11802397, + "commit": "7ecb1e1b4fe500be7fb7381a7bb79a24d7fa3941", + "filename": "diffusers-7ecb1e1b4fe500be7fb7381a7bb79a24d7fa3941.tar.gz", + "kind": "github_commit_tarball", + "repository": "huggingface/diffusers", + "sha256": "84ee014d4acc0c7633d2778f2ac0125fa77a87e736c86a8092edb1d47a55a744", + "url": "https://codeload.github.com/huggingface/diffusers/tar.gz/7ecb1e1b4fe500be7fb7381a7bb79a24d7fa3941" + }, + "sourceDateEpoch": 315532800, + "sourceFiles": ["LICENSE", "README.md", "pyproject.toml", "setup.py"], + "sourceTrees": ["src/diffusers"], + "version": "0.41.0.dev0", + "wheelMetadata": { + "consoleScripts": { "diffusers-cli": "diffusers.commands.diffusers_cli:main" }, + "license": "Apache 2.0 License", + "licenseFile": "LICENSE", + "packageRoot": "src", + "requiresDist": [ + "importlib_metadata", + "filelock", + "huggingface-hub<3.0,>=1.32.0", + "numpy", + "regex!=2019.12.17", + "requests", + "safetensors>=0.8.0", + "Pillow" + ], + "requiresPython": ">=3.11.0", + "summary": "State-of-the-art diffusion in PyTorch." + } + } + ], + "specDigest": "sha256:82017c1615d807c1808c13929f0ee10b180058b2f976e51209a80e41939a40fe", + "stagedPackages": [ + { + "distribution": "diffusers", + "distributionUrl": "https://codeload.github.com/huggingface/diffusers/tar.gz/7ecb1e1b4fe500be7fb7381a7bb79a24d7fa3941", + "importName": "diffusers", + "license": "Apache-2.0", + "projectUrl": "https://github.com/huggingface/diffusers", + "publisher": "Hugging Face", + "requiredClassSymbols": [ + "Flux3ModularPipeline", + "Flux3DistilledModularPipeline", + "Flux3Transformer2DModel", + "AutoencoderKLFlux2", + "FlowMatchEulerDiscreteScheduler", + "ClassifierFreeGuidance", + "ModularPipeline", + "ComponentsManager", + "ComponentSpec" + ], + "requiredSymbols": [ + "Flux3ModularPipeline", + "Flux3DistilledModularPipeline", + "Flux3Transformer2DModel", + "AutoencoderKLFlux2", + "FlowMatchEulerDiscreteScheduler", + "ClassifierFreeGuidance", + "ModularPipeline", + "ComponentsManager", + "ComponentSpec", + "diffusers.loaders.lora_conversion_utils:_convert_non_diffusers_flux3_lora_to_diffusers" + ], + "requiredVersion": "0.41.0.dev0", + "requirement": "diffusers==0.41.0.dev0", + "role": "runtime_root" + } + ], + "stagedRequirements": ["diffusers==0.41.0.dev0"], + "status": "present_unqualified", + "targetContracts": [ + { + "activationAvailable": true, + "contractState": "qualified", + "cutoverReady": true, + "installActionAvailable": true, + "machine": "x86_64", + "platform": "linux" + }, + { + "activationAvailable": false, + "contractState": "candidate_unqualified", + "cutoverReady": false, + "installActionAvailable": false, + "machine": "arm64", + "platform": "linux" + }, + { + "activationAvailable": false, + "contractState": "candidate_unqualified", + "cutoverReady": false, + "installActionAvailable": false, + "machine": "x86_64", + "platform": "macos" + }, + { + "activationAvailable": false, + "contractState": "candidate_unqualified", + "cutoverReady": false, + "installActionAvailable": false, + "machine": "arm64", + "platform": "macos" + }, + { + "activationAvailable": true, + "contractState": "qualified", + "cutoverReady": true, + "installActionAvailable": true, + "machine": "x86_64", + "platform": "windows" + }, + { + "activationAvailable": false, + "contractState": "candidate_unqualified", + "cutoverReady": false, + "installActionAvailable": false, + "machine": "arm64", + "platform": "windows" + } + ] + } + ], + "optionalRuntimeRequirement": { + "delivery": "optional_overlay", + "executionProfileIds": ["flux3-klein-base:official-provider:v1"], + "profileIds": ["huggingface-diffusers-flux3-7ecb1e1"], + "reason": "optional_runtime_present_unqualified", + "requiredNow": true, + "schemaVersion": 1, + "state": "present_unqualified" + }, + "outputKind": "image", + "parameterAliases": { + "controlImage": ["control_image", "conditioning_image"], + "guidanceScale": ["guidance_scale", "true_cfg_scale", "guidance"], + "maskImage": ["mask_image", "mask"], + "modelRepository": ["model_id", "model", "repo"], + "sourceImage": ["image", "reference_images"], + "steps": ["num_inference_steps", "steps"] + }, + "pipelineClasses": ["Flux3ModularPipeline"], + "qualificationStatus": "runtime-required", + "qualifiedModes": [], + "quantizationSupport": { "components": [], "defaultMode": "none", "offloadModes": [] }, + "recommendedGuidance": 3.5, + "recommendedSteps": 50, + "revisionCandidates": ["1469d27cfb9bb1bd81d3a93f5a023b39dbf136e4"], + "runnableModes": ["edit_image", "text_to_image"], + "schemaVersion": 2, + "studioExecutionSpecModes": ["edit_image", "text_to_image"], + "studioExecutionSpecSchemaVersion": 1, + "studioExecutionSpecs": [ + { + "actions": [], + "autoFields": [ + "resolvedArtifact", + "artifact", + "installTarget.repo", + "modelRepo", + "pipelineClass", + "dtype", + "offloadMode", + "quantizedComponents", + "attentionBackend", + "regionalCompile", + "denoiserCache", + "layerwiseCasting", + "channelsLast" + ], + "bindings": [ + ["models", "model_type", "pipelineClass"], + ["models", "repo_id", "artifact"], + ["models", "revision", "defaultRevision"], + ["models", "dtype", "dtype"], + ["models", "device", "device"], + ["models", "auto_offload", "autoOffload"], + ["models", "offload_mode", "offloadMode"], + ["models", "trust_remote_code", "false"], + ["prompt", "prompt", "prompt"], + ["prompt", "negative_prompt", "negativePrompt"], + ["denoise", "width", "width"], + ["denoise", "height", "height"], + ["denoise", "seed", "seed"], + ["denoise", "num_inference_steps", "steps"], + ["prompt", "max_sequence_length", "maxSequenceLength"], + ["models", "weight_format", "weightFormat"], + ["guider", "guider", "classifierFreeGuidance"], + ["guider", "model_type", "pipelineClass"], + ["guider", "guidance_scale", "guidanceScale"] + ], + "canonicalizationVersion": 1, + "contentHash": "studio-spec-v1-f5960f24", + "defaultRepo": "black-forest-labs/flux-3-image-klein-base", + "edges": [ + ["models", "text_encoders", "prompt", "text_encoders"], + ["models", "unet_out", "denoise", "unet"], + ["models", "scheduler", "denoise", "scheduler"], + ["models", "vae_out", "decode", "vae"], + ["prompt", "embeddings", "denoise", "embeddings"], + ["denoise", "latents", "decode", "latents"], + ["decode", "images", "preview", "image"], + ["guider", "guider_out", "denoise", "guider"] + ], + "executionPath": "modular-diffusers", + "executionProfileId": "flux3-klein-base:official-provider:v1", + "id": "flux3-klein-base:official-provider:v1:text-to-image:v1", + "loaderAction": "ModelsLoader", + "loaderModule": "modules.ModularDiffusers", + "mode": "text_to_image", + "modelType": "Flux3ModularPipeline", + "pipelineClass": "Flux3ModularPipeline", + "requiredDiffusersProvider": "huggingface-diffusers-flux3-7ecb1e1", + "roles": [ + ["models", "modules.ModularDiffusers.ModelsLoader", -720, -80], + ["prompt", "modules.ModularDiffusers.EncodePrompt", -360, -240], + ["denoise", "modules.ModularDiffusers.Denoise", 80, -80], + ["decode", "modules.ModularDiffusers.DecodeLatents", 440, -80], + ["preview", "modules.Image.Preview", 800, -80], + ["guider", "modules.ModularDiffusers.Guider", -360, 160] + ], + "schemaVersion": 1 + }, + { + "actions": [], + "autoFields": [ + "resolvedArtifact", + "artifact", + "installTarget.repo", + "modelRepo", + "pipelineClass", + "dtype", + "offloadMode", + "quantizedComponents", + "attentionBackend", + "regionalCompile", + "denoiserCache", + "layerwiseCasting", + "channelsLast" + ], + "bindings": [ + ["models", "model_type", "pipelineClass"], + ["models", "repo_id", "artifact"], + ["models", "revision", "defaultRevision"], + ["models", "dtype", "dtype"], + ["models", "device", "device"], + ["models", "auto_offload", "autoOffload"], + ["models", "offload_mode", "offloadMode"], + ["models", "trust_remote_code", "false"], + ["prompt", "prompt", "prompt"], + ["prompt", "negative_prompt", "negativePrompt"], + ["denoise", "width", "width"], + ["denoise", "height", "height"], + ["denoise", "seed", "seed"], + ["denoise", "num_inference_steps", "steps"], + ["prompt", "max_sequence_length", "maxSequenceLength"], + ["models", "weight_format", "weightFormat"], + ["guider", "guider", "classifierFreeGuidance"], + ["guider", "model_type", "pipelineClass"], + ["guider", "guidance_scale", "guidanceScale"], + ["loadImage", "file", "referenceImages"], + ["loadImage", "alpha_channel", "alphaMode"] + ], + "canonicalizationVersion": 1, + "contentHash": "studio-spec-v1-df55b87c", + "defaultRepo": "black-forest-labs/flux-3-image-klein-base", + "edges": [ + ["models", "text_encoders", "prompt", "text_encoders"], + ["models", "unet_out", "denoise", "unet"], + ["models", "scheduler", "denoise", "scheduler"], + ["models", "vae_out", "decode", "vae"], + ["prompt", "embeddings", "denoise", "embeddings"], + ["denoise", "latents", "decode", "latents"], + ["decode", "images", "preview", "image"], + ["guider", "guider_out", "denoise", "guider"], + ["models", "vae_out", "imageEncode", "vae"], + ["loadImage", "image", "imageEncode", "image"], + ["imageEncode", "image_cond_latents", "denoise", "image_cond_latents"], + ["imageEncode", "reference_binding", "prompt", "reference_binding"], + ["imageEncode", "reference_binding", "denoise", "reference_binding"] + ], + "executionPath": "modular-diffusers", + "executionProfileId": "flux3-klein-base:official-provider:v1", + "id": "flux3-klein-base:official-provider:v1:edit-image:v1", + "loaderAction": "ModelsLoader", + "loaderModule": "modules.ModularDiffusers", + "mode": "edit_image", + "modelType": "Flux3ModularPipeline", + "pipelineClass": "Flux3ModularPipeline", + "requiredDiffusersProvider": "huggingface-diffusers-flux3-7ecb1e1", + "roles": [ + ["models", "modules.ModularDiffusers.ModelsLoader", -720, -80], + ["prompt", "modules.ModularDiffusers.EncodePrompt", -360, -240], + ["denoise", "modules.ModularDiffusers.Denoise", 80, -80], + ["decode", "modules.ModularDiffusers.DecodeLatents", 440, -80], + ["preview", "modules.Image.Preview", 800, -80], + ["guider", "modules.ModularDiffusers.Guider", -360, 160], + ["loadImage", "modules.Image.Load", -720, 320], + ["imageEncode", "modules.ModularDiffusers.ImageEncode", -360, 320] + ], + "schemaVersion": 1 + } + ], + "supportTier": "experimental", + "supportsControlImage": false, + "supportsGuidance": true, + "supportsImageInput": true, + "supportsLayers": false, + "supportsLora": true, + "supportsMask": false, + "supportsMultiImage": true, + "supportsNegativePrompt": true, + "taskTemplateContractModes": ["edit_image", "text_to_image"], + "taskTemplateContractSchemaVersion": 1, + "taskTemplateContracts": [ + { + "auxiliaryTerminalRoles": [], + "canonicalizationVersion": 1, + "contentHash": "task-template-v1-48a3cc12", + "defaultRepo": "black-forest-labs/flux-3-image-klein-base", + "executionProfileId": "flux3-klein-base:official-provider:v1", + "executionSpecContentHash": "studio-spec-v1-df55b87c", + "executionSpecId": "flux3-klein-base:official-provider:v1:edit-image:v1", + "galleryEligible": false, + "id": "task-template:flux3-klein-base:official-provider:v1:edit-image:v1", + "loaderAction": "ModelsLoader", + "loaderModule": "modules.ModularDiffusers", + "loaderRepositories": ["black-forest-labs/flux-3-image-klein-base"], + "loaderRole": "models", + "mediaKind": "image", + "mode": "edit_image", + "modelType": "Flux3ModularPipeline", + "output": { + "inputHandle": "image", + "mediaKind": "image", + "nodeKey": "modules.Image.Preview", + "role": "preview" + }, + "pipelineClass": "Flux3ModularPipeline", + "qualificationStatus": "runtime-required", + "requiredMedia": [{ "field": "referenceImages", "kind": "image", "minimumCount": 1 }], + "schemaVersion": 1 + }, + { + "auxiliaryTerminalRoles": [], + "canonicalizationVersion": 1, + "contentHash": "task-template-v1-8ada2bc9", + "defaultRepo": "black-forest-labs/flux-3-image-klein-base", + "executionProfileId": "flux3-klein-base:official-provider:v1", + "executionSpecContentHash": "studio-spec-v1-f5960f24", + "executionSpecId": "flux3-klein-base:official-provider:v1:text-to-image:v1", + "galleryEligible": false, + "id": "task-template:flux3-klein-base:official-provider:v1:text-to-image:v1", + "loaderAction": "ModelsLoader", + "loaderModule": "modules.ModularDiffusers", + "loaderRepositories": ["black-forest-labs/flux-3-image-klein-base"], + "loaderRole": "models", + "mediaKind": "image", + "mode": "text_to_image", + "modelType": "Flux3ModularPipeline", + "output": { + "inputHandle": "image", + "mediaKind": "image", + "nodeKey": "modules.Image.Preview", + "role": "preview" + }, + "pipelineClass": "Flux3ModularPipeline", + "qualificationStatus": "runtime-required", + "requiredMedia": [], + "schemaVersion": 1 + } + ], + "templateEligible": false, + "weightFormatSelections": [ + { + "downloadFiles": [ + "LICENSE.md", + "NOTICE.md", + "modular_model_index.json", + "text_encoder/LICENSE", + "text_encoder/chat_template.json", + "text_encoder/config.json", + "text_encoder/generation_config.json", + "text_encoder/merges.txt", + "text_encoder/model-00001-of-00002.safetensors", + "text_encoder/model-00002-of-00002.safetensors", + "text_encoder/model.safetensors.index.json", + "text_encoder/preprocessor_config.json", + "text_encoder/tokenizer.json", + "text_encoder/tokenizer_config.json", + "text_encoder/video_preprocessor_config.json", + "text_encoder/vocab.json", + "transformer/config.json", + "vae/config.json", + "vae/diffusion_pytorch_model.safetensors", + "variants/fp8r/model.safetensors" + ], + "repo": "black-forest-labs/flux-3-image-klein-base", + "revision": "1469d27cfb9bb1bd81d3a93f5a023b39dbf136e4", + "weightFormat": "fp8r" + }, + { + "downloadFiles": [ + "LICENSE.md", + "NOTICE.md", + "modular_model_index.json", + "text_encoder/LICENSE", + "text_encoder/chat_template.json", + "text_encoder/config.json", + "text_encoder/generation_config.json", + "text_encoder/merges.txt", + "text_encoder/model-00001-of-00002.safetensors", + "text_encoder/model-00002-of-00002.safetensors", + "text_encoder/model.safetensors.index.json", + "text_encoder/preprocessor_config.json", + "text_encoder/tokenizer.json", + "text_encoder/tokenizer_config.json", + "text_encoder/video_preprocessor_config.json", + "text_encoder/vocab.json", + "transformer/config.json", + "vae/config.json", + "vae/diffusion_pytorch_model.safetensors", + "variants/nvfp4/model.safetensors" + ], + "repo": "black-forest-labs/flux-3-image-klein-base", + "revision": "1469d27cfb9bb1bd81d3a93f5a023b39dbf136e4", + "weightFormat": "nvfp4" + } + ] + }, + { + "artifactCandidates": ["black-forest-labs/flux-3-image-klein"], + "autoEligible": false, + "defaultDtype": "bfloat16", + "defaultRepo": "black-forest-labs/flux-3-image-klein", + "defaultSize": { "aspectRatio": "1:1", "height": 1024, "width": 1024 }, + "defaults": { + "dtype": "bfloat16", + "guidanceScale": 1.0, + "offloadMode": null, + "size": { "aspectRatio": "1:1", "height": 1024, "width": 1024 }, + "steps": 16 + }, + "displayName": "FLUX 3 Image Klein", + "downloadFiles": [ + "LICENSE.md", + "NOTICE.md", + "modular_model_index.json", + "text_encoder/LICENSE", + "text_encoder/chat_template.json", + "text_encoder/config.json", + "text_encoder/generation_config.json", + "text_encoder/merges.txt", + "text_encoder/model-00001-of-00002.safetensors", + "text_encoder/model-00002-of-00002.safetensors", + "text_encoder/model.safetensors.index.json", + "text_encoder/preprocessor_config.json", + "text_encoder/tokenizer.json", + "text_encoder/tokenizer_config.json", + "text_encoder/video_preprocessor_config.json", + "text_encoder/vocab.json", + "transformer/config.json", + "transformer/diffusion_pytorch_model-00001-of-00002.safetensors", + "transformer/diffusion_pytorch_model-00002-of-00002.safetensors", + "transformer/diffusion_pytorch_model.safetensors.index.json", + "vae/config.json", + "vae/diffusion_pytorch_model.safetensors" + ], + "executionProfiles": [ + { + "adapterAuthoring": { + "adapterNodeKey": "modules.ModularDiffusers.Lora", + "maxOwnedAdapters": 32, + "mediaKind": "image", + "repositoryRevisions": [ + { + "repo": "black-forest-labs/flux-3-image-klein", + "revision": "8454017f9ebaada30c998fccd9f67a80c7580f68" + } + ], + "requiredControls": { + "auto_offload": false, + "controlnet": null, + "offload_mode": "none", + "quant_config": null, + "trust_remote_code": false, + "unet": null, + "vae": null, + "weight_loading_mode": "cpu" + }, + "schemaVersion": 1, + "tasks": ["text_to_image", "edit_image"] + }, + "authoringRecipes": [ + { + "authoringRecipeId": "flux3-klein:official:text-to-image:prompt-preview-append-fp32:v1", + "executionProfileId": "flux3-klein:official-provider:v1", + "layoutAuthoringRecipeChoices": [ + { + "authoringRecipeId": "flux3-klein:official:text-to-image:prompt-preview-append-fp32:v1", + "label": "Append wording: preserve authored layout" + }, + { + "authoringRecipeId": "flux3-klein:official:text-to-image:prompt-preview-constrained-fp32:v1", + "label": "Generate constrained table: FP32 (Expert)" + } + ], + "pipelineClass": "Flux3DistilledModularPipeline", + "rawAuthoringRecipeChoices": [ + { + "authoringRecipeId": "flux3-klein:official:text-to-image:prompt-preview-fp32:v1", + "label": "Raw wording: FP32" + }, + { + "authoringRecipeId": "flux3-klein:official:text-to-image:prompt-preview-nf4:v1", + "label": "Raw wording: BF16 + NF4" + } + ], + "rawAuthoringRecipeId": "flux3-klein:official:text-to-image:prompt-preview-fp32:v1", + "task": "text_to_image" + }, + { + "authoringRecipeId": "flux3-klein:official:edit-image:prompt-preview-append-fp32:v1", + "executionProfileId": "flux3-klein:official-provider:v1", + "layoutAuthoringRecipeChoices": [ + { + "authoringRecipeId": "flux3-klein:official:edit-image:prompt-preview-append-fp32:v1", + "label": "Append wording: preserve authored layout" + }, + { + "authoringRecipeId": "flux3-klein:official:edit-image:prompt-preview-constrained-fp32:v1", + "label": "Generate constrained table: FP32 (Expert)" + } + ], + "pipelineClass": "Flux3DistilledModularPipeline", + "rawAuthoringRecipeChoices": [ + { + "authoringRecipeId": "flux3-klein:official:edit-image:prompt-preview-fp32:v1", + "label": "Raw wording: FP32" + }, + { + "authoringRecipeId": "flux3-klein:official:edit-image:prompt-preview-nf4:v1", + "label": "Raw wording: BF16 + NF4" + } + ], + "rawAuthoringRecipeId": "flux3-klein:official:edit-image:prompt-preview-fp32:v1", + "task": "edit_image" + } + ], + "backend_path": "modules.ModularDiffusers.ModelsLoader", + "compatible_repos": [], + "default_quantized_components": [], + "default_repo": "black-forest-labs/flux-3-image-klein", + "execution_path": "modular-diffusers", + "fallback_repo": null, + "id": "flux3-klein:official-provider:v1", + "live_proof": false, + "loader_action": "ModelsLoader", + "loader_module": "modules.ModularDiffusers", + "max_low_memory_side": null, + "max_low_memory_steps": null, + "model_type": "Flux3DistilledModularPipeline", + "modes": ["text_to_image", "edit_image"], + "optionalRuntimeRequirement": { + "delivery": "optional_overlay", + "executionProfileIds": ["flux3-klein:official-provider:v1"], + "profileIds": ["huggingface-diffusers-flux3-7ecb1e1"], + "reason": "optional_runtime_present_unqualified", + "requiredNow": true, + "schemaVersion": 1, + "state": "present_unqualified" + }, + "optional_runtime_delivery": "optional_overlay", + "optional_runtime_platform_deliveries": [ + { "delivery": "optional_overlay", "machine": "x86_64", "platform": "linux" }, + { "delivery": "base", "machine": "arm64", "platform": "linux" }, + { "delivery": "base", "machine": "x86_64", "platform": "macos" }, + { "delivery": "base", "machine": "arm64", "platform": "macos" }, + { "delivery": "optional_overlay", "machine": "x86_64", "platform": "windows" }, + { "delivery": "base", "machine": "arm64", "platform": "windows" } + ], + "optional_runtime_profiles": ["huggingface-diffusers-flux3-7ecb1e1"], + "pipeline_class": "Flux3DistilledModularPipeline", + "public": true, + "quantizable_components": [], + "replaces_private_authoring_profile": "flux3-klein:modular", + "repository_revisions": [ + { "repo": "black-forest-labs/flux-3-image-klein", "revision": "8454017f9ebaada30c998fccd9f67a80c7580f68" } + ], + "required_diffusers_provider": "huggingface-diffusers-flux3-7ecb1e1", + "retry_offload_modes": [], + "supported_offload_modes": ["none", "model_cpu", "group_cpu", "group_disk"] + } + ], + "executionStatus": "expert_only", + "family": "FLUX Image", + "galleryEligible": false, + "guidanceLabel": "Classifier-free guidance", + "inputContracts": { "edit_image": { "requiredImages": ["referenceImages"] } }, + "label": "FLUX 3 Image Klein", + "liveProof": false, + "mediaKind": "image", + "modeRequirements": { "edit_image": { "requiredImages": ["referenceImages"] } }, + "modelType": "Flux3DistilledModularPipeline", + "modes": ["text_to_image", "edit_image"], + "notes": [ + "Explicit Expert authoring requires the reviewed optional Diffusers provider.", + "Runtime readiness, model fit, native output and Auto/template qualification are separate." + ], + "optionalRuntimeProfileIds": ["huggingface-diffusers-flux3-7ecb1e1"], + "optionalRuntimeProfiles": [ + { + "activationAvailable": true, + "artifactLocks": [], + "baseRequirements": [ + { "distribution": "accelerate", "importName": "accelerate", "specifier": ">=1.4.0" }, + { "distribution": "anyio", "importName": "anyio", "specifier": "" }, + { "distribution": "certifi", "importName": "certifi", "specifier": "" }, + { "distribution": "click", "importName": "click", "specifier": "" }, + { "distribution": "filelock", "importName": "filelock", "specifier": "" }, + { "distribution": "fsspec", "importName": "fsspec", "specifier": "" }, + { "distribution": "h11", "importName": "h11", "specifier": "" }, + { "distribution": "hf-xet", "importName": "hf_xet", "specifier": "" }, + { "distribution": "httpcore", "importName": "httpcore", "specifier": "" }, + { "distribution": "httpx", "importName": "httpx", "specifier": "" }, + { "distribution": "huggingface-hub", "importName": "huggingface_hub", "specifier": ">=1.32.0,<2.0" }, + { "distribution": "idna", "importName": "idna", "specifier": "" }, + { "distribution": "jinja2", "importName": "jinja2", "specifier": "" }, + { "distribution": "markupsafe", "importName": "markupsafe", "specifier": "" }, + { "distribution": "mpmath", "importName": "mpmath", "specifier": "" }, + { "distribution": "networkx", "importName": "networkx", "specifier": "" }, + { "distribution": "numpy", "importName": "numpy", "specifier": ">=1.17" }, + { "distribution": "packaging", "importName": "packaging", "specifier": ">=20.0" }, + { "distribution": "pillow", "importName": "PIL", "specifier": ">=10.0.1,<=15.0" }, + { "distribution": "protobuf", "importName": "google.protobuf", "specifier": ">=6.31.1" }, + { "distribution": "psutil", "importName": "psutil", "specifier": "" }, + { "distribution": "pyyaml", "importName": "yaml", "specifier": ">=5.1" }, + { "distribution": "regex", "importName": "regex", "specifier": ">=2025.10.22" }, + { "distribution": "safetensors", "importName": "safetensors", "specifier": ">=0.8.0" }, + { "distribution": "sentencepiece", "importName": "sentencepiece", "specifier": ">=0.2.0" }, + { "distribution": "setuptools", "importName": "setuptools", "specifier": "" }, + { "distribution": "sympy", "importName": "sympy", "specifier": "" }, + { "distribution": "torch", "importName": "torch", "specifier": ">=2.6.0" }, + { "distribution": "torchvision", "importName": "torchvision", "specifier": ">=0.21.0" }, + { "distribution": "tqdm", "importName": "tqdm", "specifier": ">=4.60" }, + { "distribution": "typing-extensions", "importName": "typing_extensions", "specifier": "" }, + { "distribution": "colorama", "importName": "colorama", "platforms": ["windows"], "specifier": "" }, + { "distribution": "transformers", "importName": "transformers", "specifier": ">=5.18.0" }, + { "distribution": "peft", "importName": "peft", "specifier": ">=0.21.2" }, + { "distribution": "tokenizers", "importName": "tokenizers", "specifier": "" }, + { "distribution": "typer", "importName": "typer", "specifier": "" }, + { "distribution": "annotated-doc", "importName": "annotated_doc", "specifier": "" }, + { "distribution": "rich", "importName": "rich", "specifier": "" }, + { "distribution": "markdown-it-py", "importName": "markdown_it", "specifier": "" }, + { "distribution": "mdurl", "importName": "mdurl", "specifier": "" }, + { "distribution": "pygments", "importName": "pygments", "specifier": "" }, + { "distribution": "shellingham", "importName": "shellingham", "specifier": "" }, + { "distribution": "requests", "importName": "requests", "specifier": ">=2.25" }, + { "distribution": "urllib3", "importName": "urllib3", "specifier": "" }, + { "distribution": "charset-normalizer", "importName": "charset_normalizer", "specifier": "" }, + { "distribution": "importlib-metadata", "importName": "importlib_metadata", "specifier": "" } + ], + "contractState": "qualified", + "cutoverReady": true, + "excludedQualificationSymbols": ["add_weighted_adapter"], + "id": "huggingface-diffusers-flux3-7ecb1e1", + "installActionAvailable": true, + "installPolicy": "explicit_first_use", + "label": "Official Diffusers FLUX 3 source runtime", + "machine": "x86_64", + "packages": [ + { + "distribution": "diffusers", + "distributionUrl": "https://codeload.github.com/huggingface/diffusers/tar.gz/7ecb1e1b4fe500be7fb7381a7bb79a24d7fa3941", + "importName": "diffusers", + "installedVersion": "0.41.0.dev0", + "license": "Apache-2.0", + "projectUrl": "https://github.com/huggingface/diffusers", + "publisher": "Hugging Face", + "requiredClassSymbols": [ + "Flux3ModularPipeline", + "Flux3DistilledModularPipeline", + "Flux3Transformer2DModel", + "AutoencoderKLFlux2", + "FlowMatchEulerDiscreteScheduler", + "ClassifierFreeGuidance", + "ModularPipeline", + "ComponentsManager", + "ComponentSpec" + ], + "requiredSymbols": [ + "Flux3ModularPipeline", + "Flux3DistilledModularPipeline", + "Flux3Transformer2DModel", + "AutoencoderKLFlux2", + "FlowMatchEulerDiscreteScheduler", + "ClassifierFreeGuidance", + "ModularPipeline", + "ComponentsManager", + "ComponentSpec", + "diffusers.loaders.lora_conversion_utils:_convert_non_diffusers_flux3_lora_to_diffusers" + ], + "requiredVersion": "0.41.0.dev0", + "requirement": "diffusers==0.41.0.dev0", + "role": "runtime_root", + "status": "present_unqualified" + } + ], + "pipelineAdapterMethods": [ + { "method": "load_components", "requiredParameters": ["names", "workflow"] }, + { "method": "__call__", "requiredParameters": ["state", "output"] } + ], + "pipelineAdapterSymbols": ["Flux3ModularPipeline", "Flux3DistilledModularPipeline"], + "platform": "windows", + "providesDiffusers": true, + "requirePeftBackend": true, + "requiredDiffusersSymbols": [ + "Flux3ModularPipeline", + "Flux3DistilledModularPipeline", + "Flux3Transformer2DModel", + "AutoencoderKLFlux2", + "FlowMatchEulerDiscreteScheduler", + "ClassifierFreeGuidance", + "ModularPipeline", + "ComponentsManager", + "ComponentSpec" + ], + "requirements": ["diffusers==0.41.0.dev0"], + "schemaVersion": 1, + "sourceBuilds": [ + { + "buildDependencies": [], + "distribution": "diffusers", + "outputWheel": { + "byteSize": 27721978, + "distribution": "diffusers", + "filename": "diffusers-0.41.0.dev0-py3-none-any.whl", + "machine": "any", + "platform": "any", + "pythonTag": "py3", + "sha256": "59c8eb8aaaa25fe5f912e09c48bf66f7e41655c468a7ec47f56da93d8ca40dbd", + "version": "0.41.0.dev0" + }, + "pythonTag": "py3", + "recipe": "modiff_pure_python_wheel_v1", + "schemaVersion": 1, + "sourceArtifact": { + "archiveRoot": "diffusers-7ecb1e1b4fe500be7fb7381a7bb79a24d7fa3941", + "byteSize": 11802397, + "commit": "7ecb1e1b4fe500be7fb7381a7bb79a24d7fa3941", + "filename": "diffusers-7ecb1e1b4fe500be7fb7381a7bb79a24d7fa3941.tar.gz", + "kind": "github_commit_tarball", + "repository": "huggingface/diffusers", + "sha256": "84ee014d4acc0c7633d2778f2ac0125fa77a87e736c86a8092edb1d47a55a744", + "url": "https://codeload.github.com/huggingface/diffusers/tar.gz/7ecb1e1b4fe500be7fb7381a7bb79a24d7fa3941" + }, + "sourceDateEpoch": 315532800, + "sourceFiles": ["LICENSE", "README.md", "pyproject.toml", "setup.py"], + "sourceTrees": ["src/diffusers"], + "version": "0.41.0.dev0", + "wheelMetadata": { + "consoleScripts": { "diffusers-cli": "diffusers.commands.diffusers_cli:main" }, + "license": "Apache 2.0 License", + "licenseFile": "LICENSE", + "packageRoot": "src", + "requiresDist": [ + "importlib_metadata", + "filelock", + "huggingface-hub<3.0,>=1.32.0", + "numpy", + "regex!=2019.12.17", + "requests", + "safetensors>=0.8.0", + "Pillow" + ], + "requiresPython": ">=3.11.0", + "summary": "State-of-the-art diffusion in PyTorch." + } + } + ], + "specDigest": "sha256:82017c1615d807c1808c13929f0ee10b180058b2f976e51209a80e41939a40fe", + "stagedPackages": [ + { + "distribution": "diffusers", + "distributionUrl": "https://codeload.github.com/huggingface/diffusers/tar.gz/7ecb1e1b4fe500be7fb7381a7bb79a24d7fa3941", + "importName": "diffusers", + "license": "Apache-2.0", + "projectUrl": "https://github.com/huggingface/diffusers", + "publisher": "Hugging Face", + "requiredClassSymbols": [ + "Flux3ModularPipeline", + "Flux3DistilledModularPipeline", + "Flux3Transformer2DModel", + "AutoencoderKLFlux2", + "FlowMatchEulerDiscreteScheduler", + "ClassifierFreeGuidance", + "ModularPipeline", + "ComponentsManager", + "ComponentSpec" + ], + "requiredSymbols": [ + "Flux3ModularPipeline", + "Flux3DistilledModularPipeline", + "Flux3Transformer2DModel", + "AutoencoderKLFlux2", + "FlowMatchEulerDiscreteScheduler", + "ClassifierFreeGuidance", + "ModularPipeline", + "ComponentsManager", + "ComponentSpec", + "diffusers.loaders.lora_conversion_utils:_convert_non_diffusers_flux3_lora_to_diffusers" + ], + "requiredVersion": "0.41.0.dev0", + "requirement": "diffusers==0.41.0.dev0", + "role": "runtime_root" + } + ], + "stagedRequirements": ["diffusers==0.41.0.dev0"], + "status": "present_unqualified", + "targetContracts": [ + { + "activationAvailable": true, + "contractState": "qualified", + "cutoverReady": true, + "installActionAvailable": true, + "machine": "x86_64", + "platform": "linux" + }, + { + "activationAvailable": false, + "contractState": "candidate_unqualified", + "cutoverReady": false, + "installActionAvailable": false, + "machine": "arm64", + "platform": "linux" + }, + { + "activationAvailable": false, + "contractState": "candidate_unqualified", + "cutoverReady": false, + "installActionAvailable": false, + "machine": "x86_64", + "platform": "macos" + }, + { + "activationAvailable": false, + "contractState": "candidate_unqualified", + "cutoverReady": false, + "installActionAvailable": false, + "machine": "arm64", + "platform": "macos" + }, + { + "activationAvailable": true, + "contractState": "qualified", + "cutoverReady": true, + "installActionAvailable": true, + "machine": "x86_64", + "platform": "windows" + }, + { + "activationAvailable": false, + "contractState": "candidate_unqualified", + "cutoverReady": false, + "installActionAvailable": false, + "machine": "arm64", + "platform": "windows" + } + ] + } + ], + "optionalRuntimeRequirement": { + "delivery": "optional_overlay", + "executionProfileIds": ["flux3-klein:official-provider:v1"], + "profileIds": ["huggingface-diffusers-flux3-7ecb1e1"], + "reason": "optional_runtime_present_unqualified", + "requiredNow": true, + "schemaVersion": 1, + "state": "present_unqualified" + }, + "outputKind": "image", + "parameterAliases": { + "controlImage": ["control_image", "conditioning_image"], + "guidanceScale": ["guidance_scale", "true_cfg_scale", "guidance"], + "maskImage": ["mask_image", "mask"], + "modelRepository": ["model_id", "model", "repo"], + "sourceImage": ["image", "reference_images"], + "steps": ["num_inference_steps", "steps"] + }, + "pipelineClasses": ["Flux3DistilledModularPipeline"], + "qualificationStatus": "runtime-required", + "qualifiedModes": [], + "quantizationSupport": { "components": [], "defaultMode": "none", "offloadModes": [] }, + "recommendedGuidance": 1.0, + "recommendedSteps": 16, + "revisionCandidates": ["8454017f9ebaada30c998fccd9f67a80c7580f68"], + "runnableModes": ["edit_image", "text_to_image"], + "schemaVersion": 2, + "studioExecutionSpecModes": ["edit_image", "text_to_image"], + "studioExecutionSpecSchemaVersion": 1, + "studioExecutionSpecs": [ + { + "actions": [], + "autoFields": [ + "resolvedArtifact", + "artifact", + "installTarget.repo", + "modelRepo", + "pipelineClass", + "dtype", + "offloadMode", + "quantizedComponents", + "attentionBackend", + "regionalCompile", + "denoiserCache", + "layerwiseCasting", + "channelsLast" + ], + "bindings": [ + ["models", "model_type", "pipelineClass"], + ["models", "repo_id", "artifact"], + ["models", "revision", "defaultRevision"], + ["models", "dtype", "dtype"], + ["models", "device", "device"], + ["models", "auto_offload", "autoOffload"], + ["models", "offload_mode", "offloadMode"], + ["models", "trust_remote_code", "false"], + ["prompt", "prompt", "prompt"], + ["denoise", "width", "width"], + ["denoise", "height", "height"], + ["denoise", "seed", "seed"], + ["denoise", "num_inference_steps", "steps"], + ["prompt", "max_sequence_length", "maxSequenceLength"], + ["models", "weight_format", "weightFormat"] + ], + "canonicalizationVersion": 1, + "contentHash": "studio-spec-v1-8411b4e0", + "defaultRepo": "black-forest-labs/flux-3-image-klein", + "edges": [ + ["models", "text_encoders", "prompt", "text_encoders"], + ["models", "unet_out", "denoise", "unet"], + ["models", "scheduler", "denoise", "scheduler"], + ["models", "vae_out", "decode", "vae"], + ["prompt", "embeddings", "denoise", "embeddings"], + ["denoise", "latents", "decode", "latents"], + ["decode", "images", "preview", "image"] + ], + "executionPath": "modular-diffusers", + "executionProfileId": "flux3-klein:official-provider:v1", + "id": "flux3-klein:official-provider:v1:text-to-image:v1", + "loaderAction": "ModelsLoader", + "loaderModule": "modules.ModularDiffusers", + "mode": "text_to_image", + "modelType": "Flux3DistilledModularPipeline", + "pipelineClass": "Flux3DistilledModularPipeline", + "requiredDiffusersProvider": "huggingface-diffusers-flux3-7ecb1e1", + "roles": [ + ["models", "modules.ModularDiffusers.ModelsLoader", -720, -80], + ["prompt", "modules.ModularDiffusers.EncodePrompt", -360, -240], + ["denoise", "modules.ModularDiffusers.Denoise", 80, -80], + ["decode", "modules.ModularDiffusers.DecodeLatents", 440, -80], + ["preview", "modules.Image.Preview", 800, -80] + ], + "schemaVersion": 1 + }, + { + "actions": [], + "autoFields": [ + "resolvedArtifact", + "artifact", + "installTarget.repo", + "modelRepo", + "pipelineClass", + "dtype", + "offloadMode", + "quantizedComponents", + "attentionBackend", + "regionalCompile", + "denoiserCache", + "layerwiseCasting", + "channelsLast" + ], + "bindings": [ + ["models", "model_type", "pipelineClass"], + ["models", "repo_id", "artifact"], + ["models", "revision", "defaultRevision"], + ["models", "dtype", "dtype"], + ["models", "device", "device"], + ["models", "auto_offload", "autoOffload"], + ["models", "offload_mode", "offloadMode"], + ["models", "trust_remote_code", "false"], + ["prompt", "prompt", "prompt"], + ["denoise", "width", "width"], + ["denoise", "height", "height"], + ["denoise", "seed", "seed"], + ["denoise", "num_inference_steps", "steps"], + ["prompt", "max_sequence_length", "maxSequenceLength"], + ["models", "weight_format", "weightFormat"], + ["loadImage", "file", "referenceImages"], + ["loadImage", "alpha_channel", "alphaMode"] + ], + "canonicalizationVersion": 1, + "contentHash": "studio-spec-v1-9e30f38e", + "defaultRepo": "black-forest-labs/flux-3-image-klein", + "edges": [ + ["models", "text_encoders", "prompt", "text_encoders"], + ["models", "unet_out", "denoise", "unet"], + ["models", "scheduler", "denoise", "scheduler"], + ["models", "vae_out", "decode", "vae"], + ["prompt", "embeddings", "denoise", "embeddings"], + ["denoise", "latents", "decode", "latents"], + ["decode", "images", "preview", "image"], + ["models", "vae_out", "imageEncode", "vae"], + ["loadImage", "image", "imageEncode", "image"], + ["imageEncode", "image_cond_latents", "denoise", "image_cond_latents"], + ["imageEncode", "reference_binding", "prompt", "reference_binding"], + ["imageEncode", "reference_binding", "denoise", "reference_binding"] + ], + "executionPath": "modular-diffusers", + "executionProfileId": "flux3-klein:official-provider:v1", + "id": "flux3-klein:official-provider:v1:edit-image:v1", + "loaderAction": "ModelsLoader", + "loaderModule": "modules.ModularDiffusers", + "mode": "edit_image", + "modelType": "Flux3DistilledModularPipeline", + "pipelineClass": "Flux3DistilledModularPipeline", + "requiredDiffusersProvider": "huggingface-diffusers-flux3-7ecb1e1", + "roles": [ + ["models", "modules.ModularDiffusers.ModelsLoader", -720, -80], + ["prompt", "modules.ModularDiffusers.EncodePrompt", -360, -240], + ["denoise", "modules.ModularDiffusers.Denoise", 80, -80], + ["decode", "modules.ModularDiffusers.DecodeLatents", 440, -80], + ["preview", "modules.Image.Preview", 800, -80], + ["loadImage", "modules.Image.Load", -720, 320], + ["imageEncode", "modules.ModularDiffusers.ImageEncode", -360, 320] + ], + "schemaVersion": 1 + } + ], + "supportTier": "experimental", + "supportsControlImage": false, + "supportsGuidance": false, + "supportsImageInput": true, + "supportsLayers": false, + "supportsLora": true, + "supportsMask": false, + "supportsMultiImage": true, + "supportsNegativePrompt": false, + "taskTemplateContractModes": ["edit_image", "text_to_image"], + "taskTemplateContractSchemaVersion": 1, + "taskTemplateContracts": [ + { + "auxiliaryTerminalRoles": [], + "canonicalizationVersion": 1, + "contentHash": "task-template-v1-13be2c85", + "defaultRepo": "black-forest-labs/flux-3-image-klein", + "executionProfileId": "flux3-klein:official-provider:v1", + "executionSpecContentHash": "studio-spec-v1-9e30f38e", + "executionSpecId": "flux3-klein:official-provider:v1:edit-image:v1", + "galleryEligible": false, + "id": "task-template:flux3-klein:official-provider:v1:edit-image:v1", + "loaderAction": "ModelsLoader", + "loaderModule": "modules.ModularDiffusers", + "loaderRepositories": ["black-forest-labs/flux-3-image-klein"], + "loaderRole": "models", + "mediaKind": "image", + "mode": "edit_image", + "modelType": "Flux3DistilledModularPipeline", + "output": { + "inputHandle": "image", + "mediaKind": "image", + "nodeKey": "modules.Image.Preview", + "role": "preview" + }, + "pipelineClass": "Flux3DistilledModularPipeline", + "qualificationStatus": "runtime-required", + "requiredMedia": [{ "field": "referenceImages", "kind": "image", "minimumCount": 1 }], + "schemaVersion": 1 + }, + { + "auxiliaryTerminalRoles": [], + "canonicalizationVersion": 1, + "contentHash": "task-template-v1-f2116abe", + "defaultRepo": "black-forest-labs/flux-3-image-klein", + "executionProfileId": "flux3-klein:official-provider:v1", + "executionSpecContentHash": "studio-spec-v1-8411b4e0", + "executionSpecId": "flux3-klein:official-provider:v1:text-to-image:v1", + "galleryEligible": false, + "id": "task-template:flux3-klein:official-provider:v1:text-to-image:v1", + "loaderAction": "ModelsLoader", + "loaderModule": "modules.ModularDiffusers", + "loaderRepositories": ["black-forest-labs/flux-3-image-klein"], + "loaderRole": "models", + "mediaKind": "image", + "mode": "text_to_image", + "modelType": "Flux3DistilledModularPipeline", + "output": { + "inputHandle": "image", + "mediaKind": "image", + "nodeKey": "modules.Image.Preview", + "role": "preview" + }, + "pipelineClass": "Flux3DistilledModularPipeline", + "qualificationStatus": "runtime-required", + "requiredMedia": [], + "schemaVersion": 1 + } + ], + "templateEligible": false, + "weightFormatSelections": [ + { + "downloadFiles": [ + "LICENSE.md", + "NOTICE.md", + "modular_model_index.json", + "text_encoder/LICENSE", + "text_encoder/chat_template.json", + "text_encoder/config.json", + "text_encoder/generation_config.json", + "text_encoder/merges.txt", + "text_encoder/model-00001-of-00002.safetensors", + "text_encoder/model-00002-of-00002.safetensors", + "text_encoder/model.safetensors.index.json", + "text_encoder/preprocessor_config.json", + "text_encoder/tokenizer.json", + "text_encoder/tokenizer_config.json", + "text_encoder/video_preprocessor_config.json", + "text_encoder/vocab.json", + "transformer/config.json", + "vae/config.json", + "vae/diffusion_pytorch_model.safetensors", + "variants/fp8r/model.safetensors" + ], + "repo": "black-forest-labs/flux-3-image-klein", + "revision": "8454017f9ebaada30c998fccd9f67a80c7580f68", + "weightFormat": "fp8r" + }, + { + "downloadFiles": [ + "LICENSE.md", + "NOTICE.md", + "modular_model_index.json", + "text_encoder/LICENSE", + "text_encoder/chat_template.json", + "text_encoder/config.json", + "text_encoder/generation_config.json", + "text_encoder/merges.txt", + "text_encoder/model-00001-of-00002.safetensors", + "text_encoder/model-00002-of-00002.safetensors", + "text_encoder/model.safetensors.index.json", + "text_encoder/preprocessor_config.json", + "text_encoder/tokenizer.json", + "text_encoder/tokenizer_config.json", + "text_encoder/video_preprocessor_config.json", + "text_encoder/vocab.json", + "transformer/config.json", + "vae/config.json", + "vae/diffusion_pytorch_model.safetensors", + "variants/nvfp4/model.safetensors" + ], + "repo": "black-forest-labs/flux-3-image-klein", + "revision": "8454017f9ebaada30c998fccd9f67a80c7580f68", + "weightFormat": "nvfp4" + } + ] + } + ], + "operationContractSchemaVersion": 3, + "operationContracts": [ + { + "binding": { "pipelineClass": "Flux3DistilledModularPipeline", "values": {} }, + "blockName": "decode", + "decomposition": "block", + "nodeKey": "modules.ModularDiffusers.DecodeLatents", + "nodeType": "decoder", + "operationId": "diffusion.decode_latents", + "pipelineClass": "Flux3DistilledModularPipeline", + "ports": [ + { + "direction": "input", + "hidden": false, + "name": "latents", + "required": true, + "roles": ["value"], + "semanticName": "latents", + "semantics": { + "kind": "latents", + "members": [], + "owner": "same_loader", + "scope": "Flux3DistilledModularPipeline", + "state": null + }, + "types": ["latents"] + }, + { + "direction": "input", + "hidden": false, + "name": "vae", + "required": true, + "roles": ["component"], + "semanticName": "vae", + "semantics": { + "kind": "component", + "members": [], + "owner": "same_loader", + "scope": "Flux3DistilledModularPipeline", + "state": null + }, + "types": ["diffusers_auto_model"] + }, + { + "direction": "output", + "hidden": false, + "name": "images", + "required": false, + "roles": ["value"], + "semanticName": "images", + "semantics": { "kind": "media", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["image"] + }, + { + "direction": "output", + "hidden": false, + "name": "doc", + "required": false, + "roles": ["value"], + "semanticName": "doc", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + } + ], + "support": "declared", + "task": null, + "workflowId": null + }, + { + "binding": { "pipelineClass": "Flux3DistilledModularPipeline", "values": {} }, + "blockName": "denoise", + "decomposition": "block", + "nodeKey": "modules.ModularDiffusers.Denoise", + "nodeType": "denoise", + "operationId": "diffusion.denoise", + "pipelineClass": "Flux3DistilledModularPipeline", + "ports": [ + { + "direction": "input", + "hidden": false, + "name": "embeddings", + "required": true, + "roles": ["value"], + "semanticName": "embeddings", + "semantics": { + "kind": "conditioning", + "members": [], + "owner": "same_loader", + "scope": "Flux3DistilledModularPipeline", + "state": null + }, + "types": ["embeddings"] + }, + { + "direction": "input", + "hidden": false, + "name": "width", + "required": false, + "roles": ["value"], + "semanticName": "width", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["int"] + }, + { + "direction": "input", + "hidden": false, + "name": "height", + "required": false, + "roles": ["value"], + "semanticName": "height", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["int"] + }, + { + "direction": "input", + "hidden": false, + "name": "seed", + "required": false, + "roles": ["value"], + "semanticName": "seed", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["int"] + }, + { + "direction": "input", + "hidden": false, + "name": "num_inference_steps", + "required": false, + "roles": ["value"], + "semanticName": "num_inference_steps", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["int"] + }, + { + "direction": "input", + "hidden": false, + "name": "num_images_per_prompt", + "required": false, + "roles": ["value"], + "semanticName": "num_images_per_prompt", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["int"] + }, + { + "direction": "input", + "hidden": false, + "name": "image_cond_latents", + "required": false, + "roles": ["value"], + "semanticName": "image_cond_latents", + "semantics": { + "kind": "latents", + "members": [], + "owner": "same_loader", + "scope": "Flux3DistilledModularPipeline", + "state": null + }, + "types": ["latents"] + }, + { + "direction": "input", + "hidden": false, + "name": "unet", + "required": true, + "roles": ["component"], + "semanticName": "unet", + "semantics": { + "kind": "component", + "members": [], + "owner": "same_loader", + "scope": "Flux3DistilledModularPipeline", + "state": null + }, + "types": ["diffusers_auto_model"] + }, + { + "direction": "input", + "hidden": false, + "name": "scheduler", + "required": true, + "roles": ["component"], + "semanticName": "scheduler", + "semantics": { + "kind": "component", + "members": [], + "owner": "same_loader", + "scope": "Flux3DistilledModularPipeline", + "state": null + }, + "types": ["diffusers_auto_model"] + }, + { + "direction": "output", + "hidden": false, + "name": "latents", + "required": false, + "roles": ["value"], + "semanticName": "latents", + "semantics": { + "kind": "latents", + "members": [], + "owner": "same_loader", + "scope": "Flux3DistilledModularPipeline", + "state": null + }, + "types": ["latents"] + }, + { + "direction": "output", + "hidden": false, + "name": "doc", + "required": false, + "roles": ["value"], + "semanticName": "doc", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": false, + "name": "reference_binding", + "required": false, + "roles": ["value"], + "semanticName": "reference_binding", + "semantics": { + "kind": "opaque", + "members": [], + "owner": "none", + "scope": "Flux3DistilledModularPipeline", + "state": null + }, + "types": ["reference_conditioning"] + } + ], + "support": "declared", + "task": null, + "workflowId": null + }, + { + "binding": { "pipelineClass": "Flux3DistilledModularPipeline", "values": {} }, + "blockName": "vae_encoder", + "decomposition": "block", + "nodeKey": "modules.ModularDiffusers.ImageEncode", + "nodeType": "vae_encoder", + "operationId": "diffusion.encode_image", + "pipelineClass": "Flux3DistilledModularPipeline", + "ports": [ + { + "direction": "input", + "hidden": false, + "name": "image", + "required": true, + "roles": ["value"], + "semanticName": "image", + "semantics": { "kind": "media", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["image"] + }, + { + "direction": "input", + "hidden": false, + "name": "vae", + "required": true, + "roles": ["component"], + "semanticName": "vae", + "semantics": { + "kind": "component", + "members": [], + "owner": "same_loader", + "scope": "Flux3DistilledModularPipeline", + "state": null + }, + "types": ["diffusers_auto_model"] + }, + { + "direction": "output", + "hidden": false, + "name": "image_cond_latents", + "required": false, + "roles": ["value"], + "semanticName": "image_cond_latents", + "semantics": { + "kind": "latents", + "members": [], + "owner": "same_loader", + "scope": "Flux3DistilledModularPipeline", + "state": null + }, + "types": ["latents"] + }, + { + "direction": "output", + "hidden": false, + "name": "reference_binding", + "required": false, + "roles": ["value"], + "semanticName": "reference_binding", + "semantics": { + "kind": "opaque", + "members": [], + "owner": "none", + "scope": "Flux3DistilledModularPipeline", + "state": null + }, + "types": ["reference_conditioning"] + }, + { + "direction": "output", + "hidden": false, + "name": "doc", + "required": false, + "roles": ["value"], + "semanticName": "doc", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + } + ], + "support": "declared", + "task": null, + "workflowId": null + }, + { + "binding": { "pipelineClass": "Flux3DistilledModularPipeline", "values": {} }, + "blockName": "text_encoder", + "decomposition": "block", + "nodeKey": "modules.ModularDiffusers.EncodePrompt", + "nodeType": "text_encoder", + "operationId": "diffusion.encode_prompt", + "pipelineClass": "Flux3DistilledModularPipeline", + "ports": [ + { + "direction": "input", + "hidden": false, + "name": "prompt", + "required": true, + "roles": ["value"], + "semanticName": "prompt", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": false, + "name": "max_sequence_length", + "required": false, + "roles": ["value"], + "semanticName": "max_sequence_length", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["int"] + }, + { + "direction": "input", + "hidden": false, + "name": "text_encoder_out_layers", + "required": false, + "roles": ["value"], + "semanticName": "text_encoder_out_layers", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["int"] + }, + { + "direction": "input", + "hidden": false, + "name": "text_encoders", + "required": true, + "roles": ["component"], + "semanticName": "text_encoders", + "semantics": { + "kind": "component", + "members": [], + "owner": "same_loader", + "scope": "Flux3DistilledModularPipeline", + "state": null + }, + "types": ["diffusers_auto_models"] + }, + { + "direction": "output", + "hidden": false, + "name": "embeddings", + "required": false, + "roles": ["value"], + "semanticName": "embeddings", + "semantics": { + "kind": "conditioning", + "members": [], + "owner": "same_loader", + "scope": "Flux3DistilledModularPipeline", + "state": null + }, + "types": ["embeddings"] + }, + { + "direction": "output", + "hidden": false, + "name": "doc", + "required": false, + "roles": ["value"], + "semanticName": "doc", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": false, + "name": "layout_conditioning", + "required": false, + "roles": ["value"], + "semanticName": "layout_conditioning", + "semantics": { + "kind": "opaque", + "members": [], + "owner": "none", + "scope": "Flux3DistilledModularPipeline", + "state": null + }, + "types": ["layout_conditioning"] + }, + { + "direction": "input", + "hidden": false, + "name": "reference_binding", + "required": false, + "roles": ["value"], + "semanticName": "reference_binding", + "semantics": { + "kind": "opaque", + "members": [], + "owner": "none", + "scope": "Flux3DistilledModularPipeline", + "state": null + }, + "types": ["reference_conditioning"] + }, + { + "direction": "input", + "hidden": false, + "name": "prompt_input", + "required": false, + "roles": ["value"], + "semanticName": "prompt", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + } + ], + "support": "declared", + "task": null, + "workflowId": null + }, + { + "binding": { "pipelineClass": "Flux3DistilledModularPipeline", "values": {} }, + "blockName": "decode", + "decomposition": "block", + "nodeKey": "modules.ModularDiffusers.DecodeLatents", + "nodeType": "decoder", + "operationId": "diffusion.decode_latents", + "pipelineClass": "Flux3DistilledModularPipeline", + "ports": [ + { + "direction": "input", + "hidden": false, + "name": "latents", + "required": true, + "roles": ["value"], + "semanticName": "latents", + "semantics": { + "kind": "latents", + "members": [], + "owner": "same_loader", + "scope": "Flux3DistilledModularPipeline", + "state": null + }, + "types": ["latents"] + }, + { + "direction": "input", + "hidden": false, + "name": "vae", + "required": true, + "roles": ["component"], + "semanticName": "vae", + "semantics": { + "kind": "component", + "members": [ + { "name": "vae", "type": "diffusers.models.autoencoders.autoencoder_kl_flux2.AutoencoderKLFlux2" } + ], + "owner": "same_loader", + "scope": "Flux3DistilledModularPipeline", + "state": null + }, + "types": ["diffusers_auto_model"] + }, + { + "direction": "output", + "hidden": false, + "name": "images", + "required": false, + "roles": ["value"], + "semanticName": "images", + "semantics": { "kind": "media", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["image"] + }, + { + "direction": "output", + "hidden": false, + "name": "doc", + "required": false, + "roles": ["value"], + "semanticName": "doc", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + } + ], + "support": "declared", + "task": "edit_image", + "workflowId": "image_conditioned" + }, + { + "binding": { "pipelineClass": "Flux3DistilledModularPipeline", "values": {} }, + "blockName": "denoise", + "decomposition": "block", + "nodeKey": "modules.ModularDiffusers.Denoise", + "nodeType": "denoise", + "operationId": "diffusion.denoise", + "pipelineClass": "Flux3DistilledModularPipeline", + "ports": [ + { + "direction": "input", + "hidden": false, + "name": "embeddings", + "required": true, + "roles": ["value"], + "semanticName": "embeddings", + "semantics": { + "kind": "conditioning", + "members": [], + "owner": "same_loader", + "scope": "Flux3DistilledModularPipeline", + "state": null + }, + "types": ["embeddings"] + }, + { + "direction": "input", + "hidden": false, + "name": "width", + "required": false, + "roles": ["value"], + "semanticName": "width", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["int"] + }, + { + "direction": "input", + "hidden": false, + "name": "height", + "required": false, + "roles": ["value"], + "semanticName": "height", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["int"] + }, + { + "direction": "input", + "hidden": false, + "name": "seed", + "required": false, + "roles": ["value"], + "semanticName": "seed", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["int"] + }, + { + "direction": "input", + "hidden": false, + "name": "num_inference_steps", + "required": false, + "roles": ["value"], + "semanticName": "num_inference_steps", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["int"] + }, + { + "direction": "input", + "hidden": false, + "name": "num_images_per_prompt", + "required": false, + "roles": ["value"], + "semanticName": "num_images_per_prompt", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["int"] + }, + { + "direction": "input", + "hidden": false, + "name": "image_cond_latents", + "required": false, + "roles": ["value"], + "semanticName": "image_cond_latents", + "semantics": { + "kind": "latents", + "members": [], + "owner": "same_loader", + "scope": "Flux3DistilledModularPipeline", + "state": null + }, + "types": ["latents"] + }, + { + "direction": "input", + "hidden": false, + "name": "unet", + "required": true, + "roles": ["component"], + "semanticName": "unet", + "semantics": { + "kind": "component", + "members": [ + { + "name": "transformer", + "type": "diffusers.models.transformers.transformer_flux3.Flux3Transformer2DModel" + } + ], + "owner": "same_loader", + "scope": "Flux3DistilledModularPipeline", + "state": null + }, + "types": ["diffusers_auto_model"] + }, + { + "direction": "input", + "hidden": false, + "name": "scheduler", + "required": true, + "roles": ["component"], + "semanticName": "scheduler", + "semantics": { + "kind": "component", + "members": [ + { + "name": "scheduler", + "type": "diffusers.schedulers.scheduling_flow_match_euler_discrete.FlowMatchEulerDiscreteScheduler" + } + ], + "owner": "same_loader", + "scope": "Flux3DistilledModularPipeline", + "state": null + }, + "types": ["diffusers_auto_model"] + }, + { + "direction": "output", + "hidden": false, + "name": "latents", + "required": false, + "roles": ["value"], + "semanticName": "latents", + "semantics": { + "kind": "latents", + "members": [], + "owner": "same_loader", + "scope": "Flux3DistilledModularPipeline", + "state": null + }, + "types": ["latents"] + }, + { + "direction": "output", + "hidden": false, + "name": "doc", + "required": false, + "roles": ["value"], + "semanticName": "doc", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": false, + "name": "reference_binding", + "required": false, + "roles": ["value"], + "semanticName": "reference_binding", + "semantics": { + "kind": "opaque", + "members": [], + "owner": "none", + "scope": "Flux3DistilledModularPipeline", + "state": null + }, + "types": ["reference_conditioning"] + } + ], + "support": "declared", + "task": "edit_image", + "workflowId": "image_conditioned" + }, + { + "binding": { "pipelineClass": "Flux3DistilledModularPipeline", "values": {} }, + "blockName": "vae_encoder", + "decomposition": "block", + "nodeKey": "modules.ModularDiffusers.ImageEncode", + "nodeType": "vae_encoder", + "operationId": "diffusion.encode_image", + "pipelineClass": "Flux3DistilledModularPipeline", + "ports": [ + { + "direction": "input", + "hidden": false, + "name": "image", + "required": true, + "roles": ["value"], + "semanticName": "image", + "semantics": { "kind": "media", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["image"] + }, + { + "direction": "input", + "hidden": false, + "name": "vae", + "required": true, + "roles": ["component"], + "semanticName": "vae", + "semantics": { + "kind": "component", + "members": [ + { "name": "vae", "type": "diffusers.models.autoencoders.autoencoder_kl_flux2.AutoencoderKLFlux2" } + ], + "owner": "same_loader", + "scope": "Flux3DistilledModularPipeline", + "state": null + }, + "types": ["diffusers_auto_model"] + }, + { + "direction": "output", + "hidden": false, + "name": "image_cond_latents", + "required": false, + "roles": ["value"], + "semanticName": "image_cond_latents", + "semantics": { + "kind": "latents", + "members": [], + "owner": "same_loader", + "scope": "Flux3DistilledModularPipeline", + "state": null + }, + "types": ["latents"] + }, + { + "direction": "output", + "hidden": false, + "name": "reference_binding", + "required": false, + "roles": ["value"], + "semanticName": "reference_binding", + "semantics": { + "kind": "opaque", + "members": [], + "owner": "none", + "scope": "Flux3DistilledModularPipeline", + "state": null + }, + "types": ["reference_conditioning"] + }, + { + "direction": "output", + "hidden": false, + "name": "doc", + "required": false, + "roles": ["value"], + "semanticName": "doc", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + } + ], + "support": "declared", + "task": "edit_image", + "workflowId": "image_conditioned" + }, + { + "binding": { "pipelineClass": "Flux3DistilledModularPipeline", "values": {} }, + "blockName": "text_encoder", + "decomposition": "block", + "nodeKey": "modules.ModularDiffusers.EncodePrompt", + "nodeType": "text_encoder", + "operationId": "diffusion.encode_prompt", + "pipelineClass": "Flux3DistilledModularPipeline", + "ports": [ + { + "direction": "input", + "hidden": false, + "name": "prompt", + "required": true, + "roles": ["value"], + "semanticName": "prompt", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": false, + "name": "max_sequence_length", + "required": false, + "roles": ["value"], + "semanticName": "max_sequence_length", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["int"] + }, + { + "direction": "input", + "hidden": false, + "name": "text_encoder_out_layers", + "required": false, + "roles": ["value"], + "semanticName": "text_encoder_out_layers", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["int"] + }, + { + "direction": "input", + "hidden": false, + "name": "text_encoders", + "required": true, + "roles": ["component"], + "semanticName": "text_encoders", + "semantics": { + "kind": "component", + "members": [ + { + "name": "text_encoder", + "type": "transformers.models.qwen3_vl.modeling_qwen3_vl.Qwen3VLForConditionalGeneration" + }, + { "name": "tokenizer", "type": "transformers.models.auto.processing_auto.AutoProcessor" } + ], + "owner": "same_loader", + "scope": "Flux3DistilledModularPipeline", + "state": null + }, + "types": ["diffusers_auto_models"] + }, + { + "direction": "output", + "hidden": false, + "name": "embeddings", + "required": false, + "roles": ["value"], + "semanticName": "embeddings", + "semantics": { + "kind": "conditioning", + "members": [], + "owner": "same_loader", + "scope": "Flux3DistilledModularPipeline", + "state": null + }, + "types": ["embeddings"] + }, + { + "direction": "output", + "hidden": false, + "name": "doc", + "required": false, + "roles": ["value"], + "semanticName": "doc", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": false, + "name": "layout_conditioning", + "required": false, + "roles": ["value"], + "semanticName": "layout_conditioning", + "semantics": { + "kind": "opaque", + "members": [], + "owner": "none", + "scope": "Flux3DistilledModularPipeline", + "state": null + }, + "types": ["layout_conditioning"] + }, + { + "direction": "input", + "hidden": false, + "name": "reference_binding", + "required": false, + "roles": ["value"], + "semanticName": "reference_binding", + "semantics": { + "kind": "opaque", + "members": [], + "owner": "none", + "scope": "Flux3DistilledModularPipeline", + "state": null + }, + "types": ["reference_conditioning"] + }, + { + "direction": "input", + "hidden": false, + "name": "prompt_input", + "required": false, + "roles": ["value"], + "semanticName": "prompt", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + } + ], + "support": "declared", + "task": "edit_image", + "workflowId": "image_conditioned" + }, + { + "binding": { + "pipelineClass": "Flux3DistilledModularPipeline", + "values": { "model_type": "Flux3DistilledModularPipeline" } + }, + "blockName": null, + "decomposition": "loader", + "nodeKey": "modules.ModularDiffusers.ModelsLoader", + "nodeType": "loader", + "operationId": "diffusion.load_models", + "pipelineClass": "Flux3DistilledModularPipeline", + "ports": [ + { + "direction": "input", + "hidden": false, + "name": "model_type", + "required": false, + "roles": ["value"], + "semanticName": "model_type", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": false, + "name": "repo_id", + "required": false, + "roles": ["value"], + "semanticName": "repo_id", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": true, + "name": "reviewed_variant", + "required": false, + "roles": ["value"], + "semanticName": "reviewed_variant", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": false, + "name": "device", + "required": false, + "roles": ["value"], + "semanticName": "device", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": false, + "name": "attention_backend", + "required": false, + "roles": ["value"], + "semanticName": "attention_backend", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": true, + "name": "vae_slicing", + "required": false, + "roles": ["value"], + "semanticName": "vae_slicing", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["boolean"] + }, + { + "direction": "input", + "hidden": true, + "name": "vae_tiling", + "required": false, + "roles": ["value"], + "semanticName": "vae_tiling", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["boolean"] + }, + { + "direction": "input", + "hidden": true, + "name": "inpaint_compatibility", + "required": false, + "roles": ["value"], + "semanticName": "inpaint_compatibility", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": false, + "name": "trust_remote_code", + "required": false, + "roles": ["value"], + "semanticName": "trust_remote_code", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["boolean"] + }, + { + "direction": "input", + "hidden": false, + "name": "revision", + "required": false, + "roles": ["value"], + "semanticName": "revision", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": true, + "name": "workflow_id", + "required": false, + "roles": ["value"], + "semanticName": "workflow_id", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": true, + "name": "modiff_pipeline_identity", + "required": false, + "roles": ["value"], + "semanticName": "modiff_pipeline_identity", + "semantics": { + "kind": "opaque", + "members": [], + "owner": "none", + "scope": "Flux3DistilledModularPipeline", + "state": null + }, + "types": ["object"] + }, + { + "direction": "input", + "hidden": false, + "name": "auto_offload", + "required": false, + "roles": ["value"], + "semanticName": "auto_offload", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["boolean"] + }, + { + "direction": "input", + "hidden": false, + "name": "offload_mode", + "required": false, + "roles": ["value"], + "semanticName": "offload_mode", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": false, + "name": "weight_loading_mode", + "required": false, + "roles": ["value"], + "semanticName": "weight_loading_mode", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": true, + "name": "weight_format", + "required": false, + "roles": ["value"], + "semanticName": "weight_format", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": false, + "name": "unet", + "required": false, + "roles": ["component"], + "semanticName": "unet", + "semantics": { + "kind": "component", + "members": [ + { + "name": "transformer", + "type": "diffusers.models.transformers.transformer_flux3.Flux3Transformer2DModel" + } + ], + "owner": "same_loader", + "scope": "Flux3DistilledModularPipeline", + "state": null + }, + "types": ["diffusers_auto_model"] + }, + { + "direction": "input", + "hidden": false, + "name": "vae", + "required": false, + "roles": ["component"], + "semanticName": "vae", + "semantics": { + "kind": "component", + "members": [ + { "name": "vae", "type": "diffusers.models.autoencoders.autoencoder_kl_flux2.AutoencoderKLFlux2" } + ], + "owner": "same_loader", + "scope": "Flux3DistilledModularPipeline", + "state": null + }, + "types": ["diffusers_auto_model"] + }, + { + "direction": "input", + "hidden": true, + "name": "controlnet", + "required": false, + "roles": ["component"], + "semanticName": "controlnet", + "semantics": { + "kind": "component", + "members": [], + "owner": "same_loader", + "scope": "Flux3DistilledModularPipeline", + "state": null + }, + "types": ["diffusers_auto_model"] + }, + { + "direction": "input", + "hidden": false, + "name": "lora_list", + "required": false, + "roles": ["value"], + "semanticName": "lora_list", + "semantics": { + "kind": "opaque", + "members": [], + "owner": "none", + "scope": "Flux3DistilledModularPipeline", + "state": null + }, + "types": ["custom_lora"] + }, + { + "direction": "output", + "hidden": false, + "name": "text_encoders", + "required": false, + "roles": ["component"], + "semanticName": "text_encoders", + "semantics": { + "kind": "component", + "members": [ + { + "name": "text_encoder", + "type": "transformers.models.qwen3_vl.modeling_qwen3_vl.Qwen3VLForConditionalGeneration" + }, + { "name": "tokenizer", "type": "transformers.models.auto.processing_auto.AutoProcessor" } + ], + "owner": "same_loader", + "scope": "Flux3DistilledModularPipeline", + "state": null + }, + "types": ["diffusers_auto_models"] + }, + { + "direction": "output", + "hidden": false, + "name": "unet_out", + "required": false, + "roles": ["component"], + "semanticName": "unet_out", + "semantics": { + "kind": "component", + "members": [ + { + "name": "transformer", + "type": "diffusers.models.transformers.transformer_flux3.Flux3Transformer2DModel" + } + ], + "owner": "same_loader", + "scope": "Flux3DistilledModularPipeline", + "state": null + }, + "types": ["diffusers_auto_model"] + }, + { + "direction": "output", + "hidden": false, + "name": "vae_out", + "required": false, + "roles": ["component"], + "semanticName": "vae_out", + "semantics": { + "kind": "component", + "members": [ + { "name": "vae", "type": "diffusers.models.autoencoders.autoencoder_kl_flux2.AutoencoderKLFlux2" } + ], + "owner": "same_loader", + "scope": "Flux3DistilledModularPipeline", + "state": null + }, + "types": ["diffusers_auto_model"] + }, + { + "direction": "output", + "hidden": false, + "name": "scheduler", + "required": false, + "roles": ["component"], + "semanticName": "scheduler", + "semantics": { + "kind": "component", + "members": [ + { + "name": "scheduler", + "type": "diffusers.schedulers.scheduling_flow_match_euler_discrete.FlowMatchEulerDiscreteScheduler" + } + ], + "owner": "same_loader", + "scope": "Flux3DistilledModularPipeline", + "state": null + }, + "types": ["diffusers_auto_model"] + }, + { + "direction": "output", + "hidden": true, + "name": "image_encoder", + "required": false, + "roles": ["component"], + "semanticName": "image_encoder", + "semantics": { + "kind": "component", + "members": [], + "owner": "same_loader", + "scope": "Flux3DistilledModularPipeline", + "state": null + }, + "types": ["diffusers_auto_model"] + }, + { + "direction": "output", + "hidden": false, + "name": "pipeline_components", + "required": false, + "roles": ["component"], + "semanticName": "pipeline_components", + "semantics": { + "kind": "component", + "members": [ + { + "name": "image_processor", + "type": "diffusers.modular_pipelines.flux3.image_processor.Flux3ImageProcessor" + }, + { + "name": "scheduler", + "type": "diffusers.schedulers.scheduling_flow_match_euler_discrete.FlowMatchEulerDiscreteScheduler" + }, + { + "name": "text_encoder", + "type": "transformers.models.qwen3_vl.modeling_qwen3_vl.Qwen3VLForConditionalGeneration" + }, + { "name": "tokenizer", "type": "transformers.models.auto.processing_auto.AutoProcessor" }, + { + "name": "transformer", + "type": "diffusers.models.transformers.transformer_flux3.Flux3Transformer2DModel" + }, + { "name": "vae", "type": "diffusers.models.autoencoders.autoencoder_kl_flux2.AutoencoderKLFlux2" } + ], + "owner": "same_loader", + "scope": "Flux3DistilledModularPipeline", + "state": null + }, + "types": ["diffusers_modular_pipeline_components"] + }, + { + "direction": "input", + "hidden": false, + "name": "quant_config", + "required": false, + "roles": ["value"], + "semanticName": "quant_config", + "semantics": { + "kind": "opaque", + "members": [], + "owner": "none", + "scope": "Flux3DistilledModularPipeline", + "state": null + }, + "types": ["quant_config"] + } + ], + "support": "declared", + "task": "edit_image", + "workflowId": "image_conditioned" + }, + { + "binding": { "pipelineClass": "Flux3DistilledModularPipeline", "values": {} }, + "blockName": "decode", + "decomposition": "block", + "nodeKey": "modules.ModularDiffusers.DecodeLatents", + "nodeType": "decoder", + "operationId": "diffusion.decode_latents", + "pipelineClass": "Flux3DistilledModularPipeline", + "ports": [ + { + "direction": "input", + "hidden": false, + "name": "latents", + "required": true, + "roles": ["value"], + "semanticName": "latents", + "semantics": { + "kind": "latents", + "members": [], + "owner": "same_loader", + "scope": "Flux3DistilledModularPipeline", + "state": null + }, + "types": ["latents"] + }, + { + "direction": "input", + "hidden": false, + "name": "vae", + "required": true, + "roles": ["component"], + "semanticName": "vae", + "semantics": { + "kind": "component", + "members": [ + { "name": "vae", "type": "diffusers.models.autoencoders.autoencoder_kl_flux2.AutoencoderKLFlux2" } + ], + "owner": "same_loader", + "scope": "Flux3DistilledModularPipeline", + "state": null + }, + "types": ["diffusers_auto_model"] + }, + { + "direction": "output", + "hidden": false, + "name": "images", + "required": false, + "roles": ["value"], + "semanticName": "images", + "semantics": { "kind": "media", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["image"] + }, + { + "direction": "output", + "hidden": false, + "name": "doc", + "required": false, + "roles": ["value"], + "semanticName": "doc", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + } + ], + "support": "declared", + "task": "text_to_image", + "workflowId": "text2image" + }, + { + "binding": { "pipelineClass": "Flux3DistilledModularPipeline", "values": {} }, + "blockName": "denoise", + "decomposition": "block", + "nodeKey": "modules.ModularDiffusers.Denoise", + "nodeType": "denoise", + "operationId": "diffusion.denoise", + "pipelineClass": "Flux3DistilledModularPipeline", + "ports": [ + { + "direction": "input", + "hidden": false, + "name": "embeddings", + "required": true, + "roles": ["value"], + "semanticName": "embeddings", + "semantics": { + "kind": "conditioning", + "members": [], + "owner": "same_loader", + "scope": "Flux3DistilledModularPipeline", + "state": null + }, + "types": ["embeddings"] + }, + { + "direction": "input", + "hidden": false, + "name": "width", + "required": false, + "roles": ["value"], + "semanticName": "width", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["int"] + }, + { + "direction": "input", + "hidden": false, + "name": "height", + "required": false, + "roles": ["value"], + "semanticName": "height", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["int"] + }, + { + "direction": "input", + "hidden": false, + "name": "seed", + "required": false, + "roles": ["value"], + "semanticName": "seed", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["int"] + }, + { + "direction": "input", + "hidden": false, + "name": "num_inference_steps", + "required": false, + "roles": ["value"], + "semanticName": "num_inference_steps", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["int"] + }, + { + "direction": "input", + "hidden": false, + "name": "num_images_per_prompt", + "required": false, + "roles": ["value"], + "semanticName": "num_images_per_prompt", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["int"] + }, + { + "direction": "input", + "hidden": false, + "name": "image_cond_latents", + "required": false, + "roles": ["value"], + "semanticName": "image_cond_latents", + "semantics": { + "kind": "latents", + "members": [], + "owner": "same_loader", + "scope": "Flux3DistilledModularPipeline", + "state": null + }, + "types": ["latents"] + }, + { + "direction": "input", + "hidden": false, + "name": "unet", + "required": true, + "roles": ["component"], + "semanticName": "unet", + "semantics": { + "kind": "component", + "members": [ + { + "name": "transformer", + "type": "diffusers.models.transformers.transformer_flux3.Flux3Transformer2DModel" + } + ], + "owner": "same_loader", + "scope": "Flux3DistilledModularPipeline", + "state": null + }, + "types": ["diffusers_auto_model"] + }, + { + "direction": "input", + "hidden": false, + "name": "scheduler", + "required": true, + "roles": ["component"], + "semanticName": "scheduler", + "semantics": { + "kind": "component", + "members": [ + { + "name": "scheduler", + "type": "diffusers.schedulers.scheduling_flow_match_euler_discrete.FlowMatchEulerDiscreteScheduler" + } + ], + "owner": "same_loader", + "scope": "Flux3DistilledModularPipeline", + "state": null + }, + "types": ["diffusers_auto_model"] + }, + { + "direction": "output", + "hidden": false, + "name": "latents", + "required": false, + "roles": ["value"], + "semanticName": "latents", + "semantics": { + "kind": "latents", + "members": [], + "owner": "same_loader", + "scope": "Flux3DistilledModularPipeline", + "state": null + }, + "types": ["latents"] + }, + { + "direction": "output", + "hidden": false, + "name": "doc", + "required": false, + "roles": ["value"], + "semanticName": "doc", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": false, + "name": "reference_binding", + "required": false, + "roles": ["value"], + "semanticName": "reference_binding", + "semantics": { + "kind": "opaque", + "members": [], + "owner": "none", + "scope": "Flux3DistilledModularPipeline", + "state": null + }, + "types": ["reference_conditioning"] + } + ], + "support": "declared", + "task": "text_to_image", + "workflowId": "text2image" + }, + { + "binding": { "pipelineClass": "Flux3DistilledModularPipeline", "values": {} }, + "blockName": "text_encoder", + "decomposition": "block", + "nodeKey": "modules.ModularDiffusers.EncodePrompt", + "nodeType": "text_encoder", + "operationId": "diffusion.encode_prompt", + "pipelineClass": "Flux3DistilledModularPipeline", + "ports": [ + { + "direction": "input", + "hidden": false, + "name": "prompt", + "required": true, + "roles": ["value"], + "semanticName": "prompt", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": false, + "name": "max_sequence_length", + "required": false, + "roles": ["value"], + "semanticName": "max_sequence_length", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["int"] + }, + { + "direction": "input", + "hidden": false, + "name": "text_encoder_out_layers", + "required": false, + "roles": ["value"], + "semanticName": "text_encoder_out_layers", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["int"] + }, + { + "direction": "input", + "hidden": false, + "name": "text_encoders", + "required": true, + "roles": ["component"], + "semanticName": "text_encoders", + "semantics": { + "kind": "component", + "members": [ + { + "name": "text_encoder", + "type": "transformers.models.qwen3_vl.modeling_qwen3_vl.Qwen3VLForConditionalGeneration" + }, + { "name": "tokenizer", "type": "transformers.models.auto.processing_auto.AutoProcessor" } + ], + "owner": "same_loader", + "scope": "Flux3DistilledModularPipeline", + "state": null + }, + "types": ["diffusers_auto_models"] + }, + { + "direction": "output", + "hidden": false, + "name": "embeddings", + "required": false, + "roles": ["value"], + "semanticName": "embeddings", + "semantics": { + "kind": "conditioning", + "members": [], + "owner": "same_loader", + "scope": "Flux3DistilledModularPipeline", + "state": null + }, + "types": ["embeddings"] + }, + { + "direction": "output", + "hidden": false, + "name": "doc", + "required": false, + "roles": ["value"], + "semanticName": "doc", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": false, + "name": "layout_conditioning", + "required": false, + "roles": ["value"], + "semanticName": "layout_conditioning", + "semantics": { + "kind": "opaque", + "members": [], + "owner": "none", + "scope": "Flux3DistilledModularPipeline", + "state": null + }, + "types": ["layout_conditioning"] + }, + { + "direction": "input", + "hidden": false, + "name": "reference_binding", + "required": false, + "roles": ["value"], + "semanticName": "reference_binding", + "semantics": { + "kind": "opaque", + "members": [], + "owner": "none", + "scope": "Flux3DistilledModularPipeline", + "state": null + }, + "types": ["reference_conditioning"] + }, + { + "direction": "input", + "hidden": false, + "name": "prompt_input", + "required": false, + "roles": ["value"], + "semanticName": "prompt", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + } + ], + "support": "declared", + "task": "text_to_image", + "workflowId": "text2image" + }, + { + "binding": { + "pipelineClass": "Flux3DistilledModularPipeline", + "values": { "model_type": "Flux3DistilledModularPipeline" } + }, + "blockName": null, + "decomposition": "loader", + "nodeKey": "modules.ModularDiffusers.ModelsLoader", + "nodeType": "loader", + "operationId": "diffusion.load_models", + "pipelineClass": "Flux3DistilledModularPipeline", + "ports": [ + { + "direction": "input", + "hidden": false, + "name": "model_type", + "required": false, + "roles": ["value"], + "semanticName": "model_type", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": false, + "name": "repo_id", + "required": false, + "roles": ["value"], + "semanticName": "repo_id", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": true, + "name": "reviewed_variant", + "required": false, + "roles": ["value"], + "semanticName": "reviewed_variant", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": false, + "name": "device", + "required": false, + "roles": ["value"], + "semanticName": "device", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": false, + "name": "attention_backend", + "required": false, + "roles": ["value"], + "semanticName": "attention_backend", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": true, + "name": "vae_slicing", + "required": false, + "roles": ["value"], + "semanticName": "vae_slicing", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["boolean"] + }, + { + "direction": "input", + "hidden": true, + "name": "vae_tiling", + "required": false, + "roles": ["value"], + "semanticName": "vae_tiling", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["boolean"] + }, + { + "direction": "input", + "hidden": true, + "name": "inpaint_compatibility", + "required": false, + "roles": ["value"], + "semanticName": "inpaint_compatibility", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": false, + "name": "trust_remote_code", + "required": false, + "roles": ["value"], + "semanticName": "trust_remote_code", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["boolean"] + }, + { + "direction": "input", + "hidden": false, + "name": "revision", + "required": false, + "roles": ["value"], + "semanticName": "revision", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": true, + "name": "workflow_id", + "required": false, + "roles": ["value"], + "semanticName": "workflow_id", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": true, + "name": "modiff_pipeline_identity", + "required": false, + "roles": ["value"], + "semanticName": "modiff_pipeline_identity", + "semantics": { + "kind": "opaque", + "members": [], + "owner": "none", + "scope": "Flux3DistilledModularPipeline", + "state": null + }, + "types": ["object"] + }, + { + "direction": "input", + "hidden": false, + "name": "auto_offload", + "required": false, + "roles": ["value"], + "semanticName": "auto_offload", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["boolean"] + }, + { + "direction": "input", + "hidden": false, + "name": "offload_mode", + "required": false, + "roles": ["value"], + "semanticName": "offload_mode", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": false, + "name": "weight_loading_mode", + "required": false, + "roles": ["value"], + "semanticName": "weight_loading_mode", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": true, + "name": "weight_format", + "required": false, + "roles": ["value"], + "semanticName": "weight_format", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": false, + "name": "unet", + "required": false, + "roles": ["component"], + "semanticName": "unet", + "semantics": { + "kind": "component", + "members": [ + { + "name": "transformer", + "type": "diffusers.models.transformers.transformer_flux3.Flux3Transformer2DModel" + } + ], + "owner": "same_loader", + "scope": "Flux3DistilledModularPipeline", + "state": null + }, + "types": ["diffusers_auto_model"] + }, + { + "direction": "input", + "hidden": false, + "name": "vae", + "required": false, + "roles": ["component"], + "semanticName": "vae", + "semantics": { + "kind": "component", + "members": [ + { "name": "vae", "type": "diffusers.models.autoencoders.autoencoder_kl_flux2.AutoencoderKLFlux2" } + ], + "owner": "same_loader", + "scope": "Flux3DistilledModularPipeline", + "state": null + }, + "types": ["diffusers_auto_model"] + }, + { + "direction": "input", + "hidden": true, + "name": "controlnet", + "required": false, + "roles": ["component"], + "semanticName": "controlnet", + "semantics": { + "kind": "component", + "members": [], + "owner": "same_loader", + "scope": "Flux3DistilledModularPipeline", + "state": null + }, + "types": ["diffusers_auto_model"] + }, + { + "direction": "input", + "hidden": false, + "name": "lora_list", + "required": false, + "roles": ["value"], + "semanticName": "lora_list", + "semantics": { + "kind": "opaque", + "members": [], + "owner": "none", + "scope": "Flux3DistilledModularPipeline", + "state": null + }, + "types": ["custom_lora"] + }, + { + "direction": "output", + "hidden": false, + "name": "text_encoders", + "required": false, + "roles": ["component"], + "semanticName": "text_encoders", + "semantics": { + "kind": "component", + "members": [ + { + "name": "text_encoder", + "type": "transformers.models.qwen3_vl.modeling_qwen3_vl.Qwen3VLForConditionalGeneration" + }, + { "name": "tokenizer", "type": "transformers.models.auto.processing_auto.AutoProcessor" } + ], + "owner": "same_loader", + "scope": "Flux3DistilledModularPipeline", + "state": null + }, + "types": ["diffusers_auto_models"] + }, + { + "direction": "output", + "hidden": false, + "name": "unet_out", + "required": false, + "roles": ["component"], + "semanticName": "unet_out", + "semantics": { + "kind": "component", + "members": [ + { + "name": "transformer", + "type": "diffusers.models.transformers.transformer_flux3.Flux3Transformer2DModel" + } + ], + "owner": "same_loader", + "scope": "Flux3DistilledModularPipeline", + "state": null + }, + "types": ["diffusers_auto_model"] + }, + { + "direction": "output", + "hidden": false, + "name": "vae_out", + "required": false, + "roles": ["component"], + "semanticName": "vae_out", + "semantics": { + "kind": "component", + "members": [ + { "name": "vae", "type": "diffusers.models.autoencoders.autoencoder_kl_flux2.AutoencoderKLFlux2" } + ], + "owner": "same_loader", + "scope": "Flux3DistilledModularPipeline", + "state": null + }, + "types": ["diffusers_auto_model"] + }, + { + "direction": "output", + "hidden": false, + "name": "scheduler", + "required": false, + "roles": ["component"], + "semanticName": "scheduler", + "semantics": { + "kind": "component", + "members": [ + { + "name": "scheduler", + "type": "diffusers.schedulers.scheduling_flow_match_euler_discrete.FlowMatchEulerDiscreteScheduler" + } + ], + "owner": "same_loader", + "scope": "Flux3DistilledModularPipeline", + "state": null + }, + "types": ["diffusers_auto_model"] + }, + { + "direction": "output", + "hidden": true, + "name": "image_encoder", + "required": false, + "roles": ["component"], + "semanticName": "image_encoder", + "semantics": { + "kind": "component", + "members": [], + "owner": "same_loader", + "scope": "Flux3DistilledModularPipeline", + "state": null + }, + "types": ["diffusers_auto_model"] + }, + { + "direction": "output", + "hidden": false, + "name": "pipeline_components", + "required": false, + "roles": ["component"], + "semanticName": "pipeline_components", + "semantics": { + "kind": "component", + "members": [ + { + "name": "image_processor", + "type": "diffusers.modular_pipelines.flux3.image_processor.Flux3ImageProcessor" + }, + { + "name": "scheduler", + "type": "diffusers.schedulers.scheduling_flow_match_euler_discrete.FlowMatchEulerDiscreteScheduler" + }, + { + "name": "text_encoder", + "type": "transformers.models.qwen3_vl.modeling_qwen3_vl.Qwen3VLForConditionalGeneration" + }, + { "name": "tokenizer", "type": "transformers.models.auto.processing_auto.AutoProcessor" }, + { + "name": "transformer", + "type": "diffusers.models.transformers.transformer_flux3.Flux3Transformer2DModel" + }, + { "name": "vae", "type": "diffusers.models.autoencoders.autoencoder_kl_flux2.AutoencoderKLFlux2" } + ], + "owner": "same_loader", + "scope": "Flux3DistilledModularPipeline", + "state": null + }, + "types": ["diffusers_modular_pipeline_components"] + }, + { + "direction": "input", + "hidden": false, + "name": "quant_config", + "required": false, + "roles": ["value"], + "semanticName": "quant_config", + "semantics": { + "kind": "opaque", + "members": [], + "owner": "none", + "scope": "Flux3DistilledModularPipeline", + "state": null + }, + "types": ["quant_config"] + } + ], + "support": "declared", + "task": "text_to_image", + "workflowId": "text2image" + }, + { + "binding": { "pipelineClass": "Flux3ModularPipeline", "values": {} }, + "blockName": "decode", + "decomposition": "block", + "nodeKey": "modules.ModularDiffusers.DecodeLatents", + "nodeType": "decoder", + "operationId": "diffusion.decode_latents", + "pipelineClass": "Flux3ModularPipeline", + "ports": [ + { + "direction": "input", + "hidden": false, + "name": "latents", + "required": true, + "roles": ["value"], + "semanticName": "latents", + "semantics": { + "kind": "latents", + "members": [], + "owner": "same_loader", + "scope": "Flux3ModularPipeline", + "state": null + }, + "types": ["latents"] + }, + { + "direction": "input", + "hidden": false, + "name": "vae", + "required": true, + "roles": ["component"], + "semanticName": "vae", + "semantics": { + "kind": "component", + "members": [], + "owner": "same_loader", + "scope": "Flux3ModularPipeline", + "state": null + }, + "types": ["diffusers_auto_model"] + }, + { + "direction": "output", + "hidden": false, + "name": "images", + "required": false, + "roles": ["value"], + "semanticName": "images", + "semantics": { "kind": "media", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["image"] + }, + { + "direction": "output", + "hidden": false, + "name": "doc", + "required": false, + "roles": ["value"], + "semanticName": "doc", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + } + ], + "support": "declared", + "task": null, + "workflowId": null + }, + { + "binding": { "pipelineClass": "Flux3ModularPipeline", "values": {} }, + "blockName": "denoise", + "decomposition": "block", + "nodeKey": "modules.ModularDiffusers.Denoise", + "nodeType": "denoise", + "operationId": "diffusion.denoise", + "pipelineClass": "Flux3ModularPipeline", + "ports": [ + { + "direction": "input", + "hidden": false, + "name": "embeddings", + "required": true, + "roles": ["value"], + "semanticName": "embeddings", + "semantics": { + "kind": "conditioning", + "members": [], + "owner": "same_loader", + "scope": "Flux3ModularPipeline", + "state": null + }, + "types": ["embeddings"] + }, + { + "direction": "input", + "hidden": false, + "name": "width", + "required": false, + "roles": ["value"], + "semanticName": "width", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["int"] + }, + { + "direction": "input", + "hidden": false, + "name": "height", + "required": false, + "roles": ["value"], + "semanticName": "height", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["int"] + }, + { + "direction": "input", + "hidden": false, + "name": "seed", + "required": false, + "roles": ["value"], + "semanticName": "seed", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["int"] + }, + { + "direction": "input", + "hidden": false, + "name": "num_inference_steps", + "required": false, + "roles": ["value"], + "semanticName": "num_inference_steps", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["int"] + }, + { + "direction": "input", + "hidden": false, + "name": "num_images_per_prompt", + "required": false, + "roles": ["value"], + "semanticName": "num_images_per_prompt", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["int"] + }, + { + "direction": "input", + "hidden": false, + "name": "image_cond_latents", + "required": false, + "roles": ["value"], + "semanticName": "image_cond_latents", + "semantics": { + "kind": "latents", + "members": [], + "owner": "same_loader", + "scope": "Flux3ModularPipeline", + "state": null + }, + "types": ["latents"] + }, + { + "direction": "input", + "hidden": false, + "name": "unet", + "required": true, + "roles": ["component"], + "semanticName": "unet", + "semantics": { + "kind": "component", + "members": [], + "owner": "same_loader", + "scope": "Flux3ModularPipeline", + "state": null + }, + "types": ["diffusers_auto_model"] + }, + { + "direction": "input", + "hidden": false, + "name": "scheduler", + "required": true, + "roles": ["component"], + "semanticName": "scheduler", + "semantics": { + "kind": "component", + "members": [], + "owner": "same_loader", + "scope": "Flux3ModularPipeline", + "state": null + }, + "types": ["diffusers_auto_model"] + }, + { + "direction": "input", + "hidden": false, + "name": "guider", + "required": false, + "roles": ["component"], + "semanticName": "guider", + "semantics": { + "kind": "component", + "members": [], + "owner": "same_loader", + "scope": "Flux3ModularPipeline", + "state": null + }, + "types": ["custom_guider"] + }, + { + "direction": "output", + "hidden": false, + "name": "latents", + "required": false, + "roles": ["value"], + "semanticName": "latents", + "semantics": { + "kind": "latents", + "members": [], + "owner": "same_loader", + "scope": "Flux3ModularPipeline", + "state": null + }, + "types": ["latents"] + }, + { + "direction": "output", + "hidden": false, + "name": "doc", + "required": false, + "roles": ["value"], + "semanticName": "doc", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": false, + "name": "reference_binding", + "required": false, + "roles": ["value"], + "semanticName": "reference_binding", + "semantics": { + "kind": "opaque", + "members": [], + "owner": "none", + "scope": "Flux3ModularPipeline", + "state": null + }, + "types": ["reference_conditioning"] + } + ], + "support": "declared", + "task": null, + "workflowId": null + }, + { + "binding": { "pipelineClass": "Flux3ModularPipeline", "values": {} }, + "blockName": "vae_encoder", + "decomposition": "block", + "nodeKey": "modules.ModularDiffusers.ImageEncode", + "nodeType": "vae_encoder", + "operationId": "diffusion.encode_image", + "pipelineClass": "Flux3ModularPipeline", + "ports": [ + { + "direction": "input", + "hidden": false, + "name": "image", + "required": true, + "roles": ["value"], + "semanticName": "image", + "semantics": { "kind": "media", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["image"] + }, + { + "direction": "input", + "hidden": false, + "name": "vae", + "required": true, + "roles": ["component"], + "semanticName": "vae", + "semantics": { + "kind": "component", + "members": [], + "owner": "same_loader", + "scope": "Flux3ModularPipeline", + "state": null + }, + "types": ["diffusers_auto_model"] + }, + { + "direction": "output", + "hidden": false, + "name": "image_cond_latents", + "required": false, + "roles": ["value"], + "semanticName": "image_cond_latents", + "semantics": { + "kind": "latents", + "members": [], + "owner": "same_loader", + "scope": "Flux3ModularPipeline", + "state": null + }, + "types": ["latents"] + }, + { + "direction": "output", + "hidden": false, + "name": "reference_binding", + "required": false, + "roles": ["value"], + "semanticName": "reference_binding", + "semantics": { + "kind": "opaque", + "members": [], + "owner": "none", + "scope": "Flux3ModularPipeline", + "state": null + }, + "types": ["reference_conditioning"] + }, + { + "direction": "output", + "hidden": false, + "name": "doc", + "required": false, + "roles": ["value"], + "semanticName": "doc", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + } + ], + "support": "declared", + "task": null, + "workflowId": null + }, + { + "binding": { "pipelineClass": "Flux3ModularPipeline", "values": {} }, + "blockName": "text_encoder", + "decomposition": "block", + "nodeKey": "modules.ModularDiffusers.EncodePrompt", + "nodeType": "text_encoder", + "operationId": "diffusion.encode_prompt", + "pipelineClass": "Flux3ModularPipeline", + "ports": [ + { + "direction": "input", + "hidden": false, + "name": "prompt", + "required": true, + "roles": ["value"], + "semanticName": "prompt", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": false, + "name": "negative_prompt", + "required": false, + "roles": ["value"], + "semanticName": "negative_prompt", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": false, + "name": "max_sequence_length", + "required": false, + "roles": ["value"], + "semanticName": "max_sequence_length", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["int"] + }, + { + "direction": "input", + "hidden": false, + "name": "text_encoder_out_layers", + "required": false, + "roles": ["value"], + "semanticName": "text_encoder_out_layers", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["int"] + }, + { + "direction": "input", + "hidden": false, + "name": "text_encoders", + "required": true, + "roles": ["component"], + "semanticName": "text_encoders", + "semantics": { + "kind": "component", + "members": [], + "owner": "same_loader", + "scope": "Flux3ModularPipeline", + "state": null + }, + "types": ["diffusers_auto_models"] + }, + { + "direction": "output", + "hidden": false, + "name": "embeddings", + "required": false, + "roles": ["value"], + "semanticName": "embeddings", + "semantics": { + "kind": "conditioning", + "members": [], + "owner": "same_loader", + "scope": "Flux3ModularPipeline", + "state": null + }, + "types": ["embeddings"] + }, + { + "direction": "output", + "hidden": false, + "name": "doc", + "required": false, + "roles": ["value"], + "semanticName": "doc", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": false, + "name": "layout_conditioning", + "required": false, + "roles": ["value"], + "semanticName": "layout_conditioning", + "semantics": { + "kind": "opaque", + "members": [], + "owner": "none", + "scope": "Flux3ModularPipeline", + "state": null + }, + "types": ["layout_conditioning"] + }, + { + "direction": "input", + "hidden": false, + "name": "reference_binding", + "required": false, + "roles": ["value"], + "semanticName": "reference_binding", + "semantics": { + "kind": "opaque", + "members": [], + "owner": "none", + "scope": "Flux3ModularPipeline", + "state": null + }, + "types": ["reference_conditioning"] + }, + { + "direction": "input", + "hidden": false, + "name": "prompt_input", + "required": false, + "roles": ["value"], + "semanticName": "prompt", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + } + ], + "support": "declared", + "task": null, + "workflowId": null + }, + { + "binding": { "pipelineClass": "Flux3ModularPipeline", "values": {} }, + "blockName": "decode", + "decomposition": "block", + "nodeKey": "modules.ModularDiffusers.DecodeLatents", + "nodeType": "decoder", + "operationId": "diffusion.decode_latents", + "pipelineClass": "Flux3ModularPipeline", + "ports": [ + { + "direction": "input", + "hidden": false, + "name": "latents", + "required": true, + "roles": ["value"], + "semanticName": "latents", + "semantics": { + "kind": "latents", + "members": [], + "owner": "same_loader", + "scope": "Flux3ModularPipeline", + "state": null + }, + "types": ["latents"] + }, + { + "direction": "input", + "hidden": false, + "name": "vae", + "required": true, + "roles": ["component"], + "semanticName": "vae", + "semantics": { + "kind": "component", + "members": [ + { "name": "vae", "type": "diffusers.models.autoencoders.autoencoder_kl_flux2.AutoencoderKLFlux2" } + ], + "owner": "same_loader", + "scope": "Flux3ModularPipeline", + "state": null + }, + "types": ["diffusers_auto_model"] + }, + { + "direction": "output", + "hidden": false, + "name": "images", + "required": false, + "roles": ["value"], + "semanticName": "images", + "semantics": { "kind": "media", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["image"] + }, + { + "direction": "output", + "hidden": false, + "name": "doc", + "required": false, + "roles": ["value"], + "semanticName": "doc", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + } + ], + "support": "declared", + "task": "edit_image", + "workflowId": "image_conditioned" + }, + { + "binding": { "pipelineClass": "Flux3ModularPipeline", "values": {} }, + "blockName": "denoise", + "decomposition": "block", + "nodeKey": "modules.ModularDiffusers.Denoise", + "nodeType": "denoise", + "operationId": "diffusion.denoise", + "pipelineClass": "Flux3ModularPipeline", + "ports": [ + { + "direction": "input", + "hidden": false, + "name": "embeddings", + "required": true, + "roles": ["value"], + "semanticName": "embeddings", + "semantics": { + "kind": "conditioning", + "members": [], + "owner": "same_loader", + "scope": "Flux3ModularPipeline", + "state": null + }, + "types": ["embeddings"] + }, + { + "direction": "input", + "hidden": false, + "name": "width", + "required": false, + "roles": ["value"], + "semanticName": "width", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["int"] + }, + { + "direction": "input", + "hidden": false, + "name": "height", + "required": false, + "roles": ["value"], + "semanticName": "height", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["int"] + }, + { + "direction": "input", + "hidden": false, + "name": "seed", + "required": false, + "roles": ["value"], + "semanticName": "seed", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["int"] + }, + { + "direction": "input", + "hidden": false, + "name": "num_inference_steps", + "required": false, + "roles": ["value"], + "semanticName": "num_inference_steps", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["int"] + }, + { + "direction": "input", + "hidden": false, + "name": "num_images_per_prompt", + "required": false, + "roles": ["value"], + "semanticName": "num_images_per_prompt", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["int"] + }, + { + "direction": "input", + "hidden": false, + "name": "image_cond_latents", + "required": false, + "roles": ["value"], + "semanticName": "image_cond_latents", + "semantics": { + "kind": "latents", + "members": [], + "owner": "same_loader", + "scope": "Flux3ModularPipeline", + "state": null + }, + "types": ["latents"] + }, + { + "direction": "input", + "hidden": false, + "name": "unet", + "required": true, + "roles": ["component"], + "semanticName": "unet", + "semantics": { + "kind": "component", + "members": [ + { + "name": "transformer", + "type": "diffusers.models.transformers.transformer_flux3.Flux3Transformer2DModel" + } + ], + "owner": "same_loader", + "scope": "Flux3ModularPipeline", + "state": null + }, + "types": ["diffusers_auto_model"] + }, + { + "direction": "input", + "hidden": false, + "name": "scheduler", + "required": true, + "roles": ["component"], + "semanticName": "scheduler", + "semantics": { + "kind": "component", + "members": [ + { + "name": "scheduler", + "type": "diffusers.schedulers.scheduling_flow_match_euler_discrete.FlowMatchEulerDiscreteScheduler" + } + ], + "owner": "same_loader", + "scope": "Flux3ModularPipeline", + "state": null + }, + "types": ["diffusers_auto_model"] + }, + { + "direction": "input", + "hidden": false, + "name": "guider", + "required": false, + "roles": ["component"], + "semanticName": "guider", + "semantics": { + "kind": "component", + "members": [ + { "name": "guider", "type": "diffusers.guiders.classifier_free_guidance.ClassifierFreeGuidance" } + ], + "owner": "same_loader", + "scope": "Flux3ModularPipeline", + "state": null + }, + "types": ["custom_guider"] + }, + { + "direction": "output", + "hidden": false, + "name": "latents", + "required": false, + "roles": ["value"], + "semanticName": "latents", + "semantics": { + "kind": "latents", + "members": [], + "owner": "same_loader", + "scope": "Flux3ModularPipeline", + "state": null + }, + "types": ["latents"] + }, + { + "direction": "output", + "hidden": false, + "name": "doc", + "required": false, + "roles": ["value"], + "semanticName": "doc", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": false, + "name": "reference_binding", + "required": false, + "roles": ["value"], + "semanticName": "reference_binding", + "semantics": { + "kind": "opaque", + "members": [], + "owner": "none", + "scope": "Flux3ModularPipeline", + "state": null + }, + "types": ["reference_conditioning"] + } + ], + "support": "declared", + "task": "edit_image", + "workflowId": "image_conditioned" + }, + { + "binding": { "pipelineClass": "Flux3ModularPipeline", "values": {} }, + "blockName": "vae_encoder", + "decomposition": "block", + "nodeKey": "modules.ModularDiffusers.ImageEncode", + "nodeType": "vae_encoder", + "operationId": "diffusion.encode_image", + "pipelineClass": "Flux3ModularPipeline", + "ports": [ + { + "direction": "input", + "hidden": false, + "name": "image", + "required": true, + "roles": ["value"], + "semanticName": "image", + "semantics": { "kind": "media", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["image"] + }, + { + "direction": "input", + "hidden": false, + "name": "vae", + "required": true, + "roles": ["component"], + "semanticName": "vae", + "semantics": { + "kind": "component", + "members": [ + { "name": "vae", "type": "diffusers.models.autoencoders.autoencoder_kl_flux2.AutoencoderKLFlux2" } + ], + "owner": "same_loader", + "scope": "Flux3ModularPipeline", + "state": null + }, + "types": ["diffusers_auto_model"] + }, + { + "direction": "output", + "hidden": false, + "name": "image_cond_latents", + "required": false, + "roles": ["value"], + "semanticName": "image_cond_latents", + "semantics": { + "kind": "latents", + "members": [], + "owner": "same_loader", + "scope": "Flux3ModularPipeline", + "state": null + }, + "types": ["latents"] + }, + { + "direction": "output", + "hidden": false, + "name": "reference_binding", + "required": false, + "roles": ["value"], + "semanticName": "reference_binding", + "semantics": { + "kind": "opaque", + "members": [], + "owner": "none", + "scope": "Flux3ModularPipeline", + "state": null + }, + "types": ["reference_conditioning"] + }, + { + "direction": "output", + "hidden": false, + "name": "doc", + "required": false, + "roles": ["value"], + "semanticName": "doc", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + } + ], + "support": "declared", + "task": "edit_image", + "workflowId": "image_conditioned" + }, + { + "binding": { "pipelineClass": "Flux3ModularPipeline", "values": {} }, + "blockName": "text_encoder", + "decomposition": "block", + "nodeKey": "modules.ModularDiffusers.EncodePrompt", + "nodeType": "text_encoder", + "operationId": "diffusion.encode_prompt", + "pipelineClass": "Flux3ModularPipeline", + "ports": [ + { + "direction": "input", + "hidden": false, + "name": "prompt", + "required": true, + "roles": ["value"], + "semanticName": "prompt", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": false, + "name": "negative_prompt", + "required": false, + "roles": ["value"], + "semanticName": "negative_prompt", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": false, + "name": "max_sequence_length", + "required": false, + "roles": ["value"], + "semanticName": "max_sequence_length", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["int"] + }, + { + "direction": "input", + "hidden": false, + "name": "text_encoder_out_layers", + "required": false, + "roles": ["value"], + "semanticName": "text_encoder_out_layers", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["int"] + }, + { + "direction": "input", + "hidden": false, + "name": "text_encoders", + "required": true, + "roles": ["component"], + "semanticName": "text_encoders", + "semantics": { + "kind": "component", + "members": [ + { + "name": "text_encoder", + "type": "transformers.models.qwen3_vl.modeling_qwen3_vl.Qwen3VLForConditionalGeneration" + }, + { "name": "tokenizer", "type": "transformers.models.auto.processing_auto.AutoProcessor" } + ], + "owner": "same_loader", + "scope": "Flux3ModularPipeline", + "state": null + }, + "types": ["diffusers_auto_models"] + }, + { + "direction": "output", + "hidden": false, + "name": "embeddings", + "required": false, + "roles": ["value"], + "semanticName": "embeddings", + "semantics": { + "kind": "conditioning", + "members": [], + "owner": "same_loader", + "scope": "Flux3ModularPipeline", + "state": null + }, + "types": ["embeddings"] + }, + { + "direction": "output", + "hidden": false, + "name": "doc", + "required": false, + "roles": ["value"], + "semanticName": "doc", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": false, + "name": "layout_conditioning", + "required": false, + "roles": ["value"], + "semanticName": "layout_conditioning", + "semantics": { + "kind": "opaque", + "members": [], + "owner": "none", + "scope": "Flux3ModularPipeline", + "state": null + }, + "types": ["layout_conditioning"] + }, + { + "direction": "input", + "hidden": false, + "name": "reference_binding", + "required": false, + "roles": ["value"], + "semanticName": "reference_binding", + "semantics": { + "kind": "opaque", + "members": [], + "owner": "none", + "scope": "Flux3ModularPipeline", + "state": null + }, + "types": ["reference_conditioning"] + }, + { + "direction": "input", + "hidden": false, + "name": "prompt_input", + "required": false, + "roles": ["value"], + "semanticName": "prompt", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + } + ], + "support": "declared", + "task": "edit_image", + "workflowId": "image_conditioned" + }, + { + "binding": { "pipelineClass": "Flux3ModularPipeline", "values": { "model_type": "Flux3ModularPipeline" } }, + "blockName": null, + "decomposition": "bundle", + "nodeKey": "modules.ModularDiffusers.Guider", + "nodeType": "guidance", + "operationId": "diffusion.guidance", + "pipelineClass": "Flux3ModularPipeline", + "ports": [ + { + "direction": "input", + "hidden": true, + "name": "model_type", + "required": false, + "roles": ["value"], + "semanticName": "model_type", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": false, + "name": "guider", + "required": false, + "roles": ["value"], + "semanticName": "guider", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": false, + "name": "guidance_scale", + "required": false, + "roles": ["value"], + "semanticName": "guidance_scale", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["float"] + }, + { + "direction": "input", + "hidden": false, + "name": "guidance_rescale", + "required": false, + "roles": ["value"], + "semanticName": "guidance_rescale", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["float"] + }, + { + "direction": "input", + "hidden": false, + "name": "use_original_formulation", + "required": false, + "roles": ["value"], + "semanticName": "use_original_formulation", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["boolean"] + }, + { + "direction": "input", + "hidden": false, + "name": "enabled", + "required": false, + "roles": ["value"], + "semanticName": "enabled", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["boolean"] + }, + { + "direction": "input", + "hidden": false, + "name": "start", + "required": false, + "roles": ["value"], + "semanticName": "start", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["float"] + }, + { + "direction": "input", + "hidden": false, + "name": "stop", + "required": false, + "roles": ["value"], + "semanticName": "stop", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["float"] + }, + { + "direction": "output", + "hidden": false, + "name": "guider_out", + "required": false, + "roles": ["component"], + "semanticName": "guider_out", + "semantics": { + "kind": "component", + "members": [], + "owner": "same_loader", + "scope": "Flux3ModularPipeline", + "state": null + }, + "types": ["custom_guider"] + }, + { + "direction": "input", + "hidden": false, + "name": "layers_config", + "required": false, + "roles": ["value"], + "semanticName": "layers_config", + "semantics": { + "kind": "opaque", + "members": [], + "owner": "none", + "scope": "Flux3ModularPipeline", + "state": null + }, + "types": ["layers_config"] + } + ], + "support": "declared", + "task": "edit_image", + "workflowId": "image_conditioned" + }, + { + "binding": { "pipelineClass": "Flux3ModularPipeline", "values": { "model_type": "Flux3ModularPipeline" } }, + "blockName": null, + "decomposition": "loader", + "nodeKey": "modules.ModularDiffusers.ModelsLoader", + "nodeType": "loader", + "operationId": "diffusion.load_models", + "pipelineClass": "Flux3ModularPipeline", + "ports": [ + { + "direction": "input", + "hidden": false, + "name": "model_type", + "required": false, + "roles": ["value"], + "semanticName": "model_type", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": false, + "name": "repo_id", + "required": false, + "roles": ["value"], + "semanticName": "repo_id", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": true, + "name": "reviewed_variant", + "required": false, + "roles": ["value"], + "semanticName": "reviewed_variant", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": false, + "name": "device", + "required": false, + "roles": ["value"], + "semanticName": "device", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": false, + "name": "attention_backend", + "required": false, + "roles": ["value"], + "semanticName": "attention_backend", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": true, + "name": "vae_slicing", + "required": false, + "roles": ["value"], + "semanticName": "vae_slicing", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["boolean"] + }, + { + "direction": "input", + "hidden": true, + "name": "vae_tiling", + "required": false, + "roles": ["value"], + "semanticName": "vae_tiling", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["boolean"] + }, + { + "direction": "input", + "hidden": true, + "name": "inpaint_compatibility", + "required": false, + "roles": ["value"], + "semanticName": "inpaint_compatibility", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": false, + "name": "trust_remote_code", + "required": false, + "roles": ["value"], + "semanticName": "trust_remote_code", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["boolean"] + }, + { + "direction": "input", + "hidden": false, + "name": "revision", + "required": false, + "roles": ["value"], + "semanticName": "revision", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": true, + "name": "workflow_id", + "required": false, + "roles": ["value"], + "semanticName": "workflow_id", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": true, + "name": "modiff_pipeline_identity", + "required": false, + "roles": ["value"], + "semanticName": "modiff_pipeline_identity", + "semantics": { + "kind": "opaque", + "members": [], + "owner": "none", + "scope": "Flux3ModularPipeline", + "state": null + }, + "types": ["object"] + }, + { + "direction": "input", + "hidden": false, + "name": "auto_offload", + "required": false, + "roles": ["value"], + "semanticName": "auto_offload", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["boolean"] + }, + { + "direction": "input", + "hidden": false, + "name": "offload_mode", + "required": false, + "roles": ["value"], + "semanticName": "offload_mode", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": false, + "name": "weight_loading_mode", + "required": false, + "roles": ["value"], + "semanticName": "weight_loading_mode", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": true, + "name": "weight_format", + "required": false, + "roles": ["value"], + "semanticName": "weight_format", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": false, + "name": "unet", + "required": false, + "roles": ["component"], + "semanticName": "unet", + "semantics": { + "kind": "component", + "members": [ + { + "name": "transformer", + "type": "diffusers.models.transformers.transformer_flux3.Flux3Transformer2DModel" + } + ], + "owner": "same_loader", + "scope": "Flux3ModularPipeline", + "state": null + }, + "types": ["diffusers_auto_model"] + }, + { + "direction": "input", + "hidden": false, + "name": "vae", + "required": false, + "roles": ["component"], + "semanticName": "vae", + "semantics": { + "kind": "component", + "members": [ + { "name": "vae", "type": "diffusers.models.autoencoders.autoencoder_kl_flux2.AutoencoderKLFlux2" } + ], + "owner": "same_loader", + "scope": "Flux3ModularPipeline", + "state": null + }, + "types": ["diffusers_auto_model"] + }, + { + "direction": "input", + "hidden": true, + "name": "controlnet", + "required": false, + "roles": ["component"], + "semanticName": "controlnet", + "semantics": { + "kind": "component", + "members": [], + "owner": "same_loader", + "scope": "Flux3ModularPipeline", + "state": null + }, + "types": ["diffusers_auto_model"] + }, + { + "direction": "input", + "hidden": false, + "name": "lora_list", + "required": false, + "roles": ["value"], + "semanticName": "lora_list", + "semantics": { + "kind": "opaque", + "members": [], + "owner": "none", + "scope": "Flux3ModularPipeline", + "state": null + }, + "types": ["custom_lora"] + }, + { + "direction": "output", + "hidden": false, + "name": "text_encoders", + "required": false, + "roles": ["component"], + "semanticName": "text_encoders", + "semantics": { + "kind": "component", + "members": [ + { + "name": "text_encoder", + "type": "transformers.models.qwen3_vl.modeling_qwen3_vl.Qwen3VLForConditionalGeneration" + }, + { "name": "tokenizer", "type": "transformers.models.auto.processing_auto.AutoProcessor" } + ], + "owner": "same_loader", + "scope": "Flux3ModularPipeline", + "state": null + }, + "types": ["diffusers_auto_models"] + }, + { + "direction": "output", + "hidden": false, + "name": "unet_out", + "required": false, + "roles": ["component"], + "semanticName": "unet_out", + "semantics": { + "kind": "component", + "members": [ + { + "name": "transformer", + "type": "diffusers.models.transformers.transformer_flux3.Flux3Transformer2DModel" + } + ], + "owner": "same_loader", + "scope": "Flux3ModularPipeline", + "state": null + }, + "types": ["diffusers_auto_model"] + }, + { + "direction": "output", + "hidden": false, + "name": "vae_out", + "required": false, + "roles": ["component"], + "semanticName": "vae_out", + "semantics": { + "kind": "component", + "members": [ + { "name": "vae", "type": "diffusers.models.autoencoders.autoencoder_kl_flux2.AutoencoderKLFlux2" } + ], + "owner": "same_loader", + "scope": "Flux3ModularPipeline", + "state": null + }, + "types": ["diffusers_auto_model"] + }, + { + "direction": "output", + "hidden": false, + "name": "scheduler", + "required": false, + "roles": ["component"], + "semanticName": "scheduler", + "semantics": { + "kind": "component", + "members": [ + { + "name": "scheduler", + "type": "diffusers.schedulers.scheduling_flow_match_euler_discrete.FlowMatchEulerDiscreteScheduler" + } + ], + "owner": "same_loader", + "scope": "Flux3ModularPipeline", + "state": null + }, + "types": ["diffusers_auto_model"] + }, + { + "direction": "output", + "hidden": true, + "name": "image_encoder", + "required": false, + "roles": ["component"], + "semanticName": "image_encoder", + "semantics": { + "kind": "component", + "members": [], + "owner": "same_loader", + "scope": "Flux3ModularPipeline", + "state": null + }, + "types": ["diffusers_auto_model"] + }, + { + "direction": "output", + "hidden": false, + "name": "pipeline_components", + "required": false, + "roles": ["component"], + "semanticName": "pipeline_components", + "semantics": { + "kind": "component", + "members": [ + { "name": "guider", "type": "diffusers.guiders.classifier_free_guidance.ClassifierFreeGuidance" }, + { + "name": "image_processor", + "type": "diffusers.modular_pipelines.flux3.image_processor.Flux3ImageProcessor" + }, + { + "name": "scheduler", + "type": "diffusers.schedulers.scheduling_flow_match_euler_discrete.FlowMatchEulerDiscreteScheduler" + }, + { + "name": "text_encoder", + "type": "transformers.models.qwen3_vl.modeling_qwen3_vl.Qwen3VLForConditionalGeneration" + }, + { "name": "tokenizer", "type": "transformers.models.auto.processing_auto.AutoProcessor" }, + { + "name": "transformer", + "type": "diffusers.models.transformers.transformer_flux3.Flux3Transformer2DModel" + }, + { "name": "vae", "type": "diffusers.models.autoencoders.autoencoder_kl_flux2.AutoencoderKLFlux2" } + ], + "owner": "same_loader", + "scope": "Flux3ModularPipeline", + "state": null + }, + "types": ["diffusers_modular_pipeline_components"] + }, + { + "direction": "input", + "hidden": false, + "name": "quant_config", + "required": false, + "roles": ["value"], + "semanticName": "quant_config", + "semantics": { + "kind": "opaque", + "members": [], + "owner": "none", + "scope": "Flux3ModularPipeline", + "state": null + }, + "types": ["quant_config"] + } + ], + "support": "declared", + "task": "edit_image", + "workflowId": "image_conditioned" + }, + { + "binding": { "pipelineClass": "Flux3ModularPipeline", "values": {} }, + "blockName": "decode", + "decomposition": "block", + "nodeKey": "modules.ModularDiffusers.DecodeLatents", + "nodeType": "decoder", + "operationId": "diffusion.decode_latents", + "pipelineClass": "Flux3ModularPipeline", + "ports": [ + { + "direction": "input", + "hidden": false, + "name": "latents", + "required": true, + "roles": ["value"], + "semanticName": "latents", + "semantics": { + "kind": "latents", + "members": [], + "owner": "same_loader", + "scope": "Flux3ModularPipeline", + "state": null + }, + "types": ["latents"] + }, + { + "direction": "input", + "hidden": false, + "name": "vae", + "required": true, + "roles": ["component"], + "semanticName": "vae", + "semantics": { + "kind": "component", + "members": [ + { "name": "vae", "type": "diffusers.models.autoencoders.autoencoder_kl_flux2.AutoencoderKLFlux2" } + ], + "owner": "same_loader", + "scope": "Flux3ModularPipeline", + "state": null + }, + "types": ["diffusers_auto_model"] + }, + { + "direction": "output", + "hidden": false, + "name": "images", + "required": false, + "roles": ["value"], + "semanticName": "images", + "semantics": { "kind": "media", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["image"] + }, + { + "direction": "output", + "hidden": false, + "name": "doc", + "required": false, + "roles": ["value"], + "semanticName": "doc", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + } + ], + "support": "declared", + "task": "text_to_image", + "workflowId": "text2image" + }, + { + "binding": { "pipelineClass": "Flux3ModularPipeline", "values": {} }, + "blockName": "denoise", + "decomposition": "block", + "nodeKey": "modules.ModularDiffusers.Denoise", + "nodeType": "denoise", + "operationId": "diffusion.denoise", + "pipelineClass": "Flux3ModularPipeline", + "ports": [ + { + "direction": "input", + "hidden": false, + "name": "embeddings", + "required": true, + "roles": ["value"], + "semanticName": "embeddings", + "semantics": { + "kind": "conditioning", + "members": [], + "owner": "same_loader", + "scope": "Flux3ModularPipeline", + "state": null + }, + "types": ["embeddings"] + }, + { + "direction": "input", + "hidden": false, + "name": "width", + "required": false, + "roles": ["value"], + "semanticName": "width", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["int"] + }, + { + "direction": "input", + "hidden": false, + "name": "height", + "required": false, + "roles": ["value"], + "semanticName": "height", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["int"] + }, + { + "direction": "input", + "hidden": false, + "name": "seed", + "required": false, + "roles": ["value"], + "semanticName": "seed", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["int"] + }, + { + "direction": "input", + "hidden": false, + "name": "num_inference_steps", + "required": false, + "roles": ["value"], + "semanticName": "num_inference_steps", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["int"] + }, + { + "direction": "input", + "hidden": false, + "name": "num_images_per_prompt", + "required": false, + "roles": ["value"], + "semanticName": "num_images_per_prompt", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["int"] + }, + { + "direction": "input", + "hidden": false, + "name": "image_cond_latents", + "required": false, + "roles": ["value"], + "semanticName": "image_cond_latents", + "semantics": { + "kind": "latents", + "members": [], + "owner": "same_loader", + "scope": "Flux3ModularPipeline", + "state": null + }, + "types": ["latents"] + }, + { + "direction": "input", + "hidden": false, + "name": "unet", + "required": true, + "roles": ["component"], + "semanticName": "unet", + "semantics": { + "kind": "component", + "members": [ + { + "name": "transformer", + "type": "diffusers.models.transformers.transformer_flux3.Flux3Transformer2DModel" + } + ], + "owner": "same_loader", + "scope": "Flux3ModularPipeline", + "state": null + }, + "types": ["diffusers_auto_model"] + }, + { + "direction": "input", + "hidden": false, + "name": "scheduler", + "required": true, + "roles": ["component"], + "semanticName": "scheduler", + "semantics": { + "kind": "component", + "members": [ + { + "name": "scheduler", + "type": "diffusers.schedulers.scheduling_flow_match_euler_discrete.FlowMatchEulerDiscreteScheduler" + } + ], + "owner": "same_loader", + "scope": "Flux3ModularPipeline", + "state": null + }, + "types": ["diffusers_auto_model"] + }, + { + "direction": "input", + "hidden": false, + "name": "guider", + "required": false, + "roles": ["component"], + "semanticName": "guider", + "semantics": { + "kind": "component", + "members": [ + { "name": "guider", "type": "diffusers.guiders.classifier_free_guidance.ClassifierFreeGuidance" } + ], + "owner": "same_loader", + "scope": "Flux3ModularPipeline", + "state": null + }, + "types": ["custom_guider"] + }, + { + "direction": "output", + "hidden": false, + "name": "latents", + "required": false, + "roles": ["value"], + "semanticName": "latents", + "semantics": { + "kind": "latents", + "members": [], + "owner": "same_loader", + "scope": "Flux3ModularPipeline", + "state": null + }, + "types": ["latents"] + }, + { + "direction": "output", + "hidden": false, + "name": "doc", + "required": false, + "roles": ["value"], + "semanticName": "doc", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": false, + "name": "reference_binding", + "required": false, + "roles": ["value"], + "semanticName": "reference_binding", + "semantics": { + "kind": "opaque", + "members": [], + "owner": "none", + "scope": "Flux3ModularPipeline", + "state": null + }, + "types": ["reference_conditioning"] + } + ], + "support": "declared", + "task": "text_to_image", + "workflowId": "text2image" + }, + { + "binding": { "pipelineClass": "Flux3ModularPipeline", "values": {} }, + "blockName": "text_encoder", + "decomposition": "block", + "nodeKey": "modules.ModularDiffusers.EncodePrompt", + "nodeType": "text_encoder", + "operationId": "diffusion.encode_prompt", + "pipelineClass": "Flux3ModularPipeline", + "ports": [ + { + "direction": "input", + "hidden": false, + "name": "prompt", + "required": true, + "roles": ["value"], + "semanticName": "prompt", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": false, + "name": "negative_prompt", + "required": false, + "roles": ["value"], + "semanticName": "negative_prompt", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": false, + "name": "max_sequence_length", + "required": false, + "roles": ["value"], + "semanticName": "max_sequence_length", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["int"] + }, + { + "direction": "input", + "hidden": false, + "name": "text_encoder_out_layers", + "required": false, + "roles": ["value"], + "semanticName": "text_encoder_out_layers", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["int"] + }, + { + "direction": "input", + "hidden": false, + "name": "text_encoders", + "required": true, + "roles": ["component"], + "semanticName": "text_encoders", + "semantics": { + "kind": "component", + "members": [ + { + "name": "text_encoder", + "type": "transformers.models.qwen3_vl.modeling_qwen3_vl.Qwen3VLForConditionalGeneration" + }, + { "name": "tokenizer", "type": "transformers.models.auto.processing_auto.AutoProcessor" } + ], + "owner": "same_loader", + "scope": "Flux3ModularPipeline", + "state": null + }, + "types": ["diffusers_auto_models"] + }, + { + "direction": "output", + "hidden": false, + "name": "embeddings", + "required": false, + "roles": ["value"], + "semanticName": "embeddings", + "semantics": { + "kind": "conditioning", + "members": [], + "owner": "same_loader", + "scope": "Flux3ModularPipeline", + "state": null + }, + "types": ["embeddings"] + }, + { + "direction": "output", + "hidden": false, + "name": "doc", + "required": false, + "roles": ["value"], + "semanticName": "doc", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": false, + "name": "layout_conditioning", + "required": false, + "roles": ["value"], + "semanticName": "layout_conditioning", + "semantics": { + "kind": "opaque", + "members": [], + "owner": "none", + "scope": "Flux3ModularPipeline", + "state": null + }, + "types": ["layout_conditioning"] + }, + { + "direction": "input", + "hidden": false, + "name": "reference_binding", + "required": false, + "roles": ["value"], + "semanticName": "reference_binding", + "semantics": { + "kind": "opaque", + "members": [], + "owner": "none", + "scope": "Flux3ModularPipeline", + "state": null + }, + "types": ["reference_conditioning"] + }, + { + "direction": "input", + "hidden": false, + "name": "prompt_input", + "required": false, + "roles": ["value"], + "semanticName": "prompt", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + } + ], + "support": "declared", + "task": "text_to_image", + "workflowId": "text2image" + }, + { + "binding": { "pipelineClass": "Flux3ModularPipeline", "values": { "model_type": "Flux3ModularPipeline" } }, + "blockName": null, + "decomposition": "bundle", + "nodeKey": "modules.ModularDiffusers.Guider", + "nodeType": "guidance", + "operationId": "diffusion.guidance", + "pipelineClass": "Flux3ModularPipeline", + "ports": [ + { + "direction": "input", + "hidden": true, + "name": "model_type", + "required": false, + "roles": ["value"], + "semanticName": "model_type", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": false, + "name": "guider", + "required": false, + "roles": ["value"], + "semanticName": "guider", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": false, + "name": "guidance_scale", + "required": false, + "roles": ["value"], + "semanticName": "guidance_scale", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["float"] + }, + { + "direction": "input", + "hidden": false, + "name": "guidance_rescale", + "required": false, + "roles": ["value"], + "semanticName": "guidance_rescale", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["float"] + }, + { + "direction": "input", + "hidden": false, + "name": "use_original_formulation", + "required": false, + "roles": ["value"], + "semanticName": "use_original_formulation", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["boolean"] + }, + { + "direction": "input", + "hidden": false, + "name": "enabled", + "required": false, + "roles": ["value"], + "semanticName": "enabled", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["boolean"] + }, + { + "direction": "input", + "hidden": false, + "name": "start", + "required": false, + "roles": ["value"], + "semanticName": "start", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["float"] + }, + { + "direction": "input", + "hidden": false, + "name": "stop", + "required": false, + "roles": ["value"], + "semanticName": "stop", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["float"] + }, + { + "direction": "output", + "hidden": false, + "name": "guider_out", + "required": false, + "roles": ["component"], + "semanticName": "guider_out", + "semantics": { + "kind": "component", + "members": [], + "owner": "same_loader", + "scope": "Flux3ModularPipeline", + "state": null + }, + "types": ["custom_guider"] + }, + { + "direction": "input", + "hidden": false, + "name": "layers_config", + "required": false, + "roles": ["value"], + "semanticName": "layers_config", + "semantics": { + "kind": "opaque", + "members": [], + "owner": "none", + "scope": "Flux3ModularPipeline", + "state": null + }, + "types": ["layers_config"] + } + ], + "support": "declared", + "task": "text_to_image", + "workflowId": "text2image" + }, + { + "binding": { "pipelineClass": "Flux3ModularPipeline", "values": { "model_type": "Flux3ModularPipeline" } }, + "blockName": null, + "decomposition": "loader", + "nodeKey": "modules.ModularDiffusers.ModelsLoader", + "nodeType": "loader", + "operationId": "diffusion.load_models", + "pipelineClass": "Flux3ModularPipeline", + "ports": [ + { + "direction": "input", + "hidden": false, + "name": "model_type", + "required": false, + "roles": ["value"], + "semanticName": "model_type", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": false, + "name": "repo_id", + "required": false, + "roles": ["value"], + "semanticName": "repo_id", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": true, + "name": "reviewed_variant", + "required": false, + "roles": ["value"], + "semanticName": "reviewed_variant", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": false, + "name": "device", + "required": false, + "roles": ["value"], + "semanticName": "device", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": false, + "name": "attention_backend", + "required": false, + "roles": ["value"], + "semanticName": "attention_backend", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": true, + "name": "vae_slicing", + "required": false, + "roles": ["value"], + "semanticName": "vae_slicing", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["boolean"] + }, + { + "direction": "input", + "hidden": true, + "name": "vae_tiling", + "required": false, + "roles": ["value"], + "semanticName": "vae_tiling", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["boolean"] + }, + { + "direction": "input", + "hidden": true, + "name": "inpaint_compatibility", + "required": false, + "roles": ["value"], + "semanticName": "inpaint_compatibility", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": false, + "name": "trust_remote_code", + "required": false, + "roles": ["value"], + "semanticName": "trust_remote_code", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["boolean"] + }, + { + "direction": "input", + "hidden": false, + "name": "revision", + "required": false, + "roles": ["value"], + "semanticName": "revision", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": true, + "name": "workflow_id", + "required": false, + "roles": ["value"], + "semanticName": "workflow_id", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": true, + "name": "modiff_pipeline_identity", + "required": false, + "roles": ["value"], + "semanticName": "modiff_pipeline_identity", + "semantics": { + "kind": "opaque", + "members": [], + "owner": "none", + "scope": "Flux3ModularPipeline", + "state": null + }, + "types": ["object"] + }, + { + "direction": "input", + "hidden": false, + "name": "auto_offload", + "required": false, + "roles": ["value"], + "semanticName": "auto_offload", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["boolean"] + }, + { + "direction": "input", + "hidden": false, + "name": "offload_mode", + "required": false, + "roles": ["value"], + "semanticName": "offload_mode", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": false, + "name": "weight_loading_mode", + "required": false, + "roles": ["value"], + "semanticName": "weight_loading_mode", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": true, + "name": "weight_format", + "required": false, + "roles": ["value"], + "semanticName": "weight_format", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": false, + "name": "unet", + "required": false, + "roles": ["component"], + "semanticName": "unet", + "semantics": { + "kind": "component", + "members": [ + { + "name": "transformer", + "type": "diffusers.models.transformers.transformer_flux3.Flux3Transformer2DModel" + } + ], + "owner": "same_loader", + "scope": "Flux3ModularPipeline", + "state": null + }, + "types": ["diffusers_auto_model"] + }, + { + "direction": "input", + "hidden": false, + "name": "vae", + "required": false, + "roles": ["component"], + "semanticName": "vae", + "semantics": { + "kind": "component", + "members": [ + { "name": "vae", "type": "diffusers.models.autoencoders.autoencoder_kl_flux2.AutoencoderKLFlux2" } + ], + "owner": "same_loader", + "scope": "Flux3ModularPipeline", + "state": null + }, + "types": ["diffusers_auto_model"] + }, + { + "direction": "input", + "hidden": true, + "name": "controlnet", + "required": false, + "roles": ["component"], + "semanticName": "controlnet", + "semantics": { + "kind": "component", + "members": [], + "owner": "same_loader", + "scope": "Flux3ModularPipeline", + "state": null + }, + "types": ["diffusers_auto_model"] + }, + { + "direction": "input", + "hidden": false, + "name": "lora_list", + "required": false, + "roles": ["value"], + "semanticName": "lora_list", + "semantics": { + "kind": "opaque", + "members": [], + "owner": "none", + "scope": "Flux3ModularPipeline", + "state": null + }, + "types": ["custom_lora"] + }, + { + "direction": "output", + "hidden": false, + "name": "text_encoders", + "required": false, + "roles": ["component"], + "semanticName": "text_encoders", + "semantics": { + "kind": "component", + "members": [ + { + "name": "text_encoder", + "type": "transformers.models.qwen3_vl.modeling_qwen3_vl.Qwen3VLForConditionalGeneration" + }, + { "name": "tokenizer", "type": "transformers.models.auto.processing_auto.AutoProcessor" } + ], + "owner": "same_loader", + "scope": "Flux3ModularPipeline", + "state": null + }, + "types": ["diffusers_auto_models"] + }, + { + "direction": "output", + "hidden": false, + "name": "unet_out", + "required": false, + "roles": ["component"], + "semanticName": "unet_out", + "semantics": { + "kind": "component", + "members": [ + { + "name": "transformer", + "type": "diffusers.models.transformers.transformer_flux3.Flux3Transformer2DModel" + } + ], + "owner": "same_loader", + "scope": "Flux3ModularPipeline", + "state": null + }, + "types": ["diffusers_auto_model"] + }, + { + "direction": "output", + "hidden": false, + "name": "vae_out", + "required": false, + "roles": ["component"], + "semanticName": "vae_out", + "semantics": { + "kind": "component", + "members": [ + { "name": "vae", "type": "diffusers.models.autoencoders.autoencoder_kl_flux2.AutoencoderKLFlux2" } + ], + "owner": "same_loader", + "scope": "Flux3ModularPipeline", + "state": null + }, + "types": ["diffusers_auto_model"] + }, + { + "direction": "output", + "hidden": false, + "name": "scheduler", + "required": false, + "roles": ["component"], + "semanticName": "scheduler", + "semantics": { + "kind": "component", + "members": [ + { + "name": "scheduler", + "type": "diffusers.schedulers.scheduling_flow_match_euler_discrete.FlowMatchEulerDiscreteScheduler" + } + ], + "owner": "same_loader", + "scope": "Flux3ModularPipeline", + "state": null + }, + "types": ["diffusers_auto_model"] + }, + { + "direction": "output", + "hidden": true, + "name": "image_encoder", + "required": false, + "roles": ["component"], + "semanticName": "image_encoder", + "semantics": { + "kind": "component", + "members": [], + "owner": "same_loader", + "scope": "Flux3ModularPipeline", + "state": null + }, + "types": ["diffusers_auto_model"] + }, + { + "direction": "output", + "hidden": false, + "name": "pipeline_components", + "required": false, + "roles": ["component"], + "semanticName": "pipeline_components", + "semantics": { + "kind": "component", + "members": [ + { "name": "guider", "type": "diffusers.guiders.classifier_free_guidance.ClassifierFreeGuidance" }, + { + "name": "image_processor", + "type": "diffusers.modular_pipelines.flux3.image_processor.Flux3ImageProcessor" + }, + { + "name": "scheduler", + "type": "diffusers.schedulers.scheduling_flow_match_euler_discrete.FlowMatchEulerDiscreteScheduler" + }, + { + "name": "text_encoder", + "type": "transformers.models.qwen3_vl.modeling_qwen3_vl.Qwen3VLForConditionalGeneration" + }, + { "name": "tokenizer", "type": "transformers.models.auto.processing_auto.AutoProcessor" }, + { + "name": "transformer", + "type": "diffusers.models.transformers.transformer_flux3.Flux3Transformer2DModel" + }, + { "name": "vae", "type": "diffusers.models.autoencoders.autoencoder_kl_flux2.AutoencoderKLFlux2" } + ], + "owner": "same_loader", + "scope": "Flux3ModularPipeline", + "state": null + }, + "types": ["diffusers_modular_pipeline_components"] + }, + { + "direction": "input", + "hidden": false, + "name": "quant_config", + "required": false, + "roles": ["value"], + "semanticName": "quant_config", + "semantics": { + "kind": "opaque", + "members": [], + "owner": "none", + "scope": "Flux3ModularPipeline", + "state": null + }, + "types": ["quant_config"] + } + ], + "support": "declared", + "task": "text_to_image", + "workflowId": "text2image" + } + ], + "pipelineSupport": [ + { + "coverage": "research-blocked", + "equivalentTo": [], + "pipelineClass": "Flux3DistilledModularPipeline", + "reason": "Only unpublished source-level execution specifications select this class; installed-runtime admission remains pending.", + "tasks": [ + { + "decomposition": "stages", + "dependencies": "blocked", + "execution": "adapter", + "executionProfileIds": ["flux3-klein:official-provider:v1"], + "operationIds": [ + "diffusion.decode_latents", + "diffusion.denoise", + "diffusion.encode_image", + "diffusion.encode_prompt", + "diffusion.load_models" + ], + "runtimeRequirements": [ + { + "delivery": "optional_overlay", + "executionProfileIds": ["flux3-klein:official-provider:v1"], + "profileIds": ["huggingface-diffusers-flux3-7ecb1e1"], + "reason": "optional_runtime_present_unqualified", + "requiredNow": true, + "schemaVersion": 1, + "state": "present_unqualified" + } + ], + "task": "edit_image" + }, + { + "decomposition": "stages", + "dependencies": "blocked", + "execution": "adapter", + "executionProfileIds": ["flux3-klein:official-provider:v1"], + "operationIds": [ + "diffusion.decode_latents", + "diffusion.denoise", + "diffusion.encode_prompt", + "diffusion.load_models" + ], + "runtimeRequirements": [ + { + "delivery": "optional_overlay", + "executionProfileIds": ["flux3-klein:official-provider:v1"], + "profileIds": ["huggingface-diffusers-flux3-7ecb1e1"], + "reason": "optional_runtime_present_unqualified", + "requiredNow": true, + "schemaVersion": 1, + "state": "present_unqualified" + } + ], + "task": "text_to_image" + } + ], + "upstreamTasks": [ + { "source": "modular", "task": "text_to_image", "workflowId": "text2image" }, + { "source": "modular", "task": "edit_image", "workflowId": "image_conditioned" } + ] + }, + { + "coverage": "research-blocked", + "equivalentTo": [], + "pipelineClass": "Flux3ModularPipeline", + "reason": "Only unpublished source-level execution specifications select this class; installed-runtime admission remains pending.", + "tasks": [ + { + "decomposition": "stages", + "dependencies": "blocked", + "execution": "adapter", + "executionProfileIds": ["flux3-klein-base:official-provider:v1"], + "operationIds": [ + "diffusion.decode_latents", + "diffusion.denoise", + "diffusion.encode_image", + "diffusion.encode_prompt", + "diffusion.guidance", + "diffusion.load_models" + ], + "runtimeRequirements": [ + { + "delivery": "optional_overlay", + "executionProfileIds": ["flux3-klein-base:official-provider:v1"], + "profileIds": ["huggingface-diffusers-flux3-7ecb1e1"], + "reason": "optional_runtime_present_unqualified", + "requiredNow": true, + "schemaVersion": 1, + "state": "present_unqualified" + } + ], + "task": "edit_image" + }, + { + "decomposition": "stages", + "dependencies": "blocked", + "execution": "adapter", + "executionProfileIds": ["flux3-klein-base:official-provider:v1"], + "operationIds": [ + "diffusion.decode_latents", + "diffusion.denoise", + "diffusion.encode_prompt", + "diffusion.guidance", + "diffusion.load_models" + ], + "runtimeRequirements": [ + { + "delivery": "optional_overlay", + "executionProfileIds": ["flux3-klein-base:official-provider:v1"], + "profileIds": ["huggingface-diffusers-flux3-7ecb1e1"], + "reason": "optional_runtime_present_unqualified", + "requiredNow": true, + "schemaVersion": 1, + "state": "present_unqualified" + } + ], + "task": "text_to_image" + } + ], + "upstreamTasks": [ + { "source": "modular", "task": "text_to_image", "workflowId": "text2image" }, + { "source": "modular", "task": "edit_image", "workflowId": "image_conditioned" } + ] + } + ], + "pipelineSupportSchemaVersion": 1, + "schemaVersion": 2 + }, + "fixtureControls": { + "allowedRegistryPrimitiveModules": { + "torch.nn.modules.activation.GELU": 1, + "torch.nn.modules.pooling.AdaptiveMaxPool2d": 1, + "torch.nn.modules.pooling.AdaptiveMaxPool3d": 1, + "transformers.activations.FastGELUActivation": 1, + "transformers.activations.GELUActivation": 2, + "transformers.activations.GELUTanh": 1, + "transformers.activations.LinearActivation": 1, + "transformers.activations.MishActivation": 1, + "transformers.activations.NewGELUActivation": 1, + "transformers.activations.QuickGELUActivation": 1, + "transformers.activations.SiLUActivation": 1 + }, + "broaderModelFactories": "not exhaustively instrumented; weight-file/network/process fences retained", + "deviceOptions": "CPU-only controlled projection", + "optimizationCatalog": "empty controlled projection", + "pretrainedModelNodeServerConstructorsTrapped": true, + "privateConfig": true, + "privateManagedRoot": true, + "serverDefinitionProjection": "only exact terminal server singleton assignment omitted" + }, + "optionalRuntimeCatalog": { + "activeInstallJob": null, + "overlay": { + "environmentScan": { "limit": 32, "observed": 0, "returned": 0, "scanLimit": 4096, "truncated": false }, + "environments": [], + "processLoadStatus": "base", + "state": { "activeEnvironmentId": null, "activeStatus": "missing", "previousEnvironmentId": null } + }, + "profiles": [ + { + "activationAvailable": false, + "artifactLocks": [ + { + "byteSize": 775777, + "distribution": "peft", + "filename": "peft-0.20.0-py3-none-any.whl", + "machine": "x86_64", + "platform": "linux", + "pythonTag": "cp312", + "sha256": "0fbba16ffebfad3de96e06f2da6860fd860292324b85b6141909fa1e26ea9233", + "url": "https://files.pythonhosted.org/packages/28/79/13bcabb8048126422d5c4b880575d40886c726f354db88cfeed4325525bb/peft-0.20.0-py3-none-any.whl", + "version": "0.20.0" + }, + { + "byteSize": 122874, + "distribution": "typer", + "filename": "typer-0.27.1-py3-none-any.whl", + "machine": "x86_64", + "platform": "linux", + "pythonTag": "cp312", + "sha256": "53150287edd11baeb4e4722c8e394fcdf8181c0ae89485cba8d25c778d5edd56", + "url": "https://files.pythonhosted.org/packages/43/89/9518bc0c3929bee36b3a4a8e3daddd6e03f92f9961c66d4983b837160543/typer-0.27.1-py3-none-any.whl", + "version": "0.27.1" + }, + { + "byteSize": 5302, + "distribution": "annotated-doc", + "filename": "annotated_doc-0.0.5-py3-none-any.whl", + "machine": "x86_64", + "platform": "linux", + "pythonTag": "cp312", + "sha256": "117bac03a25ede5df5440e855b32d556049ca169ead221505badf432fed4b101", + "url": "https://files.pythonhosted.org/packages/3e/30/e900b21425a860e195f32e37657aa1f7c7f2b1bfb26f03ca209b90933c06/annotated_doc-0.0.5-py3-none-any.whl", + "version": "0.0.5" + }, + { + "byteSize": 310654, + "distribution": "rich", + "filename": "rich-15.0.0-py3-none-any.whl", + "machine": "x86_64", + "platform": "linux", + "pythonTag": "cp312", + "sha256": "33bd4ef74232fb73fe9279a257718407f169c09b78a87ad3d296f548e27de0bb", + "url": "https://files.pythonhosted.org/packages/82/3b/64d4899d73f91ba49a8c18a8ff3f0ea8f1c1d75481760df8c68ef5235bf5/rich-15.0.0-py3-none-any.whl", + "version": "15.0.0" + }, + { + "byteSize": 91687, + "distribution": "markdown-it-py", + "filename": "markdown_it_py-4.2.0-py3-none-any.whl", + "machine": "x86_64", + "platform": "linux", + "pythonTag": "cp312", + "sha256": "9f7ebbcd14fe59494226453aed97c1070d83f8d24b6fc3a3bcf9a38092641c4a", + "url": "https://files.pythonhosted.org/packages/b3/81/4da04ced5a082363ecfa159c010d200ecbd959ae410c10c0264a38cac0f5/markdown_it_py-4.2.0-py3-none-any.whl", + "version": "4.2.0" + }, + { + "byteSize": 9979, + "distribution": "mdurl", + "filename": "mdurl-0.1.2-py3-none-any.whl", + "machine": "x86_64", + "platform": "linux", + "pythonTag": "cp312", + "sha256": "84008a41e51615a49fc9966191ff91509e3c40b939176e643fd50a5c2196b8f8", + "url": "https://files.pythonhosted.org/packages/b3/38/89ba8ad64ae25be8de66a6d463314cf1eb366222074cfda9ee839c56a4b4/mdurl-0.1.2-py3-none-any.whl", + "version": "0.1.2" + }, + { + "byteSize": 1231151, + "distribution": "pygments", + "filename": "pygments-2.20.0-py3-none-any.whl", + "machine": "x86_64", + "platform": "linux", + "pythonTag": "cp312", + "sha256": "81a9e26dd42fd28a23a2d169d86d7ac03b46e2f8b59ed4698fb4785f946d0176", + "url": "https://files.pythonhosted.org/packages/f4/7e/a72dd26f3b0f4f2bf1dd8923c85f7ceb43172af56d63c7383eb62b332364/pygments-2.20.0-py3-none-any.whl", + "version": "2.20.0" + }, + { + "byteSize": 9755, + "distribution": "shellingham", + "filename": "shellingham-1.5.4-py2.py3-none-any.whl", + "machine": "x86_64", + "platform": "linux", + "pythonTag": "cp312", + "sha256": "7ecfff8f2fd72616f7481040475a65b2bf8af90a56c89140852d1120324e8686", + "url": "https://files.pythonhosted.org/packages/e0/f9/0595336914c5619e5f28a1fb793285925a8cd4b432c9da0a987836c7f822/shellingham-1.5.4-py2.py3-none-any.whl", + "version": "1.5.4" + }, + { + "byteSize": 775777, + "distribution": "peft", + "filename": "peft-0.20.0-py3-none-any.whl", + "machine": "arm64", + "platform": "linux", + "pythonTag": "cp312", + "sha256": "0fbba16ffebfad3de96e06f2da6860fd860292324b85b6141909fa1e26ea9233", + "url": "https://files.pythonhosted.org/packages/28/79/13bcabb8048126422d5c4b880575d40886c726f354db88cfeed4325525bb/peft-0.20.0-py3-none-any.whl", + "version": "0.20.0" + }, + { + "byteSize": 122874, + "distribution": "typer", + "filename": "typer-0.27.1-py3-none-any.whl", + "machine": "arm64", + "platform": "linux", + "pythonTag": "cp312", + "sha256": "53150287edd11baeb4e4722c8e394fcdf8181c0ae89485cba8d25c778d5edd56", + "url": "https://files.pythonhosted.org/packages/43/89/9518bc0c3929bee36b3a4a8e3daddd6e03f92f9961c66d4983b837160543/typer-0.27.1-py3-none-any.whl", + "version": "0.27.1" + }, + { + "byteSize": 5302, + "distribution": "annotated-doc", + "filename": "annotated_doc-0.0.5-py3-none-any.whl", + "machine": "arm64", + "platform": "linux", + "pythonTag": "cp312", + "sha256": "117bac03a25ede5df5440e855b32d556049ca169ead221505badf432fed4b101", + "url": "https://files.pythonhosted.org/packages/3e/30/e900b21425a860e195f32e37657aa1f7c7f2b1bfb26f03ca209b90933c06/annotated_doc-0.0.5-py3-none-any.whl", + "version": "0.0.5" + }, + { + "byteSize": 310654, + "distribution": "rich", + "filename": "rich-15.0.0-py3-none-any.whl", + "machine": "arm64", + "platform": "linux", + "pythonTag": "cp312", + "sha256": "33bd4ef74232fb73fe9279a257718407f169c09b78a87ad3d296f548e27de0bb", + "url": "https://files.pythonhosted.org/packages/82/3b/64d4899d73f91ba49a8c18a8ff3f0ea8f1c1d75481760df8c68ef5235bf5/rich-15.0.0-py3-none-any.whl", + "version": "15.0.0" + }, + { + "byteSize": 91687, + "distribution": "markdown-it-py", + "filename": "markdown_it_py-4.2.0-py3-none-any.whl", + "machine": "arm64", + "platform": "linux", + "pythonTag": "cp312", + "sha256": "9f7ebbcd14fe59494226453aed97c1070d83f8d24b6fc3a3bcf9a38092641c4a", + "url": "https://files.pythonhosted.org/packages/b3/81/4da04ced5a082363ecfa159c010d200ecbd959ae410c10c0264a38cac0f5/markdown_it_py-4.2.0-py3-none-any.whl", + "version": "4.2.0" + }, + { + "byteSize": 9979, + "distribution": "mdurl", + "filename": "mdurl-0.1.2-py3-none-any.whl", + "machine": "arm64", + "platform": "linux", + "pythonTag": "cp312", + "sha256": "84008a41e51615a49fc9966191ff91509e3c40b939176e643fd50a5c2196b8f8", + "url": "https://files.pythonhosted.org/packages/b3/38/89ba8ad64ae25be8de66a6d463314cf1eb366222074cfda9ee839c56a4b4/mdurl-0.1.2-py3-none-any.whl", + "version": "0.1.2" + }, + { + "byteSize": 1231151, + "distribution": "pygments", + "filename": "pygments-2.20.0-py3-none-any.whl", + "machine": "arm64", + "platform": "linux", + "pythonTag": "cp312", + "sha256": "81a9e26dd42fd28a23a2d169d86d7ac03b46e2f8b59ed4698fb4785f946d0176", + "url": "https://files.pythonhosted.org/packages/f4/7e/a72dd26f3b0f4f2bf1dd8923c85f7ceb43172af56d63c7383eb62b332364/pygments-2.20.0-py3-none-any.whl", + "version": "2.20.0" + }, + { + "byteSize": 9755, + "distribution": "shellingham", + "filename": "shellingham-1.5.4-py2.py3-none-any.whl", + "machine": "arm64", + "platform": "linux", + "pythonTag": "cp312", + "sha256": "7ecfff8f2fd72616f7481040475a65b2bf8af90a56c89140852d1120324e8686", + "url": "https://files.pythonhosted.org/packages/e0/f9/0595336914c5619e5f28a1fb793285925a8cd4b432c9da0a987836c7f822/shellingham-1.5.4-py2.py3-none-any.whl", + "version": "1.5.4" + }, + { + "byteSize": 775777, + "distribution": "peft", + "filename": "peft-0.20.0-py3-none-any.whl", + "machine": "x86_64", + "platform": "macos", + "pythonTag": "cp312", + "sha256": "0fbba16ffebfad3de96e06f2da6860fd860292324b85b6141909fa1e26ea9233", + "url": "https://files.pythonhosted.org/packages/28/79/13bcabb8048126422d5c4b880575d40886c726f354db88cfeed4325525bb/peft-0.20.0-py3-none-any.whl", + "version": "0.20.0" + }, + { + "byteSize": 122874, + "distribution": "typer", + "filename": "typer-0.27.1-py3-none-any.whl", + "machine": "x86_64", + "platform": "macos", + "pythonTag": "cp312", + "sha256": "53150287edd11baeb4e4722c8e394fcdf8181c0ae89485cba8d25c778d5edd56", + "url": "https://files.pythonhosted.org/packages/43/89/9518bc0c3929bee36b3a4a8e3daddd6e03f92f9961c66d4983b837160543/typer-0.27.1-py3-none-any.whl", + "version": "0.27.1" + }, + { + "byteSize": 5302, + "distribution": "annotated-doc", + "filename": "annotated_doc-0.0.5-py3-none-any.whl", + "machine": "x86_64", + "platform": "macos", + "pythonTag": "cp312", + "sha256": "117bac03a25ede5df5440e855b32d556049ca169ead221505badf432fed4b101", + "url": "https://files.pythonhosted.org/packages/3e/30/e900b21425a860e195f32e37657aa1f7c7f2b1bfb26f03ca209b90933c06/annotated_doc-0.0.5-py3-none-any.whl", + "version": "0.0.5" + }, + { + "byteSize": 310654, + "distribution": "rich", + "filename": "rich-15.0.0-py3-none-any.whl", + "machine": "x86_64", + "platform": "macos", + "pythonTag": "cp312", + "sha256": "33bd4ef74232fb73fe9279a257718407f169c09b78a87ad3d296f548e27de0bb", + "url": "https://files.pythonhosted.org/packages/82/3b/64d4899d73f91ba49a8c18a8ff3f0ea8f1c1d75481760df8c68ef5235bf5/rich-15.0.0-py3-none-any.whl", + "version": "15.0.0" + }, + { + "byteSize": 91687, + "distribution": "markdown-it-py", + "filename": "markdown_it_py-4.2.0-py3-none-any.whl", + "machine": "x86_64", + "platform": "macos", + "pythonTag": "cp312", + "sha256": "9f7ebbcd14fe59494226453aed97c1070d83f8d24b6fc3a3bcf9a38092641c4a", + "url": "https://files.pythonhosted.org/packages/b3/81/4da04ced5a082363ecfa159c010d200ecbd959ae410c10c0264a38cac0f5/markdown_it_py-4.2.0-py3-none-any.whl", + "version": "4.2.0" + }, + { + "byteSize": 9979, + "distribution": "mdurl", + "filename": "mdurl-0.1.2-py3-none-any.whl", + "machine": "x86_64", + "platform": "macos", + "pythonTag": "cp312", + "sha256": "84008a41e51615a49fc9966191ff91509e3c40b939176e643fd50a5c2196b8f8", + "url": "https://files.pythonhosted.org/packages/b3/38/89ba8ad64ae25be8de66a6d463314cf1eb366222074cfda9ee839c56a4b4/mdurl-0.1.2-py3-none-any.whl", + "version": "0.1.2" + }, + { + "byteSize": 1231151, + "distribution": "pygments", + "filename": "pygments-2.20.0-py3-none-any.whl", + "machine": "x86_64", + "platform": "macos", + "pythonTag": "cp312", + "sha256": "81a9e26dd42fd28a23a2d169d86d7ac03b46e2f8b59ed4698fb4785f946d0176", + "url": "https://files.pythonhosted.org/packages/f4/7e/a72dd26f3b0f4f2bf1dd8923c85f7ceb43172af56d63c7383eb62b332364/pygments-2.20.0-py3-none-any.whl", + "version": "2.20.0" + }, + { + "byteSize": 9755, + "distribution": "shellingham", + "filename": "shellingham-1.5.4-py2.py3-none-any.whl", + "machine": "x86_64", + "platform": "macos", + "pythonTag": "cp312", + "sha256": "7ecfff8f2fd72616f7481040475a65b2bf8af90a56c89140852d1120324e8686", + "url": "https://files.pythonhosted.org/packages/e0/f9/0595336914c5619e5f28a1fb793285925a8cd4b432c9da0a987836c7f822/shellingham-1.5.4-py2.py3-none-any.whl", + "version": "1.5.4" + }, + { + "byteSize": 775777, + "distribution": "peft", + "filename": "peft-0.20.0-py3-none-any.whl", + "machine": "arm64", + "platform": "macos", + "pythonTag": "cp312", + "sha256": "0fbba16ffebfad3de96e06f2da6860fd860292324b85b6141909fa1e26ea9233", + "url": "https://files.pythonhosted.org/packages/28/79/13bcabb8048126422d5c4b880575d40886c726f354db88cfeed4325525bb/peft-0.20.0-py3-none-any.whl", + "version": "0.20.0" + }, + { + "byteSize": 122874, + "distribution": "typer", + "filename": "typer-0.27.1-py3-none-any.whl", + "machine": "arm64", + "platform": "macos", + "pythonTag": "cp312", + "sha256": "53150287edd11baeb4e4722c8e394fcdf8181c0ae89485cba8d25c778d5edd56", + "url": "https://files.pythonhosted.org/packages/43/89/9518bc0c3929bee36b3a4a8e3daddd6e03f92f9961c66d4983b837160543/typer-0.27.1-py3-none-any.whl", + "version": "0.27.1" + }, + { + "byteSize": 5302, + "distribution": "annotated-doc", + "filename": "annotated_doc-0.0.5-py3-none-any.whl", + "machine": "arm64", + "platform": "macos", + "pythonTag": "cp312", + "sha256": "117bac03a25ede5df5440e855b32d556049ca169ead221505badf432fed4b101", + "url": "https://files.pythonhosted.org/packages/3e/30/e900b21425a860e195f32e37657aa1f7c7f2b1bfb26f03ca209b90933c06/annotated_doc-0.0.5-py3-none-any.whl", + "version": "0.0.5" + }, + { + "byteSize": 310654, + "distribution": "rich", + "filename": "rich-15.0.0-py3-none-any.whl", + "machine": "arm64", + "platform": "macos", + "pythonTag": "cp312", + "sha256": "33bd4ef74232fb73fe9279a257718407f169c09b78a87ad3d296f548e27de0bb", + "url": "https://files.pythonhosted.org/packages/82/3b/64d4899d73f91ba49a8c18a8ff3f0ea8f1c1d75481760df8c68ef5235bf5/rich-15.0.0-py3-none-any.whl", + "version": "15.0.0" + }, + { + "byteSize": 91687, + "distribution": "markdown-it-py", + "filename": "markdown_it_py-4.2.0-py3-none-any.whl", + "machine": "arm64", + "platform": "macos", + "pythonTag": "cp312", + "sha256": "9f7ebbcd14fe59494226453aed97c1070d83f8d24b6fc3a3bcf9a38092641c4a", + "url": "https://files.pythonhosted.org/packages/b3/81/4da04ced5a082363ecfa159c010d200ecbd959ae410c10c0264a38cac0f5/markdown_it_py-4.2.0-py3-none-any.whl", + "version": "4.2.0" + }, + { + "byteSize": 9979, + "distribution": "mdurl", + "filename": "mdurl-0.1.2-py3-none-any.whl", + "machine": "arm64", + "platform": "macos", + "pythonTag": "cp312", + "sha256": "84008a41e51615a49fc9966191ff91509e3c40b939176e643fd50a5c2196b8f8", + "url": "https://files.pythonhosted.org/packages/b3/38/89ba8ad64ae25be8de66a6d463314cf1eb366222074cfda9ee839c56a4b4/mdurl-0.1.2-py3-none-any.whl", + "version": "0.1.2" + }, + { + "byteSize": 1231151, + "distribution": "pygments", + "filename": "pygments-2.20.0-py3-none-any.whl", + "machine": "arm64", + "platform": "macos", + "pythonTag": "cp312", + "sha256": "81a9e26dd42fd28a23a2d169d86d7ac03b46e2f8b59ed4698fb4785f946d0176", + "url": "https://files.pythonhosted.org/packages/f4/7e/a72dd26f3b0f4f2bf1dd8923c85f7ceb43172af56d63c7383eb62b332364/pygments-2.20.0-py3-none-any.whl", + "version": "2.20.0" + }, + { + "byteSize": 9755, + "distribution": "shellingham", + "filename": "shellingham-1.5.4-py2.py3-none-any.whl", + "machine": "arm64", + "platform": "macos", + "pythonTag": "cp312", + "sha256": "7ecfff8f2fd72616f7481040475a65b2bf8af90a56c89140852d1120324e8686", + "url": "https://files.pythonhosted.org/packages/e0/f9/0595336914c5619e5f28a1fb793285925a8cd4b432c9da0a987836c7f822/shellingham-1.5.4-py2.py3-none-any.whl", + "version": "1.5.4" + }, + { + "byteSize": 775777, + "distribution": "peft", + "filename": "peft-0.20.0-py3-none-any.whl", + "machine": "x86_64", + "platform": "windows", + "pythonTag": "cp312", + "sha256": "0fbba16ffebfad3de96e06f2da6860fd860292324b85b6141909fa1e26ea9233", + "url": "https://files.pythonhosted.org/packages/28/79/13bcabb8048126422d5c4b880575d40886c726f354db88cfeed4325525bb/peft-0.20.0-py3-none-any.whl", + "version": "0.20.0" + }, + { + "byteSize": 122874, + "distribution": "typer", + "filename": "typer-0.27.1-py3-none-any.whl", + "machine": "x86_64", + "platform": "windows", + "pythonTag": "cp312", + "sha256": "53150287edd11baeb4e4722c8e394fcdf8181c0ae89485cba8d25c778d5edd56", + "url": "https://files.pythonhosted.org/packages/43/89/9518bc0c3929bee36b3a4a8e3daddd6e03f92f9961c66d4983b837160543/typer-0.27.1-py3-none-any.whl", + "version": "0.27.1" + }, + { + "byteSize": 5302, + "distribution": "annotated-doc", + "filename": "annotated_doc-0.0.5-py3-none-any.whl", + "machine": "x86_64", + "platform": "windows", + "pythonTag": "cp312", + "sha256": "117bac03a25ede5df5440e855b32d556049ca169ead221505badf432fed4b101", + "url": "https://files.pythonhosted.org/packages/3e/30/e900b21425a860e195f32e37657aa1f7c7f2b1bfb26f03ca209b90933c06/annotated_doc-0.0.5-py3-none-any.whl", + "version": "0.0.5" + }, + { + "byteSize": 310654, + "distribution": "rich", + "filename": "rich-15.0.0-py3-none-any.whl", + "machine": "x86_64", + "platform": "windows", + "pythonTag": "cp312", + "sha256": "33bd4ef74232fb73fe9279a257718407f169c09b78a87ad3d296f548e27de0bb", + "url": "https://files.pythonhosted.org/packages/82/3b/64d4899d73f91ba49a8c18a8ff3f0ea8f1c1d75481760df8c68ef5235bf5/rich-15.0.0-py3-none-any.whl", + "version": "15.0.0" + }, + { + "byteSize": 91687, + "distribution": "markdown-it-py", + "filename": "markdown_it_py-4.2.0-py3-none-any.whl", + "machine": "x86_64", + "platform": "windows", + "pythonTag": "cp312", + "sha256": "9f7ebbcd14fe59494226453aed97c1070d83f8d24b6fc3a3bcf9a38092641c4a", + "url": "https://files.pythonhosted.org/packages/b3/81/4da04ced5a082363ecfa159c010d200ecbd959ae410c10c0264a38cac0f5/markdown_it_py-4.2.0-py3-none-any.whl", + "version": "4.2.0" + }, + { + "byteSize": 9979, + "distribution": "mdurl", + "filename": "mdurl-0.1.2-py3-none-any.whl", + "machine": "x86_64", + "platform": "windows", + "pythonTag": "cp312", + "sha256": "84008a41e51615a49fc9966191ff91509e3c40b939176e643fd50a5c2196b8f8", + "url": "https://files.pythonhosted.org/packages/b3/38/89ba8ad64ae25be8de66a6d463314cf1eb366222074cfda9ee839c56a4b4/mdurl-0.1.2-py3-none-any.whl", + "version": "0.1.2" + }, + { + "byteSize": 1231151, + "distribution": "pygments", + "filename": "pygments-2.20.0-py3-none-any.whl", + "machine": "x86_64", + "platform": "windows", + "pythonTag": "cp312", + "sha256": "81a9e26dd42fd28a23a2d169d86d7ac03b46e2f8b59ed4698fb4785f946d0176", + "url": "https://files.pythonhosted.org/packages/f4/7e/a72dd26f3b0f4f2bf1dd8923c85f7ceb43172af56d63c7383eb62b332364/pygments-2.20.0-py3-none-any.whl", + "version": "2.20.0" + }, + { + "byteSize": 9755, + "distribution": "shellingham", + "filename": "shellingham-1.5.4-py2.py3-none-any.whl", + "machine": "x86_64", + "platform": "windows", + "pythonTag": "cp312", + "sha256": "7ecfff8f2fd72616f7481040475a65b2bf8af90a56c89140852d1120324e8686", + "url": "https://files.pythonhosted.org/packages/e0/f9/0595336914c5619e5f28a1fb793285925a8cd4b432c9da0a987836c7f822/shellingham-1.5.4-py2.py3-none-any.whl", + "version": "1.5.4" + }, + { + "byteSize": 775777, + "distribution": "peft", + "filename": "peft-0.20.0-py3-none-any.whl", + "machine": "arm64", + "platform": "windows", + "pythonTag": "cp312", + "sha256": "0fbba16ffebfad3de96e06f2da6860fd860292324b85b6141909fa1e26ea9233", + "url": "https://files.pythonhosted.org/packages/28/79/13bcabb8048126422d5c4b880575d40886c726f354db88cfeed4325525bb/peft-0.20.0-py3-none-any.whl", + "version": "0.20.0" + }, + { + "byteSize": 122874, + "distribution": "typer", + "filename": "typer-0.27.1-py3-none-any.whl", + "machine": "arm64", + "platform": "windows", + "pythonTag": "cp312", + "sha256": "53150287edd11baeb4e4722c8e394fcdf8181c0ae89485cba8d25c778d5edd56", + "url": "https://files.pythonhosted.org/packages/43/89/9518bc0c3929bee36b3a4a8e3daddd6e03f92f9961c66d4983b837160543/typer-0.27.1-py3-none-any.whl", + "version": "0.27.1" + }, + { + "byteSize": 5302, + "distribution": "annotated-doc", + "filename": "annotated_doc-0.0.5-py3-none-any.whl", + "machine": "arm64", + "platform": "windows", + "pythonTag": "cp312", + "sha256": "117bac03a25ede5df5440e855b32d556049ca169ead221505badf432fed4b101", + "url": "https://files.pythonhosted.org/packages/3e/30/e900b21425a860e195f32e37657aa1f7c7f2b1bfb26f03ca209b90933c06/annotated_doc-0.0.5-py3-none-any.whl", + "version": "0.0.5" + }, + { + "byteSize": 310654, + "distribution": "rich", + "filename": "rich-15.0.0-py3-none-any.whl", + "machine": "arm64", + "platform": "windows", + "pythonTag": "cp312", + "sha256": "33bd4ef74232fb73fe9279a257718407f169c09b78a87ad3d296f548e27de0bb", + "url": "https://files.pythonhosted.org/packages/82/3b/64d4899d73f91ba49a8c18a8ff3f0ea8f1c1d75481760df8c68ef5235bf5/rich-15.0.0-py3-none-any.whl", + "version": "15.0.0" + }, + { + "byteSize": 91687, + "distribution": "markdown-it-py", + "filename": "markdown_it_py-4.2.0-py3-none-any.whl", + "machine": "arm64", + "platform": "windows", + "pythonTag": "cp312", + "sha256": "9f7ebbcd14fe59494226453aed97c1070d83f8d24b6fc3a3bcf9a38092641c4a", + "url": "https://files.pythonhosted.org/packages/b3/81/4da04ced5a082363ecfa159c010d200ecbd959ae410c10c0264a38cac0f5/markdown_it_py-4.2.0-py3-none-any.whl", + "version": "4.2.0" + }, + { + "byteSize": 9979, + "distribution": "mdurl", + "filename": "mdurl-0.1.2-py3-none-any.whl", + "machine": "arm64", + "platform": "windows", + "pythonTag": "cp312", + "sha256": "84008a41e51615a49fc9966191ff91509e3c40b939176e643fd50a5c2196b8f8", + "url": "https://files.pythonhosted.org/packages/b3/38/89ba8ad64ae25be8de66a6d463314cf1eb366222074cfda9ee839c56a4b4/mdurl-0.1.2-py3-none-any.whl", + "version": "0.1.2" + }, + { + "byteSize": 1231151, + "distribution": "pygments", + "filename": "pygments-2.20.0-py3-none-any.whl", + "machine": "arm64", + "platform": "windows", + "pythonTag": "cp312", + "sha256": "81a9e26dd42fd28a23a2d169d86d7ac03b46e2f8b59ed4698fb4785f946d0176", + "url": "https://files.pythonhosted.org/packages/f4/7e/a72dd26f3b0f4f2bf1dd8923c85f7ceb43172af56d63c7383eb62b332364/pygments-2.20.0-py3-none-any.whl", + "version": "2.20.0" + }, + { + "byteSize": 9755, + "distribution": "shellingham", + "filename": "shellingham-1.5.4-py2.py3-none-any.whl", + "machine": "arm64", + "platform": "windows", + "pythonTag": "cp312", + "sha256": "7ecfff8f2fd72616f7481040475a65b2bf8af90a56c89140852d1120324e8686", + "url": "https://files.pythonhosted.org/packages/e0/f9/0595336914c5619e5f28a1fb793285925a8cd4b432c9da0a987836c7f822/shellingham-1.5.4-py2.py3-none-any.whl", + "version": "1.5.4" + }, + { + "byteSize": 12295140, + "distribution": "transformers", + "filename": "transformers-5.17.0-py3-none-any.whl", + "machine": "x86_64", + "platform": "linux", + "pythonTag": "cp312", + "sha256": "78ec1ce21579b38dfb83950a0658cd119f87212a2fcfdff478096ce9d6c03801", + "url": "https://files.pythonhosted.org/packages/e8/d0/c502b60d684adbd98a8dc7d5bb866842772b816ac4354e4608be240041ae/transformers-5.17.0-py3-none-any.whl", + "version": "5.17.0" + }, + { + "byteSize": 3346235, + "distribution": "tokenizers", + "filename": "tokenizers-0.23.1-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", + "machine": "x86_64", + "platform": "linux", + "pythonTag": "cp312", + "sha256": "5075b405006415ea148a992d093699c66eb01952bf59f4d5727089a98bda45a4", + "url": "https://files.pythonhosted.org/packages/0d/d5/1353e5f677ec27c2494fb6a6725e82d56c985f53e90ec511369e7e4f02c6/tokenizers-0.23.1-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", + "version": "0.23.1" + }, + { + "byteSize": 12295140, + "distribution": "transformers", + "filename": "transformers-5.17.0-py3-none-any.whl", + "machine": "arm64", + "platform": "linux", + "pythonTag": "cp312", + "sha256": "78ec1ce21579b38dfb83950a0658cd119f87212a2fcfdff478096ce9d6c03801", + "url": "https://files.pythonhosted.org/packages/e8/d0/c502b60d684adbd98a8dc7d5bb866842772b816ac4354e4608be240041ae/transformers-5.17.0-py3-none-any.whl", + "version": "5.17.0" + }, + { + "byteSize": 3374081, + "distribution": "tokenizers", + "filename": "tokenizers-0.23.1-cp310-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", + "machine": "arm64", + "platform": "linux", + "pythonTag": "cp312", + "sha256": "1bf13402aff9bc533c89cb849ec3b412dc3fbeacc9744840e423d7bf3f7dc0e3", + "url": "https://files.pythonhosted.org/packages/6c/36/e006edf031154cba92b8416057d92c3abe3635e4c4b0aa0b5b9bb39dde70/tokenizers-0.23.1-cp310-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", + "version": "0.23.1" + }, + { + "byteSize": 12295140, + "distribution": "transformers", + "filename": "transformers-5.17.0-py3-none-any.whl", + "machine": "x86_64", + "platform": "macos", + "pythonTag": "cp312", + "sha256": "78ec1ce21579b38dfb83950a0658cd119f87212a2fcfdff478096ce9d6c03801", + "url": "https://files.pythonhosted.org/packages/e8/d0/c502b60d684adbd98a8dc7d5bb866842772b816ac4354e4608be240041ae/transformers-5.17.0-py3-none-any.whl", + "version": "5.17.0" + }, + { + "byteSize": 3146732, + "distribution": "tokenizers", + "filename": "tokenizers-0.23.1-cp310-abi3-macosx_10_12_x86_64.whl", + "machine": "x86_64", + "platform": "macos", + "pythonTag": "cp312", + "sha256": "e03d6ffcbe0d56ee9c1ccd070e70a13fa750727c0277e138152acbc0252c2224", + "url": "https://files.pythonhosted.org/packages/87/39/b87a87d5bb9470610b80a2d31df42fcffeaf35118b8b97952b2aff598cc7/tokenizers-0.23.1-cp310-abi3-macosx_10_12_x86_64.whl", + "version": "0.23.1" + }, + { + "byteSize": 12295140, + "distribution": "transformers", + "filename": "transformers-5.17.0-py3-none-any.whl", + "machine": "arm64", + "platform": "macos", + "pythonTag": "cp312", + "sha256": "78ec1ce21579b38dfb83950a0658cd119f87212a2fcfdff478096ce9d6c03801", + "url": "https://files.pythonhosted.org/packages/e8/d0/c502b60d684adbd98a8dc7d5bb866842772b816ac4354e4608be240041ae/transformers-5.17.0-py3-none-any.whl", + "version": "5.17.0" + }, + { + "byteSize": 3054954, + "distribution": "tokenizers", + "filename": "tokenizers-0.23.1-cp310-abi3-macosx_11_0_arm64.whl", + "machine": "arm64", + "platform": "macos", + "pythonTag": "cp312", + "sha256": "e0948bbb1ac1d7cdfc9fb6d62c596e3b7550036ad60ecd654a66ad273326324e", + "url": "https://files.pythonhosted.org/packages/e2/6a/068ed9f6e444c9d7e9d55ce134181325700f3d7f30410721bdc8f848d727/tokenizers-0.23.1-cp310-abi3-macosx_11_0_arm64.whl", + "version": "0.23.1" + }, + { + "byteSize": 12295140, + "distribution": "transformers", + "filename": "transformers-5.17.0-py3-none-any.whl", + "machine": "x86_64", + "platform": "windows", + "pythonTag": "cp312", + "sha256": "78ec1ce21579b38dfb83950a0658cd119f87212a2fcfdff478096ce9d6c03801", + "url": "https://files.pythonhosted.org/packages/e8/d0/c502b60d684adbd98a8dc7d5bb866842772b816ac4354e4608be240041ae/transformers-5.17.0-py3-none-any.whl", + "version": "5.17.0" + }, + { + "byteSize": 2798223, + "distribution": "tokenizers", + "filename": "tokenizers-0.23.1-cp310-abi3-win_amd64.whl", + "machine": "x86_64", + "platform": "windows", + "pythonTag": "cp312", + "sha256": "e7bfaf995c1bdbbd21d13539decb6650967013759318627d85daeb7881af16b7", + "url": "https://files.pythonhosted.org/packages/97/c9/2553f72aaf65a2797d4229e37fa7fbe38ffbf3e32912d31bdd78b3323e59/tokenizers-0.23.1-cp310-abi3-win_amd64.whl", + "version": "0.23.1" + }, + { + "byteSize": 12295140, + "distribution": "transformers", + "filename": "transformers-5.17.0-py3-none-any.whl", + "machine": "arm64", + "platform": "windows", + "pythonTag": "cp312", + "sha256": "78ec1ce21579b38dfb83950a0658cd119f87212a2fcfdff478096ce9d6c03801", + "url": "https://files.pythonhosted.org/packages/e8/d0/c502b60d684adbd98a8dc7d5bb866842772b816ac4354e4608be240041ae/transformers-5.17.0-py3-none-any.whl", + "version": "5.17.0" + }, + { + "byteSize": 2664127, + "distribution": "tokenizers", + "filename": "tokenizers-0.23.1-cp310-abi3-win_arm64.whl", + "machine": "arm64", + "platform": "windows", + "pythonTag": "cp312", + "sha256": "a26197957d8e4425dfba746315f3c425ea00cfa8367c5fbc4ec73447893dcea9", + "url": "https://files.pythonhosted.org/packages/cd/2b/2be299bab55fc595e3d38567edb1a87f86e594842968fa9515a07bdcf422/tokenizers-0.23.1-cp310-abi3-win_arm64.whl", + "version": "0.23.1" + } + ], + "baseIncluded": true, + "baseRequirements": [ + { "distribution": "accelerate", "importName": "accelerate", "specifier": ">=0.21.0" }, + { "distribution": "anyio", "importName": "anyio", "specifier": "" }, + { "distribution": "certifi", "importName": "certifi", "specifier": "" }, + { "distribution": "click", "importName": "click", "specifier": "" }, + { "distribution": "filelock", "importName": "filelock", "specifier": "" }, + { "distribution": "fsspec", "importName": "fsspec", "specifier": "" }, + { "distribution": "h11", "importName": "h11", "specifier": "" }, + { "distribution": "hf-xet", "importName": "hf_xet", "specifier": "" }, + { "distribution": "httpcore", "importName": "httpcore", "specifier": "" }, + { "distribution": "httpx", "importName": "httpx", "specifier": "" }, + { "distribution": "huggingface-hub", "importName": "huggingface_hub", "specifier": ">=1.5.0,<2.0" }, + { "distribution": "idna", "importName": "idna", "specifier": "" }, + { "distribution": "jinja2", "importName": "jinja2", "specifier": "" }, + { "distribution": "markupsafe", "importName": "markupsafe", "specifier": "" }, + { "distribution": "mpmath", "importName": "mpmath", "specifier": "" }, + { "distribution": "networkx", "importName": "networkx", "specifier": "" }, + { "distribution": "numpy", "importName": "numpy", "specifier": ">=1.17" }, + { "distribution": "packaging", "importName": "packaging", "specifier": ">=20.0" }, + { "distribution": "pillow", "importName": "PIL", "specifier": ">=10.0.1,<=15.0" }, + { "distribution": "protobuf", "importName": "google.protobuf", "specifier": ">=6.31.1" }, + { "distribution": "psutil", "importName": "psutil", "specifier": "" }, + { "distribution": "pyyaml", "importName": "yaml", "specifier": ">=5.1" }, + { "distribution": "regex", "importName": "regex", "specifier": ">=2025.10.22" }, + { "distribution": "safetensors", "importName": "safetensors", "specifier": ">=0.8.0" }, + { "distribution": "sentencepiece", "importName": "sentencepiece", "specifier": ">=0.2.0" }, + { "distribution": "setuptools", "importName": "setuptools", "specifier": "" }, + { "distribution": "sympy", "importName": "sympy", "specifier": "" }, + { "distribution": "torch", "importName": "torch", "specifier": ">=2.6.0" }, + { "distribution": "torchvision", "importName": "torchvision", "specifier": ">=0.21.0" }, + { "distribution": "tqdm", "importName": "tqdm", "specifier": ">=4.60" }, + { "distribution": "typing-extensions", "importName": "typing_extensions", "specifier": "" }, + { "distribution": "colorama", "importName": "colorama", "platforms": ["windows"], "specifier": "" } + ], + "contractState": "candidate_unqualified", + "cutoverReady": false, + "excludedQualificationSymbols": ["add_weighted_adapter"], + "id": "huggingface-transformers-peft-5.17.0-0.20.0", + "installActionAvailable": false, + "installPolicy": "explicit_first_use", + "label": "Hugging Face Transformers 5.17 + PEFT (Linux x86-64 qualified)", + "machine": "x86_64", + "overlayStatus": "missing", + "packages": [ + { + "distribution": "transformers", + "distributionUrl": "https://pypi.org/project/transformers/", + "importName": "transformers", + "installedVersion": "5.18.0", + "license": "Apache-2.0", + "projectUrl": "https://github.com/huggingface/transformers", + "publisher": "Hugging Face", + "requiredClassSymbols": [ + "Qwen2_5_VLForConditionalGeneration", + "Qwen2Tokenizer", + "Qwen2VLProcessor", + "AutoConfig", + "AutoTokenizer", + "AutoModelForCausalLM", + "LlamaForCausalLM", + "CLIPImageProcessor", + "CLIPVisionModel", + "UMT5EncoderModel", + "T5EncoderModel", + "T5Tokenizer", + "T5TokenizerFast", + "PreTrainedModel", + "PreTrainedTokenizerFast", + "CLIPTextModel", + "CLIPTextModelWithProjection", + "CLIPTokenizer", + "CLIPVisionModelWithProjection", + "SiglipImageProcessor", + "SiglipVisionModel", + "Qwen2TokenizerFast", + "Qwen3ForCausalLM", + "Qwen3Model", + "Qwen3VLForConditionalGeneration", + "Qwen3VLProcessor", + "AutoProcessor", + "AutoModelForImageTextToText", + "Idefics3ForConditionalGeneration", + "Idefics3Processor", + "AutoModelForMultimodalLM", + "JanusForConditionalGeneration", + "JanusProcessor", + "JanusImageProcessor", + "AutoModelForSpeechSeq2Seq", + "AutoModelForCTC", + "AnyToAnyPipeline", + "Mistral3Model", + "Mistral3ForConditionalGeneration", + "Ministral3ForCausalLM", + "GlmImageForConditionalGeneration", + "GlmImageProcessor", + "ByT5Tokenizer", + "BitsAndBytesConfig", + "GemmaModel", + "Gemma2Model", + "GemmaPreTrainedModel", + "Gemma2PreTrainedModel", + "GemmaTokenizer", + "GemmaTokenizerFast", + "transformers.models.t5gemma.modeling_t5gemma:T5GemmaEncoder", + "LlamaTokenizer", + "LlamaTokenizerFast" + ], + "requiredSymbols": [ + "Qwen2_5_VLForConditionalGeneration", + "Qwen2Tokenizer", + "Qwen2VLProcessor", + "AutoConfig", + "AutoTokenizer", + "AutoModelForCausalLM", + "LlamaForCausalLM", + "CLIPImageProcessor", + "CLIPVisionModel", + "UMT5EncoderModel", + "T5EncoderModel", + "T5Tokenizer", + "T5TokenizerFast", + "PreTrainedModel", + "PreTrainedTokenizerFast", + "CLIPTextModel", + "CLIPTextModelWithProjection", + "CLIPTokenizer", + "CLIPVisionModelWithProjection", + "SiglipImageProcessor", + "SiglipVisionModel", + "Qwen2TokenizerFast", + "Qwen3ForCausalLM", + "Qwen3Model", + "Qwen3VLForConditionalGeneration", + "Qwen3VLProcessor", + "AutoProcessor", + "AutoModelForImageTextToText", + "Idefics3ForConditionalGeneration", + "Idefics3Processor", + "AutoModelForMultimodalLM", + "JanusForConditionalGeneration", + "JanusProcessor", + "JanusImageProcessor", + "AutoModelForSpeechSeq2Seq", + "AutoModelForCTC", + "AnyToAnyPipeline", + "pipeline", + "Mistral3Model", + "Mistral3ForConditionalGeneration", + "Ministral3ForCausalLM", + "GlmImageForConditionalGeneration", + "GlmImageProcessor", + "ByT5Tokenizer", + "BitsAndBytesConfig", + "GemmaModel", + "Gemma2Model", + "GemmaPreTrainedModel", + "Gemma2PreTrainedModel", + "GemmaTokenizer", + "GemmaTokenizerFast", + "transformers.models.t5gemma.modeling_t5gemma:T5GemmaEncoder", + "LlamaTokenizer", + "LlamaTokenizerFast", + "transformers.core_model_loading:tqdm", + "transformers.utils.logging:tqdm", + "transformers.utils.logging:get_verbosity", + "transformers.utils.logging:set_verbosity" + ], + "requiredVersion": "5.17.0", + "requirement": "transformers==5.17.0", + "role": "runtime_root", + "status": "wrong_version" + }, + { + "distribution": "peft", + "distributionUrl": "https://pypi.org/project/peft/", + "importName": "peft", + "installedVersion": "0.21.2", + "license": "Apache-2.0", + "projectUrl": "https://github.com/huggingface/peft", + "publisher": "Hugging Face", + "requiredClassSymbols": [ + "LoraConfig", + "PeftConfig", + "PeftModel", + "tuners.tuners_utils.BaseTunerLayer", + "tuners.lora.layer.LoraLayer" + ], + "requiredSymbols": [ + "LoraConfig", + "PeftConfig", + "PeftModel", + "inject_adapter_in_model", + "set_peft_model_state_dict", + "tuners.tuners_utils.BaseTunerLayer", + "tuners.lora.layer.LoraLayer", + "utils.other._get_submodules", + "utils.save_and_load.get_peft_model_state_dict", + "peft.utils.hotswap:check_hotswap_configs_compatible", + "peft.utils.hotswap:hotswap_adapter_from_state_dict", + "peft.utils.hotswap:prepare_model_for_compiled_hotswap" + ], + "requiredVersion": "0.20.0", + "requirement": "peft==0.20.0", + "role": "runtime_root", + "status": "wrong_version" + } + ], + "pipelineAdapterMethods": [ + { + "method": "load_lora_weights", + "requiredParameters": ["pretrained_model_name_or_path_or_dict", "adapter_name", "hotswap"] + }, + { "method": "set_adapters", "requiredParameters": ["adapter_names", "adapter_weights"] }, + { "method": "delete_adapters", "requiredParameters": ["adapter_names"] }, + { "method": "fuse_lora", "requiredParameters": ["components", "lora_scale", "safe_fusing", "adapter_names"] }, + { "method": "unfuse_lora", "requiredParameters": ["components"] }, + { "method": "unload_lora_weights", "requiredParameters": [] }, + { "method": "get_list_adapters", "requiredParameters": [] }, + { "method": "enable_lora_hotswap", "requiredParameters": ["kwargs"] } + ], + "pipelineAdapterSymbols": [ + "AceStepPipeline", + "FluxPipeline", + "Flux2KleinPipeline", + "LTXConditionPipeline", + "QwenImagePipeline", + "QwenImageControlNetPipeline", + "QwenImageLayeredPipeline", + "QwenImageEditPipeline", + "QwenImageEditPlusPipeline", + "QwenImageImg2ImgPipeline", + "QwenImageInpaintPipeline", + "ChromaImg2ImgPipeline", + "ChromaInpaintPipeline", + "LTX2Pipeline", + "StableDiffusionXLPipeline", + "StableDiffusionXLImg2ImgPipeline", + "StableDiffusionXLInpaintPipeline", + "ZImageImg2ImgPipeline", + "ZImageInpaintPipeline", + "FluxImg2ImgPipeline", + "FluxInpaintPipeline", + "FluxKontextInpaintPipeline", + "Flux2KleinInpaintPipeline", + "WanPipeline" + ], + "platform": "windows", + "requirePeftBackend": true, + "requiredDiffusersSymbols": [ + "ComponentSpec", + "ComponentsManager", + "ModularPipeline", + "AutoencoderKLWan", + "BitsAndBytesConfig", + "QwenImagePipeline", + "QwenImageControlNetModel", + "QwenImageControlNetPipeline", + "QwenImageLayeredPipeline", + "QwenImageEditPipeline", + "QwenImageEditPlusPipeline", + "QwenImageImg2ImgPipeline", + "QwenImageInpaintPipeline", + "QwenImageEditInpaintPipeline", + "ChromaImg2ImgPipeline", + "ChromaInpaintPipeline", + "LTX2Pipeline", + "QwenImageModularPipeline", + "QwenImageEditModularPipeline", + "QwenImageEditPlusModularPipeline", + "QwenImageLayeredModularPipeline", + "MiniMaxMusic3ModularPipeline", + "AnimateDiffPAGPipeline", + "AnimateDiffVideoToVideoPipeline", + "AnimateDiffControlNetPipeline", + "AnimateDiffVideoToVideoControlNetPipeline", + "CogVideoXVideoToVideoPipeline", + "WanVACEPipeline", + "WanVideoToVideoPipeline", + "WanPipeline", + "WanImageToVideoPipeline", + "WanModularPipeline", + "WanImage2VideoModularPipeline", + "LTXConditionPipeline", + "AceStepPipeline", + "StableAudioPipeline", + "LongCatAudioDiTPipeline", + "AudioLDM2Pipeline", + "ShapEPipeline", + "ShapEImg2ImgPipeline", + "StableDiffusionXLModularPipeline", + "StableDiffusionXLPipeline", + "StableDiffusionXLImg2ImgPipeline", + "StableDiffusionXLInpaintPipeline", + "StableDiffusionControlNetPipeline", + "StableDiffusionControlNetImg2ImgPipeline", + "StableDiffusionControlNetInpaintPipeline", + "StableDiffusionControlNetPAGPipeline", + "StableDiffusionControlNetPAGInpaintPipeline", + "StableDiffusionXLControlNetPipeline", + "StableDiffusionXLControlNetImg2ImgPipeline", + "StableDiffusionXLControlNetInpaintPipeline", + "StableDiffusionXLControlNetPAGPipeline", + "StableDiffusionXLControlNetPAGImg2ImgPipeline", + "ZImageImg2ImgPipeline", + "ZImageInpaintPipeline", + "FluxImg2ImgPipeline", + "FluxInpaintPipeline", + "FluxPipeline", + "Flux2KleinPipeline", + "Flux2KleinInpaintPipeline", + "FluxKontextPipeline", + "FluxKontextInpaintPipeline", + "FluxFillPipeline", + "FluxControlPipeline", + "FluxControlImg2ImgPipeline", + "FluxControlInpaintPipeline", + "FluxPriorReduxPipeline", + "FluxModularPipeline", + "FluxKontextModularPipeline", + "Flux2KleinModularPipeline", + "ErnieImagePipeline", + "ErnieImageTransformer2DModel", + "AutoencoderKLFlux2", + "GlmImagePipeline", + "GlmImageTransformer2DModel", + "HunyuanDiTPipeline", + "HunyuanDiTControlNetPipeline", + "HunyuanDiT2DModel", + "HunyuanDiT2DControlNetModel", + "JoyImageEditPipeline", + "JoyImageEditPlusPipeline", + "JoyImageEditTransformer3DModel", + "JoyImageEditPlusTransformer3DModel", + "Kandinsky3Pipeline", + "Kandinsky3Img2ImgPipeline", + "Kandinsky3UNet", + "LongCatImagePipeline", + "LongCatImageEditPipeline", + "LongCatImageTransformer2DModel", + "LuminaPipeline", + "LuminaNextDiT2DModel", + "Lumina2Pipeline", + "Lumina2Transformer2DModel", + "OmniGenPipeline", + "OmniGenTransformer2DModel", + "OvisImagePipeline", + "OvisImageTransformer2DModel", + "PRXPipeline", + "PRXTransformer2DModel", + "NucleusMoEImagePipeline", + "NucleusMoEImageTransformer2DModel", + "AutoencoderKLQwenImage", + "QwenImage21Pipeline", + "QwenImage21Transformer2DModel", + "AutoencoderKLQwenImage21" + ], + "requirements": ["transformers==5.17.0", "peft==0.20.0"], + "satisfiesProfiles": [ + { + "id": "huggingface-transformers-peft-5.14.1-0.20.0", + "specDigest": "sha256:b8a09a45113dd14c56688e4cae7592174b61683846f4b03da1117920125af5ee" + }, + { + "id": "huggingface-transformers-main-96fe6dce-peft-0.20.0", + "specDigest": "sha256:cb2440a5034b7c6962e82567a354f0afc13bfe7751cbaa8b8f84791d4172eafe" + } + ], + "schemaVersion": 1, + "specDigest": "sha256:3ab9ce98b19d6246f3861cc23941f669f06228369b0e679cebe55970e7df92c3", + "stagedPackages": [ + { + "distribution": "transformers", + "distributionUrl": "https://pypi.org/project/transformers/", + "importName": "transformers", + "license": "Apache-2.0", + "projectUrl": "https://github.com/huggingface/transformers", + "publisher": "Hugging Face", + "requiredClassSymbols": [ + "Qwen2_5_VLForConditionalGeneration", + "Qwen2Tokenizer", + "Qwen2VLProcessor", + "AutoConfig", + "AutoTokenizer", + "AutoModelForCausalLM", + "LlamaForCausalLM", + "CLIPImageProcessor", + "CLIPVisionModel", + "UMT5EncoderModel", + "T5EncoderModel", + "T5Tokenizer", + "T5TokenizerFast", + "PreTrainedModel", + "PreTrainedTokenizerFast", + "CLIPTextModel", + "CLIPTextModelWithProjection", + "CLIPTokenizer", + "CLIPVisionModelWithProjection", + "SiglipImageProcessor", + "SiglipVisionModel", + "Qwen2TokenizerFast", + "Qwen3ForCausalLM", + "Qwen3Model", + "Qwen3VLForConditionalGeneration", + "Qwen3VLProcessor", + "AutoProcessor", + "AutoModelForImageTextToText", + "Idefics3ForConditionalGeneration", + "Idefics3Processor", + "AutoModelForMultimodalLM", + "JanusForConditionalGeneration", + "JanusProcessor", + "JanusImageProcessor", + "AutoModelForSpeechSeq2Seq", + "AutoModelForCTC", + "AnyToAnyPipeline", + "Mistral3Model", + "Mistral3ForConditionalGeneration", + "Ministral3ForCausalLM", + "GlmImageForConditionalGeneration", + "GlmImageProcessor", + "ByT5Tokenizer", + "BitsAndBytesConfig", + "GemmaModel", + "Gemma2Model", + "GemmaPreTrainedModel", + "Gemma2PreTrainedModel", + "GemmaTokenizer", + "GemmaTokenizerFast", + "transformers.models.t5gemma.modeling_t5gemma:T5GemmaEncoder", + "LlamaTokenizer", + "LlamaTokenizerFast" + ], + "requiredSymbols": [ + "Qwen2_5_VLForConditionalGeneration", + "Qwen2Tokenizer", + "Qwen2VLProcessor", + "AutoConfig", + "AutoTokenizer", + "AutoModelForCausalLM", + "LlamaForCausalLM", + "CLIPImageProcessor", + "CLIPVisionModel", + "UMT5EncoderModel", + "T5EncoderModel", + "T5Tokenizer", + "T5TokenizerFast", + "PreTrainedModel", + "PreTrainedTokenizerFast", + "CLIPTextModel", + "CLIPTextModelWithProjection", + "CLIPTokenizer", + "CLIPVisionModelWithProjection", + "SiglipImageProcessor", + "SiglipVisionModel", + "Qwen2TokenizerFast", + "Qwen3ForCausalLM", + "Qwen3Model", + "Qwen3VLForConditionalGeneration", + "Qwen3VLProcessor", + "AutoProcessor", + "AutoModelForImageTextToText", + "Idefics3ForConditionalGeneration", + "Idefics3Processor", + "AutoModelForMultimodalLM", + "JanusForConditionalGeneration", + "JanusProcessor", + "JanusImageProcessor", + "AutoModelForSpeechSeq2Seq", + "AutoModelForCTC", + "AnyToAnyPipeline", + "pipeline", + "Mistral3Model", + "Mistral3ForConditionalGeneration", + "Ministral3ForCausalLM", + "GlmImageForConditionalGeneration", + "GlmImageProcessor", + "ByT5Tokenizer", + "BitsAndBytesConfig", + "GemmaModel", + "Gemma2Model", + "GemmaPreTrainedModel", + "Gemma2PreTrainedModel", + "GemmaTokenizer", + "GemmaTokenizerFast", + "transformers.models.t5gemma.modeling_t5gemma:T5GemmaEncoder", + "LlamaTokenizer", + "LlamaTokenizerFast", + "transformers.core_model_loading:tqdm", + "transformers.utils.logging:tqdm", + "transformers.utils.logging:get_verbosity", + "transformers.utils.logging:set_verbosity" + ], + "requiredVersion": "5.17.0", + "requirement": "transformers==5.17.0", + "role": "runtime_root" + }, + { + "distribution": "peft", + "distributionUrl": "https://pypi.org/project/peft/", + "importName": "peft", + "license": "Apache-2.0", + "projectUrl": "https://github.com/huggingface/peft", + "publisher": "Hugging Face", + "requiredClassSymbols": [ + "LoraConfig", + "PeftConfig", + "PeftModel", + "tuners.tuners_utils.BaseTunerLayer", + "tuners.lora.layer.LoraLayer" + ], + "requiredSymbols": [ + "LoraConfig", + "PeftConfig", + "PeftModel", + "inject_adapter_in_model", + "set_peft_model_state_dict", + "tuners.tuners_utils.BaseTunerLayer", + "tuners.lora.layer.LoraLayer", + "utils.other._get_submodules", + "utils.save_and_load.get_peft_model_state_dict", + "peft.utils.hotswap:check_hotswap_configs_compatible", + "peft.utils.hotswap:hotswap_adapter_from_state_dict", + "peft.utils.hotswap:prepare_model_for_compiled_hotswap" + ], + "requiredVersion": "0.20.0", + "requirement": "peft==0.20.0", + "role": "runtime_root" + }, + { + "distribution": "tokenizers", + "distributionUrl": "https://pypi.org/project/tokenizers/", + "importName": "tokenizers", + "license": "Apache-2.0", + "projectUrl": "https://github.com/huggingface/tokenizers", + "publisher": "Hugging Face", + "requiredClassSymbols": ["Tokenizer", "tokenizers.tokenizers:Tokenizer"], + "requiredSymbols": ["Tokenizer", "tokenizers.tokenizers:Tokenizer"], + "requiredVersion": "0.23.1", + "requirement": "tokenizers==0.23.1", + "role": "runtime_dependency" + }, + { + "distribution": "typer", + "distributionUrl": "https://pypi.org/project/typer/", + "importName": "typer", + "license": "MIT", + "projectUrl": "https://github.com/fastapi/typer", + "publisher": "FastAPI", + "requiredClassSymbols": ["Typer"], + "requiredSymbols": ["Typer"], + "requiredVersion": "0.27.1", + "requirement": "typer==0.27.1", + "role": "runtime_dependency" + }, + { + "distribution": "annotated-doc", + "distributionUrl": "https://pypi.org/project/annotated-doc/", + "importName": "annotated_doc", + "license": "MIT", + "projectUrl": "https://github.com/fastapi/annotated-doc", + "publisher": "FastAPI", + "requiredClassSymbols": ["Doc"], + "requiredSymbols": ["Doc"], + "requiredVersion": "0.0.5", + "requirement": "annotated-doc==0.0.5", + "role": "runtime_dependency" + }, + { + "distribution": "rich", + "distributionUrl": "https://pypi.org/project/rich/", + "importName": "rich", + "license": "MIT", + "projectUrl": "https://github.com/Textualize/rich", + "publisher": "Textualize", + "requiredClassSymbols": [], + "requiredSymbols": ["print"], + "requiredVersion": "15.0.0", + "requirement": "rich==15.0.0", + "role": "runtime_dependency" + }, + { + "distribution": "markdown-it-py", + "distributionUrl": "https://pypi.org/project/markdown-it-py/", + "importName": "markdown_it", + "license": "MIT", + "projectUrl": "https://github.com/executablebooks/markdown-it-py", + "publisher": "Executable Books", + "requiredClassSymbols": ["MarkdownIt"], + "requiredSymbols": ["MarkdownIt"], + "requiredVersion": "4.2.0", + "requirement": "markdown-it-py==4.2.0", + "role": "runtime_dependency" + }, + { + "distribution": "mdurl", + "distributionUrl": "https://pypi.org/project/mdurl/", + "importName": "mdurl", + "license": "MIT", + "projectUrl": "https://github.com/executablebooks/mdurl", + "publisher": "Executable Books", + "requiredClassSymbols": [], + "requiredSymbols": ["encode"], + "requiredVersion": "0.1.2", + "requirement": "mdurl==0.1.2", + "role": "runtime_dependency" + }, + { + "distribution": "pygments", + "distributionUrl": "https://pypi.org/project/Pygments/", + "importName": "pygments", + "license": "BSD-2-Clause", + "projectUrl": "https://github.com/pygments/pygments", + "publisher": "Pygments", + "requiredClassSymbols": [], + "requiredSymbols": ["highlight"], + "requiredVersion": "2.20.0", + "requirement": "pygments==2.20.0", + "role": "runtime_dependency" + }, + { + "distribution": "shellingham", + "distributionUrl": "https://pypi.org/project/shellingham/", + "importName": "shellingham", + "license": "ISC", + "projectUrl": "https://github.com/sarugaku/shellingham", + "publisher": "Sarugaku", + "requiredClassSymbols": [], + "requiredSymbols": ["detect_shell"], + "requiredVersion": "1.5.4", + "requirement": "shellingham==1.5.4", + "role": "runtime_dependency" + } + ], + "stagedRequirements": [ + "transformers==5.17.0", + "peft==0.20.0", + "tokenizers==0.23.1", + "typer==0.27.1", + "annotated-doc==0.0.5", + "rich==15.0.0", + "markdown-it-py==4.2.0", + "mdurl==0.1.2", + "pygments==2.20.0", + "shellingham==1.5.4" + ], + "status": "wrong_version", + "targetContracts": [ + { + "activationAvailable": true, + "contractState": "qualified", + "cutoverReady": true, + "installActionAvailable": true, + "machine": "x86_64", + "platform": "linux" + }, + { + "activationAvailable": false, + "contractState": "candidate_unqualified", + "cutoverReady": false, + "installActionAvailable": false, + "machine": "arm64", + "platform": "linux" + }, + { + "activationAvailable": false, + "contractState": "candidate_unqualified", + "cutoverReady": false, + "installActionAvailable": false, + "machine": "x86_64", + "platform": "macos" + }, + { + "activationAvailable": false, + "contractState": "candidate_unqualified", + "cutoverReady": false, + "installActionAvailable": false, + "machine": "arm64", + "platform": "macos" + }, + { + "activationAvailable": false, + "contractState": "candidate_unqualified", + "cutoverReady": false, + "installActionAvailable": false, + "machine": "x86_64", + "platform": "windows" + }, + { + "activationAvailable": false, + "contractState": "candidate_unqualified", + "cutoverReady": false, + "installActionAvailable": false, + "machine": "arm64", + "platform": "windows" + } + ] + }, + { + "activationAvailable": false, + "artifactLocks": [ + { + "byteSize": 11625234, + "distribution": "transformers", + "filename": "transformers-5.14.1-py3-none-any.whl", + "machine": "x86_64", + "platform": "linux", + "pythonTag": "cp312", + "sha256": "9db974c4079ede2d1a3ea7ca5a240df33f2cc26fc2b36ba64c5f2a4f43b6e725", + "url": "https://files.pythonhosted.org/packages/6f/67/8d85ca2323233ae3c0365a659c4e52ee1f587b440e4bc577e7d8e4416d0f/transformers-5.14.1-py3-none-any.whl", + "version": "5.14.1" + }, + { + "byteSize": 775777, + "distribution": "peft", + "filename": "peft-0.20.0-py3-none-any.whl", + "machine": "x86_64", + "platform": "linux", + "pythonTag": "cp312", + "sha256": "0fbba16ffebfad3de96e06f2da6860fd860292324b85b6141909fa1e26ea9233", + "url": "https://files.pythonhosted.org/packages/28/79/13bcabb8048126422d5c4b880575d40886c726f354db88cfeed4325525bb/peft-0.20.0-py3-none-any.whl", + "version": "0.20.0" + }, + { + "byteSize": 3274982, + "distribution": "tokenizers", + "filename": "tokenizers-0.22.2-cp39-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", + "machine": "x86_64", + "platform": "linux", + "pythonTag": "cp312", + "sha256": "369cc9fc8cc10cb24143873a0d95438bb8ee257bb80c71989e3ee290e8d72c67", + "url": "https://files.pythonhosted.org/packages/2e/76/932be4b50ef6ccedf9d3c6639b056a967a86258c6d9200643f01269211ca/tokenizers-0.22.2-cp39-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", + "version": "0.22.2" + }, + { + "byteSize": 122874, + "distribution": "typer", + "filename": "typer-0.27.1-py3-none-any.whl", + "machine": "x86_64", + "platform": "linux", + "pythonTag": "cp312", + "sha256": "53150287edd11baeb4e4722c8e394fcdf8181c0ae89485cba8d25c778d5edd56", + "url": "https://files.pythonhosted.org/packages/43/89/9518bc0c3929bee36b3a4a8e3daddd6e03f92f9961c66d4983b837160543/typer-0.27.1-py3-none-any.whl", + "version": "0.27.1" + }, + { + "byteSize": 5302, + "distribution": "annotated-doc", + "filename": "annotated_doc-0.0.5-py3-none-any.whl", + "machine": "x86_64", + "platform": "linux", + "pythonTag": "cp312", + "sha256": "117bac03a25ede5df5440e855b32d556049ca169ead221505badf432fed4b101", + "url": "https://files.pythonhosted.org/packages/3e/30/e900b21425a860e195f32e37657aa1f7c7f2b1bfb26f03ca209b90933c06/annotated_doc-0.0.5-py3-none-any.whl", + "version": "0.0.5" + }, + { + "byteSize": 310654, + "distribution": "rich", + "filename": "rich-15.0.0-py3-none-any.whl", + "machine": "x86_64", + "platform": "linux", + "pythonTag": "cp312", + "sha256": "33bd4ef74232fb73fe9279a257718407f169c09b78a87ad3d296f548e27de0bb", + "url": "https://files.pythonhosted.org/packages/82/3b/64d4899d73f91ba49a8c18a8ff3f0ea8f1c1d75481760df8c68ef5235bf5/rich-15.0.0-py3-none-any.whl", + "version": "15.0.0" + }, + { + "byteSize": 91687, + "distribution": "markdown-it-py", + "filename": "markdown_it_py-4.2.0-py3-none-any.whl", + "machine": "x86_64", + "platform": "linux", + "pythonTag": "cp312", + "sha256": "9f7ebbcd14fe59494226453aed97c1070d83f8d24b6fc3a3bcf9a38092641c4a", + "url": "https://files.pythonhosted.org/packages/b3/81/4da04ced5a082363ecfa159c010d200ecbd959ae410c10c0264a38cac0f5/markdown_it_py-4.2.0-py3-none-any.whl", + "version": "4.2.0" + }, + { + "byteSize": 9979, + "distribution": "mdurl", + "filename": "mdurl-0.1.2-py3-none-any.whl", + "machine": "x86_64", + "platform": "linux", + "pythonTag": "cp312", + "sha256": "84008a41e51615a49fc9966191ff91509e3c40b939176e643fd50a5c2196b8f8", + "url": "https://files.pythonhosted.org/packages/b3/38/89ba8ad64ae25be8de66a6d463314cf1eb366222074cfda9ee839c56a4b4/mdurl-0.1.2-py3-none-any.whl", + "version": "0.1.2" + }, + { + "byteSize": 1231151, + "distribution": "pygments", + "filename": "pygments-2.20.0-py3-none-any.whl", + "machine": "x86_64", + "platform": "linux", + "pythonTag": "cp312", + "sha256": "81a9e26dd42fd28a23a2d169d86d7ac03b46e2f8b59ed4698fb4785f946d0176", + "url": "https://files.pythonhosted.org/packages/f4/7e/a72dd26f3b0f4f2bf1dd8923c85f7ceb43172af56d63c7383eb62b332364/pygments-2.20.0-py3-none-any.whl", + "version": "2.20.0" + }, + { + "byteSize": 9755, + "distribution": "shellingham", + "filename": "shellingham-1.5.4-py2.py3-none-any.whl", + "machine": "x86_64", + "platform": "linux", + "pythonTag": "cp312", + "sha256": "7ecfff8f2fd72616f7481040475a65b2bf8af90a56c89140852d1120324e8686", + "url": "https://files.pythonhosted.org/packages/e0/f9/0595336914c5619e5f28a1fb793285925a8cd4b432c9da0a987836c7f822/shellingham-1.5.4-py2.py3-none-any.whl", + "version": "1.5.4" + }, + { + "byteSize": 11625234, + "distribution": "transformers", + "filename": "transformers-5.14.1-py3-none-any.whl", + "machine": "arm64", + "platform": "linux", + "pythonTag": "cp312", + "sha256": "9db974c4079ede2d1a3ea7ca5a240df33f2cc26fc2b36ba64c5f2a4f43b6e725", + "url": "https://files.pythonhosted.org/packages/6f/67/8d85ca2323233ae3c0365a659c4e52ee1f587b440e4bc577e7d8e4416d0f/transformers-5.14.1-py3-none-any.whl", + "version": "5.14.1" + }, + { + "byteSize": 775777, + "distribution": "peft", + "filename": "peft-0.20.0-py3-none-any.whl", + "machine": "arm64", + "platform": "linux", + "pythonTag": "cp312", + "sha256": "0fbba16ffebfad3de96e06f2da6860fd860292324b85b6141909fa1e26ea9233", + "url": "https://files.pythonhosted.org/packages/28/79/13bcabb8048126422d5c4b880575d40886c726f354db88cfeed4325525bb/peft-0.20.0-py3-none-any.whl", + "version": "0.20.0" + }, + { + "byteSize": 3290736, + "distribution": "tokenizers", + "filename": "tokenizers-0.22.2-cp39-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", + "machine": "arm64", + "platform": "linux", + "pythonTag": "cp312", + "sha256": "2249487018adec45d6e3554c71d46eb39fa8ea67156c640f7513eb26f318cec7", + "url": "https://files.pythonhosted.org/packages/d6/84/7990e799f1309a8b87af6b948f31edaa12a3ed22d11b352eaf4f4b2e5753/tokenizers-0.22.2-cp39-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", + "version": "0.22.2" + }, + { + "byteSize": 122874, + "distribution": "typer", + "filename": "typer-0.27.1-py3-none-any.whl", + "machine": "arm64", + "platform": "linux", + "pythonTag": "cp312", + "sha256": "53150287edd11baeb4e4722c8e394fcdf8181c0ae89485cba8d25c778d5edd56", + "url": "https://files.pythonhosted.org/packages/43/89/9518bc0c3929bee36b3a4a8e3daddd6e03f92f9961c66d4983b837160543/typer-0.27.1-py3-none-any.whl", + "version": "0.27.1" + }, + { + "byteSize": 5302, + "distribution": "annotated-doc", + "filename": "annotated_doc-0.0.5-py3-none-any.whl", + "machine": "arm64", + "platform": "linux", + "pythonTag": "cp312", + "sha256": "117bac03a25ede5df5440e855b32d556049ca169ead221505badf432fed4b101", + "url": "https://files.pythonhosted.org/packages/3e/30/e900b21425a860e195f32e37657aa1f7c7f2b1bfb26f03ca209b90933c06/annotated_doc-0.0.5-py3-none-any.whl", + "version": "0.0.5" + }, + { + "byteSize": 310654, + "distribution": "rich", + "filename": "rich-15.0.0-py3-none-any.whl", + "machine": "arm64", + "platform": "linux", + "pythonTag": "cp312", + "sha256": "33bd4ef74232fb73fe9279a257718407f169c09b78a87ad3d296f548e27de0bb", + "url": "https://files.pythonhosted.org/packages/82/3b/64d4899d73f91ba49a8c18a8ff3f0ea8f1c1d75481760df8c68ef5235bf5/rich-15.0.0-py3-none-any.whl", + "version": "15.0.0" + }, + { + "byteSize": 91687, + "distribution": "markdown-it-py", + "filename": "markdown_it_py-4.2.0-py3-none-any.whl", + "machine": "arm64", + "platform": "linux", + "pythonTag": "cp312", + "sha256": "9f7ebbcd14fe59494226453aed97c1070d83f8d24b6fc3a3bcf9a38092641c4a", + "url": "https://files.pythonhosted.org/packages/b3/81/4da04ced5a082363ecfa159c010d200ecbd959ae410c10c0264a38cac0f5/markdown_it_py-4.2.0-py3-none-any.whl", + "version": "4.2.0" + }, + { + "byteSize": 9979, + "distribution": "mdurl", + "filename": "mdurl-0.1.2-py3-none-any.whl", + "machine": "arm64", + "platform": "linux", + "pythonTag": "cp312", + "sha256": "84008a41e51615a49fc9966191ff91509e3c40b939176e643fd50a5c2196b8f8", + "url": "https://files.pythonhosted.org/packages/b3/38/89ba8ad64ae25be8de66a6d463314cf1eb366222074cfda9ee839c56a4b4/mdurl-0.1.2-py3-none-any.whl", + "version": "0.1.2" + }, + { + "byteSize": 1231151, + "distribution": "pygments", + "filename": "pygments-2.20.0-py3-none-any.whl", + "machine": "arm64", + "platform": "linux", + "pythonTag": "cp312", + "sha256": "81a9e26dd42fd28a23a2d169d86d7ac03b46e2f8b59ed4698fb4785f946d0176", + "url": "https://files.pythonhosted.org/packages/f4/7e/a72dd26f3b0f4f2bf1dd8923c85f7ceb43172af56d63c7383eb62b332364/pygments-2.20.0-py3-none-any.whl", + "version": "2.20.0" + }, + { + "byteSize": 9755, + "distribution": "shellingham", + "filename": "shellingham-1.5.4-py2.py3-none-any.whl", + "machine": "arm64", + "platform": "linux", + "pythonTag": "cp312", + "sha256": "7ecfff8f2fd72616f7481040475a65b2bf8af90a56c89140852d1120324e8686", + "url": "https://files.pythonhosted.org/packages/e0/f9/0595336914c5619e5f28a1fb793285925a8cd4b432c9da0a987836c7f822/shellingham-1.5.4-py2.py3-none-any.whl", + "version": "1.5.4" + }, + { + "byteSize": 11625234, + "distribution": "transformers", + "filename": "transformers-5.14.1-py3-none-any.whl", + "machine": "x86_64", + "platform": "macos", + "pythonTag": "cp312", + "sha256": "9db974c4079ede2d1a3ea7ca5a240df33f2cc26fc2b36ba64c5f2a4f43b6e725", + "url": "https://files.pythonhosted.org/packages/6f/67/8d85ca2323233ae3c0365a659c4e52ee1f587b440e4bc577e7d8e4416d0f/transformers-5.14.1-py3-none-any.whl", + "version": "5.14.1" + }, + { + "byteSize": 775777, + "distribution": "peft", + "filename": "peft-0.20.0-py3-none-any.whl", + "machine": "x86_64", + "platform": "macos", + "pythonTag": "cp312", + "sha256": "0fbba16ffebfad3de96e06f2da6860fd860292324b85b6141909fa1e26ea9233", + "url": "https://files.pythonhosted.org/packages/28/79/13bcabb8048126422d5c4b880575d40886c726f354db88cfeed4325525bb/peft-0.20.0-py3-none-any.whl", + "version": "0.20.0" + }, + { + "byteSize": 3100275, + "distribution": "tokenizers", + "filename": "tokenizers-0.22.2-cp39-abi3-macosx_10_12_x86_64.whl", + "machine": "x86_64", + "platform": "macos", + "pythonTag": "cp312", + "sha256": "544dd704ae7238755d790de45ba8da072e9af3eea688f698b137915ae959281c", + "url": "https://files.pythonhosted.org/packages/92/97/5dbfabf04c7e348e655e907ed27913e03db0923abb5dfdd120d7b25630e1/tokenizers-0.22.2-cp39-abi3-macosx_10_12_x86_64.whl", + "version": "0.22.2" + }, + { + "byteSize": 122874, + "distribution": "typer", + "filename": "typer-0.27.1-py3-none-any.whl", + "machine": "x86_64", + "platform": "macos", + "pythonTag": "cp312", + "sha256": "53150287edd11baeb4e4722c8e394fcdf8181c0ae89485cba8d25c778d5edd56", + "url": "https://files.pythonhosted.org/packages/43/89/9518bc0c3929bee36b3a4a8e3daddd6e03f92f9961c66d4983b837160543/typer-0.27.1-py3-none-any.whl", + "version": "0.27.1" + }, + { + "byteSize": 5302, + "distribution": "annotated-doc", + "filename": "annotated_doc-0.0.5-py3-none-any.whl", + "machine": "x86_64", + "platform": "macos", + "pythonTag": "cp312", + "sha256": "117bac03a25ede5df5440e855b32d556049ca169ead221505badf432fed4b101", + "url": "https://files.pythonhosted.org/packages/3e/30/e900b21425a860e195f32e37657aa1f7c7f2b1bfb26f03ca209b90933c06/annotated_doc-0.0.5-py3-none-any.whl", + "version": "0.0.5" + }, + { + "byteSize": 310654, + "distribution": "rich", + "filename": "rich-15.0.0-py3-none-any.whl", + "machine": "x86_64", + "platform": "macos", + "pythonTag": "cp312", + "sha256": "33bd4ef74232fb73fe9279a257718407f169c09b78a87ad3d296f548e27de0bb", + "url": "https://files.pythonhosted.org/packages/82/3b/64d4899d73f91ba49a8c18a8ff3f0ea8f1c1d75481760df8c68ef5235bf5/rich-15.0.0-py3-none-any.whl", + "version": "15.0.0" + }, + { + "byteSize": 91687, + "distribution": "markdown-it-py", + "filename": "markdown_it_py-4.2.0-py3-none-any.whl", + "machine": "x86_64", + "platform": "macos", + "pythonTag": "cp312", + "sha256": "9f7ebbcd14fe59494226453aed97c1070d83f8d24b6fc3a3bcf9a38092641c4a", + "url": "https://files.pythonhosted.org/packages/b3/81/4da04ced5a082363ecfa159c010d200ecbd959ae410c10c0264a38cac0f5/markdown_it_py-4.2.0-py3-none-any.whl", + "version": "4.2.0" + }, + { + "byteSize": 9979, + "distribution": "mdurl", + "filename": "mdurl-0.1.2-py3-none-any.whl", + "machine": "x86_64", + "platform": "macos", + "pythonTag": "cp312", + "sha256": "84008a41e51615a49fc9966191ff91509e3c40b939176e643fd50a5c2196b8f8", + "url": "https://files.pythonhosted.org/packages/b3/38/89ba8ad64ae25be8de66a6d463314cf1eb366222074cfda9ee839c56a4b4/mdurl-0.1.2-py3-none-any.whl", + "version": "0.1.2" + }, + { + "byteSize": 1231151, + "distribution": "pygments", + "filename": "pygments-2.20.0-py3-none-any.whl", + "machine": "x86_64", + "platform": "macos", + "pythonTag": "cp312", + "sha256": "81a9e26dd42fd28a23a2d169d86d7ac03b46e2f8b59ed4698fb4785f946d0176", + "url": "https://files.pythonhosted.org/packages/f4/7e/a72dd26f3b0f4f2bf1dd8923c85f7ceb43172af56d63c7383eb62b332364/pygments-2.20.0-py3-none-any.whl", + "version": "2.20.0" + }, + { + "byteSize": 9755, + "distribution": "shellingham", + "filename": "shellingham-1.5.4-py2.py3-none-any.whl", + "machine": "x86_64", + "platform": "macos", + "pythonTag": "cp312", + "sha256": "7ecfff8f2fd72616f7481040475a65b2bf8af90a56c89140852d1120324e8686", + "url": "https://files.pythonhosted.org/packages/e0/f9/0595336914c5619e5f28a1fb793285925a8cd4b432c9da0a987836c7f822/shellingham-1.5.4-py2.py3-none-any.whl", + "version": "1.5.4" + }, + { + "byteSize": 11625234, + "distribution": "transformers", + "filename": "transformers-5.14.1-py3-none-any.whl", + "machine": "arm64", + "platform": "macos", + "pythonTag": "cp312", + "sha256": "9db974c4079ede2d1a3ea7ca5a240df33f2cc26fc2b36ba64c5f2a4f43b6e725", + "url": "https://files.pythonhosted.org/packages/6f/67/8d85ca2323233ae3c0365a659c4e52ee1f587b440e4bc577e7d8e4416d0f/transformers-5.14.1-py3-none-any.whl", + "version": "5.14.1" + }, + { + "byteSize": 775777, + "distribution": "peft", + "filename": "peft-0.20.0-py3-none-any.whl", + "machine": "arm64", + "platform": "macos", + "pythonTag": "cp312", + "sha256": "0fbba16ffebfad3de96e06f2da6860fd860292324b85b6141909fa1e26ea9233", + "url": "https://files.pythonhosted.org/packages/28/79/13bcabb8048126422d5c4b880575d40886c726f354db88cfeed4325525bb/peft-0.20.0-py3-none-any.whl", + "version": "0.20.0" + }, + { + "byteSize": 2981472, + "distribution": "tokenizers", + "filename": "tokenizers-0.22.2-cp39-abi3-macosx_11_0_arm64.whl", + "machine": "arm64", + "platform": "macos", + "pythonTag": "cp312", + "sha256": "1e418a55456beedca4621dbab65a318981467a2b188e982a23e117f115ce5001", + "url": "https://files.pythonhosted.org/packages/2e/47/174dca0502ef88b28f1c9e06b73ce33500eedfac7a7692108aec220464e7/tokenizers-0.22.2-cp39-abi3-macosx_11_0_arm64.whl", + "version": "0.22.2" + }, + { + "byteSize": 122874, + "distribution": "typer", + "filename": "typer-0.27.1-py3-none-any.whl", + "machine": "arm64", + "platform": "macos", + "pythonTag": "cp312", + "sha256": "53150287edd11baeb4e4722c8e394fcdf8181c0ae89485cba8d25c778d5edd56", + "url": "https://files.pythonhosted.org/packages/43/89/9518bc0c3929bee36b3a4a8e3daddd6e03f92f9961c66d4983b837160543/typer-0.27.1-py3-none-any.whl", + "version": "0.27.1" + }, + { + "byteSize": 5302, + "distribution": "annotated-doc", + "filename": "annotated_doc-0.0.5-py3-none-any.whl", + "machine": "arm64", + "platform": "macos", + "pythonTag": "cp312", + "sha256": "117bac03a25ede5df5440e855b32d556049ca169ead221505badf432fed4b101", + "url": "https://files.pythonhosted.org/packages/3e/30/e900b21425a860e195f32e37657aa1f7c7f2b1bfb26f03ca209b90933c06/annotated_doc-0.0.5-py3-none-any.whl", + "version": "0.0.5" + }, + { + "byteSize": 310654, + "distribution": "rich", + "filename": "rich-15.0.0-py3-none-any.whl", + "machine": "arm64", + "platform": "macos", + "pythonTag": "cp312", + "sha256": "33bd4ef74232fb73fe9279a257718407f169c09b78a87ad3d296f548e27de0bb", + "url": "https://files.pythonhosted.org/packages/82/3b/64d4899d73f91ba49a8c18a8ff3f0ea8f1c1d75481760df8c68ef5235bf5/rich-15.0.0-py3-none-any.whl", + "version": "15.0.0" + }, + { + "byteSize": 91687, + "distribution": "markdown-it-py", + "filename": "markdown_it_py-4.2.0-py3-none-any.whl", + "machine": "arm64", + "platform": "macos", + "pythonTag": "cp312", + "sha256": "9f7ebbcd14fe59494226453aed97c1070d83f8d24b6fc3a3bcf9a38092641c4a", + "url": "https://files.pythonhosted.org/packages/b3/81/4da04ced5a082363ecfa159c010d200ecbd959ae410c10c0264a38cac0f5/markdown_it_py-4.2.0-py3-none-any.whl", + "version": "4.2.0" + }, + { + "byteSize": 9979, + "distribution": "mdurl", + "filename": "mdurl-0.1.2-py3-none-any.whl", + "machine": "arm64", + "platform": "macos", + "pythonTag": "cp312", + "sha256": "84008a41e51615a49fc9966191ff91509e3c40b939176e643fd50a5c2196b8f8", + "url": "https://files.pythonhosted.org/packages/b3/38/89ba8ad64ae25be8de66a6d463314cf1eb366222074cfda9ee839c56a4b4/mdurl-0.1.2-py3-none-any.whl", + "version": "0.1.2" + }, + { + "byteSize": 1231151, + "distribution": "pygments", + "filename": "pygments-2.20.0-py3-none-any.whl", + "machine": "arm64", + "platform": "macos", + "pythonTag": "cp312", + "sha256": "81a9e26dd42fd28a23a2d169d86d7ac03b46e2f8b59ed4698fb4785f946d0176", + "url": "https://files.pythonhosted.org/packages/f4/7e/a72dd26f3b0f4f2bf1dd8923c85f7ceb43172af56d63c7383eb62b332364/pygments-2.20.0-py3-none-any.whl", + "version": "2.20.0" + }, + { + "byteSize": 9755, + "distribution": "shellingham", + "filename": "shellingham-1.5.4-py2.py3-none-any.whl", + "machine": "arm64", + "platform": "macos", + "pythonTag": "cp312", + "sha256": "7ecfff8f2fd72616f7481040475a65b2bf8af90a56c89140852d1120324e8686", + "url": "https://files.pythonhosted.org/packages/e0/f9/0595336914c5619e5f28a1fb793285925a8cd4b432c9da0a987836c7f822/shellingham-1.5.4-py2.py3-none-any.whl", + "version": "1.5.4" + }, + { + "byteSize": 11625234, + "distribution": "transformers", + "filename": "transformers-5.14.1-py3-none-any.whl", + "machine": "x86_64", + "platform": "windows", + "pythonTag": "cp312", + "sha256": "9db974c4079ede2d1a3ea7ca5a240df33f2cc26fc2b36ba64c5f2a4f43b6e725", + "url": "https://files.pythonhosted.org/packages/6f/67/8d85ca2323233ae3c0365a659c4e52ee1f587b440e4bc577e7d8e4416d0f/transformers-5.14.1-py3-none-any.whl", + "version": "5.14.1" + }, + { + "byteSize": 775777, + "distribution": "peft", + "filename": "peft-0.20.0-py3-none-any.whl", + "machine": "x86_64", + "platform": "windows", + "pythonTag": "cp312", + "sha256": "0fbba16ffebfad3de96e06f2da6860fd860292324b85b6141909fa1e26ea9233", + "url": "https://files.pythonhosted.org/packages/28/79/13bcabb8048126422d5c4b880575d40886c726f354db88cfeed4325525bb/peft-0.20.0-py3-none-any.whl", + "version": "0.20.0" + }, + { + "byteSize": 2747786, + "distribution": "tokenizers", + "filename": "tokenizers-0.22.2-cp39-abi3-win_amd64.whl", + "machine": "x86_64", + "platform": "windows", + "pythonTag": "cp312", + "sha256": "c9ea31edff2968b44a88f97d784c2f16dc0729b8b143ed004699ebca91f05c48", + "url": "https://files.pythonhosted.org/packages/65/71/0670843133a43d43070abeb1949abfdef12a86d490bea9cd9e18e37c5ff7/tokenizers-0.22.2-cp39-abi3-win_amd64.whl", + "version": "0.22.2" + }, + { + "byteSize": 122874, + "distribution": "typer", + "filename": "typer-0.27.1-py3-none-any.whl", + "machine": "x86_64", + "platform": "windows", + "pythonTag": "cp312", + "sha256": "53150287edd11baeb4e4722c8e394fcdf8181c0ae89485cba8d25c778d5edd56", + "url": "https://files.pythonhosted.org/packages/43/89/9518bc0c3929bee36b3a4a8e3daddd6e03f92f9961c66d4983b837160543/typer-0.27.1-py3-none-any.whl", + "version": "0.27.1" + }, + { + "byteSize": 5302, + "distribution": "annotated-doc", + "filename": "annotated_doc-0.0.5-py3-none-any.whl", + "machine": "x86_64", + "platform": "windows", + "pythonTag": "cp312", + "sha256": "117bac03a25ede5df5440e855b32d556049ca169ead221505badf432fed4b101", + "url": "https://files.pythonhosted.org/packages/3e/30/e900b21425a860e195f32e37657aa1f7c7f2b1bfb26f03ca209b90933c06/annotated_doc-0.0.5-py3-none-any.whl", + "version": "0.0.5" + }, + { + "byteSize": 310654, + "distribution": "rich", + "filename": "rich-15.0.0-py3-none-any.whl", + "machine": "x86_64", + "platform": "windows", + "pythonTag": "cp312", + "sha256": "33bd4ef74232fb73fe9279a257718407f169c09b78a87ad3d296f548e27de0bb", + "url": "https://files.pythonhosted.org/packages/82/3b/64d4899d73f91ba49a8c18a8ff3f0ea8f1c1d75481760df8c68ef5235bf5/rich-15.0.0-py3-none-any.whl", + "version": "15.0.0" + }, + { + "byteSize": 91687, + "distribution": "markdown-it-py", + "filename": "markdown_it_py-4.2.0-py3-none-any.whl", + "machine": "x86_64", + "platform": "windows", + "pythonTag": "cp312", + "sha256": "9f7ebbcd14fe59494226453aed97c1070d83f8d24b6fc3a3bcf9a38092641c4a", + "url": "https://files.pythonhosted.org/packages/b3/81/4da04ced5a082363ecfa159c010d200ecbd959ae410c10c0264a38cac0f5/markdown_it_py-4.2.0-py3-none-any.whl", + "version": "4.2.0" + }, + { + "byteSize": 9979, + "distribution": "mdurl", + "filename": "mdurl-0.1.2-py3-none-any.whl", + "machine": "x86_64", + "platform": "windows", + "pythonTag": "cp312", + "sha256": "84008a41e51615a49fc9966191ff91509e3c40b939176e643fd50a5c2196b8f8", + "url": "https://files.pythonhosted.org/packages/b3/38/89ba8ad64ae25be8de66a6d463314cf1eb366222074cfda9ee839c56a4b4/mdurl-0.1.2-py3-none-any.whl", + "version": "0.1.2" + }, + { + "byteSize": 1231151, + "distribution": "pygments", + "filename": "pygments-2.20.0-py3-none-any.whl", + "machine": "x86_64", + "platform": "windows", + "pythonTag": "cp312", + "sha256": "81a9e26dd42fd28a23a2d169d86d7ac03b46e2f8b59ed4698fb4785f946d0176", + "url": "https://files.pythonhosted.org/packages/f4/7e/a72dd26f3b0f4f2bf1dd8923c85f7ceb43172af56d63c7383eb62b332364/pygments-2.20.0-py3-none-any.whl", + "version": "2.20.0" + }, + { + "byteSize": 9755, + "distribution": "shellingham", + "filename": "shellingham-1.5.4-py2.py3-none-any.whl", + "machine": "x86_64", + "platform": "windows", + "pythonTag": "cp312", + "sha256": "7ecfff8f2fd72616f7481040475a65b2bf8af90a56c89140852d1120324e8686", + "url": "https://files.pythonhosted.org/packages/e0/f9/0595336914c5619e5f28a1fb793285925a8cd4b432c9da0a987836c7f822/shellingham-1.5.4-py2.py3-none-any.whl", + "version": "1.5.4" + }, + { + "byteSize": 11625234, + "distribution": "transformers", + "filename": "transformers-5.14.1-py3-none-any.whl", + "machine": "arm64", + "platform": "windows", + "pythonTag": "cp312", + "sha256": "9db974c4079ede2d1a3ea7ca5a240df33f2cc26fc2b36ba64c5f2a4f43b6e725", + "url": "https://files.pythonhosted.org/packages/6f/67/8d85ca2323233ae3c0365a659c4e52ee1f587b440e4bc577e7d8e4416d0f/transformers-5.14.1-py3-none-any.whl", + "version": "5.14.1" + }, + { + "byteSize": 775777, + "distribution": "peft", + "filename": "peft-0.20.0-py3-none-any.whl", + "machine": "arm64", + "platform": "windows", + "pythonTag": "cp312", + "sha256": "0fbba16ffebfad3de96e06f2da6860fd860292324b85b6141909fa1e26ea9233", + "url": "https://files.pythonhosted.org/packages/28/79/13bcabb8048126422d5c4b880575d40886c726f354db88cfeed4325525bb/peft-0.20.0-py3-none-any.whl", + "version": "0.20.0" + }, + { + "byteSize": 2612133, + "distribution": "tokenizers", + "filename": "tokenizers-0.22.2-cp39-abi3-win_arm64.whl", + "machine": "arm64", + "platform": "windows", + "pythonTag": "cp312", + "sha256": "9ce725d22864a1e965217204946f830c37876eee3b2ba6fc6255e8e903d5fcbc", + "url": "https://files.pythonhosted.org/packages/72/f4/0de46cfa12cdcbcd464cc59fde36912af405696f687e53a091fb432f694c/tokenizers-0.22.2-cp39-abi3-win_arm64.whl", + "version": "0.22.2" + }, + { + "byteSize": 122874, + "distribution": "typer", + "filename": "typer-0.27.1-py3-none-any.whl", + "machine": "arm64", + "platform": "windows", + "pythonTag": "cp312", + "sha256": "53150287edd11baeb4e4722c8e394fcdf8181c0ae89485cba8d25c778d5edd56", + "url": "https://files.pythonhosted.org/packages/43/89/9518bc0c3929bee36b3a4a8e3daddd6e03f92f9961c66d4983b837160543/typer-0.27.1-py3-none-any.whl", + "version": "0.27.1" + }, + { + "byteSize": 5302, + "distribution": "annotated-doc", + "filename": "annotated_doc-0.0.5-py3-none-any.whl", + "machine": "arm64", + "platform": "windows", + "pythonTag": "cp312", + "sha256": "117bac03a25ede5df5440e855b32d556049ca169ead221505badf432fed4b101", + "url": "https://files.pythonhosted.org/packages/3e/30/e900b21425a860e195f32e37657aa1f7c7f2b1bfb26f03ca209b90933c06/annotated_doc-0.0.5-py3-none-any.whl", + "version": "0.0.5" + }, + { + "byteSize": 310654, + "distribution": "rich", + "filename": "rich-15.0.0-py3-none-any.whl", + "machine": "arm64", + "platform": "windows", + "pythonTag": "cp312", + "sha256": "33bd4ef74232fb73fe9279a257718407f169c09b78a87ad3d296f548e27de0bb", + "url": "https://files.pythonhosted.org/packages/82/3b/64d4899d73f91ba49a8c18a8ff3f0ea8f1c1d75481760df8c68ef5235bf5/rich-15.0.0-py3-none-any.whl", + "version": "15.0.0" + }, + { + "byteSize": 91687, + "distribution": "markdown-it-py", + "filename": "markdown_it_py-4.2.0-py3-none-any.whl", + "machine": "arm64", + "platform": "windows", + "pythonTag": "cp312", + "sha256": "9f7ebbcd14fe59494226453aed97c1070d83f8d24b6fc3a3bcf9a38092641c4a", + "url": "https://files.pythonhosted.org/packages/b3/81/4da04ced5a082363ecfa159c010d200ecbd959ae410c10c0264a38cac0f5/markdown_it_py-4.2.0-py3-none-any.whl", + "version": "4.2.0" + }, + { + "byteSize": 9979, + "distribution": "mdurl", + "filename": "mdurl-0.1.2-py3-none-any.whl", + "machine": "arm64", + "platform": "windows", + "pythonTag": "cp312", + "sha256": "84008a41e51615a49fc9966191ff91509e3c40b939176e643fd50a5c2196b8f8", + "url": "https://files.pythonhosted.org/packages/b3/38/89ba8ad64ae25be8de66a6d463314cf1eb366222074cfda9ee839c56a4b4/mdurl-0.1.2-py3-none-any.whl", + "version": "0.1.2" + }, + { + "byteSize": 1231151, + "distribution": "pygments", + "filename": "pygments-2.20.0-py3-none-any.whl", + "machine": "arm64", + "platform": "windows", + "pythonTag": "cp312", + "sha256": "81a9e26dd42fd28a23a2d169d86d7ac03b46e2f8b59ed4698fb4785f946d0176", + "url": "https://files.pythonhosted.org/packages/f4/7e/a72dd26f3b0f4f2bf1dd8923c85f7ceb43172af56d63c7383eb62b332364/pygments-2.20.0-py3-none-any.whl", + "version": "2.20.0" + }, + { + "byteSize": 9755, + "distribution": "shellingham", + "filename": "shellingham-1.5.4-py2.py3-none-any.whl", + "machine": "arm64", + "platform": "windows", + "pythonTag": "cp312", + "sha256": "7ecfff8f2fd72616f7481040475a65b2bf8af90a56c89140852d1120324e8686", + "url": "https://files.pythonhosted.org/packages/e0/f9/0595336914c5619e5f28a1fb793285925a8cd4b432c9da0a987836c7f822/shellingham-1.5.4-py2.py3-none-any.whl", + "version": "1.5.4" + } + ], + "baseIncluded": true, + "baseRequirements": [ + { "distribution": "accelerate", "importName": "accelerate", "specifier": ">=0.21.0" }, + { "distribution": "anyio", "importName": "anyio", "specifier": "" }, + { "distribution": "certifi", "importName": "certifi", "specifier": "" }, + { "distribution": "click", "importName": "click", "specifier": "" }, + { "distribution": "filelock", "importName": "filelock", "specifier": "" }, + { "distribution": "fsspec", "importName": "fsspec", "specifier": "" }, + { "distribution": "h11", "importName": "h11", "specifier": "" }, + { "distribution": "hf-xet", "importName": "hf_xet", "specifier": "" }, + { "distribution": "httpcore", "importName": "httpcore", "specifier": "" }, + { "distribution": "httpx", "importName": "httpx", "specifier": "" }, + { "distribution": "huggingface-hub", "importName": "huggingface_hub", "specifier": ">=1.5.0,<2.0" }, + { "distribution": "idna", "importName": "idna", "specifier": "" }, + { "distribution": "jinja2", "importName": "jinja2", "specifier": "" }, + { "distribution": "markupsafe", "importName": "markupsafe", "specifier": "" }, + { "distribution": "mpmath", "importName": "mpmath", "specifier": "" }, + { "distribution": "networkx", "importName": "networkx", "specifier": "" }, + { "distribution": "numpy", "importName": "numpy", "specifier": ">=1.17" }, + { "distribution": "packaging", "importName": "packaging", "specifier": ">=20.0" }, + { "distribution": "pillow", "importName": "PIL", "specifier": ">=10.0.1,<=15.0" }, + { "distribution": "protobuf", "importName": "google.protobuf", "specifier": ">=6.31.1" }, + { "distribution": "psutil", "importName": "psutil", "specifier": "" }, + { "distribution": "pyyaml", "importName": "yaml", "specifier": ">=5.1" }, + { "distribution": "regex", "importName": "regex", "specifier": ">=2025.10.22" }, + { "distribution": "safetensors", "importName": "safetensors", "specifier": ">=0.8.0" }, + { "distribution": "sentencepiece", "importName": "sentencepiece", "specifier": ">=0.2.0" }, + { "distribution": "setuptools", "importName": "setuptools", "specifier": "" }, + { "distribution": "sympy", "importName": "sympy", "specifier": "" }, + { "distribution": "torch", "importName": "torch", "specifier": ">=2.6.0" }, + { "distribution": "torchvision", "importName": "torchvision", "specifier": ">=0.21.0" }, + { "distribution": "tqdm", "importName": "tqdm", "specifier": ">=4.60" }, + { "distribution": "typing-extensions", "importName": "typing_extensions", "specifier": "" }, + { "distribution": "colorama", "importName": "colorama", "platforms": ["windows"], "specifier": "" } + ], + "contractState": "qualified", + "cutoverReady": true, + "excludedQualificationSymbols": ["add_weighted_adapter"], + "id": "huggingface-transformers-peft-5.14.1-0.20.0", + "installActionAvailable": false, + "installPolicy": "explicit_first_use", + "label": "Hugging Face Transformers + PEFT", + "machine": "x86_64", + "overlayStatus": "missing", + "packages": [ + { + "distribution": "transformers", + "distributionUrl": "https://pypi.org/project/transformers/", + "importName": "transformers", + "installedVersion": "5.18.0", + "license": "Apache-2.0", + "projectUrl": "https://github.com/huggingface/transformers", + "publisher": "Hugging Face", + "requiredClassSymbols": [ + "Qwen2_5_VLForConditionalGeneration", + "Qwen2Tokenizer", + "Qwen2VLProcessor", + "AutoConfig", + "AutoTokenizer", + "AutoModelForCausalLM", + "LlamaForCausalLM", + "CLIPImageProcessor", + "CLIPVisionModel", + "UMT5EncoderModel", + "T5EncoderModel", + "T5Tokenizer", + "T5TokenizerFast", + "PreTrainedModel", + "PreTrainedTokenizerFast", + "CLIPTextModel", + "CLIPTextModelWithProjection", + "CLIPTokenizer", + "CLIPVisionModelWithProjection", + "SiglipImageProcessor", + "SiglipVisionModel", + "Qwen2TokenizerFast", + "Qwen3ForCausalLM", + "Qwen3Model", + "Qwen3VLForConditionalGeneration", + "Qwen3VLProcessor", + "AutoProcessor", + "AutoModelForImageTextToText", + "Idefics3ForConditionalGeneration", + "Idefics3Processor", + "AutoModelForMultimodalLM", + "JanusForConditionalGeneration", + "JanusProcessor", + "JanusImageProcessor", + "AutoModelForSpeechSeq2Seq", + "AutoModelForCTC", + "AnyToAnyPipeline", + "Mistral3Model", + "Mistral3ForConditionalGeneration", + "Ministral3ForCausalLM", + "GlmImageForConditionalGeneration", + "GlmImageProcessor", + "ByT5Tokenizer", + "BitsAndBytesConfig", + "GemmaModel", + "Gemma2Model", + "GemmaPreTrainedModel", + "Gemma2PreTrainedModel", + "GemmaTokenizer", + "GemmaTokenizerFast", + "transformers.models.t5gemma.modeling_t5gemma:T5GemmaEncoder", + "LlamaTokenizer", + "LlamaTokenizerFast" + ], + "requiredSymbols": [ + "Qwen2_5_VLForConditionalGeneration", + "Qwen2Tokenizer", + "Qwen2VLProcessor", + "AutoConfig", + "AutoTokenizer", + "AutoModelForCausalLM", + "LlamaForCausalLM", + "CLIPImageProcessor", + "CLIPVisionModel", + "UMT5EncoderModel", + "T5EncoderModel", + "T5Tokenizer", + "T5TokenizerFast", + "PreTrainedModel", + "PreTrainedTokenizerFast", + "CLIPTextModel", + "CLIPTextModelWithProjection", + "CLIPTokenizer", + "CLIPVisionModelWithProjection", + "SiglipImageProcessor", + "SiglipVisionModel", + "Qwen2TokenizerFast", + "Qwen3ForCausalLM", + "Qwen3Model", + "Qwen3VLForConditionalGeneration", + "Qwen3VLProcessor", + "AutoProcessor", + "AutoModelForImageTextToText", + "Idefics3ForConditionalGeneration", + "Idefics3Processor", + "AutoModelForMultimodalLM", + "JanusForConditionalGeneration", + "JanusProcessor", + "JanusImageProcessor", + "AutoModelForSpeechSeq2Seq", + "AutoModelForCTC", + "AnyToAnyPipeline", + "pipeline", + "Mistral3Model", + "Mistral3ForConditionalGeneration", + "Ministral3ForCausalLM", + "GlmImageForConditionalGeneration", + "GlmImageProcessor", + "ByT5Tokenizer", + "BitsAndBytesConfig", + "GemmaModel", + "Gemma2Model", + "GemmaPreTrainedModel", + "Gemma2PreTrainedModel", + "GemmaTokenizer", + "GemmaTokenizerFast", + "transformers.models.t5gemma.modeling_t5gemma:T5GemmaEncoder", + "LlamaTokenizer", + "LlamaTokenizerFast", + "transformers.core_model_loading:tqdm", + "transformers.utils.logging:tqdm", + "transformers.utils.logging:get_verbosity", + "transformers.utils.logging:set_verbosity" + ], + "requiredVersion": "5.14.1", + "requirement": "transformers==5.14.1", + "role": "runtime_root", + "status": "wrong_version" + }, + { + "distribution": "peft", + "distributionUrl": "https://pypi.org/project/peft/", + "importName": "peft", + "installedVersion": "0.21.2", + "license": "Apache-2.0", + "projectUrl": "https://github.com/huggingface/peft", + "publisher": "Hugging Face", + "requiredClassSymbols": [ + "LoraConfig", + "PeftConfig", + "PeftModel", + "tuners.tuners_utils.BaseTunerLayer", + "tuners.lora.layer.LoraLayer" + ], + "requiredSymbols": [ + "LoraConfig", + "PeftConfig", + "PeftModel", + "inject_adapter_in_model", + "set_peft_model_state_dict", + "tuners.tuners_utils.BaseTunerLayer", + "tuners.lora.layer.LoraLayer", + "utils.other._get_submodules", + "utils.save_and_load.get_peft_model_state_dict", + "peft.utils.hotswap:check_hotswap_configs_compatible", + "peft.utils.hotswap:hotswap_adapter_from_state_dict", + "peft.utils.hotswap:prepare_model_for_compiled_hotswap" + ], + "requiredVersion": "0.20.0", + "requirement": "peft==0.20.0", + "role": "runtime_root", + "status": "wrong_version" + } + ], + "pipelineAdapterMethods": [ + { + "method": "load_lora_weights", + "requiredParameters": ["pretrained_model_name_or_path_or_dict", "adapter_name", "hotswap"] + }, + { "method": "set_adapters", "requiredParameters": ["adapter_names", "adapter_weights"] }, + { "method": "delete_adapters", "requiredParameters": ["adapter_names"] }, + { "method": "fuse_lora", "requiredParameters": ["components", "lora_scale", "safe_fusing", "adapter_names"] }, + { "method": "unfuse_lora", "requiredParameters": ["components"] }, + { "method": "unload_lora_weights", "requiredParameters": [] }, + { "method": "get_list_adapters", "requiredParameters": [] }, + { "method": "enable_lora_hotswap", "requiredParameters": ["kwargs"] } + ], + "pipelineAdapterSymbols": [ + "AceStepPipeline", + "FluxPipeline", + "Flux2KleinPipeline", + "LTXConditionPipeline", + "QwenImagePipeline", + "QwenImageControlNetPipeline", + "QwenImageLayeredPipeline", + "QwenImageEditPipeline", + "QwenImageEditPlusPipeline", + "QwenImageImg2ImgPipeline", + "QwenImageInpaintPipeline", + "ChromaImg2ImgPipeline", + "ChromaInpaintPipeline", + "LTX2Pipeline", + "StableDiffusionXLPipeline", + "StableDiffusionXLImg2ImgPipeline", + "StableDiffusionXLInpaintPipeline", + "ZImageImg2ImgPipeline", + "ZImageInpaintPipeline", + "FluxImg2ImgPipeline", + "FluxInpaintPipeline", + "FluxKontextInpaintPipeline", + "Flux2KleinInpaintPipeline", + "WanPipeline" + ], + "platform": "windows", + "requirePeftBackend": true, + "requiredDiffusersSymbols": [ + "ComponentSpec", + "ComponentsManager", + "ModularPipeline", + "AutoencoderKLWan", + "BitsAndBytesConfig", + "QwenImagePipeline", + "QwenImageControlNetModel", + "QwenImageControlNetPipeline", + "QwenImageLayeredPipeline", + "QwenImageEditPipeline", + "QwenImageEditPlusPipeline", + "QwenImageImg2ImgPipeline", + "QwenImageInpaintPipeline", + "QwenImageEditInpaintPipeline", + "ChromaImg2ImgPipeline", + "ChromaInpaintPipeline", + "LTX2Pipeline", + "QwenImageModularPipeline", + "QwenImageEditModularPipeline", + "QwenImageEditPlusModularPipeline", + "QwenImageLayeredModularPipeline", + "MiniMaxMusic3ModularPipeline", + "AnimateDiffPAGPipeline", + "AnimateDiffVideoToVideoPipeline", + "AnimateDiffControlNetPipeline", + "AnimateDiffVideoToVideoControlNetPipeline", + "CogVideoXVideoToVideoPipeline", + "WanVACEPipeline", + "WanVideoToVideoPipeline", + "WanPipeline", + "WanImageToVideoPipeline", + "WanModularPipeline", + "WanImage2VideoModularPipeline", + "LTXConditionPipeline", + "AceStepPipeline", + "StableAudioPipeline", + "LongCatAudioDiTPipeline", + "AudioLDM2Pipeline", + "ShapEPipeline", + "ShapEImg2ImgPipeline", + "StableDiffusionXLModularPipeline", + "StableDiffusionXLPipeline", + "StableDiffusionXLImg2ImgPipeline", + "StableDiffusionXLInpaintPipeline", + "StableDiffusionControlNetPipeline", + "StableDiffusionControlNetImg2ImgPipeline", + "StableDiffusionControlNetInpaintPipeline", + "StableDiffusionControlNetPAGPipeline", + "StableDiffusionControlNetPAGInpaintPipeline", + "StableDiffusionXLControlNetPipeline", + "StableDiffusionXLControlNetImg2ImgPipeline", + "StableDiffusionXLControlNetInpaintPipeline", + "StableDiffusionXLControlNetPAGPipeline", + "StableDiffusionXLControlNetPAGImg2ImgPipeline", + "ZImageImg2ImgPipeline", + "ZImageInpaintPipeline", + "FluxImg2ImgPipeline", + "FluxInpaintPipeline", + "FluxPipeline", + "Flux2KleinPipeline", + "Flux2KleinInpaintPipeline", + "FluxKontextPipeline", + "FluxKontextInpaintPipeline", + "FluxFillPipeline", + "FluxControlPipeline", + "FluxControlImg2ImgPipeline", + "FluxControlInpaintPipeline", + "FluxPriorReduxPipeline", + "FluxModularPipeline", + "FluxKontextModularPipeline", + "Flux2KleinModularPipeline", + "ErnieImagePipeline", + "ErnieImageTransformer2DModel", + "AutoencoderKLFlux2", + "GlmImagePipeline", + "GlmImageTransformer2DModel", + "HunyuanDiTPipeline", + "HunyuanDiTControlNetPipeline", + "HunyuanDiT2DModel", + "HunyuanDiT2DControlNetModel", + "JoyImageEditPipeline", + "JoyImageEditPlusPipeline", + "JoyImageEditTransformer3DModel", + "JoyImageEditPlusTransformer3DModel", + "Kandinsky3Pipeline", + "Kandinsky3Img2ImgPipeline", + "Kandinsky3UNet", + "LongCatImagePipeline", + "LongCatImageEditPipeline", + "LongCatImageTransformer2DModel", + "LuminaPipeline", + "LuminaNextDiT2DModel", + "Lumina2Pipeline", + "Lumina2Transformer2DModel", + "OmniGenPipeline", + "OmniGenTransformer2DModel", + "OvisImagePipeline", + "OvisImageTransformer2DModel", + "PRXPipeline", + "PRXTransformer2DModel", + "NucleusMoEImagePipeline", + "NucleusMoEImageTransformer2DModel", + "AutoencoderKLQwenImage" + ], + "requirements": ["transformers==5.14.1", "peft==0.20.0"], + "schemaVersion": 1, + "specDigest": "sha256:b8a09a45113dd14c56688e4cae7592174b61683846f4b03da1117920125af5ee", + "stagedPackages": [ + { + "distribution": "transformers", + "distributionUrl": "https://pypi.org/project/transformers/", + "importName": "transformers", + "license": "Apache-2.0", + "projectUrl": "https://github.com/huggingface/transformers", + "publisher": "Hugging Face", + "requiredClassSymbols": [ + "Qwen2_5_VLForConditionalGeneration", + "Qwen2Tokenizer", + "Qwen2VLProcessor", + "AutoConfig", + "AutoTokenizer", + "AutoModelForCausalLM", + "LlamaForCausalLM", + "CLIPImageProcessor", + "CLIPVisionModel", + "UMT5EncoderModel", + "T5EncoderModel", + "T5Tokenizer", + "T5TokenizerFast", + "PreTrainedModel", + "PreTrainedTokenizerFast", + "CLIPTextModel", + "CLIPTextModelWithProjection", + "CLIPTokenizer", + "CLIPVisionModelWithProjection", + "SiglipImageProcessor", + "SiglipVisionModel", + "Qwen2TokenizerFast", + "Qwen3ForCausalLM", + "Qwen3Model", + "Qwen3VLForConditionalGeneration", + "Qwen3VLProcessor", + "AutoProcessor", + "AutoModelForImageTextToText", + "Idefics3ForConditionalGeneration", + "Idefics3Processor", + "AutoModelForMultimodalLM", + "JanusForConditionalGeneration", + "JanusProcessor", + "JanusImageProcessor", + "AutoModelForSpeechSeq2Seq", + "AutoModelForCTC", + "AnyToAnyPipeline", + "Mistral3Model", + "Mistral3ForConditionalGeneration", + "Ministral3ForCausalLM", + "GlmImageForConditionalGeneration", + "GlmImageProcessor", + "ByT5Tokenizer", + "BitsAndBytesConfig", + "GemmaModel", + "Gemma2Model", + "GemmaPreTrainedModel", + "Gemma2PreTrainedModel", + "GemmaTokenizer", + "GemmaTokenizerFast", + "transformers.models.t5gemma.modeling_t5gemma:T5GemmaEncoder", + "LlamaTokenizer", + "LlamaTokenizerFast" + ], + "requiredSymbols": [ + "Qwen2_5_VLForConditionalGeneration", + "Qwen2Tokenizer", + "Qwen2VLProcessor", + "AutoConfig", + "AutoTokenizer", + "AutoModelForCausalLM", + "LlamaForCausalLM", + "CLIPImageProcessor", + "CLIPVisionModel", + "UMT5EncoderModel", + "T5EncoderModel", + "T5Tokenizer", + "T5TokenizerFast", + "PreTrainedModel", + "PreTrainedTokenizerFast", + "CLIPTextModel", + "CLIPTextModelWithProjection", + "CLIPTokenizer", + "CLIPVisionModelWithProjection", + "SiglipImageProcessor", + "SiglipVisionModel", + "Qwen2TokenizerFast", + "Qwen3ForCausalLM", + "Qwen3Model", + "Qwen3VLForConditionalGeneration", + "Qwen3VLProcessor", + "AutoProcessor", + "AutoModelForImageTextToText", + "Idefics3ForConditionalGeneration", + "Idefics3Processor", + "AutoModelForMultimodalLM", + "JanusForConditionalGeneration", + "JanusProcessor", + "JanusImageProcessor", + "AutoModelForSpeechSeq2Seq", + "AutoModelForCTC", + "AnyToAnyPipeline", + "pipeline", + "Mistral3Model", + "Mistral3ForConditionalGeneration", + "Ministral3ForCausalLM", + "GlmImageForConditionalGeneration", + "GlmImageProcessor", + "ByT5Tokenizer", + "BitsAndBytesConfig", + "GemmaModel", + "Gemma2Model", + "GemmaPreTrainedModel", + "Gemma2PreTrainedModel", + "GemmaTokenizer", + "GemmaTokenizerFast", + "transformers.models.t5gemma.modeling_t5gemma:T5GemmaEncoder", + "LlamaTokenizer", + "LlamaTokenizerFast", + "transformers.core_model_loading:tqdm", + "transformers.utils.logging:tqdm", + "transformers.utils.logging:get_verbosity", + "transformers.utils.logging:set_verbosity" + ], + "requiredVersion": "5.14.1", + "requirement": "transformers==5.14.1", + "role": "runtime_root" + }, + { + "distribution": "peft", + "distributionUrl": "https://pypi.org/project/peft/", + "importName": "peft", + "license": "Apache-2.0", + "projectUrl": "https://github.com/huggingface/peft", + "publisher": "Hugging Face", + "requiredClassSymbols": [ + "LoraConfig", + "PeftConfig", + "PeftModel", + "tuners.tuners_utils.BaseTunerLayer", + "tuners.lora.layer.LoraLayer" + ], + "requiredSymbols": [ + "LoraConfig", + "PeftConfig", + "PeftModel", + "inject_adapter_in_model", + "set_peft_model_state_dict", + "tuners.tuners_utils.BaseTunerLayer", + "tuners.lora.layer.LoraLayer", + "utils.other._get_submodules", + "utils.save_and_load.get_peft_model_state_dict", + "peft.utils.hotswap:check_hotswap_configs_compatible", + "peft.utils.hotswap:hotswap_adapter_from_state_dict", + "peft.utils.hotswap:prepare_model_for_compiled_hotswap" + ], + "requiredVersion": "0.20.0", + "requirement": "peft==0.20.0", + "role": "runtime_root" + }, + { + "distribution": "tokenizers", + "distributionUrl": "https://pypi.org/project/tokenizers/", + "importName": "tokenizers", + "license": "Apache-2.0", + "projectUrl": "https://github.com/huggingface/tokenizers", + "publisher": "Hugging Face", + "requiredClassSymbols": ["Tokenizer", "tokenizers.tokenizers:Tokenizer"], + "requiredSymbols": ["Tokenizer", "tokenizers.tokenizers:Tokenizer"], + "requiredVersion": "0.22.2", + "requirement": "tokenizers==0.22.2", + "role": "runtime_dependency" + }, + { + "distribution": "typer", + "distributionUrl": "https://pypi.org/project/typer/", + "importName": "typer", + "license": "MIT", + "projectUrl": "https://github.com/fastapi/typer", + "publisher": "FastAPI", + "requiredClassSymbols": ["Typer"], + "requiredSymbols": ["Typer"], + "requiredVersion": "0.27.1", + "requirement": "typer==0.27.1", + "role": "runtime_dependency" + }, + { + "distribution": "annotated-doc", + "distributionUrl": "https://pypi.org/project/annotated-doc/", + "importName": "annotated_doc", + "license": "MIT", + "projectUrl": "https://github.com/fastapi/annotated-doc", + "publisher": "FastAPI", + "requiredClassSymbols": ["Doc"], + "requiredSymbols": ["Doc"], + "requiredVersion": "0.0.5", + "requirement": "annotated-doc==0.0.5", + "role": "runtime_dependency" + }, + { + "distribution": "rich", + "distributionUrl": "https://pypi.org/project/rich/", + "importName": "rich", + "license": "MIT", + "projectUrl": "https://github.com/Textualize/rich", + "publisher": "Textualize", + "requiredClassSymbols": [], + "requiredSymbols": ["print"], + "requiredVersion": "15.0.0", + "requirement": "rich==15.0.0", + "role": "runtime_dependency" + }, + { + "distribution": "markdown-it-py", + "distributionUrl": "https://pypi.org/project/markdown-it-py/", + "importName": "markdown_it", + "license": "MIT", + "projectUrl": "https://github.com/executablebooks/markdown-it-py", + "publisher": "Executable Books", + "requiredClassSymbols": ["MarkdownIt"], + "requiredSymbols": ["MarkdownIt"], + "requiredVersion": "4.2.0", + "requirement": "markdown-it-py==4.2.0", + "role": "runtime_dependency" + }, + { + "distribution": "mdurl", + "distributionUrl": "https://pypi.org/project/mdurl/", + "importName": "mdurl", + "license": "MIT", + "projectUrl": "https://github.com/executablebooks/mdurl", + "publisher": "Executable Books", + "requiredClassSymbols": [], + "requiredSymbols": ["encode"], + "requiredVersion": "0.1.2", + "requirement": "mdurl==0.1.2", + "role": "runtime_dependency" + }, + { + "distribution": "pygments", + "distributionUrl": "https://pypi.org/project/Pygments/", + "importName": "pygments", + "license": "BSD-2-Clause", + "projectUrl": "https://github.com/pygments/pygments", + "publisher": "Pygments", + "requiredClassSymbols": [], + "requiredSymbols": ["highlight"], + "requiredVersion": "2.20.0", + "requirement": "pygments==2.20.0", + "role": "runtime_dependency" + }, + { + "distribution": "shellingham", + "distributionUrl": "https://pypi.org/project/shellingham/", + "importName": "shellingham", + "license": "ISC", + "projectUrl": "https://github.com/sarugaku/shellingham", + "publisher": "Sarugaku", + "requiredClassSymbols": [], + "requiredSymbols": ["detect_shell"], + "requiredVersion": "1.5.4", + "requirement": "shellingham==1.5.4", + "role": "runtime_dependency" + } + ], + "stagedRequirements": [ + "transformers==5.14.1", + "peft==0.20.0", + "tokenizers==0.22.2", + "typer==0.27.1", + "annotated-doc==0.0.5", + "rich==15.0.0", + "markdown-it-py==4.2.0", + "mdurl==0.1.2", + "pygments==2.20.0", + "shellingham==1.5.4" + ], + "status": "wrong_version", + "targetContracts": [ + { + "activationAvailable": true, + "contractState": "qualified", + "cutoverReady": true, + "installActionAvailable": true, + "machine": "x86_64", + "platform": "linux" + }, + { + "activationAvailable": false, + "contractState": "candidate_unqualified", + "cutoverReady": false, + "installActionAvailable": false, + "machine": "arm64", + "platform": "linux" + }, + { + "activationAvailable": false, + "contractState": "candidate_unqualified", + "cutoverReady": false, + "installActionAvailable": false, + "machine": "x86_64", + "platform": "macos" + }, + { + "activationAvailable": false, + "contractState": "candidate_unqualified", + "cutoverReady": false, + "installActionAvailable": false, + "machine": "arm64", + "platform": "macos" + }, + { + "activationAvailable": true, + "contractState": "qualified", + "cutoverReady": true, + "installActionAvailable": true, + "machine": "x86_64", + "platform": "windows" + }, + { + "activationAvailable": false, + "contractState": "candidate_unqualified", + "cutoverReady": false, + "installActionAvailable": false, + "machine": "arm64", + "platform": "windows" + } + ] + }, + { + "activationAvailable": false, + "artifactLocks": [ + { + "byteSize": 775777, + "distribution": "peft", + "filename": "peft-0.20.0-py3-none-any.whl", + "machine": "x86_64", + "platform": "linux", + "pythonTag": "cp312", + "sha256": "0fbba16ffebfad3de96e06f2da6860fd860292324b85b6141909fa1e26ea9233", + "url": "https://files.pythonhosted.org/packages/28/79/13bcabb8048126422d5c4b880575d40886c726f354db88cfeed4325525bb/peft-0.20.0-py3-none-any.whl", + "version": "0.20.0" + }, + { + "byteSize": 3274982, + "distribution": "tokenizers", + "filename": "tokenizers-0.22.2-cp39-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", + "machine": "x86_64", + "platform": "linux", + "pythonTag": "cp312", + "sha256": "369cc9fc8cc10cb24143873a0d95438bb8ee257bb80c71989e3ee290e8d72c67", + "url": "https://files.pythonhosted.org/packages/2e/76/932be4b50ef6ccedf9d3c6639b056a967a86258c6d9200643f01269211ca/tokenizers-0.22.2-cp39-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", + "version": "0.22.2" + }, + { + "byteSize": 122874, + "distribution": "typer", + "filename": "typer-0.27.1-py3-none-any.whl", + "machine": "x86_64", + "platform": "linux", + "pythonTag": "cp312", + "sha256": "53150287edd11baeb4e4722c8e394fcdf8181c0ae89485cba8d25c778d5edd56", + "url": "https://files.pythonhosted.org/packages/43/89/9518bc0c3929bee36b3a4a8e3daddd6e03f92f9961c66d4983b837160543/typer-0.27.1-py3-none-any.whl", + "version": "0.27.1" + }, + { + "byteSize": 5302, + "distribution": "annotated-doc", + "filename": "annotated_doc-0.0.5-py3-none-any.whl", + "machine": "x86_64", + "platform": "linux", + "pythonTag": "cp312", + "sha256": "117bac03a25ede5df5440e855b32d556049ca169ead221505badf432fed4b101", + "url": "https://files.pythonhosted.org/packages/3e/30/e900b21425a860e195f32e37657aa1f7c7f2b1bfb26f03ca209b90933c06/annotated_doc-0.0.5-py3-none-any.whl", + "version": "0.0.5" + }, + { + "byteSize": 310654, + "distribution": "rich", + "filename": "rich-15.0.0-py3-none-any.whl", + "machine": "x86_64", + "platform": "linux", + "pythonTag": "cp312", + "sha256": "33bd4ef74232fb73fe9279a257718407f169c09b78a87ad3d296f548e27de0bb", + "url": "https://files.pythonhosted.org/packages/82/3b/64d4899d73f91ba49a8c18a8ff3f0ea8f1c1d75481760df8c68ef5235bf5/rich-15.0.0-py3-none-any.whl", + "version": "15.0.0" + }, + { + "byteSize": 91687, + "distribution": "markdown-it-py", + "filename": "markdown_it_py-4.2.0-py3-none-any.whl", + "machine": "x86_64", + "platform": "linux", + "pythonTag": "cp312", + "sha256": "9f7ebbcd14fe59494226453aed97c1070d83f8d24b6fc3a3bcf9a38092641c4a", + "url": "https://files.pythonhosted.org/packages/b3/81/4da04ced5a082363ecfa159c010d200ecbd959ae410c10c0264a38cac0f5/markdown_it_py-4.2.0-py3-none-any.whl", + "version": "4.2.0" + }, + { + "byteSize": 9979, + "distribution": "mdurl", + "filename": "mdurl-0.1.2-py3-none-any.whl", + "machine": "x86_64", + "platform": "linux", + "pythonTag": "cp312", + "sha256": "84008a41e51615a49fc9966191ff91509e3c40b939176e643fd50a5c2196b8f8", + "url": "https://files.pythonhosted.org/packages/b3/38/89ba8ad64ae25be8de66a6d463314cf1eb366222074cfda9ee839c56a4b4/mdurl-0.1.2-py3-none-any.whl", + "version": "0.1.2" + }, + { + "byteSize": 1231151, + "distribution": "pygments", + "filename": "pygments-2.20.0-py3-none-any.whl", + "machine": "x86_64", + "platform": "linux", + "pythonTag": "cp312", + "sha256": "81a9e26dd42fd28a23a2d169d86d7ac03b46e2f8b59ed4698fb4785f946d0176", + "url": "https://files.pythonhosted.org/packages/f4/7e/a72dd26f3b0f4f2bf1dd8923c85f7ceb43172af56d63c7383eb62b332364/pygments-2.20.0-py3-none-any.whl", + "version": "2.20.0" + }, + { + "byteSize": 9755, + "distribution": "shellingham", + "filename": "shellingham-1.5.4-py2.py3-none-any.whl", + "machine": "x86_64", + "platform": "linux", + "pythonTag": "cp312", + "sha256": "7ecfff8f2fd72616f7481040475a65b2bf8af90a56c89140852d1120324e8686", + "url": "https://files.pythonhosted.org/packages/e0/f9/0595336914c5619e5f28a1fb793285925a8cd4b432c9da0a987836c7f822/shellingham-1.5.4-py2.py3-none-any.whl", + "version": "1.5.4" + }, + { + "byteSize": 775777, + "distribution": "peft", + "filename": "peft-0.20.0-py3-none-any.whl", + "machine": "arm64", + "platform": "linux", + "pythonTag": "cp312", + "sha256": "0fbba16ffebfad3de96e06f2da6860fd860292324b85b6141909fa1e26ea9233", + "url": "https://files.pythonhosted.org/packages/28/79/13bcabb8048126422d5c4b880575d40886c726f354db88cfeed4325525bb/peft-0.20.0-py3-none-any.whl", + "version": "0.20.0" + }, + { + "byteSize": 3290736, + "distribution": "tokenizers", + "filename": "tokenizers-0.22.2-cp39-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", + "machine": "arm64", + "platform": "linux", + "pythonTag": "cp312", + "sha256": "2249487018adec45d6e3554c71d46eb39fa8ea67156c640f7513eb26f318cec7", + "url": "https://files.pythonhosted.org/packages/d6/84/7990e799f1309a8b87af6b948f31edaa12a3ed22d11b352eaf4f4b2e5753/tokenizers-0.22.2-cp39-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", + "version": "0.22.2" + }, + { + "byteSize": 122874, + "distribution": "typer", + "filename": "typer-0.27.1-py3-none-any.whl", + "machine": "arm64", + "platform": "linux", + "pythonTag": "cp312", + "sha256": "53150287edd11baeb4e4722c8e394fcdf8181c0ae89485cba8d25c778d5edd56", + "url": "https://files.pythonhosted.org/packages/43/89/9518bc0c3929bee36b3a4a8e3daddd6e03f92f9961c66d4983b837160543/typer-0.27.1-py3-none-any.whl", + "version": "0.27.1" + }, + { + "byteSize": 5302, + "distribution": "annotated-doc", + "filename": "annotated_doc-0.0.5-py3-none-any.whl", + "machine": "arm64", + "platform": "linux", + "pythonTag": "cp312", + "sha256": "117bac03a25ede5df5440e855b32d556049ca169ead221505badf432fed4b101", + "url": "https://files.pythonhosted.org/packages/3e/30/e900b21425a860e195f32e37657aa1f7c7f2b1bfb26f03ca209b90933c06/annotated_doc-0.0.5-py3-none-any.whl", + "version": "0.0.5" + }, + { + "byteSize": 310654, + "distribution": "rich", + "filename": "rich-15.0.0-py3-none-any.whl", + "machine": "arm64", + "platform": "linux", + "pythonTag": "cp312", + "sha256": "33bd4ef74232fb73fe9279a257718407f169c09b78a87ad3d296f548e27de0bb", + "url": "https://files.pythonhosted.org/packages/82/3b/64d4899d73f91ba49a8c18a8ff3f0ea8f1c1d75481760df8c68ef5235bf5/rich-15.0.0-py3-none-any.whl", + "version": "15.0.0" + }, + { + "byteSize": 91687, + "distribution": "markdown-it-py", + "filename": "markdown_it_py-4.2.0-py3-none-any.whl", + "machine": "arm64", + "platform": "linux", + "pythonTag": "cp312", + "sha256": "9f7ebbcd14fe59494226453aed97c1070d83f8d24b6fc3a3bcf9a38092641c4a", + "url": "https://files.pythonhosted.org/packages/b3/81/4da04ced5a082363ecfa159c010d200ecbd959ae410c10c0264a38cac0f5/markdown_it_py-4.2.0-py3-none-any.whl", + "version": "4.2.0" + }, + { + "byteSize": 9979, + "distribution": "mdurl", + "filename": "mdurl-0.1.2-py3-none-any.whl", + "machine": "arm64", + "platform": "linux", + "pythonTag": "cp312", + "sha256": "84008a41e51615a49fc9966191ff91509e3c40b939176e643fd50a5c2196b8f8", + "url": "https://files.pythonhosted.org/packages/b3/38/89ba8ad64ae25be8de66a6d463314cf1eb366222074cfda9ee839c56a4b4/mdurl-0.1.2-py3-none-any.whl", + "version": "0.1.2" + }, + { + "byteSize": 1231151, + "distribution": "pygments", + "filename": "pygments-2.20.0-py3-none-any.whl", + "machine": "arm64", + "platform": "linux", + "pythonTag": "cp312", + "sha256": "81a9e26dd42fd28a23a2d169d86d7ac03b46e2f8b59ed4698fb4785f946d0176", + "url": "https://files.pythonhosted.org/packages/f4/7e/a72dd26f3b0f4f2bf1dd8923c85f7ceb43172af56d63c7383eb62b332364/pygments-2.20.0-py3-none-any.whl", + "version": "2.20.0" + }, + { + "byteSize": 9755, + "distribution": "shellingham", + "filename": "shellingham-1.5.4-py2.py3-none-any.whl", + "machine": "arm64", + "platform": "linux", + "pythonTag": "cp312", + "sha256": "7ecfff8f2fd72616f7481040475a65b2bf8af90a56c89140852d1120324e8686", + "url": "https://files.pythonhosted.org/packages/e0/f9/0595336914c5619e5f28a1fb793285925a8cd4b432c9da0a987836c7f822/shellingham-1.5.4-py2.py3-none-any.whl", + "version": "1.5.4" + }, + { + "byteSize": 775777, + "distribution": "peft", + "filename": "peft-0.20.0-py3-none-any.whl", + "machine": "x86_64", + "platform": "macos", + "pythonTag": "cp312", + "sha256": "0fbba16ffebfad3de96e06f2da6860fd860292324b85b6141909fa1e26ea9233", + "url": "https://files.pythonhosted.org/packages/28/79/13bcabb8048126422d5c4b880575d40886c726f354db88cfeed4325525bb/peft-0.20.0-py3-none-any.whl", + "version": "0.20.0" + }, + { + "byteSize": 3100275, + "distribution": "tokenizers", + "filename": "tokenizers-0.22.2-cp39-abi3-macosx_10_12_x86_64.whl", + "machine": "x86_64", + "platform": "macos", + "pythonTag": "cp312", + "sha256": "544dd704ae7238755d790de45ba8da072e9af3eea688f698b137915ae959281c", + "url": "https://files.pythonhosted.org/packages/92/97/5dbfabf04c7e348e655e907ed27913e03db0923abb5dfdd120d7b25630e1/tokenizers-0.22.2-cp39-abi3-macosx_10_12_x86_64.whl", + "version": "0.22.2" + }, + { + "byteSize": 122874, + "distribution": "typer", + "filename": "typer-0.27.1-py3-none-any.whl", + "machine": "x86_64", + "platform": "macos", + "pythonTag": "cp312", + "sha256": "53150287edd11baeb4e4722c8e394fcdf8181c0ae89485cba8d25c778d5edd56", + "url": "https://files.pythonhosted.org/packages/43/89/9518bc0c3929bee36b3a4a8e3daddd6e03f92f9961c66d4983b837160543/typer-0.27.1-py3-none-any.whl", + "version": "0.27.1" + }, + { + "byteSize": 5302, + "distribution": "annotated-doc", + "filename": "annotated_doc-0.0.5-py3-none-any.whl", + "machine": "x86_64", + "platform": "macos", + "pythonTag": "cp312", + "sha256": "117bac03a25ede5df5440e855b32d556049ca169ead221505badf432fed4b101", + "url": "https://files.pythonhosted.org/packages/3e/30/e900b21425a860e195f32e37657aa1f7c7f2b1bfb26f03ca209b90933c06/annotated_doc-0.0.5-py3-none-any.whl", + "version": "0.0.5" + }, + { + "byteSize": 310654, + "distribution": "rich", + "filename": "rich-15.0.0-py3-none-any.whl", + "machine": "x86_64", + "platform": "macos", + "pythonTag": "cp312", + "sha256": "33bd4ef74232fb73fe9279a257718407f169c09b78a87ad3d296f548e27de0bb", + "url": "https://files.pythonhosted.org/packages/82/3b/64d4899d73f91ba49a8c18a8ff3f0ea8f1c1d75481760df8c68ef5235bf5/rich-15.0.0-py3-none-any.whl", + "version": "15.0.0" + }, + { + "byteSize": 91687, + "distribution": "markdown-it-py", + "filename": "markdown_it_py-4.2.0-py3-none-any.whl", + "machine": "x86_64", + "platform": "macos", + "pythonTag": "cp312", + "sha256": "9f7ebbcd14fe59494226453aed97c1070d83f8d24b6fc3a3bcf9a38092641c4a", + "url": "https://files.pythonhosted.org/packages/b3/81/4da04ced5a082363ecfa159c010d200ecbd959ae410c10c0264a38cac0f5/markdown_it_py-4.2.0-py3-none-any.whl", + "version": "4.2.0" + }, + { + "byteSize": 9979, + "distribution": "mdurl", + "filename": "mdurl-0.1.2-py3-none-any.whl", + "machine": "x86_64", + "platform": "macos", + "pythonTag": "cp312", + "sha256": "84008a41e51615a49fc9966191ff91509e3c40b939176e643fd50a5c2196b8f8", + "url": "https://files.pythonhosted.org/packages/b3/38/89ba8ad64ae25be8de66a6d463314cf1eb366222074cfda9ee839c56a4b4/mdurl-0.1.2-py3-none-any.whl", + "version": "0.1.2" + }, + { + "byteSize": 1231151, + "distribution": "pygments", + "filename": "pygments-2.20.0-py3-none-any.whl", + "machine": "x86_64", + "platform": "macos", + "pythonTag": "cp312", + "sha256": "81a9e26dd42fd28a23a2d169d86d7ac03b46e2f8b59ed4698fb4785f946d0176", + "url": "https://files.pythonhosted.org/packages/f4/7e/a72dd26f3b0f4f2bf1dd8923c85f7ceb43172af56d63c7383eb62b332364/pygments-2.20.0-py3-none-any.whl", + "version": "2.20.0" + }, + { + "byteSize": 9755, + "distribution": "shellingham", + "filename": "shellingham-1.5.4-py2.py3-none-any.whl", + "machine": "x86_64", + "platform": "macos", + "pythonTag": "cp312", + "sha256": "7ecfff8f2fd72616f7481040475a65b2bf8af90a56c89140852d1120324e8686", + "url": "https://files.pythonhosted.org/packages/e0/f9/0595336914c5619e5f28a1fb793285925a8cd4b432c9da0a987836c7f822/shellingham-1.5.4-py2.py3-none-any.whl", + "version": "1.5.4" + }, + { + "byteSize": 775777, + "distribution": "peft", + "filename": "peft-0.20.0-py3-none-any.whl", + "machine": "arm64", + "platform": "macos", + "pythonTag": "cp312", + "sha256": "0fbba16ffebfad3de96e06f2da6860fd860292324b85b6141909fa1e26ea9233", + "url": "https://files.pythonhosted.org/packages/28/79/13bcabb8048126422d5c4b880575d40886c726f354db88cfeed4325525bb/peft-0.20.0-py3-none-any.whl", + "version": "0.20.0" + }, + { + "byteSize": 2981472, + "distribution": "tokenizers", + "filename": "tokenizers-0.22.2-cp39-abi3-macosx_11_0_arm64.whl", + "machine": "arm64", + "platform": "macos", + "pythonTag": "cp312", + "sha256": "1e418a55456beedca4621dbab65a318981467a2b188e982a23e117f115ce5001", + "url": "https://files.pythonhosted.org/packages/2e/47/174dca0502ef88b28f1c9e06b73ce33500eedfac7a7692108aec220464e7/tokenizers-0.22.2-cp39-abi3-macosx_11_0_arm64.whl", + "version": "0.22.2" + }, + { + "byteSize": 122874, + "distribution": "typer", + "filename": "typer-0.27.1-py3-none-any.whl", + "machine": "arm64", + "platform": "macos", + "pythonTag": "cp312", + "sha256": "53150287edd11baeb4e4722c8e394fcdf8181c0ae89485cba8d25c778d5edd56", + "url": "https://files.pythonhosted.org/packages/43/89/9518bc0c3929bee36b3a4a8e3daddd6e03f92f9961c66d4983b837160543/typer-0.27.1-py3-none-any.whl", + "version": "0.27.1" + }, + { + "byteSize": 5302, + "distribution": "annotated-doc", + "filename": "annotated_doc-0.0.5-py3-none-any.whl", + "machine": "arm64", + "platform": "macos", + "pythonTag": "cp312", + "sha256": "117bac03a25ede5df5440e855b32d556049ca169ead221505badf432fed4b101", + "url": "https://files.pythonhosted.org/packages/3e/30/e900b21425a860e195f32e37657aa1f7c7f2b1bfb26f03ca209b90933c06/annotated_doc-0.0.5-py3-none-any.whl", + "version": "0.0.5" + }, + { + "byteSize": 310654, + "distribution": "rich", + "filename": "rich-15.0.0-py3-none-any.whl", + "machine": "arm64", + "platform": "macos", + "pythonTag": "cp312", + "sha256": "33bd4ef74232fb73fe9279a257718407f169c09b78a87ad3d296f548e27de0bb", + "url": "https://files.pythonhosted.org/packages/82/3b/64d4899d73f91ba49a8c18a8ff3f0ea8f1c1d75481760df8c68ef5235bf5/rich-15.0.0-py3-none-any.whl", + "version": "15.0.0" + }, + { + "byteSize": 91687, + "distribution": "markdown-it-py", + "filename": "markdown_it_py-4.2.0-py3-none-any.whl", + "machine": "arm64", + "platform": "macos", + "pythonTag": "cp312", + "sha256": "9f7ebbcd14fe59494226453aed97c1070d83f8d24b6fc3a3bcf9a38092641c4a", + "url": "https://files.pythonhosted.org/packages/b3/81/4da04ced5a082363ecfa159c010d200ecbd959ae410c10c0264a38cac0f5/markdown_it_py-4.2.0-py3-none-any.whl", + "version": "4.2.0" + }, + { + "byteSize": 9979, + "distribution": "mdurl", + "filename": "mdurl-0.1.2-py3-none-any.whl", + "machine": "arm64", + "platform": "macos", + "pythonTag": "cp312", + "sha256": "84008a41e51615a49fc9966191ff91509e3c40b939176e643fd50a5c2196b8f8", + "url": "https://files.pythonhosted.org/packages/b3/38/89ba8ad64ae25be8de66a6d463314cf1eb366222074cfda9ee839c56a4b4/mdurl-0.1.2-py3-none-any.whl", + "version": "0.1.2" + }, + { + "byteSize": 1231151, + "distribution": "pygments", + "filename": "pygments-2.20.0-py3-none-any.whl", + "machine": "arm64", + "platform": "macos", + "pythonTag": "cp312", + "sha256": "81a9e26dd42fd28a23a2d169d86d7ac03b46e2f8b59ed4698fb4785f946d0176", + "url": "https://files.pythonhosted.org/packages/f4/7e/a72dd26f3b0f4f2bf1dd8923c85f7ceb43172af56d63c7383eb62b332364/pygments-2.20.0-py3-none-any.whl", + "version": "2.20.0" + }, + { + "byteSize": 9755, + "distribution": "shellingham", + "filename": "shellingham-1.5.4-py2.py3-none-any.whl", + "machine": "arm64", + "platform": "macos", + "pythonTag": "cp312", + "sha256": "7ecfff8f2fd72616f7481040475a65b2bf8af90a56c89140852d1120324e8686", + "url": "https://files.pythonhosted.org/packages/e0/f9/0595336914c5619e5f28a1fb793285925a8cd4b432c9da0a987836c7f822/shellingham-1.5.4-py2.py3-none-any.whl", + "version": "1.5.4" + }, + { + "byteSize": 775777, + "distribution": "peft", + "filename": "peft-0.20.0-py3-none-any.whl", + "machine": "x86_64", + "platform": "windows", + "pythonTag": "cp312", + "sha256": "0fbba16ffebfad3de96e06f2da6860fd860292324b85b6141909fa1e26ea9233", + "url": "https://files.pythonhosted.org/packages/28/79/13bcabb8048126422d5c4b880575d40886c726f354db88cfeed4325525bb/peft-0.20.0-py3-none-any.whl", + "version": "0.20.0" + }, + { + "byteSize": 2747786, + "distribution": "tokenizers", + "filename": "tokenizers-0.22.2-cp39-abi3-win_amd64.whl", + "machine": "x86_64", + "platform": "windows", + "pythonTag": "cp312", + "sha256": "c9ea31edff2968b44a88f97d784c2f16dc0729b8b143ed004699ebca91f05c48", + "url": "https://files.pythonhosted.org/packages/65/71/0670843133a43d43070abeb1949abfdef12a86d490bea9cd9e18e37c5ff7/tokenizers-0.22.2-cp39-abi3-win_amd64.whl", + "version": "0.22.2" + }, + { + "byteSize": 122874, + "distribution": "typer", + "filename": "typer-0.27.1-py3-none-any.whl", + "machine": "x86_64", + "platform": "windows", + "pythonTag": "cp312", + "sha256": "53150287edd11baeb4e4722c8e394fcdf8181c0ae89485cba8d25c778d5edd56", + "url": "https://files.pythonhosted.org/packages/43/89/9518bc0c3929bee36b3a4a8e3daddd6e03f92f9961c66d4983b837160543/typer-0.27.1-py3-none-any.whl", + "version": "0.27.1" + }, + { + "byteSize": 5302, + "distribution": "annotated-doc", + "filename": "annotated_doc-0.0.5-py3-none-any.whl", + "machine": "x86_64", + "platform": "windows", + "pythonTag": "cp312", + "sha256": "117bac03a25ede5df5440e855b32d556049ca169ead221505badf432fed4b101", + "url": "https://files.pythonhosted.org/packages/3e/30/e900b21425a860e195f32e37657aa1f7c7f2b1bfb26f03ca209b90933c06/annotated_doc-0.0.5-py3-none-any.whl", + "version": "0.0.5" + }, + { + "byteSize": 310654, + "distribution": "rich", + "filename": "rich-15.0.0-py3-none-any.whl", + "machine": "x86_64", + "platform": "windows", + "pythonTag": "cp312", + "sha256": "33bd4ef74232fb73fe9279a257718407f169c09b78a87ad3d296f548e27de0bb", + "url": "https://files.pythonhosted.org/packages/82/3b/64d4899d73f91ba49a8c18a8ff3f0ea8f1c1d75481760df8c68ef5235bf5/rich-15.0.0-py3-none-any.whl", + "version": "15.0.0" + }, + { + "byteSize": 91687, + "distribution": "markdown-it-py", + "filename": "markdown_it_py-4.2.0-py3-none-any.whl", + "machine": "x86_64", + "platform": "windows", + "pythonTag": "cp312", + "sha256": "9f7ebbcd14fe59494226453aed97c1070d83f8d24b6fc3a3bcf9a38092641c4a", + "url": "https://files.pythonhosted.org/packages/b3/81/4da04ced5a082363ecfa159c010d200ecbd959ae410c10c0264a38cac0f5/markdown_it_py-4.2.0-py3-none-any.whl", + "version": "4.2.0" + }, + { + "byteSize": 9979, + "distribution": "mdurl", + "filename": "mdurl-0.1.2-py3-none-any.whl", + "machine": "x86_64", + "platform": "windows", + "pythonTag": "cp312", + "sha256": "84008a41e51615a49fc9966191ff91509e3c40b939176e643fd50a5c2196b8f8", + "url": "https://files.pythonhosted.org/packages/b3/38/89ba8ad64ae25be8de66a6d463314cf1eb366222074cfda9ee839c56a4b4/mdurl-0.1.2-py3-none-any.whl", + "version": "0.1.2" + }, + { + "byteSize": 1231151, + "distribution": "pygments", + "filename": "pygments-2.20.0-py3-none-any.whl", + "machine": "x86_64", + "platform": "windows", + "pythonTag": "cp312", + "sha256": "81a9e26dd42fd28a23a2d169d86d7ac03b46e2f8b59ed4698fb4785f946d0176", + "url": "https://files.pythonhosted.org/packages/f4/7e/a72dd26f3b0f4f2bf1dd8923c85f7ceb43172af56d63c7383eb62b332364/pygments-2.20.0-py3-none-any.whl", + "version": "2.20.0" + }, + { + "byteSize": 9755, + "distribution": "shellingham", + "filename": "shellingham-1.5.4-py2.py3-none-any.whl", + "machine": "x86_64", + "platform": "windows", + "pythonTag": "cp312", + "sha256": "7ecfff8f2fd72616f7481040475a65b2bf8af90a56c89140852d1120324e8686", + "url": "https://files.pythonhosted.org/packages/e0/f9/0595336914c5619e5f28a1fb793285925a8cd4b432c9da0a987836c7f822/shellingham-1.5.4-py2.py3-none-any.whl", + "version": "1.5.4" + }, + { + "byteSize": 775777, + "distribution": "peft", + "filename": "peft-0.20.0-py3-none-any.whl", + "machine": "arm64", + "platform": "windows", + "pythonTag": "cp312", + "sha256": "0fbba16ffebfad3de96e06f2da6860fd860292324b85b6141909fa1e26ea9233", + "url": "https://files.pythonhosted.org/packages/28/79/13bcabb8048126422d5c4b880575d40886c726f354db88cfeed4325525bb/peft-0.20.0-py3-none-any.whl", + "version": "0.20.0" + }, + { + "byteSize": 2612133, + "distribution": "tokenizers", + "filename": "tokenizers-0.22.2-cp39-abi3-win_arm64.whl", + "machine": "arm64", + "platform": "windows", + "pythonTag": "cp312", + "sha256": "9ce725d22864a1e965217204946f830c37876eee3b2ba6fc6255e8e903d5fcbc", + "url": "https://files.pythonhosted.org/packages/72/f4/0de46cfa12cdcbcd464cc59fde36912af405696f687e53a091fb432f694c/tokenizers-0.22.2-cp39-abi3-win_arm64.whl", + "version": "0.22.2" + }, + { + "byteSize": 122874, + "distribution": "typer", + "filename": "typer-0.27.1-py3-none-any.whl", + "machine": "arm64", + "platform": "windows", + "pythonTag": "cp312", + "sha256": "53150287edd11baeb4e4722c8e394fcdf8181c0ae89485cba8d25c778d5edd56", + "url": "https://files.pythonhosted.org/packages/43/89/9518bc0c3929bee36b3a4a8e3daddd6e03f92f9961c66d4983b837160543/typer-0.27.1-py3-none-any.whl", + "version": "0.27.1" + }, + { + "byteSize": 5302, + "distribution": "annotated-doc", + "filename": "annotated_doc-0.0.5-py3-none-any.whl", + "machine": "arm64", + "platform": "windows", + "pythonTag": "cp312", + "sha256": "117bac03a25ede5df5440e855b32d556049ca169ead221505badf432fed4b101", + "url": "https://files.pythonhosted.org/packages/3e/30/e900b21425a860e195f32e37657aa1f7c7f2b1bfb26f03ca209b90933c06/annotated_doc-0.0.5-py3-none-any.whl", + "version": "0.0.5" + }, + { + "byteSize": 310654, + "distribution": "rich", + "filename": "rich-15.0.0-py3-none-any.whl", + "machine": "arm64", + "platform": "windows", + "pythonTag": "cp312", + "sha256": "33bd4ef74232fb73fe9279a257718407f169c09b78a87ad3d296f548e27de0bb", + "url": "https://files.pythonhosted.org/packages/82/3b/64d4899d73f91ba49a8c18a8ff3f0ea8f1c1d75481760df8c68ef5235bf5/rich-15.0.0-py3-none-any.whl", + "version": "15.0.0" + }, + { + "byteSize": 91687, + "distribution": "markdown-it-py", + "filename": "markdown_it_py-4.2.0-py3-none-any.whl", + "machine": "arm64", + "platform": "windows", + "pythonTag": "cp312", + "sha256": "9f7ebbcd14fe59494226453aed97c1070d83f8d24b6fc3a3bcf9a38092641c4a", + "url": "https://files.pythonhosted.org/packages/b3/81/4da04ced5a082363ecfa159c010d200ecbd959ae410c10c0264a38cac0f5/markdown_it_py-4.2.0-py3-none-any.whl", + "version": "4.2.0" + }, + { + "byteSize": 9979, + "distribution": "mdurl", + "filename": "mdurl-0.1.2-py3-none-any.whl", + "machine": "arm64", + "platform": "windows", + "pythonTag": "cp312", + "sha256": "84008a41e51615a49fc9966191ff91509e3c40b939176e643fd50a5c2196b8f8", + "url": "https://files.pythonhosted.org/packages/b3/38/89ba8ad64ae25be8de66a6d463314cf1eb366222074cfda9ee839c56a4b4/mdurl-0.1.2-py3-none-any.whl", + "version": "0.1.2" + }, + { + "byteSize": 1231151, + "distribution": "pygments", + "filename": "pygments-2.20.0-py3-none-any.whl", + "machine": "arm64", + "platform": "windows", + "pythonTag": "cp312", + "sha256": "81a9e26dd42fd28a23a2d169d86d7ac03b46e2f8b59ed4698fb4785f946d0176", + "url": "https://files.pythonhosted.org/packages/f4/7e/a72dd26f3b0f4f2bf1dd8923c85f7ceb43172af56d63c7383eb62b332364/pygments-2.20.0-py3-none-any.whl", + "version": "2.20.0" + }, + { + "byteSize": 9755, + "distribution": "shellingham", + "filename": "shellingham-1.5.4-py2.py3-none-any.whl", + "machine": "arm64", + "platform": "windows", + "pythonTag": "cp312", + "sha256": "7ecfff8f2fd72616f7481040475a65b2bf8af90a56c89140852d1120324e8686", + "url": "https://files.pythonhosted.org/packages/e0/f9/0595336914c5619e5f28a1fb793285925a8cd4b432c9da0a987836c7f822/shellingham-1.5.4-py2.py3-none-any.whl", + "version": "1.5.4" + } + ], + "baseIncluded": true, + "baseRequirements": [ + { "distribution": "accelerate", "importName": "accelerate", "specifier": ">=0.21.0" }, + { "distribution": "anyio", "importName": "anyio", "specifier": "" }, + { "distribution": "certifi", "importName": "certifi", "specifier": "" }, + { "distribution": "click", "importName": "click", "specifier": "" }, + { "distribution": "filelock", "importName": "filelock", "specifier": "" }, + { "distribution": "fsspec", "importName": "fsspec", "specifier": "" }, + { "distribution": "h11", "importName": "h11", "specifier": "" }, + { "distribution": "hf-xet", "importName": "hf_xet", "specifier": "" }, + { "distribution": "httpcore", "importName": "httpcore", "specifier": "" }, + { "distribution": "httpx", "importName": "httpx", "specifier": "" }, + { "distribution": "huggingface-hub", "importName": "huggingface_hub", "specifier": ">=1.5.0,<2.0" }, + { "distribution": "idna", "importName": "idna", "specifier": "" }, + { "distribution": "jinja2", "importName": "jinja2", "specifier": "" }, + { "distribution": "markupsafe", "importName": "markupsafe", "specifier": "" }, + { "distribution": "mpmath", "importName": "mpmath", "specifier": "" }, + { "distribution": "networkx", "importName": "networkx", "specifier": "" }, + { "distribution": "numpy", "importName": "numpy", "specifier": ">=1.17" }, + { "distribution": "packaging", "importName": "packaging", "specifier": ">=20.0" }, + { "distribution": "pillow", "importName": "PIL", "specifier": ">=10.0.1,<=15.0" }, + { "distribution": "protobuf", "importName": "google.protobuf", "specifier": ">=6.31.1" }, + { "distribution": "psutil", "importName": "psutil", "specifier": "" }, + { "distribution": "pyyaml", "importName": "yaml", "specifier": ">=5.1" }, + { "distribution": "regex", "importName": "regex", "specifier": ">=2025.10.22" }, + { "distribution": "safetensors", "importName": "safetensors", "specifier": ">=0.8.0" }, + { "distribution": "sentencepiece", "importName": "sentencepiece", "specifier": ">=0.2.0" }, + { "distribution": "setuptools", "importName": "setuptools", "specifier": "" }, + { "distribution": "sympy", "importName": "sympy", "specifier": "" }, + { "distribution": "torch", "importName": "torch", "specifier": ">=2.6.0" }, + { "distribution": "torchvision", "importName": "torchvision", "specifier": ">=0.21.0" }, + { "distribution": "tqdm", "importName": "tqdm", "specifier": ">=4.60" }, + { "distribution": "typing-extensions", "importName": "typing_extensions", "specifier": "" }, + { "distribution": "colorama", "importName": "colorama", "platforms": ["windows"], "specifier": "" } + ], + "contractState": "candidate_unqualified", + "cutoverReady": false, + "excludedQualificationSymbols": ["add_weighted_adapter"], + "id": "huggingface-transformers-main-96fe6dce-peft-0.20.0", + "installActionAvailable": false, + "installPolicy": "explicit_first_use", + "label": "Hugging Face Transformers main + PEFT (Linux x86-64 qualified)", + "machine": "x86_64", + "overlayStatus": "missing", + "packages": [ + { + "distribution": "transformers", + "distributionUrl": "https://github.com/huggingface/transformers/commit/96fe6dce36cc929a5ffd3e34296554c4cb6b669e", + "importName": "transformers", + "installedVersion": "5.18.0", + "license": "Apache-2.0", + "projectUrl": "https://github.com/huggingface/transformers", + "publisher": "Hugging Face", + "requiredClassSymbols": [ + "Qwen2_5_VLForConditionalGeneration", + "Qwen2Tokenizer", + "Qwen2VLProcessor", + "AutoConfig", + "AutoTokenizer", + "AutoModelForCausalLM", + "LlamaForCausalLM", + "CLIPImageProcessor", + "CLIPVisionModel", + "UMT5EncoderModel", + "T5EncoderModel", + "T5Tokenizer", + "T5TokenizerFast", + "PreTrainedModel", + "PreTrainedTokenizerFast", + "CLIPTextModel", + "CLIPTextModelWithProjection", + "CLIPTokenizer", + "CLIPVisionModelWithProjection", + "SiglipImageProcessor", + "SiglipVisionModel", + "Qwen2TokenizerFast", + "Qwen3ForCausalLM", + "Qwen3Model", + "Qwen3VLForConditionalGeneration", + "Qwen3VLProcessor", + "AutoProcessor", + "AutoModelForImageTextToText", + "Idefics3ForConditionalGeneration", + "Idefics3Processor", + "AutoModelForMultimodalLM", + "JanusForConditionalGeneration", + "JanusProcessor", + "JanusImageProcessor", + "AutoModelForSpeechSeq2Seq", + "AutoModelForCTC", + "AnyToAnyPipeline", + "Mistral3Model", + "Mistral3ForConditionalGeneration", + "Ministral3ForCausalLM", + "GlmImageForConditionalGeneration", + "GlmImageProcessor", + "ByT5Tokenizer", + "BitsAndBytesConfig", + "GemmaModel", + "Gemma2Model", + "GemmaPreTrainedModel", + "Gemma2PreTrainedModel", + "GemmaTokenizer", + "GemmaTokenizerFast", + "transformers.models.t5gemma.modeling_t5gemma:T5GemmaEncoder", + "LlamaTokenizer", + "LlamaTokenizerFast" + ], + "requiredSymbols": [ + "Qwen2_5_VLForConditionalGeneration", + "Qwen2Tokenizer", + "Qwen2VLProcessor", + "AutoConfig", + "AutoTokenizer", + "AutoModelForCausalLM", + "LlamaForCausalLM", + "CLIPImageProcessor", + "CLIPVisionModel", + "UMT5EncoderModel", + "T5EncoderModel", + "T5Tokenizer", + "T5TokenizerFast", + "PreTrainedModel", + "PreTrainedTokenizerFast", + "CLIPTextModel", + "CLIPTextModelWithProjection", + "CLIPTokenizer", + "CLIPVisionModelWithProjection", + "SiglipImageProcessor", + "SiglipVisionModel", + "Qwen2TokenizerFast", + "Qwen3ForCausalLM", + "Qwen3Model", + "Qwen3VLForConditionalGeneration", + "Qwen3VLProcessor", + "AutoProcessor", + "AutoModelForImageTextToText", + "Idefics3ForConditionalGeneration", + "Idefics3Processor", + "AutoModelForMultimodalLM", + "JanusForConditionalGeneration", + "JanusProcessor", + "JanusImageProcessor", + "AutoModelForSpeechSeq2Seq", + "AutoModelForCTC", + "AnyToAnyPipeline", + "pipeline", + "Mistral3Model", + "Mistral3ForConditionalGeneration", + "Ministral3ForCausalLM", + "GlmImageForConditionalGeneration", + "GlmImageProcessor", + "ByT5Tokenizer", + "BitsAndBytesConfig", + "GemmaModel", + "Gemma2Model", + "GemmaPreTrainedModel", + "Gemma2PreTrainedModel", + "GemmaTokenizer", + "GemmaTokenizerFast", + "transformers.models.t5gemma.modeling_t5gemma:T5GemmaEncoder", + "LlamaTokenizer", + "LlamaTokenizerFast", + "transformers.core_model_loading:tqdm", + "transformers.utils.logging:tqdm", + "transformers.utils.logging:get_verbosity", + "transformers.utils.logging:set_verbosity" + ], + "requiredVersion": "5.16.0.dev0", + "requirement": "transformers==5.16.0.dev0", + "role": "runtime_root", + "status": "wrong_version" + }, + { + "distribution": "peft", + "distributionUrl": "https://pypi.org/project/peft/", + "importName": "peft", + "installedVersion": "0.21.2", + "license": "Apache-2.0", + "projectUrl": "https://github.com/huggingface/peft", + "publisher": "Hugging Face", + "requiredClassSymbols": [ + "LoraConfig", + "PeftConfig", + "PeftModel", + "tuners.tuners_utils.BaseTunerLayer", + "tuners.lora.layer.LoraLayer" + ], + "requiredSymbols": [ + "LoraConfig", + "PeftConfig", + "PeftModel", + "inject_adapter_in_model", + "set_peft_model_state_dict", + "tuners.tuners_utils.BaseTunerLayer", + "tuners.lora.layer.LoraLayer", + "utils.other._get_submodules", + "utils.save_and_load.get_peft_model_state_dict", + "peft.utils.hotswap:check_hotswap_configs_compatible", + "peft.utils.hotswap:hotswap_adapter_from_state_dict", + "peft.utils.hotswap:prepare_model_for_compiled_hotswap" + ], + "requiredVersion": "0.20.0", + "requirement": "peft==0.20.0", + "role": "runtime_root", + "status": "wrong_version" + } + ], + "pipelineAdapterMethods": [ + { + "method": "load_lora_weights", + "requiredParameters": ["pretrained_model_name_or_path_or_dict", "adapter_name", "hotswap"] + }, + { "method": "set_adapters", "requiredParameters": ["adapter_names", "adapter_weights"] }, + { "method": "delete_adapters", "requiredParameters": ["adapter_names"] }, + { "method": "fuse_lora", "requiredParameters": ["components", "lora_scale", "safe_fusing", "adapter_names"] }, + { "method": "unfuse_lora", "requiredParameters": ["components"] }, + { "method": "unload_lora_weights", "requiredParameters": [] }, + { "method": "get_list_adapters", "requiredParameters": [] }, + { "method": "enable_lora_hotswap", "requiredParameters": ["kwargs"] } + ], + "pipelineAdapterSymbols": [ + "AceStepPipeline", + "FluxPipeline", + "Flux2KleinPipeline", + "LTXConditionPipeline", + "QwenImagePipeline", + "QwenImageControlNetPipeline", + "QwenImageLayeredPipeline", + "QwenImageEditPipeline", + "QwenImageEditPlusPipeline", + "QwenImageImg2ImgPipeline", + "QwenImageInpaintPipeline", + "ChromaImg2ImgPipeline", + "ChromaInpaintPipeline", + "LTX2Pipeline", + "StableDiffusionXLPipeline", + "StableDiffusionXLImg2ImgPipeline", + "StableDiffusionXLInpaintPipeline", + "ZImageImg2ImgPipeline", + "ZImageInpaintPipeline", + "FluxImg2ImgPipeline", + "FluxInpaintPipeline", + "FluxKontextInpaintPipeline", + "Flux2KleinInpaintPipeline", + "WanPipeline" + ], + "platform": "windows", + "requirePeftBackend": true, + "requiredDiffusersSymbols": [ + "ComponentSpec", + "ComponentsManager", + "ModularPipeline", + "AutoencoderKLWan", + "BitsAndBytesConfig", + "QwenImagePipeline", + "QwenImageControlNetModel", + "QwenImageControlNetPipeline", + "QwenImageLayeredPipeline", + "QwenImageEditPipeline", + "QwenImageEditPlusPipeline", + "QwenImageImg2ImgPipeline", + "QwenImageInpaintPipeline", + "QwenImageEditInpaintPipeline", + "ChromaImg2ImgPipeline", + "ChromaInpaintPipeline", + "LTX2Pipeline", + "QwenImageModularPipeline", + "QwenImageEditModularPipeline", + "QwenImageEditPlusModularPipeline", + "QwenImageLayeredModularPipeline", + "MiniMaxMusic3ModularPipeline", + "AnimateDiffPAGPipeline", + "AnimateDiffVideoToVideoPipeline", + "AnimateDiffControlNetPipeline", + "AnimateDiffVideoToVideoControlNetPipeline", + "CogVideoXVideoToVideoPipeline", + "WanVACEPipeline", + "WanVideoToVideoPipeline", + "WanPipeline", + "WanImageToVideoPipeline", + "WanModularPipeline", + "WanImage2VideoModularPipeline", + "LTXConditionPipeline", + "AceStepPipeline", + "StableAudioPipeline", + "LongCatAudioDiTPipeline", + "AudioLDM2Pipeline", + "ShapEPipeline", + "ShapEImg2ImgPipeline", + "StableDiffusionXLModularPipeline", + "StableDiffusionXLPipeline", + "StableDiffusionXLImg2ImgPipeline", + "StableDiffusionXLInpaintPipeline", + "StableDiffusionControlNetPipeline", + "StableDiffusionControlNetImg2ImgPipeline", + "StableDiffusionControlNetInpaintPipeline", + "StableDiffusionControlNetPAGPipeline", + "StableDiffusionControlNetPAGInpaintPipeline", + "StableDiffusionXLControlNetPipeline", + "StableDiffusionXLControlNetImg2ImgPipeline", + "StableDiffusionXLControlNetInpaintPipeline", + "StableDiffusionXLControlNetPAGPipeline", + "StableDiffusionXLControlNetPAGImg2ImgPipeline", + "ZImageImg2ImgPipeline", + "ZImageInpaintPipeline", + "FluxImg2ImgPipeline", + "FluxInpaintPipeline", + "FluxPipeline", + "Flux2KleinPipeline", + "Flux2KleinInpaintPipeline", + "FluxKontextPipeline", + "FluxKontextInpaintPipeline", + "FluxFillPipeline", + "FluxControlPipeline", + "FluxControlImg2ImgPipeline", + "FluxControlInpaintPipeline", + "FluxPriorReduxPipeline", + "FluxModularPipeline", + "FluxKontextModularPipeline", + "Flux2KleinModularPipeline", + "ErnieImagePipeline", + "ErnieImageTransformer2DModel", + "AutoencoderKLFlux2", + "GlmImagePipeline", + "GlmImageTransformer2DModel", + "HunyuanDiTPipeline", + "HunyuanDiTControlNetPipeline", + "HunyuanDiT2DModel", + "HunyuanDiT2DControlNetModel", + "JoyImageEditPipeline", + "JoyImageEditPlusPipeline", + "JoyImageEditTransformer3DModel", + "JoyImageEditPlusTransformer3DModel", + "Kandinsky3Pipeline", + "Kandinsky3Img2ImgPipeline", + "Kandinsky3UNet", + "LongCatImagePipeline", + "LongCatImageEditPipeline", + "LongCatImageTransformer2DModel", + "LuminaPipeline", + "LuminaNextDiT2DModel", + "Lumina2Pipeline", + "Lumina2Transformer2DModel", + "OmniGenPipeline", + "OmniGenTransformer2DModel", + "OvisImagePipeline", + "OvisImageTransformer2DModel", + "PRXPipeline", + "PRXTransformer2DModel", + "NucleusMoEImagePipeline", + "NucleusMoEImageTransformer2DModel", + "AutoencoderKLQwenImage" + ], + "requirements": ["transformers==5.16.0.dev0", "peft==0.20.0"], + "schemaVersion": 1, + "sourceBuilds": [ + { + "buildDependencies": [], + "distribution": "transformers", + "outputWheel": { + "byteSize": 52395984, + "distribution": "transformers", + "filename": "transformers-5.16.0.dev0-py3-none-any.whl", + "machine": "any", + "platform": "any", + "pythonTag": "py3", + "sha256": "8a439d25595c6dde486cfbd5a6ed8158e0fe7554ec236491668425e11952898f", + "version": "5.16.0.dev0" + }, + "pythonTag": "py3", + "recipe": "modiff_pure_python_wheel_v1", + "schemaVersion": 1, + "sourceArtifact": { + "archiveRoot": "transformers-96fe6dce36cc929a5ffd3e34296554c4cb6b669e", + "byteSize": 20532315, + "commit": "96fe6dce36cc929a5ffd3e34296554c4cb6b669e", + "filename": "transformers-96fe6dce36cc929a5ffd3e34296554c4cb6b669e.tar.gz", + "kind": "github_commit_tarball", + "repository": "huggingface/transformers", + "sha256": "e9903aec337657fd8ae1fd1e7812efed159c2cf4444e83e7fc877e252127e1b3", + "url": "https://codeload.github.com/huggingface/transformers/tar.gz/96fe6dce36cc929a5ffd3e34296554c4cb6b669e" + }, + "sourceDateEpoch": 315532800, + "sourceFiles": ["LICENSE", "README.md", "pyproject.toml", "setup.py"], + "sourceTrees": ["src/transformers"], + "version": "5.16.0.dev0", + "wheelMetadata": { + "consoleScripts": { "transformers": "transformers.cli.transformers:main" }, + "license": "Apache 2.0 License", + "licenseFile": "LICENSE", + "packageRoot": "src", + "requiresDist": [ + "huggingface-hub>=1.5.0,<2.0", + "numpy>=1.17", + "packaging>=20.0", + "pyyaml>=5.1", + "regex>=2025.10.22", + "tokenizers>=0.22.0,<=0.23.0", + "typer", + "safetensors>=0.8.0", + "tqdm>=4.60" + ], + "requiresPython": ">=3.10.0", + "summary": "Transformers: the model-definition framework for state-of-the-art machine learning models in text, vision, audio, and multimodal models, for both inference and training." + } + } + ], + "specDigest": "sha256:cb2440a5034b7c6962e82567a354f0afc13bfe7751cbaa8b8f84791d4172eafe", + "stagedPackages": [ + { + "distribution": "transformers", + "distributionUrl": "https://github.com/huggingface/transformers/commit/96fe6dce36cc929a5ffd3e34296554c4cb6b669e", + "importName": "transformers", + "license": "Apache-2.0", + "projectUrl": "https://github.com/huggingface/transformers", + "publisher": "Hugging Face", + "requiredClassSymbols": [ + "Qwen2_5_VLForConditionalGeneration", + "Qwen2Tokenizer", + "Qwen2VLProcessor", + "AutoConfig", + "AutoTokenizer", + "AutoModelForCausalLM", + "LlamaForCausalLM", + "CLIPImageProcessor", + "CLIPVisionModel", + "UMT5EncoderModel", + "T5EncoderModel", + "T5Tokenizer", + "T5TokenizerFast", + "PreTrainedModel", + "PreTrainedTokenizerFast", + "CLIPTextModel", + "CLIPTextModelWithProjection", + "CLIPTokenizer", + "CLIPVisionModelWithProjection", + "SiglipImageProcessor", + "SiglipVisionModel", + "Qwen2TokenizerFast", + "Qwen3ForCausalLM", + "Qwen3Model", + "Qwen3VLForConditionalGeneration", + "Qwen3VLProcessor", + "AutoProcessor", + "AutoModelForImageTextToText", + "Idefics3ForConditionalGeneration", + "Idefics3Processor", + "AutoModelForMultimodalLM", + "JanusForConditionalGeneration", + "JanusProcessor", + "JanusImageProcessor", + "AutoModelForSpeechSeq2Seq", + "AutoModelForCTC", + "AnyToAnyPipeline", + "Mistral3Model", + "Mistral3ForConditionalGeneration", + "Ministral3ForCausalLM", + "GlmImageForConditionalGeneration", + "GlmImageProcessor", + "ByT5Tokenizer", + "BitsAndBytesConfig", + "GemmaModel", + "Gemma2Model", + "GemmaPreTrainedModel", + "Gemma2PreTrainedModel", + "GemmaTokenizer", + "GemmaTokenizerFast", + "transformers.models.t5gemma.modeling_t5gemma:T5GemmaEncoder", + "LlamaTokenizer", + "LlamaTokenizerFast" + ], + "requiredSymbols": [ + "Qwen2_5_VLForConditionalGeneration", + "Qwen2Tokenizer", + "Qwen2VLProcessor", + "AutoConfig", + "AutoTokenizer", + "AutoModelForCausalLM", + "LlamaForCausalLM", + "CLIPImageProcessor", + "CLIPVisionModel", + "UMT5EncoderModel", + "T5EncoderModel", + "T5Tokenizer", + "T5TokenizerFast", + "PreTrainedModel", + "PreTrainedTokenizerFast", + "CLIPTextModel", + "CLIPTextModelWithProjection", + "CLIPTokenizer", + "CLIPVisionModelWithProjection", + "SiglipImageProcessor", + "SiglipVisionModel", + "Qwen2TokenizerFast", + "Qwen3ForCausalLM", + "Qwen3Model", + "Qwen3VLForConditionalGeneration", + "Qwen3VLProcessor", + "AutoProcessor", + "AutoModelForImageTextToText", + "Idefics3ForConditionalGeneration", + "Idefics3Processor", + "AutoModelForMultimodalLM", + "JanusForConditionalGeneration", + "JanusProcessor", + "JanusImageProcessor", + "AutoModelForSpeechSeq2Seq", + "AutoModelForCTC", + "AnyToAnyPipeline", + "pipeline", + "Mistral3Model", + "Mistral3ForConditionalGeneration", + "Ministral3ForCausalLM", + "GlmImageForConditionalGeneration", + "GlmImageProcessor", + "ByT5Tokenizer", + "BitsAndBytesConfig", + "GemmaModel", + "Gemma2Model", + "GemmaPreTrainedModel", + "Gemma2PreTrainedModel", + "GemmaTokenizer", + "GemmaTokenizerFast", + "transformers.models.t5gemma.modeling_t5gemma:T5GemmaEncoder", + "LlamaTokenizer", + "LlamaTokenizerFast", + "transformers.core_model_loading:tqdm", + "transformers.utils.logging:tqdm", + "transformers.utils.logging:get_verbosity", + "transformers.utils.logging:set_verbosity" + ], + "requiredVersion": "5.16.0.dev0", + "requirement": "transformers==5.16.0.dev0", + "role": "runtime_root" + }, + { + "distribution": "peft", + "distributionUrl": "https://pypi.org/project/peft/", + "importName": "peft", + "license": "Apache-2.0", + "projectUrl": "https://github.com/huggingface/peft", + "publisher": "Hugging Face", + "requiredClassSymbols": [ + "LoraConfig", + "PeftConfig", + "PeftModel", + "tuners.tuners_utils.BaseTunerLayer", + "tuners.lora.layer.LoraLayer" + ], + "requiredSymbols": [ + "LoraConfig", + "PeftConfig", + "PeftModel", + "inject_adapter_in_model", + "set_peft_model_state_dict", + "tuners.tuners_utils.BaseTunerLayer", + "tuners.lora.layer.LoraLayer", + "utils.other._get_submodules", + "utils.save_and_load.get_peft_model_state_dict", + "peft.utils.hotswap:check_hotswap_configs_compatible", + "peft.utils.hotswap:hotswap_adapter_from_state_dict", + "peft.utils.hotswap:prepare_model_for_compiled_hotswap" + ], + "requiredVersion": "0.20.0", + "requirement": "peft==0.20.0", + "role": "runtime_root" + }, + { + "distribution": "tokenizers", + "distributionUrl": "https://pypi.org/project/tokenizers/", + "importName": "tokenizers", + "license": "Apache-2.0", + "projectUrl": "https://github.com/huggingface/tokenizers", + "publisher": "Hugging Face", + "requiredClassSymbols": ["Tokenizer", "tokenizers.tokenizers:Tokenizer"], + "requiredSymbols": ["Tokenizer", "tokenizers.tokenizers:Tokenizer"], + "requiredVersion": "0.22.2", + "requirement": "tokenizers==0.22.2", + "role": "runtime_dependency" + }, + { + "distribution": "typer", + "distributionUrl": "https://pypi.org/project/typer/", + "importName": "typer", + "license": "MIT", + "projectUrl": "https://github.com/fastapi/typer", + "publisher": "FastAPI", + "requiredClassSymbols": ["Typer"], + "requiredSymbols": ["Typer"], + "requiredVersion": "0.27.1", + "requirement": "typer==0.27.1", + "role": "runtime_dependency" + }, + { + "distribution": "annotated-doc", + "distributionUrl": "https://pypi.org/project/annotated-doc/", + "importName": "annotated_doc", + "license": "MIT", + "projectUrl": "https://github.com/fastapi/annotated-doc", + "publisher": "FastAPI", + "requiredClassSymbols": ["Doc"], + "requiredSymbols": ["Doc"], + "requiredVersion": "0.0.5", + "requirement": "annotated-doc==0.0.5", + "role": "runtime_dependency" + }, + { + "distribution": "rich", + "distributionUrl": "https://pypi.org/project/rich/", + "importName": "rich", + "license": "MIT", + "projectUrl": "https://github.com/Textualize/rich", + "publisher": "Textualize", + "requiredClassSymbols": [], + "requiredSymbols": ["print"], + "requiredVersion": "15.0.0", + "requirement": "rich==15.0.0", + "role": "runtime_dependency" + }, + { + "distribution": "markdown-it-py", + "distributionUrl": "https://pypi.org/project/markdown-it-py/", + "importName": "markdown_it", + "license": "MIT", + "projectUrl": "https://github.com/executablebooks/markdown-it-py", + "publisher": "Executable Books", + "requiredClassSymbols": ["MarkdownIt"], + "requiredSymbols": ["MarkdownIt"], + "requiredVersion": "4.2.0", + "requirement": "markdown-it-py==4.2.0", + "role": "runtime_dependency" + }, + { + "distribution": "mdurl", + "distributionUrl": "https://pypi.org/project/mdurl/", + "importName": "mdurl", + "license": "MIT", + "projectUrl": "https://github.com/executablebooks/mdurl", + "publisher": "Executable Books", + "requiredClassSymbols": [], + "requiredSymbols": ["encode"], + "requiredVersion": "0.1.2", + "requirement": "mdurl==0.1.2", + "role": "runtime_dependency" + }, + { + "distribution": "pygments", + "distributionUrl": "https://pypi.org/project/Pygments/", + "importName": "pygments", + "license": "BSD-2-Clause", + "projectUrl": "https://github.com/pygments/pygments", + "publisher": "Pygments", + "requiredClassSymbols": [], + "requiredSymbols": ["highlight"], + "requiredVersion": "2.20.0", + "requirement": "pygments==2.20.0", + "role": "runtime_dependency" + }, + { + "distribution": "shellingham", + "distributionUrl": "https://pypi.org/project/shellingham/", + "importName": "shellingham", + "license": "ISC", + "projectUrl": "https://github.com/sarugaku/shellingham", + "publisher": "Sarugaku", + "requiredClassSymbols": [], + "requiredSymbols": ["detect_shell"], + "requiredVersion": "1.5.4", + "requirement": "shellingham==1.5.4", + "role": "runtime_dependency" + } + ], + "stagedRequirements": [ + "transformers==5.16.0.dev0", + "peft==0.20.0", + "tokenizers==0.22.2", + "typer==0.27.1", + "annotated-doc==0.0.5", + "rich==15.0.0", + "markdown-it-py==4.2.0", + "mdurl==0.1.2", + "pygments==2.20.0", + "shellingham==1.5.4" + ], + "status": "wrong_version", + "targetContracts": [ + { + "activationAvailable": true, + "contractState": "qualified", + "cutoverReady": true, + "installActionAvailable": true, + "machine": "x86_64", + "platform": "linux" + }, + { + "activationAvailable": false, + "contractState": "candidate_unqualified", + "cutoverReady": false, + "installActionAvailable": false, + "machine": "arm64", + "platform": "linux" + }, + { + "activationAvailable": false, + "contractState": "candidate_unqualified", + "cutoverReady": false, + "installActionAvailable": false, + "machine": "x86_64", + "platform": "macos" + }, + { + "activationAvailable": false, + "contractState": "candidate_unqualified", + "cutoverReady": false, + "installActionAvailable": false, + "machine": "arm64", + "platform": "macos" + }, + { + "activationAvailable": false, + "contractState": "candidate_unqualified", + "cutoverReady": false, + "installActionAvailable": false, + "machine": "x86_64", + "platform": "windows" + }, + { + "activationAvailable": false, + "contractState": "candidate_unqualified", + "cutoverReady": false, + "installActionAvailable": false, + "machine": "arm64", + "platform": "windows" + } + ] + }, + { + "activationAvailable": false, + "artifactLocks": [ + { + "byteSize": 165285, + "distribution": "optimum-quanto", + "filename": "optimum_quanto-0.2.7-py3-none-any.whl", + "machine": "x86_64", + "platform": "linux", + "pythonTag": "cp312", + "sha256": "1369b1d9a4a197f88c0d1c67e8d950694e5b86ce4c9f3878e178d5be35339f61", + "url": "https://files.pythonhosted.org/packages/8d/33/4ad914b0ae7e46296fe00d76d084be351fef69816b3498ed32a178471c8a/optimum_quanto-0.2.7-py3-none-any.whl", + "version": "0.2.7" + }, + { + "byteSize": 180716, + "distribution": "ninja", + "filename": "ninja-1.13.0-py3-none-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", + "machine": "x86_64", + "platform": "linux", + "pythonTag": "cp312", + "sha256": "fb46acf6b93b8dd0322adc3a4945452a4e774b75b91293bafcc7b7f8e6517dfa", + "url": "https://files.pythonhosted.org/packages/ed/de/0e6edf44d6a04dabd0318a519125ed0415ce437ad5a1ec9b9be03d9048cf/ninja-1.13.0-py3-none-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", + "version": "1.13.0" + } + ], + "baseIncluded": false, + "baseRequirements": [ + { "distribution": "accelerate", "importName": "accelerate", "specifier": ">=1.4.0" }, + { "distribution": "anyio", "importName": "anyio", "specifier": "" }, + { "distribution": "certifi", "importName": "certifi", "specifier": "" }, + { "distribution": "click", "importName": "click", "specifier": "" }, + { "distribution": "filelock", "importName": "filelock", "specifier": "" }, + { "distribution": "fsspec", "importName": "fsspec", "specifier": "" }, + { "distribution": "h11", "importName": "h11", "specifier": "" }, + { "distribution": "hf-xet", "importName": "hf_xet", "specifier": "" }, + { "distribution": "httpcore", "importName": "httpcore", "specifier": "" }, + { "distribution": "httpx", "importName": "httpx", "specifier": "" }, + { "distribution": "huggingface-hub", "importName": "huggingface_hub", "specifier": ">=1.31.0,<2.0" }, + { "distribution": "idna", "importName": "idna", "specifier": "" }, + { "distribution": "jinja2", "importName": "jinja2", "specifier": "" }, + { "distribution": "markupsafe", "importName": "markupsafe", "specifier": "" }, + { "distribution": "mpmath", "importName": "mpmath", "specifier": "" }, + { "distribution": "networkx", "importName": "networkx", "specifier": "" }, + { "distribution": "numpy", "importName": "numpy", "specifier": ">=1.17" }, + { "distribution": "packaging", "importName": "packaging", "specifier": ">=20.0" }, + { "distribution": "pillow", "importName": "PIL", "specifier": ">=10.0.1,<=15.0" }, + { "distribution": "protobuf", "importName": "google.protobuf", "specifier": ">=6.31.1" }, + { "distribution": "psutil", "importName": "psutil", "specifier": "" }, + { "distribution": "pyyaml", "importName": "yaml", "specifier": ">=5.1" }, + { "distribution": "regex", "importName": "regex", "specifier": ">=2025.10.22" }, + { "distribution": "safetensors", "importName": "safetensors", "specifier": ">=0.8.0" }, + { "distribution": "sentencepiece", "importName": "sentencepiece", "specifier": ">=0.2.0" }, + { "distribution": "setuptools", "importName": "setuptools", "specifier": "" }, + { "distribution": "sympy", "importName": "sympy", "specifier": "" }, + { "distribution": "torch", "importName": "torch", "specifier": ">=2.6.0" }, + { "distribution": "torchvision", "importName": "torchvision", "specifier": ">=0.21.0" }, + { "distribution": "tqdm", "importName": "tqdm", "specifier": ">=4.60" }, + { "distribution": "typing-extensions", "importName": "typing_extensions", "specifier": "" }, + { "distribution": "colorama", "importName": "colorama", "platforms": ["windows"], "specifier": "" }, + { "distribution": "transformers", "importName": "transformers", "specifier": ">=5.18.0" }, + { "distribution": "peft", "importName": "peft", "specifier": ">=0.21.2" }, + { "distribution": "tokenizers", "importName": "tokenizers", "specifier": "" }, + { "distribution": "typer", "importName": "typer", "specifier": "" }, + { "distribution": "annotated-doc", "importName": "annotated_doc", "specifier": "" }, + { "distribution": "rich", "importName": "rich", "specifier": "" }, + { "distribution": "markdown-it-py", "importName": "markdown_it", "specifier": "" }, + { "distribution": "mdurl", "importName": "mdurl", "specifier": "" }, + { "distribution": "pygments", "importName": "pygments", "specifier": "" }, + { "distribution": "shellingham", "importName": "shellingham", "specifier": "" }, + { "distribution": "requests", "importName": "requests", "specifier": ">=2.25" } + ], + "contractState": "candidate_unqualified", + "cutoverReady": false, + "excludedQualificationSymbols": ["add_weighted_adapter"], + "id": "huggingface-transformers-main-96fe6dce-peft-0.20.0-quanto-0.2.7", + "installActionAvailable": false, + "installPolicy": "explicit_first_use", + "label": "Optimum Quanto 0.2.7", + "machine": "x86_64", + "overlayStatus": "missing", + "packages": [ + { + "distribution": "optimum-quanto", + "distributionUrl": "https://pypi.org/project/optimum-quanto/0.2.7/", + "importName": "optimum.quanto", + "license": "Apache-2.0", + "projectUrl": "https://github.com/huggingface/optimum-quanto", + "publisher": "Hugging Face", + "requiredClassSymbols": [], + "requiredSymbols": ["freeze", "quantize"], + "requiredVersion": "0.2.7", + "requirement": "optimum-quanto==0.2.7", + "role": "runtime_root", + "status": "missing" + } + ], + "pipelineAdapterMethods": [], + "pipelineAdapterSymbols": [], + "platform": "windows", + "requirePeftBackend": true, + "requiredDiffusersSymbols": ["QuantoConfig"], + "requirements": ["optimum-quanto==0.2.7"], + "schemaVersion": 1, + "specDigest": "sha256:b5cf3eaff6041fd898066eeebbc5606d21b6b60426f0d26c2237ef45e394c9cd", + "stagedPackages": [ + { + "distribution": "optimum-quanto", + "distributionUrl": "https://pypi.org/project/optimum-quanto/0.2.7/", + "importName": "optimum.quanto", + "license": "Apache-2.0", + "projectUrl": "https://github.com/huggingface/optimum-quanto", + "publisher": "Hugging Face", + "requiredClassSymbols": [], + "requiredSymbols": ["freeze", "quantize"], + "requiredVersion": "0.2.7", + "requirement": "optimum-quanto==0.2.7", + "role": "runtime_root" + }, + { + "distribution": "ninja", + "distributionUrl": "https://pypi.org/project/ninja/1.13.0/", + "importName": "ninja", + "license": "Apache-2.0 AND BSD-3-Clause", + "projectUrl": "https://github.com/scikit-build/ninja-python-distributions", + "publisher": "Kitware and contributors", + "requiredClassSymbols": [], + "requiredSymbols": ["ninja"], + "requiredVersion": "1.13.0", + "requirement": "ninja==1.13.0", + "role": "runtime_dependency" + } + ], + "stagedRequirements": ["optimum-quanto==0.2.7", "ninja==1.13.0"], + "status": "missing", + "targetContracts": [ + { + "activationAvailable": true, + "contractState": "qualified", + "cutoverReady": true, + "installActionAvailable": true, + "machine": "x86_64", + "platform": "linux" + }, + { + "activationAvailable": false, + "contractState": "candidate_unqualified", + "cutoverReady": false, + "installActionAvailable": false, + "machine": "arm64", + "platform": "linux" + }, + { + "activationAvailable": false, + "contractState": "candidate_unqualified", + "cutoverReady": false, + "installActionAvailable": false, + "machine": "x86_64", + "platform": "macos" + }, + { + "activationAvailable": false, + "contractState": "candidate_unqualified", + "cutoverReady": false, + "installActionAvailable": false, + "machine": "arm64", + "platform": "macos" + }, + { + "activationAvailable": false, + "contractState": "candidate_unqualified", + "cutoverReady": false, + "installActionAvailable": false, + "machine": "x86_64", + "platform": "windows" + }, + { + "activationAvailable": false, + "contractState": "candidate_unqualified", + "cutoverReady": false, + "installActionAvailable": false, + "machine": "arm64", + "platform": "windows" + } + ] + }, + { + "activationAvailable": false, + "artifactLocks": [ + { + "byteSize": 118475, + "distribution": "gguf", + "filename": "gguf-0.19.0-py3-none-any.whl", + "machine": "x86_64", + "platform": "linux", + "pythonTag": "cp312", + "sha256": "70bcd10edfe697fb2dad6e40af2234b9d8ece9a41a99761405121ebda1c3c1cd", + "url": "https://files.pythonhosted.org/packages/b3/bb/d71d6da82763528c2c2ed6b59a9d6142c6595545a4c448e2085d155e88c2/gguf-0.19.0-py3-none-any.whl", + "version": "0.19.0" + }, + { + "byteSize": 118475, + "distribution": "gguf", + "filename": "gguf-0.19.0-py3-none-any.whl", + "machine": "arm64", + "platform": "linux", + "pythonTag": "cp312", + "sha256": "70bcd10edfe697fb2dad6e40af2234b9d8ece9a41a99761405121ebda1c3c1cd", + "url": "https://files.pythonhosted.org/packages/b3/bb/d71d6da82763528c2c2ed6b59a9d6142c6595545a4c448e2085d155e88c2/gguf-0.19.0-py3-none-any.whl", + "version": "0.19.0" + }, + { + "byteSize": 118475, + "distribution": "gguf", + "filename": "gguf-0.19.0-py3-none-any.whl", + "machine": "x86_64", + "platform": "macos", + "pythonTag": "cp312", + "sha256": "70bcd10edfe697fb2dad6e40af2234b9d8ece9a41a99761405121ebda1c3c1cd", + "url": "https://files.pythonhosted.org/packages/b3/bb/d71d6da82763528c2c2ed6b59a9d6142c6595545a4c448e2085d155e88c2/gguf-0.19.0-py3-none-any.whl", + "version": "0.19.0" + }, + { + "byteSize": 118475, + "distribution": "gguf", + "filename": "gguf-0.19.0-py3-none-any.whl", + "machine": "arm64", + "platform": "macos", + "pythonTag": "cp312", + "sha256": "70bcd10edfe697fb2dad6e40af2234b9d8ece9a41a99761405121ebda1c3c1cd", + "url": "https://files.pythonhosted.org/packages/b3/bb/d71d6da82763528c2c2ed6b59a9d6142c6595545a4c448e2085d155e88c2/gguf-0.19.0-py3-none-any.whl", + "version": "0.19.0" + }, + { + "byteSize": 118475, + "distribution": "gguf", + "filename": "gguf-0.19.0-py3-none-any.whl", + "machine": "x86_64", + "platform": "windows", + "pythonTag": "cp312", + "sha256": "70bcd10edfe697fb2dad6e40af2234b9d8ece9a41a99761405121ebda1c3c1cd", + "url": "https://files.pythonhosted.org/packages/b3/bb/d71d6da82763528c2c2ed6b59a9d6142c6595545a4c448e2085d155e88c2/gguf-0.19.0-py3-none-any.whl", + "version": "0.19.0" + }, + { + "byteSize": 118475, + "distribution": "gguf", + "filename": "gguf-0.19.0-py3-none-any.whl", + "machine": "arm64", + "platform": "windows", + "pythonTag": "cp312", + "sha256": "70bcd10edfe697fb2dad6e40af2234b9d8ece9a41a99761405121ebda1c3c1cd", + "url": "https://files.pythonhosted.org/packages/b3/bb/d71d6da82763528c2c2ed6b59a9d6142c6595545a4c448e2085d155e88c2/gguf-0.19.0-py3-none-any.whl", + "version": "0.19.0" + } + ], + "baseIncluded": false, + "baseRequirements": [ + { "distribution": "accelerate", "importName": "accelerate", "specifier": ">=1.4.0" }, + { "distribution": "anyio", "importName": "anyio", "specifier": "" }, + { "distribution": "certifi", "importName": "certifi", "specifier": "" }, + { "distribution": "click", "importName": "click", "specifier": "" }, + { "distribution": "filelock", "importName": "filelock", "specifier": "" }, + { "distribution": "fsspec", "importName": "fsspec", "specifier": "" }, + { "distribution": "h11", "importName": "h11", "specifier": "" }, + { "distribution": "hf-xet", "importName": "hf_xet", "specifier": "" }, + { "distribution": "httpcore", "importName": "httpcore", "specifier": "" }, + { "distribution": "httpx", "importName": "httpx", "specifier": "" }, + { "distribution": "huggingface-hub", "importName": "huggingface_hub", "specifier": ">=1.31.0,<2.0" }, + { "distribution": "idna", "importName": "idna", "specifier": "" }, + { "distribution": "jinja2", "importName": "jinja2", "specifier": "" }, + { "distribution": "markupsafe", "importName": "markupsafe", "specifier": "" }, + { "distribution": "mpmath", "importName": "mpmath", "specifier": "" }, + { "distribution": "networkx", "importName": "networkx", "specifier": "" }, + { "distribution": "numpy", "importName": "numpy", "specifier": ">=1.17" }, + { "distribution": "packaging", "importName": "packaging", "specifier": ">=20.0" }, + { "distribution": "pillow", "importName": "PIL", "specifier": ">=10.0.1,<=15.0" }, + { "distribution": "protobuf", "importName": "google.protobuf", "specifier": ">=6.31.1" }, + { "distribution": "psutil", "importName": "psutil", "specifier": "" }, + { "distribution": "pyyaml", "importName": "yaml", "specifier": ">=5.1" }, + { "distribution": "regex", "importName": "regex", "specifier": ">=2025.10.22" }, + { "distribution": "safetensors", "importName": "safetensors", "specifier": ">=0.8.0" }, + { "distribution": "sentencepiece", "importName": "sentencepiece", "specifier": ">=0.2.0" }, + { "distribution": "setuptools", "importName": "setuptools", "specifier": "" }, + { "distribution": "sympy", "importName": "sympy", "specifier": "" }, + { "distribution": "torch", "importName": "torch", "specifier": ">=2.6.0" }, + { "distribution": "torchvision", "importName": "torchvision", "specifier": ">=0.21.0" }, + { "distribution": "tqdm", "importName": "tqdm", "specifier": ">=4.60" }, + { "distribution": "typing-extensions", "importName": "typing_extensions", "specifier": "" }, + { "distribution": "colorama", "importName": "colorama", "platforms": ["windows"], "specifier": "" }, + { "distribution": "transformers", "importName": "transformers", "specifier": ">=5.18.0" }, + { "distribution": "peft", "importName": "peft", "specifier": ">=0.21.2" }, + { "distribution": "tokenizers", "importName": "tokenizers", "specifier": "" }, + { "distribution": "typer", "importName": "typer", "specifier": "" }, + { "distribution": "annotated-doc", "importName": "annotated_doc", "specifier": "" }, + { "distribution": "rich", "importName": "rich", "specifier": "" }, + { "distribution": "markdown-it-py", "importName": "markdown_it", "specifier": "" }, + { "distribution": "mdurl", "importName": "mdurl", "specifier": "" }, + { "distribution": "pygments", "importName": "pygments", "specifier": "" }, + { "distribution": "shellingham", "importName": "shellingham", "specifier": "" }, + { "distribution": "requests", "importName": "requests", "specifier": ">=2.25" } + ], + "contractState": "candidate_unqualified", + "cutoverReady": false, + "excludedQualificationSymbols": ["add_weighted_adapter"], + "id": "huggingface-transformers-main-96fe6dce-peft-0.20.0-gguf-0.19.0", + "installActionAvailable": false, + "installPolicy": "explicit_first_use", + "label": "GGUF 0.19.0", + "machine": "x86_64", + "overlayStatus": "missing", + "packages": [ + { + "distribution": "gguf", + "distributionUrl": "https://pypi.org/project/gguf/0.19.0/", + "importName": "gguf", + "license": "MIT", + "projectUrl": "https://github.com/ggml-org/llama.cpp", + "publisher": "ggml.org and llama.cpp contributors", + "requiredClassSymbols": [], + "requiredSymbols": ["GGUFReader"], + "requiredVersion": "0.19.0", + "requirement": "gguf==0.19.0", + "role": "runtime_root", + "status": "missing" + } + ], + "pipelineAdapterMethods": [], + "pipelineAdapterSymbols": [], + "platform": "windows", + "requirePeftBackend": true, + "requiredDiffusersSymbols": ["GGUFQuantizationConfig", "FluxTransformer2DModel"], + "requirements": ["gguf==0.19.0"], + "schemaVersion": 1, + "specDigest": "sha256:a92395e7b3a652a2badbeb346d336de96819dc83e5698801825feef4aecf52ec", + "stagedPackages": [ + { + "distribution": "gguf", + "distributionUrl": "https://pypi.org/project/gguf/0.19.0/", + "importName": "gguf", + "license": "MIT", + "projectUrl": "https://github.com/ggml-org/llama.cpp", + "publisher": "ggml.org and llama.cpp contributors", + "requiredClassSymbols": [], + "requiredSymbols": ["GGUFReader"], + "requiredVersion": "0.19.0", + "requirement": "gguf==0.19.0", + "role": "runtime_root" + } + ], + "stagedRequirements": ["gguf==0.19.0"], + "status": "missing", + "targetContracts": [ + { + "activationAvailable": true, + "contractState": "qualified", + "cutoverReady": true, + "installActionAvailable": true, + "machine": "x86_64", + "platform": "linux" + }, + { + "activationAvailable": false, + "contractState": "candidate_unqualified", + "cutoverReady": false, + "installActionAvailable": false, + "machine": "arm64", + "platform": "linux" + }, + { + "activationAvailable": false, + "contractState": "candidate_unqualified", + "cutoverReady": false, + "installActionAvailable": false, + "machine": "x86_64", + "platform": "macos" + }, + { + "activationAvailable": false, + "contractState": "candidate_unqualified", + "cutoverReady": false, + "installActionAvailable": false, + "machine": "arm64", + "platform": "macos" + }, + { + "activationAvailable": false, + "contractState": "candidate_unqualified", + "cutoverReady": false, + "installActionAvailable": false, + "machine": "x86_64", + "platform": "windows" + }, + { + "activationAvailable": false, + "contractState": "candidate_unqualified", + "cutoverReady": false, + "installActionAvailable": false, + "machine": "arm64", + "platform": "windows" + } + ] + }, + { + "activationAvailable": true, + "artifactLocks": [ + { + "byteSize": 40860117, + "distribution": "bitsandbytes", + "filename": "bitsandbytes-0.50.0-py3-none-manylinux_2_24_x86_64.whl", + "machine": "x86_64", + "platform": "linux", + "pythonTag": "cp312", + "sha256": "173d137610468bec9cddbaa2e049254e97792657ab984e3e737bec1772c1668c", + "url": "https://files.pythonhosted.org/packages/22/08/9501f4fc830448a6862bd5313df94a7dd1ae678f4f81087b96569d4a6f8b/bitsandbytes-0.50.0-py3-none-manylinux_2_24_x86_64.whl", + "version": "0.50.0" + }, + { + "byteSize": 37961095, + "distribution": "bitsandbytes", + "filename": "bitsandbytes-0.50.0-py3-none-win_amd64.whl", + "machine": "x86_64", + "platform": "windows", + "pythonTag": "cp312", + "sha256": "7f9ebf51d76a00341711cdd557af97555274b5aad3444975ff9927866a18bc11", + "url": "https://files.pythonhosted.org/packages/78/40/7b2253f94ec8c6235606aa393f315d941d02c44f141b7bccae14202b3fea/bitsandbytes-0.50.0-py3-none-win_amd64.whl", + "version": "0.50.0" + } + ], + "baseIncluded": false, + "baseRequirements": [ + { "distribution": "accelerate", "importName": "accelerate", "specifier": ">=1.4.0" }, + { "distribution": "anyio", "importName": "anyio", "specifier": "" }, + { "distribution": "certifi", "importName": "certifi", "specifier": "" }, + { "distribution": "click", "importName": "click", "specifier": "" }, + { "distribution": "filelock", "importName": "filelock", "specifier": "" }, + { "distribution": "fsspec", "importName": "fsspec", "specifier": "" }, + { "distribution": "h11", "importName": "h11", "specifier": "" }, + { "distribution": "hf-xet", "importName": "hf_xet", "specifier": "" }, + { "distribution": "httpcore", "importName": "httpcore", "specifier": "" }, + { "distribution": "httpx", "importName": "httpx", "specifier": "" }, + { "distribution": "huggingface-hub", "importName": "huggingface_hub", "specifier": ">=1.31.0,<2.0" }, + { "distribution": "idna", "importName": "idna", "specifier": "" }, + { "distribution": "jinja2", "importName": "jinja2", "specifier": "" }, + { "distribution": "markupsafe", "importName": "markupsafe", "specifier": "" }, + { "distribution": "mpmath", "importName": "mpmath", "specifier": "" }, + { "distribution": "networkx", "importName": "networkx", "specifier": "" }, + { "distribution": "numpy", "importName": "numpy", "specifier": ">=1.17" }, + { "distribution": "packaging", "importName": "packaging", "specifier": ">=20.0" }, + { "distribution": "pillow", "importName": "PIL", "specifier": ">=10.0.1,<=15.0" }, + { "distribution": "protobuf", "importName": "google.protobuf", "specifier": ">=6.31.1" }, + { "distribution": "psutil", "importName": "psutil", "specifier": "" }, + { "distribution": "pyyaml", "importName": "yaml", "specifier": ">=5.1" }, + { "distribution": "regex", "importName": "regex", "specifier": ">=2025.10.22" }, + { "distribution": "safetensors", "importName": "safetensors", "specifier": ">=0.8.0" }, + { "distribution": "sentencepiece", "importName": "sentencepiece", "specifier": ">=0.2.0" }, + { "distribution": "setuptools", "importName": "setuptools", "specifier": "" }, + { "distribution": "sympy", "importName": "sympy", "specifier": "" }, + { "distribution": "torch", "importName": "torch", "specifier": ">=2.6.0" }, + { "distribution": "torchvision", "importName": "torchvision", "specifier": ">=0.21.0" }, + { "distribution": "tqdm", "importName": "tqdm", "specifier": ">=4.60" }, + { "distribution": "typing-extensions", "importName": "typing_extensions", "specifier": "" }, + { "distribution": "colorama", "importName": "colorama", "platforms": ["windows"], "specifier": "" }, + { "distribution": "transformers", "importName": "transformers", "specifier": ">=5.18.0" }, + { "distribution": "peft", "importName": "peft", "specifier": ">=0.21.2" }, + { "distribution": "tokenizers", "importName": "tokenizers", "specifier": "" }, + { "distribution": "typer", "importName": "typer", "specifier": "" }, + { "distribution": "annotated-doc", "importName": "annotated_doc", "specifier": "" }, + { "distribution": "rich", "importName": "rich", "specifier": "" }, + { "distribution": "markdown-it-py", "importName": "markdown_it", "specifier": "" }, + { "distribution": "mdurl", "importName": "mdurl", "specifier": "" }, + { "distribution": "pygments", "importName": "pygments", "specifier": "" }, + { "distribution": "shellingham", "importName": "shellingham", "specifier": "" }, + { "distribution": "requests", "importName": "requests", "specifier": ">=2.25" } + ], + "contractState": "qualified", + "cutoverReady": true, + "excludedQualificationSymbols": ["add_weighted_adapter"], + "id": "huggingface-transformers-main-96fe6dce-peft-0.20.0-bitsandbytes-0.50.0", + "installActionAvailable": true, + "installPolicy": "explicit_first_use", + "label": "bitsandbytes 0.50.0", + "machine": "x86_64", + "overlayStatus": "missing", + "packages": [ + { + "distribution": "bitsandbytes", + "distributionUrl": "https://pypi.org/project/bitsandbytes/0.50.0/", + "importName": "bitsandbytes", + "license": "MIT", + "projectUrl": "https://github.com/bitsandbytes-foundation/bitsandbytes", + "publisher": "bitsandbytes contributors", + "requiredClassSymbols": ["nn.Linear4bit"], + "requiredSymbols": ["functional.dequantize_4bit", "nn.Linear4bit"], + "requiredVersion": "0.50.0", + "requirement": "bitsandbytes==0.50.0", + "role": "runtime_root", + "status": "missing" + } + ], + "pipelineAdapterMethods": [], + "pipelineAdapterSymbols": [], + "platform": "windows", + "requirePeftBackend": true, + "requiredDiffusersSymbols": ["BitsAndBytesConfig"], + "requirements": ["bitsandbytes==0.50.0"], + "schemaVersion": 1, + "specDigest": "sha256:3905f3876edeb3a6cb79af897a3d04d8836d3a63573fec12ce3fccf4ddb67053", + "stagedPackages": [ + { + "distribution": "bitsandbytes", + "distributionUrl": "https://pypi.org/project/bitsandbytes/0.50.0/", + "importName": "bitsandbytes", + "license": "MIT", + "projectUrl": "https://github.com/bitsandbytes-foundation/bitsandbytes", + "publisher": "bitsandbytes contributors", + "requiredClassSymbols": ["nn.Linear4bit"], + "requiredSymbols": ["functional.dequantize_4bit", "nn.Linear4bit"], + "requiredVersion": "0.50.0", + "requirement": "bitsandbytes==0.50.0", + "role": "runtime_root" + } + ], + "stagedRequirements": ["bitsandbytes==0.50.0"], + "status": "missing", + "targetContracts": [ + { + "activationAvailable": false, + "contractState": "candidate_unqualified", + "cutoverReady": false, + "installActionAvailable": false, + "machine": "x86_64", + "platform": "linux" + }, + { + "activationAvailable": false, + "contractState": "candidate_unqualified", + "cutoverReady": false, + "installActionAvailable": false, + "machine": "arm64", + "platform": "linux" + }, + { + "activationAvailable": false, + "contractState": "candidate_unqualified", + "cutoverReady": false, + "installActionAvailable": false, + "machine": "x86_64", + "platform": "macos" + }, + { + "activationAvailable": false, + "contractState": "candidate_unqualified", + "cutoverReady": false, + "installActionAvailable": false, + "machine": "arm64", + "platform": "macos" + }, + { + "activationAvailable": true, + "contractState": "qualified", + "cutoverReady": true, + "installActionAvailable": true, + "machine": "x86_64", + "platform": "windows" + }, + { + "activationAvailable": false, + "contractState": "candidate_unqualified", + "cutoverReady": false, + "installActionAvailable": false, + "machine": "arm64", + "platform": "windows" + } + ] + }, + { + "activationAvailable": false, + "artifactLocks": [ + { + "byteSize": 61204038, + "distribution": "opencv-python-headless", + "filename": "opencv_python_headless-5.0.0.93-cp37-abi3-manylinux_2_28_x86_64.whl", + "machine": "x86_64", + "platform": "linux", + "pythonTag": "cp312", + "sha256": "ed709fdf9aa0bd1f2ed8549e71d19449b03a675bb581eb292285f6861953be37", + "url": "https://files.pythonhosted.org/packages/9b/21/f6ef335f6e65724aa78b8d792b48d40a48c381715f1e62f5a5049e09d07e/opencv_python_headless-5.0.0.93-cp37-abi3-manylinux_2_28_x86_64.whl", + "version": "5.0.0.93" + }, + { + "byteSize": 35786210, + "distribution": "av", + "filename": "av-18.1.0-cp311-abi3-manylinux_2_28_x86_64.whl", + "machine": "x86_64", + "platform": "linux", + "pythonTag": "cp312", + "sha256": "8a032e8d8ebc73dec079364b9b4a6837638a2d106e8472314e685ffbf163e700", + "url": "https://files.pythonhosted.org/packages/27/3a/204dbfc3e08eb4cdc6e6ff57be02150bc44523ebdb50182d10025792ebd9/av-18.1.0-cp311-abi3-manylinux_2_28_x86_64.whl", + "version": "18.1.0" + } + ], + "baseIncluded": false, + "baseRequirements": [ + { "distribution": "accelerate", "importName": "accelerate", "specifier": ">=1.4.0" }, + { "distribution": "anyio", "importName": "anyio", "specifier": "" }, + { "distribution": "certifi", "importName": "certifi", "specifier": "" }, + { "distribution": "click", "importName": "click", "specifier": "" }, + { "distribution": "filelock", "importName": "filelock", "specifier": "" }, + { "distribution": "fsspec", "importName": "fsspec", "specifier": "" }, + { "distribution": "h11", "importName": "h11", "specifier": "" }, + { "distribution": "hf-xet", "importName": "hf_xet", "specifier": "" }, + { "distribution": "httpcore", "importName": "httpcore", "specifier": "" }, + { "distribution": "httpx", "importName": "httpx", "specifier": "" }, + { "distribution": "huggingface-hub", "importName": "huggingface_hub", "specifier": ">=1.31.0,<2.0" }, + { "distribution": "idna", "importName": "idna", "specifier": "" }, + { "distribution": "jinja2", "importName": "jinja2", "specifier": "" }, + { "distribution": "markupsafe", "importName": "markupsafe", "specifier": "" }, + { "distribution": "mpmath", "importName": "mpmath", "specifier": "" }, + { "distribution": "networkx", "importName": "networkx", "specifier": "" }, + { "distribution": "numpy", "importName": "numpy", "specifier": ">=2,<3" }, + { "distribution": "packaging", "importName": "packaging", "specifier": ">=20.0" }, + { "distribution": "pillow", "importName": "PIL", "specifier": ">=10.0.1,<=15.0" }, + { "distribution": "protobuf", "importName": "google.protobuf", "specifier": ">=6.31.1" }, + { "distribution": "psutil", "importName": "psutil", "specifier": "" }, + { "distribution": "pyyaml", "importName": "yaml", "specifier": ">=5.1" }, + { "distribution": "regex", "importName": "regex", "specifier": ">=2025.10.22" }, + { "distribution": "safetensors", "importName": "safetensors", "specifier": ">=0.8.0" }, + { "distribution": "sentencepiece", "importName": "sentencepiece", "specifier": ">=0.2.0" }, + { "distribution": "setuptools", "importName": "setuptools", "specifier": "" }, + { "distribution": "sympy", "importName": "sympy", "specifier": "" }, + { "distribution": "torch", "importName": "torch", "specifier": ">=2.6.0" }, + { "distribution": "torchvision", "importName": "torchvision", "specifier": ">=0.21.0" }, + { "distribution": "tqdm", "importName": "tqdm", "specifier": ">=4.60" }, + { "distribution": "typing-extensions", "importName": "typing_extensions", "specifier": "" }, + { "distribution": "colorama", "importName": "colorama", "platforms": ["windows"], "specifier": "" }, + { "distribution": "transformers", "importName": "transformers", "specifier": ">=5.18.0" }, + { "distribution": "peft", "importName": "peft", "specifier": ">=0.21.2" }, + { "distribution": "tokenizers", "importName": "tokenizers", "specifier": "" }, + { "distribution": "typer", "importName": "typer", "specifier": "" }, + { "distribution": "annotated-doc", "importName": "annotated_doc", "specifier": "" }, + { "distribution": "rich", "importName": "rich", "specifier": "" }, + { "distribution": "markdown-it-py", "importName": "markdown_it", "specifier": "" }, + { "distribution": "mdurl", "importName": "mdurl", "specifier": "" }, + { "distribution": "pygments", "importName": "pygments", "specifier": "" }, + { "distribution": "shellingham", "importName": "shellingham", "specifier": "" }, + { "distribution": "requests", "importName": "requests", "specifier": ">=2.25" } + ], + "contractState": "candidate_unqualified", + "cutoverReady": false, + "excludedQualificationSymbols": ["add_weighted_adapter"], + "id": "gallery-media-opencv-5.0.0.93-pyav-18.1.0", + "incompatibleDistributions": ["opencv-python", "opencv-contrib-python", "opencv-contrib-python-headless"], + "installActionAvailable": false, + "installPolicy": "explicit_first_use", + "label": "Media codecs: OpenCV 5.0.0.93 + PyAV 18.1.0", + "machine": "x86_64", + "overlayStatus": "missing", + "packages": [ + { + "distribution": "opencv-python-headless", + "distributionUrl": "https://pypi.org/project/opencv-python-headless/", + "importName": "cv2", + "license": "Apache-2.0 AND MIT; bundled third-party notices", + "projectUrl": "https://github.com/opencv/opencv-python", + "publisher": "OpenCV on Wheels", + "requiredClassSymbols": [], + "requiredSymbols": ["Canny", "GaussianBlur", "Sobel", "calcOpticalFlowFarneback", "cvtColor", "remap"], + "requiredVersion": "5.0.0.93", + "requirement": "opencv-python-headless==5.0.0.93", + "role": "runtime_root", + "status": "missing" + }, + { + "distribution": "av", + "distributionUrl": "https://pypi.org/project/av/18.1.0/", + "importName": "av", + "license": "BSD-3-Clause", + "projectUrl": "https://pyav.org/", + "publisher": "PyAV contributors", + "requiredClassSymbols": ["VideoFrame"], + "requiredSymbols": ["open", "VideoFrame"], + "requiredVersion": "18.1.0", + "requirement": "av==18.1.0", + "role": "runtime_root", + "status": "missing" + } + ], + "pipelineAdapterMethods": [], + "pipelineAdapterSymbols": [], + "platform": "windows", + "requirePeftBackend": false, + "requiredDiffusersSymbols": [], + "requirements": ["opencv-python-headless==5.0.0.93", "av==18.1.0"], + "schemaVersion": 1, + "specDigest": "sha256:6bc7f7b893fddfe1dfd0774281a0ac0da57661acd9b76deea8b109186edadcd8", + "stagedPackages": [ + { + "distribution": "opencv-python-headless", + "distributionUrl": "https://pypi.org/project/opencv-python-headless/", + "importName": "cv2", + "license": "Apache-2.0 AND MIT; bundled third-party notices", + "projectUrl": "https://github.com/opencv/opencv-python", + "publisher": "OpenCV on Wheels", + "requiredClassSymbols": [], + "requiredSymbols": ["Canny", "GaussianBlur", "Sobel", "calcOpticalFlowFarneback", "cvtColor", "remap"], + "requiredVersion": "5.0.0.93", + "requirement": "opencv-python-headless==5.0.0.93", + "role": "runtime_root" + }, + { + "distribution": "av", + "distributionUrl": "https://pypi.org/project/av/18.1.0/", + "importName": "av", + "license": "BSD-3-Clause", + "projectUrl": "https://pyav.org/", + "publisher": "PyAV contributors", + "requiredClassSymbols": ["VideoFrame"], + "requiredSymbols": ["open", "VideoFrame"], + "requiredVersion": "18.1.0", + "requirement": "av==18.1.0", + "role": "runtime_root" + } + ], + "stagedRequirements": ["opencv-python-headless==5.0.0.93", "av==18.1.0"], + "status": "missing", + "targetContracts": [ + { + "activationAvailable": true, + "contractState": "qualified", + "cutoverReady": true, + "installActionAvailable": true, + "machine": "x86_64", + "platform": "linux" + }, + { + "activationAvailable": false, + "contractState": "candidate_unqualified", + "cutoverReady": false, + "installActionAvailable": false, + "machine": "arm64", + "platform": "linux" + }, + { + "activationAvailable": false, + "contractState": "candidate_unqualified", + "cutoverReady": false, + "installActionAvailable": false, + "machine": "x86_64", + "platform": "macos" + }, + { + "activationAvailable": false, + "contractState": "candidate_unqualified", + "cutoverReady": false, + "installActionAvailable": false, + "machine": "arm64", + "platform": "macos" + }, + { + "activationAvailable": false, + "contractState": "candidate_unqualified", + "cutoverReady": false, + "installActionAvailable": false, + "machine": "x86_64", + "platform": "windows" + }, + { + "activationAvailable": false, + "contractState": "candidate_unqualified", + "cutoverReady": false, + "installActionAvailable": false, + "machine": "arm64", + "platform": "windows" + } + ] + }, + { + "activationAvailable": false, + "artifactLocks": [ + { + "byteSize": 17501, + "distribution": "cosmos-guardrail", + "filename": "cosmos_guardrail-0.3.1-py3-none-any.whl", + "machine": "x86_64", + "platform": "linux", + "pythonTag": "cp312", + "sha256": "58c0ff49393f65b7589aa8365edc6640ebbcdfbfdde69c95b8a088fe13237ed6", + "url": "https://files.pythonhosted.org/packages/1a/ef/2e9257bc10fdbb6adb96f6086caa368a65dd6c1da3bfaf87c64a9d0b3684/cosmos_guardrail-0.3.1-py3-none-any.whl", + "version": "0.3.1" + }, + { + "byteSize": 1798643, + "distribution": "nltk", + "filename": "nltk-3.10.3-py3-none-any.whl", + "machine": "x86_64", + "platform": "linux", + "pythonTag": "cp312", + "sha256": "ff9598a8e20518ee0d557745890cc4435b9578489e2dcbc69c4f81fa060caf7c", + "url": "https://files.pythonhosted.org/packages/b6/6d/ebd2af4640b12168fdf0cb74b6118df2f32a2f62ec7e0c06fbfd80706639/nltk-3.10.3-py3-none-any.whl", + "version": "3.10.3" + }, + { + "byteSize": 46104, + "distribution": "better-profanity", + "filename": "better_profanity-0.7.0-py3-none-any.whl", + "machine": "x86_64", + "platform": "linux", + "pythonTag": "cp312", + "sha256": "bd4c529ea6aa2db1aaa50524be1ed14d0fe5c664f1fd88c8bc388c7e9f9f00e8", + "url": "https://files.pythonhosted.org/packages/f3/dd/0b074d89e903cc771721cde2c4bf3d8c9d114b5bd791af5c62bcf5fb9459/better_profanity-0.7.0-py3-none-any.whl", + "version": "0.7.0" + }, + { + "byteSize": 37388, + "distribution": "retinaface-py", + "filename": "retinaface_py-0.0.2-py3-none-any.whl", + "machine": "x86_64", + "platform": "linux", + "pythonTag": "cp312", + "sha256": "d8cc969841714e4275c35f2cbcec951b88e23a583608588c6c4ecd985a71d66d", + "url": "https://files.pythonhosted.org/packages/4c/de/f90cc5c235b8ccc8d893b0616a5d7ec59c59fe19339fa3b7fa7867b9f1ff/retinaface_py-0.0.2-py3-none-any.whl", + "version": "0.0.2" + }, + { + "byteSize": 73783032, + "distribution": "opencv-python", + "filename": "opencv_python-5.0.0.93-cp37-abi3-manylinux_2_28_x86_64.whl", + "machine": "x86_64", + "platform": "linux", + "pythonTag": "cp312", + "sha256": "c8de2dec111122a02e8beb28e16c31904992dfd6186560b142a92c71403c1039", + "url": "https://files.pythonhosted.org/packages/cf/4c/c73f828fdbcd37eaf21d08fa852544a3ca7c2dbb3ea76873d64f2ea413d1/opencv_python-5.0.0.93-cp37-abi3-manylinux_2_28_x86_64.whl", + "version": "5.0.0.93" + }, + { + "byteSize": 15003435, + "distribution": "scikit-image", + "filename": "scikit_image-0.25.2-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", + "machine": "x86_64", + "platform": "linux", + "pythonTag": "cp312", + "sha256": "a17e17eb8562660cc0d31bb55643a4da996a81944b82c54805c91b3fe66f4824", + "url": "https://files.pythonhosted.org/packages/6b/b5/b75527c0f9532dd8a93e8e7cd8e62e547b9f207d4c11e24f0006e8646b36/scikit_image-0.25.2-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", + "version": "0.25.2" + }, + { + "byteSize": 12097, + "distribution": "lazy-loader", + "filename": "lazy_loader-0.4-py3-none-any.whl", + "machine": "x86_64", + "platform": "linux", + "pythonTag": "cp312", + "sha256": "342aa8e14d543a154047afb4ba8ef17f5563baad3fc610d7b15b213b0f119efc", + "url": "https://files.pythonhosted.org/packages/83/60/d497a310bde3f01cb805196ac61b7ad6dc5dcf8dce66634dc34364b20b4f/lazy_loader-0.4-py3-none-any.whl", + "version": "0.4" + }, + { + "byteSize": 230800, + "distribution": "tifffile", + "filename": "tifffile-2025.6.11-py3-none-any.whl", + "machine": "x86_64", + "platform": "linux", + "pythonTag": "cp312", + "sha256": "32effb78b10b3a283eb92d4ebf844ae7e93e151458b0412f38518b4e6d2d7542", + "url": "https://files.pythonhosted.org/packages/3a/d8/1ba8f32bfc9cb69e37edeca93738e883f478fbe84ae401f72c0d8d507841/tifffile-2025.6.11-py3-none-any.whl", + "version": "2025.6.11" + }, + { + "byteSize": 309071, + "distribution": "joblib", + "filename": "joblib-1.5.3-py3-none-any.whl", + "machine": "x86_64", + "platform": "linux", + "pythonTag": "cp312", + "sha256": "5fc3c5039fc5ca8c0276333a188bbd59d6b7ab37fe6632daa76bc7f9ec18e713", + "url": "https://files.pythonhosted.org/packages/7b/91/984aca2ec129e2757d1e4e3c81c3fcda9d0f85b74670a094cc443d9ee949/joblib-1.5.3-py3-none-any.whl", + "version": "1.5.3" + }, + { + "byteSize": 25604, + "distribution": "defusedxml", + "filename": "defusedxml-0.7.1-py2.py3-none-any.whl", + "machine": "x86_64", + "platform": "linux", + "pythonTag": "cp312", + "sha256": "a352e7e428770286cc899e2542b6cdaedb2b4953ff269a210103ec58f6198a61", + "url": "https://files.pythonhosted.org/packages/07/6c/aa3f2f849e01cb6a001cd8554a88d4c77c5c1a31c95bdf1cf9301e6d9ef4/defusedxml-0.7.1-py2.py3-none-any.whl", + "version": "0.7.1" + } + ], + "baseIncluded": false, + "baseRequirements": [ + { "distribution": "packaging", "importName": "packaging", "specifier": ">=21" }, + { "distribution": "torch", "importName": "torch", "specifier": ">=2.6" }, + { "distribution": "torchvision", "importName": "torchvision", "specifier": ">=0.21" }, + { "distribution": "transformers", "importName": "transformers", "specifier": ">=5.18" }, + { "distribution": "peft", "importName": "peft", "specifier": ">=0.14" }, + { "distribution": "huggingface-hub", "importName": "huggingface_hub", "specifier": ">=1.31,<2" }, + { "distribution": "attrs", "importName": "attrs", "specifier": ">=25.1" }, + { "distribution": "numpy", "importName": "numpy", "specifier": ">=2,<3" }, + { "distribution": "scipy", "importName": "scipy", "specifier": ">=1.11.4" }, + { "distribution": "networkx", "importName": "networkx", "specifier": ">=3" }, + { "distribution": "pillow", "importName": "PIL", "specifier": ">=11.1" }, + { "distribution": "protobuf", "importName": "google.protobuf", "specifier": "" }, + { "distribution": "safetensors", "importName": "safetensors", "specifier": ">=0.5.3" }, + { "distribution": "sentencepiece", "importName": "sentencepiece", "specifier": ">=0.2" }, + { "distribution": "requests", "importName": "requests", "specifier": ">=2.28" }, + { "distribution": "tqdm", "importName": "tqdm", "specifier": "" }, + { "distribution": "imageio", "importName": "imageio", "specifier": "" }, + { "distribution": "imageio-ffmpeg", "importName": "imageio_ffmpeg", "specifier": "" }, + { "distribution": "click", "importName": "click", "specifier": "" }, + { "distribution": "regex", "importName": "regex", "specifier": "" } + ], + "contractState": "candidate_unqualified", + "cutoverReady": false, + "excludedQualificationSymbols": ["add_weighted_adapter"], + "id": "cosmos-guardrail-0.3.1", + "incompatibleDistributions": [ + "opencv-python-headless", + "opencv-contrib-python", + "opencv-contrib-python-headless" + ], + "installActionAvailable": false, + "installPolicy": "explicit_first_use", + "label": "Cosmos Guardrail 0.3.1", + "machine": "x86_64", + "overlayStatus": "missing", + "packages": [ + { + "distribution": "cosmos-guardrail", + "distributionUrl": "https://pypi.org/project/cosmos-guardrail/0.3.1/", + "importName": "cosmos_guardrail", + "license": "Apache-2.0", + "projectUrl": "https://pypi.org/project/cosmos-guardrail/0.3.1/", + "publisher": "cosmos-guardrail contributors", + "requiredClassSymbols": [], + "requiredSymbols": ["CosmosSafetyChecker"], + "requiredVersion": "0.3.1", + "requirement": "cosmos-guardrail==0.3.1", + "role": "runtime_root", + "status": "missing" + }, + { + "distribution": "opencv-python", + "distributionUrl": "https://pypi.org/project/opencv-python/5.0.0.93/", + "importName": "cv2", + "license": "Apache-2.0 AND MIT", + "projectUrl": "https://pypi.org/project/opencv-python/5.0.0.93/", + "publisher": "opencv-python contributors", + "requiredClassSymbols": [], + "requiredSymbols": [ + "Canny", + "GaussianBlur", + "Sobel", + "calcOpticalFlowFarneback", + "cvtColor", + "remap", + "imencode", + "imdecode" + ], + "requiredVersion": "5.0.0.93", + "requirement": "opencv-python==5.0.0.93", + "role": "runtime_root", + "status": "missing" + } + ], + "pipelineAdapterMethods": [], + "pipelineAdapterSymbols": [], + "platform": "windows", + "requirePeftBackend": false, + "requiredDiffusersSymbols": ["Cosmos3OmniModularPipeline", "Cosmos3DistilledModularPipeline"], + "requirements": ["cosmos-guardrail==0.3.1", "opencv-python==5.0.0.93"], + "schemaVersion": 1, + "specDigest": "sha256:e4222e47859407c7c4f50c8ed229c0fbffab6a1385d7744a697452fa3088d7aa", + "stagedPackages": [ + { + "distribution": "cosmos-guardrail", + "distributionUrl": "https://pypi.org/project/cosmos-guardrail/0.3.1/", + "importName": "cosmos_guardrail", + "license": "Apache-2.0", + "projectUrl": "https://pypi.org/project/cosmos-guardrail/0.3.1/", + "publisher": "cosmos-guardrail contributors", + "requiredClassSymbols": [], + "requiredSymbols": ["CosmosSafetyChecker"], + "requiredVersion": "0.3.1", + "requirement": "cosmos-guardrail==0.3.1", + "role": "runtime_root" + }, + { + "distribution": "nltk", + "distributionUrl": "https://pypi.org/project/nltk/3.10.3/", + "importName": "nltk", + "license": "Apache-2.0", + "projectUrl": "https://pypi.org/project/nltk/3.10.3/", + "publisher": "NLTK Team", + "requiredClassSymbols": [], + "requiredSymbols": ["WordNetLemmatizer"], + "requiredVersion": "3.10.3", + "requirement": "nltk==3.10.3", + "role": "dependency" + }, + { + "distribution": "better-profanity", + "distributionUrl": "https://pypi.org/project/better-profanity/0.7.0/", + "importName": "better_profanity", + "license": "MIT", + "projectUrl": "https://pypi.org/project/better-profanity/0.7.0/", + "publisher": "Son Nguyen Thanh", + "requiredClassSymbols": [], + "requiredSymbols": ["Profanity"], + "requiredVersion": "0.7.0", + "requirement": "better-profanity==0.7.0", + "role": "dependency" + }, + { + "distribution": "retinaface-py", + "distributionUrl": "https://pypi.org/project/retinaface-py/0.0.2/", + "importName": "retinaface", + "license": "MIT", + "projectUrl": "https://pypi.org/project/retinaface-py/0.0.2/", + "publisher": "Jiankang Deng", + "requiredClassSymbols": [], + "requiredSymbols": [], + "requiredVersion": "0.0.2", + "requirement": "retinaface-py==0.0.2", + "role": "dependency" + }, + { + "distribution": "opencv-python", + "distributionUrl": "https://pypi.org/project/opencv-python/5.0.0.93/", + "importName": "cv2", + "license": "Apache-2.0 AND MIT", + "projectUrl": "https://pypi.org/project/opencv-python/5.0.0.93/", + "publisher": "opencv-python contributors", + "requiredClassSymbols": [], + "requiredSymbols": [ + "Canny", + "GaussianBlur", + "Sobel", + "calcOpticalFlowFarneback", + "cvtColor", + "remap", + "imencode", + "imdecode" + ], + "requiredVersion": "5.0.0.93", + "requirement": "opencv-python==5.0.0.93", + "role": "runtime_root" + }, + { + "distribution": "scikit-image", + "distributionUrl": "https://pypi.org/project/scikit-image/0.25.2/", + "importName": "skimage", + "license": "BSD-3-Clause", + "projectUrl": "https://pypi.org/project/scikit-image/0.25.2/", + "publisher": "scikit-image contributors", + "requiredClassSymbols": [], + "requiredSymbols": [], + "requiredVersion": "0.25.2", + "requirement": "scikit-image==0.25.2", + "role": "dependency" + }, + { + "distribution": "lazy-loader", + "distributionUrl": "https://pypi.org/project/lazy-loader/0.4/", + "importName": "lazy_loader", + "license": "BSD-3-Clause", + "projectUrl": "https://pypi.org/project/lazy-loader/0.4/", + "publisher": "Scientific Python Developers", + "requiredClassSymbols": [], + "requiredSymbols": ["load", "attach"], + "requiredVersion": "0.4", + "requirement": "lazy-loader==0.4", + "role": "dependency" + }, + { + "distribution": "tifffile", + "distributionUrl": "https://pypi.org/project/tifffile/2025.6.11/", + "importName": "tifffile", + "license": "BSD-3-Clause", + "projectUrl": "https://pypi.org/project/tifffile/2025.6.11/", + "publisher": "Christoph Gohlke", + "requiredClassSymbols": [], + "requiredSymbols": ["imread", "imwrite"], + "requiredVersion": "2025.6.11", + "requirement": "tifffile==2025.6.11", + "role": "dependency" + }, + { + "distribution": "joblib", + "distributionUrl": "https://pypi.org/project/joblib/1.5.3/", + "importName": "joblib", + "license": "BSD-3-Clause", + "projectUrl": "https://pypi.org/project/joblib/1.5.3/", + "publisher": "joblib contributors", + "requiredClassSymbols": [], + "requiredSymbols": ["Parallel"], + "requiredVersion": "1.5.3", + "requirement": "joblib==1.5.3", + "role": "dependency" + }, + { + "distribution": "defusedxml", + "distributionUrl": "https://pypi.org/project/defusedxml/0.7.1/", + "importName": "defusedxml", + "license": "Python-2.0", + "projectUrl": "https://pypi.org/project/defusedxml/0.7.1/", + "publisher": "Christian Heimes", + "requiredClassSymbols": [], + "requiredSymbols": [], + "requiredVersion": "0.7.1", + "requirement": "defusedxml==0.7.1", + "role": "dependency" + } + ], + "stagedRequirements": [ + "cosmos-guardrail==0.3.1", + "nltk==3.10.3", + "better-profanity==0.7.0", + "retinaface-py==0.0.2", + "opencv-python==5.0.0.93", + "scikit-image==0.25.2", + "lazy-loader==0.4", + "tifffile==2025.6.11", + "joblib==1.5.3", + "defusedxml==0.7.1" + ], + "status": "missing", + "targetContracts": [ + { + "activationAvailable": true, + "contractState": "qualified", + "cutoverReady": true, + "installActionAvailable": true, + "machine": "x86_64", + "platform": "linux" + }, + { + "activationAvailable": false, + "contractState": "candidate_unqualified", + "cutoverReady": false, + "installActionAvailable": false, + "machine": "arm64", + "platform": "linux" + }, + { + "activationAvailable": false, + "contractState": "candidate_unqualified", + "cutoverReady": false, + "installActionAvailable": false, + "machine": "x86_64", + "platform": "macos" + }, + { + "activationAvailable": false, + "contractState": "candidate_unqualified", + "cutoverReady": false, + "installActionAvailable": false, + "machine": "arm64", + "platform": "macos" + }, + { + "activationAvailable": false, + "contractState": "candidate_unqualified", + "cutoverReady": false, + "installActionAvailable": false, + "machine": "x86_64", + "platform": "windows" + }, + { + "activationAvailable": false, + "contractState": "candidate_unqualified", + "cutoverReady": false, + "installActionAvailable": false, + "machine": "arm64", + "platform": "windows" + } + ] + }, + { + "activationAvailable": true, + "artifactLocks": [], + "baseIncluded": false, + "baseRequirements": [ + { "distribution": "accelerate", "importName": "accelerate", "specifier": ">=1.4.0" }, + { "distribution": "anyio", "importName": "anyio", "specifier": "" }, + { "distribution": "certifi", "importName": "certifi", "specifier": "" }, + { "distribution": "click", "importName": "click", "specifier": "" }, + { "distribution": "filelock", "importName": "filelock", "specifier": "" }, + { "distribution": "fsspec", "importName": "fsspec", "specifier": "" }, + { "distribution": "h11", "importName": "h11", "specifier": "" }, + { "distribution": "hf-xet", "importName": "hf_xet", "specifier": "" }, + { "distribution": "httpcore", "importName": "httpcore", "specifier": "" }, + { "distribution": "httpx", "importName": "httpx", "specifier": "" }, + { "distribution": "huggingface-hub", "importName": "huggingface_hub", "specifier": ">=1.32.0,<2.0" }, + { "distribution": "idna", "importName": "idna", "specifier": "" }, + { "distribution": "jinja2", "importName": "jinja2", "specifier": "" }, + { "distribution": "markupsafe", "importName": "markupsafe", "specifier": "" }, + { "distribution": "mpmath", "importName": "mpmath", "specifier": "" }, + { "distribution": "networkx", "importName": "networkx", "specifier": "" }, + { "distribution": "numpy", "importName": "numpy", "specifier": ">=1.17" }, + { "distribution": "packaging", "importName": "packaging", "specifier": ">=20.0" }, + { "distribution": "pillow", "importName": "PIL", "specifier": ">=10.0.1,<=15.0" }, + { "distribution": "protobuf", "importName": "google.protobuf", "specifier": ">=6.31.1" }, + { "distribution": "psutil", "importName": "psutil", "specifier": "" }, + { "distribution": "pyyaml", "importName": "yaml", "specifier": ">=5.1" }, + { "distribution": "regex", "importName": "regex", "specifier": ">=2025.10.22" }, + { "distribution": "safetensors", "importName": "safetensors", "specifier": ">=0.8.0" }, + { "distribution": "sentencepiece", "importName": "sentencepiece", "specifier": ">=0.2.0" }, + { "distribution": "setuptools", "importName": "setuptools", "specifier": "" }, + { "distribution": "sympy", "importName": "sympy", "specifier": "" }, + { "distribution": "torch", "importName": "torch", "specifier": ">=2.6.0" }, + { "distribution": "torchvision", "importName": "torchvision", "specifier": ">=0.21.0" }, + { "distribution": "tqdm", "importName": "tqdm", "specifier": ">=4.60" }, + { "distribution": "typing-extensions", "importName": "typing_extensions", "specifier": "" }, + { "distribution": "colorama", "importName": "colorama", "platforms": ["windows"], "specifier": "" }, + { "distribution": "transformers", "importName": "transformers", "specifier": ">=5.18.0" }, + { "distribution": "peft", "importName": "peft", "specifier": ">=0.21.2" }, + { "distribution": "tokenizers", "importName": "tokenizers", "specifier": "" }, + { "distribution": "typer", "importName": "typer", "specifier": "" }, + { "distribution": "annotated-doc", "importName": "annotated_doc", "specifier": "" }, + { "distribution": "rich", "importName": "rich", "specifier": "" }, + { "distribution": "markdown-it-py", "importName": "markdown_it", "specifier": "" }, + { "distribution": "mdurl", "importName": "mdurl", "specifier": "" }, + { "distribution": "pygments", "importName": "pygments", "specifier": "" }, + { "distribution": "shellingham", "importName": "shellingham", "specifier": "" }, + { "distribution": "requests", "importName": "requests", "specifier": ">=2.25" }, + { "distribution": "urllib3", "importName": "urllib3", "specifier": "" }, + { "distribution": "charset-normalizer", "importName": "charset_normalizer", "specifier": "" }, + { "distribution": "importlib-metadata", "importName": "importlib_metadata", "specifier": "" } + ], + "contractState": "qualified", + "cutoverReady": true, + "excludedQualificationSymbols": ["add_weighted_adapter"], + "id": "huggingface-diffusers-flux3-7ecb1e1", + "installActionAvailable": true, + "installPolicy": "explicit_first_use", + "label": "Official Diffusers FLUX 3 source runtime", + "machine": "x86_64", + "overlayStatus": "missing", + "packages": [ + { + "distribution": "diffusers", + "distributionUrl": "https://codeload.github.com/huggingface/diffusers/tar.gz/7ecb1e1b4fe500be7fb7381a7bb79a24d7fa3941", + "importName": "diffusers", + "installedVersion": "0.41.0.dev0", + "license": "Apache-2.0", + "projectUrl": "https://github.com/huggingface/diffusers", + "publisher": "Hugging Face", + "requiredClassSymbols": [ + "Flux3ModularPipeline", + "Flux3DistilledModularPipeline", + "Flux3Transformer2DModel", + "AutoencoderKLFlux2", + "FlowMatchEulerDiscreteScheduler", + "ClassifierFreeGuidance", + "ModularPipeline", + "ComponentsManager", + "ComponentSpec" + ], + "requiredSymbols": [ + "Flux3ModularPipeline", + "Flux3DistilledModularPipeline", + "Flux3Transformer2DModel", + "AutoencoderKLFlux2", + "FlowMatchEulerDiscreteScheduler", + "ClassifierFreeGuidance", + "ModularPipeline", + "ComponentsManager", + "ComponentSpec", + "diffusers.loaders.lora_conversion_utils:_convert_non_diffusers_flux3_lora_to_diffusers" + ], + "requiredVersion": "0.41.0.dev0", + "requirement": "diffusers==0.41.0.dev0", + "role": "runtime_root", + "status": "present_unqualified" + } + ], + "pipelineAdapterMethods": [ + { "method": "load_components", "requiredParameters": ["names", "workflow"] }, + { "method": "__call__", "requiredParameters": ["state", "output"] } + ], + "pipelineAdapterSymbols": ["Flux3ModularPipeline", "Flux3DistilledModularPipeline"], + "platform": "windows", + "providesDiffusers": true, + "requirePeftBackend": true, + "requiredDiffusersSymbols": [ + "Flux3ModularPipeline", + "Flux3DistilledModularPipeline", + "Flux3Transformer2DModel", + "AutoencoderKLFlux2", + "FlowMatchEulerDiscreteScheduler", + "ClassifierFreeGuidance", + "ModularPipeline", + "ComponentsManager", + "ComponentSpec" + ], + "requirements": ["diffusers==0.41.0.dev0"], + "schemaVersion": 1, + "sourceBuilds": [ + { + "buildDependencies": [], + "distribution": "diffusers", + "outputWheel": { + "byteSize": 27721978, + "distribution": "diffusers", + "filename": "diffusers-0.41.0.dev0-py3-none-any.whl", + "machine": "any", + "platform": "any", + "pythonTag": "py3", + "sha256": "59c8eb8aaaa25fe5f912e09c48bf66f7e41655c468a7ec47f56da93d8ca40dbd", + "version": "0.41.0.dev0" + }, + "pythonTag": "py3", + "recipe": "modiff_pure_python_wheel_v1", + "schemaVersion": 1, + "sourceArtifact": { + "archiveRoot": "diffusers-7ecb1e1b4fe500be7fb7381a7bb79a24d7fa3941", + "byteSize": 11802397, + "commit": "7ecb1e1b4fe500be7fb7381a7bb79a24d7fa3941", + "filename": "diffusers-7ecb1e1b4fe500be7fb7381a7bb79a24d7fa3941.tar.gz", + "kind": "github_commit_tarball", + "repository": "huggingface/diffusers", + "sha256": "84ee014d4acc0c7633d2778f2ac0125fa77a87e736c86a8092edb1d47a55a744", + "url": "https://codeload.github.com/huggingface/diffusers/tar.gz/7ecb1e1b4fe500be7fb7381a7bb79a24d7fa3941" + }, + "sourceDateEpoch": 315532800, + "sourceFiles": ["LICENSE", "README.md", "pyproject.toml", "setup.py"], + "sourceTrees": ["src/diffusers"], + "version": "0.41.0.dev0", + "wheelMetadata": { + "consoleScripts": { "diffusers-cli": "diffusers.commands.diffusers_cli:main" }, + "license": "Apache 2.0 License", + "licenseFile": "LICENSE", + "packageRoot": "src", + "requiresDist": [ + "importlib_metadata", + "filelock", + "huggingface-hub<3.0,>=1.32.0", + "numpy", + "regex!=2019.12.17", + "requests", + "safetensors>=0.8.0", + "Pillow" + ], + "requiresPython": ">=3.11.0", + "summary": "State-of-the-art diffusion in PyTorch." + } + } + ], + "specDigest": "sha256:82017c1615d807c1808c13929f0ee10b180058b2f976e51209a80e41939a40fe", + "stagedPackages": [ + { + "distribution": "diffusers", + "distributionUrl": "https://codeload.github.com/huggingface/diffusers/tar.gz/7ecb1e1b4fe500be7fb7381a7bb79a24d7fa3941", + "importName": "diffusers", + "license": "Apache-2.0", + "projectUrl": "https://github.com/huggingface/diffusers", + "publisher": "Hugging Face", + "requiredClassSymbols": [ + "Flux3ModularPipeline", + "Flux3DistilledModularPipeline", + "Flux3Transformer2DModel", + "AutoencoderKLFlux2", + "FlowMatchEulerDiscreteScheduler", + "ClassifierFreeGuidance", + "ModularPipeline", + "ComponentsManager", + "ComponentSpec" + ], + "requiredSymbols": [ + "Flux3ModularPipeline", + "Flux3DistilledModularPipeline", + "Flux3Transformer2DModel", + "AutoencoderKLFlux2", + "FlowMatchEulerDiscreteScheduler", + "ClassifierFreeGuidance", + "ModularPipeline", + "ComponentsManager", + "ComponentSpec", + "diffusers.loaders.lora_conversion_utils:_convert_non_diffusers_flux3_lora_to_diffusers" + ], + "requiredVersion": "0.41.0.dev0", + "requirement": "diffusers==0.41.0.dev0", + "role": "runtime_root" + } + ], + "stagedRequirements": ["diffusers==0.41.0.dev0"], + "status": "present_unqualified", + "targetContracts": [ + { + "activationAvailable": true, + "contractState": "qualified", + "cutoverReady": true, + "installActionAvailable": true, + "machine": "x86_64", + "platform": "linux" + }, + { + "activationAvailable": false, + "contractState": "candidate_unqualified", + "cutoverReady": false, + "installActionAvailable": false, + "machine": "arm64", + "platform": "linux" + }, + { + "activationAvailable": false, + "contractState": "candidate_unqualified", + "cutoverReady": false, + "installActionAvailable": false, + "machine": "x86_64", + "platform": "macos" + }, + { + "activationAvailable": false, + "contractState": "candidate_unqualified", + "cutoverReady": false, + "installActionAvailable": false, + "machine": "arm64", + "platform": "macos" + }, + { + "activationAvailable": true, + "contractState": "qualified", + "cutoverReady": true, + "installActionAvailable": true, + "machine": "x86_64", + "platform": "windows" + }, + { + "activationAvailable": false, + "contractState": "candidate_unqualified", + "cutoverReady": false, + "installActionAvailable": false, + "machine": "arm64", + "platform": "windows" + } + ] + }, + { + "activationAvailable": true, + "artifactLocks": [ + { + "byteSize": 40860117, + "distribution": "bitsandbytes", + "filename": "bitsandbytes-0.50.0-py3-none-manylinux_2_24_x86_64.whl", + "machine": "x86_64", + "platform": "linux", + "pythonTag": "cp312", + "sha256": "173d137610468bec9cddbaa2e049254e97792657ab984e3e737bec1772c1668c", + "url": "https://files.pythonhosted.org/packages/22/08/9501f4fc830448a6862bd5313df94a7dd1ae678f4f81087b96569d4a6f8b/bitsandbytes-0.50.0-py3-none-manylinux_2_24_x86_64.whl", + "version": "0.50.0" + }, + { + "byteSize": 37961095, + "distribution": "bitsandbytes", + "filename": "bitsandbytes-0.50.0-py3-none-win_amd64.whl", + "machine": "x86_64", + "platform": "windows", + "pythonTag": "cp312", + "sha256": "7f9ebf51d76a00341711cdd557af97555274b5aad3444975ff9927866a18bc11", + "url": "https://files.pythonhosted.org/packages/78/40/7b2253f94ec8c6235606aa393f315d941d02c44f141b7bccae14202b3fea/bitsandbytes-0.50.0-py3-none-win_amd64.whl", + "version": "0.50.0" + } + ], + "baseIncluded": false, + "baseRequirements": [ + { "distribution": "accelerate", "importName": "accelerate", "specifier": ">=1.4.0" }, + { "distribution": "anyio", "importName": "anyio", "specifier": "" }, + { "distribution": "certifi", "importName": "certifi", "specifier": "" }, + { "distribution": "click", "importName": "click", "specifier": "" }, + { "distribution": "filelock", "importName": "filelock", "specifier": "" }, + { "distribution": "fsspec", "importName": "fsspec", "specifier": "" }, + { "distribution": "h11", "importName": "h11", "specifier": "" }, + { "distribution": "hf-xet", "importName": "hf_xet", "specifier": "" }, + { "distribution": "httpcore", "importName": "httpcore", "specifier": "" }, + { "distribution": "httpx", "importName": "httpx", "specifier": "" }, + { "distribution": "huggingface-hub", "importName": "huggingface_hub", "specifier": ">=1.32.0,<2.0" }, + { "distribution": "idna", "importName": "idna", "specifier": "" }, + { "distribution": "jinja2", "importName": "jinja2", "specifier": "" }, + { "distribution": "markupsafe", "importName": "markupsafe", "specifier": "" }, + { "distribution": "mpmath", "importName": "mpmath", "specifier": "" }, + { "distribution": "networkx", "importName": "networkx", "specifier": "" }, + { "distribution": "numpy", "importName": "numpy", "specifier": ">=1.17" }, + { "distribution": "packaging", "importName": "packaging", "specifier": ">=20.0" }, + { "distribution": "pillow", "importName": "PIL", "specifier": ">=10.0.1,<=15.0" }, + { "distribution": "protobuf", "importName": "google.protobuf", "specifier": ">=6.31.1" }, + { "distribution": "psutil", "importName": "psutil", "specifier": "" }, + { "distribution": "pyyaml", "importName": "yaml", "specifier": ">=5.1" }, + { "distribution": "regex", "importName": "regex", "specifier": ">=2025.10.22" }, + { "distribution": "safetensors", "importName": "safetensors", "specifier": ">=0.8.0" }, + { "distribution": "sentencepiece", "importName": "sentencepiece", "specifier": ">=0.2.0" }, + { "distribution": "setuptools", "importName": "setuptools", "specifier": "" }, + { "distribution": "sympy", "importName": "sympy", "specifier": "" }, + { "distribution": "torch", "importName": "torch", "specifier": ">=2.6.0" }, + { "distribution": "torchvision", "importName": "torchvision", "specifier": ">=0.21.0" }, + { "distribution": "tqdm", "importName": "tqdm", "specifier": ">=4.60" }, + { "distribution": "typing-extensions", "importName": "typing_extensions", "specifier": "" }, + { "distribution": "colorama", "importName": "colorama", "platforms": ["windows"], "specifier": "" }, + { "distribution": "transformers", "importName": "transformers", "specifier": ">=5.18.0" }, + { "distribution": "peft", "importName": "peft", "specifier": ">=0.21.2" }, + { "distribution": "tokenizers", "importName": "tokenizers", "specifier": "" }, + { "distribution": "typer", "importName": "typer", "specifier": "" }, + { "distribution": "annotated-doc", "importName": "annotated_doc", "specifier": "" }, + { "distribution": "rich", "importName": "rich", "specifier": "" }, + { "distribution": "markdown-it-py", "importName": "markdown_it", "specifier": "" }, + { "distribution": "mdurl", "importName": "mdurl", "specifier": "" }, + { "distribution": "pygments", "importName": "pygments", "specifier": "" }, + { "distribution": "shellingham", "importName": "shellingham", "specifier": "" }, + { "distribution": "requests", "importName": "requests", "specifier": ">=2.25" }, + { "distribution": "urllib3", "importName": "urllib3", "specifier": "" }, + { "distribution": "charset-normalizer", "importName": "charset_normalizer", "specifier": "" }, + { "distribution": "importlib-metadata", "importName": "importlib_metadata", "specifier": "" } + ], + "contractState": "qualified", + "cutoverReady": true, + "excludedQualificationSymbols": ["add_weighted_adapter"], + "id": "huggingface-diffusers-flux3-7ecb1e1-bitsandbytes-0.50.0", + "installActionAvailable": true, + "installPolicy": "explicit_first_use", + "label": "Official Diffusers FLUX 3 + bitsandbytes 0.50.0", + "machine": "x86_64", + "overlayStatus": "missing", + "packages": [ + { + "distribution": "diffusers", + "distributionUrl": "https://codeload.github.com/huggingface/diffusers/tar.gz/7ecb1e1b4fe500be7fb7381a7bb79a24d7fa3941", + "importName": "diffusers", + "installedVersion": "0.41.0.dev0", + "license": "Apache-2.0", + "projectUrl": "https://github.com/huggingface/diffusers", + "publisher": "Hugging Face", + "requiredClassSymbols": [ + "Flux3ModularPipeline", + "Flux3DistilledModularPipeline", + "Flux3Transformer2DModel", + "AutoencoderKLFlux2", + "FlowMatchEulerDiscreteScheduler", + "ClassifierFreeGuidance", + "ModularPipeline", + "ComponentsManager", + "ComponentSpec" + ], + "requiredSymbols": [ + "Flux3ModularPipeline", + "Flux3DistilledModularPipeline", + "Flux3Transformer2DModel", + "AutoencoderKLFlux2", + "FlowMatchEulerDiscreteScheduler", + "ClassifierFreeGuidance", + "ModularPipeline", + "ComponentsManager", + "ComponentSpec", + "diffusers.loaders.lora_conversion_utils:_convert_non_diffusers_flux3_lora_to_diffusers" + ], + "requiredVersion": "0.41.0.dev0", + "requirement": "diffusers==0.41.0.dev0", + "role": "runtime_root", + "status": "present_unqualified" + }, + { + "distribution": "bitsandbytes", + "distributionUrl": "https://pypi.org/project/bitsandbytes/0.50.0/", + "importName": "bitsandbytes", + "license": "MIT", + "projectUrl": "https://github.com/bitsandbytes-foundation/bitsandbytes", + "publisher": "bitsandbytes contributors", + "requiredClassSymbols": ["nn.Linear4bit"], + "requiredSymbols": ["functional.dequantize_4bit", "nn.Linear4bit"], + "requiredVersion": "0.50.0", + "requirement": "bitsandbytes==0.50.0", + "role": "runtime_root", + "status": "missing" + } + ], + "pipelineAdapterMethods": [ + { "method": "load_components", "requiredParameters": ["names", "workflow"] }, + { "method": "__call__", "requiredParameters": ["state", "output"] } + ], + "pipelineAdapterSymbols": ["Flux3ModularPipeline", "Flux3DistilledModularPipeline"], + "platform": "windows", + "providesDiffusers": true, + "qualificationWorkload": "cuda-nf4-v1", + "requirePeftBackend": true, + "requiredDiffusersSymbols": [ + "Flux3ModularPipeline", + "Flux3DistilledModularPipeline", + "Flux3Transformer2DModel", + "AutoencoderKLFlux2", + "FlowMatchEulerDiscreteScheduler", + "ClassifierFreeGuidance", + "ModularPipeline", + "ComponentsManager", + "ComponentSpec", + "BitsAndBytesConfig" + ], + "requirements": ["diffusers==0.41.0.dev0", "bitsandbytes==0.50.0"], + "satisfiesProfiles": [ + { + "id": "huggingface-diffusers-flux3-7ecb1e1", + "specDigest": "sha256:82017c1615d807c1808c13929f0ee10b180058b2f976e51209a80e41939a40fe" + }, + { + "id": "huggingface-transformers-main-96fe6dce-peft-0.20.0-bitsandbytes-0.50.0", + "specDigest": "sha256:3905f3876edeb3a6cb79af897a3d04d8836d3a63573fec12ce3fccf4ddb67053" + } + ], + "schemaVersion": 1, + "sourceBuilds": [ + { + "buildDependencies": [], + "distribution": "diffusers", + "outputWheel": { + "byteSize": 27721978, + "distribution": "diffusers", + "filename": "diffusers-0.41.0.dev0-py3-none-any.whl", + "machine": "any", + "platform": "any", + "pythonTag": "py3", + "sha256": "59c8eb8aaaa25fe5f912e09c48bf66f7e41655c468a7ec47f56da93d8ca40dbd", + "version": "0.41.0.dev0" + }, + "pythonTag": "py3", + "recipe": "modiff_pure_python_wheel_v1", + "schemaVersion": 1, + "sourceArtifact": { + "archiveRoot": "diffusers-7ecb1e1b4fe500be7fb7381a7bb79a24d7fa3941", + "byteSize": 11802397, + "commit": "7ecb1e1b4fe500be7fb7381a7bb79a24d7fa3941", + "filename": "diffusers-7ecb1e1b4fe500be7fb7381a7bb79a24d7fa3941.tar.gz", + "kind": "github_commit_tarball", + "repository": "huggingface/diffusers", + "sha256": "84ee014d4acc0c7633d2778f2ac0125fa77a87e736c86a8092edb1d47a55a744", + "url": "https://codeload.github.com/huggingface/diffusers/tar.gz/7ecb1e1b4fe500be7fb7381a7bb79a24d7fa3941" + }, + "sourceDateEpoch": 315532800, + "sourceFiles": ["LICENSE", "README.md", "pyproject.toml", "setup.py"], + "sourceTrees": ["src/diffusers"], + "version": "0.41.0.dev0", + "wheelMetadata": { + "consoleScripts": { "diffusers-cli": "diffusers.commands.diffusers_cli:main" }, + "license": "Apache 2.0 License", + "licenseFile": "LICENSE", + "packageRoot": "src", + "requiresDist": [ + "importlib_metadata", + "filelock", + "huggingface-hub<3.0,>=1.32.0", + "numpy", + "regex!=2019.12.17", + "requests", + "safetensors>=0.8.0", + "Pillow" + ], + "requiresPython": ">=3.11.0", + "summary": "State-of-the-art diffusion in PyTorch." + } + } + ], + "specDigest": "sha256:7f3fd36d78b104121e3f4253c2233a91f479a04814e994fb7b08034a7358eb1f", + "stagedPackages": [ + { + "distribution": "diffusers", + "distributionUrl": "https://codeload.github.com/huggingface/diffusers/tar.gz/7ecb1e1b4fe500be7fb7381a7bb79a24d7fa3941", + "importName": "diffusers", + "license": "Apache-2.0", + "projectUrl": "https://github.com/huggingface/diffusers", + "publisher": "Hugging Face", + "requiredClassSymbols": [ + "Flux3ModularPipeline", + "Flux3DistilledModularPipeline", + "Flux3Transformer2DModel", + "AutoencoderKLFlux2", + "FlowMatchEulerDiscreteScheduler", + "ClassifierFreeGuidance", + "ModularPipeline", + "ComponentsManager", + "ComponentSpec" + ], + "requiredSymbols": [ + "Flux3ModularPipeline", + "Flux3DistilledModularPipeline", + "Flux3Transformer2DModel", + "AutoencoderKLFlux2", + "FlowMatchEulerDiscreteScheduler", + "ClassifierFreeGuidance", + "ModularPipeline", + "ComponentsManager", + "ComponentSpec", + "diffusers.loaders.lora_conversion_utils:_convert_non_diffusers_flux3_lora_to_diffusers" + ], + "requiredVersion": "0.41.0.dev0", + "requirement": "diffusers==0.41.0.dev0", + "role": "runtime_root" + }, + { + "distribution": "bitsandbytes", + "distributionUrl": "https://pypi.org/project/bitsandbytes/0.50.0/", + "importName": "bitsandbytes", + "license": "MIT", + "projectUrl": "https://github.com/bitsandbytes-foundation/bitsandbytes", + "publisher": "bitsandbytes contributors", + "requiredClassSymbols": ["nn.Linear4bit"], + "requiredSymbols": ["functional.dequantize_4bit", "nn.Linear4bit"], + "requiredVersion": "0.50.0", + "requirement": "bitsandbytes==0.50.0", + "role": "runtime_root" + } + ], + "stagedRequirements": ["diffusers==0.41.0.dev0", "bitsandbytes==0.50.0"], + "status": "missing", + "targetContracts": [ + { + "activationAvailable": false, + "contractState": "candidate_unqualified", + "cutoverReady": false, + "installActionAvailable": false, + "machine": "x86_64", + "platform": "linux" + }, + { + "activationAvailable": false, + "contractState": "candidate_unqualified", + "cutoverReady": false, + "installActionAvailable": false, + "machine": "arm64", + "platform": "linux" + }, + { + "activationAvailable": false, + "contractState": "candidate_unqualified", + "cutoverReady": false, + "installActionAvailable": false, + "machine": "x86_64", + "platform": "macos" + }, + { + "activationAvailable": false, + "contractState": "candidate_unqualified", + "cutoverReady": false, + "installActionAvailable": false, + "machine": "arm64", + "platform": "macos" + }, + { + "activationAvailable": true, + "contractState": "qualified", + "cutoverReady": true, + "installActionAvailable": true, + "machine": "x86_64", + "platform": "windows" + }, + { + "activationAvailable": false, + "contractState": "candidate_unqualified", + "cutoverReady": false, + "installActionAvailable": false, + "machine": "arm64", + "platform": "windows" + } + ] + } + ], + "schemaVersion": 1 + }, + "proofScope": "Source metadata and required sealed-provider absence only; no model/native/Auto qualification", + "registry": { + "modules.HuggingFaceTransformers.GenerateImageVideoText": { + "action": "GenerateImageVideoText", + "cache": false, + "category": "Hugging Face Transformers", + "description": "Generate bounded text from bounded in-memory images or video frames.", + "label": "Generate Image/Video Text", + "memory": [0, 0, 0], + "module": "modules.HuggingFaceTransformers", + "params": { + "do_sample": { "default": false, "label": "Sample", "type": "boolean" }, + "enhancement_max_new_tokens": { + "default": 3584, + "description": "Used only by prompt enhancement; ordinary generation keeps Max New Tokens.", + "hidden": true, + "label": "Enhancement Token Limit", + "max": 3584, + "min": 1, + "type": "int" + }, + "images": { "display": "input", "label": "Images", "required": false, "type": "image" }, + "layout_conditioning": { + "default": null, + "display": "layout", + "fieldOptions": { "layoutConditioning": { "schemaVersion": 1, "sourceRegions": false } }, + "hidden": true, + "label": "Enhancement Layout", + "type": "layout_conditioning" + }, + "max_image_pixels": { + "default": 16777216, + "label": "Reference Pixel Limit", + "max": 16777216, + "min": 65536, + "type": "int" + }, + "max_input_tokens": { "default": 32768, "label": "Input Token Limit", "max": 32768, "min": 1, "type": "int" }, + "max_new_tokens": { "default": 256, "label": "Max New Tokens", "max": 2048, "min": 1, "type": "int" }, + "min_new_tokens": { "default": 0, "label": "Min New Tokens", "max": 2048, "min": 0, "type": "int" }, + "model": { "display": "input", "label": "Model", "type": "transformers_image_text_to_text" }, + "num_beams": { "default": 1, "label": "Beams", "max": 8, "min": 1, "type": "int" }, + "operation": { + "default": "standard", + "hidden": true, + "label": "Operation", + "options": [ + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "standard", + "schemaVersion": 1, + "value": "standard" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "enhance_prompt", + "schemaVersion": 1, + "value": "enhance_prompt" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "enhance_prompt_append_details", + "schemaVersion": 1, + "value": "enhance_prompt_append_details" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "enhance_prompt_constrained_authored_v1", + "schemaVersion": 1, + "value": "enhance_prompt_constrained_authored_v1" + } + ], + "type": "string" + }, + "prompt": { "default": "", "label": "Prompt", "type": "text" }, + "proposal_diagnostic": { + "display": "output", + "hidden": true, + "label": "Rejected Proposal Diagnostic", + "type": "string" + }, + "proposal_summary": { + "display": "output", + "hidden": true, + "label": "Prompt Proposal Summary", + "type": "string" + }, + "repetition_penalty": { + "default": 1.0, + "label": "Repetition Penalty", + "max": 10.0, + "min": 0.1, + "type": "float" + }, + "result": { "display": "output", "label": "Generation Result", "type": "object" }, + "temperature": { "default": 1.0, "label": "Temperature", "max": 5.0, "min": 0.01, "type": "float" }, + "text": { "display": "output", "label": "Generated Text", "type": "string" }, + "top_k": { "default": 50, "label": "Top K", "max": 1000, "min": 0, "type": "int" }, + "top_p": { "default": 1.0, "label": "Top P", "max": 1.0, "min": 0.01, "type": "float" }, + "use_chat_template": { "default": true, "label": "Use Chat Template", "type": "boolean" }, + "video": { "display": "input", "label": "Video", "required": false, "type": "video" } + }, + "resizable": true, + "skipParamsCheck": false, + "style": {}, + "time": [0, 0, 0], + "type": "custom" + }, + "modules.HuggingFaceTransformers.LoadImageTextToTextModel": { + "action": "LoadImageTextToTextModel", + "cache": false, + "category": "Hugging Face Transformers", + "description": "Load an immutable local-only image/video-to-text model and processor.", + "label": "Load Image/Video-to-Text Model", + "memory": [0, 0, 0], + "module": "modules.HuggingFaceTransformers", + "params": { + "device": { + "default": "cpu:0", + "label": "Device", + "options": { + "cpu": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "cpu", + "schemaVersion": 1, + "value": "cpu" + }, + "cpu:0": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "cpu:0", + "schemaVersion": 1, + "value": "cpu:0" + } + }, + "type": "string" + }, + "dtype": { + "default": "float32", + "label": "DType", + "options": [ + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "float32", + "schemaVersion": 1, + "value": "float32" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "float16", + "schemaVersion": 1, + "value": "float16" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "bfloat16", + "schemaVersion": 1, + "value": "bfloat16" + } + ], + "type": "string" + }, + "model": { "display": "output", "label": "Model", "type": "transformers_image_text_to_text" }, + "model_id": { + "display": "modelselect", + "fieldOptions": { "noValidation": true, "sources": ["hub", "local"] }, + "label": "Model", + "type": "string" + }, + "pipeline_class": { + "default": "AutoModelForImageTextToText", + "hidden": true, + "label": "Execution Class", + "type": "string" + }, + "quantization_mode": { + "default": "none", + "label": "Quantization", + "options": [ + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "none", + "schemaVersion": 1, + "value": "none" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "bnb_4bit", + "schemaVersion": 1, + "value": "bnb_4bit" + } + ], + "type": "string" + }, + "receipt": { "display": "output", "label": "Model Receipt", "type": "object" }, + "revision": { "default": "", "label": "Exact Hub Commit", "type": "string" } + }, + "resizable": true, + "skipParamsCheck": false, + "style": {}, + "time": [0, 0, 0], + "type": "custom" + }, + "modules.ModularDiffusers.DecodeLatents": { + "action": "DecodeLatents", + "cache": false, + "category": "sampler", + "description": "", + "label": "Decode Latents", + "memory": [0, 0, 0], + "module": "modules.ModularDiffusers", + "params": { + "doc": { "display": "output", "label": "Doc", "type": "string" }, + "images": { "display": "output", "label": "Images", "type": "image" }, + "latents": { "display": "input", "label": "Latents *", "type": "latents" }, + "vae": { + "display": "input", + "label": "VAE *", + "onSignal": "update_node", + "signalCompatibility": { "role": "vae" }, + "type": "diffusers_auto_model" + } + }, + "resizable": true, + "skipParamsCheck": true, + "style": {}, + "time": [0, 0, 0], + "type": "custom" + }, + "modules.ModularDiffusers.Denoise": { + "action": "Denoise", + "cache": false, + "category": "sampler", + "description": "", + "label": "Denoise", + "memory": [0, 0, 0], + "module": "modules.ModularDiffusers", + "params": { + "doc": { "display": "output", "label": "Doc", "type": "string" }, + "embeddings": { "display": "input", "label": "Text Embeddings *", "type": "embeddings" }, + "height": { "default": 1024, "label": "Height", "min": 64, "step": 16, "type": "int", "value": 1024 }, + "image_cond_latents": { "display": "input", "label": "Reference Latents", "type": "latents" }, + "latents": { "display": "output", "label": "Latents", "type": "latents" }, + "num_images_per_prompt": { + "default": 1, + "label": "Images Per Prompt", + "max": 8, + "min": 1, + "step": 1, + "type": "int" + }, + "num_inference_steps": { + "default": 16, + "display": "slider", + "label": "Steps", + "max": 100, + "min": 1, + "type": "int", + "value": 16 + }, + "reference_binding": { + "default": null, + "display": "input", + "fieldOptions": { "referenceBinding": { "maxReferences": 10, "schemaVersion": 1 } }, + "label": "Reference Binding", + "type": "reference_conditioning" + }, + "scheduler": { + "display": "input", + "label": "Scheduler *", + "signalCompatibility": { "role": "scheduler" }, + "type": "diffusers_auto_model" + }, + "seed": { "default": 0, "display": "random", "label": "Seed", "max": 4294967295, "min": 0, "type": "int" }, + "unet": { + "display": "input", + "label": "Denoise Model *", + "onSignal": [ + "update_node", + { "action": "signal", "target": "guider" }, + { "action": "signal", "target": "controlnet_bundle" } + ], + "required": true, + "signalCompatibility": { "role": "denoiser" }, + "type": "diffusers_auto_model" + }, + "width": { "default": 1024, "label": "Width", "min": 64, "step": 16, "type": "int", "value": 1024 } + }, + "resizable": true, + "skipParamsCheck": true, + "style": {}, + "time": [0, 0, 0], + "type": "custom" + }, + "modules.ModularDiffusers.EncodePrompt": { + "action": "EncodePrompt", + "cache": false, + "category": "embedding", + "description": "", + "label": "Encode Prompt", + "memory": [0, 0, 0], + "module": "modules.ModularDiffusers", + "params": { + "doc": { "display": "output", "label": "Doc", "type": "string" }, + "embeddings": { "display": "output", "label": "Text Embeddings", "type": "embeddings" }, + "guider": { + "description": "Shared Diffusers guidance used by prompt encoding and denoising when the selected pipeline supports it.", + "display": "input", + "hidden": true, + "label": "Guider", + "type": "custom_guider" + }, + "layout_conditioning": { + "default": null, + "display": "layout", + "fieldOptions": { + "layoutConditioning": { "schemaVersion": 2, "sourceRegions": false, "supportsBoundSourceRegions": true } + }, + "label": "Layout Conditioning", + "type": "layout_conditioning" + }, + "layout_reference_summary": { + "description": "Display-only ordered reference identities and actual preprocessing sizes from the current encoder cache.", + "display": "output", + "hidden": true, + "label": "Bound Reference Summary", + "type": "string" + }, + "max_sequence_length": { + "default": 8192, + "label": "Maximum Sequence Length", + "max": 8192, + "min": 1, + "step": 1, + "type": "int" + }, + "prompt": { + "default": "", + "display": "textarea", + "fieldOptions": { "exampleAttribution": "MoDiff task example" }, + "label": "Prompt *", + "type": "string", + "value": "A red ceramic teapot on a wooden table beside a window, soft morning light, detailed photograph." + }, + "prompt_input": { + "description": "Optional connected prompt. When connected, this replaces the inline Prompt value.", + "display": "input", + "label": "Prompt Input", + "type": "string" + }, + "reference_binding": { + "default": null, + "display": "input", + "fieldOptions": { "referenceBinding": { "maxReferences": 10, "schemaVersion": 1 } }, + "label": "Reference Binding", + "type": "reference_conditioning" + }, + "text_encoder_out_layers": { + "default": [4, 8, 12, 16, 20, 24, 28, 32], + "display": "select", + "fieldOptions": { "multiple": true, "tupleLength": 8, "tupleValue": true }, + "label": "Text Encoder Layers", + "options": [ + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "0", + "schemaVersion": 1, + "value": "0" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "1", + "schemaVersion": 1, + "value": "1" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "2", + "schemaVersion": 1, + "value": "2" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "3", + "schemaVersion": 1, + "value": "3" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "4", + "schemaVersion": 1, + "value": "4" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "5", + "schemaVersion": 1, + "value": "5" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "6", + "schemaVersion": 1, + "value": "6" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "7", + "schemaVersion": 1, + "value": "7" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "8", + "schemaVersion": 1, + "value": "8" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "9", + "schemaVersion": 1, + "value": "9" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "10", + "schemaVersion": 1, + "value": "10" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "11", + "schemaVersion": 1, + "value": "11" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "12", + "schemaVersion": 1, + "value": "12" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "13", + "schemaVersion": 1, + "value": "13" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "14", + "schemaVersion": 1, + "value": "14" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "15", + "schemaVersion": 1, + "value": "15" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "16", + "schemaVersion": 1, + "value": "16" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "17", + "schemaVersion": 1, + "value": "17" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "18", + "schemaVersion": 1, + "value": "18" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "19", + "schemaVersion": 1, + "value": "19" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "20", + "schemaVersion": 1, + "value": "20" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "21", + "schemaVersion": 1, + "value": "21" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "22", + "schemaVersion": 1, + "value": "22" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "23", + "schemaVersion": 1, + "value": "23" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "24", + "schemaVersion": 1, + "value": "24" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "25", + "schemaVersion": 1, + "value": "25" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "26", + "schemaVersion": 1, + "value": "26" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "27", + "schemaVersion": 1, + "value": "27" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "28", + "schemaVersion": 1, + "value": "28" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "29", + "schemaVersion": 1, + "value": "29" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "30", + "schemaVersion": 1, + "value": "30" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "31", + "schemaVersion": 1, + "value": "31" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "32", + "schemaVersion": 1, + "value": "32" + } + ], + "type": "int" + }, + "text_encoders": { + "display": "input", + "label": "Text Encoders *", + "onSignal": "update_node", + "required": true, + "signalCompatibility": { "role": "text_encoders" }, + "type": "diffusers_auto_models" + } + }, + "resizable": true, + "skipParamsCheck": true, + "style": {}, + "time": [0, 0, 0], + "type": "custom" + }, + "modules.ModularDiffusers.Guider": { + "action": "Guider", + "cache": false, + "category": "sampler", + "description": "", + "label": "Guidance", + "memory": [0, 0, 0], + "module": "modules.ModularDiffusers", + "params": { + "enabled": { "label": "Enabled", "type": "boolean", "value": true }, + "guidance_rescale": { + "display": "slider", + "label": "Guidance Rescale", + "max": 10.0, + "min": 0.0, + "step": 0.1, + "type": "float", + "value": 0.0 + }, + "guidance_scale": { + "display": "slider", + "label": "Guidance Scale", + "max": 20.0, + "min": 1.0, + "step": 0.1, + "type": "float", + "value": 3.5 + }, + "guider": { + "fieldOptions": { "loading": true }, + "label": "Guider", + "onChange": [ + "updateNode", + { + "AutoGuidance": ["layers_config"], + "PerturbedAttentionGuidance": ["layers_config"], + "SkipLayerGuidance": ["layers_config"], + "SmoothedEnergyGuidance": ["layers_config"] + } + ], + "options": [ + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "ClassifierFreeGuidance", + "schemaVersion": 1, + "value": "ClassifierFreeGuidance" + } + ], + "type": "string", + "value": "ClassifierFreeGuidance" + }, + "guider_out": { + "display": "output", + "label": "Guider", + "onSignal": [ + { "action": "value", "target": "model_type" }, + { + "action": "value", + "data": { + "Flux2KleinBaseModularPipeline": ["ClassifierFreeGuidance"], + "Flux3ModularPipeline": ["ClassifierFreeGuidance"], + "FluxKontextModularPipeline": ["ClassifierFreeGuidance"], + "FluxModularPipeline": ["ClassifierFreeGuidance"], + "QwenImageEditModularPipeline": [ + "ClassifierFreeGuidance", + "SkipLayerGuidance", + "AdaptiveProjectedGuidance", + "AdaptiveProjectedMixGuidance", + "MagnitudeAwareGuidance", + "ClassifierFreeZeroStarGuidance", + "AutoGuidance", + "SmoothedEnergyGuidance", + "PerturbedAttentionGuidance", + "TangentialClassifierFreeGuidance", + "FrequencyDecoupledGuidance" + ], + "QwenImageEditPlusModularPipeline": [ + "ClassifierFreeGuidance", + "SkipLayerGuidance", + "AdaptiveProjectedGuidance", + "AdaptiveProjectedMixGuidance", + "MagnitudeAwareGuidance", + "ClassifierFreeZeroStarGuidance", + "AutoGuidance", + "SmoothedEnergyGuidance", + "PerturbedAttentionGuidance", + "TangentialClassifierFreeGuidance", + "FrequencyDecoupledGuidance" + ], + "QwenImageLayeredModularPipeline": [ + "ClassifierFreeGuidance", + "AdaptiveProjectedGuidance", + "AdaptiveProjectedMixGuidance", + "MagnitudeAwareGuidance", + "ClassifierFreeZeroStarGuidance", + "TangentialClassifierFreeGuidance", + "FrequencyDecoupledGuidance" + ], + "QwenImageModularPipeline": [ + "ClassifierFreeGuidance", + "SkipLayerGuidance", + "AdaptiveProjectedGuidance", + "AdaptiveProjectedMixGuidance", + "MagnitudeAwareGuidance", + "ClassifierFreeZeroStarGuidance", + "AutoGuidance", + "SmoothedEnergyGuidance", + "PerturbedAttentionGuidance", + "TangentialClassifierFreeGuidance", + "FrequencyDecoupledGuidance" + ], + "StableDiffusionXLModularPipeline": [ + "ClassifierFreeGuidance", + "SkipLayerGuidance", + "AdaptiveProjectedGuidance", + "AdaptiveProjectedMixGuidance", + "MagnitudeAwareGuidance", + "ClassifierFreeZeroStarGuidance", + "AutoGuidance", + "SmoothedEnergyGuidance", + "PerturbedAttentionGuidance", + "TangentialClassifierFreeGuidance", + "FrequencyDecoupledGuidance" + ], + "WanImage2VideoModularPipeline": [ + "ClassifierFreeGuidance", + "AdaptiveProjectedGuidance", + "AdaptiveProjectedMixGuidance", + "MagnitudeAwareGuidance", + "ClassifierFreeZeroStarGuidance", + "TangentialClassifierFreeGuidance", + "FrequencyDecoupledGuidance" + ], + "WanModularPipeline": [ + "ClassifierFreeGuidance", + "AdaptiveProjectedGuidance", + "AdaptiveProjectedMixGuidance", + "MagnitudeAwareGuidance", + "ClassifierFreeZeroStarGuidance", + "TangentialClassifierFreeGuidance", + "FrequencyDecoupledGuidance" + ], + "ZImageModularPipeline": [ + "ClassifierFreeGuidance", + "AdaptiveProjectedGuidance", + "AdaptiveProjectedMixGuidance", + "MagnitudeAwareGuidance", + "ClassifierFreeZeroStarGuidance", + "TangentialClassifierFreeGuidance", + "FrequencyDecoupledGuidance" + ] + }, + "prop": "options", + "target": "guider" + }, + { "action": "signal", "target": "layers_config" } + ], + "signalCompatibility": { + "values": { + "Flux2KleinBaseModularPipeline": ["ClassifierFreeGuidance"], + "Flux3ModularPipeline": ["ClassifierFreeGuidance"], + "FluxKontextModularPipeline": ["ClassifierFreeGuidance"], + "FluxModularPipeline": ["ClassifierFreeGuidance"], + "QwenImageEditModularPipeline": [ + "ClassifierFreeGuidance", + "SkipLayerGuidance", + "AdaptiveProjectedGuidance", + "AdaptiveProjectedMixGuidance", + "MagnitudeAwareGuidance", + "ClassifierFreeZeroStarGuidance", + "AutoGuidance", + "SmoothedEnergyGuidance", + "PerturbedAttentionGuidance", + "TangentialClassifierFreeGuidance", + "FrequencyDecoupledGuidance" + ], + "QwenImageEditPlusModularPipeline": [ + "ClassifierFreeGuidance", + "SkipLayerGuidance", + "AdaptiveProjectedGuidance", + "AdaptiveProjectedMixGuidance", + "MagnitudeAwareGuidance", + "ClassifierFreeZeroStarGuidance", + "AutoGuidance", + "SmoothedEnergyGuidance", + "PerturbedAttentionGuidance", + "TangentialClassifierFreeGuidance", + "FrequencyDecoupledGuidance" + ], + "QwenImageLayeredModularPipeline": [ + "ClassifierFreeGuidance", + "AdaptiveProjectedGuidance", + "AdaptiveProjectedMixGuidance", + "MagnitudeAwareGuidance", + "ClassifierFreeZeroStarGuidance", + "TangentialClassifierFreeGuidance", + "FrequencyDecoupledGuidance" + ], + "QwenImageModularPipeline": [ + "ClassifierFreeGuidance", + "SkipLayerGuidance", + "AdaptiveProjectedGuidance", + "AdaptiveProjectedMixGuidance", + "MagnitudeAwareGuidance", + "ClassifierFreeZeroStarGuidance", + "AutoGuidance", + "SmoothedEnergyGuidance", + "PerturbedAttentionGuidance", + "TangentialClassifierFreeGuidance", + "FrequencyDecoupledGuidance" + ], + "StableDiffusionXLModularPipeline": [ + "ClassifierFreeGuidance", + "SkipLayerGuidance", + "AdaptiveProjectedGuidance", + "AdaptiveProjectedMixGuidance", + "MagnitudeAwareGuidance", + "ClassifierFreeZeroStarGuidance", + "AutoGuidance", + "SmoothedEnergyGuidance", + "PerturbedAttentionGuidance", + "TangentialClassifierFreeGuidance", + "FrequencyDecoupledGuidance" + ], + "WanImage2VideoModularPipeline": [ + "ClassifierFreeGuidance", + "AdaptiveProjectedGuidance", + "AdaptiveProjectedMixGuidance", + "MagnitudeAwareGuidance", + "ClassifierFreeZeroStarGuidance", + "TangentialClassifierFreeGuidance", + "FrequencyDecoupledGuidance" + ], + "WanModularPipeline": [ + "ClassifierFreeGuidance", + "AdaptiveProjectedGuidance", + "AdaptiveProjectedMixGuidance", + "MagnitudeAwareGuidance", + "ClassifierFreeZeroStarGuidance", + "TangentialClassifierFreeGuidance", + "FrequencyDecoupledGuidance" + ], + "ZImageModularPipeline": [ + "ClassifierFreeGuidance", + "AdaptiveProjectedGuidance", + "AdaptiveProjectedMixGuidance", + "MagnitudeAwareGuidance", + "ClassifierFreeZeroStarGuidance", + "TangentialClassifierFreeGuidance", + "FrequencyDecoupledGuidance" + ] + } + }, + "type": "custom_guider" + }, + "layers_config": { "display": "input", "label": "Layers", "type": "layers_config" }, + "model_type": { "default": "", "hidden": true, "type": "string", "value": "Flux3ModularPipeline" }, + "start": { + "display": "slider", + "label": "Start", + "max": 1.0, + "min": 0.0, + "step": 0.01, + "type": "float", + "value": 0.0 + }, + "stop": { + "display": "slider", + "label": "Stop", + "max": 1.0, + "min": 0.01, + "step": 0.01, + "type": "float", + "value": 1.0 + }, + "use_original_formulation": { "label": "Original Formulation", "type": "boolean", "value": false } + }, + "resizable": true, + "skipParamsCheck": true, + "style": {}, + "time": [0, 0, 0], + "type": "custom" + }, + "modules.ModularDiffusers.ModelsLoader": { + "action": "ModelsLoader", + "cache": false, + "category": "loader", + "description": "", + "label": "Load Models", + "memory": [0, 0, 0], + "module": "modules.ModularDiffusers", + "params": { + "attention_backend": { + "default": "inherit", + "description": "Inherit preserves existing native component defaults; explicit choices use the ordinary Diffusers attention API.", + "label": "Attention Backend", + "options": [ + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "inherit", + "schemaVersion": 1, + "value": "inherit" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "auto", + "schemaVersion": 1, + "value": "auto" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "native", + "schemaVersion": 1, + "value": "native" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "_native_math", + "schemaVersion": 1, + "value": "_native_math" + } + ], + "type": "string" + }, + "auto_offload": { "label": "Enable Auto Offload", "type": "boolean", "value": true }, + "controlnet": { "display": "input", "hidden": true, "label": "ControlNet", "type": "diffusers_auto_model" }, + "device": { + "label": "Device", + "options": { + "cpu": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "cpu", + "schemaVersion": 1, + "value": "cpu" + }, + "cpu:0": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "cpu:0", + "schemaVersion": 1, + "value": "cpu:0" + } + }, + "type": "string", + "value": "cpu:0" + }, + "dtype": { + "label": "dtype", + "options": [ + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "float32", + "schemaVersion": 1, + "value": "float32" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "float16", + "schemaVersion": 1, + "value": "float16" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "bfloat16", + "schemaVersion": 1, + "value": "bfloat16" + } + ], + "value": "bfloat16" + }, + "image_encoder": { + "connectionRole": "image_encoder", + "display": "output", + "hidden": true, + "label": "Image Encoder", + "signal": { + "direction": "output", + "origin": "modiff_pipeline_identity", + "value": "Flux3DistilledModularPipeline" + }, + "type": "diffusers_auto_model" + }, + "inpaint_compatibility": { + "default": "native", + "description": "Technical compatibility selection for the reviewed Qwen Edit inpainting candidate; existing nodes retain native policy.", + "hidden": true, + "label": "Inpaint Compatibility", + "options": [ + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "native", + "schemaVersion": 1, + "value": "native" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "whole_v1", + "schemaVersion": 1, + "value": "whole_v1" + } + ], + "type": "string" + }, + "lora_list": { "display": "input", "label": "Lora", "type": "custom_lora" }, + "model_type": { + "description": "Selects the Modular Diffusers pipeline class. This filters compatible checkpoints and publishes the component contract used by connected nodes; it is not the model checkpoint itself.", + "label": "Pipeline Type", + "onChange": "set_filters", + "options": { + "": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "", + "schemaVersion": 1, + "value": "" + }, + "AnimaModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Anima", + "schemaVersion": 1, + "value": "AnimaModularPipeline" + }, + "Cosmos3DistilledModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Cosmos 3 Distilled", + "schemaVersion": 1, + "value": "Cosmos3DistilledModularPipeline" + }, + "Cosmos3OmniModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Cosmos 3 Nano", + "schemaVersion": 1, + "value": "Cosmos3OmniModularPipeline" + }, + "DummyCustomPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Custom", + "schemaVersion": 1, + "value": "DummyCustomPipeline" + }, + "ErnieImageModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "ERNIE Image Turbo", + "schemaVersion": 1, + "value": "ErnieImageModularPipeline" + }, + "Flux2KleinBaseModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Flux 2 Klein Base", + "schemaVersion": 1, + "value": "Flux2KleinBaseModularPipeline" + }, + "Flux2KleinModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Flux 2 Klein Distilled", + "schemaVersion": 1, + "value": "Flux2KleinModularPipeline" + }, + "Flux2ModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Flux 2", + "schemaVersion": 1, + "value": "Flux2ModularPipeline" + }, + "Flux3DistilledModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "FLUX 3 Image Klein", + "schemaVersion": 1, + "value": "Flux3DistilledModularPipeline" + }, + "Flux3ModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "FLUX 3 Image Klein Base", + "schemaVersion": 1, + "value": "Flux3ModularPipeline" + }, + "FluxKontextModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Flux Kontext", + "schemaVersion": 1, + "value": "FluxKontextModularPipeline" + }, + "FluxModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Flux", + "schemaVersion": 1, + "value": "FluxModularPipeline" + }, + "HeliosModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Helios", + "schemaVersion": 1, + "value": "HeliosModularPipeline" + }, + "HeliosPyramidDistilledModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Helios Pyramid Distilled", + "schemaVersion": 1, + "value": "HeliosPyramidDistilledModularPipeline" + }, + "HeliosPyramidModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Helios Pyramid", + "schemaVersion": 1, + "value": "HeliosPyramidModularPipeline" + }, + "HunyuanVideo15ModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "HunyuanVideo 1.5", + "schemaVersion": 1, + "value": "HunyuanVideo15ModularPipeline" + }, + "Ideogram4ModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Ideogram 4 (Contract only)", + "schemaVersion": 1, + "value": "Ideogram4ModularPipeline" + }, + "Krea2ModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Krea 2 (Contract only)", + "schemaVersion": 1, + "value": "Krea2ModularPipeline" + }, + "Krea2TurboModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Krea 2 Turbo (Contract only)", + "schemaVersion": 1, + "value": "Krea2TurboModularPipeline" + }, + "LTX25ModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "LTX-2.5 (Contract only)", + "schemaVersion": 1, + "value": "LTX25ModularPipeline" + }, + "MiniMaxH3ModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "MiniMax H3", + "schemaVersion": 1, + "value": "MiniMaxH3ModularPipeline" + }, + "MiniMaxMusic3ModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "MiniMax Music 3", + "schemaVersion": 1, + "value": "MiniMaxMusic3ModularPipeline" + }, + "QwenImageEditModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Qwen-Image-Edit", + "schemaVersion": 1, + "value": "QwenImageEditModularPipeline" + }, + "QwenImageEditPlusModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Qwen-Image-Edit-2511", + "schemaVersion": 1, + "value": "QwenImageEditPlusModularPipeline" + }, + "QwenImageLayeredModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Qwen-Image-Layered", + "schemaVersion": 1, + "value": "QwenImageLayeredModularPipeline" + }, + "QwenImageModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Qwen-Image-2512", + "schemaVersion": 1, + "value": "QwenImageModularPipeline" + }, + "StableDiffusion3ModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Stable Diffusion 3 (Contract only)", + "schemaVersion": 1, + "value": "StableDiffusion3ModularPipeline" + }, + "StableDiffusionXLModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Stable Diffusion XL", + "schemaVersion": 1, + "value": "StableDiffusionXLModularPipeline" + }, + "WanAnimate2DistilledModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Wan Animate 2 Distilled", + "schemaVersion": 1, + "value": "WanAnimate2DistilledModularPipeline" + }, + "WanAnimate2ModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Wan Animate 2", + "schemaVersion": 1, + "value": "WanAnimate2ModularPipeline" + }, + "WanImage2VideoModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "WAN2 I2V", + "schemaVersion": 1, + "value": "WanImage2VideoModularPipeline" + }, + "WanModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "WAN2 T2V", + "schemaVersion": 1, + "value": "WanModularPipeline" + }, + "ZImageModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Z-Image", + "schemaVersion": 1, + "value": "ZImageModularPipeline" + } + }, + "type": "string", + "value": "Flux3DistilledModularPipeline" + }, + "modiff_pipeline_identity": { + "hidden": true, + "label": "Custom Pipeline Identity", + "type": "object", + "value": null + }, + "offload_mode": { + "default": "model_cpu", + "label": "Offload Mode", + "options": [ + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "auto_cpu", + "schemaVersion": 1, + "value": "auto_cpu" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "none", + "schemaVersion": 1, + "value": "none" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "model_cpu", + "schemaVersion": 1, + "value": "model_cpu" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "group_cpu", + "schemaVersion": 1, + "value": "group_cpu" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "group_disk", + "schemaVersion": 1, + "value": "group_disk" + } + ], + "type": "string", + "value": "model_cpu" + }, + "pipeline_components": { + "connectionRole": "pipeline_components", + "display": "output", + "hidden": false, + "label": "Pipeline Components", + "signal": { + "direction": "output", + "origin": "modiff_pipeline_identity", + "value": "Flux3DistilledModularPipeline" + }, + "type": "diffusers_modular_pipeline_components" + }, + "quant_config": { "display": "input", "label": "Quant Config", "type": "quant_config" }, + "refresh_pipeline_identity_button": { + "display": "ui_button", + "hidden": true, + "label": "Review and Refresh Custom Contract", + "onChange": "refresh_pipeline_identity", + "value": false + }, + "repo_id": { + "display": "modelselect", + "fieldOptions": { + "filter": { "hub": { "className": ["Flux3DistilledModularPipeline"] } }, + "noValidation": true, + "sources": ["hub", "local"] + }, + "label": "Repository ID", + "onChange": "refresh_pipeline_identity", + "type": "string", + "value": { "source": "hub", "value": "black-forest-labs/flux-3-image-klein" } + }, + "reviewed_variant": { + "description": "Select an immutable, reviewed checkpoint for this exact Modular Diffusers pipeline family. Changing it does not replace the workflow graph or reset its parameters.", + "fieldOptions": { "controlTier": "essential" }, + "hidden": true, + "label": "Model", + "options": [ + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "black-forest-labs/flux-3-image-klein", + "schemaVersion": 1, + "value": "black-forest-labs/flux-3-image-klein" + } + ], + "type": "string", + "value": "black-forest-labs/flux-3-image-klein" + }, + "revision": { + "description": "Required exact 40-character commit hash for Hub custom contracts.", + "label": "Revision", + "onChange": "refresh_pipeline_identity", + "type": "string", + "value": "8454017f9ebaada30c998fccd9f67a80c7580f68" + }, + "scheduler": { + "connectionRole": "scheduler", + "display": "output", + "hidden": false, + "label": "Scheduler", + "signal": { + "direction": "output", + "origin": "modiff_pipeline_identity", + "value": "Flux3DistilledModularPipeline" + }, + "type": "diffusers_auto_model" + }, + "text_encoders": { + "connectionRole": "text_encoders", + "display": "output", + "hidden": false, + "label": "Text Encoders", + "signal": { + "direction": "output", + "origin": "modiff_pipeline_identity", + "value": "Flux3DistilledModularPipeline" + }, + "type": "diffusers_auto_models" + }, + "trust_remote_code": { + "description": "Repository code execution is disabled; keep this off for contract preview.", + "label": "Trust Remote Code", + "onChange": "refresh_pipeline_identity", + "type": "boolean", + "value": false + }, + "unet": { "display": "input", "hidden": false, "label": "Denoise Model", "type": "diffusers_auto_model" }, + "unet_out": { + "connectionRole": "denoiser", + "display": "output", + "hidden": false, + "label": "Denoise Model", + "signal": { + "direction": "output", + "origin": "modiff_pipeline_identity", + "value": "Flux3DistilledModularPipeline" + }, + "type": "diffusers_auto_model" + }, + "vae": { "display": "input", "hidden": false, "label": "VAE", "type": "diffusers_auto_model" }, + "vae_out": { + "connectionRole": "vae", + "display": "output", + "hidden": false, + "label": "VAE", + "signal": { + "direction": "output", + "origin": "modiff_pipeline_identity", + "value": "Flux3DistilledModularPipeline" + }, + "type": "diffusers_auto_model" + }, + "vae_slicing": { + "default": null, + "description": "An unset policy preserves the native VAE configuration; templates may bind an explicit boolean.", + "hidden": true, + "label": "VAE Slicing", + "type": "boolean" + }, + "vae_tiling": { + "default": null, + "description": "An unset policy preserves the native VAE configuration; templates may bind an explicit boolean.", + "hidden": true, + "label": "VAE Tiling", + "type": "boolean" + }, + "weight_format": { + "default": "native", + "description": "Select a backend-declared immutable component format. Missing reviewed files must be installed through Model Manager.", + "fieldOptions": { "controlTier": "advanced" }, + "hidden": false, + "label": "Weight Format", + "options": [ + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "native", + "schemaVersion": 1, + "value": "native" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "fp8r", + "schemaVersion": 1, + "value": "fp8r" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "nvfp4", + "schemaVersion": 1, + "value": "nvfp4" + } + ], + "type": "string" + }, + "weight_loading_mode": { + "default": "cpu", + "description": "Load weights on CPU or CUDA before disk offload. CUDA loading needs room for a complete component and is available only for supported models.", + "fieldOptions": { "controlTier": "advanced" }, + "label": "Weight Loading", + "options": [ + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "cpu", + "schemaVersion": 1, + "value": "cpu" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "cuda", + "schemaVersion": 1, + "value": "cuda" + } + ], + "type": "string" + }, + "workflow_id": { + "description": "Exact reviewed component partition selected by a first-party Cluster Node.", + "hidden": true, + "label": "Reviewed Workflow", + "type": "string", + "value": "text2image" + } + }, + "resizable": true, + "skipParamsCheck": true, + "style": {}, + "time": [0, 0, 0], + "type": "custom" + } + }, + "schemaVersion": 1, + "sourceHashes": { + "data/prompt-enhancement-constraints.v1.json": "f321df19db5e99786b807a13d8f380e4bc0577e27163b94e6762661881ac5c08", + "modiff/ancillary_execution.py": "19beae7b072b684208708c8184b1a95d9e3fa85685d2b235bdb8bbc3b6993b30", + "modiff/diffusers_profiles.py": "2916ecb73e09a5ea109e71184849a0921299634fcd7a66b64c4ffbc3e7e3731c", + "modiff/operation_catalog.py": "e8cb0738d64652946a9100000f8e2048aa8f96963432a7ed1d4aef34eef3d521", + "modiff/operation_starters.py": "444805940661c0bac6848e36ee3edf7ebe85c5965ce2aeb6a7cb17bee1c58a60", + "modiff/optional_runtimes.py": "991605da4df2a91aab490cbcfe307fe0c3cb514f17e9c55c4088a83a9e0b6041", + "modiff/prompt_enhancement_constraints.py": "501ed02a946ce7255d16505071ff04c0d93eacf73d00626fa24518cd42f96145", + "modiff/runtime_overlays.py": "5949918bef42d68c1087ad36425811e12b608168682990c5c57a05052132e4b6", + "modiff/server.py": "9fe6857104a2688ae449094842f5016e9072540ae1e0553a1ea9b5bc5f6fd7ce", + "modiff/studio_execution_specs.py": "080461244e3ff52b2a8b1c2e0f0dc2113d04389fc9edc4a48bcb926bfc336dac" + }, + "starters": [ + { + "authoring": { + "ancillaryOperations": [ + { + "adapter": { + "declarationSha256": "sha256:2a3d4685988b418115008bbb95fb3e948097580c0bedd2940ea3fe1e40254dc2", + "id": "transformers-prompt-enhancement-v1" + }, + "bindings": { + "output": { "field": "proposal_summary", "role": "proposal" }, + "owner": { + "layoutField": "layout_conditioning", + "promptField": "prompt", + "referenceSource": null, + "role": "prompt" + }, + "request": { + "imagesField": "images", + "layoutField": "layout_conditioning", + "promptField": "prompt", + "role": "proposal" + } + }, + "contentHash": "studio-ancillary-v1-1df722f0", + "edges": [["provider", "model", "proposal", "model"]], + "executionPurpose": "explicit_preview", + "fieldOverrides": [ + ["proposal", "enhancement_max_new_tokens", { "hidden": false }], + ["proposal", "max_new_tokens", { "hidden": true }] + ], + "id": "flux3-klein-base:official:text-to-image:prompt-preview-append-fp32:v1:preview", + "initialValues": [ + ["provider", "model_id", { "source": "hub", "value": "black-forest-labs/flux-3-image-klein-pup" }], + ["provider", "revision", "3f3edb52b2c55de0d49feab28598b68f7f8e4830"], + ["proposal", "operation", "enhance_prompt_append_details"], + ["provider", "dtype", "float32"], + ["provider", "device", "cuda:0"], + ["provider", "quantization_mode", "none"], + ["proposal", "max_input_tokens", 4096] + ], + "layoutPolicy": "append-details-preserve-layout-v1", + "parent": { + "authoringRecipeId": "flux3-klein-base:official:text-to-image:prompt-preview-append-fp32:v1", + "baseSpecContentHash": "studio-spec-v1-f5960f24", + "baseSpecId": "flux3-klein-base:official-provider:v1:text-to-image:v1", + "executionProfileId": "flux3-klein-base:official-provider:v1", + "pipelineClass": "Flux3ModularPipeline", + "task": "text_to_image" + }, + "roles": [ + ["provider", "modules.HuggingFaceTransformers.LoadImageTextToTextModel", -720, -400], + ["proposal", "modules.HuggingFaceTransformers.GenerateImageVideoText", -360, -400] + ], + "schemaVersion": 1, + "sourceRegions": false, + "verification": { + "adapter": { + "declarationSha256": "sha256:2a3d4685988b418115008bbb95fb3e948097580c0bedd2940ea3fe1e40254dc2", + "id": "transformers-prompt-enhancement-v1" + }, + "chatTemplateSha256": "sha256:a4aee8afcf2e0711942cf848899be66016f8d14a889ff9ede07bca099c28f715", + "layoutRequestSuffixSha256": "sha256:5c48f090514be3472650c23ccd5f6cc19077bf68cd163338aaf6903f720a7561", + "modelReceipt": { + "library": "transformers", + "loader": { "modelAutoClass": "AutoModelForImageTextToText", "preprocessorAutoClass": "AutoProcessor" }, + "runtime": { + "architectures": ["Qwen3_5ForConditionalGeneration"], + "modelClass": "Qwen3_5ForConditionalGeneration", + "modelType": "qwen3_5", + "preprocessorClass": "Qwen3VLProcessor", + "transformersVersion": "5.18.0" + }, + "schemaVersion": 1, + "security": { + "hostedInference": false, + "localFilesOnly": true, + "safetensorsOnly": true, + "trustRemoteCode": false + }, + "source": { + "kind": "hub", + "repository": "black-forest-labs/flux-3-image-klein-pup", + "revision": "3f3edb52b2c55de0d49feab28598b68f7f8e4830" + }, + "task": "image-video-to-text" + }, + "quantizationRecipes": [ + { "mode": "none" }, + { + "computeDtype": "bfloat16", + "doubleQuant": true, + "mode": "bnb_4bit", + "quantType": "nf4", + "skipModules": ["lm_head", "model.visual"] + } + ], + "requestInputs": { + "maxImagePixelsField": "max_image_pixels", + "maxInputTokensField": "max_input_tokens", + "maxNewTokensField": "enhancement_max_new_tokens", + "minNewTokensField": "min_new_tokens", + "operationField": "operation", + "role": "proposal" + }, + "runtimeInputs": { + "deviceField": "device", + "dtypeField": "dtype", + "modelField": "model_id", + "quantizationField": "quantization_mode", + "revisionField": "revision", + "role": "provider" + }, + "schemaVersion": 1, + "supportedPromptModes": ["t2i", "i2i"], + "systemPromptSha256ByMode": { + "i2i": "95cec384d5b6d341caa9fb3f2c7ca45ee80c2364b3a95d4044aebf976f6dd3bf", + "i2i_bbox": "9ad10f947e401337cf155cac0518cc428159ef16f2f029f48aae2aaab8380a5e", + "t2i": "8b235a421bce2213d11ada01f5a1244443dd72303ffbb4cc9e5a0d8b0de5ab6f", + "t2i_bbox": "5f513d8ce5838732919f9e645507aa20ff373e88bf93132c768e063c9db3151f" + }, + "systemPromptsSha256": "sha256:b5da3ed8bc04ab59dbdb747930f7dbff847e868903fed8028f85ee1a4ac82fb4" + } + } + ], + "baseSpecContentHash": "studio-spec-v1-f5960f24", + "baseSpecId": "flux3-klein-base:official-provider:v1:text-to-image:v1", + "bindings": [ + ["models", "model_type", "pipelineClass"], + ["models", "repo_id", "artifact"], + ["models", "revision", "defaultRevision"], + ["models", "dtype", "dtype"], + ["models", "device", "device"], + ["models", "auto_offload", "autoOffload"], + ["models", "offload_mode", "offloadMode"], + ["models", "trust_remote_code", "false"], + ["prompt", "prompt", "prompt"], + ["prompt", "negative_prompt", "negativePrompt"], + ["denoise", "width", "width"], + ["denoise", "height", "height"], + ["denoise", "seed", "seed"], + ["denoise", "num_inference_steps", "steps"], + ["prompt", "max_sequence_length", "maxSequenceLength"], + ["models", "weight_format", "weightFormat"], + ["guider", "guider", "classifierFreeGuidance"], + ["guider", "model_type", "pipelineClass"], + ["guider", "guidance_scale", "guidanceScale"] + ], + "canonicalizationVersion": 1, + "contentHash": "studio-authoring-v1-67e156e6", + "edges": [ + ["models", "text_encoders", "prompt", "text_encoders"], + ["models", "unet_out", "denoise", "unet"], + ["models", "scheduler", "denoise", "scheduler"], + ["models", "vae_out", "decode", "vae"], + ["prompt", "embeddings", "denoise", "embeddings"], + ["denoise", "latents", "decode", "latents"], + ["decode", "images", "preview", "image"], + ["guider", "guider_out", "denoise", "guider"] + ], + "executionProfileIds": ["flux3-klein-base:official-provider:v1"], + "id": "flux3-klein-base:official:text-to-image:prompt-preview-append-fp32:v1", + "initialValues": [], + "roles": [ + ["models", "modules.ModularDiffusers.ModelsLoader", -720, -80], + ["prompt", "modules.ModularDiffusers.EncodePrompt", -360, -240], + ["denoise", "modules.ModularDiffusers.Denoise", 80, -80], + ["decode", "modules.ModularDiffusers.DecodeLatents", 440, -80], + ["preview", "modules.Image.Preview", 800, -80], + ["guider", "modules.ModularDiffusers.Guider", -360, 160] + ], + "schemaVersion": 1 + }, + "edges": [ + { + "source": "diffusion.load_models", + "sourceHandle": "text_encoders", + "target": "diffusion.encode_prompt", + "targetHandle": "text_encoders" + }, + { + "source": "diffusion.load_models", + "sourceHandle": "scheduler", + "target": "diffusion.denoise", + "targetHandle": "scheduler" + }, + { + "source": "diffusion.load_models", + "sourceHandle": "unet_out", + "target": "diffusion.denoise", + "targetHandle": "unet" + }, + { + "source": "diffusion.load_models", + "sourceHandle": "vae_out", + "target": "diffusion.decode_latents", + "targetHandle": "vae" + }, + { + "source": "diffusion.encode_prompt", + "sourceHandle": "embeddings", + "target": "diffusion.denoise", + "targetHandle": "embeddings" + }, + { + "source": "diffusion.denoise", + "sourceHandle": "latents", + "target": "diffusion.decode_latents", + "targetHandle": "latents" + }, + { + "source": "diffusion.guidance", + "sourceHandle": "guider_out", + "target": "diffusion.denoise", + "targetHandle": "guider" + } + ], + "nodes": [ + { + "node": { + "action": "ModelsLoader", + "cache": false, + "category": "loader", + "description": "", + "label": "Load Models", + "memory": [0, 0, 0], + "module": "modules.ModularDiffusers", + "params": { + "attention_backend": { + "default": "inherit", + "description": "Inherit preserves existing native component defaults; explicit choices use the ordinary Diffusers attention API.", + "label": "Attention Backend", + "options": [ + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "inherit", + "schemaVersion": 1, + "value": "inherit" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "auto", + "schemaVersion": 1, + "value": "auto" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "native", + "schemaVersion": 1, + "value": "native" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "_native_math", + "schemaVersion": 1, + "value": "_native_math" + } + ], + "type": "string" + }, + "auto_offload": { "label": "Enable Auto Offload", "type": "boolean", "value": true }, + "controlnet": { + "display": "input", + "hidden": true, + "label": "ControlNet", + "type": "diffusers_auto_model" + }, + "device": { + "label": "Device", + "options": { + "cpu": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "cpu", + "schemaVersion": 1, + "value": "cpu" + }, + "cpu:0": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "cpu:0", + "schemaVersion": 1, + "value": "cpu:0" + } + }, + "type": "string", + "value": "cpu:0" + }, + "dtype": { + "label": "dtype", + "options": [ + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "float32", + "schemaVersion": 1, + "value": "float32" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "float16", + "schemaVersion": 1, + "value": "float16" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "bfloat16", + "schemaVersion": 1, + "value": "bfloat16" + } + ], + "value": "bfloat16" + }, + "image_encoder": { + "connectionRole": "image_encoder", + "display": "output", + "hidden": true, + "label": "Image Encoder", + "signal": { + "direction": "output", + "origin": "modiff_pipeline_identity", + "value": "Flux3ModularPipeline" + }, + "type": "diffusers_auto_model" + }, + "inpaint_compatibility": { + "default": "native", + "description": "Technical compatibility selection for the reviewed Qwen Edit inpainting candidate; existing nodes retain native policy.", + "hidden": true, + "label": "Inpaint Compatibility", + "options": [ + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "native", + "schemaVersion": 1, + "value": "native" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "whole_v1", + "schemaVersion": 1, + "value": "whole_v1" + } + ], + "type": "string" + }, + "lora_list": { "display": "input", "label": "Lora", "type": "custom_lora" }, + "model_type": { + "description": "Selects the Modular Diffusers pipeline class. This filters compatible checkpoints and publishes the component contract used by connected nodes; it is not the model checkpoint itself.", + "label": "Pipeline Type", + "onChange": "set_filters", + "options": { + "": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "", + "schemaVersion": 1, + "value": "" + }, + "AnimaModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Anima", + "schemaVersion": 1, + "value": "AnimaModularPipeline" + }, + "Cosmos3DistilledModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Cosmos 3 Distilled", + "schemaVersion": 1, + "value": "Cosmos3DistilledModularPipeline" + }, + "Cosmos3OmniModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Cosmos 3 Nano", + "schemaVersion": 1, + "value": "Cosmos3OmniModularPipeline" + }, + "DummyCustomPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Custom", + "schemaVersion": 1, + "value": "DummyCustomPipeline" + }, + "ErnieImageModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "ERNIE Image Turbo", + "schemaVersion": 1, + "value": "ErnieImageModularPipeline" + }, + "Flux2KleinBaseModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Flux 2 Klein Base", + "schemaVersion": 1, + "value": "Flux2KleinBaseModularPipeline" + }, + "Flux2KleinModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Flux 2 Klein Distilled", + "schemaVersion": 1, + "value": "Flux2KleinModularPipeline" + }, + "Flux2ModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Flux 2", + "schemaVersion": 1, + "value": "Flux2ModularPipeline" + }, + "Flux3DistilledModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "FLUX 3 Image Klein", + "schemaVersion": 1, + "value": "Flux3DistilledModularPipeline" + }, + "Flux3ModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "FLUX 3 Image Klein Base", + "schemaVersion": 1, + "value": "Flux3ModularPipeline" + }, + "FluxKontextModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Flux Kontext", + "schemaVersion": 1, + "value": "FluxKontextModularPipeline" + }, + "FluxModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Flux", + "schemaVersion": 1, + "value": "FluxModularPipeline" + }, + "HeliosModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Helios", + "schemaVersion": 1, + "value": "HeliosModularPipeline" + }, + "HeliosPyramidDistilledModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Helios Pyramid Distilled", + "schemaVersion": 1, + "value": "HeliosPyramidDistilledModularPipeline" + }, + "HeliosPyramidModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Helios Pyramid", + "schemaVersion": 1, + "value": "HeliosPyramidModularPipeline" + }, + "HunyuanVideo15ModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "HunyuanVideo 1.5", + "schemaVersion": 1, + "value": "HunyuanVideo15ModularPipeline" + }, + "Ideogram4ModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Ideogram 4 (Contract only)", + "schemaVersion": 1, + "value": "Ideogram4ModularPipeline" + }, + "Krea2ModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Krea 2 (Contract only)", + "schemaVersion": 1, + "value": "Krea2ModularPipeline" + }, + "Krea2TurboModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Krea 2 Turbo (Contract only)", + "schemaVersion": 1, + "value": "Krea2TurboModularPipeline" + }, + "LTX25ModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "LTX-2.5 (Contract only)", + "schemaVersion": 1, + "value": "LTX25ModularPipeline" + }, + "MiniMaxH3ModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "MiniMax H3", + "schemaVersion": 1, + "value": "MiniMaxH3ModularPipeline" + }, + "MiniMaxMusic3ModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "MiniMax Music 3", + "schemaVersion": 1, + "value": "MiniMaxMusic3ModularPipeline" + }, + "QwenImageEditModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Qwen-Image-Edit", + "schemaVersion": 1, + "value": "QwenImageEditModularPipeline" + }, + "QwenImageEditPlusModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Qwen-Image-Edit-2511", + "schemaVersion": 1, + "value": "QwenImageEditPlusModularPipeline" + }, + "QwenImageLayeredModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Qwen-Image-Layered", + "schemaVersion": 1, + "value": "QwenImageLayeredModularPipeline" + }, + "QwenImageModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Qwen-Image-2512", + "schemaVersion": 1, + "value": "QwenImageModularPipeline" + }, + "StableDiffusion3ModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Stable Diffusion 3 (Contract only)", + "schemaVersion": 1, + "value": "StableDiffusion3ModularPipeline" + }, + "StableDiffusionXLModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Stable Diffusion XL", + "schemaVersion": 1, + "value": "StableDiffusionXLModularPipeline" + }, + "WanAnimate2DistilledModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Wan Animate 2 Distilled", + "schemaVersion": 1, + "value": "WanAnimate2DistilledModularPipeline" + }, + "WanAnimate2ModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Wan Animate 2", + "schemaVersion": 1, + "value": "WanAnimate2ModularPipeline" + }, + "WanImage2VideoModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "WAN2 I2V", + "schemaVersion": 1, + "value": "WanImage2VideoModularPipeline" + }, + "WanModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "WAN2 T2V", + "schemaVersion": 1, + "value": "WanModularPipeline" + }, + "ZImageModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Z-Image", + "schemaVersion": 1, + "value": "ZImageModularPipeline" + } + }, + "type": "string", + "value": "Flux3ModularPipeline" + }, + "modiff_pipeline_identity": { + "hidden": true, + "label": "Custom Pipeline Identity", + "type": "object", + "value": null + }, + "offload_mode": { + "default": "model_cpu", + "label": "Offload Mode", + "options": [ + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "auto_cpu", + "schemaVersion": 1, + "value": "auto_cpu" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "none", + "schemaVersion": 1, + "value": "none" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "model_cpu", + "schemaVersion": 1, + "value": "model_cpu" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "group_cpu", + "schemaVersion": 1, + "value": "group_cpu" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "group_disk", + "schemaVersion": 1, + "value": "group_disk" + } + ], + "type": "string", + "value": "model_cpu" + }, + "pipeline_components": { + "connectionRole": "pipeline_components", + "display": "output", + "hidden": false, + "label": "Pipeline Components", + "signal": { + "direction": "output", + "origin": "modiff_pipeline_identity", + "value": "Flux3ModularPipeline" + }, + "type": "diffusers_modular_pipeline_components" + }, + "quant_config": { "display": "input", "label": "Quant Config", "type": "quant_config" }, + "refresh_pipeline_identity_button": { + "display": "ui_button", + "hidden": true, + "label": "Review and Refresh Custom Contract", + "onChange": "refresh_pipeline_identity", + "value": false + }, + "repo_id": { + "display": "modelselect", + "fieldOptions": { + "filter": { "hub": { "className": ["Flux3ModularPipeline"] } }, + "noValidation": true, + "sources": ["hub", "local"] + }, + "label": "Repository ID", + "onChange": "refresh_pipeline_identity", + "type": "string", + "value": { "source": "hub", "value": "black-forest-labs/flux-3-image-klein-base" } + }, + "reviewed_variant": { + "description": "Select an immutable, reviewed checkpoint for this exact Modular Diffusers pipeline family. Changing it does not replace the workflow graph or reset its parameters.", + "fieldOptions": { "controlTier": "essential" }, + "hidden": true, + "label": "Model", + "options": [ + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "black-forest-labs/flux-3-image-klein-base", + "schemaVersion": 1, + "value": "black-forest-labs/flux-3-image-klein-base" + } + ], + "type": "string", + "value": "black-forest-labs/flux-3-image-klein-base" + }, + "revision": { + "description": "Required exact 40-character commit hash for Hub custom contracts.", + "label": "Revision", + "onChange": "refresh_pipeline_identity", + "type": "string", + "value": "1469d27cfb9bb1bd81d3a93f5a023b39dbf136e4" + }, + "scheduler": { + "connectionRole": "scheduler", + "display": "output", + "hidden": false, + "label": "Scheduler", + "signal": { + "direction": "output", + "origin": "modiff_pipeline_identity", + "value": "Flux3ModularPipeline" + }, + "type": "diffusers_auto_model" + }, + "text_encoders": { + "connectionRole": "text_encoders", + "display": "output", + "hidden": false, + "label": "Text Encoders", + "signal": { + "direction": "output", + "origin": "modiff_pipeline_identity", + "value": "Flux3ModularPipeline" + }, + "type": "diffusers_auto_models" + }, + "trust_remote_code": { + "description": "Repository code execution is disabled; keep this off for contract preview.", + "label": "Trust Remote Code", + "onChange": "refresh_pipeline_identity", + "type": "boolean", + "value": false + }, + "unet": { "display": "input", "hidden": false, "label": "Denoise Model", "type": "diffusers_auto_model" }, + "unet_out": { + "connectionRole": "denoiser", + "display": "output", + "hidden": false, + "label": "Denoise Model", + "signal": { + "direction": "output", + "origin": "modiff_pipeline_identity", + "value": "Flux3ModularPipeline" + }, + "type": "diffusers_auto_model" + }, + "vae": { "display": "input", "hidden": false, "label": "VAE", "type": "diffusers_auto_model" }, + "vae_out": { + "connectionRole": "vae", + "display": "output", + "hidden": false, + "label": "VAE", + "signal": { + "direction": "output", + "origin": "modiff_pipeline_identity", + "value": "Flux3ModularPipeline" + }, + "type": "diffusers_auto_model" + }, + "vae_slicing": { + "default": null, + "description": "An unset policy preserves the native VAE configuration; templates may bind an explicit boolean.", + "hidden": true, + "label": "VAE Slicing", + "type": "boolean" + }, + "vae_tiling": { + "default": null, + "description": "An unset policy preserves the native VAE configuration; templates may bind an explicit boolean.", + "hidden": true, + "label": "VAE Tiling", + "type": "boolean" + }, + "weight_format": { + "default": "native", + "description": "Select a backend-declared immutable component format. Missing reviewed files must be installed through Model Manager.", + "fieldOptions": { "controlTier": "advanced" }, + "hidden": false, + "label": "Weight Format", + "options": [ + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "native", + "schemaVersion": 1, + "value": "native" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "fp8r", + "schemaVersion": 1, + "value": "fp8r" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "nvfp4", + "schemaVersion": 1, + "value": "nvfp4" + } + ], + "type": "string" + }, + "weight_loading_mode": { + "default": "cpu", + "description": "Load weights on CPU or CUDA before disk offload. CUDA loading needs room for a complete component and is available only for supported models.", + "fieldOptions": { "controlTier": "advanced" }, + "label": "Weight Loading", + "options": [ + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "cpu", + "schemaVersion": 1, + "value": "cpu" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "cuda", + "schemaVersion": 1, + "value": "cuda" + } + ], + "type": "string" + }, + "workflow_id": { + "description": "Exact reviewed component partition selected by a first-party Cluster Node.", + "hidden": true, + "label": "Reviewed Workflow", + "type": "string", + "value": "text2image" + } + }, + "resizable": true, + "skipParamsCheck": true, + "style": {}, + "time": [0, 0, 0], + "type": "custom" + }, + "operation": { + "binding": { "pipelineClass": "Flux3ModularPipeline", "values": { "model_type": "Flux3ModularPipeline" } }, + "blockName": null, + "decomposition": "loader", + "nodeKey": "modules.ModularDiffusers.ModelsLoader", + "nodeType": "loader", + "operationId": "diffusion.load_models", + "pipelineClass": "Flux3ModularPipeline", + "ports": [ + { + "direction": "input", + "hidden": false, + "name": "model_type", + "required": false, + "roles": ["value"], + "semanticName": "model_type", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": false, + "name": "repo_id", + "required": false, + "roles": ["value"], + "semanticName": "repo_id", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": true, + "name": "reviewed_variant", + "required": false, + "roles": ["value"], + "semanticName": "reviewed_variant", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": false, + "name": "device", + "required": false, + "roles": ["value"], + "semanticName": "device", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": false, + "name": "attention_backend", + "required": false, + "roles": ["value"], + "semanticName": "attention_backend", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": true, + "name": "vae_slicing", + "required": false, + "roles": ["value"], + "semanticName": "vae_slicing", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["boolean"] + }, + { + "direction": "input", + "hidden": true, + "name": "vae_tiling", + "required": false, + "roles": ["value"], + "semanticName": "vae_tiling", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["boolean"] + }, + { + "direction": "input", + "hidden": true, + "name": "inpaint_compatibility", + "required": false, + "roles": ["value"], + "semanticName": "inpaint_compatibility", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": false, + "name": "trust_remote_code", + "required": false, + "roles": ["value"], + "semanticName": "trust_remote_code", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["boolean"] + }, + { + "direction": "input", + "hidden": false, + "name": "revision", + "required": false, + "roles": ["value"], + "semanticName": "revision", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": true, + "name": "workflow_id", + "required": false, + "roles": ["value"], + "semanticName": "workflow_id", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": true, + "name": "modiff_pipeline_identity", + "required": false, + "roles": ["value"], + "semanticName": "modiff_pipeline_identity", + "semantics": { + "kind": "opaque", + "members": [], + "owner": "none", + "scope": "Flux3ModularPipeline", + "state": null + }, + "types": ["object"] + }, + { + "direction": "input", + "hidden": false, + "name": "auto_offload", + "required": false, + "roles": ["value"], + "semanticName": "auto_offload", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["boolean"] + }, + { + "direction": "input", + "hidden": false, + "name": "offload_mode", + "required": false, + "roles": ["value"], + "semanticName": "offload_mode", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": false, + "name": "weight_loading_mode", + "required": false, + "roles": ["value"], + "semanticName": "weight_loading_mode", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": true, + "name": "weight_format", + "required": false, + "roles": ["value"], + "semanticName": "weight_format", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": false, + "name": "unet", + "required": false, + "roles": ["component"], + "semanticName": "unet", + "semantics": { + "kind": "component", + "members": [ + { + "name": "transformer", + "type": "diffusers.models.transformers.transformer_flux3.Flux3Transformer2DModel" + } + ], + "owner": "same_loader", + "scope": "Flux3ModularPipeline", + "state": null + }, + "types": ["diffusers_auto_model"] + }, + { + "direction": "input", + "hidden": false, + "name": "vae", + "required": false, + "roles": ["component"], + "semanticName": "vae", + "semantics": { + "kind": "component", + "members": [ + { "name": "vae", "type": "diffusers.models.autoencoders.autoencoder_kl_flux2.AutoencoderKLFlux2" } + ], + "owner": "same_loader", + "scope": "Flux3ModularPipeline", + "state": null + }, + "types": ["diffusers_auto_model"] + }, + { + "direction": "input", + "hidden": true, + "name": "controlnet", + "required": false, + "roles": ["component"], + "semanticName": "controlnet", + "semantics": { + "kind": "component", + "members": [], + "owner": "same_loader", + "scope": "Flux3ModularPipeline", + "state": null + }, + "types": ["diffusers_auto_model"] + }, + { + "direction": "input", + "hidden": false, + "name": "lora_list", + "required": false, + "roles": ["value"], + "semanticName": "lora_list", + "semantics": { + "kind": "opaque", + "members": [], + "owner": "none", + "scope": "Flux3ModularPipeline", + "state": null + }, + "types": ["custom_lora"] + }, + { + "direction": "output", + "hidden": false, + "name": "text_encoders", + "required": false, + "roles": ["component"], + "semanticName": "text_encoders", + "semantics": { + "kind": "component", + "members": [ + { + "name": "text_encoder", + "type": "transformers.models.qwen3_vl.modeling_qwen3_vl.Qwen3VLForConditionalGeneration" + }, + { "name": "tokenizer", "type": "transformers.models.auto.processing_auto.AutoProcessor" } + ], + "owner": "same_loader", + "scope": "Flux3ModularPipeline", + "state": null + }, + "types": ["diffusers_auto_models"] + }, + { + "direction": "output", + "hidden": false, + "name": "unet_out", + "required": false, + "roles": ["component"], + "semanticName": "unet_out", + "semantics": { + "kind": "component", + "members": [ + { + "name": "transformer", + "type": "diffusers.models.transformers.transformer_flux3.Flux3Transformer2DModel" + } + ], + "owner": "same_loader", + "scope": "Flux3ModularPipeline", + "state": null + }, + "types": ["diffusers_auto_model"] + }, + { + "direction": "output", + "hidden": false, + "name": "vae_out", + "required": false, + "roles": ["component"], + "semanticName": "vae_out", + "semantics": { + "kind": "component", + "members": [ + { "name": "vae", "type": "diffusers.models.autoencoders.autoencoder_kl_flux2.AutoencoderKLFlux2" } + ], + "owner": "same_loader", + "scope": "Flux3ModularPipeline", + "state": null + }, + "types": ["diffusers_auto_model"] + }, + { + "direction": "output", + "hidden": false, + "name": "scheduler", + "required": false, + "roles": ["component"], + "semanticName": "scheduler", + "semantics": { + "kind": "component", + "members": [ + { + "name": "scheduler", + "type": "diffusers.schedulers.scheduling_flow_match_euler_discrete.FlowMatchEulerDiscreteScheduler" + } + ], + "owner": "same_loader", + "scope": "Flux3ModularPipeline", + "state": null + }, + "types": ["diffusers_auto_model"] + }, + { + "direction": "output", + "hidden": true, + "name": "image_encoder", + "required": false, + "roles": ["component"], + "semanticName": "image_encoder", + "semantics": { + "kind": "component", + "members": [], + "owner": "same_loader", + "scope": "Flux3ModularPipeline", + "state": null + }, + "types": ["diffusers_auto_model"] + }, + { + "direction": "output", + "hidden": false, + "name": "pipeline_components", + "required": false, + "roles": ["component"], + "semanticName": "pipeline_components", + "semantics": { + "kind": "component", + "members": [ + { "name": "guider", "type": "diffusers.guiders.classifier_free_guidance.ClassifierFreeGuidance" }, + { + "name": "image_processor", + "type": "diffusers.modular_pipelines.flux3.image_processor.Flux3ImageProcessor" + }, + { + "name": "scheduler", + "type": "diffusers.schedulers.scheduling_flow_match_euler_discrete.FlowMatchEulerDiscreteScheduler" + }, + { + "name": "text_encoder", + "type": "transformers.models.qwen3_vl.modeling_qwen3_vl.Qwen3VLForConditionalGeneration" + }, + { "name": "tokenizer", "type": "transformers.models.auto.processing_auto.AutoProcessor" }, + { + "name": "transformer", + "type": "diffusers.models.transformers.transformer_flux3.Flux3Transformer2DModel" + }, + { "name": "vae", "type": "diffusers.models.autoencoders.autoencoder_kl_flux2.AutoencoderKLFlux2" } + ], + "owner": "same_loader", + "scope": "Flux3ModularPipeline", + "state": null + }, + "types": ["diffusers_modular_pipeline_components"] + }, + { + "direction": "input", + "hidden": false, + "name": "quant_config", + "required": false, + "roles": ["value"], + "semanticName": "quant_config", + "semantics": { + "kind": "opaque", + "members": [], + "owner": "none", + "scope": "Flux3ModularPipeline", + "state": null + }, + "types": ["quant_config"] + } + ], + "support": "declared", + "task": "text_to_image", + "workflowId": "text2image" + } + }, + { + "node": { + "action": "Guider", + "cache": false, + "category": "sampler", + "description": "", + "label": "Guidance", + "memory": [0, 0, 0], + "module": "modules.ModularDiffusers", + "params": { + "enabled": { "label": "Enabled", "type": "boolean", "value": true }, + "guidance_rescale": { + "display": "slider", + "label": "Guidance Rescale", + "max": 10.0, + "min": 0.0, + "step": 0.1, + "type": "float", + "value": 0.0 + }, + "guidance_scale": { + "display": "slider", + "label": "Guidance Scale", + "max": 20.0, + "min": 1.0, + "step": 0.1, + "type": "float", + "value": 3.5 + }, + "guider": { + "fieldOptions": { "loading": true }, + "label": "Guider", + "onChange": [ + "updateNode", + { + "AutoGuidance": ["layers_config"], + "PerturbedAttentionGuidance": ["layers_config"], + "SkipLayerGuidance": ["layers_config"], + "SmoothedEnergyGuidance": ["layers_config"] + } + ], + "options": [ + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "ClassifierFreeGuidance", + "schemaVersion": 1, + "value": "ClassifierFreeGuidance" + } + ], + "type": "string", + "value": "ClassifierFreeGuidance" + }, + "guider_out": { + "display": "output", + "label": "Guider", + "onSignal": [ + { "action": "value", "target": "model_type" }, + { + "action": "value", + "data": { + "Flux2KleinBaseModularPipeline": ["ClassifierFreeGuidance"], + "Flux3ModularPipeline": ["ClassifierFreeGuidance"], + "FluxKontextModularPipeline": ["ClassifierFreeGuidance"], + "FluxModularPipeline": ["ClassifierFreeGuidance"], + "QwenImageEditModularPipeline": [ + "ClassifierFreeGuidance", + "SkipLayerGuidance", + "AdaptiveProjectedGuidance", + "AdaptiveProjectedMixGuidance", + "MagnitudeAwareGuidance", + "ClassifierFreeZeroStarGuidance", + "AutoGuidance", + "SmoothedEnergyGuidance", + "PerturbedAttentionGuidance", + "TangentialClassifierFreeGuidance", + "FrequencyDecoupledGuidance" + ], + "QwenImageEditPlusModularPipeline": [ + "ClassifierFreeGuidance", + "SkipLayerGuidance", + "AdaptiveProjectedGuidance", + "AdaptiveProjectedMixGuidance", + "MagnitudeAwareGuidance", + "ClassifierFreeZeroStarGuidance", + "AutoGuidance", + "SmoothedEnergyGuidance", + "PerturbedAttentionGuidance", + "TangentialClassifierFreeGuidance", + "FrequencyDecoupledGuidance" + ], + "QwenImageLayeredModularPipeline": [ + "ClassifierFreeGuidance", + "AdaptiveProjectedGuidance", + "AdaptiveProjectedMixGuidance", + "MagnitudeAwareGuidance", + "ClassifierFreeZeroStarGuidance", + "TangentialClassifierFreeGuidance", + "FrequencyDecoupledGuidance" + ], + "QwenImageModularPipeline": [ + "ClassifierFreeGuidance", + "SkipLayerGuidance", + "AdaptiveProjectedGuidance", + "AdaptiveProjectedMixGuidance", + "MagnitudeAwareGuidance", + "ClassifierFreeZeroStarGuidance", + "AutoGuidance", + "SmoothedEnergyGuidance", + "PerturbedAttentionGuidance", + "TangentialClassifierFreeGuidance", + "FrequencyDecoupledGuidance" + ], + "StableDiffusionXLModularPipeline": [ + "ClassifierFreeGuidance", + "SkipLayerGuidance", + "AdaptiveProjectedGuidance", + "AdaptiveProjectedMixGuidance", + "MagnitudeAwareGuidance", + "ClassifierFreeZeroStarGuidance", + "AutoGuidance", + "SmoothedEnergyGuidance", + "PerturbedAttentionGuidance", + "TangentialClassifierFreeGuidance", + "FrequencyDecoupledGuidance" + ], + "WanImage2VideoModularPipeline": [ + "ClassifierFreeGuidance", + "AdaptiveProjectedGuidance", + "AdaptiveProjectedMixGuidance", + "MagnitudeAwareGuidance", + "ClassifierFreeZeroStarGuidance", + "TangentialClassifierFreeGuidance", + "FrequencyDecoupledGuidance" + ], + "WanModularPipeline": [ + "ClassifierFreeGuidance", + "AdaptiveProjectedGuidance", + "AdaptiveProjectedMixGuidance", + "MagnitudeAwareGuidance", + "ClassifierFreeZeroStarGuidance", + "TangentialClassifierFreeGuidance", + "FrequencyDecoupledGuidance" + ], + "ZImageModularPipeline": [ + "ClassifierFreeGuidance", + "AdaptiveProjectedGuidance", + "AdaptiveProjectedMixGuidance", + "MagnitudeAwareGuidance", + "ClassifierFreeZeroStarGuidance", + "TangentialClassifierFreeGuidance", + "FrequencyDecoupledGuidance" + ] + }, + "prop": "options", + "target": "guider" + }, + { "action": "signal", "target": "layers_config" } + ], + "signalCompatibility": { + "values": { + "Flux2KleinBaseModularPipeline": ["ClassifierFreeGuidance"], + "Flux3ModularPipeline": ["ClassifierFreeGuidance"], + "FluxKontextModularPipeline": ["ClassifierFreeGuidance"], + "FluxModularPipeline": ["ClassifierFreeGuidance"], + "QwenImageEditModularPipeline": [ + "ClassifierFreeGuidance", + "SkipLayerGuidance", + "AdaptiveProjectedGuidance", + "AdaptiveProjectedMixGuidance", + "MagnitudeAwareGuidance", + "ClassifierFreeZeroStarGuidance", + "AutoGuidance", + "SmoothedEnergyGuidance", + "PerturbedAttentionGuidance", + "TangentialClassifierFreeGuidance", + "FrequencyDecoupledGuidance" + ], + "QwenImageEditPlusModularPipeline": [ + "ClassifierFreeGuidance", + "SkipLayerGuidance", + "AdaptiveProjectedGuidance", + "AdaptiveProjectedMixGuidance", + "MagnitudeAwareGuidance", + "ClassifierFreeZeroStarGuidance", + "AutoGuidance", + "SmoothedEnergyGuidance", + "PerturbedAttentionGuidance", + "TangentialClassifierFreeGuidance", + "FrequencyDecoupledGuidance" + ], + "QwenImageLayeredModularPipeline": [ + "ClassifierFreeGuidance", + "AdaptiveProjectedGuidance", + "AdaptiveProjectedMixGuidance", + "MagnitudeAwareGuidance", + "ClassifierFreeZeroStarGuidance", + "TangentialClassifierFreeGuidance", + "FrequencyDecoupledGuidance" + ], + "QwenImageModularPipeline": [ + "ClassifierFreeGuidance", + "SkipLayerGuidance", + "AdaptiveProjectedGuidance", + "AdaptiveProjectedMixGuidance", + "MagnitudeAwareGuidance", + "ClassifierFreeZeroStarGuidance", + "AutoGuidance", + "SmoothedEnergyGuidance", + "PerturbedAttentionGuidance", + "TangentialClassifierFreeGuidance", + "FrequencyDecoupledGuidance" + ], + "StableDiffusionXLModularPipeline": [ + "ClassifierFreeGuidance", + "SkipLayerGuidance", + "AdaptiveProjectedGuidance", + "AdaptiveProjectedMixGuidance", + "MagnitudeAwareGuidance", + "ClassifierFreeZeroStarGuidance", + "AutoGuidance", + "SmoothedEnergyGuidance", + "PerturbedAttentionGuidance", + "TangentialClassifierFreeGuidance", + "FrequencyDecoupledGuidance" + ], + "WanImage2VideoModularPipeline": [ + "ClassifierFreeGuidance", + "AdaptiveProjectedGuidance", + "AdaptiveProjectedMixGuidance", + "MagnitudeAwareGuidance", + "ClassifierFreeZeroStarGuidance", + "TangentialClassifierFreeGuidance", + "FrequencyDecoupledGuidance" + ], + "WanModularPipeline": [ + "ClassifierFreeGuidance", + "AdaptiveProjectedGuidance", + "AdaptiveProjectedMixGuidance", + "MagnitudeAwareGuidance", + "ClassifierFreeZeroStarGuidance", + "TangentialClassifierFreeGuidance", + "FrequencyDecoupledGuidance" + ], + "ZImageModularPipeline": [ + "ClassifierFreeGuidance", + "AdaptiveProjectedGuidance", + "AdaptiveProjectedMixGuidance", + "MagnitudeAwareGuidance", + "ClassifierFreeZeroStarGuidance", + "TangentialClassifierFreeGuidance", + "FrequencyDecoupledGuidance" + ] + } + }, + "type": "custom_guider" + }, + "layers_config": { "display": "input", "label": "Layers", "type": "layers_config" }, + "model_type": { "default": "", "hidden": true, "type": "string", "value": "Flux3ModularPipeline" }, + "start": { + "display": "slider", + "label": "Start", + "max": 1.0, + "min": 0.0, + "step": 0.01, + "type": "float", + "value": 0.0 + }, + "stop": { + "display": "slider", + "label": "Stop", + "max": 1.0, + "min": 0.01, + "step": 0.01, + "type": "float", + "value": 1.0 + }, + "use_original_formulation": { "label": "Original Formulation", "type": "boolean", "value": false } + }, + "resizable": true, + "skipParamsCheck": true, + "style": {}, + "time": [0, 0, 0], + "type": "custom" + }, + "operation": { + "binding": { "pipelineClass": "Flux3ModularPipeline", "values": { "model_type": "Flux3ModularPipeline" } }, + "blockName": null, + "decomposition": "bundle", + "nodeKey": "modules.ModularDiffusers.Guider", + "nodeType": "guidance", + "operationId": "diffusion.guidance", + "pipelineClass": "Flux3ModularPipeline", + "ports": [ + { + "direction": "input", + "hidden": true, + "name": "model_type", + "required": false, + "roles": ["value"], + "semanticName": "model_type", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": false, + "name": "guider", + "required": false, + "roles": ["value"], + "semanticName": "guider", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": false, + "name": "guidance_scale", + "required": false, + "roles": ["value"], + "semanticName": "guidance_scale", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["float"] + }, + { + "direction": "input", + "hidden": false, + "name": "guidance_rescale", + "required": false, + "roles": ["value"], + "semanticName": "guidance_rescale", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["float"] + }, + { + "direction": "input", + "hidden": false, + "name": "use_original_formulation", + "required": false, + "roles": ["value"], + "semanticName": "use_original_formulation", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["boolean"] + }, + { + "direction": "input", + "hidden": false, + "name": "enabled", + "required": false, + "roles": ["value"], + "semanticName": "enabled", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["boolean"] + }, + { + "direction": "input", + "hidden": false, + "name": "start", + "required": false, + "roles": ["value"], + "semanticName": "start", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["float"] + }, + { + "direction": "input", + "hidden": false, + "name": "stop", + "required": false, + "roles": ["value"], + "semanticName": "stop", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["float"] + }, + { + "direction": "output", + "hidden": false, + "name": "guider_out", + "required": false, + "roles": ["component"], + "semanticName": "guider_out", + "semantics": { + "kind": "component", + "members": [], + "owner": "same_loader", + "scope": "Flux3ModularPipeline", + "state": null + }, + "types": ["custom_guider"] + }, + { + "direction": "input", + "hidden": false, + "name": "layers_config", + "required": false, + "roles": ["value"], + "semanticName": "layers_config", + "semantics": { + "kind": "opaque", + "members": [], + "owner": "none", + "scope": "Flux3ModularPipeline", + "state": null + }, + "types": ["layers_config"] + } + ], + "support": "declared", + "task": "text_to_image", + "workflowId": "text2image" + } + }, + { + "node": { + "action": "EncodePrompt", + "cache": false, + "category": "embedding", + "description": "", + "label": "Encode Prompt", + "memory": [0, 0, 0], + "module": "modules.ModularDiffusers", + "params": { + "doc": { "display": "output", "label": "Doc", "type": "string" }, + "embeddings": { "display": "output", "label": "Text Embeddings", "type": "embeddings" }, + "guider": { + "description": "Shared Diffusers guidance used by prompt encoding and denoising when the selected pipeline supports it.", + "display": "input", + "hidden": true, + "label": "Guider", + "type": "custom_guider" + }, + "layout_conditioning": { + "default": null, + "display": "layout", + "fieldOptions": { + "layoutConditioning": { + "schemaVersion": 2, + "sourceRegions": false, + "supportsBoundSourceRegions": true + } + }, + "label": "Layout Conditioning", + "type": "layout_conditioning" + }, + "layout_reference_summary": { + "description": "Display-only ordered reference identities and actual preprocessing sizes from the current encoder cache.", + "display": "output", + "hidden": true, + "label": "Bound Reference Summary", + "type": "string" + }, + "max_sequence_length": { + "default": 8192, + "label": "Maximum Sequence Length", + "max": 8192, + "min": 1, + "step": 1, + "type": "int" + }, + "negative_prompt": { "default": "", "display": "textarea", "label": "Negative Prompt", "type": "string" }, + "prompt": { + "default": "", + "display": "textarea", + "fieldOptions": { "exampleAttribution": "MoDiff task example" }, + "label": "Prompt *", + "type": "string", + "value": "A red ceramic teapot on a wooden table beside a window, soft morning light, detailed photograph." + }, + "prompt_input": { + "description": "Optional connected prompt. When connected, this replaces the inline Prompt value.", + "display": "input", + "label": "Prompt Input", + "type": "string" + }, + "reference_binding": { + "default": null, + "display": "input", + "fieldOptions": { "referenceBinding": { "maxReferences": 10, "schemaVersion": 1 } }, + "label": "Reference Binding", + "type": "reference_conditioning" + }, + "text_encoder_out_layers": { + "default": [4, 8, 12, 16, 20, 24, 28, 32], + "display": "select", + "fieldOptions": { "multiple": true, "tupleLength": 8, "tupleValue": true }, + "label": "Text Encoder Layers", + "options": [ + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "0", + "schemaVersion": 1, + "value": "0" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "1", + "schemaVersion": 1, + "value": "1" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "2", + "schemaVersion": 1, + "value": "2" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "3", + "schemaVersion": 1, + "value": "3" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "4", + "schemaVersion": 1, + "value": "4" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "5", + "schemaVersion": 1, + "value": "5" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "6", + "schemaVersion": 1, + "value": "6" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "7", + "schemaVersion": 1, + "value": "7" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "8", + "schemaVersion": 1, + "value": "8" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "9", + "schemaVersion": 1, + "value": "9" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "10", + "schemaVersion": 1, + "value": "10" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "11", + "schemaVersion": 1, + "value": "11" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "12", + "schemaVersion": 1, + "value": "12" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "13", + "schemaVersion": 1, + "value": "13" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "14", + "schemaVersion": 1, + "value": "14" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "15", + "schemaVersion": 1, + "value": "15" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "16", + "schemaVersion": 1, + "value": "16" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "17", + "schemaVersion": 1, + "value": "17" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "18", + "schemaVersion": 1, + "value": "18" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "19", + "schemaVersion": 1, + "value": "19" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "20", + "schemaVersion": 1, + "value": "20" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "21", + "schemaVersion": 1, + "value": "21" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "22", + "schemaVersion": 1, + "value": "22" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "23", + "schemaVersion": 1, + "value": "23" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "24", + "schemaVersion": 1, + "value": "24" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "25", + "schemaVersion": 1, + "value": "25" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "26", + "schemaVersion": 1, + "value": "26" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "27", + "schemaVersion": 1, + "value": "27" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "28", + "schemaVersion": 1, + "value": "28" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "29", + "schemaVersion": 1, + "value": "29" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "30", + "schemaVersion": 1, + "value": "30" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "31", + "schemaVersion": 1, + "value": "31" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "32", + "schemaVersion": 1, + "value": "32" + } + ], + "type": "int" + }, + "text_encoders": { + "display": "input", + "label": "Text Encoders *", + "onSignal": "update_node", + "required": true, + "signalCompatibility": { "role": "text_encoders" }, + "type": "diffusers_auto_models" + } + }, + "resizable": true, + "skipParamsCheck": true, + "style": {}, + "time": [0, 0, 0], + "type": "custom" + }, + "operation": { + "binding": { "pipelineClass": "Flux3ModularPipeline", "values": {} }, + "blockName": "text_encoder", + "decomposition": "block", + "nodeKey": "modules.ModularDiffusers.EncodePrompt", + "nodeType": "text_encoder", + "operationId": "diffusion.encode_prompt", + "pipelineClass": "Flux3ModularPipeline", + "ports": [ + { + "direction": "input", + "hidden": false, + "name": "prompt", + "required": true, + "roles": ["value"], + "semanticName": "prompt", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": false, + "name": "negative_prompt", + "required": false, + "roles": ["value"], + "semanticName": "negative_prompt", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": false, + "name": "max_sequence_length", + "required": false, + "roles": ["value"], + "semanticName": "max_sequence_length", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["int"] + }, + { + "direction": "input", + "hidden": false, + "name": "text_encoder_out_layers", + "required": false, + "roles": ["value"], + "semanticName": "text_encoder_out_layers", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["int"] + }, + { + "direction": "input", + "hidden": false, + "name": "text_encoders", + "required": true, + "roles": ["component"], + "semanticName": "text_encoders", + "semantics": { + "kind": "component", + "members": [ + { + "name": "text_encoder", + "type": "transformers.models.qwen3_vl.modeling_qwen3_vl.Qwen3VLForConditionalGeneration" + }, + { "name": "tokenizer", "type": "transformers.models.auto.processing_auto.AutoProcessor" } + ], + "owner": "same_loader", + "scope": "Flux3ModularPipeline", + "state": null + }, + "types": ["diffusers_auto_models"] + }, + { + "direction": "output", + "hidden": false, + "name": "embeddings", + "required": false, + "roles": ["value"], + "semanticName": "embeddings", + "semantics": { + "kind": "conditioning", + "members": [], + "owner": "same_loader", + "scope": "Flux3ModularPipeline", + "state": null + }, + "types": ["embeddings"] + }, + { + "direction": "output", + "hidden": false, + "name": "doc", + "required": false, + "roles": ["value"], + "semanticName": "doc", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": false, + "name": "layout_conditioning", + "required": false, + "roles": ["value"], + "semanticName": "layout_conditioning", + "semantics": { + "kind": "opaque", + "members": [], + "owner": "none", + "scope": "Flux3ModularPipeline", + "state": null + }, + "types": ["layout_conditioning"] + }, + { + "direction": "input", + "hidden": false, + "name": "reference_binding", + "required": false, + "roles": ["value"], + "semanticName": "reference_binding", + "semantics": { + "kind": "opaque", + "members": [], + "owner": "none", + "scope": "Flux3ModularPipeline", + "state": null + }, + "types": ["reference_conditioning"] + }, + { + "direction": "input", + "hidden": false, + "name": "prompt_input", + "required": false, + "roles": ["value"], + "semanticName": "prompt", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + } + ], + "support": "declared", + "task": "text_to_image", + "workflowId": "text2image" + } + }, + { + "node": { + "action": "Denoise", + "cache": false, + "category": "sampler", + "description": "", + "label": "Denoise", + "memory": [0, 0, 0], + "module": "modules.ModularDiffusers", + "params": { + "doc": { "display": "output", "label": "Doc", "type": "string" }, + "embeddings": { "display": "input", "label": "Text Embeddings *", "type": "embeddings" }, + "guider": { "display": "input", "label": "Guider", "type": "custom_guider" }, + "height": { "default": 1024, "label": "Height", "min": 64, "step": 16, "type": "int", "value": 1024 }, + "image_cond_latents": { "display": "input", "label": "Reference Latents", "type": "latents" }, + "latents": { "display": "output", "label": "Latents", "type": "latents" }, + "num_images_per_prompt": { + "default": 1, + "label": "Images Per Prompt", + "max": 8, + "min": 1, + "step": 1, + "type": "int" + }, + "num_inference_steps": { + "default": 50, + "display": "slider", + "label": "Steps", + "max": 100, + "min": 1, + "type": "int", + "value": 50 + }, + "reference_binding": { + "default": null, + "display": "input", + "fieldOptions": { "referenceBinding": { "maxReferences": 10, "schemaVersion": 1 } }, + "label": "Reference Binding", + "type": "reference_conditioning" + }, + "scheduler": { + "display": "input", + "label": "Scheduler *", + "signalCompatibility": { "role": "scheduler" }, + "type": "diffusers_auto_model" + }, + "seed": { + "default": 0, + "display": "random", + "label": "Seed", + "max": 4294967295, + "min": 0, + "type": "int" + }, + "unet": { + "display": "input", + "label": "Denoise Model *", + "onSignal": [ + "update_node", + { "action": "signal", "target": "guider" }, + { "action": "signal", "target": "controlnet_bundle" } + ], + "required": true, + "signalCompatibility": { "role": "denoiser" }, + "type": "diffusers_auto_model" + }, + "width": { "default": 1024, "label": "Width", "min": 64, "step": 16, "type": "int", "value": 1024 } + }, + "resizable": true, + "skipParamsCheck": true, + "style": {}, + "time": [0, 0, 0], + "type": "custom" + }, + "operation": { + "binding": { "pipelineClass": "Flux3ModularPipeline", "values": {} }, + "blockName": "denoise", + "decomposition": "block", + "nodeKey": "modules.ModularDiffusers.Denoise", + "nodeType": "denoise", + "operationId": "diffusion.denoise", + "pipelineClass": "Flux3ModularPipeline", + "ports": [ + { + "direction": "input", + "hidden": false, + "name": "embeddings", + "required": true, + "roles": ["value"], + "semanticName": "embeddings", + "semantics": { + "kind": "conditioning", + "members": [], + "owner": "same_loader", + "scope": "Flux3ModularPipeline", + "state": null + }, + "types": ["embeddings"] + }, + { + "direction": "input", + "hidden": false, + "name": "width", + "required": false, + "roles": ["value"], + "semanticName": "width", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["int"] + }, + { + "direction": "input", + "hidden": false, + "name": "height", + "required": false, + "roles": ["value"], + "semanticName": "height", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["int"] + }, + { + "direction": "input", + "hidden": false, + "name": "seed", + "required": false, + "roles": ["value"], + "semanticName": "seed", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["int"] + }, + { + "direction": "input", + "hidden": false, + "name": "num_inference_steps", + "required": false, + "roles": ["value"], + "semanticName": "num_inference_steps", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["int"] + }, + { + "direction": "input", + "hidden": false, + "name": "num_images_per_prompt", + "required": false, + "roles": ["value"], + "semanticName": "num_images_per_prompt", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["int"] + }, + { + "direction": "input", + "hidden": false, + "name": "image_cond_latents", + "required": false, + "roles": ["value"], + "semanticName": "image_cond_latents", + "semantics": { + "kind": "latents", + "members": [], + "owner": "same_loader", + "scope": "Flux3ModularPipeline", + "state": null + }, + "types": ["latents"] + }, + { + "direction": "input", + "hidden": false, + "name": "unet", + "required": true, + "roles": ["component"], + "semanticName": "unet", + "semantics": { + "kind": "component", + "members": [ + { + "name": "transformer", + "type": "diffusers.models.transformers.transformer_flux3.Flux3Transformer2DModel" + } + ], + "owner": "same_loader", + "scope": "Flux3ModularPipeline", + "state": null + }, + "types": ["diffusers_auto_model"] + }, + { + "direction": "input", + "hidden": false, + "name": "scheduler", + "required": true, + "roles": ["component"], + "semanticName": "scheduler", + "semantics": { + "kind": "component", + "members": [ + { + "name": "scheduler", + "type": "diffusers.schedulers.scheduling_flow_match_euler_discrete.FlowMatchEulerDiscreteScheduler" + } + ], + "owner": "same_loader", + "scope": "Flux3ModularPipeline", + "state": null + }, + "types": ["diffusers_auto_model"] + }, + { + "direction": "input", + "hidden": false, + "name": "guider", + "required": false, + "roles": ["component"], + "semanticName": "guider", + "semantics": { + "kind": "component", + "members": [ + { "name": "guider", "type": "diffusers.guiders.classifier_free_guidance.ClassifierFreeGuidance" } + ], + "owner": "same_loader", + "scope": "Flux3ModularPipeline", + "state": null + }, + "types": ["custom_guider"] + }, + { + "direction": "output", + "hidden": false, + "name": "latents", + "required": false, + "roles": ["value"], + "semanticName": "latents", + "semantics": { + "kind": "latents", + "members": [], + "owner": "same_loader", + "scope": "Flux3ModularPipeline", + "state": null + }, + "types": ["latents"] + }, + { + "direction": "output", + "hidden": false, + "name": "doc", + "required": false, + "roles": ["value"], + "semanticName": "doc", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": false, + "name": "reference_binding", + "required": false, + "roles": ["value"], + "semanticName": "reference_binding", + "semantics": { + "kind": "opaque", + "members": [], + "owner": "none", + "scope": "Flux3ModularPipeline", + "state": null + }, + "types": ["reference_conditioning"] + } + ], + "support": "declared", + "task": "text_to_image", + "workflowId": "text2image" + } + }, + { + "node": { + "action": "DecodeLatents", + "cache": false, + "category": "sampler", + "description": "", + "label": "Decode Latents", + "memory": [0, 0, 0], + "module": "modules.ModularDiffusers", + "params": { + "doc": { "display": "output", "label": "Doc", "type": "string" }, + "images": { "display": "output", "label": "Images", "type": "image" }, + "latents": { "display": "input", "label": "Latents *", "type": "latents" }, + "vae": { + "display": "input", + "label": "VAE *", + "onSignal": "update_node", + "signalCompatibility": { "role": "vae" }, + "type": "diffusers_auto_model" + } + }, + "resizable": true, + "skipParamsCheck": true, + "style": {}, + "time": [0, 0, 0], + "type": "custom" + }, + "operation": { + "binding": { "pipelineClass": "Flux3ModularPipeline", "values": {} }, + "blockName": "decode", + "decomposition": "block", + "nodeKey": "modules.ModularDiffusers.DecodeLatents", + "nodeType": "decoder", + "operationId": "diffusion.decode_latents", + "pipelineClass": "Flux3ModularPipeline", + "ports": [ + { + "direction": "input", + "hidden": false, + "name": "latents", + "required": true, + "roles": ["value"], + "semanticName": "latents", + "semantics": { + "kind": "latents", + "members": [], + "owner": "same_loader", + "scope": "Flux3ModularPipeline", + "state": null + }, + "types": ["latents"] + }, + { + "direction": "input", + "hidden": false, + "name": "vae", + "required": true, + "roles": ["component"], + "semanticName": "vae", + "semantics": { + "kind": "component", + "members": [ + { "name": "vae", "type": "diffusers.models.autoencoders.autoencoder_kl_flux2.AutoencoderKLFlux2" } + ], + "owner": "same_loader", + "scope": "Flux3ModularPipeline", + "state": null + }, + "types": ["diffusers_auto_model"] + }, + { + "direction": "output", + "hidden": false, + "name": "images", + "required": false, + "roles": ["value"], + "semanticName": "images", + "semantics": { "kind": "media", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["image"] + }, + { + "direction": "output", + "hidden": false, + "name": "doc", + "required": false, + "roles": ["value"], + "semanticName": "doc", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + } + ], + "support": "declared", + "task": "text_to_image", + "workflowId": "text2image" + } + } + ], + "pipelineClass": "Flux3ModularPipeline", + "requiredInputs": [{ "field": "prompt", "operationId": "diffusion.encode_prompt" }], + "schemaVersion": 1, + "sharedInputs": [], + "task": "text_to_image", + "upstreamBlocks": ["text_encoder", "denoise", "decode"], + "workflowId": "text2image" + }, + { + "authoring": { + "ancillaryOperations": [ + { + "adapter": { + "declarationSha256": "sha256:2a3d4685988b418115008bbb95fb3e948097580c0bedd2940ea3fe1e40254dc2", + "id": "transformers-prompt-enhancement-v1" + }, + "bindings": { + "output": { "field": "proposal_summary", "role": "proposal" }, + "owner": { + "layoutField": "layout_conditioning", + "promptField": "prompt", + "referenceSource": null, + "role": "prompt" + }, + "request": { + "imagesField": "images", + "layoutField": "layout_conditioning", + "promptField": "prompt", + "role": "proposal" + } + }, + "contentHash": "studio-ancillary-v1-6f1ee217", + "edges": [["provider", "model", "proposal", "model"]], + "executionPurpose": "explicit_preview", + "fieldOverrides": [ + ["proposal", "enhancement_max_new_tokens", { "hidden": false }], + ["proposal", "max_new_tokens", { "hidden": true }] + ], + "id": "flux3-klein-base:official:text-to-image:prompt-preview-fp32:v1:preview", + "initialValues": [ + ["provider", "model_id", { "source": "hub", "value": "black-forest-labs/flux-3-image-klein-pup" }], + ["provider", "revision", "3f3edb52b2c55de0d49feab28598b68f7f8e4830"], + ["proposal", "operation", "enhance_prompt"], + ["provider", "dtype", "float32"], + ["provider", "device", "cuda:0"], + ["provider", "quantization_mode", "none"], + ["proposal", "max_input_tokens", 4096] + ], + "parent": { + "authoringRecipeId": "flux3-klein-base:official:text-to-image:prompt-preview-fp32:v1", + "baseSpecContentHash": "studio-spec-v1-f5960f24", + "baseSpecId": "flux3-klein-base:official-provider:v1:text-to-image:v1", + "executionProfileId": "flux3-klein-base:official-provider:v1", + "pipelineClass": "Flux3ModularPipeline", + "task": "text_to_image" + }, + "roles": [ + ["provider", "modules.HuggingFaceTransformers.LoadImageTextToTextModel", -720, -400], + ["proposal", "modules.HuggingFaceTransformers.GenerateImageVideoText", -360, -400] + ], + "schemaVersion": 1, + "sourceRegions": false, + "verification": { + "adapter": { + "declarationSha256": "sha256:2a3d4685988b418115008bbb95fb3e948097580c0bedd2940ea3fe1e40254dc2", + "id": "transformers-prompt-enhancement-v1" + }, + "chatTemplateSha256": "sha256:a4aee8afcf2e0711942cf848899be66016f8d14a889ff9ede07bca099c28f715", + "modelReceipt": { + "library": "transformers", + "loader": { "modelAutoClass": "AutoModelForImageTextToText", "preprocessorAutoClass": "AutoProcessor" }, + "runtime": { + "architectures": ["Qwen3_5ForConditionalGeneration"], + "modelClass": "Qwen3_5ForConditionalGeneration", + "modelType": "qwen3_5", + "preprocessorClass": "Qwen3VLProcessor", + "transformersVersion": "5.18.0" + }, + "schemaVersion": 1, + "security": { + "hostedInference": false, + "localFilesOnly": true, + "safetensorsOnly": true, + "trustRemoteCode": false + }, + "source": { + "kind": "hub", + "repository": "black-forest-labs/flux-3-image-klein-pup", + "revision": "3f3edb52b2c55de0d49feab28598b68f7f8e4830" + }, + "task": "image-video-to-text" + }, + "quantizationRecipes": [ + { "mode": "none" }, + { + "computeDtype": "bfloat16", + "doubleQuant": true, + "mode": "bnb_4bit", + "quantType": "nf4", + "skipModules": ["lm_head", "model.visual"] + } + ], + "requestInputs": { + "maxImagePixelsField": "max_image_pixels", + "maxInputTokensField": "max_input_tokens", + "maxNewTokensField": "enhancement_max_new_tokens", + "minNewTokensField": "min_new_tokens", + "operationField": "operation", + "role": "proposal" + }, + "runtimeInputs": { + "deviceField": "device", + "dtypeField": "dtype", + "modelField": "model_id", + "quantizationField": "quantization_mode", + "revisionField": "revision", + "role": "provider" + }, + "schemaVersion": 1, + "supportedPromptModes": ["t2i", "i2i"], + "systemPromptSha256ByMode": { + "i2i": "95cec384d5b6d341caa9fb3f2c7ca45ee80c2364b3a95d4044aebf976f6dd3bf", + "i2i_bbox": "9ad10f947e401337cf155cac0518cc428159ef16f2f029f48aae2aaab8380a5e", + "t2i": "8b235a421bce2213d11ada01f5a1244443dd72303ffbb4cc9e5a0d8b0de5ab6f", + "t2i_bbox": "5f513d8ce5838732919f9e645507aa20ff373e88bf93132c768e063c9db3151f" + }, + "systemPromptsSha256": "sha256:b5da3ed8bc04ab59dbdb747930f7dbff847e868903fed8028f85ee1a4ac82fb4" + } + } + ], + "baseSpecContentHash": "studio-spec-v1-f5960f24", + "baseSpecId": "flux3-klein-base:official-provider:v1:text-to-image:v1", + "bindings": [ + ["models", "model_type", "pipelineClass"], + ["models", "repo_id", "artifact"], + ["models", "revision", "defaultRevision"], + ["models", "dtype", "dtype"], + ["models", "device", "device"], + ["models", "auto_offload", "autoOffload"], + ["models", "offload_mode", "offloadMode"], + ["models", "trust_remote_code", "false"], + ["prompt", "prompt", "prompt"], + ["prompt", "negative_prompt", "negativePrompt"], + ["denoise", "width", "width"], + ["denoise", "height", "height"], + ["denoise", "seed", "seed"], + ["denoise", "num_inference_steps", "steps"], + ["prompt", "max_sequence_length", "maxSequenceLength"], + ["models", "weight_format", "weightFormat"], + ["guider", "guider", "classifierFreeGuidance"], + ["guider", "model_type", "pipelineClass"], + ["guider", "guidance_scale", "guidanceScale"] + ], + "canonicalizationVersion": 1, + "contentHash": "studio-authoring-v1-10357f95", + "edges": [ + ["models", "text_encoders", "prompt", "text_encoders"], + ["models", "unet_out", "denoise", "unet"], + ["models", "scheduler", "denoise", "scheduler"], + ["models", "vae_out", "decode", "vae"], + ["prompt", "embeddings", "denoise", "embeddings"], + ["denoise", "latents", "decode", "latents"], + ["decode", "images", "preview", "image"], + ["guider", "guider_out", "denoise", "guider"] + ], + "executionProfileIds": ["flux3-klein-base:official-provider:v1"], + "id": "flux3-klein-base:official:text-to-image:prompt-preview-fp32:v1", + "initialValues": [], + "roles": [ + ["models", "modules.ModularDiffusers.ModelsLoader", -720, -80], + ["prompt", "modules.ModularDiffusers.EncodePrompt", -360, -240], + ["denoise", "modules.ModularDiffusers.Denoise", 80, -80], + ["decode", "modules.ModularDiffusers.DecodeLatents", 440, -80], + ["preview", "modules.Image.Preview", 800, -80], + ["guider", "modules.ModularDiffusers.Guider", -360, 160] + ], + "schemaVersion": 1 + }, + "edges": [ + { + "source": "diffusion.load_models", + "sourceHandle": "text_encoders", + "target": "diffusion.encode_prompt", + "targetHandle": "text_encoders" + }, + { + "source": "diffusion.load_models", + "sourceHandle": "scheduler", + "target": "diffusion.denoise", + "targetHandle": "scheduler" + }, + { + "source": "diffusion.load_models", + "sourceHandle": "unet_out", + "target": "diffusion.denoise", + "targetHandle": "unet" + }, + { + "source": "diffusion.load_models", + "sourceHandle": "vae_out", + "target": "diffusion.decode_latents", + "targetHandle": "vae" + }, + { + "source": "diffusion.encode_prompt", + "sourceHandle": "embeddings", + "target": "diffusion.denoise", + "targetHandle": "embeddings" + }, + { + "source": "diffusion.denoise", + "sourceHandle": "latents", + "target": "diffusion.decode_latents", + "targetHandle": "latents" + }, + { + "source": "diffusion.guidance", + "sourceHandle": "guider_out", + "target": "diffusion.denoise", + "targetHandle": "guider" + } + ], + "nodes": [ + { + "node": { + "action": "ModelsLoader", + "cache": false, + "category": "loader", + "description": "", + "label": "Load Models", + "memory": [0, 0, 0], + "module": "modules.ModularDiffusers", + "params": { + "attention_backend": { + "default": "inherit", + "description": "Inherit preserves existing native component defaults; explicit choices use the ordinary Diffusers attention API.", + "label": "Attention Backend", + "options": [ + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "inherit", + "schemaVersion": 1, + "value": "inherit" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "auto", + "schemaVersion": 1, + "value": "auto" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "native", + "schemaVersion": 1, + "value": "native" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "_native_math", + "schemaVersion": 1, + "value": "_native_math" + } + ], + "type": "string" + }, + "auto_offload": { "label": "Enable Auto Offload", "type": "boolean", "value": true }, + "controlnet": { + "display": "input", + "hidden": true, + "label": "ControlNet", + "type": "diffusers_auto_model" + }, + "device": { + "label": "Device", + "options": { + "cpu": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "cpu", + "schemaVersion": 1, + "value": "cpu" + }, + "cpu:0": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "cpu:0", + "schemaVersion": 1, + "value": "cpu:0" + } + }, + "type": "string", + "value": "cpu:0" + }, + "dtype": { + "label": "dtype", + "options": [ + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "float32", + "schemaVersion": 1, + "value": "float32" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "float16", + "schemaVersion": 1, + "value": "float16" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "bfloat16", + "schemaVersion": 1, + "value": "bfloat16" + } + ], + "value": "bfloat16" + }, + "image_encoder": { + "connectionRole": "image_encoder", + "display": "output", + "hidden": true, + "label": "Image Encoder", + "signal": { + "direction": "output", + "origin": "modiff_pipeline_identity", + "value": "Flux3ModularPipeline" + }, + "type": "diffusers_auto_model" + }, + "inpaint_compatibility": { + "default": "native", + "description": "Technical compatibility selection for the reviewed Qwen Edit inpainting candidate; existing nodes retain native policy.", + "hidden": true, + "label": "Inpaint Compatibility", + "options": [ + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "native", + "schemaVersion": 1, + "value": "native" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "whole_v1", + "schemaVersion": 1, + "value": "whole_v1" + } + ], + "type": "string" + }, + "lora_list": { "display": "input", "label": "Lora", "type": "custom_lora" }, + "model_type": { + "description": "Selects the Modular Diffusers pipeline class. This filters compatible checkpoints and publishes the component contract used by connected nodes; it is not the model checkpoint itself.", + "label": "Pipeline Type", + "onChange": "set_filters", + "options": { + "": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "", + "schemaVersion": 1, + "value": "" + }, + "AnimaModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Anima", + "schemaVersion": 1, + "value": "AnimaModularPipeline" + }, + "Cosmos3DistilledModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Cosmos 3 Distilled", + "schemaVersion": 1, + "value": "Cosmos3DistilledModularPipeline" + }, + "Cosmos3OmniModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Cosmos 3 Nano", + "schemaVersion": 1, + "value": "Cosmos3OmniModularPipeline" + }, + "DummyCustomPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Custom", + "schemaVersion": 1, + "value": "DummyCustomPipeline" + }, + "ErnieImageModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "ERNIE Image Turbo", + "schemaVersion": 1, + "value": "ErnieImageModularPipeline" + }, + "Flux2KleinBaseModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Flux 2 Klein Base", + "schemaVersion": 1, + "value": "Flux2KleinBaseModularPipeline" + }, + "Flux2KleinModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Flux 2 Klein Distilled", + "schemaVersion": 1, + "value": "Flux2KleinModularPipeline" + }, + "Flux2ModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Flux 2", + "schemaVersion": 1, + "value": "Flux2ModularPipeline" + }, + "Flux3DistilledModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "FLUX 3 Image Klein", + "schemaVersion": 1, + "value": "Flux3DistilledModularPipeline" + }, + "Flux3ModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "FLUX 3 Image Klein Base", + "schemaVersion": 1, + "value": "Flux3ModularPipeline" + }, + "FluxKontextModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Flux Kontext", + "schemaVersion": 1, + "value": "FluxKontextModularPipeline" + }, + "FluxModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Flux", + "schemaVersion": 1, + "value": "FluxModularPipeline" + }, + "HeliosModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Helios", + "schemaVersion": 1, + "value": "HeliosModularPipeline" + }, + "HeliosPyramidDistilledModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Helios Pyramid Distilled", + "schemaVersion": 1, + "value": "HeliosPyramidDistilledModularPipeline" + }, + "HeliosPyramidModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Helios Pyramid", + "schemaVersion": 1, + "value": "HeliosPyramidModularPipeline" + }, + "HunyuanVideo15ModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "HunyuanVideo 1.5", + "schemaVersion": 1, + "value": "HunyuanVideo15ModularPipeline" + }, + "Ideogram4ModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Ideogram 4 (Contract only)", + "schemaVersion": 1, + "value": "Ideogram4ModularPipeline" + }, + "Krea2ModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Krea 2 (Contract only)", + "schemaVersion": 1, + "value": "Krea2ModularPipeline" + }, + "Krea2TurboModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Krea 2 Turbo (Contract only)", + "schemaVersion": 1, + "value": "Krea2TurboModularPipeline" + }, + "LTX25ModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "LTX-2.5 (Contract only)", + "schemaVersion": 1, + "value": "LTX25ModularPipeline" + }, + "MiniMaxH3ModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "MiniMax H3", + "schemaVersion": 1, + "value": "MiniMaxH3ModularPipeline" + }, + "MiniMaxMusic3ModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "MiniMax Music 3", + "schemaVersion": 1, + "value": "MiniMaxMusic3ModularPipeline" + }, + "QwenImageEditModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Qwen-Image-Edit", + "schemaVersion": 1, + "value": "QwenImageEditModularPipeline" + }, + "QwenImageEditPlusModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Qwen-Image-Edit-2511", + "schemaVersion": 1, + "value": "QwenImageEditPlusModularPipeline" + }, + "QwenImageLayeredModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Qwen-Image-Layered", + "schemaVersion": 1, + "value": "QwenImageLayeredModularPipeline" + }, + "QwenImageModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Qwen-Image-2512", + "schemaVersion": 1, + "value": "QwenImageModularPipeline" + }, + "StableDiffusion3ModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Stable Diffusion 3 (Contract only)", + "schemaVersion": 1, + "value": "StableDiffusion3ModularPipeline" + }, + "StableDiffusionXLModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Stable Diffusion XL", + "schemaVersion": 1, + "value": "StableDiffusionXLModularPipeline" + }, + "WanAnimate2DistilledModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Wan Animate 2 Distilled", + "schemaVersion": 1, + "value": "WanAnimate2DistilledModularPipeline" + }, + "WanAnimate2ModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Wan Animate 2", + "schemaVersion": 1, + "value": "WanAnimate2ModularPipeline" + }, + "WanImage2VideoModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "WAN2 I2V", + "schemaVersion": 1, + "value": "WanImage2VideoModularPipeline" + }, + "WanModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "WAN2 T2V", + "schemaVersion": 1, + "value": "WanModularPipeline" + }, + "ZImageModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Z-Image", + "schemaVersion": 1, + "value": "ZImageModularPipeline" + } + }, + "type": "string", + "value": "Flux3ModularPipeline" + }, + "modiff_pipeline_identity": { + "hidden": true, + "label": "Custom Pipeline Identity", + "type": "object", + "value": null + }, + "offload_mode": { + "default": "model_cpu", + "label": "Offload Mode", + "options": [ + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "auto_cpu", + "schemaVersion": 1, + "value": "auto_cpu" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "none", + "schemaVersion": 1, + "value": "none" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "model_cpu", + "schemaVersion": 1, + "value": "model_cpu" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "group_cpu", + "schemaVersion": 1, + "value": "group_cpu" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "group_disk", + "schemaVersion": 1, + "value": "group_disk" + } + ], + "type": "string", + "value": "model_cpu" + }, + "pipeline_components": { + "connectionRole": "pipeline_components", + "display": "output", + "hidden": false, + "label": "Pipeline Components", + "signal": { + "direction": "output", + "origin": "modiff_pipeline_identity", + "value": "Flux3ModularPipeline" + }, + "type": "diffusers_modular_pipeline_components" + }, + "quant_config": { "display": "input", "label": "Quant Config", "type": "quant_config" }, + "refresh_pipeline_identity_button": { + "display": "ui_button", + "hidden": true, + "label": "Review and Refresh Custom Contract", + "onChange": "refresh_pipeline_identity", + "value": false + }, + "repo_id": { + "display": "modelselect", + "fieldOptions": { + "filter": { "hub": { "className": ["Flux3ModularPipeline"] } }, + "noValidation": true, + "sources": ["hub", "local"] + }, + "label": "Repository ID", + "onChange": "refresh_pipeline_identity", + "type": "string", + "value": { "source": "hub", "value": "black-forest-labs/flux-3-image-klein-base" } + }, + "reviewed_variant": { + "description": "Select an immutable, reviewed checkpoint for this exact Modular Diffusers pipeline family. Changing it does not replace the workflow graph or reset its parameters.", + "fieldOptions": { "controlTier": "essential" }, + "hidden": true, + "label": "Model", + "options": [ + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "black-forest-labs/flux-3-image-klein-base", + "schemaVersion": 1, + "value": "black-forest-labs/flux-3-image-klein-base" + } + ], + "type": "string", + "value": "black-forest-labs/flux-3-image-klein-base" + }, + "revision": { + "description": "Required exact 40-character commit hash for Hub custom contracts.", + "label": "Revision", + "onChange": "refresh_pipeline_identity", + "type": "string", + "value": "1469d27cfb9bb1bd81d3a93f5a023b39dbf136e4" + }, + "scheduler": { + "connectionRole": "scheduler", + "display": "output", + "hidden": false, + "label": "Scheduler", + "signal": { + "direction": "output", + "origin": "modiff_pipeline_identity", + "value": "Flux3ModularPipeline" + }, + "type": "diffusers_auto_model" + }, + "text_encoders": { + "connectionRole": "text_encoders", + "display": "output", + "hidden": false, + "label": "Text Encoders", + "signal": { + "direction": "output", + "origin": "modiff_pipeline_identity", + "value": "Flux3ModularPipeline" + }, + "type": "diffusers_auto_models" + }, + "trust_remote_code": { + "description": "Repository code execution is disabled; keep this off for contract preview.", + "label": "Trust Remote Code", + "onChange": "refresh_pipeline_identity", + "type": "boolean", + "value": false + }, + "unet": { "display": "input", "hidden": false, "label": "Denoise Model", "type": "diffusers_auto_model" }, + "unet_out": { + "connectionRole": "denoiser", + "display": "output", + "hidden": false, + "label": "Denoise Model", + "signal": { + "direction": "output", + "origin": "modiff_pipeline_identity", + "value": "Flux3ModularPipeline" + }, + "type": "diffusers_auto_model" + }, + "vae": { "display": "input", "hidden": false, "label": "VAE", "type": "diffusers_auto_model" }, + "vae_out": { + "connectionRole": "vae", + "display": "output", + "hidden": false, + "label": "VAE", + "signal": { + "direction": "output", + "origin": "modiff_pipeline_identity", + "value": "Flux3ModularPipeline" + }, + "type": "diffusers_auto_model" + }, + "vae_slicing": { + "default": null, + "description": "An unset policy preserves the native VAE configuration; templates may bind an explicit boolean.", + "hidden": true, + "label": "VAE Slicing", + "type": "boolean" + }, + "vae_tiling": { + "default": null, + "description": "An unset policy preserves the native VAE configuration; templates may bind an explicit boolean.", + "hidden": true, + "label": "VAE Tiling", + "type": "boolean" + }, + "weight_format": { + "default": "native", + "description": "Select a backend-declared immutable component format. Missing reviewed files must be installed through Model Manager.", + "fieldOptions": { "controlTier": "advanced" }, + "hidden": false, + "label": "Weight Format", + "options": [ + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "native", + "schemaVersion": 1, + "value": "native" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "fp8r", + "schemaVersion": 1, + "value": "fp8r" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "nvfp4", + "schemaVersion": 1, + "value": "nvfp4" + } + ], + "type": "string" + }, + "weight_loading_mode": { + "default": "cpu", + "description": "Load weights on CPU or CUDA before disk offload. CUDA loading needs room for a complete component and is available only for supported models.", + "fieldOptions": { "controlTier": "advanced" }, + "label": "Weight Loading", + "options": [ + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "cpu", + "schemaVersion": 1, + "value": "cpu" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "cuda", + "schemaVersion": 1, + "value": "cuda" + } + ], + "type": "string" + }, + "workflow_id": { + "description": "Exact reviewed component partition selected by a first-party Cluster Node.", + "hidden": true, + "label": "Reviewed Workflow", + "type": "string", + "value": "text2image" + } + }, + "resizable": true, + "skipParamsCheck": true, + "style": {}, + "time": [0, 0, 0], + "type": "custom" + }, + "operation": { + "binding": { "pipelineClass": "Flux3ModularPipeline", "values": { "model_type": "Flux3ModularPipeline" } }, + "blockName": null, + "decomposition": "loader", + "nodeKey": "modules.ModularDiffusers.ModelsLoader", + "nodeType": "loader", + "operationId": "diffusion.load_models", + "pipelineClass": "Flux3ModularPipeline", + "ports": [ + { + "direction": "input", + "hidden": false, + "name": "model_type", + "required": false, + "roles": ["value"], + "semanticName": "model_type", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": false, + "name": "repo_id", + "required": false, + "roles": ["value"], + "semanticName": "repo_id", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": true, + "name": "reviewed_variant", + "required": false, + "roles": ["value"], + "semanticName": "reviewed_variant", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": false, + "name": "device", + "required": false, + "roles": ["value"], + "semanticName": "device", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": false, + "name": "attention_backend", + "required": false, + "roles": ["value"], + "semanticName": "attention_backend", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": true, + "name": "vae_slicing", + "required": false, + "roles": ["value"], + "semanticName": "vae_slicing", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["boolean"] + }, + { + "direction": "input", + "hidden": true, + "name": "vae_tiling", + "required": false, + "roles": ["value"], + "semanticName": "vae_tiling", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["boolean"] + }, + { + "direction": "input", + "hidden": true, + "name": "inpaint_compatibility", + "required": false, + "roles": ["value"], + "semanticName": "inpaint_compatibility", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": false, + "name": "trust_remote_code", + "required": false, + "roles": ["value"], + "semanticName": "trust_remote_code", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["boolean"] + }, + { + "direction": "input", + "hidden": false, + "name": "revision", + "required": false, + "roles": ["value"], + "semanticName": "revision", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": true, + "name": "workflow_id", + "required": false, + "roles": ["value"], + "semanticName": "workflow_id", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": true, + "name": "modiff_pipeline_identity", + "required": false, + "roles": ["value"], + "semanticName": "modiff_pipeline_identity", + "semantics": { + "kind": "opaque", + "members": [], + "owner": "none", + "scope": "Flux3ModularPipeline", + "state": null + }, + "types": ["object"] + }, + { + "direction": "input", + "hidden": false, + "name": "auto_offload", + "required": false, + "roles": ["value"], + "semanticName": "auto_offload", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["boolean"] + }, + { + "direction": "input", + "hidden": false, + "name": "offload_mode", + "required": false, + "roles": ["value"], + "semanticName": "offload_mode", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": false, + "name": "weight_loading_mode", + "required": false, + "roles": ["value"], + "semanticName": "weight_loading_mode", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": true, + "name": "weight_format", + "required": false, + "roles": ["value"], + "semanticName": "weight_format", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": false, + "name": "unet", + "required": false, + "roles": ["component"], + "semanticName": "unet", + "semantics": { + "kind": "component", + "members": [ + { + "name": "transformer", + "type": "diffusers.models.transformers.transformer_flux3.Flux3Transformer2DModel" + } + ], + "owner": "same_loader", + "scope": "Flux3ModularPipeline", + "state": null + }, + "types": ["diffusers_auto_model"] + }, + { + "direction": "input", + "hidden": false, + "name": "vae", + "required": false, + "roles": ["component"], + "semanticName": "vae", + "semantics": { + "kind": "component", + "members": [ + { "name": "vae", "type": "diffusers.models.autoencoders.autoencoder_kl_flux2.AutoencoderKLFlux2" } + ], + "owner": "same_loader", + "scope": "Flux3ModularPipeline", + "state": null + }, + "types": ["diffusers_auto_model"] + }, + { + "direction": "input", + "hidden": true, + "name": "controlnet", + "required": false, + "roles": ["component"], + "semanticName": "controlnet", + "semantics": { + "kind": "component", + "members": [], + "owner": "same_loader", + "scope": "Flux3ModularPipeline", + "state": null + }, + "types": ["diffusers_auto_model"] + }, + { + "direction": "input", + "hidden": false, + "name": "lora_list", + "required": false, + "roles": ["value"], + "semanticName": "lora_list", + "semantics": { + "kind": "opaque", + "members": [], + "owner": "none", + "scope": "Flux3ModularPipeline", + "state": null + }, + "types": ["custom_lora"] + }, + { + "direction": "output", + "hidden": false, + "name": "text_encoders", + "required": false, + "roles": ["component"], + "semanticName": "text_encoders", + "semantics": { + "kind": "component", + "members": [ + { + "name": "text_encoder", + "type": "transformers.models.qwen3_vl.modeling_qwen3_vl.Qwen3VLForConditionalGeneration" + }, + { "name": "tokenizer", "type": "transformers.models.auto.processing_auto.AutoProcessor" } + ], + "owner": "same_loader", + "scope": "Flux3ModularPipeline", + "state": null + }, + "types": ["diffusers_auto_models"] + }, + { + "direction": "output", + "hidden": false, + "name": "unet_out", + "required": false, + "roles": ["component"], + "semanticName": "unet_out", + "semantics": { + "kind": "component", + "members": [ + { + "name": "transformer", + "type": "diffusers.models.transformers.transformer_flux3.Flux3Transformer2DModel" + } + ], + "owner": "same_loader", + "scope": "Flux3ModularPipeline", + "state": null + }, + "types": ["diffusers_auto_model"] + }, + { + "direction": "output", + "hidden": false, + "name": "vae_out", + "required": false, + "roles": ["component"], + "semanticName": "vae_out", + "semantics": { + "kind": "component", + "members": [ + { "name": "vae", "type": "diffusers.models.autoencoders.autoencoder_kl_flux2.AutoencoderKLFlux2" } + ], + "owner": "same_loader", + "scope": "Flux3ModularPipeline", + "state": null + }, + "types": ["diffusers_auto_model"] + }, + { + "direction": "output", + "hidden": false, + "name": "scheduler", + "required": false, + "roles": ["component"], + "semanticName": "scheduler", + "semantics": { + "kind": "component", + "members": [ + { + "name": "scheduler", + "type": "diffusers.schedulers.scheduling_flow_match_euler_discrete.FlowMatchEulerDiscreteScheduler" + } + ], + "owner": "same_loader", + "scope": "Flux3ModularPipeline", + "state": null + }, + "types": ["diffusers_auto_model"] + }, + { + "direction": "output", + "hidden": true, + "name": "image_encoder", + "required": false, + "roles": ["component"], + "semanticName": "image_encoder", + "semantics": { + "kind": "component", + "members": [], + "owner": "same_loader", + "scope": "Flux3ModularPipeline", + "state": null + }, + "types": ["diffusers_auto_model"] + }, + { + "direction": "output", + "hidden": false, + "name": "pipeline_components", + "required": false, + "roles": ["component"], + "semanticName": "pipeline_components", + "semantics": { + "kind": "component", + "members": [ + { "name": "guider", "type": "diffusers.guiders.classifier_free_guidance.ClassifierFreeGuidance" }, + { + "name": "image_processor", + "type": "diffusers.modular_pipelines.flux3.image_processor.Flux3ImageProcessor" + }, + { + "name": "scheduler", + "type": "diffusers.schedulers.scheduling_flow_match_euler_discrete.FlowMatchEulerDiscreteScheduler" + }, + { + "name": "text_encoder", + "type": "transformers.models.qwen3_vl.modeling_qwen3_vl.Qwen3VLForConditionalGeneration" + }, + { "name": "tokenizer", "type": "transformers.models.auto.processing_auto.AutoProcessor" }, + { + "name": "transformer", + "type": "diffusers.models.transformers.transformer_flux3.Flux3Transformer2DModel" + }, + { "name": "vae", "type": "diffusers.models.autoencoders.autoencoder_kl_flux2.AutoencoderKLFlux2" } + ], + "owner": "same_loader", + "scope": "Flux3ModularPipeline", + "state": null + }, + "types": ["diffusers_modular_pipeline_components"] + }, + { + "direction": "input", + "hidden": false, + "name": "quant_config", + "required": false, + "roles": ["value"], + "semanticName": "quant_config", + "semantics": { + "kind": "opaque", + "members": [], + "owner": "none", + "scope": "Flux3ModularPipeline", + "state": null + }, + "types": ["quant_config"] + } + ], + "support": "declared", + "task": "text_to_image", + "workflowId": "text2image" + } + }, + { + "node": { + "action": "Guider", + "cache": false, + "category": "sampler", + "description": "", + "label": "Guidance", + "memory": [0, 0, 0], + "module": "modules.ModularDiffusers", + "params": { + "enabled": { "label": "Enabled", "type": "boolean", "value": true }, + "guidance_rescale": { + "display": "slider", + "label": "Guidance Rescale", + "max": 10.0, + "min": 0.0, + "step": 0.1, + "type": "float", + "value": 0.0 + }, + "guidance_scale": { + "display": "slider", + "label": "Guidance Scale", + "max": 20.0, + "min": 1.0, + "step": 0.1, + "type": "float", + "value": 3.5 + }, + "guider": { + "fieldOptions": { "loading": true }, + "label": "Guider", + "onChange": [ + "updateNode", + { + "AutoGuidance": ["layers_config"], + "PerturbedAttentionGuidance": ["layers_config"], + "SkipLayerGuidance": ["layers_config"], + "SmoothedEnergyGuidance": ["layers_config"] + } + ], + "options": [ + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "ClassifierFreeGuidance", + "schemaVersion": 1, + "value": "ClassifierFreeGuidance" + } + ], + "type": "string", + "value": "ClassifierFreeGuidance" + }, + "guider_out": { + "display": "output", + "label": "Guider", + "onSignal": [ + { "action": "value", "target": "model_type" }, + { + "action": "value", + "data": { + "Flux2KleinBaseModularPipeline": ["ClassifierFreeGuidance"], + "Flux3ModularPipeline": ["ClassifierFreeGuidance"], + "FluxKontextModularPipeline": ["ClassifierFreeGuidance"], + "FluxModularPipeline": ["ClassifierFreeGuidance"], + "QwenImageEditModularPipeline": [ + "ClassifierFreeGuidance", + "SkipLayerGuidance", + "AdaptiveProjectedGuidance", + "AdaptiveProjectedMixGuidance", + "MagnitudeAwareGuidance", + "ClassifierFreeZeroStarGuidance", + "AutoGuidance", + "SmoothedEnergyGuidance", + "PerturbedAttentionGuidance", + "TangentialClassifierFreeGuidance", + "FrequencyDecoupledGuidance" + ], + "QwenImageEditPlusModularPipeline": [ + "ClassifierFreeGuidance", + "SkipLayerGuidance", + "AdaptiveProjectedGuidance", + "AdaptiveProjectedMixGuidance", + "MagnitudeAwareGuidance", + "ClassifierFreeZeroStarGuidance", + "AutoGuidance", + "SmoothedEnergyGuidance", + "PerturbedAttentionGuidance", + "TangentialClassifierFreeGuidance", + "FrequencyDecoupledGuidance" + ], + "QwenImageLayeredModularPipeline": [ + "ClassifierFreeGuidance", + "AdaptiveProjectedGuidance", + "AdaptiveProjectedMixGuidance", + "MagnitudeAwareGuidance", + "ClassifierFreeZeroStarGuidance", + "TangentialClassifierFreeGuidance", + "FrequencyDecoupledGuidance" + ], + "QwenImageModularPipeline": [ + "ClassifierFreeGuidance", + "SkipLayerGuidance", + "AdaptiveProjectedGuidance", + "AdaptiveProjectedMixGuidance", + "MagnitudeAwareGuidance", + "ClassifierFreeZeroStarGuidance", + "AutoGuidance", + "SmoothedEnergyGuidance", + "PerturbedAttentionGuidance", + "TangentialClassifierFreeGuidance", + "FrequencyDecoupledGuidance" + ], + "StableDiffusionXLModularPipeline": [ + "ClassifierFreeGuidance", + "SkipLayerGuidance", + "AdaptiveProjectedGuidance", + "AdaptiveProjectedMixGuidance", + "MagnitudeAwareGuidance", + "ClassifierFreeZeroStarGuidance", + "AutoGuidance", + "SmoothedEnergyGuidance", + "PerturbedAttentionGuidance", + "TangentialClassifierFreeGuidance", + "FrequencyDecoupledGuidance" + ], + "WanImage2VideoModularPipeline": [ + "ClassifierFreeGuidance", + "AdaptiveProjectedGuidance", + "AdaptiveProjectedMixGuidance", + "MagnitudeAwareGuidance", + "ClassifierFreeZeroStarGuidance", + "TangentialClassifierFreeGuidance", + "FrequencyDecoupledGuidance" + ], + "WanModularPipeline": [ + "ClassifierFreeGuidance", + "AdaptiveProjectedGuidance", + "AdaptiveProjectedMixGuidance", + "MagnitudeAwareGuidance", + "ClassifierFreeZeroStarGuidance", + "TangentialClassifierFreeGuidance", + "FrequencyDecoupledGuidance" + ], + "ZImageModularPipeline": [ + "ClassifierFreeGuidance", + "AdaptiveProjectedGuidance", + "AdaptiveProjectedMixGuidance", + "MagnitudeAwareGuidance", + "ClassifierFreeZeroStarGuidance", + "TangentialClassifierFreeGuidance", + "FrequencyDecoupledGuidance" + ] + }, + "prop": "options", + "target": "guider" + }, + { "action": "signal", "target": "layers_config" } + ], + "signalCompatibility": { + "values": { + "Flux2KleinBaseModularPipeline": ["ClassifierFreeGuidance"], + "Flux3ModularPipeline": ["ClassifierFreeGuidance"], + "FluxKontextModularPipeline": ["ClassifierFreeGuidance"], + "FluxModularPipeline": ["ClassifierFreeGuidance"], + "QwenImageEditModularPipeline": [ + "ClassifierFreeGuidance", + "SkipLayerGuidance", + "AdaptiveProjectedGuidance", + "AdaptiveProjectedMixGuidance", + "MagnitudeAwareGuidance", + "ClassifierFreeZeroStarGuidance", + "AutoGuidance", + "SmoothedEnergyGuidance", + "PerturbedAttentionGuidance", + "TangentialClassifierFreeGuidance", + "FrequencyDecoupledGuidance" + ], + "QwenImageEditPlusModularPipeline": [ + "ClassifierFreeGuidance", + "SkipLayerGuidance", + "AdaptiveProjectedGuidance", + "AdaptiveProjectedMixGuidance", + "MagnitudeAwareGuidance", + "ClassifierFreeZeroStarGuidance", + "AutoGuidance", + "SmoothedEnergyGuidance", + "PerturbedAttentionGuidance", + "TangentialClassifierFreeGuidance", + "FrequencyDecoupledGuidance" + ], + "QwenImageLayeredModularPipeline": [ + "ClassifierFreeGuidance", + "AdaptiveProjectedGuidance", + "AdaptiveProjectedMixGuidance", + "MagnitudeAwareGuidance", + "ClassifierFreeZeroStarGuidance", + "TangentialClassifierFreeGuidance", + "FrequencyDecoupledGuidance" + ], + "QwenImageModularPipeline": [ + "ClassifierFreeGuidance", + "SkipLayerGuidance", + "AdaptiveProjectedGuidance", + "AdaptiveProjectedMixGuidance", + "MagnitudeAwareGuidance", + "ClassifierFreeZeroStarGuidance", + "AutoGuidance", + "SmoothedEnergyGuidance", + "PerturbedAttentionGuidance", + "TangentialClassifierFreeGuidance", + "FrequencyDecoupledGuidance" + ], + "StableDiffusionXLModularPipeline": [ + "ClassifierFreeGuidance", + "SkipLayerGuidance", + "AdaptiveProjectedGuidance", + "AdaptiveProjectedMixGuidance", + "MagnitudeAwareGuidance", + "ClassifierFreeZeroStarGuidance", + "AutoGuidance", + "SmoothedEnergyGuidance", + "PerturbedAttentionGuidance", + "TangentialClassifierFreeGuidance", + "FrequencyDecoupledGuidance" + ], + "WanImage2VideoModularPipeline": [ + "ClassifierFreeGuidance", + "AdaptiveProjectedGuidance", + "AdaptiveProjectedMixGuidance", + "MagnitudeAwareGuidance", + "ClassifierFreeZeroStarGuidance", + "TangentialClassifierFreeGuidance", + "FrequencyDecoupledGuidance" + ], + "WanModularPipeline": [ + "ClassifierFreeGuidance", + "AdaptiveProjectedGuidance", + "AdaptiveProjectedMixGuidance", + "MagnitudeAwareGuidance", + "ClassifierFreeZeroStarGuidance", + "TangentialClassifierFreeGuidance", + "FrequencyDecoupledGuidance" + ], + "ZImageModularPipeline": [ + "ClassifierFreeGuidance", + "AdaptiveProjectedGuidance", + "AdaptiveProjectedMixGuidance", + "MagnitudeAwareGuidance", + "ClassifierFreeZeroStarGuidance", + "TangentialClassifierFreeGuidance", + "FrequencyDecoupledGuidance" + ] + } + }, + "type": "custom_guider" + }, + "layers_config": { "display": "input", "label": "Layers", "type": "layers_config" }, + "model_type": { "default": "", "hidden": true, "type": "string", "value": "Flux3ModularPipeline" }, + "start": { + "display": "slider", + "label": "Start", + "max": 1.0, + "min": 0.0, + "step": 0.01, + "type": "float", + "value": 0.0 + }, + "stop": { + "display": "slider", + "label": "Stop", + "max": 1.0, + "min": 0.01, + "step": 0.01, + "type": "float", + "value": 1.0 + }, + "use_original_formulation": { "label": "Original Formulation", "type": "boolean", "value": false } + }, + "resizable": true, + "skipParamsCheck": true, + "style": {}, + "time": [0, 0, 0], + "type": "custom" + }, + "operation": { + "binding": { "pipelineClass": "Flux3ModularPipeline", "values": { "model_type": "Flux3ModularPipeline" } }, + "blockName": null, + "decomposition": "bundle", + "nodeKey": "modules.ModularDiffusers.Guider", + "nodeType": "guidance", + "operationId": "diffusion.guidance", + "pipelineClass": "Flux3ModularPipeline", + "ports": [ + { + "direction": "input", + "hidden": true, + "name": "model_type", + "required": false, + "roles": ["value"], + "semanticName": "model_type", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": false, + "name": "guider", + "required": false, + "roles": ["value"], + "semanticName": "guider", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": false, + "name": "guidance_scale", + "required": false, + "roles": ["value"], + "semanticName": "guidance_scale", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["float"] + }, + { + "direction": "input", + "hidden": false, + "name": "guidance_rescale", + "required": false, + "roles": ["value"], + "semanticName": "guidance_rescale", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["float"] + }, + { + "direction": "input", + "hidden": false, + "name": "use_original_formulation", + "required": false, + "roles": ["value"], + "semanticName": "use_original_formulation", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["boolean"] + }, + { + "direction": "input", + "hidden": false, + "name": "enabled", + "required": false, + "roles": ["value"], + "semanticName": "enabled", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["boolean"] + }, + { + "direction": "input", + "hidden": false, + "name": "start", + "required": false, + "roles": ["value"], + "semanticName": "start", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["float"] + }, + { + "direction": "input", + "hidden": false, + "name": "stop", + "required": false, + "roles": ["value"], + "semanticName": "stop", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["float"] + }, + { + "direction": "output", + "hidden": false, + "name": "guider_out", + "required": false, + "roles": ["component"], + "semanticName": "guider_out", + "semantics": { + "kind": "component", + "members": [], + "owner": "same_loader", + "scope": "Flux3ModularPipeline", + "state": null + }, + "types": ["custom_guider"] + }, + { + "direction": "input", + "hidden": false, + "name": "layers_config", + "required": false, + "roles": ["value"], + "semanticName": "layers_config", + "semantics": { + "kind": "opaque", + "members": [], + "owner": "none", + "scope": "Flux3ModularPipeline", + "state": null + }, + "types": ["layers_config"] + } + ], + "support": "declared", + "task": "text_to_image", + "workflowId": "text2image" + } + }, + { + "node": { + "action": "EncodePrompt", + "cache": false, + "category": "embedding", + "description": "", + "label": "Encode Prompt", + "memory": [0, 0, 0], + "module": "modules.ModularDiffusers", + "params": { + "doc": { "display": "output", "label": "Doc", "type": "string" }, + "embeddings": { "display": "output", "label": "Text Embeddings", "type": "embeddings" }, + "guider": { + "description": "Shared Diffusers guidance used by prompt encoding and denoising when the selected pipeline supports it.", + "display": "input", + "hidden": true, + "label": "Guider", + "type": "custom_guider" + }, + "layout_conditioning": { + "default": null, + "display": "layout", + "fieldOptions": { + "layoutConditioning": { + "schemaVersion": 2, + "sourceRegions": false, + "supportsBoundSourceRegions": true + } + }, + "label": "Layout Conditioning", + "type": "layout_conditioning" + }, + "layout_reference_summary": { + "description": "Display-only ordered reference identities and actual preprocessing sizes from the current encoder cache.", + "display": "output", + "hidden": true, + "label": "Bound Reference Summary", + "type": "string" + }, + "max_sequence_length": { + "default": 8192, + "label": "Maximum Sequence Length", + "max": 8192, + "min": 1, + "step": 1, + "type": "int" + }, + "negative_prompt": { "default": "", "display": "textarea", "label": "Negative Prompt", "type": "string" }, + "prompt": { + "default": "", + "display": "textarea", + "fieldOptions": { "exampleAttribution": "MoDiff task example" }, + "label": "Prompt *", + "type": "string", + "value": "A red ceramic teapot on a wooden table beside a window, soft morning light, detailed photograph." + }, + "prompt_input": { + "description": "Optional connected prompt. When connected, this replaces the inline Prompt value.", + "display": "input", + "label": "Prompt Input", + "type": "string" + }, + "reference_binding": { + "default": null, + "display": "input", + "fieldOptions": { "referenceBinding": { "maxReferences": 10, "schemaVersion": 1 } }, + "label": "Reference Binding", + "type": "reference_conditioning" + }, + "text_encoder_out_layers": { + "default": [4, 8, 12, 16, 20, 24, 28, 32], + "display": "select", + "fieldOptions": { "multiple": true, "tupleLength": 8, "tupleValue": true }, + "label": "Text Encoder Layers", + "options": [ + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "0", + "schemaVersion": 1, + "value": "0" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "1", + "schemaVersion": 1, + "value": "1" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "2", + "schemaVersion": 1, + "value": "2" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "3", + "schemaVersion": 1, + "value": "3" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "4", + "schemaVersion": 1, + "value": "4" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "5", + "schemaVersion": 1, + "value": "5" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "6", + "schemaVersion": 1, + "value": "6" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "7", + "schemaVersion": 1, + "value": "7" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "8", + "schemaVersion": 1, + "value": "8" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "9", + "schemaVersion": 1, + "value": "9" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "10", + "schemaVersion": 1, + "value": "10" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "11", + "schemaVersion": 1, + "value": "11" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "12", + "schemaVersion": 1, + "value": "12" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "13", + "schemaVersion": 1, + "value": "13" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "14", + "schemaVersion": 1, + "value": "14" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "15", + "schemaVersion": 1, + "value": "15" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "16", + "schemaVersion": 1, + "value": "16" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "17", + "schemaVersion": 1, + "value": "17" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "18", + "schemaVersion": 1, + "value": "18" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "19", + "schemaVersion": 1, + "value": "19" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "20", + "schemaVersion": 1, + "value": "20" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "21", + "schemaVersion": 1, + "value": "21" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "22", + "schemaVersion": 1, + "value": "22" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "23", + "schemaVersion": 1, + "value": "23" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "24", + "schemaVersion": 1, + "value": "24" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "25", + "schemaVersion": 1, + "value": "25" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "26", + "schemaVersion": 1, + "value": "26" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "27", + "schemaVersion": 1, + "value": "27" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "28", + "schemaVersion": 1, + "value": "28" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "29", + "schemaVersion": 1, + "value": "29" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "30", + "schemaVersion": 1, + "value": "30" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "31", + "schemaVersion": 1, + "value": "31" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "32", + "schemaVersion": 1, + "value": "32" + } + ], + "type": "int" + }, + "text_encoders": { + "display": "input", + "label": "Text Encoders *", + "onSignal": "update_node", + "required": true, + "signalCompatibility": { "role": "text_encoders" }, + "type": "diffusers_auto_models" + } + }, + "resizable": true, + "skipParamsCheck": true, + "style": {}, + "time": [0, 0, 0], + "type": "custom" + }, + "operation": { + "binding": { "pipelineClass": "Flux3ModularPipeline", "values": {} }, + "blockName": "text_encoder", + "decomposition": "block", + "nodeKey": "modules.ModularDiffusers.EncodePrompt", + "nodeType": "text_encoder", + "operationId": "diffusion.encode_prompt", + "pipelineClass": "Flux3ModularPipeline", + "ports": [ + { + "direction": "input", + "hidden": false, + "name": "prompt", + "required": true, + "roles": ["value"], + "semanticName": "prompt", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": false, + "name": "negative_prompt", + "required": false, + "roles": ["value"], + "semanticName": "negative_prompt", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": false, + "name": "max_sequence_length", + "required": false, + "roles": ["value"], + "semanticName": "max_sequence_length", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["int"] + }, + { + "direction": "input", + "hidden": false, + "name": "text_encoder_out_layers", + "required": false, + "roles": ["value"], + "semanticName": "text_encoder_out_layers", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["int"] + }, + { + "direction": "input", + "hidden": false, + "name": "text_encoders", + "required": true, + "roles": ["component"], + "semanticName": "text_encoders", + "semantics": { + "kind": "component", + "members": [ + { + "name": "text_encoder", + "type": "transformers.models.qwen3_vl.modeling_qwen3_vl.Qwen3VLForConditionalGeneration" + }, + { "name": "tokenizer", "type": "transformers.models.auto.processing_auto.AutoProcessor" } + ], + "owner": "same_loader", + "scope": "Flux3ModularPipeline", + "state": null + }, + "types": ["diffusers_auto_models"] + }, + { + "direction": "output", + "hidden": false, + "name": "embeddings", + "required": false, + "roles": ["value"], + "semanticName": "embeddings", + "semantics": { + "kind": "conditioning", + "members": [], + "owner": "same_loader", + "scope": "Flux3ModularPipeline", + "state": null + }, + "types": ["embeddings"] + }, + { + "direction": "output", + "hidden": false, + "name": "doc", + "required": false, + "roles": ["value"], + "semanticName": "doc", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": false, + "name": "layout_conditioning", + "required": false, + "roles": ["value"], + "semanticName": "layout_conditioning", + "semantics": { + "kind": "opaque", + "members": [], + "owner": "none", + "scope": "Flux3ModularPipeline", + "state": null + }, + "types": ["layout_conditioning"] + }, + { + "direction": "input", + "hidden": false, + "name": "reference_binding", + "required": false, + "roles": ["value"], + "semanticName": "reference_binding", + "semantics": { + "kind": "opaque", + "members": [], + "owner": "none", + "scope": "Flux3ModularPipeline", + "state": null + }, + "types": ["reference_conditioning"] + }, + { + "direction": "input", + "hidden": false, + "name": "prompt_input", + "required": false, + "roles": ["value"], + "semanticName": "prompt", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + } + ], + "support": "declared", + "task": "text_to_image", + "workflowId": "text2image" + } + }, + { + "node": { + "action": "Denoise", + "cache": false, + "category": "sampler", + "description": "", + "label": "Denoise", + "memory": [0, 0, 0], + "module": "modules.ModularDiffusers", + "params": { + "doc": { "display": "output", "label": "Doc", "type": "string" }, + "embeddings": { "display": "input", "label": "Text Embeddings *", "type": "embeddings" }, + "guider": { "display": "input", "label": "Guider", "type": "custom_guider" }, + "height": { "default": 1024, "label": "Height", "min": 64, "step": 16, "type": "int", "value": 1024 }, + "image_cond_latents": { "display": "input", "label": "Reference Latents", "type": "latents" }, + "latents": { "display": "output", "label": "Latents", "type": "latents" }, + "num_images_per_prompt": { + "default": 1, + "label": "Images Per Prompt", + "max": 8, + "min": 1, + "step": 1, + "type": "int" + }, + "num_inference_steps": { + "default": 50, + "display": "slider", + "label": "Steps", + "max": 100, + "min": 1, + "type": "int", + "value": 50 + }, + "reference_binding": { + "default": null, + "display": "input", + "fieldOptions": { "referenceBinding": { "maxReferences": 10, "schemaVersion": 1 } }, + "label": "Reference Binding", + "type": "reference_conditioning" + }, + "scheduler": { + "display": "input", + "label": "Scheduler *", + "signalCompatibility": { "role": "scheduler" }, + "type": "diffusers_auto_model" + }, + "seed": { + "default": 0, + "display": "random", + "label": "Seed", + "max": 4294967295, + "min": 0, + "type": "int" + }, + "unet": { + "display": "input", + "label": "Denoise Model *", + "onSignal": [ + "update_node", + { "action": "signal", "target": "guider" }, + { "action": "signal", "target": "controlnet_bundle" } + ], + "required": true, + "signalCompatibility": { "role": "denoiser" }, + "type": "diffusers_auto_model" + }, + "width": { "default": 1024, "label": "Width", "min": 64, "step": 16, "type": "int", "value": 1024 } + }, + "resizable": true, + "skipParamsCheck": true, + "style": {}, + "time": [0, 0, 0], + "type": "custom" + }, + "operation": { + "binding": { "pipelineClass": "Flux3ModularPipeline", "values": {} }, + "blockName": "denoise", + "decomposition": "block", + "nodeKey": "modules.ModularDiffusers.Denoise", + "nodeType": "denoise", + "operationId": "diffusion.denoise", + "pipelineClass": "Flux3ModularPipeline", + "ports": [ + { + "direction": "input", + "hidden": false, + "name": "embeddings", + "required": true, + "roles": ["value"], + "semanticName": "embeddings", + "semantics": { + "kind": "conditioning", + "members": [], + "owner": "same_loader", + "scope": "Flux3ModularPipeline", + "state": null + }, + "types": ["embeddings"] + }, + { + "direction": "input", + "hidden": false, + "name": "width", + "required": false, + "roles": ["value"], + "semanticName": "width", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["int"] + }, + { + "direction": "input", + "hidden": false, + "name": "height", + "required": false, + "roles": ["value"], + "semanticName": "height", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["int"] + }, + { + "direction": "input", + "hidden": false, + "name": "seed", + "required": false, + "roles": ["value"], + "semanticName": "seed", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["int"] + }, + { + "direction": "input", + "hidden": false, + "name": "num_inference_steps", + "required": false, + "roles": ["value"], + "semanticName": "num_inference_steps", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["int"] + }, + { + "direction": "input", + "hidden": false, + "name": "num_images_per_prompt", + "required": false, + "roles": ["value"], + "semanticName": "num_images_per_prompt", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["int"] + }, + { + "direction": "input", + "hidden": false, + "name": "image_cond_latents", + "required": false, + "roles": ["value"], + "semanticName": "image_cond_latents", + "semantics": { + "kind": "latents", + "members": [], + "owner": "same_loader", + "scope": "Flux3ModularPipeline", + "state": null + }, + "types": ["latents"] + }, + { + "direction": "input", + "hidden": false, + "name": "unet", + "required": true, + "roles": ["component"], + "semanticName": "unet", + "semantics": { + "kind": "component", + "members": [ + { + "name": "transformer", + "type": "diffusers.models.transformers.transformer_flux3.Flux3Transformer2DModel" + } + ], + "owner": "same_loader", + "scope": "Flux3ModularPipeline", + "state": null + }, + "types": ["diffusers_auto_model"] + }, + { + "direction": "input", + "hidden": false, + "name": "scheduler", + "required": true, + "roles": ["component"], + "semanticName": "scheduler", + "semantics": { + "kind": "component", + "members": [ + { + "name": "scheduler", + "type": "diffusers.schedulers.scheduling_flow_match_euler_discrete.FlowMatchEulerDiscreteScheduler" + } + ], + "owner": "same_loader", + "scope": "Flux3ModularPipeline", + "state": null + }, + "types": ["diffusers_auto_model"] + }, + { + "direction": "input", + "hidden": false, + "name": "guider", + "required": false, + "roles": ["component"], + "semanticName": "guider", + "semantics": { + "kind": "component", + "members": [ + { "name": "guider", "type": "diffusers.guiders.classifier_free_guidance.ClassifierFreeGuidance" } + ], + "owner": "same_loader", + "scope": "Flux3ModularPipeline", + "state": null + }, + "types": ["custom_guider"] + }, + { + "direction": "output", + "hidden": false, + "name": "latents", + "required": false, + "roles": ["value"], + "semanticName": "latents", + "semantics": { + "kind": "latents", + "members": [], + "owner": "same_loader", + "scope": "Flux3ModularPipeline", + "state": null + }, + "types": ["latents"] + }, + { + "direction": "output", + "hidden": false, + "name": "doc", + "required": false, + "roles": ["value"], + "semanticName": "doc", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": false, + "name": "reference_binding", + "required": false, + "roles": ["value"], + "semanticName": "reference_binding", + "semantics": { + "kind": "opaque", + "members": [], + "owner": "none", + "scope": "Flux3ModularPipeline", + "state": null + }, + "types": ["reference_conditioning"] + } + ], + "support": "declared", + "task": "text_to_image", + "workflowId": "text2image" + } + }, + { + "node": { + "action": "DecodeLatents", + "cache": false, + "category": "sampler", + "description": "", + "label": "Decode Latents", + "memory": [0, 0, 0], + "module": "modules.ModularDiffusers", + "params": { + "doc": { "display": "output", "label": "Doc", "type": "string" }, + "images": { "display": "output", "label": "Images", "type": "image" }, + "latents": { "display": "input", "label": "Latents *", "type": "latents" }, + "vae": { + "display": "input", + "label": "VAE *", + "onSignal": "update_node", + "signalCompatibility": { "role": "vae" }, + "type": "diffusers_auto_model" + } + }, + "resizable": true, + "skipParamsCheck": true, + "style": {}, + "time": [0, 0, 0], + "type": "custom" + }, + "operation": { + "binding": { "pipelineClass": "Flux3ModularPipeline", "values": {} }, + "blockName": "decode", + "decomposition": "block", + "nodeKey": "modules.ModularDiffusers.DecodeLatents", + "nodeType": "decoder", + "operationId": "diffusion.decode_latents", + "pipelineClass": "Flux3ModularPipeline", + "ports": [ + { + "direction": "input", + "hidden": false, + "name": "latents", + "required": true, + "roles": ["value"], + "semanticName": "latents", + "semantics": { + "kind": "latents", + "members": [], + "owner": "same_loader", + "scope": "Flux3ModularPipeline", + "state": null + }, + "types": ["latents"] + }, + { + "direction": "input", + "hidden": false, + "name": "vae", + "required": true, + "roles": ["component"], + "semanticName": "vae", + "semantics": { + "kind": "component", + "members": [ + { "name": "vae", "type": "diffusers.models.autoencoders.autoencoder_kl_flux2.AutoencoderKLFlux2" } + ], + "owner": "same_loader", + "scope": "Flux3ModularPipeline", + "state": null + }, + "types": ["diffusers_auto_model"] + }, + { + "direction": "output", + "hidden": false, + "name": "images", + "required": false, + "roles": ["value"], + "semanticName": "images", + "semantics": { "kind": "media", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["image"] + }, + { + "direction": "output", + "hidden": false, + "name": "doc", + "required": false, + "roles": ["value"], + "semanticName": "doc", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + } + ], + "support": "declared", + "task": "text_to_image", + "workflowId": "text2image" + } + } + ], + "pipelineClass": "Flux3ModularPipeline", + "requiredInputs": [{ "field": "prompt", "operationId": "diffusion.encode_prompt" }], + "schemaVersion": 1, + "sharedInputs": [], + "task": "text_to_image", + "upstreamBlocks": ["text_encoder", "denoise", "decode"], + "workflowId": "text2image" + }, + { + "authoring": { + "ancillaryOperations": [ + { + "adapter": { + "declarationSha256": "sha256:2a3d4685988b418115008bbb95fb3e948097580c0bedd2940ea3fe1e40254dc2", + "id": "transformers-prompt-enhancement-v1" + }, + "bindings": { + "output": { "field": "proposal_summary", "role": "proposal" }, + "owner": { + "layoutField": "layout_conditioning", + "promptField": "prompt", + "referenceSource": null, + "role": "prompt" + }, + "request": { + "imagesField": "images", + "layoutField": "layout_conditioning", + "promptField": "prompt", + "role": "proposal" + } + }, + "contentHash": "studio-ancillary-v1-e24dc3ad", + "edges": [["provider", "model", "proposal", "model"]], + "executionPurpose": "explicit_preview", + "fieldOverrides": [ + ["proposal", "enhancement_max_new_tokens", { "hidden": false }], + ["proposal", "max_new_tokens", { "hidden": true }] + ], + "id": "flux3-klein-base:official:text-to-image:prompt-preview-nf4:v1:preview", + "initialValues": [ + ["provider", "model_id", { "source": "hub", "value": "black-forest-labs/flux-3-image-klein-pup" }], + ["provider", "revision", "3f3edb52b2c55de0d49feab28598b68f7f8e4830"], + ["proposal", "operation", "enhance_prompt"], + ["provider", "dtype", "bfloat16"], + ["provider", "device", "cuda:0"], + ["provider", "quantization_mode", "bnb_4bit"], + ["proposal", "max_input_tokens", 4096] + ], + "parent": { + "authoringRecipeId": "flux3-klein-base:official:text-to-image:prompt-preview-nf4:v1", + "baseSpecContentHash": "studio-spec-v1-f5960f24", + "baseSpecId": "flux3-klein-base:official-provider:v1:text-to-image:v1", + "executionProfileId": "flux3-klein-base:official-provider:v1", + "pipelineClass": "Flux3ModularPipeline", + "task": "text_to_image" + }, + "roles": [ + ["provider", "modules.HuggingFaceTransformers.LoadImageTextToTextModel", -720, -400], + ["proposal", "modules.HuggingFaceTransformers.GenerateImageVideoText", -360, -400] + ], + "schemaVersion": 1, + "sourceRegions": false, + "verification": { + "adapter": { + "declarationSha256": "sha256:2a3d4685988b418115008bbb95fb3e948097580c0bedd2940ea3fe1e40254dc2", + "id": "transformers-prompt-enhancement-v1" + }, + "chatTemplateSha256": "sha256:a4aee8afcf2e0711942cf848899be66016f8d14a889ff9ede07bca099c28f715", + "modelReceipt": { + "library": "transformers", + "loader": { "modelAutoClass": "AutoModelForImageTextToText", "preprocessorAutoClass": "AutoProcessor" }, + "runtime": { + "architectures": ["Qwen3_5ForConditionalGeneration"], + "modelClass": "Qwen3_5ForConditionalGeneration", + "modelType": "qwen3_5", + "preprocessorClass": "Qwen3VLProcessor", + "transformersVersion": "5.18.0" + }, + "schemaVersion": 1, + "security": { + "hostedInference": false, + "localFilesOnly": true, + "safetensorsOnly": true, + "trustRemoteCode": false + }, + "source": { + "kind": "hub", + "repository": "black-forest-labs/flux-3-image-klein-pup", + "revision": "3f3edb52b2c55de0d49feab28598b68f7f8e4830" + }, + "task": "image-video-to-text" + }, + "quantizationRecipes": [ + { "mode": "none" }, + { + "computeDtype": "bfloat16", + "doubleQuant": true, + "mode": "bnb_4bit", + "quantType": "nf4", + "skipModules": ["lm_head", "model.visual"] + } + ], + "requestInputs": { + "maxImagePixelsField": "max_image_pixels", + "maxInputTokensField": "max_input_tokens", + "maxNewTokensField": "enhancement_max_new_tokens", + "minNewTokensField": "min_new_tokens", + "operationField": "operation", + "role": "proposal" + }, + "runtimeInputs": { + "deviceField": "device", + "dtypeField": "dtype", + "modelField": "model_id", + "quantizationField": "quantization_mode", + "revisionField": "revision", + "role": "provider" + }, + "schemaVersion": 1, + "supportedPromptModes": ["t2i", "i2i"], + "systemPromptSha256ByMode": { + "i2i": "95cec384d5b6d341caa9fb3f2c7ca45ee80c2364b3a95d4044aebf976f6dd3bf", + "i2i_bbox": "9ad10f947e401337cf155cac0518cc428159ef16f2f029f48aae2aaab8380a5e", + "t2i": "8b235a421bce2213d11ada01f5a1244443dd72303ffbb4cc9e5a0d8b0de5ab6f", + "t2i_bbox": "5f513d8ce5838732919f9e645507aa20ff373e88bf93132c768e063c9db3151f" + }, + "systemPromptsSha256": "sha256:b5da3ed8bc04ab59dbdb747930f7dbff847e868903fed8028f85ee1a4ac82fb4" + } + } + ], + "baseSpecContentHash": "studio-spec-v1-f5960f24", + "baseSpecId": "flux3-klein-base:official-provider:v1:text-to-image:v1", + "bindings": [ + ["models", "model_type", "pipelineClass"], + ["models", "repo_id", "artifact"], + ["models", "revision", "defaultRevision"], + ["models", "dtype", "dtype"], + ["models", "device", "device"], + ["models", "auto_offload", "autoOffload"], + ["models", "offload_mode", "offloadMode"], + ["models", "trust_remote_code", "false"], + ["prompt", "prompt", "prompt"], + ["prompt", "negative_prompt", "negativePrompt"], + ["denoise", "width", "width"], + ["denoise", "height", "height"], + ["denoise", "seed", "seed"], + ["denoise", "num_inference_steps", "steps"], + ["prompt", "max_sequence_length", "maxSequenceLength"], + ["models", "weight_format", "weightFormat"], + ["guider", "guider", "classifierFreeGuidance"], + ["guider", "model_type", "pipelineClass"], + ["guider", "guidance_scale", "guidanceScale"] + ], + "canonicalizationVersion": 1, + "contentHash": "studio-authoring-v1-013fbb17", + "edges": [ + ["models", "text_encoders", "prompt", "text_encoders"], + ["models", "unet_out", "denoise", "unet"], + ["models", "scheduler", "denoise", "scheduler"], + ["models", "vae_out", "decode", "vae"], + ["prompt", "embeddings", "denoise", "embeddings"], + ["denoise", "latents", "decode", "latents"], + ["decode", "images", "preview", "image"], + ["guider", "guider_out", "denoise", "guider"] + ], + "executionProfileIds": ["flux3-klein-base:official-provider:v1"], + "id": "flux3-klein-base:official:text-to-image:prompt-preview-nf4:v1", + "initialValues": [], + "roles": [ + ["models", "modules.ModularDiffusers.ModelsLoader", -720, -80], + ["prompt", "modules.ModularDiffusers.EncodePrompt", -360, -240], + ["denoise", "modules.ModularDiffusers.Denoise", 80, -80], + ["decode", "modules.ModularDiffusers.DecodeLatents", 440, -80], + ["preview", "modules.Image.Preview", 800, -80], + ["guider", "modules.ModularDiffusers.Guider", -360, 160] + ], + "schemaVersion": 1 + }, + "edges": [ + { + "source": "diffusion.load_models", + "sourceHandle": "text_encoders", + "target": "diffusion.encode_prompt", + "targetHandle": "text_encoders" + }, + { + "source": "diffusion.load_models", + "sourceHandle": "scheduler", + "target": "diffusion.denoise", + "targetHandle": "scheduler" + }, + { + "source": "diffusion.load_models", + "sourceHandle": "unet_out", + "target": "diffusion.denoise", + "targetHandle": "unet" + }, + { + "source": "diffusion.load_models", + "sourceHandle": "vae_out", + "target": "diffusion.decode_latents", + "targetHandle": "vae" + }, + { + "source": "diffusion.encode_prompt", + "sourceHandle": "embeddings", + "target": "diffusion.denoise", + "targetHandle": "embeddings" + }, + { + "source": "diffusion.denoise", + "sourceHandle": "latents", + "target": "diffusion.decode_latents", + "targetHandle": "latents" + }, + { + "source": "diffusion.guidance", + "sourceHandle": "guider_out", + "target": "diffusion.denoise", + "targetHandle": "guider" + } + ], + "nodes": [ + { + "node": { + "action": "ModelsLoader", + "cache": false, + "category": "loader", + "description": "", + "label": "Load Models", + "memory": [0, 0, 0], + "module": "modules.ModularDiffusers", + "params": { + "attention_backend": { + "default": "inherit", + "description": "Inherit preserves existing native component defaults; explicit choices use the ordinary Diffusers attention API.", + "label": "Attention Backend", + "options": [ + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "inherit", + "schemaVersion": 1, + "value": "inherit" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "auto", + "schemaVersion": 1, + "value": "auto" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "native", + "schemaVersion": 1, + "value": "native" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "_native_math", + "schemaVersion": 1, + "value": "_native_math" + } + ], + "type": "string" + }, + "auto_offload": { "label": "Enable Auto Offload", "type": "boolean", "value": true }, + "controlnet": { + "display": "input", + "hidden": true, + "label": "ControlNet", + "type": "diffusers_auto_model" + }, + "device": { + "label": "Device", + "options": { + "cpu": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "cpu", + "schemaVersion": 1, + "value": "cpu" + }, + "cpu:0": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "cpu:0", + "schemaVersion": 1, + "value": "cpu:0" + } + }, + "type": "string", + "value": "cpu:0" + }, + "dtype": { + "label": "dtype", + "options": [ + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "float32", + "schemaVersion": 1, + "value": "float32" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "float16", + "schemaVersion": 1, + "value": "float16" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "bfloat16", + "schemaVersion": 1, + "value": "bfloat16" + } + ], + "value": "bfloat16" + }, + "image_encoder": { + "connectionRole": "image_encoder", + "display": "output", + "hidden": true, + "label": "Image Encoder", + "signal": { + "direction": "output", + "origin": "modiff_pipeline_identity", + "value": "Flux3ModularPipeline" + }, + "type": "diffusers_auto_model" + }, + "inpaint_compatibility": { + "default": "native", + "description": "Technical compatibility selection for the reviewed Qwen Edit inpainting candidate; existing nodes retain native policy.", + "hidden": true, + "label": "Inpaint Compatibility", + "options": [ + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "native", + "schemaVersion": 1, + "value": "native" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "whole_v1", + "schemaVersion": 1, + "value": "whole_v1" + } + ], + "type": "string" + }, + "lora_list": { "display": "input", "label": "Lora", "type": "custom_lora" }, + "model_type": { + "description": "Selects the Modular Diffusers pipeline class. This filters compatible checkpoints and publishes the component contract used by connected nodes; it is not the model checkpoint itself.", + "label": "Pipeline Type", + "onChange": "set_filters", + "options": { + "": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "", + "schemaVersion": 1, + "value": "" + }, + "AnimaModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Anima", + "schemaVersion": 1, + "value": "AnimaModularPipeline" + }, + "Cosmos3DistilledModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Cosmos 3 Distilled", + "schemaVersion": 1, + "value": "Cosmos3DistilledModularPipeline" + }, + "Cosmos3OmniModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Cosmos 3 Nano", + "schemaVersion": 1, + "value": "Cosmos3OmniModularPipeline" + }, + "DummyCustomPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Custom", + "schemaVersion": 1, + "value": "DummyCustomPipeline" + }, + "ErnieImageModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "ERNIE Image Turbo", + "schemaVersion": 1, + "value": "ErnieImageModularPipeline" + }, + "Flux2KleinBaseModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Flux 2 Klein Base", + "schemaVersion": 1, + "value": "Flux2KleinBaseModularPipeline" + }, + "Flux2KleinModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Flux 2 Klein Distilled", + "schemaVersion": 1, + "value": "Flux2KleinModularPipeline" + }, + "Flux2ModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Flux 2", + "schemaVersion": 1, + "value": "Flux2ModularPipeline" + }, + "Flux3DistilledModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "FLUX 3 Image Klein", + "schemaVersion": 1, + "value": "Flux3DistilledModularPipeline" + }, + "Flux3ModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "FLUX 3 Image Klein Base", + "schemaVersion": 1, + "value": "Flux3ModularPipeline" + }, + "FluxKontextModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Flux Kontext", + "schemaVersion": 1, + "value": "FluxKontextModularPipeline" + }, + "FluxModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Flux", + "schemaVersion": 1, + "value": "FluxModularPipeline" + }, + "HeliosModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Helios", + "schemaVersion": 1, + "value": "HeliosModularPipeline" + }, + "HeliosPyramidDistilledModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Helios Pyramid Distilled", + "schemaVersion": 1, + "value": "HeliosPyramidDistilledModularPipeline" + }, + "HeliosPyramidModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Helios Pyramid", + "schemaVersion": 1, + "value": "HeliosPyramidModularPipeline" + }, + "HunyuanVideo15ModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "HunyuanVideo 1.5", + "schemaVersion": 1, + "value": "HunyuanVideo15ModularPipeline" + }, + "Ideogram4ModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Ideogram 4 (Contract only)", + "schemaVersion": 1, + "value": "Ideogram4ModularPipeline" + }, + "Krea2ModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Krea 2 (Contract only)", + "schemaVersion": 1, + "value": "Krea2ModularPipeline" + }, + "Krea2TurboModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Krea 2 Turbo (Contract only)", + "schemaVersion": 1, + "value": "Krea2TurboModularPipeline" + }, + "LTX25ModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "LTX-2.5 (Contract only)", + "schemaVersion": 1, + "value": "LTX25ModularPipeline" + }, + "MiniMaxH3ModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "MiniMax H3", + "schemaVersion": 1, + "value": "MiniMaxH3ModularPipeline" + }, + "MiniMaxMusic3ModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "MiniMax Music 3", + "schemaVersion": 1, + "value": "MiniMaxMusic3ModularPipeline" + }, + "QwenImageEditModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Qwen-Image-Edit", + "schemaVersion": 1, + "value": "QwenImageEditModularPipeline" + }, + "QwenImageEditPlusModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Qwen-Image-Edit-2511", + "schemaVersion": 1, + "value": "QwenImageEditPlusModularPipeline" + }, + "QwenImageLayeredModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Qwen-Image-Layered", + "schemaVersion": 1, + "value": "QwenImageLayeredModularPipeline" + }, + "QwenImageModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Qwen-Image-2512", + "schemaVersion": 1, + "value": "QwenImageModularPipeline" + }, + "StableDiffusion3ModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Stable Diffusion 3 (Contract only)", + "schemaVersion": 1, + "value": "StableDiffusion3ModularPipeline" + }, + "StableDiffusionXLModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Stable Diffusion XL", + "schemaVersion": 1, + "value": "StableDiffusionXLModularPipeline" + }, + "WanAnimate2DistilledModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Wan Animate 2 Distilled", + "schemaVersion": 1, + "value": "WanAnimate2DistilledModularPipeline" + }, + "WanAnimate2ModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Wan Animate 2", + "schemaVersion": 1, + "value": "WanAnimate2ModularPipeline" + }, + "WanImage2VideoModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "WAN2 I2V", + "schemaVersion": 1, + "value": "WanImage2VideoModularPipeline" + }, + "WanModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "WAN2 T2V", + "schemaVersion": 1, + "value": "WanModularPipeline" + }, + "ZImageModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Z-Image", + "schemaVersion": 1, + "value": "ZImageModularPipeline" + } + }, + "type": "string", + "value": "Flux3ModularPipeline" + }, + "modiff_pipeline_identity": { + "hidden": true, + "label": "Custom Pipeline Identity", + "type": "object", + "value": null + }, + "offload_mode": { + "default": "model_cpu", + "label": "Offload Mode", + "options": [ + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "auto_cpu", + "schemaVersion": 1, + "value": "auto_cpu" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "none", + "schemaVersion": 1, + "value": "none" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "model_cpu", + "schemaVersion": 1, + "value": "model_cpu" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "group_cpu", + "schemaVersion": 1, + "value": "group_cpu" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "group_disk", + "schemaVersion": 1, + "value": "group_disk" + } + ], + "type": "string", + "value": "model_cpu" + }, + "pipeline_components": { + "connectionRole": "pipeline_components", + "display": "output", + "hidden": false, + "label": "Pipeline Components", + "signal": { + "direction": "output", + "origin": "modiff_pipeline_identity", + "value": "Flux3ModularPipeline" + }, + "type": "diffusers_modular_pipeline_components" + }, + "quant_config": { "display": "input", "label": "Quant Config", "type": "quant_config" }, + "refresh_pipeline_identity_button": { + "display": "ui_button", + "hidden": true, + "label": "Review and Refresh Custom Contract", + "onChange": "refresh_pipeline_identity", + "value": false + }, + "repo_id": { + "display": "modelselect", + "fieldOptions": { + "filter": { "hub": { "className": ["Flux3ModularPipeline"] } }, + "noValidation": true, + "sources": ["hub", "local"] + }, + "label": "Repository ID", + "onChange": "refresh_pipeline_identity", + "type": "string", + "value": { "source": "hub", "value": "black-forest-labs/flux-3-image-klein-base" } + }, + "reviewed_variant": { + "description": "Select an immutable, reviewed checkpoint for this exact Modular Diffusers pipeline family. Changing it does not replace the workflow graph or reset its parameters.", + "fieldOptions": { "controlTier": "essential" }, + "hidden": true, + "label": "Model", + "options": [ + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "black-forest-labs/flux-3-image-klein-base", + "schemaVersion": 1, + "value": "black-forest-labs/flux-3-image-klein-base" + } + ], + "type": "string", + "value": "black-forest-labs/flux-3-image-klein-base" + }, + "revision": { + "description": "Required exact 40-character commit hash for Hub custom contracts.", + "label": "Revision", + "onChange": "refresh_pipeline_identity", + "type": "string", + "value": "1469d27cfb9bb1bd81d3a93f5a023b39dbf136e4" + }, + "scheduler": { + "connectionRole": "scheduler", + "display": "output", + "hidden": false, + "label": "Scheduler", + "signal": { + "direction": "output", + "origin": "modiff_pipeline_identity", + "value": "Flux3ModularPipeline" + }, + "type": "diffusers_auto_model" + }, + "text_encoders": { + "connectionRole": "text_encoders", + "display": "output", + "hidden": false, + "label": "Text Encoders", + "signal": { + "direction": "output", + "origin": "modiff_pipeline_identity", + "value": "Flux3ModularPipeline" + }, + "type": "diffusers_auto_models" + }, + "trust_remote_code": { + "description": "Repository code execution is disabled; keep this off for contract preview.", + "label": "Trust Remote Code", + "onChange": "refresh_pipeline_identity", + "type": "boolean", + "value": false + }, + "unet": { "display": "input", "hidden": false, "label": "Denoise Model", "type": "diffusers_auto_model" }, + "unet_out": { + "connectionRole": "denoiser", + "display": "output", + "hidden": false, + "label": "Denoise Model", + "signal": { + "direction": "output", + "origin": "modiff_pipeline_identity", + "value": "Flux3ModularPipeline" + }, + "type": "diffusers_auto_model" + }, + "vae": { "display": "input", "hidden": false, "label": "VAE", "type": "diffusers_auto_model" }, + "vae_out": { + "connectionRole": "vae", + "display": "output", + "hidden": false, + "label": "VAE", + "signal": { + "direction": "output", + "origin": "modiff_pipeline_identity", + "value": "Flux3ModularPipeline" + }, + "type": "diffusers_auto_model" + }, + "vae_slicing": { + "default": null, + "description": "An unset policy preserves the native VAE configuration; templates may bind an explicit boolean.", + "hidden": true, + "label": "VAE Slicing", + "type": "boolean" + }, + "vae_tiling": { + "default": null, + "description": "An unset policy preserves the native VAE configuration; templates may bind an explicit boolean.", + "hidden": true, + "label": "VAE Tiling", + "type": "boolean" + }, + "weight_format": { + "default": "native", + "description": "Select a backend-declared immutable component format. Missing reviewed files must be installed through Model Manager.", + "fieldOptions": { "controlTier": "advanced" }, + "hidden": false, + "label": "Weight Format", + "options": [ + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "native", + "schemaVersion": 1, + "value": "native" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "fp8r", + "schemaVersion": 1, + "value": "fp8r" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "nvfp4", + "schemaVersion": 1, + "value": "nvfp4" + } + ], + "type": "string" + }, + "weight_loading_mode": { + "default": "cpu", + "description": "Load weights on CPU or CUDA before disk offload. CUDA loading needs room for a complete component and is available only for supported models.", + "fieldOptions": { "controlTier": "advanced" }, + "label": "Weight Loading", + "options": [ + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "cpu", + "schemaVersion": 1, + "value": "cpu" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "cuda", + "schemaVersion": 1, + "value": "cuda" + } + ], + "type": "string" + }, + "workflow_id": { + "description": "Exact reviewed component partition selected by a first-party Cluster Node.", + "hidden": true, + "label": "Reviewed Workflow", + "type": "string", + "value": "text2image" + } + }, + "resizable": true, + "skipParamsCheck": true, + "style": {}, + "time": [0, 0, 0], + "type": "custom" + }, + "operation": { + "binding": { "pipelineClass": "Flux3ModularPipeline", "values": { "model_type": "Flux3ModularPipeline" } }, + "blockName": null, + "decomposition": "loader", + "nodeKey": "modules.ModularDiffusers.ModelsLoader", + "nodeType": "loader", + "operationId": "diffusion.load_models", + "pipelineClass": "Flux3ModularPipeline", + "ports": [ + { + "direction": "input", + "hidden": false, + "name": "model_type", + "required": false, + "roles": ["value"], + "semanticName": "model_type", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": false, + "name": "repo_id", + "required": false, + "roles": ["value"], + "semanticName": "repo_id", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": true, + "name": "reviewed_variant", + "required": false, + "roles": ["value"], + "semanticName": "reviewed_variant", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": false, + "name": "device", + "required": false, + "roles": ["value"], + "semanticName": "device", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": false, + "name": "attention_backend", + "required": false, + "roles": ["value"], + "semanticName": "attention_backend", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": true, + "name": "vae_slicing", + "required": false, + "roles": ["value"], + "semanticName": "vae_slicing", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["boolean"] + }, + { + "direction": "input", + "hidden": true, + "name": "vae_tiling", + "required": false, + "roles": ["value"], + "semanticName": "vae_tiling", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["boolean"] + }, + { + "direction": "input", + "hidden": true, + "name": "inpaint_compatibility", + "required": false, + "roles": ["value"], + "semanticName": "inpaint_compatibility", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": false, + "name": "trust_remote_code", + "required": false, + "roles": ["value"], + "semanticName": "trust_remote_code", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["boolean"] + }, + { + "direction": "input", + "hidden": false, + "name": "revision", + "required": false, + "roles": ["value"], + "semanticName": "revision", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": true, + "name": "workflow_id", + "required": false, + "roles": ["value"], + "semanticName": "workflow_id", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": true, + "name": "modiff_pipeline_identity", + "required": false, + "roles": ["value"], + "semanticName": "modiff_pipeline_identity", + "semantics": { + "kind": "opaque", + "members": [], + "owner": "none", + "scope": "Flux3ModularPipeline", + "state": null + }, + "types": ["object"] + }, + { + "direction": "input", + "hidden": false, + "name": "auto_offload", + "required": false, + "roles": ["value"], + "semanticName": "auto_offload", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["boolean"] + }, + { + "direction": "input", + "hidden": false, + "name": "offload_mode", + "required": false, + "roles": ["value"], + "semanticName": "offload_mode", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": false, + "name": "weight_loading_mode", + "required": false, + "roles": ["value"], + "semanticName": "weight_loading_mode", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": true, + "name": "weight_format", + "required": false, + "roles": ["value"], + "semanticName": "weight_format", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": false, + "name": "unet", + "required": false, + "roles": ["component"], + "semanticName": "unet", + "semantics": { + "kind": "component", + "members": [ + { + "name": "transformer", + "type": "diffusers.models.transformers.transformer_flux3.Flux3Transformer2DModel" + } + ], + "owner": "same_loader", + "scope": "Flux3ModularPipeline", + "state": null + }, + "types": ["diffusers_auto_model"] + }, + { + "direction": "input", + "hidden": false, + "name": "vae", + "required": false, + "roles": ["component"], + "semanticName": "vae", + "semantics": { + "kind": "component", + "members": [ + { "name": "vae", "type": "diffusers.models.autoencoders.autoencoder_kl_flux2.AutoencoderKLFlux2" } + ], + "owner": "same_loader", + "scope": "Flux3ModularPipeline", + "state": null + }, + "types": ["diffusers_auto_model"] + }, + { + "direction": "input", + "hidden": true, + "name": "controlnet", + "required": false, + "roles": ["component"], + "semanticName": "controlnet", + "semantics": { + "kind": "component", + "members": [], + "owner": "same_loader", + "scope": "Flux3ModularPipeline", + "state": null + }, + "types": ["diffusers_auto_model"] + }, + { + "direction": "input", + "hidden": false, + "name": "lora_list", + "required": false, + "roles": ["value"], + "semanticName": "lora_list", + "semantics": { + "kind": "opaque", + "members": [], + "owner": "none", + "scope": "Flux3ModularPipeline", + "state": null + }, + "types": ["custom_lora"] + }, + { + "direction": "output", + "hidden": false, + "name": "text_encoders", + "required": false, + "roles": ["component"], + "semanticName": "text_encoders", + "semantics": { + "kind": "component", + "members": [ + { + "name": "text_encoder", + "type": "transformers.models.qwen3_vl.modeling_qwen3_vl.Qwen3VLForConditionalGeneration" + }, + { "name": "tokenizer", "type": "transformers.models.auto.processing_auto.AutoProcessor" } + ], + "owner": "same_loader", + "scope": "Flux3ModularPipeline", + "state": null + }, + "types": ["diffusers_auto_models"] + }, + { + "direction": "output", + "hidden": false, + "name": "unet_out", + "required": false, + "roles": ["component"], + "semanticName": "unet_out", + "semantics": { + "kind": "component", + "members": [ + { + "name": "transformer", + "type": "diffusers.models.transformers.transformer_flux3.Flux3Transformer2DModel" + } + ], + "owner": "same_loader", + "scope": "Flux3ModularPipeline", + "state": null + }, + "types": ["diffusers_auto_model"] + }, + { + "direction": "output", + "hidden": false, + "name": "vae_out", + "required": false, + "roles": ["component"], + "semanticName": "vae_out", + "semantics": { + "kind": "component", + "members": [ + { "name": "vae", "type": "diffusers.models.autoencoders.autoencoder_kl_flux2.AutoencoderKLFlux2" } + ], + "owner": "same_loader", + "scope": "Flux3ModularPipeline", + "state": null + }, + "types": ["diffusers_auto_model"] + }, + { + "direction": "output", + "hidden": false, + "name": "scheduler", + "required": false, + "roles": ["component"], + "semanticName": "scheduler", + "semantics": { + "kind": "component", + "members": [ + { + "name": "scheduler", + "type": "diffusers.schedulers.scheduling_flow_match_euler_discrete.FlowMatchEulerDiscreteScheduler" + } + ], + "owner": "same_loader", + "scope": "Flux3ModularPipeline", + "state": null + }, + "types": ["diffusers_auto_model"] + }, + { + "direction": "output", + "hidden": true, + "name": "image_encoder", + "required": false, + "roles": ["component"], + "semanticName": "image_encoder", + "semantics": { + "kind": "component", + "members": [], + "owner": "same_loader", + "scope": "Flux3ModularPipeline", + "state": null + }, + "types": ["diffusers_auto_model"] + }, + { + "direction": "output", + "hidden": false, + "name": "pipeline_components", + "required": false, + "roles": ["component"], + "semanticName": "pipeline_components", + "semantics": { + "kind": "component", + "members": [ + { "name": "guider", "type": "diffusers.guiders.classifier_free_guidance.ClassifierFreeGuidance" }, + { + "name": "image_processor", + "type": "diffusers.modular_pipelines.flux3.image_processor.Flux3ImageProcessor" + }, + { + "name": "scheduler", + "type": "diffusers.schedulers.scheduling_flow_match_euler_discrete.FlowMatchEulerDiscreteScheduler" + }, + { + "name": "text_encoder", + "type": "transformers.models.qwen3_vl.modeling_qwen3_vl.Qwen3VLForConditionalGeneration" + }, + { "name": "tokenizer", "type": "transformers.models.auto.processing_auto.AutoProcessor" }, + { + "name": "transformer", + "type": "diffusers.models.transformers.transformer_flux3.Flux3Transformer2DModel" + }, + { "name": "vae", "type": "diffusers.models.autoencoders.autoencoder_kl_flux2.AutoencoderKLFlux2" } + ], + "owner": "same_loader", + "scope": "Flux3ModularPipeline", + "state": null + }, + "types": ["diffusers_modular_pipeline_components"] + }, + { + "direction": "input", + "hidden": false, + "name": "quant_config", + "required": false, + "roles": ["value"], + "semanticName": "quant_config", + "semantics": { + "kind": "opaque", + "members": [], + "owner": "none", + "scope": "Flux3ModularPipeline", + "state": null + }, + "types": ["quant_config"] + } + ], + "support": "declared", + "task": "text_to_image", + "workflowId": "text2image" + } + }, + { + "node": { + "action": "Guider", + "cache": false, + "category": "sampler", + "description": "", + "label": "Guidance", + "memory": [0, 0, 0], + "module": "modules.ModularDiffusers", + "params": { + "enabled": { "label": "Enabled", "type": "boolean", "value": true }, + "guidance_rescale": { + "display": "slider", + "label": "Guidance Rescale", + "max": 10.0, + "min": 0.0, + "step": 0.1, + "type": "float", + "value": 0.0 + }, + "guidance_scale": { + "display": "slider", + "label": "Guidance Scale", + "max": 20.0, + "min": 1.0, + "step": 0.1, + "type": "float", + "value": 3.5 + }, + "guider": { + "fieldOptions": { "loading": true }, + "label": "Guider", + "onChange": [ + "updateNode", + { + "AutoGuidance": ["layers_config"], + "PerturbedAttentionGuidance": ["layers_config"], + "SkipLayerGuidance": ["layers_config"], + "SmoothedEnergyGuidance": ["layers_config"] + } + ], + "options": [ + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "ClassifierFreeGuidance", + "schemaVersion": 1, + "value": "ClassifierFreeGuidance" + } + ], + "type": "string", + "value": "ClassifierFreeGuidance" + }, + "guider_out": { + "display": "output", + "label": "Guider", + "onSignal": [ + { "action": "value", "target": "model_type" }, + { + "action": "value", + "data": { + "Flux2KleinBaseModularPipeline": ["ClassifierFreeGuidance"], + "Flux3ModularPipeline": ["ClassifierFreeGuidance"], + "FluxKontextModularPipeline": ["ClassifierFreeGuidance"], + "FluxModularPipeline": ["ClassifierFreeGuidance"], + "QwenImageEditModularPipeline": [ + "ClassifierFreeGuidance", + "SkipLayerGuidance", + "AdaptiveProjectedGuidance", + "AdaptiveProjectedMixGuidance", + "MagnitudeAwareGuidance", + "ClassifierFreeZeroStarGuidance", + "AutoGuidance", + "SmoothedEnergyGuidance", + "PerturbedAttentionGuidance", + "TangentialClassifierFreeGuidance", + "FrequencyDecoupledGuidance" + ], + "QwenImageEditPlusModularPipeline": [ + "ClassifierFreeGuidance", + "SkipLayerGuidance", + "AdaptiveProjectedGuidance", + "AdaptiveProjectedMixGuidance", + "MagnitudeAwareGuidance", + "ClassifierFreeZeroStarGuidance", + "AutoGuidance", + "SmoothedEnergyGuidance", + "PerturbedAttentionGuidance", + "TangentialClassifierFreeGuidance", + "FrequencyDecoupledGuidance" + ], + "QwenImageLayeredModularPipeline": [ + "ClassifierFreeGuidance", + "AdaptiveProjectedGuidance", + "AdaptiveProjectedMixGuidance", + "MagnitudeAwareGuidance", + "ClassifierFreeZeroStarGuidance", + "TangentialClassifierFreeGuidance", + "FrequencyDecoupledGuidance" + ], + "QwenImageModularPipeline": [ + "ClassifierFreeGuidance", + "SkipLayerGuidance", + "AdaptiveProjectedGuidance", + "AdaptiveProjectedMixGuidance", + "MagnitudeAwareGuidance", + "ClassifierFreeZeroStarGuidance", + "AutoGuidance", + "SmoothedEnergyGuidance", + "PerturbedAttentionGuidance", + "TangentialClassifierFreeGuidance", + "FrequencyDecoupledGuidance" + ], + "StableDiffusionXLModularPipeline": [ + "ClassifierFreeGuidance", + "SkipLayerGuidance", + "AdaptiveProjectedGuidance", + "AdaptiveProjectedMixGuidance", + "MagnitudeAwareGuidance", + "ClassifierFreeZeroStarGuidance", + "AutoGuidance", + "SmoothedEnergyGuidance", + "PerturbedAttentionGuidance", + "TangentialClassifierFreeGuidance", + "FrequencyDecoupledGuidance" + ], + "WanImage2VideoModularPipeline": [ + "ClassifierFreeGuidance", + "AdaptiveProjectedGuidance", + "AdaptiveProjectedMixGuidance", + "MagnitudeAwareGuidance", + "ClassifierFreeZeroStarGuidance", + "TangentialClassifierFreeGuidance", + "FrequencyDecoupledGuidance" + ], + "WanModularPipeline": [ + "ClassifierFreeGuidance", + "AdaptiveProjectedGuidance", + "AdaptiveProjectedMixGuidance", + "MagnitudeAwareGuidance", + "ClassifierFreeZeroStarGuidance", + "TangentialClassifierFreeGuidance", + "FrequencyDecoupledGuidance" + ], + "ZImageModularPipeline": [ + "ClassifierFreeGuidance", + "AdaptiveProjectedGuidance", + "AdaptiveProjectedMixGuidance", + "MagnitudeAwareGuidance", + "ClassifierFreeZeroStarGuidance", + "TangentialClassifierFreeGuidance", + "FrequencyDecoupledGuidance" + ] + }, + "prop": "options", + "target": "guider" + }, + { "action": "signal", "target": "layers_config" } + ], + "signalCompatibility": { + "values": { + "Flux2KleinBaseModularPipeline": ["ClassifierFreeGuidance"], + "Flux3ModularPipeline": ["ClassifierFreeGuidance"], + "FluxKontextModularPipeline": ["ClassifierFreeGuidance"], + "FluxModularPipeline": ["ClassifierFreeGuidance"], + "QwenImageEditModularPipeline": [ + "ClassifierFreeGuidance", + "SkipLayerGuidance", + "AdaptiveProjectedGuidance", + "AdaptiveProjectedMixGuidance", + "MagnitudeAwareGuidance", + "ClassifierFreeZeroStarGuidance", + "AutoGuidance", + "SmoothedEnergyGuidance", + "PerturbedAttentionGuidance", + "TangentialClassifierFreeGuidance", + "FrequencyDecoupledGuidance" + ], + "QwenImageEditPlusModularPipeline": [ + "ClassifierFreeGuidance", + "SkipLayerGuidance", + "AdaptiveProjectedGuidance", + "AdaptiveProjectedMixGuidance", + "MagnitudeAwareGuidance", + "ClassifierFreeZeroStarGuidance", + "AutoGuidance", + "SmoothedEnergyGuidance", + "PerturbedAttentionGuidance", + "TangentialClassifierFreeGuidance", + "FrequencyDecoupledGuidance" + ], + "QwenImageLayeredModularPipeline": [ + "ClassifierFreeGuidance", + "AdaptiveProjectedGuidance", + "AdaptiveProjectedMixGuidance", + "MagnitudeAwareGuidance", + "ClassifierFreeZeroStarGuidance", + "TangentialClassifierFreeGuidance", + "FrequencyDecoupledGuidance" + ], + "QwenImageModularPipeline": [ + "ClassifierFreeGuidance", + "SkipLayerGuidance", + "AdaptiveProjectedGuidance", + "AdaptiveProjectedMixGuidance", + "MagnitudeAwareGuidance", + "ClassifierFreeZeroStarGuidance", + "AutoGuidance", + "SmoothedEnergyGuidance", + "PerturbedAttentionGuidance", + "TangentialClassifierFreeGuidance", + "FrequencyDecoupledGuidance" + ], + "StableDiffusionXLModularPipeline": [ + "ClassifierFreeGuidance", + "SkipLayerGuidance", + "AdaptiveProjectedGuidance", + "AdaptiveProjectedMixGuidance", + "MagnitudeAwareGuidance", + "ClassifierFreeZeroStarGuidance", + "AutoGuidance", + "SmoothedEnergyGuidance", + "PerturbedAttentionGuidance", + "TangentialClassifierFreeGuidance", + "FrequencyDecoupledGuidance" + ], + "WanImage2VideoModularPipeline": [ + "ClassifierFreeGuidance", + "AdaptiveProjectedGuidance", + "AdaptiveProjectedMixGuidance", + "MagnitudeAwareGuidance", + "ClassifierFreeZeroStarGuidance", + "TangentialClassifierFreeGuidance", + "FrequencyDecoupledGuidance" + ], + "WanModularPipeline": [ + "ClassifierFreeGuidance", + "AdaptiveProjectedGuidance", + "AdaptiveProjectedMixGuidance", + "MagnitudeAwareGuidance", + "ClassifierFreeZeroStarGuidance", + "TangentialClassifierFreeGuidance", + "FrequencyDecoupledGuidance" + ], + "ZImageModularPipeline": [ + "ClassifierFreeGuidance", + "AdaptiveProjectedGuidance", + "AdaptiveProjectedMixGuidance", + "MagnitudeAwareGuidance", + "ClassifierFreeZeroStarGuidance", + "TangentialClassifierFreeGuidance", + "FrequencyDecoupledGuidance" + ] + } + }, + "type": "custom_guider" + }, + "layers_config": { "display": "input", "label": "Layers", "type": "layers_config" }, + "model_type": { "default": "", "hidden": true, "type": "string", "value": "Flux3ModularPipeline" }, + "start": { + "display": "slider", + "label": "Start", + "max": 1.0, + "min": 0.0, + "step": 0.01, + "type": "float", + "value": 0.0 + }, + "stop": { + "display": "slider", + "label": "Stop", + "max": 1.0, + "min": 0.01, + "step": 0.01, + "type": "float", + "value": 1.0 + }, + "use_original_formulation": { "label": "Original Formulation", "type": "boolean", "value": false } + }, + "resizable": true, + "skipParamsCheck": true, + "style": {}, + "time": [0, 0, 0], + "type": "custom" + }, + "operation": { + "binding": { "pipelineClass": "Flux3ModularPipeline", "values": { "model_type": "Flux3ModularPipeline" } }, + "blockName": null, + "decomposition": "bundle", + "nodeKey": "modules.ModularDiffusers.Guider", + "nodeType": "guidance", + "operationId": "diffusion.guidance", + "pipelineClass": "Flux3ModularPipeline", + "ports": [ + { + "direction": "input", + "hidden": true, + "name": "model_type", + "required": false, + "roles": ["value"], + "semanticName": "model_type", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": false, + "name": "guider", + "required": false, + "roles": ["value"], + "semanticName": "guider", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": false, + "name": "guidance_scale", + "required": false, + "roles": ["value"], + "semanticName": "guidance_scale", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["float"] + }, + { + "direction": "input", + "hidden": false, + "name": "guidance_rescale", + "required": false, + "roles": ["value"], + "semanticName": "guidance_rescale", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["float"] + }, + { + "direction": "input", + "hidden": false, + "name": "use_original_formulation", + "required": false, + "roles": ["value"], + "semanticName": "use_original_formulation", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["boolean"] + }, + { + "direction": "input", + "hidden": false, + "name": "enabled", + "required": false, + "roles": ["value"], + "semanticName": "enabled", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["boolean"] + }, + { + "direction": "input", + "hidden": false, + "name": "start", + "required": false, + "roles": ["value"], + "semanticName": "start", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["float"] + }, + { + "direction": "input", + "hidden": false, + "name": "stop", + "required": false, + "roles": ["value"], + "semanticName": "stop", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["float"] + }, + { + "direction": "output", + "hidden": false, + "name": "guider_out", + "required": false, + "roles": ["component"], + "semanticName": "guider_out", + "semantics": { + "kind": "component", + "members": [], + "owner": "same_loader", + "scope": "Flux3ModularPipeline", + "state": null + }, + "types": ["custom_guider"] + }, + { + "direction": "input", + "hidden": false, + "name": "layers_config", + "required": false, + "roles": ["value"], + "semanticName": "layers_config", + "semantics": { + "kind": "opaque", + "members": [], + "owner": "none", + "scope": "Flux3ModularPipeline", + "state": null + }, + "types": ["layers_config"] + } + ], + "support": "declared", + "task": "text_to_image", + "workflowId": "text2image" + } + }, + { + "node": { + "action": "EncodePrompt", + "cache": false, + "category": "embedding", + "description": "", + "label": "Encode Prompt", + "memory": [0, 0, 0], + "module": "modules.ModularDiffusers", + "params": { + "doc": { "display": "output", "label": "Doc", "type": "string" }, + "embeddings": { "display": "output", "label": "Text Embeddings", "type": "embeddings" }, + "guider": { + "description": "Shared Diffusers guidance used by prompt encoding and denoising when the selected pipeline supports it.", + "display": "input", + "hidden": true, + "label": "Guider", + "type": "custom_guider" + }, + "layout_conditioning": { + "default": null, + "display": "layout", + "fieldOptions": { + "layoutConditioning": { + "schemaVersion": 2, + "sourceRegions": false, + "supportsBoundSourceRegions": true + } + }, + "label": "Layout Conditioning", + "type": "layout_conditioning" + }, + "layout_reference_summary": { + "description": "Display-only ordered reference identities and actual preprocessing sizes from the current encoder cache.", + "display": "output", + "hidden": true, + "label": "Bound Reference Summary", + "type": "string" + }, + "max_sequence_length": { + "default": 8192, + "label": "Maximum Sequence Length", + "max": 8192, + "min": 1, + "step": 1, + "type": "int" + }, + "negative_prompt": { "default": "", "display": "textarea", "label": "Negative Prompt", "type": "string" }, + "prompt": { + "default": "", + "display": "textarea", + "fieldOptions": { "exampleAttribution": "MoDiff task example" }, + "label": "Prompt *", + "type": "string", + "value": "A red ceramic teapot on a wooden table beside a window, soft morning light, detailed photograph." + }, + "prompt_input": { + "description": "Optional connected prompt. When connected, this replaces the inline Prompt value.", + "display": "input", + "label": "Prompt Input", + "type": "string" + }, + "reference_binding": { + "default": null, + "display": "input", + "fieldOptions": { "referenceBinding": { "maxReferences": 10, "schemaVersion": 1 } }, + "label": "Reference Binding", + "type": "reference_conditioning" + }, + "text_encoder_out_layers": { + "default": [4, 8, 12, 16, 20, 24, 28, 32], + "display": "select", + "fieldOptions": { "multiple": true, "tupleLength": 8, "tupleValue": true }, + "label": "Text Encoder Layers", + "options": [ + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "0", + "schemaVersion": 1, + "value": "0" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "1", + "schemaVersion": 1, + "value": "1" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "2", + "schemaVersion": 1, + "value": "2" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "3", + "schemaVersion": 1, + "value": "3" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "4", + "schemaVersion": 1, + "value": "4" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "5", + "schemaVersion": 1, + "value": "5" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "6", + "schemaVersion": 1, + "value": "6" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "7", + "schemaVersion": 1, + "value": "7" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "8", + "schemaVersion": 1, + "value": "8" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "9", + "schemaVersion": 1, + "value": "9" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "10", + "schemaVersion": 1, + "value": "10" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "11", + "schemaVersion": 1, + "value": "11" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "12", + "schemaVersion": 1, + "value": "12" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "13", + "schemaVersion": 1, + "value": "13" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "14", + "schemaVersion": 1, + "value": "14" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "15", + "schemaVersion": 1, + "value": "15" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "16", + "schemaVersion": 1, + "value": "16" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "17", + "schemaVersion": 1, + "value": "17" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "18", + "schemaVersion": 1, + "value": "18" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "19", + "schemaVersion": 1, + "value": "19" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "20", + "schemaVersion": 1, + "value": "20" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "21", + "schemaVersion": 1, + "value": "21" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "22", + "schemaVersion": 1, + "value": "22" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "23", + "schemaVersion": 1, + "value": "23" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "24", + "schemaVersion": 1, + "value": "24" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "25", + "schemaVersion": 1, + "value": "25" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "26", + "schemaVersion": 1, + "value": "26" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "27", + "schemaVersion": 1, + "value": "27" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "28", + "schemaVersion": 1, + "value": "28" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "29", + "schemaVersion": 1, + "value": "29" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "30", + "schemaVersion": 1, + "value": "30" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "31", + "schemaVersion": 1, + "value": "31" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "32", + "schemaVersion": 1, + "value": "32" + } + ], + "type": "int" + }, + "text_encoders": { + "display": "input", + "label": "Text Encoders *", + "onSignal": "update_node", + "required": true, + "signalCompatibility": { "role": "text_encoders" }, + "type": "diffusers_auto_models" + } + }, + "resizable": true, + "skipParamsCheck": true, + "style": {}, + "time": [0, 0, 0], + "type": "custom" + }, + "operation": { + "binding": { "pipelineClass": "Flux3ModularPipeline", "values": {} }, + "blockName": "text_encoder", + "decomposition": "block", + "nodeKey": "modules.ModularDiffusers.EncodePrompt", + "nodeType": "text_encoder", + "operationId": "diffusion.encode_prompt", + "pipelineClass": "Flux3ModularPipeline", + "ports": [ + { + "direction": "input", + "hidden": false, + "name": "prompt", + "required": true, + "roles": ["value"], + "semanticName": "prompt", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": false, + "name": "negative_prompt", + "required": false, + "roles": ["value"], + "semanticName": "negative_prompt", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": false, + "name": "max_sequence_length", + "required": false, + "roles": ["value"], + "semanticName": "max_sequence_length", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["int"] + }, + { + "direction": "input", + "hidden": false, + "name": "text_encoder_out_layers", + "required": false, + "roles": ["value"], + "semanticName": "text_encoder_out_layers", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["int"] + }, + { + "direction": "input", + "hidden": false, + "name": "text_encoders", + "required": true, + "roles": ["component"], + "semanticName": "text_encoders", + "semantics": { + "kind": "component", + "members": [ + { + "name": "text_encoder", + "type": "transformers.models.qwen3_vl.modeling_qwen3_vl.Qwen3VLForConditionalGeneration" + }, + { "name": "tokenizer", "type": "transformers.models.auto.processing_auto.AutoProcessor" } + ], + "owner": "same_loader", + "scope": "Flux3ModularPipeline", + "state": null + }, + "types": ["diffusers_auto_models"] + }, + { + "direction": "output", + "hidden": false, + "name": "embeddings", + "required": false, + "roles": ["value"], + "semanticName": "embeddings", + "semantics": { + "kind": "conditioning", + "members": [], + "owner": "same_loader", + "scope": "Flux3ModularPipeline", + "state": null + }, + "types": ["embeddings"] + }, + { + "direction": "output", + "hidden": false, + "name": "doc", + "required": false, + "roles": ["value"], + "semanticName": "doc", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": false, + "name": "layout_conditioning", + "required": false, + "roles": ["value"], + "semanticName": "layout_conditioning", + "semantics": { + "kind": "opaque", + "members": [], + "owner": "none", + "scope": "Flux3ModularPipeline", + "state": null + }, + "types": ["layout_conditioning"] + }, + { + "direction": "input", + "hidden": false, + "name": "reference_binding", + "required": false, + "roles": ["value"], + "semanticName": "reference_binding", + "semantics": { + "kind": "opaque", + "members": [], + "owner": "none", + "scope": "Flux3ModularPipeline", + "state": null + }, + "types": ["reference_conditioning"] + }, + { + "direction": "input", + "hidden": false, + "name": "prompt_input", + "required": false, + "roles": ["value"], + "semanticName": "prompt", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + } + ], + "support": "declared", + "task": "text_to_image", + "workflowId": "text2image" + } + }, + { + "node": { + "action": "Denoise", + "cache": false, + "category": "sampler", + "description": "", + "label": "Denoise", + "memory": [0, 0, 0], + "module": "modules.ModularDiffusers", + "params": { + "doc": { "display": "output", "label": "Doc", "type": "string" }, + "embeddings": { "display": "input", "label": "Text Embeddings *", "type": "embeddings" }, + "guider": { "display": "input", "label": "Guider", "type": "custom_guider" }, + "height": { "default": 1024, "label": "Height", "min": 64, "step": 16, "type": "int", "value": 1024 }, + "image_cond_latents": { "display": "input", "label": "Reference Latents", "type": "latents" }, + "latents": { "display": "output", "label": "Latents", "type": "latents" }, + "num_images_per_prompt": { + "default": 1, + "label": "Images Per Prompt", + "max": 8, + "min": 1, + "step": 1, + "type": "int" + }, + "num_inference_steps": { + "default": 50, + "display": "slider", + "label": "Steps", + "max": 100, + "min": 1, + "type": "int", + "value": 50 + }, + "reference_binding": { + "default": null, + "display": "input", + "fieldOptions": { "referenceBinding": { "maxReferences": 10, "schemaVersion": 1 } }, + "label": "Reference Binding", + "type": "reference_conditioning" + }, + "scheduler": { + "display": "input", + "label": "Scheduler *", + "signalCompatibility": { "role": "scheduler" }, + "type": "diffusers_auto_model" + }, + "seed": { + "default": 0, + "display": "random", + "label": "Seed", + "max": 4294967295, + "min": 0, + "type": "int" + }, + "unet": { + "display": "input", + "label": "Denoise Model *", + "onSignal": [ + "update_node", + { "action": "signal", "target": "guider" }, + { "action": "signal", "target": "controlnet_bundle" } + ], + "required": true, + "signalCompatibility": { "role": "denoiser" }, + "type": "diffusers_auto_model" + }, + "width": { "default": 1024, "label": "Width", "min": 64, "step": 16, "type": "int", "value": 1024 } + }, + "resizable": true, + "skipParamsCheck": true, + "style": {}, + "time": [0, 0, 0], + "type": "custom" + }, + "operation": { + "binding": { "pipelineClass": "Flux3ModularPipeline", "values": {} }, + "blockName": "denoise", + "decomposition": "block", + "nodeKey": "modules.ModularDiffusers.Denoise", + "nodeType": "denoise", + "operationId": "diffusion.denoise", + "pipelineClass": "Flux3ModularPipeline", + "ports": [ + { + "direction": "input", + "hidden": false, + "name": "embeddings", + "required": true, + "roles": ["value"], + "semanticName": "embeddings", + "semantics": { + "kind": "conditioning", + "members": [], + "owner": "same_loader", + "scope": "Flux3ModularPipeline", + "state": null + }, + "types": ["embeddings"] + }, + { + "direction": "input", + "hidden": false, + "name": "width", + "required": false, + "roles": ["value"], + "semanticName": "width", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["int"] + }, + { + "direction": "input", + "hidden": false, + "name": "height", + "required": false, + "roles": ["value"], + "semanticName": "height", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["int"] + }, + { + "direction": "input", + "hidden": false, + "name": "seed", + "required": false, + "roles": ["value"], + "semanticName": "seed", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["int"] + }, + { + "direction": "input", + "hidden": false, + "name": "num_inference_steps", + "required": false, + "roles": ["value"], + "semanticName": "num_inference_steps", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["int"] + }, + { + "direction": "input", + "hidden": false, + "name": "num_images_per_prompt", + "required": false, + "roles": ["value"], + "semanticName": "num_images_per_prompt", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["int"] + }, + { + "direction": "input", + "hidden": false, + "name": "image_cond_latents", + "required": false, + "roles": ["value"], + "semanticName": "image_cond_latents", + "semantics": { + "kind": "latents", + "members": [], + "owner": "same_loader", + "scope": "Flux3ModularPipeline", + "state": null + }, + "types": ["latents"] + }, + { + "direction": "input", + "hidden": false, + "name": "unet", + "required": true, + "roles": ["component"], + "semanticName": "unet", + "semantics": { + "kind": "component", + "members": [ + { + "name": "transformer", + "type": "diffusers.models.transformers.transformer_flux3.Flux3Transformer2DModel" + } + ], + "owner": "same_loader", + "scope": "Flux3ModularPipeline", + "state": null + }, + "types": ["diffusers_auto_model"] + }, + { + "direction": "input", + "hidden": false, + "name": "scheduler", + "required": true, + "roles": ["component"], + "semanticName": "scheduler", + "semantics": { + "kind": "component", + "members": [ + { + "name": "scheduler", + "type": "diffusers.schedulers.scheduling_flow_match_euler_discrete.FlowMatchEulerDiscreteScheduler" + } + ], + "owner": "same_loader", + "scope": "Flux3ModularPipeline", + "state": null + }, + "types": ["diffusers_auto_model"] + }, + { + "direction": "input", + "hidden": false, + "name": "guider", + "required": false, + "roles": ["component"], + "semanticName": "guider", + "semantics": { + "kind": "component", + "members": [ + { "name": "guider", "type": "diffusers.guiders.classifier_free_guidance.ClassifierFreeGuidance" } + ], + "owner": "same_loader", + "scope": "Flux3ModularPipeline", + "state": null + }, + "types": ["custom_guider"] + }, + { + "direction": "output", + "hidden": false, + "name": "latents", + "required": false, + "roles": ["value"], + "semanticName": "latents", + "semantics": { + "kind": "latents", + "members": [], + "owner": "same_loader", + "scope": "Flux3ModularPipeline", + "state": null + }, + "types": ["latents"] + }, + { + "direction": "output", + "hidden": false, + "name": "doc", + "required": false, + "roles": ["value"], + "semanticName": "doc", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": false, + "name": "reference_binding", + "required": false, + "roles": ["value"], + "semanticName": "reference_binding", + "semantics": { + "kind": "opaque", + "members": [], + "owner": "none", + "scope": "Flux3ModularPipeline", + "state": null + }, + "types": ["reference_conditioning"] + } + ], + "support": "declared", + "task": "text_to_image", + "workflowId": "text2image" + } + }, + { + "node": { + "action": "DecodeLatents", + "cache": false, + "category": "sampler", + "description": "", + "label": "Decode Latents", + "memory": [0, 0, 0], + "module": "modules.ModularDiffusers", + "params": { + "doc": { "display": "output", "label": "Doc", "type": "string" }, + "images": { "display": "output", "label": "Images", "type": "image" }, + "latents": { "display": "input", "label": "Latents *", "type": "latents" }, + "vae": { + "display": "input", + "label": "VAE *", + "onSignal": "update_node", + "signalCompatibility": { "role": "vae" }, + "type": "diffusers_auto_model" + } + }, + "resizable": true, + "skipParamsCheck": true, + "style": {}, + "time": [0, 0, 0], + "type": "custom" + }, + "operation": { + "binding": { "pipelineClass": "Flux3ModularPipeline", "values": {} }, + "blockName": "decode", + "decomposition": "block", + "nodeKey": "modules.ModularDiffusers.DecodeLatents", + "nodeType": "decoder", + "operationId": "diffusion.decode_latents", + "pipelineClass": "Flux3ModularPipeline", + "ports": [ + { + "direction": "input", + "hidden": false, + "name": "latents", + "required": true, + "roles": ["value"], + "semanticName": "latents", + "semantics": { + "kind": "latents", + "members": [], + "owner": "same_loader", + "scope": "Flux3ModularPipeline", + "state": null + }, + "types": ["latents"] + }, + { + "direction": "input", + "hidden": false, + "name": "vae", + "required": true, + "roles": ["component"], + "semanticName": "vae", + "semantics": { + "kind": "component", + "members": [ + { "name": "vae", "type": "diffusers.models.autoencoders.autoencoder_kl_flux2.AutoencoderKLFlux2" } + ], + "owner": "same_loader", + "scope": "Flux3ModularPipeline", + "state": null + }, + "types": ["diffusers_auto_model"] + }, + { + "direction": "output", + "hidden": false, + "name": "images", + "required": false, + "roles": ["value"], + "semanticName": "images", + "semantics": { "kind": "media", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["image"] + }, + { + "direction": "output", + "hidden": false, + "name": "doc", + "required": false, + "roles": ["value"], + "semanticName": "doc", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + } + ], + "support": "declared", + "task": "text_to_image", + "workflowId": "text2image" + } + } + ], + "pipelineClass": "Flux3ModularPipeline", + "requiredInputs": [{ "field": "prompt", "operationId": "diffusion.encode_prompt" }], + "schemaVersion": 1, + "sharedInputs": [], + "task": "text_to_image", + "upstreamBlocks": ["text_encoder", "denoise", "decode"], + "workflowId": "text2image" + }, + { + "authoring": { + "ancillaryOperations": [ + { + "adapter": { + "declarationSha256": "sha256:2a3d4685988b418115008bbb95fb3e948097580c0bedd2940ea3fe1e40254dc2", + "id": "transformers-prompt-enhancement-v1" + }, + "authoredLayoutConstraint": { + "adapterId": "transformers-prompt-enhancement-v1", + "artifacts": [ + { + "byteSize": 19989325, + "path": "tokenizer.json", + "sha256": "06b9509352d2af50381ab2247e083b80d32d5c0aba91c272ca9ff729b6a0e523" + }, + { + "byteSize": 1164, + "path": "tokenizer_config.json", + "sha256": "7488550a894dcf741616126e322ea31d66cf9457b59ec5825f4c7efdced421f8" + }, + { + "byteSize": 163, + "path": "generation_config.json", + "sha256": "e92258e3c39afbaa73fd53a98640c56f6d42fb091e1664697bd5396a1dcbb761" + } + ], + "configuredEosTokenIds": [248046, 248044], + "deadlineSeconds": 1800, + "declarationSha256": "sha256:f321df19db5e99786b807a13d8f380e4bc0577e27163b94e6762661881ac5c08", + "effectiveEosTokenIds": [248046], + "effectivePreTokenizerSha256": "sha256:4cba7e5c03fddf4af78a44f283740fd19687522c60cc36ee271b655f634a7af3", + "layoutPolicy": "constrained-authored-table-v1", + "limits": { + "build_seconds": 10, + "lookup_seconds": 2, + "max_cache_bytes": 16777216, + "max_caption_chars": 131072, + "max_description_chars": 4096, + "max_new_tokens": 3584, + "max_output_bytes": 262144, + "max_references": 10, + "max_regions": 32, + "max_request_seconds": 1800, + "max_token_bytes": 512, + "max_trie_nodes": 2000000, + "max_vocabulary_bytes": 16777216, + "max_vocabulary_tokens": 300000 + }, + "operation": "enhance_prompt_constrained_authored_v1", + "ordinaryVocabularySha256": "sha256:13431bd652cdbd32f84568d0c2b9945ba506071178fdb527d40c4ece256f8b39", + "ordinaryVocabularyTokens": 248044, + "padTokenId": 248044, + "preparationRamBytes": 268435456, + "repository": "black-forest-labs/flux-3-image-klein-pup", + "reservedAddedTokenIds": [ + 248044, 248045, 248046, 248047, 248048, 248049, 248050, 248051, 248052, 248053, 248054, 248055, 248056, + 248057, 248058, 248059, 248060, 248061, 248062, 248063, 248064, 248065, 248066, 248067, 248068, 248069, + 248070, 248071, 248072, 248073, 248074, 248075, 248076 + ], + "revision": "3f3edb52b2c55de0d49feab28598b68f7f8e4830", + "schemaVersion": 1, + "sourcePreTokenizerSha256": "sha256:d730489d91319a99960af82e8fed44be8533ca92615198807b41c29dda5556fc", + "status": "contract_only", + "tokenizerClass": "Qwen3_5Tokenizer", + "tokenizerSemanticSha256": "sha256:40ebf1d8462c42c3b781b870aaa28884b24f86234bc0b49d54d2bbcf5ddc404a", + "tokenizersVersion": "0.23.2", + "transformersVersion": "5.18.0", + "trueSpecialTokenIds": [ + 248044, 248045, 248046, 248047, 248048, 248049, 248050, 248051, 248052, 248053, 248054, 248055, 248056, + 248057, 248070, 248071, 248072, 248073, 248074, 248075, 248076 + ], + "version": "authored-layout-byte-prefix-v1" + }, + "bindings": { + "output": { "field": "proposal_summary", "role": "proposal" }, + "owner": { + "layoutField": "layout_conditioning", + "promptField": "prompt", + "referenceSource": null, + "role": "prompt" + }, + "request": { + "imagesField": "images", + "layoutField": "layout_conditioning", + "promptField": "prompt", + "role": "proposal" + } + }, + "contentHash": "studio-ancillary-v1-05e11ea3", + "edges": [["provider", "model", "proposal", "model"]], + "executionPurpose": "explicit_preview", + "fieldOverrides": [ + ["proposal", "enhancement_max_new_tokens", { "hidden": false }], + ["proposal", "max_new_tokens", { "hidden": true }] + ], + "id": "flux3-klein-base:official:text-to-image:prompt-preview-constrained-fp32:v1:preview", + "initialValues": [ + ["provider", "model_id", { "source": "hub", "value": "black-forest-labs/flux-3-image-klein-pup" }], + ["provider", "revision", "3f3edb52b2c55de0d49feab28598b68f7f8e4830"], + ["proposal", "operation", "enhance_prompt_constrained_authored_v1"], + ["provider", "dtype", "float32"], + ["provider", "device", "cuda:0"], + ["provider", "quantization_mode", "none"], + ["proposal", "max_input_tokens", 4096] + ], + "layoutPolicy": "constrained-authored-table-v1", + "parent": { + "authoringRecipeId": "flux3-klein-base:official:text-to-image:prompt-preview-constrained-fp32:v1", + "baseSpecContentHash": "studio-spec-v1-f5960f24", + "baseSpecId": "flux3-klein-base:official-provider:v1:text-to-image:v1", + "executionProfileId": "flux3-klein-base:official-provider:v1", + "pipelineClass": "Flux3ModularPipeline", + "task": "text_to_image" + }, + "roles": [ + ["provider", "modules.HuggingFaceTransformers.LoadImageTextToTextModel", -720, -400], + ["proposal", "modules.HuggingFaceTransformers.GenerateImageVideoText", -360, -400] + ], + "schemaVersion": 1, + "sourceRegions": false, + "verification": { + "adapter": { + "declarationSha256": "sha256:2a3d4685988b418115008bbb95fb3e948097580c0bedd2940ea3fe1e40254dc2", + "id": "transformers-prompt-enhancement-v1" + }, + "chatTemplateSha256": "sha256:a4aee8afcf2e0711942cf848899be66016f8d14a889ff9ede07bca099c28f715", + "layoutRequestSuffixSha256": "sha256:5a17750012e7cc49ecf8169b48b9b9c1610c0ec198d8418dd9d3a7760ed9886e", + "modelReceipt": { + "library": "transformers", + "loader": { "modelAutoClass": "AutoModelForImageTextToText", "preprocessorAutoClass": "AutoProcessor" }, + "runtime": { + "architectures": ["Qwen3_5ForConditionalGeneration"], + "modelClass": "Qwen3_5ForConditionalGeneration", + "modelType": "qwen3_5", + "preprocessorClass": "Qwen3VLProcessor", + "transformersVersion": "5.18.0" + }, + "schemaVersion": 1, + "security": { + "hostedInference": false, + "localFilesOnly": true, + "safetensorsOnly": true, + "trustRemoteCode": false + }, + "source": { + "kind": "hub", + "repository": "black-forest-labs/flux-3-image-klein-pup", + "revision": "3f3edb52b2c55de0d49feab28598b68f7f8e4830" + }, + "task": "image-video-to-text" + }, + "quantizationRecipes": [ + { "mode": "none" }, + { + "computeDtype": "bfloat16", + "doubleQuant": true, + "mode": "bnb_4bit", + "quantType": "nf4", + "skipModules": ["lm_head", "model.visual"] + } + ], + "requestInputs": { + "maxImagePixelsField": "max_image_pixels", + "maxInputTokensField": "max_input_tokens", + "maxNewTokensField": "enhancement_max_new_tokens", + "minNewTokensField": "min_new_tokens", + "operationField": "operation", + "role": "proposal" + }, + "runtimeInputs": { + "deviceField": "device", + "dtypeField": "dtype", + "modelField": "model_id", + "quantizationField": "quantization_mode", + "revisionField": "revision", + "role": "provider" + }, + "schemaVersion": 1, + "supportedPromptModes": ["t2i", "i2i", "t2i_bbox", "i2i_bbox"], + "systemPromptSha256ByMode": { + "i2i": "95cec384d5b6d341caa9fb3f2c7ca45ee80c2364b3a95d4044aebf976f6dd3bf", + "i2i_bbox": "e7791b9d8f3c3d844a0ae493c28e7cdf549a98ba2dc66cad9f08de997127ef7d", + "t2i": "8b235a421bce2213d11ada01f5a1244443dd72303ffbb4cc9e5a0d8b0de5ab6f", + "t2i_bbox": "48bb52d2594ef7f33a1ecc1ef5b79ceab3ae4ff6ace9c2cafc13f4875e362f11" + }, + "systemPromptsSha256": "sha256:b5da3ed8bc04ab59dbdb747930f7dbff847e868903fed8028f85ee1a4ac82fb4" + } + } + ], + "baseSpecContentHash": "studio-spec-v1-f5960f24", + "baseSpecId": "flux3-klein-base:official-provider:v1:text-to-image:v1", + "bindings": [ + ["models", "model_type", "pipelineClass"], + ["models", "repo_id", "artifact"], + ["models", "revision", "defaultRevision"], + ["models", "dtype", "dtype"], + ["models", "device", "device"], + ["models", "auto_offload", "autoOffload"], + ["models", "offload_mode", "offloadMode"], + ["models", "trust_remote_code", "false"], + ["prompt", "prompt", "prompt"], + ["prompt", "negative_prompt", "negativePrompt"], + ["denoise", "width", "width"], + ["denoise", "height", "height"], + ["denoise", "seed", "seed"], + ["denoise", "num_inference_steps", "steps"], + ["prompt", "max_sequence_length", "maxSequenceLength"], + ["models", "weight_format", "weightFormat"], + ["guider", "guider", "classifierFreeGuidance"], + ["guider", "model_type", "pipelineClass"], + ["guider", "guidance_scale", "guidanceScale"] + ], + "canonicalizationVersion": 1, + "contentHash": "studio-authoring-v1-20cd973a", + "edges": [ + ["models", "text_encoders", "prompt", "text_encoders"], + ["models", "unet_out", "denoise", "unet"], + ["models", "scheduler", "denoise", "scheduler"], + ["models", "vae_out", "decode", "vae"], + ["prompt", "embeddings", "denoise", "embeddings"], + ["denoise", "latents", "decode", "latents"], + ["decode", "images", "preview", "image"], + ["guider", "guider_out", "denoise", "guider"] + ], + "executionProfileIds": ["flux3-klein-base:official-provider:v1"], + "id": "flux3-klein-base:official:text-to-image:prompt-preview-constrained-fp32:v1", + "initialValues": [], + "roles": [ + ["models", "modules.ModularDiffusers.ModelsLoader", -720, -80], + ["prompt", "modules.ModularDiffusers.EncodePrompt", -360, -240], + ["denoise", "modules.ModularDiffusers.Denoise", 80, -80], + ["decode", "modules.ModularDiffusers.DecodeLatents", 440, -80], + ["preview", "modules.Image.Preview", 800, -80], + ["guider", "modules.ModularDiffusers.Guider", -360, 160] + ], + "schemaVersion": 1 + }, + "edges": [ + { + "source": "diffusion.load_models", + "sourceHandle": "text_encoders", + "target": "diffusion.encode_prompt", + "targetHandle": "text_encoders" + }, + { + "source": "diffusion.load_models", + "sourceHandle": "scheduler", + "target": "diffusion.denoise", + "targetHandle": "scheduler" + }, + { + "source": "diffusion.load_models", + "sourceHandle": "unet_out", + "target": "diffusion.denoise", + "targetHandle": "unet" + }, + { + "source": "diffusion.load_models", + "sourceHandle": "vae_out", + "target": "diffusion.decode_latents", + "targetHandle": "vae" + }, + { + "source": "diffusion.encode_prompt", + "sourceHandle": "embeddings", + "target": "diffusion.denoise", + "targetHandle": "embeddings" + }, + { + "source": "diffusion.denoise", + "sourceHandle": "latents", + "target": "diffusion.decode_latents", + "targetHandle": "latents" + }, + { + "source": "diffusion.guidance", + "sourceHandle": "guider_out", + "target": "diffusion.denoise", + "targetHandle": "guider" + } + ], + "nodes": [ + { + "node": { + "action": "ModelsLoader", + "cache": false, + "category": "loader", + "description": "", + "label": "Load Models", + "memory": [0, 0, 0], + "module": "modules.ModularDiffusers", + "params": { + "attention_backend": { + "default": "inherit", + "description": "Inherit preserves existing native component defaults; explicit choices use the ordinary Diffusers attention API.", + "label": "Attention Backend", + "options": [ + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "inherit", + "schemaVersion": 1, + "value": "inherit" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "auto", + "schemaVersion": 1, + "value": "auto" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "native", + "schemaVersion": 1, + "value": "native" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "_native_math", + "schemaVersion": 1, + "value": "_native_math" + } + ], + "type": "string" + }, + "auto_offload": { "label": "Enable Auto Offload", "type": "boolean", "value": true }, + "controlnet": { + "display": "input", + "hidden": true, + "label": "ControlNet", + "type": "diffusers_auto_model" + }, + "device": { + "label": "Device", + "options": { + "cpu": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "cpu", + "schemaVersion": 1, + "value": "cpu" + }, + "cpu:0": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "cpu:0", + "schemaVersion": 1, + "value": "cpu:0" + } + }, + "type": "string", + "value": "cpu:0" + }, + "dtype": { + "label": "dtype", + "options": [ + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "float32", + "schemaVersion": 1, + "value": "float32" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "float16", + "schemaVersion": 1, + "value": "float16" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "bfloat16", + "schemaVersion": 1, + "value": "bfloat16" + } + ], + "value": "bfloat16" + }, + "image_encoder": { + "connectionRole": "image_encoder", + "display": "output", + "hidden": true, + "label": "Image Encoder", + "signal": { + "direction": "output", + "origin": "modiff_pipeline_identity", + "value": "Flux3ModularPipeline" + }, + "type": "diffusers_auto_model" + }, + "inpaint_compatibility": { + "default": "native", + "description": "Technical compatibility selection for the reviewed Qwen Edit inpainting candidate; existing nodes retain native policy.", + "hidden": true, + "label": "Inpaint Compatibility", + "options": [ + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "native", + "schemaVersion": 1, + "value": "native" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "whole_v1", + "schemaVersion": 1, + "value": "whole_v1" + } + ], + "type": "string" + }, + "lora_list": { "display": "input", "label": "Lora", "type": "custom_lora" }, + "model_type": { + "description": "Selects the Modular Diffusers pipeline class. This filters compatible checkpoints and publishes the component contract used by connected nodes; it is not the model checkpoint itself.", + "label": "Pipeline Type", + "onChange": "set_filters", + "options": { + "": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "", + "schemaVersion": 1, + "value": "" + }, + "AnimaModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Anima", + "schemaVersion": 1, + "value": "AnimaModularPipeline" + }, + "Cosmos3DistilledModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Cosmos 3 Distilled", + "schemaVersion": 1, + "value": "Cosmos3DistilledModularPipeline" + }, + "Cosmos3OmniModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Cosmos 3 Nano", + "schemaVersion": 1, + "value": "Cosmos3OmniModularPipeline" + }, + "DummyCustomPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Custom", + "schemaVersion": 1, + "value": "DummyCustomPipeline" + }, + "ErnieImageModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "ERNIE Image Turbo", + "schemaVersion": 1, + "value": "ErnieImageModularPipeline" + }, + "Flux2KleinBaseModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Flux 2 Klein Base", + "schemaVersion": 1, + "value": "Flux2KleinBaseModularPipeline" + }, + "Flux2KleinModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Flux 2 Klein Distilled", + "schemaVersion": 1, + "value": "Flux2KleinModularPipeline" + }, + "Flux2ModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Flux 2", + "schemaVersion": 1, + "value": "Flux2ModularPipeline" + }, + "Flux3DistilledModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "FLUX 3 Image Klein", + "schemaVersion": 1, + "value": "Flux3DistilledModularPipeline" + }, + "Flux3ModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "FLUX 3 Image Klein Base", + "schemaVersion": 1, + "value": "Flux3ModularPipeline" + }, + "FluxKontextModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Flux Kontext", + "schemaVersion": 1, + "value": "FluxKontextModularPipeline" + }, + "FluxModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Flux", + "schemaVersion": 1, + "value": "FluxModularPipeline" + }, + "HeliosModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Helios", + "schemaVersion": 1, + "value": "HeliosModularPipeline" + }, + "HeliosPyramidDistilledModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Helios Pyramid Distilled", + "schemaVersion": 1, + "value": "HeliosPyramidDistilledModularPipeline" + }, + "HeliosPyramidModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Helios Pyramid", + "schemaVersion": 1, + "value": "HeliosPyramidModularPipeline" + }, + "HunyuanVideo15ModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "HunyuanVideo 1.5", + "schemaVersion": 1, + "value": "HunyuanVideo15ModularPipeline" + }, + "Ideogram4ModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Ideogram 4 (Contract only)", + "schemaVersion": 1, + "value": "Ideogram4ModularPipeline" + }, + "Krea2ModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Krea 2 (Contract only)", + "schemaVersion": 1, + "value": "Krea2ModularPipeline" + }, + "Krea2TurboModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Krea 2 Turbo (Contract only)", + "schemaVersion": 1, + "value": "Krea2TurboModularPipeline" + }, + "LTX25ModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "LTX-2.5 (Contract only)", + "schemaVersion": 1, + "value": "LTX25ModularPipeline" + }, + "MiniMaxH3ModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "MiniMax H3", + "schemaVersion": 1, + "value": "MiniMaxH3ModularPipeline" + }, + "MiniMaxMusic3ModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "MiniMax Music 3", + "schemaVersion": 1, + "value": "MiniMaxMusic3ModularPipeline" + }, + "QwenImageEditModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Qwen-Image-Edit", + "schemaVersion": 1, + "value": "QwenImageEditModularPipeline" + }, + "QwenImageEditPlusModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Qwen-Image-Edit-2511", + "schemaVersion": 1, + "value": "QwenImageEditPlusModularPipeline" + }, + "QwenImageLayeredModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Qwen-Image-Layered", + "schemaVersion": 1, + "value": "QwenImageLayeredModularPipeline" + }, + "QwenImageModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Qwen-Image-2512", + "schemaVersion": 1, + "value": "QwenImageModularPipeline" + }, + "StableDiffusion3ModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Stable Diffusion 3 (Contract only)", + "schemaVersion": 1, + "value": "StableDiffusion3ModularPipeline" + }, + "StableDiffusionXLModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Stable Diffusion XL", + "schemaVersion": 1, + "value": "StableDiffusionXLModularPipeline" + }, + "WanAnimate2DistilledModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Wan Animate 2 Distilled", + "schemaVersion": 1, + "value": "WanAnimate2DistilledModularPipeline" + }, + "WanAnimate2ModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Wan Animate 2", + "schemaVersion": 1, + "value": "WanAnimate2ModularPipeline" + }, + "WanImage2VideoModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "WAN2 I2V", + "schemaVersion": 1, + "value": "WanImage2VideoModularPipeline" + }, + "WanModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "WAN2 T2V", + "schemaVersion": 1, + "value": "WanModularPipeline" + }, + "ZImageModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Z-Image", + "schemaVersion": 1, + "value": "ZImageModularPipeline" + } + }, + "type": "string", + "value": "Flux3ModularPipeline" + }, + "modiff_pipeline_identity": { + "hidden": true, + "label": "Custom Pipeline Identity", + "type": "object", + "value": null + }, + "offload_mode": { + "default": "model_cpu", + "label": "Offload Mode", + "options": [ + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "auto_cpu", + "schemaVersion": 1, + "value": "auto_cpu" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "none", + "schemaVersion": 1, + "value": "none" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "model_cpu", + "schemaVersion": 1, + "value": "model_cpu" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "group_cpu", + "schemaVersion": 1, + "value": "group_cpu" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "group_disk", + "schemaVersion": 1, + "value": "group_disk" + } + ], + "type": "string", + "value": "model_cpu" + }, + "pipeline_components": { + "connectionRole": "pipeline_components", + "display": "output", + "hidden": false, + "label": "Pipeline Components", + "signal": { + "direction": "output", + "origin": "modiff_pipeline_identity", + "value": "Flux3ModularPipeline" + }, + "type": "diffusers_modular_pipeline_components" + }, + "quant_config": { "display": "input", "label": "Quant Config", "type": "quant_config" }, + "refresh_pipeline_identity_button": { + "display": "ui_button", + "hidden": true, + "label": "Review and Refresh Custom Contract", + "onChange": "refresh_pipeline_identity", + "value": false + }, + "repo_id": { + "display": "modelselect", + "fieldOptions": { + "filter": { "hub": { "className": ["Flux3ModularPipeline"] } }, + "noValidation": true, + "sources": ["hub", "local"] + }, + "label": "Repository ID", + "onChange": "refresh_pipeline_identity", + "type": "string", + "value": { "source": "hub", "value": "black-forest-labs/flux-3-image-klein-base" } + }, + "reviewed_variant": { + "description": "Select an immutable, reviewed checkpoint for this exact Modular Diffusers pipeline family. Changing it does not replace the workflow graph or reset its parameters.", + "fieldOptions": { "controlTier": "essential" }, + "hidden": true, + "label": "Model", + "options": [ + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "black-forest-labs/flux-3-image-klein-base", + "schemaVersion": 1, + "value": "black-forest-labs/flux-3-image-klein-base" + } + ], + "type": "string", + "value": "black-forest-labs/flux-3-image-klein-base" + }, + "revision": { + "description": "Required exact 40-character commit hash for Hub custom contracts.", + "label": "Revision", + "onChange": "refresh_pipeline_identity", + "type": "string", + "value": "1469d27cfb9bb1bd81d3a93f5a023b39dbf136e4" + }, + "scheduler": { + "connectionRole": "scheduler", + "display": "output", + "hidden": false, + "label": "Scheduler", + "signal": { + "direction": "output", + "origin": "modiff_pipeline_identity", + "value": "Flux3ModularPipeline" + }, + "type": "diffusers_auto_model" + }, + "text_encoders": { + "connectionRole": "text_encoders", + "display": "output", + "hidden": false, + "label": "Text Encoders", + "signal": { + "direction": "output", + "origin": "modiff_pipeline_identity", + "value": "Flux3ModularPipeline" + }, + "type": "diffusers_auto_models" + }, + "trust_remote_code": { + "description": "Repository code execution is disabled; keep this off for contract preview.", + "label": "Trust Remote Code", + "onChange": "refresh_pipeline_identity", + "type": "boolean", + "value": false + }, + "unet": { "display": "input", "hidden": false, "label": "Denoise Model", "type": "diffusers_auto_model" }, + "unet_out": { + "connectionRole": "denoiser", + "display": "output", + "hidden": false, + "label": "Denoise Model", + "signal": { + "direction": "output", + "origin": "modiff_pipeline_identity", + "value": "Flux3ModularPipeline" + }, + "type": "diffusers_auto_model" + }, + "vae": { "display": "input", "hidden": false, "label": "VAE", "type": "diffusers_auto_model" }, + "vae_out": { + "connectionRole": "vae", + "display": "output", + "hidden": false, + "label": "VAE", + "signal": { + "direction": "output", + "origin": "modiff_pipeline_identity", + "value": "Flux3ModularPipeline" + }, + "type": "diffusers_auto_model" + }, + "vae_slicing": { + "default": null, + "description": "An unset policy preserves the native VAE configuration; templates may bind an explicit boolean.", + "hidden": true, + "label": "VAE Slicing", + "type": "boolean" + }, + "vae_tiling": { + "default": null, + "description": "An unset policy preserves the native VAE configuration; templates may bind an explicit boolean.", + "hidden": true, + "label": "VAE Tiling", + "type": "boolean" + }, + "weight_format": { + "default": "native", + "description": "Select a backend-declared immutable component format. Missing reviewed files must be installed through Model Manager.", + "fieldOptions": { "controlTier": "advanced" }, + "hidden": false, + "label": "Weight Format", + "options": [ + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "native", + "schemaVersion": 1, + "value": "native" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "fp8r", + "schemaVersion": 1, + "value": "fp8r" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "nvfp4", + "schemaVersion": 1, + "value": "nvfp4" + } + ], + "type": "string" + }, + "weight_loading_mode": { + "default": "cpu", + "description": "Load weights on CPU or CUDA before disk offload. CUDA loading needs room for a complete component and is available only for supported models.", + "fieldOptions": { "controlTier": "advanced" }, + "label": "Weight Loading", + "options": [ + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "cpu", + "schemaVersion": 1, + "value": "cpu" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "cuda", + "schemaVersion": 1, + "value": "cuda" + } + ], + "type": "string" + }, + "workflow_id": { + "description": "Exact reviewed component partition selected by a first-party Cluster Node.", + "hidden": true, + "label": "Reviewed Workflow", + "type": "string", + "value": "text2image" + } + }, + "resizable": true, + "skipParamsCheck": true, + "style": {}, + "time": [0, 0, 0], + "type": "custom" + }, + "operation": { + "binding": { "pipelineClass": "Flux3ModularPipeline", "values": { "model_type": "Flux3ModularPipeline" } }, + "blockName": null, + "decomposition": "loader", + "nodeKey": "modules.ModularDiffusers.ModelsLoader", + "nodeType": "loader", + "operationId": "diffusion.load_models", + "pipelineClass": "Flux3ModularPipeline", + "ports": [ + { + "direction": "input", + "hidden": false, + "name": "model_type", + "required": false, + "roles": ["value"], + "semanticName": "model_type", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": false, + "name": "repo_id", + "required": false, + "roles": ["value"], + "semanticName": "repo_id", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": true, + "name": "reviewed_variant", + "required": false, + "roles": ["value"], + "semanticName": "reviewed_variant", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": false, + "name": "device", + "required": false, + "roles": ["value"], + "semanticName": "device", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": false, + "name": "attention_backend", + "required": false, + "roles": ["value"], + "semanticName": "attention_backend", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": true, + "name": "vae_slicing", + "required": false, + "roles": ["value"], + "semanticName": "vae_slicing", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["boolean"] + }, + { + "direction": "input", + "hidden": true, + "name": "vae_tiling", + "required": false, + "roles": ["value"], + "semanticName": "vae_tiling", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["boolean"] + }, + { + "direction": "input", + "hidden": true, + "name": "inpaint_compatibility", + "required": false, + "roles": ["value"], + "semanticName": "inpaint_compatibility", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": false, + "name": "trust_remote_code", + "required": false, + "roles": ["value"], + "semanticName": "trust_remote_code", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["boolean"] + }, + { + "direction": "input", + "hidden": false, + "name": "revision", + "required": false, + "roles": ["value"], + "semanticName": "revision", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": true, + "name": "workflow_id", + "required": false, + "roles": ["value"], + "semanticName": "workflow_id", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": true, + "name": "modiff_pipeline_identity", + "required": false, + "roles": ["value"], + "semanticName": "modiff_pipeline_identity", + "semantics": { + "kind": "opaque", + "members": [], + "owner": "none", + "scope": "Flux3ModularPipeline", + "state": null + }, + "types": ["object"] + }, + { + "direction": "input", + "hidden": false, + "name": "auto_offload", + "required": false, + "roles": ["value"], + "semanticName": "auto_offload", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["boolean"] + }, + { + "direction": "input", + "hidden": false, + "name": "offload_mode", + "required": false, + "roles": ["value"], + "semanticName": "offload_mode", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": false, + "name": "weight_loading_mode", + "required": false, + "roles": ["value"], + "semanticName": "weight_loading_mode", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": true, + "name": "weight_format", + "required": false, + "roles": ["value"], + "semanticName": "weight_format", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": false, + "name": "unet", + "required": false, + "roles": ["component"], + "semanticName": "unet", + "semantics": { + "kind": "component", + "members": [ + { + "name": "transformer", + "type": "diffusers.models.transformers.transformer_flux3.Flux3Transformer2DModel" + } + ], + "owner": "same_loader", + "scope": "Flux3ModularPipeline", + "state": null + }, + "types": ["diffusers_auto_model"] + }, + { + "direction": "input", + "hidden": false, + "name": "vae", + "required": false, + "roles": ["component"], + "semanticName": "vae", + "semantics": { + "kind": "component", + "members": [ + { "name": "vae", "type": "diffusers.models.autoencoders.autoencoder_kl_flux2.AutoencoderKLFlux2" } + ], + "owner": "same_loader", + "scope": "Flux3ModularPipeline", + "state": null + }, + "types": ["diffusers_auto_model"] + }, + { + "direction": "input", + "hidden": true, + "name": "controlnet", + "required": false, + "roles": ["component"], + "semanticName": "controlnet", + "semantics": { + "kind": "component", + "members": [], + "owner": "same_loader", + "scope": "Flux3ModularPipeline", + "state": null + }, + "types": ["diffusers_auto_model"] + }, + { + "direction": "input", + "hidden": false, + "name": "lora_list", + "required": false, + "roles": ["value"], + "semanticName": "lora_list", + "semantics": { + "kind": "opaque", + "members": [], + "owner": "none", + "scope": "Flux3ModularPipeline", + "state": null + }, + "types": ["custom_lora"] + }, + { + "direction": "output", + "hidden": false, + "name": "text_encoders", + "required": false, + "roles": ["component"], + "semanticName": "text_encoders", + "semantics": { + "kind": "component", + "members": [ + { + "name": "text_encoder", + "type": "transformers.models.qwen3_vl.modeling_qwen3_vl.Qwen3VLForConditionalGeneration" + }, + { "name": "tokenizer", "type": "transformers.models.auto.processing_auto.AutoProcessor" } + ], + "owner": "same_loader", + "scope": "Flux3ModularPipeline", + "state": null + }, + "types": ["diffusers_auto_models"] + }, + { + "direction": "output", + "hidden": false, + "name": "unet_out", + "required": false, + "roles": ["component"], + "semanticName": "unet_out", + "semantics": { + "kind": "component", + "members": [ + { + "name": "transformer", + "type": "diffusers.models.transformers.transformer_flux3.Flux3Transformer2DModel" + } + ], + "owner": "same_loader", + "scope": "Flux3ModularPipeline", + "state": null + }, + "types": ["diffusers_auto_model"] + }, + { + "direction": "output", + "hidden": false, + "name": "vae_out", + "required": false, + "roles": ["component"], + "semanticName": "vae_out", + "semantics": { + "kind": "component", + "members": [ + { "name": "vae", "type": "diffusers.models.autoencoders.autoencoder_kl_flux2.AutoencoderKLFlux2" } + ], + "owner": "same_loader", + "scope": "Flux3ModularPipeline", + "state": null + }, + "types": ["diffusers_auto_model"] + }, + { + "direction": "output", + "hidden": false, + "name": "scheduler", + "required": false, + "roles": ["component"], + "semanticName": "scheduler", + "semantics": { + "kind": "component", + "members": [ + { + "name": "scheduler", + "type": "diffusers.schedulers.scheduling_flow_match_euler_discrete.FlowMatchEulerDiscreteScheduler" + } + ], + "owner": "same_loader", + "scope": "Flux3ModularPipeline", + "state": null + }, + "types": ["diffusers_auto_model"] + }, + { + "direction": "output", + "hidden": true, + "name": "image_encoder", + "required": false, + "roles": ["component"], + "semanticName": "image_encoder", + "semantics": { + "kind": "component", + "members": [], + "owner": "same_loader", + "scope": "Flux3ModularPipeline", + "state": null + }, + "types": ["diffusers_auto_model"] + }, + { + "direction": "output", + "hidden": false, + "name": "pipeline_components", + "required": false, + "roles": ["component"], + "semanticName": "pipeline_components", + "semantics": { + "kind": "component", + "members": [ + { "name": "guider", "type": "diffusers.guiders.classifier_free_guidance.ClassifierFreeGuidance" }, + { + "name": "image_processor", + "type": "diffusers.modular_pipelines.flux3.image_processor.Flux3ImageProcessor" + }, + { + "name": "scheduler", + "type": "diffusers.schedulers.scheduling_flow_match_euler_discrete.FlowMatchEulerDiscreteScheduler" + }, + { + "name": "text_encoder", + "type": "transformers.models.qwen3_vl.modeling_qwen3_vl.Qwen3VLForConditionalGeneration" + }, + { "name": "tokenizer", "type": "transformers.models.auto.processing_auto.AutoProcessor" }, + { + "name": "transformer", + "type": "diffusers.models.transformers.transformer_flux3.Flux3Transformer2DModel" + }, + { "name": "vae", "type": "diffusers.models.autoencoders.autoencoder_kl_flux2.AutoencoderKLFlux2" } + ], + "owner": "same_loader", + "scope": "Flux3ModularPipeline", + "state": null + }, + "types": ["diffusers_modular_pipeline_components"] + }, + { + "direction": "input", + "hidden": false, + "name": "quant_config", + "required": false, + "roles": ["value"], + "semanticName": "quant_config", + "semantics": { + "kind": "opaque", + "members": [], + "owner": "none", + "scope": "Flux3ModularPipeline", + "state": null + }, + "types": ["quant_config"] + } + ], + "support": "declared", + "task": "text_to_image", + "workflowId": "text2image" + } + }, + { + "node": { + "action": "Guider", + "cache": false, + "category": "sampler", + "description": "", + "label": "Guidance", + "memory": [0, 0, 0], + "module": "modules.ModularDiffusers", + "params": { + "enabled": { "label": "Enabled", "type": "boolean", "value": true }, + "guidance_rescale": { + "display": "slider", + "label": "Guidance Rescale", + "max": 10.0, + "min": 0.0, + "step": 0.1, + "type": "float", + "value": 0.0 + }, + "guidance_scale": { + "display": "slider", + "label": "Guidance Scale", + "max": 20.0, + "min": 1.0, + "step": 0.1, + "type": "float", + "value": 3.5 + }, + "guider": { + "fieldOptions": { "loading": true }, + "label": "Guider", + "onChange": [ + "updateNode", + { + "AutoGuidance": ["layers_config"], + "PerturbedAttentionGuidance": ["layers_config"], + "SkipLayerGuidance": ["layers_config"], + "SmoothedEnergyGuidance": ["layers_config"] + } + ], + "options": [ + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "ClassifierFreeGuidance", + "schemaVersion": 1, + "value": "ClassifierFreeGuidance" + } + ], + "type": "string", + "value": "ClassifierFreeGuidance" + }, + "guider_out": { + "display": "output", + "label": "Guider", + "onSignal": [ + { "action": "value", "target": "model_type" }, + { + "action": "value", + "data": { + "Flux2KleinBaseModularPipeline": ["ClassifierFreeGuidance"], + "Flux3ModularPipeline": ["ClassifierFreeGuidance"], + "FluxKontextModularPipeline": ["ClassifierFreeGuidance"], + "FluxModularPipeline": ["ClassifierFreeGuidance"], + "QwenImageEditModularPipeline": [ + "ClassifierFreeGuidance", + "SkipLayerGuidance", + "AdaptiveProjectedGuidance", + "AdaptiveProjectedMixGuidance", + "MagnitudeAwareGuidance", + "ClassifierFreeZeroStarGuidance", + "AutoGuidance", + "SmoothedEnergyGuidance", + "PerturbedAttentionGuidance", + "TangentialClassifierFreeGuidance", + "FrequencyDecoupledGuidance" + ], + "QwenImageEditPlusModularPipeline": [ + "ClassifierFreeGuidance", + "SkipLayerGuidance", + "AdaptiveProjectedGuidance", + "AdaptiveProjectedMixGuidance", + "MagnitudeAwareGuidance", + "ClassifierFreeZeroStarGuidance", + "AutoGuidance", + "SmoothedEnergyGuidance", + "PerturbedAttentionGuidance", + "TangentialClassifierFreeGuidance", + "FrequencyDecoupledGuidance" + ], + "QwenImageLayeredModularPipeline": [ + "ClassifierFreeGuidance", + "AdaptiveProjectedGuidance", + "AdaptiveProjectedMixGuidance", + "MagnitudeAwareGuidance", + "ClassifierFreeZeroStarGuidance", + "TangentialClassifierFreeGuidance", + "FrequencyDecoupledGuidance" + ], + "QwenImageModularPipeline": [ + "ClassifierFreeGuidance", + "SkipLayerGuidance", + "AdaptiveProjectedGuidance", + "AdaptiveProjectedMixGuidance", + "MagnitudeAwareGuidance", + "ClassifierFreeZeroStarGuidance", + "AutoGuidance", + "SmoothedEnergyGuidance", + "PerturbedAttentionGuidance", + "TangentialClassifierFreeGuidance", + "FrequencyDecoupledGuidance" + ], + "StableDiffusionXLModularPipeline": [ + "ClassifierFreeGuidance", + "SkipLayerGuidance", + "AdaptiveProjectedGuidance", + "AdaptiveProjectedMixGuidance", + "MagnitudeAwareGuidance", + "ClassifierFreeZeroStarGuidance", + "AutoGuidance", + "SmoothedEnergyGuidance", + "PerturbedAttentionGuidance", + "TangentialClassifierFreeGuidance", + "FrequencyDecoupledGuidance" + ], + "WanImage2VideoModularPipeline": [ + "ClassifierFreeGuidance", + "AdaptiveProjectedGuidance", + "AdaptiveProjectedMixGuidance", + "MagnitudeAwareGuidance", + "ClassifierFreeZeroStarGuidance", + "TangentialClassifierFreeGuidance", + "FrequencyDecoupledGuidance" + ], + "WanModularPipeline": [ + "ClassifierFreeGuidance", + "AdaptiveProjectedGuidance", + "AdaptiveProjectedMixGuidance", + "MagnitudeAwareGuidance", + "ClassifierFreeZeroStarGuidance", + "TangentialClassifierFreeGuidance", + "FrequencyDecoupledGuidance" + ], + "ZImageModularPipeline": [ + "ClassifierFreeGuidance", + "AdaptiveProjectedGuidance", + "AdaptiveProjectedMixGuidance", + "MagnitudeAwareGuidance", + "ClassifierFreeZeroStarGuidance", + "TangentialClassifierFreeGuidance", + "FrequencyDecoupledGuidance" + ] + }, + "prop": "options", + "target": "guider" + }, + { "action": "signal", "target": "layers_config" } + ], + "signalCompatibility": { + "values": { + "Flux2KleinBaseModularPipeline": ["ClassifierFreeGuidance"], + "Flux3ModularPipeline": ["ClassifierFreeGuidance"], + "FluxKontextModularPipeline": ["ClassifierFreeGuidance"], + "FluxModularPipeline": ["ClassifierFreeGuidance"], + "QwenImageEditModularPipeline": [ + "ClassifierFreeGuidance", + "SkipLayerGuidance", + "AdaptiveProjectedGuidance", + "AdaptiveProjectedMixGuidance", + "MagnitudeAwareGuidance", + "ClassifierFreeZeroStarGuidance", + "AutoGuidance", + "SmoothedEnergyGuidance", + "PerturbedAttentionGuidance", + "TangentialClassifierFreeGuidance", + "FrequencyDecoupledGuidance" + ], + "QwenImageEditPlusModularPipeline": [ + "ClassifierFreeGuidance", + "SkipLayerGuidance", + "AdaptiveProjectedGuidance", + "AdaptiveProjectedMixGuidance", + "MagnitudeAwareGuidance", + "ClassifierFreeZeroStarGuidance", + "AutoGuidance", + "SmoothedEnergyGuidance", + "PerturbedAttentionGuidance", + "TangentialClassifierFreeGuidance", + "FrequencyDecoupledGuidance" + ], + "QwenImageLayeredModularPipeline": [ + "ClassifierFreeGuidance", + "AdaptiveProjectedGuidance", + "AdaptiveProjectedMixGuidance", + "MagnitudeAwareGuidance", + "ClassifierFreeZeroStarGuidance", + "TangentialClassifierFreeGuidance", + "FrequencyDecoupledGuidance" + ], + "QwenImageModularPipeline": [ + "ClassifierFreeGuidance", + "SkipLayerGuidance", + "AdaptiveProjectedGuidance", + "AdaptiveProjectedMixGuidance", + "MagnitudeAwareGuidance", + "ClassifierFreeZeroStarGuidance", + "AutoGuidance", + "SmoothedEnergyGuidance", + "PerturbedAttentionGuidance", + "TangentialClassifierFreeGuidance", + "FrequencyDecoupledGuidance" + ], + "StableDiffusionXLModularPipeline": [ + "ClassifierFreeGuidance", + "SkipLayerGuidance", + "AdaptiveProjectedGuidance", + "AdaptiveProjectedMixGuidance", + "MagnitudeAwareGuidance", + "ClassifierFreeZeroStarGuidance", + "AutoGuidance", + "SmoothedEnergyGuidance", + "PerturbedAttentionGuidance", + "TangentialClassifierFreeGuidance", + "FrequencyDecoupledGuidance" + ], + "WanImage2VideoModularPipeline": [ + "ClassifierFreeGuidance", + "AdaptiveProjectedGuidance", + "AdaptiveProjectedMixGuidance", + "MagnitudeAwareGuidance", + "ClassifierFreeZeroStarGuidance", + "TangentialClassifierFreeGuidance", + "FrequencyDecoupledGuidance" + ], + "WanModularPipeline": [ + "ClassifierFreeGuidance", + "AdaptiveProjectedGuidance", + "AdaptiveProjectedMixGuidance", + "MagnitudeAwareGuidance", + "ClassifierFreeZeroStarGuidance", + "TangentialClassifierFreeGuidance", + "FrequencyDecoupledGuidance" + ], + "ZImageModularPipeline": [ + "ClassifierFreeGuidance", + "AdaptiveProjectedGuidance", + "AdaptiveProjectedMixGuidance", + "MagnitudeAwareGuidance", + "ClassifierFreeZeroStarGuidance", + "TangentialClassifierFreeGuidance", + "FrequencyDecoupledGuidance" + ] + } + }, + "type": "custom_guider" + }, + "layers_config": { "display": "input", "label": "Layers", "type": "layers_config" }, + "model_type": { "default": "", "hidden": true, "type": "string", "value": "Flux3ModularPipeline" }, + "start": { + "display": "slider", + "label": "Start", + "max": 1.0, + "min": 0.0, + "step": 0.01, + "type": "float", + "value": 0.0 + }, + "stop": { + "display": "slider", + "label": "Stop", + "max": 1.0, + "min": 0.01, + "step": 0.01, + "type": "float", + "value": 1.0 + }, + "use_original_formulation": { "label": "Original Formulation", "type": "boolean", "value": false } + }, + "resizable": true, + "skipParamsCheck": true, + "style": {}, + "time": [0, 0, 0], + "type": "custom" + }, + "operation": { + "binding": { "pipelineClass": "Flux3ModularPipeline", "values": { "model_type": "Flux3ModularPipeline" } }, + "blockName": null, + "decomposition": "bundle", + "nodeKey": "modules.ModularDiffusers.Guider", + "nodeType": "guidance", + "operationId": "diffusion.guidance", + "pipelineClass": "Flux3ModularPipeline", + "ports": [ + { + "direction": "input", + "hidden": true, + "name": "model_type", + "required": false, + "roles": ["value"], + "semanticName": "model_type", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": false, + "name": "guider", + "required": false, + "roles": ["value"], + "semanticName": "guider", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": false, + "name": "guidance_scale", + "required": false, + "roles": ["value"], + "semanticName": "guidance_scale", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["float"] + }, + { + "direction": "input", + "hidden": false, + "name": "guidance_rescale", + "required": false, + "roles": ["value"], + "semanticName": "guidance_rescale", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["float"] + }, + { + "direction": "input", + "hidden": false, + "name": "use_original_formulation", + "required": false, + "roles": ["value"], + "semanticName": "use_original_formulation", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["boolean"] + }, + { + "direction": "input", + "hidden": false, + "name": "enabled", + "required": false, + "roles": ["value"], + "semanticName": "enabled", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["boolean"] + }, + { + "direction": "input", + "hidden": false, + "name": "start", + "required": false, + "roles": ["value"], + "semanticName": "start", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["float"] + }, + { + "direction": "input", + "hidden": false, + "name": "stop", + "required": false, + "roles": ["value"], + "semanticName": "stop", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["float"] + }, + { + "direction": "output", + "hidden": false, + "name": "guider_out", + "required": false, + "roles": ["component"], + "semanticName": "guider_out", + "semantics": { + "kind": "component", + "members": [], + "owner": "same_loader", + "scope": "Flux3ModularPipeline", + "state": null + }, + "types": ["custom_guider"] + }, + { + "direction": "input", + "hidden": false, + "name": "layers_config", + "required": false, + "roles": ["value"], + "semanticName": "layers_config", + "semantics": { + "kind": "opaque", + "members": [], + "owner": "none", + "scope": "Flux3ModularPipeline", + "state": null + }, + "types": ["layers_config"] + } + ], + "support": "declared", + "task": "text_to_image", + "workflowId": "text2image" + } + }, + { + "node": { + "action": "EncodePrompt", + "cache": false, + "category": "embedding", + "description": "", + "label": "Encode Prompt", + "memory": [0, 0, 0], + "module": "modules.ModularDiffusers", + "params": { + "doc": { "display": "output", "label": "Doc", "type": "string" }, + "embeddings": { "display": "output", "label": "Text Embeddings", "type": "embeddings" }, + "guider": { + "description": "Shared Diffusers guidance used by prompt encoding and denoising when the selected pipeline supports it.", + "display": "input", + "hidden": true, + "label": "Guider", + "type": "custom_guider" + }, + "layout_conditioning": { + "default": null, + "display": "layout", + "fieldOptions": { + "layoutConditioning": { + "schemaVersion": 2, + "sourceRegions": false, + "supportsBoundSourceRegions": true + } + }, + "label": "Layout Conditioning", + "type": "layout_conditioning" + }, + "layout_reference_summary": { + "description": "Display-only ordered reference identities and actual preprocessing sizes from the current encoder cache.", + "display": "output", + "hidden": true, + "label": "Bound Reference Summary", + "type": "string" + }, + "max_sequence_length": { + "default": 8192, + "label": "Maximum Sequence Length", + "max": 8192, + "min": 1, + "step": 1, + "type": "int" + }, + "negative_prompt": { "default": "", "display": "textarea", "label": "Negative Prompt", "type": "string" }, + "prompt": { + "default": "", + "display": "textarea", + "fieldOptions": { "exampleAttribution": "MoDiff task example" }, + "label": "Prompt *", + "type": "string", + "value": "A red ceramic teapot on a wooden table beside a window, soft morning light, detailed photograph." + }, + "prompt_input": { + "description": "Optional connected prompt. When connected, this replaces the inline Prompt value.", + "display": "input", + "label": "Prompt Input", + "type": "string" + }, + "reference_binding": { + "default": null, + "display": "input", + "fieldOptions": { "referenceBinding": { "maxReferences": 10, "schemaVersion": 1 } }, + "label": "Reference Binding", + "type": "reference_conditioning" + }, + "text_encoder_out_layers": { + "default": [4, 8, 12, 16, 20, 24, 28, 32], + "display": "select", + "fieldOptions": { "multiple": true, "tupleLength": 8, "tupleValue": true }, + "label": "Text Encoder Layers", + "options": [ + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "0", + "schemaVersion": 1, + "value": "0" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "1", + "schemaVersion": 1, + "value": "1" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "2", + "schemaVersion": 1, + "value": "2" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "3", + "schemaVersion": 1, + "value": "3" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "4", + "schemaVersion": 1, + "value": "4" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "5", + "schemaVersion": 1, + "value": "5" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "6", + "schemaVersion": 1, + "value": "6" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "7", + "schemaVersion": 1, + "value": "7" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "8", + "schemaVersion": 1, + "value": "8" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "9", + "schemaVersion": 1, + "value": "9" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "10", + "schemaVersion": 1, + "value": "10" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "11", + "schemaVersion": 1, + "value": "11" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "12", + "schemaVersion": 1, + "value": "12" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "13", + "schemaVersion": 1, + "value": "13" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "14", + "schemaVersion": 1, + "value": "14" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "15", + "schemaVersion": 1, + "value": "15" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "16", + "schemaVersion": 1, + "value": "16" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "17", + "schemaVersion": 1, + "value": "17" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "18", + "schemaVersion": 1, + "value": "18" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "19", + "schemaVersion": 1, + "value": "19" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "20", + "schemaVersion": 1, + "value": "20" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "21", + "schemaVersion": 1, + "value": "21" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "22", + "schemaVersion": 1, + "value": "22" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "23", + "schemaVersion": 1, + "value": "23" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "24", + "schemaVersion": 1, + "value": "24" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "25", + "schemaVersion": 1, + "value": "25" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "26", + "schemaVersion": 1, + "value": "26" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "27", + "schemaVersion": 1, + "value": "27" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "28", + "schemaVersion": 1, + "value": "28" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "29", + "schemaVersion": 1, + "value": "29" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "30", + "schemaVersion": 1, + "value": "30" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "31", + "schemaVersion": 1, + "value": "31" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "32", + "schemaVersion": 1, + "value": "32" + } + ], + "type": "int" + }, + "text_encoders": { + "display": "input", + "label": "Text Encoders *", + "onSignal": "update_node", + "required": true, + "signalCompatibility": { "role": "text_encoders" }, + "type": "diffusers_auto_models" + } + }, + "resizable": true, + "skipParamsCheck": true, + "style": {}, + "time": [0, 0, 0], + "type": "custom" + }, + "operation": { + "binding": { "pipelineClass": "Flux3ModularPipeline", "values": {} }, + "blockName": "text_encoder", + "decomposition": "block", + "nodeKey": "modules.ModularDiffusers.EncodePrompt", + "nodeType": "text_encoder", + "operationId": "diffusion.encode_prompt", + "pipelineClass": "Flux3ModularPipeline", + "ports": [ + { + "direction": "input", + "hidden": false, + "name": "prompt", + "required": true, + "roles": ["value"], + "semanticName": "prompt", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": false, + "name": "negative_prompt", + "required": false, + "roles": ["value"], + "semanticName": "negative_prompt", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": false, + "name": "max_sequence_length", + "required": false, + "roles": ["value"], + "semanticName": "max_sequence_length", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["int"] + }, + { + "direction": "input", + "hidden": false, + "name": "text_encoder_out_layers", + "required": false, + "roles": ["value"], + "semanticName": "text_encoder_out_layers", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["int"] + }, + { + "direction": "input", + "hidden": false, + "name": "text_encoders", + "required": true, + "roles": ["component"], + "semanticName": "text_encoders", + "semantics": { + "kind": "component", + "members": [ + { + "name": "text_encoder", + "type": "transformers.models.qwen3_vl.modeling_qwen3_vl.Qwen3VLForConditionalGeneration" + }, + { "name": "tokenizer", "type": "transformers.models.auto.processing_auto.AutoProcessor" } + ], + "owner": "same_loader", + "scope": "Flux3ModularPipeline", + "state": null + }, + "types": ["diffusers_auto_models"] + }, + { + "direction": "output", + "hidden": false, + "name": "embeddings", + "required": false, + "roles": ["value"], + "semanticName": "embeddings", + "semantics": { + "kind": "conditioning", + "members": [], + "owner": "same_loader", + "scope": "Flux3ModularPipeline", + "state": null + }, + "types": ["embeddings"] + }, + { + "direction": "output", + "hidden": false, + "name": "doc", + "required": false, + "roles": ["value"], + "semanticName": "doc", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": false, + "name": "layout_conditioning", + "required": false, + "roles": ["value"], + "semanticName": "layout_conditioning", + "semantics": { + "kind": "opaque", + "members": [], + "owner": "none", + "scope": "Flux3ModularPipeline", + "state": null + }, + "types": ["layout_conditioning"] + }, + { + "direction": "input", + "hidden": false, + "name": "reference_binding", + "required": false, + "roles": ["value"], + "semanticName": "reference_binding", + "semantics": { + "kind": "opaque", + "members": [], + "owner": "none", + "scope": "Flux3ModularPipeline", + "state": null + }, + "types": ["reference_conditioning"] + }, + { + "direction": "input", + "hidden": false, + "name": "prompt_input", + "required": false, + "roles": ["value"], + "semanticName": "prompt", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + } + ], + "support": "declared", + "task": "text_to_image", + "workflowId": "text2image" + } + }, + { + "node": { + "action": "Denoise", + "cache": false, + "category": "sampler", + "description": "", + "label": "Denoise", + "memory": [0, 0, 0], + "module": "modules.ModularDiffusers", + "params": { + "doc": { "display": "output", "label": "Doc", "type": "string" }, + "embeddings": { "display": "input", "label": "Text Embeddings *", "type": "embeddings" }, + "guider": { "display": "input", "label": "Guider", "type": "custom_guider" }, + "height": { "default": 1024, "label": "Height", "min": 64, "step": 16, "type": "int", "value": 1024 }, + "image_cond_latents": { "display": "input", "label": "Reference Latents", "type": "latents" }, + "latents": { "display": "output", "label": "Latents", "type": "latents" }, + "num_images_per_prompt": { + "default": 1, + "label": "Images Per Prompt", + "max": 8, + "min": 1, + "step": 1, + "type": "int" + }, + "num_inference_steps": { + "default": 50, + "display": "slider", + "label": "Steps", + "max": 100, + "min": 1, + "type": "int", + "value": 50 + }, + "reference_binding": { + "default": null, + "display": "input", + "fieldOptions": { "referenceBinding": { "maxReferences": 10, "schemaVersion": 1 } }, + "label": "Reference Binding", + "type": "reference_conditioning" + }, + "scheduler": { + "display": "input", + "label": "Scheduler *", + "signalCompatibility": { "role": "scheduler" }, + "type": "diffusers_auto_model" + }, + "seed": { + "default": 0, + "display": "random", + "label": "Seed", + "max": 4294967295, + "min": 0, + "type": "int" + }, + "unet": { + "display": "input", + "label": "Denoise Model *", + "onSignal": [ + "update_node", + { "action": "signal", "target": "guider" }, + { "action": "signal", "target": "controlnet_bundle" } + ], + "required": true, + "signalCompatibility": { "role": "denoiser" }, + "type": "diffusers_auto_model" + }, + "width": { "default": 1024, "label": "Width", "min": 64, "step": 16, "type": "int", "value": 1024 } + }, + "resizable": true, + "skipParamsCheck": true, + "style": {}, + "time": [0, 0, 0], + "type": "custom" + }, + "operation": { + "binding": { "pipelineClass": "Flux3ModularPipeline", "values": {} }, + "blockName": "denoise", + "decomposition": "block", + "nodeKey": "modules.ModularDiffusers.Denoise", + "nodeType": "denoise", + "operationId": "diffusion.denoise", + "pipelineClass": "Flux3ModularPipeline", + "ports": [ + { + "direction": "input", + "hidden": false, + "name": "embeddings", + "required": true, + "roles": ["value"], + "semanticName": "embeddings", + "semantics": { + "kind": "conditioning", + "members": [], + "owner": "same_loader", + "scope": "Flux3ModularPipeline", + "state": null + }, + "types": ["embeddings"] + }, + { + "direction": "input", + "hidden": false, + "name": "width", + "required": false, + "roles": ["value"], + "semanticName": "width", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["int"] + }, + { + "direction": "input", + "hidden": false, + "name": "height", + "required": false, + "roles": ["value"], + "semanticName": "height", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["int"] + }, + { + "direction": "input", + "hidden": false, + "name": "seed", + "required": false, + "roles": ["value"], + "semanticName": "seed", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["int"] + }, + { + "direction": "input", + "hidden": false, + "name": "num_inference_steps", + "required": false, + "roles": ["value"], + "semanticName": "num_inference_steps", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["int"] + }, + { + "direction": "input", + "hidden": false, + "name": "num_images_per_prompt", + "required": false, + "roles": ["value"], + "semanticName": "num_images_per_prompt", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["int"] + }, + { + "direction": "input", + "hidden": false, + "name": "image_cond_latents", + "required": false, + "roles": ["value"], + "semanticName": "image_cond_latents", + "semantics": { + "kind": "latents", + "members": [], + "owner": "same_loader", + "scope": "Flux3ModularPipeline", + "state": null + }, + "types": ["latents"] + }, + { + "direction": "input", + "hidden": false, + "name": "unet", + "required": true, + "roles": ["component"], + "semanticName": "unet", + "semantics": { + "kind": "component", + "members": [ + { + "name": "transformer", + "type": "diffusers.models.transformers.transformer_flux3.Flux3Transformer2DModel" + } + ], + "owner": "same_loader", + "scope": "Flux3ModularPipeline", + "state": null + }, + "types": ["diffusers_auto_model"] + }, + { + "direction": "input", + "hidden": false, + "name": "scheduler", + "required": true, + "roles": ["component"], + "semanticName": "scheduler", + "semantics": { + "kind": "component", + "members": [ + { + "name": "scheduler", + "type": "diffusers.schedulers.scheduling_flow_match_euler_discrete.FlowMatchEulerDiscreteScheduler" + } + ], + "owner": "same_loader", + "scope": "Flux3ModularPipeline", + "state": null + }, + "types": ["diffusers_auto_model"] + }, + { + "direction": "input", + "hidden": false, + "name": "guider", + "required": false, + "roles": ["component"], + "semanticName": "guider", + "semantics": { + "kind": "component", + "members": [ + { "name": "guider", "type": "diffusers.guiders.classifier_free_guidance.ClassifierFreeGuidance" } + ], + "owner": "same_loader", + "scope": "Flux3ModularPipeline", + "state": null + }, + "types": ["custom_guider"] + }, + { + "direction": "output", + "hidden": false, + "name": "latents", + "required": false, + "roles": ["value"], + "semanticName": "latents", + "semantics": { + "kind": "latents", + "members": [], + "owner": "same_loader", + "scope": "Flux3ModularPipeline", + "state": null + }, + "types": ["latents"] + }, + { + "direction": "output", + "hidden": false, + "name": "doc", + "required": false, + "roles": ["value"], + "semanticName": "doc", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": false, + "name": "reference_binding", + "required": false, + "roles": ["value"], + "semanticName": "reference_binding", + "semantics": { + "kind": "opaque", + "members": [], + "owner": "none", + "scope": "Flux3ModularPipeline", + "state": null + }, + "types": ["reference_conditioning"] + } + ], + "support": "declared", + "task": "text_to_image", + "workflowId": "text2image" + } + }, + { + "node": { + "action": "DecodeLatents", + "cache": false, + "category": "sampler", + "description": "", + "label": "Decode Latents", + "memory": [0, 0, 0], + "module": "modules.ModularDiffusers", + "params": { + "doc": { "display": "output", "label": "Doc", "type": "string" }, + "images": { "display": "output", "label": "Images", "type": "image" }, + "latents": { "display": "input", "label": "Latents *", "type": "latents" }, + "vae": { + "display": "input", + "label": "VAE *", + "onSignal": "update_node", + "signalCompatibility": { "role": "vae" }, + "type": "diffusers_auto_model" + } + }, + "resizable": true, + "skipParamsCheck": true, + "style": {}, + "time": [0, 0, 0], + "type": "custom" + }, + "operation": { + "binding": { "pipelineClass": "Flux3ModularPipeline", "values": {} }, + "blockName": "decode", + "decomposition": "block", + "nodeKey": "modules.ModularDiffusers.DecodeLatents", + "nodeType": "decoder", + "operationId": "diffusion.decode_latents", + "pipelineClass": "Flux3ModularPipeline", + "ports": [ + { + "direction": "input", + "hidden": false, + "name": "latents", + "required": true, + "roles": ["value"], + "semanticName": "latents", + "semantics": { + "kind": "latents", + "members": [], + "owner": "same_loader", + "scope": "Flux3ModularPipeline", + "state": null + }, + "types": ["latents"] + }, + { + "direction": "input", + "hidden": false, + "name": "vae", + "required": true, + "roles": ["component"], + "semanticName": "vae", + "semantics": { + "kind": "component", + "members": [ + { "name": "vae", "type": "diffusers.models.autoencoders.autoencoder_kl_flux2.AutoencoderKLFlux2" } + ], + "owner": "same_loader", + "scope": "Flux3ModularPipeline", + "state": null + }, + "types": ["diffusers_auto_model"] + }, + { + "direction": "output", + "hidden": false, + "name": "images", + "required": false, + "roles": ["value"], + "semanticName": "images", + "semantics": { "kind": "media", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["image"] + }, + { + "direction": "output", + "hidden": false, + "name": "doc", + "required": false, + "roles": ["value"], + "semanticName": "doc", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + } + ], + "support": "declared", + "task": "text_to_image", + "workflowId": "text2image" + } + } + ], + "pipelineClass": "Flux3ModularPipeline", + "requiredInputs": [{ "field": "prompt", "operationId": "diffusion.encode_prompt" }], + "schemaVersion": 1, + "sharedInputs": [], + "task": "text_to_image", + "upstreamBlocks": ["text_encoder", "denoise", "decode"], + "workflowId": "text2image" + }, + { + "authoring": { + "ancillaryOperations": [ + { + "adapter": { + "declarationSha256": "sha256:2a3d4685988b418115008bbb95fb3e948097580c0bedd2940ea3fe1e40254dc2", + "id": "transformers-prompt-enhancement-v1" + }, + "bindings": { + "output": { "field": "proposal_summary", "role": "proposal" }, + "owner": { + "layoutField": "layout_conditioning", + "promptField": "prompt", + "referenceSource": null, + "role": "prompt" + }, + "request": { + "imagesField": "images", + "layoutField": "layout_conditioning", + "promptField": "prompt", + "role": "proposal" + } + }, + "contentHash": "studio-ancillary-v1-da9609cb", + "edges": [["provider", "model", "proposal", "model"]], + "executionPurpose": "explicit_preview", + "fieldOverrides": [ + ["proposal", "enhancement_max_new_tokens", { "hidden": false }], + ["proposal", "max_new_tokens", { "hidden": true }] + ], + "id": "flux3-klein:official:text-to-image:prompt-preview-append-fp32:v1:preview", + "initialValues": [ + ["provider", "model_id", { "source": "hub", "value": "black-forest-labs/flux-3-image-klein-pup" }], + ["provider", "revision", "3f3edb52b2c55de0d49feab28598b68f7f8e4830"], + ["proposal", "operation", "enhance_prompt_append_details"], + ["provider", "dtype", "float32"], + ["provider", "device", "cuda:0"], + ["provider", "quantization_mode", "none"], + ["proposal", "max_input_tokens", 4096] + ], + "layoutPolicy": "append-details-preserve-layout-v1", + "parent": { + "authoringRecipeId": "flux3-klein:official:text-to-image:prompt-preview-append-fp32:v1", + "baseSpecContentHash": "studio-spec-v1-8411b4e0", + "baseSpecId": "flux3-klein:official-provider:v1:text-to-image:v1", + "executionProfileId": "flux3-klein:official-provider:v1", + "pipelineClass": "Flux3DistilledModularPipeline", + "task": "text_to_image" + }, + "roles": [ + ["provider", "modules.HuggingFaceTransformers.LoadImageTextToTextModel", -720, -400], + ["proposal", "modules.HuggingFaceTransformers.GenerateImageVideoText", -360, -400] + ], + "schemaVersion": 1, + "sourceRegions": false, + "verification": { + "adapter": { + "declarationSha256": "sha256:2a3d4685988b418115008bbb95fb3e948097580c0bedd2940ea3fe1e40254dc2", + "id": "transformers-prompt-enhancement-v1" + }, + "chatTemplateSha256": "sha256:a4aee8afcf2e0711942cf848899be66016f8d14a889ff9ede07bca099c28f715", + "layoutRequestSuffixSha256": "sha256:5c48f090514be3472650c23ccd5f6cc19077bf68cd163338aaf6903f720a7561", + "modelReceipt": { + "library": "transformers", + "loader": { "modelAutoClass": "AutoModelForImageTextToText", "preprocessorAutoClass": "AutoProcessor" }, + "runtime": { + "architectures": ["Qwen3_5ForConditionalGeneration"], + "modelClass": "Qwen3_5ForConditionalGeneration", + "modelType": "qwen3_5", + "preprocessorClass": "Qwen3VLProcessor", + "transformersVersion": "5.18.0" + }, + "schemaVersion": 1, + "security": { + "hostedInference": false, + "localFilesOnly": true, + "safetensorsOnly": true, + "trustRemoteCode": false + }, + "source": { + "kind": "hub", + "repository": "black-forest-labs/flux-3-image-klein-pup", + "revision": "3f3edb52b2c55de0d49feab28598b68f7f8e4830" + }, + "task": "image-video-to-text" + }, + "quantizationRecipes": [ + { "mode": "none" }, + { + "computeDtype": "bfloat16", + "doubleQuant": true, + "mode": "bnb_4bit", + "quantType": "nf4", + "skipModules": ["lm_head", "model.visual"] + } + ], + "requestInputs": { + "maxImagePixelsField": "max_image_pixels", + "maxInputTokensField": "max_input_tokens", + "maxNewTokensField": "enhancement_max_new_tokens", + "minNewTokensField": "min_new_tokens", + "operationField": "operation", + "role": "proposal" + }, + "runtimeInputs": { + "deviceField": "device", + "dtypeField": "dtype", + "modelField": "model_id", + "quantizationField": "quantization_mode", + "revisionField": "revision", + "role": "provider" + }, + "schemaVersion": 1, + "supportedPromptModes": ["t2i", "i2i"], + "systemPromptSha256ByMode": { + "i2i": "95cec384d5b6d341caa9fb3f2c7ca45ee80c2364b3a95d4044aebf976f6dd3bf", + "i2i_bbox": "9ad10f947e401337cf155cac0518cc428159ef16f2f029f48aae2aaab8380a5e", + "t2i": "8b235a421bce2213d11ada01f5a1244443dd72303ffbb4cc9e5a0d8b0de5ab6f", + "t2i_bbox": "5f513d8ce5838732919f9e645507aa20ff373e88bf93132c768e063c9db3151f" + }, + "systemPromptsSha256": "sha256:b5da3ed8bc04ab59dbdb747930f7dbff847e868903fed8028f85ee1a4ac82fb4" + } + } + ], + "baseSpecContentHash": "studio-spec-v1-8411b4e0", + "baseSpecId": "flux3-klein:official-provider:v1:text-to-image:v1", + "bindings": [ + ["models", "model_type", "pipelineClass"], + ["models", "repo_id", "artifact"], + ["models", "revision", "defaultRevision"], + ["models", "dtype", "dtype"], + ["models", "device", "device"], + ["models", "auto_offload", "autoOffload"], + ["models", "offload_mode", "offloadMode"], + ["models", "trust_remote_code", "false"], + ["prompt", "prompt", "prompt"], + ["denoise", "width", "width"], + ["denoise", "height", "height"], + ["denoise", "seed", "seed"], + ["denoise", "num_inference_steps", "steps"], + ["prompt", "max_sequence_length", "maxSequenceLength"], + ["models", "weight_format", "weightFormat"] + ], + "canonicalizationVersion": 1, + "contentHash": "studio-authoring-v1-fb232b6a", + "edges": [ + ["models", "text_encoders", "prompt", "text_encoders"], + ["models", "unet_out", "denoise", "unet"], + ["models", "scheduler", "denoise", "scheduler"], + ["models", "vae_out", "decode", "vae"], + ["prompt", "embeddings", "denoise", "embeddings"], + ["denoise", "latents", "decode", "latents"], + ["decode", "images", "preview", "image"] + ], + "executionProfileIds": ["flux3-klein:official-provider:v1"], + "id": "flux3-klein:official:text-to-image:prompt-preview-append-fp32:v1", + "initialValues": [], + "roles": [ + ["models", "modules.ModularDiffusers.ModelsLoader", -720, -80], + ["prompt", "modules.ModularDiffusers.EncodePrompt", -360, -240], + ["denoise", "modules.ModularDiffusers.Denoise", 80, -80], + ["decode", "modules.ModularDiffusers.DecodeLatents", 440, -80], + ["preview", "modules.Image.Preview", 800, -80] + ], + "schemaVersion": 1 + }, + "edges": [ + { + "source": "diffusion.load_models", + "sourceHandle": "text_encoders", + "target": "diffusion.encode_prompt", + "targetHandle": "text_encoders" + }, + { + "source": "diffusion.load_models", + "sourceHandle": "scheduler", + "target": "diffusion.denoise", + "targetHandle": "scheduler" + }, + { + "source": "diffusion.load_models", + "sourceHandle": "unet_out", + "target": "diffusion.denoise", + "targetHandle": "unet" + }, + { + "source": "diffusion.load_models", + "sourceHandle": "vae_out", + "target": "diffusion.decode_latents", + "targetHandle": "vae" + }, + { + "source": "diffusion.encode_prompt", + "sourceHandle": "embeddings", + "target": "diffusion.denoise", + "targetHandle": "embeddings" + }, + { + "source": "diffusion.denoise", + "sourceHandle": "latents", + "target": "diffusion.decode_latents", + "targetHandle": "latents" + } + ], + "nodes": [ + { + "node": { + "action": "ModelsLoader", + "cache": false, + "category": "loader", + "description": "", + "label": "Load Models", + "memory": [0, 0, 0], + "module": "modules.ModularDiffusers", + "params": { + "attention_backend": { + "default": "inherit", + "description": "Inherit preserves existing native component defaults; explicit choices use the ordinary Diffusers attention API.", + "label": "Attention Backend", + "options": [ + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "inherit", + "schemaVersion": 1, + "value": "inherit" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "auto", + "schemaVersion": 1, + "value": "auto" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "native", + "schemaVersion": 1, + "value": "native" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "_native_math", + "schemaVersion": 1, + "value": "_native_math" + } + ], + "type": "string" + }, + "auto_offload": { "label": "Enable Auto Offload", "type": "boolean", "value": true }, + "controlnet": { + "display": "input", + "hidden": true, + "label": "ControlNet", + "type": "diffusers_auto_model" + }, + "device": { + "label": "Device", + "options": { + "cpu": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "cpu", + "schemaVersion": 1, + "value": "cpu" + }, + "cpu:0": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "cpu:0", + "schemaVersion": 1, + "value": "cpu:0" + } + }, + "type": "string", + "value": "cpu:0" + }, + "dtype": { + "label": "dtype", + "options": [ + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "float32", + "schemaVersion": 1, + "value": "float32" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "float16", + "schemaVersion": 1, + "value": "float16" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "bfloat16", + "schemaVersion": 1, + "value": "bfloat16" + } + ], + "value": "bfloat16" + }, + "image_encoder": { + "connectionRole": "image_encoder", + "display": "output", + "hidden": true, + "label": "Image Encoder", + "signal": { + "direction": "output", + "origin": "modiff_pipeline_identity", + "value": "Flux3DistilledModularPipeline" + }, + "type": "diffusers_auto_model" + }, + "inpaint_compatibility": { + "default": "native", + "description": "Technical compatibility selection for the reviewed Qwen Edit inpainting candidate; existing nodes retain native policy.", + "hidden": true, + "label": "Inpaint Compatibility", + "options": [ + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "native", + "schemaVersion": 1, + "value": "native" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "whole_v1", + "schemaVersion": 1, + "value": "whole_v1" + } + ], + "type": "string" + }, + "lora_list": { "display": "input", "label": "Lora", "type": "custom_lora" }, + "model_type": { + "description": "Selects the Modular Diffusers pipeline class. This filters compatible checkpoints and publishes the component contract used by connected nodes; it is not the model checkpoint itself.", + "label": "Pipeline Type", + "onChange": "set_filters", + "options": { + "": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "", + "schemaVersion": 1, + "value": "" + }, + "AnimaModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Anima", + "schemaVersion": 1, + "value": "AnimaModularPipeline" + }, + "Cosmos3DistilledModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Cosmos 3 Distilled", + "schemaVersion": 1, + "value": "Cosmos3DistilledModularPipeline" + }, + "Cosmos3OmniModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Cosmos 3 Nano", + "schemaVersion": 1, + "value": "Cosmos3OmniModularPipeline" + }, + "DummyCustomPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Custom", + "schemaVersion": 1, + "value": "DummyCustomPipeline" + }, + "ErnieImageModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "ERNIE Image Turbo", + "schemaVersion": 1, + "value": "ErnieImageModularPipeline" + }, + "Flux2KleinBaseModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Flux 2 Klein Base", + "schemaVersion": 1, + "value": "Flux2KleinBaseModularPipeline" + }, + "Flux2KleinModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Flux 2 Klein Distilled", + "schemaVersion": 1, + "value": "Flux2KleinModularPipeline" + }, + "Flux2ModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Flux 2", + "schemaVersion": 1, + "value": "Flux2ModularPipeline" + }, + "Flux3DistilledModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "FLUX 3 Image Klein", + "schemaVersion": 1, + "value": "Flux3DistilledModularPipeline" + }, + "Flux3ModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "FLUX 3 Image Klein Base", + "schemaVersion": 1, + "value": "Flux3ModularPipeline" + }, + "FluxKontextModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Flux Kontext", + "schemaVersion": 1, + "value": "FluxKontextModularPipeline" + }, + "FluxModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Flux", + "schemaVersion": 1, + "value": "FluxModularPipeline" + }, + "HeliosModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Helios", + "schemaVersion": 1, + "value": "HeliosModularPipeline" + }, + "HeliosPyramidDistilledModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Helios Pyramid Distilled", + "schemaVersion": 1, + "value": "HeliosPyramidDistilledModularPipeline" + }, + "HeliosPyramidModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Helios Pyramid", + "schemaVersion": 1, + "value": "HeliosPyramidModularPipeline" + }, + "HunyuanVideo15ModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "HunyuanVideo 1.5", + "schemaVersion": 1, + "value": "HunyuanVideo15ModularPipeline" + }, + "Ideogram4ModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Ideogram 4 (Contract only)", + "schemaVersion": 1, + "value": "Ideogram4ModularPipeline" + }, + "Krea2ModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Krea 2 (Contract only)", + "schemaVersion": 1, + "value": "Krea2ModularPipeline" + }, + "Krea2TurboModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Krea 2 Turbo (Contract only)", + "schemaVersion": 1, + "value": "Krea2TurboModularPipeline" + }, + "LTX25ModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "LTX-2.5 (Contract only)", + "schemaVersion": 1, + "value": "LTX25ModularPipeline" + }, + "MiniMaxH3ModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "MiniMax H3", + "schemaVersion": 1, + "value": "MiniMaxH3ModularPipeline" + }, + "MiniMaxMusic3ModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "MiniMax Music 3", + "schemaVersion": 1, + "value": "MiniMaxMusic3ModularPipeline" + }, + "QwenImageEditModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Qwen-Image-Edit", + "schemaVersion": 1, + "value": "QwenImageEditModularPipeline" + }, + "QwenImageEditPlusModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Qwen-Image-Edit-2511", + "schemaVersion": 1, + "value": "QwenImageEditPlusModularPipeline" + }, + "QwenImageLayeredModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Qwen-Image-Layered", + "schemaVersion": 1, + "value": "QwenImageLayeredModularPipeline" + }, + "QwenImageModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Qwen-Image-2512", + "schemaVersion": 1, + "value": "QwenImageModularPipeline" + }, + "StableDiffusion3ModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Stable Diffusion 3 (Contract only)", + "schemaVersion": 1, + "value": "StableDiffusion3ModularPipeline" + }, + "StableDiffusionXLModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Stable Diffusion XL", + "schemaVersion": 1, + "value": "StableDiffusionXLModularPipeline" + }, + "WanAnimate2DistilledModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Wan Animate 2 Distilled", + "schemaVersion": 1, + "value": "WanAnimate2DistilledModularPipeline" + }, + "WanAnimate2ModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Wan Animate 2", + "schemaVersion": 1, + "value": "WanAnimate2ModularPipeline" + }, + "WanImage2VideoModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "WAN2 I2V", + "schemaVersion": 1, + "value": "WanImage2VideoModularPipeline" + }, + "WanModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "WAN2 T2V", + "schemaVersion": 1, + "value": "WanModularPipeline" + }, + "ZImageModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Z-Image", + "schemaVersion": 1, + "value": "ZImageModularPipeline" + } + }, + "type": "string", + "value": "Flux3DistilledModularPipeline" + }, + "modiff_pipeline_identity": { + "hidden": true, + "label": "Custom Pipeline Identity", + "type": "object", + "value": null + }, + "offload_mode": { + "default": "model_cpu", + "label": "Offload Mode", + "options": [ + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "auto_cpu", + "schemaVersion": 1, + "value": "auto_cpu" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "none", + "schemaVersion": 1, + "value": "none" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "model_cpu", + "schemaVersion": 1, + "value": "model_cpu" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "group_cpu", + "schemaVersion": 1, + "value": "group_cpu" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "group_disk", + "schemaVersion": 1, + "value": "group_disk" + } + ], + "type": "string", + "value": "model_cpu" + }, + "pipeline_components": { + "connectionRole": "pipeline_components", + "display": "output", + "hidden": false, + "label": "Pipeline Components", + "signal": { + "direction": "output", + "origin": "modiff_pipeline_identity", + "value": "Flux3DistilledModularPipeline" + }, + "type": "diffusers_modular_pipeline_components" + }, + "quant_config": { "display": "input", "label": "Quant Config", "type": "quant_config" }, + "refresh_pipeline_identity_button": { + "display": "ui_button", + "hidden": true, + "label": "Review and Refresh Custom Contract", + "onChange": "refresh_pipeline_identity", + "value": false + }, + "repo_id": { + "display": "modelselect", + "fieldOptions": { + "filter": { "hub": { "className": ["Flux3DistilledModularPipeline"] } }, + "noValidation": true, + "sources": ["hub", "local"] + }, + "label": "Repository ID", + "onChange": "refresh_pipeline_identity", + "type": "string", + "value": { "source": "hub", "value": "black-forest-labs/flux-3-image-klein" } + }, + "reviewed_variant": { + "description": "Select an immutable, reviewed checkpoint for this exact Modular Diffusers pipeline family. Changing it does not replace the workflow graph or reset its parameters.", + "fieldOptions": { "controlTier": "essential" }, + "hidden": true, + "label": "Model", + "options": [ + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "black-forest-labs/flux-3-image-klein", + "schemaVersion": 1, + "value": "black-forest-labs/flux-3-image-klein" + } + ], + "type": "string", + "value": "black-forest-labs/flux-3-image-klein" + }, + "revision": { + "description": "Required exact 40-character commit hash for Hub custom contracts.", + "label": "Revision", + "onChange": "refresh_pipeline_identity", + "type": "string", + "value": "8454017f9ebaada30c998fccd9f67a80c7580f68" + }, + "scheduler": { + "connectionRole": "scheduler", + "display": "output", + "hidden": false, + "label": "Scheduler", + "signal": { + "direction": "output", + "origin": "modiff_pipeline_identity", + "value": "Flux3DistilledModularPipeline" + }, + "type": "diffusers_auto_model" + }, + "text_encoders": { + "connectionRole": "text_encoders", + "display": "output", + "hidden": false, + "label": "Text Encoders", + "signal": { + "direction": "output", + "origin": "modiff_pipeline_identity", + "value": "Flux3DistilledModularPipeline" + }, + "type": "diffusers_auto_models" + }, + "trust_remote_code": { + "description": "Repository code execution is disabled; keep this off for contract preview.", + "label": "Trust Remote Code", + "onChange": "refresh_pipeline_identity", + "type": "boolean", + "value": false + }, + "unet": { "display": "input", "hidden": false, "label": "Denoise Model", "type": "diffusers_auto_model" }, + "unet_out": { + "connectionRole": "denoiser", + "display": "output", + "hidden": false, + "label": "Denoise Model", + "signal": { + "direction": "output", + "origin": "modiff_pipeline_identity", + "value": "Flux3DistilledModularPipeline" + }, + "type": "diffusers_auto_model" + }, + "vae": { "display": "input", "hidden": false, "label": "VAE", "type": "diffusers_auto_model" }, + "vae_out": { + "connectionRole": "vae", + "display": "output", + "hidden": false, + "label": "VAE", + "signal": { + "direction": "output", + "origin": "modiff_pipeline_identity", + "value": "Flux3DistilledModularPipeline" + }, + "type": "diffusers_auto_model" + }, + "vae_slicing": { + "default": null, + "description": "An unset policy preserves the native VAE configuration; templates may bind an explicit boolean.", + "hidden": true, + "label": "VAE Slicing", + "type": "boolean" + }, + "vae_tiling": { + "default": null, + "description": "An unset policy preserves the native VAE configuration; templates may bind an explicit boolean.", + "hidden": true, + "label": "VAE Tiling", + "type": "boolean" + }, + "weight_format": { + "default": "native", + "description": "Select a backend-declared immutable component format. Missing reviewed files must be installed through Model Manager.", + "fieldOptions": { "controlTier": "advanced" }, + "hidden": false, + "label": "Weight Format", + "options": [ + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "native", + "schemaVersion": 1, + "value": "native" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "fp8r", + "schemaVersion": 1, + "value": "fp8r" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "nvfp4", + "schemaVersion": 1, + "value": "nvfp4" + } + ], + "type": "string" + }, + "weight_loading_mode": { + "default": "cpu", + "description": "Load weights on CPU or CUDA before disk offload. CUDA loading needs room for a complete component and is available only for supported models.", + "fieldOptions": { "controlTier": "advanced" }, + "label": "Weight Loading", + "options": [ + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "cpu", + "schemaVersion": 1, + "value": "cpu" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "cuda", + "schemaVersion": 1, + "value": "cuda" + } + ], + "type": "string" + }, + "workflow_id": { + "description": "Exact reviewed component partition selected by a first-party Cluster Node.", + "hidden": true, + "label": "Reviewed Workflow", + "type": "string", + "value": "text2image" + } + }, + "resizable": true, + "skipParamsCheck": true, + "style": {}, + "time": [0, 0, 0], + "type": "custom" + }, + "operation": { + "binding": { + "pipelineClass": "Flux3DistilledModularPipeline", + "values": { "model_type": "Flux3DistilledModularPipeline" } + }, + "blockName": null, + "decomposition": "loader", + "nodeKey": "modules.ModularDiffusers.ModelsLoader", + "nodeType": "loader", + "operationId": "diffusion.load_models", + "pipelineClass": "Flux3DistilledModularPipeline", + "ports": [ + { + "direction": "input", + "hidden": false, + "name": "model_type", + "required": false, + "roles": ["value"], + "semanticName": "model_type", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": false, + "name": "repo_id", + "required": false, + "roles": ["value"], + "semanticName": "repo_id", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": true, + "name": "reviewed_variant", + "required": false, + "roles": ["value"], + "semanticName": "reviewed_variant", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": false, + "name": "device", + "required": false, + "roles": ["value"], + "semanticName": "device", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": false, + "name": "attention_backend", + "required": false, + "roles": ["value"], + "semanticName": "attention_backend", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": true, + "name": "vae_slicing", + "required": false, + "roles": ["value"], + "semanticName": "vae_slicing", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["boolean"] + }, + { + "direction": "input", + "hidden": true, + "name": "vae_tiling", + "required": false, + "roles": ["value"], + "semanticName": "vae_tiling", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["boolean"] + }, + { + "direction": "input", + "hidden": true, + "name": "inpaint_compatibility", + "required": false, + "roles": ["value"], + "semanticName": "inpaint_compatibility", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": false, + "name": "trust_remote_code", + "required": false, + "roles": ["value"], + "semanticName": "trust_remote_code", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["boolean"] + }, + { + "direction": "input", + "hidden": false, + "name": "revision", + "required": false, + "roles": ["value"], + "semanticName": "revision", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": true, + "name": "workflow_id", + "required": false, + "roles": ["value"], + "semanticName": "workflow_id", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": true, + "name": "modiff_pipeline_identity", + "required": false, + "roles": ["value"], + "semanticName": "modiff_pipeline_identity", + "semantics": { + "kind": "opaque", + "members": [], + "owner": "none", + "scope": "Flux3DistilledModularPipeline", + "state": null + }, + "types": ["object"] + }, + { + "direction": "input", + "hidden": false, + "name": "auto_offload", + "required": false, + "roles": ["value"], + "semanticName": "auto_offload", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["boolean"] + }, + { + "direction": "input", + "hidden": false, + "name": "offload_mode", + "required": false, + "roles": ["value"], + "semanticName": "offload_mode", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": false, + "name": "weight_loading_mode", + "required": false, + "roles": ["value"], + "semanticName": "weight_loading_mode", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": true, + "name": "weight_format", + "required": false, + "roles": ["value"], + "semanticName": "weight_format", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": false, + "name": "unet", + "required": false, + "roles": ["component"], + "semanticName": "unet", + "semantics": { + "kind": "component", + "members": [ + { + "name": "transformer", + "type": "diffusers.models.transformers.transformer_flux3.Flux3Transformer2DModel" + } + ], + "owner": "same_loader", + "scope": "Flux3DistilledModularPipeline", + "state": null + }, + "types": ["diffusers_auto_model"] + }, + { + "direction": "input", + "hidden": false, + "name": "vae", + "required": false, + "roles": ["component"], + "semanticName": "vae", + "semantics": { + "kind": "component", + "members": [ + { "name": "vae", "type": "diffusers.models.autoencoders.autoencoder_kl_flux2.AutoencoderKLFlux2" } + ], + "owner": "same_loader", + "scope": "Flux3DistilledModularPipeline", + "state": null + }, + "types": ["diffusers_auto_model"] + }, + { + "direction": "input", + "hidden": true, + "name": "controlnet", + "required": false, + "roles": ["component"], + "semanticName": "controlnet", + "semantics": { + "kind": "component", + "members": [], + "owner": "same_loader", + "scope": "Flux3DistilledModularPipeline", + "state": null + }, + "types": ["diffusers_auto_model"] + }, + { + "direction": "input", + "hidden": false, + "name": "lora_list", + "required": false, + "roles": ["value"], + "semanticName": "lora_list", + "semantics": { + "kind": "opaque", + "members": [], + "owner": "none", + "scope": "Flux3DistilledModularPipeline", + "state": null + }, + "types": ["custom_lora"] + }, + { + "direction": "output", + "hidden": false, + "name": "text_encoders", + "required": false, + "roles": ["component"], + "semanticName": "text_encoders", + "semantics": { + "kind": "component", + "members": [ + { + "name": "text_encoder", + "type": "transformers.models.qwen3_vl.modeling_qwen3_vl.Qwen3VLForConditionalGeneration" + }, + { "name": "tokenizer", "type": "transformers.models.auto.processing_auto.AutoProcessor" } + ], + "owner": "same_loader", + "scope": "Flux3DistilledModularPipeline", + "state": null + }, + "types": ["diffusers_auto_models"] + }, + { + "direction": "output", + "hidden": false, + "name": "unet_out", + "required": false, + "roles": ["component"], + "semanticName": "unet_out", + "semantics": { + "kind": "component", + "members": [ + { + "name": "transformer", + "type": "diffusers.models.transformers.transformer_flux3.Flux3Transformer2DModel" + } + ], + "owner": "same_loader", + "scope": "Flux3DistilledModularPipeline", + "state": null + }, + "types": ["diffusers_auto_model"] + }, + { + "direction": "output", + "hidden": false, + "name": "vae_out", + "required": false, + "roles": ["component"], + "semanticName": "vae_out", + "semantics": { + "kind": "component", + "members": [ + { "name": "vae", "type": "diffusers.models.autoencoders.autoencoder_kl_flux2.AutoencoderKLFlux2" } + ], + "owner": "same_loader", + "scope": "Flux3DistilledModularPipeline", + "state": null + }, + "types": ["diffusers_auto_model"] + }, + { + "direction": "output", + "hidden": false, + "name": "scheduler", + "required": false, + "roles": ["component"], + "semanticName": "scheduler", + "semantics": { + "kind": "component", + "members": [ + { + "name": "scheduler", + "type": "diffusers.schedulers.scheduling_flow_match_euler_discrete.FlowMatchEulerDiscreteScheduler" + } + ], + "owner": "same_loader", + "scope": "Flux3DistilledModularPipeline", + "state": null + }, + "types": ["diffusers_auto_model"] + }, + { + "direction": "output", + "hidden": true, + "name": "image_encoder", + "required": false, + "roles": ["component"], + "semanticName": "image_encoder", + "semantics": { + "kind": "component", + "members": [], + "owner": "same_loader", + "scope": "Flux3DistilledModularPipeline", + "state": null + }, + "types": ["diffusers_auto_model"] + }, + { + "direction": "output", + "hidden": false, + "name": "pipeline_components", + "required": false, + "roles": ["component"], + "semanticName": "pipeline_components", + "semantics": { + "kind": "component", + "members": [ + { + "name": "image_processor", + "type": "diffusers.modular_pipelines.flux3.image_processor.Flux3ImageProcessor" + }, + { + "name": "scheduler", + "type": "diffusers.schedulers.scheduling_flow_match_euler_discrete.FlowMatchEulerDiscreteScheduler" + }, + { + "name": "text_encoder", + "type": "transformers.models.qwen3_vl.modeling_qwen3_vl.Qwen3VLForConditionalGeneration" + }, + { "name": "tokenizer", "type": "transformers.models.auto.processing_auto.AutoProcessor" }, + { + "name": "transformer", + "type": "diffusers.models.transformers.transformer_flux3.Flux3Transformer2DModel" + }, + { "name": "vae", "type": "diffusers.models.autoencoders.autoencoder_kl_flux2.AutoencoderKLFlux2" } + ], + "owner": "same_loader", + "scope": "Flux3DistilledModularPipeline", + "state": null + }, + "types": ["diffusers_modular_pipeline_components"] + }, + { + "direction": "input", + "hidden": false, + "name": "quant_config", + "required": false, + "roles": ["value"], + "semanticName": "quant_config", + "semantics": { + "kind": "opaque", + "members": [], + "owner": "none", + "scope": "Flux3DistilledModularPipeline", + "state": null + }, + "types": ["quant_config"] + } + ], + "support": "declared", + "task": "text_to_image", + "workflowId": "text2image" + } + }, + { + "node": { + "action": "EncodePrompt", + "cache": false, + "category": "embedding", + "description": "", + "label": "Encode Prompt", + "memory": [0, 0, 0], + "module": "modules.ModularDiffusers", + "params": { + "doc": { "display": "output", "label": "Doc", "type": "string" }, + "embeddings": { "display": "output", "label": "Text Embeddings", "type": "embeddings" }, + "guider": { + "description": "Shared Diffusers guidance used by prompt encoding and denoising when the selected pipeline supports it.", + "display": "input", + "hidden": true, + "label": "Guider", + "type": "custom_guider" + }, + "layout_conditioning": { + "default": null, + "display": "layout", + "fieldOptions": { + "layoutConditioning": { + "schemaVersion": 2, + "sourceRegions": false, + "supportsBoundSourceRegions": true + } + }, + "label": "Layout Conditioning", + "type": "layout_conditioning" + }, + "layout_reference_summary": { + "description": "Display-only ordered reference identities and actual preprocessing sizes from the current encoder cache.", + "display": "output", + "hidden": true, + "label": "Bound Reference Summary", + "type": "string" + }, + "max_sequence_length": { + "default": 8192, + "label": "Maximum Sequence Length", + "max": 8192, + "min": 1, + "step": 1, + "type": "int" + }, + "prompt": { + "default": "", + "display": "textarea", + "fieldOptions": { "exampleAttribution": "MoDiff task example" }, + "label": "Prompt *", + "type": "string", + "value": "A red ceramic teapot on a wooden table beside a window, soft morning light, detailed photograph." + }, + "prompt_input": { + "description": "Optional connected prompt. When connected, this replaces the inline Prompt value.", + "display": "input", + "label": "Prompt Input", + "type": "string" + }, + "reference_binding": { + "default": null, + "display": "input", + "fieldOptions": { "referenceBinding": { "maxReferences": 10, "schemaVersion": 1 } }, + "label": "Reference Binding", + "type": "reference_conditioning" + }, + "text_encoder_out_layers": { + "default": [4, 8, 12, 16, 20, 24, 28, 32], + "display": "select", + "fieldOptions": { "multiple": true, "tupleLength": 8, "tupleValue": true }, + "label": "Text Encoder Layers", + "options": [ + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "0", + "schemaVersion": 1, + "value": "0" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "1", + "schemaVersion": 1, + "value": "1" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "2", + "schemaVersion": 1, + "value": "2" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "3", + "schemaVersion": 1, + "value": "3" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "4", + "schemaVersion": 1, + "value": "4" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "5", + "schemaVersion": 1, + "value": "5" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "6", + "schemaVersion": 1, + "value": "6" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "7", + "schemaVersion": 1, + "value": "7" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "8", + "schemaVersion": 1, + "value": "8" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "9", + "schemaVersion": 1, + "value": "9" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "10", + "schemaVersion": 1, + "value": "10" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "11", + "schemaVersion": 1, + "value": "11" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "12", + "schemaVersion": 1, + "value": "12" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "13", + "schemaVersion": 1, + "value": "13" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "14", + "schemaVersion": 1, + "value": "14" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "15", + "schemaVersion": 1, + "value": "15" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "16", + "schemaVersion": 1, + "value": "16" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "17", + "schemaVersion": 1, + "value": "17" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "18", + "schemaVersion": 1, + "value": "18" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "19", + "schemaVersion": 1, + "value": "19" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "20", + "schemaVersion": 1, + "value": "20" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "21", + "schemaVersion": 1, + "value": "21" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "22", + "schemaVersion": 1, + "value": "22" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "23", + "schemaVersion": 1, + "value": "23" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "24", + "schemaVersion": 1, + "value": "24" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "25", + "schemaVersion": 1, + "value": "25" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "26", + "schemaVersion": 1, + "value": "26" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "27", + "schemaVersion": 1, + "value": "27" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "28", + "schemaVersion": 1, + "value": "28" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "29", + "schemaVersion": 1, + "value": "29" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "30", + "schemaVersion": 1, + "value": "30" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "31", + "schemaVersion": 1, + "value": "31" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "32", + "schemaVersion": 1, + "value": "32" + } + ], + "type": "int" + }, + "text_encoders": { + "display": "input", + "label": "Text Encoders *", + "onSignal": "update_node", + "required": true, + "signalCompatibility": { "role": "text_encoders" }, + "type": "diffusers_auto_models" + } + }, + "resizable": true, + "skipParamsCheck": true, + "style": {}, + "time": [0, 0, 0], + "type": "custom" + }, + "operation": { + "binding": { "pipelineClass": "Flux3DistilledModularPipeline", "values": {} }, + "blockName": "text_encoder", + "decomposition": "block", + "nodeKey": "modules.ModularDiffusers.EncodePrompt", + "nodeType": "text_encoder", + "operationId": "diffusion.encode_prompt", + "pipelineClass": "Flux3DistilledModularPipeline", + "ports": [ + { + "direction": "input", + "hidden": false, + "name": "prompt", + "required": true, + "roles": ["value"], + "semanticName": "prompt", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": false, + "name": "max_sequence_length", + "required": false, + "roles": ["value"], + "semanticName": "max_sequence_length", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["int"] + }, + { + "direction": "input", + "hidden": false, + "name": "text_encoder_out_layers", + "required": false, + "roles": ["value"], + "semanticName": "text_encoder_out_layers", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["int"] + }, + { + "direction": "input", + "hidden": false, + "name": "text_encoders", + "required": true, + "roles": ["component"], + "semanticName": "text_encoders", + "semantics": { + "kind": "component", + "members": [ + { + "name": "text_encoder", + "type": "transformers.models.qwen3_vl.modeling_qwen3_vl.Qwen3VLForConditionalGeneration" + }, + { "name": "tokenizer", "type": "transformers.models.auto.processing_auto.AutoProcessor" } + ], + "owner": "same_loader", + "scope": "Flux3DistilledModularPipeline", + "state": null + }, + "types": ["diffusers_auto_models"] + }, + { + "direction": "output", + "hidden": false, + "name": "embeddings", + "required": false, + "roles": ["value"], + "semanticName": "embeddings", + "semantics": { + "kind": "conditioning", + "members": [], + "owner": "same_loader", + "scope": "Flux3DistilledModularPipeline", + "state": null + }, + "types": ["embeddings"] + }, + { + "direction": "output", + "hidden": false, + "name": "doc", + "required": false, + "roles": ["value"], + "semanticName": "doc", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": false, + "name": "layout_conditioning", + "required": false, + "roles": ["value"], + "semanticName": "layout_conditioning", + "semantics": { + "kind": "opaque", + "members": [], + "owner": "none", + "scope": "Flux3DistilledModularPipeline", + "state": null + }, + "types": ["layout_conditioning"] + }, + { + "direction": "input", + "hidden": false, + "name": "reference_binding", + "required": false, + "roles": ["value"], + "semanticName": "reference_binding", + "semantics": { + "kind": "opaque", + "members": [], + "owner": "none", + "scope": "Flux3DistilledModularPipeline", + "state": null + }, + "types": ["reference_conditioning"] + }, + { + "direction": "input", + "hidden": false, + "name": "prompt_input", + "required": false, + "roles": ["value"], + "semanticName": "prompt", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + } + ], + "support": "declared", + "task": "text_to_image", + "workflowId": "text2image" + } + }, + { + "node": { + "action": "Denoise", + "cache": false, + "category": "sampler", + "description": "", + "label": "Denoise", + "memory": [0, 0, 0], + "module": "modules.ModularDiffusers", + "params": { + "doc": { "display": "output", "label": "Doc", "type": "string" }, + "embeddings": { "display": "input", "label": "Text Embeddings *", "type": "embeddings" }, + "height": { "default": 1024, "label": "Height", "min": 64, "step": 16, "type": "int", "value": 1024 }, + "image_cond_latents": { "display": "input", "label": "Reference Latents", "type": "latents" }, + "latents": { "display": "output", "label": "Latents", "type": "latents" }, + "num_images_per_prompt": { + "default": 1, + "label": "Images Per Prompt", + "max": 8, + "min": 1, + "step": 1, + "type": "int" + }, + "num_inference_steps": { + "default": 16, + "display": "slider", + "label": "Steps", + "max": 100, + "min": 1, + "type": "int", + "value": 16 + }, + "reference_binding": { + "default": null, + "display": "input", + "fieldOptions": { "referenceBinding": { "maxReferences": 10, "schemaVersion": 1 } }, + "label": "Reference Binding", + "type": "reference_conditioning" + }, + "scheduler": { + "display": "input", + "label": "Scheduler *", + "signalCompatibility": { "role": "scheduler" }, + "type": "diffusers_auto_model" + }, + "seed": { + "default": 0, + "display": "random", + "label": "Seed", + "max": 4294967295, + "min": 0, + "type": "int" + }, + "unet": { + "display": "input", + "label": "Denoise Model *", + "onSignal": [ + "update_node", + { "action": "signal", "target": "guider" }, + { "action": "signal", "target": "controlnet_bundle" } + ], + "required": true, + "signalCompatibility": { "role": "denoiser" }, + "type": "diffusers_auto_model" + }, + "width": { "default": 1024, "label": "Width", "min": 64, "step": 16, "type": "int", "value": 1024 } + }, + "resizable": true, + "skipParamsCheck": true, + "style": {}, + "time": [0, 0, 0], + "type": "custom" + }, + "operation": { + "binding": { "pipelineClass": "Flux3DistilledModularPipeline", "values": {} }, + "blockName": "denoise", + "decomposition": "block", + "nodeKey": "modules.ModularDiffusers.Denoise", + "nodeType": "denoise", + "operationId": "diffusion.denoise", + "pipelineClass": "Flux3DistilledModularPipeline", + "ports": [ + { + "direction": "input", + "hidden": false, + "name": "embeddings", + "required": true, + "roles": ["value"], + "semanticName": "embeddings", + "semantics": { + "kind": "conditioning", + "members": [], + "owner": "same_loader", + "scope": "Flux3DistilledModularPipeline", + "state": null + }, + "types": ["embeddings"] + }, + { + "direction": "input", + "hidden": false, + "name": "width", + "required": false, + "roles": ["value"], + "semanticName": "width", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["int"] + }, + { + "direction": "input", + "hidden": false, + "name": "height", + "required": false, + "roles": ["value"], + "semanticName": "height", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["int"] + }, + { + "direction": "input", + "hidden": false, + "name": "seed", + "required": false, + "roles": ["value"], + "semanticName": "seed", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["int"] + }, + { + "direction": "input", + "hidden": false, + "name": "num_inference_steps", + "required": false, + "roles": ["value"], + "semanticName": "num_inference_steps", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["int"] + }, + { + "direction": "input", + "hidden": false, + "name": "num_images_per_prompt", + "required": false, + "roles": ["value"], + "semanticName": "num_images_per_prompt", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["int"] + }, + { + "direction": "input", + "hidden": false, + "name": "image_cond_latents", + "required": false, + "roles": ["value"], + "semanticName": "image_cond_latents", + "semantics": { + "kind": "latents", + "members": [], + "owner": "same_loader", + "scope": "Flux3DistilledModularPipeline", + "state": null + }, + "types": ["latents"] + }, + { + "direction": "input", + "hidden": false, + "name": "unet", + "required": true, + "roles": ["component"], + "semanticName": "unet", + "semantics": { + "kind": "component", + "members": [ + { + "name": "transformer", + "type": "diffusers.models.transformers.transformer_flux3.Flux3Transformer2DModel" + } + ], + "owner": "same_loader", + "scope": "Flux3DistilledModularPipeline", + "state": null + }, + "types": ["diffusers_auto_model"] + }, + { + "direction": "input", + "hidden": false, + "name": "scheduler", + "required": true, + "roles": ["component"], + "semanticName": "scheduler", + "semantics": { + "kind": "component", + "members": [ + { + "name": "scheduler", + "type": "diffusers.schedulers.scheduling_flow_match_euler_discrete.FlowMatchEulerDiscreteScheduler" + } + ], + "owner": "same_loader", + "scope": "Flux3DistilledModularPipeline", + "state": null + }, + "types": ["diffusers_auto_model"] + }, + { + "direction": "output", + "hidden": false, + "name": "latents", + "required": false, + "roles": ["value"], + "semanticName": "latents", + "semantics": { + "kind": "latents", + "members": [], + "owner": "same_loader", + "scope": "Flux3DistilledModularPipeline", + "state": null + }, + "types": ["latents"] + }, + { + "direction": "output", + "hidden": false, + "name": "doc", + "required": false, + "roles": ["value"], + "semanticName": "doc", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": false, + "name": "reference_binding", + "required": false, + "roles": ["value"], + "semanticName": "reference_binding", + "semantics": { + "kind": "opaque", + "members": [], + "owner": "none", + "scope": "Flux3DistilledModularPipeline", + "state": null + }, + "types": ["reference_conditioning"] + } + ], + "support": "declared", + "task": "text_to_image", + "workflowId": "text2image" + } + }, + { + "node": { + "action": "DecodeLatents", + "cache": false, + "category": "sampler", + "description": "", + "label": "Decode Latents", + "memory": [0, 0, 0], + "module": "modules.ModularDiffusers", + "params": { + "doc": { "display": "output", "label": "Doc", "type": "string" }, + "images": { "display": "output", "label": "Images", "type": "image" }, + "latents": { "display": "input", "label": "Latents *", "type": "latents" }, + "vae": { + "display": "input", + "label": "VAE *", + "onSignal": "update_node", + "signalCompatibility": { "role": "vae" }, + "type": "diffusers_auto_model" + } + }, + "resizable": true, + "skipParamsCheck": true, + "style": {}, + "time": [0, 0, 0], + "type": "custom" + }, + "operation": { + "binding": { "pipelineClass": "Flux3DistilledModularPipeline", "values": {} }, + "blockName": "decode", + "decomposition": "block", + "nodeKey": "modules.ModularDiffusers.DecodeLatents", + "nodeType": "decoder", + "operationId": "diffusion.decode_latents", + "pipelineClass": "Flux3DistilledModularPipeline", + "ports": [ + { + "direction": "input", + "hidden": false, + "name": "latents", + "required": true, + "roles": ["value"], + "semanticName": "latents", + "semantics": { + "kind": "latents", + "members": [], + "owner": "same_loader", + "scope": "Flux3DistilledModularPipeline", + "state": null + }, + "types": ["latents"] + }, + { + "direction": "input", + "hidden": false, + "name": "vae", + "required": true, + "roles": ["component"], + "semanticName": "vae", + "semantics": { + "kind": "component", + "members": [ + { "name": "vae", "type": "diffusers.models.autoencoders.autoencoder_kl_flux2.AutoencoderKLFlux2" } + ], + "owner": "same_loader", + "scope": "Flux3DistilledModularPipeline", + "state": null + }, + "types": ["diffusers_auto_model"] + }, + { + "direction": "output", + "hidden": false, + "name": "images", + "required": false, + "roles": ["value"], + "semanticName": "images", + "semantics": { "kind": "media", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["image"] + }, + { + "direction": "output", + "hidden": false, + "name": "doc", + "required": false, + "roles": ["value"], + "semanticName": "doc", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + } + ], + "support": "declared", + "task": "text_to_image", + "workflowId": "text2image" + } + } + ], + "pipelineClass": "Flux3DistilledModularPipeline", + "requiredInputs": [{ "field": "prompt", "operationId": "diffusion.encode_prompt" }], + "schemaVersion": 1, + "sharedInputs": [], + "task": "text_to_image", + "upstreamBlocks": ["text_encoder", "denoise", "decode"], + "workflowId": "text2image" + }, + { + "authoring": { + "ancillaryOperations": [ + { + "adapter": { + "declarationSha256": "sha256:2a3d4685988b418115008bbb95fb3e948097580c0bedd2940ea3fe1e40254dc2", + "id": "transformers-prompt-enhancement-v1" + }, + "bindings": { + "output": { "field": "proposal_summary", "role": "proposal" }, + "owner": { + "layoutField": "layout_conditioning", + "promptField": "prompt", + "referenceSource": null, + "role": "prompt" + }, + "request": { + "imagesField": "images", + "layoutField": "layout_conditioning", + "promptField": "prompt", + "role": "proposal" + } + }, + "contentHash": "studio-ancillary-v1-989587f2", + "edges": [["provider", "model", "proposal", "model"]], + "executionPurpose": "explicit_preview", + "fieldOverrides": [ + ["proposal", "enhancement_max_new_tokens", { "hidden": false }], + ["proposal", "max_new_tokens", { "hidden": true }] + ], + "id": "flux3-klein:official:text-to-image:prompt-preview-fp32:v1:preview", + "initialValues": [ + ["provider", "model_id", { "source": "hub", "value": "black-forest-labs/flux-3-image-klein-pup" }], + ["provider", "revision", "3f3edb52b2c55de0d49feab28598b68f7f8e4830"], + ["proposal", "operation", "enhance_prompt"], + ["provider", "dtype", "float32"], + ["provider", "device", "cuda:0"], + ["provider", "quantization_mode", "none"], + ["proposal", "max_input_tokens", 4096] + ], + "parent": { + "authoringRecipeId": "flux3-klein:official:text-to-image:prompt-preview-fp32:v1", + "baseSpecContentHash": "studio-spec-v1-8411b4e0", + "baseSpecId": "flux3-klein:official-provider:v1:text-to-image:v1", + "executionProfileId": "flux3-klein:official-provider:v1", + "pipelineClass": "Flux3DistilledModularPipeline", + "task": "text_to_image" + }, + "roles": [ + ["provider", "modules.HuggingFaceTransformers.LoadImageTextToTextModel", -720, -400], + ["proposal", "modules.HuggingFaceTransformers.GenerateImageVideoText", -360, -400] + ], + "schemaVersion": 1, + "sourceRegions": false, + "verification": { + "adapter": { + "declarationSha256": "sha256:2a3d4685988b418115008bbb95fb3e948097580c0bedd2940ea3fe1e40254dc2", + "id": "transformers-prompt-enhancement-v1" + }, + "chatTemplateSha256": "sha256:a4aee8afcf2e0711942cf848899be66016f8d14a889ff9ede07bca099c28f715", + "modelReceipt": { + "library": "transformers", + "loader": { "modelAutoClass": "AutoModelForImageTextToText", "preprocessorAutoClass": "AutoProcessor" }, + "runtime": { + "architectures": ["Qwen3_5ForConditionalGeneration"], + "modelClass": "Qwen3_5ForConditionalGeneration", + "modelType": "qwen3_5", + "preprocessorClass": "Qwen3VLProcessor", + "transformersVersion": "5.18.0" + }, + "schemaVersion": 1, + "security": { + "hostedInference": false, + "localFilesOnly": true, + "safetensorsOnly": true, + "trustRemoteCode": false + }, + "source": { + "kind": "hub", + "repository": "black-forest-labs/flux-3-image-klein-pup", + "revision": "3f3edb52b2c55de0d49feab28598b68f7f8e4830" + }, + "task": "image-video-to-text" + }, + "quantizationRecipes": [ + { "mode": "none" }, + { + "computeDtype": "bfloat16", + "doubleQuant": true, + "mode": "bnb_4bit", + "quantType": "nf4", + "skipModules": ["lm_head", "model.visual"] + } + ], + "requestInputs": { + "maxImagePixelsField": "max_image_pixels", + "maxInputTokensField": "max_input_tokens", + "maxNewTokensField": "enhancement_max_new_tokens", + "minNewTokensField": "min_new_tokens", + "operationField": "operation", + "role": "proposal" + }, + "runtimeInputs": { + "deviceField": "device", + "dtypeField": "dtype", + "modelField": "model_id", + "quantizationField": "quantization_mode", + "revisionField": "revision", + "role": "provider" + }, + "schemaVersion": 1, + "supportedPromptModes": ["t2i", "i2i"], + "systemPromptSha256ByMode": { + "i2i": "95cec384d5b6d341caa9fb3f2c7ca45ee80c2364b3a95d4044aebf976f6dd3bf", + "i2i_bbox": "9ad10f947e401337cf155cac0518cc428159ef16f2f029f48aae2aaab8380a5e", + "t2i": "8b235a421bce2213d11ada01f5a1244443dd72303ffbb4cc9e5a0d8b0de5ab6f", + "t2i_bbox": "5f513d8ce5838732919f9e645507aa20ff373e88bf93132c768e063c9db3151f" + }, + "systemPromptsSha256": "sha256:b5da3ed8bc04ab59dbdb747930f7dbff847e868903fed8028f85ee1a4ac82fb4" + } + } + ], + "baseSpecContentHash": "studio-spec-v1-8411b4e0", + "baseSpecId": "flux3-klein:official-provider:v1:text-to-image:v1", + "bindings": [ + ["models", "model_type", "pipelineClass"], + ["models", "repo_id", "artifact"], + ["models", "revision", "defaultRevision"], + ["models", "dtype", "dtype"], + ["models", "device", "device"], + ["models", "auto_offload", "autoOffload"], + ["models", "offload_mode", "offloadMode"], + ["models", "trust_remote_code", "false"], + ["prompt", "prompt", "prompt"], + ["denoise", "width", "width"], + ["denoise", "height", "height"], + ["denoise", "seed", "seed"], + ["denoise", "num_inference_steps", "steps"], + ["prompt", "max_sequence_length", "maxSequenceLength"], + ["models", "weight_format", "weightFormat"] + ], + "canonicalizationVersion": 1, + "contentHash": "studio-authoring-v1-75f2a548", + "edges": [ + ["models", "text_encoders", "prompt", "text_encoders"], + ["models", "unet_out", "denoise", "unet"], + ["models", "scheduler", "denoise", "scheduler"], + ["models", "vae_out", "decode", "vae"], + ["prompt", "embeddings", "denoise", "embeddings"], + ["denoise", "latents", "decode", "latents"], + ["decode", "images", "preview", "image"] + ], + "executionProfileIds": ["flux3-klein:official-provider:v1"], + "id": "flux3-klein:official:text-to-image:prompt-preview-fp32:v1", + "initialValues": [], + "roles": [ + ["models", "modules.ModularDiffusers.ModelsLoader", -720, -80], + ["prompt", "modules.ModularDiffusers.EncodePrompt", -360, -240], + ["denoise", "modules.ModularDiffusers.Denoise", 80, -80], + ["decode", "modules.ModularDiffusers.DecodeLatents", 440, -80], + ["preview", "modules.Image.Preview", 800, -80] + ], + "schemaVersion": 1 + }, + "edges": [ + { + "source": "diffusion.load_models", + "sourceHandle": "text_encoders", + "target": "diffusion.encode_prompt", + "targetHandle": "text_encoders" + }, + { + "source": "diffusion.load_models", + "sourceHandle": "scheduler", + "target": "diffusion.denoise", + "targetHandle": "scheduler" + }, + { + "source": "diffusion.load_models", + "sourceHandle": "unet_out", + "target": "diffusion.denoise", + "targetHandle": "unet" + }, + { + "source": "diffusion.load_models", + "sourceHandle": "vae_out", + "target": "diffusion.decode_latents", + "targetHandle": "vae" + }, + { + "source": "diffusion.encode_prompt", + "sourceHandle": "embeddings", + "target": "diffusion.denoise", + "targetHandle": "embeddings" + }, + { + "source": "diffusion.denoise", + "sourceHandle": "latents", + "target": "diffusion.decode_latents", + "targetHandle": "latents" + } + ], + "nodes": [ + { + "node": { + "action": "ModelsLoader", + "cache": false, + "category": "loader", + "description": "", + "label": "Load Models", + "memory": [0, 0, 0], + "module": "modules.ModularDiffusers", + "params": { + "attention_backend": { + "default": "inherit", + "description": "Inherit preserves existing native component defaults; explicit choices use the ordinary Diffusers attention API.", + "label": "Attention Backend", + "options": [ + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "inherit", + "schemaVersion": 1, + "value": "inherit" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "auto", + "schemaVersion": 1, + "value": "auto" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "native", + "schemaVersion": 1, + "value": "native" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "_native_math", + "schemaVersion": 1, + "value": "_native_math" + } + ], + "type": "string" + }, + "auto_offload": { "label": "Enable Auto Offload", "type": "boolean", "value": true }, + "controlnet": { + "display": "input", + "hidden": true, + "label": "ControlNet", + "type": "diffusers_auto_model" + }, + "device": { + "label": "Device", + "options": { + "cpu": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "cpu", + "schemaVersion": 1, + "value": "cpu" + }, + "cpu:0": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "cpu:0", + "schemaVersion": 1, + "value": "cpu:0" + } + }, + "type": "string", + "value": "cpu:0" + }, + "dtype": { + "label": "dtype", + "options": [ + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "float32", + "schemaVersion": 1, + "value": "float32" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "float16", + "schemaVersion": 1, + "value": "float16" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "bfloat16", + "schemaVersion": 1, + "value": "bfloat16" + } + ], + "value": "bfloat16" + }, + "image_encoder": { + "connectionRole": "image_encoder", + "display": "output", + "hidden": true, + "label": "Image Encoder", + "signal": { + "direction": "output", + "origin": "modiff_pipeline_identity", + "value": "Flux3DistilledModularPipeline" + }, + "type": "diffusers_auto_model" + }, + "inpaint_compatibility": { + "default": "native", + "description": "Technical compatibility selection for the reviewed Qwen Edit inpainting candidate; existing nodes retain native policy.", + "hidden": true, + "label": "Inpaint Compatibility", + "options": [ + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "native", + "schemaVersion": 1, + "value": "native" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "whole_v1", + "schemaVersion": 1, + "value": "whole_v1" + } + ], + "type": "string" + }, + "lora_list": { "display": "input", "label": "Lora", "type": "custom_lora" }, + "model_type": { + "description": "Selects the Modular Diffusers pipeline class. This filters compatible checkpoints and publishes the component contract used by connected nodes; it is not the model checkpoint itself.", + "label": "Pipeline Type", + "onChange": "set_filters", + "options": { + "": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "", + "schemaVersion": 1, + "value": "" + }, + "AnimaModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Anima", + "schemaVersion": 1, + "value": "AnimaModularPipeline" + }, + "Cosmos3DistilledModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Cosmos 3 Distilled", + "schemaVersion": 1, + "value": "Cosmos3DistilledModularPipeline" + }, + "Cosmos3OmniModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Cosmos 3 Nano", + "schemaVersion": 1, + "value": "Cosmos3OmniModularPipeline" + }, + "DummyCustomPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Custom", + "schemaVersion": 1, + "value": "DummyCustomPipeline" + }, + "ErnieImageModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "ERNIE Image Turbo", + "schemaVersion": 1, + "value": "ErnieImageModularPipeline" + }, + "Flux2KleinBaseModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Flux 2 Klein Base", + "schemaVersion": 1, + "value": "Flux2KleinBaseModularPipeline" + }, + "Flux2KleinModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Flux 2 Klein Distilled", + "schemaVersion": 1, + "value": "Flux2KleinModularPipeline" + }, + "Flux2ModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Flux 2", + "schemaVersion": 1, + "value": "Flux2ModularPipeline" + }, + "Flux3DistilledModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "FLUX 3 Image Klein", + "schemaVersion": 1, + "value": "Flux3DistilledModularPipeline" + }, + "Flux3ModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "FLUX 3 Image Klein Base", + "schemaVersion": 1, + "value": "Flux3ModularPipeline" + }, + "FluxKontextModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Flux Kontext", + "schemaVersion": 1, + "value": "FluxKontextModularPipeline" + }, + "FluxModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Flux", + "schemaVersion": 1, + "value": "FluxModularPipeline" + }, + "HeliosModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Helios", + "schemaVersion": 1, + "value": "HeliosModularPipeline" + }, + "HeliosPyramidDistilledModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Helios Pyramid Distilled", + "schemaVersion": 1, + "value": "HeliosPyramidDistilledModularPipeline" + }, + "HeliosPyramidModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Helios Pyramid", + "schemaVersion": 1, + "value": "HeliosPyramidModularPipeline" + }, + "HunyuanVideo15ModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "HunyuanVideo 1.5", + "schemaVersion": 1, + "value": "HunyuanVideo15ModularPipeline" + }, + "Ideogram4ModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Ideogram 4 (Contract only)", + "schemaVersion": 1, + "value": "Ideogram4ModularPipeline" + }, + "Krea2ModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Krea 2 (Contract only)", + "schemaVersion": 1, + "value": "Krea2ModularPipeline" + }, + "Krea2TurboModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Krea 2 Turbo (Contract only)", + "schemaVersion": 1, + "value": "Krea2TurboModularPipeline" + }, + "LTX25ModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "LTX-2.5 (Contract only)", + "schemaVersion": 1, + "value": "LTX25ModularPipeline" + }, + "MiniMaxH3ModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "MiniMax H3", + "schemaVersion": 1, + "value": "MiniMaxH3ModularPipeline" + }, + "MiniMaxMusic3ModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "MiniMax Music 3", + "schemaVersion": 1, + "value": "MiniMaxMusic3ModularPipeline" + }, + "QwenImageEditModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Qwen-Image-Edit", + "schemaVersion": 1, + "value": "QwenImageEditModularPipeline" + }, + "QwenImageEditPlusModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Qwen-Image-Edit-2511", + "schemaVersion": 1, + "value": "QwenImageEditPlusModularPipeline" + }, + "QwenImageLayeredModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Qwen-Image-Layered", + "schemaVersion": 1, + "value": "QwenImageLayeredModularPipeline" + }, + "QwenImageModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Qwen-Image-2512", + "schemaVersion": 1, + "value": "QwenImageModularPipeline" + }, + "StableDiffusion3ModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Stable Diffusion 3 (Contract only)", + "schemaVersion": 1, + "value": "StableDiffusion3ModularPipeline" + }, + "StableDiffusionXLModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Stable Diffusion XL", + "schemaVersion": 1, + "value": "StableDiffusionXLModularPipeline" + }, + "WanAnimate2DistilledModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Wan Animate 2 Distilled", + "schemaVersion": 1, + "value": "WanAnimate2DistilledModularPipeline" + }, + "WanAnimate2ModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Wan Animate 2", + "schemaVersion": 1, + "value": "WanAnimate2ModularPipeline" + }, + "WanImage2VideoModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "WAN2 I2V", + "schemaVersion": 1, + "value": "WanImage2VideoModularPipeline" + }, + "WanModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "WAN2 T2V", + "schemaVersion": 1, + "value": "WanModularPipeline" + }, + "ZImageModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Z-Image", + "schemaVersion": 1, + "value": "ZImageModularPipeline" + } + }, + "type": "string", + "value": "Flux3DistilledModularPipeline" + }, + "modiff_pipeline_identity": { + "hidden": true, + "label": "Custom Pipeline Identity", + "type": "object", + "value": null + }, + "offload_mode": { + "default": "model_cpu", + "label": "Offload Mode", + "options": [ + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "auto_cpu", + "schemaVersion": 1, + "value": "auto_cpu" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "none", + "schemaVersion": 1, + "value": "none" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "model_cpu", + "schemaVersion": 1, + "value": "model_cpu" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "group_cpu", + "schemaVersion": 1, + "value": "group_cpu" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "group_disk", + "schemaVersion": 1, + "value": "group_disk" + } + ], + "type": "string", + "value": "model_cpu" + }, + "pipeline_components": { + "connectionRole": "pipeline_components", + "display": "output", + "hidden": false, + "label": "Pipeline Components", + "signal": { + "direction": "output", + "origin": "modiff_pipeline_identity", + "value": "Flux3DistilledModularPipeline" + }, + "type": "diffusers_modular_pipeline_components" + }, + "quant_config": { "display": "input", "label": "Quant Config", "type": "quant_config" }, + "refresh_pipeline_identity_button": { + "display": "ui_button", + "hidden": true, + "label": "Review and Refresh Custom Contract", + "onChange": "refresh_pipeline_identity", + "value": false + }, + "repo_id": { + "display": "modelselect", + "fieldOptions": { + "filter": { "hub": { "className": ["Flux3DistilledModularPipeline"] } }, + "noValidation": true, + "sources": ["hub", "local"] + }, + "label": "Repository ID", + "onChange": "refresh_pipeline_identity", + "type": "string", + "value": { "source": "hub", "value": "black-forest-labs/flux-3-image-klein" } + }, + "reviewed_variant": { + "description": "Select an immutable, reviewed checkpoint for this exact Modular Diffusers pipeline family. Changing it does not replace the workflow graph or reset its parameters.", + "fieldOptions": { "controlTier": "essential" }, + "hidden": true, + "label": "Model", + "options": [ + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "black-forest-labs/flux-3-image-klein", + "schemaVersion": 1, + "value": "black-forest-labs/flux-3-image-klein" + } + ], + "type": "string", + "value": "black-forest-labs/flux-3-image-klein" + }, + "revision": { + "description": "Required exact 40-character commit hash for Hub custom contracts.", + "label": "Revision", + "onChange": "refresh_pipeline_identity", + "type": "string", + "value": "8454017f9ebaada30c998fccd9f67a80c7580f68" + }, + "scheduler": { + "connectionRole": "scheduler", + "display": "output", + "hidden": false, + "label": "Scheduler", + "signal": { + "direction": "output", + "origin": "modiff_pipeline_identity", + "value": "Flux3DistilledModularPipeline" + }, + "type": "diffusers_auto_model" + }, + "text_encoders": { + "connectionRole": "text_encoders", + "display": "output", + "hidden": false, + "label": "Text Encoders", + "signal": { + "direction": "output", + "origin": "modiff_pipeline_identity", + "value": "Flux3DistilledModularPipeline" + }, + "type": "diffusers_auto_models" + }, + "trust_remote_code": { + "description": "Repository code execution is disabled; keep this off for contract preview.", + "label": "Trust Remote Code", + "onChange": "refresh_pipeline_identity", + "type": "boolean", + "value": false + }, + "unet": { "display": "input", "hidden": false, "label": "Denoise Model", "type": "diffusers_auto_model" }, + "unet_out": { + "connectionRole": "denoiser", + "display": "output", + "hidden": false, + "label": "Denoise Model", + "signal": { + "direction": "output", + "origin": "modiff_pipeline_identity", + "value": "Flux3DistilledModularPipeline" + }, + "type": "diffusers_auto_model" + }, + "vae": { "display": "input", "hidden": false, "label": "VAE", "type": "diffusers_auto_model" }, + "vae_out": { + "connectionRole": "vae", + "display": "output", + "hidden": false, + "label": "VAE", + "signal": { + "direction": "output", + "origin": "modiff_pipeline_identity", + "value": "Flux3DistilledModularPipeline" + }, + "type": "diffusers_auto_model" + }, + "vae_slicing": { + "default": null, + "description": "An unset policy preserves the native VAE configuration; templates may bind an explicit boolean.", + "hidden": true, + "label": "VAE Slicing", + "type": "boolean" + }, + "vae_tiling": { + "default": null, + "description": "An unset policy preserves the native VAE configuration; templates may bind an explicit boolean.", + "hidden": true, + "label": "VAE Tiling", + "type": "boolean" + }, + "weight_format": { + "default": "native", + "description": "Select a backend-declared immutable component format. Missing reviewed files must be installed through Model Manager.", + "fieldOptions": { "controlTier": "advanced" }, + "hidden": false, + "label": "Weight Format", + "options": [ + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "native", + "schemaVersion": 1, + "value": "native" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "fp8r", + "schemaVersion": 1, + "value": "fp8r" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "nvfp4", + "schemaVersion": 1, + "value": "nvfp4" + } + ], + "type": "string" + }, + "weight_loading_mode": { + "default": "cpu", + "description": "Load weights on CPU or CUDA before disk offload. CUDA loading needs room for a complete component and is available only for supported models.", + "fieldOptions": { "controlTier": "advanced" }, + "label": "Weight Loading", + "options": [ + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "cpu", + "schemaVersion": 1, + "value": "cpu" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "cuda", + "schemaVersion": 1, + "value": "cuda" + } + ], + "type": "string" + }, + "workflow_id": { + "description": "Exact reviewed component partition selected by a first-party Cluster Node.", + "hidden": true, + "label": "Reviewed Workflow", + "type": "string", + "value": "text2image" + } + }, + "resizable": true, + "skipParamsCheck": true, + "style": {}, + "time": [0, 0, 0], + "type": "custom" + }, + "operation": { + "binding": { + "pipelineClass": "Flux3DistilledModularPipeline", + "values": { "model_type": "Flux3DistilledModularPipeline" } + }, + "blockName": null, + "decomposition": "loader", + "nodeKey": "modules.ModularDiffusers.ModelsLoader", + "nodeType": "loader", + "operationId": "diffusion.load_models", + "pipelineClass": "Flux3DistilledModularPipeline", + "ports": [ + { + "direction": "input", + "hidden": false, + "name": "model_type", + "required": false, + "roles": ["value"], + "semanticName": "model_type", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": false, + "name": "repo_id", + "required": false, + "roles": ["value"], + "semanticName": "repo_id", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": true, + "name": "reviewed_variant", + "required": false, + "roles": ["value"], + "semanticName": "reviewed_variant", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": false, + "name": "device", + "required": false, + "roles": ["value"], + "semanticName": "device", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": false, + "name": "attention_backend", + "required": false, + "roles": ["value"], + "semanticName": "attention_backend", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": true, + "name": "vae_slicing", + "required": false, + "roles": ["value"], + "semanticName": "vae_slicing", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["boolean"] + }, + { + "direction": "input", + "hidden": true, + "name": "vae_tiling", + "required": false, + "roles": ["value"], + "semanticName": "vae_tiling", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["boolean"] + }, + { + "direction": "input", + "hidden": true, + "name": "inpaint_compatibility", + "required": false, + "roles": ["value"], + "semanticName": "inpaint_compatibility", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": false, + "name": "trust_remote_code", + "required": false, + "roles": ["value"], + "semanticName": "trust_remote_code", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["boolean"] + }, + { + "direction": "input", + "hidden": false, + "name": "revision", + "required": false, + "roles": ["value"], + "semanticName": "revision", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": true, + "name": "workflow_id", + "required": false, + "roles": ["value"], + "semanticName": "workflow_id", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": true, + "name": "modiff_pipeline_identity", + "required": false, + "roles": ["value"], + "semanticName": "modiff_pipeline_identity", + "semantics": { + "kind": "opaque", + "members": [], + "owner": "none", + "scope": "Flux3DistilledModularPipeline", + "state": null + }, + "types": ["object"] + }, + { + "direction": "input", + "hidden": false, + "name": "auto_offload", + "required": false, + "roles": ["value"], + "semanticName": "auto_offload", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["boolean"] + }, + { + "direction": "input", + "hidden": false, + "name": "offload_mode", + "required": false, + "roles": ["value"], + "semanticName": "offload_mode", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": false, + "name": "weight_loading_mode", + "required": false, + "roles": ["value"], + "semanticName": "weight_loading_mode", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": true, + "name": "weight_format", + "required": false, + "roles": ["value"], + "semanticName": "weight_format", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": false, + "name": "unet", + "required": false, + "roles": ["component"], + "semanticName": "unet", + "semantics": { + "kind": "component", + "members": [ + { + "name": "transformer", + "type": "diffusers.models.transformers.transformer_flux3.Flux3Transformer2DModel" + } + ], + "owner": "same_loader", + "scope": "Flux3DistilledModularPipeline", + "state": null + }, + "types": ["diffusers_auto_model"] + }, + { + "direction": "input", + "hidden": false, + "name": "vae", + "required": false, + "roles": ["component"], + "semanticName": "vae", + "semantics": { + "kind": "component", + "members": [ + { "name": "vae", "type": "diffusers.models.autoencoders.autoencoder_kl_flux2.AutoencoderKLFlux2" } + ], + "owner": "same_loader", + "scope": "Flux3DistilledModularPipeline", + "state": null + }, + "types": ["diffusers_auto_model"] + }, + { + "direction": "input", + "hidden": true, + "name": "controlnet", + "required": false, + "roles": ["component"], + "semanticName": "controlnet", + "semantics": { + "kind": "component", + "members": [], + "owner": "same_loader", + "scope": "Flux3DistilledModularPipeline", + "state": null + }, + "types": ["diffusers_auto_model"] + }, + { + "direction": "input", + "hidden": false, + "name": "lora_list", + "required": false, + "roles": ["value"], + "semanticName": "lora_list", + "semantics": { + "kind": "opaque", + "members": [], + "owner": "none", + "scope": "Flux3DistilledModularPipeline", + "state": null + }, + "types": ["custom_lora"] + }, + { + "direction": "output", + "hidden": false, + "name": "text_encoders", + "required": false, + "roles": ["component"], + "semanticName": "text_encoders", + "semantics": { + "kind": "component", + "members": [ + { + "name": "text_encoder", + "type": "transformers.models.qwen3_vl.modeling_qwen3_vl.Qwen3VLForConditionalGeneration" + }, + { "name": "tokenizer", "type": "transformers.models.auto.processing_auto.AutoProcessor" } + ], + "owner": "same_loader", + "scope": "Flux3DistilledModularPipeline", + "state": null + }, + "types": ["diffusers_auto_models"] + }, + { + "direction": "output", + "hidden": false, + "name": "unet_out", + "required": false, + "roles": ["component"], + "semanticName": "unet_out", + "semantics": { + "kind": "component", + "members": [ + { + "name": "transformer", + "type": "diffusers.models.transformers.transformer_flux3.Flux3Transformer2DModel" + } + ], + "owner": "same_loader", + "scope": "Flux3DistilledModularPipeline", + "state": null + }, + "types": ["diffusers_auto_model"] + }, + { + "direction": "output", + "hidden": false, + "name": "vae_out", + "required": false, + "roles": ["component"], + "semanticName": "vae_out", + "semantics": { + "kind": "component", + "members": [ + { "name": "vae", "type": "diffusers.models.autoencoders.autoencoder_kl_flux2.AutoencoderKLFlux2" } + ], + "owner": "same_loader", + "scope": "Flux3DistilledModularPipeline", + "state": null + }, + "types": ["diffusers_auto_model"] + }, + { + "direction": "output", + "hidden": false, + "name": "scheduler", + "required": false, + "roles": ["component"], + "semanticName": "scheduler", + "semantics": { + "kind": "component", + "members": [ + { + "name": "scheduler", + "type": "diffusers.schedulers.scheduling_flow_match_euler_discrete.FlowMatchEulerDiscreteScheduler" + } + ], + "owner": "same_loader", + "scope": "Flux3DistilledModularPipeline", + "state": null + }, + "types": ["diffusers_auto_model"] + }, + { + "direction": "output", + "hidden": true, + "name": "image_encoder", + "required": false, + "roles": ["component"], + "semanticName": "image_encoder", + "semantics": { + "kind": "component", + "members": [], + "owner": "same_loader", + "scope": "Flux3DistilledModularPipeline", + "state": null + }, + "types": ["diffusers_auto_model"] + }, + { + "direction": "output", + "hidden": false, + "name": "pipeline_components", + "required": false, + "roles": ["component"], + "semanticName": "pipeline_components", + "semantics": { + "kind": "component", + "members": [ + { + "name": "image_processor", + "type": "diffusers.modular_pipelines.flux3.image_processor.Flux3ImageProcessor" + }, + { + "name": "scheduler", + "type": "diffusers.schedulers.scheduling_flow_match_euler_discrete.FlowMatchEulerDiscreteScheduler" + }, + { + "name": "text_encoder", + "type": "transformers.models.qwen3_vl.modeling_qwen3_vl.Qwen3VLForConditionalGeneration" + }, + { "name": "tokenizer", "type": "transformers.models.auto.processing_auto.AutoProcessor" }, + { + "name": "transformer", + "type": "diffusers.models.transformers.transformer_flux3.Flux3Transformer2DModel" + }, + { "name": "vae", "type": "diffusers.models.autoencoders.autoencoder_kl_flux2.AutoencoderKLFlux2" } + ], + "owner": "same_loader", + "scope": "Flux3DistilledModularPipeline", + "state": null + }, + "types": ["diffusers_modular_pipeline_components"] + }, + { + "direction": "input", + "hidden": false, + "name": "quant_config", + "required": false, + "roles": ["value"], + "semanticName": "quant_config", + "semantics": { + "kind": "opaque", + "members": [], + "owner": "none", + "scope": "Flux3DistilledModularPipeline", + "state": null + }, + "types": ["quant_config"] + } + ], + "support": "declared", + "task": "text_to_image", + "workflowId": "text2image" + } + }, + { + "node": { + "action": "EncodePrompt", + "cache": false, + "category": "embedding", + "description": "", + "label": "Encode Prompt", + "memory": [0, 0, 0], + "module": "modules.ModularDiffusers", + "params": { + "doc": { "display": "output", "label": "Doc", "type": "string" }, + "embeddings": { "display": "output", "label": "Text Embeddings", "type": "embeddings" }, + "guider": { + "description": "Shared Diffusers guidance used by prompt encoding and denoising when the selected pipeline supports it.", + "display": "input", + "hidden": true, + "label": "Guider", + "type": "custom_guider" + }, + "layout_conditioning": { + "default": null, + "display": "layout", + "fieldOptions": { + "layoutConditioning": { + "schemaVersion": 2, + "sourceRegions": false, + "supportsBoundSourceRegions": true + } + }, + "label": "Layout Conditioning", + "type": "layout_conditioning" + }, + "layout_reference_summary": { + "description": "Display-only ordered reference identities and actual preprocessing sizes from the current encoder cache.", + "display": "output", + "hidden": true, + "label": "Bound Reference Summary", + "type": "string" + }, + "max_sequence_length": { + "default": 8192, + "label": "Maximum Sequence Length", + "max": 8192, + "min": 1, + "step": 1, + "type": "int" + }, + "prompt": { + "default": "", + "display": "textarea", + "fieldOptions": { "exampleAttribution": "MoDiff task example" }, + "label": "Prompt *", + "type": "string", + "value": "A red ceramic teapot on a wooden table beside a window, soft morning light, detailed photograph." + }, + "prompt_input": { + "description": "Optional connected prompt. When connected, this replaces the inline Prompt value.", + "display": "input", + "label": "Prompt Input", + "type": "string" + }, + "reference_binding": { + "default": null, + "display": "input", + "fieldOptions": { "referenceBinding": { "maxReferences": 10, "schemaVersion": 1 } }, + "label": "Reference Binding", + "type": "reference_conditioning" + }, + "text_encoder_out_layers": { + "default": [4, 8, 12, 16, 20, 24, 28, 32], + "display": "select", + "fieldOptions": { "multiple": true, "tupleLength": 8, "tupleValue": true }, + "label": "Text Encoder Layers", + "options": [ + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "0", + "schemaVersion": 1, + "value": "0" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "1", + "schemaVersion": 1, + "value": "1" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "2", + "schemaVersion": 1, + "value": "2" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "3", + "schemaVersion": 1, + "value": "3" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "4", + "schemaVersion": 1, + "value": "4" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "5", + "schemaVersion": 1, + "value": "5" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "6", + "schemaVersion": 1, + "value": "6" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "7", + "schemaVersion": 1, + "value": "7" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "8", + "schemaVersion": 1, + "value": "8" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "9", + "schemaVersion": 1, + "value": "9" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "10", + "schemaVersion": 1, + "value": "10" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "11", + "schemaVersion": 1, + "value": "11" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "12", + "schemaVersion": 1, + "value": "12" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "13", + "schemaVersion": 1, + "value": "13" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "14", + "schemaVersion": 1, + "value": "14" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "15", + "schemaVersion": 1, + "value": "15" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "16", + "schemaVersion": 1, + "value": "16" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "17", + "schemaVersion": 1, + "value": "17" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "18", + "schemaVersion": 1, + "value": "18" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "19", + "schemaVersion": 1, + "value": "19" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "20", + "schemaVersion": 1, + "value": "20" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "21", + "schemaVersion": 1, + "value": "21" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "22", + "schemaVersion": 1, + "value": "22" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "23", + "schemaVersion": 1, + "value": "23" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "24", + "schemaVersion": 1, + "value": "24" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "25", + "schemaVersion": 1, + "value": "25" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "26", + "schemaVersion": 1, + "value": "26" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "27", + "schemaVersion": 1, + "value": "27" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "28", + "schemaVersion": 1, + "value": "28" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "29", + "schemaVersion": 1, + "value": "29" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "30", + "schemaVersion": 1, + "value": "30" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "31", + "schemaVersion": 1, + "value": "31" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "32", + "schemaVersion": 1, + "value": "32" + } + ], + "type": "int" + }, + "text_encoders": { + "display": "input", + "label": "Text Encoders *", + "onSignal": "update_node", + "required": true, + "signalCompatibility": { "role": "text_encoders" }, + "type": "diffusers_auto_models" + } + }, + "resizable": true, + "skipParamsCheck": true, + "style": {}, + "time": [0, 0, 0], + "type": "custom" + }, + "operation": { + "binding": { "pipelineClass": "Flux3DistilledModularPipeline", "values": {} }, + "blockName": "text_encoder", + "decomposition": "block", + "nodeKey": "modules.ModularDiffusers.EncodePrompt", + "nodeType": "text_encoder", + "operationId": "diffusion.encode_prompt", + "pipelineClass": "Flux3DistilledModularPipeline", + "ports": [ + { + "direction": "input", + "hidden": false, + "name": "prompt", + "required": true, + "roles": ["value"], + "semanticName": "prompt", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": false, + "name": "max_sequence_length", + "required": false, + "roles": ["value"], + "semanticName": "max_sequence_length", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["int"] + }, + { + "direction": "input", + "hidden": false, + "name": "text_encoder_out_layers", + "required": false, + "roles": ["value"], + "semanticName": "text_encoder_out_layers", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["int"] + }, + { + "direction": "input", + "hidden": false, + "name": "text_encoders", + "required": true, + "roles": ["component"], + "semanticName": "text_encoders", + "semantics": { + "kind": "component", + "members": [ + { + "name": "text_encoder", + "type": "transformers.models.qwen3_vl.modeling_qwen3_vl.Qwen3VLForConditionalGeneration" + }, + { "name": "tokenizer", "type": "transformers.models.auto.processing_auto.AutoProcessor" } + ], + "owner": "same_loader", + "scope": "Flux3DistilledModularPipeline", + "state": null + }, + "types": ["diffusers_auto_models"] + }, + { + "direction": "output", + "hidden": false, + "name": "embeddings", + "required": false, + "roles": ["value"], + "semanticName": "embeddings", + "semantics": { + "kind": "conditioning", + "members": [], + "owner": "same_loader", + "scope": "Flux3DistilledModularPipeline", + "state": null + }, + "types": ["embeddings"] + }, + { + "direction": "output", + "hidden": false, + "name": "doc", + "required": false, + "roles": ["value"], + "semanticName": "doc", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": false, + "name": "layout_conditioning", + "required": false, + "roles": ["value"], + "semanticName": "layout_conditioning", + "semantics": { + "kind": "opaque", + "members": [], + "owner": "none", + "scope": "Flux3DistilledModularPipeline", + "state": null + }, + "types": ["layout_conditioning"] + }, + { + "direction": "input", + "hidden": false, + "name": "reference_binding", + "required": false, + "roles": ["value"], + "semanticName": "reference_binding", + "semantics": { + "kind": "opaque", + "members": [], + "owner": "none", + "scope": "Flux3DistilledModularPipeline", + "state": null + }, + "types": ["reference_conditioning"] + }, + { + "direction": "input", + "hidden": false, + "name": "prompt_input", + "required": false, + "roles": ["value"], + "semanticName": "prompt", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + } + ], + "support": "declared", + "task": "text_to_image", + "workflowId": "text2image" + } + }, + { + "node": { + "action": "Denoise", + "cache": false, + "category": "sampler", + "description": "", + "label": "Denoise", + "memory": [0, 0, 0], + "module": "modules.ModularDiffusers", + "params": { + "doc": { "display": "output", "label": "Doc", "type": "string" }, + "embeddings": { "display": "input", "label": "Text Embeddings *", "type": "embeddings" }, + "height": { "default": 1024, "label": "Height", "min": 64, "step": 16, "type": "int", "value": 1024 }, + "image_cond_latents": { "display": "input", "label": "Reference Latents", "type": "latents" }, + "latents": { "display": "output", "label": "Latents", "type": "latents" }, + "num_images_per_prompt": { + "default": 1, + "label": "Images Per Prompt", + "max": 8, + "min": 1, + "step": 1, + "type": "int" + }, + "num_inference_steps": { + "default": 16, + "display": "slider", + "label": "Steps", + "max": 100, + "min": 1, + "type": "int", + "value": 16 + }, + "reference_binding": { + "default": null, + "display": "input", + "fieldOptions": { "referenceBinding": { "maxReferences": 10, "schemaVersion": 1 } }, + "label": "Reference Binding", + "type": "reference_conditioning" + }, + "scheduler": { + "display": "input", + "label": "Scheduler *", + "signalCompatibility": { "role": "scheduler" }, + "type": "diffusers_auto_model" + }, + "seed": { + "default": 0, + "display": "random", + "label": "Seed", + "max": 4294967295, + "min": 0, + "type": "int" + }, + "unet": { + "display": "input", + "label": "Denoise Model *", + "onSignal": [ + "update_node", + { "action": "signal", "target": "guider" }, + { "action": "signal", "target": "controlnet_bundle" } + ], + "required": true, + "signalCompatibility": { "role": "denoiser" }, + "type": "diffusers_auto_model" + }, + "width": { "default": 1024, "label": "Width", "min": 64, "step": 16, "type": "int", "value": 1024 } + }, + "resizable": true, + "skipParamsCheck": true, + "style": {}, + "time": [0, 0, 0], + "type": "custom" + }, + "operation": { + "binding": { "pipelineClass": "Flux3DistilledModularPipeline", "values": {} }, + "blockName": "denoise", + "decomposition": "block", + "nodeKey": "modules.ModularDiffusers.Denoise", + "nodeType": "denoise", + "operationId": "diffusion.denoise", + "pipelineClass": "Flux3DistilledModularPipeline", + "ports": [ + { + "direction": "input", + "hidden": false, + "name": "embeddings", + "required": true, + "roles": ["value"], + "semanticName": "embeddings", + "semantics": { + "kind": "conditioning", + "members": [], + "owner": "same_loader", + "scope": "Flux3DistilledModularPipeline", + "state": null + }, + "types": ["embeddings"] + }, + { + "direction": "input", + "hidden": false, + "name": "width", + "required": false, + "roles": ["value"], + "semanticName": "width", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["int"] + }, + { + "direction": "input", + "hidden": false, + "name": "height", + "required": false, + "roles": ["value"], + "semanticName": "height", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["int"] + }, + { + "direction": "input", + "hidden": false, + "name": "seed", + "required": false, + "roles": ["value"], + "semanticName": "seed", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["int"] + }, + { + "direction": "input", + "hidden": false, + "name": "num_inference_steps", + "required": false, + "roles": ["value"], + "semanticName": "num_inference_steps", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["int"] + }, + { + "direction": "input", + "hidden": false, + "name": "num_images_per_prompt", + "required": false, + "roles": ["value"], + "semanticName": "num_images_per_prompt", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["int"] + }, + { + "direction": "input", + "hidden": false, + "name": "image_cond_latents", + "required": false, + "roles": ["value"], + "semanticName": "image_cond_latents", + "semantics": { + "kind": "latents", + "members": [], + "owner": "same_loader", + "scope": "Flux3DistilledModularPipeline", + "state": null + }, + "types": ["latents"] + }, + { + "direction": "input", + "hidden": false, + "name": "unet", + "required": true, + "roles": ["component"], + "semanticName": "unet", + "semantics": { + "kind": "component", + "members": [ + { + "name": "transformer", + "type": "diffusers.models.transformers.transformer_flux3.Flux3Transformer2DModel" + } + ], + "owner": "same_loader", + "scope": "Flux3DistilledModularPipeline", + "state": null + }, + "types": ["diffusers_auto_model"] + }, + { + "direction": "input", + "hidden": false, + "name": "scheduler", + "required": true, + "roles": ["component"], + "semanticName": "scheduler", + "semantics": { + "kind": "component", + "members": [ + { + "name": "scheduler", + "type": "diffusers.schedulers.scheduling_flow_match_euler_discrete.FlowMatchEulerDiscreteScheduler" + } + ], + "owner": "same_loader", + "scope": "Flux3DistilledModularPipeline", + "state": null + }, + "types": ["diffusers_auto_model"] + }, + { + "direction": "output", + "hidden": false, + "name": "latents", + "required": false, + "roles": ["value"], + "semanticName": "latents", + "semantics": { + "kind": "latents", + "members": [], + "owner": "same_loader", + "scope": "Flux3DistilledModularPipeline", + "state": null + }, + "types": ["latents"] + }, + { + "direction": "output", + "hidden": false, + "name": "doc", + "required": false, + "roles": ["value"], + "semanticName": "doc", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": false, + "name": "reference_binding", + "required": false, + "roles": ["value"], + "semanticName": "reference_binding", + "semantics": { + "kind": "opaque", + "members": [], + "owner": "none", + "scope": "Flux3DistilledModularPipeline", + "state": null + }, + "types": ["reference_conditioning"] + } + ], + "support": "declared", + "task": "text_to_image", + "workflowId": "text2image" + } + }, + { + "node": { + "action": "DecodeLatents", + "cache": false, + "category": "sampler", + "description": "", + "label": "Decode Latents", + "memory": [0, 0, 0], + "module": "modules.ModularDiffusers", + "params": { + "doc": { "display": "output", "label": "Doc", "type": "string" }, + "images": { "display": "output", "label": "Images", "type": "image" }, + "latents": { "display": "input", "label": "Latents *", "type": "latents" }, + "vae": { + "display": "input", + "label": "VAE *", + "onSignal": "update_node", + "signalCompatibility": { "role": "vae" }, + "type": "diffusers_auto_model" + } + }, + "resizable": true, + "skipParamsCheck": true, + "style": {}, + "time": [0, 0, 0], + "type": "custom" + }, + "operation": { + "binding": { "pipelineClass": "Flux3DistilledModularPipeline", "values": {} }, + "blockName": "decode", + "decomposition": "block", + "nodeKey": "modules.ModularDiffusers.DecodeLatents", + "nodeType": "decoder", + "operationId": "diffusion.decode_latents", + "pipelineClass": "Flux3DistilledModularPipeline", + "ports": [ + { + "direction": "input", + "hidden": false, + "name": "latents", + "required": true, + "roles": ["value"], + "semanticName": "latents", + "semantics": { + "kind": "latents", + "members": [], + "owner": "same_loader", + "scope": "Flux3DistilledModularPipeline", + "state": null + }, + "types": ["latents"] + }, + { + "direction": "input", + "hidden": false, + "name": "vae", + "required": true, + "roles": ["component"], + "semanticName": "vae", + "semantics": { + "kind": "component", + "members": [ + { "name": "vae", "type": "diffusers.models.autoencoders.autoencoder_kl_flux2.AutoencoderKLFlux2" } + ], + "owner": "same_loader", + "scope": "Flux3DistilledModularPipeline", + "state": null + }, + "types": ["diffusers_auto_model"] + }, + { + "direction": "output", + "hidden": false, + "name": "images", + "required": false, + "roles": ["value"], + "semanticName": "images", + "semantics": { "kind": "media", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["image"] + }, + { + "direction": "output", + "hidden": false, + "name": "doc", + "required": false, + "roles": ["value"], + "semanticName": "doc", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + } + ], + "support": "declared", + "task": "text_to_image", + "workflowId": "text2image" + } + } + ], + "pipelineClass": "Flux3DistilledModularPipeline", + "requiredInputs": [{ "field": "prompt", "operationId": "diffusion.encode_prompt" }], + "schemaVersion": 1, + "sharedInputs": [], + "task": "text_to_image", + "upstreamBlocks": ["text_encoder", "denoise", "decode"], + "workflowId": "text2image" + }, + { + "authoring": { + "ancillaryOperations": [ + { + "adapter": { + "declarationSha256": "sha256:2a3d4685988b418115008bbb95fb3e948097580c0bedd2940ea3fe1e40254dc2", + "id": "transformers-prompt-enhancement-v1" + }, + "bindings": { + "output": { "field": "proposal_summary", "role": "proposal" }, + "owner": { + "layoutField": "layout_conditioning", + "promptField": "prompt", + "referenceSource": null, + "role": "prompt" + }, + "request": { + "imagesField": "images", + "layoutField": "layout_conditioning", + "promptField": "prompt", + "role": "proposal" + } + }, + "contentHash": "studio-ancillary-v1-fb3aa8f6", + "edges": [["provider", "model", "proposal", "model"]], + "executionPurpose": "explicit_preview", + "fieldOverrides": [ + ["proposal", "enhancement_max_new_tokens", { "hidden": false }], + ["proposal", "max_new_tokens", { "hidden": true }] + ], + "id": "flux3-klein:official:text-to-image:prompt-preview-nf4:v1:preview", + "initialValues": [ + ["provider", "model_id", { "source": "hub", "value": "black-forest-labs/flux-3-image-klein-pup" }], + ["provider", "revision", "3f3edb52b2c55de0d49feab28598b68f7f8e4830"], + ["proposal", "operation", "enhance_prompt"], + ["provider", "dtype", "bfloat16"], + ["provider", "device", "cuda:0"], + ["provider", "quantization_mode", "bnb_4bit"], + ["proposal", "max_input_tokens", 4096] + ], + "parent": { + "authoringRecipeId": "flux3-klein:official:text-to-image:prompt-preview-nf4:v1", + "baseSpecContentHash": "studio-spec-v1-8411b4e0", + "baseSpecId": "flux3-klein:official-provider:v1:text-to-image:v1", + "executionProfileId": "flux3-klein:official-provider:v1", + "pipelineClass": "Flux3DistilledModularPipeline", + "task": "text_to_image" + }, + "roles": [ + ["provider", "modules.HuggingFaceTransformers.LoadImageTextToTextModel", -720, -400], + ["proposal", "modules.HuggingFaceTransformers.GenerateImageVideoText", -360, -400] + ], + "schemaVersion": 1, + "sourceRegions": false, + "verification": { + "adapter": { + "declarationSha256": "sha256:2a3d4685988b418115008bbb95fb3e948097580c0bedd2940ea3fe1e40254dc2", + "id": "transformers-prompt-enhancement-v1" + }, + "chatTemplateSha256": "sha256:a4aee8afcf2e0711942cf848899be66016f8d14a889ff9ede07bca099c28f715", + "modelReceipt": { + "library": "transformers", + "loader": { "modelAutoClass": "AutoModelForImageTextToText", "preprocessorAutoClass": "AutoProcessor" }, + "runtime": { + "architectures": ["Qwen3_5ForConditionalGeneration"], + "modelClass": "Qwen3_5ForConditionalGeneration", + "modelType": "qwen3_5", + "preprocessorClass": "Qwen3VLProcessor", + "transformersVersion": "5.18.0" + }, + "schemaVersion": 1, + "security": { + "hostedInference": false, + "localFilesOnly": true, + "safetensorsOnly": true, + "trustRemoteCode": false + }, + "source": { + "kind": "hub", + "repository": "black-forest-labs/flux-3-image-klein-pup", + "revision": "3f3edb52b2c55de0d49feab28598b68f7f8e4830" + }, + "task": "image-video-to-text" + }, + "quantizationRecipes": [ + { "mode": "none" }, + { + "computeDtype": "bfloat16", + "doubleQuant": true, + "mode": "bnb_4bit", + "quantType": "nf4", + "skipModules": ["lm_head", "model.visual"] + } + ], + "requestInputs": { + "maxImagePixelsField": "max_image_pixels", + "maxInputTokensField": "max_input_tokens", + "maxNewTokensField": "enhancement_max_new_tokens", + "minNewTokensField": "min_new_tokens", + "operationField": "operation", + "role": "proposal" + }, + "runtimeInputs": { + "deviceField": "device", + "dtypeField": "dtype", + "modelField": "model_id", + "quantizationField": "quantization_mode", + "revisionField": "revision", + "role": "provider" + }, + "schemaVersion": 1, + "supportedPromptModes": ["t2i", "i2i"], + "systemPromptSha256ByMode": { + "i2i": "95cec384d5b6d341caa9fb3f2c7ca45ee80c2364b3a95d4044aebf976f6dd3bf", + "i2i_bbox": "9ad10f947e401337cf155cac0518cc428159ef16f2f029f48aae2aaab8380a5e", + "t2i": "8b235a421bce2213d11ada01f5a1244443dd72303ffbb4cc9e5a0d8b0de5ab6f", + "t2i_bbox": "5f513d8ce5838732919f9e645507aa20ff373e88bf93132c768e063c9db3151f" + }, + "systemPromptsSha256": "sha256:b5da3ed8bc04ab59dbdb747930f7dbff847e868903fed8028f85ee1a4ac82fb4" + } + } + ], + "baseSpecContentHash": "studio-spec-v1-8411b4e0", + "baseSpecId": "flux3-klein:official-provider:v1:text-to-image:v1", + "bindings": [ + ["models", "model_type", "pipelineClass"], + ["models", "repo_id", "artifact"], + ["models", "revision", "defaultRevision"], + ["models", "dtype", "dtype"], + ["models", "device", "device"], + ["models", "auto_offload", "autoOffload"], + ["models", "offload_mode", "offloadMode"], + ["models", "trust_remote_code", "false"], + ["prompt", "prompt", "prompt"], + ["denoise", "width", "width"], + ["denoise", "height", "height"], + ["denoise", "seed", "seed"], + ["denoise", "num_inference_steps", "steps"], + ["prompt", "max_sequence_length", "maxSequenceLength"], + ["models", "weight_format", "weightFormat"] + ], + "canonicalizationVersion": 1, + "contentHash": "studio-authoring-v1-6bd6e4b0", + "edges": [ + ["models", "text_encoders", "prompt", "text_encoders"], + ["models", "unet_out", "denoise", "unet"], + ["models", "scheduler", "denoise", "scheduler"], + ["models", "vae_out", "decode", "vae"], + ["prompt", "embeddings", "denoise", "embeddings"], + ["denoise", "latents", "decode", "latents"], + ["decode", "images", "preview", "image"] + ], + "executionProfileIds": ["flux3-klein:official-provider:v1"], + "id": "flux3-klein:official:text-to-image:prompt-preview-nf4:v1", + "initialValues": [], + "roles": [ + ["models", "modules.ModularDiffusers.ModelsLoader", -720, -80], + ["prompt", "modules.ModularDiffusers.EncodePrompt", -360, -240], + ["denoise", "modules.ModularDiffusers.Denoise", 80, -80], + ["decode", "modules.ModularDiffusers.DecodeLatents", 440, -80], + ["preview", "modules.Image.Preview", 800, -80] + ], + "schemaVersion": 1 + }, + "edges": [ + { + "source": "diffusion.load_models", + "sourceHandle": "text_encoders", + "target": "diffusion.encode_prompt", + "targetHandle": "text_encoders" + }, + { + "source": "diffusion.load_models", + "sourceHandle": "scheduler", + "target": "diffusion.denoise", + "targetHandle": "scheduler" + }, + { + "source": "diffusion.load_models", + "sourceHandle": "unet_out", + "target": "diffusion.denoise", + "targetHandle": "unet" + }, + { + "source": "diffusion.load_models", + "sourceHandle": "vae_out", + "target": "diffusion.decode_latents", + "targetHandle": "vae" + }, + { + "source": "diffusion.encode_prompt", + "sourceHandle": "embeddings", + "target": "diffusion.denoise", + "targetHandle": "embeddings" + }, + { + "source": "diffusion.denoise", + "sourceHandle": "latents", + "target": "diffusion.decode_latents", + "targetHandle": "latents" + } + ], + "nodes": [ + { + "node": { + "action": "ModelsLoader", + "cache": false, + "category": "loader", + "description": "", + "label": "Load Models", + "memory": [0, 0, 0], + "module": "modules.ModularDiffusers", + "params": { + "attention_backend": { + "default": "inherit", + "description": "Inherit preserves existing native component defaults; explicit choices use the ordinary Diffusers attention API.", + "label": "Attention Backend", + "options": [ + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "inherit", + "schemaVersion": 1, + "value": "inherit" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "auto", + "schemaVersion": 1, + "value": "auto" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "native", + "schemaVersion": 1, + "value": "native" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "_native_math", + "schemaVersion": 1, + "value": "_native_math" + } + ], + "type": "string" + }, + "auto_offload": { "label": "Enable Auto Offload", "type": "boolean", "value": true }, + "controlnet": { + "display": "input", + "hidden": true, + "label": "ControlNet", + "type": "diffusers_auto_model" + }, + "device": { + "label": "Device", + "options": { + "cpu": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "cpu", + "schemaVersion": 1, + "value": "cpu" + }, + "cpu:0": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "cpu:0", + "schemaVersion": 1, + "value": "cpu:0" + } + }, + "type": "string", + "value": "cpu:0" + }, + "dtype": { + "label": "dtype", + "options": [ + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "float32", + "schemaVersion": 1, + "value": "float32" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "float16", + "schemaVersion": 1, + "value": "float16" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "bfloat16", + "schemaVersion": 1, + "value": "bfloat16" + } + ], + "value": "bfloat16" + }, + "image_encoder": { + "connectionRole": "image_encoder", + "display": "output", + "hidden": true, + "label": "Image Encoder", + "signal": { + "direction": "output", + "origin": "modiff_pipeline_identity", + "value": "Flux3DistilledModularPipeline" + }, + "type": "diffusers_auto_model" + }, + "inpaint_compatibility": { + "default": "native", + "description": "Technical compatibility selection for the reviewed Qwen Edit inpainting candidate; existing nodes retain native policy.", + "hidden": true, + "label": "Inpaint Compatibility", + "options": [ + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "native", + "schemaVersion": 1, + "value": "native" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "whole_v1", + "schemaVersion": 1, + "value": "whole_v1" + } + ], + "type": "string" + }, + "lora_list": { "display": "input", "label": "Lora", "type": "custom_lora" }, + "model_type": { + "description": "Selects the Modular Diffusers pipeline class. This filters compatible checkpoints and publishes the component contract used by connected nodes; it is not the model checkpoint itself.", + "label": "Pipeline Type", + "onChange": "set_filters", + "options": { + "": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "", + "schemaVersion": 1, + "value": "" + }, + "AnimaModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Anima", + "schemaVersion": 1, + "value": "AnimaModularPipeline" + }, + "Cosmos3DistilledModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Cosmos 3 Distilled", + "schemaVersion": 1, + "value": "Cosmos3DistilledModularPipeline" + }, + "Cosmos3OmniModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Cosmos 3 Nano", + "schemaVersion": 1, + "value": "Cosmos3OmniModularPipeline" + }, + "DummyCustomPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Custom", + "schemaVersion": 1, + "value": "DummyCustomPipeline" + }, + "ErnieImageModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "ERNIE Image Turbo", + "schemaVersion": 1, + "value": "ErnieImageModularPipeline" + }, + "Flux2KleinBaseModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Flux 2 Klein Base", + "schemaVersion": 1, + "value": "Flux2KleinBaseModularPipeline" + }, + "Flux2KleinModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Flux 2 Klein Distilled", + "schemaVersion": 1, + "value": "Flux2KleinModularPipeline" + }, + "Flux2ModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Flux 2", + "schemaVersion": 1, + "value": "Flux2ModularPipeline" + }, + "Flux3DistilledModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "FLUX 3 Image Klein", + "schemaVersion": 1, + "value": "Flux3DistilledModularPipeline" + }, + "Flux3ModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "FLUX 3 Image Klein Base", + "schemaVersion": 1, + "value": "Flux3ModularPipeline" + }, + "FluxKontextModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Flux Kontext", + "schemaVersion": 1, + "value": "FluxKontextModularPipeline" + }, + "FluxModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Flux", + "schemaVersion": 1, + "value": "FluxModularPipeline" + }, + "HeliosModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Helios", + "schemaVersion": 1, + "value": "HeliosModularPipeline" + }, + "HeliosPyramidDistilledModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Helios Pyramid Distilled", + "schemaVersion": 1, + "value": "HeliosPyramidDistilledModularPipeline" + }, + "HeliosPyramidModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Helios Pyramid", + "schemaVersion": 1, + "value": "HeliosPyramidModularPipeline" + }, + "HunyuanVideo15ModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "HunyuanVideo 1.5", + "schemaVersion": 1, + "value": "HunyuanVideo15ModularPipeline" + }, + "Ideogram4ModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Ideogram 4 (Contract only)", + "schemaVersion": 1, + "value": "Ideogram4ModularPipeline" + }, + "Krea2ModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Krea 2 (Contract only)", + "schemaVersion": 1, + "value": "Krea2ModularPipeline" + }, + "Krea2TurboModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Krea 2 Turbo (Contract only)", + "schemaVersion": 1, + "value": "Krea2TurboModularPipeline" + }, + "LTX25ModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "LTX-2.5 (Contract only)", + "schemaVersion": 1, + "value": "LTX25ModularPipeline" + }, + "MiniMaxH3ModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "MiniMax H3", + "schemaVersion": 1, + "value": "MiniMaxH3ModularPipeline" + }, + "MiniMaxMusic3ModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "MiniMax Music 3", + "schemaVersion": 1, + "value": "MiniMaxMusic3ModularPipeline" + }, + "QwenImageEditModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Qwen-Image-Edit", + "schemaVersion": 1, + "value": "QwenImageEditModularPipeline" + }, + "QwenImageEditPlusModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Qwen-Image-Edit-2511", + "schemaVersion": 1, + "value": "QwenImageEditPlusModularPipeline" + }, + "QwenImageLayeredModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Qwen-Image-Layered", + "schemaVersion": 1, + "value": "QwenImageLayeredModularPipeline" + }, + "QwenImageModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Qwen-Image-2512", + "schemaVersion": 1, + "value": "QwenImageModularPipeline" + }, + "StableDiffusion3ModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Stable Diffusion 3 (Contract only)", + "schemaVersion": 1, + "value": "StableDiffusion3ModularPipeline" + }, + "StableDiffusionXLModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Stable Diffusion XL", + "schemaVersion": 1, + "value": "StableDiffusionXLModularPipeline" + }, + "WanAnimate2DistilledModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Wan Animate 2 Distilled", + "schemaVersion": 1, + "value": "WanAnimate2DistilledModularPipeline" + }, + "WanAnimate2ModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Wan Animate 2", + "schemaVersion": 1, + "value": "WanAnimate2ModularPipeline" + }, + "WanImage2VideoModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "WAN2 I2V", + "schemaVersion": 1, + "value": "WanImage2VideoModularPipeline" + }, + "WanModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "WAN2 T2V", + "schemaVersion": 1, + "value": "WanModularPipeline" + }, + "ZImageModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Z-Image", + "schemaVersion": 1, + "value": "ZImageModularPipeline" + } + }, + "type": "string", + "value": "Flux3DistilledModularPipeline" + }, + "modiff_pipeline_identity": { + "hidden": true, + "label": "Custom Pipeline Identity", + "type": "object", + "value": null + }, + "offload_mode": { + "default": "model_cpu", + "label": "Offload Mode", + "options": [ + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "auto_cpu", + "schemaVersion": 1, + "value": "auto_cpu" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "none", + "schemaVersion": 1, + "value": "none" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "model_cpu", + "schemaVersion": 1, + "value": "model_cpu" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "group_cpu", + "schemaVersion": 1, + "value": "group_cpu" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "group_disk", + "schemaVersion": 1, + "value": "group_disk" + } + ], + "type": "string", + "value": "model_cpu" + }, + "pipeline_components": { + "connectionRole": "pipeline_components", + "display": "output", + "hidden": false, + "label": "Pipeline Components", + "signal": { + "direction": "output", + "origin": "modiff_pipeline_identity", + "value": "Flux3DistilledModularPipeline" + }, + "type": "diffusers_modular_pipeline_components" + }, + "quant_config": { "display": "input", "label": "Quant Config", "type": "quant_config" }, + "refresh_pipeline_identity_button": { + "display": "ui_button", + "hidden": true, + "label": "Review and Refresh Custom Contract", + "onChange": "refresh_pipeline_identity", + "value": false + }, + "repo_id": { + "display": "modelselect", + "fieldOptions": { + "filter": { "hub": { "className": ["Flux3DistilledModularPipeline"] } }, + "noValidation": true, + "sources": ["hub", "local"] + }, + "label": "Repository ID", + "onChange": "refresh_pipeline_identity", + "type": "string", + "value": { "source": "hub", "value": "black-forest-labs/flux-3-image-klein" } + }, + "reviewed_variant": { + "description": "Select an immutable, reviewed checkpoint for this exact Modular Diffusers pipeline family. Changing it does not replace the workflow graph or reset its parameters.", + "fieldOptions": { "controlTier": "essential" }, + "hidden": true, + "label": "Model", + "options": [ + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "black-forest-labs/flux-3-image-klein", + "schemaVersion": 1, + "value": "black-forest-labs/flux-3-image-klein" + } + ], + "type": "string", + "value": "black-forest-labs/flux-3-image-klein" + }, + "revision": { + "description": "Required exact 40-character commit hash for Hub custom contracts.", + "label": "Revision", + "onChange": "refresh_pipeline_identity", + "type": "string", + "value": "8454017f9ebaada30c998fccd9f67a80c7580f68" + }, + "scheduler": { + "connectionRole": "scheduler", + "display": "output", + "hidden": false, + "label": "Scheduler", + "signal": { + "direction": "output", + "origin": "modiff_pipeline_identity", + "value": "Flux3DistilledModularPipeline" + }, + "type": "diffusers_auto_model" + }, + "text_encoders": { + "connectionRole": "text_encoders", + "display": "output", + "hidden": false, + "label": "Text Encoders", + "signal": { + "direction": "output", + "origin": "modiff_pipeline_identity", + "value": "Flux3DistilledModularPipeline" + }, + "type": "diffusers_auto_models" + }, + "trust_remote_code": { + "description": "Repository code execution is disabled; keep this off for contract preview.", + "label": "Trust Remote Code", + "onChange": "refresh_pipeline_identity", + "type": "boolean", + "value": false + }, + "unet": { "display": "input", "hidden": false, "label": "Denoise Model", "type": "diffusers_auto_model" }, + "unet_out": { + "connectionRole": "denoiser", + "display": "output", + "hidden": false, + "label": "Denoise Model", + "signal": { + "direction": "output", + "origin": "modiff_pipeline_identity", + "value": "Flux3DistilledModularPipeline" + }, + "type": "diffusers_auto_model" + }, + "vae": { "display": "input", "hidden": false, "label": "VAE", "type": "diffusers_auto_model" }, + "vae_out": { + "connectionRole": "vae", + "display": "output", + "hidden": false, + "label": "VAE", + "signal": { + "direction": "output", + "origin": "modiff_pipeline_identity", + "value": "Flux3DistilledModularPipeline" + }, + "type": "diffusers_auto_model" + }, + "vae_slicing": { + "default": null, + "description": "An unset policy preserves the native VAE configuration; templates may bind an explicit boolean.", + "hidden": true, + "label": "VAE Slicing", + "type": "boolean" + }, + "vae_tiling": { + "default": null, + "description": "An unset policy preserves the native VAE configuration; templates may bind an explicit boolean.", + "hidden": true, + "label": "VAE Tiling", + "type": "boolean" + }, + "weight_format": { + "default": "native", + "description": "Select a backend-declared immutable component format. Missing reviewed files must be installed through Model Manager.", + "fieldOptions": { "controlTier": "advanced" }, + "hidden": false, + "label": "Weight Format", + "options": [ + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "native", + "schemaVersion": 1, + "value": "native" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "fp8r", + "schemaVersion": 1, + "value": "fp8r" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "nvfp4", + "schemaVersion": 1, + "value": "nvfp4" + } + ], + "type": "string" + }, + "weight_loading_mode": { + "default": "cpu", + "description": "Load weights on CPU or CUDA before disk offload. CUDA loading needs room for a complete component and is available only for supported models.", + "fieldOptions": { "controlTier": "advanced" }, + "label": "Weight Loading", + "options": [ + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "cpu", + "schemaVersion": 1, + "value": "cpu" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "cuda", + "schemaVersion": 1, + "value": "cuda" + } + ], + "type": "string" + }, + "workflow_id": { + "description": "Exact reviewed component partition selected by a first-party Cluster Node.", + "hidden": true, + "label": "Reviewed Workflow", + "type": "string", + "value": "text2image" + } + }, + "resizable": true, + "skipParamsCheck": true, + "style": {}, + "time": [0, 0, 0], + "type": "custom" + }, + "operation": { + "binding": { + "pipelineClass": "Flux3DistilledModularPipeline", + "values": { "model_type": "Flux3DistilledModularPipeline" } + }, + "blockName": null, + "decomposition": "loader", + "nodeKey": "modules.ModularDiffusers.ModelsLoader", + "nodeType": "loader", + "operationId": "diffusion.load_models", + "pipelineClass": "Flux3DistilledModularPipeline", + "ports": [ + { + "direction": "input", + "hidden": false, + "name": "model_type", + "required": false, + "roles": ["value"], + "semanticName": "model_type", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": false, + "name": "repo_id", + "required": false, + "roles": ["value"], + "semanticName": "repo_id", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": true, + "name": "reviewed_variant", + "required": false, + "roles": ["value"], + "semanticName": "reviewed_variant", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": false, + "name": "device", + "required": false, + "roles": ["value"], + "semanticName": "device", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": false, + "name": "attention_backend", + "required": false, + "roles": ["value"], + "semanticName": "attention_backend", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": true, + "name": "vae_slicing", + "required": false, + "roles": ["value"], + "semanticName": "vae_slicing", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["boolean"] + }, + { + "direction": "input", + "hidden": true, + "name": "vae_tiling", + "required": false, + "roles": ["value"], + "semanticName": "vae_tiling", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["boolean"] + }, + { + "direction": "input", + "hidden": true, + "name": "inpaint_compatibility", + "required": false, + "roles": ["value"], + "semanticName": "inpaint_compatibility", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": false, + "name": "trust_remote_code", + "required": false, + "roles": ["value"], + "semanticName": "trust_remote_code", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["boolean"] + }, + { + "direction": "input", + "hidden": false, + "name": "revision", + "required": false, + "roles": ["value"], + "semanticName": "revision", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": true, + "name": "workflow_id", + "required": false, + "roles": ["value"], + "semanticName": "workflow_id", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": true, + "name": "modiff_pipeline_identity", + "required": false, + "roles": ["value"], + "semanticName": "modiff_pipeline_identity", + "semantics": { + "kind": "opaque", + "members": [], + "owner": "none", + "scope": "Flux3DistilledModularPipeline", + "state": null + }, + "types": ["object"] + }, + { + "direction": "input", + "hidden": false, + "name": "auto_offload", + "required": false, + "roles": ["value"], + "semanticName": "auto_offload", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["boolean"] + }, + { + "direction": "input", + "hidden": false, + "name": "offload_mode", + "required": false, + "roles": ["value"], + "semanticName": "offload_mode", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": false, + "name": "weight_loading_mode", + "required": false, + "roles": ["value"], + "semanticName": "weight_loading_mode", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": true, + "name": "weight_format", + "required": false, + "roles": ["value"], + "semanticName": "weight_format", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": false, + "name": "unet", + "required": false, + "roles": ["component"], + "semanticName": "unet", + "semantics": { + "kind": "component", + "members": [ + { + "name": "transformer", + "type": "diffusers.models.transformers.transformer_flux3.Flux3Transformer2DModel" + } + ], + "owner": "same_loader", + "scope": "Flux3DistilledModularPipeline", + "state": null + }, + "types": ["diffusers_auto_model"] + }, + { + "direction": "input", + "hidden": false, + "name": "vae", + "required": false, + "roles": ["component"], + "semanticName": "vae", + "semantics": { + "kind": "component", + "members": [ + { "name": "vae", "type": "diffusers.models.autoencoders.autoencoder_kl_flux2.AutoencoderKLFlux2" } + ], + "owner": "same_loader", + "scope": "Flux3DistilledModularPipeline", + "state": null + }, + "types": ["diffusers_auto_model"] + }, + { + "direction": "input", + "hidden": true, + "name": "controlnet", + "required": false, + "roles": ["component"], + "semanticName": "controlnet", + "semantics": { + "kind": "component", + "members": [], + "owner": "same_loader", + "scope": "Flux3DistilledModularPipeline", + "state": null + }, + "types": ["diffusers_auto_model"] + }, + { + "direction": "input", + "hidden": false, + "name": "lora_list", + "required": false, + "roles": ["value"], + "semanticName": "lora_list", + "semantics": { + "kind": "opaque", + "members": [], + "owner": "none", + "scope": "Flux3DistilledModularPipeline", + "state": null + }, + "types": ["custom_lora"] + }, + { + "direction": "output", + "hidden": false, + "name": "text_encoders", + "required": false, + "roles": ["component"], + "semanticName": "text_encoders", + "semantics": { + "kind": "component", + "members": [ + { + "name": "text_encoder", + "type": "transformers.models.qwen3_vl.modeling_qwen3_vl.Qwen3VLForConditionalGeneration" + }, + { "name": "tokenizer", "type": "transformers.models.auto.processing_auto.AutoProcessor" } + ], + "owner": "same_loader", + "scope": "Flux3DistilledModularPipeline", + "state": null + }, + "types": ["diffusers_auto_models"] + }, + { + "direction": "output", + "hidden": false, + "name": "unet_out", + "required": false, + "roles": ["component"], + "semanticName": "unet_out", + "semantics": { + "kind": "component", + "members": [ + { + "name": "transformer", + "type": "diffusers.models.transformers.transformer_flux3.Flux3Transformer2DModel" + } + ], + "owner": "same_loader", + "scope": "Flux3DistilledModularPipeline", + "state": null + }, + "types": ["diffusers_auto_model"] + }, + { + "direction": "output", + "hidden": false, + "name": "vae_out", + "required": false, + "roles": ["component"], + "semanticName": "vae_out", + "semantics": { + "kind": "component", + "members": [ + { "name": "vae", "type": "diffusers.models.autoencoders.autoencoder_kl_flux2.AutoencoderKLFlux2" } + ], + "owner": "same_loader", + "scope": "Flux3DistilledModularPipeline", + "state": null + }, + "types": ["diffusers_auto_model"] + }, + { + "direction": "output", + "hidden": false, + "name": "scheduler", + "required": false, + "roles": ["component"], + "semanticName": "scheduler", + "semantics": { + "kind": "component", + "members": [ + { + "name": "scheduler", + "type": "diffusers.schedulers.scheduling_flow_match_euler_discrete.FlowMatchEulerDiscreteScheduler" + } + ], + "owner": "same_loader", + "scope": "Flux3DistilledModularPipeline", + "state": null + }, + "types": ["diffusers_auto_model"] + }, + { + "direction": "output", + "hidden": true, + "name": "image_encoder", + "required": false, + "roles": ["component"], + "semanticName": "image_encoder", + "semantics": { + "kind": "component", + "members": [], + "owner": "same_loader", + "scope": "Flux3DistilledModularPipeline", + "state": null + }, + "types": ["diffusers_auto_model"] + }, + { + "direction": "output", + "hidden": false, + "name": "pipeline_components", + "required": false, + "roles": ["component"], + "semanticName": "pipeline_components", + "semantics": { + "kind": "component", + "members": [ + { + "name": "image_processor", + "type": "diffusers.modular_pipelines.flux3.image_processor.Flux3ImageProcessor" + }, + { + "name": "scheduler", + "type": "diffusers.schedulers.scheduling_flow_match_euler_discrete.FlowMatchEulerDiscreteScheduler" + }, + { + "name": "text_encoder", + "type": "transformers.models.qwen3_vl.modeling_qwen3_vl.Qwen3VLForConditionalGeneration" + }, + { "name": "tokenizer", "type": "transformers.models.auto.processing_auto.AutoProcessor" }, + { + "name": "transformer", + "type": "diffusers.models.transformers.transformer_flux3.Flux3Transformer2DModel" + }, + { "name": "vae", "type": "diffusers.models.autoencoders.autoencoder_kl_flux2.AutoencoderKLFlux2" } + ], + "owner": "same_loader", + "scope": "Flux3DistilledModularPipeline", + "state": null + }, + "types": ["diffusers_modular_pipeline_components"] + }, + { + "direction": "input", + "hidden": false, + "name": "quant_config", + "required": false, + "roles": ["value"], + "semanticName": "quant_config", + "semantics": { + "kind": "opaque", + "members": [], + "owner": "none", + "scope": "Flux3DistilledModularPipeline", + "state": null + }, + "types": ["quant_config"] + } + ], + "support": "declared", + "task": "text_to_image", + "workflowId": "text2image" + } + }, + { + "node": { + "action": "EncodePrompt", + "cache": false, + "category": "embedding", + "description": "", + "label": "Encode Prompt", + "memory": [0, 0, 0], + "module": "modules.ModularDiffusers", + "params": { + "doc": { "display": "output", "label": "Doc", "type": "string" }, + "embeddings": { "display": "output", "label": "Text Embeddings", "type": "embeddings" }, + "guider": { + "description": "Shared Diffusers guidance used by prompt encoding and denoising when the selected pipeline supports it.", + "display": "input", + "hidden": true, + "label": "Guider", + "type": "custom_guider" + }, + "layout_conditioning": { + "default": null, + "display": "layout", + "fieldOptions": { + "layoutConditioning": { + "schemaVersion": 2, + "sourceRegions": false, + "supportsBoundSourceRegions": true + } + }, + "label": "Layout Conditioning", + "type": "layout_conditioning" + }, + "layout_reference_summary": { + "description": "Display-only ordered reference identities and actual preprocessing sizes from the current encoder cache.", + "display": "output", + "hidden": true, + "label": "Bound Reference Summary", + "type": "string" + }, + "max_sequence_length": { + "default": 8192, + "label": "Maximum Sequence Length", + "max": 8192, + "min": 1, + "step": 1, + "type": "int" + }, + "prompt": { + "default": "", + "display": "textarea", + "fieldOptions": { "exampleAttribution": "MoDiff task example" }, + "label": "Prompt *", + "type": "string", + "value": "A red ceramic teapot on a wooden table beside a window, soft morning light, detailed photograph." + }, + "prompt_input": { + "description": "Optional connected prompt. When connected, this replaces the inline Prompt value.", + "display": "input", + "label": "Prompt Input", + "type": "string" + }, + "reference_binding": { + "default": null, + "display": "input", + "fieldOptions": { "referenceBinding": { "maxReferences": 10, "schemaVersion": 1 } }, + "label": "Reference Binding", + "type": "reference_conditioning" + }, + "text_encoder_out_layers": { + "default": [4, 8, 12, 16, 20, 24, 28, 32], + "display": "select", + "fieldOptions": { "multiple": true, "tupleLength": 8, "tupleValue": true }, + "label": "Text Encoder Layers", + "options": [ + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "0", + "schemaVersion": 1, + "value": "0" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "1", + "schemaVersion": 1, + "value": "1" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "2", + "schemaVersion": 1, + "value": "2" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "3", + "schemaVersion": 1, + "value": "3" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "4", + "schemaVersion": 1, + "value": "4" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "5", + "schemaVersion": 1, + "value": "5" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "6", + "schemaVersion": 1, + "value": "6" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "7", + "schemaVersion": 1, + "value": "7" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "8", + "schemaVersion": 1, + "value": "8" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "9", + "schemaVersion": 1, + "value": "9" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "10", + "schemaVersion": 1, + "value": "10" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "11", + "schemaVersion": 1, + "value": "11" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "12", + "schemaVersion": 1, + "value": "12" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "13", + "schemaVersion": 1, + "value": "13" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "14", + "schemaVersion": 1, + "value": "14" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "15", + "schemaVersion": 1, + "value": "15" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "16", + "schemaVersion": 1, + "value": "16" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "17", + "schemaVersion": 1, + "value": "17" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "18", + "schemaVersion": 1, + "value": "18" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "19", + "schemaVersion": 1, + "value": "19" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "20", + "schemaVersion": 1, + "value": "20" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "21", + "schemaVersion": 1, + "value": "21" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "22", + "schemaVersion": 1, + "value": "22" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "23", + "schemaVersion": 1, + "value": "23" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "24", + "schemaVersion": 1, + "value": "24" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "25", + "schemaVersion": 1, + "value": "25" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "26", + "schemaVersion": 1, + "value": "26" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "27", + "schemaVersion": 1, + "value": "27" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "28", + "schemaVersion": 1, + "value": "28" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "29", + "schemaVersion": 1, + "value": "29" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "30", + "schemaVersion": 1, + "value": "30" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "31", + "schemaVersion": 1, + "value": "31" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "32", + "schemaVersion": 1, + "value": "32" + } + ], + "type": "int" + }, + "text_encoders": { + "display": "input", + "label": "Text Encoders *", + "onSignal": "update_node", + "required": true, + "signalCompatibility": { "role": "text_encoders" }, + "type": "diffusers_auto_models" + } + }, + "resizable": true, + "skipParamsCheck": true, + "style": {}, + "time": [0, 0, 0], + "type": "custom" + }, + "operation": { + "binding": { "pipelineClass": "Flux3DistilledModularPipeline", "values": {} }, + "blockName": "text_encoder", + "decomposition": "block", + "nodeKey": "modules.ModularDiffusers.EncodePrompt", + "nodeType": "text_encoder", + "operationId": "diffusion.encode_prompt", + "pipelineClass": "Flux3DistilledModularPipeline", + "ports": [ + { + "direction": "input", + "hidden": false, + "name": "prompt", + "required": true, + "roles": ["value"], + "semanticName": "prompt", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": false, + "name": "max_sequence_length", + "required": false, + "roles": ["value"], + "semanticName": "max_sequence_length", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["int"] + }, + { + "direction": "input", + "hidden": false, + "name": "text_encoder_out_layers", + "required": false, + "roles": ["value"], + "semanticName": "text_encoder_out_layers", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["int"] + }, + { + "direction": "input", + "hidden": false, + "name": "text_encoders", + "required": true, + "roles": ["component"], + "semanticName": "text_encoders", + "semantics": { + "kind": "component", + "members": [ + { + "name": "text_encoder", + "type": "transformers.models.qwen3_vl.modeling_qwen3_vl.Qwen3VLForConditionalGeneration" + }, + { "name": "tokenizer", "type": "transformers.models.auto.processing_auto.AutoProcessor" } + ], + "owner": "same_loader", + "scope": "Flux3DistilledModularPipeline", + "state": null + }, + "types": ["diffusers_auto_models"] + }, + { + "direction": "output", + "hidden": false, + "name": "embeddings", + "required": false, + "roles": ["value"], + "semanticName": "embeddings", + "semantics": { + "kind": "conditioning", + "members": [], + "owner": "same_loader", + "scope": "Flux3DistilledModularPipeline", + "state": null + }, + "types": ["embeddings"] + }, + { + "direction": "output", + "hidden": false, + "name": "doc", + "required": false, + "roles": ["value"], + "semanticName": "doc", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": false, + "name": "layout_conditioning", + "required": false, + "roles": ["value"], + "semanticName": "layout_conditioning", + "semantics": { + "kind": "opaque", + "members": [], + "owner": "none", + "scope": "Flux3DistilledModularPipeline", + "state": null + }, + "types": ["layout_conditioning"] + }, + { + "direction": "input", + "hidden": false, + "name": "reference_binding", + "required": false, + "roles": ["value"], + "semanticName": "reference_binding", + "semantics": { + "kind": "opaque", + "members": [], + "owner": "none", + "scope": "Flux3DistilledModularPipeline", + "state": null + }, + "types": ["reference_conditioning"] + }, + { + "direction": "input", + "hidden": false, + "name": "prompt_input", + "required": false, + "roles": ["value"], + "semanticName": "prompt", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + } + ], + "support": "declared", + "task": "text_to_image", + "workflowId": "text2image" + } + }, + { + "node": { + "action": "Denoise", + "cache": false, + "category": "sampler", + "description": "", + "label": "Denoise", + "memory": [0, 0, 0], + "module": "modules.ModularDiffusers", + "params": { + "doc": { "display": "output", "label": "Doc", "type": "string" }, + "embeddings": { "display": "input", "label": "Text Embeddings *", "type": "embeddings" }, + "height": { "default": 1024, "label": "Height", "min": 64, "step": 16, "type": "int", "value": 1024 }, + "image_cond_latents": { "display": "input", "label": "Reference Latents", "type": "latents" }, + "latents": { "display": "output", "label": "Latents", "type": "latents" }, + "num_images_per_prompt": { + "default": 1, + "label": "Images Per Prompt", + "max": 8, + "min": 1, + "step": 1, + "type": "int" + }, + "num_inference_steps": { + "default": 16, + "display": "slider", + "label": "Steps", + "max": 100, + "min": 1, + "type": "int", + "value": 16 + }, + "reference_binding": { + "default": null, + "display": "input", + "fieldOptions": { "referenceBinding": { "maxReferences": 10, "schemaVersion": 1 } }, + "label": "Reference Binding", + "type": "reference_conditioning" + }, + "scheduler": { + "display": "input", + "label": "Scheduler *", + "signalCompatibility": { "role": "scheduler" }, + "type": "diffusers_auto_model" + }, + "seed": { + "default": 0, + "display": "random", + "label": "Seed", + "max": 4294967295, + "min": 0, + "type": "int" + }, + "unet": { + "display": "input", + "label": "Denoise Model *", + "onSignal": [ + "update_node", + { "action": "signal", "target": "guider" }, + { "action": "signal", "target": "controlnet_bundle" } + ], + "required": true, + "signalCompatibility": { "role": "denoiser" }, + "type": "diffusers_auto_model" + }, + "width": { "default": 1024, "label": "Width", "min": 64, "step": 16, "type": "int", "value": 1024 } + }, + "resizable": true, + "skipParamsCheck": true, + "style": {}, + "time": [0, 0, 0], + "type": "custom" + }, + "operation": { + "binding": { "pipelineClass": "Flux3DistilledModularPipeline", "values": {} }, + "blockName": "denoise", + "decomposition": "block", + "nodeKey": "modules.ModularDiffusers.Denoise", + "nodeType": "denoise", + "operationId": "diffusion.denoise", + "pipelineClass": "Flux3DistilledModularPipeline", + "ports": [ + { + "direction": "input", + "hidden": false, + "name": "embeddings", + "required": true, + "roles": ["value"], + "semanticName": "embeddings", + "semantics": { + "kind": "conditioning", + "members": [], + "owner": "same_loader", + "scope": "Flux3DistilledModularPipeline", + "state": null + }, + "types": ["embeddings"] + }, + { + "direction": "input", + "hidden": false, + "name": "width", + "required": false, + "roles": ["value"], + "semanticName": "width", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["int"] + }, + { + "direction": "input", + "hidden": false, + "name": "height", + "required": false, + "roles": ["value"], + "semanticName": "height", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["int"] + }, + { + "direction": "input", + "hidden": false, + "name": "seed", + "required": false, + "roles": ["value"], + "semanticName": "seed", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["int"] + }, + { + "direction": "input", + "hidden": false, + "name": "num_inference_steps", + "required": false, + "roles": ["value"], + "semanticName": "num_inference_steps", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["int"] + }, + { + "direction": "input", + "hidden": false, + "name": "num_images_per_prompt", + "required": false, + "roles": ["value"], + "semanticName": "num_images_per_prompt", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["int"] + }, + { + "direction": "input", + "hidden": false, + "name": "image_cond_latents", + "required": false, + "roles": ["value"], + "semanticName": "image_cond_latents", + "semantics": { + "kind": "latents", + "members": [], + "owner": "same_loader", + "scope": "Flux3DistilledModularPipeline", + "state": null + }, + "types": ["latents"] + }, + { + "direction": "input", + "hidden": false, + "name": "unet", + "required": true, + "roles": ["component"], + "semanticName": "unet", + "semantics": { + "kind": "component", + "members": [ + { + "name": "transformer", + "type": "diffusers.models.transformers.transformer_flux3.Flux3Transformer2DModel" + } + ], + "owner": "same_loader", + "scope": "Flux3DistilledModularPipeline", + "state": null + }, + "types": ["diffusers_auto_model"] + }, + { + "direction": "input", + "hidden": false, + "name": "scheduler", + "required": true, + "roles": ["component"], + "semanticName": "scheduler", + "semantics": { + "kind": "component", + "members": [ + { + "name": "scheduler", + "type": "diffusers.schedulers.scheduling_flow_match_euler_discrete.FlowMatchEulerDiscreteScheduler" + } + ], + "owner": "same_loader", + "scope": "Flux3DistilledModularPipeline", + "state": null + }, + "types": ["diffusers_auto_model"] + }, + { + "direction": "output", + "hidden": false, + "name": "latents", + "required": false, + "roles": ["value"], + "semanticName": "latents", + "semantics": { + "kind": "latents", + "members": [], + "owner": "same_loader", + "scope": "Flux3DistilledModularPipeline", + "state": null + }, + "types": ["latents"] + }, + { + "direction": "output", + "hidden": false, + "name": "doc", + "required": false, + "roles": ["value"], + "semanticName": "doc", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": false, + "name": "reference_binding", + "required": false, + "roles": ["value"], + "semanticName": "reference_binding", + "semantics": { + "kind": "opaque", + "members": [], + "owner": "none", + "scope": "Flux3DistilledModularPipeline", + "state": null + }, + "types": ["reference_conditioning"] + } + ], + "support": "declared", + "task": "text_to_image", + "workflowId": "text2image" + } + }, + { + "node": { + "action": "DecodeLatents", + "cache": false, + "category": "sampler", + "description": "", + "label": "Decode Latents", + "memory": [0, 0, 0], + "module": "modules.ModularDiffusers", + "params": { + "doc": { "display": "output", "label": "Doc", "type": "string" }, + "images": { "display": "output", "label": "Images", "type": "image" }, + "latents": { "display": "input", "label": "Latents *", "type": "latents" }, + "vae": { + "display": "input", + "label": "VAE *", + "onSignal": "update_node", + "signalCompatibility": { "role": "vae" }, + "type": "diffusers_auto_model" + } + }, + "resizable": true, + "skipParamsCheck": true, + "style": {}, + "time": [0, 0, 0], + "type": "custom" + }, + "operation": { + "binding": { "pipelineClass": "Flux3DistilledModularPipeline", "values": {} }, + "blockName": "decode", + "decomposition": "block", + "nodeKey": "modules.ModularDiffusers.DecodeLatents", + "nodeType": "decoder", + "operationId": "diffusion.decode_latents", + "pipelineClass": "Flux3DistilledModularPipeline", + "ports": [ + { + "direction": "input", + "hidden": false, + "name": "latents", + "required": true, + "roles": ["value"], + "semanticName": "latents", + "semantics": { + "kind": "latents", + "members": [], + "owner": "same_loader", + "scope": "Flux3DistilledModularPipeline", + "state": null + }, + "types": ["latents"] + }, + { + "direction": "input", + "hidden": false, + "name": "vae", + "required": true, + "roles": ["component"], + "semanticName": "vae", + "semantics": { + "kind": "component", + "members": [ + { "name": "vae", "type": "diffusers.models.autoencoders.autoencoder_kl_flux2.AutoencoderKLFlux2" } + ], + "owner": "same_loader", + "scope": "Flux3DistilledModularPipeline", + "state": null + }, + "types": ["diffusers_auto_model"] + }, + { + "direction": "output", + "hidden": false, + "name": "images", + "required": false, + "roles": ["value"], + "semanticName": "images", + "semantics": { "kind": "media", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["image"] + }, + { + "direction": "output", + "hidden": false, + "name": "doc", + "required": false, + "roles": ["value"], + "semanticName": "doc", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + } + ], + "support": "declared", + "task": "text_to_image", + "workflowId": "text2image" + } + } + ], + "pipelineClass": "Flux3DistilledModularPipeline", + "requiredInputs": [{ "field": "prompt", "operationId": "diffusion.encode_prompt" }], + "schemaVersion": 1, + "sharedInputs": [], + "task": "text_to_image", + "upstreamBlocks": ["text_encoder", "denoise", "decode"], + "workflowId": "text2image" + }, + { + "authoring": { + "ancillaryOperations": [ + { + "adapter": { + "declarationSha256": "sha256:2a3d4685988b418115008bbb95fb3e948097580c0bedd2940ea3fe1e40254dc2", + "id": "transformers-prompt-enhancement-v1" + }, + "authoredLayoutConstraint": { + "adapterId": "transformers-prompt-enhancement-v1", + "artifacts": [ + { + "byteSize": 19989325, + "path": "tokenizer.json", + "sha256": "06b9509352d2af50381ab2247e083b80d32d5c0aba91c272ca9ff729b6a0e523" + }, + { + "byteSize": 1164, + "path": "tokenizer_config.json", + "sha256": "7488550a894dcf741616126e322ea31d66cf9457b59ec5825f4c7efdced421f8" + }, + { + "byteSize": 163, + "path": "generation_config.json", + "sha256": "e92258e3c39afbaa73fd53a98640c56f6d42fb091e1664697bd5396a1dcbb761" + } + ], + "configuredEosTokenIds": [248046, 248044], + "deadlineSeconds": 1800, + "declarationSha256": "sha256:f321df19db5e99786b807a13d8f380e4bc0577e27163b94e6762661881ac5c08", + "effectiveEosTokenIds": [248046], + "effectivePreTokenizerSha256": "sha256:4cba7e5c03fddf4af78a44f283740fd19687522c60cc36ee271b655f634a7af3", + "layoutPolicy": "constrained-authored-table-v1", + "limits": { + "build_seconds": 10, + "lookup_seconds": 2, + "max_cache_bytes": 16777216, + "max_caption_chars": 131072, + "max_description_chars": 4096, + "max_new_tokens": 3584, + "max_output_bytes": 262144, + "max_references": 10, + "max_regions": 32, + "max_request_seconds": 1800, + "max_token_bytes": 512, + "max_trie_nodes": 2000000, + "max_vocabulary_bytes": 16777216, + "max_vocabulary_tokens": 300000 + }, + "operation": "enhance_prompt_constrained_authored_v1", + "ordinaryVocabularySha256": "sha256:13431bd652cdbd32f84568d0c2b9945ba506071178fdb527d40c4ece256f8b39", + "ordinaryVocabularyTokens": 248044, + "padTokenId": 248044, + "preparationRamBytes": 268435456, + "repository": "black-forest-labs/flux-3-image-klein-pup", + "reservedAddedTokenIds": [ + 248044, 248045, 248046, 248047, 248048, 248049, 248050, 248051, 248052, 248053, 248054, 248055, 248056, + 248057, 248058, 248059, 248060, 248061, 248062, 248063, 248064, 248065, 248066, 248067, 248068, 248069, + 248070, 248071, 248072, 248073, 248074, 248075, 248076 + ], + "revision": "3f3edb52b2c55de0d49feab28598b68f7f8e4830", + "schemaVersion": 1, + "sourcePreTokenizerSha256": "sha256:d730489d91319a99960af82e8fed44be8533ca92615198807b41c29dda5556fc", + "status": "contract_only", + "tokenizerClass": "Qwen3_5Tokenizer", + "tokenizerSemanticSha256": "sha256:40ebf1d8462c42c3b781b870aaa28884b24f86234bc0b49d54d2bbcf5ddc404a", + "tokenizersVersion": "0.23.2", + "transformersVersion": "5.18.0", + "trueSpecialTokenIds": [ + 248044, 248045, 248046, 248047, 248048, 248049, 248050, 248051, 248052, 248053, 248054, 248055, 248056, + 248057, 248070, 248071, 248072, 248073, 248074, 248075, 248076 + ], + "version": "authored-layout-byte-prefix-v1" + }, + "bindings": { + "output": { "field": "proposal_summary", "role": "proposal" }, + "owner": { + "layoutField": "layout_conditioning", + "promptField": "prompt", + "referenceSource": null, + "role": "prompt" + }, + "request": { + "imagesField": "images", + "layoutField": "layout_conditioning", + "promptField": "prompt", + "role": "proposal" + } + }, + "contentHash": "studio-ancillary-v1-21d20f4e", + "edges": [["provider", "model", "proposal", "model"]], + "executionPurpose": "explicit_preview", + "fieldOverrides": [ + ["proposal", "enhancement_max_new_tokens", { "hidden": false }], + ["proposal", "max_new_tokens", { "hidden": true }] + ], + "id": "flux3-klein:official:text-to-image:prompt-preview-constrained-fp32:v1:preview", + "initialValues": [ + ["provider", "model_id", { "source": "hub", "value": "black-forest-labs/flux-3-image-klein-pup" }], + ["provider", "revision", "3f3edb52b2c55de0d49feab28598b68f7f8e4830"], + ["proposal", "operation", "enhance_prompt_constrained_authored_v1"], + ["provider", "dtype", "float32"], + ["provider", "device", "cuda:0"], + ["provider", "quantization_mode", "none"], + ["proposal", "max_input_tokens", 4096] + ], + "layoutPolicy": "constrained-authored-table-v1", + "parent": { + "authoringRecipeId": "flux3-klein:official:text-to-image:prompt-preview-constrained-fp32:v1", + "baseSpecContentHash": "studio-spec-v1-8411b4e0", + "baseSpecId": "flux3-klein:official-provider:v1:text-to-image:v1", + "executionProfileId": "flux3-klein:official-provider:v1", + "pipelineClass": "Flux3DistilledModularPipeline", + "task": "text_to_image" + }, + "roles": [ + ["provider", "modules.HuggingFaceTransformers.LoadImageTextToTextModel", -720, -400], + ["proposal", "modules.HuggingFaceTransformers.GenerateImageVideoText", -360, -400] + ], + "schemaVersion": 1, + "sourceRegions": false, + "verification": { + "adapter": { + "declarationSha256": "sha256:2a3d4685988b418115008bbb95fb3e948097580c0bedd2940ea3fe1e40254dc2", + "id": "transformers-prompt-enhancement-v1" + }, + "chatTemplateSha256": "sha256:a4aee8afcf2e0711942cf848899be66016f8d14a889ff9ede07bca099c28f715", + "layoutRequestSuffixSha256": "sha256:5a17750012e7cc49ecf8169b48b9b9c1610c0ec198d8418dd9d3a7760ed9886e", + "modelReceipt": { + "library": "transformers", + "loader": { "modelAutoClass": "AutoModelForImageTextToText", "preprocessorAutoClass": "AutoProcessor" }, + "runtime": { + "architectures": ["Qwen3_5ForConditionalGeneration"], + "modelClass": "Qwen3_5ForConditionalGeneration", + "modelType": "qwen3_5", + "preprocessorClass": "Qwen3VLProcessor", + "transformersVersion": "5.18.0" + }, + "schemaVersion": 1, + "security": { + "hostedInference": false, + "localFilesOnly": true, + "safetensorsOnly": true, + "trustRemoteCode": false + }, + "source": { + "kind": "hub", + "repository": "black-forest-labs/flux-3-image-klein-pup", + "revision": "3f3edb52b2c55de0d49feab28598b68f7f8e4830" + }, + "task": "image-video-to-text" + }, + "quantizationRecipes": [ + { "mode": "none" }, + { + "computeDtype": "bfloat16", + "doubleQuant": true, + "mode": "bnb_4bit", + "quantType": "nf4", + "skipModules": ["lm_head", "model.visual"] + } + ], + "requestInputs": { + "maxImagePixelsField": "max_image_pixels", + "maxInputTokensField": "max_input_tokens", + "maxNewTokensField": "enhancement_max_new_tokens", + "minNewTokensField": "min_new_tokens", + "operationField": "operation", + "role": "proposal" + }, + "runtimeInputs": { + "deviceField": "device", + "dtypeField": "dtype", + "modelField": "model_id", + "quantizationField": "quantization_mode", + "revisionField": "revision", + "role": "provider" + }, + "schemaVersion": 1, + "supportedPromptModes": ["t2i", "i2i", "t2i_bbox", "i2i_bbox"], + "systemPromptSha256ByMode": { + "i2i": "95cec384d5b6d341caa9fb3f2c7ca45ee80c2364b3a95d4044aebf976f6dd3bf", + "i2i_bbox": "e7791b9d8f3c3d844a0ae493c28e7cdf549a98ba2dc66cad9f08de997127ef7d", + "t2i": "8b235a421bce2213d11ada01f5a1244443dd72303ffbb4cc9e5a0d8b0de5ab6f", + "t2i_bbox": "48bb52d2594ef7f33a1ecc1ef5b79ceab3ae4ff6ace9c2cafc13f4875e362f11" + }, + "systemPromptsSha256": "sha256:b5da3ed8bc04ab59dbdb747930f7dbff847e868903fed8028f85ee1a4ac82fb4" + } + } + ], + "baseSpecContentHash": "studio-spec-v1-8411b4e0", + "baseSpecId": "flux3-klein:official-provider:v1:text-to-image:v1", + "bindings": [ + ["models", "model_type", "pipelineClass"], + ["models", "repo_id", "artifact"], + ["models", "revision", "defaultRevision"], + ["models", "dtype", "dtype"], + ["models", "device", "device"], + ["models", "auto_offload", "autoOffload"], + ["models", "offload_mode", "offloadMode"], + ["models", "trust_remote_code", "false"], + ["prompt", "prompt", "prompt"], + ["denoise", "width", "width"], + ["denoise", "height", "height"], + ["denoise", "seed", "seed"], + ["denoise", "num_inference_steps", "steps"], + ["prompt", "max_sequence_length", "maxSequenceLength"], + ["models", "weight_format", "weightFormat"] + ], + "canonicalizationVersion": 1, + "contentHash": "studio-authoring-v1-3ca5383f", + "edges": [ + ["models", "text_encoders", "prompt", "text_encoders"], + ["models", "unet_out", "denoise", "unet"], + ["models", "scheduler", "denoise", "scheduler"], + ["models", "vae_out", "decode", "vae"], + ["prompt", "embeddings", "denoise", "embeddings"], + ["denoise", "latents", "decode", "latents"], + ["decode", "images", "preview", "image"] + ], + "executionProfileIds": ["flux3-klein:official-provider:v1"], + "id": "flux3-klein:official:text-to-image:prompt-preview-constrained-fp32:v1", + "initialValues": [], + "roles": [ + ["models", "modules.ModularDiffusers.ModelsLoader", -720, -80], + ["prompt", "modules.ModularDiffusers.EncodePrompt", -360, -240], + ["denoise", "modules.ModularDiffusers.Denoise", 80, -80], + ["decode", "modules.ModularDiffusers.DecodeLatents", 440, -80], + ["preview", "modules.Image.Preview", 800, -80] + ], + "schemaVersion": 1 + }, + "edges": [ + { + "source": "diffusion.load_models", + "sourceHandle": "text_encoders", + "target": "diffusion.encode_prompt", + "targetHandle": "text_encoders" + }, + { + "source": "diffusion.load_models", + "sourceHandle": "scheduler", + "target": "diffusion.denoise", + "targetHandle": "scheduler" + }, + { + "source": "diffusion.load_models", + "sourceHandle": "unet_out", + "target": "diffusion.denoise", + "targetHandle": "unet" + }, + { + "source": "diffusion.load_models", + "sourceHandle": "vae_out", + "target": "diffusion.decode_latents", + "targetHandle": "vae" + }, + { + "source": "diffusion.encode_prompt", + "sourceHandle": "embeddings", + "target": "diffusion.denoise", + "targetHandle": "embeddings" + }, + { + "source": "diffusion.denoise", + "sourceHandle": "latents", + "target": "diffusion.decode_latents", + "targetHandle": "latents" + } + ], + "nodes": [ + { + "node": { + "action": "ModelsLoader", + "cache": false, + "category": "loader", + "description": "", + "label": "Load Models", + "memory": [0, 0, 0], + "module": "modules.ModularDiffusers", + "params": { + "attention_backend": { + "default": "inherit", + "description": "Inherit preserves existing native component defaults; explicit choices use the ordinary Diffusers attention API.", + "label": "Attention Backend", + "options": [ + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "inherit", + "schemaVersion": 1, + "value": "inherit" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "auto", + "schemaVersion": 1, + "value": "auto" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "native", + "schemaVersion": 1, + "value": "native" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "_native_math", + "schemaVersion": 1, + "value": "_native_math" + } + ], + "type": "string" + }, + "auto_offload": { "label": "Enable Auto Offload", "type": "boolean", "value": true }, + "controlnet": { + "display": "input", + "hidden": true, + "label": "ControlNet", + "type": "diffusers_auto_model" + }, + "device": { + "label": "Device", + "options": { + "cpu": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "cpu", + "schemaVersion": 1, + "value": "cpu" + }, + "cpu:0": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "cpu:0", + "schemaVersion": 1, + "value": "cpu:0" + } + }, + "type": "string", + "value": "cpu:0" + }, + "dtype": { + "label": "dtype", + "options": [ + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "float32", + "schemaVersion": 1, + "value": "float32" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "float16", + "schemaVersion": 1, + "value": "float16" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "bfloat16", + "schemaVersion": 1, + "value": "bfloat16" + } + ], + "value": "bfloat16" + }, + "image_encoder": { + "connectionRole": "image_encoder", + "display": "output", + "hidden": true, + "label": "Image Encoder", + "signal": { + "direction": "output", + "origin": "modiff_pipeline_identity", + "value": "Flux3DistilledModularPipeline" + }, + "type": "diffusers_auto_model" + }, + "inpaint_compatibility": { + "default": "native", + "description": "Technical compatibility selection for the reviewed Qwen Edit inpainting candidate; existing nodes retain native policy.", + "hidden": true, + "label": "Inpaint Compatibility", + "options": [ + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "native", + "schemaVersion": 1, + "value": "native" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "whole_v1", + "schemaVersion": 1, + "value": "whole_v1" + } + ], + "type": "string" + }, + "lora_list": { "display": "input", "label": "Lora", "type": "custom_lora" }, + "model_type": { + "description": "Selects the Modular Diffusers pipeline class. This filters compatible checkpoints and publishes the component contract used by connected nodes; it is not the model checkpoint itself.", + "label": "Pipeline Type", + "onChange": "set_filters", + "options": { + "": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "", + "schemaVersion": 1, + "value": "" + }, + "AnimaModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Anima", + "schemaVersion": 1, + "value": "AnimaModularPipeline" + }, + "Cosmos3DistilledModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Cosmos 3 Distilled", + "schemaVersion": 1, + "value": "Cosmos3DistilledModularPipeline" + }, + "Cosmos3OmniModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Cosmos 3 Nano", + "schemaVersion": 1, + "value": "Cosmos3OmniModularPipeline" + }, + "DummyCustomPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Custom", + "schemaVersion": 1, + "value": "DummyCustomPipeline" + }, + "ErnieImageModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "ERNIE Image Turbo", + "schemaVersion": 1, + "value": "ErnieImageModularPipeline" + }, + "Flux2KleinBaseModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Flux 2 Klein Base", + "schemaVersion": 1, + "value": "Flux2KleinBaseModularPipeline" + }, + "Flux2KleinModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Flux 2 Klein Distilled", + "schemaVersion": 1, + "value": "Flux2KleinModularPipeline" + }, + "Flux2ModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Flux 2", + "schemaVersion": 1, + "value": "Flux2ModularPipeline" + }, + "Flux3DistilledModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "FLUX 3 Image Klein", + "schemaVersion": 1, + "value": "Flux3DistilledModularPipeline" + }, + "Flux3ModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "FLUX 3 Image Klein Base", + "schemaVersion": 1, + "value": "Flux3ModularPipeline" + }, + "FluxKontextModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Flux Kontext", + "schemaVersion": 1, + "value": "FluxKontextModularPipeline" + }, + "FluxModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Flux", + "schemaVersion": 1, + "value": "FluxModularPipeline" + }, + "HeliosModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Helios", + "schemaVersion": 1, + "value": "HeliosModularPipeline" + }, + "HeliosPyramidDistilledModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Helios Pyramid Distilled", + "schemaVersion": 1, + "value": "HeliosPyramidDistilledModularPipeline" + }, + "HeliosPyramidModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Helios Pyramid", + "schemaVersion": 1, + "value": "HeliosPyramidModularPipeline" + }, + "HunyuanVideo15ModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "HunyuanVideo 1.5", + "schemaVersion": 1, + "value": "HunyuanVideo15ModularPipeline" + }, + "Ideogram4ModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Ideogram 4 (Contract only)", + "schemaVersion": 1, + "value": "Ideogram4ModularPipeline" + }, + "Krea2ModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Krea 2 (Contract only)", + "schemaVersion": 1, + "value": "Krea2ModularPipeline" + }, + "Krea2TurboModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Krea 2 Turbo (Contract only)", + "schemaVersion": 1, + "value": "Krea2TurboModularPipeline" + }, + "LTX25ModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "LTX-2.5 (Contract only)", + "schemaVersion": 1, + "value": "LTX25ModularPipeline" + }, + "MiniMaxH3ModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "MiniMax H3", + "schemaVersion": 1, + "value": "MiniMaxH3ModularPipeline" + }, + "MiniMaxMusic3ModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "MiniMax Music 3", + "schemaVersion": 1, + "value": "MiniMaxMusic3ModularPipeline" + }, + "QwenImageEditModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Qwen-Image-Edit", + "schemaVersion": 1, + "value": "QwenImageEditModularPipeline" + }, + "QwenImageEditPlusModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Qwen-Image-Edit-2511", + "schemaVersion": 1, + "value": "QwenImageEditPlusModularPipeline" + }, + "QwenImageLayeredModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Qwen-Image-Layered", + "schemaVersion": 1, + "value": "QwenImageLayeredModularPipeline" + }, + "QwenImageModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Qwen-Image-2512", + "schemaVersion": 1, + "value": "QwenImageModularPipeline" + }, + "StableDiffusion3ModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Stable Diffusion 3 (Contract only)", + "schemaVersion": 1, + "value": "StableDiffusion3ModularPipeline" + }, + "StableDiffusionXLModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Stable Diffusion XL", + "schemaVersion": 1, + "value": "StableDiffusionXLModularPipeline" + }, + "WanAnimate2DistilledModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Wan Animate 2 Distilled", + "schemaVersion": 1, + "value": "WanAnimate2DistilledModularPipeline" + }, + "WanAnimate2ModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Wan Animate 2", + "schemaVersion": 1, + "value": "WanAnimate2ModularPipeline" + }, + "WanImage2VideoModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "WAN2 I2V", + "schemaVersion": 1, + "value": "WanImage2VideoModularPipeline" + }, + "WanModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "WAN2 T2V", + "schemaVersion": 1, + "value": "WanModularPipeline" + }, + "ZImageModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Z-Image", + "schemaVersion": 1, + "value": "ZImageModularPipeline" + } + }, + "type": "string", + "value": "Flux3DistilledModularPipeline" + }, + "modiff_pipeline_identity": { + "hidden": true, + "label": "Custom Pipeline Identity", + "type": "object", + "value": null + }, + "offload_mode": { + "default": "model_cpu", + "label": "Offload Mode", + "options": [ + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "auto_cpu", + "schemaVersion": 1, + "value": "auto_cpu" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "none", + "schemaVersion": 1, + "value": "none" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "model_cpu", + "schemaVersion": 1, + "value": "model_cpu" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "group_cpu", + "schemaVersion": 1, + "value": "group_cpu" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "group_disk", + "schemaVersion": 1, + "value": "group_disk" + } + ], + "type": "string", + "value": "model_cpu" + }, + "pipeline_components": { + "connectionRole": "pipeline_components", + "display": "output", + "hidden": false, + "label": "Pipeline Components", + "signal": { + "direction": "output", + "origin": "modiff_pipeline_identity", + "value": "Flux3DistilledModularPipeline" + }, + "type": "diffusers_modular_pipeline_components" + }, + "quant_config": { "display": "input", "label": "Quant Config", "type": "quant_config" }, + "refresh_pipeline_identity_button": { + "display": "ui_button", + "hidden": true, + "label": "Review and Refresh Custom Contract", + "onChange": "refresh_pipeline_identity", + "value": false + }, + "repo_id": { + "display": "modelselect", + "fieldOptions": { + "filter": { "hub": { "className": ["Flux3DistilledModularPipeline"] } }, + "noValidation": true, + "sources": ["hub", "local"] + }, + "label": "Repository ID", + "onChange": "refresh_pipeline_identity", + "type": "string", + "value": { "source": "hub", "value": "black-forest-labs/flux-3-image-klein" } + }, + "reviewed_variant": { + "description": "Select an immutable, reviewed checkpoint for this exact Modular Diffusers pipeline family. Changing it does not replace the workflow graph or reset its parameters.", + "fieldOptions": { "controlTier": "essential" }, + "hidden": true, + "label": "Model", + "options": [ + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "black-forest-labs/flux-3-image-klein", + "schemaVersion": 1, + "value": "black-forest-labs/flux-3-image-klein" + } + ], + "type": "string", + "value": "black-forest-labs/flux-3-image-klein" + }, + "revision": { + "description": "Required exact 40-character commit hash for Hub custom contracts.", + "label": "Revision", + "onChange": "refresh_pipeline_identity", + "type": "string", + "value": "8454017f9ebaada30c998fccd9f67a80c7580f68" + }, + "scheduler": { + "connectionRole": "scheduler", + "display": "output", + "hidden": false, + "label": "Scheduler", + "signal": { + "direction": "output", + "origin": "modiff_pipeline_identity", + "value": "Flux3DistilledModularPipeline" + }, + "type": "diffusers_auto_model" + }, + "text_encoders": { + "connectionRole": "text_encoders", + "display": "output", + "hidden": false, + "label": "Text Encoders", + "signal": { + "direction": "output", + "origin": "modiff_pipeline_identity", + "value": "Flux3DistilledModularPipeline" + }, + "type": "diffusers_auto_models" + }, + "trust_remote_code": { + "description": "Repository code execution is disabled; keep this off for contract preview.", + "label": "Trust Remote Code", + "onChange": "refresh_pipeline_identity", + "type": "boolean", + "value": false + }, + "unet": { "display": "input", "hidden": false, "label": "Denoise Model", "type": "diffusers_auto_model" }, + "unet_out": { + "connectionRole": "denoiser", + "display": "output", + "hidden": false, + "label": "Denoise Model", + "signal": { + "direction": "output", + "origin": "modiff_pipeline_identity", + "value": "Flux3DistilledModularPipeline" + }, + "type": "diffusers_auto_model" + }, + "vae": { "display": "input", "hidden": false, "label": "VAE", "type": "diffusers_auto_model" }, + "vae_out": { + "connectionRole": "vae", + "display": "output", + "hidden": false, + "label": "VAE", + "signal": { + "direction": "output", + "origin": "modiff_pipeline_identity", + "value": "Flux3DistilledModularPipeline" + }, + "type": "diffusers_auto_model" + }, + "vae_slicing": { + "default": null, + "description": "An unset policy preserves the native VAE configuration; templates may bind an explicit boolean.", + "hidden": true, + "label": "VAE Slicing", + "type": "boolean" + }, + "vae_tiling": { + "default": null, + "description": "An unset policy preserves the native VAE configuration; templates may bind an explicit boolean.", + "hidden": true, + "label": "VAE Tiling", + "type": "boolean" + }, + "weight_format": { + "default": "native", + "description": "Select a backend-declared immutable component format. Missing reviewed files must be installed through Model Manager.", + "fieldOptions": { "controlTier": "advanced" }, + "hidden": false, + "label": "Weight Format", + "options": [ + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "native", + "schemaVersion": 1, + "value": "native" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "fp8r", + "schemaVersion": 1, + "value": "fp8r" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "nvfp4", + "schemaVersion": 1, + "value": "nvfp4" + } + ], + "type": "string" + }, + "weight_loading_mode": { + "default": "cpu", + "description": "Load weights on CPU or CUDA before disk offload. CUDA loading needs room for a complete component and is available only for supported models.", + "fieldOptions": { "controlTier": "advanced" }, + "label": "Weight Loading", + "options": [ + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "cpu", + "schemaVersion": 1, + "value": "cpu" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "cuda", + "schemaVersion": 1, + "value": "cuda" + } + ], + "type": "string" + }, + "workflow_id": { + "description": "Exact reviewed component partition selected by a first-party Cluster Node.", + "hidden": true, + "label": "Reviewed Workflow", + "type": "string", + "value": "text2image" + } + }, + "resizable": true, + "skipParamsCheck": true, + "style": {}, + "time": [0, 0, 0], + "type": "custom" + }, + "operation": { + "binding": { + "pipelineClass": "Flux3DistilledModularPipeline", + "values": { "model_type": "Flux3DistilledModularPipeline" } + }, + "blockName": null, + "decomposition": "loader", + "nodeKey": "modules.ModularDiffusers.ModelsLoader", + "nodeType": "loader", + "operationId": "diffusion.load_models", + "pipelineClass": "Flux3DistilledModularPipeline", + "ports": [ + { + "direction": "input", + "hidden": false, + "name": "model_type", + "required": false, + "roles": ["value"], + "semanticName": "model_type", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": false, + "name": "repo_id", + "required": false, + "roles": ["value"], + "semanticName": "repo_id", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": true, + "name": "reviewed_variant", + "required": false, + "roles": ["value"], + "semanticName": "reviewed_variant", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": false, + "name": "device", + "required": false, + "roles": ["value"], + "semanticName": "device", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": false, + "name": "attention_backend", + "required": false, + "roles": ["value"], + "semanticName": "attention_backend", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": true, + "name": "vae_slicing", + "required": false, + "roles": ["value"], + "semanticName": "vae_slicing", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["boolean"] + }, + { + "direction": "input", + "hidden": true, + "name": "vae_tiling", + "required": false, + "roles": ["value"], + "semanticName": "vae_tiling", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["boolean"] + }, + { + "direction": "input", + "hidden": true, + "name": "inpaint_compatibility", + "required": false, + "roles": ["value"], + "semanticName": "inpaint_compatibility", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": false, + "name": "trust_remote_code", + "required": false, + "roles": ["value"], + "semanticName": "trust_remote_code", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["boolean"] + }, + { + "direction": "input", + "hidden": false, + "name": "revision", + "required": false, + "roles": ["value"], + "semanticName": "revision", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": true, + "name": "workflow_id", + "required": false, + "roles": ["value"], + "semanticName": "workflow_id", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": true, + "name": "modiff_pipeline_identity", + "required": false, + "roles": ["value"], + "semanticName": "modiff_pipeline_identity", + "semantics": { + "kind": "opaque", + "members": [], + "owner": "none", + "scope": "Flux3DistilledModularPipeline", + "state": null + }, + "types": ["object"] + }, + { + "direction": "input", + "hidden": false, + "name": "auto_offload", + "required": false, + "roles": ["value"], + "semanticName": "auto_offload", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["boolean"] + }, + { + "direction": "input", + "hidden": false, + "name": "offload_mode", + "required": false, + "roles": ["value"], + "semanticName": "offload_mode", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": false, + "name": "weight_loading_mode", + "required": false, + "roles": ["value"], + "semanticName": "weight_loading_mode", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": true, + "name": "weight_format", + "required": false, + "roles": ["value"], + "semanticName": "weight_format", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": false, + "name": "unet", + "required": false, + "roles": ["component"], + "semanticName": "unet", + "semantics": { + "kind": "component", + "members": [ + { + "name": "transformer", + "type": "diffusers.models.transformers.transformer_flux3.Flux3Transformer2DModel" + } + ], + "owner": "same_loader", + "scope": "Flux3DistilledModularPipeline", + "state": null + }, + "types": ["diffusers_auto_model"] + }, + { + "direction": "input", + "hidden": false, + "name": "vae", + "required": false, + "roles": ["component"], + "semanticName": "vae", + "semantics": { + "kind": "component", + "members": [ + { "name": "vae", "type": "diffusers.models.autoencoders.autoencoder_kl_flux2.AutoencoderKLFlux2" } + ], + "owner": "same_loader", + "scope": "Flux3DistilledModularPipeline", + "state": null + }, + "types": ["diffusers_auto_model"] + }, + { + "direction": "input", + "hidden": true, + "name": "controlnet", + "required": false, + "roles": ["component"], + "semanticName": "controlnet", + "semantics": { + "kind": "component", + "members": [], + "owner": "same_loader", + "scope": "Flux3DistilledModularPipeline", + "state": null + }, + "types": ["diffusers_auto_model"] + }, + { + "direction": "input", + "hidden": false, + "name": "lora_list", + "required": false, + "roles": ["value"], + "semanticName": "lora_list", + "semantics": { + "kind": "opaque", + "members": [], + "owner": "none", + "scope": "Flux3DistilledModularPipeline", + "state": null + }, + "types": ["custom_lora"] + }, + { + "direction": "output", + "hidden": false, + "name": "text_encoders", + "required": false, + "roles": ["component"], + "semanticName": "text_encoders", + "semantics": { + "kind": "component", + "members": [ + { + "name": "text_encoder", + "type": "transformers.models.qwen3_vl.modeling_qwen3_vl.Qwen3VLForConditionalGeneration" + }, + { "name": "tokenizer", "type": "transformers.models.auto.processing_auto.AutoProcessor" } + ], + "owner": "same_loader", + "scope": "Flux3DistilledModularPipeline", + "state": null + }, + "types": ["diffusers_auto_models"] + }, + { + "direction": "output", + "hidden": false, + "name": "unet_out", + "required": false, + "roles": ["component"], + "semanticName": "unet_out", + "semantics": { + "kind": "component", + "members": [ + { + "name": "transformer", + "type": "diffusers.models.transformers.transformer_flux3.Flux3Transformer2DModel" + } + ], + "owner": "same_loader", + "scope": "Flux3DistilledModularPipeline", + "state": null + }, + "types": ["diffusers_auto_model"] + }, + { + "direction": "output", + "hidden": false, + "name": "vae_out", + "required": false, + "roles": ["component"], + "semanticName": "vae_out", + "semantics": { + "kind": "component", + "members": [ + { "name": "vae", "type": "diffusers.models.autoencoders.autoencoder_kl_flux2.AutoencoderKLFlux2" } + ], + "owner": "same_loader", + "scope": "Flux3DistilledModularPipeline", + "state": null + }, + "types": ["diffusers_auto_model"] + }, + { + "direction": "output", + "hidden": false, + "name": "scheduler", + "required": false, + "roles": ["component"], + "semanticName": "scheduler", + "semantics": { + "kind": "component", + "members": [ + { + "name": "scheduler", + "type": "diffusers.schedulers.scheduling_flow_match_euler_discrete.FlowMatchEulerDiscreteScheduler" + } + ], + "owner": "same_loader", + "scope": "Flux3DistilledModularPipeline", + "state": null + }, + "types": ["diffusers_auto_model"] + }, + { + "direction": "output", + "hidden": true, + "name": "image_encoder", + "required": false, + "roles": ["component"], + "semanticName": "image_encoder", + "semantics": { + "kind": "component", + "members": [], + "owner": "same_loader", + "scope": "Flux3DistilledModularPipeline", + "state": null + }, + "types": ["diffusers_auto_model"] + }, + { + "direction": "output", + "hidden": false, + "name": "pipeline_components", + "required": false, + "roles": ["component"], + "semanticName": "pipeline_components", + "semantics": { + "kind": "component", + "members": [ + { + "name": "image_processor", + "type": "diffusers.modular_pipelines.flux3.image_processor.Flux3ImageProcessor" + }, + { + "name": "scheduler", + "type": "diffusers.schedulers.scheduling_flow_match_euler_discrete.FlowMatchEulerDiscreteScheduler" + }, + { + "name": "text_encoder", + "type": "transformers.models.qwen3_vl.modeling_qwen3_vl.Qwen3VLForConditionalGeneration" + }, + { "name": "tokenizer", "type": "transformers.models.auto.processing_auto.AutoProcessor" }, + { + "name": "transformer", + "type": "diffusers.models.transformers.transformer_flux3.Flux3Transformer2DModel" + }, + { "name": "vae", "type": "diffusers.models.autoencoders.autoencoder_kl_flux2.AutoencoderKLFlux2" } + ], + "owner": "same_loader", + "scope": "Flux3DistilledModularPipeline", + "state": null + }, + "types": ["diffusers_modular_pipeline_components"] + }, + { + "direction": "input", + "hidden": false, + "name": "quant_config", + "required": false, + "roles": ["value"], + "semanticName": "quant_config", + "semantics": { + "kind": "opaque", + "members": [], + "owner": "none", + "scope": "Flux3DistilledModularPipeline", + "state": null + }, + "types": ["quant_config"] + } + ], + "support": "declared", + "task": "text_to_image", + "workflowId": "text2image" + } + }, + { + "node": { + "action": "EncodePrompt", + "cache": false, + "category": "embedding", + "description": "", + "label": "Encode Prompt", + "memory": [0, 0, 0], + "module": "modules.ModularDiffusers", + "params": { + "doc": { "display": "output", "label": "Doc", "type": "string" }, + "embeddings": { "display": "output", "label": "Text Embeddings", "type": "embeddings" }, + "guider": { + "description": "Shared Diffusers guidance used by prompt encoding and denoising when the selected pipeline supports it.", + "display": "input", + "hidden": true, + "label": "Guider", + "type": "custom_guider" + }, + "layout_conditioning": { + "default": null, + "display": "layout", + "fieldOptions": { + "layoutConditioning": { + "schemaVersion": 2, + "sourceRegions": false, + "supportsBoundSourceRegions": true + } + }, + "label": "Layout Conditioning", + "type": "layout_conditioning" + }, + "layout_reference_summary": { + "description": "Display-only ordered reference identities and actual preprocessing sizes from the current encoder cache.", + "display": "output", + "hidden": true, + "label": "Bound Reference Summary", + "type": "string" + }, + "max_sequence_length": { + "default": 8192, + "label": "Maximum Sequence Length", + "max": 8192, + "min": 1, + "step": 1, + "type": "int" + }, + "prompt": { + "default": "", + "display": "textarea", + "fieldOptions": { "exampleAttribution": "MoDiff task example" }, + "label": "Prompt *", + "type": "string", + "value": "A red ceramic teapot on a wooden table beside a window, soft morning light, detailed photograph." + }, + "prompt_input": { + "description": "Optional connected prompt. When connected, this replaces the inline Prompt value.", + "display": "input", + "label": "Prompt Input", + "type": "string" + }, + "reference_binding": { + "default": null, + "display": "input", + "fieldOptions": { "referenceBinding": { "maxReferences": 10, "schemaVersion": 1 } }, + "label": "Reference Binding", + "type": "reference_conditioning" + }, + "text_encoder_out_layers": { + "default": [4, 8, 12, 16, 20, 24, 28, 32], + "display": "select", + "fieldOptions": { "multiple": true, "tupleLength": 8, "tupleValue": true }, + "label": "Text Encoder Layers", + "options": [ + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "0", + "schemaVersion": 1, + "value": "0" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "1", + "schemaVersion": 1, + "value": "1" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "2", + "schemaVersion": 1, + "value": "2" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "3", + "schemaVersion": 1, + "value": "3" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "4", + "schemaVersion": 1, + "value": "4" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "5", + "schemaVersion": 1, + "value": "5" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "6", + "schemaVersion": 1, + "value": "6" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "7", + "schemaVersion": 1, + "value": "7" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "8", + "schemaVersion": 1, + "value": "8" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "9", + "schemaVersion": 1, + "value": "9" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "10", + "schemaVersion": 1, + "value": "10" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "11", + "schemaVersion": 1, + "value": "11" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "12", + "schemaVersion": 1, + "value": "12" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "13", + "schemaVersion": 1, + "value": "13" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "14", + "schemaVersion": 1, + "value": "14" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "15", + "schemaVersion": 1, + "value": "15" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "16", + "schemaVersion": 1, + "value": "16" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "17", + "schemaVersion": 1, + "value": "17" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "18", + "schemaVersion": 1, + "value": "18" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "19", + "schemaVersion": 1, + "value": "19" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "20", + "schemaVersion": 1, + "value": "20" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "21", + "schemaVersion": 1, + "value": "21" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "22", + "schemaVersion": 1, + "value": "22" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "23", + "schemaVersion": 1, + "value": "23" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "24", + "schemaVersion": 1, + "value": "24" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "25", + "schemaVersion": 1, + "value": "25" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "26", + "schemaVersion": 1, + "value": "26" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "27", + "schemaVersion": 1, + "value": "27" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "28", + "schemaVersion": 1, + "value": "28" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "29", + "schemaVersion": 1, + "value": "29" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "30", + "schemaVersion": 1, + "value": "30" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "31", + "schemaVersion": 1, + "value": "31" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "32", + "schemaVersion": 1, + "value": "32" + } + ], + "type": "int" + }, + "text_encoders": { + "display": "input", + "label": "Text Encoders *", + "onSignal": "update_node", + "required": true, + "signalCompatibility": { "role": "text_encoders" }, + "type": "diffusers_auto_models" + } + }, + "resizable": true, + "skipParamsCheck": true, + "style": {}, + "time": [0, 0, 0], + "type": "custom" + }, + "operation": { + "binding": { "pipelineClass": "Flux3DistilledModularPipeline", "values": {} }, + "blockName": "text_encoder", + "decomposition": "block", + "nodeKey": "modules.ModularDiffusers.EncodePrompt", + "nodeType": "text_encoder", + "operationId": "diffusion.encode_prompt", + "pipelineClass": "Flux3DistilledModularPipeline", + "ports": [ + { + "direction": "input", + "hidden": false, + "name": "prompt", + "required": true, + "roles": ["value"], + "semanticName": "prompt", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": false, + "name": "max_sequence_length", + "required": false, + "roles": ["value"], + "semanticName": "max_sequence_length", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["int"] + }, + { + "direction": "input", + "hidden": false, + "name": "text_encoder_out_layers", + "required": false, + "roles": ["value"], + "semanticName": "text_encoder_out_layers", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["int"] + }, + { + "direction": "input", + "hidden": false, + "name": "text_encoders", + "required": true, + "roles": ["component"], + "semanticName": "text_encoders", + "semantics": { + "kind": "component", + "members": [ + { + "name": "text_encoder", + "type": "transformers.models.qwen3_vl.modeling_qwen3_vl.Qwen3VLForConditionalGeneration" + }, + { "name": "tokenizer", "type": "transformers.models.auto.processing_auto.AutoProcessor" } + ], + "owner": "same_loader", + "scope": "Flux3DistilledModularPipeline", + "state": null + }, + "types": ["diffusers_auto_models"] + }, + { + "direction": "output", + "hidden": false, + "name": "embeddings", + "required": false, + "roles": ["value"], + "semanticName": "embeddings", + "semantics": { + "kind": "conditioning", + "members": [], + "owner": "same_loader", + "scope": "Flux3DistilledModularPipeline", + "state": null + }, + "types": ["embeddings"] + }, + { + "direction": "output", + "hidden": false, + "name": "doc", + "required": false, + "roles": ["value"], + "semanticName": "doc", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": false, + "name": "layout_conditioning", + "required": false, + "roles": ["value"], + "semanticName": "layout_conditioning", + "semantics": { + "kind": "opaque", + "members": [], + "owner": "none", + "scope": "Flux3DistilledModularPipeline", + "state": null + }, + "types": ["layout_conditioning"] + }, + { + "direction": "input", + "hidden": false, + "name": "reference_binding", + "required": false, + "roles": ["value"], + "semanticName": "reference_binding", + "semantics": { + "kind": "opaque", + "members": [], + "owner": "none", + "scope": "Flux3DistilledModularPipeline", + "state": null + }, + "types": ["reference_conditioning"] + }, + { + "direction": "input", + "hidden": false, + "name": "prompt_input", + "required": false, + "roles": ["value"], + "semanticName": "prompt", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + } + ], + "support": "declared", + "task": "text_to_image", + "workflowId": "text2image" + } + }, + { + "node": { + "action": "Denoise", + "cache": false, + "category": "sampler", + "description": "", + "label": "Denoise", + "memory": [0, 0, 0], + "module": "modules.ModularDiffusers", + "params": { + "doc": { "display": "output", "label": "Doc", "type": "string" }, + "embeddings": { "display": "input", "label": "Text Embeddings *", "type": "embeddings" }, + "height": { "default": 1024, "label": "Height", "min": 64, "step": 16, "type": "int", "value": 1024 }, + "image_cond_latents": { "display": "input", "label": "Reference Latents", "type": "latents" }, + "latents": { "display": "output", "label": "Latents", "type": "latents" }, + "num_images_per_prompt": { + "default": 1, + "label": "Images Per Prompt", + "max": 8, + "min": 1, + "step": 1, + "type": "int" + }, + "num_inference_steps": { + "default": 16, + "display": "slider", + "label": "Steps", + "max": 100, + "min": 1, + "type": "int", + "value": 16 + }, + "reference_binding": { + "default": null, + "display": "input", + "fieldOptions": { "referenceBinding": { "maxReferences": 10, "schemaVersion": 1 } }, + "label": "Reference Binding", + "type": "reference_conditioning" + }, + "scheduler": { + "display": "input", + "label": "Scheduler *", + "signalCompatibility": { "role": "scheduler" }, + "type": "diffusers_auto_model" + }, + "seed": { + "default": 0, + "display": "random", + "label": "Seed", + "max": 4294967295, + "min": 0, + "type": "int" + }, + "unet": { + "display": "input", + "label": "Denoise Model *", + "onSignal": [ + "update_node", + { "action": "signal", "target": "guider" }, + { "action": "signal", "target": "controlnet_bundle" } + ], + "required": true, + "signalCompatibility": { "role": "denoiser" }, + "type": "diffusers_auto_model" + }, + "width": { "default": 1024, "label": "Width", "min": 64, "step": 16, "type": "int", "value": 1024 } + }, + "resizable": true, + "skipParamsCheck": true, + "style": {}, + "time": [0, 0, 0], + "type": "custom" + }, + "operation": { + "binding": { "pipelineClass": "Flux3DistilledModularPipeline", "values": {} }, + "blockName": "denoise", + "decomposition": "block", + "nodeKey": "modules.ModularDiffusers.Denoise", + "nodeType": "denoise", + "operationId": "diffusion.denoise", + "pipelineClass": "Flux3DistilledModularPipeline", + "ports": [ + { + "direction": "input", + "hidden": false, + "name": "embeddings", + "required": true, + "roles": ["value"], + "semanticName": "embeddings", + "semantics": { + "kind": "conditioning", + "members": [], + "owner": "same_loader", + "scope": "Flux3DistilledModularPipeline", + "state": null + }, + "types": ["embeddings"] + }, + { + "direction": "input", + "hidden": false, + "name": "width", + "required": false, + "roles": ["value"], + "semanticName": "width", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["int"] + }, + { + "direction": "input", + "hidden": false, + "name": "height", + "required": false, + "roles": ["value"], + "semanticName": "height", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["int"] + }, + { + "direction": "input", + "hidden": false, + "name": "seed", + "required": false, + "roles": ["value"], + "semanticName": "seed", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["int"] + }, + { + "direction": "input", + "hidden": false, + "name": "num_inference_steps", + "required": false, + "roles": ["value"], + "semanticName": "num_inference_steps", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["int"] + }, + { + "direction": "input", + "hidden": false, + "name": "num_images_per_prompt", + "required": false, + "roles": ["value"], + "semanticName": "num_images_per_prompt", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["int"] + }, + { + "direction": "input", + "hidden": false, + "name": "image_cond_latents", + "required": false, + "roles": ["value"], + "semanticName": "image_cond_latents", + "semantics": { + "kind": "latents", + "members": [], + "owner": "same_loader", + "scope": "Flux3DistilledModularPipeline", + "state": null + }, + "types": ["latents"] + }, + { + "direction": "input", + "hidden": false, + "name": "unet", + "required": true, + "roles": ["component"], + "semanticName": "unet", + "semantics": { + "kind": "component", + "members": [ + { + "name": "transformer", + "type": "diffusers.models.transformers.transformer_flux3.Flux3Transformer2DModel" + } + ], + "owner": "same_loader", + "scope": "Flux3DistilledModularPipeline", + "state": null + }, + "types": ["diffusers_auto_model"] + }, + { + "direction": "input", + "hidden": false, + "name": "scheduler", + "required": true, + "roles": ["component"], + "semanticName": "scheduler", + "semantics": { + "kind": "component", + "members": [ + { + "name": "scheduler", + "type": "diffusers.schedulers.scheduling_flow_match_euler_discrete.FlowMatchEulerDiscreteScheduler" + } + ], + "owner": "same_loader", + "scope": "Flux3DistilledModularPipeline", + "state": null + }, + "types": ["diffusers_auto_model"] + }, + { + "direction": "output", + "hidden": false, + "name": "latents", + "required": false, + "roles": ["value"], + "semanticName": "latents", + "semantics": { + "kind": "latents", + "members": [], + "owner": "same_loader", + "scope": "Flux3DistilledModularPipeline", + "state": null + }, + "types": ["latents"] + }, + { + "direction": "output", + "hidden": false, + "name": "doc", + "required": false, + "roles": ["value"], + "semanticName": "doc", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": false, + "name": "reference_binding", + "required": false, + "roles": ["value"], + "semanticName": "reference_binding", + "semantics": { + "kind": "opaque", + "members": [], + "owner": "none", + "scope": "Flux3DistilledModularPipeline", + "state": null + }, + "types": ["reference_conditioning"] + } + ], + "support": "declared", + "task": "text_to_image", + "workflowId": "text2image" + } + }, + { + "node": { + "action": "DecodeLatents", + "cache": false, + "category": "sampler", + "description": "", + "label": "Decode Latents", + "memory": [0, 0, 0], + "module": "modules.ModularDiffusers", + "params": { + "doc": { "display": "output", "label": "Doc", "type": "string" }, + "images": { "display": "output", "label": "Images", "type": "image" }, + "latents": { "display": "input", "label": "Latents *", "type": "latents" }, + "vae": { + "display": "input", + "label": "VAE *", + "onSignal": "update_node", + "signalCompatibility": { "role": "vae" }, + "type": "diffusers_auto_model" + } + }, + "resizable": true, + "skipParamsCheck": true, + "style": {}, + "time": [0, 0, 0], + "type": "custom" + }, + "operation": { + "binding": { "pipelineClass": "Flux3DistilledModularPipeline", "values": {} }, + "blockName": "decode", + "decomposition": "block", + "nodeKey": "modules.ModularDiffusers.DecodeLatents", + "nodeType": "decoder", + "operationId": "diffusion.decode_latents", + "pipelineClass": "Flux3DistilledModularPipeline", + "ports": [ + { + "direction": "input", + "hidden": false, + "name": "latents", + "required": true, + "roles": ["value"], + "semanticName": "latents", + "semantics": { + "kind": "latents", + "members": [], + "owner": "same_loader", + "scope": "Flux3DistilledModularPipeline", + "state": null + }, + "types": ["latents"] + }, + { + "direction": "input", + "hidden": false, + "name": "vae", + "required": true, + "roles": ["component"], + "semanticName": "vae", + "semantics": { + "kind": "component", + "members": [ + { "name": "vae", "type": "diffusers.models.autoencoders.autoencoder_kl_flux2.AutoencoderKLFlux2" } + ], + "owner": "same_loader", + "scope": "Flux3DistilledModularPipeline", + "state": null + }, + "types": ["diffusers_auto_model"] + }, + { + "direction": "output", + "hidden": false, + "name": "images", + "required": false, + "roles": ["value"], + "semanticName": "images", + "semantics": { "kind": "media", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["image"] + }, + { + "direction": "output", + "hidden": false, + "name": "doc", + "required": false, + "roles": ["value"], + "semanticName": "doc", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + } + ], + "support": "declared", + "task": "text_to_image", + "workflowId": "text2image" + } + } + ], + "pipelineClass": "Flux3DistilledModularPipeline", + "requiredInputs": [{ "field": "prompt", "operationId": "diffusion.encode_prompt" }], + "schemaVersion": 1, + "sharedInputs": [], + "task": "text_to_image", + "upstreamBlocks": ["text_encoder", "denoise", "decode"], + "workflowId": "text2image" + } + ] +} diff --git a/tests/fixtures/public-flux3-template-creators.v1.json b/tests/fixtures/public-flux3-template-creators.v1.json new file mode 100644 index 00000000..38c6b00b --- /dev/null +++ b/tests/fixtures/public-flux3-template-creators.v1.json @@ -0,0 +1,37963 @@ +{ + "activeProvider": null, + "capabilitiesPayload": { + "capabilities": [ + { + "artifactCandidates": ["black-forest-labs/flux-3-image-klein-base"], + "autoEligible": false, + "defaultDtype": "bfloat16", + "defaultRepo": "black-forest-labs/flux-3-image-klein-base", + "defaultSize": { "aspectRatio": "1:1", "height": 1024, "width": 1024 }, + "defaults": { + "dtype": "bfloat16", + "guidanceScale": 3.5, + "offloadMode": null, + "size": { "aspectRatio": "1:1", "height": 1024, "width": 1024 }, + "steps": 50 + }, + "displayName": "FLUX 3 Image Klein Base", + "downloadFiles": [ + "LICENSE.md", + "NOTICE.md", + "modular_model_index.json", + "text_encoder/LICENSE", + "text_encoder/chat_template.json", + "text_encoder/config.json", + "text_encoder/generation_config.json", + "text_encoder/merges.txt", + "text_encoder/model-00001-of-00002.safetensors", + "text_encoder/model-00002-of-00002.safetensors", + "text_encoder/model.safetensors.index.json", + "text_encoder/preprocessor_config.json", + "text_encoder/tokenizer.json", + "text_encoder/tokenizer_config.json", + "text_encoder/video_preprocessor_config.json", + "text_encoder/vocab.json", + "transformer/config.json", + "transformer/diffusion_pytorch_model-00001-of-00002.safetensors", + "transformer/diffusion_pytorch_model-00002-of-00002.safetensors", + "transformer/diffusion_pytorch_model.safetensors.index.json", + "vae/config.json", + "vae/diffusion_pytorch_model.safetensors" + ], + "executionProfiles": [ + { + "adapterAuthoring": { + "adapterNodeKey": "modules.ModularDiffusers.Lora", + "maxOwnedAdapters": 32, + "mediaKind": "image", + "repositoryRevisions": [ + { + "repo": "black-forest-labs/flux-3-image-klein-base", + "revision": "1469d27cfb9bb1bd81d3a93f5a023b39dbf136e4" + } + ], + "requiredControls": { + "auto_offload": false, + "controlnet": null, + "offload_mode": "none", + "quant_config": null, + "trust_remote_code": false, + "unet": null, + "vae": null, + "weight_loading_mode": "cpu" + }, + "schemaVersion": 1, + "tasks": ["text_to_image", "edit_image"] + }, + "authoringRecipes": [ + { + "authoringRecipeId": "flux3-klein-base:official:text-to-image:prompt-preview-append-fp32:v1", + "executionProfileId": "flux3-klein-base:official-provider:v1", + "layoutAuthoringRecipeChoices": [ + { + "authoringRecipeId": "flux3-klein-base:official:text-to-image:prompt-preview-append-fp32:v1", + "label": "Append wording: preserve authored layout" + }, + { + "authoringRecipeId": "flux3-klein-base:official:text-to-image:prompt-preview-constrained-fp32:v1", + "label": "Generate constrained table: FP32 (Expert)" + } + ], + "pipelineClass": "Flux3ModularPipeline", + "rawAuthoringRecipeChoices": [ + { + "authoringRecipeId": "flux3-klein-base:official:text-to-image:prompt-preview-fp32:v1", + "label": "Raw wording: FP32" + }, + { + "authoringRecipeId": "flux3-klein-base:official:text-to-image:prompt-preview-nf4:v1", + "label": "Raw wording: BF16 + NF4" + } + ], + "rawAuthoringRecipeId": "flux3-klein-base:official:text-to-image:prompt-preview-fp32:v1", + "task": "text_to_image" + }, + { + "authoringRecipeId": "flux3-klein-base:official:edit-image:prompt-preview-append-fp32:v1", + "executionProfileId": "flux3-klein-base:official-provider:v1", + "layoutAuthoringRecipeChoices": [ + { + "authoringRecipeId": "flux3-klein-base:official:edit-image:prompt-preview-append-fp32:v1", + "label": "Append wording: preserve authored layout" + }, + { + "authoringRecipeId": "flux3-klein-base:official:edit-image:prompt-preview-constrained-fp32:v1", + "label": "Generate constrained table: FP32 (Expert)" + } + ], + "pipelineClass": "Flux3ModularPipeline", + "rawAuthoringRecipeChoices": [ + { + "authoringRecipeId": "flux3-klein-base:official:edit-image:prompt-preview-fp32:v1", + "label": "Raw wording: FP32" + }, + { + "authoringRecipeId": "flux3-klein-base:official:edit-image:prompt-preview-nf4:v1", + "label": "Raw wording: BF16 + NF4" + } + ], + "rawAuthoringRecipeId": "flux3-klein-base:official:edit-image:prompt-preview-fp32:v1", + "task": "edit_image" + } + ], + "backend_path": "modules.ModularDiffusers.ModelsLoader", + "compatible_repos": [], + "default_quantized_components": [], + "default_repo": "black-forest-labs/flux-3-image-klein-base", + "execution_path": "modular-diffusers", + "fallback_repo": null, + "id": "flux3-klein-base:official-provider:v1", + "live_proof": false, + "loader_action": "ModelsLoader", + "loader_module": "modules.ModularDiffusers", + "max_low_memory_side": null, + "max_low_memory_steps": null, + "model_type": "Flux3ModularPipeline", + "modes": ["text_to_image", "edit_image"], + "optionalRuntimeRequirement": { + "delivery": "optional_overlay", + "executionProfileIds": ["flux3-klein-base:official-provider:v1"], + "profileIds": ["huggingface-diffusers-flux3-7ecb1e1"], + "reason": "optional_runtime_present_unqualified", + "requiredNow": true, + "schemaVersion": 1, + "state": "present_unqualified" + }, + "optional_runtime_delivery": "optional_overlay", + "optional_runtime_platform_deliveries": [ + { "delivery": "optional_overlay", "machine": "x86_64", "platform": "linux" }, + { "delivery": "optional_overlay", "machine": "arm64", "platform": "linux" }, + { "delivery": "optional_overlay", "machine": "x86_64", "platform": "macos" }, + { "delivery": "optional_overlay", "machine": "arm64", "platform": "macos" }, + { "delivery": "optional_overlay", "machine": "x86_64", "platform": "windows" }, + { "delivery": "optional_overlay", "machine": "arm64", "platform": "windows" } + ], + "optional_runtime_profiles": ["huggingface-diffusers-flux3-7ecb1e1"], + "pipeline_class": "Flux3ModularPipeline", + "public": true, + "quantizable_components": [], + "replaces_private_authoring_profile": "flux3-klein-base:modular", + "repository_revisions": [ + { + "repo": "black-forest-labs/flux-3-image-klein-base", + "revision": "1469d27cfb9bb1bd81d3a93f5a023b39dbf136e4" + } + ], + "required_diffusers_provider": "huggingface-diffusers-flux3-7ecb1e1", + "retry_offload_modes": [], + "supported_offload_modes": ["none", "model_cpu", "group_cpu", "group_disk"] + } + ], + "executionStatus": "expert_only", + "family": "FLUX Image", + "galleryEligible": false, + "guidanceLabel": "Classifier-free guidance", + "inputContracts": { "edit_image": { "requiredImages": ["referenceImages"] } }, + "label": "FLUX 3 Image Klein Base", + "liveProof": false, + "mediaKind": "image", + "modeRequirements": { "edit_image": { "requiredImages": ["referenceImages"] } }, + "modelType": "Flux3ModularPipeline", + "modes": ["text_to_image", "edit_image"], + "notes": [ + "Explicit Expert authoring requires the reviewed optional Diffusers provider.", + "Runtime readiness, model fit, native output and Auto/template qualification are separate." + ], + "optionalRuntimeProfileIds": ["huggingface-diffusers-flux3-7ecb1e1"], + "optionalRuntimeProfiles": [ + { + "activationAvailable": true, + "artifactLocks": [], + "baseRequirements": [ + { "distribution": "accelerate", "importName": "accelerate", "specifier": ">=1.4.0" }, + { "distribution": "anyio", "importName": "anyio", "specifier": "" }, + { "distribution": "certifi", "importName": "certifi", "specifier": "" }, + { "distribution": "click", "importName": "click", "specifier": "" }, + { "distribution": "filelock", "importName": "filelock", "specifier": "" }, + { "distribution": "fsspec", "importName": "fsspec", "specifier": "" }, + { "distribution": "h11", "importName": "h11", "specifier": "" }, + { "distribution": "hf-xet", "importName": "hf_xet", "specifier": "" }, + { "distribution": "httpcore", "importName": "httpcore", "specifier": "" }, + { "distribution": "httpx", "importName": "httpx", "specifier": "" }, + { "distribution": "huggingface-hub", "importName": "huggingface_hub", "specifier": ">=1.32.0,<2.0" }, + { "distribution": "idna", "importName": "idna", "specifier": "" }, + { "distribution": "jinja2", "importName": "jinja2", "specifier": "" }, + { "distribution": "markupsafe", "importName": "markupsafe", "specifier": "" }, + { "distribution": "mpmath", "importName": "mpmath", "specifier": "" }, + { "distribution": "networkx", "importName": "networkx", "specifier": "" }, + { "distribution": "numpy", "importName": "numpy", "specifier": ">=1.17" }, + { "distribution": "packaging", "importName": "packaging", "specifier": ">=20.0" }, + { "distribution": "pillow", "importName": "PIL", "specifier": ">=10.0.1,<=15.0" }, + { "distribution": "protobuf", "importName": "google.protobuf", "specifier": ">=6.31.1" }, + { "distribution": "psutil", "importName": "psutil", "specifier": "" }, + { "distribution": "pyyaml", "importName": "yaml", "specifier": ">=5.1" }, + { "distribution": "regex", "importName": "regex", "specifier": ">=2025.10.22" }, + { "distribution": "safetensors", "importName": "safetensors", "specifier": ">=0.8.0" }, + { "distribution": "sentencepiece", "importName": "sentencepiece", "specifier": ">=0.2.0" }, + { "distribution": "setuptools", "importName": "setuptools", "specifier": "" }, + { "distribution": "sympy", "importName": "sympy", "specifier": "" }, + { "distribution": "torch", "importName": "torch", "specifier": ">=2.6.0" }, + { "distribution": "torchvision", "importName": "torchvision", "specifier": ">=0.21.0" }, + { "distribution": "tqdm", "importName": "tqdm", "specifier": ">=4.60" }, + { "distribution": "typing-extensions", "importName": "typing_extensions", "specifier": "" }, + { "distribution": "colorama", "importName": "colorama", "platforms": ["windows"], "specifier": "" }, + { "distribution": "transformers", "importName": "transformers", "specifier": ">=5.18.0" }, + { "distribution": "peft", "importName": "peft", "specifier": ">=0.21.2" }, + { "distribution": "tokenizers", "importName": "tokenizers", "specifier": "" }, + { "distribution": "typer", "importName": "typer", "specifier": "" }, + { "distribution": "annotated-doc", "importName": "annotated_doc", "specifier": "" }, + { "distribution": "rich", "importName": "rich", "specifier": "" }, + { "distribution": "markdown-it-py", "importName": "markdown_it", "specifier": "" }, + { "distribution": "mdurl", "importName": "mdurl", "specifier": "" }, + { "distribution": "pygments", "importName": "pygments", "specifier": "" }, + { "distribution": "shellingham", "importName": "shellingham", "specifier": "" }, + { "distribution": "requests", "importName": "requests", "specifier": ">=2.25" }, + { "distribution": "urllib3", "importName": "urllib3", "specifier": "" }, + { "distribution": "charset-normalizer", "importName": "charset_normalizer", "specifier": "" }, + { "distribution": "importlib-metadata", "importName": "importlib_metadata", "specifier": "" } + ], + "contractState": "qualified", + "cutoverReady": true, + "excludedQualificationSymbols": ["add_weighted_adapter"], + "id": "huggingface-diffusers-flux3-7ecb1e1", + "installActionAvailable": true, + "installPolicy": "explicit_first_use", + "label": "Official Diffusers FLUX 3 source runtime", + "machine": "x86_64", + "packages": [ + { + "distribution": "diffusers", + "distributionUrl": "https://codeload.github.com/huggingface/diffusers/tar.gz/7ecb1e1b4fe500be7fb7381a7bb79a24d7fa3941", + "importName": "diffusers", + "installedVersion": "0.41.0.dev0", + "license": "Apache-2.0", + "projectUrl": "https://github.com/huggingface/diffusers", + "publisher": "Hugging Face", + "requiredClassSymbols": [ + "Flux3ModularPipeline", + "Flux3DistilledModularPipeline", + "Flux3Transformer2DModel", + "AutoencoderKLFlux2", + "FlowMatchEulerDiscreteScheduler", + "ClassifierFreeGuidance", + "ModularPipeline", + "ComponentsManager", + "ComponentSpec" + ], + "requiredSymbols": [ + "Flux3ModularPipeline", + "Flux3DistilledModularPipeline", + "Flux3Transformer2DModel", + "AutoencoderKLFlux2", + "FlowMatchEulerDiscreteScheduler", + "ClassifierFreeGuidance", + "ModularPipeline", + "ComponentsManager", + "ComponentSpec", + "diffusers.loaders.lora_conversion_utils:_convert_non_diffusers_flux3_lora_to_diffusers" + ], + "requiredVersion": "0.41.0.dev0", + "requirement": "diffusers==0.41.0.dev0", + "role": "runtime_root", + "status": "present_unqualified" + } + ], + "pipelineAdapterMethods": [ + { "method": "load_components", "requiredParameters": ["names", "workflow"] }, + { "method": "__call__", "requiredParameters": ["state", "output"] } + ], + "pipelineAdapterSymbols": ["Flux3ModularPipeline", "Flux3DistilledModularPipeline"], + "platform": "windows", + "providesDiffusers": true, + "requirePeftBackend": true, + "requiredDiffusersSymbols": [ + "Flux3ModularPipeline", + "Flux3DistilledModularPipeline", + "Flux3Transformer2DModel", + "AutoencoderKLFlux2", + "FlowMatchEulerDiscreteScheduler", + "ClassifierFreeGuidance", + "ModularPipeline", + "ComponentsManager", + "ComponentSpec" + ], + "requirements": ["diffusers==0.41.0.dev0"], + "schemaVersion": 1, + "sourceBuilds": [ + { + "buildDependencies": [], + "distribution": "diffusers", + "outputWheel": { + "byteSize": 27721978, + "distribution": "diffusers", + "filename": "diffusers-0.41.0.dev0-py3-none-any.whl", + "machine": "any", + "platform": "any", + "pythonTag": "py3", + "sha256": "59c8eb8aaaa25fe5f912e09c48bf66f7e41655c468a7ec47f56da93d8ca40dbd", + "version": "0.41.0.dev0" + }, + "pythonTag": "py3", + "recipe": "modiff_pure_python_wheel_v1", + "schemaVersion": 1, + "sourceArtifact": { + "archiveRoot": "diffusers-7ecb1e1b4fe500be7fb7381a7bb79a24d7fa3941", + "byteSize": 11802397, + "commit": "7ecb1e1b4fe500be7fb7381a7bb79a24d7fa3941", + "filename": "diffusers-7ecb1e1b4fe500be7fb7381a7bb79a24d7fa3941.tar.gz", + "kind": "github_commit_tarball", + "repository": "huggingface/diffusers", + "sha256": "84ee014d4acc0c7633d2778f2ac0125fa77a87e736c86a8092edb1d47a55a744", + "url": "https://codeload.github.com/huggingface/diffusers/tar.gz/7ecb1e1b4fe500be7fb7381a7bb79a24d7fa3941" + }, + "sourceDateEpoch": 315532800, + "sourceFiles": ["LICENSE", "README.md", "pyproject.toml", "setup.py"], + "sourceTrees": ["src/diffusers"], + "version": "0.41.0.dev0", + "wheelMetadata": { + "consoleScripts": { "diffusers-cli": "diffusers.commands.diffusers_cli:main" }, + "license": "Apache 2.0 License", + "licenseFile": "LICENSE", + "packageRoot": "src", + "requiresDist": [ + "importlib_metadata", + "filelock", + "huggingface-hub<3.0,>=1.32.0", + "numpy", + "regex!=2019.12.17", + "requests", + "safetensors>=0.8.0", + "Pillow" + ], + "requiresPython": ">=3.11.0", + "summary": "State-of-the-art diffusion in PyTorch." + } + } + ], + "specDigest": "sha256:82017c1615d807c1808c13929f0ee10b180058b2f976e51209a80e41939a40fe", + "stagedPackages": [ + { + "distribution": "diffusers", + "distributionUrl": "https://codeload.github.com/huggingface/diffusers/tar.gz/7ecb1e1b4fe500be7fb7381a7bb79a24d7fa3941", + "importName": "diffusers", + "license": "Apache-2.0", + "projectUrl": "https://github.com/huggingface/diffusers", + "publisher": "Hugging Face", + "requiredClassSymbols": [ + "Flux3ModularPipeline", + "Flux3DistilledModularPipeline", + "Flux3Transformer2DModel", + "AutoencoderKLFlux2", + "FlowMatchEulerDiscreteScheduler", + "ClassifierFreeGuidance", + "ModularPipeline", + "ComponentsManager", + "ComponentSpec" + ], + "requiredSymbols": [ + "Flux3ModularPipeline", + "Flux3DistilledModularPipeline", + "Flux3Transformer2DModel", + "AutoencoderKLFlux2", + "FlowMatchEulerDiscreteScheduler", + "ClassifierFreeGuidance", + "ModularPipeline", + "ComponentsManager", + "ComponentSpec", + "diffusers.loaders.lora_conversion_utils:_convert_non_diffusers_flux3_lora_to_diffusers" + ], + "requiredVersion": "0.41.0.dev0", + "requirement": "diffusers==0.41.0.dev0", + "role": "runtime_root" + } + ], + "stagedRequirements": ["diffusers==0.41.0.dev0"], + "status": "present_unqualified", + "targetContracts": [ + { + "activationAvailable": true, + "contractState": "qualified", + "cutoverReady": true, + "installActionAvailable": true, + "machine": "x86_64", + "platform": "linux" + }, + { + "activationAvailable": false, + "contractState": "candidate_unqualified", + "cutoverReady": false, + "installActionAvailable": false, + "machine": "arm64", + "platform": "linux" + }, + { + "activationAvailable": false, + "contractState": "candidate_unqualified", + "cutoverReady": false, + "installActionAvailable": false, + "machine": "x86_64", + "platform": "macos" + }, + { + "activationAvailable": false, + "contractState": "candidate_unqualified", + "cutoverReady": false, + "installActionAvailable": false, + "machine": "arm64", + "platform": "macos" + }, + { + "activationAvailable": true, + "contractState": "qualified", + "cutoverReady": true, + "installActionAvailable": true, + "machine": "x86_64", + "platform": "windows" + }, + { + "activationAvailable": false, + "contractState": "candidate_unqualified", + "cutoverReady": false, + "installActionAvailable": false, + "machine": "arm64", + "platform": "windows" + } + ] + } + ], + "optionalRuntimeRequirement": { + "delivery": "optional_overlay", + "executionProfileIds": ["flux3-klein-base:official-provider:v1"], + "profileIds": ["huggingface-diffusers-flux3-7ecb1e1"], + "reason": "optional_runtime_present_unqualified", + "requiredNow": true, + "schemaVersion": 1, + "state": "present_unqualified" + }, + "outputKind": "image", + "parameterAliases": { + "controlImage": ["control_image", "conditioning_image"], + "guidanceScale": ["guidance_scale", "true_cfg_scale", "guidance"], + "maskImage": ["mask_image", "mask"], + "modelRepository": ["model_id", "model", "repo"], + "sourceImage": ["image", "reference_images"], + "steps": ["num_inference_steps", "steps"] + }, + "pipelineClasses": ["Flux3ModularPipeline"], + "qualificationStatus": "runtime-required", + "qualifiedModes": [], + "quantizationSupport": { "components": [], "defaultMode": "none", "offloadModes": [] }, + "recommendedGuidance": 3.5, + "recommendedSteps": 50, + "revisionCandidates": ["1469d27cfb9bb1bd81d3a93f5a023b39dbf136e4"], + "runnableModes": ["edit_image", "text_to_image"], + "schemaVersion": 2, + "studioExecutionSpecModes": ["edit_image", "text_to_image"], + "studioExecutionSpecSchemaVersion": 1, + "studioExecutionSpecs": [ + { + "actions": [], + "autoFields": [ + "resolvedArtifact", + "artifact", + "installTarget.repo", + "modelRepo", + "pipelineClass", + "dtype", + "offloadMode", + "quantizedComponents", + "attentionBackend", + "regionalCompile", + "denoiserCache", + "layerwiseCasting", + "channelsLast" + ], + "bindings": [ + ["models", "model_type", "pipelineClass"], + ["models", "repo_id", "artifact"], + ["models", "revision", "defaultRevision"], + ["models", "dtype", "dtype"], + ["models", "device", "device"], + ["models", "auto_offload", "autoOffload"], + ["models", "offload_mode", "offloadMode"], + ["models", "trust_remote_code", "false"], + ["prompt", "prompt", "prompt"], + ["prompt", "negative_prompt", "negativePrompt"], + ["denoise", "width", "width"], + ["denoise", "height", "height"], + ["denoise", "seed", "seed"], + ["denoise", "num_inference_steps", "steps"], + ["prompt", "max_sequence_length", "maxSequenceLength"], + ["models", "weight_format", "weightFormat"], + ["guider", "guider", "classifierFreeGuidance"], + ["guider", "model_type", "pipelineClass"], + ["guider", "guidance_scale", "guidanceScale"] + ], + "canonicalizationVersion": 1, + "contentHash": "studio-spec-v1-f5960f24", + "defaultRepo": "black-forest-labs/flux-3-image-klein-base", + "edges": [ + ["models", "text_encoders", "prompt", "text_encoders"], + ["models", "unet_out", "denoise", "unet"], + ["models", "scheduler", "denoise", "scheduler"], + ["models", "vae_out", "decode", "vae"], + ["prompt", "embeddings", "denoise", "embeddings"], + ["denoise", "latents", "decode", "latents"], + ["decode", "images", "preview", "image"], + ["guider", "guider_out", "denoise", "guider"] + ], + "executionPath": "modular-diffusers", + "executionProfileId": "flux3-klein-base:official-provider:v1", + "id": "flux3-klein-base:official-provider:v1:text-to-image:v1", + "loaderAction": "ModelsLoader", + "loaderModule": "modules.ModularDiffusers", + "mode": "text_to_image", + "modelType": "Flux3ModularPipeline", + "pipelineClass": "Flux3ModularPipeline", + "requiredDiffusersProvider": "huggingface-diffusers-flux3-7ecb1e1", + "roles": [ + ["models", "modules.ModularDiffusers.ModelsLoader", -720, -80], + ["prompt", "modules.ModularDiffusers.EncodePrompt", -360, -240], + ["denoise", "modules.ModularDiffusers.Denoise", 80, -80], + ["decode", "modules.ModularDiffusers.DecodeLatents", 440, -80], + ["preview", "modules.Image.Preview", 800, -80], + ["guider", "modules.ModularDiffusers.Guider", -360, 160] + ], + "schemaVersion": 1 + }, + { + "actions": [], + "autoFields": [ + "resolvedArtifact", + "artifact", + "installTarget.repo", + "modelRepo", + "pipelineClass", + "dtype", + "offloadMode", + "quantizedComponents", + "attentionBackend", + "regionalCompile", + "denoiserCache", + "layerwiseCasting", + "channelsLast" + ], + "bindings": [ + ["models", "model_type", "pipelineClass"], + ["models", "repo_id", "artifact"], + ["models", "revision", "defaultRevision"], + ["models", "dtype", "dtype"], + ["models", "device", "device"], + ["models", "auto_offload", "autoOffload"], + ["models", "offload_mode", "offloadMode"], + ["models", "trust_remote_code", "false"], + ["prompt", "prompt", "prompt"], + ["prompt", "negative_prompt", "negativePrompt"], + ["denoise", "width", "width"], + ["denoise", "height", "height"], + ["denoise", "seed", "seed"], + ["denoise", "num_inference_steps", "steps"], + ["prompt", "max_sequence_length", "maxSequenceLength"], + ["models", "weight_format", "weightFormat"], + ["guider", "guider", "classifierFreeGuidance"], + ["guider", "model_type", "pipelineClass"], + ["guider", "guidance_scale", "guidanceScale"], + ["loadImage", "file", "referenceImages"], + ["loadImage", "alpha_channel", "alphaMode"] + ], + "canonicalizationVersion": 1, + "contentHash": "studio-spec-v1-df55b87c", + "defaultRepo": "black-forest-labs/flux-3-image-klein-base", + "edges": [ + ["models", "text_encoders", "prompt", "text_encoders"], + ["models", "unet_out", "denoise", "unet"], + ["models", "scheduler", "denoise", "scheduler"], + ["models", "vae_out", "decode", "vae"], + ["prompt", "embeddings", "denoise", "embeddings"], + ["denoise", "latents", "decode", "latents"], + ["decode", "images", "preview", "image"], + ["guider", "guider_out", "denoise", "guider"], + ["models", "vae_out", "imageEncode", "vae"], + ["loadImage", "image", "imageEncode", "image"], + ["imageEncode", "image_cond_latents", "denoise", "image_cond_latents"], + ["imageEncode", "reference_binding", "prompt", "reference_binding"], + ["imageEncode", "reference_binding", "denoise", "reference_binding"] + ], + "executionPath": "modular-diffusers", + "executionProfileId": "flux3-klein-base:official-provider:v1", + "id": "flux3-klein-base:official-provider:v1:edit-image:v1", + "loaderAction": "ModelsLoader", + "loaderModule": "modules.ModularDiffusers", + "mode": "edit_image", + "modelType": "Flux3ModularPipeline", + "pipelineClass": "Flux3ModularPipeline", + "requiredDiffusersProvider": "huggingface-diffusers-flux3-7ecb1e1", + "roles": [ + ["models", "modules.ModularDiffusers.ModelsLoader", -720, -80], + ["prompt", "modules.ModularDiffusers.EncodePrompt", -360, -240], + ["denoise", "modules.ModularDiffusers.Denoise", 80, -80], + ["decode", "modules.ModularDiffusers.DecodeLatents", 440, -80], + ["preview", "modules.Image.Preview", 800, -80], + ["guider", "modules.ModularDiffusers.Guider", -360, 160], + ["loadImage", "modules.Image.Load", -720, 320], + ["imageEncode", "modules.ModularDiffusers.ImageEncode", -360, 320] + ], + "schemaVersion": 1 + } + ], + "supportTier": "experimental", + "supportsControlImage": false, + "supportsGuidance": true, + "supportsImageInput": true, + "supportsLayers": false, + "supportsLora": true, + "supportsMask": false, + "supportsMultiImage": true, + "supportsNegativePrompt": true, + "taskTemplateContractModes": ["edit_image", "text_to_image"], + "taskTemplateContractSchemaVersion": 1, + "taskTemplateContracts": [ + { + "auxiliaryTerminalRoles": [], + "canonicalizationVersion": 1, + "contentHash": "task-template-v1-48a3cc12", + "defaultRepo": "black-forest-labs/flux-3-image-klein-base", + "executionProfileId": "flux3-klein-base:official-provider:v1", + "executionSpecContentHash": "studio-spec-v1-df55b87c", + "executionSpecId": "flux3-klein-base:official-provider:v1:edit-image:v1", + "galleryEligible": false, + "id": "task-template:flux3-klein-base:official-provider:v1:edit-image:v1", + "loaderAction": "ModelsLoader", + "loaderModule": "modules.ModularDiffusers", + "loaderRepositories": ["black-forest-labs/flux-3-image-klein-base"], + "loaderRole": "models", + "mediaKind": "image", + "mode": "edit_image", + "modelType": "Flux3ModularPipeline", + "output": { + "inputHandle": "image", + "mediaKind": "image", + "nodeKey": "modules.Image.Preview", + "role": "preview" + }, + "pipelineClass": "Flux3ModularPipeline", + "qualificationStatus": "runtime-required", + "requiredMedia": [{ "field": "referenceImages", "kind": "image", "minimumCount": 1 }], + "schemaVersion": 1 + }, + { + "auxiliaryTerminalRoles": [], + "canonicalizationVersion": 1, + "contentHash": "task-template-v1-8ada2bc9", + "defaultRepo": "black-forest-labs/flux-3-image-klein-base", + "executionProfileId": "flux3-klein-base:official-provider:v1", + "executionSpecContentHash": "studio-spec-v1-f5960f24", + "executionSpecId": "flux3-klein-base:official-provider:v1:text-to-image:v1", + "galleryEligible": false, + "id": "task-template:flux3-klein-base:official-provider:v1:text-to-image:v1", + "loaderAction": "ModelsLoader", + "loaderModule": "modules.ModularDiffusers", + "loaderRepositories": ["black-forest-labs/flux-3-image-klein-base"], + "loaderRole": "models", + "mediaKind": "image", + "mode": "text_to_image", + "modelType": "Flux3ModularPipeline", + "output": { + "inputHandle": "image", + "mediaKind": "image", + "nodeKey": "modules.Image.Preview", + "role": "preview" + }, + "pipelineClass": "Flux3ModularPipeline", + "qualificationStatus": "runtime-required", + "requiredMedia": [], + "schemaVersion": 1 + } + ], + "templateEligible": false, + "weightFormatSelections": [ + { + "downloadFiles": [ + "LICENSE.md", + "NOTICE.md", + "modular_model_index.json", + "text_encoder/LICENSE", + "text_encoder/chat_template.json", + "text_encoder/config.json", + "text_encoder/generation_config.json", + "text_encoder/merges.txt", + "text_encoder/model-00001-of-00002.safetensors", + "text_encoder/model-00002-of-00002.safetensors", + "text_encoder/model.safetensors.index.json", + "text_encoder/preprocessor_config.json", + "text_encoder/tokenizer.json", + "text_encoder/tokenizer_config.json", + "text_encoder/video_preprocessor_config.json", + "text_encoder/vocab.json", + "transformer/config.json", + "vae/config.json", + "vae/diffusion_pytorch_model.safetensors", + "variants/fp8r/model.safetensors" + ], + "repo": "black-forest-labs/flux-3-image-klein-base", + "revision": "1469d27cfb9bb1bd81d3a93f5a023b39dbf136e4", + "weightFormat": "fp8r" + }, + { + "downloadFiles": [ + "LICENSE.md", + "NOTICE.md", + "modular_model_index.json", + "text_encoder/LICENSE", + "text_encoder/chat_template.json", + "text_encoder/config.json", + "text_encoder/generation_config.json", + "text_encoder/merges.txt", + "text_encoder/model-00001-of-00002.safetensors", + "text_encoder/model-00002-of-00002.safetensors", + "text_encoder/model.safetensors.index.json", + "text_encoder/preprocessor_config.json", + "text_encoder/tokenizer.json", + "text_encoder/tokenizer_config.json", + "text_encoder/video_preprocessor_config.json", + "text_encoder/vocab.json", + "transformer/config.json", + "vae/config.json", + "vae/diffusion_pytorch_model.safetensors", + "variants/nvfp4/model.safetensors" + ], + "repo": "black-forest-labs/flux-3-image-klein-base", + "revision": "1469d27cfb9bb1bd81d3a93f5a023b39dbf136e4", + "weightFormat": "nvfp4" + } + ] + }, + { + "artifactCandidates": ["black-forest-labs/flux-3-image-klein"], + "autoEligible": false, + "defaultDtype": "bfloat16", + "defaultRepo": "black-forest-labs/flux-3-image-klein", + "defaultSize": { "aspectRatio": "1:1", "height": 1024, "width": 1024 }, + "defaults": { + "dtype": "bfloat16", + "guidanceScale": 1.0, + "offloadMode": null, + "size": { "aspectRatio": "1:1", "height": 1024, "width": 1024 }, + "steps": 16 + }, + "displayName": "FLUX 3 Image Klein", + "downloadFiles": [ + "LICENSE.md", + "NOTICE.md", + "modular_model_index.json", + "text_encoder/LICENSE", + "text_encoder/chat_template.json", + "text_encoder/config.json", + "text_encoder/generation_config.json", + "text_encoder/merges.txt", + "text_encoder/model-00001-of-00002.safetensors", + "text_encoder/model-00002-of-00002.safetensors", + "text_encoder/model.safetensors.index.json", + "text_encoder/preprocessor_config.json", + "text_encoder/tokenizer.json", + "text_encoder/tokenizer_config.json", + "text_encoder/video_preprocessor_config.json", + "text_encoder/vocab.json", + "transformer/config.json", + "transformer/diffusion_pytorch_model-00001-of-00002.safetensors", + "transformer/diffusion_pytorch_model-00002-of-00002.safetensors", + "transformer/diffusion_pytorch_model.safetensors.index.json", + "vae/config.json", + "vae/diffusion_pytorch_model.safetensors" + ], + "executionProfiles": [ + { + "adapterAuthoring": { + "adapterNodeKey": "modules.ModularDiffusers.Lora", + "maxOwnedAdapters": 32, + "mediaKind": "image", + "repositoryRevisions": [ + { + "repo": "black-forest-labs/flux-3-image-klein", + "revision": "8454017f9ebaada30c998fccd9f67a80c7580f68" + } + ], + "requiredControls": { + "auto_offload": false, + "controlnet": null, + "offload_mode": "none", + "quant_config": null, + "trust_remote_code": false, + "unet": null, + "vae": null, + "weight_loading_mode": "cpu" + }, + "schemaVersion": 1, + "tasks": ["text_to_image", "edit_image"] + }, + "authoringRecipes": [ + { + "authoringRecipeId": "flux3-klein:official:text-to-image:prompt-preview-append-fp32:v1", + "executionProfileId": "flux3-klein:official-provider:v1", + "layoutAuthoringRecipeChoices": [ + { + "authoringRecipeId": "flux3-klein:official:text-to-image:prompt-preview-append-fp32:v1", + "label": "Append wording: preserve authored layout" + }, + { + "authoringRecipeId": "flux3-klein:official:text-to-image:prompt-preview-constrained-fp32:v1", + "label": "Generate constrained table: FP32 (Expert)" + } + ], + "pipelineClass": "Flux3DistilledModularPipeline", + "rawAuthoringRecipeChoices": [ + { + "authoringRecipeId": "flux3-klein:official:text-to-image:prompt-preview-fp32:v1", + "label": "Raw wording: FP32" + }, + { + "authoringRecipeId": "flux3-klein:official:text-to-image:prompt-preview-nf4:v1", + "label": "Raw wording: BF16 + NF4" + } + ], + "rawAuthoringRecipeId": "flux3-klein:official:text-to-image:prompt-preview-fp32:v1", + "task": "text_to_image" + }, + { + "authoringRecipeId": "flux3-klein:official:edit-image:prompt-preview-append-fp32:v1", + "executionProfileId": "flux3-klein:official-provider:v1", + "layoutAuthoringRecipeChoices": [ + { + "authoringRecipeId": "flux3-klein:official:edit-image:prompt-preview-append-fp32:v1", + "label": "Append wording: preserve authored layout" + }, + { + "authoringRecipeId": "flux3-klein:official:edit-image:prompt-preview-constrained-fp32:v1", + "label": "Generate constrained table: FP32 (Expert)" + } + ], + "pipelineClass": "Flux3DistilledModularPipeline", + "rawAuthoringRecipeChoices": [ + { + "authoringRecipeId": "flux3-klein:official:edit-image:prompt-preview-fp32:v1", + "label": "Raw wording: FP32" + }, + { + "authoringRecipeId": "flux3-klein:official:edit-image:prompt-preview-nf4:v1", + "label": "Raw wording: BF16 + NF4" + } + ], + "rawAuthoringRecipeId": "flux3-klein:official:edit-image:prompt-preview-fp32:v1", + "task": "edit_image" + } + ], + "backend_path": "modules.ModularDiffusers.ModelsLoader", + "compatible_repos": [], + "default_quantized_components": [], + "default_repo": "black-forest-labs/flux-3-image-klein", + "execution_path": "modular-diffusers", + "fallback_repo": null, + "id": "flux3-klein:official-provider:v1", + "live_proof": false, + "loader_action": "ModelsLoader", + "loader_module": "modules.ModularDiffusers", + "max_low_memory_side": null, + "max_low_memory_steps": null, + "model_type": "Flux3DistilledModularPipeline", + "modes": ["text_to_image", "edit_image"], + "optionalRuntimeRequirement": { + "delivery": "optional_overlay", + "executionProfileIds": ["flux3-klein:official-provider:v1"], + "profileIds": ["huggingface-diffusers-flux3-7ecb1e1"], + "reason": "optional_runtime_present_unqualified", + "requiredNow": true, + "schemaVersion": 1, + "state": "present_unqualified" + }, + "optional_runtime_delivery": "optional_overlay", + "optional_runtime_platform_deliveries": [ + { "delivery": "optional_overlay", "machine": "x86_64", "platform": "linux" }, + { "delivery": "optional_overlay", "machine": "arm64", "platform": "linux" }, + { "delivery": "optional_overlay", "machine": "x86_64", "platform": "macos" }, + { "delivery": "optional_overlay", "machine": "arm64", "platform": "macos" }, + { "delivery": "optional_overlay", "machine": "x86_64", "platform": "windows" }, + { "delivery": "optional_overlay", "machine": "arm64", "platform": "windows" } + ], + "optional_runtime_profiles": ["huggingface-diffusers-flux3-7ecb1e1"], + "pipeline_class": "Flux3DistilledModularPipeline", + "public": true, + "quantizable_components": [], + "replaces_private_authoring_profile": "flux3-klein:modular", + "repository_revisions": [ + { "repo": "black-forest-labs/flux-3-image-klein", "revision": "8454017f9ebaada30c998fccd9f67a80c7580f68" } + ], + "required_diffusers_provider": "huggingface-diffusers-flux3-7ecb1e1", + "retry_offload_modes": [], + "supported_offload_modes": ["none", "model_cpu", "group_cpu", "group_disk"] + } + ], + "executionStatus": "expert_only", + "family": "FLUX Image", + "galleryEligible": false, + "guidanceLabel": "Classifier-free guidance", + "inputContracts": { "edit_image": { "requiredImages": ["referenceImages"] } }, + "label": "FLUX 3 Image Klein", + "liveProof": false, + "mediaKind": "image", + "modeRequirements": { "edit_image": { "requiredImages": ["referenceImages"] } }, + "modelType": "Flux3DistilledModularPipeline", + "modes": ["text_to_image", "edit_image"], + "notes": [ + "Explicit Expert authoring requires the reviewed optional Diffusers provider.", + "Runtime readiness, model fit, native output and Auto/template qualification are separate." + ], + "optionalRuntimeProfileIds": ["huggingface-diffusers-flux3-7ecb1e1"], + "optionalRuntimeProfiles": [ + { + "activationAvailable": true, + "artifactLocks": [], + "baseRequirements": [ + { "distribution": "accelerate", "importName": "accelerate", "specifier": ">=1.4.0" }, + { "distribution": "anyio", "importName": "anyio", "specifier": "" }, + { "distribution": "certifi", "importName": "certifi", "specifier": "" }, + { "distribution": "click", "importName": "click", "specifier": "" }, + { "distribution": "filelock", "importName": "filelock", "specifier": "" }, + { "distribution": "fsspec", "importName": "fsspec", "specifier": "" }, + { "distribution": "h11", "importName": "h11", "specifier": "" }, + { "distribution": "hf-xet", "importName": "hf_xet", "specifier": "" }, + { "distribution": "httpcore", "importName": "httpcore", "specifier": "" }, + { "distribution": "httpx", "importName": "httpx", "specifier": "" }, + { "distribution": "huggingface-hub", "importName": "huggingface_hub", "specifier": ">=1.32.0,<2.0" }, + { "distribution": "idna", "importName": "idna", "specifier": "" }, + { "distribution": "jinja2", "importName": "jinja2", "specifier": "" }, + { "distribution": "markupsafe", "importName": "markupsafe", "specifier": "" }, + { "distribution": "mpmath", "importName": "mpmath", "specifier": "" }, + { "distribution": "networkx", "importName": "networkx", "specifier": "" }, + { "distribution": "numpy", "importName": "numpy", "specifier": ">=1.17" }, + { "distribution": "packaging", "importName": "packaging", "specifier": ">=20.0" }, + { "distribution": "pillow", "importName": "PIL", "specifier": ">=10.0.1,<=15.0" }, + { "distribution": "protobuf", "importName": "google.protobuf", "specifier": ">=6.31.1" }, + { "distribution": "psutil", "importName": "psutil", "specifier": "" }, + { "distribution": "pyyaml", "importName": "yaml", "specifier": ">=5.1" }, + { "distribution": "regex", "importName": "regex", "specifier": ">=2025.10.22" }, + { "distribution": "safetensors", "importName": "safetensors", "specifier": ">=0.8.0" }, + { "distribution": "sentencepiece", "importName": "sentencepiece", "specifier": ">=0.2.0" }, + { "distribution": "setuptools", "importName": "setuptools", "specifier": "" }, + { "distribution": "sympy", "importName": "sympy", "specifier": "" }, + { "distribution": "torch", "importName": "torch", "specifier": ">=2.6.0" }, + { "distribution": "torchvision", "importName": "torchvision", "specifier": ">=0.21.0" }, + { "distribution": "tqdm", "importName": "tqdm", "specifier": ">=4.60" }, + { "distribution": "typing-extensions", "importName": "typing_extensions", "specifier": "" }, + { "distribution": "colorama", "importName": "colorama", "platforms": ["windows"], "specifier": "" }, + { "distribution": "transformers", "importName": "transformers", "specifier": ">=5.18.0" }, + { "distribution": "peft", "importName": "peft", "specifier": ">=0.21.2" }, + { "distribution": "tokenizers", "importName": "tokenizers", "specifier": "" }, + { "distribution": "typer", "importName": "typer", "specifier": "" }, + { "distribution": "annotated-doc", "importName": "annotated_doc", "specifier": "" }, + { "distribution": "rich", "importName": "rich", "specifier": "" }, + { "distribution": "markdown-it-py", "importName": "markdown_it", "specifier": "" }, + { "distribution": "mdurl", "importName": "mdurl", "specifier": "" }, + { "distribution": "pygments", "importName": "pygments", "specifier": "" }, + { "distribution": "shellingham", "importName": "shellingham", "specifier": "" }, + { "distribution": "requests", "importName": "requests", "specifier": ">=2.25" }, + { "distribution": "urllib3", "importName": "urllib3", "specifier": "" }, + { "distribution": "charset-normalizer", "importName": "charset_normalizer", "specifier": "" }, + { "distribution": "importlib-metadata", "importName": "importlib_metadata", "specifier": "" } + ], + "contractState": "qualified", + "cutoverReady": true, + "excludedQualificationSymbols": ["add_weighted_adapter"], + "id": "huggingface-diffusers-flux3-7ecb1e1", + "installActionAvailable": true, + "installPolicy": "explicit_first_use", + "label": "Official Diffusers FLUX 3 source runtime", + "machine": "x86_64", + "packages": [ + { + "distribution": "diffusers", + "distributionUrl": "https://codeload.github.com/huggingface/diffusers/tar.gz/7ecb1e1b4fe500be7fb7381a7bb79a24d7fa3941", + "importName": "diffusers", + "installedVersion": "0.41.0.dev0", + "license": "Apache-2.0", + "projectUrl": "https://github.com/huggingface/diffusers", + "publisher": "Hugging Face", + "requiredClassSymbols": [ + "Flux3ModularPipeline", + "Flux3DistilledModularPipeline", + "Flux3Transformer2DModel", + "AutoencoderKLFlux2", + "FlowMatchEulerDiscreteScheduler", + "ClassifierFreeGuidance", + "ModularPipeline", + "ComponentsManager", + "ComponentSpec" + ], + "requiredSymbols": [ + "Flux3ModularPipeline", + "Flux3DistilledModularPipeline", + "Flux3Transformer2DModel", + "AutoencoderKLFlux2", + "FlowMatchEulerDiscreteScheduler", + "ClassifierFreeGuidance", + "ModularPipeline", + "ComponentsManager", + "ComponentSpec", + "diffusers.loaders.lora_conversion_utils:_convert_non_diffusers_flux3_lora_to_diffusers" + ], + "requiredVersion": "0.41.0.dev0", + "requirement": "diffusers==0.41.0.dev0", + "role": "runtime_root", + "status": "present_unqualified" + } + ], + "pipelineAdapterMethods": [ + { "method": "load_components", "requiredParameters": ["names", "workflow"] }, + { "method": "__call__", "requiredParameters": ["state", "output"] } + ], + "pipelineAdapterSymbols": ["Flux3ModularPipeline", "Flux3DistilledModularPipeline"], + "platform": "windows", + "providesDiffusers": true, + "requirePeftBackend": true, + "requiredDiffusersSymbols": [ + "Flux3ModularPipeline", + "Flux3DistilledModularPipeline", + "Flux3Transformer2DModel", + "AutoencoderKLFlux2", + "FlowMatchEulerDiscreteScheduler", + "ClassifierFreeGuidance", + "ModularPipeline", + "ComponentsManager", + "ComponentSpec" + ], + "requirements": ["diffusers==0.41.0.dev0"], + "schemaVersion": 1, + "sourceBuilds": [ + { + "buildDependencies": [], + "distribution": "diffusers", + "outputWheel": { + "byteSize": 27721978, + "distribution": "diffusers", + "filename": "diffusers-0.41.0.dev0-py3-none-any.whl", + "machine": "any", + "platform": "any", + "pythonTag": "py3", + "sha256": "59c8eb8aaaa25fe5f912e09c48bf66f7e41655c468a7ec47f56da93d8ca40dbd", + "version": "0.41.0.dev0" + }, + "pythonTag": "py3", + "recipe": "modiff_pure_python_wheel_v1", + "schemaVersion": 1, + "sourceArtifact": { + "archiveRoot": "diffusers-7ecb1e1b4fe500be7fb7381a7bb79a24d7fa3941", + "byteSize": 11802397, + "commit": "7ecb1e1b4fe500be7fb7381a7bb79a24d7fa3941", + "filename": "diffusers-7ecb1e1b4fe500be7fb7381a7bb79a24d7fa3941.tar.gz", + "kind": "github_commit_tarball", + "repository": "huggingface/diffusers", + "sha256": "84ee014d4acc0c7633d2778f2ac0125fa77a87e736c86a8092edb1d47a55a744", + "url": "https://codeload.github.com/huggingface/diffusers/tar.gz/7ecb1e1b4fe500be7fb7381a7bb79a24d7fa3941" + }, + "sourceDateEpoch": 315532800, + "sourceFiles": ["LICENSE", "README.md", "pyproject.toml", "setup.py"], + "sourceTrees": ["src/diffusers"], + "version": "0.41.0.dev0", + "wheelMetadata": { + "consoleScripts": { "diffusers-cli": "diffusers.commands.diffusers_cli:main" }, + "license": "Apache 2.0 License", + "licenseFile": "LICENSE", + "packageRoot": "src", + "requiresDist": [ + "importlib_metadata", + "filelock", + "huggingface-hub<3.0,>=1.32.0", + "numpy", + "regex!=2019.12.17", + "requests", + "safetensors>=0.8.0", + "Pillow" + ], + "requiresPython": ">=3.11.0", + "summary": "State-of-the-art diffusion in PyTorch." + } + } + ], + "specDigest": "sha256:82017c1615d807c1808c13929f0ee10b180058b2f976e51209a80e41939a40fe", + "stagedPackages": [ + { + "distribution": "diffusers", + "distributionUrl": "https://codeload.github.com/huggingface/diffusers/tar.gz/7ecb1e1b4fe500be7fb7381a7bb79a24d7fa3941", + "importName": "diffusers", + "license": "Apache-2.0", + "projectUrl": "https://github.com/huggingface/diffusers", + "publisher": "Hugging Face", + "requiredClassSymbols": [ + "Flux3ModularPipeline", + "Flux3DistilledModularPipeline", + "Flux3Transformer2DModel", + "AutoencoderKLFlux2", + "FlowMatchEulerDiscreteScheduler", + "ClassifierFreeGuidance", + "ModularPipeline", + "ComponentsManager", + "ComponentSpec" + ], + "requiredSymbols": [ + "Flux3ModularPipeline", + "Flux3DistilledModularPipeline", + "Flux3Transformer2DModel", + "AutoencoderKLFlux2", + "FlowMatchEulerDiscreteScheduler", + "ClassifierFreeGuidance", + "ModularPipeline", + "ComponentsManager", + "ComponentSpec", + "diffusers.loaders.lora_conversion_utils:_convert_non_diffusers_flux3_lora_to_diffusers" + ], + "requiredVersion": "0.41.0.dev0", + "requirement": "diffusers==0.41.0.dev0", + "role": "runtime_root" + } + ], + "stagedRequirements": ["diffusers==0.41.0.dev0"], + "status": "present_unqualified", + "targetContracts": [ + { + "activationAvailable": true, + "contractState": "qualified", + "cutoverReady": true, + "installActionAvailable": true, + "machine": "x86_64", + "platform": "linux" + }, + { + "activationAvailable": false, + "contractState": "candidate_unqualified", + "cutoverReady": false, + "installActionAvailable": false, + "machine": "arm64", + "platform": "linux" + }, + { + "activationAvailable": false, + "contractState": "candidate_unqualified", + "cutoverReady": false, + "installActionAvailable": false, + "machine": "x86_64", + "platform": "macos" + }, + { + "activationAvailable": false, + "contractState": "candidate_unqualified", + "cutoverReady": false, + "installActionAvailable": false, + "machine": "arm64", + "platform": "macos" + }, + { + "activationAvailable": true, + "contractState": "qualified", + "cutoverReady": true, + "installActionAvailable": true, + "machine": "x86_64", + "platform": "windows" + }, + { + "activationAvailable": false, + "contractState": "candidate_unqualified", + "cutoverReady": false, + "installActionAvailable": false, + "machine": "arm64", + "platform": "windows" + } + ] + } + ], + "optionalRuntimeRequirement": { + "delivery": "optional_overlay", + "executionProfileIds": ["flux3-klein:official-provider:v1"], + "profileIds": ["huggingface-diffusers-flux3-7ecb1e1"], + "reason": "optional_runtime_present_unqualified", + "requiredNow": true, + "schemaVersion": 1, + "state": "present_unqualified" + }, + "outputKind": "image", + "parameterAliases": { + "controlImage": ["control_image", "conditioning_image"], + "guidanceScale": ["guidance_scale", "true_cfg_scale", "guidance"], + "maskImage": ["mask_image", "mask"], + "modelRepository": ["model_id", "model", "repo"], + "sourceImage": ["image", "reference_images"], + "steps": ["num_inference_steps", "steps"] + }, + "pipelineClasses": ["Flux3DistilledModularPipeline"], + "qualificationStatus": "runtime-required", + "qualifiedModes": [], + "quantizationSupport": { "components": [], "defaultMode": "none", "offloadModes": [] }, + "recommendedGuidance": 1.0, + "recommendedSteps": 16, + "revisionCandidates": ["8454017f9ebaada30c998fccd9f67a80c7580f68"], + "runnableModes": ["edit_image", "text_to_image"], + "schemaVersion": 2, + "studioExecutionSpecModes": ["edit_image", "text_to_image"], + "studioExecutionSpecSchemaVersion": 1, + "studioExecutionSpecs": [ + { + "actions": [], + "autoFields": [ + "resolvedArtifact", + "artifact", + "installTarget.repo", + "modelRepo", + "pipelineClass", + "dtype", + "offloadMode", + "quantizedComponents", + "attentionBackend", + "regionalCompile", + "denoiserCache", + "layerwiseCasting", + "channelsLast" + ], + "bindings": [ + ["models", "model_type", "pipelineClass"], + ["models", "repo_id", "artifact"], + ["models", "revision", "defaultRevision"], + ["models", "dtype", "dtype"], + ["models", "device", "device"], + ["models", "auto_offload", "autoOffload"], + ["models", "offload_mode", "offloadMode"], + ["models", "trust_remote_code", "false"], + ["prompt", "prompt", "prompt"], + ["denoise", "width", "width"], + ["denoise", "height", "height"], + ["denoise", "seed", "seed"], + ["denoise", "num_inference_steps", "steps"], + ["prompt", "max_sequence_length", "maxSequenceLength"], + ["models", "weight_format", "weightFormat"] + ], + "canonicalizationVersion": 1, + "contentHash": "studio-spec-v1-8411b4e0", + "defaultRepo": "black-forest-labs/flux-3-image-klein", + "edges": [ + ["models", "text_encoders", "prompt", "text_encoders"], + ["models", "unet_out", "denoise", "unet"], + ["models", "scheduler", "denoise", "scheduler"], + ["models", "vae_out", "decode", "vae"], + ["prompt", "embeddings", "denoise", "embeddings"], + ["denoise", "latents", "decode", "latents"], + ["decode", "images", "preview", "image"] + ], + "executionPath": "modular-diffusers", + "executionProfileId": "flux3-klein:official-provider:v1", + "id": "flux3-klein:official-provider:v1:text-to-image:v1", + "loaderAction": "ModelsLoader", + "loaderModule": "modules.ModularDiffusers", + "mode": "text_to_image", + "modelType": "Flux3DistilledModularPipeline", + "pipelineClass": "Flux3DistilledModularPipeline", + "requiredDiffusersProvider": "huggingface-diffusers-flux3-7ecb1e1", + "roles": [ + ["models", "modules.ModularDiffusers.ModelsLoader", -720, -80], + ["prompt", "modules.ModularDiffusers.EncodePrompt", -360, -240], + ["denoise", "modules.ModularDiffusers.Denoise", 80, -80], + ["decode", "modules.ModularDiffusers.DecodeLatents", 440, -80], + ["preview", "modules.Image.Preview", 800, -80] + ], + "schemaVersion": 1 + }, + { + "actions": [], + "autoFields": [ + "resolvedArtifact", + "artifact", + "installTarget.repo", + "modelRepo", + "pipelineClass", + "dtype", + "offloadMode", + "quantizedComponents", + "attentionBackend", + "regionalCompile", + "denoiserCache", + "layerwiseCasting", + "channelsLast" + ], + "bindings": [ + ["models", "model_type", "pipelineClass"], + ["models", "repo_id", "artifact"], + ["models", "revision", "defaultRevision"], + ["models", "dtype", "dtype"], + ["models", "device", "device"], + ["models", "auto_offload", "autoOffload"], + ["models", "offload_mode", "offloadMode"], + ["models", "trust_remote_code", "false"], + ["prompt", "prompt", "prompt"], + ["denoise", "width", "width"], + ["denoise", "height", "height"], + ["denoise", "seed", "seed"], + ["denoise", "num_inference_steps", "steps"], + ["prompt", "max_sequence_length", "maxSequenceLength"], + ["models", "weight_format", "weightFormat"], + ["loadImage", "file", "referenceImages"], + ["loadImage", "alpha_channel", "alphaMode"] + ], + "canonicalizationVersion": 1, + "contentHash": "studio-spec-v1-9e30f38e", + "defaultRepo": "black-forest-labs/flux-3-image-klein", + "edges": [ + ["models", "text_encoders", "prompt", "text_encoders"], + ["models", "unet_out", "denoise", "unet"], + ["models", "scheduler", "denoise", "scheduler"], + ["models", "vae_out", "decode", "vae"], + ["prompt", "embeddings", "denoise", "embeddings"], + ["denoise", "latents", "decode", "latents"], + ["decode", "images", "preview", "image"], + ["models", "vae_out", "imageEncode", "vae"], + ["loadImage", "image", "imageEncode", "image"], + ["imageEncode", "image_cond_latents", "denoise", "image_cond_latents"], + ["imageEncode", "reference_binding", "prompt", "reference_binding"], + ["imageEncode", "reference_binding", "denoise", "reference_binding"] + ], + "executionPath": "modular-diffusers", + "executionProfileId": "flux3-klein:official-provider:v1", + "id": "flux3-klein:official-provider:v1:edit-image:v1", + "loaderAction": "ModelsLoader", + "loaderModule": "modules.ModularDiffusers", + "mode": "edit_image", + "modelType": "Flux3DistilledModularPipeline", + "pipelineClass": "Flux3DistilledModularPipeline", + "requiredDiffusersProvider": "huggingface-diffusers-flux3-7ecb1e1", + "roles": [ + ["models", "modules.ModularDiffusers.ModelsLoader", -720, -80], + ["prompt", "modules.ModularDiffusers.EncodePrompt", -360, -240], + ["denoise", "modules.ModularDiffusers.Denoise", 80, -80], + ["decode", "modules.ModularDiffusers.DecodeLatents", 440, -80], + ["preview", "modules.Image.Preview", 800, -80], + ["loadImage", "modules.Image.Load", -720, 320], + ["imageEncode", "modules.ModularDiffusers.ImageEncode", -360, 320] + ], + "schemaVersion": 1 + } + ], + "supportTier": "experimental", + "supportsControlImage": false, + "supportsGuidance": false, + "supportsImageInput": true, + "supportsLayers": false, + "supportsLora": true, + "supportsMask": false, + "supportsMultiImage": true, + "supportsNegativePrompt": false, + "taskTemplateContractModes": ["edit_image", "text_to_image"], + "taskTemplateContractSchemaVersion": 1, + "taskTemplateContracts": [ + { + "auxiliaryTerminalRoles": [], + "canonicalizationVersion": 1, + "contentHash": "task-template-v1-13be2c85", + "defaultRepo": "black-forest-labs/flux-3-image-klein", + "executionProfileId": "flux3-klein:official-provider:v1", + "executionSpecContentHash": "studio-spec-v1-9e30f38e", + "executionSpecId": "flux3-klein:official-provider:v1:edit-image:v1", + "galleryEligible": false, + "id": "task-template:flux3-klein:official-provider:v1:edit-image:v1", + "loaderAction": "ModelsLoader", + "loaderModule": "modules.ModularDiffusers", + "loaderRepositories": ["black-forest-labs/flux-3-image-klein"], + "loaderRole": "models", + "mediaKind": "image", + "mode": "edit_image", + "modelType": "Flux3DistilledModularPipeline", + "output": { + "inputHandle": "image", + "mediaKind": "image", + "nodeKey": "modules.Image.Preview", + "role": "preview" + }, + "pipelineClass": "Flux3DistilledModularPipeline", + "qualificationStatus": "runtime-required", + "requiredMedia": [{ "field": "referenceImages", "kind": "image", "minimumCount": 1 }], + "schemaVersion": 1 + }, + { + "auxiliaryTerminalRoles": [], + "canonicalizationVersion": 1, + "contentHash": "task-template-v1-f2116abe", + "defaultRepo": "black-forest-labs/flux-3-image-klein", + "executionProfileId": "flux3-klein:official-provider:v1", + "executionSpecContentHash": "studio-spec-v1-8411b4e0", + "executionSpecId": "flux3-klein:official-provider:v1:text-to-image:v1", + "galleryEligible": false, + "id": "task-template:flux3-klein:official-provider:v1:text-to-image:v1", + "loaderAction": "ModelsLoader", + "loaderModule": "modules.ModularDiffusers", + "loaderRepositories": ["black-forest-labs/flux-3-image-klein"], + "loaderRole": "models", + "mediaKind": "image", + "mode": "text_to_image", + "modelType": "Flux3DistilledModularPipeline", + "output": { + "inputHandle": "image", + "mediaKind": "image", + "nodeKey": "modules.Image.Preview", + "role": "preview" + }, + "pipelineClass": "Flux3DistilledModularPipeline", + "qualificationStatus": "runtime-required", + "requiredMedia": [], + "schemaVersion": 1 + } + ], + "templateEligible": false, + "weightFormatSelections": [ + { + "downloadFiles": [ + "LICENSE.md", + "NOTICE.md", + "modular_model_index.json", + "text_encoder/LICENSE", + "text_encoder/chat_template.json", + "text_encoder/config.json", + "text_encoder/generation_config.json", + "text_encoder/merges.txt", + "text_encoder/model-00001-of-00002.safetensors", + "text_encoder/model-00002-of-00002.safetensors", + "text_encoder/model.safetensors.index.json", + "text_encoder/preprocessor_config.json", + "text_encoder/tokenizer.json", + "text_encoder/tokenizer_config.json", + "text_encoder/video_preprocessor_config.json", + "text_encoder/vocab.json", + "transformer/config.json", + "vae/config.json", + "vae/diffusion_pytorch_model.safetensors", + "variants/fp8r/model.safetensors" + ], + "repo": "black-forest-labs/flux-3-image-klein", + "revision": "8454017f9ebaada30c998fccd9f67a80c7580f68", + "weightFormat": "fp8r" + }, + { + "downloadFiles": [ + "LICENSE.md", + "NOTICE.md", + "modular_model_index.json", + "text_encoder/LICENSE", + "text_encoder/chat_template.json", + "text_encoder/config.json", + "text_encoder/generation_config.json", + "text_encoder/merges.txt", + "text_encoder/model-00001-of-00002.safetensors", + "text_encoder/model-00002-of-00002.safetensors", + "text_encoder/model.safetensors.index.json", + "text_encoder/preprocessor_config.json", + "text_encoder/tokenizer.json", + "text_encoder/tokenizer_config.json", + "text_encoder/video_preprocessor_config.json", + "text_encoder/vocab.json", + "transformer/config.json", + "vae/config.json", + "vae/diffusion_pytorch_model.safetensors", + "variants/nvfp4/model.safetensors" + ], + "repo": "black-forest-labs/flux-3-image-klein", + "revision": "8454017f9ebaada30c998fccd9f67a80c7580f68", + "weightFormat": "nvfp4" + } + ] + } + ], + "operationContractSchemaVersion": 3, + "operationContracts": [ + { + "binding": { "pipelineClass": "Flux3DistilledModularPipeline", "values": {} }, + "blockName": "decode", + "decomposition": "block", + "nodeKey": "modules.ModularDiffusers.DecodeLatents", + "nodeType": "decoder", + "operationId": "diffusion.decode_latents", + "pipelineClass": "Flux3DistilledModularPipeline", + "ports": [ + { + "direction": "input", + "hidden": false, + "name": "latents", + "required": true, + "roles": ["value"], + "semanticName": "latents", + "semantics": { + "kind": "latents", + "members": [], + "owner": "same_loader", + "scope": "Flux3DistilledModularPipeline", + "state": null + }, + "types": ["latents"] + }, + { + "direction": "input", + "hidden": false, + "name": "vae", + "required": true, + "roles": ["component"], + "semanticName": "vae", + "semantics": { + "kind": "component", + "members": [], + "owner": "same_loader", + "scope": "Flux3DistilledModularPipeline", + "state": null + }, + "types": ["diffusers_auto_model"] + }, + { + "direction": "output", + "hidden": false, + "name": "images", + "required": false, + "roles": ["value"], + "semanticName": "images", + "semantics": { "kind": "media", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["image"] + }, + { + "direction": "output", + "hidden": false, + "name": "doc", + "required": false, + "roles": ["value"], + "semanticName": "doc", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + } + ], + "support": "declared", + "task": null, + "workflowId": null + }, + { + "binding": { "pipelineClass": "Flux3DistilledModularPipeline", "values": {} }, + "blockName": "denoise", + "decomposition": "block", + "nodeKey": "modules.ModularDiffusers.Denoise", + "nodeType": "denoise", + "operationId": "diffusion.denoise", + "pipelineClass": "Flux3DistilledModularPipeline", + "ports": [ + { + "direction": "input", + "hidden": false, + "name": "embeddings", + "required": true, + "roles": ["value"], + "semanticName": "embeddings", + "semantics": { + "kind": "conditioning", + "members": [], + "owner": "same_loader", + "scope": "Flux3DistilledModularPipeline", + "state": null + }, + "types": ["embeddings"] + }, + { + "direction": "input", + "hidden": false, + "name": "width", + "required": false, + "roles": ["value"], + "semanticName": "width", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["int"] + }, + { + "direction": "input", + "hidden": false, + "name": "height", + "required": false, + "roles": ["value"], + "semanticName": "height", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["int"] + }, + { + "direction": "input", + "hidden": false, + "name": "seed", + "required": false, + "roles": ["value"], + "semanticName": "seed", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["int"] + }, + { + "direction": "input", + "hidden": false, + "name": "num_inference_steps", + "required": false, + "roles": ["value"], + "semanticName": "num_inference_steps", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["int"] + }, + { + "direction": "input", + "hidden": false, + "name": "num_images_per_prompt", + "required": false, + "roles": ["value"], + "semanticName": "num_images_per_prompt", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["int"] + }, + { + "direction": "input", + "hidden": false, + "name": "image_cond_latents", + "required": false, + "roles": ["value"], + "semanticName": "image_cond_latents", + "semantics": { + "kind": "latents", + "members": [], + "owner": "same_loader", + "scope": "Flux3DistilledModularPipeline", + "state": null + }, + "types": ["latents"] + }, + { + "direction": "input", + "hidden": false, + "name": "unet", + "required": true, + "roles": ["component"], + "semanticName": "unet", + "semantics": { + "kind": "component", + "members": [], + "owner": "same_loader", + "scope": "Flux3DistilledModularPipeline", + "state": null + }, + "types": ["diffusers_auto_model"] + }, + { + "direction": "input", + "hidden": false, + "name": "scheduler", + "required": true, + "roles": ["component"], + "semanticName": "scheduler", + "semantics": { + "kind": "component", + "members": [], + "owner": "same_loader", + "scope": "Flux3DistilledModularPipeline", + "state": null + }, + "types": ["diffusers_auto_model"] + }, + { + "direction": "output", + "hidden": false, + "name": "latents", + "required": false, + "roles": ["value"], + "semanticName": "latents", + "semantics": { + "kind": "latents", + "members": [], + "owner": "same_loader", + "scope": "Flux3DistilledModularPipeline", + "state": null + }, + "types": ["latents"] + }, + { + "direction": "output", + "hidden": false, + "name": "doc", + "required": false, + "roles": ["value"], + "semanticName": "doc", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": false, + "name": "reference_binding", + "required": false, + "roles": ["value"], + "semanticName": "reference_binding", + "semantics": { + "kind": "opaque", + "members": [], + "owner": "none", + "scope": "Flux3DistilledModularPipeline", + "state": null + }, + "types": ["reference_conditioning"] + } + ], + "support": "declared", + "task": null, + "workflowId": null + }, + { + "binding": { "pipelineClass": "Flux3DistilledModularPipeline", "values": {} }, + "blockName": "vae_encoder", + "decomposition": "block", + "nodeKey": "modules.ModularDiffusers.ImageEncode", + "nodeType": "vae_encoder", + "operationId": "diffusion.encode_image", + "pipelineClass": "Flux3DistilledModularPipeline", + "ports": [ + { + "direction": "input", + "hidden": false, + "name": "image", + "required": true, + "roles": ["value"], + "semanticName": "image", + "semantics": { "kind": "media", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["image"] + }, + { + "direction": "input", + "hidden": false, + "name": "vae", + "required": true, + "roles": ["component"], + "semanticName": "vae", + "semantics": { + "kind": "component", + "members": [], + "owner": "same_loader", + "scope": "Flux3DistilledModularPipeline", + "state": null + }, + "types": ["diffusers_auto_model"] + }, + { + "direction": "output", + "hidden": false, + "name": "image_cond_latents", + "required": false, + "roles": ["value"], + "semanticName": "image_cond_latents", + "semantics": { + "kind": "latents", + "members": [], + "owner": "same_loader", + "scope": "Flux3DistilledModularPipeline", + "state": null + }, + "types": ["latents"] + }, + { + "direction": "output", + "hidden": false, + "name": "reference_binding", + "required": false, + "roles": ["value"], + "semanticName": "reference_binding", + "semantics": { + "kind": "opaque", + "members": [], + "owner": "none", + "scope": "Flux3DistilledModularPipeline", + "state": null + }, + "types": ["reference_conditioning"] + }, + { + "direction": "output", + "hidden": false, + "name": "doc", + "required": false, + "roles": ["value"], + "semanticName": "doc", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + } + ], + "support": "declared", + "task": null, + "workflowId": null + }, + { + "binding": { "pipelineClass": "Flux3DistilledModularPipeline", "values": {} }, + "blockName": "text_encoder", + "decomposition": "block", + "nodeKey": "modules.ModularDiffusers.EncodePrompt", + "nodeType": "text_encoder", + "operationId": "diffusion.encode_prompt", + "pipelineClass": "Flux3DistilledModularPipeline", + "ports": [ + { + "direction": "input", + "hidden": false, + "name": "prompt", + "required": true, + "roles": ["value"], + "semanticName": "prompt", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": false, + "name": "max_sequence_length", + "required": false, + "roles": ["value"], + "semanticName": "max_sequence_length", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["int"] + }, + { + "direction": "input", + "hidden": false, + "name": "text_encoder_out_layers", + "required": false, + "roles": ["value"], + "semanticName": "text_encoder_out_layers", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["int"] + }, + { + "direction": "input", + "hidden": false, + "name": "text_encoders", + "required": true, + "roles": ["component"], + "semanticName": "text_encoders", + "semantics": { + "kind": "component", + "members": [], + "owner": "same_loader", + "scope": "Flux3DistilledModularPipeline", + "state": null + }, + "types": ["diffusers_auto_models"] + }, + { + "direction": "output", + "hidden": false, + "name": "embeddings", + "required": false, + "roles": ["value"], + "semanticName": "embeddings", + "semantics": { + "kind": "conditioning", + "members": [], + "owner": "same_loader", + "scope": "Flux3DistilledModularPipeline", + "state": null + }, + "types": ["embeddings"] + }, + { + "direction": "output", + "hidden": false, + "name": "doc", + "required": false, + "roles": ["value"], + "semanticName": "doc", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": false, + "name": "layout_conditioning", + "required": false, + "roles": ["value"], + "semanticName": "layout_conditioning", + "semantics": { + "kind": "opaque", + "members": [], + "owner": "none", + "scope": "Flux3DistilledModularPipeline", + "state": null + }, + "types": ["layout_conditioning"] + }, + { + "direction": "input", + "hidden": false, + "name": "reference_binding", + "required": false, + "roles": ["value"], + "semanticName": "reference_binding", + "semantics": { + "kind": "opaque", + "members": [], + "owner": "none", + "scope": "Flux3DistilledModularPipeline", + "state": null + }, + "types": ["reference_conditioning"] + }, + { + "direction": "input", + "hidden": false, + "name": "prompt_input", + "required": false, + "roles": ["value"], + "semanticName": "prompt", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + } + ], + "support": "declared", + "task": null, + "workflowId": null + }, + { + "binding": { "pipelineClass": "Flux3DistilledModularPipeline", "values": {} }, + "blockName": "decode", + "decomposition": "block", + "nodeKey": "modules.ModularDiffusers.DecodeLatents", + "nodeType": "decoder", + "operationId": "diffusion.decode_latents", + "pipelineClass": "Flux3DistilledModularPipeline", + "ports": [ + { + "direction": "input", + "hidden": false, + "name": "latents", + "required": true, + "roles": ["value"], + "semanticName": "latents", + "semantics": { + "kind": "latents", + "members": [], + "owner": "same_loader", + "scope": "Flux3DistilledModularPipeline", + "state": null + }, + "types": ["latents"] + }, + { + "direction": "input", + "hidden": false, + "name": "vae", + "required": true, + "roles": ["component"], + "semanticName": "vae", + "semantics": { + "kind": "component", + "members": [ + { "name": "vae", "type": "diffusers.models.autoencoders.autoencoder_kl_flux2.AutoencoderKLFlux2" } + ], + "owner": "same_loader", + "scope": "Flux3DistilledModularPipeline", + "state": null + }, + "types": ["diffusers_auto_model"] + }, + { + "direction": "output", + "hidden": false, + "name": "images", + "required": false, + "roles": ["value"], + "semanticName": "images", + "semantics": { "kind": "media", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["image"] + }, + { + "direction": "output", + "hidden": false, + "name": "doc", + "required": false, + "roles": ["value"], + "semanticName": "doc", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + } + ], + "support": "declared", + "task": "edit_image", + "workflowId": "image_conditioned" + }, + { + "binding": { "pipelineClass": "Flux3DistilledModularPipeline", "values": {} }, + "blockName": "denoise", + "decomposition": "block", + "nodeKey": "modules.ModularDiffusers.Denoise", + "nodeType": "denoise", + "operationId": "diffusion.denoise", + "pipelineClass": "Flux3DistilledModularPipeline", + "ports": [ + { + "direction": "input", + "hidden": false, + "name": "embeddings", + "required": true, + "roles": ["value"], + "semanticName": "embeddings", + "semantics": { + "kind": "conditioning", + "members": [], + "owner": "same_loader", + "scope": "Flux3DistilledModularPipeline", + "state": null + }, + "types": ["embeddings"] + }, + { + "direction": "input", + "hidden": false, + "name": "width", + "required": false, + "roles": ["value"], + "semanticName": "width", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["int"] + }, + { + "direction": "input", + "hidden": false, + "name": "height", + "required": false, + "roles": ["value"], + "semanticName": "height", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["int"] + }, + { + "direction": "input", + "hidden": false, + "name": "seed", + "required": false, + "roles": ["value"], + "semanticName": "seed", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["int"] + }, + { + "direction": "input", + "hidden": false, + "name": "num_inference_steps", + "required": false, + "roles": ["value"], + "semanticName": "num_inference_steps", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["int"] + }, + { + "direction": "input", + "hidden": false, + "name": "num_images_per_prompt", + "required": false, + "roles": ["value"], + "semanticName": "num_images_per_prompt", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["int"] + }, + { + "direction": "input", + "hidden": false, + "name": "image_cond_latents", + "required": false, + "roles": ["value"], + "semanticName": "image_cond_latents", + "semantics": { + "kind": "latents", + "members": [], + "owner": "same_loader", + "scope": "Flux3DistilledModularPipeline", + "state": null + }, + "types": ["latents"] + }, + { + "direction": "input", + "hidden": false, + "name": "unet", + "required": true, + "roles": ["component"], + "semanticName": "unet", + "semantics": { + "kind": "component", + "members": [ + { + "name": "transformer", + "type": "diffusers.models.transformers.transformer_flux3.Flux3Transformer2DModel" + } + ], + "owner": "same_loader", + "scope": "Flux3DistilledModularPipeline", + "state": null + }, + "types": ["diffusers_auto_model"] + }, + { + "direction": "input", + "hidden": false, + "name": "scheduler", + "required": true, + "roles": ["component"], + "semanticName": "scheduler", + "semantics": { + "kind": "component", + "members": [ + { + "name": "scheduler", + "type": "diffusers.schedulers.scheduling_flow_match_euler_discrete.FlowMatchEulerDiscreteScheduler" + } + ], + "owner": "same_loader", + "scope": "Flux3DistilledModularPipeline", + "state": null + }, + "types": ["diffusers_auto_model"] + }, + { + "direction": "output", + "hidden": false, + "name": "latents", + "required": false, + "roles": ["value"], + "semanticName": "latents", + "semantics": { + "kind": "latents", + "members": [], + "owner": "same_loader", + "scope": "Flux3DistilledModularPipeline", + "state": null + }, + "types": ["latents"] + }, + { + "direction": "output", + "hidden": false, + "name": "doc", + "required": false, + "roles": ["value"], + "semanticName": "doc", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": false, + "name": "reference_binding", + "required": false, + "roles": ["value"], + "semanticName": "reference_binding", + "semantics": { + "kind": "opaque", + "members": [], + "owner": "none", + "scope": "Flux3DistilledModularPipeline", + "state": null + }, + "types": ["reference_conditioning"] + } + ], + "support": "declared", + "task": "edit_image", + "workflowId": "image_conditioned" + }, + { + "binding": { "pipelineClass": "Flux3DistilledModularPipeline", "values": {} }, + "blockName": "vae_encoder", + "decomposition": "block", + "nodeKey": "modules.ModularDiffusers.ImageEncode", + "nodeType": "vae_encoder", + "operationId": "diffusion.encode_image", + "pipelineClass": "Flux3DistilledModularPipeline", + "ports": [ + { + "direction": "input", + "hidden": false, + "name": "image", + "required": true, + "roles": ["value"], + "semanticName": "image", + "semantics": { "kind": "media", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["image"] + }, + { + "direction": "input", + "hidden": false, + "name": "vae", + "required": true, + "roles": ["component"], + "semanticName": "vae", + "semantics": { + "kind": "component", + "members": [ + { "name": "vae", "type": "diffusers.models.autoencoders.autoencoder_kl_flux2.AutoencoderKLFlux2" } + ], + "owner": "same_loader", + "scope": "Flux3DistilledModularPipeline", + "state": null + }, + "types": ["diffusers_auto_model"] + }, + { + "direction": "output", + "hidden": false, + "name": "image_cond_latents", + "required": false, + "roles": ["value"], + "semanticName": "image_cond_latents", + "semantics": { + "kind": "latents", + "members": [], + "owner": "same_loader", + "scope": "Flux3DistilledModularPipeline", + "state": null + }, + "types": ["latents"] + }, + { + "direction": "output", + "hidden": false, + "name": "reference_binding", + "required": false, + "roles": ["value"], + "semanticName": "reference_binding", + "semantics": { + "kind": "opaque", + "members": [], + "owner": "none", + "scope": "Flux3DistilledModularPipeline", + "state": null + }, + "types": ["reference_conditioning"] + }, + { + "direction": "output", + "hidden": false, + "name": "doc", + "required": false, + "roles": ["value"], + "semanticName": "doc", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + } + ], + "support": "declared", + "task": "edit_image", + "workflowId": "image_conditioned" + }, + { + "binding": { "pipelineClass": "Flux3DistilledModularPipeline", "values": {} }, + "blockName": "text_encoder", + "decomposition": "block", + "nodeKey": "modules.ModularDiffusers.EncodePrompt", + "nodeType": "text_encoder", + "operationId": "diffusion.encode_prompt", + "pipelineClass": "Flux3DistilledModularPipeline", + "ports": [ + { + "direction": "input", + "hidden": false, + "name": "prompt", + "required": true, + "roles": ["value"], + "semanticName": "prompt", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": false, + "name": "max_sequence_length", + "required": false, + "roles": ["value"], + "semanticName": "max_sequence_length", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["int"] + }, + { + "direction": "input", + "hidden": false, + "name": "text_encoder_out_layers", + "required": false, + "roles": ["value"], + "semanticName": "text_encoder_out_layers", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["int"] + }, + { + "direction": "input", + "hidden": false, + "name": "text_encoders", + "required": true, + "roles": ["component"], + "semanticName": "text_encoders", + "semantics": { + "kind": "component", + "members": [ + { + "name": "text_encoder", + "type": "transformers.models.qwen3_vl.modeling_qwen3_vl.Qwen3VLForConditionalGeneration" + }, + { "name": "tokenizer", "type": "transformers.models.auto.processing_auto.AutoProcessor" } + ], + "owner": "same_loader", + "scope": "Flux3DistilledModularPipeline", + "state": null + }, + "types": ["diffusers_auto_models"] + }, + { + "direction": "output", + "hidden": false, + "name": "embeddings", + "required": false, + "roles": ["value"], + "semanticName": "embeddings", + "semantics": { + "kind": "conditioning", + "members": [], + "owner": "same_loader", + "scope": "Flux3DistilledModularPipeline", + "state": null + }, + "types": ["embeddings"] + }, + { + "direction": "output", + "hidden": false, + "name": "doc", + "required": false, + "roles": ["value"], + "semanticName": "doc", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": false, + "name": "layout_conditioning", + "required": false, + "roles": ["value"], + "semanticName": "layout_conditioning", + "semantics": { + "kind": "opaque", + "members": [], + "owner": "none", + "scope": "Flux3DistilledModularPipeline", + "state": null + }, + "types": ["layout_conditioning"] + }, + { + "direction": "input", + "hidden": false, + "name": "reference_binding", + "required": false, + "roles": ["value"], + "semanticName": "reference_binding", + "semantics": { + "kind": "opaque", + "members": [], + "owner": "none", + "scope": "Flux3DistilledModularPipeline", + "state": null + }, + "types": ["reference_conditioning"] + }, + { + "direction": "input", + "hidden": false, + "name": "prompt_input", + "required": false, + "roles": ["value"], + "semanticName": "prompt", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + } + ], + "support": "declared", + "task": "edit_image", + "workflowId": "image_conditioned" + }, + { + "binding": { + "pipelineClass": "Flux3DistilledModularPipeline", + "values": { "model_type": "Flux3DistilledModularPipeline" } + }, + "blockName": null, + "decomposition": "loader", + "nodeKey": "modules.ModularDiffusers.ModelsLoader", + "nodeType": "loader", + "operationId": "diffusion.load_models", + "pipelineClass": "Flux3DistilledModularPipeline", + "ports": [ + { + "direction": "input", + "hidden": false, + "name": "model_type", + "required": false, + "roles": ["value"], + "semanticName": "model_type", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": false, + "name": "repo_id", + "required": false, + "roles": ["value"], + "semanticName": "repo_id", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": true, + "name": "reviewed_variant", + "required": false, + "roles": ["value"], + "semanticName": "reviewed_variant", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": false, + "name": "device", + "required": false, + "roles": ["value"], + "semanticName": "device", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": false, + "name": "attention_backend", + "required": false, + "roles": ["value"], + "semanticName": "attention_backend", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": true, + "name": "vae_slicing", + "required": false, + "roles": ["value"], + "semanticName": "vae_slicing", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["boolean"] + }, + { + "direction": "input", + "hidden": true, + "name": "vae_tiling", + "required": false, + "roles": ["value"], + "semanticName": "vae_tiling", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["boolean"] + }, + { + "direction": "input", + "hidden": true, + "name": "inpaint_compatibility", + "required": false, + "roles": ["value"], + "semanticName": "inpaint_compatibility", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": false, + "name": "trust_remote_code", + "required": false, + "roles": ["value"], + "semanticName": "trust_remote_code", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["boolean"] + }, + { + "direction": "input", + "hidden": false, + "name": "revision", + "required": false, + "roles": ["value"], + "semanticName": "revision", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": true, + "name": "workflow_id", + "required": false, + "roles": ["value"], + "semanticName": "workflow_id", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": true, + "name": "modiff_pipeline_identity", + "required": false, + "roles": ["value"], + "semanticName": "modiff_pipeline_identity", + "semantics": { + "kind": "opaque", + "members": [], + "owner": "none", + "scope": "Flux3DistilledModularPipeline", + "state": null + }, + "types": ["object"] + }, + { + "direction": "input", + "hidden": false, + "name": "auto_offload", + "required": false, + "roles": ["value"], + "semanticName": "auto_offload", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["boolean"] + }, + { + "direction": "input", + "hidden": false, + "name": "offload_mode", + "required": false, + "roles": ["value"], + "semanticName": "offload_mode", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": false, + "name": "weight_loading_mode", + "required": false, + "roles": ["value"], + "semanticName": "weight_loading_mode", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": true, + "name": "weight_format", + "required": false, + "roles": ["value"], + "semanticName": "weight_format", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": false, + "name": "unet", + "required": false, + "roles": ["component"], + "semanticName": "unet", + "semantics": { + "kind": "component", + "members": [ + { + "name": "transformer", + "type": "diffusers.models.transformers.transformer_flux3.Flux3Transformer2DModel" + } + ], + "owner": "same_loader", + "scope": "Flux3DistilledModularPipeline", + "state": null + }, + "types": ["diffusers_auto_model"] + }, + { + "direction": "input", + "hidden": false, + "name": "vae", + "required": false, + "roles": ["component"], + "semanticName": "vae", + "semantics": { + "kind": "component", + "members": [ + { "name": "vae", "type": "diffusers.models.autoencoders.autoencoder_kl_flux2.AutoencoderKLFlux2" } + ], + "owner": "same_loader", + "scope": "Flux3DistilledModularPipeline", + "state": null + }, + "types": ["diffusers_auto_model"] + }, + { + "direction": "input", + "hidden": true, + "name": "controlnet", + "required": false, + "roles": ["component"], + "semanticName": "controlnet", + "semantics": { + "kind": "component", + "members": [], + "owner": "same_loader", + "scope": "Flux3DistilledModularPipeline", + "state": null + }, + "types": ["diffusers_auto_model"] + }, + { + "direction": "input", + "hidden": false, + "name": "lora_list", + "required": false, + "roles": ["value"], + "semanticName": "lora_list", + "semantics": { + "kind": "opaque", + "members": [], + "owner": "none", + "scope": "Flux3DistilledModularPipeline", + "state": null + }, + "types": ["custom_lora"] + }, + { + "direction": "output", + "hidden": false, + "name": "text_encoders", + "required": false, + "roles": ["component"], + "semanticName": "text_encoders", + "semantics": { + "kind": "component", + "members": [ + { + "name": "text_encoder", + "type": "transformers.models.qwen3_vl.modeling_qwen3_vl.Qwen3VLForConditionalGeneration" + }, + { "name": "tokenizer", "type": "transformers.models.auto.processing_auto.AutoProcessor" } + ], + "owner": "same_loader", + "scope": "Flux3DistilledModularPipeline", + "state": null + }, + "types": ["diffusers_auto_models"] + }, + { + "direction": "output", + "hidden": false, + "name": "unet_out", + "required": false, + "roles": ["component"], + "semanticName": "unet_out", + "semantics": { + "kind": "component", + "members": [ + { + "name": "transformer", + "type": "diffusers.models.transformers.transformer_flux3.Flux3Transformer2DModel" + } + ], + "owner": "same_loader", + "scope": "Flux3DistilledModularPipeline", + "state": null + }, + "types": ["diffusers_auto_model"] + }, + { + "direction": "output", + "hidden": false, + "name": "vae_out", + "required": false, + "roles": ["component"], + "semanticName": "vae_out", + "semantics": { + "kind": "component", + "members": [ + { "name": "vae", "type": "diffusers.models.autoencoders.autoencoder_kl_flux2.AutoencoderKLFlux2" } + ], + "owner": "same_loader", + "scope": "Flux3DistilledModularPipeline", + "state": null + }, + "types": ["diffusers_auto_model"] + }, + { + "direction": "output", + "hidden": false, + "name": "scheduler", + "required": false, + "roles": ["component"], + "semanticName": "scheduler", + "semantics": { + "kind": "component", + "members": [ + { + "name": "scheduler", + "type": "diffusers.schedulers.scheduling_flow_match_euler_discrete.FlowMatchEulerDiscreteScheduler" + } + ], + "owner": "same_loader", + "scope": "Flux3DistilledModularPipeline", + "state": null + }, + "types": ["diffusers_auto_model"] + }, + { + "direction": "output", + "hidden": true, + "name": "image_encoder", + "required": false, + "roles": ["component"], + "semanticName": "image_encoder", + "semantics": { + "kind": "component", + "members": [], + "owner": "same_loader", + "scope": "Flux3DistilledModularPipeline", + "state": null + }, + "types": ["diffusers_auto_model"] + }, + { + "direction": "output", + "hidden": false, + "name": "pipeline_components", + "required": false, + "roles": ["component"], + "semanticName": "pipeline_components", + "semantics": { + "kind": "component", + "members": [ + { + "name": "image_processor", + "type": "diffusers.modular_pipelines.flux3.image_processor.Flux3ImageProcessor" + }, + { + "name": "scheduler", + "type": "diffusers.schedulers.scheduling_flow_match_euler_discrete.FlowMatchEulerDiscreteScheduler" + }, + { + "name": "text_encoder", + "type": "transformers.models.qwen3_vl.modeling_qwen3_vl.Qwen3VLForConditionalGeneration" + }, + { "name": "tokenizer", "type": "transformers.models.auto.processing_auto.AutoProcessor" }, + { + "name": "transformer", + "type": "diffusers.models.transformers.transformer_flux3.Flux3Transformer2DModel" + }, + { "name": "vae", "type": "diffusers.models.autoencoders.autoencoder_kl_flux2.AutoencoderKLFlux2" } + ], + "owner": "same_loader", + "scope": "Flux3DistilledModularPipeline", + "state": null + }, + "types": ["diffusers_modular_pipeline_components"] + }, + { + "direction": "input", + "hidden": false, + "name": "quant_config", + "required": false, + "roles": ["value"], + "semanticName": "quant_config", + "semantics": { + "kind": "opaque", + "members": [], + "owner": "none", + "scope": "Flux3DistilledModularPipeline", + "state": null + }, + "types": ["quant_config"] + } + ], + "support": "declared", + "task": "edit_image", + "workflowId": "image_conditioned" + }, + { + "binding": { "pipelineClass": "Flux3DistilledModularPipeline", "values": {} }, + "blockName": "decode", + "decomposition": "block", + "nodeKey": "modules.ModularDiffusers.DecodeLatents", + "nodeType": "decoder", + "operationId": "diffusion.decode_latents", + "pipelineClass": "Flux3DistilledModularPipeline", + "ports": [ + { + "direction": "input", + "hidden": false, + "name": "latents", + "required": true, + "roles": ["value"], + "semanticName": "latents", + "semantics": { + "kind": "latents", + "members": [], + "owner": "same_loader", + "scope": "Flux3DistilledModularPipeline", + "state": null + }, + "types": ["latents"] + }, + { + "direction": "input", + "hidden": false, + "name": "vae", + "required": true, + "roles": ["component"], + "semanticName": "vae", + "semantics": { + "kind": "component", + "members": [ + { "name": "vae", "type": "diffusers.models.autoencoders.autoencoder_kl_flux2.AutoencoderKLFlux2" } + ], + "owner": "same_loader", + "scope": "Flux3DistilledModularPipeline", + "state": null + }, + "types": ["diffusers_auto_model"] + }, + { + "direction": "output", + "hidden": false, + "name": "images", + "required": false, + "roles": ["value"], + "semanticName": "images", + "semantics": { "kind": "media", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["image"] + }, + { + "direction": "output", + "hidden": false, + "name": "doc", + "required": false, + "roles": ["value"], + "semanticName": "doc", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + } + ], + "support": "declared", + "task": "text_to_image", + "workflowId": "text2image" + }, + { + "binding": { "pipelineClass": "Flux3DistilledModularPipeline", "values": {} }, + "blockName": "denoise", + "decomposition": "block", + "nodeKey": "modules.ModularDiffusers.Denoise", + "nodeType": "denoise", + "operationId": "diffusion.denoise", + "pipelineClass": "Flux3DistilledModularPipeline", + "ports": [ + { + "direction": "input", + "hidden": false, + "name": "embeddings", + "required": true, + "roles": ["value"], + "semanticName": "embeddings", + "semantics": { + "kind": "conditioning", + "members": [], + "owner": "same_loader", + "scope": "Flux3DistilledModularPipeline", + "state": null + }, + "types": ["embeddings"] + }, + { + "direction": "input", + "hidden": false, + "name": "width", + "required": false, + "roles": ["value"], + "semanticName": "width", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["int"] + }, + { + "direction": "input", + "hidden": false, + "name": "height", + "required": false, + "roles": ["value"], + "semanticName": "height", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["int"] + }, + { + "direction": "input", + "hidden": false, + "name": "seed", + "required": false, + "roles": ["value"], + "semanticName": "seed", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["int"] + }, + { + "direction": "input", + "hidden": false, + "name": "num_inference_steps", + "required": false, + "roles": ["value"], + "semanticName": "num_inference_steps", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["int"] + }, + { + "direction": "input", + "hidden": false, + "name": "num_images_per_prompt", + "required": false, + "roles": ["value"], + "semanticName": "num_images_per_prompt", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["int"] + }, + { + "direction": "input", + "hidden": false, + "name": "image_cond_latents", + "required": false, + "roles": ["value"], + "semanticName": "image_cond_latents", + "semantics": { + "kind": "latents", + "members": [], + "owner": "same_loader", + "scope": "Flux3DistilledModularPipeline", + "state": null + }, + "types": ["latents"] + }, + { + "direction": "input", + "hidden": false, + "name": "unet", + "required": true, + "roles": ["component"], + "semanticName": "unet", + "semantics": { + "kind": "component", + "members": [ + { + "name": "transformer", + "type": "diffusers.models.transformers.transformer_flux3.Flux3Transformer2DModel" + } + ], + "owner": "same_loader", + "scope": "Flux3DistilledModularPipeline", + "state": null + }, + "types": ["diffusers_auto_model"] + }, + { + "direction": "input", + "hidden": false, + "name": "scheduler", + "required": true, + "roles": ["component"], + "semanticName": "scheduler", + "semantics": { + "kind": "component", + "members": [ + { + "name": "scheduler", + "type": "diffusers.schedulers.scheduling_flow_match_euler_discrete.FlowMatchEulerDiscreteScheduler" + } + ], + "owner": "same_loader", + "scope": "Flux3DistilledModularPipeline", + "state": null + }, + "types": ["diffusers_auto_model"] + }, + { + "direction": "output", + "hidden": false, + "name": "latents", + "required": false, + "roles": ["value"], + "semanticName": "latents", + "semantics": { + "kind": "latents", + "members": [], + "owner": "same_loader", + "scope": "Flux3DistilledModularPipeline", + "state": null + }, + "types": ["latents"] + }, + { + "direction": "output", + "hidden": false, + "name": "doc", + "required": false, + "roles": ["value"], + "semanticName": "doc", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": false, + "name": "reference_binding", + "required": false, + "roles": ["value"], + "semanticName": "reference_binding", + "semantics": { + "kind": "opaque", + "members": [], + "owner": "none", + "scope": "Flux3DistilledModularPipeline", + "state": null + }, + "types": ["reference_conditioning"] + } + ], + "support": "declared", + "task": "text_to_image", + "workflowId": "text2image" + }, + { + "binding": { "pipelineClass": "Flux3DistilledModularPipeline", "values": {} }, + "blockName": "text_encoder", + "decomposition": "block", + "nodeKey": "modules.ModularDiffusers.EncodePrompt", + "nodeType": "text_encoder", + "operationId": "diffusion.encode_prompt", + "pipelineClass": "Flux3DistilledModularPipeline", + "ports": [ + { + "direction": "input", + "hidden": false, + "name": "prompt", + "required": true, + "roles": ["value"], + "semanticName": "prompt", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": false, + "name": "max_sequence_length", + "required": false, + "roles": ["value"], + "semanticName": "max_sequence_length", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["int"] + }, + { + "direction": "input", + "hidden": false, + "name": "text_encoder_out_layers", + "required": false, + "roles": ["value"], + "semanticName": "text_encoder_out_layers", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["int"] + }, + { + "direction": "input", + "hidden": false, + "name": "text_encoders", + "required": true, + "roles": ["component"], + "semanticName": "text_encoders", + "semantics": { + "kind": "component", + "members": [ + { + "name": "text_encoder", + "type": "transformers.models.qwen3_vl.modeling_qwen3_vl.Qwen3VLForConditionalGeneration" + }, + { "name": "tokenizer", "type": "transformers.models.auto.processing_auto.AutoProcessor" } + ], + "owner": "same_loader", + "scope": "Flux3DistilledModularPipeline", + "state": null + }, + "types": ["diffusers_auto_models"] + }, + { + "direction": "output", + "hidden": false, + "name": "embeddings", + "required": false, + "roles": ["value"], + "semanticName": "embeddings", + "semantics": { + "kind": "conditioning", + "members": [], + "owner": "same_loader", + "scope": "Flux3DistilledModularPipeline", + "state": null + }, + "types": ["embeddings"] + }, + { + "direction": "output", + "hidden": false, + "name": "doc", + "required": false, + "roles": ["value"], + "semanticName": "doc", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": false, + "name": "layout_conditioning", + "required": false, + "roles": ["value"], + "semanticName": "layout_conditioning", + "semantics": { + "kind": "opaque", + "members": [], + "owner": "none", + "scope": "Flux3DistilledModularPipeline", + "state": null + }, + "types": ["layout_conditioning"] + }, + { + "direction": "input", + "hidden": false, + "name": "reference_binding", + "required": false, + "roles": ["value"], + "semanticName": "reference_binding", + "semantics": { + "kind": "opaque", + "members": [], + "owner": "none", + "scope": "Flux3DistilledModularPipeline", + "state": null + }, + "types": ["reference_conditioning"] + }, + { + "direction": "input", + "hidden": false, + "name": "prompt_input", + "required": false, + "roles": ["value"], + "semanticName": "prompt", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + } + ], + "support": "declared", + "task": "text_to_image", + "workflowId": "text2image" + }, + { + "binding": { + "pipelineClass": "Flux3DistilledModularPipeline", + "values": { "model_type": "Flux3DistilledModularPipeline" } + }, + "blockName": null, + "decomposition": "loader", + "nodeKey": "modules.ModularDiffusers.ModelsLoader", + "nodeType": "loader", + "operationId": "diffusion.load_models", + "pipelineClass": "Flux3DistilledModularPipeline", + "ports": [ + { + "direction": "input", + "hidden": false, + "name": "model_type", + "required": false, + "roles": ["value"], + "semanticName": "model_type", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": false, + "name": "repo_id", + "required": false, + "roles": ["value"], + "semanticName": "repo_id", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": true, + "name": "reviewed_variant", + "required": false, + "roles": ["value"], + "semanticName": "reviewed_variant", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": false, + "name": "device", + "required": false, + "roles": ["value"], + "semanticName": "device", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": false, + "name": "attention_backend", + "required": false, + "roles": ["value"], + "semanticName": "attention_backend", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": true, + "name": "vae_slicing", + "required": false, + "roles": ["value"], + "semanticName": "vae_slicing", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["boolean"] + }, + { + "direction": "input", + "hidden": true, + "name": "vae_tiling", + "required": false, + "roles": ["value"], + "semanticName": "vae_tiling", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["boolean"] + }, + { + "direction": "input", + "hidden": true, + "name": "inpaint_compatibility", + "required": false, + "roles": ["value"], + "semanticName": "inpaint_compatibility", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": false, + "name": "trust_remote_code", + "required": false, + "roles": ["value"], + "semanticName": "trust_remote_code", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["boolean"] + }, + { + "direction": "input", + "hidden": false, + "name": "revision", + "required": false, + "roles": ["value"], + "semanticName": "revision", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": true, + "name": "workflow_id", + "required": false, + "roles": ["value"], + "semanticName": "workflow_id", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": true, + "name": "modiff_pipeline_identity", + "required": false, + "roles": ["value"], + "semanticName": "modiff_pipeline_identity", + "semantics": { + "kind": "opaque", + "members": [], + "owner": "none", + "scope": "Flux3DistilledModularPipeline", + "state": null + }, + "types": ["object"] + }, + { + "direction": "input", + "hidden": false, + "name": "auto_offload", + "required": false, + "roles": ["value"], + "semanticName": "auto_offload", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["boolean"] + }, + { + "direction": "input", + "hidden": false, + "name": "offload_mode", + "required": false, + "roles": ["value"], + "semanticName": "offload_mode", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": false, + "name": "weight_loading_mode", + "required": false, + "roles": ["value"], + "semanticName": "weight_loading_mode", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": true, + "name": "weight_format", + "required": false, + "roles": ["value"], + "semanticName": "weight_format", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": false, + "name": "unet", + "required": false, + "roles": ["component"], + "semanticName": "unet", + "semantics": { + "kind": "component", + "members": [ + { + "name": "transformer", + "type": "diffusers.models.transformers.transformer_flux3.Flux3Transformer2DModel" + } + ], + "owner": "same_loader", + "scope": "Flux3DistilledModularPipeline", + "state": null + }, + "types": ["diffusers_auto_model"] + }, + { + "direction": "input", + "hidden": false, + "name": "vae", + "required": false, + "roles": ["component"], + "semanticName": "vae", + "semantics": { + "kind": "component", + "members": [ + { "name": "vae", "type": "diffusers.models.autoencoders.autoencoder_kl_flux2.AutoencoderKLFlux2" } + ], + "owner": "same_loader", + "scope": "Flux3DistilledModularPipeline", + "state": null + }, + "types": ["diffusers_auto_model"] + }, + { + "direction": "input", + "hidden": true, + "name": "controlnet", + "required": false, + "roles": ["component"], + "semanticName": "controlnet", + "semantics": { + "kind": "component", + "members": [], + "owner": "same_loader", + "scope": "Flux3DistilledModularPipeline", + "state": null + }, + "types": ["diffusers_auto_model"] + }, + { + "direction": "input", + "hidden": false, + "name": "lora_list", + "required": false, + "roles": ["value"], + "semanticName": "lora_list", + "semantics": { + "kind": "opaque", + "members": [], + "owner": "none", + "scope": "Flux3DistilledModularPipeline", + "state": null + }, + "types": ["custom_lora"] + }, + { + "direction": "output", + "hidden": false, + "name": "text_encoders", + "required": false, + "roles": ["component"], + "semanticName": "text_encoders", + "semantics": { + "kind": "component", + "members": [ + { + "name": "text_encoder", + "type": "transformers.models.qwen3_vl.modeling_qwen3_vl.Qwen3VLForConditionalGeneration" + }, + { "name": "tokenizer", "type": "transformers.models.auto.processing_auto.AutoProcessor" } + ], + "owner": "same_loader", + "scope": "Flux3DistilledModularPipeline", + "state": null + }, + "types": ["diffusers_auto_models"] + }, + { + "direction": "output", + "hidden": false, + "name": "unet_out", + "required": false, + "roles": ["component"], + "semanticName": "unet_out", + "semantics": { + "kind": "component", + "members": [ + { + "name": "transformer", + "type": "diffusers.models.transformers.transformer_flux3.Flux3Transformer2DModel" + } + ], + "owner": "same_loader", + "scope": "Flux3DistilledModularPipeline", + "state": null + }, + "types": ["diffusers_auto_model"] + }, + { + "direction": "output", + "hidden": false, + "name": "vae_out", + "required": false, + "roles": ["component"], + "semanticName": "vae_out", + "semantics": { + "kind": "component", + "members": [ + { "name": "vae", "type": "diffusers.models.autoencoders.autoencoder_kl_flux2.AutoencoderKLFlux2" } + ], + "owner": "same_loader", + "scope": "Flux3DistilledModularPipeline", + "state": null + }, + "types": ["diffusers_auto_model"] + }, + { + "direction": "output", + "hidden": false, + "name": "scheduler", + "required": false, + "roles": ["component"], + "semanticName": "scheduler", + "semantics": { + "kind": "component", + "members": [ + { + "name": "scheduler", + "type": "diffusers.schedulers.scheduling_flow_match_euler_discrete.FlowMatchEulerDiscreteScheduler" + } + ], + "owner": "same_loader", + "scope": "Flux3DistilledModularPipeline", + "state": null + }, + "types": ["diffusers_auto_model"] + }, + { + "direction": "output", + "hidden": true, + "name": "image_encoder", + "required": false, + "roles": ["component"], + "semanticName": "image_encoder", + "semantics": { + "kind": "component", + "members": [], + "owner": "same_loader", + "scope": "Flux3DistilledModularPipeline", + "state": null + }, + "types": ["diffusers_auto_model"] + }, + { + "direction": "output", + "hidden": false, + "name": "pipeline_components", + "required": false, + "roles": ["component"], + "semanticName": "pipeline_components", + "semantics": { + "kind": "component", + "members": [ + { + "name": "image_processor", + "type": "diffusers.modular_pipelines.flux3.image_processor.Flux3ImageProcessor" + }, + { + "name": "scheduler", + "type": "diffusers.schedulers.scheduling_flow_match_euler_discrete.FlowMatchEulerDiscreteScheduler" + }, + { + "name": "text_encoder", + "type": "transformers.models.qwen3_vl.modeling_qwen3_vl.Qwen3VLForConditionalGeneration" + }, + { "name": "tokenizer", "type": "transformers.models.auto.processing_auto.AutoProcessor" }, + { + "name": "transformer", + "type": "diffusers.models.transformers.transformer_flux3.Flux3Transformer2DModel" + }, + { "name": "vae", "type": "diffusers.models.autoencoders.autoencoder_kl_flux2.AutoencoderKLFlux2" } + ], + "owner": "same_loader", + "scope": "Flux3DistilledModularPipeline", + "state": null + }, + "types": ["diffusers_modular_pipeline_components"] + }, + { + "direction": "input", + "hidden": false, + "name": "quant_config", + "required": false, + "roles": ["value"], + "semanticName": "quant_config", + "semantics": { + "kind": "opaque", + "members": [], + "owner": "none", + "scope": "Flux3DistilledModularPipeline", + "state": null + }, + "types": ["quant_config"] + } + ], + "support": "declared", + "task": "text_to_image", + "workflowId": "text2image" + }, + { + "binding": { "pipelineClass": "Flux3ModularPipeline", "values": {} }, + "blockName": "decode", + "decomposition": "block", + "nodeKey": "modules.ModularDiffusers.DecodeLatents", + "nodeType": "decoder", + "operationId": "diffusion.decode_latents", + "pipelineClass": "Flux3ModularPipeline", + "ports": [ + { + "direction": "input", + "hidden": false, + "name": "latents", + "required": true, + "roles": ["value"], + "semanticName": "latents", + "semantics": { + "kind": "latents", + "members": [], + "owner": "same_loader", + "scope": "Flux3ModularPipeline", + "state": null + }, + "types": ["latents"] + }, + { + "direction": "input", + "hidden": false, + "name": "vae", + "required": true, + "roles": ["component"], + "semanticName": "vae", + "semantics": { + "kind": "component", + "members": [], + "owner": "same_loader", + "scope": "Flux3ModularPipeline", + "state": null + }, + "types": ["diffusers_auto_model"] + }, + { + "direction": "output", + "hidden": false, + "name": "images", + "required": false, + "roles": ["value"], + "semanticName": "images", + "semantics": { "kind": "media", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["image"] + }, + { + "direction": "output", + "hidden": false, + "name": "doc", + "required": false, + "roles": ["value"], + "semanticName": "doc", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + } + ], + "support": "declared", + "task": null, + "workflowId": null + }, + { + "binding": { "pipelineClass": "Flux3ModularPipeline", "values": {} }, + "blockName": "denoise", + "decomposition": "block", + "nodeKey": "modules.ModularDiffusers.Denoise", + "nodeType": "denoise", + "operationId": "diffusion.denoise", + "pipelineClass": "Flux3ModularPipeline", + "ports": [ + { + "direction": "input", + "hidden": false, + "name": "embeddings", + "required": true, + "roles": ["value"], + "semanticName": "embeddings", + "semantics": { + "kind": "conditioning", + "members": [], + "owner": "same_loader", + "scope": "Flux3ModularPipeline", + "state": null + }, + "types": ["embeddings"] + }, + { + "direction": "input", + "hidden": false, + "name": "width", + "required": false, + "roles": ["value"], + "semanticName": "width", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["int"] + }, + { + "direction": "input", + "hidden": false, + "name": "height", + "required": false, + "roles": ["value"], + "semanticName": "height", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["int"] + }, + { + "direction": "input", + "hidden": false, + "name": "seed", + "required": false, + "roles": ["value"], + "semanticName": "seed", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["int"] + }, + { + "direction": "input", + "hidden": false, + "name": "num_inference_steps", + "required": false, + "roles": ["value"], + "semanticName": "num_inference_steps", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["int"] + }, + { + "direction": "input", + "hidden": false, + "name": "num_images_per_prompt", + "required": false, + "roles": ["value"], + "semanticName": "num_images_per_prompt", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["int"] + }, + { + "direction": "input", + "hidden": false, + "name": "image_cond_latents", + "required": false, + "roles": ["value"], + "semanticName": "image_cond_latents", + "semantics": { + "kind": "latents", + "members": [], + "owner": "same_loader", + "scope": "Flux3ModularPipeline", + "state": null + }, + "types": ["latents"] + }, + { + "direction": "input", + "hidden": false, + "name": "unet", + "required": true, + "roles": ["component"], + "semanticName": "unet", + "semantics": { + "kind": "component", + "members": [], + "owner": "same_loader", + "scope": "Flux3ModularPipeline", + "state": null + }, + "types": ["diffusers_auto_model"] + }, + { + "direction": "input", + "hidden": false, + "name": "scheduler", + "required": true, + "roles": ["component"], + "semanticName": "scheduler", + "semantics": { + "kind": "component", + "members": [], + "owner": "same_loader", + "scope": "Flux3ModularPipeline", + "state": null + }, + "types": ["diffusers_auto_model"] + }, + { + "direction": "input", + "hidden": false, + "name": "guider", + "required": false, + "roles": ["component"], + "semanticName": "guider", + "semantics": { + "kind": "component", + "members": [], + "owner": "same_loader", + "scope": "Flux3ModularPipeline", + "state": null + }, + "types": ["custom_guider"] + }, + { + "direction": "output", + "hidden": false, + "name": "latents", + "required": false, + "roles": ["value"], + "semanticName": "latents", + "semantics": { + "kind": "latents", + "members": [], + "owner": "same_loader", + "scope": "Flux3ModularPipeline", + "state": null + }, + "types": ["latents"] + }, + { + "direction": "output", + "hidden": false, + "name": "doc", + "required": false, + "roles": ["value"], + "semanticName": "doc", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": false, + "name": "reference_binding", + "required": false, + "roles": ["value"], + "semanticName": "reference_binding", + "semantics": { + "kind": "opaque", + "members": [], + "owner": "none", + "scope": "Flux3ModularPipeline", + "state": null + }, + "types": ["reference_conditioning"] + } + ], + "support": "declared", + "task": null, + "workflowId": null + }, + { + "binding": { "pipelineClass": "Flux3ModularPipeline", "values": {} }, + "blockName": "vae_encoder", + "decomposition": "block", + "nodeKey": "modules.ModularDiffusers.ImageEncode", + "nodeType": "vae_encoder", + "operationId": "diffusion.encode_image", + "pipelineClass": "Flux3ModularPipeline", + "ports": [ + { + "direction": "input", + "hidden": false, + "name": "image", + "required": true, + "roles": ["value"], + "semanticName": "image", + "semantics": { "kind": "media", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["image"] + }, + { + "direction": "input", + "hidden": false, + "name": "vae", + "required": true, + "roles": ["component"], + "semanticName": "vae", + "semantics": { + "kind": "component", + "members": [], + "owner": "same_loader", + "scope": "Flux3ModularPipeline", + "state": null + }, + "types": ["diffusers_auto_model"] + }, + { + "direction": "output", + "hidden": false, + "name": "image_cond_latents", + "required": false, + "roles": ["value"], + "semanticName": "image_cond_latents", + "semantics": { + "kind": "latents", + "members": [], + "owner": "same_loader", + "scope": "Flux3ModularPipeline", + "state": null + }, + "types": ["latents"] + }, + { + "direction": "output", + "hidden": false, + "name": "reference_binding", + "required": false, + "roles": ["value"], + "semanticName": "reference_binding", + "semantics": { + "kind": "opaque", + "members": [], + "owner": "none", + "scope": "Flux3ModularPipeline", + "state": null + }, + "types": ["reference_conditioning"] + }, + { + "direction": "output", + "hidden": false, + "name": "doc", + "required": false, + "roles": ["value"], + "semanticName": "doc", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + } + ], + "support": "declared", + "task": null, + "workflowId": null + }, + { + "binding": { "pipelineClass": "Flux3ModularPipeline", "values": {} }, + "blockName": "text_encoder", + "decomposition": "block", + "nodeKey": "modules.ModularDiffusers.EncodePrompt", + "nodeType": "text_encoder", + "operationId": "diffusion.encode_prompt", + "pipelineClass": "Flux3ModularPipeline", + "ports": [ + { + "direction": "input", + "hidden": false, + "name": "prompt", + "required": true, + "roles": ["value"], + "semanticName": "prompt", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": false, + "name": "negative_prompt", + "required": false, + "roles": ["value"], + "semanticName": "negative_prompt", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": false, + "name": "max_sequence_length", + "required": false, + "roles": ["value"], + "semanticName": "max_sequence_length", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["int"] + }, + { + "direction": "input", + "hidden": false, + "name": "text_encoder_out_layers", + "required": false, + "roles": ["value"], + "semanticName": "text_encoder_out_layers", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["int"] + }, + { + "direction": "input", + "hidden": false, + "name": "text_encoders", + "required": true, + "roles": ["component"], + "semanticName": "text_encoders", + "semantics": { + "kind": "component", + "members": [], + "owner": "same_loader", + "scope": "Flux3ModularPipeline", + "state": null + }, + "types": ["diffusers_auto_models"] + }, + { + "direction": "output", + "hidden": false, + "name": "embeddings", + "required": false, + "roles": ["value"], + "semanticName": "embeddings", + "semantics": { + "kind": "conditioning", + "members": [], + "owner": "same_loader", + "scope": "Flux3ModularPipeline", + "state": null + }, + "types": ["embeddings"] + }, + { + "direction": "output", + "hidden": false, + "name": "doc", + "required": false, + "roles": ["value"], + "semanticName": "doc", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": false, + "name": "layout_conditioning", + "required": false, + "roles": ["value"], + "semanticName": "layout_conditioning", + "semantics": { + "kind": "opaque", + "members": [], + "owner": "none", + "scope": "Flux3ModularPipeline", + "state": null + }, + "types": ["layout_conditioning"] + }, + { + "direction": "input", + "hidden": false, + "name": "reference_binding", + "required": false, + "roles": ["value"], + "semanticName": "reference_binding", + "semantics": { + "kind": "opaque", + "members": [], + "owner": "none", + "scope": "Flux3ModularPipeline", + "state": null + }, + "types": ["reference_conditioning"] + }, + { + "direction": "input", + "hidden": false, + "name": "prompt_input", + "required": false, + "roles": ["value"], + "semanticName": "prompt", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + } + ], + "support": "declared", + "task": null, + "workflowId": null + }, + { + "binding": { "pipelineClass": "Flux3ModularPipeline", "values": {} }, + "blockName": "decode", + "decomposition": "block", + "nodeKey": "modules.ModularDiffusers.DecodeLatents", + "nodeType": "decoder", + "operationId": "diffusion.decode_latents", + "pipelineClass": "Flux3ModularPipeline", + "ports": [ + { + "direction": "input", + "hidden": false, + "name": "latents", + "required": true, + "roles": ["value"], + "semanticName": "latents", + "semantics": { + "kind": "latents", + "members": [], + "owner": "same_loader", + "scope": "Flux3ModularPipeline", + "state": null + }, + "types": ["latents"] + }, + { + "direction": "input", + "hidden": false, + "name": "vae", + "required": true, + "roles": ["component"], + "semanticName": "vae", + "semantics": { + "kind": "component", + "members": [ + { "name": "vae", "type": "diffusers.models.autoencoders.autoencoder_kl_flux2.AutoencoderKLFlux2" } + ], + "owner": "same_loader", + "scope": "Flux3ModularPipeline", + "state": null + }, + "types": ["diffusers_auto_model"] + }, + { + "direction": "output", + "hidden": false, + "name": "images", + "required": false, + "roles": ["value"], + "semanticName": "images", + "semantics": { "kind": "media", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["image"] + }, + { + "direction": "output", + "hidden": false, + "name": "doc", + "required": false, + "roles": ["value"], + "semanticName": "doc", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + } + ], + "support": "declared", + "task": "edit_image", + "workflowId": "image_conditioned" + }, + { + "binding": { "pipelineClass": "Flux3ModularPipeline", "values": {} }, + "blockName": "denoise", + "decomposition": "block", + "nodeKey": "modules.ModularDiffusers.Denoise", + "nodeType": "denoise", + "operationId": "diffusion.denoise", + "pipelineClass": "Flux3ModularPipeline", + "ports": [ + { + "direction": "input", + "hidden": false, + "name": "embeddings", + "required": true, + "roles": ["value"], + "semanticName": "embeddings", + "semantics": { + "kind": "conditioning", + "members": [], + "owner": "same_loader", + "scope": "Flux3ModularPipeline", + "state": null + }, + "types": ["embeddings"] + }, + { + "direction": "input", + "hidden": false, + "name": "width", + "required": false, + "roles": ["value"], + "semanticName": "width", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["int"] + }, + { + "direction": "input", + "hidden": false, + "name": "height", + "required": false, + "roles": ["value"], + "semanticName": "height", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["int"] + }, + { + "direction": "input", + "hidden": false, + "name": "seed", + "required": false, + "roles": ["value"], + "semanticName": "seed", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["int"] + }, + { + "direction": "input", + "hidden": false, + "name": "num_inference_steps", + "required": false, + "roles": ["value"], + "semanticName": "num_inference_steps", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["int"] + }, + { + "direction": "input", + "hidden": false, + "name": "num_images_per_prompt", + "required": false, + "roles": ["value"], + "semanticName": "num_images_per_prompt", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["int"] + }, + { + "direction": "input", + "hidden": false, + "name": "image_cond_latents", + "required": false, + "roles": ["value"], + "semanticName": "image_cond_latents", + "semantics": { + "kind": "latents", + "members": [], + "owner": "same_loader", + "scope": "Flux3ModularPipeline", + "state": null + }, + "types": ["latents"] + }, + { + "direction": "input", + "hidden": false, + "name": "unet", + "required": true, + "roles": ["component"], + "semanticName": "unet", + "semantics": { + "kind": "component", + "members": [ + { + "name": "transformer", + "type": "diffusers.models.transformers.transformer_flux3.Flux3Transformer2DModel" + } + ], + "owner": "same_loader", + "scope": "Flux3ModularPipeline", + "state": null + }, + "types": ["diffusers_auto_model"] + }, + { + "direction": "input", + "hidden": false, + "name": "scheduler", + "required": true, + "roles": ["component"], + "semanticName": "scheduler", + "semantics": { + "kind": "component", + "members": [ + { + "name": "scheduler", + "type": "diffusers.schedulers.scheduling_flow_match_euler_discrete.FlowMatchEulerDiscreteScheduler" + } + ], + "owner": "same_loader", + "scope": "Flux3ModularPipeline", + "state": null + }, + "types": ["diffusers_auto_model"] + }, + { + "direction": "input", + "hidden": false, + "name": "guider", + "required": false, + "roles": ["component"], + "semanticName": "guider", + "semantics": { + "kind": "component", + "members": [ + { "name": "guider", "type": "diffusers.guiders.classifier_free_guidance.ClassifierFreeGuidance" } + ], + "owner": "same_loader", + "scope": "Flux3ModularPipeline", + "state": null + }, + "types": ["custom_guider"] + }, + { + "direction": "output", + "hidden": false, + "name": "latents", + "required": false, + "roles": ["value"], + "semanticName": "latents", + "semantics": { + "kind": "latents", + "members": [], + "owner": "same_loader", + "scope": "Flux3ModularPipeline", + "state": null + }, + "types": ["latents"] + }, + { + "direction": "output", + "hidden": false, + "name": "doc", + "required": false, + "roles": ["value"], + "semanticName": "doc", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": false, + "name": "reference_binding", + "required": false, + "roles": ["value"], + "semanticName": "reference_binding", + "semantics": { + "kind": "opaque", + "members": [], + "owner": "none", + "scope": "Flux3ModularPipeline", + "state": null + }, + "types": ["reference_conditioning"] + } + ], + "support": "declared", + "task": "edit_image", + "workflowId": "image_conditioned" + }, + { + "binding": { "pipelineClass": "Flux3ModularPipeline", "values": {} }, + "blockName": "vae_encoder", + "decomposition": "block", + "nodeKey": "modules.ModularDiffusers.ImageEncode", + "nodeType": "vae_encoder", + "operationId": "diffusion.encode_image", + "pipelineClass": "Flux3ModularPipeline", + "ports": [ + { + "direction": "input", + "hidden": false, + "name": "image", + "required": true, + "roles": ["value"], + "semanticName": "image", + "semantics": { "kind": "media", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["image"] + }, + { + "direction": "input", + "hidden": false, + "name": "vae", + "required": true, + "roles": ["component"], + "semanticName": "vae", + "semantics": { + "kind": "component", + "members": [ + { "name": "vae", "type": "diffusers.models.autoencoders.autoencoder_kl_flux2.AutoencoderKLFlux2" } + ], + "owner": "same_loader", + "scope": "Flux3ModularPipeline", + "state": null + }, + "types": ["diffusers_auto_model"] + }, + { + "direction": "output", + "hidden": false, + "name": "image_cond_latents", + "required": false, + "roles": ["value"], + "semanticName": "image_cond_latents", + "semantics": { + "kind": "latents", + "members": [], + "owner": "same_loader", + "scope": "Flux3ModularPipeline", + "state": null + }, + "types": ["latents"] + }, + { + "direction": "output", + "hidden": false, + "name": "reference_binding", + "required": false, + "roles": ["value"], + "semanticName": "reference_binding", + "semantics": { + "kind": "opaque", + "members": [], + "owner": "none", + "scope": "Flux3ModularPipeline", + "state": null + }, + "types": ["reference_conditioning"] + }, + { + "direction": "output", + "hidden": false, + "name": "doc", + "required": false, + "roles": ["value"], + "semanticName": "doc", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + } + ], + "support": "declared", + "task": "edit_image", + "workflowId": "image_conditioned" + }, + { + "binding": { "pipelineClass": "Flux3ModularPipeline", "values": {} }, + "blockName": "text_encoder", + "decomposition": "block", + "nodeKey": "modules.ModularDiffusers.EncodePrompt", + "nodeType": "text_encoder", + "operationId": "diffusion.encode_prompt", + "pipelineClass": "Flux3ModularPipeline", + "ports": [ + { + "direction": "input", + "hidden": false, + "name": "prompt", + "required": true, + "roles": ["value"], + "semanticName": "prompt", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": false, + "name": "negative_prompt", + "required": false, + "roles": ["value"], + "semanticName": "negative_prompt", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": false, + "name": "max_sequence_length", + "required": false, + "roles": ["value"], + "semanticName": "max_sequence_length", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["int"] + }, + { + "direction": "input", + "hidden": false, + "name": "text_encoder_out_layers", + "required": false, + "roles": ["value"], + "semanticName": "text_encoder_out_layers", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["int"] + }, + { + "direction": "input", + "hidden": false, + "name": "text_encoders", + "required": true, + "roles": ["component"], + "semanticName": "text_encoders", + "semantics": { + "kind": "component", + "members": [ + { + "name": "text_encoder", + "type": "transformers.models.qwen3_vl.modeling_qwen3_vl.Qwen3VLForConditionalGeneration" + }, + { "name": "tokenizer", "type": "transformers.models.auto.processing_auto.AutoProcessor" } + ], + "owner": "same_loader", + "scope": "Flux3ModularPipeline", + "state": null + }, + "types": ["diffusers_auto_models"] + }, + { + "direction": "output", + "hidden": false, + "name": "embeddings", + "required": false, + "roles": ["value"], + "semanticName": "embeddings", + "semantics": { + "kind": "conditioning", + "members": [], + "owner": "same_loader", + "scope": "Flux3ModularPipeline", + "state": null + }, + "types": ["embeddings"] + }, + { + "direction": "output", + "hidden": false, + "name": "doc", + "required": false, + "roles": ["value"], + "semanticName": "doc", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": false, + "name": "layout_conditioning", + "required": false, + "roles": ["value"], + "semanticName": "layout_conditioning", + "semantics": { + "kind": "opaque", + "members": [], + "owner": "none", + "scope": "Flux3ModularPipeline", + "state": null + }, + "types": ["layout_conditioning"] + }, + { + "direction": "input", + "hidden": false, + "name": "reference_binding", + "required": false, + "roles": ["value"], + "semanticName": "reference_binding", + "semantics": { + "kind": "opaque", + "members": [], + "owner": "none", + "scope": "Flux3ModularPipeline", + "state": null + }, + "types": ["reference_conditioning"] + }, + { + "direction": "input", + "hidden": false, + "name": "prompt_input", + "required": false, + "roles": ["value"], + "semanticName": "prompt", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + } + ], + "support": "declared", + "task": "edit_image", + "workflowId": "image_conditioned" + }, + { + "binding": { "pipelineClass": "Flux3ModularPipeline", "values": { "model_type": "Flux3ModularPipeline" } }, + "blockName": null, + "decomposition": "bundle", + "nodeKey": "modules.ModularDiffusers.Guider", + "nodeType": "guidance", + "operationId": "diffusion.guidance", + "pipelineClass": "Flux3ModularPipeline", + "ports": [ + { + "direction": "input", + "hidden": true, + "name": "model_type", + "required": false, + "roles": ["value"], + "semanticName": "model_type", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": false, + "name": "guider", + "required": false, + "roles": ["value"], + "semanticName": "guider", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": false, + "name": "guidance_scale", + "required": false, + "roles": ["value"], + "semanticName": "guidance_scale", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["float"] + }, + { + "direction": "input", + "hidden": false, + "name": "guidance_rescale", + "required": false, + "roles": ["value"], + "semanticName": "guidance_rescale", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["float"] + }, + { + "direction": "input", + "hidden": false, + "name": "use_original_formulation", + "required": false, + "roles": ["value"], + "semanticName": "use_original_formulation", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["boolean"] + }, + { + "direction": "input", + "hidden": false, + "name": "enabled", + "required": false, + "roles": ["value"], + "semanticName": "enabled", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["boolean"] + }, + { + "direction": "input", + "hidden": false, + "name": "start", + "required": false, + "roles": ["value"], + "semanticName": "start", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["float"] + }, + { + "direction": "input", + "hidden": false, + "name": "stop", + "required": false, + "roles": ["value"], + "semanticName": "stop", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["float"] + }, + { + "direction": "output", + "hidden": false, + "name": "guider_out", + "required": false, + "roles": ["component"], + "semanticName": "guider_out", + "semantics": { + "kind": "component", + "members": [], + "owner": "same_loader", + "scope": "Flux3ModularPipeline", + "state": null + }, + "types": ["custom_guider"] + }, + { + "direction": "input", + "hidden": false, + "name": "layers_config", + "required": false, + "roles": ["value"], + "semanticName": "layers_config", + "semantics": { + "kind": "opaque", + "members": [], + "owner": "none", + "scope": "Flux3ModularPipeline", + "state": null + }, + "types": ["layers_config"] + } + ], + "support": "declared", + "task": "edit_image", + "workflowId": "image_conditioned" + }, + { + "binding": { "pipelineClass": "Flux3ModularPipeline", "values": { "model_type": "Flux3ModularPipeline" } }, + "blockName": null, + "decomposition": "loader", + "nodeKey": "modules.ModularDiffusers.ModelsLoader", + "nodeType": "loader", + "operationId": "diffusion.load_models", + "pipelineClass": "Flux3ModularPipeline", + "ports": [ + { + "direction": "input", + "hidden": false, + "name": "model_type", + "required": false, + "roles": ["value"], + "semanticName": "model_type", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": false, + "name": "repo_id", + "required": false, + "roles": ["value"], + "semanticName": "repo_id", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": true, + "name": "reviewed_variant", + "required": false, + "roles": ["value"], + "semanticName": "reviewed_variant", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": false, + "name": "device", + "required": false, + "roles": ["value"], + "semanticName": "device", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": false, + "name": "attention_backend", + "required": false, + "roles": ["value"], + "semanticName": "attention_backend", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": true, + "name": "vae_slicing", + "required": false, + "roles": ["value"], + "semanticName": "vae_slicing", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["boolean"] + }, + { + "direction": "input", + "hidden": true, + "name": "vae_tiling", + "required": false, + "roles": ["value"], + "semanticName": "vae_tiling", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["boolean"] + }, + { + "direction": "input", + "hidden": true, + "name": "inpaint_compatibility", + "required": false, + "roles": ["value"], + "semanticName": "inpaint_compatibility", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": false, + "name": "trust_remote_code", + "required": false, + "roles": ["value"], + "semanticName": "trust_remote_code", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["boolean"] + }, + { + "direction": "input", + "hidden": false, + "name": "revision", + "required": false, + "roles": ["value"], + "semanticName": "revision", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": true, + "name": "workflow_id", + "required": false, + "roles": ["value"], + "semanticName": "workflow_id", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": true, + "name": "modiff_pipeline_identity", + "required": false, + "roles": ["value"], + "semanticName": "modiff_pipeline_identity", + "semantics": { + "kind": "opaque", + "members": [], + "owner": "none", + "scope": "Flux3ModularPipeline", + "state": null + }, + "types": ["object"] + }, + { + "direction": "input", + "hidden": false, + "name": "auto_offload", + "required": false, + "roles": ["value"], + "semanticName": "auto_offload", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["boolean"] + }, + { + "direction": "input", + "hidden": false, + "name": "offload_mode", + "required": false, + "roles": ["value"], + "semanticName": "offload_mode", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": false, + "name": "weight_loading_mode", + "required": false, + "roles": ["value"], + "semanticName": "weight_loading_mode", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": true, + "name": "weight_format", + "required": false, + "roles": ["value"], + "semanticName": "weight_format", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": false, + "name": "unet", + "required": false, + "roles": ["component"], + "semanticName": "unet", + "semantics": { + "kind": "component", + "members": [ + { + "name": "transformer", + "type": "diffusers.models.transformers.transformer_flux3.Flux3Transformer2DModel" + } + ], + "owner": "same_loader", + "scope": "Flux3ModularPipeline", + "state": null + }, + "types": ["diffusers_auto_model"] + }, + { + "direction": "input", + "hidden": false, + "name": "vae", + "required": false, + "roles": ["component"], + "semanticName": "vae", + "semantics": { + "kind": "component", + "members": [ + { "name": "vae", "type": "diffusers.models.autoencoders.autoencoder_kl_flux2.AutoencoderKLFlux2" } + ], + "owner": "same_loader", + "scope": "Flux3ModularPipeline", + "state": null + }, + "types": ["diffusers_auto_model"] + }, + { + "direction": "input", + "hidden": true, + "name": "controlnet", + "required": false, + "roles": ["component"], + "semanticName": "controlnet", + "semantics": { + "kind": "component", + "members": [], + "owner": "same_loader", + "scope": "Flux3ModularPipeline", + "state": null + }, + "types": ["diffusers_auto_model"] + }, + { + "direction": "input", + "hidden": false, + "name": "lora_list", + "required": false, + "roles": ["value"], + "semanticName": "lora_list", + "semantics": { + "kind": "opaque", + "members": [], + "owner": "none", + "scope": "Flux3ModularPipeline", + "state": null + }, + "types": ["custom_lora"] + }, + { + "direction": "output", + "hidden": false, + "name": "text_encoders", + "required": false, + "roles": ["component"], + "semanticName": "text_encoders", + "semantics": { + "kind": "component", + "members": [ + { + "name": "text_encoder", + "type": "transformers.models.qwen3_vl.modeling_qwen3_vl.Qwen3VLForConditionalGeneration" + }, + { "name": "tokenizer", "type": "transformers.models.auto.processing_auto.AutoProcessor" } + ], + "owner": "same_loader", + "scope": "Flux3ModularPipeline", + "state": null + }, + "types": ["diffusers_auto_models"] + }, + { + "direction": "output", + "hidden": false, + "name": "unet_out", + "required": false, + "roles": ["component"], + "semanticName": "unet_out", + "semantics": { + "kind": "component", + "members": [ + { + "name": "transformer", + "type": "diffusers.models.transformers.transformer_flux3.Flux3Transformer2DModel" + } + ], + "owner": "same_loader", + "scope": "Flux3ModularPipeline", + "state": null + }, + "types": ["diffusers_auto_model"] + }, + { + "direction": "output", + "hidden": false, + "name": "vae_out", + "required": false, + "roles": ["component"], + "semanticName": "vae_out", + "semantics": { + "kind": "component", + "members": [ + { "name": "vae", "type": "diffusers.models.autoencoders.autoencoder_kl_flux2.AutoencoderKLFlux2" } + ], + "owner": "same_loader", + "scope": "Flux3ModularPipeline", + "state": null + }, + "types": ["diffusers_auto_model"] + }, + { + "direction": "output", + "hidden": false, + "name": "scheduler", + "required": false, + "roles": ["component"], + "semanticName": "scheduler", + "semantics": { + "kind": "component", + "members": [ + { + "name": "scheduler", + "type": "diffusers.schedulers.scheduling_flow_match_euler_discrete.FlowMatchEulerDiscreteScheduler" + } + ], + "owner": "same_loader", + "scope": "Flux3ModularPipeline", + "state": null + }, + "types": ["diffusers_auto_model"] + }, + { + "direction": "output", + "hidden": true, + "name": "image_encoder", + "required": false, + "roles": ["component"], + "semanticName": "image_encoder", + "semantics": { + "kind": "component", + "members": [], + "owner": "same_loader", + "scope": "Flux3ModularPipeline", + "state": null + }, + "types": ["diffusers_auto_model"] + }, + { + "direction": "output", + "hidden": false, + "name": "pipeline_components", + "required": false, + "roles": ["component"], + "semanticName": "pipeline_components", + "semantics": { + "kind": "component", + "members": [ + { "name": "guider", "type": "diffusers.guiders.classifier_free_guidance.ClassifierFreeGuidance" }, + { + "name": "image_processor", + "type": "diffusers.modular_pipelines.flux3.image_processor.Flux3ImageProcessor" + }, + { + "name": "scheduler", + "type": "diffusers.schedulers.scheduling_flow_match_euler_discrete.FlowMatchEulerDiscreteScheduler" + }, + { + "name": "text_encoder", + "type": "transformers.models.qwen3_vl.modeling_qwen3_vl.Qwen3VLForConditionalGeneration" + }, + { "name": "tokenizer", "type": "transformers.models.auto.processing_auto.AutoProcessor" }, + { + "name": "transformer", + "type": "diffusers.models.transformers.transformer_flux3.Flux3Transformer2DModel" + }, + { "name": "vae", "type": "diffusers.models.autoencoders.autoencoder_kl_flux2.AutoencoderKLFlux2" } + ], + "owner": "same_loader", + "scope": "Flux3ModularPipeline", + "state": null + }, + "types": ["diffusers_modular_pipeline_components"] + }, + { + "direction": "input", + "hidden": false, + "name": "quant_config", + "required": false, + "roles": ["value"], + "semanticName": "quant_config", + "semantics": { + "kind": "opaque", + "members": [], + "owner": "none", + "scope": "Flux3ModularPipeline", + "state": null + }, + "types": ["quant_config"] + } + ], + "support": "declared", + "task": "edit_image", + "workflowId": "image_conditioned" + }, + { + "binding": { "pipelineClass": "Flux3ModularPipeline", "values": {} }, + "blockName": "decode", + "decomposition": "block", + "nodeKey": "modules.ModularDiffusers.DecodeLatents", + "nodeType": "decoder", + "operationId": "diffusion.decode_latents", + "pipelineClass": "Flux3ModularPipeline", + "ports": [ + { + "direction": "input", + "hidden": false, + "name": "latents", + "required": true, + "roles": ["value"], + "semanticName": "latents", + "semantics": { + "kind": "latents", + "members": [], + "owner": "same_loader", + "scope": "Flux3ModularPipeline", + "state": null + }, + "types": ["latents"] + }, + { + "direction": "input", + "hidden": false, + "name": "vae", + "required": true, + "roles": ["component"], + "semanticName": "vae", + "semantics": { + "kind": "component", + "members": [ + { "name": "vae", "type": "diffusers.models.autoencoders.autoencoder_kl_flux2.AutoencoderKLFlux2" } + ], + "owner": "same_loader", + "scope": "Flux3ModularPipeline", + "state": null + }, + "types": ["diffusers_auto_model"] + }, + { + "direction": "output", + "hidden": false, + "name": "images", + "required": false, + "roles": ["value"], + "semanticName": "images", + "semantics": { "kind": "media", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["image"] + }, + { + "direction": "output", + "hidden": false, + "name": "doc", + "required": false, + "roles": ["value"], + "semanticName": "doc", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + } + ], + "support": "declared", + "task": "text_to_image", + "workflowId": "text2image" + }, + { + "binding": { "pipelineClass": "Flux3ModularPipeline", "values": {} }, + "blockName": "denoise", + "decomposition": "block", + "nodeKey": "modules.ModularDiffusers.Denoise", + "nodeType": "denoise", + "operationId": "diffusion.denoise", + "pipelineClass": "Flux3ModularPipeline", + "ports": [ + { + "direction": "input", + "hidden": false, + "name": "embeddings", + "required": true, + "roles": ["value"], + "semanticName": "embeddings", + "semantics": { + "kind": "conditioning", + "members": [], + "owner": "same_loader", + "scope": "Flux3ModularPipeline", + "state": null + }, + "types": ["embeddings"] + }, + { + "direction": "input", + "hidden": false, + "name": "width", + "required": false, + "roles": ["value"], + "semanticName": "width", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["int"] + }, + { + "direction": "input", + "hidden": false, + "name": "height", + "required": false, + "roles": ["value"], + "semanticName": "height", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["int"] + }, + { + "direction": "input", + "hidden": false, + "name": "seed", + "required": false, + "roles": ["value"], + "semanticName": "seed", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["int"] + }, + { + "direction": "input", + "hidden": false, + "name": "num_inference_steps", + "required": false, + "roles": ["value"], + "semanticName": "num_inference_steps", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["int"] + }, + { + "direction": "input", + "hidden": false, + "name": "num_images_per_prompt", + "required": false, + "roles": ["value"], + "semanticName": "num_images_per_prompt", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["int"] + }, + { + "direction": "input", + "hidden": false, + "name": "image_cond_latents", + "required": false, + "roles": ["value"], + "semanticName": "image_cond_latents", + "semantics": { + "kind": "latents", + "members": [], + "owner": "same_loader", + "scope": "Flux3ModularPipeline", + "state": null + }, + "types": ["latents"] + }, + { + "direction": "input", + "hidden": false, + "name": "unet", + "required": true, + "roles": ["component"], + "semanticName": "unet", + "semantics": { + "kind": "component", + "members": [ + { + "name": "transformer", + "type": "diffusers.models.transformers.transformer_flux3.Flux3Transformer2DModel" + } + ], + "owner": "same_loader", + "scope": "Flux3ModularPipeline", + "state": null + }, + "types": ["diffusers_auto_model"] + }, + { + "direction": "input", + "hidden": false, + "name": "scheduler", + "required": true, + "roles": ["component"], + "semanticName": "scheduler", + "semantics": { + "kind": "component", + "members": [ + { + "name": "scheduler", + "type": "diffusers.schedulers.scheduling_flow_match_euler_discrete.FlowMatchEulerDiscreteScheduler" + } + ], + "owner": "same_loader", + "scope": "Flux3ModularPipeline", + "state": null + }, + "types": ["diffusers_auto_model"] + }, + { + "direction": "input", + "hidden": false, + "name": "guider", + "required": false, + "roles": ["component"], + "semanticName": "guider", + "semantics": { + "kind": "component", + "members": [ + { "name": "guider", "type": "diffusers.guiders.classifier_free_guidance.ClassifierFreeGuidance" } + ], + "owner": "same_loader", + "scope": "Flux3ModularPipeline", + "state": null + }, + "types": ["custom_guider"] + }, + { + "direction": "output", + "hidden": false, + "name": "latents", + "required": false, + "roles": ["value"], + "semanticName": "latents", + "semantics": { + "kind": "latents", + "members": [], + "owner": "same_loader", + "scope": "Flux3ModularPipeline", + "state": null + }, + "types": ["latents"] + }, + { + "direction": "output", + "hidden": false, + "name": "doc", + "required": false, + "roles": ["value"], + "semanticName": "doc", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": false, + "name": "reference_binding", + "required": false, + "roles": ["value"], + "semanticName": "reference_binding", + "semantics": { + "kind": "opaque", + "members": [], + "owner": "none", + "scope": "Flux3ModularPipeline", + "state": null + }, + "types": ["reference_conditioning"] + } + ], + "support": "declared", + "task": "text_to_image", + "workflowId": "text2image" + }, + { + "binding": { "pipelineClass": "Flux3ModularPipeline", "values": {} }, + "blockName": "text_encoder", + "decomposition": "block", + "nodeKey": "modules.ModularDiffusers.EncodePrompt", + "nodeType": "text_encoder", + "operationId": "diffusion.encode_prompt", + "pipelineClass": "Flux3ModularPipeline", + "ports": [ + { + "direction": "input", + "hidden": false, + "name": "prompt", + "required": true, + "roles": ["value"], + "semanticName": "prompt", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": false, + "name": "negative_prompt", + "required": false, + "roles": ["value"], + "semanticName": "negative_prompt", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": false, + "name": "max_sequence_length", + "required": false, + "roles": ["value"], + "semanticName": "max_sequence_length", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["int"] + }, + { + "direction": "input", + "hidden": false, + "name": "text_encoder_out_layers", + "required": false, + "roles": ["value"], + "semanticName": "text_encoder_out_layers", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["int"] + }, + { + "direction": "input", + "hidden": false, + "name": "text_encoders", + "required": true, + "roles": ["component"], + "semanticName": "text_encoders", + "semantics": { + "kind": "component", + "members": [ + { + "name": "text_encoder", + "type": "transformers.models.qwen3_vl.modeling_qwen3_vl.Qwen3VLForConditionalGeneration" + }, + { "name": "tokenizer", "type": "transformers.models.auto.processing_auto.AutoProcessor" } + ], + "owner": "same_loader", + "scope": "Flux3ModularPipeline", + "state": null + }, + "types": ["diffusers_auto_models"] + }, + { + "direction": "output", + "hidden": false, + "name": "embeddings", + "required": false, + "roles": ["value"], + "semanticName": "embeddings", + "semantics": { + "kind": "conditioning", + "members": [], + "owner": "same_loader", + "scope": "Flux3ModularPipeline", + "state": null + }, + "types": ["embeddings"] + }, + { + "direction": "output", + "hidden": false, + "name": "doc", + "required": false, + "roles": ["value"], + "semanticName": "doc", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": false, + "name": "layout_conditioning", + "required": false, + "roles": ["value"], + "semanticName": "layout_conditioning", + "semantics": { + "kind": "opaque", + "members": [], + "owner": "none", + "scope": "Flux3ModularPipeline", + "state": null + }, + "types": ["layout_conditioning"] + }, + { + "direction": "input", + "hidden": false, + "name": "reference_binding", + "required": false, + "roles": ["value"], + "semanticName": "reference_binding", + "semantics": { + "kind": "opaque", + "members": [], + "owner": "none", + "scope": "Flux3ModularPipeline", + "state": null + }, + "types": ["reference_conditioning"] + }, + { + "direction": "input", + "hidden": false, + "name": "prompt_input", + "required": false, + "roles": ["value"], + "semanticName": "prompt", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + } + ], + "support": "declared", + "task": "text_to_image", + "workflowId": "text2image" + }, + { + "binding": { "pipelineClass": "Flux3ModularPipeline", "values": { "model_type": "Flux3ModularPipeline" } }, + "blockName": null, + "decomposition": "bundle", + "nodeKey": "modules.ModularDiffusers.Guider", + "nodeType": "guidance", + "operationId": "diffusion.guidance", + "pipelineClass": "Flux3ModularPipeline", + "ports": [ + { + "direction": "input", + "hidden": true, + "name": "model_type", + "required": false, + "roles": ["value"], + "semanticName": "model_type", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": false, + "name": "guider", + "required": false, + "roles": ["value"], + "semanticName": "guider", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": false, + "name": "guidance_scale", + "required": false, + "roles": ["value"], + "semanticName": "guidance_scale", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["float"] + }, + { + "direction": "input", + "hidden": false, + "name": "guidance_rescale", + "required": false, + "roles": ["value"], + "semanticName": "guidance_rescale", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["float"] + }, + { + "direction": "input", + "hidden": false, + "name": "use_original_formulation", + "required": false, + "roles": ["value"], + "semanticName": "use_original_formulation", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["boolean"] + }, + { + "direction": "input", + "hidden": false, + "name": "enabled", + "required": false, + "roles": ["value"], + "semanticName": "enabled", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["boolean"] + }, + { + "direction": "input", + "hidden": false, + "name": "start", + "required": false, + "roles": ["value"], + "semanticName": "start", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["float"] + }, + { + "direction": "input", + "hidden": false, + "name": "stop", + "required": false, + "roles": ["value"], + "semanticName": "stop", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["float"] + }, + { + "direction": "output", + "hidden": false, + "name": "guider_out", + "required": false, + "roles": ["component"], + "semanticName": "guider_out", + "semantics": { + "kind": "component", + "members": [], + "owner": "same_loader", + "scope": "Flux3ModularPipeline", + "state": null + }, + "types": ["custom_guider"] + }, + { + "direction": "input", + "hidden": false, + "name": "layers_config", + "required": false, + "roles": ["value"], + "semanticName": "layers_config", + "semantics": { + "kind": "opaque", + "members": [], + "owner": "none", + "scope": "Flux3ModularPipeline", + "state": null + }, + "types": ["layers_config"] + } + ], + "support": "declared", + "task": "text_to_image", + "workflowId": "text2image" + }, + { + "binding": { "pipelineClass": "Flux3ModularPipeline", "values": { "model_type": "Flux3ModularPipeline" } }, + "blockName": null, + "decomposition": "loader", + "nodeKey": "modules.ModularDiffusers.ModelsLoader", + "nodeType": "loader", + "operationId": "diffusion.load_models", + "pipelineClass": "Flux3ModularPipeline", + "ports": [ + { + "direction": "input", + "hidden": false, + "name": "model_type", + "required": false, + "roles": ["value"], + "semanticName": "model_type", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": false, + "name": "repo_id", + "required": false, + "roles": ["value"], + "semanticName": "repo_id", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": true, + "name": "reviewed_variant", + "required": false, + "roles": ["value"], + "semanticName": "reviewed_variant", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": false, + "name": "device", + "required": false, + "roles": ["value"], + "semanticName": "device", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": false, + "name": "attention_backend", + "required": false, + "roles": ["value"], + "semanticName": "attention_backend", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": true, + "name": "vae_slicing", + "required": false, + "roles": ["value"], + "semanticName": "vae_slicing", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["boolean"] + }, + { + "direction": "input", + "hidden": true, + "name": "vae_tiling", + "required": false, + "roles": ["value"], + "semanticName": "vae_tiling", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["boolean"] + }, + { + "direction": "input", + "hidden": true, + "name": "inpaint_compatibility", + "required": false, + "roles": ["value"], + "semanticName": "inpaint_compatibility", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": false, + "name": "trust_remote_code", + "required": false, + "roles": ["value"], + "semanticName": "trust_remote_code", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["boolean"] + }, + { + "direction": "input", + "hidden": false, + "name": "revision", + "required": false, + "roles": ["value"], + "semanticName": "revision", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": true, + "name": "workflow_id", + "required": false, + "roles": ["value"], + "semanticName": "workflow_id", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": true, + "name": "modiff_pipeline_identity", + "required": false, + "roles": ["value"], + "semanticName": "modiff_pipeline_identity", + "semantics": { + "kind": "opaque", + "members": [], + "owner": "none", + "scope": "Flux3ModularPipeline", + "state": null + }, + "types": ["object"] + }, + { + "direction": "input", + "hidden": false, + "name": "auto_offload", + "required": false, + "roles": ["value"], + "semanticName": "auto_offload", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["boolean"] + }, + { + "direction": "input", + "hidden": false, + "name": "offload_mode", + "required": false, + "roles": ["value"], + "semanticName": "offload_mode", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": false, + "name": "weight_loading_mode", + "required": false, + "roles": ["value"], + "semanticName": "weight_loading_mode", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": true, + "name": "weight_format", + "required": false, + "roles": ["value"], + "semanticName": "weight_format", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": false, + "name": "unet", + "required": false, + "roles": ["component"], + "semanticName": "unet", + "semantics": { + "kind": "component", + "members": [ + { + "name": "transformer", + "type": "diffusers.models.transformers.transformer_flux3.Flux3Transformer2DModel" + } + ], + "owner": "same_loader", + "scope": "Flux3ModularPipeline", + "state": null + }, + "types": ["diffusers_auto_model"] + }, + { + "direction": "input", + "hidden": false, + "name": "vae", + "required": false, + "roles": ["component"], + "semanticName": "vae", + "semantics": { + "kind": "component", + "members": [ + { "name": "vae", "type": "diffusers.models.autoencoders.autoencoder_kl_flux2.AutoencoderKLFlux2" } + ], + "owner": "same_loader", + "scope": "Flux3ModularPipeline", + "state": null + }, + "types": ["diffusers_auto_model"] + }, + { + "direction": "input", + "hidden": true, + "name": "controlnet", + "required": false, + "roles": ["component"], + "semanticName": "controlnet", + "semantics": { + "kind": "component", + "members": [], + "owner": "same_loader", + "scope": "Flux3ModularPipeline", + "state": null + }, + "types": ["diffusers_auto_model"] + }, + { + "direction": "input", + "hidden": false, + "name": "lora_list", + "required": false, + "roles": ["value"], + "semanticName": "lora_list", + "semantics": { + "kind": "opaque", + "members": [], + "owner": "none", + "scope": "Flux3ModularPipeline", + "state": null + }, + "types": ["custom_lora"] + }, + { + "direction": "output", + "hidden": false, + "name": "text_encoders", + "required": false, + "roles": ["component"], + "semanticName": "text_encoders", + "semantics": { + "kind": "component", + "members": [ + { + "name": "text_encoder", + "type": "transformers.models.qwen3_vl.modeling_qwen3_vl.Qwen3VLForConditionalGeneration" + }, + { "name": "tokenizer", "type": "transformers.models.auto.processing_auto.AutoProcessor" } + ], + "owner": "same_loader", + "scope": "Flux3ModularPipeline", + "state": null + }, + "types": ["diffusers_auto_models"] + }, + { + "direction": "output", + "hidden": false, + "name": "unet_out", + "required": false, + "roles": ["component"], + "semanticName": "unet_out", + "semantics": { + "kind": "component", + "members": [ + { + "name": "transformer", + "type": "diffusers.models.transformers.transformer_flux3.Flux3Transformer2DModel" + } + ], + "owner": "same_loader", + "scope": "Flux3ModularPipeline", + "state": null + }, + "types": ["diffusers_auto_model"] + }, + { + "direction": "output", + "hidden": false, + "name": "vae_out", + "required": false, + "roles": ["component"], + "semanticName": "vae_out", + "semantics": { + "kind": "component", + "members": [ + { "name": "vae", "type": "diffusers.models.autoencoders.autoencoder_kl_flux2.AutoencoderKLFlux2" } + ], + "owner": "same_loader", + "scope": "Flux3ModularPipeline", + "state": null + }, + "types": ["diffusers_auto_model"] + }, + { + "direction": "output", + "hidden": false, + "name": "scheduler", + "required": false, + "roles": ["component"], + "semanticName": "scheduler", + "semantics": { + "kind": "component", + "members": [ + { + "name": "scheduler", + "type": "diffusers.schedulers.scheduling_flow_match_euler_discrete.FlowMatchEulerDiscreteScheduler" + } + ], + "owner": "same_loader", + "scope": "Flux3ModularPipeline", + "state": null + }, + "types": ["diffusers_auto_model"] + }, + { + "direction": "output", + "hidden": true, + "name": "image_encoder", + "required": false, + "roles": ["component"], + "semanticName": "image_encoder", + "semantics": { + "kind": "component", + "members": [], + "owner": "same_loader", + "scope": "Flux3ModularPipeline", + "state": null + }, + "types": ["diffusers_auto_model"] + }, + { + "direction": "output", + "hidden": false, + "name": "pipeline_components", + "required": false, + "roles": ["component"], + "semanticName": "pipeline_components", + "semantics": { + "kind": "component", + "members": [ + { "name": "guider", "type": "diffusers.guiders.classifier_free_guidance.ClassifierFreeGuidance" }, + { + "name": "image_processor", + "type": "diffusers.modular_pipelines.flux3.image_processor.Flux3ImageProcessor" + }, + { + "name": "scheduler", + "type": "diffusers.schedulers.scheduling_flow_match_euler_discrete.FlowMatchEulerDiscreteScheduler" + }, + { + "name": "text_encoder", + "type": "transformers.models.qwen3_vl.modeling_qwen3_vl.Qwen3VLForConditionalGeneration" + }, + { "name": "tokenizer", "type": "transformers.models.auto.processing_auto.AutoProcessor" }, + { + "name": "transformer", + "type": "diffusers.models.transformers.transformer_flux3.Flux3Transformer2DModel" + }, + { "name": "vae", "type": "diffusers.models.autoencoders.autoencoder_kl_flux2.AutoencoderKLFlux2" } + ], + "owner": "same_loader", + "scope": "Flux3ModularPipeline", + "state": null + }, + "types": ["diffusers_modular_pipeline_components"] + }, + { + "direction": "input", + "hidden": false, + "name": "quant_config", + "required": false, + "roles": ["value"], + "semanticName": "quant_config", + "semantics": { + "kind": "opaque", + "members": [], + "owner": "none", + "scope": "Flux3ModularPipeline", + "state": null + }, + "types": ["quant_config"] + } + ], + "support": "declared", + "task": "text_to_image", + "workflowId": "text2image" + } + ], + "pipelineSupport": [ + { + "coverage": "executable", + "equivalentTo": [], + "pipelineClass": "Flux3DistilledModularPipeline", + "reason": "At least one exact backend execution specification selects this upstream class.", + "tasks": [ + { + "decomposition": "stages", + "dependencies": "blocked", + "execution": "adapter", + "executionProfileIds": ["flux3-klein:official-provider:v1"], + "operationIds": [ + "diffusion.decode_latents", + "diffusion.denoise", + "diffusion.encode_image", + "diffusion.encode_prompt", + "diffusion.load_models" + ], + "runtimeRequirements": [ + { + "delivery": "optional_overlay", + "executionProfileIds": ["flux3-klein:official-provider:v1"], + "profileIds": ["huggingface-diffusers-flux3-7ecb1e1"], + "reason": "optional_runtime_present_unqualified", + "requiredNow": true, + "schemaVersion": 1, + "state": "present_unqualified" + } + ], + "task": "edit_image" + }, + { + "decomposition": "stages", + "dependencies": "blocked", + "execution": "adapter", + "executionProfileIds": ["flux3-klein:official-provider:v1"], + "operationIds": [ + "diffusion.decode_latents", + "diffusion.denoise", + "diffusion.encode_prompt", + "diffusion.load_models" + ], + "runtimeRequirements": [ + { + "delivery": "optional_overlay", + "executionProfileIds": ["flux3-klein:official-provider:v1"], + "profileIds": ["huggingface-diffusers-flux3-7ecb1e1"], + "reason": "optional_runtime_present_unqualified", + "requiredNow": true, + "schemaVersion": 1, + "state": "present_unqualified" + } + ], + "task": "text_to_image" + } + ], + "upstreamTasks": [ + { "source": "modular", "task": "text_to_image", "workflowId": "text2image" }, + { "source": "modular", "task": "edit_image", "workflowId": "image_conditioned" } + ] + }, + { + "coverage": "executable", + "equivalentTo": [], + "pipelineClass": "Flux3ModularPipeline", + "reason": "At least one exact backend execution specification selects this upstream class.", + "tasks": [ + { + "decomposition": "stages", + "dependencies": "blocked", + "execution": "adapter", + "executionProfileIds": ["flux3-klein-base:official-provider:v1"], + "operationIds": [ + "diffusion.decode_latents", + "diffusion.denoise", + "diffusion.encode_image", + "diffusion.encode_prompt", + "diffusion.guidance", + "diffusion.load_models" + ], + "runtimeRequirements": [ + { + "delivery": "optional_overlay", + "executionProfileIds": ["flux3-klein-base:official-provider:v1"], + "profileIds": ["huggingface-diffusers-flux3-7ecb1e1"], + "reason": "optional_runtime_present_unqualified", + "requiredNow": true, + "schemaVersion": 1, + "state": "present_unqualified" + } + ], + "task": "edit_image" + }, + { + "decomposition": "stages", + "dependencies": "blocked", + "execution": "adapter", + "executionProfileIds": ["flux3-klein-base:official-provider:v1"], + "operationIds": [ + "diffusion.decode_latents", + "diffusion.denoise", + "diffusion.encode_prompt", + "diffusion.guidance", + "diffusion.load_models" + ], + "runtimeRequirements": [ + { + "delivery": "optional_overlay", + "executionProfileIds": ["flux3-klein-base:official-provider:v1"], + "profileIds": ["huggingface-diffusers-flux3-7ecb1e1"], + "reason": "optional_runtime_present_unqualified", + "requiredNow": true, + "schemaVersion": 1, + "state": "present_unqualified" + } + ], + "task": "text_to_image" + } + ], + "upstreamTasks": [ + { "source": "modular", "task": "text_to_image", "workflowId": "text2image" }, + { "source": "modular", "task": "edit_image", "workflowId": "image_conditioned" } + ] + } + ], + "pipelineSupportSchemaVersion": 1, + "schemaVersion": 2 + }, + "fixtureControls": { + "allowedRegistryPrimitiveModules": { + "torch.nn.modules.activation.GELU": 1, + "torch.nn.modules.pooling.AdaptiveMaxPool2d": 1, + "torch.nn.modules.pooling.AdaptiveMaxPool3d": 1, + "transformers.activations.FastGELUActivation": 1, + "transformers.activations.GELUActivation": 2, + "transformers.activations.GELUTanh": 1, + "transformers.activations.LinearActivation": 1, + "transformers.activations.MishActivation": 1, + "transformers.activations.NewGELUActivation": 1, + "transformers.activations.QuickGELUActivation": 1, + "transformers.activations.SiLUActivation": 1 + }, + "broaderModelFactories": "not exhaustively instrumented; weight-file/network/process fences retained", + "deviceOptions": "CPU-only controlled projection", + "optimizationCatalog": "empty controlled projection", + "pretrainedModelNodeServerConstructorsTrapped": true, + "privateConfig": true, + "privateManagedRoot": true, + "serverDefinitionProjection": "only exact terminal server singleton assignment omitted" + }, + "optionalRuntimeCatalog": { + "activeInstallJob": null, + "overlay": { + "environmentScan": { "limit": 32, "observed": 0, "returned": 0, "scanLimit": 4096, "truncated": false }, + "environments": [], + "processLoadStatus": "base", + "state": { "activeEnvironmentId": null, "activeStatus": "missing", "previousEnvironmentId": null } + }, + "profiles": [ + { + "activationAvailable": false, + "artifactLocks": [ + { + "byteSize": 775777, + "distribution": "peft", + "filename": "peft-0.20.0-py3-none-any.whl", + "machine": "x86_64", + "platform": "linux", + "pythonTag": "cp312", + "sha256": "0fbba16ffebfad3de96e06f2da6860fd860292324b85b6141909fa1e26ea9233", + "url": "https://files.pythonhosted.org/packages/28/79/13bcabb8048126422d5c4b880575d40886c726f354db88cfeed4325525bb/peft-0.20.0-py3-none-any.whl", + "version": "0.20.0" + }, + { + "byteSize": 122874, + "distribution": "typer", + "filename": "typer-0.27.1-py3-none-any.whl", + "machine": "x86_64", + "platform": "linux", + "pythonTag": "cp312", + "sha256": "53150287edd11baeb4e4722c8e394fcdf8181c0ae89485cba8d25c778d5edd56", + "url": "https://files.pythonhosted.org/packages/43/89/9518bc0c3929bee36b3a4a8e3daddd6e03f92f9961c66d4983b837160543/typer-0.27.1-py3-none-any.whl", + "version": "0.27.1" + }, + { + "byteSize": 5302, + "distribution": "annotated-doc", + "filename": "annotated_doc-0.0.5-py3-none-any.whl", + "machine": "x86_64", + "platform": "linux", + "pythonTag": "cp312", + "sha256": "117bac03a25ede5df5440e855b32d556049ca169ead221505badf432fed4b101", + "url": "https://files.pythonhosted.org/packages/3e/30/e900b21425a860e195f32e37657aa1f7c7f2b1bfb26f03ca209b90933c06/annotated_doc-0.0.5-py3-none-any.whl", + "version": "0.0.5" + }, + { + "byteSize": 310654, + "distribution": "rich", + "filename": "rich-15.0.0-py3-none-any.whl", + "machine": "x86_64", + "platform": "linux", + "pythonTag": "cp312", + "sha256": "33bd4ef74232fb73fe9279a257718407f169c09b78a87ad3d296f548e27de0bb", + "url": "https://files.pythonhosted.org/packages/82/3b/64d4899d73f91ba49a8c18a8ff3f0ea8f1c1d75481760df8c68ef5235bf5/rich-15.0.0-py3-none-any.whl", + "version": "15.0.0" + }, + { + "byteSize": 91687, + "distribution": "markdown-it-py", + "filename": "markdown_it_py-4.2.0-py3-none-any.whl", + "machine": "x86_64", + "platform": "linux", + "pythonTag": "cp312", + "sha256": "9f7ebbcd14fe59494226453aed97c1070d83f8d24b6fc3a3bcf9a38092641c4a", + "url": "https://files.pythonhosted.org/packages/b3/81/4da04ced5a082363ecfa159c010d200ecbd959ae410c10c0264a38cac0f5/markdown_it_py-4.2.0-py3-none-any.whl", + "version": "4.2.0" + }, + { + "byteSize": 9979, + "distribution": "mdurl", + "filename": "mdurl-0.1.2-py3-none-any.whl", + "machine": "x86_64", + "platform": "linux", + "pythonTag": "cp312", + "sha256": "84008a41e51615a49fc9966191ff91509e3c40b939176e643fd50a5c2196b8f8", + "url": "https://files.pythonhosted.org/packages/b3/38/89ba8ad64ae25be8de66a6d463314cf1eb366222074cfda9ee839c56a4b4/mdurl-0.1.2-py3-none-any.whl", + "version": "0.1.2" + }, + { + "byteSize": 1231151, + "distribution": "pygments", + "filename": "pygments-2.20.0-py3-none-any.whl", + "machine": "x86_64", + "platform": "linux", + "pythonTag": "cp312", + "sha256": "81a9e26dd42fd28a23a2d169d86d7ac03b46e2f8b59ed4698fb4785f946d0176", + "url": "https://files.pythonhosted.org/packages/f4/7e/a72dd26f3b0f4f2bf1dd8923c85f7ceb43172af56d63c7383eb62b332364/pygments-2.20.0-py3-none-any.whl", + "version": "2.20.0" + }, + { + "byteSize": 9755, + "distribution": "shellingham", + "filename": "shellingham-1.5.4-py2.py3-none-any.whl", + "machine": "x86_64", + "platform": "linux", + "pythonTag": "cp312", + "sha256": "7ecfff8f2fd72616f7481040475a65b2bf8af90a56c89140852d1120324e8686", + "url": "https://files.pythonhosted.org/packages/e0/f9/0595336914c5619e5f28a1fb793285925a8cd4b432c9da0a987836c7f822/shellingham-1.5.4-py2.py3-none-any.whl", + "version": "1.5.4" + }, + { + "byteSize": 775777, + "distribution": "peft", + "filename": "peft-0.20.0-py3-none-any.whl", + "machine": "arm64", + "platform": "linux", + "pythonTag": "cp312", + "sha256": "0fbba16ffebfad3de96e06f2da6860fd860292324b85b6141909fa1e26ea9233", + "url": "https://files.pythonhosted.org/packages/28/79/13bcabb8048126422d5c4b880575d40886c726f354db88cfeed4325525bb/peft-0.20.0-py3-none-any.whl", + "version": "0.20.0" + }, + { + "byteSize": 122874, + "distribution": "typer", + "filename": "typer-0.27.1-py3-none-any.whl", + "machine": "arm64", + "platform": "linux", + "pythonTag": "cp312", + "sha256": "53150287edd11baeb4e4722c8e394fcdf8181c0ae89485cba8d25c778d5edd56", + "url": "https://files.pythonhosted.org/packages/43/89/9518bc0c3929bee36b3a4a8e3daddd6e03f92f9961c66d4983b837160543/typer-0.27.1-py3-none-any.whl", + "version": "0.27.1" + }, + { + "byteSize": 5302, + "distribution": "annotated-doc", + "filename": "annotated_doc-0.0.5-py3-none-any.whl", + "machine": "arm64", + "platform": "linux", + "pythonTag": "cp312", + "sha256": "117bac03a25ede5df5440e855b32d556049ca169ead221505badf432fed4b101", + "url": "https://files.pythonhosted.org/packages/3e/30/e900b21425a860e195f32e37657aa1f7c7f2b1bfb26f03ca209b90933c06/annotated_doc-0.0.5-py3-none-any.whl", + "version": "0.0.5" + }, + { + "byteSize": 310654, + "distribution": "rich", + "filename": "rich-15.0.0-py3-none-any.whl", + "machine": "arm64", + "platform": "linux", + "pythonTag": "cp312", + "sha256": "33bd4ef74232fb73fe9279a257718407f169c09b78a87ad3d296f548e27de0bb", + "url": "https://files.pythonhosted.org/packages/82/3b/64d4899d73f91ba49a8c18a8ff3f0ea8f1c1d75481760df8c68ef5235bf5/rich-15.0.0-py3-none-any.whl", + "version": "15.0.0" + }, + { + "byteSize": 91687, + "distribution": "markdown-it-py", + "filename": "markdown_it_py-4.2.0-py3-none-any.whl", + "machine": "arm64", + "platform": "linux", + "pythonTag": "cp312", + "sha256": "9f7ebbcd14fe59494226453aed97c1070d83f8d24b6fc3a3bcf9a38092641c4a", + "url": "https://files.pythonhosted.org/packages/b3/81/4da04ced5a082363ecfa159c010d200ecbd959ae410c10c0264a38cac0f5/markdown_it_py-4.2.0-py3-none-any.whl", + "version": "4.2.0" + }, + { + "byteSize": 9979, + "distribution": "mdurl", + "filename": "mdurl-0.1.2-py3-none-any.whl", + "machine": "arm64", + "platform": "linux", + "pythonTag": "cp312", + "sha256": "84008a41e51615a49fc9966191ff91509e3c40b939176e643fd50a5c2196b8f8", + "url": "https://files.pythonhosted.org/packages/b3/38/89ba8ad64ae25be8de66a6d463314cf1eb366222074cfda9ee839c56a4b4/mdurl-0.1.2-py3-none-any.whl", + "version": "0.1.2" + }, + { + "byteSize": 1231151, + "distribution": "pygments", + "filename": "pygments-2.20.0-py3-none-any.whl", + "machine": "arm64", + "platform": "linux", + "pythonTag": "cp312", + "sha256": "81a9e26dd42fd28a23a2d169d86d7ac03b46e2f8b59ed4698fb4785f946d0176", + "url": "https://files.pythonhosted.org/packages/f4/7e/a72dd26f3b0f4f2bf1dd8923c85f7ceb43172af56d63c7383eb62b332364/pygments-2.20.0-py3-none-any.whl", + "version": "2.20.0" + }, + { + "byteSize": 9755, + "distribution": "shellingham", + "filename": "shellingham-1.5.4-py2.py3-none-any.whl", + "machine": "arm64", + "platform": "linux", + "pythonTag": "cp312", + "sha256": "7ecfff8f2fd72616f7481040475a65b2bf8af90a56c89140852d1120324e8686", + "url": "https://files.pythonhosted.org/packages/e0/f9/0595336914c5619e5f28a1fb793285925a8cd4b432c9da0a987836c7f822/shellingham-1.5.4-py2.py3-none-any.whl", + "version": "1.5.4" + }, + { + "byteSize": 775777, + "distribution": "peft", + "filename": "peft-0.20.0-py3-none-any.whl", + "machine": "x86_64", + "platform": "macos", + "pythonTag": "cp312", + "sha256": "0fbba16ffebfad3de96e06f2da6860fd860292324b85b6141909fa1e26ea9233", + "url": "https://files.pythonhosted.org/packages/28/79/13bcabb8048126422d5c4b880575d40886c726f354db88cfeed4325525bb/peft-0.20.0-py3-none-any.whl", + "version": "0.20.0" + }, + { + "byteSize": 122874, + "distribution": "typer", + "filename": "typer-0.27.1-py3-none-any.whl", + "machine": "x86_64", + "platform": "macos", + "pythonTag": "cp312", + "sha256": "53150287edd11baeb4e4722c8e394fcdf8181c0ae89485cba8d25c778d5edd56", + "url": "https://files.pythonhosted.org/packages/43/89/9518bc0c3929bee36b3a4a8e3daddd6e03f92f9961c66d4983b837160543/typer-0.27.1-py3-none-any.whl", + "version": "0.27.1" + }, + { + "byteSize": 5302, + "distribution": "annotated-doc", + "filename": "annotated_doc-0.0.5-py3-none-any.whl", + "machine": "x86_64", + "platform": "macos", + "pythonTag": "cp312", + "sha256": "117bac03a25ede5df5440e855b32d556049ca169ead221505badf432fed4b101", + "url": "https://files.pythonhosted.org/packages/3e/30/e900b21425a860e195f32e37657aa1f7c7f2b1bfb26f03ca209b90933c06/annotated_doc-0.0.5-py3-none-any.whl", + "version": "0.0.5" + }, + { + "byteSize": 310654, + "distribution": "rich", + "filename": "rich-15.0.0-py3-none-any.whl", + "machine": "x86_64", + "platform": "macos", + "pythonTag": "cp312", + "sha256": "33bd4ef74232fb73fe9279a257718407f169c09b78a87ad3d296f548e27de0bb", + "url": "https://files.pythonhosted.org/packages/82/3b/64d4899d73f91ba49a8c18a8ff3f0ea8f1c1d75481760df8c68ef5235bf5/rich-15.0.0-py3-none-any.whl", + "version": "15.0.0" + }, + { + "byteSize": 91687, + "distribution": "markdown-it-py", + "filename": "markdown_it_py-4.2.0-py3-none-any.whl", + "machine": "x86_64", + "platform": "macos", + "pythonTag": "cp312", + "sha256": "9f7ebbcd14fe59494226453aed97c1070d83f8d24b6fc3a3bcf9a38092641c4a", + "url": "https://files.pythonhosted.org/packages/b3/81/4da04ced5a082363ecfa159c010d200ecbd959ae410c10c0264a38cac0f5/markdown_it_py-4.2.0-py3-none-any.whl", + "version": "4.2.0" + }, + { + "byteSize": 9979, + "distribution": "mdurl", + "filename": "mdurl-0.1.2-py3-none-any.whl", + "machine": "x86_64", + "platform": "macos", + "pythonTag": "cp312", + "sha256": "84008a41e51615a49fc9966191ff91509e3c40b939176e643fd50a5c2196b8f8", + "url": "https://files.pythonhosted.org/packages/b3/38/89ba8ad64ae25be8de66a6d463314cf1eb366222074cfda9ee839c56a4b4/mdurl-0.1.2-py3-none-any.whl", + "version": "0.1.2" + }, + { + "byteSize": 1231151, + "distribution": "pygments", + "filename": "pygments-2.20.0-py3-none-any.whl", + "machine": "x86_64", + "platform": "macos", + "pythonTag": "cp312", + "sha256": "81a9e26dd42fd28a23a2d169d86d7ac03b46e2f8b59ed4698fb4785f946d0176", + "url": "https://files.pythonhosted.org/packages/f4/7e/a72dd26f3b0f4f2bf1dd8923c85f7ceb43172af56d63c7383eb62b332364/pygments-2.20.0-py3-none-any.whl", + "version": "2.20.0" + }, + { + "byteSize": 9755, + "distribution": "shellingham", + "filename": "shellingham-1.5.4-py2.py3-none-any.whl", + "machine": "x86_64", + "platform": "macos", + "pythonTag": "cp312", + "sha256": "7ecfff8f2fd72616f7481040475a65b2bf8af90a56c89140852d1120324e8686", + "url": "https://files.pythonhosted.org/packages/e0/f9/0595336914c5619e5f28a1fb793285925a8cd4b432c9da0a987836c7f822/shellingham-1.5.4-py2.py3-none-any.whl", + "version": "1.5.4" + }, + { + "byteSize": 775777, + "distribution": "peft", + "filename": "peft-0.20.0-py3-none-any.whl", + "machine": "arm64", + "platform": "macos", + "pythonTag": "cp312", + "sha256": "0fbba16ffebfad3de96e06f2da6860fd860292324b85b6141909fa1e26ea9233", + "url": "https://files.pythonhosted.org/packages/28/79/13bcabb8048126422d5c4b880575d40886c726f354db88cfeed4325525bb/peft-0.20.0-py3-none-any.whl", + "version": "0.20.0" + }, + { + "byteSize": 122874, + "distribution": "typer", + "filename": "typer-0.27.1-py3-none-any.whl", + "machine": "arm64", + "platform": "macos", + "pythonTag": "cp312", + "sha256": "53150287edd11baeb4e4722c8e394fcdf8181c0ae89485cba8d25c778d5edd56", + "url": "https://files.pythonhosted.org/packages/43/89/9518bc0c3929bee36b3a4a8e3daddd6e03f92f9961c66d4983b837160543/typer-0.27.1-py3-none-any.whl", + "version": "0.27.1" + }, + { + "byteSize": 5302, + "distribution": "annotated-doc", + "filename": "annotated_doc-0.0.5-py3-none-any.whl", + "machine": "arm64", + "platform": "macos", + "pythonTag": "cp312", + "sha256": "117bac03a25ede5df5440e855b32d556049ca169ead221505badf432fed4b101", + "url": "https://files.pythonhosted.org/packages/3e/30/e900b21425a860e195f32e37657aa1f7c7f2b1bfb26f03ca209b90933c06/annotated_doc-0.0.5-py3-none-any.whl", + "version": "0.0.5" + }, + { + "byteSize": 310654, + "distribution": "rich", + "filename": "rich-15.0.0-py3-none-any.whl", + "machine": "arm64", + "platform": "macos", + "pythonTag": "cp312", + "sha256": "33bd4ef74232fb73fe9279a257718407f169c09b78a87ad3d296f548e27de0bb", + "url": "https://files.pythonhosted.org/packages/82/3b/64d4899d73f91ba49a8c18a8ff3f0ea8f1c1d75481760df8c68ef5235bf5/rich-15.0.0-py3-none-any.whl", + "version": "15.0.0" + }, + { + "byteSize": 91687, + "distribution": "markdown-it-py", + "filename": "markdown_it_py-4.2.0-py3-none-any.whl", + "machine": "arm64", + "platform": "macos", + "pythonTag": "cp312", + "sha256": "9f7ebbcd14fe59494226453aed97c1070d83f8d24b6fc3a3bcf9a38092641c4a", + "url": "https://files.pythonhosted.org/packages/b3/81/4da04ced5a082363ecfa159c010d200ecbd959ae410c10c0264a38cac0f5/markdown_it_py-4.2.0-py3-none-any.whl", + "version": "4.2.0" + }, + { + "byteSize": 9979, + "distribution": "mdurl", + "filename": "mdurl-0.1.2-py3-none-any.whl", + "machine": "arm64", + "platform": "macos", + "pythonTag": "cp312", + "sha256": "84008a41e51615a49fc9966191ff91509e3c40b939176e643fd50a5c2196b8f8", + "url": "https://files.pythonhosted.org/packages/b3/38/89ba8ad64ae25be8de66a6d463314cf1eb366222074cfda9ee839c56a4b4/mdurl-0.1.2-py3-none-any.whl", + "version": "0.1.2" + }, + { + "byteSize": 1231151, + "distribution": "pygments", + "filename": "pygments-2.20.0-py3-none-any.whl", + "machine": "arm64", + "platform": "macos", + "pythonTag": "cp312", + "sha256": "81a9e26dd42fd28a23a2d169d86d7ac03b46e2f8b59ed4698fb4785f946d0176", + "url": "https://files.pythonhosted.org/packages/f4/7e/a72dd26f3b0f4f2bf1dd8923c85f7ceb43172af56d63c7383eb62b332364/pygments-2.20.0-py3-none-any.whl", + "version": "2.20.0" + }, + { + "byteSize": 9755, + "distribution": "shellingham", + "filename": "shellingham-1.5.4-py2.py3-none-any.whl", + "machine": "arm64", + "platform": "macos", + "pythonTag": "cp312", + "sha256": "7ecfff8f2fd72616f7481040475a65b2bf8af90a56c89140852d1120324e8686", + "url": "https://files.pythonhosted.org/packages/e0/f9/0595336914c5619e5f28a1fb793285925a8cd4b432c9da0a987836c7f822/shellingham-1.5.4-py2.py3-none-any.whl", + "version": "1.5.4" + }, + { + "byteSize": 775777, + "distribution": "peft", + "filename": "peft-0.20.0-py3-none-any.whl", + "machine": "x86_64", + "platform": "windows", + "pythonTag": "cp312", + "sha256": "0fbba16ffebfad3de96e06f2da6860fd860292324b85b6141909fa1e26ea9233", + "url": "https://files.pythonhosted.org/packages/28/79/13bcabb8048126422d5c4b880575d40886c726f354db88cfeed4325525bb/peft-0.20.0-py3-none-any.whl", + "version": "0.20.0" + }, + { + "byteSize": 122874, + "distribution": "typer", + "filename": "typer-0.27.1-py3-none-any.whl", + "machine": "x86_64", + "platform": "windows", + "pythonTag": "cp312", + "sha256": "53150287edd11baeb4e4722c8e394fcdf8181c0ae89485cba8d25c778d5edd56", + "url": "https://files.pythonhosted.org/packages/43/89/9518bc0c3929bee36b3a4a8e3daddd6e03f92f9961c66d4983b837160543/typer-0.27.1-py3-none-any.whl", + "version": "0.27.1" + }, + { + "byteSize": 5302, + "distribution": "annotated-doc", + "filename": "annotated_doc-0.0.5-py3-none-any.whl", + "machine": "x86_64", + "platform": "windows", + "pythonTag": "cp312", + "sha256": "117bac03a25ede5df5440e855b32d556049ca169ead221505badf432fed4b101", + "url": "https://files.pythonhosted.org/packages/3e/30/e900b21425a860e195f32e37657aa1f7c7f2b1bfb26f03ca209b90933c06/annotated_doc-0.0.5-py3-none-any.whl", + "version": "0.0.5" + }, + { + "byteSize": 310654, + "distribution": "rich", + "filename": "rich-15.0.0-py3-none-any.whl", + "machine": "x86_64", + "platform": "windows", + "pythonTag": "cp312", + "sha256": "33bd4ef74232fb73fe9279a257718407f169c09b78a87ad3d296f548e27de0bb", + "url": "https://files.pythonhosted.org/packages/82/3b/64d4899d73f91ba49a8c18a8ff3f0ea8f1c1d75481760df8c68ef5235bf5/rich-15.0.0-py3-none-any.whl", + "version": "15.0.0" + }, + { + "byteSize": 91687, + "distribution": "markdown-it-py", + "filename": "markdown_it_py-4.2.0-py3-none-any.whl", + "machine": "x86_64", + "platform": "windows", + "pythonTag": "cp312", + "sha256": "9f7ebbcd14fe59494226453aed97c1070d83f8d24b6fc3a3bcf9a38092641c4a", + "url": "https://files.pythonhosted.org/packages/b3/81/4da04ced5a082363ecfa159c010d200ecbd959ae410c10c0264a38cac0f5/markdown_it_py-4.2.0-py3-none-any.whl", + "version": "4.2.0" + }, + { + "byteSize": 9979, + "distribution": "mdurl", + "filename": "mdurl-0.1.2-py3-none-any.whl", + "machine": "x86_64", + "platform": "windows", + "pythonTag": "cp312", + "sha256": "84008a41e51615a49fc9966191ff91509e3c40b939176e643fd50a5c2196b8f8", + "url": "https://files.pythonhosted.org/packages/b3/38/89ba8ad64ae25be8de66a6d463314cf1eb366222074cfda9ee839c56a4b4/mdurl-0.1.2-py3-none-any.whl", + "version": "0.1.2" + }, + { + "byteSize": 1231151, + "distribution": "pygments", + "filename": "pygments-2.20.0-py3-none-any.whl", + "machine": "x86_64", + "platform": "windows", + "pythonTag": "cp312", + "sha256": "81a9e26dd42fd28a23a2d169d86d7ac03b46e2f8b59ed4698fb4785f946d0176", + "url": "https://files.pythonhosted.org/packages/f4/7e/a72dd26f3b0f4f2bf1dd8923c85f7ceb43172af56d63c7383eb62b332364/pygments-2.20.0-py3-none-any.whl", + "version": "2.20.0" + }, + { + "byteSize": 9755, + "distribution": "shellingham", + "filename": "shellingham-1.5.4-py2.py3-none-any.whl", + "machine": "x86_64", + "platform": "windows", + "pythonTag": "cp312", + "sha256": "7ecfff8f2fd72616f7481040475a65b2bf8af90a56c89140852d1120324e8686", + "url": "https://files.pythonhosted.org/packages/e0/f9/0595336914c5619e5f28a1fb793285925a8cd4b432c9da0a987836c7f822/shellingham-1.5.4-py2.py3-none-any.whl", + "version": "1.5.4" + }, + { + "byteSize": 775777, + "distribution": "peft", + "filename": "peft-0.20.0-py3-none-any.whl", + "machine": "arm64", + "platform": "windows", + "pythonTag": "cp312", + "sha256": "0fbba16ffebfad3de96e06f2da6860fd860292324b85b6141909fa1e26ea9233", + "url": "https://files.pythonhosted.org/packages/28/79/13bcabb8048126422d5c4b880575d40886c726f354db88cfeed4325525bb/peft-0.20.0-py3-none-any.whl", + "version": "0.20.0" + }, + { + "byteSize": 122874, + "distribution": "typer", + "filename": "typer-0.27.1-py3-none-any.whl", + "machine": "arm64", + "platform": "windows", + "pythonTag": "cp312", + "sha256": "53150287edd11baeb4e4722c8e394fcdf8181c0ae89485cba8d25c778d5edd56", + "url": "https://files.pythonhosted.org/packages/43/89/9518bc0c3929bee36b3a4a8e3daddd6e03f92f9961c66d4983b837160543/typer-0.27.1-py3-none-any.whl", + "version": "0.27.1" + }, + { + "byteSize": 5302, + "distribution": "annotated-doc", + "filename": "annotated_doc-0.0.5-py3-none-any.whl", + "machine": "arm64", + "platform": "windows", + "pythonTag": "cp312", + "sha256": "117bac03a25ede5df5440e855b32d556049ca169ead221505badf432fed4b101", + "url": "https://files.pythonhosted.org/packages/3e/30/e900b21425a860e195f32e37657aa1f7c7f2b1bfb26f03ca209b90933c06/annotated_doc-0.0.5-py3-none-any.whl", + "version": "0.0.5" + }, + { + "byteSize": 310654, + "distribution": "rich", + "filename": "rich-15.0.0-py3-none-any.whl", + "machine": "arm64", + "platform": "windows", + "pythonTag": "cp312", + "sha256": "33bd4ef74232fb73fe9279a257718407f169c09b78a87ad3d296f548e27de0bb", + "url": "https://files.pythonhosted.org/packages/82/3b/64d4899d73f91ba49a8c18a8ff3f0ea8f1c1d75481760df8c68ef5235bf5/rich-15.0.0-py3-none-any.whl", + "version": "15.0.0" + }, + { + "byteSize": 91687, + "distribution": "markdown-it-py", + "filename": "markdown_it_py-4.2.0-py3-none-any.whl", + "machine": "arm64", + "platform": "windows", + "pythonTag": "cp312", + "sha256": "9f7ebbcd14fe59494226453aed97c1070d83f8d24b6fc3a3bcf9a38092641c4a", + "url": "https://files.pythonhosted.org/packages/b3/81/4da04ced5a082363ecfa159c010d200ecbd959ae410c10c0264a38cac0f5/markdown_it_py-4.2.0-py3-none-any.whl", + "version": "4.2.0" + }, + { + "byteSize": 9979, + "distribution": "mdurl", + "filename": "mdurl-0.1.2-py3-none-any.whl", + "machine": "arm64", + "platform": "windows", + "pythonTag": "cp312", + "sha256": "84008a41e51615a49fc9966191ff91509e3c40b939176e643fd50a5c2196b8f8", + "url": "https://files.pythonhosted.org/packages/b3/38/89ba8ad64ae25be8de66a6d463314cf1eb366222074cfda9ee839c56a4b4/mdurl-0.1.2-py3-none-any.whl", + "version": "0.1.2" + }, + { + "byteSize": 1231151, + "distribution": "pygments", + "filename": "pygments-2.20.0-py3-none-any.whl", + "machine": "arm64", + "platform": "windows", + "pythonTag": "cp312", + "sha256": "81a9e26dd42fd28a23a2d169d86d7ac03b46e2f8b59ed4698fb4785f946d0176", + "url": "https://files.pythonhosted.org/packages/f4/7e/a72dd26f3b0f4f2bf1dd8923c85f7ceb43172af56d63c7383eb62b332364/pygments-2.20.0-py3-none-any.whl", + "version": "2.20.0" + }, + { + "byteSize": 9755, + "distribution": "shellingham", + "filename": "shellingham-1.5.4-py2.py3-none-any.whl", + "machine": "arm64", + "platform": "windows", + "pythonTag": "cp312", + "sha256": "7ecfff8f2fd72616f7481040475a65b2bf8af90a56c89140852d1120324e8686", + "url": "https://files.pythonhosted.org/packages/e0/f9/0595336914c5619e5f28a1fb793285925a8cd4b432c9da0a987836c7f822/shellingham-1.5.4-py2.py3-none-any.whl", + "version": "1.5.4" + }, + { + "byteSize": 12295140, + "distribution": "transformers", + "filename": "transformers-5.17.0-py3-none-any.whl", + "machine": "x86_64", + "platform": "linux", + "pythonTag": "cp312", + "sha256": "78ec1ce21579b38dfb83950a0658cd119f87212a2fcfdff478096ce9d6c03801", + "url": "https://files.pythonhosted.org/packages/e8/d0/c502b60d684adbd98a8dc7d5bb866842772b816ac4354e4608be240041ae/transformers-5.17.0-py3-none-any.whl", + "version": "5.17.0" + }, + { + "byteSize": 3346235, + "distribution": "tokenizers", + "filename": "tokenizers-0.23.1-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", + "machine": "x86_64", + "platform": "linux", + "pythonTag": "cp312", + "sha256": "5075b405006415ea148a992d093699c66eb01952bf59f4d5727089a98bda45a4", + "url": "https://files.pythonhosted.org/packages/0d/d5/1353e5f677ec27c2494fb6a6725e82d56c985f53e90ec511369e7e4f02c6/tokenizers-0.23.1-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", + "version": "0.23.1" + }, + { + "byteSize": 12295140, + "distribution": "transformers", + "filename": "transformers-5.17.0-py3-none-any.whl", + "machine": "arm64", + "platform": "linux", + "pythonTag": "cp312", + "sha256": "78ec1ce21579b38dfb83950a0658cd119f87212a2fcfdff478096ce9d6c03801", + "url": "https://files.pythonhosted.org/packages/e8/d0/c502b60d684adbd98a8dc7d5bb866842772b816ac4354e4608be240041ae/transformers-5.17.0-py3-none-any.whl", + "version": "5.17.0" + }, + { + "byteSize": 3374081, + "distribution": "tokenizers", + "filename": "tokenizers-0.23.1-cp310-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", + "machine": "arm64", + "platform": "linux", + "pythonTag": "cp312", + "sha256": "1bf13402aff9bc533c89cb849ec3b412dc3fbeacc9744840e423d7bf3f7dc0e3", + "url": "https://files.pythonhosted.org/packages/6c/36/e006edf031154cba92b8416057d92c3abe3635e4c4b0aa0b5b9bb39dde70/tokenizers-0.23.1-cp310-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", + "version": "0.23.1" + }, + { + "byteSize": 12295140, + "distribution": "transformers", + "filename": "transformers-5.17.0-py3-none-any.whl", + "machine": "x86_64", + "platform": "macos", + "pythonTag": "cp312", + "sha256": "78ec1ce21579b38dfb83950a0658cd119f87212a2fcfdff478096ce9d6c03801", + "url": "https://files.pythonhosted.org/packages/e8/d0/c502b60d684adbd98a8dc7d5bb866842772b816ac4354e4608be240041ae/transformers-5.17.0-py3-none-any.whl", + "version": "5.17.0" + }, + { + "byteSize": 3146732, + "distribution": "tokenizers", + "filename": "tokenizers-0.23.1-cp310-abi3-macosx_10_12_x86_64.whl", + "machine": "x86_64", + "platform": "macos", + "pythonTag": "cp312", + "sha256": "e03d6ffcbe0d56ee9c1ccd070e70a13fa750727c0277e138152acbc0252c2224", + "url": "https://files.pythonhosted.org/packages/87/39/b87a87d5bb9470610b80a2d31df42fcffeaf35118b8b97952b2aff598cc7/tokenizers-0.23.1-cp310-abi3-macosx_10_12_x86_64.whl", + "version": "0.23.1" + }, + { + "byteSize": 12295140, + "distribution": "transformers", + "filename": "transformers-5.17.0-py3-none-any.whl", + "machine": "arm64", + "platform": "macos", + "pythonTag": "cp312", + "sha256": "78ec1ce21579b38dfb83950a0658cd119f87212a2fcfdff478096ce9d6c03801", + "url": "https://files.pythonhosted.org/packages/e8/d0/c502b60d684adbd98a8dc7d5bb866842772b816ac4354e4608be240041ae/transformers-5.17.0-py3-none-any.whl", + "version": "5.17.0" + }, + { + "byteSize": 3054954, + "distribution": "tokenizers", + "filename": "tokenizers-0.23.1-cp310-abi3-macosx_11_0_arm64.whl", + "machine": "arm64", + "platform": "macos", + "pythonTag": "cp312", + "sha256": "e0948bbb1ac1d7cdfc9fb6d62c596e3b7550036ad60ecd654a66ad273326324e", + "url": "https://files.pythonhosted.org/packages/e2/6a/068ed9f6e444c9d7e9d55ce134181325700f3d7f30410721bdc8f848d727/tokenizers-0.23.1-cp310-abi3-macosx_11_0_arm64.whl", + "version": "0.23.1" + }, + { + "byteSize": 12295140, + "distribution": "transformers", + "filename": "transformers-5.17.0-py3-none-any.whl", + "machine": "x86_64", + "platform": "windows", + "pythonTag": "cp312", + "sha256": "78ec1ce21579b38dfb83950a0658cd119f87212a2fcfdff478096ce9d6c03801", + "url": "https://files.pythonhosted.org/packages/e8/d0/c502b60d684adbd98a8dc7d5bb866842772b816ac4354e4608be240041ae/transformers-5.17.0-py3-none-any.whl", + "version": "5.17.0" + }, + { + "byteSize": 2798223, + "distribution": "tokenizers", + "filename": "tokenizers-0.23.1-cp310-abi3-win_amd64.whl", + "machine": "x86_64", + "platform": "windows", + "pythonTag": "cp312", + "sha256": "e7bfaf995c1bdbbd21d13539decb6650967013759318627d85daeb7881af16b7", + "url": "https://files.pythonhosted.org/packages/97/c9/2553f72aaf65a2797d4229e37fa7fbe38ffbf3e32912d31bdd78b3323e59/tokenizers-0.23.1-cp310-abi3-win_amd64.whl", + "version": "0.23.1" + }, + { + "byteSize": 12295140, + "distribution": "transformers", + "filename": "transformers-5.17.0-py3-none-any.whl", + "machine": "arm64", + "platform": "windows", + "pythonTag": "cp312", + "sha256": "78ec1ce21579b38dfb83950a0658cd119f87212a2fcfdff478096ce9d6c03801", + "url": "https://files.pythonhosted.org/packages/e8/d0/c502b60d684adbd98a8dc7d5bb866842772b816ac4354e4608be240041ae/transformers-5.17.0-py3-none-any.whl", + "version": "5.17.0" + }, + { + "byteSize": 2664127, + "distribution": "tokenizers", + "filename": "tokenizers-0.23.1-cp310-abi3-win_arm64.whl", + "machine": "arm64", + "platform": "windows", + "pythonTag": "cp312", + "sha256": "a26197957d8e4425dfba746315f3c425ea00cfa8367c5fbc4ec73447893dcea9", + "url": "https://files.pythonhosted.org/packages/cd/2b/2be299bab55fc595e3d38567edb1a87f86e594842968fa9515a07bdcf422/tokenizers-0.23.1-cp310-abi3-win_arm64.whl", + "version": "0.23.1" + } + ], + "baseIncluded": true, + "baseRequirements": [ + { "distribution": "accelerate", "importName": "accelerate", "specifier": ">=0.21.0" }, + { "distribution": "anyio", "importName": "anyio", "specifier": "" }, + { "distribution": "certifi", "importName": "certifi", "specifier": "" }, + { "distribution": "click", "importName": "click", "specifier": "" }, + { "distribution": "filelock", "importName": "filelock", "specifier": "" }, + { "distribution": "fsspec", "importName": "fsspec", "specifier": "" }, + { "distribution": "h11", "importName": "h11", "specifier": "" }, + { "distribution": "hf-xet", "importName": "hf_xet", "specifier": "" }, + { "distribution": "httpcore", "importName": "httpcore", "specifier": "" }, + { "distribution": "httpx", "importName": "httpx", "specifier": "" }, + { "distribution": "huggingface-hub", "importName": "huggingface_hub", "specifier": ">=1.5.0,<2.0" }, + { "distribution": "idna", "importName": "idna", "specifier": "" }, + { "distribution": "jinja2", "importName": "jinja2", "specifier": "" }, + { "distribution": "markupsafe", "importName": "markupsafe", "specifier": "" }, + { "distribution": "mpmath", "importName": "mpmath", "specifier": "" }, + { "distribution": "networkx", "importName": "networkx", "specifier": "" }, + { "distribution": "numpy", "importName": "numpy", "specifier": ">=1.17" }, + { "distribution": "packaging", "importName": "packaging", "specifier": ">=20.0" }, + { "distribution": "pillow", "importName": "PIL", "specifier": ">=10.0.1,<=15.0" }, + { "distribution": "protobuf", "importName": "google.protobuf", "specifier": ">=6.31.1" }, + { "distribution": "psutil", "importName": "psutil", "specifier": "" }, + { "distribution": "pyyaml", "importName": "yaml", "specifier": ">=5.1" }, + { "distribution": "regex", "importName": "regex", "specifier": ">=2025.10.22" }, + { "distribution": "safetensors", "importName": "safetensors", "specifier": ">=0.8.0" }, + { "distribution": "sentencepiece", "importName": "sentencepiece", "specifier": ">=0.2.0" }, + { "distribution": "setuptools", "importName": "setuptools", "specifier": "" }, + { "distribution": "sympy", "importName": "sympy", "specifier": "" }, + { "distribution": "torch", "importName": "torch", "specifier": ">=2.6.0" }, + { "distribution": "torchvision", "importName": "torchvision", "specifier": ">=0.21.0" }, + { "distribution": "tqdm", "importName": "tqdm", "specifier": ">=4.60" }, + { "distribution": "typing-extensions", "importName": "typing_extensions", "specifier": "" }, + { "distribution": "colorama", "importName": "colorama", "platforms": ["windows"], "specifier": "" } + ], + "contractState": "candidate_unqualified", + "cutoverReady": false, + "excludedQualificationSymbols": ["add_weighted_adapter"], + "id": "huggingface-transformers-peft-5.17.0-0.20.0", + "installActionAvailable": false, + "installPolicy": "explicit_first_use", + "label": "Hugging Face Transformers 5.17 + PEFT (Linux x86-64 qualified)", + "machine": "x86_64", + "overlayStatus": "missing", + "packages": [ + { + "distribution": "transformers", + "distributionUrl": "https://pypi.org/project/transformers/", + "importName": "transformers", + "installedVersion": "5.18.0", + "license": "Apache-2.0", + "projectUrl": "https://github.com/huggingface/transformers", + "publisher": "Hugging Face", + "requiredClassSymbols": [ + "Qwen2_5_VLForConditionalGeneration", + "Qwen2Tokenizer", + "Qwen2VLProcessor", + "AutoConfig", + "AutoTokenizer", + "AutoModelForCausalLM", + "LlamaForCausalLM", + "CLIPImageProcessor", + "CLIPVisionModel", + "UMT5EncoderModel", + "T5EncoderModel", + "T5Tokenizer", + "T5TokenizerFast", + "PreTrainedModel", + "PreTrainedTokenizerFast", + "CLIPTextModel", + "CLIPTextModelWithProjection", + "CLIPTokenizer", + "CLIPVisionModelWithProjection", + "SiglipImageProcessor", + "SiglipVisionModel", + "Qwen2TokenizerFast", + "Qwen3ForCausalLM", + "Qwen3Model", + "Qwen3VLForConditionalGeneration", + "Qwen3VLProcessor", + "AutoProcessor", + "AutoModelForImageTextToText", + "Idefics3ForConditionalGeneration", + "Idefics3Processor", + "AutoModelForMultimodalLM", + "JanusForConditionalGeneration", + "JanusProcessor", + "JanusImageProcessor", + "AutoModelForSpeechSeq2Seq", + "AutoModelForCTC", + "AnyToAnyPipeline", + "Mistral3Model", + "Mistral3ForConditionalGeneration", + "Ministral3ForCausalLM", + "GlmImageForConditionalGeneration", + "GlmImageProcessor", + "ByT5Tokenizer", + "BitsAndBytesConfig", + "GemmaModel", + "Gemma2Model", + "GemmaPreTrainedModel", + "Gemma2PreTrainedModel", + "GemmaTokenizer", + "GemmaTokenizerFast", + "transformers.models.t5gemma.modeling_t5gemma:T5GemmaEncoder", + "LlamaTokenizer", + "LlamaTokenizerFast" + ], + "requiredSymbols": [ + "Qwen2_5_VLForConditionalGeneration", + "Qwen2Tokenizer", + "Qwen2VLProcessor", + "AutoConfig", + "AutoTokenizer", + "AutoModelForCausalLM", + "LlamaForCausalLM", + "CLIPImageProcessor", + "CLIPVisionModel", + "UMT5EncoderModel", + "T5EncoderModel", + "T5Tokenizer", + "T5TokenizerFast", + "PreTrainedModel", + "PreTrainedTokenizerFast", + "CLIPTextModel", + "CLIPTextModelWithProjection", + "CLIPTokenizer", + "CLIPVisionModelWithProjection", + "SiglipImageProcessor", + "SiglipVisionModel", + "Qwen2TokenizerFast", + "Qwen3ForCausalLM", + "Qwen3Model", + "Qwen3VLForConditionalGeneration", + "Qwen3VLProcessor", + "AutoProcessor", + "AutoModelForImageTextToText", + "Idefics3ForConditionalGeneration", + "Idefics3Processor", + "AutoModelForMultimodalLM", + "JanusForConditionalGeneration", + "JanusProcessor", + "JanusImageProcessor", + "AutoModelForSpeechSeq2Seq", + "AutoModelForCTC", + "AnyToAnyPipeline", + "pipeline", + "Mistral3Model", + "Mistral3ForConditionalGeneration", + "Ministral3ForCausalLM", + "GlmImageForConditionalGeneration", + "GlmImageProcessor", + "ByT5Tokenizer", + "BitsAndBytesConfig", + "GemmaModel", + "Gemma2Model", + "GemmaPreTrainedModel", + "Gemma2PreTrainedModel", + "GemmaTokenizer", + "GemmaTokenizerFast", + "transformers.models.t5gemma.modeling_t5gemma:T5GemmaEncoder", + "LlamaTokenizer", + "LlamaTokenizerFast", + "transformers.core_model_loading:tqdm", + "transformers.utils.logging:tqdm", + "transformers.utils.logging:get_verbosity", + "transformers.utils.logging:set_verbosity" + ], + "requiredVersion": "5.17.0", + "requirement": "transformers==5.17.0", + "role": "runtime_root", + "status": "wrong_version" + }, + { + "distribution": "peft", + "distributionUrl": "https://pypi.org/project/peft/", + "importName": "peft", + "installedVersion": "0.21.2", + "license": "Apache-2.0", + "projectUrl": "https://github.com/huggingface/peft", + "publisher": "Hugging Face", + "requiredClassSymbols": [ + "LoraConfig", + "PeftConfig", + "PeftModel", + "tuners.tuners_utils.BaseTunerLayer", + "tuners.lora.layer.LoraLayer" + ], + "requiredSymbols": [ + "LoraConfig", + "PeftConfig", + "PeftModel", + "inject_adapter_in_model", + "set_peft_model_state_dict", + "tuners.tuners_utils.BaseTunerLayer", + "tuners.lora.layer.LoraLayer", + "utils.other._get_submodules", + "utils.save_and_load.get_peft_model_state_dict", + "peft.utils.hotswap:check_hotswap_configs_compatible", + "peft.utils.hotswap:hotswap_adapter_from_state_dict", + "peft.utils.hotswap:prepare_model_for_compiled_hotswap" + ], + "requiredVersion": "0.20.0", + "requirement": "peft==0.20.0", + "role": "runtime_root", + "status": "wrong_version" + } + ], + "pipelineAdapterMethods": [ + { + "method": "load_lora_weights", + "requiredParameters": ["pretrained_model_name_or_path_or_dict", "adapter_name", "hotswap"] + }, + { "method": "set_adapters", "requiredParameters": ["adapter_names", "adapter_weights"] }, + { "method": "delete_adapters", "requiredParameters": ["adapter_names"] }, + { "method": "fuse_lora", "requiredParameters": ["components", "lora_scale", "safe_fusing", "adapter_names"] }, + { "method": "unfuse_lora", "requiredParameters": ["components"] }, + { "method": "unload_lora_weights", "requiredParameters": [] }, + { "method": "get_list_adapters", "requiredParameters": [] }, + { "method": "enable_lora_hotswap", "requiredParameters": ["kwargs"] } + ], + "pipelineAdapterSymbols": [ + "AceStepPipeline", + "FluxPipeline", + "Flux2KleinPipeline", + "LTXConditionPipeline", + "QwenImagePipeline", + "QwenImageControlNetPipeline", + "QwenImageLayeredPipeline", + "QwenImageEditPipeline", + "QwenImageEditPlusPipeline", + "QwenImageImg2ImgPipeline", + "QwenImageInpaintPipeline", + "ChromaImg2ImgPipeline", + "ChromaInpaintPipeline", + "LTX2Pipeline", + "StableDiffusionXLPipeline", + "StableDiffusionXLImg2ImgPipeline", + "StableDiffusionXLInpaintPipeline", + "ZImageImg2ImgPipeline", + "ZImageInpaintPipeline", + "FluxImg2ImgPipeline", + "FluxInpaintPipeline", + "FluxKontextInpaintPipeline", + "Flux2KleinInpaintPipeline", + "WanPipeline" + ], + "platform": "windows", + "requirePeftBackend": true, + "requiredDiffusersSymbols": [ + "ComponentSpec", + "ComponentsManager", + "ModularPipeline", + "AutoencoderKLWan", + "BitsAndBytesConfig", + "QwenImagePipeline", + "QwenImageControlNetModel", + "QwenImageControlNetPipeline", + "QwenImageLayeredPipeline", + "QwenImageEditPipeline", + "QwenImageEditPlusPipeline", + "QwenImageImg2ImgPipeline", + "QwenImageInpaintPipeline", + "QwenImageEditInpaintPipeline", + "ChromaImg2ImgPipeline", + "ChromaInpaintPipeline", + "LTX2Pipeline", + "QwenImageModularPipeline", + "QwenImageEditModularPipeline", + "QwenImageEditPlusModularPipeline", + "QwenImageLayeredModularPipeline", + "MiniMaxMusic3ModularPipeline", + "AnimateDiffPAGPipeline", + "AnimateDiffVideoToVideoPipeline", + "AnimateDiffControlNetPipeline", + "AnimateDiffVideoToVideoControlNetPipeline", + "CogVideoXVideoToVideoPipeline", + "WanVACEPipeline", + "WanVideoToVideoPipeline", + "WanPipeline", + "WanImageToVideoPipeline", + "WanModularPipeline", + "WanImage2VideoModularPipeline", + "LTXConditionPipeline", + "AceStepPipeline", + "StableAudioPipeline", + "LongCatAudioDiTPipeline", + "AudioLDM2Pipeline", + "ShapEPipeline", + "ShapEImg2ImgPipeline", + "StableDiffusionXLModularPipeline", + "StableDiffusionXLPipeline", + "StableDiffusionXLImg2ImgPipeline", + "StableDiffusionXLInpaintPipeline", + "StableDiffusionControlNetPipeline", + "StableDiffusionControlNetImg2ImgPipeline", + "StableDiffusionControlNetInpaintPipeline", + "StableDiffusionControlNetPAGPipeline", + "StableDiffusionControlNetPAGInpaintPipeline", + "StableDiffusionXLControlNetPipeline", + "StableDiffusionXLControlNetImg2ImgPipeline", + "StableDiffusionXLControlNetInpaintPipeline", + "StableDiffusionXLControlNetPAGPipeline", + "StableDiffusionXLControlNetPAGImg2ImgPipeline", + "ZImageImg2ImgPipeline", + "ZImageInpaintPipeline", + "FluxImg2ImgPipeline", + "FluxInpaintPipeline", + "FluxPipeline", + "Flux2KleinPipeline", + "Flux2KleinInpaintPipeline", + "FluxKontextPipeline", + "FluxKontextInpaintPipeline", + "FluxFillPipeline", + "FluxControlPipeline", + "FluxControlImg2ImgPipeline", + "FluxControlInpaintPipeline", + "FluxPriorReduxPipeline", + "FluxModularPipeline", + "FluxKontextModularPipeline", + "Flux2KleinModularPipeline", + "ErnieImagePipeline", + "ErnieImageTransformer2DModel", + "AutoencoderKLFlux2", + "GlmImagePipeline", + "GlmImageTransformer2DModel", + "HunyuanDiTPipeline", + "HunyuanDiTControlNetPipeline", + "HunyuanDiT2DModel", + "HunyuanDiT2DControlNetModel", + "JoyImageEditPipeline", + "JoyImageEditPlusPipeline", + "JoyImageEditTransformer3DModel", + "JoyImageEditPlusTransformer3DModel", + "Kandinsky3Pipeline", + "Kandinsky3Img2ImgPipeline", + "Kandinsky3UNet", + "LongCatImagePipeline", + "LongCatImageEditPipeline", + "LongCatImageTransformer2DModel", + "LuminaPipeline", + "LuminaNextDiT2DModel", + "Lumina2Pipeline", + "Lumina2Transformer2DModel", + "OmniGenPipeline", + "OmniGenTransformer2DModel", + "OvisImagePipeline", + "OvisImageTransformer2DModel", + "PRXPipeline", + "PRXTransformer2DModel", + "NucleusMoEImagePipeline", + "NucleusMoEImageTransformer2DModel", + "AutoencoderKLQwenImage", + "QwenImage21Pipeline", + "QwenImage21Transformer2DModel", + "AutoencoderKLQwenImage21" + ], + "requirements": ["transformers==5.17.0", "peft==0.20.0"], + "satisfiesProfiles": [ + { + "id": "huggingface-transformers-peft-5.14.1-0.20.0", + "specDigest": "sha256:b8a09a45113dd14c56688e4cae7592174b61683846f4b03da1117920125af5ee" + }, + { + "id": "huggingface-transformers-main-96fe6dce-peft-0.20.0", + "specDigest": "sha256:cb2440a5034b7c6962e82567a354f0afc13bfe7751cbaa8b8f84791d4172eafe" + } + ], + "schemaVersion": 1, + "specDigest": "sha256:3ab9ce98b19d6246f3861cc23941f669f06228369b0e679cebe55970e7df92c3", + "stagedPackages": [ + { + "distribution": "transformers", + "distributionUrl": "https://pypi.org/project/transformers/", + "importName": "transformers", + "license": "Apache-2.0", + "projectUrl": "https://github.com/huggingface/transformers", + "publisher": "Hugging Face", + "requiredClassSymbols": [ + "Qwen2_5_VLForConditionalGeneration", + "Qwen2Tokenizer", + "Qwen2VLProcessor", + "AutoConfig", + "AutoTokenizer", + "AutoModelForCausalLM", + "LlamaForCausalLM", + "CLIPImageProcessor", + "CLIPVisionModel", + "UMT5EncoderModel", + "T5EncoderModel", + "T5Tokenizer", + "T5TokenizerFast", + "PreTrainedModel", + "PreTrainedTokenizerFast", + "CLIPTextModel", + "CLIPTextModelWithProjection", + "CLIPTokenizer", + "CLIPVisionModelWithProjection", + "SiglipImageProcessor", + "SiglipVisionModel", + "Qwen2TokenizerFast", + "Qwen3ForCausalLM", + "Qwen3Model", + "Qwen3VLForConditionalGeneration", + "Qwen3VLProcessor", + "AutoProcessor", + "AutoModelForImageTextToText", + "Idefics3ForConditionalGeneration", + "Idefics3Processor", + "AutoModelForMultimodalLM", + "JanusForConditionalGeneration", + "JanusProcessor", + "JanusImageProcessor", + "AutoModelForSpeechSeq2Seq", + "AutoModelForCTC", + "AnyToAnyPipeline", + "Mistral3Model", + "Mistral3ForConditionalGeneration", + "Ministral3ForCausalLM", + "GlmImageForConditionalGeneration", + "GlmImageProcessor", + "ByT5Tokenizer", + "BitsAndBytesConfig", + "GemmaModel", + "Gemma2Model", + "GemmaPreTrainedModel", + "Gemma2PreTrainedModel", + "GemmaTokenizer", + "GemmaTokenizerFast", + "transformers.models.t5gemma.modeling_t5gemma:T5GemmaEncoder", + "LlamaTokenizer", + "LlamaTokenizerFast" + ], + "requiredSymbols": [ + "Qwen2_5_VLForConditionalGeneration", + "Qwen2Tokenizer", + "Qwen2VLProcessor", + "AutoConfig", + "AutoTokenizer", + "AutoModelForCausalLM", + "LlamaForCausalLM", + "CLIPImageProcessor", + "CLIPVisionModel", + "UMT5EncoderModel", + "T5EncoderModel", + "T5Tokenizer", + "T5TokenizerFast", + "PreTrainedModel", + "PreTrainedTokenizerFast", + "CLIPTextModel", + "CLIPTextModelWithProjection", + "CLIPTokenizer", + "CLIPVisionModelWithProjection", + "SiglipImageProcessor", + "SiglipVisionModel", + "Qwen2TokenizerFast", + "Qwen3ForCausalLM", + "Qwen3Model", + "Qwen3VLForConditionalGeneration", + "Qwen3VLProcessor", + "AutoProcessor", + "AutoModelForImageTextToText", + "Idefics3ForConditionalGeneration", + "Idefics3Processor", + "AutoModelForMultimodalLM", + "JanusForConditionalGeneration", + "JanusProcessor", + "JanusImageProcessor", + "AutoModelForSpeechSeq2Seq", + "AutoModelForCTC", + "AnyToAnyPipeline", + "pipeline", + "Mistral3Model", + "Mistral3ForConditionalGeneration", + "Ministral3ForCausalLM", + "GlmImageForConditionalGeneration", + "GlmImageProcessor", + "ByT5Tokenizer", + "BitsAndBytesConfig", + "GemmaModel", + "Gemma2Model", + "GemmaPreTrainedModel", + "Gemma2PreTrainedModel", + "GemmaTokenizer", + "GemmaTokenizerFast", + "transformers.models.t5gemma.modeling_t5gemma:T5GemmaEncoder", + "LlamaTokenizer", + "LlamaTokenizerFast", + "transformers.core_model_loading:tqdm", + "transformers.utils.logging:tqdm", + "transformers.utils.logging:get_verbosity", + "transformers.utils.logging:set_verbosity" + ], + "requiredVersion": "5.17.0", + "requirement": "transformers==5.17.0", + "role": "runtime_root" + }, + { + "distribution": "peft", + "distributionUrl": "https://pypi.org/project/peft/", + "importName": "peft", + "license": "Apache-2.0", + "projectUrl": "https://github.com/huggingface/peft", + "publisher": "Hugging Face", + "requiredClassSymbols": [ + "LoraConfig", + "PeftConfig", + "PeftModel", + "tuners.tuners_utils.BaseTunerLayer", + "tuners.lora.layer.LoraLayer" + ], + "requiredSymbols": [ + "LoraConfig", + "PeftConfig", + "PeftModel", + "inject_adapter_in_model", + "set_peft_model_state_dict", + "tuners.tuners_utils.BaseTunerLayer", + "tuners.lora.layer.LoraLayer", + "utils.other._get_submodules", + "utils.save_and_load.get_peft_model_state_dict", + "peft.utils.hotswap:check_hotswap_configs_compatible", + "peft.utils.hotswap:hotswap_adapter_from_state_dict", + "peft.utils.hotswap:prepare_model_for_compiled_hotswap" + ], + "requiredVersion": "0.20.0", + "requirement": "peft==0.20.0", + "role": "runtime_root" + }, + { + "distribution": "tokenizers", + "distributionUrl": "https://pypi.org/project/tokenizers/", + "importName": "tokenizers", + "license": "Apache-2.0", + "projectUrl": "https://github.com/huggingface/tokenizers", + "publisher": "Hugging Face", + "requiredClassSymbols": ["Tokenizer", "tokenizers.tokenizers:Tokenizer"], + "requiredSymbols": ["Tokenizer", "tokenizers.tokenizers:Tokenizer"], + "requiredVersion": "0.23.1", + "requirement": "tokenizers==0.23.1", + "role": "runtime_dependency" + }, + { + "distribution": "typer", + "distributionUrl": "https://pypi.org/project/typer/", + "importName": "typer", + "license": "MIT", + "projectUrl": "https://github.com/fastapi/typer", + "publisher": "FastAPI", + "requiredClassSymbols": ["Typer"], + "requiredSymbols": ["Typer"], + "requiredVersion": "0.27.1", + "requirement": "typer==0.27.1", + "role": "runtime_dependency" + }, + { + "distribution": "annotated-doc", + "distributionUrl": "https://pypi.org/project/annotated-doc/", + "importName": "annotated_doc", + "license": "MIT", + "projectUrl": "https://github.com/fastapi/annotated-doc", + "publisher": "FastAPI", + "requiredClassSymbols": ["Doc"], + "requiredSymbols": ["Doc"], + "requiredVersion": "0.0.5", + "requirement": "annotated-doc==0.0.5", + "role": "runtime_dependency" + }, + { + "distribution": "rich", + "distributionUrl": "https://pypi.org/project/rich/", + "importName": "rich", + "license": "MIT", + "projectUrl": "https://github.com/Textualize/rich", + "publisher": "Textualize", + "requiredClassSymbols": [], + "requiredSymbols": ["print"], + "requiredVersion": "15.0.0", + "requirement": "rich==15.0.0", + "role": "runtime_dependency" + }, + { + "distribution": "markdown-it-py", + "distributionUrl": "https://pypi.org/project/markdown-it-py/", + "importName": "markdown_it", + "license": "MIT", + "projectUrl": "https://github.com/executablebooks/markdown-it-py", + "publisher": "Executable Books", + "requiredClassSymbols": ["MarkdownIt"], + "requiredSymbols": ["MarkdownIt"], + "requiredVersion": "4.2.0", + "requirement": "markdown-it-py==4.2.0", + "role": "runtime_dependency" + }, + { + "distribution": "mdurl", + "distributionUrl": "https://pypi.org/project/mdurl/", + "importName": "mdurl", + "license": "MIT", + "projectUrl": "https://github.com/executablebooks/mdurl", + "publisher": "Executable Books", + "requiredClassSymbols": [], + "requiredSymbols": ["encode"], + "requiredVersion": "0.1.2", + "requirement": "mdurl==0.1.2", + "role": "runtime_dependency" + }, + { + "distribution": "pygments", + "distributionUrl": "https://pypi.org/project/Pygments/", + "importName": "pygments", + "license": "BSD-2-Clause", + "projectUrl": "https://github.com/pygments/pygments", + "publisher": "Pygments", + "requiredClassSymbols": [], + "requiredSymbols": ["highlight"], + "requiredVersion": "2.20.0", + "requirement": "pygments==2.20.0", + "role": "runtime_dependency" + }, + { + "distribution": "shellingham", + "distributionUrl": "https://pypi.org/project/shellingham/", + "importName": "shellingham", + "license": "ISC", + "projectUrl": "https://github.com/sarugaku/shellingham", + "publisher": "Sarugaku", + "requiredClassSymbols": [], + "requiredSymbols": ["detect_shell"], + "requiredVersion": "1.5.4", + "requirement": "shellingham==1.5.4", + "role": "runtime_dependency" + } + ], + "stagedRequirements": [ + "transformers==5.17.0", + "peft==0.20.0", + "tokenizers==0.23.1", + "typer==0.27.1", + "annotated-doc==0.0.5", + "rich==15.0.0", + "markdown-it-py==4.2.0", + "mdurl==0.1.2", + "pygments==2.20.0", + "shellingham==1.5.4" + ], + "status": "wrong_version", + "targetContracts": [ + { + "activationAvailable": true, + "contractState": "qualified", + "cutoverReady": true, + "installActionAvailable": true, + "machine": "x86_64", + "platform": "linux" + }, + { + "activationAvailable": false, + "contractState": "candidate_unqualified", + "cutoverReady": false, + "installActionAvailable": false, + "machine": "arm64", + "platform": "linux" + }, + { + "activationAvailable": false, + "contractState": "candidate_unqualified", + "cutoverReady": false, + "installActionAvailable": false, + "machine": "x86_64", + "platform": "macos" + }, + { + "activationAvailable": false, + "contractState": "candidate_unqualified", + "cutoverReady": false, + "installActionAvailable": false, + "machine": "arm64", + "platform": "macos" + }, + { + "activationAvailable": false, + "contractState": "candidate_unqualified", + "cutoverReady": false, + "installActionAvailable": false, + "machine": "x86_64", + "platform": "windows" + }, + { + "activationAvailable": false, + "contractState": "candidate_unqualified", + "cutoverReady": false, + "installActionAvailable": false, + "machine": "arm64", + "platform": "windows" + } + ] + }, + { + "activationAvailable": false, + "artifactLocks": [ + { + "byteSize": 11625234, + "distribution": "transformers", + "filename": "transformers-5.14.1-py3-none-any.whl", + "machine": "x86_64", + "platform": "linux", + "pythonTag": "cp312", + "sha256": "9db974c4079ede2d1a3ea7ca5a240df33f2cc26fc2b36ba64c5f2a4f43b6e725", + "url": "https://files.pythonhosted.org/packages/6f/67/8d85ca2323233ae3c0365a659c4e52ee1f587b440e4bc577e7d8e4416d0f/transformers-5.14.1-py3-none-any.whl", + "version": "5.14.1" + }, + { + "byteSize": 775777, + "distribution": "peft", + "filename": "peft-0.20.0-py3-none-any.whl", + "machine": "x86_64", + "platform": "linux", + "pythonTag": "cp312", + "sha256": "0fbba16ffebfad3de96e06f2da6860fd860292324b85b6141909fa1e26ea9233", + "url": "https://files.pythonhosted.org/packages/28/79/13bcabb8048126422d5c4b880575d40886c726f354db88cfeed4325525bb/peft-0.20.0-py3-none-any.whl", + "version": "0.20.0" + }, + { + "byteSize": 3274982, + "distribution": "tokenizers", + "filename": "tokenizers-0.22.2-cp39-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", + "machine": "x86_64", + "platform": "linux", + "pythonTag": "cp312", + "sha256": "369cc9fc8cc10cb24143873a0d95438bb8ee257bb80c71989e3ee290e8d72c67", + "url": "https://files.pythonhosted.org/packages/2e/76/932be4b50ef6ccedf9d3c6639b056a967a86258c6d9200643f01269211ca/tokenizers-0.22.2-cp39-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", + "version": "0.22.2" + }, + { + "byteSize": 122874, + "distribution": "typer", + "filename": "typer-0.27.1-py3-none-any.whl", + "machine": "x86_64", + "platform": "linux", + "pythonTag": "cp312", + "sha256": "53150287edd11baeb4e4722c8e394fcdf8181c0ae89485cba8d25c778d5edd56", + "url": "https://files.pythonhosted.org/packages/43/89/9518bc0c3929bee36b3a4a8e3daddd6e03f92f9961c66d4983b837160543/typer-0.27.1-py3-none-any.whl", + "version": "0.27.1" + }, + { + "byteSize": 5302, + "distribution": "annotated-doc", + "filename": "annotated_doc-0.0.5-py3-none-any.whl", + "machine": "x86_64", + "platform": "linux", + "pythonTag": "cp312", + "sha256": "117bac03a25ede5df5440e855b32d556049ca169ead221505badf432fed4b101", + "url": "https://files.pythonhosted.org/packages/3e/30/e900b21425a860e195f32e37657aa1f7c7f2b1bfb26f03ca209b90933c06/annotated_doc-0.0.5-py3-none-any.whl", + "version": "0.0.5" + }, + { + "byteSize": 310654, + "distribution": "rich", + "filename": "rich-15.0.0-py3-none-any.whl", + "machine": "x86_64", + "platform": "linux", + "pythonTag": "cp312", + "sha256": "33bd4ef74232fb73fe9279a257718407f169c09b78a87ad3d296f548e27de0bb", + "url": "https://files.pythonhosted.org/packages/82/3b/64d4899d73f91ba49a8c18a8ff3f0ea8f1c1d75481760df8c68ef5235bf5/rich-15.0.0-py3-none-any.whl", + "version": "15.0.0" + }, + { + "byteSize": 91687, + "distribution": "markdown-it-py", + "filename": "markdown_it_py-4.2.0-py3-none-any.whl", + "machine": "x86_64", + "platform": "linux", + "pythonTag": "cp312", + "sha256": "9f7ebbcd14fe59494226453aed97c1070d83f8d24b6fc3a3bcf9a38092641c4a", + "url": "https://files.pythonhosted.org/packages/b3/81/4da04ced5a082363ecfa159c010d200ecbd959ae410c10c0264a38cac0f5/markdown_it_py-4.2.0-py3-none-any.whl", + "version": "4.2.0" + }, + { + "byteSize": 9979, + "distribution": "mdurl", + "filename": "mdurl-0.1.2-py3-none-any.whl", + "machine": "x86_64", + "platform": "linux", + "pythonTag": "cp312", + "sha256": "84008a41e51615a49fc9966191ff91509e3c40b939176e643fd50a5c2196b8f8", + "url": "https://files.pythonhosted.org/packages/b3/38/89ba8ad64ae25be8de66a6d463314cf1eb366222074cfda9ee839c56a4b4/mdurl-0.1.2-py3-none-any.whl", + "version": "0.1.2" + }, + { + "byteSize": 1231151, + "distribution": "pygments", + "filename": "pygments-2.20.0-py3-none-any.whl", + "machine": "x86_64", + "platform": "linux", + "pythonTag": "cp312", + "sha256": "81a9e26dd42fd28a23a2d169d86d7ac03b46e2f8b59ed4698fb4785f946d0176", + "url": "https://files.pythonhosted.org/packages/f4/7e/a72dd26f3b0f4f2bf1dd8923c85f7ceb43172af56d63c7383eb62b332364/pygments-2.20.0-py3-none-any.whl", + "version": "2.20.0" + }, + { + "byteSize": 9755, + "distribution": "shellingham", + "filename": "shellingham-1.5.4-py2.py3-none-any.whl", + "machine": "x86_64", + "platform": "linux", + "pythonTag": "cp312", + "sha256": "7ecfff8f2fd72616f7481040475a65b2bf8af90a56c89140852d1120324e8686", + "url": "https://files.pythonhosted.org/packages/e0/f9/0595336914c5619e5f28a1fb793285925a8cd4b432c9da0a987836c7f822/shellingham-1.5.4-py2.py3-none-any.whl", + "version": "1.5.4" + }, + { + "byteSize": 11625234, + "distribution": "transformers", + "filename": "transformers-5.14.1-py3-none-any.whl", + "machine": "arm64", + "platform": "linux", + "pythonTag": "cp312", + "sha256": "9db974c4079ede2d1a3ea7ca5a240df33f2cc26fc2b36ba64c5f2a4f43b6e725", + "url": "https://files.pythonhosted.org/packages/6f/67/8d85ca2323233ae3c0365a659c4e52ee1f587b440e4bc577e7d8e4416d0f/transformers-5.14.1-py3-none-any.whl", + "version": "5.14.1" + }, + { + "byteSize": 775777, + "distribution": "peft", + "filename": "peft-0.20.0-py3-none-any.whl", + "machine": "arm64", + "platform": "linux", + "pythonTag": "cp312", + "sha256": "0fbba16ffebfad3de96e06f2da6860fd860292324b85b6141909fa1e26ea9233", + "url": "https://files.pythonhosted.org/packages/28/79/13bcabb8048126422d5c4b880575d40886c726f354db88cfeed4325525bb/peft-0.20.0-py3-none-any.whl", + "version": "0.20.0" + }, + { + "byteSize": 3290736, + "distribution": "tokenizers", + "filename": "tokenizers-0.22.2-cp39-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", + "machine": "arm64", + "platform": "linux", + "pythonTag": "cp312", + "sha256": "2249487018adec45d6e3554c71d46eb39fa8ea67156c640f7513eb26f318cec7", + "url": "https://files.pythonhosted.org/packages/d6/84/7990e799f1309a8b87af6b948f31edaa12a3ed22d11b352eaf4f4b2e5753/tokenizers-0.22.2-cp39-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", + "version": "0.22.2" + }, + { + "byteSize": 122874, + "distribution": "typer", + "filename": "typer-0.27.1-py3-none-any.whl", + "machine": "arm64", + "platform": "linux", + "pythonTag": "cp312", + "sha256": "53150287edd11baeb4e4722c8e394fcdf8181c0ae89485cba8d25c778d5edd56", + "url": "https://files.pythonhosted.org/packages/43/89/9518bc0c3929bee36b3a4a8e3daddd6e03f92f9961c66d4983b837160543/typer-0.27.1-py3-none-any.whl", + "version": "0.27.1" + }, + { + "byteSize": 5302, + "distribution": "annotated-doc", + "filename": "annotated_doc-0.0.5-py3-none-any.whl", + "machine": "arm64", + "platform": "linux", + "pythonTag": "cp312", + "sha256": "117bac03a25ede5df5440e855b32d556049ca169ead221505badf432fed4b101", + "url": "https://files.pythonhosted.org/packages/3e/30/e900b21425a860e195f32e37657aa1f7c7f2b1bfb26f03ca209b90933c06/annotated_doc-0.0.5-py3-none-any.whl", + "version": "0.0.5" + }, + { + "byteSize": 310654, + "distribution": "rich", + "filename": "rich-15.0.0-py3-none-any.whl", + "machine": "arm64", + "platform": "linux", + "pythonTag": "cp312", + "sha256": "33bd4ef74232fb73fe9279a257718407f169c09b78a87ad3d296f548e27de0bb", + "url": "https://files.pythonhosted.org/packages/82/3b/64d4899d73f91ba49a8c18a8ff3f0ea8f1c1d75481760df8c68ef5235bf5/rich-15.0.0-py3-none-any.whl", + "version": "15.0.0" + }, + { + "byteSize": 91687, + "distribution": "markdown-it-py", + "filename": "markdown_it_py-4.2.0-py3-none-any.whl", + "machine": "arm64", + "platform": "linux", + "pythonTag": "cp312", + "sha256": "9f7ebbcd14fe59494226453aed97c1070d83f8d24b6fc3a3bcf9a38092641c4a", + "url": "https://files.pythonhosted.org/packages/b3/81/4da04ced5a082363ecfa159c010d200ecbd959ae410c10c0264a38cac0f5/markdown_it_py-4.2.0-py3-none-any.whl", + "version": "4.2.0" + }, + { + "byteSize": 9979, + "distribution": "mdurl", + "filename": "mdurl-0.1.2-py3-none-any.whl", + "machine": "arm64", + "platform": "linux", + "pythonTag": "cp312", + "sha256": "84008a41e51615a49fc9966191ff91509e3c40b939176e643fd50a5c2196b8f8", + "url": "https://files.pythonhosted.org/packages/b3/38/89ba8ad64ae25be8de66a6d463314cf1eb366222074cfda9ee839c56a4b4/mdurl-0.1.2-py3-none-any.whl", + "version": "0.1.2" + }, + { + "byteSize": 1231151, + "distribution": "pygments", + "filename": "pygments-2.20.0-py3-none-any.whl", + "machine": "arm64", + "platform": "linux", + "pythonTag": "cp312", + "sha256": "81a9e26dd42fd28a23a2d169d86d7ac03b46e2f8b59ed4698fb4785f946d0176", + "url": "https://files.pythonhosted.org/packages/f4/7e/a72dd26f3b0f4f2bf1dd8923c85f7ceb43172af56d63c7383eb62b332364/pygments-2.20.0-py3-none-any.whl", + "version": "2.20.0" + }, + { + "byteSize": 9755, + "distribution": "shellingham", + "filename": "shellingham-1.5.4-py2.py3-none-any.whl", + "machine": "arm64", + "platform": "linux", + "pythonTag": "cp312", + "sha256": "7ecfff8f2fd72616f7481040475a65b2bf8af90a56c89140852d1120324e8686", + "url": "https://files.pythonhosted.org/packages/e0/f9/0595336914c5619e5f28a1fb793285925a8cd4b432c9da0a987836c7f822/shellingham-1.5.4-py2.py3-none-any.whl", + "version": "1.5.4" + }, + { + "byteSize": 11625234, + "distribution": "transformers", + "filename": "transformers-5.14.1-py3-none-any.whl", + "machine": "x86_64", + "platform": "macos", + "pythonTag": "cp312", + "sha256": "9db974c4079ede2d1a3ea7ca5a240df33f2cc26fc2b36ba64c5f2a4f43b6e725", + "url": "https://files.pythonhosted.org/packages/6f/67/8d85ca2323233ae3c0365a659c4e52ee1f587b440e4bc577e7d8e4416d0f/transformers-5.14.1-py3-none-any.whl", + "version": "5.14.1" + }, + { + "byteSize": 775777, + "distribution": "peft", + "filename": "peft-0.20.0-py3-none-any.whl", + "machine": "x86_64", + "platform": "macos", + "pythonTag": "cp312", + "sha256": "0fbba16ffebfad3de96e06f2da6860fd860292324b85b6141909fa1e26ea9233", + "url": "https://files.pythonhosted.org/packages/28/79/13bcabb8048126422d5c4b880575d40886c726f354db88cfeed4325525bb/peft-0.20.0-py3-none-any.whl", + "version": "0.20.0" + }, + { + "byteSize": 3100275, + "distribution": "tokenizers", + "filename": "tokenizers-0.22.2-cp39-abi3-macosx_10_12_x86_64.whl", + "machine": "x86_64", + "platform": "macos", + "pythonTag": "cp312", + "sha256": "544dd704ae7238755d790de45ba8da072e9af3eea688f698b137915ae959281c", + "url": "https://files.pythonhosted.org/packages/92/97/5dbfabf04c7e348e655e907ed27913e03db0923abb5dfdd120d7b25630e1/tokenizers-0.22.2-cp39-abi3-macosx_10_12_x86_64.whl", + "version": "0.22.2" + }, + { + "byteSize": 122874, + "distribution": "typer", + "filename": "typer-0.27.1-py3-none-any.whl", + "machine": "x86_64", + "platform": "macos", + "pythonTag": "cp312", + "sha256": "53150287edd11baeb4e4722c8e394fcdf8181c0ae89485cba8d25c778d5edd56", + "url": "https://files.pythonhosted.org/packages/43/89/9518bc0c3929bee36b3a4a8e3daddd6e03f92f9961c66d4983b837160543/typer-0.27.1-py3-none-any.whl", + "version": "0.27.1" + }, + { + "byteSize": 5302, + "distribution": "annotated-doc", + "filename": "annotated_doc-0.0.5-py3-none-any.whl", + "machine": "x86_64", + "platform": "macos", + "pythonTag": "cp312", + "sha256": "117bac03a25ede5df5440e855b32d556049ca169ead221505badf432fed4b101", + "url": "https://files.pythonhosted.org/packages/3e/30/e900b21425a860e195f32e37657aa1f7c7f2b1bfb26f03ca209b90933c06/annotated_doc-0.0.5-py3-none-any.whl", + "version": "0.0.5" + }, + { + "byteSize": 310654, + "distribution": "rich", + "filename": "rich-15.0.0-py3-none-any.whl", + "machine": "x86_64", + "platform": "macos", + "pythonTag": "cp312", + "sha256": "33bd4ef74232fb73fe9279a257718407f169c09b78a87ad3d296f548e27de0bb", + "url": "https://files.pythonhosted.org/packages/82/3b/64d4899d73f91ba49a8c18a8ff3f0ea8f1c1d75481760df8c68ef5235bf5/rich-15.0.0-py3-none-any.whl", + "version": "15.0.0" + }, + { + "byteSize": 91687, + "distribution": "markdown-it-py", + "filename": "markdown_it_py-4.2.0-py3-none-any.whl", + "machine": "x86_64", + "platform": "macos", + "pythonTag": "cp312", + "sha256": "9f7ebbcd14fe59494226453aed97c1070d83f8d24b6fc3a3bcf9a38092641c4a", + "url": "https://files.pythonhosted.org/packages/b3/81/4da04ced5a082363ecfa159c010d200ecbd959ae410c10c0264a38cac0f5/markdown_it_py-4.2.0-py3-none-any.whl", + "version": "4.2.0" + }, + { + "byteSize": 9979, + "distribution": "mdurl", + "filename": "mdurl-0.1.2-py3-none-any.whl", + "machine": "x86_64", + "platform": "macos", + "pythonTag": "cp312", + "sha256": "84008a41e51615a49fc9966191ff91509e3c40b939176e643fd50a5c2196b8f8", + "url": "https://files.pythonhosted.org/packages/b3/38/89ba8ad64ae25be8de66a6d463314cf1eb366222074cfda9ee839c56a4b4/mdurl-0.1.2-py3-none-any.whl", + "version": "0.1.2" + }, + { + "byteSize": 1231151, + "distribution": "pygments", + "filename": "pygments-2.20.0-py3-none-any.whl", + "machine": "x86_64", + "platform": "macos", + "pythonTag": "cp312", + "sha256": "81a9e26dd42fd28a23a2d169d86d7ac03b46e2f8b59ed4698fb4785f946d0176", + "url": "https://files.pythonhosted.org/packages/f4/7e/a72dd26f3b0f4f2bf1dd8923c85f7ceb43172af56d63c7383eb62b332364/pygments-2.20.0-py3-none-any.whl", + "version": "2.20.0" + }, + { + "byteSize": 9755, + "distribution": "shellingham", + "filename": "shellingham-1.5.4-py2.py3-none-any.whl", + "machine": "x86_64", + "platform": "macos", + "pythonTag": "cp312", + "sha256": "7ecfff8f2fd72616f7481040475a65b2bf8af90a56c89140852d1120324e8686", + "url": "https://files.pythonhosted.org/packages/e0/f9/0595336914c5619e5f28a1fb793285925a8cd4b432c9da0a987836c7f822/shellingham-1.5.4-py2.py3-none-any.whl", + "version": "1.5.4" + }, + { + "byteSize": 11625234, + "distribution": "transformers", + "filename": "transformers-5.14.1-py3-none-any.whl", + "machine": "arm64", + "platform": "macos", + "pythonTag": "cp312", + "sha256": "9db974c4079ede2d1a3ea7ca5a240df33f2cc26fc2b36ba64c5f2a4f43b6e725", + "url": "https://files.pythonhosted.org/packages/6f/67/8d85ca2323233ae3c0365a659c4e52ee1f587b440e4bc577e7d8e4416d0f/transformers-5.14.1-py3-none-any.whl", + "version": "5.14.1" + }, + { + "byteSize": 775777, + "distribution": "peft", + "filename": "peft-0.20.0-py3-none-any.whl", + "machine": "arm64", + "platform": "macos", + "pythonTag": "cp312", + "sha256": "0fbba16ffebfad3de96e06f2da6860fd860292324b85b6141909fa1e26ea9233", + "url": "https://files.pythonhosted.org/packages/28/79/13bcabb8048126422d5c4b880575d40886c726f354db88cfeed4325525bb/peft-0.20.0-py3-none-any.whl", + "version": "0.20.0" + }, + { + "byteSize": 2981472, + "distribution": "tokenizers", + "filename": "tokenizers-0.22.2-cp39-abi3-macosx_11_0_arm64.whl", + "machine": "arm64", + "platform": "macos", + "pythonTag": "cp312", + "sha256": "1e418a55456beedca4621dbab65a318981467a2b188e982a23e117f115ce5001", + "url": "https://files.pythonhosted.org/packages/2e/47/174dca0502ef88b28f1c9e06b73ce33500eedfac7a7692108aec220464e7/tokenizers-0.22.2-cp39-abi3-macosx_11_0_arm64.whl", + "version": "0.22.2" + }, + { + "byteSize": 122874, + "distribution": "typer", + "filename": "typer-0.27.1-py3-none-any.whl", + "machine": "arm64", + "platform": "macos", + "pythonTag": "cp312", + "sha256": "53150287edd11baeb4e4722c8e394fcdf8181c0ae89485cba8d25c778d5edd56", + "url": "https://files.pythonhosted.org/packages/43/89/9518bc0c3929bee36b3a4a8e3daddd6e03f92f9961c66d4983b837160543/typer-0.27.1-py3-none-any.whl", + "version": "0.27.1" + }, + { + "byteSize": 5302, + "distribution": "annotated-doc", + "filename": "annotated_doc-0.0.5-py3-none-any.whl", + "machine": "arm64", + "platform": "macos", + "pythonTag": "cp312", + "sha256": "117bac03a25ede5df5440e855b32d556049ca169ead221505badf432fed4b101", + "url": "https://files.pythonhosted.org/packages/3e/30/e900b21425a860e195f32e37657aa1f7c7f2b1bfb26f03ca209b90933c06/annotated_doc-0.0.5-py3-none-any.whl", + "version": "0.0.5" + }, + { + "byteSize": 310654, + "distribution": "rich", + "filename": "rich-15.0.0-py3-none-any.whl", + "machine": "arm64", + "platform": "macos", + "pythonTag": "cp312", + "sha256": "33bd4ef74232fb73fe9279a257718407f169c09b78a87ad3d296f548e27de0bb", + "url": "https://files.pythonhosted.org/packages/82/3b/64d4899d73f91ba49a8c18a8ff3f0ea8f1c1d75481760df8c68ef5235bf5/rich-15.0.0-py3-none-any.whl", + "version": "15.0.0" + }, + { + "byteSize": 91687, + "distribution": "markdown-it-py", + "filename": "markdown_it_py-4.2.0-py3-none-any.whl", + "machine": "arm64", + "platform": "macos", + "pythonTag": "cp312", + "sha256": "9f7ebbcd14fe59494226453aed97c1070d83f8d24b6fc3a3bcf9a38092641c4a", + "url": "https://files.pythonhosted.org/packages/b3/81/4da04ced5a082363ecfa159c010d200ecbd959ae410c10c0264a38cac0f5/markdown_it_py-4.2.0-py3-none-any.whl", + "version": "4.2.0" + }, + { + "byteSize": 9979, + "distribution": "mdurl", + "filename": "mdurl-0.1.2-py3-none-any.whl", + "machine": "arm64", + "platform": "macos", + "pythonTag": "cp312", + "sha256": "84008a41e51615a49fc9966191ff91509e3c40b939176e643fd50a5c2196b8f8", + "url": "https://files.pythonhosted.org/packages/b3/38/89ba8ad64ae25be8de66a6d463314cf1eb366222074cfda9ee839c56a4b4/mdurl-0.1.2-py3-none-any.whl", + "version": "0.1.2" + }, + { + "byteSize": 1231151, + "distribution": "pygments", + "filename": "pygments-2.20.0-py3-none-any.whl", + "machine": "arm64", + "platform": "macos", + "pythonTag": "cp312", + "sha256": "81a9e26dd42fd28a23a2d169d86d7ac03b46e2f8b59ed4698fb4785f946d0176", + "url": "https://files.pythonhosted.org/packages/f4/7e/a72dd26f3b0f4f2bf1dd8923c85f7ceb43172af56d63c7383eb62b332364/pygments-2.20.0-py3-none-any.whl", + "version": "2.20.0" + }, + { + "byteSize": 9755, + "distribution": "shellingham", + "filename": "shellingham-1.5.4-py2.py3-none-any.whl", + "machine": "arm64", + "platform": "macos", + "pythonTag": "cp312", + "sha256": "7ecfff8f2fd72616f7481040475a65b2bf8af90a56c89140852d1120324e8686", + "url": "https://files.pythonhosted.org/packages/e0/f9/0595336914c5619e5f28a1fb793285925a8cd4b432c9da0a987836c7f822/shellingham-1.5.4-py2.py3-none-any.whl", + "version": "1.5.4" + }, + { + "byteSize": 11625234, + "distribution": "transformers", + "filename": "transformers-5.14.1-py3-none-any.whl", + "machine": "x86_64", + "platform": "windows", + "pythonTag": "cp312", + "sha256": "9db974c4079ede2d1a3ea7ca5a240df33f2cc26fc2b36ba64c5f2a4f43b6e725", + "url": "https://files.pythonhosted.org/packages/6f/67/8d85ca2323233ae3c0365a659c4e52ee1f587b440e4bc577e7d8e4416d0f/transformers-5.14.1-py3-none-any.whl", + "version": "5.14.1" + }, + { + "byteSize": 775777, + "distribution": "peft", + "filename": "peft-0.20.0-py3-none-any.whl", + "machine": "x86_64", + "platform": "windows", + "pythonTag": "cp312", + "sha256": "0fbba16ffebfad3de96e06f2da6860fd860292324b85b6141909fa1e26ea9233", + "url": "https://files.pythonhosted.org/packages/28/79/13bcabb8048126422d5c4b880575d40886c726f354db88cfeed4325525bb/peft-0.20.0-py3-none-any.whl", + "version": "0.20.0" + }, + { + "byteSize": 2747786, + "distribution": "tokenizers", + "filename": "tokenizers-0.22.2-cp39-abi3-win_amd64.whl", + "machine": "x86_64", + "platform": "windows", + "pythonTag": "cp312", + "sha256": "c9ea31edff2968b44a88f97d784c2f16dc0729b8b143ed004699ebca91f05c48", + "url": "https://files.pythonhosted.org/packages/65/71/0670843133a43d43070abeb1949abfdef12a86d490bea9cd9e18e37c5ff7/tokenizers-0.22.2-cp39-abi3-win_amd64.whl", + "version": "0.22.2" + }, + { + "byteSize": 122874, + "distribution": "typer", + "filename": "typer-0.27.1-py3-none-any.whl", + "machine": "x86_64", + "platform": "windows", + "pythonTag": "cp312", + "sha256": "53150287edd11baeb4e4722c8e394fcdf8181c0ae89485cba8d25c778d5edd56", + "url": "https://files.pythonhosted.org/packages/43/89/9518bc0c3929bee36b3a4a8e3daddd6e03f92f9961c66d4983b837160543/typer-0.27.1-py3-none-any.whl", + "version": "0.27.1" + }, + { + "byteSize": 5302, + "distribution": "annotated-doc", + "filename": "annotated_doc-0.0.5-py3-none-any.whl", + "machine": "x86_64", + "platform": "windows", + "pythonTag": "cp312", + "sha256": "117bac03a25ede5df5440e855b32d556049ca169ead221505badf432fed4b101", + "url": "https://files.pythonhosted.org/packages/3e/30/e900b21425a860e195f32e37657aa1f7c7f2b1bfb26f03ca209b90933c06/annotated_doc-0.0.5-py3-none-any.whl", + "version": "0.0.5" + }, + { + "byteSize": 310654, + "distribution": "rich", + "filename": "rich-15.0.0-py3-none-any.whl", + "machine": "x86_64", + "platform": "windows", + "pythonTag": "cp312", + "sha256": "33bd4ef74232fb73fe9279a257718407f169c09b78a87ad3d296f548e27de0bb", + "url": "https://files.pythonhosted.org/packages/82/3b/64d4899d73f91ba49a8c18a8ff3f0ea8f1c1d75481760df8c68ef5235bf5/rich-15.0.0-py3-none-any.whl", + "version": "15.0.0" + }, + { + "byteSize": 91687, + "distribution": "markdown-it-py", + "filename": "markdown_it_py-4.2.0-py3-none-any.whl", + "machine": "x86_64", + "platform": "windows", + "pythonTag": "cp312", + "sha256": "9f7ebbcd14fe59494226453aed97c1070d83f8d24b6fc3a3bcf9a38092641c4a", + "url": "https://files.pythonhosted.org/packages/b3/81/4da04ced5a082363ecfa159c010d200ecbd959ae410c10c0264a38cac0f5/markdown_it_py-4.2.0-py3-none-any.whl", + "version": "4.2.0" + }, + { + "byteSize": 9979, + "distribution": "mdurl", + "filename": "mdurl-0.1.2-py3-none-any.whl", + "machine": "x86_64", + "platform": "windows", + "pythonTag": "cp312", + "sha256": "84008a41e51615a49fc9966191ff91509e3c40b939176e643fd50a5c2196b8f8", + "url": "https://files.pythonhosted.org/packages/b3/38/89ba8ad64ae25be8de66a6d463314cf1eb366222074cfda9ee839c56a4b4/mdurl-0.1.2-py3-none-any.whl", + "version": "0.1.2" + }, + { + "byteSize": 1231151, + "distribution": "pygments", + "filename": "pygments-2.20.0-py3-none-any.whl", + "machine": "x86_64", + "platform": "windows", + "pythonTag": "cp312", + "sha256": "81a9e26dd42fd28a23a2d169d86d7ac03b46e2f8b59ed4698fb4785f946d0176", + "url": "https://files.pythonhosted.org/packages/f4/7e/a72dd26f3b0f4f2bf1dd8923c85f7ceb43172af56d63c7383eb62b332364/pygments-2.20.0-py3-none-any.whl", + "version": "2.20.0" + }, + { + "byteSize": 9755, + "distribution": "shellingham", + "filename": "shellingham-1.5.4-py2.py3-none-any.whl", + "machine": "x86_64", + "platform": "windows", + "pythonTag": "cp312", + "sha256": "7ecfff8f2fd72616f7481040475a65b2bf8af90a56c89140852d1120324e8686", + "url": "https://files.pythonhosted.org/packages/e0/f9/0595336914c5619e5f28a1fb793285925a8cd4b432c9da0a987836c7f822/shellingham-1.5.4-py2.py3-none-any.whl", + "version": "1.5.4" + }, + { + "byteSize": 11625234, + "distribution": "transformers", + "filename": "transformers-5.14.1-py3-none-any.whl", + "machine": "arm64", + "platform": "windows", + "pythonTag": "cp312", + "sha256": "9db974c4079ede2d1a3ea7ca5a240df33f2cc26fc2b36ba64c5f2a4f43b6e725", + "url": "https://files.pythonhosted.org/packages/6f/67/8d85ca2323233ae3c0365a659c4e52ee1f587b440e4bc577e7d8e4416d0f/transformers-5.14.1-py3-none-any.whl", + "version": "5.14.1" + }, + { + "byteSize": 775777, + "distribution": "peft", + "filename": "peft-0.20.0-py3-none-any.whl", + "machine": "arm64", + "platform": "windows", + "pythonTag": "cp312", + "sha256": "0fbba16ffebfad3de96e06f2da6860fd860292324b85b6141909fa1e26ea9233", + "url": "https://files.pythonhosted.org/packages/28/79/13bcabb8048126422d5c4b880575d40886c726f354db88cfeed4325525bb/peft-0.20.0-py3-none-any.whl", + "version": "0.20.0" + }, + { + "byteSize": 2612133, + "distribution": "tokenizers", + "filename": "tokenizers-0.22.2-cp39-abi3-win_arm64.whl", + "machine": "arm64", + "platform": "windows", + "pythonTag": "cp312", + "sha256": "9ce725d22864a1e965217204946f830c37876eee3b2ba6fc6255e8e903d5fcbc", + "url": "https://files.pythonhosted.org/packages/72/f4/0de46cfa12cdcbcd464cc59fde36912af405696f687e53a091fb432f694c/tokenizers-0.22.2-cp39-abi3-win_arm64.whl", + "version": "0.22.2" + }, + { + "byteSize": 122874, + "distribution": "typer", + "filename": "typer-0.27.1-py3-none-any.whl", + "machine": "arm64", + "platform": "windows", + "pythonTag": "cp312", + "sha256": "53150287edd11baeb4e4722c8e394fcdf8181c0ae89485cba8d25c778d5edd56", + "url": "https://files.pythonhosted.org/packages/43/89/9518bc0c3929bee36b3a4a8e3daddd6e03f92f9961c66d4983b837160543/typer-0.27.1-py3-none-any.whl", + "version": "0.27.1" + }, + { + "byteSize": 5302, + "distribution": "annotated-doc", + "filename": "annotated_doc-0.0.5-py3-none-any.whl", + "machine": "arm64", + "platform": "windows", + "pythonTag": "cp312", + "sha256": "117bac03a25ede5df5440e855b32d556049ca169ead221505badf432fed4b101", + "url": "https://files.pythonhosted.org/packages/3e/30/e900b21425a860e195f32e37657aa1f7c7f2b1bfb26f03ca209b90933c06/annotated_doc-0.0.5-py3-none-any.whl", + "version": "0.0.5" + }, + { + "byteSize": 310654, + "distribution": "rich", + "filename": "rich-15.0.0-py3-none-any.whl", + "machine": "arm64", + "platform": "windows", + "pythonTag": "cp312", + "sha256": "33bd4ef74232fb73fe9279a257718407f169c09b78a87ad3d296f548e27de0bb", + "url": "https://files.pythonhosted.org/packages/82/3b/64d4899d73f91ba49a8c18a8ff3f0ea8f1c1d75481760df8c68ef5235bf5/rich-15.0.0-py3-none-any.whl", + "version": "15.0.0" + }, + { + "byteSize": 91687, + "distribution": "markdown-it-py", + "filename": "markdown_it_py-4.2.0-py3-none-any.whl", + "machine": "arm64", + "platform": "windows", + "pythonTag": "cp312", + "sha256": "9f7ebbcd14fe59494226453aed97c1070d83f8d24b6fc3a3bcf9a38092641c4a", + "url": "https://files.pythonhosted.org/packages/b3/81/4da04ced5a082363ecfa159c010d200ecbd959ae410c10c0264a38cac0f5/markdown_it_py-4.2.0-py3-none-any.whl", + "version": "4.2.0" + }, + { + "byteSize": 9979, + "distribution": "mdurl", + "filename": "mdurl-0.1.2-py3-none-any.whl", + "machine": "arm64", + "platform": "windows", + "pythonTag": "cp312", + "sha256": "84008a41e51615a49fc9966191ff91509e3c40b939176e643fd50a5c2196b8f8", + "url": "https://files.pythonhosted.org/packages/b3/38/89ba8ad64ae25be8de66a6d463314cf1eb366222074cfda9ee839c56a4b4/mdurl-0.1.2-py3-none-any.whl", + "version": "0.1.2" + }, + { + "byteSize": 1231151, + "distribution": "pygments", + "filename": "pygments-2.20.0-py3-none-any.whl", + "machine": "arm64", + "platform": "windows", + "pythonTag": "cp312", + "sha256": "81a9e26dd42fd28a23a2d169d86d7ac03b46e2f8b59ed4698fb4785f946d0176", + "url": "https://files.pythonhosted.org/packages/f4/7e/a72dd26f3b0f4f2bf1dd8923c85f7ceb43172af56d63c7383eb62b332364/pygments-2.20.0-py3-none-any.whl", + "version": "2.20.0" + }, + { + "byteSize": 9755, + "distribution": "shellingham", + "filename": "shellingham-1.5.4-py2.py3-none-any.whl", + "machine": "arm64", + "platform": "windows", + "pythonTag": "cp312", + "sha256": "7ecfff8f2fd72616f7481040475a65b2bf8af90a56c89140852d1120324e8686", + "url": "https://files.pythonhosted.org/packages/e0/f9/0595336914c5619e5f28a1fb793285925a8cd4b432c9da0a987836c7f822/shellingham-1.5.4-py2.py3-none-any.whl", + "version": "1.5.4" + } + ], + "baseIncluded": true, + "baseRequirements": [ + { "distribution": "accelerate", "importName": "accelerate", "specifier": ">=0.21.0" }, + { "distribution": "anyio", "importName": "anyio", "specifier": "" }, + { "distribution": "certifi", "importName": "certifi", "specifier": "" }, + { "distribution": "click", "importName": "click", "specifier": "" }, + { "distribution": "filelock", "importName": "filelock", "specifier": "" }, + { "distribution": "fsspec", "importName": "fsspec", "specifier": "" }, + { "distribution": "h11", "importName": "h11", "specifier": "" }, + { "distribution": "hf-xet", "importName": "hf_xet", "specifier": "" }, + { "distribution": "httpcore", "importName": "httpcore", "specifier": "" }, + { "distribution": "httpx", "importName": "httpx", "specifier": "" }, + { "distribution": "huggingface-hub", "importName": "huggingface_hub", "specifier": ">=1.5.0,<2.0" }, + { "distribution": "idna", "importName": "idna", "specifier": "" }, + { "distribution": "jinja2", "importName": "jinja2", "specifier": "" }, + { "distribution": "markupsafe", "importName": "markupsafe", "specifier": "" }, + { "distribution": "mpmath", "importName": "mpmath", "specifier": "" }, + { "distribution": "networkx", "importName": "networkx", "specifier": "" }, + { "distribution": "numpy", "importName": "numpy", "specifier": ">=1.17" }, + { "distribution": "packaging", "importName": "packaging", "specifier": ">=20.0" }, + { "distribution": "pillow", "importName": "PIL", "specifier": ">=10.0.1,<=15.0" }, + { "distribution": "protobuf", "importName": "google.protobuf", "specifier": ">=6.31.1" }, + { "distribution": "psutil", "importName": "psutil", "specifier": "" }, + { "distribution": "pyyaml", "importName": "yaml", "specifier": ">=5.1" }, + { "distribution": "regex", "importName": "regex", "specifier": ">=2025.10.22" }, + { "distribution": "safetensors", "importName": "safetensors", "specifier": ">=0.8.0" }, + { "distribution": "sentencepiece", "importName": "sentencepiece", "specifier": ">=0.2.0" }, + { "distribution": "setuptools", "importName": "setuptools", "specifier": "" }, + { "distribution": "sympy", "importName": "sympy", "specifier": "" }, + { "distribution": "torch", "importName": "torch", "specifier": ">=2.6.0" }, + { "distribution": "torchvision", "importName": "torchvision", "specifier": ">=0.21.0" }, + { "distribution": "tqdm", "importName": "tqdm", "specifier": ">=4.60" }, + { "distribution": "typing-extensions", "importName": "typing_extensions", "specifier": "" }, + { "distribution": "colorama", "importName": "colorama", "platforms": ["windows"], "specifier": "" } + ], + "contractState": "qualified", + "cutoverReady": true, + "excludedQualificationSymbols": ["add_weighted_adapter"], + "id": "huggingface-transformers-peft-5.14.1-0.20.0", + "installActionAvailable": false, + "installPolicy": "explicit_first_use", + "label": "Hugging Face Transformers + PEFT", + "machine": "x86_64", + "overlayStatus": "missing", + "packages": [ + { + "distribution": "transformers", + "distributionUrl": "https://pypi.org/project/transformers/", + "importName": "transformers", + "installedVersion": "5.18.0", + "license": "Apache-2.0", + "projectUrl": "https://github.com/huggingface/transformers", + "publisher": "Hugging Face", + "requiredClassSymbols": [ + "Qwen2_5_VLForConditionalGeneration", + "Qwen2Tokenizer", + "Qwen2VLProcessor", + "AutoConfig", + "AutoTokenizer", + "AutoModelForCausalLM", + "LlamaForCausalLM", + "CLIPImageProcessor", + "CLIPVisionModel", + "UMT5EncoderModel", + "T5EncoderModel", + "T5Tokenizer", + "T5TokenizerFast", + "PreTrainedModel", + "PreTrainedTokenizerFast", + "CLIPTextModel", + "CLIPTextModelWithProjection", + "CLIPTokenizer", + "CLIPVisionModelWithProjection", + "SiglipImageProcessor", + "SiglipVisionModel", + "Qwen2TokenizerFast", + "Qwen3ForCausalLM", + "Qwen3Model", + "Qwen3VLForConditionalGeneration", + "Qwen3VLProcessor", + "AutoProcessor", + "AutoModelForImageTextToText", + "Idefics3ForConditionalGeneration", + "Idefics3Processor", + "AutoModelForMultimodalLM", + "JanusForConditionalGeneration", + "JanusProcessor", + "JanusImageProcessor", + "AutoModelForSpeechSeq2Seq", + "AutoModelForCTC", + "AnyToAnyPipeline", + "Mistral3Model", + "Mistral3ForConditionalGeneration", + "Ministral3ForCausalLM", + "GlmImageForConditionalGeneration", + "GlmImageProcessor", + "ByT5Tokenizer", + "BitsAndBytesConfig", + "GemmaModel", + "Gemma2Model", + "GemmaPreTrainedModel", + "Gemma2PreTrainedModel", + "GemmaTokenizer", + "GemmaTokenizerFast", + "transformers.models.t5gemma.modeling_t5gemma:T5GemmaEncoder", + "LlamaTokenizer", + "LlamaTokenizerFast" + ], + "requiredSymbols": [ + "Qwen2_5_VLForConditionalGeneration", + "Qwen2Tokenizer", + "Qwen2VLProcessor", + "AutoConfig", + "AutoTokenizer", + "AutoModelForCausalLM", + "LlamaForCausalLM", + "CLIPImageProcessor", + "CLIPVisionModel", + "UMT5EncoderModel", + "T5EncoderModel", + "T5Tokenizer", + "T5TokenizerFast", + "PreTrainedModel", + "PreTrainedTokenizerFast", + "CLIPTextModel", + "CLIPTextModelWithProjection", + "CLIPTokenizer", + "CLIPVisionModelWithProjection", + "SiglipImageProcessor", + "SiglipVisionModel", + "Qwen2TokenizerFast", + "Qwen3ForCausalLM", + "Qwen3Model", + "Qwen3VLForConditionalGeneration", + "Qwen3VLProcessor", + "AutoProcessor", + "AutoModelForImageTextToText", + "Idefics3ForConditionalGeneration", + "Idefics3Processor", + "AutoModelForMultimodalLM", + "JanusForConditionalGeneration", + "JanusProcessor", + "JanusImageProcessor", + "AutoModelForSpeechSeq2Seq", + "AutoModelForCTC", + "AnyToAnyPipeline", + "pipeline", + "Mistral3Model", + "Mistral3ForConditionalGeneration", + "Ministral3ForCausalLM", + "GlmImageForConditionalGeneration", + "GlmImageProcessor", + "ByT5Tokenizer", + "BitsAndBytesConfig", + "GemmaModel", + "Gemma2Model", + "GemmaPreTrainedModel", + "Gemma2PreTrainedModel", + "GemmaTokenizer", + "GemmaTokenizerFast", + "transformers.models.t5gemma.modeling_t5gemma:T5GemmaEncoder", + "LlamaTokenizer", + "LlamaTokenizerFast", + "transformers.core_model_loading:tqdm", + "transformers.utils.logging:tqdm", + "transformers.utils.logging:get_verbosity", + "transformers.utils.logging:set_verbosity" + ], + "requiredVersion": "5.14.1", + "requirement": "transformers==5.14.1", + "role": "runtime_root", + "status": "wrong_version" + }, + { + "distribution": "peft", + "distributionUrl": "https://pypi.org/project/peft/", + "importName": "peft", + "installedVersion": "0.21.2", + "license": "Apache-2.0", + "projectUrl": "https://github.com/huggingface/peft", + "publisher": "Hugging Face", + "requiredClassSymbols": [ + "LoraConfig", + "PeftConfig", + "PeftModel", + "tuners.tuners_utils.BaseTunerLayer", + "tuners.lora.layer.LoraLayer" + ], + "requiredSymbols": [ + "LoraConfig", + "PeftConfig", + "PeftModel", + "inject_adapter_in_model", + "set_peft_model_state_dict", + "tuners.tuners_utils.BaseTunerLayer", + "tuners.lora.layer.LoraLayer", + "utils.other._get_submodules", + "utils.save_and_load.get_peft_model_state_dict", + "peft.utils.hotswap:check_hotswap_configs_compatible", + "peft.utils.hotswap:hotswap_adapter_from_state_dict", + "peft.utils.hotswap:prepare_model_for_compiled_hotswap" + ], + "requiredVersion": "0.20.0", + "requirement": "peft==0.20.0", + "role": "runtime_root", + "status": "wrong_version" + } + ], + "pipelineAdapterMethods": [ + { + "method": "load_lora_weights", + "requiredParameters": ["pretrained_model_name_or_path_or_dict", "adapter_name", "hotswap"] + }, + { "method": "set_adapters", "requiredParameters": ["adapter_names", "adapter_weights"] }, + { "method": "delete_adapters", "requiredParameters": ["adapter_names"] }, + { "method": "fuse_lora", "requiredParameters": ["components", "lora_scale", "safe_fusing", "adapter_names"] }, + { "method": "unfuse_lora", "requiredParameters": ["components"] }, + { "method": "unload_lora_weights", "requiredParameters": [] }, + { "method": "get_list_adapters", "requiredParameters": [] }, + { "method": "enable_lora_hotswap", "requiredParameters": ["kwargs"] } + ], + "pipelineAdapterSymbols": [ + "AceStepPipeline", + "FluxPipeline", + "Flux2KleinPipeline", + "LTXConditionPipeline", + "QwenImagePipeline", + "QwenImageControlNetPipeline", + "QwenImageLayeredPipeline", + "QwenImageEditPipeline", + "QwenImageEditPlusPipeline", + "QwenImageImg2ImgPipeline", + "QwenImageInpaintPipeline", + "ChromaImg2ImgPipeline", + "ChromaInpaintPipeline", + "LTX2Pipeline", + "StableDiffusionXLPipeline", + "StableDiffusionXLImg2ImgPipeline", + "StableDiffusionXLInpaintPipeline", + "ZImageImg2ImgPipeline", + "ZImageInpaintPipeline", + "FluxImg2ImgPipeline", + "FluxInpaintPipeline", + "FluxKontextInpaintPipeline", + "Flux2KleinInpaintPipeline", + "WanPipeline" + ], + "platform": "windows", + "requirePeftBackend": true, + "requiredDiffusersSymbols": [ + "ComponentSpec", + "ComponentsManager", + "ModularPipeline", + "AutoencoderKLWan", + "BitsAndBytesConfig", + "QwenImagePipeline", + "QwenImageControlNetModel", + "QwenImageControlNetPipeline", + "QwenImageLayeredPipeline", + "QwenImageEditPipeline", + "QwenImageEditPlusPipeline", + "QwenImageImg2ImgPipeline", + "QwenImageInpaintPipeline", + "QwenImageEditInpaintPipeline", + "ChromaImg2ImgPipeline", + "ChromaInpaintPipeline", + "LTX2Pipeline", + "QwenImageModularPipeline", + "QwenImageEditModularPipeline", + "QwenImageEditPlusModularPipeline", + "QwenImageLayeredModularPipeline", + "MiniMaxMusic3ModularPipeline", + "AnimateDiffPAGPipeline", + "AnimateDiffVideoToVideoPipeline", + "AnimateDiffControlNetPipeline", + "AnimateDiffVideoToVideoControlNetPipeline", + "CogVideoXVideoToVideoPipeline", + "WanVACEPipeline", + "WanVideoToVideoPipeline", + "WanPipeline", + "WanImageToVideoPipeline", + "WanModularPipeline", + "WanImage2VideoModularPipeline", + "LTXConditionPipeline", + "AceStepPipeline", + "StableAudioPipeline", + "LongCatAudioDiTPipeline", + "AudioLDM2Pipeline", + "ShapEPipeline", + "ShapEImg2ImgPipeline", + "StableDiffusionXLModularPipeline", + "StableDiffusionXLPipeline", + "StableDiffusionXLImg2ImgPipeline", + "StableDiffusionXLInpaintPipeline", + "StableDiffusionControlNetPipeline", + "StableDiffusionControlNetImg2ImgPipeline", + "StableDiffusionControlNetInpaintPipeline", + "StableDiffusionControlNetPAGPipeline", + "StableDiffusionControlNetPAGInpaintPipeline", + "StableDiffusionXLControlNetPipeline", + "StableDiffusionXLControlNetImg2ImgPipeline", + "StableDiffusionXLControlNetInpaintPipeline", + "StableDiffusionXLControlNetPAGPipeline", + "StableDiffusionXLControlNetPAGImg2ImgPipeline", + "ZImageImg2ImgPipeline", + "ZImageInpaintPipeline", + "FluxImg2ImgPipeline", + "FluxInpaintPipeline", + "FluxPipeline", + "Flux2KleinPipeline", + "Flux2KleinInpaintPipeline", + "FluxKontextPipeline", + "FluxKontextInpaintPipeline", + "FluxFillPipeline", + "FluxControlPipeline", + "FluxControlImg2ImgPipeline", + "FluxControlInpaintPipeline", + "FluxPriorReduxPipeline", + "FluxModularPipeline", + "FluxKontextModularPipeline", + "Flux2KleinModularPipeline", + "ErnieImagePipeline", + "ErnieImageTransformer2DModel", + "AutoencoderKLFlux2", + "GlmImagePipeline", + "GlmImageTransformer2DModel", + "HunyuanDiTPipeline", + "HunyuanDiTControlNetPipeline", + "HunyuanDiT2DModel", + "HunyuanDiT2DControlNetModel", + "JoyImageEditPipeline", + "JoyImageEditPlusPipeline", + "JoyImageEditTransformer3DModel", + "JoyImageEditPlusTransformer3DModel", + "Kandinsky3Pipeline", + "Kandinsky3Img2ImgPipeline", + "Kandinsky3UNet", + "LongCatImagePipeline", + "LongCatImageEditPipeline", + "LongCatImageTransformer2DModel", + "LuminaPipeline", + "LuminaNextDiT2DModel", + "Lumina2Pipeline", + "Lumina2Transformer2DModel", + "OmniGenPipeline", + "OmniGenTransformer2DModel", + "OvisImagePipeline", + "OvisImageTransformer2DModel", + "PRXPipeline", + "PRXTransformer2DModel", + "NucleusMoEImagePipeline", + "NucleusMoEImageTransformer2DModel", + "AutoencoderKLQwenImage" + ], + "requirements": ["transformers==5.14.1", "peft==0.20.0"], + "schemaVersion": 1, + "specDigest": "sha256:b8a09a45113dd14c56688e4cae7592174b61683846f4b03da1117920125af5ee", + "stagedPackages": [ + { + "distribution": "transformers", + "distributionUrl": "https://pypi.org/project/transformers/", + "importName": "transformers", + "license": "Apache-2.0", + "projectUrl": "https://github.com/huggingface/transformers", + "publisher": "Hugging Face", + "requiredClassSymbols": [ + "Qwen2_5_VLForConditionalGeneration", + "Qwen2Tokenizer", + "Qwen2VLProcessor", + "AutoConfig", + "AutoTokenizer", + "AutoModelForCausalLM", + "LlamaForCausalLM", + "CLIPImageProcessor", + "CLIPVisionModel", + "UMT5EncoderModel", + "T5EncoderModel", + "T5Tokenizer", + "T5TokenizerFast", + "PreTrainedModel", + "PreTrainedTokenizerFast", + "CLIPTextModel", + "CLIPTextModelWithProjection", + "CLIPTokenizer", + "CLIPVisionModelWithProjection", + "SiglipImageProcessor", + "SiglipVisionModel", + "Qwen2TokenizerFast", + "Qwen3ForCausalLM", + "Qwen3Model", + "Qwen3VLForConditionalGeneration", + "Qwen3VLProcessor", + "AutoProcessor", + "AutoModelForImageTextToText", + "Idefics3ForConditionalGeneration", + "Idefics3Processor", + "AutoModelForMultimodalLM", + "JanusForConditionalGeneration", + "JanusProcessor", + "JanusImageProcessor", + "AutoModelForSpeechSeq2Seq", + "AutoModelForCTC", + "AnyToAnyPipeline", + "Mistral3Model", + "Mistral3ForConditionalGeneration", + "Ministral3ForCausalLM", + "GlmImageForConditionalGeneration", + "GlmImageProcessor", + "ByT5Tokenizer", + "BitsAndBytesConfig", + "GemmaModel", + "Gemma2Model", + "GemmaPreTrainedModel", + "Gemma2PreTrainedModel", + "GemmaTokenizer", + "GemmaTokenizerFast", + "transformers.models.t5gemma.modeling_t5gemma:T5GemmaEncoder", + "LlamaTokenizer", + "LlamaTokenizerFast" + ], + "requiredSymbols": [ + "Qwen2_5_VLForConditionalGeneration", + "Qwen2Tokenizer", + "Qwen2VLProcessor", + "AutoConfig", + "AutoTokenizer", + "AutoModelForCausalLM", + "LlamaForCausalLM", + "CLIPImageProcessor", + "CLIPVisionModel", + "UMT5EncoderModel", + "T5EncoderModel", + "T5Tokenizer", + "T5TokenizerFast", + "PreTrainedModel", + "PreTrainedTokenizerFast", + "CLIPTextModel", + "CLIPTextModelWithProjection", + "CLIPTokenizer", + "CLIPVisionModelWithProjection", + "SiglipImageProcessor", + "SiglipVisionModel", + "Qwen2TokenizerFast", + "Qwen3ForCausalLM", + "Qwen3Model", + "Qwen3VLForConditionalGeneration", + "Qwen3VLProcessor", + "AutoProcessor", + "AutoModelForImageTextToText", + "Idefics3ForConditionalGeneration", + "Idefics3Processor", + "AutoModelForMultimodalLM", + "JanusForConditionalGeneration", + "JanusProcessor", + "JanusImageProcessor", + "AutoModelForSpeechSeq2Seq", + "AutoModelForCTC", + "AnyToAnyPipeline", + "pipeline", + "Mistral3Model", + "Mistral3ForConditionalGeneration", + "Ministral3ForCausalLM", + "GlmImageForConditionalGeneration", + "GlmImageProcessor", + "ByT5Tokenizer", + "BitsAndBytesConfig", + "GemmaModel", + "Gemma2Model", + "GemmaPreTrainedModel", + "Gemma2PreTrainedModel", + "GemmaTokenizer", + "GemmaTokenizerFast", + "transformers.models.t5gemma.modeling_t5gemma:T5GemmaEncoder", + "LlamaTokenizer", + "LlamaTokenizerFast", + "transformers.core_model_loading:tqdm", + "transformers.utils.logging:tqdm", + "transformers.utils.logging:get_verbosity", + "transformers.utils.logging:set_verbosity" + ], + "requiredVersion": "5.14.1", + "requirement": "transformers==5.14.1", + "role": "runtime_root" + }, + { + "distribution": "peft", + "distributionUrl": "https://pypi.org/project/peft/", + "importName": "peft", + "license": "Apache-2.0", + "projectUrl": "https://github.com/huggingface/peft", + "publisher": "Hugging Face", + "requiredClassSymbols": [ + "LoraConfig", + "PeftConfig", + "PeftModel", + "tuners.tuners_utils.BaseTunerLayer", + "tuners.lora.layer.LoraLayer" + ], + "requiredSymbols": [ + "LoraConfig", + "PeftConfig", + "PeftModel", + "inject_adapter_in_model", + "set_peft_model_state_dict", + "tuners.tuners_utils.BaseTunerLayer", + "tuners.lora.layer.LoraLayer", + "utils.other._get_submodules", + "utils.save_and_load.get_peft_model_state_dict", + "peft.utils.hotswap:check_hotswap_configs_compatible", + "peft.utils.hotswap:hotswap_adapter_from_state_dict", + "peft.utils.hotswap:prepare_model_for_compiled_hotswap" + ], + "requiredVersion": "0.20.0", + "requirement": "peft==0.20.0", + "role": "runtime_root" + }, + { + "distribution": "tokenizers", + "distributionUrl": "https://pypi.org/project/tokenizers/", + "importName": "tokenizers", + "license": "Apache-2.0", + "projectUrl": "https://github.com/huggingface/tokenizers", + "publisher": "Hugging Face", + "requiredClassSymbols": ["Tokenizer", "tokenizers.tokenizers:Tokenizer"], + "requiredSymbols": ["Tokenizer", "tokenizers.tokenizers:Tokenizer"], + "requiredVersion": "0.22.2", + "requirement": "tokenizers==0.22.2", + "role": "runtime_dependency" + }, + { + "distribution": "typer", + "distributionUrl": "https://pypi.org/project/typer/", + "importName": "typer", + "license": "MIT", + "projectUrl": "https://github.com/fastapi/typer", + "publisher": "FastAPI", + "requiredClassSymbols": ["Typer"], + "requiredSymbols": ["Typer"], + "requiredVersion": "0.27.1", + "requirement": "typer==0.27.1", + "role": "runtime_dependency" + }, + { + "distribution": "annotated-doc", + "distributionUrl": "https://pypi.org/project/annotated-doc/", + "importName": "annotated_doc", + "license": "MIT", + "projectUrl": "https://github.com/fastapi/annotated-doc", + "publisher": "FastAPI", + "requiredClassSymbols": ["Doc"], + "requiredSymbols": ["Doc"], + "requiredVersion": "0.0.5", + "requirement": "annotated-doc==0.0.5", + "role": "runtime_dependency" + }, + { + "distribution": "rich", + "distributionUrl": "https://pypi.org/project/rich/", + "importName": "rich", + "license": "MIT", + "projectUrl": "https://github.com/Textualize/rich", + "publisher": "Textualize", + "requiredClassSymbols": [], + "requiredSymbols": ["print"], + "requiredVersion": "15.0.0", + "requirement": "rich==15.0.0", + "role": "runtime_dependency" + }, + { + "distribution": "markdown-it-py", + "distributionUrl": "https://pypi.org/project/markdown-it-py/", + "importName": "markdown_it", + "license": "MIT", + "projectUrl": "https://github.com/executablebooks/markdown-it-py", + "publisher": "Executable Books", + "requiredClassSymbols": ["MarkdownIt"], + "requiredSymbols": ["MarkdownIt"], + "requiredVersion": "4.2.0", + "requirement": "markdown-it-py==4.2.0", + "role": "runtime_dependency" + }, + { + "distribution": "mdurl", + "distributionUrl": "https://pypi.org/project/mdurl/", + "importName": "mdurl", + "license": "MIT", + "projectUrl": "https://github.com/executablebooks/mdurl", + "publisher": "Executable Books", + "requiredClassSymbols": [], + "requiredSymbols": ["encode"], + "requiredVersion": "0.1.2", + "requirement": "mdurl==0.1.2", + "role": "runtime_dependency" + }, + { + "distribution": "pygments", + "distributionUrl": "https://pypi.org/project/Pygments/", + "importName": "pygments", + "license": "BSD-2-Clause", + "projectUrl": "https://github.com/pygments/pygments", + "publisher": "Pygments", + "requiredClassSymbols": [], + "requiredSymbols": ["highlight"], + "requiredVersion": "2.20.0", + "requirement": "pygments==2.20.0", + "role": "runtime_dependency" + }, + { + "distribution": "shellingham", + "distributionUrl": "https://pypi.org/project/shellingham/", + "importName": "shellingham", + "license": "ISC", + "projectUrl": "https://github.com/sarugaku/shellingham", + "publisher": "Sarugaku", + "requiredClassSymbols": [], + "requiredSymbols": ["detect_shell"], + "requiredVersion": "1.5.4", + "requirement": "shellingham==1.5.4", + "role": "runtime_dependency" + } + ], + "stagedRequirements": [ + "transformers==5.14.1", + "peft==0.20.0", + "tokenizers==0.22.2", + "typer==0.27.1", + "annotated-doc==0.0.5", + "rich==15.0.0", + "markdown-it-py==4.2.0", + "mdurl==0.1.2", + "pygments==2.20.0", + "shellingham==1.5.4" + ], + "status": "wrong_version", + "targetContracts": [ + { + "activationAvailable": true, + "contractState": "qualified", + "cutoverReady": true, + "installActionAvailable": true, + "machine": "x86_64", + "platform": "linux" + }, + { + "activationAvailable": false, + "contractState": "candidate_unqualified", + "cutoverReady": false, + "installActionAvailable": false, + "machine": "arm64", + "platform": "linux" + }, + { + "activationAvailable": false, + "contractState": "candidate_unqualified", + "cutoverReady": false, + "installActionAvailable": false, + "machine": "x86_64", + "platform": "macos" + }, + { + "activationAvailable": false, + "contractState": "candidate_unqualified", + "cutoverReady": false, + "installActionAvailable": false, + "machine": "arm64", + "platform": "macos" + }, + { + "activationAvailable": true, + "contractState": "qualified", + "cutoverReady": true, + "installActionAvailable": true, + "machine": "x86_64", + "platform": "windows" + }, + { + "activationAvailable": false, + "contractState": "candidate_unqualified", + "cutoverReady": false, + "installActionAvailable": false, + "machine": "arm64", + "platform": "windows" + } + ] + }, + { + "activationAvailable": false, + "artifactLocks": [ + { + "byteSize": 775777, + "distribution": "peft", + "filename": "peft-0.20.0-py3-none-any.whl", + "machine": "x86_64", + "platform": "linux", + "pythonTag": "cp312", + "sha256": "0fbba16ffebfad3de96e06f2da6860fd860292324b85b6141909fa1e26ea9233", + "url": "https://files.pythonhosted.org/packages/28/79/13bcabb8048126422d5c4b880575d40886c726f354db88cfeed4325525bb/peft-0.20.0-py3-none-any.whl", + "version": "0.20.0" + }, + { + "byteSize": 3274982, + "distribution": "tokenizers", + "filename": "tokenizers-0.22.2-cp39-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", + "machine": "x86_64", + "platform": "linux", + "pythonTag": "cp312", + "sha256": "369cc9fc8cc10cb24143873a0d95438bb8ee257bb80c71989e3ee290e8d72c67", + "url": "https://files.pythonhosted.org/packages/2e/76/932be4b50ef6ccedf9d3c6639b056a967a86258c6d9200643f01269211ca/tokenizers-0.22.2-cp39-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", + "version": "0.22.2" + }, + { + "byteSize": 122874, + "distribution": "typer", + "filename": "typer-0.27.1-py3-none-any.whl", + "machine": "x86_64", + "platform": "linux", + "pythonTag": "cp312", + "sha256": "53150287edd11baeb4e4722c8e394fcdf8181c0ae89485cba8d25c778d5edd56", + "url": "https://files.pythonhosted.org/packages/43/89/9518bc0c3929bee36b3a4a8e3daddd6e03f92f9961c66d4983b837160543/typer-0.27.1-py3-none-any.whl", + "version": "0.27.1" + }, + { + "byteSize": 5302, + "distribution": "annotated-doc", + "filename": "annotated_doc-0.0.5-py3-none-any.whl", + "machine": "x86_64", + "platform": "linux", + "pythonTag": "cp312", + "sha256": "117bac03a25ede5df5440e855b32d556049ca169ead221505badf432fed4b101", + "url": "https://files.pythonhosted.org/packages/3e/30/e900b21425a860e195f32e37657aa1f7c7f2b1bfb26f03ca209b90933c06/annotated_doc-0.0.5-py3-none-any.whl", + "version": "0.0.5" + }, + { + "byteSize": 310654, + "distribution": "rich", + "filename": "rich-15.0.0-py3-none-any.whl", + "machine": "x86_64", + "platform": "linux", + "pythonTag": "cp312", + "sha256": "33bd4ef74232fb73fe9279a257718407f169c09b78a87ad3d296f548e27de0bb", + "url": "https://files.pythonhosted.org/packages/82/3b/64d4899d73f91ba49a8c18a8ff3f0ea8f1c1d75481760df8c68ef5235bf5/rich-15.0.0-py3-none-any.whl", + "version": "15.0.0" + }, + { + "byteSize": 91687, + "distribution": "markdown-it-py", + "filename": "markdown_it_py-4.2.0-py3-none-any.whl", + "machine": "x86_64", + "platform": "linux", + "pythonTag": "cp312", + "sha256": "9f7ebbcd14fe59494226453aed97c1070d83f8d24b6fc3a3bcf9a38092641c4a", + "url": "https://files.pythonhosted.org/packages/b3/81/4da04ced5a082363ecfa159c010d200ecbd959ae410c10c0264a38cac0f5/markdown_it_py-4.2.0-py3-none-any.whl", + "version": "4.2.0" + }, + { + "byteSize": 9979, + "distribution": "mdurl", + "filename": "mdurl-0.1.2-py3-none-any.whl", + "machine": "x86_64", + "platform": "linux", + "pythonTag": "cp312", + "sha256": "84008a41e51615a49fc9966191ff91509e3c40b939176e643fd50a5c2196b8f8", + "url": "https://files.pythonhosted.org/packages/b3/38/89ba8ad64ae25be8de66a6d463314cf1eb366222074cfda9ee839c56a4b4/mdurl-0.1.2-py3-none-any.whl", + "version": "0.1.2" + }, + { + "byteSize": 1231151, + "distribution": "pygments", + "filename": "pygments-2.20.0-py3-none-any.whl", + "machine": "x86_64", + "platform": "linux", + "pythonTag": "cp312", + "sha256": "81a9e26dd42fd28a23a2d169d86d7ac03b46e2f8b59ed4698fb4785f946d0176", + "url": "https://files.pythonhosted.org/packages/f4/7e/a72dd26f3b0f4f2bf1dd8923c85f7ceb43172af56d63c7383eb62b332364/pygments-2.20.0-py3-none-any.whl", + "version": "2.20.0" + }, + { + "byteSize": 9755, + "distribution": "shellingham", + "filename": "shellingham-1.5.4-py2.py3-none-any.whl", + "machine": "x86_64", + "platform": "linux", + "pythonTag": "cp312", + "sha256": "7ecfff8f2fd72616f7481040475a65b2bf8af90a56c89140852d1120324e8686", + "url": "https://files.pythonhosted.org/packages/e0/f9/0595336914c5619e5f28a1fb793285925a8cd4b432c9da0a987836c7f822/shellingham-1.5.4-py2.py3-none-any.whl", + "version": "1.5.4" + }, + { + "byteSize": 775777, + "distribution": "peft", + "filename": "peft-0.20.0-py3-none-any.whl", + "machine": "arm64", + "platform": "linux", + "pythonTag": "cp312", + "sha256": "0fbba16ffebfad3de96e06f2da6860fd860292324b85b6141909fa1e26ea9233", + "url": "https://files.pythonhosted.org/packages/28/79/13bcabb8048126422d5c4b880575d40886c726f354db88cfeed4325525bb/peft-0.20.0-py3-none-any.whl", + "version": "0.20.0" + }, + { + "byteSize": 3290736, + "distribution": "tokenizers", + "filename": "tokenizers-0.22.2-cp39-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", + "machine": "arm64", + "platform": "linux", + "pythonTag": "cp312", + "sha256": "2249487018adec45d6e3554c71d46eb39fa8ea67156c640f7513eb26f318cec7", + "url": "https://files.pythonhosted.org/packages/d6/84/7990e799f1309a8b87af6b948f31edaa12a3ed22d11b352eaf4f4b2e5753/tokenizers-0.22.2-cp39-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", + "version": "0.22.2" + }, + { + "byteSize": 122874, + "distribution": "typer", + "filename": "typer-0.27.1-py3-none-any.whl", + "machine": "arm64", + "platform": "linux", + "pythonTag": "cp312", + "sha256": "53150287edd11baeb4e4722c8e394fcdf8181c0ae89485cba8d25c778d5edd56", + "url": "https://files.pythonhosted.org/packages/43/89/9518bc0c3929bee36b3a4a8e3daddd6e03f92f9961c66d4983b837160543/typer-0.27.1-py3-none-any.whl", + "version": "0.27.1" + }, + { + "byteSize": 5302, + "distribution": "annotated-doc", + "filename": "annotated_doc-0.0.5-py3-none-any.whl", + "machine": "arm64", + "platform": "linux", + "pythonTag": "cp312", + "sha256": "117bac03a25ede5df5440e855b32d556049ca169ead221505badf432fed4b101", + "url": "https://files.pythonhosted.org/packages/3e/30/e900b21425a860e195f32e37657aa1f7c7f2b1bfb26f03ca209b90933c06/annotated_doc-0.0.5-py3-none-any.whl", + "version": "0.0.5" + }, + { + "byteSize": 310654, + "distribution": "rich", + "filename": "rich-15.0.0-py3-none-any.whl", + "machine": "arm64", + "platform": "linux", + "pythonTag": "cp312", + "sha256": "33bd4ef74232fb73fe9279a257718407f169c09b78a87ad3d296f548e27de0bb", + "url": "https://files.pythonhosted.org/packages/82/3b/64d4899d73f91ba49a8c18a8ff3f0ea8f1c1d75481760df8c68ef5235bf5/rich-15.0.0-py3-none-any.whl", + "version": "15.0.0" + }, + { + "byteSize": 91687, + "distribution": "markdown-it-py", + "filename": "markdown_it_py-4.2.0-py3-none-any.whl", + "machine": "arm64", + "platform": "linux", + "pythonTag": "cp312", + "sha256": "9f7ebbcd14fe59494226453aed97c1070d83f8d24b6fc3a3bcf9a38092641c4a", + "url": "https://files.pythonhosted.org/packages/b3/81/4da04ced5a082363ecfa159c010d200ecbd959ae410c10c0264a38cac0f5/markdown_it_py-4.2.0-py3-none-any.whl", + "version": "4.2.0" + }, + { + "byteSize": 9979, + "distribution": "mdurl", + "filename": "mdurl-0.1.2-py3-none-any.whl", + "machine": "arm64", + "platform": "linux", + "pythonTag": "cp312", + "sha256": "84008a41e51615a49fc9966191ff91509e3c40b939176e643fd50a5c2196b8f8", + "url": "https://files.pythonhosted.org/packages/b3/38/89ba8ad64ae25be8de66a6d463314cf1eb366222074cfda9ee839c56a4b4/mdurl-0.1.2-py3-none-any.whl", + "version": "0.1.2" + }, + { + "byteSize": 1231151, + "distribution": "pygments", + "filename": "pygments-2.20.0-py3-none-any.whl", + "machine": "arm64", + "platform": "linux", + "pythonTag": "cp312", + "sha256": "81a9e26dd42fd28a23a2d169d86d7ac03b46e2f8b59ed4698fb4785f946d0176", + "url": "https://files.pythonhosted.org/packages/f4/7e/a72dd26f3b0f4f2bf1dd8923c85f7ceb43172af56d63c7383eb62b332364/pygments-2.20.0-py3-none-any.whl", + "version": "2.20.0" + }, + { + "byteSize": 9755, + "distribution": "shellingham", + "filename": "shellingham-1.5.4-py2.py3-none-any.whl", + "machine": "arm64", + "platform": "linux", + "pythonTag": "cp312", + "sha256": "7ecfff8f2fd72616f7481040475a65b2bf8af90a56c89140852d1120324e8686", + "url": "https://files.pythonhosted.org/packages/e0/f9/0595336914c5619e5f28a1fb793285925a8cd4b432c9da0a987836c7f822/shellingham-1.5.4-py2.py3-none-any.whl", + "version": "1.5.4" + }, + { + "byteSize": 775777, + "distribution": "peft", + "filename": "peft-0.20.0-py3-none-any.whl", + "machine": "x86_64", + "platform": "macos", + "pythonTag": "cp312", + "sha256": "0fbba16ffebfad3de96e06f2da6860fd860292324b85b6141909fa1e26ea9233", + "url": "https://files.pythonhosted.org/packages/28/79/13bcabb8048126422d5c4b880575d40886c726f354db88cfeed4325525bb/peft-0.20.0-py3-none-any.whl", + "version": "0.20.0" + }, + { + "byteSize": 3100275, + "distribution": "tokenizers", + "filename": "tokenizers-0.22.2-cp39-abi3-macosx_10_12_x86_64.whl", + "machine": "x86_64", + "platform": "macos", + "pythonTag": "cp312", + "sha256": "544dd704ae7238755d790de45ba8da072e9af3eea688f698b137915ae959281c", + "url": "https://files.pythonhosted.org/packages/92/97/5dbfabf04c7e348e655e907ed27913e03db0923abb5dfdd120d7b25630e1/tokenizers-0.22.2-cp39-abi3-macosx_10_12_x86_64.whl", + "version": "0.22.2" + }, + { + "byteSize": 122874, + "distribution": "typer", + "filename": "typer-0.27.1-py3-none-any.whl", + "machine": "x86_64", + "platform": "macos", + "pythonTag": "cp312", + "sha256": "53150287edd11baeb4e4722c8e394fcdf8181c0ae89485cba8d25c778d5edd56", + "url": "https://files.pythonhosted.org/packages/43/89/9518bc0c3929bee36b3a4a8e3daddd6e03f92f9961c66d4983b837160543/typer-0.27.1-py3-none-any.whl", + "version": "0.27.1" + }, + { + "byteSize": 5302, + "distribution": "annotated-doc", + "filename": "annotated_doc-0.0.5-py3-none-any.whl", + "machine": "x86_64", + "platform": "macos", + "pythonTag": "cp312", + "sha256": "117bac03a25ede5df5440e855b32d556049ca169ead221505badf432fed4b101", + "url": "https://files.pythonhosted.org/packages/3e/30/e900b21425a860e195f32e37657aa1f7c7f2b1bfb26f03ca209b90933c06/annotated_doc-0.0.5-py3-none-any.whl", + "version": "0.0.5" + }, + { + "byteSize": 310654, + "distribution": "rich", + "filename": "rich-15.0.0-py3-none-any.whl", + "machine": "x86_64", + "platform": "macos", + "pythonTag": "cp312", + "sha256": "33bd4ef74232fb73fe9279a257718407f169c09b78a87ad3d296f548e27de0bb", + "url": "https://files.pythonhosted.org/packages/82/3b/64d4899d73f91ba49a8c18a8ff3f0ea8f1c1d75481760df8c68ef5235bf5/rich-15.0.0-py3-none-any.whl", + "version": "15.0.0" + }, + { + "byteSize": 91687, + "distribution": "markdown-it-py", + "filename": "markdown_it_py-4.2.0-py3-none-any.whl", + "machine": "x86_64", + "platform": "macos", + "pythonTag": "cp312", + "sha256": "9f7ebbcd14fe59494226453aed97c1070d83f8d24b6fc3a3bcf9a38092641c4a", + "url": "https://files.pythonhosted.org/packages/b3/81/4da04ced5a082363ecfa159c010d200ecbd959ae410c10c0264a38cac0f5/markdown_it_py-4.2.0-py3-none-any.whl", + "version": "4.2.0" + }, + { + "byteSize": 9979, + "distribution": "mdurl", + "filename": "mdurl-0.1.2-py3-none-any.whl", + "machine": "x86_64", + "platform": "macos", + "pythonTag": "cp312", + "sha256": "84008a41e51615a49fc9966191ff91509e3c40b939176e643fd50a5c2196b8f8", + "url": "https://files.pythonhosted.org/packages/b3/38/89ba8ad64ae25be8de66a6d463314cf1eb366222074cfda9ee839c56a4b4/mdurl-0.1.2-py3-none-any.whl", + "version": "0.1.2" + }, + { + "byteSize": 1231151, + "distribution": "pygments", + "filename": "pygments-2.20.0-py3-none-any.whl", + "machine": "x86_64", + "platform": "macos", + "pythonTag": "cp312", + "sha256": "81a9e26dd42fd28a23a2d169d86d7ac03b46e2f8b59ed4698fb4785f946d0176", + "url": "https://files.pythonhosted.org/packages/f4/7e/a72dd26f3b0f4f2bf1dd8923c85f7ceb43172af56d63c7383eb62b332364/pygments-2.20.0-py3-none-any.whl", + "version": "2.20.0" + }, + { + "byteSize": 9755, + "distribution": "shellingham", + "filename": "shellingham-1.5.4-py2.py3-none-any.whl", + "machine": "x86_64", + "platform": "macos", + "pythonTag": "cp312", + "sha256": "7ecfff8f2fd72616f7481040475a65b2bf8af90a56c89140852d1120324e8686", + "url": "https://files.pythonhosted.org/packages/e0/f9/0595336914c5619e5f28a1fb793285925a8cd4b432c9da0a987836c7f822/shellingham-1.5.4-py2.py3-none-any.whl", + "version": "1.5.4" + }, + { + "byteSize": 775777, + "distribution": "peft", + "filename": "peft-0.20.0-py3-none-any.whl", + "machine": "arm64", + "platform": "macos", + "pythonTag": "cp312", + "sha256": "0fbba16ffebfad3de96e06f2da6860fd860292324b85b6141909fa1e26ea9233", + "url": "https://files.pythonhosted.org/packages/28/79/13bcabb8048126422d5c4b880575d40886c726f354db88cfeed4325525bb/peft-0.20.0-py3-none-any.whl", + "version": "0.20.0" + }, + { + "byteSize": 2981472, + "distribution": "tokenizers", + "filename": "tokenizers-0.22.2-cp39-abi3-macosx_11_0_arm64.whl", + "machine": "arm64", + "platform": "macos", + "pythonTag": "cp312", + "sha256": "1e418a55456beedca4621dbab65a318981467a2b188e982a23e117f115ce5001", + "url": "https://files.pythonhosted.org/packages/2e/47/174dca0502ef88b28f1c9e06b73ce33500eedfac7a7692108aec220464e7/tokenizers-0.22.2-cp39-abi3-macosx_11_0_arm64.whl", + "version": "0.22.2" + }, + { + "byteSize": 122874, + "distribution": "typer", + "filename": "typer-0.27.1-py3-none-any.whl", + "machine": "arm64", + "platform": "macos", + "pythonTag": "cp312", + "sha256": "53150287edd11baeb4e4722c8e394fcdf8181c0ae89485cba8d25c778d5edd56", + "url": "https://files.pythonhosted.org/packages/43/89/9518bc0c3929bee36b3a4a8e3daddd6e03f92f9961c66d4983b837160543/typer-0.27.1-py3-none-any.whl", + "version": "0.27.1" + }, + { + "byteSize": 5302, + "distribution": "annotated-doc", + "filename": "annotated_doc-0.0.5-py3-none-any.whl", + "machine": "arm64", + "platform": "macos", + "pythonTag": "cp312", + "sha256": "117bac03a25ede5df5440e855b32d556049ca169ead221505badf432fed4b101", + "url": "https://files.pythonhosted.org/packages/3e/30/e900b21425a860e195f32e37657aa1f7c7f2b1bfb26f03ca209b90933c06/annotated_doc-0.0.5-py3-none-any.whl", + "version": "0.0.5" + }, + { + "byteSize": 310654, + "distribution": "rich", + "filename": "rich-15.0.0-py3-none-any.whl", + "machine": "arm64", + "platform": "macos", + "pythonTag": "cp312", + "sha256": "33bd4ef74232fb73fe9279a257718407f169c09b78a87ad3d296f548e27de0bb", + "url": "https://files.pythonhosted.org/packages/82/3b/64d4899d73f91ba49a8c18a8ff3f0ea8f1c1d75481760df8c68ef5235bf5/rich-15.0.0-py3-none-any.whl", + "version": "15.0.0" + }, + { + "byteSize": 91687, + "distribution": "markdown-it-py", + "filename": "markdown_it_py-4.2.0-py3-none-any.whl", + "machine": "arm64", + "platform": "macos", + "pythonTag": "cp312", + "sha256": "9f7ebbcd14fe59494226453aed97c1070d83f8d24b6fc3a3bcf9a38092641c4a", + "url": "https://files.pythonhosted.org/packages/b3/81/4da04ced5a082363ecfa159c010d200ecbd959ae410c10c0264a38cac0f5/markdown_it_py-4.2.0-py3-none-any.whl", + "version": "4.2.0" + }, + { + "byteSize": 9979, + "distribution": "mdurl", + "filename": "mdurl-0.1.2-py3-none-any.whl", + "machine": "arm64", + "platform": "macos", + "pythonTag": "cp312", + "sha256": "84008a41e51615a49fc9966191ff91509e3c40b939176e643fd50a5c2196b8f8", + "url": "https://files.pythonhosted.org/packages/b3/38/89ba8ad64ae25be8de66a6d463314cf1eb366222074cfda9ee839c56a4b4/mdurl-0.1.2-py3-none-any.whl", + "version": "0.1.2" + }, + { + "byteSize": 1231151, + "distribution": "pygments", + "filename": "pygments-2.20.0-py3-none-any.whl", + "machine": "arm64", + "platform": "macos", + "pythonTag": "cp312", + "sha256": "81a9e26dd42fd28a23a2d169d86d7ac03b46e2f8b59ed4698fb4785f946d0176", + "url": "https://files.pythonhosted.org/packages/f4/7e/a72dd26f3b0f4f2bf1dd8923c85f7ceb43172af56d63c7383eb62b332364/pygments-2.20.0-py3-none-any.whl", + "version": "2.20.0" + }, + { + "byteSize": 9755, + "distribution": "shellingham", + "filename": "shellingham-1.5.4-py2.py3-none-any.whl", + "machine": "arm64", + "platform": "macos", + "pythonTag": "cp312", + "sha256": "7ecfff8f2fd72616f7481040475a65b2bf8af90a56c89140852d1120324e8686", + "url": "https://files.pythonhosted.org/packages/e0/f9/0595336914c5619e5f28a1fb793285925a8cd4b432c9da0a987836c7f822/shellingham-1.5.4-py2.py3-none-any.whl", + "version": "1.5.4" + }, + { + "byteSize": 775777, + "distribution": "peft", + "filename": "peft-0.20.0-py3-none-any.whl", + "machine": "x86_64", + "platform": "windows", + "pythonTag": "cp312", + "sha256": "0fbba16ffebfad3de96e06f2da6860fd860292324b85b6141909fa1e26ea9233", + "url": "https://files.pythonhosted.org/packages/28/79/13bcabb8048126422d5c4b880575d40886c726f354db88cfeed4325525bb/peft-0.20.0-py3-none-any.whl", + "version": "0.20.0" + }, + { + "byteSize": 2747786, + "distribution": "tokenizers", + "filename": "tokenizers-0.22.2-cp39-abi3-win_amd64.whl", + "machine": "x86_64", + "platform": "windows", + "pythonTag": "cp312", + "sha256": "c9ea31edff2968b44a88f97d784c2f16dc0729b8b143ed004699ebca91f05c48", + "url": "https://files.pythonhosted.org/packages/65/71/0670843133a43d43070abeb1949abfdef12a86d490bea9cd9e18e37c5ff7/tokenizers-0.22.2-cp39-abi3-win_amd64.whl", + "version": "0.22.2" + }, + { + "byteSize": 122874, + "distribution": "typer", + "filename": "typer-0.27.1-py3-none-any.whl", + "machine": "x86_64", + "platform": "windows", + "pythonTag": "cp312", + "sha256": "53150287edd11baeb4e4722c8e394fcdf8181c0ae89485cba8d25c778d5edd56", + "url": "https://files.pythonhosted.org/packages/43/89/9518bc0c3929bee36b3a4a8e3daddd6e03f92f9961c66d4983b837160543/typer-0.27.1-py3-none-any.whl", + "version": "0.27.1" + }, + { + "byteSize": 5302, + "distribution": "annotated-doc", + "filename": "annotated_doc-0.0.5-py3-none-any.whl", + "machine": "x86_64", + "platform": "windows", + "pythonTag": "cp312", + "sha256": "117bac03a25ede5df5440e855b32d556049ca169ead221505badf432fed4b101", + "url": "https://files.pythonhosted.org/packages/3e/30/e900b21425a860e195f32e37657aa1f7c7f2b1bfb26f03ca209b90933c06/annotated_doc-0.0.5-py3-none-any.whl", + "version": "0.0.5" + }, + { + "byteSize": 310654, + "distribution": "rich", + "filename": "rich-15.0.0-py3-none-any.whl", + "machine": "x86_64", + "platform": "windows", + "pythonTag": "cp312", + "sha256": "33bd4ef74232fb73fe9279a257718407f169c09b78a87ad3d296f548e27de0bb", + "url": "https://files.pythonhosted.org/packages/82/3b/64d4899d73f91ba49a8c18a8ff3f0ea8f1c1d75481760df8c68ef5235bf5/rich-15.0.0-py3-none-any.whl", + "version": "15.0.0" + }, + { + "byteSize": 91687, + "distribution": "markdown-it-py", + "filename": "markdown_it_py-4.2.0-py3-none-any.whl", + "machine": "x86_64", + "platform": "windows", + "pythonTag": "cp312", + "sha256": "9f7ebbcd14fe59494226453aed97c1070d83f8d24b6fc3a3bcf9a38092641c4a", + "url": "https://files.pythonhosted.org/packages/b3/81/4da04ced5a082363ecfa159c010d200ecbd959ae410c10c0264a38cac0f5/markdown_it_py-4.2.0-py3-none-any.whl", + "version": "4.2.0" + }, + { + "byteSize": 9979, + "distribution": "mdurl", + "filename": "mdurl-0.1.2-py3-none-any.whl", + "machine": "x86_64", + "platform": "windows", + "pythonTag": "cp312", + "sha256": "84008a41e51615a49fc9966191ff91509e3c40b939176e643fd50a5c2196b8f8", + "url": "https://files.pythonhosted.org/packages/b3/38/89ba8ad64ae25be8de66a6d463314cf1eb366222074cfda9ee839c56a4b4/mdurl-0.1.2-py3-none-any.whl", + "version": "0.1.2" + }, + { + "byteSize": 1231151, + "distribution": "pygments", + "filename": "pygments-2.20.0-py3-none-any.whl", + "machine": "x86_64", + "platform": "windows", + "pythonTag": "cp312", + "sha256": "81a9e26dd42fd28a23a2d169d86d7ac03b46e2f8b59ed4698fb4785f946d0176", + "url": "https://files.pythonhosted.org/packages/f4/7e/a72dd26f3b0f4f2bf1dd8923c85f7ceb43172af56d63c7383eb62b332364/pygments-2.20.0-py3-none-any.whl", + "version": "2.20.0" + }, + { + "byteSize": 9755, + "distribution": "shellingham", + "filename": "shellingham-1.5.4-py2.py3-none-any.whl", + "machine": "x86_64", + "platform": "windows", + "pythonTag": "cp312", + "sha256": "7ecfff8f2fd72616f7481040475a65b2bf8af90a56c89140852d1120324e8686", + "url": "https://files.pythonhosted.org/packages/e0/f9/0595336914c5619e5f28a1fb793285925a8cd4b432c9da0a987836c7f822/shellingham-1.5.4-py2.py3-none-any.whl", + "version": "1.5.4" + }, + { + "byteSize": 775777, + "distribution": "peft", + "filename": "peft-0.20.0-py3-none-any.whl", + "machine": "arm64", + "platform": "windows", + "pythonTag": "cp312", + "sha256": "0fbba16ffebfad3de96e06f2da6860fd860292324b85b6141909fa1e26ea9233", + "url": "https://files.pythonhosted.org/packages/28/79/13bcabb8048126422d5c4b880575d40886c726f354db88cfeed4325525bb/peft-0.20.0-py3-none-any.whl", + "version": "0.20.0" + }, + { + "byteSize": 2612133, + "distribution": "tokenizers", + "filename": "tokenizers-0.22.2-cp39-abi3-win_arm64.whl", + "machine": "arm64", + "platform": "windows", + "pythonTag": "cp312", + "sha256": "9ce725d22864a1e965217204946f830c37876eee3b2ba6fc6255e8e903d5fcbc", + "url": "https://files.pythonhosted.org/packages/72/f4/0de46cfa12cdcbcd464cc59fde36912af405696f687e53a091fb432f694c/tokenizers-0.22.2-cp39-abi3-win_arm64.whl", + "version": "0.22.2" + }, + { + "byteSize": 122874, + "distribution": "typer", + "filename": "typer-0.27.1-py3-none-any.whl", + "machine": "arm64", + "platform": "windows", + "pythonTag": "cp312", + "sha256": "53150287edd11baeb4e4722c8e394fcdf8181c0ae89485cba8d25c778d5edd56", + "url": "https://files.pythonhosted.org/packages/43/89/9518bc0c3929bee36b3a4a8e3daddd6e03f92f9961c66d4983b837160543/typer-0.27.1-py3-none-any.whl", + "version": "0.27.1" + }, + { + "byteSize": 5302, + "distribution": "annotated-doc", + "filename": "annotated_doc-0.0.5-py3-none-any.whl", + "machine": "arm64", + "platform": "windows", + "pythonTag": "cp312", + "sha256": "117bac03a25ede5df5440e855b32d556049ca169ead221505badf432fed4b101", + "url": "https://files.pythonhosted.org/packages/3e/30/e900b21425a860e195f32e37657aa1f7c7f2b1bfb26f03ca209b90933c06/annotated_doc-0.0.5-py3-none-any.whl", + "version": "0.0.5" + }, + { + "byteSize": 310654, + "distribution": "rich", + "filename": "rich-15.0.0-py3-none-any.whl", + "machine": "arm64", + "platform": "windows", + "pythonTag": "cp312", + "sha256": "33bd4ef74232fb73fe9279a257718407f169c09b78a87ad3d296f548e27de0bb", + "url": "https://files.pythonhosted.org/packages/82/3b/64d4899d73f91ba49a8c18a8ff3f0ea8f1c1d75481760df8c68ef5235bf5/rich-15.0.0-py3-none-any.whl", + "version": "15.0.0" + }, + { + "byteSize": 91687, + "distribution": "markdown-it-py", + "filename": "markdown_it_py-4.2.0-py3-none-any.whl", + "machine": "arm64", + "platform": "windows", + "pythonTag": "cp312", + "sha256": "9f7ebbcd14fe59494226453aed97c1070d83f8d24b6fc3a3bcf9a38092641c4a", + "url": "https://files.pythonhosted.org/packages/b3/81/4da04ced5a082363ecfa159c010d200ecbd959ae410c10c0264a38cac0f5/markdown_it_py-4.2.0-py3-none-any.whl", + "version": "4.2.0" + }, + { + "byteSize": 9979, + "distribution": "mdurl", + "filename": "mdurl-0.1.2-py3-none-any.whl", + "machine": "arm64", + "platform": "windows", + "pythonTag": "cp312", + "sha256": "84008a41e51615a49fc9966191ff91509e3c40b939176e643fd50a5c2196b8f8", + "url": "https://files.pythonhosted.org/packages/b3/38/89ba8ad64ae25be8de66a6d463314cf1eb366222074cfda9ee839c56a4b4/mdurl-0.1.2-py3-none-any.whl", + "version": "0.1.2" + }, + { + "byteSize": 1231151, + "distribution": "pygments", + "filename": "pygments-2.20.0-py3-none-any.whl", + "machine": "arm64", + "platform": "windows", + "pythonTag": "cp312", + "sha256": "81a9e26dd42fd28a23a2d169d86d7ac03b46e2f8b59ed4698fb4785f946d0176", + "url": "https://files.pythonhosted.org/packages/f4/7e/a72dd26f3b0f4f2bf1dd8923c85f7ceb43172af56d63c7383eb62b332364/pygments-2.20.0-py3-none-any.whl", + "version": "2.20.0" + }, + { + "byteSize": 9755, + "distribution": "shellingham", + "filename": "shellingham-1.5.4-py2.py3-none-any.whl", + "machine": "arm64", + "platform": "windows", + "pythonTag": "cp312", + "sha256": "7ecfff8f2fd72616f7481040475a65b2bf8af90a56c89140852d1120324e8686", + "url": "https://files.pythonhosted.org/packages/e0/f9/0595336914c5619e5f28a1fb793285925a8cd4b432c9da0a987836c7f822/shellingham-1.5.4-py2.py3-none-any.whl", + "version": "1.5.4" + } + ], + "baseIncluded": true, + "baseRequirements": [ + { "distribution": "accelerate", "importName": "accelerate", "specifier": ">=0.21.0" }, + { "distribution": "anyio", "importName": "anyio", "specifier": "" }, + { "distribution": "certifi", "importName": "certifi", "specifier": "" }, + { "distribution": "click", "importName": "click", "specifier": "" }, + { "distribution": "filelock", "importName": "filelock", "specifier": "" }, + { "distribution": "fsspec", "importName": "fsspec", "specifier": "" }, + { "distribution": "h11", "importName": "h11", "specifier": "" }, + { "distribution": "hf-xet", "importName": "hf_xet", "specifier": "" }, + { "distribution": "httpcore", "importName": "httpcore", "specifier": "" }, + { "distribution": "httpx", "importName": "httpx", "specifier": "" }, + { "distribution": "huggingface-hub", "importName": "huggingface_hub", "specifier": ">=1.5.0,<2.0" }, + { "distribution": "idna", "importName": "idna", "specifier": "" }, + { "distribution": "jinja2", "importName": "jinja2", "specifier": "" }, + { "distribution": "markupsafe", "importName": "markupsafe", "specifier": "" }, + { "distribution": "mpmath", "importName": "mpmath", "specifier": "" }, + { "distribution": "networkx", "importName": "networkx", "specifier": "" }, + { "distribution": "numpy", "importName": "numpy", "specifier": ">=1.17" }, + { "distribution": "packaging", "importName": "packaging", "specifier": ">=20.0" }, + { "distribution": "pillow", "importName": "PIL", "specifier": ">=10.0.1,<=15.0" }, + { "distribution": "protobuf", "importName": "google.protobuf", "specifier": ">=6.31.1" }, + { "distribution": "psutil", "importName": "psutil", "specifier": "" }, + { "distribution": "pyyaml", "importName": "yaml", "specifier": ">=5.1" }, + { "distribution": "regex", "importName": "regex", "specifier": ">=2025.10.22" }, + { "distribution": "safetensors", "importName": "safetensors", "specifier": ">=0.8.0" }, + { "distribution": "sentencepiece", "importName": "sentencepiece", "specifier": ">=0.2.0" }, + { "distribution": "setuptools", "importName": "setuptools", "specifier": "" }, + { "distribution": "sympy", "importName": "sympy", "specifier": "" }, + { "distribution": "torch", "importName": "torch", "specifier": ">=2.6.0" }, + { "distribution": "torchvision", "importName": "torchvision", "specifier": ">=0.21.0" }, + { "distribution": "tqdm", "importName": "tqdm", "specifier": ">=4.60" }, + { "distribution": "typing-extensions", "importName": "typing_extensions", "specifier": "" }, + { "distribution": "colorama", "importName": "colorama", "platforms": ["windows"], "specifier": "" } + ], + "contractState": "candidate_unqualified", + "cutoverReady": false, + "excludedQualificationSymbols": ["add_weighted_adapter"], + "id": "huggingface-transformers-main-96fe6dce-peft-0.20.0", + "installActionAvailable": false, + "installPolicy": "explicit_first_use", + "label": "Hugging Face Transformers main + PEFT (Linux x86-64 qualified)", + "machine": "x86_64", + "overlayStatus": "missing", + "packages": [ + { + "distribution": "transformers", + "distributionUrl": "https://github.com/huggingface/transformers/commit/96fe6dce36cc929a5ffd3e34296554c4cb6b669e", + "importName": "transformers", + "installedVersion": "5.18.0", + "license": "Apache-2.0", + "projectUrl": "https://github.com/huggingface/transformers", + "publisher": "Hugging Face", + "requiredClassSymbols": [ + "Qwen2_5_VLForConditionalGeneration", + "Qwen2Tokenizer", + "Qwen2VLProcessor", + "AutoConfig", + "AutoTokenizer", + "AutoModelForCausalLM", + "LlamaForCausalLM", + "CLIPImageProcessor", + "CLIPVisionModel", + "UMT5EncoderModel", + "T5EncoderModel", + "T5Tokenizer", + "T5TokenizerFast", + "PreTrainedModel", + "PreTrainedTokenizerFast", + "CLIPTextModel", + "CLIPTextModelWithProjection", + "CLIPTokenizer", + "CLIPVisionModelWithProjection", + "SiglipImageProcessor", + "SiglipVisionModel", + "Qwen2TokenizerFast", + "Qwen3ForCausalLM", + "Qwen3Model", + "Qwen3VLForConditionalGeneration", + "Qwen3VLProcessor", + "AutoProcessor", + "AutoModelForImageTextToText", + "Idefics3ForConditionalGeneration", + "Idefics3Processor", + "AutoModelForMultimodalLM", + "JanusForConditionalGeneration", + "JanusProcessor", + "JanusImageProcessor", + "AutoModelForSpeechSeq2Seq", + "AutoModelForCTC", + "AnyToAnyPipeline", + "Mistral3Model", + "Mistral3ForConditionalGeneration", + "Ministral3ForCausalLM", + "GlmImageForConditionalGeneration", + "GlmImageProcessor", + "ByT5Tokenizer", + "BitsAndBytesConfig", + "GemmaModel", + "Gemma2Model", + "GemmaPreTrainedModel", + "Gemma2PreTrainedModel", + "GemmaTokenizer", + "GemmaTokenizerFast", + "transformers.models.t5gemma.modeling_t5gemma:T5GemmaEncoder", + "LlamaTokenizer", + "LlamaTokenizerFast" + ], + "requiredSymbols": [ + "Qwen2_5_VLForConditionalGeneration", + "Qwen2Tokenizer", + "Qwen2VLProcessor", + "AutoConfig", + "AutoTokenizer", + "AutoModelForCausalLM", + "LlamaForCausalLM", + "CLIPImageProcessor", + "CLIPVisionModel", + "UMT5EncoderModel", + "T5EncoderModel", + "T5Tokenizer", + "T5TokenizerFast", + "PreTrainedModel", + "PreTrainedTokenizerFast", + "CLIPTextModel", + "CLIPTextModelWithProjection", + "CLIPTokenizer", + "CLIPVisionModelWithProjection", + "SiglipImageProcessor", + "SiglipVisionModel", + "Qwen2TokenizerFast", + "Qwen3ForCausalLM", + "Qwen3Model", + "Qwen3VLForConditionalGeneration", + "Qwen3VLProcessor", + "AutoProcessor", + "AutoModelForImageTextToText", + "Idefics3ForConditionalGeneration", + "Idefics3Processor", + "AutoModelForMultimodalLM", + "JanusForConditionalGeneration", + "JanusProcessor", + "JanusImageProcessor", + "AutoModelForSpeechSeq2Seq", + "AutoModelForCTC", + "AnyToAnyPipeline", + "pipeline", + "Mistral3Model", + "Mistral3ForConditionalGeneration", + "Ministral3ForCausalLM", + "GlmImageForConditionalGeneration", + "GlmImageProcessor", + "ByT5Tokenizer", + "BitsAndBytesConfig", + "GemmaModel", + "Gemma2Model", + "GemmaPreTrainedModel", + "Gemma2PreTrainedModel", + "GemmaTokenizer", + "GemmaTokenizerFast", + "transformers.models.t5gemma.modeling_t5gemma:T5GemmaEncoder", + "LlamaTokenizer", + "LlamaTokenizerFast", + "transformers.core_model_loading:tqdm", + "transformers.utils.logging:tqdm", + "transformers.utils.logging:get_verbosity", + "transformers.utils.logging:set_verbosity" + ], + "requiredVersion": "5.16.0.dev0", + "requirement": "transformers==5.16.0.dev0", + "role": "runtime_root", + "status": "wrong_version" + }, + { + "distribution": "peft", + "distributionUrl": "https://pypi.org/project/peft/", + "importName": "peft", + "installedVersion": "0.21.2", + "license": "Apache-2.0", + "projectUrl": "https://github.com/huggingface/peft", + "publisher": "Hugging Face", + "requiredClassSymbols": [ + "LoraConfig", + "PeftConfig", + "PeftModel", + "tuners.tuners_utils.BaseTunerLayer", + "tuners.lora.layer.LoraLayer" + ], + "requiredSymbols": [ + "LoraConfig", + "PeftConfig", + "PeftModel", + "inject_adapter_in_model", + "set_peft_model_state_dict", + "tuners.tuners_utils.BaseTunerLayer", + "tuners.lora.layer.LoraLayer", + "utils.other._get_submodules", + "utils.save_and_load.get_peft_model_state_dict", + "peft.utils.hotswap:check_hotswap_configs_compatible", + "peft.utils.hotswap:hotswap_adapter_from_state_dict", + "peft.utils.hotswap:prepare_model_for_compiled_hotswap" + ], + "requiredVersion": "0.20.0", + "requirement": "peft==0.20.0", + "role": "runtime_root", + "status": "wrong_version" + } + ], + "pipelineAdapterMethods": [ + { + "method": "load_lora_weights", + "requiredParameters": ["pretrained_model_name_or_path_or_dict", "adapter_name", "hotswap"] + }, + { "method": "set_adapters", "requiredParameters": ["adapter_names", "adapter_weights"] }, + { "method": "delete_adapters", "requiredParameters": ["adapter_names"] }, + { "method": "fuse_lora", "requiredParameters": ["components", "lora_scale", "safe_fusing", "adapter_names"] }, + { "method": "unfuse_lora", "requiredParameters": ["components"] }, + { "method": "unload_lora_weights", "requiredParameters": [] }, + { "method": "get_list_adapters", "requiredParameters": [] }, + { "method": "enable_lora_hotswap", "requiredParameters": ["kwargs"] } + ], + "pipelineAdapterSymbols": [ + "AceStepPipeline", + "FluxPipeline", + "Flux2KleinPipeline", + "LTXConditionPipeline", + "QwenImagePipeline", + "QwenImageControlNetPipeline", + "QwenImageLayeredPipeline", + "QwenImageEditPipeline", + "QwenImageEditPlusPipeline", + "QwenImageImg2ImgPipeline", + "QwenImageInpaintPipeline", + "ChromaImg2ImgPipeline", + "ChromaInpaintPipeline", + "LTX2Pipeline", + "StableDiffusionXLPipeline", + "StableDiffusionXLImg2ImgPipeline", + "StableDiffusionXLInpaintPipeline", + "ZImageImg2ImgPipeline", + "ZImageInpaintPipeline", + "FluxImg2ImgPipeline", + "FluxInpaintPipeline", + "FluxKontextInpaintPipeline", + "Flux2KleinInpaintPipeline", + "WanPipeline" + ], + "platform": "windows", + "requirePeftBackend": true, + "requiredDiffusersSymbols": [ + "ComponentSpec", + "ComponentsManager", + "ModularPipeline", + "AutoencoderKLWan", + "BitsAndBytesConfig", + "QwenImagePipeline", + "QwenImageControlNetModel", + "QwenImageControlNetPipeline", + "QwenImageLayeredPipeline", + "QwenImageEditPipeline", + "QwenImageEditPlusPipeline", + "QwenImageImg2ImgPipeline", + "QwenImageInpaintPipeline", + "QwenImageEditInpaintPipeline", + "ChromaImg2ImgPipeline", + "ChromaInpaintPipeline", + "LTX2Pipeline", + "QwenImageModularPipeline", + "QwenImageEditModularPipeline", + "QwenImageEditPlusModularPipeline", + "QwenImageLayeredModularPipeline", + "MiniMaxMusic3ModularPipeline", + "AnimateDiffPAGPipeline", + "AnimateDiffVideoToVideoPipeline", + "AnimateDiffControlNetPipeline", + "AnimateDiffVideoToVideoControlNetPipeline", + "CogVideoXVideoToVideoPipeline", + "WanVACEPipeline", + "WanVideoToVideoPipeline", + "WanPipeline", + "WanImageToVideoPipeline", + "WanModularPipeline", + "WanImage2VideoModularPipeline", + "LTXConditionPipeline", + "AceStepPipeline", + "StableAudioPipeline", + "LongCatAudioDiTPipeline", + "AudioLDM2Pipeline", + "ShapEPipeline", + "ShapEImg2ImgPipeline", + "StableDiffusionXLModularPipeline", + "StableDiffusionXLPipeline", + "StableDiffusionXLImg2ImgPipeline", + "StableDiffusionXLInpaintPipeline", + "StableDiffusionControlNetPipeline", + "StableDiffusionControlNetImg2ImgPipeline", + "StableDiffusionControlNetInpaintPipeline", + "StableDiffusionControlNetPAGPipeline", + "StableDiffusionControlNetPAGInpaintPipeline", + "StableDiffusionXLControlNetPipeline", + "StableDiffusionXLControlNetImg2ImgPipeline", + "StableDiffusionXLControlNetInpaintPipeline", + "StableDiffusionXLControlNetPAGPipeline", + "StableDiffusionXLControlNetPAGImg2ImgPipeline", + "ZImageImg2ImgPipeline", + "ZImageInpaintPipeline", + "FluxImg2ImgPipeline", + "FluxInpaintPipeline", + "FluxPipeline", + "Flux2KleinPipeline", + "Flux2KleinInpaintPipeline", + "FluxKontextPipeline", + "FluxKontextInpaintPipeline", + "FluxFillPipeline", + "FluxControlPipeline", + "FluxControlImg2ImgPipeline", + "FluxControlInpaintPipeline", + "FluxPriorReduxPipeline", + "FluxModularPipeline", + "FluxKontextModularPipeline", + "Flux2KleinModularPipeline", + "ErnieImagePipeline", + "ErnieImageTransformer2DModel", + "AutoencoderKLFlux2", + "GlmImagePipeline", + "GlmImageTransformer2DModel", + "HunyuanDiTPipeline", + "HunyuanDiTControlNetPipeline", + "HunyuanDiT2DModel", + "HunyuanDiT2DControlNetModel", + "JoyImageEditPipeline", + "JoyImageEditPlusPipeline", + "JoyImageEditTransformer3DModel", + "JoyImageEditPlusTransformer3DModel", + "Kandinsky3Pipeline", + "Kandinsky3Img2ImgPipeline", + "Kandinsky3UNet", + "LongCatImagePipeline", + "LongCatImageEditPipeline", + "LongCatImageTransformer2DModel", + "LuminaPipeline", + "LuminaNextDiT2DModel", + "Lumina2Pipeline", + "Lumina2Transformer2DModel", + "OmniGenPipeline", + "OmniGenTransformer2DModel", + "OvisImagePipeline", + "OvisImageTransformer2DModel", + "PRXPipeline", + "PRXTransformer2DModel", + "NucleusMoEImagePipeline", + "NucleusMoEImageTransformer2DModel", + "AutoencoderKLQwenImage" + ], + "requirements": ["transformers==5.16.0.dev0", "peft==0.20.0"], + "schemaVersion": 1, + "sourceBuilds": [ + { + "buildDependencies": [], + "distribution": "transformers", + "outputWheel": { + "byteSize": 52395984, + "distribution": "transformers", + "filename": "transformers-5.16.0.dev0-py3-none-any.whl", + "machine": "any", + "platform": "any", + "pythonTag": "py3", + "sha256": "8a439d25595c6dde486cfbd5a6ed8158e0fe7554ec236491668425e11952898f", + "version": "5.16.0.dev0" + }, + "pythonTag": "py3", + "recipe": "modiff_pure_python_wheel_v1", + "schemaVersion": 1, + "sourceArtifact": { + "archiveRoot": "transformers-96fe6dce36cc929a5ffd3e34296554c4cb6b669e", + "byteSize": 20532315, + "commit": "96fe6dce36cc929a5ffd3e34296554c4cb6b669e", + "filename": "transformers-96fe6dce36cc929a5ffd3e34296554c4cb6b669e.tar.gz", + "kind": "github_commit_tarball", + "repository": "huggingface/transformers", + "sha256": "e9903aec337657fd8ae1fd1e7812efed159c2cf4444e83e7fc877e252127e1b3", + "url": "https://codeload.github.com/huggingface/transformers/tar.gz/96fe6dce36cc929a5ffd3e34296554c4cb6b669e" + }, + "sourceDateEpoch": 315532800, + "sourceFiles": ["LICENSE", "README.md", "pyproject.toml", "setup.py"], + "sourceTrees": ["src/transformers"], + "version": "5.16.0.dev0", + "wheelMetadata": { + "consoleScripts": { "transformers": "transformers.cli.transformers:main" }, + "license": "Apache 2.0 License", + "licenseFile": "LICENSE", + "packageRoot": "src", + "requiresDist": [ + "huggingface-hub>=1.5.0,<2.0", + "numpy>=1.17", + "packaging>=20.0", + "pyyaml>=5.1", + "regex>=2025.10.22", + "tokenizers>=0.22.0,<=0.23.0", + "typer", + "safetensors>=0.8.0", + "tqdm>=4.60" + ], + "requiresPython": ">=3.10.0", + "summary": "Transformers: the model-definition framework for state-of-the-art machine learning models in text, vision, audio, and multimodal models, for both inference and training." + } + } + ], + "specDigest": "sha256:cb2440a5034b7c6962e82567a354f0afc13bfe7751cbaa8b8f84791d4172eafe", + "stagedPackages": [ + { + "distribution": "transformers", + "distributionUrl": "https://github.com/huggingface/transformers/commit/96fe6dce36cc929a5ffd3e34296554c4cb6b669e", + "importName": "transformers", + "license": "Apache-2.0", + "projectUrl": "https://github.com/huggingface/transformers", + "publisher": "Hugging Face", + "requiredClassSymbols": [ + "Qwen2_5_VLForConditionalGeneration", + "Qwen2Tokenizer", + "Qwen2VLProcessor", + "AutoConfig", + "AutoTokenizer", + "AutoModelForCausalLM", + "LlamaForCausalLM", + "CLIPImageProcessor", + "CLIPVisionModel", + "UMT5EncoderModel", + "T5EncoderModel", + "T5Tokenizer", + "T5TokenizerFast", + "PreTrainedModel", + "PreTrainedTokenizerFast", + "CLIPTextModel", + "CLIPTextModelWithProjection", + "CLIPTokenizer", + "CLIPVisionModelWithProjection", + "SiglipImageProcessor", + "SiglipVisionModel", + "Qwen2TokenizerFast", + "Qwen3ForCausalLM", + "Qwen3Model", + "Qwen3VLForConditionalGeneration", + "Qwen3VLProcessor", + "AutoProcessor", + "AutoModelForImageTextToText", + "Idefics3ForConditionalGeneration", + "Idefics3Processor", + "AutoModelForMultimodalLM", + "JanusForConditionalGeneration", + "JanusProcessor", + "JanusImageProcessor", + "AutoModelForSpeechSeq2Seq", + "AutoModelForCTC", + "AnyToAnyPipeline", + "Mistral3Model", + "Mistral3ForConditionalGeneration", + "Ministral3ForCausalLM", + "GlmImageForConditionalGeneration", + "GlmImageProcessor", + "ByT5Tokenizer", + "BitsAndBytesConfig", + "GemmaModel", + "Gemma2Model", + "GemmaPreTrainedModel", + "Gemma2PreTrainedModel", + "GemmaTokenizer", + "GemmaTokenizerFast", + "transformers.models.t5gemma.modeling_t5gemma:T5GemmaEncoder", + "LlamaTokenizer", + "LlamaTokenizerFast" + ], + "requiredSymbols": [ + "Qwen2_5_VLForConditionalGeneration", + "Qwen2Tokenizer", + "Qwen2VLProcessor", + "AutoConfig", + "AutoTokenizer", + "AutoModelForCausalLM", + "LlamaForCausalLM", + "CLIPImageProcessor", + "CLIPVisionModel", + "UMT5EncoderModel", + "T5EncoderModel", + "T5Tokenizer", + "T5TokenizerFast", + "PreTrainedModel", + "PreTrainedTokenizerFast", + "CLIPTextModel", + "CLIPTextModelWithProjection", + "CLIPTokenizer", + "CLIPVisionModelWithProjection", + "SiglipImageProcessor", + "SiglipVisionModel", + "Qwen2TokenizerFast", + "Qwen3ForCausalLM", + "Qwen3Model", + "Qwen3VLForConditionalGeneration", + "Qwen3VLProcessor", + "AutoProcessor", + "AutoModelForImageTextToText", + "Idefics3ForConditionalGeneration", + "Idefics3Processor", + "AutoModelForMultimodalLM", + "JanusForConditionalGeneration", + "JanusProcessor", + "JanusImageProcessor", + "AutoModelForSpeechSeq2Seq", + "AutoModelForCTC", + "AnyToAnyPipeline", + "pipeline", + "Mistral3Model", + "Mistral3ForConditionalGeneration", + "Ministral3ForCausalLM", + "GlmImageForConditionalGeneration", + "GlmImageProcessor", + "ByT5Tokenizer", + "BitsAndBytesConfig", + "GemmaModel", + "Gemma2Model", + "GemmaPreTrainedModel", + "Gemma2PreTrainedModel", + "GemmaTokenizer", + "GemmaTokenizerFast", + "transformers.models.t5gemma.modeling_t5gemma:T5GemmaEncoder", + "LlamaTokenizer", + "LlamaTokenizerFast", + "transformers.core_model_loading:tqdm", + "transformers.utils.logging:tqdm", + "transformers.utils.logging:get_verbosity", + "transformers.utils.logging:set_verbosity" + ], + "requiredVersion": "5.16.0.dev0", + "requirement": "transformers==5.16.0.dev0", + "role": "runtime_root" + }, + { + "distribution": "peft", + "distributionUrl": "https://pypi.org/project/peft/", + "importName": "peft", + "license": "Apache-2.0", + "projectUrl": "https://github.com/huggingface/peft", + "publisher": "Hugging Face", + "requiredClassSymbols": [ + "LoraConfig", + "PeftConfig", + "PeftModel", + "tuners.tuners_utils.BaseTunerLayer", + "tuners.lora.layer.LoraLayer" + ], + "requiredSymbols": [ + "LoraConfig", + "PeftConfig", + "PeftModel", + "inject_adapter_in_model", + "set_peft_model_state_dict", + "tuners.tuners_utils.BaseTunerLayer", + "tuners.lora.layer.LoraLayer", + "utils.other._get_submodules", + "utils.save_and_load.get_peft_model_state_dict", + "peft.utils.hotswap:check_hotswap_configs_compatible", + "peft.utils.hotswap:hotswap_adapter_from_state_dict", + "peft.utils.hotswap:prepare_model_for_compiled_hotswap" + ], + "requiredVersion": "0.20.0", + "requirement": "peft==0.20.0", + "role": "runtime_root" + }, + { + "distribution": "tokenizers", + "distributionUrl": "https://pypi.org/project/tokenizers/", + "importName": "tokenizers", + "license": "Apache-2.0", + "projectUrl": "https://github.com/huggingface/tokenizers", + "publisher": "Hugging Face", + "requiredClassSymbols": ["Tokenizer", "tokenizers.tokenizers:Tokenizer"], + "requiredSymbols": ["Tokenizer", "tokenizers.tokenizers:Tokenizer"], + "requiredVersion": "0.22.2", + "requirement": "tokenizers==0.22.2", + "role": "runtime_dependency" + }, + { + "distribution": "typer", + "distributionUrl": "https://pypi.org/project/typer/", + "importName": "typer", + "license": "MIT", + "projectUrl": "https://github.com/fastapi/typer", + "publisher": "FastAPI", + "requiredClassSymbols": ["Typer"], + "requiredSymbols": ["Typer"], + "requiredVersion": "0.27.1", + "requirement": "typer==0.27.1", + "role": "runtime_dependency" + }, + { + "distribution": "annotated-doc", + "distributionUrl": "https://pypi.org/project/annotated-doc/", + "importName": "annotated_doc", + "license": "MIT", + "projectUrl": "https://github.com/fastapi/annotated-doc", + "publisher": "FastAPI", + "requiredClassSymbols": ["Doc"], + "requiredSymbols": ["Doc"], + "requiredVersion": "0.0.5", + "requirement": "annotated-doc==0.0.5", + "role": "runtime_dependency" + }, + { + "distribution": "rich", + "distributionUrl": "https://pypi.org/project/rich/", + "importName": "rich", + "license": "MIT", + "projectUrl": "https://github.com/Textualize/rich", + "publisher": "Textualize", + "requiredClassSymbols": [], + "requiredSymbols": ["print"], + "requiredVersion": "15.0.0", + "requirement": "rich==15.0.0", + "role": "runtime_dependency" + }, + { + "distribution": "markdown-it-py", + "distributionUrl": "https://pypi.org/project/markdown-it-py/", + "importName": "markdown_it", + "license": "MIT", + "projectUrl": "https://github.com/executablebooks/markdown-it-py", + "publisher": "Executable Books", + "requiredClassSymbols": ["MarkdownIt"], + "requiredSymbols": ["MarkdownIt"], + "requiredVersion": "4.2.0", + "requirement": "markdown-it-py==4.2.0", + "role": "runtime_dependency" + }, + { + "distribution": "mdurl", + "distributionUrl": "https://pypi.org/project/mdurl/", + "importName": "mdurl", + "license": "MIT", + "projectUrl": "https://github.com/executablebooks/mdurl", + "publisher": "Executable Books", + "requiredClassSymbols": [], + "requiredSymbols": ["encode"], + "requiredVersion": "0.1.2", + "requirement": "mdurl==0.1.2", + "role": "runtime_dependency" + }, + { + "distribution": "pygments", + "distributionUrl": "https://pypi.org/project/Pygments/", + "importName": "pygments", + "license": "BSD-2-Clause", + "projectUrl": "https://github.com/pygments/pygments", + "publisher": "Pygments", + "requiredClassSymbols": [], + "requiredSymbols": ["highlight"], + "requiredVersion": "2.20.0", + "requirement": "pygments==2.20.0", + "role": "runtime_dependency" + }, + { + "distribution": "shellingham", + "distributionUrl": "https://pypi.org/project/shellingham/", + "importName": "shellingham", + "license": "ISC", + "projectUrl": "https://github.com/sarugaku/shellingham", + "publisher": "Sarugaku", + "requiredClassSymbols": [], + "requiredSymbols": ["detect_shell"], + "requiredVersion": "1.5.4", + "requirement": "shellingham==1.5.4", + "role": "runtime_dependency" + } + ], + "stagedRequirements": [ + "transformers==5.16.0.dev0", + "peft==0.20.0", + "tokenizers==0.22.2", + "typer==0.27.1", + "annotated-doc==0.0.5", + "rich==15.0.0", + "markdown-it-py==4.2.0", + "mdurl==0.1.2", + "pygments==2.20.0", + "shellingham==1.5.4" + ], + "status": "wrong_version", + "targetContracts": [ + { + "activationAvailable": true, + "contractState": "qualified", + "cutoverReady": true, + "installActionAvailable": true, + "machine": "x86_64", + "platform": "linux" + }, + { + "activationAvailable": false, + "contractState": "candidate_unqualified", + "cutoverReady": false, + "installActionAvailable": false, + "machine": "arm64", + "platform": "linux" + }, + { + "activationAvailable": false, + "contractState": "candidate_unqualified", + "cutoverReady": false, + "installActionAvailable": false, + "machine": "x86_64", + "platform": "macos" + }, + { + "activationAvailable": false, + "contractState": "candidate_unqualified", + "cutoverReady": false, + "installActionAvailable": false, + "machine": "arm64", + "platform": "macos" + }, + { + "activationAvailable": false, + "contractState": "candidate_unqualified", + "cutoverReady": false, + "installActionAvailable": false, + "machine": "x86_64", + "platform": "windows" + }, + { + "activationAvailable": false, + "contractState": "candidate_unqualified", + "cutoverReady": false, + "installActionAvailable": false, + "machine": "arm64", + "platform": "windows" + } + ] + }, + { + "activationAvailable": false, + "artifactLocks": [ + { + "byteSize": 165285, + "distribution": "optimum-quanto", + "filename": "optimum_quanto-0.2.7-py3-none-any.whl", + "machine": "x86_64", + "platform": "linux", + "pythonTag": "cp312", + "sha256": "1369b1d9a4a197f88c0d1c67e8d950694e5b86ce4c9f3878e178d5be35339f61", + "url": "https://files.pythonhosted.org/packages/8d/33/4ad914b0ae7e46296fe00d76d084be351fef69816b3498ed32a178471c8a/optimum_quanto-0.2.7-py3-none-any.whl", + "version": "0.2.7" + }, + { + "byteSize": 180716, + "distribution": "ninja", + "filename": "ninja-1.13.0-py3-none-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", + "machine": "x86_64", + "platform": "linux", + "pythonTag": "cp312", + "sha256": "fb46acf6b93b8dd0322adc3a4945452a4e774b75b91293bafcc7b7f8e6517dfa", + "url": "https://files.pythonhosted.org/packages/ed/de/0e6edf44d6a04dabd0318a519125ed0415ce437ad5a1ec9b9be03d9048cf/ninja-1.13.0-py3-none-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", + "version": "1.13.0" + } + ], + "baseIncluded": false, + "baseRequirements": [ + { "distribution": "accelerate", "importName": "accelerate", "specifier": ">=1.4.0" }, + { "distribution": "anyio", "importName": "anyio", "specifier": "" }, + { "distribution": "certifi", "importName": "certifi", "specifier": "" }, + { "distribution": "click", "importName": "click", "specifier": "" }, + { "distribution": "filelock", "importName": "filelock", "specifier": "" }, + { "distribution": "fsspec", "importName": "fsspec", "specifier": "" }, + { "distribution": "h11", "importName": "h11", "specifier": "" }, + { "distribution": "hf-xet", "importName": "hf_xet", "specifier": "" }, + { "distribution": "httpcore", "importName": "httpcore", "specifier": "" }, + { "distribution": "httpx", "importName": "httpx", "specifier": "" }, + { "distribution": "huggingface-hub", "importName": "huggingface_hub", "specifier": ">=1.31.0,<2.0" }, + { "distribution": "idna", "importName": "idna", "specifier": "" }, + { "distribution": "jinja2", "importName": "jinja2", "specifier": "" }, + { "distribution": "markupsafe", "importName": "markupsafe", "specifier": "" }, + { "distribution": "mpmath", "importName": "mpmath", "specifier": "" }, + { "distribution": "networkx", "importName": "networkx", "specifier": "" }, + { "distribution": "numpy", "importName": "numpy", "specifier": ">=1.17" }, + { "distribution": "packaging", "importName": "packaging", "specifier": ">=20.0" }, + { "distribution": "pillow", "importName": "PIL", "specifier": ">=10.0.1,<=15.0" }, + { "distribution": "protobuf", "importName": "google.protobuf", "specifier": ">=6.31.1" }, + { "distribution": "psutil", "importName": "psutil", "specifier": "" }, + { "distribution": "pyyaml", "importName": "yaml", "specifier": ">=5.1" }, + { "distribution": "regex", "importName": "regex", "specifier": ">=2025.10.22" }, + { "distribution": "safetensors", "importName": "safetensors", "specifier": ">=0.8.0" }, + { "distribution": "sentencepiece", "importName": "sentencepiece", "specifier": ">=0.2.0" }, + { "distribution": "setuptools", "importName": "setuptools", "specifier": "" }, + { "distribution": "sympy", "importName": "sympy", "specifier": "" }, + { "distribution": "torch", "importName": "torch", "specifier": ">=2.6.0" }, + { "distribution": "torchvision", "importName": "torchvision", "specifier": ">=0.21.0" }, + { "distribution": "tqdm", "importName": "tqdm", "specifier": ">=4.60" }, + { "distribution": "typing-extensions", "importName": "typing_extensions", "specifier": "" }, + { "distribution": "colorama", "importName": "colorama", "platforms": ["windows"], "specifier": "" }, + { "distribution": "transformers", "importName": "transformers", "specifier": ">=5.18.0" }, + { "distribution": "peft", "importName": "peft", "specifier": ">=0.21.2" }, + { "distribution": "tokenizers", "importName": "tokenizers", "specifier": "" }, + { "distribution": "typer", "importName": "typer", "specifier": "" }, + { "distribution": "annotated-doc", "importName": "annotated_doc", "specifier": "" }, + { "distribution": "rich", "importName": "rich", "specifier": "" }, + { "distribution": "markdown-it-py", "importName": "markdown_it", "specifier": "" }, + { "distribution": "mdurl", "importName": "mdurl", "specifier": "" }, + { "distribution": "pygments", "importName": "pygments", "specifier": "" }, + { "distribution": "shellingham", "importName": "shellingham", "specifier": "" }, + { "distribution": "requests", "importName": "requests", "specifier": ">=2.25" } + ], + "contractState": "candidate_unqualified", + "cutoverReady": false, + "excludedQualificationSymbols": ["add_weighted_adapter"], + "id": "huggingface-transformers-main-96fe6dce-peft-0.20.0-quanto-0.2.7", + "installActionAvailable": false, + "installPolicy": "explicit_first_use", + "label": "Optimum Quanto 0.2.7", + "machine": "x86_64", + "overlayStatus": "missing", + "packages": [ + { + "distribution": "optimum-quanto", + "distributionUrl": "https://pypi.org/project/optimum-quanto/0.2.7/", + "importName": "optimum.quanto", + "license": "Apache-2.0", + "projectUrl": "https://github.com/huggingface/optimum-quanto", + "publisher": "Hugging Face", + "requiredClassSymbols": [], + "requiredSymbols": ["freeze", "quantize"], + "requiredVersion": "0.2.7", + "requirement": "optimum-quanto==0.2.7", + "role": "runtime_root", + "status": "missing" + } + ], + "pipelineAdapterMethods": [], + "pipelineAdapterSymbols": [], + "platform": "windows", + "requirePeftBackend": true, + "requiredDiffusersSymbols": ["QuantoConfig"], + "requirements": ["optimum-quanto==0.2.7"], + "schemaVersion": 1, + "specDigest": "sha256:b5cf3eaff6041fd898066eeebbc5606d21b6b60426f0d26c2237ef45e394c9cd", + "stagedPackages": [ + { + "distribution": "optimum-quanto", + "distributionUrl": "https://pypi.org/project/optimum-quanto/0.2.7/", + "importName": "optimum.quanto", + "license": "Apache-2.0", + "projectUrl": "https://github.com/huggingface/optimum-quanto", + "publisher": "Hugging Face", + "requiredClassSymbols": [], + "requiredSymbols": ["freeze", "quantize"], + "requiredVersion": "0.2.7", + "requirement": "optimum-quanto==0.2.7", + "role": "runtime_root" + }, + { + "distribution": "ninja", + "distributionUrl": "https://pypi.org/project/ninja/1.13.0/", + "importName": "ninja", + "license": "Apache-2.0 AND BSD-3-Clause", + "projectUrl": "https://github.com/scikit-build/ninja-python-distributions", + "publisher": "Kitware and contributors", + "requiredClassSymbols": [], + "requiredSymbols": ["ninja"], + "requiredVersion": "1.13.0", + "requirement": "ninja==1.13.0", + "role": "runtime_dependency" + } + ], + "stagedRequirements": ["optimum-quanto==0.2.7", "ninja==1.13.0"], + "status": "missing", + "targetContracts": [ + { + "activationAvailable": true, + "contractState": "qualified", + "cutoverReady": true, + "installActionAvailable": true, + "machine": "x86_64", + "platform": "linux" + }, + { + "activationAvailable": false, + "contractState": "candidate_unqualified", + "cutoverReady": false, + "installActionAvailable": false, + "machine": "arm64", + "platform": "linux" + }, + { + "activationAvailable": false, + "contractState": "candidate_unqualified", + "cutoverReady": false, + "installActionAvailable": false, + "machine": "x86_64", + "platform": "macos" + }, + { + "activationAvailable": false, + "contractState": "candidate_unqualified", + "cutoverReady": false, + "installActionAvailable": false, + "machine": "arm64", + "platform": "macos" + }, + { + "activationAvailable": false, + "contractState": "candidate_unqualified", + "cutoverReady": false, + "installActionAvailable": false, + "machine": "x86_64", + "platform": "windows" + }, + { + "activationAvailable": false, + "contractState": "candidate_unqualified", + "cutoverReady": false, + "installActionAvailable": false, + "machine": "arm64", + "platform": "windows" + } + ] + }, + { + "activationAvailable": false, + "artifactLocks": [ + { + "byteSize": 118475, + "distribution": "gguf", + "filename": "gguf-0.19.0-py3-none-any.whl", + "machine": "x86_64", + "platform": "linux", + "pythonTag": "cp312", + "sha256": "70bcd10edfe697fb2dad6e40af2234b9d8ece9a41a99761405121ebda1c3c1cd", + "url": "https://files.pythonhosted.org/packages/b3/bb/d71d6da82763528c2c2ed6b59a9d6142c6595545a4c448e2085d155e88c2/gguf-0.19.0-py3-none-any.whl", + "version": "0.19.0" + }, + { + "byteSize": 118475, + "distribution": "gguf", + "filename": "gguf-0.19.0-py3-none-any.whl", + "machine": "arm64", + "platform": "linux", + "pythonTag": "cp312", + "sha256": "70bcd10edfe697fb2dad6e40af2234b9d8ece9a41a99761405121ebda1c3c1cd", + "url": "https://files.pythonhosted.org/packages/b3/bb/d71d6da82763528c2c2ed6b59a9d6142c6595545a4c448e2085d155e88c2/gguf-0.19.0-py3-none-any.whl", + "version": "0.19.0" + }, + { + "byteSize": 118475, + "distribution": "gguf", + "filename": "gguf-0.19.0-py3-none-any.whl", + "machine": "x86_64", + "platform": "macos", + "pythonTag": "cp312", + "sha256": "70bcd10edfe697fb2dad6e40af2234b9d8ece9a41a99761405121ebda1c3c1cd", + "url": "https://files.pythonhosted.org/packages/b3/bb/d71d6da82763528c2c2ed6b59a9d6142c6595545a4c448e2085d155e88c2/gguf-0.19.0-py3-none-any.whl", + "version": "0.19.0" + }, + { + "byteSize": 118475, + "distribution": "gguf", + "filename": "gguf-0.19.0-py3-none-any.whl", + "machine": "arm64", + "platform": "macos", + "pythonTag": "cp312", + "sha256": "70bcd10edfe697fb2dad6e40af2234b9d8ece9a41a99761405121ebda1c3c1cd", + "url": "https://files.pythonhosted.org/packages/b3/bb/d71d6da82763528c2c2ed6b59a9d6142c6595545a4c448e2085d155e88c2/gguf-0.19.0-py3-none-any.whl", + "version": "0.19.0" + }, + { + "byteSize": 118475, + "distribution": "gguf", + "filename": "gguf-0.19.0-py3-none-any.whl", + "machine": "x86_64", + "platform": "windows", + "pythonTag": "cp312", + "sha256": "70bcd10edfe697fb2dad6e40af2234b9d8ece9a41a99761405121ebda1c3c1cd", + "url": "https://files.pythonhosted.org/packages/b3/bb/d71d6da82763528c2c2ed6b59a9d6142c6595545a4c448e2085d155e88c2/gguf-0.19.0-py3-none-any.whl", + "version": "0.19.0" + }, + { + "byteSize": 118475, + "distribution": "gguf", + "filename": "gguf-0.19.0-py3-none-any.whl", + "machine": "arm64", + "platform": "windows", + "pythonTag": "cp312", + "sha256": "70bcd10edfe697fb2dad6e40af2234b9d8ece9a41a99761405121ebda1c3c1cd", + "url": "https://files.pythonhosted.org/packages/b3/bb/d71d6da82763528c2c2ed6b59a9d6142c6595545a4c448e2085d155e88c2/gguf-0.19.0-py3-none-any.whl", + "version": "0.19.0" + } + ], + "baseIncluded": false, + "baseRequirements": [ + { "distribution": "accelerate", "importName": "accelerate", "specifier": ">=1.4.0" }, + { "distribution": "anyio", "importName": "anyio", "specifier": "" }, + { "distribution": "certifi", "importName": "certifi", "specifier": "" }, + { "distribution": "click", "importName": "click", "specifier": "" }, + { "distribution": "filelock", "importName": "filelock", "specifier": "" }, + { "distribution": "fsspec", "importName": "fsspec", "specifier": "" }, + { "distribution": "h11", "importName": "h11", "specifier": "" }, + { "distribution": "hf-xet", "importName": "hf_xet", "specifier": "" }, + { "distribution": "httpcore", "importName": "httpcore", "specifier": "" }, + { "distribution": "httpx", "importName": "httpx", "specifier": "" }, + { "distribution": "huggingface-hub", "importName": "huggingface_hub", "specifier": ">=1.31.0,<2.0" }, + { "distribution": "idna", "importName": "idna", "specifier": "" }, + { "distribution": "jinja2", "importName": "jinja2", "specifier": "" }, + { "distribution": "markupsafe", "importName": "markupsafe", "specifier": "" }, + { "distribution": "mpmath", "importName": "mpmath", "specifier": "" }, + { "distribution": "networkx", "importName": "networkx", "specifier": "" }, + { "distribution": "numpy", "importName": "numpy", "specifier": ">=1.17" }, + { "distribution": "packaging", "importName": "packaging", "specifier": ">=20.0" }, + { "distribution": "pillow", "importName": "PIL", "specifier": ">=10.0.1,<=15.0" }, + { "distribution": "protobuf", "importName": "google.protobuf", "specifier": ">=6.31.1" }, + { "distribution": "psutil", "importName": "psutil", "specifier": "" }, + { "distribution": "pyyaml", "importName": "yaml", "specifier": ">=5.1" }, + { "distribution": "regex", "importName": "regex", "specifier": ">=2025.10.22" }, + { "distribution": "safetensors", "importName": "safetensors", "specifier": ">=0.8.0" }, + { "distribution": "sentencepiece", "importName": "sentencepiece", "specifier": ">=0.2.0" }, + { "distribution": "setuptools", "importName": "setuptools", "specifier": "" }, + { "distribution": "sympy", "importName": "sympy", "specifier": "" }, + { "distribution": "torch", "importName": "torch", "specifier": ">=2.6.0" }, + { "distribution": "torchvision", "importName": "torchvision", "specifier": ">=0.21.0" }, + { "distribution": "tqdm", "importName": "tqdm", "specifier": ">=4.60" }, + { "distribution": "typing-extensions", "importName": "typing_extensions", "specifier": "" }, + { "distribution": "colorama", "importName": "colorama", "platforms": ["windows"], "specifier": "" }, + { "distribution": "transformers", "importName": "transformers", "specifier": ">=5.18.0" }, + { "distribution": "peft", "importName": "peft", "specifier": ">=0.21.2" }, + { "distribution": "tokenizers", "importName": "tokenizers", "specifier": "" }, + { "distribution": "typer", "importName": "typer", "specifier": "" }, + { "distribution": "annotated-doc", "importName": "annotated_doc", "specifier": "" }, + { "distribution": "rich", "importName": "rich", "specifier": "" }, + { "distribution": "markdown-it-py", "importName": "markdown_it", "specifier": "" }, + { "distribution": "mdurl", "importName": "mdurl", "specifier": "" }, + { "distribution": "pygments", "importName": "pygments", "specifier": "" }, + { "distribution": "shellingham", "importName": "shellingham", "specifier": "" }, + { "distribution": "requests", "importName": "requests", "specifier": ">=2.25" } + ], + "contractState": "candidate_unqualified", + "cutoverReady": false, + "excludedQualificationSymbols": ["add_weighted_adapter"], + "id": "huggingface-transformers-main-96fe6dce-peft-0.20.0-gguf-0.19.0", + "installActionAvailable": false, + "installPolicy": "explicit_first_use", + "label": "GGUF 0.19.0", + "machine": "x86_64", + "overlayStatus": "missing", + "packages": [ + { + "distribution": "gguf", + "distributionUrl": "https://pypi.org/project/gguf/0.19.0/", + "importName": "gguf", + "license": "MIT", + "projectUrl": "https://github.com/ggml-org/llama.cpp", + "publisher": "ggml.org and llama.cpp contributors", + "requiredClassSymbols": [], + "requiredSymbols": ["GGUFReader"], + "requiredVersion": "0.19.0", + "requirement": "gguf==0.19.0", + "role": "runtime_root", + "status": "missing" + } + ], + "pipelineAdapterMethods": [], + "pipelineAdapterSymbols": [], + "platform": "windows", + "requirePeftBackend": true, + "requiredDiffusersSymbols": ["GGUFQuantizationConfig", "FluxTransformer2DModel"], + "requirements": ["gguf==0.19.0"], + "schemaVersion": 1, + "specDigest": "sha256:a92395e7b3a652a2badbeb346d336de96819dc83e5698801825feef4aecf52ec", + "stagedPackages": [ + { + "distribution": "gguf", + "distributionUrl": "https://pypi.org/project/gguf/0.19.0/", + "importName": "gguf", + "license": "MIT", + "projectUrl": "https://github.com/ggml-org/llama.cpp", + "publisher": "ggml.org and llama.cpp contributors", + "requiredClassSymbols": [], + "requiredSymbols": ["GGUFReader"], + "requiredVersion": "0.19.0", + "requirement": "gguf==0.19.0", + "role": "runtime_root" + } + ], + "stagedRequirements": ["gguf==0.19.0"], + "status": "missing", + "targetContracts": [ + { + "activationAvailable": true, + "contractState": "qualified", + "cutoverReady": true, + "installActionAvailable": true, + "machine": "x86_64", + "platform": "linux" + }, + { + "activationAvailable": false, + "contractState": "candidate_unqualified", + "cutoverReady": false, + "installActionAvailable": false, + "machine": "arm64", + "platform": "linux" + }, + { + "activationAvailable": false, + "contractState": "candidate_unqualified", + "cutoverReady": false, + "installActionAvailable": false, + "machine": "x86_64", + "platform": "macos" + }, + { + "activationAvailable": false, + "contractState": "candidate_unqualified", + "cutoverReady": false, + "installActionAvailable": false, + "machine": "arm64", + "platform": "macos" + }, + { + "activationAvailable": false, + "contractState": "candidate_unqualified", + "cutoverReady": false, + "installActionAvailable": false, + "machine": "x86_64", + "platform": "windows" + }, + { + "activationAvailable": false, + "contractState": "candidate_unqualified", + "cutoverReady": false, + "installActionAvailable": false, + "machine": "arm64", + "platform": "windows" + } + ] + }, + { + "activationAvailable": true, + "artifactLocks": [ + { + "byteSize": 40860117, + "distribution": "bitsandbytes", + "filename": "bitsandbytes-0.50.0-py3-none-manylinux_2_24_x86_64.whl", + "machine": "x86_64", + "platform": "linux", + "pythonTag": "cp312", + "sha256": "173d137610468bec9cddbaa2e049254e97792657ab984e3e737bec1772c1668c", + "url": "https://files.pythonhosted.org/packages/22/08/9501f4fc830448a6862bd5313df94a7dd1ae678f4f81087b96569d4a6f8b/bitsandbytes-0.50.0-py3-none-manylinux_2_24_x86_64.whl", + "version": "0.50.0" + }, + { + "byteSize": 37961095, + "distribution": "bitsandbytes", + "filename": "bitsandbytes-0.50.0-py3-none-win_amd64.whl", + "machine": "x86_64", + "platform": "windows", + "pythonTag": "cp312", + "sha256": "7f9ebf51d76a00341711cdd557af97555274b5aad3444975ff9927866a18bc11", + "url": "https://files.pythonhosted.org/packages/78/40/7b2253f94ec8c6235606aa393f315d941d02c44f141b7bccae14202b3fea/bitsandbytes-0.50.0-py3-none-win_amd64.whl", + "version": "0.50.0" + } + ], + "baseIncluded": false, + "baseRequirements": [ + { "distribution": "accelerate", "importName": "accelerate", "specifier": ">=1.4.0" }, + { "distribution": "anyio", "importName": "anyio", "specifier": "" }, + { "distribution": "certifi", "importName": "certifi", "specifier": "" }, + { "distribution": "click", "importName": "click", "specifier": "" }, + { "distribution": "filelock", "importName": "filelock", "specifier": "" }, + { "distribution": "fsspec", "importName": "fsspec", "specifier": "" }, + { "distribution": "h11", "importName": "h11", "specifier": "" }, + { "distribution": "hf-xet", "importName": "hf_xet", "specifier": "" }, + { "distribution": "httpcore", "importName": "httpcore", "specifier": "" }, + { "distribution": "httpx", "importName": "httpx", "specifier": "" }, + { "distribution": "huggingface-hub", "importName": "huggingface_hub", "specifier": ">=1.31.0,<2.0" }, + { "distribution": "idna", "importName": "idna", "specifier": "" }, + { "distribution": "jinja2", "importName": "jinja2", "specifier": "" }, + { "distribution": "markupsafe", "importName": "markupsafe", "specifier": "" }, + { "distribution": "mpmath", "importName": "mpmath", "specifier": "" }, + { "distribution": "networkx", "importName": "networkx", "specifier": "" }, + { "distribution": "numpy", "importName": "numpy", "specifier": ">=1.17" }, + { "distribution": "packaging", "importName": "packaging", "specifier": ">=20.0" }, + { "distribution": "pillow", "importName": "PIL", "specifier": ">=10.0.1,<=15.0" }, + { "distribution": "protobuf", "importName": "google.protobuf", "specifier": ">=6.31.1" }, + { "distribution": "psutil", "importName": "psutil", "specifier": "" }, + { "distribution": "pyyaml", "importName": "yaml", "specifier": ">=5.1" }, + { "distribution": "regex", "importName": "regex", "specifier": ">=2025.10.22" }, + { "distribution": "safetensors", "importName": "safetensors", "specifier": ">=0.8.0" }, + { "distribution": "sentencepiece", "importName": "sentencepiece", "specifier": ">=0.2.0" }, + { "distribution": "setuptools", "importName": "setuptools", "specifier": "" }, + { "distribution": "sympy", "importName": "sympy", "specifier": "" }, + { "distribution": "torch", "importName": "torch", "specifier": ">=2.6.0" }, + { "distribution": "torchvision", "importName": "torchvision", "specifier": ">=0.21.0" }, + { "distribution": "tqdm", "importName": "tqdm", "specifier": ">=4.60" }, + { "distribution": "typing-extensions", "importName": "typing_extensions", "specifier": "" }, + { "distribution": "colorama", "importName": "colorama", "platforms": ["windows"], "specifier": "" }, + { "distribution": "transformers", "importName": "transformers", "specifier": ">=5.18.0" }, + { "distribution": "peft", "importName": "peft", "specifier": ">=0.21.2" }, + { "distribution": "tokenizers", "importName": "tokenizers", "specifier": "" }, + { "distribution": "typer", "importName": "typer", "specifier": "" }, + { "distribution": "annotated-doc", "importName": "annotated_doc", "specifier": "" }, + { "distribution": "rich", "importName": "rich", "specifier": "" }, + { "distribution": "markdown-it-py", "importName": "markdown_it", "specifier": "" }, + { "distribution": "mdurl", "importName": "mdurl", "specifier": "" }, + { "distribution": "pygments", "importName": "pygments", "specifier": "" }, + { "distribution": "shellingham", "importName": "shellingham", "specifier": "" }, + { "distribution": "requests", "importName": "requests", "specifier": ">=2.25" } + ], + "contractState": "qualified", + "cutoverReady": true, + "excludedQualificationSymbols": ["add_weighted_adapter"], + "id": "huggingface-transformers-main-96fe6dce-peft-0.20.0-bitsandbytes-0.50.0", + "installActionAvailable": true, + "installPolicy": "explicit_first_use", + "label": "bitsandbytes 0.50.0", + "machine": "x86_64", + "overlayStatus": "missing", + "packages": [ + { + "distribution": "bitsandbytes", + "distributionUrl": "https://pypi.org/project/bitsandbytes/0.50.0/", + "importName": "bitsandbytes", + "license": "MIT", + "projectUrl": "https://github.com/bitsandbytes-foundation/bitsandbytes", + "publisher": "bitsandbytes contributors", + "requiredClassSymbols": ["nn.Linear4bit"], + "requiredSymbols": ["functional.dequantize_4bit", "nn.Linear4bit"], + "requiredVersion": "0.50.0", + "requirement": "bitsandbytes==0.50.0", + "role": "runtime_root", + "status": "missing" + } + ], + "pipelineAdapterMethods": [], + "pipelineAdapterSymbols": [], + "platform": "windows", + "requirePeftBackend": true, + "requiredDiffusersSymbols": ["BitsAndBytesConfig"], + "requirements": ["bitsandbytes==0.50.0"], + "schemaVersion": 1, + "specDigest": "sha256:3905f3876edeb3a6cb79af897a3d04d8836d3a63573fec12ce3fccf4ddb67053", + "stagedPackages": [ + { + "distribution": "bitsandbytes", + "distributionUrl": "https://pypi.org/project/bitsandbytes/0.50.0/", + "importName": "bitsandbytes", + "license": "MIT", + "projectUrl": "https://github.com/bitsandbytes-foundation/bitsandbytes", + "publisher": "bitsandbytes contributors", + "requiredClassSymbols": ["nn.Linear4bit"], + "requiredSymbols": ["functional.dequantize_4bit", "nn.Linear4bit"], + "requiredVersion": "0.50.0", + "requirement": "bitsandbytes==0.50.0", + "role": "runtime_root" + } + ], + "stagedRequirements": ["bitsandbytes==0.50.0"], + "status": "missing", + "targetContracts": [ + { + "activationAvailable": false, + "contractState": "candidate_unqualified", + "cutoverReady": false, + "installActionAvailable": false, + "machine": "x86_64", + "platform": "linux" + }, + { + "activationAvailable": false, + "contractState": "candidate_unqualified", + "cutoverReady": false, + "installActionAvailable": false, + "machine": "arm64", + "platform": "linux" + }, + { + "activationAvailable": false, + "contractState": "candidate_unqualified", + "cutoverReady": false, + "installActionAvailable": false, + "machine": "x86_64", + "platform": "macos" + }, + { + "activationAvailable": false, + "contractState": "candidate_unqualified", + "cutoverReady": false, + "installActionAvailable": false, + "machine": "arm64", + "platform": "macos" + }, + { + "activationAvailable": true, + "contractState": "qualified", + "cutoverReady": true, + "installActionAvailable": true, + "machine": "x86_64", + "platform": "windows" + }, + { + "activationAvailable": false, + "contractState": "candidate_unqualified", + "cutoverReady": false, + "installActionAvailable": false, + "machine": "arm64", + "platform": "windows" + } + ] + }, + { + "activationAvailable": false, + "artifactLocks": [ + { + "byteSize": 61204038, + "distribution": "opencv-python-headless", + "filename": "opencv_python_headless-5.0.0.93-cp37-abi3-manylinux_2_28_x86_64.whl", + "machine": "x86_64", + "platform": "linux", + "pythonTag": "cp312", + "sha256": "ed709fdf9aa0bd1f2ed8549e71d19449b03a675bb581eb292285f6861953be37", + "url": "https://files.pythonhosted.org/packages/9b/21/f6ef335f6e65724aa78b8d792b48d40a48c381715f1e62f5a5049e09d07e/opencv_python_headless-5.0.0.93-cp37-abi3-manylinux_2_28_x86_64.whl", + "version": "5.0.0.93" + }, + { + "byteSize": 35786210, + "distribution": "av", + "filename": "av-18.1.0-cp311-abi3-manylinux_2_28_x86_64.whl", + "machine": "x86_64", + "platform": "linux", + "pythonTag": "cp312", + "sha256": "8a032e8d8ebc73dec079364b9b4a6837638a2d106e8472314e685ffbf163e700", + "url": "https://files.pythonhosted.org/packages/27/3a/204dbfc3e08eb4cdc6e6ff57be02150bc44523ebdb50182d10025792ebd9/av-18.1.0-cp311-abi3-manylinux_2_28_x86_64.whl", + "version": "18.1.0" + } + ], + "baseIncluded": false, + "baseRequirements": [ + { "distribution": "accelerate", "importName": "accelerate", "specifier": ">=1.4.0" }, + { "distribution": "anyio", "importName": "anyio", "specifier": "" }, + { "distribution": "certifi", "importName": "certifi", "specifier": "" }, + { "distribution": "click", "importName": "click", "specifier": "" }, + { "distribution": "filelock", "importName": "filelock", "specifier": "" }, + { "distribution": "fsspec", "importName": "fsspec", "specifier": "" }, + { "distribution": "h11", "importName": "h11", "specifier": "" }, + { "distribution": "hf-xet", "importName": "hf_xet", "specifier": "" }, + { "distribution": "httpcore", "importName": "httpcore", "specifier": "" }, + { "distribution": "httpx", "importName": "httpx", "specifier": "" }, + { "distribution": "huggingface-hub", "importName": "huggingface_hub", "specifier": ">=1.31.0,<2.0" }, + { "distribution": "idna", "importName": "idna", "specifier": "" }, + { "distribution": "jinja2", "importName": "jinja2", "specifier": "" }, + { "distribution": "markupsafe", "importName": "markupsafe", "specifier": "" }, + { "distribution": "mpmath", "importName": "mpmath", "specifier": "" }, + { "distribution": "networkx", "importName": "networkx", "specifier": "" }, + { "distribution": "numpy", "importName": "numpy", "specifier": ">=2,<3" }, + { "distribution": "packaging", "importName": "packaging", "specifier": ">=20.0" }, + { "distribution": "pillow", "importName": "PIL", "specifier": ">=10.0.1,<=15.0" }, + { "distribution": "protobuf", "importName": "google.protobuf", "specifier": ">=6.31.1" }, + { "distribution": "psutil", "importName": "psutil", "specifier": "" }, + { "distribution": "pyyaml", "importName": "yaml", "specifier": ">=5.1" }, + { "distribution": "regex", "importName": "regex", "specifier": ">=2025.10.22" }, + { "distribution": "safetensors", "importName": "safetensors", "specifier": ">=0.8.0" }, + { "distribution": "sentencepiece", "importName": "sentencepiece", "specifier": ">=0.2.0" }, + { "distribution": "setuptools", "importName": "setuptools", "specifier": "" }, + { "distribution": "sympy", "importName": "sympy", "specifier": "" }, + { "distribution": "torch", "importName": "torch", "specifier": ">=2.6.0" }, + { "distribution": "torchvision", "importName": "torchvision", "specifier": ">=0.21.0" }, + { "distribution": "tqdm", "importName": "tqdm", "specifier": ">=4.60" }, + { "distribution": "typing-extensions", "importName": "typing_extensions", "specifier": "" }, + { "distribution": "colorama", "importName": "colorama", "platforms": ["windows"], "specifier": "" }, + { "distribution": "transformers", "importName": "transformers", "specifier": ">=5.18.0" }, + { "distribution": "peft", "importName": "peft", "specifier": ">=0.21.2" }, + { "distribution": "tokenizers", "importName": "tokenizers", "specifier": "" }, + { "distribution": "typer", "importName": "typer", "specifier": "" }, + { "distribution": "annotated-doc", "importName": "annotated_doc", "specifier": "" }, + { "distribution": "rich", "importName": "rich", "specifier": "" }, + { "distribution": "markdown-it-py", "importName": "markdown_it", "specifier": "" }, + { "distribution": "mdurl", "importName": "mdurl", "specifier": "" }, + { "distribution": "pygments", "importName": "pygments", "specifier": "" }, + { "distribution": "shellingham", "importName": "shellingham", "specifier": "" }, + { "distribution": "requests", "importName": "requests", "specifier": ">=2.25" } + ], + "contractState": "candidate_unqualified", + "cutoverReady": false, + "excludedQualificationSymbols": ["add_weighted_adapter"], + "id": "gallery-media-opencv-5.0.0.93-pyav-18.1.0", + "incompatibleDistributions": ["opencv-python", "opencv-contrib-python", "opencv-contrib-python-headless"], + "installActionAvailable": false, + "installPolicy": "explicit_first_use", + "label": "Media codecs: OpenCV 5.0.0.93 + PyAV 18.1.0", + "machine": "x86_64", + "overlayStatus": "missing", + "packages": [ + { + "distribution": "opencv-python-headless", + "distributionUrl": "https://pypi.org/project/opencv-python-headless/", + "importName": "cv2", + "license": "Apache-2.0 AND MIT; bundled third-party notices", + "projectUrl": "https://github.com/opencv/opencv-python", + "publisher": "OpenCV on Wheels", + "requiredClassSymbols": [], + "requiredSymbols": ["Canny", "GaussianBlur", "Sobel", "calcOpticalFlowFarneback", "cvtColor", "remap"], + "requiredVersion": "5.0.0.93", + "requirement": "opencv-python-headless==5.0.0.93", + "role": "runtime_root", + "status": "missing" + }, + { + "distribution": "av", + "distributionUrl": "https://pypi.org/project/av/18.1.0/", + "importName": "av", + "license": "BSD-3-Clause", + "projectUrl": "https://pyav.org/", + "publisher": "PyAV contributors", + "requiredClassSymbols": ["VideoFrame"], + "requiredSymbols": ["open", "VideoFrame"], + "requiredVersion": "18.1.0", + "requirement": "av==18.1.0", + "role": "runtime_root", + "status": "missing" + } + ], + "pipelineAdapterMethods": [], + "pipelineAdapterSymbols": [], + "platform": "windows", + "requirePeftBackend": false, + "requiredDiffusersSymbols": [], + "requirements": ["opencv-python-headless==5.0.0.93", "av==18.1.0"], + "schemaVersion": 1, + "specDigest": "sha256:6bc7f7b893fddfe1dfd0774281a0ac0da57661acd9b76deea8b109186edadcd8", + "stagedPackages": [ + { + "distribution": "opencv-python-headless", + "distributionUrl": "https://pypi.org/project/opencv-python-headless/", + "importName": "cv2", + "license": "Apache-2.0 AND MIT; bundled third-party notices", + "projectUrl": "https://github.com/opencv/opencv-python", + "publisher": "OpenCV on Wheels", + "requiredClassSymbols": [], + "requiredSymbols": ["Canny", "GaussianBlur", "Sobel", "calcOpticalFlowFarneback", "cvtColor", "remap"], + "requiredVersion": "5.0.0.93", + "requirement": "opencv-python-headless==5.0.0.93", + "role": "runtime_root" + }, + { + "distribution": "av", + "distributionUrl": "https://pypi.org/project/av/18.1.0/", + "importName": "av", + "license": "BSD-3-Clause", + "projectUrl": "https://pyav.org/", + "publisher": "PyAV contributors", + "requiredClassSymbols": ["VideoFrame"], + "requiredSymbols": ["open", "VideoFrame"], + "requiredVersion": "18.1.0", + "requirement": "av==18.1.0", + "role": "runtime_root" + } + ], + "stagedRequirements": ["opencv-python-headless==5.0.0.93", "av==18.1.0"], + "status": "missing", + "targetContracts": [ + { + "activationAvailable": true, + "contractState": "qualified", + "cutoverReady": true, + "installActionAvailable": true, + "machine": "x86_64", + "platform": "linux" + }, + { + "activationAvailable": false, + "contractState": "candidate_unqualified", + "cutoverReady": false, + "installActionAvailable": false, + "machine": "arm64", + "platform": "linux" + }, + { + "activationAvailable": false, + "contractState": "candidate_unqualified", + "cutoverReady": false, + "installActionAvailable": false, + "machine": "x86_64", + "platform": "macos" + }, + { + "activationAvailable": false, + "contractState": "candidate_unqualified", + "cutoverReady": false, + "installActionAvailable": false, + "machine": "arm64", + "platform": "macos" + }, + { + "activationAvailable": false, + "contractState": "candidate_unqualified", + "cutoverReady": false, + "installActionAvailable": false, + "machine": "x86_64", + "platform": "windows" + }, + { + "activationAvailable": false, + "contractState": "candidate_unqualified", + "cutoverReady": false, + "installActionAvailable": false, + "machine": "arm64", + "platform": "windows" + } + ] + }, + { + "activationAvailable": false, + "artifactLocks": [ + { + "byteSize": 17501, + "distribution": "cosmos-guardrail", + "filename": "cosmos_guardrail-0.3.1-py3-none-any.whl", + "machine": "x86_64", + "platform": "linux", + "pythonTag": "cp312", + "sha256": "58c0ff49393f65b7589aa8365edc6640ebbcdfbfdde69c95b8a088fe13237ed6", + "url": "https://files.pythonhosted.org/packages/1a/ef/2e9257bc10fdbb6adb96f6086caa368a65dd6c1da3bfaf87c64a9d0b3684/cosmos_guardrail-0.3.1-py3-none-any.whl", + "version": "0.3.1" + }, + { + "byteSize": 1798643, + "distribution": "nltk", + "filename": "nltk-3.10.3-py3-none-any.whl", + "machine": "x86_64", + "platform": "linux", + "pythonTag": "cp312", + "sha256": "ff9598a8e20518ee0d557745890cc4435b9578489e2dcbc69c4f81fa060caf7c", + "url": "https://files.pythonhosted.org/packages/b6/6d/ebd2af4640b12168fdf0cb74b6118df2f32a2f62ec7e0c06fbfd80706639/nltk-3.10.3-py3-none-any.whl", + "version": "3.10.3" + }, + { + "byteSize": 46104, + "distribution": "better-profanity", + "filename": "better_profanity-0.7.0-py3-none-any.whl", + "machine": "x86_64", + "platform": "linux", + "pythonTag": "cp312", + "sha256": "bd4c529ea6aa2db1aaa50524be1ed14d0fe5c664f1fd88c8bc388c7e9f9f00e8", + "url": "https://files.pythonhosted.org/packages/f3/dd/0b074d89e903cc771721cde2c4bf3d8c9d114b5bd791af5c62bcf5fb9459/better_profanity-0.7.0-py3-none-any.whl", + "version": "0.7.0" + }, + { + "byteSize": 37388, + "distribution": "retinaface-py", + "filename": "retinaface_py-0.0.2-py3-none-any.whl", + "machine": "x86_64", + "platform": "linux", + "pythonTag": "cp312", + "sha256": "d8cc969841714e4275c35f2cbcec951b88e23a583608588c6c4ecd985a71d66d", + "url": "https://files.pythonhosted.org/packages/4c/de/f90cc5c235b8ccc8d893b0616a5d7ec59c59fe19339fa3b7fa7867b9f1ff/retinaface_py-0.0.2-py3-none-any.whl", + "version": "0.0.2" + }, + { + "byteSize": 73783032, + "distribution": "opencv-python", + "filename": "opencv_python-5.0.0.93-cp37-abi3-manylinux_2_28_x86_64.whl", + "machine": "x86_64", + "platform": "linux", + "pythonTag": "cp312", + "sha256": "c8de2dec111122a02e8beb28e16c31904992dfd6186560b142a92c71403c1039", + "url": "https://files.pythonhosted.org/packages/cf/4c/c73f828fdbcd37eaf21d08fa852544a3ca7c2dbb3ea76873d64f2ea413d1/opencv_python-5.0.0.93-cp37-abi3-manylinux_2_28_x86_64.whl", + "version": "5.0.0.93" + }, + { + "byteSize": 15003435, + "distribution": "scikit-image", + "filename": "scikit_image-0.25.2-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", + "machine": "x86_64", + "platform": "linux", + "pythonTag": "cp312", + "sha256": "a17e17eb8562660cc0d31bb55643a4da996a81944b82c54805c91b3fe66f4824", + "url": "https://files.pythonhosted.org/packages/6b/b5/b75527c0f9532dd8a93e8e7cd8e62e547b9f207d4c11e24f0006e8646b36/scikit_image-0.25.2-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", + "version": "0.25.2" + }, + { + "byteSize": 12097, + "distribution": "lazy-loader", + "filename": "lazy_loader-0.4-py3-none-any.whl", + "machine": "x86_64", + "platform": "linux", + "pythonTag": "cp312", + "sha256": "342aa8e14d543a154047afb4ba8ef17f5563baad3fc610d7b15b213b0f119efc", + "url": "https://files.pythonhosted.org/packages/83/60/d497a310bde3f01cb805196ac61b7ad6dc5dcf8dce66634dc34364b20b4f/lazy_loader-0.4-py3-none-any.whl", + "version": "0.4" + }, + { + "byteSize": 230800, + "distribution": "tifffile", + "filename": "tifffile-2025.6.11-py3-none-any.whl", + "machine": "x86_64", + "platform": "linux", + "pythonTag": "cp312", + "sha256": "32effb78b10b3a283eb92d4ebf844ae7e93e151458b0412f38518b4e6d2d7542", + "url": "https://files.pythonhosted.org/packages/3a/d8/1ba8f32bfc9cb69e37edeca93738e883f478fbe84ae401f72c0d8d507841/tifffile-2025.6.11-py3-none-any.whl", + "version": "2025.6.11" + }, + { + "byteSize": 309071, + "distribution": "joblib", + "filename": "joblib-1.5.3-py3-none-any.whl", + "machine": "x86_64", + "platform": "linux", + "pythonTag": "cp312", + "sha256": "5fc3c5039fc5ca8c0276333a188bbd59d6b7ab37fe6632daa76bc7f9ec18e713", + "url": "https://files.pythonhosted.org/packages/7b/91/984aca2ec129e2757d1e4e3c81c3fcda9d0f85b74670a094cc443d9ee949/joblib-1.5.3-py3-none-any.whl", + "version": "1.5.3" + }, + { + "byteSize": 25604, + "distribution": "defusedxml", + "filename": "defusedxml-0.7.1-py2.py3-none-any.whl", + "machine": "x86_64", + "platform": "linux", + "pythonTag": "cp312", + "sha256": "a352e7e428770286cc899e2542b6cdaedb2b4953ff269a210103ec58f6198a61", + "url": "https://files.pythonhosted.org/packages/07/6c/aa3f2f849e01cb6a001cd8554a88d4c77c5c1a31c95bdf1cf9301e6d9ef4/defusedxml-0.7.1-py2.py3-none-any.whl", + "version": "0.7.1" + } + ], + "baseIncluded": false, + "baseRequirements": [ + { "distribution": "packaging", "importName": "packaging", "specifier": ">=21" }, + { "distribution": "torch", "importName": "torch", "specifier": ">=2.6" }, + { "distribution": "torchvision", "importName": "torchvision", "specifier": ">=0.21" }, + { "distribution": "transformers", "importName": "transformers", "specifier": ">=5.18" }, + { "distribution": "peft", "importName": "peft", "specifier": ">=0.14" }, + { "distribution": "huggingface-hub", "importName": "huggingface_hub", "specifier": ">=1.31,<2" }, + { "distribution": "attrs", "importName": "attrs", "specifier": ">=25.1" }, + { "distribution": "numpy", "importName": "numpy", "specifier": ">=2,<3" }, + { "distribution": "scipy", "importName": "scipy", "specifier": ">=1.11.4" }, + { "distribution": "networkx", "importName": "networkx", "specifier": ">=3" }, + { "distribution": "pillow", "importName": "PIL", "specifier": ">=11.1" }, + { "distribution": "protobuf", "importName": "google.protobuf", "specifier": "" }, + { "distribution": "safetensors", "importName": "safetensors", "specifier": ">=0.5.3" }, + { "distribution": "sentencepiece", "importName": "sentencepiece", "specifier": ">=0.2" }, + { "distribution": "requests", "importName": "requests", "specifier": ">=2.28" }, + { "distribution": "tqdm", "importName": "tqdm", "specifier": "" }, + { "distribution": "imageio", "importName": "imageio", "specifier": "" }, + { "distribution": "imageio-ffmpeg", "importName": "imageio_ffmpeg", "specifier": "" }, + { "distribution": "click", "importName": "click", "specifier": "" }, + { "distribution": "regex", "importName": "regex", "specifier": "" } + ], + "contractState": "candidate_unqualified", + "cutoverReady": false, + "excludedQualificationSymbols": ["add_weighted_adapter"], + "id": "cosmos-guardrail-0.3.1", + "incompatibleDistributions": [ + "opencv-python-headless", + "opencv-contrib-python", + "opencv-contrib-python-headless" + ], + "installActionAvailable": false, + "installPolicy": "explicit_first_use", + "label": "Cosmos Guardrail 0.3.1", + "machine": "x86_64", + "overlayStatus": "missing", + "packages": [ + { + "distribution": "cosmos-guardrail", + "distributionUrl": "https://pypi.org/project/cosmos-guardrail/0.3.1/", + "importName": "cosmos_guardrail", + "license": "Apache-2.0", + "projectUrl": "https://pypi.org/project/cosmos-guardrail/0.3.1/", + "publisher": "cosmos-guardrail contributors", + "requiredClassSymbols": [], + "requiredSymbols": ["CosmosSafetyChecker"], + "requiredVersion": "0.3.1", + "requirement": "cosmos-guardrail==0.3.1", + "role": "runtime_root", + "status": "missing" + }, + { + "distribution": "opencv-python", + "distributionUrl": "https://pypi.org/project/opencv-python/5.0.0.93/", + "importName": "cv2", + "license": "Apache-2.0 AND MIT", + "projectUrl": "https://pypi.org/project/opencv-python/5.0.0.93/", + "publisher": "opencv-python contributors", + "requiredClassSymbols": [], + "requiredSymbols": [ + "Canny", + "GaussianBlur", + "Sobel", + "calcOpticalFlowFarneback", + "cvtColor", + "remap", + "imencode", + "imdecode" + ], + "requiredVersion": "5.0.0.93", + "requirement": "opencv-python==5.0.0.93", + "role": "runtime_root", + "status": "missing" + } + ], + "pipelineAdapterMethods": [], + "pipelineAdapterSymbols": [], + "platform": "windows", + "requirePeftBackend": false, + "requiredDiffusersSymbols": ["Cosmos3OmniModularPipeline", "Cosmos3DistilledModularPipeline"], + "requirements": ["cosmos-guardrail==0.3.1", "opencv-python==5.0.0.93"], + "schemaVersion": 1, + "specDigest": "sha256:e4222e47859407c7c4f50c8ed229c0fbffab6a1385d7744a697452fa3088d7aa", + "stagedPackages": [ + { + "distribution": "cosmos-guardrail", + "distributionUrl": "https://pypi.org/project/cosmos-guardrail/0.3.1/", + "importName": "cosmos_guardrail", + "license": "Apache-2.0", + "projectUrl": "https://pypi.org/project/cosmos-guardrail/0.3.1/", + "publisher": "cosmos-guardrail contributors", + "requiredClassSymbols": [], + "requiredSymbols": ["CosmosSafetyChecker"], + "requiredVersion": "0.3.1", + "requirement": "cosmos-guardrail==0.3.1", + "role": "runtime_root" + }, + { + "distribution": "nltk", + "distributionUrl": "https://pypi.org/project/nltk/3.10.3/", + "importName": "nltk", + "license": "Apache-2.0", + "projectUrl": "https://pypi.org/project/nltk/3.10.3/", + "publisher": "NLTK Team", + "requiredClassSymbols": [], + "requiredSymbols": ["WordNetLemmatizer"], + "requiredVersion": "3.10.3", + "requirement": "nltk==3.10.3", + "role": "dependency" + }, + { + "distribution": "better-profanity", + "distributionUrl": "https://pypi.org/project/better-profanity/0.7.0/", + "importName": "better_profanity", + "license": "MIT", + "projectUrl": "https://pypi.org/project/better-profanity/0.7.0/", + "publisher": "Son Nguyen Thanh", + "requiredClassSymbols": [], + "requiredSymbols": ["Profanity"], + "requiredVersion": "0.7.0", + "requirement": "better-profanity==0.7.0", + "role": "dependency" + }, + { + "distribution": "retinaface-py", + "distributionUrl": "https://pypi.org/project/retinaface-py/0.0.2/", + "importName": "retinaface", + "license": "MIT", + "projectUrl": "https://pypi.org/project/retinaface-py/0.0.2/", + "publisher": "Jiankang Deng", + "requiredClassSymbols": [], + "requiredSymbols": [], + "requiredVersion": "0.0.2", + "requirement": "retinaface-py==0.0.2", + "role": "dependency" + }, + { + "distribution": "opencv-python", + "distributionUrl": "https://pypi.org/project/opencv-python/5.0.0.93/", + "importName": "cv2", + "license": "Apache-2.0 AND MIT", + "projectUrl": "https://pypi.org/project/opencv-python/5.0.0.93/", + "publisher": "opencv-python contributors", + "requiredClassSymbols": [], + "requiredSymbols": [ + "Canny", + "GaussianBlur", + "Sobel", + "calcOpticalFlowFarneback", + "cvtColor", + "remap", + "imencode", + "imdecode" + ], + "requiredVersion": "5.0.0.93", + "requirement": "opencv-python==5.0.0.93", + "role": "runtime_root" + }, + { + "distribution": "scikit-image", + "distributionUrl": "https://pypi.org/project/scikit-image/0.25.2/", + "importName": "skimage", + "license": "BSD-3-Clause", + "projectUrl": "https://pypi.org/project/scikit-image/0.25.2/", + "publisher": "scikit-image contributors", + "requiredClassSymbols": [], + "requiredSymbols": [], + "requiredVersion": "0.25.2", + "requirement": "scikit-image==0.25.2", + "role": "dependency" + }, + { + "distribution": "lazy-loader", + "distributionUrl": "https://pypi.org/project/lazy-loader/0.4/", + "importName": "lazy_loader", + "license": "BSD-3-Clause", + "projectUrl": "https://pypi.org/project/lazy-loader/0.4/", + "publisher": "Scientific Python Developers", + "requiredClassSymbols": [], + "requiredSymbols": ["load", "attach"], + "requiredVersion": "0.4", + "requirement": "lazy-loader==0.4", + "role": "dependency" + }, + { + "distribution": "tifffile", + "distributionUrl": "https://pypi.org/project/tifffile/2025.6.11/", + "importName": "tifffile", + "license": "BSD-3-Clause", + "projectUrl": "https://pypi.org/project/tifffile/2025.6.11/", + "publisher": "Christoph Gohlke", + "requiredClassSymbols": [], + "requiredSymbols": ["imread", "imwrite"], + "requiredVersion": "2025.6.11", + "requirement": "tifffile==2025.6.11", + "role": "dependency" + }, + { + "distribution": "joblib", + "distributionUrl": "https://pypi.org/project/joblib/1.5.3/", + "importName": "joblib", + "license": "BSD-3-Clause", + "projectUrl": "https://pypi.org/project/joblib/1.5.3/", + "publisher": "joblib contributors", + "requiredClassSymbols": [], + "requiredSymbols": ["Parallel"], + "requiredVersion": "1.5.3", + "requirement": "joblib==1.5.3", + "role": "dependency" + }, + { + "distribution": "defusedxml", + "distributionUrl": "https://pypi.org/project/defusedxml/0.7.1/", + "importName": "defusedxml", + "license": "Python-2.0", + "projectUrl": "https://pypi.org/project/defusedxml/0.7.1/", + "publisher": "Christian Heimes", + "requiredClassSymbols": [], + "requiredSymbols": [], + "requiredVersion": "0.7.1", + "requirement": "defusedxml==0.7.1", + "role": "dependency" + } + ], + "stagedRequirements": [ + "cosmos-guardrail==0.3.1", + "nltk==3.10.3", + "better-profanity==0.7.0", + "retinaface-py==0.0.2", + "opencv-python==5.0.0.93", + "scikit-image==0.25.2", + "lazy-loader==0.4", + "tifffile==2025.6.11", + "joblib==1.5.3", + "defusedxml==0.7.1" + ], + "status": "missing", + "targetContracts": [ + { + "activationAvailable": true, + "contractState": "qualified", + "cutoverReady": true, + "installActionAvailable": true, + "machine": "x86_64", + "platform": "linux" + }, + { + "activationAvailable": false, + "contractState": "candidate_unqualified", + "cutoverReady": false, + "installActionAvailable": false, + "machine": "arm64", + "platform": "linux" + }, + { + "activationAvailable": false, + "contractState": "candidate_unqualified", + "cutoverReady": false, + "installActionAvailable": false, + "machine": "x86_64", + "platform": "macos" + }, + { + "activationAvailable": false, + "contractState": "candidate_unqualified", + "cutoverReady": false, + "installActionAvailable": false, + "machine": "arm64", + "platform": "macos" + }, + { + "activationAvailable": false, + "contractState": "candidate_unqualified", + "cutoverReady": false, + "installActionAvailable": false, + "machine": "x86_64", + "platform": "windows" + }, + { + "activationAvailable": false, + "contractState": "candidate_unqualified", + "cutoverReady": false, + "installActionAvailable": false, + "machine": "arm64", + "platform": "windows" + } + ] + }, + { + "activationAvailable": true, + "artifactLocks": [], + "baseIncluded": false, + "baseRequirements": [ + { "distribution": "accelerate", "importName": "accelerate", "specifier": ">=1.4.0" }, + { "distribution": "anyio", "importName": "anyio", "specifier": "" }, + { "distribution": "certifi", "importName": "certifi", "specifier": "" }, + { "distribution": "click", "importName": "click", "specifier": "" }, + { "distribution": "filelock", "importName": "filelock", "specifier": "" }, + { "distribution": "fsspec", "importName": "fsspec", "specifier": "" }, + { "distribution": "h11", "importName": "h11", "specifier": "" }, + { "distribution": "hf-xet", "importName": "hf_xet", "specifier": "" }, + { "distribution": "httpcore", "importName": "httpcore", "specifier": "" }, + { "distribution": "httpx", "importName": "httpx", "specifier": "" }, + { "distribution": "huggingface-hub", "importName": "huggingface_hub", "specifier": ">=1.32.0,<2.0" }, + { "distribution": "idna", "importName": "idna", "specifier": "" }, + { "distribution": "jinja2", "importName": "jinja2", "specifier": "" }, + { "distribution": "markupsafe", "importName": "markupsafe", "specifier": "" }, + { "distribution": "mpmath", "importName": "mpmath", "specifier": "" }, + { "distribution": "networkx", "importName": "networkx", "specifier": "" }, + { "distribution": "numpy", "importName": "numpy", "specifier": ">=1.17" }, + { "distribution": "packaging", "importName": "packaging", "specifier": ">=20.0" }, + { "distribution": "pillow", "importName": "PIL", "specifier": ">=10.0.1,<=15.0" }, + { "distribution": "protobuf", "importName": "google.protobuf", "specifier": ">=6.31.1" }, + { "distribution": "psutil", "importName": "psutil", "specifier": "" }, + { "distribution": "pyyaml", "importName": "yaml", "specifier": ">=5.1" }, + { "distribution": "regex", "importName": "regex", "specifier": ">=2025.10.22" }, + { "distribution": "safetensors", "importName": "safetensors", "specifier": ">=0.8.0" }, + { "distribution": "sentencepiece", "importName": "sentencepiece", "specifier": ">=0.2.0" }, + { "distribution": "setuptools", "importName": "setuptools", "specifier": "" }, + { "distribution": "sympy", "importName": "sympy", "specifier": "" }, + { "distribution": "torch", "importName": "torch", "specifier": ">=2.6.0" }, + { "distribution": "torchvision", "importName": "torchvision", "specifier": ">=0.21.0" }, + { "distribution": "tqdm", "importName": "tqdm", "specifier": ">=4.60" }, + { "distribution": "typing-extensions", "importName": "typing_extensions", "specifier": "" }, + { "distribution": "colorama", "importName": "colorama", "platforms": ["windows"], "specifier": "" }, + { "distribution": "transformers", "importName": "transformers", "specifier": ">=5.18.0" }, + { "distribution": "peft", "importName": "peft", "specifier": ">=0.21.2" }, + { "distribution": "tokenizers", "importName": "tokenizers", "specifier": "" }, + { "distribution": "typer", "importName": "typer", "specifier": "" }, + { "distribution": "annotated-doc", "importName": "annotated_doc", "specifier": "" }, + { "distribution": "rich", "importName": "rich", "specifier": "" }, + { "distribution": "markdown-it-py", "importName": "markdown_it", "specifier": "" }, + { "distribution": "mdurl", "importName": "mdurl", "specifier": "" }, + { "distribution": "pygments", "importName": "pygments", "specifier": "" }, + { "distribution": "shellingham", "importName": "shellingham", "specifier": "" }, + { "distribution": "requests", "importName": "requests", "specifier": ">=2.25" }, + { "distribution": "urllib3", "importName": "urllib3", "specifier": "" }, + { "distribution": "charset-normalizer", "importName": "charset_normalizer", "specifier": "" }, + { "distribution": "importlib-metadata", "importName": "importlib_metadata", "specifier": "" } + ], + "contractState": "qualified", + "cutoverReady": true, + "excludedQualificationSymbols": ["add_weighted_adapter"], + "id": "huggingface-diffusers-flux3-7ecb1e1", + "installActionAvailable": true, + "installPolicy": "explicit_first_use", + "label": "Official Diffusers FLUX 3 source runtime", + "machine": "x86_64", + "overlayStatus": "missing", + "packages": [ + { + "distribution": "diffusers", + "distributionUrl": "https://codeload.github.com/huggingface/diffusers/tar.gz/7ecb1e1b4fe500be7fb7381a7bb79a24d7fa3941", + "importName": "diffusers", + "installedVersion": "0.41.0.dev0", + "license": "Apache-2.0", + "projectUrl": "https://github.com/huggingface/diffusers", + "publisher": "Hugging Face", + "requiredClassSymbols": [ + "Flux3ModularPipeline", + "Flux3DistilledModularPipeline", + "Flux3Transformer2DModel", + "AutoencoderKLFlux2", + "FlowMatchEulerDiscreteScheduler", + "ClassifierFreeGuidance", + "ModularPipeline", + "ComponentsManager", + "ComponentSpec" + ], + "requiredSymbols": [ + "Flux3ModularPipeline", + "Flux3DistilledModularPipeline", + "Flux3Transformer2DModel", + "AutoencoderKLFlux2", + "FlowMatchEulerDiscreteScheduler", + "ClassifierFreeGuidance", + "ModularPipeline", + "ComponentsManager", + "ComponentSpec", + "diffusers.loaders.lora_conversion_utils:_convert_non_diffusers_flux3_lora_to_diffusers" + ], + "requiredVersion": "0.41.0.dev0", + "requirement": "diffusers==0.41.0.dev0", + "role": "runtime_root", + "status": "present_unqualified" + } + ], + "pipelineAdapterMethods": [ + { "method": "load_components", "requiredParameters": ["names", "workflow"] }, + { "method": "__call__", "requiredParameters": ["state", "output"] } + ], + "pipelineAdapterSymbols": ["Flux3ModularPipeline", "Flux3DistilledModularPipeline"], + "platform": "windows", + "providesDiffusers": true, + "requirePeftBackend": true, + "requiredDiffusersSymbols": [ + "Flux3ModularPipeline", + "Flux3DistilledModularPipeline", + "Flux3Transformer2DModel", + "AutoencoderKLFlux2", + "FlowMatchEulerDiscreteScheduler", + "ClassifierFreeGuidance", + "ModularPipeline", + "ComponentsManager", + "ComponentSpec" + ], + "requirements": ["diffusers==0.41.0.dev0"], + "schemaVersion": 1, + "sourceBuilds": [ + { + "buildDependencies": [], + "distribution": "diffusers", + "outputWheel": { + "byteSize": 27721978, + "distribution": "diffusers", + "filename": "diffusers-0.41.0.dev0-py3-none-any.whl", + "machine": "any", + "platform": "any", + "pythonTag": "py3", + "sha256": "59c8eb8aaaa25fe5f912e09c48bf66f7e41655c468a7ec47f56da93d8ca40dbd", + "version": "0.41.0.dev0" + }, + "pythonTag": "py3", + "recipe": "modiff_pure_python_wheel_v1", + "schemaVersion": 1, + "sourceArtifact": { + "archiveRoot": "diffusers-7ecb1e1b4fe500be7fb7381a7bb79a24d7fa3941", + "byteSize": 11802397, + "commit": "7ecb1e1b4fe500be7fb7381a7bb79a24d7fa3941", + "filename": "diffusers-7ecb1e1b4fe500be7fb7381a7bb79a24d7fa3941.tar.gz", + "kind": "github_commit_tarball", + "repository": "huggingface/diffusers", + "sha256": "84ee014d4acc0c7633d2778f2ac0125fa77a87e736c86a8092edb1d47a55a744", + "url": "https://codeload.github.com/huggingface/diffusers/tar.gz/7ecb1e1b4fe500be7fb7381a7bb79a24d7fa3941" + }, + "sourceDateEpoch": 315532800, + "sourceFiles": ["LICENSE", "README.md", "pyproject.toml", "setup.py"], + "sourceTrees": ["src/diffusers"], + "version": "0.41.0.dev0", + "wheelMetadata": { + "consoleScripts": { "diffusers-cli": "diffusers.commands.diffusers_cli:main" }, + "license": "Apache 2.0 License", + "licenseFile": "LICENSE", + "packageRoot": "src", + "requiresDist": [ + "importlib_metadata", + "filelock", + "huggingface-hub<3.0,>=1.32.0", + "numpy", + "regex!=2019.12.17", + "requests", + "safetensors>=0.8.0", + "Pillow" + ], + "requiresPython": ">=3.11.0", + "summary": "State-of-the-art diffusion in PyTorch." + } + } + ], + "specDigest": "sha256:82017c1615d807c1808c13929f0ee10b180058b2f976e51209a80e41939a40fe", + "stagedPackages": [ + { + "distribution": "diffusers", + "distributionUrl": "https://codeload.github.com/huggingface/diffusers/tar.gz/7ecb1e1b4fe500be7fb7381a7bb79a24d7fa3941", + "importName": "diffusers", + "license": "Apache-2.0", + "projectUrl": "https://github.com/huggingface/diffusers", + "publisher": "Hugging Face", + "requiredClassSymbols": [ + "Flux3ModularPipeline", + "Flux3DistilledModularPipeline", + "Flux3Transformer2DModel", + "AutoencoderKLFlux2", + "FlowMatchEulerDiscreteScheduler", + "ClassifierFreeGuidance", + "ModularPipeline", + "ComponentsManager", + "ComponentSpec" + ], + "requiredSymbols": [ + "Flux3ModularPipeline", + "Flux3DistilledModularPipeline", + "Flux3Transformer2DModel", + "AutoencoderKLFlux2", + "FlowMatchEulerDiscreteScheduler", + "ClassifierFreeGuidance", + "ModularPipeline", + "ComponentsManager", + "ComponentSpec", + "diffusers.loaders.lora_conversion_utils:_convert_non_diffusers_flux3_lora_to_diffusers" + ], + "requiredVersion": "0.41.0.dev0", + "requirement": "diffusers==0.41.0.dev0", + "role": "runtime_root" + } + ], + "stagedRequirements": ["diffusers==0.41.0.dev0"], + "status": "present_unqualified", + "targetContracts": [ + { + "activationAvailable": true, + "contractState": "qualified", + "cutoverReady": true, + "installActionAvailable": true, + "machine": "x86_64", + "platform": "linux" + }, + { + "activationAvailable": false, + "contractState": "candidate_unqualified", + "cutoverReady": false, + "installActionAvailable": false, + "machine": "arm64", + "platform": "linux" + }, + { + "activationAvailable": false, + "contractState": "candidate_unqualified", + "cutoverReady": false, + "installActionAvailable": false, + "machine": "x86_64", + "platform": "macos" + }, + { + "activationAvailable": false, + "contractState": "candidate_unqualified", + "cutoverReady": false, + "installActionAvailable": false, + "machine": "arm64", + "platform": "macos" + }, + { + "activationAvailable": true, + "contractState": "qualified", + "cutoverReady": true, + "installActionAvailable": true, + "machine": "x86_64", + "platform": "windows" + }, + { + "activationAvailable": false, + "contractState": "candidate_unqualified", + "cutoverReady": false, + "installActionAvailable": false, + "machine": "arm64", + "platform": "windows" + } + ] + }, + { + "activationAvailable": true, + "artifactLocks": [ + { + "byteSize": 40860117, + "distribution": "bitsandbytes", + "filename": "bitsandbytes-0.50.0-py3-none-manylinux_2_24_x86_64.whl", + "machine": "x86_64", + "platform": "linux", + "pythonTag": "cp312", + "sha256": "173d137610468bec9cddbaa2e049254e97792657ab984e3e737bec1772c1668c", + "url": "https://files.pythonhosted.org/packages/22/08/9501f4fc830448a6862bd5313df94a7dd1ae678f4f81087b96569d4a6f8b/bitsandbytes-0.50.0-py3-none-manylinux_2_24_x86_64.whl", + "version": "0.50.0" + }, + { + "byteSize": 37961095, + "distribution": "bitsandbytes", + "filename": "bitsandbytes-0.50.0-py3-none-win_amd64.whl", + "machine": "x86_64", + "platform": "windows", + "pythonTag": "cp312", + "sha256": "7f9ebf51d76a00341711cdd557af97555274b5aad3444975ff9927866a18bc11", + "url": "https://files.pythonhosted.org/packages/78/40/7b2253f94ec8c6235606aa393f315d941d02c44f141b7bccae14202b3fea/bitsandbytes-0.50.0-py3-none-win_amd64.whl", + "version": "0.50.0" + } + ], + "baseIncluded": false, + "baseRequirements": [ + { "distribution": "accelerate", "importName": "accelerate", "specifier": ">=1.4.0" }, + { "distribution": "anyio", "importName": "anyio", "specifier": "" }, + { "distribution": "certifi", "importName": "certifi", "specifier": "" }, + { "distribution": "click", "importName": "click", "specifier": "" }, + { "distribution": "filelock", "importName": "filelock", "specifier": "" }, + { "distribution": "fsspec", "importName": "fsspec", "specifier": "" }, + { "distribution": "h11", "importName": "h11", "specifier": "" }, + { "distribution": "hf-xet", "importName": "hf_xet", "specifier": "" }, + { "distribution": "httpcore", "importName": "httpcore", "specifier": "" }, + { "distribution": "httpx", "importName": "httpx", "specifier": "" }, + { "distribution": "huggingface-hub", "importName": "huggingface_hub", "specifier": ">=1.32.0,<2.0" }, + { "distribution": "idna", "importName": "idna", "specifier": "" }, + { "distribution": "jinja2", "importName": "jinja2", "specifier": "" }, + { "distribution": "markupsafe", "importName": "markupsafe", "specifier": "" }, + { "distribution": "mpmath", "importName": "mpmath", "specifier": "" }, + { "distribution": "networkx", "importName": "networkx", "specifier": "" }, + { "distribution": "numpy", "importName": "numpy", "specifier": ">=1.17" }, + { "distribution": "packaging", "importName": "packaging", "specifier": ">=20.0" }, + { "distribution": "pillow", "importName": "PIL", "specifier": ">=10.0.1,<=15.0" }, + { "distribution": "protobuf", "importName": "google.protobuf", "specifier": ">=6.31.1" }, + { "distribution": "psutil", "importName": "psutil", "specifier": "" }, + { "distribution": "pyyaml", "importName": "yaml", "specifier": ">=5.1" }, + { "distribution": "regex", "importName": "regex", "specifier": ">=2025.10.22" }, + { "distribution": "safetensors", "importName": "safetensors", "specifier": ">=0.8.0" }, + { "distribution": "sentencepiece", "importName": "sentencepiece", "specifier": ">=0.2.0" }, + { "distribution": "setuptools", "importName": "setuptools", "specifier": "" }, + { "distribution": "sympy", "importName": "sympy", "specifier": "" }, + { "distribution": "torch", "importName": "torch", "specifier": ">=2.6.0" }, + { "distribution": "torchvision", "importName": "torchvision", "specifier": ">=0.21.0" }, + { "distribution": "tqdm", "importName": "tqdm", "specifier": ">=4.60" }, + { "distribution": "typing-extensions", "importName": "typing_extensions", "specifier": "" }, + { "distribution": "colorama", "importName": "colorama", "platforms": ["windows"], "specifier": "" }, + { "distribution": "transformers", "importName": "transformers", "specifier": ">=5.18.0" }, + { "distribution": "peft", "importName": "peft", "specifier": ">=0.21.2" }, + { "distribution": "tokenizers", "importName": "tokenizers", "specifier": "" }, + { "distribution": "typer", "importName": "typer", "specifier": "" }, + { "distribution": "annotated-doc", "importName": "annotated_doc", "specifier": "" }, + { "distribution": "rich", "importName": "rich", "specifier": "" }, + { "distribution": "markdown-it-py", "importName": "markdown_it", "specifier": "" }, + { "distribution": "mdurl", "importName": "mdurl", "specifier": "" }, + { "distribution": "pygments", "importName": "pygments", "specifier": "" }, + { "distribution": "shellingham", "importName": "shellingham", "specifier": "" }, + { "distribution": "requests", "importName": "requests", "specifier": ">=2.25" }, + { "distribution": "urllib3", "importName": "urllib3", "specifier": "" }, + { "distribution": "charset-normalizer", "importName": "charset_normalizer", "specifier": "" }, + { "distribution": "importlib-metadata", "importName": "importlib_metadata", "specifier": "" } + ], + "contractState": "qualified", + "cutoverReady": true, + "excludedQualificationSymbols": ["add_weighted_adapter"], + "id": "huggingface-diffusers-flux3-7ecb1e1-bitsandbytes-0.50.0", + "installActionAvailable": true, + "installPolicy": "explicit_first_use", + "label": "Official Diffusers FLUX 3 + bitsandbytes 0.50.0", + "machine": "x86_64", + "overlayStatus": "missing", + "packages": [ + { + "distribution": "diffusers", + "distributionUrl": "https://codeload.github.com/huggingface/diffusers/tar.gz/7ecb1e1b4fe500be7fb7381a7bb79a24d7fa3941", + "importName": "diffusers", + "installedVersion": "0.41.0.dev0", + "license": "Apache-2.0", + "projectUrl": "https://github.com/huggingface/diffusers", + "publisher": "Hugging Face", + "requiredClassSymbols": [ + "Flux3ModularPipeline", + "Flux3DistilledModularPipeline", + "Flux3Transformer2DModel", + "AutoencoderKLFlux2", + "FlowMatchEulerDiscreteScheduler", + "ClassifierFreeGuidance", + "ModularPipeline", + "ComponentsManager", + "ComponentSpec" + ], + "requiredSymbols": [ + "Flux3ModularPipeline", + "Flux3DistilledModularPipeline", + "Flux3Transformer2DModel", + "AutoencoderKLFlux2", + "FlowMatchEulerDiscreteScheduler", + "ClassifierFreeGuidance", + "ModularPipeline", + "ComponentsManager", + "ComponentSpec", + "diffusers.loaders.lora_conversion_utils:_convert_non_diffusers_flux3_lora_to_diffusers" + ], + "requiredVersion": "0.41.0.dev0", + "requirement": "diffusers==0.41.0.dev0", + "role": "runtime_root", + "status": "present_unqualified" + }, + { + "distribution": "bitsandbytes", + "distributionUrl": "https://pypi.org/project/bitsandbytes/0.50.0/", + "importName": "bitsandbytes", + "license": "MIT", + "projectUrl": "https://github.com/bitsandbytes-foundation/bitsandbytes", + "publisher": "bitsandbytes contributors", + "requiredClassSymbols": ["nn.Linear4bit"], + "requiredSymbols": ["functional.dequantize_4bit", "nn.Linear4bit"], + "requiredVersion": "0.50.0", + "requirement": "bitsandbytes==0.50.0", + "role": "runtime_root", + "status": "missing" + } + ], + "pipelineAdapterMethods": [ + { "method": "load_components", "requiredParameters": ["names", "workflow"] }, + { "method": "__call__", "requiredParameters": ["state", "output"] } + ], + "pipelineAdapterSymbols": ["Flux3ModularPipeline", "Flux3DistilledModularPipeline"], + "platform": "windows", + "providesDiffusers": true, + "qualificationWorkload": "cuda-nf4-v1", + "requirePeftBackend": true, + "requiredDiffusersSymbols": [ + "Flux3ModularPipeline", + "Flux3DistilledModularPipeline", + "Flux3Transformer2DModel", + "AutoencoderKLFlux2", + "FlowMatchEulerDiscreteScheduler", + "ClassifierFreeGuidance", + "ModularPipeline", + "ComponentsManager", + "ComponentSpec", + "BitsAndBytesConfig" + ], + "requirements": ["diffusers==0.41.0.dev0", "bitsandbytes==0.50.0"], + "satisfiesProfiles": [ + { + "id": "huggingface-diffusers-flux3-7ecb1e1", + "specDigest": "sha256:82017c1615d807c1808c13929f0ee10b180058b2f976e51209a80e41939a40fe" + }, + { + "id": "huggingface-transformers-main-96fe6dce-peft-0.20.0-bitsandbytes-0.50.0", + "specDigest": "sha256:3905f3876edeb3a6cb79af897a3d04d8836d3a63573fec12ce3fccf4ddb67053" + } + ], + "schemaVersion": 1, + "sourceBuilds": [ + { + "buildDependencies": [], + "distribution": "diffusers", + "outputWheel": { + "byteSize": 27721978, + "distribution": "diffusers", + "filename": "diffusers-0.41.0.dev0-py3-none-any.whl", + "machine": "any", + "platform": "any", + "pythonTag": "py3", + "sha256": "59c8eb8aaaa25fe5f912e09c48bf66f7e41655c468a7ec47f56da93d8ca40dbd", + "version": "0.41.0.dev0" + }, + "pythonTag": "py3", + "recipe": "modiff_pure_python_wheel_v1", + "schemaVersion": 1, + "sourceArtifact": { + "archiveRoot": "diffusers-7ecb1e1b4fe500be7fb7381a7bb79a24d7fa3941", + "byteSize": 11802397, + "commit": "7ecb1e1b4fe500be7fb7381a7bb79a24d7fa3941", + "filename": "diffusers-7ecb1e1b4fe500be7fb7381a7bb79a24d7fa3941.tar.gz", + "kind": "github_commit_tarball", + "repository": "huggingface/diffusers", + "sha256": "84ee014d4acc0c7633d2778f2ac0125fa77a87e736c86a8092edb1d47a55a744", + "url": "https://codeload.github.com/huggingface/diffusers/tar.gz/7ecb1e1b4fe500be7fb7381a7bb79a24d7fa3941" + }, + "sourceDateEpoch": 315532800, + "sourceFiles": ["LICENSE", "README.md", "pyproject.toml", "setup.py"], + "sourceTrees": ["src/diffusers"], + "version": "0.41.0.dev0", + "wheelMetadata": { + "consoleScripts": { "diffusers-cli": "diffusers.commands.diffusers_cli:main" }, + "license": "Apache 2.0 License", + "licenseFile": "LICENSE", + "packageRoot": "src", + "requiresDist": [ + "importlib_metadata", + "filelock", + "huggingface-hub<3.0,>=1.32.0", + "numpy", + "regex!=2019.12.17", + "requests", + "safetensors>=0.8.0", + "Pillow" + ], + "requiresPython": ">=3.11.0", + "summary": "State-of-the-art diffusion in PyTorch." + } + } + ], + "specDigest": "sha256:7f3fd36d78b104121e3f4253c2233a91f479a04814e994fb7b08034a7358eb1f", + "stagedPackages": [ + { + "distribution": "diffusers", + "distributionUrl": "https://codeload.github.com/huggingface/diffusers/tar.gz/7ecb1e1b4fe500be7fb7381a7bb79a24d7fa3941", + "importName": "diffusers", + "license": "Apache-2.0", + "projectUrl": "https://github.com/huggingface/diffusers", + "publisher": "Hugging Face", + "requiredClassSymbols": [ + "Flux3ModularPipeline", + "Flux3DistilledModularPipeline", + "Flux3Transformer2DModel", + "AutoencoderKLFlux2", + "FlowMatchEulerDiscreteScheduler", + "ClassifierFreeGuidance", + "ModularPipeline", + "ComponentsManager", + "ComponentSpec" + ], + "requiredSymbols": [ + "Flux3ModularPipeline", + "Flux3DistilledModularPipeline", + "Flux3Transformer2DModel", + "AutoencoderKLFlux2", + "FlowMatchEulerDiscreteScheduler", + "ClassifierFreeGuidance", + "ModularPipeline", + "ComponentsManager", + "ComponentSpec", + "diffusers.loaders.lora_conversion_utils:_convert_non_diffusers_flux3_lora_to_diffusers" + ], + "requiredVersion": "0.41.0.dev0", + "requirement": "diffusers==0.41.0.dev0", + "role": "runtime_root" + }, + { + "distribution": "bitsandbytes", + "distributionUrl": "https://pypi.org/project/bitsandbytes/0.50.0/", + "importName": "bitsandbytes", + "license": "MIT", + "projectUrl": "https://github.com/bitsandbytes-foundation/bitsandbytes", + "publisher": "bitsandbytes contributors", + "requiredClassSymbols": ["nn.Linear4bit"], + "requiredSymbols": ["functional.dequantize_4bit", "nn.Linear4bit"], + "requiredVersion": "0.50.0", + "requirement": "bitsandbytes==0.50.0", + "role": "runtime_root" + } + ], + "stagedRequirements": ["diffusers==0.41.0.dev0", "bitsandbytes==0.50.0"], + "status": "missing", + "targetContracts": [ + { + "activationAvailable": false, + "contractState": "candidate_unqualified", + "cutoverReady": false, + "installActionAvailable": false, + "machine": "x86_64", + "platform": "linux" + }, + { + "activationAvailable": false, + "contractState": "candidate_unqualified", + "cutoverReady": false, + "installActionAvailable": false, + "machine": "arm64", + "platform": "linux" + }, + { + "activationAvailable": false, + "contractState": "candidate_unqualified", + "cutoverReady": false, + "installActionAvailable": false, + "machine": "x86_64", + "platform": "macos" + }, + { + "activationAvailable": false, + "contractState": "candidate_unqualified", + "cutoverReady": false, + "installActionAvailable": false, + "machine": "arm64", + "platform": "macos" + }, + { + "activationAvailable": true, + "contractState": "qualified", + "cutoverReady": true, + "installActionAvailable": true, + "machine": "x86_64", + "platform": "windows" + }, + { + "activationAvailable": false, + "contractState": "candidate_unqualified", + "cutoverReady": false, + "installActionAvailable": false, + "machine": "arm64", + "platform": "windows" + } + ] + } + ], + "schemaVersion": 1 + }, + "proofScope": "Source metadata and required sealed-provider absence only; no model/native/Auto qualification", + "registry": { + "modules.HuggingFaceTransformers.GenerateImageVideoText": { + "action": "GenerateImageVideoText", + "cache": false, + "category": "Hugging Face Transformers", + "description": "Generate bounded text from bounded in-memory images or video frames.", + "label": "Generate Image/Video Text", + "memory": [0, 0, 0], + "module": "modules.HuggingFaceTransformers", + "params": { + "do_sample": { "default": false, "label": "Sample", "type": "boolean" }, + "enhancement_max_new_tokens": { + "default": 3584, + "description": "Used only by prompt enhancement; ordinary generation keeps Max New Tokens.", + "hidden": true, + "label": "Enhancement Token Limit", + "max": 3584, + "min": 1, + "type": "int" + }, + "images": { "display": "input", "label": "Images", "required": false, "type": "image" }, + "layout_conditioning": { + "default": null, + "display": "layout", + "fieldOptions": { "layoutConditioning": { "schemaVersion": 1, "sourceRegions": false } }, + "hidden": true, + "label": "Enhancement Layout", + "type": "layout_conditioning" + }, + "max_image_pixels": { + "default": 16777216, + "label": "Reference Pixel Limit", + "max": 16777216, + "min": 65536, + "type": "int" + }, + "max_input_tokens": { "default": 32768, "label": "Input Token Limit", "max": 32768, "min": 1, "type": "int" }, + "max_new_tokens": { "default": 256, "label": "Max New Tokens", "max": 2048, "min": 1, "type": "int" }, + "min_new_tokens": { "default": 0, "label": "Min New Tokens", "max": 2048, "min": 0, "type": "int" }, + "model": { "display": "input", "label": "Model", "type": "transformers_image_text_to_text" }, + "num_beams": { "default": 1, "label": "Beams", "max": 8, "min": 1, "type": "int" }, + "operation": { + "default": "standard", + "hidden": true, + "label": "Operation", + "options": [ + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "standard", + "schemaVersion": 1, + "value": "standard" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "enhance_prompt", + "schemaVersion": 1, + "value": "enhance_prompt" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "enhance_prompt_append_details", + "schemaVersion": 1, + "value": "enhance_prompt_append_details" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "enhance_prompt_constrained_authored_v1", + "schemaVersion": 1, + "value": "enhance_prompt_constrained_authored_v1" + } + ], + "type": "string" + }, + "prompt": { "default": "", "label": "Prompt", "type": "text" }, + "proposal_diagnostic": { + "display": "output", + "hidden": true, + "label": "Rejected Proposal Diagnostic", + "type": "string" + }, + "proposal_summary": { + "display": "output", + "hidden": true, + "label": "Prompt Proposal Summary", + "type": "string" + }, + "repetition_penalty": { + "default": 1.0, + "label": "Repetition Penalty", + "max": 10.0, + "min": 0.1, + "type": "float" + }, + "result": { "display": "output", "label": "Generation Result", "type": "object" }, + "temperature": { "default": 1.0, "label": "Temperature", "max": 5.0, "min": 0.01, "type": "float" }, + "text": { "display": "output", "label": "Generated Text", "type": "string" }, + "top_k": { "default": 50, "label": "Top K", "max": 1000, "min": 0, "type": "int" }, + "top_p": { "default": 1.0, "label": "Top P", "max": 1.0, "min": 0.01, "type": "float" }, + "use_chat_template": { "default": true, "label": "Use Chat Template", "type": "boolean" }, + "video": { "display": "input", "label": "Video", "required": false, "type": "video" } + }, + "resizable": true, + "skipParamsCheck": false, + "style": {}, + "time": [0, 0, 0], + "type": "custom" + }, + "modules.HuggingFaceTransformers.LoadImageTextToTextModel": { + "action": "LoadImageTextToTextModel", + "cache": false, + "category": "Hugging Face Transformers", + "description": "Load an immutable local-only image/video-to-text model and processor.", + "label": "Load Image/Video-to-Text Model", + "memory": [0, 0, 0], + "module": "modules.HuggingFaceTransformers", + "params": { + "device": { + "default": "cpu:0", + "label": "Device", + "options": { + "cpu": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "cpu", + "schemaVersion": 1, + "value": "cpu" + }, + "cpu:0": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "cpu:0", + "schemaVersion": 1, + "value": "cpu:0" + } + }, + "type": "string" + }, + "dtype": { + "default": "float32", + "label": "DType", + "options": [ + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "float32", + "schemaVersion": 1, + "value": "float32" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "float16", + "schemaVersion": 1, + "value": "float16" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "bfloat16", + "schemaVersion": 1, + "value": "bfloat16" + } + ], + "type": "string" + }, + "model": { "display": "output", "label": "Model", "type": "transformers_image_text_to_text" }, + "model_id": { + "display": "modelselect", + "fieldOptions": { "noValidation": true, "sources": ["hub", "local"] }, + "label": "Model", + "type": "string" + }, + "pipeline_class": { + "default": "AutoModelForImageTextToText", + "hidden": true, + "label": "Execution Class", + "type": "string" + }, + "quantization_mode": { + "default": "none", + "label": "Quantization", + "options": [ + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "none", + "schemaVersion": 1, + "value": "none" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "bnb_4bit", + "schemaVersion": 1, + "value": "bnb_4bit" + } + ], + "type": "string" + }, + "receipt": { "display": "output", "label": "Model Receipt", "type": "object" }, + "revision": { "default": "", "label": "Exact Hub Commit", "type": "string" } + }, + "resizable": true, + "skipParamsCheck": false, + "style": {}, + "time": [0, 0, 0], + "type": "custom" + }, + "modules.Image.Load": { + "action": "Load", + "cache": false, + "category": "image", + "description": "Load an image from a file", + "label": "Load Image", + "memory": [0, 0, 0], + "module": "modules.Image", + "params": { + "alpha_channel": { + "default": "ignore", + "label": "Alpha Channel", + "options": [ + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "ignore", + "schemaVersion": 1, + "value": "ignore" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "add alpha", + "schemaVersion": 1, + "value": "add alpha" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "remove alpha", + "schemaVersion": 1, + "value": "remove alpha" + } + ], + "type": "string" + }, + "file": { + "display": "filebrowser", + "fieldOptions": { "fileTypes": ["image"], "multiple": true }, + "label": false, + "type": "str" + }, + "height": { "display": "output", "type": "int" }, + "image": { "display": "output", "label": "Image", "type": "image" }, + "label": { "display": "ui_label", "value": "Load Image" }, + "mask": { "display": "output", "label": "Alpha mask", "type": "image" }, + "source_hash": { "display": "output", "label": "Source hash", "type": "str" }, + "width": { "display": "output", "type": "int" } + }, + "resizable": true, + "skipParamsCheck": false, + "style": {}, + "time": [0, 0, 0], + "type": "custom" + }, + "modules.Image.Preview": { + "action": "Preview", + "cache": false, + "category": "image", + "description": "Preview an image", + "label": "Preview Image", + "memory": [0, 0, 0], + "module": "modules.Image", + "params": { + "device": { + "default": "cpu:0", + "options": { + "cpu": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "cpu", + "schemaVersion": 1, + "value": "cpu" + }, + "cpu:0": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "cpu:0", + "schemaVersion": 1, + "value": "cpu:0" + } + }, + "type": "string" + }, + "export": { + "default": "0", + "description": "Export the image at the given index. Leave empty to export all images.", + "type": "str" + }, + "filtered": { "display": "output", "label": "Selected image", "type": "image" }, + "image": { + "display": "input", + "onChange": { + "action": "show", + "condition": { "type": "latent" }, + "data": { "false": [], "true": ["vae", "device"] } + }, + "type": ["image", "latent"] + }, + "output": { "display": "output", "label": "All images", "type": "image" }, + "preview": { "dataSource": "output", "display": "ui_image", "type": "url" }, + "vae": { "display": "input", "label": "VAE", "type": "pipeline" } + }, + "resizable": true, + "skipParamsCheck": false, + "style": {}, + "time": [0, 0, 0], + "type": "custom" + }, + "modules.ModularDiffusers.DecodeLatents": { + "action": "DecodeLatents", + "cache": false, + "category": "sampler", + "description": "", + "label": "Decode Latents", + "memory": [0, 0, 0], + "module": "modules.ModularDiffusers", + "params": { + "doc": { "display": "output", "label": "Doc", "type": "string" }, + "images": { "display": "output", "label": "Images", "type": "image" }, + "latents": { "display": "input", "label": "Latents *", "type": "latents" }, + "vae": { + "display": "input", + "label": "VAE *", + "onSignal": "update_node", + "signalCompatibility": { "role": "vae" }, + "type": "diffusers_auto_model" + } + }, + "resizable": true, + "skipParamsCheck": true, + "style": {}, + "time": [0, 0, 0], + "type": "custom" + }, + "modules.ModularDiffusers.Denoise": { + "action": "Denoise", + "cache": false, + "category": "sampler", + "description": "", + "label": "Denoise", + "memory": [0, 0, 0], + "module": "modules.ModularDiffusers", + "params": { + "doc": { "display": "output", "label": "Doc", "type": "string" }, + "embeddings": { "display": "input", "label": "Text Embeddings *", "type": "embeddings" }, + "height": { "default": 1024, "label": "Height", "min": 64, "step": 16, "type": "int", "value": 1024 }, + "image_cond_latents": { "display": "input", "label": "Reference Latents", "type": "latents" }, + "latents": { "display": "output", "label": "Latents", "type": "latents" }, + "num_images_per_prompt": { + "default": 1, + "label": "Images Per Prompt", + "max": 8, + "min": 1, + "step": 1, + "type": "int" + }, + "num_inference_steps": { + "default": 16, + "display": "slider", + "label": "Steps", + "max": 100, + "min": 1, + "type": "int", + "value": 16 + }, + "reference_binding": { + "default": null, + "display": "input", + "fieldOptions": { "referenceBinding": { "maxReferences": 10, "schemaVersion": 1 } }, + "label": "Reference Binding", + "type": "reference_conditioning" + }, + "scheduler": { + "display": "input", + "label": "Scheduler *", + "signalCompatibility": { "role": "scheduler" }, + "type": "diffusers_auto_model" + }, + "seed": { "default": 0, "display": "random", "label": "Seed", "max": 4294967295, "min": 0, "type": "int" }, + "unet": { + "display": "input", + "label": "Denoise Model *", + "onSignal": [ + "update_node", + { "action": "signal", "target": "guider" }, + { "action": "signal", "target": "controlnet_bundle" } + ], + "required": true, + "signalCompatibility": { "role": "denoiser" }, + "type": "diffusers_auto_model" + }, + "width": { "default": 1024, "label": "Width", "min": 64, "step": 16, "type": "int", "value": 1024 } + }, + "resizable": true, + "skipParamsCheck": true, + "style": {}, + "time": [0, 0, 0], + "type": "custom" + }, + "modules.ModularDiffusers.EncodePrompt": { + "action": "EncodePrompt", + "cache": false, + "category": "embedding", + "description": "", + "label": "Encode Prompt", + "memory": [0, 0, 0], + "module": "modules.ModularDiffusers", + "params": { + "doc": { "display": "output", "label": "Doc", "type": "string" }, + "embeddings": { "display": "output", "label": "Text Embeddings", "type": "embeddings" }, + "guider": { + "description": "Shared Diffusers guidance used by prompt encoding and denoising when the selected pipeline supports it.", + "display": "input", + "hidden": true, + "label": "Guider", + "type": "custom_guider" + }, + "layout_conditioning": { + "default": null, + "display": "layout", + "fieldOptions": { + "layoutConditioning": { "schemaVersion": 2, "sourceRegions": false, "supportsBoundSourceRegions": true } + }, + "label": "Layout Conditioning", + "type": "layout_conditioning" + }, + "layout_reference_summary": { + "description": "Display-only ordered reference identities and actual preprocessing sizes from the current encoder cache.", + "display": "output", + "hidden": true, + "label": "Bound Reference Summary", + "type": "string" + }, + "max_sequence_length": { + "default": 8192, + "label": "Maximum Sequence Length", + "max": 8192, + "min": 1, + "step": 1, + "type": "int" + }, + "prompt": { + "default": "", + "display": "textarea", + "fieldOptions": { "exampleAttribution": "MoDiff task example" }, + "label": "Prompt *", + "type": "string", + "value": "A red ceramic teapot on a wooden table beside a window, soft morning light, detailed photograph." + }, + "prompt_input": { + "description": "Optional connected prompt. When connected, this replaces the inline Prompt value.", + "display": "input", + "label": "Prompt Input", + "type": "string" + }, + "reference_binding": { + "default": null, + "display": "input", + "fieldOptions": { "referenceBinding": { "maxReferences": 10, "schemaVersion": 1 } }, + "label": "Reference Binding", + "type": "reference_conditioning" + }, + "text_encoder_out_layers": { + "default": [4, 8, 12, 16, 20, 24, 28, 32], + "display": "select", + "fieldOptions": { "multiple": true, "tupleLength": 8, "tupleValue": true }, + "label": "Text Encoder Layers", + "options": [ + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "0", + "schemaVersion": 1, + "value": "0" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "1", + "schemaVersion": 1, + "value": "1" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "2", + "schemaVersion": 1, + "value": "2" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "3", + "schemaVersion": 1, + "value": "3" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "4", + "schemaVersion": 1, + "value": "4" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "5", + "schemaVersion": 1, + "value": "5" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "6", + "schemaVersion": 1, + "value": "6" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "7", + "schemaVersion": 1, + "value": "7" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "8", + "schemaVersion": 1, + "value": "8" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "9", + "schemaVersion": 1, + "value": "9" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "10", + "schemaVersion": 1, + "value": "10" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "11", + "schemaVersion": 1, + "value": "11" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "12", + "schemaVersion": 1, + "value": "12" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "13", + "schemaVersion": 1, + "value": "13" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "14", + "schemaVersion": 1, + "value": "14" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "15", + "schemaVersion": 1, + "value": "15" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "16", + "schemaVersion": 1, + "value": "16" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "17", + "schemaVersion": 1, + "value": "17" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "18", + "schemaVersion": 1, + "value": "18" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "19", + "schemaVersion": 1, + "value": "19" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "20", + "schemaVersion": 1, + "value": "20" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "21", + "schemaVersion": 1, + "value": "21" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "22", + "schemaVersion": 1, + "value": "22" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "23", + "schemaVersion": 1, + "value": "23" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "24", + "schemaVersion": 1, + "value": "24" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "25", + "schemaVersion": 1, + "value": "25" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "26", + "schemaVersion": 1, + "value": "26" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "27", + "schemaVersion": 1, + "value": "27" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "28", + "schemaVersion": 1, + "value": "28" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "29", + "schemaVersion": 1, + "value": "29" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "30", + "schemaVersion": 1, + "value": "30" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "31", + "schemaVersion": 1, + "value": "31" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "32", + "schemaVersion": 1, + "value": "32" + } + ], + "type": "int" + }, + "text_encoders": { + "display": "input", + "label": "Text Encoders *", + "onSignal": "update_node", + "required": true, + "signalCompatibility": { "role": "text_encoders" }, + "type": "diffusers_auto_models" + } + }, + "resizable": true, + "skipParamsCheck": true, + "style": {}, + "time": [0, 0, 0], + "type": "custom" + }, + "modules.ModularDiffusers.Guider": { + "action": "Guider", + "cache": false, + "category": "sampler", + "description": "", + "label": "Guidance", + "memory": [0, 0, 0], + "module": "modules.ModularDiffusers", + "params": { + "enabled": { "label": "Enabled", "type": "boolean", "value": true }, + "guidance_rescale": { + "display": "slider", + "label": "Guidance Rescale", + "max": 10.0, + "min": 0.0, + "step": 0.1, + "type": "float", + "value": 0.0 + }, + "guidance_scale": { + "display": "slider", + "label": "Guidance Scale", + "max": 20.0, + "min": 1.0, + "step": 0.1, + "type": "float", + "value": 3.5 + }, + "guider": { + "fieldOptions": { "loading": true }, + "label": "Guider", + "onChange": [ + "updateNode", + { + "AutoGuidance": ["layers_config"], + "PerturbedAttentionGuidance": ["layers_config"], + "SkipLayerGuidance": ["layers_config"], + "SmoothedEnergyGuidance": ["layers_config"] + } + ], + "options": [ + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "ClassifierFreeGuidance", + "schemaVersion": 1, + "value": "ClassifierFreeGuidance" + } + ], + "type": "string", + "value": "ClassifierFreeGuidance" + }, + "guider_out": { + "display": "output", + "label": "Guider", + "onSignal": [ + { "action": "value", "target": "model_type" }, + { + "action": "value", + "data": { + "Flux2KleinBaseModularPipeline": ["ClassifierFreeGuidance"], + "Flux3ModularPipeline": ["ClassifierFreeGuidance"], + "FluxKontextModularPipeline": ["ClassifierFreeGuidance"], + "FluxModularPipeline": ["ClassifierFreeGuidance"], + "QwenImageEditModularPipeline": [ + "ClassifierFreeGuidance", + "SkipLayerGuidance", + "AdaptiveProjectedGuidance", + "AdaptiveProjectedMixGuidance", + "MagnitudeAwareGuidance", + "ClassifierFreeZeroStarGuidance", + "AutoGuidance", + "SmoothedEnergyGuidance", + "PerturbedAttentionGuidance", + "TangentialClassifierFreeGuidance", + "FrequencyDecoupledGuidance" + ], + "QwenImageEditPlusModularPipeline": [ + "ClassifierFreeGuidance", + "SkipLayerGuidance", + "AdaptiveProjectedGuidance", + "AdaptiveProjectedMixGuidance", + "MagnitudeAwareGuidance", + "ClassifierFreeZeroStarGuidance", + "AutoGuidance", + "SmoothedEnergyGuidance", + "PerturbedAttentionGuidance", + "TangentialClassifierFreeGuidance", + "FrequencyDecoupledGuidance" + ], + "QwenImageLayeredModularPipeline": [ + "ClassifierFreeGuidance", + "AdaptiveProjectedGuidance", + "AdaptiveProjectedMixGuidance", + "MagnitudeAwareGuidance", + "ClassifierFreeZeroStarGuidance", + "TangentialClassifierFreeGuidance", + "FrequencyDecoupledGuidance" + ], + "QwenImageModularPipeline": [ + "ClassifierFreeGuidance", + "SkipLayerGuidance", + "AdaptiveProjectedGuidance", + "AdaptiveProjectedMixGuidance", + "MagnitudeAwareGuidance", + "ClassifierFreeZeroStarGuidance", + "AutoGuidance", + "SmoothedEnergyGuidance", + "PerturbedAttentionGuidance", + "TangentialClassifierFreeGuidance", + "FrequencyDecoupledGuidance" + ], + "StableDiffusionXLModularPipeline": [ + "ClassifierFreeGuidance", + "SkipLayerGuidance", + "AdaptiveProjectedGuidance", + "AdaptiveProjectedMixGuidance", + "MagnitudeAwareGuidance", + "ClassifierFreeZeroStarGuidance", + "AutoGuidance", + "SmoothedEnergyGuidance", + "PerturbedAttentionGuidance", + "TangentialClassifierFreeGuidance", + "FrequencyDecoupledGuidance" + ], + "WanImage2VideoModularPipeline": [ + "ClassifierFreeGuidance", + "AdaptiveProjectedGuidance", + "AdaptiveProjectedMixGuidance", + "MagnitudeAwareGuidance", + "ClassifierFreeZeroStarGuidance", + "TangentialClassifierFreeGuidance", + "FrequencyDecoupledGuidance" + ], + "WanModularPipeline": [ + "ClassifierFreeGuidance", + "AdaptiveProjectedGuidance", + "AdaptiveProjectedMixGuidance", + "MagnitudeAwareGuidance", + "ClassifierFreeZeroStarGuidance", + "TangentialClassifierFreeGuidance", + "FrequencyDecoupledGuidance" + ], + "ZImageModularPipeline": [ + "ClassifierFreeGuidance", + "AdaptiveProjectedGuidance", + "AdaptiveProjectedMixGuidance", + "MagnitudeAwareGuidance", + "ClassifierFreeZeroStarGuidance", + "TangentialClassifierFreeGuidance", + "FrequencyDecoupledGuidance" + ] + }, + "prop": "options", + "target": "guider" + }, + { "action": "signal", "target": "layers_config" } + ], + "signalCompatibility": { + "values": { + "Flux2KleinBaseModularPipeline": ["ClassifierFreeGuidance"], + "Flux3ModularPipeline": ["ClassifierFreeGuidance"], + "FluxKontextModularPipeline": ["ClassifierFreeGuidance"], + "FluxModularPipeline": ["ClassifierFreeGuidance"], + "QwenImageEditModularPipeline": [ + "ClassifierFreeGuidance", + "SkipLayerGuidance", + "AdaptiveProjectedGuidance", + "AdaptiveProjectedMixGuidance", + "MagnitudeAwareGuidance", + "ClassifierFreeZeroStarGuidance", + "AutoGuidance", + "SmoothedEnergyGuidance", + "PerturbedAttentionGuidance", + "TangentialClassifierFreeGuidance", + "FrequencyDecoupledGuidance" + ], + "QwenImageEditPlusModularPipeline": [ + "ClassifierFreeGuidance", + "SkipLayerGuidance", + "AdaptiveProjectedGuidance", + "AdaptiveProjectedMixGuidance", + "MagnitudeAwareGuidance", + "ClassifierFreeZeroStarGuidance", + "AutoGuidance", + "SmoothedEnergyGuidance", + "PerturbedAttentionGuidance", + "TangentialClassifierFreeGuidance", + "FrequencyDecoupledGuidance" + ], + "QwenImageLayeredModularPipeline": [ + "ClassifierFreeGuidance", + "AdaptiveProjectedGuidance", + "AdaptiveProjectedMixGuidance", + "MagnitudeAwareGuidance", + "ClassifierFreeZeroStarGuidance", + "TangentialClassifierFreeGuidance", + "FrequencyDecoupledGuidance" + ], + "QwenImageModularPipeline": [ + "ClassifierFreeGuidance", + "SkipLayerGuidance", + "AdaptiveProjectedGuidance", + "AdaptiveProjectedMixGuidance", + "MagnitudeAwareGuidance", + "ClassifierFreeZeroStarGuidance", + "AutoGuidance", + "SmoothedEnergyGuidance", + "PerturbedAttentionGuidance", + "TangentialClassifierFreeGuidance", + "FrequencyDecoupledGuidance" + ], + "StableDiffusionXLModularPipeline": [ + "ClassifierFreeGuidance", + "SkipLayerGuidance", + "AdaptiveProjectedGuidance", + "AdaptiveProjectedMixGuidance", + "MagnitudeAwareGuidance", + "ClassifierFreeZeroStarGuidance", + "AutoGuidance", + "SmoothedEnergyGuidance", + "PerturbedAttentionGuidance", + "TangentialClassifierFreeGuidance", + "FrequencyDecoupledGuidance" + ], + "WanImage2VideoModularPipeline": [ + "ClassifierFreeGuidance", + "AdaptiveProjectedGuidance", + "AdaptiveProjectedMixGuidance", + "MagnitudeAwareGuidance", + "ClassifierFreeZeroStarGuidance", + "TangentialClassifierFreeGuidance", + "FrequencyDecoupledGuidance" + ], + "WanModularPipeline": [ + "ClassifierFreeGuidance", + "AdaptiveProjectedGuidance", + "AdaptiveProjectedMixGuidance", + "MagnitudeAwareGuidance", + "ClassifierFreeZeroStarGuidance", + "TangentialClassifierFreeGuidance", + "FrequencyDecoupledGuidance" + ], + "ZImageModularPipeline": [ + "ClassifierFreeGuidance", + "AdaptiveProjectedGuidance", + "AdaptiveProjectedMixGuidance", + "MagnitudeAwareGuidance", + "ClassifierFreeZeroStarGuidance", + "TangentialClassifierFreeGuidance", + "FrequencyDecoupledGuidance" + ] + } + }, + "type": "custom_guider" + }, + "layers_config": { "display": "input", "label": "Layers", "type": "layers_config" }, + "model_type": { "default": "", "hidden": true, "type": "string", "value": "Flux3ModularPipeline" }, + "start": { + "display": "slider", + "label": "Start", + "max": 1.0, + "min": 0.0, + "step": 0.01, + "type": "float", + "value": 0.0 + }, + "stop": { + "display": "slider", + "label": "Stop", + "max": 1.0, + "min": 0.01, + "step": 0.01, + "type": "float", + "value": 1.0 + }, + "use_original_formulation": { "label": "Original Formulation", "type": "boolean", "value": false } + }, + "resizable": true, + "skipParamsCheck": true, + "style": {}, + "time": [0, 0, 0], + "type": "custom" + }, + "modules.ModularDiffusers.ImageEncode": { + "action": "ImageEncode", + "cache": false, + "category": "sampler", + "description": "", + "label": "Encode Image", + "memory": [0, 0, 0], + "module": "modules.ModularDiffusers", + "params": { + "doc": { "display": "output", "label": "Doc", "type": "string" }, + "encode_summary": { + "dataSource": "encode_summary_data", + "display": "ui_text", + "hidden": true, + "label": "Encode summary", + "type": "text" + }, + "encode_summary_data": { "display": "output", "hidden": true, "label": "Encode summary", "type": "str" }, + "image": { "display": "input", "label": "Image *", "type": "image" }, + "image_cond_latents": { "display": "output", "label": "Reference Latents", "type": "latents" }, + "layout_reference_summary": { + "description": "Display-only ordered reference identities and actual preprocessing sizes from this image encoding cache.", + "display": "output", + "hidden": true, + "label": "Bound Reference Summary", + "type": "string" + }, + "reference_binding": { + "display": "output", + "fieldOptions": { "referenceBinding": { "maxReferences": 10, "schemaVersion": 1 } }, + "label": "Reference Binding", + "type": "reference_conditioning" + }, + "vae": { + "display": "input", + "label": "VAE *", + "onSignal": "update_node", + "signalCompatibility": { "role": "vae" }, + "type": "diffusers_auto_model" + } + }, + "resizable": true, + "skipParamsCheck": true, + "style": {}, + "time": [0, 0, 0], + "type": "custom" + }, + "modules.ModularDiffusers.ModelsLoader": { + "action": "ModelsLoader", + "cache": false, + "category": "loader", + "description": "", + "label": "Load Models", + "memory": [0, 0, 0], + "module": "modules.ModularDiffusers", + "params": { + "attention_backend": { + "default": "inherit", + "description": "Inherit preserves existing native component defaults; explicit choices use the ordinary Diffusers attention API.", + "label": "Attention Backend", + "options": [ + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "inherit", + "schemaVersion": 1, + "value": "inherit" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "auto", + "schemaVersion": 1, + "value": "auto" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "native", + "schemaVersion": 1, + "value": "native" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "_native_math", + "schemaVersion": 1, + "value": "_native_math" + } + ], + "type": "string" + }, + "auto_offload": { "label": "Enable Auto Offload", "type": "boolean", "value": true }, + "controlnet": { "display": "input", "hidden": true, "label": "ControlNet", "type": "diffusers_auto_model" }, + "device": { + "label": "Device", + "options": { + "cpu": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "cpu", + "schemaVersion": 1, + "value": "cpu" + }, + "cpu:0": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "cpu:0", + "schemaVersion": 1, + "value": "cpu:0" + } + }, + "type": "string", + "value": "cpu:0" + }, + "dtype": { + "label": "dtype", + "options": [ + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "float32", + "schemaVersion": 1, + "value": "float32" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "float16", + "schemaVersion": 1, + "value": "float16" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "bfloat16", + "schemaVersion": 1, + "value": "bfloat16" + } + ], + "value": "bfloat16" + }, + "image_encoder": { + "connectionRole": "image_encoder", + "display": "output", + "hidden": true, + "label": "Image Encoder", + "signal": { + "direction": "output", + "origin": "modiff_pipeline_identity", + "value": "Flux3DistilledModularPipeline" + }, + "type": "diffusers_auto_model" + }, + "inpaint_compatibility": { + "default": "native", + "description": "Technical compatibility selection for the reviewed Qwen Edit inpainting candidate; existing nodes retain native policy.", + "hidden": true, + "label": "Inpaint Compatibility", + "options": [ + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "native", + "schemaVersion": 1, + "value": "native" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "whole_v1", + "schemaVersion": 1, + "value": "whole_v1" + } + ], + "type": "string" + }, + "lora_list": { "display": "input", "label": "Lora", "type": "custom_lora" }, + "model_type": { + "description": "Selects the Modular Diffusers pipeline class. This filters compatible checkpoints and publishes the component contract used by connected nodes; it is not the model checkpoint itself.", + "label": "Pipeline Type", + "onChange": "set_filters", + "options": { + "": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "", + "schemaVersion": 1, + "value": "" + }, + "AnimaModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Anima", + "schemaVersion": 1, + "value": "AnimaModularPipeline" + }, + "Cosmos3DistilledModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Cosmos 3 Distilled", + "schemaVersion": 1, + "value": "Cosmos3DistilledModularPipeline" + }, + "Cosmos3OmniModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Cosmos 3 Nano", + "schemaVersion": 1, + "value": "Cosmos3OmniModularPipeline" + }, + "DummyCustomPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Custom", + "schemaVersion": 1, + "value": "DummyCustomPipeline" + }, + "ErnieImageModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "ERNIE Image Turbo", + "schemaVersion": 1, + "value": "ErnieImageModularPipeline" + }, + "Flux2KleinBaseModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Flux 2 Klein Base", + "schemaVersion": 1, + "value": "Flux2KleinBaseModularPipeline" + }, + "Flux2KleinModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Flux 2 Klein Distilled", + "schemaVersion": 1, + "value": "Flux2KleinModularPipeline" + }, + "Flux2ModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Flux 2", + "schemaVersion": 1, + "value": "Flux2ModularPipeline" + }, + "Flux3DistilledModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "FLUX 3 Image Klein", + "schemaVersion": 1, + "value": "Flux3DistilledModularPipeline" + }, + "Flux3ModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "FLUX 3 Image Klein Base", + "schemaVersion": 1, + "value": "Flux3ModularPipeline" + }, + "FluxKontextModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Flux Kontext", + "schemaVersion": 1, + "value": "FluxKontextModularPipeline" + }, + "FluxModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Flux", + "schemaVersion": 1, + "value": "FluxModularPipeline" + }, + "HeliosModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Helios", + "schemaVersion": 1, + "value": "HeliosModularPipeline" + }, + "HeliosPyramidDistilledModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Helios Pyramid Distilled", + "schemaVersion": 1, + "value": "HeliosPyramidDistilledModularPipeline" + }, + "HeliosPyramidModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Helios Pyramid", + "schemaVersion": 1, + "value": "HeliosPyramidModularPipeline" + }, + "HunyuanVideo15ModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "HunyuanVideo 1.5", + "schemaVersion": 1, + "value": "HunyuanVideo15ModularPipeline" + }, + "Ideogram4ModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Ideogram 4 (Contract only)", + "schemaVersion": 1, + "value": "Ideogram4ModularPipeline" + }, + "Krea2ModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Krea 2 (Contract only)", + "schemaVersion": 1, + "value": "Krea2ModularPipeline" + }, + "Krea2TurboModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Krea 2 Turbo (Contract only)", + "schemaVersion": 1, + "value": "Krea2TurboModularPipeline" + }, + "LTX25ModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "LTX-2.5 (Contract only)", + "schemaVersion": 1, + "value": "LTX25ModularPipeline" + }, + "MiniMaxH3ModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "MiniMax H3", + "schemaVersion": 1, + "value": "MiniMaxH3ModularPipeline" + }, + "MiniMaxMusic3ModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "MiniMax Music 3", + "schemaVersion": 1, + "value": "MiniMaxMusic3ModularPipeline" + }, + "QwenImageEditModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Qwen-Image-Edit", + "schemaVersion": 1, + "value": "QwenImageEditModularPipeline" + }, + "QwenImageEditPlusModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Qwen-Image-Edit-2511", + "schemaVersion": 1, + "value": "QwenImageEditPlusModularPipeline" + }, + "QwenImageLayeredModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Qwen-Image-Layered", + "schemaVersion": 1, + "value": "QwenImageLayeredModularPipeline" + }, + "QwenImageModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Qwen-Image-2512", + "schemaVersion": 1, + "value": "QwenImageModularPipeline" + }, + "StableDiffusion3ModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Stable Diffusion 3 (Contract only)", + "schemaVersion": 1, + "value": "StableDiffusion3ModularPipeline" + }, + "StableDiffusionXLModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Stable Diffusion XL", + "schemaVersion": 1, + "value": "StableDiffusionXLModularPipeline" + }, + "WanAnimate2DistilledModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Wan Animate 2 Distilled", + "schemaVersion": 1, + "value": "WanAnimate2DistilledModularPipeline" + }, + "WanAnimate2ModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Wan Animate 2", + "schemaVersion": 1, + "value": "WanAnimate2ModularPipeline" + }, + "WanImage2VideoModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "WAN2 I2V", + "schemaVersion": 1, + "value": "WanImage2VideoModularPipeline" + }, + "WanModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "WAN2 T2V", + "schemaVersion": 1, + "value": "WanModularPipeline" + }, + "ZImageModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Z-Image", + "schemaVersion": 1, + "value": "ZImageModularPipeline" + } + }, + "type": "string", + "value": "Flux3DistilledModularPipeline" + }, + "modiff_pipeline_identity": { + "hidden": true, + "label": "Custom Pipeline Identity", + "type": "object", + "value": null + }, + "offload_mode": { + "default": "model_cpu", + "label": "Offload Mode", + "options": [ + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "auto_cpu", + "schemaVersion": 1, + "value": "auto_cpu" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "none", + "schemaVersion": 1, + "value": "none" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "model_cpu", + "schemaVersion": 1, + "value": "model_cpu" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "group_cpu", + "schemaVersion": 1, + "value": "group_cpu" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "group_disk", + "schemaVersion": 1, + "value": "group_disk" + } + ], + "type": "string", + "value": "model_cpu" + }, + "pipeline_components": { + "connectionRole": "pipeline_components", + "display": "output", + "hidden": false, + "label": "Pipeline Components", + "signal": { + "direction": "output", + "origin": "modiff_pipeline_identity", + "value": "Flux3DistilledModularPipeline" + }, + "type": "diffusers_modular_pipeline_components" + }, + "quant_config": { "display": "input", "label": "Quant Config", "type": "quant_config" }, + "refresh_pipeline_identity_button": { + "display": "ui_button", + "hidden": true, + "label": "Review and Refresh Custom Contract", + "onChange": "refresh_pipeline_identity", + "value": false + }, + "repo_id": { + "display": "modelselect", + "fieldOptions": { + "filter": { "hub": { "className": ["Flux3DistilledModularPipeline"] } }, + "noValidation": true, + "sources": ["hub", "local"] + }, + "label": "Repository ID", + "onChange": "refresh_pipeline_identity", + "type": "string", + "value": { "source": "hub", "value": "black-forest-labs/flux-3-image-klein" } + }, + "reviewed_variant": { + "description": "Select an immutable, reviewed checkpoint for this exact Modular Diffusers pipeline family. Changing it does not replace the workflow graph or reset its parameters.", + "fieldOptions": { "controlTier": "essential" }, + "hidden": true, + "label": "Model", + "options": [ + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "black-forest-labs/flux-3-image-klein", + "schemaVersion": 1, + "value": "black-forest-labs/flux-3-image-klein" + } + ], + "type": "string", + "value": "black-forest-labs/flux-3-image-klein" + }, + "revision": { + "description": "Required exact 40-character commit hash for Hub custom contracts.", + "label": "Revision", + "onChange": "refresh_pipeline_identity", + "type": "string", + "value": "8454017f9ebaada30c998fccd9f67a80c7580f68" + }, + "scheduler": { + "connectionRole": "scheduler", + "display": "output", + "hidden": false, + "label": "Scheduler", + "signal": { + "direction": "output", + "origin": "modiff_pipeline_identity", + "value": "Flux3DistilledModularPipeline" + }, + "type": "diffusers_auto_model" + }, + "text_encoders": { + "connectionRole": "text_encoders", + "display": "output", + "hidden": false, + "label": "Text Encoders", + "signal": { + "direction": "output", + "origin": "modiff_pipeline_identity", + "value": "Flux3DistilledModularPipeline" + }, + "type": "diffusers_auto_models" + }, + "trust_remote_code": { + "description": "Repository code execution is disabled; keep this off for contract preview.", + "label": "Trust Remote Code", + "onChange": "refresh_pipeline_identity", + "type": "boolean", + "value": false + }, + "unet": { "display": "input", "hidden": false, "label": "Denoise Model", "type": "diffusers_auto_model" }, + "unet_out": { + "connectionRole": "denoiser", + "display": "output", + "hidden": false, + "label": "Denoise Model", + "signal": { + "direction": "output", + "origin": "modiff_pipeline_identity", + "value": "Flux3DistilledModularPipeline" + }, + "type": "diffusers_auto_model" + }, + "vae": { "display": "input", "hidden": false, "label": "VAE", "type": "diffusers_auto_model" }, + "vae_out": { + "connectionRole": "vae", + "display": "output", + "hidden": false, + "label": "VAE", + "signal": { + "direction": "output", + "origin": "modiff_pipeline_identity", + "value": "Flux3DistilledModularPipeline" + }, + "type": "diffusers_auto_model" + }, + "vae_slicing": { + "default": null, + "description": "An unset policy preserves the native VAE configuration; templates may bind an explicit boolean.", + "hidden": true, + "label": "VAE Slicing", + "type": "boolean" + }, + "vae_tiling": { + "default": null, + "description": "An unset policy preserves the native VAE configuration; templates may bind an explicit boolean.", + "hidden": true, + "label": "VAE Tiling", + "type": "boolean" + }, + "weight_format": { + "default": "native", + "description": "Select a backend-declared immutable component format. Missing reviewed files must be installed through Model Manager.", + "fieldOptions": { "controlTier": "advanced" }, + "hidden": false, + "label": "Weight Format", + "options": [ + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "native", + "schemaVersion": 1, + "value": "native" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "fp8r", + "schemaVersion": 1, + "value": "fp8r" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "nvfp4", + "schemaVersion": 1, + "value": "nvfp4" + } + ], + "type": "string" + }, + "weight_loading_mode": { + "default": "cpu", + "description": "Load weights on CPU or CUDA before disk offload. CUDA loading needs room for a complete component and is available only for supported models.", + "fieldOptions": { "controlTier": "advanced" }, + "label": "Weight Loading", + "options": [ + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "cpu", + "schemaVersion": 1, + "value": "cpu" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "cuda", + "schemaVersion": 1, + "value": "cuda" + } + ], + "type": "string" + }, + "workflow_id": { + "description": "Exact reviewed component partition selected by a first-party Cluster Node.", + "hidden": true, + "label": "Reviewed Workflow", + "type": "string", + "value": "text2image" + } + }, + "resizable": true, + "skipParamsCheck": true, + "style": {}, + "time": [0, 0, 0], + "type": "custom" + } + }, + "schemaVersion": 1, + "sourceHashes": { + "data/prompt-enhancement-constraints.v1.json": "f321df19db5e99786b807a13d8f380e4bc0577e27163b94e6762661881ac5c08", + "modiff/ancillary_execution.py": "19beae7b072b684208708c8184b1a95d9e3fa85685d2b235bdb8bbc3b6993b30", + "modiff/diffusers_profiles.py": "e4054625fb58711730d5a890bed25658adafdc2e8b45610a848d7dfe3ba8c0d9", + "modiff/operation_catalog.py": "e8cb0738d64652946a9100000f8e2048aa8f96963432a7ed1d4aef34eef3d521", + "modiff/operation_starters.py": "444805940661c0bac6848e36ee3edf7ebe85c5965ce2aeb6a7cb17bee1c58a60", + "modiff/optional_runtimes.py": "991605da4df2a91aab490cbcfe307fe0c3cb514f17e9c55c4088a83a9e0b6041", + "modiff/prompt_enhancement_constraints.py": "501ed02a946ce7255d16505071ff04c0d93eacf73d00626fa24518cd42f96145", + "modiff/runtime_overlays.py": "5949918bef42d68c1087ad36425811e12b608168682990c5c57a05052132e4b6", + "modiff/server.py": "9fe6857104a2688ae449094842f5016e9072540ae1e0553a1ea9b5bc5f6fd7ce", + "modiff/studio_execution_specs.py": "080461244e3ff52b2a8b1c2e0f0dc2113d04389fc9edc4a48bcb926bfc336dac" + }, + "starters": [ + { + "authoring": { + "ancillaryOperations": [ + { + "adapter": { + "declarationSha256": "sha256:2a3d4685988b418115008bbb95fb3e948097580c0bedd2940ea3fe1e40254dc2", + "id": "transformers-prompt-enhancement-v1" + }, + "bindings": { + "output": { "field": "proposal_summary", "role": "proposal" }, + "owner": { + "layoutField": "layout_conditioning", + "promptField": "prompt", + "referenceSource": null, + "role": "prompt" + }, + "request": { + "imagesField": "images", + "layoutField": "layout_conditioning", + "promptField": "prompt", + "role": "proposal" + } + }, + "contentHash": "studio-ancillary-v1-1df722f0", + "edges": [["provider", "model", "proposal", "model"]], + "executionPurpose": "explicit_preview", + "fieldOverrides": [ + ["proposal", "enhancement_max_new_tokens", { "hidden": false }], + ["proposal", "max_new_tokens", { "hidden": true }] + ], + "id": "flux3-klein-base:official:text-to-image:prompt-preview-append-fp32:v1:preview", + "initialValues": [ + ["provider", "model_id", { "source": "hub", "value": "black-forest-labs/flux-3-image-klein-pup" }], + ["provider", "revision", "3f3edb52b2c55de0d49feab28598b68f7f8e4830"], + ["proposal", "operation", "enhance_prompt_append_details"], + ["provider", "dtype", "float32"], + ["provider", "device", "cuda:0"], + ["provider", "quantization_mode", "none"], + ["proposal", "max_input_tokens", 4096] + ], + "layoutPolicy": "append-details-preserve-layout-v1", + "parent": { + "authoringRecipeId": "flux3-klein-base:official:text-to-image:prompt-preview-append-fp32:v1", + "baseSpecContentHash": "studio-spec-v1-f5960f24", + "baseSpecId": "flux3-klein-base:official-provider:v1:text-to-image:v1", + "executionProfileId": "flux3-klein-base:official-provider:v1", + "pipelineClass": "Flux3ModularPipeline", + "task": "text_to_image" + }, + "roles": [ + ["provider", "modules.HuggingFaceTransformers.LoadImageTextToTextModel", -720, -400], + ["proposal", "modules.HuggingFaceTransformers.GenerateImageVideoText", -360, -400] + ], + "schemaVersion": 1, + "sourceRegions": false, + "verification": { + "adapter": { + "declarationSha256": "sha256:2a3d4685988b418115008bbb95fb3e948097580c0bedd2940ea3fe1e40254dc2", + "id": "transformers-prompt-enhancement-v1" + }, + "chatTemplateSha256": "sha256:a4aee8afcf2e0711942cf848899be66016f8d14a889ff9ede07bca099c28f715", + "layoutRequestSuffixSha256": "sha256:5c48f090514be3472650c23ccd5f6cc19077bf68cd163338aaf6903f720a7561", + "modelReceipt": { + "library": "transformers", + "loader": { "modelAutoClass": "AutoModelForImageTextToText", "preprocessorAutoClass": "AutoProcessor" }, + "runtime": { + "architectures": ["Qwen3_5ForConditionalGeneration"], + "modelClass": "Qwen3_5ForConditionalGeneration", + "modelType": "qwen3_5", + "preprocessorClass": "Qwen3VLProcessor", + "transformersVersion": "5.18.0" + }, + "schemaVersion": 1, + "security": { + "hostedInference": false, + "localFilesOnly": true, + "safetensorsOnly": true, + "trustRemoteCode": false + }, + "source": { + "kind": "hub", + "repository": "black-forest-labs/flux-3-image-klein-pup", + "revision": "3f3edb52b2c55de0d49feab28598b68f7f8e4830" + }, + "task": "image-video-to-text" + }, + "quantizationRecipes": [ + { "mode": "none" }, + { + "computeDtype": "bfloat16", + "doubleQuant": true, + "mode": "bnb_4bit", + "quantType": "nf4", + "skipModules": ["lm_head", "model.visual"] + } + ], + "requestInputs": { + "maxImagePixelsField": "max_image_pixels", + "maxInputTokensField": "max_input_tokens", + "maxNewTokensField": "enhancement_max_new_tokens", + "minNewTokensField": "min_new_tokens", + "operationField": "operation", + "role": "proposal" + }, + "runtimeInputs": { + "deviceField": "device", + "dtypeField": "dtype", + "modelField": "model_id", + "quantizationField": "quantization_mode", + "revisionField": "revision", + "role": "provider" + }, + "schemaVersion": 1, + "supportedPromptModes": ["t2i", "i2i"], + "systemPromptSha256ByMode": { + "i2i": "95cec384d5b6d341caa9fb3f2c7ca45ee80c2364b3a95d4044aebf976f6dd3bf", + "i2i_bbox": "9ad10f947e401337cf155cac0518cc428159ef16f2f029f48aae2aaab8380a5e", + "t2i": "8b235a421bce2213d11ada01f5a1244443dd72303ffbb4cc9e5a0d8b0de5ab6f", + "t2i_bbox": "5f513d8ce5838732919f9e645507aa20ff373e88bf93132c768e063c9db3151f" + }, + "systemPromptsSha256": "sha256:b5da3ed8bc04ab59dbdb747930f7dbff847e868903fed8028f85ee1a4ac82fb4" + } + } + ], + "baseSpecContentHash": "studio-spec-v1-f5960f24", + "baseSpecId": "flux3-klein-base:official-provider:v1:text-to-image:v1", + "bindings": [ + ["models", "model_type", "pipelineClass"], + ["models", "repo_id", "artifact"], + ["models", "revision", "defaultRevision"], + ["models", "dtype", "dtype"], + ["models", "device", "device"], + ["models", "auto_offload", "autoOffload"], + ["models", "offload_mode", "offloadMode"], + ["models", "trust_remote_code", "false"], + ["prompt", "prompt", "prompt"], + ["prompt", "negative_prompt", "negativePrompt"], + ["denoise", "width", "width"], + ["denoise", "height", "height"], + ["denoise", "seed", "seed"], + ["denoise", "num_inference_steps", "steps"], + ["prompt", "max_sequence_length", "maxSequenceLength"], + ["models", "weight_format", "weightFormat"], + ["guider", "guider", "classifierFreeGuidance"], + ["guider", "model_type", "pipelineClass"], + ["guider", "guidance_scale", "guidanceScale"] + ], + "canonicalizationVersion": 1, + "contentHash": "studio-authoring-v1-67e156e6", + "edges": [ + ["models", "text_encoders", "prompt", "text_encoders"], + ["models", "unet_out", "denoise", "unet"], + ["models", "scheduler", "denoise", "scheduler"], + ["models", "vae_out", "decode", "vae"], + ["prompt", "embeddings", "denoise", "embeddings"], + ["denoise", "latents", "decode", "latents"], + ["decode", "images", "preview", "image"], + ["guider", "guider_out", "denoise", "guider"] + ], + "executionProfileIds": ["flux3-klein-base:official-provider:v1"], + "id": "flux3-klein-base:official:text-to-image:prompt-preview-append-fp32:v1", + "initialValues": [], + "roles": [ + ["models", "modules.ModularDiffusers.ModelsLoader", -720, -80], + ["prompt", "modules.ModularDiffusers.EncodePrompt", -360, -240], + ["denoise", "modules.ModularDiffusers.Denoise", 80, -80], + ["decode", "modules.ModularDiffusers.DecodeLatents", 440, -80], + ["preview", "modules.Image.Preview", 800, -80], + ["guider", "modules.ModularDiffusers.Guider", -360, 160] + ], + "schemaVersion": 1 + }, + "edges": [ + { + "source": "diffusion.load_models", + "sourceHandle": "text_encoders", + "target": "diffusion.encode_prompt", + "targetHandle": "text_encoders" + }, + { + "source": "diffusion.load_models", + "sourceHandle": "scheduler", + "target": "diffusion.denoise", + "targetHandle": "scheduler" + }, + { + "source": "diffusion.load_models", + "sourceHandle": "unet_out", + "target": "diffusion.denoise", + "targetHandle": "unet" + }, + { + "source": "diffusion.load_models", + "sourceHandle": "vae_out", + "target": "diffusion.decode_latents", + "targetHandle": "vae" + }, + { + "source": "diffusion.encode_prompt", + "sourceHandle": "embeddings", + "target": "diffusion.denoise", + "targetHandle": "embeddings" + }, + { + "source": "diffusion.denoise", + "sourceHandle": "latents", + "target": "diffusion.decode_latents", + "targetHandle": "latents" + }, + { + "source": "diffusion.guidance", + "sourceHandle": "guider_out", + "target": "diffusion.denoise", + "targetHandle": "guider" + } + ], + "nodes": [ + { + "node": { + "action": "ModelsLoader", + "cache": false, + "category": "loader", + "description": "", + "label": "Load Models", + "memory": [0, 0, 0], + "module": "modules.ModularDiffusers", + "params": { + "attention_backend": { + "default": "inherit", + "description": "Inherit preserves existing native component defaults; explicit choices use the ordinary Diffusers attention API.", + "label": "Attention Backend", + "options": [ + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "inherit", + "schemaVersion": 1, + "value": "inherit" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "auto", + "schemaVersion": 1, + "value": "auto" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "native", + "schemaVersion": 1, + "value": "native" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "_native_math", + "schemaVersion": 1, + "value": "_native_math" + } + ], + "type": "string" + }, + "auto_offload": { "label": "Enable Auto Offload", "type": "boolean", "value": true }, + "controlnet": { + "display": "input", + "hidden": true, + "label": "ControlNet", + "type": "diffusers_auto_model" + }, + "device": { + "label": "Device", + "options": { + "cpu": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "cpu", + "schemaVersion": 1, + "value": "cpu" + }, + "cpu:0": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "cpu:0", + "schemaVersion": 1, + "value": "cpu:0" + } + }, + "type": "string", + "value": "cpu:0" + }, + "dtype": { + "label": "dtype", + "options": [ + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "float32", + "schemaVersion": 1, + "value": "float32" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "float16", + "schemaVersion": 1, + "value": "float16" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "bfloat16", + "schemaVersion": 1, + "value": "bfloat16" + } + ], + "value": "bfloat16" + }, + "image_encoder": { + "connectionRole": "image_encoder", + "display": "output", + "hidden": true, + "label": "Image Encoder", + "signal": { + "direction": "output", + "origin": "modiff_pipeline_identity", + "value": "Flux3ModularPipeline" + }, + "type": "diffusers_auto_model" + }, + "inpaint_compatibility": { + "default": "native", + "description": "Technical compatibility selection for the reviewed Qwen Edit inpainting candidate; existing nodes retain native policy.", + "hidden": true, + "label": "Inpaint Compatibility", + "options": [ + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "native", + "schemaVersion": 1, + "value": "native" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "whole_v1", + "schemaVersion": 1, + "value": "whole_v1" + } + ], + "type": "string" + }, + "lora_list": { "display": "input", "label": "Lora", "type": "custom_lora" }, + "model_type": { + "description": "Selects the Modular Diffusers pipeline class. This filters compatible checkpoints and publishes the component contract used by connected nodes; it is not the model checkpoint itself.", + "label": "Pipeline Type", + "onChange": "set_filters", + "options": { + "": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "", + "schemaVersion": 1, + "value": "" + }, + "AnimaModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Anima", + "schemaVersion": 1, + "value": "AnimaModularPipeline" + }, + "Cosmos3DistilledModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Cosmos 3 Distilled", + "schemaVersion": 1, + "value": "Cosmos3DistilledModularPipeline" + }, + "Cosmos3OmniModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Cosmos 3 Nano", + "schemaVersion": 1, + "value": "Cosmos3OmniModularPipeline" + }, + "DummyCustomPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Custom", + "schemaVersion": 1, + "value": "DummyCustomPipeline" + }, + "ErnieImageModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "ERNIE Image Turbo", + "schemaVersion": 1, + "value": "ErnieImageModularPipeline" + }, + "Flux2KleinBaseModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Flux 2 Klein Base", + "schemaVersion": 1, + "value": "Flux2KleinBaseModularPipeline" + }, + "Flux2KleinModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Flux 2 Klein Distilled", + "schemaVersion": 1, + "value": "Flux2KleinModularPipeline" + }, + "Flux2ModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Flux 2", + "schemaVersion": 1, + "value": "Flux2ModularPipeline" + }, + "Flux3DistilledModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "FLUX 3 Image Klein", + "schemaVersion": 1, + "value": "Flux3DistilledModularPipeline" + }, + "Flux3ModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "FLUX 3 Image Klein Base", + "schemaVersion": 1, + "value": "Flux3ModularPipeline" + }, + "FluxKontextModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Flux Kontext", + "schemaVersion": 1, + "value": "FluxKontextModularPipeline" + }, + "FluxModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Flux", + "schemaVersion": 1, + "value": "FluxModularPipeline" + }, + "HeliosModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Helios", + "schemaVersion": 1, + "value": "HeliosModularPipeline" + }, + "HeliosPyramidDistilledModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Helios Pyramid Distilled", + "schemaVersion": 1, + "value": "HeliosPyramidDistilledModularPipeline" + }, + "HeliosPyramidModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Helios Pyramid", + "schemaVersion": 1, + "value": "HeliosPyramidModularPipeline" + }, + "HunyuanVideo15ModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "HunyuanVideo 1.5", + "schemaVersion": 1, + "value": "HunyuanVideo15ModularPipeline" + }, + "Ideogram4ModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Ideogram 4 (Contract only)", + "schemaVersion": 1, + "value": "Ideogram4ModularPipeline" + }, + "Krea2ModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Krea 2 (Contract only)", + "schemaVersion": 1, + "value": "Krea2ModularPipeline" + }, + "Krea2TurboModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Krea 2 Turbo (Contract only)", + "schemaVersion": 1, + "value": "Krea2TurboModularPipeline" + }, + "LTX25ModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "LTX-2.5 (Contract only)", + "schemaVersion": 1, + "value": "LTX25ModularPipeline" + }, + "MiniMaxH3ModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "MiniMax H3", + "schemaVersion": 1, + "value": "MiniMaxH3ModularPipeline" + }, + "MiniMaxMusic3ModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "MiniMax Music 3", + "schemaVersion": 1, + "value": "MiniMaxMusic3ModularPipeline" + }, + "QwenImageEditModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Qwen-Image-Edit", + "schemaVersion": 1, + "value": "QwenImageEditModularPipeline" + }, + "QwenImageEditPlusModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Qwen-Image-Edit-2511", + "schemaVersion": 1, + "value": "QwenImageEditPlusModularPipeline" + }, + "QwenImageLayeredModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Qwen-Image-Layered", + "schemaVersion": 1, + "value": "QwenImageLayeredModularPipeline" + }, + "QwenImageModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Qwen-Image-2512", + "schemaVersion": 1, + "value": "QwenImageModularPipeline" + }, + "StableDiffusion3ModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Stable Diffusion 3 (Contract only)", + "schemaVersion": 1, + "value": "StableDiffusion3ModularPipeline" + }, + "StableDiffusionXLModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Stable Diffusion XL", + "schemaVersion": 1, + "value": "StableDiffusionXLModularPipeline" + }, + "WanAnimate2DistilledModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Wan Animate 2 Distilled", + "schemaVersion": 1, + "value": "WanAnimate2DistilledModularPipeline" + }, + "WanAnimate2ModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Wan Animate 2", + "schemaVersion": 1, + "value": "WanAnimate2ModularPipeline" + }, + "WanImage2VideoModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "WAN2 I2V", + "schemaVersion": 1, + "value": "WanImage2VideoModularPipeline" + }, + "WanModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "WAN2 T2V", + "schemaVersion": 1, + "value": "WanModularPipeline" + }, + "ZImageModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Z-Image", + "schemaVersion": 1, + "value": "ZImageModularPipeline" + } + }, + "type": "string", + "value": "Flux3ModularPipeline" + }, + "modiff_pipeline_identity": { + "hidden": true, + "label": "Custom Pipeline Identity", + "type": "object", + "value": null + }, + "offload_mode": { + "default": "model_cpu", + "label": "Offload Mode", + "options": [ + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "auto_cpu", + "schemaVersion": 1, + "value": "auto_cpu" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "none", + "schemaVersion": 1, + "value": "none" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "model_cpu", + "schemaVersion": 1, + "value": "model_cpu" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "group_cpu", + "schemaVersion": 1, + "value": "group_cpu" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "group_disk", + "schemaVersion": 1, + "value": "group_disk" + } + ], + "type": "string", + "value": "model_cpu" + }, + "pipeline_components": { + "connectionRole": "pipeline_components", + "display": "output", + "hidden": false, + "label": "Pipeline Components", + "signal": { + "direction": "output", + "origin": "modiff_pipeline_identity", + "value": "Flux3ModularPipeline" + }, + "type": "diffusers_modular_pipeline_components" + }, + "quant_config": { "display": "input", "label": "Quant Config", "type": "quant_config" }, + "refresh_pipeline_identity_button": { + "display": "ui_button", + "hidden": true, + "label": "Review and Refresh Custom Contract", + "onChange": "refresh_pipeline_identity", + "value": false + }, + "repo_id": { + "display": "modelselect", + "fieldOptions": { + "filter": { "hub": { "className": ["Flux3ModularPipeline"] } }, + "noValidation": true, + "sources": ["hub", "local"] + }, + "label": "Repository ID", + "onChange": "refresh_pipeline_identity", + "type": "string", + "value": { "source": "hub", "value": "black-forest-labs/flux-3-image-klein-base" } + }, + "reviewed_variant": { + "description": "Select an immutable, reviewed checkpoint for this exact Modular Diffusers pipeline family. Changing it does not replace the workflow graph or reset its parameters.", + "fieldOptions": { "controlTier": "essential" }, + "hidden": true, + "label": "Model", + "options": [ + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "black-forest-labs/flux-3-image-klein-base", + "schemaVersion": 1, + "value": "black-forest-labs/flux-3-image-klein-base" + } + ], + "type": "string", + "value": "black-forest-labs/flux-3-image-klein-base" + }, + "revision": { + "description": "Required exact 40-character commit hash for Hub custom contracts.", + "label": "Revision", + "onChange": "refresh_pipeline_identity", + "type": "string", + "value": "1469d27cfb9bb1bd81d3a93f5a023b39dbf136e4" + }, + "scheduler": { + "connectionRole": "scheduler", + "display": "output", + "hidden": false, + "label": "Scheduler", + "signal": { + "direction": "output", + "origin": "modiff_pipeline_identity", + "value": "Flux3ModularPipeline" + }, + "type": "diffusers_auto_model" + }, + "text_encoders": { + "connectionRole": "text_encoders", + "display": "output", + "hidden": false, + "label": "Text Encoders", + "signal": { + "direction": "output", + "origin": "modiff_pipeline_identity", + "value": "Flux3ModularPipeline" + }, + "type": "diffusers_auto_models" + }, + "trust_remote_code": { + "description": "Repository code execution is disabled; keep this off for contract preview.", + "label": "Trust Remote Code", + "onChange": "refresh_pipeline_identity", + "type": "boolean", + "value": false + }, + "unet": { "display": "input", "hidden": false, "label": "Denoise Model", "type": "diffusers_auto_model" }, + "unet_out": { + "connectionRole": "denoiser", + "display": "output", + "hidden": false, + "label": "Denoise Model", + "signal": { + "direction": "output", + "origin": "modiff_pipeline_identity", + "value": "Flux3ModularPipeline" + }, + "type": "diffusers_auto_model" + }, + "vae": { "display": "input", "hidden": false, "label": "VAE", "type": "diffusers_auto_model" }, + "vae_out": { + "connectionRole": "vae", + "display": "output", + "hidden": false, + "label": "VAE", + "signal": { + "direction": "output", + "origin": "modiff_pipeline_identity", + "value": "Flux3ModularPipeline" + }, + "type": "diffusers_auto_model" + }, + "vae_slicing": { + "default": null, + "description": "An unset policy preserves the native VAE configuration; templates may bind an explicit boolean.", + "hidden": true, + "label": "VAE Slicing", + "type": "boolean" + }, + "vae_tiling": { + "default": null, + "description": "An unset policy preserves the native VAE configuration; templates may bind an explicit boolean.", + "hidden": true, + "label": "VAE Tiling", + "type": "boolean" + }, + "weight_format": { + "default": "native", + "description": "Select a backend-declared immutable component format. Missing reviewed files must be installed through Model Manager.", + "fieldOptions": { "controlTier": "advanced" }, + "hidden": false, + "label": "Weight Format", + "options": [ + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "native", + "schemaVersion": 1, + "value": "native" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "fp8r", + "schemaVersion": 1, + "value": "fp8r" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "nvfp4", + "schemaVersion": 1, + "value": "nvfp4" + } + ], + "type": "string" + }, + "weight_loading_mode": { + "default": "cpu", + "description": "Load weights on CPU or CUDA before disk offload. CUDA loading needs room for a complete component and is available only for supported models.", + "fieldOptions": { "controlTier": "advanced" }, + "label": "Weight Loading", + "options": [ + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "cpu", + "schemaVersion": 1, + "value": "cpu" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "cuda", + "schemaVersion": 1, + "value": "cuda" + } + ], + "type": "string" + }, + "workflow_id": { + "description": "Exact reviewed component partition selected by a first-party Cluster Node.", + "hidden": true, + "label": "Reviewed Workflow", + "type": "string", + "value": "text2image" + } + }, + "resizable": true, + "skipParamsCheck": true, + "style": {}, + "time": [0, 0, 0], + "type": "custom" + }, + "operation": { + "binding": { "pipelineClass": "Flux3ModularPipeline", "values": { "model_type": "Flux3ModularPipeline" } }, + "blockName": null, + "decomposition": "loader", + "nodeKey": "modules.ModularDiffusers.ModelsLoader", + "nodeType": "loader", + "operationId": "diffusion.load_models", + "pipelineClass": "Flux3ModularPipeline", + "ports": [ + { + "direction": "input", + "hidden": false, + "name": "model_type", + "required": false, + "roles": ["value"], + "semanticName": "model_type", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": false, + "name": "repo_id", + "required": false, + "roles": ["value"], + "semanticName": "repo_id", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": true, + "name": "reviewed_variant", + "required": false, + "roles": ["value"], + "semanticName": "reviewed_variant", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": false, + "name": "device", + "required": false, + "roles": ["value"], + "semanticName": "device", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": false, + "name": "attention_backend", + "required": false, + "roles": ["value"], + "semanticName": "attention_backend", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": true, + "name": "vae_slicing", + "required": false, + "roles": ["value"], + "semanticName": "vae_slicing", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["boolean"] + }, + { + "direction": "input", + "hidden": true, + "name": "vae_tiling", + "required": false, + "roles": ["value"], + "semanticName": "vae_tiling", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["boolean"] + }, + { + "direction": "input", + "hidden": true, + "name": "inpaint_compatibility", + "required": false, + "roles": ["value"], + "semanticName": "inpaint_compatibility", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": false, + "name": "trust_remote_code", + "required": false, + "roles": ["value"], + "semanticName": "trust_remote_code", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["boolean"] + }, + { + "direction": "input", + "hidden": false, + "name": "revision", + "required": false, + "roles": ["value"], + "semanticName": "revision", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": true, + "name": "workflow_id", + "required": false, + "roles": ["value"], + "semanticName": "workflow_id", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": true, + "name": "modiff_pipeline_identity", + "required": false, + "roles": ["value"], + "semanticName": "modiff_pipeline_identity", + "semantics": { + "kind": "opaque", + "members": [], + "owner": "none", + "scope": "Flux3ModularPipeline", + "state": null + }, + "types": ["object"] + }, + { + "direction": "input", + "hidden": false, + "name": "auto_offload", + "required": false, + "roles": ["value"], + "semanticName": "auto_offload", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["boolean"] + }, + { + "direction": "input", + "hidden": false, + "name": "offload_mode", + "required": false, + "roles": ["value"], + "semanticName": "offload_mode", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": false, + "name": "weight_loading_mode", + "required": false, + "roles": ["value"], + "semanticName": "weight_loading_mode", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": true, + "name": "weight_format", + "required": false, + "roles": ["value"], + "semanticName": "weight_format", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": false, + "name": "unet", + "required": false, + "roles": ["component"], + "semanticName": "unet", + "semantics": { + "kind": "component", + "members": [ + { + "name": "transformer", + "type": "diffusers.models.transformers.transformer_flux3.Flux3Transformer2DModel" + } + ], + "owner": "same_loader", + "scope": "Flux3ModularPipeline", + "state": null + }, + "types": ["diffusers_auto_model"] + }, + { + "direction": "input", + "hidden": false, + "name": "vae", + "required": false, + "roles": ["component"], + "semanticName": "vae", + "semantics": { + "kind": "component", + "members": [ + { "name": "vae", "type": "diffusers.models.autoencoders.autoencoder_kl_flux2.AutoencoderKLFlux2" } + ], + "owner": "same_loader", + "scope": "Flux3ModularPipeline", + "state": null + }, + "types": ["diffusers_auto_model"] + }, + { + "direction": "input", + "hidden": true, + "name": "controlnet", + "required": false, + "roles": ["component"], + "semanticName": "controlnet", + "semantics": { + "kind": "component", + "members": [], + "owner": "same_loader", + "scope": "Flux3ModularPipeline", + "state": null + }, + "types": ["diffusers_auto_model"] + }, + { + "direction": "input", + "hidden": false, + "name": "lora_list", + "required": false, + "roles": ["value"], + "semanticName": "lora_list", + "semantics": { + "kind": "opaque", + "members": [], + "owner": "none", + "scope": "Flux3ModularPipeline", + "state": null + }, + "types": ["custom_lora"] + }, + { + "direction": "output", + "hidden": false, + "name": "text_encoders", + "required": false, + "roles": ["component"], + "semanticName": "text_encoders", + "semantics": { + "kind": "component", + "members": [ + { + "name": "text_encoder", + "type": "transformers.models.qwen3_vl.modeling_qwen3_vl.Qwen3VLForConditionalGeneration" + }, + { "name": "tokenizer", "type": "transformers.models.auto.processing_auto.AutoProcessor" } + ], + "owner": "same_loader", + "scope": "Flux3ModularPipeline", + "state": null + }, + "types": ["diffusers_auto_models"] + }, + { + "direction": "output", + "hidden": false, + "name": "unet_out", + "required": false, + "roles": ["component"], + "semanticName": "unet_out", + "semantics": { + "kind": "component", + "members": [ + { + "name": "transformer", + "type": "diffusers.models.transformers.transformer_flux3.Flux3Transformer2DModel" + } + ], + "owner": "same_loader", + "scope": "Flux3ModularPipeline", + "state": null + }, + "types": ["diffusers_auto_model"] + }, + { + "direction": "output", + "hidden": false, + "name": "vae_out", + "required": false, + "roles": ["component"], + "semanticName": "vae_out", + "semantics": { + "kind": "component", + "members": [ + { "name": "vae", "type": "diffusers.models.autoencoders.autoencoder_kl_flux2.AutoencoderKLFlux2" } + ], + "owner": "same_loader", + "scope": "Flux3ModularPipeline", + "state": null + }, + "types": ["diffusers_auto_model"] + }, + { + "direction": "output", + "hidden": false, + "name": "scheduler", + "required": false, + "roles": ["component"], + "semanticName": "scheduler", + "semantics": { + "kind": "component", + "members": [ + { + "name": "scheduler", + "type": "diffusers.schedulers.scheduling_flow_match_euler_discrete.FlowMatchEulerDiscreteScheduler" + } + ], + "owner": "same_loader", + "scope": "Flux3ModularPipeline", + "state": null + }, + "types": ["diffusers_auto_model"] + }, + { + "direction": "output", + "hidden": true, + "name": "image_encoder", + "required": false, + "roles": ["component"], + "semanticName": "image_encoder", + "semantics": { + "kind": "component", + "members": [], + "owner": "same_loader", + "scope": "Flux3ModularPipeline", + "state": null + }, + "types": ["diffusers_auto_model"] + }, + { + "direction": "output", + "hidden": false, + "name": "pipeline_components", + "required": false, + "roles": ["component"], + "semanticName": "pipeline_components", + "semantics": { + "kind": "component", + "members": [ + { "name": "guider", "type": "diffusers.guiders.classifier_free_guidance.ClassifierFreeGuidance" }, + { + "name": "image_processor", + "type": "diffusers.modular_pipelines.flux3.image_processor.Flux3ImageProcessor" + }, + { + "name": "scheduler", + "type": "diffusers.schedulers.scheduling_flow_match_euler_discrete.FlowMatchEulerDiscreteScheduler" + }, + { + "name": "text_encoder", + "type": "transformers.models.qwen3_vl.modeling_qwen3_vl.Qwen3VLForConditionalGeneration" + }, + { "name": "tokenizer", "type": "transformers.models.auto.processing_auto.AutoProcessor" }, + { + "name": "transformer", + "type": "diffusers.models.transformers.transformer_flux3.Flux3Transformer2DModel" + }, + { "name": "vae", "type": "diffusers.models.autoencoders.autoencoder_kl_flux2.AutoencoderKLFlux2" } + ], + "owner": "same_loader", + "scope": "Flux3ModularPipeline", + "state": null + }, + "types": ["diffusers_modular_pipeline_components"] + }, + { + "direction": "input", + "hidden": false, + "name": "quant_config", + "required": false, + "roles": ["value"], + "semanticName": "quant_config", + "semantics": { + "kind": "opaque", + "members": [], + "owner": "none", + "scope": "Flux3ModularPipeline", + "state": null + }, + "types": ["quant_config"] + } + ], + "support": "declared", + "task": "text_to_image", + "workflowId": "text2image" + } + }, + { + "node": { + "action": "Guider", + "cache": false, + "category": "sampler", + "description": "", + "label": "Guidance", + "memory": [0, 0, 0], + "module": "modules.ModularDiffusers", + "params": { + "enabled": { "label": "Enabled", "type": "boolean", "value": true }, + "guidance_rescale": { + "display": "slider", + "label": "Guidance Rescale", + "max": 10.0, + "min": 0.0, + "step": 0.1, + "type": "float", + "value": 0.0 + }, + "guidance_scale": { + "display": "slider", + "label": "Guidance Scale", + "max": 20.0, + "min": 1.0, + "step": 0.1, + "type": "float", + "value": 3.5 + }, + "guider": { + "fieldOptions": { "loading": true }, + "label": "Guider", + "onChange": [ + "updateNode", + { + "AutoGuidance": ["layers_config"], + "PerturbedAttentionGuidance": ["layers_config"], + "SkipLayerGuidance": ["layers_config"], + "SmoothedEnergyGuidance": ["layers_config"] + } + ], + "options": [ + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "ClassifierFreeGuidance", + "schemaVersion": 1, + "value": "ClassifierFreeGuidance" + } + ], + "type": "string", + "value": "ClassifierFreeGuidance" + }, + "guider_out": { + "display": "output", + "label": "Guider", + "onSignal": [ + { "action": "value", "target": "model_type" }, + { + "action": "value", + "data": { + "Flux2KleinBaseModularPipeline": ["ClassifierFreeGuidance"], + "Flux3ModularPipeline": ["ClassifierFreeGuidance"], + "FluxKontextModularPipeline": ["ClassifierFreeGuidance"], + "FluxModularPipeline": ["ClassifierFreeGuidance"], + "QwenImageEditModularPipeline": [ + "ClassifierFreeGuidance", + "SkipLayerGuidance", + "AdaptiveProjectedGuidance", + "AdaptiveProjectedMixGuidance", + "MagnitudeAwareGuidance", + "ClassifierFreeZeroStarGuidance", + "AutoGuidance", + "SmoothedEnergyGuidance", + "PerturbedAttentionGuidance", + "TangentialClassifierFreeGuidance", + "FrequencyDecoupledGuidance" + ], + "QwenImageEditPlusModularPipeline": [ + "ClassifierFreeGuidance", + "SkipLayerGuidance", + "AdaptiveProjectedGuidance", + "AdaptiveProjectedMixGuidance", + "MagnitudeAwareGuidance", + "ClassifierFreeZeroStarGuidance", + "AutoGuidance", + "SmoothedEnergyGuidance", + "PerturbedAttentionGuidance", + "TangentialClassifierFreeGuidance", + "FrequencyDecoupledGuidance" + ], + "QwenImageLayeredModularPipeline": [ + "ClassifierFreeGuidance", + "AdaptiveProjectedGuidance", + "AdaptiveProjectedMixGuidance", + "MagnitudeAwareGuidance", + "ClassifierFreeZeroStarGuidance", + "TangentialClassifierFreeGuidance", + "FrequencyDecoupledGuidance" + ], + "QwenImageModularPipeline": [ + "ClassifierFreeGuidance", + "SkipLayerGuidance", + "AdaptiveProjectedGuidance", + "AdaptiveProjectedMixGuidance", + "MagnitudeAwareGuidance", + "ClassifierFreeZeroStarGuidance", + "AutoGuidance", + "SmoothedEnergyGuidance", + "PerturbedAttentionGuidance", + "TangentialClassifierFreeGuidance", + "FrequencyDecoupledGuidance" + ], + "StableDiffusionXLModularPipeline": [ + "ClassifierFreeGuidance", + "SkipLayerGuidance", + "AdaptiveProjectedGuidance", + "AdaptiveProjectedMixGuidance", + "MagnitudeAwareGuidance", + "ClassifierFreeZeroStarGuidance", + "AutoGuidance", + "SmoothedEnergyGuidance", + "PerturbedAttentionGuidance", + "TangentialClassifierFreeGuidance", + "FrequencyDecoupledGuidance" + ], + "WanImage2VideoModularPipeline": [ + "ClassifierFreeGuidance", + "AdaptiveProjectedGuidance", + "AdaptiveProjectedMixGuidance", + "MagnitudeAwareGuidance", + "ClassifierFreeZeroStarGuidance", + "TangentialClassifierFreeGuidance", + "FrequencyDecoupledGuidance" + ], + "WanModularPipeline": [ + "ClassifierFreeGuidance", + "AdaptiveProjectedGuidance", + "AdaptiveProjectedMixGuidance", + "MagnitudeAwareGuidance", + "ClassifierFreeZeroStarGuidance", + "TangentialClassifierFreeGuidance", + "FrequencyDecoupledGuidance" + ], + "ZImageModularPipeline": [ + "ClassifierFreeGuidance", + "AdaptiveProjectedGuidance", + "AdaptiveProjectedMixGuidance", + "MagnitudeAwareGuidance", + "ClassifierFreeZeroStarGuidance", + "TangentialClassifierFreeGuidance", + "FrequencyDecoupledGuidance" + ] + }, + "prop": "options", + "target": "guider" + }, + { "action": "signal", "target": "layers_config" } + ], + "signalCompatibility": { + "values": { + "Flux2KleinBaseModularPipeline": ["ClassifierFreeGuidance"], + "Flux3ModularPipeline": ["ClassifierFreeGuidance"], + "FluxKontextModularPipeline": ["ClassifierFreeGuidance"], + "FluxModularPipeline": ["ClassifierFreeGuidance"], + "QwenImageEditModularPipeline": [ + "ClassifierFreeGuidance", + "SkipLayerGuidance", + "AdaptiveProjectedGuidance", + "AdaptiveProjectedMixGuidance", + "MagnitudeAwareGuidance", + "ClassifierFreeZeroStarGuidance", + "AutoGuidance", + "SmoothedEnergyGuidance", + "PerturbedAttentionGuidance", + "TangentialClassifierFreeGuidance", + "FrequencyDecoupledGuidance" + ], + "QwenImageEditPlusModularPipeline": [ + "ClassifierFreeGuidance", + "SkipLayerGuidance", + "AdaptiveProjectedGuidance", + "AdaptiveProjectedMixGuidance", + "MagnitudeAwareGuidance", + "ClassifierFreeZeroStarGuidance", + "AutoGuidance", + "SmoothedEnergyGuidance", + "PerturbedAttentionGuidance", + "TangentialClassifierFreeGuidance", + "FrequencyDecoupledGuidance" + ], + "QwenImageLayeredModularPipeline": [ + "ClassifierFreeGuidance", + "AdaptiveProjectedGuidance", + "AdaptiveProjectedMixGuidance", + "MagnitudeAwareGuidance", + "ClassifierFreeZeroStarGuidance", + "TangentialClassifierFreeGuidance", + "FrequencyDecoupledGuidance" + ], + "QwenImageModularPipeline": [ + "ClassifierFreeGuidance", + "SkipLayerGuidance", + "AdaptiveProjectedGuidance", + "AdaptiveProjectedMixGuidance", + "MagnitudeAwareGuidance", + "ClassifierFreeZeroStarGuidance", + "AutoGuidance", + "SmoothedEnergyGuidance", + "PerturbedAttentionGuidance", + "TangentialClassifierFreeGuidance", + "FrequencyDecoupledGuidance" + ], + "StableDiffusionXLModularPipeline": [ + "ClassifierFreeGuidance", + "SkipLayerGuidance", + "AdaptiveProjectedGuidance", + "AdaptiveProjectedMixGuidance", + "MagnitudeAwareGuidance", + "ClassifierFreeZeroStarGuidance", + "AutoGuidance", + "SmoothedEnergyGuidance", + "PerturbedAttentionGuidance", + "TangentialClassifierFreeGuidance", + "FrequencyDecoupledGuidance" + ], + "WanImage2VideoModularPipeline": [ + "ClassifierFreeGuidance", + "AdaptiveProjectedGuidance", + "AdaptiveProjectedMixGuidance", + "MagnitudeAwareGuidance", + "ClassifierFreeZeroStarGuidance", + "TangentialClassifierFreeGuidance", + "FrequencyDecoupledGuidance" + ], + "WanModularPipeline": [ + "ClassifierFreeGuidance", + "AdaptiveProjectedGuidance", + "AdaptiveProjectedMixGuidance", + "MagnitudeAwareGuidance", + "ClassifierFreeZeroStarGuidance", + "TangentialClassifierFreeGuidance", + "FrequencyDecoupledGuidance" + ], + "ZImageModularPipeline": [ + "ClassifierFreeGuidance", + "AdaptiveProjectedGuidance", + "AdaptiveProjectedMixGuidance", + "MagnitudeAwareGuidance", + "ClassifierFreeZeroStarGuidance", + "TangentialClassifierFreeGuidance", + "FrequencyDecoupledGuidance" + ] + } + }, + "type": "custom_guider" + }, + "layers_config": { "display": "input", "label": "Layers", "type": "layers_config" }, + "model_type": { "default": "", "hidden": true, "type": "string", "value": "Flux3ModularPipeline" }, + "start": { + "display": "slider", + "label": "Start", + "max": 1.0, + "min": 0.0, + "step": 0.01, + "type": "float", + "value": 0.0 + }, + "stop": { + "display": "slider", + "label": "Stop", + "max": 1.0, + "min": 0.01, + "step": 0.01, + "type": "float", + "value": 1.0 + }, + "use_original_formulation": { "label": "Original Formulation", "type": "boolean", "value": false } + }, + "resizable": true, + "skipParamsCheck": true, + "style": {}, + "time": [0, 0, 0], + "type": "custom" + }, + "operation": { + "binding": { "pipelineClass": "Flux3ModularPipeline", "values": { "model_type": "Flux3ModularPipeline" } }, + "blockName": null, + "decomposition": "bundle", + "nodeKey": "modules.ModularDiffusers.Guider", + "nodeType": "guidance", + "operationId": "diffusion.guidance", + "pipelineClass": "Flux3ModularPipeline", + "ports": [ + { + "direction": "input", + "hidden": true, + "name": "model_type", + "required": false, + "roles": ["value"], + "semanticName": "model_type", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": false, + "name": "guider", + "required": false, + "roles": ["value"], + "semanticName": "guider", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": false, + "name": "guidance_scale", + "required": false, + "roles": ["value"], + "semanticName": "guidance_scale", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["float"] + }, + { + "direction": "input", + "hidden": false, + "name": "guidance_rescale", + "required": false, + "roles": ["value"], + "semanticName": "guidance_rescale", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["float"] + }, + { + "direction": "input", + "hidden": false, + "name": "use_original_formulation", + "required": false, + "roles": ["value"], + "semanticName": "use_original_formulation", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["boolean"] + }, + { + "direction": "input", + "hidden": false, + "name": "enabled", + "required": false, + "roles": ["value"], + "semanticName": "enabled", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["boolean"] + }, + { + "direction": "input", + "hidden": false, + "name": "start", + "required": false, + "roles": ["value"], + "semanticName": "start", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["float"] + }, + { + "direction": "input", + "hidden": false, + "name": "stop", + "required": false, + "roles": ["value"], + "semanticName": "stop", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["float"] + }, + { + "direction": "output", + "hidden": false, + "name": "guider_out", + "required": false, + "roles": ["component"], + "semanticName": "guider_out", + "semantics": { + "kind": "component", + "members": [], + "owner": "same_loader", + "scope": "Flux3ModularPipeline", + "state": null + }, + "types": ["custom_guider"] + }, + { + "direction": "input", + "hidden": false, + "name": "layers_config", + "required": false, + "roles": ["value"], + "semanticName": "layers_config", + "semantics": { + "kind": "opaque", + "members": [], + "owner": "none", + "scope": "Flux3ModularPipeline", + "state": null + }, + "types": ["layers_config"] + } + ], + "support": "declared", + "task": "text_to_image", + "workflowId": "text2image" + } + }, + { + "node": { + "action": "EncodePrompt", + "cache": false, + "category": "embedding", + "description": "", + "label": "Encode Prompt", + "memory": [0, 0, 0], + "module": "modules.ModularDiffusers", + "params": { + "doc": { "display": "output", "label": "Doc", "type": "string" }, + "embeddings": { "display": "output", "label": "Text Embeddings", "type": "embeddings" }, + "guider": { + "description": "Shared Diffusers guidance used by prompt encoding and denoising when the selected pipeline supports it.", + "display": "input", + "hidden": true, + "label": "Guider", + "type": "custom_guider" + }, + "layout_conditioning": { + "default": null, + "display": "layout", + "fieldOptions": { + "layoutConditioning": { + "schemaVersion": 2, + "sourceRegions": false, + "supportsBoundSourceRegions": true + } + }, + "label": "Layout Conditioning", + "type": "layout_conditioning" + }, + "layout_reference_summary": { + "description": "Display-only ordered reference identities and actual preprocessing sizes from the current encoder cache.", + "display": "output", + "hidden": true, + "label": "Bound Reference Summary", + "type": "string" + }, + "max_sequence_length": { + "default": 8192, + "label": "Maximum Sequence Length", + "max": 8192, + "min": 1, + "step": 1, + "type": "int" + }, + "negative_prompt": { "default": "", "display": "textarea", "label": "Negative Prompt", "type": "string" }, + "prompt": { + "default": "", + "display": "textarea", + "fieldOptions": { "exampleAttribution": "MoDiff task example" }, + "label": "Prompt *", + "type": "string", + "value": "A red ceramic teapot on a wooden table beside a window, soft morning light, detailed photograph." + }, + "prompt_input": { + "description": "Optional connected prompt. When connected, this replaces the inline Prompt value.", + "display": "input", + "label": "Prompt Input", + "type": "string" + }, + "reference_binding": { + "default": null, + "display": "input", + "fieldOptions": { "referenceBinding": { "maxReferences": 10, "schemaVersion": 1 } }, + "label": "Reference Binding", + "type": "reference_conditioning" + }, + "text_encoder_out_layers": { + "default": [4, 8, 12, 16, 20, 24, 28, 32], + "display": "select", + "fieldOptions": { "multiple": true, "tupleLength": 8, "tupleValue": true }, + "label": "Text Encoder Layers", + "options": [ + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "0", + "schemaVersion": 1, + "value": "0" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "1", + "schemaVersion": 1, + "value": "1" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "2", + "schemaVersion": 1, + "value": "2" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "3", + "schemaVersion": 1, + "value": "3" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "4", + "schemaVersion": 1, + "value": "4" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "5", + "schemaVersion": 1, + "value": "5" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "6", + "schemaVersion": 1, + "value": "6" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "7", + "schemaVersion": 1, + "value": "7" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "8", + "schemaVersion": 1, + "value": "8" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "9", + "schemaVersion": 1, + "value": "9" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "10", + "schemaVersion": 1, + "value": "10" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "11", + "schemaVersion": 1, + "value": "11" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "12", + "schemaVersion": 1, + "value": "12" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "13", + "schemaVersion": 1, + "value": "13" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "14", + "schemaVersion": 1, + "value": "14" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "15", + "schemaVersion": 1, + "value": "15" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "16", + "schemaVersion": 1, + "value": "16" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "17", + "schemaVersion": 1, + "value": "17" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "18", + "schemaVersion": 1, + "value": "18" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "19", + "schemaVersion": 1, + "value": "19" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "20", + "schemaVersion": 1, + "value": "20" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "21", + "schemaVersion": 1, + "value": "21" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "22", + "schemaVersion": 1, + "value": "22" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "23", + "schemaVersion": 1, + "value": "23" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "24", + "schemaVersion": 1, + "value": "24" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "25", + "schemaVersion": 1, + "value": "25" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "26", + "schemaVersion": 1, + "value": "26" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "27", + "schemaVersion": 1, + "value": "27" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "28", + "schemaVersion": 1, + "value": "28" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "29", + "schemaVersion": 1, + "value": "29" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "30", + "schemaVersion": 1, + "value": "30" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "31", + "schemaVersion": 1, + "value": "31" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "32", + "schemaVersion": 1, + "value": "32" + } + ], + "type": "int" + }, + "text_encoders": { + "display": "input", + "label": "Text Encoders *", + "onSignal": "update_node", + "required": true, + "signalCompatibility": { "role": "text_encoders" }, + "type": "diffusers_auto_models" + } + }, + "resizable": true, + "skipParamsCheck": true, + "style": {}, + "time": [0, 0, 0], + "type": "custom" + }, + "operation": { + "binding": { "pipelineClass": "Flux3ModularPipeline", "values": {} }, + "blockName": "text_encoder", + "decomposition": "block", + "nodeKey": "modules.ModularDiffusers.EncodePrompt", + "nodeType": "text_encoder", + "operationId": "diffusion.encode_prompt", + "pipelineClass": "Flux3ModularPipeline", + "ports": [ + { + "direction": "input", + "hidden": false, + "name": "prompt", + "required": true, + "roles": ["value"], + "semanticName": "prompt", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": false, + "name": "negative_prompt", + "required": false, + "roles": ["value"], + "semanticName": "negative_prompt", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": false, + "name": "max_sequence_length", + "required": false, + "roles": ["value"], + "semanticName": "max_sequence_length", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["int"] + }, + { + "direction": "input", + "hidden": false, + "name": "text_encoder_out_layers", + "required": false, + "roles": ["value"], + "semanticName": "text_encoder_out_layers", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["int"] + }, + { + "direction": "input", + "hidden": false, + "name": "text_encoders", + "required": true, + "roles": ["component"], + "semanticName": "text_encoders", + "semantics": { + "kind": "component", + "members": [ + { + "name": "text_encoder", + "type": "transformers.models.qwen3_vl.modeling_qwen3_vl.Qwen3VLForConditionalGeneration" + }, + { "name": "tokenizer", "type": "transformers.models.auto.processing_auto.AutoProcessor" } + ], + "owner": "same_loader", + "scope": "Flux3ModularPipeline", + "state": null + }, + "types": ["diffusers_auto_models"] + }, + { + "direction": "output", + "hidden": false, + "name": "embeddings", + "required": false, + "roles": ["value"], + "semanticName": "embeddings", + "semantics": { + "kind": "conditioning", + "members": [], + "owner": "same_loader", + "scope": "Flux3ModularPipeline", + "state": null + }, + "types": ["embeddings"] + }, + { + "direction": "output", + "hidden": false, + "name": "doc", + "required": false, + "roles": ["value"], + "semanticName": "doc", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": false, + "name": "layout_conditioning", + "required": false, + "roles": ["value"], + "semanticName": "layout_conditioning", + "semantics": { + "kind": "opaque", + "members": [], + "owner": "none", + "scope": "Flux3ModularPipeline", + "state": null + }, + "types": ["layout_conditioning"] + }, + { + "direction": "input", + "hidden": false, + "name": "reference_binding", + "required": false, + "roles": ["value"], + "semanticName": "reference_binding", + "semantics": { + "kind": "opaque", + "members": [], + "owner": "none", + "scope": "Flux3ModularPipeline", + "state": null + }, + "types": ["reference_conditioning"] + }, + { + "direction": "input", + "hidden": false, + "name": "prompt_input", + "required": false, + "roles": ["value"], + "semanticName": "prompt", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + } + ], + "support": "declared", + "task": "text_to_image", + "workflowId": "text2image" + } + }, + { + "node": { + "action": "Denoise", + "cache": false, + "category": "sampler", + "description": "", + "label": "Denoise", + "memory": [0, 0, 0], + "module": "modules.ModularDiffusers", + "params": { + "doc": { "display": "output", "label": "Doc", "type": "string" }, + "embeddings": { "display": "input", "label": "Text Embeddings *", "type": "embeddings" }, + "guider": { "display": "input", "label": "Guider", "type": "custom_guider" }, + "height": { "default": 1024, "label": "Height", "min": 64, "step": 16, "type": "int", "value": 1024 }, + "image_cond_latents": { "display": "input", "label": "Reference Latents", "type": "latents" }, + "latents": { "display": "output", "label": "Latents", "type": "latents" }, + "num_images_per_prompt": { + "default": 1, + "label": "Images Per Prompt", + "max": 8, + "min": 1, + "step": 1, + "type": "int" + }, + "num_inference_steps": { + "default": 50, + "display": "slider", + "label": "Steps", + "max": 100, + "min": 1, + "type": "int", + "value": 50 + }, + "reference_binding": { + "default": null, + "display": "input", + "fieldOptions": { "referenceBinding": { "maxReferences": 10, "schemaVersion": 1 } }, + "label": "Reference Binding", + "type": "reference_conditioning" + }, + "scheduler": { + "display": "input", + "label": "Scheduler *", + "signalCompatibility": { "role": "scheduler" }, + "type": "diffusers_auto_model" + }, + "seed": { + "default": 0, + "display": "random", + "label": "Seed", + "max": 4294967295, + "min": 0, + "type": "int" + }, + "unet": { + "display": "input", + "label": "Denoise Model *", + "onSignal": [ + "update_node", + { "action": "signal", "target": "guider" }, + { "action": "signal", "target": "controlnet_bundle" } + ], + "required": true, + "signalCompatibility": { "role": "denoiser" }, + "type": "diffusers_auto_model" + }, + "width": { "default": 1024, "label": "Width", "min": 64, "step": 16, "type": "int", "value": 1024 } + }, + "resizable": true, + "skipParamsCheck": true, + "style": {}, + "time": [0, 0, 0], + "type": "custom" + }, + "operation": { + "binding": { "pipelineClass": "Flux3ModularPipeline", "values": {} }, + "blockName": "denoise", + "decomposition": "block", + "nodeKey": "modules.ModularDiffusers.Denoise", + "nodeType": "denoise", + "operationId": "diffusion.denoise", + "pipelineClass": "Flux3ModularPipeline", + "ports": [ + { + "direction": "input", + "hidden": false, + "name": "embeddings", + "required": true, + "roles": ["value"], + "semanticName": "embeddings", + "semantics": { + "kind": "conditioning", + "members": [], + "owner": "same_loader", + "scope": "Flux3ModularPipeline", + "state": null + }, + "types": ["embeddings"] + }, + { + "direction": "input", + "hidden": false, + "name": "width", + "required": false, + "roles": ["value"], + "semanticName": "width", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["int"] + }, + { + "direction": "input", + "hidden": false, + "name": "height", + "required": false, + "roles": ["value"], + "semanticName": "height", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["int"] + }, + { + "direction": "input", + "hidden": false, + "name": "seed", + "required": false, + "roles": ["value"], + "semanticName": "seed", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["int"] + }, + { + "direction": "input", + "hidden": false, + "name": "num_inference_steps", + "required": false, + "roles": ["value"], + "semanticName": "num_inference_steps", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["int"] + }, + { + "direction": "input", + "hidden": false, + "name": "num_images_per_prompt", + "required": false, + "roles": ["value"], + "semanticName": "num_images_per_prompt", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["int"] + }, + { + "direction": "input", + "hidden": false, + "name": "image_cond_latents", + "required": false, + "roles": ["value"], + "semanticName": "image_cond_latents", + "semantics": { + "kind": "latents", + "members": [], + "owner": "same_loader", + "scope": "Flux3ModularPipeline", + "state": null + }, + "types": ["latents"] + }, + { + "direction": "input", + "hidden": false, + "name": "unet", + "required": true, + "roles": ["component"], + "semanticName": "unet", + "semantics": { + "kind": "component", + "members": [ + { + "name": "transformer", + "type": "diffusers.models.transformers.transformer_flux3.Flux3Transformer2DModel" + } + ], + "owner": "same_loader", + "scope": "Flux3ModularPipeline", + "state": null + }, + "types": ["diffusers_auto_model"] + }, + { + "direction": "input", + "hidden": false, + "name": "scheduler", + "required": true, + "roles": ["component"], + "semanticName": "scheduler", + "semantics": { + "kind": "component", + "members": [ + { + "name": "scheduler", + "type": "diffusers.schedulers.scheduling_flow_match_euler_discrete.FlowMatchEulerDiscreteScheduler" + } + ], + "owner": "same_loader", + "scope": "Flux3ModularPipeline", + "state": null + }, + "types": ["diffusers_auto_model"] + }, + { + "direction": "input", + "hidden": false, + "name": "guider", + "required": false, + "roles": ["component"], + "semanticName": "guider", + "semantics": { + "kind": "component", + "members": [ + { "name": "guider", "type": "diffusers.guiders.classifier_free_guidance.ClassifierFreeGuidance" } + ], + "owner": "same_loader", + "scope": "Flux3ModularPipeline", + "state": null + }, + "types": ["custom_guider"] + }, + { + "direction": "output", + "hidden": false, + "name": "latents", + "required": false, + "roles": ["value"], + "semanticName": "latents", + "semantics": { + "kind": "latents", + "members": [], + "owner": "same_loader", + "scope": "Flux3ModularPipeline", + "state": null + }, + "types": ["latents"] + }, + { + "direction": "output", + "hidden": false, + "name": "doc", + "required": false, + "roles": ["value"], + "semanticName": "doc", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": false, + "name": "reference_binding", + "required": false, + "roles": ["value"], + "semanticName": "reference_binding", + "semantics": { + "kind": "opaque", + "members": [], + "owner": "none", + "scope": "Flux3ModularPipeline", + "state": null + }, + "types": ["reference_conditioning"] + } + ], + "support": "declared", + "task": "text_to_image", + "workflowId": "text2image" + } + }, + { + "node": { + "action": "DecodeLatents", + "cache": false, + "category": "sampler", + "description": "", + "label": "Decode Latents", + "memory": [0, 0, 0], + "module": "modules.ModularDiffusers", + "params": { + "doc": { "display": "output", "label": "Doc", "type": "string" }, + "images": { "display": "output", "label": "Images", "type": "image" }, + "latents": { "display": "input", "label": "Latents *", "type": "latents" }, + "vae": { + "display": "input", + "label": "VAE *", + "onSignal": "update_node", + "signalCompatibility": { "role": "vae" }, + "type": "diffusers_auto_model" + } + }, + "resizable": true, + "skipParamsCheck": true, + "style": {}, + "time": [0, 0, 0], + "type": "custom" + }, + "operation": { + "binding": { "pipelineClass": "Flux3ModularPipeline", "values": {} }, + "blockName": "decode", + "decomposition": "block", + "nodeKey": "modules.ModularDiffusers.DecodeLatents", + "nodeType": "decoder", + "operationId": "diffusion.decode_latents", + "pipelineClass": "Flux3ModularPipeline", + "ports": [ + { + "direction": "input", + "hidden": false, + "name": "latents", + "required": true, + "roles": ["value"], + "semanticName": "latents", + "semantics": { + "kind": "latents", + "members": [], + "owner": "same_loader", + "scope": "Flux3ModularPipeline", + "state": null + }, + "types": ["latents"] + }, + { + "direction": "input", + "hidden": false, + "name": "vae", + "required": true, + "roles": ["component"], + "semanticName": "vae", + "semantics": { + "kind": "component", + "members": [ + { "name": "vae", "type": "diffusers.models.autoencoders.autoencoder_kl_flux2.AutoencoderKLFlux2" } + ], + "owner": "same_loader", + "scope": "Flux3ModularPipeline", + "state": null + }, + "types": ["diffusers_auto_model"] + }, + { + "direction": "output", + "hidden": false, + "name": "images", + "required": false, + "roles": ["value"], + "semanticName": "images", + "semantics": { "kind": "media", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["image"] + }, + { + "direction": "output", + "hidden": false, + "name": "doc", + "required": false, + "roles": ["value"], + "semanticName": "doc", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + } + ], + "support": "declared", + "task": "text_to_image", + "workflowId": "text2image" + } + } + ], + "pipelineClass": "Flux3ModularPipeline", + "requiredInputs": [{ "field": "prompt", "operationId": "diffusion.encode_prompt" }], + "schemaVersion": 1, + "sharedInputs": [], + "task": "text_to_image", + "upstreamBlocks": ["text_encoder", "denoise", "decode"], + "workflowId": "text2image" + }, + { + "authoring": { + "ancillaryOperations": [ + { + "adapter": { + "declarationSha256": "sha256:2a3d4685988b418115008bbb95fb3e948097580c0bedd2940ea3fe1e40254dc2", + "id": "transformers-prompt-enhancement-v1" + }, + "bindings": { + "output": { "field": "proposal_summary", "role": "proposal" }, + "owner": { + "layoutField": "layout_conditioning", + "promptField": "prompt", + "referenceSource": null, + "role": "prompt" + }, + "request": { + "imagesField": "images", + "layoutField": "layout_conditioning", + "promptField": "prompt", + "role": "proposal" + } + }, + "contentHash": "studio-ancillary-v1-6f1ee217", + "edges": [["provider", "model", "proposal", "model"]], + "executionPurpose": "explicit_preview", + "fieldOverrides": [ + ["proposal", "enhancement_max_new_tokens", { "hidden": false }], + ["proposal", "max_new_tokens", { "hidden": true }] + ], + "id": "flux3-klein-base:official:text-to-image:prompt-preview-fp32:v1:preview", + "initialValues": [ + ["provider", "model_id", { "source": "hub", "value": "black-forest-labs/flux-3-image-klein-pup" }], + ["provider", "revision", "3f3edb52b2c55de0d49feab28598b68f7f8e4830"], + ["proposal", "operation", "enhance_prompt"], + ["provider", "dtype", "float32"], + ["provider", "device", "cuda:0"], + ["provider", "quantization_mode", "none"], + ["proposal", "max_input_tokens", 4096] + ], + "parent": { + "authoringRecipeId": "flux3-klein-base:official:text-to-image:prompt-preview-fp32:v1", + "baseSpecContentHash": "studio-spec-v1-f5960f24", + "baseSpecId": "flux3-klein-base:official-provider:v1:text-to-image:v1", + "executionProfileId": "flux3-klein-base:official-provider:v1", + "pipelineClass": "Flux3ModularPipeline", + "task": "text_to_image" + }, + "roles": [ + ["provider", "modules.HuggingFaceTransformers.LoadImageTextToTextModel", -720, -400], + ["proposal", "modules.HuggingFaceTransformers.GenerateImageVideoText", -360, -400] + ], + "schemaVersion": 1, + "sourceRegions": false, + "verification": { + "adapter": { + "declarationSha256": "sha256:2a3d4685988b418115008bbb95fb3e948097580c0bedd2940ea3fe1e40254dc2", + "id": "transformers-prompt-enhancement-v1" + }, + "chatTemplateSha256": "sha256:a4aee8afcf2e0711942cf848899be66016f8d14a889ff9ede07bca099c28f715", + "modelReceipt": { + "library": "transformers", + "loader": { "modelAutoClass": "AutoModelForImageTextToText", "preprocessorAutoClass": "AutoProcessor" }, + "runtime": { + "architectures": ["Qwen3_5ForConditionalGeneration"], + "modelClass": "Qwen3_5ForConditionalGeneration", + "modelType": "qwen3_5", + "preprocessorClass": "Qwen3VLProcessor", + "transformersVersion": "5.18.0" + }, + "schemaVersion": 1, + "security": { + "hostedInference": false, + "localFilesOnly": true, + "safetensorsOnly": true, + "trustRemoteCode": false + }, + "source": { + "kind": "hub", + "repository": "black-forest-labs/flux-3-image-klein-pup", + "revision": "3f3edb52b2c55de0d49feab28598b68f7f8e4830" + }, + "task": "image-video-to-text" + }, + "quantizationRecipes": [ + { "mode": "none" }, + { + "computeDtype": "bfloat16", + "doubleQuant": true, + "mode": "bnb_4bit", + "quantType": "nf4", + "skipModules": ["lm_head", "model.visual"] + } + ], + "requestInputs": { + "maxImagePixelsField": "max_image_pixels", + "maxInputTokensField": "max_input_tokens", + "maxNewTokensField": "enhancement_max_new_tokens", + "minNewTokensField": "min_new_tokens", + "operationField": "operation", + "role": "proposal" + }, + "runtimeInputs": { + "deviceField": "device", + "dtypeField": "dtype", + "modelField": "model_id", + "quantizationField": "quantization_mode", + "revisionField": "revision", + "role": "provider" + }, + "schemaVersion": 1, + "supportedPromptModes": ["t2i", "i2i"], + "systemPromptSha256ByMode": { + "i2i": "95cec384d5b6d341caa9fb3f2c7ca45ee80c2364b3a95d4044aebf976f6dd3bf", + "i2i_bbox": "9ad10f947e401337cf155cac0518cc428159ef16f2f029f48aae2aaab8380a5e", + "t2i": "8b235a421bce2213d11ada01f5a1244443dd72303ffbb4cc9e5a0d8b0de5ab6f", + "t2i_bbox": "5f513d8ce5838732919f9e645507aa20ff373e88bf93132c768e063c9db3151f" + }, + "systemPromptsSha256": "sha256:b5da3ed8bc04ab59dbdb747930f7dbff847e868903fed8028f85ee1a4ac82fb4" + } + } + ], + "baseSpecContentHash": "studio-spec-v1-f5960f24", + "baseSpecId": "flux3-klein-base:official-provider:v1:text-to-image:v1", + "bindings": [ + ["models", "model_type", "pipelineClass"], + ["models", "repo_id", "artifact"], + ["models", "revision", "defaultRevision"], + ["models", "dtype", "dtype"], + ["models", "device", "device"], + ["models", "auto_offload", "autoOffload"], + ["models", "offload_mode", "offloadMode"], + ["models", "trust_remote_code", "false"], + ["prompt", "prompt", "prompt"], + ["prompt", "negative_prompt", "negativePrompt"], + ["denoise", "width", "width"], + ["denoise", "height", "height"], + ["denoise", "seed", "seed"], + ["denoise", "num_inference_steps", "steps"], + ["prompt", "max_sequence_length", "maxSequenceLength"], + ["models", "weight_format", "weightFormat"], + ["guider", "guider", "classifierFreeGuidance"], + ["guider", "model_type", "pipelineClass"], + ["guider", "guidance_scale", "guidanceScale"] + ], + "canonicalizationVersion": 1, + "contentHash": "studio-authoring-v1-10357f95", + "edges": [ + ["models", "text_encoders", "prompt", "text_encoders"], + ["models", "unet_out", "denoise", "unet"], + ["models", "scheduler", "denoise", "scheduler"], + ["models", "vae_out", "decode", "vae"], + ["prompt", "embeddings", "denoise", "embeddings"], + ["denoise", "latents", "decode", "latents"], + ["decode", "images", "preview", "image"], + ["guider", "guider_out", "denoise", "guider"] + ], + "executionProfileIds": ["flux3-klein-base:official-provider:v1"], + "id": "flux3-klein-base:official:text-to-image:prompt-preview-fp32:v1", + "initialValues": [], + "roles": [ + ["models", "modules.ModularDiffusers.ModelsLoader", -720, -80], + ["prompt", "modules.ModularDiffusers.EncodePrompt", -360, -240], + ["denoise", "modules.ModularDiffusers.Denoise", 80, -80], + ["decode", "modules.ModularDiffusers.DecodeLatents", 440, -80], + ["preview", "modules.Image.Preview", 800, -80], + ["guider", "modules.ModularDiffusers.Guider", -360, 160] + ], + "schemaVersion": 1 + }, + "edges": [ + { + "source": "diffusion.load_models", + "sourceHandle": "text_encoders", + "target": "diffusion.encode_prompt", + "targetHandle": "text_encoders" + }, + { + "source": "diffusion.load_models", + "sourceHandle": "scheduler", + "target": "diffusion.denoise", + "targetHandle": "scheduler" + }, + { + "source": "diffusion.load_models", + "sourceHandle": "unet_out", + "target": "diffusion.denoise", + "targetHandle": "unet" + }, + { + "source": "diffusion.load_models", + "sourceHandle": "vae_out", + "target": "diffusion.decode_latents", + "targetHandle": "vae" + }, + { + "source": "diffusion.encode_prompt", + "sourceHandle": "embeddings", + "target": "diffusion.denoise", + "targetHandle": "embeddings" + }, + { + "source": "diffusion.denoise", + "sourceHandle": "latents", + "target": "diffusion.decode_latents", + "targetHandle": "latents" + }, + { + "source": "diffusion.guidance", + "sourceHandle": "guider_out", + "target": "diffusion.denoise", + "targetHandle": "guider" + } + ], + "nodes": [ + { + "node": { + "action": "ModelsLoader", + "cache": false, + "category": "loader", + "description": "", + "label": "Load Models", + "memory": [0, 0, 0], + "module": "modules.ModularDiffusers", + "params": { + "attention_backend": { + "default": "inherit", + "description": "Inherit preserves existing native component defaults; explicit choices use the ordinary Diffusers attention API.", + "label": "Attention Backend", + "options": [ + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "inherit", + "schemaVersion": 1, + "value": "inherit" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "auto", + "schemaVersion": 1, + "value": "auto" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "native", + "schemaVersion": 1, + "value": "native" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "_native_math", + "schemaVersion": 1, + "value": "_native_math" + } + ], + "type": "string" + }, + "auto_offload": { "label": "Enable Auto Offload", "type": "boolean", "value": true }, + "controlnet": { + "display": "input", + "hidden": true, + "label": "ControlNet", + "type": "diffusers_auto_model" + }, + "device": { + "label": "Device", + "options": { + "cpu": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "cpu", + "schemaVersion": 1, + "value": "cpu" + }, + "cpu:0": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "cpu:0", + "schemaVersion": 1, + "value": "cpu:0" + } + }, + "type": "string", + "value": "cpu:0" + }, + "dtype": { + "label": "dtype", + "options": [ + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "float32", + "schemaVersion": 1, + "value": "float32" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "float16", + "schemaVersion": 1, + "value": "float16" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "bfloat16", + "schemaVersion": 1, + "value": "bfloat16" + } + ], + "value": "bfloat16" + }, + "image_encoder": { + "connectionRole": "image_encoder", + "display": "output", + "hidden": true, + "label": "Image Encoder", + "signal": { + "direction": "output", + "origin": "modiff_pipeline_identity", + "value": "Flux3ModularPipeline" + }, + "type": "diffusers_auto_model" + }, + "inpaint_compatibility": { + "default": "native", + "description": "Technical compatibility selection for the reviewed Qwen Edit inpainting candidate; existing nodes retain native policy.", + "hidden": true, + "label": "Inpaint Compatibility", + "options": [ + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "native", + "schemaVersion": 1, + "value": "native" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "whole_v1", + "schemaVersion": 1, + "value": "whole_v1" + } + ], + "type": "string" + }, + "lora_list": { "display": "input", "label": "Lora", "type": "custom_lora" }, + "model_type": { + "description": "Selects the Modular Diffusers pipeline class. This filters compatible checkpoints and publishes the component contract used by connected nodes; it is not the model checkpoint itself.", + "label": "Pipeline Type", + "onChange": "set_filters", + "options": { + "": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "", + "schemaVersion": 1, + "value": "" + }, + "AnimaModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Anima", + "schemaVersion": 1, + "value": "AnimaModularPipeline" + }, + "Cosmos3DistilledModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Cosmos 3 Distilled", + "schemaVersion": 1, + "value": "Cosmos3DistilledModularPipeline" + }, + "Cosmos3OmniModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Cosmos 3 Nano", + "schemaVersion": 1, + "value": "Cosmos3OmniModularPipeline" + }, + "DummyCustomPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Custom", + "schemaVersion": 1, + "value": "DummyCustomPipeline" + }, + "ErnieImageModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "ERNIE Image Turbo", + "schemaVersion": 1, + "value": "ErnieImageModularPipeline" + }, + "Flux2KleinBaseModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Flux 2 Klein Base", + "schemaVersion": 1, + "value": "Flux2KleinBaseModularPipeline" + }, + "Flux2KleinModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Flux 2 Klein Distilled", + "schemaVersion": 1, + "value": "Flux2KleinModularPipeline" + }, + "Flux2ModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Flux 2", + "schemaVersion": 1, + "value": "Flux2ModularPipeline" + }, + "Flux3DistilledModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "FLUX 3 Image Klein", + "schemaVersion": 1, + "value": "Flux3DistilledModularPipeline" + }, + "Flux3ModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "FLUX 3 Image Klein Base", + "schemaVersion": 1, + "value": "Flux3ModularPipeline" + }, + "FluxKontextModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Flux Kontext", + "schemaVersion": 1, + "value": "FluxKontextModularPipeline" + }, + "FluxModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Flux", + "schemaVersion": 1, + "value": "FluxModularPipeline" + }, + "HeliosModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Helios", + "schemaVersion": 1, + "value": "HeliosModularPipeline" + }, + "HeliosPyramidDistilledModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Helios Pyramid Distilled", + "schemaVersion": 1, + "value": "HeliosPyramidDistilledModularPipeline" + }, + "HeliosPyramidModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Helios Pyramid", + "schemaVersion": 1, + "value": "HeliosPyramidModularPipeline" + }, + "HunyuanVideo15ModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "HunyuanVideo 1.5", + "schemaVersion": 1, + "value": "HunyuanVideo15ModularPipeline" + }, + "Ideogram4ModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Ideogram 4 (Contract only)", + "schemaVersion": 1, + "value": "Ideogram4ModularPipeline" + }, + "Krea2ModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Krea 2 (Contract only)", + "schemaVersion": 1, + "value": "Krea2ModularPipeline" + }, + "Krea2TurboModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Krea 2 Turbo (Contract only)", + "schemaVersion": 1, + "value": "Krea2TurboModularPipeline" + }, + "LTX25ModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "LTX-2.5 (Contract only)", + "schemaVersion": 1, + "value": "LTX25ModularPipeline" + }, + "MiniMaxH3ModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "MiniMax H3", + "schemaVersion": 1, + "value": "MiniMaxH3ModularPipeline" + }, + "MiniMaxMusic3ModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "MiniMax Music 3", + "schemaVersion": 1, + "value": "MiniMaxMusic3ModularPipeline" + }, + "QwenImageEditModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Qwen-Image-Edit", + "schemaVersion": 1, + "value": "QwenImageEditModularPipeline" + }, + "QwenImageEditPlusModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Qwen-Image-Edit-2511", + "schemaVersion": 1, + "value": "QwenImageEditPlusModularPipeline" + }, + "QwenImageLayeredModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Qwen-Image-Layered", + "schemaVersion": 1, + "value": "QwenImageLayeredModularPipeline" + }, + "QwenImageModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Qwen-Image-2512", + "schemaVersion": 1, + "value": "QwenImageModularPipeline" + }, + "StableDiffusion3ModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Stable Diffusion 3 (Contract only)", + "schemaVersion": 1, + "value": "StableDiffusion3ModularPipeline" + }, + "StableDiffusionXLModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Stable Diffusion XL", + "schemaVersion": 1, + "value": "StableDiffusionXLModularPipeline" + }, + "WanAnimate2DistilledModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Wan Animate 2 Distilled", + "schemaVersion": 1, + "value": "WanAnimate2DistilledModularPipeline" + }, + "WanAnimate2ModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Wan Animate 2", + "schemaVersion": 1, + "value": "WanAnimate2ModularPipeline" + }, + "WanImage2VideoModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "WAN2 I2V", + "schemaVersion": 1, + "value": "WanImage2VideoModularPipeline" + }, + "WanModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "WAN2 T2V", + "schemaVersion": 1, + "value": "WanModularPipeline" + }, + "ZImageModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Z-Image", + "schemaVersion": 1, + "value": "ZImageModularPipeline" + } + }, + "type": "string", + "value": "Flux3ModularPipeline" + }, + "modiff_pipeline_identity": { + "hidden": true, + "label": "Custom Pipeline Identity", + "type": "object", + "value": null + }, + "offload_mode": { + "default": "model_cpu", + "label": "Offload Mode", + "options": [ + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "auto_cpu", + "schemaVersion": 1, + "value": "auto_cpu" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "none", + "schemaVersion": 1, + "value": "none" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "model_cpu", + "schemaVersion": 1, + "value": "model_cpu" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "group_cpu", + "schemaVersion": 1, + "value": "group_cpu" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "group_disk", + "schemaVersion": 1, + "value": "group_disk" + } + ], + "type": "string", + "value": "model_cpu" + }, + "pipeline_components": { + "connectionRole": "pipeline_components", + "display": "output", + "hidden": false, + "label": "Pipeline Components", + "signal": { + "direction": "output", + "origin": "modiff_pipeline_identity", + "value": "Flux3ModularPipeline" + }, + "type": "diffusers_modular_pipeline_components" + }, + "quant_config": { "display": "input", "label": "Quant Config", "type": "quant_config" }, + "refresh_pipeline_identity_button": { + "display": "ui_button", + "hidden": true, + "label": "Review and Refresh Custom Contract", + "onChange": "refresh_pipeline_identity", + "value": false + }, + "repo_id": { + "display": "modelselect", + "fieldOptions": { + "filter": { "hub": { "className": ["Flux3ModularPipeline"] } }, + "noValidation": true, + "sources": ["hub", "local"] + }, + "label": "Repository ID", + "onChange": "refresh_pipeline_identity", + "type": "string", + "value": { "source": "hub", "value": "black-forest-labs/flux-3-image-klein-base" } + }, + "reviewed_variant": { + "description": "Select an immutable, reviewed checkpoint for this exact Modular Diffusers pipeline family. Changing it does not replace the workflow graph or reset its parameters.", + "fieldOptions": { "controlTier": "essential" }, + "hidden": true, + "label": "Model", + "options": [ + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "black-forest-labs/flux-3-image-klein-base", + "schemaVersion": 1, + "value": "black-forest-labs/flux-3-image-klein-base" + } + ], + "type": "string", + "value": "black-forest-labs/flux-3-image-klein-base" + }, + "revision": { + "description": "Required exact 40-character commit hash for Hub custom contracts.", + "label": "Revision", + "onChange": "refresh_pipeline_identity", + "type": "string", + "value": "1469d27cfb9bb1bd81d3a93f5a023b39dbf136e4" + }, + "scheduler": { + "connectionRole": "scheduler", + "display": "output", + "hidden": false, + "label": "Scheduler", + "signal": { + "direction": "output", + "origin": "modiff_pipeline_identity", + "value": "Flux3ModularPipeline" + }, + "type": "diffusers_auto_model" + }, + "text_encoders": { + "connectionRole": "text_encoders", + "display": "output", + "hidden": false, + "label": "Text Encoders", + "signal": { + "direction": "output", + "origin": "modiff_pipeline_identity", + "value": "Flux3ModularPipeline" + }, + "type": "diffusers_auto_models" + }, + "trust_remote_code": { + "description": "Repository code execution is disabled; keep this off for contract preview.", + "label": "Trust Remote Code", + "onChange": "refresh_pipeline_identity", + "type": "boolean", + "value": false + }, + "unet": { "display": "input", "hidden": false, "label": "Denoise Model", "type": "diffusers_auto_model" }, + "unet_out": { + "connectionRole": "denoiser", + "display": "output", + "hidden": false, + "label": "Denoise Model", + "signal": { + "direction": "output", + "origin": "modiff_pipeline_identity", + "value": "Flux3ModularPipeline" + }, + "type": "diffusers_auto_model" + }, + "vae": { "display": "input", "hidden": false, "label": "VAE", "type": "diffusers_auto_model" }, + "vae_out": { + "connectionRole": "vae", + "display": "output", + "hidden": false, + "label": "VAE", + "signal": { + "direction": "output", + "origin": "modiff_pipeline_identity", + "value": "Flux3ModularPipeline" + }, + "type": "diffusers_auto_model" + }, + "vae_slicing": { + "default": null, + "description": "An unset policy preserves the native VAE configuration; templates may bind an explicit boolean.", + "hidden": true, + "label": "VAE Slicing", + "type": "boolean" + }, + "vae_tiling": { + "default": null, + "description": "An unset policy preserves the native VAE configuration; templates may bind an explicit boolean.", + "hidden": true, + "label": "VAE Tiling", + "type": "boolean" + }, + "weight_format": { + "default": "native", + "description": "Select a backend-declared immutable component format. Missing reviewed files must be installed through Model Manager.", + "fieldOptions": { "controlTier": "advanced" }, + "hidden": false, + "label": "Weight Format", + "options": [ + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "native", + "schemaVersion": 1, + "value": "native" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "fp8r", + "schemaVersion": 1, + "value": "fp8r" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "nvfp4", + "schemaVersion": 1, + "value": "nvfp4" + } + ], + "type": "string" + }, + "weight_loading_mode": { + "default": "cpu", + "description": "Load weights on CPU or CUDA before disk offload. CUDA loading needs room for a complete component and is available only for supported models.", + "fieldOptions": { "controlTier": "advanced" }, + "label": "Weight Loading", + "options": [ + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "cpu", + "schemaVersion": 1, + "value": "cpu" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "cuda", + "schemaVersion": 1, + "value": "cuda" + } + ], + "type": "string" + }, + "workflow_id": { + "description": "Exact reviewed component partition selected by a first-party Cluster Node.", + "hidden": true, + "label": "Reviewed Workflow", + "type": "string", + "value": "text2image" + } + }, + "resizable": true, + "skipParamsCheck": true, + "style": {}, + "time": [0, 0, 0], + "type": "custom" + }, + "operation": { + "binding": { "pipelineClass": "Flux3ModularPipeline", "values": { "model_type": "Flux3ModularPipeline" } }, + "blockName": null, + "decomposition": "loader", + "nodeKey": "modules.ModularDiffusers.ModelsLoader", + "nodeType": "loader", + "operationId": "diffusion.load_models", + "pipelineClass": "Flux3ModularPipeline", + "ports": [ + { + "direction": "input", + "hidden": false, + "name": "model_type", + "required": false, + "roles": ["value"], + "semanticName": "model_type", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": false, + "name": "repo_id", + "required": false, + "roles": ["value"], + "semanticName": "repo_id", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": true, + "name": "reviewed_variant", + "required": false, + "roles": ["value"], + "semanticName": "reviewed_variant", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": false, + "name": "device", + "required": false, + "roles": ["value"], + "semanticName": "device", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": false, + "name": "attention_backend", + "required": false, + "roles": ["value"], + "semanticName": "attention_backend", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": true, + "name": "vae_slicing", + "required": false, + "roles": ["value"], + "semanticName": "vae_slicing", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["boolean"] + }, + { + "direction": "input", + "hidden": true, + "name": "vae_tiling", + "required": false, + "roles": ["value"], + "semanticName": "vae_tiling", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["boolean"] + }, + { + "direction": "input", + "hidden": true, + "name": "inpaint_compatibility", + "required": false, + "roles": ["value"], + "semanticName": "inpaint_compatibility", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": false, + "name": "trust_remote_code", + "required": false, + "roles": ["value"], + "semanticName": "trust_remote_code", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["boolean"] + }, + { + "direction": "input", + "hidden": false, + "name": "revision", + "required": false, + "roles": ["value"], + "semanticName": "revision", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": true, + "name": "workflow_id", + "required": false, + "roles": ["value"], + "semanticName": "workflow_id", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": true, + "name": "modiff_pipeline_identity", + "required": false, + "roles": ["value"], + "semanticName": "modiff_pipeline_identity", + "semantics": { + "kind": "opaque", + "members": [], + "owner": "none", + "scope": "Flux3ModularPipeline", + "state": null + }, + "types": ["object"] + }, + { + "direction": "input", + "hidden": false, + "name": "auto_offload", + "required": false, + "roles": ["value"], + "semanticName": "auto_offload", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["boolean"] + }, + { + "direction": "input", + "hidden": false, + "name": "offload_mode", + "required": false, + "roles": ["value"], + "semanticName": "offload_mode", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": false, + "name": "weight_loading_mode", + "required": false, + "roles": ["value"], + "semanticName": "weight_loading_mode", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": true, + "name": "weight_format", + "required": false, + "roles": ["value"], + "semanticName": "weight_format", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": false, + "name": "unet", + "required": false, + "roles": ["component"], + "semanticName": "unet", + "semantics": { + "kind": "component", + "members": [ + { + "name": "transformer", + "type": "diffusers.models.transformers.transformer_flux3.Flux3Transformer2DModel" + } + ], + "owner": "same_loader", + "scope": "Flux3ModularPipeline", + "state": null + }, + "types": ["diffusers_auto_model"] + }, + { + "direction": "input", + "hidden": false, + "name": "vae", + "required": false, + "roles": ["component"], + "semanticName": "vae", + "semantics": { + "kind": "component", + "members": [ + { "name": "vae", "type": "diffusers.models.autoencoders.autoencoder_kl_flux2.AutoencoderKLFlux2" } + ], + "owner": "same_loader", + "scope": "Flux3ModularPipeline", + "state": null + }, + "types": ["diffusers_auto_model"] + }, + { + "direction": "input", + "hidden": true, + "name": "controlnet", + "required": false, + "roles": ["component"], + "semanticName": "controlnet", + "semantics": { + "kind": "component", + "members": [], + "owner": "same_loader", + "scope": "Flux3ModularPipeline", + "state": null + }, + "types": ["diffusers_auto_model"] + }, + { + "direction": "input", + "hidden": false, + "name": "lora_list", + "required": false, + "roles": ["value"], + "semanticName": "lora_list", + "semantics": { + "kind": "opaque", + "members": [], + "owner": "none", + "scope": "Flux3ModularPipeline", + "state": null + }, + "types": ["custom_lora"] + }, + { + "direction": "output", + "hidden": false, + "name": "text_encoders", + "required": false, + "roles": ["component"], + "semanticName": "text_encoders", + "semantics": { + "kind": "component", + "members": [ + { + "name": "text_encoder", + "type": "transformers.models.qwen3_vl.modeling_qwen3_vl.Qwen3VLForConditionalGeneration" + }, + { "name": "tokenizer", "type": "transformers.models.auto.processing_auto.AutoProcessor" } + ], + "owner": "same_loader", + "scope": "Flux3ModularPipeline", + "state": null + }, + "types": ["diffusers_auto_models"] + }, + { + "direction": "output", + "hidden": false, + "name": "unet_out", + "required": false, + "roles": ["component"], + "semanticName": "unet_out", + "semantics": { + "kind": "component", + "members": [ + { + "name": "transformer", + "type": "diffusers.models.transformers.transformer_flux3.Flux3Transformer2DModel" + } + ], + "owner": "same_loader", + "scope": "Flux3ModularPipeline", + "state": null + }, + "types": ["diffusers_auto_model"] + }, + { + "direction": "output", + "hidden": false, + "name": "vae_out", + "required": false, + "roles": ["component"], + "semanticName": "vae_out", + "semantics": { + "kind": "component", + "members": [ + { "name": "vae", "type": "diffusers.models.autoencoders.autoencoder_kl_flux2.AutoencoderKLFlux2" } + ], + "owner": "same_loader", + "scope": "Flux3ModularPipeline", + "state": null + }, + "types": ["diffusers_auto_model"] + }, + { + "direction": "output", + "hidden": false, + "name": "scheduler", + "required": false, + "roles": ["component"], + "semanticName": "scheduler", + "semantics": { + "kind": "component", + "members": [ + { + "name": "scheduler", + "type": "diffusers.schedulers.scheduling_flow_match_euler_discrete.FlowMatchEulerDiscreteScheduler" + } + ], + "owner": "same_loader", + "scope": "Flux3ModularPipeline", + "state": null + }, + "types": ["diffusers_auto_model"] + }, + { + "direction": "output", + "hidden": true, + "name": "image_encoder", + "required": false, + "roles": ["component"], + "semanticName": "image_encoder", + "semantics": { + "kind": "component", + "members": [], + "owner": "same_loader", + "scope": "Flux3ModularPipeline", + "state": null + }, + "types": ["diffusers_auto_model"] + }, + { + "direction": "output", + "hidden": false, + "name": "pipeline_components", + "required": false, + "roles": ["component"], + "semanticName": "pipeline_components", + "semantics": { + "kind": "component", + "members": [ + { "name": "guider", "type": "diffusers.guiders.classifier_free_guidance.ClassifierFreeGuidance" }, + { + "name": "image_processor", + "type": "diffusers.modular_pipelines.flux3.image_processor.Flux3ImageProcessor" + }, + { + "name": "scheduler", + "type": "diffusers.schedulers.scheduling_flow_match_euler_discrete.FlowMatchEulerDiscreteScheduler" + }, + { + "name": "text_encoder", + "type": "transformers.models.qwen3_vl.modeling_qwen3_vl.Qwen3VLForConditionalGeneration" + }, + { "name": "tokenizer", "type": "transformers.models.auto.processing_auto.AutoProcessor" }, + { + "name": "transformer", + "type": "diffusers.models.transformers.transformer_flux3.Flux3Transformer2DModel" + }, + { "name": "vae", "type": "diffusers.models.autoencoders.autoencoder_kl_flux2.AutoencoderKLFlux2" } + ], + "owner": "same_loader", + "scope": "Flux3ModularPipeline", + "state": null + }, + "types": ["diffusers_modular_pipeline_components"] + }, + { + "direction": "input", + "hidden": false, + "name": "quant_config", + "required": false, + "roles": ["value"], + "semanticName": "quant_config", + "semantics": { + "kind": "opaque", + "members": [], + "owner": "none", + "scope": "Flux3ModularPipeline", + "state": null + }, + "types": ["quant_config"] + } + ], + "support": "declared", + "task": "text_to_image", + "workflowId": "text2image" + } + }, + { + "node": { + "action": "Guider", + "cache": false, + "category": "sampler", + "description": "", + "label": "Guidance", + "memory": [0, 0, 0], + "module": "modules.ModularDiffusers", + "params": { + "enabled": { "label": "Enabled", "type": "boolean", "value": true }, + "guidance_rescale": { + "display": "slider", + "label": "Guidance Rescale", + "max": 10.0, + "min": 0.0, + "step": 0.1, + "type": "float", + "value": 0.0 + }, + "guidance_scale": { + "display": "slider", + "label": "Guidance Scale", + "max": 20.0, + "min": 1.0, + "step": 0.1, + "type": "float", + "value": 3.5 + }, + "guider": { + "fieldOptions": { "loading": true }, + "label": "Guider", + "onChange": [ + "updateNode", + { + "AutoGuidance": ["layers_config"], + "PerturbedAttentionGuidance": ["layers_config"], + "SkipLayerGuidance": ["layers_config"], + "SmoothedEnergyGuidance": ["layers_config"] + } + ], + "options": [ + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "ClassifierFreeGuidance", + "schemaVersion": 1, + "value": "ClassifierFreeGuidance" + } + ], + "type": "string", + "value": "ClassifierFreeGuidance" + }, + "guider_out": { + "display": "output", + "label": "Guider", + "onSignal": [ + { "action": "value", "target": "model_type" }, + { + "action": "value", + "data": { + "Flux2KleinBaseModularPipeline": ["ClassifierFreeGuidance"], + "Flux3ModularPipeline": ["ClassifierFreeGuidance"], + "FluxKontextModularPipeline": ["ClassifierFreeGuidance"], + "FluxModularPipeline": ["ClassifierFreeGuidance"], + "QwenImageEditModularPipeline": [ + "ClassifierFreeGuidance", + "SkipLayerGuidance", + "AdaptiveProjectedGuidance", + "AdaptiveProjectedMixGuidance", + "MagnitudeAwareGuidance", + "ClassifierFreeZeroStarGuidance", + "AutoGuidance", + "SmoothedEnergyGuidance", + "PerturbedAttentionGuidance", + "TangentialClassifierFreeGuidance", + "FrequencyDecoupledGuidance" + ], + "QwenImageEditPlusModularPipeline": [ + "ClassifierFreeGuidance", + "SkipLayerGuidance", + "AdaptiveProjectedGuidance", + "AdaptiveProjectedMixGuidance", + "MagnitudeAwareGuidance", + "ClassifierFreeZeroStarGuidance", + "AutoGuidance", + "SmoothedEnergyGuidance", + "PerturbedAttentionGuidance", + "TangentialClassifierFreeGuidance", + "FrequencyDecoupledGuidance" + ], + "QwenImageLayeredModularPipeline": [ + "ClassifierFreeGuidance", + "AdaptiveProjectedGuidance", + "AdaptiveProjectedMixGuidance", + "MagnitudeAwareGuidance", + "ClassifierFreeZeroStarGuidance", + "TangentialClassifierFreeGuidance", + "FrequencyDecoupledGuidance" + ], + "QwenImageModularPipeline": [ + "ClassifierFreeGuidance", + "SkipLayerGuidance", + "AdaptiveProjectedGuidance", + "AdaptiveProjectedMixGuidance", + "MagnitudeAwareGuidance", + "ClassifierFreeZeroStarGuidance", + "AutoGuidance", + "SmoothedEnergyGuidance", + "PerturbedAttentionGuidance", + "TangentialClassifierFreeGuidance", + "FrequencyDecoupledGuidance" + ], + "StableDiffusionXLModularPipeline": [ + "ClassifierFreeGuidance", + "SkipLayerGuidance", + "AdaptiveProjectedGuidance", + "AdaptiveProjectedMixGuidance", + "MagnitudeAwareGuidance", + "ClassifierFreeZeroStarGuidance", + "AutoGuidance", + "SmoothedEnergyGuidance", + "PerturbedAttentionGuidance", + "TangentialClassifierFreeGuidance", + "FrequencyDecoupledGuidance" + ], + "WanImage2VideoModularPipeline": [ + "ClassifierFreeGuidance", + "AdaptiveProjectedGuidance", + "AdaptiveProjectedMixGuidance", + "MagnitudeAwareGuidance", + "ClassifierFreeZeroStarGuidance", + "TangentialClassifierFreeGuidance", + "FrequencyDecoupledGuidance" + ], + "WanModularPipeline": [ + "ClassifierFreeGuidance", + "AdaptiveProjectedGuidance", + "AdaptiveProjectedMixGuidance", + "MagnitudeAwareGuidance", + "ClassifierFreeZeroStarGuidance", + "TangentialClassifierFreeGuidance", + "FrequencyDecoupledGuidance" + ], + "ZImageModularPipeline": [ + "ClassifierFreeGuidance", + "AdaptiveProjectedGuidance", + "AdaptiveProjectedMixGuidance", + "MagnitudeAwareGuidance", + "ClassifierFreeZeroStarGuidance", + "TangentialClassifierFreeGuidance", + "FrequencyDecoupledGuidance" + ] + }, + "prop": "options", + "target": "guider" + }, + { "action": "signal", "target": "layers_config" } + ], + "signalCompatibility": { + "values": { + "Flux2KleinBaseModularPipeline": ["ClassifierFreeGuidance"], + "Flux3ModularPipeline": ["ClassifierFreeGuidance"], + "FluxKontextModularPipeline": ["ClassifierFreeGuidance"], + "FluxModularPipeline": ["ClassifierFreeGuidance"], + "QwenImageEditModularPipeline": [ + "ClassifierFreeGuidance", + "SkipLayerGuidance", + "AdaptiveProjectedGuidance", + "AdaptiveProjectedMixGuidance", + "MagnitudeAwareGuidance", + "ClassifierFreeZeroStarGuidance", + "AutoGuidance", + "SmoothedEnergyGuidance", + "PerturbedAttentionGuidance", + "TangentialClassifierFreeGuidance", + "FrequencyDecoupledGuidance" + ], + "QwenImageEditPlusModularPipeline": [ + "ClassifierFreeGuidance", + "SkipLayerGuidance", + "AdaptiveProjectedGuidance", + "AdaptiveProjectedMixGuidance", + "MagnitudeAwareGuidance", + "ClassifierFreeZeroStarGuidance", + "AutoGuidance", + "SmoothedEnergyGuidance", + "PerturbedAttentionGuidance", + "TangentialClassifierFreeGuidance", + "FrequencyDecoupledGuidance" + ], + "QwenImageLayeredModularPipeline": [ + "ClassifierFreeGuidance", + "AdaptiveProjectedGuidance", + "AdaptiveProjectedMixGuidance", + "MagnitudeAwareGuidance", + "ClassifierFreeZeroStarGuidance", + "TangentialClassifierFreeGuidance", + "FrequencyDecoupledGuidance" + ], + "QwenImageModularPipeline": [ + "ClassifierFreeGuidance", + "SkipLayerGuidance", + "AdaptiveProjectedGuidance", + "AdaptiveProjectedMixGuidance", + "MagnitudeAwareGuidance", + "ClassifierFreeZeroStarGuidance", + "AutoGuidance", + "SmoothedEnergyGuidance", + "PerturbedAttentionGuidance", + "TangentialClassifierFreeGuidance", + "FrequencyDecoupledGuidance" + ], + "StableDiffusionXLModularPipeline": [ + "ClassifierFreeGuidance", + "SkipLayerGuidance", + "AdaptiveProjectedGuidance", + "AdaptiveProjectedMixGuidance", + "MagnitudeAwareGuidance", + "ClassifierFreeZeroStarGuidance", + "AutoGuidance", + "SmoothedEnergyGuidance", + "PerturbedAttentionGuidance", + "TangentialClassifierFreeGuidance", + "FrequencyDecoupledGuidance" + ], + "WanImage2VideoModularPipeline": [ + "ClassifierFreeGuidance", + "AdaptiveProjectedGuidance", + "AdaptiveProjectedMixGuidance", + "MagnitudeAwareGuidance", + "ClassifierFreeZeroStarGuidance", + "TangentialClassifierFreeGuidance", + "FrequencyDecoupledGuidance" + ], + "WanModularPipeline": [ + "ClassifierFreeGuidance", + "AdaptiveProjectedGuidance", + "AdaptiveProjectedMixGuidance", + "MagnitudeAwareGuidance", + "ClassifierFreeZeroStarGuidance", + "TangentialClassifierFreeGuidance", + "FrequencyDecoupledGuidance" + ], + "ZImageModularPipeline": [ + "ClassifierFreeGuidance", + "AdaptiveProjectedGuidance", + "AdaptiveProjectedMixGuidance", + "MagnitudeAwareGuidance", + "ClassifierFreeZeroStarGuidance", + "TangentialClassifierFreeGuidance", + "FrequencyDecoupledGuidance" + ] + } + }, + "type": "custom_guider" + }, + "layers_config": { "display": "input", "label": "Layers", "type": "layers_config" }, + "model_type": { "default": "", "hidden": true, "type": "string", "value": "Flux3ModularPipeline" }, + "start": { + "display": "slider", + "label": "Start", + "max": 1.0, + "min": 0.0, + "step": 0.01, + "type": "float", + "value": 0.0 + }, + "stop": { + "display": "slider", + "label": "Stop", + "max": 1.0, + "min": 0.01, + "step": 0.01, + "type": "float", + "value": 1.0 + }, + "use_original_formulation": { "label": "Original Formulation", "type": "boolean", "value": false } + }, + "resizable": true, + "skipParamsCheck": true, + "style": {}, + "time": [0, 0, 0], + "type": "custom" + }, + "operation": { + "binding": { "pipelineClass": "Flux3ModularPipeline", "values": { "model_type": "Flux3ModularPipeline" } }, + "blockName": null, + "decomposition": "bundle", + "nodeKey": "modules.ModularDiffusers.Guider", + "nodeType": "guidance", + "operationId": "diffusion.guidance", + "pipelineClass": "Flux3ModularPipeline", + "ports": [ + { + "direction": "input", + "hidden": true, + "name": "model_type", + "required": false, + "roles": ["value"], + "semanticName": "model_type", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": false, + "name": "guider", + "required": false, + "roles": ["value"], + "semanticName": "guider", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": false, + "name": "guidance_scale", + "required": false, + "roles": ["value"], + "semanticName": "guidance_scale", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["float"] + }, + { + "direction": "input", + "hidden": false, + "name": "guidance_rescale", + "required": false, + "roles": ["value"], + "semanticName": "guidance_rescale", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["float"] + }, + { + "direction": "input", + "hidden": false, + "name": "use_original_formulation", + "required": false, + "roles": ["value"], + "semanticName": "use_original_formulation", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["boolean"] + }, + { + "direction": "input", + "hidden": false, + "name": "enabled", + "required": false, + "roles": ["value"], + "semanticName": "enabled", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["boolean"] + }, + { + "direction": "input", + "hidden": false, + "name": "start", + "required": false, + "roles": ["value"], + "semanticName": "start", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["float"] + }, + { + "direction": "input", + "hidden": false, + "name": "stop", + "required": false, + "roles": ["value"], + "semanticName": "stop", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["float"] + }, + { + "direction": "output", + "hidden": false, + "name": "guider_out", + "required": false, + "roles": ["component"], + "semanticName": "guider_out", + "semantics": { + "kind": "component", + "members": [], + "owner": "same_loader", + "scope": "Flux3ModularPipeline", + "state": null + }, + "types": ["custom_guider"] + }, + { + "direction": "input", + "hidden": false, + "name": "layers_config", + "required": false, + "roles": ["value"], + "semanticName": "layers_config", + "semantics": { + "kind": "opaque", + "members": [], + "owner": "none", + "scope": "Flux3ModularPipeline", + "state": null + }, + "types": ["layers_config"] + } + ], + "support": "declared", + "task": "text_to_image", + "workflowId": "text2image" + } + }, + { + "node": { + "action": "EncodePrompt", + "cache": false, + "category": "embedding", + "description": "", + "label": "Encode Prompt", + "memory": [0, 0, 0], + "module": "modules.ModularDiffusers", + "params": { + "doc": { "display": "output", "label": "Doc", "type": "string" }, + "embeddings": { "display": "output", "label": "Text Embeddings", "type": "embeddings" }, + "guider": { + "description": "Shared Diffusers guidance used by prompt encoding and denoising when the selected pipeline supports it.", + "display": "input", + "hidden": true, + "label": "Guider", + "type": "custom_guider" + }, + "layout_conditioning": { + "default": null, + "display": "layout", + "fieldOptions": { + "layoutConditioning": { + "schemaVersion": 2, + "sourceRegions": false, + "supportsBoundSourceRegions": true + } + }, + "label": "Layout Conditioning", + "type": "layout_conditioning" + }, + "layout_reference_summary": { + "description": "Display-only ordered reference identities and actual preprocessing sizes from the current encoder cache.", + "display": "output", + "hidden": true, + "label": "Bound Reference Summary", + "type": "string" + }, + "max_sequence_length": { + "default": 8192, + "label": "Maximum Sequence Length", + "max": 8192, + "min": 1, + "step": 1, + "type": "int" + }, + "negative_prompt": { "default": "", "display": "textarea", "label": "Negative Prompt", "type": "string" }, + "prompt": { + "default": "", + "display": "textarea", + "fieldOptions": { "exampleAttribution": "MoDiff task example" }, + "label": "Prompt *", + "type": "string", + "value": "A red ceramic teapot on a wooden table beside a window, soft morning light, detailed photograph." + }, + "prompt_input": { + "description": "Optional connected prompt. When connected, this replaces the inline Prompt value.", + "display": "input", + "label": "Prompt Input", + "type": "string" + }, + "reference_binding": { + "default": null, + "display": "input", + "fieldOptions": { "referenceBinding": { "maxReferences": 10, "schemaVersion": 1 } }, + "label": "Reference Binding", + "type": "reference_conditioning" + }, + "text_encoder_out_layers": { + "default": [4, 8, 12, 16, 20, 24, 28, 32], + "display": "select", + "fieldOptions": { "multiple": true, "tupleLength": 8, "tupleValue": true }, + "label": "Text Encoder Layers", + "options": [ + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "0", + "schemaVersion": 1, + "value": "0" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "1", + "schemaVersion": 1, + "value": "1" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "2", + "schemaVersion": 1, + "value": "2" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "3", + "schemaVersion": 1, + "value": "3" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "4", + "schemaVersion": 1, + "value": "4" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "5", + "schemaVersion": 1, + "value": "5" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "6", + "schemaVersion": 1, + "value": "6" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "7", + "schemaVersion": 1, + "value": "7" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "8", + "schemaVersion": 1, + "value": "8" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "9", + "schemaVersion": 1, + "value": "9" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "10", + "schemaVersion": 1, + "value": "10" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "11", + "schemaVersion": 1, + "value": "11" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "12", + "schemaVersion": 1, + "value": "12" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "13", + "schemaVersion": 1, + "value": "13" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "14", + "schemaVersion": 1, + "value": "14" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "15", + "schemaVersion": 1, + "value": "15" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "16", + "schemaVersion": 1, + "value": "16" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "17", + "schemaVersion": 1, + "value": "17" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "18", + "schemaVersion": 1, + "value": "18" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "19", + "schemaVersion": 1, + "value": "19" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "20", + "schemaVersion": 1, + "value": "20" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "21", + "schemaVersion": 1, + "value": "21" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "22", + "schemaVersion": 1, + "value": "22" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "23", + "schemaVersion": 1, + "value": "23" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "24", + "schemaVersion": 1, + "value": "24" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "25", + "schemaVersion": 1, + "value": "25" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "26", + "schemaVersion": 1, + "value": "26" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "27", + "schemaVersion": 1, + "value": "27" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "28", + "schemaVersion": 1, + "value": "28" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "29", + "schemaVersion": 1, + "value": "29" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "30", + "schemaVersion": 1, + "value": "30" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "31", + "schemaVersion": 1, + "value": "31" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "32", + "schemaVersion": 1, + "value": "32" + } + ], + "type": "int" + }, + "text_encoders": { + "display": "input", + "label": "Text Encoders *", + "onSignal": "update_node", + "required": true, + "signalCompatibility": { "role": "text_encoders" }, + "type": "diffusers_auto_models" + } + }, + "resizable": true, + "skipParamsCheck": true, + "style": {}, + "time": [0, 0, 0], + "type": "custom" + }, + "operation": { + "binding": { "pipelineClass": "Flux3ModularPipeline", "values": {} }, + "blockName": "text_encoder", + "decomposition": "block", + "nodeKey": "modules.ModularDiffusers.EncodePrompt", + "nodeType": "text_encoder", + "operationId": "diffusion.encode_prompt", + "pipelineClass": "Flux3ModularPipeline", + "ports": [ + { + "direction": "input", + "hidden": false, + "name": "prompt", + "required": true, + "roles": ["value"], + "semanticName": "prompt", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": false, + "name": "negative_prompt", + "required": false, + "roles": ["value"], + "semanticName": "negative_prompt", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": false, + "name": "max_sequence_length", + "required": false, + "roles": ["value"], + "semanticName": "max_sequence_length", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["int"] + }, + { + "direction": "input", + "hidden": false, + "name": "text_encoder_out_layers", + "required": false, + "roles": ["value"], + "semanticName": "text_encoder_out_layers", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["int"] + }, + { + "direction": "input", + "hidden": false, + "name": "text_encoders", + "required": true, + "roles": ["component"], + "semanticName": "text_encoders", + "semantics": { + "kind": "component", + "members": [ + { + "name": "text_encoder", + "type": "transformers.models.qwen3_vl.modeling_qwen3_vl.Qwen3VLForConditionalGeneration" + }, + { "name": "tokenizer", "type": "transformers.models.auto.processing_auto.AutoProcessor" } + ], + "owner": "same_loader", + "scope": "Flux3ModularPipeline", + "state": null + }, + "types": ["diffusers_auto_models"] + }, + { + "direction": "output", + "hidden": false, + "name": "embeddings", + "required": false, + "roles": ["value"], + "semanticName": "embeddings", + "semantics": { + "kind": "conditioning", + "members": [], + "owner": "same_loader", + "scope": "Flux3ModularPipeline", + "state": null + }, + "types": ["embeddings"] + }, + { + "direction": "output", + "hidden": false, + "name": "doc", + "required": false, + "roles": ["value"], + "semanticName": "doc", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": false, + "name": "layout_conditioning", + "required": false, + "roles": ["value"], + "semanticName": "layout_conditioning", + "semantics": { + "kind": "opaque", + "members": [], + "owner": "none", + "scope": "Flux3ModularPipeline", + "state": null + }, + "types": ["layout_conditioning"] + }, + { + "direction": "input", + "hidden": false, + "name": "reference_binding", + "required": false, + "roles": ["value"], + "semanticName": "reference_binding", + "semantics": { + "kind": "opaque", + "members": [], + "owner": "none", + "scope": "Flux3ModularPipeline", + "state": null + }, + "types": ["reference_conditioning"] + }, + { + "direction": "input", + "hidden": false, + "name": "prompt_input", + "required": false, + "roles": ["value"], + "semanticName": "prompt", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + } + ], + "support": "declared", + "task": "text_to_image", + "workflowId": "text2image" + } + }, + { + "node": { + "action": "Denoise", + "cache": false, + "category": "sampler", + "description": "", + "label": "Denoise", + "memory": [0, 0, 0], + "module": "modules.ModularDiffusers", + "params": { + "doc": { "display": "output", "label": "Doc", "type": "string" }, + "embeddings": { "display": "input", "label": "Text Embeddings *", "type": "embeddings" }, + "guider": { "display": "input", "label": "Guider", "type": "custom_guider" }, + "height": { "default": 1024, "label": "Height", "min": 64, "step": 16, "type": "int", "value": 1024 }, + "image_cond_latents": { "display": "input", "label": "Reference Latents", "type": "latents" }, + "latents": { "display": "output", "label": "Latents", "type": "latents" }, + "num_images_per_prompt": { + "default": 1, + "label": "Images Per Prompt", + "max": 8, + "min": 1, + "step": 1, + "type": "int" + }, + "num_inference_steps": { + "default": 50, + "display": "slider", + "label": "Steps", + "max": 100, + "min": 1, + "type": "int", + "value": 50 + }, + "reference_binding": { + "default": null, + "display": "input", + "fieldOptions": { "referenceBinding": { "maxReferences": 10, "schemaVersion": 1 } }, + "label": "Reference Binding", + "type": "reference_conditioning" + }, + "scheduler": { + "display": "input", + "label": "Scheduler *", + "signalCompatibility": { "role": "scheduler" }, + "type": "diffusers_auto_model" + }, + "seed": { + "default": 0, + "display": "random", + "label": "Seed", + "max": 4294967295, + "min": 0, + "type": "int" + }, + "unet": { + "display": "input", + "label": "Denoise Model *", + "onSignal": [ + "update_node", + { "action": "signal", "target": "guider" }, + { "action": "signal", "target": "controlnet_bundle" } + ], + "required": true, + "signalCompatibility": { "role": "denoiser" }, + "type": "diffusers_auto_model" + }, + "width": { "default": 1024, "label": "Width", "min": 64, "step": 16, "type": "int", "value": 1024 } + }, + "resizable": true, + "skipParamsCheck": true, + "style": {}, + "time": [0, 0, 0], + "type": "custom" + }, + "operation": { + "binding": { "pipelineClass": "Flux3ModularPipeline", "values": {} }, + "blockName": "denoise", + "decomposition": "block", + "nodeKey": "modules.ModularDiffusers.Denoise", + "nodeType": "denoise", + "operationId": "diffusion.denoise", + "pipelineClass": "Flux3ModularPipeline", + "ports": [ + { + "direction": "input", + "hidden": false, + "name": "embeddings", + "required": true, + "roles": ["value"], + "semanticName": "embeddings", + "semantics": { + "kind": "conditioning", + "members": [], + "owner": "same_loader", + "scope": "Flux3ModularPipeline", + "state": null + }, + "types": ["embeddings"] + }, + { + "direction": "input", + "hidden": false, + "name": "width", + "required": false, + "roles": ["value"], + "semanticName": "width", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["int"] + }, + { + "direction": "input", + "hidden": false, + "name": "height", + "required": false, + "roles": ["value"], + "semanticName": "height", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["int"] + }, + { + "direction": "input", + "hidden": false, + "name": "seed", + "required": false, + "roles": ["value"], + "semanticName": "seed", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["int"] + }, + { + "direction": "input", + "hidden": false, + "name": "num_inference_steps", + "required": false, + "roles": ["value"], + "semanticName": "num_inference_steps", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["int"] + }, + { + "direction": "input", + "hidden": false, + "name": "num_images_per_prompt", + "required": false, + "roles": ["value"], + "semanticName": "num_images_per_prompt", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["int"] + }, + { + "direction": "input", + "hidden": false, + "name": "image_cond_latents", + "required": false, + "roles": ["value"], + "semanticName": "image_cond_latents", + "semantics": { + "kind": "latents", + "members": [], + "owner": "same_loader", + "scope": "Flux3ModularPipeline", + "state": null + }, + "types": ["latents"] + }, + { + "direction": "input", + "hidden": false, + "name": "unet", + "required": true, + "roles": ["component"], + "semanticName": "unet", + "semantics": { + "kind": "component", + "members": [ + { + "name": "transformer", + "type": "diffusers.models.transformers.transformer_flux3.Flux3Transformer2DModel" + } + ], + "owner": "same_loader", + "scope": "Flux3ModularPipeline", + "state": null + }, + "types": ["diffusers_auto_model"] + }, + { + "direction": "input", + "hidden": false, + "name": "scheduler", + "required": true, + "roles": ["component"], + "semanticName": "scheduler", + "semantics": { + "kind": "component", + "members": [ + { + "name": "scheduler", + "type": "diffusers.schedulers.scheduling_flow_match_euler_discrete.FlowMatchEulerDiscreteScheduler" + } + ], + "owner": "same_loader", + "scope": "Flux3ModularPipeline", + "state": null + }, + "types": ["diffusers_auto_model"] + }, + { + "direction": "input", + "hidden": false, + "name": "guider", + "required": false, + "roles": ["component"], + "semanticName": "guider", + "semantics": { + "kind": "component", + "members": [ + { "name": "guider", "type": "diffusers.guiders.classifier_free_guidance.ClassifierFreeGuidance" } + ], + "owner": "same_loader", + "scope": "Flux3ModularPipeline", + "state": null + }, + "types": ["custom_guider"] + }, + { + "direction": "output", + "hidden": false, + "name": "latents", + "required": false, + "roles": ["value"], + "semanticName": "latents", + "semantics": { + "kind": "latents", + "members": [], + "owner": "same_loader", + "scope": "Flux3ModularPipeline", + "state": null + }, + "types": ["latents"] + }, + { + "direction": "output", + "hidden": false, + "name": "doc", + "required": false, + "roles": ["value"], + "semanticName": "doc", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": false, + "name": "reference_binding", + "required": false, + "roles": ["value"], + "semanticName": "reference_binding", + "semantics": { + "kind": "opaque", + "members": [], + "owner": "none", + "scope": "Flux3ModularPipeline", + "state": null + }, + "types": ["reference_conditioning"] + } + ], + "support": "declared", + "task": "text_to_image", + "workflowId": "text2image" + } + }, + { + "node": { + "action": "DecodeLatents", + "cache": false, + "category": "sampler", + "description": "", + "label": "Decode Latents", + "memory": [0, 0, 0], + "module": "modules.ModularDiffusers", + "params": { + "doc": { "display": "output", "label": "Doc", "type": "string" }, + "images": { "display": "output", "label": "Images", "type": "image" }, + "latents": { "display": "input", "label": "Latents *", "type": "latents" }, + "vae": { + "display": "input", + "label": "VAE *", + "onSignal": "update_node", + "signalCompatibility": { "role": "vae" }, + "type": "diffusers_auto_model" + } + }, + "resizable": true, + "skipParamsCheck": true, + "style": {}, + "time": [0, 0, 0], + "type": "custom" + }, + "operation": { + "binding": { "pipelineClass": "Flux3ModularPipeline", "values": {} }, + "blockName": "decode", + "decomposition": "block", + "nodeKey": "modules.ModularDiffusers.DecodeLatents", + "nodeType": "decoder", + "operationId": "diffusion.decode_latents", + "pipelineClass": "Flux3ModularPipeline", + "ports": [ + { + "direction": "input", + "hidden": false, + "name": "latents", + "required": true, + "roles": ["value"], + "semanticName": "latents", + "semantics": { + "kind": "latents", + "members": [], + "owner": "same_loader", + "scope": "Flux3ModularPipeline", + "state": null + }, + "types": ["latents"] + }, + { + "direction": "input", + "hidden": false, + "name": "vae", + "required": true, + "roles": ["component"], + "semanticName": "vae", + "semantics": { + "kind": "component", + "members": [ + { "name": "vae", "type": "diffusers.models.autoencoders.autoencoder_kl_flux2.AutoencoderKLFlux2" } + ], + "owner": "same_loader", + "scope": "Flux3ModularPipeline", + "state": null + }, + "types": ["diffusers_auto_model"] + }, + { + "direction": "output", + "hidden": false, + "name": "images", + "required": false, + "roles": ["value"], + "semanticName": "images", + "semantics": { "kind": "media", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["image"] + }, + { + "direction": "output", + "hidden": false, + "name": "doc", + "required": false, + "roles": ["value"], + "semanticName": "doc", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + } + ], + "support": "declared", + "task": "text_to_image", + "workflowId": "text2image" + } + } + ], + "pipelineClass": "Flux3ModularPipeline", + "requiredInputs": [{ "field": "prompt", "operationId": "diffusion.encode_prompt" }], + "schemaVersion": 1, + "sharedInputs": [], + "task": "text_to_image", + "upstreamBlocks": ["text_encoder", "denoise", "decode"], + "workflowId": "text2image" + }, + { + "authoring": { + "ancillaryOperations": [ + { + "adapter": { + "declarationSha256": "sha256:2a3d4685988b418115008bbb95fb3e948097580c0bedd2940ea3fe1e40254dc2", + "id": "transformers-prompt-enhancement-v1" + }, + "bindings": { + "output": { "field": "proposal_summary", "role": "proposal" }, + "owner": { + "layoutField": "layout_conditioning", + "promptField": "prompt", + "referenceSource": null, + "role": "prompt" + }, + "request": { + "imagesField": "images", + "layoutField": "layout_conditioning", + "promptField": "prompt", + "role": "proposal" + } + }, + "contentHash": "studio-ancillary-v1-e24dc3ad", + "edges": [["provider", "model", "proposal", "model"]], + "executionPurpose": "explicit_preview", + "fieldOverrides": [ + ["proposal", "enhancement_max_new_tokens", { "hidden": false }], + ["proposal", "max_new_tokens", { "hidden": true }] + ], + "id": "flux3-klein-base:official:text-to-image:prompt-preview-nf4:v1:preview", + "initialValues": [ + ["provider", "model_id", { "source": "hub", "value": "black-forest-labs/flux-3-image-klein-pup" }], + ["provider", "revision", "3f3edb52b2c55de0d49feab28598b68f7f8e4830"], + ["proposal", "operation", "enhance_prompt"], + ["provider", "dtype", "bfloat16"], + ["provider", "device", "cuda:0"], + ["provider", "quantization_mode", "bnb_4bit"], + ["proposal", "max_input_tokens", 4096] + ], + "parent": { + "authoringRecipeId": "flux3-klein-base:official:text-to-image:prompt-preview-nf4:v1", + "baseSpecContentHash": "studio-spec-v1-f5960f24", + "baseSpecId": "flux3-klein-base:official-provider:v1:text-to-image:v1", + "executionProfileId": "flux3-klein-base:official-provider:v1", + "pipelineClass": "Flux3ModularPipeline", + "task": "text_to_image" + }, + "roles": [ + ["provider", "modules.HuggingFaceTransformers.LoadImageTextToTextModel", -720, -400], + ["proposal", "modules.HuggingFaceTransformers.GenerateImageVideoText", -360, -400] + ], + "schemaVersion": 1, + "sourceRegions": false, + "verification": { + "adapter": { + "declarationSha256": "sha256:2a3d4685988b418115008bbb95fb3e948097580c0bedd2940ea3fe1e40254dc2", + "id": "transformers-prompt-enhancement-v1" + }, + "chatTemplateSha256": "sha256:a4aee8afcf2e0711942cf848899be66016f8d14a889ff9ede07bca099c28f715", + "modelReceipt": { + "library": "transformers", + "loader": { "modelAutoClass": "AutoModelForImageTextToText", "preprocessorAutoClass": "AutoProcessor" }, + "runtime": { + "architectures": ["Qwen3_5ForConditionalGeneration"], + "modelClass": "Qwen3_5ForConditionalGeneration", + "modelType": "qwen3_5", + "preprocessorClass": "Qwen3VLProcessor", + "transformersVersion": "5.18.0" + }, + "schemaVersion": 1, + "security": { + "hostedInference": false, + "localFilesOnly": true, + "safetensorsOnly": true, + "trustRemoteCode": false + }, + "source": { + "kind": "hub", + "repository": "black-forest-labs/flux-3-image-klein-pup", + "revision": "3f3edb52b2c55de0d49feab28598b68f7f8e4830" + }, + "task": "image-video-to-text" + }, + "quantizationRecipes": [ + { "mode": "none" }, + { + "computeDtype": "bfloat16", + "doubleQuant": true, + "mode": "bnb_4bit", + "quantType": "nf4", + "skipModules": ["lm_head", "model.visual"] + } + ], + "requestInputs": { + "maxImagePixelsField": "max_image_pixels", + "maxInputTokensField": "max_input_tokens", + "maxNewTokensField": "enhancement_max_new_tokens", + "minNewTokensField": "min_new_tokens", + "operationField": "operation", + "role": "proposal" + }, + "runtimeInputs": { + "deviceField": "device", + "dtypeField": "dtype", + "modelField": "model_id", + "quantizationField": "quantization_mode", + "revisionField": "revision", + "role": "provider" + }, + "schemaVersion": 1, + "supportedPromptModes": ["t2i", "i2i"], + "systemPromptSha256ByMode": { + "i2i": "95cec384d5b6d341caa9fb3f2c7ca45ee80c2364b3a95d4044aebf976f6dd3bf", + "i2i_bbox": "9ad10f947e401337cf155cac0518cc428159ef16f2f029f48aae2aaab8380a5e", + "t2i": "8b235a421bce2213d11ada01f5a1244443dd72303ffbb4cc9e5a0d8b0de5ab6f", + "t2i_bbox": "5f513d8ce5838732919f9e645507aa20ff373e88bf93132c768e063c9db3151f" + }, + "systemPromptsSha256": "sha256:b5da3ed8bc04ab59dbdb747930f7dbff847e868903fed8028f85ee1a4ac82fb4" + } + } + ], + "baseSpecContentHash": "studio-spec-v1-f5960f24", + "baseSpecId": "flux3-klein-base:official-provider:v1:text-to-image:v1", + "bindings": [ + ["models", "model_type", "pipelineClass"], + ["models", "repo_id", "artifact"], + ["models", "revision", "defaultRevision"], + ["models", "dtype", "dtype"], + ["models", "device", "device"], + ["models", "auto_offload", "autoOffload"], + ["models", "offload_mode", "offloadMode"], + ["models", "trust_remote_code", "false"], + ["prompt", "prompt", "prompt"], + ["prompt", "negative_prompt", "negativePrompt"], + ["denoise", "width", "width"], + ["denoise", "height", "height"], + ["denoise", "seed", "seed"], + ["denoise", "num_inference_steps", "steps"], + ["prompt", "max_sequence_length", "maxSequenceLength"], + ["models", "weight_format", "weightFormat"], + ["guider", "guider", "classifierFreeGuidance"], + ["guider", "model_type", "pipelineClass"], + ["guider", "guidance_scale", "guidanceScale"] + ], + "canonicalizationVersion": 1, + "contentHash": "studio-authoring-v1-013fbb17", + "edges": [ + ["models", "text_encoders", "prompt", "text_encoders"], + ["models", "unet_out", "denoise", "unet"], + ["models", "scheduler", "denoise", "scheduler"], + ["models", "vae_out", "decode", "vae"], + ["prompt", "embeddings", "denoise", "embeddings"], + ["denoise", "latents", "decode", "latents"], + ["decode", "images", "preview", "image"], + ["guider", "guider_out", "denoise", "guider"] + ], + "executionProfileIds": ["flux3-klein-base:official-provider:v1"], + "id": "flux3-klein-base:official:text-to-image:prompt-preview-nf4:v1", + "initialValues": [], + "roles": [ + ["models", "modules.ModularDiffusers.ModelsLoader", -720, -80], + ["prompt", "modules.ModularDiffusers.EncodePrompt", -360, -240], + ["denoise", "modules.ModularDiffusers.Denoise", 80, -80], + ["decode", "modules.ModularDiffusers.DecodeLatents", 440, -80], + ["preview", "modules.Image.Preview", 800, -80], + ["guider", "modules.ModularDiffusers.Guider", -360, 160] + ], + "schemaVersion": 1 + }, + "edges": [ + { + "source": "diffusion.load_models", + "sourceHandle": "text_encoders", + "target": "diffusion.encode_prompt", + "targetHandle": "text_encoders" + }, + { + "source": "diffusion.load_models", + "sourceHandle": "scheduler", + "target": "diffusion.denoise", + "targetHandle": "scheduler" + }, + { + "source": "diffusion.load_models", + "sourceHandle": "unet_out", + "target": "diffusion.denoise", + "targetHandle": "unet" + }, + { + "source": "diffusion.load_models", + "sourceHandle": "vae_out", + "target": "diffusion.decode_latents", + "targetHandle": "vae" + }, + { + "source": "diffusion.encode_prompt", + "sourceHandle": "embeddings", + "target": "diffusion.denoise", + "targetHandle": "embeddings" + }, + { + "source": "diffusion.denoise", + "sourceHandle": "latents", + "target": "diffusion.decode_latents", + "targetHandle": "latents" + }, + { + "source": "diffusion.guidance", + "sourceHandle": "guider_out", + "target": "diffusion.denoise", + "targetHandle": "guider" + } + ], + "nodes": [ + { + "node": { + "action": "ModelsLoader", + "cache": false, + "category": "loader", + "description": "", + "label": "Load Models", + "memory": [0, 0, 0], + "module": "modules.ModularDiffusers", + "params": { + "attention_backend": { + "default": "inherit", + "description": "Inherit preserves existing native component defaults; explicit choices use the ordinary Diffusers attention API.", + "label": "Attention Backend", + "options": [ + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "inherit", + "schemaVersion": 1, + "value": "inherit" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "auto", + "schemaVersion": 1, + "value": "auto" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "native", + "schemaVersion": 1, + "value": "native" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "_native_math", + "schemaVersion": 1, + "value": "_native_math" + } + ], + "type": "string" + }, + "auto_offload": { "label": "Enable Auto Offload", "type": "boolean", "value": true }, + "controlnet": { + "display": "input", + "hidden": true, + "label": "ControlNet", + "type": "diffusers_auto_model" + }, + "device": { + "label": "Device", + "options": { + "cpu": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "cpu", + "schemaVersion": 1, + "value": "cpu" + }, + "cpu:0": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "cpu:0", + "schemaVersion": 1, + "value": "cpu:0" + } + }, + "type": "string", + "value": "cpu:0" + }, + "dtype": { + "label": "dtype", + "options": [ + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "float32", + "schemaVersion": 1, + "value": "float32" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "float16", + "schemaVersion": 1, + "value": "float16" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "bfloat16", + "schemaVersion": 1, + "value": "bfloat16" + } + ], + "value": "bfloat16" + }, + "image_encoder": { + "connectionRole": "image_encoder", + "display": "output", + "hidden": true, + "label": "Image Encoder", + "signal": { + "direction": "output", + "origin": "modiff_pipeline_identity", + "value": "Flux3ModularPipeline" + }, + "type": "diffusers_auto_model" + }, + "inpaint_compatibility": { + "default": "native", + "description": "Technical compatibility selection for the reviewed Qwen Edit inpainting candidate; existing nodes retain native policy.", + "hidden": true, + "label": "Inpaint Compatibility", + "options": [ + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "native", + "schemaVersion": 1, + "value": "native" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "whole_v1", + "schemaVersion": 1, + "value": "whole_v1" + } + ], + "type": "string" + }, + "lora_list": { "display": "input", "label": "Lora", "type": "custom_lora" }, + "model_type": { + "description": "Selects the Modular Diffusers pipeline class. This filters compatible checkpoints and publishes the component contract used by connected nodes; it is not the model checkpoint itself.", + "label": "Pipeline Type", + "onChange": "set_filters", + "options": { + "": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "", + "schemaVersion": 1, + "value": "" + }, + "AnimaModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Anima", + "schemaVersion": 1, + "value": "AnimaModularPipeline" + }, + "Cosmos3DistilledModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Cosmos 3 Distilled", + "schemaVersion": 1, + "value": "Cosmos3DistilledModularPipeline" + }, + "Cosmos3OmniModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Cosmos 3 Nano", + "schemaVersion": 1, + "value": "Cosmos3OmniModularPipeline" + }, + "DummyCustomPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Custom", + "schemaVersion": 1, + "value": "DummyCustomPipeline" + }, + "ErnieImageModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "ERNIE Image Turbo", + "schemaVersion": 1, + "value": "ErnieImageModularPipeline" + }, + "Flux2KleinBaseModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Flux 2 Klein Base", + "schemaVersion": 1, + "value": "Flux2KleinBaseModularPipeline" + }, + "Flux2KleinModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Flux 2 Klein Distilled", + "schemaVersion": 1, + "value": "Flux2KleinModularPipeline" + }, + "Flux2ModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Flux 2", + "schemaVersion": 1, + "value": "Flux2ModularPipeline" + }, + "Flux3DistilledModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "FLUX 3 Image Klein", + "schemaVersion": 1, + "value": "Flux3DistilledModularPipeline" + }, + "Flux3ModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "FLUX 3 Image Klein Base", + "schemaVersion": 1, + "value": "Flux3ModularPipeline" + }, + "FluxKontextModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Flux Kontext", + "schemaVersion": 1, + "value": "FluxKontextModularPipeline" + }, + "FluxModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Flux", + "schemaVersion": 1, + "value": "FluxModularPipeline" + }, + "HeliosModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Helios", + "schemaVersion": 1, + "value": "HeliosModularPipeline" + }, + "HeliosPyramidDistilledModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Helios Pyramid Distilled", + "schemaVersion": 1, + "value": "HeliosPyramidDistilledModularPipeline" + }, + "HeliosPyramidModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Helios Pyramid", + "schemaVersion": 1, + "value": "HeliosPyramidModularPipeline" + }, + "HunyuanVideo15ModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "HunyuanVideo 1.5", + "schemaVersion": 1, + "value": "HunyuanVideo15ModularPipeline" + }, + "Ideogram4ModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Ideogram 4 (Contract only)", + "schemaVersion": 1, + "value": "Ideogram4ModularPipeline" + }, + "Krea2ModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Krea 2 (Contract only)", + "schemaVersion": 1, + "value": "Krea2ModularPipeline" + }, + "Krea2TurboModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Krea 2 Turbo (Contract only)", + "schemaVersion": 1, + "value": "Krea2TurboModularPipeline" + }, + "LTX25ModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "LTX-2.5 (Contract only)", + "schemaVersion": 1, + "value": "LTX25ModularPipeline" + }, + "MiniMaxH3ModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "MiniMax H3", + "schemaVersion": 1, + "value": "MiniMaxH3ModularPipeline" + }, + "MiniMaxMusic3ModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "MiniMax Music 3", + "schemaVersion": 1, + "value": "MiniMaxMusic3ModularPipeline" + }, + "QwenImageEditModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Qwen-Image-Edit", + "schemaVersion": 1, + "value": "QwenImageEditModularPipeline" + }, + "QwenImageEditPlusModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Qwen-Image-Edit-2511", + "schemaVersion": 1, + "value": "QwenImageEditPlusModularPipeline" + }, + "QwenImageLayeredModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Qwen-Image-Layered", + "schemaVersion": 1, + "value": "QwenImageLayeredModularPipeline" + }, + "QwenImageModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Qwen-Image-2512", + "schemaVersion": 1, + "value": "QwenImageModularPipeline" + }, + "StableDiffusion3ModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Stable Diffusion 3 (Contract only)", + "schemaVersion": 1, + "value": "StableDiffusion3ModularPipeline" + }, + "StableDiffusionXLModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Stable Diffusion XL", + "schemaVersion": 1, + "value": "StableDiffusionXLModularPipeline" + }, + "WanAnimate2DistilledModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Wan Animate 2 Distilled", + "schemaVersion": 1, + "value": "WanAnimate2DistilledModularPipeline" + }, + "WanAnimate2ModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Wan Animate 2", + "schemaVersion": 1, + "value": "WanAnimate2ModularPipeline" + }, + "WanImage2VideoModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "WAN2 I2V", + "schemaVersion": 1, + "value": "WanImage2VideoModularPipeline" + }, + "WanModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "WAN2 T2V", + "schemaVersion": 1, + "value": "WanModularPipeline" + }, + "ZImageModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Z-Image", + "schemaVersion": 1, + "value": "ZImageModularPipeline" + } + }, + "type": "string", + "value": "Flux3ModularPipeline" + }, + "modiff_pipeline_identity": { + "hidden": true, + "label": "Custom Pipeline Identity", + "type": "object", + "value": null + }, + "offload_mode": { + "default": "model_cpu", + "label": "Offload Mode", + "options": [ + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "auto_cpu", + "schemaVersion": 1, + "value": "auto_cpu" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "none", + "schemaVersion": 1, + "value": "none" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "model_cpu", + "schemaVersion": 1, + "value": "model_cpu" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "group_cpu", + "schemaVersion": 1, + "value": "group_cpu" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "group_disk", + "schemaVersion": 1, + "value": "group_disk" + } + ], + "type": "string", + "value": "model_cpu" + }, + "pipeline_components": { + "connectionRole": "pipeline_components", + "display": "output", + "hidden": false, + "label": "Pipeline Components", + "signal": { + "direction": "output", + "origin": "modiff_pipeline_identity", + "value": "Flux3ModularPipeline" + }, + "type": "diffusers_modular_pipeline_components" + }, + "quant_config": { "display": "input", "label": "Quant Config", "type": "quant_config" }, + "refresh_pipeline_identity_button": { + "display": "ui_button", + "hidden": true, + "label": "Review and Refresh Custom Contract", + "onChange": "refresh_pipeline_identity", + "value": false + }, + "repo_id": { + "display": "modelselect", + "fieldOptions": { + "filter": { "hub": { "className": ["Flux3ModularPipeline"] } }, + "noValidation": true, + "sources": ["hub", "local"] + }, + "label": "Repository ID", + "onChange": "refresh_pipeline_identity", + "type": "string", + "value": { "source": "hub", "value": "black-forest-labs/flux-3-image-klein-base" } + }, + "reviewed_variant": { + "description": "Select an immutable, reviewed checkpoint for this exact Modular Diffusers pipeline family. Changing it does not replace the workflow graph or reset its parameters.", + "fieldOptions": { "controlTier": "essential" }, + "hidden": true, + "label": "Model", + "options": [ + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "black-forest-labs/flux-3-image-klein-base", + "schemaVersion": 1, + "value": "black-forest-labs/flux-3-image-klein-base" + } + ], + "type": "string", + "value": "black-forest-labs/flux-3-image-klein-base" + }, + "revision": { + "description": "Required exact 40-character commit hash for Hub custom contracts.", + "label": "Revision", + "onChange": "refresh_pipeline_identity", + "type": "string", + "value": "1469d27cfb9bb1bd81d3a93f5a023b39dbf136e4" + }, + "scheduler": { + "connectionRole": "scheduler", + "display": "output", + "hidden": false, + "label": "Scheduler", + "signal": { + "direction": "output", + "origin": "modiff_pipeline_identity", + "value": "Flux3ModularPipeline" + }, + "type": "diffusers_auto_model" + }, + "text_encoders": { + "connectionRole": "text_encoders", + "display": "output", + "hidden": false, + "label": "Text Encoders", + "signal": { + "direction": "output", + "origin": "modiff_pipeline_identity", + "value": "Flux3ModularPipeline" + }, + "type": "diffusers_auto_models" + }, + "trust_remote_code": { + "description": "Repository code execution is disabled; keep this off for contract preview.", + "label": "Trust Remote Code", + "onChange": "refresh_pipeline_identity", + "type": "boolean", + "value": false + }, + "unet": { "display": "input", "hidden": false, "label": "Denoise Model", "type": "diffusers_auto_model" }, + "unet_out": { + "connectionRole": "denoiser", + "display": "output", + "hidden": false, + "label": "Denoise Model", + "signal": { + "direction": "output", + "origin": "modiff_pipeline_identity", + "value": "Flux3ModularPipeline" + }, + "type": "diffusers_auto_model" + }, + "vae": { "display": "input", "hidden": false, "label": "VAE", "type": "diffusers_auto_model" }, + "vae_out": { + "connectionRole": "vae", + "display": "output", + "hidden": false, + "label": "VAE", + "signal": { + "direction": "output", + "origin": "modiff_pipeline_identity", + "value": "Flux3ModularPipeline" + }, + "type": "diffusers_auto_model" + }, + "vae_slicing": { + "default": null, + "description": "An unset policy preserves the native VAE configuration; templates may bind an explicit boolean.", + "hidden": true, + "label": "VAE Slicing", + "type": "boolean" + }, + "vae_tiling": { + "default": null, + "description": "An unset policy preserves the native VAE configuration; templates may bind an explicit boolean.", + "hidden": true, + "label": "VAE Tiling", + "type": "boolean" + }, + "weight_format": { + "default": "native", + "description": "Select a backend-declared immutable component format. Missing reviewed files must be installed through Model Manager.", + "fieldOptions": { "controlTier": "advanced" }, + "hidden": false, + "label": "Weight Format", + "options": [ + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "native", + "schemaVersion": 1, + "value": "native" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "fp8r", + "schemaVersion": 1, + "value": "fp8r" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "nvfp4", + "schemaVersion": 1, + "value": "nvfp4" + } + ], + "type": "string" + }, + "weight_loading_mode": { + "default": "cpu", + "description": "Load weights on CPU or CUDA before disk offload. CUDA loading needs room for a complete component and is available only for supported models.", + "fieldOptions": { "controlTier": "advanced" }, + "label": "Weight Loading", + "options": [ + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "cpu", + "schemaVersion": 1, + "value": "cpu" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "cuda", + "schemaVersion": 1, + "value": "cuda" + } + ], + "type": "string" + }, + "workflow_id": { + "description": "Exact reviewed component partition selected by a first-party Cluster Node.", + "hidden": true, + "label": "Reviewed Workflow", + "type": "string", + "value": "text2image" + } + }, + "resizable": true, + "skipParamsCheck": true, + "style": {}, + "time": [0, 0, 0], + "type": "custom" + }, + "operation": { + "binding": { "pipelineClass": "Flux3ModularPipeline", "values": { "model_type": "Flux3ModularPipeline" } }, + "blockName": null, + "decomposition": "loader", + "nodeKey": "modules.ModularDiffusers.ModelsLoader", + "nodeType": "loader", + "operationId": "diffusion.load_models", + "pipelineClass": "Flux3ModularPipeline", + "ports": [ + { + "direction": "input", + "hidden": false, + "name": "model_type", + "required": false, + "roles": ["value"], + "semanticName": "model_type", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": false, + "name": "repo_id", + "required": false, + "roles": ["value"], + "semanticName": "repo_id", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": true, + "name": "reviewed_variant", + "required": false, + "roles": ["value"], + "semanticName": "reviewed_variant", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": false, + "name": "device", + "required": false, + "roles": ["value"], + "semanticName": "device", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": false, + "name": "attention_backend", + "required": false, + "roles": ["value"], + "semanticName": "attention_backend", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": true, + "name": "vae_slicing", + "required": false, + "roles": ["value"], + "semanticName": "vae_slicing", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["boolean"] + }, + { + "direction": "input", + "hidden": true, + "name": "vae_tiling", + "required": false, + "roles": ["value"], + "semanticName": "vae_tiling", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["boolean"] + }, + { + "direction": "input", + "hidden": true, + "name": "inpaint_compatibility", + "required": false, + "roles": ["value"], + "semanticName": "inpaint_compatibility", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": false, + "name": "trust_remote_code", + "required": false, + "roles": ["value"], + "semanticName": "trust_remote_code", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["boolean"] + }, + { + "direction": "input", + "hidden": false, + "name": "revision", + "required": false, + "roles": ["value"], + "semanticName": "revision", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": true, + "name": "workflow_id", + "required": false, + "roles": ["value"], + "semanticName": "workflow_id", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": true, + "name": "modiff_pipeline_identity", + "required": false, + "roles": ["value"], + "semanticName": "modiff_pipeline_identity", + "semantics": { + "kind": "opaque", + "members": [], + "owner": "none", + "scope": "Flux3ModularPipeline", + "state": null + }, + "types": ["object"] + }, + { + "direction": "input", + "hidden": false, + "name": "auto_offload", + "required": false, + "roles": ["value"], + "semanticName": "auto_offload", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["boolean"] + }, + { + "direction": "input", + "hidden": false, + "name": "offload_mode", + "required": false, + "roles": ["value"], + "semanticName": "offload_mode", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": false, + "name": "weight_loading_mode", + "required": false, + "roles": ["value"], + "semanticName": "weight_loading_mode", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": true, + "name": "weight_format", + "required": false, + "roles": ["value"], + "semanticName": "weight_format", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": false, + "name": "unet", + "required": false, + "roles": ["component"], + "semanticName": "unet", + "semantics": { + "kind": "component", + "members": [ + { + "name": "transformer", + "type": "diffusers.models.transformers.transformer_flux3.Flux3Transformer2DModel" + } + ], + "owner": "same_loader", + "scope": "Flux3ModularPipeline", + "state": null + }, + "types": ["diffusers_auto_model"] + }, + { + "direction": "input", + "hidden": false, + "name": "vae", + "required": false, + "roles": ["component"], + "semanticName": "vae", + "semantics": { + "kind": "component", + "members": [ + { "name": "vae", "type": "diffusers.models.autoencoders.autoencoder_kl_flux2.AutoencoderKLFlux2" } + ], + "owner": "same_loader", + "scope": "Flux3ModularPipeline", + "state": null + }, + "types": ["diffusers_auto_model"] + }, + { + "direction": "input", + "hidden": true, + "name": "controlnet", + "required": false, + "roles": ["component"], + "semanticName": "controlnet", + "semantics": { + "kind": "component", + "members": [], + "owner": "same_loader", + "scope": "Flux3ModularPipeline", + "state": null + }, + "types": ["diffusers_auto_model"] + }, + { + "direction": "input", + "hidden": false, + "name": "lora_list", + "required": false, + "roles": ["value"], + "semanticName": "lora_list", + "semantics": { + "kind": "opaque", + "members": [], + "owner": "none", + "scope": "Flux3ModularPipeline", + "state": null + }, + "types": ["custom_lora"] + }, + { + "direction": "output", + "hidden": false, + "name": "text_encoders", + "required": false, + "roles": ["component"], + "semanticName": "text_encoders", + "semantics": { + "kind": "component", + "members": [ + { + "name": "text_encoder", + "type": "transformers.models.qwen3_vl.modeling_qwen3_vl.Qwen3VLForConditionalGeneration" + }, + { "name": "tokenizer", "type": "transformers.models.auto.processing_auto.AutoProcessor" } + ], + "owner": "same_loader", + "scope": "Flux3ModularPipeline", + "state": null + }, + "types": ["diffusers_auto_models"] + }, + { + "direction": "output", + "hidden": false, + "name": "unet_out", + "required": false, + "roles": ["component"], + "semanticName": "unet_out", + "semantics": { + "kind": "component", + "members": [ + { + "name": "transformer", + "type": "diffusers.models.transformers.transformer_flux3.Flux3Transformer2DModel" + } + ], + "owner": "same_loader", + "scope": "Flux3ModularPipeline", + "state": null + }, + "types": ["diffusers_auto_model"] + }, + { + "direction": "output", + "hidden": false, + "name": "vae_out", + "required": false, + "roles": ["component"], + "semanticName": "vae_out", + "semantics": { + "kind": "component", + "members": [ + { "name": "vae", "type": "diffusers.models.autoencoders.autoencoder_kl_flux2.AutoencoderKLFlux2" } + ], + "owner": "same_loader", + "scope": "Flux3ModularPipeline", + "state": null + }, + "types": ["diffusers_auto_model"] + }, + { + "direction": "output", + "hidden": false, + "name": "scheduler", + "required": false, + "roles": ["component"], + "semanticName": "scheduler", + "semantics": { + "kind": "component", + "members": [ + { + "name": "scheduler", + "type": "diffusers.schedulers.scheduling_flow_match_euler_discrete.FlowMatchEulerDiscreteScheduler" + } + ], + "owner": "same_loader", + "scope": "Flux3ModularPipeline", + "state": null + }, + "types": ["diffusers_auto_model"] + }, + { + "direction": "output", + "hidden": true, + "name": "image_encoder", + "required": false, + "roles": ["component"], + "semanticName": "image_encoder", + "semantics": { + "kind": "component", + "members": [], + "owner": "same_loader", + "scope": "Flux3ModularPipeline", + "state": null + }, + "types": ["diffusers_auto_model"] + }, + { + "direction": "output", + "hidden": false, + "name": "pipeline_components", + "required": false, + "roles": ["component"], + "semanticName": "pipeline_components", + "semantics": { + "kind": "component", + "members": [ + { "name": "guider", "type": "diffusers.guiders.classifier_free_guidance.ClassifierFreeGuidance" }, + { + "name": "image_processor", + "type": "diffusers.modular_pipelines.flux3.image_processor.Flux3ImageProcessor" + }, + { + "name": "scheduler", + "type": "diffusers.schedulers.scheduling_flow_match_euler_discrete.FlowMatchEulerDiscreteScheduler" + }, + { + "name": "text_encoder", + "type": "transformers.models.qwen3_vl.modeling_qwen3_vl.Qwen3VLForConditionalGeneration" + }, + { "name": "tokenizer", "type": "transformers.models.auto.processing_auto.AutoProcessor" }, + { + "name": "transformer", + "type": "diffusers.models.transformers.transformer_flux3.Flux3Transformer2DModel" + }, + { "name": "vae", "type": "diffusers.models.autoencoders.autoencoder_kl_flux2.AutoencoderKLFlux2" } + ], + "owner": "same_loader", + "scope": "Flux3ModularPipeline", + "state": null + }, + "types": ["diffusers_modular_pipeline_components"] + }, + { + "direction": "input", + "hidden": false, + "name": "quant_config", + "required": false, + "roles": ["value"], + "semanticName": "quant_config", + "semantics": { + "kind": "opaque", + "members": [], + "owner": "none", + "scope": "Flux3ModularPipeline", + "state": null + }, + "types": ["quant_config"] + } + ], + "support": "declared", + "task": "text_to_image", + "workflowId": "text2image" + } + }, + { + "node": { + "action": "Guider", + "cache": false, + "category": "sampler", + "description": "", + "label": "Guidance", + "memory": [0, 0, 0], + "module": "modules.ModularDiffusers", + "params": { + "enabled": { "label": "Enabled", "type": "boolean", "value": true }, + "guidance_rescale": { + "display": "slider", + "label": "Guidance Rescale", + "max": 10.0, + "min": 0.0, + "step": 0.1, + "type": "float", + "value": 0.0 + }, + "guidance_scale": { + "display": "slider", + "label": "Guidance Scale", + "max": 20.0, + "min": 1.0, + "step": 0.1, + "type": "float", + "value": 3.5 + }, + "guider": { + "fieldOptions": { "loading": true }, + "label": "Guider", + "onChange": [ + "updateNode", + { + "AutoGuidance": ["layers_config"], + "PerturbedAttentionGuidance": ["layers_config"], + "SkipLayerGuidance": ["layers_config"], + "SmoothedEnergyGuidance": ["layers_config"] + } + ], + "options": [ + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "ClassifierFreeGuidance", + "schemaVersion": 1, + "value": "ClassifierFreeGuidance" + } + ], + "type": "string", + "value": "ClassifierFreeGuidance" + }, + "guider_out": { + "display": "output", + "label": "Guider", + "onSignal": [ + { "action": "value", "target": "model_type" }, + { + "action": "value", + "data": { + "Flux2KleinBaseModularPipeline": ["ClassifierFreeGuidance"], + "Flux3ModularPipeline": ["ClassifierFreeGuidance"], + "FluxKontextModularPipeline": ["ClassifierFreeGuidance"], + "FluxModularPipeline": ["ClassifierFreeGuidance"], + "QwenImageEditModularPipeline": [ + "ClassifierFreeGuidance", + "SkipLayerGuidance", + "AdaptiveProjectedGuidance", + "AdaptiveProjectedMixGuidance", + "MagnitudeAwareGuidance", + "ClassifierFreeZeroStarGuidance", + "AutoGuidance", + "SmoothedEnergyGuidance", + "PerturbedAttentionGuidance", + "TangentialClassifierFreeGuidance", + "FrequencyDecoupledGuidance" + ], + "QwenImageEditPlusModularPipeline": [ + "ClassifierFreeGuidance", + "SkipLayerGuidance", + "AdaptiveProjectedGuidance", + "AdaptiveProjectedMixGuidance", + "MagnitudeAwareGuidance", + "ClassifierFreeZeroStarGuidance", + "AutoGuidance", + "SmoothedEnergyGuidance", + "PerturbedAttentionGuidance", + "TangentialClassifierFreeGuidance", + "FrequencyDecoupledGuidance" + ], + "QwenImageLayeredModularPipeline": [ + "ClassifierFreeGuidance", + "AdaptiveProjectedGuidance", + "AdaptiveProjectedMixGuidance", + "MagnitudeAwareGuidance", + "ClassifierFreeZeroStarGuidance", + "TangentialClassifierFreeGuidance", + "FrequencyDecoupledGuidance" + ], + "QwenImageModularPipeline": [ + "ClassifierFreeGuidance", + "SkipLayerGuidance", + "AdaptiveProjectedGuidance", + "AdaptiveProjectedMixGuidance", + "MagnitudeAwareGuidance", + "ClassifierFreeZeroStarGuidance", + "AutoGuidance", + "SmoothedEnergyGuidance", + "PerturbedAttentionGuidance", + "TangentialClassifierFreeGuidance", + "FrequencyDecoupledGuidance" + ], + "StableDiffusionXLModularPipeline": [ + "ClassifierFreeGuidance", + "SkipLayerGuidance", + "AdaptiveProjectedGuidance", + "AdaptiveProjectedMixGuidance", + "MagnitudeAwareGuidance", + "ClassifierFreeZeroStarGuidance", + "AutoGuidance", + "SmoothedEnergyGuidance", + "PerturbedAttentionGuidance", + "TangentialClassifierFreeGuidance", + "FrequencyDecoupledGuidance" + ], + "WanImage2VideoModularPipeline": [ + "ClassifierFreeGuidance", + "AdaptiveProjectedGuidance", + "AdaptiveProjectedMixGuidance", + "MagnitudeAwareGuidance", + "ClassifierFreeZeroStarGuidance", + "TangentialClassifierFreeGuidance", + "FrequencyDecoupledGuidance" + ], + "WanModularPipeline": [ + "ClassifierFreeGuidance", + "AdaptiveProjectedGuidance", + "AdaptiveProjectedMixGuidance", + "MagnitudeAwareGuidance", + "ClassifierFreeZeroStarGuidance", + "TangentialClassifierFreeGuidance", + "FrequencyDecoupledGuidance" + ], + "ZImageModularPipeline": [ + "ClassifierFreeGuidance", + "AdaptiveProjectedGuidance", + "AdaptiveProjectedMixGuidance", + "MagnitudeAwareGuidance", + "ClassifierFreeZeroStarGuidance", + "TangentialClassifierFreeGuidance", + "FrequencyDecoupledGuidance" + ] + }, + "prop": "options", + "target": "guider" + }, + { "action": "signal", "target": "layers_config" } + ], + "signalCompatibility": { + "values": { + "Flux2KleinBaseModularPipeline": ["ClassifierFreeGuidance"], + "Flux3ModularPipeline": ["ClassifierFreeGuidance"], + "FluxKontextModularPipeline": ["ClassifierFreeGuidance"], + "FluxModularPipeline": ["ClassifierFreeGuidance"], + "QwenImageEditModularPipeline": [ + "ClassifierFreeGuidance", + "SkipLayerGuidance", + "AdaptiveProjectedGuidance", + "AdaptiveProjectedMixGuidance", + "MagnitudeAwareGuidance", + "ClassifierFreeZeroStarGuidance", + "AutoGuidance", + "SmoothedEnergyGuidance", + "PerturbedAttentionGuidance", + "TangentialClassifierFreeGuidance", + "FrequencyDecoupledGuidance" + ], + "QwenImageEditPlusModularPipeline": [ + "ClassifierFreeGuidance", + "SkipLayerGuidance", + "AdaptiveProjectedGuidance", + "AdaptiveProjectedMixGuidance", + "MagnitudeAwareGuidance", + "ClassifierFreeZeroStarGuidance", + "AutoGuidance", + "SmoothedEnergyGuidance", + "PerturbedAttentionGuidance", + "TangentialClassifierFreeGuidance", + "FrequencyDecoupledGuidance" + ], + "QwenImageLayeredModularPipeline": [ + "ClassifierFreeGuidance", + "AdaptiveProjectedGuidance", + "AdaptiveProjectedMixGuidance", + "MagnitudeAwareGuidance", + "ClassifierFreeZeroStarGuidance", + "TangentialClassifierFreeGuidance", + "FrequencyDecoupledGuidance" + ], + "QwenImageModularPipeline": [ + "ClassifierFreeGuidance", + "SkipLayerGuidance", + "AdaptiveProjectedGuidance", + "AdaptiveProjectedMixGuidance", + "MagnitudeAwareGuidance", + "ClassifierFreeZeroStarGuidance", + "AutoGuidance", + "SmoothedEnergyGuidance", + "PerturbedAttentionGuidance", + "TangentialClassifierFreeGuidance", + "FrequencyDecoupledGuidance" + ], + "StableDiffusionXLModularPipeline": [ + "ClassifierFreeGuidance", + "SkipLayerGuidance", + "AdaptiveProjectedGuidance", + "AdaptiveProjectedMixGuidance", + "MagnitudeAwareGuidance", + "ClassifierFreeZeroStarGuidance", + "AutoGuidance", + "SmoothedEnergyGuidance", + "PerturbedAttentionGuidance", + "TangentialClassifierFreeGuidance", + "FrequencyDecoupledGuidance" + ], + "WanImage2VideoModularPipeline": [ + "ClassifierFreeGuidance", + "AdaptiveProjectedGuidance", + "AdaptiveProjectedMixGuidance", + "MagnitudeAwareGuidance", + "ClassifierFreeZeroStarGuidance", + "TangentialClassifierFreeGuidance", + "FrequencyDecoupledGuidance" + ], + "WanModularPipeline": [ + "ClassifierFreeGuidance", + "AdaptiveProjectedGuidance", + "AdaptiveProjectedMixGuidance", + "MagnitudeAwareGuidance", + "ClassifierFreeZeroStarGuidance", + "TangentialClassifierFreeGuidance", + "FrequencyDecoupledGuidance" + ], + "ZImageModularPipeline": [ + "ClassifierFreeGuidance", + "AdaptiveProjectedGuidance", + "AdaptiveProjectedMixGuidance", + "MagnitudeAwareGuidance", + "ClassifierFreeZeroStarGuidance", + "TangentialClassifierFreeGuidance", + "FrequencyDecoupledGuidance" + ] + } + }, + "type": "custom_guider" + }, + "layers_config": { "display": "input", "label": "Layers", "type": "layers_config" }, + "model_type": { "default": "", "hidden": true, "type": "string", "value": "Flux3ModularPipeline" }, + "start": { + "display": "slider", + "label": "Start", + "max": 1.0, + "min": 0.0, + "step": 0.01, + "type": "float", + "value": 0.0 + }, + "stop": { + "display": "slider", + "label": "Stop", + "max": 1.0, + "min": 0.01, + "step": 0.01, + "type": "float", + "value": 1.0 + }, + "use_original_formulation": { "label": "Original Formulation", "type": "boolean", "value": false } + }, + "resizable": true, + "skipParamsCheck": true, + "style": {}, + "time": [0, 0, 0], + "type": "custom" + }, + "operation": { + "binding": { "pipelineClass": "Flux3ModularPipeline", "values": { "model_type": "Flux3ModularPipeline" } }, + "blockName": null, + "decomposition": "bundle", + "nodeKey": "modules.ModularDiffusers.Guider", + "nodeType": "guidance", + "operationId": "diffusion.guidance", + "pipelineClass": "Flux3ModularPipeline", + "ports": [ + { + "direction": "input", + "hidden": true, + "name": "model_type", + "required": false, + "roles": ["value"], + "semanticName": "model_type", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": false, + "name": "guider", + "required": false, + "roles": ["value"], + "semanticName": "guider", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": false, + "name": "guidance_scale", + "required": false, + "roles": ["value"], + "semanticName": "guidance_scale", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["float"] + }, + { + "direction": "input", + "hidden": false, + "name": "guidance_rescale", + "required": false, + "roles": ["value"], + "semanticName": "guidance_rescale", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["float"] + }, + { + "direction": "input", + "hidden": false, + "name": "use_original_formulation", + "required": false, + "roles": ["value"], + "semanticName": "use_original_formulation", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["boolean"] + }, + { + "direction": "input", + "hidden": false, + "name": "enabled", + "required": false, + "roles": ["value"], + "semanticName": "enabled", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["boolean"] + }, + { + "direction": "input", + "hidden": false, + "name": "start", + "required": false, + "roles": ["value"], + "semanticName": "start", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["float"] + }, + { + "direction": "input", + "hidden": false, + "name": "stop", + "required": false, + "roles": ["value"], + "semanticName": "stop", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["float"] + }, + { + "direction": "output", + "hidden": false, + "name": "guider_out", + "required": false, + "roles": ["component"], + "semanticName": "guider_out", + "semantics": { + "kind": "component", + "members": [], + "owner": "same_loader", + "scope": "Flux3ModularPipeline", + "state": null + }, + "types": ["custom_guider"] + }, + { + "direction": "input", + "hidden": false, + "name": "layers_config", + "required": false, + "roles": ["value"], + "semanticName": "layers_config", + "semantics": { + "kind": "opaque", + "members": [], + "owner": "none", + "scope": "Flux3ModularPipeline", + "state": null + }, + "types": ["layers_config"] + } + ], + "support": "declared", + "task": "text_to_image", + "workflowId": "text2image" + } + }, + { + "node": { + "action": "EncodePrompt", + "cache": false, + "category": "embedding", + "description": "", + "label": "Encode Prompt", + "memory": [0, 0, 0], + "module": "modules.ModularDiffusers", + "params": { + "doc": { "display": "output", "label": "Doc", "type": "string" }, + "embeddings": { "display": "output", "label": "Text Embeddings", "type": "embeddings" }, + "guider": { + "description": "Shared Diffusers guidance used by prompt encoding and denoising when the selected pipeline supports it.", + "display": "input", + "hidden": true, + "label": "Guider", + "type": "custom_guider" + }, + "layout_conditioning": { + "default": null, + "display": "layout", + "fieldOptions": { + "layoutConditioning": { + "schemaVersion": 2, + "sourceRegions": false, + "supportsBoundSourceRegions": true + } + }, + "label": "Layout Conditioning", + "type": "layout_conditioning" + }, + "layout_reference_summary": { + "description": "Display-only ordered reference identities and actual preprocessing sizes from the current encoder cache.", + "display": "output", + "hidden": true, + "label": "Bound Reference Summary", + "type": "string" + }, + "max_sequence_length": { + "default": 8192, + "label": "Maximum Sequence Length", + "max": 8192, + "min": 1, + "step": 1, + "type": "int" + }, + "negative_prompt": { "default": "", "display": "textarea", "label": "Negative Prompt", "type": "string" }, + "prompt": { + "default": "", + "display": "textarea", + "fieldOptions": { "exampleAttribution": "MoDiff task example" }, + "label": "Prompt *", + "type": "string", + "value": "A red ceramic teapot on a wooden table beside a window, soft morning light, detailed photograph." + }, + "prompt_input": { + "description": "Optional connected prompt. When connected, this replaces the inline Prompt value.", + "display": "input", + "label": "Prompt Input", + "type": "string" + }, + "reference_binding": { + "default": null, + "display": "input", + "fieldOptions": { "referenceBinding": { "maxReferences": 10, "schemaVersion": 1 } }, + "label": "Reference Binding", + "type": "reference_conditioning" + }, + "text_encoder_out_layers": { + "default": [4, 8, 12, 16, 20, 24, 28, 32], + "display": "select", + "fieldOptions": { "multiple": true, "tupleLength": 8, "tupleValue": true }, + "label": "Text Encoder Layers", + "options": [ + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "0", + "schemaVersion": 1, + "value": "0" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "1", + "schemaVersion": 1, + "value": "1" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "2", + "schemaVersion": 1, + "value": "2" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "3", + "schemaVersion": 1, + "value": "3" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "4", + "schemaVersion": 1, + "value": "4" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "5", + "schemaVersion": 1, + "value": "5" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "6", + "schemaVersion": 1, + "value": "6" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "7", + "schemaVersion": 1, + "value": "7" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "8", + "schemaVersion": 1, + "value": "8" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "9", + "schemaVersion": 1, + "value": "9" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "10", + "schemaVersion": 1, + "value": "10" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "11", + "schemaVersion": 1, + "value": "11" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "12", + "schemaVersion": 1, + "value": "12" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "13", + "schemaVersion": 1, + "value": "13" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "14", + "schemaVersion": 1, + "value": "14" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "15", + "schemaVersion": 1, + "value": "15" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "16", + "schemaVersion": 1, + "value": "16" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "17", + "schemaVersion": 1, + "value": "17" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "18", + "schemaVersion": 1, + "value": "18" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "19", + "schemaVersion": 1, + "value": "19" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "20", + "schemaVersion": 1, + "value": "20" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "21", + "schemaVersion": 1, + "value": "21" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "22", + "schemaVersion": 1, + "value": "22" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "23", + "schemaVersion": 1, + "value": "23" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "24", + "schemaVersion": 1, + "value": "24" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "25", + "schemaVersion": 1, + "value": "25" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "26", + "schemaVersion": 1, + "value": "26" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "27", + "schemaVersion": 1, + "value": "27" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "28", + "schemaVersion": 1, + "value": "28" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "29", + "schemaVersion": 1, + "value": "29" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "30", + "schemaVersion": 1, + "value": "30" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "31", + "schemaVersion": 1, + "value": "31" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "32", + "schemaVersion": 1, + "value": "32" + } + ], + "type": "int" + }, + "text_encoders": { + "display": "input", + "label": "Text Encoders *", + "onSignal": "update_node", + "required": true, + "signalCompatibility": { "role": "text_encoders" }, + "type": "diffusers_auto_models" + } + }, + "resizable": true, + "skipParamsCheck": true, + "style": {}, + "time": [0, 0, 0], + "type": "custom" + }, + "operation": { + "binding": { "pipelineClass": "Flux3ModularPipeline", "values": {} }, + "blockName": "text_encoder", + "decomposition": "block", + "nodeKey": "modules.ModularDiffusers.EncodePrompt", + "nodeType": "text_encoder", + "operationId": "diffusion.encode_prompt", + "pipelineClass": "Flux3ModularPipeline", + "ports": [ + { + "direction": "input", + "hidden": false, + "name": "prompt", + "required": true, + "roles": ["value"], + "semanticName": "prompt", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": false, + "name": "negative_prompt", + "required": false, + "roles": ["value"], + "semanticName": "negative_prompt", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": false, + "name": "max_sequence_length", + "required": false, + "roles": ["value"], + "semanticName": "max_sequence_length", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["int"] + }, + { + "direction": "input", + "hidden": false, + "name": "text_encoder_out_layers", + "required": false, + "roles": ["value"], + "semanticName": "text_encoder_out_layers", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["int"] + }, + { + "direction": "input", + "hidden": false, + "name": "text_encoders", + "required": true, + "roles": ["component"], + "semanticName": "text_encoders", + "semantics": { + "kind": "component", + "members": [ + { + "name": "text_encoder", + "type": "transformers.models.qwen3_vl.modeling_qwen3_vl.Qwen3VLForConditionalGeneration" + }, + { "name": "tokenizer", "type": "transformers.models.auto.processing_auto.AutoProcessor" } + ], + "owner": "same_loader", + "scope": "Flux3ModularPipeline", + "state": null + }, + "types": ["diffusers_auto_models"] + }, + { + "direction": "output", + "hidden": false, + "name": "embeddings", + "required": false, + "roles": ["value"], + "semanticName": "embeddings", + "semantics": { + "kind": "conditioning", + "members": [], + "owner": "same_loader", + "scope": "Flux3ModularPipeline", + "state": null + }, + "types": ["embeddings"] + }, + { + "direction": "output", + "hidden": false, + "name": "doc", + "required": false, + "roles": ["value"], + "semanticName": "doc", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": false, + "name": "layout_conditioning", + "required": false, + "roles": ["value"], + "semanticName": "layout_conditioning", + "semantics": { + "kind": "opaque", + "members": [], + "owner": "none", + "scope": "Flux3ModularPipeline", + "state": null + }, + "types": ["layout_conditioning"] + }, + { + "direction": "input", + "hidden": false, + "name": "reference_binding", + "required": false, + "roles": ["value"], + "semanticName": "reference_binding", + "semantics": { + "kind": "opaque", + "members": [], + "owner": "none", + "scope": "Flux3ModularPipeline", + "state": null + }, + "types": ["reference_conditioning"] + }, + { + "direction": "input", + "hidden": false, + "name": "prompt_input", + "required": false, + "roles": ["value"], + "semanticName": "prompt", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + } + ], + "support": "declared", + "task": "text_to_image", + "workflowId": "text2image" + } + }, + { + "node": { + "action": "Denoise", + "cache": false, + "category": "sampler", + "description": "", + "label": "Denoise", + "memory": [0, 0, 0], + "module": "modules.ModularDiffusers", + "params": { + "doc": { "display": "output", "label": "Doc", "type": "string" }, + "embeddings": { "display": "input", "label": "Text Embeddings *", "type": "embeddings" }, + "guider": { "display": "input", "label": "Guider", "type": "custom_guider" }, + "height": { "default": 1024, "label": "Height", "min": 64, "step": 16, "type": "int", "value": 1024 }, + "image_cond_latents": { "display": "input", "label": "Reference Latents", "type": "latents" }, + "latents": { "display": "output", "label": "Latents", "type": "latents" }, + "num_images_per_prompt": { + "default": 1, + "label": "Images Per Prompt", + "max": 8, + "min": 1, + "step": 1, + "type": "int" + }, + "num_inference_steps": { + "default": 50, + "display": "slider", + "label": "Steps", + "max": 100, + "min": 1, + "type": "int", + "value": 50 + }, + "reference_binding": { + "default": null, + "display": "input", + "fieldOptions": { "referenceBinding": { "maxReferences": 10, "schemaVersion": 1 } }, + "label": "Reference Binding", + "type": "reference_conditioning" + }, + "scheduler": { + "display": "input", + "label": "Scheduler *", + "signalCompatibility": { "role": "scheduler" }, + "type": "diffusers_auto_model" + }, + "seed": { + "default": 0, + "display": "random", + "label": "Seed", + "max": 4294967295, + "min": 0, + "type": "int" + }, + "unet": { + "display": "input", + "label": "Denoise Model *", + "onSignal": [ + "update_node", + { "action": "signal", "target": "guider" }, + { "action": "signal", "target": "controlnet_bundle" } + ], + "required": true, + "signalCompatibility": { "role": "denoiser" }, + "type": "diffusers_auto_model" + }, + "width": { "default": 1024, "label": "Width", "min": 64, "step": 16, "type": "int", "value": 1024 } + }, + "resizable": true, + "skipParamsCheck": true, + "style": {}, + "time": [0, 0, 0], + "type": "custom" + }, + "operation": { + "binding": { "pipelineClass": "Flux3ModularPipeline", "values": {} }, + "blockName": "denoise", + "decomposition": "block", + "nodeKey": "modules.ModularDiffusers.Denoise", + "nodeType": "denoise", + "operationId": "diffusion.denoise", + "pipelineClass": "Flux3ModularPipeline", + "ports": [ + { + "direction": "input", + "hidden": false, + "name": "embeddings", + "required": true, + "roles": ["value"], + "semanticName": "embeddings", + "semantics": { + "kind": "conditioning", + "members": [], + "owner": "same_loader", + "scope": "Flux3ModularPipeline", + "state": null + }, + "types": ["embeddings"] + }, + { + "direction": "input", + "hidden": false, + "name": "width", + "required": false, + "roles": ["value"], + "semanticName": "width", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["int"] + }, + { + "direction": "input", + "hidden": false, + "name": "height", + "required": false, + "roles": ["value"], + "semanticName": "height", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["int"] + }, + { + "direction": "input", + "hidden": false, + "name": "seed", + "required": false, + "roles": ["value"], + "semanticName": "seed", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["int"] + }, + { + "direction": "input", + "hidden": false, + "name": "num_inference_steps", + "required": false, + "roles": ["value"], + "semanticName": "num_inference_steps", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["int"] + }, + { + "direction": "input", + "hidden": false, + "name": "num_images_per_prompt", + "required": false, + "roles": ["value"], + "semanticName": "num_images_per_prompt", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["int"] + }, + { + "direction": "input", + "hidden": false, + "name": "image_cond_latents", + "required": false, + "roles": ["value"], + "semanticName": "image_cond_latents", + "semantics": { + "kind": "latents", + "members": [], + "owner": "same_loader", + "scope": "Flux3ModularPipeline", + "state": null + }, + "types": ["latents"] + }, + { + "direction": "input", + "hidden": false, + "name": "unet", + "required": true, + "roles": ["component"], + "semanticName": "unet", + "semantics": { + "kind": "component", + "members": [ + { + "name": "transformer", + "type": "diffusers.models.transformers.transformer_flux3.Flux3Transformer2DModel" + } + ], + "owner": "same_loader", + "scope": "Flux3ModularPipeline", + "state": null + }, + "types": ["diffusers_auto_model"] + }, + { + "direction": "input", + "hidden": false, + "name": "scheduler", + "required": true, + "roles": ["component"], + "semanticName": "scheduler", + "semantics": { + "kind": "component", + "members": [ + { + "name": "scheduler", + "type": "diffusers.schedulers.scheduling_flow_match_euler_discrete.FlowMatchEulerDiscreteScheduler" + } + ], + "owner": "same_loader", + "scope": "Flux3ModularPipeline", + "state": null + }, + "types": ["diffusers_auto_model"] + }, + { + "direction": "input", + "hidden": false, + "name": "guider", + "required": false, + "roles": ["component"], + "semanticName": "guider", + "semantics": { + "kind": "component", + "members": [ + { "name": "guider", "type": "diffusers.guiders.classifier_free_guidance.ClassifierFreeGuidance" } + ], + "owner": "same_loader", + "scope": "Flux3ModularPipeline", + "state": null + }, + "types": ["custom_guider"] + }, + { + "direction": "output", + "hidden": false, + "name": "latents", + "required": false, + "roles": ["value"], + "semanticName": "latents", + "semantics": { + "kind": "latents", + "members": [], + "owner": "same_loader", + "scope": "Flux3ModularPipeline", + "state": null + }, + "types": ["latents"] + }, + { + "direction": "output", + "hidden": false, + "name": "doc", + "required": false, + "roles": ["value"], + "semanticName": "doc", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": false, + "name": "reference_binding", + "required": false, + "roles": ["value"], + "semanticName": "reference_binding", + "semantics": { + "kind": "opaque", + "members": [], + "owner": "none", + "scope": "Flux3ModularPipeline", + "state": null + }, + "types": ["reference_conditioning"] + } + ], + "support": "declared", + "task": "text_to_image", + "workflowId": "text2image" + } + }, + { + "node": { + "action": "DecodeLatents", + "cache": false, + "category": "sampler", + "description": "", + "label": "Decode Latents", + "memory": [0, 0, 0], + "module": "modules.ModularDiffusers", + "params": { + "doc": { "display": "output", "label": "Doc", "type": "string" }, + "images": { "display": "output", "label": "Images", "type": "image" }, + "latents": { "display": "input", "label": "Latents *", "type": "latents" }, + "vae": { + "display": "input", + "label": "VAE *", + "onSignal": "update_node", + "signalCompatibility": { "role": "vae" }, + "type": "diffusers_auto_model" + } + }, + "resizable": true, + "skipParamsCheck": true, + "style": {}, + "time": [0, 0, 0], + "type": "custom" + }, + "operation": { + "binding": { "pipelineClass": "Flux3ModularPipeline", "values": {} }, + "blockName": "decode", + "decomposition": "block", + "nodeKey": "modules.ModularDiffusers.DecodeLatents", + "nodeType": "decoder", + "operationId": "diffusion.decode_latents", + "pipelineClass": "Flux3ModularPipeline", + "ports": [ + { + "direction": "input", + "hidden": false, + "name": "latents", + "required": true, + "roles": ["value"], + "semanticName": "latents", + "semantics": { + "kind": "latents", + "members": [], + "owner": "same_loader", + "scope": "Flux3ModularPipeline", + "state": null + }, + "types": ["latents"] + }, + { + "direction": "input", + "hidden": false, + "name": "vae", + "required": true, + "roles": ["component"], + "semanticName": "vae", + "semantics": { + "kind": "component", + "members": [ + { "name": "vae", "type": "diffusers.models.autoencoders.autoencoder_kl_flux2.AutoencoderKLFlux2" } + ], + "owner": "same_loader", + "scope": "Flux3ModularPipeline", + "state": null + }, + "types": ["diffusers_auto_model"] + }, + { + "direction": "output", + "hidden": false, + "name": "images", + "required": false, + "roles": ["value"], + "semanticName": "images", + "semantics": { "kind": "media", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["image"] + }, + { + "direction": "output", + "hidden": false, + "name": "doc", + "required": false, + "roles": ["value"], + "semanticName": "doc", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + } + ], + "support": "declared", + "task": "text_to_image", + "workflowId": "text2image" + } + } + ], + "pipelineClass": "Flux3ModularPipeline", + "requiredInputs": [{ "field": "prompt", "operationId": "diffusion.encode_prompt" }], + "schemaVersion": 1, + "sharedInputs": [], + "task": "text_to_image", + "upstreamBlocks": ["text_encoder", "denoise", "decode"], + "workflowId": "text2image" + }, + { + "authoring": { + "ancillaryOperations": [ + { + "adapter": { + "declarationSha256": "sha256:2a3d4685988b418115008bbb95fb3e948097580c0bedd2940ea3fe1e40254dc2", + "id": "transformers-prompt-enhancement-v1" + }, + "authoredLayoutConstraint": { + "adapterId": "transformers-prompt-enhancement-v1", + "artifacts": [ + { + "byteSize": 19989325, + "path": "tokenizer.json", + "sha256": "06b9509352d2af50381ab2247e083b80d32d5c0aba91c272ca9ff729b6a0e523" + }, + { + "byteSize": 1164, + "path": "tokenizer_config.json", + "sha256": "7488550a894dcf741616126e322ea31d66cf9457b59ec5825f4c7efdced421f8" + }, + { + "byteSize": 163, + "path": "generation_config.json", + "sha256": "e92258e3c39afbaa73fd53a98640c56f6d42fb091e1664697bd5396a1dcbb761" + } + ], + "configuredEosTokenIds": [248046, 248044], + "deadlineSeconds": 1800, + "declarationSha256": "sha256:f321df19db5e99786b807a13d8f380e4bc0577e27163b94e6762661881ac5c08", + "effectiveEosTokenIds": [248046], + "effectivePreTokenizerSha256": "sha256:4cba7e5c03fddf4af78a44f283740fd19687522c60cc36ee271b655f634a7af3", + "layoutPolicy": "constrained-authored-table-v1", + "limits": { + "build_seconds": 10, + "lookup_seconds": 2, + "max_cache_bytes": 16777216, + "max_caption_chars": 131072, + "max_description_chars": 4096, + "max_new_tokens": 3584, + "max_output_bytes": 262144, + "max_references": 10, + "max_regions": 32, + "max_request_seconds": 1800, + "max_token_bytes": 512, + "max_trie_nodes": 2000000, + "max_vocabulary_bytes": 16777216, + "max_vocabulary_tokens": 300000 + }, + "operation": "enhance_prompt_constrained_authored_v1", + "ordinaryVocabularySha256": "sha256:13431bd652cdbd32f84568d0c2b9945ba506071178fdb527d40c4ece256f8b39", + "ordinaryVocabularyTokens": 248044, + "padTokenId": 248044, + "preparationRamBytes": 268435456, + "repository": "black-forest-labs/flux-3-image-klein-pup", + "reservedAddedTokenIds": [ + 248044, 248045, 248046, 248047, 248048, 248049, 248050, 248051, 248052, 248053, 248054, 248055, 248056, + 248057, 248058, 248059, 248060, 248061, 248062, 248063, 248064, 248065, 248066, 248067, 248068, 248069, + 248070, 248071, 248072, 248073, 248074, 248075, 248076 + ], + "revision": "3f3edb52b2c55de0d49feab28598b68f7f8e4830", + "schemaVersion": 1, + "sourcePreTokenizerSha256": "sha256:d730489d91319a99960af82e8fed44be8533ca92615198807b41c29dda5556fc", + "status": "contract_only", + "tokenizerClass": "Qwen3_5Tokenizer", + "tokenizerSemanticSha256": "sha256:40ebf1d8462c42c3b781b870aaa28884b24f86234bc0b49d54d2bbcf5ddc404a", + "tokenizersVersion": "0.23.2", + "transformersVersion": "5.18.0", + "trueSpecialTokenIds": [ + 248044, 248045, 248046, 248047, 248048, 248049, 248050, 248051, 248052, 248053, 248054, 248055, 248056, + 248057, 248070, 248071, 248072, 248073, 248074, 248075, 248076 + ], + "version": "authored-layout-byte-prefix-v1" + }, + "bindings": { + "output": { "field": "proposal_summary", "role": "proposal" }, + "owner": { + "layoutField": "layout_conditioning", + "promptField": "prompt", + "referenceSource": null, + "role": "prompt" + }, + "request": { + "imagesField": "images", + "layoutField": "layout_conditioning", + "promptField": "prompt", + "role": "proposal" + } + }, + "contentHash": "studio-ancillary-v1-05e11ea3", + "edges": [["provider", "model", "proposal", "model"]], + "executionPurpose": "explicit_preview", + "fieldOverrides": [ + ["proposal", "enhancement_max_new_tokens", { "hidden": false }], + ["proposal", "max_new_tokens", { "hidden": true }] + ], + "id": "flux3-klein-base:official:text-to-image:prompt-preview-constrained-fp32:v1:preview", + "initialValues": [ + ["provider", "model_id", { "source": "hub", "value": "black-forest-labs/flux-3-image-klein-pup" }], + ["provider", "revision", "3f3edb52b2c55de0d49feab28598b68f7f8e4830"], + ["proposal", "operation", "enhance_prompt_constrained_authored_v1"], + ["provider", "dtype", "float32"], + ["provider", "device", "cuda:0"], + ["provider", "quantization_mode", "none"], + ["proposal", "max_input_tokens", 4096] + ], + "layoutPolicy": "constrained-authored-table-v1", + "parent": { + "authoringRecipeId": "flux3-klein-base:official:text-to-image:prompt-preview-constrained-fp32:v1", + "baseSpecContentHash": "studio-spec-v1-f5960f24", + "baseSpecId": "flux3-klein-base:official-provider:v1:text-to-image:v1", + "executionProfileId": "flux3-klein-base:official-provider:v1", + "pipelineClass": "Flux3ModularPipeline", + "task": "text_to_image" + }, + "roles": [ + ["provider", "modules.HuggingFaceTransformers.LoadImageTextToTextModel", -720, -400], + ["proposal", "modules.HuggingFaceTransformers.GenerateImageVideoText", -360, -400] + ], + "schemaVersion": 1, + "sourceRegions": false, + "verification": { + "adapter": { + "declarationSha256": "sha256:2a3d4685988b418115008bbb95fb3e948097580c0bedd2940ea3fe1e40254dc2", + "id": "transformers-prompt-enhancement-v1" + }, + "chatTemplateSha256": "sha256:a4aee8afcf2e0711942cf848899be66016f8d14a889ff9ede07bca099c28f715", + "layoutRequestSuffixSha256": "sha256:5a17750012e7cc49ecf8169b48b9b9c1610c0ec198d8418dd9d3a7760ed9886e", + "modelReceipt": { + "library": "transformers", + "loader": { "modelAutoClass": "AutoModelForImageTextToText", "preprocessorAutoClass": "AutoProcessor" }, + "runtime": { + "architectures": ["Qwen3_5ForConditionalGeneration"], + "modelClass": "Qwen3_5ForConditionalGeneration", + "modelType": "qwen3_5", + "preprocessorClass": "Qwen3VLProcessor", + "transformersVersion": "5.18.0" + }, + "schemaVersion": 1, + "security": { + "hostedInference": false, + "localFilesOnly": true, + "safetensorsOnly": true, + "trustRemoteCode": false + }, + "source": { + "kind": "hub", + "repository": "black-forest-labs/flux-3-image-klein-pup", + "revision": "3f3edb52b2c55de0d49feab28598b68f7f8e4830" + }, + "task": "image-video-to-text" + }, + "quantizationRecipes": [ + { "mode": "none" }, + { + "computeDtype": "bfloat16", + "doubleQuant": true, + "mode": "bnb_4bit", + "quantType": "nf4", + "skipModules": ["lm_head", "model.visual"] + } + ], + "requestInputs": { + "maxImagePixelsField": "max_image_pixels", + "maxInputTokensField": "max_input_tokens", + "maxNewTokensField": "enhancement_max_new_tokens", + "minNewTokensField": "min_new_tokens", + "operationField": "operation", + "role": "proposal" + }, + "runtimeInputs": { + "deviceField": "device", + "dtypeField": "dtype", + "modelField": "model_id", + "quantizationField": "quantization_mode", + "revisionField": "revision", + "role": "provider" + }, + "schemaVersion": 1, + "supportedPromptModes": ["t2i", "i2i", "t2i_bbox", "i2i_bbox"], + "systemPromptSha256ByMode": { + "i2i": "95cec384d5b6d341caa9fb3f2c7ca45ee80c2364b3a95d4044aebf976f6dd3bf", + "i2i_bbox": "e7791b9d8f3c3d844a0ae493c28e7cdf549a98ba2dc66cad9f08de997127ef7d", + "t2i": "8b235a421bce2213d11ada01f5a1244443dd72303ffbb4cc9e5a0d8b0de5ab6f", + "t2i_bbox": "48bb52d2594ef7f33a1ecc1ef5b79ceab3ae4ff6ace9c2cafc13f4875e362f11" + }, + "systemPromptsSha256": "sha256:b5da3ed8bc04ab59dbdb747930f7dbff847e868903fed8028f85ee1a4ac82fb4" + } + } + ], + "baseSpecContentHash": "studio-spec-v1-f5960f24", + "baseSpecId": "flux3-klein-base:official-provider:v1:text-to-image:v1", + "bindings": [ + ["models", "model_type", "pipelineClass"], + ["models", "repo_id", "artifact"], + ["models", "revision", "defaultRevision"], + ["models", "dtype", "dtype"], + ["models", "device", "device"], + ["models", "auto_offload", "autoOffload"], + ["models", "offload_mode", "offloadMode"], + ["models", "trust_remote_code", "false"], + ["prompt", "prompt", "prompt"], + ["prompt", "negative_prompt", "negativePrompt"], + ["denoise", "width", "width"], + ["denoise", "height", "height"], + ["denoise", "seed", "seed"], + ["denoise", "num_inference_steps", "steps"], + ["prompt", "max_sequence_length", "maxSequenceLength"], + ["models", "weight_format", "weightFormat"], + ["guider", "guider", "classifierFreeGuidance"], + ["guider", "model_type", "pipelineClass"], + ["guider", "guidance_scale", "guidanceScale"] + ], + "canonicalizationVersion": 1, + "contentHash": "studio-authoring-v1-20cd973a", + "edges": [ + ["models", "text_encoders", "prompt", "text_encoders"], + ["models", "unet_out", "denoise", "unet"], + ["models", "scheduler", "denoise", "scheduler"], + ["models", "vae_out", "decode", "vae"], + ["prompt", "embeddings", "denoise", "embeddings"], + ["denoise", "latents", "decode", "latents"], + ["decode", "images", "preview", "image"], + ["guider", "guider_out", "denoise", "guider"] + ], + "executionProfileIds": ["flux3-klein-base:official-provider:v1"], + "id": "flux3-klein-base:official:text-to-image:prompt-preview-constrained-fp32:v1", + "initialValues": [], + "roles": [ + ["models", "modules.ModularDiffusers.ModelsLoader", -720, -80], + ["prompt", "modules.ModularDiffusers.EncodePrompt", -360, -240], + ["denoise", "modules.ModularDiffusers.Denoise", 80, -80], + ["decode", "modules.ModularDiffusers.DecodeLatents", 440, -80], + ["preview", "modules.Image.Preview", 800, -80], + ["guider", "modules.ModularDiffusers.Guider", -360, 160] + ], + "schemaVersion": 1 + }, + "edges": [ + { + "source": "diffusion.load_models", + "sourceHandle": "text_encoders", + "target": "diffusion.encode_prompt", + "targetHandle": "text_encoders" + }, + { + "source": "diffusion.load_models", + "sourceHandle": "scheduler", + "target": "diffusion.denoise", + "targetHandle": "scheduler" + }, + { + "source": "diffusion.load_models", + "sourceHandle": "unet_out", + "target": "diffusion.denoise", + "targetHandle": "unet" + }, + { + "source": "diffusion.load_models", + "sourceHandle": "vae_out", + "target": "diffusion.decode_latents", + "targetHandle": "vae" + }, + { + "source": "diffusion.encode_prompt", + "sourceHandle": "embeddings", + "target": "diffusion.denoise", + "targetHandle": "embeddings" + }, + { + "source": "diffusion.denoise", + "sourceHandle": "latents", + "target": "diffusion.decode_latents", + "targetHandle": "latents" + }, + { + "source": "diffusion.guidance", + "sourceHandle": "guider_out", + "target": "diffusion.denoise", + "targetHandle": "guider" + } + ], + "nodes": [ + { + "node": { + "action": "ModelsLoader", + "cache": false, + "category": "loader", + "description": "", + "label": "Load Models", + "memory": [0, 0, 0], + "module": "modules.ModularDiffusers", + "params": { + "attention_backend": { + "default": "inherit", + "description": "Inherit preserves existing native component defaults; explicit choices use the ordinary Diffusers attention API.", + "label": "Attention Backend", + "options": [ + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "inherit", + "schemaVersion": 1, + "value": "inherit" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "auto", + "schemaVersion": 1, + "value": "auto" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "native", + "schemaVersion": 1, + "value": "native" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "_native_math", + "schemaVersion": 1, + "value": "_native_math" + } + ], + "type": "string" + }, + "auto_offload": { "label": "Enable Auto Offload", "type": "boolean", "value": true }, + "controlnet": { + "display": "input", + "hidden": true, + "label": "ControlNet", + "type": "diffusers_auto_model" + }, + "device": { + "label": "Device", + "options": { + "cpu": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "cpu", + "schemaVersion": 1, + "value": "cpu" + }, + "cpu:0": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "cpu:0", + "schemaVersion": 1, + "value": "cpu:0" + } + }, + "type": "string", + "value": "cpu:0" + }, + "dtype": { + "label": "dtype", + "options": [ + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "float32", + "schemaVersion": 1, + "value": "float32" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "float16", + "schemaVersion": 1, + "value": "float16" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "bfloat16", + "schemaVersion": 1, + "value": "bfloat16" + } + ], + "value": "bfloat16" + }, + "image_encoder": { + "connectionRole": "image_encoder", + "display": "output", + "hidden": true, + "label": "Image Encoder", + "signal": { + "direction": "output", + "origin": "modiff_pipeline_identity", + "value": "Flux3ModularPipeline" + }, + "type": "diffusers_auto_model" + }, + "inpaint_compatibility": { + "default": "native", + "description": "Technical compatibility selection for the reviewed Qwen Edit inpainting candidate; existing nodes retain native policy.", + "hidden": true, + "label": "Inpaint Compatibility", + "options": [ + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "native", + "schemaVersion": 1, + "value": "native" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "whole_v1", + "schemaVersion": 1, + "value": "whole_v1" + } + ], + "type": "string" + }, + "lora_list": { "display": "input", "label": "Lora", "type": "custom_lora" }, + "model_type": { + "description": "Selects the Modular Diffusers pipeline class. This filters compatible checkpoints and publishes the component contract used by connected nodes; it is not the model checkpoint itself.", + "label": "Pipeline Type", + "onChange": "set_filters", + "options": { + "": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "", + "schemaVersion": 1, + "value": "" + }, + "AnimaModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Anima", + "schemaVersion": 1, + "value": "AnimaModularPipeline" + }, + "Cosmos3DistilledModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Cosmos 3 Distilled", + "schemaVersion": 1, + "value": "Cosmos3DistilledModularPipeline" + }, + "Cosmos3OmniModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Cosmos 3 Nano", + "schemaVersion": 1, + "value": "Cosmos3OmniModularPipeline" + }, + "DummyCustomPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Custom", + "schemaVersion": 1, + "value": "DummyCustomPipeline" + }, + "ErnieImageModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "ERNIE Image Turbo", + "schemaVersion": 1, + "value": "ErnieImageModularPipeline" + }, + "Flux2KleinBaseModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Flux 2 Klein Base", + "schemaVersion": 1, + "value": "Flux2KleinBaseModularPipeline" + }, + "Flux2KleinModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Flux 2 Klein Distilled", + "schemaVersion": 1, + "value": "Flux2KleinModularPipeline" + }, + "Flux2ModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Flux 2", + "schemaVersion": 1, + "value": "Flux2ModularPipeline" + }, + "Flux3DistilledModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "FLUX 3 Image Klein", + "schemaVersion": 1, + "value": "Flux3DistilledModularPipeline" + }, + "Flux3ModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "FLUX 3 Image Klein Base", + "schemaVersion": 1, + "value": "Flux3ModularPipeline" + }, + "FluxKontextModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Flux Kontext", + "schemaVersion": 1, + "value": "FluxKontextModularPipeline" + }, + "FluxModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Flux", + "schemaVersion": 1, + "value": "FluxModularPipeline" + }, + "HeliosModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Helios", + "schemaVersion": 1, + "value": "HeliosModularPipeline" + }, + "HeliosPyramidDistilledModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Helios Pyramid Distilled", + "schemaVersion": 1, + "value": "HeliosPyramidDistilledModularPipeline" + }, + "HeliosPyramidModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Helios Pyramid", + "schemaVersion": 1, + "value": "HeliosPyramidModularPipeline" + }, + "HunyuanVideo15ModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "HunyuanVideo 1.5", + "schemaVersion": 1, + "value": "HunyuanVideo15ModularPipeline" + }, + "Ideogram4ModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Ideogram 4 (Contract only)", + "schemaVersion": 1, + "value": "Ideogram4ModularPipeline" + }, + "Krea2ModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Krea 2 (Contract only)", + "schemaVersion": 1, + "value": "Krea2ModularPipeline" + }, + "Krea2TurboModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Krea 2 Turbo (Contract only)", + "schemaVersion": 1, + "value": "Krea2TurboModularPipeline" + }, + "LTX25ModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "LTX-2.5 (Contract only)", + "schemaVersion": 1, + "value": "LTX25ModularPipeline" + }, + "MiniMaxH3ModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "MiniMax H3", + "schemaVersion": 1, + "value": "MiniMaxH3ModularPipeline" + }, + "MiniMaxMusic3ModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "MiniMax Music 3", + "schemaVersion": 1, + "value": "MiniMaxMusic3ModularPipeline" + }, + "QwenImageEditModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Qwen-Image-Edit", + "schemaVersion": 1, + "value": "QwenImageEditModularPipeline" + }, + "QwenImageEditPlusModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Qwen-Image-Edit-2511", + "schemaVersion": 1, + "value": "QwenImageEditPlusModularPipeline" + }, + "QwenImageLayeredModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Qwen-Image-Layered", + "schemaVersion": 1, + "value": "QwenImageLayeredModularPipeline" + }, + "QwenImageModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Qwen-Image-2512", + "schemaVersion": 1, + "value": "QwenImageModularPipeline" + }, + "StableDiffusion3ModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Stable Diffusion 3 (Contract only)", + "schemaVersion": 1, + "value": "StableDiffusion3ModularPipeline" + }, + "StableDiffusionXLModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Stable Diffusion XL", + "schemaVersion": 1, + "value": "StableDiffusionXLModularPipeline" + }, + "WanAnimate2DistilledModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Wan Animate 2 Distilled", + "schemaVersion": 1, + "value": "WanAnimate2DistilledModularPipeline" + }, + "WanAnimate2ModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Wan Animate 2", + "schemaVersion": 1, + "value": "WanAnimate2ModularPipeline" + }, + "WanImage2VideoModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "WAN2 I2V", + "schemaVersion": 1, + "value": "WanImage2VideoModularPipeline" + }, + "WanModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "WAN2 T2V", + "schemaVersion": 1, + "value": "WanModularPipeline" + }, + "ZImageModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Z-Image", + "schemaVersion": 1, + "value": "ZImageModularPipeline" + } + }, + "type": "string", + "value": "Flux3ModularPipeline" + }, + "modiff_pipeline_identity": { + "hidden": true, + "label": "Custom Pipeline Identity", + "type": "object", + "value": null + }, + "offload_mode": { + "default": "model_cpu", + "label": "Offload Mode", + "options": [ + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "auto_cpu", + "schemaVersion": 1, + "value": "auto_cpu" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "none", + "schemaVersion": 1, + "value": "none" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "model_cpu", + "schemaVersion": 1, + "value": "model_cpu" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "group_cpu", + "schemaVersion": 1, + "value": "group_cpu" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "group_disk", + "schemaVersion": 1, + "value": "group_disk" + } + ], + "type": "string", + "value": "model_cpu" + }, + "pipeline_components": { + "connectionRole": "pipeline_components", + "display": "output", + "hidden": false, + "label": "Pipeline Components", + "signal": { + "direction": "output", + "origin": "modiff_pipeline_identity", + "value": "Flux3ModularPipeline" + }, + "type": "diffusers_modular_pipeline_components" + }, + "quant_config": { "display": "input", "label": "Quant Config", "type": "quant_config" }, + "refresh_pipeline_identity_button": { + "display": "ui_button", + "hidden": true, + "label": "Review and Refresh Custom Contract", + "onChange": "refresh_pipeline_identity", + "value": false + }, + "repo_id": { + "display": "modelselect", + "fieldOptions": { + "filter": { "hub": { "className": ["Flux3ModularPipeline"] } }, + "noValidation": true, + "sources": ["hub", "local"] + }, + "label": "Repository ID", + "onChange": "refresh_pipeline_identity", + "type": "string", + "value": { "source": "hub", "value": "black-forest-labs/flux-3-image-klein-base" } + }, + "reviewed_variant": { + "description": "Select an immutable, reviewed checkpoint for this exact Modular Diffusers pipeline family. Changing it does not replace the workflow graph or reset its parameters.", + "fieldOptions": { "controlTier": "essential" }, + "hidden": true, + "label": "Model", + "options": [ + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "black-forest-labs/flux-3-image-klein-base", + "schemaVersion": 1, + "value": "black-forest-labs/flux-3-image-klein-base" + } + ], + "type": "string", + "value": "black-forest-labs/flux-3-image-klein-base" + }, + "revision": { + "description": "Required exact 40-character commit hash for Hub custom contracts.", + "label": "Revision", + "onChange": "refresh_pipeline_identity", + "type": "string", + "value": "1469d27cfb9bb1bd81d3a93f5a023b39dbf136e4" + }, + "scheduler": { + "connectionRole": "scheduler", + "display": "output", + "hidden": false, + "label": "Scheduler", + "signal": { + "direction": "output", + "origin": "modiff_pipeline_identity", + "value": "Flux3ModularPipeline" + }, + "type": "diffusers_auto_model" + }, + "text_encoders": { + "connectionRole": "text_encoders", + "display": "output", + "hidden": false, + "label": "Text Encoders", + "signal": { + "direction": "output", + "origin": "modiff_pipeline_identity", + "value": "Flux3ModularPipeline" + }, + "type": "diffusers_auto_models" + }, + "trust_remote_code": { + "description": "Repository code execution is disabled; keep this off for contract preview.", + "label": "Trust Remote Code", + "onChange": "refresh_pipeline_identity", + "type": "boolean", + "value": false + }, + "unet": { "display": "input", "hidden": false, "label": "Denoise Model", "type": "diffusers_auto_model" }, + "unet_out": { + "connectionRole": "denoiser", + "display": "output", + "hidden": false, + "label": "Denoise Model", + "signal": { + "direction": "output", + "origin": "modiff_pipeline_identity", + "value": "Flux3ModularPipeline" + }, + "type": "diffusers_auto_model" + }, + "vae": { "display": "input", "hidden": false, "label": "VAE", "type": "diffusers_auto_model" }, + "vae_out": { + "connectionRole": "vae", + "display": "output", + "hidden": false, + "label": "VAE", + "signal": { + "direction": "output", + "origin": "modiff_pipeline_identity", + "value": "Flux3ModularPipeline" + }, + "type": "diffusers_auto_model" + }, + "vae_slicing": { + "default": null, + "description": "An unset policy preserves the native VAE configuration; templates may bind an explicit boolean.", + "hidden": true, + "label": "VAE Slicing", + "type": "boolean" + }, + "vae_tiling": { + "default": null, + "description": "An unset policy preserves the native VAE configuration; templates may bind an explicit boolean.", + "hidden": true, + "label": "VAE Tiling", + "type": "boolean" + }, + "weight_format": { + "default": "native", + "description": "Select a backend-declared immutable component format. Missing reviewed files must be installed through Model Manager.", + "fieldOptions": { "controlTier": "advanced" }, + "hidden": false, + "label": "Weight Format", + "options": [ + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "native", + "schemaVersion": 1, + "value": "native" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "fp8r", + "schemaVersion": 1, + "value": "fp8r" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "nvfp4", + "schemaVersion": 1, + "value": "nvfp4" + } + ], + "type": "string" + }, + "weight_loading_mode": { + "default": "cpu", + "description": "Load weights on CPU or CUDA before disk offload. CUDA loading needs room for a complete component and is available only for supported models.", + "fieldOptions": { "controlTier": "advanced" }, + "label": "Weight Loading", + "options": [ + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "cpu", + "schemaVersion": 1, + "value": "cpu" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "cuda", + "schemaVersion": 1, + "value": "cuda" + } + ], + "type": "string" + }, + "workflow_id": { + "description": "Exact reviewed component partition selected by a first-party Cluster Node.", + "hidden": true, + "label": "Reviewed Workflow", + "type": "string", + "value": "text2image" + } + }, + "resizable": true, + "skipParamsCheck": true, + "style": {}, + "time": [0, 0, 0], + "type": "custom" + }, + "operation": { + "binding": { "pipelineClass": "Flux3ModularPipeline", "values": { "model_type": "Flux3ModularPipeline" } }, + "blockName": null, + "decomposition": "loader", + "nodeKey": "modules.ModularDiffusers.ModelsLoader", + "nodeType": "loader", + "operationId": "diffusion.load_models", + "pipelineClass": "Flux3ModularPipeline", + "ports": [ + { + "direction": "input", + "hidden": false, + "name": "model_type", + "required": false, + "roles": ["value"], + "semanticName": "model_type", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": false, + "name": "repo_id", + "required": false, + "roles": ["value"], + "semanticName": "repo_id", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": true, + "name": "reviewed_variant", + "required": false, + "roles": ["value"], + "semanticName": "reviewed_variant", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": false, + "name": "device", + "required": false, + "roles": ["value"], + "semanticName": "device", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": false, + "name": "attention_backend", + "required": false, + "roles": ["value"], + "semanticName": "attention_backend", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": true, + "name": "vae_slicing", + "required": false, + "roles": ["value"], + "semanticName": "vae_slicing", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["boolean"] + }, + { + "direction": "input", + "hidden": true, + "name": "vae_tiling", + "required": false, + "roles": ["value"], + "semanticName": "vae_tiling", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["boolean"] + }, + { + "direction": "input", + "hidden": true, + "name": "inpaint_compatibility", + "required": false, + "roles": ["value"], + "semanticName": "inpaint_compatibility", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": false, + "name": "trust_remote_code", + "required": false, + "roles": ["value"], + "semanticName": "trust_remote_code", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["boolean"] + }, + { + "direction": "input", + "hidden": false, + "name": "revision", + "required": false, + "roles": ["value"], + "semanticName": "revision", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": true, + "name": "workflow_id", + "required": false, + "roles": ["value"], + "semanticName": "workflow_id", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": true, + "name": "modiff_pipeline_identity", + "required": false, + "roles": ["value"], + "semanticName": "modiff_pipeline_identity", + "semantics": { + "kind": "opaque", + "members": [], + "owner": "none", + "scope": "Flux3ModularPipeline", + "state": null + }, + "types": ["object"] + }, + { + "direction": "input", + "hidden": false, + "name": "auto_offload", + "required": false, + "roles": ["value"], + "semanticName": "auto_offload", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["boolean"] + }, + { + "direction": "input", + "hidden": false, + "name": "offload_mode", + "required": false, + "roles": ["value"], + "semanticName": "offload_mode", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": false, + "name": "weight_loading_mode", + "required": false, + "roles": ["value"], + "semanticName": "weight_loading_mode", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": true, + "name": "weight_format", + "required": false, + "roles": ["value"], + "semanticName": "weight_format", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": false, + "name": "unet", + "required": false, + "roles": ["component"], + "semanticName": "unet", + "semantics": { + "kind": "component", + "members": [ + { + "name": "transformer", + "type": "diffusers.models.transformers.transformer_flux3.Flux3Transformer2DModel" + } + ], + "owner": "same_loader", + "scope": "Flux3ModularPipeline", + "state": null + }, + "types": ["diffusers_auto_model"] + }, + { + "direction": "input", + "hidden": false, + "name": "vae", + "required": false, + "roles": ["component"], + "semanticName": "vae", + "semantics": { + "kind": "component", + "members": [ + { "name": "vae", "type": "diffusers.models.autoencoders.autoencoder_kl_flux2.AutoencoderKLFlux2" } + ], + "owner": "same_loader", + "scope": "Flux3ModularPipeline", + "state": null + }, + "types": ["diffusers_auto_model"] + }, + { + "direction": "input", + "hidden": true, + "name": "controlnet", + "required": false, + "roles": ["component"], + "semanticName": "controlnet", + "semantics": { + "kind": "component", + "members": [], + "owner": "same_loader", + "scope": "Flux3ModularPipeline", + "state": null + }, + "types": ["diffusers_auto_model"] + }, + { + "direction": "input", + "hidden": false, + "name": "lora_list", + "required": false, + "roles": ["value"], + "semanticName": "lora_list", + "semantics": { + "kind": "opaque", + "members": [], + "owner": "none", + "scope": "Flux3ModularPipeline", + "state": null + }, + "types": ["custom_lora"] + }, + { + "direction": "output", + "hidden": false, + "name": "text_encoders", + "required": false, + "roles": ["component"], + "semanticName": "text_encoders", + "semantics": { + "kind": "component", + "members": [ + { + "name": "text_encoder", + "type": "transformers.models.qwen3_vl.modeling_qwen3_vl.Qwen3VLForConditionalGeneration" + }, + { "name": "tokenizer", "type": "transformers.models.auto.processing_auto.AutoProcessor" } + ], + "owner": "same_loader", + "scope": "Flux3ModularPipeline", + "state": null + }, + "types": ["diffusers_auto_models"] + }, + { + "direction": "output", + "hidden": false, + "name": "unet_out", + "required": false, + "roles": ["component"], + "semanticName": "unet_out", + "semantics": { + "kind": "component", + "members": [ + { + "name": "transformer", + "type": "diffusers.models.transformers.transformer_flux3.Flux3Transformer2DModel" + } + ], + "owner": "same_loader", + "scope": "Flux3ModularPipeline", + "state": null + }, + "types": ["diffusers_auto_model"] + }, + { + "direction": "output", + "hidden": false, + "name": "vae_out", + "required": false, + "roles": ["component"], + "semanticName": "vae_out", + "semantics": { + "kind": "component", + "members": [ + { "name": "vae", "type": "diffusers.models.autoencoders.autoencoder_kl_flux2.AutoencoderKLFlux2" } + ], + "owner": "same_loader", + "scope": "Flux3ModularPipeline", + "state": null + }, + "types": ["diffusers_auto_model"] + }, + { + "direction": "output", + "hidden": false, + "name": "scheduler", + "required": false, + "roles": ["component"], + "semanticName": "scheduler", + "semantics": { + "kind": "component", + "members": [ + { + "name": "scheduler", + "type": "diffusers.schedulers.scheduling_flow_match_euler_discrete.FlowMatchEulerDiscreteScheduler" + } + ], + "owner": "same_loader", + "scope": "Flux3ModularPipeline", + "state": null + }, + "types": ["diffusers_auto_model"] + }, + { + "direction": "output", + "hidden": true, + "name": "image_encoder", + "required": false, + "roles": ["component"], + "semanticName": "image_encoder", + "semantics": { + "kind": "component", + "members": [], + "owner": "same_loader", + "scope": "Flux3ModularPipeline", + "state": null + }, + "types": ["diffusers_auto_model"] + }, + { + "direction": "output", + "hidden": false, + "name": "pipeline_components", + "required": false, + "roles": ["component"], + "semanticName": "pipeline_components", + "semantics": { + "kind": "component", + "members": [ + { "name": "guider", "type": "diffusers.guiders.classifier_free_guidance.ClassifierFreeGuidance" }, + { + "name": "image_processor", + "type": "diffusers.modular_pipelines.flux3.image_processor.Flux3ImageProcessor" + }, + { + "name": "scheduler", + "type": "diffusers.schedulers.scheduling_flow_match_euler_discrete.FlowMatchEulerDiscreteScheduler" + }, + { + "name": "text_encoder", + "type": "transformers.models.qwen3_vl.modeling_qwen3_vl.Qwen3VLForConditionalGeneration" + }, + { "name": "tokenizer", "type": "transformers.models.auto.processing_auto.AutoProcessor" }, + { + "name": "transformer", + "type": "diffusers.models.transformers.transformer_flux3.Flux3Transformer2DModel" + }, + { "name": "vae", "type": "diffusers.models.autoencoders.autoencoder_kl_flux2.AutoencoderKLFlux2" } + ], + "owner": "same_loader", + "scope": "Flux3ModularPipeline", + "state": null + }, + "types": ["diffusers_modular_pipeline_components"] + }, + { + "direction": "input", + "hidden": false, + "name": "quant_config", + "required": false, + "roles": ["value"], + "semanticName": "quant_config", + "semantics": { + "kind": "opaque", + "members": [], + "owner": "none", + "scope": "Flux3ModularPipeline", + "state": null + }, + "types": ["quant_config"] + } + ], + "support": "declared", + "task": "text_to_image", + "workflowId": "text2image" + } + }, + { + "node": { + "action": "Guider", + "cache": false, + "category": "sampler", + "description": "", + "label": "Guidance", + "memory": [0, 0, 0], + "module": "modules.ModularDiffusers", + "params": { + "enabled": { "label": "Enabled", "type": "boolean", "value": true }, + "guidance_rescale": { + "display": "slider", + "label": "Guidance Rescale", + "max": 10.0, + "min": 0.0, + "step": 0.1, + "type": "float", + "value": 0.0 + }, + "guidance_scale": { + "display": "slider", + "label": "Guidance Scale", + "max": 20.0, + "min": 1.0, + "step": 0.1, + "type": "float", + "value": 3.5 + }, + "guider": { + "fieldOptions": { "loading": true }, + "label": "Guider", + "onChange": [ + "updateNode", + { + "AutoGuidance": ["layers_config"], + "PerturbedAttentionGuidance": ["layers_config"], + "SkipLayerGuidance": ["layers_config"], + "SmoothedEnergyGuidance": ["layers_config"] + } + ], + "options": [ + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "ClassifierFreeGuidance", + "schemaVersion": 1, + "value": "ClassifierFreeGuidance" + } + ], + "type": "string", + "value": "ClassifierFreeGuidance" + }, + "guider_out": { + "display": "output", + "label": "Guider", + "onSignal": [ + { "action": "value", "target": "model_type" }, + { + "action": "value", + "data": { + "Flux2KleinBaseModularPipeline": ["ClassifierFreeGuidance"], + "Flux3ModularPipeline": ["ClassifierFreeGuidance"], + "FluxKontextModularPipeline": ["ClassifierFreeGuidance"], + "FluxModularPipeline": ["ClassifierFreeGuidance"], + "QwenImageEditModularPipeline": [ + "ClassifierFreeGuidance", + "SkipLayerGuidance", + "AdaptiveProjectedGuidance", + "AdaptiveProjectedMixGuidance", + "MagnitudeAwareGuidance", + "ClassifierFreeZeroStarGuidance", + "AutoGuidance", + "SmoothedEnergyGuidance", + "PerturbedAttentionGuidance", + "TangentialClassifierFreeGuidance", + "FrequencyDecoupledGuidance" + ], + "QwenImageEditPlusModularPipeline": [ + "ClassifierFreeGuidance", + "SkipLayerGuidance", + "AdaptiveProjectedGuidance", + "AdaptiveProjectedMixGuidance", + "MagnitudeAwareGuidance", + "ClassifierFreeZeroStarGuidance", + "AutoGuidance", + "SmoothedEnergyGuidance", + "PerturbedAttentionGuidance", + "TangentialClassifierFreeGuidance", + "FrequencyDecoupledGuidance" + ], + "QwenImageLayeredModularPipeline": [ + "ClassifierFreeGuidance", + "AdaptiveProjectedGuidance", + "AdaptiveProjectedMixGuidance", + "MagnitudeAwareGuidance", + "ClassifierFreeZeroStarGuidance", + "TangentialClassifierFreeGuidance", + "FrequencyDecoupledGuidance" + ], + "QwenImageModularPipeline": [ + "ClassifierFreeGuidance", + "SkipLayerGuidance", + "AdaptiveProjectedGuidance", + "AdaptiveProjectedMixGuidance", + "MagnitudeAwareGuidance", + "ClassifierFreeZeroStarGuidance", + "AutoGuidance", + "SmoothedEnergyGuidance", + "PerturbedAttentionGuidance", + "TangentialClassifierFreeGuidance", + "FrequencyDecoupledGuidance" + ], + "StableDiffusionXLModularPipeline": [ + "ClassifierFreeGuidance", + "SkipLayerGuidance", + "AdaptiveProjectedGuidance", + "AdaptiveProjectedMixGuidance", + "MagnitudeAwareGuidance", + "ClassifierFreeZeroStarGuidance", + "AutoGuidance", + "SmoothedEnergyGuidance", + "PerturbedAttentionGuidance", + "TangentialClassifierFreeGuidance", + "FrequencyDecoupledGuidance" + ], + "WanImage2VideoModularPipeline": [ + "ClassifierFreeGuidance", + "AdaptiveProjectedGuidance", + "AdaptiveProjectedMixGuidance", + "MagnitudeAwareGuidance", + "ClassifierFreeZeroStarGuidance", + "TangentialClassifierFreeGuidance", + "FrequencyDecoupledGuidance" + ], + "WanModularPipeline": [ + "ClassifierFreeGuidance", + "AdaptiveProjectedGuidance", + "AdaptiveProjectedMixGuidance", + "MagnitudeAwareGuidance", + "ClassifierFreeZeroStarGuidance", + "TangentialClassifierFreeGuidance", + "FrequencyDecoupledGuidance" + ], + "ZImageModularPipeline": [ + "ClassifierFreeGuidance", + "AdaptiveProjectedGuidance", + "AdaptiveProjectedMixGuidance", + "MagnitudeAwareGuidance", + "ClassifierFreeZeroStarGuidance", + "TangentialClassifierFreeGuidance", + "FrequencyDecoupledGuidance" + ] + }, + "prop": "options", + "target": "guider" + }, + { "action": "signal", "target": "layers_config" } + ], + "signalCompatibility": { + "values": { + "Flux2KleinBaseModularPipeline": ["ClassifierFreeGuidance"], + "Flux3ModularPipeline": ["ClassifierFreeGuidance"], + "FluxKontextModularPipeline": ["ClassifierFreeGuidance"], + "FluxModularPipeline": ["ClassifierFreeGuidance"], + "QwenImageEditModularPipeline": [ + "ClassifierFreeGuidance", + "SkipLayerGuidance", + "AdaptiveProjectedGuidance", + "AdaptiveProjectedMixGuidance", + "MagnitudeAwareGuidance", + "ClassifierFreeZeroStarGuidance", + "AutoGuidance", + "SmoothedEnergyGuidance", + "PerturbedAttentionGuidance", + "TangentialClassifierFreeGuidance", + "FrequencyDecoupledGuidance" + ], + "QwenImageEditPlusModularPipeline": [ + "ClassifierFreeGuidance", + "SkipLayerGuidance", + "AdaptiveProjectedGuidance", + "AdaptiveProjectedMixGuidance", + "MagnitudeAwareGuidance", + "ClassifierFreeZeroStarGuidance", + "AutoGuidance", + "SmoothedEnergyGuidance", + "PerturbedAttentionGuidance", + "TangentialClassifierFreeGuidance", + "FrequencyDecoupledGuidance" + ], + "QwenImageLayeredModularPipeline": [ + "ClassifierFreeGuidance", + "AdaptiveProjectedGuidance", + "AdaptiveProjectedMixGuidance", + "MagnitudeAwareGuidance", + "ClassifierFreeZeroStarGuidance", + "TangentialClassifierFreeGuidance", + "FrequencyDecoupledGuidance" + ], + "QwenImageModularPipeline": [ + "ClassifierFreeGuidance", + "SkipLayerGuidance", + "AdaptiveProjectedGuidance", + "AdaptiveProjectedMixGuidance", + "MagnitudeAwareGuidance", + "ClassifierFreeZeroStarGuidance", + "AutoGuidance", + "SmoothedEnergyGuidance", + "PerturbedAttentionGuidance", + "TangentialClassifierFreeGuidance", + "FrequencyDecoupledGuidance" + ], + "StableDiffusionXLModularPipeline": [ + "ClassifierFreeGuidance", + "SkipLayerGuidance", + "AdaptiveProjectedGuidance", + "AdaptiveProjectedMixGuidance", + "MagnitudeAwareGuidance", + "ClassifierFreeZeroStarGuidance", + "AutoGuidance", + "SmoothedEnergyGuidance", + "PerturbedAttentionGuidance", + "TangentialClassifierFreeGuidance", + "FrequencyDecoupledGuidance" + ], + "WanImage2VideoModularPipeline": [ + "ClassifierFreeGuidance", + "AdaptiveProjectedGuidance", + "AdaptiveProjectedMixGuidance", + "MagnitudeAwareGuidance", + "ClassifierFreeZeroStarGuidance", + "TangentialClassifierFreeGuidance", + "FrequencyDecoupledGuidance" + ], + "WanModularPipeline": [ + "ClassifierFreeGuidance", + "AdaptiveProjectedGuidance", + "AdaptiveProjectedMixGuidance", + "MagnitudeAwareGuidance", + "ClassifierFreeZeroStarGuidance", + "TangentialClassifierFreeGuidance", + "FrequencyDecoupledGuidance" + ], + "ZImageModularPipeline": [ + "ClassifierFreeGuidance", + "AdaptiveProjectedGuidance", + "AdaptiveProjectedMixGuidance", + "MagnitudeAwareGuidance", + "ClassifierFreeZeroStarGuidance", + "TangentialClassifierFreeGuidance", + "FrequencyDecoupledGuidance" + ] + } + }, + "type": "custom_guider" + }, + "layers_config": { "display": "input", "label": "Layers", "type": "layers_config" }, + "model_type": { "default": "", "hidden": true, "type": "string", "value": "Flux3ModularPipeline" }, + "start": { + "display": "slider", + "label": "Start", + "max": 1.0, + "min": 0.0, + "step": 0.01, + "type": "float", + "value": 0.0 + }, + "stop": { + "display": "slider", + "label": "Stop", + "max": 1.0, + "min": 0.01, + "step": 0.01, + "type": "float", + "value": 1.0 + }, + "use_original_formulation": { "label": "Original Formulation", "type": "boolean", "value": false } + }, + "resizable": true, + "skipParamsCheck": true, + "style": {}, + "time": [0, 0, 0], + "type": "custom" + }, + "operation": { + "binding": { "pipelineClass": "Flux3ModularPipeline", "values": { "model_type": "Flux3ModularPipeline" } }, + "blockName": null, + "decomposition": "bundle", + "nodeKey": "modules.ModularDiffusers.Guider", + "nodeType": "guidance", + "operationId": "diffusion.guidance", + "pipelineClass": "Flux3ModularPipeline", + "ports": [ + { + "direction": "input", + "hidden": true, + "name": "model_type", + "required": false, + "roles": ["value"], + "semanticName": "model_type", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": false, + "name": "guider", + "required": false, + "roles": ["value"], + "semanticName": "guider", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": false, + "name": "guidance_scale", + "required": false, + "roles": ["value"], + "semanticName": "guidance_scale", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["float"] + }, + { + "direction": "input", + "hidden": false, + "name": "guidance_rescale", + "required": false, + "roles": ["value"], + "semanticName": "guidance_rescale", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["float"] + }, + { + "direction": "input", + "hidden": false, + "name": "use_original_formulation", + "required": false, + "roles": ["value"], + "semanticName": "use_original_formulation", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["boolean"] + }, + { + "direction": "input", + "hidden": false, + "name": "enabled", + "required": false, + "roles": ["value"], + "semanticName": "enabled", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["boolean"] + }, + { + "direction": "input", + "hidden": false, + "name": "start", + "required": false, + "roles": ["value"], + "semanticName": "start", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["float"] + }, + { + "direction": "input", + "hidden": false, + "name": "stop", + "required": false, + "roles": ["value"], + "semanticName": "stop", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["float"] + }, + { + "direction": "output", + "hidden": false, + "name": "guider_out", + "required": false, + "roles": ["component"], + "semanticName": "guider_out", + "semantics": { + "kind": "component", + "members": [], + "owner": "same_loader", + "scope": "Flux3ModularPipeline", + "state": null + }, + "types": ["custom_guider"] + }, + { + "direction": "input", + "hidden": false, + "name": "layers_config", + "required": false, + "roles": ["value"], + "semanticName": "layers_config", + "semantics": { + "kind": "opaque", + "members": [], + "owner": "none", + "scope": "Flux3ModularPipeline", + "state": null + }, + "types": ["layers_config"] + } + ], + "support": "declared", + "task": "text_to_image", + "workflowId": "text2image" + } + }, + { + "node": { + "action": "EncodePrompt", + "cache": false, + "category": "embedding", + "description": "", + "label": "Encode Prompt", + "memory": [0, 0, 0], + "module": "modules.ModularDiffusers", + "params": { + "doc": { "display": "output", "label": "Doc", "type": "string" }, + "embeddings": { "display": "output", "label": "Text Embeddings", "type": "embeddings" }, + "guider": { + "description": "Shared Diffusers guidance used by prompt encoding and denoising when the selected pipeline supports it.", + "display": "input", + "hidden": true, + "label": "Guider", + "type": "custom_guider" + }, + "layout_conditioning": { + "default": null, + "display": "layout", + "fieldOptions": { + "layoutConditioning": { + "schemaVersion": 2, + "sourceRegions": false, + "supportsBoundSourceRegions": true + } + }, + "label": "Layout Conditioning", + "type": "layout_conditioning" + }, + "layout_reference_summary": { + "description": "Display-only ordered reference identities and actual preprocessing sizes from the current encoder cache.", + "display": "output", + "hidden": true, + "label": "Bound Reference Summary", + "type": "string" + }, + "max_sequence_length": { + "default": 8192, + "label": "Maximum Sequence Length", + "max": 8192, + "min": 1, + "step": 1, + "type": "int" + }, + "negative_prompt": { "default": "", "display": "textarea", "label": "Negative Prompt", "type": "string" }, + "prompt": { + "default": "", + "display": "textarea", + "fieldOptions": { "exampleAttribution": "MoDiff task example" }, + "label": "Prompt *", + "type": "string", + "value": "A red ceramic teapot on a wooden table beside a window, soft morning light, detailed photograph." + }, + "prompt_input": { + "description": "Optional connected prompt. When connected, this replaces the inline Prompt value.", + "display": "input", + "label": "Prompt Input", + "type": "string" + }, + "reference_binding": { + "default": null, + "display": "input", + "fieldOptions": { "referenceBinding": { "maxReferences": 10, "schemaVersion": 1 } }, + "label": "Reference Binding", + "type": "reference_conditioning" + }, + "text_encoder_out_layers": { + "default": [4, 8, 12, 16, 20, 24, 28, 32], + "display": "select", + "fieldOptions": { "multiple": true, "tupleLength": 8, "tupleValue": true }, + "label": "Text Encoder Layers", + "options": [ + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "0", + "schemaVersion": 1, + "value": "0" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "1", + "schemaVersion": 1, + "value": "1" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "2", + "schemaVersion": 1, + "value": "2" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "3", + "schemaVersion": 1, + "value": "3" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "4", + "schemaVersion": 1, + "value": "4" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "5", + "schemaVersion": 1, + "value": "5" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "6", + "schemaVersion": 1, + "value": "6" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "7", + "schemaVersion": 1, + "value": "7" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "8", + "schemaVersion": 1, + "value": "8" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "9", + "schemaVersion": 1, + "value": "9" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "10", + "schemaVersion": 1, + "value": "10" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "11", + "schemaVersion": 1, + "value": "11" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "12", + "schemaVersion": 1, + "value": "12" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "13", + "schemaVersion": 1, + "value": "13" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "14", + "schemaVersion": 1, + "value": "14" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "15", + "schemaVersion": 1, + "value": "15" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "16", + "schemaVersion": 1, + "value": "16" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "17", + "schemaVersion": 1, + "value": "17" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "18", + "schemaVersion": 1, + "value": "18" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "19", + "schemaVersion": 1, + "value": "19" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "20", + "schemaVersion": 1, + "value": "20" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "21", + "schemaVersion": 1, + "value": "21" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "22", + "schemaVersion": 1, + "value": "22" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "23", + "schemaVersion": 1, + "value": "23" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "24", + "schemaVersion": 1, + "value": "24" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "25", + "schemaVersion": 1, + "value": "25" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "26", + "schemaVersion": 1, + "value": "26" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "27", + "schemaVersion": 1, + "value": "27" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "28", + "schemaVersion": 1, + "value": "28" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "29", + "schemaVersion": 1, + "value": "29" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "30", + "schemaVersion": 1, + "value": "30" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "31", + "schemaVersion": 1, + "value": "31" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "32", + "schemaVersion": 1, + "value": "32" + } + ], + "type": "int" + }, + "text_encoders": { + "display": "input", + "label": "Text Encoders *", + "onSignal": "update_node", + "required": true, + "signalCompatibility": { "role": "text_encoders" }, + "type": "diffusers_auto_models" + } + }, + "resizable": true, + "skipParamsCheck": true, + "style": {}, + "time": [0, 0, 0], + "type": "custom" + }, + "operation": { + "binding": { "pipelineClass": "Flux3ModularPipeline", "values": {} }, + "blockName": "text_encoder", + "decomposition": "block", + "nodeKey": "modules.ModularDiffusers.EncodePrompt", + "nodeType": "text_encoder", + "operationId": "diffusion.encode_prompt", + "pipelineClass": "Flux3ModularPipeline", + "ports": [ + { + "direction": "input", + "hidden": false, + "name": "prompt", + "required": true, + "roles": ["value"], + "semanticName": "prompt", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": false, + "name": "negative_prompt", + "required": false, + "roles": ["value"], + "semanticName": "negative_prompt", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": false, + "name": "max_sequence_length", + "required": false, + "roles": ["value"], + "semanticName": "max_sequence_length", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["int"] + }, + { + "direction": "input", + "hidden": false, + "name": "text_encoder_out_layers", + "required": false, + "roles": ["value"], + "semanticName": "text_encoder_out_layers", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["int"] + }, + { + "direction": "input", + "hidden": false, + "name": "text_encoders", + "required": true, + "roles": ["component"], + "semanticName": "text_encoders", + "semantics": { + "kind": "component", + "members": [ + { + "name": "text_encoder", + "type": "transformers.models.qwen3_vl.modeling_qwen3_vl.Qwen3VLForConditionalGeneration" + }, + { "name": "tokenizer", "type": "transformers.models.auto.processing_auto.AutoProcessor" } + ], + "owner": "same_loader", + "scope": "Flux3ModularPipeline", + "state": null + }, + "types": ["diffusers_auto_models"] + }, + { + "direction": "output", + "hidden": false, + "name": "embeddings", + "required": false, + "roles": ["value"], + "semanticName": "embeddings", + "semantics": { + "kind": "conditioning", + "members": [], + "owner": "same_loader", + "scope": "Flux3ModularPipeline", + "state": null + }, + "types": ["embeddings"] + }, + { + "direction": "output", + "hidden": false, + "name": "doc", + "required": false, + "roles": ["value"], + "semanticName": "doc", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": false, + "name": "layout_conditioning", + "required": false, + "roles": ["value"], + "semanticName": "layout_conditioning", + "semantics": { + "kind": "opaque", + "members": [], + "owner": "none", + "scope": "Flux3ModularPipeline", + "state": null + }, + "types": ["layout_conditioning"] + }, + { + "direction": "input", + "hidden": false, + "name": "reference_binding", + "required": false, + "roles": ["value"], + "semanticName": "reference_binding", + "semantics": { + "kind": "opaque", + "members": [], + "owner": "none", + "scope": "Flux3ModularPipeline", + "state": null + }, + "types": ["reference_conditioning"] + }, + { + "direction": "input", + "hidden": false, + "name": "prompt_input", + "required": false, + "roles": ["value"], + "semanticName": "prompt", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + } + ], + "support": "declared", + "task": "text_to_image", + "workflowId": "text2image" + } + }, + { + "node": { + "action": "Denoise", + "cache": false, + "category": "sampler", + "description": "", + "label": "Denoise", + "memory": [0, 0, 0], + "module": "modules.ModularDiffusers", + "params": { + "doc": { "display": "output", "label": "Doc", "type": "string" }, + "embeddings": { "display": "input", "label": "Text Embeddings *", "type": "embeddings" }, + "guider": { "display": "input", "label": "Guider", "type": "custom_guider" }, + "height": { "default": 1024, "label": "Height", "min": 64, "step": 16, "type": "int", "value": 1024 }, + "image_cond_latents": { "display": "input", "label": "Reference Latents", "type": "latents" }, + "latents": { "display": "output", "label": "Latents", "type": "latents" }, + "num_images_per_prompt": { + "default": 1, + "label": "Images Per Prompt", + "max": 8, + "min": 1, + "step": 1, + "type": "int" + }, + "num_inference_steps": { + "default": 50, + "display": "slider", + "label": "Steps", + "max": 100, + "min": 1, + "type": "int", + "value": 50 + }, + "reference_binding": { + "default": null, + "display": "input", + "fieldOptions": { "referenceBinding": { "maxReferences": 10, "schemaVersion": 1 } }, + "label": "Reference Binding", + "type": "reference_conditioning" + }, + "scheduler": { + "display": "input", + "label": "Scheduler *", + "signalCompatibility": { "role": "scheduler" }, + "type": "diffusers_auto_model" + }, + "seed": { + "default": 0, + "display": "random", + "label": "Seed", + "max": 4294967295, + "min": 0, + "type": "int" + }, + "unet": { + "display": "input", + "label": "Denoise Model *", + "onSignal": [ + "update_node", + { "action": "signal", "target": "guider" }, + { "action": "signal", "target": "controlnet_bundle" } + ], + "required": true, + "signalCompatibility": { "role": "denoiser" }, + "type": "diffusers_auto_model" + }, + "width": { "default": 1024, "label": "Width", "min": 64, "step": 16, "type": "int", "value": 1024 } + }, + "resizable": true, + "skipParamsCheck": true, + "style": {}, + "time": [0, 0, 0], + "type": "custom" + }, + "operation": { + "binding": { "pipelineClass": "Flux3ModularPipeline", "values": {} }, + "blockName": "denoise", + "decomposition": "block", + "nodeKey": "modules.ModularDiffusers.Denoise", + "nodeType": "denoise", + "operationId": "diffusion.denoise", + "pipelineClass": "Flux3ModularPipeline", + "ports": [ + { + "direction": "input", + "hidden": false, + "name": "embeddings", + "required": true, + "roles": ["value"], + "semanticName": "embeddings", + "semantics": { + "kind": "conditioning", + "members": [], + "owner": "same_loader", + "scope": "Flux3ModularPipeline", + "state": null + }, + "types": ["embeddings"] + }, + { + "direction": "input", + "hidden": false, + "name": "width", + "required": false, + "roles": ["value"], + "semanticName": "width", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["int"] + }, + { + "direction": "input", + "hidden": false, + "name": "height", + "required": false, + "roles": ["value"], + "semanticName": "height", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["int"] + }, + { + "direction": "input", + "hidden": false, + "name": "seed", + "required": false, + "roles": ["value"], + "semanticName": "seed", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["int"] + }, + { + "direction": "input", + "hidden": false, + "name": "num_inference_steps", + "required": false, + "roles": ["value"], + "semanticName": "num_inference_steps", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["int"] + }, + { + "direction": "input", + "hidden": false, + "name": "num_images_per_prompt", + "required": false, + "roles": ["value"], + "semanticName": "num_images_per_prompt", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["int"] + }, + { + "direction": "input", + "hidden": false, + "name": "image_cond_latents", + "required": false, + "roles": ["value"], + "semanticName": "image_cond_latents", + "semantics": { + "kind": "latents", + "members": [], + "owner": "same_loader", + "scope": "Flux3ModularPipeline", + "state": null + }, + "types": ["latents"] + }, + { + "direction": "input", + "hidden": false, + "name": "unet", + "required": true, + "roles": ["component"], + "semanticName": "unet", + "semantics": { + "kind": "component", + "members": [ + { + "name": "transformer", + "type": "diffusers.models.transformers.transformer_flux3.Flux3Transformer2DModel" + } + ], + "owner": "same_loader", + "scope": "Flux3ModularPipeline", + "state": null + }, + "types": ["diffusers_auto_model"] + }, + { + "direction": "input", + "hidden": false, + "name": "scheduler", + "required": true, + "roles": ["component"], + "semanticName": "scheduler", + "semantics": { + "kind": "component", + "members": [ + { + "name": "scheduler", + "type": "diffusers.schedulers.scheduling_flow_match_euler_discrete.FlowMatchEulerDiscreteScheduler" + } + ], + "owner": "same_loader", + "scope": "Flux3ModularPipeline", + "state": null + }, + "types": ["diffusers_auto_model"] + }, + { + "direction": "input", + "hidden": false, + "name": "guider", + "required": false, + "roles": ["component"], + "semanticName": "guider", + "semantics": { + "kind": "component", + "members": [ + { "name": "guider", "type": "diffusers.guiders.classifier_free_guidance.ClassifierFreeGuidance" } + ], + "owner": "same_loader", + "scope": "Flux3ModularPipeline", + "state": null + }, + "types": ["custom_guider"] + }, + { + "direction": "output", + "hidden": false, + "name": "latents", + "required": false, + "roles": ["value"], + "semanticName": "latents", + "semantics": { + "kind": "latents", + "members": [], + "owner": "same_loader", + "scope": "Flux3ModularPipeline", + "state": null + }, + "types": ["latents"] + }, + { + "direction": "output", + "hidden": false, + "name": "doc", + "required": false, + "roles": ["value"], + "semanticName": "doc", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": false, + "name": "reference_binding", + "required": false, + "roles": ["value"], + "semanticName": "reference_binding", + "semantics": { + "kind": "opaque", + "members": [], + "owner": "none", + "scope": "Flux3ModularPipeline", + "state": null + }, + "types": ["reference_conditioning"] + } + ], + "support": "declared", + "task": "text_to_image", + "workflowId": "text2image" + } + }, + { + "node": { + "action": "DecodeLatents", + "cache": false, + "category": "sampler", + "description": "", + "label": "Decode Latents", + "memory": [0, 0, 0], + "module": "modules.ModularDiffusers", + "params": { + "doc": { "display": "output", "label": "Doc", "type": "string" }, + "images": { "display": "output", "label": "Images", "type": "image" }, + "latents": { "display": "input", "label": "Latents *", "type": "latents" }, + "vae": { + "display": "input", + "label": "VAE *", + "onSignal": "update_node", + "signalCompatibility": { "role": "vae" }, + "type": "diffusers_auto_model" + } + }, + "resizable": true, + "skipParamsCheck": true, + "style": {}, + "time": [0, 0, 0], + "type": "custom" + }, + "operation": { + "binding": { "pipelineClass": "Flux3ModularPipeline", "values": {} }, + "blockName": "decode", + "decomposition": "block", + "nodeKey": "modules.ModularDiffusers.DecodeLatents", + "nodeType": "decoder", + "operationId": "diffusion.decode_latents", + "pipelineClass": "Flux3ModularPipeline", + "ports": [ + { + "direction": "input", + "hidden": false, + "name": "latents", + "required": true, + "roles": ["value"], + "semanticName": "latents", + "semantics": { + "kind": "latents", + "members": [], + "owner": "same_loader", + "scope": "Flux3ModularPipeline", + "state": null + }, + "types": ["latents"] + }, + { + "direction": "input", + "hidden": false, + "name": "vae", + "required": true, + "roles": ["component"], + "semanticName": "vae", + "semantics": { + "kind": "component", + "members": [ + { "name": "vae", "type": "diffusers.models.autoencoders.autoencoder_kl_flux2.AutoencoderKLFlux2" } + ], + "owner": "same_loader", + "scope": "Flux3ModularPipeline", + "state": null + }, + "types": ["diffusers_auto_model"] + }, + { + "direction": "output", + "hidden": false, + "name": "images", + "required": false, + "roles": ["value"], + "semanticName": "images", + "semantics": { "kind": "media", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["image"] + }, + { + "direction": "output", + "hidden": false, + "name": "doc", + "required": false, + "roles": ["value"], + "semanticName": "doc", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + } + ], + "support": "declared", + "task": "text_to_image", + "workflowId": "text2image" + } + } + ], + "pipelineClass": "Flux3ModularPipeline", + "requiredInputs": [{ "field": "prompt", "operationId": "diffusion.encode_prompt" }], + "schemaVersion": 1, + "sharedInputs": [], + "task": "text_to_image", + "upstreamBlocks": ["text_encoder", "denoise", "decode"], + "workflowId": "text2image" + }, + { + "authoring": { + "ancillaryOperations": [ + { + "adapter": { + "declarationSha256": "sha256:2a3d4685988b418115008bbb95fb3e948097580c0bedd2940ea3fe1e40254dc2", + "id": "transformers-prompt-enhancement-v1" + }, + "bindings": { + "output": { "field": "proposal_summary", "role": "proposal" }, + "owner": { + "layoutField": "layout_conditioning", + "promptField": "prompt", + "referenceSource": null, + "role": "prompt" + }, + "request": { + "imagesField": "images", + "layoutField": "layout_conditioning", + "promptField": "prompt", + "role": "proposal" + } + }, + "contentHash": "studio-ancillary-v1-da9609cb", + "edges": [["provider", "model", "proposal", "model"]], + "executionPurpose": "explicit_preview", + "fieldOverrides": [ + ["proposal", "enhancement_max_new_tokens", { "hidden": false }], + ["proposal", "max_new_tokens", { "hidden": true }] + ], + "id": "flux3-klein:official:text-to-image:prompt-preview-append-fp32:v1:preview", + "initialValues": [ + ["provider", "model_id", { "source": "hub", "value": "black-forest-labs/flux-3-image-klein-pup" }], + ["provider", "revision", "3f3edb52b2c55de0d49feab28598b68f7f8e4830"], + ["proposal", "operation", "enhance_prompt_append_details"], + ["provider", "dtype", "float32"], + ["provider", "device", "cuda:0"], + ["provider", "quantization_mode", "none"], + ["proposal", "max_input_tokens", 4096] + ], + "layoutPolicy": "append-details-preserve-layout-v1", + "parent": { + "authoringRecipeId": "flux3-klein:official:text-to-image:prompt-preview-append-fp32:v1", + "baseSpecContentHash": "studio-spec-v1-8411b4e0", + "baseSpecId": "flux3-klein:official-provider:v1:text-to-image:v1", + "executionProfileId": "flux3-klein:official-provider:v1", + "pipelineClass": "Flux3DistilledModularPipeline", + "task": "text_to_image" + }, + "roles": [ + ["provider", "modules.HuggingFaceTransformers.LoadImageTextToTextModel", -720, -400], + ["proposal", "modules.HuggingFaceTransformers.GenerateImageVideoText", -360, -400] + ], + "schemaVersion": 1, + "sourceRegions": false, + "verification": { + "adapter": { + "declarationSha256": "sha256:2a3d4685988b418115008bbb95fb3e948097580c0bedd2940ea3fe1e40254dc2", + "id": "transformers-prompt-enhancement-v1" + }, + "chatTemplateSha256": "sha256:a4aee8afcf2e0711942cf848899be66016f8d14a889ff9ede07bca099c28f715", + "layoutRequestSuffixSha256": "sha256:5c48f090514be3472650c23ccd5f6cc19077bf68cd163338aaf6903f720a7561", + "modelReceipt": { + "library": "transformers", + "loader": { "modelAutoClass": "AutoModelForImageTextToText", "preprocessorAutoClass": "AutoProcessor" }, + "runtime": { + "architectures": ["Qwen3_5ForConditionalGeneration"], + "modelClass": "Qwen3_5ForConditionalGeneration", + "modelType": "qwen3_5", + "preprocessorClass": "Qwen3VLProcessor", + "transformersVersion": "5.18.0" + }, + "schemaVersion": 1, + "security": { + "hostedInference": false, + "localFilesOnly": true, + "safetensorsOnly": true, + "trustRemoteCode": false + }, + "source": { + "kind": "hub", + "repository": "black-forest-labs/flux-3-image-klein-pup", + "revision": "3f3edb52b2c55de0d49feab28598b68f7f8e4830" + }, + "task": "image-video-to-text" + }, + "quantizationRecipes": [ + { "mode": "none" }, + { + "computeDtype": "bfloat16", + "doubleQuant": true, + "mode": "bnb_4bit", + "quantType": "nf4", + "skipModules": ["lm_head", "model.visual"] + } + ], + "requestInputs": { + "maxImagePixelsField": "max_image_pixels", + "maxInputTokensField": "max_input_tokens", + "maxNewTokensField": "enhancement_max_new_tokens", + "minNewTokensField": "min_new_tokens", + "operationField": "operation", + "role": "proposal" + }, + "runtimeInputs": { + "deviceField": "device", + "dtypeField": "dtype", + "modelField": "model_id", + "quantizationField": "quantization_mode", + "revisionField": "revision", + "role": "provider" + }, + "schemaVersion": 1, + "supportedPromptModes": ["t2i", "i2i"], + "systemPromptSha256ByMode": { + "i2i": "95cec384d5b6d341caa9fb3f2c7ca45ee80c2364b3a95d4044aebf976f6dd3bf", + "i2i_bbox": "9ad10f947e401337cf155cac0518cc428159ef16f2f029f48aae2aaab8380a5e", + "t2i": "8b235a421bce2213d11ada01f5a1244443dd72303ffbb4cc9e5a0d8b0de5ab6f", + "t2i_bbox": "5f513d8ce5838732919f9e645507aa20ff373e88bf93132c768e063c9db3151f" + }, + "systemPromptsSha256": "sha256:b5da3ed8bc04ab59dbdb747930f7dbff847e868903fed8028f85ee1a4ac82fb4" + } + } + ], + "baseSpecContentHash": "studio-spec-v1-8411b4e0", + "baseSpecId": "flux3-klein:official-provider:v1:text-to-image:v1", + "bindings": [ + ["models", "model_type", "pipelineClass"], + ["models", "repo_id", "artifact"], + ["models", "revision", "defaultRevision"], + ["models", "dtype", "dtype"], + ["models", "device", "device"], + ["models", "auto_offload", "autoOffload"], + ["models", "offload_mode", "offloadMode"], + ["models", "trust_remote_code", "false"], + ["prompt", "prompt", "prompt"], + ["denoise", "width", "width"], + ["denoise", "height", "height"], + ["denoise", "seed", "seed"], + ["denoise", "num_inference_steps", "steps"], + ["prompt", "max_sequence_length", "maxSequenceLength"], + ["models", "weight_format", "weightFormat"] + ], + "canonicalizationVersion": 1, + "contentHash": "studio-authoring-v1-fb232b6a", + "edges": [ + ["models", "text_encoders", "prompt", "text_encoders"], + ["models", "unet_out", "denoise", "unet"], + ["models", "scheduler", "denoise", "scheduler"], + ["models", "vae_out", "decode", "vae"], + ["prompt", "embeddings", "denoise", "embeddings"], + ["denoise", "latents", "decode", "latents"], + ["decode", "images", "preview", "image"] + ], + "executionProfileIds": ["flux3-klein:official-provider:v1"], + "id": "flux3-klein:official:text-to-image:prompt-preview-append-fp32:v1", + "initialValues": [], + "roles": [ + ["models", "modules.ModularDiffusers.ModelsLoader", -720, -80], + ["prompt", "modules.ModularDiffusers.EncodePrompt", -360, -240], + ["denoise", "modules.ModularDiffusers.Denoise", 80, -80], + ["decode", "modules.ModularDiffusers.DecodeLatents", 440, -80], + ["preview", "modules.Image.Preview", 800, -80] + ], + "schemaVersion": 1 + }, + "edges": [ + { + "source": "diffusion.load_models", + "sourceHandle": "text_encoders", + "target": "diffusion.encode_prompt", + "targetHandle": "text_encoders" + }, + { + "source": "diffusion.load_models", + "sourceHandle": "scheduler", + "target": "diffusion.denoise", + "targetHandle": "scheduler" + }, + { + "source": "diffusion.load_models", + "sourceHandle": "unet_out", + "target": "diffusion.denoise", + "targetHandle": "unet" + }, + { + "source": "diffusion.load_models", + "sourceHandle": "vae_out", + "target": "diffusion.decode_latents", + "targetHandle": "vae" + }, + { + "source": "diffusion.encode_prompt", + "sourceHandle": "embeddings", + "target": "diffusion.denoise", + "targetHandle": "embeddings" + }, + { + "source": "diffusion.denoise", + "sourceHandle": "latents", + "target": "diffusion.decode_latents", + "targetHandle": "latents" + } + ], + "nodes": [ + { + "node": { + "action": "ModelsLoader", + "cache": false, + "category": "loader", + "description": "", + "label": "Load Models", + "memory": [0, 0, 0], + "module": "modules.ModularDiffusers", + "params": { + "attention_backend": { + "default": "inherit", + "description": "Inherit preserves existing native component defaults; explicit choices use the ordinary Diffusers attention API.", + "label": "Attention Backend", + "options": [ + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "inherit", + "schemaVersion": 1, + "value": "inherit" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "auto", + "schemaVersion": 1, + "value": "auto" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "native", + "schemaVersion": 1, + "value": "native" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "_native_math", + "schemaVersion": 1, + "value": "_native_math" + } + ], + "type": "string" + }, + "auto_offload": { "label": "Enable Auto Offload", "type": "boolean", "value": true }, + "controlnet": { + "display": "input", + "hidden": true, + "label": "ControlNet", + "type": "diffusers_auto_model" + }, + "device": { + "label": "Device", + "options": { + "cpu": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "cpu", + "schemaVersion": 1, + "value": "cpu" + }, + "cpu:0": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "cpu:0", + "schemaVersion": 1, + "value": "cpu:0" + } + }, + "type": "string", + "value": "cpu:0" + }, + "dtype": { + "label": "dtype", + "options": [ + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "float32", + "schemaVersion": 1, + "value": "float32" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "float16", + "schemaVersion": 1, + "value": "float16" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "bfloat16", + "schemaVersion": 1, + "value": "bfloat16" + } + ], + "value": "bfloat16" + }, + "image_encoder": { + "connectionRole": "image_encoder", + "display": "output", + "hidden": true, + "label": "Image Encoder", + "signal": { + "direction": "output", + "origin": "modiff_pipeline_identity", + "value": "Flux3DistilledModularPipeline" + }, + "type": "diffusers_auto_model" + }, + "inpaint_compatibility": { + "default": "native", + "description": "Technical compatibility selection for the reviewed Qwen Edit inpainting candidate; existing nodes retain native policy.", + "hidden": true, + "label": "Inpaint Compatibility", + "options": [ + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "native", + "schemaVersion": 1, + "value": "native" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "whole_v1", + "schemaVersion": 1, + "value": "whole_v1" + } + ], + "type": "string" + }, + "lora_list": { "display": "input", "label": "Lora", "type": "custom_lora" }, + "model_type": { + "description": "Selects the Modular Diffusers pipeline class. This filters compatible checkpoints and publishes the component contract used by connected nodes; it is not the model checkpoint itself.", + "label": "Pipeline Type", + "onChange": "set_filters", + "options": { + "": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "", + "schemaVersion": 1, + "value": "" + }, + "AnimaModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Anima", + "schemaVersion": 1, + "value": "AnimaModularPipeline" + }, + "Cosmos3DistilledModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Cosmos 3 Distilled", + "schemaVersion": 1, + "value": "Cosmos3DistilledModularPipeline" + }, + "Cosmos3OmniModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Cosmos 3 Nano", + "schemaVersion": 1, + "value": "Cosmos3OmniModularPipeline" + }, + "DummyCustomPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Custom", + "schemaVersion": 1, + "value": "DummyCustomPipeline" + }, + "ErnieImageModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "ERNIE Image Turbo", + "schemaVersion": 1, + "value": "ErnieImageModularPipeline" + }, + "Flux2KleinBaseModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Flux 2 Klein Base", + "schemaVersion": 1, + "value": "Flux2KleinBaseModularPipeline" + }, + "Flux2KleinModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Flux 2 Klein Distilled", + "schemaVersion": 1, + "value": "Flux2KleinModularPipeline" + }, + "Flux2ModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Flux 2", + "schemaVersion": 1, + "value": "Flux2ModularPipeline" + }, + "Flux3DistilledModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "FLUX 3 Image Klein", + "schemaVersion": 1, + "value": "Flux3DistilledModularPipeline" + }, + "Flux3ModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "FLUX 3 Image Klein Base", + "schemaVersion": 1, + "value": "Flux3ModularPipeline" + }, + "FluxKontextModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Flux Kontext", + "schemaVersion": 1, + "value": "FluxKontextModularPipeline" + }, + "FluxModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Flux", + "schemaVersion": 1, + "value": "FluxModularPipeline" + }, + "HeliosModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Helios", + "schemaVersion": 1, + "value": "HeliosModularPipeline" + }, + "HeliosPyramidDistilledModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Helios Pyramid Distilled", + "schemaVersion": 1, + "value": "HeliosPyramidDistilledModularPipeline" + }, + "HeliosPyramidModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Helios Pyramid", + "schemaVersion": 1, + "value": "HeliosPyramidModularPipeline" + }, + "HunyuanVideo15ModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "HunyuanVideo 1.5", + "schemaVersion": 1, + "value": "HunyuanVideo15ModularPipeline" + }, + "Ideogram4ModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Ideogram 4 (Contract only)", + "schemaVersion": 1, + "value": "Ideogram4ModularPipeline" + }, + "Krea2ModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Krea 2 (Contract only)", + "schemaVersion": 1, + "value": "Krea2ModularPipeline" + }, + "Krea2TurboModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Krea 2 Turbo (Contract only)", + "schemaVersion": 1, + "value": "Krea2TurboModularPipeline" + }, + "LTX25ModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "LTX-2.5 (Contract only)", + "schemaVersion": 1, + "value": "LTX25ModularPipeline" + }, + "MiniMaxH3ModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "MiniMax H3", + "schemaVersion": 1, + "value": "MiniMaxH3ModularPipeline" + }, + "MiniMaxMusic3ModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "MiniMax Music 3", + "schemaVersion": 1, + "value": "MiniMaxMusic3ModularPipeline" + }, + "QwenImageEditModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Qwen-Image-Edit", + "schemaVersion": 1, + "value": "QwenImageEditModularPipeline" + }, + "QwenImageEditPlusModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Qwen-Image-Edit-2511", + "schemaVersion": 1, + "value": "QwenImageEditPlusModularPipeline" + }, + "QwenImageLayeredModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Qwen-Image-Layered", + "schemaVersion": 1, + "value": "QwenImageLayeredModularPipeline" + }, + "QwenImageModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Qwen-Image-2512", + "schemaVersion": 1, + "value": "QwenImageModularPipeline" + }, + "StableDiffusion3ModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Stable Diffusion 3 (Contract only)", + "schemaVersion": 1, + "value": "StableDiffusion3ModularPipeline" + }, + "StableDiffusionXLModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Stable Diffusion XL", + "schemaVersion": 1, + "value": "StableDiffusionXLModularPipeline" + }, + "WanAnimate2DistilledModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Wan Animate 2 Distilled", + "schemaVersion": 1, + "value": "WanAnimate2DistilledModularPipeline" + }, + "WanAnimate2ModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Wan Animate 2", + "schemaVersion": 1, + "value": "WanAnimate2ModularPipeline" + }, + "WanImage2VideoModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "WAN2 I2V", + "schemaVersion": 1, + "value": "WanImage2VideoModularPipeline" + }, + "WanModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "WAN2 T2V", + "schemaVersion": 1, + "value": "WanModularPipeline" + }, + "ZImageModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Z-Image", + "schemaVersion": 1, + "value": "ZImageModularPipeline" + } + }, + "type": "string", + "value": "Flux3DistilledModularPipeline" + }, + "modiff_pipeline_identity": { + "hidden": true, + "label": "Custom Pipeline Identity", + "type": "object", + "value": null + }, + "offload_mode": { + "default": "model_cpu", + "label": "Offload Mode", + "options": [ + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "auto_cpu", + "schemaVersion": 1, + "value": "auto_cpu" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "none", + "schemaVersion": 1, + "value": "none" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "model_cpu", + "schemaVersion": 1, + "value": "model_cpu" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "group_cpu", + "schemaVersion": 1, + "value": "group_cpu" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "group_disk", + "schemaVersion": 1, + "value": "group_disk" + } + ], + "type": "string", + "value": "model_cpu" + }, + "pipeline_components": { + "connectionRole": "pipeline_components", + "display": "output", + "hidden": false, + "label": "Pipeline Components", + "signal": { + "direction": "output", + "origin": "modiff_pipeline_identity", + "value": "Flux3DistilledModularPipeline" + }, + "type": "diffusers_modular_pipeline_components" + }, + "quant_config": { "display": "input", "label": "Quant Config", "type": "quant_config" }, + "refresh_pipeline_identity_button": { + "display": "ui_button", + "hidden": true, + "label": "Review and Refresh Custom Contract", + "onChange": "refresh_pipeline_identity", + "value": false + }, + "repo_id": { + "display": "modelselect", + "fieldOptions": { + "filter": { "hub": { "className": ["Flux3DistilledModularPipeline"] } }, + "noValidation": true, + "sources": ["hub", "local"] + }, + "label": "Repository ID", + "onChange": "refresh_pipeline_identity", + "type": "string", + "value": { "source": "hub", "value": "black-forest-labs/flux-3-image-klein" } + }, + "reviewed_variant": { + "description": "Select an immutable, reviewed checkpoint for this exact Modular Diffusers pipeline family. Changing it does not replace the workflow graph or reset its parameters.", + "fieldOptions": { "controlTier": "essential" }, + "hidden": true, + "label": "Model", + "options": [ + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "black-forest-labs/flux-3-image-klein", + "schemaVersion": 1, + "value": "black-forest-labs/flux-3-image-klein" + } + ], + "type": "string", + "value": "black-forest-labs/flux-3-image-klein" + }, + "revision": { + "description": "Required exact 40-character commit hash for Hub custom contracts.", + "label": "Revision", + "onChange": "refresh_pipeline_identity", + "type": "string", + "value": "8454017f9ebaada30c998fccd9f67a80c7580f68" + }, + "scheduler": { + "connectionRole": "scheduler", + "display": "output", + "hidden": false, + "label": "Scheduler", + "signal": { + "direction": "output", + "origin": "modiff_pipeline_identity", + "value": "Flux3DistilledModularPipeline" + }, + "type": "diffusers_auto_model" + }, + "text_encoders": { + "connectionRole": "text_encoders", + "display": "output", + "hidden": false, + "label": "Text Encoders", + "signal": { + "direction": "output", + "origin": "modiff_pipeline_identity", + "value": "Flux3DistilledModularPipeline" + }, + "type": "diffusers_auto_models" + }, + "trust_remote_code": { + "description": "Repository code execution is disabled; keep this off for contract preview.", + "label": "Trust Remote Code", + "onChange": "refresh_pipeline_identity", + "type": "boolean", + "value": false + }, + "unet": { "display": "input", "hidden": false, "label": "Denoise Model", "type": "diffusers_auto_model" }, + "unet_out": { + "connectionRole": "denoiser", + "display": "output", + "hidden": false, + "label": "Denoise Model", + "signal": { + "direction": "output", + "origin": "modiff_pipeline_identity", + "value": "Flux3DistilledModularPipeline" + }, + "type": "diffusers_auto_model" + }, + "vae": { "display": "input", "hidden": false, "label": "VAE", "type": "diffusers_auto_model" }, + "vae_out": { + "connectionRole": "vae", + "display": "output", + "hidden": false, + "label": "VAE", + "signal": { + "direction": "output", + "origin": "modiff_pipeline_identity", + "value": "Flux3DistilledModularPipeline" + }, + "type": "diffusers_auto_model" + }, + "vae_slicing": { + "default": null, + "description": "An unset policy preserves the native VAE configuration; templates may bind an explicit boolean.", + "hidden": true, + "label": "VAE Slicing", + "type": "boolean" + }, + "vae_tiling": { + "default": null, + "description": "An unset policy preserves the native VAE configuration; templates may bind an explicit boolean.", + "hidden": true, + "label": "VAE Tiling", + "type": "boolean" + }, + "weight_format": { + "default": "native", + "description": "Select a backend-declared immutable component format. Missing reviewed files must be installed through Model Manager.", + "fieldOptions": { "controlTier": "advanced" }, + "hidden": false, + "label": "Weight Format", + "options": [ + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "native", + "schemaVersion": 1, + "value": "native" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "fp8r", + "schemaVersion": 1, + "value": "fp8r" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "nvfp4", + "schemaVersion": 1, + "value": "nvfp4" + } + ], + "type": "string" + }, + "weight_loading_mode": { + "default": "cpu", + "description": "Load weights on CPU or CUDA before disk offload. CUDA loading needs room for a complete component and is available only for supported models.", + "fieldOptions": { "controlTier": "advanced" }, + "label": "Weight Loading", + "options": [ + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "cpu", + "schemaVersion": 1, + "value": "cpu" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "cuda", + "schemaVersion": 1, + "value": "cuda" + } + ], + "type": "string" + }, + "workflow_id": { + "description": "Exact reviewed component partition selected by a first-party Cluster Node.", + "hidden": true, + "label": "Reviewed Workflow", + "type": "string", + "value": "text2image" + } + }, + "resizable": true, + "skipParamsCheck": true, + "style": {}, + "time": [0, 0, 0], + "type": "custom" + }, + "operation": { + "binding": { + "pipelineClass": "Flux3DistilledModularPipeline", + "values": { "model_type": "Flux3DistilledModularPipeline" } + }, + "blockName": null, + "decomposition": "loader", + "nodeKey": "modules.ModularDiffusers.ModelsLoader", + "nodeType": "loader", + "operationId": "diffusion.load_models", + "pipelineClass": "Flux3DistilledModularPipeline", + "ports": [ + { + "direction": "input", + "hidden": false, + "name": "model_type", + "required": false, + "roles": ["value"], + "semanticName": "model_type", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": false, + "name": "repo_id", + "required": false, + "roles": ["value"], + "semanticName": "repo_id", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": true, + "name": "reviewed_variant", + "required": false, + "roles": ["value"], + "semanticName": "reviewed_variant", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": false, + "name": "device", + "required": false, + "roles": ["value"], + "semanticName": "device", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": false, + "name": "attention_backend", + "required": false, + "roles": ["value"], + "semanticName": "attention_backend", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": true, + "name": "vae_slicing", + "required": false, + "roles": ["value"], + "semanticName": "vae_slicing", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["boolean"] + }, + { + "direction": "input", + "hidden": true, + "name": "vae_tiling", + "required": false, + "roles": ["value"], + "semanticName": "vae_tiling", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["boolean"] + }, + { + "direction": "input", + "hidden": true, + "name": "inpaint_compatibility", + "required": false, + "roles": ["value"], + "semanticName": "inpaint_compatibility", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": false, + "name": "trust_remote_code", + "required": false, + "roles": ["value"], + "semanticName": "trust_remote_code", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["boolean"] + }, + { + "direction": "input", + "hidden": false, + "name": "revision", + "required": false, + "roles": ["value"], + "semanticName": "revision", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": true, + "name": "workflow_id", + "required": false, + "roles": ["value"], + "semanticName": "workflow_id", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": true, + "name": "modiff_pipeline_identity", + "required": false, + "roles": ["value"], + "semanticName": "modiff_pipeline_identity", + "semantics": { + "kind": "opaque", + "members": [], + "owner": "none", + "scope": "Flux3DistilledModularPipeline", + "state": null + }, + "types": ["object"] + }, + { + "direction": "input", + "hidden": false, + "name": "auto_offload", + "required": false, + "roles": ["value"], + "semanticName": "auto_offload", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["boolean"] + }, + { + "direction": "input", + "hidden": false, + "name": "offload_mode", + "required": false, + "roles": ["value"], + "semanticName": "offload_mode", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": false, + "name": "weight_loading_mode", + "required": false, + "roles": ["value"], + "semanticName": "weight_loading_mode", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": true, + "name": "weight_format", + "required": false, + "roles": ["value"], + "semanticName": "weight_format", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": false, + "name": "unet", + "required": false, + "roles": ["component"], + "semanticName": "unet", + "semantics": { + "kind": "component", + "members": [ + { + "name": "transformer", + "type": "diffusers.models.transformers.transformer_flux3.Flux3Transformer2DModel" + } + ], + "owner": "same_loader", + "scope": "Flux3DistilledModularPipeline", + "state": null + }, + "types": ["diffusers_auto_model"] + }, + { + "direction": "input", + "hidden": false, + "name": "vae", + "required": false, + "roles": ["component"], + "semanticName": "vae", + "semantics": { + "kind": "component", + "members": [ + { "name": "vae", "type": "diffusers.models.autoencoders.autoencoder_kl_flux2.AutoencoderKLFlux2" } + ], + "owner": "same_loader", + "scope": "Flux3DistilledModularPipeline", + "state": null + }, + "types": ["diffusers_auto_model"] + }, + { + "direction": "input", + "hidden": true, + "name": "controlnet", + "required": false, + "roles": ["component"], + "semanticName": "controlnet", + "semantics": { + "kind": "component", + "members": [], + "owner": "same_loader", + "scope": "Flux3DistilledModularPipeline", + "state": null + }, + "types": ["diffusers_auto_model"] + }, + { + "direction": "input", + "hidden": false, + "name": "lora_list", + "required": false, + "roles": ["value"], + "semanticName": "lora_list", + "semantics": { + "kind": "opaque", + "members": [], + "owner": "none", + "scope": "Flux3DistilledModularPipeline", + "state": null + }, + "types": ["custom_lora"] + }, + { + "direction": "output", + "hidden": false, + "name": "text_encoders", + "required": false, + "roles": ["component"], + "semanticName": "text_encoders", + "semantics": { + "kind": "component", + "members": [ + { + "name": "text_encoder", + "type": "transformers.models.qwen3_vl.modeling_qwen3_vl.Qwen3VLForConditionalGeneration" + }, + { "name": "tokenizer", "type": "transformers.models.auto.processing_auto.AutoProcessor" } + ], + "owner": "same_loader", + "scope": "Flux3DistilledModularPipeline", + "state": null + }, + "types": ["diffusers_auto_models"] + }, + { + "direction": "output", + "hidden": false, + "name": "unet_out", + "required": false, + "roles": ["component"], + "semanticName": "unet_out", + "semantics": { + "kind": "component", + "members": [ + { + "name": "transformer", + "type": "diffusers.models.transformers.transformer_flux3.Flux3Transformer2DModel" + } + ], + "owner": "same_loader", + "scope": "Flux3DistilledModularPipeline", + "state": null + }, + "types": ["diffusers_auto_model"] + }, + { + "direction": "output", + "hidden": false, + "name": "vae_out", + "required": false, + "roles": ["component"], + "semanticName": "vae_out", + "semantics": { + "kind": "component", + "members": [ + { "name": "vae", "type": "diffusers.models.autoencoders.autoencoder_kl_flux2.AutoencoderKLFlux2" } + ], + "owner": "same_loader", + "scope": "Flux3DistilledModularPipeline", + "state": null + }, + "types": ["diffusers_auto_model"] + }, + { + "direction": "output", + "hidden": false, + "name": "scheduler", + "required": false, + "roles": ["component"], + "semanticName": "scheduler", + "semantics": { + "kind": "component", + "members": [ + { + "name": "scheduler", + "type": "diffusers.schedulers.scheduling_flow_match_euler_discrete.FlowMatchEulerDiscreteScheduler" + } + ], + "owner": "same_loader", + "scope": "Flux3DistilledModularPipeline", + "state": null + }, + "types": ["diffusers_auto_model"] + }, + { + "direction": "output", + "hidden": true, + "name": "image_encoder", + "required": false, + "roles": ["component"], + "semanticName": "image_encoder", + "semantics": { + "kind": "component", + "members": [], + "owner": "same_loader", + "scope": "Flux3DistilledModularPipeline", + "state": null + }, + "types": ["diffusers_auto_model"] + }, + { + "direction": "output", + "hidden": false, + "name": "pipeline_components", + "required": false, + "roles": ["component"], + "semanticName": "pipeline_components", + "semantics": { + "kind": "component", + "members": [ + { + "name": "image_processor", + "type": "diffusers.modular_pipelines.flux3.image_processor.Flux3ImageProcessor" + }, + { + "name": "scheduler", + "type": "diffusers.schedulers.scheduling_flow_match_euler_discrete.FlowMatchEulerDiscreteScheduler" + }, + { + "name": "text_encoder", + "type": "transformers.models.qwen3_vl.modeling_qwen3_vl.Qwen3VLForConditionalGeneration" + }, + { "name": "tokenizer", "type": "transformers.models.auto.processing_auto.AutoProcessor" }, + { + "name": "transformer", + "type": "diffusers.models.transformers.transformer_flux3.Flux3Transformer2DModel" + }, + { "name": "vae", "type": "diffusers.models.autoencoders.autoencoder_kl_flux2.AutoencoderKLFlux2" } + ], + "owner": "same_loader", + "scope": "Flux3DistilledModularPipeline", + "state": null + }, + "types": ["diffusers_modular_pipeline_components"] + }, + { + "direction": "input", + "hidden": false, + "name": "quant_config", + "required": false, + "roles": ["value"], + "semanticName": "quant_config", + "semantics": { + "kind": "opaque", + "members": [], + "owner": "none", + "scope": "Flux3DistilledModularPipeline", + "state": null + }, + "types": ["quant_config"] + } + ], + "support": "declared", + "task": "text_to_image", + "workflowId": "text2image" + } + }, + { + "node": { + "action": "EncodePrompt", + "cache": false, + "category": "embedding", + "description": "", + "label": "Encode Prompt", + "memory": [0, 0, 0], + "module": "modules.ModularDiffusers", + "params": { + "doc": { "display": "output", "label": "Doc", "type": "string" }, + "embeddings": { "display": "output", "label": "Text Embeddings", "type": "embeddings" }, + "guider": { + "description": "Shared Diffusers guidance used by prompt encoding and denoising when the selected pipeline supports it.", + "display": "input", + "hidden": true, + "label": "Guider", + "type": "custom_guider" + }, + "layout_conditioning": { + "default": null, + "display": "layout", + "fieldOptions": { + "layoutConditioning": { + "schemaVersion": 2, + "sourceRegions": false, + "supportsBoundSourceRegions": true + } + }, + "label": "Layout Conditioning", + "type": "layout_conditioning" + }, + "layout_reference_summary": { + "description": "Display-only ordered reference identities and actual preprocessing sizes from the current encoder cache.", + "display": "output", + "hidden": true, + "label": "Bound Reference Summary", + "type": "string" + }, + "max_sequence_length": { + "default": 8192, + "label": "Maximum Sequence Length", + "max": 8192, + "min": 1, + "step": 1, + "type": "int" + }, + "prompt": { + "default": "", + "display": "textarea", + "fieldOptions": { "exampleAttribution": "MoDiff task example" }, + "label": "Prompt *", + "type": "string", + "value": "A red ceramic teapot on a wooden table beside a window, soft morning light, detailed photograph." + }, + "prompt_input": { + "description": "Optional connected prompt. When connected, this replaces the inline Prompt value.", + "display": "input", + "label": "Prompt Input", + "type": "string" + }, + "reference_binding": { + "default": null, + "display": "input", + "fieldOptions": { "referenceBinding": { "maxReferences": 10, "schemaVersion": 1 } }, + "label": "Reference Binding", + "type": "reference_conditioning" + }, + "text_encoder_out_layers": { + "default": [4, 8, 12, 16, 20, 24, 28, 32], + "display": "select", + "fieldOptions": { "multiple": true, "tupleLength": 8, "tupleValue": true }, + "label": "Text Encoder Layers", + "options": [ + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "0", + "schemaVersion": 1, + "value": "0" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "1", + "schemaVersion": 1, + "value": "1" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "2", + "schemaVersion": 1, + "value": "2" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "3", + "schemaVersion": 1, + "value": "3" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "4", + "schemaVersion": 1, + "value": "4" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "5", + "schemaVersion": 1, + "value": "5" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "6", + "schemaVersion": 1, + "value": "6" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "7", + "schemaVersion": 1, + "value": "7" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "8", + "schemaVersion": 1, + "value": "8" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "9", + "schemaVersion": 1, + "value": "9" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "10", + "schemaVersion": 1, + "value": "10" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "11", + "schemaVersion": 1, + "value": "11" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "12", + "schemaVersion": 1, + "value": "12" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "13", + "schemaVersion": 1, + "value": "13" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "14", + "schemaVersion": 1, + "value": "14" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "15", + "schemaVersion": 1, + "value": "15" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "16", + "schemaVersion": 1, + "value": "16" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "17", + "schemaVersion": 1, + "value": "17" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "18", + "schemaVersion": 1, + "value": "18" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "19", + "schemaVersion": 1, + "value": "19" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "20", + "schemaVersion": 1, + "value": "20" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "21", + "schemaVersion": 1, + "value": "21" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "22", + "schemaVersion": 1, + "value": "22" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "23", + "schemaVersion": 1, + "value": "23" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "24", + "schemaVersion": 1, + "value": "24" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "25", + "schemaVersion": 1, + "value": "25" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "26", + "schemaVersion": 1, + "value": "26" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "27", + "schemaVersion": 1, + "value": "27" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "28", + "schemaVersion": 1, + "value": "28" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "29", + "schemaVersion": 1, + "value": "29" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "30", + "schemaVersion": 1, + "value": "30" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "31", + "schemaVersion": 1, + "value": "31" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "32", + "schemaVersion": 1, + "value": "32" + } + ], + "type": "int" + }, + "text_encoders": { + "display": "input", + "label": "Text Encoders *", + "onSignal": "update_node", + "required": true, + "signalCompatibility": { "role": "text_encoders" }, + "type": "diffusers_auto_models" + } + }, + "resizable": true, + "skipParamsCheck": true, + "style": {}, + "time": [0, 0, 0], + "type": "custom" + }, + "operation": { + "binding": { "pipelineClass": "Flux3DistilledModularPipeline", "values": {} }, + "blockName": "text_encoder", + "decomposition": "block", + "nodeKey": "modules.ModularDiffusers.EncodePrompt", + "nodeType": "text_encoder", + "operationId": "diffusion.encode_prompt", + "pipelineClass": "Flux3DistilledModularPipeline", + "ports": [ + { + "direction": "input", + "hidden": false, + "name": "prompt", + "required": true, + "roles": ["value"], + "semanticName": "prompt", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": false, + "name": "max_sequence_length", + "required": false, + "roles": ["value"], + "semanticName": "max_sequence_length", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["int"] + }, + { + "direction": "input", + "hidden": false, + "name": "text_encoder_out_layers", + "required": false, + "roles": ["value"], + "semanticName": "text_encoder_out_layers", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["int"] + }, + { + "direction": "input", + "hidden": false, + "name": "text_encoders", + "required": true, + "roles": ["component"], + "semanticName": "text_encoders", + "semantics": { + "kind": "component", + "members": [ + { + "name": "text_encoder", + "type": "transformers.models.qwen3_vl.modeling_qwen3_vl.Qwen3VLForConditionalGeneration" + }, + { "name": "tokenizer", "type": "transformers.models.auto.processing_auto.AutoProcessor" } + ], + "owner": "same_loader", + "scope": "Flux3DistilledModularPipeline", + "state": null + }, + "types": ["diffusers_auto_models"] + }, + { + "direction": "output", + "hidden": false, + "name": "embeddings", + "required": false, + "roles": ["value"], + "semanticName": "embeddings", + "semantics": { + "kind": "conditioning", + "members": [], + "owner": "same_loader", + "scope": "Flux3DistilledModularPipeline", + "state": null + }, + "types": ["embeddings"] + }, + { + "direction": "output", + "hidden": false, + "name": "doc", + "required": false, + "roles": ["value"], + "semanticName": "doc", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": false, + "name": "layout_conditioning", + "required": false, + "roles": ["value"], + "semanticName": "layout_conditioning", + "semantics": { + "kind": "opaque", + "members": [], + "owner": "none", + "scope": "Flux3DistilledModularPipeline", + "state": null + }, + "types": ["layout_conditioning"] + }, + { + "direction": "input", + "hidden": false, + "name": "reference_binding", + "required": false, + "roles": ["value"], + "semanticName": "reference_binding", + "semantics": { + "kind": "opaque", + "members": [], + "owner": "none", + "scope": "Flux3DistilledModularPipeline", + "state": null + }, + "types": ["reference_conditioning"] + }, + { + "direction": "input", + "hidden": false, + "name": "prompt_input", + "required": false, + "roles": ["value"], + "semanticName": "prompt", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + } + ], + "support": "declared", + "task": "text_to_image", + "workflowId": "text2image" + } + }, + { + "node": { + "action": "Denoise", + "cache": false, + "category": "sampler", + "description": "", + "label": "Denoise", + "memory": [0, 0, 0], + "module": "modules.ModularDiffusers", + "params": { + "doc": { "display": "output", "label": "Doc", "type": "string" }, + "embeddings": { "display": "input", "label": "Text Embeddings *", "type": "embeddings" }, + "height": { "default": 1024, "label": "Height", "min": 64, "step": 16, "type": "int", "value": 1024 }, + "image_cond_latents": { "display": "input", "label": "Reference Latents", "type": "latents" }, + "latents": { "display": "output", "label": "Latents", "type": "latents" }, + "num_images_per_prompt": { + "default": 1, + "label": "Images Per Prompt", + "max": 8, + "min": 1, + "step": 1, + "type": "int" + }, + "num_inference_steps": { + "default": 16, + "display": "slider", + "label": "Steps", + "max": 100, + "min": 1, + "type": "int", + "value": 16 + }, + "reference_binding": { + "default": null, + "display": "input", + "fieldOptions": { "referenceBinding": { "maxReferences": 10, "schemaVersion": 1 } }, + "label": "Reference Binding", + "type": "reference_conditioning" + }, + "scheduler": { + "display": "input", + "label": "Scheduler *", + "signalCompatibility": { "role": "scheduler" }, + "type": "diffusers_auto_model" + }, + "seed": { + "default": 0, + "display": "random", + "label": "Seed", + "max": 4294967295, + "min": 0, + "type": "int" + }, + "unet": { + "display": "input", + "label": "Denoise Model *", + "onSignal": [ + "update_node", + { "action": "signal", "target": "guider" }, + { "action": "signal", "target": "controlnet_bundle" } + ], + "required": true, + "signalCompatibility": { "role": "denoiser" }, + "type": "diffusers_auto_model" + }, + "width": { "default": 1024, "label": "Width", "min": 64, "step": 16, "type": "int", "value": 1024 } + }, + "resizable": true, + "skipParamsCheck": true, + "style": {}, + "time": [0, 0, 0], + "type": "custom" + }, + "operation": { + "binding": { "pipelineClass": "Flux3DistilledModularPipeline", "values": {} }, + "blockName": "denoise", + "decomposition": "block", + "nodeKey": "modules.ModularDiffusers.Denoise", + "nodeType": "denoise", + "operationId": "diffusion.denoise", + "pipelineClass": "Flux3DistilledModularPipeline", + "ports": [ + { + "direction": "input", + "hidden": false, + "name": "embeddings", + "required": true, + "roles": ["value"], + "semanticName": "embeddings", + "semantics": { + "kind": "conditioning", + "members": [], + "owner": "same_loader", + "scope": "Flux3DistilledModularPipeline", + "state": null + }, + "types": ["embeddings"] + }, + { + "direction": "input", + "hidden": false, + "name": "width", + "required": false, + "roles": ["value"], + "semanticName": "width", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["int"] + }, + { + "direction": "input", + "hidden": false, + "name": "height", + "required": false, + "roles": ["value"], + "semanticName": "height", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["int"] + }, + { + "direction": "input", + "hidden": false, + "name": "seed", + "required": false, + "roles": ["value"], + "semanticName": "seed", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["int"] + }, + { + "direction": "input", + "hidden": false, + "name": "num_inference_steps", + "required": false, + "roles": ["value"], + "semanticName": "num_inference_steps", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["int"] + }, + { + "direction": "input", + "hidden": false, + "name": "num_images_per_prompt", + "required": false, + "roles": ["value"], + "semanticName": "num_images_per_prompt", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["int"] + }, + { + "direction": "input", + "hidden": false, + "name": "image_cond_latents", + "required": false, + "roles": ["value"], + "semanticName": "image_cond_latents", + "semantics": { + "kind": "latents", + "members": [], + "owner": "same_loader", + "scope": "Flux3DistilledModularPipeline", + "state": null + }, + "types": ["latents"] + }, + { + "direction": "input", + "hidden": false, + "name": "unet", + "required": true, + "roles": ["component"], + "semanticName": "unet", + "semantics": { + "kind": "component", + "members": [ + { + "name": "transformer", + "type": "diffusers.models.transformers.transformer_flux3.Flux3Transformer2DModel" + } + ], + "owner": "same_loader", + "scope": "Flux3DistilledModularPipeline", + "state": null + }, + "types": ["diffusers_auto_model"] + }, + { + "direction": "input", + "hidden": false, + "name": "scheduler", + "required": true, + "roles": ["component"], + "semanticName": "scheduler", + "semantics": { + "kind": "component", + "members": [ + { + "name": "scheduler", + "type": "diffusers.schedulers.scheduling_flow_match_euler_discrete.FlowMatchEulerDiscreteScheduler" + } + ], + "owner": "same_loader", + "scope": "Flux3DistilledModularPipeline", + "state": null + }, + "types": ["diffusers_auto_model"] + }, + { + "direction": "output", + "hidden": false, + "name": "latents", + "required": false, + "roles": ["value"], + "semanticName": "latents", + "semantics": { + "kind": "latents", + "members": [], + "owner": "same_loader", + "scope": "Flux3DistilledModularPipeline", + "state": null + }, + "types": ["latents"] + }, + { + "direction": "output", + "hidden": false, + "name": "doc", + "required": false, + "roles": ["value"], + "semanticName": "doc", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": false, + "name": "reference_binding", + "required": false, + "roles": ["value"], + "semanticName": "reference_binding", + "semantics": { + "kind": "opaque", + "members": [], + "owner": "none", + "scope": "Flux3DistilledModularPipeline", + "state": null + }, + "types": ["reference_conditioning"] + } + ], + "support": "declared", + "task": "text_to_image", + "workflowId": "text2image" + } + }, + { + "node": { + "action": "DecodeLatents", + "cache": false, + "category": "sampler", + "description": "", + "label": "Decode Latents", + "memory": [0, 0, 0], + "module": "modules.ModularDiffusers", + "params": { + "doc": { "display": "output", "label": "Doc", "type": "string" }, + "images": { "display": "output", "label": "Images", "type": "image" }, + "latents": { "display": "input", "label": "Latents *", "type": "latents" }, + "vae": { + "display": "input", + "label": "VAE *", + "onSignal": "update_node", + "signalCompatibility": { "role": "vae" }, + "type": "diffusers_auto_model" + } + }, + "resizable": true, + "skipParamsCheck": true, + "style": {}, + "time": [0, 0, 0], + "type": "custom" + }, + "operation": { + "binding": { "pipelineClass": "Flux3DistilledModularPipeline", "values": {} }, + "blockName": "decode", + "decomposition": "block", + "nodeKey": "modules.ModularDiffusers.DecodeLatents", + "nodeType": "decoder", + "operationId": "diffusion.decode_latents", + "pipelineClass": "Flux3DistilledModularPipeline", + "ports": [ + { + "direction": "input", + "hidden": false, + "name": "latents", + "required": true, + "roles": ["value"], + "semanticName": "latents", + "semantics": { + "kind": "latents", + "members": [], + "owner": "same_loader", + "scope": "Flux3DistilledModularPipeline", + "state": null + }, + "types": ["latents"] + }, + { + "direction": "input", + "hidden": false, + "name": "vae", + "required": true, + "roles": ["component"], + "semanticName": "vae", + "semantics": { + "kind": "component", + "members": [ + { "name": "vae", "type": "diffusers.models.autoencoders.autoencoder_kl_flux2.AutoencoderKLFlux2" } + ], + "owner": "same_loader", + "scope": "Flux3DistilledModularPipeline", + "state": null + }, + "types": ["diffusers_auto_model"] + }, + { + "direction": "output", + "hidden": false, + "name": "images", + "required": false, + "roles": ["value"], + "semanticName": "images", + "semantics": { "kind": "media", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["image"] + }, + { + "direction": "output", + "hidden": false, + "name": "doc", + "required": false, + "roles": ["value"], + "semanticName": "doc", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + } + ], + "support": "declared", + "task": "text_to_image", + "workflowId": "text2image" + } + } + ], + "pipelineClass": "Flux3DistilledModularPipeline", + "requiredInputs": [{ "field": "prompt", "operationId": "diffusion.encode_prompt" }], + "schemaVersion": 1, + "sharedInputs": [], + "task": "text_to_image", + "upstreamBlocks": ["text_encoder", "denoise", "decode"], + "workflowId": "text2image" + }, + { + "authoring": { + "ancillaryOperations": [ + { + "adapter": { + "declarationSha256": "sha256:2a3d4685988b418115008bbb95fb3e948097580c0bedd2940ea3fe1e40254dc2", + "id": "transformers-prompt-enhancement-v1" + }, + "bindings": { + "output": { "field": "proposal_summary", "role": "proposal" }, + "owner": { + "layoutField": "layout_conditioning", + "promptField": "prompt", + "referenceSource": null, + "role": "prompt" + }, + "request": { + "imagesField": "images", + "layoutField": "layout_conditioning", + "promptField": "prompt", + "role": "proposal" + } + }, + "contentHash": "studio-ancillary-v1-989587f2", + "edges": [["provider", "model", "proposal", "model"]], + "executionPurpose": "explicit_preview", + "fieldOverrides": [ + ["proposal", "enhancement_max_new_tokens", { "hidden": false }], + ["proposal", "max_new_tokens", { "hidden": true }] + ], + "id": "flux3-klein:official:text-to-image:prompt-preview-fp32:v1:preview", + "initialValues": [ + ["provider", "model_id", { "source": "hub", "value": "black-forest-labs/flux-3-image-klein-pup" }], + ["provider", "revision", "3f3edb52b2c55de0d49feab28598b68f7f8e4830"], + ["proposal", "operation", "enhance_prompt"], + ["provider", "dtype", "float32"], + ["provider", "device", "cuda:0"], + ["provider", "quantization_mode", "none"], + ["proposal", "max_input_tokens", 4096] + ], + "parent": { + "authoringRecipeId": "flux3-klein:official:text-to-image:prompt-preview-fp32:v1", + "baseSpecContentHash": "studio-spec-v1-8411b4e0", + "baseSpecId": "flux3-klein:official-provider:v1:text-to-image:v1", + "executionProfileId": "flux3-klein:official-provider:v1", + "pipelineClass": "Flux3DistilledModularPipeline", + "task": "text_to_image" + }, + "roles": [ + ["provider", "modules.HuggingFaceTransformers.LoadImageTextToTextModel", -720, -400], + ["proposal", "modules.HuggingFaceTransformers.GenerateImageVideoText", -360, -400] + ], + "schemaVersion": 1, + "sourceRegions": false, + "verification": { + "adapter": { + "declarationSha256": "sha256:2a3d4685988b418115008bbb95fb3e948097580c0bedd2940ea3fe1e40254dc2", + "id": "transformers-prompt-enhancement-v1" + }, + "chatTemplateSha256": "sha256:a4aee8afcf2e0711942cf848899be66016f8d14a889ff9ede07bca099c28f715", + "modelReceipt": { + "library": "transformers", + "loader": { "modelAutoClass": "AutoModelForImageTextToText", "preprocessorAutoClass": "AutoProcessor" }, + "runtime": { + "architectures": ["Qwen3_5ForConditionalGeneration"], + "modelClass": "Qwen3_5ForConditionalGeneration", + "modelType": "qwen3_5", + "preprocessorClass": "Qwen3VLProcessor", + "transformersVersion": "5.18.0" + }, + "schemaVersion": 1, + "security": { + "hostedInference": false, + "localFilesOnly": true, + "safetensorsOnly": true, + "trustRemoteCode": false + }, + "source": { + "kind": "hub", + "repository": "black-forest-labs/flux-3-image-klein-pup", + "revision": "3f3edb52b2c55de0d49feab28598b68f7f8e4830" + }, + "task": "image-video-to-text" + }, + "quantizationRecipes": [ + { "mode": "none" }, + { + "computeDtype": "bfloat16", + "doubleQuant": true, + "mode": "bnb_4bit", + "quantType": "nf4", + "skipModules": ["lm_head", "model.visual"] + } + ], + "requestInputs": { + "maxImagePixelsField": "max_image_pixels", + "maxInputTokensField": "max_input_tokens", + "maxNewTokensField": "enhancement_max_new_tokens", + "minNewTokensField": "min_new_tokens", + "operationField": "operation", + "role": "proposal" + }, + "runtimeInputs": { + "deviceField": "device", + "dtypeField": "dtype", + "modelField": "model_id", + "quantizationField": "quantization_mode", + "revisionField": "revision", + "role": "provider" + }, + "schemaVersion": 1, + "supportedPromptModes": ["t2i", "i2i"], + "systemPromptSha256ByMode": { + "i2i": "95cec384d5b6d341caa9fb3f2c7ca45ee80c2364b3a95d4044aebf976f6dd3bf", + "i2i_bbox": "9ad10f947e401337cf155cac0518cc428159ef16f2f029f48aae2aaab8380a5e", + "t2i": "8b235a421bce2213d11ada01f5a1244443dd72303ffbb4cc9e5a0d8b0de5ab6f", + "t2i_bbox": "5f513d8ce5838732919f9e645507aa20ff373e88bf93132c768e063c9db3151f" + }, + "systemPromptsSha256": "sha256:b5da3ed8bc04ab59dbdb747930f7dbff847e868903fed8028f85ee1a4ac82fb4" + } + } + ], + "baseSpecContentHash": "studio-spec-v1-8411b4e0", + "baseSpecId": "flux3-klein:official-provider:v1:text-to-image:v1", + "bindings": [ + ["models", "model_type", "pipelineClass"], + ["models", "repo_id", "artifact"], + ["models", "revision", "defaultRevision"], + ["models", "dtype", "dtype"], + ["models", "device", "device"], + ["models", "auto_offload", "autoOffload"], + ["models", "offload_mode", "offloadMode"], + ["models", "trust_remote_code", "false"], + ["prompt", "prompt", "prompt"], + ["denoise", "width", "width"], + ["denoise", "height", "height"], + ["denoise", "seed", "seed"], + ["denoise", "num_inference_steps", "steps"], + ["prompt", "max_sequence_length", "maxSequenceLength"], + ["models", "weight_format", "weightFormat"] + ], + "canonicalizationVersion": 1, + "contentHash": "studio-authoring-v1-75f2a548", + "edges": [ + ["models", "text_encoders", "prompt", "text_encoders"], + ["models", "unet_out", "denoise", "unet"], + ["models", "scheduler", "denoise", "scheduler"], + ["models", "vae_out", "decode", "vae"], + ["prompt", "embeddings", "denoise", "embeddings"], + ["denoise", "latents", "decode", "latents"], + ["decode", "images", "preview", "image"] + ], + "executionProfileIds": ["flux3-klein:official-provider:v1"], + "id": "flux3-klein:official:text-to-image:prompt-preview-fp32:v1", + "initialValues": [], + "roles": [ + ["models", "modules.ModularDiffusers.ModelsLoader", -720, -80], + ["prompt", "modules.ModularDiffusers.EncodePrompt", -360, -240], + ["denoise", "modules.ModularDiffusers.Denoise", 80, -80], + ["decode", "modules.ModularDiffusers.DecodeLatents", 440, -80], + ["preview", "modules.Image.Preview", 800, -80] + ], + "schemaVersion": 1 + }, + "edges": [ + { + "source": "diffusion.load_models", + "sourceHandle": "text_encoders", + "target": "diffusion.encode_prompt", + "targetHandle": "text_encoders" + }, + { + "source": "diffusion.load_models", + "sourceHandle": "scheduler", + "target": "diffusion.denoise", + "targetHandle": "scheduler" + }, + { + "source": "diffusion.load_models", + "sourceHandle": "unet_out", + "target": "diffusion.denoise", + "targetHandle": "unet" + }, + { + "source": "diffusion.load_models", + "sourceHandle": "vae_out", + "target": "diffusion.decode_latents", + "targetHandle": "vae" + }, + { + "source": "diffusion.encode_prompt", + "sourceHandle": "embeddings", + "target": "diffusion.denoise", + "targetHandle": "embeddings" + }, + { + "source": "diffusion.denoise", + "sourceHandle": "latents", + "target": "diffusion.decode_latents", + "targetHandle": "latents" + } + ], + "nodes": [ + { + "node": { + "action": "ModelsLoader", + "cache": false, + "category": "loader", + "description": "", + "label": "Load Models", + "memory": [0, 0, 0], + "module": "modules.ModularDiffusers", + "params": { + "attention_backend": { + "default": "inherit", + "description": "Inherit preserves existing native component defaults; explicit choices use the ordinary Diffusers attention API.", + "label": "Attention Backend", + "options": [ + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "inherit", + "schemaVersion": 1, + "value": "inherit" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "auto", + "schemaVersion": 1, + "value": "auto" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "native", + "schemaVersion": 1, + "value": "native" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "_native_math", + "schemaVersion": 1, + "value": "_native_math" + } + ], + "type": "string" + }, + "auto_offload": { "label": "Enable Auto Offload", "type": "boolean", "value": true }, + "controlnet": { + "display": "input", + "hidden": true, + "label": "ControlNet", + "type": "diffusers_auto_model" + }, + "device": { + "label": "Device", + "options": { + "cpu": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "cpu", + "schemaVersion": 1, + "value": "cpu" + }, + "cpu:0": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "cpu:0", + "schemaVersion": 1, + "value": "cpu:0" + } + }, + "type": "string", + "value": "cpu:0" + }, + "dtype": { + "label": "dtype", + "options": [ + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "float32", + "schemaVersion": 1, + "value": "float32" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "float16", + "schemaVersion": 1, + "value": "float16" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "bfloat16", + "schemaVersion": 1, + "value": "bfloat16" + } + ], + "value": "bfloat16" + }, + "image_encoder": { + "connectionRole": "image_encoder", + "display": "output", + "hidden": true, + "label": "Image Encoder", + "signal": { + "direction": "output", + "origin": "modiff_pipeline_identity", + "value": "Flux3DistilledModularPipeline" + }, + "type": "diffusers_auto_model" + }, + "inpaint_compatibility": { + "default": "native", + "description": "Technical compatibility selection for the reviewed Qwen Edit inpainting candidate; existing nodes retain native policy.", + "hidden": true, + "label": "Inpaint Compatibility", + "options": [ + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "native", + "schemaVersion": 1, + "value": "native" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "whole_v1", + "schemaVersion": 1, + "value": "whole_v1" + } + ], + "type": "string" + }, + "lora_list": { "display": "input", "label": "Lora", "type": "custom_lora" }, + "model_type": { + "description": "Selects the Modular Diffusers pipeline class. This filters compatible checkpoints and publishes the component contract used by connected nodes; it is not the model checkpoint itself.", + "label": "Pipeline Type", + "onChange": "set_filters", + "options": { + "": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "", + "schemaVersion": 1, + "value": "" + }, + "AnimaModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Anima", + "schemaVersion": 1, + "value": "AnimaModularPipeline" + }, + "Cosmos3DistilledModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Cosmos 3 Distilled", + "schemaVersion": 1, + "value": "Cosmos3DistilledModularPipeline" + }, + "Cosmos3OmniModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Cosmos 3 Nano", + "schemaVersion": 1, + "value": "Cosmos3OmniModularPipeline" + }, + "DummyCustomPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Custom", + "schemaVersion": 1, + "value": "DummyCustomPipeline" + }, + "ErnieImageModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "ERNIE Image Turbo", + "schemaVersion": 1, + "value": "ErnieImageModularPipeline" + }, + "Flux2KleinBaseModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Flux 2 Klein Base", + "schemaVersion": 1, + "value": "Flux2KleinBaseModularPipeline" + }, + "Flux2KleinModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Flux 2 Klein Distilled", + "schemaVersion": 1, + "value": "Flux2KleinModularPipeline" + }, + "Flux2ModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Flux 2", + "schemaVersion": 1, + "value": "Flux2ModularPipeline" + }, + "Flux3DistilledModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "FLUX 3 Image Klein", + "schemaVersion": 1, + "value": "Flux3DistilledModularPipeline" + }, + "Flux3ModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "FLUX 3 Image Klein Base", + "schemaVersion": 1, + "value": "Flux3ModularPipeline" + }, + "FluxKontextModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Flux Kontext", + "schemaVersion": 1, + "value": "FluxKontextModularPipeline" + }, + "FluxModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Flux", + "schemaVersion": 1, + "value": "FluxModularPipeline" + }, + "HeliosModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Helios", + "schemaVersion": 1, + "value": "HeliosModularPipeline" + }, + "HeliosPyramidDistilledModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Helios Pyramid Distilled", + "schemaVersion": 1, + "value": "HeliosPyramidDistilledModularPipeline" + }, + "HeliosPyramidModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Helios Pyramid", + "schemaVersion": 1, + "value": "HeliosPyramidModularPipeline" + }, + "HunyuanVideo15ModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "HunyuanVideo 1.5", + "schemaVersion": 1, + "value": "HunyuanVideo15ModularPipeline" + }, + "Ideogram4ModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Ideogram 4 (Contract only)", + "schemaVersion": 1, + "value": "Ideogram4ModularPipeline" + }, + "Krea2ModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Krea 2 (Contract only)", + "schemaVersion": 1, + "value": "Krea2ModularPipeline" + }, + "Krea2TurboModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Krea 2 Turbo (Contract only)", + "schemaVersion": 1, + "value": "Krea2TurboModularPipeline" + }, + "LTX25ModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "LTX-2.5 (Contract only)", + "schemaVersion": 1, + "value": "LTX25ModularPipeline" + }, + "MiniMaxH3ModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "MiniMax H3", + "schemaVersion": 1, + "value": "MiniMaxH3ModularPipeline" + }, + "MiniMaxMusic3ModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "MiniMax Music 3", + "schemaVersion": 1, + "value": "MiniMaxMusic3ModularPipeline" + }, + "QwenImageEditModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Qwen-Image-Edit", + "schemaVersion": 1, + "value": "QwenImageEditModularPipeline" + }, + "QwenImageEditPlusModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Qwen-Image-Edit-2511", + "schemaVersion": 1, + "value": "QwenImageEditPlusModularPipeline" + }, + "QwenImageLayeredModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Qwen-Image-Layered", + "schemaVersion": 1, + "value": "QwenImageLayeredModularPipeline" + }, + "QwenImageModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Qwen-Image-2512", + "schemaVersion": 1, + "value": "QwenImageModularPipeline" + }, + "StableDiffusion3ModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Stable Diffusion 3 (Contract only)", + "schemaVersion": 1, + "value": "StableDiffusion3ModularPipeline" + }, + "StableDiffusionXLModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Stable Diffusion XL", + "schemaVersion": 1, + "value": "StableDiffusionXLModularPipeline" + }, + "WanAnimate2DistilledModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Wan Animate 2 Distilled", + "schemaVersion": 1, + "value": "WanAnimate2DistilledModularPipeline" + }, + "WanAnimate2ModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Wan Animate 2", + "schemaVersion": 1, + "value": "WanAnimate2ModularPipeline" + }, + "WanImage2VideoModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "WAN2 I2V", + "schemaVersion": 1, + "value": "WanImage2VideoModularPipeline" + }, + "WanModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "WAN2 T2V", + "schemaVersion": 1, + "value": "WanModularPipeline" + }, + "ZImageModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Z-Image", + "schemaVersion": 1, + "value": "ZImageModularPipeline" + } + }, + "type": "string", + "value": "Flux3DistilledModularPipeline" + }, + "modiff_pipeline_identity": { + "hidden": true, + "label": "Custom Pipeline Identity", + "type": "object", + "value": null + }, + "offload_mode": { + "default": "model_cpu", + "label": "Offload Mode", + "options": [ + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "auto_cpu", + "schemaVersion": 1, + "value": "auto_cpu" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "none", + "schemaVersion": 1, + "value": "none" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "model_cpu", + "schemaVersion": 1, + "value": "model_cpu" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "group_cpu", + "schemaVersion": 1, + "value": "group_cpu" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "group_disk", + "schemaVersion": 1, + "value": "group_disk" + } + ], + "type": "string", + "value": "model_cpu" + }, + "pipeline_components": { + "connectionRole": "pipeline_components", + "display": "output", + "hidden": false, + "label": "Pipeline Components", + "signal": { + "direction": "output", + "origin": "modiff_pipeline_identity", + "value": "Flux3DistilledModularPipeline" + }, + "type": "diffusers_modular_pipeline_components" + }, + "quant_config": { "display": "input", "label": "Quant Config", "type": "quant_config" }, + "refresh_pipeline_identity_button": { + "display": "ui_button", + "hidden": true, + "label": "Review and Refresh Custom Contract", + "onChange": "refresh_pipeline_identity", + "value": false + }, + "repo_id": { + "display": "modelselect", + "fieldOptions": { + "filter": { "hub": { "className": ["Flux3DistilledModularPipeline"] } }, + "noValidation": true, + "sources": ["hub", "local"] + }, + "label": "Repository ID", + "onChange": "refresh_pipeline_identity", + "type": "string", + "value": { "source": "hub", "value": "black-forest-labs/flux-3-image-klein" } + }, + "reviewed_variant": { + "description": "Select an immutable, reviewed checkpoint for this exact Modular Diffusers pipeline family. Changing it does not replace the workflow graph or reset its parameters.", + "fieldOptions": { "controlTier": "essential" }, + "hidden": true, + "label": "Model", + "options": [ + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "black-forest-labs/flux-3-image-klein", + "schemaVersion": 1, + "value": "black-forest-labs/flux-3-image-klein" + } + ], + "type": "string", + "value": "black-forest-labs/flux-3-image-klein" + }, + "revision": { + "description": "Required exact 40-character commit hash for Hub custom contracts.", + "label": "Revision", + "onChange": "refresh_pipeline_identity", + "type": "string", + "value": "8454017f9ebaada30c998fccd9f67a80c7580f68" + }, + "scheduler": { + "connectionRole": "scheduler", + "display": "output", + "hidden": false, + "label": "Scheduler", + "signal": { + "direction": "output", + "origin": "modiff_pipeline_identity", + "value": "Flux3DistilledModularPipeline" + }, + "type": "diffusers_auto_model" + }, + "text_encoders": { + "connectionRole": "text_encoders", + "display": "output", + "hidden": false, + "label": "Text Encoders", + "signal": { + "direction": "output", + "origin": "modiff_pipeline_identity", + "value": "Flux3DistilledModularPipeline" + }, + "type": "diffusers_auto_models" + }, + "trust_remote_code": { + "description": "Repository code execution is disabled; keep this off for contract preview.", + "label": "Trust Remote Code", + "onChange": "refresh_pipeline_identity", + "type": "boolean", + "value": false + }, + "unet": { "display": "input", "hidden": false, "label": "Denoise Model", "type": "diffusers_auto_model" }, + "unet_out": { + "connectionRole": "denoiser", + "display": "output", + "hidden": false, + "label": "Denoise Model", + "signal": { + "direction": "output", + "origin": "modiff_pipeline_identity", + "value": "Flux3DistilledModularPipeline" + }, + "type": "diffusers_auto_model" + }, + "vae": { "display": "input", "hidden": false, "label": "VAE", "type": "diffusers_auto_model" }, + "vae_out": { + "connectionRole": "vae", + "display": "output", + "hidden": false, + "label": "VAE", + "signal": { + "direction": "output", + "origin": "modiff_pipeline_identity", + "value": "Flux3DistilledModularPipeline" + }, + "type": "diffusers_auto_model" + }, + "vae_slicing": { + "default": null, + "description": "An unset policy preserves the native VAE configuration; templates may bind an explicit boolean.", + "hidden": true, + "label": "VAE Slicing", + "type": "boolean" + }, + "vae_tiling": { + "default": null, + "description": "An unset policy preserves the native VAE configuration; templates may bind an explicit boolean.", + "hidden": true, + "label": "VAE Tiling", + "type": "boolean" + }, + "weight_format": { + "default": "native", + "description": "Select a backend-declared immutable component format. Missing reviewed files must be installed through Model Manager.", + "fieldOptions": { "controlTier": "advanced" }, + "hidden": false, + "label": "Weight Format", + "options": [ + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "native", + "schemaVersion": 1, + "value": "native" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "fp8r", + "schemaVersion": 1, + "value": "fp8r" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "nvfp4", + "schemaVersion": 1, + "value": "nvfp4" + } + ], + "type": "string" + }, + "weight_loading_mode": { + "default": "cpu", + "description": "Load weights on CPU or CUDA before disk offload. CUDA loading needs room for a complete component and is available only for supported models.", + "fieldOptions": { "controlTier": "advanced" }, + "label": "Weight Loading", + "options": [ + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "cpu", + "schemaVersion": 1, + "value": "cpu" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "cuda", + "schemaVersion": 1, + "value": "cuda" + } + ], + "type": "string" + }, + "workflow_id": { + "description": "Exact reviewed component partition selected by a first-party Cluster Node.", + "hidden": true, + "label": "Reviewed Workflow", + "type": "string", + "value": "text2image" + } + }, + "resizable": true, + "skipParamsCheck": true, + "style": {}, + "time": [0, 0, 0], + "type": "custom" + }, + "operation": { + "binding": { + "pipelineClass": "Flux3DistilledModularPipeline", + "values": { "model_type": "Flux3DistilledModularPipeline" } + }, + "blockName": null, + "decomposition": "loader", + "nodeKey": "modules.ModularDiffusers.ModelsLoader", + "nodeType": "loader", + "operationId": "diffusion.load_models", + "pipelineClass": "Flux3DistilledModularPipeline", + "ports": [ + { + "direction": "input", + "hidden": false, + "name": "model_type", + "required": false, + "roles": ["value"], + "semanticName": "model_type", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": false, + "name": "repo_id", + "required": false, + "roles": ["value"], + "semanticName": "repo_id", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": true, + "name": "reviewed_variant", + "required": false, + "roles": ["value"], + "semanticName": "reviewed_variant", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": false, + "name": "device", + "required": false, + "roles": ["value"], + "semanticName": "device", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": false, + "name": "attention_backend", + "required": false, + "roles": ["value"], + "semanticName": "attention_backend", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": true, + "name": "vae_slicing", + "required": false, + "roles": ["value"], + "semanticName": "vae_slicing", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["boolean"] + }, + { + "direction": "input", + "hidden": true, + "name": "vae_tiling", + "required": false, + "roles": ["value"], + "semanticName": "vae_tiling", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["boolean"] + }, + { + "direction": "input", + "hidden": true, + "name": "inpaint_compatibility", + "required": false, + "roles": ["value"], + "semanticName": "inpaint_compatibility", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": false, + "name": "trust_remote_code", + "required": false, + "roles": ["value"], + "semanticName": "trust_remote_code", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["boolean"] + }, + { + "direction": "input", + "hidden": false, + "name": "revision", + "required": false, + "roles": ["value"], + "semanticName": "revision", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": true, + "name": "workflow_id", + "required": false, + "roles": ["value"], + "semanticName": "workflow_id", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": true, + "name": "modiff_pipeline_identity", + "required": false, + "roles": ["value"], + "semanticName": "modiff_pipeline_identity", + "semantics": { + "kind": "opaque", + "members": [], + "owner": "none", + "scope": "Flux3DistilledModularPipeline", + "state": null + }, + "types": ["object"] + }, + { + "direction": "input", + "hidden": false, + "name": "auto_offload", + "required": false, + "roles": ["value"], + "semanticName": "auto_offload", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["boolean"] + }, + { + "direction": "input", + "hidden": false, + "name": "offload_mode", + "required": false, + "roles": ["value"], + "semanticName": "offload_mode", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": false, + "name": "weight_loading_mode", + "required": false, + "roles": ["value"], + "semanticName": "weight_loading_mode", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": true, + "name": "weight_format", + "required": false, + "roles": ["value"], + "semanticName": "weight_format", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": false, + "name": "unet", + "required": false, + "roles": ["component"], + "semanticName": "unet", + "semantics": { + "kind": "component", + "members": [ + { + "name": "transformer", + "type": "diffusers.models.transformers.transformer_flux3.Flux3Transformer2DModel" + } + ], + "owner": "same_loader", + "scope": "Flux3DistilledModularPipeline", + "state": null + }, + "types": ["diffusers_auto_model"] + }, + { + "direction": "input", + "hidden": false, + "name": "vae", + "required": false, + "roles": ["component"], + "semanticName": "vae", + "semantics": { + "kind": "component", + "members": [ + { "name": "vae", "type": "diffusers.models.autoencoders.autoencoder_kl_flux2.AutoencoderKLFlux2" } + ], + "owner": "same_loader", + "scope": "Flux3DistilledModularPipeline", + "state": null + }, + "types": ["diffusers_auto_model"] + }, + { + "direction": "input", + "hidden": true, + "name": "controlnet", + "required": false, + "roles": ["component"], + "semanticName": "controlnet", + "semantics": { + "kind": "component", + "members": [], + "owner": "same_loader", + "scope": "Flux3DistilledModularPipeline", + "state": null + }, + "types": ["diffusers_auto_model"] + }, + { + "direction": "input", + "hidden": false, + "name": "lora_list", + "required": false, + "roles": ["value"], + "semanticName": "lora_list", + "semantics": { + "kind": "opaque", + "members": [], + "owner": "none", + "scope": "Flux3DistilledModularPipeline", + "state": null + }, + "types": ["custom_lora"] + }, + { + "direction": "output", + "hidden": false, + "name": "text_encoders", + "required": false, + "roles": ["component"], + "semanticName": "text_encoders", + "semantics": { + "kind": "component", + "members": [ + { + "name": "text_encoder", + "type": "transformers.models.qwen3_vl.modeling_qwen3_vl.Qwen3VLForConditionalGeneration" + }, + { "name": "tokenizer", "type": "transformers.models.auto.processing_auto.AutoProcessor" } + ], + "owner": "same_loader", + "scope": "Flux3DistilledModularPipeline", + "state": null + }, + "types": ["diffusers_auto_models"] + }, + { + "direction": "output", + "hidden": false, + "name": "unet_out", + "required": false, + "roles": ["component"], + "semanticName": "unet_out", + "semantics": { + "kind": "component", + "members": [ + { + "name": "transformer", + "type": "diffusers.models.transformers.transformer_flux3.Flux3Transformer2DModel" + } + ], + "owner": "same_loader", + "scope": "Flux3DistilledModularPipeline", + "state": null + }, + "types": ["diffusers_auto_model"] + }, + { + "direction": "output", + "hidden": false, + "name": "vae_out", + "required": false, + "roles": ["component"], + "semanticName": "vae_out", + "semantics": { + "kind": "component", + "members": [ + { "name": "vae", "type": "diffusers.models.autoencoders.autoencoder_kl_flux2.AutoencoderKLFlux2" } + ], + "owner": "same_loader", + "scope": "Flux3DistilledModularPipeline", + "state": null + }, + "types": ["diffusers_auto_model"] + }, + { + "direction": "output", + "hidden": false, + "name": "scheduler", + "required": false, + "roles": ["component"], + "semanticName": "scheduler", + "semantics": { + "kind": "component", + "members": [ + { + "name": "scheduler", + "type": "diffusers.schedulers.scheduling_flow_match_euler_discrete.FlowMatchEulerDiscreteScheduler" + } + ], + "owner": "same_loader", + "scope": "Flux3DistilledModularPipeline", + "state": null + }, + "types": ["diffusers_auto_model"] + }, + { + "direction": "output", + "hidden": true, + "name": "image_encoder", + "required": false, + "roles": ["component"], + "semanticName": "image_encoder", + "semantics": { + "kind": "component", + "members": [], + "owner": "same_loader", + "scope": "Flux3DistilledModularPipeline", + "state": null + }, + "types": ["diffusers_auto_model"] + }, + { + "direction": "output", + "hidden": false, + "name": "pipeline_components", + "required": false, + "roles": ["component"], + "semanticName": "pipeline_components", + "semantics": { + "kind": "component", + "members": [ + { + "name": "image_processor", + "type": "diffusers.modular_pipelines.flux3.image_processor.Flux3ImageProcessor" + }, + { + "name": "scheduler", + "type": "diffusers.schedulers.scheduling_flow_match_euler_discrete.FlowMatchEulerDiscreteScheduler" + }, + { + "name": "text_encoder", + "type": "transformers.models.qwen3_vl.modeling_qwen3_vl.Qwen3VLForConditionalGeneration" + }, + { "name": "tokenizer", "type": "transformers.models.auto.processing_auto.AutoProcessor" }, + { + "name": "transformer", + "type": "diffusers.models.transformers.transformer_flux3.Flux3Transformer2DModel" + }, + { "name": "vae", "type": "diffusers.models.autoencoders.autoencoder_kl_flux2.AutoencoderKLFlux2" } + ], + "owner": "same_loader", + "scope": "Flux3DistilledModularPipeline", + "state": null + }, + "types": ["diffusers_modular_pipeline_components"] + }, + { + "direction": "input", + "hidden": false, + "name": "quant_config", + "required": false, + "roles": ["value"], + "semanticName": "quant_config", + "semantics": { + "kind": "opaque", + "members": [], + "owner": "none", + "scope": "Flux3DistilledModularPipeline", + "state": null + }, + "types": ["quant_config"] + } + ], + "support": "declared", + "task": "text_to_image", + "workflowId": "text2image" + } + }, + { + "node": { + "action": "EncodePrompt", + "cache": false, + "category": "embedding", + "description": "", + "label": "Encode Prompt", + "memory": [0, 0, 0], + "module": "modules.ModularDiffusers", + "params": { + "doc": { "display": "output", "label": "Doc", "type": "string" }, + "embeddings": { "display": "output", "label": "Text Embeddings", "type": "embeddings" }, + "guider": { + "description": "Shared Diffusers guidance used by prompt encoding and denoising when the selected pipeline supports it.", + "display": "input", + "hidden": true, + "label": "Guider", + "type": "custom_guider" + }, + "layout_conditioning": { + "default": null, + "display": "layout", + "fieldOptions": { + "layoutConditioning": { + "schemaVersion": 2, + "sourceRegions": false, + "supportsBoundSourceRegions": true + } + }, + "label": "Layout Conditioning", + "type": "layout_conditioning" + }, + "layout_reference_summary": { + "description": "Display-only ordered reference identities and actual preprocessing sizes from the current encoder cache.", + "display": "output", + "hidden": true, + "label": "Bound Reference Summary", + "type": "string" + }, + "max_sequence_length": { + "default": 8192, + "label": "Maximum Sequence Length", + "max": 8192, + "min": 1, + "step": 1, + "type": "int" + }, + "prompt": { + "default": "", + "display": "textarea", + "fieldOptions": { "exampleAttribution": "MoDiff task example" }, + "label": "Prompt *", + "type": "string", + "value": "A red ceramic teapot on a wooden table beside a window, soft morning light, detailed photograph." + }, + "prompt_input": { + "description": "Optional connected prompt. When connected, this replaces the inline Prompt value.", + "display": "input", + "label": "Prompt Input", + "type": "string" + }, + "reference_binding": { + "default": null, + "display": "input", + "fieldOptions": { "referenceBinding": { "maxReferences": 10, "schemaVersion": 1 } }, + "label": "Reference Binding", + "type": "reference_conditioning" + }, + "text_encoder_out_layers": { + "default": [4, 8, 12, 16, 20, 24, 28, 32], + "display": "select", + "fieldOptions": { "multiple": true, "tupleLength": 8, "tupleValue": true }, + "label": "Text Encoder Layers", + "options": [ + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "0", + "schemaVersion": 1, + "value": "0" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "1", + "schemaVersion": 1, + "value": "1" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "2", + "schemaVersion": 1, + "value": "2" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "3", + "schemaVersion": 1, + "value": "3" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "4", + "schemaVersion": 1, + "value": "4" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "5", + "schemaVersion": 1, + "value": "5" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "6", + "schemaVersion": 1, + "value": "6" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "7", + "schemaVersion": 1, + "value": "7" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "8", + "schemaVersion": 1, + "value": "8" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "9", + "schemaVersion": 1, + "value": "9" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "10", + "schemaVersion": 1, + "value": "10" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "11", + "schemaVersion": 1, + "value": "11" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "12", + "schemaVersion": 1, + "value": "12" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "13", + "schemaVersion": 1, + "value": "13" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "14", + "schemaVersion": 1, + "value": "14" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "15", + "schemaVersion": 1, + "value": "15" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "16", + "schemaVersion": 1, + "value": "16" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "17", + "schemaVersion": 1, + "value": "17" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "18", + "schemaVersion": 1, + "value": "18" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "19", + "schemaVersion": 1, + "value": "19" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "20", + "schemaVersion": 1, + "value": "20" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "21", + "schemaVersion": 1, + "value": "21" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "22", + "schemaVersion": 1, + "value": "22" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "23", + "schemaVersion": 1, + "value": "23" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "24", + "schemaVersion": 1, + "value": "24" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "25", + "schemaVersion": 1, + "value": "25" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "26", + "schemaVersion": 1, + "value": "26" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "27", + "schemaVersion": 1, + "value": "27" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "28", + "schemaVersion": 1, + "value": "28" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "29", + "schemaVersion": 1, + "value": "29" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "30", + "schemaVersion": 1, + "value": "30" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "31", + "schemaVersion": 1, + "value": "31" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "32", + "schemaVersion": 1, + "value": "32" + } + ], + "type": "int" + }, + "text_encoders": { + "display": "input", + "label": "Text Encoders *", + "onSignal": "update_node", + "required": true, + "signalCompatibility": { "role": "text_encoders" }, + "type": "diffusers_auto_models" + } + }, + "resizable": true, + "skipParamsCheck": true, + "style": {}, + "time": [0, 0, 0], + "type": "custom" + }, + "operation": { + "binding": { "pipelineClass": "Flux3DistilledModularPipeline", "values": {} }, + "blockName": "text_encoder", + "decomposition": "block", + "nodeKey": "modules.ModularDiffusers.EncodePrompt", + "nodeType": "text_encoder", + "operationId": "diffusion.encode_prompt", + "pipelineClass": "Flux3DistilledModularPipeline", + "ports": [ + { + "direction": "input", + "hidden": false, + "name": "prompt", + "required": true, + "roles": ["value"], + "semanticName": "prompt", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": false, + "name": "max_sequence_length", + "required": false, + "roles": ["value"], + "semanticName": "max_sequence_length", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["int"] + }, + { + "direction": "input", + "hidden": false, + "name": "text_encoder_out_layers", + "required": false, + "roles": ["value"], + "semanticName": "text_encoder_out_layers", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["int"] + }, + { + "direction": "input", + "hidden": false, + "name": "text_encoders", + "required": true, + "roles": ["component"], + "semanticName": "text_encoders", + "semantics": { + "kind": "component", + "members": [ + { + "name": "text_encoder", + "type": "transformers.models.qwen3_vl.modeling_qwen3_vl.Qwen3VLForConditionalGeneration" + }, + { "name": "tokenizer", "type": "transformers.models.auto.processing_auto.AutoProcessor" } + ], + "owner": "same_loader", + "scope": "Flux3DistilledModularPipeline", + "state": null + }, + "types": ["diffusers_auto_models"] + }, + { + "direction": "output", + "hidden": false, + "name": "embeddings", + "required": false, + "roles": ["value"], + "semanticName": "embeddings", + "semantics": { + "kind": "conditioning", + "members": [], + "owner": "same_loader", + "scope": "Flux3DistilledModularPipeline", + "state": null + }, + "types": ["embeddings"] + }, + { + "direction": "output", + "hidden": false, + "name": "doc", + "required": false, + "roles": ["value"], + "semanticName": "doc", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": false, + "name": "layout_conditioning", + "required": false, + "roles": ["value"], + "semanticName": "layout_conditioning", + "semantics": { + "kind": "opaque", + "members": [], + "owner": "none", + "scope": "Flux3DistilledModularPipeline", + "state": null + }, + "types": ["layout_conditioning"] + }, + { + "direction": "input", + "hidden": false, + "name": "reference_binding", + "required": false, + "roles": ["value"], + "semanticName": "reference_binding", + "semantics": { + "kind": "opaque", + "members": [], + "owner": "none", + "scope": "Flux3DistilledModularPipeline", + "state": null + }, + "types": ["reference_conditioning"] + }, + { + "direction": "input", + "hidden": false, + "name": "prompt_input", + "required": false, + "roles": ["value"], + "semanticName": "prompt", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + } + ], + "support": "declared", + "task": "text_to_image", + "workflowId": "text2image" + } + }, + { + "node": { + "action": "Denoise", + "cache": false, + "category": "sampler", + "description": "", + "label": "Denoise", + "memory": [0, 0, 0], + "module": "modules.ModularDiffusers", + "params": { + "doc": { "display": "output", "label": "Doc", "type": "string" }, + "embeddings": { "display": "input", "label": "Text Embeddings *", "type": "embeddings" }, + "height": { "default": 1024, "label": "Height", "min": 64, "step": 16, "type": "int", "value": 1024 }, + "image_cond_latents": { "display": "input", "label": "Reference Latents", "type": "latents" }, + "latents": { "display": "output", "label": "Latents", "type": "latents" }, + "num_images_per_prompt": { + "default": 1, + "label": "Images Per Prompt", + "max": 8, + "min": 1, + "step": 1, + "type": "int" + }, + "num_inference_steps": { + "default": 16, + "display": "slider", + "label": "Steps", + "max": 100, + "min": 1, + "type": "int", + "value": 16 + }, + "reference_binding": { + "default": null, + "display": "input", + "fieldOptions": { "referenceBinding": { "maxReferences": 10, "schemaVersion": 1 } }, + "label": "Reference Binding", + "type": "reference_conditioning" + }, + "scheduler": { + "display": "input", + "label": "Scheduler *", + "signalCompatibility": { "role": "scheduler" }, + "type": "diffusers_auto_model" + }, + "seed": { + "default": 0, + "display": "random", + "label": "Seed", + "max": 4294967295, + "min": 0, + "type": "int" + }, + "unet": { + "display": "input", + "label": "Denoise Model *", + "onSignal": [ + "update_node", + { "action": "signal", "target": "guider" }, + { "action": "signal", "target": "controlnet_bundle" } + ], + "required": true, + "signalCompatibility": { "role": "denoiser" }, + "type": "diffusers_auto_model" + }, + "width": { "default": 1024, "label": "Width", "min": 64, "step": 16, "type": "int", "value": 1024 } + }, + "resizable": true, + "skipParamsCheck": true, + "style": {}, + "time": [0, 0, 0], + "type": "custom" + }, + "operation": { + "binding": { "pipelineClass": "Flux3DistilledModularPipeline", "values": {} }, + "blockName": "denoise", + "decomposition": "block", + "nodeKey": "modules.ModularDiffusers.Denoise", + "nodeType": "denoise", + "operationId": "diffusion.denoise", + "pipelineClass": "Flux3DistilledModularPipeline", + "ports": [ + { + "direction": "input", + "hidden": false, + "name": "embeddings", + "required": true, + "roles": ["value"], + "semanticName": "embeddings", + "semantics": { + "kind": "conditioning", + "members": [], + "owner": "same_loader", + "scope": "Flux3DistilledModularPipeline", + "state": null + }, + "types": ["embeddings"] + }, + { + "direction": "input", + "hidden": false, + "name": "width", + "required": false, + "roles": ["value"], + "semanticName": "width", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["int"] + }, + { + "direction": "input", + "hidden": false, + "name": "height", + "required": false, + "roles": ["value"], + "semanticName": "height", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["int"] + }, + { + "direction": "input", + "hidden": false, + "name": "seed", + "required": false, + "roles": ["value"], + "semanticName": "seed", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["int"] + }, + { + "direction": "input", + "hidden": false, + "name": "num_inference_steps", + "required": false, + "roles": ["value"], + "semanticName": "num_inference_steps", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["int"] + }, + { + "direction": "input", + "hidden": false, + "name": "num_images_per_prompt", + "required": false, + "roles": ["value"], + "semanticName": "num_images_per_prompt", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["int"] + }, + { + "direction": "input", + "hidden": false, + "name": "image_cond_latents", + "required": false, + "roles": ["value"], + "semanticName": "image_cond_latents", + "semantics": { + "kind": "latents", + "members": [], + "owner": "same_loader", + "scope": "Flux3DistilledModularPipeline", + "state": null + }, + "types": ["latents"] + }, + { + "direction": "input", + "hidden": false, + "name": "unet", + "required": true, + "roles": ["component"], + "semanticName": "unet", + "semantics": { + "kind": "component", + "members": [ + { + "name": "transformer", + "type": "diffusers.models.transformers.transformer_flux3.Flux3Transformer2DModel" + } + ], + "owner": "same_loader", + "scope": "Flux3DistilledModularPipeline", + "state": null + }, + "types": ["diffusers_auto_model"] + }, + { + "direction": "input", + "hidden": false, + "name": "scheduler", + "required": true, + "roles": ["component"], + "semanticName": "scheduler", + "semantics": { + "kind": "component", + "members": [ + { + "name": "scheduler", + "type": "diffusers.schedulers.scheduling_flow_match_euler_discrete.FlowMatchEulerDiscreteScheduler" + } + ], + "owner": "same_loader", + "scope": "Flux3DistilledModularPipeline", + "state": null + }, + "types": ["diffusers_auto_model"] + }, + { + "direction": "output", + "hidden": false, + "name": "latents", + "required": false, + "roles": ["value"], + "semanticName": "latents", + "semantics": { + "kind": "latents", + "members": [], + "owner": "same_loader", + "scope": "Flux3DistilledModularPipeline", + "state": null + }, + "types": ["latents"] + }, + { + "direction": "output", + "hidden": false, + "name": "doc", + "required": false, + "roles": ["value"], + "semanticName": "doc", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": false, + "name": "reference_binding", + "required": false, + "roles": ["value"], + "semanticName": "reference_binding", + "semantics": { + "kind": "opaque", + "members": [], + "owner": "none", + "scope": "Flux3DistilledModularPipeline", + "state": null + }, + "types": ["reference_conditioning"] + } + ], + "support": "declared", + "task": "text_to_image", + "workflowId": "text2image" + } + }, + { + "node": { + "action": "DecodeLatents", + "cache": false, + "category": "sampler", + "description": "", + "label": "Decode Latents", + "memory": [0, 0, 0], + "module": "modules.ModularDiffusers", + "params": { + "doc": { "display": "output", "label": "Doc", "type": "string" }, + "images": { "display": "output", "label": "Images", "type": "image" }, + "latents": { "display": "input", "label": "Latents *", "type": "latents" }, + "vae": { + "display": "input", + "label": "VAE *", + "onSignal": "update_node", + "signalCompatibility": { "role": "vae" }, + "type": "diffusers_auto_model" + } + }, + "resizable": true, + "skipParamsCheck": true, + "style": {}, + "time": [0, 0, 0], + "type": "custom" + }, + "operation": { + "binding": { "pipelineClass": "Flux3DistilledModularPipeline", "values": {} }, + "blockName": "decode", + "decomposition": "block", + "nodeKey": "modules.ModularDiffusers.DecodeLatents", + "nodeType": "decoder", + "operationId": "diffusion.decode_latents", + "pipelineClass": "Flux3DistilledModularPipeline", + "ports": [ + { + "direction": "input", + "hidden": false, + "name": "latents", + "required": true, + "roles": ["value"], + "semanticName": "latents", + "semantics": { + "kind": "latents", + "members": [], + "owner": "same_loader", + "scope": "Flux3DistilledModularPipeline", + "state": null + }, + "types": ["latents"] + }, + { + "direction": "input", + "hidden": false, + "name": "vae", + "required": true, + "roles": ["component"], + "semanticName": "vae", + "semantics": { + "kind": "component", + "members": [ + { "name": "vae", "type": "diffusers.models.autoencoders.autoencoder_kl_flux2.AutoencoderKLFlux2" } + ], + "owner": "same_loader", + "scope": "Flux3DistilledModularPipeline", + "state": null + }, + "types": ["diffusers_auto_model"] + }, + { + "direction": "output", + "hidden": false, + "name": "images", + "required": false, + "roles": ["value"], + "semanticName": "images", + "semantics": { "kind": "media", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["image"] + }, + { + "direction": "output", + "hidden": false, + "name": "doc", + "required": false, + "roles": ["value"], + "semanticName": "doc", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + } + ], + "support": "declared", + "task": "text_to_image", + "workflowId": "text2image" + } + } + ], + "pipelineClass": "Flux3DistilledModularPipeline", + "requiredInputs": [{ "field": "prompt", "operationId": "diffusion.encode_prompt" }], + "schemaVersion": 1, + "sharedInputs": [], + "task": "text_to_image", + "upstreamBlocks": ["text_encoder", "denoise", "decode"], + "workflowId": "text2image" + }, + { + "authoring": { + "ancillaryOperations": [ + { + "adapter": { + "declarationSha256": "sha256:2a3d4685988b418115008bbb95fb3e948097580c0bedd2940ea3fe1e40254dc2", + "id": "transformers-prompt-enhancement-v1" + }, + "bindings": { + "output": { "field": "proposal_summary", "role": "proposal" }, + "owner": { + "layoutField": "layout_conditioning", + "promptField": "prompt", + "referenceSource": null, + "role": "prompt" + }, + "request": { + "imagesField": "images", + "layoutField": "layout_conditioning", + "promptField": "prompt", + "role": "proposal" + } + }, + "contentHash": "studio-ancillary-v1-fb3aa8f6", + "edges": [["provider", "model", "proposal", "model"]], + "executionPurpose": "explicit_preview", + "fieldOverrides": [ + ["proposal", "enhancement_max_new_tokens", { "hidden": false }], + ["proposal", "max_new_tokens", { "hidden": true }] + ], + "id": "flux3-klein:official:text-to-image:prompt-preview-nf4:v1:preview", + "initialValues": [ + ["provider", "model_id", { "source": "hub", "value": "black-forest-labs/flux-3-image-klein-pup" }], + ["provider", "revision", "3f3edb52b2c55de0d49feab28598b68f7f8e4830"], + ["proposal", "operation", "enhance_prompt"], + ["provider", "dtype", "bfloat16"], + ["provider", "device", "cuda:0"], + ["provider", "quantization_mode", "bnb_4bit"], + ["proposal", "max_input_tokens", 4096] + ], + "parent": { + "authoringRecipeId": "flux3-klein:official:text-to-image:prompt-preview-nf4:v1", + "baseSpecContentHash": "studio-spec-v1-8411b4e0", + "baseSpecId": "flux3-klein:official-provider:v1:text-to-image:v1", + "executionProfileId": "flux3-klein:official-provider:v1", + "pipelineClass": "Flux3DistilledModularPipeline", + "task": "text_to_image" + }, + "roles": [ + ["provider", "modules.HuggingFaceTransformers.LoadImageTextToTextModel", -720, -400], + ["proposal", "modules.HuggingFaceTransformers.GenerateImageVideoText", -360, -400] + ], + "schemaVersion": 1, + "sourceRegions": false, + "verification": { + "adapter": { + "declarationSha256": "sha256:2a3d4685988b418115008bbb95fb3e948097580c0bedd2940ea3fe1e40254dc2", + "id": "transformers-prompt-enhancement-v1" + }, + "chatTemplateSha256": "sha256:a4aee8afcf2e0711942cf848899be66016f8d14a889ff9ede07bca099c28f715", + "modelReceipt": { + "library": "transformers", + "loader": { "modelAutoClass": "AutoModelForImageTextToText", "preprocessorAutoClass": "AutoProcessor" }, + "runtime": { + "architectures": ["Qwen3_5ForConditionalGeneration"], + "modelClass": "Qwen3_5ForConditionalGeneration", + "modelType": "qwen3_5", + "preprocessorClass": "Qwen3VLProcessor", + "transformersVersion": "5.18.0" + }, + "schemaVersion": 1, + "security": { + "hostedInference": false, + "localFilesOnly": true, + "safetensorsOnly": true, + "trustRemoteCode": false + }, + "source": { + "kind": "hub", + "repository": "black-forest-labs/flux-3-image-klein-pup", + "revision": "3f3edb52b2c55de0d49feab28598b68f7f8e4830" + }, + "task": "image-video-to-text" + }, + "quantizationRecipes": [ + { "mode": "none" }, + { + "computeDtype": "bfloat16", + "doubleQuant": true, + "mode": "bnb_4bit", + "quantType": "nf4", + "skipModules": ["lm_head", "model.visual"] + } + ], + "requestInputs": { + "maxImagePixelsField": "max_image_pixels", + "maxInputTokensField": "max_input_tokens", + "maxNewTokensField": "enhancement_max_new_tokens", + "minNewTokensField": "min_new_tokens", + "operationField": "operation", + "role": "proposal" + }, + "runtimeInputs": { + "deviceField": "device", + "dtypeField": "dtype", + "modelField": "model_id", + "quantizationField": "quantization_mode", + "revisionField": "revision", + "role": "provider" + }, + "schemaVersion": 1, + "supportedPromptModes": ["t2i", "i2i"], + "systemPromptSha256ByMode": { + "i2i": "95cec384d5b6d341caa9fb3f2c7ca45ee80c2364b3a95d4044aebf976f6dd3bf", + "i2i_bbox": "9ad10f947e401337cf155cac0518cc428159ef16f2f029f48aae2aaab8380a5e", + "t2i": "8b235a421bce2213d11ada01f5a1244443dd72303ffbb4cc9e5a0d8b0de5ab6f", + "t2i_bbox": "5f513d8ce5838732919f9e645507aa20ff373e88bf93132c768e063c9db3151f" + }, + "systemPromptsSha256": "sha256:b5da3ed8bc04ab59dbdb747930f7dbff847e868903fed8028f85ee1a4ac82fb4" + } + } + ], + "baseSpecContentHash": "studio-spec-v1-8411b4e0", + "baseSpecId": "flux3-klein:official-provider:v1:text-to-image:v1", + "bindings": [ + ["models", "model_type", "pipelineClass"], + ["models", "repo_id", "artifact"], + ["models", "revision", "defaultRevision"], + ["models", "dtype", "dtype"], + ["models", "device", "device"], + ["models", "auto_offload", "autoOffload"], + ["models", "offload_mode", "offloadMode"], + ["models", "trust_remote_code", "false"], + ["prompt", "prompt", "prompt"], + ["denoise", "width", "width"], + ["denoise", "height", "height"], + ["denoise", "seed", "seed"], + ["denoise", "num_inference_steps", "steps"], + ["prompt", "max_sequence_length", "maxSequenceLength"], + ["models", "weight_format", "weightFormat"] + ], + "canonicalizationVersion": 1, + "contentHash": "studio-authoring-v1-6bd6e4b0", + "edges": [ + ["models", "text_encoders", "prompt", "text_encoders"], + ["models", "unet_out", "denoise", "unet"], + ["models", "scheduler", "denoise", "scheduler"], + ["models", "vae_out", "decode", "vae"], + ["prompt", "embeddings", "denoise", "embeddings"], + ["denoise", "latents", "decode", "latents"], + ["decode", "images", "preview", "image"] + ], + "executionProfileIds": ["flux3-klein:official-provider:v1"], + "id": "flux3-klein:official:text-to-image:prompt-preview-nf4:v1", + "initialValues": [], + "roles": [ + ["models", "modules.ModularDiffusers.ModelsLoader", -720, -80], + ["prompt", "modules.ModularDiffusers.EncodePrompt", -360, -240], + ["denoise", "modules.ModularDiffusers.Denoise", 80, -80], + ["decode", "modules.ModularDiffusers.DecodeLatents", 440, -80], + ["preview", "modules.Image.Preview", 800, -80] + ], + "schemaVersion": 1 + }, + "edges": [ + { + "source": "diffusion.load_models", + "sourceHandle": "text_encoders", + "target": "diffusion.encode_prompt", + "targetHandle": "text_encoders" + }, + { + "source": "diffusion.load_models", + "sourceHandle": "scheduler", + "target": "diffusion.denoise", + "targetHandle": "scheduler" + }, + { + "source": "diffusion.load_models", + "sourceHandle": "unet_out", + "target": "diffusion.denoise", + "targetHandle": "unet" + }, + { + "source": "diffusion.load_models", + "sourceHandle": "vae_out", + "target": "diffusion.decode_latents", + "targetHandle": "vae" + }, + { + "source": "diffusion.encode_prompt", + "sourceHandle": "embeddings", + "target": "diffusion.denoise", + "targetHandle": "embeddings" + }, + { + "source": "diffusion.denoise", + "sourceHandle": "latents", + "target": "diffusion.decode_latents", + "targetHandle": "latents" + } + ], + "nodes": [ + { + "node": { + "action": "ModelsLoader", + "cache": false, + "category": "loader", + "description": "", + "label": "Load Models", + "memory": [0, 0, 0], + "module": "modules.ModularDiffusers", + "params": { + "attention_backend": { + "default": "inherit", + "description": "Inherit preserves existing native component defaults; explicit choices use the ordinary Diffusers attention API.", + "label": "Attention Backend", + "options": [ + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "inherit", + "schemaVersion": 1, + "value": "inherit" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "auto", + "schemaVersion": 1, + "value": "auto" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "native", + "schemaVersion": 1, + "value": "native" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "_native_math", + "schemaVersion": 1, + "value": "_native_math" + } + ], + "type": "string" + }, + "auto_offload": { "label": "Enable Auto Offload", "type": "boolean", "value": true }, + "controlnet": { + "display": "input", + "hidden": true, + "label": "ControlNet", + "type": "diffusers_auto_model" + }, + "device": { + "label": "Device", + "options": { + "cpu": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "cpu", + "schemaVersion": 1, + "value": "cpu" + }, + "cpu:0": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "cpu:0", + "schemaVersion": 1, + "value": "cpu:0" + } + }, + "type": "string", + "value": "cpu:0" + }, + "dtype": { + "label": "dtype", + "options": [ + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "float32", + "schemaVersion": 1, + "value": "float32" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "float16", + "schemaVersion": 1, + "value": "float16" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "bfloat16", + "schemaVersion": 1, + "value": "bfloat16" + } + ], + "value": "bfloat16" + }, + "image_encoder": { + "connectionRole": "image_encoder", + "display": "output", + "hidden": true, + "label": "Image Encoder", + "signal": { + "direction": "output", + "origin": "modiff_pipeline_identity", + "value": "Flux3DistilledModularPipeline" + }, + "type": "diffusers_auto_model" + }, + "inpaint_compatibility": { + "default": "native", + "description": "Technical compatibility selection for the reviewed Qwen Edit inpainting candidate; existing nodes retain native policy.", + "hidden": true, + "label": "Inpaint Compatibility", + "options": [ + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "native", + "schemaVersion": 1, + "value": "native" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "whole_v1", + "schemaVersion": 1, + "value": "whole_v1" + } + ], + "type": "string" + }, + "lora_list": { "display": "input", "label": "Lora", "type": "custom_lora" }, + "model_type": { + "description": "Selects the Modular Diffusers pipeline class. This filters compatible checkpoints and publishes the component contract used by connected nodes; it is not the model checkpoint itself.", + "label": "Pipeline Type", + "onChange": "set_filters", + "options": { + "": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "", + "schemaVersion": 1, + "value": "" + }, + "AnimaModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Anima", + "schemaVersion": 1, + "value": "AnimaModularPipeline" + }, + "Cosmos3DistilledModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Cosmos 3 Distilled", + "schemaVersion": 1, + "value": "Cosmos3DistilledModularPipeline" + }, + "Cosmos3OmniModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Cosmos 3 Nano", + "schemaVersion": 1, + "value": "Cosmos3OmniModularPipeline" + }, + "DummyCustomPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Custom", + "schemaVersion": 1, + "value": "DummyCustomPipeline" + }, + "ErnieImageModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "ERNIE Image Turbo", + "schemaVersion": 1, + "value": "ErnieImageModularPipeline" + }, + "Flux2KleinBaseModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Flux 2 Klein Base", + "schemaVersion": 1, + "value": "Flux2KleinBaseModularPipeline" + }, + "Flux2KleinModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Flux 2 Klein Distilled", + "schemaVersion": 1, + "value": "Flux2KleinModularPipeline" + }, + "Flux2ModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Flux 2", + "schemaVersion": 1, + "value": "Flux2ModularPipeline" + }, + "Flux3DistilledModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "FLUX 3 Image Klein", + "schemaVersion": 1, + "value": "Flux3DistilledModularPipeline" + }, + "Flux3ModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "FLUX 3 Image Klein Base", + "schemaVersion": 1, + "value": "Flux3ModularPipeline" + }, + "FluxKontextModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Flux Kontext", + "schemaVersion": 1, + "value": "FluxKontextModularPipeline" + }, + "FluxModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Flux", + "schemaVersion": 1, + "value": "FluxModularPipeline" + }, + "HeliosModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Helios", + "schemaVersion": 1, + "value": "HeliosModularPipeline" + }, + "HeliosPyramidDistilledModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Helios Pyramid Distilled", + "schemaVersion": 1, + "value": "HeliosPyramidDistilledModularPipeline" + }, + "HeliosPyramidModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Helios Pyramid", + "schemaVersion": 1, + "value": "HeliosPyramidModularPipeline" + }, + "HunyuanVideo15ModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "HunyuanVideo 1.5", + "schemaVersion": 1, + "value": "HunyuanVideo15ModularPipeline" + }, + "Ideogram4ModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Ideogram 4 (Contract only)", + "schemaVersion": 1, + "value": "Ideogram4ModularPipeline" + }, + "Krea2ModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Krea 2 (Contract only)", + "schemaVersion": 1, + "value": "Krea2ModularPipeline" + }, + "Krea2TurboModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Krea 2 Turbo (Contract only)", + "schemaVersion": 1, + "value": "Krea2TurboModularPipeline" + }, + "LTX25ModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "LTX-2.5 (Contract only)", + "schemaVersion": 1, + "value": "LTX25ModularPipeline" + }, + "MiniMaxH3ModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "MiniMax H3", + "schemaVersion": 1, + "value": "MiniMaxH3ModularPipeline" + }, + "MiniMaxMusic3ModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "MiniMax Music 3", + "schemaVersion": 1, + "value": "MiniMaxMusic3ModularPipeline" + }, + "QwenImageEditModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Qwen-Image-Edit", + "schemaVersion": 1, + "value": "QwenImageEditModularPipeline" + }, + "QwenImageEditPlusModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Qwen-Image-Edit-2511", + "schemaVersion": 1, + "value": "QwenImageEditPlusModularPipeline" + }, + "QwenImageLayeredModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Qwen-Image-Layered", + "schemaVersion": 1, + "value": "QwenImageLayeredModularPipeline" + }, + "QwenImageModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Qwen-Image-2512", + "schemaVersion": 1, + "value": "QwenImageModularPipeline" + }, + "StableDiffusion3ModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Stable Diffusion 3 (Contract only)", + "schemaVersion": 1, + "value": "StableDiffusion3ModularPipeline" + }, + "StableDiffusionXLModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Stable Diffusion XL", + "schemaVersion": 1, + "value": "StableDiffusionXLModularPipeline" + }, + "WanAnimate2DistilledModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Wan Animate 2 Distilled", + "schemaVersion": 1, + "value": "WanAnimate2DistilledModularPipeline" + }, + "WanAnimate2ModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Wan Animate 2", + "schemaVersion": 1, + "value": "WanAnimate2ModularPipeline" + }, + "WanImage2VideoModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "WAN2 I2V", + "schemaVersion": 1, + "value": "WanImage2VideoModularPipeline" + }, + "WanModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "WAN2 T2V", + "schemaVersion": 1, + "value": "WanModularPipeline" + }, + "ZImageModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Z-Image", + "schemaVersion": 1, + "value": "ZImageModularPipeline" + } + }, + "type": "string", + "value": "Flux3DistilledModularPipeline" + }, + "modiff_pipeline_identity": { + "hidden": true, + "label": "Custom Pipeline Identity", + "type": "object", + "value": null + }, + "offload_mode": { + "default": "model_cpu", + "label": "Offload Mode", + "options": [ + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "auto_cpu", + "schemaVersion": 1, + "value": "auto_cpu" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "none", + "schemaVersion": 1, + "value": "none" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "model_cpu", + "schemaVersion": 1, + "value": "model_cpu" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "group_cpu", + "schemaVersion": 1, + "value": "group_cpu" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "group_disk", + "schemaVersion": 1, + "value": "group_disk" + } + ], + "type": "string", + "value": "model_cpu" + }, + "pipeline_components": { + "connectionRole": "pipeline_components", + "display": "output", + "hidden": false, + "label": "Pipeline Components", + "signal": { + "direction": "output", + "origin": "modiff_pipeline_identity", + "value": "Flux3DistilledModularPipeline" + }, + "type": "diffusers_modular_pipeline_components" + }, + "quant_config": { "display": "input", "label": "Quant Config", "type": "quant_config" }, + "refresh_pipeline_identity_button": { + "display": "ui_button", + "hidden": true, + "label": "Review and Refresh Custom Contract", + "onChange": "refresh_pipeline_identity", + "value": false + }, + "repo_id": { + "display": "modelselect", + "fieldOptions": { + "filter": { "hub": { "className": ["Flux3DistilledModularPipeline"] } }, + "noValidation": true, + "sources": ["hub", "local"] + }, + "label": "Repository ID", + "onChange": "refresh_pipeline_identity", + "type": "string", + "value": { "source": "hub", "value": "black-forest-labs/flux-3-image-klein" } + }, + "reviewed_variant": { + "description": "Select an immutable, reviewed checkpoint for this exact Modular Diffusers pipeline family. Changing it does not replace the workflow graph or reset its parameters.", + "fieldOptions": { "controlTier": "essential" }, + "hidden": true, + "label": "Model", + "options": [ + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "black-forest-labs/flux-3-image-klein", + "schemaVersion": 1, + "value": "black-forest-labs/flux-3-image-klein" + } + ], + "type": "string", + "value": "black-forest-labs/flux-3-image-klein" + }, + "revision": { + "description": "Required exact 40-character commit hash for Hub custom contracts.", + "label": "Revision", + "onChange": "refresh_pipeline_identity", + "type": "string", + "value": "8454017f9ebaada30c998fccd9f67a80c7580f68" + }, + "scheduler": { + "connectionRole": "scheduler", + "display": "output", + "hidden": false, + "label": "Scheduler", + "signal": { + "direction": "output", + "origin": "modiff_pipeline_identity", + "value": "Flux3DistilledModularPipeline" + }, + "type": "diffusers_auto_model" + }, + "text_encoders": { + "connectionRole": "text_encoders", + "display": "output", + "hidden": false, + "label": "Text Encoders", + "signal": { + "direction": "output", + "origin": "modiff_pipeline_identity", + "value": "Flux3DistilledModularPipeline" + }, + "type": "diffusers_auto_models" + }, + "trust_remote_code": { + "description": "Repository code execution is disabled; keep this off for contract preview.", + "label": "Trust Remote Code", + "onChange": "refresh_pipeline_identity", + "type": "boolean", + "value": false + }, + "unet": { "display": "input", "hidden": false, "label": "Denoise Model", "type": "diffusers_auto_model" }, + "unet_out": { + "connectionRole": "denoiser", + "display": "output", + "hidden": false, + "label": "Denoise Model", + "signal": { + "direction": "output", + "origin": "modiff_pipeline_identity", + "value": "Flux3DistilledModularPipeline" + }, + "type": "diffusers_auto_model" + }, + "vae": { "display": "input", "hidden": false, "label": "VAE", "type": "diffusers_auto_model" }, + "vae_out": { + "connectionRole": "vae", + "display": "output", + "hidden": false, + "label": "VAE", + "signal": { + "direction": "output", + "origin": "modiff_pipeline_identity", + "value": "Flux3DistilledModularPipeline" + }, + "type": "diffusers_auto_model" + }, + "vae_slicing": { + "default": null, + "description": "An unset policy preserves the native VAE configuration; templates may bind an explicit boolean.", + "hidden": true, + "label": "VAE Slicing", + "type": "boolean" + }, + "vae_tiling": { + "default": null, + "description": "An unset policy preserves the native VAE configuration; templates may bind an explicit boolean.", + "hidden": true, + "label": "VAE Tiling", + "type": "boolean" + }, + "weight_format": { + "default": "native", + "description": "Select a backend-declared immutable component format. Missing reviewed files must be installed through Model Manager.", + "fieldOptions": { "controlTier": "advanced" }, + "hidden": false, + "label": "Weight Format", + "options": [ + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "native", + "schemaVersion": 1, + "value": "native" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "fp8r", + "schemaVersion": 1, + "value": "fp8r" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "nvfp4", + "schemaVersion": 1, + "value": "nvfp4" + } + ], + "type": "string" + }, + "weight_loading_mode": { + "default": "cpu", + "description": "Load weights on CPU or CUDA before disk offload. CUDA loading needs room for a complete component and is available only for supported models.", + "fieldOptions": { "controlTier": "advanced" }, + "label": "Weight Loading", + "options": [ + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "cpu", + "schemaVersion": 1, + "value": "cpu" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "cuda", + "schemaVersion": 1, + "value": "cuda" + } + ], + "type": "string" + }, + "workflow_id": { + "description": "Exact reviewed component partition selected by a first-party Cluster Node.", + "hidden": true, + "label": "Reviewed Workflow", + "type": "string", + "value": "text2image" + } + }, + "resizable": true, + "skipParamsCheck": true, + "style": {}, + "time": [0, 0, 0], + "type": "custom" + }, + "operation": { + "binding": { + "pipelineClass": "Flux3DistilledModularPipeline", + "values": { "model_type": "Flux3DistilledModularPipeline" } + }, + "blockName": null, + "decomposition": "loader", + "nodeKey": "modules.ModularDiffusers.ModelsLoader", + "nodeType": "loader", + "operationId": "diffusion.load_models", + "pipelineClass": "Flux3DistilledModularPipeline", + "ports": [ + { + "direction": "input", + "hidden": false, + "name": "model_type", + "required": false, + "roles": ["value"], + "semanticName": "model_type", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": false, + "name": "repo_id", + "required": false, + "roles": ["value"], + "semanticName": "repo_id", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": true, + "name": "reviewed_variant", + "required": false, + "roles": ["value"], + "semanticName": "reviewed_variant", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": false, + "name": "device", + "required": false, + "roles": ["value"], + "semanticName": "device", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": false, + "name": "attention_backend", + "required": false, + "roles": ["value"], + "semanticName": "attention_backend", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": true, + "name": "vae_slicing", + "required": false, + "roles": ["value"], + "semanticName": "vae_slicing", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["boolean"] + }, + { + "direction": "input", + "hidden": true, + "name": "vae_tiling", + "required": false, + "roles": ["value"], + "semanticName": "vae_tiling", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["boolean"] + }, + { + "direction": "input", + "hidden": true, + "name": "inpaint_compatibility", + "required": false, + "roles": ["value"], + "semanticName": "inpaint_compatibility", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": false, + "name": "trust_remote_code", + "required": false, + "roles": ["value"], + "semanticName": "trust_remote_code", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["boolean"] + }, + { + "direction": "input", + "hidden": false, + "name": "revision", + "required": false, + "roles": ["value"], + "semanticName": "revision", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": true, + "name": "workflow_id", + "required": false, + "roles": ["value"], + "semanticName": "workflow_id", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": true, + "name": "modiff_pipeline_identity", + "required": false, + "roles": ["value"], + "semanticName": "modiff_pipeline_identity", + "semantics": { + "kind": "opaque", + "members": [], + "owner": "none", + "scope": "Flux3DistilledModularPipeline", + "state": null + }, + "types": ["object"] + }, + { + "direction": "input", + "hidden": false, + "name": "auto_offload", + "required": false, + "roles": ["value"], + "semanticName": "auto_offload", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["boolean"] + }, + { + "direction": "input", + "hidden": false, + "name": "offload_mode", + "required": false, + "roles": ["value"], + "semanticName": "offload_mode", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": false, + "name": "weight_loading_mode", + "required": false, + "roles": ["value"], + "semanticName": "weight_loading_mode", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": true, + "name": "weight_format", + "required": false, + "roles": ["value"], + "semanticName": "weight_format", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": false, + "name": "unet", + "required": false, + "roles": ["component"], + "semanticName": "unet", + "semantics": { + "kind": "component", + "members": [ + { + "name": "transformer", + "type": "diffusers.models.transformers.transformer_flux3.Flux3Transformer2DModel" + } + ], + "owner": "same_loader", + "scope": "Flux3DistilledModularPipeline", + "state": null + }, + "types": ["diffusers_auto_model"] + }, + { + "direction": "input", + "hidden": false, + "name": "vae", + "required": false, + "roles": ["component"], + "semanticName": "vae", + "semantics": { + "kind": "component", + "members": [ + { "name": "vae", "type": "diffusers.models.autoencoders.autoencoder_kl_flux2.AutoencoderKLFlux2" } + ], + "owner": "same_loader", + "scope": "Flux3DistilledModularPipeline", + "state": null + }, + "types": ["diffusers_auto_model"] + }, + { + "direction": "input", + "hidden": true, + "name": "controlnet", + "required": false, + "roles": ["component"], + "semanticName": "controlnet", + "semantics": { + "kind": "component", + "members": [], + "owner": "same_loader", + "scope": "Flux3DistilledModularPipeline", + "state": null + }, + "types": ["diffusers_auto_model"] + }, + { + "direction": "input", + "hidden": false, + "name": "lora_list", + "required": false, + "roles": ["value"], + "semanticName": "lora_list", + "semantics": { + "kind": "opaque", + "members": [], + "owner": "none", + "scope": "Flux3DistilledModularPipeline", + "state": null + }, + "types": ["custom_lora"] + }, + { + "direction": "output", + "hidden": false, + "name": "text_encoders", + "required": false, + "roles": ["component"], + "semanticName": "text_encoders", + "semantics": { + "kind": "component", + "members": [ + { + "name": "text_encoder", + "type": "transformers.models.qwen3_vl.modeling_qwen3_vl.Qwen3VLForConditionalGeneration" + }, + { "name": "tokenizer", "type": "transformers.models.auto.processing_auto.AutoProcessor" } + ], + "owner": "same_loader", + "scope": "Flux3DistilledModularPipeline", + "state": null + }, + "types": ["diffusers_auto_models"] + }, + { + "direction": "output", + "hidden": false, + "name": "unet_out", + "required": false, + "roles": ["component"], + "semanticName": "unet_out", + "semantics": { + "kind": "component", + "members": [ + { + "name": "transformer", + "type": "diffusers.models.transformers.transformer_flux3.Flux3Transformer2DModel" + } + ], + "owner": "same_loader", + "scope": "Flux3DistilledModularPipeline", + "state": null + }, + "types": ["diffusers_auto_model"] + }, + { + "direction": "output", + "hidden": false, + "name": "vae_out", + "required": false, + "roles": ["component"], + "semanticName": "vae_out", + "semantics": { + "kind": "component", + "members": [ + { "name": "vae", "type": "diffusers.models.autoencoders.autoencoder_kl_flux2.AutoencoderKLFlux2" } + ], + "owner": "same_loader", + "scope": "Flux3DistilledModularPipeline", + "state": null + }, + "types": ["diffusers_auto_model"] + }, + { + "direction": "output", + "hidden": false, + "name": "scheduler", + "required": false, + "roles": ["component"], + "semanticName": "scheduler", + "semantics": { + "kind": "component", + "members": [ + { + "name": "scheduler", + "type": "diffusers.schedulers.scheduling_flow_match_euler_discrete.FlowMatchEulerDiscreteScheduler" + } + ], + "owner": "same_loader", + "scope": "Flux3DistilledModularPipeline", + "state": null + }, + "types": ["diffusers_auto_model"] + }, + { + "direction": "output", + "hidden": true, + "name": "image_encoder", + "required": false, + "roles": ["component"], + "semanticName": "image_encoder", + "semantics": { + "kind": "component", + "members": [], + "owner": "same_loader", + "scope": "Flux3DistilledModularPipeline", + "state": null + }, + "types": ["diffusers_auto_model"] + }, + { + "direction": "output", + "hidden": false, + "name": "pipeline_components", + "required": false, + "roles": ["component"], + "semanticName": "pipeline_components", + "semantics": { + "kind": "component", + "members": [ + { + "name": "image_processor", + "type": "diffusers.modular_pipelines.flux3.image_processor.Flux3ImageProcessor" + }, + { + "name": "scheduler", + "type": "diffusers.schedulers.scheduling_flow_match_euler_discrete.FlowMatchEulerDiscreteScheduler" + }, + { + "name": "text_encoder", + "type": "transformers.models.qwen3_vl.modeling_qwen3_vl.Qwen3VLForConditionalGeneration" + }, + { "name": "tokenizer", "type": "transformers.models.auto.processing_auto.AutoProcessor" }, + { + "name": "transformer", + "type": "diffusers.models.transformers.transformer_flux3.Flux3Transformer2DModel" + }, + { "name": "vae", "type": "diffusers.models.autoencoders.autoencoder_kl_flux2.AutoencoderKLFlux2" } + ], + "owner": "same_loader", + "scope": "Flux3DistilledModularPipeline", + "state": null + }, + "types": ["diffusers_modular_pipeline_components"] + }, + { + "direction": "input", + "hidden": false, + "name": "quant_config", + "required": false, + "roles": ["value"], + "semanticName": "quant_config", + "semantics": { + "kind": "opaque", + "members": [], + "owner": "none", + "scope": "Flux3DistilledModularPipeline", + "state": null + }, + "types": ["quant_config"] + } + ], + "support": "declared", + "task": "text_to_image", + "workflowId": "text2image" + } + }, + { + "node": { + "action": "EncodePrompt", + "cache": false, + "category": "embedding", + "description": "", + "label": "Encode Prompt", + "memory": [0, 0, 0], + "module": "modules.ModularDiffusers", + "params": { + "doc": { "display": "output", "label": "Doc", "type": "string" }, + "embeddings": { "display": "output", "label": "Text Embeddings", "type": "embeddings" }, + "guider": { + "description": "Shared Diffusers guidance used by prompt encoding and denoising when the selected pipeline supports it.", + "display": "input", + "hidden": true, + "label": "Guider", + "type": "custom_guider" + }, + "layout_conditioning": { + "default": null, + "display": "layout", + "fieldOptions": { + "layoutConditioning": { + "schemaVersion": 2, + "sourceRegions": false, + "supportsBoundSourceRegions": true + } + }, + "label": "Layout Conditioning", + "type": "layout_conditioning" + }, + "layout_reference_summary": { + "description": "Display-only ordered reference identities and actual preprocessing sizes from the current encoder cache.", + "display": "output", + "hidden": true, + "label": "Bound Reference Summary", + "type": "string" + }, + "max_sequence_length": { + "default": 8192, + "label": "Maximum Sequence Length", + "max": 8192, + "min": 1, + "step": 1, + "type": "int" + }, + "prompt": { + "default": "", + "display": "textarea", + "fieldOptions": { "exampleAttribution": "MoDiff task example" }, + "label": "Prompt *", + "type": "string", + "value": "A red ceramic teapot on a wooden table beside a window, soft morning light, detailed photograph." + }, + "prompt_input": { + "description": "Optional connected prompt. When connected, this replaces the inline Prompt value.", + "display": "input", + "label": "Prompt Input", + "type": "string" + }, + "reference_binding": { + "default": null, + "display": "input", + "fieldOptions": { "referenceBinding": { "maxReferences": 10, "schemaVersion": 1 } }, + "label": "Reference Binding", + "type": "reference_conditioning" + }, + "text_encoder_out_layers": { + "default": [4, 8, 12, 16, 20, 24, 28, 32], + "display": "select", + "fieldOptions": { "multiple": true, "tupleLength": 8, "tupleValue": true }, + "label": "Text Encoder Layers", + "options": [ + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "0", + "schemaVersion": 1, + "value": "0" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "1", + "schemaVersion": 1, + "value": "1" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "2", + "schemaVersion": 1, + "value": "2" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "3", + "schemaVersion": 1, + "value": "3" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "4", + "schemaVersion": 1, + "value": "4" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "5", + "schemaVersion": 1, + "value": "5" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "6", + "schemaVersion": 1, + "value": "6" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "7", + "schemaVersion": 1, + "value": "7" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "8", + "schemaVersion": 1, + "value": "8" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "9", + "schemaVersion": 1, + "value": "9" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "10", + "schemaVersion": 1, + "value": "10" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "11", + "schemaVersion": 1, + "value": "11" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "12", + "schemaVersion": 1, + "value": "12" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "13", + "schemaVersion": 1, + "value": "13" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "14", + "schemaVersion": 1, + "value": "14" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "15", + "schemaVersion": 1, + "value": "15" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "16", + "schemaVersion": 1, + "value": "16" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "17", + "schemaVersion": 1, + "value": "17" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "18", + "schemaVersion": 1, + "value": "18" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "19", + "schemaVersion": 1, + "value": "19" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "20", + "schemaVersion": 1, + "value": "20" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "21", + "schemaVersion": 1, + "value": "21" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "22", + "schemaVersion": 1, + "value": "22" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "23", + "schemaVersion": 1, + "value": "23" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "24", + "schemaVersion": 1, + "value": "24" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "25", + "schemaVersion": 1, + "value": "25" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "26", + "schemaVersion": 1, + "value": "26" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "27", + "schemaVersion": 1, + "value": "27" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "28", + "schemaVersion": 1, + "value": "28" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "29", + "schemaVersion": 1, + "value": "29" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "30", + "schemaVersion": 1, + "value": "30" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "31", + "schemaVersion": 1, + "value": "31" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "32", + "schemaVersion": 1, + "value": "32" + } + ], + "type": "int" + }, + "text_encoders": { + "display": "input", + "label": "Text Encoders *", + "onSignal": "update_node", + "required": true, + "signalCompatibility": { "role": "text_encoders" }, + "type": "diffusers_auto_models" + } + }, + "resizable": true, + "skipParamsCheck": true, + "style": {}, + "time": [0, 0, 0], + "type": "custom" + }, + "operation": { + "binding": { "pipelineClass": "Flux3DistilledModularPipeline", "values": {} }, + "blockName": "text_encoder", + "decomposition": "block", + "nodeKey": "modules.ModularDiffusers.EncodePrompt", + "nodeType": "text_encoder", + "operationId": "diffusion.encode_prompt", + "pipelineClass": "Flux3DistilledModularPipeline", + "ports": [ + { + "direction": "input", + "hidden": false, + "name": "prompt", + "required": true, + "roles": ["value"], + "semanticName": "prompt", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": false, + "name": "max_sequence_length", + "required": false, + "roles": ["value"], + "semanticName": "max_sequence_length", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["int"] + }, + { + "direction": "input", + "hidden": false, + "name": "text_encoder_out_layers", + "required": false, + "roles": ["value"], + "semanticName": "text_encoder_out_layers", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["int"] + }, + { + "direction": "input", + "hidden": false, + "name": "text_encoders", + "required": true, + "roles": ["component"], + "semanticName": "text_encoders", + "semantics": { + "kind": "component", + "members": [ + { + "name": "text_encoder", + "type": "transformers.models.qwen3_vl.modeling_qwen3_vl.Qwen3VLForConditionalGeneration" + }, + { "name": "tokenizer", "type": "transformers.models.auto.processing_auto.AutoProcessor" } + ], + "owner": "same_loader", + "scope": "Flux3DistilledModularPipeline", + "state": null + }, + "types": ["diffusers_auto_models"] + }, + { + "direction": "output", + "hidden": false, + "name": "embeddings", + "required": false, + "roles": ["value"], + "semanticName": "embeddings", + "semantics": { + "kind": "conditioning", + "members": [], + "owner": "same_loader", + "scope": "Flux3DistilledModularPipeline", + "state": null + }, + "types": ["embeddings"] + }, + { + "direction": "output", + "hidden": false, + "name": "doc", + "required": false, + "roles": ["value"], + "semanticName": "doc", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": false, + "name": "layout_conditioning", + "required": false, + "roles": ["value"], + "semanticName": "layout_conditioning", + "semantics": { + "kind": "opaque", + "members": [], + "owner": "none", + "scope": "Flux3DistilledModularPipeline", + "state": null + }, + "types": ["layout_conditioning"] + }, + { + "direction": "input", + "hidden": false, + "name": "reference_binding", + "required": false, + "roles": ["value"], + "semanticName": "reference_binding", + "semantics": { + "kind": "opaque", + "members": [], + "owner": "none", + "scope": "Flux3DistilledModularPipeline", + "state": null + }, + "types": ["reference_conditioning"] + }, + { + "direction": "input", + "hidden": false, + "name": "prompt_input", + "required": false, + "roles": ["value"], + "semanticName": "prompt", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + } + ], + "support": "declared", + "task": "text_to_image", + "workflowId": "text2image" + } + }, + { + "node": { + "action": "Denoise", + "cache": false, + "category": "sampler", + "description": "", + "label": "Denoise", + "memory": [0, 0, 0], + "module": "modules.ModularDiffusers", + "params": { + "doc": { "display": "output", "label": "Doc", "type": "string" }, + "embeddings": { "display": "input", "label": "Text Embeddings *", "type": "embeddings" }, + "height": { "default": 1024, "label": "Height", "min": 64, "step": 16, "type": "int", "value": 1024 }, + "image_cond_latents": { "display": "input", "label": "Reference Latents", "type": "latents" }, + "latents": { "display": "output", "label": "Latents", "type": "latents" }, + "num_images_per_prompt": { + "default": 1, + "label": "Images Per Prompt", + "max": 8, + "min": 1, + "step": 1, + "type": "int" + }, + "num_inference_steps": { + "default": 16, + "display": "slider", + "label": "Steps", + "max": 100, + "min": 1, + "type": "int", + "value": 16 + }, + "reference_binding": { + "default": null, + "display": "input", + "fieldOptions": { "referenceBinding": { "maxReferences": 10, "schemaVersion": 1 } }, + "label": "Reference Binding", + "type": "reference_conditioning" + }, + "scheduler": { + "display": "input", + "label": "Scheduler *", + "signalCompatibility": { "role": "scheduler" }, + "type": "diffusers_auto_model" + }, + "seed": { + "default": 0, + "display": "random", + "label": "Seed", + "max": 4294967295, + "min": 0, + "type": "int" + }, + "unet": { + "display": "input", + "label": "Denoise Model *", + "onSignal": [ + "update_node", + { "action": "signal", "target": "guider" }, + { "action": "signal", "target": "controlnet_bundle" } + ], + "required": true, + "signalCompatibility": { "role": "denoiser" }, + "type": "diffusers_auto_model" + }, + "width": { "default": 1024, "label": "Width", "min": 64, "step": 16, "type": "int", "value": 1024 } + }, + "resizable": true, + "skipParamsCheck": true, + "style": {}, + "time": [0, 0, 0], + "type": "custom" + }, + "operation": { + "binding": { "pipelineClass": "Flux3DistilledModularPipeline", "values": {} }, + "blockName": "denoise", + "decomposition": "block", + "nodeKey": "modules.ModularDiffusers.Denoise", + "nodeType": "denoise", + "operationId": "diffusion.denoise", + "pipelineClass": "Flux3DistilledModularPipeline", + "ports": [ + { + "direction": "input", + "hidden": false, + "name": "embeddings", + "required": true, + "roles": ["value"], + "semanticName": "embeddings", + "semantics": { + "kind": "conditioning", + "members": [], + "owner": "same_loader", + "scope": "Flux3DistilledModularPipeline", + "state": null + }, + "types": ["embeddings"] + }, + { + "direction": "input", + "hidden": false, + "name": "width", + "required": false, + "roles": ["value"], + "semanticName": "width", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["int"] + }, + { + "direction": "input", + "hidden": false, + "name": "height", + "required": false, + "roles": ["value"], + "semanticName": "height", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["int"] + }, + { + "direction": "input", + "hidden": false, + "name": "seed", + "required": false, + "roles": ["value"], + "semanticName": "seed", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["int"] + }, + { + "direction": "input", + "hidden": false, + "name": "num_inference_steps", + "required": false, + "roles": ["value"], + "semanticName": "num_inference_steps", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["int"] + }, + { + "direction": "input", + "hidden": false, + "name": "num_images_per_prompt", + "required": false, + "roles": ["value"], + "semanticName": "num_images_per_prompt", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["int"] + }, + { + "direction": "input", + "hidden": false, + "name": "image_cond_latents", + "required": false, + "roles": ["value"], + "semanticName": "image_cond_latents", + "semantics": { + "kind": "latents", + "members": [], + "owner": "same_loader", + "scope": "Flux3DistilledModularPipeline", + "state": null + }, + "types": ["latents"] + }, + { + "direction": "input", + "hidden": false, + "name": "unet", + "required": true, + "roles": ["component"], + "semanticName": "unet", + "semantics": { + "kind": "component", + "members": [ + { + "name": "transformer", + "type": "diffusers.models.transformers.transformer_flux3.Flux3Transformer2DModel" + } + ], + "owner": "same_loader", + "scope": "Flux3DistilledModularPipeline", + "state": null + }, + "types": ["diffusers_auto_model"] + }, + { + "direction": "input", + "hidden": false, + "name": "scheduler", + "required": true, + "roles": ["component"], + "semanticName": "scheduler", + "semantics": { + "kind": "component", + "members": [ + { + "name": "scheduler", + "type": "diffusers.schedulers.scheduling_flow_match_euler_discrete.FlowMatchEulerDiscreteScheduler" + } + ], + "owner": "same_loader", + "scope": "Flux3DistilledModularPipeline", + "state": null + }, + "types": ["diffusers_auto_model"] + }, + { + "direction": "output", + "hidden": false, + "name": "latents", + "required": false, + "roles": ["value"], + "semanticName": "latents", + "semantics": { + "kind": "latents", + "members": [], + "owner": "same_loader", + "scope": "Flux3DistilledModularPipeline", + "state": null + }, + "types": ["latents"] + }, + { + "direction": "output", + "hidden": false, + "name": "doc", + "required": false, + "roles": ["value"], + "semanticName": "doc", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": false, + "name": "reference_binding", + "required": false, + "roles": ["value"], + "semanticName": "reference_binding", + "semantics": { + "kind": "opaque", + "members": [], + "owner": "none", + "scope": "Flux3DistilledModularPipeline", + "state": null + }, + "types": ["reference_conditioning"] + } + ], + "support": "declared", + "task": "text_to_image", + "workflowId": "text2image" + } + }, + { + "node": { + "action": "DecodeLatents", + "cache": false, + "category": "sampler", + "description": "", + "label": "Decode Latents", + "memory": [0, 0, 0], + "module": "modules.ModularDiffusers", + "params": { + "doc": { "display": "output", "label": "Doc", "type": "string" }, + "images": { "display": "output", "label": "Images", "type": "image" }, + "latents": { "display": "input", "label": "Latents *", "type": "latents" }, + "vae": { + "display": "input", + "label": "VAE *", + "onSignal": "update_node", + "signalCompatibility": { "role": "vae" }, + "type": "diffusers_auto_model" + } + }, + "resizable": true, + "skipParamsCheck": true, + "style": {}, + "time": [0, 0, 0], + "type": "custom" + }, + "operation": { + "binding": { "pipelineClass": "Flux3DistilledModularPipeline", "values": {} }, + "blockName": "decode", + "decomposition": "block", + "nodeKey": "modules.ModularDiffusers.DecodeLatents", + "nodeType": "decoder", + "operationId": "diffusion.decode_latents", + "pipelineClass": "Flux3DistilledModularPipeline", + "ports": [ + { + "direction": "input", + "hidden": false, + "name": "latents", + "required": true, + "roles": ["value"], + "semanticName": "latents", + "semantics": { + "kind": "latents", + "members": [], + "owner": "same_loader", + "scope": "Flux3DistilledModularPipeline", + "state": null + }, + "types": ["latents"] + }, + { + "direction": "input", + "hidden": false, + "name": "vae", + "required": true, + "roles": ["component"], + "semanticName": "vae", + "semantics": { + "kind": "component", + "members": [ + { "name": "vae", "type": "diffusers.models.autoencoders.autoencoder_kl_flux2.AutoencoderKLFlux2" } + ], + "owner": "same_loader", + "scope": "Flux3DistilledModularPipeline", + "state": null + }, + "types": ["diffusers_auto_model"] + }, + { + "direction": "output", + "hidden": false, + "name": "images", + "required": false, + "roles": ["value"], + "semanticName": "images", + "semantics": { "kind": "media", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["image"] + }, + { + "direction": "output", + "hidden": false, + "name": "doc", + "required": false, + "roles": ["value"], + "semanticName": "doc", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + } + ], + "support": "declared", + "task": "text_to_image", + "workflowId": "text2image" + } + } + ], + "pipelineClass": "Flux3DistilledModularPipeline", + "requiredInputs": [{ "field": "prompt", "operationId": "diffusion.encode_prompt" }], + "schemaVersion": 1, + "sharedInputs": [], + "task": "text_to_image", + "upstreamBlocks": ["text_encoder", "denoise", "decode"], + "workflowId": "text2image" + }, + { + "authoring": { + "ancillaryOperations": [ + { + "adapter": { + "declarationSha256": "sha256:2a3d4685988b418115008bbb95fb3e948097580c0bedd2940ea3fe1e40254dc2", + "id": "transformers-prompt-enhancement-v1" + }, + "authoredLayoutConstraint": { + "adapterId": "transformers-prompt-enhancement-v1", + "artifacts": [ + { + "byteSize": 19989325, + "path": "tokenizer.json", + "sha256": "06b9509352d2af50381ab2247e083b80d32d5c0aba91c272ca9ff729b6a0e523" + }, + { + "byteSize": 1164, + "path": "tokenizer_config.json", + "sha256": "7488550a894dcf741616126e322ea31d66cf9457b59ec5825f4c7efdced421f8" + }, + { + "byteSize": 163, + "path": "generation_config.json", + "sha256": "e92258e3c39afbaa73fd53a98640c56f6d42fb091e1664697bd5396a1dcbb761" + } + ], + "configuredEosTokenIds": [248046, 248044], + "deadlineSeconds": 1800, + "declarationSha256": "sha256:f321df19db5e99786b807a13d8f380e4bc0577e27163b94e6762661881ac5c08", + "effectiveEosTokenIds": [248046], + "effectivePreTokenizerSha256": "sha256:4cba7e5c03fddf4af78a44f283740fd19687522c60cc36ee271b655f634a7af3", + "layoutPolicy": "constrained-authored-table-v1", + "limits": { + "build_seconds": 10, + "lookup_seconds": 2, + "max_cache_bytes": 16777216, + "max_caption_chars": 131072, + "max_description_chars": 4096, + "max_new_tokens": 3584, + "max_output_bytes": 262144, + "max_references": 10, + "max_regions": 32, + "max_request_seconds": 1800, + "max_token_bytes": 512, + "max_trie_nodes": 2000000, + "max_vocabulary_bytes": 16777216, + "max_vocabulary_tokens": 300000 + }, + "operation": "enhance_prompt_constrained_authored_v1", + "ordinaryVocabularySha256": "sha256:13431bd652cdbd32f84568d0c2b9945ba506071178fdb527d40c4ece256f8b39", + "ordinaryVocabularyTokens": 248044, + "padTokenId": 248044, + "preparationRamBytes": 268435456, + "repository": "black-forest-labs/flux-3-image-klein-pup", + "reservedAddedTokenIds": [ + 248044, 248045, 248046, 248047, 248048, 248049, 248050, 248051, 248052, 248053, 248054, 248055, 248056, + 248057, 248058, 248059, 248060, 248061, 248062, 248063, 248064, 248065, 248066, 248067, 248068, 248069, + 248070, 248071, 248072, 248073, 248074, 248075, 248076 + ], + "revision": "3f3edb52b2c55de0d49feab28598b68f7f8e4830", + "schemaVersion": 1, + "sourcePreTokenizerSha256": "sha256:d730489d91319a99960af82e8fed44be8533ca92615198807b41c29dda5556fc", + "status": "contract_only", + "tokenizerClass": "Qwen3_5Tokenizer", + "tokenizerSemanticSha256": "sha256:40ebf1d8462c42c3b781b870aaa28884b24f86234bc0b49d54d2bbcf5ddc404a", + "tokenizersVersion": "0.23.2", + "transformersVersion": "5.18.0", + "trueSpecialTokenIds": [ + 248044, 248045, 248046, 248047, 248048, 248049, 248050, 248051, 248052, 248053, 248054, 248055, 248056, + 248057, 248070, 248071, 248072, 248073, 248074, 248075, 248076 + ], + "version": "authored-layout-byte-prefix-v1" + }, + "bindings": { + "output": { "field": "proposal_summary", "role": "proposal" }, + "owner": { + "layoutField": "layout_conditioning", + "promptField": "prompt", + "referenceSource": null, + "role": "prompt" + }, + "request": { + "imagesField": "images", + "layoutField": "layout_conditioning", + "promptField": "prompt", + "role": "proposal" + } + }, + "contentHash": "studio-ancillary-v1-21d20f4e", + "edges": [["provider", "model", "proposal", "model"]], + "executionPurpose": "explicit_preview", + "fieldOverrides": [ + ["proposal", "enhancement_max_new_tokens", { "hidden": false }], + ["proposal", "max_new_tokens", { "hidden": true }] + ], + "id": "flux3-klein:official:text-to-image:prompt-preview-constrained-fp32:v1:preview", + "initialValues": [ + ["provider", "model_id", { "source": "hub", "value": "black-forest-labs/flux-3-image-klein-pup" }], + ["provider", "revision", "3f3edb52b2c55de0d49feab28598b68f7f8e4830"], + ["proposal", "operation", "enhance_prompt_constrained_authored_v1"], + ["provider", "dtype", "float32"], + ["provider", "device", "cuda:0"], + ["provider", "quantization_mode", "none"], + ["proposal", "max_input_tokens", 4096] + ], + "layoutPolicy": "constrained-authored-table-v1", + "parent": { + "authoringRecipeId": "flux3-klein:official:text-to-image:prompt-preview-constrained-fp32:v1", + "baseSpecContentHash": "studio-spec-v1-8411b4e0", + "baseSpecId": "flux3-klein:official-provider:v1:text-to-image:v1", + "executionProfileId": "flux3-klein:official-provider:v1", + "pipelineClass": "Flux3DistilledModularPipeline", + "task": "text_to_image" + }, + "roles": [ + ["provider", "modules.HuggingFaceTransformers.LoadImageTextToTextModel", -720, -400], + ["proposal", "modules.HuggingFaceTransformers.GenerateImageVideoText", -360, -400] + ], + "schemaVersion": 1, + "sourceRegions": false, + "verification": { + "adapter": { + "declarationSha256": "sha256:2a3d4685988b418115008bbb95fb3e948097580c0bedd2940ea3fe1e40254dc2", + "id": "transformers-prompt-enhancement-v1" + }, + "chatTemplateSha256": "sha256:a4aee8afcf2e0711942cf848899be66016f8d14a889ff9ede07bca099c28f715", + "layoutRequestSuffixSha256": "sha256:5a17750012e7cc49ecf8169b48b9b9c1610c0ec198d8418dd9d3a7760ed9886e", + "modelReceipt": { + "library": "transformers", + "loader": { "modelAutoClass": "AutoModelForImageTextToText", "preprocessorAutoClass": "AutoProcessor" }, + "runtime": { + "architectures": ["Qwen3_5ForConditionalGeneration"], + "modelClass": "Qwen3_5ForConditionalGeneration", + "modelType": "qwen3_5", + "preprocessorClass": "Qwen3VLProcessor", + "transformersVersion": "5.18.0" + }, + "schemaVersion": 1, + "security": { + "hostedInference": false, + "localFilesOnly": true, + "safetensorsOnly": true, + "trustRemoteCode": false + }, + "source": { + "kind": "hub", + "repository": "black-forest-labs/flux-3-image-klein-pup", + "revision": "3f3edb52b2c55de0d49feab28598b68f7f8e4830" + }, + "task": "image-video-to-text" + }, + "quantizationRecipes": [ + { "mode": "none" }, + { + "computeDtype": "bfloat16", + "doubleQuant": true, + "mode": "bnb_4bit", + "quantType": "nf4", + "skipModules": ["lm_head", "model.visual"] + } + ], + "requestInputs": { + "maxImagePixelsField": "max_image_pixels", + "maxInputTokensField": "max_input_tokens", + "maxNewTokensField": "enhancement_max_new_tokens", + "minNewTokensField": "min_new_tokens", + "operationField": "operation", + "role": "proposal" + }, + "runtimeInputs": { + "deviceField": "device", + "dtypeField": "dtype", + "modelField": "model_id", + "quantizationField": "quantization_mode", + "revisionField": "revision", + "role": "provider" + }, + "schemaVersion": 1, + "supportedPromptModes": ["t2i", "i2i", "t2i_bbox", "i2i_bbox"], + "systemPromptSha256ByMode": { + "i2i": "95cec384d5b6d341caa9fb3f2c7ca45ee80c2364b3a95d4044aebf976f6dd3bf", + "i2i_bbox": "e7791b9d8f3c3d844a0ae493c28e7cdf549a98ba2dc66cad9f08de997127ef7d", + "t2i": "8b235a421bce2213d11ada01f5a1244443dd72303ffbb4cc9e5a0d8b0de5ab6f", + "t2i_bbox": "48bb52d2594ef7f33a1ecc1ef5b79ceab3ae4ff6ace9c2cafc13f4875e362f11" + }, + "systemPromptsSha256": "sha256:b5da3ed8bc04ab59dbdb747930f7dbff847e868903fed8028f85ee1a4ac82fb4" + } + } + ], + "baseSpecContentHash": "studio-spec-v1-8411b4e0", + "baseSpecId": "flux3-klein:official-provider:v1:text-to-image:v1", + "bindings": [ + ["models", "model_type", "pipelineClass"], + ["models", "repo_id", "artifact"], + ["models", "revision", "defaultRevision"], + ["models", "dtype", "dtype"], + ["models", "device", "device"], + ["models", "auto_offload", "autoOffload"], + ["models", "offload_mode", "offloadMode"], + ["models", "trust_remote_code", "false"], + ["prompt", "prompt", "prompt"], + ["denoise", "width", "width"], + ["denoise", "height", "height"], + ["denoise", "seed", "seed"], + ["denoise", "num_inference_steps", "steps"], + ["prompt", "max_sequence_length", "maxSequenceLength"], + ["models", "weight_format", "weightFormat"] + ], + "canonicalizationVersion": 1, + "contentHash": "studio-authoring-v1-3ca5383f", + "edges": [ + ["models", "text_encoders", "prompt", "text_encoders"], + ["models", "unet_out", "denoise", "unet"], + ["models", "scheduler", "denoise", "scheduler"], + ["models", "vae_out", "decode", "vae"], + ["prompt", "embeddings", "denoise", "embeddings"], + ["denoise", "latents", "decode", "latents"], + ["decode", "images", "preview", "image"] + ], + "executionProfileIds": ["flux3-klein:official-provider:v1"], + "id": "flux3-klein:official:text-to-image:prompt-preview-constrained-fp32:v1", + "initialValues": [], + "roles": [ + ["models", "modules.ModularDiffusers.ModelsLoader", -720, -80], + ["prompt", "modules.ModularDiffusers.EncodePrompt", -360, -240], + ["denoise", "modules.ModularDiffusers.Denoise", 80, -80], + ["decode", "modules.ModularDiffusers.DecodeLatents", 440, -80], + ["preview", "modules.Image.Preview", 800, -80] + ], + "schemaVersion": 1 + }, + "edges": [ + { + "source": "diffusion.load_models", + "sourceHandle": "text_encoders", + "target": "diffusion.encode_prompt", + "targetHandle": "text_encoders" + }, + { + "source": "diffusion.load_models", + "sourceHandle": "scheduler", + "target": "diffusion.denoise", + "targetHandle": "scheduler" + }, + { + "source": "diffusion.load_models", + "sourceHandle": "unet_out", + "target": "diffusion.denoise", + "targetHandle": "unet" + }, + { + "source": "diffusion.load_models", + "sourceHandle": "vae_out", + "target": "diffusion.decode_latents", + "targetHandle": "vae" + }, + { + "source": "diffusion.encode_prompt", + "sourceHandle": "embeddings", + "target": "diffusion.denoise", + "targetHandle": "embeddings" + }, + { + "source": "diffusion.denoise", + "sourceHandle": "latents", + "target": "diffusion.decode_latents", + "targetHandle": "latents" + } + ], + "nodes": [ + { + "node": { + "action": "ModelsLoader", + "cache": false, + "category": "loader", + "description": "", + "label": "Load Models", + "memory": [0, 0, 0], + "module": "modules.ModularDiffusers", + "params": { + "attention_backend": { + "default": "inherit", + "description": "Inherit preserves existing native component defaults; explicit choices use the ordinary Diffusers attention API.", + "label": "Attention Backend", + "options": [ + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "inherit", + "schemaVersion": 1, + "value": "inherit" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "auto", + "schemaVersion": 1, + "value": "auto" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "native", + "schemaVersion": 1, + "value": "native" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "_native_math", + "schemaVersion": 1, + "value": "_native_math" + } + ], + "type": "string" + }, + "auto_offload": { "label": "Enable Auto Offload", "type": "boolean", "value": true }, + "controlnet": { + "display": "input", + "hidden": true, + "label": "ControlNet", + "type": "diffusers_auto_model" + }, + "device": { + "label": "Device", + "options": { + "cpu": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "cpu", + "schemaVersion": 1, + "value": "cpu" + }, + "cpu:0": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "cpu:0", + "schemaVersion": 1, + "value": "cpu:0" + } + }, + "type": "string", + "value": "cpu:0" + }, + "dtype": { + "label": "dtype", + "options": [ + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "float32", + "schemaVersion": 1, + "value": "float32" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "float16", + "schemaVersion": 1, + "value": "float16" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "bfloat16", + "schemaVersion": 1, + "value": "bfloat16" + } + ], + "value": "bfloat16" + }, + "image_encoder": { + "connectionRole": "image_encoder", + "display": "output", + "hidden": true, + "label": "Image Encoder", + "signal": { + "direction": "output", + "origin": "modiff_pipeline_identity", + "value": "Flux3DistilledModularPipeline" + }, + "type": "diffusers_auto_model" + }, + "inpaint_compatibility": { + "default": "native", + "description": "Technical compatibility selection for the reviewed Qwen Edit inpainting candidate; existing nodes retain native policy.", + "hidden": true, + "label": "Inpaint Compatibility", + "options": [ + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "native", + "schemaVersion": 1, + "value": "native" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "whole_v1", + "schemaVersion": 1, + "value": "whole_v1" + } + ], + "type": "string" + }, + "lora_list": { "display": "input", "label": "Lora", "type": "custom_lora" }, + "model_type": { + "description": "Selects the Modular Diffusers pipeline class. This filters compatible checkpoints and publishes the component contract used by connected nodes; it is not the model checkpoint itself.", + "label": "Pipeline Type", + "onChange": "set_filters", + "options": { + "": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "", + "schemaVersion": 1, + "value": "" + }, + "AnimaModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Anima", + "schemaVersion": 1, + "value": "AnimaModularPipeline" + }, + "Cosmos3DistilledModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Cosmos 3 Distilled", + "schemaVersion": 1, + "value": "Cosmos3DistilledModularPipeline" + }, + "Cosmos3OmniModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Cosmos 3 Nano", + "schemaVersion": 1, + "value": "Cosmos3OmniModularPipeline" + }, + "DummyCustomPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Custom", + "schemaVersion": 1, + "value": "DummyCustomPipeline" + }, + "ErnieImageModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "ERNIE Image Turbo", + "schemaVersion": 1, + "value": "ErnieImageModularPipeline" + }, + "Flux2KleinBaseModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Flux 2 Klein Base", + "schemaVersion": 1, + "value": "Flux2KleinBaseModularPipeline" + }, + "Flux2KleinModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Flux 2 Klein Distilled", + "schemaVersion": 1, + "value": "Flux2KleinModularPipeline" + }, + "Flux2ModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Flux 2", + "schemaVersion": 1, + "value": "Flux2ModularPipeline" + }, + "Flux3DistilledModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "FLUX 3 Image Klein", + "schemaVersion": 1, + "value": "Flux3DistilledModularPipeline" + }, + "Flux3ModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "FLUX 3 Image Klein Base", + "schemaVersion": 1, + "value": "Flux3ModularPipeline" + }, + "FluxKontextModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Flux Kontext", + "schemaVersion": 1, + "value": "FluxKontextModularPipeline" + }, + "FluxModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Flux", + "schemaVersion": 1, + "value": "FluxModularPipeline" + }, + "HeliosModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Helios", + "schemaVersion": 1, + "value": "HeliosModularPipeline" + }, + "HeliosPyramidDistilledModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Helios Pyramid Distilled", + "schemaVersion": 1, + "value": "HeliosPyramidDistilledModularPipeline" + }, + "HeliosPyramidModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Helios Pyramid", + "schemaVersion": 1, + "value": "HeliosPyramidModularPipeline" + }, + "HunyuanVideo15ModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "HunyuanVideo 1.5", + "schemaVersion": 1, + "value": "HunyuanVideo15ModularPipeline" + }, + "Ideogram4ModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Ideogram 4 (Contract only)", + "schemaVersion": 1, + "value": "Ideogram4ModularPipeline" + }, + "Krea2ModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Krea 2 (Contract only)", + "schemaVersion": 1, + "value": "Krea2ModularPipeline" + }, + "Krea2TurboModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Krea 2 Turbo (Contract only)", + "schemaVersion": 1, + "value": "Krea2TurboModularPipeline" + }, + "LTX25ModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "LTX-2.5 (Contract only)", + "schemaVersion": 1, + "value": "LTX25ModularPipeline" + }, + "MiniMaxH3ModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "MiniMax H3", + "schemaVersion": 1, + "value": "MiniMaxH3ModularPipeline" + }, + "MiniMaxMusic3ModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "MiniMax Music 3", + "schemaVersion": 1, + "value": "MiniMaxMusic3ModularPipeline" + }, + "QwenImageEditModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Qwen-Image-Edit", + "schemaVersion": 1, + "value": "QwenImageEditModularPipeline" + }, + "QwenImageEditPlusModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Qwen-Image-Edit-2511", + "schemaVersion": 1, + "value": "QwenImageEditPlusModularPipeline" + }, + "QwenImageLayeredModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Qwen-Image-Layered", + "schemaVersion": 1, + "value": "QwenImageLayeredModularPipeline" + }, + "QwenImageModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Qwen-Image-2512", + "schemaVersion": 1, + "value": "QwenImageModularPipeline" + }, + "StableDiffusion3ModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Stable Diffusion 3 (Contract only)", + "schemaVersion": 1, + "value": "StableDiffusion3ModularPipeline" + }, + "StableDiffusionXLModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Stable Diffusion XL", + "schemaVersion": 1, + "value": "StableDiffusionXLModularPipeline" + }, + "WanAnimate2DistilledModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Wan Animate 2 Distilled", + "schemaVersion": 1, + "value": "WanAnimate2DistilledModularPipeline" + }, + "WanAnimate2ModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Wan Animate 2", + "schemaVersion": 1, + "value": "WanAnimate2ModularPipeline" + }, + "WanImage2VideoModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "WAN2 I2V", + "schemaVersion": 1, + "value": "WanImage2VideoModularPipeline" + }, + "WanModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "WAN2 T2V", + "schemaVersion": 1, + "value": "WanModularPipeline" + }, + "ZImageModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Z-Image", + "schemaVersion": 1, + "value": "ZImageModularPipeline" + } + }, + "type": "string", + "value": "Flux3DistilledModularPipeline" + }, + "modiff_pipeline_identity": { + "hidden": true, + "label": "Custom Pipeline Identity", + "type": "object", + "value": null + }, + "offload_mode": { + "default": "model_cpu", + "label": "Offload Mode", + "options": [ + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "auto_cpu", + "schemaVersion": 1, + "value": "auto_cpu" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "none", + "schemaVersion": 1, + "value": "none" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "model_cpu", + "schemaVersion": 1, + "value": "model_cpu" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "group_cpu", + "schemaVersion": 1, + "value": "group_cpu" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "group_disk", + "schemaVersion": 1, + "value": "group_disk" + } + ], + "type": "string", + "value": "model_cpu" + }, + "pipeline_components": { + "connectionRole": "pipeline_components", + "display": "output", + "hidden": false, + "label": "Pipeline Components", + "signal": { + "direction": "output", + "origin": "modiff_pipeline_identity", + "value": "Flux3DistilledModularPipeline" + }, + "type": "diffusers_modular_pipeline_components" + }, + "quant_config": { "display": "input", "label": "Quant Config", "type": "quant_config" }, + "refresh_pipeline_identity_button": { + "display": "ui_button", + "hidden": true, + "label": "Review and Refresh Custom Contract", + "onChange": "refresh_pipeline_identity", + "value": false + }, + "repo_id": { + "display": "modelselect", + "fieldOptions": { + "filter": { "hub": { "className": ["Flux3DistilledModularPipeline"] } }, + "noValidation": true, + "sources": ["hub", "local"] + }, + "label": "Repository ID", + "onChange": "refresh_pipeline_identity", + "type": "string", + "value": { "source": "hub", "value": "black-forest-labs/flux-3-image-klein" } + }, + "reviewed_variant": { + "description": "Select an immutable, reviewed checkpoint for this exact Modular Diffusers pipeline family. Changing it does not replace the workflow graph or reset its parameters.", + "fieldOptions": { "controlTier": "essential" }, + "hidden": true, + "label": "Model", + "options": [ + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "black-forest-labs/flux-3-image-klein", + "schemaVersion": 1, + "value": "black-forest-labs/flux-3-image-klein" + } + ], + "type": "string", + "value": "black-forest-labs/flux-3-image-klein" + }, + "revision": { + "description": "Required exact 40-character commit hash for Hub custom contracts.", + "label": "Revision", + "onChange": "refresh_pipeline_identity", + "type": "string", + "value": "8454017f9ebaada30c998fccd9f67a80c7580f68" + }, + "scheduler": { + "connectionRole": "scheduler", + "display": "output", + "hidden": false, + "label": "Scheduler", + "signal": { + "direction": "output", + "origin": "modiff_pipeline_identity", + "value": "Flux3DistilledModularPipeline" + }, + "type": "diffusers_auto_model" + }, + "text_encoders": { + "connectionRole": "text_encoders", + "display": "output", + "hidden": false, + "label": "Text Encoders", + "signal": { + "direction": "output", + "origin": "modiff_pipeline_identity", + "value": "Flux3DistilledModularPipeline" + }, + "type": "diffusers_auto_models" + }, + "trust_remote_code": { + "description": "Repository code execution is disabled; keep this off for contract preview.", + "label": "Trust Remote Code", + "onChange": "refresh_pipeline_identity", + "type": "boolean", + "value": false + }, + "unet": { "display": "input", "hidden": false, "label": "Denoise Model", "type": "diffusers_auto_model" }, + "unet_out": { + "connectionRole": "denoiser", + "display": "output", + "hidden": false, + "label": "Denoise Model", + "signal": { + "direction": "output", + "origin": "modiff_pipeline_identity", + "value": "Flux3DistilledModularPipeline" + }, + "type": "diffusers_auto_model" + }, + "vae": { "display": "input", "hidden": false, "label": "VAE", "type": "diffusers_auto_model" }, + "vae_out": { + "connectionRole": "vae", + "display": "output", + "hidden": false, + "label": "VAE", + "signal": { + "direction": "output", + "origin": "modiff_pipeline_identity", + "value": "Flux3DistilledModularPipeline" + }, + "type": "diffusers_auto_model" + }, + "vae_slicing": { + "default": null, + "description": "An unset policy preserves the native VAE configuration; templates may bind an explicit boolean.", + "hidden": true, + "label": "VAE Slicing", + "type": "boolean" + }, + "vae_tiling": { + "default": null, + "description": "An unset policy preserves the native VAE configuration; templates may bind an explicit boolean.", + "hidden": true, + "label": "VAE Tiling", + "type": "boolean" + }, + "weight_format": { + "default": "native", + "description": "Select a backend-declared immutable component format. Missing reviewed files must be installed through Model Manager.", + "fieldOptions": { "controlTier": "advanced" }, + "hidden": false, + "label": "Weight Format", + "options": [ + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "native", + "schemaVersion": 1, + "value": "native" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "fp8r", + "schemaVersion": 1, + "value": "fp8r" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "nvfp4", + "schemaVersion": 1, + "value": "nvfp4" + } + ], + "type": "string" + }, + "weight_loading_mode": { + "default": "cpu", + "description": "Load weights on CPU or CUDA before disk offload. CUDA loading needs room for a complete component and is available only for supported models.", + "fieldOptions": { "controlTier": "advanced" }, + "label": "Weight Loading", + "options": [ + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "cpu", + "schemaVersion": 1, + "value": "cpu" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "cuda", + "schemaVersion": 1, + "value": "cuda" + } + ], + "type": "string" + }, + "workflow_id": { + "description": "Exact reviewed component partition selected by a first-party Cluster Node.", + "hidden": true, + "label": "Reviewed Workflow", + "type": "string", + "value": "text2image" + } + }, + "resizable": true, + "skipParamsCheck": true, + "style": {}, + "time": [0, 0, 0], + "type": "custom" + }, + "operation": { + "binding": { + "pipelineClass": "Flux3DistilledModularPipeline", + "values": { "model_type": "Flux3DistilledModularPipeline" } + }, + "blockName": null, + "decomposition": "loader", + "nodeKey": "modules.ModularDiffusers.ModelsLoader", + "nodeType": "loader", + "operationId": "diffusion.load_models", + "pipelineClass": "Flux3DistilledModularPipeline", + "ports": [ + { + "direction": "input", + "hidden": false, + "name": "model_type", + "required": false, + "roles": ["value"], + "semanticName": "model_type", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": false, + "name": "repo_id", + "required": false, + "roles": ["value"], + "semanticName": "repo_id", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": true, + "name": "reviewed_variant", + "required": false, + "roles": ["value"], + "semanticName": "reviewed_variant", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": false, + "name": "device", + "required": false, + "roles": ["value"], + "semanticName": "device", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": false, + "name": "attention_backend", + "required": false, + "roles": ["value"], + "semanticName": "attention_backend", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": true, + "name": "vae_slicing", + "required": false, + "roles": ["value"], + "semanticName": "vae_slicing", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["boolean"] + }, + { + "direction": "input", + "hidden": true, + "name": "vae_tiling", + "required": false, + "roles": ["value"], + "semanticName": "vae_tiling", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["boolean"] + }, + { + "direction": "input", + "hidden": true, + "name": "inpaint_compatibility", + "required": false, + "roles": ["value"], + "semanticName": "inpaint_compatibility", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": false, + "name": "trust_remote_code", + "required": false, + "roles": ["value"], + "semanticName": "trust_remote_code", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["boolean"] + }, + { + "direction": "input", + "hidden": false, + "name": "revision", + "required": false, + "roles": ["value"], + "semanticName": "revision", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": true, + "name": "workflow_id", + "required": false, + "roles": ["value"], + "semanticName": "workflow_id", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": true, + "name": "modiff_pipeline_identity", + "required": false, + "roles": ["value"], + "semanticName": "modiff_pipeline_identity", + "semantics": { + "kind": "opaque", + "members": [], + "owner": "none", + "scope": "Flux3DistilledModularPipeline", + "state": null + }, + "types": ["object"] + }, + { + "direction": "input", + "hidden": false, + "name": "auto_offload", + "required": false, + "roles": ["value"], + "semanticName": "auto_offload", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["boolean"] + }, + { + "direction": "input", + "hidden": false, + "name": "offload_mode", + "required": false, + "roles": ["value"], + "semanticName": "offload_mode", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": false, + "name": "weight_loading_mode", + "required": false, + "roles": ["value"], + "semanticName": "weight_loading_mode", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": true, + "name": "weight_format", + "required": false, + "roles": ["value"], + "semanticName": "weight_format", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": false, + "name": "unet", + "required": false, + "roles": ["component"], + "semanticName": "unet", + "semantics": { + "kind": "component", + "members": [ + { + "name": "transformer", + "type": "diffusers.models.transformers.transformer_flux3.Flux3Transformer2DModel" + } + ], + "owner": "same_loader", + "scope": "Flux3DistilledModularPipeline", + "state": null + }, + "types": ["diffusers_auto_model"] + }, + { + "direction": "input", + "hidden": false, + "name": "vae", + "required": false, + "roles": ["component"], + "semanticName": "vae", + "semantics": { + "kind": "component", + "members": [ + { "name": "vae", "type": "diffusers.models.autoencoders.autoencoder_kl_flux2.AutoencoderKLFlux2" } + ], + "owner": "same_loader", + "scope": "Flux3DistilledModularPipeline", + "state": null + }, + "types": ["diffusers_auto_model"] + }, + { + "direction": "input", + "hidden": true, + "name": "controlnet", + "required": false, + "roles": ["component"], + "semanticName": "controlnet", + "semantics": { + "kind": "component", + "members": [], + "owner": "same_loader", + "scope": "Flux3DistilledModularPipeline", + "state": null + }, + "types": ["diffusers_auto_model"] + }, + { + "direction": "input", + "hidden": false, + "name": "lora_list", + "required": false, + "roles": ["value"], + "semanticName": "lora_list", + "semantics": { + "kind": "opaque", + "members": [], + "owner": "none", + "scope": "Flux3DistilledModularPipeline", + "state": null + }, + "types": ["custom_lora"] + }, + { + "direction": "output", + "hidden": false, + "name": "text_encoders", + "required": false, + "roles": ["component"], + "semanticName": "text_encoders", + "semantics": { + "kind": "component", + "members": [ + { + "name": "text_encoder", + "type": "transformers.models.qwen3_vl.modeling_qwen3_vl.Qwen3VLForConditionalGeneration" + }, + { "name": "tokenizer", "type": "transformers.models.auto.processing_auto.AutoProcessor" } + ], + "owner": "same_loader", + "scope": "Flux3DistilledModularPipeline", + "state": null + }, + "types": ["diffusers_auto_models"] + }, + { + "direction": "output", + "hidden": false, + "name": "unet_out", + "required": false, + "roles": ["component"], + "semanticName": "unet_out", + "semantics": { + "kind": "component", + "members": [ + { + "name": "transformer", + "type": "diffusers.models.transformers.transformer_flux3.Flux3Transformer2DModel" + } + ], + "owner": "same_loader", + "scope": "Flux3DistilledModularPipeline", + "state": null + }, + "types": ["diffusers_auto_model"] + }, + { + "direction": "output", + "hidden": false, + "name": "vae_out", + "required": false, + "roles": ["component"], + "semanticName": "vae_out", + "semantics": { + "kind": "component", + "members": [ + { "name": "vae", "type": "diffusers.models.autoencoders.autoencoder_kl_flux2.AutoencoderKLFlux2" } + ], + "owner": "same_loader", + "scope": "Flux3DistilledModularPipeline", + "state": null + }, + "types": ["diffusers_auto_model"] + }, + { + "direction": "output", + "hidden": false, + "name": "scheduler", + "required": false, + "roles": ["component"], + "semanticName": "scheduler", + "semantics": { + "kind": "component", + "members": [ + { + "name": "scheduler", + "type": "diffusers.schedulers.scheduling_flow_match_euler_discrete.FlowMatchEulerDiscreteScheduler" + } + ], + "owner": "same_loader", + "scope": "Flux3DistilledModularPipeline", + "state": null + }, + "types": ["diffusers_auto_model"] + }, + { + "direction": "output", + "hidden": true, + "name": "image_encoder", + "required": false, + "roles": ["component"], + "semanticName": "image_encoder", + "semantics": { + "kind": "component", + "members": [], + "owner": "same_loader", + "scope": "Flux3DistilledModularPipeline", + "state": null + }, + "types": ["diffusers_auto_model"] + }, + { + "direction": "output", + "hidden": false, + "name": "pipeline_components", + "required": false, + "roles": ["component"], + "semanticName": "pipeline_components", + "semantics": { + "kind": "component", + "members": [ + { + "name": "image_processor", + "type": "diffusers.modular_pipelines.flux3.image_processor.Flux3ImageProcessor" + }, + { + "name": "scheduler", + "type": "diffusers.schedulers.scheduling_flow_match_euler_discrete.FlowMatchEulerDiscreteScheduler" + }, + { + "name": "text_encoder", + "type": "transformers.models.qwen3_vl.modeling_qwen3_vl.Qwen3VLForConditionalGeneration" + }, + { "name": "tokenizer", "type": "transformers.models.auto.processing_auto.AutoProcessor" }, + { + "name": "transformer", + "type": "diffusers.models.transformers.transformer_flux3.Flux3Transformer2DModel" + }, + { "name": "vae", "type": "diffusers.models.autoencoders.autoencoder_kl_flux2.AutoencoderKLFlux2" } + ], + "owner": "same_loader", + "scope": "Flux3DistilledModularPipeline", + "state": null + }, + "types": ["diffusers_modular_pipeline_components"] + }, + { + "direction": "input", + "hidden": false, + "name": "quant_config", + "required": false, + "roles": ["value"], + "semanticName": "quant_config", + "semantics": { + "kind": "opaque", + "members": [], + "owner": "none", + "scope": "Flux3DistilledModularPipeline", + "state": null + }, + "types": ["quant_config"] + } + ], + "support": "declared", + "task": "text_to_image", + "workflowId": "text2image" + } + }, + { + "node": { + "action": "EncodePrompt", + "cache": false, + "category": "embedding", + "description": "", + "label": "Encode Prompt", + "memory": [0, 0, 0], + "module": "modules.ModularDiffusers", + "params": { + "doc": { "display": "output", "label": "Doc", "type": "string" }, + "embeddings": { "display": "output", "label": "Text Embeddings", "type": "embeddings" }, + "guider": { + "description": "Shared Diffusers guidance used by prompt encoding and denoising when the selected pipeline supports it.", + "display": "input", + "hidden": true, + "label": "Guider", + "type": "custom_guider" + }, + "layout_conditioning": { + "default": null, + "display": "layout", + "fieldOptions": { + "layoutConditioning": { + "schemaVersion": 2, + "sourceRegions": false, + "supportsBoundSourceRegions": true + } + }, + "label": "Layout Conditioning", + "type": "layout_conditioning" + }, + "layout_reference_summary": { + "description": "Display-only ordered reference identities and actual preprocessing sizes from the current encoder cache.", + "display": "output", + "hidden": true, + "label": "Bound Reference Summary", + "type": "string" + }, + "max_sequence_length": { + "default": 8192, + "label": "Maximum Sequence Length", + "max": 8192, + "min": 1, + "step": 1, + "type": "int" + }, + "prompt": { + "default": "", + "display": "textarea", + "fieldOptions": { "exampleAttribution": "MoDiff task example" }, + "label": "Prompt *", + "type": "string", + "value": "A red ceramic teapot on a wooden table beside a window, soft morning light, detailed photograph." + }, + "prompt_input": { + "description": "Optional connected prompt. When connected, this replaces the inline Prompt value.", + "display": "input", + "label": "Prompt Input", + "type": "string" + }, + "reference_binding": { + "default": null, + "display": "input", + "fieldOptions": { "referenceBinding": { "maxReferences": 10, "schemaVersion": 1 } }, + "label": "Reference Binding", + "type": "reference_conditioning" + }, + "text_encoder_out_layers": { + "default": [4, 8, 12, 16, 20, 24, 28, 32], + "display": "select", + "fieldOptions": { "multiple": true, "tupleLength": 8, "tupleValue": true }, + "label": "Text Encoder Layers", + "options": [ + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "0", + "schemaVersion": 1, + "value": "0" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "1", + "schemaVersion": 1, + "value": "1" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "2", + "schemaVersion": 1, + "value": "2" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "3", + "schemaVersion": 1, + "value": "3" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "4", + "schemaVersion": 1, + "value": "4" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "5", + "schemaVersion": 1, + "value": "5" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "6", + "schemaVersion": 1, + "value": "6" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "7", + "schemaVersion": 1, + "value": "7" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "8", + "schemaVersion": 1, + "value": "8" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "9", + "schemaVersion": 1, + "value": "9" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "10", + "schemaVersion": 1, + "value": "10" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "11", + "schemaVersion": 1, + "value": "11" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "12", + "schemaVersion": 1, + "value": "12" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "13", + "schemaVersion": 1, + "value": "13" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "14", + "schemaVersion": 1, + "value": "14" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "15", + "schemaVersion": 1, + "value": "15" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "16", + "schemaVersion": 1, + "value": "16" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "17", + "schemaVersion": 1, + "value": "17" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "18", + "schemaVersion": 1, + "value": "18" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "19", + "schemaVersion": 1, + "value": "19" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "20", + "schemaVersion": 1, + "value": "20" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "21", + "schemaVersion": 1, + "value": "21" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "22", + "schemaVersion": 1, + "value": "22" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "23", + "schemaVersion": 1, + "value": "23" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "24", + "schemaVersion": 1, + "value": "24" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "25", + "schemaVersion": 1, + "value": "25" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "26", + "schemaVersion": 1, + "value": "26" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "27", + "schemaVersion": 1, + "value": "27" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "28", + "schemaVersion": 1, + "value": "28" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "29", + "schemaVersion": 1, + "value": "29" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "30", + "schemaVersion": 1, + "value": "30" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "31", + "schemaVersion": 1, + "value": "31" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "32", + "schemaVersion": 1, + "value": "32" + } + ], + "type": "int" + }, + "text_encoders": { + "display": "input", + "label": "Text Encoders *", + "onSignal": "update_node", + "required": true, + "signalCompatibility": { "role": "text_encoders" }, + "type": "diffusers_auto_models" + } + }, + "resizable": true, + "skipParamsCheck": true, + "style": {}, + "time": [0, 0, 0], + "type": "custom" + }, + "operation": { + "binding": { "pipelineClass": "Flux3DistilledModularPipeline", "values": {} }, + "blockName": "text_encoder", + "decomposition": "block", + "nodeKey": "modules.ModularDiffusers.EncodePrompt", + "nodeType": "text_encoder", + "operationId": "diffusion.encode_prompt", + "pipelineClass": "Flux3DistilledModularPipeline", + "ports": [ + { + "direction": "input", + "hidden": false, + "name": "prompt", + "required": true, + "roles": ["value"], + "semanticName": "prompt", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": false, + "name": "max_sequence_length", + "required": false, + "roles": ["value"], + "semanticName": "max_sequence_length", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["int"] + }, + { + "direction": "input", + "hidden": false, + "name": "text_encoder_out_layers", + "required": false, + "roles": ["value"], + "semanticName": "text_encoder_out_layers", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["int"] + }, + { + "direction": "input", + "hidden": false, + "name": "text_encoders", + "required": true, + "roles": ["component"], + "semanticName": "text_encoders", + "semantics": { + "kind": "component", + "members": [ + { + "name": "text_encoder", + "type": "transformers.models.qwen3_vl.modeling_qwen3_vl.Qwen3VLForConditionalGeneration" + }, + { "name": "tokenizer", "type": "transformers.models.auto.processing_auto.AutoProcessor" } + ], + "owner": "same_loader", + "scope": "Flux3DistilledModularPipeline", + "state": null + }, + "types": ["diffusers_auto_models"] + }, + { + "direction": "output", + "hidden": false, + "name": "embeddings", + "required": false, + "roles": ["value"], + "semanticName": "embeddings", + "semantics": { + "kind": "conditioning", + "members": [], + "owner": "same_loader", + "scope": "Flux3DistilledModularPipeline", + "state": null + }, + "types": ["embeddings"] + }, + { + "direction": "output", + "hidden": false, + "name": "doc", + "required": false, + "roles": ["value"], + "semanticName": "doc", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": false, + "name": "layout_conditioning", + "required": false, + "roles": ["value"], + "semanticName": "layout_conditioning", + "semantics": { + "kind": "opaque", + "members": [], + "owner": "none", + "scope": "Flux3DistilledModularPipeline", + "state": null + }, + "types": ["layout_conditioning"] + }, + { + "direction": "input", + "hidden": false, + "name": "reference_binding", + "required": false, + "roles": ["value"], + "semanticName": "reference_binding", + "semantics": { + "kind": "opaque", + "members": [], + "owner": "none", + "scope": "Flux3DistilledModularPipeline", + "state": null + }, + "types": ["reference_conditioning"] + }, + { + "direction": "input", + "hidden": false, + "name": "prompt_input", + "required": false, + "roles": ["value"], + "semanticName": "prompt", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + } + ], + "support": "declared", + "task": "text_to_image", + "workflowId": "text2image" + } + }, + { + "node": { + "action": "Denoise", + "cache": false, + "category": "sampler", + "description": "", + "label": "Denoise", + "memory": [0, 0, 0], + "module": "modules.ModularDiffusers", + "params": { + "doc": { "display": "output", "label": "Doc", "type": "string" }, + "embeddings": { "display": "input", "label": "Text Embeddings *", "type": "embeddings" }, + "height": { "default": 1024, "label": "Height", "min": 64, "step": 16, "type": "int", "value": 1024 }, + "image_cond_latents": { "display": "input", "label": "Reference Latents", "type": "latents" }, + "latents": { "display": "output", "label": "Latents", "type": "latents" }, + "num_images_per_prompt": { + "default": 1, + "label": "Images Per Prompt", + "max": 8, + "min": 1, + "step": 1, + "type": "int" + }, + "num_inference_steps": { + "default": 16, + "display": "slider", + "label": "Steps", + "max": 100, + "min": 1, + "type": "int", + "value": 16 + }, + "reference_binding": { + "default": null, + "display": "input", + "fieldOptions": { "referenceBinding": { "maxReferences": 10, "schemaVersion": 1 } }, + "label": "Reference Binding", + "type": "reference_conditioning" + }, + "scheduler": { + "display": "input", + "label": "Scheduler *", + "signalCompatibility": { "role": "scheduler" }, + "type": "diffusers_auto_model" + }, + "seed": { + "default": 0, + "display": "random", + "label": "Seed", + "max": 4294967295, + "min": 0, + "type": "int" + }, + "unet": { + "display": "input", + "label": "Denoise Model *", + "onSignal": [ + "update_node", + { "action": "signal", "target": "guider" }, + { "action": "signal", "target": "controlnet_bundle" } + ], + "required": true, + "signalCompatibility": { "role": "denoiser" }, + "type": "diffusers_auto_model" + }, + "width": { "default": 1024, "label": "Width", "min": 64, "step": 16, "type": "int", "value": 1024 } + }, + "resizable": true, + "skipParamsCheck": true, + "style": {}, + "time": [0, 0, 0], + "type": "custom" + }, + "operation": { + "binding": { "pipelineClass": "Flux3DistilledModularPipeline", "values": {} }, + "blockName": "denoise", + "decomposition": "block", + "nodeKey": "modules.ModularDiffusers.Denoise", + "nodeType": "denoise", + "operationId": "diffusion.denoise", + "pipelineClass": "Flux3DistilledModularPipeline", + "ports": [ + { + "direction": "input", + "hidden": false, + "name": "embeddings", + "required": true, + "roles": ["value"], + "semanticName": "embeddings", + "semantics": { + "kind": "conditioning", + "members": [], + "owner": "same_loader", + "scope": "Flux3DistilledModularPipeline", + "state": null + }, + "types": ["embeddings"] + }, + { + "direction": "input", + "hidden": false, + "name": "width", + "required": false, + "roles": ["value"], + "semanticName": "width", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["int"] + }, + { + "direction": "input", + "hidden": false, + "name": "height", + "required": false, + "roles": ["value"], + "semanticName": "height", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["int"] + }, + { + "direction": "input", + "hidden": false, + "name": "seed", + "required": false, + "roles": ["value"], + "semanticName": "seed", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["int"] + }, + { + "direction": "input", + "hidden": false, + "name": "num_inference_steps", + "required": false, + "roles": ["value"], + "semanticName": "num_inference_steps", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["int"] + }, + { + "direction": "input", + "hidden": false, + "name": "num_images_per_prompt", + "required": false, + "roles": ["value"], + "semanticName": "num_images_per_prompt", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["int"] + }, + { + "direction": "input", + "hidden": false, + "name": "image_cond_latents", + "required": false, + "roles": ["value"], + "semanticName": "image_cond_latents", + "semantics": { + "kind": "latents", + "members": [], + "owner": "same_loader", + "scope": "Flux3DistilledModularPipeline", + "state": null + }, + "types": ["latents"] + }, + { + "direction": "input", + "hidden": false, + "name": "unet", + "required": true, + "roles": ["component"], + "semanticName": "unet", + "semantics": { + "kind": "component", + "members": [ + { + "name": "transformer", + "type": "diffusers.models.transformers.transformer_flux3.Flux3Transformer2DModel" + } + ], + "owner": "same_loader", + "scope": "Flux3DistilledModularPipeline", + "state": null + }, + "types": ["diffusers_auto_model"] + }, + { + "direction": "input", + "hidden": false, + "name": "scheduler", + "required": true, + "roles": ["component"], + "semanticName": "scheduler", + "semantics": { + "kind": "component", + "members": [ + { + "name": "scheduler", + "type": "diffusers.schedulers.scheduling_flow_match_euler_discrete.FlowMatchEulerDiscreteScheduler" + } + ], + "owner": "same_loader", + "scope": "Flux3DistilledModularPipeline", + "state": null + }, + "types": ["diffusers_auto_model"] + }, + { + "direction": "output", + "hidden": false, + "name": "latents", + "required": false, + "roles": ["value"], + "semanticName": "latents", + "semantics": { + "kind": "latents", + "members": [], + "owner": "same_loader", + "scope": "Flux3DistilledModularPipeline", + "state": null + }, + "types": ["latents"] + }, + { + "direction": "output", + "hidden": false, + "name": "doc", + "required": false, + "roles": ["value"], + "semanticName": "doc", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": false, + "name": "reference_binding", + "required": false, + "roles": ["value"], + "semanticName": "reference_binding", + "semantics": { + "kind": "opaque", + "members": [], + "owner": "none", + "scope": "Flux3DistilledModularPipeline", + "state": null + }, + "types": ["reference_conditioning"] + } + ], + "support": "declared", + "task": "text_to_image", + "workflowId": "text2image" + } + }, + { + "node": { + "action": "DecodeLatents", + "cache": false, + "category": "sampler", + "description": "", + "label": "Decode Latents", + "memory": [0, 0, 0], + "module": "modules.ModularDiffusers", + "params": { + "doc": { "display": "output", "label": "Doc", "type": "string" }, + "images": { "display": "output", "label": "Images", "type": "image" }, + "latents": { "display": "input", "label": "Latents *", "type": "latents" }, + "vae": { + "display": "input", + "label": "VAE *", + "onSignal": "update_node", + "signalCompatibility": { "role": "vae" }, + "type": "diffusers_auto_model" + } + }, + "resizable": true, + "skipParamsCheck": true, + "style": {}, + "time": [0, 0, 0], + "type": "custom" + }, + "operation": { + "binding": { "pipelineClass": "Flux3DistilledModularPipeline", "values": {} }, + "blockName": "decode", + "decomposition": "block", + "nodeKey": "modules.ModularDiffusers.DecodeLatents", + "nodeType": "decoder", + "operationId": "diffusion.decode_latents", + "pipelineClass": "Flux3DistilledModularPipeline", + "ports": [ + { + "direction": "input", + "hidden": false, + "name": "latents", + "required": true, + "roles": ["value"], + "semanticName": "latents", + "semantics": { + "kind": "latents", + "members": [], + "owner": "same_loader", + "scope": "Flux3DistilledModularPipeline", + "state": null + }, + "types": ["latents"] + }, + { + "direction": "input", + "hidden": false, + "name": "vae", + "required": true, + "roles": ["component"], + "semanticName": "vae", + "semantics": { + "kind": "component", + "members": [ + { "name": "vae", "type": "diffusers.models.autoencoders.autoencoder_kl_flux2.AutoencoderKLFlux2" } + ], + "owner": "same_loader", + "scope": "Flux3DistilledModularPipeline", + "state": null + }, + "types": ["diffusers_auto_model"] + }, + { + "direction": "output", + "hidden": false, + "name": "images", + "required": false, + "roles": ["value"], + "semanticName": "images", + "semantics": { "kind": "media", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["image"] + }, + { + "direction": "output", + "hidden": false, + "name": "doc", + "required": false, + "roles": ["value"], + "semanticName": "doc", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + } + ], + "support": "declared", + "task": "text_to_image", + "workflowId": "text2image" + } + } + ], + "pipelineClass": "Flux3DistilledModularPipeline", + "requiredInputs": [{ "field": "prompt", "operationId": "diffusion.encode_prompt" }], + "schemaVersion": 1, + "sharedInputs": [], + "task": "text_to_image", + "upstreamBlocks": ["text_encoder", "denoise", "decode"], + "workflowId": "text2image" + }, + { + "authoring": { + "ancillaryOperations": [ + { + "adapter": { + "declarationSha256": "sha256:2a3d4685988b418115008bbb95fb3e948097580c0bedd2940ea3fe1e40254dc2", + "id": "transformers-prompt-enhancement-v1" + }, + "bindings": { + "output": { "field": "proposal_summary", "role": "proposal" }, + "owner": { + "layoutField": "layout_conditioning", + "promptField": "prompt", + "referenceSource": { "field": "image", "role": "loadImage" }, + "role": "prompt" + }, + "request": { + "imagesField": "images", + "layoutField": "layout_conditioning", + "promptField": "prompt", + "role": "proposal" + } + }, + "contentHash": "studio-ancillary-v1-2c61193b", + "edges": [["provider", "model", "proposal", "model"]], + "executionPurpose": "explicit_preview", + "fieldOverrides": [ + ["proposal", "enhancement_max_new_tokens", { "hidden": false }], + ["proposal", "max_new_tokens", { "hidden": true }] + ], + "id": "flux3-klein-base:official:edit-image:prompt-preview-append-fp32:v1:preview", + "initialValues": [ + ["provider", "model_id", { "source": "hub", "value": "black-forest-labs/flux-3-image-klein-pup" }], + ["provider", "revision", "3f3edb52b2c55de0d49feab28598b68f7f8e4830"], + ["proposal", "operation", "enhance_prompt_append_details"], + ["provider", "dtype", "float32"], + ["provider", "device", "cuda:0"], + ["provider", "quantization_mode", "none"], + ["proposal", "max_input_tokens", 4096] + ], + "layoutPolicy": "append-details-preserve-layout-v1", + "parent": { + "authoringRecipeId": "flux3-klein-base:official:edit-image:prompt-preview-append-fp32:v1", + "baseSpecContentHash": "studio-spec-v1-df55b87c", + "baseSpecId": "flux3-klein-base:official-provider:v1:edit-image:v1", + "executionProfileId": "flux3-klein-base:official-provider:v1", + "pipelineClass": "Flux3ModularPipeline", + "task": "edit_image" + }, + "roles": [ + ["provider", "modules.HuggingFaceTransformers.LoadImageTextToTextModel", -720, -400], + ["proposal", "modules.HuggingFaceTransformers.GenerateImageVideoText", -360, -400] + ], + "schemaVersion": 1, + "sourceRegions": false, + "verification": { + "adapter": { + "declarationSha256": "sha256:2a3d4685988b418115008bbb95fb3e948097580c0bedd2940ea3fe1e40254dc2", + "id": "transformers-prompt-enhancement-v1" + }, + "chatTemplateSha256": "sha256:a4aee8afcf2e0711942cf848899be66016f8d14a889ff9ede07bca099c28f715", + "layoutRequestSuffixSha256": "sha256:5c48f090514be3472650c23ccd5f6cc19077bf68cd163338aaf6903f720a7561", + "modelReceipt": { + "library": "transformers", + "loader": { "modelAutoClass": "AutoModelForImageTextToText", "preprocessorAutoClass": "AutoProcessor" }, + "runtime": { + "architectures": ["Qwen3_5ForConditionalGeneration"], + "modelClass": "Qwen3_5ForConditionalGeneration", + "modelType": "qwen3_5", + "preprocessorClass": "Qwen3VLProcessor", + "transformersVersion": "5.18.0" + }, + "schemaVersion": 1, + "security": { + "hostedInference": false, + "localFilesOnly": true, + "safetensorsOnly": true, + "trustRemoteCode": false + }, + "source": { + "kind": "hub", + "repository": "black-forest-labs/flux-3-image-klein-pup", + "revision": "3f3edb52b2c55de0d49feab28598b68f7f8e4830" + }, + "task": "image-video-to-text" + }, + "quantizationRecipes": [ + { "mode": "none" }, + { + "computeDtype": "bfloat16", + "doubleQuant": true, + "mode": "bnb_4bit", + "quantType": "nf4", + "skipModules": ["lm_head", "model.visual"] + } + ], + "requestInputs": { + "maxImagePixelsField": "max_image_pixels", + "maxInputTokensField": "max_input_tokens", + "maxNewTokensField": "enhancement_max_new_tokens", + "minNewTokensField": "min_new_tokens", + "operationField": "operation", + "role": "proposal" + }, + "runtimeInputs": { + "deviceField": "device", + "dtypeField": "dtype", + "modelField": "model_id", + "quantizationField": "quantization_mode", + "revisionField": "revision", + "role": "provider" + }, + "schemaVersion": 1, + "supportedPromptModes": ["t2i", "i2i"], + "systemPromptSha256ByMode": { + "i2i": "95cec384d5b6d341caa9fb3f2c7ca45ee80c2364b3a95d4044aebf976f6dd3bf", + "i2i_bbox": "9ad10f947e401337cf155cac0518cc428159ef16f2f029f48aae2aaab8380a5e", + "t2i": "8b235a421bce2213d11ada01f5a1244443dd72303ffbb4cc9e5a0d8b0de5ab6f", + "t2i_bbox": "5f513d8ce5838732919f9e645507aa20ff373e88bf93132c768e063c9db3151f" + }, + "systemPromptsSha256": "sha256:b5da3ed8bc04ab59dbdb747930f7dbff847e868903fed8028f85ee1a4ac82fb4" + } + } + ], + "baseSpecContentHash": "studio-spec-v1-df55b87c", + "baseSpecId": "flux3-klein-base:official-provider:v1:edit-image:v1", + "bindings": [ + ["models", "model_type", "pipelineClass"], + ["models", "repo_id", "artifact"], + ["models", "revision", "defaultRevision"], + ["models", "dtype", "dtype"], + ["models", "device", "device"], + ["models", "auto_offload", "autoOffload"], + ["models", "offload_mode", "offloadMode"], + ["models", "trust_remote_code", "false"], + ["prompt", "prompt", "prompt"], + ["prompt", "negative_prompt", "negativePrompt"], + ["denoise", "width", "width"], + ["denoise", "height", "height"], + ["denoise", "seed", "seed"], + ["denoise", "num_inference_steps", "steps"], + ["prompt", "max_sequence_length", "maxSequenceLength"], + ["models", "weight_format", "weightFormat"], + ["guider", "guider", "classifierFreeGuidance"], + ["guider", "model_type", "pipelineClass"], + ["guider", "guidance_scale", "guidanceScale"], + ["loadImage", "file", "referenceImages"], + ["loadImage", "alpha_channel", "alphaMode"] + ], + "canonicalizationVersion": 1, + "contentHash": "studio-authoring-v1-e41abbb4", + "edges": [ + ["models", "text_encoders", "prompt", "text_encoders"], + ["models", "unet_out", "denoise", "unet"], + ["models", "scheduler", "denoise", "scheduler"], + ["models", "vae_out", "decode", "vae"], + ["prompt", "embeddings", "denoise", "embeddings"], + ["denoise", "latents", "decode", "latents"], + ["decode", "images", "preview", "image"], + ["guider", "guider_out", "denoise", "guider"], + ["models", "vae_out", "imageEncode", "vae"], + ["loadImage", "image", "imageEncode", "image"], + ["imageEncode", "image_cond_latents", "denoise", "image_cond_latents"], + ["imageEncode", "reference_binding", "prompt", "reference_binding"], + ["imageEncode", "reference_binding", "denoise", "reference_binding"] + ], + "executionProfileIds": ["flux3-klein-base:official-provider:v1"], + "id": "flux3-klein-base:official:edit-image:prompt-preview-append-fp32:v1", + "initialValues": [], + "roles": [ + ["models", "modules.ModularDiffusers.ModelsLoader", -720, -80], + ["prompt", "modules.ModularDiffusers.EncodePrompt", -360, -240], + ["denoise", "modules.ModularDiffusers.Denoise", 80, -80], + ["decode", "modules.ModularDiffusers.DecodeLatents", 440, -80], + ["preview", "modules.Image.Preview", 800, -80], + ["guider", "modules.ModularDiffusers.Guider", -360, 160], + ["loadImage", "modules.Image.Load", -720, 320], + ["imageEncode", "modules.ModularDiffusers.ImageEncode", -360, 320] + ], + "schemaVersion": 1 + }, + "edges": [ + { + "source": "diffusion.load_models", + "sourceHandle": "text_encoders", + "target": "diffusion.encode_prompt", + "targetHandle": "text_encoders" + }, + { + "source": "diffusion.load_models", + "sourceHandle": "vae_out", + "target": "diffusion.encode_image", + "targetHandle": "vae" + }, + { + "source": "diffusion.load_models", + "sourceHandle": "scheduler", + "target": "diffusion.denoise", + "targetHandle": "scheduler" + }, + { + "source": "diffusion.load_models", + "sourceHandle": "unet_out", + "target": "diffusion.denoise", + "targetHandle": "unet" + }, + { + "source": "diffusion.load_models", + "sourceHandle": "vae_out", + "target": "diffusion.decode_latents", + "targetHandle": "vae" + }, + { + "source": "diffusion.encode_prompt", + "sourceHandle": "embeddings", + "target": "diffusion.denoise", + "targetHandle": "embeddings" + }, + { + "source": "diffusion.denoise", + "sourceHandle": "latents", + "target": "diffusion.decode_latents", + "targetHandle": "latents" + }, + { + "source": "diffusion.encode_image", + "sourceHandle": "image_cond_latents", + "target": "diffusion.denoise", + "targetHandle": "image_cond_latents" + }, + { + "source": "diffusion.guidance", + "sourceHandle": "guider_out", + "target": "diffusion.denoise", + "targetHandle": "guider" + }, + { + "source": "diffusion.encode_image", + "sourceHandle": "reference_binding", + "target": "diffusion.encode_prompt", + "targetHandle": "reference_binding" + }, + { + "source": "diffusion.encode_image", + "sourceHandle": "reference_binding", + "target": "diffusion.denoise", + "targetHandle": "reference_binding" + } + ], + "nodes": [ + { + "node": { + "action": "ModelsLoader", + "cache": false, + "category": "loader", + "description": "", + "label": "Load Models", + "memory": [0, 0, 0], + "module": "modules.ModularDiffusers", + "params": { + "attention_backend": { + "default": "inherit", + "description": "Inherit preserves existing native component defaults; explicit choices use the ordinary Diffusers attention API.", + "label": "Attention Backend", + "options": [ + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "inherit", + "schemaVersion": 1, + "value": "inherit" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "auto", + "schemaVersion": 1, + "value": "auto" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "native", + "schemaVersion": 1, + "value": "native" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "_native_math", + "schemaVersion": 1, + "value": "_native_math" + } + ], + "type": "string" + }, + "auto_offload": { "label": "Enable Auto Offload", "type": "boolean", "value": true }, + "controlnet": { + "display": "input", + "hidden": true, + "label": "ControlNet", + "type": "diffusers_auto_model" + }, + "device": { + "label": "Device", + "options": { + "cpu": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "cpu", + "schemaVersion": 1, + "value": "cpu" + }, + "cpu:0": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "cpu:0", + "schemaVersion": 1, + "value": "cpu:0" + } + }, + "type": "string", + "value": "cpu:0" + }, + "dtype": { + "label": "dtype", + "options": [ + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "float32", + "schemaVersion": 1, + "value": "float32" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "float16", + "schemaVersion": 1, + "value": "float16" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "bfloat16", + "schemaVersion": 1, + "value": "bfloat16" + } + ], + "value": "bfloat16" + }, + "image_encoder": { + "connectionRole": "image_encoder", + "display": "output", + "hidden": true, + "label": "Image Encoder", + "signal": { + "direction": "output", + "origin": "modiff_pipeline_identity", + "value": "Flux3ModularPipeline" + }, + "type": "diffusers_auto_model" + }, + "inpaint_compatibility": { + "default": "native", + "description": "Technical compatibility selection for the reviewed Qwen Edit inpainting candidate; existing nodes retain native policy.", + "hidden": true, + "label": "Inpaint Compatibility", + "options": [ + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "native", + "schemaVersion": 1, + "value": "native" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "whole_v1", + "schemaVersion": 1, + "value": "whole_v1" + } + ], + "type": "string" + }, + "lora_list": { "display": "input", "label": "Lora", "type": "custom_lora" }, + "model_type": { + "description": "Selects the Modular Diffusers pipeline class. This filters compatible checkpoints and publishes the component contract used by connected nodes; it is not the model checkpoint itself.", + "label": "Pipeline Type", + "onChange": "set_filters", + "options": { + "": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "", + "schemaVersion": 1, + "value": "" + }, + "AnimaModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Anima", + "schemaVersion": 1, + "value": "AnimaModularPipeline" + }, + "Cosmos3DistilledModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Cosmos 3 Distilled", + "schemaVersion": 1, + "value": "Cosmos3DistilledModularPipeline" + }, + "Cosmos3OmniModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Cosmos 3 Nano", + "schemaVersion": 1, + "value": "Cosmos3OmniModularPipeline" + }, + "DummyCustomPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Custom", + "schemaVersion": 1, + "value": "DummyCustomPipeline" + }, + "ErnieImageModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "ERNIE Image Turbo", + "schemaVersion": 1, + "value": "ErnieImageModularPipeline" + }, + "Flux2KleinBaseModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Flux 2 Klein Base", + "schemaVersion": 1, + "value": "Flux2KleinBaseModularPipeline" + }, + "Flux2KleinModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Flux 2 Klein Distilled", + "schemaVersion": 1, + "value": "Flux2KleinModularPipeline" + }, + "Flux2ModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Flux 2", + "schemaVersion": 1, + "value": "Flux2ModularPipeline" + }, + "Flux3DistilledModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "FLUX 3 Image Klein", + "schemaVersion": 1, + "value": "Flux3DistilledModularPipeline" + }, + "Flux3ModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "FLUX 3 Image Klein Base", + "schemaVersion": 1, + "value": "Flux3ModularPipeline" + }, + "FluxKontextModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Flux Kontext", + "schemaVersion": 1, + "value": "FluxKontextModularPipeline" + }, + "FluxModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Flux", + "schemaVersion": 1, + "value": "FluxModularPipeline" + }, + "HeliosModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Helios", + "schemaVersion": 1, + "value": "HeliosModularPipeline" + }, + "HeliosPyramidDistilledModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Helios Pyramid Distilled", + "schemaVersion": 1, + "value": "HeliosPyramidDistilledModularPipeline" + }, + "HeliosPyramidModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Helios Pyramid", + "schemaVersion": 1, + "value": "HeliosPyramidModularPipeline" + }, + "HunyuanVideo15ModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "HunyuanVideo 1.5", + "schemaVersion": 1, + "value": "HunyuanVideo15ModularPipeline" + }, + "Ideogram4ModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Ideogram 4 (Contract only)", + "schemaVersion": 1, + "value": "Ideogram4ModularPipeline" + }, + "Krea2ModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Krea 2 (Contract only)", + "schemaVersion": 1, + "value": "Krea2ModularPipeline" + }, + "Krea2TurboModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Krea 2 Turbo (Contract only)", + "schemaVersion": 1, + "value": "Krea2TurboModularPipeline" + }, + "LTX25ModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "LTX-2.5 (Contract only)", + "schemaVersion": 1, + "value": "LTX25ModularPipeline" + }, + "MiniMaxH3ModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "MiniMax H3", + "schemaVersion": 1, + "value": "MiniMaxH3ModularPipeline" + }, + "MiniMaxMusic3ModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "MiniMax Music 3", + "schemaVersion": 1, + "value": "MiniMaxMusic3ModularPipeline" + }, + "QwenImageEditModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Qwen-Image-Edit", + "schemaVersion": 1, + "value": "QwenImageEditModularPipeline" + }, + "QwenImageEditPlusModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Qwen-Image-Edit-2511", + "schemaVersion": 1, + "value": "QwenImageEditPlusModularPipeline" + }, + "QwenImageLayeredModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Qwen-Image-Layered", + "schemaVersion": 1, + "value": "QwenImageLayeredModularPipeline" + }, + "QwenImageModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Qwen-Image-2512", + "schemaVersion": 1, + "value": "QwenImageModularPipeline" + }, + "StableDiffusion3ModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Stable Diffusion 3 (Contract only)", + "schemaVersion": 1, + "value": "StableDiffusion3ModularPipeline" + }, + "StableDiffusionXLModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Stable Diffusion XL", + "schemaVersion": 1, + "value": "StableDiffusionXLModularPipeline" + }, + "WanAnimate2DistilledModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Wan Animate 2 Distilled", + "schemaVersion": 1, + "value": "WanAnimate2DistilledModularPipeline" + }, + "WanAnimate2ModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Wan Animate 2", + "schemaVersion": 1, + "value": "WanAnimate2ModularPipeline" + }, + "WanImage2VideoModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "WAN2 I2V", + "schemaVersion": 1, + "value": "WanImage2VideoModularPipeline" + }, + "WanModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "WAN2 T2V", + "schemaVersion": 1, + "value": "WanModularPipeline" + }, + "ZImageModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Z-Image", + "schemaVersion": 1, + "value": "ZImageModularPipeline" + } + }, + "type": "string", + "value": "Flux3ModularPipeline" + }, + "modiff_pipeline_identity": { + "hidden": true, + "label": "Custom Pipeline Identity", + "type": "object", + "value": null + }, + "offload_mode": { + "default": "model_cpu", + "label": "Offload Mode", + "options": [ + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "auto_cpu", + "schemaVersion": 1, + "value": "auto_cpu" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "none", + "schemaVersion": 1, + "value": "none" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "model_cpu", + "schemaVersion": 1, + "value": "model_cpu" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "group_cpu", + "schemaVersion": 1, + "value": "group_cpu" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "group_disk", + "schemaVersion": 1, + "value": "group_disk" + } + ], + "type": "string", + "value": "model_cpu" + }, + "pipeline_components": { + "connectionRole": "pipeline_components", + "display": "output", + "hidden": false, + "label": "Pipeline Components", + "signal": { + "direction": "output", + "origin": "modiff_pipeline_identity", + "value": "Flux3ModularPipeline" + }, + "type": "diffusers_modular_pipeline_components" + }, + "quant_config": { "display": "input", "label": "Quant Config", "type": "quant_config" }, + "refresh_pipeline_identity_button": { + "display": "ui_button", + "hidden": true, + "label": "Review and Refresh Custom Contract", + "onChange": "refresh_pipeline_identity", + "value": false + }, + "repo_id": { + "display": "modelselect", + "fieldOptions": { + "filter": { "hub": { "className": ["Flux3ModularPipeline"] } }, + "noValidation": true, + "sources": ["hub", "local"] + }, + "label": "Repository ID", + "onChange": "refresh_pipeline_identity", + "type": "string", + "value": { "source": "hub", "value": "black-forest-labs/flux-3-image-klein-base" } + }, + "reviewed_variant": { + "description": "Select an immutable, reviewed checkpoint for this exact Modular Diffusers pipeline family. Changing it does not replace the workflow graph or reset its parameters.", + "fieldOptions": { "controlTier": "essential" }, + "hidden": true, + "label": "Model", + "options": [ + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "black-forest-labs/flux-3-image-klein-base", + "schemaVersion": 1, + "value": "black-forest-labs/flux-3-image-klein-base" + } + ], + "type": "string", + "value": "black-forest-labs/flux-3-image-klein-base" + }, + "revision": { + "description": "Required exact 40-character commit hash for Hub custom contracts.", + "label": "Revision", + "onChange": "refresh_pipeline_identity", + "type": "string", + "value": "1469d27cfb9bb1bd81d3a93f5a023b39dbf136e4" + }, + "scheduler": { + "connectionRole": "scheduler", + "display": "output", + "hidden": false, + "label": "Scheduler", + "signal": { + "direction": "output", + "origin": "modiff_pipeline_identity", + "value": "Flux3ModularPipeline" + }, + "type": "diffusers_auto_model" + }, + "text_encoders": { + "connectionRole": "text_encoders", + "display": "output", + "hidden": false, + "label": "Text Encoders", + "signal": { + "direction": "output", + "origin": "modiff_pipeline_identity", + "value": "Flux3ModularPipeline" + }, + "type": "diffusers_auto_models" + }, + "trust_remote_code": { + "description": "Repository code execution is disabled; keep this off for contract preview.", + "label": "Trust Remote Code", + "onChange": "refresh_pipeline_identity", + "type": "boolean", + "value": false + }, + "unet": { "display": "input", "hidden": false, "label": "Denoise Model", "type": "diffusers_auto_model" }, + "unet_out": { + "connectionRole": "denoiser", + "display": "output", + "hidden": false, + "label": "Denoise Model", + "signal": { + "direction": "output", + "origin": "modiff_pipeline_identity", + "value": "Flux3ModularPipeline" + }, + "type": "diffusers_auto_model" + }, + "vae": { "display": "input", "hidden": false, "label": "VAE", "type": "diffusers_auto_model" }, + "vae_out": { + "connectionRole": "vae", + "display": "output", + "hidden": false, + "label": "VAE", + "signal": { + "direction": "output", + "origin": "modiff_pipeline_identity", + "value": "Flux3ModularPipeline" + }, + "type": "diffusers_auto_model" + }, + "vae_slicing": { + "default": null, + "description": "An unset policy preserves the native VAE configuration; templates may bind an explicit boolean.", + "hidden": true, + "label": "VAE Slicing", + "type": "boolean" + }, + "vae_tiling": { + "default": null, + "description": "An unset policy preserves the native VAE configuration; templates may bind an explicit boolean.", + "hidden": true, + "label": "VAE Tiling", + "type": "boolean" + }, + "weight_format": { + "default": "native", + "description": "Select a backend-declared immutable component format. Missing reviewed files must be installed through Model Manager.", + "fieldOptions": { "controlTier": "advanced" }, + "hidden": false, + "label": "Weight Format", + "options": [ + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "native", + "schemaVersion": 1, + "value": "native" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "fp8r", + "schemaVersion": 1, + "value": "fp8r" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "nvfp4", + "schemaVersion": 1, + "value": "nvfp4" + } + ], + "type": "string" + }, + "weight_loading_mode": { + "default": "cpu", + "description": "Load weights on CPU or CUDA before disk offload. CUDA loading needs room for a complete component and is available only for supported models.", + "fieldOptions": { "controlTier": "advanced" }, + "label": "Weight Loading", + "options": [ + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "cpu", + "schemaVersion": 1, + "value": "cpu" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "cuda", + "schemaVersion": 1, + "value": "cuda" + } + ], + "type": "string" + }, + "workflow_id": { + "description": "Exact reviewed component partition selected by a first-party Cluster Node.", + "hidden": true, + "label": "Reviewed Workflow", + "type": "string", + "value": "image_conditioned" + } + }, + "resizable": true, + "skipParamsCheck": true, + "style": {}, + "time": [0, 0, 0], + "type": "custom" + }, + "operation": { + "binding": { "pipelineClass": "Flux3ModularPipeline", "values": { "model_type": "Flux3ModularPipeline" } }, + "blockName": null, + "decomposition": "loader", + "nodeKey": "modules.ModularDiffusers.ModelsLoader", + "nodeType": "loader", + "operationId": "diffusion.load_models", + "pipelineClass": "Flux3ModularPipeline", + "ports": [ + { + "direction": "input", + "hidden": false, + "name": "model_type", + "required": false, + "roles": ["value"], + "semanticName": "model_type", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": false, + "name": "repo_id", + "required": false, + "roles": ["value"], + "semanticName": "repo_id", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": true, + "name": "reviewed_variant", + "required": false, + "roles": ["value"], + "semanticName": "reviewed_variant", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": false, + "name": "device", + "required": false, + "roles": ["value"], + "semanticName": "device", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": false, + "name": "attention_backend", + "required": false, + "roles": ["value"], + "semanticName": "attention_backend", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": true, + "name": "vae_slicing", + "required": false, + "roles": ["value"], + "semanticName": "vae_slicing", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["boolean"] + }, + { + "direction": "input", + "hidden": true, + "name": "vae_tiling", + "required": false, + "roles": ["value"], + "semanticName": "vae_tiling", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["boolean"] + }, + { + "direction": "input", + "hidden": true, + "name": "inpaint_compatibility", + "required": false, + "roles": ["value"], + "semanticName": "inpaint_compatibility", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": false, + "name": "trust_remote_code", + "required": false, + "roles": ["value"], + "semanticName": "trust_remote_code", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["boolean"] + }, + { + "direction": "input", + "hidden": false, + "name": "revision", + "required": false, + "roles": ["value"], + "semanticName": "revision", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": true, + "name": "workflow_id", + "required": false, + "roles": ["value"], + "semanticName": "workflow_id", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": true, + "name": "modiff_pipeline_identity", + "required": false, + "roles": ["value"], + "semanticName": "modiff_pipeline_identity", + "semantics": { + "kind": "opaque", + "members": [], + "owner": "none", + "scope": "Flux3ModularPipeline", + "state": null + }, + "types": ["object"] + }, + { + "direction": "input", + "hidden": false, + "name": "auto_offload", + "required": false, + "roles": ["value"], + "semanticName": "auto_offload", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["boolean"] + }, + { + "direction": "input", + "hidden": false, + "name": "offload_mode", + "required": false, + "roles": ["value"], + "semanticName": "offload_mode", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": false, + "name": "weight_loading_mode", + "required": false, + "roles": ["value"], + "semanticName": "weight_loading_mode", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": true, + "name": "weight_format", + "required": false, + "roles": ["value"], + "semanticName": "weight_format", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": false, + "name": "unet", + "required": false, + "roles": ["component"], + "semanticName": "unet", + "semantics": { + "kind": "component", + "members": [ + { + "name": "transformer", + "type": "diffusers.models.transformers.transformer_flux3.Flux3Transformer2DModel" + } + ], + "owner": "same_loader", + "scope": "Flux3ModularPipeline", + "state": null + }, + "types": ["diffusers_auto_model"] + }, + { + "direction": "input", + "hidden": false, + "name": "vae", + "required": false, + "roles": ["component"], + "semanticName": "vae", + "semantics": { + "kind": "component", + "members": [ + { "name": "vae", "type": "diffusers.models.autoencoders.autoencoder_kl_flux2.AutoencoderKLFlux2" } + ], + "owner": "same_loader", + "scope": "Flux3ModularPipeline", + "state": null + }, + "types": ["diffusers_auto_model"] + }, + { + "direction": "input", + "hidden": true, + "name": "controlnet", + "required": false, + "roles": ["component"], + "semanticName": "controlnet", + "semantics": { + "kind": "component", + "members": [], + "owner": "same_loader", + "scope": "Flux3ModularPipeline", + "state": null + }, + "types": ["diffusers_auto_model"] + }, + { + "direction": "input", + "hidden": false, + "name": "lora_list", + "required": false, + "roles": ["value"], + "semanticName": "lora_list", + "semantics": { + "kind": "opaque", + "members": [], + "owner": "none", + "scope": "Flux3ModularPipeline", + "state": null + }, + "types": ["custom_lora"] + }, + { + "direction": "output", + "hidden": false, + "name": "text_encoders", + "required": false, + "roles": ["component"], + "semanticName": "text_encoders", + "semantics": { + "kind": "component", + "members": [ + { + "name": "text_encoder", + "type": "transformers.models.qwen3_vl.modeling_qwen3_vl.Qwen3VLForConditionalGeneration" + }, + { "name": "tokenizer", "type": "transformers.models.auto.processing_auto.AutoProcessor" } + ], + "owner": "same_loader", + "scope": "Flux3ModularPipeline", + "state": null + }, + "types": ["diffusers_auto_models"] + }, + { + "direction": "output", + "hidden": false, + "name": "unet_out", + "required": false, + "roles": ["component"], + "semanticName": "unet_out", + "semantics": { + "kind": "component", + "members": [ + { + "name": "transformer", + "type": "diffusers.models.transformers.transformer_flux3.Flux3Transformer2DModel" + } + ], + "owner": "same_loader", + "scope": "Flux3ModularPipeline", + "state": null + }, + "types": ["diffusers_auto_model"] + }, + { + "direction": "output", + "hidden": false, + "name": "vae_out", + "required": false, + "roles": ["component"], + "semanticName": "vae_out", + "semantics": { + "kind": "component", + "members": [ + { "name": "vae", "type": "diffusers.models.autoencoders.autoencoder_kl_flux2.AutoencoderKLFlux2" } + ], + "owner": "same_loader", + "scope": "Flux3ModularPipeline", + "state": null + }, + "types": ["diffusers_auto_model"] + }, + { + "direction": "output", + "hidden": false, + "name": "scheduler", + "required": false, + "roles": ["component"], + "semanticName": "scheduler", + "semantics": { + "kind": "component", + "members": [ + { + "name": "scheduler", + "type": "diffusers.schedulers.scheduling_flow_match_euler_discrete.FlowMatchEulerDiscreteScheduler" + } + ], + "owner": "same_loader", + "scope": "Flux3ModularPipeline", + "state": null + }, + "types": ["diffusers_auto_model"] + }, + { + "direction": "output", + "hidden": true, + "name": "image_encoder", + "required": false, + "roles": ["component"], + "semanticName": "image_encoder", + "semantics": { + "kind": "component", + "members": [], + "owner": "same_loader", + "scope": "Flux3ModularPipeline", + "state": null + }, + "types": ["diffusers_auto_model"] + }, + { + "direction": "output", + "hidden": false, + "name": "pipeline_components", + "required": false, + "roles": ["component"], + "semanticName": "pipeline_components", + "semantics": { + "kind": "component", + "members": [ + { "name": "guider", "type": "diffusers.guiders.classifier_free_guidance.ClassifierFreeGuidance" }, + { + "name": "image_processor", + "type": "diffusers.modular_pipelines.flux3.image_processor.Flux3ImageProcessor" + }, + { + "name": "scheduler", + "type": "diffusers.schedulers.scheduling_flow_match_euler_discrete.FlowMatchEulerDiscreteScheduler" + }, + { + "name": "text_encoder", + "type": "transformers.models.qwen3_vl.modeling_qwen3_vl.Qwen3VLForConditionalGeneration" + }, + { "name": "tokenizer", "type": "transformers.models.auto.processing_auto.AutoProcessor" }, + { + "name": "transformer", + "type": "diffusers.models.transformers.transformer_flux3.Flux3Transformer2DModel" + }, + { "name": "vae", "type": "diffusers.models.autoencoders.autoencoder_kl_flux2.AutoencoderKLFlux2" } + ], + "owner": "same_loader", + "scope": "Flux3ModularPipeline", + "state": null + }, + "types": ["diffusers_modular_pipeline_components"] + }, + { + "direction": "input", + "hidden": false, + "name": "quant_config", + "required": false, + "roles": ["value"], + "semanticName": "quant_config", + "semantics": { + "kind": "opaque", + "members": [], + "owner": "none", + "scope": "Flux3ModularPipeline", + "state": null + }, + "types": ["quant_config"] + } + ], + "support": "declared", + "task": "edit_image", + "workflowId": "image_conditioned" + } + }, + { + "node": { + "action": "Guider", + "cache": false, + "category": "sampler", + "description": "", + "label": "Guidance", + "memory": [0, 0, 0], + "module": "modules.ModularDiffusers", + "params": { + "enabled": { "label": "Enabled", "type": "boolean", "value": true }, + "guidance_rescale": { + "display": "slider", + "label": "Guidance Rescale", + "max": 10.0, + "min": 0.0, + "step": 0.1, + "type": "float", + "value": 0.0 + }, + "guidance_scale": { + "display": "slider", + "label": "Guidance Scale", + "max": 20.0, + "min": 1.0, + "step": 0.1, + "type": "float", + "value": 3.5 + }, + "guider": { + "fieldOptions": { "loading": true }, + "label": "Guider", + "onChange": [ + "updateNode", + { + "AutoGuidance": ["layers_config"], + "PerturbedAttentionGuidance": ["layers_config"], + "SkipLayerGuidance": ["layers_config"], + "SmoothedEnergyGuidance": ["layers_config"] + } + ], + "options": [ + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "ClassifierFreeGuidance", + "schemaVersion": 1, + "value": "ClassifierFreeGuidance" + } + ], + "type": "string", + "value": "ClassifierFreeGuidance" + }, + "guider_out": { + "display": "output", + "label": "Guider", + "onSignal": [ + { "action": "value", "target": "model_type" }, + { + "action": "value", + "data": { + "Flux2KleinBaseModularPipeline": ["ClassifierFreeGuidance"], + "Flux3ModularPipeline": ["ClassifierFreeGuidance"], + "FluxKontextModularPipeline": ["ClassifierFreeGuidance"], + "FluxModularPipeline": ["ClassifierFreeGuidance"], + "QwenImageEditModularPipeline": [ + "ClassifierFreeGuidance", + "SkipLayerGuidance", + "AdaptiveProjectedGuidance", + "AdaptiveProjectedMixGuidance", + "MagnitudeAwareGuidance", + "ClassifierFreeZeroStarGuidance", + "AutoGuidance", + "SmoothedEnergyGuidance", + "PerturbedAttentionGuidance", + "TangentialClassifierFreeGuidance", + "FrequencyDecoupledGuidance" + ], + "QwenImageEditPlusModularPipeline": [ + "ClassifierFreeGuidance", + "SkipLayerGuidance", + "AdaptiveProjectedGuidance", + "AdaptiveProjectedMixGuidance", + "MagnitudeAwareGuidance", + "ClassifierFreeZeroStarGuidance", + "AutoGuidance", + "SmoothedEnergyGuidance", + "PerturbedAttentionGuidance", + "TangentialClassifierFreeGuidance", + "FrequencyDecoupledGuidance" + ], + "QwenImageLayeredModularPipeline": [ + "ClassifierFreeGuidance", + "AdaptiveProjectedGuidance", + "AdaptiveProjectedMixGuidance", + "MagnitudeAwareGuidance", + "ClassifierFreeZeroStarGuidance", + "TangentialClassifierFreeGuidance", + "FrequencyDecoupledGuidance" + ], + "QwenImageModularPipeline": [ + "ClassifierFreeGuidance", + "SkipLayerGuidance", + "AdaptiveProjectedGuidance", + "AdaptiveProjectedMixGuidance", + "MagnitudeAwareGuidance", + "ClassifierFreeZeroStarGuidance", + "AutoGuidance", + "SmoothedEnergyGuidance", + "PerturbedAttentionGuidance", + "TangentialClassifierFreeGuidance", + "FrequencyDecoupledGuidance" + ], + "StableDiffusionXLModularPipeline": [ + "ClassifierFreeGuidance", + "SkipLayerGuidance", + "AdaptiveProjectedGuidance", + "AdaptiveProjectedMixGuidance", + "MagnitudeAwareGuidance", + "ClassifierFreeZeroStarGuidance", + "AutoGuidance", + "SmoothedEnergyGuidance", + "PerturbedAttentionGuidance", + "TangentialClassifierFreeGuidance", + "FrequencyDecoupledGuidance" + ], + "WanImage2VideoModularPipeline": [ + "ClassifierFreeGuidance", + "AdaptiveProjectedGuidance", + "AdaptiveProjectedMixGuidance", + "MagnitudeAwareGuidance", + "ClassifierFreeZeroStarGuidance", + "TangentialClassifierFreeGuidance", + "FrequencyDecoupledGuidance" + ], + "WanModularPipeline": [ + "ClassifierFreeGuidance", + "AdaptiveProjectedGuidance", + "AdaptiveProjectedMixGuidance", + "MagnitudeAwareGuidance", + "ClassifierFreeZeroStarGuidance", + "TangentialClassifierFreeGuidance", + "FrequencyDecoupledGuidance" + ], + "ZImageModularPipeline": [ + "ClassifierFreeGuidance", + "AdaptiveProjectedGuidance", + "AdaptiveProjectedMixGuidance", + "MagnitudeAwareGuidance", + "ClassifierFreeZeroStarGuidance", + "TangentialClassifierFreeGuidance", + "FrequencyDecoupledGuidance" + ] + }, + "prop": "options", + "target": "guider" + }, + { "action": "signal", "target": "layers_config" } + ], + "signalCompatibility": { + "values": { + "Flux2KleinBaseModularPipeline": ["ClassifierFreeGuidance"], + "Flux3ModularPipeline": ["ClassifierFreeGuidance"], + "FluxKontextModularPipeline": ["ClassifierFreeGuidance"], + "FluxModularPipeline": ["ClassifierFreeGuidance"], + "QwenImageEditModularPipeline": [ + "ClassifierFreeGuidance", + "SkipLayerGuidance", + "AdaptiveProjectedGuidance", + "AdaptiveProjectedMixGuidance", + "MagnitudeAwareGuidance", + "ClassifierFreeZeroStarGuidance", + "AutoGuidance", + "SmoothedEnergyGuidance", + "PerturbedAttentionGuidance", + "TangentialClassifierFreeGuidance", + "FrequencyDecoupledGuidance" + ], + "QwenImageEditPlusModularPipeline": [ + "ClassifierFreeGuidance", + "SkipLayerGuidance", + "AdaptiveProjectedGuidance", + "AdaptiveProjectedMixGuidance", + "MagnitudeAwareGuidance", + "ClassifierFreeZeroStarGuidance", + "AutoGuidance", + "SmoothedEnergyGuidance", + "PerturbedAttentionGuidance", + "TangentialClassifierFreeGuidance", + "FrequencyDecoupledGuidance" + ], + "QwenImageLayeredModularPipeline": [ + "ClassifierFreeGuidance", + "AdaptiveProjectedGuidance", + "AdaptiveProjectedMixGuidance", + "MagnitudeAwareGuidance", + "ClassifierFreeZeroStarGuidance", + "TangentialClassifierFreeGuidance", + "FrequencyDecoupledGuidance" + ], + "QwenImageModularPipeline": [ + "ClassifierFreeGuidance", + "SkipLayerGuidance", + "AdaptiveProjectedGuidance", + "AdaptiveProjectedMixGuidance", + "MagnitudeAwareGuidance", + "ClassifierFreeZeroStarGuidance", + "AutoGuidance", + "SmoothedEnergyGuidance", + "PerturbedAttentionGuidance", + "TangentialClassifierFreeGuidance", + "FrequencyDecoupledGuidance" + ], + "StableDiffusionXLModularPipeline": [ + "ClassifierFreeGuidance", + "SkipLayerGuidance", + "AdaptiveProjectedGuidance", + "AdaptiveProjectedMixGuidance", + "MagnitudeAwareGuidance", + "ClassifierFreeZeroStarGuidance", + "AutoGuidance", + "SmoothedEnergyGuidance", + "PerturbedAttentionGuidance", + "TangentialClassifierFreeGuidance", + "FrequencyDecoupledGuidance" + ], + "WanImage2VideoModularPipeline": [ + "ClassifierFreeGuidance", + "AdaptiveProjectedGuidance", + "AdaptiveProjectedMixGuidance", + "MagnitudeAwareGuidance", + "ClassifierFreeZeroStarGuidance", + "TangentialClassifierFreeGuidance", + "FrequencyDecoupledGuidance" + ], + "WanModularPipeline": [ + "ClassifierFreeGuidance", + "AdaptiveProjectedGuidance", + "AdaptiveProjectedMixGuidance", + "MagnitudeAwareGuidance", + "ClassifierFreeZeroStarGuidance", + "TangentialClassifierFreeGuidance", + "FrequencyDecoupledGuidance" + ], + "ZImageModularPipeline": [ + "ClassifierFreeGuidance", + "AdaptiveProjectedGuidance", + "AdaptiveProjectedMixGuidance", + "MagnitudeAwareGuidance", + "ClassifierFreeZeroStarGuidance", + "TangentialClassifierFreeGuidance", + "FrequencyDecoupledGuidance" + ] + } + }, + "type": "custom_guider" + }, + "layers_config": { "display": "input", "label": "Layers", "type": "layers_config" }, + "model_type": { "default": "", "hidden": true, "type": "string", "value": "Flux3ModularPipeline" }, + "start": { + "display": "slider", + "label": "Start", + "max": 1.0, + "min": 0.0, + "step": 0.01, + "type": "float", + "value": 0.0 + }, + "stop": { + "display": "slider", + "label": "Stop", + "max": 1.0, + "min": 0.01, + "step": 0.01, + "type": "float", + "value": 1.0 + }, + "use_original_formulation": { "label": "Original Formulation", "type": "boolean", "value": false } + }, + "resizable": true, + "skipParamsCheck": true, + "style": {}, + "time": [0, 0, 0], + "type": "custom" + }, + "operation": { + "binding": { "pipelineClass": "Flux3ModularPipeline", "values": { "model_type": "Flux3ModularPipeline" } }, + "blockName": null, + "decomposition": "bundle", + "nodeKey": "modules.ModularDiffusers.Guider", + "nodeType": "guidance", + "operationId": "diffusion.guidance", + "pipelineClass": "Flux3ModularPipeline", + "ports": [ + { + "direction": "input", + "hidden": true, + "name": "model_type", + "required": false, + "roles": ["value"], + "semanticName": "model_type", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": false, + "name": "guider", + "required": false, + "roles": ["value"], + "semanticName": "guider", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": false, + "name": "guidance_scale", + "required": false, + "roles": ["value"], + "semanticName": "guidance_scale", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["float"] + }, + { + "direction": "input", + "hidden": false, + "name": "guidance_rescale", + "required": false, + "roles": ["value"], + "semanticName": "guidance_rescale", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["float"] + }, + { + "direction": "input", + "hidden": false, + "name": "use_original_formulation", + "required": false, + "roles": ["value"], + "semanticName": "use_original_formulation", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["boolean"] + }, + { + "direction": "input", + "hidden": false, + "name": "enabled", + "required": false, + "roles": ["value"], + "semanticName": "enabled", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["boolean"] + }, + { + "direction": "input", + "hidden": false, + "name": "start", + "required": false, + "roles": ["value"], + "semanticName": "start", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["float"] + }, + { + "direction": "input", + "hidden": false, + "name": "stop", + "required": false, + "roles": ["value"], + "semanticName": "stop", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["float"] + }, + { + "direction": "output", + "hidden": false, + "name": "guider_out", + "required": false, + "roles": ["component"], + "semanticName": "guider_out", + "semantics": { + "kind": "component", + "members": [], + "owner": "same_loader", + "scope": "Flux3ModularPipeline", + "state": null + }, + "types": ["custom_guider"] + }, + { + "direction": "input", + "hidden": false, + "name": "layers_config", + "required": false, + "roles": ["value"], + "semanticName": "layers_config", + "semantics": { + "kind": "opaque", + "members": [], + "owner": "none", + "scope": "Flux3ModularPipeline", + "state": null + }, + "types": ["layers_config"] + } + ], + "support": "declared", + "task": "edit_image", + "workflowId": "image_conditioned" + } + }, + { + "node": { + "action": "EncodePrompt", + "cache": false, + "category": "embedding", + "description": "", + "label": "Encode Prompt", + "memory": [0, 0, 0], + "module": "modules.ModularDiffusers", + "params": { + "doc": { "display": "output", "label": "Doc", "type": "string" }, + "embeddings": { "display": "output", "label": "Text Embeddings", "type": "embeddings" }, + "guider": { + "description": "Shared Diffusers guidance used by prompt encoding and denoising when the selected pipeline supports it.", + "display": "input", + "hidden": true, + "label": "Guider", + "type": "custom_guider" + }, + "layout_conditioning": { + "default": null, + "display": "layout", + "fieldOptions": { + "layoutConditioning": { + "schemaVersion": 2, + "sourceRegions": false, + "supportsBoundSourceRegions": true + } + }, + "label": "Layout Conditioning", + "type": "layout_conditioning" + }, + "layout_reference_summary": { + "description": "Display-only ordered reference identities and actual preprocessing sizes from the current encoder cache.", + "display": "output", + "hidden": true, + "label": "Bound Reference Summary", + "type": "string" + }, + "max_sequence_length": { + "default": 8192, + "label": "Maximum Sequence Length", + "max": 8192, + "min": 1, + "step": 1, + "type": "int" + }, + "negative_prompt": { "default": "", "display": "textarea", "label": "Negative Prompt", "type": "string" }, + "prompt": { + "default": "", + "display": "textarea", + "fieldOptions": { "exampleAttribution": "MoDiff task example" }, + "label": "Prompt *", + "type": "string", + "value": "Change the background to a sunlit garden. Keep the main subject, its pose and its appearance unchanged." + }, + "prompt_input": { + "description": "Optional connected prompt. When connected, this replaces the inline Prompt value.", + "display": "input", + "label": "Prompt Input", + "type": "string" + }, + "reference_binding": { + "default": null, + "display": "input", + "fieldOptions": { "referenceBinding": { "maxReferences": 10, "schemaVersion": 1 } }, + "label": "Reference Binding", + "type": "reference_conditioning" + }, + "text_encoder_out_layers": { + "default": [4, 8, 12, 16, 20, 24, 28, 32], + "display": "select", + "fieldOptions": { "multiple": true, "tupleLength": 8, "tupleValue": true }, + "label": "Text Encoder Layers", + "options": [ + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "0", + "schemaVersion": 1, + "value": "0" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "1", + "schemaVersion": 1, + "value": "1" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "2", + "schemaVersion": 1, + "value": "2" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "3", + "schemaVersion": 1, + "value": "3" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "4", + "schemaVersion": 1, + "value": "4" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "5", + "schemaVersion": 1, + "value": "5" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "6", + "schemaVersion": 1, + "value": "6" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "7", + "schemaVersion": 1, + "value": "7" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "8", + "schemaVersion": 1, + "value": "8" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "9", + "schemaVersion": 1, + "value": "9" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "10", + "schemaVersion": 1, + "value": "10" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "11", + "schemaVersion": 1, + "value": "11" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "12", + "schemaVersion": 1, + "value": "12" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "13", + "schemaVersion": 1, + "value": "13" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "14", + "schemaVersion": 1, + "value": "14" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "15", + "schemaVersion": 1, + "value": "15" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "16", + "schemaVersion": 1, + "value": "16" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "17", + "schemaVersion": 1, + "value": "17" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "18", + "schemaVersion": 1, + "value": "18" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "19", + "schemaVersion": 1, + "value": "19" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "20", + "schemaVersion": 1, + "value": "20" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "21", + "schemaVersion": 1, + "value": "21" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "22", + "schemaVersion": 1, + "value": "22" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "23", + "schemaVersion": 1, + "value": "23" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "24", + "schemaVersion": 1, + "value": "24" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "25", + "schemaVersion": 1, + "value": "25" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "26", + "schemaVersion": 1, + "value": "26" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "27", + "schemaVersion": 1, + "value": "27" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "28", + "schemaVersion": 1, + "value": "28" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "29", + "schemaVersion": 1, + "value": "29" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "30", + "schemaVersion": 1, + "value": "30" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "31", + "schemaVersion": 1, + "value": "31" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "32", + "schemaVersion": 1, + "value": "32" + } + ], + "type": "int" + }, + "text_encoders": { + "display": "input", + "label": "Text Encoders *", + "onSignal": "update_node", + "required": true, + "signalCompatibility": { "role": "text_encoders" }, + "type": "diffusers_auto_models" + } + }, + "resizable": true, + "skipParamsCheck": true, + "style": {}, + "time": [0, 0, 0], + "type": "custom" + }, + "operation": { + "binding": { "pipelineClass": "Flux3ModularPipeline", "values": {} }, + "blockName": "text_encoder", + "decomposition": "block", + "nodeKey": "modules.ModularDiffusers.EncodePrompt", + "nodeType": "text_encoder", + "operationId": "diffusion.encode_prompt", + "pipelineClass": "Flux3ModularPipeline", + "ports": [ + { + "direction": "input", + "hidden": false, + "name": "prompt", + "required": true, + "roles": ["value"], + "semanticName": "prompt", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": false, + "name": "negative_prompt", + "required": false, + "roles": ["value"], + "semanticName": "negative_prompt", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": false, + "name": "max_sequence_length", + "required": false, + "roles": ["value"], + "semanticName": "max_sequence_length", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["int"] + }, + { + "direction": "input", + "hidden": false, + "name": "text_encoder_out_layers", + "required": false, + "roles": ["value"], + "semanticName": "text_encoder_out_layers", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["int"] + }, + { + "direction": "input", + "hidden": false, + "name": "text_encoders", + "required": true, + "roles": ["component"], + "semanticName": "text_encoders", + "semantics": { + "kind": "component", + "members": [ + { + "name": "text_encoder", + "type": "transformers.models.qwen3_vl.modeling_qwen3_vl.Qwen3VLForConditionalGeneration" + }, + { "name": "tokenizer", "type": "transformers.models.auto.processing_auto.AutoProcessor" } + ], + "owner": "same_loader", + "scope": "Flux3ModularPipeline", + "state": null + }, + "types": ["diffusers_auto_models"] + }, + { + "direction": "output", + "hidden": false, + "name": "embeddings", + "required": false, + "roles": ["value"], + "semanticName": "embeddings", + "semantics": { + "kind": "conditioning", + "members": [], + "owner": "same_loader", + "scope": "Flux3ModularPipeline", + "state": null + }, + "types": ["embeddings"] + }, + { + "direction": "output", + "hidden": false, + "name": "doc", + "required": false, + "roles": ["value"], + "semanticName": "doc", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": false, + "name": "layout_conditioning", + "required": false, + "roles": ["value"], + "semanticName": "layout_conditioning", + "semantics": { + "kind": "opaque", + "members": [], + "owner": "none", + "scope": "Flux3ModularPipeline", + "state": null + }, + "types": ["layout_conditioning"] + }, + { + "direction": "input", + "hidden": false, + "name": "reference_binding", + "required": false, + "roles": ["value"], + "semanticName": "reference_binding", + "semantics": { + "kind": "opaque", + "members": [], + "owner": "none", + "scope": "Flux3ModularPipeline", + "state": null + }, + "types": ["reference_conditioning"] + }, + { + "direction": "input", + "hidden": false, + "name": "prompt_input", + "required": false, + "roles": ["value"], + "semanticName": "prompt", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + } + ], + "support": "declared", + "task": "edit_image", + "workflowId": "image_conditioned" + } + }, + { + "node": { + "action": "ImageEncode", + "cache": false, + "category": "sampler", + "description": "", + "label": "Encode Image", + "memory": [0, 0, 0], + "module": "modules.ModularDiffusers", + "params": { + "doc": { "display": "output", "label": "Doc", "type": "string" }, + "encode_summary": { + "dataSource": "encode_summary_data", + "display": "ui_text", + "hidden": true, + "label": "Encode summary", + "type": "text" + }, + "encode_summary_data": { "display": "output", "hidden": true, "label": "Encode summary", "type": "str" }, + "image": { "display": "input", "label": "Image *", "type": "image" }, + "image_cond_latents": { "display": "output", "label": "Reference Latents", "type": "latents" }, + "layout_reference_summary": { + "description": "Display-only ordered reference identities and actual preprocessing sizes from this image encoding cache.", + "display": "output", + "hidden": true, + "label": "Bound Reference Summary", + "type": "string" + }, + "reference_binding": { + "display": "output", + "fieldOptions": { "referenceBinding": { "maxReferences": 10, "schemaVersion": 1 } }, + "label": "Reference Binding", + "type": "reference_conditioning" + }, + "vae": { + "display": "input", + "label": "VAE *", + "onSignal": "update_node", + "signalCompatibility": { "role": "vae" }, + "type": "diffusers_auto_model" + } + }, + "resizable": true, + "skipParamsCheck": true, + "style": {}, + "time": [0, 0, 0], + "type": "custom" + }, + "operation": { + "binding": { "pipelineClass": "Flux3ModularPipeline", "values": {} }, + "blockName": "vae_encoder", + "decomposition": "block", + "nodeKey": "modules.ModularDiffusers.ImageEncode", + "nodeType": "vae_encoder", + "operationId": "diffusion.encode_image", + "pipelineClass": "Flux3ModularPipeline", + "ports": [ + { + "direction": "input", + "hidden": false, + "name": "image", + "required": true, + "roles": ["value"], + "semanticName": "image", + "semantics": { "kind": "media", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["image"] + }, + { + "direction": "input", + "hidden": false, + "name": "vae", + "required": true, + "roles": ["component"], + "semanticName": "vae", + "semantics": { + "kind": "component", + "members": [ + { "name": "vae", "type": "diffusers.models.autoencoders.autoencoder_kl_flux2.AutoencoderKLFlux2" } + ], + "owner": "same_loader", + "scope": "Flux3ModularPipeline", + "state": null + }, + "types": ["diffusers_auto_model"] + }, + { + "direction": "output", + "hidden": false, + "name": "image_cond_latents", + "required": false, + "roles": ["value"], + "semanticName": "image_cond_latents", + "semantics": { + "kind": "latents", + "members": [], + "owner": "same_loader", + "scope": "Flux3ModularPipeline", + "state": null + }, + "types": ["latents"] + }, + { + "direction": "output", + "hidden": false, + "name": "reference_binding", + "required": false, + "roles": ["value"], + "semanticName": "reference_binding", + "semantics": { + "kind": "opaque", + "members": [], + "owner": "none", + "scope": "Flux3ModularPipeline", + "state": null + }, + "types": ["reference_conditioning"] + }, + { + "direction": "output", + "hidden": false, + "name": "doc", + "required": false, + "roles": ["value"], + "semanticName": "doc", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + } + ], + "support": "declared", + "task": "edit_image", + "workflowId": "image_conditioned" + } + }, + { + "node": { + "action": "Denoise", + "cache": false, + "category": "sampler", + "description": "", + "label": "Denoise", + "memory": [0, 0, 0], + "module": "modules.ModularDiffusers", + "params": { + "doc": { "display": "output", "label": "Doc", "type": "string" }, + "embeddings": { "display": "input", "label": "Text Embeddings *", "type": "embeddings" }, + "guider": { "display": "input", "label": "Guider", "type": "custom_guider" }, + "height": { "default": 1024, "label": "Height", "min": 64, "step": 16, "type": "int", "value": 1024 }, + "image_cond_latents": { "display": "input", "label": "Reference Latents", "type": "latents" }, + "latents": { "display": "output", "label": "Latents", "type": "latents" }, + "num_images_per_prompt": { + "default": 1, + "label": "Images Per Prompt", + "max": 8, + "min": 1, + "step": 1, + "type": "int" + }, + "num_inference_steps": { + "default": 50, + "display": "slider", + "label": "Steps", + "max": 100, + "min": 1, + "type": "int", + "value": 50 + }, + "reference_binding": { + "default": null, + "display": "input", + "fieldOptions": { "referenceBinding": { "maxReferences": 10, "schemaVersion": 1 } }, + "label": "Reference Binding", + "type": "reference_conditioning" + }, + "scheduler": { + "display": "input", + "label": "Scheduler *", + "signalCompatibility": { "role": "scheduler" }, + "type": "diffusers_auto_model" + }, + "seed": { + "default": 0, + "display": "random", + "label": "Seed", + "max": 4294967295, + "min": 0, + "type": "int" + }, + "unet": { + "display": "input", + "label": "Denoise Model *", + "onSignal": [ + "update_node", + { "action": "signal", "target": "guider" }, + { "action": "signal", "target": "controlnet_bundle" } + ], + "required": true, + "signalCompatibility": { "role": "denoiser" }, + "type": "diffusers_auto_model" + }, + "width": { "default": 1024, "label": "Width", "min": 64, "step": 16, "type": "int", "value": 1024 } + }, + "resizable": true, + "skipParamsCheck": true, + "style": {}, + "time": [0, 0, 0], + "type": "custom" + }, + "operation": { + "binding": { "pipelineClass": "Flux3ModularPipeline", "values": {} }, + "blockName": "denoise", + "decomposition": "block", + "nodeKey": "modules.ModularDiffusers.Denoise", + "nodeType": "denoise", + "operationId": "diffusion.denoise", + "pipelineClass": "Flux3ModularPipeline", + "ports": [ + { + "direction": "input", + "hidden": false, + "name": "embeddings", + "required": true, + "roles": ["value"], + "semanticName": "embeddings", + "semantics": { + "kind": "conditioning", + "members": [], + "owner": "same_loader", + "scope": "Flux3ModularPipeline", + "state": null + }, + "types": ["embeddings"] + }, + { + "direction": "input", + "hidden": false, + "name": "width", + "required": false, + "roles": ["value"], + "semanticName": "width", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["int"] + }, + { + "direction": "input", + "hidden": false, + "name": "height", + "required": false, + "roles": ["value"], + "semanticName": "height", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["int"] + }, + { + "direction": "input", + "hidden": false, + "name": "seed", + "required": false, + "roles": ["value"], + "semanticName": "seed", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["int"] + }, + { + "direction": "input", + "hidden": false, + "name": "num_inference_steps", + "required": false, + "roles": ["value"], + "semanticName": "num_inference_steps", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["int"] + }, + { + "direction": "input", + "hidden": false, + "name": "num_images_per_prompt", + "required": false, + "roles": ["value"], + "semanticName": "num_images_per_prompt", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["int"] + }, + { + "direction": "input", + "hidden": false, + "name": "image_cond_latents", + "required": false, + "roles": ["value"], + "semanticName": "image_cond_latents", + "semantics": { + "kind": "latents", + "members": [], + "owner": "same_loader", + "scope": "Flux3ModularPipeline", + "state": null + }, + "types": ["latents"] + }, + { + "direction": "input", + "hidden": false, + "name": "unet", + "required": true, + "roles": ["component"], + "semanticName": "unet", + "semantics": { + "kind": "component", + "members": [ + { + "name": "transformer", + "type": "diffusers.models.transformers.transformer_flux3.Flux3Transformer2DModel" + } + ], + "owner": "same_loader", + "scope": "Flux3ModularPipeline", + "state": null + }, + "types": ["diffusers_auto_model"] + }, + { + "direction": "input", + "hidden": false, + "name": "scheduler", + "required": true, + "roles": ["component"], + "semanticName": "scheduler", + "semantics": { + "kind": "component", + "members": [ + { + "name": "scheduler", + "type": "diffusers.schedulers.scheduling_flow_match_euler_discrete.FlowMatchEulerDiscreteScheduler" + } + ], + "owner": "same_loader", + "scope": "Flux3ModularPipeline", + "state": null + }, + "types": ["diffusers_auto_model"] + }, + { + "direction": "input", + "hidden": false, + "name": "guider", + "required": false, + "roles": ["component"], + "semanticName": "guider", + "semantics": { + "kind": "component", + "members": [ + { "name": "guider", "type": "diffusers.guiders.classifier_free_guidance.ClassifierFreeGuidance" } + ], + "owner": "same_loader", + "scope": "Flux3ModularPipeline", + "state": null + }, + "types": ["custom_guider"] + }, + { + "direction": "output", + "hidden": false, + "name": "latents", + "required": false, + "roles": ["value"], + "semanticName": "latents", + "semantics": { + "kind": "latents", + "members": [], + "owner": "same_loader", + "scope": "Flux3ModularPipeline", + "state": null + }, + "types": ["latents"] + }, + { + "direction": "output", + "hidden": false, + "name": "doc", + "required": false, + "roles": ["value"], + "semanticName": "doc", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": false, + "name": "reference_binding", + "required": false, + "roles": ["value"], + "semanticName": "reference_binding", + "semantics": { + "kind": "opaque", + "members": [], + "owner": "none", + "scope": "Flux3ModularPipeline", + "state": null + }, + "types": ["reference_conditioning"] + } + ], + "support": "declared", + "task": "edit_image", + "workflowId": "image_conditioned" + } + }, + { + "node": { + "action": "DecodeLatents", + "cache": false, + "category": "sampler", + "description": "", + "label": "Decode Latents", + "memory": [0, 0, 0], + "module": "modules.ModularDiffusers", + "params": { + "doc": { "display": "output", "label": "Doc", "type": "string" }, + "images": { "display": "output", "label": "Images", "type": "image" }, + "latents": { "display": "input", "label": "Latents *", "type": "latents" }, + "vae": { + "display": "input", + "label": "VAE *", + "onSignal": "update_node", + "signalCompatibility": { "role": "vae" }, + "type": "diffusers_auto_model" + } + }, + "resizable": true, + "skipParamsCheck": true, + "style": {}, + "time": [0, 0, 0], + "type": "custom" + }, + "operation": { + "binding": { "pipelineClass": "Flux3ModularPipeline", "values": {} }, + "blockName": "decode", + "decomposition": "block", + "nodeKey": "modules.ModularDiffusers.DecodeLatents", + "nodeType": "decoder", + "operationId": "diffusion.decode_latents", + "pipelineClass": "Flux3ModularPipeline", + "ports": [ + { + "direction": "input", + "hidden": false, + "name": "latents", + "required": true, + "roles": ["value"], + "semanticName": "latents", + "semantics": { + "kind": "latents", + "members": [], + "owner": "same_loader", + "scope": "Flux3ModularPipeline", + "state": null + }, + "types": ["latents"] + }, + { + "direction": "input", + "hidden": false, + "name": "vae", + "required": true, + "roles": ["component"], + "semanticName": "vae", + "semantics": { + "kind": "component", + "members": [ + { "name": "vae", "type": "diffusers.models.autoencoders.autoencoder_kl_flux2.AutoencoderKLFlux2" } + ], + "owner": "same_loader", + "scope": "Flux3ModularPipeline", + "state": null + }, + "types": ["diffusers_auto_model"] + }, + { + "direction": "output", + "hidden": false, + "name": "images", + "required": false, + "roles": ["value"], + "semanticName": "images", + "semantics": { "kind": "media", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["image"] + }, + { + "direction": "output", + "hidden": false, + "name": "doc", + "required": false, + "roles": ["value"], + "semanticName": "doc", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + } + ], + "support": "declared", + "task": "edit_image", + "workflowId": "image_conditioned" + } + } + ], + "pipelineClass": "Flux3ModularPipeline", + "requiredInputs": [ + { "field": "image", "operationId": "diffusion.encode_image" }, + { "field": "prompt", "operationId": "diffusion.encode_prompt" } + ], + "schemaVersion": 1, + "sharedInputs": [], + "task": "edit_image", + "upstreamBlocks": ["text_encoder", "vae_encoder", "denoise", "decode"], + "workflowId": "image_conditioned" + }, + { + "authoring": { + "ancillaryOperations": [ + { + "adapter": { + "declarationSha256": "sha256:2a3d4685988b418115008bbb95fb3e948097580c0bedd2940ea3fe1e40254dc2", + "id": "transformers-prompt-enhancement-v1" + }, + "bindings": { + "output": { "field": "proposal_summary", "role": "proposal" }, + "owner": { + "layoutField": "layout_conditioning", + "promptField": "prompt", + "referenceSource": { "field": "image", "role": "loadImage" }, + "role": "prompt" + }, + "request": { + "imagesField": "images", + "layoutField": "layout_conditioning", + "promptField": "prompt", + "role": "proposal" + } + }, + "contentHash": "studio-ancillary-v1-84ca6aae", + "edges": [["provider", "model", "proposal", "model"]], + "executionPurpose": "explicit_preview", + "fieldOverrides": [ + ["proposal", "enhancement_max_new_tokens", { "hidden": false }], + ["proposal", "max_new_tokens", { "hidden": true }] + ], + "id": "flux3-klein:official:edit-image:prompt-preview-append-fp32:v1:preview", + "initialValues": [ + ["provider", "model_id", { "source": "hub", "value": "black-forest-labs/flux-3-image-klein-pup" }], + ["provider", "revision", "3f3edb52b2c55de0d49feab28598b68f7f8e4830"], + ["proposal", "operation", "enhance_prompt_append_details"], + ["provider", "dtype", "float32"], + ["provider", "device", "cuda:0"], + ["provider", "quantization_mode", "none"], + ["proposal", "max_input_tokens", 4096] + ], + "layoutPolicy": "append-details-preserve-layout-v1", + "parent": { + "authoringRecipeId": "flux3-klein:official:edit-image:prompt-preview-append-fp32:v1", + "baseSpecContentHash": "studio-spec-v1-9e30f38e", + "baseSpecId": "flux3-klein:official-provider:v1:edit-image:v1", + "executionProfileId": "flux3-klein:official-provider:v1", + "pipelineClass": "Flux3DistilledModularPipeline", + "task": "edit_image" + }, + "roles": [ + ["provider", "modules.HuggingFaceTransformers.LoadImageTextToTextModel", -720, -400], + ["proposal", "modules.HuggingFaceTransformers.GenerateImageVideoText", -360, -400] + ], + "schemaVersion": 1, + "sourceRegions": false, + "verification": { + "adapter": { + "declarationSha256": "sha256:2a3d4685988b418115008bbb95fb3e948097580c0bedd2940ea3fe1e40254dc2", + "id": "transformers-prompt-enhancement-v1" + }, + "chatTemplateSha256": "sha256:a4aee8afcf2e0711942cf848899be66016f8d14a889ff9ede07bca099c28f715", + "layoutRequestSuffixSha256": "sha256:5c48f090514be3472650c23ccd5f6cc19077bf68cd163338aaf6903f720a7561", + "modelReceipt": { + "library": "transformers", + "loader": { "modelAutoClass": "AutoModelForImageTextToText", "preprocessorAutoClass": "AutoProcessor" }, + "runtime": { + "architectures": ["Qwen3_5ForConditionalGeneration"], + "modelClass": "Qwen3_5ForConditionalGeneration", + "modelType": "qwen3_5", + "preprocessorClass": "Qwen3VLProcessor", + "transformersVersion": "5.18.0" + }, + "schemaVersion": 1, + "security": { + "hostedInference": false, + "localFilesOnly": true, + "safetensorsOnly": true, + "trustRemoteCode": false + }, + "source": { + "kind": "hub", + "repository": "black-forest-labs/flux-3-image-klein-pup", + "revision": "3f3edb52b2c55de0d49feab28598b68f7f8e4830" + }, + "task": "image-video-to-text" + }, + "quantizationRecipes": [ + { "mode": "none" }, + { + "computeDtype": "bfloat16", + "doubleQuant": true, + "mode": "bnb_4bit", + "quantType": "nf4", + "skipModules": ["lm_head", "model.visual"] + } + ], + "requestInputs": { + "maxImagePixelsField": "max_image_pixels", + "maxInputTokensField": "max_input_tokens", + "maxNewTokensField": "enhancement_max_new_tokens", + "minNewTokensField": "min_new_tokens", + "operationField": "operation", + "role": "proposal" + }, + "runtimeInputs": { + "deviceField": "device", + "dtypeField": "dtype", + "modelField": "model_id", + "quantizationField": "quantization_mode", + "revisionField": "revision", + "role": "provider" + }, + "schemaVersion": 1, + "supportedPromptModes": ["t2i", "i2i"], + "systemPromptSha256ByMode": { + "i2i": "95cec384d5b6d341caa9fb3f2c7ca45ee80c2364b3a95d4044aebf976f6dd3bf", + "i2i_bbox": "9ad10f947e401337cf155cac0518cc428159ef16f2f029f48aae2aaab8380a5e", + "t2i": "8b235a421bce2213d11ada01f5a1244443dd72303ffbb4cc9e5a0d8b0de5ab6f", + "t2i_bbox": "5f513d8ce5838732919f9e645507aa20ff373e88bf93132c768e063c9db3151f" + }, + "systemPromptsSha256": "sha256:b5da3ed8bc04ab59dbdb747930f7dbff847e868903fed8028f85ee1a4ac82fb4" + } + } + ], + "baseSpecContentHash": "studio-spec-v1-9e30f38e", + "baseSpecId": "flux3-klein:official-provider:v1:edit-image:v1", + "bindings": [ + ["models", "model_type", "pipelineClass"], + ["models", "repo_id", "artifact"], + ["models", "revision", "defaultRevision"], + ["models", "dtype", "dtype"], + ["models", "device", "device"], + ["models", "auto_offload", "autoOffload"], + ["models", "offload_mode", "offloadMode"], + ["models", "trust_remote_code", "false"], + ["prompt", "prompt", "prompt"], + ["denoise", "width", "width"], + ["denoise", "height", "height"], + ["denoise", "seed", "seed"], + ["denoise", "num_inference_steps", "steps"], + ["prompt", "max_sequence_length", "maxSequenceLength"], + ["models", "weight_format", "weightFormat"], + ["loadImage", "file", "referenceImages"], + ["loadImage", "alpha_channel", "alphaMode"] + ], + "canonicalizationVersion": 1, + "contentHash": "studio-authoring-v1-95855fee", + "edges": [ + ["models", "text_encoders", "prompt", "text_encoders"], + ["models", "unet_out", "denoise", "unet"], + ["models", "scheduler", "denoise", "scheduler"], + ["models", "vae_out", "decode", "vae"], + ["prompt", "embeddings", "denoise", "embeddings"], + ["denoise", "latents", "decode", "latents"], + ["decode", "images", "preview", "image"], + ["models", "vae_out", "imageEncode", "vae"], + ["loadImage", "image", "imageEncode", "image"], + ["imageEncode", "image_cond_latents", "denoise", "image_cond_latents"], + ["imageEncode", "reference_binding", "prompt", "reference_binding"], + ["imageEncode", "reference_binding", "denoise", "reference_binding"] + ], + "executionProfileIds": ["flux3-klein:official-provider:v1"], + "id": "flux3-klein:official:edit-image:prompt-preview-append-fp32:v1", + "initialValues": [], + "roles": [ + ["models", "modules.ModularDiffusers.ModelsLoader", -720, -80], + ["prompt", "modules.ModularDiffusers.EncodePrompt", -360, -240], + ["denoise", "modules.ModularDiffusers.Denoise", 80, -80], + ["decode", "modules.ModularDiffusers.DecodeLatents", 440, -80], + ["preview", "modules.Image.Preview", 800, -80], + ["loadImage", "modules.Image.Load", -720, 320], + ["imageEncode", "modules.ModularDiffusers.ImageEncode", -360, 320] + ], + "schemaVersion": 1 + }, + "edges": [ + { + "source": "diffusion.load_models", + "sourceHandle": "text_encoders", + "target": "diffusion.encode_prompt", + "targetHandle": "text_encoders" + }, + { + "source": "diffusion.load_models", + "sourceHandle": "vae_out", + "target": "diffusion.encode_image", + "targetHandle": "vae" + }, + { + "source": "diffusion.load_models", + "sourceHandle": "scheduler", + "target": "diffusion.denoise", + "targetHandle": "scheduler" + }, + { + "source": "diffusion.load_models", + "sourceHandle": "unet_out", + "target": "diffusion.denoise", + "targetHandle": "unet" + }, + { + "source": "diffusion.load_models", + "sourceHandle": "vae_out", + "target": "diffusion.decode_latents", + "targetHandle": "vae" + }, + { + "source": "diffusion.encode_prompt", + "sourceHandle": "embeddings", + "target": "diffusion.denoise", + "targetHandle": "embeddings" + }, + { + "source": "diffusion.denoise", + "sourceHandle": "latents", + "target": "diffusion.decode_latents", + "targetHandle": "latents" + }, + { + "source": "diffusion.encode_image", + "sourceHandle": "image_cond_latents", + "target": "diffusion.denoise", + "targetHandle": "image_cond_latents" + }, + { + "source": "diffusion.encode_image", + "sourceHandle": "reference_binding", + "target": "diffusion.encode_prompt", + "targetHandle": "reference_binding" + }, + { + "source": "diffusion.encode_image", + "sourceHandle": "reference_binding", + "target": "diffusion.denoise", + "targetHandle": "reference_binding" + } + ], + "nodes": [ + { + "node": { + "action": "ModelsLoader", + "cache": false, + "category": "loader", + "description": "", + "label": "Load Models", + "memory": [0, 0, 0], + "module": "modules.ModularDiffusers", + "params": { + "attention_backend": { + "default": "inherit", + "description": "Inherit preserves existing native component defaults; explicit choices use the ordinary Diffusers attention API.", + "label": "Attention Backend", + "options": [ + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "inherit", + "schemaVersion": 1, + "value": "inherit" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "auto", + "schemaVersion": 1, + "value": "auto" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "native", + "schemaVersion": 1, + "value": "native" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "_native_math", + "schemaVersion": 1, + "value": "_native_math" + } + ], + "type": "string" + }, + "auto_offload": { "label": "Enable Auto Offload", "type": "boolean", "value": true }, + "controlnet": { + "display": "input", + "hidden": true, + "label": "ControlNet", + "type": "diffusers_auto_model" + }, + "device": { + "label": "Device", + "options": { + "cpu": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "cpu", + "schemaVersion": 1, + "value": "cpu" + }, + "cpu:0": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "cpu:0", + "schemaVersion": 1, + "value": "cpu:0" + } + }, + "type": "string", + "value": "cpu:0" + }, + "dtype": { + "label": "dtype", + "options": [ + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "float32", + "schemaVersion": 1, + "value": "float32" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "float16", + "schemaVersion": 1, + "value": "float16" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "bfloat16", + "schemaVersion": 1, + "value": "bfloat16" + } + ], + "value": "bfloat16" + }, + "image_encoder": { + "connectionRole": "image_encoder", + "display": "output", + "hidden": true, + "label": "Image Encoder", + "signal": { + "direction": "output", + "origin": "modiff_pipeline_identity", + "value": "Flux3DistilledModularPipeline" + }, + "type": "diffusers_auto_model" + }, + "inpaint_compatibility": { + "default": "native", + "description": "Technical compatibility selection for the reviewed Qwen Edit inpainting candidate; existing nodes retain native policy.", + "hidden": true, + "label": "Inpaint Compatibility", + "options": [ + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "native", + "schemaVersion": 1, + "value": "native" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "whole_v1", + "schemaVersion": 1, + "value": "whole_v1" + } + ], + "type": "string" + }, + "lora_list": { "display": "input", "label": "Lora", "type": "custom_lora" }, + "model_type": { + "description": "Selects the Modular Diffusers pipeline class. This filters compatible checkpoints and publishes the component contract used by connected nodes; it is not the model checkpoint itself.", + "label": "Pipeline Type", + "onChange": "set_filters", + "options": { + "": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "", + "schemaVersion": 1, + "value": "" + }, + "AnimaModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Anima", + "schemaVersion": 1, + "value": "AnimaModularPipeline" + }, + "Cosmos3DistilledModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Cosmos 3 Distilled", + "schemaVersion": 1, + "value": "Cosmos3DistilledModularPipeline" + }, + "Cosmos3OmniModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Cosmos 3 Nano", + "schemaVersion": 1, + "value": "Cosmos3OmniModularPipeline" + }, + "DummyCustomPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Custom", + "schemaVersion": 1, + "value": "DummyCustomPipeline" + }, + "ErnieImageModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "ERNIE Image Turbo", + "schemaVersion": 1, + "value": "ErnieImageModularPipeline" + }, + "Flux2KleinBaseModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Flux 2 Klein Base", + "schemaVersion": 1, + "value": "Flux2KleinBaseModularPipeline" + }, + "Flux2KleinModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Flux 2 Klein Distilled", + "schemaVersion": 1, + "value": "Flux2KleinModularPipeline" + }, + "Flux2ModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Flux 2", + "schemaVersion": 1, + "value": "Flux2ModularPipeline" + }, + "Flux3DistilledModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "FLUX 3 Image Klein", + "schemaVersion": 1, + "value": "Flux3DistilledModularPipeline" + }, + "Flux3ModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "FLUX 3 Image Klein Base", + "schemaVersion": 1, + "value": "Flux3ModularPipeline" + }, + "FluxKontextModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Flux Kontext", + "schemaVersion": 1, + "value": "FluxKontextModularPipeline" + }, + "FluxModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Flux", + "schemaVersion": 1, + "value": "FluxModularPipeline" + }, + "HeliosModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Helios", + "schemaVersion": 1, + "value": "HeliosModularPipeline" + }, + "HeliosPyramidDistilledModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Helios Pyramid Distilled", + "schemaVersion": 1, + "value": "HeliosPyramidDistilledModularPipeline" + }, + "HeliosPyramidModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Helios Pyramid", + "schemaVersion": 1, + "value": "HeliosPyramidModularPipeline" + }, + "HunyuanVideo15ModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "HunyuanVideo 1.5", + "schemaVersion": 1, + "value": "HunyuanVideo15ModularPipeline" + }, + "Ideogram4ModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Ideogram 4 (Contract only)", + "schemaVersion": 1, + "value": "Ideogram4ModularPipeline" + }, + "Krea2ModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Krea 2 (Contract only)", + "schemaVersion": 1, + "value": "Krea2ModularPipeline" + }, + "Krea2TurboModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Krea 2 Turbo (Contract only)", + "schemaVersion": 1, + "value": "Krea2TurboModularPipeline" + }, + "LTX25ModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "LTX-2.5 (Contract only)", + "schemaVersion": 1, + "value": "LTX25ModularPipeline" + }, + "MiniMaxH3ModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "MiniMax H3", + "schemaVersion": 1, + "value": "MiniMaxH3ModularPipeline" + }, + "MiniMaxMusic3ModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "MiniMax Music 3", + "schemaVersion": 1, + "value": "MiniMaxMusic3ModularPipeline" + }, + "QwenImageEditModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Qwen-Image-Edit", + "schemaVersion": 1, + "value": "QwenImageEditModularPipeline" + }, + "QwenImageEditPlusModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Qwen-Image-Edit-2511", + "schemaVersion": 1, + "value": "QwenImageEditPlusModularPipeline" + }, + "QwenImageLayeredModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Qwen-Image-Layered", + "schemaVersion": 1, + "value": "QwenImageLayeredModularPipeline" + }, + "QwenImageModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Qwen-Image-2512", + "schemaVersion": 1, + "value": "QwenImageModularPipeline" + }, + "StableDiffusion3ModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Stable Diffusion 3 (Contract only)", + "schemaVersion": 1, + "value": "StableDiffusion3ModularPipeline" + }, + "StableDiffusionXLModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Stable Diffusion XL", + "schemaVersion": 1, + "value": "StableDiffusionXLModularPipeline" + }, + "WanAnimate2DistilledModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Wan Animate 2 Distilled", + "schemaVersion": 1, + "value": "WanAnimate2DistilledModularPipeline" + }, + "WanAnimate2ModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Wan Animate 2", + "schemaVersion": 1, + "value": "WanAnimate2ModularPipeline" + }, + "WanImage2VideoModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "WAN2 I2V", + "schemaVersion": 1, + "value": "WanImage2VideoModularPipeline" + }, + "WanModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "WAN2 T2V", + "schemaVersion": 1, + "value": "WanModularPipeline" + }, + "ZImageModularPipeline": { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "Z-Image", + "schemaVersion": 1, + "value": "ZImageModularPipeline" + } + }, + "type": "string", + "value": "Flux3DistilledModularPipeline" + }, + "modiff_pipeline_identity": { + "hidden": true, + "label": "Custom Pipeline Identity", + "type": "object", + "value": null + }, + "offload_mode": { + "default": "model_cpu", + "label": "Offload Mode", + "options": [ + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "auto_cpu", + "schemaVersion": 1, + "value": "auto_cpu" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "none", + "schemaVersion": 1, + "value": "none" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "model_cpu", + "schemaVersion": 1, + "value": "model_cpu" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "group_cpu", + "schemaVersion": 1, + "value": "group_cpu" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "group_disk", + "schemaVersion": 1, + "value": "group_disk" + } + ], + "type": "string", + "value": "model_cpu" + }, + "pipeline_components": { + "connectionRole": "pipeline_components", + "display": "output", + "hidden": false, + "label": "Pipeline Components", + "signal": { + "direction": "output", + "origin": "modiff_pipeline_identity", + "value": "Flux3DistilledModularPipeline" + }, + "type": "diffusers_modular_pipeline_components" + }, + "quant_config": { "display": "input", "label": "Quant Config", "type": "quant_config" }, + "refresh_pipeline_identity_button": { + "display": "ui_button", + "hidden": true, + "label": "Review and Refresh Custom Contract", + "onChange": "refresh_pipeline_identity", + "value": false + }, + "repo_id": { + "display": "modelselect", + "fieldOptions": { + "filter": { "hub": { "className": ["Flux3DistilledModularPipeline"] } }, + "noValidation": true, + "sources": ["hub", "local"] + }, + "label": "Repository ID", + "onChange": "refresh_pipeline_identity", + "type": "string", + "value": { "source": "hub", "value": "black-forest-labs/flux-3-image-klein" } + }, + "reviewed_variant": { + "description": "Select an immutable, reviewed checkpoint for this exact Modular Diffusers pipeline family. Changing it does not replace the workflow graph or reset its parameters.", + "fieldOptions": { "controlTier": "essential" }, + "hidden": true, + "label": "Model", + "options": [ + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "black-forest-labs/flux-3-image-klein", + "schemaVersion": 1, + "value": "black-forest-labs/flux-3-image-klein" + } + ], + "type": "string", + "value": "black-forest-labs/flux-3-image-klein" + }, + "revision": { + "description": "Required exact 40-character commit hash for Hub custom contracts.", + "label": "Revision", + "onChange": "refresh_pipeline_identity", + "type": "string", + "value": "8454017f9ebaada30c998fccd9f67a80c7580f68" + }, + "scheduler": { + "connectionRole": "scheduler", + "display": "output", + "hidden": false, + "label": "Scheduler", + "signal": { + "direction": "output", + "origin": "modiff_pipeline_identity", + "value": "Flux3DistilledModularPipeline" + }, + "type": "diffusers_auto_model" + }, + "text_encoders": { + "connectionRole": "text_encoders", + "display": "output", + "hidden": false, + "label": "Text Encoders", + "signal": { + "direction": "output", + "origin": "modiff_pipeline_identity", + "value": "Flux3DistilledModularPipeline" + }, + "type": "diffusers_auto_models" + }, + "trust_remote_code": { + "description": "Repository code execution is disabled; keep this off for contract preview.", + "label": "Trust Remote Code", + "onChange": "refresh_pipeline_identity", + "type": "boolean", + "value": false + }, + "unet": { "display": "input", "hidden": false, "label": "Denoise Model", "type": "diffusers_auto_model" }, + "unet_out": { + "connectionRole": "denoiser", + "display": "output", + "hidden": false, + "label": "Denoise Model", + "signal": { + "direction": "output", + "origin": "modiff_pipeline_identity", + "value": "Flux3DistilledModularPipeline" + }, + "type": "diffusers_auto_model" + }, + "vae": { "display": "input", "hidden": false, "label": "VAE", "type": "diffusers_auto_model" }, + "vae_out": { + "connectionRole": "vae", + "display": "output", + "hidden": false, + "label": "VAE", + "signal": { + "direction": "output", + "origin": "modiff_pipeline_identity", + "value": "Flux3DistilledModularPipeline" + }, + "type": "diffusers_auto_model" + }, + "vae_slicing": { + "default": null, + "description": "An unset policy preserves the native VAE configuration; templates may bind an explicit boolean.", + "hidden": true, + "label": "VAE Slicing", + "type": "boolean" + }, + "vae_tiling": { + "default": null, + "description": "An unset policy preserves the native VAE configuration; templates may bind an explicit boolean.", + "hidden": true, + "label": "VAE Tiling", + "type": "boolean" + }, + "weight_format": { + "default": "native", + "description": "Select a backend-declared immutable component format. Missing reviewed files must be installed through Model Manager.", + "fieldOptions": { "controlTier": "advanced" }, + "hidden": false, + "label": "Weight Format", + "options": [ + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "native", + "schemaVersion": 1, + "value": "native" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "fp8r", + "schemaVersion": 1, + "value": "fp8r" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "nvfp4", + "schemaVersion": 1, + "value": "nvfp4" + } + ], + "type": "string" + }, + "weight_loading_mode": { + "default": "cpu", + "description": "Load weights on CPU or CUDA before disk offload. CUDA loading needs room for a complete component and is available only for supported models.", + "fieldOptions": { "controlTier": "advanced" }, + "label": "Weight Loading", + "options": [ + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "cpu", + "schemaVersion": 1, + "value": "cpu" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "cuda", + "schemaVersion": 1, + "value": "cuda" + } + ], + "type": "string" + }, + "workflow_id": { + "description": "Exact reviewed component partition selected by a first-party Cluster Node.", + "hidden": true, + "label": "Reviewed Workflow", + "type": "string", + "value": "image_conditioned" + } + }, + "resizable": true, + "skipParamsCheck": true, + "style": {}, + "time": [0, 0, 0], + "type": "custom" + }, + "operation": { + "binding": { + "pipelineClass": "Flux3DistilledModularPipeline", + "values": { "model_type": "Flux3DistilledModularPipeline" } + }, + "blockName": null, + "decomposition": "loader", + "nodeKey": "modules.ModularDiffusers.ModelsLoader", + "nodeType": "loader", + "operationId": "diffusion.load_models", + "pipelineClass": "Flux3DistilledModularPipeline", + "ports": [ + { + "direction": "input", + "hidden": false, + "name": "model_type", + "required": false, + "roles": ["value"], + "semanticName": "model_type", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": false, + "name": "repo_id", + "required": false, + "roles": ["value"], + "semanticName": "repo_id", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": true, + "name": "reviewed_variant", + "required": false, + "roles": ["value"], + "semanticName": "reviewed_variant", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": false, + "name": "device", + "required": false, + "roles": ["value"], + "semanticName": "device", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": false, + "name": "attention_backend", + "required": false, + "roles": ["value"], + "semanticName": "attention_backend", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": true, + "name": "vae_slicing", + "required": false, + "roles": ["value"], + "semanticName": "vae_slicing", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["boolean"] + }, + { + "direction": "input", + "hidden": true, + "name": "vae_tiling", + "required": false, + "roles": ["value"], + "semanticName": "vae_tiling", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["boolean"] + }, + { + "direction": "input", + "hidden": true, + "name": "inpaint_compatibility", + "required": false, + "roles": ["value"], + "semanticName": "inpaint_compatibility", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": false, + "name": "trust_remote_code", + "required": false, + "roles": ["value"], + "semanticName": "trust_remote_code", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["boolean"] + }, + { + "direction": "input", + "hidden": false, + "name": "revision", + "required": false, + "roles": ["value"], + "semanticName": "revision", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": true, + "name": "workflow_id", + "required": false, + "roles": ["value"], + "semanticName": "workflow_id", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": true, + "name": "modiff_pipeline_identity", + "required": false, + "roles": ["value"], + "semanticName": "modiff_pipeline_identity", + "semantics": { + "kind": "opaque", + "members": [], + "owner": "none", + "scope": "Flux3DistilledModularPipeline", + "state": null + }, + "types": ["object"] + }, + { + "direction": "input", + "hidden": false, + "name": "auto_offload", + "required": false, + "roles": ["value"], + "semanticName": "auto_offload", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["boolean"] + }, + { + "direction": "input", + "hidden": false, + "name": "offload_mode", + "required": false, + "roles": ["value"], + "semanticName": "offload_mode", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": false, + "name": "weight_loading_mode", + "required": false, + "roles": ["value"], + "semanticName": "weight_loading_mode", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": true, + "name": "weight_format", + "required": false, + "roles": ["value"], + "semanticName": "weight_format", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": false, + "name": "unet", + "required": false, + "roles": ["component"], + "semanticName": "unet", + "semantics": { + "kind": "component", + "members": [ + { + "name": "transformer", + "type": "diffusers.models.transformers.transformer_flux3.Flux3Transformer2DModel" + } + ], + "owner": "same_loader", + "scope": "Flux3DistilledModularPipeline", + "state": null + }, + "types": ["diffusers_auto_model"] + }, + { + "direction": "input", + "hidden": false, + "name": "vae", + "required": false, + "roles": ["component"], + "semanticName": "vae", + "semantics": { + "kind": "component", + "members": [ + { "name": "vae", "type": "diffusers.models.autoencoders.autoencoder_kl_flux2.AutoencoderKLFlux2" } + ], + "owner": "same_loader", + "scope": "Flux3DistilledModularPipeline", + "state": null + }, + "types": ["diffusers_auto_model"] + }, + { + "direction": "input", + "hidden": true, + "name": "controlnet", + "required": false, + "roles": ["component"], + "semanticName": "controlnet", + "semantics": { + "kind": "component", + "members": [], + "owner": "same_loader", + "scope": "Flux3DistilledModularPipeline", + "state": null + }, + "types": ["diffusers_auto_model"] + }, + { + "direction": "input", + "hidden": false, + "name": "lora_list", + "required": false, + "roles": ["value"], + "semanticName": "lora_list", + "semantics": { + "kind": "opaque", + "members": [], + "owner": "none", + "scope": "Flux3DistilledModularPipeline", + "state": null + }, + "types": ["custom_lora"] + }, + { + "direction": "output", + "hidden": false, + "name": "text_encoders", + "required": false, + "roles": ["component"], + "semanticName": "text_encoders", + "semantics": { + "kind": "component", + "members": [ + { + "name": "text_encoder", + "type": "transformers.models.qwen3_vl.modeling_qwen3_vl.Qwen3VLForConditionalGeneration" + }, + { "name": "tokenizer", "type": "transformers.models.auto.processing_auto.AutoProcessor" } + ], + "owner": "same_loader", + "scope": "Flux3DistilledModularPipeline", + "state": null + }, + "types": ["diffusers_auto_models"] + }, + { + "direction": "output", + "hidden": false, + "name": "unet_out", + "required": false, + "roles": ["component"], + "semanticName": "unet_out", + "semantics": { + "kind": "component", + "members": [ + { + "name": "transformer", + "type": "diffusers.models.transformers.transformer_flux3.Flux3Transformer2DModel" + } + ], + "owner": "same_loader", + "scope": "Flux3DistilledModularPipeline", + "state": null + }, + "types": ["diffusers_auto_model"] + }, + { + "direction": "output", + "hidden": false, + "name": "vae_out", + "required": false, + "roles": ["component"], + "semanticName": "vae_out", + "semantics": { + "kind": "component", + "members": [ + { "name": "vae", "type": "diffusers.models.autoencoders.autoencoder_kl_flux2.AutoencoderKLFlux2" } + ], + "owner": "same_loader", + "scope": "Flux3DistilledModularPipeline", + "state": null + }, + "types": ["diffusers_auto_model"] + }, + { + "direction": "output", + "hidden": false, + "name": "scheduler", + "required": false, + "roles": ["component"], + "semanticName": "scheduler", + "semantics": { + "kind": "component", + "members": [ + { + "name": "scheduler", + "type": "diffusers.schedulers.scheduling_flow_match_euler_discrete.FlowMatchEulerDiscreteScheduler" + } + ], + "owner": "same_loader", + "scope": "Flux3DistilledModularPipeline", + "state": null + }, + "types": ["diffusers_auto_model"] + }, + { + "direction": "output", + "hidden": true, + "name": "image_encoder", + "required": false, + "roles": ["component"], + "semanticName": "image_encoder", + "semantics": { + "kind": "component", + "members": [], + "owner": "same_loader", + "scope": "Flux3DistilledModularPipeline", + "state": null + }, + "types": ["diffusers_auto_model"] + }, + { + "direction": "output", + "hidden": false, + "name": "pipeline_components", + "required": false, + "roles": ["component"], + "semanticName": "pipeline_components", + "semantics": { + "kind": "component", + "members": [ + { + "name": "image_processor", + "type": "diffusers.modular_pipelines.flux3.image_processor.Flux3ImageProcessor" + }, + { + "name": "scheduler", + "type": "diffusers.schedulers.scheduling_flow_match_euler_discrete.FlowMatchEulerDiscreteScheduler" + }, + { + "name": "text_encoder", + "type": "transformers.models.qwen3_vl.modeling_qwen3_vl.Qwen3VLForConditionalGeneration" + }, + { "name": "tokenizer", "type": "transformers.models.auto.processing_auto.AutoProcessor" }, + { + "name": "transformer", + "type": "diffusers.models.transformers.transformer_flux3.Flux3Transformer2DModel" + }, + { "name": "vae", "type": "diffusers.models.autoencoders.autoencoder_kl_flux2.AutoencoderKLFlux2" } + ], + "owner": "same_loader", + "scope": "Flux3DistilledModularPipeline", + "state": null + }, + "types": ["diffusers_modular_pipeline_components"] + }, + { + "direction": "input", + "hidden": false, + "name": "quant_config", + "required": false, + "roles": ["value"], + "semanticName": "quant_config", + "semantics": { + "kind": "opaque", + "members": [], + "owner": "none", + "scope": "Flux3DistilledModularPipeline", + "state": null + }, + "types": ["quant_config"] + } + ], + "support": "declared", + "task": "edit_image", + "workflowId": "image_conditioned" + } + }, + { + "node": { + "action": "EncodePrompt", + "cache": false, + "category": "embedding", + "description": "", + "label": "Encode Prompt", + "memory": [0, 0, 0], + "module": "modules.ModularDiffusers", + "params": { + "doc": { "display": "output", "label": "Doc", "type": "string" }, + "embeddings": { "display": "output", "label": "Text Embeddings", "type": "embeddings" }, + "guider": { + "description": "Shared Diffusers guidance used by prompt encoding and denoising when the selected pipeline supports it.", + "display": "input", + "hidden": true, + "label": "Guider", + "type": "custom_guider" + }, + "layout_conditioning": { + "default": null, + "display": "layout", + "fieldOptions": { + "layoutConditioning": { + "schemaVersion": 2, + "sourceRegions": false, + "supportsBoundSourceRegions": true + } + }, + "label": "Layout Conditioning", + "type": "layout_conditioning" + }, + "layout_reference_summary": { + "description": "Display-only ordered reference identities and actual preprocessing sizes from the current encoder cache.", + "display": "output", + "hidden": true, + "label": "Bound Reference Summary", + "type": "string" + }, + "max_sequence_length": { + "default": 8192, + "label": "Maximum Sequence Length", + "max": 8192, + "min": 1, + "step": 1, + "type": "int" + }, + "prompt": { + "default": "", + "display": "textarea", + "fieldOptions": { "exampleAttribution": "MoDiff task example" }, + "label": "Prompt *", + "type": "string", + "value": "Change the background to a sunlit garden. Keep the main subject, its pose and its appearance unchanged." + }, + "prompt_input": { + "description": "Optional connected prompt. When connected, this replaces the inline Prompt value.", + "display": "input", + "label": "Prompt Input", + "type": "string" + }, + "reference_binding": { + "default": null, + "display": "input", + "fieldOptions": { "referenceBinding": { "maxReferences": 10, "schemaVersion": 1 } }, + "label": "Reference Binding", + "type": "reference_conditioning" + }, + "text_encoder_out_layers": { + "default": [4, 8, 12, 16, 20, 24, 28, 32], + "display": "select", + "fieldOptions": { "multiple": true, "tupleLength": 8, "tupleValue": true }, + "label": "Text Encoder Layers", + "options": [ + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "0", + "schemaVersion": 1, + "value": "0" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "1", + "schemaVersion": 1, + "value": "1" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "2", + "schemaVersion": 1, + "value": "2" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "3", + "schemaVersion": 1, + "value": "3" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "4", + "schemaVersion": 1, + "value": "4" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "5", + "schemaVersion": 1, + "value": "5" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "6", + "schemaVersion": 1, + "value": "6" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "7", + "schemaVersion": 1, + "value": "7" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "8", + "schemaVersion": 1, + "value": "8" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "9", + "schemaVersion": 1, + "value": "9" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "10", + "schemaVersion": 1, + "value": "10" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "11", + "schemaVersion": 1, + "value": "11" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "12", + "schemaVersion": 1, + "value": "12" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "13", + "schemaVersion": 1, + "value": "13" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "14", + "schemaVersion": 1, + "value": "14" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "15", + "schemaVersion": 1, + "value": "15" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "16", + "schemaVersion": 1, + "value": "16" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "17", + "schemaVersion": 1, + "value": "17" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "18", + "schemaVersion": 1, + "value": "18" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "19", + "schemaVersion": 1, + "value": "19" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "20", + "schemaVersion": 1, + "value": "20" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "21", + "schemaVersion": 1, + "value": "21" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "22", + "schemaVersion": 1, + "value": "22" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "23", + "schemaVersion": 1, + "value": "23" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "24", + "schemaVersion": 1, + "value": "24" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "25", + "schemaVersion": 1, + "value": "25" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "26", + "schemaVersion": 1, + "value": "26" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "27", + "schemaVersion": 1, + "value": "27" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "28", + "schemaVersion": 1, + "value": "28" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "29", + "schemaVersion": 1, + "value": "29" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "30", + "schemaVersion": 1, + "value": "30" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "31", + "schemaVersion": 1, + "value": "31" + }, + { + "availability": "installed", + "compatibility": "compatible", + "installationState": "installed", + "label": "32", + "schemaVersion": 1, + "value": "32" + } + ], + "type": "int" + }, + "text_encoders": { + "display": "input", + "label": "Text Encoders *", + "onSignal": "update_node", + "required": true, + "signalCompatibility": { "role": "text_encoders" }, + "type": "diffusers_auto_models" + } + }, + "resizable": true, + "skipParamsCheck": true, + "style": {}, + "time": [0, 0, 0], + "type": "custom" + }, + "operation": { + "binding": { "pipelineClass": "Flux3DistilledModularPipeline", "values": {} }, + "blockName": "text_encoder", + "decomposition": "block", + "nodeKey": "modules.ModularDiffusers.EncodePrompt", + "nodeType": "text_encoder", + "operationId": "diffusion.encode_prompt", + "pipelineClass": "Flux3DistilledModularPipeline", + "ports": [ + { + "direction": "input", + "hidden": false, + "name": "prompt", + "required": true, + "roles": ["value"], + "semanticName": "prompt", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": false, + "name": "max_sequence_length", + "required": false, + "roles": ["value"], + "semanticName": "max_sequence_length", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["int"] + }, + { + "direction": "input", + "hidden": false, + "name": "text_encoder_out_layers", + "required": false, + "roles": ["value"], + "semanticName": "text_encoder_out_layers", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["int"] + }, + { + "direction": "input", + "hidden": false, + "name": "text_encoders", + "required": true, + "roles": ["component"], + "semanticName": "text_encoders", + "semantics": { + "kind": "component", + "members": [ + { + "name": "text_encoder", + "type": "transformers.models.qwen3_vl.modeling_qwen3_vl.Qwen3VLForConditionalGeneration" + }, + { "name": "tokenizer", "type": "transformers.models.auto.processing_auto.AutoProcessor" } + ], + "owner": "same_loader", + "scope": "Flux3DistilledModularPipeline", + "state": null + }, + "types": ["diffusers_auto_models"] + }, + { + "direction": "output", + "hidden": false, + "name": "embeddings", + "required": false, + "roles": ["value"], + "semanticName": "embeddings", + "semantics": { + "kind": "conditioning", + "members": [], + "owner": "same_loader", + "scope": "Flux3DistilledModularPipeline", + "state": null + }, + "types": ["embeddings"] + }, + { + "direction": "output", + "hidden": false, + "name": "doc", + "required": false, + "roles": ["value"], + "semanticName": "doc", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": false, + "name": "layout_conditioning", + "required": false, + "roles": ["value"], + "semanticName": "layout_conditioning", + "semantics": { + "kind": "opaque", + "members": [], + "owner": "none", + "scope": "Flux3DistilledModularPipeline", + "state": null + }, + "types": ["layout_conditioning"] + }, + { + "direction": "input", + "hidden": false, + "name": "reference_binding", + "required": false, + "roles": ["value"], + "semanticName": "reference_binding", + "semantics": { + "kind": "opaque", + "members": [], + "owner": "none", + "scope": "Flux3DistilledModularPipeline", + "state": null + }, + "types": ["reference_conditioning"] + }, + { + "direction": "input", + "hidden": false, + "name": "prompt_input", + "required": false, + "roles": ["value"], + "semanticName": "prompt", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + } + ], + "support": "declared", + "task": "edit_image", + "workflowId": "image_conditioned" + } + }, + { + "node": { + "action": "ImageEncode", + "cache": false, + "category": "sampler", + "description": "", + "label": "Encode Image", + "memory": [0, 0, 0], + "module": "modules.ModularDiffusers", + "params": { + "doc": { "display": "output", "label": "Doc", "type": "string" }, + "encode_summary": { + "dataSource": "encode_summary_data", + "display": "ui_text", + "hidden": true, + "label": "Encode summary", + "type": "text" + }, + "encode_summary_data": { "display": "output", "hidden": true, "label": "Encode summary", "type": "str" }, + "image": { "display": "input", "label": "Image *", "type": "image" }, + "image_cond_latents": { "display": "output", "label": "Reference Latents", "type": "latents" }, + "layout_reference_summary": { + "description": "Display-only ordered reference identities and actual preprocessing sizes from this image encoding cache.", + "display": "output", + "hidden": true, + "label": "Bound Reference Summary", + "type": "string" + }, + "reference_binding": { + "display": "output", + "fieldOptions": { "referenceBinding": { "maxReferences": 10, "schemaVersion": 1 } }, + "label": "Reference Binding", + "type": "reference_conditioning" + }, + "vae": { + "display": "input", + "label": "VAE *", + "onSignal": "update_node", + "signalCompatibility": { "role": "vae" }, + "type": "diffusers_auto_model" + } + }, + "resizable": true, + "skipParamsCheck": true, + "style": {}, + "time": [0, 0, 0], + "type": "custom" + }, + "operation": { + "binding": { "pipelineClass": "Flux3DistilledModularPipeline", "values": {} }, + "blockName": "vae_encoder", + "decomposition": "block", + "nodeKey": "modules.ModularDiffusers.ImageEncode", + "nodeType": "vae_encoder", + "operationId": "diffusion.encode_image", + "pipelineClass": "Flux3DistilledModularPipeline", + "ports": [ + { + "direction": "input", + "hidden": false, + "name": "image", + "required": true, + "roles": ["value"], + "semanticName": "image", + "semantics": { "kind": "media", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["image"] + }, + { + "direction": "input", + "hidden": false, + "name": "vae", + "required": true, + "roles": ["component"], + "semanticName": "vae", + "semantics": { + "kind": "component", + "members": [ + { "name": "vae", "type": "diffusers.models.autoencoders.autoencoder_kl_flux2.AutoencoderKLFlux2" } + ], + "owner": "same_loader", + "scope": "Flux3DistilledModularPipeline", + "state": null + }, + "types": ["diffusers_auto_model"] + }, + { + "direction": "output", + "hidden": false, + "name": "image_cond_latents", + "required": false, + "roles": ["value"], + "semanticName": "image_cond_latents", + "semantics": { + "kind": "latents", + "members": [], + "owner": "same_loader", + "scope": "Flux3DistilledModularPipeline", + "state": null + }, + "types": ["latents"] + }, + { + "direction": "output", + "hidden": false, + "name": "reference_binding", + "required": false, + "roles": ["value"], + "semanticName": "reference_binding", + "semantics": { + "kind": "opaque", + "members": [], + "owner": "none", + "scope": "Flux3DistilledModularPipeline", + "state": null + }, + "types": ["reference_conditioning"] + }, + { + "direction": "output", + "hidden": false, + "name": "doc", + "required": false, + "roles": ["value"], + "semanticName": "doc", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + } + ], + "support": "declared", + "task": "edit_image", + "workflowId": "image_conditioned" + } + }, + { + "node": { + "action": "Denoise", + "cache": false, + "category": "sampler", + "description": "", + "label": "Denoise", + "memory": [0, 0, 0], + "module": "modules.ModularDiffusers", + "params": { + "doc": { "display": "output", "label": "Doc", "type": "string" }, + "embeddings": { "display": "input", "label": "Text Embeddings *", "type": "embeddings" }, + "height": { "default": 1024, "label": "Height", "min": 64, "step": 16, "type": "int", "value": 1024 }, + "image_cond_latents": { "display": "input", "label": "Reference Latents", "type": "latents" }, + "latents": { "display": "output", "label": "Latents", "type": "latents" }, + "num_images_per_prompt": { + "default": 1, + "label": "Images Per Prompt", + "max": 8, + "min": 1, + "step": 1, + "type": "int" + }, + "num_inference_steps": { + "default": 16, + "display": "slider", + "label": "Steps", + "max": 100, + "min": 1, + "type": "int", + "value": 16 + }, + "reference_binding": { + "default": null, + "display": "input", + "fieldOptions": { "referenceBinding": { "maxReferences": 10, "schemaVersion": 1 } }, + "label": "Reference Binding", + "type": "reference_conditioning" + }, + "scheduler": { + "display": "input", + "label": "Scheduler *", + "signalCompatibility": { "role": "scheduler" }, + "type": "diffusers_auto_model" + }, + "seed": { + "default": 0, + "display": "random", + "label": "Seed", + "max": 4294967295, + "min": 0, + "type": "int" + }, + "unet": { + "display": "input", + "label": "Denoise Model *", + "onSignal": [ + "update_node", + { "action": "signal", "target": "guider" }, + { "action": "signal", "target": "controlnet_bundle" } + ], + "required": true, + "signalCompatibility": { "role": "denoiser" }, + "type": "diffusers_auto_model" + }, + "width": { "default": 1024, "label": "Width", "min": 64, "step": 16, "type": "int", "value": 1024 } + }, + "resizable": true, + "skipParamsCheck": true, + "style": {}, + "time": [0, 0, 0], + "type": "custom" + }, + "operation": { + "binding": { "pipelineClass": "Flux3DistilledModularPipeline", "values": {} }, + "blockName": "denoise", + "decomposition": "block", + "nodeKey": "modules.ModularDiffusers.Denoise", + "nodeType": "denoise", + "operationId": "diffusion.denoise", + "pipelineClass": "Flux3DistilledModularPipeline", + "ports": [ + { + "direction": "input", + "hidden": false, + "name": "embeddings", + "required": true, + "roles": ["value"], + "semanticName": "embeddings", + "semantics": { + "kind": "conditioning", + "members": [], + "owner": "same_loader", + "scope": "Flux3DistilledModularPipeline", + "state": null + }, + "types": ["embeddings"] + }, + { + "direction": "input", + "hidden": false, + "name": "width", + "required": false, + "roles": ["value"], + "semanticName": "width", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["int"] + }, + { + "direction": "input", + "hidden": false, + "name": "height", + "required": false, + "roles": ["value"], + "semanticName": "height", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["int"] + }, + { + "direction": "input", + "hidden": false, + "name": "seed", + "required": false, + "roles": ["value"], + "semanticName": "seed", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["int"] + }, + { + "direction": "input", + "hidden": false, + "name": "num_inference_steps", + "required": false, + "roles": ["value"], + "semanticName": "num_inference_steps", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["int"] + }, + { + "direction": "input", + "hidden": false, + "name": "num_images_per_prompt", + "required": false, + "roles": ["value"], + "semanticName": "num_images_per_prompt", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["int"] + }, + { + "direction": "input", + "hidden": false, + "name": "image_cond_latents", + "required": false, + "roles": ["value"], + "semanticName": "image_cond_latents", + "semantics": { + "kind": "latents", + "members": [], + "owner": "same_loader", + "scope": "Flux3DistilledModularPipeline", + "state": null + }, + "types": ["latents"] + }, + { + "direction": "input", + "hidden": false, + "name": "unet", + "required": true, + "roles": ["component"], + "semanticName": "unet", + "semantics": { + "kind": "component", + "members": [ + { + "name": "transformer", + "type": "diffusers.models.transformers.transformer_flux3.Flux3Transformer2DModel" + } + ], + "owner": "same_loader", + "scope": "Flux3DistilledModularPipeline", + "state": null + }, + "types": ["diffusers_auto_model"] + }, + { + "direction": "input", + "hidden": false, + "name": "scheduler", + "required": true, + "roles": ["component"], + "semanticName": "scheduler", + "semantics": { + "kind": "component", + "members": [ + { + "name": "scheduler", + "type": "diffusers.schedulers.scheduling_flow_match_euler_discrete.FlowMatchEulerDiscreteScheduler" + } + ], + "owner": "same_loader", + "scope": "Flux3DistilledModularPipeline", + "state": null + }, + "types": ["diffusers_auto_model"] + }, + { + "direction": "output", + "hidden": false, + "name": "latents", + "required": false, + "roles": ["value"], + "semanticName": "latents", + "semantics": { + "kind": "latents", + "members": [], + "owner": "same_loader", + "scope": "Flux3DistilledModularPipeline", + "state": null + }, + "types": ["latents"] + }, + { + "direction": "output", + "hidden": false, + "name": "doc", + "required": false, + "roles": ["value"], + "semanticName": "doc", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + }, + { + "direction": "input", + "hidden": false, + "name": "reference_binding", + "required": false, + "roles": ["value"], + "semanticName": "reference_binding", + "semantics": { + "kind": "opaque", + "members": [], + "owner": "none", + "scope": "Flux3DistilledModularPipeline", + "state": null + }, + "types": ["reference_conditioning"] + } + ], + "support": "declared", + "task": "edit_image", + "workflowId": "image_conditioned" + } + }, + { + "node": { + "action": "DecodeLatents", + "cache": false, + "category": "sampler", + "description": "", + "label": "Decode Latents", + "memory": [0, 0, 0], + "module": "modules.ModularDiffusers", + "params": { + "doc": { "display": "output", "label": "Doc", "type": "string" }, + "images": { "display": "output", "label": "Images", "type": "image" }, + "latents": { "display": "input", "label": "Latents *", "type": "latents" }, + "vae": { + "display": "input", + "label": "VAE *", + "onSignal": "update_node", + "signalCompatibility": { "role": "vae" }, + "type": "diffusers_auto_model" + } + }, + "resizable": true, + "skipParamsCheck": true, + "style": {}, + "time": [0, 0, 0], + "type": "custom" + }, + "operation": { + "binding": { "pipelineClass": "Flux3DistilledModularPipeline", "values": {} }, + "blockName": "decode", + "decomposition": "block", + "nodeKey": "modules.ModularDiffusers.DecodeLatents", + "nodeType": "decoder", + "operationId": "diffusion.decode_latents", + "pipelineClass": "Flux3DistilledModularPipeline", + "ports": [ + { + "direction": "input", + "hidden": false, + "name": "latents", + "required": true, + "roles": ["value"], + "semanticName": "latents", + "semantics": { + "kind": "latents", + "members": [], + "owner": "same_loader", + "scope": "Flux3DistilledModularPipeline", + "state": null + }, + "types": ["latents"] + }, + { + "direction": "input", + "hidden": false, + "name": "vae", + "required": true, + "roles": ["component"], + "semanticName": "vae", + "semantics": { + "kind": "component", + "members": [ + { "name": "vae", "type": "diffusers.models.autoencoders.autoencoder_kl_flux2.AutoencoderKLFlux2" } + ], + "owner": "same_loader", + "scope": "Flux3DistilledModularPipeline", + "state": null + }, + "types": ["diffusers_auto_model"] + }, + { + "direction": "output", + "hidden": false, + "name": "images", + "required": false, + "roles": ["value"], + "semanticName": "images", + "semantics": { "kind": "media", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["image"] + }, + { + "direction": "output", + "hidden": false, + "name": "doc", + "required": false, + "roles": ["value"], + "semanticName": "doc", + "semantics": { "kind": "value", "members": [], "owner": "none", "scope": null, "state": null }, + "types": ["string"] + } + ], + "support": "declared", + "task": "edit_image", + "workflowId": "image_conditioned" + } + } + ], + "pipelineClass": "Flux3DistilledModularPipeline", + "requiredInputs": [ + { "field": "image", "operationId": "diffusion.encode_image" }, + { "field": "prompt", "operationId": "diffusion.encode_prompt" } + ], + "schemaVersion": 1, + "sharedInputs": [], + "task": "edit_image", + "upstreamBlocks": ["text_encoder", "vae_encoder", "denoise", "decode"], + "workflowId": "image_conditioned" + } + ] +} From 30e0a693f38bf0d7699364640dab64fcba195e35 Mon Sep 17 00:00:00 2001 From: Sourav Das Date: Mon, 26 Oct 2026 11:02:53 +0530 Subject: [PATCH 062/440] Preserve prompt enhancement migration and Block readiness Expose the declared append precision choice and safely disable exclusively owned retired enhancement bindings. Preserve compatible authored inputs during model changes and resolve Block crossing connections when checking output readiness. Match immutable cache selections exactly, keep planner imports usable without a browser, and account for measured bundle growth. Pin CI to the actual compatible backend commit. --- .github/workflows/ci.yml | 2 +- docs/modiff-client-architecture.md | 22 ++ docs/workflow-authoring-ux.md | 32 +++ package.json | 2 +- scripts/bundle-budget.mjs | 9 + scripts/graph-fixer.test.mjs | 155 +++++++++++ scripts/operation-authoring-headless.test.mjs | 45 +++ scripts/prompt-enhancement-authoring.test.mjs | 90 ++++++ scripts/prompt-enhancement-preview.test.mjs | 261 +++++++++++++++++- .../weight-format-template-binding.test.mjs | 51 ++++ src/components/OperationGraphControls.tsx | 8 +- src/components/OperationModelPicker.tsx | 4 +- src/components/PromptEnhancementControls.tsx | 8 +- src/studio/graphFixer.ts | 56 +++- src/studio/modelCache.ts | 48 +++- src/studio/promptEnhancementAuthoring.ts | 88 +++++- src/studio/promptEnhancementPreview.ts | 24 +- src/workflow/connectEncodingNode.ts | 3 +- src/workflow/encodingNodeConnection.ts | 4 +- src/workflow/operationAuthoring.ts | 124 ++++++++- src/workflow/operationBlockChange.ts | 6 +- src/workflow/operationLegacyBlockChange.ts | 4 +- 22 files changed, 1007 insertions(+), 39 deletions(-) create mode 100644 scripts/operation-authoring-headless.test.mjs diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 8064c7b9..9879cc58 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -33,7 +33,7 @@ jobs: with: repository: sdevil7th/MoDiff # Paired image stages, scoped enhancement and FLUX3 evaluation contracts. - ref: 9ac9879529b0039b011dc283ac190fa02dd9efa5 + ref: bde2d70b2512e425c31c4e95da725214eb3f6b65 path: MoDiff persist-credentials: false - name: Verify the pinned backend supports native setup diff --git a/docs/modiff-client-architecture.md b/docs/modiff-client-architecture.md index 925e1c41..c26d6a71 100644 --- a/docs/modiff-client-architecture.md +++ b/docs/modiff-client-architecture.md @@ -986,6 +986,16 @@ executable. It is never an automatic definition update or silent graph reset. - `/model_capabilities` Studio profile compatibility - `/hf_download` install/repair tasks +The shared model cache-status helper matches exact repository IDs. For an exact +revision/file selection, additive backend `observed_selections` metadata takes +precedence over historical `planned_revision`/`planned_files` download receipts. +A complete selected snapshot can be ready even when an unrelated native receipt +is stale or incomplete; a negative or malformed observation cannot fall back to +that receipt. Older backends and artifact layouts without observations keep the +receipt compatibility path. Observations describe bounded file presence, sizes +and managed-cache containment, not content verification or execution permission. +Studio and ordinary graph requirements consume this same result. + The additive `operationContracts` catalog on `/model_capabilities` describes the existing generic Modular stages and task-scoped standard image/video/audio/3D adapters. `src/workflow/operationContracts.ts` validates versions 1, 2 and 3, @@ -1822,6 +1832,18 @@ history transaction; Regenerate recaptures the original request after an untouched Apply, so appended text does not accumulate. Existing plain and native structured proposal schemas remain strict and retain their own declarations. +Public append has separate FP32 and BF16/NF4 identities. The FP32 default and all +older parent DTOs retain their hashes; selecting the NF4 layout choice binds its +fixed provider controls without changing append composition or layout validation. +When a saved enhancement's current metadata is unavailable, Disable has a local +removal-only path: bounded matching parent/child role maps, the two exact built-in +provider/proposal types, their complete expected edges, and exclusive ownership +must all agree. It preserves the current authored pair instead of restoring an +unverifiable original request. Workflow context/signature guards and one normal +Undo transaction still apply. It neither refreshes execution authority nor +rebinds a profile; the ordinary reviewed model-change planner must select the +current public model before a current enhancement can be enabled. + A source-declared `required_diffusers_provider` binds an execution profile to one of its declared optional overlays and to an explicit required-now runtime requirement. Its specification repeats the exact identity as the hash-covered diff --git a/docs/workflow-authoring-ux.md b/docs/workflow-authoring-ux.md index 1d8510cc..73106f33 100644 --- a/docs/workflow-authoring-ux.md +++ b/docs/workflow-authoring-ux.md @@ -87,6 +87,33 @@ proposal. Apply uses the ordinary Undo transaction. **Regenerate** reuses the original request after an untouched Apply; **Disable** preserves subsequent user edits. Reload requires a fresh verified Preview before applying a proposal. +For an authored layout, **Append wording: BF16 + NF4, preserve authored layout** +is an explicit alternative to the unchanged FP32 append default. Choose it before +Enable. It pins the reviewed PUP model and BF16/NF4 provider controls; it never +falls back to another precision. Both append modes keep the exact original caption +prefix and every authored layout field, adding only reviewed wording. They do not +ask the model to generate a region table. Runtime readiness and memory fit remain +separate checks. + +An older enabled enhancement may refer to a retired execution profile. If its +current declaration cannot be resolved, **Disable** can still remove the two +exclusively owned built-in enhancement nodes after checking their saved ownership +and complete connections. This recovery keeps the current prompt, layout, media +and unrelated graph values, including previously applied wording. It is one +undoable edit and grants no execution permission. Then use **Choose model** to +select the current public version of the same model, review the normal model +change, select the desired current enhancement mode, and **Enable**. Refresh alone +does not migrate an old profile; shared or ambiguous enhancement branches require +explicit connection repair before Disable. + +The same-model change preserves an inline legacy layout when its exact task, +artifact, owner and resolved layout schema remain compatible. Bound source regions +also require the existing ordered reference and preprocessing context to remain +exact; only the explicitly replaced execution-profile selector is excluded from +that comparison. Other changes, including changed context declarations, keep the +old layout in the normal retained-setting review rather than reusing stale source +bindings. Connected layout inputs use the ordinary connection review. + An enhancement declaration may additionally select `preserve-authored-v1` for structured layouts. Preview may enhance the caption and region descriptions only. This capability uses a distinct private version-two authoring recipe. Existing @@ -117,6 +144,11 @@ denoiser grouped around an external encoder can exchange values without creating an execution cycle. Required input checks also inspect these internal nodes; a missing model connection blocks Run and identifies the affected node or Block. +**Fix graph** recognizes output connections through public, mirrored and direct +Block crossing sockets, including collapsed internal nodes. Moving a Resize out +of a Block keeps its existing route to an internal Preview; Fix does not suggest +bypassing it. Missing or invalid crossing connections still receive diagnostics. + When changing a model inside a Block, the change preview may retire untouched, automatically derived outputs that the new route cannot provide and nobody uses. Connected outputs, configured interfaces and preview bindings remain protected. diff --git a/package.json b/package.json index 963ce89e..084d2cb8 100644 --- a/package.json +++ b/package.json @@ -95,7 +95,7 @@ "test:graph-mutations": "node --test scripts/flow-graph-mutations.test.mjs scripts/graph-fixer.test.mjs scripts/process-image-input-requirements.test.mjs scripts/block-seed-repair-v2.test.mjs scripts/block-derived-control-repair-v2.test.mjs scripts/adapter-chain-links.test.mjs", "test:graph-visuals": "node --test scripts/graph-visuals.test.mjs scripts/node-measurement-dispatch.test.mjs scripts/node-connection-search.test.mjs", "test:media-viewer": "node --test scripts/media-viewer.test.mjs scripts/workflow-png-package.test.mjs", - "test:requests": "node --test scripts/controlled-execution-receipt.test.mjs scripts/media-attachment.test.mjs scripts/node-presentation.test.mjs scripts/service-package.test.mjs scripts/node-store-requests.test.mjs scripts/operation-catalog.test.mjs scripts/operation-component-bundle-inputs.test.mjs scripts/operation-component-bundle.test.mjs scripts/operation-authoring.test.mjs scripts/operation-authoring-recipes.test.mjs scripts/image-stage-groups.test.mjs scripts/model-setup-adapter-authority.test.mjs scripts/audio-authoring.test.mjs scripts/operation-modification-matrix.test.mjs scripts/request-boundary.test.mjs scripts/server-actions.test.mjs scripts/shared-store-requests.test.mjs scripts/supervisor-startup.test.mjs scripts/studio-output-requests.test.mjs scripts/resolved-execution-inputs.test.mjs scripts/prompt-enhancement-summary.test.mjs scripts/ancillary-operations.test.mjs scripts/ancillary-execution-scope.test.mjs scripts/prompt-enhancement-authoring.test.mjs scripts/prompt-enhancement-preview.test.mjs scripts/runtime-resources.test.mjs scripts/websocket-connection.test.mjs scripts/backend-proxy-lifecycle.test.mjs", + "test:requests": "node --test scripts/controlled-execution-receipt.test.mjs scripts/media-attachment.test.mjs scripts/node-presentation.test.mjs scripts/service-package.test.mjs scripts/node-store-requests.test.mjs scripts/operation-catalog.test.mjs scripts/operation-component-bundle-inputs.test.mjs scripts/operation-component-bundle.test.mjs scripts/operation-authoring.test.mjs scripts/operation-authoring-headless.test.mjs scripts/operation-authoring-recipes.test.mjs scripts/image-stage-groups.test.mjs scripts/model-setup-adapter-authority.test.mjs scripts/audio-authoring.test.mjs scripts/operation-modification-matrix.test.mjs scripts/request-boundary.test.mjs scripts/server-actions.test.mjs scripts/shared-store-requests.test.mjs scripts/supervisor-startup.test.mjs scripts/studio-output-requests.test.mjs scripts/resolved-execution-inputs.test.mjs scripts/prompt-enhancement-summary.test.mjs scripts/ancillary-operations.test.mjs scripts/ancillary-execution-scope.test.mjs scripts/prompt-enhancement-authoring.test.mjs scripts/prompt-enhancement-preview.test.mjs scripts/runtime-resources.test.mjs scripts/websocket-connection.test.mjs scripts/backend-proxy-lifecycle.test.mjs", "test:run-coordinator": "node --test scripts/run-coordinator.test.mjs scripts/ancillary-run-coordinator.test.mjs scripts/compatibility-panel.test.mjs scripts/run-issue-store.test.mjs scripts/block-runtime-hints-v2.test.mjs scripts/workflow-auto-weight-loading.test.mjs", "test:run-activity": "node --test scripts/run-activity.test.mjs", "test:template-input-preview": "node --test scripts/template-input-preview.test.mjs", diff --git a/scripts/bundle-budget.mjs b/scripts/bundle-budget.mjs index 72f61f23..62c05314 100644 --- a/scripts/bundle-budget.mjs +++ b/scripts/bundle-budget.mjs @@ -1,3 +1,9 @@ +// Exact cache observations, exclusive-owner enhancement removal, same-artifact +// layout preservation and semantic crossing checks measure largest/startup/ +// deferred gzip 488073/666379/326387 versus 487800/666105/324323. +// Add only measured 273/274/2064 bytes, retaining 15/17/39 bytes of headroom. +// Dependencies, minifier, startup graph and validators remain unchanged; +// the independent 65536-byte deferred chunk cap also remains fixed. // Explicit artifact-format preservation and ten blocked FP8r planning recipes // measure largest/startup/deferred gzip 487800/666105/324323, versus the accepted // 480984/659291/323388 baseline. Add only the measured 6816/6814/935 aggregate @@ -198,6 +204,7 @@ const SOURCE_LICENSES = new URL('../public/THIRD_PARTY_LICENSES.txt', import.met // Retain the strict current-owner/parser checks and allow 128 startup/chunk // bytes only; dependencies, lazy boundaries, minifier and deferred caps stay fixed. const MAX_STARTUP_CHUNK_GZIP_BYTES = + 273 + 6816 + 1769 + 450 * 1024 + @@ -309,6 +316,7 @@ const MAX_STARTUP_CHUNK_GZIP_BYTES = // Preserve the separately measured 64-byte shared loading-policy allowance above. // Preserve the measured 384-byte selected-image authoring allowance above. const MAX_STARTUP_GZIP_BYTES = + 274 + 6814 + 1768 + 624 * 1024 + @@ -504,6 +512,7 @@ const MAX_DEFERRED_CHUNK_GZIP_BYTES = 64 * 1024; // 321033-byte cap, preserving 39 bytes of headroom at 321227. Startup caps, the // 65536-byte deferred chunk cap, dependencies and loading boundaries stay fixed. const MAX_DEFERRED_GZIP_BYTES = + 2064 + 935 + 103 + 2097 + diff --git a/scripts/graph-fixer.test.mjs b/scripts/graph-fixer.test.mjs index ed65495b..284e47e9 100644 --- a/scripts/graph-fixer.test.mjs +++ b/scripts/graph-fixer.test.mjs @@ -294,6 +294,161 @@ test('Fix recognizes an internal connected output in collapsed, expanded and sav } }); +function splitImageBlock(expanded, boundary = false, nested = false) { + const source = definition('modules.Image', 'Load', 'Load Image', { + image: { display: 'output', type: 'image' }, + }); + const resize = node( + 'resize', + definition('modules.Image', 'Resize', 'Resize', { + image: { display: 'input', type: 'image', required: true }, + output: { display: 'output', type: 'image' }, + width: { type: 'int', value: 256 }, + height: { type: 'int', value: 256 }, + }), + ); + const base = structuredClone(blockV2Node().data.blockInstanceV2.definitionSnapshot); + const semantic = { + nodes: [ + { nodeId: 'load', nodeType: 'custom', data: source }, + { nodeId: 'preview', nodeType: 'custom', data: imagePreview, ...(nested ? { parentNodeId: 'inside' } : {}) }, + ...(boundary === 'mirror' ? [{ nodeId: 'second-preview', nodeType: 'custom', data: imagePreview }] : []), + ...(nested + ? [{ nodeId: 'inside', nodeType: 'group', data: { type: 'group', label: 'Inside', params: {} } }] + : []), + ], + edges: [], + executionOrder: ['load', 'preview', ...(boundary === 'mirror' ? ['second-preview'] : [])], + }; + base.graph = { ...semantic, graphHash: blockSchema.blockGraphHashV2(semantic) }; + base.boundary = { + mode: 'explicit', + inputs: boundary + ? [ + { + portId: 'result', + label: 'Result', + valueType: 'image', + required: true, + binding: { nodeId: 'preview', fieldOrPortId: 'image' }, + ...(boundary === 'mirror' + ? { mirrorBindings: [{ nodeId: 'second-preview', fieldOrPortId: 'image' }] } + : {}), + }, + ] + : [], + outputs: [ + { + portId: 'loaded', + label: 'Loaded image', + valueType: 'image', + required: false, + binding: { nodeId: 'load', fieldOrPortId: 'image' }, + }, + ], + }; + base.previews = []; + base.contentHash = blockSchema.blockDefinitionContentHashV2(base); + let instance = blockSchema.createBlockInstanceV2(base, { + instanceId: 'split-image', + position: { x: 0, y: 0 }, + size: { width: 360, height: 420 }, + }); + instance = blockRuntime.setBlockPresentationV2(instance, { + expanded, + collapsedContainerNodeIds: nested === 'collapsed' ? ['inside'] : [], + }); + const projection = blockRuntime.materializeBlockProjectionV2(blockRuntime.createBlockRootNodeV2(instance)); + return { + nodes: [...projection.nodes, resize], + edges: [ + ...projection.edges, + edge('to-resize', instance.instanceId, 'loaded', resize.id, 'image'), + edge( + 'to-preview', + resize.id, + 'output', + instance.instanceId, + boundary ? 'result' : 'block-crossing:input:preview:image', + ), + ], + registry: { 'modules.Image.Preview': imagePreview }, + }; +} + +test('Fix preserves the Load to outside Resize to inside Preview crossing route', () => { + for (const expanded of [true, false]) { + const context = JSON.parse(JSON.stringify(splitImageBlock(expanded))); + const before = structuredClone(context); + const plan = graphFixer.buildGraphFixPlan(context); + assert.equal( + plan.issues.some(({ kind }) => kind === 'missing_output' || kind === 'missing_input'), + false, + `The saved crossing route is already connected; expanded=${expanded}.`, + ); + assert.equal(plan.candidateCount, 0, 'Do not suggest bypassing the external Resize.'); + assert.deepEqual(context, before); + } +}); + +test('Fix resolves public, mirrored and nested output input bindings without changing saved graphs', () => { + for (const expanded of [false, true]) + for (const boundary of [false, true, 'mirror']) + for (const nested of [false, 'expanded', 'collapsed']) { + const context = JSON.parse(JSON.stringify(splitImageBlock(expanded, boundary, nested))); + const before = structuredClone(context); + const plan = graphFixer.buildGraphFixPlan(context); + assert.deepEqual(plan.issues, [], `expanded=${expanded}, boundary=${boundary}, nested=${nested}`); + assert.deepEqual(context, before); + } +}); + +test('Fix does not infer output connectivity from missing, invalid or unrelated Block crossings', () => { + for (const fault of [ + 'disconnected', + 'missing-source', + 'unknown-leaf', + 'unknown-field', + 'wrong-direction', + 'malformed-handle', + 'wrong-source-direction', + 'wrong-type', + 'disabled-source', + 'unrelated-block', + ]) { + const context = splitImageBlock(true); + const crossing = context.edges.find(({ id }) => id === 'to-preview'); + if (fault === 'disconnected') context.edges = context.edges.filter((item) => item !== crossing); + if (fault === 'missing-source') crossing.source = 'absent'; + if (fault === 'unknown-leaf') crossing.targetHandle = 'block-crossing:input:absent:image'; + if (fault === 'unknown-field') crossing.targetHandle = 'block-crossing:input:preview:absent'; + if (fault === 'wrong-direction') crossing.targetHandle = 'block-crossing:output:preview:image'; + if (fault === 'malformed-handle') crossing.targetHandle = 'block-crossing:input:%:image'; + if (fault === 'wrong-source-direction') crossing.sourceHandle = 'image'; + if (fault === 'wrong-type') context.nodes.find(({ id }) => id === 'resize').data.params.output.type = 'string'; + if (fault === 'disabled-source') context.nodes.find(({ id }) => id === 'resize').data.uiState = { disabled: true }; + if (fault === 'unrelated-block') { + const unrelated = blockV2Node('unrelated'); + context.nodes.push(unrelated); + crossing.target = unrelated.id; + crossing.targetHandle = 'reference'; + } + const before = structuredClone(context); + const plan = graphFixer.buildGraphFixPlan(context); + assert.equal( + plan.issues.some(({ kind }) => kind === 'missing_output'), + true, + fault, + ); + if (!['disconnected', 'disabled-source', 'unrelated-block'].includes(fault)) + assert.ok( + plan.issues.some(({ kind }) => kind === 'broken_link' || kind === 'type_mismatch'), + fault, + ); + assert.deepEqual(context, before); + } +}); + test('required inputs with explicit values or defaults do not receive spurious connection repairs', () => { const text = definition('modules.Test', 'Text', 'Text', { text: { display: 'output', type: 'string' } }); const target = definition('modules.Test', 'Generate', 'Generate', { diff --git a/scripts/operation-authoring-headless.test.mjs b/scripts/operation-authoring-headless.test.mjs new file mode 100644 index 00000000..4a783016 --- /dev/null +++ b/scripts/operation-authoring-headless.test.mjs @@ -0,0 +1,45 @@ +import assert from 'node:assert/strict'; +import { test } from 'node:test'; +import { mkdtempSync, realpathSync, rmSync } from 'node:fs'; +import { tmpdir } from 'node:os'; +import path from 'node:path'; +import { fileURLToPath } from 'node:url'; +import { createServer } from 'vite'; + +const root = path.resolve(path.dirname(fileURLToPath(import.meta.url)), '..'); + +test('operation planners import without window or localStorage', async () => { + assert.equal(typeof globalThis.window, 'undefined'); + assert.equal(typeof globalThis.localStorage, 'undefined'); + const tempRoot = realpathSync(tmpdir()); + const cacheDir = mkdtempSync(path.join(tempRoot, 'modiff-operation-headless-')); + let server; + try { + server = await createServer({ + root, + configFile: false, + cacheDir, + logLevel: 'silent', + optimizeDeps: { entries: [], noDiscovery: true }, + server: { middlewareMode: true, watch: null }, + appType: 'custom', + }); + for (const [module, name] of [ + ['/src/workflow/operationAuthoring.ts', 'planOperationChange'], + ['/src/workflow/operationBlockChange.ts', 'planBlockOperationChange'], + ['/src/workflow/encodingNodeConnection.ts', 'planEncodingConnection'], + ['/src/workflow/mediaAttachment.ts', 'planMediaAttachment'], + ]) { + const loaded = await server.ssrLoadModule(module); + assert.equal(typeof loaded[name], 'function'); + } + assert.equal(typeof globalThis.window, 'undefined'); + assert.equal(typeof globalThis.localStorage, 'undefined'); + } finally { + await server?.close(); + const resolvedCacheDir = realpathSync(cacheDir); + assert.equal(path.dirname(resolvedCacheDir), tempRoot, 'Cleanup must remain inside the temporary directory.'); + assert.ok(path.basename(resolvedCacheDir).startsWith('modiff-operation-headless-')); + rmSync(resolvedCacheDir, { recursive: true, force: true }); + } +}); diff --git a/scripts/prompt-enhancement-authoring.test.mjs b/scripts/prompt-enhancement-authoring.test.mjs index de26cedc..39d9a4d4 100644 --- a/scripts/prompt-enhancement-authoring.test.mjs +++ b/scripts/prompt-enhancement-authoring.test.mjs @@ -94,6 +94,96 @@ test('absent metadata preserves legacy graph bytes and adds no feature', () => { assert.deepEqual(graph, { nodes: [], edges: [] }); }); +test('unavailable enhancement removal preserves applied and later authored pairs, references and unrelated topology', async () => { + for (const index of [0, 1]) { + const { graph, parent, child, owner, registry } = setup(index); + const enabled = await authoring.planEnablePromptEnhancement(graph, owner.id, parent, child.id, registry); + const current = enabled.nodes.find((node) => node.id === owner.id); + const layout = { + schemaVersion: 2, + coordinateSpace: 'normalized_xyxy', + regions: [{ id: 'subject', description: 'Retain exactly.', action: 'place', targetBox: [0.2, 0.2, 0.8, 0.8] }], + }; + current.data.params.prompt.value = 'Keep this applied caption.\n'; + current.data.params.layout_conditioning.value = layout; + current.data.operationAuthoring.ancillaryParent.appliedPairSha256 = await authoring.promptEnhancementPairHash({ + prompt: current.data.params.prompt.value, + layout, + }); + const before = structuredClone(enabled); + const binding = current.data.operationAuthoring.ancillaryBindings[0]; + const removed = new Set(Object.values(binding.roleNodes)); + const expected = structuredClone(enabled); + expected.nodes = expected.nodes.filter((node) => !removed.has(node.id)); + expected.edges = expected.edges.filter((edge) => !removed.has(edge.source) && !removed.has(edge.target)); + const kept = expected.nodes.find((node) => node.id === owner.id); + delete kept.data.operationAuthoring.ancillaryBindings; + delete kept.data.operationAuthoring.ancillaryParent.appliedPairSha256; + assert.deepEqual(await authoring.planDetachUnavailablePromptEnhancement(enabled, owner.id, child.id), expected); + assert.deepEqual(enabled, before); + } +}); + +test('unavailable enhancement removal refuses ambiguous or shared persisted ownership atomically', async (t) => { + for (const fault of [ + 'wrong-parent', + 'wrong-owner', + 'wrong-leaf', + 'extra-role', + 'shared-claim', + 'shared-parent-claim', + 'extra-edge', + 'missing-edge', + 'duplicate-edge', + 'duplicate-node', + 'duplicate-owner', + ]) { + await t.test(fault, async () => { + const { graph, parent, child, owner, registry } = setup(); + const enabled = await authoring.planEnablePromptEnhancement(graph, owner.id, parent, child.id, registry); + const current = enabled.nodes.find((node) => node.id === owner.id); + const binding = current.data.operationAuthoring.ancillaryBindings[0]; + const provider = enabled.nodes.find((node) => node.id === binding.roleNodes.provider); + const proposal = enabled.nodes.find((node) => node.id === binding.roleNodes.proposal); + const edge = enabled.edges.find((edge) => edge.source === provider.id); + if (fault === 'wrong-parent') binding.parent.authoringRecipeId += ':foreign'; + if (fault === 'wrong-owner') binding.parentRoleNodes.prompt = 'foreign'; + if (fault === 'wrong-leaf') provider.data.action = 'ModelsLoader'; + if (fault === 'extra-role') binding.roleNodes.foreign = 'foreign'; + if (fault === 'shared-claim') { + const other = structuredClone(current); + other.id = 'other-owner'; + enabled.nodes.push(other); + } + if (fault === 'shared-parent-claim') { + const other = structuredClone(current); + other.id = 'other-owner'; + delete other.data.operationAuthoring.ancillaryBindings; + other.data.operationAuthoring.ancillaryParent.parentRoleNodes.prompt = provider.id; + enabled.nodes.push(other); + } + if (fault === 'extra-edge') + enabled.edges.push({ + id: 'foreign-edge', + source: proposal.id, + sourceHandle: 'text', + target: owner.id, + targetHandle: 'prompt', + }); + if (fault === 'missing-edge') enabled.edges = enabled.edges.filter((item) => item.id !== edge.id); + if (fault === 'duplicate-edge') enabled.edges.push({ ...edge, id: 'duplicate-edge' }); + if (fault === 'duplicate-node') enabled.nodes.push(structuredClone(provider)); + if (fault === 'duplicate-owner') enabled.nodes.push(structuredClone(current)); + const before = structuredClone(enabled); + await assert.rejects( + authoring.planDetachUnavailablePromptEnhancement(enabled, owner.id, child.id), + /ancillary|enhancement|duplicate|collision/i, + ); + assert.deepEqual(enabled, before); + }); + } +}); + test('alternative enhancement parent selection preserves authored graph state and refuses structural drift', async (t) => { const { graph, parent, owner } = setup(); const target = structuredClone(parent); diff --git a/scripts/prompt-enhancement-preview.test.mjs b/scripts/prompt-enhancement-preview.test.mjs index 18051cfd..942eb45b 100644 --- a/scripts/prompt-enhancement-preview.test.mjs +++ b/scripts/prompt-enhancement-preview.test.mjs @@ -141,6 +141,246 @@ after(async () => { const parent = fixture.response.authoring, child = parent.ancillaryOperations[0]; + +test('retired enhancement metadata cannot trap normal Disable or alter the authored pair', async () => { + const { ownerId } = await setup(); + await preview.enablePromptEnhancement(ownerId); + editOwnerField(ownerId, 'prompt', 'Keep this later authored caption exactly.'); + editOwnerField(ownerId, 'layout_conditioning', { + schemaVersion: 2, + coordinateSpace: 'normalized_xyxy', + regions: [{ id: 'subject', description: 'Keep this region.', action: 'place', targetBox: [0.2, 0.2, 0.8, 0.8] }], + }); + const before = structuredClone(flow.getState().toObject()); + const originalOwner = structuredClone(activeOwner(ownerId)); + onMetadata = () => { + throw new Error('The execution profile has a current public authoring replacement. Rebind explicitly.'); + }; + await assert.rejects(preview.startPromptEnhancementPreview(ownerId, child.id), /Rebind explicitly/); + assert.equal(submitted, null); + flow.getState().resetHistory(); + await preview.disablePromptEnhancement(ownerId, child.id); + const disabled = activeOwner(ownerId); + assert.deepEqual(disabled.data.params, originalOwner.data.params); + assert.equal(disabled.data.operationAuthoring.ancillaryBindings, undefined); + assert.equal(flow.getState().historyPast.length, 1); + assert.equal(submitted, null); + flow.getState().undo(); + assert.deepEqual(flow.getState().toObject(), before); + flow.getState().redo(); + assert.deepEqual(activeOwner(ownerId).data.params, originalOwner.data.params); + await assert.rejects(preview.enablePromptEnhancement(ownerId), /Rebind explicitly/); + + // A synthetic current declaration exercises the ordinary same-model planner; + // this does not claim current public metadata or native runtime proof. + const fresh = structuredClone(fixture.response); + const profileId = 'synthetic:current-profile'; + fresh.authoring.id = 'synthetic:current-authoring'; + fresh.authoring.executionProfileIds = [profileId]; + const freshChild = fresh.authoring.ancillaryOperations[0]; + freshChild.id = `${fresh.authoring.id}:preview`; + freshChild.parent.authoringRecipeId = fresh.authoring.id; + freshChild.parent.executionProfileId = profileId; + freshChild.layoutPolicy = 'append-details-preserve-layout-v1'; + freshChild.initialValues.find(([role, name]) => role === 'proposal' && name === 'operation')[2] = + 'enhance_prompt_append_details'; + const { hashString, stableStringify } = await server.ssrLoadModule('/src/studio/stableHash.ts'); + const rehash = (item, prefix) => + `${prefix}${hashString(stableStringify(Object.fromEntries(Object.entries(item).filter(([key]) => key !== 'contentHash'))))}`; + freshChild.contentHash = rehash(freshChild, 'studio-ancillary-v1-'); + fresh.authoring.contentHash = rehash(fresh.authoring, 'studio-authoring-v1-'); + onMetadata = (selection) => { + assert.equal(selection.authoringRecipeId, fresh.authoring.id); + assert.equal(selection.executionProfileId, profileId); + return fresh; + }; + const { requestOperationStarter } = await server.ssrLoadModule('/src/workflow/operationStarterRequest.ts'); + const { planOperationChange } = await server.ssrLoadModule('/src/workflow/operationAuthoring.ts'); + const { visualOperationOwnerId } = await server.ssrLoadModule('/src/workflow/visualOperationGroups.ts'); + const { expandFlowExecutionGraph } = await server.ssrLoadModule('/src/stores/useFlowStore.ts'); + const { layoutReferenceContext } = await server.ssrLoadModule('/src/studio/layoutReferenceContext.ts'); + const starter = await requestOperationStarter( + fixture.selection.pipelineClass, + fixture.selection.task, + fixture.operationContracts, + undefined, + profileId, + fresh.authoring.id, + ); + const graph = flow.getState().toObject(); + const root = graph.nodes.find((node) => + node.data.blockInstanceV2?.effectiveGraph.nodes.some((leaf) => leaf.data.studioRole === 'models'), + ); + const leaf = root.data.blockInstanceV2.effectiveGraph.nodes.find((leaf) => leaf.data.studioRole === 'models'); + const plan = planOperationChange(graph, visualOperationOwnerId(graph, leaf.nodeId, root.id), starter, { + replaceModel: true, + }); + const rebound = expandFlowExecutionGraph(plan.graph.nodes, plan.graph.edges).nodes.find( + (node) => node.data.operationAuthoring?.ancillaryParent, + ); + for (const name of ['prompt', 'layout_conditioning', 'max_sequence_length']) + assert.deepEqual( + rebound.data.params[name].value, + originalOwner.data.params[name].value, + `Same-model rebind must keep ${name}.`, + ); + assert.equal(rebound.data.operationAuthoring.ancillaryParent.parent.authoringRecipeId, fresh.authoring.id); + assert.equal(rebound.data.operationAuthoring.ancillaryBindings, undefined); + const { unpackVisualOperationGroups } = await server.ssrLoadModule('/src/workflow/visualOperationGroups.ts'); + for (const fault of [ + 'none', + 'missing-context', + 'missing-resolver', + 'changed-ancestor', + 'different-model', + 'different-task', + 'wired-layout', + ]) { + const boundGraph = unpackVisualOperationGroups(structuredClone(graph)).graph; + const boundOwner = boundGraph.nodes.find((node) => node.data.operationAuthoring?.ancillaryParent); + const model = boundGraph.nodes.find((node) => node.data.studioRole === 'models'); + // Keep all other model fields byte-equivalent to the planned current + // schema, so the positive case changes exactly one profile selector. + model.data.params = structuredClone( + unpackVisualOperationGroups(plan.graph).graph.nodes.find((node) => node.id === model.id).data.params, + ); + for (const field of Object.values(model.data.params)) + if (field.default !== undefined && canonical(field.value ?? field.default) === canonical(field.default)) + delete field.value; + const boundStarter = structuredClone(starter); + const promptRow = boundStarter.nodes.find( + (row) => row.operation.nodeKey === boundOwner.data.operationAuthoring.operation.nodeKey, + ); + const modelRow = boundStarter.nodes.find( + (row) => row.operation.nodeKey === model.data.operationAuthoring.operation.nodeKey, + ); + const bindingField = { type: 'reference_conditioning', display: 'input' }; + boundOwner.data.params.reference_binding = structuredClone(bindingField); + promptRow.node.params.reference_binding = structuredClone(bindingField); + model.data.params.execution_profile_id = { type: 'string', hidden: true, default: 'synthetic:retired-profile' }; + modelRow.node.params.execution_profile_id = { type: 'string', hidden: true, default: profileId }; + if (fault === 'different-model') modelRow.node.params.revision.value = 'f'.repeat(40); + if (fault === 'different-task') boundStarter.task = 'edit_image'; + // Synthetic ancestor field: the context key must retain every non-profile + // change, including reference order and preprocessing controls. + model.data.params.reference_order = { type: 'list', hidden: true, default: ['A', 'B'] }; + modelRow.node.params.reference_order = { + type: 'list', + hidden: true, + default: fault === 'changed-ancestor' ? ['B', 'A'] : ['A', 'B'], + }; + const boundLayout = structuredClone(originalOwner.data.params.layout_conditioning.value); + Object.assign(boundLayout.regions[0], { + action: 'relocate', + source: { referenceIndex: 0, box: [0.1, 0.1, 0.5, 0.5], expectedReferenceId: `sha256:${'a'.repeat(64)}` }, + }); + boundOwner.data.params.layout_conditioning.value = boundLayout; + const supplier = { + id: 'synthetic-reference-supplier', + type: 'custom', + position: { x: 0, y: 0 }, + data: { + module: 'Synthetic', + action: 'Reference', + label: 'Synthetic reference', + params: { + pipeline: { type: 'diffusers_modular_pipeline_components', display: 'input' }, + reference_binding: { type: 'reference_conditioning', display: 'output' }, + layout_reference_summary: { type: 'string', display: 'output' }, + }, + }, + }; + boundGraph.nodes.push(supplier); + if (fault === 'wired-layout') { + boundOwner.data.params.layout_conditioning.isInput = true; + supplier.data.params.layout = { type: 'layout_conditioning', display: 'output' }; + boundGraph.edges.push({ + id: 'synthetic-layout-wire', + source: supplier.id, + sourceHandle: 'layout', + target: boundOwner.id, + targetHandle: 'layout_conditioning', + }); + } + boundGraph.edges.push({ + id: 'synthetic-reference-owner', + source: model.id, + sourceHandle: 'pipeline_components', + target: supplier.id, + targetHandle: 'pipeline', + }); + if (fault !== 'missing-context') + boundGraph.edges.push({ + id: 'synthetic-reference-binding', + source: supplier.id, + sourceHandle: 'reference_binding', + target: boundOwner.id, + targetHandle: 'reference_binding', + }); + const boundBefore = structuredClone(boundGraph); + const boundPlan = planOperationChange(boundGraph, model.id, boundStarter, { + replaceModel: true, + ...(fault === 'missing-resolver' ? {} : { layoutReferenceContext }), + }); + const planned = boundPlan.graph.nodes.find((node) => node.id === boundOwner.id); + assert.deepEqual(boundGraph, boundBefore); + if (fault === 'none') { + assert.deepEqual( + planned.data.params.layout_conditioning.value, + boundLayout, + 'Changing only the current profile preserves an otherwise exact bound context.', + ); + assert.deepEqual( + boundPlan.graph.nodes.find((node) => node.id === supplier.id), + supplier, + ); + } else { + assert.equal( + planned.data.params.layout_conditioning.value ?? planned.data.params.layout_conditioning.default, + null, + fault, + ); + assert.ok( + planned.data.operationAuthoring.retained.some( + (row) => row.field === 'layout_conditioning' && canonical(row.value) === canonical(boundLayout), + ), + fault, + ); + assert.equal(boundPlan.review.required, true, fault); + } + } + flow.getState().replaceGraph(plan.graph); + const enabled = await preview.enablePromptEnhancement(rebound.id); + assert.equal(enabled.id, freshChild.id); + assert.equal(submitted, null); +}); + +test('unavailable Disable refuses cancellation, a replaced document and concurrent graph edits', async () => { + for (const fault of ['abort', 'document', 'graph']) { + onMetadata = null; + const { ownerId } = await setup(); + await preview.enablePromptEnhancement(ownerId); + flow.getState().resetHistory(); + const controller = new AbortController(); + let afterInterruption; + onMetadata = () => { + if (fault === 'abort') controller.abort(new Error('Cancelled Disable.')); + if (fault === 'document') studio.setState({ workflowCanvasEpoch: studio.getState().workflowCanvasEpoch + 1 }); + if (fault === 'graph') editOwnerField(ownerId, 'prompt', 'Concurrent user edit.'); + afterInterruption = structuredClone(flow.getState().toObject()); + throw new Error('Retired enhancement declaration.'); + }; + await assert.rejects( + preview.disablePromptEnhancement(ownerId, child.id, controller.signal), + /cancel|changed|document|context/i, + ); + assert.deepEqual(flow.getState().toObject(), afterInterruption); + assert.equal(flow.getState().historyPast.length, 0); + assert.ok(activeOwner(ownerId).data.operationAuthoring.ancillaryBindings); + assert.equal(submitted, null); + } +}); + async function setup() { const { createTemplateOperationGraph } = await server.ssrLoadModule('/src/studio/templateOperationWorkflow.ts'); const { DEFAULT_STUDIO_FORM } = await server.ssrLoadModule('/src/studio/modelProfiles.ts'); @@ -871,13 +1111,19 @@ test('explicit authored-layout selection preserves its identity and refuses null ).descriptors; const offer = actual.evaluationAuthoring.authoringRecipes.find((row) => row.task === 'text_to_image'); const source = actual.starters.find((starter) => starter.authoring.id === offer.authoringRecipeId); - // Two synthetic identities share captured append semantics: this exercises - // selection/transactions, not the new constrained decoder or model output. + // A synthetic NF4 alternative retains captured append semantics: this covers + // selection/persistence, not native precision, fit or generated model output. const alternative = structuredClone(source); - alternative.authoring.id = 'synthetic:explicit-layout:v1'; + alternative.authoring.id = 'synthetic:append-nf4:v1'; const alternateChild = alternative.authoring.ancillaryOperations[0]; alternateChild.id = `${alternative.authoring.id}:preview`; alternateChild.parent.authoringRecipeId = alternative.authoring.id; + for (const [field, value] of [ + ['dtype', 'bfloat16'], + ['quantization_mode', 'bnb_4bit'], + ]) { + alternateChild.initialValues.find(([role, name]) => role === 'provider' && name === field)[2] = value; + } const { hashString, stableStringify } = await server.ssrLoadModule('/src/studio/stableHash.ts'); const rehash = (item, prefix) => `${prefix}${hashString(stableStringify(Object.fromEntries(Object.entries(item).filter(([key]) => key !== 'contentHash'))))}`; @@ -887,7 +1133,7 @@ test('explicit authored-layout selection preserves its identity and refuses null descriptor.layoutPromptAuthoringChoices = { [offer.task]: [ { authoringRecipeId: offer.authoringRecipeId, label: 'Append wording' }, - { authoringRecipeId: alternative.authoring.id, label: 'Explicit layout mode' }, + { authoringRecipeId: alternative.authoring.id, label: 'Append wording: BF16 + NF4, preserve authored layout' }, ], }; const sourceRegistry = { @@ -933,6 +1179,13 @@ test('explicit authored-layout selection preserves its identity and refuses null alternative.authoring.id, ); assert.equal(declared.parent.authoringRecipeId, alternative.authoring.id); + assert.equal(declared.layoutPolicy, 'append-details-preserve-layout-v1'); + const providerId = activeOwner(ownerId).data.operationAuthoring.ancillaryBindings[0].roleNodes.provider; + const provider = expandFlowExecutionGraph(flow.getState().nodes, flow.getState().edges).nodes.find( + (node) => node.id === providerId, + ); + assert.equal(provider.data.params.dtype.value, 'bfloat16'); + assert.equal(provider.data.params.quantization_mode.value, 'bnb_4bit'); assert.deepEqual(activeOwner(ownerId).data.params.layout_conditioning.value, layout); assert.equal(flow.getState().historyPast.length, 1); flow.getState().undo(); diff --git a/scripts/weight-format-template-binding.test.mjs b/scripts/weight-format-template-binding.test.mjs index 23f3c172..695b1dd0 100644 --- a/scripts/weight-format-template-binding.test.mjs +++ b/scripts/weight-format-template-binding.test.mjs @@ -399,6 +399,57 @@ test('native-only cache cannot satisfy a distinct variant and deduplication pres ); }); +test('observed exact cached selections supersede native receipts without confusing variants or repository prefixes', async () => { + const { getRepoCacheStatus, getStudioModelCacheStatus } = await load('studio/modelCache'); + const { getGraphWorkflowArtifactRequirements } = await load('studio/artifactRequirements'); + const repo = 'example/image'; + const revision = 'a'.repeat(40); + const native = ['model_index.json', 'native.safetensors']; + const files = ['model_index.json', 'variants/fp8r/model.safetensors']; + const entry = { + id: repo, + installed: true, + complete: true, + planned_revision: revision, + planned_files: native, + observed_selections: [{ revision, files, complete: true }], + }; + const status = (cache, expectation = { revision, files }) => getRepoCacheStatus(repo, cache, [], null, expectation); + assert.equal(status([entry]).runnable, true, 'a stale receipt is not an inventory of all cached files'); + assert.equal(status([{ ...entry, installed: false, complete: false, repair_required: true }]).runnable, true); + const incompleteNative = { ...entry, installed: false, complete: false, repair_required: true }; + assert.equal(status([incompleteNative], { revision }).runnable, false, 'a revision alone does not select FP8r'); + assert.equal(status([incompleteNative], { files }).runnable, false, 'files alone do not select a revision'); + assert.equal(status([entry], { revision, files: native }).runnable, false); + assert.equal(status([entry], { revision: 'b'.repeat(40), files }).runnable, false); + assert.equal(status([entry], { revision, files: ['variants/nvfp4/model.safetensors'] }).runnable, false); + assert.equal(status([{ ...entry, id: `${repo}-base` }]).runnable, false); + assert.equal(status([{ ...entry, id: `${repo}-base` }, entry]).runnable, true); + for (const observed_selections of [ + [{ revision, files, complete: false }], + [{ revision, files, complete: 'true' }], + [{ revision, files: [...files, '../escape'], complete: true }], + [], + null, + ]) { + assert.equal(status([{ ...entry, planned_files: files, observed_selections }]).runnable, false); + } + const { observed_selections: _observations, ...legacy } = entry; + assert.equal(status([{ ...legacy, planned_files: files }]).runnable, true, 'older backend compatibility'); + assert.equal(status([legacy]).runnable, false); + assert.equal(getRepoCacheStatus(repo, [{ ...legacy, id: `${repo}-base` }], [], null).runnable, false); + const profile = { defaultRepo: repo, revisionCandidates: [revision], downloadFiles: files }; + assert.equal(getStudioModelCacheStatus(profile, [entry], [], null).runnable, true); + const requirements = getGraphWorkflowArtifactRequirements({ + references: [{ nodeId: 'owner', kind: 'repo', value: repo, revision, paramKey: 'repo_id', downloadFiles: files }], + hfCache: [entry], + localModels: [], + modelCacheDiagnostics: null, + }); + assert.equal(requirements[0].status.runnable, true); + assert.equal(requirements[0].installTarget, undefined); +}); + test('incompatible model or execution changes require an explicit Native choice without mutating the draft', async () => { const formats = await load('studio/weightFormat'); const values = await load('studio/executionSpecValues'); diff --git a/src/components/OperationGraphControls.tsx b/src/components/OperationGraphControls.tsx index 2b2274a7..c50d2fc9 100644 --- a/src/components/OperationGraphControls.tsx +++ b/src/components/OperationGraphControls.tsx @@ -2,6 +2,7 @@ import { operationOwnsModel } from '../workflow/operationContracts'; import { useEffect, useRef, useState } from 'react'; import { useFlowStore } from '../stores/useFlowStore'; import { useNodesStore } from '../stores/useNodeStore'; +import { layoutReferenceContext } from '../studio/layoutReferenceContext'; import { assertWorkflowOperationContext, captureWorkflowOperationContext, @@ -124,9 +125,12 @@ export default function OperationGraphControls({ blockId, loader, starter, - { replaceModel: Boolean(executionProfileId) }, + { replaceModel: Boolean(executionProfileId), layoutReferenceContext }, ) - : planOperationChange(snapshot, effectiveOwnerId, starter, { replaceModel: Boolean(executionProfileId) }); + : planOperationChange(snapshot, effectiveOwnerId, starter, { + replaceModel: Boolean(executionProfileId), + layoutReferenceContext, + }); if (controller.signal.aborted) return; assertWorkflowOperationContext(context, { includeForm: false }); if (operationGraphPreviewSignature(useFlowStore.getState().toObject()) !== signature) diff --git a/src/components/OperationModelPicker.tsx b/src/components/OperationModelPicker.tsx index 895aecd6..a247f2b5 100644 --- a/src/components/OperationModelPicker.tsx +++ b/src/components/OperationModelPicker.tsx @@ -1,6 +1,7 @@ import { useEffect, useMemo, useRef, useState } from 'react'; import { useFlowStore, type CustomNodeType } from '../stores/useFlowStore'; import { useNodesStore } from '../stores/useNodeStore'; +import { layoutReferenceContext } from '../studio/layoutReferenceContext'; import { assertWorkflowOperationContext, captureWorkflowOperationContext, @@ -153,7 +154,7 @@ export default function OperationModelPicker({ node.data.blockProjectionOwnerId, node.data.blockProjectionNodeId ?? node.id, starter, - { replaceModel: !restoreDefaults, restoreDefaults }, + { replaceModel: !restoreDefaults, restoreDefaults, layoutReferenceContext }, ) : (!visualOwner && !restoreDefaults && @@ -163,6 +164,7 @@ export default function OperationModelPicker({ replaceModel: !restoreDefaults, restoreDefaults, baseline, + layoutReferenceContext, }); if (controller.signal.aborted) return; assertWorkflowOperationContext(context, { includeForm: false }); diff --git a/src/components/PromptEnhancementControls.tsx b/src/components/PromptEnhancementControls.tsx index e757b2b8..60249f2a 100644 --- a/src/components/PromptEnhancementControls.tsx +++ b/src/components/PromptEnhancementControls.tsx @@ -278,10 +278,14 @@ export default function PromptEnhancementControls({ disabled={unavailable || taskActive} onClick={() => void act('Disabling enhancement', async () => { - await disablePromptEnhancement(ownerId, binding.contractId); + const result = await disablePromptEnhancement(ownerId, binding.contractId); setRun(null); setVerified(null); - setMessage('Disabled. Later user edits are preserved.'); + setMessage( + result.preservedUnavailablePair + ? 'Disabled. Your current prompt, layout and references are preserved. Choose the current model, then enable a current enhancement mode.' + : 'Disabled. Later user edits are preserved.', + ); }) } > diff --git a/src/studio/graphFixer.ts b/src/studio/graphFixer.ts index ad57aa09..85c7afac 100644 --- a/src/studio/graphFixer.ts +++ b/src/studio/graphFixer.ts @@ -5,7 +5,8 @@ import type { NodeData, NodeParams } from '../stores/useNodeStore'; import { createNodeFromRegistry } from '../workflow/nodeFactory'; import { connectionTypes, connectionTypesAreCompatible } from '../theme/connectionTypeCompatibility'; import { nodeConnectionSemanticsAreCompatible } from '../workflow/nodeConnectionMatching'; -import { expandBlockGraphV2ForExecution } from './blockRuntimeV2'; +import { blockProjectionNodeIdV2, expandBlockGraphV2ForExecution } from './blockRuntimeV2'; +import { blockConnectionTargetsV2, blockCrossingParamV2 } from './blockCrossingConnectionsV2'; import { inspectBlockSeedBindingsV2 } from './blockSeedRepairV2'; import { inspectBlockDerivedControlsV2 } from './blockDerivedControlRepairV2'; import { inspectReviewedStateV2 } from './reviewedStateDiagnosticsV2'; @@ -225,7 +226,7 @@ export function graphNodeIsOutputLike(node: Pick) { return /\b(preview|export|save|display|output|gallery)\b|viewer\b/.test(text); } -function blockHasConnectedOutput(node: CustomNodeType) { +function blockHasConnectedOutput(node: CustomNodeType, incoming: ReadonlySet) { if (!isBlockRootV2Node(node) || !node.data.blockInstanceV2) return false; // Inspect the saved semantic graph, not visible projections: collapse must not // hide an existing output from Fix. Do not compile a potentially invalid draft. @@ -237,7 +238,10 @@ function blockHasConnectedOutput(node: CustomNodeType) { (child) => enabled.has(child.nodeId) && graphNodeIsOutputLike({ data: child.data as unknown as NodeData }) && - graph.edges.some((edge) => edge.targetNodeId === child.nodeId && enabled.has(edge.sourceNodeId)), + (graph.edges.some((edge) => edge.targetNodeId === child.nodeId && enabled.has(edge.sourceNodeId)) || + inputFields({ data: child.data as unknown as NodeData }).some(([field]) => + incoming.has(`${blockProjectionNodeIdV2(node.id, child.nodeId)}:${field}`), + )), ); } @@ -808,9 +812,35 @@ export function buildGraphFixPlan(context: GraphFixContext): GraphFixPlan { const target = nodesById.get(edge.target); const sourceHandle = edge.sourceHandle ?? ''; const targetHandle = edge.targetHandle ?? ''; - const sourceParam = nodeConnectorParam(source, sourceHandle); - const targetParam = nodeConnectorParam(target, targetHandle); - if (!source || !target || !sourceHandle || !targetHandle || !sourceParam || !targetParam) { + let sourceParam: NodeParams | undefined; + let targetParam: NodeParams | undefined; + let blockTargets: ReturnType = []; + try { + sourceParam = nodeConnectorParam(source, sourceHandle); + targetParam = nodeConnectorParam(target, targetHandle); + if (source?.data.blockInstanceV2) { + for (const binding of blockConnectionTargetsV2(source, sourceHandle, 'output')) + blockCrossingParamV2(source.data.blockInstanceV2, { ...binding, direction: 'output' }); + } + if (target?.data.blockInstanceV2) { + blockTargets = blockConnectionTargetsV2(target, targetHandle, 'input'); + for (const binding of blockTargets) + blockCrossingParamV2(target.data.blockInstanceV2, { ...binding, direction: 'input' }); + } + } catch { + // A stale/malformed crossing is a broken link, never output connectivity. + sourceParam = targetParam = undefined; + } + if ( + !source || + !target || + !sourceHandle || + !targetHandle || + !sourceParam || + !targetParam || + sourceParam.display !== 'output' || + targetParam.display === 'output' + ) { const issueId = candidateId('broken-link', edge.id); issues.push({ id: issueId, @@ -874,14 +904,24 @@ export function buildGraphFixPlan(context: GraphFixContext): GraphFixPlan { return; } validIncoming.add(`${target.id}:${targetHandle}`); + if (!source.data.uiState?.disabled && !target.data.uiState?.disabled) { + // Durable crossing and public/mirrored inputs reach semantic leaves even + // when their canvas projections are collapsed or absent after reload. + for (const binding of blockTargets) + validIncoming.add(`${blockProjectionNodeIdV2(target.id, binding.nodeId)}:${binding.fieldOrPortId}`); + } }); const enabled = executableNodes(context.nodes); const outputNodes = enabled.filter(graphNodeIsOutputLike); const connectedOutputs = outputNodes.filter((node) => - context.edges.some((edge) => edge.target === node.id && nodesById.has(edge.source)), + inputFields(node).some(([handle]) => validIncoming.has(`${node.id}:${handle}`)), ); - if (enabled.length > 0 && connectedOutputs.length === 0 && !enabled.some(blockHasConnectedOutput)) { + if ( + enabled.length > 0 && + connectedOutputs.length === 0 && + !enabled.some((node) => blockHasConnectedOutput(node, validIncoming)) + ) { const issueId = 'missing-output'; const candidates = outputCandidates(issueId, context, outputNodes); if (candidates.length) { diff --git a/src/studio/modelCache.ts b/src/studio/modelCache.ts index 325108f7..4095ada8 100644 --- a/src/studio/modelCache.ts +++ b/src/studio/modelCache.ts @@ -33,7 +33,7 @@ const IMMUTABLE_HUGGING_FACE_REVISION = /^[0-9a-f]{40}$/i; const HUGGING_FACE_REPO = /^[A-Za-z0-9][A-Za-z0-9._-]{0,95}\/[A-Za-z0-9][A-Za-z0-9._-]{0,95}$/; function isReviewedDownloadFile(value: string) { - if (!value || value.length > 512 || value.includes('\\') || value.startsWith('/') || value.endsWith('/')) { + if (!value || value.length > 512 || /[\\:\0]/.test(value) || value.startsWith('/') || value.endsWith('/')) { return false; } return value.split('/').every((segment) => segment && segment !== '.' && segment !== '..'); @@ -87,7 +87,7 @@ function normalizeModelText(value: string) { export function cacheContains(cache: unknown[], repo: string) { const repoLower = normalizeModelText(repo); return cache.some((item) => { - if (!normalizeModelText(modelItemText(item)).includes(repoLower)) return false; + if (normalizeModelText(modelItemText(item)) !== repoLower) return false; if (!item || typeof item !== 'object') return true; const status = item as { complete?: unknown; installed?: unknown; repair_required?: unknown }; return status.complete !== false && status.installed !== false && status.repair_required !== true; @@ -158,14 +158,14 @@ export function getRepoCacheStatus( expectation?: StudioModelCacheExpectation, ): StudioModelCacheStatus { const repoLower = normalizeModelText(repo); - const cacheEntry = hfCache.find((item) => normalizeModelText(modelItemText(item)).includes(repoLower)); + const cacheEntry = hfCache.find((item) => normalizeModelText(modelItemText(item)) === repoLower); const baseHfCached = cacheContains(hfCache, repo); const expectedRevision = expectation?.revision?.trim().toLowerCase() || ''; const expectedFiles = Array.from(new Set((expectation?.files ?? []).map((file) => file.replace(/\\/g, '/')))).sort(); const hasExactExpectation = Boolean(expectedRevision || expectedFiles.length); const cacheRecord = cacheEntry && typeof cacheEntry === 'object' - ? (cacheEntry as { planned_revision?: unknown; planned_files?: unknown }) + ? (cacheEntry as { planned_revision?: unknown; planned_files?: unknown; observed_selections?: unknown }) : null; const plannedRevision = String(cacheRecord?.planned_revision ?? '') .trim() @@ -180,8 +180,44 @@ export function getRepoCacheStatus( (Boolean(cacheRecord) && (!expectedRevision || plannedRevision === expectedRevision) && expectedFiles.every((file) => plannedFiles.has(file))); - const hfCached = baseHfCached && selectionMatches; - const selectionNeedsRepair = baseHfCached && !selectionMatches; + // Receipts describe a previous download, not every file now in the cache. + // A current observation is authoritative for its exact selection, including + // an incomplete result. Older backends retain the receipt compatibility path. + const hasObservedSelections = Boolean( + cacheRecord && Object.prototype.hasOwnProperty.call(cacheRecord, 'observed_selections'), + ); + const useObservedSelection = hasObservedSelections && Boolean(expectedRevision && expectedFiles.length); + const observations = cacheRecord?.observed_selections; + const validObservations = + Array.isArray(observations) && + observations.length <= 32 && + observations.every( + (item: unknown) => + item !== null && + typeof item === 'object' && + 'revision' in item && + typeof item.revision === 'string' && + IMMUTABLE_HUGGING_FACE_REVISION.test(item.revision) && + 'complete' in item && + typeof item.complete === 'boolean' && + 'files' in item && + Array.isArray(item.files) && + item.files.length > 0 && + item.files.length <= 256 && + item.files.every((file: unknown) => typeof file === 'string' && isReviewedDownloadFile(file)) && + new Set(item.files).size === item.files.length, + ); + const observedMatch = + validObservations && + observations.some( + (item: { revision: string; files: string[]; complete: boolean }) => + item.complete && + item.revision.toLowerCase() === expectedRevision && + item.files.length === expectedFiles.length && + expectedFiles.every((file) => item.files.includes(file)), + ); + const hfCached = useObservedSelection ? observedMatch : baseHfCached && selectionMatches; + const selectionNeedsRepair = useObservedSelection ? !hfCached : baseHfCached && !selectionMatches; const localCached = !hasExactExpectation && localModelsContain(localModels, repo); const scannedPaths = diagnostics?.locations.map((location) => `${location.label}: ${location.path || 'default'}`) ?? []; diff --git a/src/studio/promptEnhancementAuthoring.ts b/src/studio/promptEnhancementAuthoring.ts index 8d05ebf0..e25dbd72 100644 --- a/src/studio/promptEnhancementAuthoring.ts +++ b/src/studio/promptEnhancementAuthoring.ts @@ -16,7 +16,7 @@ export type { PromptEnhancementParent } from './promptEnhancementParent'; import type { OperationAuthoringRecipe } from './operationAuthoringRecipe'; import type { OperationGraph } from '../workflow/operationAuthoring'; import type { NodeData } from '../stores/useNodeStore'; -import { AUTHORED_CONSTRAINT_POLICY } from './promptEnhancementConstraints'; +import { AUTHORED_CONSTRAINT_OPERATION, AUTHORED_CONSTRAINT_POLICY } from './promptEnhancementConstraints'; /** Attach only a backend-declared offer to its actual prompt owner before grouping. * This does not add a branch, change values, make a request, or grant readiness. */ @@ -488,6 +488,92 @@ export async function planDisablePromptEnhancement( return groups.restoreVisualOperationGroups(next, unpacked); } +/** Local removal when current metadata is unavailable. Persisted ownership can + * authorize deleting these two exclusive leaves, never running or rebinding them. + * Unlike a verified Disable, this keeps the current authored pair verbatim. */ +export async function planDetachUnavailablePromptEnhancement( + graph: OperationGraph, + ownerId: string, + childId: string, +): Promise { + const { owner, selection, unpacked, groups } = await editableContext(graph, ownerId); + const { ancillaryBindingsFromHint } = await import('./ancillaryBindings'); + const { canonicalBlockStringifyV2: canonical } = await import('./blockSchemaV2'); + const bindings = ancillaryBindingsFromHint(owner.data.operationAuthoring); + const binding = bindings?.[0]; + if ( + bindings?.length !== 1 || + !binding || + binding.contractId !== childId || + childId !== `${selection.parent.authoringRecipeId}:preview` || + canonical(binding.parent) !== canonical(selection.parent) || + canonical(binding.parentRoleNodes) !== canonical(selection.parentRoleNodes) || + binding.parentRoleNodes.prompt !== owner.id || + Object.keys(binding.roleNodes).sort().join(',') !== 'proposal,provider' || + !owner.data.params.prompt || + !owner.data.params.layout_conditioning + ) + invalidAncillary('the saved enhancement ownership is not an exact removable pair.'); + const ids = new Set(Object.values(binding.roleNodes)); + const uniqueNode = (id: string) => { + const matches = unpacked.graph.nodes.filter((node) => node.id === id); + if (matches.length !== 1) invalidAncillary('the saved enhancement node is missing or ambiguous.'); + return matches[0]!; + }; + uniqueNode(owner.id); + const provider = uniqueNode(binding.roleNodes.provider!), + proposal = uniqueNode(binding.roleNodes.proposal!); + if ( + `${provider.data.module}.${provider.data.action}` !== 'modules.HuggingFaceTransformers.LoadImageTextToTextModel' || + `${proposal.data.module}.${proposal.data.action}` !== 'modules.HuggingFaceTransformers.GenerateImageVideoText' || + !['enhance_prompt', 'enhance_prompt_append_details', AUTHORED_CONSTRAINT_OPERATION].includes( + String(proposal.data.params.operation?.value ?? proposal.data.params.operation?.default), + ) + ) + invalidAncillary('the saved enhancement leaves are not the removable built-in provider and proposal.'); + for (const node of unpacked.graph.nodes) { + if (node.id === owner.id) continue; + if ( + ancillaryBindingsFromHint(node.data.operationAuthoring)?.some((other) => + [...Object.values(other.roleNodes), ...Object.values(other.parentRoleNodes)].some((id) => ids.has(id)), + ) || + Object.values(promptEnhancementParentFromHint(node.data.operationAuthoring)?.parentRoleNodes ?? {}).some((id) => + ids.has(id), + ) + ) + invalidAncillary('another enhancement claims these leaves; separate ownership before disabling.'); + } + const edgeKey = (source: string, output: string, target: string, input: string) => + `${source}\0${output}\0${target}\0${input}`; + const expected = [edgeKey(provider.id, 'model', proposal.id, 'model')]; + if (selection.parent.task === 'edit_image') { + const referenceId = binding.parentRoleNodes.loadImage; + if (!referenceId) invalidAncillary('the saved enhancement reference owner is unavailable.'); + const reference = uniqueNode(referenceId); + if (`${reference.data.module}.${reference.data.action}` !== 'modules.Image.Load') + invalidAncillary('the saved enhancement reference is not its original image source.'); + expected.push(edgeKey(reference.id, 'image', proposal.id, 'images')); + } else if (selection.parent.task !== 'text_to_image') + invalidAncillary('the saved enhancement task has no local removal contract.'); + const connected = unpacked.graph.edges + .filter((edge) => ids.has(edge.source) || ids.has(edge.target)) + .map((edge) => edgeKey(edge.source, edge.sourceHandle ?? '', edge.target, edge.targetHandle ?? '')); + if (canonical(connected.sort()) !== canonical(expected.sort())) + invalidAncillary( + 'the enhancement branch has additional or missing connections; separate those explicitly before disabling.', + ); + delete owner.data.operationAuthoring!.ancillaryBindings; + delete selection.appliedPairSha256; + owner.data.operationAuthoring!.ancillaryParent = selection; + return groups.restoreVisualOperationGroups( + { + nodes: unpacked.graph.nodes.filter((node) => !ids.has(node.id)), + edges: unpacked.graph.edges.filter((edge) => !ids.has(edge.source) && !ids.has(edge.target)), + }, + unpacked, + ); +} + /** An explicit new Preview reuses the original request after an untouched Apply, * or captures later user edits. It never recursively enhances its own output. */ export async function planRefreshPromptEnhancementRequest( diff --git a/src/studio/promptEnhancementPreview.ts b/src/studio/promptEnhancementPreview.ts index 1bf0e794..0738efba 100644 --- a/src/studio/promptEnhancementPreview.ts +++ b/src/studio/promptEnhancementPreview.ts @@ -17,6 +17,7 @@ import { promptEnhancementParentFromHint, planEnablePromptEnhancement, planDisablePromptEnhancement, + planDetachUnavailablePromptEnhancement, planRefreshPromptEnhancementRequest, planSelectPromptEnhancementParent, } from './promptEnhancementAuthoring'; @@ -329,13 +330,34 @@ export async function currentPromptEnhancementDeclaration(ownerId: string, child } export async function disablePromptEnhancement(ownerId: string, childId: string, signal?: AbortSignal) { - const selected = await resolveSelection(ownerId, signal); + const context = captureWorkflowOperationContext(); + const snapshot = useFlowStore.getState().toObject(); + const signature = operationGraphSignature(snapshot); + const check = () => { + signal?.throwIfAborted(); + assertWorkflowOperationContext(context); + if (operationGraphSignature(useFlowStore.getState().toObject()) !== signature) + invalidAncillary('the workflow changed before disabling enhancement.'); + }; + let selected: Awaited>; + try { + selected = await resolveSelection(ownerId, signal); + } catch { + check(); + const graph = await planDetachUnavailablePromptEnhancement(snapshot, ownerId, childId); + check(); + commitOperationGraph(graph, context, signature, 'Disable unavailable prompt enhancement', { + preserveSelection: true, + }); + return { preservedUnavailablePair: true }; + } const child = chooseChild(selected.recipe, childId); const graph = await planDisablePromptEnhancement(selected.graph, ownerId, selected.recipe, child.id); selected.assertCurrent(); commitOperationGraph(graph, selected.context, selected.signature, 'Disable prompt enhancement', { preserveSelection: true, }); + return { preservedUnavailablePair: false }; } /** Local task handle only; server dispatch/owner policy still decides admission. */ diff --git a/src/workflow/connectEncodingNode.ts b/src/workflow/connectEncodingNode.ts index 73470c33..2f3af12b 100644 --- a/src/workflow/connectEncodingNode.ts +++ b/src/workflow/connectEncodingNode.ts @@ -4,6 +4,7 @@ import { useNodesStore } from '../stores/useNodeStore'; import { captureWorkflowOperationContext, assertWorkflowOperationContext } from '../stores/useStudioStore'; import { operationGraphSignature, commitOperationGraph } from './operationGraphTransaction'; import { requestOperationStarter } from './operationStarterRequest'; +import { layoutReferenceContext } from '../studio/layoutReferenceContext'; import { encodingConnectionRoute, encodingOwnerProfile, planEncodingConnection } from './encodingNodeConnection'; export async function connectEncodingNode(connection: Connection, pendingNode?: CustomNodeType, signal?: AbortSignal) { @@ -24,6 +25,6 @@ export async function connectEncodingNode(connection: Connection, pendingNode?: assertWorkflowOperationContext(context, { includeForm: false }); if (operationGraphSignature(useFlowStore.getState().toObject()) !== signature) throw new Error('The workflow changed while preparing this connection. Connect again. Nothing changed.'); - const next = planEncodingConnection(graph, connection, route, starter); + const next = planEncodingConnection(graph, connection, route, starter, layoutReferenceContext); commitOperationGraph(next, context, signature, 'Connect encoding input/output'); } diff --git a/src/workflow/encodingNodeConnection.ts b/src/workflow/encodingNodeConnection.ts index 02e2a4dd..cbbf7f17 100644 --- a/src/workflow/encodingNodeConnection.ts +++ b/src/workflow/encodingNodeConnection.ts @@ -7,6 +7,7 @@ import { planOperationChange, type OperationGraph, type OperationStarter, + type OperationLayoutReferenceContext, } from './operationAuthoring'; import { visualGroupOwners } from './visualOperationGroups'; import type { OperationContract } from './operationContracts'; @@ -41,10 +42,11 @@ export function planEncodingConnection( connection: Connection, route: ReturnType, starter: OperationStarter, + layoutReferenceContext?: OperationLayoutReferenceContext, ): OperationGraph { if (starter.pipelineClass !== route.operation.pipelineClass || starter.task !== route.operation.task) throw new Error('The image encoding route changed. Nothing changed.'); - const plan = planOperationChange(graph, route.owner.id, starter, { preserveValues: true }); + const plan = planOperationChange(graph, route.owner.id, starter, { preserveValues: true, layoutReferenceContext }); if (plan.review.required) throw new Error( `Cannot connect without changing existing work: ${plan.review.attention.join(' ')} Nothing changed.`, diff --git a/src/workflow/operationAuthoring.ts b/src/workflow/operationAuthoring.ts index e27643f3..ac1683c6 100644 --- a/src/workflow/operationAuthoring.ts +++ b/src/workflow/operationAuthoring.ts @@ -1,5 +1,7 @@ import type { PromptEnhancementParent } from '../studio/promptEnhancementAuthoring'; import { refreshPromptEnhancementParents } from '../studio/promptEnhancementAuthoring'; +import { promptEnhancementParentFromHint } from '../studio/promptEnhancementParent'; +import { parseLayoutConditioning } from '../studio/layoutConditioning'; import { ancillaryBindingsFromHint, type AncillaryInstanceBinding } from '../studio/ancillaryOperations'; import { operationOwnsModel } from './operationContracts'; import type { Edge } from '@xyflow/react'; @@ -52,6 +54,21 @@ export type OperationStarter = { sharedInputs: { name: string; members: { operationId: string; field: string }[] }[]; }; export type OperationGraph = { nodes: CustomNodeType[]; edges: Edge[] }; +/** The browser supplies its existing Run-equivalent reference projection. + * A headless planner cannot infer missing reference authority from ambient state. */ +export type OperationLayoutReferenceContext = ( + nodes: CustomNodeType[], + edges: Edge[], + nodeId: string, + fieldKey: string, +) => { nodeId: string; summaryNodeId: string; key: string } | null; +export type OperationChangeOptions = { + replaceModel?: boolean; + restoreDefaults?: boolean; + baseline?: OperationStarter | null; + preserveValues?: boolean; + layoutReferenceContext?: OperationLayoutReferenceContext; +}; export type OperationChangePlan = { graph: OperationGraph; changes: string[]; @@ -444,12 +461,7 @@ export function planOperationChange( graph: OperationGraph, loaderId: string, starter: OperationStarter, - options: { - replaceModel?: boolean; - restoreDefaults?: boolean; - baseline?: OperationStarter | null; - preserveValues?: boolean; - } = {}, + options: OperationChangeOptions = {}, ): OperationChangePlan { if (graph.nodes.some(visualOperationGroup)) { const unpacked = unpackVisualOperationGroups(graph); @@ -511,6 +523,55 @@ export function planOperationChange( deepEqual(operationFieldValue(left.data.params[name]), operationFieldValue(right.data.params[name])), ); const sameModel = sameOwner(root, nextOwner); + // Older resolved prompt schemas exposed layout without an operation port. + // A current same-artifact declaration may retain that exact authored field; + // bound reference context is checked after the final media edges are known. + function legacyLayoutTransfer(source: CustomNodeType, target: CustomNodeType, name: string) { + const previous = operationAuthoring(source)!.operation, + next = operationAuthoring(target)!.operation; + const field = source.data.params[name], + destination = target.data.params[name]; + const saved = promptEnhancementParentFromHint(source.data.operationAuthoring); + return Boolean( + name === 'layout_conditioning' && + (!port(source, name, 'input') || !port(target, name, 'input')) && + !connected.get(source.id)?.has(name) && + !connected.get(target.id)?.has(name) && + !options.restoreDefaults && + saved?.parentRoleNodes.prompt === source.id && + saved.parent.pipelineClass === starter.pipelineClass && + saved.parent.task === starter.task && + previous.pipelineClass === next.pipelineClass && + previous.task === next.task && + previous.nodeKey === next.nodeKey && + previous.operationId === next.operationId && + deepEqual(previous.binding, next.binding) && + operationAuthoring(root)!.operation.binding?.pipelineClass === + operationAuthoring(nextOwner)!.operation.binding?.pipelineClass && + ['repo_id', 'model_id'].some((key) => Boolean(operationFieldValue(root.data.params[key]))) && + ownerFields + .filter((key) => key !== 'execution_profile_id') + .every((key) => + deepEqual(operationFieldValue(root.data.params[key]), operationFieldValue(nextOwner.data.params[key])), + ) && + field?.type === 'layout_conditioning' && + destination?.type === field.type && + field.display === 'layout' && + destination.display === field.display && + publicSetting(destination) && + field.fieldOptions?.layoutConditioning && + deepEqual(field.fieldOptions.layoutConditioning, destination.fieldOptions?.layoutConditioning) && + !Object.prototype.hasOwnProperty.call(next.binding?.values ?? {}, name) && + starter.authoring?.ancillaryOperations?.some( + (child) => + child.parent.pipelineClass === saved.parent.pipelineClass && + child.parent.task === saved.parent.task && + child.bindings.owner.role === 'prompt' && + child.bindings.owner.layoutField === name && + starter.authoring!.roles.some(([role, key]) => role === 'prompt' && key === next.nodeKey), + ), + ); + } // Keeping an unchanged executor and model preserves its unresolved runtime // policy. It does not infer a distilled scale's meaning for a different model. function unchangedControl(source: CustomNodeType, sourceName: string, target: CustomNodeType, targetName: string) { @@ -652,6 +713,7 @@ export function planOperationChange( field: NodeParams; previous: OperationAuthoring; }[] = []; + const pendingLayouts: typeof deferredSettings = []; let added = 0; const insertionX = Math.max(...graph.nodes.map((n) => n.position.x + (n.measured?.width ?? n.width ?? 360))) + 100; const migrated = draft.nodes.map((fresh) => { @@ -788,7 +850,13 @@ export function planOperationChange( params[name] = { ...target, value: field.value, ...(field.artifacts ? { artifacts: field.artifacts } : {}) }; addPreserved(`${old.data.label} · ${fieldLabel(old, name)}: ${reviewValue(field.value)}`); } else if (!operationOwnsModel(previous.operation)) { - deferredSettings.push({ old, fresh, name, field, previous }); + (legacyLayoutTransfer(old, fresh, name) ? pendingLayouts : deferredSettings).push({ + old, + fresh, + name, + field, + previous, + }); } else { const reason = `${old.data.label} · ${fieldLabel(old, name)} cannot be applied to ${fresh.data.label}; its previous value (${reviewValue(field.value)}) remains available in Implementation.`; retained.push({ field: name, value: field.value, pipeline: previous.operation.pipelineClass, reason }); @@ -1198,6 +1266,48 @@ export function planOperationChange( `Share ${group.name} across ${members.map((m) => m.node.data.label).join(' and ')}; preserve its authored value${group.name === 'seed' ? ' and use one random draw per run' : ''}.`, ); } + for (const entry of pendingLayouts) { + const target = migrated.find( + (node) => operationAuthoring(node)!.operation.operationId === entry.previous.operation.operationId, + )!; + let compatible = false; + try { + const layout = parseLayoutConditioning(entry.field.value); + const plannedOwner = nodes.find((node) => node.id === root.id)!; + // The explicit same-artifact rebind changes this one selector. Nothing + // else in the ordered media/preprocessing ancestry may be normalized. + const beforeNodes = graph.nodes.map((node) => { + if (node.id !== root.id) return node; + const params = { ...node.data.params }; + if (plannedOwner.data.params.execution_profile_id) + params.execution_profile_id = plannedOwner.data.params.execution_profile_id; + else delete params.execution_profile_id; + return { ...node, data: { ...node.data, params } }; + }); + const beforeContext = options.layoutReferenceContext?.(beforeNodes, graph.edges, entry.old.id, entry.name); + const afterContext = options.layoutReferenceContext?.(nodes, edges, target.id, entry.name); + compatible = + !layout?.regions.some((region) => region.source) || + Boolean(beforeContext && afterContext && beforeContext.key === afterContext.key); + } catch { + /* Invalid authored data remains in the ordinary explicit review. */ + } + if (compatible) { + target.data.params[entry.name] = { ...target.data.params[entry.name], value: structuredClone(entry.field.value) }; + addPreserved(`${entry.old.data.label} · ${fieldLabel(entry.old, entry.name)}: ${reviewValue(entry.field.value)}`); + } else { + const reason = `${entry.old.data.label} · ${fieldLabel(entry.old, entry.name)} needs review because its layout or ordered reference context is incompatible; its previous value remains available in Implementation.`; + target.data.operationAuthoring!.retained.push({ + field: entry.name, + value: entry.field.value, + pipeline: entry.previous.operation.pipelineClass, + reason, + }); + if (target.data.operationAuthoring!.retained.length > 512) + throw new Error('Too many retained settings. Review and remove old retained entries before another change.'); + diagnostics.push(reason); + } + } if (!reviewChanges.length && operationAuthoring(root)!.operation.pipelineClass !== starter.pipelineClass) reviewChanges.push( 'Update the connected nodes for the selected model while keeping their layout and compatible ports.', diff --git a/src/workflow/operationBlockChange.ts b/src/workflow/operationBlockChange.ts index 24e8339d..ca9e46da 100644 --- a/src/workflow/operationBlockChange.ts +++ b/src/workflow/operationBlockChange.ts @@ -24,6 +24,7 @@ import { operationScope, planOperationChange, type OperationChangePlan, + type OperationChangeOptions, type OperationGraph, type OperationStarter, } from './operationAuthoring'; @@ -166,7 +167,10 @@ export function planBlockOperationChange( blockId: string, loaderId: string, starter: OperationStarter, - options: { replaceModel?: boolean; restoreDefaults?: boolean; preserveValues?: boolean } = {}, + options: Pick< + OperationChangeOptions, + 'replaceModel' | 'restoreDefaults' | 'preserveValues' | 'layoutReferenceContext' + > = {}, ): OperationChangePlan { const root = graph.nodes.find((node) => node.id === blockId); const original = root?.data.blockInstanceV2; diff --git a/src/workflow/operationLegacyBlockChange.ts b/src/workflow/operationLegacyBlockChange.ts index d9906e41..92376c53 100644 --- a/src/workflow/operationLegacyBlockChange.ts +++ b/src/workflow/operationLegacyBlockChange.ts @@ -1,5 +1,5 @@ import { isLegacyUserBlock, prepareLegacyBlockMovementV2 } from '../studio/legacyBlockMovementV2'; -import type { OperationGraph, OperationStarter } from './operationAuthoring'; +import type { OperationChangeOptions, OperationGraph, OperationStarter } from './operationAuthoring'; import { planBlockOperationChange } from './operationBlockChange'; /** Read-only adaptation of the selected instance, never a library migration. */ @@ -28,7 +28,7 @@ export function planOwnerBlockOperationChange( blockId: string, loaderId: string, starter: OperationStarter, - options: { replaceModel?: boolean; restoreDefaults?: boolean } = {}, + options: Pick = {}, ) { const prepared = prepareOperationBlockGraph(graph, blockId); const plan = planBlockOperationChange(prepared.graph, prepared.root.id, loaderId, starter, options); From 2d919db8b0b156d839a650a5c32c954e2635812f Mon Sep 17 00:00:00 2001 From: Sourav Das Date: Mon, 26 Oct 2026 16:56:00 +0530 Subject: [PATCH 063/440] Honor exact declared weight-format defaults in generic authoring Validate generic default formats against exact immutable manifests while preserving authored workflows. Cover accepted/refused ordinary Automatic Run submissions with real backend-shaped contracts and retain cancellation, stale-plan and Expert controls. Pin both CI jobs to backend 1ebc871f069dcd38735e983aac67d617476fac23. Record measured feature growth of 82/82/44 gzip bytes in existing aggregate budgets; preserve their headroom and the 64 KiB deferred chunk limit. Production build matches all 118 integrated backend files exactly. Validation: complete npm check passes (3757 unit/contract tests, 10 skipped, plus 3 bundle checks); the full browser suite passes 323 cases on identical production bytes. check:acceptance stops at Gallery verify with 70 absent local public media files; later qualification stages are unexecuted. Windows native and visual acceptance remain separate. --- .github/workflows/ci.yml | 4 +- docs/modiff-client-architecture.md | 17 +- docs/workflow-authoring-ux.md | 7 + scripts/bundle-budget.mjs | 8 + scripts/operation-authoring.test.mjs | 93 +++++ scripts/template-operation-fixtures.py | 26 +- scripts/workflow-auto-weight-loading.test.mjs | 196 +++++++++- src/studio/types.ts | 2 + src/workflow/workflowModelInventory.ts | 19 + tests/e2e/studio-mocked/studio-mocked.spec.ts | 370 ++++++++++++++---- 10 files changed, 666 insertions(+), 76 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 6f6d763a..7be3468f 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -33,7 +33,7 @@ jobs: with: repository: sdevil7th/MoDiff # Paired image stages, scoped enhancement and FLUX3 evaluation contracts. - ref: 93fe5949e528f698a1cbed60bf661a9d0d9cc859 + ref: 1ebc871f069dcd38735e983aac67d617476fac23 path: MoDiff persist-credentials: false - name: Verify the pinned backend supports native setup @@ -86,7 +86,7 @@ jobs: with: repository: sdevil7th/MoDiff # Match the immutable backend revision in the Client quality job. - ref: 93fe5949e528f698a1cbed60bf661a9d0d9cc859 + ref: 1ebc871f069dcd38735e983aac67d617476fac23 path: MoDiff persist-credentials: false - name: Verify the pinned backend supports native setup diff --git a/docs/modiff-client-architecture.md b/docs/modiff-client-architecture.md index c26d6a71..69130b4f 100644 --- a/docs/modiff-client-architecture.md +++ b/docs/modiff-client-architecture.md @@ -282,6 +282,15 @@ download metadata. Installed files are labeled **Installed**, separately from execution support, qualification and required-runtime status. This discovery path does not extend the legacy Studio model union or infer Auto/template grants. +The same generic inventory may declare `defaultWeightFormat` as `native`, +`fp8r` or `nvfp4` for new drafts. A non-native default must match exactly one +declared format selection for the capability's own repository and sole immutable +revision. The ordinary backend starter supplies the resolved field value together +with its selected profile's size and compute dtype. The client validates the +declaration and copies that starter through the existing node factory. Discovery, +opening saved graphs and Run never apply these creation defaults over authored +values. Defaults do not establish installed files, resource fit or qualification. + Backend-resolved operation schemas suppress mount-time selector initialization and automatic signal actions that would replace exact-profile metadata with generic family defaults. Signal transport, connection-driven control visibility @@ -1902,7 +1911,9 @@ A non-native selection needs the current backend's exact profile, pipeline, Hub repository, immutable revision and format-specific file manifest. Model Manager uses that manifest, so a native-only installation cannot satisfy the selected format. This metadata grants no runtime, Auto, model or Gallery qualification -and does not install packages or files during discovery. Non-native selections -require Expert because the backend Auto resource contract has no format field; -native-only plans cannot be reused as format-specific readiness or hardware-fit +and does not install packages or files during discovery. The legacy managed +Studio form planner still requires Expert for non-native formats. Ordinary +workflow graphs carry the exact `weight_format` field into the complete backend +workflow Auto plan; only that plan can admit a declared format and workload. +Native-only plans cannot be reused as format-specific readiness or hardware-fit evidence. diff --git a/docs/workflow-authoring-ux.md b/docs/workflow-authoring-ux.md index 73106f33..62c02f27 100644 --- a/docs/workflow-authoring-ux.md +++ b/docs/workflow-authoring-ux.md @@ -21,6 +21,13 @@ route qualifies, the connected draft has an empty required model field. Select a model there before running. Run independently rechecks inputs and resources. Remembered selections are bounded local authoring preferences, not execution approval. +Fresh public model selections use the backend's declared size, compute dtype and +optional weight storage format defaults. A bounded profile can therefore start +at 512 square with FP8r storage while retaining BF16 compute. These are visible +creation settings; selecting a model never installs its files or qualifies it +for Automatic memory. Saved workflows and authored values keep their settings, +and Run checks the exact current graph against the backend's resource plan. + Composable routes expose meaningful independent nodes such as Load Models, Encode Prompt, Denoise and Decode Latents. Tasks can need additional image, mask, conditioning or audio operations. Whole-pipeline routes expose Generate/Edit diff --git a/scripts/bundle-budget.mjs b/scripts/bundle-budget.mjs index 62c05314..5361bbc9 100644 --- a/scripts/bundle-budget.mjs +++ b/scripts/bundle-budget.mjs @@ -1,3 +1,8 @@ +// Exact immutable default-weight-format validation measures largest/startup/ +// deferred gzip 488155/666461/326431 versus accepted 488073/666379/326387. +// Add only measured feature growth 82/82/44 bytes, retaining 15/17/39 bytes +// of headroom. Dependencies, minifier, loading boundaries, validators and the +// independent 65536-byte deferred chunk cap remain unchanged. // Exact cache observations, exclusive-owner enhancement removal, same-artifact // layout preservation and semantic crossing checks measure largest/startup/ // deferred gzip 488073/666379/326387 versus 487800/666105/324323. @@ -204,6 +209,7 @@ const SOURCE_LICENSES = new URL('../public/THIRD_PARTY_LICENSES.txt', import.met // Retain the strict current-owner/parser checks and allow 128 startup/chunk // bytes only; dependencies, lazy boundaries, minifier and deferred caps stay fixed. const MAX_STARTUP_CHUNK_GZIP_BYTES = + 82 + 273 + 6816 + 1769 + @@ -316,6 +322,7 @@ const MAX_STARTUP_CHUNK_GZIP_BYTES = // Preserve the separately measured 64-byte shared loading-policy allowance above. // Preserve the measured 384-byte selected-image authoring allowance above. const MAX_STARTUP_GZIP_BYTES = + 82 + 274 + 6814 + 1768 + @@ -512,6 +519,7 @@ const MAX_DEFERRED_CHUNK_GZIP_BYTES = 64 * 1024; // 321033-byte cap, preserving 39 bytes of headroom at 321227. Startup caps, the // 65536-byte deferred chunk cap, dependencies and loading boundaries stay fixed. const MAX_DEFERRED_GZIP_BYTES = + 44 + 2064 + 935 + 103 + diff --git a/scripts/operation-authoring.test.mjs b/scripts/operation-authoring.test.mjs index 24049b63..5272b3d5 100644 --- a/scripts/operation-authoring.test.mjs +++ b/scripts/operation-authoring.test.mjs @@ -2806,6 +2806,99 @@ test('runtime option presentation preserves dynamic authority, dictionary member assert.deepEqual(options.runtimeOptionEntries(['legacy'], ['new']), options.runtimeOptionEntries(['legacy'])); }); +test('generic model default weight format requires its exact declared immutable selection', async () => { + const inventory = await server.ssrLoadModule('/src/workflow/workflowModelInventory.ts'); + const model = { + defaultRepo: 'reviewed/future-image', + defaultWeightFormat: 'fp8r', + revisionCandidates: ['a'.repeat(40)], + weightFormatSelections: [ + { + weightFormat: 'fp8r', + repo: 'reviewed/future-image', + revision: 'a'.repeat(40), + downloadFiles: ['model_index.json', 'variants/fp8r/model.safetensors'], + }, + ], + }; + const before = structuredClone(model); + assert.equal(inventory.parseWorkflowModelInventory(model, model.defaultRepo).defaultWeightFormat, 'fp8r'); + assert.deepEqual(model, before); + for (const invalid of [ + { ...model, defaultWeightFormat: null }, + { ...model, defaultWeightFormat: 'unsupported' }, + { ...model, defaultWeightFormat: 'nvfp4' }, + { ...model, defaultWeightFormat: 0 }, + { ...model, defaultWeightFormat: {} }, + { ...model, weightFormatSelections: undefined }, + { ...model, weightFormatSelections: [...model.weightFormatSelections, ...model.weightFormatSelections] }, + { ...model, revisionCandidates: undefined }, + { ...model, revisionCandidates: [] }, + { ...model, revisionCandidates: ['b'.repeat(40)] }, + { ...model, revisionCandidates: ['a'.repeat(40), 'b'.repeat(40)] }, + { ...model, weightFormatSelections: [{ ...model.weightFormatSelections[0], repo: 'other/model' }] }, + { ...model, weightFormatSelections: [{ ...model.weightFormatSelections[0], downloadFiles: [] }] }, + ]) + assert.throws(() => inventory.parseWorkflowModelInventory(invalid, model.defaultRepo), /Invalid workflow model/); + const foreign = inventory.parseWorkflowModelInventory(model, 'another/model'); + assert.equal(foreign.defaultWeightFormat, undefined, 'a sibling repository cannot inherit a default selection'); + const historical = { ...model, defaultWeightFormat: undefined }; + assert.equal(inventory.parseWorkflowModelInventory(historical, model.defaultRepo).defaultWeightFormat, undefined); + assert.equal( + inventory.parseWorkflowModelInventory({ ...historical, defaultWeightFormat: 'native' }, model.defaultRepo) + .defaultWeightFormat, + 'native', + ); +}); + +test('workflow inventory character guards preserve exact control and filename boundaries', async () => { + const inventory = await server.ssrLoadModule('/src/workflow/workflowModelInventory.ts'); + const repo = 'reviewed/future-image'; + const selection = { + weightFormat: 'fp8r', + repo, + revision: 'a'.repeat(40), + downloadFiles: ['weights/model.safetensors'], + }; + const model = { + defaultRepo: repo, + defaultWeightFormat: 'fp8r', + revisionCandidates: [selection.revision], + weightFormatSelections: [selection], + }; + for (const character of ['\u0000', '\u001f', '\u007f', '\u009f']) { + assert.throws( + () => inventory.parseWorkflowModelInventory({ ...model, qualificationStatus: `declared${character}` }, repo), + /Invalid workflow model/, + ); + } + for (const character of ['\u0000', '\u001f', '\u007f', '\u009f', ...'\\:*?[]{}']) { + assert.throws( + () => + inventory.parseWorkflowModelInventory( + { + ...model, + weightFormatSelections: [{ ...selection, downloadFiles: [`weights/model${character}.safetensors`] }], + }, + repo, + ), + /Invalid workflow model/, + ); + } + const allowed = ' !~\u00a0𝄞'; + const parsed = inventory.parseWorkflowModelInventory( + { + ...model, + qualificationStatus: allowed, + weightFormatSelections: [{ ...selection, downloadFiles: [`weights/model${allowed}.safetensors`] }], + }, + repo, + ); + assert.equal(parsed.qualificationStatus, allowed); + assert.equal(parsed.defaultWeightFormat, 'fp8r'); + assert.equal(parsed.weightFormatSelections[0].downloadFiles[0], `weights/model${allowed}.safetensors`); +}); + test('generic public model inventory preserves native defaults and exact additional format Install/Repair selections', async () => { const inventory = await server.ssrLoadModule('/src/workflow/workflowModelInventory.ts'); const actual = JSON.parse( diff --git a/scripts/template-operation-fixtures.py b/scripts/template-operation-fixtures.py index e7ae1ffb..6d480658 100644 --- a/scripts/template-operation-fixtures.py +++ b/scripts/template-operation-fixtures.py @@ -12,6 +12,7 @@ sys.dont_write_bytecode = True sys.path.insert(0, os.environ.get("MODIFF_BACKEND_DIR", str(Path(__file__).resolve().parents[2] / "MoDiff"))) selections = json.load(sys.stdin) +mock_cuda = "--mock-cuda" in sys.argv[1:] with tempfile.TemporaryDirectory(prefix="modiff-template-schema-") as temporary: isolated = Path(temporary) @@ -30,8 +31,23 @@ CONFIG.hf["cache_dir"] = str(isolated / "hub") from modiff.custom_extensions import ExtensionStore + from modiff import hardware - with contextlib.redirect_stdout(io.StringIO()), patch.object(ExtensionStore, "load_enabled", return_value=None): + # Transport tests may describe a CUDA-equipped host without probing or + # constructing a GPU runtime. The ordinary schema and option describers + # still derive all fields; this supplies only their hardware boundary. + fixture_devices = [{ + "type": "cuda", "device": "cuda:0", "index": 0, + "name": "Mock CUDA transport device", "backend": "cuda", + "vendor": "nvidia", "memory_kind": "dedicated", "vram_total": 16 * 1024**3, + }, {"type": "cpu", "device": "cpu:0", "index": 0}] if mock_cuda else None + + with contextlib.ExitStack() as patches, contextlib.redirect_stdout(io.StringIO()): + patches.enter_context(patch.object(ExtensionStore, "load_enabled", return_value=None)) + if fixture_devices is not None: + patches.enter_context(patch.object(hardware, "get_normalized_devices", return_value=fixture_devices)) + import torch + patches.enter_context(patch.object(torch.cuda, "is_bf16_supported", return_value=True)) from modules import MODULE_MAP from modiff.operation_catalog import build_operation_catalog from modiff.operation_starters import resolve_operation_starter @@ -42,9 +58,11 @@ contracts, _ = build_operation_catalog(MODULE_MAP, [], catalog_resolver=lambda: {}) describer = object.__new__(WebServer) describer.modules = MODULE_MAP + if fixture_devices is not None: + describer._available_runtime_devices = lambda: ["cuda:0", "cpu", "cpu:0"] describer._optimization_runtime_context = lambda: ( - "schema-fixture", {"devices": [], "platform": sys.platform}, - {"detected": "cpu", "status": "ready", "execution_ready": True}, + "schema-fixture", {"devices": fixture_devices or [], "platform": sys.platform}, + {"detected": "cuda" if mock_cuda else "cpu", "status": "ready", "execution_ready": True}, ) rows, registry, historical_cosmos_image = [], {}, None @@ -83,7 +101,7 @@ def describe(key): for key in ("modules.ImageOperations.ProcessImage", "modules.ModularDiffusers.Lora", "modules.DiffusersImage.LoadAdapter", "modules.Spandrel.Upscaler", "modules.Image.Preview", - "modules.DiffusersImage.OutpaintCanvas", "modules.Audio.Export", "modules.Audio.Load", + "modules.DiffusersImage.OutpaintCanvas", "modules.Audio.Export", "modules.Audio.Load", "modules.Image.Load", "modules.DiffusersAudio.LoadAdapter"): describe(key) if any(item["selection"]["pipelineClass"] == "Cosmos3OmniModularPipeline" for item in selections): diff --git a/scripts/workflow-auto-weight-loading.test.mjs b/scripts/workflow-auto-weight-loading.test.mjs index 5e29375d..1582b14f 100644 --- a/scripts/workflow-auto-weight-loading.test.mjs +++ b/scripts/workflow-auto-weight-loading.test.mjs @@ -11,6 +11,16 @@ const selection = { authoringRecipeId: 'retained-z-image-text-to-image:v1', bindingSpec: { modelType: 'ZImageModularPipeline', mode: 'modular_text_to_image' }, }; +const publicSelections = ['Flux3DistilledModularPipeline', 'Flux3ModularPipeline'].flatMap((pipelineClass) => + ['text_to_image', 'edit_image'].map((task) => ({ + id: `${pipelineClass}:${task}`, + selection: { + pipelineClass, + task, + executionProfileId: `${pipelineClass === 'Flux3DistilledModularPipeline' ? 'flux3-klein' : 'flux3-klein-base'}:official-provider:v1`, + }, + })), +); let server, fixture, row, starter, template, form, modules, originalFetch; before(async () => { @@ -37,6 +47,9 @@ before(async () => { requests: '/src/workflow/operationStarterRequest.ts', factory: '/src/workflow/nodeFactory.ts', authoring: '/src/studio/templateOperationWorkflow.ts', + drafts: '/src/workflow/workflowDraft.ts', + choices: '/src/workflow/workflowChoices.ts', + catalog: '/src/workflow/operationCatalog.ts', groups: '/src/workflow/visualOperationGroups.ts', templates: '/src/studio/templates.ts', profiles: '/src/studio/modelProfiles.ts', @@ -59,7 +72,7 @@ before(async () => { cwd: backend, encoding: 'utf8', maxBuffer: 64 * 1024 * 1024, - input: JSON.stringify([{ id: 'z_image_quick_concept', selection }]), + input: JSON.stringify([{ id: 'z_image_quick_concept', selection }, ...publicSelections]), }), ); row = fixture.recipes[0]; @@ -146,6 +159,187 @@ const plan = (patches) => ({ sharedMemory: false, }); +function freshPublicGraph(id) { + const selected = publicSelections.find((item) => item.id === id).selection; + const source = fixture.recipes.find((item) => item.id === id).starter; + const contracts = modules.operations.parseOperationContracts( + fixture.publicPayload.operationContracts, + fixture.publicPayload.operationContractSchemaVersion, + ); + const resolved = modules.requests.parseOperationStarter( + structuredClone(source), + selected.pipelineClass, + selected.task, + contracts, + selected, + ); + const draft = modules.drafts.createWorkflowDraft(resolved, fixture.registry); + assert.deepEqual(draft.notices, []); + return draft.graph; +} + +test('current public profiles seed bounded defaults through ordinary backend starters without changing authored graphs', () => { + const contracts = modules.operations.parseOperationContracts( + fixture.publicPayload.operationContracts, + fixture.publicPayload.operationContractSchemaVersion, + ); + const support = modules.catalog.parsePipelineSupport( + fixture.publicPayload.pipelineSupport, + fixture.publicPayload.pipelineSupportSchemaVersion, + contracts, + ); + const descriptors = modules.choices.parseWorkflowModelDescriptors(fixture.publicPayload, support); + for (const { id, selection: selected } of publicSelections) { + const before = flow().toObject(); + const graph = freshPublicGraph(id); + assert.deepEqual(flow().toObject(), before, 'creating a new draft cannot rewrite the current document'); + const descriptor = descriptors.find((item) => item.profileId === selected.executionProfileId); + assert.equal(descriptor.inventory.defaultWeightFormat, 'fp8r'); + const effective = modules.flow.expandFlowExecutionGraph(graph.nodes, graph.edges); + const owner = effective.nodes.find((node) => node.data.action === 'ModelsLoader'); + const denoise = effective.nodes.find((node) => node.data.action === 'Denoise'); + const value = (node, field) => node.data.params[field].value ?? node.data.params[field].default; + assert.equal(value(owner, 'model_type'), selected.pipelineClass); + assert.equal(value(owner, 'weight_format'), 'fp8r'); + assert.equal(value(owner, 'dtype'), 'bfloat16'); + assert.deepEqual([value(denoise, 'width'), value(denoise, 'height')], [512, 512]); + assert.equal(value(denoise, 'num_inference_steps'), id.includes('Distilled') ? 16 : 50); + if (selected.pipelineClass === 'Flux3ModularPipeline') { + const guider = effective.nodes.find((node) => node.data.action === 'Guider'); + assert.equal(value(guider, 'guidance_scale'), 3.5); + assert.equal(value(guider, 'guidance_rescale'), 0); + } + assert.equal( + effective.nodes.some((node) => node.data.action === 'ImageEncode'), + selected.task === 'edit_image', + ); + } +}); + +test('real public ordinary graphs retain authored values through one accepted Auto submission and Expert bypass', async () => { + for (const { id } of publicSelections) { + const graph = modules.groups.unpackVisualOperationGroups(freshPublicGraph(id)).graph; + const owner = graph.nodes.find((node) => node.data.action === 'ModelsLoader'); + const encoder = graph.nodes.find((node) => node.data.action === 'EncodePrompt'); + const denoise = graph.nodes.find((node) => node.data.action === 'Denoise'); + // This is mocked transport, not a CUDA/runtime claim. The pure fixture + // intentionally reports CPU only, which cannot export CPU-offload hooks. + owner.data.params.device.value = 'cuda'; + encoder.data.params.prompt.value = `Authored ${id} prompt`; + denoise.data.params.seed.value = { value: 4109, random: false }; + const image = graph.nodes.find((node) => node.data.module === 'modules.Image' && node.data.action === 'Load'); + if (image) image.data.params.file.value = ['unit-managed-inputs/cobalt.png', 'unit-managed-inputs/layout.png']; + flow().replaceGraph(graph); + const before = exported(); + const submissions = [], + requests = []; + globalThis.fetch = async (url, init) => { + requests.push(String(url)); + const body = JSON.parse(init.body); + if (String(url).endsWith('/auto_resource/workflow')) { + assert.deepEqual(body.graph.nodes, JSON.parse(JSON.stringify(before.nodes))); + return response({ + ...plan([]), + loaders: [ + { + nodeId: owner.id, + modelType: owner.data.params.model_type.value, + repository: owner.data.params.repo_id.value.value, + consumers: [denoise.id], + candidateId: 'mock-public-fp8r-transport', + }, + ], + requirements: { ramGb: 24, vramGb: 8, diskGb: 0 }, + available: { ramGb: 28, vramGb: 12, diskGb: 64 }, + }); + } + assert.ok(String(url).endsWith('/graph')); + submissions.push(body); + return response({ task_id: `mock-transport-${id}`, sid: 'session-1', message: 'queued' }); + }; + modules.studio.useStudioStore.setState({ form: { ...form, resourceMode: 'auto' } }); + const result = await modules.coordinator.coordinateGraphRun({ sid: 'session-1' }); + assert.equal(requests.length, 2); + assert.equal(submissions.length, 1); + assert.deepEqual(result.submittedGraph.nodes, before.nodes); + assert.deepEqual(result.submittedGraph.paths, before.paths); + assert.equal(result.submittedGraph.runtimeHints.resourceMode, 'auto'); + assert.equal(result.submittedGraph.runtimeHints.workflowAutoPlan.graphHash, plan([]).plannedGraphHash); + assert.deepEqual(exported(), before); + modules.studio.useStudioStore.setState({ form: { ...form, resourceMode: 'expert' } }); + await modules.coordinator.coordinateGraphRun({ sid: 'session-1' }); + assert.equal(requests.length, 3, 'Expert adds one submission and never requests an Auto plan'); + assert.equal(submissions.length, 2); + assert.deepEqual(submissions[1].nodes, JSON.parse(JSON.stringify(before.nodes))); + } +}); + +test('public Auto refusal retains exact authored graph and creates no task or submission', async () => { + for (const { id } of publicSelections) { + const graph = modules.groups.unpackVisualOperationGroups(freshPublicGraph(id)).graph; + const owner = graph.nodes.find((node) => node.data.action === 'ModelsLoader'); + owner.data.params.device.value = 'cuda'; + flow().replaceGraph(graph); + const before = exported(); + const requests = []; + globalThis.fetch = async (url) => { + requests.push(String(url)); + assert.ok(String(url).endsWith('/auto_resource/workflow')); + return response({ + ...plan([]), + canAutoRun: false, + issues: ['No exact qualified FP8r recipe fits this preserved reference workload'], + available: { ramGb: 28, vramGb: 0, diskGb: 64 }, + }); + }; + await assert.rejects( + modules.coordinator.coordinateGraphRun({ sid: 'session-1' }), + /No exact qualified FP8r recipe/, + ); + assert.equal(requests.length, 1); + assert.deepEqual(exported(), before); + assert.equal(modules.studio.useStudioStore.getState().currentRunContext, null); + assert.deepEqual(modules.tasks.useTaskStore.getState().queuedTasks, {}); + } +}); + +for (const change of ['graph', 'tab', 'policy', 'cancelled-request']) + test(`a pending public Auto plan cannot submit after ${change}`, async () => { + const graph = modules.groups.unpackVisualOperationGroups(freshPublicGraph(publicSelections[0].id)).graph; + const owner = graph.nodes.find((node) => node.data.action === 'ModelsLoader'); + const encoder = graph.nodes.find((node) => node.data.action === 'EncodePrompt'); + owner.data.params.device.value = 'cuda'; + flow().replaceGraph(graph); + let release, reject, started; + const pending = new Promise((resolve, fail) => { + release = resolve; + reject = fail; + }); + const ready = new Promise((resolve) => { + started = resolve; + }); + let requests = 0; + globalThis.fetch = async (url) => { + requests++; + assert.ok(String(url).endsWith('/auto_resource/workflow')); + started(); + return pending; + }; + const run = modules.coordinator.coordinateGraphRun({ sid: 'session-1' }); + await ready; + if (change === 'graph') flow().setParamWithHistory(encoder.id, 'prompt', 'A newer authored prompt'); + if (change === 'tab') modules.studio.useStudioStore.setState({ activeWorkflowTabId: 'newer-workflow' }); + if (change === 'policy') modules.studio.useStudioStore.setState({ form: { ...form, resourceMode: 'expert' } }); + const current = flow().toObject(); + if (change === 'cancelled-request') reject(new DOMException('Planning cancelled', 'AbortError')); + else release(response(plan([]))); + await assert.rejects(run, change === 'cancelled-request' ? /abort|cancel/iu : /workflow or mode changed/); + assert.equal(requests, 1); + assert.deepEqual(flow().toObject(), current); + assert.equal(modules.studio.useStudioStore.getState().currentRunContext, null); + assert.deepEqual(modules.tasks.useTaskStore.getState().queuedTasks, {}); + }); + test('actual backend weight-loading descriptor survives factory, fresh Model Setup and API serialization', () => { const key = 'modules.ModularDiffusers.ModelsLoader'; const descriptor = fixture.registry[key].params.weight_loading_mode; diff --git a/src/studio/types.ts b/src/studio/types.ts index fd5abbb0..7ad2bec4 100644 --- a/src/studio/types.ts +++ b/src/studio/types.ts @@ -1131,6 +1131,8 @@ export type StudioModelProfile = { artifactInstallRequired?: boolean; alternateArtifact?: string; defaultDtype: StudioFormState['dtype']; + /** Backend-owned default for new drafts; never an execution-time override. */ + defaultWeightFormat?: 'native' | 'fp8r' | 'nvfp4'; defaultSize: { width: number; height: number; aspectRatio: StudioAspectRatio }; recommendedSteps: number; recommendedGuidance: number; diff --git a/src/workflow/workflowModelInventory.ts b/src/workflow/workflowModelInventory.ts index 75e9584c..5cce3fae 100644 --- a/src/workflow/workflowModelInventory.ts +++ b/src/workflow/workflowModelInventory.ts @@ -15,6 +15,8 @@ export type WorkflowModelInventory = { optionalRuntimeRequirement?: OptionalRuntimeRequirement; nativeSelection?: Omit; weightFormatSelections?: WeightFormatSelection[]; + /** Fresh authoring only; installed files and Auto admission remain independent. */ + defaultWeightFormat?: 'native' | 'fp8r' | 'nvfp4'; }; function invalid(): never { @@ -111,6 +113,7 @@ export function parseWorkflowModelInventory( 'revisionCandidates', 'downloadFiles', 'weightFormatSelections', + 'defaultWeightFormat', ]; if (!keys.some((key) => value[key] !== undefined)) return undefined; const result: WorkflowModelInventory = {}; @@ -149,6 +152,22 @@ export function parseWorkflowModelInventory( result.nativeSelection = { repo: repository(repo), revision: revisions[0]!, downloadFiles: nativeFiles }; const selections = parseWeightFormatSelections(value.weightFormatSelections); if (selections && value.defaultRepo === repo) result.weightFormatSelections = selections; + if (value.defaultWeightFormat !== undefined) { + const format = value.defaultWeightFormat; + if (format !== 'native' && format !== 'fp8r' && format !== 'nvfp4') invalid(); + if ( + format !== 'native' && + (revisions.length !== 1 || + selections?.filter( + (selection) => + selection.weightFormat === format && + selection.repo === value.defaultRepo && + selection.revision === revisions[0], + ).length !== 1) + ) + invalid(); + if (value.defaultRepo === repo) result.defaultWeightFormat = format; + } return result; } diff --git a/tests/e2e/studio-mocked/studio-mocked.spec.ts b/tests/e2e/studio-mocked/studio-mocked.spec.ts index ad7add3b..2a6c537a 100644 --- a/tests/e2e/studio-mocked/studio-mocked.spec.ts +++ b/tests/e2e/studio-mocked/studio-mocked.spec.ts @@ -5638,15 +5638,22 @@ type ImageTemplateSchemaFixture = { let imageTemplateSchemaPromise: Promise; async function imageTemplateSchemas() { + imageTemplateSchemaPromise ??= generateTemplateSchemas( + Object.entries(IMAGE_TEMPLATE_EXECUTION_SELECTIONS).map(([id, selection]) => ({ id, selection })), + ); + return structuredClone(await imageTemplateSchemaPromise); +} + +async function generateTemplateSchemas(selections: unknown[], mockCuda = false): Promise { const python = process.env.MODIFF_BACKEND_PYTHON || path.join(BACKEND_ROOT, '.venv', process.platform === 'win32' ? 'Scripts/python.exe' : 'bin/python'); const script = path.join(CLIENT_ROOT, 'scripts', 'template-operation-fixtures.py'); const command = process.platform === 'win32' ? python : path.join(BACKEND_ROOT, 'scripts', 'with-runtime-env.sh'); - const args = process.platform === 'win32' ? [script] : [python, script]; + const args = [...(process.platform === 'win32' ? [script] : [python, script]), ...(mockCuda ? ['--mock-cuda'] : [])]; // These are the real, source-derived authoring contracts, with no model // construction or generation. Each scenario receives an isolated copy. - imageTemplateSchemaPromise ??= new Promise((resolve, reject) => { + return new Promise((resolve, reject) => { const child = execFile( command, args, @@ -5665,11 +5672,8 @@ async function imageTemplateSchemas() { } }, ); - child.stdin!.end( - JSON.stringify(Object.entries(IMAGE_TEMPLATE_EXECUTION_SELECTIONS).map(([id, selection]) => ({ id, selection }))), - ); + child.stdin!.end(JSON.stringify(selections)); }); - return structuredClone(await imageTemplateSchemaPromise); } async function installImageFixtureRuntime(page: Page, templateId = 'z_image_quick_concept') { @@ -10929,71 +10933,160 @@ async function installOperationAuthoringRoutes( return starters; } +let publicFlux3AutoSchemaPromise: Promise; + /** Actual source DTOs with no sealed provider; HTTP mocks do not qualify execution. */ -async function installPublicFlux3AuthoringRoutes(page: Page, exactModel = false) { +async function installPublicFlux3AuthoringRoutes(page: Page, exactModel = false, currentAutoSchemas = false) { const standard = await installOperationAuthoringRoutes(page, exactModel); const fixture = JSON.parse( await fs.readFile(path.join(CLIENT_ROOT, 'tests/fixtures/public-flux3-missing-provider.v1.json'), 'utf8'), ); expect(fixture.activeProvider).toBeNull(); expect(fixture.starters).toHaveLength(8); + let defaultStarters: OperationStarter[] = []; + const defaultSelectionProfiles = new Map(); + if (currentAutoSchemas) { + const defaultSelections = ['Flux3DistilledModularPipeline', 'Flux3ModularPipeline'].map((pipelineClass) => ({ + id: pipelineClass, + selection: { + pipelineClass, + task: 'text_to_image', + executionProfileId: `${pipelineClass === 'Flux3DistilledModularPipeline' ? 'flux3-klein' : 'flux3-klein-base'}:official-provider:v1`, + }, + })); + const selections = [ + ...defaultSelections, + ...(fixture.starters as OperationStarter[]).map((starter) => ({ + id: starter.authoring!.id, + selection: { + pipelineClass: starter.pipelineClass, + task: starter.task, + executionProfileId: starter.authoring!.executionProfileIds[0]!, + authoringRecipeId: starter.authoring!.id, + }, + })), + ]; + publicFlux3AutoSchemaPromise ??= generateTemplateSchemas(selections, true); + for (const row of selections) + defaultSelectionProfiles.set(row.selection.pipelineClass, row.selection.executionProfileId); + const current = structuredClone(await publicFlux3AutoSchemaPromise); + defaultStarters = current.recipes + .filter((row) => defaultSelections.some((selection) => selection.id === row.id)) + .map((row) => row.starter); + fixture.starters = current.recipes.map((row) => row.starter); + fixture.registry = current.registry; + // The source payload's task-template contracts bind its exact specs and + // profiles. Keep that entire coherent DTO instead of mixing current + // task-template rows with unrelated older mocked capability records. + fixture.capabilitiesPayload = current.publicPayload; + // Cache presence is a mocked transport boundary. Use the exact current + // declared FP8r revision/files; it grants no planner or model authority. + await page.route('**/hf_cache**', (route) => + route.fulfill({ + json: fixture.capabilitiesPayload.capabilities + .filter((capability: { modelType: string }) => + defaultSelections.some((row) => row.selection.pipelineClass === capability.modelType), + ) + .map( + (capability: { + weightFormatSelections: { + weightFormat: string; + repo: string; + revision: string; + downloadFiles: string[]; + }[]; + }) => { + const selected = capability.weightFormatSelections.find((row) => row.weightFormat === 'fp8r'); + if (!selected) throw new Error('Current public source must declare an exact FP8r selection.'); + return { + id: selected.repo, + type: 'model', + complete: true, + installed: true, + planned_revision: selected.revision, + planned_files: selected.downloadFiles, + observed_selections: [{ revision: selected.revision, files: selected.downloadFiles, complete: true }], + revisions: [{ hash: selected.revision, size: 0, last_modified: 0 }], + }; + }, + ), + }), + ); + await page.route('**/runtime/status**', (route) => + route.fulfill({ + json: { + ready: true, + instance: 'mock', + config: { hf_token_configured: mockHfTokenConfigured }, + packages: { + torch: { + available: true, + cuda_available: true, + cuda_device_count: 1, + cuda_devices: [{ index: 0, name: 'Mock CUDA transport device', total_memory: 16 * 1024 ** 3 }], + }, + }, + }, + }), + ); + } const starters: OperationStarter[] = fixture.starters; - const publicModels = new Set( - fixture.capabilitiesPayload.capabilities.map((value: { modelType: string }) => value.modelType), - ); + const publicModels = new Set(starters.map((starter) => starter.pipelineClass)); await page.unroute('**/model_capabilities**'); await page.route('**/model_capabilities**', (route) => route.fulfill({ - json: { - ...fixture.capabilitiesPayload, - capabilities: [ - ...mockStudioExecutionCapabilities().filter((value) => !publicModels.has(value.modelType)), - ...fixture.capabilitiesPayload.capabilities, - ], - operationContracts: [ - ...standard.flatMap((starter) => starter.nodes.map((node) => node.operation)), - ...fixture.capabilitiesPayload.operationContracts, - ], - pipelineSupport: [ - ...[...new Set(standard.map((starter) => starter.pipelineClass))].map((pipelineClass) => ({ - pipelineClass, - coverage: 'local-adapter', - reason: 'Native authoring fixture; execution unqualified', - equivalentTo: [], - upstreamTasks: [], - tasks: standard - .filter((starter) => starter.pipelineClass === pipelineClass) - .map((starter) => ({ - task: starter.task, - execution: 'declared', - decomposition: starter.nodes.some((node) => - ['pipeline', 'integrated'].includes(node.operation.decomposition), - ) - ? 'pipeline' - : 'stages', - operationIds: starter.nodes.map((node) => node.operation.operationId), - executionProfileIds: - exactModel && pipelineClass === 'QwenImageModularPipeline' ? ['qwen-image:modular'] : [], - dependencies: exactModel && pipelineClass === 'QwenImageModularPipeline' ? 'ready' : 'unknown', - runtimeRequirements: - exactModel && pipelineClass === 'QwenImageModularPipeline' - ? [ - { - schemaVersion: 1, - delivery: 'base', - requiredNow: false, - profileIds: [], - executionProfileIds: ['qwen-image:modular'], - state: 'base_satisfied', - reason: 'base_runtime', - }, - ] - : [], + json: currentAutoSchemas + ? fixture.capabilitiesPayload + : { + ...fixture.capabilitiesPayload, + capabilities: [ + ...mockStudioExecutionCapabilities().filter((value) => !publicModels.has(value.modelType)), + ...fixture.capabilitiesPayload.capabilities, + ], + operationContracts: [ + ...standard.flatMap((starter) => starter.nodes.map((node) => node.operation)), + ...fixture.capabilitiesPayload.operationContracts, + ], + pipelineSupport: [ + ...[...new Set(standard.map((starter) => starter.pipelineClass))].map((pipelineClass) => ({ + pipelineClass, + coverage: 'local-adapter', + reason: 'Native authoring fixture; execution unqualified', + equivalentTo: [], + upstreamTasks: [], + tasks: standard + .filter((starter) => starter.pipelineClass === pipelineClass) + .map((starter) => ({ + task: starter.task, + execution: 'declared', + decomposition: starter.nodes.some((node) => + ['pipeline', 'integrated'].includes(node.operation.decomposition), + ) + ? 'pipeline' + : 'stages', + operationIds: starter.nodes.map((node) => node.operation.operationId), + executionProfileIds: + exactModel && pipelineClass === 'QwenImageModularPipeline' ? ['qwen-image:modular'] : [], + dependencies: exactModel && pipelineClass === 'QwenImageModularPipeline' ? 'ready' : 'unknown', + runtimeRequirements: + exactModel && pipelineClass === 'QwenImageModularPipeline' + ? [ + { + schemaVersion: 1, + delivery: 'base', + requiredNow: false, + profileIds: [], + executionProfileIds: ['qwen-image:modular'], + state: 'base_satisfied', + reason: 'base_runtime', + }, + ] + : [], + })), })), - })), - ...fixture.capabilitiesPayload.pipelineSupport, - ], - }, + ...fixture.capabilitiesPayload.pipelineSupport, + ], + }, }), ); await page.unroute('**/nodes'); @@ -11020,12 +11113,16 @@ async function installPublicFlux3AuthoringRoutes(page: Page, exactModel = false) (starter) => starter.pipelineClass === selection.pipelineClass && starter.task === selection.task && - starter.authoring?.id === selection.authoringRecipeId && - starter.authoring.executionProfileIds.includes(selection.executionProfileId), + (selection.authoringRecipeId + ? starter.authoring?.id === selection.authoringRecipeId + : defaultStarters.includes(starter)) && + (starter.authoring?.executionProfileIds ?? [defaultSelectionProfiles.get(starter.pipelineClass)]).includes( + selection.executionProfileId, + ), ); const baseline = !selection.executionProfileId && !selection.authoringRecipeId - ? standard.find( + ? [...defaultStarters, ...standard].find( (starter) => starter.pipelineClass === selection.pipelineClass && starter.task === selection.task, ) : undefined; @@ -11957,10 +12054,10 @@ async function publicFlux3FormatControl(page: Page) { } /** Existing mocked HTTP/Save routes, real captured schema, normal UI edits. */ -async function openPublicFlux3Fp8rWorkflow(page: Page) { +async function openPublicFlux3Fp8rWorkflow(page: Page, keepAutomatic = false) { await page.setViewportSize({ width: 1920, height: 1200 }); await ensureFrontend(); - const fixture = await installPublicFlux3AuthoringRoutes(page, true); + const fixture = await installPublicFlux3AuthoringRoutes(page, true, keepAutomatic); const comparisons = JSON.parse( await fs.readFile(path.join(CLIENT_ROOT, 'tests/fixtures/public-flux3-migration-comparisons.v1.json'), 'utf8'), ); @@ -11977,6 +12074,7 @@ async function openPublicFlux3Fp8rWorkflow(page: Page) { // Only these actual unprofiled comparison requests supplement the existing // strict public routes. No private starter or profile is relabelled. await page.route('**/operations/starter', (route) => { + if (keepAutomatic) return route.fallback(); const selection = route.request().postDataJSON(); if (Object.keys(selection).sort().join(',') !== 'pipelineClass,task') return route.fallback(); const row = comparisons.comparisons.find( @@ -12013,8 +12111,10 @@ async function openPublicFlux3Fp8rWorkflow(page: Page) { await expect(page.getByRole('button', { name: 'Connected', exact: true })).toBeVisible(); const policy = page.getByTestId('topbar-resource-policy'); await expect(policy).toHaveAttribute('aria-label', 'Memory policy: Automatic. Click to switch.'); - await policy.click(); - await expect(policy).toHaveAttribute('aria-label', 'Memory policy: Custom. Click to switch.'); + if (!keepAutomatic) { + await policy.click(); + await expect(policy).toHaveAttribute('aria-label', 'Memory policy: Custom. Click to switch.'); + } await (await publicFlux3FormatSetup(page)).getByRole('button', { name: 'Choose model', exact: true }).click(); const picker = page.getByRole('dialog', { name: 'Choose model for Load Models', exact: true }); await picker.getByRole('searchbox', { name: 'Search compatible models' }).fill('FLUX3'); @@ -12031,10 +12131,148 @@ async function openPublicFlux3Fp8rWorkflow(page: Page) { await page.getByRole('option', { name: 'fp8r', exact: true }).click(); await expect(format).toHaveText('fp8r'); await expect.poll(async () => (await publicFlux3FormatSnapshot(page)).selection.weightFormat).toBe('fp8r'); + if (keepAutomatic) { + // Model changes preserve compatible authored values, including the CPU + // device from the initial standard fixture. Author the declared CUDA + // placement through its real control before exercising a bounded plan. + const device = (await publicFlux3FormatSetup(page)).getByLabel('Device', { exact: true }); + await device.click(); + await page.getByRole('option', { name: 'cuda:0', exact: true }).click(); + await expect(device).toHaveText('cuda:0'); + } await waitForOperationGraphToSettle(page); return { fixture, forbiddenPosts }; } +for (const accepted of [true, false]) + test(`ordinary public FLUX3 FP8r Automatic Run ${accepted ? 'submits its accepted graph exactly once' : 'refuses without submission or authored changes'}`, async ({ + page, + }) => { + // Current source schemas describe a mocked CUDA/BF16 host and exact cached + // artifact selection. The plan response exercises transport only; neither + // its acceptance nor catalog source eligibility qualifies a model run. + const { forbiddenPosts } = await openPublicFlux3Fp8rWorkflow(page, true); + const prompt = page.locator('.react-flow__node').getByLabel('Prompt *', { exact: true }); + await prompt.fill('A ceramic teapot on a wooden table, soft morning light.'); + await prompt.blur(); + const denoiseId = await page.evaluate( + () => window.__MODIFF_E2E__!.getState().flow.nodes.find((node) => node.action === 'Denoise')!.id, + ); + const denoise = page.locator(`.react-flow__node[data-id="${denoiseId}"]`); + for (const dimension of ['width', 'height']) { + const input = denoise.locator(`[data-key="${dimension}"] input`); + await input.fill('512'); + await input.blur(); + } + const seed = page.locator('.react-flow__node [data-key="seed"] input'); + const randomSeed = page.getByRole('button', { name: 'Toggle random Seed', exact: true }); + if ((await randomSeed.getAttribute('aria-pressed')) === 'true') await randomSeed.click(); + await seed.fill('4109'); + await seed.blur(); + await waitForOperationGraphToSettle(page); + const before = await publicFlux3FormatSnapshot(page); + expect(before.resourceMode).toBe('auto'); + expect(before.parent.executionProfileId).toBe('flux3-klein:official-provider:v1'); + expect(before.selection).toMatchObject({ + pipelineClass: 'Flux3DistilledModularPipeline', + repository: { source: 'hub', value: 'black-forest-labs/flux-3-image-klein' }, + revision: '8454017f9ebaada30c998fccd9f67a80c7580f68', + dtype: 'bfloat16', + weightFormat: 'fp8r', + quantConfigConnected: false, + }); + const readExecution = () => + page.evaluate(async () => { + const { useFlowStore } = await import('/src/stores/useFlowStore.ts'); + const graph = useFlowStore.getState().exportGraph('mock-read-only', undefined, { randomizeSeeds: false }); + return JSON.parse(JSON.stringify({ nodes: graph.nodes, paths: graph.paths })) as Pick< + ApiGraphExport, + 'nodes' | 'paths' + >; + }); + const expectedGraph = await readExecution(); + expect(expectedGraph.nodes[denoiseId]!.params).toMatchObject({ width: { value: 512 }, height: { value: 512 } }); + expect(expectedGraph.nodes[before.selection.ownerId]!.params).toMatchObject({ + device: { value: 'cuda:0' }, + weight_loading_mode: { value: 'cpu' }, + offload_mode: { value: 'model_cpu' }, + auto_offload: { value: true }, + }); + const plans: Array<{ schemaVersion: number; graph: Pick }> = []; + const submissions: ApiGraphExport[] = []; + const refusal = 'The exact selected FP8r workflow does not fit the available memory.'; + const plannedGraphHash = `sha256:workflow-auto-v1:${'b'.repeat(64)}`; + const consumers = Object.entries(expectedGraph.nodes) + .filter(([, node]) => node.action === 'Denoise') + .map(([id]) => id); + await page.route('**/auto_resource/workflow', (route) => { + plans.push(route.request().postDataJSON()); + return route.fulfill({ + json: { + schemaVersion: 1, + graphHash: `sha256:workflow-auto-v1:${'a'.repeat(64)}`, + plannedGraphHash, + canAutoRun: accepted, + issues: accepted ? [] : [refusal], + message: 'Mocked workflow plan transport; no hardware admission claim', + patches: [], + loaders: [ + { + nodeId: before.selection.ownerId, + modelType: before.selection.pipelineClass, + repository: 'black-forest-labs/flux-3-image-klein', + consumers, + candidateId: 'mock-preserved-public-fp8r', + }, + ], + requirements: { ramGb: 24, vramGb: 8, diskGb: 0 }, + available: { ramGb: 28, vramGb: accepted ? 12 : 0, diskGb: 64 }, + sharedMemory: false, + }, + }); + }); + await page.route('**/graph', (route) => { + const graph: ApiGraphExport = route.request().postDataJSON(); + submissions.push(graph); + return route.fulfill({ + json: { error: false, message: 'queued', sid: graph.sid, task_id: 'public-flux3-auto-transport' }, + }); + }); + const run = page.getByTestId('studio-run'); + await expect(run).toBeEnabled(); + await run.click(); + await expect.poll(() => plans.length).toBe(1); + expect(plans[0]).toMatchObject({ schemaVersion: 1, graph: expectedGraph }); + expect(plans[0]!.graph.nodes[before.selection.ownerId]!.params).toMatchObject({ + model_type: { value: before.selection.pipelineClass }, + repo_id: { value: before.selection.repository }, + revision: { value: before.selection.revision }, + dtype: { value: before.selection.dtype }, + weight_format: { value: 'fp8r' }, + }); + if (accepted) { + await expect.poll(() => submissions.length).toBe(1); + expect({ nodes: submissions[0]!.nodes, paths: submissions[0]!.paths }).toEqual(expectedGraph); + expect(submissions[0]!.runtimeHints).toMatchObject({ + resourceMode: 'auto', + workflowAutoPlan: { schemaVersion: 1, graphHash: plannedGraphHash }, + }); + expect(forbiddenPosts).toEqual(['/graph']); + } else { + const blocked = page.getByRole('dialog', { name: 'Run blocked', exact: true }); + await expect(blocked).toContainText(`Auto cannot run this workflow: ${refusal}`); + await expect(blocked).toContainText('No run was submitted'); + expect(submissions).toEqual([]); + expect(forbiddenPosts).toEqual([]); + } + await expect(page.getByTestId('topbar-resource-policy')).toHaveAttribute( + 'aria-label', + 'Memory policy: Automatic. Click to switch.', + ); + expect(await readExecution()).toEqual(expectedGraph); + expect(await publicFlux3FormatSnapshot(page)).toEqual(before); + }); + test('ordinary public FLUX3 FP8r control survives Save and cold reload with its exact model identity', async ({ page, }) => { From 69690976661a1617bd196c32480bfbad92034bf6 Mon Sep 17 00:00:00 2001 From: Sourav Das Date: Mon, 26 Oct 2026 18:13:11 +0530 Subject: [PATCH 064/440] Pin client validation to Windows architecture fix --- .github/workflows/ci.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 7be3468f..404d97c1 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -33,7 +33,7 @@ jobs: with: repository: sdevil7th/MoDiff # Paired image stages, scoped enhancement and FLUX3 evaluation contracts. - ref: 1ebc871f069dcd38735e983aac67d617476fac23 + ref: 1ccd0c3605c4abc177b3959e5da129d2347472c6 path: MoDiff persist-credentials: false - name: Verify the pinned backend supports native setup @@ -86,7 +86,7 @@ jobs: with: repository: sdevil7th/MoDiff # Match the immutable backend revision in the Client quality job. - ref: 1ebc871f069dcd38735e983aac67d617476fac23 + ref: 1ccd0c3605c4abc177b3959e5da129d2347472c6 path: MoDiff persist-credentials: false - name: Verify the pinned backend supports native setup From 6bb9d197d3802b113879a8fcdddafef50e17c9de Mon Sep 17 00:00:00 2001 From: Sourav Das Date: Mon, 26 Oct 2026 19:41:26 +0530 Subject: [PATCH 065/440] Restore model editing for legacy operation hints --- .github/workflows/ci.yml | 4 +- docs/workflow-authoring-ux.md | 5 ++ scripts/bundle-budget.mjs | 6 ++ scripts/operation-authoring.test.mjs | 63 +++++++++++++++++++++ scripts/prompt-enhancement-preview.test.mjs | 26 +++++++++ src/workflow/operationAuthoringHint.ts | 12 ++-- 6 files changed, 110 insertions(+), 6 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 404d97c1..16bd1043 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -33,7 +33,7 @@ jobs: with: repository: sdevil7th/MoDiff # Paired image stages, scoped enhancement and FLUX3 evaluation contracts. - ref: 1ccd0c3605c4abc177b3959e5da129d2347472c6 + ref: e4d030da92ffb45a637cc2c5ed63f8e8bfaf3b3f path: MoDiff persist-credentials: false - name: Verify the pinned backend supports native setup @@ -86,7 +86,7 @@ jobs: with: repository: sdevil7th/MoDiff # Match the immutable backend revision in the Client quality job. - ref: 1ccd0c3605c4abc177b3959e5da129d2347472c6 + ref: e4d030da92ffb45a637cc2c5ed63f8e8bfaf3b3f path: MoDiff persist-credentials: false - name: Verify the pinned backend supports native setup diff --git a/docs/workflow-authoring-ux.md b/docs/workflow-authoring-ux.md index 62c02f27..04126f65 100644 --- a/docs/workflow-authoring-ux.md +++ b/docs/workflow-authoring-ux.md @@ -113,6 +113,11 @@ change, select the desired current enhancement mode, and **Enable**. Refresh alo does not migrate an old profile; shared or ambiguous enhancement branches require explicit connection repair before Disable. +Older schema-one operation hints may omit the retained-settings list. Reading +those controls treats the missing list as empty without rewriting the document. +A present malformed list remains invalid; the current backend declaration and +normal reviewed model change are still required. + The same-model change preserves an inline legacy layout when its exact task, artifact, owner and resolved layout schema remain compatible. Bound source regions also require the existing ordered reference and preprocessing context to remain diff --git a/scripts/bundle-budget.mjs b/scripts/bundle-budget.mjs index 5361bbc9..51e7515f 100644 --- a/scripts/bundle-budget.mjs +++ b/scripts/bundle-budget.mjs @@ -1,3 +1,7 @@ +// Legacy schema-one advisory-hint compatibility measures largest/startup/ +// deferred gzip 488210/666514/326348 versus 488155/666461/326431. +// Add only measured startup growth 55/53 bytes, retaining 15/17 bytes of +// headroom. Deferred caps, dependencies, minifier and loading boundaries stay fixed. // Exact immutable default-weight-format validation measures largest/startup/ // deferred gzip 488155/666461/326431 versus accepted 488073/666379/326387. // Add only measured feature growth 82/82/44 bytes, retaining 15/17/39 bytes @@ -209,6 +213,7 @@ const SOURCE_LICENSES = new URL('../public/THIRD_PARTY_LICENSES.txt', import.met // Retain the strict current-owner/parser checks and allow 128 startup/chunk // bytes only; dependencies, lazy boundaries, minifier and deferred caps stay fixed. const MAX_STARTUP_CHUNK_GZIP_BYTES = + 55 + 82 + 273 + 6816 + @@ -322,6 +327,7 @@ const MAX_STARTUP_CHUNK_GZIP_BYTES = // Preserve the separately measured 64-byte shared loading-policy allowance above. // Preserve the measured 384-byte selected-image authoring allowance above. const MAX_STARTUP_GZIP_BYTES = + 53 + 82 + 274 + 6814 + diff --git a/scripts/operation-authoring.test.mjs b/scripts/operation-authoring.test.mjs index 5272b3d5..b7c48ecb 100644 --- a/scripts/operation-authoring.test.mjs +++ b/scripts/operation-authoring.test.mjs @@ -114,6 +114,69 @@ function graph() { return authoring.createOperationStarter(starter(), { x: 40, y: 60 }); } +test('legacy schema-one hints without retained expose model ownership without rewriting saved data', async () => { + const declaration = starter(); + declaration.nodes[0].node.params.repo_id = { type: 'string', value: 'test/base' }; + const legacy = authoring.createOperationStarter(declaration, { x: 40, y: 60 }); + const loader = legacy.nodes[0]; + const current = loader.data.operationAuthoring; + // Historical schema-one saved nodes had defaults/authored but no retained list. + loader.data.operationAuthoring = { + schemaVersion: 1, + operation: current.operation, + defaults: current.defaults, + authored: ['repo_id'], + }; + const before = structuredClone(legacy); + const parsed = authoring.operationAuthoring(loader); + assert.ok(parsed, 'The historical advisory shape must remain editable.'); + assert.deepEqual(parsed.retained, []); + assert.notEqual(parsed, loader.data.operationAuthoring, 'Compatibility is a derived view.'); + const { operationModelSource } = await server.ssrLoadModule('/src/workflow/operationModelSource.ts'); + assert.equal(operationModelSource(loader, 'repo_id'), loader, 'The normal model picker can resolve its owner.'); + assert.deepEqual(legacy, before, 'Reading or locating a model must not migrate the saved graph.'); + assert.equal(Object.hasOwn(loader.data.operationAuthoring, 'retained'), false); + loader.data.operationAuthoring = current; + assert.equal(authoring.operationAuthoring(loader), current, 'Current valid hints retain their existing identity.'); +}); + +test('legacy schema-one compatibility refuses present malformed retained and other invalid claims', () => { + const node = graph().nodes[0]; + const valid = structuredClone(node.data.operationAuthoring); + for (const retained of [undefined, null, 'bad', {}, Array(513).fill({}), [null], [{}], [{ field: 'prompt' }]]) { + node.data.operationAuthoring = { ...valid, retained }; + assert.equal(authoring.operationAuthoring(node), null, 'A present invalid list is not a historical omission.'); + } + const { retained: _retained, ...legacy } = valid; + node.data.operationAuthoring = Object.assign(Object.create({ retained: [] }), legacy); + assert.equal(authoring.operationAuthoring(node), null, 'An inherited list cannot become a historical omission.'); + let reads = 0; + node.data.operationAuthoring = Object.defineProperty({ ...legacy }, 'retained', { + enumerable: true, + get() { + reads++; + return []; + }, + }); + assert.equal(authoring.operationAuthoring(node), null, 'Accessor claims are not saved JSON data.'); + assert.equal(reads, 0); + for (const change of [ + { schemaVersion: 2 }, + { defaults: undefined }, + { defaults: null }, + { defaults: [] }, + { defaults: Object.fromEntries(Array.from({ length: 513 }, (_, index) => [String(index), 0])) }, + { operation: undefined }, + { operation: { ...valid.operation, nodeKey: 'unrelated.Action' } }, + { authored: 'prompt' }, + { inactiveDrafts: {} }, + { ancillaryParent: {} }, + ]) { + node.data.operationAuthoring = { ...legacy, ...change }; + assert.equal(authoring.operationAuthoring(node), null, 'Other required fields and saved claims stay guarded.'); + } +}); + test('replaced native stages cannot overwrite exact whole-pipeline binding values', () => { const source = graph(); source.nodes[1].data.params.prompt.value = 'Authored native prompt'; diff --git a/scripts/prompt-enhancement-preview.test.mjs b/scripts/prompt-enhancement-preview.test.mjs index 942eb45b..2af22ac4 100644 --- a/scripts/prompt-enhancement-preview.test.mjs +++ b/scripts/prompt-enhancement-preview.test.mjs @@ -227,6 +227,32 @@ test('retired enhancement metadata cannot trap normal Disable or alter the autho assert.equal(rebound.data.operationAuthoring.ancillaryParent.parent.authoringRecipeId, fresh.authoring.id); assert.equal(rebound.data.operationAuthoring.ancillaryBindings, undefined); const { unpackVisualOperationGroups } = await server.ssrLoadModule('/src/workflow/visualOperationGroups.ts'); + const legacyGraph = unpackVisualOperationGroups(structuredClone(graph)).graph; + for (const node of legacyGraph.nodes) { + const hint = node.data.operationAuthoring; + if (hint) { + const { retained: _retained, ...legacyHint } = hint; + node.data.operationAuthoring = legacyHint; + } + } + const legacyModel = legacyGraph.nodes.find((node) => node.data.studioRole === 'models'); + const legacyBefore = structuredClone(legacyGraph); + const { operationModelSource } = await server.ssrLoadModule('/src/workflow/operationModelSource.ts'); + assert.equal(operationModelSource(legacyModel, 'repo_id'), legacyModel); + const legacyPlan = planOperationChange(legacyGraph, legacyModel.id, starter, { replaceModel: true }); + assert.deepEqual(legacyGraph, legacyBefore, 'Preview never rewrites the historical flat saved hints.'); + const legacyRebound = legacyPlan.graph.nodes.find((node) => node.data.operationAuthoring?.ancillaryParent); + for (const name of ['prompt', 'layout_conditioning', 'max_sequence_length']) + assert.deepEqual(legacyRebound.data.params[name].value, originalOwner.data.params[name].value); + assert.equal(legacyRebound.data.operationAuthoring.ancillaryParent.parent.executionProfileId, profileId); + assert.equal(legacyRebound.data.operationAuthoring.ancillaryBindings, undefined); + const legacyReference = legacyBefore.nodes.find((node) => node.data.studioRole === 'loadImage'); + if (legacyReference) + assert.deepEqual( + legacyPlan.graph.nodes.find((node) => node.id === legacyReference.id), + legacyReference, + ); + assert.equal(legacyPlan.graph.edges.length, legacyBefore.edges.length); for (const fault of [ 'none', 'missing-context', diff --git a/src/workflow/operationAuthoringHint.ts b/src/workflow/operationAuthoringHint.ts index 0c3ee5e8..048bfd41 100644 --- a/src/workflow/operationAuthoringHint.ts +++ b/src/workflow/operationAuthoringHint.ts @@ -13,8 +13,6 @@ export function operationAuthoring(node: CustomNodeType): OperationAuthoring | n typeof hint.defaults !== 'object' || Array.isArray(hint.defaults) || Object.keys(hint.defaults).length > 512 || - !Array.isArray(hint.retained) || - hint.retained.length > 512 || (hint.authored !== undefined && (!Array.isArray(hint.authored) || hint.authored.length > 512 || @@ -53,16 +51,22 @@ export function operationAuthoring(node: CustomNodeType): OperationAuthoring | n ) return null; try { + const retained = Object.getOwnPropertyDescriptor(hint, 'retained'); + if ((!retained && 'retained' in hint) || (retained && (!retained.enumerable || !('value' in retained)))) + return null; + const entries = retained ? retained.value : []; + if (!Array.isArray(entries) || entries.length > 512) return null; promptEnhancementParentFromHint(hint); const [operation] = parseOperationContracts([hint.operation], 3); if (!operation || operation.nodeKey !== `${node.data.module}.${node.data.action}`) return null; if ( - hint.retained.some( + entries.some( (v) => !v || typeof v.field !== 'string' || typeof v.reason !== 'string' || typeof v.pipeline !== 'string', ) ) return null; - return hint; + // Older schema-one hints omitted this advisory list. Reading is not migration. + return retained ? hint : { ...hint, retained: [] }; } catch { return null; } From baaa5c56d5afde973ba3571bdaa469134eba7b27 Mon Sep 17 00:00:00 2001 From: Sourav Das Date: Tue, 27 Oct 2026 11:13:13 +0530 Subject: [PATCH 066/440] Cover explicit parent text NF4 in public FLUX3 Auto --- .github/workflows/ci.yml | 4 +- .../flux3-public-template-planning.test.mjs | 5 + scripts/resolved-execution-inputs.test.mjs | 77 ++++ scripts/template-operation-fixtures.py | 1 + scripts/workflow-auto-weight-loading.test.mjs | 141 ++++++++ tests/e2e/studio-mocked/studio-mocked.spec.ts | 332 +++++++++++------- 6 files changed, 432 insertions(+), 128 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 16bd1043..b4a6ff42 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -33,7 +33,7 @@ jobs: with: repository: sdevil7th/MoDiff # Paired image stages, scoped enhancement and FLUX3 evaluation contracts. - ref: e4d030da92ffb45a637cc2c5ed63f8e8bfaf3b3f + ref: 6f9b39ebed592543dbed5547799ddbd0b2933282 path: MoDiff persist-credentials: false - name: Verify the pinned backend supports native setup @@ -86,7 +86,7 @@ jobs: with: repository: sdevil7th/MoDiff # Match the immutable backend revision in the Client quality job. - ref: e4d030da92ffb45a637cc2c5ed63f8e8bfaf3b3f + ref: 6f9b39ebed592543dbed5547799ddbd0b2933282 path: MoDiff persist-credentials: false - name: Verify the pinned backend supports native setup diff --git a/scripts/flux3-public-template-planning.test.mjs b/scripts/flux3-public-template-planning.test.mjs index 4a4bca7a..bffab0ee 100644 --- a/scripts/flux3-public-template-planning.test.mjs +++ b/scripts/flux3-public-template-planning.test.mjs @@ -383,6 +383,11 @@ test('all eight fixed-input planning cards create exact ordinary FP8r task graph ); assert.equal(owner.data.params.auto_offload.value, false); assert.equal(owner.data.params.offload_mode.value, 'none'); + assert.equal( + graph.nodes.some((node) => node.data.action === 'QuantizationConfigNode'), + false, + `${id}: parent text-encoder quantization requires an explicitly authored derivative`, + ); assert.equal( graph.edges.some((edge) => edge.target === owner.id && edge.targetHandle === 'quant_config'), false, diff --git a/scripts/resolved-execution-inputs.test.mjs b/scripts/resolved-execution-inputs.test.mjs index ce73bfa2..b70f9024 100644 --- a/scripts/resolved-execution-inputs.test.mjs +++ b/scripts/resolved-execution-inputs.test.mjs @@ -263,6 +263,83 @@ test('only the actual native loader capture accepts the exact consumed weight fo assert.equal(inputs.coerceResolvedExecutionInputs(receipt(), identity).summary.weightFormat, undefined); }); +test('connected native NF4 consumed configuration survives strict output history as a bounded flat list', () => { + // Match the validated backend adapter's successful snapshot, not Python + // config objects or a client-derived claim about loaded tensor precision. + const consumed = [ + 'transformer:weight_format=nvfp4;compute_dtype=bfloat16;load_device=cpu', + 'text_encoder:quantization=bnb_4bit;quant_type=nf4;compute_dtype=bfloat16', + 'text_encoder:double_quant=true;quant_storage=uint8;load_device=cuda:0', + 'text_encoder:skip_modules=model.visual,lm_head', + 'text_encoder:converted_linear_count=252', + 'text_encoder:placement=model_cpu;current_device=cpu', + 'text_encoder:recipe_id=flux3-qwen3vl-language-nf4:v1', + `text_encoder:signature=${'d'.repeat(64)}`, + ]; + const backend = fileURLToPath(new URL('../../MoDiff/', import.meta.url)); + const python = + process.env.MODIFF_BACKEND_PYTHON || + `${backend}.venv/${process.platform === 'win32' ? 'Scripts/python.exe' : 'bin/python'}`; + const generated = spawnSync( + python, + [ + '-B', + '-c', + String.raw` +import json, sys +from modiff.execution_input_provenance import capture_generation_inputs, bind_generation_input_origins, build_resolved_execution_inputs +consumed = json.load(sys.stdin) +nodes = { + "quantization": {"module": "modules.ModularDiffusers", "action": "QuantizationConfigNode", "params": {}}, + "loader": {"module": "modules.ModularDiffusers", "action": "ModelsLoader", "params": { + "quant_config": {"sourceId": "quantization", "sourceKey": "quantization_config"}}}, + "preview": {"module": "modules.Image", "action": "Preview", "params": { + "image": {"sourceId": "loader", "sourceKey": "vae_out"}}}, +} +args = {"model_type": "Flux3DistilledModularPipeline", "weight_format": "nvfp4", + "quant_config": consumed, "weight_loading_mode": "cpu"} +records = {key: capture_generation_inputs(key, node, args if key == "loader" else {}) + for key, node in nodes.items()} +records["loader"] = bind_generation_input_origins("loader", nodes["loader"], records["loader"]) +print(json.dumps(build_resolved_execution_inputs({"nodes": nodes}, records, + task_id="actual-task", attempt_index=2, node_id="preview"))) +`, + ], + { cwd: backend, encoding: 'utf8', input: JSON.stringify(consumed) }, + ); + assert.equal(generated.status, 0, generated.stderr); + const capture = JSON.parse(generated.stdout); + const identity = { taskId: 'actual-task', attemptIndex: 2, nodeId: 'preview' }; + const field = capture.nodes.find((node) => node.nodeId === 'loader').fields.quant_config; + assert.deepEqual(field, { + value: consumed, + source: 'connected', + sourceNodeId: 'quantization', + sourcePortId: 'quantization_config', + }); + assert.deepEqual(capture.summary.quantConfig, consumed); + assert.deepEqual(inputs.coerceResolvedExecutionInputs(capture, identity), capture); + let output = contracts.coerceStudioOutput({ + id: 'parent-nf4', + url: '/image.webp', + ...identity, + resolvedExecutionInputs: capture, + }); + for (let reload = 0; reload < 2; reload++) { + assert.deepEqual(output.resolvedExecutionInputs, capture); + output = contracts.coerceStudioOutput(JSON.parse(JSON.stringify(output))); + } + for (const invalid of [[{ recipeId: 'not-a-flat-snapshot' }], [consumed], Array(17).fill('entry')]) { + const malformed = structuredClone(capture); + malformed.nodes.find((node) => node.nodeId === 'loader').fields.quant_config.value = invalid; + malformed.summary.quantConfig = invalid; + assert.equal(inputs.coerceResolvedExecutionInputs(malformed, identity), undefined); + } + const changed = structuredClone(capture); + changed.summary.quantConfig[2] = 'text_encoder:load_device=cpu'; + assert.equal(inputs.coerceResolvedExecutionInputs(changed, identity), undefined); +}); + test('merged video metadata keeps requested, consumed and encoded dimensions distinct', () => { const value = contracts.coerceStudioOutput({ id: 'video', diff --git a/scripts/template-operation-fixtures.py b/scripts/template-operation-fixtures.py index 6d480658..0b308c87 100644 --- a/scripts/template-operation-fixtures.py +++ b/scripts/template-operation-fixtures.py @@ -99,6 +99,7 @@ def describe(key): rows.append({"id": item["id"], "starter": starter, "spec": spec, "capability": STUDIO_MODEL_CAPABILITIES[binding["modelType"]] if binding else None}) for key in ("modules.ImageOperations.ProcessImage", "modules.ModularDiffusers.Lora", + "modules.ModularDiffusers.QuantizationConfigNode", "modules.DiffusersImage.LoadAdapter", "modules.Spandrel.Upscaler", "modules.Image.Preview", "modules.DiffusersImage.OutpaintCanvas", "modules.Audio.Export", "modules.Audio.Load", "modules.Image.Load", diff --git a/scripts/workflow-auto-weight-loading.test.mjs b/scripts/workflow-auto-weight-loading.test.mjs index 1582b14f..d15139a0 100644 --- a/scripts/workflow-auto-weight-loading.test.mjs +++ b/scripts/workflow-auto-weight-loading.test.mjs @@ -178,6 +178,59 @@ function freshPublicGraph(id) { return draft.graph; } +function explicitPublicTextEncoderNf4Graph(id, referenceCount = 1) { + const graph = modules.groups.unpackVisualOperationGroups(freshPublicGraph(id)).graph; + const owner = graph.nodes.find((node) => node.data.action === 'ModelsLoader'); + const encoder = graph.nodes.find((node) => node.data.action === 'EncodePrompt'); + const denoise = graph.nodes.find((node) => node.data.action === 'Denoise'); + const quantization = modules.factory.createNodeFromRegistry( + 'modules.ModularDiffusers.QuantizationConfigNode', + fixture.registry, + { x: -600, y: -300 }, + ); + assert.ok(quantization, 'Use the real generic backend node schema.'); + const values = { + model_id: structuredClone(owner.data.params.repo_id.value), + subfolder: 'text_encoder', + component: 'text_encoder', + quant_type: 'bnb_4bit', + bnb_4bit_quant_type: 'nf4', + bnb_4bit_compute_dtype: 'bfloat16', + bnb_4bit_use_double_quant: true, + llm_int8_skip_modules: [], + llm_int8_has_fp16_weight: false, + llm_int8_threshold: 6, + skip_module_names: 'model.visual,lm_head', + }; + for (const [field, value] of Object.entries(values)) { + assert.ok(quantization.data.params[field], `The backend must publish ${field}.`); + quantization.data.params[field].value = value; + } + owner.data.params.weight_format.value = 'nvfp4'; + owner.data.params.device.value = 'cuda:0'; + owner.data.params.weight_loading_mode.value = 'cpu'; + owner.data.params.offload_mode.value = 'model_cpu'; + owner.data.params.auto_offload.value = true; + encoder.data.params.prompt.value = `Authored explicit text-encoder NF4 ${id}`; + denoise.data.params.seed.value = { value: 4109, random: false }; + const image = graph.nodes.find((node) => node.data.module === 'modules.Image' && node.data.action === 'Load'); + if (image) + image.data.params.file.value = ['unit-managed-inputs/cobalt.png', 'unit-managed-inputs/layout.png'].slice( + 0, + referenceCount, + ); + graph.nodes.push(quantization); + graph.edges.push({ + id: `edge-${quantization.id}-quantization_config-${owner.id}-quant_config`, + source: quantization.id, + sourceHandle: 'quantization_config', + target: owner.id, + targetHandle: 'quant_config', + type: 'default', + }); + return { graph, owner, quantization, values }; +} + test('current public profiles seed bounded defaults through ordinary backend starters without changing authored graphs', () => { const contracts = modules.operations.parseOperationContracts( fixture.publicPayload.operationContracts, @@ -202,6 +255,10 @@ test('current public profiles seed bounded defaults through ordinary backend sta assert.equal(value(owner, 'model_type'), selected.pipelineClass); assert.equal(value(owner, 'weight_format'), 'fp8r'); assert.equal(value(owner, 'dtype'), 'bfloat16'); + assert.equal( + effective.nodes.some((node) => node.data.action === 'QuantizationConfigNode'), + false, + ); assert.deepEqual([value(denoise, 'width'), value(denoise, 'height')], [512, 512]); assert.equal(value(denoise, 'num_inference_steps'), id.includes('Distilled') ? 16 : 50); if (selected.pipelineClass === 'Flux3ModularPipeline') { @@ -216,6 +273,90 @@ test('current public profiles seed bounded defaults through ordinary backend sta } }); +test('explicit public text-encoder NF4 remains an authored derivative through accepted and refused Auto transport', async () => { + const registryBefore = structuredClone(fixture.registry); + for (const { id } of publicSelections) { + for (const accepted of [true, false]) { + const { graph, owner, quantization, values } = explicitPublicTextEncoderNf4Graph(id, 2); + flow().replaceGraph(graph); + const before = exported(); + const snapshot = structuredClone(flow().toObject()); + const submissions = [], + requests = []; + globalThis.fetch = async (url, init) => { + const body = JSON.parse(init.body); + requests.push(String(url)); + if (String(url).endsWith('/auto_resource/workflow')) { + assert.deepEqual(body.graph.nodes, JSON.parse(JSON.stringify(before.nodes))); + return response({ + ...plan([]), + canAutoRun: accepted, + issues: accepted ? [] : ['The exact NVFP4/text-encoder NF4 cold recipe exceeds available memory'], + }); + } + assert.ok(accepted, 'A refused plan cannot reach Graph.'); + assert.ok(String(url).endsWith('/graph')); + submissions.push(body); + return response({ task_id: `mock-nf4-${id}`, sid: 'session-1', message: 'queued' }); + }; + modules.studio.useStudioStore.setState({ form: { ...form, resourceMode: 'auto' } }); + if (accepted) { + const result = await modules.coordinator.coordinateGraphRun({ sid: 'session-1' }); + assert.equal(submissions.length, 1); + assert.deepEqual(result.submittedGraph.nodes, before.nodes); + assert.deepEqual(result.submittedGraph.paths, before.paths); + assert.equal(result.submittedGraph.runtimeHints.workflowAutoPlan.graphHash, plan([]).plannedGraphHash); + } else { + await assert.rejects(modules.coordinator.coordinateGraphRun({ sid: 'session-1' }), /NVFP4\/text-encoder NF4/); + assert.equal(submissions.length, 0); + } + assert.equal(requests.length, accepted ? 2 : 1); + assert.deepEqual(exported(), before); + assert.deepEqual(flow().toObject(), snapshot); + assert.deepEqual(before.nodes[owner.id].params.quant_config, { + value: undefined, + display: 'input', + sourceId: quantization.id, + sourceKey: 'quantization_config', + }); + for (const [field, value] of Object.entries(values)) + assert.deepEqual(before.nodes[quantization.id].params[field].value, value, `${id}:${field}`); + assert.equal(before.nodes[owner.id].params.weight_format.value, 'nvfp4'); + flow().replaceGraph(JSON.parse(JSON.stringify(snapshot))); + assert.deepEqual(exported(), before, 'Save-shaped round trips retain the exact producer and connection.'); + } + } + assert.deepEqual(fixture.registry, registryBefore, 'Explicit instance edits cannot change registry defaults.'); +}); + +test('a pending explicit text-encoder NF4 Auto plan cannot submit after a producer control changes', async () => { + const { graph, quantization } = explicitPublicTextEncoderNf4Graph(publicSelections[0].id); + flow().replaceGraph(graph); + let started, release; + const ready = new Promise((resolve) => { + started = resolve; + }); + const pending = new Promise((resolve) => { + release = resolve; + }); + const requests = []; + globalThis.fetch = async (url) => { + requests.push(String(url)); + assert.ok(String(url).endsWith('/auto_resource/workflow')); + started(); + return pending; + }; + const run = modules.coordinator.coordinateGraphRun({ sid: 'session-1' }); + await ready; + flow().setParamWithHistory(quantization.id, 'skip_module_names', 'model.visual'); + const changed = structuredClone(flow().toObject()); + release(response(plan([]))); + await assert.rejects(run, /workflow or mode changed/); + assert.equal(requests.length, 1); + assert.deepEqual(flow().toObject(), changed); + assert.equal(modules.studio.useStudioStore.getState().currentRunContext, null); +}); + test('real public ordinary graphs retain authored values through one accepted Auto submission and Expert bypass', async () => { for (const { id } of publicSelections) { const graph = modules.groups.unpackVisualOperationGroups(freshPublicGraph(id)).graph; diff --git a/tests/e2e/studio-mocked/studio-mocked.spec.ts b/tests/e2e/studio-mocked/studio-mocked.spec.ts index 2a6c537a..72024cf2 100644 --- a/tests/e2e/studio-mocked/studio-mocked.spec.ts +++ b/tests/e2e/studio-mocked/studio-mocked.spec.ts @@ -10980,7 +10980,7 @@ async function installPublicFlux3AuthoringRoutes(page: Page, exactModel = false, // task-template rows with unrelated older mocked capability records. fixture.capabilitiesPayload = current.publicPayload; // Cache presence is a mocked transport boundary. Use the exact current - // declared FP8r revision/files; it grants no planner or model authority. + // declared packed-format revisions/files; it grants no planner or model authority. await page.route('**/hf_cache**', (route) => route.fulfill({ json: fixture.capabilitiesPayload.capabilities @@ -10998,6 +10998,9 @@ async function installPublicFlux3AuthoringRoutes(page: Page, exactModel = false, }) => { const selected = capability.weightFormatSelections.find((row) => row.weightFormat === 'fp8r'); if (!selected) throw new Error('Current public source must declare an exact FP8r selection.'); + const observedSelections = capability.weightFormatSelections + .filter((row) => ['fp8r', 'nvfp4'].includes(row.weightFormat)) + .map((row) => ({ revision: row.revision, files: row.downloadFiles, complete: true })); return { id: selected.repo, type: 'model', @@ -11005,7 +11008,7 @@ async function installPublicFlux3AuthoringRoutes(page: Page, exactModel = false, installed: true, planned_revision: selected.revision, planned_files: selected.downloadFiles, - observed_selections: [{ revision: selected.revision, files: selected.downloadFiles, complete: true }], + observed_selections: observedSelections, revisions: [{ hash: selected.revision, size: 0, last_modified: 0 }], }; }, @@ -12144,134 +12147,211 @@ async function openPublicFlux3Fp8rWorkflow(page: Page, keepAutomatic = false) { return { fixture, forbiddenPosts }; } -for (const accepted of [true, false]) - test(`ordinary public FLUX3 FP8r Automatic Run ${accepted ? 'submits its accepted graph exactly once' : 'refuses without submission or authored changes'}`, async ({ - page, - }) => { - // Current source schemas describe a mocked CUDA/BF16 host and exact cached - // artifact selection. The plan response exercises transport only; neither - // its acceptance nor catalog source eligibility qualifies a model run. - const { forbiddenPosts } = await openPublicFlux3Fp8rWorkflow(page, true); - const prompt = page.locator('.react-flow__node').getByLabel('Prompt *', { exact: true }); - await prompt.fill('A ceramic teapot on a wooden table, soft morning light.'); - await prompt.blur(); - const denoiseId = await page.evaluate( - () => window.__MODIFF_E2E__!.getState().flow.nodes.find((node) => node.action === 'Denoise')!.id, - ); - const denoise = page.locator(`.react-flow__node[data-id="${denoiseId}"]`); - for (const dimension of ['width', 'height']) { - const input = denoise.locator(`[data-key="${dimension}"] input`); - await input.fill('512'); - await input.blur(); - } - const seed = page.locator('.react-flow__node [data-key="seed"] input'); - const randomSeed = page.getByRole('button', { name: 'Toggle random Seed', exact: true }); - if ((await randomSeed.getAttribute('aria-pressed')) === 'true') await randomSeed.click(); - await seed.fill('4109'); - await seed.blur(); - await waitForOperationGraphToSettle(page); - const before = await publicFlux3FormatSnapshot(page); - expect(before.resourceMode).toBe('auto'); - expect(before.parent.executionProfileId).toBe('flux3-klein:official-provider:v1'); - expect(before.selection).toMatchObject({ - pipelineClass: 'Flux3DistilledModularPipeline', - repository: { source: 'hub', value: 'black-forest-labs/flux-3-image-klein' }, - revision: '8454017f9ebaada30c998fccd9f67a80c7580f68', - dtype: 'bfloat16', - weightFormat: 'fp8r', - quantConfigConnected: false, - }); - const readExecution = () => - page.evaluate(async () => { - const { useFlowStore } = await import('/src/stores/useFlowStore.ts'); - const graph = useFlowStore.getState().exportGraph('mock-read-only', undefined, { randomizeSeeds: false }); - return JSON.parse(JSON.stringify({ nodes: graph.nodes, paths: graph.paths })) as Pick< - ApiGraphExport, - 'nodes' | 'paths' - >; +/** Explicit derivative authored only through normal generic fields and handles. */ +async function authorPublicFlux3TextEncoderNf4(page: Page) { + const format = await publicFlux3FormatControl(page); + await format.click(); + await page.getByRole('option', { name: 'nvfp4', exact: true }).click(); + await openNodesLibrary(page); + await page.getByLabel('Search nodes', { exact: true }).fill('Quantization Config'); + await page.getByTestId('node-row-modules-ModularDiffusers-QuantizationConfigNode').click(); + const id = await page.evaluate(() => { + const nodes = window + .__MODIFF_E2E__!.getState() + .flow.nodes.filter((node) => node.action === 'QuantizationConfigNode'); + if (nodes.length !== 1) throw new Error('Expected one explicitly added generic quantization producer.'); + return nodes[0]!.id; + }); + const node = page.locator(`.react-flow__node[data-id="${id}"]`); + const model = node.getByRole('combobox', { name: 'Model ID', exact: true }); + await model.fill('black-forest-labs/flux-3-image-klein'); + await page.getByRole('option', { name: 'black-forest-labs/flux-3-image-klein', exact: true }).click(); + const subfolder = node.locator('[data-key="subfolder"] input'); + await subfolder.fill('text_encoder'); + await subfolder.blur(); + for (const [field, value] of [ + ['component', 'text_encoder'], + ['bnb_4bit_compute_dtype', 'bfloat16'], + ]) { + await node.locator(`[data-key="${field}"]`).getByRole('button').click(); + await page.getByRole('option', { name: value, exact: true }).click(); + } + const doubleQuant = node.getByRole('switch', { name: 'Double Quant', exact: true }); + if ((await doubleQuant.getAttribute('aria-checked')) !== 'true') await doubleQuant.click(); + const skips = node.locator('[data-key="skip_module_names"] input'); + await skips.fill('model.visual,lm_head'); + await skips.blur(); + await page.getByRole('button', { name: 'Arrange graph', exact: true }).click(); + await waitForOperationGraphToSettle(page); + const source = node.locator('[data-handleid="quantization_config"]'); + const target = (await publicFlux3FormatSetup(page)).locator('[data-handleid$=":quant_config"]'); + await expect(source).toBeVisible(); + await expect(target).toBeVisible(); + await source.click({ trial: true }); + await target.click({ trial: true }); + const from = (await source.boundingBox())!; + const to = (await target.boundingBox())!; + await page.mouse.move(from.x + from.width / 2, from.y + from.height / 2); + await page.mouse.down(); + await page.mouse.move(to.x + to.width / 2, to.y + to.height / 2, { steps: 16 }); + await page.mouse.up(); + await waitForOperationGraphToSettle(page); + await expect.poll(async () => (await publicFlux3FormatSnapshot(page)).selection.quantConfigConnected).toBe(true); + return id; +} + +for (const textEncoderNf4 of [false, true]) + for (const accepted of [true, false]) + test(`ordinary public FLUX3 ${textEncoderNf4 ? 'NVFP4 with explicit text-encoder NF4' : 'FP8r'} Automatic Run ${accepted ? 'submits its accepted graph exactly once' : 'refuses without submission or authored changes'}`, async ({ + page, + }) => { + // Current source schemas describe a mocked CUDA/BF16 host and exact cached + // artifact selection. The plan response exercises transport only; neither + // its acceptance nor catalog source eligibility qualifies a model run. + const { forbiddenPosts } = await openPublicFlux3Fp8rWorkflow(page, true); + const quantizationId = textEncoderNf4 ? await authorPublicFlux3TextEncoderNf4(page) : null; + const prompt = page.locator('.react-flow__node').getByLabel('Prompt *', { exact: true }); + await prompt.fill('A ceramic teapot on a wooden table, soft morning light.'); + await prompt.blur(); + const denoiseId = await page.evaluate( + () => window.__MODIFF_E2E__!.getState().flow.nodes.find((node) => node.action === 'Denoise')!.id, + ); + const denoise = page.locator(`.react-flow__node[data-id="${denoiseId}"]`); + for (const dimension of ['width', 'height']) { + const input = denoise.locator(`[data-key="${dimension}"] input`); + await input.fill('512'); + await input.blur(); + } + const seed = page.locator('.react-flow__node [data-key="seed"] input'); + const randomSeed = page.getByRole('button', { name: 'Toggle random Seed', exact: true }); + if ((await randomSeed.getAttribute('aria-pressed')) === 'true') await randomSeed.click(); + await seed.fill('4109'); + await seed.blur(); + await waitForOperationGraphToSettle(page); + const before = await publicFlux3FormatSnapshot(page); + expect(before.resourceMode).toBe('auto'); + expect(before.parent.executionProfileId).toBe('flux3-klein:official-provider:v1'); + expect(before.selection).toMatchObject({ + pipelineClass: 'Flux3DistilledModularPipeline', + repository: { source: 'hub', value: 'black-forest-labs/flux-3-image-klein' }, + revision: '8454017f9ebaada30c998fccd9f67a80c7580f68', + dtype: 'bfloat16', + weightFormat: textEncoderNf4 ? 'nvfp4' : 'fp8r', + quantConfigConnected: textEncoderNf4, }); - const expectedGraph = await readExecution(); - expect(expectedGraph.nodes[denoiseId]!.params).toMatchObject({ width: { value: 512 }, height: { value: 512 } }); - expect(expectedGraph.nodes[before.selection.ownerId]!.params).toMatchObject({ - device: { value: 'cuda:0' }, - weight_loading_mode: { value: 'cpu' }, - offload_mode: { value: 'model_cpu' }, - auto_offload: { value: true }, - }); - const plans: Array<{ schemaVersion: number; graph: Pick }> = []; - const submissions: ApiGraphExport[] = []; - const refusal = 'The exact selected FP8r workflow does not fit the available memory.'; - const plannedGraphHash = `sha256:workflow-auto-v1:${'b'.repeat(64)}`; - const consumers = Object.entries(expectedGraph.nodes) - .filter(([, node]) => node.action === 'Denoise') - .map(([id]) => id); - await page.route('**/auto_resource/workflow', (route) => { - plans.push(route.request().postDataJSON()); - return route.fulfill({ - json: { - schemaVersion: 1, - graphHash: `sha256:workflow-auto-v1:${'a'.repeat(64)}`, - plannedGraphHash, - canAutoRun: accepted, - issues: accepted ? [] : [refusal], - message: 'Mocked workflow plan transport; no hardware admission claim', - patches: [], - loaders: [ - { - nodeId: before.selection.ownerId, - modelType: before.selection.pipelineClass, - repository: 'black-forest-labs/flux-3-image-klein', - consumers, - candidateId: 'mock-preserved-public-fp8r', - }, - ], - requirements: { ramGb: 24, vramGb: 8, diskGb: 0 }, - available: { ramGb: 28, vramGb: accepted ? 12 : 0, diskGb: 64 }, - sharedMemory: false, - }, + const readExecution = () => + page.evaluate(async () => { + const { useFlowStore } = await import('/src/stores/useFlowStore.ts'); + const graph = useFlowStore.getState().exportGraph('mock-read-only', undefined, { randomizeSeeds: false }); + return JSON.parse(JSON.stringify({ nodes: graph.nodes, paths: graph.paths })) as Pick< + ApiGraphExport, + 'nodes' | 'paths' + >; + }); + const expectedGraph = await readExecution(); + expect(expectedGraph.nodes[denoiseId]!.params).toMatchObject({ width: { value: 512 }, height: { value: 512 } }); + expect(expectedGraph.nodes[before.selection.ownerId]!.params).toMatchObject({ + device: { value: 'cuda:0' }, + weight_loading_mode: { value: 'cpu' }, + offload_mode: { value: 'model_cpu' }, + auto_offload: { value: true }, }); - }); - await page.route('**/graph', (route) => { - const graph: ApiGraphExport = route.request().postDataJSON(); - submissions.push(graph); - return route.fulfill({ - json: { error: false, message: 'queued', sid: graph.sid, task_id: 'public-flux3-auto-transport' }, + if (quantizationId) { + expect(expectedGraph.nodes[before.selection.ownerId]!.params.quant_config).toEqual({ + display: 'input', + sourceId: quantizationId, + sourceKey: 'quantization_config', + }); + expect(expectedGraph.nodes[quantizationId]).toMatchObject({ + module: 'modules.ModularDiffusers', + action: 'QuantizationConfigNode', + params: { + model_id: { value: { source: 'hub', value: 'black-forest-labs/flux-3-image-klein' } }, + subfolder: { value: 'text_encoder' }, + component: { value: 'text_encoder' }, + quant_type: { value: 'bnb_4bit' }, + bnb_4bit_quant_type: { value: 'nf4' }, + bnb_4bit_compute_dtype: { value: 'bfloat16' }, + bnb_4bit_use_double_quant: { value: true }, + skip_module_names: { value: 'model.visual,lm_head' }, + llm_int8_skip_modules: { value: [] }, + }, + }); + } + const plans: Array<{ schemaVersion: number; graph: Pick }> = []; + const submissions: ApiGraphExport[] = []; + const refusal = `The exact selected ${textEncoderNf4 ? 'NVFP4/text-encoder NF4' : 'FP8r'} workflow does not fit the available memory.`; + const plannedGraphHash = `sha256:workflow-auto-v1:${'b'.repeat(64)}`; + const consumers = Object.entries(expectedGraph.nodes) + .filter(([, node]) => node.action === 'Denoise') + .map(([id]) => id); + await page.route('**/auto_resource/workflow', (route) => { + plans.push(route.request().postDataJSON()); + return route.fulfill({ + json: { + schemaVersion: 1, + graphHash: `sha256:workflow-auto-v1:${'a'.repeat(64)}`, + plannedGraphHash, + canAutoRun: accepted, + issues: accepted ? [] : [refusal], + message: 'Mocked workflow plan transport; no hardware admission claim', + patches: [], + loaders: [ + { + nodeId: before.selection.ownerId, + modelType: before.selection.pipelineClass, + repository: 'black-forest-labs/flux-3-image-klein', + consumers, + candidateId: textEncoderNf4 ? 'mock-explicit-public-nvfp4-text-nf4' : 'mock-preserved-public-fp8r', + }, + ], + requirements: { ramGb: 24, vramGb: 8, diskGb: 0 }, + available: { ramGb: 28, vramGb: accepted ? 12 : 0, diskGb: 64 }, + sharedMemory: false, + }, + }); }); - }); - const run = page.getByTestId('studio-run'); - await expect(run).toBeEnabled(); - await run.click(); - await expect.poll(() => plans.length).toBe(1); - expect(plans[0]).toMatchObject({ schemaVersion: 1, graph: expectedGraph }); - expect(plans[0]!.graph.nodes[before.selection.ownerId]!.params).toMatchObject({ - model_type: { value: before.selection.pipelineClass }, - repo_id: { value: before.selection.repository }, - revision: { value: before.selection.revision }, - dtype: { value: before.selection.dtype }, - weight_format: { value: 'fp8r' }, - }); - if (accepted) { - await expect.poll(() => submissions.length).toBe(1); - expect({ nodes: submissions[0]!.nodes, paths: submissions[0]!.paths }).toEqual(expectedGraph); - expect(submissions[0]!.runtimeHints).toMatchObject({ - resourceMode: 'auto', - workflowAutoPlan: { schemaVersion: 1, graphHash: plannedGraphHash }, + await page.route('**/graph', (route) => { + const graph: ApiGraphExport = route.request().postDataJSON(); + submissions.push(graph); + return route.fulfill({ + json: { error: false, message: 'queued', sid: graph.sid, task_id: 'public-flux3-auto-transport' }, + }); }); - expect(forbiddenPosts).toEqual(['/graph']); - } else { - const blocked = page.getByRole('dialog', { name: 'Run blocked', exact: true }); - await expect(blocked).toContainText(`Auto cannot run this workflow: ${refusal}`); - await expect(blocked).toContainText('No run was submitted'); - expect(submissions).toEqual([]); - expect(forbiddenPosts).toEqual([]); - } - await expect(page.getByTestId('topbar-resource-policy')).toHaveAttribute( - 'aria-label', - 'Memory policy: Automatic. Click to switch.', - ); - expect(await readExecution()).toEqual(expectedGraph); - expect(await publicFlux3FormatSnapshot(page)).toEqual(before); - }); + const run = page.getByTestId('studio-run'); + await expect(run).toBeEnabled(); + await run.click(); + await expect.poll(() => plans.length).toBe(1); + expect(plans[0]).toMatchObject({ schemaVersion: 1, graph: expectedGraph }); + expect(plans[0]!.graph.nodes[before.selection.ownerId]!.params).toMatchObject({ + model_type: { value: before.selection.pipelineClass }, + repo_id: { value: before.selection.repository }, + revision: { value: before.selection.revision }, + dtype: { value: before.selection.dtype }, + weight_format: { value: textEncoderNf4 ? 'nvfp4' : 'fp8r' }, + }); + if (accepted) { + await expect.poll(() => submissions.length).toBe(1); + expect({ nodes: submissions[0]!.nodes, paths: submissions[0]!.paths }).toEqual(expectedGraph); + expect(submissions[0]!.runtimeHints).toMatchObject({ + resourceMode: 'auto', + workflowAutoPlan: { schemaVersion: 1, graphHash: plannedGraphHash }, + }); + expect(forbiddenPosts).toEqual(['/graph']); + } else { + const blocked = page.getByRole('dialog', { name: 'Run blocked', exact: true }); + await expect(blocked).toContainText(`Auto cannot run this workflow: ${refusal}`); + await expect(blocked).toContainText('No run was submitted'); + expect(submissions).toEqual([]); + expect(forbiddenPosts).toEqual([]); + } + await expect(page.getByTestId('topbar-resource-policy')).toHaveAttribute( + 'aria-label', + 'Memory policy: Automatic. Click to switch.', + ); + expect(await readExecution()).toEqual(expectedGraph); + expect(await publicFlux3FormatSnapshot(page)).toEqual(before); + }); test('ordinary public FLUX3 FP8r control survives Save and cold reload with its exact model identity', async ({ page, From f461a590efcea2c3de38d88952f860b477d0bae5 Mon Sep 17 00:00:00 2001 From: Sourav Das Date: Tue, 27 Oct 2026 14:26:16 +0530 Subject: [PATCH 067/440] Pin client checks to lower-RAM FLUX3 loading --- .github/workflows/ci.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index b4a6ff42..e2ffca8e 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -33,7 +33,7 @@ jobs: with: repository: sdevil7th/MoDiff # Paired image stages, scoped enhancement and FLUX3 evaluation contracts. - ref: 6f9b39ebed592543dbed5547799ddbd0b2933282 + ref: 9d9919699f7f34d9fadc07aea0c463292701e3f8 path: MoDiff persist-credentials: false - name: Verify the pinned backend supports native setup @@ -86,7 +86,7 @@ jobs: with: repository: sdevil7th/MoDiff # Match the immutable backend revision in the Client quality job. - ref: 6f9b39ebed592543dbed5547799ddbd0b2933282 + ref: 9d9919699f7f34d9fadc07aea0c463292701e3f8 path: MoDiff persist-credentials: false - name: Verify the pinned backend supports native setup From f6013a009eda06d0f7cdf18e34552113ca5c30e5 Mon Sep 17 00:00:00 2001 From: Sourav Das Date: Tue, 27 Oct 2026 17:25:37 +0530 Subject: [PATCH 068/440] Bind FLUX3 style candidates and preserve exact Gallery evidence Use the selected pinned NASA and Monet adapters for the two experimental style recipes. Record modular Expert execution identity from executed loader and authoring controls, with mismatch refusals; retain all candidates as unqualified until actual output review. Verify approved Gallery subsets without dropping withheld-file and sidecar checks, permit explicit experimental qualification recording, correct publication wording, and keep bundle budgets within the measured change. Pin both CI jobs to the paired backend. Validation: npm run check passed (3798 tests passed,10 skipped), focused modular provenance checks37 passed, and all118 built bundle files exactly match backend5b711f2b. Historical Gallery verification remains blocked separately; no new media or rights approvals are included. --- .github/workflows/ci.yml | 4 +- docs/image-template-workflows.md | 21 + docs/template-gallery-assets.md | 97 ++-- scripts/bundle-budget.mjs | 5 + .../flux3-public-template-planning.test.mjs | 259 +++++++++-- scripts/live-proof-provenance.mjs | 196 ++++++++- scripts/template-gallery-assets.py | 11 +- scripts/template-gallery-assets.test.py | 8 +- scripts/template-gallery-harness.mjs | 221 ++++++++-- scripts/template-gallery-harness.test.mjs | 415 +++++++++++++++++- scripts/template-qualification.mjs | 8 +- scripts/template-qualification.test.mjs | 142 +++++- src/studio/templateOperationSelections.ts | 4 +- src/studio/templates.ts | 57 +-- .../public-flux3-template-creators.v1.json | 96 +++- 15 files changed, 1395 insertions(+), 149 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index e2ffca8e..c2df03b9 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -33,7 +33,7 @@ jobs: with: repository: sdevil7th/MoDiff # Paired image stages, scoped enhancement and FLUX3 evaluation contracts. - ref: 9d9919699f7f34d9fadc07aea0c463292701e3f8 + ref: 5b711f2b6cff9f521cfe1f52dd3b2810f66861e3 path: MoDiff persist-credentials: false - name: Verify the pinned backend supports native setup @@ -86,7 +86,7 @@ jobs: with: repository: sdevil7th/MoDiff # Match the immutable backend revision in the Client quality job. - ref: 9d9919699f7f34d9fadc07aea0c463292701e3f8 + ref: 5b711f2b6cff9f521cfe1f52dd3b2810f66861e3 path: MoDiff persist-credentials: false - name: Verify the pinned backend supports native setup diff --git a/docs/image-template-workflows.md b/docs/image-template-workflows.md index 4b93e815..ad8457a2 100644 --- a/docs/image-template-workflows.md +++ b/docs/image-template-workflows.md @@ -153,6 +153,27 @@ comparison and the Windows validation procedure. ## Qualification-only blocked-template probes +The two FLUX 3 style planning candidates now name the selected immutable +adapters: [NASA concept art](https://huggingface.co/kocabiyik/nsc7-style-lora/blob/9b998d3bdc3b4aeb2113ab4e8cbd9fe2ebfa1cae/README.md) +for Distilled at scale `0.75`, and [Monet oil painting](https://huggingface.co/pjecuacion/flux3-klein-mnt-oil-monet-lora/blob/0d94b6a4601892499defd8c5d89c24f78e78043b/README.md) +for Base at scale `1`. Both cards declare the +[FLUX Kommunity License v1.0](https://huggingface.co/black-forest-labs/flux-3-image-klein-base/blob/1469d27cfb9bb1bd81d3a93f5a023b39dbf136e4/LICENSE.md). +Their training-data provenance is the authors' statement, not independent rights +verification. The Base planning candidate explicitly replaces Tarot; saved Tarot +workflows and historical evidence keep their original identities. + +These candidates retain the exact radio and fox prompts, seeds `481005` and +`481105`, 512-square FP8r/BF16 recipes, 16/50 steps and guidance 1/3.5. PUP remains +disabled. The locked public settings are Expert with no offload and +`autoOffload=false`. Successful local `model_cpu` / `autoOffload=true` trials +are a separate recipe and cannot qualify these locks. NASA's advertised style +effect remains unproved; Monet's painterly scale-zero baseline must be considered +when reviewing the adapter effect. Inspect actual outputs for invented marks and +signatures. Both candidates remain blocked planning entries without public media, +template qualification, Gallery eligibility, hardware-fit proof or output +publication approval. Adapter terms and local test consent do not approve an +output's publication. + A complete recipe may remain a blocked planning template while its exact output and visual quality are unqualified. The Gallery runner's explicit `--allow-blocked-probe --record-qualification` combination may retain a successful diff --git a/docs/template-gallery-assets.md b/docs/template-gallery-assets.md index 266fbfa1..f5b4951c 100644 --- a/docs/template-gallery-assets.md +++ b/docs/template-gallery-assets.md @@ -15,10 +15,10 @@ guarantee: monitor the current Hub policy and keep the byte manifest portable enough to migrate to another public Dataset namespace if needed. The checked-in source configuration is -`src/studio/templateAssetSource.json`. `mode: "local"` is the safe migration -default; it keeps the current application working until a real Dataset is -uploaded and verified. Do not replace it with a guessed namespace or a moving -`main` revision. +`src/studio/templateAssetSource.json`. The current release selects a public +Hugging Face Dataset by immutable revision and explicitly lists withheld assets. +`mode: "local"` remains available for a complete verified local copy. Never replace +the reviewed source with a guessed namespace or a moving `main` revision. ## One-time public Dataset setup @@ -45,18 +45,18 @@ Choose a user or organization namespace where you have write permission. The recommended repository name is `/modiff-template-gallery`. The repository must remain public for unauthenticated open-source use. -Before running an upload, settle the Gallery media license. The application is -Apache-2.0, but that does not automatically license generated outputs, input -fixtures, model-derived examples, or third-party marks. The current Dataset -card intentionally uses `license: other` because the 140 checked provenance and -review records do not declare a reusable asset license. Its metadata is also -intentionally incomplete, so it cannot be published accidentally. [Hugging -Face's repository-license contract](https://huggingface.co/docs/hub/en/repositories-licenses) -requires `license: other` to include both a descriptive `license_name` in -`docs/template-gallery-dataset-card.md` and the actual terms in -`docs/template-gallery-dataset-license.txt`; the uploader refuses all Hub -mutations until both exist. Do not choose Apache-2.0, CC0, CC-BY, or another -license unless every included asset can legally be distributed on those terms. +Before running an upload, review the rights for every included file. The +application is Apache-2.0, but that does not automatically license generated +outputs, input fixtures, model-derived examples, or third-party marks. The +Dataset card declares `license: other`, +`license_name: modiff-template-gallery-mixed-asset-terms`, and `license_link: LICENSE`. +The complete terms already exist in `docs/template-gallery-dataset-license.txt`; +they defer to each exact file's rights record and grant no blanket asset license. +[Hugging Face's repository-license contract](https://huggingface.co/docs/hub/en/repositories-licenses) +requires a descriptive name and actual terms for `license: other`, and the +uploader checks both before any Hub mutation. These existing Dataset terms do +not approve new media. Choose each file's license only after reviewing its source, +model and adapter terms, attribution, consent, and redistribution rights. Publication also requires `config/template-asset-rights.v1.json`. It is a SHA-bound, one-record-per-file ledger and is uploaded alongside the byte @@ -71,8 +71,10 @@ record the creator/rightsholder, creation method, source URL and revision, source license, model terms, AI-generation flag, likeness/consent status, marks, attribution, asset license, reviewer, and review date. Change the decision to `approved` only after a human review. The uploader requires exact -path and SHA coverage and refuses stale, missing, duplicate, or held records -before authenticating or changing a Hub repository. +path and SHA coverage and refuses stale, missing, or duplicate records before +authenticating or changing a Hub repository. Complete publication also refuses +held records; provisional publication includes only the approved subset and +retains every hold. The commands below use the backend environment because it already contains `huggingface_hub` and `hf_xet`. Authenticate with a write-scoped token. Never @@ -151,7 +153,10 @@ has no activation option: Open the printed manifest URL in a private browser window where you are not signed into Hugging Face. It must return JSON. The upload already performed a -full anonymous byte verification; repeat it independently before activation: +full anonymous byte verification. For a complete publication, repeat it before +activation. For a provisional publication, first follow the +[reviewed approved-subset source update](#reviewed-approved-subset-source-updates) +procedure, which validates against the candidate descriptor: ```bash ../MoDiff/.venv/bin/python scripts/template-gallery-assets.py verify-remote \ @@ -163,7 +168,7 @@ full anonymous byte verification; repeat it independently before activation: Full verification also rejects any stale or unexpected file under the two MoDiff-managed prefixes. -Then activate that exact commit: +For a complete publication only, activate that exact commit: ```bash ../MoDiff/.venv/bin/python scripts/template-gallery-assets.py activate \ @@ -181,17 +186,20 @@ public visibility and every managed asset byte, and only then updates ## Current publication state -The complete local set contains 360 verified files. The rights ledger approves -356 and holds four ACE Chinese New Year / Ghibli media files while written -permission is pending. Publish the approved subset with `upload-provisional`; -do not activate it. After both permissions are recorded, approve those exact -four records, run the complete `upload` command, and activate only its fully -verified immutable revision. - -The current strict inventory has 360 required paths: 358 are used at runtime -(14 are also used by maintainer tooling) and 2 are tooling-only. Of these, 359 -files are present and total 465.91 MiB; the poster above is the one missing -path. The scanner covers runtime TypeScript/JavaScript/JSON, generated source, +The checked complete manifest declares 360 files with no missing paths. Its +rights ledger approves 356 and holds four ACE Chinese New Year / Ghibli media +files while written permission is pending. The current source descriptor pins +the public approved subset and names those four unavailable paths. These are +contract counts, not a claim that every file is materialized in each checkout. +Recompute them after an asset change. + +Use `upload-provisional` while holds remain and review any new source pin using +the approved-subset procedure below. Keep each held path and digest unchanged +until its own permission evidence is recorded. Complete-set `upload` and +`activate` require a fully approved set. + +The strict inventory classifies runtime and maintainer references separately. +The scanner covers runtime TypeScript/JavaScript/JSON, generated source, the public Gallery manifest, maintainer scripts, and JSON/YAML/TOML configs. It recognizes `/template-gallery/...`, `public/template-gallery/...`, and bare `template-gallery/...` references. Adding a concrete reference in a durable but @@ -461,9 +469,13 @@ with `download`. After the integrated application test succeeds, review 2. Add or replace reviewed files and update Gallery qualification metadata. 3. Run `inventory --write`, `verify`, and the normal Gallery qualification gates. -4. Upload without `--create` to the same public Dataset. -5. Test the printed revision unauthenticated. -6. Activate the new commit and run the full frontend acceptance suite. +4. Refresh the per-file rights skeleton. New or changed bytes remain held until + their specific human review; do not use a blanket attestation. +5. Upload without `--create` to the same public Dataset, using + `upload-provisional` while any holds remain, and verify the returned revision + anonymously. +6. Use complete-set activation or the reviewed approved-subset source update, + as applicable, then run the required frontend acceptance checks. 7. Commit the new storage manifest and pinned source configuration together. Never mutate a released source configuration to `main`, a tag, or a pull-request @@ -487,6 +499,11 @@ manifest against the complete local manifest and rights ledger. Update only Preserve the existing path roots and Dataset type. Never infer these values from directory contents or clear a hold to make the sets match. +Preserve the previous descriptor bytes before preparing this change. The edited +descriptor is a release candidate; do not build or deploy it until verification +succeeds. If verification fails, restore those exact descriptor bytes and +retain the failure evidence. + Run `verify-remote --full` against that reviewed descriptor before its commit. It validates the exact complete manifest or approved-subset projection and rights ledger, then anonymously verifies every included byte and rejects @@ -499,6 +516,18 @@ This source update does not approve media rights, template quality, model execution, Auto, or Gallery eligibility. New inputs and previews still require the normal per-file human rights and template evidence reviews. +`npm run gallery:verify` verifies locally materialized bytes against the active +source descriptor. For an immutable Hugging Face subset, it requires the exact +complete storage manifest and rights ledger, verifies every included file's +byte identity, and reports `withheldAssets` and `withheldExamples` separately +from `verifiedExamples`. An exclusion must be an explicit rights hold with an +exact path and hash; held bytes found locally remain withheld. All available +media, provenance, quality review, and current template checks remain required, +including the metadata checks for withheld examples. Local-source mode still +requires the complete Gallery. This check does not approve held content, +replace anonymous `verify-remote --full`, or establish new execution or quality +evidence. + ## Live generation batching The maintainer-only Gallery runner may reuse a loaded pipeline only for consecutive templates with the same normalized Studio `modelType`. The first template, every model boundary, and every failed template resets the reuse chain and invokes accelerator cleanup. Template inputs come from an explicit checked-in input map; the runner never acquires or repairs a model during execution. Use `npm run gallery:run -- --help` for the current options rather than retaining dated host-specific command batches in documentation. diff --git a/scripts/bundle-budget.mjs b/scripts/bundle-budget.mjs index 51e7515f..2f28d53d 100644 --- a/scripts/bundle-budget.mjs +++ b/scripts/bundle-budget.mjs @@ -1,3 +1,6 @@ +// Pinned NASA/Monet planning definitions measure largest/startup/deferred gzip +// 488399/666704/326318 versus 488210/666514/326348. Add only measured +// 189/190-byte startup growth, preserving 15/17-byte headroom and all deferred caps. // Legacy schema-one advisory-hint compatibility measures largest/startup/ // deferred gzip 488210/666514/326348 versus 488155/666461/326431. // Add only measured startup growth 55/53 bytes, retaining 15/17 bytes of @@ -213,6 +216,7 @@ const SOURCE_LICENSES = new URL('../public/THIRD_PARTY_LICENSES.txt', import.met // Retain the strict current-owner/parser checks and allow 128 startup/chunk // bytes only; dependencies, lazy boundaries, minifier and deferred caps stay fixed. const MAX_STARTUP_CHUNK_GZIP_BYTES = + 189 + 55 + 82 + 273 + @@ -327,6 +331,7 @@ const MAX_STARTUP_CHUNK_GZIP_BYTES = // Preserve the separately measured 64-byte shared loading-policy allowance above. // Preserve the measured 384-byte selected-image authoring allowance above. const MAX_STARTUP_GZIP_BYTES = + 190 + 53 + 82 + 274 + diff --git a/scripts/flux3-public-template-planning.test.mjs b/scripts/flux3-public-template-planning.test.mjs index bffab0ee..22a85772 100644 --- a/scripts/flux3-public-template-planning.test.mjs +++ b/scripts/flux3-public-template-planning.test.mjs @@ -4,6 +4,7 @@ import { after, before, test } from 'node:test'; import path from 'node:path'; import { fileURLToPath } from 'node:url'; import { createServer } from 'vite'; +import { executionPlanIdentity, executionReceiptIdentity } from './live-proof-provenance.mjs'; const ROOT = path.resolve(path.dirname(fileURLToPath(import.meta.url)), '..'); const originalGlobals = Object.fromEntries( @@ -210,39 +211,67 @@ test('raw coordinate examples are complete prompt text without seeded layout or } }); -test('an optional user adapter remains incomplete while concrete Base Tarot remains license blocked', () => { - const user = card('flux3_klein_fp8r512_lora_style'); - assert.equal(user.evidencePolicy, 'user_supplied'); - assert.equal(user.inputRequirements.loraAdapter, true); - assert.ok(user.requiredBackendCapabilities.includes('modules.ModularDiffusers.Lora')); - assert.deepEqual(user.workflowBlockSettings.lora.model, { source: 'hub', value: '' }); - assert.match(user.example.blockReason, /compatible immutable user LoRA/); - const base = card('flux3_klein_base_fp8r512_lora_style'); - assert.deepEqual(base.workflowBlocks, ['lora']); - assert.ok(base.requiredBackendCapabilities.includes('modules.ModularDiffusers.Lora')); - assert.deepEqual(base.executionSelection.loraPolicy, { defaultAdapterName: 'tarot' }); - assert.deepEqual(base.workflowBlockSettings.lora, { - model: { - source: 'hub', - value: 'diffusers-modular/flux3-tarot-lora', - revision: '96fe1071462ed2e95c96035625e9f217d7f61f48', - sha256: 'b5adac5ac7232708c2b3b55b1bb7a69c06c0c3e929f96073b7c5c7f3722c946a', - byteSize: 80385992, +test('selected NASA and Monet candidates bind exact adapters and prompts without promoting trial evidence', () => { + const candidates = [ + { + id: 'flux3_klein_fp8r512_lora_style', + repository: 'kocabiyik/nsc7-style-lora', + revision: '9b998d3bdc3b4aeb2113ab4e8cbd9fe2ebfa1cae', + sha256: 'ae6c417cb3bb8ee6f5272a8115d7720587319c6099fffa80f8d39bbbf307daf7', + byteSize: 160696320, + weightName: 'nsc7-style-lora.safetensors', + adapterName: 'nsc7', + scale: 0.75, + prompt: + 'An unbranded ceramic field radio, a folded linen cloth and a single dried grass stem form a balanced three-quarter tabletop still life. Warm side lighting defines the radio silhouette and contact shadows. The radio, linen and stem remain clearly separated against an uncluttered background. No people, logos, readable text, signatures, watermarks or unrelated objects. nsc7 style', }, - weightName: 'pytorch_lora_weights.safetensors', - adapterName: 'tarot', - scale: 1, - }); - assert.equal(Object.hasOwn(base.workflowBlockSettings.lora.model, 'license'), false); - assert.match(base.example.blockReason, /license: other without an explicit grant/); - assert.match(base.prompt, /trtcrd/); + { + id: 'flux3_klein_base_fp8r512_lora_style', + repository: 'pjecuacion/flux3-klein-mnt-oil-monet-lora', + revision: '0d94b6a4601892499defd8c5d89c24f78e78043b', + sha256: 'a25e926d8e5fd0069ed5ee3db67be8ac191df4d713bc807e2abfe61a8f885047', + byteSize: 80381072, + weightName: 'mnt_oil_klein3.safetensors', + adapterName: 'mnt_oil', + scale: 1, + prompt: + 'mnt_oil, an oil painting of a single red fox standing on a moss-covered rock in an ancient forest. The fox is clearly separated from the trees and foliage, with soft morning light filtering through the canopy. Preserve one coherent fox, a readable rock silhouette and a balanced square composition. No ornamental card frame, lettering, logos, signatures or watermarks.', + }, + ]; + for (const expected of candidates) { + const value = card(expected.id); + assert.equal(value.evidencePolicy, 'generated'); + assert.equal(value.inputRequirements?.loraAdapter, undefined); + assert.deepEqual(value.workflowBlocks, ['lora']); + assert.ok(value.requiredBackendCapabilities.includes('modules.ModularDiffusers.Lora')); + assert.deepEqual(value.executionSelection.loraPolicy, { defaultAdapterName: expected.adapterName }); + const lora = value.workflowBlockSettings.lora; + assert.deepEqual(lora.model, { + source: 'hub', + value: expected.repository, + revision: expected.revision, + sha256: expected.sha256, + byteSize: expected.byteSize, + license: 'FLUX Kommunity License v1.0', + }); + assert.deepEqual( + [lora.weightName, lora.adapterName, lora.scale, lora.additionalAdapters], + [expected.weightName, expected.adapterName, expected.scale, undefined], + ); + assert.equal(value.prompt, expected.prompt); + assert.equal(value.description, expected.prompt); + assert.equal(value.negativePrompt, ''); + assert.match(value.label, /Test Candidate/); + assert.match(value.example.blockReason, /output publication approval/); + assert.match(value.example.notes, /model_cpu.*autoOffload=true/); + assert.match(value.example.notes, /none.*autoOffload=false/); + assert.match(value.promptGuide.modelHints.join(' '), /FLUX Kommunity License/); + } }); // Complete source inputs are not native output, fit or publication proof. -test('eight fixed-input recipes are source-complete while all ten still require native proof', () => { - const fixed = ids.filter((id) => !id.endsWith('_lora_style')); - assert.equal(fixed.length, 8); - for (const id of fixed) { +test('all ten fixed-input recipes are source-complete while exact public proof remains pending', () => { + for (const id of ids) { const value = card(id); assert.deepEqual(inputs.resolveTemplateInputs(value).missingLabels, []); assert.ok(value.prompt.trim()); @@ -265,9 +294,9 @@ test('eight fixed-input recipes are source-complete while all ten still require // This uses captured source metadata and mocked managed input paths only. It // constructs ordinary graphs; it does not read media, execute or qualify models. -test('all eight fixed-input planning cards create exact ordinary FP8r task graphs', async () => { +test('all ten fixed-input planning cards create exact ordinary FP8r task graphs', async () => { const load = (name) => server.ssrLoadModule(`/src/${name}.ts`); - const [operations, catalog, choices, requests, creator, flow, defaults, exactness] = await Promise.all([ + const [operations, catalog, choices, requests, creator, flow, defaults, exactness, visualGroups] = await Promise.all([ load('workflow/operationContracts'), load('workflow/operationCatalog'), load('workflow/workflowChoices'), @@ -276,6 +305,7 @@ test('all eight fixed-input planning cards create exact ordinary FP8r task graph load('stores/useFlowStore'), load('studio/modelProfiles'), load('studio/templateExactness'), + load('workflow/visualOperationGroupProjection'), ]); const captured = JSON.parse( await readFile(path.join(ROOT, 'tests/fixtures/public-flux3-template-creators.v1.json'), 'utf8'), @@ -283,7 +313,12 @@ test('all eight fixed-input planning cards create exact ordinary FP8r task graph const capturedBefore = structuredClone(captured); assert.equal(captured.activeProvider, null); assert.equal(captured.starters.length, 10); - for (const key of ['modules.Image.Load', 'modules.Image.Preview', 'modules.ModularDiffusers.ImageEncode']) { + for (const key of [ + 'modules.Image.Load', + 'modules.Image.Preview', + 'modules.ModularDiffusers.ImageEncode', + 'modules.ModularDiffusers.Lora', + ]) { const leaf = captured.registry[key]; assert.ok(leaf, key); assert.equal(`${leaf.module}.${leaf.action}`, key); @@ -301,9 +336,7 @@ test('all eight fixed-input planning cards create exact ordinary FP8r task graph const descriptors = choices.parseWorkflowModelDescriptors(payload, support); const registry = structuredClone(captured.registry); const registryBefore = structuredClone(registry); - const fixed = ids.filter((id) => !id.endsWith('_lora_style')); - assert.equal(fixed.length, 8); - for (const id of fixed) { + for (const id of ids) { const value = card(id); const cardBefore = structuredClone(value); const selected = modelSelection.resolveTemplateModelSelection(value, payload.capabilities); @@ -417,6 +450,28 @@ test('all eight fixed-input planning cards create exact ordinary FP8r task graph ); }; edge(nodeFor('modules.ModularDiffusers', 'DecodeLatents'), 'images', preview, 'image'); + if (value.workflowBlocks?.includes('lora')) { + const lora = nodeFor('modules.ModularDiffusers', 'Lora'); + const expected = value.workflowBlockSettings.lora; + assert.deepEqual(lora.data.params.model.value, { source: 'hub', value: expected.model.value }); + assert.deepEqual( + ['revision', 'expected_sha256', 'weight_name', 'adapter_name', 'scale'].map( + (field) => lora.data.params[field].value, + ), + [expected.model.revision, expected.model.sha256, expected.weightName, expected.adapterName, expected.scale], + ); + assert.notEqual(lora.data.params.revision.value, owner.data.params.revision.value); + edge(lora, 'lora', owner, 'lora_list'); + assert.equal( + graph.edges.some((item) => item.target === lora.id && item.targetHandle === 'previous_loras'), + false, + ); + } else { + assert.equal( + graph.nodes.some((node) => node.data.action === 'Lora'), + false, + ); + } if (value.mode === 'edit_image') { const image = nodeFor('modules.Image', 'Load'); const encoder = nodeFor('modules.ModularDiffusers', 'ImageEncode'); @@ -451,6 +506,140 @@ test('all eight fixed-input planning cards create exact ordinary FP8r task graph false, 'PUP starts disabled; graph authoring is not a provider execution', ); + // Ordinary production Run adds correlation plus this durable snapshot, + // without a managed Studio resource plan. Use the real creator/exporter; + // these are CPU metadata fixtures, never native execution measurements. + const apiGraph = flow.useFlowStore.getState().exportGraph('native-expert-proof', undefined, { + sourceGraph: grouped, + randomizeSeeds: false, + }); + const proofGraph = { + ...apiGraph, + runtimeHints: { workflowSnapshot: { ...structuredClone(grouped), studioForm: form, studioGraphBinding: null } }, + }; + for (const hints of [{}, { resourceMode: 'expert' }]) { + const current = { ...proofGraph, runtimeHints: { ...proofGraph.runtimeHints, ...hints } }; + const plan = executionPlanIdentity(current).plan; + assert.equal(plan.source, 'executed-expert-modular-graph-v1', id); + assert.equal(plan.modelType, selection.pipelineClass); + assert.equal(plan.modelRepo, repository); + assert.equal(plan.modelRevision, revision); + assert.equal(plan.executionProfileId, selection.executionProfileId); + assert.equal(plan.authoringRecipeId, selection.authoringRecipeId); + assert.deepEqual( + [plan.dtype, plan.weightFormat, plan.quantizationMode, plan.device], + ['bfloat16', 'fp8r', 'none', device], + ); + assert.deepEqual([plan.autoOffload, plan.offloadMode, plan.weightLoadingMode], [false, 'none', 'cpu']); + assert.equal( + executionReceiptIdentity({}, plan).resourceCandidateId, + `manual-resource-v1:${selection.pipelineClass}|bfloat16|none|none`, + ); + assert.equal(executionReceiptIdentity({}, plan).peakMemoryBytes, null, 'No fabricated measurement.'); + } + const ordinary = visualGroups.unpackVisualOperationGroups(grouped).graph; + const ordinaryApi = flow.useFlowStore.getState().exportGraph('native-expert-proof-ordinary', undefined, { + sourceGraph: ordinary, + randomizeSeeds: false, + }); + ordinaryApi.runtimeHints = { workflowSnapshot: { ...ordinary, studioForm: form, studioGraphBinding: null } }; + assert.deepEqual( + executionPlanIdentity(ordinaryApi).plan, + executionPlanIdentity(proofGraph).plan, + 'Ordinary and grouped creator graphs prove the same loading recipe.', + ); + if (id === ids[0]) { + const loaderId = Object.keys(apiGraph.nodes).find((key) => apiGraph.nodes[key].action === 'ModelsLoader'); + const parentContext = (g) => + g.runtimeHints.workflowSnapshot.nodes + .flatMap((node) => node.data.blockInstanceV2?.effectiveGraph.nodes ?? [node]) + .find((node) => node.data.operationAuthoring?.ancillaryParent)?.data.operationAuthoring.ancillaryParent; + const mutations = [ + (g) => { + g.runtimeHints.workflowSnapshot.studioForm.dtype = 'float16'; + }, + (g) => { + g.runtimeHints.workflowSnapshot.studioForm.weightFormat = 'native'; + }, + (g) => { + g.runtimeHints.workflowSnapshot.studioForm.device = 'cuda:9'; + }, + (g) => { + g.runtimeHints.workflowSnapshot.studioForm.autoOffload = true; + }, + (g) => { + g.runtimeHints.workflowSnapshot.studioForm.modelType = 'OtherPipeline'; + }, + (g) => { + g.runtimeHints.workflowSnapshot.studioForm.modelRepo = 'Other/Model'; + }, + (g) => { + g.runtimeHints.workflowSnapshot.studioForm.trustRemoteCode = true; + }, + (g) => { + g.nodes[loaderId].params.repo_id.value = repository; + }, + (g) => { + g.nodes[loaderId].params.revision.value = 'main'; + }, + (g) => { + g.nodes[loaderId].params.trust_remote_code.value = true; + }, + (g) => { + g.nodes[loaderId].params.dtype.sourceId = 'foreign'; + }, + (g) => { + g.nodes[loaderId].params.quant_config.sourceId = 'foreign'; + }, + (g) => { + g.nodes[loaderId].params.unet.sourceId = 'foreign'; + }, + (g) => { + g.paths = g.paths.map((row) => row.filter((key) => key !== loaderId)); + }, + (g) => { + g.nodes.extra = structuredClone(g.nodes[loaderId]); + g.paths[0].push('extra'); + }, + (g) => { + g.runtimeHints.workflowSnapshot.nodes = []; + }, + (g) => { + g.runtimeHints.resourceMode = 'auto'; + }, + (g) => { + parentContext(g).parent.executionProfileId = 'foreign-profile'; + }, + (g) => { + delete parentContext(g).parent.authoringRecipeId; + }, + (g) => { + parentContext(g).parent.task = 'edit_image'; + }, + (g) => { + parentContext(g).parentRoleNodes.models = 'foreign'; + }, + (g) => { + parentContext(g).parentRoleNodes.prompt = 'foreign'; + }, + (g) => { + parentContext(g).parentRoleNodes.decode = parentContext(g).parentRoleNodes.denoise; + }, + (g) => { + g.nodes[Object.keys(g.nodes).find((key) => g.nodes[key].action === 'DecodeLatents')].params.vae.sourceId = + 'foreign'; + }, + ]; + for (const [index, mutate] of mutations.entries()) { + const changed = structuredClone(proofGraph); + mutate(changed); + assert.equal( + executionReceiptIdentity({}, executionPlanIdentity(changed).plan).resourceCandidateId, + null, + `native Expert mismatch ${index} must not recover a receipt identity`, + ); + } + } assert.deepEqual(value, cardBefore); assert.equal(value.example.status, 'blocked'); } diff --git a/scripts/live-proof-provenance.mjs b/scripts/live-proof-provenance.mjs index 940d8f48..922b7168 100644 --- a/scripts/live-proof-provenance.mjs +++ b/scripts/live-proof-provenance.mjs @@ -430,6 +430,195 @@ export function executedExpertPlanFromGraph(apiGraph) { }); } +/** + * Ordinary modular Run has no managed Studio plan. Recover only the reviewed + * BF16/FP8r, CPU-loading Expert contract from its executed owner and durable + * authoring context. This records a recipe, never runtime or fit qualification. + */ +function executedModularExpertPlanFromGraph(apiGraph) { + const snapshot = apiGraph?.runtimeHints?.workflowSnapshot; + const form = snapshot?.studioForm; + if ( + form?.resourceMode !== 'expert' || + form.dtype !== 'bfloat16' || + form.weightFormat !== 'fp8r' || + form.quantizationMode !== 'none' || + form.trustRemoteCode !== false || + typeof form.autoOffload !== 'boolean' || + typeof form.offloadMode !== 'string' || + typeof form.device !== 'string' || + typeof form.modelType !== 'string' || + typeof form.modelRepo !== 'string' || + !Array.isArray(snapshot.nodes) + ) + return null; + + const entries = nodeEntries(apiGraph); + const byId = new Map(entries); + const executedIds = new Set((apiGraph?.paths ?? []).flat().map(String)); + const owners = entries.filter( + ([id, node]) => + executedIds.has(id) && node?.module === 'modules.ModularDiffusers' && node.action === 'ModelsLoader', + ); + if (owners.length !== 1) return null; + const [ownerId, owner] = owners[0]; + for (const field of [ + 'repo_id', + 'revision', + 'model_type', + 'dtype', + 'weight_format', + 'device', + 'offload_mode', + 'auto_offload', + 'weight_loading_mode', + 'trust_remote_code', + ]) { + if (owner.params?.[field]?.sourceId != null || owner.params?.[field]?.sourceKey != null) return null; + } + const repo = apiParamValue(owner, 'repo_id'); + const revision = apiParamValue(owner, 'revision'); + if ( + !repo || + typeof repo !== 'object' || + Array.isArray(repo) || + repo.source !== 'hub' || + typeof repo.value !== 'string' || + !repo.value || + repo.value !== form.modelRepo || + typeof revision !== 'string' || + !/^[0-9a-f]{40}$/u.test(revision) || + apiParamValue(owner, 'model_type') !== form.modelType || + apiParamValue(owner, 'dtype') !== form.dtype || + apiParamValue(owner, 'weight_format') !== form.weightFormat || + apiParamValue(owner, 'device') !== form.device || + apiParamValue(owner, 'offload_mode') !== form.offloadMode || + apiParamValue(owner, 'auto_offload') !== form.autoOffload || + apiParamValue(owner, 'weight_loading_mode') !== 'cpu' || + apiParamValue(owner, 'trust_remote_code') !== false + ) + return null; + // A borrowed component or a quantization node changes the loading contract. + for (const field of [ + 'quant_config', + 'unet', + 'vae', + 'controlnet', + 'text_encoders', + 'pipeline_components', + 'image_encoder', + ]) { + const param = owner.params?.[field]; + if (param?.sourceId != null || param?.sourceKey != null || apiParamValue(owner, field) != null) return null; + } + + // Read active durable leaves only, not definition snapshots or projected UI + // duplicates. Local Block roles use semantic IDs; external roles already use + // exported IDs. This is the blockProjectionNodeIdV2 identity format, not a + // reconstruction of graph execution or socket expansion. + const leaves = []; + const visit = (nodes, localIds = null) => { + for (const node of nodes) { + const data = node?.data; + if (!data || data.blockProjectionOwnerId) continue; + if (data.blockInstanceV2) { + const instance = data.blockInstanceV2; + const children = instance.effectiveGraph?.nodes; + if (localIds || typeof instance.instanceId !== 'string' || !Array.isArray(children)) return false; + const ids = new Map( + children.map((child) => [ + child.nodeId, + `block-v2-node:${instance.instanceId.length}:${instance.instanceId}:${child.nodeId?.length}:${child.nodeId}`, + ]), + ); + if (ids.size !== children.length || children.some((child) => typeof child.nodeId !== 'string')) return false; + if (!visit(children, ids)) return false; + } else { + const context = data.operationAuthoring?.ancillaryParent; + const roles = context?.parentRoleNodes; + leaves.push({ + data, + id: localIds?.get(node.nodeId) ?? node.id, + roles: + roles && Object.fromEntries(Object.entries(roles).map(([role, id]) => [role, localIds?.get(id) ?? id])), + }); + } + } + return true; + }; + if (!visit(snapshot.nodes)) return null; + const contexts = leaves.filter( + ({ data, id, roles }) => + data.module === 'modules.ModularDiffusers' && + data.action === 'EncodePrompt' && + roles?.models === ownerId && + roles.prompt === id, + ); + if (contexts.length !== 1) return null; + const hint = contexts[0].data.operationAuthoring; + const context = hint.ancillaryParent; + const parent = context.parent; + const roles = contexts[0].roles; + if ( + context.schemaVersion !== 1 || + parent?.pipelineClass !== form.modelType || + parent.task !== form.mode || + hint.operation?.pipelineClass !== form.modelType || + hint.operation.task !== form.mode || + typeof parent.executionProfileId !== 'string' || + !parent.executionProfileId || + typeof parent.authoringRecipeId !== 'string' || + !parent.authoringRecipeId || + typeof parent.baseSpecId !== 'string' || + !parent.baseSpecId.startsWith(`${parent.executionProfileId}:`) || + !/^studio-spec-v1-[0-9a-f]{8}$/u.test(parent.baseSpecContentHash ?? '') || + !/^studio-authoring-v1-[0-9a-f]{8}$/u.test(parent.authoringContentHash ?? '') || + new Set(Object.values(roles)).size !== Object.values(roles).length + ) + return null; + for (const [role, action] of [ + ['prompt', 'EncodePrompt'], + ['denoise', 'Denoise'], + ['decode', 'DecodeLatents'], + ]) { + const node = byId.get(roles[role]); + if (!executedIds.has(roles[role]) || node?.module !== 'modules.ModularDiffusers' || node.action !== action) + return null; + } + for (const [role, field, sourceRole, sourceField] of [ + ['prompt', 'text_encoders', 'models', 'text_encoders'], + ['denoise', 'unet', 'models', 'unet_out'], + ['denoise', 'scheduler', 'models', 'scheduler'], + ['denoise', 'embeddings', 'prompt', 'embeddings'], + ['decode', 'vae', 'models', 'vae_out'], + ['decode', 'latents', 'denoise', 'latents'], + ]) { + const source = connectedParamSource(byId.get(roles[role]), field); + if (source?.nodeId !== roles[sourceRole] || source.field !== sourceField) return null; + } + return orderedValue({ + source: 'executed-expert-modular-graph-v1', + device: form.device, + modelType: form.modelType, + modelRepo: repo.value, + resolvedModelRepo: repo.value, + resolvedArtifact: repo.value, + modelRevision: revision, + pipelineClass: form.modelType, + executionProfileId: parent.executionProfileId, + authoringRecipeId: parent.authoringRecipeId, + dtype: form.dtype, + weightFormat: form.weightFormat, + weightLoadingMode: 'cpu', + resourceMode: 'expert', + resolvedResourceMode: 'expert', + quantizationMode: 'none', + quantizedComponents: [], + autoOffload: form.autoOffload, + offloadMode: form.offloadMode, + }); +} + export function executionPlanIdentity(apiGraph) { const runtimeHints = apiGraph?.runtimeHints ?? {}; const declaredPlan = Object.fromEntries( @@ -438,7 +627,12 @@ export function executionPlanIdentity(apiGraph) { runtimeHints[field], ]), ); - const plan = Object.keys(declaredPlan).length > 0 ? declaredPlan : (executedExpertPlanFromGraph(apiGraph) ?? {}); + const fields = Object.keys(declaredPlan); + const expertOnly = fields.every( + (field) => ['resourceMode', 'resolvedResourceMode'].includes(field) && declaredPlan[field] === 'expert', + ); + const modularPlan = expertOnly ? executedModularExpertPlanFromGraph(apiGraph) : null; + const plan = modularPlan ?? (fields.length > 0 ? declaredPlan : (executedExpertPlanFromGraph(apiGraph) ?? {})); return { hash: sha256Value('execution-plan-v1', plan), plan: orderedValue(plan), diff --git a/scripts/template-gallery-assets.py b/scripts/template-gallery-assets.py index 78d165fe..59edbd91 100644 --- a/scripts/template-gallery-assets.py +++ b/scripts/template-gallery-assets.py @@ -1011,8 +1011,10 @@ def provisional_dataset_card(held_paths: list[str]) -> str: DATASET_CARD_PATH.read_text(encoding="utf-8").rstrip() + "\n\n## Provisional publication\n\n" + "This revision contains only the rights-approved subset and is intentionally " - + "incomplete. It must not be activated as MoDiff's runtime Dataset. The complete " - + "local asset set remains authoritative until the pending permissions are resolved.\n\n" + + "incomplete. Do not use the complete-set `activate` command for this revision. " + + "Runtime use requires a separately reviewed source-descriptor update and full " + + "anonymous verification of the exact approved subset. The complete authoring " + + "manifest and all held-file decisions remain authoritative.\n\n" + "Files withheld from this revision:\n\n" + held_list + "\n" @@ -1666,7 +1668,10 @@ def command_upload_provisional(args: argparse.Namespace) -> int: print(f"Withheld assets: {len(held_paths)}") for path in held_paths: print(f" WITHHELD {path}") - print("MoDiff remains in local asset mode; this provisional revision cannot be activated.") + print( + "The application source is unchanged. Runtime use of this approved subset " + "requires a separately reviewed source-descriptor update and full anonymous verification." + ) return 0 diff --git a/scripts/template-gallery-assets.test.py b/scripts/template-gallery-assets.test.py index bfe8a6d8..57f220bf 100644 --- a/scripts/template-gallery-assets.test.py +++ b/scripts/template-gallery-assets.test.py @@ -560,10 +560,10 @@ def test_provisional_staging_contains_only_approved_exact_bytes(self) -> None: provisional_ledger["assetSetId"], provisional_manifest["assetSetId"], ) - self.assertIn( - "must not be activated", - (staging / "README.md").read_text(encoding="utf-8"), - ) + card = (staging / "README.md").read_text(encoding="utf-8") + self.assertIn("Do not use the complete-set `activate` command", card) + self.assertIn("separately reviewed source-descriptor update", card) + self.assertIn("full anonymous verification", card) def test_provisional_upload_cli_has_no_activate_option(self) -> None: parsed = assets.parser().parse_args( diff --git a/scripts/template-gallery-harness.mjs b/scripts/template-gallery-harness.mjs index eef4be3e..4dd02e31 100644 --- a/scripts/template-gallery-harness.mjs +++ b/scripts/template-gallery-harness.mjs @@ -1,11 +1,22 @@ import { createHash } from 'node:crypto'; import { spawnSync } from 'node:child_process'; -import { existsSync, mkdirSync, readdirSync, readFileSync, writeFileSync, copyFileSync } from 'node:fs'; -import { dirname, extname, join, resolve } from 'node:path'; +import { + existsSync, + lstatSync, + mkdirSync, + readdirSync, + readFileSync, + realpathSync, + writeFileSync, + copyFileSync, +} from 'node:fs'; +import { dirname, extname, isAbsolute, join, relative, resolve } from 'node:path'; import { fileURLToPath, pathToFileURL } from 'node:url'; import { createServer } from 'vite'; import { compareRunProvenance, runtimeLockFromProvenance } from './live-proof-provenance.mjs'; import templateGalleryContract from '../src/studio/templateGalleryContract.json' with { type: 'json' }; +import { canonicalJsonHash as storageJsonHash } from './canonical-json.mjs'; +import { validateTemplateAssetRelease, validateTemplateAssetSource } from './template-asset-source-contract.ts'; const ROOT = resolve(dirname(fileURLToPath(import.meta.url)), '..'); const PUBLIC_GALLERY_DIR = join(ROOT, 'public', 'template-gallery'); @@ -1776,11 +1787,11 @@ function writeBrowserSafeBeforePreview(videoPath, previewPath, args) { ); } -function readManifest() { - if (!existsSync(PUBLIC_MANIFEST)) { +function readManifest(manifestPath = PUBLIC_MANIFEST) { + if (!existsSync(manifestPath)) { return { schemaVersion: 2, generatedAt: new Date(0).toISOString(), runtimeFingerprint: 'unverified', examples: [] }; } - return JSON.parse(readFileSync(PUBLIC_MANIFEST, 'utf8')); + return JSON.parse(readFileSync(manifestPath, 'utf8')); } function validateManifestShape(manifest) { @@ -2178,38 +2189,184 @@ async function generate(args, artifactDir) { }; } -async function verify(args, artifactDir) { - const runtime = await loadTemplateRuntime(); +// This is a local verification of the checked-in immutable publication scope, +// not a rights approval or an anonymous verification of the remote Dataset. +function canonicalGalleryAssetPath(path) { + return ( + typeof path === 'string' && + path.startsWith('template-gallery/') && + !path.includes('\\') && + !path.split('/').some((part) => !part || part === '.' || part === '..' || part.includes(':')) + ); +} + +function galleryVerificationScope(root) { + const read = (path) => JSON.parse(readFileSync(join(root, path), 'utf8')); + const source = validateTemplateAssetSource(read('src/studio/templateAssetSource.json')); + if (source.mode === 'local') return { source, assets: [], withheld: [] }; + const manifest = read('config/template-assets.v1.json'); + validateTemplateAssetRelease(source, manifest); + const rights = read('config/template-asset-rights.v1.json'); + const assets = manifest.assets; + const paths = Array.isArray(assets) ? assets.map((asset) => asset?.path) : []; + const identity = (rows) => + `sha256:canonical-json:${storageJsonHash({ schemaVersion: 1, assetVersion: manifest.assetVersion, assets: rows })}`; + if ( + !Array.isArray(assets) || + !assets.length || + paths.some((path) => !canonicalGalleryAssetPath(path)) || + new Set(paths.map((path) => path.toLowerCase())).size !== paths.length || + paths.join('\n') !== [...paths].sort().join('\n') || + assets.some( + (asset) => + !Number.isSafeInteger(asset.size) || asset.size < 0 || !/^sha256:bytes:[a-f0-9]{64}$/.test(asset.sha256), + ) || + manifest.assetCount !== assets.length || + manifest.totalBytes !== assets.reduce((sum, asset) => sum + asset.size, 0) || + !Array.isArray(manifest.missingAssets) || + manifest.missingAssets.length || + manifest.assetSetId !== identity(assets) + ) { + throw new Error('Gallery verification requires the exact complete storage manifest.'); + } + if ( + rights.schemaVersion !== 1 || + rights.assetSetId !== manifest.assetSetId || + !Array.isArray(rights.records) || + rights.records.length !== assets.length || + new Set(rights.records.map((row) => row.path)).size !== assets.length + ) { + throw new Error('Gallery verification rights ledger does not cover the exact storage manifest.'); + } + const rightsByPath = new Map(rights.records.map((row) => [row.path, row])); + const unavailable = new Set(source.unavailableAssets ?? []); + const withheld = []; + for (const asset of assets) { + const row = rightsByPath.get(asset.path); + if ( + !row || + row.sha256 !== asset.sha256 || + (unavailable.has(asset.path) + ? row.publishDecision !== 'hold' || typeof row.holdReason !== 'string' || !row.holdReason.trim() + : row.publishDecision !== 'approved') + ) { + throw new Error(`Gallery verification rights/source mismatch: ${asset.path}`); + } + if (unavailable.has(asset.path)) withheld.push({ path: asset.path, sha256: asset.sha256, reason: row.holdReason }); + } + const available = assets.filter((asset) => !unavailable.has(asset.path)); + if (!available.length || withheld.length !== unavailable.size || source.assetSetId !== identity(available)) { + throw new Error('Gallery verification source is not the exact nonempty approved asset subset.'); + } + return { source, assets: available, withheld }; +} + +export async function verifyGallery( + args, + artifactDir, + { root = ROOT, runtime: suppliedRuntime, decodeMedia = decodedMediaHash } = {}, +) { + const runtime = suppliedRuntime ?? (await loadTemplateRuntime(root)); const templatesById = new Map(runtime.templates.map((template) => [template.id, template])); - const manifest = readManifest(); + const manifest = readManifest(join(root, 'public', 'template-gallery', 'manifest.json')); const errors = validateManifestShape(manifest); + const scope = galleryVerificationScope(root); + const unavailable = new Set(scope.withheld.map((asset) => asset.path)); + const isWithheld = (path) => typeof path === 'string' && unavailable.has(path.replace(/^\//, '')); + const withheldExamples = []; + const publicRoot = join(realpathSync(root), 'public'); + if (lstatSync(publicRoot).isSymbolicLink()) throw new Error('Gallery public root must not be a link.'); + const assertContainedFile = (filename, label) => { + if (!existsSync(filename)) return; + const stat = lstatSync(filename); + const resolved = relative(publicRoot, realpathSync(filename)); + if ( + !stat.isFile() || + stat.isSymbolicLink() || + isAbsolute(resolved) || + resolved === '..' || + resolved.startsWith('..\\') || + resolved.startsWith('../') + ) { + throw new Error(`Gallery asset is not a contained regular file: ${label}`); + } + }; + const publishedPaths = new Set(scope.assets.map((asset) => asset.path)); + const storagePaths = new Set([...publishedPaths, ...unavailable]); + for (const entry of manifest.examples ?? []) { + for (const field of [ + 'outputPath', + 'thumbnailPath', + 'beforePath', + 'afterPath', + 'cardPreviewPath', + 'provenancePath', + 'qualityReviewPath', + ]) { + const path = entry[field]; + if (path == null && ['beforePath', 'afterPath', 'cardPreviewPath'].includes(field)) continue; + if (typeof path !== 'string' || !path.startsWith('/') || !canonicalGalleryAssetPath(path.slice(1))) { + throw new Error(`${entry.templateId} ${field} must be a canonical Gallery path.`); + } + if (scope.source.mode === 'huggingface') { + if (!storagePaths.has(path.slice(1))) + throw new Error(`${entry.templateId} ${field} is not listed in the complete storage manifest.`); + if (['provenancePath', 'qualityReviewPath'].includes(field) && !publishedPaths.has(path.slice(1))) { + throw new Error(`${entry.templateId} ${field} sidecar must be available in the approved subset.`); + } + } + assertContainedFile(join(publicRoot, path.slice(1)), `${entry.templateId} ${field}`); + } + } + for (const asset of scope.assets) { + const filename = join(publicRoot, asset.path); + if (!existsSync(filename)) { + errors.push(`Published asset missing: ${asset.path}`); + continue; + } + assertContainedFile(filename, asset.path); + if (lstatSync(filename).size !== asset.size || `sha256:bytes:${sha256(readFileSync(filename))}` !== asset.sha256) { + errors.push(`Published asset byte identity mismatch: ${asset.path}`); + } + } if ((manifest.examples?.length ?? 0) === 0) { errors.push('Gallery manifest is vacuous: at least one reviewed or exact runtime-generated example is required.'); } for (const entry of manifest.examples ?? []) { + const withheldPaths = [ + ...new Set( + ['outputPath', 'thumbnailPath', 'beforePath', 'afterPath', 'cardPreviewPath'] + .map((field) => entry[field]) + .filter(isWithheld) + .map((path) => path.replace(/^\//, '')), + ), + ].sort(); + if (withheldPaths.length) withheldExamples.push({ templateId: entry.templateId, assets: withheldPaths }); const verificationStatus = entry.verificationStatus ?? (entry.qualityReviewStatus === EXACT_QUALITY_REVIEW_STATUS ? 'exact' : 'reviewed'); const exactPublication = verificationStatus === 'exact'; const requiredReviewStatus = exactPublication ? EXACT_QUALITY_REVIEW_STATUS : REVIEWED_QUALITY_REVIEW_STATUS; - const outputPath = join(ROOT, 'public', entry.outputPath.replace(/^\//, '')); - if (!existsSync(outputPath)) { + const outputPath = join(root, 'public', entry.outputPath.replace(/^\//, '')); + if (!isWithheld(entry.outputPath) && !existsSync(outputPath)) { errors.push(`${entry.templateId} media file missing: ${entry.outputPath}`); continue; } - const thumbnailPath = join(ROOT, 'public', entry.thumbnailPath.replace(/^\//, '')); - if (!existsSync(thumbnailPath)) { + const thumbnailPath = join(root, 'public', entry.thumbnailPath.replace(/^\//, '')); + if (!isWithheld(entry.thumbnailPath) && !existsSync(thumbnailPath)) { errors.push(`${entry.templateId} thumbnail file missing: ${entry.thumbnailPath}`); } - const decoded = await decodedMediaHash(outputPath, entry.mediaType ?? 'image', args); - if (decoded.hash !== entry.mediaHash) { + const decoded = isWithheld(entry.outputPath) + ? null + : await decodeMedia(outputPath, entry.mediaType ?? 'image', args); + if (decoded && decoded.hash !== entry.mediaHash) { errors.push(`${entry.templateId} decoded hash mismatch: expected ${entry.mediaHash}, got ${decoded.hash}`); } - if (entry.decodedAudioHash && decoded.embeddedAudio?.hash !== entry.decodedAudioHash) { + if (decoded && entry.decodedAudioHash && decoded.embeddedAudio?.hash !== entry.decodedAudioHash) { errors.push( `${entry.templateId} decoded audio hash mismatch: expected ${entry.decodedAudioHash}, got ${decoded.embeddedAudio?.hash ?? 'missing'}`, ); } - if (entry.audiovisualMediaHash && decoded.audiovisualMediaHash !== entry.audiovisualMediaHash) { + if (decoded && entry.audiovisualMediaHash && decoded.audiovisualMediaHash !== entry.audiovisualMediaHash) { errors.push( `${entry.templateId} audiovisual hash mismatch: expected ${entry.audiovisualMediaHash}, got ${decoded.audiovisualMediaHash ?? 'missing'}`, ); @@ -2244,9 +2401,10 @@ async function verify(args, artifactDir) { errors.push(`${entry.templateId} manifest template input contract is stale for the current bundled defaults`); } errors.push( - ...technicalMediaErrors(decoded, galleryExpectedOutput(template), entry.mediaType ?? 'image').map( - (error) => `${entry.templateId} technical media gate: ${error}`, - ), + ...(decoded + ? technicalMediaErrors(decoded, galleryExpectedOutput(template), entry.mediaType ?? 'image') + : [] + ).map((error) => `${entry.templateId} technical media gate: ${error}`), ); if (requiresBeforeMedia(template) && (!entry.beforePath || !entry.afterPath || !entry.beforeMediaHash)) { errors.push( @@ -2254,8 +2412,8 @@ async function verify(args, artifactDir) { ); } } - if (entry.beforePath) { - const beforePath = join(ROOT, 'public', entry.beforePath.replace(/^\//, '')); + if (entry.beforePath && !isWithheld(entry.beforePath)) { + const beforePath = join(root, 'public', entry.beforePath.replace(/^\//, '')); if (!existsSync(beforePath)) { errors.push(`${entry.templateId} before media file missing: ${entry.beforePath}`); } else { @@ -2266,15 +2424,15 @@ async function verify(args, artifactDir) { ); } if (MEDIA_EXTENSIONS.video.has(extname(entry.beforePath).toLowerCase())) { - const decodedBeforePreview = await decodedMediaHash(beforePath, 'video', args); + const decodedBeforePreview = await decodeMedia(beforePath, 'video', args); errors.push( ...beforePreviewContractErrors(decodedBeforePreview).map((error) => `${entry.templateId} ${error}`), ); } } } - if (entry.mediaType === 'video' && entry.cardPreviewPath) { - const cardPreviewPath = join(ROOT, 'public', entry.cardPreviewPath.replace(/^\//, '')); + if (entry.mediaType === 'video' && entry.cardPreviewPath && !isWithheld(entry.cardPreviewPath)) { + const cardPreviewPath = join(root, 'public', entry.cardPreviewPath.replace(/^\//, '')); if (!existsSync(cardPreviewPath)) { errors.push(`${entry.templateId} card preview file missing: ${entry.cardPreviewPath}`); } else { @@ -2284,11 +2442,11 @@ async function verify(args, artifactDir) { `${entry.templateId} card preview hash mismatch: expected ${entry.cardPreviewSha256}, got ${cardPreviewSha256}`, ); } - const decodedCardPreview = await decodedMediaHash(cardPreviewPath, 'video', args); + const decodedCardPreview = await decodeMedia(cardPreviewPath, 'video', args); errors.push(...cardPreviewContractErrors(decodedCardPreview).map((error) => `${entry.templateId} ${error}`)); } } - const provenancePath = join(ROOT, 'public', String(entry.provenancePath ?? '').replace(/^\//, '')); + const provenancePath = join(root, 'public', String(entry.provenancePath ?? '').replace(/^\//, '')); if (!existsSync(provenancePath)) { errors.push(`${entry.templateId} provenance missing: ${entry.provenancePath}`); } else { @@ -2373,7 +2531,7 @@ async function verify(args, artifactDir) { ); } } - const qualityReviewPath = join(ROOT, 'public', String(entry.qualityReviewPath ?? '').replace(/^\//, '')); + const qualityReviewPath = join(root, 'public', String(entry.qualityReviewPath ?? '').replace(/^\//, '')); if (!existsSync(qualityReviewPath)) { errors.push(`${entry.templateId} quality review missing: ${entry.qualityReviewPath}`); continue; @@ -2412,10 +2570,17 @@ async function verify(args, artifactDir) { } } + const availableExamples = (manifest.examples?.length ?? 0) - withheldExamples.length; + if (availableExamples === 0) errors.push('Gallery verification has no available published examples.'); return { mode: 'verify', artifactDir, examples: manifest.examples?.length ?? 0, + verificationScope: + scope.source.mode === 'huggingface' ? 'pinned-remote-assets-materialized-locally' : 'complete-local', + verifiedExamples: errors.length === 0 ? availableExamples : 0, + withheldExamples, + withheldAssets: scope.withheld, errors, ok: errors.length === 0, }; @@ -2425,7 +2590,7 @@ async function main() { const args = parseArgs(process.argv); const artifactDir = artifactDirFor(args.mode); mkdirSync(PUBLIC_GALLERY_DIR, { recursive: true }); - const result = args.mode === 'generate' ? await generate(args, artifactDir) : await verify(args, artifactDir); + const result = args.mode === 'generate' ? await generate(args, artifactDir) : await verifyGallery(args, artifactDir); writeFileSync(join(artifactDir, 'report.json'), JSON.stringify(result, null, 2)); console.log(JSON.stringify(result, null, 2)); if (result.errors?.length) { diff --git a/scripts/template-gallery-harness.test.mjs b/scripts/template-gallery-harness.test.mjs index e65b74f5..2c7b0708 100644 --- a/scripts/template-gallery-harness.test.mjs +++ b/scripts/template-gallery-harness.test.mjs @@ -1,8 +1,19 @@ import assert from 'node:assert/strict'; import { createHash } from 'node:crypto'; -import { mkdtempSync, readFileSync, rmSync, writeFileSync } from 'node:fs'; +import { + mkdirSync, + mkdtempSync, + readFileSync, + realpathSync, + renameSync, + rmdirSync, + rmSync, + symlinkSync, + unlinkSync, + writeFileSync, +} from 'node:fs'; import { tmpdir } from 'node:os'; -import { join } from 'node:path'; +import { basename, dirname, join } from 'node:path'; import { fileURLToPath } from 'node:url'; import { before, test } from 'node:test'; import { @@ -23,11 +34,411 @@ import { validateBeforeMedia, validateQualityReview, validateReviewedDerivative, + verifyGallery, } from './template-gallery-harness.mjs'; import { repairDuplicateOutputItems } from './live-proof-provenance.mjs'; +import { canonicalJsonHash as storageJsonHash } from './canonical-json.mjs'; let runtime; +// Synthetic media and receipts exercise the verifier; they claim no model output or rights approval. +function subsetVerificationFixture() { + const root = mkdtempSync(join(tmpdir(), 'modiff-gallery-subset-')); + const assets = []; + const records = []; + const examples = []; + const write = (relative, value) => { + const filename = join(root, relative); + mkdirSync(dirname(filename), { recursive: true }); + writeFileSync(filename, typeof value === 'string' ? value : JSON.stringify(value)); + }; + const asset = (path, value, held = false) => { + const bytes = typeof value === 'string' ? value : JSON.stringify(value); + const sha256 = `sha256:bytes:${createHash('sha256').update(bytes).digest('hex')}`; + assets.push({ path, size: Buffer.byteLength(bytes), sha256, contentType: 'application/octet-stream' }); + records.push({ + path, + sha256, + publishDecision: held ? 'hold' : 'approved', + holdReason: held ? 'Synthetic permission hold' : null, + }); + if (!held) write(`public/${path}`, bytes); + }; + for (const id of ['available', 'withheld']) { + const bindings = { + templateId: id, + templateLockHash: 'tpl_fixture', + promptSettingsHash: 'ps_fixture', + modelRevision: `repo@${'a'.repeat(40)}`, + runtimeFingerprint: 'runtime_fixture', + graphHash: 'graph_fixture', + proofLockHash: 'proof_fixture', + decodedMediaHash: `decoded:${id}`, + }; + const run = { + template: { id, promptSettingsHash: bindings.promptSettingsHash }, + templateLockHash: bindings.templateLockHash, + modelRevision: bindings.modelRevision, + mediaHash: bindings.decodedMediaHash, + graphHash: bindings.graphHash, + proofLockHash: bindings.proofLockHash, + backendSourceFingerprint: 'backend_fixture', + backendContractFingerprint: 'contract_fixture', + modelCommit: 'a'.repeat(40), + templateRevisionHash: 'revision_fixture', + blockers: [], + }; + const bundle = { schemaVersion: 1, format: 'modiff.gallery.reviewed-provenance.v1', templateId: id, bindings, run }; + const review = { + schemaVersion: 2, + ...bindings, + reviewStatus: 'approved_reviewed', + reviewer: 'Synthetic test fixture', + reviewedAt: '2026-01-01T00:00:00Z', + rubric: { taskAdherence: 5, artifactControl: 5, modalityQuality: 5 }, + scores: { promptAdherence: 5, composition: 5, technicalExecution: 5, templateUsefulness: 5 }, + hardFailures: [], + objectiveChecks: { status: 'pass' }, + modalityReview: { status: 'pass' }, + summary: 'Synthetic verifier fixture with no actual publication approval.', + knownLimitations: [], + }; + const outputPath = `/template-gallery/${id}.webp`; + const provenancePath = `/template-gallery/reviews/${id}.json`; + const qualityReviewPath = `/template-gallery/reviews/${id}.review.json`; + asset(outputPath.slice(1), `synthetic ${id} media`, id === 'withheld'); + asset(provenancePath.slice(1), bundle); + asset(qualityReviewPath.slice(1), review); + examples.push({ + ...bindings, + ...Object.fromEntries( + ['backendSourceFingerprint', 'backendContractFingerprint', 'modelCommit', 'templateRevisionHash'].map((key) => [ + key, + run[key], + ]), + ), + verificationStatus: 'reviewed', + outputPath, + thumbnailPath: outputPath, + mediaHash: bindings.decodedMediaHash, + mediaType: 'image', + verificationTimestamp: review.reviewedAt, + provenancePath, + provenanceHash: canonicalJsonHash(bundle), + qualityReviewPath, + qualityReviewHash: canonicalJsonHash(review), + qualityReviewStatus: review.reviewStatus, + reviewer: review.reviewer, + reviewedAt: review.reviewedAt, + templateInputContractHash: 'inputs_fixture', + }); + } + assets.sort((a, b) => (a.path < b.path ? -1 : 1)); + records.sort((a, b) => (a.path < b.path ? -1 : 1)); + const identity = (rows) => + `sha256:canonical-json:${storageJsonHash({ schemaVersion: 1, assetVersion: 'fixture', assets: rows })}`; + const storage = { + schemaVersion: 1, + assetVersion: 'fixture', + assets, + assetSetId: identity(assets), + status: 'ready', + assetCount: assets.length, + totalBytes: assets.reduce((sum, row) => sum + row.size, 0), + missingAssets: [], + }; + const source = { + schemaVersion: 1, + mode: 'huggingface', + localBasePath: '/template-gallery', + repoType: 'dataset', + repoId: 'fixture/gallery', + revision: 'a'.repeat(40), + pathPrefix: 'template-gallery', + assetManifestPath: '_modiff/template-assets.v1.json', + assetSetId: identity(assets.filter((row) => !row.path.endsWith('/withheld.webp'))), + completeAssetSetId: storage.assetSetId, + unavailableAssets: ['template-gallery/withheld.webp'], + }; + const rights = { schemaVersion: 1, assetSetId: storage.assetSetId, records }; + const manifest = { schemaVersion: 2, examples }; + const flush = () => { + write('config/template-assets.v1.json', storage); + write('config/template-asset-rights.v1.json', rights); + write('src/studio/templateAssetSource.json', source); + write('public/template-gallery/manifest.json', manifest); + }; + flush(); + const decoded = []; + const options = { + root, + runtime: { + templates: examples.map((entry) => ({ + id: entry.templateId, + example: { expectedOutput: { width: 512, height: 512 } }, + })), + promptSettingsHash: () => 'ps_fixture', + templateLockHash: () => 'tpl_fixture', + templateInputContractHash: () => 'inputs_fixture', + }, + decodeMedia: async (filename) => { + decoded.push(filename); + return { hash: 'decoded:available', width: 512, height: 512, nearBlackRatio: 0, lumaStdDev: 20 }; + }, + }; + const dispose = () => { + const actual = realpathSync(root); + assert.equal(dirname(actual), realpathSync(tmpdir())); + assert.ok(basename(actual).startsWith('modiff-gallery-subset-')); + rmSync(actual, { recursive: true, force: true }); + }; + return { root, source, storage, rights, manifest, options, decoded, flush, write, dispose }; +} + +test('Gallery verification retains explicit remote rights holds without treating them as missing published media', async () => { + const fixture = subsetVerificationFixture(); + try { + const result = await verifyGallery({}, 'test-artifact', fixture.options); + assert.deepEqual(result.errors, []); + assert.equal(result.verifiedExamples, 1); + assert.deepEqual(result.withheldExamples, [{ templateId: 'withheld', assets: ['template-gallery/withheld.webp'] }]); + assert.equal(fixture.decoded.length, 1); + } finally { + fixture.dispose(); + } +}); + +test('Gallery verification keeps available media byte, decoded, provenance and review failures blocking', async (t) => { + for (const [label, mutate, expected] of [ + [ + 'missing published media', + (fixture) => unlinkSync(join(fixture.root, 'public/template-gallery/available.webp')), + /available media file missing/, + ], + [ + 'changed published media', + (fixture) => fixture.write('public/template-gallery/available.webp', 'changed media'), + /Published asset byte identity mismatch/, + ], + [ + 'changed decoded output', + (fixture) => { + fixture.options.decodeMedia = async () => ({ + hash: 'wrong', + width: 512, + height: 512, + nearBlackRatio: 0, + lumaStdDev: 20, + }); + }, + /available decoded hash mismatch/, + ], + [ + 'changed withheld entry provenance', + (fixture) => fixture.write('public/template-gallery/reviews/withheld.json', {}), + /withheld provenance hash mismatch/, + ], + [ + 'missing withheld entry review', + (fixture) => unlinkSync(join(fixture.root, 'public/template-gallery/reviews/withheld.review.json')), + /withheld quality review missing/, + ], + ]) { + await t.test(label, async () => { + const fixture = subsetVerificationFixture(); + try { + mutate(fixture); + const result = await verifyGallery({}, 'test-artifact', fixture.options); + assert.equal(result.ok, false); + assert.equal(result.verifiedExamples, 0); + assert.match(result.errors.join('\n'), expected); + } finally { + fixture.dispose(); + } + }); + } +}); + +test('Gallery verification rejects unbound or broadened remote exclusions', async (t) => { + for (const [label, mutate, expected] of [ + [ + 'mutable revision', + (fixture) => { + fixture.source.revision = 'main'; + }, + /immutable/, + ], + [ + 'unknown withheld path', + (fixture) => { + fixture.source.unavailableAssets = ['template-gallery/unknown.webp']; + }, + /rights\/source mismatch/, + ], + [ + 'approved file falsely withheld', + (fixture) => { + fixture.source.unavailableAssets.unshift('template-gallery/available.webp'); + }, + /rights\/source mismatch/, + ], + [ + 'stale rights hash', + (fixture) => { + fixture.rights.records[0].sha256 = `sha256:bytes:${'0'.repeat(64)}`; + }, + /rights\/source mismatch/, + ], + [ + 'duplicate rights rows', + (fixture) => { + fixture.rights.records[0] = fixture.rights.records[1]; + }, + /exact storage manifest/, + ], + [ + 'changed complete manifest', + (fixture) => { + fixture.storage.assets[0].size += 1; + }, + /exact complete storage manifest/, + ], + [ + 'changed subset identity', + (fixture) => { + fixture.source.assetSetId = `sha256:canonical-json:${'0'.repeat(64)}`; + }, + /exact nonempty approved asset subset/, + ], + [ + 'missing hold reason', + (fixture) => { + fixture.rights.records.find((row) => row.publishDecision === 'hold').holdReason = ''; + }, + /rights\/source mismatch/, + ], + [ + 'escape path', + (fixture) => { + fixture.source.unavailableAssets = ['template-gallery/../outside.webp']; + }, + /canonical/, + ], + ]) { + await t.test(label, async () => { + const fixture = subsetVerificationFixture(); + try { + mutate(fixture); + fixture.flush(); + await assert.rejects(verifyGallery({}, 'test-artifact', fixture.options), expected); + } finally { + fixture.dispose(); + } + }); + } +}); + +test('Gallery verification does not apply remote exclusions to a local complete Gallery', async () => { + const fixture = subsetVerificationFixture(); + try { + fixture.source.mode = 'local'; + fixture.flush(); + const result = await verifyGallery({}, 'test-artifact', fixture.options); + assert.equal(result.ok, false); + assert.match(result.errors.join('\n'), /withheld media file missing/); + assert.deepEqual(result.withheldAssets, []); + } finally { + fixture.dispose(); + } +}); + +test('Gallery verification binds every example reference to canonical published storage paths', async (t) => { + for (const [label, mutate, expected] of [ + ...['outputPath', 'thumbnailPath', 'provenancePath', 'qualityReviewPath'].map((field) => [ + `unlisted ${field}`, + (fixture) => { + const entry = fixture.manifest.examples[0]; + const original = readFileSync(join(fixture.root, 'public', entry[field].slice(1)), 'utf8'); + entry[field] = `/template-gallery/unlisted-${field}.json`; + fixture.write(`public${entry[field]}`, original); + }, + /not listed in the complete storage manifest/, + ]), + [ + 'dot alias', + (fixture) => { + fixture.manifest.examples[0].outputPath = '/template-gallery/./available.webp'; + }, + /canonical Gallery path/, + ], + [ + 'traversal alias', + (fixture) => { + fixture.manifest.examples[0].outputPath = '/template-gallery/../template-gallery/available.webp'; + }, + /canonical Gallery path/, + ], + [ + 'held sidecar', + (fixture) => { + fixture.manifest.examples[0].provenancePath = '/template-gallery/withheld.webp'; + }, + /sidecar must be available/, + ], + ]) { + await t.test(label, async () => { + const fixture = subsetVerificationFixture(); + try { + mutate(fixture); + fixture.flush(); + await assert.rejects(verifyGallery({}, 'test-artifact', fixture.options), expected); + assert.equal(fixture.decoded.length, 0); + } finally { + fixture.dispose(); + } + }); + } +}); + +test('Gallery verification rejects an all-withheld Gallery and does not approve held bytes found locally', async () => { + const fixture = subsetVerificationFixture(); + try { + fixture.write('public/template-gallery/withheld.webp', 'synthetic withheld media'); + const result = await verifyGallery({}, 'test-artifact', fixture.options); + assert.equal(result.ok, true); + assert.equal(result.verifiedExamples, 1); + assert.equal(result.withheldAssets[0].reason, 'Synthetic permission hold'); + assert.equal(fixture.decoded.length, 1); + fixture.manifest.examples = fixture.manifest.examples.filter((entry) => entry.templateId === 'withheld'); + fixture.flush(); + const empty = await verifyGallery({}, 'test-artifact', fixture.options); + assert.equal(empty.ok, false); + assert.match(empty.errors.join('\n'), /no available published examples/); + } finally { + fixture.dispose(); + } +}); + +test('Gallery verification refuses a linked directory escape before reading or decoding example media', async () => { + const fixture = subsetVerificationFixture(); + const linkedPath = join(fixture.root, 'public/template-gallery'); + const outsidePublic = join(fixture.root, 'outside-public'); + let linked = false; + try { + renameSync(linkedPath, outsidePublic); + symlinkSync(outsidePublic, linkedPath, process.platform === 'win32' ? 'junction' : 'dir'); + linked = true; + await assert.rejects(verifyGallery({}, 'test-artifact', fixture.options), /not a contained regular file/); + assert.equal(fixture.decoded.length, 0); + } finally { + if (linked) { + if (process.platform === 'win32') rmdirSync(linkedPath); + else unlinkSync(linkedPath); + } + fixture.dispose(); + } +}); + before(async () => { runtime = await loadTemplateRuntime(); }); diff --git a/scripts/template-qualification.mjs b/scripts/template-qualification.mjs index 320acce5..22d2ce46 100644 --- a/scripts/template-qualification.mjs +++ b/scripts/template-qualification.mjs @@ -92,7 +92,13 @@ if (!template) throw new Error(`Template ${String(templateId)} is not in the run const workflowManifest = readJson( required(join(BACKEND_ROOT, 'data', 'workflow-library-manifest.json'), 'Canonical workflow manifest'), ); -const workflowRecords = (workflowManifest.workflows ?? []).map((manifest) => { +// Explicit blocked probes may retain execution evidence against an experimental +// canonical graph. This lookup never promotes its catalog or qualification state. +const scopedWorkflows = [ + ...(workflowManifest.workflows ?? []), + ...(allowBlockedProbe ? (workflowManifest.experimentalWorkflows ?? []) : []), +]; +const workflowRecords = scopedWorkflows.map((manifest) => { const graph = readJson(required(join(BACKEND_ROOT, 'data', 'graphs', manifest.graphPath), manifest.id)); return { manifest, graph }; }); diff --git a/scripts/template-qualification.test.mjs b/scripts/template-qualification.test.mjs index 3ad92631..aec95e0c 100644 --- a/scripts/template-qualification.test.mjs +++ b/scripts/template-qualification.test.mjs @@ -1,16 +1,24 @@ import assert from 'node:assert/strict'; -import { existsSync, mkdirSync, mkdtempSync, readFileSync, rmSync, writeFileSync } from 'node:fs'; +import { existsSync, mkdirSync, mkdtempSync, readFileSync, realpathSync, rmSync, writeFileSync } from 'node:fs'; import { tmpdir } from 'node:os'; -import { join, resolve } from 'node:path'; +import { basename, dirname, join, resolve } from 'node:path'; import { spawnSync } from 'node:child_process'; import test from 'node:test'; import { canonicalJsonHash } from './canonical-json.mjs'; +import { canonicalWorkflowContract } from './release-contract-core.mjs'; import { loadTemplateRuntime } from './template-gallery-harness.mjs'; const ROOT = resolve(import.meta.dirname, '..'); const SCRIPT = join(ROOT, 'scripts', 'template-qualification.mjs'); +function disposeFixture(directory) { + const actual = realpathSync(directory); + assert.equal(dirname(actual), realpathSync(tmpdir())); + assert.ok(basename(actual).startsWith('modiff-template-qualification-')); + rmSync(actual, { recursive: true, force: true }); +} + function writeBackendFixture(directory, templateId = 'qwen_low_vram_product_concept') { const backendDirectory = join(directory, 'backend'); const graphPath = 'studio/qwen-image-modular-pipeline/text-to-image.json'; @@ -121,7 +129,7 @@ test('locked v2 template proofs become immutable execution receipts', async () = JSON.parse(readFileSync(join(retainedDirectory, registry.receipts[0].proofPath.split('/').at(-1)), 'utf8')).taskId, 'qualification-task', ); - rmSync(directory, { recursive: true, force: true }); + disposeFixture(directory); }); test('stale template locks are rejected before a receipt is written', async () => { @@ -146,7 +154,7 @@ test('stale template locks are rejected before a receipt is written', async () = }); assert.notEqual(result.status, 0); assert.match(result.stderr, /catalog lock is stale/i); - rmSync(directory, { recursive: true, force: true }); + disposeFixture(directory); }); test('template proofs with output dimensions that violate the locked contract are rejected', async () => { @@ -171,13 +179,18 @@ test('template proofs with output dimensions that violate the locked contract ar }); assert.notEqual(result.status, 0); assert.match(result.stderr, /output contract mismatch for width/i); - rmSync(directory, { recursive: true, force: true }); + disposeFixture(directory); }); // Synthetic registrar fixtures test evidence retention, never model output quality. const BLOCKED_TEMPLATE_ID = 'wan_vace_direct_text_to_video'; -function qualificationFixtureProcess(directory, provenance, argv = [], { canonical = true } = {}) { +function qualificationFixtureProcess( + directory, + provenance, + argv = [], + { canonical = true, experimental = false, staleGraph = false } = {}, +) { const provenancePath = join(directory, 'proof.json'); const registryPath = join(directory, 'registry.json'); const backendDirectory = canonical @@ -187,6 +200,46 @@ function qualificationFixtureProcess(directory, provenance, argv = [], { canonic mkdirSync(join(backendDirectory, 'data'), { recursive: true }); writeFileSync(join(backendDirectory, 'data', 'workflow-library-manifest.json'), '{"workflows":[]}\n'); } + if (canonical && experimental) { + const manifestPath = join(backendDirectory, 'data', 'workflow-library-manifest.json'); + const manifest = JSON.parse(readFileSync(manifestPath, 'utf8')); + const ordinary = manifest.workflows[0]; + const graphFile = join(backendDirectory, 'data', 'graphs', ordinary.graphPath); + const graph = JSON.parse(readFileSync(graphFile, 'utf8')); + const modelType = provenance.template.id.startsWith('flux3_klein_base_') + ? 'Flux3ModularPipeline' + : provenance.template.id.startsWith('flux3_klein_') + ? 'Flux3DistilledModularPipeline' + : 'QwenImageModularPipeline'; + const generic = { + ...ordinary, + id: `${modelType}:text_to_image`, + modelType, + sourceTemplateId: provenance.template.id.replace('lora_style', 'text_to_image'), + supportTier: 'experimental', + runtimeQualificationStatus: 'unqualified', + optimizationQualificationStatus: 'unqualified', + qualifiedRuntimeProfiles: [], + }; + const variantGraph = { + ...graph, + nodes: [...graph.nodes, { id: 'synthetic-lora', data: { module: 'modules.ModularDiffusers', action: 'Lora' } }], + }; + const variant = { + ...generic, + id: `${modelType}:text_to_image:${provenance.template.id}`, + sourceTemplateId: provenance.template.id, + variant: 'lora-theme', + graphPath: 'experimental/selected-lora.json', + graphHash: staleGraph ? '0'.repeat(64) : canonicalJsonHash(variantGraph), + }; + const variantFile = join(backendDirectory, 'data', 'graphs', variant.graphPath); + mkdirSync(resolve(variantFile, '..'), { recursive: true }); + writeFileSync(variantFile, `${JSON.stringify(variantGraph, null, 2)}\n`); + manifest.workflows = []; + manifest.experimentalWorkflows = [generic, variant]; + writeFileSync(manifestPath, `${JSON.stringify(manifest, null, 2)}\n`); + } writeFileSync(provenancePath, `${JSON.stringify(provenance, null, 2)}\n`); const result = spawnSync(process.execPath, [SCRIPT, ...argv], { cwd: ROOT, @@ -200,9 +253,80 @@ function qualificationFixtureProcess(directory, provenance, argv = [], { canonic MODIFF_TEMPLATE_PROVENANCE_DIR: join(directory, 'retained'), }, }); - return { result, registryPath }; + return { result, registryPath, backendDirectory }; } +test('experimental canonical LoRA variants require blocked-probe opt-in and retain their exact graph hash', async (t) => { + for (const templateId of ['flux3_klein_fp8r512_lora_style', 'flux3_klein_base_fp8r512_lora_style']) { + await t.test(templateId, async () => { + const directory = mkdtempSync(join(tmpdir(), 'modiff-template-qualification-experimental-')); + const provenance = await fixture(templateId); + try { + const ordinary = qualificationFixtureProcess(directory, provenance, [], { experimental: true }); + assert.notEqual(ordinary.result.status, 0); + assert.match(ordinary.result.stderr, /not in the runtime catalog/); + assert.equal(existsSync(ordinary.registryPath), false); + const explicit = qualificationFixtureProcess(directory, provenance, ['--allow-blocked-probe'], { + experimental: true, + }); + assert.equal(explicit.result.status, 0, explicit.result.stderr); + const manifest = JSON.parse( + readFileSync(join(explicit.backendDirectory, 'data', 'workflow-library-manifest.json'), 'utf8'), + ); + const variant = manifest.experimentalWorkflows.find((record) => record.sourceTemplateId === templateId); + const graph = JSON.parse( + readFileSync(join(explicit.backendDirectory, 'data', 'graphs', variant.graphPath), 'utf8'), + ); + const registry = JSON.parse(readFileSync(explicit.registryPath, 'utf8')); + assert.equal(registry.receipts.length, 1); + assert.equal(registry.receipts[0].templateId, templateId); + assert.equal(registry.receipts[0].canonicalWorkflowHash, canonicalWorkflowContract(variant, graph).graphHash); + assert.deepEqual(manifest.workflows, []); + assert.ok( + manifest.experimentalWorkflows.every((record) => record.runtimeQualificationStatus === 'unqualified'), + ); + assert.ok(manifest.experimentalWorkflows.every((record) => record.qualifiedRuntimeProfiles.length === 0)); + const runtime = await loadTemplateRuntime(ROOT, { includePlanning: true }); + assert.equal(runtime.templates.find((item) => item.id === templateId).example.status, 'blocked'); + } finally { + disposeFixture(directory); + } + }); + } +}); + +test('blocked-probe lookup rejects a stale experimental canonical graph before retaining evidence', async () => { + const directory = mkdtempSync(join(tmpdir(), 'modiff-template-qualification-experimental-stale-')); + try { + const provenance = await fixture('flux3_klein_fp8r512_lora_style'); + const { result, registryPath } = qualificationFixtureProcess(directory, provenance, ['--allow-blocked-probe'], { + experimental: true, + staleGraph: true, + }); + assert.notEqual(result.status, 0); + assert.match(result.stderr, /graph hash does not match its manifest/); + assert.equal(existsSync(registryPath), false); + assert.equal(existsSync(join(directory, 'retained')), false); + } finally { + disposeFixture(directory); + } +}); + +test('ordinary public recording never falls back to an experimental canonical record', async () => { + const directory = mkdtempSync(join(tmpdir(), 'modiff-template-qualification-public-scope-')); + try { + const { result, registryPath } = qualificationFixtureProcess(directory, await fixture(), [], { + experimental: true, + }); + assert.notEqual(result.status, 0); + assert.match(result.stderr, /no current canonical workflow/); + assert.equal(existsSync(registryPath), false); + assert.equal(existsSync(join(directory, 'retained')), false); + } finally { + disposeFixture(directory); + } +}); + test('blocked template lookup requires explicit opt-in and retaining a receipt cannot promote its source', async () => { const directory = mkdtempSync(join(tmpdir(), 'modiff-template-qualification-blocked-')); const sourcePaths = [ @@ -229,7 +353,7 @@ test('blocked template lookup requires explicit opt-in and retaining a receipt c assert.equal(runtime.templates.find((item) => item.id === BLOCKED_TEMPLATE_ID).example.status, 'blocked'); sourcePaths.forEach((file, index) => assert.deepEqual(readFileSync(file), sourceBefore[index], file)); } finally { - rmSync(directory, { recursive: true, force: true }); + disposeFixture(directory); } }); @@ -310,7 +434,7 @@ test('blocked lookup opt-in retains every receipt prerequisite', async (t) => { assert.match(result.stderr, expected); assert.equal(existsSync(registryPath), false); } finally { - rmSync(directory, { recursive: true, force: true }); + disposeFixture(directory); } }); } diff --git a/src/studio/templateOperationSelections.ts b/src/studio/templateOperationSelections.ts index ea87f29c..bb1fb81e 100644 --- a/src/studio/templateOperationSelections.ts +++ b/src/studio/templateOperationSelections.ts @@ -202,7 +202,7 @@ export const IMAGE_TEMPLATE_EXECUTION_SELECTIONS: Partial Date: Tue, 27 Oct 2026 18:12:57 +0530 Subject: [PATCH 069/440] Expose declared experimental recipes and retain runtime evidence identity --- .github/workflows/ci.yml | 4 +- scripts/bundle-budget.mjs | 5 + scripts/hardware-qualification.mjs | 20 +- scripts/hardware-qualification.test.mjs | 298 +++++++++++------- scripts/modiff-template.test.mjs | 91 ++++++ src/components/TemplateBrowserDialog.tsx | 17 +- src/studio/templateBrowser.ts | 37 ++- tests/e2e/studio-mocked/studio-mocked.spec.ts | 144 ++++++++- 8 files changed, 477 insertions(+), 139 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index c2df03b9..89eb6e31 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -33,7 +33,7 @@ jobs: with: repository: sdevil7th/MoDiff # Paired image stages, scoped enhancement and FLUX3 evaluation contracts. - ref: 5b711f2b6cff9f521cfe1f52dd3b2810f66861e3 + ref: 5363db02f8fa429c40c5e6784665187513a7957c path: MoDiff persist-credentials: false - name: Verify the pinned backend supports native setup @@ -86,7 +86,7 @@ jobs: with: repository: sdevil7th/MoDiff # Match the immutable backend revision in the Client quality job. - ref: 5b711f2b6cff9f521cfe1f52dd3b2810f66861e3 + ref: 5363db02f8fa429c40c5e6784665187513a7957c path: MoDiff persist-credentials: false - name: Verify the pinned backend supports native setup diff --git a/scripts/bundle-budget.mjs b/scripts/bundle-budget.mjs index 2f28d53d..3a55dde8 100644 --- a/scripts/bundle-budget.mjs +++ b/scripts/bundle-budget.mjs @@ -1,3 +1,7 @@ +// Explicit declared Experimental discovery measures largest/startup/deferred gzip +// 488406/666710/326605 versus accepted 488399/666704/326318. Add only the +// measured 287-byte deferred growth, retaining 152 bytes of aggregate headroom. +// Existing startup and chunk caps, dependencies and loading boundaries stay fixed. // Pinned NASA/Monet planning definitions measure largest/startup/deferred gzip // 488399/666704/326318 versus 488210/666514/326348. Add only measured // 189/190-byte startup growth, preserving 15/17-byte headroom and all deferred caps. @@ -530,6 +534,7 @@ const MAX_DEFERRED_CHUNK_GZIP_BYTES = 64 * 1024; // 321033-byte cap, preserving 39 bytes of headroom at 321227. Startup caps, the // 65536-byte deferred chunk cap, dependencies and loading boundaries stay fixed. const MAX_DEFERRED_GZIP_BYTES = + 287 + 44 + 2064 + 935 + diff --git a/scripts/hardware-qualification.mjs b/scripts/hardware-qualification.mjs index b06bc9c0..0f209654 100644 --- a/scripts/hardware-qualification.mjs +++ b/scripts/hardware-qualification.mjs @@ -52,7 +52,25 @@ async function readGalleryEvidence(path) { const response = await fetch(`${backendUrl}/health`, { signal: AbortSignal.timeout(5_000) }); if (!response.ok) throw new Error(`Backend health returned HTTP ${response.status}.`); const health = await response.json(); - if (output.terminalTask.runtimeFingerprint && health.runtime_fingerprint !== output.terminalTask.runtimeFingerprint) { + // Current task receipts retain the full runtime observation. Compare its + // reported identity without replacing that object or the provenance lock. + // Older Gallery reports stored this same reported identity as a string. + const observedRuntime = output.terminalTask.runtimeFingerprint; + const reportedFingerprint = + typeof observedRuntime === 'string' + ? observedRuntime + : observedRuntime && typeof observedRuntime === 'object' && !Array.isArray(observedRuntime) + ? observedRuntime.fingerprint + : null; + if ( + typeof reportedFingerprint !== 'string' || + !reportedFingerprint.trim() || + typeof health.runtime_fingerprint !== 'string' || + !health.runtime_fingerprint.trim() + ) { + throw new Error('Gallery run or current backend is missing a runtime fingerprint.'); + } + if (health.runtime_fingerprint !== reportedFingerprint) { throw new Error('Current backend runtime does not match the completed gallery run.'); } return { diff --git a/scripts/hardware-qualification.test.mjs b/scripts/hardware-qualification.test.mjs index 4bed08d1..ce6d7360 100644 --- a/scripts/hardware-qualification.test.mjs +++ b/scripts/hardware-qualification.test.mjs @@ -1,6 +1,6 @@ import assert from 'node:assert/strict'; import { createServer } from 'node:http'; -import { mkdirSync, mkdtempSync, readFileSync, writeFileSync } from 'node:fs'; +import { existsSync, mkdirSync, mkdtempSync, readFileSync, writeFileSync } from 'node:fs'; import { tmpdir } from 'node:os'; import { dirname, join, resolve } from 'node:path'; import { spawn } from 'node:child_process'; @@ -8,135 +8,189 @@ import test from 'node:test'; const SCRIPT = resolve('scripts/hardware-qualification.mjs'); -test('completed RTX 4080 gallery evidence records the platform and enforces the ACE-Step cold-load target', async () => { - const root = mkdtempSync(join(tmpdir(), 'modiff-hardware-qualification-')); - const backend = join(root, 'backend'); - const artifact = join(root, 'gallery'); - const provenancePath = join(artifact, 'run.provenance.json'); - const websocketEventsPath = join(artifact, 'run.websocket-events.json'); - const reportPath = join(artifact, 'report.json'); - mkdirSync(dirname(join(backend, 'data', 'qualification', 'release', 'placeholder')), { - recursive: true, - }); - mkdirSync(artifact, { recursive: true }); +// Synthetic values in the actual retained /runs runtimeFingerprint shape. These +// exercise the recorder contract; they are never physical qualification evidence. +const structuredFingerprint = { + fingerprint: 'runtime-1', + resourceFingerprint: 'resource-runtime-1', + packages: { torch: '2.9.1' }, + torch: { cuda_available: true }, + work_dir: 'unit-work', + data_dir: 'unit-data', + backendSource: { fingerprint: 'unit-source' }, + hardware: { peakAccountingVersion: 2 }, +}; - writeFileSync( - provenancePath, - JSON.stringify({ - schemaVersion: 2, - blockers: [], - taskId: 'task-1', - capturedAt: '2026-07-28T03:17:41.922Z', - runtimeFingerprint: 'stable-runtime', - modelRevision: 'model@1234567890123456789012345678901234567890', - mediaHash: 'sha256:decoded-rgba:test', - graph: { - executionPlan: { - modelType: 'AceStepAudioPipeline', - offloadMode: 'none', - quantizationMode: 'none', - }, - }, - execution: { - resourceCandidateId: 'example-native', - elapsedSeconds: 1.5, - peakMemoryBytes: 1024, - }, - }), - ); - writeFileSync( - websocketEventsPath, - JSON.stringify({ - events: [ - { - type: 'executed', - name: 'modules.DiffusersAudio.LoadPipeline', - hasChanged: true, - executionTime: { last: 91.25 }, - }, - ], - }), - ); +for (const { name, fingerprint, healthFingerprint = 'runtime-1', error } of [ + { name: 'legacy string', fingerprint: 'runtime-1' }, + { name: 'structured current task', fingerprint: structuredFingerprint }, + { name: 'different legacy runtime', fingerprint: 'runtime-2', error: /does not match/ }, + { + name: 'different structured runtime', + fingerprint: { ...structuredFingerprint, fingerprint: 'runtime-2' }, + error: /does not match/, + }, + { name: 'missing task runtime', fingerprint: undefined, error: /missing a runtime fingerprint/ }, + { name: 'null task runtime', fingerprint: null, error: /missing a runtime fingerprint/ }, + { name: 'empty task runtime', fingerprint: '', error: /missing a runtime fingerprint/ }, + { + name: 'resource hash cannot replace runtime hash', + fingerprint: { resourceFingerprint: 'runtime-1' }, + error: /missing a runtime fingerprint/, + }, + { name: 'non-string structured hash', fingerprint: { fingerprint: 123 }, error: /missing a runtime fingerprint/ }, + { name: 'array is not a structured runtime', fingerprint: ['runtime-1'], error: /missing a runtime fingerprint/ }, + { + name: 'missing health runtime', + fingerprint: structuredFingerprint, + healthFingerprint: null, + error: /missing a runtime fingerprint/, + }, +]) + test(`gallery hardware evidence: ${name}`, async () => { + const root = mkdtempSync(join(tmpdir(), 'modiff-hardware-qualification-')); + const backend = join(root, 'backend'); + const artifact = join(root, 'gallery'); + const provenancePath = join(artifact, 'run.provenance.json'); + const websocketEventsPath = join(artifact, 'run.websocket-events.json'); + const reportPath = join(artifact, 'report.json'); + mkdirSync(dirname(join(backend, 'data', 'qualification', 'release', 'placeholder')), { + recursive: true, + }); + mkdirSync(artifact, { recursive: true }); - const server = createServer((request, response) => { - if (request.url !== '/health') { - response.writeHead(404).end(); - return; - } - response.setHeader('content-type', 'application/json'); - response.end( + writeFileSync( + provenancePath, JSON.stringify({ - ready: true, - runtime_fingerprint: 'runtime-1', - runtime_profile: { - execution_ready: true, - installed: 'amd-rocm-linux', - support_tier: 'experimental', - manifest_revision: 'revision-1', - }, - python: { platform: 'linux', version: '3.12.1' }, - packages: { - torch: { - version: '2.9.1', - cuda_devices: [{ name: 'NVIDIA GeForce RTX 4080', total_memory: 16 * 1024 ** 3 }], + schemaVersion: 2, + blockers: [], + taskId: 'task-1', + capturedAt: '2026-07-28T03:17:41.922Z', + runtimeFingerprint: 'stable-runtime', + modelRevision: 'model@1234567890123456789012345678901234567890', + mediaHash: 'sha256:decoded-rgba:test', + graph: { + executionPlan: { + modelType: 'AceStepAudioPipeline', + offloadMode: 'none', + quantizationMode: 'none', }, }, + execution: { + resourceCandidateId: 'example-native', + elapsedSeconds: 1.5, + peakMemoryBytes: 1024, + }, + }), + ); + writeFileSync( + websocketEventsPath, + JSON.stringify({ + events: [ + { + type: 'executed', + name: 'modules.DiffusersAudio.LoadPipeline', + hasChanged: true, + executionTime: { last: 91.25 }, + }, + ], }), ); - }); - await new Promise((resolveListen) => server.listen(0, '127.0.0.1', resolveListen)); - const address = server.address(); - writeFileSync( - reportPath, - JSON.stringify({ - server: `http://127.0.0.1:${address.port}`, - results: [ - { - outputs: [ - { - terminalTask: { status: 'completed', runtimeFingerprint: 'runtime-1' }, - evidence: { provenance: provenancePath, websocketEvents: websocketEventsPath }, + const server = createServer((request, response) => { + if (request.url !== '/health') { + response.writeHead(404).end(); + return; + } + response.setHeader('content-type', 'application/json'); + response.end( + JSON.stringify({ + ready: true, + runtime_fingerprint: healthFingerprint, + runtime_profile: { + execution_ready: true, + installed: 'amd-rocm-linux', + support_tier: 'experimental', + manifest_revision: 'revision-1', + }, + python: { platform: 'linux', version: '3.12.1' }, + packages: { + torch: { + version: '2.9.1', + cuda_devices: [{ name: 'NVIDIA GeForce RTX 4080', total_memory: 16 * 1024 ** 3 }], }, - ], - }, - ], - }), - ); + }, + }), + ); + }); + await new Promise((resolveListen) => server.listen(0, '127.0.0.1', resolveListen)); + const address = server.address(); - try { - const result = await new Promise((resolveRun) => { - const child = spawn(process.execPath, [SCRIPT], { - cwd: resolve('.'), - env: { - ...process.env, - MODIFF_BACKEND_DIR: backend, - MODIFF_GALLERY_REPORT: reportPath, - }, - }); - let stdout = ''; - let stderr = ''; - child.stdout.on('data', (chunk) => { - stdout += chunk; - }); - child.stderr.on('data', (chunk) => { - stderr += chunk; + writeFileSync( + reportPath, + JSON.stringify({ + server: `http://127.0.0.1:${address.port}`, + results: [ + { + outputs: [ + { + terminalTask: { status: 'completed', runtimeFingerprint: fingerprint }, + evidence: { provenance: provenancePath, websocketEvents: websocketEventsPath }, + }, + ], + }, + ], + }), + ); + const reportBefore = readFileSync(reportPath); + const provenanceBefore = readFileSync(provenancePath); + + try { + const result = await new Promise((resolveRun) => { + const child = spawn(process.execPath, [SCRIPT], { + cwd: resolve('.'), + env: { + ...process.env, + MODIFF_BACKEND_DIR: backend, + MODIFF_GALLERY_REPORT: reportPath, + }, + }); + let stdout = ''; + let stderr = ''; + child.stdout.on('data', (chunk) => { + stdout += chunk; + }); + child.stderr.on('data', (chunk) => { + stderr += chunk; + }); + child.on('close', (status) => resolveRun({ status, stdout, stderr })); }); - child.on('close', (status) => resolveRun({ status, stdout, stderr })); - }); - assert.equal(result.status, 0, result.stderr); - const receipt = JSON.parse( - readFileSync(join(backend, 'data', 'qualification', 'release', 'hardware-qualification.v1.json')), - ).receipts[0]; - assert.equal(receipt.profileId, 'amd-rocm-linux'); - assert.equal(receipt.supportTierAtCapture, 'experimental'); - assert.equal(receipt.status, 'observed'); - assert.equal(receipt.taskId, 'task-1'); - assert.equal(receipt.resourceCandidateId, 'example-native'); - assert.equal(receipt.coldLoaderDurationSeconds, 91.25); - assert.equal(receipt.performanceTarget.maxSeconds, 120); - assert.equal(receipt.performanceQualified, true); - } finally { - await new Promise((resolveClose) => server.close(resolveClose)); - } -}); + assert.deepEqual(readFileSync(reportPath), reportBefore, 'Preserve the complete task runtime object.'); + assert.deepEqual(readFileSync(provenancePath), provenanceBefore, 'Do not rewrite downstream provenance.'); + if (error) { + assert.notEqual(result.status, 0); + assert.match(result.stderr, error); + assert.equal( + existsSync(join(backend, 'data', 'qualification', 'release', 'hardware-qualification.v1.json')), + false, + ); + return; + } + assert.equal(result.status, 0, result.stderr); + const receipt = JSON.parse( + readFileSync(join(backend, 'data', 'qualification', 'release', 'hardware-qualification.v1.json')), + ).receipts[0]; + assert.equal(receipt.profileId, 'amd-rocm-linux'); + assert.equal(receipt.supportTierAtCapture, 'experimental'); + assert.equal(receipt.status, 'observed'); + assert.equal(receipt.taskId, 'task-1'); + assert.equal(receipt.resourceCandidateId, 'example-native'); + assert.equal(receipt.runtimeFingerprint, 'stable-runtime', 'Retain the downstream provenance lock.'); + assert.equal(receipt.peakMemoryBytes, 1024); + assert.equal(receipt.coldLoaderDurationSeconds, 91.25); + assert.equal(receipt.performanceTarget.maxSeconds, 120); + assert.equal(receipt.performanceQualified, true); + } finally { + await new Promise((resolveClose) => server.close(resolveClose)); + } + }); diff --git a/scripts/modiff-template.test.mjs b/scripts/modiff-template.test.mjs index a333603d..b9b6e065 100644 --- a/scripts/modiff-template.test.mjs +++ b/scripts/modiff-template.test.mjs @@ -4261,6 +4261,97 @@ test('template browser exposes the complete workflow catalog across task and ada assert.ok(completeInventory.length >= defaultInventory.length); }); +test('Experimental discovers all ten declared FLUX3 planning creators without promoting ordinary discovery', () => { + const { STUDIO_TEMPLATES, PLANNING_STUDIO_TEMPLATES } = templatesModule; + const planning = PLANNING_STUDIO_TEMPLATES.filter((template) => /^flux3_klein(?:_base)?_fp8r512_/.test(template.id)); + assert.equal(planning.length, 10); + const before = JSON.stringify(planning); + const form = profilesModule.DEFAULT_STUDIO_FORM; + const filter = { + category: 'experimental', + includeBlocked: true, + query: '', + modelType: 'all', + mode: 'all', + difficulty: 'all', + sort: 'recommended', + }; + const shown = (entries, changes = {}) => + browserModule.filterStudioTemplates(entries, form, { ...filter, ...changes }); + assert.deepEqual( + shown(planning) + .map(({ id }) => id) + .sort(), + planning.map(({ id }) => id).sort(), + ); + assert.equal(shown(planning, { query: 'FLUX 3' }).length, 10); + assert.equal(shown(planning, { query: 'Ceramic Radio' }).length, 2); + assert.equal(shown(planning, { mode: 'text_to_image' }).length, 6); + assert.equal(shown(planning, { modelType: 'Flux3ModularPipeline' }).length, 5); + assert.equal(shown(planning, { includeBlocked: false }).length, 0); + assert.equal(shown(planning, { difficulty: 'starter' }).length, 0); + for (const category of ['all', 'recommended', 'image', 'edit', 'adapters']) + assert.equal( + shown([...STUDIO_TEMPLATES, ...planning], { category }).some((item) => planning.includes(item)), + false, + ); + for (const template of planning) { + assert.equal( + profilesModule.isStudioModelVisibleInCatalog(template.modelType, { includeWorkflowOnly: true }), + false, + ); + assert.equal(template.difficulty, 'blocked'); + assert.equal(template.example.status, 'blocked'); + assert.equal(template.readinessPolicy, 'planning'); + } + assert.equal(JSON.stringify(planning), before); +}); + +test('Experimental refuses undeclared or incomplete internal creator selections', () => { + const template = templatesModule.PLANNING_STUDIO_TEMPLATES.find( + (item) => item.id === 'flux3_klein_fp8r512_text_to_image', + ); + const variants = [ + { ...template, id: 'undeclared-internal-creator' }, + { ...template, executionSelection: undefined }, + ...['pipelineClass', 'task', 'executionProfileId', 'authoringRecipeId', 'implementation', 'memoryPolicy'].map( + (key) => ({ + ...template, + executionSelection: { ...template.executionSelection, [key]: undefined }, + }), + ), + { ...template, executionSelection: { ...template.executionSelection, schemaVersion: 2 } }, + { ...template, executionSelection: { ...template.executionSelection, executionProfileId: 'arbitrary-profile' } }, + { ...template, executionSelection: { ...template.executionSelection, bindingSpec: undefined } }, + { + ...template, + executionSelection: { + ...template.executionSelection, + bindingSpec: { modelType: template.modelType, mode: 'edit_image' }, + }, + }, + { ...template, modelType: 'Flux3ModularPipeline' }, + { ...template, modelArtifact: undefined }, + { ...template, modelArtifact: { ...template.modelArtifact, revision: 'main' } }, + { ...template, modelArtifact: { ...template.modelArtifact, value: '' } }, + { ...template, modelArtifact: { source: 'local', value: 'unverified-model.safetensors' } }, + ]; + for (const variant of variants) { + assert.deepEqual( + browserModule.filterStudioTemplates([variant], profilesModule.DEFAULT_STUDIO_FORM, { + category: 'experimental', + includeBlocked: true, + query: '', + modelType: 'all', + difficulty: 'all', + sort: 'recommended', + }), + [], + JSON.stringify(variant.executionSelection), + ); + } +}); + test('every template name identifies its exact model and operation', () => { const { STUDIO_TEMPLATES } = templatesModule; for (const template of STUDIO_TEMPLATES) { diff --git a/src/components/TemplateBrowserDialog.tsx b/src/components/TemplateBrowserDialog.tsx index 1c09c270..4eab08bc 100644 --- a/src/components/TemplateBrowserDialog.tsx +++ b/src/components/TemplateBrowserDialog.tsx @@ -552,11 +552,10 @@ export default function TemplateBrowserDialog({ entry = false }: { entry?: boole ); const filteredTemplates = useMemo(() => { const source = filter.category === 'experimental' ? BROWSER_CATALOG_TEMPLATES : STUDIO_TEMPLATES; - const category = filter.category === 'experimental' ? 'all' : filter.category; const filtered = filterStudioTemplates( source, form, - { ...effectiveFilter, category }, + effectiveFilter, (template) => runtimeEstimateForTemplate(template)?.observedSeconds ?? null, ); if (filter.category !== 'experimental') return filtered; @@ -565,7 +564,7 @@ export default function TemplateBrowserDialog({ entry = false }: { entry?: boole const catalogTemplates = useMemo( () => filterStudioTemplates( - BROWSER_CATALOG_TEMPLATES, + STUDIO_TEMPLATES, form, { ...effectiveFilter, @@ -580,8 +579,16 @@ export default function TemplateBrowserDialog({ entry = false }: { entry?: boole [effectiveFilter, form, runtimeEstimateForTemplate], ); const experimentalTemplateCount = useMemo( - () => catalogTemplates.filter(isExperimentalTemplate).length, - [catalogTemplates, isExperimentalTemplate], + () => + filterStudioTemplates(BROWSER_CATALOG_TEMPLATES, form, { + ...effectiveFilter, + category: 'experimental', + query: '', + modelType: 'all', + mode: 'all', + difficulty: 'all', + }).filter(isExperimentalTemplate).length, + [effectiveFilter, form, isExperimentalTemplate], ); const publishedTemplateCount = useMemo( () => catalogTemplates.filter((template) => templateHasPublishedMedia(template, manifest)).length, diff --git a/src/studio/templateBrowser.ts b/src/studio/templateBrowser.ts index b5066947..622bc883 100644 --- a/src/studio/templateBrowser.ts +++ b/src/studio/templateBrowser.ts @@ -6,6 +6,10 @@ import { VIDEO_STUDIO_MODES, } from './modelProfiles'; import { resolveTemplateAssetUrl } from './templateAssets'; +import { + AUDIO_TEMPLATE_EXECUTION_SELECTIONS, + IMAGE_TEMPLATE_EXECUTION_SELECTIONS, +} from './templateOperationSelections'; import type { StudioFormState, StudioMode, @@ -184,6 +188,33 @@ function recommendedRank(template: StudioTemplate, form: StudioFormState) { return rank; } +/** Explicit planning discovery only; this grants no model or execution eligibility. */ +function hasDeclaredExperimentalCreator(template: StudioTemplate) { + const selection = template.executionSelection; + const declared = IMAGE_TEMPLATE_EXECUTION_SELECTIONS[template.id] ?? AUDIO_TEMPLATE_EXECUTION_SELECTIONS[template.id]; + const artifact = template.modelArtifact; + if ( + !selection || + !declared || + selection.schemaVersion !== 1 || + selection.memoryPolicy !== 'custom_experimental' || + declared.memoryPolicy !== 'custom_experimental' || + selection.bindingSpec?.modelType !== template.modelType || + selection.bindingSpec?.mode !== template.mode || + declared.bindingSpec.modelType !== template.modelType || + declared.bindingSpec.mode !== template.mode + ) + return false; + for (const key of ['pipelineClass', 'task', 'executionProfileId', 'authoringRecipeId', 'implementation'] as const) { + const value = selection[key]; + if (typeof value !== 'string' || !value.trim() || value !== declared[key]) return false; + } + if (!artifact || typeof artifact.value !== 'string' || !artifact.value.trim()) return false; + return artifact.source === 'hub' + ? /^[0-9a-f]{40}$/i.test(artifact.revision ?? '') + : artifact.source === 'local' && /^[0-9a-f]{64}$/i.test(artifact.sha256 ?? ''); +} + export function filterStudioTemplates( templates: StudioTemplate[], form: StudioFormState, @@ -200,12 +231,12 @@ export function filterStudioTemplates( !isStudioModelVisibleInCatalog(template.modelType, { currentModelType: form.modelType, includeWorkflowOnly: true, - }) + }) && + !(selectedCategory === 'experimental' && hasDeclaredExperimentalCreator(template)) ) return false; if (selectedCategory === 'recommended' && blocked) return false; - if (selectedCategory === 'experimental') return false; - if (selectedCategory !== 'recommended' && selectedCategory !== 'all') { + if (selectedCategory !== 'recommended' && selectedCategory !== 'all' && selectedCategory !== 'experimental') { if (!templateCategoryIds(template).includes(selectedCategory)) return false; } if (filter.modelType !== 'all' && template.modelType !== filter.modelType) return false; diff --git a/tests/e2e/studio-mocked/studio-mocked.spec.ts b/tests/e2e/studio-mocked/studio-mocked.spec.ts index 72024cf2..1886eb98 100644 --- a/tests/e2e/studio-mocked/studio-mocked.spec.ts +++ b/tests/e2e/studio-mocked/studio-mocked.spec.ts @@ -12,7 +12,7 @@ import { IMAGE_TEMPLATE_EXECUTION_SELECTIONS, AUDIO_TEMPLATE_EXECUTION_SELECTIONS, } from '../../../src/studio/templateOperationSelections'; -import { STUDIO_TEMPLATES } from '../../../src/studio/templates'; +import { PLANNING_STUDIO_TEMPLATES, STUDIO_TEMPLATES } from '../../../src/studio/templates'; import { hashString, stableStringify } from '../../../src/studio/stableHash'; import { REGISTERED_BLOCK_V2_ROUTES } from '../../../src/studio/registeredBlockV2Routes'; import { acknowledgementRequiredForTemplate } from '../../../src/studio/modelUsagePolicies'; @@ -10936,13 +10936,25 @@ async function installOperationAuthoringRoutes( let publicFlux3AutoSchemaPromise: Promise; /** Actual source DTOs with no sealed provider; HTTP mocks do not qualify execution. */ -async function installPublicFlux3AuthoringRoutes(page: Page, exactModel = false, currentAutoSchemas = false) { +async function installPublicFlux3AuthoringRoutes( + page: Page, + exactModel = false, + currentAutoSchemas = false, + templateCreators = false, +) { const standard = await installOperationAuthoringRoutes(page, exactModel); const fixture = JSON.parse( - await fs.readFile(path.join(CLIENT_ROOT, 'tests/fixtures/public-flux3-missing-provider.v1.json'), 'utf8'), + await fs.readFile( + path.join( + CLIENT_ROOT, + 'tests/fixtures', + templateCreators ? 'public-flux3-template-creators.v1.json' : 'public-flux3-missing-provider.v1.json', + ), + 'utf8', + ), ); expect(fixture.activeProvider).toBeNull(); - expect(fixture.starters).toHaveLength(8); + expect(fixture.starters).toHaveLength(templateCreators ? 10 : 8); let defaultStarters: OperationStarter[] = []; const defaultSelectionProfiles = new Map(); if (currentAutoSchemas) { @@ -11101,8 +11113,12 @@ async function installPublicFlux3AuthoringRoutes(page: Page, exactModel = false, standard.flatMap((starter) => starter.nodes.map((node) => [node.operation.nodeKey, node.node])), ), ...fixture.registry, - 'modules.Image.Load': mockRegistry['modules.Image.Load'], - 'modules.Image.Preview': mockGraphQualifiedQwenRegistry['modules.Image.Preview'], + ...(templateCreators + ? {} + : { + 'modules.Image.Load': mockRegistry['modules.Image.Load'], + 'modules.Image.Preview': mockGraphQualifiedQwenRegistry['modules.Image.Preview'], + }), }, }, }), @@ -11143,6 +11159,122 @@ async function installPublicFlux3AuthoringRoutes(page: Page, exactModel = false, return fixture; } +test('Experimental planning cards create the exact FLUX3 Ceramic Radio graph through ordinary UI', async ({ page }) => { + await ensureFrontend(); + const fixture = await installPublicFlux3AuthoringRoutes(page, false, false, true); + // Match the genuine creator fixture's CPU-only device options. This is UI + // authoring transport, not a hardware fit or execution qualification. + await page.route('**/runtime/status**', (route) => + route.fulfill({ + json: { + ready: true, + instance: 'mock', + config: { hf_token_configured: false }, + packages: { torch: { available: true, cuda_available: false, cuda_device_count: 0, cuda_devices: [] } }, + }, + }), + ); + await page.routeWebSocket('**/ws**', (socket) => + socket.send( + JSON.stringify({ + type: 'welcome', + sid: new URL(socket.url()).searchParams.get('sid'), + instance: 'mock', + current: null, + queued: {}, + }), + ), + ); + const forbiddenPosts: string[] = []; + const selections: Record[] = []; + page.on('request', (request) => { + if (request.method() !== 'POST') return; + const pathname = new URL(request.url()).pathname; + if (pathname === '/operations/starter') selections.push(request.postDataJSON()); + if (/\/(?:graph|execute|install)(?:\/|$)/u.test(pathname) || pathname.startsWith('/runtime/optional-runtimes')) + forbiddenPosts.push(pathname); + }); + await page.goto(FRONTEND_URL, { waitUntil: 'domcontentloaded' }); + await page.waitForFunction(() => Boolean(window.__MODIFF_E2E__)); + await openTemplateBrowser(page); + const search = page.getByTestId('template-browser-search'); + await page.getByTestId('template-browser-category-all').click(); + await search.fill('FLUX 3'); + await expect(page.locator('[data-testid^="template-browser-card-flux3_"]')).toHaveCount(0); + await page.getByTestId('template-browser-category-experimental').click(); + await expect(page.locator('[data-testid^="template-browser-card-flux3_"]')).toHaveCount(10); + await search.fill('Ceramic Radio'); + await expect(page.locator('[data-testid^="template-browser-card-flux3_"]')).toHaveCount(2); + const template = PLANNING_STUDIO_TEMPLATES.find((item) => item.id === 'flux3_klein_fp8r512_text_to_image')!; + const previousWorkflow = await page.evaluate(() => window.__MODIFF_E2E__!.getState().studio.activeWorkflowTabId); + await expect(page.getByTestId(`template-browser-card-${template.id}`)).toContainText('No preview yet'); + await page.getByTestId(`template-browser-create-card-${template.id}`).click(); + await expect(search).toHaveCount(0); + await expect + .poll(() => page.evaluate(() => window.__MODIFF_E2E__!.getState().studio.activeTemplateId)) + .toBe(template.id); + const createdWorkflow = await page.evaluate(() => window.__MODIFF_E2E__!.getState().studio.activeWorkflowTabId); + expect(createdWorkflow).toBeTruthy(); + expect(createdWorkflow).not.toBe(previousWorkflow); + await expect(page.getByTestId('topbar-resource-policy')).toHaveAttribute( + 'aria-label', + 'Memory policy: Custom. Click to switch.', + ); + await waitForOperationGraphToSettle(page); + const actual = await publicFlux3FormatSnapshot(page); + expect(actual.resourceMode).toBe('expert'); + expect(actual.selection).toMatchObject({ + pipelineClass: template.executionSelection!.pipelineClass, + repository: { source: 'hub', value: template.modelArtifact!.value }, + revision: template.modelArtifact!.revision, + dtype: 'bfloat16', + weightFormat: 'fp8r', + quantConfigConnected: false, + }); + expect(actual.parent.executionProfileId).toBe(template.executionSelection!.executionProfileId); + expect(actual.parent.authoringRecipeId).toBe(template.executionSelection!.authoringRecipeId); + const nodes = actual.semanticGraph.nodes; + expect(nodes.map((node) => `${node.module}.${node.action}`).sort()).toEqual( + [...template.requiredBackendCapabilities!].sort(), + ); + const values = (action: string) => + Object.fromEntries( + Object.entries(nodes.find((node) => node.action === action)!.params).map(([key, param]) => [ + key, + param.value ?? param.default, + ]), + ); + expect(values('ModelsLoader')).toMatchObject({ + weight_format: 'fp8r', + dtype: 'bfloat16', + auto_offload: false, + offload_mode: 'none', + }); + expect(values('Denoise')).toMatchObject({ + width: 512, + height: 512, + num_inference_steps: 16, + seed: { value: 481001, isRandom: false }, + }); + expect(values('EncodePrompt')).toMatchObject({ + prompt: template.prompt, + max_sequence_length: 8192, + layout_conditioning: null, + }); + expect(actual.semanticGraph.edges).toHaveLength(7); + expect(selections).toContainEqual( + expect.objectContaining({ + pipelineClass: template.executionSelection!.pipelineClass, + task: 'text_to_image', + executionProfileId: template.executionSelection!.executionProfileId, + authoringRecipeId: template.executionSelection!.authoringRecipeId, + }), + ); + expect(fixture.activeProvider).toBeNull(); + expect(forbiddenPosts).toEqual([]); + await page.screenshot({ path: test.info().outputPath('experimental-ceramic-radio-created.png') }); +}); + async function selectOperationPipeline(page: Page, pipeline: string, task?: string) { const panel = page.getByRole('region', { name: 'Diffusers operations' }); await panel.getByLabel('Operation pipeline').click(); From b388922839a9eec119478129b036274215939bd4 Mon Sep 17 00:00:00 2001 From: Sourav Das Date: Tue, 27 Oct 2026 18:34:37 +0530 Subject: [PATCH 070/440] Recover modular Expert provenance from the executed model owner --- scripts/flux3-public-template-planning.test.mjs | 8 +++++++- scripts/live-proof-provenance.mjs | 6 ++++-- 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/scripts/flux3-public-template-planning.test.mjs b/scripts/flux3-public-template-planning.test.mjs index 22a85772..e75e6304 100644 --- a/scripts/flux3-public-template-planning.test.mjs +++ b/scripts/flux3-public-template-planning.test.mjs @@ -382,10 +382,10 @@ test('all ten fixed-input planning cards create exact ordinary FP8r task graphs' ...exactness.getTemplateLockedSettings(value), mode: value.mode, modelType: value.modelType, - modelRepo: repository, device, referenceImages: references, }; + assert.equal(Object.hasOwn(form, 'modelRepo'), false, 'Normal creator form does not store the loader repository.'); assert.deepEqual( [form.weightFormat, form.dtype, form.quantizationMode, form.resourceMode], ['fp8r', 'bfloat16', 'none', 'expert'], @@ -536,6 +536,9 @@ test('all ten fixed-input planning cards create exact ordinary FP8r task graphs' `manual-resource-v1:${selection.pipelineClass}|bfloat16|none|none`, ); assert.equal(executionReceiptIdentity({}, plan).peakMemoryBytes, null, 'No fabricated measurement.'); + const retainedRepo = structuredClone(current); + retainedRepo.runtimeHints.workflowSnapshot.studioForm.modelRepo = repository; + assert.deepEqual(executionPlanIdentity(retainedRepo).plan, plan, 'An optional matching repository stays valid.'); } const ordinary = visualGroups.unpackVisualOperationGroups(grouped).graph; const ordinaryApi = flow.useFlowStore.getState().exportGraph('native-expert-proof-ordinary', undefined, { @@ -573,6 +576,9 @@ test('all ten fixed-input planning cards create exact ordinary FP8r task graphs' (g) => { g.runtimeHints.workflowSnapshot.studioForm.modelRepo = 'Other/Model'; }, + ...[null, '', 123, { source: 'hub', value: repository }].map((modelRepo) => (g) => { + g.runtimeHints.workflowSnapshot.studioForm.modelRepo = modelRepo; + }), (g) => { g.runtimeHints.workflowSnapshot.studioForm.trustRemoteCode = true; }, diff --git a/scripts/live-proof-provenance.mjs b/scripts/live-proof-provenance.mjs index 922b7168..a91f0709 100644 --- a/scripts/live-proof-provenance.mjs +++ b/scripts/live-proof-provenance.mjs @@ -448,7 +448,6 @@ function executedModularExpertPlanFromGraph(apiGraph) { typeof form.offloadMode !== 'string' || typeof form.device !== 'string' || typeof form.modelType !== 'string' || - typeof form.modelRepo !== 'string' || !Array.isArray(snapshot.nodes) ) return null; @@ -485,7 +484,10 @@ function executedModularExpertPlanFromGraph(apiGraph) { repo.source !== 'hub' || typeof repo.value !== 'string' || !repo.value || - repo.value !== form.modelRepo || + // Normal template forms retain model type and controls; the immutable + // repository lives on the executed loader. A retained optional form + // repository must agree, but its absence cannot erase that actual owner. + (form.modelRepo !== undefined && repo.value !== form.modelRepo) || typeof revision !== 'string' || !/^[0-9a-f]{40}$/u.test(revision) || apiParamValue(owner, 'model_type') !== form.modelType || From 758d3564f7a687cf09ed3edd99c0778d3fc01185 Mon Sep 17 00:00:00 2001 From: Sourav Das Date: Tue, 27 Oct 2026 19:22:59 +0530 Subject: [PATCH 071/440] Refresh saved workflow summaries after acknowledged saves and deletes --- .github/workflows/ci.yml | 4 +- docs/workflow-authoring-ux.md | 4 + scripts/bundle-budget.mjs | 8 ++ src/components/GraphList.tsx | 48 ++++++++-- src/studio/useWorkflowBackendSync.ts | 12 +++ tests/e2e/studio-mocked/studio-mocked.spec.ts | 88 +++++++++++++++++++ 6 files changed, 157 insertions(+), 7 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 89eb6e31..c58b8d10 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -33,7 +33,7 @@ jobs: with: repository: sdevil7th/MoDiff # Paired image stages, scoped enhancement and FLUX3 evaluation contracts. - ref: 5363db02f8fa429c40c5e6784665187513a7957c + ref: a099c7b51fc012beb137ee709eea2bdf97751ab5 path: MoDiff persist-credentials: false - name: Verify the pinned backend supports native setup @@ -86,7 +86,7 @@ jobs: with: repository: sdevil7th/MoDiff # Match the immutable backend revision in the Client quality job. - ref: 5363db02f8fa429c40c5e6784665187513a7957c + ref: a099c7b51fc012beb137ee709eea2bdf97751ab5 path: MoDiff persist-credentials: false - name: Verify the pinned backend supports native setup diff --git a/docs/workflow-authoring-ux.md b/docs/workflow-authoring-ux.md index 04126f65..f8d26acc 100644 --- a/docs/workflow-authoring-ux.md +++ b/docs/workflow-authoring-ux.md @@ -307,6 +307,10 @@ New documents autosave as recovery drafts. Explicit Save promotes them to My workflows; a delayed autosave cannot demote a saved document. Existing documents without an intent marker are treated as saved without rewriting their files. Unknown historical documents are not reclassified or deleted. +The open library incorporates acknowledged backend saves and deletions immediately, +so closing a newly saved tab keeps its row available without Reload workflows. +These summary updates do not refetch on canvas edits or overwrite newer unsaved +tab contents. An older list response cannot undo a later save acknowledgement. Shared select, combobox and multiselect menus use an 18rem preferred cap, further limited by available viewport space. The cap is passed through Headless UI's diff --git a/scripts/bundle-budget.mjs b/scripts/bundle-budget.mjs index 3a55dde8..4cc3a96b 100644 --- a/scripts/bundle-budget.mjs +++ b/scripts/bundle-budget.mjs @@ -219,7 +219,13 @@ const SOURCE_LICENSES = new URL('../public/THIRD_PARTY_LICENSES.txt', import.met // candidates still miss startup/chunk limits (646985/468683 and 647014/468706). // Retain the strict current-owner/parser checks and allow 128 startup/chunk // bytes only; dependencies, lazy boundaries, minifier and deferred caps stay fixed. +// Acknowledged Save/Delete summaries keep the saved list current after closing a +// tab. Measured gzip grows 488406 -> 488472 (+66) for the largest startup chunk, +// 666710 -> 666779 (+69) for startup, and 326605 -> 326783 (+178) deferred. +// Add only those measured costs, preserving 8/11/152 bytes of existing headroom. +// Dependencies, startup membership, lazy boundaries and the 64 KiB chunk cap stay fixed. const MAX_STARTUP_CHUNK_GZIP_BYTES = + 66 + 189 + 55 + 82 + @@ -335,6 +341,7 @@ const MAX_STARTUP_CHUNK_GZIP_BYTES = // Preserve the separately measured 64-byte shared loading-policy allowance above. // Preserve the measured 384-byte selected-image authoring allowance above. const MAX_STARTUP_GZIP_BYTES = + 69 + 190 + 53 + 82 + @@ -534,6 +541,7 @@ const MAX_DEFERRED_CHUNK_GZIP_BYTES = 64 * 1024; // 321033-byte cap, preserving 39 bytes of headroom at 321227. Startup caps, the // 65536-byte deferred chunk cap, dependencies and loading boundaries stay fixed. const MAX_DEFERRED_GZIP_BYTES = + 178 + 287 + 44 + 2064 + diff --git a/src/components/GraphList.tsx b/src/components/GraphList.tsx index ddaf5c55..52ab8274 100644 --- a/src/components/GraphList.tsx +++ b/src/components/GraphList.tsx @@ -1,6 +1,6 @@ // Derived from cubiq/Mellon-client and modified by the MoDiff project. -import { lazy, Suspense, useEffect, useState, useMemo, useCallback } from 'react'; +import { lazy, Suspense, useEffect, useState, useMemo, useCallback, useRef } from 'react'; import config from '../../app.config'; import { @@ -43,6 +43,7 @@ import { deleteWorkflowNow, markWorkflowTabOpen, saveDetachedWorkflowNow, + subscribeBackendWorkflowChanges, } from '../studio/useWorkflowBackendSync'; const DeveloperWorkflowLauncher = lazy(() => import('./DeveloperWorkflowLauncher')); @@ -60,7 +61,7 @@ export interface GraphData { requiredArtifacts?: string[]; } -const graphListRequestGate = createLatestRequestGate<'graphs'>(); +const graphListRequestGate = createLatestRequestGate<'graphs' | 'saved'>(); const SAVED_WORKFLOWS_PAGE_SIZE = 50; type SavedWorkflowSummary = Omit & { snapshot?: WorkflowTab['snapshot'] }; @@ -127,6 +128,7 @@ function GraphList() { const [isLoading, setIsLoading] = useState(false); const [graphs, setGraphs] = useState([]); const [savedWorkflows, setSavedWorkflows] = useState([]); + const acknowledgedChanges = useRef(new Map()); const [expanded, setExpanded] = useState>(new Set()); const [search, setSearch] = useState(''); const [savedPage, setSavedPage] = useState(0); @@ -166,15 +168,51 @@ function GraphList() { }, []); const fetchSavedWorkflows = useCallback(async () => { + const ticket = graphListRequestGate.begin('saved'); + const before = new Map(acknowledgedChanges.current); try { - const payload = await requestJson(`${config.serverAddress}/workflows?view=summary`); + const payload = await requestJson(`${config.serverAddress}/workflows?view=summary`, { + signal: ticket.signal, + }); const records = isRecord(payload) && Array.isArray(payload.workflows) ? payload.workflows : []; - setSavedWorkflows(records.map(backendWorkflowSummary).filter((tab): tab is SavedWorkflowSummary => Boolean(tab))); + if (!ticket.isLatest()) return; + const rows = new Map( + records + .map(backendWorkflowSummary) + .filter((tab): tab is SavedWorkflowSummary => Boolean(tab)) + .map((tab) => [tab.id, tab]), + ); + // A response requested before Save/Delete must not erase its later + // acknowledgement. A fresh manual reload still replaces older summaries. + for (const [id, tab] of acknowledgedChanges.current) { + if (before.get(id) === tab) continue; + if (!tab) rows.delete(id); + else if ((rows.get(id)?.backendRevision ?? 0) <= (tab.backendRevision ?? 0)) rows.set(id, tab); + } + setSavedWorkflows([...rows.values()]); } catch (error) { - console.warn('Could not refresh My workflows.', error); + if (ticket.isLatest()) console.warn('Could not refresh My workflows.', error); + } finally { + ticket.finish(); } }, []); + useEffect( + () => + subscribeBackendWorkflowChanges(({ id, tab }) => { + const summary = tab ? backendWorkflowSummary({ ...tab, revision: tab.backendRevision }) : null; + const acknowledged = acknowledgedChanges.current.get(id); + if (summary && (acknowledged?.backendRevision ?? 0) > (summary.backendRevision ?? 0)) return; + acknowledgedChanges.current.set(id, summary); + setSavedWorkflows((current) => { + const previous = current.find((item) => item.id === id); + if (summary && (previous?.backendRevision ?? 0) > (summary.backendRevision ?? 0)) return current; + return [...current.filter((item) => item.id !== id), ...(summary ? [summary] : [])]; + }); + }), + [], + ); + // Fetch graphs on component mount useEffect(() => { fetchGraphs(); diff --git a/src/studio/useWorkflowBackendSync.ts b/src/studio/useWorkflowBackendSync.ts index da988f1e..968aa7b2 100644 --- a/src/studio/useWorkflowBackendSync.ts +++ b/src/studio/useWorkflowBackendSync.ts @@ -53,6 +53,16 @@ function contentSignature(tab: WorkflowTab) { const backendSignatures = new Map(); const pendingSignatures = new Map(); const saveChains = new Map>(); +type BackendWorkflowChange = { id: string; tab: WorkflowTab | null }; +const backendWorkflowListeners = new Set<(change: BackendWorkflowChange) => void>(); + +/** Observe acknowledged documents without opening tabs or refetching on edits. */ +export function subscribeBackendWorkflowChanges(listener: (change: BackendWorkflowChange) => void) { + backendWorkflowListeners.add(listener); + return () => { + backendWorkflowListeners.delete(listener); + }; +} const CLOSED_WORKFLOW_TABS_KEY = 'modiff-closed-workflow-tabs'; const WORKFLOW_SYNC_TIMEOUT_MS = 120_000; @@ -95,6 +105,7 @@ export function markBackendWorkflow(tab: WorkflowTab) { forgetFreshWorkflowId(tab.id); backendSignatures.set(tab.id, contentSignature(tab)); pendingSignatures.delete(tab.id); + backendWorkflowListeners.forEach((listener) => listener({ id: tab.id, tab })); } export function forgetBackendWorkflow(id: string) { @@ -103,6 +114,7 @@ export function forgetBackendWorkflow(id: string) { pendingSignatures.delete(id); closedWorkflowIds.delete(id); persistClosedWorkflowIds(); + backendWorkflowListeners.forEach((listener) => listener({ id, tab: null })); } /** diff --git a/tests/e2e/studio-mocked/studio-mocked.spec.ts b/tests/e2e/studio-mocked/studio-mocked.spec.ts index 1886eb98..5171adbe 100644 --- a/tests/e2e/studio-mocked/studio-mocked.spec.ts +++ b/tests/e2e/studio-mocked/studio-mocked.spec.ts @@ -32247,6 +32247,94 @@ test('custom import reports dependency and Python errors without enabling or alt expect(await page.evaluate(() => window.__MODIFF_E2E__!.exportWorkflowGraph())).toEqual(before); }); +test('My workflows retains newly saved documents after closing their tabs without a manual reload', async ({ + page, +}) => { + await page.routeWebSocket('**/ws**', (socket) => { + socket.send( + JSON.stringify({ + type: 'welcome', + sid: new URL(socket.url()).searchParams.get('sid'), + instance: 'mock', + current: null, + queued: {}, + }), + ); + }); + let summaryRequests = 0; + page.on('request', (request) => { + if ( + new URL(request.url()).pathname.endsWith('/workflows') && + new URL(request.url()).searchParams.get('view') === 'summary' + ) + summaryRequests++; + }); + await openDeveloperWorkflows(page); + await dismissTaskLauncher(page); + await page.getByTestId('left-tab-workflows').click(); + await page.getByRole('button', { name: 'My workflows', exact: true }).click(); + await expect.poll(() => summaryRequests).toBeGreaterThan(0); + await page.getByRole('button', { name: 'Start', exact: true }).click(); + await page.getByTestId('task-browser').getByTestId('workflow-task-text_to_image').click(); + await page.getByRole('button', { name: 'My workflows', exact: true }).click(); + const readsBeforeSave = summaryRequests; + await page.getByTestId('topbar-save-workflow-options').click(); + await page.getByTestId('topbar-save-workflow-as').click(); + const title = 'Saved while the workflow library stays open'; + await page.getByTestId('save-workflow-name').fill(title); + const savedResponse = page.waitForResponse( + (response) => + response.request().method() === 'PUT' && + response.url().includes('/workflows/') && + response.request().postDataJSON().title === title && + response.ok(), + ); + await page.getByTestId('confirm-save-workflow').click(); + const saved = (await (await savedResponse).json()) as { id: string; title: string; intent: string }; + expect(saved.intent).toBe('saved'); + await expect(page.getByTestId('save-workflow-dialog')).toHaveCount(0); + await page.getByRole('button', { name: `Close ${title}`, exact: true }).click(); + await expect(page.getByTestId(`workflow-tab-${saved.id}`)).toHaveCount(0); + const row = page.getByTestId(`saved-workflow-${saved.id}`); + await expect(row.getByRole('button', { name: title, exact: true })).toBeVisible(); + expect(summaryRequests).toBe(readsBeforeSave); + await row.getByRole('button', { name: title, exact: true }).click(); + await expect(page.getByTestId(`workflow-tab-${saved.id}`)).toBeVisible(); + await expect.poll(() => page.evaluate(() => window.__MODIFF_E2E__!.getState().flow.nodes.length)).toBeGreaterThan(0); + + // A previously requested summary can arrive after a newer Save. Its older + // empty result must not erase that acknowledged document either. + let releaseSummary!: () => void; + const pendingSummary = new Promise((resolve) => { + releaseSummary = resolve; + }); + let summaryStarted = false; + let summaryFinished = false; + await page.route('**/workflows?view=summary', async (route) => { + summaryStarted = true; + await pendingSummary; + await route.fulfill({ json: { workflows: [] } }); + summaryFinished = true; + }); + try { + await page.getByRole('button', { name: 'Reload workflows', exact: true }).click(); + await expect.poll(() => summaryStarted).toBe(true); + const savedAgain = page.waitForResponse( + (response) => + response.request().method() === 'PUT' && response.url().endsWith(`/workflows/${saved.id}`) && response.ok(), + ); + await page.getByTestId('topbar-save-workflow').click(); + await savedAgain; + await page.getByRole('button', { name: `Close ${title}`, exact: true }).click(); + releaseSummary(); + await expect.poll(() => summaryFinished).toBe(true); + await expect(row.getByRole('button', { name: title, exact: true })).toBeVisible(); + expect(summaryRequests).toBe(readsBeforeSave + 1); + } finally { + releaseSummary(); + } +}); + test('saved workflow browsing bounds mounted rows and searches the full library', async ({ page }) => { await ensureFrontend(); await installMockRoutes(page); From fd3d3dacbcda0b4f44ff23497276658f0233eea8 Mon Sep 17 00:00:00 2001 From: Sourav Das Date: Tue, 27 Oct 2026 22:14:20 +0530 Subject: [PATCH 072/440] Preserve native execution evidence and handle slow cache release Parse bounded optional consumed-field and applied-adapter receipts without changing historical records or ordinary qualification requirements. Join native task/output evidence through the existing provenance factory and retain strict canonical-workflow checks with explicit unsupported cases. Give full model-cache release a bounded two-minute deadline and show failures instead of silently leaving its indicator unchanged. Clear flags only after a valid acknowledgement. Keep ordinary requests on their existing deadline. Pin both CI jobs to the reviewed compatible backend and account for the measured startup parser cost without changing dependencies or lazy loading boundaries. --- .github/workflows/ci.yml | 4 +- CONTRIBUTING.md | 71 ++ scripts/applied-adapter-provenance.mjs | 306 +++++++++ scripts/bundle-budget.mjs | 7 + scripts/canonical-provenance-fixtures.mjs | 441 ++++++++++++ scripts/live-proof-provenance.mjs | 479 ++++++++++++- scripts/live-qwen-proof.test.mjs | 250 +++++++ scripts/release-contract-core.mjs | 650 ++++++++++++++++++ scripts/release-contract.mjs | 52 +- scripts/release-contract.test.mjs | 507 ++++++++++++++ scripts/resolved-execution-inputs.test.mjs | 549 +++++++++++++++ scripts/server-actions.test.mjs | 50 ++ scripts/template-qualification.mjs | 78 ++- scripts/template-qualification.test.mjs | 506 +++++++++++++- src/components/CustomNode.tsx | 3 +- src/studio/resolvedExecutionInputs.ts | 351 ++++++++++ src/utils/serverActions.ts | 2 + tests/e2e/studio-mocked/studio-mocked.spec.ts | 81 +++ .../legacy-provenance-factory.v1.json | 107 +++ 19 files changed, 4486 insertions(+), 8 deletions(-) create mode 100644 scripts/applied-adapter-provenance.mjs create mode 100644 scripts/canonical-provenance-fixtures.mjs create mode 100644 tests/fixtures/legacy-provenance-factory.v1.json diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index c58b8d10..6d01cc38 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -33,7 +33,7 @@ jobs: with: repository: sdevil7th/MoDiff # Paired image stages, scoped enhancement and FLUX3 evaluation contracts. - ref: a099c7b51fc012beb137ee709eea2bdf97751ab5 + ref: ae09c2014f01198d359a1310d63a1d8d619796be path: MoDiff persist-credentials: false - name: Verify the pinned backend supports native setup @@ -86,7 +86,7 @@ jobs: with: repository: sdevil7th/MoDiff # Match the immutable backend revision in the Client quality job. - ref: a099c7b51fc012beb137ee709eea2bdf97751ab5 + ref: ae09c2014f01198d359a1310d63a1d8d619796be path: MoDiff persist-credentials: false - name: Verify the pinned backend supports native setup diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 543df186..0128e566 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -297,6 +297,77 @@ npm run gallery:coverage Do not publish a local artifact, private input, personal path, access token, or source revision through a Gallery bundle. +The standalone, model-backed canonical execution recorder is separate from public +templates. Its native integration remains incomplete; the command below does not +establish that an unchanged canonical workflow can yet produce an accepted receipt: + +```bash +MODIFF_CANONICAL_WORKFLOW_EVIDENCE=/absolute/path/evidence.json node scripts/template-qualification.mjs --workflow ModelPipeline:text_to_image +``` + +The descriptor uses `schemaVersion: 1`, format +`modiff.canonical-workflow-evidence.v1`, and the exact `workflowId`. Its +`creatorPackage`, `outputPackage`, `runDetail`, `nodes`, `backendSourceBefore`, +`backendSourceAfter`, and `modelObservations` entries reference original observed +files using `{path, bytes, sha256}`. Paths must be relative, canonical, contained, +and free of symlinks. Source observations contain their actual `identity`; model +observations retain the ordinary model-list response. `outputs` contains ordered +`{backendPath, mediaType, file}` entries for the unchanged durable media. Retain +the original browser downloads and raw task body; do not reconstruct their +fields from a catalog or replace defaults, paths, prompts, or model pins. + +This initial path supports input-free execution only (`inputs: []`). Every +submitted literal must have matching native consumed-input evidence; omissions, +overrides, unsupported scalar connections, unresolved model components, retries, +and fallback attempts remain held. Input-backed workflows need a durable, +execution-bound input-byte receipt: a post-run file copy or a current cache hash +alone is insufficient. The existing normal exporter must be able to export the +unchanged canonical graph without an inferred execution scope. Deterministic +builtin workflows remain explicitly unsupported because model identity is not +applicable; do not invent a model for them. + +The optional native `fieldAccounting` extension preserves requested literals, +actual call controls, explicit inactive/superseded controls, and bounded recipe +projections separately from legacy v1 fields and summaries. The client parser +retains its completeness/truncation status without changing v1 normalization. +Parsing a projection hash is not cryptographic verification. The independent +canonical accounting join verifies metadata hashes, connected producer ports, +disabled quantization and the unique executed loader for the unchanged five-node +DDIM workflow. Preview's CPU setting does not describe model placement. The shared +provenance factory accepts an optional canonical proof from the existing reader: +the trusted current canonical export, actual original task/output and complete +native accounting. It derives the plan itself and binds task, attempt, output, +model and completion identities without adding runtime hints or rewriting proofs. +The default factory path remains unchanged. Input files, builtins, quantized +configurations and other accounting policies remain unsupported by this initial +join. A genuine unchanged native DDIM run is still required before a usability +claim. Mocked protocol checks are not native, quality, hardware or release evidence. + +The recorder copies original evidence under the backend's ignored +`data/qualification/release/canonical-workflow-evidence/` directory and records +`canonical-workflow-run-receipts.v1.json`. Release-contract generation repeats the +same validation against current canonical source and retained bytes. A verified +receipt is **execution evidence only**: quality, rights, hardware qualification, +and release approval remain false. It does not make standalone workflows release +eligible, promote local review receipts, or change ordinary template recording +and Gallery publication policy. + +The optional native `appliedAdapters` receipt records the owning ModelsLoader's +observed ordered adapter names, numeric scales, immutable artifact identities, +opaque descriptor hashes and explicit scheduler override digest. It carries a +fresh application identity after activation/removal; valid owner reuse retains +that identity with a `reused` observation. Missing or unavailable evidence is not +an empty adapter set. The history parser only checks the bounded schema. The +shared provenance factory verifies and locks present observations against the +original task/attempt, output snapshot and executed ancestor owner. +`validateAppliedAdapterProof(provenance, {required: true})` additionally requires +complete evidence matched to the ordered native Lora chain and model pins for +explicit adapter-order acceptance. Its initial strict scope +is pinned Hub adapters with explicit names and no scheduler override. Ordinary +template recording does not acquire this new requirement: historical absent-field +proofs retain their original submitted-graph proof level. This extension grants +no style, quality, hardware, rights or publication approval. + ## Custom extension changes Keep Add custom node, the strict response parser and backend hash-bound imports in sync. Intentional Add/Load/Reload is consent; discovery and graph import are not. Test import failure, changed source, missing dependencies, typed search and registry refresh. Use the normal graph executor. See the backend `docs/custom-nodes.md`. diff --git a/scripts/applied-adapter-provenance.mjs b/scripts/applied-adapter-provenance.mjs new file mode 100644 index 00000000..7f1da3a6 --- /dev/null +++ b/scripts/applied-adapter-provenance.mjs @@ -0,0 +1,306 @@ +// Optional native observations, never style, hardware or publication approval. +import assert from 'node:assert/strict'; +import { canonicalJsonHash } from './canonical-json.mjs'; + +const same = (left, right, label) => assert.equal(canonicalJsonHash(left), canonicalJsonHash(right), label); +const keys = (value, expected) => { + assert.ok(value && typeof value === 'object' && !Array.isArray(value), 'Adapter evidence must be an object.'); + assert.deepEqual(Object.keys(value).sort(), [...expected].sort(), 'Unknown or missing adapter evidence fields.'); +}; +const text = (value, maximum) => + typeof value === 'string' && + value.length > 0 && + [...value].length <= maximum && + value === value.trim() && + !/[\u0000-\u001f]/u.test(value); +const sha = (value) => typeof value === 'string' && /^[a-f0-9]{64}$/u.test(value); + +export function validateAppliedAdapterSection(section) { + assert.equal(section?.schemaVersion, 1); + if (section.status !== 'complete') { + keys(section, ['schemaVersion', 'status', 'reason']); + assert.ok( + typeof section.reason === 'string' && + (section.status === 'truncated' + ? section.reason === 'record-size-limit' + : section.status === 'unavailable' && + ['unobserved-application', 'owner-invalidated', 'unsupported-owner', 'unsupported-projection'].includes( + section.reason, + )), + 'Unknown adapter availability state.', + ); + return section; + } + keys(section, ['schemaVersion', 'status', 'source', 'applicationId', 'observation', 'adapters', 'stateSha256']); + assert.equal(section.source, 'backend-adapter-application'); + assert.match(section.applicationId, /^[a-f0-9]{32}$/u); + assert.ok(['activated', 'reused'].includes(section.observation)); + assert.ok(Array.isArray(section.adapters) && section.adapters.length <= 32); + const names = new Set(); + for (const item of section.adapters) { + keys(item, ['adapterName', 'scale', 'descriptorSha256', 'artifact', 'scheduler']); + assert.ok( + text(item.adapterName, 128) && + /^[A-Za-z0-9_-][A-Za-z0-9_.-]*$/u.test(item.adapterName) && + !names.has(item.adapterName), + 'Adapter names must be bounded identifiers and unique.', + ); + names.add(item.adapterName); + assert.ok(typeof item.scale === 'number' && Number.isFinite(item.scale) && item.scale >= -20 && item.scale <= 20); + assert.ok(sha(item.descriptorSha256)); + const artifact = item.artifact; + keys(artifact, [ + 'source', + 'weightName', + 'sha256', + ...(artifact?.source === 'hub' ? ['repository', 'revision'] : []), + ]); + assert.ok(artifact.source === 'hub' || artifact.source === 'local'); + assert.ok( + text(artifact.weightName, 256) && + !/[\\:]/u.test(artifact.weightName) && + artifact.weightName.endsWith('.safetensors') && + artifact.weightName.split('/').length <= 64 && + artifact.weightName.split('/').every((part) => part && part !== '.' && part !== '..'), + ); + assert.ok(sha(artifact.sha256)); + if (artifact.source === 'hub') { + assert.ok( + text(artifact.repository, 256) && + artifact.repository.split('/').length === 2 && + artifact.repository.split('/').every((part) => part.length <= 96 && /^\w(?:[\w.-]*\w)?$/u.test(part)) && + !artifact.repository.includes('--') && + !artifact.repository.includes('..') && + !artifact.repository.endsWith('.git'), + ); + assert.match(artifact.revision, /^[a-f0-9]{40}$/u); + } + if (item.scheduler !== null) { + keys(item.scheduler, ['className', 'configSha256']); + assert.ok(text(item.scheduler.className, 128) && /^[A-Za-z_][A-Za-z0-9_]*$/u.test(item.scheduler.className)); + assert.match(item.scheduler.configSha256, /^sha256:[a-f0-9]{64}$/u); + } + } + assert.ok(Buffer.byteLength(JSON.stringify({ adapters: section.adapters }), 'utf8') <= 32_768); + assert.equal( + section.stateSha256, + `sha256:applied-adapters-v1:${canonicalJsonHash({ adapters: section.adapters })}`, + 'Applied adapter state digest differs.', + ); + return section; +} + +const literal = (node, name) => { + const parameter = node.params?.[name]; + assert.ok( + parameter && Object.hasOwn(parameter, 'value') && !parameter.sourceId && !parameter.sourceKey, + `Adapter control is not an exact literal: ${name}.`, + ); + return parameter.value; +}; + +function orderedChain(graph, owner) { + const byId = new Map(graph.nodes.map((node) => [node.key, node])); + const executed = new Set(graph.paths.flat()); + const source = owner.params?.lora_list; + if (!source?.sourceId) { + assert.ok( + !source || source.value == null || (Array.isArray(source.value) && source.value.length === 0), + 'Opaque adapter list is unsupported.', + ); + return []; + } + assert.equal(source.sourceKey, 'lora'); + assert.ok(!Object.hasOwn(source, 'value') || source.value === undefined); + const chain = []; + let id = source.sourceId; + while (id) { + assert.ok(chain.length < 32 && !chain.some((node) => node.key === id), 'Adapter chain is cyclic or oversized.'); + const node = byId.get(id); + assert.ok( + node && executed.has(id) && node.module === 'modules.ModularDiffusers' && node.action === 'Lora', + 'Adapter source is not an executed native Lora node.', + ); + chain.push(node); + const previous = node.params?.previous_loras; + if (previous?.sourceId) { + assert.equal(previous.sourceKey, 'lora'); + assert.ok(!Object.hasOwn(previous, 'value') || previous.value === undefined); + id = previous.sourceId; + } else { + assert.ok(!previous || previous.value == null, 'Opaque predecessor is unsupported.'); + id = null; + } + } + return chain.reverse(); +} + +function verifyOwnerOrder(graph, owner, application, models, strict) { + // Optional observations authenticate native state without newly imposing a + // literal Hub-chain requirement on ordinary historical qualification paths. + if (!strict) return; + const chain = orderedChain(graph, owner); + if (application.status !== 'complete') { + assert.ok(!strict, 'Applied adapter order is unavailable.'); + return; + } + assert.equal(application.adapters.length, chain.length, 'Applied adapter count differs from the executed chain.'); + const chainKeys = [...chain.map((node) => node.key), owner.key]; + assert.ok( + graph.paths.some((path) => + chainKeys.every( + (key, index) => path.includes(key) && (index === 0 || path.indexOf(chainKeys[index - 1]) < path.indexOf(key)), + ), + ), + 'Adapter producers were not executed before their owner.', + ); + for (let index = 0; index < chain.length; index++) { + const node = chain[index], + applied = application.adapters[index]; + const name = literal(node, 'adapter_name'); + assert.ok(text(name, 128), 'Generated adapter names need a separate original-name join.'); + assert.equal(applied.adapterName, name, 'Applied adapter order/name differs.'); + assert.equal(applied.scale, literal(node, 'scale'), 'Applied adapter scale differs.'); + const selected = literal(node, 'model'); + assert.ok(selected?.source === 'hub', 'Applied artifact proof currently requires a pinned Hub adapter.'); + same( + applied.artifact, + { + source: 'hub', + repository: selected.value, + revision: literal(node, 'revision'), + weightName: literal(node, 'weight_name'), + sha256: literal(node, 'expected_sha256'), + }, + 'Applied adapter artifact differs.', + ); + assert.ok( + models.some( + (item) => + item.repoId === applied.artifact.repository && + item.selectedRevision === applied.artifact.revision && + item.modelRevision === `${item.repoId}@${item.selectedRevision}`, + ), + 'Applied adapter is missing its installed immutable model observation.', + ); + const schedulerClass = literal(node, 'scheduler_class'); + if (schedulerClass === '') assert.equal(applied.scheduler, null, 'An unrequested adapter scheduler was applied.'); + else { + assert.equal(applied.scheduler?.className, schedulerClass); + assert.ok(!strict, 'Explicit scheduler normalization is outside the initial applied-order proof scope.'); + } + } +} + +export function validateAppliedAdapterProof(provenance, { required = false } = {}) { + const proof = provenance?.adapterApplications; + if (proof === undefined) { + assert.equal(provenance?.adapterApplicationsHash, undefined, 'Adapter proof hash has no observation.'); + assert.ok(!required, 'Original applied adapter order evidence is required.'); + return null; + } + keys(proof, ['schemaVersion', 'source', 'taskId', 'attemptIndex', 'outputNodeKey', 'truncated', 'owners']); + assert.equal(proof.schemaVersion, 1); + assert.equal(proof.source, 'backend-execution'); + assert.equal(proof.taskId, provenance.taskId); + assert.ok( + typeof proof.taskId === 'string' && + proof.taskId.length > 0 && + Number.isSafeInteger(proof.attemptIndex) && + proof.attemptIndex >= 0, + ); + assert.ok(typeof proof.truncated === 'boolean' && Array.isArray(proof.owners) && proof.owners.length <= 256); + assert.equal( + provenance.adapterApplicationsHash, + `sha256:adapter-applications-v1:${canonicalJsonHash(proof)}`, + 'Adapter proof digest differs.', + ); + const graph = provenance.graph.canonicalGraph; + const executed = new Set(graph.paths.flat()); + assert.ok(executed.has(proof.outputNodeKey), 'Adapter proof output was not executed.'); + const nodes = new Map(graph.nodes.map((node) => [node.key, node])); + const ancestors = new Set(); + const pending = [proof.outputNodeKey]; + while (pending.length) { + const key = pending.pop(); + if (ancestors.has(key)) continue; + assert.ok(nodes.has(key) && ancestors.size < 256, 'Adapter output ancestry is missing or oversized.'); + ancestors.add(key); + for (const parameter of Object.values(nodes.get(key).params ?? {})) { + if (parameter.sourceId) pending.push(parameter.sourceId); + } + } + const expectedOwners = graph.nodes.filter( + (node) => executed.has(node.key) && node.module === 'modules.ModularDiffusers' && node.action === 'ModelsLoader', + ); + const seen = new Set(); + for (const item of proof.owners) { + keys(item, ['nodeKey', 'application']); + const owner = expectedOwners.find((node) => node.key === item.nodeKey); + assert.ok( + owner && ancestors.has(item.nodeKey) && !seen.has(item.nodeKey), + 'Applied adapter owner is missing, detached or duplicated.', + ); + seen.add(item.nodeKey); + validateAppliedAdapterSection(item.application); + verifyOwnerOrder(graph, owner, item.application, provenance.models.items, required); + } + if (required) { + assert.equal(proof.truncated, false, 'Applied adapter ancestry is incomplete.'); + assert.ok( + expectedOwners.length > 0 && proof.owners.length === expectedOwners.length, + 'Applied adapter owners are incomplete.', + ); + } + return proof; +} + +export function createAppliedAdapterProof({ apiGraph, canonicalGraph, executedOutput, executionReceipt, taskId }) { + const consumed = executedOutput?.resolvedExecutionInputs; + if ( + consumed?.appliedAdaptersStatus === undefined && + !consumed?.nodes?.some((row) => row.appliedAdapters !== undefined) + ) + return null; + assert.equal(consumed.schemaVersion, 1, 'Applied adapter native receipt version is unsupported.'); + assert.equal(consumed.source, 'backend-execution'); + assert.equal(consumed.taskId, taskId); + assert.equal(executedOutput.taskId, taskId); + assert.equal(executionReceipt?.task_id, taskId, 'Applied adapter evidence requires the original task identity.'); + assert.equal(executionReceipt.status, 'completed'); + assert.equal(consumed.attemptIndex, executionReceipt.attempt_index); + assert.equal(consumed.attemptIndex, executedOutput.attemptIndex); + assert.equal(consumed.nodeId, executedOutput.nodeId); + same(apiGraph, executedOutput.apiGraphSnapshot, 'Applied adapter graph differs from the original output snapshot.'); + keys(consumed.appliedAdaptersStatus, ['schemaVersion', 'truncated']); + assert.equal(consumed.appliedAdaptersStatus.schemaVersion, 1); + assert.equal(typeof consumed.appliedAdaptersStatus.truncated, 'boolean'); + assert.equal(typeof consumed.truncated, 'boolean'); + assert.ok(Array.isArray(consumed.nodes) && consumed.nodes.length <= 256 && Array.isArray(consumed.uncapturedNodeIds)); + // Canonicalization preserves executed path order. Match that existing order; + // never rewrite the native receipt or manufacture an input/output graph. + const ids = [...new Set(apiGraph.paths.flat())]; + const canonicalIds = [...new Set(canonicalGraph.paths.flat())]; + assert.equal(ids.length, canonicalIds.length); + const idMap = new Map(ids.map((id, index) => [id, canonicalIds[index]])); + const owners = consumed.nodes + .filter((row) => row.appliedAdapters !== undefined) + .map((row) => { + assert.equal(row.module, 'modules.ModularDiffusers'); + assert.equal(row.action, 'ModelsLoader'); + assert.equal(apiGraph.nodes[row.nodeId]?.module, row.module); + assert.equal(apiGraph.nodes[row.nodeId]?.action, row.action); + assert.ok(idMap.has(row.nodeId), 'Adapter owner is outside executed ancestry.'); + return { nodeKey: idMap.get(row.nodeId), application: validateAppliedAdapterSection(row.appliedAdapters) }; + }); + const proof = { + schemaVersion: 1, + source: 'backend-execution', + taskId, + attemptIndex: consumed.attemptIndex, + outputNodeKey: idMap.get(consumed.nodeId), + truncated: consumed.truncated || consumed.uncapturedNodeIds.length > 0 || consumed.appliedAdaptersStatus.truncated, + owners, + }; + return { proof, hash: `sha256:adapter-applications-v1:${canonicalJsonHash(proof)}` }; +} diff --git a/scripts/bundle-budget.mjs b/scripts/bundle-budget.mjs index 4cc3a96b..794fb767 100644 --- a/scripts/bundle-budget.mjs +++ b/scripts/bundle-budget.mjs @@ -1,3 +1,8 @@ +// Bounded native field-accounting/applied-adapter parsing and explicit cache-release +// feedback measure largest/startup/deferred gzip 490492/668797/326749 versus +// accepted 488472/666779/326783. Add only measured startup growth 2020/2018, +// preserving 8/11 bytes of headroom. Dependencies, startup membership, minifier, +// loading boundaries and both deferred ceilings remain unchanged. // Explicit declared Experimental discovery measures largest/startup/deferred gzip // 488406/666710/326605 versus accepted 488399/666704/326318. Add only the // measured 287-byte deferred growth, retaining 152 bytes of aggregate headroom. @@ -225,6 +230,7 @@ const SOURCE_LICENSES = new URL('../public/THIRD_PARTY_LICENSES.txt', import.met // Add only those measured costs, preserving 8/11/152 bytes of existing headroom. // Dependencies, startup membership, lazy boundaries and the 64 KiB chunk cap stay fixed. const MAX_STARTUP_CHUNK_GZIP_BYTES = + 2020 + 66 + 189 + 55 + @@ -341,6 +347,7 @@ const MAX_STARTUP_CHUNK_GZIP_BYTES = // Preserve the separately measured 64-byte shared loading-policy allowance above. // Preserve the measured 384-byte selected-image authoring allowance above. const MAX_STARTUP_GZIP_BYTES = + 2018 + 69 + 190 + 53 + diff --git a/scripts/canonical-provenance-fixtures.mjs b/scripts/canonical-provenance-fixtures.mjs new file mode 100644 index 00000000..cff1f234 --- /dev/null +++ b/scripts/canonical-provenance-fixtures.mjs @@ -0,0 +1,441 @@ +// Protocol fixtures only: allocation, inference, runtime and media are mocked. +// Nothing produced here is native execution, hardware or release evidence. +import assert from 'node:assert/strict'; +import { spawnSync } from 'node:child_process'; +import { readFileSync } from 'node:fs'; +import { fileURLToPath } from 'node:url'; +import { createServer } from 'vite'; +import { sha256Value } from './live-proof-provenance.mjs'; +import { canonicalJsonHash } from './canonical-json.mjs'; + +const ROOT = fileURLToPath(new URL('../', import.meta.url)); +let ddim; +let applied; +export function actualAppliedAdapterFixtures() { + if (applied) return structuredClone(applied); + const backend = fileURLToPath(new URL('../../MoDiff/', import.meta.url)); + const python = + process.env.MODIFF_BACKEND_PYTHON || + `${backend}.venv/${process.platform === 'win32' ? 'Scripts/python.exe' : 'bin/python'}`; + const result = spawnSync( + python, + [ + '-B', + '-c', + String.raw` +import contextlib, io, json, sys +sys.path.insert(0, 'tests') +with contextlib.redirect_stdout(io.StringIO()): + from test_applied_adapter_provenance import actual_applied_adapter_fixture + values = {case: actual_applied_adapter_fixture(case) for case in ('activated', 'reused', 'empty', 'unavailable')} +print(json.dumps(values)) +`, + ], + { cwd: backend, encoding: 'utf8', maxBuffer: 2_000_000 }, + ); + assert.equal(result.status, 0, result.stderr); + applied = JSON.parse(result.stdout); + return structuredClone(applied); +} +export function mockedDdimAccountingFixture() { + if (ddim) return structuredClone(ddim); + const backend = fileURLToPath(new URL('../../MoDiff/', import.meta.url)); + const python = + process.env.MODIFF_BACKEND_PYTHON || + `${backend}.venv/${process.platform === 'win32' ? 'Scripts/python.exe' : 'bin/python'}`; + const result = spawnSync( + python, + [ + '-B', + '-c', + String.raw` +import importlib.util, json +from pathlib import Path +from pytest import MonkeyPatch +spec = importlib.util.spec_from_file_location('ddim_protocol', Path('tests/test_canonical_field_accounting.py')) +module = importlib.util.module_from_spec(spec) +spec.loader.exec_module(module) +with MonkeyPatch.context() as patch: + api = module.ddim_graph() + receipt, _, _, _ = module.run_ddim(patch, api) +graph = json.loads(Path('data/graphs/studio/ddim-pipeline/unconditional-image.json').read_text()) +print(json.dumps({'apiGraph': api, 'receipt': receipt, 'graph': graph})) +`, + ], + { cwd: backend, encoding: 'utf8', maxBuffer: 2_000_000 }, + ); + assert.equal(result.status, 0, result.stderr); + ddim = JSON.parse(result.stdout); + return structuredClone(ddim); +} + +export function protocolFactoryArguments(apiGraph, nodesPayload = {}) { + const pins = new Map(); + for (const node of Object.values(apiGraph.nodes)) { + for (const [key, parameter] of Object.entries(node.params)) { + if (parameter.value?.source === 'hub' && ['repo_id', 'model_id', 'model'].includes(key)) + pins.set(parameter.value.value, node.params.revision.value); + } + } + const source = { gitCommit: 'b'.repeat(40), files: [{ path: 'main.py', sha256: 'c'.repeat(64) }] }; + source.fingerprint = sha256Value('backend-source-v1', source); + const runtime = { + fingerprint: 'sha256:synthetic-protocol-runtime', + packages: { torch: 'synthetic-test-only' }, + torch: { version: 'synthetic-test-only' }, + work_dir: '/synthetic/work', + data_dir: '/synthetic/data', + backendSource: { + schemaVersion: 1, + claim: 'process_start_backend_source_identity', + gitCommit: source.gitCommit, + fingerprint: source.fingerprint, + fileCount: 1, + capturedAt: '2026-10-27T00:00:00.000Z', + }, + }; + return { + templateId: 'protocol-only', + lockedSettings: { seed: 42 }, + promptSettingsHash: 'protocol-settings', + catalogTemplateLockHash: 'protocol-catalog', + resolvedTemplateLockHash: 'protocol-resolved', + apiGraph, + nodesPayload, + modelIdentities: [...pins].map(([repoId, selectedRevision]) => ({ + repoId, + selectedRevision, + modelRevision: `${repoId}@${selectedRevision}`, + fingerprint: 'sha256:synthetic-protocol-model', + revisions: [], + })), + runtimeFingerprint: runtime, + backendSource: source, + outputAnalysis: { + analyses: [ + { + width: 32, + height: 32, + mediaType: 'image', + byteSize: 100, + encodedSha256: 'sha256:synthetic-encoded', + decodedSha256: 'sha256:synthetic-decoded', + }, + ], + }, + executedOutput: { mediaHash: 'sha256:bytes:synthetic', mediaItems: [{ mediaHash: 'sha256:bytes:synthetic' }] }, + executionReceipt: { runtimeMeasurement: { elapsedSeconds: 1, processRssBytes: 4096 } }, + taskId: 'protocol-only', + capturedAt: '1970-01-01T00:01:41.000Z', + }; +} + +export function canonicalHookCase() { + const { apiGraph, receipt } = mockedDdimAccountingFixture(); + const args = protocolFactoryArguments(apiGraph); + const loader = Object.values(apiGraph.nodes).find((node) => node.action === 'LoadPipeline'); + const target = { + modelType: 'DDIMPipeline', + task: 'unconditional_image', + modelSet: [{ repoId: loader.params.model_id.value.value, revision: loader.params.revision.value }], + }; + const task = { + task_id: receipt.taskId, + status: 'completed', + attempt_index: 0, + started_at: 100, + completed_at: 101, + runtimeFingerprint: args.runtimeFingerprint, + runtimeMeasurement: args.executionReceipt.runtimeMeasurement, + resourceCandidateId: null, + }; + const output = { + ...args.executedOutput, + id: 'protocol-output', + taskId: task.task_id, + attemptIndex: 0, + nodeId: receipt.nodeId, + fieldKey: 'preview', + workflowTabId: 'protocol-workflow', + clientRunId: 'protocol-run', + runInputHash: 'protocol-input', + apiGraphSnapshot: apiGraph, + resolvedExecutionInputs: receipt, + }; + return { + ...args, + taskId: task.task_id, + executedOutput: output, + executionReceipt: task, + canonicalAccountingProof: { + expectedApiGraph: structuredClone(apiGraph), + target, + run: { task, workflow_id: output.workflowTabId, outputs: [output] }, + }, + }; +} + +export function appliedOrderCase() { + const literal = (value) => ({ value }); + const adapters = [0, 1].map((scale, index) => ({ + adapterName: `protocol_${index}`, + scale, + descriptorSha256: String(index + 1).repeat(64), + artifact: { + source: 'hub', + repository: `protocol/adapter-${index}`, + revision: 'a'.repeat(40), + weightName: 'adapter.safetensors', + sha256: String(index + 4).repeat(64), + }, + scheduler: null, + })); + const nodes = Object.fromEntries( + adapters.map((item, index) => [ + `adapter-${index}`, + { + module: 'modules.ModularDiffusers', + action: 'Lora', + params: { + model: literal({ source: 'hub', value: item.artifact.repository }), + revision: literal(item.artifact.revision), + weight_name: literal(item.artifact.weightName), + expected_sha256: literal(item.artifact.sha256), + adapter_name: literal(item.adapterName), + scale: literal(item.scale), + scheduler_class: literal(''), + scheduler_config: literal('{}'), + previous_loras: index === 0 ? { display: 'input' } : { sourceId: 'adapter-0', sourceKey: 'lora' }, + }, + }, + ]), + ); + nodes.loader = { + module: 'modules.ModularDiffusers', + action: 'ModelsLoader', + params: { + repo_id: literal({ source: 'hub', value: 'protocol/base' }), + revision: literal('b'.repeat(40)), + model_type: literal('ProtocolModularPipeline'), + dtype: literal('float32'), + lora_list: { sourceId: 'adapter-1', sourceKey: 'lora' }, + }, + }; + nodes.preview = { + module: 'modules.Image', + action: 'Preview', + params: { + image: { sourceId: 'loader', sourceKey: 'images' }, + preview: { display: 'ui_image', sourceKey: 'output' }, + }, + }; + const apiGraph = { + nodes, + paths: [['adapter-0', 'adapter-1', 'loader', 'preview']], + runtimeHints: { + modelType: 'ProtocolModularPipeline', + dtype: 'float32', + offloadMode: 'none', + quantizationMode: 'none', + }, + }; + const args = protocolFactoryArguments(apiGraph); + const application = { + schemaVersion: 1, + status: 'complete', + source: 'backend-adapter-application', + applicationId: 'a'.repeat(32), + observation: 'activated', + adapters, + stateSha256: `sha256:applied-adapters-v1:${canonicalJsonHash({ adapters })}`, + }; + args.executedOutput = { + ...args.executedOutput, + taskId: args.taskId, + attemptIndex: 0, + nodeId: 'preview', + apiGraphSnapshot: structuredClone(apiGraph), + resolvedExecutionInputs: { + schemaVersion: 1, + source: 'backend-execution', + taskId: args.taskId, + attemptIndex: 0, + nodeId: 'preview', + nodes: [ + { + nodeId: 'loader', + module: 'modules.ModularDiffusers', + action: 'ModelsLoader', + fields: {}, + omittedFields: {}, + appliedAdapters: application, + }, + ], + summary: {}, + ambiguousFields: [], + unavailableFields: [], + uncapturedNodeIds: [], + truncated: false, + appliedAdaptersStatus: { schemaVersion: 1, truncated: false }, + }, + }; + args.executionReceipt = { ...args.executionReceipt, task_id: args.taskId, status: 'completed', attempt_index: 0 }; + return args; +} + +// Reuse the actual ten creator fixtures and normal exporter, with rejecting +// networking and ephemeral state. Grouped/ordinary vectors exercise both paths. +export async function legacyCreatorFactoryCases() { + const prior = new Map( + ['window', 'localStorage', 'fetch'].map((key) => [key, Object.getOwnPropertyDescriptor(globalThis, key)]), + ); + const storage = new Map(); + globalThis.localStorage = { + getItem: (key) => storage.get(key) ?? null, + setItem: (key, value) => storage.set(key, String(value)), + removeItem: (key) => storage.delete(key), + }; + globalThis.window = { + location: { origin: 'http://127.0.0.1:5191' }, + localStorage: globalThis.localStorage, + dispatchEvent: () => true, + }; + globalThis.fetch = () => { + throw new Error('Protocol creator fixtures cannot access the network.'); + }; + let server; + try { + server = await createServer({ + root: ROOT, + configFile: false, + logLevel: 'silent', + optimizeDeps: { entries: [], noDiscovery: true }, + // Only ephemeral ID allocation is deterministic; creator/export behavior + // and the resulting original graph inputs are not rewritten for the test. + ssr: { noExternal: ['nanoid'] }, + plugins: [ + { + name: 'protocol-fixture-ids', + enforce: 'pre', + resolveId: (id) => (id === 'nanoid' ? '\0protocol-fixture-ids' : null), + load: (id) => + id === '\0protocol-fixture-ids' + ? "let id = 0; export const nanoid = () => String(++id).padStart(12, '0');" + : null, + }, + ], + server: { middlewareMode: true, hmr: false, watch: null }, + appType: 'custom', + }); + const load = (name) => server.ssrLoadModule(`/src/${name}.ts`); + const [ + templates, + inputs, + selection, + operations, + catalog, + choices, + requests, + creator, + flow, + defaults, + exactness, + groups, + ] = await Promise.all( + [ + 'studio/templates', + 'studio/templateInputs', + 'studio/templateModelSelection', + 'workflow/operationContracts', + 'workflow/operationCatalog', + 'workflow/workflowChoices', + 'workflow/operationStarterRequest', + 'studio/templateOperationWorkflow', + 'stores/useFlowStore', + 'studio/modelProfiles', + 'studio/templateExactness', + 'workflow/visualOperationGroupProjection', + ].map(load), + ); + const fixture = JSON.parse( + readFileSync(new URL('../tests/fixtures/public-flux3-template-creators.v1.json', import.meta.url), 'utf8'), + ); + const payload = fixture.capabilitiesPayload; + const contracts = operations.parseOperationContracts( + payload.operationContracts, + payload.operationContractSchemaVersion, + ); + const support = catalog.parsePipelineSupport( + payload.pipelineSupport, + payload.pipelineSupportSchemaVersion, + contracts, + ); + const descriptors = choices.parseWorkflowModelDescriptors(payload, support); + const cases = []; + const cards = templates.PLANNING_STUDIO_TEMPLATES.filter((card) => /^flux3_klein(?:_base)?_fp8r512_/.test(card.id)); + assert.equal(cards.length, 10); + for (const card of cards) { + const { capability } = selection.resolveTemplateModelSelection(card, payload.capabilities); + const binding = card.executionSelection; + const spec = capability.studioExecutionSpecs.find( + (item) => item.mode === card.mode && item.executionProfileId === binding.executionProfileId, + ); + const source = fixture.starters.find( + (item) => + item.pipelineClass === binding.pipelineClass && + item.task === binding.task && + item.authoring.id === binding.authoringRecipeId && + item.authoring.executionProfileIds.includes(binding.executionProfileId), + ); + const starter = requests.parseOperationStarter( + structuredClone(source), + binding.pipelineClass, + binding.task, + contracts, + { executionProfileId: binding.executionProfileId, authoringRecipeId: binding.authoringRecipeId }, + ); + const device = starter.nodes.find((item) => item.node.action === 'ModelsLoader').node.params.device.value; + const assets = inputs + .resolveTemplateInputs(card) + .templateDefaultBindings.flatMap((binding) => binding.defaultAssets); + const form = { + ...defaults.DEFAULT_STUDIO_FORM, + ...exactness.getTemplateLockedSettings(card), + mode: card.mode, + modelType: card.modelType, + device, + referenceImages: assets.map((asset, index) => `unit-managed-inputs/${card.id}/${index}-${asset.fileName}`), + }; + const grouped = creator.createTemplateOperationGraph( + card, + form, + starter, + structuredClone(fixture.registry), + spec, + capability, + { workflowModelDescriptors: descriptors }, + ); + for (const [kind, graph] of [ + ['grouped', grouped], + ['ordinary', groups.unpackVisualOperationGroups(grouped).graph], + ]) { + const api = flow.useFlowStore + .getState() + .exportGraph('protocol-legacy', undefined, { sourceGraph: graph, randomizeSeeds: false }); + api.runtimeHints = { + workflowSnapshot: { ...structuredClone(graph), studioForm: form, studioGraphBinding: null }, + }; + const args = protocolFactoryArguments(api, { nodes: fixture.registry }); + args.templateId = card.id; + cases.push({ id: `${card.id}:${kind}`, args }); + } + } + return cases; + } finally { + await server?.close(); + for (const [key, descriptor] of prior) { + if (descriptor) Object.defineProperty(globalThis, key, descriptor); + else delete globalThis[key]; + } + } +} diff --git a/scripts/live-proof-provenance.mjs b/scripts/live-proof-provenance.mjs index a91f0709..ddd6334b 100644 --- a/scripts/live-proof-provenance.mjs +++ b/scripts/live-proof-provenance.mjs @@ -1,9 +1,12 @@ +import assert from 'node:assert/strict'; import { createHash } from 'node:crypto'; import { spawnSync } from 'node:child_process'; import { existsSync, readFileSync, readdirSync, realpathSync, statSync } from 'node:fs'; import path from 'node:path'; import { normalizeResourceRouteBinding, resourceRouteBindingHash } from './resource-route-binding.mjs'; +import { createAppliedAdapterProof, validateAppliedAdapterProof } from './applied-adapter-provenance.mjs'; +export { validateAppliedAdapterProof } from './applied-adapter-provenance.mjs'; export const LIVE_PROOF_PROVENANCE_SCHEMA_VERSION = 2; export const LIVE_PROOF_PROVENANCE_FORMAT = 'modiff.live-proof.provenance.v2'; @@ -115,6 +118,9 @@ export function liveProofLockHash(provenance) { deterministicFingerprint: provenance?.runtime?.deterministic?.fingerprint, outputCollectionHash: provenance?.output?.collectionHash, ...(provenance?.routeBindingHash ? { routeBindingHash: provenance.routeBindingHash } : {}), + ...(provenance?.adapterApplicationsHash !== undefined + ? { adapterApplicationsHash: provenance.adapterApplicationsHash } + : {}), }; return sha256Value('live-proof-lock-v1', proofLock); } @@ -1136,6 +1142,11 @@ function outputIdentity(outputAnalysis, executedOutput) { export function validateRunProvenance(provenance) { const blockers = []; + try { + validateAppliedAdapterProof(provenance); + } catch (error) { + blockers.push(`Applied adapter evidence is invalid: ${error.message}`); + } const required = [ ['template.resolvedTemplateLockHash', provenance?.template?.resolvedTemplateLockHash], ['template.revisionHash', provenance?.template?.revisionHash], @@ -1274,6 +1285,430 @@ export function validateRunProvenance(provenance) { return blockers; } +const same = (actual, expected, label) => assert.equal(stableStringify(actual), stableStringify(expected), label); +const immutableRevision = (value) => typeof value === 'string' && /^[a-f0-9]{40,64}$/i.test(value); + +const accountingFields = { + LoadPipeline: `model_id pipeline_class mode revision conditioning_kind conditioning_model_id conditioning_revision + dtype device quantization_mode quantized_components device_map auto_offload offload_mode enable_vae_slicing + enable_vae_tiling low_cpu_mem_usage`.split(/\s+/u), + PipelineQuantizationConfigV2: 'backend components dtype excluded_modules component_overrides'.split(' '), + DiffusersExecutionRecipe: `device_map max_memory device_map_overrides offload_mode device attention_backend + attention_components vae_slicing vae_tiling layerwise_casting layerwise_casting_components layerwise_storage_dtype + layerwise_compute_dtype channels_last channels_last_components regional_compile compile_components compile_backend + compile_mode compile_fullgraph compile_dynamic denoiser_cache cache_threshold cache_options`.split(/\s+/u), + UnconditionalGenerate: 'image_contract batch_size seed num_inference_steps eta class_label output_type'.split(' '), + Preview: ['device', 'export'], +}; +const accountingModules = { + LoadPipeline: 'modules.DiffusersImage', + UnconditionalGenerate: 'modules.DiffusersImage', + PipelineQuantizationConfigV2: 'modules.DiffusersRuntime', + DiffusersExecutionRecipe: 'modules.DiffusersRuntime', + Preview: 'modules.Image', +}; +const accountingScalar = (value) => + value === null || + typeof value === 'boolean' || + (typeof value === 'string' && value.length <= 16_384) || + (typeof value === 'number' && Number.isFinite(value) && Math.abs(value) <= Number.MAX_SAFE_INTEGER); +const accountingValue = (value) => + accountingScalar(value) || (Array.isArray(value) && value.length <= 16 && value.every(accountingScalar)); +function accountingKeys(value, keys, label) { + assert.ok(value && typeof value === 'object' && !Array.isArray(value), label); + same(Object.keys(value).sort(), [...keys].sort(), label); +} +// The backend hashes sorted ASCII JSON, separately from existing v1 hashes. +function accountingDigest(kind, value) { + const ordered = (item) => + Array.isArray(item) + ? item.map(ordered) + : item && typeof item === 'object' + ? Object.fromEntries( + Object.keys(item) + .sort() + .map((key) => [key, ordered(item[key])]), + ) + : item; + const ascii = JSON.stringify(ordered(value)).replace( + /[\u007f-\uffff]/g, + (character) => `\\u${character.charCodeAt(0).toString(16).padStart(4, '0')}`, + ); + return createHash('sha256').update(`${kind}\n${ascii}`, 'ascii').digest('hex'); +} + +/** Independent accounting join; not a provenance factory or release grant. + * Initial scope is the existing five-node, unquantized DDIM canonical creator. + * The optional shared-factory hook binds this join to the original task/output. + * Native acceptance remains separate; the default factory path stays unchanged. + */ +export function canonicalAccountingExecutionPlan({ expectedApiGraph, apiGraph, consumed, target }) { + same( + canonicalGraphIdentity(apiGraph), + canonicalGraphIdentity(expectedApiGraph), + 'Accounting graph is not the canonical export.', + ); + assert.equal(target.modelType, 'DDIMPipeline', 'Canonical accounting model is outside the reviewed initial scope.'); + assert.equal(target.task, 'unconditional_image'); + assert.ok( + !apiGraph.runtimeHints || Object.keys(apiGraph.runtimeHints).length === 0, + 'Declared runtime hints need a separate accounting policy.', + ); + assert.equal(consumed?.schemaVersion, 1); + assert.equal(consumed.source, 'backend-execution'); + assert.equal(consumed.truncated, false); + same(consumed.uncapturedNodeIds, [], 'Accounting ancestry is incomplete.'); + same(consumed.fieldAccountingStatus, { schemaVersion: 1, truncated: false }, 'Accounting extension is incomplete.'); + assert.ok(Array.isArray(consumed.nodes) && consumed.nodes.length === 5, 'Exact five-node accounting is required.'); + assert.equal(new Set(consumed.nodes.map((row) => row.nodeId)).size, 5, 'Accounting owner identities are ambiguous.'); + same( + consumed.nodes.map((row) => row.nodeId).sort(), + Object.keys(apiGraph.nodes).sort(), + 'Accounting graph scope differs.', + ); + assert.ok(Array.isArray(apiGraph.paths) && apiGraph.paths.length === 1, 'One executed canonical path is required.'); + same([...apiGraph.paths[0]].sort(), Object.keys(apiGraph.nodes).sort(), 'Accounting contains an unexecuted owner.'); + const byAction = new Map(); + for (const row of consumed.nodes) { + const node = apiGraph.nodes[row.nodeId]; + assert.ok(Object.hasOwn(accountingFields, row.action), 'Unknown accounting action.'); + assert.equal(row.module, accountingModules[row.action], 'Unknown accounting module.'); + assert.equal(node.module, row.module); + assert.equal(node.action, row.action); + assert.ok(!byAction.has(row.action), 'Accounting owner is not unique.'); + byAction.set(row.action, { row, node }); + same(row.omittedFields, {}, 'Legacy consumed fields were omitted.'); + const section = row.fieldAccounting; + accountingKeys( + section, + [ + 'schemaVersion', + 'fields', + 'inputProjections', + 'outputProjections', + 'unaccountedFields', + 'omittedFields', + 'complete', + ], + 'Unknown or missing accounting section keys.', + ); + assert.equal(section.schemaVersion, 1); + assert.equal(section.complete, true, 'Incomplete field accounting.'); + same(section.omittedFields, {}, 'Accounting fields were omitted.'); + same(section.unaccountedFields, [], 'Unaccounted graph fields remain.'); + assert.ok(JSON.stringify(section).length <= 65_536, 'Accounting section exceeds its bound.'); + accountingKeys(section.fields, accountingFields[row.action], 'Accounting literal field set differs.'); + for (const [key, field] of Object.entries(section.fields)) { + const parameter = node.params[key]; + assert.ok( + parameter && Object.hasOwn(parameter, 'value') && !parameter.sourceId && !parameter.sourceKey, + `Accounting literal origin differs: ${row.nodeId}.${key}`, + ); + assert.equal(field.source, 'literal', 'Connected or overridden scalar accounting is unsupported.'); + if (field.disposition === 'metadata') { + accountingKeys(field, ['disposition', 'source', 'reason', 'sha256'], 'Unexpected metadata fields.'); + assert.equal(key, 'image_contract'); + assert.equal(field.reason, 'presentation-contract'); + assert.equal( + field.sha256, + accountingDigest('image-contract-v1', parameter.value), + 'Metadata contract hash differs.', + ); + } else { + accountingKeys( + field, + ['disposition', 'inputValue', 'value', 'source', ...(field.disposition === 'consumed' ? [] : ['reason'])], + 'Unexpected accounted scalar fields.', + ); + assert.ok( + ['consumed', 'inactive', 'superseded'].includes(field.disposition), + 'Unknown accounting disposition.', + ); + assert.ok(accountingValue(field.inputValue) && accountingValue(field.value), 'Unbounded accounting scalar.'); + const requested = parameter.value?.source === 'hub' ? parameter.value.value : parameter.value; + same(field.inputValue, requested, `Requested literal differs: ${row.nodeId}.${key}`); + } + } + for (const [key, parameter] of Object.entries(node.params)) { + if (Object.hasOwn(parameter, 'value') && !parameter.sourceId) + assert.ok(Object.hasOwn(section.fields, key), `Unaccounted literal: ${row.nodeId}.${key}`); + } + for (const [key, field] of Object.entries(row.fields)) { + assert.equal(field.source, 'literal', 'Legacy scalar origin differs.'); + accountingKeys(field, ['value', 'source'], 'Legacy scalar has contradictory origin fields.'); + if (key === 'executed_task') { + assert.equal(row.action, 'UnconditionalGenerate'); + assert.equal(field.value, target.task); + continue; + } + const accounted = section.fields[key]; + assert.ok(accounted && accounted.disposition !== 'metadata', `Legacy scalar lacks accounting: ${key}`); + let expected = row.action === 'LoadPipeline' ? accounted.inputValue : accounted.value; + if (key === 'seed' && Number.isSafeInteger(expected) && typeof field.value === 'string') + expected = String(expected); + same(field.value, expected, `Legacy/new accounting contradicts: ${row.nodeId}.${key}`); + } + } + const owner = byAction.get('LoadPipeline'); + const recipe = byAction.get('DiffusersExecutionRecipe'); + const quant = byAction.get('PipelineQuantizationConfigV2'); + const generate = byAction.get('UnconditionalGenerate'); + const preview = byAction.get('Preview'); + assert.ok(owner && recipe && quant && generate && preview, 'Canonical accounting roles are incomplete.'); + assert.equal(consumed.nodeId, preview.row.nodeId, 'Accounting output owner differs.'); + const fields = (entry) => entry.row.fieldAccounting.fields; + const value = (entry, key) => fields(entry)[key].value; + const check = (entry, key, disposition, effective, reason) => { + const field = fields(entry)[key]; + assert.equal(field.disposition, disposition, `Wrong disposition: ${entry.row.nodeId}.${key}`); + assert.equal(field.reason, reason, `Wrong disposition reason: ${entry.row.nodeId}.${key}`); + same(field.value, effective, `Effective control differs: ${entry.row.nodeId}.${key}`); + }; + const wires = new Map([ + [owner.row.nodeId, { execution_recipe: [recipe, 'execution_recipe'] }], + [recipe.row.nodeId, { quantization_config: [quant, 'quantization_config'] }], + [generate.row.nodeId, { pipeline: [owner, 'pipeline'] }], + [preview.row.nodeId, { image: [generate, 'images'] }], + [quant.row.nodeId, {}], + ]); + for (const entry of byAction.values()) { + const expected = wires.get(entry.row.nodeId); + // The normal exporter also retains Preview's UI output selector. It has + // no source node and is never an execution input or producer connection. + for (const [key, parameter] of Object.entries(entry.node.params)) { + if (!parameter.sourceId && parameter.sourceKey) { + assert.equal(entry, preview, 'A dangling input port is not accounted.'); + assert.equal(key, 'preview'); + same(parameter, { display: 'ui_image', sourceKey: 'output' }, 'Unknown output selector.'); + } + } + const connected = Object.entries(entry.node.params).filter(([, parameter]) => parameter.sourceId); + same(connected.map(([key]) => key).sort(), Object.keys(expected).sort(), 'Unexpected connected runtime input.'); + for (const [key, [producer, port]] of Object.entries(expected)) { + const parameter = entry.node.params[key]; + assert.equal(parameter.sourceId, producer.row.nodeId, 'Connected producer differs.'); + assert.equal(parameter.sourceKey, port, 'Connected producer port differs.'); + assert.ok(!Object.hasOwn(parameter, 'value'), 'Connected input also declares a literal.'); + assert.ok( + apiGraph.paths[0].indexOf(producer.row.nodeId) < apiGraph.paths[0].indexOf(entry.row.nodeId), + 'Producer was not executed before its consumer.', + ); + } + } + const disabled = { backend: 'none', disabled: true }; + const recipeValues = { schema_version: 1, quantization: 'none', device_map_strategy: value(recipe, 'device_map') }; + const componentFields = new Set([ + 'attention_components', + 'layerwise_casting_components', + 'channels_last_components', + 'compile_components', + ]); + for (const key of accountingFields.DiffusersExecutionRecipe.filter((key) => key !== 'device_map_overrides')) { + const item = value(recipe, key); + if (componentFields.has(key)) { + assert.ok(typeof item === 'string' || (Array.isArray(item) && item.every((part) => typeof part === 'string'))); + recipeValues[key] = [ + ...new Set( + (Array.isArray(item) ? item : item.replaceAll('\n', ',').split(',')) + .map((part) => part.trim()) + .filter(Boolean), + ), + ]; + } else recipeValues[key] = item; + } + for (const key of ['max_memory', 'cache_options', 'device_map_overrides']) + assert.equal(value(recipe, key), '{}', 'Mapping or cache configuration is outside the bounded accounting scope.'); + assert.equal(value(recipe, 'device_map'), 'none', 'Split/manual placement is outside the bounded accounting scope.'); + assert.equal(value(recipe, 'offload_mode'), 'none', 'Offload accounting needs a separate reviewed scope.'); + const projection = (item, kind, values, producer) => { + accountingKeys( + item, + ['kind', 'values', 'sha256', ...(producer ? ['source', 'sourceNodeId', 'sourcePortId'] : [])], + 'Projection shape differs.', + ); + assert.equal(item.kind, kind); + same(item.values, values, 'Projection differs from actual producer controls.'); + assert.equal(item.sha256, accountingDigest(kind, values), 'Projection hash differs.'); + if (producer) { + assert.equal(item.source, 'connected'); + assert.equal(item.sourceNodeId, producer[0].row.nodeId); + assert.equal(item.sourcePortId, producer[1]); + } + }; + for (const entry of byAction.values()) { + const section = entry.row.fieldAccounting; + const inputPort = entry === owner ? 'execution_recipe' : entry === recipe ? 'quantization_config' : null; + const outputPort = entry === recipe ? 'execution_recipe' : entry === quant ? 'quantization_config' : null; + accountingKeys(section.inputProjections, inputPort ? [inputPort] : [], 'Unexpected input projections.'); + accountingKeys(section.outputProjections, outputPort ? [outputPort] : [], 'Unexpected output projections.'); + if (inputPort) + projection( + section.inputProjections[inputPort], + entry === owner ? 'execution-recipe-v1' : 'disabled-quantization-v1', + entry === owner ? recipeValues : disabled, + entry === owner ? [recipe, inputPort] : [quant, inputPort], + ); + if (outputPort) + projection( + section.outputProjections[outputPort], + entry === recipe ? 'execution-recipe-v1' : 'disabled-quantization-v1', + entry === recipe ? recipeValues : disabled, + ); + } + assert.equal(value(quant, 'backend'), 'none', 'Enabled quantization is unsupported.'); + for (const key of accountingFields.PipelineQuantizationConfigV2) + check( + quant, + key, + ['dtype', 'excluded_modules'].includes(key) ? 'inactive' : 'consumed', + fields(quant)[key].inputValue, + ['dtype', 'excluded_modules'].includes(key) ? 'feature-disabled' : undefined, + ); + const inactiveRecipe = new Set(['device_map_overrides']); + for (const [enabled, keys] of [ + [ + value(recipe, 'layerwise_casting'), + ['layerwise_casting_components', 'layerwise_storage_dtype', 'layerwise_compute_dtype'], + ], + [value(recipe, 'channels_last'), ['channels_last_components']], + [ + value(recipe, 'regional_compile'), + ['compile_components', 'compile_backend', 'compile_mode', 'compile_fullgraph', 'compile_dynamic'], + ], + [value(recipe, 'denoiser_cache') !== 'none', ['cache_threshold', 'cache_options']], + ]) + if (!enabled) for (const key of keys) inactiveRecipe.add(key); + for (const key of accountingFields.DiffusersExecutionRecipe) + check( + recipe, + key, + inactiveRecipe.has(key) ? 'inactive' : 'consumed', + fields(recipe)[key].inputValue, + inactiveRecipe.has(key) ? 'feature-disabled' : undefined, + ); + const superseded = { + device: 'device', + offload_mode: 'offload_mode', + auto_offload: 'offload_mode', + enable_vae_slicing: 'vae_slicing', + enable_vae_tiling: 'vae_tiling', + }; + for (const key of accountingFields.LoadPipeline) { + if (Object.hasOwn(superseded, key)) { + const effective = + key === 'auto_offload' ? value(recipe, 'offload_mode') !== 'none' : value(recipe, superseded[key]); + check(owner, key, 'superseded', effective, 'connected-recipe'); + } else if (key === 'device_map' && ['cuda', 'cuda:0'].includes(value(owner, 'device'))) { + assert.equal(fields(owner)[key].inputValue, 'none'); + check(owner, key, 'superseded', 'cuda', 'loader-normalization'); + } else if (['conditioning_model_id', 'conditioning_revision'].includes(key)) { + check(owner, key, 'inactive', fields(owner)[key].inputValue, 'adapter-inactive'); + } else check(owner, key, 'consumed', fields(owner)[key].inputValue); + } + assert.equal(value(owner, 'pipeline_class'), target.modelType); + assert.equal(value(owner, 'mode'), target.task); + assert.equal(value(owner, 'conditioning_kind'), 'none'); + assert.equal(value(owner, 'quantization_mode'), 'none'); + same(value(owner, 'quantized_components'), [], 'Quantized components are unsupported.'); + assert.ok(immutableRevision(value(owner, 'revision')), 'Executed loader pin is unresolved.'); + same( + [{ repoId: value(owner, 'model_id'), revision: value(owner, 'revision') }], + target.modelSet, + 'Executed model set differs.', + ); + for (const key of accountingFields.UnconditionalGenerate) { + if (key === 'image_contract') { + assert.equal(fields(generate)[key].disposition, 'metadata'); + continue; + } + check( + generate, + key, + key === 'class_label' ? 'inactive' : 'consumed', + fields(generate)[key].inputValue, + key === 'class_label' ? 'adapter-inactive' : undefined, + ); + } + assert.equal(value(generate, 'output_type'), 'pil', 'Only already-decoded output is accounted.'); + check(preview, 'device', 'inactive', fields(preview).device.inputValue, 'already-decoded-image'); + check(preview, 'export', 'consumed', fields(preview).export.inputValue); + const plan = { + source: 'executed-canonical-accounting-v1', + resourceMode: 'expert', + resolvedResourceMode: 'expert', + modelType: target.modelType, + pipelineClass: value(owner, 'pipeline_class'), + modelRepo: value(owner, 'model_id'), + resolvedModelRepo: value(owner, 'model_id'), + resolvedArtifact: value(owner, 'model_id'), + dtype: value(owner, 'dtype'), + device: value(owner, 'device'), + deviceMap: value(owner, 'device_map'), + autoOffload: value(owner, 'auto_offload'), + offloadMode: value(owner, 'offload_mode'), + quantizationMode: 'none', + quantizedComponents: [], + attentionBackend: recipeValues.attention_backend, + regionalCompile: recipeValues.regional_compile, + denoiserCache: recipeValues.denoiser_cache, + channelsLast: recipeValues.channels_last, + layerwiseCasting: recipeValues.layerwise_casting, + }; + return { ownerId: owner.row.nodeId, plan, hash: sha256Value('execution-plan-v1', plan) }; +} + +function canonicalAccountingProofPlan({ apiGraph, executedOutput, executionReceipt, taskId, proof }) { + accountingKeys( + proof, + ['expectedApiGraph', 'target', 'run'], + 'Canonical proof accepts original evidence, not a supplied plan.', + ); + const { run, target, expectedApiGraph } = proof; + const task = run?.task; + assert.ok(typeof taskId === 'string' && taskId.length > 0, 'Canonical task identity is missing.'); + assert.equal(task?.task_id, taskId, 'Canonical proof belongs to another task.'); + assert.equal(task.status, 'completed', 'Canonical task is not completed.'); + assert.equal(task.attempt_index, 0, 'Canonical retries are outside the reviewed scope.'); + same(task, executionReceipt, 'Canonical raw task differs from the measured task.'); + assert.ok(task.resourceCandidateId == null, 'Canonical Expert task retains an Auto resource candidate.'); + assert.ok( + !task.runtimeHints || Object.keys(task.runtimeHints).length === 0, + 'Canonical task contains unreviewed runtime hints.', + ); + assert.ok( + executedOutput && typeof executedOutput.id === 'string' && executedOutput.id.length > 0, + 'Canonical output is missing.', + ); + assert.equal(executedOutput.taskId, taskId, 'Canonical output belongs to another task.'); + assert.equal(executedOutput.attemptIndex, 0, 'Canonical output attempt differs.'); + assert.ok(typeof executedOutput.workflowTabId === 'string' && executedOutput.workflowTabId.length > 0); + assert.equal(run.workflow_id, executedOutput.workflowTabId, 'Canonical output belongs to another workflow.'); + const persisted = (run.outputs ?? []).filter((item) => item.id === executedOutput.id && item.taskId === taskId); + assert.equal(persisted.length, 1, 'Canonical output is not uniquely present in the raw task.'); + for (const key of [ + 'taskId', + 'clientRunId', + 'runInputHash', + 'workflowTabId', + 'attemptIndex', + 'nodeId', + 'fieldKey', + 'apiGraphSnapshot', + 'resolvedExecutionInputs', + 'mediaHash', + 'mediaItems', + ]) { + assert.notEqual(executedOutput[key], undefined, `Canonical output is missing ${key}.`); + same(executedOutput[key], persisted[0][key], `Canonical original output ${key} differs.`); + } + same(apiGraph, executedOutput.apiGraphSnapshot, 'Canonical factory graph differs from the original output.'); + const consumed = executedOutput.resolvedExecutionInputs; + assert.equal(consumed?.taskId, taskId, 'Canonical consumed receipt belongs to another task.'); + assert.equal(consumed.attemptIndex, 0, 'Canonical consumed receipt attempt differs.'); + assert.equal(consumed.nodeId, executedOutput.nodeId, 'Canonical consumed receipt output owner differs.'); + return canonicalAccountingExecutionPlan({ expectedApiGraph, apiGraph, consumed, target }); +} + export function createRunProvenance({ templateId, lockedSettings, @@ -1293,6 +1728,7 @@ export function createRunProvenance({ executionReceipt, taskId, expectedOutput, + canonicalAccountingProof, capturedAt = new Date().toISOString(), }) { const rawRouteBinding = apiGraph?.provenance?.registeredBlockV2RouteBinding; @@ -1300,13 +1736,50 @@ export function createRunProvenance({ rawRouteBinding === undefined || rawRouteBinding === null ? null : normalizeResourceRouteBinding(rawRouteBinding); const routeBindingHash = routeBinding ? resourceRouteBindingHash(routeBinding) : null; const graph = canonicalGraphIdentity(apiGraph); - const executionPlan = executionPlanIdentity(apiGraph); + const adapterApplications = createAppliedAdapterProof({ + apiGraph, + canonicalGraph: graph.canonicalGraph, + executedOutput, + executionReceipt, + taskId, + }); + const executionPlan = + canonicalAccountingProof === undefined + ? executionPlanIdentity(apiGraph) + : canonicalAccountingProofPlan({ + apiGraph, + executedOutput, + executionReceipt, + taskId, + proof: canonicalAccountingProof, + }); const execution = executionReceiptIdentity(executionReceipt, executionPlan.plan); const runtime = normalizeBackendRuntime(runtimeFingerprint, deterministicMode); const backendSourceAttestation = processBackendSourceAttestation(runtimeFingerprint); const backendContract = backendContractIdentity(nodesPayload, graph.canonicalGraph); const deterministic = deterministicIdentity(deterministicMode); const modelSet = modelSetIdentity(modelIdentities?.length ? modelIdentities : [modelIdentity].filter(Boolean)); + if (canonicalAccountingProof !== undefined) { + same( + modelSet.items + .map((item) => ({ repoId: item.repoId, revision: item.selectedRevision })) + .sort((left, right) => left.repoId.localeCompare(right.repoId)), + canonicalAccountingProof.target.modelSet, + 'Canonical installed model identity differs from the executed model owner.', + ); + same(runtimeFingerprint, executionReceipt.runtimeFingerprint, 'Canonical runtime differs from the raw task.'); + assert.ok( + Number.isFinite(executionReceipt.started_at) && + Number.isFinite(executionReceipt.completed_at) && + executionReceipt.completed_at >= executionReceipt.started_at, + 'Canonical task duration is missing.', + ); + assert.equal( + capturedAt, + new Date(executionReceipt.completed_at * 1000).toISOString(), + 'Canonical completion time differs.', + ); + } const compatibilityModel = modelSet.count === 1 ? modelSet.items[0] @@ -1343,6 +1816,7 @@ export function createRunProvenance({ deterministicFingerprint: deterministic.fingerprint, outputCollectionHash: output.collectionHash, ...(routeBindingHash ? { routeBindingHash } : {}), + ...(adapterApplications ? { adapterApplicationsHash: adapterApplications.hash } : {}), }; const firstOutput = output.items[0] ?? {}; const provenance = { @@ -1372,6 +1846,9 @@ export function createRunProvenance({ sampleRate: firstOutput.sampleRate ?? null, channels: firstOutput.channels ?? null, ...(routeBinding ? { routeBinding, routeBindingHash } : {}), + ...(adapterApplications + ? { adapterApplications: adapterApplications.proof, adapterApplicationsHash: adapterApplications.hash } + : {}), template: { ...template, expectedOutput: diff --git a/scripts/live-qwen-proof.test.mjs b/scripts/live-qwen-proof.test.mjs index 1f2905e9..caf77ed2 100644 --- a/scripts/live-qwen-proof.test.mjs +++ b/scripts/live-qwen-proof.test.mjs @@ -1,3 +1,5 @@ +import { appliedOrderCase, canonicalHookCase, legacyCreatorFactoryCases } from './canonical-provenance-fixtures.mjs'; +import { canonicalJsonHash } from './canonical-json.mjs'; import assert from 'node:assert/strict'; import { spawnSync } from 'node:child_process'; import { EventEmitter } from 'node:events'; @@ -31,11 +33,146 @@ import { selectBackendRuntimeFingerprintEvidence, selectInstalledModelIdentity, sha256Value, + stableStringify, validateRunProvenance, + validateAppliedAdapterProof, } from './live-proof-provenance.mjs'; const ROOT = resolve(dirname(fileURLToPath(import.meta.url)), '..'); +test('optional native applied adapter proof locks exact order and distinguishes reuse without changing historical requirements', () => { + const args = appliedOrderCase(); + const before = JSON.stringify(args); + const proof = createRunProvenance(args); + assert.deepEqual(proof.blockers, []); + const application = validateAppliedAdapterProof(proof, { required: true }).owners[0].application; + assert.deepEqual( + application.adapters.map((item) => [item.adapterName, item.scale]), + [ + ['protocol_0', 0], + ['protocol_1', 1], + ], + ); + assert.equal(application.observation, 'activated'); + assert.equal(JSON.stringify(args), before); + args.executedOutput.resolvedExecutionInputs.nodes[0].appliedAdapters.observation = 'reused'; + const reused = createRunProvenance(args); + const observed = validateAppliedAdapterProof(reused, { required: true }).owners[0].application; + assert.equal(observed.applicationId, application.applicationId); + assert.equal(observed.stateSha256, application.stateSha256); + assert.equal(observed.observation, 'reused'); + assert.notEqual(reused.adapterApplicationsHash, proof.adapterApplicationsHash); + const historical = appliedOrderCase(); + delete historical.executedOutput.resolvedExecutionInputs; + const old = createRunProvenance(historical); + assert.deepEqual(old.blockers, []); + assert.equal(old.adapterApplications, undefined); + assert.equal(validateAppliedAdapterProof(old), null); + assert.throws( + () => validateAppliedAdapterProof(old, { required: true }), + /Original applied adapter order evidence is required/, + ); + const unavailable = appliedOrderCase(); + unavailable.executedOutput.resolvedExecutionInputs.nodes[0].appliedAdapters = { + schemaVersion: 1, + status: 'unavailable', + reason: 'unobserved-application', + }; + const incomplete = createRunProvenance(unavailable); + assert.deepEqual(incomplete.blockers, []); + assert.throws(() => validateAppliedAdapterProof(incomplete, { required: true }), /unavailable/); +}); + +test('applied adapter proof rejects valid-digest order, scale, artifact and owner forgeries', () => { + const mutations = { + order: (args, app) => { + app.adapters.reverse(); + }, + scale: (args, app) => { + app.adapters[0].scale = 1; + }, + artifact: (args, app) => { + app.adapters[0].artifact.sha256 = 'c'.repeat(64); + }, + revision: (args, app) => { + app.adapters[0].artifact.revision = 'c'.repeat(40); + }, + scheduler: (args, app) => { + app.adapters[0].scheduler = { className: 'Unknown', configSha256: `sha256:${'a'.repeat(64)}` }; + }, + owner: (args) => { + args.executedOutput.resolvedExecutionInputs.nodes[0].nodeId = 'adapter-0'; + }, + task: (args) => { + args.executionReceipt.task_id = 'other'; + }, + 'missing native version': (args) => { + delete args.executedOutput.resolvedExecutionInputs.schemaVersion; + }, + 'unknown native version': (args) => { + args.executedOutput.resolvedExecutionInputs.schemaVersion = 2; + }, + snapshot: (args) => { + args.executedOutput.apiGraphSnapshot.nodes['adapter-0'].params.scale.value = 0.5; + }, + attempt: (args) => { + args.executedOutput.attemptIndex = 1; + }, + model: (args) => { + args.modelIdentities[0].selectedRevision = 'c'.repeat(40); + }, + duplicate: (args, app) => { + app.adapters[1].adapterName = app.adapters[0].adapterName; + }, + unknown: (args, app) => { + app.path = '/private'; + }, + detached: (args) => { + args.apiGraph.nodes.loader.params.lora_list.sourceId = 'adapter-0'; + }, + unexecuted: (args) => { + args.apiGraph.paths[0] = ['loader', 'preview']; + }, + cycle: (args) => { + args.apiGraph.nodes['adapter-0'].params.previous_loras = { sourceId: 'adapter-1', sourceKey: 'lora' }; + }, + }; + for (const [label, mutate] of Object.entries(mutations)) { + const args = appliedOrderCase(); + const app = args.executedOutput.resolvedExecutionInputs.nodes[0].appliedAdapters; + mutate(args, app); + app.stateSha256 = `sha256:applied-adapters-v1:${canonicalJsonHash({ adapters: app.adapters })}`; + assert.throws( + () => { + const proof = createRunProvenance(args); + assert.deepEqual(proof.blockers, []); + validateAppliedAdapterProof(proof, { required: true }); + }, + undefined, + label, + ); + } + const forged = createRunProvenance(appliedOrderCase()); + forged.adapterApplications.owners[0].application.observation = 'reused'; + assert.ok(validateRunProvenance(forged).some((blocker) => /adapter/i.test(blocker))); +}); + +test('optional applied observations do not impose explicit order-case requirements on existing template proofs', () => { + const args = appliedOrderCase(); + // Existing generated adapter names are a supported loader behavior. The + // observation remains retainable; the new strict literal-order case is held. + args.apiGraph.nodes['adapter-0'].params.adapter_name.value = ''; + args.executedOutput.apiGraphSnapshot = structuredClone(args.apiGraph); + const proof = createRunProvenance(args); + assert.deepEqual(proof.blockers, []); + assert.ok(validateAppliedAdapterProof(proof)); + assert.throws(() => validateAppliedAdapterProof(proof, { required: true }), /Generated adapter names/); + const detached = appliedOrderCase(); + detached.apiGraph.nodes.preview.params.image = { value: 'unrelated' }; + detached.executedOutput.apiGraphSnapshot = structuredClone(detached.apiGraph); + assert.ok(createRunProvenance(detached).blockers.some((blocker) => /detached/.test(blocker))); +}); + test('backend Git identity accepts only its exact repository and linked worktree', () => { const temporary = mkdtempSync(resolve(tmpdir(), 'modiff-exact-git-root-')); const repository = resolve(temporary, 'repository'); @@ -905,3 +1042,116 @@ test('qualification provenance rejects output dimensions that violate the templa ), ); }); + +test('canonical factory hook derives the actual DDIM owner without runtime hints', () => { + const args = canonicalHookCase(); + const before = JSON.stringify(args); + const proof = createRunProvenance(args); + assert.equal(proof.graph.executionPlan.source, 'executed-canonical-accounting-v1'); + assert.equal(proof.graph.executionPlan.modelType, 'DDIMPipeline'); + assert.equal(proof.graph.executionPlan.device, 'cuda:0'); + assert.equal(proof.graph.executionPlan.deviceMap, 'cuda'); + assert.equal(proof.execution.resourceCandidateId, 'manual-resource-v1:DDIMPipeline|float32|none|none'); + assert.equal(proof.taskId, args.executionReceipt.task_id); + assert.deepEqual(proof.blockers, []); + assert.equal(args.apiGraph.runtimeHints, undefined); + assert.equal(JSON.stringify(args), before); +}); + +test('canonical hook rejects detached task, output, accounting and model evidence', () => { + const mutations = { + 'wrong factory task': (args) => { + args.taskId = 'other'; + }, + 'wrong raw task': (args) => { + args.canonicalAccountingProof.run.task.task_id = 'other'; + }, + 'failed task': (args) => { + args.executionReceipt.status = 'failed'; + }, + retry: (args) => { + args.executionReceipt.attempt_index = 1; + }, + 'different measured task': (args) => { + args.executionReceipt = { ...args.executionReceipt, completed_at: 102 }; + }, + 'contradictory Expert candidate': (args) => { + args.executionReceipt.resourceCandidateId = 'auto-candidate'; + }, + 'invented task hints': (args) => { + args.executionReceipt.runtimeHints = { autoResourceCandidateId: 'invented' }; + }, + 'output task': (args) => { + args.executedOutput.taskId = 'other'; + }, + 'output attempt': (args) => { + args.executedOutput.attemptIndex = 1; + }, + 'wrong workflow': (args) => { + args.canonicalAccountingProof.run.workflow_id = 'other'; + }, + 'missing raw output': (args) => { + args.canonicalAccountingProof.run.outputs = []; + }, + 'duplicate raw output': (args) => { + args.canonicalAccountingProof.run.outputs.push(structuredClone(args.executedOutput)); + }, + 'detached output receipt': (args) => { + args.canonicalAccountingProof.run.outputs = [structuredClone(args.executedOutput)]; + args.executedOutput.resolvedExecutionInputs.nodes[0].fieldAccounting.complete = false; + }, + 'consumed task': (args) => { + args.executedOutput.resolvedExecutionInputs.taskId = 'other'; + }, + 'consumed attempt': (args) => { + args.executedOutput.resolvedExecutionInputs.attemptIndex = 1; + }, + 'consumed output owner': (args) => { + args.executedOutput.nodeId = 'node-04'; + }, + 'untrusted changed graph': (args) => { + args.canonicalAccountingProof.expectedApiGraph.nodes['node-04'].params.seed.value = 43; + }, + 'caller plan': (args) => { + args.canonicalAccountingProof.plan = { device: 'cpu:0' }; + }, + 'missing accounting': (args) => { + delete args.executedOutput.resolvedExecutionInputs.nodes[0].fieldAccounting; + }, + 'wrong effective control': (args) => { + args.executedOutput.resolvedExecutionInputs.nodes.find( + (row) => row.action === 'LoadPipeline', + ).fieldAccounting.fields.device.value = 'cpu:0'; + }, + 'wrong installed model': (args) => { + args.modelIdentities[0].selectedRevision = 'a'.repeat(40); + }, + 'different runtime': (args) => { + args.runtimeFingerprint = { ...args.runtimeFingerprint, fingerprint: 'other' }; + }, + 'missing duration': (args) => { + delete args.executionReceipt.completed_at; + }, + 'wrong completion time': (args) => { + args.capturedAt = '2026-10-27T00:00:00.000Z'; + }, + }; + for (const [label, mutate] of Object.entries(mutations)) { + const args = canonicalHookCase(); + mutate(args); + assert.throws(() => createRunProvenance(args), undefined, label); + } +}); + +test('default factory output remains byte identical for all ten grouped and ordinary FLUX3 creators', async () => { + const expected = JSON.parse( + readFileSync(new URL('../tests/fixtures/legacy-provenance-factory.v1.json', import.meta.url), 'utf8'), + ); + const observed = []; + for (const { id, args } of await legacyCreatorFactoryCases()) { + assert.equal(Object.hasOwn(args, 'canonicalAccountingProof'), false); + const bytes = Buffer.from(stableStringify(createRunProvenance(args))); + observed.push({ id, bytes: bytes.length, sha256: createHash('sha256').update(bytes).digest('hex') }); + } + assert.deepEqual(observed, expected.vectors); +}); diff --git a/scripts/release-contract-core.mjs b/scripts/release-contract-core.mjs index ea9b88b6..91ad6030 100644 --- a/scripts/release-contract-core.mjs +++ b/scripts/release-contract-core.mjs @@ -1,4 +1,22 @@ import { canonicalJsonHash } from './canonical-json.mjs'; +import assert from 'node:assert/strict'; +import { createHash } from 'node:crypto'; +import { lstatSync, readFileSync, realpathSync } from 'node:fs'; +import { dirname, isAbsolute, join, sep } from 'node:path'; +import { + backendSourceEvidence, + canonicalGraphIdentity, + canonicalAccountingExecutionPlan, + createRunProvenance, + executionPlanIdentity, + executionReceiptIdentity, + normalizeBackendRuntime, + selectInstalledModelIdentity, + selectBackendRuntimeFingerprintEvidence, + sha256Value, + stableStringify, + validateRunProvenance, +} from './live-proof-provenance.mjs'; export function backendNodesFromCanonicalWorkflow(graph) { return [ @@ -78,3 +96,635 @@ export function assessHistoricalEvidence(candidate, canonicalWorkflow, backendRe missingBackendNodes, }; } + +const same = (actual, expected, label) => assert.equal(stableStringify(actual), stableStringify(expected), label); +const immutableRevision = (value) => typeof value === 'string' && /^[a-f0-9]{40,64}$/i.test(value); + +export { canonicalAccountingExecutionPlan } from './live-proof-provenance.mjs'; + +// This describes a real non-public authoring record. It is never a Studio +// template, a model entitlement, or permission to change canonical defaults. +export function canonicalWorkflowAuthoringContract(manifest, graph, authoring, artifact = null) { + const canonical = canonicalWorkflowContract(manifest, graph); + assert.ok( + manifest.sourceTemplateId?.startsWith('task-template:'), + 'Only standalone canonical workflows use this recorder.', + ); + assert.ok(authoring && authoring.canonicalWorkflowId === manifest.id, 'Exact canonical authoring record is missing.'); + assert.equal(authoring.modelType, manifest.modelType, 'Authoring model identity differs.'); + assert.equal(authoring.mode, manifest.mode, 'Authoring task differs.'); + assert.equal(authoring.canonicalGraph?.path, manifest.graphPath, 'Authoring graph path differs.'); + assert.equal(authoring.canonicalGraph?.sha256, manifest.graphHash, 'Authoring graph hash is stale.'); + assert.equal(authoring.defaultsPlan?.sourceGraphSha256, manifest.graphHash, 'Authoring defaults are stale.'); + assert.ok(typeof authoring.id === 'string' && authoring.id.length > 0, 'Authoring identity is missing.'); + const required = [...new Set(manifest.requiredArtifacts ?? [])].sort(); + assert.ok( + required.length && required.every((repo) => typeof repo === 'string' && !repo.startsWith('builtin:')), + 'Deterministic builtin qualification is unsupported; model identity is not applicable.', + ); + same( + [...new Set(authoring.artifactPlan?.requiredArtifacts ?? [])].sort(), + required, + 'Authoring artifact set differs.', + ); + const pins = new Map(required.map((repo) => [repo, new Set()])); + const add = (repo, revision) => { + assert.ok(pins.has(repo), `Undeclared model component: ${String(repo)}`); + if (revision !== undefined && revision !== null && revision !== '') { + assert.ok(immutableRevision(revision), `Unresolved immutable model pin: ${repo}`); + pins.get(repo).add(revision); + } + }; + for (const component of authoring.artifactPlan?.componentRequirements ?? []) add(component.repo, component.revision); + if (artifact?.baseRepo && pins.has(artifact.baseRepo)) add(artifact.baseRepo, artifact.baseRevision); + for (const node of graph.nodes ?? []) { + const params = node.data?.params ?? {}; + for (const [key, parameter] of Object.entries(params)) { + const value = parameter?.value ?? parameter?.default; + if (value?.source !== 'hub') continue; + const repo = value.value; + const revisionKey = ['model', 'model_id', 'repo_id'].includes(key) + ? 'revision' + : `${key.replace(/_(?:id|path)$/, '')}_revision`; + add(repo, value.revision ?? params[revisionKey]?.value ?? params[revisionKey]?.default); + } + } + const modelSet = required.map((repoId) => { + const revisions = [...pins.get(repoId)]; + assert.equal(revisions.length, 1, `Missing or ambiguous immutable model pin: ${repoId}`); + return { repoId, revision: revisions[0] }; + }); + return { + workflowId: manifest.id, + sourceTemplateId: manifest.sourceTemplateId, + authoringId: authoring.id, + authoringHash: sha256Value('canonical-workflow-authoring-v1', authoring), + canonicalWorkflowHash: canonical.graphHash, + modelType: manifest.modelType, + task: manifest.mode, + modelSet, + outputPlan: authoring.outputPlan, + }; +} + +// Pure shared validation used both when retaining a receipt and when projecting +// release evidence. expectedApiGraph must come from the normal frontend exporter +// over the current canonical source, never from the supplied evidence bundle. +export function validateCanonicalWorkflowEvidence({ + target, + expectedApiGraph, + creator, + outputPackage, + run, + provenance, +}) { + assert.equal(provenance?.format, 'modiff.live-proof.provenance.v2'); + assert.deepEqual(validateRunProvenance(provenance), [], 'Shared provenance validation failed.'); + assert.deepEqual(provenance.blockers ?? [], [], 'Provenance retains blockers.'); + assert.equal(creator?.manifest?.packageType, 'modiff-workflow-share', 'Original creator export is required.'); + assert.equal(outputPackage?.manifest?.packageType, 'modiff-output-package', 'Original output export is required.'); + const output = outputPackage.latestOutput; + const task = run?.task; + assert.ok(output && typeof output.id === 'string' && output.id.length > 0, 'Actual output is missing.'); + assert.equal(task?.status, 'completed', 'Task is not completed.'); + assert.equal(task.task_id, output.taskId, 'Output belongs to another task.'); + assert.equal(task.task_id, provenance.taskId, 'Provenance belongs to another task.'); + assert.equal(task.attempt_index, 0, 'Retry/fallback canonical qualification is unsupported.'); + assert.equal(output.attemptIndex, 0); + assert.equal(output.resolvedExecutionInputs?.taskId, task.task_id, 'Actual consumed-input receipt is missing.'); + assert.equal(output.resolvedExecutionInputs?.attemptIndex, 0); + assert.ok(typeof output.workflowTabId === 'string' && output.workflowTabId.length > 0); + assert.equal(run.workflow_id, output.workflowTabId, 'Output belongs to another workflow.'); + const persisted = (run.outputs ?? []).filter((item) => item.id === output.id && item.taskId === task.task_id); + assert.equal(persisted.length, 1, 'Output is not uniquely present in the raw task.'); + for (const field of [ + 'taskId', + 'clientRunId', + 'runInputHash', + 'workflowTabId', + 'attemptIndex', + 'nodeId', + 'fieldKey', + 'formSnapshot', + 'graphSnapshot', + 'apiGraphSnapshot', + 'resolvedExecutionInputs', + 'mediaHash', + 'mediaItems', + ]) { + assert.notEqual(output[field], undefined, `Actual output is missing ${field}.`); + same(output[field], persisted[0][field], `Raw task/output ${field} differs.`); + } + same(creator.metadata?.studio, output.formSnapshot, 'Creator settings changed before execution.'); + assert.equal( + output.formSnapshot.modelType, + target.modelType, + 'Actual model/task form differs from canonical source.', + ); + assert.equal(output.formSnapshot.mode, target.task, 'Actual model/task form differs from canonical source.'); + same(outputPackage.apiGraph, output.apiGraphSnapshot, 'Output package graph differs from submitted graph.'); + const expected = canonicalGraphIdentity(expectedApiGraph); + same( + canonicalGraphIdentity(creator.apiGraph), + expected, + 'Creator graph/defaults/bindings differ from canonical source.', + ); + same(canonicalGraphIdentity(output.apiGraphSnapshot), expected, 'Submitted graph differs from canonical source.'); + same(provenance.graph?.canonicalGraph, expected.canonicalGraph, 'Provenance graph differs from canonical execution.'); + const consumed = output.resolvedExecutionInputs; + assert.equal(consumed.source, 'backend-execution', 'Consumed inputs do not have backend authority.'); + assert.equal(consumed.truncated, false, 'Consumed inputs are truncated.'); + assert.deepEqual(consumed.uncapturedNodeIds, [], 'Consumed node evidence is incomplete.'); + assert.ok(Array.isArray(consumed.nodes) && consumed.nodes.length > 0, 'Consumed node evidence is missing.'); + assert.equal( + new Set(consumed.nodes.map((row) => row.nodeId)).size, + consumed.nodes.length, + 'Consumed node identities are ambiguous.', + ); + same( + consumed.nodes.map((row) => row.nodeId).sort(), + Object.keys(output.apiGraphSnapshot.nodes).sort(), + 'Consumed graph scope differs.', + ); + const hasAccounting = + consumed.fieldAccountingStatus !== undefined || consumed.nodes.some((row) => row.fieldAccounting !== undefined); + const plan = hasAccounting + ? canonicalAccountingExecutionPlan({ expectedApiGraph, apiGraph: output.apiGraphSnapshot, consumed, target }) + : executionPlanIdentity(output.apiGraphSnapshot); + if (hasAccounting) { + assert.equal(consumed.nodeId, output.nodeId, 'Canonical consumed receipt output owner differs.'); + assert.ok( + !task.runtimeHints || Object.keys(task.runtimeHints).length === 0, + 'Canonical task contains unreviewed runtime hints.', + ); + } + if (!hasAccounting) { + for (const row of consumed.nodes) { + const submitted = output.apiGraphSnapshot.nodes[row.nodeId]; + assert.equal(row.module, submitted.module, 'Consumed node module differs.'); + assert.equal(row.action, submitted.action, 'Consumed node action differs.'); + assert.deepEqual(row.omittedFields ?? {}, {}, 'Consumed fields were omitted; exact execution cannot be proved.'); + for (const [field, parameter] of Object.entries(submitted.params ?? {})) { + if (Object.hasOwn(parameter, 'value') && !parameter.sourceId) { + assert.ok(Object.hasOwn(row.fields ?? {}, field), `Consumed literal is missing: ${row.nodeId}.${field}`); + } + } + for (const [field, captured] of Object.entries(row.fields ?? {})) { + const parameter = submitted.params?.[field]; + // Connected runtime objects are authenticated by the exact submitted + // topology. Scalar connected/override values need a further native + // producer join; never silently treat them as an unchanged literal. + assert.equal(captured.source, 'literal', 'Connected or overridden consumed scalar is unsupported.'); + if (!parameter && field === 'executed_task') { + assert.equal(captured.value, target.task, 'Actual executed task differs from canonical task.'); + continue; + } + assert.ok( + parameter && Object.hasOwn(parameter, 'value') && !parameter.sourceId, + 'Consumed literal binding differs.', + ); + let expectedValue = parameter.value; + if (expectedValue?.source === 'hub') expectedValue = expectedValue.value; + // The existing seed receipt contract serializes integer seeds as decimal + // strings. This comparison accepts only the exact integer spelling. + if (field === 'seed' && Number.isSafeInteger(expectedValue) && typeof captured.value === 'string') + expectedValue = String(expectedValue); + same(captured.value, expectedValue, `Consumed field differs: ${row.nodeId}.${field}`); + } + } + } + assert.equal(provenance.graphHash, expected.hash); + + const auto = plan.plan.resourceMode === 'auto' || plan.plan.resolvedResourceMode === 'auto'; + if (auto) { + assert.ok( + typeof plan.plan.autoResourceCandidateId === 'string' && plan.plan.autoResourceCandidateId.trim().length > 0, + 'Auto resource candidate is missing from the declared execution plan.', + ); + assert.equal( + task.resourceCandidateId, + plan.plan.autoResourceCandidateId, + 'Native Auto resource candidate differs from the declared execution plan.', + ); + } else { + assert.ok(plan.plan.autoResourceCandidateId == null, 'Non-Auto graph retains an Auto resource candidate.'); + assert.ok(task.resourceCandidateId == null, 'Non-Auto task retains an Auto resource candidate.'); + } + assert.equal(plan.plan.modelType, target.modelType, 'Resource recipe model differs from canonical source.'); + if (!hasAccounting) { + for (const [planned, consumedField] of Object.entries({ + dtype: 'dtype', + offloadMode: 'offload_mode', + autoOffload: 'auto_offload', + device: 'device', + weightFormat: 'weight_format', + weightLoadingMode: 'weight_loading_mode', + })) { + if (!Object.hasOwn(plan.plan, planned)) continue; + const values = consumed.nodes.flatMap((row) => + Object.hasOwn(row.fields ?? {}, consumedField) ? [row.fields[consumedField].value] : [], + ); + assert.ok( + values.length > 0 && values.every((value) => stableStringify(value) === stableStringify(plan.plan[planned])), + `Resource recipe lacks matching consumed ${consumedField}.`, + ); + } + } + same(provenance.graph?.executionPlan, plan.plan, 'Resource recipe differs from executed graph.'); + assert.equal(provenance.graph?.executionPlanHash, plan.hash); + assert.equal(provenance.template?.id, target.authoringId, 'Provenance lacks the real canonical authoring identity.'); + assert.equal(provenance.template?.catalogTemplateLockHash, target.authoringHash, 'Canonical authoring lock differs.'); + assert.equal( + provenance.template?.resolvedTemplateLockHash, + sha256Value('canonical-workflow-execution-v1', { authoringHash: target.authoringHash, graphHash: expected.hash }), + 'Canonical execution lock differs.', + ); + assert.equal( + provenance.template?.promptSettingsHash, + sha256Value('canonical-workflow-settings-v1', creator.metadata.studio), + 'Canonical settings lock differs.', + ); + const actualModels = provenance.models.items + .map((item) => { + assert.ok(immutableRevision(item.selectedRevision), 'Executed model revision is not immutable.'); + assert.equal(item.modelRevision, `${item.repoId}@${item.selectedRevision}`); + return { repoId: item.repoId, revision: item.selectedRevision }; + }) + .sort((a, b) => a.repoId.localeCompare(b.repoId)); + same(actualModels, target.modelSet, 'Complete executed model set differs from canonical declarations.'); + const executedPins = new Map(); + for (const node of Object.values(output.apiGraphSnapshot.nodes ?? {})) { + for (const [key, parameter] of Object.entries(node.params ?? {})) { + const value = parameter?.value; + if (value?.source !== 'hub') continue; + const revisionKey = ['model', 'model_id', 'repo_id'].includes(key) + ? 'revision' + : `${key.replace(/_(?:id|path)$/, '')}_revision`; + const revision = value.revision ?? node.params[revisionKey]?.value; + assert.ok(immutableRevision(revision), `Executed component pin is unresolved: ${value.value}`); + if (executedPins.has(value.value)) + assert.equal(executedPins.get(value.value), revision, 'Ambiguous executed component.'); + executedPins.set(value.value, revision); + } + } + same( + [...executedPins] + .map(([repoId, revision]) => ({ repoId, revision })) + .sort((a, b) => a.repoId.localeCompare(b.repoId)), + target.modelSet, + 'The complete model set is not proved by explicit executed loader fields.', + ); + assert.ok( + selectBackendRuntimeFingerprintEvidence([task.runtimeFingerprint], output.apiGraphSnapshot.deterministicMode), + 'Complete structured actual runtime is required.', + ); + assert.equal( + normalizeBackendRuntime(task.runtimeFingerprint, output.apiGraphSnapshot.deterministicMode).lockFingerprint, + provenance.runtimeFingerprint, + 'Actual runtime differs from provenance.', + ); + same( + task.runtimeFingerprint.backendSource, + provenance.runtime.backendSourceAttestation, + 'Process-start source authority differs.', + ); + const actualExecution = executionReceiptIdentity( + { runtimeMeasurement: task.runtimeMeasurement, runtimeHints: task.runtimeHints }, + plan.plan, + ); + same(actualExecution, provenance.execution, 'Actual resource measurements differ.'); + assert.ok( + Number.isFinite(task.started_at) && Number.isFinite(task.completed_at) && task.completed_at >= task.started_at, + ); + assert.equal(provenance.capturedAt, new Date(task.completed_at * 1000).toISOString(), 'Completion time differs.'); + assert.ok(provenance.output.items.length >= target.outputPlan.minimumAssetCount, 'Output collection is incomplete.'); + assert.ok( + provenance.output.items.every((item) => target.outputPlan.mediaKinds.includes(item.mediaType)), + 'Output modality differs.', + ); + return { + schemaVersion: 1, + format: 'modiff.canonical-workflow-run-receipt.v1', + proofKind: 'real_backend_weights', + ...target, + taskId: task.task_id, + outputId: output.id, + capturedAt: provenance.capturedAt, + graphHash: expected.hash, + modelSetHash: provenance.models.hash, + runtimeFingerprint: provenance.runtimeFingerprint, + resourceCandidateId: provenance.execution.resourceCandidateId, + backendSourceFingerprint: provenance.backendSourceFingerprint, + backendContractFingerprint: provenance.backendContractFingerprint, + outputHash: provenance.output.collectionHash, + executionDurationSeconds: provenance.execution.elapsedSeconds, + peakMemoryBytes: provenance.execution.peakMemoryBytes, + qualificationClaims: { + publicTemplate: false, + qualityApproved: false, + rightsApproved: false, + hardwareQualified: false, + }, + }; +} + +export function readCanonicalEvidenceFile(root, ref, maximum = 32 * 1024 * 1024) { + assert.ok( + ref && typeof ref.path === 'string' && !isAbsolute(ref.path) && !/[\\:]/.test(ref.path), + 'Evidence path must be relative and canonical.', + ); + assert.ok( + ref.path.split('/').every((part) => part && part !== '.' && part !== '..'), + 'Evidence path is not canonical.', + ); + assert.match(ref.sha256 ?? '', /^[a-f0-9]{64}$/); + const base = realpathSync(root); + let file = base; + for (const part of ref.path.split('/')) { + file = join(file, part); + assert.ok(!lstatSync(file).isSymbolicLink(), 'Evidence symlinks are not permitted.'); + } + assert.ok(realpathSync(file).startsWith(`${base}${sep}`), 'Evidence escapes its retained root.'); + const stat = lstatSync(file); + assert.ok( + stat.isFile() && stat.size > 0 && stat.size <= maximum && stat.size === ref.bytes, + 'Evidence file size/type differs.', + ); + const bytes = readFileSync(file); + assert.equal(createHash('sha256').update(bytes).digest('hex'), ref.sha256, 'Evidence file hash differs.'); + return { file, bytes }; +} + +export function canonicalEvidenceWritePath(root, relativePath) { + assert.ok( + typeof relativePath === 'string' && !isAbsolute(relativePath) && !/[\\:]/.test(relativePath), + 'Retention path must be relative and canonical.', + ); + assert.ok( + relativePath.split('/').every((part) => part && part !== '.' && part !== '..'), + 'Retention path is not canonical.', + ); + const base = realpathSync(root); + let target = base; + for (const part of relativePath.split('/')) { + target = join(target, part); + let stat; + try { + stat = lstatSync(target); + } catch (error) { + if (error.code === 'ENOENT') continue; + throw error; + } + assert.ok(!stat.isSymbolicLink(), 'Retention symlinks are not permitted.'); + assert.ok(realpathSync(target).startsWith(`${base}${sep}`), 'Retention path escapes its backend root.'); + } + return target; +} + +// Metadata-only export through the exact frontend implementation used by Run. +// Ephemeral storage and a rejecting fetch prevent inspection from using a live app. +export async function exportCanonicalWorkflowGraphs(clientRoot, graphs) { + const { createServer } = await import('vite'); + const prior = new Map( + ['window', 'localStorage', 'fetch'].map((key) => [key, Object.getOwnPropertyDescriptor(globalThis, key)]), + ); + const storage = new Map(); + globalThis.localStorage = { + getItem: (key) => storage.get(key) ?? null, + setItem: (key, value) => storage.set(key, value), + removeItem: (key) => storage.delete(key), + }; + globalThis.window = { + location: { origin: 'http://127.0.0.1' }, + localStorage: globalThis.localStorage, + dispatchEvent: () => true, + }; + globalThis.fetch = () => { + throw new Error('Canonical qualification export cannot access the network.'); + }; + let server; + try { + server = await createServer({ + root: clientRoot, + configFile: false, + logLevel: 'silent', + optimizeDeps: { entries: [], noDiscovery: true }, + server: { middlewareMode: true, hmr: false, watch: null }, + appType: 'custom', + }); + const { useFlowStore } = await server.ssrLoadModule('/src/stores/useFlowStore.ts'); + return graphs.map((graph) => + useFlowStore.getState().exportGraph('canonical-qualification', undefined, { + sourceGraph: structuredClone(graph), + randomizeSeeds: false, + }), + ); + } finally { + await server?.close(); + for (const [key, descriptor] of prior) { + if (descriptor) Object.defineProperty(globalThis, key, descriptor); + else delete globalThis[key]; + } + } +} + +// The same derivation is repeated by release-contract; a registry row alone +// never authenticates a run. All file references are to retained original bytes. +export async function readCanonicalWorkflowEvidence({ clientRoot, backendRoot, workflowId, evidencePath }) { + const json = (file) => JSON.parse(readFileSync(file, 'utf8')); + const manifestRows = json(join(backendRoot, 'data/workflow-library-manifest.json')).workflows; + const matches = manifestRows.filter((row) => row.id === workflowId); + assert.equal(matches.length, 1, 'Canonical workflow ID is missing or ambiguous.'); + const manifest = matches[0]; + assert.ok( + typeof manifest.graphPath === 'string' && + !isAbsolute(manifest.graphPath) && + manifest.graphPath.split(/[\\/]/).every((part) => part && part !== '..' && part !== '.'), + 'Canonical graph path is unsafe.', + ); + const graphRoot = realpathSync(join(backendRoot, 'data/graphs')); + const graphPath = realpathSync(join(graphRoot, manifest.graphPath)); + assert.ok(graphPath.startsWith(`${graphRoot}${sep}`), 'Canonical graph escapes its source root.'); + const graph = json(graphPath); + const authoringRows = json(join(backendRoot, 'data/template-authoring-specs.v1.json')).specifications; + const authoringMatches = authoringRows.filter((row) => row.canonicalWorkflowId === workflowId); + assert.equal(authoringMatches.length, 1, 'Canonical source authoring identity is missing or ambiguous.'); + const artifact = json(join(backendRoot, 'data/model-artifact-catalog.json')).models.find( + (row) => row.modelType === manifest.modelType, + ); + const target = canonicalWorkflowAuthoringContract(manifest, graph, authoringMatches[0], artifact); + assert.ok( + graph.nodes.every((node) => + Object.values(node.data?.params ?? {}).every((field) => field?.display !== 'filebrowser'), + ), + 'Input-backed canonical qualification is unsupported until native execution-bound input-byte evidence is available.', + ); + const evidenceStat = lstatSync(evidencePath); + assert.ok( + evidenceStat.isFile() && !evidenceStat.isSymbolicLink() && evidenceStat.size <= 65536, + 'Evidence descriptor must be a bounded regular file.', + ); + const descriptorBytes = readFileSync(evidencePath); + const evidence = JSON.parse(descriptorBytes.toString('utf8')); + assert.equal(evidence.schemaVersion, 1); + assert.equal(evidence.format, 'modiff.canonical-workflow-evidence.v1'); + assert.equal(evidence.workflowId, workflowId); + const root = realpathSync(dirname(evidencePath)); + const retainedFiles = []; + const read = (ref, maximum) => { + const result = readCanonicalEvidenceFile(root, ref, maximum); + retainedFiles.push({ ...ref, absolutePath: result.file }); + return result; + }; + const readJson = (ref) => JSON.parse(read(ref).bytes.toString('utf8')); + const creator = readJson(evidence.creatorPackage); + const outputPackage = readJson(evidence.outputPackage); + const run = readJson(evidence.runDetail); + const output = outputPackage.latestOutput; + assert.ok( + output?.apiGraphSnapshot && output?.graphSnapshot && creator.graph && creator.apiGraph, + 'Original graph exports are missing.', + ); + const [expectedApiGraph, creatorApiGraph, outputApiGraph] = await exportCanonicalWorkflowGraphs(clientRoot, [ + graph, + creator.graph, + output.graphSnapshot, + ]); + same( + canonicalGraphIdentity(creatorApiGraph), + canonicalGraphIdentity(creator.apiGraph), + 'Creator visual/API export differs.', + ); + same( + canonicalGraphIdentity(outputApiGraph), + canonicalGraphIdentity(output.apiGraphSnapshot), + 'Output visual/API export differs.', + ); + const nodesPayload = readJson(evidence.nodes); + const contracts = nodesPayload.nodes ?? nodesPayload; + for (const node of Object.values(output.apiGraphSnapshot.nodes)) { + const key = `${node.module}.${node.action}`; + assert.ok( + contracts[key]?.params && typeof contracts[key].params === 'object', + `Actual backend contract is missing: ${key}`, + ); + assert.ok( + Object.values(contracts[key].params).every((field) => field?.display !== 'filebrowser'), + 'Input-backed canonical qualification is unsupported until native execution-bound input-byte evidence is available.', + ); + } + const sourceBefore = readJson(evidence.backendSourceBefore); + const sourceAfter = readJson(evidence.backendSourceAfter); + const source = backendSourceEvidence({ + before: sourceBefore.identity, + after: sourceAfter.identity, + runtimeFingerprint: run.task?.runtimeFingerprint, + }); + assert.deepEqual(source.blockers, [], 'Source changed or does not match the running worker.'); + assert.ok( + Array.isArray(evidence.modelObservations) && evidence.modelObservations.length > 0, + 'Actual model observations are required.', + ); + const payloads = evidence.modelObservations.map(readJson); + assert.ok( + payloads.every((value) => value.error === false && Array.isArray(value.models)), + 'Model observation is incomplete.', + ); + const modelPayload = { models: payloads.flatMap((value) => value.models) }; + const modelIdentities = target.modelSet.map(({ repoId, revision }) => { + assert.equal( + modelPayload.models.filter((row) => row.installed && row.repoId === repoId).length, + 1, + 'Installed model identity is missing or ambiguous.', + ); + const identity = selectInstalledModelIdentity(modelPayload, repoId); + assert.equal(identity?.selectedRevision, revision, 'Observed model revision differs.'); + assert.equal(identity?.modelRevision, `${repoId}@${revision}`); + return identity; + }); + assert.ok(Array.isArray(evidence.inputs), 'Explicit input evidence array is required.'); + const inputPaths = new Set(); + const visit = (value) => { + if (typeof value === 'string' && value.startsWith('@data/')) inputPaths.add(value); + else if (Array.isArray(value)) value.forEach(visit); + else if (value && typeof value === 'object') Object.values(value).forEach(visit); + }; + for (const node of Object.values(output.apiGraphSnapshot.nodes)) { + for (const parameter of Object.values(node.params ?? {})) visit(parameter?.value); + } + same( + evidence.inputs.map((row) => row.sourceValue).sort(), + [...inputPaths].sort(), + 'Complete exact input file bindings are required.', + ); + assert.equal( + inputPaths.size, + 0, + 'Input-backed canonical qualification is unsupported until native execution-bound input-byte evidence is available.', + ); + const inputArtifacts = []; + const { decodedMediaHash } = await import('./template-gallery-harness.mjs'); + assert.ok(Array.isArray(evidence.outputs) && evidence.outputs.length > 0, 'Physical output evidence is required.'); + assert.equal(evidence.outputs.length, output.mediaItems?.length, 'Complete durable output collection is required.'); + const analyses = []; + for (const [index, row] of evidence.outputs.entries()) { + const item = output.mediaItems[index]; + assert.equal(row.backendPath, item.backendPath, 'Durable output order/path differs.'); + const { file, bytes } = read(row.file, 512 * 1024 * 1024); + assert.equal(item.mediaHash, `sha256:bytes:${row.file.sha256}`, 'Durable output bytes differ.'); + assert.equal(item.byteSize, bytes.length); + assert.ok(target.outputPlan.mediaKinds.includes(row.mediaType), 'Output modality is not declared.'); + const decoded = await decodedMediaHash(file, row.mediaType); + analyses.push({ + ...decoded, + mediaType: row.mediaType, + byteSize: bytes.length, + encodedSha256: `sha256:${row.file.sha256}`, + decodedSha256: decoded.hash, + }); + } + const graphIdentity = canonicalGraphIdentity(expectedApiGraph); + const provenance = createRunProvenance({ + templateId: target.authoringId, + lockedSettings: creator.metadata?.studio, + promptSettingsHash: sha256Value('canonical-workflow-settings-v1', creator.metadata?.studio), + catalogTemplateLockHash: target.authoringHash, + resolvedTemplateLockHash: sha256Value('canonical-workflow-execution-v1', { + authoringHash: target.authoringHash, + graphHash: graphIdentity.hash, + }), + apiGraph: output.apiGraphSnapshot, + nodesPayload, + modelIdentities, + inputArtifacts, + runtimeFingerprint: run.task?.runtimeFingerprint, + deterministicMode: output.apiGraphSnapshot.deterministicMode, + backendSource: source.identity, + outputAnalysis: { analyses }, + executedOutput: output, + executionReceipt: run.task, + taskId: run.task?.task_id, + ...(output.resolvedExecutionInputs?.fieldAccountingStatus !== undefined || + output.resolvedExecutionInputs?.nodes?.some((row) => row.fieldAccounting !== undefined) + ? { canonicalAccountingProof: { expectedApiGraph, target, run } } + : {}), + capturedAt: new Date(run.task?.completed_at * 1000).toISOString(), + }); + const receipt = validateCanonicalWorkflowEvidence({ + target, + expectedApiGraph, + creator, + outputPackage, + run, + provenance, + }); + // Recheck before any caller writes. All generated metadata remains separate + // from the untouched exported packages and the raw task/observation bodies. + for (const ref of retainedFiles) readCanonicalEvidenceFile(root, ref, 512 * 1024 * 1024); + same( + readFileSync(evidencePath).toString('base64'), + descriptorBytes.toString('base64'), + 'Evidence descriptor changed during validation.', + ); + return { receipt, provenance, evidence, descriptorBytes, retainedFiles, evidenceRoot: root }; +} diff --git a/scripts/release-contract.mjs b/scripts/release-contract.mjs index 48b0d801..3194cab1 100644 --- a/scripts/release-contract.mjs +++ b/scripts/release-contract.mjs @@ -9,6 +9,8 @@ import { assessHistoricalEvidence, canonicalWorkflowContract, findCanonicalWorkflowRecord, + readCanonicalEvidenceFile, + readCanonicalWorkflowEvidence, } from './release-contract-core.mjs'; import { findGalleryEvidencePath } from './release-evidence-paths.mjs'; @@ -327,6 +329,41 @@ const workflowRecords = workflowManifest.workflows.map((workflow) => { const graph = readJson(graphPath); return { manifest: workflow, graph, contract: canonicalWorkflowContract(workflow, graph) }; }); +const canonicalReceiptsByWorkflow = new Map(); +const canonicalRegistryPath = join(BACKEND_ROOT, 'data/qualification/release/canonical-workflow-run-receipts.v1.json'); +if (existsSync(canonicalRegistryPath)) { + const registry = readJson(canonicalRegistryPath); + if ( + registry.schemaVersion !== 1 || + registry.format !== 'modiff.canonical-workflow-run-receipt-registry.v1' || + !Array.isArray(registry.receipts) + ) { + throw new Error('Canonical workflow receipt registry has an invalid schema.'); + } + for (const stored of registry.receipts) { + const descriptor = readCanonicalEvidenceFile( + BACKEND_ROOT, + { path: stored.evidencePath, bytes: stored.evidenceBytes, sha256: stored.evidenceSha256 }, + 65536, + ); + const derived = await readCanonicalWorkflowEvidence({ + clientRoot: CLIENT_ROOT, + backendRoot: BACKEND_ROOT, + workflowId: stored.workflowId, + evidencePath: descriptor.file, + }); + const body = { ...stored }; + delete body.evidencePath; + delete body.evidenceSha256; + delete body.evidenceBytes; + if (JSON.stringify(stable(body)) !== JSON.stringify(stable(derived.receipt))) { + throw new Error(`Canonical workflow receipt differs from original task evidence: ${stored.workflowId}`); + } + const previous = canonicalReceiptsByWorkflow.get(stored.workflowId); + if (!previous || String(previous.capturedAt).localeCompare(stored.capturedAt) < 0) + canonicalReceiptsByWorkflow.set(stored.workflowId, stored); + } +} const vite = await createServer({ root: CLIENT_ROOT, configFile: false, @@ -478,6 +515,7 @@ try { .map(({ manifest, graph }) => { const artifact = artifactByModel.get(manifest.modelType); const sourceTemplate = templates.find((template) => template.id === manifest.sourceTemplateId); + const canonicalReceipt = sourceTemplate ? null : canonicalReceiptsByWorkflow.get(manifest.id); const exactModelRevision = sourceTemplate?.exactModelRevision ?? (artifact?.baseRepo && artifact?.baseRevision ? `${artifact.baseRepo}@${artifact.baseRevision}` : null); @@ -494,7 +532,19 @@ try { userInputs: sourceTemplate?.userInputs ?? manifest.requiredInputs ?? {}, resourceRecipes: sourceTemplate?.resourceRecipes ?? null, outputContract: sourceTemplate?.outputContract ?? { mediaKinds: [manifest.mediaKind] }, - lastSuccessfulRealRun: sourceTemplate?.lastSuccessfulRealRun ?? null, + lastSuccessfulRealRun: sourceTemplate?.lastSuccessfulRealRun ?? canonicalReceipt ?? null, + ...(!sourceTemplate + ? { + canonicalExecutionEvidence: { + status: manifest.requiredArtifacts?.some((item) => item.startsWith('builtin:')) + ? 'unsupported_builtin_model_not_applicable' + : canonicalReceipt + ? 'verified_execution_only' + : 'missing', + releaseApprovalGranted: false, + }, + } + : {}), releaseEligible: Boolean(exactModelRevision && sourceTemplate?.releaseEligible), }; }) diff --git a/scripts/release-contract.test.mjs b/scripts/release-contract.test.mjs index b82feb1b..5f92d3e2 100644 --- a/scripts/release-contract.test.mjs +++ b/scripts/release-contract.test.mjs @@ -7,7 +7,10 @@ import { assessHistoricalEvidence, canonicalWorkflowContract, findCanonicalWorkflowRecord, + canonicalWorkflowAuthoringContract, + validateCanonicalWorkflowEvidence, } from './release-contract-core.mjs'; +import { canonicalGraphIdentity, createRunProvenance, sha256Value } from './live-proof-provenance.mjs'; import { galleryEvidenceCandidates } from './release-evidence-paths.mjs'; function graphHash(graph) { @@ -207,3 +210,507 @@ test('legacy Qwen evidence cannot restore a deleted backend driver into a curren assert.ok(assessment.missingBackendNodes.some((nodeKey) => nodeKey.startsWith('modules.QwenImage.'))); } }); + +// Synthetic protocol fixtures exercise metadata validation only. They never +// execute weights or confer qualification on a real catalog row. +function canonicalEvidenceFixture({ auxiliary = false, auto = false } = {}) { + const revision = 'a'.repeat(40); + const params = { + model_id: { value: { source: 'hub', value: 'example/base' } }, + revision: { value: revision }, + dtype: { value: 'bfloat16' }, + offload_mode: { value: 'model_cpu' }, + auto_offload: { value: true }, + }; + const api = { + nodes: { + loader: { module: 'modules.DiffusersImage', action: 'LoadPipeline', params }, + generate: { + module: 'modules.DiffusersImage', + action: 'Generate', + params: { + pipeline: { sourceId: 'loader', sourceKey: 'pipeline' }, + prompt: { value: 'Exact canonical prompt' }, + width: { value: 512 }, + height: { value: 512 }, + steps: { value: 16 }, + seed: { value: 7 }, + }, + }, + }, + paths: [['loader', 'generate']], + runtimeHints: { + modelType: 'ExamplePipeline', + dtype: 'bfloat16', + offloadMode: 'model_cpu', + quantizationMode: 'none', + autoOffload: true, + ...(auto + ? { resourceMode: 'auto', resolvedResourceMode: 'auto', autoResourceCandidateId: 'synthetic-auto-candidate' } + : {}), + }, + }; + if (auxiliary) { + api.nodes.adapter = { + module: 'modules.ModularDiffusers', + action: 'Lora', + params: { + model: { value: { source: 'hub', value: 'example/adapter' } }, + revision: { value: 'b'.repeat(40) }, + scale: { value: 0.75 }, + }, + }; + api.paths = [['adapter', 'loader', 'generate']]; + } + const graph = { + nodes: Object.entries(api.nodes).map(([id, node]) => ({ id, data: structuredClone(node) })), + edges: [], + }; + const manifest = { + id: 'ExamplePipeline:text_to_image', + modelType: 'ExamplePipeline', + mode: 'text_to_image', + sourceTemplateId: 'task-template:example:text-to-image:v1', + graphPath: 'studio/example.json', + graphHash: canonicalJsonHash(graph), + requiredArtifacts: ['example/base', ...(auxiliary ? ['example/adapter'] : [])], + }; + const authoring = { + id: 'template-authoring:ExamplePipeline:text_to_image', + canonicalWorkflowId: manifest.id, + modelType: manifest.modelType, + mode: manifest.mode, + canonicalGraph: { path: manifest.graphPath, sha256: manifest.graphHash }, + defaultsPlan: { sourceGraphSha256: manifest.graphHash }, + artifactPlan: { requiredArtifacts: manifest.requiredArtifacts, componentRequirements: [] }, + outputPlan: { minimumAssetCount: 1, mediaKinds: ['image'] }, + }; + const target = canonicalWorkflowAuthoringContract(manifest, graph, authoring); + const files = [{ path: 'main.py', sha256: 'c'.repeat(64) }]; + const gitCommit = 'd'.repeat(40); + const fingerprint = sha256Value('backend-source-v1', { gitCommit, files }); + const backendSource = { fingerprint, gitCommit, files }; + const runtime = { + fingerprint: 'sha256:actual-runtime', + packages: { torch: '2.9.1' }, + torch: { version: '2.9.1' }, + work_dir: '/synthetic/work', + data_dir: '/synthetic/data', + backendSource: { + schemaVersion: 1, + claim: 'process_start_backend_source_identity', + fingerprint, + gitCommit, + fileCount: 1, + capturedAt: '2026-10-27T00:00:00.000Z', + }, + }; + const form = { modelType: manifest.modelType, mode: manifest.mode, prompt: 'Exact canonical prompt', seed: 7 }; + const task = { + task_id: 'synthetic-task', + status: 'completed', + attempt_index: 0, + started_at: 100, + completed_at: 112.5, + runtimeFingerprint: runtime, + runtimeMeasurement: { elapsedSeconds: 12.5, processRssBytes: 4096 }, + resourceCandidateId: auto ? 'synthetic-auto-candidate' : null, + }; + const output = { + id: 'synthetic-output', + taskId: task.task_id, + clientRunId: 'synthetic-run', + runInputHash: 'run_synthetic', + workflowTabId: 'synthetic-owned', + attemptIndex: 0, + nodeId: 'generate', + fieldKey: 'image', + formSnapshot: form, + graphSnapshot: graph, + apiGraphSnapshot: structuredClone(api), + mediaHash: 'sha256:bytes:synthetic', + mediaItems: [], + resolvedExecutionInputs: { + source: 'backend-execution', + taskId: task.task_id, + attemptIndex: 0, + truncated: false, + uncapturedNodeIds: [], + nodes: Object.entries(api.nodes).map(([nodeId, node]) => ({ + nodeId, + module: node.module, + action: node.action, + fields: Object.fromEntries( + Object.entries(node.params) + .filter(([, p]) => Object.hasOwn(p, 'value')) + .map(([key, p]) => [ + key, + { source: 'literal', value: p.value?.source === 'hub' ? p.value.value : p.value }, + ]), + ), + })), + }, + }; + const creator = { + manifest: { packageType: 'modiff-workflow-share' }, + metadata: { studio: structuredClone(form) }, + graph, + apiGraph: structuredClone(api), + }; + const outputPackage = { + manifest: { packageType: 'modiff-output-package' }, + apiGraph: structuredClone(api), + latestOutput: output, + }; + const modelIdentities = target.modelSet.map(({ repoId, revision: selectedRevision }) => ({ + repoId, + selectedRevision, + modelRevision: `${repoId}@${selectedRevision}`, + fingerprint: `sha256:model:${repoId}`, + revisions: [], + })); + const provenance = createRunProvenance({ + templateId: target.authoringId, + lockedSettings: form, + promptSettingsHash: sha256Value('canonical-workflow-settings-v1', form), + catalogTemplateLockHash: target.authoringHash, + resolvedTemplateLockHash: sha256Value('canonical-workflow-execution-v1', { + authoringHash: target.authoringHash, + graphHash: canonicalGraphIdentity(api).hash, + }), + apiGraph: api, + nodesPayload: { nodes: {} }, + modelIdentities, + runtimeFingerprint: runtime, + backendSource, + outputAnalysis: { + analyses: [ + { + mediaType: 'image', + width: 512, + height: 512, + byteSize: 99, + encodedSha256: 'sha256:synthetic', + decodedSha256: 'sha256:decoded:synthetic', + }, + ], + }, + executedOutput: output, + executionReceipt: task, + taskId: task.task_id, + capturedAt: new Date(task.completed_at * 1000).toISOString(), + }); + return { + target, + expectedApiGraph: api, + creator, + outputPackage, + run: { workflow_id: output.workflowTabId, task, outputs: [structuredClone(output)] }, + provenance, + manifest, + graph, + authoring, + }; +} + +test('standalone canonical receipts bind real authoring, exact execution and full model sets without granting approval', () => { + for (const auxiliary of [false, true]) { + const fixture = canonicalEvidenceFixture({ auxiliary }); + const receipt = validateCanonicalWorkflowEvidence(fixture); + assert.equal(receipt.workflowId, fixture.manifest.id); + assert.equal(receipt.modelSet.length, auxiliary ? 2 : 1); + assert.equal(receipt.taskId, 'synthetic-task'); + assert.deepEqual(receipt.qualificationClaims, { + publicTemplate: false, + qualityApproved: false, + rightsApproved: false, + hardwareQualified: false, + }); + } +}); + +test('canonical Auto receipts join the actual task candidate and reject contradictory Expert candidates', async (t) => { + const accepted = canonicalEvidenceFixture({ auto: true }); + assert.equal(validateCanonicalWorkflowEvidence(accepted).resourceCandidateId, 'synthetic-auto-candidate'); + assert.equal(Object.hasOwn(accepted.run.task, 'runtimeHints'), false, 'Native task schema has no runtimeHints.'); + for (const [label, candidate] of [ + ['missing', undefined], + ['null', null], + ['different', 'another-native-candidate'], + ['empty', ''], + ]) { + await t.test(`Auto ${label} native candidate refuses`, () => { + const fixture = canonicalEvidenceFixture({ auto: true }); + if (candidate === undefined) delete fixture.run.task.resourceCandidateId; + else fixture.run.task.resourceCandidateId = candidate; + assert.throws(() => validateCanonicalWorkflowEvidence(fixture), /Native Auto resource candidate/); + }); + } + await t.test('Auto without a declared candidate refuses', () => { + const fixture = canonicalEvidenceFixture({ auto: true }); + delete fixture.outputPackage.latestOutput.apiGraphSnapshot.runtimeHints.autoResourceCandidateId; + delete fixture.outputPackage.apiGraph.runtimeHints.autoResourceCandidateId; + fixture.run.outputs[0] = structuredClone(fixture.outputPackage.latestOutput); + assert.throws(() => validateCanonicalWorkflowEvidence(fixture), /Auto resource candidate is missing/); + }); + for (const candidate of ['unexpected-native-candidate', '']) { + await t.test(`Expert nonnull native candidate ${JSON.stringify(candidate)} refuses`, () => { + const fixture = canonicalEvidenceFixture(); + fixture.run.task.resourceCandidateId = candidate; + assert.throws( + () => validateCanonicalWorkflowEvidence(fixture), + /Non-Auto task retains an Auto resource candidate/, + ); + }); + } + await t.test('Expert missing native candidate keeps measured graph-derived identity', () => { + const fixture = canonicalEvidenceFixture(); + delete fixture.run.task.resourceCandidateId; + assert.match(validateCanonicalWorkflowEvidence(fixture).resourceCandidateId, /^manual-resource-v1:/); + }); +}); + +test('standalone canonical source resolution rejects stale, ambiguous, builtin and unresolved declarations', () => { + const f = canonicalEvidenceFixture(); + const cases = [ + [ + 'stale graph', + (v) => { + v.manifest.graphHash = '0'.repeat(64); + }, + /graph hash/, + ], + [ + 'wrong authoring', + (v) => { + v.authoring.canonicalWorkflowId = 'other'; + }, + /authoring record/, + ], + [ + 'stale defaults', + (v) => { + v.authoring.defaultsPlan.sourceGraphSha256 = 'stale'; + }, + /defaults are stale/, + ], + [ + 'builtin', + (v) => { + v.manifest.requiredArtifacts = ['builtin://modiff/image-operations/v1']; + }, + /builtin qualification is unsupported/, + ], + [ + 'missing artifact', + (v) => { + v.authoring.artifactPlan.requiredArtifacts = []; + }, + /artifact set differs/, + ], + [ + 'mutable pin', + (v) => { + v.graph.nodes[0].data.params.revision.value = 'main'; + v.manifest.graphHash = canonicalJsonHash(v.graph); + v.authoring.canonicalGraph.sha256 = v.manifest.graphHash; + v.authoring.defaultsPlan.sourceGraphSha256 = v.manifest.graphHash; + }, + /immutable model pin/, + ], + [ + 'implicit component', + (v) => { + v.manifest.requiredArtifacts.push('example/hidden'); + v.authoring.artifactPlan.requiredArtifacts.push('example/hidden'); + }, + /Missing or ambiguous immutable model pin/, + ], + ]; + for (const [name, change, message] of cases) { + const value = structuredClone(f); + change(value); + assert.throws( + () => canonicalWorkflowAuthoringContract(value.manifest, value.graph, value.authoring), + message, + name, + ); + } +}); + +test('standalone canonical validation rejects unrelated, incomplete or drifted native evidence', () => { + const cases = [ + [ + 'task', + (f) => { + f.run.task.task_id = 'other'; + }, + /another task/, + ], + [ + 'failed', + (f) => { + f.run.task.status = 'failed'; + }, + /not completed/, + ], + [ + 'fallback', + (f) => { + f.run.task.attempt_index = 1; + }, + /Retry\/fallback/, + ], + [ + 'owner', + (f) => { + f.run.workflow_id = 'other'; + }, + /another workflow/, + ], + [ + 'raw output', + (f) => { + f.run.outputs = []; + }, + /uniquely present/, + ], + [ + 'input correlation', + (f) => { + f.run.outputs[0].runInputHash = 'other'; + }, + /runInputHash differs/, + ], + [ + 'form', + (f) => { + f.creator.metadata.studio.prompt = 'other'; + }, + /settings changed/, + ], + [ + 'default', + (f) => { + f.creator.apiGraph.nodes.generate.params.steps.value = 15; + }, + /defaults\/bindings differ/, + ], + [ + 'wire', + (f) => { + f.creator.apiGraph.nodes.generate.params.pipeline.sourceKey = 'other'; + }, + /defaults\/bindings differ/, + ], + [ + 'consumed field', + (f) => { + f.outputPackage.latestOutput.resolvedExecutionInputs.nodes[1].fields.width.value = 256; + f.run.outputs[0] = structuredClone(f.outputPackage.latestOutput); + }, + /Consumed field differs/, + ], + [ + 'consumed override', + (f) => { + f.outputPackage.latestOutput.resolvedExecutionInputs.nodes[1].fields.width = { source: 'override', value: 256 }; + f.run.outputs[0] = structuredClone(f.outputPackage.latestOutput); + }, + /overridden consumed scalar/, + ], + [ + 'consumed missing', + (f) => { + delete f.outputPackage.latestOutput.resolvedExecutionInputs.nodes[0].fields.model_id; + f.run.outputs[0] = structuredClone(f.outputPackage.latestOutput); + }, + /Consumed literal is missing/, + ], + [ + 'consumed omission', + (f) => { + f.outputPackage.latestOutput.resolvedExecutionInputs.nodes[0].omittedFields = { revision: 'oversize-string' }; + f.run.outputs[0] = structuredClone(f.outputPackage.latestOutput); + }, + /Consumed fields were omitted/, + ], + [ + 'consumed connected origin', + (f) => { + f.outputPackage.latestOutput.resolvedExecutionInputs.nodes[0].fields.revision = { + source: 'connected', + sourceNodeId: 'other', + sourcePortId: 'text', + value: 'a'.repeat(40), + }; + f.run.outputs[0] = structuredClone(f.outputPackage.latestOutput); + }, + /Connected or overridden/, + ], + [ + 'uncaptured', + (f) => { + f.outputPackage.latestOutput.resolvedExecutionInputs.uncapturedNodeIds = ['loader']; + f.run.outputs[0] = structuredClone(f.outputPackage.latestOutput); + }, + /incomplete/, + ], + [ + 'missing model', + (f) => { + f.target.modelSet.push({ repoId: 'example/missing', revision: 'e'.repeat(40) }); + }, + /Complete executed model set/, + ], + [ + 'source', + (f) => { + f.run.task.runtimeFingerprint.backendSource.gitCommit = 'f'.repeat(40); + }, + /source authority differs/, + ], + [ + 'runtime', + (f) => { + f.run.task.runtimeFingerprint = 'sha256:compact'; + }, + /Complete structured/, + ], + [ + 'resource recipe consumed identity', + (f) => { + f.outputPackage.latestOutput.apiGraphSnapshot.runtimeHints.offloadMode = 'none'; + f.outputPackage.apiGraph.runtimeHints.offloadMode = 'none'; + f.run.outputs[0] = structuredClone(f.outputPackage.latestOutput); + }, + /matching consumed offload_mode/, + ], + [ + 'memory', + (f) => { + f.run.task.runtimeMeasurement.processRssBytes = 0; + }, + /resource measurements differ/, + ], + [ + 'time', + (f) => { + f.run.task.completed_at += 1; + }, + /Completion time differs/, + ], + [ + 'blocker', + (f) => { + f.provenance.blockers.push('unqualified'); + }, + /retains blockers/, + ], + ]; + for (const [name, change, expected] of cases) { + const fixture = canonicalEvidenceFixture(); + change(fixture); + assert.throws(() => validateCanonicalWorkflowEvidence(fixture), expected, name); + } +}); diff --git a/scripts/resolved-execution-inputs.test.mjs b/scripts/resolved-execution-inputs.test.mjs index b70f9024..c2bc05e1 100644 --- a/scripts/resolved-execution-inputs.test.mjs +++ b/scripts/resolved-execution-inputs.test.mjs @@ -3,8 +3,171 @@ import { after, before, test } from 'node:test'; import { createServer } from 'vite'; import { spawnSync } from 'node:child_process'; import { fileURLToPath } from 'node:url'; +import { canonicalAccountingExecutionPlan } from './release-contract-core.mjs'; +import { canonicalJsonHash } from './canonical-json.mjs'; +import { actualAppliedAdapterFixtures, protocolFactoryArguments } from './canonical-provenance-fixtures.mjs'; +import { createRunProvenance, validateAppliedAdapterProof } from './live-proof-provenance.mjs'; let server, contracts, inputs, outputUtils, profiles, tasks; +let ddimAccountingFixture; +function actualDdimAccountingFixture() { + if (ddimAccountingFixture) return structuredClone(ddimAccountingFixture); + const backend = fileURLToPath(new URL('../../MoDiff/', import.meta.url)); + const python = + process.env.MODIFF_BACKEND_PYTHON || + `${backend}.venv/${process.platform === 'win32' ? 'Scripts/python.exe' : 'bin/python'}`; + const generated = spawnSync( + python, + [ + '-B', + '-c', + String.raw` +import importlib.util, json +from pathlib import Path +from pytest import MonkeyPatch +spec = importlib.util.spec_from_file_location('ddim_protocol', Path('tests/test_canonical_field_accounting.py')) +module = importlib.util.module_from_spec(spec) +spec.loader.exec_module(module) +with MonkeyPatch.context() as patch: + graph = module.ddim_graph() + receipt, _, _, _ = module.run_ddim(patch, graph) +print(json.dumps({'apiGraph': graph, 'receipt': receipt})) +`, + ], + { cwd: backend, encoding: 'utf8', maxBuffer: 2_000_000 }, + ); + assert.equal(generated.status, 0, generated.stderr); + ddimAccountingFixture = JSON.parse(generated.stdout); + return structuredClone(ddimAccountingFixture); +} + +function canonicalAccountingCase() { + const { apiGraph, receipt } = actualDdimAccountingFixture(); + const loader = Object.values(apiGraph.nodes).find((node) => node.action === 'LoadPipeline'); + return { + apiGraph, + expectedApiGraph: structuredClone(apiGraph), + consumed: receipt, + target: { + modelType: 'DDIMPipeline', + task: 'unconditional_image', + modelSet: [{ repoId: loader.params.model_id.value.value, revision: loader.params.revision.value }], + }, + }; +} + +test('mocked native DDIM accounting derives the unique executed owner without borrowing Preview CPU or hints', () => { + const value = canonicalAccountingCase(); + const graphBefore = JSON.stringify(value.apiGraph); + const receiptBefore = JSON.stringify(value.consumed); + const result = canonicalAccountingExecutionPlan(value); + assert.equal(result.ownerId, 'node-01'); + assert.equal(result.plan.modelType, 'DDIMPipeline'); + assert.equal(result.plan.dtype, 'float32'); + assert.equal(result.plan.device, 'cuda:0'); + assert.equal(result.plan.deviceMap, 'cuda', 'effective loader placement, not requested none'); + assert.equal(result.plan.quantizationMode, 'none'); + assert.equal(result.plan.offloadMode, 'none'); + assert.equal(result.plan.autoOffload, false); + assert.equal(result.plan.resourceMode, 'expert'); + assert.equal(result.plan.modelRepo, value.target.modelSet[0].repoId); + assert.match(result.hash, /^sha256:execution-plan-v1:[a-f0-9]{64}$/u); + assert.equal(value.apiGraph.runtimeHints, undefined); + assert.equal(JSON.stringify(value.apiGraph), graphBefore, 'never synthesize hints or rewrite original graph'); + assert.equal(JSON.stringify(value.consumed), receiptBefore, 'never rewrite native evidence'); + assert.equal(result.qualified, undefined, 'a recipe join is not release or native qualification'); +}); + +test('canonical accounting joins reject effective-control, metadata and producer forgeries', () => { + const section = (value, action) => value.consumed.nodes.find((row) => row.action === action).fieldAccounting; + const mutations = { + 'changed effective loader device': (value) => { + section(value, 'LoadPipeline').fields.device.value = 'cpu:0'; + }, + 'changed actual generator steps': (value) => { + section(value, 'UnconditionalGenerate').fields.num_inference_steps.value = 1; + }, + 'invented inactive control': (value) => { + section(value, 'UnconditionalGenerate').fields.num_inference_steps.disposition = 'inactive'; + section(value, 'UnconditionalGenerate').fields.num_inference_steps.reason = 'adapter-inactive'; + }, + 'forged consumed class label': (value) => { + section(value, 'UnconditionalGenerate').fields.class_label.disposition = 'consumed'; + delete section(value, 'UnconditionalGenerate').fields.class_label.reason; + }, + 'requested control differs': (value) => { + section(value, 'LoadPipeline').fields.enable_vae_slicing.inputValue = false; + }, + 'wrong scalar origin': (value) => { + section(value, 'UnconditionalGenerate').fields.seed.source = 'override'; + }, + 'missing literal': (value) => { + delete section(value, 'UnconditionalGenerate').fields.batch_size; + }, + 'unknown field': (value) => { + section(value, 'UnconditionalGenerate').fields.unknown = { + disposition: 'consumed', + source: 'literal', + inputValue: 1, + value: 1, + }; + }, + 'forged metadata': (value) => { + section(value, 'UnconditionalGenerate').fields.image_contract.sha256 = 'a'.repeat(64); + }, + 'wrong recipe producer': (value) => { + section(value, 'LoadPipeline').inputProjections.execution_recipe.sourceNodeId = 'node-02'; + }, + 'wrong recipe producer port': (value) => { + section(value, 'LoadPipeline').inputProjections.execution_recipe.sourcePortId = 'summary'; + }, + 'forged producer projection hash': (value) => { + section(value, 'DiffusersExecutionRecipe').outputProjections.execution_recipe.sha256 = 'a'.repeat(64); + }, + 'forged matching projection values': (value) => { + section(value, 'LoadPipeline').inputProjections.execution_recipe.values.device = 'cpu:0'; + section(value, 'DiffusersExecutionRecipe').outputProjections.execution_recipe.values.device = 'cpu:0'; + }, + 'missing quantizer projection': (value) => { + section(value, 'PipelineQuantizationConfigV2').outputProjections = {}; + }, + 'enabled quantizer': (value) => { + section(value, 'PipelineQuantizationConfigV2').outputProjections.quantization_config.values.disabled = false; + }, + 'unaccounted fields': (value) => { + section(value, 'LoadPipeline').unaccountedFields = ['unknown']; + }, + 'truncated accounting': (value) => { + value.consumed.fieldAccountingStatus.truncated = true; + }, + 'missing accounting': (value) => { + delete value.consumed.nodes[0].fieldAccounting; + }, + 'wrong immutable model': (value) => { + value.target.modelSet[0].revision = 'a'.repeat(40); + }, + 'unsupported model': (value) => { + value.target.modelType = 'UnknownPipeline'; + }, + 'conflicting invented runtime hints': (value) => { + value.apiGraph.runtimeHints = { resourceMode: 'auto' }; + }, + 'ambiguous owner': (value) => { + value.consumed.nodes[1].nodeId = value.consumed.nodes[0].nodeId; + }, + 'changed original graph': (value) => { + value.apiGraph.nodes['node-04'].params.num_inference_steps.value = 1; + }, + 'legacy scalar contradicts new accounting': (value) => { + value.consumed.nodes.find((row) => row.action === 'UnconditionalGenerate').fields.num_inference_steps.value = 1; + }, + }; + for (const [label, mutate] of Object.entries(mutations)) { + const value = canonicalAccountingCase(); + mutate(value); + assert.throws(() => canonicalAccountingExecutionPlan(value), undefined, label); + } +}); before(async () => { globalThis.window = { location: { origin: 'http://localhost' } }; // These SSR imports never use HMR. Middleware mode alone still watches the @@ -27,6 +190,123 @@ after(async () => { delete globalThis.window; }); +test('actual mocked DDIM native accounting survives history without changing legacy v1 bytes', () => { + // Real five-node canonical export and native accounting, mocked allocation and + // inference only. This fixture is not a native/model/hardware qualification. + const { receipt: capture } = actualDdimAccountingFixture(); + const identity = { taskId: capture.taskId, attemptIndex: capture.attemptIndex, nodeId: capture.nodeId }; + const legacy = structuredClone(capture); + delete legacy.fieldAccountingStatus; + for (const row of legacy.nodes) delete row.fieldAccounting; + const before = JSON.stringify(inputs.coerceResolvedExecutionInputs(legacy, identity)); + const normalized = inputs.coerceResolvedExecutionInputs(capture, identity); + assert.ok( + normalized.nodes.every((row) => row.fieldAccounting?.complete), + 'new accounting must survive parsing', + ); + assert.deepEqual(normalized.fieldAccountingStatus, { schemaVersion: 1, truncated: false }); + const stripped = structuredClone(normalized); + delete stripped.fieldAccountingStatus; + for (const row of stripped.nodes) delete row.fieldAccounting; + assert.equal(JSON.stringify(stripped), before, 'the optional extension must not alter any normalized legacy byte'); + const restored = contracts.coerceStudioOutput({ + id: 'protocol-only', + url: '/fixture.png', + ...identity, + resolvedExecutionInputs: capture, + }); + assert.deepEqual(restored.resolvedExecutionInputs, normalized); + assert.equal(JSON.stringify(inputs.coerceResolvedExecutionInputs(legacy, identity)), before); +}); + +test('optional accounting rejects unknown scopes, objects, origins, projections and incomplete claims', () => { + const { receipt: original } = actualDdimAccountingFixture(); + const identity = { taskId: original.taskId, attemptIndex: original.attemptIndex, nodeId: original.nodeId }; + const quant = (value) => value.nodes.find((row) => row.action === 'PipelineQuantizationConfigV2'); + const recipeNode = (value) => value.nodes.find((row) => row.action === 'DiffusersExecutionRecipe'); + const changes = { + 'unknown scope': (value) => { + quant(value).action = 'Unknown'; + }, + 'unknown accounting field': (value) => { + quant(value).fieldAccounting.fields.token = { + disposition: 'consumed', + inputValue: 'private', + value: 'private', + source: 'literal', + }; + }, + 'opaque value': (value) => { + quant(value).fieldAccounting.fields.backend.value = { private: true }; + }, + 'extra field key': (value) => { + quant(value).fieldAccounting.fields.backend.token = 'private'; + }, + 'unknown disposition': (value) => { + quant(value).fieldAccounting.fields.backend.disposition = 'approved'; + }, + 'invented reason': (value) => { + quant(value).fieldAccounting.fields.dtype.reason = 'approved'; + }, + 'connected origin missing port': (value) => { + delete recipeNode(value).fieldAccounting.inputProjections.quantization_config.sourcePortId; + }, + 'stale literal origin': (value) => { + quant(value).fieldAccounting.fields.backend.sourceNodeId = 'old'; + }, + 'unknown projection field': (value) => { + quant(value).fieldAccounting.outputProjections.quantization_config.values.secret = 'private'; + }, + 'enabled quantization': (value) => { + quant(value).fieldAccounting.outputProjections.quantization_config.values.disabled = false; + }, + 'wrong projection kind': (value) => { + quant(value).fieldAccounting.outputProjections.quantization_config.kind = 'runtime-object'; + }, + 'missing projection': (value) => { + quant(value).fieldAccounting.outputProjections = {}; + }, + 'false complete': (value) => { + quant(value).fieldAccounting.omittedFields.backend = 'missing'; + }, + 'missing status': (value) => { + delete value.fieldAccountingStatus; + }, + 'unknown status version': (value) => { + value.fieldAccountingStatus.schemaVersion = 2; + }, + 'oversize section': (value) => { + quant(value).fieldAccounting.unaccountedFields = Array(20).fill('x'.repeat(16000)); + quant(value).fieldAccounting.complete = false; + }, + }; + for (const [label, change] of Object.entries(changes)) { + const value = structuredClone(original); + change(value); + assert.equal(inputs.coerceResolvedExecutionInputs(value, identity), undefined, label); + } + const partial = structuredClone(original); + partial.fieldAccountingStatus.truncated = true; + delete quant(partial).fieldAccounting; + recipeNode(partial).fieldAccounting = { + schemaVersion: 1, + fields: {}, + inputProjections: {}, + outputProjections: {}, + unaccountedFields: [], + omittedFields: { accounting: 'record-size-limit' }, + complete: false, + }; + const parsed = inputs.coerceResolvedExecutionInputs(partial, identity); + assert.equal(parsed.fieldAccountingStatus.truncated, true); + assert.equal(recipeNode(parsed).fieldAccounting.complete, false); + assert.equal(parsed.truncated, false, 'optional extension limits never change v1 truncation'); + assert.deepEqual(parsed.summary, original.summary); + const old = receipt(); + const legacyIdentity = { taskId: 'actual-task', attemptIndex: 2, nodeId: 'preview' }; + assert.equal(JSON.stringify(inputs.coerceResolvedExecutionInputs(old, legacyIdentity)), JSON.stringify(old)); +}); + test('SSR receipt imports and explicit watch requests allocate no filesystem watchers', () => { assert.equal(server.config.server.watch, null); assert.deepEqual(server.watcher.getWatched(), {}); @@ -219,6 +499,275 @@ function receipt() { }; } +function appliedAdapterReceipt(observation = 'activated') { + const capture = receipt(); + const adapters = [0, 1, 0.75].map((scale, index) => ({ + adapterName: `protocol_${index}`, + scale, + descriptorSha256: String(index + 1).repeat(64), + artifact: { + source: 'hub', + repository: `protocol/adapter-${index}`, + revision: 'a'.repeat(40), + weightName: 'adapter.safetensors', + sha256: String(index + 4).repeat(64), + }, + scheduler: null, + })); + capture.nodes.push({ + nodeId: 'loader', + module: 'modules.ModularDiffusers', + action: 'ModelsLoader', + fields: {}, + omittedFields: {}, + appliedAdapters: { + schemaVersion: 1, + status: 'complete', + source: 'backend-adapter-application', + applicationId: 'a'.repeat(32), + observation, + adapters, + stateSha256: `sha256:applied-adapters-v1:${canonicalJsonHash({ adapters })}`, + }, + }); + capture.appliedAdaptersStatus = { schemaVersion: 1, truncated: false }; + return capture; +} + +test('applied adapter observations survive history without changing any legacy receipt byte', () => { + for (const observation of ['activated', 'reused']) { + const capture = appliedAdapterReceipt(observation); + const identity = { taskId: capture.taskId, attemptIndex: capture.attemptIndex, nodeId: capture.nodeId }; + const legacy = structuredClone(capture); + delete legacy.appliedAdaptersStatus; + delete legacy.nodes[1].appliedAdapters; + const before = JSON.stringify(inputs.coerceResolvedExecutionInputs(legacy, identity)); + const result = inputs.coerceResolvedExecutionInputs(capture, identity); + assert.deepEqual(result.nodes[1].appliedAdapters, capture.nodes[1].appliedAdapters); + assert.deepEqual(result.appliedAdaptersStatus, capture.appliedAdaptersStatus); + const stripped = structuredClone(result); + delete stripped.appliedAdaptersStatus; + delete stripped.nodes[1].appliedAdapters; + assert.equal(JSON.stringify(stripped), before); + const restored = contracts.coerceStudioOutput({ + id: 'protocol-only', + url: '/fixture.png', + ...identity, + resolvedExecutionInputs: capture, + }); + assert.deepEqual(restored.resolvedExecutionInputs, result); + } + const unicodeAlias = appliedAdapterReceipt(); + unicodeAlias.nodes[1].appliedAdapters.adapters[0].artifact.weightName = '😀'.repeat(140) + '.safetensors'; + assert.ok( + inputs.coerceResolvedExecutionInputs(unicodeAlias, unicodeAlias), + 'Backend alias bounds count Unicode code points.', + ); +}); + +test('actual backend applied adapter producer survives history and locks Python numeric and lifecycle identities', () => { + for (const [kind, { receipt: capture, originalReceipt, apiGraph }] of Object.entries( + actualAppliedAdapterFixtures(), + )) { + const identity = { taskId: capture.taskId, attemptIndex: capture.attemptIndex, nodeId: capture.nodeId }; + const parsed = inputs.coerceResolvedExecutionInputs(capture, identity); + assert.ok(parsed, kind); + const original = capture.nodes.find((node) => node.appliedAdapters)?.appliedAdapters; + assert.deepEqual(parsed.nodes.find((node) => node.appliedAdapters)?.appliedAdapters, original, kind); + const restored = contracts.coerceStudioOutput({ + id: 'protocol-only', + url: '/fixture.png', + ...identity, + resolvedExecutionInputs: capture, + }); + assert.deepEqual(restored.resolvedExecutionInputs, parsed); + const args = protocolFactoryArguments(apiGraph); + args.taskId = capture.taskId; + args.executedOutput = { + ...args.executedOutput, + ...identity, + apiGraphSnapshot: apiGraph, + resolvedExecutionInputs: capture, + }; + args.executionReceipt = { + ...args.executionReceipt, + task_id: capture.taskId, + attempt_index: capture.attemptIndex, + status: 'completed', + }; + const proof = createRunProvenance(args); + // This tiny adapter-dispatch fixture has no declared resource plan. Keep + // that existing hold; adapter evidence must not manufacture qualification. + const baselineArgs = structuredClone(args); + delete baselineArgs.executedOutput.resolvedExecutionInputs; + assert.deepEqual(proof.blockers, createRunProvenance(baselineArgs).blockers, kind); + assert.deepEqual(proof.blockers, ['execution.resourceCandidateId is missing.'], kind); + if (kind === 'unavailable') { + assert.throws(() => validateAppliedAdapterProof(proof, { required: true }), /unavailable/); + continue; + } + const locked = validateAppliedAdapterProof(proof, { required: true }).owners[0].application; + assert.deepEqual(locked, original); + assert.equal(locked.stateSha256, `sha256:applied-adapters-v1:${canonicalJsonHash({ adapters: locked.adapters })}`); + assert.deepEqual( + locked.adapters.map((item) => item.scale), + kind === 'empty' ? [] : [0, 1, 0.75], + ); + if (kind !== 'empty') + assert.ok(locked.adapters.every((item) => item.artifact.weightName === 'weights/adapter.safetensors')); + assert.equal(locked.observation, kind === 'reused' ? 'reused' : 'activated'); + if (kind === 'reused') + assert.equal( + locked.applicationId, + originalReceipt.nodes.find((node) => node.appliedAdapters).appliedAdapters.applicationId, + ); + const legacy = structuredClone(capture); + delete legacy.appliedAdaptersStatus; + for (const node of legacy.nodes) delete node.appliedAdapters; + const stripped = structuredClone(parsed); + delete stripped.appliedAdaptersStatus; + for (const node of stripped.nodes) delete node.appliedAdapters; + assert.equal( + JSON.stringify(stripped), + JSON.stringify(inputs.coerceResolvedExecutionInputs(legacy, identity)), + kind, + ); + } +}); + +test('applied adapter history rejects unknown scopes, opaque values and malformed lifecycle evidence', () => { + const changes = { + 'foreign owner': (v) => { + v.nodes[1].action = 'AutoModelLoader'; + }, + 'foreign module': (v) => { + v.nodes[1].module = 'modules.Foreign'; + }, + 'missing status': (v) => { + delete v.appliedAdaptersStatus; + }, + 'unknown status key': (v) => { + v.appliedAdaptersStatus.secret = 'opaque'; + }, + 'false complete envelope': (v) => { + delete v.nodes[1].appliedAdapters; + }, + 'unknown section key': (v, a) => { + a.localPath = '/private'; + }, + 'unknown version': (v, a) => { + a.schemaVersion = 2; + }, + 'wrong source': (v, a) => { + a.source = 'submitted-graph'; + }, + 'invalid application ID': (v, a) => { + a.applicationId = 'A'.repeat(32); + }, + 'invented observation': (v, a) => { + a.observation = 'assumed'; + }, + 'invalid state hash': (v, a) => { + a.stateSha256 = 'a'.repeat(64); + }, + 'too many adapters': (v, a) => { + a.adapters = Array(33).fill(a.adapters[0]); + }, + 'oversize UTF8 payload': (v, a) => { + a.adapters = Array.from({ length: 32 }, (_, index) => ({ + ...a.adapters[0], + adapterName: `style_${index}`, + artifact: { ...a.adapters[0].artifact, weightName: '界'.repeat(240) + '.safetensors' }, + })); + }, + 'duplicate names': (v, a) => { + a.adapters[1].adapterName = a.adapters[0].adapterName; + }, + 'oversize name': (v, a) => { + a.adapters[0].adapterName = 'a'.repeat(129); + }, + 'path name': (v, a) => { + a.adapters[0].adapterName = 'C:/private/adapter'; + }, + 'url name': (v, a) => { + a.adapters[0].adapterName = 'https://private/adapter'; + }, + 'repository url': (v, a) => { + a.adapters[0].artifact.repository = 'https://private/adapter'; + }, + 'repository alias': (v, a) => { + a.adapters[0].artifact.repository = 'protocol/adapter.git'; + }, + 'unsupported weight': (v, a) => { + a.adapters[0].artifact.weightName = 'adapter.bin'; + }, + 'boolean scale': (v, a) => { + a.adapters[0].scale = false; + }, + 'string scale': (v, a) => { + a.adapters[0].scale = '1'; + }, + 'out of bounds scale': (v, a) => { + a.adapters[0].scale = 21; + }, + 'opaque scale': (v, a) => { + a.adapters[0].scale = {}; + }, + 'nonfinite scale': (v, a) => { + a.adapters[0].scale = Infinity; + }, + 'unknown descriptor digest': (v, a) => { + a.adapters[0].descriptorSha256 = 'bad'; + }, + 'opaque artifact': (v, a) => { + a.adapters[0].artifact.private = '/private'; + }, + 'coerced source': (v, a) => { + a.adapters[0].artifact.source = ['local']; + delete a.adapters[0].artifact.repository; + delete a.adapters[0].artifact.revision; + }, + 'mutable revision': (v, a) => { + a.adapters[0].artifact.revision = 'main'; + }, + 'path traversal': (v, a) => { + a.adapters[0].artifact.weightName = '../weights.safetensors'; + }, + 'bad artifact digest': (v, a) => { + a.adapters[0].artifact.sha256 = 'A'.repeat(64); + }, + 'opaque scheduler': (v, a) => { + a.adapters[0].scheduler = { className: 'Scheduler', config: {} }; + }, + 'coerced scheduler': (v, a) => { + a.adapters[0].scheduler = []; + }, + }; + for (const [label, mutate] of Object.entries(changes)) { + const capture = appliedAdapterReceipt(); + mutate(capture, capture.nodes[1].appliedAdapters); + assert.equal(inputs.coerceResolvedExecutionInputs(capture, capture), undefined, label); + } + for (const section of [ + { schemaVersion: 1, status: 'unavailable', reason: 'unobserved-application' }, + { schemaVersion: 1, status: 'unavailable', reason: 'owner-invalidated' }, + { schemaVersion: 1, status: 'truncated', reason: 'record-size-limit' }, + ]) { + const capture = appliedAdapterReceipt(); + capture.nodes[1].appliedAdapters = section; + assert.deepEqual(inputs.coerceResolvedExecutionInputs(capture, capture).nodes[1].appliedAdapters, section); + capture.nodes[1].appliedAdapters.reason = [section.reason]; + assert.equal(inputs.coerceResolvedExecutionInputs(capture, capture), undefined); + } + const dropped = appliedAdapterReceipt(); + delete dropped.nodes[1].appliedAdapters; + dropped.appliedAdaptersStatus.truncated = true; + assert.deepEqual( + inputs.coerceResolvedExecutionInputs(dropped, dropped).appliedAdaptersStatus, + dropped.appliedAdaptersStatus, + ); +}); + test('only the actual native loader capture accepts the exact consumed weight format', () => { const identity = { taskId: 'actual-task', attemptIndex: 2, nodeId: 'preview' }; const make = (value, module = 'modules.ModularDiffusers', action = 'ModelsLoader') => { diff --git a/scripts/server-actions.test.mjs b/scripts/server-actions.test.mjs index bc0040a1..69982097 100644 --- a/scripts/server-actions.test.mjs +++ b/scripts/server-actions.test.mjs @@ -546,6 +546,56 @@ test('node cache deletion deduplicates ids and validates the echoed node list', assert.deepEqual(result.nodes, ['node-a', 'node-b']); }); +test('full cache release survives the old deadline but retains a finite operation-specific timeout', async (t) => { + t.mock.timers.enable({ apis: ['setTimeout'] }); + let signal, complete; + globalThis.fetch = (_url, init) => + new Promise((resolve, reject) => { + signal = init.signal; + complete = () => resolve(jsonResponse({ error: false, nodes: ['setup', 'loader'] })); + signal.addEventListener('abort', () => reject(signal.reason), { once: true }); + }); + const pending = actionsModule.deleteNodeCache(['setup']).then( + (value) => ({ value }), + (error) => ({ error }), + ); + try { + t.mock.timers.tick(15_001); + assert.equal(signal.aborted, false, 'Actual component teardown can finish after the old generic deadline.'); + complete(); + assert.deepEqual((await pending).value, { error: false, nodes: ['setup', 'loader'] }); + const stalled = actionsModule.deleteNodeCache(['setup']).catch((error) => error); + t.mock.timers.tick(119_999); + assert.equal(signal.aborted, false); + t.mock.timers.tick(1); + const error = await stalled; + assert.equal(error.kind, 'timeout'); + assert.match(error.message, /120000ms/); + } finally { + complete(); + await pending; + } +}); + +test('cache release timeout does not alter recompute or generic requests and invalid acknowledgements reject', async (t) => { + t.mock.timers.enable({ apis: ['setTimeout'] }); + globalThis.fetch = (_url, init) => + new Promise((_resolve, reject) => { + init.signal.addEventListener('abort', () => reject(init.signal.reason), { once: true }); + }); + for (const action of [() => actionsModule.recomputeNodeOutputs(['setup']), () => actionsModule.cleanupGpuMemory()]) { + const pending = action().catch((error) => error); + t.mock.timers.tick(15_000); + const error = await pending; + assert.equal(error.kind, 'timeout'); + assert.match(error.message, /15000ms/); + } + for (const payload of [{ error: false }, { error: false, nodes: null }, { error: false, nodes: [1] }]) { + globalThis.fetch = async () => jsonResponse(payload); + await assert.rejects(actionsModule.deleteNodeCache(['setup']), /invalid node list/); + } +}); + test('empty cache deletion is a no-op and does not contact the backend', async () => { let calls = 0; globalThis.fetch = async () => { diff --git a/scripts/template-qualification.mjs b/scripts/template-qualification.mjs index 22d2ce46..09fa8bfc 100644 --- a/scripts/template-qualification.mjs +++ b/scripts/template-qualification.mjs @@ -4,12 +4,82 @@ import { basename, dirname, join, relative, resolve } from 'node:path'; import { fileURLToPath } from 'node:url'; import { loadTemplateRuntime } from './template-gallery-harness.mjs'; -import { canonicalWorkflowContract, findCanonicalWorkflowRecord } from './release-contract-core.mjs'; +import { validateRunProvenance } from './live-proof-provenance.mjs'; +import { + canonicalWorkflowContract, + canonicalEvidenceWritePath, + findCanonicalWorkflowRecord, + readCanonicalWorkflowEvidence, +} from './release-contract-core.mjs'; const SCRIPT_DIR = dirname(fileURLToPath(import.meta.url)); const CLIENT_ROOT = resolve(SCRIPT_DIR, '..'); const BACKEND_ROOT = resolve(process.env.MODIFF_BACKEND_DIR || join(CLIENT_ROOT, '..', 'MoDiff')); const qualificationArgs = process.argv.slice(2); +if (qualificationArgs[0] === '--workflow' && qualificationArgs.length === 2 && qualificationArgs[1]) { + if (!process.env.MODIFF_CANONICAL_WORKFLOW_EVIDENCE) { + throw new Error('Set MODIFF_CANONICAL_WORKFLOW_EVIDENCE to the retained original canonical evidence descriptor.'); + } + const evidencePath = resolve(process.env.MODIFF_CANONICAL_WORKFLOW_EVIDENCE); + const result = await readCanonicalWorkflowEvidence({ + clientRoot: CLIENT_ROOT, + backendRoot: BACKEND_ROOT, + workflowId: qualificationArgs[1], + evidencePath, + }); + const descriptorBytes = result.descriptorBytes; + const descriptorHash = sha256Bytes(descriptorBytes); + const retainedDirectory = canonicalEvidenceWritePath( + BACKEND_ROOT, + `data/qualification/release/canonical-workflow-evidence/${descriptorHash}`, + ); + if (existsSync(retainedDirectory)) + throw new Error('Canonical evidence destination already exists; retain and inspect the existing receipt.'); + for (const ref of result.retainedFiles) { + if (['evidence.json', 'derived-provenance.json'].includes(ref.path)) + throw new Error('Evidence file uses a reserved retention name.'); + } + const registryPath = canonicalEvidenceWritePath( + BACKEND_ROOT, + 'data/qualification/release/canonical-workflow-run-receipts.v1.json', + ); + const previous = existsSync(registryPath) + ? readJson(registryPath) + : { schemaVersion: 1, format: 'modiff.canonical-workflow-run-receipt-registry.v1', receipts: [] }; + if ( + previous.schemaVersion !== 1 || + previous.format !== 'modiff.canonical-workflow-run-receipt-registry.v1' || + !Array.isArray(previous.receipts) + ) { + throw new Error('Canonical workflow receipt registry has an invalid schema.'); + } + mkdirSync(retainedDirectory, { recursive: true }); + for (const ref of result.retainedFiles) { + const destination = canonicalEvidenceWritePath(retainedDirectory, ref.path); + mkdirSync(dirname(destination), { recursive: true }); + if (!existsSync(destination)) copyFileSync(ref.absolutePath, destination); + if (sha256Bytes(readFileSync(destination)) !== ref.sha256) + throw new Error('Retained original evidence hash differs.'); + } + writeFileSync(join(retainedDirectory, 'evidence.json'), descriptorBytes, { flag: 'wx' }); + writeFileSync(join(retainedDirectory, 'derived-provenance.json'), `${JSON.stringify(result.provenance, null, 2)}\n`, { + flag: 'wx', + }); + const receipt = { + ...result.receipt, + evidencePath: relative(BACKEND_ROOT, join(retainedDirectory, 'evidence.json')).split('\\').join('/'), + evidenceSha256: descriptorHash, + evidenceBytes: descriptorBytes.length, + }; + const receipts = [...previous.receipts, receipt].sort( + (a, b) => a.workflowId.localeCompare(b.workflowId) || a.capturedAt.localeCompare(b.capturedAt), + ); + writeFileSync(registryPath, `${JSON.stringify({ ...previous, receipts }, null, 2)}\n`); + console.log( + `Retained exact canonical execution evidence for ${receipt.workflowId}; approval and release policy are unchanged.`, + ); + process.exit(0); +} if (qualificationArgs.length > 1 || qualificationArgs.some((value) => value !== '--allow-blocked-probe')) { throw new Error('Template qualification accepts only one optional --allow-blocked-probe argument.'); } @@ -84,6 +154,12 @@ if (Number(provenance.schemaVersion) < 2 || provenance.format !== 'modiff.live-p if ((provenance.blockers ?? []).length > 0) { throw new Error(`Template proof contains blocker(s): ${provenance.blockers.join(' ')}`); } +// Optional applied-state claims must authenticate their own observations and +// lock. Historical proofs without this extension keep their original scope. +if (provenance.adapterApplications !== undefined || provenance.adapterApplicationsHash !== undefined) { + const blockers = validateRunProvenance(provenance); + if (blockers.length) throw new Error(`Applied adapter proof is invalid: ${blockers.join(' ')}`); +} const runtime = await loadTemplateRuntime(CLIENT_ROOT, { includePlanning: allowBlockedProbe }); const templateId = provenance.template?.id ?? status.templateId; diff --git a/scripts/template-qualification.test.mjs b/scripts/template-qualification.test.mjs index aec95e0c..81f73fdc 100644 --- a/scripts/template-qualification.test.mjs +++ b/scripts/template-qualification.test.mjs @@ -1,12 +1,32 @@ import assert from 'node:assert/strict'; -import { existsSync, mkdirSync, mkdtempSync, readFileSync, realpathSync, rmSync, writeFileSync } from 'node:fs'; +import { + existsSync, + lstatSync, + mkdirSync, + mkdtempSync, + readFileSync, + realpathSync, + rmSync, + symlinkSync, + writeFileSync, +} from 'node:fs'; import { tmpdir } from 'node:os'; import { basename, dirname, join, resolve } from 'node:path'; import { spawnSync } from 'node:child_process'; +import { createHash } from 'node:crypto'; import test from 'node:test'; import { canonicalJsonHash } from './canonical-json.mjs'; -import { canonicalWorkflowContract } from './release-contract-core.mjs'; +import { + canonicalWorkflowContract, + canonicalEvidenceWritePath, + exportCanonicalWorkflowGraphs, + readCanonicalEvidenceFile, + readCanonicalWorkflowEvidence, + validateCanonicalWorkflowEvidence, +} from './release-contract-core.mjs'; +import { canonicalGraphIdentity, sha256Value } from './live-proof-provenance.mjs'; +import { mockedDdimAccountingFixture } from './canonical-provenance-fixtures.mjs'; import { loadTemplateRuntime } from './template-gallery-harness.mjs'; const ROOT = resolve(import.meta.dirname, '..'); @@ -261,6 +281,7 @@ test('experimental canonical LoRA variants require blocked-probe opt-in and reta await t.test(templateId, async () => { const directory = mkdtempSync(join(tmpdir(), 'modiff-template-qualification-experimental-')); const provenance = await fixture(templateId); + assert.equal(provenance.adapterApplications, undefined, 'Historical submitted-graph proofs remain optional.'); try { const ordinary = qualificationFixtureProcess(directory, provenance, [], { experimental: true }); assert.notEqual(ordinary.result.status, 0); @@ -295,6 +316,22 @@ test('experimental canonical LoRA variants require blocked-probe opt-in and reta } }); +test('optional applied adapter observations cannot bypass validation at recording time', async () => { + const directory = mkdtempSync(join(tmpdir(), 'modiff-template-qualification-applied-adapters-')); + try { + const provenance = await fixture(); + provenance.adapterApplications = { schemaVersion: 1, source: 'invented' }; + provenance.adapterApplicationsHash = `sha256:adapter-applications-v1:${'a'.repeat(64)}`; + const { result, registryPath } = qualificationFixtureProcess(directory, provenance); + assert.notEqual(result.status, 0); + assert.match(result.stderr, /Applied adapter proof is invalid/); + assert.equal(existsSync(registryPath), false); + assert.equal(existsSync(join(directory, 'retained')), false); + } finally { + disposeFixture(directory); + } +}); + test('blocked-probe lookup rejects a stale experimental canonical graph before retaining evidence', async () => { const directory = mkdtempSync(join(tmpdir(), 'modiff-template-qualification-experimental-stale-')); try { @@ -447,3 +484,468 @@ test('template qualification rejects unknown or repeated lookup options', () => assert.match(result.stderr, /only one optional --allow-blocked-probe argument/); } }); + +test('standalone canonical recording has an explicit evidence boundary without a public template lookup', () => { + const result = spawnSync(process.execPath, [SCRIPT, '--workflow', 'AllegroPipeline:text_to_video'], { + cwd: ROOT, + encoding: 'utf8', + timeout: 30_000, + env: { ...process.env, MODIFF_CANONICAL_WORKFLOW_EVIDENCE: '' }, + }); + assert.notEqual(result.status, 0); + assert.match(result.stderr, /MODIFF_CANONICAL_WORKFLOW_EVIDENCE/); + assert.doesNotMatch(result.stderr, /not in the runtime catalog/); +}); + +async function writeStandaloneEvidence(directory, { input = false, accounting = false } = {}) { + const nativeFixture = accounting ? mockedDdimAccountingFixture() : null; + const backendRoot = join(directory, 'backend'); + const evidenceRoot = join(directory, 'originals'); + mkdirSync(evidenceRoot, { recursive: true }); + const write = (path, value) => { + mkdirSync(dirname(path), { recursive: true }); + const bytes = Buffer.isBuffer(value) ? value : Buffer.from(`${JSON.stringify(value, null, 2)}\n`); + writeFileSync(path, bytes); + return { + path: path.slice(evidenceRoot.length + 1).replaceAll('\\', '/'), + bytes: bytes.length, + sha256: createHash('sha256').update(bytes).digest('hex'), + }; + }; + const revision = nativeFixture?.apiGraph.nodes['node-01'].params.revision.value ?? 'a'.repeat(40); + const modelRepo = nativeFixture?.apiGraph.nodes['node-01'].params.model_id.value.value ?? 'synthetic/model'; + const value = (x, type = 'string') => ({ value: x, type }); + let graph = { + nodes: [ + { + id: 'loader', + type: 'custom', + position: { x: 0, y: 0 }, + data: { + module: 'modules.DiffusersImage', + action: 'LoadPipeline', + params: { + model_id: { ...value({ source: 'hub', value: 'synthetic/model' }), display: 'modelselect' }, + revision: value(revision), + dtype: value('float32'), + auto_offload: value(false, 'bool'), + offload_mode: value('none'), + pipeline: { display: 'output', type: 'pipeline' }, + }, + }, + }, + { + id: 'generate', + type: 'custom', + position: { x: 200, y: 0 }, + data: { + module: 'modules.DiffusersImage', + action: 'Generate', + params: { + pipeline: { display: 'input', type: 'pipeline' }, + prompt: value('Synthetic metadata-only protocol test'), + seed: { ...value({ value: 7, isRandom: false }, 'int'), display: 'random' }, + width: value(1, 'int'), + height: value(1, 'int'), + image: { display: 'output', type: 'image' }, + }, + }, + }, + { + id: 'preview', + type: 'custom', + position: { x: 400, y: 0 }, + data: { module: 'modules.Image', action: 'Preview', params: { image: { display: 'input', type: 'image' } } }, + }, + ], + edges: [ + { id: 'e1', source: 'loader', target: 'generate', sourceHandle: 'pipeline', targetHandle: 'pipeline' }, + { id: 'e2', source: 'generate', target: 'preview', sourceHandle: 'image', targetHandle: 'image' }, + ], + }; + if (nativeFixture) graph = nativeFixture.graph; + if (input) + graph.nodes[1].data.params.input_image = { + ...value(input === true ? '@data/images/synthetic.png' : input), + display: 'filebrowser', + }; + const manifest = { + id: accounting ? 'DDIMPipeline:unconditional_image' : 'SyntheticPipeline:text_to_image', + modelType: accounting ? 'DDIMPipeline' : 'SyntheticPipeline', + mode: accounting ? 'unconditional_image' : 'text_to_image', + sourceTemplateId: 'task-template:synthetic:text-to-image:v1', + graphPath: 'studio/synthetic.json', + graphHash: canonicalJsonHash(graph), + requiredArtifacts: [modelRepo], + }; + write(join(backendRoot, 'data/graphs', manifest.graphPath), graph); + write(join(backendRoot, 'data/workflow-library-manifest.json'), { workflows: [manifest] }); + write(join(backendRoot, 'data/model-artifact-catalog.json'), { + models: [{ modelType: manifest.modelType, baseRepo: modelRepo, baseRevision: revision }], + }); + write(join(backendRoot, 'data/template-authoring-specs.v1.json'), { + specifications: [ + { + id: 'template-authoring:synthetic', + canonicalWorkflowId: manifest.id, + modelType: manifest.modelType, + mode: manifest.mode, + canonicalGraph: { path: manifest.graphPath, sha256: manifest.graphHash }, + defaultsPlan: { sourceGraphSha256: manifest.graphHash }, + artifactPlan: { requiredArtifacts: manifest.requiredArtifacts }, + outputPlan: { minimumAssetCount: 1, mediaKinds: ['image'] }, + }, + ], + }); + const [api] = await exportCanonicalWorkflowGraphs(ROOT, [graph]); + if (nativeFixture) + assert.equal(canonicalGraphIdentity(api).hash, canonicalGraphIdentity(nativeFixture.apiGraph).hash); + else + api.runtimeHints = { + modelType: manifest.modelType, + dtype: 'float32', + offloadMode: 'none', + autoOffload: false, + quantizationMode: 'none', + }; + const source = { gitCommit: 'b'.repeat(40), files: [{ path: 'main.py', sha256: 'c'.repeat(64) }] }; + source.fingerprint = sha256Value('backend-source-v1', source); + const runtime = { + fingerprint: 'sha256:synthetic-runtime', + packages: { torch: 'synthetic-test-only' }, + torch: { version: 'synthetic-test-only' }, + work_dir: '/synthetic/work', + data_dir: '/synthetic/data', + backendSource: { + schemaVersion: 1, + claim: 'process_start_backend_source_identity', + gitCommit: source.gitCommit, + fingerprint: source.fingerprint, + fileCount: 1, + capturedAt: '2026-10-27T00:00:00.000Z', + }, + }; + const form = { + modelType: manifest.modelType, + mode: manifest.mode, + prompt: 'Synthetic metadata-only protocol test', + seed: 7, + }; + const task = { + task_id: nativeFixture?.receipt.taskId ?? 'synthetic-task', + status: 'completed', + attempt_index: 0, + started_at: 100, + completed_at: 101, + runtimeFingerprint: runtime, + runtimeMeasurement: { elapsedSeconds: 1, processRssBytes: 4096 }, + }; + // A one-pixel PNG fixture, not generated model output. + const media = write( + join(evidenceRoot, 'output.png'), + Buffer.from( + 'iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mP8/x8AAwMCAO+jhvcAAAAASUVORK5CYII=', + 'base64', + ), + ); + const output = { + id: 'synthetic-output', + taskId: task.task_id, + clientRunId: 'synthetic-run', + runInputHash: 'run_synthetic', + workflowTabId: 'synthetic-owned', + attemptIndex: 0, + nodeId: nativeFixture?.receipt.nodeId ?? 'preview', + fieldKey: 'image', + formSnapshot: form, + graphSnapshot: graph, + apiGraphSnapshot: api, + mediaHash: `sha256:bytes:${media.sha256}`, + mediaItems: [ + { + backendPath: '@data/studio/outputs/synthetic.png', + mediaHash: `sha256:bytes:${media.sha256}`, + byteSize: media.bytes, + }, + ], + resolvedExecutionInputs: nativeFixture?.receipt ?? { + source: 'backend-execution', + taskId: task.task_id, + attemptIndex: 0, + truncated: false, + uncapturedNodeIds: [], + nodes: Object.entries(api.nodes).map(([nodeId, node]) => ({ + nodeId, + module: node.module, + action: node.action, + fields: Object.fromEntries( + Object.entries(node.params) + .filter(([, p]) => Object.hasOwn(p, 'value') && !p.sourceId) + .map(([key, p]) => [ + key, + { source: 'literal', value: p.value?.source === 'hub' ? p.value.value : p.value }, + ]), + ), + })), + }, + }; + const creator = { + manifest: { packageType: 'modiff-workflow-share' }, + metadata: { studio: form }, + graph, + apiGraph: api, + }; + const outputPackage = { manifest: { packageType: 'modiff-output-package' }, apiGraph: api, latestOutput: output }; + const descriptor = { + schemaVersion: 1, + format: 'modiff.canonical-workflow-evidence.v1', + workflowId: manifest.id, + creatorPackage: write(join(evidenceRoot, 'creator.json'), creator), + outputPackage: write(join(evidenceRoot, 'output.json'), outputPackage), + runDetail: write(join(evidenceRoot, 'run.json'), { workflow_id: output.workflowTabId, task, outputs: [output] }), + nodes: write(join(evidenceRoot, 'nodes.json'), { + nodes: Object.fromEntries( + Object.values(api.nodes).map((node) => [ + `${node.module}.${node.action}`, + { module: node.module, action: node.action, params: {} }, + ]), + ), + }), + backendSourceBefore: write(join(evidenceRoot, 'source-before.json'), { identity: source }), + backendSourceAfter: write(join(evidenceRoot, 'source-after.json'), { identity: source }), + modelObservations: [ + write(join(evidenceRoot, 'models.json'), { + error: false, + models: [ + { + installed: true, + repoId: modelRepo, + selectedRevision: revision, + modelRevision: `${modelRepo}@${revision}`, + fingerprint: 'sha256:synthetic-model', + revisions: [], + }, + ], + }), + ], + inputs: input ? [{ role: 'input_image', sourceValue: '@data/images/synthetic.png', file: media }] : [], + outputs: [{ backendPath: output.mediaItems[0].backendPath, mediaType: 'image', file: media }], + }; + const evidencePath = join(evidenceRoot, 'input.json'); + write(evidencePath, descriptor); + return { backendRoot, evidenceRoot, evidencePath, descriptor, manifest, write }; +} + +test('canonical recorder retains original packages and revalidates exact physical evidence through the same projection reader', async () => { + const directory = mkdtempSync(join(tmpdir(), 'modiff-template-qualification-canonical-')); + try { + const fixture = await writeStandaloneEvidence(directory); + const original = readFileSync(join(fixture.evidenceRoot, 'output.json')); + const result = spawnSync(process.execPath, [SCRIPT, '--workflow', fixture.manifest.id], { + cwd: ROOT, + encoding: 'utf8', + timeout: 30_000, + env: { + ...process.env, + MODIFF_BACKEND_DIR: fixture.backendRoot, + MODIFF_CANONICAL_WORKFLOW_EVIDENCE: fixture.evidencePath, + }, + }); + assert.equal(result.status, 0, result.stderr); + const registryPath = join( + fixture.backendRoot, + 'data/qualification/release/canonical-workflow-run-receipts.v1.json', + ); + const registry = JSON.parse(readFileSync(registryPath, 'utf8')); + assert.equal(registry.receipts.length, 1); + const receipt = registry.receipts[0]; + assert.equal(receipt.workflowId, fixture.manifest.id); + assert.deepEqual(receipt.qualificationClaims, { + publicTemplate: false, + qualityApproved: false, + rightsApproved: false, + hardwareQualified: false, + }); + const retained = join(fixture.backendRoot, receipt.evidencePath); + assert.deepEqual(readFileSync(join(dirname(retained), 'output.json')), original); + const repeated = await readCanonicalWorkflowEvidence({ + clientRoot: ROOT, + backendRoot: fixture.backendRoot, + workflowId: fixture.manifest.id, + evidencePath: retained, + }); + assert.equal(repeated.receipt.outputHash, receipt.outputHash); + assert.equal(repeated.receipt.authoringHash, receipt.authoringHash); + assert.deepEqual(repeated.descriptorBytes, readFileSync(fixture.evidencePath)); + assert.equal( + existsSync(join(fixture.backendRoot, 'data/qualification/release/template-run-receipts.v2.json')), + false, + ); + const bytes = readFileSync(join(dirname(retained), 'output.png')); + bytes[bytes.length - 1] ^= 1; + writeFileSync(join(dirname(retained), 'output.png'), bytes); + await assert.rejects( + readCanonicalWorkflowEvidence({ + clientRoot: ROOT, + backendRoot: fixture.backendRoot, + workflowId: fixture.manifest.id, + evidencePath: retained, + }), + /hash differs/, + ); + } finally { + disposeFixture(directory); + } +}); + +test('actual mocked DDIM accounting records through the shared factory and revalidates from retained originals', async () => { + const directory = mkdtempSync(join(tmpdir(), 'modiff-template-qualification-canonical-ddim-')); + try { + const fixture = await writeStandaloneEvidence(directory, { accounting: true }); + const original = readFileSync(join(fixture.evidenceRoot, 'output.json')); + const result = spawnSync(process.execPath, [SCRIPT, '--workflow', fixture.manifest.id], { + cwd: ROOT, + encoding: 'utf8', + timeout: 30_000, + env: { + ...process.env, + MODIFF_BACKEND_DIR: fixture.backendRoot, + MODIFF_CANONICAL_WORKFLOW_EVIDENCE: fixture.evidencePath, + }, + }); + assert.equal(result.status, 0, result.stderr); + const registry = JSON.parse( + readFileSync( + join(fixture.backendRoot, 'data/qualification/release/canonical-workflow-run-receipts.v1.json'), + 'utf8', + ), + ); + assert.equal(registry.receipts.length, 1); + const retained = join(fixture.backendRoot, registry.receipts[0].evidencePath); + assert.deepEqual(readFileSync(join(dirname(retained), 'output.json')), original); + const resultAgain = await readCanonicalWorkflowEvidence({ + clientRoot: ROOT, + backendRoot: fixture.backendRoot, + workflowId: fixture.manifest.id, + evidencePath: retained, + }); + assert.equal(resultAgain.provenance.graph.executionPlan.source, 'executed-canonical-accounting-v1'); + assert.equal(resultAgain.provenance.graph.executionPlan.device, 'cuda:0'); + assert.equal(resultAgain.provenance.graph.executionPlan.deviceMap, 'cuda'); + assert.equal( + resultAgain.provenance.execution.resourceCandidateId, + 'manual-resource-v1:DDIMPipeline|float32|none|none', + ); + // Registry adds retained-file references to the same receipt identity. + for (const [key, value] of Object.entries(resultAgain.receipt)) + assert.deepEqual(registry.receipts[0][key], value, key); + assert.ok(Object.values(resultAgain.receipt.qualificationClaims).every((value) => value === false)); + assert.equal(JSON.parse(original).apiGraph.runtimeHints, undefined); + const validation = { + target: resultAgain.receipt, + expectedApiGraph: mockedDdimAccountingFixture().apiGraph, + creator: JSON.parse(readFileSync(join(fixture.evidenceRoot, 'creator.json'), 'utf8')), + outputPackage: JSON.parse(original), + run: JSON.parse(readFileSync(join(fixture.evidenceRoot, 'run.json'), 'utf8')), + provenance: resultAgain.provenance, + }; + assert.deepEqual(validateCanonicalWorkflowEvidence(validation), resultAgain.receipt); + const wrongOwner = structuredClone(validation); + wrongOwner.outputPackage.latestOutput.nodeId = wrongOwner.run.outputs[0].nodeId = 'node-04'; + assert.throws(() => validateCanonicalWorkflowEvidence(wrongOwner), /output owner differs/); + const inventedHints = structuredClone(validation); + inventedHints.run.task.runtimeHints = { autoResourceCandidateId: 'invented' }; + assert.throws(() => validateCanonicalWorkflowEvidence(inventedHints), /unreviewed runtime hints/); + const omitted = structuredClone(validation); + for (const output of [omitted.outputPackage.latestOutput, omitted.run.outputs[0]]) { + delete output.resolvedExecutionInputs.fieldAccountingStatus; + for (const row of output.resolvedExecutionInputs.nodes) delete row.fieldAccounting; + } + assert.throws(() => validateCanonicalWorkflowEvidence(omitted), /Consumed literal is missing/); + } finally { + disposeFixture(directory); + } +}); + +test('canonical input bytes cannot be authenticated by a path and post-run copy alone', async () => { + for (const input of [true, 'https://example.invalid/image.png', 'C:/runtime/image.png', 'relative/image.png']) { + const directory = mkdtempSync(join(tmpdir(), 'modiff-template-qualification-input-hold-')); + try { + const fixture = await writeStandaloneEvidence(directory, { input }); + await assert.rejects( + readCanonicalWorkflowEvidence({ + clientRoot: ROOT, + backendRoot: fixture.backendRoot, + workflowId: fixture.manifest.id, + evidencePath: fixture.evidencePath, + }), + /Input-backed canonical qualification is unsupported/, + ); + assert.equal(existsSync(join(fixture.backendRoot, 'data/qualification/release')), false); + } finally { + disposeFixture(directory); + } + } +}); + +test('canonical evidence paths reject traversal, aliases, absolute paths and missing measured bodies before reading', () => { + const directory = mkdtempSync(join(tmpdir(), 'modiff-template-qualification-paths-')); + try { + const file = join(directory, 'safe.json'); + writeFileSync(file, '{}'); + const ref = { path: 'safe.json', bytes: 2, sha256: createHash('sha256').update('{}').digest('hex') }; + assert.equal(readCanonicalEvidenceFile(directory, ref).bytes.toString(), '{}'); + for (const path of ['../outside.json', './safe.json', 'nested/../safe.json', file, 'nested\\safe.json']) { + assert.throws(() => readCanonicalEvidenceFile(directory, { ...ref, path }), /canonical|relative/); + } + assert.throws(() => readCanonicalEvidenceFile(directory, { ...ref, bytes: 3 }), /size\/type/); + assert.throws(() => readCanonicalEvidenceFile(directory, { ...ref, sha256: '0'.repeat(64) }), /hash differs/); + mkdirSync(join(directory, 'outside')); + symlinkSync(join(directory, 'outside'), join(directory, 'linked'), 'junction'); + assert.throws(() => canonicalEvidenceWritePath(directory, 'linked/receipt.json'), /symlinks/); + assert.equal( + canonicalEvidenceWritePath(directory, 'new/receipt.json'), + join(realpathSync(directory), 'new/receipt.json'), + ); + } finally { + disposeFixture(directory); + } +}); + +test('canonical retention rejects dangling registry links and directory links before writing', async (t) => { + const directory = mkdtempSync(join(tmpdir(), 'modiff-template-qualification-dangling-')); + try { + const root = join(directory, 'backend'); + const outside = join(directory, 'outside'); + mkdirSync(root); + mkdirSync(outside); + const cases = [ + { + name: 'registry leaf', + link: 'registry.json', + target: join(outside, 'missing-registry.json'), + type: 'file', + suffix: '', + }, + { + name: 'directory ancestor', + link: 'retained', + target: join(outside, 'missing-directory'), + type: 'junction', + suffix: '/evidence.json', + }, + ]; + for (const row of cases) { + await t.test(row.name, () => { + const link = join(root, row.link); + symlinkSync(row.target, link, row.type); + assert.equal(existsSync(link), false, 'This reproduction needs a dangling link.'); + assert.equal(lstatSync(link).isSymbolicLink(), true); + assert.throws(() => canonicalEvidenceWritePath(root, `${row.link}${row.suffix}`), /Retention symlinks/); + assert.equal(existsSync(row.target), false, 'No target outside the retained root may be created.'); + }); + } + } finally { + disposeFixture(directory); + } +}); diff --git a/src/components/CustomNode.tsx b/src/components/CustomNode.tsx index 4afc927f..169456c4 100644 --- a/src/components/CustomNode.tsx +++ b/src/components/CustomNode.tsx @@ -234,7 +234,8 @@ const CustomNode = memo((node: NodeProps & { surface?: NodeSurfa for (const released of result.nodes) setNodeCached(released, false); enqueueSnackbar('Node cache released', { variant: 'success', autoHideDuration: 1500 }); } catch (error) { - console.error('Failed to delete cache', error); + const message = error instanceof Error ? error.message : String(error); + enqueueSnackbar(message, { variant: 'error', autoHideDuration: 2600 }); } }, [node.id, setNodeCached]); diff --git a/src/studio/resolvedExecutionInputs.ts b/src/studio/resolvedExecutionInputs.ts index df2aa1ad..fb9e5cb4 100644 --- a/src/studio/resolvedExecutionInputs.ts +++ b/src/studio/resolvedExecutionInputs.ts @@ -12,6 +12,52 @@ type InputField = { sourceNodeId?: string; sourcePortId?: string; }; +type AccountingOrigin = Omit; +export type ExecutionFieldAccounting = { + schemaVersion: 1; + fields: Record< + string, + AccountingOrigin & + ( + | { + disposition: 'consumed' | 'inactive' | 'superseded'; + inputValue: InputValue; + value: InputValue; + reason?: string; + } + | { disposition: 'metadata'; reason: 'presentation-contract'; sha256: string } + ) + >; + inputProjections: Record; + outputProjections: Record; + unaccountedFields: string[]; + omittedFields: Record; + complete: boolean; +}; +type ExecutionAccountingProjection = { + kind: 'disabled-quantization-v1' | 'execution-recipe-v1'; + values: Record; + sha256: string; +}; +export type AppliedAdapters = + | { + schemaVersion: 1; + status: 'complete'; + source: 'backend-adapter-application'; + applicationId: string; + observation: 'activated' | 'reused'; + adapters: { + adapterName: string; + scale: number; + descriptorSha256: string; + artifact: + | { source: 'hub'; repository: string; revision: string; weightName: string; sha256: string } + | { source: 'local'; weightName: string; sha256: string }; + scheduler: null | { className: string; configSha256: string }; + }[]; + stateSha256: string; + } + | { schemaVersion: 1; status: 'unavailable' | 'truncated'; reason: string }; export type ResolvedExecutionInputs = { schemaVersion: 1; source: 'backend-execution'; @@ -28,6 +74,8 @@ export type ResolvedExecutionInputs = { operation?: InputField & { value: TextGenerationOperation }; }; omittedFields: Record; + fieldAccounting?: ExecutionFieldAccounting; + appliedAdapters?: AppliedAdapters; }[]; summary: Record & { weightLoadingMode?: WeightLoadingMode; @@ -41,6 +89,9 @@ export type ResolvedExecutionInputs = { truncated: boolean; /** Backend recognition of concrete graph contracts, separate from consumed values. */ graphTasks?: { loaderId: string; pipelineClass: string; task: string | null }[]; + /** Optional accounting never changes the legacy consumed-input summary. */ + fieldAccountingStatus?: { schemaVersion: 1; truncated: boolean }; + appliedAdaptersStatus?: { schemaVersion: 1; truncated: boolean }; }; const inputNames: Record = { @@ -184,6 +235,264 @@ const inputValue = (value: unknown): value is InputValue => const stringList = (value: unknown): value is string[] => Array.isArray(value) && value.length <= 4096 && value.every(text); +// Shape-only parsing. The CLI proof reader verifies the state digest and joins +// actual application observations to the executed owner and ordered graph. +function appliedAdapters(value: unknown, scope: string): AppliedAdapters | undefined { + const bounded = (item: unknown, maximum: number): item is string => + typeof item === 'string' && + item.length > 0 && + [...item].length <= maximum && + item === item.trim() && + ![...item].some((character) => character.charCodeAt(0) < 32); + const sha = (item: unknown) => typeof item === 'string' && /^[a-f0-9]{64}$/u.test(item); + const repository = (item: unknown) => + bounded(item, 256) && + item.split('/').length === 2 && + item.split('/').every((part) => part.length <= 96 && /^\w(?:[\w.-]*\w)?$/u.test(part)) && + !item.includes('--') && + !item.includes('..') && + !item.endsWith('.git'); + if (scope !== 'ModularDiffusers.ModelsLoader' || !record(value) || value.schemaVersion !== 1) return undefined; + if (value.status !== 'complete') { + if ( + !exactKeys(value, ['schemaVersion', 'status', 'reason']) || + typeof value.reason !== 'string' || + !(value.status === 'truncated' + ? value.reason === 'record-size-limit' + : value.status === 'unavailable' && + ['unobserved-application', 'owner-invalidated', 'unsupported-owner', 'unsupported-projection'].includes( + String(value.reason), + )) + ) + return undefined; + return value as AppliedAdapters; + } + if ( + !exactKeys(value, [ + 'schemaVersion', + 'status', + 'source', + 'applicationId', + 'observation', + 'adapters', + 'stateSha256', + ]) || + value.source !== 'backend-adapter-application' || + typeof value.applicationId !== 'string' || + !/^[a-f0-9]{32}$/u.test(value.applicationId) || + (value.observation !== 'activated' && value.observation !== 'reused') || + !Array.isArray(value.adapters) || + value.adapters.length > 32 || + typeof value.stateSha256 !== 'string' || + !/^sha256:applied-adapters-v1:[a-f0-9]{64}$/u.test(value.stateSha256) + ) + return undefined; + const names = new Set(); + for (const item of value.adapters) { + if ( + !record(item) || + !exactKeys(item, ['adapterName', 'scale', 'descriptorSha256', 'artifact', 'scheduler']) || + !bounded(item.adapterName, 128) || + !/^[A-Za-z0-9_-][A-Za-z0-9_.-]*$/u.test(item.adapterName) || + names.has(item.adapterName) || + typeof item.scale !== 'number' || + !Number.isFinite(item.scale) || + item.scale < -20 || + item.scale > 20 || + !sha(item.descriptorSha256) || + !record(item.artifact) + ) + return undefined; + names.add(item.adapterName); + const artifact = item.artifact; + if ( + !exactKeys(artifact, [ + 'source', + 'weightName', + 'sha256', + ...(artifact.source === 'hub' ? ['repository', 'revision'] : []), + ]) || + (artifact.source !== 'hub' && artifact.source !== 'local') || + !sha(artifact.sha256) || + !bounded(artifact.weightName, 256) || + /[\\:]/u.test(artifact.weightName) || + artifact.weightName.split('/').length > 64 || + !artifact.weightName.endsWith('.safetensors') || + artifact.weightName.split('/').some((part) => !part || part === '.' || part === '..') || + (artifact.source === 'hub' && + (!repository(artifact.repository) || + typeof artifact.revision !== 'string' || + !/^[a-f0-9]{40}$/u.test(artifact.revision))) + ) + return undefined; + if ( + item.scheduler !== null && + (!record(item.scheduler) || + !exactKeys(item.scheduler, ['className', 'configSha256']) || + !bounded(item.scheduler.className, 128) || + !/^[A-Za-z_][A-Za-z0-9_]*$/u.test(item.scheduler.className) || + typeof item.scheduler.configSha256 !== 'string' || + !/^sha256:[a-f0-9]{64}$/u.test(item.scheduler.configSha256)) + ) + return undefined; + } + if (new TextEncoder().encode(JSON.stringify({ adapters: value.adapters })).byteLength > 32_768) return undefined; + return value as AppliedAdapters; +} + +// Mirror only the backend's bounded accounting policy, not arbitrary objects or +// new execution authority. Cryptographic and graph joins belong to the recorder. +const accountingNames: Record = { + 'DiffusersImage.LoadPipeline': `model_id pipeline_class mode revision conditioning_kind conditioning_model_id + conditioning_revision dtype device quantization_mode quantized_components device_map auto_offload offload_mode + enable_vae_slicing enable_vae_tiling low_cpu_mem_usage`.split(/\s+/u), + 'DiffusersRuntime.PipelineQuantizationConfigV2': + 'backend components dtype excluded_modules component_overrides'.split(' '), + 'DiffusersRuntime.DiffusersExecutionRecipe': `device_map max_memory device_map_overrides offload_mode device + attention_backend attention_components vae_slicing vae_tiling layerwise_casting layerwise_casting_components + layerwise_storage_dtype layerwise_compute_dtype channels_last channels_last_components regional_compile + compile_components compile_backend compile_mode compile_fullgraph compile_dynamic denoiser_cache cache_threshold cache_options`.split( + /\s+/u, + ), + 'DiffusersImage.UnconditionalGenerate': + 'image_contract batch_size seed num_inference_steps eta class_label output_type'.split(' '), + 'Image.Preview': ['device', 'export'], +}; +const accountingPorts: Record, Record]> = { + 'DiffusersImage.LoadPipeline': [{ execution_recipe: 'execution-recipe-v1' }, {}], + 'DiffusersRuntime.PipelineQuantizationConfigV2': [{}, { quantization_config: 'disabled-quantization-v1' }], + 'DiffusersRuntime.DiffusersExecutionRecipe': [ + { quantization_config: 'disabled-quantization-v1' }, + { execution_recipe: 'execution-recipe-v1' }, + ], + 'DiffusersImage.UnconditionalGenerate': [{}, {}], + 'Image.Preview': [{}, {}], +}; +const accountingReasons = new Set([ + 'adapter-inactive', + 'feature-disabled', + 'connected-recipe', + 'loader-normalization', + 'presentation-contract', + 'already-decoded-image', + 'unsupported-contract', +]); +const exactKeys = (value: Record, keys: string[]) => + Object.keys(value).length === keys.length && keys.every((key) => hasOwn(value, key)); +const digest = (value: unknown) => typeof value === 'string' && /^[a-f0-9]{64}$/u.test(value); +const originKeys = (value: Record) => + value.source === 'connected' ? ['source', 'sourceNodeId', 'sourcePortId'] : ['source']; +const accountingOrigin = (value: Record) => + value.source === 'literal' || + value.source === 'override' || + (value.source === 'connected' && + text(value.sourceNodeId) && + Boolean(value.sourceNodeId) && + text(value.sourcePortId) && + Boolean(value.sourcePortId)); + +function fieldAccounting(value: unknown, scope: string): ExecutionFieldAccounting | undefined { + if ( + !record(value) || + !hasOwn(accountingNames, scope) || + value.schemaVersion !== 1 || + !exactKeys(value, [ + 'schemaVersion', + 'fields', + 'inputProjections', + 'outputProjections', + 'unaccountedFields', + 'omittedFields', + 'complete', + ]) || + !record(value.fields) || + !record(value.inputProjections) || + !record(value.outputProjections) || + !record(value.omittedFields) || + !stringList(value.unaccountedFields) || + typeof value.complete !== 'boolean' + ) + return undefined; + // Bound the new section separately; legacy records retain their old budget. + if ( + JSON.stringify(value).replace( + /[\u007f-\uffff]/g, + (character) => `\\u${character.charCodeAt(0).toString(16).padStart(4, '0')}`, + ).length > 65_536 + ) + return undefined; + const allowed = accountingNames[scope]!; + for (const [name, item] of Object.entries(value.fields)) { + if (!allowed.includes(name) || !record(item) || !accountingOrigin(item)) return undefined; + if (item.disposition === 'metadata') { + if ( + name !== 'image_contract' || + item.reason !== 'presentation-contract' || + !digest(item.sha256) || + !exactKeys(item, ['disposition', 'reason', 'sha256', ...originKeys(item)]) + ) + return undefined; + } else { + if ( + !['consumed', 'inactive', 'superseded'].includes(String(item.disposition)) || + !inputValue(item.inputValue) || + !inputValue(item.value) || + !exactKeys(item, [ + 'disposition', + 'inputValue', + 'value', + ...originKeys(item), + ...(item.disposition === 'consumed' ? [] : ['reason']), + ]) || + (item.disposition !== 'consumed' && !accountingReasons.has(String(item.reason))) + ) + return undefined; + } + } + const ports = accountingPorts[scope]!; + for (const [index, label] of ['inputProjections', 'outputProjections'].entries()) { + const projections = value[label] as Record; + const expected = ports[index]!; + for (const [port, projection] of Object.entries(projections)) { + if ( + !hasOwn(expected, port) || + !record(projection) || + projection.kind !== expected[port] || + !record(projection.values) || + !digest(projection.sha256) || + !exactKeys(projection, ['kind', 'values', 'sha256', ...(index === 0 ? originKeys(projection) : [])]) || + (index === 0 && !accountingOrigin(projection)) + ) + return undefined; + const values = projection.values; + if (projection.kind === 'disabled-quantization-v1') { + if (!exactKeys(values, ['backend', 'disabled']) || values.backend !== 'none' || values.disabled !== true) + return undefined; + } else { + const keys = accountingNames['DiffusersRuntime.DiffusersExecutionRecipe']!.filter( + (key) => key !== 'device_map_overrides', + ); + if ( + !exactKeys(values, [...keys, 'schema_version', 'device_map_strategy', 'quantization']) || + values.schema_version !== 1 || + values.quantization !== 'none' || + values.max_memory !== '{}' || + values.cache_options !== '{}' || + !Object.values(values).every(inputValue) + ) + return undefined; + } + } + if (value.complete && Object.keys(expected).some((port) => !hasOwn(projections, port))) return undefined; + } + if ( + Object.entries(value.omittedFields).some(([key, reason]) => !text(key) || !text(reason)) || + value.complete !== (Object.keys(value.omittedFields).length === 0 && value.unaccountedFields.length === 0) + ) + return undefined; + return value as ExecutionFieldAccounting; +} + // Captured observations only: neither an operation label nor an RGB hash grants // model, source-region, proposal Apply or resource authority. function textGenerationInputValue(key: string, value: InputValue): boolean { @@ -247,6 +556,8 @@ export function coerceResolvedExecutionInputs( return undefined; if ([...value.ambiguousFields, ...value.unavailableFields].some((key) => !summaryNames.has(key))) return undefined; const seen = new Set(); + const accounting = new Map(); + const applications = new Map(); const candidates = new Map>(); const unavailable = new Set(); for (const node of value.nodes) { @@ -262,6 +573,16 @@ export function coerceResolvedExecutionInputs( return undefined; seen.add(node.nodeId); const scope = `${node.module.replace(/^modules\./u, '')}.${node.action}`; + if (hasOwn(node, 'appliedAdapters')) { + const parsed = appliedAdapters(node.appliedAdapters, scope); + if (!parsed) return undefined; + applications.set(node.nodeId, parsed); + } + if (hasOwn(node, 'fieldAccounting')) { + const parsed = fieldAccounting(node.fieldAccounting, scope); + if (!parsed) return undefined; + accounting.set(node.nodeId, parsed); + } const names = hasOwn(nodeInputNames, scope) ? nodeInputNames[scope]! : inputNames; const fields = node.fields; const canonicalName = (key: string) => { @@ -364,6 +685,32 @@ export function coerceResolvedExecutionInputs( ); if (loaders.length !== graphTasks.length) return undefined; } + let fieldAccountingStatus: ResolvedExecutionInputs['fieldAccountingStatus']; + if (hasOwn(value, 'fieldAccountingStatus')) { + const status = value.fieldAccountingStatus; + if ( + !record(status) || + !exactKeys(status, ['schemaVersion', 'truncated']) || + status.schemaVersion !== 1 || + typeof status.truncated !== 'boolean' || + (!status.truncated && accounting.size === 0) + ) + return undefined; + fieldAccountingStatus = { schemaVersion: 1, truncated: status.truncated }; + } else if (accounting.size > 0) return undefined; + let appliedAdaptersStatus: ResolvedExecutionInputs['appliedAdaptersStatus']; + if (hasOwn(value, 'appliedAdaptersStatus')) { + const status = value.appliedAdaptersStatus; + if ( + !record(status) || + !exactKeys(status, ['schemaVersion', 'truncated']) || + status.schemaVersion !== 1 || + typeof status.truncated !== 'boolean' || + (!status.truncated && applications.size === 0) + ) + return undefined; + appliedAdaptersStatus = { schemaVersion: 1, truncated: status.truncated }; + } else if (applications.size > 0) return undefined; // Shared backend bounds plus envelope/summary overhead. JSON input only; // never stringify live model objects or retain unknown extension fields. if (JSON.stringify(value).length > 800_000) return undefined; @@ -395,12 +742,16 @@ export function coerceResolvedExecutionInputs( }), ), omittedFields: node.omittedFields, + ...(accounting.has(node.nodeId) ? { fieldAccounting: accounting.get(node.nodeId) } : {}), + ...(applications.has(node.nodeId) ? { appliedAdapters: applications.get(node.nodeId) } : {}), })), summary: value.summary, ambiguousFields: value.ambiguousFields, unavailableFields: value.unavailableFields, uncapturedNodeIds: value.uncapturedNodeIds, truncated: value.truncated, + ...(fieldAccountingStatus ? { fieldAccountingStatus } : {}), + ...(appliedAdaptersStatus ? { appliedAdaptersStatus } : {}), }), ) as ResolvedExecutionInputs; } diff --git a/src/utils/serverActions.ts b/src/utils/serverActions.ts index 4d16eaf6..313802ef 100644 --- a/src/utils/serverActions.ts +++ b/src/utils/serverActions.ts @@ -153,6 +153,8 @@ export function deleteNodeCache(nodeIds: string[]) { 'Could not clear the node cache.', { method: 'DELETE', + // Full model/component teardown can exceed the ordinary request deadline. + timeoutMs: 120_000, headers: { 'Content-Type': 'application/json' }, body: JSON.stringify({ nodes: uniqueNodeIds }), }, diff --git a/tests/e2e/studio-mocked/studio-mocked.spec.ts b/tests/e2e/studio-mocked/studio-mocked.spec.ts index 5171adbe..b1c98dcd 100644 --- a/tests/e2e/studio-mocked/studio-mocked.spec.ts +++ b/tests/e2e/studio-mocked/studio-mocked.spec.ts @@ -11703,6 +11703,87 @@ test('node cache controls separate recomputation from model release without edit expect(await readNodes()).toEqual(before); }); +test('grouped Setup cache release retains flags on errors and clears only confirmed descendants', async ({ page }) => { + page.setDefaultTimeout(15_000); + await page.setViewportSize({ width: 1680, height: 1050 }); + await ensureFrontend(); + await installOperationAuthoringRoutes(page); + await page.routeWebSocket('**/ws**', (socket) => + socket.send( + JSON.stringify({ + type: 'welcome', + sid: new URL(socket.url()).searchParams.get('sid'), + instance: 'mock', + current: null, + queued: {}, + }), + ), + ); + const requests: { nodes: string[]; scope?: string }[] = []; + let response: { status: number; body: unknown } = { + status: 503, + body: { error: true, message: 'Release is still busy.' }, + }; + await page.unroute('**/cache'); + await page.route('**/cache', (route) => { + requests.push(route.request().postDataJSON() as { nodes: string[]; scope?: string }); + return route.fulfill({ status: response.status, json: response.body }); + }); + await page.goto(FRONTEND_URL, { waitUntil: 'domcontentloaded' }); + await page.waitForFunction(() => Boolean(window.__MODIFF_E2E__)); + await dismissTaskLauncher(page); + await assertUnifiedWorkspace(page, 'expert'); + await openNodesLibrary(page); + const panel = await selectOperationPipeline(page, 'QwenImageModularPipeline'); + await panel.getByRole('button', { name: 'Preview connected starter', exact: true }).click(); + await page + .getByRole('dialog', { name: 'Connected starter', exact: true }) + .getByRole('button', { name: 'Add starter to canvas', exact: true }) + .click(); + await page.getByRole('button', { name: 'Arrange graph', exact: true }).click(); + const owner = await page.evaluate(async () => { + const graph = window.__MODIFF_E2E__!.exportWorkflowGraph(); + const setup = graph.nodes.find((node) => node.data.label === 'Model Setup')!; + const instance = setup.data.blockInstanceV2!; + const modulePath = '/src/studio/blockRuntimeV2.ts'; + const { blockProjectionNodeIdV2 } = await import(/* @vite-ignore */ modulePath); + return { + id: setup.id, + leaves: instance.effectiveGraph.nodes.map((node) => blockProjectionNodeIdV2(instance.instanceId, node.nodeId)), + }; + }); + expect(owner.leaves.length).toBeGreaterThan(0); + await page.evaluate((cachedNodes) => { + window.__MODIFF_E2E__!.sendWebsocketMessage({ + type: 'welcome', + sid: 'mock-sid', + instance: 'mock', + cachedNodes, + current: null, + queued: {}, + recent: [], + }); + }, owner.leaves); + const setup = page.locator(`.react-flow__node[data-id="${owner.id}"]`); + const release = setup.getByRole('button', { name: 'Release node cache', exact: true }); + await expect(release).toBeEnabled(); + const before = await page.evaluate(() => window.__MODIFF_E2E__!.exportWorkflowGraph()); + await release.click(); + await expect(page.getByText('Release is still busy.', { exact: true })).toBeVisible(); + await expect(release).toBeEnabled(); + response = { status: 200, body: { error: false } }; + await release.click(); + await expect(page.getByText('The cache deletion response has an invalid node list.', { exact: true })).toBeVisible(); + await expect(release).toBeEnabled(); + response = { status: 200, body: { error: false, nodes: [owner.id, ...owner.leaves] } }; + await release.click(); + await expect(setup.getByRole('button', { name: 'Node is not cached', exact: true })).toBeDisabled(); + expect(requests).toEqual(Array.from({ length: 3 }, () => ({ nodes: [owner.id] }))); + const after = await page.evaluate(() => window.__MODIFF_E2E__!.exportWorkflowGraph()); + expect(after.nodes).toEqual(before.nodes); + expect(after.edges).toEqual(before.edges); +}); + async function waitForOperationGraphToSettle(page: Page) { // Native edits also trigger asynchronous schema/validation publications. // Establish a settled source document before reviewing a replacement; a late diff --git a/tests/fixtures/legacy-provenance-factory.v1.json b/tests/fixtures/legacy-provenance-factory.v1.json new file mode 100644 index 00000000..a96a222c --- /dev/null +++ b/tests/fixtures/legacy-provenance-factory.v1.json @@ -0,0 +1,107 @@ +{ + "schemaVersion": 1, + "proofScope": "Synthetic metadata-only factory compatibility vectors with deterministic IDs, not model or release evidence.", + "capturedAt": "2026-10-27T00:00:00.000Z", + "vectors": [ + { + "id": "flux3_klein_fp8r512_text_to_image:grouped", + "bytes": 29135, + "sha256": "f0eb593b721bc98c6341e650391bb8fcecc0ce616c5ad146d76de5e31f51ca11" + }, + { + "id": "flux3_klein_fp8r512_text_to_image:ordinary", + "bytes": 29135, + "sha256": "f0eb593b721bc98c6341e650391bb8fcecc0ce616c5ad146d76de5e31f51ca11" + }, + { + "id": "flux3_klein_fp8r512_single_reference_edit:grouped", + "bytes": 31706, + "sha256": "fe3042cc7bfad2a5129994b569971d8f890cf0f274d5928b6e36c5efde2a2010" + }, + { + "id": "flux3_klein_fp8r512_single_reference_edit:ordinary", + "bytes": 31706, + "sha256": "fe3042cc7bfad2a5129994b569971d8f890cf0f274d5928b6e36c5efde2a2010" + }, + { + "id": "flux3_klein_fp8r512_multi_reference_edit:grouped", + "bytes": 31985, + "sha256": "e6866bd61a918921d7aef72a12e18256464d74c51a92480adf4d67d0f414e2e9" + }, + { + "id": "flux3_klein_fp8r512_multi_reference_edit:ordinary", + "bytes": 31985, + "sha256": "e6866bd61a918921d7aef72a12e18256464d74c51a92480adf4d67d0f414e2e9" + }, + { + "id": "flux3_klein_fp8r512_raw_coordinate_prompt:grouped", + "bytes": 28794, + "sha256": "5feccb3096a413c5d3b5362d4495497e0efc797af0c61e14da73408e3a2adde9" + }, + { + "id": "flux3_klein_fp8r512_raw_coordinate_prompt:ordinary", + "bytes": 28794, + "sha256": "5feccb3096a413c5d3b5362d4495497e0efc797af0c61e14da73408e3a2adde9" + }, + { + "id": "flux3_klein_fp8r512_lora_style:grouped", + "bytes": 31318, + "sha256": "71667e8a508b42347e96250dcfd66cd2d275d29b34dcedf49987cbd4a15abbc7" + }, + { + "id": "flux3_klein_fp8r512_lora_style:ordinary", + "bytes": 31318, + "sha256": "71667e8a508b42347e96250dcfd66cd2d275d29b34dcedf49987cbd4a15abbc7" + }, + { + "id": "flux3_klein_base_fp8r512_text_to_image:grouped", + "bytes": 30793, + "sha256": "58089b345e8a411a602610dc13b2508c6880707e1823b9e93837a034816d30fe" + }, + { + "id": "flux3_klein_base_fp8r512_text_to_image:ordinary", + "bytes": 30793, + "sha256": "58089b345e8a411a602610dc13b2508c6880707e1823b9e93837a034816d30fe" + }, + { + "id": "flux3_klein_base_fp8r512_single_reference_edit:grouped", + "bytes": 33369, + "sha256": "2c4c8d1c618b4e95952a2dbc55951c44a08a19b360f49747a944f0a0f579efd0" + }, + { + "id": "flux3_klein_base_fp8r512_single_reference_edit:ordinary", + "bytes": 33369, + "sha256": "2c4c8d1c618b4e95952a2dbc55951c44a08a19b360f49747a944f0a0f579efd0" + }, + { + "id": "flux3_klein_base_fp8r512_multi_reference_edit:grouped", + "bytes": 33653, + "sha256": "d0317b5204b7a35cdc04fd03ada11e9037ff568ef9cd1c550c3cac2751c1a516" + }, + { + "id": "flux3_klein_base_fp8r512_multi_reference_edit:ordinary", + "bytes": 33653, + "sha256": "d0317b5204b7a35cdc04fd03ada11e9037ff568ef9cd1c550c3cac2751c1a516" + }, + { + "id": "flux3_klein_base_fp8r512_raw_coordinate_prompt:grouped", + "bytes": 30452, + "sha256": "651c8c73a16ce34c1ad1fda7f087aa3c87b1c1c35c49cead098acb8483379050" + }, + { + "id": "flux3_klein_base_fp8r512_raw_coordinate_prompt:ordinary", + "bytes": 30452, + "sha256": "651c8c73a16ce34c1ad1fda7f087aa3c87b1c1c35c49cead098acb8483379050" + }, + { + "id": "flux3_klein_base_fp8r512_lora_style:grouped", + "bytes": 33113, + "sha256": "15c1fdb93d775fc297c7b8521b72640cb5fd9232524d5404c7b44ec60b52b1f2" + }, + { + "id": "flux3_klein_base_fp8r512_lora_style:ordinary", + "bytes": 33113, + "sha256": "15c1fdb93d775fc297c7b8521b72640cb5fd9232524d5404c7b44ec60b52b1f2" + } + ] +} From 7a460f4b9e86ceb00f8923db170f59dfed096477 Mon Sep 17 00:00:00 2001 From: Sourav Das Date: Wed, 28 Oct 2026 01:22:32 +0530 Subject: [PATCH 073/440] Document deadline-based Windows and Linux release plan --- plans/release-20261028/README.md | 187 ++++++++++ plans/release-20261028/linux.md | 284 ++++++++++++++ plans/release-20261028/remaining-release.md | 224 ++++++++++++ plans/release-20261028/review-and-feedback.md | 160 ++++++++ plans/release-20261028/windows.md | 346 ++++++++++++++++++ 5 files changed, 1201 insertions(+) create mode 100644 plans/release-20261028/README.md create mode 100644 plans/release-20261028/linux.md create mode 100644 plans/release-20261028/remaining-release.md create mode 100644 plans/release-20261028/review-and-feedback.md create mode 100644 plans/release-20261028/windows.md diff --git a/plans/release-20261028/README.md b/plans/release-20261028/README.md new file mode 100644 index 00000000..9141e327 --- /dev/null +++ b/plans/release-20261028/README.md @@ -0,0 +1,187 @@ +# Release preparation for 28 October 2026 + +This plan was requested for execution in separate Windows and Linux chats. The +deadline is **28 October 2026, 18:00 IST (12:30 UTC)** for a deployed, testable +candidate. **18:00–21:00 IST belongs to the maintainer's manual testing.** Do not +consume that window with unfinished integration, builds or unattended model jobs. +The review started around 01:00 IST, leaving about 17 hours, not two working days. + +This is a plan, not a statement that its acceptance checks have passed. The +canonical copy is in the backend repository; the client carries an identical copy +so either checkout can supply the handoff. Keep the five files together. + +## Read and use these files + +1. [Review and feedback chronology](review-and-feedback.md): what was inspected, + what is already implemented, actual gaps, and mistakes to avoid. +2. [Windows execution plan](windows.md): setup, constrained-memory generation, + frontend acceptance, final integration and deployment. Includes a chat prompt. +3. [Linux execution plan](linux.md): backend/service/custom-node acceptance and + the bounded remaining Linux cases. Includes a chat prompt. +4. [Deferred release work](remaining-release.md): every broader open workstream, + its implementation boundary and prerequisites. Deferred does not mean done. + +`BE/` and `FE/` below mean repository-relative paths in MoDiff and MoDiff-client. +They are not literal directories to create. No private logs, credentials, model +weights, user workflows or generated media belong in these plan commits. + +## Reviewed starting point and publication + +| Repository | Reviewed application source | Starting branch | +| ---------- | ------------------------------------------ | ------------------------------ | +| Backend | `ae09c2014f01198d359a1310d63a1d8d619796be` | `work/manual-testing-20261020` | +| Client | `fd3d3dacbcda0b4f44ff23497276658f0233eea8` | `work/manual-testing-20261020` | + +Both reviewed heads were pushed to that branch before authoring this plan. The +existing `codex/windows-delivery-20261026` remote branches also contain that code +pair. The subsequent plan commits contain documentation only. Read their actual +Git heads when starting; do not invent a future commit ID or treat branch names as +immutable execution evidence. The deployed Windows application still has the +reviewed application pair until the Windows owner deliberately deploys another. + +Both active primary checkouts were clean. Historical worktrees retain preserved +overlays already incorporated or superseded; they are not the starting point for +new work. Their exact disposition is in the review. No new actionable runtime +defect was established by the clean-baseline review, so no speculative runtime +patch was made. One confirmed documentation defect remains: ordinary installation +instructions still select the older `fix-ui-ux-issues` branch. W1 corrects it. + +For an existing clean checkout, update its remote references, inspect the branch +and start the lane branch from the published working branch: + +```text +git status --short +git fetch origin work/manual-testing-20261020 +git log -1 origin/work/manual-testing-20261020 +``` + +Run these in each repository. Preserve any dirty local work first; do not reset, +clean or overwrite an existing Linux checkout. Use the lane-specific branch +instructions in the two execution plans. Never run a generic CPU/CUDA environment +sync on an existing specialist ROCm installation. + +## What can be delivered by the deadline + +The achievable target is a **reviewed Windows update with an explicitly bounded +support statement**, tested installation instructions, representative image +prototyping, preserved user data, and a usable manual-test checklist. Available +Linux results strengthen the shared implementation and retain their Linux scope. + +The original expanded release means 80 public templates, 203 ordinary workflows, +58 declared resource tuples and the supported hardware predicates. That is not a +credible promise within this window. Apple MPS has no available host; general +canonical evidence collection remains incomplete; Gallery has unresolved evidence +and quality issues. The whole-app acceptance gate must retain those failures. +Do not change its denominator, skip predicates silently or call this candidate +the completed all-catalog/all-hardware release. + +If the maintainer requires the original full-release claim at 21:00, the present +plan has a **no-go** until those requirements are actually met. A date cannot turn +an untested route into a supported one. A bounded Windows release must state its +tested routes and remaining limitations plainly. + +## Priorities and ownership + +| Task | Owner | Estimate | Deadline importance | +| ---------------------------------------------------------------------- | ------------------------------------------------------ | -----------------------------------------: | ------------------------------------------------------------------------------------- | +| W0/L0: establish exact source, app, evidence and ownership | Both, separate hosts | 30–45 min each | Required before mutations | +| W1: correct paired setup/distribution guidance | Windows | 45–90 min | Required for delivery | +| W2: untouched Windows CUDA setup, base libraries, no-Triton eager path | Windows | 1.5–3 h, downloads additional | Required for installation claim | +| W3: Qwen cold/repeated Auto; distinguish the FLUX3 capacity hold | Windows; Linux assists only by assigned code ownership | 3–6 h if admitted | Required to close the original memory feedback | +| W4: representative Block/model/port/persistence journey | Windows | 2–4 h, sharing W3 model runs where valid | Required for prototyping claim | +| W5: refresh/recovery and optional installation status | Windows | 1–2 h; full optional reinstall 1–2 h extra | Required affected behavior; optional reinstall conditional | +| L1: model-backed custom Block and service journey | Linux | 2–4 h | Required for the service/custom integration claim; Windows persistence still needs W4 | +| L2: remaining joint/reverse adapter controls | Linux | 1.5–3 h including deployment and capture | Bounded follow-up after critical L1 blockers | +| L3: disk-offload/lifecycle and Linux Auto refusal | Linux | 1–2.5 h | Bounded follow-up if fresh capacity admits it | +| R1: integrate, full applicable software gates, deploy and handoff | Windows integrator | Reserve 3 h plus 1 h contingency | Cannot be traded for more catalog runs | + +The rows are not an additive elapsed-time promise: several observations can be +collected in one genuine journey, and Windows/Linux run independently. Plan for +about **20–30 person-hours across the two lanes**, attempting to fit the critical +slice into **12–16 elapsed hours**. Native fit, download time and newly diagnosed +defects can exceed this. The earlier 15–25-hour estimate covered representative +feedback closure, not every model transition or the expanded catalog. Re-estimate +at the checkpoints below instead of promising completion from feature presence. + +## Schedule, all times IST on 28 October + +| Time | Windows lane | Linux lane | Required decision/result | +| ---------------------- | ----------------------------------------------------------- | --------------------------------------------------------- | ------------------------------------------------------- | +| By 02:00 | W0, W1; start isolated setup | L0; obtain exact pair and prerequisites | Named owners, safe app/data boundaries, reachable hosts | +| 02:00–04:00 | W2; establish W3 first-route admission | Begin L1 custom/service journey | First install/runtime and model-admission result | +| 04:00 checkpoint | Classify a real failure before further attempts | Report genuine code failure versus fixture/access failure | No blind rerun of the same failed setup or recipe | +| 04:00–08:00 | W3 causal fix if needed; cold/warm sequence | Finish L1; focused backend fixes with assigned files | Native evidence or an exact unresolved blocker | +| 08:00–11:00 | W4 integrated UI journey; W5 refresh | L2, then L3 only if prerequisites pass | Stable candidate changes; retained failures | +| 11:00–12:00 | Finish required targeted checks and release notes | Finish current bounded case; no broad campaign | List passed, failed, blocked and unrun separately | +| 12:00 scope checkpoint | Choose deliverable claims from evidence | Send ordered commit/validation handoff | No new features or catalog expansion | +| By 13:00 | Receive Linux patches and inspect conflicts | Last source handoff; stop source mutations | Both lanes agree the exact pair to integrate | +| 13:00–14:00 | Integrate source, regenerate affected contracts/build | Independent review of merged backend changes | Freeze application source by 14:00 | +| 14:00–16:00 | Required final gates and emitted-bundle checks | Run only assigned isolated checks on the frozen pair | No competing inference or editing served source | +| 16:00–17:00 | Deploy exact pair at idle; affected native checks | Close evidence and cleanup only owned jobs | Actual served candidate verified | +| 17:00–18:00 | Buffer, final preservation and manual-test handoff | No new runs that jeopardize handoff | URL/build IDs/checklist; idle app ready at 18:00 | +| 18:00–21:00 | Maintainer manual testing; targeted fixes only by agreement | Available for diagnosed issues | No autonomous broad testing/restarts | + +If work starts late, shorten deferred scope, not preservation, required checks or +manual testing. By 12:00, an unresolved first image, save/data-loss issue or +repeated-run crash is a release blocker. Revert only the lane's diagnosed change +through a normal reviewed commit when appropriate; preserve unrelated changes. +Never stop an unknown active job to meet a calendar time. + +## Parallel work contract + +- Windows is the sole release integrator and owner of FE product source, setup + documentation, CI pairing, generated client assets and final Windows deployment. +- Linux initially owns BE service/custom-extension defects: `modiff/service.py`, + `modiff/service_package.py`, the diagnosed custom-extension modules and their + focused tests. It owns its private native evidence and Linux app lifecycle. +- Shared critical files (`modiff/server.py`, `NodeBase.py`, memory/offload modules, + `modules/ModularDiffusers/loaders.py`, receipt producers/parsers, manifests and + lockfiles) need one explicit owner in the shared handoff before editing. Default + owner is Windows/integrator. Linux reports a reproduction and proposed patch + scope; it must not independently rewrite them while Windows diagnoses memory. +- Linux may inspect FE evidence tools but does not edit them concurrently with + Windows. Transfer a file's ownership explicitly if a receipt defect needs work. +- Each lane uses its own branch and app/test data root. No shared writable runtime, + user data, model offload directory, qualification registry or browser storage. +- One heavy inference job per host. Avoid running full suites alongside model + generation on that host. Tests must not instantiate supervisors against live + operator data. Source/collector bytes remain frozen during captured runs. +- Handoffs contain base/commit IDs for both repos, changed files, diagnosis, + commands/results, proof level, retained failures, deployment state and remaining + work. Push ordinary branches; no force push. Only the integrator merges into the + release candidate. Direct cross-chat messaging requires the user's authorization; + a pushed handoff can be carried by the user without such authorization. + +## Verification budget and final admission + +Reuse existing evidence at its original scope. The reviewed pair already passed +8,540 backend tests, 12,978 subtests, 11 static/generated checks, the client quality +gate and 328 browser checks. The latest measured full gate cost was approximately +26 minutes backend + 8.5 minutes client + 33 minutes browser, before integration +and deployment. Do not rerun that campaign merely to inspect documentation. + +For an actual change: reproduce narrowly, add the causal regression, run focused +checks, then run the applicable complete CONTRIBUTING gates on the final source. +Update both immutable FE CI backend refs after a coordinated BE code commit. Keep +historical source-audit fixtures separate from the installed runtime. Run any +required active-optional-runtime checks with the supported validated runner; +base-environment skips do not prove optional execution. + +`npm run check:acceptance` is the whole-app gate. Record its real result and the +first failing stage; later short-circuited stages are **unrun**, not passed. Do not +repeat a known failing Gallery stage without changed evidence, or silently replace +the whole gate with `npm run check`. For a bounded candidate, independently run +the applicable software and asset checks and disclose the unmet full-release gate. + +The 18:00 handoff must include: + +1. Verified application URL, exact BE/FE commits, runtime, and served-bundle identity. +2. Changes since the already testable pair, plus known unchanged limitations. +3. Required native results with model/task/settings and actual consumed values. +4. Preservation result for existing workflows, outputs, custom nodes and runtime. +5. A 2–3-hour manual checklist with expected results and recovery instructions. +6. Failed/blocked/unrun items, including the Mac and full-catalog boundaries. + +No final source edits after testing without updating the impact assessment and +rerunning the checks affected by those edits. A passing old bundle is not evidence +for a newer deployed one. diff --git a/plans/release-20261028/linux.md b/plans/release-20261028/linux.md new file mode 100644 index 00000000..8acd6d74 --- /dev/null +++ b/plans/release-20261028/linux.md @@ -0,0 +1,284 @@ +# Linux lane: bounded backend and native acceptance + +Use the [shared plan](README.md), [review](review-and-feedback.md) and +[deferred backlog](remaining-release.md). Deadline: **28 October 2026, 18:00 IST**. +Deliver source handoff by **13:00 IST**; shared source freeze is **14:00 IST**. +Do not move these later because an old handoff proposes a different schedule. + +The purpose of a separate Linux chat is real parallelism: available Linux model +capacity and backend/service checks can run while Windows handles setup, UI and +constrained-memory behavior. Linux success never substitutes for Windows proof. + +## L0 — source parity, current machine and preserved state + +**Budget: 30–45 minutes, plus diagnosis if the host is unavailable.** + +Start with both remote working branches updated by the clean-baseline review. +Run branch creation only in a separate non-served checkout/worktree. A clean tree +can still be serving the app: fetch/inspect first and defer any served-source +switch until the admitted idle stop and preservation capture. + +```text +git status --short +git fetch origin work/manual-testing-20261020 +git switch -c codex/release-linux-20261028 origin/work/manual-testing-20261020 +git rev-parse HEAD +``` + +Run in each clean repository. If the branch exists, inspect and resume it; preserve +dirty code before any switch. Do not reset the current Linux app checkout merely +to obtain the plan. The plan's reviewed application pair is BE `ae09c201` / FE +`fd3d3dac`; later plan-only commits do not mean the running server already changed. +The last retained Linux app pair was older and needs deliberate source parity. + +Read AGENTS, CONTRIBUTING, SECURITY, the complete mirrored cluster lessons, +`docs/custom-nodes.md`, `docs/service-prototyping.md` and workbench acceptance. +Resolve current host/process/launcher/runtime, app/control origins, current/queued +tasks, downloads, installed model revisions, data/cache/offload roots and available +memory/disk. Do not assume a historical PID, forwarded port or receipt count. + +Keep app and supervisor on loopback. If accessed from Windows, both authenticated +forwards must lead to the same remote app/control pair; a working app forward alone +does not prove that Stop/restart is safe. A connection reset does not authorize +starting another worker or repeating an unknown task. + +Before an idle source refresh, privately preserve source state, workflows/User +Nodes, inputs/outputs, exact models, runtime/launcher/config and prior evidence. +Obtain the actual machine-local launcher/environment bindings, supervisor/worker +ownership, app/control ports, runtime contract, configuration/data roots, latest +preservation baseline and existing lifecycle procedure privately. Published source +alone does not reconstruct the specialist runtime. If any required item cannot be +established, stop before source/process changes and name it; do not substitute a +generic installer or guessed startup command. + +Use that existing guarded ordinary refresh procedure. Deploy the admitted backend +and its verified client bundle; verify the exact client-source binding, emitted +and served assets, process-start source and unchanged runtime. Rebuild only when +the selected source changed or the accepted bundle is unavailable, with the +integrator owning that bundle. +Do not reinstall ROCm or apply generic `uv sync --extra cpu/cuda` to that environment. + +**Important prior boundaries:** retained Linux records include allowed runtime +observation growth and an unresolved raw-preservation hold. Preserve both; do not +blanket-normalize JSON or silently relabel the old hold as a pass. Fresh current +inventory is required. Scope cleanup to owned tasks/caches only. + +## L1 — one actual custom-model, Block and service journey + +**Budget: 30-minute prerequisite selection, then 2–3 hours. Type: integrated +acceptance gap, with backend fixes only for diagnosed behavior.** + +**Where:** BE `modiff/custom_extension_source.py`, `custom_extensions.py`, +`custom_extension_api.py`, `custom_modular_extension.py`, `custom_modular_models.py`, +`custom_modular_inspection.py`, `service.py`, `service_api.py`, `service_package.py`; +`examples/custom_nodes/ModularImageReconstruction/`; FE normal custom-node, +Block/persistence and Service Export UI. + +The existing model-consuming example calls a connected **AutoencoderKL** to +reconstruct an image. It requires a compatible cached component. The existing +FLUX3 VAE must not be assumed compatible. The source is a runnable starting point, +not a new integration to invent. See the example README and actual `block.py`. + +1. Select one approved cached compatible model/component and permitted input. + Record immutable model/source identity and installed dependency contract. +2. For a Hub-import claim, identify and inspect an actual compatible custom-Block + source and its immutable commit. A model repository alone is not custom-node + code. The inspected local records did not establish a ready-to-use immutable + Hub source pin. If none can be admitted in the 30-minute slot, record this + prerequisite; a local example does not close the Hub-specific acceptance. +3. Use the normal Add/Load/Reload action after source/dependency review. The action + is code consent; discovery or workflow import is not. Do not automatically + install dependencies or execute arbitrary repository Python. +4. Connect model components → Models, approved input → Image, output → Preview. + Put the supported graph in a Block and expose Amount. Run with a nonzero Amount; + inspect actual model execution and decoded result, not only a successful status. +5. Save/reopen, change Amount and confirm a fresh affected computation while + retaining the compatible model owner. Save as User Node and reinsert; compare + effective values/graph. At idle, restart and verify the same graph/source/model + identity. Exercise actual visible controls rather than injected stores. +6. Export the actual API graph and Service package through the normal UI. Bind + only declared Amount/input/output fields. Use the existing service CLI against + the local backend, with an explicit bound. Match returned named outputs to its + actual task and durable media. Preserve the source manifest/trust boundary. +7. Release only owned caches and inspect output persistence, actual manager state, + app responsiveness and visible release acknowledgment. + +The CLI accepts these arguments. Define `MODIFF_PYTHON` as the verified interpreter +and `MODIFF_ORIGIN`/`CASE_DIR` as the observed local origin/new private case directory. +The examples below use the repository wrapper with the interpreter supplied as +its command argument. A private managed-overlay launcher can have a different +argument contract; inspect and reproduce that actual launcher rather than assuming +this wrapper reconstructs its environment. The graph/inputs/bindings are actual exports and values, +not fixtures to fabricate. Output paths must be new: + +```bash +./scripts/with-runtime-env.sh "$MODIFF_PYTHON" -m modiff.service inspect "$CASE_DIR/api-graph.json" \ + --server "$MODIFF_ORIGIN" --output "$CASE_DIR/service-inspection.json" +./scripts/with-runtime-env.sh "$MODIFF_PYTHON" -m modiff.service build "$CASE_DIR/api-graph.json" \ + --interface "$CASE_DIR/interface.json" --server "$MODIFF_ORIGIN" \ + --output "$CASE_DIR/service-package.json" +./scripts/with-runtime-env.sh "$MODIFF_PYTHON" -m modiff.service run "$CASE_DIR/service-package.json" \ + --inputs "$CASE_DIR/inputs.json" --server "$MODIFF_ORIGIN" --timeout 900 \ + --output "$CASE_DIR/service-result.json" +``` + +`--timeout` does not cancel the task. It reports its identity; inspect and use the +normal Stop path before any retry. CLI service invocation is the product's real +service route, not a substitute hidden browser submission. The service remains a +local MoDiff graph; standalone Diffusers-Python export is not implemented here. + +**Focused checks if corresponding code changes:** + +```text +python -m pytest -q tests/test_custom_extensions.py tests/test_custom_extension_source.py tests/test_custom_modular_identity.py tests/test_service_package.py tests/test_service_modular_fields.py +``` + +Use an isolated reviewed test environment; do not point these at live app data or +assume the active optional-runtime environment is the baseline test environment. + +**Exit:** a real model-backed edited/restarted graph and callable service with +correct named outputs, or a concrete retained prerequisite/failure. Local-only, +Linux-only and model-free proofs remain separately labeled. + +## L2 — the two remaining adapter-order controls + +**Budget: 1.5–3 hours including capture/recovery. Type: finite native acceptance.** + +Twelve finite executions are already retained: ten original cases plus NASA and +Monet scale-zero controls. Do not repeat them just to refresh timestamps. NASA +style remains unconfirmed; Monet's observed difference is narrow. None grants +publication approval. + +Use the retained exact control lock and original permitted input/media inventory. +Its SHA-256 is +`78d77b2ee6b4cbefddbb26a33d473d605965ccfe4fff93314488cb9337d574a0`. +The private relative record is +`final-release-20261027/linux/four-lora-controls-preparation-20261027/control-locks-and-observation-plan.json`. +Recover it from the originating private evidence store if absent on Linux. Git +contains this plan, not private inputs or raw receipts. Do not reconstruct absent +model revisions, adapter hashes, prompts or task evidence from this prose. + +1. Deploy the reviewed applied-adapter producer/parser before these runs. Old + receipts cannot retroactively acquire native activation observations. +2. **Joint:** actual retained T05 NASA recipe, NASA scale 0.75 followed by Outpaint + scale 1.5; 512×512, 16 steps, seed 481005, BF16/FP8r, CPU loading, no offload, + Auto false. Exact pinned artifacts and all other values come from the lock. +3. **Reverse:** same owned graph/IDs/settings, retaining first-run caches; reverse + only the adapter chain. Require actual changed application identity/order and + fresh downstream execution. Timing or a plausible image alone cannot prove it. +4. Retain original graph/creator/output packages, native task/attempt, resolved + inputs, applied adapter observations, model/runtime/source identities, decoded + bytes and actual visual assessment. Verify no stale or duplicate adapters. + +Each model task has a 900-second whole-task bound and normal Stop available. One +visible ordinary Run at a time; no hidden POST/store mutation to bypass UI behavior. +Do not resubmit when task outcome is unknown. Capture failure before cleanup. + +**Where if a defect appears:** `BE/modiff/applied_adapter_provenance.py`, +`native_disk_lora.py`, `modules/ModularDiffusers/loaders.py`; FE +`scripts/applied-adapter-provenance.mjs`, `live-proof-provenance.mjs` and +`src/studio/resolvedExecutionInputs.ts`. These are shared files: report a precise +reproduction and obtain explicit single-editor ownership from the integrator. + +**Checks if changed:** `tests/test_applied_adapter_provenance.py`, affected native +adapter tests and client receipt/provenance tests. Keep the strict recorder's +single-owner scope; do not loosen it for an unrelated multi-owner graph. + +**Exit:** original joint and reversed-order observations correctly match actual +application state and outputs, with any visual failure retained. This establishes +those controls, not NASA's style efficacy or public-template quality. + +## L3 — one adapter-bearing Group Disk lifecycle and truthful Auto refusal + +**Budget: 1–2.5 hours. Type: unclosed native resource/lifecycle acceptance.** + +The old disk-capacity obstacle was resolved by an already authorized, exact unused +model-cache deletion. Historical free space was 19,397,165,056 bytes against the +then required payload-plus-reserve floor of 17,454,649,984 bytes. The small margin +must be checked again on the actual writable offload filesystem. Do not schedule +more cleanup automatically or assume the old hold is still current. + +1. Obtain fresh capacity/artifact admission. If refused, record current numbers + and stop that row; do not erase important files or bypass the floor. +2. Save a separate owned copy of the retained approved Outpaint variant, preserving + exact input, seed, scale and other settings. Explicitly select `group_disk` with + AutoOffload true. It is a separately scoped resource variant, not the public + no-offload recipe. + Recover its original saved graph/creator package, input bytes, model/adapter + pins, seed, scale and resource settings in the private handoff. The adapter-order + lock alone is not this disk-case inventory. Missing originals block this row; + do not reconstruct them from prose or borrow an unrelated run's output. +3. Run with a 900-second bound. Observe component/load-specific offload directories, + actual output and applied-adapter state. Distinct owners/components must not + reuse equal-shaped wrong weights or stale group files. +4. Release the owned graph normally; inspect registry/manager ownership and actual + file cleanup. Retain shared owners and durable outputs. Empty cache counts alone + do not prove memory/file cleanup. Check the updated Linux Setup release indicator; + the old source retained a stale enabled indicator after backend cleanup. +5. Inspect the existing Linux FLUX3 Auto restriction through the normal UI without + submitting an unsupported model run. A truthful refusal on unsupported hardware + is the expected result; do not add Linux Auto authority merely to make it green. + +**Where:** `BE/modiff/diffusers_offload.py`, disk-offload/lifecycle modules, +`workflow_auto_lifecycle.py`, `flux3_auto_resource.py`, native loader hooks. Required +focused regression entry points include `tests/test_diffusers_disk_offload_lifecycle.py` +and `tests/test_pipeline_disk_offload_isolation.py` if those paths change. + +## Code ownership, handoff and stop conditions + +Default to evidence-only execution until a real defect is diagnosed. This lane +may own the L1 custom/service modules, selected example and corresponding tests. +Do not edit shared executor, Auto/resource, loader/provenance, FE source, lockfiles, +generated ledgers or web assets without recorded ownership transfer. Windows is +the sole final integrator. Read-only review is always useful during waits. + +By 13:00, push the Linux branch normally and supply: + +- Exact BE/FE base and head commits, changed files and ordered commit list. +- Reproduction, causal fix, commands/results, failed/skipped checks and source + impact; no full-suite claims from focused tests. +- For each native case: source/runtime/model/task/output identities, consumed + values, proof level, visible result and retained quality/capacity holds. +- Preservation and cleanup findings, active task/queue state and actual deployed + pair. Keep private logs/media out of public Git. +- Remaining prerequisites, estimated fix time and whether final Windows checks + must repeat because a shared execution path changed. + +Stop starting new cases at the handoff cutoff. Diagnose two same-category failures +instead of a third blind retry. Missing reviewed Hub source, incompatible cached +VAE, unreachable host, absent normal browser access, missing private locks or +insufficient disk are specific blockers. Report them immediately and continue only +independent admitted work. Do not hide them behind a substituted model-free demo. + +Cap this lane at eight hours and the 13:00 source handoff, whichever comes first: +L1, then L2, then L3 if time and capacity permit. The upper individual estimates +can sum to almost ten hours before fixes, so all three are not guaranteed. Leave +the last row explicitly unrun rather than overrun integration. Six to eight hours +is the target with cached compatible artifacts and healthy deployment. There is +no promise to finish Gallery/canonical/all-model work in this budget, and no +new-media publication is authorized by this plan. + +## Prompt for the Linux chat + +> Execute the bounded Linux lane in `plans/release-20261028/linux.md`, reading +> its README, review and required repository guides first. My delivery cutoff is +> 28 October 2026 at 18:00 IST, with 18:00–21:00 reserved for manual testing. +> Start from the pushed `work/manual-testing-20261020` pair in both repositories; +> preserve local work and use dedicated Linux branches. Establish current host, +> app/control ports, runtime, source, queues, data and offload capacity before +> changing the application. Tell me the exact task before acting. Preserve +> existing workflows, outputs, inputs, model caches, runtime and original failure +> evidence. Execute L1's real custom-model/Block/service journey, then the two +> remaining locked joint/reverse adapter controls and one Group Disk lifecycle +> when their prerequisites pass. Do not repeat completed scale-zero or original +> cases merely to refresh evidence. Admit concrete custom source through the +> normal deliberate Add/Load/Reload flow; never guess a Hub revision or substitute +> a model-free result. Use normal visible UI runs for model cases and the existing +> service CLI for the service case. Timeouts do not cancel unknown tasks. +> Own only the listed custom/service files and focused tests for diagnosed bugs; +> coordinate shared-file changes with the Windows integrator. Push a compact +> source/evidence handoff by 13:00 IST; source freeze is 14:00. Do not run duplicate +> broad gates, expand the catalog, weaken validators, change creator defaults or +> publish media. Report concrete blockers early and continue independent work +> within this finite plan. Routine actions already authorized by this execution +> request do not need another permission question. diff --git a/plans/release-20261028/remaining-release.md b/plans/release-20261028/remaining-release.md new file mode 100644 index 00000000..d29a4c37 --- /dev/null +++ b/plans/release-20261028/remaining-release.md @@ -0,0 +1,224 @@ +# Broader remaining work and release boundaries + +These tasks remain visible after the [28 October candidate plan](README.md). +They are not silently dropped from the originally requested whole-app release. +Do not start them in the Windows manual-testing window. A later continuation +needs an explicit finite selection and updated source/evidence inventory. + +The retained 27 October catalog census describes 80 public templates, 203 ordinary +workflows, 149 standalone/nonpublic-source rows, 58 resource tuples and seven +hardware profiles. Fifty-four ordinary workflows overlap public source templates; +these are not 283 independent model jobs. The 149 standalone rows include 100 image, +33 video, six audio and ten JSON outputs, with 20 deterministic builtins across +that set. It spans 91 model types. Refresh this census from the final source before +execution; the historical source pair is not current qualification. + +## B1 — complete the canonical execution-evidence path + +**Implementation incomplete. Budget: 4–8 hours for one bounded, genuinely native +tranche; approximately 1–3 additional working days for wider task/input/builtin +coverage, subject to the first tranche's findings.** This is tooling effort before +the missing model campaign, not an estimate for all 149 outputs. + +**Where:** BE `modiff/execution_input_provenance.py`, `NodeBase.py`, +`modules/DiffusersRuntime/main.py`, `modules/DiffusersImage/call_inputs.py`, affected +loaders/output producers and `tests/test_canonical_field_accounting.py`; FE +`scripts/live-proof-provenance.mjs`, `release-contract-core.mjs`, +`release-contract.mjs`, `template-qualification.mjs`, their fixture/negative tests +and `src/studio/resolvedExecutionInputs.ts`. + +**Current limitations:** input-free initial accounting is deliberately narrow; +input-backed canonical qualification and deterministic builtins are explicitly +rejected. A strict five-node DDIM accounting fixture is not universal graph support. +The actual three-node UI smoke did not supply the unchanged canonical graph's +complete evidence. Loader execution-profile/recipe accounting and generator +presentation-contract identity remained incomplete. Actual 32×32 bytes and legacy +1024×1024 form metadata must remain distinguishable. + +**Approach:** + +1. Reproduce the smallest real producer → normal export → reader failure without + editing original packages. Trace which values were requested, normalized, + consumed, inactive, superseded or merely presentation metadata. +2. Fix the actual producer/normalizer/join only where causality is established. + Preserve bounded payloads, privacy, legacy normalization and explicit unknowns. +3. Prove one unchanged canonical graph through the normal UI and original exports. + Confirm exact graph/default/prompt/model/component/task/output identities and + actual measurements. Do not infer missing fields from the current catalog. +4. Add input-backed evidence at execution time, binding the consumed input bytes; + a later file copy is insufficient. Add builtin semantics where model/accelerator + identity is genuinely not applicable, with real execution and output proof. +5. Extend accounting by declared task policy, including multiple outputs/owners, + only with positive and negative cases. Keep retry/fallback, quantization and + unsupported joins explicitly held until intentionally covered. +6. Reuse the existing executor and recorder. No second workflow representation, + fake model identity, loosened hash validator or automatic qualification promotion. + +**Exit:** native receipts pass the maintained reader for each newly supported scope; +unknown IDs, changed graphs/inputs/model sets, truncated evidence and unsupported +claims fail. Quality, hardware fit, rights and publication still require separate +acceptance. A recorder pass does not approve a template. + +## B2 — reconcile the historical Gallery before scheduling reruns + +**Mixed evidence/recipe/decoder gaps. Budget: 3–6 hours for the recoverable diagnostic +subset; 1–3 additional working days may be needed for actual replacements.** Media +generation/access and human quality approval are additional dependencies. + +**Where:** FE `scripts/template-gallery-harness.mjs`, +`template-gallery-repair-evidence.mjs`, `template-gallery-repair-contract.mjs`, +`live-proof-provenance.mjs`, `src/studio/templateExactness.ts`, `templates.ts`, +`templateOperationSelections.ts`, asset-source/rights descriptors and corresponding +tests. Preserve the original public Dataset and original approved bytes. + +The latest retained report had **83 overlapping errors across 70 examples**. +All 356 approved local files were recovered; the old missing-byte problem is not +the current blocker. This is neither 83 mandatory reruns nor 49 accepted repairs: + +| Group | Current issue | Correct next action | +| ------------------------- | ----------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------ | +| 49 historical candidates | Selection-only lock differences appear recoverable | Prove exact historical equivalence and original authority; preserve original recipe/source identities | +| Two ACE recipes | Real prompt/lyrics/meter/duration changes | Recover genuinely matching new evidence or generate the actual changed recipe; never pad audio or widen tolerances | +| Six Qwen Edit entries | Residual workflow-lock discrepancy unresolved | Compare original executed graph, adapter settings and current selection semantically | +| Two legacy Qwen bundles | Incomplete complete-model-set evidence | Recover original authoritative set or retain the hold; do not drop inconvenient duplicates | +| Thirteen video identities | Decoder/AV identity mismatch; derivative cases differ | Compare encoded bytes, original decoder/version/raw output and actual frame/AV identity before changing validation | + +Frame-checksum headers can include software/timing metadata, but header drift has +not been established as the sole cause of these original discrepancies. Preserve +all failed hashes and rights holds until evidence supports a scoped correction. +The maintained evidence-repair command is not permission to attach today's settings +to yesterday's output. + +**Exit:** every repaired row has original evidence justifying the repair and an +immutable before-copy; changed recipes/media obtain new execution and review. +`gallery:verify`/coverage results state remaining rows accurately. New public media +still needs explicit output-specific publication approval. + +## B3 — close the remaining selected FLUX3 templates and visual holds + +**Native/visual/rights acceptance, not one generic source bug. Budget: 2–4 hours +for L2/L3's finite controls; 4–8 hours for an initial quality-diagnosis tranche. +Publication timing depends on approval and successful new evidence.** + +The original eight-template target expanded with NASA/Monet candidate work and +controls. Keep public templates, private planning candidates, experimental +canonical graphs and scale-zero controls distinct; do not inflate the published +catalog count. A generated private trial is not a registered public recipe. + +Retained original visual holds include erased lower packaging panels, incorrect +stem/control counts or unintended labels, erased central accents, and unconfirmed +NASA styling. Windows two-reference quality holds remain separate from Linux +results. The two Windows outputs completed but did not satisfy their frozen visual +brief. No dropped-reference code cause was established in that audit. + +**Approach:** use the exact reviewed model/adapter/input order and original prompt, +size, steps, seed and resource recipe. Compare consumed controls and actual output +against the specific visual criterion. After two equivalent failures, change one +justified engineering/recipe hypothesis or retain the quality hold. A modified +recipe needs a new lock and new evidence. A Linux no-offload output cannot qualify +the Windows CPU-offload variant or vice versa. + +NASA requires a convincing intended style decision; Monet's scale-zero comparison +showed only a limited brushwork difference. Public recipe acceptance and concrete +rights/output-publication approval remain open. Preserve the original Tarot hold; +testing Monet did not grant Tarot's missing permission. + +## B4 — full advertised image/prototyping breadth + +**Some implementation exists; complete native variant/transition coverage does +not. Budget: 0.5–1 day for a representative additional transition tranche; several +days for the wider advertised route set after inventory and model access.** + +**Where:** BE executable specifications, image adapters, native modular selection +and custom composition; FE operation catalog/change planner, block persistence, +template admission, developer-first UX and service export. + +Freeze the union of actual advertised models/tasks/variants across palette, +starters, templates, pickers and documentation. Compare to the exact reviewed +upstream native exports. A missing MoDiff adapter is not an upstream exception. +For a legitimate whole-pipeline exception, document the exact task, unavailable +stage editing/reuse, supported controls and revisit trigger. + +Prioritize distinct semantic transitions rather than every alias permutation: +conditioning/latent changes, edit versus img2img, added required media, guidance +contract changes, custom nodes and saved interfaces. Retain edited values and wires, +review destructive changes, and prove actual execution after save/reinsert. Expand +audio/video usability independently; September's image announcement did not claim +that video simplification was completed. Standalone Python-code generation remains +a separate product feature, not a promise made by the current service exporter. + +## B5 — missing catalog executions and resource recipes + +**Large unmeasured campaign. Budget: first 2 hours to recover/classify receipts and +measure a representative runnable batch; thereafter estimate from actual runtimes +and artifact availability. The earlier extra 5–10-working-day allowance is +provisional, not a commitment.** + +Dependencies are B1 for unsupported canonical scopes, model/access/license/input +availability, usable target hardware and complete current evidence capture. +The 58 resource tuples are 23 resident, 26 model-CPU, eight group-disk and one +group-CPU in the retained census. They are not every-template × every-mode × +every-device. Preserve the maintained representative-selection rules and exact +workload identities. + +**Approach:** + +1. Recover original complete receipts from their originating hosts. Absence in the + current local registry does not prove absence everywhere. A custom-artifact + exemption is not a measured model pass. +2. Refresh source contracts and freeze the remaining exact row set. Resolve model, + component, input and recipe pins before downloading/running anything. +3. Group runnable rows by model for scheduling; each different locked workload + still needs its own evidence. Run one model job per host with task-specific + time/cancellation bounds. Do not launch an unbounded all-catalog loop. +4. Collect actual outputs, durations/peaks, reuse/resource behavior and task-specific + quality. Unknown or missing measurements stay missing. Keep supported resources + and hardware observations distinct from broad Auto authority. +5. Re-estimate after the first batch using remaining counts, observed durations, + downloads, failures and review time. Stop at the agreed finite batch boundary. + +Maintained commands include `release:qualification:run`, `release:resources:run`, +`release:template:qualify`, `release:hardware:qualify` and contract/report generators. +Read their current CLI help/source before invoking. Some commands called dry-run +still write derived reports. No general all-203 native campaign should be claimed +until its supported collector scope actually exists. + +## B6 — hardware and optional compiler qualification + +**External availability plus platform-specific work. Budget: about 0.5–1 day per +new available hardware profile for setup and a finite initial qualification; +model breadth, driver problems and downloads add time. No ETA for unavailable +hardware.** + +- Windows NVIDIA and CPU can supply their own exact native results. +- Linux Radeon shared memory supplies conditional Linux observations; it is not + additional dedicated VRAM and does not qualify a 16 GB Windows GPU. +- Apple Silicon is unavailable. The mandatory MPS predicate remains blocked. +- Intel XPU, AMD Windows and MI300X physical access is unestablished. AMD Windows + also lacks the fully reviewed SDK wheel lock required by its current installer. +- Optional Windows compilation needs a compatible reviewed toolchain and actual + kernel probe. Eager operation without Triton is independently useful and must + remain usable. Do not invent a Triton-Windows pin or install arbitrary wheels. + +The product's runtime tiers and per-model hardware support statements need +consistent wording. Changing a claimed support scope is a deliberate release +decision, never a way to silently pass a missing physical-hardware gate. + +## B7 — publication, final release and durable handoff + +**Budget: 2–4 hours once outputs, rights and all required gates are ready; approval +waits and new failures are outside that estimate.** + +Obtain concrete approval for each proposed new output and its rights/provenance. +Publish approved media to the configured public Hugging Face Dataset, pin the +actual revision, verify bytes/availability and update only approved source +descriptors/hashes/docs in Git. Never publish private logs, input media or generated +files merely because account write access is available. + +Freeze the final source/evidence pair. Run complete backend and compatible client +acceptance, asset and qualification gates. Failed, blocked and short-circuited +stages remain explicit. Deploy the verified bundle, preserve user data and produce +a supported-workflow/limitations handoff with actual source/runtime identity. + +The 28 October Windows candidate can be useful and testable while these rows stay +open. It must not be represented as their completion. diff --git a/plans/release-20261028/review-and-feedback.md b/plans/release-20261028/review-and-feedback.md new file mode 100644 index 00000000..3cc24509 --- /dev/null +++ b/plans/release-20261028/review-and-feedback.md @@ -0,0 +1,160 @@ +# Reviewed baseline, chronological feedback and remaining gaps + +Read this with the [deadline and ownership plan](README.md). Findings describe the +reviewed BE `ae09c201` / FE `fd3d3dac` pair. They distinguish missing implementation, +diagnosed defects, incomplete native acceptance and externally blocked work. + +## Clean-baseline review completed before planning + +The review inspected Git status, staged/unstaged/untracked paths, worktree heads, +history, preserved integration records, current authored changes, their call paths +and tests, and live remote branch identities. It did not change the application, +install packages, run models, restart services or perform another full test campaign. + +| Scope | Result | +| -------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------- | +| Backend | 12 worktrees: 10 clean, two historical dirty overlays | +| Client | 15 worktrees: 11 clean, four historical dirty overlays | +| Active primary and paired delivery checkouts | Clean, exact reviewed pair | +| Deployed Windows source checkout | Clean at reviewed backend commit | +| Historical backend overlays | 272 + 197 changed paths; 461 surviving file bodies and eight deletions match the preserved integration snapshot; statuses/indexes unchanged | +| Historical client overlays | 106 changed paths; exact preserved bytes/status path sets, zero newly added/missing paths or drift | +| Integration status | Existing source incorporated or superseded; no new pending implementation found | + +The backend historical overlays include 133 formerly untracked files; the client +image/audio overlay includes 17. These are preserved historical work, not a reason +to bulk-stage old files. Current client has all 17 and all 61 added literal test +titles extracted from that overlay's modified tests. Fifty of its 100 files still +match current contents after normalization; fifty have later primary changes. +The historical 54-exact/33-incorporated/13-superseded classification describes the +earlier integration, not today's whole-file equality. + +Other client overlays retain the already integrated policy/hydration fixes and +an unfinished Auto browser test whose intended coverage is superseded by current +FP8r/NVFP4 accepted/refused cases. The backend merge +`93fe5949e528f698a1cbed60bf661a9d0d9cc859` is an ancestor of the reviewed head. +One old backend contract branch has patch-equivalent commits rather than a new +missing implementation. Preserve all original copies and private records. A clean +new starting pair does not require destroying historical worktrees. + +Latest authored BE review covered `modiff/applied_adapter_provenance.py`, +`execution_input_provenance.py`, `native_disk_lora.py`, `NodeBase.py`, the affected +Diffusers loaders/call-input producers and their regressions. FE review covered +`resolvedExecutionInputs.ts`, `applied-adapter-provenance.mjs`, the provenance +factory, canonical recorder/reader, their negative tests and cache-release UI. +No new high-confidence runtime defect was established. Optional incomplete +evidence remains incomplete; it is not falsely promoted to acceptance. + +Both working-branch remote heads were updated normally to the reviewed application +pair before these plan files were written. The historical overlays were neither +reapplied nor deleted. No public media was published. + +## Chronology: what changed, and what did not become accepted + +Dates below are the supplied feedback dates. Implementation dates and commits are +separate. A commit subject or a developer announcement is not a native pass or +the reviewer's approval. + +| Feedback | Implementation/history inspected | Current disposition and task | +| --------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| 20 August: quick iteration should be simpler than coding; one magic node plus editable stages | BE `e0481ed2` had generic contracts. September 12 BE `d70d737f` / FE `5c0b755` added the later nested modular representation and persistence. Current `BlockNodeV2.tsx`, `blockPersistenceV2.ts` and backend composition contracts implement the actual hierarchy. | Implemented for reviewed native routes. Continuous model-backed usability/persistence still needs W4/L1. Arbitrary imported Python is not automatically decompiled into editable stages. | +| 20 August: import custom Blocks from Hub and remember models/parameters | September custom-component loading includes BE `a1f24642`, `4bc0028f`; FE September 26 `9378cc7` simplifies intentional Add/Load. Current custom-extension registry and UI are implemented. | Missing integrated current-host evidence, not a missing Add button. L1 plus W4. Add/Load/Reload is explicit code authorization; graph import is not. | +| August follow-up: edited Cluster becomes reusable user node | Current accepted persistence contract stores workflow-instance edits and explicitly snapshots a reusable Block with Save as User Node. | The original automatic conversion proposal was superseded intentionally. Do not reintroduce destructive automatic conversion as a feedback fix. | +| 11 September: four understandable stages, visible graph, compatible family/task changes | FE `c08b02b` generic authoring, `7477c8b` model-change mapping; BE `59bc3421` task-first authoring; FE `c7af715` later visual grouping. Current `operationAuthoring.ts`, stage grouping and model/task review/Undo paths are implemented. | W4 covers a representative distinct transition, existing custom wiring and restart. Exactly four boxes everywhere is not a requirement; meaningful Guidance/Preview/input nodes may remain. All-family transitions remain broader work. | +| 11 September: typed suggestions when dragging from an empty port | Current `NodeSearchDialog.tsx`, `nodeConnectionMatching.ts` and type-compatibility logic implement verified matches plus explicit unverified matches. | Implemented; include the actual gesture in W4. Nominal type equality alone cannot establish arbitrary tensor semantics. | +| 11 September: repeated load/encode/unload/crash; Qwen would not run on Windows 16 GB/32 GB | BE September 17 `897e27a9` separates recompute/model lifetime; `b2e8ec5a` strengthens reuse; September 26 `01d91919` fixes cached Modular loading. Later owner/accounting fixes remain in current code. | Exact current Windows original-route acceptance remains open: W3. Historical larger/shared-memory Qwen output cannot close it. | +| 26 September: announcement of generic image workflows, exposed controls and uv/npm/custom-node docs | September 26 `e7cb7353`, `a0d29db8`, FE `9378cc7` and existing workbench guides. | The reply promised a later test, not approval. Assess actual simplicity through W4, not port/node counts. | +| 5 October: setup, core dependencies, Windows platform behavior, progress and memory failures | BE October 7 `0183fbed`, October 8 `11db2aa9`, October 9 `30924930`, `283c55b9`, `c43b5709`, `1634d936`; FE optional-runtime recovery `e2f535d` and later transport fixes. | Most implementation exists; original native installation/repeat-run acceptance remains W2/W3/W5. Details below. | +| 26–27 October: consolidation and current Windows update | BE `93fe5949`, `9d991969`, `a099c7b5`, `ae09c201`; FE `758d3564`, `fd3d3dac`. | Current tested build exists. Saved-list acknowledgment and cache-release timeout/error fixes are already delivered; do not schedule them as unimplemented. | + +## Each 5 October item + +| Item | Actual current code/contract | Remaining action | +| ---------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------ | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| 1. No-script path still called scripts | `BE/docs/developer-setup.md`, `pyproject.toml`, native `uv sync`/`uv run` and FE `npm ci`/`npm run dev` are direct. | W1 fixes stale distribution target; W2 executes the ordinary Windows instructions from a new isolated environment. | +| 2. Redundant flags | Ordinary examples no longer need `--no-sync`/`--no-project`. Isolated managed bootstrap legitimately has a different context. | Check the actual quick start; do not remove meaningful bootstrap isolation globally. | +| 3. Allocator and missing Triton | `BE/modiff/runtime_environment.py` applies platform policy before imports; `runtime_compilation.py` requires a real optional kernel probe. | W2 proves eager Windows generation with Triton absent; optional compiler support remains separate. Preserve operator overrides. | +| 4. Transformers optional | Required base dependency in `BE/pyproject.toml`; `modiff/base_runtime.py` verifies readiness lazily. | W2 fresh installation and isolated repair. No product dependency redesign needed. | +| 5. PEFT optional | Required base dependency; ordinary adapter integration uses upstream APIs. | W2 base readiness, W3/W4 ordinary Windows LoRA when its route/artifact is available, L2 exact Linux adapter controls. A tiny or Linux test does not prove full Windows LoRA replacement. | +| 6. uv pinned/no upgrade guidance | Operator uv accepted; tool upgrade, project lock update and ABI changes are documented separately. | W2 verifies commands in a disposable environment; no broad dependency upgrade. | +| 7. ECONNABORTED spam | FE `scripts/backend-proxy-lifecycle.ts` narrowly handles owned disconnected Vite sockets; actual backend failures remain visible. | W5 production and normal Vite refresh. Capture an emitting stack if it recurs. | +| 8. Immediate missing-package UI error | Base-included runtime profiles suppress optional Install/Activate; damaged foundations expose repair. | W2 verifies healthy startup and isolated damaged-environment recovery. Never damage the user's live runtime. | +| 9. Install/Activate delay and unclear status | FE `RuntimeOptimizationsCard.tsx`, `optionalRuntimePolling.ts`; BE durable optional job identity and ready replacement-worker checks. | W5 current visible progress/recovery. Actual fresh optional install is conditional and separate from ordinary base generation. | +| 10. Second-run Combined systemRamBytes failure | `BE/modiff/workflow_auto_resource.py` separates RAM/VRAM, grants exact resident credit once; `workflow_auto_lifecycle.py` checks actual post-release memory. | W3 original cold/warm sequence. The message described host RAM, not dedicated VRAM. | + +## Concrete gaps, with proof level + +1. **Wrong distribution instructions — diagnosed.** BE README and developer + setup, FE README/CONTRIBUTING/Windows links still name `fix-ui-ux-issues`. + Remote heads at review were BE `1634d936`, FE `2146f456`, behind the tested pair. + Current working/delivery branches contain the pair. W1 fixes the instructions + and their command-contract assertions; it must not silently merge public main. +2. **Windows Qwen 16 GB VRAM/32 GB RAM — native acceptance missing.** No exact + current qualifying receipt was established. Source tests and historical Qwen + runs on other hardware do not establish fit. W3 may discover a real defect or + an honest capacity limit; neither outcome should be guessed in advance. +3. **FLUX3 W01 — genuine retained cold-load capacity hold.** The latest retained + load needed 14,850,133,600 bytes of host RAM with 12,097,413,120 available. + Availability fell 3,298,099,200 bytes after dispatch; causality is unproved. + This is distinct from Qwen and the old warm-run complaint. No current duplicate + reserve bug was found. Do not lower the guard or close arbitrary user apps. +4. **Continuous custom/model/service journey — acceptance gap.** The pieces + exist. Existing model-free service export and representative model-switch + results do not close the same edited, saved, restarted, model-backed journey. +5. **General canonical collector — implementation incomplete.** FE + `scripts/release-contract-core.mjs` rejects deterministic builtin qualification + and input-backed canonical evidence. Current accounting join supports a narrow + input-free DDIM path. Actual native smoke had three grouped nodes rather than + the five-node canonical fixture, unaccounted loader profile/recipe fields and + an image-contract metadata mismatch. Do not edit original receipts to fit it. +6. **Native smoke display versus media — retained discrepancy.** Durable output + is correctly 32×32 while legacy top-level/form dimensions remained 1024×1024. + Trace requested/form/consumed/encoded origins before any metadata/UI fix; this + does not prove that the model generated at the requested displayed size. +7. **Strict applied-adapter multi-owner acceptance — explicit narrow scope.** + FE `scripts/applied-adapter-provenance.mjs` strict mode requires all executed + loader owners while individual proof records are output-ancestry scoped. The + existing strict joint/reverse protocol uses one owner; ordinary optional + recording is unaffected. Extend only with a deliberate multi-owner contract + and failing regression when that broader claim is needed. +8. **Historical first-click issue — unresolved, not reproduced as current.** + `docs/workflow-authoring-ux.md` retains an early non-submission after switching; + later repetitions passed. W4 observes first-click behavior; do not invent a fix. + +## Existing proof that should be reused honestly + +The exact pair has full software gates and one genuine 32×32 DDIM Custom/Expert +image, plus save, close, reopen, scoped cache release and original-data preservation. +Its Auto candidate is null. It proves current deployment/execution at that scope; +it does not qualify Auto, repeated inference, full-weight LoRA, the unchanged +canonical graph, every workflow or any absent hardware. + +Linux has 12 retained finite executions: ten original cases and two scale-zero +controls. Six original outputs are visual candidates; four remain quality holds. +The missing joint/reverse controls are L2. Historical disk cleanup resolved the +old capacity floor with a narrow margin; fresh admission is still required. Do +not repeat completed cases unless source impact or a new hypothesis warrants it. + +## Mistakes the next execution must avoid + +| Observed failure pattern | Required prevention | +| -------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------- | +| Repeated full suites consumed implementation time | Start with a reproduction and focused checks; reserve one final stable-source gate cycle. | +| Wrong base versus evaluated optional environment produced hundreds of test failures | Resolve interpreter/profile first. Keep stable base checks and validated optional-runtime checks separate. | +| A Windows `.venv` junction resolved into another checkout | Resolve real environment paths before sync/install; isolated directory names alone do not establish isolation. | +| Tests constructed a supervisor against live data | Set isolated storage before importing the server singleton; assert queue/data roots. | +| Sealed optional environments gained bytecode through bare PYTHONPATH | Use `scripts/test_reviewed_optional_runtime.py` and suppress bytecode writes through child processes. | +| Source, HMR or collector changed during a run | Freeze the actual serving and evidence-producing bytes, not merely a Git label. | +| Old form/model identity substituted for actual execution | Join original task, graph, model owner, consumed inputs and durable media; keep discrepancies visible. | +| Cache hit reported as independent inference | Inspect per-node compute/cache observations and timings; seed/prompt changes must cause appropriate computation. | +| Longer timeout hid unresponsive cleanup | Profile HTTP/worker responsiveness and lease ownership; 120 seconds is only the full release request deadline. | +| UI test hit a toast/overlay or stale node geometry | Inspect actual pointer target/drag threshold; preserve the failed harness evidence and repeat only the missing gesture. | +| Missing PATH/USERNAME, fonts, sibling checkout or artifact capacity caused repeated setup failures | Verify these prerequisites once in the actual isolated runner; two same-category failures trigger diagnosis. | +| Old resource or Gallery counts treated as new truth | Refresh the denominator at source freeze; compare semantics and retain original scope. | +| Output media/source inputs or derivative videos were confused | Select the declared output and compare task/hash; decoded-frame headers can differ without established pixel drift. | +| Quality failure was treated as a receipt or rerun problem | Preserve its failed visual criterion; after two failures require a changed hypothesis. | +| Merge/push described as deployed/accepted | Verify running source and served bundle, then actual affected user behavior. | + +The mirrored `docs/cluster-engineering-lessons.md`, CONTRIBUTING, SECURITY and +workbench acceptance guide remain required reading. This plan supplements them; +it does not authorize changing quality criteria or weakening execution boundaries. diff --git a/plans/release-20261028/windows.md b/plans/release-20261028/windows.md new file mode 100644 index 00000000..b667a3e6 --- /dev/null +++ b/plans/release-20261028/windows.md @@ -0,0 +1,346 @@ +# Windows lane: implementation, acceptance and final delivery + +Follow the [shared deadline/ownership plan](README.md) and +[review findings](review-and-feedback.md). All deadlines are 28 October 2026 IST: +Linux handoff by 13:00, code freeze 14:00, verified deployment by 18:00, manual +testing 18:00–21:00. This lane is the release integrator. + +## W0 — establish the candidate and protect the existing app + +**Budget: 30–45 minutes.** No product defect is implied by this task. + +Start from the clean published working branch in both repositories. Run branch +creation only in a non-served checkout/worktree; a clean tree can still be serving +the application. Defer any served-source switch until an idle, preserved cutover. +Use separate lane branches if no branch with that name exists: + +```text +git fetch origin work/manual-testing-20261020 +git switch -c codex/release-windows-20261028 origin/work/manual-testing-20261020 +git status --short +git rev-parse HEAD +``` + +For an existing lane branch, inspect it and resume deliberately; do not force +recreate it. Review local AGENTS/CONTRIBUTING/SECURITY and the complete mirrored +cluster lessons. Resolve actual worktree and `.venv` paths, including junctions. + +Record privately the serving source pair, worker/supervisor identity, app/control +origins, queues and downloads, runtime/profile, model cache roots, disk, system RAM +and dedicated VRAM. Preserve hashes of existing workflows, reusable Blocks, inputs, +outputs, configuration, launcher/runtime and backend-owned `web/user` files. +Inspect the actual `queued` map as well as the current task. A historical PID, +port number, empty `pending` property or remembered count is not current evidence. + +Keep the already testable app available while preparing isolated setup/test work. +Use the existing deployment procedure at an idle boundary. Do not introduce a new +server/controller, change global Python/Node installations or close user apps. + +**Exit:** known source/runtime/data boundaries, named Linux owner, safe separate +test storage and a compact before-state. If these cannot be established, diagnose +the prerequisite before running tests against an unknown app. + +## W1 — make the advertised installation obtain this update + +**Budget: 45–90 minutes. Type: diagnosed documentation/contract defect.** + +**Where:** `BE/README.md`, `BE/docs/developer-setup.md`, related current installation +examples such as `BE/docs/windows-fashion-demo.md`; `FE/README.md`, +`FE/CONTRIBUTING.md`, `FE/docs/windows-support.md` and +`FE/scripts/backend-installer-contract.test.mjs`. + +Those live instructions still clone/link `fix-ui-ux-issues`, whose remote heads +predate the reviewed pair. A user following them can reproduce older bugs even +though the running local app is updated. + +**Approach:** + +1. Verify remote refs again. Use the already published delivery branch for the + interim candidate, or a deliberately published reviewed release ref. Do not + imply that `main`/`develop` already contain the changes. Never force-push those + branches to repair documentation. +2. Update both ordinary quick starts and active setup links to the same compatible + pair. Explain the exact paired commits for reproducibility; a matching branch + name alone is insufficient. Preserve historical dated evidence as historical. +3. Update the existing command-contract assertions. Keep native `uv`/`npm` commands, + the same accelerator extra on sync/run, correct Windows Python path, and + specialist AMD instructions separate. No installer wrapper in the advertised + direct path; no unnecessary global version/package upgrade. +4. Test the published instructions from the fresh checkout used by W2. Verify + referenced paths and ordinary Git fetch/checkout from the remote, not merely + a local branch name. Keep the upcoming release target and plan links consistent. + +**Checks:** focused `node --test scripts/backend-installer-contract.test.mjs`, +Markdown/format/link checks, and `tests/test_dev_entrypoint.py` if entrypoint +behavior changes. These documentation-command assertions do not prove installation. +Include the required full client gate at final freeze for changed setup/config +examples, as CONTRIBUTING specifies. + +**Exit:** a reviewer can obtain the tested source pair from the published commands. +**Blocker:** choosing a public release branch/tag is separate from changing docs; +use the existing authorized candidate branch rather than inventing a release. + +## W2 — ordinary fresh Windows setup and readiness + +**Budget: 1.5–3 hours; network/package download time is additional. Type: native +acceptance gap; most source implementation already exists.** + +**Where:** `BE/pyproject.toml`, `uv.lock`, `modiff/base_runtime.py`, +`runtime_environment.py`, `runtime_compilation.py`, `optimization_packages.py`, +`docs/developer-setup.md`; FE `src/components/RuntimeOptimizationsCard.tsx`, +`src/studio/templateReadiness.ts` and `src/studio/optionalRuntimePolling.ts`. + +Use a genuinely separate checkout/environment/data directory, not a second folder +whose `.venv` resolves into the live runtime. Preserve package/download caches; +sharing immutable package-cache bytes does not make the new environment non-fresh. + +1. Follow W1's checkout instructions. Verify Node/npm versions and ordinary + operator-installed uv. Install the declared CUDA profile without repository + installer wrappers: + + ```text + uv sync --extra cuda --locked + uv pip check --python .venv/Scripts/python.exe + uv run --extra cuda python -m modiff.preflight --json --fail-on-error + ``` + +2. Configure an isolated data root and unused loopback ports using the existing + documented configuration. Check the intended port before launch. Start with + the same CUDA extra; do not launch another backend on an existing app's port. +3. Inspect dependency versions and capability readiness. Transformers and PEFT + must already be present. Startup, browsing and Auto inspection must not install + anything. An ordinary template must not ask the user to Activate those core + libraries. Model weights and gated access remain separate prerequisites. +4. Record the actual allocator settings and whether Triton is absent. Run one + supported eager/SDPA image through the normal UI with an already approved cached + model. A small model is suitable for setup plumbing, but label that scope; + it cannot replace W3's Qwen workload or establish optional compiler support. +5. In this disposable environment only, exercise the documented missing-base + repair path and ordinary same-profile update. Do not uninstall a foundational + package from the user's active environment or intentionally upgrade all packages. +6. Launch the matching FE with `npm ci` then `npm run dev`; cover the normal Vite + path separately from the backend-served production client in W5. + +**Expected:** reproducible setup, accurate healthy/missing-base UI, no foundational +Install/Activate ceremony, a genuine image, and ordinary Windows operation without +Triton or unsupported allocator warnings injected by MoDiff. + +**Blockers:** package download/access, insufficient isolated-disk capacity, GPU +driver/runtime incompatibility, a currently busy GPU. Report these directly. +After two failures in one setup category, inspect cause instead of starting a +third installation. Native uv CUDA and the existing managed composite are distinct +runtime contracts; do not merge their proof. + +## W3 — original Windows Qwen and repeat-run memory complaint + +**Budget: 3–6 hours if the exact route is admitted. Initial capacity verdict by +04:00. Type: open native acceptance; a new memory bug is not yet established.** + +**Where to trace:** + +- `BE/modiff/NodeBase.py`: input snapshots, implementation identity, cache reasons. +- `BE/modiff/server.py`: per-node execution/reuse events, exact cached owner + bindings, normal cache release and memory observations. +- `BE/modiff/workflow_auto_resource.py`: separate RAM/VRAM, candidate scope, + loading/conversion allocations and once-only resident storage credit. +- `BE/modiff/workflow_auto_lifecycle.py`: ownership removal and actual next-owner + capacity, not assumed reclaimable bytes. +- `BE/modules/ModularDiffusers/loaders.py`: component reuse, placement, optional + quantization and pre-allocation guards. +- For the separate FLUX3 case: `BE/modiff/flux3_auto_resource.py` and the bounded + CUDA loading helpers. FLUX3 evidence does not close Qwen feedback. + +**Approach:** + +1. Identify the exact original Qwen text-to-image template/route, immutable model, + full creator settings and approved installed artifacts. Do not substitute Qwen + 2.1, a different model, reduced resolution/steps or Custom mode and call it the + original Auto acceptance. Record a separately chosen supported recipe separately. +2. Obtain live Auto assessment and idle RAM/dedicated VRAM. If refused, preserve the + exact requirement/availability and source before any retry. Trace cold loading, + retained owners and actual process/OS memory to identify an overcount, leak or + genuine shortage. A capacity floor is not automatically a bug. +3. For a diagnosed defect, make a minimal shared correction with a failing focused + regression. Never remove safety reserve, count shared memory twice, credit a + partial/dead owner, close arbitrary user applications or restart to disguise a + warm-run memory failure. Contact the Linux owner before shared-file changes. +4. Once admitted, run A–E below consecutively without intermediate cache release, + worker restart or unrelated cleanup. Capture actual node events, model load and + encoder observations, memory and terminal receipts. An unchanged cache hit is + legitimate, but label it as delivered cached output. + +| Case | User action | Expected result | +| ------------------------- | ------------------------------------------ | ------------------------------------------------------------------------------------------------------------- | +| A | Cold run of exact saved recipe | Successful load, complete output set and responsive UI at full settings | +| B | Run again unchanged | Valid cached delivery or actual compute identified; no unnecessary weight reload or crash | +| C | Change seed only | New downstream computation; model and unchanged prompt encoding reused where supported; consumed seed matches | +| D | Change positive prompt and seed | Prompt re-encoded, new generation; unaffected settings/models retained | +| E | Restore original values | Correct restored execution or honest cache reuse; no stale embeddings/adapters/guider state | +| F/G, only if time permits | Switch to another supported model and back | Reviewed compatible values/wires preserved; valid owner replacement/reuse or accurate refusal | + +5. Share W4's save/reopen and LoRA observations with these runs only when they + really use the same graph/settings/source. After A–E, exercise scoped Release; + output bytes persist and unrelated owners remain. Then verify next-run behavior. + +**Focused tests when affected:** `tests/test_node_base.py`, +`test_modular_workflow_reuse.py`, `test_workflow_auto_resource.py`, +`test_workflow_auto_cuda_recovery.py`, `test_node_cache_cleanup.py`, and exact +FLUX3/quantization tests only for changes to that separate route. + +**Separate FLUX3 capacity diagnosis:** the retained W01 refusal happened before +generation, with a 2.75-billion-byte RAM shortfall. The earlier loading-overlap +fix is already in the baseline. First attribute the dispatch-to-load memory drop; +do not replay the same recipe hoping free memory changes. If the real envelope +cannot fit with supported policies, preserve the hold and its practical user +guidance. This prevents claiming that the original Windows memory feedback is +fully resolved. + +## W4 — one continuous image-prototyping and persistence journey + +**Budget: 2–4 hours, reusing genuine W3 observations where applicable. Type: +integrated acceptance plus narrowly diagnosed UX fixes.** + +**Where:** FE `src/components/BlockNodeV2.tsx`, +`src/components/CustomExtensionsPanel.tsx`, `src/components/NodeSearchDialog.tsx`, +`src/studio/blockPersistenceV2.ts`, `src/workflow/operationAuthoring.ts`, +`src/workflow/operationLegacyBlockChange.ts`, +`src/workflow/nodeConnectionMatching.ts`, the existing workflow save/sync store +modules and `src/components/ServiceExportDialog.tsx`. BE custom/composition/service source is owned according +to the shared plan, not edited concurrently. + +1. Create an image workflow through the normal task browser. Show its generic + load/setup → encode → denoise → output stages. Advanced options should remain + discoverable. Do not redesign the product or enforce four boxes everywhere. +2. Drag from an unconnected image/text port onto empty canvas. Verify compatible + suggestions and insertion with the correct wire. Check that unrelated types + are excluded by default. Preserve the explicit unverified-match option. +3. Use a reviewed native modular Block and expand its actual upstream hierarchy; + an ordinary visual group around a whole-pipeline call does not establish this + acceptance. Edit prompt, seed and another applicable control through visible + inputs; commit focus. Collapse/expand, resize, move a supported internal node and make + one supported connection edit. Inspect usable internal controls, all ancestor + bounds and semantic connections. No hidden-store injection is acceptance. +4. Use an already reviewed custom node or the exact source admitted by L1. For a + true Hub-Block claim, exercise the actual pinned Hub Add/Load path on Windows; + a local text helper alone cannot supply that claim. If the source/model is + unavailable, retain the partial Windows result and precise missing prerequisite. +5. Review a supported cross-family or text-to-image/image-to-image change. Test + Cancel before Apply; apply one compatible change; Undo/Redo. Preserve authored + values, user nodes, layout and connections; require missing input media openly. + Observe the first Run click after a model change rather than silently clicking + again if no task is submitted. +6. Save the workflow, explicitly Save as User Node, close its tab and reopen from + My workflows without reloading the browser. Insert the reusable Block. Compare + effective defaults plus overrides and exported execution graph, not just the + overrides dictionary. Plain edits must not overwrite the library definition. +7. At an idle boundary, refresh and restart the actual candidate. Reopen/reinsert + and Run with saved model/parameters. Match the restored generated preview to + the actual task/media, excluding input images and thumbnails. +8. Verify model-backed service execution on Windows if claimed for this release; + otherwise document L1's Linux-only scope. The existing service package is a + local MoDiff API graph, not standalone Diffusers Python generation. +9. Reserve 45–90 minutes within the W3/W4 model budget for one ordinary Windows + LoRA case if compatible approved artifacts are already cached. Freeze the base + model, adapter revision/hash/name and full recipe. Compare base/zero and nonzero + scale with the same seed, then change scale and restore/remove the adapter. + Confirm actual activation, affected fresh computation, persisted settings and + no stale adapter after removal. If a second approved adapter is available, + exercise replacement as a distinct observation. Do not infer effect from a + descriptor alone. If fit/artifact/time admission fails, leave Windows LoRA + acceptance explicitly held; PEFT installation and Linux L2 cannot close it. + +**Checks if changed:** existing operation-authoring, block-persistence, graph +export, node-connection-search and workflow-backend-sync tests, plus the relevant +native/browser gesture. No new source change is required merely because a proof +row was previously missing. + +**Exit:** one continuous, recorded journey with exact values and output after +restart. A defect receives a causal fix; an unrun transition remains unrun. +Arbitrary family/task permutations are outside this deadline. + +## W5 — refresh, progress, release and installation status + +**Budget: 1–2 hours. A real optional reinstall adds 1–2 hours and is admitted only +if needed for an affected release claim.** + +**Where:** FE `scripts/backend-proxy-lifecycle.ts`, +`src/studio/optionalRuntimePolling.ts`, `src/components/RuntimeOptimizationsCard.tsx`, connection +and supervisor helpers, `src/utils/serverActions.ts`, `src/components/CustomNode.tsx`; BE websocket, +optional-runtime job/replacement-worker and cache teardown paths. + +- Observe production startup and five refreshes during a genuine owned run. The + same task/progress/output recovers; another edited tab stays selected and intact. + Repeat the disconnect observation through normal Vite serving. Record emitting + process/stack if ECONNABORTED recurs. Do not globally suppress network errors. +- On a separate owned run, ordinary Stop reaches a durable terminal state and the + queue drains before retry. Distinguish graceful cancellation from worker + replacement. Retain the failed attempt; never retry an unknown active task. +- After genuinely loaded-model execution, Release cache updates the UI from the + acknowledged removed-node set, preserves outputs, stays responsive and shows an + error if it fails. The current full cache-release request timeout is 120 seconds; ordinary + requests and recompute retain their narrower policy. +- In an isolated runtime only, if a real optional install/activate is necessary, + capture durable job ID and visible install → verify → activate/restart → ready + stages, refresh recovery, failure recovery and replacement-worker identity. + HTTP 202, an installed directory or a returned Activate button is not readiness. + Ordinary base dependencies must never require this ceremony. + +Use existing request/proxy/polling regressions when their code changes. A mocked +polling pass alone does not close actual installation or native refresh acceptance. + +## R1 — integrate once, verify, deploy and hand over + +**Reserve 14:00–18:00.** Read Linux's exact commit/validation handoff by 13:00. +Inspect semantic conflicts even if Git merges cleanly. Preserve old evidence and +user data; do not merge historical dirty overlays again. + +1. Freeze BE source, then update both immutable FE CI backend refs to the real + compatible BE commit when coordinated code changes require it. Run focused + conflict/contract checks; build the client from source. +2. Mirror final client `dist/` into BE `web/` through the established procedure, + preserving `web/user` and local Gallery installs. Never hand-merge minified JS. +3. Check all maintained generated contracts using the exact contributor/CI + commands, including operation inventory and image-prototyping readiness. + Regenerate only affected outputs. The dependent ledger chain is upstream + coverage → template candidates → authoring specs → Comfy contract/evidence + resolution; operation inventory/readiness also require their own checks. + Compare semantic changes; hash refreshes grant no qualification. +4. Run complete BE CONTRIBUTING validation and compatible FE `npm run check` / + required browser gate on frozen source. The same interpreter/runtime cannot + be assumed valid for base and active optional tests. Preserve skips/failures. +5. Record the whole-app gate limitation separately. Inspect Gallery, release and + asset stages when their inputs changed; do not describe short-circuited stages + as successful. An unavailable Mac remains blocked. +6. At idle, deploy the exact accepted pair using the existing guarded process. + Compare source identity, disk and HTTP asset bytes, main/control worker identity, + saved-data before/after and ordinary output access. Recheck only affected native + paths on the deployed view. Keep a verified prior candidate for rollback. +7. Push both source branches normally and publish the exact paired identities. + Clean active checkouts must contain no forgotten implementation changes. + +**18:00 manual checklist:** allocate about 20 minutes setup/launch, 40 minutes +generation/repeats, 40 minutes graph/model/custom edits, 30 minutes save/restart/ +reopen, 20 minutes Stop/refresh/cache release, plus 30 minutes for observations. +Give concrete workflow names, settings, expected result and known limitations in +the actual handoff. This is a 3-hour maximum guide, not a demand to rerun a broad +qualification suite. Leave the app idle and ready for the maintainer. + +## Prompt for the Windows chat + +> Execute the Windows lane in `plans/release-20261028/windows.md` together with +> its README and review. Deadline is 28 October 2026 at 18:00 IST; reserve +> 18:00–21:00 for my manual testing. Begin from the published clean +> `work/manual-testing-20261020` pair and create/resume the dedicated Windows +> branches safely. Read the required repository guides and establish current +> app/runtime/data ownership before changing anything. Tell me the exact task +> before working on it. W1–W5 are the scope; diagnose actual failures and implement +> focused fixes, rather than repeatedly running full tests. Preserve user data, +> runtime, model settings and all original failed evidence. Keep Qwen acceptance +> separate from the FLUX3 capacity hold. You own frontend, setup/distribution and +> final integration; coordinate shared backend files with the Linux chat through +> the agreed handoff. Source freeze is 14:00, deployment verification before +> 18:00. Use one final stable-pair gate cycle, report blocked/unrun requirements +> honestly, and provide the actual URL, changes and expected manual-test results. +> Do not expand into the full catalog or publish new Gallery media. Raise concrete +> missing access, source approval or hardware prerequisites promptly; do not ask +> again for routine actions already authorized by this execution request. From 52ef7710cd3cad281768213c9c4480cd3e102e9d Mon Sep 17 00:00:00 2001 From: Sourav Das Date: Wed, 28 Oct 2026 01:35:57 +0530 Subject: [PATCH 074/440] Align setup guides with the reviewed Windows candidate --- CONTRIBUTING.md | 9 ++++- README.md | 41 +++++++++++++-------- docs/windows-support.md | 4 +- scripts/backend-installer-contract.test.mjs | 35 +++++++++++++++--- 4 files changed, 65 insertions(+), 24 deletions(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 0128e566..7c72303f 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -46,6 +46,11 @@ Use clear commit messages that describe the outcome. Maintainers may squash a pu ## Development Environment +For the interim Windows candidate, use the published branch and exact paired +application revisions in the [quick start](README.md#developer-setup-with-uv-and-npm). +They have not been released on `main`; do not assume a checkout of `main` contains +the candidate's setup or workflow changes. + Required client versions: - Node.js `24.12.0` (`.nvmrc`) @@ -64,7 +69,7 @@ For NVIDIA, use `--extra cuda` in each command; for Intel, use `--extra xpu`. On Apple Silicon, omit the extra. Keep the same extra on sync and run. Use a separate checkout to try another accelerator; native sync reconciles `.venv`. AMD vendor-wheel environments use the backend's specialist -[accelerator setup](https://github.com/sdevil7th/MoDiff/blob/fix-ui-ux-issues/docs/accelerator-installation.md). +[accelerator setup](https://github.com/sdevil7th/MoDiff/blob/codex/windows-delivery-20261026/docs/accelerator-installation.md). In the client terminal, run: @@ -77,7 +82,7 @@ Open the URL printed by Vite and leave the backend running. Transformers and PEFT are installed during backend setup; normal image and LoRA workflows need no separate package activation. These commands work on Linux and Windows PowerShell. The backend's -[developer guide](https://github.com/sdevil7th/MoDiff/blob/fix-ui-ux-issues/docs/developer-setup.md) +[developer guide](https://github.com/sdevil7th/MoDiff/blob/codex/windows-delivery-20261026/docs/developer-setup.md) and the [Windows guide](docs/windows-support.md#developer-setup-with-uv-and-npm) cover explicit `uv pip` setup, upgrades, repair, and platform details. diff --git a/README.md b/README.md index 918a6408..2228c7fd 100644 --- a/README.md +++ b/README.md @@ -7,10 +7,10 @@ MoDiff Client is the graph-first web interface for the MoDiff generative-media b The client is built with React 19, TypeScript, Vite, Tailwind CSS, Headless UI, Zustand, Lucide React, and [`@xyflow/react`](https://reactflow.dev/). For Qwen-Image 2.1, use the generic image nodes in Workflows. The backend's -[integration guide](https://github.com/sdevil7th/MoDiff/blob/fix-ui-ux-issues/docs/qwen-image-21.md) +[integration guide](https://github.com/sdevil7th/MoDiff/blob/codex/windows-delivery-20261026/docs/qwen-image-21.md) explains attention-context reuse, runtime requirements and current qualification limits. -The [image demo guide](https://github.com/sdevil7th/MoDiff/blob/fix-ui-ux-issues/docs/image-demo.md) lists the tested workflows, settings, +The [image demo guide](https://github.com/sdevil7th/MoDiff/blob/codex/windows-delivery-20261026/docs/image-demo.md) lists the tested workflows, settings, measured reuse behavior and remaining qualification work. > [!IMPORTANT] @@ -22,15 +22,26 @@ Install Git, [uv](https://docs.astral.sh/uv/getting-started/installation/), Node.js `24.12.0`, and npm `11.6.2`. uv can provision Python 3.12. Use two terminals for the backend and the editable frontend. -The setup and workflow updates described here are on `fix-ui-ux-issues` in both -repositories. Select that branch until these changes are released on `main`. +The interim Windows candidate is on `codex/windows-delivery-20261026` in both +repositories. These updates are not released on `main`. The reviewed application +pair is: + +| Repository | Reviewed commit | +| ------------- | ------------------------------------------ | +| MoDiff | `ae09c2014f01198d359a1310d63a1d8d619796be` | +| MoDiff-client | `fd3d3dacbcda0b4f44ff23497276658f0233eea8` | + +These are the exact application revisions reviewed on 27 October 2026, not a claim +that every model or hardware combination is qualified. Record `git rev-parse HEAD` +in each checkout; if the branch advances, use its newly reviewed paired handoff. +For an exact reproduction, check out the two commits above in separate checkouts. **Terminal 1 — backend:** clone both repositories into the same parent directory, then start the backend. These commands work in Linux shells and Windows PowerShell. ```text -git clone --branch fix-ui-ux-issues https://github.com/sdevil7th/MoDiff.git MoDiff -git clone --branch fix-ui-ux-issues https://github.com/sdevil7th/MoDiff-client.git MoDiff-client +git clone --branch codex/windows-delivery-20261026 https://github.com/sdevil7th/MoDiff.git MoDiff +git clone --branch codex/windows-delivery-20261026 https://github.com/sdevil7th/MoDiff-client.git MoDiff-client cd MoDiff uv sync --extra cpu uv run --extra cpu python -m modiff.preflight --json --check-port 8088 --fail-on-error @@ -43,7 +54,7 @@ Transformers and PEFT are installed with the base application; ordinary image an LoRA workflows need no optional-runtime installation or activation. Setup installs Python packages without downloading model weights. `uv sync` reconciles `.venv` with the selected profile: use a separate checkout when testing a different -accelerator. See the [full setup guide](https://github.com/sdevil7th/MoDiff/blob/fix-ui-ux-issues/docs/developer-setup.md) for specialized AMD profiles, +accelerator. See the [full setup guide](https://github.com/sdevil7th/MoDiff/blob/codex/windows-delivery-20261026/docs/developer-setup.md) for specialized AMD profiles, explicit `uv pip` commands, repair, and upgrades. **Terminal 2 — frontend:** from the same parent directory, run: @@ -56,7 +67,7 @@ npm run dev Keep the backend running at and open the URL printed by Vite for the editable frontend. Press `Ctrl+C` in each terminal to stop it. -See the [full developer setup guide](https://github.com/sdevil7th/MoDiff/blob/fix-ui-ux-issues/docs/developer-setup.md) for accelerator prerequisites, +See the [full developer setup guide](https://github.com/sdevil7th/MoDiff/blob/codex/windows-delivery-20261026/docs/developer-setup.md) for accelerator prerequisites, optional runtimes, repair, and bundled-app setup. ## Install and run MoDiff @@ -64,15 +75,15 @@ optional runtimes, repair, and bundled-app setup. Clone both repositories into the same parent directory. The backend installer automatically finds this sibling client, installs its locked Node.js toolchain and packages, downloads the verified Gallery assets, and bundles the frontend. -The backend [installation guide](https://github.com/sdevil7th/MoDiff/tree/fix-ui-ux-issues#install-and-run) +The backend [installation guide](https://github.com/sdevil7th/MoDiff/tree/codex/windows-delivery-20261026#install-and-run) is the canonical source for installer profiles, prerequisites, repair, and platform support. Linux or macOS: ```bash -git clone --branch fix-ui-ux-issues https://github.com/sdevil7th/MoDiff.git MoDiff -git clone --branch fix-ui-ux-issues https://github.com/sdevil7th/MoDiff-client.git MoDiff-client +git clone --branch codex/windows-delivery-20261026 https://github.com/sdevil7th/MoDiff.git MoDiff +git clone --branch codex/windows-delivery-20261026 https://github.com/sdevil7th/MoDiff-client.git MoDiff-client cd MoDiff ./install.sh --accelerator auto ./run.sh @@ -81,8 +92,8 @@ cd MoDiff Windows PowerShell: ```powershell -git clone --branch fix-ui-ux-issues https://github.com/sdevil7th/MoDiff.git MoDiff -git clone --branch fix-ui-ux-issues https://github.com/sdevil7th/MoDiff-client.git MoDiff-client +git clone --branch codex/windows-delivery-20261026 https://github.com/sdevil7th/MoDiff.git MoDiff +git clone --branch codex/windows-delivery-20261026 https://github.com/sdevil7th/MoDiff-client.git MoDiff-client cd MoDiff .\install.ps1 -Accelerator auto .\run.ps1 @@ -116,7 +127,7 @@ Use `run.sh` or `run.ps1` unless you are editing frontend source code. In the editor, **Export → Service package** exposes named scalar inputs and persisted preview outputs for the same lowered API graph. See the backend's -[service guide](https://github.com/sdevil7th/MoDiff/blob/fix-ui-ux-issues/docs/service-prototyping.md) +[service guide](https://github.com/sdevil7th/MoDiff/blob/codex/windows-delivery-20261026/docs/service-prototyping.md) for the CLI, environment manifest and model-free example. ## Repository Pairing @@ -392,7 +403,7 @@ require Custom memory. See the backend custom-node guide for contracts and examp Approved Modular blocks that omit model ports receive a **Models** input when their Python contract requires components. Connect **Load Models → Pipeline Components** to reuse compatible loaded weights. This does not download missing -block-specific models. See the backend’s [custom-node guide](https://github.com/sdevil7th/MoDiff/blob/fix-ui-ux-issues/docs/custom-nodes.md) +block-specific models. See the backend’s [custom-node guide](https://github.com/sdevil7th/MoDiff/blob/codex/windows-delivery-20261026/docs/custom-nodes.md) for the VAE reconstruction example and component requirements. Blocks with official component types also expose **Load Models — [block name]** after approval. Select pinned, downloaded sources for its components, use **Custom** diff --git a/docs/windows-support.md b/docs/windows-support.md index a18817d3..2442a049 100644 --- a/docs/windows-support.md +++ b/docs/windows-support.md @@ -68,7 +68,7 @@ and PEFT are installed with the backend, with no separate activation for normal image and LoRA workflows. Setup downloads packages, not inference weights. `uv sync` reconciles the selected environment; use another checkout to test a different accelerator. The backend's -[developer setup guide](https://github.com/sdevil7th/MoDiff/blob/fix-ui-ux-issues/docs/developer-setup.md) +[developer setup guide](https://github.com/sdevil7th/MoDiff/blob/codex/windows-delivery-20261026/docs/developer-setup.md) also documents explicit `uv pip` commands, repair, and uv upgrades. Windows uses PyTorch's default allocator. MoDiff does not set @@ -258,7 +258,7 @@ route that exceeds the workstation's capacity, or needs an unsupported optional kernel, is a separate compatibility result; capture its exact message and resource plan. Passing the mocked client gates does not establish Windows GPU compatibility or image parity. The backend's -[image template validation guide](https://github.com/sdevil7th/MoDiff/blob/fix-ui-ux-issues/docs/image-template-validation.md) +[image template validation guide](https://github.com/sdevil7th/MoDiff/blob/codex/windows-delivery-20261026/docs/image-template-validation.md) documents paired output comparison and the runtime, recipe, and raw-output evidence to retain. Historical Gallery examples remain historical until a new execution has its own matching proof. diff --git a/scripts/backend-installer-contract.test.mjs b/scripts/backend-installer-contract.test.mjs index f69229b7..da27bee6 100644 --- a/scripts/backend-installer-contract.test.mjs +++ b/scripts/backend-installer-contract.test.mjs @@ -121,8 +121,8 @@ test('README follows the paired install and development launcher contract', () = assert.ok(installStart > quickStart, 'Developer quick start must precede launcher installation'); const quick = readme.slice(quickStart, installStart); for (const command of [ - 'git clone --branch fix-ui-ux-issues https://github.com/sdevil7th/MoDiff.git MoDiff', - 'git clone --branch fix-ui-ux-issues https://github.com/sdevil7th/MoDiff-client.git MoDiff-client', + 'git clone --branch codex/windows-delivery-20261026 https://github.com/sdevil7th/MoDiff.git MoDiff', + 'git clone --branch codex/windows-delivery-20261026 https://github.com/sdevil7th/MoDiff-client.git MoDiff-client', 'cd MoDiff', 'uv sync --extra cpu', 'uv run --extra cpu python -m modiff.preflight --json --check-port 8088 --fail-on-error', @@ -140,12 +140,18 @@ test('README follows the paired install and development launcher contract', () = assert.ok(developmentEnd > developmentStart); const development = readme.slice(developmentStart, developmentEnd); - assert.match(readme, /git clone --branch fix-ui-ux-issues https:\/\/github\.com\/sdevil7th\/MoDiff\.git MoDiff/); assert.match( readme, - /git clone --branch fix-ui-ux-issues https:\/\/github\.com\/sdevil7th\/MoDiff-client\.git MoDiff-client/, + /git clone --branch codex\/windows-delivery-20261026 https:\/\/github\.com\/sdevil7th\/MoDiff\.git MoDiff/, + ); + assert.match( + readme, + /git clone --branch codex\/windows-delivery-20261026 https:\/\/github\.com\/sdevil7th\/MoDiff-client\.git MoDiff-client/, + ); + assert.match( + readme, + /https:\/\/github\.com\/sdevil7th\/MoDiff\/tree\/codex\/windows-delivery-20261026#install-and-run/, ); - assert.match(readme, /https:\/\/github\.com\/sdevil7th\/MoDiff\/tree\/fix-ui-ux-issues#install-and-run/); assert.match(development, /\.\/install-dev\.sh --accelerator auto/); assert.match(development, /\.\/run-dev\.sh/); assert.match(development, /\.\\install-dev\.ps1 -BackendPath \.\.\\MoDiff -Accelerator auto/); @@ -161,3 +167,22 @@ test('README follows the paired install and development launcher contract', () = assert.doesNotThrow(() => readFileSync(new URL(path, root)), `README link target does not exist: ${target}`); } }); + +test('current setup guides select the published candidate and identify its reviewed application pair', () => { + const clientRoot = new URL('..', import.meta.url); + const guides = [ + new URL('README.md', clientRoot), + new URL('CONTRIBUTING.md', clientRoot), + new URL('docs/windows-support.md', clientRoot), + ]; + for (const guide of guides) { + const text = readFileSync(guide, 'utf8'); + assert.doesNotMatch(text, /fix-ui-ux-issues/, `${guide.pathname} still advertises the superseded setup branch`); + assert.match(text, /codex\/windows-delivery-20261026/, `${guide.pathname} must identify the current candidate`); + } + const readme = readFileSync(guides[0], 'utf8'); + assert.match(readme, /ae09c2014f01198d359a1310d63a1d8d619796be/, 'Reviewed backend commit is missing'); + assert.match(readme, /fd3d3dacbcda0b4f44ff23497276658f0233eea8/, 'Reviewed client commit is missing'); + assert.match(readme, /interim Windows candidate/i); + assert.match(readme, /not.*(?:release|released).*`main`/); +}); From ba45ea47fdae9d5071bd33d4df98930553a9f58a Mon Sep 17 00:00:00 2001 From: Sourav Das Date: Wed, 28 Oct 2026 01:43:18 +0530 Subject: [PATCH 075/440] Patch Vite Windows editor and development-server advisories --- package-lock.json | 12 ++++++------ package.json | 2 +- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/package-lock.json b/package-lock.json index 2bb47f9d..52d31c3a 100644 --- a/package-lock.json +++ b/package-lock.json @@ -37,7 +37,7 @@ "terser": "^5.48.0", "typescript": "~5.9.2", "typescript-eslint": "^8.40.0", - "vite": "^8.1.4" + "vite": "^8.1.6" }, "engines": { "node": ">=24.12.0 <25", @@ -3920,16 +3920,16 @@ } }, "node_modules/vite": { - "version": "8.1.4", - "resolved": "https://registry.npmjs.org/vite/-/vite-8.1.4.tgz", - "integrity": "sha512-bTT9PsdWO+MQMNG9ZXIP/qM9wGh37DFxTV/sPq9cFpHr3w4jkgef032PkAL9jAqhk3Nz8NQw3O8n6/xFkqO4QQ==", + "version": "8.1.6", + "resolved": "https://registry.npmjs.org/vite/-/vite-8.1.6.tgz", + "integrity": "sha512-aRAHIxx5SW5zc1sMqFwJU/t5qaFfXb5Hj0J7W0VXihu/X99+346tz6080tO1T1xVIJORX/b3zVTXGFqUXh35uw==", "license": "MIT", "peer": true, "dependencies": { "lightningcss": "^1.32.0", "picomatch": "^4.0.5", - "postcss": "^8.5.16", - "rolldown": "~1.1.4", + "postcss": "^8.5.17", + "rolldown": "~1.1.5", "tinyglobby": "^0.2.17" }, "bin": { diff --git a/package.json b/package.json index 084d2cb8..12482794 100644 --- a/package.json +++ b/package.json @@ -135,6 +135,6 @@ "terser": "^5.48.0", "typescript": "~5.9.2", "typescript-eslint": "^8.40.0", - "vite": "^8.1.4" + "vite": "^8.1.6" } } From 3aacca9017ba2442dec283bc7e5b2320a9a6cfee Mon Sep 17 00:00:00 2001 From: Sourav Das Date: Wed, 28 Oct 2026 01:56:30 +0530 Subject: [PATCH 076/440] Keep connection suggestions visible and reset shared model defaults --- scripts/node-connection-search.test.mjs | 34 ++++++++ scripts/operation-authoring.test.mjs | 106 ++++++++++++++++++++++++ src/workflow/nodeConnectionMatching.ts | 1 + src/workflow/operationAuthoring.ts | 21 ++++- 4 files changed, 159 insertions(+), 3 deletions(-) diff --git a/scripts/node-connection-search.test.mjs b/scripts/node-connection-search.test.mjs index 1e6c264d..f85df544 100644 --- a/scripts/node-connection-search.test.mjs +++ b/scripts/node-connection-search.test.mjs @@ -121,6 +121,40 @@ test('insertion preserves the discovery policy and rejects stale endpoints witho ); }); +test('generic drag suggestions and insertion exclude hidden or disabled candidate sockets in both directions', async () => { + const { matchingNodeHandleForInsertion } = await server.ssrLoadModule('/src/workflow/nodeConnectionMatching.ts'); + for (const handleType of ['source', 'target']) { + const display = handleType === 'source' ? 'input' : 'output'; + const origin = { + handleId: 'image', + node: definition({ image: { type: 'image', display: display === 'input' ? 'output' : 'input' } }), + }; + for (const restriction of ['hidden', 'disabled']) { + for (const allowUnverified of [false, true]) { + const unavailable = { type: 'image', display, [restriction]: true }; + const node = definition({ unavailable }); + const selection = { dataType: 'image', handleType, origin, allowUnverified }; + assert.deepEqual( + search.connectionSearchEntries({ candidate: node }, 'image', handleType, '', 'all', origin, allowUnverified), + [], + `${restriction} ${display} must not be suggested`, + ); + assert.equal(matchingNodeHandleForInsertion(node, selection, origin), undefined); + const visible = definition({ unavailable, image: { type: 'image', display } }); + assert.equal( + search.matchingNodeHandleForDrop(visible, 'image', handleType, origin, allowUnverified)?.[0], + 'image', + ); + assert.equal(matchingNodeHandleForInsertion(visible, selection, origin)?.[0], 'image'); + if (display === 'input') { + const widget = definition({ unavailable: { ...unavailable, display: 'text', isInput: true } }); + assert.equal(matchingNodeHandleForInsertion(widget, selection, origin), undefined); + } + } + } + } +}); + test('insertion revalidates derived Block crossing sockets using the normal connector resolver', async () => { const { matchingNodeHandleForInsertion } = await server.ssrLoadModule('/src/workflow/nodeConnectionMatching.ts'); const schema = await server.ssrLoadModule('/src/studio/blockSchemaV2.ts'); diff --git a/scripts/operation-authoring.test.mjs b/scripts/operation-authoring.test.mjs index b7c48ecb..3de1d8c8 100644 --- a/scripts/operation-authoring.test.mjs +++ b/scripts/operation-authoring.test.mjs @@ -807,6 +807,112 @@ function seededStarter(imageTask = false) { return s; } +function sharedCreativeStarter() { + const recipe = seededStarter(true); + for (const field of ['width', 'height']) { + for (const stage of recipe.nodes.slice(1)) { + stage.node.params[field] = { type: 'int', display: 'number', default: 1024, min: 64, max: 4096 }; + stage.operation.ports.push({ + ...structuredClone(stage.operation.ports.find((port) => port.name === 'seed')), + name: field, + semanticName: field, + }); + } + recipe.sharedInputs.push({ + name: field, + members: recipe.nodes.slice(1).map((stage) => ({ operationId: stage.operation.operationId, field })), + }); + } + return recipe; +} + +function authoredSharedCreativeGraph(recipe) { + const graph = authoring.createOperationStarter(recipe, { x: 0, y: 0 }); + for (const node of graph.nodes.slice(1)) { + node.data.params.seed.value = { value: '4109', isRandom: false }; + node.data.params.width.value = 768; + node.data.params.height.value = 512; + node.data.operationAuthoring.authored = ['seed', 'width', 'height']; + } + return graph; +} + +test('explicit model defaults reset unconnected shared seed and size instead of restoring the old values', () => { + const recipe = sharedCreativeStarter(); + const graph = authoredSharedCreativeGraph(recipe); + const before = structuredClone(graph); + const reset = authoring.planOperationChange(graph, graph.nodes[0].id, recipe, { restoreDefaults: true }); + for (const node of reset.graph.nodes.slice(1)) { + assert.equal(authoring.operationFieldValue(node.data.params.seed), 0); + assert.equal(authoring.operationFieldValue(node.data.params.width), 1024); + assert.equal(authoring.operationFieldValue(node.data.params.height), 1024); + } + assert.deepEqual(graph, before, 'Reset preview cannot mutate the current graph.'); +}); + +test('explicit model defaults preserve a connected shared group and its custom source while resetting other groups', () => { + for (const connectedField of ['seed', 'width', 'height']) { + const recipe = sharedCreativeStarter(); + const graph = authoredSharedCreativeGraph(recipe); + const source = { + id: 'custom-source', + type: 'custom', + position: { x: -100, y: 80 }, + data: { module: 'custom.Workbench', action: 'Value', params: { output: { type: 'int', display: 'output' } } }, + }; + graph.nodes.push(source); + graph.nodes[1].data.params[connectedField].isInput = true; + graph.edges.push({ + id: 'custom-wire', + source: source.id, + sourceHandle: 'output', + target: graph.nodes[1].id, + targetHandle: connectedField, + }); + const before = structuredClone(graph); + const reset = authoring.planOperationChange(graph, graph.nodes[0].id, recipe, { restoreDefaults: true }); + assert.deepEqual( + reset.graph.nodes.find((node) => node.id === source.id), + source, + ); + assert.ok(reset.graph.edges.some((edge) => edge.id === 'custom-wire')); + assert.equal(reset.graph.edges.filter((edge) => edge.source === source.id).length, 2); + for (const node of reset.graph.nodes.filter((node) => node.data.params.seed)) { + for (const field of ['seed', 'width', 'height']) { + assert.deepEqual( + authoring.operationFieldValue(node.data.params[field]), + field === connectedField + ? authoring.operationFieldValue(graph.nodes[1].data.params[field]) + : field === 'seed' + ? 0 + : 1024, + ); + } + } + assert.deepEqual(graph, before); + } +}); + +test('ordinary model changes still preserve authored shared seed and size', () => { + const recipe = sharedCreativeStarter(); + const graph = authoredSharedCreativeGraph(recipe); + const target = structuredClone(recipe); + target.pipelineClass = 'OtherPipeline'; + for (const stage of target.nodes) { + stage.operation.pipelineClass = target.pipelineClass; + stage.operation.binding.pipelineClass = target.pipelineClass; + } + target.nodes[0].node.params.pipeline_class.value = target.pipelineClass; + const changed = authoring.planOperationChange(graph, graph.nodes[0].id, target, { replaceModel: true }); + for (const node of changed.graph.nodes.filter((node) => node.data.params.seed)) { + for (const field of ['seed', 'width', 'height']) + assert.deepEqual( + authoring.operationFieldValue(node.data.params[field]), + authoring.operationFieldValue(graph.nodes[1].data.params[field]), + ); + } +}); + test('task extension carries the seed, shared edits undo together, and random mode exports one draw', async () => { const old = authoring.createOperationStarter(seededStarter(), { x: 0, y: 0 }); old.nodes[1].data.params.seed.value = { value: '4109', isRandom: false }; diff --git a/src/workflow/nodeConnectionMatching.ts b/src/workflow/nodeConnectionMatching.ts index c43fea45..f8ae8f83 100644 --- a/src/workflow/nodeConnectionMatching.ts +++ b/src/workflow/nodeConnectionMatching.ts @@ -128,6 +128,7 @@ export function matchingNodeHandleForDrop( ) { if (handleType !== 'source' && handleType !== 'target') return undefined; return Object.entries(nodeConnectorParams({ data: node })).find(([handleId, param]) => { + if (param.hidden || param.disabled) return false; if (requiredHandleId !== undefined && handleId !== requiredHandleId) return false; if ( !allowUnverified && diff --git a/src/workflow/operationAuthoring.ts b/src/workflow/operationAuthoring.ts index ac1683c6..a8f9ce27 100644 --- a/src/workflow/operationAuthoring.ts +++ b/src/workflow/operationAuthoring.ts @@ -1226,7 +1226,23 @@ export function planOperationChange( node: nodes.find((n) => n.id === operationIds.get(m.operationId))!, field: m.field, })); - const existing = group.members.flatMap((m) => { + const drivers = edges.filter((e) => members.some((m) => e.target === m.node.id && e.targetHandle === m.field)); + // Reconciliation must not restore the authored values that an explicit + // reset just cleared. A wired member still owns the entire shared group. + const resetSharedDefaults = + options.restoreDefaults && + drivers.length === 0 && + members.every(({ node, field }) => { + const operation = operationAuthoring(node)!.operation; + return ( + !operationOwnsModel(operation) && + publicSetting(node.data.params[field]!) && + operation.ports.some( + (port) => port.name === field && port.direction === 'input' && port.semantics?.kind === 'value', + ) + ); + }); + const existing = (resetSharedDefaults ? [] : group.members).flatMap((m) => { const old = before.get(m.operationId), field = old?.data.params[m.field]; if (!old || !field || operationFieldValue(field) === undefined) return []; @@ -1246,7 +1262,6 @@ export function planOperationChange( throw new Error( `The shared ${group.name} has conflicting or incompatible values. Align the existing controls before changing this task.`, ); - const drivers = edges.filter((e) => members.some((m) => e.target === m.node.id && e.targetHandle === m.field)); if (new Set(drivers.map((e) => `${e.source}:${e.sourceHandle}`)).size > 1) throw new Error( `The shared ${group.name} has several input sources. Choose one source before changing this task.`, @@ -1263,7 +1278,7 @@ export function planOperationChange( } } changes.push( - `Share ${group.name} across ${members.map((m) => m.node.data.label).join(' and ')}; preserve its authored value${group.name === 'seed' ? ' and use one random draw per run' : ''}.`, + `Share ${group.name} across ${members.map((m) => m.node.data.label).join(' and ')}; ${resetSharedDefaults ? 'use model defaults' : 'preserve its authored value'}${group.name === 'seed' ? ' and use one random draw per run' : ''}.`, ); } for (const entry of pendingLayouts) { From 6ba342a2f4c316296016bec05736e1c4dc744289 Mon Sep 17 00:00:00 2001 From: Sourav Das Date: Wed, 28 Oct 2026 02:47:00 +0530 Subject: [PATCH 077/440] Fix checkbox text label activation --- src/ui/ControlStateMatrix.tsx | 27 +++++++++++--- src/ui/controls.tsx | 11 ++++-- .../shared-controls/shared-controls.spec.ts | 37 +++++++++++++++++++ 3 files changed, 66 insertions(+), 9 deletions(-) diff --git a/src/ui/ControlStateMatrix.tsx b/src/ui/ControlStateMatrix.tsx index 19351309..00cf9451 100644 --- a/src/ui/ControlStateMatrix.tsx +++ b/src/ui/ControlStateMatrix.tsx @@ -92,6 +92,7 @@ export function ControlStateMatrix() { const [comboboxQuery, setComboboxQuery] = useState('Model'); const [comboboxValue, setComboboxValue] = useState('model'); const [checked, setChecked] = useState(false); + const [checkboxEvents, setCheckboxEvents] = useState([]); const [switched, setSwitched] = useState(false); const [radio, setRadio] = useState('balanced'); const [radioCard, setRadioCard] = useState('direct'); @@ -107,6 +108,8 @@ export function ControlStateMatrix() { const [popoverOpen, setPopoverOpen] = useState(false); const [menuResult, setMenuResult] = useState('No menu action'); const popoverAnchorRef = useRef(null); + const recordCheckboxChange = (name: string, nextChecked: boolean) => + setCheckboxEvents((events) => [...events, `${name}:${nextChecked}`]); return (
@@ -345,23 +348,37 @@ export function ControlStateMatrix() {

Choices and navigation

-
- +
+ Checkbox} + onCheckedChange={(nextChecked) => { + recordCheckboxChange('checkbox', nextChecked); + setChecked(nextChecked); + }} + /> undefined} + onCheckedChange={(nextChecked) => recordCheckboxChange('indeterminate', nextChecked)} /> undefined} + onCheckedChange={(nextChecked) => recordCheckboxChange('readOnly', nextChecked)} + /> + recordCheckboxChange('disabled', nextChecked)} /> - undefined} /> undefined} /> undefined} /> diff --git a/src/ui/controls.tsx b/src/ui/controls.tsx index a1a16b7e..4a147394 100644 --- a/src/ui/controls.tsx +++ b/src/ui/controls.tsx @@ -8,6 +8,8 @@ import { Disclosure, DisclosureButton, DisclosurePanel, + Field, + Label, Listbox, ListboxButton, ListboxOption, @@ -992,7 +994,8 @@ export function ModiffCheckbox({ }); return ( - + + ); } diff --git a/tests/e2e/shared-controls/shared-controls.spec.ts b/tests/e2e/shared-controls/shared-controls.spec.ts index bb749af9..75c9e8d9 100644 --- a/tests/e2e/shared-controls/shared-controls.spec.ts +++ b/tests/e2e/shared-controls/shared-controls.spec.ts @@ -2,6 +2,43 @@ import { expect, test } from '@playwright/test'; const frontendPort = Number(process.env.MODIFF_MOCK_FRONTEND_PORT || 5191); +test('checkbox visible labels activate once and preserve protected states', async ({ page }) => { + await page.goto(`http://127.0.0.1:${frontendPort}/control-state-matrix.html`); + const checkbox = page.locator('#matrix-checkbox'); + const events = page.getByTestId('checkbox-interactions'); + + await page.getByText('Checkbox', { exact: true }).click(); + await expect(checkbox).toBeChecked(); + await expect(checkbox).toHaveAccessibleName('Checkbox'); + await expect(checkbox).toBeFocused(); + await expect(events).toHaveAttribute('data-events', 'checkbox:true'); + + await checkbox.click(); + await expect(checkbox).not.toBeChecked(); + await expect(events).toHaveAttribute('data-events', 'checkbox:true,checkbox:false'); + await checkbox.press('Space'); + await expect(checkbox).toBeChecked(); + await expect(events).toHaveAttribute('data-events', 'checkbox:true,checkbox:false,checkbox:true'); + await page.getByText('Checkbox', { exact: true }).click(); + await expect(checkbox).not.toBeChecked(); + const normalEvents = 'checkbox:true,checkbox:false,checkbox:true,checkbox:false'; + await expect(events).toHaveAttribute('data-events', normalEvents); + + await page.getByText('Indeterminate checkbox', { exact: true }).click(); + await expect(page.getByTestId('checkbox-indeterminate')).toHaveAccessibleName('Mixed checkbox selection'); + await expect(page.getByTestId('checkbox-indeterminate')).toHaveAttribute('aria-checked', 'mixed'); + await expect(events).toHaveAttribute('data-events', `${normalEvents},indeterminate:true`); + + await page.getByText('Disabled checkbox', { exact: true }).click(); + await expect(page.getByRole('checkbox', { name: 'Disabled checkbox', exact: true })).toBeChecked(); + await page.getByText('Invalid read-only checkbox', { exact: true }).click(); + const readOnly = page.getByRole('checkbox', { name: 'Invalid read-only checkbox', exact: true }); + await expect(readOnly).toBeChecked(); + await readOnly.press('Space'); + await expect(readOnly).toBeChecked(); + await expect(events).toHaveAttribute('data-events', `${normalEvents},indeterminate:true`); +}); + test('shared controls expose consistent states and keyboard behavior', async ({ page }) => { await page.goto(`http://127.0.0.1:${frontendPort}/control-state-matrix.html`); From a7cbd8556aca9a7c0f27fe548bdba32c9e31cfae Mon Sep 17 00:00:00 2001 From: Sourav Das Date: Wed, 28 Oct 2026 03:11:09 +0530 Subject: [PATCH 078/440] Preserve explicit compact sizes of nested Blocks --- docs/modiff-client-architecture.md | 9 +- scripts/block-renderer-v2.test.mjs | 124 ++++++++++++++++++++++++ scripts/block-schema-v2.test.mjs | 21 ++++ src/components/ProjectedBlockNodeV2.tsx | 1 + src/stores/flowGraphMutations.ts | 15 ++- src/stores/flowNodeMutations.ts | 10 +- src/stores/useFlowStore.ts | 9 +- src/studio/blockRuntimeV2.ts | 5 +- src/studio/blockSchemaV2.ts | 21 +++- 9 files changed, 204 insertions(+), 11 deletions(-) diff --git a/docs/modiff-client-architecture.md b/docs/modiff-client-architecture.md index 69130b4f..f5e2fc32 100644 --- a/docs/modiff-client-architecture.md +++ b/docs/modiff-client-architecture.md @@ -843,7 +843,14 @@ readers reject new declarations rather than silently dropping them. `BlockInstanceV2.presentation.internalLayout` stores each node's compact own box relative to its immediate semantic parent. It must not store a recursively expanded subtree size. At render time the projector measures visible children -bottom-up, derives expanded ancestor bounds with header/right/bottom padding, +bottom-up. An explicit nested-card resize sets that layout entry's optional +`sizeMode: 'compact'`; subsequent moves and DOM minimum-size measurements retain +it, but measurements never create it. Both client and backend reject any other +present value. Moving an expanded frame retains its marked compact dimensions +rather than persisting the derived child envelope. Unmarked entries keep the legacy expanded-footprint migration, +so manual sizes are not confused with historical recursive bounds. This marker +is presentation-only and cannot change graph hashes or execution authority. +The projector derives expanded ancestor bounds with header/right/bottom padding, and shifts colliding siblings without rewriting the saved preferred positions. The same collision solver applies to root-relative (non-hierarchical) Blocks, including standard-pipeline catalog routes. Root-relative coordinates are diff --git a/scripts/block-renderer-v2.test.mjs b/scripts/block-renderer-v2.test.mjs index 4eae9b79..7f5fac25 100644 --- a/scripts/block-renderer-v2.test.mjs +++ b/scripts/block-renderer-v2.test.mjs @@ -1542,6 +1542,130 @@ test('automatic projected-node measurements preserve Redo while explicit resizin assert.match(source, /setNodeSize\(node\.id, current\.width \?\? 280, minimumHeight, \{ history: false \}\)/u); }); +for (const requested of [ + { width: 371, height: 312 }, + { width: 900, height: 900 }, +]) { + test(`nested compact resize survives legacy footprint detection, history and reload (${requested.width}x${requested.height})`, async () => { + // Mocked hierarchy with the exact compact and child geometry recorded by + // the native Qwen Core Denoise Step failure. No private workflow is needed. + const parentId = 'container:denoise'; + const targetId = 'container:denoise/text2image'; + const candidate = definition(); + candidate.graph.nodes[0].modularDiffusers = modularMetadata( + 'generate', + ['denoise', 'text2image', 'input'], + ['denoise', 'text2image'], + ); + candidate.graph.nodes.unshift( + { + nodeId: parentId, + nodeType: 'group', + data: { type: 'group', label: 'Auto Denoise', params: {} }, + modularDiffusers: modularMetadata(parentId, ['denoise'], undefined, 'conditional'), + }, + { + nodeId: targetId, + nodeType: 'group', + data: { type: 'group', label: 'Core Denoise', params: {} }, + modularDiffusers: modularMetadata(targetId, ['denoise', 'text2image'], ['denoise'], 'sequential'), + }, + ); + candidate.graph.executionOrder = [parentId, targetId, 'generate']; + candidate.graph.graphHash = schema.blockGraphHashV2(candidate.graph); + candidate.contentHash = schema.blockDefinitionContentHashV2(candidate); + const original = runtime.setBlockPresentationV2( + schema.createBlockInstanceV2(candidate, { + instanceId: 'recorded-compact-resize', + position: { x: 180, y: 120 }, + size: { width: 360, height: 325 }, + internalLayoutMode: 'hierarchical', + collapsedContainerNodeIds: [targetId], + internalLayout: { + [parentId]: { x: 1218, y: 104, width: 340, height: 277 }, + [targetId]: { x: 63.01389391066368, y: 131.2850956484163, width: 340, height: 277 }, + generate: { x: 28, y: 76, width: 340, height: 132 }, + }, + }), + { expanded: true }, + ); + const projection = runtime.materializeBlockProjectionV2(runtime.createBlockRootNodeV2(original)); + flowStore.useFlowStore.setState({ nodes: projection.nodes, edges: projection.edges }); + const flow = flowStore.useFlowStore.getState(); + const target = projection.nodes.find((node) => node.data.blockProjectionNodeId === targetId); + const readInstance = () => + flowStore.useFlowStore.getState().nodes.find((node) => node.id === original.instanceId).data.blockInstanceV2; + const assertSize = () => { + const resized = flowStore.useFlowStore.getState().nodes.find((node) => node.id === target.id); + assert.equal(resized.width, requested.width); + assert.equal(resized.height, requested.height); + }; + + // Automatic DOM measurement must not relabel the recorded legacy footprint. + flow.setNodeSize(target.id, 340, 277, { history: false }); + assert.deepEqual(readInstance().presentation.internalLayout, original.presentation.internalLayout); + assert.equal(flowStore.useFlowStore.getState().nodes.find((node) => node.id === target.id).height, 176); + + flow.beginHistoryTransaction('Resize Modular Diffusers block'); + flow.setNodeSize(target.id, requested.width, requested.height, { sizeMode: 'compact' }); + flow.commitHistoryTransaction(); + assertSize(); + const resizedInstance = structuredClone(readInstance()); + assert.deepEqual(resizedInstance.presentation.internalLayout[targetId], { + ...original.presentation.internalLayout[targetId], + ...requested, + sizeMode: 'compact', + }); + assert.deepEqual(resizedInstance.effectiveGraph, original.effectiveGraph); + assert.deepEqual(resizedInstance.definitionSnapshot, original.definitionSnapshot); + assert.deepEqual(resizedInstance.values, original.values); + assert.deepEqual(resizedInstance.authorities, original.authorities); + + flow.undo(); + assert.deepEqual(readInstance().presentation.internalLayout, original.presentation.internalLayout); + flow.redo(); + flow.ensureBlockProjectionV2(original.instanceId); + assertSize(); + + const reloaded = schema.normalizeBlockInstanceV2(JSON.parse(JSON.stringify(readInstance()))); + const restored = runtime.materializeBlockProjectionV2(runtime.createBlockRootNodeV2(reloaded)); + flowStore.useFlowStore.setState({ nodes: restored.nodes, edges: restored.edges }); + assertSize(); + await flow.onNodesChange([{ id: target.id, type: 'position', position: { x: 90, y: 160 }, dragging: false }]); + assert.equal(readInstance().presentation.internalLayout[targetId].sizeMode, 'compact'); + flow.ensureBlockProjectionV2(original.instanceId); + assertSize(); + // Moving an expanded frame must not replace the manually sized compact + // card with its derived child envelope before the next collapse. + flow.toggleBlockContainerExpandedV2(original.instanceId, targetId); + await flow.onNodesChange([{ id: target.id, type: 'position', position: { x: 110, y: 180 }, dragging: false }]); + flow.toggleBlockContainerExpandedV2(original.instanceId, targetId); + assertSize(); + // A later measurement must not discard the explicit compact-size identity. + flow.setNodeSize(target.id, requested.width, requested.height + 1, { history: false }); + assert.equal(readInstance().presentation.internalLayout[targetId].sizeMode, 'compact'); + assert.equal( + flowStore.useFlowStore.getState().nodes.find((node) => node.id === target.id).height, + requested.height + 1, + ); + }); +} + +test('manual projected resize marks an unchanged compact size without marking automatic measurements', () => { + const root = nestedModularRoot(); + const projection = runtime.materializeBlockProjectionV2(root); + flowStore.useFlowStore.setState({ nodes: projection.nodes, edges: projection.edges }); + const child = projection.nodes.find((node) => node.data.blockProjectionNodeId === 'generate'); + const flow = flowStore.useFlowStore.getState(); + flow.setNodeSize(child.id, child.width, child.height, { history: false }); + const currentLayout = () => + flowStore.useFlowStore.getState().nodes.find((node) => node.id === root.id).data.blockInstanceV2.presentation + .internalLayout[child.data.blockProjectionNodeId]; + assert.equal(currentLayout().sizeMode, undefined); + flow.setNodeSize(child.id, child.width, child.height, { sizeMode: 'compact' }); + assert.equal(currentLayout().sizeMode, 'compact'); +}); + test('both composite generations use one shared frame and V2 stays on the block renderer', () => { const blockSource = fs.readFileSync(path.join(ROOT, 'src', 'components', 'BlockNode.tsx'), 'utf8'); const legacySource = fs.readFileSync(path.join(ROOT, 'src', 'components', 'LegacyUserBlockNode.tsx'), 'utf8'); diff --git a/scripts/block-schema-v2.test.mjs b/scripts/block-schema-v2.test.mjs index 45ee45ff..418bc5c9 100644 --- a/scripts/block-schema-v2.test.mjs +++ b/scripts/block-schema-v2.test.mjs @@ -454,6 +454,27 @@ test('presentation is hash-independent and inserted instances do not share value assert.equal(parsed.effectiveGraph.graphHash, fixture.graph.graphHash); }); +test('compact internal sizes round-trip as presentation only and reject unknown size modes', () => { + const original = schema.createBlockInstanceV2(definition(), { + instanceId: 'compact-layout', + position: { x: 0, y: 0 }, + size: { width: 340, height: 360 }, + internalLayout: { generate: { x: 28, y: 76, width: 371, height: 312 } }, + }); + assert.deepEqual(schema.normalizeBlockInstanceV2(JSON.parse(JSON.stringify(original))), original); + const compact = structuredClone(original); + compact.presentation.internalLayout.generate.sizeMode = 'compact'; + assert.deepEqual(schema.normalizeBlockInstanceV2(JSON.parse(JSON.stringify(compact))), compact); + assert.deepEqual(compact.effectiveGraph, original.effectiveGraph); + assert.deepEqual(compact.definitionSnapshot, original.definitionSnapshot); + assert.deepEqual(compact.authorities, original.authorities); + for (const invalid of [null, false, 1, '', 'expanded', {}, ['compact']]) { + const broken = structuredClone(compact); + broken.presentation.internalLayout.generate.sizeMode = invalid; + assert.throws(() => schema.normalizeBlockInstanceV2(broken), /sizeMode.*compact/u); + } +}); + test('explicit empty values survive round-trip and do not fall back to defaults', () => { for (const [suffix, value] of [ ['empty', ''], diff --git a/src/components/ProjectedBlockNodeV2.tsx b/src/components/ProjectedBlockNodeV2.tsx index 83c21206..acddbda8 100644 --- a/src/components/ProjectedBlockNodeV2.tsx +++ b/src/components/ProjectedBlockNodeV2.tsx @@ -149,6 +149,7 @@ const ProjectedBlockNodeV2 = memo((node: NodeProps) => { node.id, Math.max(260, Math.min(modiffLayout.maxNodeWidth, initialWidth + (moveEvent.clientX - startX) / zoom)), Math.max(minimumHeight, initialHeight + (moveEvent.clientY - startY) / zoom), + { sizeMode: 'compact' }, ); scheduleNodeLayoutSync(); }; diff --git a/src/stores/flowGraphMutations.ts b/src/stores/flowGraphMutations.ts index 9ca4d269..11c50029 100644 --- a/src/stores/flowGraphMutations.ts +++ b/src/stores/flowGraphMutations.ts @@ -228,8 +228,18 @@ function persistFinalBlockV2ProjectionPositions( ); const previous = root.data.blockInstanceV2.presentation.internalLayout[semanticNodeId]; - const width = projection.measured?.width ?? projection.width ?? previous?.width; - const height = projection.measured?.height ?? projection.height ?? previous?.height; + // An expanded frame's derived bounds are not the manually sized compact + // card. A header move may update position without replacing that own size. + const retainCompactSize = + previous?.sizeMode === 'compact' && + projection.data.blockProjectionContainer === true && + projection.data.blockProjectionContainerExpanded !== false; + const width = retainCompactSize + ? previous.width + : (projection.measured?.width ?? projection.width ?? previous?.width); + const height = retainCompactSize + ? previous.height + : (projection.measured?.height ?? projection.height ?? previous?.height); const blockInstanceV2 = setBlockPresentationV2(root.data.blockInstanceV2, { internalLayout: { [semanticNodeId]: { @@ -237,6 +247,7 @@ function persistFinalBlockV2ProjectionPositions( y: projection.position.y, ...(typeof width === 'number' && Number.isFinite(width) && width > 0 ? { width } : {}), ...(typeof height === 'number' && Number.isFinite(height) && height > 0 ? { height } : {}), + ...(previous?.sizeMode ? { sizeMode: previous.sizeMode } : {}), }, }, }); diff --git a/src/stores/flowNodeMutations.ts b/src/stores/flowNodeMutations.ts index bf91b45a..223eee75 100644 --- a/src/stores/flowNodeMutations.ts +++ b/src/stores/flowNodeMutations.ts @@ -182,7 +182,7 @@ export function writeNodeParam( }); } -export function setFlowNodeSize(id: string, width: number, height: number, set: FlowStoreSet) { +export function setFlowNodeSize(id: string, width: number, height: number, set: FlowStoreSet, sizeMode?: 'compact') { set((state) => { const node = state.nodes.find((item) => item.id === id); if (!node) { @@ -198,7 +198,10 @@ export function setFlowNodeSize(id: string, width: number, height: number, set: if ( node.width === width && node.height === height && - (!owner || (previousLayout?.width === width && previousLayout?.height === height)) + (!owner || + (previousLayout?.width === width && + previousLayout?.height === height && + (sizeMode === undefined || previousLayout?.sizeMode === sizeMode))) ) { return state; } @@ -212,6 +215,9 @@ export function setFlowNodeSize(id: string, width: number, height: number, set: y: node.position.y, width, height, + // Measurements preserve an existing manual size, but never + // relabel unmarked legacy expanded geometry as compact. + ...((sizeMode ?? previousLayout?.sizeMode) ? { sizeMode: sizeMode ?? previousLayout?.sizeMode } : {}), }, }, }) diff --git a/src/stores/useFlowStore.ts b/src/stores/useFlowStore.ts index 5f9a604d..b6484d92 100644 --- a/src/stores/useFlowStore.ts +++ b/src/stores/useFlowStore.ts @@ -211,7 +211,12 @@ export type FlowStore = { value: NodeParams[K], key?: K, ) => void; - setNodeSize: (id: string, width: number, height: number, options?: { history?: boolean }) => void; + setNodeSize: ( + id: string, + width: number, + height: number, + options?: { history?: boolean; sizeMode?: 'compact' }, + ) => void; getNodeParamsValues: (id: string) => Record; replaceNodeParams: (id: string, params: Record) => void; setNodeUiState: (id: string, uiState: Partial>) => void; @@ -1836,7 +1841,7 @@ export const useFlowStore = create()( } }, setNodeSize: (id: string, width: number, height: number, options) => { - const resize = () => setFlowNodeSize(id, width, height, set); + const resize = () => setFlowNodeSize(id, width, height, set, options?.sizeMode); if (options?.history === false) resize(); else get().withHistory('Resize node', resize); }, diff --git a/src/studio/blockRuntimeV2.ts b/src/studio/blockRuntimeV2.ts index 43580cbf..24baa602 100644 --- a/src/studio/blockRuntimeV2.ts +++ b/src/studio/blockRuntimeV2.ts @@ -1543,7 +1543,8 @@ function projectedOwnSizeV2( // Catalogs produced before progressive disclosure stored a container's // complete recursive footprint in its one width/height pair. Detect that // legacy geometry from its immediate child bounds and restore the compact - // card size. Expanded dimensions are derived separately below. + // card size unless an explicit compact resize has supplied an unambiguous + // size mode. Expanded dimensions are derived separately below. const containsStoredChild = directChildren.some((child) => { const childLayout = layoutByNodeId.get(child.nodeId); if (!childLayout) return false; @@ -1551,7 +1552,7 @@ function projectedOwnSizeV2( const childHeight = childLayout.height ?? INTERNAL_CONTAINER_MIN_HEIGHT; return width >= childLayout.x + childWidth + 20 || height >= childLayout.y + childHeight + 20; }); - if (containsStoredChild) { + if (containsStoredChild && layout.sizeMode !== 'compact') { width = INTERNAL_CONTAINER_WIDTH; height = defaultHeight; } diff --git a/src/studio/blockSchemaV2.ts b/src/studio/blockSchemaV2.ts index d2686dfe..6aefcad0 100644 --- a/src/studio/blockSchemaV2.ts +++ b/src/studio/blockSchemaV2.ts @@ -377,7 +377,17 @@ export type BlockInstanceV2 = { collapsedContainerNodeIds?: string[]; /** Explicitly removed dynamic control rows; not an execution disable flag. */ removedControlBindings?: Array<{ nodeId: string; fieldId: string }>; - internalLayout: Record; + internalLayout: Record< + string, + { + x: number; + y: number; + width?: number; + height?: number; + /** Explicit compact-card size from a manual resize; absent entries retain legacy footprint migration. */ + sizeMode?: 'compact'; + } + >; }; previewStates: BlockPreviewStateV2[]; authorities: BlockAuthorityReceiptV2[]; @@ -1484,7 +1494,14 @@ export function normalizeBlockInstanceV2(value: unknown): BlockInstanceV2 { if (!effectiveNodeIds.has(nodeId)) invalid('Block Instance V2.presentation.internalLayout', `references unknown node ${nodeId}.`); const layout = objectAt(rawLayout, `Block Instance V2.presentation.internalLayout.${nodeId}`); - keysAt(layout, `Block Instance V2.presentation.internalLayout.${nodeId}`, ['x', 'y'], ['width', 'height']); + keysAt( + layout, + `Block Instance V2.presentation.internalLayout.${nodeId}`, + ['x', 'y'], + ['width', 'height', 'sizeMode'], + ); + if ('sizeMode' in layout && layout.sizeMode !== 'compact') + invalid(`Block Instance V2.presentation.internalLayout.${nodeId}.sizeMode`, 'must be compact.'); finiteNumberAt(layout.x, `Block Instance V2.presentation.internalLayout.${nodeId}.x`); finiteNumberAt(layout.y, `Block Instance V2.presentation.internalLayout.${nodeId}.y`); if (layout.width !== undefined) From 75357dead5f321282caee7da718310ae44bad5c8 Mon Sep 17 00:00:00 2001 From: Sourav Das Date: Wed, 28 Oct 2026 03:22:03 +0530 Subject: [PATCH 079/440] fix: scope template readiness to prerequisite checks --- docs/studio-user-flow.md | 2 + scripts/modiff-template.test.mjs | 145 ++++++++++++++++++ src/studio/templateReadiness.ts | 14 +- tests/e2e/studio-mocked/studio-mocked.spec.ts | 8 +- 4 files changed, 165 insertions(+), 4 deletions(-) diff --git a/docs/studio-user-flow.md b/docs/studio-user-flow.md index 75f58d96..05a2c762 100644 --- a/docs/studio-user-flow.md +++ b/docs/studio-user-flow.md @@ -345,6 +345,8 @@ For gated models, accept the provider's terms and authenticate through supported ## Run Readiness +Template cards show **Auto check at Run** when their model prerequisites and required inputs pass the template check. This is not a current memory-fit assessment of the complete workflow. Run checks the actual graph and current memory before submitting an Auto task. Explicit Custom recipes retain their experimental prerequisite status; built-in processing that needs no model download can show **Ready now**. + The current graph is checked before submission. Blocking issues can include: - Backend or websocket unavailable diff --git a/scripts/modiff-template.test.mjs b/scripts/modiff-template.test.mjs index b9b6e065..ca6e2b5d 100644 --- a/scripts/modiff-template.test.mjs +++ b/scripts/modiff-template.test.mjs @@ -4473,6 +4473,151 @@ test('runtime option normalization supports the real registry descriptor contrac ]); }); +test('template readiness scopes a successful model prerequisite check to Run', () => { + const quick = templatesModule.STUDIO_TEMPLATES.find((template) => template.id === 'z_image_quick_concept'); + assert.ok(quick); + const context = readinessContext({ hfCache: ['Tongyi-MAI/Z-Image-Turbo'] }); + const originalContext = structuredClone(context); + const ready = readinessModule.getTemplateReadiness(quick, context); + + // A per-model recipe has no submitted graph or live full-workflow memory proof. + assert.equal(ready.status, 'ready'); + assert.equal(ready.label, 'Auto check at Run'); + assert.match(ready.summary, /complete workflow and current memory.*before submitting a task/u); + assert.doesNotMatch(ready.summary, /hardware looks usable|Auto plan is ready/u); + assert.deepEqual(ready.compatibility, context.autoResourcePlan.compatibility); + assert.equal(ready.decision.state, 'ready'); + assert.deepEqual(ready.issues, []); + assert.deepEqual(ready.modelInstallTargets, []); + assert.deepEqual(context, originalContext); + + const custom = readinessModule.getTemplateReadiness(quick, { + ...context, + form: { ...context.form, resourceMode: 'expert' }, + }); + assert.equal(custom.status, ready.status); + assert.equal(custom.label, 'Check at Run'); + assert.match(custom.summary, /complete workflow using your Custom memory settings.*before submitting a task/u); + assert.doesNotMatch(custom.summary, /Auto plan|hardware.*usable|current memory/u); + assert.deepEqual(custom.decision, ready.decision); + assert.deepEqual(custom.compatibility, ready.compatibility); + + const pending = readinessModule.getTemplateReadiness(quick, { ...context, autoResourcePlan: null }); + assert.equal(pending.status, 'preparing'); + assert.equal(pending.label, 'Checking models'); + assert.equal(pending.decision.state, 'preparing'); + assert.ok(pending.issues.some((issue) => issue.id === 'auto-plan-checking' && issue.blocking)); + const blocked = readinessModule.getTemplateReadiness(quick, { + ...context, + autoResourcePlan: { + ...context.autoResourcePlan, + compatibility: { + ...context.autoResourcePlan.compatibility, + state: 'needs_setup', + severity: 'error', + code: 'memory_unavailable', + summary: 'Memory unavailable', + detail: 'The model prerequisite check cannot proceed.', + }, + issue: { category: 'device' }, + }, + }); + assert.equal(blocked.status, 'needs_setup'); + assert.equal(blocked.decision.state, 'blocked'); + assert.equal(blocked.issues[0].category, 'hardware_fit'); + assert.equal(blocked.summary, 'The model prerequisite check cannot proceed.'); +}); + +test('template readiness scope preserves model-free readiness and explicit Custom prerequisites', () => { + const quick = templatesModule.STUDIO_TEMPLATES.find((template) => template.id === 'z_image_quick_concept'); + assert.ok(quick); + const builtin = { + ...quick, + modelType: 'BuiltinDataOperation', + mode: 'text_select', + modelArtifact: undefined, + executionSelection: undefined, + inputRequirements: undefined, + inputBindings: undefined, + requiredBackendCapabilities: [], + workflowBlockSettings: undefined, + }; + const builtInReady = readinessModule.getTemplateReadiness(builtin, readinessContext()); + assert.equal(builtInReady.status, 'ready'); + assert.equal(builtInReady.label, 'Ready now'); + assert.match(builtInReady.summary, /Built-in processing needs no model download/u); + assert.doesNotMatch(builtInReady.summary, /Auto plan|hardware/u); + assert.deepEqual(builtInReady.modelInstallTargets, []); + + const revision = 'a'.repeat(40); + const customTemplate = { + ...quick, + modelArtifact: { source: 'hub', value: 'Tongyi-MAI/Z-Image-Turbo', revision }, + example: { ...quick.example, modelRevision: revision }, + executionSelection: { + schemaVersion: 1, + pipelineClass: 'ZImageModularPipeline', + task: 'text_to_image', + executionProfileId: 'unit-custom-prerequisite', + bindingSpec: { modelType: quick.modelType, mode: quick.mode }, + implementation: 'native_stages', + memoryPolicy: 'custom_experimental', + }, + }; + const customContext = { + ...readinessContext({ + autoResourcePlan: null, + form: { ...profilesModule.DEFAULT_STUDIO_FORM, resourceMode: 'expert' }, + hfCache: [ + { + id: 'Tongyi-MAI/Z-Image-Turbo', + installed: true, + complete: true, + planned_revision: revision, + planned_files: [], + }, + ], + nodesRegistry: { 'modules.ModularDiffusers.ModelsLoader': {} }, + runtime: { + ready: true, + runtimeEnvironment: { profileVerified: true, executionReady: true }, + packages: Object.fromEntries( + ['torch', 'diffusers', 'transformers', 'peft'].map((name) => [name, { available: true }]), + ), + missing_required_packages: [], + }, + }), + studioModelCapabilities: [ + { + modelType: quick.modelType, + defaultRepo: 'Tongyi-MAI/Z-Image-Turbo', + executionProfiles: [ + { + id: 'unit-custom-prerequisite', + model_type: quick.modelType, + pipeline_class: 'ZImageModularPipeline', + modes: [quick.mode], + default_repo: 'Tongyi-MAI/Z-Image-Turbo', + }, + ], + }, + ], + }; + const custom = readinessModule.getTemplateReadiness(customTemplate, customContext); + assert.equal(custom.status, 'ready'); + assert.equal(custom.label, 'Custom · experimental'); + assert.equal(custom.tone, 'warning'); + assert.match(custom.summary, /hardware fit and output quality remain experimental/u); + assert.deepEqual(custom.issues, []); + const missingRuntime = readinessModule.getTemplateReadiness(customTemplate, { + ...customContext, + runtimeStatus: { ...customContext.runtimeStatus, ready: false }, + }); + assert.equal(missingRuntime.status, 'needs_backend'); + assert.equal(missingRuntime.decision.state, 'blocked'); + assert.ok(missingRuntime.issues.some((issue) => issue.id === 'custom:base-runtime' && issue.blocking)); +}); + test('template readiness classifies ready, input, model, and backend states', () => { const { STUDIO_TEMPLATES } = templatesModule; const { getTemplateReadiness } = readinessModule; diff --git a/src/studio/templateReadiness.ts b/src/studio/templateReadiness.ts index 0fe6b7da..bb700ef8 100644 --- a/src/studio/templateReadiness.ts +++ b/src/studio/templateReadiness.ts @@ -7,7 +7,7 @@ import { type StudioCompatibilityAssessment, type StudioAutoResourcePlan, } from './autoResource'; -import { getModelRequirementsForMode, STUDIO_MODEL_LABELS, STUDIO_MODEL_PROFILES } from './modelProfiles'; +import { getModelRequirementsForMode, STUDIO_MODEL_PROFILES } from './modelProfiles'; import { resolveTemplateInputs } from './templateInputs'; import { buildRunReadinessDecision } from './runReadiness'; import type { @@ -594,14 +594,22 @@ export function getTemplateReadiness( : 'needs_setup'; const copy = statusCopy(status); + // Template plans check model prerequisites; only Run assesses the submitted graph. + const modelFree = profile.runtimeKind === 'builtin' && modelRequirements(template).length === 0; + const customMemory = context.form?.resourceMode === 'expert'; + const readyLabel = modelFree ? copy.label : customMemory ? 'Check at Run' : 'Auto check at Run'; const summary = status === 'ready' - ? `${STUDIO_MODEL_LABELS[template.modelType]} Auto plan is ready, hardware looks usable, and no required inputs are missing.` + ? modelFree + ? 'Built-in processing needs no model download. Run checks the complete workflow and required inputs before submitting a task.' + : customMemory + ? 'Model prerequisites and required inputs passed this template check. Run checks the complete workflow using your Custom memory settings before submitting a task.' + : 'Model prerequisites and required inputs passed this template check. Run checks the complete workflow and current memory before submitting a task.' : (issues[0]?.detail ?? 'Review the required setup before running this recipe.'); return { status, - label: copy.label, + label: status === 'ready' ? readyLabel : copy.label, tone: copy.tone, summary, compatibility, diff --git a/tests/e2e/studio-mocked/studio-mocked.spec.ts b/tests/e2e/studio-mocked/studio-mocked.spec.ts index b1c98dcd..7de0d88f 100644 --- a/tests/e2e/studio-mocked/studio-mocked.spec.ts +++ b/tests/e2e/studio-mocked/studio-mocked.spec.ts @@ -16802,7 +16802,13 @@ test('mocked Studio blocks missing models, marks loader red, and keeps local tab await templateSearch.fill('Aspect-Ratio Expansion'); await page.getByTestId('template-browser-use-qwen_outpaint_aspect_template').click(); await expect(page.getByTestId('template-detail-qwen_outpaint_aspect_template')).toBeVisible(); - await expect(page.getByTestId('template-readiness-qwen_outpaint_aspect_template')).toContainText('Ready now'); + await expect(page.getByTestId('template-readiness-qwen_outpaint_aspect_template')).toContainText('Auto check at Run'); + await expect(page.getByTestId('template-readiness-qwen_outpaint_aspect_template')).toContainText( + 'Run checks the complete workflow and current memory before submitting a task.', + ); + await expect(page.getByTestId('template-readiness-qwen_outpaint_aspect_template')).not.toContainText( + 'hardware looks usable', + ); await expect(page.getByTestId('template-detail-qwen_outpaint_aspect_template')).toContainText('Included inputs'); await expect(page.getByTestId('template-browser-create-qwen_outpaint_aspect_template')).toContainText('Use template'); await page From 770baceea9eb086e526acb7b027d9d95985f8de7 Mon Sep 17 00:00:00 2001 From: Sourav Das Date: Wed, 28 Oct 2026 03:23:29 +0530 Subject: [PATCH 080/440] Preserve disabled Block leaves in execution projections --- scripts/block-container-interface-v1.test.mjs | 110 ++++++++++++++++++ src/studio/blockRuntimeV2.ts | 5 + 2 files changed, 115 insertions(+) diff --git a/scripts/block-container-interface-v1.test.mjs b/scripts/block-container-interface-v1.test.mjs index 1785982e..1e9c0494 100644 --- a/scripts/block-container-interface-v1.test.mjs +++ b/scripts/block-container-interface-v1.test.mjs @@ -1564,6 +1564,116 @@ test('root Run includes every local branch even without a preview and never runs } }); +test('disabled Block leaves survive projection, persistence and whole-workflow export', () => { + const baseline = instance(previewFixture); + const graph = structuredClone(baseline.effectiveGraph); + graph.nodes.find((n) => n.nodeId === 'caption').data.uiState = { + disabled: true, + errorMessage: 'Transient runtime error', + encodingSummaries: { image: { graphHash: 'old-run', value: 'transient' } }, + }; + graph.nodes.find((n) => n.nodeId === 'sibling').data.uiState = { + disabled: false, + validationMessage: 'Transient validation', + }; + const current = runtime.replaceBlockEffectiveGraphV2(baseline, graph); + const before = structuredClone(current); + const root = runtime.createBlockRootNodeV2( + runtime.setBlockPresentationV2(current, { expanded: true, collapsedContainerNodeIds: [] }), + ); + for (const view of [ + runtime.blockOperationGraphV2(current), + runtime.materializeBlockProjectionV2(root), + runtime.expandBlockGraphV2ForExecution([root], []), + ]) { + assert.deepEqual(view.nodes.find((n) => n.data.blockProjectionNodeId === 'caption').data.uiState, { + disabled: true, + }); + assert.deepEqual(view.nodes.find((n) => n.data.blockProjectionNodeId === 'sibling').data.uiState, { + disabled: false, + }); + } + const enabledExport = loadStore(baseline)().exportGraph('disabled-leaf'); + const disabledId = runtime.blockProjectionNodeIdV2(current.instanceId, 'caption'); + delete enabledExport.nodes[disabledId]; + enabledExport.paths = enabledExport.paths.filter((p) => !p.includes(disabledId)); + const get = loadStore(current); + const expected = ['generate', 'sibling'].map((id) => runtime.blockProjectionNodeIdV2(current.instanceId, id)); + const exported = get().exportGraph('disabled-leaf'); + assert.deepEqual(exported, enabledExport, 'only the disabled leaf is omitted from the exact API graph'); + assert.deepEqual(Object.keys(exported.nodes).sort(), expected.sort()); + assert.deepEqual(exported.paths.map((p) => [...p]).sort(), expected.map((id) => [id]).sort()); + const saved = JSON.parse(JSON.stringify(get().toObject())); + get().replaceGraph(saved); + assert.deepEqual(get().exportGraph('disabled-leaf'), exported); + assert.deepEqual( + get().nodes.find((n) => n.id === current.instanceId).data.blockInstanceV2.definitionSnapshot, + baseline.definitionSnapshot, + ); + assert.deepEqual(current, before, 'projection must not rewrite disabled or transient saved data'); +}); + +test('required image readiness uses directly disabled Block leaves and disabled ancestors', async () => { + const { inspectBlockMediaInputsV2 } = await server.ssrLoadModule('/src/studio/blockMediaReadinessV2.ts'); + const baseline = instance(previewFixture); + const graph = structuredClone(baseline.effectiveGraph); + const leaf = graph.nodes.find((n) => n.nodeId === 'caption'); + Object.assign(leaf.data, { + module: 'modules.ModularDiffusers', + action: 'ImageEncode', + label: 'Encode Image', + operationAuthoring: { + schemaVersion: 1, + defaults: {}, + retained: [], + operation: { + pipelineClass: 'ExamplePipeline', + task: 'image_to_image', + operationId: 'diffusion.encode_image', + nodeKey: 'modules.ModularDiffusers.ImageEncode', + nodeType: 'custom', + blockName: 'ImageEncode', + decomposition: 'block', + support: 'declared', + workflowId: null, + binding: { pipelineClass: 'ExamplePipeline', values: {} }, + ports: [ + { + name: 'image', + semanticName: 'image', + direction: 'input', + roles: ['value'], + types: ['image'], + required: true, + hidden: false, + semantics: { kind: 'media', scope: null, state: null, owner: 'none', members: [] }, + }, + ], + }, + }, + }); + leaf.data.params.image = { type: 'image', display: 'input' }; + const inspect = () => { + const current = runtime.replaceBlockEffectiveGraphV2(baseline, graph); + const before = structuredClone(current); + const root = runtime.createBlockRootNodeV2(current); + const issues = inspectBlockMediaInputsV2([root], runtime.expandBlockGraphV2ForExecution([root], [])); + assert.deepEqual(current, before); + assert.deepEqual(current.definitionSnapshot, baseline.definitionSnapshot); + return issues; + }; + assert.deepEqual( + inspect().map((issue) => issue.message), + ['Encode Image needs image before running.'], + ); + leaf.data.uiState = { disabled: true }; + assert.deepEqual(inspect(), [], 'retained unmatched image stage must not block text-to-image'); + leaf.data.uiState.disabled = false; + assert.equal(inspect().length, 1, 're-enabling the image stage restores required-media validation'); + graph.nodes.find((n) => n.nodeId === 'stage').data.uiState = { disabled: true }; + assert.deepEqual(inspect(), [], 'an enabled leaf still inherits its disabled ancestor'); +}); + test('nested Run excludes disabled children and explains an entirely disabled subtree', () => { const definition = structuredClone(previewFixture); definition.graph.nodes.find((n) => n.nodeId === 'caption').data.uiState = { disabled: true }; diff --git a/src/studio/blockRuntimeV2.ts b/src/studio/blockRuntimeV2.ts index 24baa602..39522b17 100644 --- a/src/studio/blockRuntimeV2.ts +++ b/src/studio/blockRuntimeV2.ts @@ -1444,6 +1444,11 @@ function projectedNodeData( label, category: typeof raw.category === 'string' ? raw.category : 'Block internals', params, + // Disabled is authored execution state. Other UI state can contain stale + // validation or runtime diagnostics and must not enter the projection. + ...(isRecord(raw.uiState) && typeof raw.uiState.disabled === 'boolean' + ? { uiState: { disabled: raw.uiState.disabled } } + : {}), // Expanded Block internals are ordinary canvas nodes. Keep the same // resize affordance as standalone/User Node internals; the durable size // is absorbed into presentation.internalLayout by setFlowNodeSize. From 5e8be27cc937d3f99a36cf7a5c7672f5cb21abe8 Mon Sep 17 00:00:00 2001 From: Sourav Das Date: Wed, 28 Oct 2026 03:40:17 +0530 Subject: [PATCH 081/440] Keep compact Block size through drag-stop persistence --- scripts/block-renderer-v2.test.mjs | 67 ++++++++++++++++++++++++++++++ src/stores/useFlowStore.ts | 23 +++++++--- 2 files changed, 84 insertions(+), 6 deletions(-) diff --git a/scripts/block-renderer-v2.test.mjs b/scripts/block-renderer-v2.test.mjs index 7f5fac25..3075ed65 100644 --- a/scripts/block-renderer-v2.test.mjs +++ b/scripts/block-renderer-v2.test.mjs @@ -1600,6 +1600,17 @@ for (const requested of [ assert.equal(resized.width, requested.width); assert.equal(resized.height, requested.height); }; + const assertAncestorsContain = () => { + const nodes = flowStore.useFlowStore.getState().nodes; + let child = nodes.find((node) => node.id === target.id); + for (let depth = 0; depth < 2; depth++) { + const parent = nodes.find((node) => node.id === child.parentId); + assert.ok(parent, 'both the immediate container and root are present'); + assert.ok(child.position.x + child.width <= parent.width, 'ancestor contains child width'); + assert.ok(child.position.y + child.height <= parent.height, 'ancestor contains child height'); + child = parent; + } + }; // Automatic DOM measurement must not relabel the recorded legacy footprint. flow.setNodeSize(target.id, 340, 277, { history: false }); @@ -1610,6 +1621,7 @@ for (const requested of [ flow.setNodeSize(target.id, requested.width, requested.height, { sizeMode: 'compact' }); flow.commitHistoryTransaction(); assertSize(); + assertAncestorsContain(); const resizedInstance = structuredClone(readInstance()); assert.deepEqual(resizedInstance.presentation.internalLayout[targetId], { ...original.presentation.internalLayout[targetId], @@ -1638,9 +1650,38 @@ for (const requested of [ // Moving an expanded frame must not replace the manually sized compact // card with its derived child envelope before the next collapse. flow.toggleBlockContainerExpandedV2(original.instanceId, targetId); + const beforeDrag = structuredClone(readInstance()); + // Synthetic DOM measurement using the exact expanded envelope retained + // from the native follow-up. The workflow's drag-stop callback runs after + // React Flow's final position event; exercising only the latter missed it. + flowStore.useFlowStore.setState((state) => ({ + nodes: state.nodes.map((node) => + node.id === target.id ? { ...node, measured: { width: 2276, height: 873 } } : node, + ), + })); + flow.beginHistoryTransaction('Move nested Block'); await flow.onNodesChange([{ id: target.id, type: 'position', position: { x: 110, y: 180 }, dragging: false }]); + flow.persistBlockCanvasPresentationV2(target.id); + flow.commitHistoryTransaction(); + const afterDrag = structuredClone(readInstance()); + assert.deepEqual(afterDrag.presentation.internalLayout[targetId], { + ...beforeDrag.presentation.internalLayout[targetId], + x: 110, + y: 180, + }); + assertAncestorsContain(); + flow.undo(); + assert.deepEqual(readInstance(), beforeDrag); + flow.redo(); + assert.deepEqual(readInstance(), afterDrag); flow.toggleBlockContainerExpandedV2(original.instanceId, targetId); assertSize(); + assertAncestorsContain(); + const afterCollapse = schema.normalizeBlockInstanceV2(JSON.parse(JSON.stringify(readInstance()))); + const reprojected = runtime.materializeBlockProjectionV2(runtime.createBlockRootNodeV2(afterCollapse)); + flowStore.useFlowStore.setState({ nodes: reprojected.nodes, edges: reprojected.edges }); + assertSize(); + assertAncestorsContain(); // A later measurement must not discard the explicit compact-size identity. flow.setNodeSize(target.id, requested.width, requested.height + 1, { history: false }); assert.equal(readInstance().presentation.internalLayout[targetId].sizeMode, 'compact'); @@ -1651,6 +1692,32 @@ for (const requested of [ }); } +test('drag-stop keeps measured sizing for unmarked legacy containers and collapsed compact cards', () => { + for (const marked of [false, true]) { + const root = nestedModularRoot(); + const instance = root.data.blockInstanceV2; + const prepared = runtime.setBlockPresentationV2(instance, { + collapsedContainerNodeIds: marked ? ['denoise'] : [], + internalLayout: { + denoise: { ...instance.presentation.internalLayout.denoise, ...(marked ? { sizeMode: 'compact' } : {}) }, + }, + }); + const projection = runtime.materializeBlockProjectionV2(runtime.createBlockRootNodeV2(prepared)); + const child = projection.nodes.find((node) => node.data.blockProjectionNodeId === 'denoise'); + flowStore.useFlowStore.setState({ + nodes: projection.nodes.map((node) => + node.id === child.id ? { ...node, measured: { width: 510, height: 330 } } : node, + ), + edges: projection.edges, + }); + flowStore.useFlowStore.getState().persistBlockCanvasPresentationV2(child.id); + const saved = flowStore.useFlowStore.getState().nodes.find((node) => node.id === root.id).data.blockInstanceV2; + assert.equal(saved.presentation.internalLayout.denoise.width, 510); + assert.equal(saved.presentation.internalLayout.denoise.height, 330); + assert.equal(saved.presentation.internalLayout.denoise.sizeMode, marked ? 'compact' : undefined); + } +}); + test('manual projected resize marks an unchanged compact size without marking automatic measurements', () => { const root = nestedModularRoot(); const projection = runtime.materializeBlockProjectionV2(root); diff --git a/src/stores/useFlowStore.ts b/src/stores/useFlowStore.ts index b6484d92..2cc40cbc 100644 --- a/src/stores/useFlowStore.ts +++ b/src/stores/useFlowStore.ts @@ -2178,14 +2178,25 @@ export const useFlowStore = create()( const ownerId = node.data.blockProjectionOwnerId; const semanticNodeId = node.data.blockProjectionNodeId; if (!ownerId || !semanticNodeId) return state; - const graph = updateBlockInstanceV2(state, ownerId, (instance) => - repositionBlockChildV2(instance, semanticNodeId, { + const graph = updateBlockInstanceV2(state, ownerId, (instance) => { + // Workflow's drag-stop callback follows the final position event. + // Keep the same compact-size protection here: an expanded frame's + // measured envelope must not overwrite its durable manual size. + const retainCompactSize = + instance.presentation.internalLayout[semanticNodeId]?.sizeMode === 'compact' && + node.data.blockProjectionContainer === true && + node.data.blockProjectionContainerExpanded !== false; + return repositionBlockChildV2(instance, semanticNodeId, { x: node.position.x, y: node.position.y, - ...((node.measured?.width ?? node.width) ? { width: node.measured?.width ?? node.width } : {}), - ...((node.measured?.height ?? node.height) ? { height: node.measured?.height ?? node.height } : {}), - }), - ); + ...(!retainCompactSize && (node.measured?.width ?? node.width) + ? { width: node.measured?.width ?? node.width } + : {}), + ...(!retainCompactSize && (node.measured?.height ?? node.height) + ? { height: node.measured?.height ?? node.height } + : {}), + }); + }); return graph ? { nodes: graph.nodes, edges: graph.edges } : state; }); }, From 95cdad76aae4351abcf89fec30cbe9d330b1c507 Mon Sep 17 00:00:00 2001 From: Sourav Das Date: Wed, 28 Oct 2026 03:50:30 +0530 Subject: [PATCH 082/440] ci: pair Windows candidate with reviewed backend source --- .github/workflows/ci.yml | 6 +++--- README.md | 23 ++++++++++++--------- scripts/backend-installer-contract.test.mjs | 12 +++++++++-- 3 files changed, 26 insertions(+), 15 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 6d01cc38..80b180d6 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -32,8 +32,8 @@ jobs: uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4 with: repository: sdevil7th/MoDiff - # Paired image stages, scoped enhancement and FLUX3 evaluation contracts. - ref: ae09c2014f01198d359a1310d63a1d8d619796be + # Reviewed Windows application source before final delivery packaging. + ref: 9fc204dcf8abb0329ce5365b0d6c0f478982969f path: MoDiff persist-credentials: false - name: Verify the pinned backend supports native setup @@ -86,7 +86,7 @@ jobs: with: repository: sdevil7th/MoDiff # Match the immutable backend revision in the Client quality job. - ref: ae09c2014f01198d359a1310d63a1d8d619796be + ref: 9fc204dcf8abb0329ce5365b0d6c0f478982969f path: MoDiff persist-credentials: false - name: Verify the pinned backend supports native setup diff --git a/README.md b/README.md index 2228c7fd..24650519 100644 --- a/README.md +++ b/README.md @@ -23,18 +23,21 @@ Node.js `24.12.0`, and npm `11.6.2`. uv can provision Python 3.12. Use two terminals for the backend and the editable frontend. The interim Windows candidate is on `codex/windows-delivery-20261026` in both -repositories. These updates are not released on `main`. The reviewed application -pair is: +repositories. These updates are not released on `main`. The reviewed Windows +application source pair is: -| Repository | Reviewed commit | +| Repository | Application source before final packaging | | ------------- | ------------------------------------------ | -| MoDiff | `ae09c2014f01198d359a1310d63a1d8d619796be` | -| MoDiff-client | `fd3d3dacbcda0b4f44ff23497276658f0233eea8` | - -These are the exact application revisions reviewed on 27 October 2026, not a claim -that every model or hardware combination is qualified. Record `git rev-parse HEAD` -in each checkout; if the branch advances, use its newly reviewed paired handoff. -For an exact reproduction, check out the two commits above in separate checkouts. +| MoDiff | `9fc204dcf8abb0329ce5365b0d6c0f478982969f` | +| MoDiff-client | `5e8be27cc937d3f99a36cf7a5c7672f5cb21abe8` | + +These application source revisions were reviewed on 28 October 2026. Final +documentation, CI pairing and bundled-client packaging commits can be later +descendants; they do not expand model or hardware qualification. Record +`git rev-parse HEAD` in each checkout and use the final paired handoff when the +branch advances. To reproduce the application source before packaging, check out +the two commits above in separate checkouts. This candidate is not an all-platform +release. **Terminal 1 — backend:** clone both repositories into the same parent directory, then start the backend. These commands work in Linux shells and Windows PowerShell. diff --git a/scripts/backend-installer-contract.test.mjs b/scripts/backend-installer-contract.test.mjs index da27bee6..4ba755fa 100644 --- a/scripts/backend-installer-contract.test.mjs +++ b/scripts/backend-installer-contract.test.mjs @@ -181,8 +181,16 @@ test('current setup guides select the published candidate and identify its revie assert.match(text, /codex\/windows-delivery-20261026/, `${guide.pathname} must identify the current candidate`); } const readme = readFileSync(guides[0], 'utf8'); - assert.match(readme, /ae09c2014f01198d359a1310d63a1d8d619796be/, 'Reviewed backend commit is missing'); - assert.match(readme, /fd3d3dacbcda0b4f44ff23497276658f0233eea8/, 'Reviewed client commit is missing'); + const backendSourceCommit = '9fc204dcf8abb0329ce5365b0d6c0f478982969f'; + const clientSourceCommit = '5e8be27cc937d3f99a36cf7a5c7672f5cb21abe8'; + assert.ok(readme.includes(backendSourceCommit), 'Reviewed backend application source commit is missing'); + assert.ok(readme.includes(clientSourceCommit), 'Reviewed client application source commit is missing'); + const workflow = readFileSync(new URL('.github/workflows/ci.yml', clientRoot), 'utf8'); + const backendRefs = Array.from( + workflow.matchAll(/repository: sdevil7th\/MoDiff\s+(?:#[^\n]*\n\s*)?ref: ([a-f0-9]{40})/gu), + (match) => match[1], + ); + assert.deepEqual(backendRefs, [backendSourceCommit, backendSourceCommit], 'Both CI jobs must pin the source pair'); assert.match(readme, /interim Windows candidate/i); assert.match(readme, /not.*(?:release|released).*`main`/); }); From 4d63832e456c2f13f52771260175d5369929b8a5 Mon Sep 17 00:00:00 2001 From: Sourav Das Date: Wed, 28 Oct 2026 03:59:04 +0530 Subject: [PATCH 083/440] Refresh the generated Vite license identity --- public/THIRD_PARTY_LICENSES.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/THIRD_PARTY_LICENSES.txt b/public/THIRD_PARTY_LICENSES.txt index a9c7ecb9..fa46f89b 100644 --- a/public/THIRD_PARTY_LICENSES.txt +++ b/public/THIRD_PARTY_LICENSES.txt @@ -4782,7 +4782,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ================================================================================ -vite@8.1.4 +vite@8.1.6 Declared license: MIT ================================================================================ From ac8fb15a6efc94c32a4faec1938909d71a7cd071 Mon Sep 17 00:00:00 2001 From: Sourav Das Date: Wed, 28 Oct 2026 04:14:30 +0530 Subject: [PATCH 084/440] Record the measured Windows correctness bundle cost --- docs/deployment.md | 14 +++++++++++++- scripts/bundle-budget.mjs | 8 ++++++++ 2 files changed, 21 insertions(+), 1 deletion(-) diff --git a/docs/deployment.md b/docs/deployment.md index 1f1fc251..1db64d43 100644 --- a/docs/deployment.md +++ b/docs/deployment.md @@ -134,12 +134,24 @@ Run the bundle budget after changes that affect dependencies or code splitting: npm run bundle:check ``` +The 28 October Windows candidate measures 669295 gzip bytes of startup +JavaScript, with a 490814-byte largest startup chunk and 326710 deferred bytes. +The Block/checkbox/default/readiness correctness fixes and reviewed Vite +8.1.4 → 8.1.6 security update add 498 aggregate startup bytes and 322 bytes to +the largest startup chunk versus the last accepted build. Allow only those +measured increases: current ceilings are 669306 and 490822 bytes, retaining +11 and 8 bytes of headroom. The same four startup and 89 deferred assets keep +their loading membership; chunk rules, minifier settings and validators stay +fixed. Deferred limits remain 326935 bytes aggregate and 65536 bytes per chunk. +The earlier measurements below describe their historical checkpoints. The +original failed measurement remains evidence for its original source and limits. + That gate also checks emitted module identity: static imports, dynamic imports (including minified backtick strings), and preloads must use one versioned URL per module. Duplicate URLs create independent workflow stores and can break portable export. Shared Lucide dependencies initialize in `graph-vendor` so lazy panels cannot capture undefined icons through an entry-chunk cycle. The -startup graph ceiling is 642816 gzip bytes, with a 464512-byte largest startup +earlier startup graph ceiling was 642816 gzip bytes, with a 464512-byte largest startup chunk. The reviewed media-migration build measures 642098 startup bytes and 463792 bytes for its largest startup chunk. Model-change planning and right-panel forms remain lazy. Preserving one declared media source across diff --git a/scripts/bundle-budget.mjs b/scripts/bundle-budget.mjs index 794fb767..2615e73b 100644 --- a/scripts/bundle-budget.mjs +++ b/scripts/bundle-budget.mjs @@ -1,3 +1,9 @@ +// Windows Block sizing/disabled-stage/label/default/readiness fixes and the +// reviewed Vite 8.1.4 -> 8.1.6 security update measure largest/startup/deferred +// gzip 490814/669295/326710 versus accepted 490492/668797/326749. Add only +// measured aggregate startup growth 322/498, preserving 8/11-byte headroom. +// The same four startup and 89 deferred assets retain their loading membership; +// chunk rules, minifier settings, validators and both deferred caps stay fixed. // Bounded native field-accounting/applied-adapter parsing and explicit cache-release // feedback measure largest/startup/deferred gzip 490492/668797/326749 versus // accepted 488472/666779/326783. Add only measured startup growth 2020/2018, @@ -230,6 +236,7 @@ const SOURCE_LICENSES = new URL('../public/THIRD_PARTY_LICENSES.txt', import.met // Add only those measured costs, preserving 8/11/152 bytes of existing headroom. // Dependencies, startup membership, lazy boundaries and the 64 KiB chunk cap stay fixed. const MAX_STARTUP_CHUNK_GZIP_BYTES = + 322 + 2020 + 66 + 189 + @@ -347,6 +354,7 @@ const MAX_STARTUP_CHUNK_GZIP_BYTES = // Preserve the separately measured 64-byte shared loading-policy allowance above. // Preserve the measured 384-byte selected-image authoring allowance above. const MAX_STARTUP_GZIP_BYTES = + 498 + 2018 + 69 + 190 + From 02c91a751963b47405c51ee43bda649427a528a0 Mon Sep 17 00:00:00 2001 From: Sourav Das Date: Wed, 28 Oct 2026 09:28:42 +0530 Subject: [PATCH 085/440] Preserve authored workflow forms during restore and copy --- docs/modiff-client-architecture.md | 14 +- scripts/workflow-document-origin.test.mjs | 269 +++++++++++++++++++++- src/stores/useStudioStore.ts | 26 ++- 3 files changed, 299 insertions(+), 10 deletions(-) diff --git a/docs/modiff-client-architecture.md b/docs/modiff-client-architecture.md index f5e2fc32..d545f621 100644 --- a/docs/modiff-client-architecture.md +++ b/docs/modiff-client-architecture.md @@ -1097,9 +1097,17 @@ is the single policy selector. Both storage keys and legacy normalizers remain unchanged. A restored workflow keeps its own resource settings while tabs share the global editing preference. -Import, tab switching and backend hydration preserve the document's normalized -memory policy before resolving an inferred image recipe. Graph-derived summaries -may refresh; they must not replace an explicit Custom policy with Automatic. +Explicit graph imports preserve the document's normalized memory policy while +inferring their image recipe summary. Passive tab switching, closing, backend +hydration and browser reload retain a recognized saved ordinary image form; +Save As, Duplicate and output Restore retain that form too. These paths do not +replace authored captions, model/task summaries or resource settings from graph +inference, and an unchanged checkpoint does not trigger an autosave. The saved +selected mode remains the existing mirror of the normalized form mode. Managed +and template recovery keep their existing separate rules. Graph inference must +not replace an explicit Custom policy with Automatic. +Missing or unrecognized legacy forms still infer a graph summary, including +output restores before default-value coercion could hide the missing form. Missing or invalid legacy choices and fresh raw-graph inference still default to Automatic. Graph Fix and Run Issues may open Expert tools without changing execution policy. Older clients can read the same workflow fields but still couple their controls; diff --git a/scripts/workflow-document-origin.test.mjs b/scripts/workflow-document-origin.test.mjs index e003e5e7..46ea99bb 100644 --- a/scripts/workflow-document-origin.test.mjs +++ b/scripts/workflow-document-origin.test.mjs @@ -124,14 +124,14 @@ test('ordinary image document normalization preserves memory policy through impo const snapshot = ordinaryImageSnapshot(module, action, value); const original = structuredClone(snapshot); const id = studio.getState().createWorkflowTab('Saved image graph', snapshot, 'import'); - const assertDocument = () => { + const assertDocument = (expectedPrompt = 'Current graph caption') => { const saved = tab(id).snapshot; assert.equal(saved.studioForm.resourceMode, expected); assert.equal(studio.getState().form.resourceMode, expected); assert.equal( saved.studioForm.prompt, - 'Current graph caption', - 'Graph inference still refreshes its summary.', + expectedPrompt, + 'Explicit import infers a summary; passive hydration retains the saved form.', ); assert.equal(saved.studioGraphBinding, null); assert.deepEqual( @@ -155,7 +155,7 @@ test('ordinary image document normalization preserves memory policy through impo revision: 1, snapshot, }); - assertDocument(); + assertDocument('Saved form summary'); assert.deepEqual(snapshot, original, 'Normalization cannot mutate the input document.'); }); } @@ -173,6 +173,267 @@ test('fresh ordinary graph inference still defaults to Automatic without a saved assert.equal(inference.inferStudioFormFromWorkflow(snapshot.nodes, snapshot.studioForm).resourceMode, 'auto'); }); +test('passive ordinary image restore preserves the complete saved form and does not autosave an inferred summary', async (t) => { + const previousFlow = flow.getState(); + const previousStudio = studio.getState(); + const previousFetch = globalThis.fetch; + try { + for (const [module, action] of [ + ['modules.ImageOperations', 'ProcessImage'], + ['modules.DiffusersImage', 'LoadPipeline'], + ['modules.Spandrel', 'Upscaler'], + ]) { + for (const transition of ['switch', 'close', 'backend hydration', 'reload']) { + await t.test(`${action}: ${transition}`, async () => { + studio.setState({ workflowTabs: [], activeWorkflowTabId: null }); + const snapshot = ordinaryImageSnapshot(module, action, 'expert'); + snapshot.nodes[1].data.params.operation.value = 'image_stitch'; + snapshot.nodes[1].data.retainedAuthoring = { version: 3, labels: ['keep', 'unchanged'] }; + const id = studio.getState().createWorkflowTab('Retained ordinary document', snapshot, 'import'); + // Author after explicit import so the retained form deliberately differs + // from the existing graph-derived summary, as in the Linux reproduction. + studio.getState().updateForm({ + ...defaultForm, + resourceMode: 'expert', + prompt: 'Keep this authored form summary', + negativePrompt: 'Retained negative caption', + dtype: 'float16', + device: 'cuda:0', + autoOffload: true, + offloadMode: 'group_disk', + steps: 17, + guidanceScale: 6.25, + seed: 123, + randomSeed: false, + width: 768, + height: 512, + aspectRatio: 'custom', + referenceImages: ['images/retained-reference.png'], + }); + studio.getState().saveActiveWorkflowTab(true); + const original = structuredClone({ ...tab(id), dirty: false, intent: 'saved', backendRevision: 2 }); + studio.setState({ workflowTabs: [structuredClone(original)] }); + sync.markBackendWorkflow(original); + const requests = []; + globalThis.fetch = async (url, options) => { + requests.push([String(url), options?.method ?? 'GET']); + return response(record(tab(id))); + }; + + if (transition === 'switch' || transition === 'close') { + const otherId = studio.getState().createWorkflowTab('Another document'); + const other = structuredClone(tab(otherId)); + if (transition === 'switch') studio.getState().switchWorkflowTab(id); + else studio.getState().closeWorkflowTab(otherId); + if (transition === 'switch') assert.deepEqual(tab(otherId), other, 'Unrelated tab remains exact.'); + } else if (transition === 'backend hydration') { + studio.setState({ workflowTabs: [], activeWorkflowTabId: id }); + studio.getState().mergeBackendWorkflow({ ...original, revision: 2 }); + } else { + const persisted = studio.persist.getOptions().partialize(studio.getState()); + storage.setItem('modiff.studio', JSON.stringify({ state: persisted, version: 0 })); + await studio.persist.rehydrate(); + } + + assert.deepEqual(studio.getState().form, original.snapshot.studioForm); + assert.equal(studio.getState().selectedMode, original.snapshot.selectedMode); + studio.getState().saveActiveWorkflowTab(true); + assert.deepEqual(tab(id).snapshot, original.snapshot, 'Passive checkpoint retains the complete snapshot.'); + assert.equal(tab(id).dirty, false, 'Passive restore is not an authored edit.'); + sync.queueWorkflowPut(tab(id), (error) => assert.fail(String(error))); + await new Promise(setImmediate); + assert.deepEqual(requests, [], 'The autosave chain must not PUT a replacement summary.'); + }); + } + } + } finally { + globalThis.fetch = previousFetch; + flow.setState(previousFlow); + studio.setState(previousStudio); + } +}); + +test('saved ordinary image copies and output restores preserve their authored form', async (t) => { + const previousFlow = flow.getState(); + const previousStudio = studio.getState(); + try { + for (const [module, action] of [ + ['modules.ImageOperations', 'ProcessImage'], + ['modules.DiffusersImage', 'LoadPipeline'], + ['modules.Spandrel', 'Upscaler'], + ]) { + for (const source of ['manual', 'gallery']) { + await t.test(`${action}: ${source}`, () => { + studio.setState({ workflowTabs: [], activeWorkflowTabId: null }); + const snapshot = ordinaryImageSnapshot(module, action, 'expert'); + snapshot.studioForm = { + ...snapshot.studioForm, + prompt: 'Keep the saved copy caption', + seed: 123, + randomSeed: false, + width: 768, + height: 512, + aspectRatio: 'custom', + }; + const original = structuredClone(snapshot); + if (source === 'manual') { + // Both Save As and My workflows Duplicate pass this explicit source. + studio.getState().createWorkflowTab('Saved workflow copy', snapshot, 'manual'); + } else { + studio.getState().restoreWorkflowFromOutput({ + id: 'retained-output', + prompt: snapshot.studioForm.prompt, + formSnapshot: snapshot.studioForm, + graphSnapshot: snapshot, + }); + } + const restored = tab(studio.getState().activeWorkflowTabId).snapshot; + assert.deepEqual(restored.studioForm, original.studioForm); + assert.equal(restored.selectedMode, original.studioForm.mode); + assert.deepEqual(restored.nodes, original.nodes); + assert.deepEqual(restored.edges, original.edges); + assert.deepEqual(snapshot, original, 'Copy and restore cannot mutate their source snapshot.'); + }); + } + } + } finally { + flow.setState(previousFlow); + studio.setState(previousStudio); + } +}); + +test('legacy ordinary output restores still infer a missing or unrecognized original form', async (t) => { + const previousFlow = flow.getState(); + const previousStudio = studio.getState(); + try { + for (const [module, action] of [ + ['modules.ImageOperations', 'ProcessImage'], + ['modules.DiffusersImage', 'LoadPipeline'], + ['modules.Spandrel', 'Upscaler'], + ]) { + for (const formSnapshot of [undefined, { mode: 'unknown-mode', modelType: 'unknown-model' }]) { + await t.test(`${action}: ${formSnapshot ? 'unrecognized' : 'missing'}`, () => { + studio.setState({ workflowTabs: [], activeWorkflowTabId: null }); + const graphSnapshot = ordinaryImageSnapshot(module, action, 'expert'); + studio.getState().restoreWorkflowFromOutput({ + id: 'legacy-output', + prompt: '', + formSnapshot, + graphSnapshot, + }); + const form = studio.getState().form; + assert.equal(form.prompt, 'Current graph caption'); + assert.equal(tab(studio.getState().activeWorkflowTabId).source, 'gallery'); + }); + } + } + } finally { + flow.setState(previousFlow); + studio.setState(previousStudio); + } +}); + +test('legacy ordinary snapshots without a recognized form still infer their graph summary', async (t) => { + const previousFlow = flow.getState(); + const previousStudio = studio.getState(); + try { + for (const supplied of [undefined, { mode: 'unknown-mode', modelType: 'unknown-model' }]) { + await t.test(supplied ? 'unrecognized legacy form' : 'bare graph', () => { + const snapshot = ordinaryImageSnapshot('modules.ImageOperations', 'ProcessImage', 'expert'); + if (supplied) snapshot.studioForm = supplied; + else delete snapshot.studioForm; + delete snapshot.selectedMode; + studio.setState({ workflowTabs: [], activeWorkflowTabId: 'legacy-image' }); + studio.getState().mergeBackendWorkflow({ + id: 'legacy-image', + title: 'Legacy image graph', + source: 'import', + createdAt: 1, + updatedAt: 2, + revision: 1, + snapshot, + }); + assert.equal(studio.getState().form.modelType, 'BuiltinImageOperation'); + assert.equal(studio.getState().form.mode, 'image_upscale'); + assert.equal(studio.getState().form.prompt, 'Current graph caption'); + assert.equal(studio.getState().graphBinding, null); + }); + } + } finally { + flow.setState(previousFlow); + studio.setState(previousStudio); + } +}); + +test('restored selectedMode remains the existing mirror of its saved form mode', () => { + const previousFlow = flow.getState(); + const previousStudio = studio.getState(); + try { + const id = studio + .getState() + .createWorkflowTab( + 'Legacy mode mirror', + ordinaryImageSnapshot('modules.ImageOperations', 'ProcessImage', 'expert'), + 'import', + ); + const original = structuredClone(tab(id)); + original.snapshot.selectedMode = 'text_to_image'; + assert.notEqual(original.snapshot.selectedMode, original.snapshot.studioForm.mode); + studio.setState({ workflowTabs: [], activeWorkflowTabId: id }); + studio.getState().mergeBackendWorkflow({ ...original, revision: 2 }); + assert.deepEqual(tab(id).snapshot.studioForm, original.snapshot.studioForm); + assert.equal(studio.getState().selectedMode, original.snapshot.studioForm.mode); + assert.equal(tab(id).snapshot.selectedMode, original.snapshot.studioForm.mode); + } finally { + flow.setState(previousFlow); + studio.setState(previousStudio); + } +}); + +test('explicit ordinary model, task and form edits still persist through the autosave chain', async () => { + const previousFlow = flow.getState(); + const previousStudio = studio.getState(); + const previousFetch = globalThis.fetch; + try { + const id = studio + .getState() + .createWorkflowTab( + 'Editable ordinary document', + ordinaryImageSnapshot('modules.ImageOperations', 'ProcessImage', 'expert'), + 'import', + ); + studio.getState().saveActiveWorkflowTab(false); + sync.markBackendWorkflow(tab(id)); + const originalGraph = structuredClone({ nodes: tab(id).snapshot.nodes, edges: tab(id).snapshot.edges }); + const requests = []; + globalThis.fetch = async (_url, options) => { + requests.push(JSON.parse(options.body)); + return response({ ...record(tab(id)), revision: 2 }); + }; + studio.getState().updateForm({ + modelType: 'BuiltinImageOperation', + mode: 'image_stitch', + prompt: 'An intentional new caption', + seed: 987, + steps: 23, + }); + studio.getState().saveActiveWorkflowTab(true); + const authoredForm = structuredClone(studio.getState().form); + sync.queueWorkflowPut(tab(id), (error) => assert.fail(String(error))); + await new Promise(setImmediate); + assert.equal(requests.length, 1); + assert.deepEqual(requests[0].snapshot.studioForm, authoredForm); + assert.equal(requests[0].snapshot.studioForm.mode, 'image_stitch'); + assert.equal(requests[0].snapshot.selectedMode, 'image_stitch'); + assert.deepEqual({ nodes: tab(id).snapshot.nodes, edges: tab(id).snapshot.edges }, originalGraph); + assert.equal(tab(id).dirty, false); + } finally { + globalThis.fetch = previousFetch; + flow.setState(previousFlow); + studio.setState(previousStudio); + } +}); + test('a genuinely new tab skips its first GET and consumes its marker before the ordinary PUT', async () => { const id = studio.getState().createWorkflowTab(); const t = tab(id); diff --git a/src/stores/useStudioStore.ts b/src/stores/useStudioStore.ts index 497b4c1a..c18c06f5 100644 --- a/src/stores/useStudioStore.ts +++ b/src/stores/useStudioStore.ts @@ -234,6 +234,7 @@ type StudioActions = { snapshot?: WorkflowTabSnapshot, source?: WorkflowTab['source'], sourceLabel?: string, + normalizationIntent?: 'restore' | 'import', ) => string; switchWorkflowTab: (id: string) => void; closeWorkflowTab: (id: string) => void; @@ -536,6 +537,7 @@ function normalizeWorkflowSnapshot( snapshot: unknown, templateSourceId: StudioTemplateId | null = null, allowCanonicalAdoption = true, + intent: 'restore' | 'import' = 'restore', ): WorkflowTabSnapshot { const value = isRecord(snapshot) ? snapshot : {}; const hasPersistedTemplateId = Object.prototype.hasOwnProperty.call(value, 'activeTemplateId'); @@ -634,7 +636,15 @@ function normalizeWorkflowSnapshot( shouldRecoverManagedIdentity && !ordinaryImageImport ? adoptManagedWorkflowGraph(nodes, edges as import('@xyflow/react').Edge[], inferredManagedForm) : null; - const studioForm = adoptedGraph || ordinaryImageImport ? inferredManagedForm : persistedStudioForm; + // Restoring an ordinary graph is not permission to replace its authored form + // with a graph-derived summary. Explicit imports and legacy snapshots without + // a recognized form still infer it; managed/template recovery stays separate. + const hasPersistedForm = + isRecord(value.studioForm) && + value.studioForm.mode === persistedStudioForm.mode && + value.studioForm.modelType === persistedStudioForm.modelType; + const inferOrdinaryForm = ordinaryImageImport && (intent === 'import' || !hasPersistedForm); + const studioForm = adoptedGraph || inferOrdinaryForm ? inferredManagedForm : persistedStudioForm; const normalizedNodes = adoptedGraph?.nodes ?? nodes; const executionNormalizedNodes = ordinaryImageImport || ordinaryOperationGraph @@ -2419,6 +2429,12 @@ export const useStudioStore = create { const restoredForm = coerceStudioFormState(output.formSnapshot); + // Coercion supplies a valid fallback even for legacy outputs without a + // saved form. Preserve that distinction until the new tab is normalized. + const hasSavedForm = + isRecord(output.formSnapshot) && + output.formSnapshot.mode === restoredForm.mode && + output.formSnapshot.modelType === restoredForm.modelType; const snapshot: WorkflowTabSnapshot = { nodes: output.graphSnapshot?.nodes ?? [], edges: output.graphSnapshot?.edges ?? [], @@ -2435,6 +2451,7 @@ export const useStudioStore = create { + createWorkflowTab: (title, snapshot, source = 'new', sourceLabel, normalizationIntent) => { const id = nanoid(); const state = get(); - const nextSnapshot = normalizeWorkflowSnapshot(snapshot ?? blankWorkflowSnapshot()); + // Save As, Duplicate and output Restore already carry an authored + // document. Creating their tab must not reinterpret its saved form. + const intent = normalizationIntent ?? (source === 'manual' || source === 'gallery' ? 'restore' : 'import'); + const nextSnapshot = normalizeWorkflowSnapshot(snapshot ?? blankWorkflowSnapshot(), null, true, intent); const templateSourceId = source === 'template' && !snapshot ? (coerceStudioTemplateId(sourceLabel) ?? null) : null; if (templateSourceId) { From d760f720041db145fe8b877bd5b3bc09f4bb1d34 Mon Sep 17 00:00:00 2001 From: Sourav Das Date: Wed, 28 Oct 2026 09:28:50 +0530 Subject: [PATCH 086/440] Reconcile service cache controls from current backend status --- .github/workflows/ci.yml | 6 +- docs/modiff-client-architecture.md | 8 + scripts/run-coordinator.test.mjs | 464 ++++++++++++++++++++++++++ src/stores/websocketMessageHandler.ts | 102 +++++- src/utils/serverActions.ts | 23 +- 5 files changed, 596 insertions(+), 7 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 80b180d6..8ebbfaff 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -32,8 +32,8 @@ jobs: uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4 with: repository: sdevil7th/MoDiff - # Reviewed Windows application source before final delivery packaging. - ref: 9fc204dcf8abb0329ce5365b0d6c0f478982969f + # Reviewed application source with process-local cache status. + ref: 84b79f3c83a7d5ab2e904e8231bc4f56f53b1999 path: MoDiff persist-credentials: false - name: Verify the pinned backend supports native setup @@ -86,7 +86,7 @@ jobs: with: repository: sdevil7th/MoDiff # Match the immutable backend revision in the Client quality job. - ref: 9fc204dcf8abb0329ce5365b0d6c0f478982969f + ref: 84b79f3c83a7d5ab2e904e8231bc4f56f53b1999 path: MoDiff persist-credentials: false - name: Verify the pinned backend supports native setup diff --git a/docs/modiff-client-architecture.md b/docs/modiff-client-architecture.md index d545f621..554b4180 100644 --- a/docs/modiff-client-architecture.md +++ b/docs/modiff-client-architecture.md @@ -451,6 +451,14 @@ survives durable snapshot restoration. Native execution records the actual leaf ID; cache release retires the IDs acknowledged by the backend. These IDs are never saved as workflow authority and do not establish resource fit or reuse. +Service and CLI tasks do not need a Studio run context to refresh this transient +cache view. Their successful execution and terminal events request the backend's +bounded `GET /cache` roster, matched by exact runtime IDs. The response must still +belong to the current connection and backend identity; newer cache writes, +release requests and acknowledgements retire older reads. This reconciliation +does not grant progress, parameter, preview or document ownership. Those updates +retain the existing task, attempt and workflow checks. + The media attachment source picker retains the exact node/port values and graph ordering. Friendly node/field labels add the nearest upstream declared model repository or local-source context; remaining identical labels use visible branch diff --git a/scripts/run-coordinator.test.mjs b/scripts/run-coordinator.test.mjs index 4aaf14aa..93b94dde 100644 --- a/scripts/run-coordinator.test.mjs +++ b/scripts/run-coordinator.test.mjs @@ -23,6 +23,7 @@ let taskStoreModule; let websocketModule; let websocketStoreModule; let memoryFormattingModule; +let serverActionsModule; let server; let originalFetch; @@ -70,6 +71,7 @@ before(async () => { websocketModule = await server.ssrLoadModule('/src/stores/websocketMessageHandler.ts'); websocketStoreModule = await server.ssrLoadModule('/src/stores/useWebsocketStore.ts'); memoryFormattingModule = await server.ssrLoadModule('/src/utils/formatMemory.ts'); + serverActionsModule = await server.ssrLoadModule('/src/utils/serverActions.ts'); originalFetch = globalThis.fetch; }); @@ -2825,6 +2827,468 @@ test('native CPU executed frames retain unavailable memory measurements and node } }); +test('service execution reconciles global cache without acquiring the visible workflow', async (testContext) => { + const previousFetch = globalThis.fetch; + testContext.after(() => { + globalThis.fetch = previousFetch; + }); + const flow = flowStoreModule.useFlowStore; + const studio = studioStoreModule.useStudioStore; + let cacheReads = 0; + globalThis.fetch = async (url) => { + if (String(url).endsWith('/cache')) { + cacheReads += 1; + return jsonResponse({ error: false, instance: 'service-cache-worker', cachedNodes: ['preview', 'hidden-leaf'] }); + } + return jsonResponse({ instance: 'service-cache-worker', nodes: {}, outputs: [] }); + }; + nodesStoreModule.useNodesStore.setState({ instance: 'service-cache-worker' }); + const context = { + sid: 'cache-browser', + ws: { url: 'ws://127.0.0.1:5191/ws?sid=cache-browser' }, + getSid: () => 'cache-browser', + setSid: () => undefined, + setLoopTimer: () => undefined, + }; + websocketModule.handleWebsocketMessage( + { + type: 'welcome', + sid: 'cache-browser', + instance: 'service-cache-worker', + cachedNodes: [], + current: { task_id: 'service-cache-task', sid: 'service_private', status: 'running', attempt_index: 0 }, + queued: {}, + }, + context, + ); + const before = structuredClone({ + params: flow.getState().nodes[0].data.params, + form: studio.getState().form, + tabs: studio.getState().workflowTabs, + past: flow.getState().past, + edges: flow.getState().edges, + activeTaskId: flow.getState().nodes[0].data.activeTaskId, + progress: flow.getState().nodes[0].data.progress, + }); + assert.equal(studio.getState().currentRunContext, null, 'service has no invented Studio ownership'); + websocketModule.handleWebsocketMessage( + { type: 'executed', node: 'preview', task_id: 'service-cache-task', attempt_index: 0, status: 'succeeded' }, + context, + ); + await new Promise((resolve) => setImmediate(resolve)); + assert.equal(cacheReads, 1, 'the successful service frame requests current backend cache membership'); + assert.deepEqual(flow.getState().runtimeCachedNodeIds, ['preview', 'hidden-leaf']); + assert.equal(flow.getState().nodes[0].data.isCached, true); + assert.equal(flow.getState().nodes[0].data.activeTaskId, before.activeTaskId); + assert.equal(flow.getState().nodes[0].data.progress, before.progress); + assert.deepEqual( + { + params: flow.getState().nodes[0].data.params, + form: studio.getState().form, + tabs: studio.getState().workflowTabs, + past: flow.getState().past, + edges: flow.getState().edges, + activeTaskId: flow.getState().nodes[0].data.activeTaskId, + progress: flow.getState().nodes[0].data.progress, + }, + before, + ); + assert.deepEqual(snackbarModule.getToastItems(), []); +}); + +function serviceCacheFixture(testContext, name, cached = []) { + const previousFetch = globalThis.fetch; + testContext.after(() => { + globalThis.fetch = previousFetch; + }); + const flow = flowStoreModule.useFlowStore; + const reads = []; + let cacheResponse = () => jsonResponse({ error: false, instance: name, cachedNodes: [] }); + let releaseResponse = () => jsonResponse({ error: false, nodes: ['preview'] }); + let sid = `${name}-browser`; + const context = { + sid, + ws: { url: `ws://127.0.0.1:5191/ws?sid=${sid}` }, + getSid: () => sid, + setSid: (next) => { + sid = next; + }, + setLoopTimer: () => undefined, + }; + globalThis.fetch = async (url, init = {}) => { + if (String(url).includes('/hf_cache/') && init.method === 'DELETE') return releaseResponse(); + if (String(url).endsWith('/runtime/gpu_cleanup') && init.method === 'POST') return releaseResponse(); + if (String(url).endsWith('/cache')) { + if (init.method === 'DELETE') return releaseResponse(); + reads.push(String(url)); + return cacheResponse(); + } + return jsonResponse({ instance: name, nodes: {}, outputs: [] }); + }; + nodesStoreModule.useNodesStore.setState({ instance: name }); + const welcome = (instance = name, ws = context.ws, nextSid = sid) => { + const nextContext = { ...context, ws }; + websocketModule.handleWebsocketMessage( + { + type: 'welcome', + sid: nextSid, + instance, + cachedNodes: cached, + current: { task_id: name, sid: `service_${name}`, status: 'running', attempt_index: 0 }, + queued: {}, + }, + nextContext, + ); + return nextContext; + }; + welcome(); + return { + flow, + reads, + context, + welcome, + respondCache: (callback) => { + cacheResponse = callback; + }, + respondRelease: (callback) => { + releaseResponse = callback; + }, + execute: (overrides = {}, owner = context) => + websocketModule.handleWebsocketMessage( + { + type: 'executed', + node: 'preview', + task_id: name, + attempt_index: 0, + status: 'succeeded', + ...overrides, + }, + owner, + ), + terminal: (type = 'task_completed') => + websocketModule.handleWebsocketMessage( + { + type, + task_id: name, + sid: `service_${name}`, + current: null, + queued: {}, + }, + context, + ), + }; +} + +const flushCacheReads = () => new Promise((resolve) => setImmediate(resolve)); + +test('service cache reads coalesce and retain hidden runtime IDs without clearing unrelated progress', async (t) => { + const f = serviceCacheFixture(t, 'service-cache-coalesced'); + const first = deferredResponse(); + const second = deferredResponse(); + const replies = [first, second]; + f.respondCache(() => replies.shift().promise); + const root = blockV2Root('service-cache-block'); + const runtimeId = blockRuntimeModule.blockProjectionNodeIdV2(root.id, 'generate'); + const node = f.flow.getState().nodes[0]; + f.flow.setState({ nodes: [{ ...node, data: { ...node.data, progress: 37, activeTaskId: 'another-task' } }] }); + f.execute({ node: runtimeId }); + f.execute({ node: 'another-hidden-leaf' }); + assert.equal(f.reads.length, 1); + first.resolve(jsonResponse({ error: false, instance: 'service-cache-coalesced', cachedNodes: [runtimeId] })); + await flushCacheReads(); + assert.equal(f.reads.length, 2, 'one follow-up covers the newer execution notification'); + assert.equal(f.flow.getState().nodes[0].data.progress, 37); + assert.equal(f.flow.getState().nodes[0].data.activeTaskId, 'another-task'); + second.resolve(jsonResponse({ error: false, instance: 'service-cache-coalesced', cachedNodes: [runtimeId] })); + await flushCacheReads(); + assert.deepEqual(f.flow.getState().runtimeCachedNodeIds, [runtimeId]); + f.flow.getState().replaceGraph({ nodes: [root], edges: [], viewport: { x: 0, y: 0, zoom: 1 } }); + assert.equal( + f.flow.getState().nodes[0].data.isCached, + true, + 'exact hidden leaf projects after its Block is restored', + ); + assert.equal(f.flow.getState().toObject().runtimeCachedNodeIds, undefined); +}); + +test('service cache reconciliation rejects unrelated, old-attempt and terminal execution frames', async (t) => { + const f = serviceCacheFixture(t, 'service-cache-guards'); + for (const overrides of [ + { task_id: 'other-task' }, + { attempt_index: -1 }, + { attempt_index: 1 }, + { attempt_index: undefined }, + { attempt_index: 0.5 }, + { status: 'running' }, + { status: 'failed' }, + ]) + f.execute(overrides); + assert.equal(f.reads.length, 0); + f.terminal(); + await flushCacheReads(); + assert.equal(f.reads.length, 1, 'terminal service state reconciles actual membership once'); + f.execute(); + await flushCacheReads(); + assert.equal(f.reads.length, 1, 'a late executed frame cannot revive a terminal task'); +}); + +for (const releaseKind of ['cache release', 'GPU cleanup', 'model deletion']) { + const invokeRelease = () => + releaseKind === 'cache release' + ? serverActionsModule.deleteNodeCache(['preview']) + : releaseKind === 'GPU cleanup' + ? serverActionsModule.cleanupGpuMemory() + : serverActionsModule.deleteHfCacheEntry('model', 'plan'); + test(`service cache snapshots cannot outrun ${releaseKind} dispatch or acknowledgement`, async (t) => { + const f = serviceCacheFixture(t, `service-cache-release-${releaseKind}`); + const beforeDispatch = deferredResponse(); + const whileReleasing = deferredResponse(); + const release = deferredResponse(); + const replies = [beforeDispatch, whileReleasing]; + f.respondCache(() => + replies.length + ? replies.shift().promise + : jsonResponse({ + error: false, + instance: `service-cache-release-${releaseKind}`, + cachedNodes: [], + }), + ); + f.respondRelease(() => release.promise); + f.execute(); + const deletion = invokeRelease(); + beforeDispatch.resolve( + jsonResponse({ error: false, instance: `service-cache-release-${releaseKind}`, cachedNodes: ['preview'] }), + ); + await flushCacheReads(); + assert.equal(Boolean(f.flow.getState().nodes[0].data.isCached), false, 'dispatch retires an older read'); + f.execute(); + release.resolve( + jsonResponse({ + error: false, + nodes: ['preview'], + deleted: true, + plan: {}, + runtimeRelease: { + released: { nodes: 1, models: 0, diffusers_components: 0, offload_files: 0 }, + allocatorTrimmed: true, + errors: [], + }, + }), + ); + const result = await deletion; + for (const id of result.nodes) f.flow.getState().setNodeCached(id, false); + whileReleasing.resolve( + jsonResponse({ error: false, instance: `service-cache-release-${releaseKind}`, cachedNodes: ['preview'] }), + ); + await flushCacheReads(); + assert.equal(Boolean(f.flow.getState().nodes[0].data.isCached), false, 'ACK retires reads begun during teardown'); + f.execute(); + await flushCacheReads(); + assert.equal(f.reads.length, 3); + assert.deepEqual( + f.flow.getState().runtimeCachedNodeIds, + [], + 'late frame requests truth rather than asserting cached', + ); + }); + + test(`failed ${releaseKind} also retires in-flight reads without optimistic cache clearing`, async (t) => { + const f = serviceCacheFixture(t, `service-cache-failed-${releaseKind}`, ['preview']); + const reading = deferredResponse(); + const release = deferredResponse(); + f.respondRelease(() => release.promise); + const deletion = invokeRelease(); + f.respondCache(() => reading.promise); + f.execute(); + release.resolve(jsonResponse({ error: true, message: 'Release failed.' }, 500)); + await assert.rejects(deletion, /Release failed/); + reading.resolve(jsonResponse({ error: false, instance: `service-cache-failed-${releaseKind}`, cachedNodes: [] })); + await flushCacheReads(); + assert.equal(f.flow.getState().nodes[0].data.isCached, true); + }); +} + +test('service cache responses require the same socket and welcome worker instance', async (t) => { + const f = serviceCacheFixture(t, 'service-cache-replacement'); + const oldRead = deferredResponse(); + f.respondCache(() => oldRead.promise); + f.execute(); + const replacement = f.welcome('replacement-worker', { url: f.context.ws.url }); + oldRead.resolve(jsonResponse({ error: false, instance: 'service-cache-replacement', cachedNodes: ['preview'] })); + await flushCacheReads(); + assert.equal(Boolean(f.flow.getState().nodes[0].data.isCached), false); + nodesStoreModule.useNodesStore.setState({ instance: 'replacement-worker' }); + f.execute({}, f.context); + assert.equal(f.reads.length, 1, 'retired socket cannot schedule a cache read even with the same SID'); + f.respondCache(() => jsonResponse({ error: false, instance: 'wrong-worker', cachedNodes: ['preview'] })); + f.execute({}, replacement); + await flushCacheReads(); + assert.equal(Boolean(f.flow.getState().nodes[0].data.isCached), false); + f.respondCache(() => jsonResponse({ error: false, instance: 'replacement-worker', cachedNodes: ['preview'] })); + f.execute({}, replacement); + await flushCacheReads(); + assert.equal(f.flow.getState().nodes[0].data.isCached, true); +}); + +test('service cache snapshots are retired by acknowledged registry changes on the same socket', async (t) => { + const f = serviceCacheFixture(t, 'service-cache-registry', ['preview']); + const oldRead = deferredResponse(); + f.respondCache(() => oldRead.promise); + f.execute(); + nodesStoreModule.useNodesStore.setState({ instance: 'custom-source-acknowledgement' }); + oldRead.resolve(jsonResponse({ error: false, instance: 'service-cache-registry', cachedNodes: [] })); + await flushCacheReads(); + assert.deepEqual( + f.flow.getState().runtimeCachedNodeIds, + ['preview'], + 'pre-ACK response cannot replace current truth', + ); + f.respondCache(() => jsonResponse({ error: false, instance: 'service-cache-registry', cachedNodes: [] })); + f.execute(); + await flushCacheReads(); + assert.deepEqual( + f.flow.getState().runtimeCachedNodeIds, + ['preview'], + 'old worker identity cannot satisfy the new ACK', + ); + f.respondCache(() => jsonResponse({ error: false, instance: 'custom-source-acknowledgement', cachedNodes: [] })); + f.execute(); + await flushCacheReads(); + assert.deepEqual( + f.flow.getState().runtimeCachedNodeIds, + [], + 'a new read can bind to the acknowledged same-socket identity', + ); +}); + +test('service cache snapshots fail closed while initial registry identity lags a new welcome', async (t) => { + const f = serviceCacheFixture(t, 'service-cache-registry-lag', ['preview']); + const owner = f.welcome('new-worker'); + await flushCacheReads(); + f.respondCache(() => jsonResponse({ error: false, instance: 'new-worker', cachedNodes: [] })); + f.execute({}, owner); + await flushCacheReads(); + assert.deepEqual(f.flow.getState().runtimeCachedNodeIds, ['preview']); + nodesStoreModule.useNodesStore.setState({ instance: 'new-worker' }); + f.execute({}, owner); + await flushCacheReads(); + assert.deepEqual(f.flow.getState().runtimeCachedNodeIds, []); +}); + +test('service cache snapshots require a nonempty welcome SID and reject disconnected reads', async (t) => { + const f = serviceCacheFixture(t, 'service-cache-null-sid', ['preview']); + const pending = deferredResponse(); + f.respondCache(() => pending.promise); + f.execute(); + f.context.setSid(null); + pending.resolve(jsonResponse({ error: false, instance: 'service-cache-null-sid', cachedNodes: [] })); + await flushCacheReads(); + assert.deepEqual(f.flow.getState().runtimeCachedNodeIds, ['preview']); + for (const invalidSid of [null, '', ' ']) { + const owner = f.welcome('service-cache-null-sid', f.context.ws, invalidSid); + f.execute({}, owner); + await flushCacheReads(); + assert.equal(f.reads.length, 1, 'null or blank welcome SID never owns a cache read'); + } +}); + +test('service cache snapshots cannot overwrite newer accepted workflow cache writes', async (t) => { + const f = serviceCacheFixture(t, 'service-cache-owned-race'); + const pending = deferredResponse(); + f.respondCache(() => pending.promise); + f.terminal(); + const studio = studioStoreModule.useStudioStore; + studio.getState().captureRunContext(graph(), undefined, { clientRunId: 'new-owned-cache-run' }); + studio.getState().attachRunResponse({ task_id: 'new-owned-cache-task', sid: 'session-1' }, 'new-owned-cache-run'); + taskStoreModule.useTaskStore.setState({ + currentTask: { task_id: 'new-owned-cache-task', status: 'running', attempt_index: 0 }, + }); + f.execute({ task_id: 'new-owned-cache-task', client_run_id: 'new-owned-cache-run' }); + assert.equal(f.flow.getState().nodes[0].data.isCached, true, 'accepted owned execution records its new cache fact'); + pending.resolve(jsonResponse({ error: false, instance: 'service-cache-owned-race', cachedNodes: [] })); + await flushCacheReads(); + assert.equal( + f.flow.getState().nodes[0].data.isCached, + true, + 'older service snapshot cannot clear the newer owned execution', + ); + assert.deepEqual(f.flow.getState().runtimeCachedNodeIds, ['preview']); +}); + +test('service cache snapshots cannot repopulate owners after a newer task starts and fails before execution', async (t) => { + const f = serviceCacheFixture(t, 'service-cache-start-failure'); + const pending = deferredResponse(); + f.respondCache(() => pending.promise); + f.terminal(); + const studio = studioStoreModule.useStudioStore; + studio.getState().captureRunContext(graph(), undefined, { clientRunId: 'new-start-failure-run' }); + studio.getState().attachRunResponse({ task_id: 'new-start-failure-task', sid: 'session-1' }, 'new-start-failure-run'); + websocketModule.handleWebsocketMessage( + { + type: 'task_started', + task_id: 'new-start-failure-task', + client_run_id: 'new-start-failure-run', + current: { task_id: 'new-start-failure-task', status: 'running', attempt_index: 0 }, + queued: {}, + }, + f.context, + ); + websocketModule.handleWebsocketMessage( + { + type: 'task_failed', + task_id: 'new-start-failure-task', + client_run_id: 'new-start-failure-run', + message: 'Preparation failed before any node executed.', + current: null, + queued: {}, + }, + f.context, + ); + pending.resolve(jsonResponse({ error: false, instance: 'service-cache-start-failure', cachedNodes: ['preview'] })); + await flushCacheReads(); + assert.deepEqual(f.flow.getState().runtimeCachedNodeIds, [], 'the pre-start roster cannot restore removed owners'); + assert.equal(Boolean(f.flow.getState().nodes[0].data.isCached), false); +}); + +test('service cache snapshots reject malformed and unbounded rosters without replacing cache truth', async (t) => { + const f = serviceCacheFixture(t, 'service-cache-parser', ['preview']); + const invalid = [ + null, + { error: true, instance: 'service-cache-parser', cachedNodes: [] }, + { error: false, cachedNodes: [] }, + { error: false, instance: 'service-cache-parser', cachedNodes: 'preview' }, + { error: false, instance: 'service-cache-parser', cachedNodes: [0] }, + { error: false, instance: 'service-cache-parser', cachedNodes: [''] }, + { error: false, instance: 'service-cache-parser', cachedNodes: ['x'.repeat(16_385)] }, + { error: false, instance: 'service-cache-parser', cachedNodes: Array(30_001).fill('x') }, + { error: false, instance: 'service-cache-parser', cachedNodes: Array(129).fill('x'.repeat(16_384)) }, + ]; + for (const payload of invalid) { + f.respondCache(() => jsonResponse(payload)); + f.execute(); + await flushCacheReads(); + assert.deepEqual(f.flow.getState().runtimeCachedNodeIds, ['preview']); + } + f.respondCache(() => jsonResponse({ error: false, instance: 'service-cache-parser', cachedNodes: [] })); + f.execute(); + await flushCacheReads(); + assert.deepEqual(f.flow.getState().runtimeCachedNodeIds, [], 'a later valid snapshot remains usable'); +}); + +for (const terminal of ['task_completed', 'task_cancelled', 'task_failed']) { + test(`service ${terminal} reconciles released cache without clearing a newer task's progress`, async (t) => { + const f = serviceCacheFixture(t, `cache-${terminal}`, ['preview']); + const node = f.flow.getState().nodes[0]; + f.flow.setState({ nodes: [{ ...node, data: { ...node.data, activeTaskId: 'newer-task', progress: 61 } }] }); + f.terminal(terminal); + await flushCacheReads(); + assert.deepEqual(f.flow.getState().runtimeCachedNodeIds, []); + assert.equal(f.flow.getState().nodes[0].data.progress, 61); + assert.equal(f.flow.getState().nodes[0].data.activeTaskId, 'newer-task'); + }); +} + test('memory measurements permit mixed finite values and null without weakening other telemetry', () => { const message = { type: 'executed', diff --git a/src/stores/websocketMessageHandler.ts b/src/stores/websocketMessageHandler.ts index f15892b4..f466507a 100644 --- a/src/stores/websocketMessageHandler.ts +++ b/src/stores/websocketMessageHandler.ts @@ -32,6 +32,8 @@ import { workflowOperationContextIsCurrent, } from './useStudioStore'; import { coerceTask, coerceTaskRecord, type Task, useTaskStore } from './useTaskStore'; +import { currentRuntimeCacheReadGeneration, invalidateRuntimeCacheReads } from '../utils/serverActions'; +import { requestJson } from '../utils/requestJson'; export type WebsocketMessageHandlerContext = { sid: string | null; @@ -44,6 +46,83 @@ export type WebsocketMessageHandlerContext = { const TERMINAL_NODE_PROGRESS_TASK_LIMIT = 64; const terminalNodeProgressTaskIds = new Set(); +type RuntimeCacheConnection = { ws: WebSocket; sid: string | null; instance: string }; +let runtimeCacheConnection: RuntimeCacheConnection | null = null; +let runtimeCacheRead: { connection: RuntimeCacheConnection; pending: boolean } | null = null; + +function refreshRuntimeCache(context: WebsocketMessageHandlerContext) { + const connection = runtimeCacheConnection; + if (!connection || connection.ws !== context.ws || connection.sid !== context.getSid()) return; + if (runtimeCacheRead?.connection === connection) { + runtimeCacheRead.pending = true; + return; + } + const read = { connection, pending: false }; + runtimeCacheRead = read; + const generation = currentRuntimeCacheReadGeneration(); + // Custom-source acknowledgements can rotate the process registry identity + // without replacing the socket. Never apply a read across that acknowledgement. + const registryInstance = useNodesStore.getState().instance; + const expectedInstance = registryInstance || connection.instance; + const isCurrent = () => + runtimeCacheConnection === connection && + context.getSid() === connection.sid && + useNodesStore.getState().instance === registryInstance && + currentRuntimeCacheReadGeneration() === generation; + const origin = new URL(context.ws.url).origin.replace(/^ws/, 'http'); + void requestJson(`${origin}/cache`, { + parse: (value) => { + if (!isPlainRecord(value) || value.error !== false || typeof value.instance !== 'string') { + throw new Error('The runtime cache response is invalid.'); + } + const ids = value.cachedNodes; + if ( + !Array.isArray(ids) || + ids.length > 30_000 || + ids.some((id) => typeof id !== 'string' || !id || id.length > 16_384) || + ids.reduce((total, id) => total + id.length, 0) > 2_097_152 + ) { + throw new Error('The runtime cache response has an invalid node list.'); + } + return { instance: value.instance, cachedNodes: ids as string[] }; + }, + }) + .then((snapshot) => { + if (!isCurrent() || snapshot.instance !== expectedInstance) return; + // Cache membership belongs to the backend process. It grants no task, + // progress, parameter, preview or workflow-document ownership. + useFlowStore.getState().updateCacheStatus(snapshot.cachedNodes); + }) + .catch((error: unknown) => { + if (isCurrent()) { + console.warn( + 'Could not refresh runtime cache status', + error instanceof Error ? error.message : 'Request failed.', + ); + } + }) + .finally(() => { + if (runtimeCacheRead !== read) return; + runtimeCacheRead = null; + if (read.pending) refreshRuntimeCache(context); + }); +} + +function isCurrentUnownedCacheExecution(message: NodeWebsocketMessage) { + const current = useTaskStore.getState().currentTask; + return Boolean( + message.task_id && + current?.task_id === message.task_id && + current.status === 'running' && + !terminalNodeProgressTaskIds.has(message.task_id) && + typeof message.attempt_index === 'number' && + Number.isSafeInteger(message.attempt_index) && + message.attempt_index >= 0 && + current.attempt_index === message.attempt_index && + (message.status === 'cached' || message.status === 'succeeded'), + ); +} + function isPlainRecord(value: unknown): value is Record { return Boolean(value && typeof value === 'object' && !Array.isArray(value)); } @@ -421,6 +500,11 @@ function scheduleStudioDefinitionSync() { export function handleWebsocketMessage(message: WebsocketMessage, context: WebsocketMessageHandlerContext) { switch (message.type) { case 'welcome': { + invalidateRuntimeCacheReads(); + runtimeCacheConnection = + message.instance && message.sid?.trim() && typeof context.ws.url === 'string' + ? { ws: context.ws, sid: message.sid ?? null, instance: message.instance } + : null; if (message.sid !== context.sid) { context.setSid(message.sid ?? null); console.info('Websocket sid changed'); @@ -491,13 +575,17 @@ export function handleWebsocketMessage(message: WebsocketMessage, context: Webso console.error('Invalid websocket message: executed without node'); return; } - if (!shouldAcceptNodeProgress(message)) return; + if (!shouldAcceptNodeProgress(message)) { + if (isCurrentUnownedCacheExecution(message)) refreshRuntimeCache(context); + return; + } applyNodeExecutionStatus(message); { const flow = useFlowStore.getState(); const targetNodeId = runtimeProgressTarget(flow.nodes, message.node, message.label); if (!targetNodeId) break; flow.updateProgress(targetNodeId, 100, nodeExecutionMetadata(message)); + invalidateRuntimeCacheReads(); flow.setNodeCached( targetNodeId, true, @@ -800,6 +888,9 @@ export function handleWebsocketMessage(message: WebsocketMessage, context: Webso console.error('Invalid task websocket message.'); return; } + // Preparation may replace owners even when the new attempt fails before + // its first executed frame. A pre-start snapshot cannot restore them. + if (message.type === 'task_started') invalidateRuntimeCacheReads(); const taskStore = useTaskStore.getState(); const originatingRun = findStudioRunContext(message.task_id, message.client_run_id); const previousCurrent = taskStore.currentTask; @@ -848,6 +939,14 @@ export function handleWebsocketMessage(message: WebsocketMessage, context: Webso } } + if ( + (message.type === 'task_completed' || message.type === 'task_cancelled') && + !originatingRun && + !message.workflow_tab_id + ) { + refreshRuntimeCache(context); + } + if (hasQueueSnapshot) { useTaskStore.getState().setTasks(currentTask, queuedTasks, recentTasks); } else if (message.type === 'task_cancelled') { @@ -913,6 +1012,7 @@ export function handleWebsocketMessage(message: WebsocketMessage, context: Webso useStudioStore.getState().mergePreviewState(message.preview_slots, message.preview_state_revision); } const originatingRun = findStudioRunContext(message.task_id, message.client_run_id); + if (!originatingRun && !message.workflow_tab_id) refreshRuntimeCache(context); markNodeProgressTaskTerminal(message.task_id); useSettingsStore.getState().setRunningState('one_shot'); if (message.node && shouldAcceptNodeProgress(message)) { diff --git a/src/utils/serverActions.ts b/src/utils/serverActions.ts index 313802ef..d5b1604e 100644 --- a/src/utils/serverActions.ts +++ b/src/utils/serverActions.ts @@ -145,9 +145,22 @@ export function cancelQueuedTask(taskId: string) { ); } +// Cache snapshots are presentation only. Releases and reconnects retire reads +// already in flight, including reads sent while teardown was pending. +let runtimeCacheReadGeneration = 0; + +export function invalidateRuntimeCacheReads() { + runtimeCacheReadGeneration += 1; +} + +export function currentRuntimeCacheReadGeneration() { + return runtimeCacheReadGeneration; +} + export function deleteNodeCache(nodeIds: string[]) { const uniqueNodeIds = [...new Set(nodeIds.filter(Boolean))]; if (uniqueNodeIds.length === 0) return Promise.resolve({ error: false, nodes: [] }); + invalidateRuntimeCacheReads(); return serverAction( '/cache', 'Could not clear the node cache.', @@ -163,11 +176,14 @@ export function deleteNodeCache(nodeIds: string[]) { throw new Error('The cache deletion response has an invalid node list.'); } }, - ); + ).finally(invalidateRuntimeCacheReads); } export function cleanupGpuMemory() { - return serverAction('/runtime/gpu_cleanup', 'Accelerator cleanup failed.', { method: 'POST' }); + invalidateRuntimeCacheReads(); + return serverAction('/runtime/gpu_cleanup', 'Accelerator cleanup failed.', { + method: 'POST', + }).finally(invalidateRuntimeCacheReads); } /** Invalidate results on the next Run while retaining model owners and previews. */ @@ -242,6 +258,7 @@ export function fetchHfCacheDeletionPlan(hash: string, allowRedownload = false) } export function deleteHfCacheEntry(hash: string, planHash: string, allowRedownload = false) { + invalidateRuntimeCacheReads(); return serverAction( `/hf_cache/${encodeURIComponent(hash)}`, 'Could not delete the Hugging Face model.', @@ -270,7 +287,7 @@ export function deleteHfCacheEntry(hash: string, planHash: string, allowRedownlo throw new Error('The Hugging Face cache deletion receipt is invalid.'); } }, - ); + ).finally(invalidateRuntimeCacheReads); } export function fetchHfIncompleteCleanupPlan() { From e50617208a444fbe203c0e296de431ea22161ebe Mon Sep 17 00:00:00 2001 From: Sourav Das Date: Wed, 28 Oct 2026 09:39:02 +0530 Subject: [PATCH 087/440] Distinguish explicit import from saved workflow hydration in tests --- scripts/modiff-template.test.mjs | 71 ++++++++++++++++++----- scripts/workflow-document-origin.test.mjs | 2 + 2 files changed, 57 insertions(+), 16 deletions(-) diff --git a/scripts/modiff-template.test.mjs b/scripts/modiff-template.test.mjs index ca6e2b5d..bc64a85b 100644 --- a/scripts/modiff-template.test.mjs +++ b/scripts/modiff-template.test.mjs @@ -2576,24 +2576,19 @@ test('existing saved canonical imports are adopted during workflow-tab normaliza } }); -test('legacy whole image imports keep ordinary graph authority without inventing a managed receipt', async () => { +test('explicit whole image imports keep ordinary graph authority without inventing a managed receipt', async () => { const graph = JSON.parse( await readFile( path.resolve(ROOT, '../MoDiff/data/graphs/studio/marigold-depth-pipeline/depth-estimation.json'), 'utf8', ), ); - const previous = studioStoreModule.useStudioStore.getState().workflowTabs; + const previousStudio = studioStoreModule.useStudioStore.getState(); + const previousFlow = flowStoreModule.useFlowStore.getState(); try { - studioStoreModule.useStudioStore.getState().mergeBackendWorkflow({ - id: 'legacy-whole-image-import', - title: 'Depth', - createdAt: 1, - updatedAt: 1, - dirty: false, - source: 'import', - backendRevision: 1, - snapshot: { + const importedId = studioStoreModule.useStudioStore.getState().createWorkflowTab( + 'Depth', + { nodes: graph.nodes, edges: graph.edges, studioForm: profilesModule.DEFAULT_STUDIO_FORM, @@ -2602,10 +2597,9 @@ test('legacy whole image imports keep ordinary graph authority without inventing activeTemplateId: null, sourceOutputId: null, }, - }); - const snapshot = studioStoreModule.useStudioStore - .getState() - .workflowTabs.find((t) => t.id === 'legacy-whole-image-import').snapshot; + 'import', + ); + const snapshot = studioStoreModule.useStudioStore.getState().workflowTabs.find((t) => t.id === importedId).snapshot; assert.equal(snapshot.studioGraphBinding, null); assert.equal(snapshot.studioForm.mode, 'depth_estimation'); assert.equal(snapshot.studioForm.modelType, 'MarigoldDepthPipeline'); @@ -2633,7 +2627,52 @@ test('legacy whole image imports keep ordinary graph authority without inventing .workflowTabs.find((t) => t.id === 'explicit-image-receipt'); assert.equal(explicit.snapshot.studioGraphBinding.finalizationProofInvalid, true); } finally { - studioStoreModule.useStudioStore.setState({ workflowTabs: previous }); + flowStoreModule.useFlowStore.setState(previousFlow); + studioStoreModule.useStudioStore.setState(previousStudio); + } +}); + +test('saved whole image hydration preserves its recognized form while keeping the exact ordinary graph', async () => { + const graph = JSON.parse( + await readFile( + path.resolve(ROOT, '../MoDiff/data/graphs/studio/marigold-depth-pipeline/depth-estimation.json'), + 'utf8', + ), + ); + const previousStudio = studioStoreModule.useStudioStore.getState(); + const previousFlow = flowStoreModule.useFlowStore.getState(); + const savedForm = { ...profilesModule.DEFAULT_STUDIO_FORM, prompt: 'Retain this saved form', seed: 321 }; + try { + studioStoreModule.useStudioStore.getState().mergeBackendWorkflow({ + id: 'saved-ordinary-depth', + title: 'Saved depth graph', + createdAt: 1, + updatedAt: 1, + source: 'import', + revision: 1, + snapshot: { + nodes: graph.nodes, + edges: graph.edges, + studioForm: savedForm, + studioGraphBinding: null, + selectedMode: savedForm.mode, + activeTemplateId: null, + sourceOutputId: null, + }, + }); + const snapshot = studioStoreModule.useStudioStore + .getState() + .workflowTabs.find((t) => t.id === 'saved-ordinary-depth').snapshot; + assert.deepEqual(snapshot.studioForm, savedForm); + assert.equal(snapshot.selectedMode, savedForm.mode); + assert.equal(snapshot.studioGraphBinding, null); + assert.deepEqual(snapshot.edges, graph.edges); + for (const node of graph.nodes) { + assert.deepEqual(snapshot.nodes.find((n) => n.id === node.id).data.params, node.data.params); + } + } finally { + flowStoreModule.useFlowStore.setState(previousFlow); + studioStoreModule.useStudioStore.setState(previousStudio); } }); diff --git a/scripts/workflow-document-origin.test.mjs b/scripts/workflow-document-origin.test.mjs index 46ea99bb..a011a85e 100644 --- a/scripts/workflow-document-origin.test.mjs +++ b/scripts/workflow-document-origin.test.mjs @@ -182,6 +182,8 @@ test('passive ordinary image restore preserves the complete saved form and does ['modules.ImageOperations', 'ProcessImage'], ['modules.DiffusersImage', 'LoadPipeline'], ['modules.Spandrel', 'Upscaler'], + ['modules.HuggingFaceTransformers', 'LoadDepthEstimationModel'], + ['modules.HuggingFaceTransformers', 'LoadImageTextToTextModel'], ]) { for (const transition of ['switch', 'close', 'backend hydration', 'reload']) { await t.test(`${action}: ${transition}`, async () => { From f1f02892e8c3d9d6eb1a3c01c0dc3a8e89a6eb40 Mon Sep 17 00:00:00 2001 From: Sourav Das Date: Wed, 28 Oct 2026 09:50:14 +0530 Subject: [PATCH 088/440] Align setup contract with the reviewed Windows source pair --- README.md | 4 ++-- scripts/backend-installer-contract.test.mjs | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 24650519..3d82244f 100644 --- a/README.md +++ b/README.md @@ -28,8 +28,8 @@ application source pair is: | Repository | Application source before final packaging | | ------------- | ------------------------------------------ | -| MoDiff | `9fc204dcf8abb0329ce5365b0d6c0f478982969f` | -| MoDiff-client | `5e8be27cc937d3f99a36cf7a5c7672f5cb21abe8` | +| MoDiff | `84b79f3c83a7d5ab2e904e8231bc4f56f53b1999` | +| MoDiff-client | `e50617208a444fbe203c0e296de431ea22161ebe` | These application source revisions were reviewed on 28 October 2026. Final documentation, CI pairing and bundled-client packaging commits can be later diff --git a/scripts/backend-installer-contract.test.mjs b/scripts/backend-installer-contract.test.mjs index 4ba755fa..6361d4be 100644 --- a/scripts/backend-installer-contract.test.mjs +++ b/scripts/backend-installer-contract.test.mjs @@ -181,8 +181,8 @@ test('current setup guides select the published candidate and identify its revie assert.match(text, /codex\/windows-delivery-20261026/, `${guide.pathname} must identify the current candidate`); } const readme = readFileSync(guides[0], 'utf8'); - const backendSourceCommit = '9fc204dcf8abb0329ce5365b0d6c0f478982969f'; - const clientSourceCommit = '5e8be27cc937d3f99a36cf7a5c7672f5cb21abe8'; + const backendSourceCommit = '84b79f3c83a7d5ab2e904e8231bc4f56f53b1999'; + const clientSourceCommit = 'e50617208a444fbe203c0e296de431ea22161ebe'; assert.ok(readme.includes(backendSourceCommit), 'Reviewed backend application source commit is missing'); assert.ok(readme.includes(clientSourceCommit), 'Reviewed client application source commit is missing'); const workflow = readFileSync(new URL('.github/workflows/ci.yml', clientRoot), 'utf8'); From f1c24ef8f8414adc444e0373d6f3727b6f10e541 Mon Sep 17 00:00:00 2001 From: Sourav Das Date: Wed, 28 Oct 2026 10:09:37 +0530 Subject: [PATCH 089/440] Fix welcome fixture and record follow-up bundle cost --- docs/deployment.md | 17 ++++++++++++++--- scripts/bundle-budget.mjs | 9 +++++++++ scripts/node-store-requests.test.mjs | 8 +++++++- 3 files changed, 30 insertions(+), 4 deletions(-) diff --git a/docs/deployment.md b/docs/deployment.md index 1db64d43..a02bf981 100644 --- a/docs/deployment.md +++ b/docs/deployment.md @@ -134,15 +134,26 @@ Run the bundle budget after changes that affect dependencies or code splitting: npm run bundle:check ``` -The 28 October Windows candidate measures 669295 gzip bytes of startup +The Windows saved-form and service-cache follow-up measures 669945 gzip bytes +of startup JavaScript, with a 491457-byte largest startup chunk and 327044 +deferred bytes. Relative to the earlier 28 October candidate, the measured +aggregate increases are 650 startup bytes, 643 largest-chunk bytes and 334 +deferred bytes. All 89 deferred bodies are identical after normalizing versioned +URLs; their compressed-size difference comes from the changed version strings. +Current ceilings are 669956, 491465 and 327269 bytes respectively, preserving +11, 8 and 225 bytes of headroom. The same four startup and 89 deferred assets +keep their loading membership; dependencies, chunk rules, minifier settings, +validators and the 65536-byte per-deferred-chunk ceiling stay fixed. + +The earlier 28 October Windows candidate measures 669295 gzip bytes of startup JavaScript, with a 490814-byte largest startup chunk and 326710 deferred bytes. The Block/checkbox/default/readiness correctness fixes and reviewed Vite 8.1.4 → 8.1.6 security update add 498 aggregate startup bytes and 322 bytes to the largest startup chunk versus the last accepted build. Allow only those -measured increases: current ceilings are 669306 and 490822 bytes, retaining +measured increases: its ceilings are 669306 and 490822 bytes, retaining 11 and 8 bytes of headroom. The same four startup and 89 deferred assets keep their loading membership; chunk rules, minifier settings and validators stay -fixed. Deferred limits remain 326935 bytes aggregate and 65536 bytes per chunk. +fixed. Its deferred limits are 326935 bytes aggregate and 65536 bytes per chunk. The earlier measurements below describe their historical checkpoints. The original failed measurement remains evidence for its original source and limits. diff --git a/scripts/bundle-budget.mjs b/scripts/bundle-budget.mjs index 2615e73b..7bf30e67 100644 --- a/scripts/bundle-budget.mjs +++ b/scripts/bundle-budget.mjs @@ -1,3 +1,9 @@ +// Passive saved-form preservation and authoritative service-cache status measure +// largest/startup/deferred gzip 491457/669945/327044 versus the accepted +// 490814/669295/326710. Add only aggregate growth 643/650/334, preserving +// 8/11/225 bytes of headroom. All 89 deferred bodies match after normalizing +// versioned URLs; the same four startup and 89 deferred assets retain membership. +// Dependencies, chunk rules, minifier, validators and 65536-byte chunk cap stay fixed. // Windows Block sizing/disabled-stage/label/default/readiness fixes and the // reviewed Vite 8.1.4 -> 8.1.6 security update measure largest/startup/deferred // gzip 490814/669295/326710 versus accepted 490492/668797/326749. Add only @@ -236,6 +242,7 @@ const SOURCE_LICENSES = new URL('../public/THIRD_PARTY_LICENSES.txt', import.met // Add only those measured costs, preserving 8/11/152 bytes of existing headroom. // Dependencies, startup membership, lazy boundaries and the 64 KiB chunk cap stay fixed. const MAX_STARTUP_CHUNK_GZIP_BYTES = + 643 + 322 + 2020 + 66 + @@ -354,6 +361,7 @@ const MAX_STARTUP_CHUNK_GZIP_BYTES = // Preserve the separately measured 64-byte shared loading-policy allowance above. // Preserve the measured 384-byte selected-image authoring allowance above. const MAX_STARTUP_GZIP_BYTES = + 650 + 498 + 2018 + 69 + @@ -556,6 +564,7 @@ const MAX_DEFERRED_CHUNK_GZIP_BYTES = 64 * 1024; // 321033-byte cap, preserving 39 bytes of headroom at 321227. Startup caps, the // 65536-byte deferred chunk cap, dependencies and loading boundaries stay fixed. const MAX_DEFERRED_GZIP_BYTES = + 334 + 178 + 287 + 44 + diff --git a/scripts/node-store-requests.test.mjs b/scripts/node-store-requests.test.mjs index df3bd496..ce49877a 100644 --- a/scripts/node-store-requests.test.mjs +++ b/scripts/node-store-requests.test.mjs @@ -2168,7 +2168,13 @@ test('a replacement worker welcome refreshes runtime readiness and fences the ol const older = nodesStoreModule.useNodesStore.getState().fetchRuntimeStatus(); websocketMessagesModule.handleWebsocketMessage( { type: 'welcome', sid: 'same-session', instance: 'replacement-worker', current: null, queued: {}, recent: [] }, - { sid: 'same-session', setSid: () => {}, getSid: () => 'same-session', setLoopTimer: () => {} }, + { + sid: 'same-session', + ws: { url: 'ws://127.0.0.1:5191/ws?sid=same-session' }, + setSid: () => {}, + getSid: () => 'same-session', + setLoopTimer: () => {}, + }, ); const welcomeRuntimeReads = runtimeReads; replacementRead.resolve(jsonResponse({ ready: true, packages: { transformers: { available: true } } })); From 2cbb5ab9e083978ff496104da37f9fa545e49014 Mon Sep 17 00:00:00 2001 From: Sourav Das Date: Wed, 28 Oct 2026 17:19:22 +0530 Subject: [PATCH 090/440] Cancel workflow hydration retries when the page closes --- package.json | 2 +- scripts/workflow-hydration-lifecycle.test.mjs | 155 ++++++++++++++++++ src/studio/useWorkflowBackendSync.ts | 2 +- 3 files changed, 157 insertions(+), 2 deletions(-) create mode 100644 scripts/workflow-hydration-lifecycle.test.mjs diff --git a/package.json b/package.json index 12482794..0f219ab8 100644 --- a/package.json +++ b/package.json @@ -100,7 +100,7 @@ "test:run-activity": "node --test scripts/run-activity.test.mjs", "test:template-input-preview": "node --test scripts/template-input-preview.test.mjs", "test:asset-storage": "node --test scripts/template-assets.test.mjs && node scripts/run-python.mjs scripts/template-gallery-assets.test.py", - "test:workflow-save": "node --test scripts/workflow-save.test.mjs scripts/workflow-backend-sync.test.mjs scripts/workflow-document-origin.test.mjs scripts/workflow-package-import-title.test.mjs", + "test:workflow-save": "node --test scripts/workflow-save.test.mjs scripts/workflow-backend-sync.test.mjs scripts/workflow-hydration-lifecycle.test.mjs scripts/workflow-document-origin.test.mjs scripts/workflow-package-import-title.test.mjs", "test:styles": "node --test scripts/modiff-style.test.mjs", "test:unit": "npm run test:styles && npm run test:templates && npm run test:task-templates && npm run test:template-quality && npm run gallery:card-coverage && npm run test:release-contract && npm run test:live-qwen-proof && npm run test:gallery-harness && npm run test:gallery-runner && node --test scripts/generation-campaign-retry-ledger.test.mjs && npm run test:gallery-queue && npm run test:driver-contract && npm run test:hugging-face-node-library && npm run test:modular-hierarchy-v2 && npm run test:block-schema-v2 && npm run test:block-route-selection-v1 && npm run test:block-runtime-v2 && npm run test:block-renderer-v2 && npm run test:block-persistence-v2 && npm run test:composite-migration-ui && npm run test:legacy-cluster-recovery-audit && npm run test:composite-block-capabilities-v2 && npm run test:registered-block-v2-adapter && npm run test:hugging-face-cluster-drag && npm run test:graph-export && npm run test:graph-mutations && npm run test:graph-visuals && npm run test:media-viewer && npm run test:requests && npm run test:run-coordinator && npm run test:run-activity && npm run test:template-input-preview && npm run test:asset-storage && npm run test:workflow-save", "typecheck": "tsc -b --pretty false", diff --git a/scripts/workflow-hydration-lifecycle.test.mjs b/scripts/workflow-hydration-lifecycle.test.mjs new file mode 100644 index 00000000..26dbb9cf --- /dev/null +++ b/scripts/workflow-hydration-lifecycle.test.mjs @@ -0,0 +1,155 @@ +import assert from 'node:assert/strict'; +import { after, before, test } from 'node:test'; +import path from 'node:path'; +import { fileURLToPath } from 'node:url'; +import { createServer } from 'vite'; +import { chromium } from 'playwright'; + +const ROOT = path.resolve(path.dirname(fileURLToPath(import.meta.url)), '..'); +const PROBE = '\0workflow-hydration-lifecycle-test'; +let frontend; +let browser; +let origin; + +before(async () => { + frontend = await createServer({ + root: ROOT, + configFile: false, + logLevel: 'silent', + cacheDir: path.join(ROOT, 'node_modules/.vite-workflow-hydration-lifecycle'), + optimizeDeps: { include: ['react', 'react-dom/client'], entries: [], noDiscovery: true }, + server: { host: '127.0.0.1', port: 0, watch: null, hmr: false }, + appType: 'custom', + plugins: [ + { + name: 'mounted-workflow-hydration-lifecycle-test', + enforce: 'pre', + resolveId(id, importer) { + if (id === '/workflow-hydration-test.js') return PROBE; + if (!importer?.replaceAll('\\', '/').endsWith('/src/studio/useWorkflowBackendSync.ts')) return; + if (id === '../stores/useStudioStore') return '\0hydration-test-studio'; + if (id === '../stores/useNodeStore') return '\0hydration-test-nodes'; + if (id === './templateExactness') return '\0hydration-test-signature'; + }, + load(id) { + // Keep the actual hook, React effects and requestJson transport. These selector/merge + // stubs isolate lifecycle ownership from the separately tested document merge rules. + if (id === '\0hydration-test-studio') + return `export const useStudioStore = selector => selector(window.hydrationTest.state); + useStudioStore.getState = () => window.hydrationTest.state; + useStudioStore.setState = () => { throw Error('Unexpected document state write'); };`; + if (id === '\0hydration-test-nodes') + return `export const useNodesStore = {getState: () => ({nodesRegistry:{}})};`; + if (id === '\0hydration-test-signature') return `export {stableStringify} from '/src/studio/stableHash.ts';`; + if (id !== PROBE) return; + return ` + import React from 'react'; + import { createRoot } from 'react-dom/client'; + import { useWorkflowBackendSync } from '/src/studio/useWorkflowBackendSync.ts'; + const state = window.hydrationTest = { requests: [], warnings: [], merges: [] }; + const originalWarn = console.warn; + console.warn = (...args) => { state.warnings.push(args.map(String)); originalWarn(...args); }; + state.tab = {id:'lifecycle-test',title:'Lifecycle test',createdAt:1,updatedAt:2,dirty:true, + source:'manual',backendRevision:7,snapshot:{nodes:[],edges:[], + studioForm:{prompt:'Keep local dirty prompt'},selectedMode:'text_to_image'}}; + state.state = {workflowTabs:[state.tab],workflowCanvasHydrated:true,workflowCanvasEpoch:1, + mergeBackendWorkflow: tab => state.merges.push(tab)}; + window.fetch = (url, init = {}) => new Promise((resolve, reject) => { + const request = {url:String(url),method:init.method || 'GET',signal:init.signal, + fail: () => reject(new TypeError('Failed to fetch'))}; + state.requests.push(request); + if (init.signal?.aborted) reject(init.signal.reason); + else init.signal?.addEventListener('abort', () => reject(init.signal.reason), {once:true}); + }); + function Probe() { useWorkflowBackendSync(); return React.createElement('p',null,'mounted'); } + const owner = createRoot(document.getElementById('root')); + owner.render(React.createElement(Probe)); + state.unmount = () => owner.unmount(); + `; + }, + configureServer(server) { + server.middlewares.use((request, response, next) => { + if (request.url !== '/hydration-test') return next(); + response.setHeader('Content-Type', 'text/html'); + response.end('
'); + }); + }, + }, + ], + }); + await frontend.listen(); + origin = `http://127.0.0.1:${frontend.httpServer.address().port}`; + browser = await chromium.launch({ headless: true }); +}); + +after(async () => { + await browser?.close(); + await frontend?.close(); +}); + +for (const kind of [ + 'nonpersisted-pagehide', + 'effect-unmount', + 'live-failure', + 'persisted-pagehide', + 'failure-before-pagehide', + 'failure-before-unmount', +]) { + test(`mounted workflow hydration handles ${kind} without losing its dirty document`, async () => { + const page = await browser.newPage(); + const errors = []; + page.on('pageerror', (error) => errors.push(String(error))); + try { + await page.goto(`${origin}/hydration-test`); + await page.waitForFunction(() => window.hydrationTest?.requests.length === 1); + const before = await page.evaluate(() => JSON.stringify(window.hydrationTest.tab)); + if (kind === 'nonpersisted-pagehide') { + await page.evaluate(() => { + window.dispatchEvent(new PageTransitionEvent('pagehide', { persisted: false })); + window.hydrationTest.requests[0].fail(); + }); + } else if (kind === 'effect-unmount') { + await page.evaluate(() => window.hydrationTest.unmount()); + } else if (kind === 'persisted-pagehide') { + await page.evaluate(() => { + window.dispatchEvent(new PageTransitionEvent('pagehide', { persisted: true })); + window.hydrationTest.requests[0].fail(); + }); + } else { + await page.evaluate(() => window.hydrationTest.requests[0].fail()); + if (kind === 'failure-before-pagehide' || kind === 'failure-before-unmount') { + await page.waitForFunction(() => window.hydrationTest.warnings.length === 1); + if (kind === 'failure-before-pagehide') + await page.evaluate(() => window.dispatchEvent(new PageTransitionEvent('pagehide', { persisted: false }))); + else await page.evaluate(() => window.hydrationTest.unmount()); + } + } + // Observe the real two-second retry deadline, including teardown after it was scheduled. + await page.waitForTimeout(2200); + const observed = await page.evaluate(() => ({ + requests: window.hydrationTest.requests.length, + warnings: window.hydrationTest.warnings, + aborted: window.hydrationTest.requests[0].signal.aborted, + merges: window.hydrationTest.merges, + document: JSON.stringify(window.hydrationTest.tab), + })); + assert.deepEqual(errors, []); + assert.equal(observed.document, before); + assert.deepEqual(observed.merges, []); + const expectsWarning = [ + 'live-failure', + 'persisted-pagehide', + 'failure-before-pagehide', + 'failure-before-unmount', + ].includes(kind); + const expectsRetry = ['live-failure', 'persisted-pagehide'].includes(kind); + assert.equal(observed.warnings.length, expectsWarning ? 1 : 0); + if (expectsWarning) assert.match(observed.warnings[0][1], /RequestError: Failed to fetch/u); + assert.equal(observed.requests, expectsRetry ? 2 : 1, 'a retired hydration must not start another request'); + // A settled failed transport has already removed its forwarded-abort listener. + assert.equal(observed.aborted, ['nonpersisted-pagehide', 'effect-unmount'].includes(kind)); + } finally { + await page.close(); + } + }); +} diff --git a/src/studio/useWorkflowBackendSync.ts b/src/studio/useWorkflowBackendSync.ts index 968aa7b2..7dbc7c75 100644 --- a/src/studio/useWorkflowBackendSync.ts +++ b/src/studio/useWorkflowBackendSync.ts @@ -295,6 +295,7 @@ export function useWorkflowBackendSync() { const cancelHydration = () => { if (cancelled) return; cancelled = true; + if (retryTimer !== undefined) window.clearTimeout(retryTimer); controller.abort(new Error('Workflow hydration page lifecycle ended.')); }; // A document reload/close can destroy an in-flight network request without running React's @@ -351,7 +352,6 @@ export function useWorkflowBackendSync() { return () => { window.removeEventListener('pagehide', handlePageHide); cancelHydration(); - if (retryTimer !== undefined) window.clearTimeout(retryTimer); }; }, [workflowCanvasHydrated]); From 8f0a95e2c7267b04f9e9195e7de30a3eeb01d1b7 Mon Sep 17 00:00:00 2001 From: Sourav Das Date: Wed, 28 Oct 2026 17:19:45 +0530 Subject: [PATCH 091/440] Preserve authored execution settings in Custom memory mode --- scripts/graph-visuals.test.mjs | 275 +++++++++++++++++++++++++++++++++ src/studio/graphBridge.ts | 105 +++++++++---- 2 files changed, 346 insertions(+), 34 deletions(-) diff --git a/scripts/graph-visuals.test.mjs b/scripts/graph-visuals.test.mjs index b0842c27..f6c2aebd 100644 --- a/scripts/graph-visuals.test.mjs +++ b/scripts/graph-visuals.test.mjs @@ -148,6 +148,281 @@ function edge(id, source, target, sourceHandle = 'output', targetHandle = 'input return { id, source, target, sourceHandle, targetHandle, type: 'default' }; } +async function importedCanonicalRecipe(graphPath) { + const inference = await server.ssrLoadModule('/src/studio/workflowInference.ts'); + const canonical = JSON.parse(fs.readFileSync(path.resolve(ROOT, '../MoDiff/data/graphs', graphPath), 'utf8')); + const studio = studioStoreModule.useStudioStore; + const flow = flowStoreModule.useFlowStore; + const previousStudio = studio.getState(); + const previousFlow = flow.getState(); + const snapshot = inference.workflowSnapshotFromGraph(canonical, 'default', { + ...previousStudio.form, + device: 'cuda:0', + }); + flow.getState().replaceGraph(snapshot); + studio.setState({ + form: snapshot.studioForm, + selectedMode: snapshot.selectedMode, + graphBinding: snapshot.studioGraphBinding, + autoResourcePlan: null, + }); + return { + studio, + flow, + recipe: flow.getState().nodes.find((node) => node.data.studioRole === 'diffusersRecipe'), + restore() { + studio.setState(previousStudio); + flow.setState(previousFlow); + }, + }; +} + +function graphOwnedRecipeValues(recipe) { + return Object.fromEntries( + Object.entries(recipe.data.params) + .filter( + ([key, field]) => + !['device', 'offload_mode'].includes(key) && + (Object.hasOwn(field, 'value') || Object.hasOwn(field, 'default')), + ) + .map(([key, field]) => [key, field.value ?? field.default]), + ); +} + +test('switching only memory to Custom preserves authored Diffusers recipe controls', async () => { + const fixture = await importedCanonicalRecipe('studio/ddim-pipeline/unconditional-image.json'); + try { + const authored = graphOwnedRecipeValues(fixture.recipe); + assert.equal(authored.attention_backend, '_native_math'); + assert.equal(authored.vae_slicing, false); + assert.equal(authored.vae_tiling, false); + // The top-bar memory handler changes the form, then calls this same synchronization. + fixture.studio.getState().updateForm({ resourceMode: 'expert' }); + assert.equal(graphBridge.syncStudioGraphValues(fixture.studio.getState().form), true); + assert.deepEqual( + graphOwnedRecipeValues(fixture.flow.getState().nodes.find((node) => node.id === fixture.recipe.id)), + authored, + 'choosing Custom must retain authored recipe controls which have no corresponding form edit', + ); + } finally { + fixture.restore(); + } +}); + +for (const [kind, graphPath] of [ + ['image', 'studio/ddim-pipeline/unconditional-image.json'], + ['audio', 'studio/stable-audio-pipeline/text-to-audio.json'], + ['video', 'studio/cog-video-x-pipeline/text-to-video.json'], +]) { + test(`Custom reconciliation preserves ${kind} recipe controls and synchronizes explicit form values`, async () => { + const fixture = await importedCanonicalRecipe(graphPath); + try { + for (const [key, value] of Object.entries({ + device_map: 'manual', + attention_backend: '_native_math', + attention_components: 'unet', + vae_slicing: false, + vae_tiling: false, + regional_compile: true, + compile_components: 'unet', + compile_backend: 'eager', + compile_mode: 'reduce-overhead', + compile_fullgraph: true, + compile_dynamic: true, + denoiser_cache: 'first_block', + cache_threshold: 0.2, + layerwise_casting: true, + layerwise_casting_components: 'unet', + layerwise_storage_dtype: 'float8_e5m2', + layerwise_compute_dtype: 'float32', + channels_last: true, + channels_last_components: 'unet', + })) { + assert.ok(fixture.recipe.data.params[key], `${kind}: real recipe field ${key}`); + fixture.flow.getState().setParam(fixture.recipe.id, key, value); + } + const authored = graphOwnedRecipeValues( + fixture.flow.getState().nodes.find((node) => node.id === fixture.recipe.id), + ); + fixture.studio.getState().updateForm({ resourceMode: 'expert', device: 'cpu:0', offloadMode: 'none' }); + assert.equal(graphBridge.syncStudioGraphValues(fixture.studio.getState().form), true); + const current = fixture.flow.getState().nodes.find((node) => node.id === fixture.recipe.id); + assert.deepEqual(graphOwnedRecipeValues(current), authored); + assert.equal(current.data.params.device.value, 'cpu:0'); + assert.equal(current.data.params.offload_mode.value, 'none'); + + fixture.studio.getState().updateForm({ device: 'cuda:0', autoOffload: true, offloadMode: 'model_cpu' }); + assert.equal(graphBridge.syncStudioGraphValues(fixture.studio.getState().form), true); + const offloaded = fixture.flow.getState().nodes.find((node) => node.id === fixture.recipe.id); + assert.deepEqual(graphOwnedRecipeValues(offloaded), authored); + assert.equal(offloaded.data.params.device.value, 'cuda:0'); + assert.equal(offloaded.data.params.offload_mode.value, 'model_cpu'); + + fixture.studio.getState().updateForm({ attentionBackend: 'auto' }); + assert.equal(graphBridge.syncStudioGraphValues(fixture.studio.getState().form), true); + assert.deepEqual( + graphOwnedRecipeValues(fixture.flow.getState().nodes.find((node) => node.id === fixture.recipe.id)), + { ...authored, attention_backend: 'auto' }, + ); + } finally { + fixture.restore(); + } + }); +} + +for (const [kind, graphPath] of [ + ['image', 'studio/stable-diffusion-pipeline/text-to-image.json'], + ['audio', 'studio/stable-audio-pipeline/text-to-audio.json'], + ['video', 'studio/cog-video-x-pipeline/text-to-video.json'], +]) { + for (const resourceMode of ['auto', 'expert']) { + test(`new ${resourceMode} ${kind} graph initializes recipe defaults before later Custom edits`, async () => { + const fixture = await importedCanonicalRecipe(graphPath); + const nodeStore = nodesStoreModule.useNodesStore; + const previousNodes = nodeStore.getState(); + const previousFetch = globalThis.fetch; + const previousWebSocket = globalThis.WebSocket; + try { + const registry = Object.fromEntries( + fixture.flow + .getState() + .nodes.map((node) => [`${node.data.module}.${node.data.action}`, structuredClone(node.data)]), + ); + const loader = Object.values(registry).find((item) => item.action === 'LoadPipeline'); + const generator = Object.values(registry).find((item) => + ['Generate', 'UnconditionalGenerate'].includes(item.action), + ); + const contractAction = `update_${kind}_contract`; + // Portable graphs omit executable field actions. Supply the same small + // declarative contract fixture used by the graph materialization tests. + loader.params.pipeline_class.onChange = contractAction; + generator.params.pipeline.onSignal = contractAction; + if (kind === 'video') generator.params.mode.onChange = contractAction; + if (kind === 'image') generator.params.prompt = { type: 'string', value: '' }; + nodeStore.setState({ + nodesRegistry: registry, + studioModelCapabilities: [ + { + modelType: fixture.studio.getState().form.modelType, + executionProfiles: [ + { + modes: [fixture.studio.getState().form.mode], + execution_path: `direct-diffusers-${kind}`, + }, + ], + }, + ], + studioExecutionSpecInvalid: false, + }); + fixture.flow.setState({ nodes: [], edges: [] }); + const form = { ...fixture.studio.getState().form, resourceMode, attentionBackend: undefined }; + fixture.studio.setState({ form, graphBinding: null, graphFinalization: null, autoResourcePlan: null }); + globalThis.fetch = async (_input, init) => { + const payload = JSON.parse(String(init?.body)); + assert.equal(payload.fn, contractAction, 'only the isolated fixture contract may be called'); + const flow = fixture.flow.getState(); + const current = flow.nodes.find((item) => item.id === payload.node); + if (current.data.action === 'LoadPipeline') { + flow.setParam( + payload.node, + 'pipeline', + { + direction: 'output', + value: { + pipelineClass: current.data.params.pipeline_class.value, + mode: form.mode, + modes: [form.mode], + taskType: generator.params.task_type?.value, + }, + }, + 'signal', + ); + } else { + const contract = flow.getParam(payload.node, 'pipeline', 'signal')?.value; + flow.setParam(payload.node, `${kind}_contract`, contract); + if (kind === 'audio') flow.setParam(payload.node, 'task_type', contract.taskType); + } + return new Response(JSON.stringify({ error: false, nodes: [] }), { + status: 200, + headers: { 'Content-Type': 'application/json' }, + }); + }; + globalThis.WebSocket = undefined; + await graphBridge.createOrUpdateStudioGraph(form); + const recipe = fixture.flow.getState().nodes.find((node) => node.data.studioRole === 'diffusersRecipe'); + assert.ok(recipe); + assert.notEqual(recipe.id, fixture.recipe.id, 'the initialization path must create a new owner'); + const initialized = graphOwnedRecipeValues(recipe); + assert.equal(initialized.device_map, 'none'); + assert.equal(initialized.attention_backend, 'auto'); + assert.equal(initialized.attention_components, ''); + assert.equal(initialized.vae_slicing, true); + const needsVideoTiling = + resourceMode !== 'expert' || + form.offloadMode !== 'none' || + form.width * form.height * form.numFrames > 40_000_000; + assert.equal(initialized.vae_tiling, kind === 'video' ? needsVideoTiling : true); + assert.equal(initialized.regional_compile, false); + assert.equal(initialized.denoiser_cache, 'none'); + assert.equal(initialized.layerwise_casting, false); + assert.equal(initialized.channels_last, false); + + fixture.flow.getState().setParam(recipe.id, 'vae_slicing', false); + fixture.studio.getState().updateForm({ resourceMode: 'expert' }); + assert.equal(graphBridge.syncStudioGraphValues(fixture.studio.getState().form), true); + assert.equal( + fixture.flow.getState().nodes.find((node) => node.id === recipe.id).data.params.vae_slicing.value, + false, + 'subsequent Custom reconciliation must retain the newly authored value', + ); + } finally { + globalThis.fetch = previousFetch; + globalThis.WebSocket = previousWebSocket; + nodeStore.setState(previousNodes); + fixture.restore(); + } + }); + } +} + +test('Auto recipe candidate retains precedence over a stale Custom attention form value', async () => { + const fixture = await importedCanonicalRecipe('studio/ddim-pipeline/unconditional-image.json'); + try { + const form = { ...fixture.studio.getState().form, resourceMode: 'auto', attentionBackend: 'auto' }; + const binding = fixture.studio.getState().graphBinding; + const loader = fixture.flow.getState().nodes.find((item) => item.id === binding.nodes.diffusersImagePipeline); + const candidate = { + id: 'recipe-attention-regression', + executionProfileId: 'ddim:direct', + modelType: form.modelType, + mode: form.mode, + loaderModule: loader.data.module, + loaderAction: loader.data.action, + executionPath: 'direct-diffusers-image', + pipelineClass: loader.data.params.pipeline_class.value, + modelRepo: 'google/ddpm-cifar10-32', + modelDependencies: [], + attentionBackend: '_native_flash', + regionalCompile: true, + denoiserCache: 'first_block', + layerwiseCasting: true, + channelsLast: true, + }; + const plan = { schemaVersion: 2, selectedCandidate: candidate, candidates: [structuredClone(candidate)] }; + fixture.studio.setState({ form, autoResourcePlan: plan, autoFieldOverrides: {} }); + assert.equal(studioStoreModule.currentAutoResourcePlanTarget(plan, form, binding), false); + assert.equal(graphBridge.syncStudioGraphValues(form), true); + const recipe = fixture.flow.getState().nodes.find((item) => item.id === fixture.recipe.id); + assert.equal(recipe.data.params.attention_backend.value, candidate.attentionBackend); + assert.equal(recipe.data.params.regional_compile.value, true); + assert.equal(recipe.data.params.denoiser_cache.value, 'first_block'); + assert.equal(recipe.data.params.layerwise_casting.value, true); + assert.equal(recipe.data.params.channels_last.value, true); + } finally { + fixture.restore(); + } +}); + function managedNode(id, role, extras = {}) { const base = node(id, extras.x ?? 0, extras.y ?? 0, { params: extras.params ?? {} }); return { diff --git a/src/studio/graphBridge.ts b/src/studio/graphBridge.ts index f659a504..3ef9867f 100644 --- a/src/studio/graphBridge.ts +++ b/src/studio/graphBridge.ts @@ -3458,7 +3458,26 @@ function applyExecutionSpecValues(binding: StudioGraphBinding, form: StudioFormS if (binding.nodes.qwenQuantization) applyExpertQuantizationConfig(binding, form); } -function applyFormValues(binding: StudioGraphBinding, form: StudioFormState) { +function applyRecipeDefaults( + nodeId: string | undefined, + form: StudioFormState, + defaults: Record, + initialize: boolean, +) { + const explicitAttention = + form.resourceMode === 'expert' && typeof form.attentionBackend === 'string' && form.attentionBackend.trim() + ? form.attentionBackend + : undefined; + for (const [field, value] of Object.entries(defaults)) { + const explicit = field === 'attention_backend' ? explicitAttention : undefined; + // Custom recipe controls belong to the graph unless the form explicitly + // edits the same control. Creation still applies the reviewed defaults once. + if (form.resourceMode === 'expert' && !initialize && explicit === undefined) continue; + setParamIfPresent(nodeId, [field], explicit ?? value); + } +} + +function applyFormValues(binding: StudioGraphBinding, form: StudioFormState, initializeRecipe = false) { const { models, qwenQuantization, @@ -3546,23 +3565,27 @@ function applyFormValues(binding: StudioGraphBinding, form: StudioFormState) { setParamIfPresent(diffusersQuantization, ['backend'], audioQuantizationMode); setParamIfPresent(diffusersQuantization, ['components'], autoCandidate?.quantizedComponents ?? ['transformer']); setParamIfPresent(diffusersQuantization, ['dtype'], audioDtype); - setParamIfPresent(diffusersRecipe, ['device_map'], 'none'); setParamIfPresent(diffusersRecipe, ['offload_mode'], autoOffloadMode); setParamIfPresent(diffusersRecipe, ['device'], form.device); - setParamIfPresent( + applyRecipeDefaults( diffusersRecipe, - ['attention_backend'], - typeof form.attentionBackend === 'string' && form.attentionBackend.trim() - ? form.attentionBackend - : (autoCandidate?.attentionBackend ?? 'auto'), + form, + { + device_map: 'none', + attention_backend: + typeof form.attentionBackend === 'string' && form.attentionBackend.trim() + ? form.attentionBackend + : (autoCandidate?.attentionBackend ?? 'auto'), + attention_components: '', + vae_slicing: true, + vae_tiling: true, + regional_compile: autoCandidate?.regionalCompile ?? false, + denoiser_cache: autoCandidate?.denoiserCache ?? 'none', + layerwise_casting: autoCandidate?.layerwiseCasting ?? false, + channels_last: autoCandidate?.channelsLast ?? false, + }, + initializeRecipe, ); - setParamIfPresent(diffusersRecipe, ['attention_components'], ''); - setParamIfPresent(diffusersRecipe, ['vae_slicing'], true); - setParamIfPresent(diffusersRecipe, ['vae_tiling'], true); - setParamIfPresent(diffusersRecipe, ['regional_compile'], autoCandidate?.regionalCompile ?? false); - setParamIfPresent(diffusersRecipe, ['denoiser_cache'], autoCandidate?.denoiserCache ?? 'none'); - setParamIfPresent(diffusersRecipe, ['layerwise_casting'], autoCandidate?.layerwiseCasting ?? false); - setParamIfPresent(diffusersRecipe, ['channels_last'], autoCandidate?.channelsLast ?? false); // An audio LoRA is architecture-specific. Keep its declared base model // authoritative across later Studio graph reconciliation; otherwise the @@ -3631,21 +3654,27 @@ function applyFormValues(binding: StudioGraphBinding, form: StudioFormState) { ); setParamIfPresent(diffusersQuantization, ['components'], ['transformer']); setParamIfPresent(diffusersQuantization, ['dtype'], autoCandidate?.dtype ?? form.dtype); - setParamIfPresent(diffusersRecipe, ['device_map'], 'none'); setParamIfPresent(diffusersRecipe, ['offload_mode'], resolvedOffloadMode); setParamIfPresent(diffusersRecipe, ['device'], form.device); - const attentionBackend = autoCandidate?.attentionBackend ?? 'auto'; - setParamIfPresent(diffusersRecipe, ['attention_backend'], attentionBackend); - setParamIfPresent(diffusersRecipe, ['attention_components'], supportsNativeFlash ? 'transformer' : ''); - setParamIfPresent(diffusersRecipe, ['vae_slicing'], true); // Decode activation pressure can exceed sampling pressure by tens of GiB. // Wan I2V also VAE-encodes an 81-frame padded conditioning tensor before // denoising, which can exceed resident-model headroom even at 768x512. - setParamIfPresent(diffusersRecipe, ['vae_tiling'], needsVaeTiling); - setParamIfPresent(diffusersRecipe, ['regional_compile'], autoCandidate?.regionalCompile ?? false); - setParamIfPresent(diffusersRecipe, ['denoiser_cache'], autoCandidate?.denoiserCache ?? 'none'); - setParamIfPresent(diffusersRecipe, ['layerwise_casting'], autoCandidate?.layerwiseCasting ?? false); - setParamIfPresent(diffusersRecipe, ['channels_last'], autoCandidate?.channelsLast ?? false); + applyRecipeDefaults( + diffusersRecipe, + form, + { + device_map: 'none', + attention_backend: autoCandidate?.attentionBackend ?? 'auto', + attention_components: supportsNativeFlash ? 'transformer' : '', + vae_slicing: true, + vae_tiling: needsVaeTiling, + regional_compile: autoCandidate?.regionalCompile ?? false, + denoiser_cache: autoCandidate?.denoiserCache ?? 'none', + layerwise_casting: autoCandidate?.layerwiseCasting ?? false, + channels_last: autoCandidate?.channelsLast ?? false, + }, + initializeRecipe, + ); setModelRepo(wanPipeline, resolvedArtifact); if (pipelineClass) setParamIfPresent(wanPipeline, ['pipeline_class'], pipelineClass); @@ -3718,17 +3747,24 @@ function applyFormValues(binding: StudioGraphBinding, form: StudioFormState) { setParamIfPresent(diffusersQuantization, ['backend'], autoQuantizationMode); setParamIfPresent(diffusersQuantization, ['components'], autoCandidate?.quantizedComponents ?? ['transformer']); setParamIfPresent(diffusersQuantization, ['dtype'], imageDtype); - setParamIfPresent(diffusersRecipe, ['device_map'], 'none'); setParamIfPresent(diffusersRecipe, ['offload_mode'], autoOffloadMode); setParamIfPresent(diffusersRecipe, ['device'], form.device); - setParamIfPresent(diffusersRecipe, ['attention_backend'], autoCandidate?.attentionBackend ?? 'auto'); - setParamIfPresent(diffusersRecipe, ['attention_components'], ''); - setParamIfPresent(diffusersRecipe, ['vae_slicing'], true); - setParamIfPresent(diffusersRecipe, ['vae_tiling'], true); - setParamIfPresent(diffusersRecipe, ['regional_compile'], autoCandidate?.regionalCompile ?? false); - setParamIfPresent(diffusersRecipe, ['denoiser_cache'], autoCandidate?.denoiserCache ?? 'none'); - setParamIfPresent(diffusersRecipe, ['layerwise_casting'], autoCandidate?.layerwiseCasting ?? false); - setParamIfPresent(diffusersRecipe, ['channels_last'], autoCandidate?.channelsLast ?? false); + applyRecipeDefaults( + diffusersRecipe, + form, + { + device_map: 'none', + attention_backend: autoCandidate?.attentionBackend ?? 'auto', + attention_components: '', + vae_slicing: true, + vae_tiling: true, + regional_compile: autoCandidate?.regionalCompile ?? false, + denoiser_cache: autoCandidate?.denoiserCache ?? 'none', + layerwise_casting: autoCandidate?.layerwiseCasting ?? false, + channels_last: autoCandidate?.channelsLast ?? false, + }, + initializeRecipe, + ); setModelRepo(diffusersImagePipeline, autoArtifact ?? capability.defaultRepo); if (pipelineClass) { @@ -4047,9 +4083,10 @@ function createSkeletonGraph( context: WorkflowOperationContext, ): BridgeResult { assertWorkflowOperationContext(context); + const existingNodeIds = new Set(useFlowStore.getState().nodes.map((node) => node.id)); const binding = buildOrReuseBinding(form); applyAuxiliaryNodePresentation(binding, form); - applyFormValues(binding, form); + applyFormValues(binding, form, !existingNodeIds.has(binding.nodes.diffusersRecipe ?? '')); const managedEdgeIds = connectBaseGraph(binding); const updatedBinding = { ...binding, From cdc5c7ce863fb342da32b3cc7363f5e8ee1c24a4 Mon Sep 17 00:00:00 2001 From: Sourav Das Date: Wed, 28 Oct 2026 17:20:49 +0530 Subject: [PATCH 092/440] Pair release checks with the reviewed backend fixes --- .github/workflows/ci.yml | 6 +++--- plans/release-20261028/README.md | 14 ++++++++++---- 2 files changed, 13 insertions(+), 7 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 8ebbfaff..7922806e 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -32,8 +32,8 @@ jobs: uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4 with: repository: sdevil7th/MoDiff - # Reviewed application source with process-local cache status. - ref: 84b79f3c83a7d5ab2e904e8231bc4f56f53b1999 + # Reviewed variant planning and offline pinned Hub-source resolution. + ref: 8f8c40bab9a389a0199c96c1add0a26a967928bd path: MoDiff persist-credentials: false - name: Verify the pinned backend supports native setup @@ -86,7 +86,7 @@ jobs: with: repository: sdevil7th/MoDiff # Match the immutable backend revision in the Client quality job. - ref: 84b79f3c83a7d5ab2e904e8231bc4f56f53b1999 + ref: 8f8c40bab9a389a0199c96c1add0a26a967928bd path: MoDiff persist-credentials: false - name: Verify the pinned backend supports native setup diff --git a/plans/release-20261028/README.md b/plans/release-20261028/README.md index 9141e327..5185184a 100644 --- a/plans/release-20261028/README.md +++ b/plans/release-20261028/README.md @@ -1,10 +1,16 @@ # Release preparation for 28 October 2026 This plan was requested for execution in separate Windows and Linux chats. The -deadline is **28 October 2026, 18:00 IST (12:30 UTC)** for a deployed, testable -candidate. **18:00–21:00 IST belongs to the maintainer's manual testing.** Do not -consume that window with unfinished integration, builds or unattended model jobs. -The review started around 01:00 IST, leaving about 17 hours, not two working days. +original deadline was **28 October 2026, 18:00 IST (12:30 UTC)** for a deployed, +testable candidate, with 18:00–21:00 IST reserved for manual testing. On 28 October, +the maintainer explicitly approved continuing unfinished work past 18:00 and +delaying manual testing. The schedule and cutoff references below retain the +original planning checkpoints; that manual-testing window is now superseded. +Provide a freshly verified deployment and handoff before beginning the maintainer's +2–3 hours of manual testing. This extension does not close unavailable-hardware, +catalog-evidence or publication-approval requirements. +The review started around 01:00 IST, leaving about 17 hours under the original +cutoff, not two working days. This is a plan, not a statement that its acceptance checks have passed. The canonical copy is in the backend repository; the client carries an identical copy From 232cd75fb04618e968aa8131c320a4b31f369d85 Mon Sep 17 00:00:00 2001 From: Sourav Das Date: Wed, 28 Oct 2026 17:32:47 +0530 Subject: [PATCH 093/440] Record the measured recipe and lifecycle bundle cost --- scripts/bundle-budget.mjs | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/scripts/bundle-budget.mjs b/scripts/bundle-budget.mjs index 7bf30e67..cd015298 100644 --- a/scripts/bundle-budget.mjs +++ b/scripts/bundle-budget.mjs @@ -1,3 +1,9 @@ +// Custom recipe preservation and page-lifecycle retry cancellation measure +// largest/startup/deferred gzip 491521/670008/326977 versus the accepted +// 491457/669945/327044. Add only measured startup growth 64/63, preserving +// 8/11 bytes of headroom. The same four startup and 89 deferred assets retain +// membership; all deferred bodies match after versioned URL normalization. +// Dependencies, minifier, loading boundaries and both deferred caps stay fixed. // Passive saved-form preservation and authoritative service-cache status measure // largest/startup/deferred gzip 491457/669945/327044 versus the accepted // 490814/669295/326710. Add only aggregate growth 643/650/334, preserving @@ -242,6 +248,7 @@ const SOURCE_LICENSES = new URL('../public/THIRD_PARTY_LICENSES.txt', import.met // Add only those measured costs, preserving 8/11/152 bytes of existing headroom. // Dependencies, startup membership, lazy boundaries and the 64 KiB chunk cap stay fixed. const MAX_STARTUP_CHUNK_GZIP_BYTES = + 64 + 643 + 322 + 2020 + @@ -361,6 +368,7 @@ const MAX_STARTUP_CHUNK_GZIP_BYTES = // Preserve the separately measured 64-byte shared loading-policy allowance above. // Preserve the measured 384-byte selected-image authoring allowance above. const MAX_STARTUP_GZIP_BYTES = + 63 + 650 + 498 + 2018 + From 9ff439216433456f3e7949e5745d0cc73c2fdc10 Mon Sep 17 00:00:00 2001 From: Sourav Das Date: Wed, 28 Oct 2026 17:53:44 +0530 Subject: [PATCH 094/440] Align setup contract with the updated application pair --- README.md | 4 ++-- scripts/backend-installer-contract.test.mjs | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 3d82244f..2c202cfb 100644 --- a/README.md +++ b/README.md @@ -28,8 +28,8 @@ application source pair is: | Repository | Application source before final packaging | | ------------- | ------------------------------------------ | -| MoDiff | `84b79f3c83a7d5ab2e904e8231bc4f56f53b1999` | -| MoDiff-client | `e50617208a444fbe203c0e296de431ea22161ebe` | +| MoDiff | `8f8c40bab9a389a0199c96c1add0a26a967928bd` | +| MoDiff-client | `8f0a95e2c7267b04f9e9195e7de30a3eeb01d1b7` | These application source revisions were reviewed on 28 October 2026. Final documentation, CI pairing and bundled-client packaging commits can be later diff --git a/scripts/backend-installer-contract.test.mjs b/scripts/backend-installer-contract.test.mjs index 6361d4be..b43842e6 100644 --- a/scripts/backend-installer-contract.test.mjs +++ b/scripts/backend-installer-contract.test.mjs @@ -181,8 +181,8 @@ test('current setup guides select the published candidate and identify its revie assert.match(text, /codex\/windows-delivery-20261026/, `${guide.pathname} must identify the current candidate`); } const readme = readFileSync(guides[0], 'utf8'); - const backendSourceCommit = '84b79f3c83a7d5ab2e904e8231bc4f56f53b1999'; - const clientSourceCommit = 'e50617208a444fbe203c0e296de431ea22161ebe'; + const backendSourceCommit = '8f8c40bab9a389a0199c96c1add0a26a967928bd'; + const clientSourceCommit = '8f0a95e2c7267b04f9e9195e7de30a3eeb01d1b7'; assert.ok(readme.includes(backendSourceCommit), 'Reviewed backend application source commit is missing'); assert.ok(readme.includes(clientSourceCommit), 'Reviewed client application source commit is missing'); const workflow = readFileSync(new URL('.github/workflows/ci.yml', clientRoot), 'utf8'); From 08c4dc5aa1626b34ee8cc5bf7fb7befb3c7d17d4 Mon Sep 17 00:00:00 2001 From: Sourav Das Date: Wed, 28 Oct 2026 19:19:31 +0530 Subject: [PATCH 095/440] Preserve authored node devices during workflow import --- docs/modiff-client-architecture.md | 8 ++- scripts/modiff-template.test.mjs | 61 +++++++++++++++++++++++ scripts/workflow-document-origin.test.mjs | 12 ++++- src/studio/workflowInference.ts | 5 +- 4 files changed, 81 insertions(+), 5 deletions(-) diff --git a/docs/modiff-client-architecture.md b/docs/modiff-client-architecture.md index 554b4180..2b5e07fe 100644 --- a/docs/modiff-client-architecture.md +++ b/docs/modiff-client-architecture.md @@ -1106,8 +1106,12 @@ is the single policy selector. Both storage keys and legacy normalizers remain unchanged. A restored workflow keeps its own resource settings while tabs share the global editing preference. Explicit graph imports preserve the document's normalized memory policy while -inferring their image recipe summary. Passive tab switching, closing, backend -hydration and browser reload retain a recognized saved ordinary image form; +inferring their image recipe summary. Raw graph imports also retain each node's +authored device value and default, including mixed CPU/accelerator placement; +the current form device does not rebase them. Summary defaults do not repair +missing or malformed graph fields. Explicit device rebasing remains separate. +Passive tab switching, closing, backend hydration and browser reload retain a +recognized saved ordinary image form; Save As, Duplicate and output Restore retain that form too. These paths do not replace authored captions, model/task summaries or resource settings from graph inference, and an unchanged checkpoint does not trigger an autosave. The saved diff --git a/scripts/modiff-template.test.mjs b/scripts/modiff-template.test.mjs index bc64a85b..95493e01 100644 --- a/scripts/modiff-template.test.mjs +++ b/scripts/modiff-template.test.mjs @@ -2451,6 +2451,67 @@ test('device rebasing only changes declared device parameters', () => { assert.equal(rebased.metadata.preferredLabel, 'cuda:0'); }); +test('ordinary graph imports preserve authored per-node devices and defaults independently of the current form', async (t) => { + for (const device of ['cpu:0', 'cuda:1', 'mps:0', 'xpu:0']) { + await t.test(device, () => { + const graph = canonicalModularTextToImageGraph(); + const loader = graph.nodes.find((node) => node.id === 'models'); + const preview = graph.nodes.find((node) => node.id === 'preview'); + // An ordinary operation graph owns its values, even when its shape also + // resembles a historical managed template. + loader.data.operationAuthoring = { schemaVersion: 1 }; + loader.data.params.device = { value: device, default: 'cpu:0' }; + preview.data.params.device = { value: 'cpu:0', default: 'cpu' }; + preview.data.params.notes = { value: 'cuda:0' }; + const original = structuredClone(graph); + + const snapshot = workflowInferenceModule.workflowSnapshotFromGraph(graph, 'smoothstep', { + ...profilesModule.DEFAULT_STUDIO_FORM, + device: 'cuda:0', + }); + + assert.equal(snapshot.studioGraphBinding, null); + assert.deepEqual(snapshot.nodes, graph.nodes); + assert.deepEqual( + snapshot.edges, + graph.edges.map((edge) => ({ ...edge, type: 'smoothstep' })), + ); + assert.deepEqual(snapshot.viewport, graph.viewport); + assert.equal(snapshot.studioForm.device, device, 'The imported loader supplies the form summary.'); + assert.deepEqual(graph, original, 'Import must not mutate the source graph.'); + snapshot.nodes[0].data.params.device.value = 'cpu'; + assert.deepEqual(graph, original, 'The imported snapshot must not share mutable node data with its source.'); + }); + } +}); + +test('ordinary graph imports leave missing and malformed device fields intact while inferring a fallback summary', async (t) => { + for (const params of [ + {}, + { device: { value: undefined, default: 'cpu:0' } }, + { device: { value: null, default: null } }, + { device: { value: '', default: '' } }, + { device: { value: 0, default: false } }, + ]) { + await t.test(JSON.stringify(params), () => { + const graph = canonicalModularTextToImageGraph(); + const loader = graph.nodes.find((node) => node.id === 'models'); + loader.data.operationAuthoring = { schemaVersion: 1 }; + Object.assign(loader.data.params, params); + const original = JSON.parse(JSON.stringify(graph)); + + const snapshot = workflowInferenceModule.workflowSnapshotFromGraph(graph, 'smoothstep', { + ...profilesModule.DEFAULT_STUDIO_FORM, + device: 'cuda:0', + }); + + assert.deepEqual(snapshot.nodes, original.nodes, 'Summary inference must not repair saved node values.'); + assert.equal(snapshot.studioForm.device, params.device?.default === 'cpu:0' ? 'cpu:0' : 'cuda:0'); + assert.deepEqual(JSON.parse(JSON.stringify(graph)), original); + }); + } +}); + test('role-marked generated Studio workflow imports retain their managed contract', () => { const graph = canonicalModularTextToImageGraph(); graph.nodes = graph.nodes.map((node, index) => ({ diff --git a/scripts/workflow-document-origin.test.mjs b/scripts/workflow-document-origin.test.mjs index a011a85e..dfc27e3d 100644 --- a/scripts/workflow-document-origin.test.mjs +++ b/scripts/workflow-document-origin.test.mjs @@ -542,6 +542,7 @@ for (const scenario of [ ]) { test(`workflow import viewport: ${scenario.name} retains the graph and reports success`, async () => { const previousFlow = flow.getState(); + const previousStudio = studio.getState(); const previousReader = globalThis.FileReader; const previousFetch = globalThis.fetch; const currentViewport = { x: 25, y: -30, zoom: 0.75 }; @@ -564,6 +565,7 @@ for (const scenario of [ label: 'Retained source', params: { file: { type: 'str', display: 'filebrowser', value: ['images/retained.png'] }, + device: { type: 'string', value: 'cpu:0', default: 'cpu' }, image: { type: 'image', display: 'output' }, }, operationAuthoring, @@ -578,7 +580,10 @@ for (const scenario of [ module: 'modules.Image', action: 'Preview', label: 'Retained preview', - params: { image: { type: 'image', display: 'input' } }, + params: { + image: { type: 'image', display: 'input' }, + device: { type: 'string', value: 'cpu:0', default: 'cpu' }, + }, }, }, ], @@ -615,6 +620,7 @@ for (const scenario of [ throw new Error('Import must not dispatch.'); }; flow.setState({ nodes: [], edges: [], viewport: { ...currentViewport } }); + studio.setState({ form: { ...studio.getState().form, device: 'cuda:0' } }); const previousViewport = flow.getState().viewport; for (const toast of notifications.getToastItems()) notifications.closeSnackbar(toast.id); let handleDrop; @@ -650,6 +656,9 @@ for (const scenario of [ ); assert.deepEqual(flow.getState().nodes[0].data.operationAuthoring, operationAuthoring); assert.deepEqual(flow.getState().nodes[0].data.params.file.value, ['images/retained.png']); + for (const node of flow.getState().nodes) { + assert.deepEqual(node.data.params.device, graph.nodes.find(({ id }) => id === node.id).data.params.device); + } assert.deepEqual( flow.getState().edges.map(({ id, source, sourceHandle, target, targetHandle }) => ({ id, @@ -669,6 +678,7 @@ for (const scenario of [ assert.deepEqual(requests, []); } finally { flow.setState(previousFlow); + studio.setState(previousStudio); globalThis.FileReader = previousReader; globalThis.fetch = previousFetch; } diff --git a/src/studio/workflowInference.ts b/src/studio/workflowInference.ts index 698271b6..c2915a9f 100644 --- a/src/studio/workflowInference.ts +++ b/src/studio/workflowInference.ts @@ -1,6 +1,5 @@ import type { Edge, Viewport } from '@xyflow/react'; import type { CustomNodeType } from '../stores/useFlowStore'; -import { rebaseGraphDevices } from './deviceRebase'; import { BUILTIN_AUDIO_OPERATION_MODES, BUILTIN_DATA_OPERATION_MODES, @@ -762,7 +761,9 @@ export function workflowSnapshotFromGraph( edgeType: string, fallback: StudioFormState = DEFAULT_STUDIO_FORM, ): WorkflowTabSnapshot { - const portableGraph = rebaseGraphDevices(cloneJson(graph), fallback.device); + // Import retains each node's authored placement. The current form is only + // context for summary inference, not permission to move every node's device. + const portableGraph = cloneJson(graph); const nodes = cloneJson((Array.isArray(portableGraph.nodes) ? portableGraph.nodes : []) as CustomNodeType[]); const edges = cloneJson(Array.isArray(portableGraph.edges) ? portableGraph.edges : []).map((edge) => ({ ...edge, From abe4193ba2d930a75add531d8cc741b8c775d22f Mon Sep 17 00:00:00 2001 From: Sourav Das Date: Wed, 28 Oct 2026 20:05:39 +0530 Subject: [PATCH 096/440] Honor immutable component revisions in model Install controls --- docs/developer-first-node-ux.md | 11 + scripts/graph-visuals.test.mjs | 661 ++++++++++++++++++++++++++++++++ src/fields/ModelSelectField.tsx | 40 +- src/utils/fieldAction.ts | 6 +- src/utils/modelFieldInstall.ts | 248 ++++++++++++ 5 files changed, 944 insertions(+), 22 deletions(-) create mode 100644 src/utils/modelFieldInstall.ts diff --git a/docs/developer-first-node-ux.md b/docs/developer-first-node-ux.md index 836356fc..48be7e6f 100644 --- a/docs/developer-first-node-ux.md +++ b/docs/developer-first-node-ux.md @@ -26,6 +26,17 @@ without running them. Use Load deliberately, then Reload after editing. Disable keeps the source. Registry refresh does not rewrite existing node port definitions. Code/dependency identity changes invalidate execution until Reload. +An approved custom Block's **Load Models** component fields use their own exact +lowercase 40-character revisions when you select **Install** beside a Hub model. +Another cached revision does not hide that install action; missing exact cache +evidence keeps it available. Set a literal repository and revision first: +connected, missing or mutable pins report a correction instead of downloading a +default branch. Expand a Block to install from its component loader when the +collapsed or nested control cannot prove the pin owner. Ordinary model controls +retain their catalog behavior. Alias inspection follows declared ownership only; +malformed, cyclic or excessive control chains require expansion. This installs model files only; +source approval, dependency readiness and Custom memory requirements still apply. + ## Image/audio attachment On the loader inspector, open **Workflow stage actions → Add image / audio input…**, diff --git a/scripts/graph-visuals.test.mjs b/scripts/graph-visuals.test.mjs index f6c2aebd..1d8f2c12 100644 --- a/scripts/graph-visuals.test.mjs +++ b/scripts/graph-visuals.test.mjs @@ -41,6 +41,7 @@ let graphLayout; let graphTypedHandle; let managedControlSync; let modelSelection; +let modelFieldInstall; let nodeFactory; let flowStoreModule; let nodesStoreModule; @@ -92,6 +93,7 @@ before(async () => { graphTypedHandle = await server.ssrLoadModule('/src/ui/GraphTypedHandle.tsx'); managedControlSync = await server.ssrLoadModule('/src/studio/managedControlSync.ts'); modelSelection = await server.ssrLoadModule('/src/studio/modelSelection.ts'); + modelFieldInstall = await server.ssrLoadModule('/src/utils/modelFieldInstall.ts'); nodeFactory = await server.ssrLoadModule('/src/workflow/nodeFactory.ts'); flowStoreModule = await server.ssrLoadModule('/src/stores/useFlowStore.ts'); nodesStoreModule = await server.ssrLoadModule('/src/stores/useNodeStore.ts'); @@ -8868,6 +8870,663 @@ test('model selector applies only backend class and id filters to opaque install }); }); +function customModelFieldFixture(component = 'image_annotator') { + const field = `source__${component}__repo`; + const pinField = `source__${component}__revision`; + const repo = 'component-owner/reviewed-model'; + const revision = 'b'.repeat(40); + const owner = node('component-loader'); + owner.data.module = 'custom.ReviewedBlock'; + owner.data.action = 'LoadModels'; + owner.data.params = { + [field]: { display: 'modelselect', value: { source: 'hub', value: repo } }, + [pinField]: { type: 'string', value: revision }, + revision: { type: 'string', value: 'a'.repeat(40) }, + }; + flowStoreModule.useFlowStore.setState({ nodes: [owner], edges: [] }); + return { + owner, + repo, + revision, + field, + pinField, + props: { + nodeId: owner.id, + fieldKey: field, + module: owner.data.module, + action: owner.data.action, + }, + }; +} + +test('custom component Install forwards its own immutable sibling pin, not a base revision', async () => { + const fixture = customModelFieldFixture(); + const calls = []; + await modelFieldInstall.installModelField(fixture.props, fixture.repo, 'test-session', async (...args) => + calls.push(args), + ); + assert.deepEqual(calls, [[fixture.repo, 'test-session', { revision: fixture.revision }]]); +}); + +test('another cached revision cannot hide the custom component exact-pin Install action', () => { + const fixture = customModelFieldFixture(); + assert.equal( + modelFieldInstall.modelFieldIsInstalled(fixture.props, fixture.repo, [ + { + id: fixture.repo, + installed: true, + complete: true, + planned_revision: 'c'.repeat(40), + }, + ]), + false, + ); +}); + +test('custom component Install reads the current sibling and keeps independent components separate', async () => { + const fixture = customModelFieldFixture(); + const otherField = 'source__processor__repo'; + const otherRevision = 'd'.repeat(40); + flowStoreModule.useFlowStore.getState().setParam(fixture.owner.id, fixture.pinField, 'c'.repeat(40)); + const current = flowStoreModule.useFlowStore.getState().nodes[0]; + flowStoreModule.useFlowStore.setState({ + nodes: [ + { + ...current, + data: { + ...current.data, + params: { + ...current.data.params, + [otherField]: { display: 'modelselect', value: { source: 'hub', value: fixture.repo } }, + source__processor__revision: { value: otherRevision }, + }, + }, + }, + ], + }); + const before = structuredClone(flowStoreModule.useFlowStore.getState().nodes); + const calls = []; + const install = async (...args) => calls.push(args); + await modelFieldInstall.installModelField(fixture.props, fixture.repo, null, install); + await modelFieldInstall.installModelField({ ...fixture.props, fieldKey: otherField }, fixture.repo, null, install); + assert.deepEqual(calls, [ + [fixture.repo, null, { revision: 'c'.repeat(40) }], + [fixture.repo, null, { revision: otherRevision }], + ]); + assert.deepEqual( + flowStoreModule.useFlowStore.getState().nodes, + before, + 'install inspection must not rewrite authored sources', + ); +}); + +test('custom component Install rejects absent, mutable, malformed and default-only revision pins', () => { + for (const revisionParam of [ + undefined, + {}, + { value: '' }, + { value: 'main' }, + { value: 'A'.repeat(40) }, + { value: ` ${'a'.repeat(40)}` }, + { value: { value: 'a'.repeat(40) } }, + { value: 123 }, + { default: 'a'.repeat(40) }, + ]) { + const fixture = customModelFieldFixture(); + if (revisionParam === undefined) delete fixture.owner.data.params[fixture.pinField]; + else fixture.owner.data.params[fixture.pinField] = revisionParam; + let calls = 0; + assert.throws( + () => + modelFieldInstall.installModelField(fixture.props, fixture.repo, null, () => { + calls += 1; + }), + /exact lowercase 40-character revision/, + ); + assert.equal(calls, 0); + assert.equal( + modelFieldInstall.modelFieldIsInstalled(fixture.props, fixture.repo, [{ id: fixture.repo, installed: true }]), + false, + ); + } +}); + +test('custom component Install rejects connected or dynamically supplied pins even with a stored fallback', () => { + for (const supplied of [ + { isConnected: true }, + { sourceId: 'upstream' }, + { sourceKey: 'value' }, + { signal: { direction: 'input', value: 'a'.repeat(40) } }, + ]) { + const fixture = customModelFieldFixture(); + Object.assign(fixture.owner.data.params[fixture.pinField], supplied); + assert.throws( + () => + modelFieldInstall.installModelField(fixture.props, fixture.repo, null, () => assert.fail('must not install')), + /literal component repository and revision/, + ); + } + for (const field of ['source__image_annotator__repo', 'source__image_annotator__revision']) { + const fixture = customModelFieldFixture(); + flowStoreModule.useFlowStore.setState({ + edges: [edge('connected', 'value-node', fixture.owner.id, 'output', field)], + }); + assert.throws( + () => + modelFieldInstall.installModelField(fixture.props, fixture.repo, null, () => assert.fail('must not install')), + /literal component repository and revision/, + ); + } +}); + +test('custom component Install verifies pins through a real created V2 Block and its public/crossing connections', async () => { + const creation = await server.ssrLoadModule('/src/studio/userBlockCreationV2.ts'); + const runtime = await server.ssrLoadModule('/src/studio/blockRuntimeV2.ts'); + for (const connected of [false, 'public', 'crossing', 'internal']) { + const fixture = customModelFieldFixture(); + fixture.owner.selected = true; + fixture.owner.data.params[fixture.field].type = 'string'; + const valueNode = node('value-node', 0, 0, { params: { output: { display: 'output', type: 'string' } } }); + valueNode.selected = true; + const draft = userBlocksModule.createUserBlockFromSelection( + { + nodes: connected === 'internal' ? [fixture.owner, valueNode] : [fixture.owner], + edges: + connected === 'internal' + ? [edge('internal-pin', valueNode.id, fixture.owner.id, 'output', fixture.pinField)] + : [], + }, + 'Pinned components', + ); + assert.equal(draft.ok, true); + const prepared = creation.prepareUserBlockCreationV2(draft, draft.block); + const root = prepared.graph.nodes.find((node) => node.data.blockInstanceV2); + let instance = root.data.blockInstanceV2; + const modelControl = instance.effectiveInterface.controls.find( + (control) => control.binding.fieldId === fixture.field, + ); + assert.ok(modelControl); + flowStoreModule.useFlowStore.setState(prepared.graph); + assert.throws( + () => + modelFieldInstall.installModelField( + { + nodeId: root.id, + module: root.data.module, + action: root.data.action, + fieldKey: modelControl.controlId, + }, + fixture.repo, + null, + () => assert.fail('must not install'), + ), + /Expand this Block/, + ); + const semanticId = instance.effectiveGraph.nodes.find( + (node) => node.data.module === fixture.owner.data.module, + ).nodeId; + instance = runtime.replaceBlockEffectiveInterfaceV2(instance, { + controls: instance.effectiveInterface.controls, + boundary: { + ...instance.effectiveInterface.boundary, + inputs: [ + { + portId: 'revision-in', + label: 'Revision', + valueType: 'string', + required: false, + binding: { nodeId: semanticId, fieldOrPortId: fixture.pinField }, + }, + ], + }, + }); + instance = runtime.setBlockPresentationV2(instance, { expanded: true }); + const graph = runtime.materializeBlockProjectionV2(runtime.createBlockRootNodeV2(instance)); + const projected = graph.nodes.find((node) => node.data.blockProjectionNodeId === semanticId); + assert.ok(projected.data.params[fixture.field]); + const visibleModelFields = Object.entries(projected.data.params).filter( + ([, field]) => field.display === 'modelselect' && !field.hidden, + ); + assert.equal( + visibleModelFields.length, + 1, + 'exercise the actual visible model control, not only a hidden backing field', + ); + if (connected && connected !== 'internal') { + graph.nodes.push(valueNode); + graph.edges.push( + edge( + 'outside-pin', + valueNode.id, + instance.instanceId, + 'output', + connected === 'public' ? 'revision-in' : `block-crossing:input:${semanticId}:${fixture.pinField}`, + ), + ); + } + flowStoreModule.useFlowStore.setState(graph); + const props = { ...fixture.props, nodeId: projected.id, fieldKey: visibleModelFields[0][0] }; + const calls = []; + if (connected) { + assert.throws( + () => modelFieldInstall.installModelField(props, fixture.repo, null, () => assert.fail('must not install')), + /literal component repository and revision/, + ); + } else { + await modelFieldInstall.installModelField(props, fixture.repo, null, async (...args) => calls.push(args)); + assert.deepEqual(calls, [[fixture.repo, null, { revision: fixture.revision }]]); + } + } +}); + +test('custom component Install rejects stale repository, owner and workflow controls', () => { + const fixture = customModelFieldFixture(); + assert.throws( + () => + modelFieldInstall.installModelField(fixture.props, 'other/repository', null, () => + assert.fail('must not install'), + ), + /component repository changed/, + ); + assert.throws( + () => + modelFieldInstall.installModelField({ ...fixture.props, module: 'custom.Other' }, fixture.repo, null, () => + assert.fail('must not install'), + ), + /model field changed/, + ); + const context = studioStoreModule.captureWorkflowOperationContext(); + studioStoreModule.useStudioStore.setState({ activeWorkflowTabId: 'different-workflow' }); + assert.throws( + () => + modelFieldInstall.installModelField({ ...fixture.props, workflowContext: context }, fixture.repo, null, () => + assert.fail('must not install'), + ), + /workflow changed/, + ); +}); + +test('custom component Install asks to expand a collapsed legacy control instead of guessing its pin', () => { + const fixture = customModelFieldFixture(); + fixture.owner.selected = true; + const draft = userBlocksModule.createUserBlockFromSelection( + { nodes: [fixture.owner], edges: [] }, + 'Legacy component', + ); + assert.equal(draft.ok, true); + const control = draft.block.exposedParams.find((item) => item.paramKey === fixture.field); + assert.ok(control); + flowStoreModule.useFlowStore.setState({ nodes: [draft.blockNode], edges: [] }); + assert.throws( + () => + modelFieldInstall.installModelField( + { ...fixture.props, nodeId: draft.blockNode.id, fieldKey: control.id }, + fixture.repo, + null, + () => assert.fail('must not install'), + ), + /Expand this Block/, + ); +}); + +test('nested legacy component controls require expansion rather than an unpinned fallback', () => { + const fixture = customModelFieldFixture(); + fixture.owner.selected = true; + const inner = userBlocksModule.createUserBlockFromSelection({ nodes: [fixture.owner], edges: [] }, 'Legacy inner'); + assert.equal(inner.ok, true); + inner.blockNode.selected = true; + const outer = userBlocksModule.createUserBlockFromSelection({ nodes: [inner.blockNode], edges: [] }, 'Legacy outer'); + assert.equal(outer.ok, true); + const control = outer.block.exposedParams.find( + (item) => item.display === 'modelselect' || outer.blockNode.data.params[item.id]?.display === 'modelselect', + ); + assert.ok(control); + flowStoreModule.useFlowStore.setState({ nodes: [outer.blockNode], edges: [] }); + const props = { + nodeId: outer.blockNode.id, + fieldKey: control.id, + module: outer.blockNode.data.module, + action: outer.blockNode.data.action, + }; + assert.throws( + () => modelFieldInstall.installModelField(props, fixture.repo, null, () => assert.fail('must not install')), + /Expand this Block/, + ); + assert.equal( + modelFieldInstall.modelFieldIsInstalled(props, fixture.repo, [{ id: fixture.repo, installed: true }]), + false, + ); +}); + +test('ordinary collapsed V2 model controls keep their catalog install and installed visibility', async () => { + const creation = await server.ssrLoadModule('/src/studio/userBlockCreationV2.ts'); + const owner = node('ordinary-model', 0, 0, { + params: { + model: { display: 'modelselect', type: 'string', value: { source: 'hub', value: 'owner/ordinary-model' } }, + }, + }); + owner.selected = true; + owner.data.module = 'custom.OrdinaryNode'; + owner.data.action = 'LoadOther'; + const draft = userBlocksModule.createUserBlockFromSelection({ nodes: [owner], edges: [] }, 'Ordinary model'); + assert.equal(draft.ok, true); + const graph = creation.prepareUserBlockCreationV2(draft, draft.block).graph; + const root = graph.nodes.find((node) => node.data.blockInstanceV2); + const control = root.data.blockInstanceV2.effectiveInterface.controls.find( + (item) => item.binding.fieldId === 'model', + ); + flowStoreModule.useFlowStore.setState(graph); + const props = { nodeId: root.id, module: root.data.module, action: root.data.action, fieldKey: control.controlId }; + const calls = []; + await modelFieldInstall.installModelField(props, 'owner/ordinary-model', null, async (...args) => calls.push(args)); + assert.deepEqual(calls, [['owner/ordinary-model', null]]); + assert.equal( + modelFieldInstall.modelFieldIsInstalled(props, 'owner/ordinary-model', [ + { id: 'owner/ordinary-model', installed: true }, + ]), + true, + ); + const originalBinding = structuredClone(control.binding); + const originalMirrors = control.mirrorBindings; + for (const malformed of [undefined, {}, { nodeId: '', fieldId: 'model' }]) { + control.binding = malformed; + assert.throws( + () => + modelFieldInstall.installModelField(props, 'owner/ordinary-model', null, () => assert.fail('must not install')), + /Expand this Block/, + ); + assert.equal( + modelFieldInstall.modelFieldIsInstalled(props, 'owner/ordinary-model', [ + { id: 'owner/ordinary-model', installed: true }, + ]), + false, + ); + } + control.binding = originalBinding; + control.mirrorBindings = {}; + assert.throws( + () => + modelFieldInstall.installModelField(props, 'owner/ordinary-model', null, () => assert.fail('must not install')), + /Expand this Block/, + ); + control.mirrorBindings = originalMirrors; +}); + +test('nested created V2 component model aliases cannot fall through to an unpinned install', async () => { + const creation = await server.ssrLoadModule('/src/studio/userBlockCreationV2.ts'); + const runtime = await server.ssrLoadModule('/src/studio/blockRuntimeV2.ts'); + const fixture = customModelFieldFixture(); + fixture.owner.selected = true; + fixture.owner.data.params[fixture.field].type = 'string'; + const innerDraft = userBlocksModule.createUserBlockFromSelection( + { nodes: [fixture.owner], edges: [] }, + 'Inner components', + ); + assert.equal(innerDraft.ok, true); + const inner = creation + .prepareUserBlockCreationV2(innerDraft, innerDraft.block) + .graph.nodes.find((node) => node.data.blockInstanceV2); + inner.selected = true; + const outerDraft = userBlocksModule.createUserBlockFromSelection({ nodes: [inner], edges: [] }, 'Outer components'); + assert.equal(outerDraft.ok, true); + const outer = creation + .prepareUserBlockCreationV2(outerDraft, outerDraft.block) + .graph.nodes.find((node) => node.data.blockInstanceV2); + const instance = runtime.setBlockPresentationV2(outer.data.blockInstanceV2, { expanded: true }); + const graph = runtime.materializeBlockProjectionV2(runtime.createBlockRootNodeV2(instance)); + const aliases = graph.nodes.flatMap((node) => + Object.entries(node.data.params ?? {}) + .filter(([field, param]) => field.startsWith('block-') && param.display === 'modelselect' && !param.hidden) + .map(([field]) => ({ nodeId: node.id, module: node.data.module, action: node.data.action, fieldKey: field })), + ); + assert.ok(aliases.length, 'exercise a real visible projected container alias'); + flowStoreModule.useFlowStore.setState(graph); + for (const props of aliases) { + const calls = []; + assert.throws( + () => modelFieldInstall.installModelField(props, fixture.repo, null, (...args) => calls.push(args)), + /Expand this Block|component revision/, + ); + assert.deepEqual(calls, []); + assert.equal( + modelFieldInstall.modelFieldIsInstalled(props, fixture.repo, [{ id: fixture.repo, installed: true }]), + false, + ); + } +}); + +async function nestedModelControlFixture(owner, localSurface) { + const creation = await server.ssrLoadModule('/src/studio/userBlockCreationV2.ts'); + const runtime = await server.ssrLoadModule('/src/studio/blockRuntimeV2.ts'); + owner.selected = true; + owner.data.params.test_input = { display: 'input', type: 'string' }; + const innerDraft = userBlocksModule.createUserBlockFromSelection({ nodes: [owner], edges: [] }, 'Inner model'); + assert.equal(innerDraft.ok, true); + const inner = creation + .prepareUserBlockCreationV2(innerDraft, innerDraft.block) + .graph.nodes.find((item) => item.data.blockInstanceV2); + let instance = inner.data.blockInstanceV2; + let containerId; + if (localSurface) { + inner.selected = true; + const sibling = node('composition-sibling', 300, 0, { params: { output: { display: 'output', type: 'string' } } }); + sibling.selected = true; + const input = instance.effectiveInterface.boundary.inputs.find( + (port) => port.binding.fieldOrPortId === 'test_input', + ); + assert.ok(input); + const outerDraft = creation.createUserBlockDraftV2( + { + nodes: [inner, sibling], + edges: [ + { + id: 'composition-wire', + source: sibling.id, + sourceHandle: 'output', + target: inner.id, + targetHandle: input.portId, + }, + ], + }, + [], + ); + assert.equal(outerDraft.ok, true, JSON.stringify(outerDraft)); + const outer = creation + .prepareUserBlockCreationV2(outerDraft, outerDraft.block) + .graph.nodes.find((item) => item.data.blockInstanceV2); + instance = outer.data.blockInstanceV2; + containerId = instance.effectiveGraph.nodes.find((item) => item.containerInterface)?.nodeId; + assert.ok(containerId, 'normal composition retains the embedded Block interface'); + } else { + // Use the same structural-edit functions as native graph edits; no fabricated Block hash or alias. + containerId = 'ordinary-container'; + instance = runtime.addBlockEffectiveGraphNodeV2(instance, { + nodeId: containerId, + nodeType: 'group', + data: { label: 'Nested group', params: {} }, + }); + instance = runtime.replaceBlockEffectiveGraphV2(instance, { + ...instance.effectiveGraph, + nodes: instance.effectiveGraph.nodes.map((item) => + item.nodeId === owner.id ? { ...item, parentNodeId: containerId } : item, + ), + }); + } + instance = runtime.setBlockPresentationV2(instance, { expanded: true, collapsedContainerNodeIds: [containerId] }); + const graph = runtime.materializeBlockProjectionV2(runtime.createBlockRootNodeV2(instance)); + const prefix = localSurface ? 'block-local-control:' : 'block-control:'; + const aliases = graph.nodes.flatMap((item) => + Object.entries(item.data.params ?? {}) + .filter(([field, param]) => field.startsWith(prefix) && param.display === 'modelselect' && !param.hidden) + .map(([field]) => ({ nodeId: item.id, module: item.data.module, action: item.data.action, fieldKey: field })), + ); + assert.ok(aliases.length, `normal projection creates visible ${prefix} aliases`); + flowStoreModule.useFlowStore.setState(graph); + return { graph, aliases }; +} + +for (const localSurface of [false, true]) { + test(`nested V2 ${localSurface ? 'local-container' : 'root-bound'} model aliases preserve ordinary catalog behavior`, async () => { + const owner = node('ordinary-nested-model', 0, 0, { + params: { + model: { display: 'modelselect', type: 'string', value: { source: 'hub', value: 'owner/ordinary-model' } }, + }, + }); + owner.data.module = 'custom.OrdinaryNode'; + owner.data.action = 'LoadOther'; + const { graph, aliases } = await nestedModelControlFixture(owner, localSurface); + const before = structuredClone(graph); + for (const props of aliases) { + const calls = []; + await modelFieldInstall.installModelField(props, 'owner/ordinary-model', null, async (...args) => + calls.push(args), + ); + assert.deepEqual(calls, [['owner/ordinary-model', null]]); + assert.equal( + modelFieldInstall.modelFieldIsInstalled(props, 'owner/ordinary-model', [ + { id: 'owner/ordinary-model', installed: true }, + ]), + true, + ); + } + assert.deepEqual(flowStoreModule.useFlowStore.getState().nodes, before.nodes); + }); + + test(`nested V2 ${localSurface ? 'local-container' : 'root-bound'} component aliases fail closed with malformed ownership`, async () => { + const fixture = customModelFieldFixture(); + fixture.owner.data.params[fixture.field].type = 'string'; + const { graph, aliases } = await nestedModelControlFixture(fixture.owner, localSurface); + for (const props of aliases) { + const calls = []; + assert.throws( + () => modelFieldInstall.installModelField(props, fixture.repo, null, (...args) => calls.push(args)), + /Expand this Block/, + ); + assert.deepEqual(calls, []); + assert.equal( + modelFieldInstall.modelFieldIsInstalled(props, fixture.repo, [{ id: fixture.repo, installed: true }]), + false, + ); + const param = graph.nodes.find((item) => item.id === props.nodeId).data.params[props.fieldKey]; + const meta = localSurface ? param.fieldOptions.blockContainerControlV1 : param.fieldOptions.blockBindingV2; + const ownerId = meta.ownerId; + meta.ownerId = 'wrong-instance'; + assert.throws( + () => modelFieldInstall.installModelField(props, fixture.repo, null, () => assert.fail('must not install')), + /Expand this Block/, + ); + meta.ownerId = ownerId; + const metadataKey = localSurface ? 'blockContainerControlV1' : 'blockBindingV2'; + delete param.fieldOptions[metadataKey]; + assert.throws( + () => modelFieldInstall.installModelField(props, fixture.repo, null, () => assert.fail('must not install')), + /Expand this Block/, + ); + param.fieldOptions[metadataKey] = meta; + } + const root = graph.nodes.find((item) => item.data.blockInstanceV2); + const container = root.data.blockInstanceV2.effectiveGraph.nodes.find((item) => item.nodeType === 'group'); + assert.ok(container); + container.parentNodeId = container.nodeId; + assert.throws( + () => modelFieldInstall.installModelField(aliases[0], fixture.repo, null, () => assert.fail('must not install')), + /Cyclic|Expand this Block/, + ); + assert.equal( + modelFieldInstall.modelFieldIsInstalled(aliases[0], fixture.repo, [{ id: fixture.repo, installed: true }]), + false, + ); + }); +} + +test('custom component Install rejects malformed Hub choices and stale custom-owner metadata', () => { + const fixture = customModelFieldFixture(); + for (const choice of [ + null, + 'owner/model', + { source: 'local', value: fixture.repo }, + { source: 'hub', value: null }, + ]) { + fixture.owner.data.params[fixture.field].value = choice; + assert.throws( + () => + modelFieldInstall.installModelField(fixture.props, fixture.repo, null, () => assert.fail('must not install')), + /component repository changed/, + ); + } + fixture.owner.data.params[fixture.field].value = { source: 'hub', value: fixture.repo }; + for (const module of [null, {}, 'custom.OtherOwner']) { + fixture.owner.data.module = module; + assert.throws( + () => + modelFieldInstall.installModelField(fixture.props, fixture.repo, null, () => assert.fail('must not install')), + /model field changed/, + ); + } +}); + +test('custom component cache visibility requires exact positive revision evidence', () => { + const fixture = customModelFieldFixture(); + for (const record of [ + { id: fixture.repo, installed: true }, + { id: fixture.repo, complete: true }, + { id: fixture.repo, planned_revision: fixture.revision }, + { id: fixture.repo, complete: false, installed: false, planned_revision: fixture.revision }, + { id: fixture.repo, installed: true, complete: true, repair_required: true, planned_revision: fixture.revision }, + ]) { + assert.equal(modelFieldInstall.modelFieldIsInstalled(fixture.props, fixture.repo, [record]), false); + } + assert.equal( + modelFieldInstall.modelFieldIsInstalled(fixture.props, fixture.repo, [ + { + id: fixture.repo, + installed: true, + complete: true, + planned_revision: fixture.revision, + }, + ]), + true, + ); + flowStoreModule.useFlowStore.getState().setParam(fixture.owner.id, fixture.pinField, 'c'.repeat(40)); + assert.equal( + modelFieldInstall.modelFieldIsInstalled(fixture.props, fixture.repo, [ + { + id: fixture.repo, + installed: true, + complete: true, + planned_revision: fixture.revision, + }, + ]), + false, + 'changing only the sibling revision must expose Install again', + ); +}); + +test('ordinary unpinned model fields retain their existing catalog install and cache behavior', async () => { + for (const [module, action, field] of [ + ['modules.DiffusersImage', 'LoadPipeline', 'model_id'], + ['custom.OrdinaryNode', 'LoadOther', 'model'], + ['modules.ModularDiffusers', 'AutoModelLoader', 'model_id'], + ]) { + const owner = node('ordinary-loader'); + Object.assign(owner.data, { + module, + action, + params: { [field]: { display: 'modelselect', value: { source: 'hub', value: 'owner/model' } } }, + }); + flowStoreModule.useFlowStore.setState({ nodes: [owner], edges: [] }); + const props = { nodeId: owner.id, fieldKey: field, module, action }; + const calls = []; + await modelFieldInstall.installModelField(props, 'owner/model', null, async (...args) => calls.push(args)); + assert.deepEqual(calls, [['owner/model', null]]); + assert.equal(modelFieldInstall.modelFieldIsInstalled(props, 'owner/model', [{ id: 'owner/model' }]), true); + assert.equal( + modelFieldInstall.modelFieldIsInstalled(props, 'owner/model', [{ id: 'owner/model', installed: false }]), + false, + ); + } +}); + test('model selector contains no client-owned model-family inference', () => { const selectionSource = fs.readFileSync(path.join(ROOT, 'src', 'studio', 'modelSelection.ts'), 'utf8'); const fieldSource = fs.readFileSync(path.join(ROOT, 'src', 'fields', 'ModelSelectField.tsx'), 'utf8'); @@ -8883,6 +9542,8 @@ test('model selector subscribes to discovered indexes and preserves the selected assert.doesNotMatch(source, /useNodesStore\.getState\(\)/); assert.match(source, /hfCache: state\.hfCache/); assert.match(source, /localModels: state\.localModels/); + assert.match(source, /await installModelField\(props, currentModelId, sid, installHfModel\)/); + assert.match(source, /modelFieldIsInstalled\(props, currentModelId, hfCache, fieldGraph\)/); const refreshBody = source.match(/const handleRefresh = async \(\) => \{[\s\S]*?\n \};/)?.[0] ?? ''; assert.doesNotMatch(refreshBody, /updateStore\([^,]+,\s*\{[^}]*value/); }); diff --git a/src/fields/ModelSelectField.tsx b/src/fields/ModelSelectField.tsx index 138ed0f9..d354afc4 100644 --- a/src/fields/ModelSelectField.tsx +++ b/src/fields/ModelSelectField.tsx @@ -18,7 +18,6 @@ import { isHfDownloadActive } from '../studio/modelInstall'; import { compatibleInstalledHubModels, compatibleInstalledLocalModels, - indexedHubModelIsInstalled, parseModelSelectionFilters, } from '../studio/modelSelection'; import { FieldFrame, ModiffButton, ModiffDialog, ModiffSearchInput } from '../ui'; @@ -26,13 +25,7 @@ import { GraphIconButton } from '../ui/GraphControls'; import { enqueueSnackbar } from '../ui/snackbar'; import fieldAction, { fieldActionSource } from '../utils/fieldAction'; import { useInitialFieldAction } from '../utils/useInitialFieldAction'; - -type HfCacheItem = { - id?: unknown; - class_names?: unknown; - installed?: unknown; - complete?: unknown; -}; +import { installModelField, modelFieldIsInstalled } from '../utils/modelFieldInstall'; type ModelSource = 'hub' | 'local'; type ModelFieldValue = { source: ModelSource; value: unknown }; @@ -89,6 +82,19 @@ export default function ModelSelectField(props: FieldProps) { } function RawModelSelectField(props: FieldProps) { + const fieldScope = useFlowStore( + useShallow((state) => { + const owner = state.nodes.find((node) => node.id === props.nodeId); + const blockOwner = owner?.data.blockProjectionOwnerId + ? state.nodes.find((node) => node.id === owner.data.blockProjectionOwnerId) + : undefined; + return { owner, blockOwner, edges: state.edges }; + }), + ); + const fieldGraph = { + nodes: [fieldScope.owner, fieldScope.blockOwner].filter((node) => node !== undefined), + edges: fieldScope.edges, + }; const [pickerOpen, setPickerOpen] = useState(false); const [pickerQuery, setPickerQuery] = useState(''); const [pickerError, setPickerError] = useState(null); @@ -141,17 +147,11 @@ function RawModelSelectField(props: FieldProps) { }), [localFilter.className, localFilter.id, localFilter.valid, localModels], ); - const currentInstalled = useMemo(() => { - if (!currentModelId) return false; - if (sourceType === 'local') return localModels.some((item) => item === currentModelId); - return hfCache.some( - (item) => - Boolean(item && typeof item === 'object') && - typeof (item as HfCacheItem).id === 'string' && - (item as HfCacheItem).id === currentModelId && - indexedHubModelIsInstalled(item as HfCacheItem), - ); - }, [currentModelId, hfCache, localModels, sourceType]); + const currentInstalled = currentModelId + ? sourceType === 'local' + ? localModels.some((item) => item === currentModelId) + : modelFieldIsInstalled(props, currentModelId, hfCache, fieldGraph) + : false; const currentOptions = sourceType === 'hub' ? hubOptions : localModelOptions; const pickerOptions = currentOptions.filter((id) => id.toLowerCase().includes(pickerQuery.trim().toLowerCase())); const installProgress = currentModelId ? hfDownloadProgress[currentModelId] : undefined; @@ -197,7 +197,7 @@ function RawModelSelectField(props: FieldProps) { const handleInstall = async () => { if (!currentModelId || sourceType !== 'hub' || installActive) return; try { - await installHfModel(currentModelId, sid); + await installModelField(props, currentModelId, sid, installHfModel); enqueueSnackbar(`${currentModelId} installed`, { variant: 'success', autoHideDuration: 2200 }); } catch (error) { enqueueSnackbar(error instanceof Error ? error.message : `Could not install ${currentModelId}`, { diff --git a/src/utils/fieldAction.ts b/src/utils/fieldAction.ts index cd6c4d60..79516ae3 100644 --- a/src/utils/fieldAction.ts +++ b/src/utils/fieldAction.ts @@ -124,8 +124,10 @@ export function buildFieldActionProps(nodeId: string, fieldKey: string): FieldPr } /** Resolve the live field owner without accepting a stale or unrelated control. */ -export function fieldActionSource(props: Pick) { - const nodes = useFlowStore.getState().nodes; +export function fieldActionSource( + props: Pick, + nodes = useFlowStore.getState().nodes, +) { const direct = nodes.find((candidate) => candidate.id === props.nodeId); const directMatches = direct?.data.module === props.module && direct.data.action === props.action; const source = diff --git a/src/utils/modelFieldInstall.ts b/src/utils/modelFieldInstall.ts new file mode 100644 index 00000000..d3ef2468 --- /dev/null +++ b/src/utils/modelFieldInstall.ts @@ -0,0 +1,248 @@ +import type { Edge } from '@xyflow/react'; +import type { FieldProps } from '../components/NodeContent'; +import { useFlowStore, type CustomNodeType } from '../stores/useFlowStore'; +import type { useNodesStore } from '../stores/useNodeStore'; +import { workflowOperationContextIsCurrent } from '../stores/useStudioStore'; +import { blockConnectionTargetsV2 } from '../studio/blockCrossingConnectionsV2'; +import { + blockContainerControlTargetsV1, + blockContainerFieldV1, + blockContainerInterfaceV1, +} from '../studio/blockContainerInterfaceV1'; +import { blockGraphParentIdsV2, type BlockControlV2 } from '../studio/blockSchemaV2'; +import { getRepoCacheStatus } from '../studio/modelCache'; +import { indexedHubModelIsInstalled } from '../studio/modelSelection'; +import { fieldActionSource } from './fieldAction'; + +type InstallField = Pick; +type Installer = ReturnType['installHfModel']; +type FieldGraph = { nodes: CustomNodeType[]; edges: Edge[] }; + +function connectedField(node: CustomNodeType, field: string, graph: FieldGraph) { + const param = node.data.params[field]; + if (param?.isConnected || param?.signal?.direction === 'input') return true; + if (param && ('sourceId' in param || 'sourceKey' in param)) return true; + if (graph.edges.some((edge) => edge.target === node.id && edge.targetHandle === field)) return true; + const semanticId = node.data.blockProjectionNodeId; + const owner = graph.nodes.find((candidate) => candidate.id === node.data.blockProjectionOwnerId); + const instance = owner?.data.blockInstanceV2; + if (!semanticId || !owner || !instance) return false; + if (instance.effectiveGraph.edges.some((edge) => edge.targetNodeId === semanticId && edge.targetPortId === field)) + return true; + return graph.edges.some( + (edge) => + edge.target === owner.id && + edge.targetHandle && + blockConnectionTargetsV2(owner, edge.targetHandle, 'input').some( + (target) => target.nodeId === semanticId && target.fieldOrPortId === field, + ), + ); +} + +function record(value: unknown): value is Record { + return Boolean(value && typeof value === 'object' && !Array.isArray(value)); +} + +function expandRequired(): never { + throw new Error('Expand this Block to verify its component revision before installing.'); +} + +function modelControlTargets(control: Pick) { + if (!record(control.binding) || (control.mirrorBindings !== undefined && !Array.isArray(control.mirrorBindings))) + expandRequired(); + const targets = blockContainerControlTargetsV1(control); + if ( + !targets.length || + targets.some( + (target) => + !record(target) || + typeof target.nodeId !== 'string' || + !target.nodeId || + typeof target.fieldId !== 'string' || + !target.fieldId, + ) + ) + expandRequired(); + return targets; +} + +/** Classify only declared control targets; aliased component pins require their expanded owner. */ +function ordinaryBlockModelControl(props: InstallField, graph: FieldGraph) { + const node = graph.nodes.find((entry) => entry.id === props.nodeId); + if (!node || node.data.module !== props.module || node.data.action !== props.action) return false; + const param = node.data.params[props.fieldKey]; + const local = param?.fieldOptions?.blockContainerControlV1; + const binding = param?.fieldOptions?.blockBindingV2; + const owner = node.data.blockInstanceV2 + ? node + : graph.nodes.find((entry) => entry.id === node.data.blockProjectionOwnerId); + const instance = owner?.data.blockInstanceV2; + const roots = instance?.effectiveInterface.controls.filter((entry) => entry.controlId === props.fieldKey) ?? []; + const ownField = + record(binding) && binding.nodeId === node.data.blockProjectionNodeId && binding.fieldOrPortId === props.fieldKey; + const aliased = + local !== undefined || (binding !== undefined && !ownField) || /^block-(?:local-)?control:/u.test(props.fieldKey); + if (!roots.length && !aliased) return false; + if (!instance || (aliased && (!param || param.display !== 'modelselect'))) expandRequired(); + // Validate parent ownership before the existing inherited-interface resolver traverses it. + blockGraphParentIdsV2(instance.effectiveGraph); + const nodes = new Map(instance.effectiveGraph.nodes.map((entry) => [entry.nodeId, entry])); + if (nodes.size !== instance.effectiveGraph.nodes.length) expandRequired(); + let controls: Pick[]; + if (local !== undefined) { + if ( + !record(local) || + local.schemaVersion !== 1 || + local.ownerId !== instance.instanceId || + local.containerNodeId !== node.data.blockProjectionNodeId || + typeof local.controlId !== 'string' + ) + expandRequired(); + controls = blockContainerInterfaceV1(instance, String(local.containerNodeId)).controls.filter( + (entry) => entry.controlId === local.controlId, + ); + } else if (binding !== undefined) { + if ( + !record(binding) || + binding.schemaVersion !== 2 || + binding.ownerId !== instance.instanceId || + binding.direction !== 'control' || + typeof binding.logicalId !== 'string' + ) + expandRequired(); + controls = instance.effectiveInterface.controls.filter((entry) => entry.controlId === binding.logicalId); + if ( + controls.length !== 1 || + !controls[0] || + controls[0].binding.nodeId !== binding.nodeId || + controls[0].binding.fieldId !== binding.fieldOrPortId + ) + expandRequired(); + } else { + if (node.id !== instance.instanceId) expandRequired(); + controls = roots; + } + const control = controls.length === 1 ? controls[0] : undefined; + if (!control) expandRequired(); + const pending = modelControlTargets(control).map((target) => ({ target, path: new Set() })); + const visited = new Set(); + let count = 0; + while (pending.length) { + const { target, path } = pending.pop()!; + const key = `${target.nodeId}\0${target.fieldId}`; + // Aliases are untrusted persisted metadata. Refuse ambiguous/cyclic or excessive traversal. + if (path.has(key) || path.size >= 64 || ++count > 1024) expandRequired(); + if (visited.has(key)) continue; + visited.add(key); + const source = nodes.get(target.nodeId); + if (!source) expandRequired(); + if ( + typeof source.data.module === 'string' && + source.data.module.startsWith('custom.') && + source.data.action === 'LoadModels' && + target.fieldId.startsWith('source__') + ) + expandRequired(); + if (source.containerInterface || source.nodeType === 'group') { + const nested = blockContainerInterfaceV1(instance, source.nodeId).controls.filter( + (entry) => entry.controlId === target.fieldId, + ); + const child = nested.length === 1 ? nested[0] : undefined; + if (!child) expandRequired(); + const nextPath = new Set([...path, key]); + pending.push(...modelControlTargets(child).map((next) => ({ target: next, path: nextPath }))); + continue; + } + const field = blockContainerFieldV1(source, target.fieldId); + if ( + !field || + field.display !== 'modelselect' || + typeof source.data.module !== 'string' || + typeof source.data.action !== 'string' || + source.data.userBlockSnapshot || + source.data.blockInstanceV2 + ) + expandRequired(); + } + return true; +} + +function componentRevision(props: InstallField, repo: string, graph: FieldGraph) { + if (ordinaryBlockModelControl(props, graph)) return undefined; + const source = fieldActionSource(props, graph.nodes); + if (!source?.param || typeof source.node.data.module !== 'string' || typeof source.node.data.action !== 'string') + throw new Error('This model field changed. Reopen its controls before installing.'); + if (source.node.data.userBlockSnapshot || source.node.data.blockInstanceV2) expandRequired(); + if (source.node.data.module.startsWith('custom.') && source.node.data.action === 'LoadModels') { + // The approved generic component supplier owns these sibling source fields. + // A base/catalog revision or another component's pin is never a fallback. + const component = /^source__([A-Za-z_][A-Za-z0-9_]{0,127})__repo$/u.exec(source.fieldKey); + if (component) { + if (!graph.nodes.some((node) => node.id === source.node.id)) + throw new Error('Expand this Block to verify its component revision before installing.'); + const revisionField = source.fieldKey.slice(0, -'repo'.length) + 'revision'; + const pin = source.node.data.params[revisionField]; + if (connectedField(source.node, source.fieldKey, graph) || connectedField(source.node, revisionField, graph)) + throw new Error( + 'Model installation requires a literal component repository and revision. Disconnect their input wires first.', + ); + const choice = source.param.value ?? source.param.default; + if ( + !choice || + typeof choice !== 'object' || + !('source' in choice) || + choice.source !== 'hub' || + !('value' in choice) || + choice.value !== repo + ) + throw new Error('This component repository changed. Reopen its controls before installing.'); + if (!pin || typeof pin.value !== 'string' || !/^[a-f0-9]{40}$/u.test(pin.value)) + throw new Error(`Select an exact lowercase 40-character revision for ${component[1]} before installing.`); + return pin.value; + } + if (source.fieldKey.startsWith('source__')) + throw new Error('This component source field is invalid. Reload its approved node definition.'); + } + return undefined; +} + +/** Explicit Install resolves the current owning field, never a rendered stale pin. */ +export function installModelField(props: InstallField, repo: string, sid: string | null, install: Installer) { + if (props.workflowContext && !workflowOperationContextIsCurrent(props.workflowContext, { includeForm: false })) + throw new Error('This workflow changed. Reopen its model controls before installing.'); + const revision = componentRevision(props, repo, useFlowStore.getState()); + return revision ? install(repo, sid, { revision }) : install(repo, sid); +} + +/** Missing exact cache evidence leaves the explicit pinned Install action available. */ +export function modelFieldIsInstalled( + props: InstallField, + repo: string, + cache: unknown[], + graph: FieldGraph = useFlowStore.getState(), +) { + try { + const revision = componentRevision(props, repo, graph); + if (revision) { + const entry = cache.find((item) => item && typeof item === 'object' && 'id' in item && item.id === repo); + if ( + !entry || + typeof entry !== 'object' || + !(('complete' in entry && entry.complete === true) || ('installed' in entry && entry.installed === true)) + ) + return false; + return getRepoCacheStatus(repo, cache, [], null, { revision }).installed; + } + return cache.some( + (item) => + item !== null && + typeof item === 'object' && + 'id' in item && + item.id === repo && + indexedHubModelIsInstalled(item), + ); + } catch { + // The click reports the pin/ownership error; an unproved selection is never installed. + return false; + } +} From c6bf85a55f144630fd31e8d4d4e3afc95441e609 Mon Sep 17 00:00:00 2001 From: Sourav Das Date: Wed, 28 Oct 2026 21:03:44 +0530 Subject: [PATCH 097/440] Isolate workspace checkpoints between browser pages --- docs/modiff-client-architecture.md | 18 + package.json | 2 +- scripts/block-renderer-v2.test.mjs | 8 + scripts/flow-graph-mutations.test.mjs | 13 +- scripts/graph-visuals.test.mjs | 49 +++ scripts/page-workspace-checkpoint.test.mjs | 321 ++++++++++++++++++ .../registered-block-v2-insertion.test.mjs | 13 +- scripts/run-activity.test.mjs | 38 ++- scripts/studio-output-requests.test.mjs | 16 +- scripts/template-gallery-runner.mjs | 1 + scripts/template-gallery-runner.test.mjs | 49 +++ .../weight-format-template-binding.test.mjs | 19 +- .../workflow-library-ephemeral-storage.mjs | 3 +- src/stores/useFlowStore.ts | 6 +- src/stores/useStudioStore.ts | 6 +- src/utils/checkpointStorage.ts | 93 ++++- tests/e2e/live-backend/live-backend.spec.ts | 3 +- tests/e2e/studio-mocked/studio-mocked.spec.ts | 38 +-- 18 files changed, 628 insertions(+), 68 deletions(-) create mode 100644 scripts/page-workspace-checkpoint.test.mjs diff --git a/docs/modiff-client-architecture.md b/docs/modiff-client-architecture.md index 2b5e07fe..d24f9d0b 100644 --- a/docs/modiff-client-architecture.md +++ b/docs/modiff-client-architecture.md @@ -1944,3 +1944,21 @@ workflow graphs carry the exact `weight_format` field into the complete backend workflow Auto plan; only that plan can admit a declared format and workload. Native-only plans cannot be reused as format-specific readiness or hardware-fit evidence. + +## Browser page workspace checkpoints + +Studio workflow tabs, the active document/form and the Flow canvas checkpoint use +`sessionStorage`, so another app page's welcome/output refresh cannot overwrite +the workspace restored on reload. Settings continue using shared `localStorage`. +When a page has no checkpoint, it recovers exact bytes once from the current +`modiff.studio`/`modiff.flow` shared keys before trying `studio`/`reactflow` aliases. +The page keeps a per-key recovery marker; clearing its checkpoint does not revive +an old shared document on reload. Shared recovery bytes are never overwritten or +removed. Existing document normalization and dirty-workflow retention still apply. +A blocked/full session store keeps live editing usable and shows the existing +Save/export warning; it never falls back to shared workspace writes. Session +checkpoints survive page reload. Saved workflows and server-backed drafts remain +available after app/server restart; closed-page or browser-session recovery uses +saved workflows/exports, with no promise to restore a closed page's unsaved tab +roster. Legacy import can recover only the retained historical shared snapshot, +not values that an older page already overwrote. diff --git a/package.json b/package.json index 0f219ab8..34dfe5fc 100644 --- a/package.json +++ b/package.json @@ -100,7 +100,7 @@ "test:run-activity": "node --test scripts/run-activity.test.mjs", "test:template-input-preview": "node --test scripts/template-input-preview.test.mjs", "test:asset-storage": "node --test scripts/template-assets.test.mjs && node scripts/run-python.mjs scripts/template-gallery-assets.test.py", - "test:workflow-save": "node --test scripts/workflow-save.test.mjs scripts/workflow-backend-sync.test.mjs scripts/workflow-hydration-lifecycle.test.mjs scripts/workflow-document-origin.test.mjs scripts/workflow-package-import-title.test.mjs", + "test:workflow-save": "node --test scripts/workflow-save.test.mjs scripts/page-workspace-checkpoint.test.mjs scripts/workflow-backend-sync.test.mjs scripts/workflow-hydration-lifecycle.test.mjs scripts/workflow-document-origin.test.mjs scripts/workflow-package-import-title.test.mjs", "test:styles": "node --test scripts/modiff-style.test.mjs", "test:unit": "npm run test:styles && npm run test:templates && npm run test:task-templates && npm run test:template-quality && npm run gallery:card-coverage && npm run test:release-contract && npm run test:live-qwen-proof && npm run test:gallery-harness && npm run test:gallery-runner && node --test scripts/generation-campaign-retry-ledger.test.mjs && npm run test:gallery-queue && npm run test:driver-contract && npm run test:hugging-face-node-library && npm run test:modular-hierarchy-v2 && npm run test:block-schema-v2 && npm run test:block-route-selection-v1 && npm run test:block-runtime-v2 && npm run test:block-renderer-v2 && npm run test:block-persistence-v2 && npm run test:composite-migration-ui && npm run test:legacy-cluster-recovery-audit && npm run test:composite-block-capabilities-v2 && npm run test:registered-block-v2-adapter && npm run test:hugging-face-cluster-drag && npm run test:graph-export && npm run test:graph-mutations && npm run test:graph-visuals && npm run test:media-viewer && npm run test:requests && npm run test:run-coordinator && npm run test:run-activity && npm run test:template-input-preview && npm run test:asset-storage && npm run test:workflow-save", "typecheck": "tsc -b --pretty false", diff --git a/scripts/block-renderer-v2.test.mjs b/scripts/block-renderer-v2.test.mjs index 3075ed65..4b849903 100644 --- a/scripts/block-renderer-v2.test.mjs +++ b/scripts/block-renderer-v2.test.mjs @@ -35,9 +35,16 @@ before(async () => { removeItem: (key) => storage.delete(key), setItem: (key, value) => storage.set(key, String(value)), }; + const sessionValuesForPage = new Map(); + globalThis.sessionStorage = { + getItem: (key) => sessionValuesForPage.get(key) ?? null, + setItem: (key, value) => sessionValuesForPage.set(key, String(value)), + removeItem: (key) => sessionValuesForPage.delete(key), + }; globalThis.window = { dispatchEvent: () => true, localStorage: globalThis.localStorage, + sessionStorage: globalThis.sessionStorage, location: { origin: 'http://127.0.0.1:5191' }, }; server = await createServer({ @@ -68,6 +75,7 @@ after(async () => { await server?.close(); delete globalThis.window; delete globalThis.localStorage; + delete globalThis.sessionStorage; }); beforeEach(() => { diff --git a/scripts/flow-graph-mutations.test.mjs b/scripts/flow-graph-mutations.test.mjs index 58efcf60..396ba8e3 100644 --- a/scripts/flow-graph-mutations.test.mjs +++ b/scripts/flow-graph-mutations.test.mjs @@ -28,9 +28,16 @@ before(async () => { removeItem: (key) => storage.delete(key), setItem: (key, value) => storage.set(key, String(value)), }; + const sessionValues = new Map(); + globalThis.sessionStorage = { + getItem: (key) => sessionValues.get(key) ?? null, + setItem: (key, value) => sessionValues.set(key, String(value)), + removeItem: (key) => sessionValues.delete(key), + }; globalThis.window = { dispatchEvent: () => true, localStorage: globalThis.localStorage, + sessionStorage: globalThis.sessionStorage, location: { origin: 'http://127.0.0.1:5191' }, }; server = await createServer({ @@ -144,7 +151,7 @@ for (const method of ['updateCacheStatus', 'resetStatus']) { undefined, 'cache snapshot is never workflow authority', ); - const persisted = JSON.parse(globalThis.localStorage.getItem('modiff.flow')); + const persisted = JSON.parse(globalThis.sessionStorage.getItem('modiff.flow')); assert.equal( persisted.state.runtimeCachedNodeIds, undefined, @@ -1347,7 +1354,7 @@ test('terminal cleanup is task-scoped and durable graph snapshots never retain e assert.equal(durableCleared.data.params.output.artifacts, undefined); assert.equal(durableCleared.data.params.output.signal.value, undefined); - const persisted = JSON.parse(globalThis.localStorage.getItem('modiff.flow')).state; + const persisted = JSON.parse(globalThis.sessionStorage.getItem('modiff.flow')).state; const persistedActive = persisted.nodes.find((item) => item.id === 'newer-task-node'); assert.equal(persistedActive.data.progress, undefined); assert.equal(persistedActive.data.activeTaskId, undefined); @@ -1401,7 +1408,7 @@ test('persisted flow hydration versions, strips behavior, and filters malformed onSignal: { action: 'value', target: 'persisted_target' }, }, }); - globalThis.localStorage.setItem( + globalThis.sessionStorage.setItem( 'modiff.flow', JSON.stringify({ version: 1, diff --git a/scripts/graph-visuals.test.mjs b/scripts/graph-visuals.test.mjs index 1d8f2c12..97e112df 100644 --- a/scripts/graph-visuals.test.mjs +++ b/scripts/graph-visuals.test.mjs @@ -1,3 +1,4 @@ +import { runInNewContext } from 'node:vm'; import assert from 'node:assert/strict'; import { after, before, beforeEach, test } from 'node:test'; import { EventEmitter } from 'node:events'; @@ -10202,6 +10203,54 @@ test('canonical workflow generation persists the final layout and library open d assert.match(verifier, /video-upscale graph is missing its exact reviewed artifact or route/); }); +test('canonical generation suppresses workspace checkpoints in both browser storage scopes', async () => { + let initialize; + await installEphemeralWorkflowStorage({ + addInitScript: async (script) => { + initialize = script; + }, + route: async () => {}, + }); + class MemoryStorage { + values = new Map(); + getItem(key) { + return this.values.get(key) ?? null; + } + setItem(key, value) { + this.values.set(key, String(value)); + } + removeItem(key) { + this.values.delete(key); + } + } + const shared = new MemoryStorage(); + const session = new MemoryStorage(); + const workspaceKeys = ['modiff.studio', 'modiff.flow']; + for (const target of [shared, session]) { + for (const key of workspaceKeys) target.setItem(key, 'previous test workspace'); + target.setItem('modiff.settings', 'preserved preferences'); + } + shared.setItem('studio', 'legacy recovery retained'); + shared.setItem('reactflow', 'legacy flow retained'); + runInNewContext(`(${initialize.toString()})()`, { + Storage: MemoryStorage, + localStorage: shared, + sessionStorage: session, + }); + for (const target of [shared, session]) { + for (const key of workspaceKeys) { + assert.equal(target.getItem(key), null, 'remove prior owned-test workspace bytes'); + target.setItem(key, 'generated graph must stay ephemeral'); + assert.equal(target.getItem(key), null, 'block generated workspace writes in both scopes'); + } + assert.equal(target.getItem('modiff.settings'), 'preserved preferences'); + target.setItem('modiff.settings', 'updated preferences'); + assert.equal(target.getItem('modiff.settings'), 'updated preferences'); + } + assert.equal(shared.getItem('studio'), 'legacy recovery retained'); + assert.equal(shared.getItem('reactflow'), 'legacy flow retained'); +}); + test('canonical generation isolates browser and backend workflow persistence', async () => { const initScripts = []; const routes = []; diff --git a/scripts/page-workspace-checkpoint.test.mjs b/scripts/page-workspace-checkpoint.test.mjs new file mode 100644 index 00000000..6cd0849d --- /dev/null +++ b/scripts/page-workspace-checkpoint.test.mjs @@ -0,0 +1,321 @@ +import assert from 'node:assert/strict'; +import { after, test } from 'node:test'; +import path from 'node:path'; +import { fileURLToPath } from 'node:url'; +import { createServer } from 'vite'; + +const ROOT = path.resolve(path.dirname(fileURLToPath(import.meta.url)), '..'); +const servers = []; +const originalFetch = globalThis.fetch; + +function storage() { + const values = new Map(); + return { + values, + getItem: (key) => values.get(key) ?? null, + setItem: (key, value) => values.set(key, String(value)), + removeItem: (key) => values.delete(key), + }; +} + +function activate(page) { + globalThis.window = page.window; + globalThis.localStorage = page.window.localStorage; + globalThis.sessionStorage = page.window.sessionStorage; + globalThis.location = page.window.location; +} + +async function page(local, session = storage()) { + const context = { + window: { localStorage: local, sessionStorage: session, location: { origin: 'http://127.0.0.1:5191' } }, + }; + activate(context); + const server = await createServer({ + root: ROOT, + configFile: false, + logLevel: 'silent', + cacheDir: path.join(ROOT, 'node_modules', `.vite-page-checkpoint-${servers.length}`), + optimizeDeps: { entries: [], noDiscovery: true }, + server: { middlewareMode: true, watch: null }, + appType: 'custom', + }); + servers.push(server); + context.studio = (await server.ssrLoadModule('/src/stores/useStudioStore.ts')).useStudioStore; + context.flow = (await server.ssrLoadModule('/src/stores/useFlowStore.ts')).useFlowStore; + context.settings = (await server.ssrLoadModule('/src/stores/useSettingsStore.ts')).useSettingsStore; + context.nodes = (await server.ssrLoadModule('/src/stores/useNodeStore.ts')).useNodesStore; + context.websocket = await server.ssrLoadModule('/src/stores/websocketMessageHandler.ts'); + context.checkpoints = await server.ssrLoadModule('/src/utils/checkpointStorage.ts'); + context.toasts = await server.ssrLoadModule('/src/ui/snackbar.ts'); + return context; +} + +function seed(context, label, count = 3) { + activate(context); + const form = { ...context.studio.getState().form, prompt: `${label} authored prompt`, seed: 7654321 }; + const nodes = [ + { + id: `${label}-text`, + type: 'custom', + position: { x: 42, y: 81 }, + data: { + type: 'custom', + label: `${label} text`, + module: 'fixture.Text', + action: 'Text', + params: { text: { type: 'string', value: `${label} authored value` } }, + }, + }, + ]; + const viewport = { x: 21, y: 34, zoom: 0.75 }; + const snapshot = { + nodes, + edges: [], + viewport, + studioForm: form, + studioGraphBinding: null, + selectedMode: form.mode, + activeTemplateId: null, + sourceOutputId: null, + }; + const tabs = Array.from({ length: count }, (_, index) => ({ + id: `${label}-${index}`, + title: `${label} ${index}`, + createdAt: index + 1, + updatedAt: index + 10, + dirty: true, + source: 'manual', + snapshot: structuredClone(snapshot), + })); + context.flow.getState().replaceGraph({ nodes, edges: [], viewport }); + context.studio.setState( + context.studio.persist.getOptions().merge( + { + workflowTabs: tabs, + activeWorkflowTabId: tabs.at(-1).id, + form, + selectedMode: form.mode, + graphBinding: null, + workflowCanvasHydrated: true, + }, + context.studio.getState(), + ), + ); + return workspace(context); +} + +function workspace(context) { + const state = context.studio.getState(); + return structuredClone({ + tabs: state.workflowTabs, + active: state.activeWorkflowTabId, + form: state.form, + flow: context.flow.getState().toObject(), + }); +} + +after(async () => { + await Promise.all(servers.map((server) => server.close())); + globalThis.fetch = originalFetch; + delete globalThis.window; + delete globalThis.localStorage; + delete globalThis.sessionStorage; + delete globalThis.location; +}); + +test('another page welcome, output fetch and flow reset cannot replace this page checkpoint on reload', async () => { + const shared = storage(); + const b = await page(shared); + const expectedB = seed(b, 'older-B'); + let outputRead; + const fetchOutputs = b.studio.getState().fetchBackendOutputs; + b.studio.setState({ fetchBackendOutputs: () => (outputRead = fetchOutputs()) }); + b.nodes.setState({ instance: 'B-worker', fetchRuntimeStatus: async () => {} }); + const a = await page(shared); + const expectedA = seed(a, 'current-A'); + activate(b); + b.studio.getState().setLauncherDismissed(false); + globalThis.fetch = async () => + new Response(JSON.stringify({ outputs: [], previewSlots: [], revision: 0 }), { + headers: { 'Content-Type': 'application/json' }, + }); + b.websocket.handleWebsocketMessage( + { + type: 'welcome', + sid: 'B-session', + instance: 'B-worker', + cachedNodes: [], + current: null, + queued: {}, + recent: [], + downloads: [], + }, + { ws: { url: 'ws://127.0.0.1:5191/ws' }, sid: 'B-session', setSid: () => {} }, + ); + assert.ok(outputRead, 'the real welcome handler must start its actual output-history request'); + await outputRead; + b.flow.getState().resetExecutionProgress(); + assert.deepEqual(workspace(b), expectedB, 'volatile activity must leave B authored state intact'); + const reloaded = await page(shared, a.window.sessionStorage); + assert.deepEqual( + workspace(reloaded), + expectedA, + 'A must reload its own exact roster, active document, form and canvas', + ); + assert.deepEqual(workspace(b), expectedB, 'reloading A must leave B intact'); +}); + +test('page recovery prefers current keys, copies exact bytes once and never changes shared recovery bytes', async () => { + const shared = storage(); + const context = await page(shared); + const session = storage(); + context.window.sessionStorage = session; + activate(context); + for (const [key, alias] of [ + ['modiff.studio', 'studio'], + ['modiff.flow', 'reactflow'], + ]) { + const current = ' { "state": { "from": "current" }, "version": 1 } '; + const older = '{"state":{"from":"legacy"},"version":0}'; + shared.setItem(key, current); + shared.setItem(alias, older); + const checkpoint = context.checkpoints.createPageCheckpointStorage(alias); + assert.equal(checkpoint.getItem(key), current); + assert.equal(session.getItem(key), current, 'recovery copies original bytes without JSON rewriting'); + shared.setItem(key, 'newer-other-page-recovery'); + assert.equal(checkpoint.getItem(key), current, 'this page owns its checkpoint after recovery'); + checkpoint.removeItem(key); + const reloaded = context.checkpoints.createPageCheckpointStorage(alias); + assert.equal( + reloaded.getItem(key), + null, + 'a page-scoped recovery marker prevents stale re-import after clear/reload', + ); + assert.equal(shared.getItem(key), 'newer-other-page-recovery'); + assert.equal(shared.getItem(alias), older); + } +}); + +test('legacy aliases recover without promoting shared keys and a missing workspace is admitted once per page', async () => { + const shared = storage(); + const context = await page(shared); + const session = storage(); + context.window.sessionStorage = session; + activate(context); + for (const [key, alias] of [ + ['modiff.studio', 'studio'], + ['modiff.flow', 'reactflow'], + ]) { + shared.setItem(alias, `raw-${alias}`); + const checkpoint = context.checkpoints.createPageCheckpointStorage(alias); + assert.equal(checkpoint.getItem(key), `raw-${alias}`); + assert.equal(shared.getItem(key), null); + assert.equal(shared.getItem(alias), `raw-${alias}`); + } + const empty = context.checkpoints.createPageCheckpointStorage('absent-alias'); + assert.equal(empty.getItem('absent-workspace'), null); + shared.setItem('absent-workspace', 'a later foreign checkpoint'); + assert.equal(context.checkpoints.createPageCheckpointStorage('absent-alias').getItem('absent-workspace'), null); +}); + +test('an existing page checkpoint is authoritative even when its bytes are malformed', async () => { + const shared = storage(); + const context = await page(shared); + const session = storage(); + context.window.sessionStorage = session; + activate(context); + session.setItem('modiff.studio', '{incomplete page recovery bytes'); + shared.setItem('modiff.studio', 'an older valid shared checkpoint'); + const checkpoint = context.checkpoints.createPageCheckpointStorage('studio'); + assert.equal(checkpoint.getItem('modiff.studio'), '{incomplete page recovery bytes'); + assert.equal(shared.getItem('modiff.studio'), 'an older valid shared checkpoint'); +}); + +test('page quota failures retain live edits, preserve shared bytes and warn until both workspace keys recover', async () => { + const shared = storage(); + const session = storage(); + const write = session.setItem; + session.setItem = () => { + throw new DOMException('Full', 'QuotaExceededError'); + }; + const warn = console.warn; + console.warn = () => {}; + try { + const context = await page(shared, session); + const expected = seed(context, 'quota-live'); + assert.deepEqual(workspace(context), expected); + const warning = context.toasts.getToastItems().find((item) => item.id === 'studio-checkpoint-write-failed'); + assert.equal(warning.persist, true); + assert.match(warning.message, /Save or export unsaved workflows before refreshing/); + assert.equal(shared.getItem('modiff.studio'), null); + assert.equal(shared.getItem('modiff.flow'), null); + session.setItem = write; + context.studio.setState({ launcherDismissed: true }); + assert.ok( + context.toasts.getToastItems().some((item) => item.id === warning.id), + 'Flow failure remains outstanding', + ); + context.flow.getState().resetExecutionProgress(); + assert.equal( + context.toasts.getToastItems().some((item) => item.id === warning.id), + false, + ); + } finally { + console.warn = warn; + session.setItem = write; + } +}); + +test('blocked session storage warns without a shared-write fallback and SSR remains unavailable normally', async () => { + const shared = storage(); + const context = await page(shared); + const originalWindow = context.window; + const blocked = { ...originalWindow }; + Object.defineProperty(blocked, 'sessionStorage', { + get: () => { + throw new DOMException('Blocked', 'SecurityError'); + }, + }); + globalThis.window = blocked; + const warn = console.warn; + console.warn = () => {}; + try { + const checkpoint = context.checkpoints.createPageCheckpointStorage('studio'); + assert.equal(checkpoint.getItem('modiff.studio'), null); + assert.doesNotThrow(() => checkpoint.setItem('modiff.studio', 'unsaved in-memory state')); + assert.doesNotThrow(() => checkpoint.removeItem('modiff.studio')); + assert.equal(shared.getItem('modiff.studio'), null); + assert.ok(context.toasts.getToastItems().some((item) => item.persist && /Save or export/.test(item.message))); + delete globalThis.window; + assert.throws(() => context.checkpoints.createPageCheckpointStorage('studio'), /outside a browser/); + } finally { + globalThis.window = originalWindow; + console.warn = warn; + } +}); + +test('shared Settings retain their global checkpoint while each workspace survives same-page reload', async () => { + const shared = storage(); + const a = await page(shared); + const expectedA = seed(a, 'settings-A'); + a.settings.getState().setLeftPanelWidth(444); + const b = await page(shared); + seed(b, 'settings-B'); + assert.equal(b.settings.getState().leftPanelWidth, 444); + b.settings.getState().setLeftPanelWidth(555); + const reloaded = await page(shared, a.window.sessionStorage); + assert.equal(reloaded.settings.getState().leftPanelWidth, 555); + assert.deepEqual(workspace(reloaded), expectedA); + assert.equal(JSON.parse(shared.getItem('modiff.settings')).state.leftPanelWidth, 555); + assert.equal(shared.getItem('modiff.studio'), null); + assert.equal(shared.getItem('modiff.flow'), null); +}); + +test('page checkpoints retain more than twelve dirty workflows without changing the existing retention policy', async () => { + const shared = storage(); + const context = await page(shared); + const expected = seed(context, 'dirty-page', 14); + assert.equal(JSON.parse(context.window.sessionStorage.getItem('modiff.studio')).state.workflowTabs.length, 14); + const reloaded = await page(shared, context.window.sessionStorage); + assert.deepEqual(workspace(reloaded), expected); +}); diff --git a/scripts/registered-block-v2-insertion.test.mjs b/scripts/registered-block-v2-insertion.test.mjs index 34526a55..80e00b82 100644 --- a/scripts/registered-block-v2-insertion.test.mjs +++ b/scripts/registered-block-v2-insertion.test.mjs @@ -48,6 +48,7 @@ let studioStore; let topBarAutoPolicy; let originalFetch; let storage; +let sessionValues; let compiledCatalogRequests; test('full FLUX.2 has an exact Expert Model Manager profile without Auto promotion', () => { @@ -78,10 +79,17 @@ before(async () => { removeItem: (key) => storage.delete(key), setItem: (key, value) => storage.set(key, String(value)), }; + sessionValues = new Map(); + globalThis.sessionStorage = { + getItem: (key) => sessionValues.get(key) ?? null, + setItem: (key, value) => sessionValues.set(key, String(value)), + removeItem: (key) => sessionValues.delete(key), + }; globalThis.window = { dispatchEvent: () => true, location: { origin: 'http://127.0.0.1:5191' }, localStorage: globalThis.localStorage, + sessionStorage: globalThis.sessionStorage, }; server = await createServer({ root: ROOT, @@ -777,7 +785,9 @@ function transientNodes() { } function persistedFlowText() { - return storage.get('modiff.flow') ?? ''; + const checkpoint = sessionValues.get('modiff.flow'); + assert.ok(typeof checkpoint === 'string' && checkpoint.length > 0, 'inspect an actual nonempty page checkpoint'); + return checkpoint; } function autoReceipt(instance) { @@ -805,6 +815,7 @@ function deferred() { beforeEach(() => { storage.clear(); + sessionValues.clear(); const configured = fixture(); flowStore.useFlowStore.setState({ nodes: [baseNode()], diff --git a/scripts/run-activity.test.mjs b/scripts/run-activity.test.mjs index cc7a0483..f90295fe 100644 --- a/scripts/run-activity.test.mjs +++ b/scripts/run-activity.test.mjs @@ -66,8 +66,15 @@ before(async () => { removeItem: (key) => storage.delete(key), setItem: (key, value) => storage.set(key, String(value)), }; + const sessionValues = new Map(); + globalThis.sessionStorage = { + getItem: (key) => sessionValues.get(key) ?? null, + setItem: (key, value) => sessionValues.set(key, String(value)), + removeItem: (key) => sessionValues.delete(key), + }; globalThis.window = { localStorage: globalThis.localStorage, + sessionStorage: globalThis.sessionStorage, location: { origin: 'http://127.0.0.1:5191' }, }; server = await createServer({ @@ -354,20 +361,20 @@ test('the browser checkpoint preserves every dirty document beyond twelve tabs', const before = store.getState(); try { store.setState({ workflowTabs: tabs, activeWorkflowTabId: 'unsaved-14' }); - assert.deepEqual(JSON.parse(localStorage.getItem('modiff.studio')).state.workflowTabs, tabs); + assert.deepEqual(JSON.parse(sessionStorage.getItem('modiff.studio')).state.workflowTabs, tabs); } finally { store.setState(before); } }); test('checkpoint quota failure visibly requests preservation and clears only after a successful write', () => { - const write = localStorage.setItem; + const write = sessionStorage.setItem; const warn = console.warn; const store = studioStoreModule.useStudioStore; const messages = []; try { console.warn = (...args) => messages.push(args); - localStorage.setItem = () => { + sessionStorage.setItem = () => { throw new DOMException('Full', 'QuotaExceededError'); }; store.setState({ launcherDismissed: true }); @@ -376,14 +383,14 @@ test('checkpoint quota failure visibly requests preservation and clears only aft assert.equal(warnings.length, 1); assert.equal(warnings[0].persist, true); assert.match(warnings[0].message, /Save or export unsaved workflows before refreshing/); - localStorage.setItem = write; + sessionStorage.setItem = write; store.setState({ launcherDismissed: true }); assert.equal( snackbarModule.getToastItems().some((item) => item.id === 'studio-checkpoint-write-failed'), false, ); } finally { - localStorage.setItem = write; + sessionStorage.setItem = write; console.warn = warn; store.setState({ launcherDismissed: false }); } @@ -393,12 +400,13 @@ for (const label of ['flow', 'settings']) { test(`${label} mutations survive checkpoint quota failures with a visible preservation warning`, () => { const store = label === 'flow' ? flowStoreModule.useFlowStore : settingsStoreModule.useSettingsStore; const before = store.getState(); - const write = localStorage.setItem; + const targetStorage = label === 'flow' ? sessionStorage : localStorage; + const write = targetStorage.setItem; const warn = console.warn; const mutation = label === 'flow' ? { viewport: { x: 17, y: 19, zoom: 0.75 } } : { isRightPanelOpen: false }; try { console.warn = () => {}; - localStorage.setItem = () => { + targetStorage.setItem = () => { throw new DOMException('Full', 'QuotaExceededError'); }; assert.doesNotThrow(() => store.setState(mutation)); @@ -408,7 +416,7 @@ for (const label of ['flow', 'settings']) { 1, ); } finally { - localStorage.setItem = write; + targetStorage.setItem = write; console.warn = warn; store.setState(before); } @@ -420,15 +428,18 @@ test('checkpoint warning clears only after every failed namespace has recovered' const settings = settingsStoreModule.useSettingsStore; const studio = studioStoreModule.useStudioStore; const before = [flow.getState(), settings.getState(), studio.getState()]; - const write = localStorage.setItem; + const localWrite = localStorage.setItem; + const sessionWrite = sessionStorage.setItem; const warn = console.warn; const failed = new Set(['modiff.flow', 'modiff.settings']); try { console.warn = () => {}; - localStorage.setItem = (name, value) => { + const failingWrite = (storage, write) => (name, value) => { if (failed.has(name)) throw new DOMException('Full', 'QuotaExceededError'); - return write.call(localStorage, name, value); + return write.call(storage, name, value); }; + localStorage.setItem = failingWrite(localStorage, localWrite); + sessionStorage.setItem = failingWrite(sessionStorage, sessionWrite); assert.doesNotThrow(() => flow.setState({ viewport: { x: 17, y: 19, zoom: 0.75 } })); assert.doesNotThrow(() => settings.setState({ isRightPanelOpen: false })); studio.setState({ launcherDismissed: true }); @@ -449,7 +460,8 @@ test('checkpoint warning clears only after every failed namespace has recovered' false, ); } finally { - localStorage.setItem = write; + localStorage.setItem = localWrite; + sessionStorage.setItem = sessionWrite; console.warn = warn; [flow, settings, studio].forEach((store, index) => store.setState(before[index])); } @@ -501,7 +513,7 @@ test('reordering tabs changes only their order and persists that order', () => { } assert.equal(flowStoreModule.useFlowStore.getState(), flow); assert.deepEqual( - JSON.parse(localStorage.getItem('modiff.studio')).state.workflowTabs.map((tab) => tab.id), + JSON.parse(sessionStorage.getItem('modiff.studio')).state.workflowTabs.map((tab) => tab.id), after.workflowTabs.map((tab) => tab.id), ); after.moveWorkflowTab(source.id, target.id, 'after'); diff --git a/scripts/studio-output-requests.test.mjs b/scripts/studio-output-requests.test.mjs index 74abba22..ae8d8939 100644 --- a/scripts/studio-output-requests.test.mjs +++ b/scripts/studio-output-requests.test.mjs @@ -14,6 +14,7 @@ let outputContracts; let outputUtils; const storageValues = new Map(); +const sessionValues = new Map(); const localStorageMock = { clear: () => storageValues.clear(), getItem: (key) => storageValues.get(key) ?? null, @@ -27,10 +28,16 @@ const localStorageMock = { before(async () => { globalThis.localStorage = localStorageMock; + globalThis.sessionStorage = { + getItem: (key) => sessionValues.get(key) ?? null, + setItem: (key, value) => sessionValues.set(key, String(value)), + removeItem: (key) => sessionValues.delete(key), + }; globalThis.window = { dispatchEvent: () => true, location: { origin: 'http://127.0.0.1:5191' }, localStorage: localStorageMock, + sessionStorage: globalThis.sessionStorage, }; server = await createServer({ root: ROOT, @@ -49,6 +56,7 @@ before(async () => { beforeEach(() => { storageValues.clear(); + sessionValues.clear(); studioStoreModule.useStudioStore.setState({ outputs: [], outputRevision: 0, @@ -149,7 +157,7 @@ test('an invalid backend output rejects the whole response instead of partially assert.match(state.galleryBackendError, /invalid output/); }); -test('backend-owned output history is not duplicated into localStorage', async () => { +test('backend-owned output history is not duplicated into the page checkpoint', async () => { globalThis.fetch = async () => jsonResponse({ error: false, outputs: [output('backend')] }); await studioStoreModule.useStudioStore.getState().fetchBackendOutputs(); @@ -157,7 +165,7 @@ test('backend-owned output history is not duplicated into localStorage', async ( studioStoreModule.useStudioStore.getState().outputs.map((item) => item.id), ['backend'], ); - const persisted = JSON.parse(storageValues.get('modiff.studio')); + const persisted = JSON.parse(sessionValues.get('modiff.studio')); assert.equal(Object.hasOwn(persisted.state, 'outputs'), false); }); @@ -211,9 +219,9 @@ test('a slower history response cannot replace a newer preview-state revision', assert.equal(state.previewSlots[key].currentOutputId, 'new-current'); }); -test('legacy localStorage output copies are discarded during hydration', async () => { +test('obsolete output copies in a page checkpoint are discarded during hydration', async () => { const state = studioStoreModule.useStudioStore.getState(); - storageValues.set( + sessionValues.set( 'modiff.studio', JSON.stringify({ state: { diff --git a/scripts/template-gallery-runner.mjs b/scripts/template-gallery-runner.mjs index 456b2bb7..6872ff85 100644 --- a/scripts/template-gallery-runner.mjs +++ b/scripts/template-gallery-runner.mjs @@ -656,6 +656,7 @@ export async function installEphemeralGalleryStorage(page) { for (const key of persistentKeys) { localStorage.removeItem(key); + sessionStorage.removeItem(key); } }); } diff --git a/scripts/template-gallery-runner.test.mjs b/scripts/template-gallery-runner.test.mjs index ea3e7a57..1cbb540a 100644 --- a/scripts/template-gallery-runner.test.mjs +++ b/scripts/template-gallery-runner.test.mjs @@ -1,3 +1,4 @@ +import { runInNewContext } from 'node:vm'; import assert from 'node:assert/strict'; import { spawnSync } from 'node:child_process'; import { EventEmitter } from 'node:events'; @@ -972,6 +973,54 @@ test('gallery runner refuses to reuse an occupied implicit frontend port', async } }); +test('gallery runner suppresses workspace checkpoints in both browser storage scopes', async () => { + let initialize; + await installEphemeralGalleryStorage({ + addInitScript: async (script) => { + initialize = script; + }, + route: async () => {}, + }); + class MemoryStorage { + values = new Map(); + getItem(key) { + return this.values.get(key) ?? null; + } + setItem(key, value) { + this.values.set(key, String(value)); + } + removeItem(key) { + this.values.delete(key); + } + } + const shared = new MemoryStorage(); + const session = new MemoryStorage(); + const workspaceKeys = ['modiff.studio', 'modiff.flow']; + for (const target of [shared, session]) { + for (const key of workspaceKeys) target.setItem(key, 'previous test workspace'); + target.setItem('modiff.settings', 'preserved preferences'); + } + shared.setItem('studio', 'legacy recovery retained'); + shared.setItem('reactflow', 'legacy flow retained'); + runInNewContext(`(${initialize.toString()})()`, { + Storage: MemoryStorage, + localStorage: shared, + sessionStorage: session, + }); + for (const target of [shared, session]) { + for (const key of workspaceKeys) { + assert.equal(target.getItem(key), null, 'remove prior owned-test workspace bytes'); + target.setItem(key, 'generated graph must stay ephemeral'); + assert.equal(target.getItem(key), null, 'block generated workspace writes in both scopes'); + } + assert.equal(target.getItem('modiff.settings'), 'preserved preferences'); + target.setItem('modiff.settings', 'updated preferences'); + assert.equal(target.getItem('modiff.settings'), 'updated preferences'); + } + assert.equal(shared.getItem('studio'), 'legacy recovery retained'); + assert.equal(shared.getItem('reactflow'), 'legacy flow retained'); +}); + test('gallery runner disables large persisted graph state before page navigation', async () => { let initScript = null; await installEphemeralGalleryStorage({ diff --git a/scripts/weight-format-template-binding.test.mjs b/scripts/weight-format-template-binding.test.mjs index 695b1dd0..542f4d63 100644 --- a/scripts/weight-format-template-binding.test.mjs +++ b/scripts/weight-format-template-binding.test.mjs @@ -6,7 +6,9 @@ import { after, before, test } from 'node:test'; import { createServer } from 'vite'; const ROOT = path.resolve(path.dirname(fileURLToPath(import.meta.url)), '..'); -const original = Object.fromEntries(['window', 'localStorage', 'fetch'].map((key) => [key, globalThis[key]])); +const original = Object.fromEntries( + ['window', 'localStorage', 'sessionStorage', 'fetch'].map((key) => [key, globalThis[key]]), +); let server, fixture; const load = (name) => server.ssrLoadModule(`/src/${name}.ts`); @@ -17,9 +19,16 @@ before(async () => { setItem: (key, value) => storage.set(key, String(value)), removeItem: (key) => storage.delete(key), }; + const sessionValues = new Map(); + globalThis.sessionStorage = { + getItem: (key) => sessionValues.get(key) ?? null, + setItem: (key, value) => sessionValues.set(key, String(value)), + removeItem: (key) => sessionValues.delete(key), + }; globalThis.window = { location: { origin: 'http://127.0.0.1:5191' }, localStorage: globalThis.localStorage, + sessionStorage: globalThis.sessionStorage, dispatchEvent: () => true, }; globalThis.fetch = async (url, options) => { @@ -921,7 +930,7 @@ test('actual persistence hydration retains unsupported format documents as block ]; const oldStudio = useStudioStore.getState(), oldFlow = useFlowStore.getState(); - const oldStorage = localStorage.getItem('modiff.studio'), + const oldStorage = sessionStorage.getItem('modiff.studio'), oldFetch = globalThis.fetch; let requests = 0; globalThis.fetch = async () => { @@ -929,7 +938,7 @@ test('actual persistence hydration retains unsupported format documents as block throw new Error('hydration must not contact the backend'); }; try { - localStorage.setItem( + sessionStorage.setItem( 'modiff.studio', JSON.stringify({ version: 0, @@ -1033,7 +1042,7 @@ test('actual persistence hydration retains unsupported format documents as block globalThis.fetch = oldFetch; useFlowStore.setState(oldFlow, true); useStudioStore.setState(oldStudio, true); - if (oldStorage === null) localStorage.removeItem('modiff.studio'); - else localStorage.setItem('modiff.studio', oldStorage); + if (oldStorage === null) sessionStorage.removeItem('modiff.studio'); + else sessionStorage.setItem('modiff.studio', oldStorage); } }); diff --git a/scripts/workflow-library-ephemeral-storage.mjs b/scripts/workflow-library-ephemeral-storage.mjs index 0bea599e..8d1f1f3a 100644 --- a/scripts/workflow-library-ephemeral-storage.mjs +++ b/scripts/workflow-library-ephemeral-storage.mjs @@ -62,12 +62,13 @@ export async function installEphemeralWorkflowStorage(page) { const originalSetItem = Storage.prototype.setItem; Storage.prototype.setItem = function setEphemeralWorkflowItem(key, value) { - if (this === localStorage && generatedGraphKeys.has(String(key))) return; + if ((this === localStorage || this === sessionStorage) && generatedGraphKeys.has(String(key))) return; return originalSetItem.call(this, key, value); }; for (const key of generatedGraphKeys) { localStorage.removeItem(key); + sessionStorage.removeItem(key); } }); } diff --git a/src/stores/useFlowStore.ts b/src/stores/useFlowStore.ts index 2cc40cbc..d66bc652 100644 --- a/src/stores/useFlowStore.ts +++ b/src/stores/useFlowStore.ts @@ -11,8 +11,7 @@ import { Node, Edge, OnNodesChange, OnEdgesChange, NodeChange, EdgeChange, Conne import { nanoid } from 'nanoid'; import type { ApiGraphExport, NodeMemoryUsage } from '../types/api'; -import { migrateLocalStorageKey } from '../utils/persistMigration'; -import { createResilientCheckpointStorage } from '../utils/checkpointStorage'; +import { createPageCheckpointStorage } from '../utils/checkpointStorage'; import { arrangeGraphNodes } from '../workflow/graphLayout'; import { handleConnect, @@ -348,7 +347,6 @@ type FlowHistoryTransaction = { const FLOW_STORAGE_KEY = 'modiff.flow'; const FLOW_STORAGE_VERSION = 1; const FLOW_HISTORY_LIMIT = 50; -migrateLocalStorageKey('reactflow', FLOW_STORAGE_KEY); function cloneJson(value: T): T { return JSON.parse(JSON.stringify(value)) as T; @@ -2746,7 +2744,7 @@ export const useFlowStore = create()( }), { name: FLOW_STORAGE_KEY, - storage: createJSONStorage(createResilientCheckpointStorage), + storage: createJSONStorage(() => createPageCheckpointStorage('reactflow')), version: FLOW_STORAGE_VERSION, migrate: (persisted) => normalizePersistedFlowState(persisted), merge: (persisted, current) => ({ diff --git a/src/stores/useStudioStore.ts b/src/stores/useStudioStore.ts index c18c06f5..82659521 100644 --- a/src/stores/useStudioStore.ts +++ b/src/stores/useStudioStore.ts @@ -51,9 +51,8 @@ import { } from '../studio/templateExactness'; import { STUDIO_TEMPLATES, getPreset } from '../studio/templates'; import { adoptManagedWorkflowGraph, inferStudioFormFromWorkflow } from '../studio/workflowInference'; -import { migrateLocalStorageKey } from '../utils/persistMigration'; import { createLatestRequestGate, formatRequestError, requestBlob } from '../utils/requestJson'; -import { createResilientCheckpointStorage } from '../utils/checkpointStorage'; +import { createPageCheckpointStorage } from '../utils/checkpointStorage'; import type { MediaArtifact } from '../utils/imageArtifacts'; import { autoPlanKeyForForm, autoResourcePlanTargetMatches, type StudioAutoResourcePlan } from '../studio/autoResource'; import type { @@ -1569,7 +1568,6 @@ function isNonEmptyPreviewValue(value: unknown) { } const STUDIO_STORAGE_KEY = 'modiff.studio'; -migrateLocalStorageKey('studio', STUDIO_STORAGE_KEY); export type WorkflowOperationContext = { workflowTabId: string | null; @@ -3230,7 +3228,7 @@ export const useStudioStore = create createPageCheckpointStorage('studio')), partialize: (state) => ({ selectedMode: state.selectedMode, form: state.form, diff --git a/src/utils/checkpointStorage.ts b/src/utils/checkpointStorage.ts index f799ef96..0da975b4 100644 --- a/src/utils/checkpointStorage.ts +++ b/src/utils/checkpointStorage.ts @@ -10,10 +10,21 @@ function checkpointRecovered(name: string) { } } -/** Keep workspace mutations usable when a browser checkpoint cannot be written. */ +function checkpointFailed(name: string, error: unknown) { + const firstFailure = failedCheckpointKeys.size === 0; + if (!failedCheckpointKeys.has(name)) console.warn('Could not update the local workspace checkpoint.', name, error); + failedCheckpointKeys.add(name); + if (firstFailure) { + enqueueSnackbar( + 'Changes could not be stored in this browser. Save or export unsaved workflows before refreshing.', + { key: CHECKPOINT_WRITE_WARNING_KEY, variant: 'warning', persist: true }, + ); + } +} + +/** Keep shared preferences usable when their browser checkpoint cannot be written. */ export function createResilientCheckpointStorage(): StateStorage { - // Resolve here so createJSONStorage preserves its usual unavailable-storage - // behavior during SSR. Each method still reads the storage object's current API. + // Resolve here so createJSONStorage preserves its usual unavailable-storage behavior during SSR. const storage = localStorage; return { getItem: (name) => storage.getItem(name), @@ -26,17 +37,75 @@ export function createResilientCheckpointStorage(): StateStorage { storage.setItem(name, value); checkpointRecovered(name); } catch (error) { - const firstFailure = failedCheckpointKeys.size === 0; - if (!failedCheckpointKeys.has(name)) { - console.warn('Could not update the local workspace checkpoint.', name, error); + checkpointFailed(name, error); + } + }, + }; +} + +/** A browser page owns its workspace; shared old checkpoints are recovery input only. */ +export function createPageCheckpointStorage(legacyKey: string): StateStorage { + // Browser storage getters may throw. SSR still takes createJSONStorage's normal unavailable path. + if (typeof window === 'undefined' || !('sessionStorage' in window)) + throw new Error('Page checkpoint storage is unavailable outside a browser.'); + let storage: Storage | undefined; + let unavailable: unknown; + try { + storage = window.sessionStorage; + } catch (error) { + unavailable = error; + } + const initialized = new Set(); + const recoveryKey = (name: string) => `${name}.legacy-recovered.v1`; + function pageStorage() { + if (!storage) throw unavailable ?? new Error('Page checkpoint storage is unavailable.'); + return storage; + } + return { + getItem: (name) => { + try { + const page = pageStorage(); + const current = page.getItem(name); + if (current !== null) return current; + if (initialized.has(name) || page.getItem(recoveryKey(name)) !== null) return null; + initialized.add(name); + // Prefer the current key over its legacy alias. Copy bytes exactly; never mutate either shared key. + let recovered: string | null = null; + try { + recovered = window.localStorage.getItem(name) ?? window.localStorage.getItem(legacyKey); + } catch { + /* A new page can still work when old shared recovery storage is inaccessible. */ } - failedCheckpointKeys.add(name); - if (firstFailure) { - enqueueSnackbar( - 'Changes could not be stored in this browser. Save or export unsaved workflows before refreshing.', - { key: CHECKPOINT_WRITE_WARNING_KEY, variant: 'warning', persist: true }, - ); + try { + if (recovered !== null) page.setItem(name, recovered); + page.setItem(recoveryKey(name), '1'); + checkpointRecovered(name); + } catch (error) { + checkpointFailed(name, error); } + return recovered; + } catch (error) { + checkpointFailed(name, error); + return null; + } + }, + setItem: (name, value) => { + try { + pageStorage().setItem(name, value); + checkpointRecovered(name); + } catch (error) { + checkpointFailed(name, error); + } + }, + removeItem: (name) => { + initialized.add(name); + try { + const page = pageStorage(); + page.setItem(recoveryKey(name), '1'); + page.removeItem(name); + checkpointRecovered(name); + } catch (error) { + checkpointFailed(name, error); } }, }; diff --git a/tests/e2e/live-backend/live-backend.spec.ts b/tests/e2e/live-backend/live-backend.spec.ts index 95aca8e9..1fe54bd5 100644 --- a/tests/e2e/live-backend/live-backend.spec.ts +++ b/tests/e2e/live-backend/live-backend.spec.ts @@ -8300,7 +8300,8 @@ test('a live recent-run notification restores its exact backend workflow without .toBe(recent!.workflowTabId); await expect.poll(() => page.evaluate(() => window.__MODIFF_E2E__!.getState().settings.rightPanelTab)).toBe('studio'); - const checkpointBytes = await page.evaluate(() => localStorage.getItem('modiff.studio')?.length ?? 0); + const checkpointBytes = await page.evaluate(() => window.sessionStorage.getItem('modiff.studio')?.length ?? 0); + expect(checkpointBytes).toBeGreaterThan(0); expect(checkpointBytes).toBeLessThan(2_000_000); expect(pageErrors.filter((message) => /QuotaExceededError|Could not open run/i.test(message))).toEqual([]); }); diff --git a/tests/e2e/studio-mocked/studio-mocked.spec.ts b/tests/e2e/studio-mocked/studio-mocked.spec.ts index 7de0d88f..8db3daaf 100644 --- a/tests/e2e/studio-mocked/studio-mocked.spec.ts +++ b/tests/e2e/studio-mocked/studio-mocked.spec.ts @@ -299,7 +299,7 @@ async function prepareRestorationStartup(page: Page, workflowId: string) { hydrated: state.workflowCanvasHydrated, tab, slots: state.previewSlots, - storage: localStorage.getItem('modiff.studio'), + storage: window.sessionStorage.getItem('modiff.studio'), }; }); const waitForCanvas = () => expect.poll(async () => (await read()).hydrated).toBe(true); @@ -10089,7 +10089,7 @@ test('mocked Studio restores legacy template tabs as managed without moving thei } }); - const flowPersisted = JSON.parse(window.localStorage.getItem('modiff.flow') ?? '{}') as { + const flowPersisted = JSON.parse(window.sessionStorage.getItem('modiff.flow') ?? '{}') as { state?: { nodes?: Array<{ id: string; @@ -10101,7 +10101,7 @@ test('mocked Studio restores legacy template tabs as managed without moving thei }; version?: number; }; - const studioPersisted = JSON.parse(window.localStorage.getItem('modiff.studio') ?? '{}') as { + const studioPersisted = JSON.parse(window.sessionStorage.getItem('modiff.studio') ?? '{}') as { state?: { activeTemplateId?: string | null; activeWorkflowTabId?: string | null; @@ -10141,8 +10141,8 @@ test('mocked Studio restores legacy template tabs as managed without moving thei delete activeTab.snapshot.studioGraphBinding; studio.activeTemplateId = null; - window.localStorage.setItem('modiff.flow', JSON.stringify(flowPersisted)); - window.localStorage.setItem('modiff.studio', JSON.stringify(studioPersisted)); + window.sessionStorage.setItem('modiff.flow', JSON.stringify(flowPersisted)); + window.sessionStorage.setItem('modiff.studio', JSON.stringify(studioPersisted)); window.sessionStorage.setItem( 'legacy-managed-expected', JSON.stringify({ @@ -10221,7 +10221,7 @@ test('canonical saved modular imports are adopted as managed and real topology e await installMockRoutes(page); await page.addInitScript( ({ graph, form }) => { - if (window.localStorage.getItem('modiff.studio')) return; + if (window.sessionStorage.getItem('modiff.studio')) return; const tabId = 'canonical-import'; const snapshot = { ...graph, @@ -10307,7 +10307,7 @@ test('canonical saved modular imports are adopted as managed and real topology e ) .toEqual({ bound: false, nodeCount: graph.nodes.length + 1 }); const persistedCustomCheckpoint = await page.evaluate(() => { - const persisted = JSON.parse(window.localStorage.getItem('modiff.studio') || '{}'); + const persisted = JSON.parse(window.sessionStorage.getItem('modiff.studio') || '{}'); const tab = persisted?.state?.workflowTabs?.find( (candidate: { id?: string }) => candidate.id === 'canonical-import', ); @@ -16150,7 +16150,7 @@ test('mocked audio template stays managed after a page reload', async ({ page }) async () => page.evaluate(() => { const current = window.__MODIFF_E2E__!.getState(); - const persisted = JSON.parse(window.localStorage.getItem('modiff.studio') ?? '{}') as { + const persisted = JSON.parse(window.sessionStorage.getItem('modiff.studio') ?? '{}') as { state?: { activeWorkflowTabId?: string | null; workflowTabs?: Array<{ @@ -16186,7 +16186,7 @@ test('mocked audio template stays managed after a page reload', async ({ page }) const beforeReload = await page.evaluate(() => { const current = window.__MODIFF_E2E__!.getState(); - const persisted = JSON.parse(window.localStorage.getItem('modiff.studio') ?? '{}') as { + const persisted = JSON.parse(window.sessionStorage.getItem('modiff.studio') ?? '{}') as { state?: { activeWorkflowTabId?: string | null; workflowTabs?: Array<{ @@ -16327,7 +16327,7 @@ test('LTX workflow keeps its model identity and renders numeric Export Video FPS expect(pageErrors).toEqual([]); await page.evaluate(() => { - const persisted = JSON.parse(window.localStorage.getItem('modiff.studio') ?? '{}') as { + const persisted = JSON.parse(window.sessionStorage.getItem('modiff.studio') ?? '{}') as { state?: { form?: { modelType?: string }; activeWorkflowTabId?: string | null; @@ -16349,7 +16349,7 @@ test('LTX workflow keeps its model identity and renders numeric Export Video FPS if (activeTab?.snapshot?.studioGraphBinding) { activeTab.snapshot.studioGraphBinding.modelType = 'ZImageModularPipeline'; } - window.localStorage.setItem('modiff.studio', JSON.stringify(persisted)); + window.sessionStorage.setItem('modiff.studio', JSON.stringify(persisted)); }); await page.reload({ waitUntil: 'domcontentloaded' }); await page.waitForFunction(() => Boolean(window.__MODIFF_E2E__), null, { timeout: 30_000 }); @@ -16395,7 +16395,7 @@ test('active workflow snapshot wins when the fast canvas cache belongs to anothe await window.__MODIFF_E2E__!.applyLegacyTemplateForTest('ace_step_text_to_audio'); }); const audioCanvas = await page.evaluate(() => { - const persisted = JSON.parse(window.localStorage.getItem('modiff.flow') ?? '{}') as { + const persisted = JSON.parse(window.sessionStorage.getItem('modiff.flow') ?? '{}') as { state?: { nodes?: Array<{ id: string }>; edges?: unknown[]; viewport?: unknown }; }; if (!persisted.state?.nodes?.length) throw new Error('The audio canvas cache was not persisted.'); @@ -16424,7 +16424,7 @@ test('active workflow snapshot wins when the fast canvas cache belongs to anothe const managedVideo = await page.evaluate((audioCanvas) => { const state = window.__MODIFF_E2E__!.getState(); - const studioPersisted = JSON.parse(window.localStorage.getItem('modiff.studio') ?? '{}') as { + const studioPersisted = JSON.parse(window.sessionStorage.getItem('modiff.studio') ?? '{}') as { state?: { activeWorkflowTabId?: string | null; workflowTabs?: Array<{ @@ -16439,7 +16439,7 @@ test('active workflow snapshot wins when the fast canvas cache belongs to anothe if (!activeTab?.snapshot?.studioGraphBinding) { throw new Error('The managed video snapshot was not persisted.'); } - const flowPersisted = JSON.parse(window.localStorage.getItem('modiff.flow') ?? '{}') as { + const flowPersisted = JSON.parse(window.sessionStorage.getItem('modiff.flow') ?? '{}') as { state?: { nodes?: unknown[]; edges?: unknown[]; viewport?: unknown }; }; if (!flowPersisted.state) throw new Error('The fast canvas cache was not persisted.'); @@ -16449,7 +16449,7 @@ test('active workflow snapshot wins when the fast canvas cache belongs to anothe flowPersisted.state.nodes = audioCanvas.nodes; flowPersisted.state.edges = audioCanvas.edges; flowPersisted.state.viewport = audioCanvas.viewport; - window.localStorage.setItem('modiff.flow', JSON.stringify(flowPersisted)); + window.sessionStorage.setItem('modiff.flow', JSON.stringify(flowPersisted)); return { activeTabId: studioPersisted.state?.activeWorkflowTabId ?? null, @@ -16495,7 +16495,7 @@ test('active workflow snapshot wins when the fast canvas cache belongs to anothe // cache must never be written into the active video document. await page.waitForTimeout(900); const durable = await page.evaluate(() => { - const persisted = JSON.parse(window.localStorage.getItem('modiff.studio') ?? '{}') as { + const persisted = JSON.parse(window.sessionStorage.getItem('modiff.studio') ?? '{}') as { state?: { activeWorkflowTabId?: string | null; workflowTabs?: Array<{ id: string; snapshot?: { nodes?: Array<{ id: string }> } }>; @@ -21394,7 +21394,7 @@ test('active node execution follows its exact workflow across tabs, notification await expect .poll(() => page.evaluate( - (workflowTabId) => window.localStorage.getItem('modiff.studio')?.includes(workflowTabId) ?? false, + (workflowTabId) => window.sessionStorage.getItem('modiff.studio')?.includes(workflowTabId) ?? false, identity.workflowTabId, ), ) @@ -26401,7 +26401,7 @@ async function sharedSavedBlockLifecycle(page: Page, workspace: 'auto' | 'expert await expect .poll(() => page.evaluate(() => { - const raw = window.localStorage.getItem('modiff.studio'); + const raw = window.sessionStorage.getItem('modiff.studio'); if (!raw) return false; const persisted = JSON.parse(raw) as { state?: { @@ -26434,7 +26434,7 @@ async function sharedSavedBlockLifecycle(page: Page, workspace: 'auto' | 'expert snapshot?: { nodes?: Array<{ data?: { type?: string } }> }; }> ).find((tab) => tab.id === studio.activeWorkflowTabId); - const raw = window.localStorage.getItem('modiff.studio'); + const raw = window.sessionStorage.getItem('modiff.studio'); const persisted = raw ? (JSON.parse(raw) as { state?: { From 12af215a93f4c798e0e99e2a70f427cf4fce0bbc Mon Sep 17 00:00:00 2001 From: Sourav Das Date: Wed, 28 Oct 2026 21:07:45 +0530 Subject: [PATCH 098/440] Keep owned generation pages from recovering legacy workspaces --- scripts/page-workspace-checkpoint.test.mjs | 98 ++++++++++++++++++- scripts/template-gallery-runner.mjs | 2 + .../workflow-library-ephemeral-storage.mjs | 2 + 3 files changed, 101 insertions(+), 1 deletion(-) diff --git a/scripts/page-workspace-checkpoint.test.mjs b/scripts/page-workspace-checkpoint.test.mjs index 6cd0849d..7555866f 100644 --- a/scripts/page-workspace-checkpoint.test.mjs +++ b/scripts/page-workspace-checkpoint.test.mjs @@ -1,3 +1,6 @@ +import { runInNewContext } from 'node:vm'; +import { installEphemeralWorkflowStorage } from './workflow-library-ephemeral-storage.mjs'; +import { installEphemeralGalleryStorage } from './template-gallery-runner.mjs'; import assert from 'node:assert/strict'; import { after, test } from 'node:test'; import path from 'node:path'; @@ -25,11 +28,12 @@ function activate(page) { globalThis.location = page.window.location; } -async function page(local, session = storage()) { +async function page(local, session = storage(), initialize) { const context = { window: { localStorage: local, sessionStorage: session, location: { origin: 'http://127.0.0.1:5191' } }, }; activate(context); + initialize?.(); const server = await createServer({ root: ROOT, configFile: false, @@ -319,3 +323,95 @@ test('page checkpoints retain more than twelve dirty workflows without changing const reloaded = await page(shared, context.window.sessionStorage); assert.deepEqual(workspace(reloaded), expected); }); + +for (const [label, install] of [ + ['Workflow', installEphemeralWorkflowStorage], + ['Gallery', installEphemeralGalleryStorage], +]) { + test(`${label} owned generator startup cannot recover a foreign legacy workspace`, async () => { + let initialize; + await install({ + addInitScript: async (script) => { + initialize = script; + }, + route: async () => {}, + }); + class MemoryStorage { + values = new Map(); + getItem(key) { + return this.values.get(key) ?? null; + } + setItem(key, value) { + this.values.set(key, String(value)); + } + removeItem(key) { + this.values.delete(key); + } + } + const shared = new MemoryStorage(); + const session = new MemoryStorage(); + const foreignNode = { + id: 'foreign-graph', + type: 'custom', + position: { x: 1, y: 2 }, + data: { + type: 'custom', + label: 'Foreign graph', + module: 'fixture.Text', + action: 'Text', + params: { text: { type: 'string', value: 'foreign authored graph' } }, + }, + }; + const foreignFlow = JSON.stringify({ + version: 1, + state: { nodes: [foreignNode], edges: [], viewport: { x: 0, y: 0, zoom: 1 } }, + }); + const foreignStudio = JSON.stringify({ + version: 0, + state: { + form: { prompt: 'foreign authored prompt' }, + activeWorkflowTabId: 'foreign-document', + workflowTabs: [ + { + id: 'foreign-document', + title: 'Foreign document', + createdAt: 1, + updatedAt: 2, + dirty: true, + source: 'manual', + snapshot: { + nodes: [foreignNode], + edges: [], + studioForm: { prompt: 'foreign authored prompt' }, + studioGraphBinding: null, + }, + }, + ], + }, + }); + shared.setItem('studio', foreignStudio); + shared.setItem('reactflow', foreignFlow); + const app = await page(shared, session, () => + runInNewContext(`(${initialize.toString()})()`, { + Storage: MemoryStorage, + localStorage: shared, + sessionStorage: session, + }), + ); + assert.deepEqual( + app.studio.getState().workflowTabs, + [], + 'the actual Studio factory must not return retained foreign alias bytes', + ); + assert.equal(app.studio.getState().activeWorkflowTabId, null); + assert.deepEqual( + app.flow.getState().nodes, + [], + 'the actual Flow factory must not return retained foreign alias bytes', + ); + assert.equal(shared.getItem('studio'), foreignStudio, 'keep exact legacy recovery bytes'); + assert.equal(shared.getItem('reactflow'), foreignFlow); + assert.equal(session.getItem('modiff.studio'), null, 'generated workspace remains ephemeral'); + assert.equal(session.getItem('modiff.flow'), null); + }); +} diff --git a/scripts/template-gallery-runner.mjs b/scripts/template-gallery-runner.mjs index 6872ff85..fe5b7e49 100644 --- a/scripts/template-gallery-runner.mjs +++ b/scripts/template-gallery-runner.mjs @@ -657,6 +657,8 @@ export async function installEphemeralGalleryStorage(page) { for (const key of persistentKeys) { localStorage.removeItem(key); sessionStorage.removeItem(key); + // Keep legacy recovery bytes intact without hydrating foreign graphs in this owned test page. + originalSetItem.call(sessionStorage, `${key}.legacy-recovered.v1`, '1'); } }); } diff --git a/scripts/workflow-library-ephemeral-storage.mjs b/scripts/workflow-library-ephemeral-storage.mjs index 8d1f1f3a..b647da81 100644 --- a/scripts/workflow-library-ephemeral-storage.mjs +++ b/scripts/workflow-library-ephemeral-storage.mjs @@ -69,6 +69,8 @@ export async function installEphemeralWorkflowStorage(page) { for (const key of generatedGraphKeys) { localStorage.removeItem(key); sessionStorage.removeItem(key); + // Keep legacy recovery bytes intact without hydrating foreign graphs in this owned test page. + originalSetItem.call(sessionStorage, `${key}.legacy-recovered.v1`, '1'); } }); } From 109da623e65747ae09e18cf699cf12f1485e7644 Mon Sep 17 00:00:00 2001 From: Sourav Das Date: Wed, 28 Oct 2026 21:08:53 +0530 Subject: [PATCH 099/440] Validate DDIM runtime hints and executable graph scope --- CONTRIBUTING.md | 25 +- package.json | 2 +- scripts/canonical-provenance-fixtures.mjs | 143 ++++++++ scripts/canonical-runtime-hints.mjs | 384 ++++++++++++++++++++++ scripts/canonical-runtime-hints.test.mjs | 252 ++++++++++++++ scripts/live-proof-provenance.mjs | 27 +- scripts/release-contract-core.mjs | 27 +- scripts/template-qualification.test.mjs | 143 +++++++- 8 files changed, 983 insertions(+), 20 deletions(-) create mode 100644 scripts/canonical-runtime-hints.mjs create mode 100644 scripts/canonical-runtime-hints.test.mjs diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 7c72303f..6fe211c9 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -321,6 +321,15 @@ observations retain the ordinary model-list response. `outputs` contains ordered the original browser downloads and raw task body; do not reconstruct their fields from a catalog or replace defaults, paths, prompts, or model pins. +For the initial hinted DDIM accounting route, also retain `graphCompleted` as a +`{path, bytes, sha256}` reference to the **original** `graph_completed` WebSocket +JSON frame (at most 16 MiB). Public run-detail GET responses deliberately omit +`runtimeHints`; do not add invented hints to them. The shared factory and reader +join the submitted hints, frame, raw task, output and consumed receipt by +task/session/client-run/input-hash/workflow/canvas epoch, attempt zero, complete +runtime/source identity and measurement. The frame has no attempt index or +completion timestamp; those remain bound to the original raw task. + This initial path supports input-free execution only (`inputs: []`). Every submitted literal must have matching native consumed-input evidence; omissions, overrides, unsupported scalar connections, unresolved model components, retries, @@ -343,7 +352,21 @@ provenance factory accepts an optional canonical proof from the existing reader: the trusted current canonical export, actual original task/output and complete native accounting. It derives the plan itself and binds task, attempt, output, model and completion identities without adding runtime hints or rewriting proofs. -The default factory path remains unchanged. Input files, builtins, quantized +The optional hinted policy accepts only the existing ordinary five-node, +unquantized float32 resident DDIM CIFAR-10 graph, either correlation-only or the +actual Studio Expert producer payload. It rejects unknown hints, coercions, +Auto, nonempty retry plans/history, offload, model variants and unsupported +execution authority. It accounts for the full saved observation form and the +actual advisory CUDA reset decision; `fraction: 1` alone does not prove that a +reset succeeded. Hinted and unhinted accounting also check the complete current, +submitted and creator API envelopes: only `sid`, `nodes`, `paths`, the reviewed +`runtimeHints`, and an optional empty `loops` array are admitted. Nonempty or +malformed loops, service execution, deterministic/provenance routes and unknown +top-level authority need separate accounting; the historical canonical identity +alone does not cover them. Submitted and original completion hashes become part of the +derived plan. The recorder retains the original frame unchanged, and the release +projection repeats the same closed validation. Valid legacy unhinted descriptors and +the default factory path remain unchanged. Input files, builtins, quantized configurations and other accounting policies remain unsupported by this initial join. A genuine unchanged native DDIM run is still required before a usability claim. Mocked protocol checks are not native, quality, hardware or release evidence. diff --git a/package.json b/package.json index 34dfe5fc..22b67e07 100644 --- a/package.json +++ b/package.json @@ -84,7 +84,7 @@ "test:task-templates": "node --test scripts/task-template-contracts.test.mjs", "test:template-assets:local": "node --test scripts/template-default-inputs.test.mjs", "test:template-quality": "node --test scripts/template-quality.test.mjs", - "test:live-qwen-proof": "node --test scripts/live-qwen-proof.test.mjs scripts/hardware-qualification.test.mjs scripts/release-qualification-policy.test.mjs scripts/resource-qualification.test.mjs scripts/route-resource-qualification.test.mjs scripts/resource-qualification-campaign.test.mjs scripts/template-qualification.test.mjs scripts/release-qualification-campaign.test.mjs", + "test:live-qwen-proof": "node --test scripts/live-qwen-proof.test.mjs scripts/canonical-runtime-hints.test.mjs scripts/hardware-qualification.test.mjs scripts/release-qualification-policy.test.mjs scripts/resource-qualification.test.mjs scripts/route-resource-qualification.test.mjs scripts/resource-qualification-campaign.test.mjs scripts/template-qualification.test.mjs scripts/release-qualification-campaign.test.mjs", "test:release-contract": "node --test scripts/backend-installer-contract.test.mjs scripts/backend-node-registry.test.mjs scripts/release-contract.test.mjs scripts/template-asset-release-contract.test.mjs", "test:live-backend-contract": "node scripts/live-backend-contract.mjs", "test:gallery-harness": "node --test scripts/template-gallery-harness.test.mjs", diff --git a/scripts/canonical-provenance-fixtures.mjs b/scripts/canonical-provenance-fixtures.mjs index cff1f234..4038ebeb 100644 --- a/scripts/canonical-provenance-fixtures.mjs +++ b/scripts/canonical-provenance-fixtures.mjs @@ -175,6 +175,149 @@ export function canonicalHookCase() { }; } +// Exercise the real serialized FE producers. The task, completion, runtime, +// allocation and media below remain synthetic protocol fixtures, not live proof. +export async function hintedCanonicalHookCase({ managed = true, memory = true, targetNode = false } = {}) { + const value = canonicalHookCase(); + const { graph } = mockedDdimAccountingFixture(); + const previousWindow = globalThis.window; + globalThis.window ??= { location: { origin: 'http://localhost' } }; + const server = await createServer({ + configFile: false, + root: ROOT, + logLevel: 'silent', + optimizeDeps: { entries: [], noDiscovery: true }, + server: { middlewareMode: true, hmr: false, watch: null }, + appType: 'custom', + }); + try { + const [{ useStudioStore }, { useNodesStore }, preparation, profiles, inference] = await Promise.all([ + server.ssrLoadModule('/src/stores/useStudioStore.ts'), + server.ssrLoadModule('/src/stores/useNodeStore.ts'), + server.ssrLoadModule('/src/studio/runPreparation.ts'), + server.ssrLoadModule('/src/studio/modelProfiles.ts'), + server.ssrLoadModule('/src/studio/workflowInference.ts'), + ]); + const fallbackForm = { + ...profiles.DEFAULT_STUDIO_FORM, + modelType: 'DDIMPipeline', + mode: 'unconditional_image', + resourceMode: 'expert', + device: 'cuda:0', + dtype: 'float32', + quantizationMode: 'none', + offloadMode: 'none', + autoOffload: false, + randomSeed: false, + width: 32, + height: 32, + steps: 50, + guidanceScale: 0, + }; + const output = value.executedOutput; + const snapshot = inference.workflowSnapshotFromGraph(graph, 'default', fallbackForm); + // Ordinary imports initially select Auto. This bounded protocol case models + // the explicit Custom/Expert choice without changing any authored node, + // wire, model pin, sampling control or resident execution recipe. + const form = { ...snapshot.studioForm, resourceMode: 'expert' }; + snapshot.studioForm = form; + assert.ok(snapshot.studioGraphBinding, 'The ordinary canonical import is managed by the real adoption path.'); + useStudioStore.setState({ + form, + graphBinding: snapshot.studioGraphBinding, + activeTemplateId: null, + autoResourcePlan: null, + autoFieldOverrides: {}, + activeWorkflowTabId: output.workflowTabId, + workflowCanvasEpoch: 7, + workflowTabs: [{ id: output.workflowTabId, title: 'Protocol DDIM', snapshot }], + }); + useNodesStore.setState({ + studioModelCapabilities: [], + runtimeStatus: memory + ? { + packages: { + torch: { + cuda_available: true, + cuda_devices: [{ index: 0, memory_total_bytes: 16 * 1024 ** 3, memory_free_bytes: 12 * 1024 ** 3 }], + }, + }, + } + : null, + }); + const identity = { + clientRunId: output.clientRunId, + runInputHash: preparation.getStudioRunInputHash(form, value.apiGraph), + }; + value.apiGraph = JSON.parse( + JSON.stringify( + preparation.applyRunCorrelationHints( + managed ? preparation.applyStudioRuntimeHints(value.apiGraph, identity) : value.apiGraph, + identity, + { formSnapshot: form, ...(targetNode ? { targetNodeId: output.nodeId } : {}) }, + ), + ), + ); + output.apiGraphSnapshot = value.apiGraph; + output.runInputHash = identity.runInputHash; + output.formSnapshot = form; + output.graphSnapshot = { nodes: snapshot.nodes, edges: snapshot.edges, viewport: snapshot.viewport }; + output.sid = value.apiGraph.sid; + const task = value.executionReceipt; + Object.assign(task, { + sid: output.sid, + client_run_id: identity.clientRunId, + run_input_hash: identity.runInputHash, + workflow_tab_id: output.workflowTabId, + workflow_canvas_epoch: 7, + workflow_title: 'Protocol DDIM', + workflow_snapshot: snapshot, + ...(targetNode ? { node_id: output.nodeId } : {}), + }); + const run = value.canonicalAccountingProof.run; + Object.assign(run, { workflow_title: task.workflow_title, workflow_snapshot: snapshot }); + value.canonicalAccountingProof.graphCompleted = { + type: 'graph_completed', + sid: task.sid, + task_id: task.task_id, + client_run_id: task.client_run_id, + run_input_hash: task.run_input_hash, + workflow_tab_id: task.workflow_tab_id, + workflow_canvas_epoch: task.workflow_canvas_epoch, + ...(targetNode ? { node_id: output.nodeId } : {}), + executionTime: 1, + runtimeFingerprint: task.runtimeFingerprint, + deterministicMode: null, + runtimeHints: { + ...structuredClone(value.apiGraph.runtimeHints), + controlledArtifacts: [], + loaderContract: ['modules.DiffusersImage.LoadPipeline'], + }, + runtimeBudget: managed + ? { + applied: false, + reason: 'CUDA budget is advisory; reset PyTorch process memory fraction to full device.', + cuda_index: 0, + cuda_budget_policy: 'advisory', + fraction: 1, + model_repo: value.apiGraph.runtimeHints.modelRepo, + model_name: value.apiGraph.runtimeHints.modelName, + execution_path: null, + offload_mode: 'none', + } + : { applied: false, reason: 'Runtime hints did not target a CUDA device.' }, + runtimeMeasurement: task.runtimeMeasurement, + runtimePreparation: null, + resourceRetryHistory: [], + }; + return value; + } finally { + await server.close(); + if (previousWindow === undefined) delete globalThis.window; + else globalThis.window = previousWindow; + } +} + export function appliedOrderCase() { const literal = (value) => ({ value }); const adapters = [0, 1].map((scale, index) => ({ diff --git a/scripts/canonical-runtime-hints.mjs b/scripts/canonical-runtime-hints.mjs new file mode 100644 index 00000000..55dca610 --- /dev/null +++ b/scripts/canonical-runtime-hints.mjs @@ -0,0 +1,384 @@ +import assert from 'node:assert/strict'; + +const transportKeys = ['clientRunId', 'runInputHash', 'workflowTabId', 'workflowCanvasEpoch', 'workflowSnapshot']; +const optionalTransportKeys = ['workflowTitle', 'nodeId']; +const managedKeys = `source device cudaIndex modelType mode modelRepo modelName resolvedModelRepo resolvedArtifact + modelDependencies dtype resourceMode resolvedResourceMode quantizationMode quantizedComponents autoOffload offloadMode + supportedOffloadModes resourcePlan autoFieldOverrides optimizationQualificationForm resourceRetryModes resourceRetryPlans + compatibilityStatus cudaBudgetPolicy enforceCudaBudget`.split(/\s+/u); +const memoryKeys = [ + 'cudaMemoryFreeBytes', + 'cudaMemoryTotalBytes', + 'requestedCudaReserveBytes', + 'requestedCudaBudgetBytes', +]; +const same = (actual, expected, label) => assert.deepEqual(actual, expected, label); +const record = (value) => value && typeof value === 'object' && !Array.isArray(value); +const exactKeys = (value, keys, label) => { + assert.ok(record(value), label); + same(Object.keys(value).sort(), [...keys].sort(), label); +}; +const boundedString = (value) => typeof value === 'string' && value.length > 0 && value.length <= 512; + +// canonicalGraphIdentity intentionally preserves its historical v1/v2 vectors; +// it is not a complete executable-envelope validator. In particular, loops and +// servicePackage affect backend execution outside nodes/paths. Close this +// initial accounting scope before comparing canonical identities, even for an +// unhinted graph. Empty loops match the backend's no-loop behavior. +export function assertCanonicalDdimGraphEnvelope(apiGraph) { + const keys = new Set(['sid', 'nodes', 'paths', 'runtimeHints', 'loops']); + assert.ok( + record(apiGraph) && Object.keys(apiGraph).every((key) => keys.has(key)), + 'Unsupported canonical graph top-level execution authority.', + ); + assert.ok(boundedString(apiGraph.sid), 'Unsupported canonical graph session identity.'); + if (Object.hasOwn(apiGraph, 'loops')) + same(apiGraph.loops, [], 'Unsupported canonical graph loops; only an absent or empty loop list is accounted.'); +} + +/** Closed policy for the existing ordinary five-node resident DDIM path only. + * The caller first validates every consumed field and producer projection. + * Completion is an original native frame, never a replacement GET task body. + */ +export function canonicalDdimRuntimeHintAccounting({ apiGraph, consumed, plan, runtimeEvidence, digest }) { + const hints = apiGraph.runtimeHints; + assert.equal(plan.dtype, 'float32', 'Hinted DDIM dtype variants need a separate accounting policy.'); + assert.equal( + plan.modelRepo, + 'google/ddpm-cifar10-32', + 'Hinted DDIM model variants need a separate accounting policy.', + ); + assert.ok(record(runtimeEvidence), 'Declared runtime hints require original completion evidence.'); + const { run, output, graphCompleted: completed } = runtimeEvidence; + assert.ok(record(completed), 'Original completion frame is required for declared runtime hints.'); + const task = run?.task; + const managed = Object.hasOwn(hints, 'source'); + const optional = optionalTransportKeys.filter((key) => Object.hasOwn(hints, key)); + const memory = memoryKeys.filter((key) => Object.hasOwn(hints, key)); + exactKeys( + hints, + [...transportKeys, ...optional, ...(managed ? managedKeys : []), ...memory], + 'Unknown or incomplete canonical runtime hints.', + ); + assert.ok(JSON.stringify(hints).length <= 8 * 1024 * 1024, 'Canonical runtime hints exceed their bound.'); + assert.ok(managed || memory.length === 0, 'Transport-only hints cannot declare a CUDA budget.'); + for (const key of ['clientRunId', 'runInputHash', 'workflowTabId']) + assert.ok(boundedString(hints[key]), `Missing runtime correlation ${key}.`); + assert.ok( + Number.isSafeInteger(hints.workflowCanvasEpoch) && hints.workflowCanvasEpoch >= 0, + 'Invalid workflow canvas epoch.', + ); + assert.equal(task?.status, 'completed', 'Canonical hinted task is not completed.'); + assert.equal(task.attempt_index, 0, 'Canonical retries are outside the reviewed scope.'); + assert.ok(task.resourceCandidateId == null, 'Canonical Expert task retains an Auto candidate.'); + assert.ok( + !task.runtimeHints || Object.keys(task.runtimeHints).length === 0, + 'Canonical task contains unreviewed runtime hints.', + ); + assert.equal(output?.attemptIndex, 0, 'Canonical hinted output attempt differs.'); + assert.ok( + boundedString(output?.id) && boundedString(output?.nodeId) && boundedString(output?.fieldKey), + 'Canonical hinted output identity is missing.', + ); + assert.equal(output?.resolvedExecutionInputs?.attemptIndex, 0, 'Canonical hinted accounting attempt differs.'); + same(consumed, output.resolvedExecutionInputs, 'Canonical hinted consumed receipt differs from the original output.'); + assert.equal(output.nodeId, consumed.nodeId, 'Canonical hinted output owner differs from accounting.'); + assert.equal(output.taskId, task.task_id, 'Canonical hinted output belongs to another task.'); + assert.equal( + output.resolvedExecutionInputs.taskId, + task.task_id, + 'Canonical hinted accounting belongs to another task.', + ); + assert.equal(run.workflow_id, hints.workflowTabId, 'Canonical hinted run workflow differs.'); + const persisted = (run.outputs ?? []).filter((row) => row.id === output.id && row.taskId === task.task_id); + assert.equal(persisted.length, 1, 'Canonical hinted output is not unique in the original GET.'); + for (const key of [ + 'taskId', + 'attemptIndex', + 'clientRunId', + 'runInputHash', + 'workflowTabId', + 'formSnapshot', + 'graphSnapshot', + 'apiGraphSnapshot', + 'resolvedExecutionInputs', + 'mediaHash', + 'mediaItems', + 'nodeId', + 'fieldKey', + ]) { + assert.notEqual(output[key], undefined, `Original hinted output ${key} is missing.`); + same(output[key], persisted[0][key], `Original hinted output ${key} differs.`); + } + same(output.apiGraphSnapshot, apiGraph, 'Hinted submitted/output API graph differs.'); + const identityKeys = { + clientRunId: 'client_run_id', + runInputHash: 'run_input_hash', + workflowTabId: 'workflow_tab_id', + workflowCanvasEpoch: 'workflow_canvas_epoch', + }; + assert.ok(task.workflow_form_epoch == null, 'Unexpected raw task form epoch.'); + for (const [hint, wire] of Object.entries(identityKeys)) { + same(task[wire], hints[hint], `Raw task ${wire} differs from submitted hints.`); + same(completed?.[wire], hints[hint], `Completion ${wire} differs from submitted hints.`); + if (hint !== 'workflowCanvasEpoch') same(output[hint], hints[hint], `Output ${hint} differs from submitted hints.`); + } + exactKeys( + completed, + [ + 'type', + 'sid', + 'task_id', + ...Object.values(identityKeys), + ...(Object.hasOwn(hints, 'nodeId') ? ['node_id'] : []), + 'executionTime', + 'runtimeFingerprint', + 'deterministicMode', + 'runtimeHints', + 'runtimeBudget', + 'runtimeMeasurement', + 'runtimePreparation', + 'resourceRetryHistory', + ], + 'Original graph_completed frame shape differs.', + ); + assert.equal(completed.type, 'graph_completed'); + assert.equal(completed.task_id, task.task_id, 'Completion belongs to another task.'); + assert.ok(boundedString(completed.sid), 'Completion session is missing.'); + assert.equal(completed.sid, task.sid, 'Completion/raw task session differs.'); + if (apiGraph.sid !== undefined) assert.equal(completed.sid, apiGraph.sid, 'Submitted/completion session differs.'); + if (output.sid != null) assert.equal(completed.sid, output.sid, 'Output/completion session differs.'); + if (Object.hasOwn(hints, 'nodeId')) { + assert.equal(hints.nodeId, output.nodeId, 'Targeted runtime output owner differs.'); + assert.equal(task.node_id, hints.nodeId, 'Raw task target differs.'); + assert.equal(completed.node_id, hints.nodeId, 'Completion target differs.'); + } else assert.ok(task.node_id == null, 'Unexpected raw task target.'); + same(completed.resourceRetryHistory, [], 'Canonical completion contains retry history.'); + assert.ok( + record(completed.runtimeFingerprint) && record(completed.runtimeFingerprint.backendSource), + 'Structured completion runtime/source is missing.', + ); + same(completed.runtimeFingerprint, task.runtimeFingerprint, 'Completion/raw task runtime or source differs.'); + assert.ok(record(completed.runtimeMeasurement), 'Completion measurement is missing.'); + same(completed.runtimeMeasurement, task.runtimeMeasurement, 'Completion/raw task measurement differs.'); + assert.ok( + Number.isFinite(completed.executionTime) && completed.executionTime > 0, + 'Completion execution duration is missing.', + ); + assert.ok( + Number.isFinite(task.started_at) && Number.isFinite(task.completed_at) && task.completed_at >= task.started_at, + 'Original hinted task duration is missing.', + ); + assert.ok( + completed.executionTime <= task.completed_at - task.started_at + 1, + 'Completion duration exceeds the original task interval.', + ); + // This initial ordinary route does not add a deterministic receipt. A future + // route must join its native settings rather than treating them as transport. + assert.ok( + apiGraph.deterministicMode == null && completed.deterministicMode == null, + 'Hinted deterministic execution needs a separate accounting policy.', + ); + same( + completed.runtimePreparation ?? null, + task.runtimePreparation ?? null, + 'Completion/raw task preparation differs.', + ); + if (completed.runtimePreparation != null) { + assert.ok( + record(completed.runtimePreparation) && completed.runtimePreparation.resourceMode === 'expert', + 'Canonical runtime preparation is outside Expert scope.', + ); + for (const key of ['workflowAuto', 'mutationPreparation', 'policyPreparation']) + assert.ok( + !Object.hasOwn(completed.runtimePreparation, key), + 'Automatic or mutation preparation is outside canonical scope.', + ); + } + const snapshot = hints.workflowSnapshot; + assert.ok( + record(snapshot) && Array.isArray(snapshot.nodes) && Array.isArray(snapshot.edges), + 'Original workflow snapshot is missing.', + ); + same( + snapshot.nodes.map((node) => node.id).sort(), + Object.keys(apiGraph.nodes).sort(), + 'Workflow snapshot owner scope differs.', + ); + for (const node of snapshot.nodes) { + assert.ok(!node.data?.blockInstanceV2, 'Block snapshot authority is outside ordinary DDIM scope.'); + assert.equal(node.data?.module, apiGraph.nodes[node.id]?.module, 'Workflow snapshot module differs.'); + assert.equal(node.data?.action, apiGraph.nodes[node.id]?.action, 'Workflow snapshot action differs.'); + } + same(snapshot.studioForm, output.formSnapshot, 'Submitted snapshot/output form differs.'); + assert.equal(output.formSnapshot?.modelType, plan.modelType, 'Original hinted form model differs.'); + assert.equal(output.formSnapshot?.mode, 'unconditional_image', 'Original hinted form task differs.'); + for (const key of ['nodes', 'edges', 'viewport']) + same(snapshot[key], output.graphSnapshot?.[key], `Submitted snapshot/output ${key} differs.`); + same(task.workflow_snapshot, snapshot, 'Raw task workflow snapshot differs.'); + same(run.workflow_snapshot, snapshot, 'Raw run workflow snapshot differs.'); + if (Object.hasOwn(hints, 'workflowTitle')) { + assert.ok( + typeof hints.workflowTitle === 'string' && + hints.workflowTitle.length > 0 && + hints.workflowTitle.length <= 256 && + hints.workflowTitle.trim() === hints.workflowTitle, + 'Workflow title would be coerced.', + ); + assert.equal(task.workflow_title, hints.workflowTitle, 'Raw task workflow title differs.'); + assert.equal(run.workflow_title, hints.workflowTitle, 'Raw run workflow title differs.'); + } else { + assert.ok(task.workflow_title == null && run.workflow_title == null, 'Unsubmitted workflow title is present.'); + } + // Check the actual FE correlation algorithm; this 32-bit value is a join, + // never a substitute for the SHA-bound originals and executed field receipt. + const ordered = (value) => + Array.isArray(value) + ? value.map(ordered) + : record(value) + ? Object.fromEntries( + Object.entries(value) + .sort(([a], [b]) => a.localeCompare(b)) + .map(([key, item]) => [key, ordered(item)]), + ) + : value; + const input = JSON.stringify( + ordered({ + form: output.formSnapshot, + nodes: apiGraph.nodes, + paths: apiGraph.paths, + deterministicMode: apiGraph.deterministicMode, + provenance: apiGraph.provenance, + }), + ); + let correlation = 0x811c9dc5; + for (let index = 0; index < input.length; index += 1) + correlation = Math.imul(correlation ^ input.charCodeAt(index), 0x01000193); + assert.equal( + hints.runInputHash, + `run_${(correlation >>> 0).toString(16).padStart(8, '0')}`, + 'Submitted run input hash differs from original form/graph.', + ); + same( + completed.runtimeHints, + { ...hints, controlledArtifacts: [], loaderContract: ['modules.DiffusersImage.LoadPipeline'] }, + 'Actual worker hints differ from the submitted DDIM policy.', + ); + let budgetDecision = 'no-cuda-target'; + if (managed) { + const expected = { + source: 'studio', + device: plan.device, + modelType: plan.modelType, + mode: 'unconditional_image', + modelRepo: plan.modelRepo, + resolvedModelRepo: plan.modelRepo, + resolvedArtifact: plan.modelRepo, + modelDependencies: [], + dtype: plan.dtype, + resourceMode: 'expert', + resolvedResourceMode: 'expert', + quantizationMode: 'none', + quantizedComponents: [], + autoOffload: false, + offloadMode: 'none', + supportedOffloadModes: ['none', 'model_cpu'], + autoFieldOverrides: [], + resourceRetryModes: ['model_cpu'], + resourceRetryPlans: [], + compatibilityStatus: 'expert', + cudaBudgetPolicy: 'advisory', + enforceCudaBudget: false, + }; + for (const [key, item] of Object.entries(expected)) + same(hints[key], item, `Managed DDIM hint ${key} differs from executed controls.`); + assert.equal(hints.modelName, 'DDIM CIFAR-10 32x32', 'Managed DDIM profile variant is unsupported.'); + const match = /^cuda:(\d+)$/u.exec(plan.device); + assert.ok( + match && plan.modelRepo === 'google/ddpm-cifar10-32', + 'Managed DDIM device/model variant is unsupported.', + ); + assert.equal(hints.cudaIndex, Number(match[1])); + same( + hints.resourcePlan, + { + summary: `Expert: ${plan.dtype}, none, off`, + executionPath: null, + resolvedModelRepo: plan.modelRepo, + resolvedArtifact: plan.modelRepo, + dtype: plan.dtype, + quantizationMode: 'none', + quantizedComponents: [], + autoOffload: false, + offloadMode: 'none', + }, + 'Managed resource summary contradicts execution.', + ); + same( + hints.optimizationQualificationForm, + output.formSnapshot, + 'Optimization observation form differs from original output.', + ); + for (const [key, item] of Object.entries({ + modelType: plan.modelType, + mode: 'unconditional_image', + resourceMode: 'expert', + dtype: plan.dtype, + device: plan.device, + quantizationMode: 'none', + offloadMode: 'none', + autoOffload: false, + })) + same(output.formSnapshot[key], item, `Managed observation form ${key} differs.`); + // These counters remain advisory. When present, require the exact FE + // arithmetic and the actual successful server reset branch, not fraction1 + // alone (the failure branch also reports fraction1). + if (memory.length) { + assert.ok( + Object.hasOwn(hints, 'cudaMemoryTotalBytes') && + Object.hasOwn(hints, 'requestedCudaReserveBytes') && + Object.hasOwn(hints, 'requestedCudaBudgetBytes'), + 'Incomplete advisory memory counters.', + ); + for (const key of memory) + assert.ok(Number.isSafeInteger(hints[key]) && hints[key] >= 0, `Invalid advisory byte counter ${key}.`); + const total = hints.cudaMemoryTotalBytes; + const free = hints.cudaMemoryFreeBytes; + assert.ok(total > 0 && (free === undefined || free <= total), 'Invalid advisory memory total.'); + const reserve = Math.max(1024 ** 3, Math.floor(total * 0.1)); + const fromFree = free && reserve ? Math.max(0, free - reserve) : undefined; + const fromTotal = Math.max(0, total - reserve); + const budget = fromFree && fromTotal ? Math.min(fromFree, fromTotal) : (fromFree ?? fromTotal); + assert.equal(hints.requestedCudaReserveBytes, reserve); + assert.equal(hints.requestedCudaBudgetBytes, budget); + } + same( + completed.runtimeBudget, + { + applied: false, + reason: 'CUDA budget is advisory; reset PyTorch process memory fraction to full device.', + cuda_index: hints.cudaIndex, + cuda_budget_policy: 'advisory', + fraction: 1, + model_repo: hints.modelRepo, + model_name: hints.modelName, + execution_path: null, + offload_mode: 'none', + }, + 'Actual advisory CUDA budget reset is unproved or differs.', + ); + budgetDecision = 'advisory-reset-recorded'; + } else + same( + completed.runtimeBudget, + { applied: false, reason: 'Runtime hints did not target a CUDA device.' }, + 'Transport-only budget decision differs.', + ); + return { + policy: 'canonical-ddim-runtime-hints-v1', + route: managed ? 'studio-expert' : 'correlation-only', + budgetDecision, + submittedHintsHash: digest('canonical-runtime-hints-v1', hints), + graphCompletedHash: digest('canonical-graph-completed-v1', completed), + }; +} diff --git a/scripts/canonical-runtime-hints.test.mjs b/scripts/canonical-runtime-hints.test.mjs new file mode 100644 index 00000000..353f2794 --- /dev/null +++ b/scripts/canonical-runtime-hints.test.mjs @@ -0,0 +1,252 @@ +import assert from 'node:assert/strict'; +import { test } from 'node:test'; +import { canonicalHookCase, hintedCanonicalHookCase } from './canonical-provenance-fixtures.mjs'; +import { canonicalAccountingExecutionPlan, createRunProvenance } from './live-proof-provenance.mjs'; + +const accounting = (value, consumed = value.executedOutput.resolvedExecutionInputs) => + canonicalAccountingExecutionPlan({ + apiGraph: value.apiGraph, + expectedApiGraph: value.canonicalAccountingProof.expectedApiGraph, + consumed, + target: value.canonicalAccountingProof.target, + runtimeEvidence: { + run: value.canonicalAccountingProof.run, + output: value.executedOutput, + graphCompleted: value.canonicalAccountingProof.graphCompleted, + }, + }); + +test('real FE managed DDIM producer hints are accounted with original completion and GET authority', async () => { + const value = await hintedCanonicalHookCase(); + const before = JSON.stringify(value); + assert.equal(value.apiGraph.runtimeHints.source, 'studio'); + assert.deepEqual(value.apiGraph.runtimeHints.resourceRetryPlans, []); + assert.equal(value.executionReceipt.runtimeHints, undefined, 'GET does not expose runtimeHints'); + const result = accounting(value); + assert.equal(result.plan.device, 'cuda:0'); + assert.equal(result.plan.runtimeHintAccounting.policy, 'canonical-ddim-runtime-hints-v1'); + assert.equal(result.plan.runtimeHintAccounting.budgetDecision, 'advisory-reset-recorded'); + const provenance = createRunProvenance(value); + assert.equal(provenance.graph.executionPlanHash, result.hash); + assert.equal(JSON.stringify(value), before, 'original packages and receipts stay untouched'); +}); + +test('real FE correlation-only DDIM producer retains its exact no-CUDA budget decision', async () => { + const value = await hintedCanonicalHookCase({ managed: false, targetNode: true }); + assert.equal(accounting(value).plan.runtimeHintAccounting.budgetDecision, 'no-cuda-target'); + assert.doesNotThrow(() => createRunProvenance(value)); +}); + +test('actual managed producer without advisory counters retains the same strict execution and completion joins', async () => { + const value = await hintedCanonicalHookCase({ memory: false }); + assert.equal(value.apiGraph.runtimeHints.cudaMemoryTotalBytes, undefined); + assert.doesNotThrow(() => createRunProvenance(value)); +}); + +test('the ordinary DDIM accounting envelope rejects loops and unsupported top-level execution authority', async () => { + const original = await hintedCanonicalHookCase(); + const authorities = { + loops: [{ id: 'unreviewed-loop', bodyNodeIds: ['node-05'], resultNodeId: 'node-05', iterations: 2, maxRetries: 1 }], + servicePackage: { package: {}, values: {} }, + executionPurpose: { kind: 'preview' }, + workflowAutoPlan: { schemaVersion: 1, graphHash: 'unreviewed' }, + deterministicMode: { enabled: false, strict: false }, + provenance: { source: 'unreviewed-scope' }, + futureExecutionAuthority: {}, + }; + for (const [key, authority] of Object.entries(authorities)) { + const value = structuredClone(original); + value.apiGraph[key] = authority; + assert.equal(value.apiGraph, value.executedOutput.apiGraphSnapshot); + assert.equal(value.apiGraph, value.canonicalAccountingProof.run.outputs[0].apiGraphSnapshot); + const accepted = []; + for (const [route, validate] of [ + ['accounting', accounting], + ['factory', createRunProvenance], + ]) { + try { + validate(value); + accepted.push(route); + } catch (error) { + assert.match(error.message, /Unsupported canonical graph/); + } + } + assert.deepEqual(accepted, [], `${key} must not survive either graph/output join`); + } + const unhinted = canonicalHookCase(); + unhinted.apiGraph.loops = authorities.loops; + assert.throws(() => accounting(unhinted), /Unsupported canonical graph/); + assert.throws(() => createRunProvenance(unhinted), /Unsupported canonical graph/); + const unsupportedSource = structuredClone(original); + unsupportedSource.canonicalAccountingProof.expectedApiGraph.loops = authorities.loops; + assert.throws(() => accounting(unsupportedSource), /Unsupported canonical graph/); + assert.throws(() => createRunProvenance(unsupportedSource), /Unsupported canonical graph/); +}); + +test('the DDIM envelope permits only absent or explicitly empty loops without changing legacy proof bytes', async () => { + for (const value of [canonicalHookCase(), await hintedCanonicalHookCase()]) { + const before = createRunProvenance(value); + value.apiGraph.loops = []; + assert.deepEqual(createRunProvenance(value), before); + for (const malformed of [null, {}, '', false]) { + value.apiGraph.loops = malformed; + assert.throws(() => accounting(value), /Unsupported canonical graph/); + assert.throws(() => createRunProvenance(value), /Unsupported canonical graph/); + } + } +}); + +test('hinted canonical accounting and the shared factory fail closed on unsupported authority and broken joins', async () => { + const original = await hintedCanonicalHookCase(); + const frame = (value) => value.canonicalAccountingProof.graphCompleted; + const hints = (value) => value.apiGraph.runtimeHints; + const bothHints = (value, key, item) => { + hints(value)[key] = item; + frame(value).runtimeHints[key] = structuredClone(item); + }; + const changes = { + 'missing original completion': (value) => { + delete value.canonicalAccountingProof.graphCompleted; + }, + 'unknown submitted authority even if echoed': (value) => { + bothHints(value, 'futureAuthority', true); + }, + 'unknown workflow form epoch': (value) => { + bothHints(value, 'workflowFormEpoch', 7); + }, + 'execution purpose': (value) => { + bothHints(value, 'executionPurpose', { kind: 'preview' }); + }, + Auto: (value) => { + bothHints(value, 'resourceMode', 'auto'); + }, + 'Auto candidate': (value) => { + bothHints(value, 'autoResourceCandidateId', 'invented'); + }, + 'Auto task': (value) => { + value.executionReceipt.resourceCandidateId = 'invented'; + }, + 'invented GET hints': (value) => { + value.executionReceipt.runtimeHints = structuredClone(hints(value)); + }, + 'worker changed dtype': (value) => { + frame(value).runtimeHints.dtype = 'float16'; + }, + 'offload variant': (value) => { + bothHints(value, 'offloadMode', 'model_cpu'); + }, + 'quantization variant': (value) => { + bothHints(value, 'quantizationMode', 'fp8'); + }, + 'model dependency variant': (value) => { + bothHints(value, 'modelDependencies', [ + { id: 'other', repo: 'other/model', revision: 'a'.repeat(40), kind: 'vae' }, + ]); + }, + 'retry plan': (value) => { + bothHints(value, 'resourceRetryPlans', [{ offloadMode: 'model_cpu' }]); + }, + 'retry state': (value) => { + frame(value).runtimeHints.resourceRetryAttempt = 0; + }, + 'retry history': (value) => { + frame(value).resourceRetryHistory.push({ attempt: 1 }); + }, + 'raw task attempt': (value) => { + value.executionReceipt.attempt_index = 1; + }, + 'output attempt': (value) => { + value.executedOutput.attemptIndex = 1; + }, + 'accounting attempt': (value) => { + value.executedOutput.resolvedExecutionInputs.attemptIndex = 1; + }, + 'completion task': (value) => { + frame(value).task_id = 'another-task'; + }, + 'completion session': (value) => { + frame(value).sid = 'another-session'; + }, + 'completion client run': (value) => { + frame(value).client_run_id = 'another-run'; + }, + 'completion run input hash': (value) => { + frame(value).run_input_hash = 'run_other'; + }, + 'completion workflow': (value) => { + frame(value).workflow_tab_id = 'another-workflow'; + }, + 'completion epoch': (value) => { + frame(value).workflow_canvas_epoch += 1; + }, + 'unexpected raw task form epoch': (value) => { + value.executionReceipt.workflow_form_epoch = 7; + }, + 'persisted output attempt': (value) => { + value.canonicalAccountingProof.run.outputs[0] = { ...value.executedOutput, attemptIndex: 1 }; + }, + 'missing original output media hash': (value) => { + delete value.executedOutput.mediaHash; + }, + 'output owner differs from accounted Preview': (value) => { + value.executedOutput.nodeId = 'node-04'; + }, + 'fraction alone after failed reset': (value) => { + frame(value).runtimeBudget.reason = + 'CUDA budget is advisory; could not reset PyTorch process memory fraction: synthetic failure'; + }, + 'enforced budget': (value) => { + bothHints(value, 'cudaBudgetPolicy', 'enforced'); + }, + 'budget decision device': (value) => { + frame(value).runtimeBudget.cuda_index = 1; + }, + 'advisory counters arithmetic': (value) => { + bothHints(value, 'requestedCudaBudgetBytes', 1); + }, + 'runtime source identity': (value) => { + frame(value).runtimeFingerprint = structuredClone(frame(value).runtimeFingerprint); + frame(value).runtimeFingerprint.backendSource.gitCommit = 'd'.repeat(40); + }, + 'runtime measurement': (value) => { + frame(value).runtimeMeasurement = { ...frame(value).runtimeMeasurement, processRssBytes: 8192 }; + }, + 'controlled artifact': (value) => { + frame(value).runtimeHints.controlledArtifacts.push({ repo: 'other/model' }); + }, + 'loader contract': (value) => { + frame(value).runtimeHints.loaderContract = ['modules.Other.Loader']; + }, + 'resource summary': (value) => { + bothHints(value, 'resourcePlan', { ...hints(value).resourcePlan, offloadMode: 'model_cpu' }); + }, + 'observation form': (value) => { + bothHints(value, 'optimizationQualificationForm', { + ...value.executedOutput.formSnapshot, + mode: 'text_to_image', + }); + }, + 'workflow title coercion': (value) => { + bothHints(value, 'workflowTitle', ' Protocol DDIM '); + value.executionReceipt.workflow_title = value.canonicalAccountingProof.run.workflow_title = ' Protocol DDIM '; + }, + 'preparation Auto route': (value) => { + value.executionReceipt.runtimePreparation = frame(value).runtimePreparation = { + resourceMode: 'expert', + workflowAuto: {}, + }; + }, + 'extra completion attempt': (value) => { + frame(value).attempt_index = 0; + }, + }; + for (const [label, change] of Object.entries(changes)) { + const value = structuredClone(original); + change(value); + assert.throws(() => accounting(value), undefined, `${label}: independent accounting`); + assert.throws(() => createRunProvenance(value), undefined, `${label}: shared factory`); + } + const unrelated = structuredClone(original.executedOutput.resolvedExecutionInputs); + unrelated.taskId = 'another-task'; + assert.throws(() => accounting(original, unrelated), /consumed receipt differs/); +}); diff --git a/scripts/live-proof-provenance.mjs b/scripts/live-proof-provenance.mjs index ddd6334b..a04f2d65 100644 --- a/scripts/live-proof-provenance.mjs +++ b/scripts/live-proof-provenance.mjs @@ -6,6 +6,7 @@ import path from 'node:path'; import { normalizeResourceRouteBinding, resourceRouteBindingHash } from './resource-route-binding.mjs'; import { createAppliedAdapterProof, validateAppliedAdapterProof } from './applied-adapter-provenance.mjs'; +import { assertCanonicalDdimGraphEnvelope, canonicalDdimRuntimeHintAccounting } from './canonical-runtime-hints.mjs'; export { validateAppliedAdapterProof } from './applied-adapter-provenance.mjs'; export const LIVE_PROOF_PROVENANCE_SCHEMA_VERSION = 2; @@ -1342,7 +1343,9 @@ function accountingDigest(kind, value) { * The optional shared-factory hook binds this join to the original task/output. * Native acceptance remains separate; the default factory path stays unchanged. */ -export function canonicalAccountingExecutionPlan({ expectedApiGraph, apiGraph, consumed, target }) { +export function canonicalAccountingExecutionPlan({ expectedApiGraph, apiGraph, consumed, target, runtimeEvidence }) { + assertCanonicalDdimGraphEnvelope(expectedApiGraph); + assertCanonicalDdimGraphEnvelope(apiGraph); same( canonicalGraphIdentity(apiGraph), canonicalGraphIdentity(expectedApiGraph), @@ -1350,10 +1353,6 @@ export function canonicalAccountingExecutionPlan({ expectedApiGraph, apiGraph, c ); assert.equal(target.modelType, 'DDIMPipeline', 'Canonical accounting model is outside the reviewed initial scope.'); assert.equal(target.task, 'unconditional_image'); - assert.ok( - !apiGraph.runtimeHints || Object.keys(apiGraph.runtimeHints).length === 0, - 'Declared runtime hints need a separate accounting policy.', - ); assert.equal(consumed?.schemaVersion, 1); assert.equal(consumed.source, 'backend-execution'); assert.equal(consumed.truncated, false); @@ -1654,13 +1653,21 @@ export function canonicalAccountingExecutionPlan({ expectedApiGraph, apiGraph, c channelsLast: recipeValues.channels_last, layerwiseCasting: recipeValues.layerwise_casting, }; + if (apiGraph.runtimeHints && Object.keys(apiGraph.runtimeHints).length > 0) + plan.runtimeHintAccounting = canonicalDdimRuntimeHintAccounting({ + apiGraph, + consumed, + plan, + runtimeEvidence, + digest: sha256Value, + }); return { ownerId: owner.row.nodeId, plan, hash: sha256Value('execution-plan-v1', plan) }; } function canonicalAccountingProofPlan({ apiGraph, executedOutput, executionReceipt, taskId, proof }) { accountingKeys( proof, - ['expectedApiGraph', 'target', 'run'], + ['expectedApiGraph', 'target', 'run', ...(Object.hasOwn(proof, 'graphCompleted') ? ['graphCompleted'] : [])], 'Canonical proof accepts original evidence, not a supplied plan.', ); const { run, target, expectedApiGraph } = proof; @@ -1706,7 +1713,13 @@ function canonicalAccountingProofPlan({ apiGraph, executedOutput, executionRecei assert.equal(consumed?.taskId, taskId, 'Canonical consumed receipt belongs to another task.'); assert.equal(consumed.attemptIndex, 0, 'Canonical consumed receipt attempt differs.'); assert.equal(consumed.nodeId, executedOutput.nodeId, 'Canonical consumed receipt output owner differs.'); - return canonicalAccountingExecutionPlan({ expectedApiGraph, apiGraph, consumed, target }); + return canonicalAccountingExecutionPlan({ + expectedApiGraph, + apiGraph, + consumed, + target, + runtimeEvidence: { run, output: executedOutput, graphCompleted: proof.graphCompleted }, + }); } export function createRunProvenance({ diff --git a/scripts/release-contract-core.mjs b/scripts/release-contract-core.mjs index 91ad6030..ec44151e 100644 --- a/scripts/release-contract-core.mjs +++ b/scripts/release-contract-core.mjs @@ -1,4 +1,5 @@ import { canonicalJsonHash } from './canonical-json.mjs'; +import { assertCanonicalDdimGraphEnvelope } from './canonical-runtime-hints.mjs'; import assert from 'node:assert/strict'; import { createHash } from 'node:crypto'; import { lstatSync, readFileSync, realpathSync } from 'node:fs'; @@ -177,6 +178,7 @@ export function validateCanonicalWorkflowEvidence({ outputPackage, run, provenance, + graphCompleted, }) { assert.equal(provenance?.format, 'modiff.live-proof.provenance.v2'); assert.deepEqual(validateRunProvenance(provenance), [], 'Shared provenance validation failed.'); @@ -248,8 +250,15 @@ export function validateCanonicalWorkflowEvidence({ ); const hasAccounting = consumed.fieldAccountingStatus !== undefined || consumed.nodes.some((row) => row.fieldAccounting !== undefined); + if (hasAccounting) assertCanonicalDdimGraphEnvelope(creator.apiGraph); const plan = hasAccounting - ? canonicalAccountingExecutionPlan({ expectedApiGraph, apiGraph: output.apiGraphSnapshot, consumed, target }) + ? canonicalAccountingExecutionPlan({ + expectedApiGraph, + apiGraph: output.apiGraphSnapshot, + consumed, + target, + runtimeEvidence: { run, output, graphCompleted }, + }) : executionPlanIdentity(output.apiGraphSnapshot); if (hasAccounting) { assert.equal(consumed.nodeId, output.nodeId, 'Canonical consumed receipt output owner differs.'); @@ -580,6 +589,12 @@ export async function readCanonicalWorkflowEvidence({ clientRoot, backendRoot, w const creator = readJson(evidence.creatorPackage); const outputPackage = readJson(evidence.outputPackage); const run = readJson(evidence.runDetail); + // Optional for legacy unhinted evidence; hinted DDIM accounting requires this + // original native frame. read() retains and rechecks its original bytes/hash. + const graphCompleted = + evidence.graphCompleted === undefined + ? undefined + : JSON.parse(read(evidence.graphCompleted, 16 * 1024 * 1024).bytes.toString('utf8')); const output = outputPackage.latestOutput; assert.ok( output?.apiGraphSnapshot && output?.graphSnapshot && creator.graph && creator.apiGraph, @@ -706,7 +721,14 @@ export async function readCanonicalWorkflowEvidence({ clientRoot, backendRoot, w taskId: run.task?.task_id, ...(output.resolvedExecutionInputs?.fieldAccountingStatus !== undefined || output.resolvedExecutionInputs?.nodes?.some((row) => row.fieldAccounting !== undefined) - ? { canonicalAccountingProof: { expectedApiGraph, target, run } } + ? { + canonicalAccountingProof: { + expectedApiGraph, + target, + run, + ...(graphCompleted === undefined ? {} : { graphCompleted }), + }, + } : {}), capturedAt: new Date(run.task?.completed_at * 1000).toISOString(), }); @@ -717,6 +739,7 @@ export async function readCanonicalWorkflowEvidence({ clientRoot, backendRoot, w outputPackage, run, provenance, + graphCompleted, }); // Recheck before any caller writes. All generated metadata remains separate // from the untouched exported packages and the raw task/observation bodies. diff --git a/scripts/template-qualification.test.mjs b/scripts/template-qualification.test.mjs index 81f73fdc..e2b9fb7c 100644 --- a/scripts/template-qualification.test.mjs +++ b/scripts/template-qualification.test.mjs @@ -26,7 +26,7 @@ import { validateCanonicalWorkflowEvidence, } from './release-contract-core.mjs'; import { canonicalGraphIdentity, sha256Value } from './live-proof-provenance.mjs'; -import { mockedDdimAccountingFixture } from './canonical-provenance-fixtures.mjs'; +import { hintedCanonicalHookCase, mockedDdimAccountingFixture } from './canonical-provenance-fixtures.mjs'; import { loadTemplateRuntime } from './template-gallery-harness.mjs'; const ROOT = resolve(import.meta.dirname, '..'); @@ -497,8 +497,9 @@ test('standalone canonical recording has an explicit evidence boundary without a assert.doesNotMatch(result.stderr, /not in the runtime catalog/); }); -async function writeStandaloneEvidence(directory, { input = false, accounting = false } = {}) { +async function writeStandaloneEvidence(directory, { input = false, accounting = false, hinted = false } = {}) { const nativeFixture = accounting ? mockedDdimAccountingFixture() : null; + const hintedFixture = hinted ? await hintedCanonicalHookCase() : null; const backendRoot = join(directory, 'backend'); const evidenceRoot = join(directory, 'originals'); mkdirSync(evidenceRoot, { recursive: true }); @@ -597,7 +598,7 @@ async function writeStandaloneEvidence(directory, { input = false, accounting = }, ], }); - const [api] = await exportCanonicalWorkflowGraphs(ROOT, [graph]); + let [api] = await exportCanonicalWorkflowGraphs(ROOT, [graph]); if (nativeFixture) assert.equal(canonicalGraphIdentity(api).hash, canonicalGraphIdentity(nativeFixture.apiGraph).hash); else @@ -608,6 +609,7 @@ async function writeStandaloneEvidence(directory, { input = false, accounting = autoOffload: false, quantizationMode: 'none', }; + if (hintedFixture) api = hintedFixture.apiGraph; const source = { gitCommit: 'b'.repeat(40), files: [{ path: 'main.py', sha256: 'c'.repeat(64) }] }; source.fingerprint = sha256Value('backend-source-v1', source); const runtime = { @@ -625,13 +627,14 @@ async function writeStandaloneEvidence(directory, { input = false, accounting = capturedAt: '2026-10-27T00:00:00.000Z', }, }; - const form = { + const form = hintedFixture?.executedOutput.formSnapshot ?? { modelType: manifest.modelType, mode: manifest.mode, prompt: 'Synthetic metadata-only protocol test', seed: 7, }; const task = { + ...(hintedFixture ? hintedFixture.executionReceipt : {}), task_id: nativeFixture?.receipt.taskId ?? 'synthetic-task', status: 'completed', attempt_index: 0, @@ -651,14 +654,14 @@ async function writeStandaloneEvidence(directory, { input = false, accounting = const output = { id: 'synthetic-output', taskId: task.task_id, - clientRunId: 'synthetic-run', - runInputHash: 'run_synthetic', - workflowTabId: 'synthetic-owned', + clientRunId: hintedFixture?.executedOutput.clientRunId ?? 'synthetic-run', + runInputHash: hintedFixture?.executedOutput.runInputHash ?? 'run_synthetic', + workflowTabId: hintedFixture?.executedOutput.workflowTabId ?? 'synthetic-owned', attemptIndex: 0, nodeId: nativeFixture?.receipt.nodeId ?? 'preview', fieldKey: 'image', formSnapshot: form, - graphSnapshot: graph, + graphSnapshot: hintedFixture?.executedOutput.graphSnapshot ?? graph, apiGraphSnapshot: api, mediaHash: `sha256:bytes:${media.sha256}`, mediaItems: [ @@ -702,7 +705,21 @@ async function writeStandaloneEvidence(directory, { input = false, accounting = workflowId: manifest.id, creatorPackage: write(join(evidenceRoot, 'creator.json'), creator), outputPackage: write(join(evidenceRoot, 'output.json'), outputPackage), - runDetail: write(join(evidenceRoot, 'run.json'), { workflow_id: output.workflowTabId, task, outputs: [output] }), + runDetail: write(join(evidenceRoot, 'run.json'), { + workflow_id: output.workflowTabId, + task, + outputs: [output], + ...(hintedFixture ? { workflow_title: task.workflow_title, workflow_snapshot: task.workflow_snapshot } : {}), + }), + ...(hintedFixture + ? { + graphCompleted: write(join(evidenceRoot, 'graph-completed.json'), { + ...hintedFixture.canonicalAccountingProof.graphCompleted, + runtimeFingerprint: runtime, + runtimeMeasurement: task.runtimeMeasurement, + }), + } + : {}), nodes: write(join(evidenceRoot, 'nodes.json'), { nodes: Object.fromEntries( Object.values(api.nodes).map((node) => [ @@ -867,6 +884,114 @@ test('actual mocked DDIM accounting records through the shared factory and reval } }); +test('hinted DDIM descriptor retains and revalidates the hash-bound original completion without adding GET hints', async () => { + const directory = mkdtempSync(join(tmpdir(), 'modiff-template-qualification-ddim-hints-')); + try { + const fixture = await writeStandaloneEvidence(directory, { accounting: true, hinted: true }); + const completionPath = join(fixture.evidenceRoot, 'graph-completed.json'); + const runPath = join(fixture.evidenceRoot, 'run.json'); + const originals = [fixture.evidencePath, completionPath, runPath].map((path) => readFileSync(path)); + const readEvidence = () => + readCanonicalWorkflowEvidence({ + clientRoot: ROOT, + backendRoot: fixture.backendRoot, + workflowId: fixture.manifest.id, + evidencePath: fixture.evidencePath, + }); + const result = await readEvidence(); + assert.equal(result.provenance.graph.executionPlan.runtimeHintAccounting.policy, 'canonical-ddim-runtime-hints-v1'); + assert.ok( + result.retainedFiles.some( + (ref) => ref.path === 'graph-completed.json' && ref.sha256 === fixture.descriptor.graphCompleted.sha256, + ), + ); + assert.ok(Object.values(result.receipt.qualificationClaims).every((value) => value === false)); + assert.equal(JSON.parse(readFileSync(runPath, 'utf8')).task.runtimeHints, undefined); + [fixture.evidencePath, completionPath, runPath].forEach((path, index) => + assert.deepEqual(readFileSync(path), originals[index]), + ); + const descriptor = structuredClone(fixture.descriptor); + delete descriptor.graphCompleted; + fixture.write(fixture.evidencePath, descriptor); + await assert.rejects(readEvidence, /completion/); + fixture.write(fixture.evidencePath, fixture.descriptor); + writeFileSync(completionPath, Buffer.concat([originals[1], Buffer.from(' ')])); + await assert.rejects(readEvidence, /size|hash/); + writeFileSync(completionPath, originals[1]); + const wrongTask = JSON.parse(originals[1]); + wrongTask.task_id = 'another-task'; + descriptor.graphCompleted = fixture.write(completionPath, wrongTask); + fixture.write(fixture.evidencePath, descriptor); + await assert.rejects(readEvidence, /another task/); + } finally { + disposeFixture(directory); + } +}); + +test('canonical descriptor rejects top-level loop and service authority even when every original API snapshot agrees', async () => { + const directory = mkdtempSync(join(tmpdir(), 'modiff-template-qualification-authority-')); + try { + const fixture = await writeStandaloneEvidence(directory, { accounting: true, hinted: true }); + const original = Object.fromEntries( + ['creator', 'output', 'run'].map((name) => [ + name, + JSON.parse(readFileSync(join(fixture.evidenceRoot, `${name}.json`), 'utf8')), + ]), + ); + const authorities = { + loops: [ + { id: 'unreviewed-loop', bodyNodeIds: ['node-05'], resultNodeId: 'node-05', iterations: 2, maxRetries: 1 }, + ], + servicePackage: { package: {}, values: {} }, + futureExecutionAuthority: {}, + }; + for (const [key, authority] of Object.entries(authorities)) { + const bodies = structuredClone(original); + for (const graph of [ + bodies.creator.apiGraph, + bodies.output.apiGraph, + bodies.output.latestOutput.apiGraphSnapshot, + bodies.run.outputs[0].apiGraphSnapshot, + ]) + graph[key] = structuredClone(authority); + const descriptor = structuredClone(fixture.descriptor); + descriptor.creatorPackage = fixture.write(join(fixture.evidenceRoot, 'creator.json'), bodies.creator); + descriptor.outputPackage = fixture.write(join(fixture.evidenceRoot, 'output.json'), bodies.output); + descriptor.runDetail = fixture.write(join(fixture.evidenceRoot, 'run.json'), bodies.run); + fixture.write(fixture.evidencePath, descriptor); + await assert.rejects( + () => + readCanonicalWorkflowEvidence({ + clientRoot: ROOT, + backendRoot: fixture.backendRoot, + workflowId: fixture.manifest.id, + evidencePath: fixture.evidencePath, + }), + /Unsupported canonical graph/, + ); + } + const creatorOnly = structuredClone(original); + creatorOnly.creator.apiGraph.loops = authorities.loops; + const descriptor = structuredClone(fixture.descriptor); + descriptor.creatorPackage = fixture.write(join(fixture.evidenceRoot, 'creator.json'), creatorOnly.creator); + descriptor.outputPackage = fixture.write(join(fixture.evidenceRoot, 'output.json'), creatorOnly.output); + descriptor.runDetail = fixture.write(join(fixture.evidenceRoot, 'run.json'), creatorOnly.run); + fixture.write(fixture.evidencePath, descriptor); + await assert.rejects( + () => + readCanonicalWorkflowEvidence({ + clientRoot: ROOT, + backendRoot: fixture.backendRoot, + workflowId: fixture.manifest.id, + evidencePath: fixture.evidencePath, + }), + /Unsupported canonical graph/, + ); + } finally { + disposeFixture(directory); + } +}); + test('canonical input bytes cannot be authenticated by a path and post-run copy alone', async () => { for (const input of [true, 'https://example.invalid/image.png', 'C:/runtime/image.png', 'relative/image.png']) { const directory = mkdtempSync(join(tmpdir(), 'modiff-template-qualification-input-hold-')); From d7c8f2ced7686291d33fc6f5cca129d90eb3362a Mon Sep 17 00:00:00 2001 From: Sourav Das Date: Wed, 28 Oct 2026 21:17:37 +0530 Subject: [PATCH 100/440] Pair the final follow-up checks and measured client budget --- .github/workflows/ci.yml | 4 ++-- README.md | 4 ++-- docs/deployment.md | 10 ++++++++++ scripts/bundle-budget.mjs | 6 ++++++ 4 files changed, 20 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 7922806e..a1fa869a 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -33,7 +33,7 @@ jobs: with: repository: sdevil7th/MoDiff # Reviewed variant planning and offline pinned Hub-source resolution. - ref: 8f8c40bab9a389a0199c96c1add0a26a967928bd + ref: dc26f353b5e82da7fdde7cfbd7e8d6bd786f3acc path: MoDiff persist-credentials: false - name: Verify the pinned backend supports native setup @@ -86,7 +86,7 @@ jobs: with: repository: sdevil7th/MoDiff # Match the immutable backend revision in the Client quality job. - ref: 8f8c40bab9a389a0199c96c1add0a26a967928bd + ref: dc26f353b5e82da7fdde7cfbd7e8d6bd786f3acc path: MoDiff persist-credentials: false - name: Verify the pinned backend supports native setup diff --git a/README.md b/README.md index 2c202cfb..d05a6a32 100644 --- a/README.md +++ b/README.md @@ -28,8 +28,8 @@ application source pair is: | Repository | Application source before final packaging | | ------------- | ------------------------------------------ | -| MoDiff | `8f8c40bab9a389a0199c96c1add0a26a967928bd` | -| MoDiff-client | `8f0a95e2c7267b04f9e9195e7de30a3eeb01d1b7` | +| MoDiff | `fe84ed1ad6eeb77d904742780ec511fce441e4e4` | +| MoDiff-client | `109da623e65747ae09e18cf699cf12f1485e7644` | These application source revisions were reviewed on 28 October 2026. Final documentation, CI pairing and bundled-client packaging commits can be later diff --git a/docs/deployment.md b/docs/deployment.md index a02bf981..a2253733 100644 --- a/docs/deployment.md +++ b/docs/deployment.md @@ -134,6 +134,16 @@ Run the bundle budget after changes that affect dependencies or code splitting: npm run bundle:check ``` +The reviewed authored-device import, immutable Model Install and page-owned +workspace checkpoint changes measure 671659 gzip bytes of startup JavaScript, +with a 493170-byte largest startup chunk and 327133 deferred bytes. Compared with +the accepted 9ff client, the measured growth is 1651 startup bytes, 1649 largest- +chunk bytes and 156 deferred bytes. The startup ceilings are 671670 and 493178, +retaining 11 and 8 bytes of headroom. Both deferred ceilings remain unchanged at +327269 aggregate and 65536 per chunk. The same four startup and 89 deferred +assets keep their loading membership; dependencies, chunk rules, minifier and +identity validators stay fixed. The following measurements remain historical. + The Windows saved-form and service-cache follow-up measures 669945 gzip bytes of startup JavaScript, with a 491457-byte largest startup chunk and 327044 deferred bytes. Relative to the earlier 28 October candidate, the measured diff --git a/scripts/bundle-budget.mjs b/scripts/bundle-budget.mjs index cd015298..c811c406 100644 --- a/scripts/bundle-budget.mjs +++ b/scripts/bundle-budget.mjs @@ -247,7 +247,12 @@ const SOURCE_LICENSES = new URL('../public/THIRD_PARTY_LICENSES.txt', import.met // 666710 -> 666779 (+69) for startup, and 326605 -> 326783 (+178) deferred. // Add only those measured costs, preserving 8/11/152 bytes of existing headroom. // Dependencies, startup membership, lazy boundaries and the 64 KiB chunk cap stay fixed. +// Authored-device import, immutable Install pins and page-owned checkpoints measure +// largest/startup/deferred gzip 493170/671659/327133 versus 491521/670008/326977. +// Allow only measured startup growth (+1649/+1651), retaining 8/11 bytes headroom. +// Four startup and 89 deferred assets, dependencies, loading rules and deferred caps stay fixed. const MAX_STARTUP_CHUNK_GZIP_BYTES = + 1649 + 64 + 643 + 322 + @@ -368,6 +373,7 @@ const MAX_STARTUP_CHUNK_GZIP_BYTES = // Preserve the separately measured 64-byte shared loading-policy allowance above. // Preserve the measured 384-byte selected-image authoring allowance above. const MAX_STARTUP_GZIP_BYTES = + 1651 + 63 + 650 + 498 + From a280bba93afa4b58cf87bca535184cf54829f1b0 Mon Sep 17 00:00:00 2001 From: Sourav Das Date: Wed, 28 Oct 2026 21:30:19 +0530 Subject: [PATCH 101/440] Validate application and CI source pins separately --- README.md | 5 + scripts/backend-installer-contract.test.mjs | 124 ++++++++++++++++++-- 2 files changed, 120 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index d05a6a32..e50ce7d0 100644 --- a/README.md +++ b/README.md @@ -31,6 +31,11 @@ application source pair is: | MoDiff | `fe84ed1ad6eeb77d904742780ec511fce441e4e4` | | MoDiff-client | `109da623e65747ae09e18cf699cf12f1485e7644` | +CI backend contract: `dc26f353b5e82da7fdde7cfbd7e8d6bd786f3acc`. + +Both CI jobs use this exact immutable backend pin. It can include documentation +descendants of the reviewed application source above. + These application source revisions were reviewed on 28 October 2026. Final documentation, CI pairing and bundled-client packaging commits can be later descendants; they do not expand model or hardware qualification. Record diff --git a/scripts/backend-installer-contract.test.mjs b/scripts/backend-installer-contract.test.mjs index b43842e6..4a7e8402 100644 --- a/scripts/backend-installer-contract.test.mjs +++ b/scripts/backend-installer-contract.test.mjs @@ -35,6 +35,52 @@ function fixture({ managed = true, requirements = 'torch==2.8.0\n' } = {}) { return root; } +function reviewedSetupSourceContract(readme, workflow) { + const sections = Array.from( + readme.matchAll(/^application source pair is:\r?\n\r?\n([\s\S]*?)\r?\n\r?\nCI backend contract:/gmu), + (match) => match[1], + ); + assert.equal(sections.length, 1, 'README must declare one reviewed application source table'); + const [header, separator, ...rows] = sections[0].split(/\r?\n/u); + assert.match(header, /^\|\s*Repository\s*\|\s*Application source before final packaging\s*\|$/u); + assert.match(separator, /^\|[ :\-]+\|[ :\-]+\|$/u); + assert.equal(rows.length, 2, 'Reviewed application source table must contain exactly two rows'); + const pairs = rows.map((row) => { + const match = /^\|\s*(MoDiff(?:-client)?)\s*\|\s*`([a-f0-9]{40})`\s*\|$/u.exec(row); + assert.ok(match, 'Each application source row must name its repository and a full immutable commit'); + return [match[1], match[2]]; + }); + assert.deepEqual( + pairs.map(([repository]) => repository).sort(), + ['MoDiff', 'MoDiff-client'], + 'Reviewed application source repositories must be unique and complete', + ); + const ciPins = Array.from(readme.matchAll(/^CI backend contract: `([^`\r\n]+)`\.[ \t]*\r?$/gmu), (match) => match[1]); + assert.equal(ciPins.length, 1, 'README must declare exactly one CI backend contract pin'); + assert.match(ciPins[0], /^[a-f0-9]{40}$/u, 'The declared CI backend contract must be an immutable commit'); + const checkouts = Array.from(workflow.matchAll(/^([ \t]+)repository: sdevil7th\/MoDiff[ \t]*\r?$/gmu)); + assert.equal(checkouts.length, 2, 'Both CI jobs must check out the reviewed backend repository'); + const backendRefs = checkouts.map((checkout) => { + const fields = []; + const followingLines = workflow + .slice(checkout.index + checkout[0].length) + .split(/\r?\n/u) + .slice(1); + for (const line of followingLines) { + if (!line.trim()) continue; + const indentation = /^[ \t]*/u.exec(line)[0].length; + if (indentation < checkout[1].length) break; + if (line.trimStart().startsWith('ref:')) fields.push(line.trim()); + } + assert.equal(fields.length, 1, 'Each backend checkout must declare exactly one ref'); + const match = /^ref: ([a-f0-9]{40})$/u.exec(fields[0]); + assert.ok(match, 'Each CI backend ref must be a full immutable commit'); + return match[1]; + }); + assert.deepEqual(backendRefs, [ciPins[0], ciPins[0]], 'Both CI jobs must match the documented CI backend contract'); + return { applicationSource: Object.fromEntries(pairs), ciBackendCommit: ciPins[0] }; +} + test('package identity binds the native uv lock and specialized profile requirements', () => { const root = fixture(); try { @@ -181,16 +227,76 @@ test('current setup guides select the published candidate and identify its revie assert.match(text, /codex\/windows-delivery-20261026/, `${guide.pathname} must identify the current candidate`); } const readme = readFileSync(guides[0], 'utf8'); - const backendSourceCommit = '8f8c40bab9a389a0199c96c1add0a26a967928bd'; - const clientSourceCommit = '8f0a95e2c7267b04f9e9195e7de30a3eeb01d1b7'; - assert.ok(readme.includes(backendSourceCommit), 'Reviewed backend application source commit is missing'); - assert.ok(readme.includes(clientSourceCommit), 'Reviewed client application source commit is missing'); const workflow = readFileSync(new URL('.github/workflows/ci.yml', clientRoot), 'utf8'); - const backendRefs = Array.from( - workflow.matchAll(/repository: sdevil7th\/MoDiff\s+(?:#[^\n]*\n\s*)?ref: ([a-f0-9]{40})/gu), - (match) => match[1], - ); - assert.deepEqual(backendRefs, [backendSourceCommit, backendSourceCommit], 'Both CI jobs must pin the source pair'); + reviewedSetupSourceContract(readme, workflow); assert.match(readme, /interim Windows candidate/i); assert.match(readme, /not.*(?:release|released).*`main`/); }); + +test('reviewed setup source contract keeps application revisions separate from the exact CI backend pin', () => { + const root = new URL('..', import.meta.url); + const readme = readFileSync(new URL('README.md', root), 'utf8'); + const workflow = readFileSync(new URL('.github/workflows/ci.yml', root), 'utf8'); + const first = reviewedSetupSourceContract(readme, workflow); + const nextBackend = 'a'.repeat(40); + const nextClient = 'b'.repeat(40); + const changed = readme + .replace(first.applicationSource.MoDiff, nextBackend) + .replace(first.applicationSource['MoDiff-client'], nextClient); + assert.deepEqual(reviewedSetupSourceContract(changed, workflow), { + applicationSource: { MoDiff: nextBackend, 'MoDiff-client': nextClient }, + ciBackendCommit: first.ciBackendCommit, + }); +}); + +test('reviewed setup source contract rejects missing duplicate mutable and drifting source declarations', () => { + const root = new URL('..', import.meta.url); + const readme = readFileSync(new URL('README.md', root), 'utf8'); + const workflow = readFileSync(new URL('.github/workflows/ci.yml', root), 'utf8'); + const contract = reviewedSetupSourceContract(readme, workflow); + const backendRow = readme.split('\n').find((line) => /^\| MoDiff\s+\|/u.test(line)); + const clientRow = readme.split('\n').find((line) => /^\| MoDiff-client\s+\|/u.test(line)); + const ciLine = `CI backend contract: \`${contract.ciBackendCommit}\`.`; + const mutations = { + 'missing backend row': [readme.replace(`${backendRow}\n`, ''), workflow], + 'missing client row': [readme.replace(`${clientRow}\n`, ''), workflow], + 'duplicate backend row': [readme.replace(clientRow, backendRow), workflow], + 'duplicate client row': [readme.replace(backendRow, clientRow), workflow], + 'unknown application repository': [readme.replace(backendRow, backendRow.replace('MoDiff', 'Other')), workflow], + 'mutable backend source': [ + readme.replace(contract.applicationSource.MoDiff, 'codex/windows-delivery-20261026'), + workflow, + ], + 'short client source': [readme.replace(contract.applicationSource['MoDiff-client'], '1234567'), workflow], + 'hash prefix with suffix': [ + readme.replace(contract.applicationSource.MoDiff, `${contract.applicationSource.MoDiff}0`), + workflow, + ], + 'missing CI declaration': [readme.replace(ciLine, ''), workflow], + 'duplicate CI declaration': [readme.replace(ciLine, `${ciLine}\n${ciLine}`), workflow], + 'mutable CI declaration': [ + readme.replace(ciLine, 'CI backend contract: `codex/windows-delivery-20261026`.'), + workflow, + ], + 'one drifting CI job': [readme, workflow.replace(`ref: ${contract.ciBackendCommit}`, `ref: ${'c'.repeat(40)}`)], + 'both drifting CI jobs': [ + readme, + workflow.replaceAll(`ref: ${contract.ciBackendCommit}`, `ref: ${'c'.repeat(40)}`), + ], + 'mutable CI job': [ + readme, + workflow.replace(`ref: ${contract.ciBackendCommit}`, 'ref: codex/windows-delivery-20261026'), + ], + 'missing CI ref': [readme, workflow.replace(`ref: ${contract.ciBackendCommit}`, '# removed backend ref')], + 'duplicate CI ref': [ + readme, + workflow.replace( + `ref: ${contract.ciBackendCommit}`, + `ref: ${contract.ciBackendCommit}\n ref: ${contract.ciBackendCommit}`, + ), + ], + 'missing backend checkout': [readme, workflow.replace('repository: sdevil7th/MoDiff', 'repository: other/MoDiff')], + }; + for (const [label, [changedReadme, changedWorkflow]] of Object.entries(mutations)) + assert.throws(() => reviewedSetupSourceContract(changedReadme, changedWorkflow), undefined, label); +}); From ff76c5ad37caabca2c2be01fec0b0ba8a3483dcf Mon Sep 17 00:00:00 2001 From: Sourav Das Date: Wed, 28 Oct 2026 22:01:05 +0530 Subject: [PATCH 102/440] Reset page checkpoints between fresh browser test cases --- .../e2e/live-backend/audio-cluster-acceptance.spec.ts | 1 + tests/e2e/live-backend/block-media-readiness.spec.ts | 1 + .../composition-metadata-recovery.spec.ts | 5 ++++- tests/e2e/live-backend/derived-control-repair.spec.ts | 1 + .../ordinary-image-composite-execution.spec.ts | 1 + tests/e2e/live-backend/reviewed-loop-repair.spec.ts | 1 + tests/e2e/live-backend/reviewed-state-repair.spec.ts | 1 + tests/e2e/live-backend/seed-binding-repair.spec.ts | 1 + tests/e2e/shared-controls/layout-conditioning.spec.ts | 10 ++++++++-- tests/e2e/studio-mocked/studio-mocked.spec.ts | 11 +++++++++-- 10 files changed, 28 insertions(+), 5 deletions(-) diff --git a/tests/e2e/live-backend/audio-cluster-acceptance.spec.ts b/tests/e2e/live-backend/audio-cluster-acceptance.spec.ts index 98ddd56a..5248444f 100644 --- a/tests/e2e/live-backend/audio-cluster-acceptance.spec.ts +++ b/tests/e2e/live-backend/audio-cluster-acceptance.spec.ts @@ -466,6 +466,7 @@ test('Audio Block preserves full-setting native edits and generates audio when a await page.addInitScript(() => { if (sessionStorage.getItem('audio-acceptance-initialized')) return; localStorage.clear(); + sessionStorage.clear(); sessionStorage.setItem('audio-acceptance-initialized', 'yes'); }); // Start only after the intentionally restarted backend has loaded its registry. diff --git a/tests/e2e/live-backend/block-media-readiness.spec.ts b/tests/e2e/live-backend/block-media-readiness.spec.ts index 0db3c15b..c6732dfe 100644 --- a/tests/e2e/live-backend/block-media-readiness.spec.ts +++ b/tests/e2e/live-backend/block-media-readiness.spec.ts @@ -12,6 +12,7 @@ test('required Fill media is diagnosed before Run, Fix opens the input, picker r await page.addInitScript(() => { if (!sessionStorage.getItem('media-preflight-proof')) { localStorage.clear(); + sessionStorage.clear(); sessionStorage.setItem('media-preflight-proof', '1'); } }); diff --git a/tests/e2e/live-backend/composition-metadata-recovery.spec.ts b/tests/e2e/live-backend/composition-metadata-recovery.spec.ts index 7144e617..9e8a77ec 100644 --- a/tests/e2e/live-backend/composition-metadata-recovery.spec.ts +++ b/tests/e2e/live-backend/composition-metadata-recovery.spec.ts @@ -8,7 +8,10 @@ test('composition inspection loads its own pinned metadata and retries a failed page, }) => { await page.setViewportSize({ width: 1600, height: 1000 }); - await page.addInitScript(() => localStorage.clear()); + await page.addInitScript(() => { + localStorage.clear(); + sessionStorage.clear(); + }); await page.goto('/'); await page.waitForFunction(() => Boolean(window.__MODIFF_E2E__), null, { timeout: 120_000 }); await expect(page.getByTestId('startup-workspace-gate')).toHaveCount(0, { timeout: 120_000 }); diff --git a/tests/e2e/live-backend/derived-control-repair.spec.ts b/tests/e2e/live-backend/derived-control-repair.spec.ts index 8da93f93..a91b1867 100644 --- a/tests/e2e/live-backend/derived-control-repair.spec.ts +++ b/tests/e2e/live-backend/derived-control-repair.spec.ts @@ -15,6 +15,7 @@ test('saved Qwen derived-step override is unchanged until explicit Fix and survi await page.addInitScript(() => { if (sessionStorage.getItem('derived-control-proof')) return; localStorage.clear(); + sessionStorage.clear(); sessionStorage.setItem('derived-control-proof', '1'); }); await page.goto('/'); diff --git a/tests/e2e/live-backend/ordinary-image-composite-execution.spec.ts b/tests/e2e/live-backend/ordinary-image-composite-execution.spec.ts index bf5ceaf4..97954a2b 100644 --- a/tests/e2e/live-backend/ordinary-image-composite-execution.spec.ts +++ b/tests/e2e/live-backend/ordinary-image-composite-execution.spec.ts @@ -112,6 +112,7 @@ test(`ordinary image composite preserves edited values through native Save, expa await page.addInitScript(() => { if (sessionStorage.getItem('ordinary-image-proof')) return; localStorage.clear(); + sessionStorage.clear(); sessionStorage.setItem('ordinary-image-proof', '1'); }); const readinessServer = process.env.MODIFF_LIVE_BACKEND_URL ?? 'http://127.0.0.1:8088'; diff --git a/tests/e2e/live-backend/reviewed-loop-repair.spec.ts b/tests/e2e/live-backend/reviewed-loop-repair.spec.ts index 0d4dedab..b34c0000 100644 --- a/tests/e2e/live-backend/reviewed-loop-repair.spec.ts +++ b/tests/e2e/live-backend/reviewed-loop-repair.spec.ts @@ -69,6 +69,7 @@ for (const scenario of repairCases) await page.addInitScript(() => { if (sessionStorage.getItem('loop-repair-proof')) return; localStorage.clear(); + sessionStorage.clear(); sessionStorage.setItem('loop-repair-proof', '1'); }); await page.goto('/'); diff --git a/tests/e2e/live-backend/reviewed-state-repair.spec.ts b/tests/e2e/live-backend/reviewed-state-repair.spec.ts index c1ecc503..2650816b 100644 --- a/tests/e2e/live-backend/reviewed-state-repair.spec.ts +++ b/tests/e2e/live-backend/reviewed-state-repair.spec.ts @@ -15,6 +15,7 @@ test('Qwen missing-state Fix reconnects only the affected edge and preserves the await page.addInitScript(() => { if (sessionStorage.getItem('state-repair-proof')) return; localStorage.clear(); + sessionStorage.clear(); sessionStorage.setItem('state-repair-proof', '1'); }); await page.goto('/'); diff --git a/tests/e2e/live-backend/seed-binding-repair.spec.ts b/tests/e2e/live-backend/seed-binding-repair.spec.ts index 97a34537..c94581d4 100644 --- a/tests/e2e/live-backend/seed-binding-repair.spec.ts +++ b/tests/e2e/live-backend/seed-binding-repair.spec.ts @@ -15,6 +15,7 @@ test('saved FLUX seed warning is nonblocking and explicit Fix preserves values t await page.addInitScript(() => { if (sessionStorage.getItem('seed-repair-proof')) return; localStorage.clear(); + sessionStorage.clear(); sessionStorage.setItem('seed-repair-proof', '1'); }); await page.goto('/'); diff --git a/tests/e2e/shared-controls/layout-conditioning.spec.ts b/tests/e2e/shared-controls/layout-conditioning.spec.ts index f65ce8f9..c20d4c4c 100644 --- a/tests/e2e/shared-controls/layout-conditioning.spec.ts +++ b/tests/e2e/shared-controls/layout-conditioning.spec.ts @@ -183,7 +183,10 @@ test('layout default, unsupported source regions and disabled inputs keep their const node = widget(page); await expect(node.getByRole('radio', { name: 'Structured layout', exact: true })).toBeChecked(); await expect(node.getByRole('button', { name: 'Edit subject', exact: true })).toBeVisible(); - await page.evaluate(() => localStorage.clear()); + await page.evaluate(() => { + localStorage.clear(); + sessionStorage.clear(); + }); await page.goto('/control-state-matrix.html?layout-conditioning&source-region'); await expect(node.getByRole('alert')).toContainText('source regions are unavailable'); await expect(node.getByRole('button', { name: 'Add region', exact: true })).toBeDisabled(); @@ -192,7 +195,10 @@ test('layout default, unsupported source regions and disabled inputs keep their await expect(node.getByRole('checkbox', { name: 'Use a source region', exact: true })).toHaveCount(0); await node.getByRole('button', { name: 'Apply region', exact: true }).click(); expect(await exported(page)).toEqual(sourceBefore); - await page.evaluate(() => localStorage.clear()); + await page.evaluate(() => { + localStorage.clear(); + sessionStorage.clear(); + }); await page.goto('/control-state-matrix.html?layout-conditioning&structured-default&disabled'); await expect(node.getByRole('radio', { name: 'Raw prompt', exact: true })).toBeDisabled(); await expect(node.getByRole('button', { name: 'Edit subject', exact: true })).toBeDisabled(); diff --git a/tests/e2e/studio-mocked/studio-mocked.spec.ts b/tests/e2e/studio-mocked/studio-mocked.spec.ts index 8db3daaf..5f1cc22a 100644 --- a/tests/e2e/studio-mocked/studio-mocked.spec.ts +++ b/tests/e2e/studio-mocked/studio-mocked.spec.ts @@ -14900,7 +14900,10 @@ test('mocked Expert Model Manager gates the exact MiniMax Music 3 snapshot on re mockHfTokenConfigured = true; await ensureFrontend(); await installMockRoutes(page); - await page.addInitScript(() => window.localStorage.clear()); + await page.addInitScript(() => { + window.localStorage.clear(); + window.sessionStorage.clear(); + }); await page.unroute('**/model_capabilities**'); await page.route('**/model_capabilities**', async (route) => { const capabilities = [ @@ -21127,7 +21130,10 @@ test('startup run recovery preserves the selected saved workflow until explicit // A genuinely fresh browser with no saved document should still recover the // running workflow. Preserving an editing tab must not disable that fallback. workflows.clear(); - await page.evaluate(() => window.localStorage.clear()); + await page.evaluate(() => { + window.localStorage.clear(); + window.sessionStorage.clear(); + }); await page.reload({ waitUntil: 'domcontentloaded' }); await expect(page.getByTestId(`workflow-tab-${identity.remoteId}`)).toHaveAttribute('aria-selected', 'true'); }); @@ -28506,6 +28512,7 @@ async function sharedNestedBlockInterface(page: Page, workspace: 'auto' | 'exper await page.addInitScript(() => { if (sessionStorage.getItem('nested-preview-editor-proof')) return; localStorage.clear(); + sessionStorage.clear(); sessionStorage.setItem('nested-preview-editor-proof', '1'); }); await page.goto(FRONTEND_URL, { waitUntil: 'domcontentloaded' }); From abc437f95856f29b347ef68a596315accda3ef23 Mon Sep 17 00:00:00 2001 From: Sourav Das Date: Thu, 29 Oct 2026 00:06:29 +0530 Subject: [PATCH 103/440] Preserve latest document ownership across delayed hydration reads --- scripts/workflow-backend-sync.test.mjs | 238 +++++++++++++++++++++++++ src/studio/useWorkflowBackendSync.ts | 17 +- 2 files changed, 254 insertions(+), 1 deletion(-) diff --git a/scripts/workflow-backend-sync.test.mjs b/scripts/workflow-backend-sync.test.mjs index 9c6f08db..8da98990 100644 --- a/scripts/workflow-backend-sync.test.mjs +++ b/scripts/workflow-backend-sync.test.mjs @@ -5,6 +5,8 @@ import { fileURLToPath } from 'node:url'; import { createServer } from 'vite'; const ROOT = path.resolve(path.dirname(fileURLToPath(import.meta.url)), '..'); +const HOOK_EFFECTS = '\0workflow-sync-hook-effects'; +const HOOK_STORE = '\0workflow-sync-hook-store'; const storage = () => { const values = new Map(); return { @@ -26,6 +28,8 @@ before(async () => { localStorage: storage(), sessionStorage: storage(), location: globalThis.location, + addEventListener() {}, + removeEventListener() {}, }; globalThis.localStorage = globalThis.window.localStorage; globalThis.sessionStorage = globalThis.window.sessionStorage; @@ -36,6 +40,34 @@ before(async () => { optimizeDeps: { entries: [], noDiscovery: true }, server: { middlewareMode: true, watch: null }, appType: 'custom', + plugins: [ + { + name: 'workflow-sync-controlled-hook-effects', + enforce: 'pre', + transform(code, id) { + if (id.replaceAll('\\', '/').endsWith('/src/studio/useWorkflowBackendSync.ts')) + return code.replace("from 'react'", "from 'workflow-sync-controlled-react'"); + }, + resolveId(id, importer) { + if (!importer?.replaceAll('\\', '/').endsWith('/src/studio/useWorkflowBackendSync.ts')) return; + if (id === 'workflow-sync-controlled-react') return HOOK_EFFECTS; + if (id === '../stores/useStudioStore') return HOOK_STORE; + }, + load(id) { + if (id === HOOK_EFFECTS) + return `export const useEffect = effect => globalThis.workflowSyncHook.effects.push(effect); + export const useMemo = read => read(); + export const useState = initial => [initial === false ? globalThis.workflowSyncHook.hydrated : initial, + value => { if (initial === false) { globalThis.workflowSyncHook.hydrated = value; + if (value) globalThis.workflowSyncHook.finish(); } }];`; + if (id === HOOK_STORE) + return `import {useStudioStore as actual} from '/src/stores/useStudioStore.ts'; + export const useStudioStore = selector => selector(actual.getState()); + useStudioStore.getState = actual.getState; + useStudioStore.setState = actual.setState;`; + }, + }, + ], }); studio = await server.ssrLoadModule('/src/stores/useStudioStore.ts'); sync = await server.ssrLoadModule('/src/studio/useWorkflowBackendSync.ts'); @@ -391,6 +423,212 @@ function startupHydrationFixture({ dirty = false } = {}) { }; } +async function delayedHydration({ dirty = true, beforeRead, duringRead, backendFor, autosave = false }) { + const fixture = startupHydrationFixture({ dirty }); + // Start with the normal materialized checkpoint already on the backend: + // registry-populated empty previews/connection flags are a separate contract. + studio.useStudioStore.getState().saveActiveWorkflowTab(true); + const checkpoint = structuredClone(studio.useStudioStore.getState().workflowTabs[0]); + checkpoint.dirty = dirty; + fixture.baseline = structuredClone(checkpoint); + fixture.incoming = structuredClone(checkpoint); + fixture.incoming.backendRevision = 12; + fixture.incoming.snapshot.nodes[0].data.params.text.value = 'New backend text'; + studio.useStudioStore.setState({ workflowTabs: [checkpoint] }); + studio.useStudioStore.setState({ workflowCanvasHydrated: true }); + const originalFetch = globalThis.fetch; + const writes = []; + const timers = []; + let finish; + let finishRead; + let failRead; + let fail; + const finished = new Promise((resolve, reject) => { + finish = resolve; + fail = reject; + }); + const deadline = setTimeout(() => fail(new Error('Controlled hydration did not settle.')), 5000); + const read = new Promise((resolve, reject) => { + finishRead = resolve; + failRead = reject; + }); + globalThis.workflowSyncHook = { effects: [], hydrated: false, finish }; + globalThis.window.setTimeout = (callback, delay) => { + timers.push({ callback, delay }); + return timers.length; + }; + globalThis.window.clearTimeout = () => {}; + globalThis.fetch = async (_url, options = {}) => { + if (options.method !== 'PUT') { + options.signal?.addEventListener('abort', () => failRead(options.signal.reason), { once: true }); + return read; + } + const body = JSON.parse(options.body); + writes.push(body); + return new Response(JSON.stringify({ ...body, id: fixture.baseline.id, revision: 30 })); + }; + let cleanup; + try { + await beforeRead?.(fixture); + sync.useWorkflowBackendSync(); + cleanup = globalThis.workflowSyncHook.effects[0](); + await duringRead?.(fixture); + const backend = backendFor ? backendFor(fixture) : fixture.baseline; + finishRead( + backend + ? new Response(JSON.stringify({ ...backend, revision: backend.backendRevision })) + : new Response(JSON.stringify({ error: true }), { status: 404 }), + ); + await finished; + if (autosave) { + globalThis.workflowSyncHook.effects = []; + sync.useWorkflowBackendSync(); + globalThis.workflowSyncHook.effects[1](); + for (const timer of timers) if (timer.delay === 500) timer.callback(); + await new Promise((resolve) => setImmediate(resolve)); + } + return { fixture, writes, current: structuredClone(studio.useStudioStore.getState().workflowTabs[0]) }; + } finally { + clearTimeout(deadline); + cleanup?.(); + globalThis.fetch = originalFetch; + delete globalThis.workflowSyncHook; + delete globalThis.window.setTimeout; + delete globalThis.window.clearTimeout; + } +} + +test('delayed hydration never republishes its captured snapshot over a newer checkpoint', async () => { + let latest; + const result = await delayedHydration({ + duringRead() { + flow.useFlowStore.getState().setParamWithHistory('hydration-text', 'text', 'New local text'); + studio.useStudioStore.getState().updateForm({ prompt: 'New local form' }); + studio.useStudioStore.getState().saveActiveWorkflowTab(true); + latest = structuredClone(studio.useStudioStore.getState().workflowTabs[0]); + }, + }); + assert.equal(result.writes.length, 1); + assert.notDeepEqual( + result.writes[0].snapshot, + result.fixture.baseline.snapshot, + 'no metadata-only echo of old content', + ); + assert.deepEqual(result.writes[0].snapshot, latest.snapshot, 'the actual current checkpoint owns the PUT'); + assert.deepEqual(result.current.snapshot, latest.snapshot, 'acknowledgement retains the current graph and form'); +}); + +test('delayed hydration cannot replace a newer acknowledgement signature with an older read', async () => { + let acknowledged; + const result = await delayedHydration({ + dirty: false, + duringRead(fixture) { + acknowledged = structuredClone(fixture.baseline); + acknowledged.backendRevision = 29; + acknowledged.snapshot.nodes[0].data.params.text.value = 'New acknowledged text'; + sync.markBackendWorkflow(acknowledged); + studio.useStudioStore.getState().mergeBackendWorkflow(acknowledged); + }, + autosave: true, + }); + assert.equal(result.current.backendRevision, 29); + assert.deepEqual(result.current.snapshot, acknowledged.snapshot); + assert.equal(result.writes.length, 0, 'an old GET must not trigger an autosave of already acknowledged content'); +}); + +test('delayed hydration cannot republish a newer acknowledgement after an overtaken missing read', async () => { + let acknowledged; + const result = await delayedHydration({ + dirty: false, + backendFor: () => null, + duringRead(fixture) { + acknowledged = structuredClone(fixture.baseline); + acknowledged.backendRevision = 29; + acknowledged.snapshot.nodes[0].data.params.text.value = 'New acknowledged text'; + sync.markBackendWorkflow(acknowledged); + studio.useStudioStore.getState().mergeBackendWorkflow(acknowledged); + }, + autosave: true, + }); + assert.equal(result.current.backendRevision, 29); + assert.deepEqual(result.current.snapshot, acknowledged.snapshot); + assert.equal(result.writes.length, 0, 'an overtaken 404 must not republish already acknowledged content'); +}); + +test('delayed hydration uploads a newer dirty checkpoint after an acknowledgement and missing read', async () => { + let latest; + const result = await delayedHydration({ + dirty: false, + backendFor: () => null, + duringRead(fixture) { + const acknowledged = structuredClone(fixture.baseline); + acknowledged.backendRevision = 29; + sync.markBackendWorkflow(acknowledged); + studio.useStudioStore.getState().mergeBackendWorkflow(acknowledged); + flow.useFlowStore.getState().setParamWithHistory('hydration-text', 'text', 'New unacknowledged text'); + studio.useStudioStore.getState().saveActiveWorkflowTab(true); + latest = structuredClone(studio.useStudioStore.getState().workflowTabs[0]); + }, + }); + assert.equal(result.writes.length, 1); + assert.deepEqual(result.writes[0].snapshot, latest.snapshot); + assert.deepEqual(result.current.snapshot, latest.snapshot); +}); + +test('delayed hydration recreates a genuinely missing document acknowledged before its read', async () => { + let acknowledged; + const result = await delayedHydration({ + dirty: false, + backendFor: () => null, + beforeRead(fixture) { + acknowledged = structuredClone(fixture.baseline); + acknowledged.backendRevision = 29; + sync.markBackendWorkflow(acknowledged); + studio.useStudioStore.getState().mergeBackendWorkflow(acknowledged); + }, + autosave: true, + }); + assert.equal(result.writes.length, 1, 'an acknowledgement predating this GET cannot waive a genuine 404'); + assert.deepEqual(result.writes[0].snapshot, acknowledged.snapshot); + assert.deepEqual(result.current.snapshot, acknowledged.snapshot); +}); + +test('delayed hydration acknowledges an exact restored dirty document without a PUT', async () => { + const result = await delayedHydration({ autosave: true }); + assert.equal(result.writes.length, 0); + assert.equal(result.current.dirty, false); + assert.deepEqual(result.current.snapshot, result.fixture.baseline.snapshot); +}); + +test('delayed hydration creates a missing document from the current checkpoint', async () => { + let latest; + const result = await delayedHydration({ + backendFor: () => null, + duringRead() { + flow.useFlowStore.getState().setParamWithHistory('hydration-text', 'text', 'Current new draft'); + studio.useStudioStore.getState().saveActiveWorkflowTab(true); + latest = structuredClone(studio.useStudioStore.getState().workflowTabs[0]); + }, + }); + assert.equal(result.writes.length, 1); + assert.deepEqual(result.writes[0].snapshot, latest.snapshot); + assert.deepEqual(result.current.snapshot, latest.snapshot); +}); + +test('delayed hydration retains a genuinely dirty document against a newer remote document', async () => { + const result = await delayedHydration({ backendFor: (fixture) => fixture.incoming }); + assert.equal(result.writes.length, 1); + assert.deepEqual(result.writes[0].snapshot, result.fixture.baseline.snapshot); + assert.deepEqual(result.current.snapshot, result.fixture.baseline.snapshot); +}); + +test('delayed hydration accepts a newer remote document for an unchanged clean tab', async () => { + const result = await delayedHydration({ dirty: false, backendFor: (fixture) => fixture.incoming, autosave: true }); + assert.equal(result.writes.length, 0); + assert.equal(result.current.dirty, false); + assert.deepEqual(result.current.snapshot, result.fixture.incoming.snapshot); +}); + function checkpointedSavedWorkflow() { startupHydrationFixture(); // Persist the passive registry/connection metadata once, as a successful PUT would. diff --git a/src/studio/useWorkflowBackendSync.ts b/src/studio/useWorkflowBackendSync.ts index 7dbc7c75..55bea8bf 100644 --- a/src/studio/useWorkflowBackendSync.ts +++ b/src/studio/useWorkflowBackendSync.ts @@ -314,11 +314,16 @@ export function useWorkflowBackendSync() { for (const tab of store.workflowTabs) { if (isWorkflowTabClosed(tab.id)) continue; const cleanBaseline = tab.dirty ? undefined : (JSON.parse(JSON.stringify(tab)) as WorkflowTab); + const readRevision = + useStudioStore.getState().workflowTabs.find((item) => item.id === tab.id)?.backendRevision ?? 0; const backendTab = await readWorkflowForHydration(tab, controller.signal); if (cancelled) return; const current = useStudioStore.getState(); const latestTab = current.workflowTabs.find((item) => item.id === tab.id); if (isWorkflowTabClosed(tab.id) || !latestTab) continue; + // A save/broadcast can overtake this GET. The store rejects its older + // revision; its stale content must not replace the acknowledged signature either. + if (backendTab && (latestTab.backendRevision ?? 0) > (backendTab.backendRevision ?? 0)) continue; // Dirty protects an unacknowledged document, including a committed PUT whose response was lost. // Reuse only an exact match with the latest open tab; the normal merge still protects live edits. if (backendTab && (!tab.dirty || contentSignature(latestTab) === contentSignature(backendTab))) { @@ -332,9 +337,19 @@ export function useWorkflowBackendSync() { }); continue; } + // Skip a missing read only when an exact acknowledgement overtook it. + // An acknowledgement predating this GET cannot waive genuine recreation. + if ( + !backendTab && + (latestTab.backendRevision ?? 0) > readRevision && + backendSignatures.get(tab.id) === contentSignature(latestTab) + ) { + clearDirtyMarkerForExactBackendDocument(tab.id); + continue; + } // A new local document, or a synchronous checkpoint newer than the // last backend revision, must be uploaded before hydration finishes. - const saved = await putWorkflow(tab, controller.signal); + const saved = await putWorkflow(latestTab, controller.signal); if (cancelled || !saved) continue; markBackendWorkflow(saved); const latest = useStudioStore.getState().workflowTabs.find((item) => item.id === tab.id); From 7bef863fddbdf3e72c58f1eae09759431c67b207 Mon Sep 17 00:00:00 2001 From: Sourav Das Date: Thu, 29 Oct 2026 00:59:30 +0530 Subject: [PATCH 104/440] Record measured hydration ownership bundle cost --- docs/deployment.md | 13 +++++++++++++ scripts/bundle-budget.mjs | 8 ++++++++ 2 files changed, 21 insertions(+) diff --git a/docs/deployment.md b/docs/deployment.md index a2253733..9e38a194 100644 --- a/docs/deployment.md +++ b/docs/deployment.md @@ -134,6 +134,19 @@ Run the bundle budget after changes that affect dependencies or code splitting: npm run bundle:check ``` +The save/read hydration ownership fix measures 671695 gzip bytes of startup +JavaScript, with a 493208-byte largest startup chunk and 327026 deferred bytes. +Compared with the accepted authored-device import, immutable Model Install and +workspace checkpoint build, the measured aggregate startup growth is 36 bytes, +including 38 bytes in the largest startup chunk. The startup ceilings are 671706 +and 493216, preserving 11 and 8 bytes of headroom. Both deferred ceilings remain +unchanged at 327269 aggregate and 65536 per chunk. The same four startup and 89 +deferred assets keep their loading membership; all deferred bodies match after +versioned URL normalization. The 107-byte deferred decrease reflects versioned +import compression. These are aggregate build measurements, not per-module +attribution. Dependencies, chunk rules, minifier and identity validators stay +fixed. The following measurements remain historical. + The reviewed authored-device import, immutable Model Install and page-owned workspace checkpoint changes measure 671659 gzip bytes of startup JavaScript, with a 493170-byte largest startup chunk and 327133 deferred bytes. Compared with diff --git a/scripts/bundle-budget.mjs b/scripts/bundle-budget.mjs index c811c406..bfdb23e0 100644 --- a/scripts/bundle-budget.mjs +++ b/scripts/bundle-budget.mjs @@ -1,3 +1,9 @@ +// Save/read hydration ownership measures largest/startup/deferred gzip +// 493208/671695/327026 versus the accepted 493170/671659/327133. +// Add only measured aggregate startup growth 38/36, preserving 8/11 bytes +// of headroom. The same four startup and 89 deferred assets retain membership; +// all deferred bodies match after versioned URL normalization. Dependencies, +// minifier, loading boundaries, validators and both deferred caps stay fixed. // Custom recipe preservation and page-lifecycle retry cancellation measure // largest/startup/deferred gzip 491521/670008/326977 versus the accepted // 491457/669945/327044. Add only measured startup growth 64/63, preserving @@ -252,6 +258,7 @@ const SOURCE_LICENSES = new URL('../public/THIRD_PARTY_LICENSES.txt', import.met // Allow only measured startup growth (+1649/+1651), retaining 8/11 bytes headroom. // Four startup and 89 deferred assets, dependencies, loading rules and deferred caps stay fixed. const MAX_STARTUP_CHUNK_GZIP_BYTES = + 38 + 1649 + 64 + 643 + @@ -373,6 +380,7 @@ const MAX_STARTUP_CHUNK_GZIP_BYTES = // Preserve the separately measured 64-byte shared loading-policy allowance above. // Preserve the measured 384-byte selected-image authoring allowance above. const MAX_STARTUP_GZIP_BYTES = + 36 + 1651 + 63 + 650 + From 79bd77d3fcf27b26701546f081cf3f5ab311c990 Mon Sep 17 00:00:00 2001 From: Sourav Das Date: Sat, 31 Oct 2026 09:36:05 +0530 Subject: [PATCH 105/440] Accept finite decimal LoRA scales in strict adapter evidence --- CONTRIBUTING.md | 8 +++- scripts/applied-adapter-provenance.mjs | 14 +++++- scripts/live-qwen-proof.test.mjs | 64 ++++++++++++++++++++++++++ 3 files changed, 84 insertions(+), 2 deletions(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 6fe211c9..c759dd31 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -391,7 +391,13 @@ original task/attempt, output snapshot and executed ancestor owner. `validateAppliedAdapterProof(provenance, {required: true})` additionally requires complete evidence matched to the ordered native Lora chain and model pins for explicit adapter-order acceptance. Its initial strict scope -is pinned Hub adapters with explicit names and no scheduler override. Ordinary +is pinned Hub adapters with explicit names and no scheduler override. Submitted +LoRA scale controls may be numeric or bounded decimal text accepted by the +backend's finite float conversion, including decimal exponents. Only that scale +comparison uses numeric normalization; original graph/export bytes and hashes +remain unchanged. Empty or padded strings, non-decimal syntax, non-finite or +out-of-range values, and coercible booleans/objects are rejected. Native observed +scales must still be numbers, and mismatched applied scales remain failures. Ordinary template recording does not acquire this new requirement: historical absent-field proofs retain their original submitted-graph proof level. This extension grants no style, quality, hardware, rights or publication approval. diff --git a/scripts/applied-adapter-provenance.mjs b/scripts/applied-adapter-provenance.mjs index 7f1da3a6..79c16593 100644 --- a/scripts/applied-adapter-provenance.mjs +++ b/scripts/applied-adapter-provenance.mjs @@ -99,6 +99,18 @@ const literal = (node, name) => { return parameter.value; }; +function scaleLiteral(node) { + const value = literal(node, 'scale'); + // Historical numeric controls submit decimal text. Match the backend's + // finite float semantics only here; keep the graph and its identity unchanged. + const decimal = + typeof value === 'string' && value.length <= 64 && /^[+-]?(?:\d+(?:\.\d*)?|\.\d+)(?:[eE][+-]?\d+)?$/u.test(value); + assert.ok(typeof value === 'number' || decimal, 'Adapter scale must be numeric or bounded decimal text.'); + const number = Number(value); + assert.ok(Number.isFinite(number) && number >= -20 && number <= 20, 'Adapter scale is outside its finite bounds.'); + return number; +} + function orderedChain(graph, owner) { const byId = new Map(graph.nodes.map((node) => [node.key, node])); const executed = new Set(graph.paths.flat()); @@ -160,7 +172,7 @@ function verifyOwnerOrder(graph, owner, application, models, strict) { const name = literal(node, 'adapter_name'); assert.ok(text(name, 128), 'Generated adapter names need a separate original-name join.'); assert.equal(applied.adapterName, name, 'Applied adapter order/name differs.'); - assert.equal(applied.scale, literal(node, 'scale'), 'Applied adapter scale differs.'); + assert.equal(applied.scale, scaleLiteral(node), 'Applied adapter scale differs.'); const selected = literal(node, 'model'); assert.ok(selected?.source === 'hub', 'Applied artifact proof currently requires a pinned Hub adapter.'); same( diff --git a/scripts/live-qwen-proof.test.mjs b/scripts/live-qwen-proof.test.mjs index caf77ed2..b419d6f5 100644 --- a/scripts/live-qwen-proof.test.mjs +++ b/scripts/live-qwen-proof.test.mjs @@ -1,5 +1,6 @@ import { appliedOrderCase, canonicalHookCase, legacyCreatorFactoryCases } from './canonical-provenance-fixtures.mjs'; import { canonicalJsonHash } from './canonical-json.mjs'; +import { validateAppliedAdapterSection } from './applied-adapter-provenance.mjs'; import assert from 'node:assert/strict'; import { spawnSync } from 'node:child_process'; import { EventEmitter } from 'node:events'; @@ -83,6 +84,69 @@ test('optional native applied adapter proof locks exact order and distinguishes assert.throws(() => validateAppliedAdapterProof(incomplete, { required: true }), /unavailable/); }); +test('strict applied adapter proof compares legacy decimal scale literals without rewriting original evidence', () => { + for (const [submitted, observed] of [ + ['1.5', 1.5], + ['0', 0], + ['-0.75', -0.75], + ['1e0', 1], + ]) { + const args = appliedOrderCase(); + args.apiGraph.nodes['adapter-0'].params.scale.value = submitted; + args.executedOutput.apiGraphSnapshot = structuredClone(args.apiGraph); + const application = args.executedOutput.resolvedExecutionInputs.nodes[0].appliedAdapters; + application.adapters[0].scale = observed; + application.stateSha256 = `sha256:applied-adapters-v1:${canonicalJsonHash({ adapters: application.adapters })}`; + const before = JSON.stringify(args); + const proof = createRunProvenance(args); + assert.deepEqual(proof.blockers, []); + assert.equal( + validateAppliedAdapterProof(proof, { required: true }).owners[0].application.adapters[0].scale, + observed, + ); + assert.equal(JSON.stringify(args), before); + assert.equal(args.apiGraph.nodes['adapter-0'].params.scale.value, submitted); + application.adapters[0].scale = observed + 0.25; + application.stateSha256 = `sha256:applied-adapters-v1:${canonicalJsonHash({ adapters: application.adapters })}`; + assert.throws(() => validateAppliedAdapterProof(createRunProvenance(args), { required: true }), /scale differs/); + } +}); + +test('strict applied adapter proof rejects ambiguous, nonfinite and coercible non-decimal scale controls', () => { + for (const submitted of [ + '', + ' ', + ' 0', + '0 ', + '0x0', + '0b0', + 'NaN', + 'Infinity', + '1e999', + '20.1', + '-20.1', + '0'.repeat(65), + false, + null, + [], + {}, + ]) { + const args = appliedOrderCase(); + args.apiGraph.nodes['adapter-0'].params.scale.value = submitted; + args.executedOutput.apiGraphSnapshot = structuredClone(args.apiGraph); + assert.throws( + () => validateAppliedAdapterProof(createRunProvenance(args), { required: true }), + undefined, + JSON.stringify(submitted), + ); + } + const args = appliedOrderCase(); + const application = args.executedOutput.resolvedExecutionInputs.nodes[0].appliedAdapters; + application.adapters[0].scale = '0'; + application.stateSha256 = `sha256:applied-adapters-v1:${canonicalJsonHash({ adapters: application.adapters })}`; + assert.throws(() => validateAppliedAdapterSection(application)); +}); + test('applied adapter proof rejects valid-digest order, scale, artifact and owner forgeries', () => { const mutations = { order: (args, app) => { From b65021977db6f08bc2562346f5c3ad8f0774b244 Mon Sep 17 00:00:00 2001 From: Sourav Das Date: Sat, 31 Oct 2026 14:40:35 +0530 Subject: [PATCH 106/440] Stabilize browser readiness checks and complete the serial CI budget --- .github/workflows/ci.yml | 10 +++--- tests/e2e/studio-mocked/studio-mocked.spec.ts | 33 +++++++++++++------ 2 files changed, 29 insertions(+), 14 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index a1fa869a..32691362 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -32,8 +32,8 @@ jobs: uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4 with: repository: sdevil7th/MoDiff - # Reviewed variant planning and offline pinned Hub-source resolution. - ref: dc26f353b5e82da7fdde7cfbd7e8d6bd786f3acc + # Paired native contracts and lossless Save Image history previews. + ref: 14ab69de8b9f6ed92049beca8a0e5c935c20dd13 path: MoDiff persist-credentials: false - name: Verify the pinned backend supports native setup @@ -68,7 +68,9 @@ jobs: browser: name: Client browser quality runs-on: ubuntu-latest - timeout-minutes: 60 + # The full serial suite exceeds one hour on hosted runners. Keep its full + # test set and single worker; bound the job without truncating coverage. + timeout-minutes: 90 defaults: run: working-directory: MoDiff-client @@ -86,7 +88,7 @@ jobs: with: repository: sdevil7th/MoDiff # Match the immutable backend revision in the Client quality job. - ref: dc26f353b5e82da7fdde7cfbd7e8d6bd786f3acc + ref: 14ab69de8b9f6ed92049beca8a0e5c935c20dd13 path: MoDiff persist-credentials: false - name: Verify the pinned backend supports native setup diff --git a/tests/e2e/studio-mocked/studio-mocked.spec.ts b/tests/e2e/studio-mocked/studio-mocked.spec.ts index 5f1cc22a..c6273102 100644 --- a/tests/e2e/studio-mocked/studio-mocked.spec.ts +++ b/tests/e2e/studio-mocked/studio-mocked.spec.ts @@ -1964,7 +1964,7 @@ let mockHfTokenConfigured = false; let mockOptionalRuntimeMutationCalls = 0; let mockOptionalRuntimeProcessStatus = 'base'; let mockOptionalRuntimeQualified = false; -let mockOptionalRuntimeDelayMs = 0; +let mockOptionalRuntimeResponseGate: Promise | null = null; let mockOptionalRuntimeActions = false; let mockOptionalRuntimeRollbackToBase = false; let mockOptionalRuntimeJobState: 'idle' | 'running' | 'ready' | 'cancelled' = 'idle'; @@ -6545,8 +6545,7 @@ async function installMockRoutes(page: Page, options: { graphQualifiedQwenCluste await route.fulfill({ status: 409, contentType: 'application/json', body: '{"error":true}' }); return; } - const delay = mockOptionalRuntimeDelayMs; - if (delay) await new Promise((resolve) => setTimeout(resolve, delay)); + if (mockOptionalRuntimeResponseGate) await mockOptionalRuntimeResponseGate; await route.fulfill({ status: 200, contentType: 'application/json', @@ -7588,7 +7587,7 @@ test.beforeEach(() => { mockOptionalRuntimeMutationCalls = 0; mockOptionalRuntimeProcessStatus = 'base'; mockOptionalRuntimeQualified = false; - mockOptionalRuntimeDelayMs = 0; + mockOptionalRuntimeResponseGate = null; mockOptionalRuntimeActions = false; mockOptionalRuntimeRollbackToBase = false; mockOptionalRuntimeJobState = 'idle'; @@ -8850,10 +8849,19 @@ test('optional runtime setup is GET-only and keeps a pending target non-actionab mockOptionalRuntimeProcessStatus = 'active'; await page.getByTestId('setup-refresh').click(); await expect(profile).toContainText('active'); - mockOptionalRuntimeDelayMs = 500; - await page.getByTestId('setup-refresh').click(); - await expect(disclosure).toContainText('Loading optional runtimes'); - mockOptionalRuntimeDelayMs = 0; + // Keep the response pending until the loading assertion has observed it. + // A fixed 500 ms delay can expire before CI gets to that assertion. + let releaseResponse = () => {}; + mockOptionalRuntimeResponseGate = new Promise((resolve) => { + releaseResponse = resolve; + }); + try { + await page.getByTestId('setup-refresh').click(); + await expect(disclosure).toContainText('Loading optional runtimes'); + } finally { + releaseResponse(); + mockOptionalRuntimeResponseGate = null; + } await expect(disclosure).not.toContainText('Loading optional runtimes'); await expect(profile).toContainText('active'); expect(mockOptionalRuntimeMutationCalls).toBe(0); @@ -9497,7 +9505,7 @@ test('template browser keeps compact layouts, opens card details, and loads 12-c 'template-browser-card-', '', ); - await clickSelectedCard.click({ position: { x: 8, y: 8 } }); + await page.getByTestId(`template-browser-card-${clickSelectedCardId}`).click({ position: { x: 8, y: 8 } }); await expect(page.getByTestId(`template-detail-${clickSelectedCardId}`)).toBeVisible(); await page.getByTestId(`template-detail-${clickSelectedCardId}`).getByRole('button', { name: 'Templates' }).click(); @@ -9533,7 +9541,12 @@ test('template details use one narrow scroll pane and split only when the modal const firstCard = page.locator('[data-testid^="template-browser-card-"]').first(); const templateId = (await firstCard.getAttribute('data-testid'))!.replace('template-browser-card-', ''); - await firstCard.getByRole('button', { name: /^View details for / }).click(); + // Readiness can reorder Recommended cards between this read and the click. + // Keep the captured identity rather than resolving a new first card. + await page + .getByTestId(`template-browser-card-${templateId}`) + .getByRole('button', { name: /^View details for / }) + .click(); await expect(page.getByTestId(`template-detail-${templateId}`)).toBeVisible(); const measureDetailLayout = () => From 26848d7af4c75ded5b9700f0a1cec0eb17453d46 Mon Sep 17 00:00:00 2001 From: Sourav Das Date: Sat, 31 Oct 2026 15:30:14 +0530 Subject: [PATCH 107/440] Version FLUX3 visual recipes and author protected PNG composites --- .github/workflows/ci.yml | 4 +- README.md | 2 +- config/template-asset-rights.v1.json | 21 +- config/template-assets.v1.json | 17 +- docs/image-template-workflows.md | 21 +- .../flux3-public-template-planning.test.mjs | 159 +++++++- scripts/resolved-execution-inputs.test.mjs | 69 ++++ scripts/template-operation-fixtures.py | 3 +- src/studio/controlledWorkflowContracts.ts | 5 + src/studio/resolvedExecutionInputs.ts | 22 ++ src/studio/templateAssetSource.json | 5 +- src/studio/templateImageComposite.ts | 80 ++++ src/studio/templateOperationWorkflow.ts | 11 + src/studio/templates.ts | 127 ++++-- src/studio/types.ts | 11 +- ...template-image-composite-utilities.v1.json | 368 ++++++++++++++++++ 16 files changed, 862 insertions(+), 63 deletions(-) create mode 100644 src/studio/templateImageComposite.ts create mode 100644 tests/fixtures/template-image-composite-utilities.v1.json diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 32691362..3397e560 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -33,7 +33,7 @@ jobs: with: repository: sdevil7th/MoDiff # Paired native contracts and lossless Save Image history previews. - ref: 14ab69de8b9f6ed92049beca8a0e5c935c20dd13 + ref: c995a3334a18d1fcf9b33c08272fa89e269306cb path: MoDiff persist-credentials: false - name: Verify the pinned backend supports native setup @@ -88,7 +88,7 @@ jobs: with: repository: sdevil7th/MoDiff # Match the immutable backend revision in the Client quality job. - ref: 14ab69de8b9f6ed92049beca8a0e5c935c20dd13 + ref: c995a3334a18d1fcf9b33c08272fa89e269306cb path: MoDiff persist-credentials: false - name: Verify the pinned backend supports native setup diff --git a/README.md b/README.md index e50ce7d0..b699a0a0 100644 --- a/README.md +++ b/README.md @@ -31,7 +31,7 @@ application source pair is: | MoDiff | `fe84ed1ad6eeb77d904742780ec511fce441e4e4` | | MoDiff-client | `109da623e65747ae09e18cf699cf12f1485e7644` | -CI backend contract: `dc26f353b5e82da7fdde7cfbd7e8d6bd786f3acc`. +CI backend contract: `c995a3334a18d1fcf9b33c08272fa89e269306cb`. Both CI jobs use this exact immutable backend pin. It can include documentation descendants of the reviewed application source above. diff --git a/config/template-asset-rights.v1.json b/config/template-asset-rights.v1.json index efc058c2..2e0a59bc 100644 --- a/config/template-asset-rights.v1.json +++ b/config/template-asset-rights.v1.json @@ -1,6 +1,6 @@ { "schemaVersion": 1, - "assetSetId": "sha256:canonical-json:ec61fbc1b76da02110e4a0cddc4e222026e911a6e00451f85678f66d2b32ec85", + "assetSetId": "sha256:canonical-json:b859b8cb1720f8fcca245726686e2d3e4c2a93e74a9be3d9d90567d93c277700", "records": [ { "path": "template-gallery/ace_step_audio_continuation.wav", @@ -1235,6 +1235,25 @@ "provenanceTemplateId": "flux2_klein_multi_reference", "consumingTemplateIds": ["flux2_klein_multi_reference"] }, + { + "path": "template-gallery/inputs/flux3-packaging-protected-photo-mask-v1.png", + "sha256": "sha256:bytes:d36162153e2009e0b2f3a711825d39e67c02ba3577971a444bd92eebe81169ac", + "publishDecision": "hold", + "holdReason": "Complete and independently review the redistribution-rights record for these exact bytes.", + "creatorOrRightsholder": null, + "creationMethod": null, + "sourceUrl": null, + "sourceRevision": null, + "sourceLicense": null, + "modelTerms": [], + "aiGenerated": null, + "humanLikenessConsent": null, + "marks": [], + "requiredAttribution": [], + "assetLicense": null, + "reviewedBy": null, + "reviewedAt": null + }, { "path": "template-gallery/inputs/flux_control_canny.before.png", "sha256": "sha256:bytes:3d03ee22a3d29068f30f18afcb31e86ea455fbfbe1ca5aa172cf633a26f21339", diff --git a/config/template-assets.v1.json b/config/template-assets.v1.json index 915118a2..e4cb202d 100644 --- a/config/template-assets.v1.json +++ b/config/template-assets.v1.json @@ -562,6 +562,17 @@ "width": 1024, "height": 1024 }, + { + "path": "template-gallery/inputs/flux3-packaging-protected-photo-mask-v1.png", + "size": 1524, + "sha256": "sha256:bytes:d36162153e2009e0b2f3a711825d39e67c02ba3577971a444bd92eebe81169ac", + "contentType": "image/png", + "purposes": [ + "runtime" + ], + "width": 1024, + "height": 1024 + }, { "path": "template-gallery/inputs/flux_control_canny.before.png", "size": 22013, @@ -3603,9 +3614,9 @@ "height": 1024 } ], - "assetSetId": "sha256:canonical-json:ec61fbc1b76da02110e4a0cddc4e222026e911a6e00451f85678f66d2b32ec85", + "assetSetId": "sha256:canonical-json:b859b8cb1720f8fcca245726686e2d3e4c2a93e74a9be3d9d90567d93c277700", "status": "ready", - "assetCount": 360, - "totalBytes": 488731153, + "assetCount": 361, + "totalBytes": 488732677, "missingAssets": [] } diff --git a/docs/image-template-workflows.md b/docs/image-template-workflows.md index ad8457a2..1e0bc866 100644 --- a/docs/image-template-workflows.md +++ b/docs/image-template-workflows.md @@ -156,14 +156,17 @@ comparison and the Windows validation procedure. The two FLUX 3 style planning candidates now name the selected immutable adapters: [NASA concept art](https://huggingface.co/kocabiyik/nsc7-style-lora/blob/9b998d3bdc3b4aeb2113ab4e8cbd9fe2ebfa1cae/README.md) for Distilled at scale `0.75`, and [Monet oil painting](https://huggingface.co/pjecuacion/flux3-klein-mnt-oil-monet-lora/blob/0d94b6a4601892499defd8c5d89c24f78e78043b/README.md) -for Base at scale `1`. Both cards declare the +for Base at scale `0.65`. Both cards declare the [FLUX Kommunity License v1.0](https://huggingface.co/black-forest-labs/flux-3-image-klein-base/blob/1469d27cfb9bb1bd81d3a93f5a023b39dbf136e4/LICENSE.md). Their training-data provenance is the authors' statement, not independent rights verification. The Base planning candidate explicitly replaces Tarot; saved Tarot workflows and historical evidence keep their original identities. -These candidates retain the exact radio and fox prompts, seeds `481005` and -`481105`, 512-square FP8r/BF16 recipes, 16/50 steps and guidance 1/3.5. PUP remains +The revised candidates use the ring-habitat and meadow-fox prompts, seeds +`481205` and `481405`, 512-square FP8r/BF16 recipes, 16/50 steps and guidance 1/3.5. +The original radio/fox recipes and their failed outputs retain their historical +identities. The two plain-radio candidates use revised two-front-control prompts +and seeds `481402` (Distilled) and `481401` (Base). PUP remains disabled. The locked public settings are Expert with no offload and `autoOffload=false`. Successful local `model_cpu` / `autoOffload=true` trials are a separate recipe and cannot qualify these locks. NASA's advertised style @@ -174,6 +177,18 @@ template qualification, Gallery eligibility, hardware-fit proof or output publication approval. Adapter terms and local test consent do not approve an output's publication. +The two packaging planning recipes preserve the ordered model references, then +compose the generated photograph onto the second reference using ordinary image +nodes. The declared mask protects all pixels outside the photo panel. Three +explicit Lanczos resize/pad operations precede a 1024-square crop at `y=205` +(Distilled) or `y=165` (Base), followed by Mask Composite and Save Image. The +generation remains 512-square; the composited Gallery image is 1024-square PNG. +This is generated plus composited media, without a native Fill claim. Creation +requires the declared mask, a single-image batch and the paired backend's PNG +Save Image preview contract. The authored mask and selected output media must be +published and verified through the normal asset contract before Gallery admission. +Existing saved graphs retain their own nodes, settings and outputs. + A complete recipe may remain a blocked planning template while its exact output and visual quality are unqualified. The Gallery runner's explicit `--allow-blocked-probe --record-qualification` combination may retain a successful diff --git a/scripts/flux3-public-template-planning.test.mjs b/scripts/flux3-public-template-planning.test.mjs index e75e6304..c086331b 100644 --- a/scripts/flux3-public-template-planning.test.mjs +++ b/scripts/flux3-public-template-planning.test.mjs @@ -128,7 +128,7 @@ test('approved named source images bind ordinary one- and ordered two-reference const resolution = inputs.resolveTemplateInputs(value); assert.deepEqual(resolution.missingLabels, []); assert.deepEqual(resolution.downstreamBindings, []); - const binding = resolution.templateDefaultBindings[0]; + const binding = resolution.templateDefaultBindings.find((item) => item.field === 'referenceImages'); assert.equal(binding.origin, 'template'); assert.equal(binding.field, 'referenceImages'); assert.equal(binding.defaultAssets.length, count); @@ -145,7 +145,16 @@ test('approved named source images bind ordinary one- and ordered two-reference ); assert.equal(new Set(binding.defaultAssets.map((asset) => asset.runtimeSha256)).size, count); assert.match(value.prompt, /reference image 1/i); - if (count === 2) assert.match(value.example.notes, /not ControlNet/); + if (count === 2) { + assert.match(value.example.notes, /no native Fill claim/); + const mask = resolution.templateDefaultBindings.find((item) => item.field === 'maskImage'); + assert.equal(mask.defaultAssets.length, 1); + assert.equal( + mask.defaultAssets[0].runtimeSha256, + 'sha256:bytes:d36162153e2009e0b2f3a711825d39e67c02ba3577971a444bd92eebe81169ac', + ); + assert.deepEqual(value.example.galleryExpectedOutput, { width: 1024, height: 1024 }); + } } } }); @@ -222,8 +231,9 @@ test('selected NASA and Monet candidates bind exact adapters and prompts without weightName: 'nsc7-style-lora.safetensors', adapterName: 'nsc7', scale: 0.75, + seed: 481205, prompt: - 'An unbranded ceramic field radio, a folded linen cloth and a single dried grass stem form a balanced three-quarter tabletop still life. Warm side lighting defines the radio silhouette and contact shadows. The radio, linen and stem remain clearly separated against an uncluttered background. No people, logos, readable text, signatures, watermarks or unrelated objects. nsc7 style', + 'One complete rotating ring habitat above Earth, seen from outside in three-quarter view. A single continuous white torus surrounds a plain central hub. Warm sunlight falls across the curved structure against deep blue space, with a small view of Earth below. Every hardware surface is blank and unmarked. One habitat fills a balanced square composition, without people, other spacecraft, plants, flowers, grass or stems. No writing, letters, numbers, labels, logos, emblems, watermarks, signatures, border or frame. nsc7 style', }, { id: 'flux3_klein_base_fp8r512_lora_style', @@ -233,9 +243,10 @@ test('selected NASA and Monet candidates bind exact adapters and prompts without byteSize: 80381072, weightName: 'mnt_oil_klein3.safetensors', adapterName: 'mnt_oil', - scale: 1, + scale: 0.65, + seed: 481405, prompt: - 'mnt_oil, an oil painting of a single red fox standing on a moss-covered rock in an ancient forest. The fox is clearly separated from the trees and foliage, with soft morning light filtering through the canopy. Preserve one coherent fox, a readable rock silhouette and a balanced square composition. No ornamental card frame, lettering, logos, signatures or watermarks.', + 'mnt_oil, a full-bleed impressionist oil painting of a single red fox walking through sunlit meadow grass beside a quiet woodland pond. The fox has a clear natural silhouette, one head, one bushy tail and coherent legs. Loose broken brushstrokes and luminous green and gold reflections contrast with soft blue shadows. Grass, reeds, water and dappled foliage fill the entire square canvas from edge to edge. The lower corners are softly painted meadow grass and pond reflections, continuous with the rest of the scene. A simple peaceful composition, natural morning light, no people, no lettering, no frame.', }, ]; for (const expected of candidates) { @@ -261,6 +272,7 @@ test('selected NASA and Monet candidates bind exact adapters and prompts without assert.equal(value.prompt, expected.prompt); assert.equal(value.description, expected.prompt); assert.equal(value.negativePrompt, ''); + assert.equal(value.example.lockedSeed, expected.seed); assert.match(value.label, /Test Candidate/); assert.match(value.example.blockReason, /output publication approval/); assert.match(value.example.notes, /model_cpu.*autoOffload=true/); @@ -269,6 +281,11 @@ test('selected NASA and Monet candidates bind exact adapters and prompts without } }); +test('revised plain-radio recipes retain distinct tested seeds', () => { + assert.equal(card('flux3_klein_fp8r512_text_to_image').example.lockedSeed, 481402); + assert.equal(card('flux3_klein_base_fp8r512_text_to_image').example.lockedSeed, 481401); +}); + // Complete source inputs are not native output, fit or publication proof. test('all ten fixed-input recipes are source-complete while exact public proof remains pending', () => { for (const id of ids) { @@ -335,6 +352,10 @@ test('all ten fixed-input planning cards create exact ordinary FP8r task graphs' ); const descriptors = choices.parseWorkflowModelDescriptors(payload, support); const registry = structuredClone(captured.registry); + const utilities = JSON.parse( + await readFile(path.join(ROOT, 'tests/fixtures/template-image-composite-utilities.v1.json'), 'utf8'), + ); + Object.assign(registry, structuredClone(utilities.registry)); const registryBefore = structuredClone(registry); for (const id of ids) { const value = card(id); @@ -371,9 +392,11 @@ test('all ten fixed-input planning cards create exact ordinary FP8r task graphs' assert.equal(device, 'cpu:0', 'use the actual captured CPU fixture device, not a GPU claim'); for (const [, key] of starter.authoring.roles) assert.ok(value.requiredBackendCapabilities.includes(key), `${id}: declared creator role ${key}`); - const assets = inputs - .resolveTemplateInputs(value) - .templateDefaultBindings.flatMap((binding) => binding.defaultAssets); + const defaultBindings = inputs.resolveTemplateInputs(value).templateDefaultBindings; + const assets = defaultBindings + .filter((binding) => binding.field === 'referenceImages') + .flatMap((binding) => binding.defaultAssets); + const maskAsset = defaultBindings.find((binding) => binding.field === 'maskImage')?.defaultAssets[0]; // These do not resolve or copy public assets: the real upload service would // supply managed input paths after normal hash verification. const references = assets.map((asset, index) => `unit-managed-inputs/${id}/${index}-${asset.fileName}`); @@ -384,6 +407,7 @@ test('all ten fixed-input planning cards create exact ordinary FP8r task graphs' modelType: value.modelType, device, referenceImages: references, + maskImage: maskAsset ? `unit-managed-inputs/${id}/${maskAsset.fileName}` : '', }; assert.equal(Object.hasOwn(form, 'modelRepo'), false, 'Normal creator form does not store the loader repository.'); assert.deepEqual( @@ -473,8 +497,11 @@ test('all ten fixed-input planning cards create exact ordinary FP8r task graphs' ); } if (value.mode === 'edit_image') { - const image = nodeFor('modules.Image', 'Load'); const encoder = nodeFor('modules.ModularDiffusers', 'ImageEncode'); + const imageWire = graph.edges.find((item) => item.target === encoder.id && item.targetHandle === 'image'); + const image = graph.nodes.find((item) => item.id === imageWire.source); + assert.equal(image.data.module, 'modules.Image'); + assert.equal(image.data.action, 'Load'); assert.deepEqual(image.data.params.file.value, references, `${id}: preserve ordered references`); assert.equal(references.length, value.inputRequirements.referenceImages); edge(owner, 'vae_out', encoder, 'vae'); @@ -501,6 +528,120 @@ test('all ten fixed-input planning cards create exact ordinary FP8r task graphs' assert.equal(guider.data.params.guidance_scale.value, 3.5); edge(guider, 'guider_out', denoise, 'guider'); } + if (id.endsWith('_multi_reference_edit')) { + const settings = { + backgroundReferenceIndex: 1, + foregroundSize: { width: 768, height: 768 }, + verticalPad: { width: 768, height: 1280 }, + horizontalPad: { width: 1024, height: 1280 }, + crop: { x: 0, y: value.modelType === 'Flux3ModularPipeline' ? 165 : 205, width: 1024, height: 1024 }, + maskChannel: 'luminance', + invertMask: false, + }; + const composedTemplate = { + ...value, + workflowBlocks: ['masked_composite'], + workflowBlockSettings: { maskedComposite: settings }, + }; + const composedForm = { ...form, maskImage: 'unit-managed-inputs/protected-photo-mask.png' }; + const compose = (template = composedTemplate, currentForm = composedForm, nodes = registry) => + creator.createTemplateOperationGraph(template, currentForm, starter, nodes, spec, capability, { + workflowModelDescriptors: descriptors, + }); + const groupedComposite = compose(); + const composed = flow.expandFlowExecutionGraph(groupedComposite.nodes, groupedComposite.edges); + const byAction = (module, action) => + composed.nodes.filter((node) => node.data.module === module && node.data.action === action); + assert.equal(byAction('modules.ModularDiffusers', 'ModelsLoader').length, 1); + const exported = flow.useFlowStore.getState().exportGraph('composite-source-unit', undefined, { + sourceGraph: groupedComposite, + randomizeSeeds: false, + }); + const baseline = flow.useFlowStore.getState().exportGraph('composite-baseline-unit', undefined, { + sourceGraph: grouped, + randomizeSeeds: false, + }); + const loaderCall = (api) => Object.values(api.nodes).find((node) => node.action === 'ModelsLoader').params; + assert.deepEqual( + loaderCall(exported), + loaderCall(baseline), + 'composition never changes the executable model recipe', + ); + assert.equal(byAction('modules.Image', 'Load').length, 3); + const masks = byAction('modules.Image', 'Load').filter( + (node) => JSON.stringify(node.data.params.file.value) === JSON.stringify([composedForm.maskImage]), + ); + assert.equal(masks.length, 1); + const backgrounds = byAction('modules.Image', 'Load').filter( + (node) => JSON.stringify(node.data.params.file.value) === JSON.stringify([references[1]]), + ); + assert.equal(backgrounds.length, 1, 'background is the second reference, preserving the generation input order'); + const resizes = byAction('modules.Image', 'Resize'); + assert.deepEqual( + resizes.map((node) => + ['width', 'height', 'method', 'interpolation', 'multiple_of'].map((k) => node.data.params[k].value), + ), + [ + [768, 768, 'stretch', 'lanczos', 1], + [768, 1280, 'pad', 'lanczos', 1], + [1024, 1280, 'pad', 'lanczos', 1], + ], + ); + const crops = byAction('modules.ImageOperations', 'CropImage'); + assert.equal(crops.length, 1); + assert.equal(crops[0].data.params.y.value, settings.crop.y); + const composites = byAction('modules.ImageOperations', 'MaskComposite'); + const saves = byAction('modules.Image', 'Save'); + assert.equal(composites.length, 1); + assert.equal(saves.length, 1); + assert.equal(saves[0].data.params.saved_images.fieldOptions.format, 'PNG'); + assert.match(saves[0].data.params.filename.value, /\.png$/u); + for (const [source, output, target, input] of [ + [backgrounds[0], 'image', composites[0], 'background'], + [masks[0], 'image', composites[0], 'mask'], + [crops[0], 'output', composites[0], 'foreground'], + [composites[0], 'output', saves[0], 'image'], + ]) + assert.equal( + composed.edges.filter( + (e) => + e.source === source.id && e.sourceHandle === output && e.target === target.id && e.targetHandle === input, + ).length, + 1, + ); + assert.equal(Object.values(exported.nodes).filter((node) => node.action === 'MaskComposite').length, 1); + assert.equal(Object.values(exported.nodes).filter((node) => node.action === 'Save').length, 1); + assert.throws(() => compose(composedTemplate, { ...composedForm, maskImage: '' }), /protection mask/); + assert.throws(() => compose(composedTemplate, { ...composedForm, batchSize: 2 }), /one image per prompt/); + assert.throws( + () => + compose({ + ...composedTemplate, + workflowBlockSettings: { + maskedComposite: { ...settings, backgroundReferenceIndex: 2 }, + }, + }), + /existing ordered reference/, + ); + assert.throws( + () => + compose({ + ...composedTemplate, + workflowBlockSettings: { + maskedComposite: { ...settings, crop: { ...settings.crop, y: -1 } }, + }, + }), + /crop origin/, + ); + const lossyRegistry = structuredClone(registry); + delete lossyRegistry['modules.Image.Save'].params.saved_images.fieldOptions; + assert.throws(() => compose(composedTemplate, composedForm, lossyRegistry), /lossless Save Image/); + for (const key of Object.keys(utilities.registry)) { + const missing = structuredClone(registry); + delete missing[key]; + assert.throws(() => compose(composedTemplate, composedForm, missing), /backend registry is missing/); + } + } assert.equal( graph.nodes.some((node) => node.data.module === 'modules.HuggingFaceTransformers'), false, diff --git a/scripts/resolved-execution-inputs.test.mjs b/scripts/resolved-execution-inputs.test.mjs index c2bc05e1..de50fd14 100644 --- a/scripts/resolved-execution-inputs.test.mjs +++ b/scripts/resolved-execution-inputs.test.mjs @@ -219,6 +219,75 @@ test('actual mocked DDIM native accounting survives history without changing leg assert.equal(JSON.stringify(inputs.coerceResolvedExecutionInputs(legacy, identity)), before); }); +test('the actual Python image utility producer retains scoped controls and ordered hashes in history', () => { + const backend = fileURLToPath(new URL('../../MoDiff/', import.meta.url)); + const python = + process.env.MODIFF_BACKEND_PYTHON || + `${backend}.venv/${process.platform === 'win32' ? 'Scripts/python.exe' : 'bin/python'}`; + const produced = spawnSync( + python, + [ + '-B', + '-c', + String.raw` +import json +from modiff.execution_input_provenance import capture_generation_inputs, build_resolved_execution_inputs +cases = [ + ('Image','Load',{'alpha_channel':'ignore','source_hashes':['a'*64,'b'*64], 'source_widths':[512,1024], 'source_heights':[512,1024], 'source_modes':['RGB','L']}), + ('Image','Resize',{'width':768,'height':1280,'method':'pad','multiple_of':1,'interpolation':'lanczos'}), + ('ImageOperations','ResizeImage',{'fit_mode':'contain','resampling':'bicubic'}), + ('ImageOperations','CropImage',{'x':0,'y':165,'width':1024,'height':1024}), + ('ImageOperations','MaskComposite',{'mask_channel':'luminance','invert_mask':False}), + ('Image','Save',{'filename':'studio/outputs/composite_{HASH:12}.png','quality':100}), +] +nodes, records = {}, {} +for i,(module,action,values) in enumerate(cases): + key='node-'+str(i) + node={'module':'modules.'+module,'action':action,'params':({'image':{'sourceId':'node-'+str(i-1),'sourceKey':'output'}} if i else {})} + nodes[key]=node + records[key]=capture_generation_inputs(key,node,{**values,'token':'not-evidence'}) +receipt=build_resolved_execution_inputs({'nodes':nodes},records,task_id='protocol-only',attempt_index=0,node_id='node-5') +print(json.dumps(receipt)) +`, + ], + { cwd: backend, encoding: 'utf8', maxBuffer: 300_000 }, + ); + assert.equal(produced.status, 0, produced.stderr); + const capture = JSON.parse(produced.stdout); + const original = JSON.stringify(capture); + const identity = { taskId: capture.taskId, attemptIndex: 0, nodeId: capture.nodeId }; + const parsed = inputs.coerceResolvedExecutionInputs(capture, identity); + assert.ok(parsed, 'the compatible client must retain the genuine producer contract'); + const load = parsed.nodes.find((node) => node.action === 'Load'); + assert.deepEqual(load.fields.source_hashes.value, ['a'.repeat(64), 'b'.repeat(64)]); + assert.deepEqual(load.fields.source_modes.value, ['RGB', 'L']); + assert.equal(parsed.nodes.find((node) => node.action === 'CropImage').fields.y.value, 165); + assert.equal(parsed.nodes.find((node) => node.action === 'MaskComposite').fields.invert_mask.value, false); + assert.equal(JSON.stringify(capture), original, 'no receipt rewrites'); + assert.equal(original.includes('not-evidence'), false); + const restored = contracts.coerceStudioOutput({ + id: 'image-utility-protocol', + url: '/fixture.png', + ...identity, + resolvedExecutionInputs: capture, + }); + assert.deepEqual(restored.resolvedExecutionInputs, parsed); + const moved = structuredClone(capture); + moved.nodes[0].action = 'UnreviewedAction'; + assert.equal( + inputs.coerceResolvedExecutionInputs(moved, identity), + undefined, + 'scoped fields cannot move to another action', + ); + const reordered = structuredClone(capture); + reordered.nodes.find((node) => node.action === 'Load').fields.source_hashes.value.reverse(); + assert.equal( + inputs.coerceResolvedExecutionInputs(reordered, identity), + undefined, + 'a summary cannot borrow reordered input evidence', + ); +}); + test('optional accounting rejects unknown scopes, objects, origins, projections and incomplete claims', () => { const { receipt: original } = actualDdimAccountingFixture(); const identity = { taskId: original.taskId, attemptIndex: original.attemptIndex, nodeId: original.nodeId }; diff --git a/scripts/template-operation-fixtures.py b/scripts/template-operation-fixtures.py index 0b308c87..9fba808b 100644 --- a/scripts/template-operation-fixtures.py +++ b/scripts/template-operation-fixtures.py @@ -101,7 +101,8 @@ def describe(key): for key in ("modules.ImageOperations.ProcessImage", "modules.ModularDiffusers.Lora", "modules.ModularDiffusers.QuantizationConfigNode", "modules.DiffusersImage.LoadAdapter", - "modules.Spandrel.Upscaler", "modules.Image.Preview", + "modules.Spandrel.Upscaler", "modules.Image.Preview", "modules.Image.Resize", + "modules.Image.Save", "modules.ImageOperations.CropImage", "modules.ImageOperations.MaskComposite", "modules.DiffusersImage.OutpaintCanvas", "modules.Audio.Export", "modules.Audio.Load", "modules.Image.Load", "modules.DiffusersAudio.LoadAdapter"): describe(key) diff --git a/src/studio/controlledWorkflowContracts.ts b/src/studio/controlledWorkflowContracts.ts index 039c6668..5604c4d8 100644 --- a/src/studio/controlledWorkflowContracts.ts +++ b/src/studio/controlledWorkflowContracts.ts @@ -4,6 +4,11 @@ export const CONTROLLED_WORKFLOW_NODE_KEYS = { audioLora: 'modules.DiffusersAudio.LoadAdapter', upscaler: 'modules.Spandrel.Upscaler', preview: 'modules.Image.Preview', + imageLoad: 'modules.Image.Load', + imageResize: 'modules.Image.Resize', + imageCrop: 'modules.ImageOperations.CropImage', + imageMaskComposite: 'modules.ImageOperations.MaskComposite', + imageSave: 'modules.Image.Save', videoSequence: 'modules.DiffusersVideo.GenerateSequence', videoCompose: 'modules.Video.Compose', lyricOverlay: 'modules.Video.LyricOverlay', diff --git a/src/studio/resolvedExecutionInputs.ts b/src/studio/resolvedExecutionInputs.ts index fb9e5cb4..9620ff87 100644 --- a/src/studio/resolvedExecutionInputs.ts +++ b/src/studio/resolvedExecutionInputs.ts @@ -146,6 +146,28 @@ const inputNames: Record = { // Mirror the backend's scoped capture contract. Auxiliary revisions must never // overwrite the base model's identity; unknown fields still reject the receipt. const nodeInputNames: Record> = { + 'Image.Load': { + ...inputNames, + alpha_channel: 'imageAlphaChannel', + source_hashes: 'imageSourceHashes', + source_widths: 'imageSourceWidths', + source_heights: 'imageSourceHeights', + source_modes: 'imageSourceModes', + }, + 'Image.Resize': { + ...inputNames, + method: 'imageResizeMethod', + interpolation: 'imageInterpolation', + multiple_of: 'imageSizeMultiple', + }, + 'ImageOperations.ResizeImage': { ...inputNames, fit_mode: 'imageFitMode', resampling: 'imageResampling' }, + 'ImageOperations.CropImage': { ...inputNames, x: 'imageCropLeft', y: 'imageCropTop' }, + 'ImageOperations.MaskComposite': { + ...inputNames, + mask_channel: 'imageMaskChannel', + invert_mask: 'imageMaskInverted', + }, + 'Image.Save': { ...inputNames, filename: 'imageSaveFilename', quality: 'imageSaveQuality' }, 'ModularDiffusers.ModelsLoader': { ...inputNames, weight_format: 'weightFormat' }, 'DiffusersImage.LoadPipeline': { ...inputNames, mode: 'executionMode' }, ...Object.fromEntries( diff --git a/src/studio/templateAssetSource.json b/src/studio/templateAssetSource.json index fb34dc2f..4c458863 100644 --- a/src/studio/templateAssetSource.json +++ b/src/studio/templateAssetSource.json @@ -8,11 +8,12 @@ "pathPrefix": "template-gallery", "assetManifestPath": "_modiff/template-assets.v1.json", "assetSetId": "sha256:canonical-json:5ec869b755a6ce04a789d6835819da150493bfaef8a6bc1480f0274ba05bcab9", - "completeAssetSetId": "sha256:canonical-json:ec61fbc1b76da02110e4a0cddc4e222026e911a6e00451f85678f66d2b32ec85", + "completeAssetSetId": "sha256:canonical-json:b859b8cb1720f8fcca245726686e2d3e4c2a93e74a9be3d9d90567d93c277700", "unavailableAssets": [ "template-gallery/ace_step_chinese_new_year_lora.card-poster.png", "template-gallery/ace_step_chinese_new_year_lora.wav", "template-gallery/flux_lora_ghibli_story.card-poster.webp", - "template-gallery/flux_lora_ghibli_story.webp" + "template-gallery/flux_lora_ghibli_story.webp", + "template-gallery/inputs/flux3-packaging-protected-photo-mask-v1.png" ] } diff --git a/src/studio/templateImageComposite.ts b/src/studio/templateImageComposite.ts new file mode 100644 index 00000000..eddd56f0 --- /dev/null +++ b/src/studio/templateImageComposite.ts @@ -0,0 +1,80 @@ +import type { CustomNodeType } from '../stores/useFlowStore'; +import type { OperationGraph } from '../workflow/operationAuthoring'; +import { CONTROLLED_WORKFLOW_NODE_KEYS as KEYS } from './controlledWorkflowContracts'; +import type { StudioFormState, StudioTemplateWorkflowBlockSettings } from './types'; + +/** Author ordinary image nodes inside the existing fresh-template transaction. */ +export function attachTemplateImageComposite({ + graph, + form, + settings, + preview, + utility, + set, + connect, +}: { + graph: OperationGraph; + form: StudioFormState; + settings: StudioTemplateWorkflowBlockSettings['maskedComposite']; + preview: CustomNodeType | undefined; + utility: (key: string, index: number) => CustomNodeType; + set: (node: CustomNodeType, names: string[], value: unknown) => void; + connect: (from: CustomNodeType, outputs: string[], to: CustomNodeType, inputs: string[]) => void; +}) { + const input = graph.edges.find((edge) => edge.target === preview?.id && edge.targetHandle === 'image'); + const source = input && graph.nodes.find((node) => node.id === input.source); + if (!settings || !preview || !input || !source) + throw new Error('The masked composite template needs one declared decoded image output.'); + const index = settings.backgroundReferenceIndex; + if (!Number.isSafeInteger(index) || index < 0 || index >= form.referenceImages.length) + throw new Error('The masked composite background must select an existing ordered reference.'); + const backgroundPath = form.referenceImages[index]; + if (typeof backgroundPath !== 'string' || !backgroundPath.trim() || !form.maskImage.trim()) + throw new Error('Choose the background reference and protection mask before creating this workflow.'); + if (form.batchSize !== 1) throw new Error('The masked composite template needs one image per prompt.'); + for (const size of [settings.foregroundSize, settings.verticalPad, settings.horizontalPad, settings.crop]) { + if (!size || ![size.width, size.height].every((n) => Number.isSafeInteger(n) && n >= 1 && n <= 8192)) + throw new Error('The masked composite dimensions must be whole numbers between 1 and 8192.'); + } + if (![settings.crop.x, settings.crop.y].every((n) => Number.isSafeInteger(n) && n >= 0 && n <= 8191)) + throw new Error('The masked composite crop origin is invalid.'); + if (typeof settings.invertMask !== 'boolean') throw new Error('The masked composite mask inversion is invalid.'); + + const background = utility(KEYS.imageLoad, 0); + const mask = utility(KEYS.imageLoad, 1); + set(background, ['file'], [backgroundPath]); + set(mask, ['file'], [form.maskImage]); + for (const node of [background, mask]) set(node, ['alpha_channel'], 'ignore'); + background.data.label = 'Protected background'; + mask.data.label = 'Protection mask'; + let foreground = source; + let sourceHandle = input.sourceHandle!; + for (const [position, size] of [settings.foregroundSize, settings.verticalPad, settings.horizontalPad].entries()) { + const resize = utility(KEYS.imageResize, position + 2); + set(resize, ['width'], size.width); + set(resize, ['height'], size.height); + set(resize, ['method'], position === 0 ? 'stretch' : 'pad'); + set(resize, ['multiple_of'], 1); + set(resize, ['interpolation'], 'lanczos'); + connect(foreground, [sourceHandle], resize, ['image']); + foreground = resize; + sourceHandle = 'output'; + } + const crop = utility(KEYS.imageCrop, 5); + for (const field of ['x', 'y', 'width', 'height'] as const) set(crop, [field], settings.crop[field]); + connect(foreground, [sourceHandle], crop, ['image']); + const composite = utility(KEYS.imageMaskComposite, 6); + set(composite, ['mask_channel'], settings.maskChannel); + set(composite, ['invert_mask'], settings.invertMask); + connect(background, ['image'], composite, ['background']); + connect(crop, ['output'], composite, ['foreground']); + connect(mask, ['image'], composite, ['mask']); + const save = utility(KEYS.imageSave, 7); + if (save.data.params.saved_images?.fieldOptions?.format !== 'PNG') + throw new Error('Refresh the paired backend to use the lossless Save Image Gallery preview.'); + set(save, ['filename'], 'studio/outputs/composite_{HASH:12}.png'); + set(save, ['quality'], 100); + set(save, ['metadata'], ''); + save.data.label = 'Protected image (PNG)'; + connect(composite, ['output'], save, ['image']); +} diff --git a/src/studio/templateOperationWorkflow.ts b/src/studio/templateOperationWorkflow.ts index 44bd95c6..5278ff9d 100644 --- a/src/studio/templateOperationWorkflow.ts +++ b/src/studio/templateOperationWorkflow.ts @@ -1,4 +1,5 @@ import { attachPromptEnhancementParents } from './promptEnhancementAuthoring'; +import { attachTemplateImageComposite } from './templateImageComposite'; import { selectedAudioAdapterPolicy } from '../workflow/selectedAudioAdapterAuthority'; import { validateModelSetupAdapterSelection, @@ -496,6 +497,16 @@ export function createTemplateOperationGraph( link.targetHandles, ); } + } else if (block === 'masked_composite') { + attachTemplateImageComposite({ + graph, + form, + settings: template.workflowBlockSettings?.maskedComposite, + preview: roles.get('preview'), + utility, + set, + connect, + }); } else if (block === 'upscaler') { const preview = roles.get('preview'); const input = graph.edges.find((edge) => edge.target === preview?.id && edge.targetHandle === 'image'); diff --git a/src/studio/templates.ts b/src/studio/templates.ts index b06ffcd8..6b20539e 100644 --- a/src/studio/templates.ts +++ b/src/studio/templates.ts @@ -3,6 +3,7 @@ import type { StudioTemplate, StudioTemplateExample, StudioTemplateId, + StudioTemplateInputBinding, StudioTemplateIntentGroup, StudioTemplateLockedSettings, StudioTemplateMediaSlot, @@ -3966,13 +3967,55 @@ function withVideoDeliveryWorkflow(template: StudioTemplateSource, index: number }; } +const TWO_CONTROL_RADIO_PROMPT = + 'An original studio product photograph of one compact ceramic field radio on a pale limestone plinth. Its warm ivory glazed body has a flat top and smooth sides. All user controls are on the front: exactly two circular brass knobs arranged vertically in a narrow strip at the far left, beside one dark woven speaker grille. No controls on the top or sides, and no other knobs, buttons, switches, gauges or badges. Show the radio in front three-quarter view with generous negative space, soft daylight from the left, realistic grounded contact shadows and fine ceramic, brass, woven fabric and limestone texture. Unbranded, quiet neutral background and restrained colors. No people, logos or readable text.'; +const RING_HABITAT_PROMPT = + 'One complete rotating ring habitat above Earth, seen from outside in three-quarter view. A single continuous white torus surrounds a plain central hub. Warm sunlight falls across the curved structure against deep blue space, with a small view of Earth below. Every hardware surface is blank and unmarked. One habitat fills a balanced square composition, without people, other spacecraft, plants, flowers, grass or stems. No writing, letters, numbers, labels, logos, emblems, watermarks, signatures, border or frame. nsc7 style'; +const MEADOW_FOX_PROMPT = + 'mnt_oil, a full-bleed impressionist oil painting of a single red fox walking through sunlit meadow grass beside a quiet woodland pond. The fox has a clear natural silhouette, one head, one bushy tail and coherent legs. Loose broken brushstrokes and luminous green and gold reflections contrast with soft blue shadows. Grass, reeds, water and dappled foliage fill the entire square canvas from edge to edge. The lower corners are softly painted meadow grass and pond reflections, continuous with the rest of the scene. A simple peaceful composition, natural morning light, no people, no lettering, no frame.'; + +function protectedPhotoMaskBinding(id: StudioTemplateId): StudioTemplateInputBinding { + return { + id: `${id}-protection-mask`, + label: 'Authored photo-panel protection mask', + mediaType: 'image', + origin: 'template', + requiredAt: 'workflow_start', + field: 'maskImage', + defaultAssets: [ + { + id: 'packaging-photo-protection-mask-v1', + label: 'Photo-panel edit area; all other guide pixels protected', + mediaType: 'image', + runtimePath: '/template-gallery/inputs/flux3-packaging-protected-photo-mask-v1.png', + runtimeSha256: 'sha256:bytes:d36162153e2009e0b2f3a711825d39e67c02ba3577971a444bd92eebe81169ac', + fileName: 'flux3-packaging-protected-photo-mask-v1.png', + }, + ], + }; +} + +function protectedPhotoSettings(cropTop: number): StudioTemplateWorkflowBlockSettings { + return { + maskedComposite: { + backgroundReferenceIndex: 1, + foregroundSize: { width: 768, height: 768 }, + verticalPad: { width: 768, height: 1280 }, + horizontalPad: { width: 1024, height: 1280 }, + crop: { x: 0, y: cropTop, width: 1024, height: 1024 }, + maskChannel: 'luminance', + invertMask: false, + }, + }; +} + const NORMALIZED_STUDIO_TEMPLATES: StudioTemplate[] = [ ...BASE_STUDIO_TEMPLATES.map(withVideoDeliveryWorkflow), // Kept in PLANNING_STUDIO_TEMPLATES until exact runtime/media/rights review. withTemplateRecipeDefaults( { id: 'flux3_klein_fp8r512_text_to_image', - label: 'FLUX 3 Distilled Quick 512 FP8r - Text to Image: Ceramic Radio', + label: 'FLUX 3 Distilled Quick 512 FP8r - Text to Image: Ceramic Radio v2', modelDisplayName: 'FLUX 3 Image Klein Distilled', mode: 'text_to_image', modelType: 'Flux3DistilledModularPipeline', @@ -3995,15 +4038,14 @@ const NORMALIZED_STUDIO_TEMPLATES: StudioTemplate[] = [ vramEstimate: 'Unmeasured for this exact 512 FP8r recipe. FP8r storage does not guarantee native FP8 GEMM or device fit.', runtimeEstimate: 'Unmeasured distinct 512 x 512 FP8r recipe; original 1024 receipts are not reused.', - description: - 'Create an original studio product photograph of a compact ceramic field radio on a pale limestone plinth. The body has a warm ivory glaze, two circular brass controls and a dark woven speaker grille. Compose a front three-quarter view with generous negative space, soft daylight from the left, grounded contact shadows and fine believable material texture. Keep the object unbranded, the background quiet and the color palette restrained. No people, logos or readable text.', + description: TWO_CONTROL_RADIO_PROMPT, userGoal: 'Inspect the ordinary editable graph and select only the declared runtime and prompt enhancement choices.', presetId: 'flux_fast', example: { mediaType: 'image', status: 'blocked', - lockedSeed: 481001, + lockedSeed: 481402, modelRevision: '8454017f9ebaada30c998fccd9f67a80c7580f68', lockedSettings: { width: 512, @@ -4039,10 +4081,7 @@ const NORMALIZED_STUDIO_TEMPLATES: StudioTemplate[] = [ ], }, }, - [ - 'Create an original studio product photograph of a compact ceramic field radio on a pale limestone plinth. The body has a warm ivory glaze, two circular brass controls and a dark woven speaker grille. Compose a front three-quarter view with generous negative space, soft daylight from the left, grounded contact shadows and fine believable material texture. Keep the object unbranded, the background quiet and the color palette restrained. No people, logos or readable text.', - '', - ], + [TWO_CONTROL_RADIO_PROMPT, ''], -1, ), withTemplateRecipeDefaults( @@ -4149,7 +4188,7 @@ const NORMALIZED_STUDIO_TEMPLATES: StudioTemplate[] = [ withTemplateRecipeDefaults( { id: 'flux3_klein_fp8r512_multi_reference_edit', - label: 'FLUX 3 Distilled Quick 512 FP8r - Two-Reference Edit: Glass Packaging', + label: 'FLUX 3 Distilled Quick 512 FP8r - Two-Reference Edit + Protected Packaging v2', modelDisplayName: 'FLUX 3 Image Klein Distilled', mode: 'edit_image', modelType: 'Flux3DistilledModularPipeline', @@ -4163,6 +4202,10 @@ const NORMALIZED_STUDIO_TEMPLATES: StudioTemplate[] = [ revision: '8454017f9ebaada30c998fccd9f67a80c7580f68', }, requiredBackendCapabilities: [ + 'modules.Image.Save', + 'modules.ImageOperations.MaskComposite', + 'modules.ImageOperations.CropImage', + 'modules.Image.Resize', 'modules.ModularDiffusers.ModelsLoader', 'modules.ModularDiffusers.EncodePrompt', 'modules.ModularDiffusers.Denoise', @@ -4176,7 +4219,8 @@ const NORMALIZED_STUDIO_TEMPLATES: StudioTemplate[] = [ runtimeEstimate: 'Unmeasured distinct 512 x 512 FP8r recipe; original 1024 receipts are not reused.', description: 'Use reference image 1 as the cobalt-blue glass product subject. Use reference image 2 as the flat packaging dieline: preserve the cream background, black panel outlines, fold guides, rounded placeholder panels and yellow accent bands. Place a small coherent product photograph of the blue glass cube in the large central panel, leaving the structural lines and other panels intact. Keep the result a flat unfolded packaging design. Do not duplicate the product, add people, invent a brand or add readable text.', - userGoal: 'Use the two included approved inputs in order: glass subject first, flat packaging layout second.', + userGoal: + 'Use the ordered glass and layout references plus the authored photo-panel mask. Generation is followed by visible deterministic compositing that protects the guide.', presetId: 'flux_fast', example: { mediaType: 'image', @@ -4201,16 +4245,21 @@ const NORMALIZED_STUDIO_TEMPLATES: StudioTemplate[] = [ width: 512, height: 512, }, + galleryExpectedOutput: { width: 1024, height: 1024 }, runtimeEstimate: 'Pending measured exact 512 FP8r recipe', blockReason: 'Native output and template qualification, approved new output media and rights review are pending; this distinct 512 FP8r recipe grants no Gallery, Auto or hardware qualification.', notes: - 'No generated output, public output media, template receipt or fit measurement is attached. Diffusion uses FP8r storage, BF16 compute and no added quantization. PUP starts disabled; its explicit FP32/NF4 choices are separate. The second reference is normal edit-image conditioning, not ControlNet or source-owned structured geometry.', + 'No generated output, public output media, template receipt or fit measurement is attached. Diffusion uses FP8r storage, BF16 compute and no added quantization. PUP starts disabled; its explicit FP32/NF4 choices are separate. Generation keeps the two original references in order. The separate ordinary compositor uses the second reference and the authored mask to preserve guide pixels; this is generated plus composited, with no native Fill claim. Original failed recipes remain historical. The new mask and public outputs still require publication and technical acceptance.', }, inputRequirements: { referenceImages: 2, + maskImage: true, }, + workflowBlocks: ['masked_composite'], + workflowBlockSettings: protectedPhotoSettings(205), inputBindings: [ + protectedPhotoMaskBinding('flux3_klein_fp8r512_multi_reference_edit'), { id: 'flux3_klein_fp8r512_multi_reference_edit-references', label: 'Ordered glass subject and packaging layout references', @@ -4342,7 +4391,7 @@ const NORMALIZED_STUDIO_TEMPLATES: StudioTemplate[] = [ withTemplateRecipeDefaults( { id: 'flux3_klein_fp8r512_lora_style', - label: 'FLUX 3 Distilled Quick 512 FP8r - NASA Concept-Art LoRA (Test Candidate)', + label: 'FLUX 3 Distilled Quick 512 FP8r - NASA Concept-Art LoRA v2 (Test Candidate)', modelDisplayName: 'FLUX 3 Image Klein Distilled', mode: 'text_to_image', modelType: 'Flux3DistilledModularPipeline', @@ -4366,15 +4415,14 @@ const NORMALIZED_STUDIO_TEMPLATES: StudioTemplate[] = [ vramEstimate: 'Unmeasured for this exact 512 FP8r recipe. FP8r storage does not guarantee native FP8 GEMM or device fit.', runtimeEstimate: 'Unmeasured distinct 512 x 512 FP8r recipe; original 1024 receipts are not reused.', - description: - 'An unbranded ceramic field radio, a folded linen cloth and a single dried grass stem form a balanced three-quarter tabletop still life. Warm side lighting defines the radio silhouette and contact shadows. The radio, linen and stem remain clearly separated against an uncluttered background. No people, logos, readable text, signatures, watermarks or unrelated objects. nsc7 style', + description: RING_HABITAT_PROMPT, userGoal: 'Inspect the pinned NASA concept-art adapter and exact public recipe; style quality and publication remain pending.', presetId: 'flux_fast', example: { mediaType: 'image', status: 'blocked', - lockedSeed: 481005, + lockedSeed: 481205, modelRevision: '8454017f9ebaada30c998fccd9f67a80c7580f68', lockedSettings: { width: 512, @@ -4433,16 +4481,13 @@ const NORMALIZED_STUDIO_TEMPLATES: StudioTemplate[] = [ ], }, }, - [ - 'An unbranded ceramic field radio, a folded linen cloth and a single dried grass stem form a balanced three-quarter tabletop still life. Warm side lighting defines the radio silhouette and contact shadows. The radio, linen and stem remain clearly separated against an uncluttered background. No people, logos, readable text, signatures, watermarks or unrelated objects. nsc7 style', - '', - ], + [RING_HABITAT_PROMPT, ''], -1, ), withTemplateRecipeDefaults( { id: 'flux3_klein_base_fp8r512_text_to_image', - label: 'FLUX 3 Base 512 FP8r (50 steps) - Text to Image: Ceramic Radio', + label: 'FLUX 3 Base 512 FP8r (50 steps) - Text to Image: Ceramic Radio v2', modelDisplayName: 'FLUX 3 Image Klein Base', mode: 'text_to_image', modelType: 'Flux3ModularPipeline', @@ -4466,15 +4511,14 @@ const NORMALIZED_STUDIO_TEMPLATES: StudioTemplate[] = [ vramEstimate: 'Unmeasured for this exact 512 FP8r recipe. FP8r storage does not guarantee native FP8 GEMM or device fit.', runtimeEstimate: 'Unmeasured distinct 512 x 512 FP8r recipe; original 1024 receipts are not reused.', - description: - 'Create an original studio product photograph of a compact ceramic field radio on a pale limestone plinth. The body has a warm ivory glaze, two circular brass controls and a dark woven speaker grille. Compose a front three-quarter view with generous negative space, soft daylight from the left, grounded contact shadows and fine believable material texture. Keep the object unbranded, the background quiet and the color palette restrained. No people, logos or readable text.', + description: TWO_CONTROL_RADIO_PROMPT, userGoal: 'Inspect the ordinary editable graph and select only the declared runtime and prompt enhancement choices.', presetId: 'flux_quality', example: { mediaType: 'image', status: 'blocked', - lockedSeed: 481101, + lockedSeed: 481401, modelRevision: '1469d27cfb9bb1bd81d3a93f5a023b39dbf136e4', lockedSettings: { width: 512, @@ -4510,10 +4554,7 @@ const NORMALIZED_STUDIO_TEMPLATES: StudioTemplate[] = [ ], }, }, - [ - 'Create an original studio product photograph of a compact ceramic field radio on a pale limestone plinth. The body has a warm ivory glaze, two circular brass controls and a dark woven speaker grille. Compose a front three-quarter view with generous negative space, soft daylight from the left, grounded contact shadows and fine believable material texture. Keep the object unbranded, the background quiet and the color palette restrained. No people, logos or readable text.', - '', - ], + [TWO_CONTROL_RADIO_PROMPT, ''], -1, ), withTemplateRecipeDefaults( @@ -4621,7 +4662,7 @@ const NORMALIZED_STUDIO_TEMPLATES: StudioTemplate[] = [ withTemplateRecipeDefaults( { id: 'flux3_klein_base_fp8r512_multi_reference_edit', - label: 'FLUX 3 Base 512 FP8r (50 steps) - Two-Reference Edit: Glass Packaging', + label: 'FLUX 3 Base 512 FP8r (50 steps) - Two-Reference Edit + Protected Packaging v3', modelDisplayName: 'FLUX 3 Image Klein Base', mode: 'edit_image', modelType: 'Flux3ModularPipeline', @@ -4635,6 +4676,10 @@ const NORMALIZED_STUDIO_TEMPLATES: StudioTemplate[] = [ revision: '1469d27cfb9bb1bd81d3a93f5a023b39dbf136e4', }, requiredBackendCapabilities: [ + 'modules.Image.Save', + 'modules.ImageOperations.MaskComposite', + 'modules.ImageOperations.CropImage', + 'modules.Image.Resize', 'modules.ModularDiffusers.ModelsLoader', 'modules.ModularDiffusers.EncodePrompt', 'modules.ModularDiffusers.Denoise', @@ -4649,7 +4694,8 @@ const NORMALIZED_STUDIO_TEMPLATES: StudioTemplate[] = [ runtimeEstimate: 'Unmeasured distinct 512 x 512 FP8r recipe; original 1024 receipts are not reused.', description: 'Use reference image 1 as the cobalt-blue glass product subject. Use reference image 2 as the flat packaging dieline: preserve the cream background, black panel outlines, fold guides, rounded placeholder panels and yellow accent bands. Place a small coherent product photograph of the blue glass cube in the large central panel, leaving the structural lines and other panels intact. Keep the result a flat unfolded packaging design. Do not duplicate the product, add people, invent a brand or add readable text.', - userGoal: 'Use the two included approved inputs in order: glass subject first, flat packaging layout second.', + userGoal: + 'Use the ordered glass and layout references plus the authored photo-panel mask. Generation is followed by visible deterministic compositing that protects the guide.', presetId: 'flux_quality', example: { mediaType: 'image', @@ -4674,16 +4720,21 @@ const NORMALIZED_STUDIO_TEMPLATES: StudioTemplate[] = [ width: 512, height: 512, }, + galleryExpectedOutput: { width: 1024, height: 1024 }, runtimeEstimate: 'Pending measured exact 512 FP8r recipe', blockReason: 'Native output and template qualification, approved new output media and rights review are pending; this distinct 512 FP8r recipe grants no Gallery, Auto or hardware qualification.', notes: - 'No generated output, public output media, template receipt or fit measurement is attached. Diffusion uses FP8r storage, BF16 compute and no added quantization. PUP starts disabled; its explicit FP32/NF4 choices are separate. The second reference is normal edit-image conditioning, not ControlNet or source-owned structured geometry.', + 'No generated output, public output media, template receipt or fit measurement is attached. Diffusion uses FP8r storage, BF16 compute and no added quantization. PUP starts disabled; its explicit FP32/NF4 choices are separate. Generation keeps the two original references in order. The separate ordinary compositor uses the second reference and the authored mask to preserve guide pixels; this is generated plus composited, with no native Fill claim. Original failed recipes remain historical. The new mask and public outputs still require publication and technical acceptance.', }, inputRequirements: { referenceImages: 2, + maskImage: true, }, + workflowBlocks: ['masked_composite'], + workflowBlockSettings: protectedPhotoSettings(165), inputBindings: [ + protectedPhotoMaskBinding('flux3_klein_base_fp8r512_multi_reference_edit'), { id: 'flux3_klein_base_fp8r512_multi_reference_edit-references', label: 'Ordered glass subject and packaging layout references', @@ -4816,7 +4867,7 @@ const NORMALIZED_STUDIO_TEMPLATES: StudioTemplate[] = [ withTemplateRecipeDefaults( { id: 'flux3_klein_base_fp8r512_lora_style', - label: 'FLUX 3 Base 512 FP8r (50 steps) - Monet Oil-Painting LoRA (Test Candidate)', + label: 'FLUX 3 Base 512 FP8r (50 steps) - Monet Oil-Painting LoRA v3 (Test Candidate)', modelDisplayName: 'FLUX 3 Image Klein Base', mode: 'text_to_image', modelType: 'Flux3ModularPipeline', @@ -4841,15 +4892,14 @@ const NORMALIZED_STUDIO_TEMPLATES: StudioTemplate[] = [ vramEstimate: 'Unmeasured for this exact 512 FP8r recipe. FP8r storage does not guarantee native FP8 GEMM or device fit.', runtimeEstimate: 'Unmeasured distinct 512 x 512 FP8r recipe; original 1024 receipts are not reused.', - description: - 'mnt_oil, an oil painting of a single red fox standing on a moss-covered rock in an ancient forest. The fox is clearly separated from the trees and foliage, with soft morning light filtering through the canopy. Preserve one coherent fox, a readable rock silhouette and a balanced square composition. No ornamental card frame, lettering, logos, signatures or watermarks.', + description: MEADOW_FOX_PROMPT, userGoal: 'Inspect the pinned Base Monet replacement and exact public recipe; output qualification and publication remain pending.', presetId: 'flux_quality', example: { mediaType: 'image', status: 'blocked', - lockedSeed: 481105, + lockedSeed: 481405, modelRevision: '1469d27cfb9bb1bd81d3a93f5a023b39dbf136e4', lockedSettings: { width: 512, @@ -4889,7 +4939,7 @@ const NORMALIZED_STUDIO_TEMPLATES: StudioTemplate[] = [ }, weightName: 'mnt_oil_klein3.safetensors', adapterName: 'mnt_oil', - scale: 1, + scale: 0.65, }, }, executionSelection: IMAGE_TEMPLATE_EXECUTION_SELECTIONS.flux3_klein_base_fp8r512_lora_style, @@ -4899,14 +4949,11 @@ const NORMALIZED_STUDIO_TEMPLATES: StudioTemplate[] = [ 'The exact public source profile is required; package qualification alone is not a template image proof.', 'PUP is advisory and starts disabled. No authored regions: ordinary Enable selects declared raw FP32. Select BF16 + NF4 explicitly if desired; this never changes diffusion FP8r storage selection.', 'With authored regions, append wording preserves them. Constrained table generation is a separate explicit Expert choice; do not enable it on a null layout.', - "The pinned Monet adapter declares FLUX Kommunity License v1.0. Keep mnt_oil at the start of the prompt and scale 1 for this Base candidate. The author warns about invented corner signatures; inspect the actual output. Its training-data provenance is the author's statement, and output publication remains unapproved.", + "The pinned Monet adapter declares FLUX Kommunity License v1.0. Keep mnt_oil at the start of the prompt and scale 0.65 for this versioned Base candidate. The author warns about invented corner signatures; inspect the actual output. Its training-data provenance is the author's statement, and output publication remains unapproved.", ], }, }, - [ - 'mnt_oil, an oil painting of a single red fox standing on a moss-covered rock in an ancient forest. The fox is clearly separated from the trees and foliage, with soft morning light filtering through the canopy. Preserve one coherent fox, a readable rock silhouette and a balanced square composition. No ornamental card frame, lettering, logos, signatures or watermarks.', - '', - ], + [MEADOW_FOX_PROMPT, ''], -1, ), // Experimental Custom recipes use explicit full-model contracts; their diff --git a/src/studio/types.ts b/src/studio/types.ts index 7ad2bec4..e4994e50 100644 --- a/src/studio/types.ts +++ b/src/studio/types.ts @@ -1293,7 +1293,7 @@ export type StudioTemplateIntentGroup = | 'planning'; export type StudioTemplateWorkflowBlock = - 'lora' | 'upscaler' | 'video_sequence' | 'quality_video_sequence' | 'soundtrack' | 'lyric_video'; + 'lora' | 'upscaler' | 'masked_composite' | 'video_sequence' | 'quality_video_sequence' | 'soundtrack' | 'lyric_video'; export type StudioTemplateModelArtifact = { source: 'hub' | 'local'; @@ -1328,6 +1328,15 @@ export type StudioTemplateLoraSettings = { }; export type StudioTemplateWorkflowBlockSettings = { + maskedComposite?: { + backgroundReferenceIndex: number; + foregroundSize: { width: number; height: number }; + verticalPad: { width: number; height: number }; + horizontalPad: { width: number; height: number }; + crop: { x: number; y: number; width: number; height: number }; + maskChannel: 'luminance' | 'alpha' | 'red' | 'green' | 'blue'; + invertMask: boolean; + }; lora?: StudioTemplateLoraSettings; upscaler?: { model: StudioTemplateModelArtifact; diff --git a/tests/fixtures/template-image-composite-utilities.v1.json b/tests/fixtures/template-image-composite-utilities.v1.json new file mode 100644 index 00000000..5f7b5e68 --- /dev/null +++ b/tests/fixtures/template-image-composite-utilities.v1.json @@ -0,0 +1,368 @@ +{ + "schemaVersion": 1, + "proofScope": "Isolated actual registry metadata for ordinary image utility authoring; no executable node construction, weights, native output or hardware qualification.", + "producer": "scripts/template-operation-fixtures.py with empty selections; only four complete utility leaves retained.", + "sourceHashes": { + "modules/Image/main.py": "957efd1312a290d7250fe2d5a9d858b0f98808552c197f5ba9a5642bc4b18ed2", + "modules/ImageOperations/main.py": "9e39d703ad9638e2fdc147dba56246b3fa0fcbb5f67f582a5428b0c6353fc777", + "modiff/server.py": "9a4999e7168c21f83f1d9af6ee89525c7d3803ff72c311533933d6e342998f72", + "scripts/template-operation-fixtures.py": "e335a21e22cfd4eb0e17301c1d4e2d2f380792b6e03da77f017aa5c15e8cd84b" + }, + "registry": { + "modules.Image.Resize": { + "module": "modules.Image", + "action": "Resize", + "type": "custom", + "label": "Resize", + "category": "image", + "description": "Resize an image or a list of images", + "resizable": false, + "skipParamsCheck": false, + "style": {}, + "params": { + "image": { + "type": "image", + "display": "input" + }, + "method": { + "type": "string", + "default": "stretch", + "options": [ + { + "schemaVersion": 1, + "value": "stretch", + "label": "stretch", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "cover", + "label": "cover", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "contain", + "label": "contain", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "fit", + "label": "fit", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "pad", + "label": "pad", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + } + ], + "description": "\n The method to use to resize the image.\n `Stretch` will stretch the image to the given width and height.\n `Cover` will resize to the maximum dimension that fits the given size keeping the aspect ratio.\n `Contain` will resize to the minimum dimension that fits the given size keeping the aspect ratio.\n `Fit` will resize to the given size and crop the excess.\n `Pad` will resize to the given size and pad the excess space with black.\n " + }, + "width": { + "type": "int", + "default": 1024 + }, + "height": { + "type": "int", + "default": 1024 + }, + "multiple_of": { + "label": "Multiple of", + "type": "int", + "default": 1, + "min": 1, + "description": "Ensure the resulting width and height are multiples of this value." + }, + "interpolation": { + "default": "bicubic", + "options": [ + { + "schemaVersion": 1, + "value": "nearest", + "label": "nearest", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "box", + "label": "box", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "bilinear", + "label": "bilinear", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "hamming", + "label": "hamming", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "bicubic", + "label": "bicubic", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "lanczos", + "label": "lanczos", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + } + ] + }, + "output": { + "label": "Image", + "type": "image", + "display": "output" + } + }, + "time": [0, 0, 0], + "memory": [0, 0, 0], + "cache": false + }, + "modules.Image.Save": { + "module": "modules.Image", + "action": "Save", + "type": "custom", + "label": "Save Image", + "category": "image", + "description": "Save an image to a file", + "resizable": true, + "skipParamsCheck": false, + "style": { + "minWidth": 360 + }, + "params": { + "image": { + "label": "Image", + "display": "input", + "type": "image" + }, + "filename": { + "label": "File", + "type": "str", + "default": "{PATH:images}/MoDiff_{HASH:6}.webp" + }, + "quality": { + "label": "Quality", + "type": "int", + "display": "slider", + "default": 100, + "min": 1, + "max": 100 + }, + "metadata": { + "label": "PNG Metadata", + "display": "textarea", + "type": "text", + "default": "", + "description": "Optional JSON metadata to embed into PNG outputs." + }, + "output": { + "label": "Filename", + "display": "output", + "type": "str" + }, + "saved_image_data": { + "label": "Saved Images", + "display": "output", + "type": "image", + "hidden": true + }, + "saved_images": { + "label": "Saved Images", + "display": "ui_image", + "type": "url", + "dataSource": "saved_image_data", + "fieldOptions": { + "format": "PNG" + } + } + }, + "time": [0, 0, 0], + "memory": [0, 0, 0], + "cache": false + }, + "modules.ImageOperations.CropImage": { + "module": "modules.ImageOperations", + "action": "CropImage", + "type": "custom", + "label": "Crop Image", + "category": "Image Operations", + "description": "Crop images to one explicit bounded rectangle.", + "resizable": false, + "skipParamsCheck": false, + "style": {}, + "params": { + "image": { + "label": "Image", + "display": "input", + "type": "image" + }, + "x": { + "label": "Left", + "type": "int", + "default": 0, + "min": 0, + "max": 32767 + }, + "y": { + "label": "Top", + "type": "int", + "default": 0, + "min": 0, + "max": 32767 + }, + "width": { + "label": "Width (0 = remaining)", + "type": "int", + "default": 0, + "min": 0, + "max": 32768 + }, + "height": { + "label": "Height (0 = remaining)", + "type": "int", + "default": 0, + "min": 0, + "max": 32768 + }, + "output": { + "label": "Cropped Image", + "display": "output", + "type": "image" + }, + "output_width": { + "label": "Width", + "display": "output", + "type": "int" + }, + "output_height": { + "label": "Height", + "display": "output", + "type": "int" + } + }, + "time": [0, 0, 0], + "memory": [0, 0, 0], + "cache": false + }, + "modules.ImageOperations.MaskComposite": { + "module": "modules.ImageOperations", + "action": "MaskComposite", + "type": "custom", + "label": "Composite Images with Mask", + "category": "Image Operations", + "description": "Composite one foreground over one background through a bounded mask.", + "resizable": false, + "skipParamsCheck": false, + "style": {}, + "params": { + "background": { + "label": "Background", + "display": "input", + "type": "image" + }, + "foreground": { + "label": "Foreground", + "display": "input", + "type": "image" + }, + "mask": { + "label": "Mask", + "display": "input", + "type": "image" + }, + "mask_channel": { + "label": "Mask Channel", + "type": "string", + "options": [ + { + "schemaVersion": 1, + "value": "luminance", + "label": "luminance", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "alpha", + "label": "alpha", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "red", + "label": "red", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "green", + "label": "green", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + }, + { + "schemaVersion": 1, + "value": "blue", + "label": "blue", + "compatibility": "compatible", + "availability": "installed", + "installationState": "installed" + } + ], + "default": "luminance" + }, + "invert_mask": { + "label": "Invert Mask", + "type": "bool", + "default": false + }, + "output": { + "label": "Composite", + "display": "output", + "type": "image" + } + }, + "time": [0, 0, 0], + "memory": [0, 0, 0], + "cache": false + } + } +} From 5063e0025f556188384cc304e7f4988b9fe80a76 Mon Sep 17 00:00:00 2001 From: Sourav Das Date: Sat, 31 Oct 2026 15:37:19 +0530 Subject: [PATCH 108/440] Keep historical FLUX3 factory vectors independent of revised recipes --- scripts/canonical-provenance-fixtures.mjs | 51 +- scripts/live-qwen-proof.test.mjs | 2 +- .../legacy-flux3-template-cards.v1.json | 1890 +++++++++++++++++ 3 files changed, 1912 insertions(+), 31 deletions(-) create mode 100644 tests/fixtures/legacy-flux3-template-cards.v1.json diff --git a/scripts/canonical-provenance-fixtures.mjs b/scripts/canonical-provenance-fixtures.mjs index 4038ebeb..a3bb112b 100644 --- a/scripts/canonical-provenance-fixtures.mjs +++ b/scripts/canonical-provenance-fixtures.mjs @@ -471,35 +471,22 @@ export async function legacyCreatorFactoryCases() { appType: 'custom', }); const load = (name) => server.ssrLoadModule(`/src/${name}.ts`); - const [ - templates, - inputs, - selection, - operations, - catalog, - choices, - requests, - creator, - flow, - defaults, - exactness, - groups, - ] = await Promise.all( - [ - 'studio/templates', - 'studio/templateInputs', - 'studio/templateModelSelection', - 'workflow/operationContracts', - 'workflow/operationCatalog', - 'workflow/workflowChoices', - 'workflow/operationStarterRequest', - 'studio/templateOperationWorkflow', - 'stores/useFlowStore', - 'studio/modelProfiles', - 'studio/templateExactness', - 'workflow/visualOperationGroupProjection', - ].map(load), - ); + const [inputs, selection, operations, catalog, choices, requests, creator, flow, defaults, exactness, groups] = + await Promise.all( + [ + 'studio/templateInputs', + 'studio/templateModelSelection', + 'workflow/operationContracts', + 'workflow/operationCatalog', + 'workflow/workflowChoices', + 'workflow/operationStarterRequest', + 'studio/templateOperationWorkflow', + 'stores/useFlowStore', + 'studio/modelProfiles', + 'studio/templateExactness', + 'workflow/visualOperationGroupProjection', + ].map(load), + ); const fixture = JSON.parse( readFileSync(new URL('../tests/fixtures/public-flux3-template-creators.v1.json', import.meta.url), 'utf8'), ); @@ -515,7 +502,11 @@ export async function legacyCreatorFactoryCases() { ); const descriptors = choices.parseWorkflowModelDescriptors(payload, support); const cases = []; - const cards = templates.PLANNING_STUDIO_TEMPLATES.filter((card) => /^flux3_klein(?:_base)?_fp8r512_/.test(card.id)); + // Golden byte vectors describe the original creator definitions. Current + // versioned cards have separate authoring tests and must not rewrite them. + const { cards } = JSON.parse( + readFileSync(new URL('../tests/fixtures/legacy-flux3-template-cards.v1.json', import.meta.url), 'utf8'), + ); assert.equal(cards.length, 10); for (const card of cards) { const { capability } = selection.resolveTemplateModelSelection(card, payload.capabilities); diff --git a/scripts/live-qwen-proof.test.mjs b/scripts/live-qwen-proof.test.mjs index b419d6f5..76e8e2c0 100644 --- a/scripts/live-qwen-proof.test.mjs +++ b/scripts/live-qwen-proof.test.mjs @@ -1207,7 +1207,7 @@ test('canonical hook rejects detached task, output, accounting and model evidenc } }); -test('default factory output remains byte identical for all ten grouped and ordinary FLUX3 creators', async () => { +test('default factory output remains byte identical for the ten historical grouped and ordinary FLUX3 creators', async () => { const expected = JSON.parse( readFileSync(new URL('../tests/fixtures/legacy-provenance-factory.v1.json', import.meta.url), 'utf8'), ); diff --git a/tests/fixtures/legacy-flux3-template-cards.v1.json b/tests/fixtures/legacy-flux3-template-cards.v1.json new file mode 100644 index 00000000..f800f4f5 --- /dev/null +++ b/tests/fixtures/legacy-flux3-template-cards.v1.json @@ -0,0 +1,1890 @@ +{ + "schemaVersion": 1, + "proofScope": "Historical synthetic metadata-only compatibility inputs; no execution, media or hardware evidence.", + "source": { + "repository": "sdevil7th/MoDiff-client", + "commit": "b65021977db6f08bc2562346f5c3ad8f0774b244", + "path": "src/studio/templates.ts", + "sha256": "2a2a54382e2bc9ffcdc1d4d2e86329ed033c57c56cec019c2540a57118ad8a26" + }, + "cards": [ + { + "id": "flux3_klein_fp8r512_text_to_image", + "label": "FLUX 3 Distilled Quick 512 FP8r - Text to Image: Ceramic Radio", + "modelDisplayName": "FLUX 3 Image Klein Distilled", + "mode": "text_to_image", + "modelType": "Flux3DistilledModularPipeline", + "runtimeReuseKey": "Flux3DistilledModularPipeline:fp8r:bfloat16:none:resident:none:expert", + "category": "flux", + "tags": ["flux3", "public-intent", "planning", "text-to-image", "fp8r", "512-square", "unqualified-recipe"], + "difficulty": "blocked", + "modelArtifact": { + "source": "hub", + "value": "black-forest-labs/flux-3-image-klein", + "revision": "8454017f9ebaada30c998fccd9f67a80c7580f68" + }, + "requiredBackendCapabilities": [ + "modules.ModularDiffusers.ModelsLoader", + "modules.ModularDiffusers.EncodePrompt", + "modules.ModularDiffusers.Denoise", + "modules.ModularDiffusers.DecodeLatents", + "modules.Image.Preview" + ], + "vramEstimate": "Unmeasured for this exact 512 FP8r recipe. FP8r storage does not guarantee native FP8 GEMM or device fit.", + "runtimeEstimate": "Unmeasured distinct 512 x 512 FP8r recipe; original 1024 receipts are not reused.", + "description": "Create an original studio product photograph of a compact ceramic field radio on a pale limestone plinth. The body has a warm ivory glaze, two circular brass controls and a dark woven speaker grille. Compose a front three-quarter view with generous negative space, soft daylight from the left, grounded contact shadows and fine believable material texture. Keep the object unbranded, the background quiet and the color palette restrained. No people, logos or readable text.", + "userGoal": "Inspect the ordinary editable graph and select only the declared runtime and prompt enhancement choices.", + "presetId": "flux_fast", + "example": { + "mediaType": "image", + "status": "blocked", + "lockedSeed": 481001, + "modelRevision": "8454017f9ebaada30c998fccd9f67a80c7580f68", + "lockedSettings": { + "width": 512, + "height": 512, + "randomSeed": false, + "steps": 16, + "guidanceScale": 1, + "maxSequenceLength": 8192, + "dtype": "bfloat16", + "quantizationMode": "none", + "resourceMode": "expert", + "autoOffload": false, + "offloadMode": "none", + "weightFormat": "fp8r" + }, + "expectedOutput": { + "width": 512, + "height": 512 + }, + "runtimeEstimate": "Pending measured exact 512 FP8r recipe", + "blockReason": "Native output and template qualification, approved new output media and rights review are pending; this distinct 512 FP8r recipe grants no Gallery, Auto or hardware qualification.", + "notes": "No generated output, public output media, template receipt or fit measurement is attached. Diffusion uses FP8r storage, BF16 compute and no added quantization. PUP starts disabled; its explicit FP32/NF4 choices are separate." + }, + "executionSelection": { + "schemaVersion": 1, + "pipelineClass": "Flux3DistilledModularPipeline", + "task": "text_to_image", + "executionProfileId": "flux3-klein:official-provider:v1", + "bindingSpec": { + "modelType": "Flux3DistilledModularPipeline", + "mode": "text_to_image" + }, + "implementation": "native_stages", + "memoryPolicy": "custom_experimental", + "authoringRecipeId": "flux3-klein:official:text-to-image:prompt-preview-append-fp32:v1" + }, + "promptGuide": { + "subject": [ + "one unmistakable focal subject", + "specific pose or product orientation", + "distinctive silhouette and proportions" + ], + "environment": [ + "named location, era, weather, and background activity", + "foreground, midground, and background depth", + "intentional negative space for supporting copy" + ], + "composition": [ + "clear visual hierarchy and camera-relative placement", + "balanced edge spacing with a deliberate focal path", + "subject scale composed for the target aspect ratio" + ], + "materials": [ + "named surface materials and finish", + "microtexture, wear, and edge detail", + "physically coherent reflections and translucency" + ], + "style": [ + "editorial realism with restrained art direction", + "cinematic production design with natural detail", + "premium commercial finish without stock-photo staging" + ], + "lighting": [ + "defined key, fill, and rim-light relationship", + "specific color temperature and shadow softness", + "motivated light with realistic contact shadows" + ], + "camera": [ + "named shot size, angle, and focal length", + "intentional aperture and focus plane", + "perspective appropriate to the subject scale" + ], + "textRendering": [ + "short exact copy in quotation marks", + "defined type placement, scale, and alignment", + "high-contrast lettering with clear reading order" + ], + "parameters": [ + "detail density suited to the final resolution", + "one coherent scene rather than a contact sheet", + "controlled complexity at the requested aspect ratio" + ], + "negative": [ + "generic stock-photo composition", + "flat plastic surfaces", + "muddy microdetail", + "warped geometry", + "unreadable lettering", + "duplicated objects" + ], + "modelHints": [ + "The exact public source profile is required; package qualification alone is not a template image proof.", + "PUP is advisory and starts disabled. No authored regions: ordinary Enable selects declared raw FP32. Select BF16 + NF4 explicitly if desired; this never changes diffusion FP8r storage selection.", + "With authored regions, append wording preserves them. Constrained table generation is a separate explicit Expert choice; do not enable it on a null layout." + ] + }, + "intentGroup": "planning", + "readinessPolicy": "planning", + "recipeSummary": "Create an original studio product photograph of a compact ceramic field radio on a pale limestone plinth. The body has a warm ivory glaze, two circular brass controls and a dark woven speaker grille. Compose a front three-quarter view with generous negative space, soft daylight from the left, grounded contact shadows and fine believable material texture. Keep the object unbranded, the background quiet and the color palette restrained. No people, logos or readable text.", + "outputKinds": ["image"], + "thumbnailVariant": "image", + "mediaSlots": [ + { + "id": "primary", + "label": "Preview", + "kind": "image", + "role": "preview", + "placeholder": "image example pending" + } + ], + "verificationStatus": "blocked", + "prompt": "Create an original studio product photograph of a compact ceramic field radio on a pale limestone plinth. The body has a warm ivory glaze, two circular brass controls and a dark woven speaker grille. Compose a front three-quarter view with generous negative space, soft daylight from the left, grounded contact shadows and fine believable material texture. Keep the object unbranded, the background quiet and the color palette restrained. No people, logos or readable text.", + "negativePrompt": "", + "predictability": { + "lockReason": "Prompt, model, seed, size, steps, guidance, dtype, and runtime fingerprint must stay unchanged.", + "exactnessNotes": [ + "Exact means decoded pixels, frames, or audio PCM match the stored hash.", + "Changing the prompt or any locked setting makes the shown example modified.", + "A manifest entry is required before this template can display an Exact badge." + ], + "deterministicSettings": { + "seed": 481001, + "randomSeed": false + } + } + }, + { + "id": "flux3_klein_fp8r512_single_reference_edit", + "label": "FLUX 3 Distilled Quick 512 FP8r - Image Edit: Amber Glass", + "modelDisplayName": "FLUX 3 Image Klein Distilled", + "mode": "edit_image", + "modelType": "Flux3DistilledModularPipeline", + "runtimeReuseKey": "Flux3DistilledModularPipeline:fp8r:bfloat16:none:resident:none:expert", + "category": "edit", + "tags": [ + "flux3", + "public-intent", + "planning", + "single-reference-edit", + "fp8r", + "512-square", + "unqualified-recipe" + ], + "difficulty": "blocked", + "modelArtifact": { + "source": "hub", + "value": "black-forest-labs/flux-3-image-klein", + "revision": "8454017f9ebaada30c998fccd9f67a80c7580f68" + }, + "requiredBackendCapabilities": [ + "modules.ModularDiffusers.ModelsLoader", + "modules.ModularDiffusers.EncodePrompt", + "modules.ModularDiffusers.Denoise", + "modules.ModularDiffusers.DecodeLatents", + "modules.Image.Preview", + "modules.ModularDiffusers.ImageEncode", + "modules.Image.Load" + ], + "vramEstimate": "Unmeasured for this exact 512 FP8r recipe. FP8r storage does not guarantee native FP8 GEMM or device fit.", + "runtimeEstimate": "Unmeasured distinct 512 x 512 FP8r recipe; original 1024 receipts are not reused.", + "description": "Edit reference image 1: change the cobalt-blue transparent glass cube to warm amber transparent glass. Preserve its square silhouette, thick glass base, camera perspective, position on the pale rough stone slab, neutral background, soft light direction and grounded shadow. Keep the object unbranded; add no objects, logos or text.", + "userGoal": "Use the included approved cobalt glass input and review the amber-color edit.", + "presetId": "flux_fast", + "example": { + "mediaType": "image", + "status": "blocked", + "lockedSeed": 481002, + "modelRevision": "8454017f9ebaada30c998fccd9f67a80c7580f68", + "lockedSettings": { + "width": 512, + "height": 512, + "randomSeed": false, + "steps": 16, + "guidanceScale": 1, + "maxSequenceLength": 8192, + "dtype": "bfloat16", + "quantizationMode": "none", + "resourceMode": "expert", + "autoOffload": false, + "offloadMode": "none", + "weightFormat": "fp8r" + }, + "expectedOutput": { + "width": 512, + "height": 512 + }, + "runtimeEstimate": "Pending measured exact 512 FP8r recipe", + "blockReason": "Native output and template qualification, approved new output media and rights review are pending; this distinct 512 FP8r recipe grants no Gallery, Auto or hardware qualification.", + "notes": "No generated output, public output media, template receipt or fit measurement is attached. Diffusion uses FP8r storage, BF16 compute and no added quantization. PUP starts disabled; its explicit FP32/NF4 choices are separate." + }, + "inputRequirements": { + "referenceImages": 1 + }, + "inputBindings": [ + { + "id": "flux3_klein_fp8r512_single_reference_edit-references", + "label": "Approved cobalt glass source", + "mediaType": "image", + "origin": "template", + "requiredAt": "workflow_start", + "field": "referenceImages", + "defaultAssets": [ + { + "id": "approved-cobalt-glass-source", + "label": "Approved cobalt glass cube on stone", + "mediaType": "image", + "runtimePath": "/template-gallery/inputs/flux2_klein_edit.before.png", + "runtimeSha256": "sha256:bytes:d5ba3943d6c0a264860ba0cde18d87e2d9554a3f7328308f4d771e082a9e0c24", + "fileName": "flux2_klein_edit.before.png", + "previewPath": "/template-gallery/inputs/flux2_klein_edit.before.png" + } + ] + } + ], + "executionSelection": { + "schemaVersion": 1, + "pipelineClass": "Flux3DistilledModularPipeline", + "task": "edit_image", + "executionProfileId": "flux3-klein:official-provider:v1", + "bindingSpec": { + "modelType": "Flux3DistilledModularPipeline", + "mode": "edit_image" + }, + "implementation": "native_stages", + "memoryPolicy": "custom_experimental", + "authoringRecipeId": "flux3-klein:official:edit-image:prompt-preview-append-fp32:v1" + }, + "promptGuide": { + "subject": [ + "the named source subject", + "the selected object or masked region", + "the original scene as the visual anchor" + ], + "environment": [ + "retain the source environment", + "continue nearby texture and scene structure", + "match local atmosphere and depth" + ], + "composition": [ + "keep the original crop and subject placement", + "match the source perspective", + "integrate the edit at the existing scale" + ], + "materials": [ + "name the replacement material and finish", + "match neighboring texture scale", + "preserve plausible reflections and contact shadows" + ], + "style": [ + "match the source visual language", + "photoreal localized retouch", + "production-ready material replacement" + ], + "lighting": [ + "match source exposure and color temperature", + "preserve existing light direction", + "add physically consistent contact shadows" + ], + "camera": [ + "keep the original focal length", + "preserve viewpoint and vanishing lines", + "maintain the source focus plane" + ], + "textRendering": [ + "leave unrelated copy unchanged", + "replace only the quoted text", + "preserve typographic alignment and print texture" + ], + "parameters": [ + "edit strength proportional to the requested change", + "enough denoising for integration without identity drift" + ], + "negative": [ + "identity drift", + "changed camera angle", + "unrequested background changes", + "visible edit seam", + "halo around the mask", + "mismatched texture scale" + ], + "modelHints": [ + "The exact public source profile is required; package qualification alone is not a template image proof.", + "PUP is advisory and starts disabled. No authored regions: ordinary Enable selects declared raw FP32. Select BF16 + NF4 explicitly if desired; this never changes diffusion FP8r storage selection.", + "With authored regions, append wording preserves them. Constrained table generation is a separate explicit Expert choice; do not enable it on a null layout." + ], + "preservation": [ + "preserve identity, pose, camera, and crop", + "keep unedited geometry and background unchanged", + "retain existing brand marks and readable copy" + ], + "change": [ + "change only the explicitly named region", + "describe the replacement shape, material, and color", + "state the intended relighting or cleanup precisely" + ], + "continuity": [ + "match source illumination and shadow direction", + "continue edges, grain, and depth of field through the edit", + "blend boundaries without halos or texture repetition" + ] + }, + "intentGroup": "planning", + "readinessPolicy": "planning", + "recipeSummary": "Edit reference image 1: change the cobalt-blue transparent glass cube to warm amber transparent glass. Preserve its square silhouette, thick glass base, camera perspective, position on the pale rough stone slab, neutral background, soft light direction and grounded shadow. Keep the object unbranded; add no objects, logos or text.", + "outputKinds": ["image"], + "thumbnailVariant": "compareSlider", + "mediaSlots": [ + { + "id": "before", + "label": "Before", + "kind": "comparison_before", + "role": "before", + "placeholder": "source asset pending" + }, + { + "id": "after", + "label": "After", + "kind": "comparison_after", + "role": "after", + "placeholder": "image result pending" + } + ], + "verificationStatus": "blocked", + "prompt": "Edit reference image 1: change the cobalt-blue transparent glass cube to warm amber transparent glass. Preserve its square silhouette, thick glass base, camera perspective, position on the pale rough stone slab, neutral background, soft light direction and grounded shadow. Keep the object unbranded; add no objects, logos or text.", + "negativePrompt": "", + "predictability": { + "lockReason": "Prompt, model, seed, size, steps, guidance, dtype, and runtime fingerprint must stay unchanged.", + "exactnessNotes": [ + "Exact means decoded pixels, frames, or audio PCM match the stored hash.", + "Changing the prompt or any locked setting makes the shown example modified.", + "A manifest entry is required before this template can display an Exact badge." + ], + "deterministicSettings": { + "seed": 481002, + "randomSeed": false + } + } + }, + { + "id": "flux3_klein_fp8r512_multi_reference_edit", + "label": "FLUX 3 Distilled Quick 512 FP8r - Two-Reference Edit: Glass Packaging", + "modelDisplayName": "FLUX 3 Image Klein Distilled", + "mode": "edit_image", + "modelType": "Flux3DistilledModularPipeline", + "runtimeReuseKey": "Flux3DistilledModularPipeline:fp8r:bfloat16:none:resident:none:expert", + "category": "reference", + "tags": [ + "flux3", + "public-intent", + "planning", + "multi-reference-edit", + "fp8r", + "512-square", + "unqualified-recipe" + ], + "difficulty": "blocked", + "modelArtifact": { + "source": "hub", + "value": "black-forest-labs/flux-3-image-klein", + "revision": "8454017f9ebaada30c998fccd9f67a80c7580f68" + }, + "requiredBackendCapabilities": [ + "modules.ModularDiffusers.ModelsLoader", + "modules.ModularDiffusers.EncodePrompt", + "modules.ModularDiffusers.Denoise", + "modules.ModularDiffusers.DecodeLatents", + "modules.Image.Preview", + "modules.ModularDiffusers.ImageEncode", + "modules.Image.Load" + ], + "vramEstimate": "Unmeasured for this exact 512 FP8r recipe. FP8r storage does not guarantee native FP8 GEMM or device fit.", + "runtimeEstimate": "Unmeasured distinct 512 x 512 FP8r recipe; original 1024 receipts are not reused.", + "description": "Use reference image 1 as the cobalt-blue glass product subject. Use reference image 2 as the flat packaging dieline: preserve the cream background, black panel outlines, fold guides, rounded placeholder panels and yellow accent bands. Place a small coherent product photograph of the blue glass cube in the large central panel, leaving the structural lines and other panels intact. Keep the result a flat unfolded packaging design. Do not duplicate the product, add people, invent a brand or add readable text.", + "userGoal": "Use the two included approved inputs in order: glass subject first, flat packaging layout second.", + "presetId": "flux_fast", + "example": { + "mediaType": "image", + "status": "blocked", + "lockedSeed": 481003, + "modelRevision": "8454017f9ebaada30c998fccd9f67a80c7580f68", + "lockedSettings": { + "width": 512, + "height": 512, + "randomSeed": false, + "steps": 16, + "guidanceScale": 1, + "maxSequenceLength": 8192, + "dtype": "bfloat16", + "quantizationMode": "none", + "resourceMode": "expert", + "autoOffload": false, + "offloadMode": "none", + "weightFormat": "fp8r" + }, + "expectedOutput": { + "width": 512, + "height": 512 + }, + "runtimeEstimate": "Pending measured exact 512 FP8r recipe", + "blockReason": "Native output and template qualification, approved new output media and rights review are pending; this distinct 512 FP8r recipe grants no Gallery, Auto or hardware qualification.", + "notes": "No generated output, public output media, template receipt or fit measurement is attached. Diffusion uses FP8r storage, BF16 compute and no added quantization. PUP starts disabled; its explicit FP32/NF4 choices are separate. The second reference is normal edit-image conditioning, not ControlNet or source-owned structured geometry." + }, + "inputRequirements": { + "referenceImages": 2 + }, + "inputBindings": [ + { + "id": "flux3_klein_fp8r512_multi_reference_edit-references", + "label": "Ordered glass subject and packaging layout references", + "mediaType": "image", + "origin": "template", + "requiredAt": "workflow_start", + "field": "referenceImages", + "defaultAssets": [ + { + "id": "approved-cobalt-glass-source", + "label": "Approved cobalt glass cube on stone", + "mediaType": "image", + "runtimePath": "/template-gallery/inputs/flux2_klein_edit.before.png", + "runtimeSha256": "sha256:bytes:d5ba3943d6c0a264860ba0cde18d87e2d9554a3f7328308f4d771e082a9e0c24", + "fileName": "flux2_klein_edit.before.png", + "previewPath": "/template-gallery/inputs/flux2_klein_edit.before.png" + }, + { + "id": "approved-packaging-dieline-source", + "label": "Approved cream and yellow packaging dieline", + "mediaType": "image", + "runtimePath": "/template-gallery/inputs/qwen_control_image_layout.before.png", + "runtimeSha256": "sha256:bytes:b748201353f02543c2a48920bb514c2741366151df45bf6c4904aeb0f32f1a67", + "fileName": "qwen_control_image_layout.before.png", + "previewPath": "/template-gallery/inputs/qwen_control_image_layout.before.png" + } + ] + } + ], + "executionSelection": { + "schemaVersion": 1, + "pipelineClass": "Flux3DistilledModularPipeline", + "task": "edit_image", + "executionProfileId": "flux3-klein:official-provider:v1", + "bindingSpec": { + "modelType": "Flux3DistilledModularPipeline", + "mode": "edit_image" + }, + "implementation": "native_stages", + "memoryPolicy": "custom_experimental", + "authoringRecipeId": "flux3-klein:official:edit-image:prompt-preview-append-fp32:v1" + }, + "promptGuide": { + "subject": [ + "the named source subject", + "the selected object or masked region", + "the original scene as the visual anchor" + ], + "environment": [ + "retain the source environment", + "continue nearby texture and scene structure", + "match local atmosphere and depth" + ], + "composition": [ + "keep the original crop and subject placement", + "match the source perspective", + "integrate the edit at the existing scale" + ], + "materials": [ + "name the replacement material and finish", + "match neighboring texture scale", + "preserve plausible reflections and contact shadows" + ], + "style": [ + "match the source visual language", + "photoreal localized retouch", + "production-ready material replacement" + ], + "lighting": [ + "match source exposure and color temperature", + "preserve existing light direction", + "add physically consistent contact shadows" + ], + "camera": [ + "keep the original focal length", + "preserve viewpoint and vanishing lines", + "maintain the source focus plane" + ], + "textRendering": [ + "leave unrelated copy unchanged", + "replace only the quoted text", + "preserve typographic alignment and print texture" + ], + "parameters": [ + "edit strength proportional to the requested change", + "enough denoising for integration without identity drift" + ], + "negative": [ + "identity drift", + "changed camera angle", + "unrequested background changes", + "visible edit seam", + "halo around the mask", + "mismatched texture scale" + ], + "modelHints": [ + "The exact public source profile is required; package qualification alone is not a template image proof.", + "PUP is advisory and starts disabled. No authored regions: ordinary Enable selects declared raw FP32. Select BF16 + NF4 explicitly if desired; this never changes diffusion FP8r storage selection.", + "With authored regions, append wording preserves them. Constrained table generation is a separate explicit Expert choice; do not enable it on a null layout." + ], + "preservation": [ + "preserve identity, pose, camera, and crop", + "keep unedited geometry and background unchanged", + "retain existing brand marks and readable copy" + ], + "change": [ + "change only the explicitly named region", + "describe the replacement shape, material, and color", + "state the intended relighting or cleanup precisely" + ], + "continuity": [ + "match source illumination and shadow direction", + "continue edges, grain, and depth of field through the edit", + "blend boundaries without halos or texture repetition" + ] + }, + "intentGroup": "planning", + "readinessPolicy": "planning", + "recipeSummary": "Use reference image 1 as the cobalt-blue glass product subject. Use reference image 2 as the flat packaging dieline: preserve the cream background, black panel outlines, fold guides, rounded placeholder panels and yellow accent bands. Place a small coherent product photograph of the blue glass cube in the large central panel, leaving the structural lines and other panels intact. Keep the result a flat unfolded packaging design. Do not duplicate the product, add people, invent a brand or add readable text.", + "outputKinds": ["image"], + "thumbnailVariant": "compareSlider", + "mediaSlots": [ + { + "id": "before", + "label": "Before", + "kind": "comparison_before", + "role": "before", + "placeholder": "source asset pending" + }, + { + "id": "after", + "label": "After", + "kind": "comparison_after", + "role": "after", + "placeholder": "image result pending" + } + ], + "verificationStatus": "blocked", + "prompt": "Use reference image 1 as the cobalt-blue glass product subject. Use reference image 2 as the flat packaging dieline: preserve the cream background, black panel outlines, fold guides, rounded placeholder panels and yellow accent bands. Place a small coherent product photograph of the blue glass cube in the large central panel, leaving the structural lines and other panels intact. Keep the result a flat unfolded packaging design. Do not duplicate the product, add people, invent a brand or add readable text.", + "negativePrompt": "", + "predictability": { + "lockReason": "Prompt, model, seed, size, steps, guidance, dtype, and runtime fingerprint must stay unchanged.", + "exactnessNotes": [ + "Exact means decoded pixels, frames, or audio PCM match the stored hash.", + "Changing the prompt or any locked setting makes the shown example modified.", + "A manifest entry is required before this template can display an Exact badge." + ], + "deterministicSettings": { + "seed": 481003, + "randomSeed": false + } + } + }, + { + "id": "flux3_klein_fp8r512_raw_coordinate_prompt", + "label": "FLUX 3 Distilled Quick 512 FP8r - Raw Prompt Coordinates: Apple", + "modelDisplayName": "FLUX 3 Image Klein Distilled", + "mode": "text_to_image", + "modelType": "Flux3DistilledModularPipeline", + "runtimeReuseKey": "Flux3DistilledModularPipeline:fp8r:bfloat16:none:resident:none:expert", + "category": "reference", + "tags": [ + "flux3", + "public-intent", + "planning", + "fp8r", + "512-square", + "unqualified-recipe", + "raw-prompt-coordinates" + ], + "difficulty": "blocked", + "modelArtifact": { + "source": "hub", + "value": "black-forest-labs/flux-3-image-klein", + "revision": "8454017f9ebaada30c998fccd9f67a80c7580f68" + }, + "requiredBackendCapabilities": [ + "modules.ModularDiffusers.ModelsLoader", + "modules.ModularDiffusers.EncodePrompt", + "modules.ModularDiffusers.Denoise", + "modules.ModularDiffusers.DecodeLatents", + "modules.Image.Preview" + ], + "vramEstimate": "Unmeasured for this exact 512 FP8r recipe. FP8r storage does not guarantee native FP8 GEMM or device fit.", + "runtimeEstimate": "Unmeasured distinct 512 x 512 FP8r recipe; original 1024 receipts are not reused.", + "description": "A still life with .\n[{\"id\":\"apple_1\",\"bbox\":[250,125,750,875],\"desc\":\"A red apple, with a green leaf.\"}]", + "userGoal": "Inspect the literal raw coordinate prompt; the structured-layout widget remains unset/null.", + "presetId": "flux_fast", + "example": { + "mediaType": "image", + "status": "blocked", + "lockedSeed": 481004, + "modelRevision": "8454017f9ebaada30c998fccd9f67a80c7580f68", + "lockedSettings": { + "width": 512, + "height": 512, + "randomSeed": false, + "steps": 16, + "guidanceScale": 1, + "maxSequenceLength": 8192, + "dtype": "bfloat16", + "quantizationMode": "none", + "resourceMode": "expert", + "autoOffload": false, + "offloadMode": "none", + "weightFormat": "fp8r" + }, + "expectedOutput": { + "width": 512, + "height": 512 + }, + "runtimeEstimate": "Pending measured exact 512 FP8r recipe", + "blockReason": "Native output and template qualification, approved new output media and rights review are pending; this distinct 512 FP8r recipe grants no Gallery, Auto or hardware qualification. Spatial adherence is unproved. This is not a seeded region-widget or generated-table template.", + "notes": "The raw prompt uses the existing shared layout fixture syntax, y-first integer coordinates [250,125,750,875]. The layout_conditioning field remains null through normal T2I defaults. PUP stays disabled so the literal table is not rewritten. No source-reference IDs, widget geometry, strict generated-table completion or F3-06 proof is claimed." + }, + "executionSelection": { + "schemaVersion": 1, + "pipelineClass": "Flux3DistilledModularPipeline", + "task": "text_to_image", + "executionProfileId": "flux3-klein:official-provider:v1", + "bindingSpec": { + "modelType": "Flux3DistilledModularPipeline", + "mode": "text_to_image" + }, + "implementation": "native_stages", + "memoryPolicy": "custom_experimental", + "authoringRecipeId": "flux3-klein:official:text-to-image:prompt-preview-append-fp32:v1" + }, + "promptGuide": { + "subject": [ + "one unmistakable focal subject", + "specific pose or product orientation", + "distinctive silhouette and proportions" + ], + "environment": [ + "named location, era, weather, and background activity", + "foreground, midground, and background depth", + "intentional negative space for supporting copy" + ], + "composition": [ + "clear visual hierarchy and camera-relative placement", + "balanced edge spacing with a deliberate focal path", + "subject scale composed for the target aspect ratio" + ], + "materials": [ + "named surface materials and finish", + "microtexture, wear, and edge detail", + "physically coherent reflections and translucency" + ], + "style": [ + "editorial realism with restrained art direction", + "cinematic production design with natural detail", + "premium commercial finish without stock-photo staging" + ], + "lighting": [ + "defined key, fill, and rim-light relationship", + "specific color temperature and shadow softness", + "motivated light with realistic contact shadows" + ], + "camera": [ + "named shot size, angle, and focal length", + "intentional aperture and focus plane", + "perspective appropriate to the subject scale" + ], + "textRendering": [ + "short exact copy in quotation marks", + "defined type placement, scale, and alignment", + "high-contrast lettering with clear reading order" + ], + "parameters": [ + "detail density suited to the final resolution", + "one coherent scene rather than a contact sheet", + "controlled complexity at the requested aspect ratio" + ], + "negative": [ + "generic stock-photo composition", + "flat plastic surfaces", + "muddy microdetail", + "warped geometry", + "unreadable lettering", + "duplicated objects" + ], + "modelHints": [ + "Keep PUP disabled for this raw-coordinate example.", + "The table is literal prompt text; no authored-region widget is seeded.", + "Native spatial adherence and output quality remain unqualified." + ] + }, + "intentGroup": "planning", + "readinessPolicy": "planning", + "recipeSummary": "A still life with .\n[{\"id\":\"apple_1\",\"bbox\":[250,125,750,875],\"desc\":\"A red apple, with a green leaf.\"}]", + "outputKinds": ["image"], + "thumbnailVariant": "image", + "mediaSlots": [ + { + "id": "primary", + "label": "Preview", + "kind": "image", + "role": "preview", + "placeholder": "image example pending" + } + ], + "verificationStatus": "blocked", + "prompt": "A still life with .\n[{\"id\":\"apple_1\",\"bbox\":[250,125,750,875],\"desc\":\"A red apple, with a green leaf.\"}]", + "negativePrompt": "", + "predictability": { + "lockReason": "Prompt, model, seed, size, steps, guidance, dtype, and runtime fingerprint must stay unchanged.", + "exactnessNotes": [ + "Exact means decoded pixels, frames, or audio PCM match the stored hash.", + "Changing the prompt or any locked setting makes the shown example modified.", + "A manifest entry is required before this template can display an Exact badge." + ], + "deterministicSettings": { + "seed": 481004, + "randomSeed": false + } + } + }, + { + "id": "flux3_klein_fp8r512_lora_style", + "label": "FLUX 3 Distilled Quick 512 FP8r - NASA Concept-Art LoRA (Test Candidate)", + "modelDisplayName": "FLUX 3 Image Klein Distilled", + "mode": "text_to_image", + "modelType": "Flux3DistilledModularPipeline", + "runtimeReuseKey": "Flux3DistilledModularPipeline:fp8r:bfloat16:none:resident:none:expert", + "category": "lora", + "tags": ["flux3", "public-intent", "planning", "lora-style", "fp8r", "512-square", "unqualified-recipe"], + "difficulty": "blocked", + "modelArtifact": { + "source": "hub", + "value": "black-forest-labs/flux-3-image-klein", + "revision": "8454017f9ebaada30c998fccd9f67a80c7580f68" + }, + "requiredBackendCapabilities": [ + "modules.ModularDiffusers.ModelsLoader", + "modules.ModularDiffusers.EncodePrompt", + "modules.ModularDiffusers.Denoise", + "modules.ModularDiffusers.DecodeLatents", + "modules.Image.Preview", + "modules.ModularDiffusers.Lora" + ], + "vramEstimate": "Unmeasured for this exact 512 FP8r recipe. FP8r storage does not guarantee native FP8 GEMM or device fit.", + "runtimeEstimate": "Unmeasured distinct 512 x 512 FP8r recipe; original 1024 receipts are not reused.", + "description": "An unbranded ceramic field radio, a folded linen cloth and a single dried grass stem form a balanced three-quarter tabletop still life. Warm side lighting defines the radio silhouette and contact shadows. The radio, linen and stem remain clearly separated against an uncluttered background. No people, logos, readable text, signatures, watermarks or unrelated objects. nsc7 style", + "userGoal": "Inspect the pinned NASA concept-art adapter and exact public recipe; style quality and publication remain pending.", + "presetId": "flux_fast", + "example": { + "mediaType": "image", + "status": "blocked", + "lockedSeed": 481005, + "modelRevision": "8454017f9ebaada30c998fccd9f67a80c7580f68", + "lockedSettings": { + "width": 512, + "height": 512, + "randomSeed": false, + "steps": 16, + "guidanceScale": 1, + "maxSequenceLength": 8192, + "dtype": "bfloat16", + "quantizationMode": "none", + "resourceMode": "expert", + "autoOffload": false, + "offloadMode": "none", + "weightFormat": "fp8r" + }, + "expectedOutput": { + "width": 512, + "height": 512 + }, + "runtimeEstimate": "Pending measured exact 512 FP8r recipe", + "blockReason": "Native output and template qualification, style-quality review and output publication approval remain pending for this exact public recipe; this distinct 512 FP8r recipe grants no Gallery, Auto or hardware qualification. The selected adapter declares FLUX Kommunity License v1.0; its terms do not approve generated output publication.", + "notes": "No public output media, template receipt or fit measurement is attached. Local model_cpu trials with autoOffload=true are separate from this locked none / autoOffload=false recipe; their subtle visual changes do not establish the promised NASA concept-art style. Diffusion uses FP8r storage, BF16 compute and no added quantization. PUP starts disabled; its explicit FP32/NF4 choices are separate." + }, + "evidencePolicy": "generated", + "workflowBlocks": ["lora"], + "workflowBlockSettings": { + "lora": { + "model": { + "source": "hub", + "value": "kocabiyik/nsc7-style-lora", + "revision": "9b998d3bdc3b4aeb2113ab4e8cbd9fe2ebfa1cae", + "sha256": "ae6c417cb3bb8ee6f5272a8115d7720587319c6099fffa80f8d39bbbf307daf7", + "byteSize": 160696320, + "license": "FLUX Kommunity License v1.0" + }, + "baseModel": { + "source": "hub", + "value": "black-forest-labs/flux-3-image-klein", + "revision": "8454017f9ebaada30c998fccd9f67a80c7580f68" + }, + "weightName": "nsc7-style-lora.safetensors", + "adapterName": "nsc7", + "scale": 0.75 + } + }, + "executionSelection": { + "schemaVersion": 1, + "pipelineClass": "Flux3DistilledModularPipeline", + "task": "text_to_image", + "executionProfileId": "flux3-klein:official-provider:v1", + "bindingSpec": { + "modelType": "Flux3DistilledModularPipeline", + "mode": "text_to_image" + }, + "implementation": "native_stages", + "memoryPolicy": "custom_experimental", + "authoringRecipeId": "flux3-klein:official:text-to-image:prompt-preview-append-fp32:v1", + "loraPolicy": { + "defaultAdapterName": "nsc7" + } + }, + "promptGuide": { + "subject": [ + "one unmistakable focal subject", + "specific pose or product orientation", + "distinctive silhouette and proportions" + ], + "environment": [ + "named location, era, weather, and background activity", + "foreground, midground, and background depth", + "intentional negative space for supporting copy" + ], + "composition": [ + "clear visual hierarchy and camera-relative placement", + "balanced edge spacing with a deliberate focal path", + "subject scale composed for the target aspect ratio" + ], + "materials": [ + "named surface materials and finish", + "microtexture, wear, and edge detail", + "physically coherent reflections and translucency" + ], + "style": [ + "editorial realism with restrained art direction", + "cinematic production design with natural detail", + "premium commercial finish without stock-photo staging" + ], + "lighting": [ + "defined key, fill, and rim-light relationship", + "specific color temperature and shadow softness", + "motivated light with realistic contact shadows" + ], + "camera": [ + "named shot size, angle, and focal length", + "intentional aperture and focus plane", + "perspective appropriate to the subject scale" + ], + "textRendering": [ + "short exact copy in quotation marks", + "defined type placement, scale, and alignment", + "high-contrast lettering with clear reading order" + ], + "parameters": [ + "detail density suited to the final resolution", + "one coherent scene rather than a contact sheet", + "controlled complexity at the requested aspect ratio" + ], + "negative": [ + "generic stock-photo composition", + "flat plastic surfaces", + "muddy microdetail", + "warped geometry", + "unreadable lettering", + "duplicated objects" + ], + "modelHints": [ + "The exact public source profile is required; package qualification alone is not a template image proof.", + "PUP is advisory and starts disabled. No authored regions: ordinary Enable selects declared raw FP32. Select BF16 + NF4 explicitly if desired; this never changes diffusion FP8r storage selection.", + "With authored regions, append wording preserves them. Constrained table generation is a separate explicit Expert choice; do not enable it on a null layout.", + "The pinned nsc7 adapter declares FLUX Kommunity License v1.0 and recommends Distilled scale 0.75-1.0. This candidate fixes scale 0.75 and the final nsc7 style trigger. Training-data provenance is the author's statement; no NASA endorsement or public output approval is implied." + ] + }, + "intentGroup": "planning", + "readinessPolicy": "planning", + "recipeSummary": "An unbranded ceramic field radio, a folded linen cloth and a single dried grass stem form a balanced three-quarter tabletop still life. Warm side lighting defines the radio silhouette and contact shadows. The radio, linen and stem remain clearly separated against an uncluttered background. No people, logos, readable text, signatures, watermarks or unrelated objects. nsc7 style", + "outputKinds": ["image"], + "thumbnailVariant": "image", + "mediaSlots": [ + { + "id": "primary", + "label": "Preview", + "kind": "image", + "role": "preview", + "placeholder": "image example pending" + } + ], + "verificationStatus": "blocked", + "prompt": "An unbranded ceramic field radio, a folded linen cloth and a single dried grass stem form a balanced three-quarter tabletop still life. Warm side lighting defines the radio silhouette and contact shadows. The radio, linen and stem remain clearly separated against an uncluttered background. No people, logos, readable text, signatures, watermarks or unrelated objects. nsc7 style", + "negativePrompt": "", + "predictability": { + "lockReason": "Prompt, model, seed, size, steps, guidance, dtype, and runtime fingerprint must stay unchanged.", + "exactnessNotes": [ + "Exact means decoded pixels, frames, or audio PCM match the stored hash.", + "Changing the prompt or any locked setting makes the shown example modified.", + "A manifest entry is required before this template can display an Exact badge." + ], + "deterministicSettings": { + "seed": 481005, + "randomSeed": false + } + } + }, + { + "id": "flux3_klein_base_fp8r512_text_to_image", + "label": "FLUX 3 Base 512 FP8r (50 steps) - Text to Image: Ceramic Radio", + "modelDisplayName": "FLUX 3 Image Klein Base", + "mode": "text_to_image", + "modelType": "Flux3ModularPipeline", + "runtimeReuseKey": "Flux3ModularPipeline:fp8r:bfloat16:none:resident:none:expert", + "category": "flux", + "tags": ["flux3", "public-intent", "planning", "text-to-image", "fp8r", "512-square", "unqualified-recipe"], + "difficulty": "blocked", + "modelArtifact": { + "source": "hub", + "value": "black-forest-labs/flux-3-image-klein-base", + "revision": "1469d27cfb9bb1bd81d3a93f5a023b39dbf136e4" + }, + "requiredBackendCapabilities": [ + "modules.ModularDiffusers.ModelsLoader", + "modules.ModularDiffusers.EncodePrompt", + "modules.ModularDiffusers.Denoise", + "modules.ModularDiffusers.DecodeLatents", + "modules.Image.Preview", + "modules.ModularDiffusers.Guider" + ], + "vramEstimate": "Unmeasured for this exact 512 FP8r recipe. FP8r storage does not guarantee native FP8 GEMM or device fit.", + "runtimeEstimate": "Unmeasured distinct 512 x 512 FP8r recipe; original 1024 receipts are not reused.", + "description": "Create an original studio product photograph of a compact ceramic field radio on a pale limestone plinth. The body has a warm ivory glaze, two circular brass controls and a dark woven speaker grille. Compose a front three-quarter view with generous negative space, soft daylight from the left, grounded contact shadows and fine believable material texture. Keep the object unbranded, the background quiet and the color palette restrained. No people, logos or readable text.", + "userGoal": "Inspect the ordinary editable graph and select only the declared runtime and prompt enhancement choices.", + "presetId": "flux_quality", + "example": { + "mediaType": "image", + "status": "blocked", + "lockedSeed": 481101, + "modelRevision": "1469d27cfb9bb1bd81d3a93f5a023b39dbf136e4", + "lockedSettings": { + "width": 512, + "height": 512, + "randomSeed": false, + "steps": 50, + "guidanceScale": 3.5, + "maxSequenceLength": 8192, + "dtype": "bfloat16", + "quantizationMode": "none", + "resourceMode": "expert", + "autoOffload": false, + "offloadMode": "none", + "weightFormat": "fp8r" + }, + "expectedOutput": { + "width": 512, + "height": 512 + }, + "runtimeEstimate": "Pending measured exact 512 FP8r recipe", + "blockReason": "Native output and template qualification, approved new output media and rights review are pending; this distinct 512 FP8r recipe grants no Gallery, Auto or hardware qualification.", + "notes": "No generated output, public output media, template receipt or fit measurement is attached. Diffusion uses FP8r storage, BF16 compute and no added quantization. PUP starts disabled; its explicit FP32/NF4 choices are separate." + }, + "executionSelection": { + "schemaVersion": 1, + "pipelineClass": "Flux3ModularPipeline", + "task": "text_to_image", + "executionProfileId": "flux3-klein-base:official-provider:v1", + "bindingSpec": { + "modelType": "Flux3ModularPipeline", + "mode": "text_to_image" + }, + "implementation": "native_stages", + "memoryPolicy": "custom_experimental", + "authoringRecipeId": "flux3-klein-base:official:text-to-image:prompt-preview-append-fp32:v1" + }, + "promptGuide": { + "subject": [ + "one unmistakable focal subject", + "specific pose or product orientation", + "distinctive silhouette and proportions" + ], + "environment": [ + "named location, era, weather, and background activity", + "foreground, midground, and background depth", + "intentional negative space for supporting copy" + ], + "composition": [ + "clear visual hierarchy and camera-relative placement", + "balanced edge spacing with a deliberate focal path", + "subject scale composed for the target aspect ratio" + ], + "materials": [ + "named surface materials and finish", + "microtexture, wear, and edge detail", + "physically coherent reflections and translucency" + ], + "style": [ + "editorial realism with restrained art direction", + "cinematic production design with natural detail", + "premium commercial finish without stock-photo staging" + ], + "lighting": [ + "defined key, fill, and rim-light relationship", + "specific color temperature and shadow softness", + "motivated light with realistic contact shadows" + ], + "camera": [ + "named shot size, angle, and focal length", + "intentional aperture and focus plane", + "perspective appropriate to the subject scale" + ], + "textRendering": [ + "short exact copy in quotation marks", + "defined type placement, scale, and alignment", + "high-contrast lettering with clear reading order" + ], + "parameters": [ + "detail density suited to the final resolution", + "one coherent scene rather than a contact sheet", + "controlled complexity at the requested aspect ratio" + ], + "negative": [ + "generic stock-photo composition", + "flat plastic surfaces", + "muddy microdetail", + "warped geometry", + "unreadable lettering", + "duplicated objects" + ], + "modelHints": [ + "The exact public source profile is required; package qualification alone is not a template image proof.", + "PUP is advisory and starts disabled. No authored regions: ordinary Enable selects declared raw FP32. Select BF16 + NF4 explicitly if desired; this never changes diffusion FP8r storage selection.", + "With authored regions, append wording preserves them. Constrained table generation is a separate explicit Expert choice; do not enable it on a null layout." + ] + }, + "intentGroup": "planning", + "readinessPolicy": "planning", + "recipeSummary": "Create an original studio product photograph of a compact ceramic field radio on a pale limestone plinth. The body has a warm ivory glaze, two circular brass controls and a dark woven speaker grille. Compose a front three-quarter view with generous negative space, soft daylight from the left, grounded contact shadows and fine believable material texture. Keep the object unbranded, the background quiet and the color palette restrained. No people, logos or readable text.", + "outputKinds": ["image"], + "thumbnailVariant": "image", + "mediaSlots": [ + { + "id": "primary", + "label": "Preview", + "kind": "image", + "role": "preview", + "placeholder": "image example pending" + } + ], + "verificationStatus": "blocked", + "prompt": "Create an original studio product photograph of a compact ceramic field radio on a pale limestone plinth. The body has a warm ivory glaze, two circular brass controls and a dark woven speaker grille. Compose a front three-quarter view with generous negative space, soft daylight from the left, grounded contact shadows and fine believable material texture. Keep the object unbranded, the background quiet and the color palette restrained. No people, logos or readable text.", + "negativePrompt": "", + "predictability": { + "lockReason": "Prompt, model, seed, size, steps, guidance, dtype, and runtime fingerprint must stay unchanged.", + "exactnessNotes": [ + "Exact means decoded pixels, frames, or audio PCM match the stored hash.", + "Changing the prompt or any locked setting makes the shown example modified.", + "A manifest entry is required before this template can display an Exact badge." + ], + "deterministicSettings": { + "seed": 481101, + "randomSeed": false + } + } + }, + { + "id": "flux3_klein_base_fp8r512_single_reference_edit", + "label": "FLUX 3 Base 512 FP8r (50 steps) - Image Edit: Amber Glass", + "modelDisplayName": "FLUX 3 Image Klein Base", + "mode": "edit_image", + "modelType": "Flux3ModularPipeline", + "runtimeReuseKey": "Flux3ModularPipeline:fp8r:bfloat16:none:resident:none:expert", + "category": "edit", + "tags": [ + "flux3", + "public-intent", + "planning", + "single-reference-edit", + "fp8r", + "512-square", + "unqualified-recipe" + ], + "difficulty": "blocked", + "modelArtifact": { + "source": "hub", + "value": "black-forest-labs/flux-3-image-klein-base", + "revision": "1469d27cfb9bb1bd81d3a93f5a023b39dbf136e4" + }, + "requiredBackendCapabilities": [ + "modules.ModularDiffusers.ModelsLoader", + "modules.ModularDiffusers.EncodePrompt", + "modules.ModularDiffusers.Denoise", + "modules.ModularDiffusers.DecodeLatents", + "modules.Image.Preview", + "modules.ModularDiffusers.ImageEncode", + "modules.Image.Load", + "modules.ModularDiffusers.Guider" + ], + "vramEstimate": "Unmeasured for this exact 512 FP8r recipe. FP8r storage does not guarantee native FP8 GEMM or device fit.", + "runtimeEstimate": "Unmeasured distinct 512 x 512 FP8r recipe; original 1024 receipts are not reused.", + "description": "Edit reference image 1: change the cobalt-blue transparent glass cube to warm amber transparent glass. Preserve its square silhouette, thick glass base, camera perspective, position on the pale rough stone slab, neutral background, soft light direction and grounded shadow. Keep the object unbranded; add no objects, logos or text.", + "userGoal": "Use the included approved cobalt glass input and review the amber-color edit.", + "presetId": "flux_quality", + "example": { + "mediaType": "image", + "status": "blocked", + "lockedSeed": 481102, + "modelRevision": "1469d27cfb9bb1bd81d3a93f5a023b39dbf136e4", + "lockedSettings": { + "width": 512, + "height": 512, + "randomSeed": false, + "steps": 50, + "guidanceScale": 3.5, + "maxSequenceLength": 8192, + "dtype": "bfloat16", + "quantizationMode": "none", + "resourceMode": "expert", + "autoOffload": false, + "offloadMode": "none", + "weightFormat": "fp8r" + }, + "expectedOutput": { + "width": 512, + "height": 512 + }, + "runtimeEstimate": "Pending measured exact 512 FP8r recipe", + "blockReason": "Native output and template qualification, approved new output media and rights review are pending; this distinct 512 FP8r recipe grants no Gallery, Auto or hardware qualification.", + "notes": "No generated output, public output media, template receipt or fit measurement is attached. Diffusion uses FP8r storage, BF16 compute and no added quantization. PUP starts disabled; its explicit FP32/NF4 choices are separate." + }, + "inputRequirements": { + "referenceImages": 1 + }, + "inputBindings": [ + { + "id": "flux3_klein_base_fp8r512_single_reference_edit-references", + "label": "Approved cobalt glass source", + "mediaType": "image", + "origin": "template", + "requiredAt": "workflow_start", + "field": "referenceImages", + "defaultAssets": [ + { + "id": "approved-cobalt-glass-source", + "label": "Approved cobalt glass cube on stone", + "mediaType": "image", + "runtimePath": "/template-gallery/inputs/flux2_klein_edit.before.png", + "runtimeSha256": "sha256:bytes:d5ba3943d6c0a264860ba0cde18d87e2d9554a3f7328308f4d771e082a9e0c24", + "fileName": "flux2_klein_edit.before.png", + "previewPath": "/template-gallery/inputs/flux2_klein_edit.before.png" + } + ] + } + ], + "executionSelection": { + "schemaVersion": 1, + "pipelineClass": "Flux3ModularPipeline", + "task": "edit_image", + "executionProfileId": "flux3-klein-base:official-provider:v1", + "bindingSpec": { + "modelType": "Flux3ModularPipeline", + "mode": "edit_image" + }, + "implementation": "native_stages", + "memoryPolicy": "custom_experimental", + "authoringRecipeId": "flux3-klein-base:official:edit-image:prompt-preview-append-fp32:v1" + }, + "promptGuide": { + "subject": [ + "the named source subject", + "the selected object or masked region", + "the original scene as the visual anchor" + ], + "environment": [ + "retain the source environment", + "continue nearby texture and scene structure", + "match local atmosphere and depth" + ], + "composition": [ + "keep the original crop and subject placement", + "match the source perspective", + "integrate the edit at the existing scale" + ], + "materials": [ + "name the replacement material and finish", + "match neighboring texture scale", + "preserve plausible reflections and contact shadows" + ], + "style": [ + "match the source visual language", + "photoreal localized retouch", + "production-ready material replacement" + ], + "lighting": [ + "match source exposure and color temperature", + "preserve existing light direction", + "add physically consistent contact shadows" + ], + "camera": [ + "keep the original focal length", + "preserve viewpoint and vanishing lines", + "maintain the source focus plane" + ], + "textRendering": [ + "leave unrelated copy unchanged", + "replace only the quoted text", + "preserve typographic alignment and print texture" + ], + "parameters": [ + "edit strength proportional to the requested change", + "enough denoising for integration without identity drift" + ], + "negative": [ + "identity drift", + "changed camera angle", + "unrequested background changes", + "visible edit seam", + "halo around the mask", + "mismatched texture scale" + ], + "modelHints": [ + "The exact public source profile is required; package qualification alone is not a template image proof.", + "PUP is advisory and starts disabled. No authored regions: ordinary Enable selects declared raw FP32. Select BF16 + NF4 explicitly if desired; this never changes diffusion FP8r storage selection.", + "With authored regions, append wording preserves them. Constrained table generation is a separate explicit Expert choice; do not enable it on a null layout." + ], + "preservation": [ + "preserve identity, pose, camera, and crop", + "keep unedited geometry and background unchanged", + "retain existing brand marks and readable copy" + ], + "change": [ + "change only the explicitly named region", + "describe the replacement shape, material, and color", + "state the intended relighting or cleanup precisely" + ], + "continuity": [ + "match source illumination and shadow direction", + "continue edges, grain, and depth of field through the edit", + "blend boundaries without halos or texture repetition" + ] + }, + "intentGroup": "planning", + "readinessPolicy": "planning", + "recipeSummary": "Edit reference image 1: change the cobalt-blue transparent glass cube to warm amber transparent glass. Preserve its square silhouette, thick glass base, camera perspective, position on the pale rough stone slab, neutral background, soft light direction and grounded shadow. Keep the object unbranded; add no objects, logos or text.", + "outputKinds": ["image"], + "thumbnailVariant": "compareSlider", + "mediaSlots": [ + { + "id": "before", + "label": "Before", + "kind": "comparison_before", + "role": "before", + "placeholder": "source asset pending" + }, + { + "id": "after", + "label": "After", + "kind": "comparison_after", + "role": "after", + "placeholder": "image result pending" + } + ], + "verificationStatus": "blocked", + "prompt": "Edit reference image 1: change the cobalt-blue transparent glass cube to warm amber transparent glass. Preserve its square silhouette, thick glass base, camera perspective, position on the pale rough stone slab, neutral background, soft light direction and grounded shadow. Keep the object unbranded; add no objects, logos or text.", + "negativePrompt": "", + "predictability": { + "lockReason": "Prompt, model, seed, size, steps, guidance, dtype, and runtime fingerprint must stay unchanged.", + "exactnessNotes": [ + "Exact means decoded pixels, frames, or audio PCM match the stored hash.", + "Changing the prompt or any locked setting makes the shown example modified.", + "A manifest entry is required before this template can display an Exact badge." + ], + "deterministicSettings": { + "seed": 481102, + "randomSeed": false + } + } + }, + { + "id": "flux3_klein_base_fp8r512_multi_reference_edit", + "label": "FLUX 3 Base 512 FP8r (50 steps) - Two-Reference Edit: Glass Packaging", + "modelDisplayName": "FLUX 3 Image Klein Base", + "mode": "edit_image", + "modelType": "Flux3ModularPipeline", + "runtimeReuseKey": "Flux3ModularPipeline:fp8r:bfloat16:none:resident:none:expert", + "category": "reference", + "tags": [ + "flux3", + "public-intent", + "planning", + "multi-reference-edit", + "fp8r", + "512-square", + "unqualified-recipe" + ], + "difficulty": "blocked", + "modelArtifact": { + "source": "hub", + "value": "black-forest-labs/flux-3-image-klein-base", + "revision": "1469d27cfb9bb1bd81d3a93f5a023b39dbf136e4" + }, + "requiredBackendCapabilities": [ + "modules.ModularDiffusers.ModelsLoader", + "modules.ModularDiffusers.EncodePrompt", + "modules.ModularDiffusers.Denoise", + "modules.ModularDiffusers.DecodeLatents", + "modules.Image.Preview", + "modules.ModularDiffusers.ImageEncode", + "modules.Image.Load", + "modules.ModularDiffusers.Guider" + ], + "vramEstimate": "Unmeasured for this exact 512 FP8r recipe. FP8r storage does not guarantee native FP8 GEMM or device fit.", + "runtimeEstimate": "Unmeasured distinct 512 x 512 FP8r recipe; original 1024 receipts are not reused.", + "description": "Use reference image 1 as the cobalt-blue glass product subject. Use reference image 2 as the flat packaging dieline: preserve the cream background, black panel outlines, fold guides, rounded placeholder panels and yellow accent bands. Place a small coherent product photograph of the blue glass cube in the large central panel, leaving the structural lines and other panels intact. Keep the result a flat unfolded packaging design. Do not duplicate the product, add people, invent a brand or add readable text.", + "userGoal": "Use the two included approved inputs in order: glass subject first, flat packaging layout second.", + "presetId": "flux_quality", + "example": { + "mediaType": "image", + "status": "blocked", + "lockedSeed": 481103, + "modelRevision": "1469d27cfb9bb1bd81d3a93f5a023b39dbf136e4", + "lockedSettings": { + "width": 512, + "height": 512, + "randomSeed": false, + "steps": 50, + "guidanceScale": 3.5, + "maxSequenceLength": 8192, + "dtype": "bfloat16", + "quantizationMode": "none", + "resourceMode": "expert", + "autoOffload": false, + "offloadMode": "none", + "weightFormat": "fp8r" + }, + "expectedOutput": { + "width": 512, + "height": 512 + }, + "runtimeEstimate": "Pending measured exact 512 FP8r recipe", + "blockReason": "Native output and template qualification, approved new output media and rights review are pending; this distinct 512 FP8r recipe grants no Gallery, Auto or hardware qualification.", + "notes": "No generated output, public output media, template receipt or fit measurement is attached. Diffusion uses FP8r storage, BF16 compute and no added quantization. PUP starts disabled; its explicit FP32/NF4 choices are separate. The second reference is normal edit-image conditioning, not ControlNet or source-owned structured geometry." + }, + "inputRequirements": { + "referenceImages": 2 + }, + "inputBindings": [ + { + "id": "flux3_klein_base_fp8r512_multi_reference_edit-references", + "label": "Ordered glass subject and packaging layout references", + "mediaType": "image", + "origin": "template", + "requiredAt": "workflow_start", + "field": "referenceImages", + "defaultAssets": [ + { + "id": "approved-cobalt-glass-source", + "label": "Approved cobalt glass cube on stone", + "mediaType": "image", + "runtimePath": "/template-gallery/inputs/flux2_klein_edit.before.png", + "runtimeSha256": "sha256:bytes:d5ba3943d6c0a264860ba0cde18d87e2d9554a3f7328308f4d771e082a9e0c24", + "fileName": "flux2_klein_edit.before.png", + "previewPath": "/template-gallery/inputs/flux2_klein_edit.before.png" + }, + { + "id": "approved-packaging-dieline-source", + "label": "Approved cream and yellow packaging dieline", + "mediaType": "image", + "runtimePath": "/template-gallery/inputs/qwen_control_image_layout.before.png", + "runtimeSha256": "sha256:bytes:b748201353f02543c2a48920bb514c2741366151df45bf6c4904aeb0f32f1a67", + "fileName": "qwen_control_image_layout.before.png", + "previewPath": "/template-gallery/inputs/qwen_control_image_layout.before.png" + } + ] + } + ], + "executionSelection": { + "schemaVersion": 1, + "pipelineClass": "Flux3ModularPipeline", + "task": "edit_image", + "executionProfileId": "flux3-klein-base:official-provider:v1", + "bindingSpec": { + "modelType": "Flux3ModularPipeline", + "mode": "edit_image" + }, + "implementation": "native_stages", + "memoryPolicy": "custom_experimental", + "authoringRecipeId": "flux3-klein-base:official:edit-image:prompt-preview-append-fp32:v1" + }, + "promptGuide": { + "subject": [ + "the named source subject", + "the selected object or masked region", + "the original scene as the visual anchor" + ], + "environment": [ + "retain the source environment", + "continue nearby texture and scene structure", + "match local atmosphere and depth" + ], + "composition": [ + "keep the original crop and subject placement", + "match the source perspective", + "integrate the edit at the existing scale" + ], + "materials": [ + "name the replacement material and finish", + "match neighboring texture scale", + "preserve plausible reflections and contact shadows" + ], + "style": [ + "match the source visual language", + "photoreal localized retouch", + "production-ready material replacement" + ], + "lighting": [ + "match source exposure and color temperature", + "preserve existing light direction", + "add physically consistent contact shadows" + ], + "camera": [ + "keep the original focal length", + "preserve viewpoint and vanishing lines", + "maintain the source focus plane" + ], + "textRendering": [ + "leave unrelated copy unchanged", + "replace only the quoted text", + "preserve typographic alignment and print texture" + ], + "parameters": [ + "edit strength proportional to the requested change", + "enough denoising for integration without identity drift" + ], + "negative": [ + "identity drift", + "changed camera angle", + "unrequested background changes", + "visible edit seam", + "halo around the mask", + "mismatched texture scale" + ], + "modelHints": [ + "The exact public source profile is required; package qualification alone is not a template image proof.", + "PUP is advisory and starts disabled. No authored regions: ordinary Enable selects declared raw FP32. Select BF16 + NF4 explicitly if desired; this never changes diffusion FP8r storage selection.", + "With authored regions, append wording preserves them. Constrained table generation is a separate explicit Expert choice; do not enable it on a null layout." + ], + "preservation": [ + "preserve identity, pose, camera, and crop", + "keep unedited geometry and background unchanged", + "retain existing brand marks and readable copy" + ], + "change": [ + "change only the explicitly named region", + "describe the replacement shape, material, and color", + "state the intended relighting or cleanup precisely" + ], + "continuity": [ + "match source illumination and shadow direction", + "continue edges, grain, and depth of field through the edit", + "blend boundaries without halos or texture repetition" + ] + }, + "intentGroup": "planning", + "readinessPolicy": "planning", + "recipeSummary": "Use reference image 1 as the cobalt-blue glass product subject. Use reference image 2 as the flat packaging dieline: preserve the cream background, black panel outlines, fold guides, rounded placeholder panels and yellow accent bands. Place a small coherent product photograph of the blue glass cube in the large central panel, leaving the structural lines and other panels intact. Keep the result a flat unfolded packaging design. Do not duplicate the product, add people, invent a brand or add readable text.", + "outputKinds": ["image"], + "thumbnailVariant": "compareSlider", + "mediaSlots": [ + { + "id": "before", + "label": "Before", + "kind": "comparison_before", + "role": "before", + "placeholder": "source asset pending" + }, + { + "id": "after", + "label": "After", + "kind": "comparison_after", + "role": "after", + "placeholder": "image result pending" + } + ], + "verificationStatus": "blocked", + "prompt": "Use reference image 1 as the cobalt-blue glass product subject. Use reference image 2 as the flat packaging dieline: preserve the cream background, black panel outlines, fold guides, rounded placeholder panels and yellow accent bands. Place a small coherent product photograph of the blue glass cube in the large central panel, leaving the structural lines and other panels intact. Keep the result a flat unfolded packaging design. Do not duplicate the product, add people, invent a brand or add readable text.", + "negativePrompt": "", + "predictability": { + "lockReason": "Prompt, model, seed, size, steps, guidance, dtype, and runtime fingerprint must stay unchanged.", + "exactnessNotes": [ + "Exact means decoded pixels, frames, or audio PCM match the stored hash.", + "Changing the prompt or any locked setting makes the shown example modified.", + "A manifest entry is required before this template can display an Exact badge." + ], + "deterministicSettings": { + "seed": 481103, + "randomSeed": false + } + } + }, + { + "id": "flux3_klein_base_fp8r512_raw_coordinate_prompt", + "label": "FLUX 3 Base 512 FP8r (50 steps) - Raw Prompt Coordinates: Apple", + "modelDisplayName": "FLUX 3 Image Klein Base", + "mode": "text_to_image", + "modelType": "Flux3ModularPipeline", + "runtimeReuseKey": "Flux3ModularPipeline:fp8r:bfloat16:none:resident:none:expert", + "category": "reference", + "tags": [ + "flux3", + "public-intent", + "planning", + "fp8r", + "512-square", + "unqualified-recipe", + "raw-prompt-coordinates" + ], + "difficulty": "blocked", + "modelArtifact": { + "source": "hub", + "value": "black-forest-labs/flux-3-image-klein-base", + "revision": "1469d27cfb9bb1bd81d3a93f5a023b39dbf136e4" + }, + "requiredBackendCapabilities": [ + "modules.ModularDiffusers.ModelsLoader", + "modules.ModularDiffusers.EncodePrompt", + "modules.ModularDiffusers.Denoise", + "modules.ModularDiffusers.DecodeLatents", + "modules.Image.Preview", + "modules.ModularDiffusers.Guider" + ], + "vramEstimate": "Unmeasured for this exact 512 FP8r recipe. FP8r storage does not guarantee native FP8 GEMM or device fit.", + "runtimeEstimate": "Unmeasured distinct 512 x 512 FP8r recipe; original 1024 receipts are not reused.", + "description": "A still life with .\n[{\"id\":\"apple_1\",\"bbox\":[250,125,750,875],\"desc\":\"A red apple, with a green leaf.\"}]", + "userGoal": "Inspect the literal raw coordinate prompt; the structured-layout widget remains unset/null.", + "presetId": "flux_quality", + "example": { + "mediaType": "image", + "status": "blocked", + "lockedSeed": 481104, + "modelRevision": "1469d27cfb9bb1bd81d3a93f5a023b39dbf136e4", + "lockedSettings": { + "width": 512, + "height": 512, + "randomSeed": false, + "steps": 50, + "guidanceScale": 3.5, + "maxSequenceLength": 8192, + "dtype": "bfloat16", + "quantizationMode": "none", + "resourceMode": "expert", + "autoOffload": false, + "offloadMode": "none", + "weightFormat": "fp8r" + }, + "expectedOutput": { + "width": 512, + "height": 512 + }, + "runtimeEstimate": "Pending measured exact 512 FP8r recipe", + "blockReason": "Native output and template qualification, approved new output media and rights review are pending; this distinct 512 FP8r recipe grants no Gallery, Auto or hardware qualification. Spatial adherence is unproved. This is not a seeded region-widget or generated-table template.", + "notes": "The raw prompt uses the existing shared layout fixture syntax, y-first integer coordinates [250,125,750,875]. The layout_conditioning field remains null through normal T2I defaults. PUP stays disabled so the literal table is not rewritten. No source-reference IDs, widget geometry, strict generated-table completion or F3-06 proof is claimed." + }, + "executionSelection": { + "schemaVersion": 1, + "pipelineClass": "Flux3ModularPipeline", + "task": "text_to_image", + "executionProfileId": "flux3-klein-base:official-provider:v1", + "bindingSpec": { + "modelType": "Flux3ModularPipeline", + "mode": "text_to_image" + }, + "implementation": "native_stages", + "memoryPolicy": "custom_experimental", + "authoringRecipeId": "flux3-klein-base:official:text-to-image:prompt-preview-append-fp32:v1" + }, + "promptGuide": { + "subject": [ + "one unmistakable focal subject", + "specific pose or product orientation", + "distinctive silhouette and proportions" + ], + "environment": [ + "named location, era, weather, and background activity", + "foreground, midground, and background depth", + "intentional negative space for supporting copy" + ], + "composition": [ + "clear visual hierarchy and camera-relative placement", + "balanced edge spacing with a deliberate focal path", + "subject scale composed for the target aspect ratio" + ], + "materials": [ + "named surface materials and finish", + "microtexture, wear, and edge detail", + "physically coherent reflections and translucency" + ], + "style": [ + "editorial realism with restrained art direction", + "cinematic production design with natural detail", + "premium commercial finish without stock-photo staging" + ], + "lighting": [ + "defined key, fill, and rim-light relationship", + "specific color temperature and shadow softness", + "motivated light with realistic contact shadows" + ], + "camera": [ + "named shot size, angle, and focal length", + "intentional aperture and focus plane", + "perspective appropriate to the subject scale" + ], + "textRendering": [ + "short exact copy in quotation marks", + "defined type placement, scale, and alignment", + "high-contrast lettering with clear reading order" + ], + "parameters": [ + "detail density suited to the final resolution", + "one coherent scene rather than a contact sheet", + "controlled complexity at the requested aspect ratio" + ], + "negative": [ + "generic stock-photo composition", + "flat plastic surfaces", + "muddy microdetail", + "warped geometry", + "unreadable lettering", + "duplicated objects" + ], + "modelHints": [ + "Keep PUP disabled for this raw-coordinate example.", + "The table is literal prompt text; no authored-region widget is seeded.", + "Native spatial adherence and output quality remain unqualified." + ] + }, + "intentGroup": "planning", + "readinessPolicy": "planning", + "recipeSummary": "A still life with .\n[{\"id\":\"apple_1\",\"bbox\":[250,125,750,875],\"desc\":\"A red apple, with a green leaf.\"}]", + "outputKinds": ["image"], + "thumbnailVariant": "image", + "mediaSlots": [ + { + "id": "primary", + "label": "Preview", + "kind": "image", + "role": "preview", + "placeholder": "image example pending" + } + ], + "verificationStatus": "blocked", + "prompt": "A still life with .\n[{\"id\":\"apple_1\",\"bbox\":[250,125,750,875],\"desc\":\"A red apple, with a green leaf.\"}]", + "negativePrompt": "", + "predictability": { + "lockReason": "Prompt, model, seed, size, steps, guidance, dtype, and runtime fingerprint must stay unchanged.", + "exactnessNotes": [ + "Exact means decoded pixels, frames, or audio PCM match the stored hash.", + "Changing the prompt or any locked setting makes the shown example modified.", + "A manifest entry is required before this template can display an Exact badge." + ], + "deterministicSettings": { + "seed": 481104, + "randomSeed": false + } + } + }, + { + "id": "flux3_klein_base_fp8r512_lora_style", + "label": "FLUX 3 Base 512 FP8r (50 steps) - Monet Oil-Painting LoRA (Test Candidate)", + "modelDisplayName": "FLUX 3 Image Klein Base", + "mode": "text_to_image", + "modelType": "Flux3ModularPipeline", + "runtimeReuseKey": "Flux3ModularPipeline:fp8r:bfloat16:none:resident:none:expert", + "category": "lora", + "tags": ["flux3", "public-intent", "planning", "lora-style", "fp8r", "512-square", "unqualified-recipe"], + "difficulty": "blocked", + "modelArtifact": { + "source": "hub", + "value": "black-forest-labs/flux-3-image-klein-base", + "revision": "1469d27cfb9bb1bd81d3a93f5a023b39dbf136e4" + }, + "requiredBackendCapabilities": [ + "modules.ModularDiffusers.ModelsLoader", + "modules.ModularDiffusers.EncodePrompt", + "modules.ModularDiffusers.Denoise", + "modules.ModularDiffusers.DecodeLatents", + "modules.Image.Preview", + "modules.ModularDiffusers.Lora", + "modules.ModularDiffusers.Guider" + ], + "vramEstimate": "Unmeasured for this exact 512 FP8r recipe. FP8r storage does not guarantee native FP8 GEMM or device fit.", + "runtimeEstimate": "Unmeasured distinct 512 x 512 FP8r recipe; original 1024 receipts are not reused.", + "description": "mnt_oil, an oil painting of a single red fox standing on a moss-covered rock in an ancient forest. The fox is clearly separated from the trees and foliage, with soft morning light filtering through the canopy. Preserve one coherent fox, a readable rock silhouette and a balanced square composition. No ornamental card frame, lettering, logos, signatures or watermarks.", + "userGoal": "Inspect the pinned Base Monet replacement and exact public recipe; output qualification and publication remain pending.", + "presetId": "flux_quality", + "example": { + "mediaType": "image", + "status": "blocked", + "lockedSeed": 481105, + "modelRevision": "1469d27cfb9bb1bd81d3a93f5a023b39dbf136e4", + "lockedSettings": { + "width": 512, + "height": 512, + "randomSeed": false, + "steps": 50, + "guidanceScale": 3.5, + "maxSequenceLength": 8192, + "dtype": "bfloat16", + "quantizationMode": "none", + "resourceMode": "expert", + "autoOffload": false, + "offloadMode": "none", + "weightFormat": "fp8r" + }, + "expectedOutput": { + "width": 512, + "height": 512 + }, + "runtimeEstimate": "Pending measured exact 512 FP8r recipe", + "blockReason": "Native output and template qualification, visual review and output publication approval remain pending for this exact public recipe; this distinct 512 FP8r recipe grants no Gallery, Auto or hardware qualification. The selected Monet replacement declares FLUX Kommunity License v1.0; its terms do not approve generated output publication.", + "notes": "No public output media, template receipt or fit measurement is attached. Local model_cpu trials with autoOffload=true are separate from this locked none / autoOffload=false recipe; a painterly baseline alone does not prove adapter benefit. This Base-trained rank16 Monet candidate replaces the public Tarot plan without changing saved Tarot workflows. Diffusion uses FP8r storage, BF16 compute and no added quantization. PUP starts disabled; its explicit FP32/NF4 choices are separate." + }, + "evidencePolicy": "generated", + "workflowBlocks": ["lora"], + "workflowBlockSettings": { + "lora": { + "model": { + "source": "hub", + "value": "pjecuacion/flux3-klein-mnt-oil-monet-lora", + "revision": "0d94b6a4601892499defd8c5d89c24f78e78043b", + "sha256": "a25e926d8e5fd0069ed5ee3db67be8ac191df4d713bc807e2abfe61a8f885047", + "byteSize": 80381072, + "license": "FLUX Kommunity License v1.0" + }, + "weightName": "mnt_oil_klein3.safetensors", + "adapterName": "mnt_oil", + "scale": 1 + } + }, + "executionSelection": { + "schemaVersion": 1, + "pipelineClass": "Flux3ModularPipeline", + "task": "text_to_image", + "executionProfileId": "flux3-klein-base:official-provider:v1", + "bindingSpec": { + "modelType": "Flux3ModularPipeline", + "mode": "text_to_image" + }, + "implementation": "native_stages", + "memoryPolicy": "custom_experimental", + "authoringRecipeId": "flux3-klein-base:official:text-to-image:prompt-preview-append-fp32:v1", + "loraPolicy": { + "defaultAdapterName": "mnt_oil" + } + }, + "promptGuide": { + "subject": [ + "one unmistakable focal subject", + "specific pose or product orientation", + "distinctive silhouette and proportions" + ], + "environment": [ + "named location, era, weather, and background activity", + "foreground, midground, and background depth", + "intentional negative space for supporting copy" + ], + "composition": [ + "clear visual hierarchy and camera-relative placement", + "balanced edge spacing with a deliberate focal path", + "subject scale composed for the target aspect ratio" + ], + "materials": [ + "named surface materials and finish", + "microtexture, wear, and edge detail", + "physically coherent reflections and translucency" + ], + "style": [ + "editorial realism with restrained art direction", + "cinematic production design with natural detail", + "premium commercial finish without stock-photo staging" + ], + "lighting": [ + "defined key, fill, and rim-light relationship", + "specific color temperature and shadow softness", + "motivated light with realistic contact shadows" + ], + "camera": [ + "named shot size, angle, and focal length", + "intentional aperture and focus plane", + "perspective appropriate to the subject scale" + ], + "textRendering": [ + "short exact copy in quotation marks", + "defined type placement, scale, and alignment", + "high-contrast lettering with clear reading order" + ], + "parameters": [ + "detail density suited to the final resolution", + "one coherent scene rather than a contact sheet", + "controlled complexity at the requested aspect ratio" + ], + "negative": [ + "generic stock-photo composition", + "flat plastic surfaces", + "muddy microdetail", + "warped geometry", + "unreadable lettering", + "duplicated objects" + ], + "modelHints": [ + "The exact public source profile is required; package qualification alone is not a template image proof.", + "PUP is advisory and starts disabled. No authored regions: ordinary Enable selects declared raw FP32. Select BF16 + NF4 explicitly if desired; this never changes diffusion FP8r storage selection.", + "With authored regions, append wording preserves them. Constrained table generation is a separate explicit Expert choice; do not enable it on a null layout.", + "The pinned Monet adapter declares FLUX Kommunity License v1.0. Keep mnt_oil at the start of the prompt and scale 1 for this Base candidate. The author warns about invented corner signatures; inspect the actual output. Its training-data provenance is the author's statement, and output publication remains unapproved." + ] + }, + "intentGroup": "planning", + "readinessPolicy": "planning", + "recipeSummary": "mnt_oil, an oil painting of a single red fox standing on a moss-covered rock in an ancient forest. The fox is clearly separated from the trees and foliage, with soft morning light filtering through the canopy. Preserve one coherent fox, a readable rock silhouette and a balanced square composition. No ornamental card frame, lettering, logos, signatures or watermarks.", + "outputKinds": ["image"], + "thumbnailVariant": "image", + "mediaSlots": [ + { + "id": "primary", + "label": "Preview", + "kind": "image", + "role": "preview", + "placeholder": "image example pending" + } + ], + "verificationStatus": "blocked", + "prompt": "mnt_oil, an oil painting of a single red fox standing on a moss-covered rock in an ancient forest. The fox is clearly separated from the trees and foliage, with soft morning light filtering through the canopy. Preserve one coherent fox, a readable rock silhouette and a balanced square composition. No ornamental card frame, lettering, logos, signatures or watermarks.", + "negativePrompt": "", + "predictability": { + "lockReason": "Prompt, model, seed, size, steps, guidance, dtype, and runtime fingerprint must stay unchanged.", + "exactnessNotes": [ + "Exact means decoded pixels, frames, or audio PCM match the stored hash.", + "Changing the prompt or any locked setting makes the shown example modified.", + "A manifest entry is required before this template can display an Exact badge." + ], + "deterministicSettings": { + "seed": 481105, + "randomSeed": false + } + } + } + ] +} From f36287d3c381324bba26710c1f1ec832da51c2ed Mon Sep 17 00:00:00 2001 From: Sourav Das Date: Sat, 31 Oct 2026 15:44:25 +0530 Subject: [PATCH 109/440] Capture the final protected packaging PNG as the primary output --- scripts/flux3-public-template-planning.test.mjs | 5 +++-- scripts/template-gallery-runner.mjs | 1 + scripts/template-gallery-runner.test.mjs | 4 ++++ src/studio/templateImageComposite.ts | 1 + src/studio/templates.ts | 14 ++++---------- 5 files changed, 13 insertions(+), 12 deletions(-) diff --git a/scripts/flux3-public-template-planning.test.mjs b/scripts/flux3-public-template-planning.test.mjs index c086331b..df375a0f 100644 --- a/scripts/flux3-public-template-planning.test.mjs +++ b/scripts/flux3-public-template-planning.test.mjs @@ -153,7 +153,7 @@ test('approved named source images bind ordinary one- and ordered two-reference mask.defaultAssets[0].runtimeSha256, 'sha256:bytes:d36162153e2009e0b2f3a711825d39e67c02ba3577971a444bd92eebe81169ac', ); - assert.deepEqual(value.example.galleryExpectedOutput, { width: 1024, height: 1024 }); + assert.deepEqual(value.example.expectedOutput, { width: 1024, height: 1024 }); } } } @@ -199,7 +199,7 @@ test('locked diffusion recipes remain explicit and independent of optional PUP N ['bfloat16', 'none', 'expert', false, 'none'], ); assert.equal(locked.randomSeed, false); - assert.equal(value.example.expectedOutput.width, 512); + assert.equal(value.example.expectedOutput.width, kind === 'multi_reference_edit' ? 1024 : 512); assert.equal(locked.weightFormat, 'fp8r'); } } @@ -595,6 +595,7 @@ test('all ten fixed-input planning cards create exact ordinary FP8r task graphs' assert.equal(composites.length, 1); assert.equal(saves.length, 1); assert.equal(saves[0].data.params.saved_images.fieldOptions.format, 'PNG'); + assert.equal(saves[0].data.studioRole, 'compositeOutput'); assert.match(saves[0].data.params.filename.value, /\.png$/u); for (const [source, output, target, input] of [ [backgrounds[0], 'image', composites[0], 'background'], diff --git a/scripts/template-gallery-runner.mjs b/scripts/template-gallery-runner.mjs index fe5b7e49..37b076c5 100644 --- a/scripts/template-gallery-runner.mjs +++ b/scripts/template-gallery-runner.mjs @@ -1505,6 +1505,7 @@ export function preferredOutputRoleForTemplate(template) { } if (template.mediaType === 'video') return 'videoExport'; if (template.workflowBlocks?.includes('upscaler')) return 'upscalePreview'; + if (template.workflowBlocks?.includes('masked_composite')) return 'compositeOutput'; if (template.modelType === 'AceStepAudioPipeline') return 'audioExport'; return ''; } diff --git a/scripts/template-gallery-runner.test.mjs b/scripts/template-gallery-runner.test.mjs index 1cbb540a..e828574d 100644 --- a/scripts/template-gallery-runner.test.mjs +++ b/scripts/template-gallery-runner.test.mjs @@ -1185,6 +1185,10 @@ test('gallery runner selects the generated audio export instead of the source lo 'upscalePreview', ); assert.equal(preferredOutputRoleForTemplate({ modelType: 'QwenImageModularPipeline' }), ''); + assert.equal( + preferredOutputRoleForTemplate({ mediaType: 'image', workflowBlocks: ['masked_composite'] }), + 'compositeOutput', + ); }); test('gallery runner reuses runtime only for an explicit matching loader-contract key', () => { diff --git a/src/studio/templateImageComposite.ts b/src/studio/templateImageComposite.ts index eddd56f0..e25938b1 100644 --- a/src/studio/templateImageComposite.ts +++ b/src/studio/templateImageComposite.ts @@ -76,5 +76,6 @@ export function attachTemplateImageComposite({ set(save, ['quality'], 100); set(save, ['metadata'], ''); save.data.label = 'Protected image (PNG)'; + save.data.studioRole = 'compositeOutput'; connect(composite, ['output'], save, ['image']); } diff --git a/src/studio/templates.ts b/src/studio/templates.ts index 6b20539e..73f93e57 100644 --- a/src/studio/templates.ts +++ b/src/studio/templates.ts @@ -4241,11 +4241,8 @@ const NORMALIZED_STUDIO_TEMPLATES: StudioTemplate[] = [ offloadMode: 'none', weightFormat: 'fp8r', }, - expectedOutput: { - width: 512, - height: 512, - }, - galleryExpectedOutput: { width: 1024, height: 1024 }, + // The primary graph output is the protected PNG, after 512px generation. + expectedOutput: { width: 1024, height: 1024 }, runtimeEstimate: 'Pending measured exact 512 FP8r recipe', blockReason: 'Native output and template qualification, approved new output media and rights review are pending; this distinct 512 FP8r recipe grants no Gallery, Auto or hardware qualification.', @@ -4716,11 +4713,8 @@ const NORMALIZED_STUDIO_TEMPLATES: StudioTemplate[] = [ offloadMode: 'none', weightFormat: 'fp8r', }, - expectedOutput: { - width: 512, - height: 512, - }, - galleryExpectedOutput: { width: 1024, height: 1024 }, + // The primary graph output is the protected PNG, after 512px generation. + expectedOutput: { width: 1024, height: 1024 }, runtimeEstimate: 'Pending measured exact 512 FP8r recipe', blockReason: 'Native output and template qualification, approved new output media and rights review are pending; this distinct 512 FP8r recipe grants no Gallery, Auto or hardware qualification.', From bc1c330e30693ca8f62755124abdb280337d2db1 Mon Sep 17 00:00:00 2001 From: Sourav Das Date: Sat, 31 Oct 2026 15:48:48 +0530 Subject: [PATCH 110/440] Record the measured FLUX3 receipt and compositor bundle cost --- docs/deployment.md | 11 +++++++++++ scripts/bundle-budget.mjs | 10 ++++++++++ 2 files changed, 21 insertions(+) diff --git a/docs/deployment.md b/docs/deployment.md index 9e38a194..1d5d85e5 100644 --- a/docs/deployment.md +++ b/docs/deployment.md @@ -134,6 +134,17 @@ Run the bundle budget after changes that affect dependencies or code splitting: npm run bundle:check ``` +The versioned FLUX3 prompts, scoped image receipts and protected-PNG template +authoring measure 672742 gzip bytes of startup JavaScript, with a 494259-byte +largest startup chunk and 328069 deferred bytes. Compared with the accepted +hydration build, aggregate growth is 1047/1051/1043 bytes respectively. The +ceilings are 672753/494267/328312, retaining 11/8/243 bytes of headroom. Four +startup assets retain their loading membership; deferred assets grow from 89 to +90 with a template-authoring facade. Dependencies, minifier, eager loading +boundaries, graph/media/identity validators and the independent 65536-byte +deferred chunk cap stay fixed. These are aggregate measurements, not per-module +attribution. The following measurements remain historical. + The save/read hydration ownership fix measures 671695 gzip bytes of startup JavaScript, with a 493208-byte largest startup chunk and 327026 deferred bytes. Compared with the accepted authored-device import, immutable Model Install and diff --git a/scripts/bundle-budget.mjs b/scripts/bundle-budget.mjs index bfdb23e0..d7b6c212 100644 --- a/scripts/bundle-budget.mjs +++ b/scripts/bundle-budget.mjs @@ -1,3 +1,10 @@ +// Versioned FLUX3 prompts, scoped image receipts and ordinary protected-PNG +// authoring measure largest/startup/deferred gzip 494259/672742/328069 versus +// accepted 493208/671695/327026. Add only measured growth 1051/1047/1043, +// preserving 8/11/243 bytes of headroom. Four startup assets are unchanged; +// deferred assets grow 89 -> 90 with the template-authoring facade. No new +// dependency or eager loading boundary; the 65536-byte deferred chunk cap, +// minifier, graph/media/identity validators and all other checks stay fixed. // Save/read hydration ownership measures largest/startup/deferred gzip // 493208/671695/327026 versus the accepted 493170/671659/327133. // Add only measured aggregate startup growth 38/36, preserving 8/11 bytes @@ -258,6 +265,7 @@ const SOURCE_LICENSES = new URL('../public/THIRD_PARTY_LICENSES.txt', import.met // Allow only measured startup growth (+1649/+1651), retaining 8/11 bytes headroom. // Four startup and 89 deferred assets, dependencies, loading rules and deferred caps stay fixed. const MAX_STARTUP_CHUNK_GZIP_BYTES = + 1051 + 38 + 1649 + 64 + @@ -380,6 +388,7 @@ const MAX_STARTUP_CHUNK_GZIP_BYTES = // Preserve the separately measured 64-byte shared loading-policy allowance above. // Preserve the measured 384-byte selected-image authoring allowance above. const MAX_STARTUP_GZIP_BYTES = + 1047 + 36 + 1651 + 63 + @@ -586,6 +595,7 @@ const MAX_DEFERRED_CHUNK_GZIP_BYTES = 64 * 1024; // 321033-byte cap, preserving 39 bytes of headroom at 321227. Startup caps, the // 65536-byte deferred chunk cap, dependencies and loading boundaries stay fixed. const MAX_DEFERRED_GZIP_BYTES = + 1043 + 334 + 178 + 287 + From 5087ba9498d69ef4fda30e8821fe23a0f32c6753 Mon Sep 17 00:00:00 2001 From: Sourav Das Date: Sat, 31 Oct 2026 17:25:19 +0530 Subject: [PATCH 111/440] Expect the accepted versioned FLUX3 radio seed in browser authoring --- tests/e2e/studio-mocked/studio-mocked.spec.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/e2e/studio-mocked/studio-mocked.spec.ts b/tests/e2e/studio-mocked/studio-mocked.spec.ts index c6273102..fc4488ef 100644 --- a/tests/e2e/studio-mocked/studio-mocked.spec.ts +++ b/tests/e2e/studio-mocked/studio-mocked.spec.ts @@ -11267,7 +11267,7 @@ test('Experimental planning cards create the exact FLUX3 Ceramic Radio graph thr width: 512, height: 512, num_inference_steps: 16, - seed: { value: 481001, isRandom: false }, + seed: { value: 481402, isRandom: false }, }); expect(values('EncodePrompt')).toMatchObject({ prompt: template.prompt, From 567b78b6a7a668be482656e55744e9ab3b716ed3 Mon Sep 17 00:00:00 2001 From: Sourav Das Date: Sat, 31 Oct 2026 17:30:28 +0530 Subject: [PATCH 112/440] Stage only exact approved Gallery assets before provisional Hub access --- docs/template-gallery-assets.md | 11 ++- scripts/template-gallery-assets.py | 26 +++++-- scripts/template-gallery-assets.test.py | 97 +++++++++++++++++++++++++ 3 files changed, 126 insertions(+), 8 deletions(-) diff --git a/docs/template-gallery-assets.md b/docs/template-gallery-assets.md index f5b4951c..00a11977 100644 --- a/docs/template-gallery-assets.md +++ b/docs/template-gallery-assets.md @@ -142,7 +142,16 @@ does not delete `README.md`, `.gitattributes`, or unrelated Dataset files. While upstream permissions are pending, `upload-provisional` may publish only the ledger's approved records. It writes a blocked manifest, lists every withheld path in the Dataset card, verifies the public bytes anonymously, and -has no activation option: +has no activation option. + +The provisional command validates the complete checked-in inventory and rights +ledger, then stages only approved files. Withheld local files may be absent; +their descriptors and holds remain unchanged. Every approved file must still +have exact local bytes and a safe regular-file path. Staging and byte verification +finish before credential access or a Hub mutation. Complete-set verification, +upload, activation and pruning retain their stricter complete-set requirements. + +For example: ```bash ../MoDiff/.venv/bin/python scripts/template-gallery-assets.py upload-provisional \ diff --git a/scripts/template-gallery-assets.py b/scripts/template-gallery-assets.py index 59edbd91..454f01ef 100644 --- a/scripts/template-gallery-assets.py +++ b/scripts/template-gallery-assets.py @@ -1036,8 +1036,17 @@ def stage_provisional_upload( if record["path"] not in approved_paths: continue repository_path = manifest_record_relative_path(record) + source = GALLERY_ROOT / repository_path + # Withheld files may already have been pruned. Approved files must + # still be regular, exact local bytes, with no redirected ancestor. + assert_safe_destination_tree(GALLERY_ROOT, source) + metadata, digest = inspect_regular_file(source, context="Approved Gallery asset") + if metadata.st_size != record["size"] or digest != record["sha256"]: + raise AssetPipelineError( + f"Approved Gallery asset does not match its manifest: {record['path']}" + ) copy_asset_bytes( - GALLERY_ROOT / repository_path, + source, destination / "template-gallery" / repository_path, ) write_json( @@ -1615,7 +1624,10 @@ def command_upload_provisional(args: argparse.Namespace) -> int: "Provisional upload requires --confirm-redistribution-rights for the approved subset." ) validate_repo_id(args.repo_id) - manifest = verify_checked_manifest(require_ready=True) + # Validate the entire declared inventory and rights ledger without requiring + # local bodies for explicitly held files or re-guessing platform MIME types. + # The exact approved payload is materialized and verified before Hub access. + manifest = validate_checked_manifest_contract() # All local licensing and rights checks happen before authentication or # any other external Hub mutation. validate_dataset_licensing() @@ -1623,11 +1635,6 @@ def command_upload_provisional(args: argparse.Namespace) -> int: provisional_manifest, provisional_ledger, held_paths = ( build_provisional_publication(manifest, ledger) ) - HfApi, _, _ = require_hub() - api = HfApi() - ensure_public_repo( - api, args.repo_id, create=args.create, make_public=args.make_public - ) with tempfile.TemporaryDirectory( prefix="modiff-template-assets-provisional-" ) as temporary: @@ -1645,6 +1652,11 @@ def command_upload_provisional(args: argparse.Namespace) -> int: raise AssetPipelineError( "The provisional publication changed during staging." ) + HfApi, _, _ = require_hub() + api = HfApi() + ensure_public_repo( + api, args.repo_id, create=args.create, make_public=args.make_public + ) result = api.upload_folder( repo_id=args.repo_id, repo_type="dataset", diff --git a/scripts/template-gallery-assets.test.py b/scripts/template-gallery-assets.test.py index 57f220bf..55f0b966 100644 --- a/scripts/template-gallery-assets.test.py +++ b/scripts/template-gallery-assets.test.py @@ -578,6 +578,103 @@ def test_provisional_upload_cli_has_no_activate_option(self) -> None: self.assertIs(parsed.handler, assets.command_upload_provisional) self.assertFalse(hasattr(parsed, "activate")) + def test_provisional_command_stages_approved_bytes_before_hub_access(self) -> None: + for fault in (None, "missing", "changed", "link", "parent-link", "rights", "unsafe-held"): + with self.subTest(fault=fault), tempfile.TemporaryDirectory() as temporary: + root = Path(temporary) + gallery = root / "gallery" + gallery.mkdir() + payload = b"approved original bytes" + relative = "nested/approved.bin" + source = gallery / relative + source.parent.mkdir() + source.write_bytes(payload) + manifest = ready_manifest([ + asset_record("template-gallery/held.bin", b"withheld and absent"), + asset_record("template-gallery/" + relative, payload), + ]) + ledger = assets.build_rights_template(manifest) + ledger["records"][1].update({ + "publishDecision": "approved", + "creatorOrRightsholder": "Unit fixture author", + "creationMethod": "Original deterministic unit fixture", + "sourceLicense": "not-applicable", + "modelTerms": ["not-applicable"], + "aiGenerated": False, + "humanLikenessConsent": "not-applicable", + "marks": [], "requiredAttribution": [], + "assetLicense": "CC0-1.0", + "reviewedBy": "Unit fixture reviewer", "reviewedAt": "2026-10-31", + }) + if fault == "missing": + source.unlink() + elif fault == "changed": + source.write_bytes(b"unapproved replacement") + elif fault == "link": + target = root / "external.bin" + target.write_bytes(payload) + source.unlink() + self.create_symlink_or_skip(source, target) + elif fault == "parent-link": + target = root / "external" + target.mkdir() + (target / "approved.bin").write_bytes(payload) + source.unlink() + source.parent.rmdir() + self.create_symlink_or_skip(source.parent, target, target_is_directory=True) + elif fault == "rights": + ledger["records"][0]["sha256"] = "sha256:bytes:" + "a" * 64 + elif fault == "unsafe-held": + manifest["assets"][0]["path"] = "template-gallery/../held.bin" + checked_manifest, checked_rights = root / "manifest.json", root / "rights.json" + assets.write_json(checked_manifest, manifest) + assets.write_json(checked_rights, ledger) + card = root / "README.md" + card.write_text("---\nlicense: apache-2.0\n---\nFixture\n", encoding="utf-8") + calls = [] + + class FakeApi: + def upload_folder(self, **kwargs: object) -> SimpleNamespace: + staging = Path(kwargs["folder_path"]) + self_path = staging / "template-gallery" / relative + assert self_path.read_bytes() == payload + assert not (staging / "template-gallery/held.bin").exists() + calls.append(kwargs) + return SimpleNamespace(oid="0123456789abcdef0123456789abcdef01234567") + + def hub_after_staging(): + # The source must have been checked before authentication, + # even when the materialized approved set is rejected. + return FakeApi, None, None + + with ( + patch.object(assets, "GALLERY_ROOT", gallery), + patch.object(assets, "ASSET_MANIFEST_PATH", checked_manifest), + patch.object(assets, "ASSET_RIGHTS_PATH", checked_rights), + patch.object(assets, "DATASET_CARD_PATH", card), + patch.object(assets, "DATASET_LICENSE_PATH", root / "absent-license"), + patch.object(assets, "required_asset_paths", return_value={"held.bin", relative}), + patch.object(assets, "required_assets_by_purpose", + return_value={"held.bin": {"runtime"}, relative: {"runtime"}}), + patch.object(assets, "require_hub", side_effect=hub_after_staging) as hub, + patch.object(assets, "ensure_public_repo"), + patch.object(assets, "verify_public_provisional_snapshot"), + redirect_stdout(io.StringIO()), + ): + args = SimpleNamespace(public=True, confirm_redistribution_rights=True, + repo_id="unit-fixture/gallery", create=False, make_public=False) + if fault is None: + self.assertEqual(assets.command_upload_provisional(args), 0) + self.assertEqual(len(calls), 1) + with self.assertRaises(assets.AssetPipelineError): + assets.verify_checked_manifest(require_ready=True) + else: + with self.assertRaises(assets.AssetPipelineError): + assets.command_upload_provisional(args) + hub.assert_not_called() + self.assertEqual(json.loads(checked_manifest.read_text(encoding="utf-8")), manifest) + self.assertEqual(json.loads(checked_rights.read_text(encoding="utf-8")), ledger) + def test_upload_replaces_only_managed_dataset_prefixes(self) -> None: calls: list[dict[str, object]] = [] remote_verification = Mock() From 373b72f989f562a37d820ebe07ebd04ee756d3ad Mon Sep 17 00:00:00 2001 From: Sourav Das Date: Sat, 31 Oct 2026 19:23:18 +0530 Subject: [PATCH 113/440] Pair client verification with Linux FLUX3 Auto backend --- .github/workflows/ci.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 3397e560..54353a0a 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -33,7 +33,7 @@ jobs: with: repository: sdevil7th/MoDiff # Paired native contracts and lossless Save Image history previews. - ref: c995a3334a18d1fcf9b33c08272fa89e269306cb + ref: 97501b05e5f888afb5153f52761375a583765340 path: MoDiff persist-credentials: false - name: Verify the pinned backend supports native setup @@ -88,7 +88,7 @@ jobs: with: repository: sdevil7th/MoDiff # Match the immutable backend revision in the Client quality job. - ref: c995a3334a18d1fcf9b33c08272fa89e269306cb + ref: 97501b05e5f888afb5153f52761375a583765340 path: MoDiff persist-credentials: false - name: Verify the pinned backend supports native setup From 498bb73045b8fce3410331f5b9b49eca49a1193e Mon Sep 17 00:00:00 2001 From: Sourav Das Date: Sat, 31 Oct 2026 20:21:03 +0530 Subject: [PATCH 114/440] Align the documented and tested Linux Auto backend pin --- .github/workflows/ci.yml | 4 ++-- README.md | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 54353a0a..0d81f411 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -33,7 +33,7 @@ jobs: with: repository: sdevil7th/MoDiff # Paired native contracts and lossless Save Image history previews. - ref: 97501b05e5f888afb5153f52761375a583765340 + ref: 2bd56fca4b712bfde22c0f2012b5bcc597efb2f1 path: MoDiff persist-credentials: false - name: Verify the pinned backend supports native setup @@ -88,7 +88,7 @@ jobs: with: repository: sdevil7th/MoDiff # Match the immutable backend revision in the Client quality job. - ref: 97501b05e5f888afb5153f52761375a583765340 + ref: 2bd56fca4b712bfde22c0f2012b5bcc597efb2f1 path: MoDiff persist-credentials: false - name: Verify the pinned backend supports native setup diff --git a/README.md b/README.md index b699a0a0..35dc1c55 100644 --- a/README.md +++ b/README.md @@ -31,7 +31,7 @@ application source pair is: | MoDiff | `fe84ed1ad6eeb77d904742780ec511fce441e4e4` | | MoDiff-client | `109da623e65747ae09e18cf699cf12f1485e7644` | -CI backend contract: `c995a3334a18d1fcf9b33c08272fa89e269306cb`. +CI backend contract: `2bd56fca4b712bfde22c0f2012b5bcc597efb2f1`. Both CI jobs use this exact immutable backend pin. It can include documentation descendants of the reviewed application source above. From 69370265f4291ffe4757277401df07ef9ea9198a Mon Sep 17 00:00:00 2001 From: Sourav Das Date: Sat, 31 Oct 2026 21:51:49 +0530 Subject: [PATCH 115/440] Publish approved bounded FLUX3 Gallery examples --- config/template-asset-rights.v1.json | 863 +++++++++++++++++- config/template-assets.v1.json | 328 ++++++- docs/image-template-workflows.md | 78 +- public/template-gallery/manifest.json | 322 ++++++- .../flux3-public-template-planning.test.mjs | 36 +- ...e-full-native-template-candidates.test.mjs | 7 +- scripts/modiff-template.test.mjs | 58 +- scripts/operation-authoring.test.mjs | 9 +- scripts/template-gallery-harness.test.mjs | 4 +- scripts/template-operation-workflows.test.mjs | 2 +- scripts/template-qualification.test.mjs | 6 +- scripts/template-quality.test.mjs | 54 ++ src/studio/templateAssetSource.json | 9 +- src/studio/templateQuality.ts | 79 +- src/studio/templates.ts | 259 +++--- src/studio/types.ts | 2 +- tests/e2e/studio-mocked/studio-mocked.spec.ts | 6 +- 17 files changed, 1897 insertions(+), 225 deletions(-) diff --git a/config/template-asset-rights.v1.json b/config/template-asset-rights.v1.json index 2e0a59bc..4413c9af 100644 --- a/config/template-asset-rights.v1.json +++ b/config/template-asset-rights.v1.json @@ -1,6 +1,6 @@ { "schemaVersion": 1, - "assetSetId": "sha256:canonical-json:b859b8cb1720f8fcca245726686e2d3e4c2a93e74a9be3d9d90567d93c277700", + "assetSetId": "sha256:canonical-json:86c0298bbdb02531cdb3f031d391493bac818b0dd71c103abb1a540da21925f6", "records": [ { "path": "template-gallery/ace_step_audio_continuation.wav", @@ -496,6 +496,260 @@ "reviewClass": "standard-human-attestation", "provenanceTemplateId": "flux2_klein_text_to_image" }, + { + "path": "template-gallery/flux3_klein_base_fp8r512_lora_style.webp", + "sha256": "sha256:bytes:9f5bc117a70a66bfae603ab5add47f69bd73349b5268f2c7307462232ef2d5c6", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "sourav-das, subject to the recorded source and model terms", + "creationMethod": "AI-generated fixed-input Gallery example from the retained MoDiff task and pinned model/adapter recipe", + "sourceUrl": "https://huggingface.co/black-forest-labs/flux-3-image-klein-base/tree/1469d27cfb9bb1bd81d3a93f5a023b39dbf136e4", + "sourceRevision": "black-forest-labs/flux-3-image-klein-base@1469d27cfb9bb1bd81d3a93f5a023b39dbf136e4 | pjecuacion/flux3-klein-mnt-oil-monet-lora@0d94b6a4601892499defd8c5d89c24f78e78043b", + "sourceLicense": "Model use: FLUX Kommunity License v1.0. Generated outputs retain the publisher-selected asset license; no model distribution is included.", + "modelTerms": [ + "black-forest-labs/flux-3-image-klein-base@1469d27cfb9bb1bd81d3a93f5a023b39dbf136e4: FLUX Kommunity License v1.0; maintainer selected non-commercial model use only. No commercial eligibility attestation or model weight redistribution.", + "pjecuacion/flux3-klein-mnt-oil-monet-lora@0d94b6a4601892499defd8c5d89c24f78e78043b: FLUX Kommunity License v1.0; maintainer selected non-commercial model use only. No commercial eligibility attestation or model weight redistribution.", + "Adapter training-rights provenance is the source author’s statement, not independent verification." + ], + "aiGenerated": true, + "humanLikenessConsent": "synthetic", + "marks": [], + "requiredAttribution": ["sourav-das"], + "assetLicense": "CC-BY-4.0", + "reviewedBy": "sourav-das", + "reviewedAt": "2026-10-31", + "reviewClass": "exact-file-maintainer-approval-in-originating-chat", + "approvalPacketSHA256": "a55745498d9c767d581d947b90b12ad4308e5f95b870224ef67107d5894f2499", + "modelUseBasis": "Non-commercial use only", + "provenanceTemplateId": "flux3_klein_base_fp8r512_lora_style" + }, + { + "path": "template-gallery/flux3_klein_base_fp8r512_multi_reference_edit.png", + "sha256": "sha256:bytes:4508e12353cf287912629f28a94854b117902c16f7386512a5f09a00f13478d1", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "sourav-das, subject to the recorded source and model terms", + "creationMethod": "AI-generated fixed-input Gallery example from the retained MoDiff task and pinned model/adapter recipe", + "sourceUrl": "https://huggingface.co/black-forest-labs/flux-3-image-klein-base/tree/1469d27cfb9bb1bd81d3a93f5a023b39dbf136e4", + "sourceRevision": "black-forest-labs/flux-3-image-klein-base@1469d27cfb9bb1bd81d3a93f5a023b39dbf136e4", + "sourceLicense": "Model use: FLUX Kommunity License v1.0. Generated outputs retain the publisher-selected asset license; no model distribution is included.", + "modelTerms": [ + "black-forest-labs/flux-3-image-klein-base@1469d27cfb9bb1bd81d3a93f5a023b39dbf136e4: FLUX Kommunity License v1.0; maintainer selected non-commercial model use only. No commercial eligibility attestation or model weight redistribution." + ], + "aiGenerated": true, + "humanLikenessConsent": "synthetic", + "marks": [], + "requiredAttribution": ["sourav-das"], + "assetLicense": "CC-BY-4.0", + "reviewedBy": "sourav-das", + "reviewedAt": "2026-10-31", + "reviewClass": "exact-file-maintainer-approval-in-originating-chat", + "approvalPacketSHA256": "a55745498d9c767d581d947b90b12ad4308e5f95b870224ef67107d5894f2499", + "modelUseBasis": "Non-commercial use only", + "provenanceTemplateId": "flux3_klein_base_fp8r512_multi_reference_edit" + }, + { + "path": "template-gallery/flux3_klein_base_fp8r512_raw_coordinate_prompt.webp", + "sha256": "sha256:bytes:77da62eeb4da139921de0d654816eca643fee85dee2f6c16cbdb23aa3b1633f2", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "sourav-das, subject to the recorded source and model terms", + "creationMethod": "AI-generated fixed-input Gallery example from the retained MoDiff task and pinned model/adapter recipe", + "sourceUrl": "https://huggingface.co/black-forest-labs/flux-3-image-klein-base/tree/1469d27cfb9bb1bd81d3a93f5a023b39dbf136e4", + "sourceRevision": "black-forest-labs/flux-3-image-klein-base@1469d27cfb9bb1bd81d3a93f5a023b39dbf136e4", + "sourceLicense": "Model use: FLUX Kommunity License v1.0. Generated outputs retain the publisher-selected asset license; no model distribution is included.", + "modelTerms": [ + "black-forest-labs/flux-3-image-klein-base@1469d27cfb9bb1bd81d3a93f5a023b39dbf136e4: FLUX Kommunity License v1.0; maintainer selected non-commercial model use only. No commercial eligibility attestation or model weight redistribution." + ], + "aiGenerated": true, + "humanLikenessConsent": "synthetic", + "marks": [], + "requiredAttribution": ["sourav-das"], + "assetLicense": "CC-BY-4.0", + "reviewedBy": "sourav-das", + "reviewedAt": "2026-10-31", + "reviewClass": "exact-file-maintainer-approval-in-originating-chat", + "approvalPacketSHA256": "a55745498d9c767d581d947b90b12ad4308e5f95b870224ef67107d5894f2499", + "modelUseBasis": "Non-commercial use only", + "provenanceTemplateId": "flux3_klein_base_fp8r512_raw_coordinate_prompt" + }, + { + "path": "template-gallery/flux3_klein_base_fp8r512_single_reference_edit.webp", + "sha256": "sha256:bytes:12abeba15e8b99c5943daa322e0be94947350e0a2598b893a6419cf7cc21d7ef", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "sourav-das, subject to the recorded source and model terms", + "creationMethod": "AI-generated fixed-input Gallery example from the retained MoDiff task and pinned model/adapter recipe", + "sourceUrl": "https://huggingface.co/black-forest-labs/flux-3-image-klein-base/tree/1469d27cfb9bb1bd81d3a93f5a023b39dbf136e4", + "sourceRevision": "black-forest-labs/flux-3-image-klein-base@1469d27cfb9bb1bd81d3a93f5a023b39dbf136e4", + "sourceLicense": "Model use: FLUX Kommunity License v1.0. Generated outputs retain the publisher-selected asset license; no model distribution is included.", + "modelTerms": [ + "black-forest-labs/flux-3-image-klein-base@1469d27cfb9bb1bd81d3a93f5a023b39dbf136e4: FLUX Kommunity License v1.0; maintainer selected non-commercial model use only. No commercial eligibility attestation or model weight redistribution." + ], + "aiGenerated": true, + "humanLikenessConsent": "synthetic", + "marks": [], + "requiredAttribution": ["sourav-das"], + "assetLicense": "CC-BY-4.0", + "reviewedBy": "sourav-das", + "reviewedAt": "2026-10-31", + "reviewClass": "exact-file-maintainer-approval-in-originating-chat", + "approvalPacketSHA256": "a55745498d9c767d581d947b90b12ad4308e5f95b870224ef67107d5894f2499", + "modelUseBasis": "Non-commercial use only", + "provenanceTemplateId": "flux3_klein_base_fp8r512_single_reference_edit" + }, + { + "path": "template-gallery/flux3_klein_base_fp8r512_text_to_image.webp", + "sha256": "sha256:bytes:7922c52fa07fee6cc38f0da95b22028996637def32a99aeacc414ce8a39e1fe7", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "sourav-das, subject to the recorded source and model terms", + "creationMethod": "AI-generated fixed-input Gallery example from the retained MoDiff task and pinned model/adapter recipe", + "sourceUrl": "https://huggingface.co/black-forest-labs/flux-3-image-klein-base/tree/1469d27cfb9bb1bd81d3a93f5a023b39dbf136e4", + "sourceRevision": "black-forest-labs/flux-3-image-klein-base@1469d27cfb9bb1bd81d3a93f5a023b39dbf136e4", + "sourceLicense": "Model use: FLUX Kommunity License v1.0. Generated outputs retain the publisher-selected asset license; no model distribution is included.", + "modelTerms": [ + "black-forest-labs/flux-3-image-klein-base@1469d27cfb9bb1bd81d3a93f5a023b39dbf136e4: FLUX Kommunity License v1.0; maintainer selected non-commercial model use only. No commercial eligibility attestation or model weight redistribution." + ], + "aiGenerated": true, + "humanLikenessConsent": "synthetic", + "marks": [], + "requiredAttribution": ["sourav-das"], + "assetLicense": "CC-BY-4.0", + "reviewedBy": "sourav-das", + "reviewedAt": "2026-10-31", + "reviewClass": "exact-file-maintainer-approval-in-originating-chat", + "approvalPacketSHA256": "a55745498d9c767d581d947b90b12ad4308e5f95b870224ef67107d5894f2499", + "modelUseBasis": "Non-commercial use only", + "provenanceTemplateId": "flux3_klein_base_fp8r512_text_to_image" + }, + { + "path": "template-gallery/flux3_klein_fp8r512_lora_style.webp", + "sha256": "sha256:bytes:59ddede1547b6e0e6958b0327a77c8e253cdd654e61aada584e1619aba7b8c54", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "sourav-das, subject to the recorded source and model terms", + "creationMethod": "AI-generated fixed-input Gallery example from the retained MoDiff task and pinned model/adapter recipe", + "sourceUrl": "https://huggingface.co/black-forest-labs/flux-3-image-klein/tree/8454017f9ebaada30c998fccd9f67a80c7580f68", + "sourceRevision": "black-forest-labs/flux-3-image-klein@8454017f9ebaada30c998fccd9f67a80c7580f68 | kocabiyik/nsc7-style-lora@9b998d3bdc3b4aeb2113ab4e8cbd9fe2ebfa1cae", + "sourceLicense": "Model use: FLUX Kommunity License v1.0. Generated outputs retain the publisher-selected asset license; no model distribution is included.", + "modelTerms": [ + "black-forest-labs/flux-3-image-klein@8454017f9ebaada30c998fccd9f67a80c7580f68: FLUX Kommunity License v1.0; maintainer selected non-commercial model use only. No commercial eligibility attestation or model weight redistribution.", + "kocabiyik/nsc7-style-lora@9b998d3bdc3b4aeb2113ab4e8cbd9fe2ebfa1cae: FLUX Kommunity License v1.0; maintainer selected non-commercial model use only. No commercial eligibility attestation or model weight redistribution.", + "Adapter training-rights provenance is the source author’s statement, not independent verification." + ], + "aiGenerated": true, + "humanLikenessConsent": "synthetic", + "marks": [], + "requiredAttribution": ["sourav-das"], + "assetLicense": "CC-BY-4.0", + "reviewedBy": "sourav-das", + "reviewedAt": "2026-10-31", + "reviewClass": "exact-file-maintainer-approval-in-originating-chat", + "approvalPacketSHA256": "a55745498d9c767d581d947b90b12ad4308e5f95b870224ef67107d5894f2499", + "modelUseBasis": "Non-commercial use only", + "provenanceTemplateId": "flux3_klein_fp8r512_lora_style" + }, + { + "path": "template-gallery/flux3_klein_fp8r512_multi_reference_edit.png", + "sha256": "sha256:bytes:12f2f2ae8ffcc053d61fb3c409d964f5f0d03b2668d73573c3795e3b5fbd620f", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "sourav-das, subject to the recorded source and model terms", + "creationMethod": "AI-generated fixed-input Gallery example from the retained MoDiff task and pinned model/adapter recipe", + "sourceUrl": "https://huggingface.co/black-forest-labs/flux-3-image-klein/tree/8454017f9ebaada30c998fccd9f67a80c7580f68", + "sourceRevision": "black-forest-labs/flux-3-image-klein@8454017f9ebaada30c998fccd9f67a80c7580f68", + "sourceLicense": "Model use: FLUX Kommunity License v1.0. Generated outputs retain the publisher-selected asset license; no model distribution is included.", + "modelTerms": [ + "black-forest-labs/flux-3-image-klein@8454017f9ebaada30c998fccd9f67a80c7580f68: FLUX Kommunity License v1.0; maintainer selected non-commercial model use only. No commercial eligibility attestation or model weight redistribution." + ], + "aiGenerated": true, + "humanLikenessConsent": "synthetic", + "marks": [], + "requiredAttribution": ["sourav-das"], + "assetLicense": "CC-BY-4.0", + "reviewedBy": "sourav-das", + "reviewedAt": "2026-10-31", + "reviewClass": "exact-file-maintainer-approval-in-originating-chat", + "approvalPacketSHA256": "a55745498d9c767d581d947b90b12ad4308e5f95b870224ef67107d5894f2499", + "modelUseBasis": "Non-commercial use only", + "provenanceTemplateId": "flux3_klein_fp8r512_multi_reference_edit" + }, + { + "path": "template-gallery/flux3_klein_fp8r512_raw_coordinate_prompt.webp", + "sha256": "sha256:bytes:8544a653656be8cd47d87d7550558fa8487d1b72de56ee21adb27313dc34ba8f", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "sourav-das, subject to the recorded source and model terms", + "creationMethod": "AI-generated fixed-input Gallery example from the retained MoDiff task and pinned model/adapter recipe", + "sourceUrl": "https://huggingface.co/black-forest-labs/flux-3-image-klein/tree/8454017f9ebaada30c998fccd9f67a80c7580f68", + "sourceRevision": "black-forest-labs/flux-3-image-klein@8454017f9ebaada30c998fccd9f67a80c7580f68", + "sourceLicense": "Model use: FLUX Kommunity License v1.0. Generated outputs retain the publisher-selected asset license; no model distribution is included.", + "modelTerms": [ + "black-forest-labs/flux-3-image-klein@8454017f9ebaada30c998fccd9f67a80c7580f68: FLUX Kommunity License v1.0; maintainer selected non-commercial model use only. No commercial eligibility attestation or model weight redistribution." + ], + "aiGenerated": true, + "humanLikenessConsent": "synthetic", + "marks": [], + "requiredAttribution": ["sourav-das"], + "assetLicense": "CC-BY-4.0", + "reviewedBy": "sourav-das", + "reviewedAt": "2026-10-31", + "reviewClass": "exact-file-maintainer-approval-in-originating-chat", + "approvalPacketSHA256": "a55745498d9c767d581d947b90b12ad4308e5f95b870224ef67107d5894f2499", + "modelUseBasis": "Non-commercial use only", + "provenanceTemplateId": "flux3_klein_fp8r512_raw_coordinate_prompt" + }, + { + "path": "template-gallery/flux3_klein_fp8r512_single_reference_edit.webp", + "sha256": "sha256:bytes:2694ee895e5f91c7c68d5b7966e872b08546d6792a3038707260d595eb48b6e6", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "sourav-das, subject to the recorded source and model terms", + "creationMethod": "AI-generated fixed-input Gallery example from the retained MoDiff task and pinned model/adapter recipe", + "sourceUrl": "https://huggingface.co/black-forest-labs/flux-3-image-klein/tree/8454017f9ebaada30c998fccd9f67a80c7580f68", + "sourceRevision": "black-forest-labs/flux-3-image-klein@8454017f9ebaada30c998fccd9f67a80c7580f68", + "sourceLicense": "Model use: FLUX Kommunity License v1.0. Generated outputs retain the publisher-selected asset license; no model distribution is included.", + "modelTerms": [ + "black-forest-labs/flux-3-image-klein@8454017f9ebaada30c998fccd9f67a80c7580f68: FLUX Kommunity License v1.0; maintainer selected non-commercial model use only. No commercial eligibility attestation or model weight redistribution." + ], + "aiGenerated": true, + "humanLikenessConsent": "synthetic", + "marks": [], + "requiredAttribution": ["sourav-das"], + "assetLicense": "CC-BY-4.0", + "reviewedBy": "sourav-das", + "reviewedAt": "2026-10-31", + "reviewClass": "exact-file-maintainer-approval-in-originating-chat", + "approvalPacketSHA256": "a55745498d9c767d581d947b90b12ad4308e5f95b870224ef67107d5894f2499", + "modelUseBasis": "Non-commercial use only", + "provenanceTemplateId": "flux3_klein_fp8r512_single_reference_edit" + }, + { + "path": "template-gallery/flux3_klein_fp8r512_text_to_image.webp", + "sha256": "sha256:bytes:88783643cab795b94b5bc01e6e28d459ff685278d95fb6bf54461094a6400c90", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "sourav-das, subject to the recorded source and model terms", + "creationMethod": "AI-generated fixed-input Gallery example from the retained MoDiff task and pinned model/adapter recipe", + "sourceUrl": "https://huggingface.co/black-forest-labs/flux-3-image-klein/tree/8454017f9ebaada30c998fccd9f67a80c7580f68", + "sourceRevision": "black-forest-labs/flux-3-image-klein@8454017f9ebaada30c998fccd9f67a80c7580f68", + "sourceLicense": "Model use: FLUX Kommunity License v1.0. Generated outputs retain the publisher-selected asset license; no model distribution is included.", + "modelTerms": [ + "black-forest-labs/flux-3-image-klein@8454017f9ebaada30c998fccd9f67a80c7580f68: FLUX Kommunity License v1.0; maintainer selected non-commercial model use only. No commercial eligibility attestation or model weight redistribution." + ], + "aiGenerated": true, + "humanLikenessConsent": "synthetic", + "marks": [], + "requiredAttribution": ["sourav-das"], + "assetLicense": "CC-BY-4.0", + "reviewedBy": "sourav-das", + "reviewedAt": "2026-10-31", + "reviewClass": "exact-file-maintainer-approval-in-originating-chat", + "approvalPacketSHA256": "a55745498d9c767d581d947b90b12ad4308e5f95b870224ef67107d5894f2499", + "modelUseBasis": "Non-commercial use only", + "provenanceTemplateId": "flux3_klein_fp8r512_text_to_image" + }, { "path": "template-gallery/flux_control_canny.webp", "sha256": "sha256:bytes:a804cb1321c87b86298ebc4697af4d52628c29615ccda38bfa38eb2c7fc566c3", @@ -1238,21 +1492,132 @@ { "path": "template-gallery/inputs/flux3-packaging-protected-photo-mask-v1.png", "sha256": "sha256:bytes:d36162153e2009e0b2f3a711825d39e67c02ba3577971a444bd92eebe81169ac", - "publishDecision": "hold", - "holdReason": "Complete and independently review the redistribution-rights record for these exact bytes.", - "creatorOrRightsholder": null, - "creationMethod": null, + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "sourav-das, subject to the recorded source and model terms", + "creationMethod": "Original deterministic rounded-rectangle protection mask", "sourceUrl": null, "sourceRevision": null, - "sourceLicense": null, + "sourceLicense": "Original authored mask", "modelTerms": [], - "aiGenerated": null, - "humanLikenessConsent": null, + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": ["sourav-das"], + "assetLicense": "CC-BY-4.0", + "reviewedBy": "sourav-das", + "reviewedAt": "2026-10-31", + "reviewClass": "exact-file-maintainer-approval-in-originating-chat", + "approvalPacketSHA256": "a55745498d9c767d581d947b90b12ad4308e5f95b870224ef67107d5894f2499", + "modelUseBasis": null + }, + { + "path": "template-gallery/inputs/flux3_klein_base_fp8r512_multi_reference_edit.before.png", + "sha256": "sha256:bytes:b748201353f02543c2a48920bb514c2741366151df45bf6c4904aeb0f32f1a67", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, subject to the recorded source and model terms", + "creationMethod": "AI-generated Gallery media or deterministic derivative", + "sourceUrl": null, + "sourceRevision": null, + "sourceLicense": "Original generation or recorded workflow input; see modelTerms", + "modelTerms": [ + "Independent Gallery media: exact generation model was not captured in checked provenance; human output-rights attestation required." + ], + "aiGenerated": true, + "humanLikenessConsent": "synthetic", "marks": [], "requiredAttribution": [], - "assetLicense": null, - "reviewedBy": null, - "reviewedAt": null + "assetLicense": "MoDiff-Gallery-Restricted-1.0", + "reviewedBy": "SOURAV DAS", + "reviewedAt": "2026-08-03", + "reviewClass": "byte-identical-copy-of-existing-human-approved-input", + "approvalInheritedFromPath": "template-gallery/inputs/qwen-carton-layout-control.png" + }, + { + "path": "template-gallery/inputs/flux3_klein_base_fp8r512_single_reference_edit.before.png", + "sha256": "sha256:bytes:d5ba3943d6c0a264860ba0cde18d87e2d9554a3f7328308f4d771e082a9e0c24", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, subject to the recorded source and model terms", + "creationMethod": "AI-generated Gallery media or deterministic derivative", + "sourceUrl": "https://huggingface.co/black-forest-labs/FLUX.2-klein-4B/tree/e7b7dc27f91deacad38e78976d1f2b499d76a294", + "sourceRevision": "black-forest-labs/FLUX.2-klein-4B@e7b7dc27f91deacad38e78976d1f2b499d76a294", + "sourceLicense": "Original generation or recorded workflow input; see modelTerms", + "modelTerms": [ + "black-forest-labs/FLUX.2-klein-4B: Apache-2.0; https://huggingface.co/black-forest-labs/FLUX.2-klein-4B/tree/e7b7dc27f91deacad38e78976d1f2b499d76a294" + ], + "aiGenerated": true, + "humanLikenessConsent": "synthetic", + "marks": [], + "requiredAttribution": [], + "assetLicense": "Apache-2.0", + "reviewedBy": "SOURAV DAS", + "reviewedAt": "2026-08-03", + "reviewClass": "byte-identical-copy-of-existing-human-approved-input", + "provenanceTemplateId": "flux2_klein_edit", + "consumingTemplateIds": [ + "flux2_klein_edit", + "flux3_klein_base_fp8r512_multi_reference_edit", + "flux3_klein_base_fp8r512_single_reference_edit", + "flux3_klein_fp8r512_multi_reference_edit", + "flux3_klein_fp8r512_single_reference_edit" + ], + "approvalInheritedFromPath": "template-gallery/inputs/flux2_klein_edit.before.png" + }, + { + "path": "template-gallery/inputs/flux3_klein_fp8r512_multi_reference_edit.before.png", + "sha256": "sha256:bytes:b748201353f02543c2a48920bb514c2741366151df45bf6c4904aeb0f32f1a67", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, subject to the recorded source and model terms", + "creationMethod": "AI-generated Gallery media or deterministic derivative", + "sourceUrl": null, + "sourceRevision": null, + "sourceLicense": "Original generation or recorded workflow input; see modelTerms", + "modelTerms": [ + "Independent Gallery media: exact generation model was not captured in checked provenance; human output-rights attestation required." + ], + "aiGenerated": true, + "humanLikenessConsent": "synthetic", + "marks": [], + "requiredAttribution": [], + "assetLicense": "MoDiff-Gallery-Restricted-1.0", + "reviewedBy": "SOURAV DAS", + "reviewedAt": "2026-08-03", + "reviewClass": "byte-identical-copy-of-existing-human-approved-input", + "approvalInheritedFromPath": "template-gallery/inputs/qwen-carton-layout-control.png" + }, + { + "path": "template-gallery/inputs/flux3_klein_fp8r512_single_reference_edit.before.png", + "sha256": "sha256:bytes:d5ba3943d6c0a264860ba0cde18d87e2d9554a3f7328308f4d771e082a9e0c24", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, subject to the recorded source and model terms", + "creationMethod": "AI-generated Gallery media or deterministic derivative", + "sourceUrl": "https://huggingface.co/black-forest-labs/FLUX.2-klein-4B/tree/e7b7dc27f91deacad38e78976d1f2b499d76a294", + "sourceRevision": "black-forest-labs/FLUX.2-klein-4B@e7b7dc27f91deacad38e78976d1f2b499d76a294", + "sourceLicense": "Original generation or recorded workflow input; see modelTerms", + "modelTerms": [ + "black-forest-labs/FLUX.2-klein-4B: Apache-2.0; https://huggingface.co/black-forest-labs/FLUX.2-klein-4B/tree/e7b7dc27f91deacad38e78976d1f2b499d76a294" + ], + "aiGenerated": true, + "humanLikenessConsent": "synthetic", + "marks": [], + "requiredAttribution": [], + "assetLicense": "Apache-2.0", + "reviewedBy": "SOURAV DAS", + "reviewedAt": "2026-08-03", + "reviewClass": "byte-identical-copy-of-existing-human-approved-input", + "provenanceTemplateId": "flux2_klein_edit", + "consumingTemplateIds": [ + "flux2_klein_edit", + "flux3_klein_base_fp8r512_multi_reference_edit", + "flux3_klein_base_fp8r512_single_reference_edit", + "flux3_klein_fp8r512_multi_reference_edit", + "flux3_klein_fp8r512_single_reference_edit" + ], + "approvalInheritedFromPath": "template-gallery/inputs/flux2_klein_edit.before.png" }, { "path": "template-gallery/inputs/flux_control_canny.before.png", @@ -2672,23 +3037,25 @@ }, { "path": "template-gallery/manifest.json", - "sha256": "sha256:bytes:bcc48de0f85d8a815364b3abfbaf2379b88686ba7e34b4c5d0a568efdf5dbbc4", + "sha256": "sha256:bytes:b6e383c698b7a07c8a37a95629ebace6d0f39d608c006bab8df446920f145cc0", "publishDecision": "approved", "holdReason": null, - "creatorOrRightsholder": "MoDiff project maintainers", - "creationMethod": "MoDiff-authored technical metadata or review record", + "creatorOrRightsholder": "sourav-das / MoDiff project maintainers", + "creationMethod": "MoDiff-authored technical provenance or quality metadata derived from the explicitly approved source-media packet", "sourceUrl": null, "sourceRevision": null, - "sourceLicense": "Apache-2.0", + "sourceLicense": "Apache-2.0 project-authored metadata; image/model terms remain in their own per-file records", "modelTerms": [], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [], "assetLicense": "Apache-2.0", - "reviewedBy": "SOURAV DAS", - "reviewedAt": "2026-08-03", - "reviewClass": "standard-human-attestation" + "reviewedBy": "Codex (technical metadata); sourav-das (underlying exact-file rights and publication approval)", + "reviewedAt": "2026-10-31", + "reviewClass": "technical-derivation-of-human-approved-media", + "humanApprovalPacketSHA256": "a55745498d9c767d581d947b90b12ad4308e5f95b870224ef67107d5894f2499", + "humanApprovalScope": "Exact source images, authored mask and SHA-bound review packet. Numeric quality scores are the AI assessment, not human-supplied scores. The metadata is project-authored; it introduces no new third-party media rights." }, { "path": "template-gallery/qwen_character_angles.webp", @@ -3647,6 +4014,466 @@ "reviewClass": "standard-human-attestation", "provenanceTemplateId": "flux2_klein_text_to_image" }, + { + "path": "template-gallery/reviews/flux3_klein_base_fp8r512_lora_style.quality-review.json", + "sha256": "sha256:bytes:6ecaa3d253c60a36cfa0129575fda00de91b7259d6d5d7aaf7a1eafc1c1539fb", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "sourav-das / MoDiff project maintainers", + "creationMethod": "MoDiff-authored technical provenance or quality metadata derived from the explicitly approved source-media packet", + "sourceUrl": null, + "sourceRevision": null, + "sourceLicense": "Apache-2.0 project-authored metadata; image/model terms remain in their own per-file records", + "modelTerms": [ + "AI-assisted technical quality assessment authored in Codex for this project; no model weights or additional generated media are included." + ], + "aiGenerated": true, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [], + "assetLicense": "Apache-2.0", + "reviewedBy": "Codex (technical metadata); sourav-das (underlying exact-file rights and publication approval)", + "reviewedAt": "2026-10-31", + "reviewClass": "technical-derivation-of-human-approved-media", + "humanApprovalPacketSHA256": "a55745498d9c767d581d947b90b12ad4308e5f95b870224ef67107d5894f2499", + "humanApprovalScope": "Exact source images, authored mask and SHA-bound review packet. Numeric quality scores are the AI assessment, not human-supplied scores. The metadata is project-authored; it introduces no new third-party media rights." + }, + { + "path": "template-gallery/reviews/flux3_klein_base_fp8r512_lora_style.reviewed-provenance.json", + "sha256": "sha256:bytes:bf2a88219068ec3c78bf3ab9f847f2c80d7e78035d574dbccc8d48c9c979bdc6", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "sourav-das / MoDiff project maintainers", + "creationMethod": "MoDiff-authored technical provenance or quality metadata derived from the explicitly approved source-media packet", + "sourceUrl": null, + "sourceRevision": null, + "sourceLicense": "Apache-2.0 project-authored metadata; image/model terms remain in their own per-file records", + "modelTerms": [], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [], + "assetLicense": "Apache-2.0", + "reviewedBy": "Codex (technical metadata); sourav-das (underlying exact-file rights and publication approval)", + "reviewedAt": "2026-10-31", + "reviewClass": "technical-derivation-of-human-approved-media", + "humanApprovalPacketSHA256": "a55745498d9c767d581d947b90b12ad4308e5f95b870224ef67107d5894f2499", + "humanApprovalScope": "Exact source images, authored mask and SHA-bound review packet. Numeric quality scores are the AI assessment, not human-supplied scores. The metadata is project-authored; it introduces no new third-party media rights." + }, + { + "path": "template-gallery/reviews/flux3_klein_base_fp8r512_multi_reference_edit.quality-review.json", + "sha256": "sha256:bytes:0666e990cc08d4014f2f913674e9637a86e4f62fee681de1287c949a6a7dcb5a", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "sourav-das / MoDiff project maintainers", + "creationMethod": "MoDiff-authored technical provenance or quality metadata derived from the explicitly approved source-media packet", + "sourceUrl": null, + "sourceRevision": null, + "sourceLicense": "Apache-2.0 project-authored metadata; image/model terms remain in their own per-file records", + "modelTerms": [ + "AI-assisted technical quality assessment authored in Codex for this project; no model weights or additional generated media are included." + ], + "aiGenerated": true, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [], + "assetLicense": "Apache-2.0", + "reviewedBy": "Codex (technical metadata); sourav-das (underlying exact-file rights and publication approval)", + "reviewedAt": "2026-10-31", + "reviewClass": "technical-derivation-of-human-approved-media", + "humanApprovalPacketSHA256": "a55745498d9c767d581d947b90b12ad4308e5f95b870224ef67107d5894f2499", + "humanApprovalScope": "Exact source images, authored mask and SHA-bound review packet. Numeric quality scores are the AI assessment, not human-supplied scores. The metadata is project-authored; it introduces no new third-party media rights." + }, + { + "path": "template-gallery/reviews/flux3_klein_base_fp8r512_multi_reference_edit.reviewed-provenance.json", + "sha256": "sha256:bytes:df83c15df43ca7b2739db3032671014c3dea0cb0bd1cd4acb15df5dcccf443bd", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "sourav-das / MoDiff project maintainers", + "creationMethod": "MoDiff-authored technical provenance or quality metadata derived from the explicitly approved source-media packet", + "sourceUrl": null, + "sourceRevision": null, + "sourceLicense": "Apache-2.0 project-authored metadata; image/model terms remain in their own per-file records", + "modelTerms": [], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [], + "assetLicense": "Apache-2.0", + "reviewedBy": "Codex (technical metadata); sourav-das (underlying exact-file rights and publication approval)", + "reviewedAt": "2026-10-31", + "reviewClass": "technical-derivation-of-human-approved-media", + "humanApprovalPacketSHA256": "a55745498d9c767d581d947b90b12ad4308e5f95b870224ef67107d5894f2499", + "humanApprovalScope": "Exact source images, authored mask and SHA-bound review packet. Numeric quality scores are the AI assessment, not human-supplied scores. The metadata is project-authored; it introduces no new third-party media rights." + }, + { + "path": "template-gallery/reviews/flux3_klein_base_fp8r512_raw_coordinate_prompt.quality-review.json", + "sha256": "sha256:bytes:5a40f1c4b7c13f8678de7fdd41bf090c39071fc884c2e4dfed6c1f03e0ecb09c", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "sourav-das / MoDiff project maintainers", + "creationMethod": "MoDiff-authored technical provenance or quality metadata derived from the explicitly approved source-media packet", + "sourceUrl": null, + "sourceRevision": null, + "sourceLicense": "Apache-2.0 project-authored metadata; image/model terms remain in their own per-file records", + "modelTerms": [ + "AI-assisted technical quality assessment authored in Codex for this project; no model weights or additional generated media are included." + ], + "aiGenerated": true, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [], + "assetLicense": "Apache-2.0", + "reviewedBy": "Codex (technical metadata); sourav-das (underlying exact-file rights and publication approval)", + "reviewedAt": "2026-10-31", + "reviewClass": "technical-derivation-of-human-approved-media", + "humanApprovalPacketSHA256": "a55745498d9c767d581d947b90b12ad4308e5f95b870224ef67107d5894f2499", + "humanApprovalScope": "Exact source images, authored mask and SHA-bound review packet. Numeric quality scores are the AI assessment, not human-supplied scores. The metadata is project-authored; it introduces no new third-party media rights." + }, + { + "path": "template-gallery/reviews/flux3_klein_base_fp8r512_raw_coordinate_prompt.reviewed-provenance.json", + "sha256": "sha256:bytes:e5684e876125a01c342b522b2a0d8350ae978f6543ccdfcaf56ec2011ccebb5f", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "sourav-das / MoDiff project maintainers", + "creationMethod": "MoDiff-authored technical provenance or quality metadata derived from the explicitly approved source-media packet", + "sourceUrl": null, + "sourceRevision": null, + "sourceLicense": "Apache-2.0 project-authored metadata; image/model terms remain in their own per-file records", + "modelTerms": [], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [], + "assetLicense": "Apache-2.0", + "reviewedBy": "Codex (technical metadata); sourav-das (underlying exact-file rights and publication approval)", + "reviewedAt": "2026-10-31", + "reviewClass": "technical-derivation-of-human-approved-media", + "humanApprovalPacketSHA256": "a55745498d9c767d581d947b90b12ad4308e5f95b870224ef67107d5894f2499", + "humanApprovalScope": "Exact source images, authored mask and SHA-bound review packet. Numeric quality scores are the AI assessment, not human-supplied scores. The metadata is project-authored; it introduces no new third-party media rights." + }, + { + "path": "template-gallery/reviews/flux3_klein_base_fp8r512_single_reference_edit.quality-review.json", + "sha256": "sha256:bytes:f81ca736173a93bb214088dda9879efd933675799244f363506770202ffc80e0", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "sourav-das / MoDiff project maintainers", + "creationMethod": "MoDiff-authored technical provenance or quality metadata derived from the explicitly approved source-media packet", + "sourceUrl": null, + "sourceRevision": null, + "sourceLicense": "Apache-2.0 project-authored metadata; image/model terms remain in their own per-file records", + "modelTerms": [ + "AI-assisted technical quality assessment authored in Codex for this project; no model weights or additional generated media are included." + ], + "aiGenerated": true, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [], + "assetLicense": "Apache-2.0", + "reviewedBy": "Codex (technical metadata); sourav-das (underlying exact-file rights and publication approval)", + "reviewedAt": "2026-10-31", + "reviewClass": "technical-derivation-of-human-approved-media", + "humanApprovalPacketSHA256": "a55745498d9c767d581d947b90b12ad4308e5f95b870224ef67107d5894f2499", + "humanApprovalScope": "Exact source images, authored mask and SHA-bound review packet. Numeric quality scores are the AI assessment, not human-supplied scores. The metadata is project-authored; it introduces no new third-party media rights." + }, + { + "path": "template-gallery/reviews/flux3_klein_base_fp8r512_single_reference_edit.reviewed-provenance.json", + "sha256": "sha256:bytes:145688ff7654e0f2b058caf1e3cdc7f4621cd160bc57967529fbfc6deba3e55f", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "sourav-das / MoDiff project maintainers", + "creationMethod": "MoDiff-authored technical provenance or quality metadata derived from the explicitly approved source-media packet", + "sourceUrl": null, + "sourceRevision": null, + "sourceLicense": "Apache-2.0 project-authored metadata; image/model terms remain in their own per-file records", + "modelTerms": [], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [], + "assetLicense": "Apache-2.0", + "reviewedBy": "Codex (technical metadata); sourav-das (underlying exact-file rights and publication approval)", + "reviewedAt": "2026-10-31", + "reviewClass": "technical-derivation-of-human-approved-media", + "humanApprovalPacketSHA256": "a55745498d9c767d581d947b90b12ad4308e5f95b870224ef67107d5894f2499", + "humanApprovalScope": "Exact source images, authored mask and SHA-bound review packet. Numeric quality scores are the AI assessment, not human-supplied scores. The metadata is project-authored; it introduces no new third-party media rights." + }, + { + "path": "template-gallery/reviews/flux3_klein_base_fp8r512_text_to_image.quality-review.json", + "sha256": "sha256:bytes:e4db5a6f68664c24496139808737c35843ad013a84ed8c647cb7bda822b3ab55", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "sourav-das / MoDiff project maintainers", + "creationMethod": "MoDiff-authored technical provenance or quality metadata derived from the explicitly approved source-media packet", + "sourceUrl": null, + "sourceRevision": null, + "sourceLicense": "Apache-2.0 project-authored metadata; image/model terms remain in their own per-file records", + "modelTerms": [ + "AI-assisted technical quality assessment authored in Codex for this project; no model weights or additional generated media are included." + ], + "aiGenerated": true, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [], + "assetLicense": "Apache-2.0", + "reviewedBy": "Codex (technical metadata); sourav-das (underlying exact-file rights and publication approval)", + "reviewedAt": "2026-10-31", + "reviewClass": "technical-derivation-of-human-approved-media", + "humanApprovalPacketSHA256": "a55745498d9c767d581d947b90b12ad4308e5f95b870224ef67107d5894f2499", + "humanApprovalScope": "Exact source images, authored mask and SHA-bound review packet. Numeric quality scores are the AI assessment, not human-supplied scores. The metadata is project-authored; it introduces no new third-party media rights." + }, + { + "path": "template-gallery/reviews/flux3_klein_base_fp8r512_text_to_image.reviewed-provenance.json", + "sha256": "sha256:bytes:2db502f5981665759b16abab179f12ae0093312c5bc99fcc33bb346bc6d3ff05", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "sourav-das / MoDiff project maintainers", + "creationMethod": "MoDiff-authored technical provenance or quality metadata derived from the explicitly approved source-media packet", + "sourceUrl": null, + "sourceRevision": null, + "sourceLicense": "Apache-2.0 project-authored metadata; image/model terms remain in their own per-file records", + "modelTerms": [], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [], + "assetLicense": "Apache-2.0", + "reviewedBy": "Codex (technical metadata); sourav-das (underlying exact-file rights and publication approval)", + "reviewedAt": "2026-10-31", + "reviewClass": "technical-derivation-of-human-approved-media", + "humanApprovalPacketSHA256": "a55745498d9c767d581d947b90b12ad4308e5f95b870224ef67107d5894f2499", + "humanApprovalScope": "Exact source images, authored mask and SHA-bound review packet. Numeric quality scores are the AI assessment, not human-supplied scores. The metadata is project-authored; it introduces no new third-party media rights." + }, + { + "path": "template-gallery/reviews/flux3_klein_fp8r512_lora_style.quality-review.json", + "sha256": "sha256:bytes:563cf20531167d3661cecb5e6897bae7d8a1485eff49e7f16c8cd7fef6486f10", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "sourav-das / MoDiff project maintainers", + "creationMethod": "MoDiff-authored technical provenance or quality metadata derived from the explicitly approved source-media packet", + "sourceUrl": null, + "sourceRevision": null, + "sourceLicense": "Apache-2.0 project-authored metadata; image/model terms remain in their own per-file records", + "modelTerms": [ + "AI-assisted technical quality assessment authored in Codex for this project; no model weights or additional generated media are included." + ], + "aiGenerated": true, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [], + "assetLicense": "Apache-2.0", + "reviewedBy": "Codex (technical metadata); sourav-das (underlying exact-file rights and publication approval)", + "reviewedAt": "2026-10-31", + "reviewClass": "technical-derivation-of-human-approved-media", + "humanApprovalPacketSHA256": "a55745498d9c767d581d947b90b12ad4308e5f95b870224ef67107d5894f2499", + "humanApprovalScope": "Exact source images, authored mask and SHA-bound review packet. Numeric quality scores are the AI assessment, not human-supplied scores. The metadata is project-authored; it introduces no new third-party media rights." + }, + { + "path": "template-gallery/reviews/flux3_klein_fp8r512_lora_style.reviewed-provenance.json", + "sha256": "sha256:bytes:945f99e2d8c924809a4e9d6f91056ec417715b7db5e06b2ec0d51a016bdc219b", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "sourav-das / MoDiff project maintainers", + "creationMethod": "MoDiff-authored technical provenance or quality metadata derived from the explicitly approved source-media packet", + "sourceUrl": null, + "sourceRevision": null, + "sourceLicense": "Apache-2.0 project-authored metadata; image/model terms remain in their own per-file records", + "modelTerms": [], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [], + "assetLicense": "Apache-2.0", + "reviewedBy": "Codex (technical metadata); sourav-das (underlying exact-file rights and publication approval)", + "reviewedAt": "2026-10-31", + "reviewClass": "technical-derivation-of-human-approved-media", + "humanApprovalPacketSHA256": "a55745498d9c767d581d947b90b12ad4308e5f95b870224ef67107d5894f2499", + "humanApprovalScope": "Exact source images, authored mask and SHA-bound review packet. Numeric quality scores are the AI assessment, not human-supplied scores. The metadata is project-authored; it introduces no new third-party media rights." + }, + { + "path": "template-gallery/reviews/flux3_klein_fp8r512_multi_reference_edit.quality-review.json", + "sha256": "sha256:bytes:ba9c380fe4ccea2f731999d6aa7d116e4ebf4078c8ddb29ea88f2fee8d37dec9", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "sourav-das / MoDiff project maintainers", + "creationMethod": "MoDiff-authored technical provenance or quality metadata derived from the explicitly approved source-media packet", + "sourceUrl": null, + "sourceRevision": null, + "sourceLicense": "Apache-2.0 project-authored metadata; image/model terms remain in their own per-file records", + "modelTerms": [ + "AI-assisted technical quality assessment authored in Codex for this project; no model weights or additional generated media are included." + ], + "aiGenerated": true, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [], + "assetLicense": "Apache-2.0", + "reviewedBy": "Codex (technical metadata); sourav-das (underlying exact-file rights and publication approval)", + "reviewedAt": "2026-10-31", + "reviewClass": "technical-derivation-of-human-approved-media", + "humanApprovalPacketSHA256": "a55745498d9c767d581d947b90b12ad4308e5f95b870224ef67107d5894f2499", + "humanApprovalScope": "Exact source images, authored mask and SHA-bound review packet. Numeric quality scores are the AI assessment, not human-supplied scores. The metadata is project-authored; it introduces no new third-party media rights." + }, + { + "path": "template-gallery/reviews/flux3_klein_fp8r512_multi_reference_edit.reviewed-provenance.json", + "sha256": "sha256:bytes:d89ef493877766cc1eb753cc6bdfd9e44dd6a71f33c8969287b4e70b33544f31", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "sourav-das / MoDiff project maintainers", + "creationMethod": "MoDiff-authored technical provenance or quality metadata derived from the explicitly approved source-media packet", + "sourceUrl": null, + "sourceRevision": null, + "sourceLicense": "Apache-2.0 project-authored metadata; image/model terms remain in their own per-file records", + "modelTerms": [], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [], + "assetLicense": "Apache-2.0", + "reviewedBy": "Codex (technical metadata); sourav-das (underlying exact-file rights and publication approval)", + "reviewedAt": "2026-10-31", + "reviewClass": "technical-derivation-of-human-approved-media", + "humanApprovalPacketSHA256": "a55745498d9c767d581d947b90b12ad4308e5f95b870224ef67107d5894f2499", + "humanApprovalScope": "Exact source images, authored mask and SHA-bound review packet. Numeric quality scores are the AI assessment, not human-supplied scores. The metadata is project-authored; it introduces no new third-party media rights." + }, + { + "path": "template-gallery/reviews/flux3_klein_fp8r512_raw_coordinate_prompt.quality-review.json", + "sha256": "sha256:bytes:5b8429b8102aba95b1fc76e8ff0b3ee823a489ae1ae771c5f10b2c92f583ddf5", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "sourav-das / MoDiff project maintainers", + "creationMethod": "MoDiff-authored technical provenance or quality metadata derived from the explicitly approved source-media packet", + "sourceUrl": null, + "sourceRevision": null, + "sourceLicense": "Apache-2.0 project-authored metadata; image/model terms remain in their own per-file records", + "modelTerms": [ + "AI-assisted technical quality assessment authored in Codex for this project; no model weights or additional generated media are included." + ], + "aiGenerated": true, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [], + "assetLicense": "Apache-2.0", + "reviewedBy": "Codex (technical metadata); sourav-das (underlying exact-file rights and publication approval)", + "reviewedAt": "2026-10-31", + "reviewClass": "technical-derivation-of-human-approved-media", + "humanApprovalPacketSHA256": "a55745498d9c767d581d947b90b12ad4308e5f95b870224ef67107d5894f2499", + "humanApprovalScope": "Exact source images, authored mask and SHA-bound review packet. Numeric quality scores are the AI assessment, not human-supplied scores. The metadata is project-authored; it introduces no new third-party media rights." + }, + { + "path": "template-gallery/reviews/flux3_klein_fp8r512_raw_coordinate_prompt.reviewed-provenance.json", + "sha256": "sha256:bytes:27ec68baa354642081ee764d33632cafcfeb8477ef05ec6ce1e7ec9d2925d410", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "sourav-das / MoDiff project maintainers", + "creationMethod": "MoDiff-authored technical provenance or quality metadata derived from the explicitly approved source-media packet", + "sourceUrl": null, + "sourceRevision": null, + "sourceLicense": "Apache-2.0 project-authored metadata; image/model terms remain in their own per-file records", + "modelTerms": [], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [], + "assetLicense": "Apache-2.0", + "reviewedBy": "Codex (technical metadata); sourav-das (underlying exact-file rights and publication approval)", + "reviewedAt": "2026-10-31", + "reviewClass": "technical-derivation-of-human-approved-media", + "humanApprovalPacketSHA256": "a55745498d9c767d581d947b90b12ad4308e5f95b870224ef67107d5894f2499", + "humanApprovalScope": "Exact source images, authored mask and SHA-bound review packet. Numeric quality scores are the AI assessment, not human-supplied scores. The metadata is project-authored; it introduces no new third-party media rights." + }, + { + "path": "template-gallery/reviews/flux3_klein_fp8r512_single_reference_edit.quality-review.json", + "sha256": "sha256:bytes:d3af7d89f63eabfd9313ca12b8ec6b644ae14379265e83ecf75aab453c2df4af", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "sourav-das / MoDiff project maintainers", + "creationMethod": "MoDiff-authored technical provenance or quality metadata derived from the explicitly approved source-media packet", + "sourceUrl": null, + "sourceRevision": null, + "sourceLicense": "Apache-2.0 project-authored metadata; image/model terms remain in their own per-file records", + "modelTerms": [ + "AI-assisted technical quality assessment authored in Codex for this project; no model weights or additional generated media are included." + ], + "aiGenerated": true, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [], + "assetLicense": "Apache-2.0", + "reviewedBy": "Codex (technical metadata); sourav-das (underlying exact-file rights and publication approval)", + "reviewedAt": "2026-10-31", + "reviewClass": "technical-derivation-of-human-approved-media", + "humanApprovalPacketSHA256": "a55745498d9c767d581d947b90b12ad4308e5f95b870224ef67107d5894f2499", + "humanApprovalScope": "Exact source images, authored mask and SHA-bound review packet. Numeric quality scores are the AI assessment, not human-supplied scores. The metadata is project-authored; it introduces no new third-party media rights." + }, + { + "path": "template-gallery/reviews/flux3_klein_fp8r512_single_reference_edit.reviewed-provenance.json", + "sha256": "sha256:bytes:bf0f06495f4d9793ebf0f8bc8c4467e6aead1b935bbb5e319b59b92dac3e1b78", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "sourav-das / MoDiff project maintainers", + "creationMethod": "MoDiff-authored technical provenance or quality metadata derived from the explicitly approved source-media packet", + "sourceUrl": null, + "sourceRevision": null, + "sourceLicense": "Apache-2.0 project-authored metadata; image/model terms remain in their own per-file records", + "modelTerms": [], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [], + "assetLicense": "Apache-2.0", + "reviewedBy": "Codex (technical metadata); sourav-das (underlying exact-file rights and publication approval)", + "reviewedAt": "2026-10-31", + "reviewClass": "technical-derivation-of-human-approved-media", + "humanApprovalPacketSHA256": "a55745498d9c767d581d947b90b12ad4308e5f95b870224ef67107d5894f2499", + "humanApprovalScope": "Exact source images, authored mask and SHA-bound review packet. Numeric quality scores are the AI assessment, not human-supplied scores. The metadata is project-authored; it introduces no new third-party media rights." + }, + { + "path": "template-gallery/reviews/flux3_klein_fp8r512_text_to_image.quality-review.json", + "sha256": "sha256:bytes:9c42b9b5987079824364e4749eaee7e9846949c8a8f9142092ac716447bbf063", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "sourav-das / MoDiff project maintainers", + "creationMethod": "MoDiff-authored technical provenance or quality metadata derived from the explicitly approved source-media packet", + "sourceUrl": null, + "sourceRevision": null, + "sourceLicense": "Apache-2.0 project-authored metadata; image/model terms remain in their own per-file records", + "modelTerms": [ + "AI-assisted technical quality assessment authored in Codex for this project; no model weights or additional generated media are included." + ], + "aiGenerated": true, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [], + "assetLicense": "Apache-2.0", + "reviewedBy": "Codex (technical metadata); sourav-das (underlying exact-file rights and publication approval)", + "reviewedAt": "2026-10-31", + "reviewClass": "technical-derivation-of-human-approved-media", + "humanApprovalPacketSHA256": "a55745498d9c767d581d947b90b12ad4308e5f95b870224ef67107d5894f2499", + "humanApprovalScope": "Exact source images, authored mask and SHA-bound review packet. Numeric quality scores are the AI assessment, not human-supplied scores. The metadata is project-authored; it introduces no new third-party media rights." + }, + { + "path": "template-gallery/reviews/flux3_klein_fp8r512_text_to_image.reviewed-provenance.json", + "sha256": "sha256:bytes:bb4186fd1e2fdb16f03bbda92673cbbad1169c0c20a13987775eac45ffcca1d2", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "sourav-das / MoDiff project maintainers", + "creationMethod": "MoDiff-authored technical provenance or quality metadata derived from the explicitly approved source-media packet", + "sourceUrl": null, + "sourceRevision": null, + "sourceLicense": "Apache-2.0 project-authored metadata; image/model terms remain in their own per-file records", + "modelTerms": [], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [], + "assetLicense": "Apache-2.0", + "reviewedBy": "Codex (technical metadata); sourav-das (underlying exact-file rights and publication approval)", + "reviewedAt": "2026-10-31", + "reviewClass": "technical-derivation-of-human-approved-media", + "humanApprovalPacketSHA256": "a55745498d9c767d581d947b90b12ad4308e5f95b870224ef67107d5894f2499", + "humanApprovalScope": "Exact source images, authored mask and SHA-bound review packet. Numeric quality scores are the AI assessment, not human-supplied scores. The metadata is project-authored; it introduces no new third-party media rights." + }, { "path": "template-gallery/reviews/flux_control_canny.quality-review.json", "sha256": "sha256:bytes:cb7b1e20f93d5ea6f796c7d2cc030f76d2327ae4d50cffef3cedc6ef1356dbfd", diff --git a/config/template-assets.v1.json b/config/template-assets.v1.json index e4cb202d..62b62570 100644 --- a/config/template-assets.v1.json +++ b/config/template-assets.v1.json @@ -219,6 +219,100 @@ "width": 1024, "height": 1024 }, + { + "path": "template-gallery/flux3_klein_base_fp8r512_lora_style.webp", + "size": 152854, + "sha256": "sha256:bytes:9f5bc117a70a66bfae603ab5add47f69bd73349b5268f2c7307462232ef2d5c6", + "contentType": "application/octet-stream", + "purposes": [ + "runtime" + ] + }, + { + "path": "template-gallery/flux3_klein_base_fp8r512_multi_reference_edit.png", + "size": 80336, + "sha256": "sha256:bytes:4508e12353cf287912629f28a94854b117902c16f7386512a5f09a00f13478d1", + "contentType": "image/png", + "purposes": [ + "runtime" + ], + "width": 1024, + "height": 1024 + }, + { + "path": "template-gallery/flux3_klein_base_fp8r512_raw_coordinate_prompt.webp", + "size": 71556, + "sha256": "sha256:bytes:77da62eeb4da139921de0d654816eca643fee85dee2f6c16cbdb23aa3b1633f2", + "contentType": "application/octet-stream", + "purposes": [ + "runtime" + ] + }, + { + "path": "template-gallery/flux3_klein_base_fp8r512_single_reference_edit.webp", + "size": 44274, + "sha256": "sha256:bytes:12abeba15e8b99c5943daa322e0be94947350e0a2598b893a6419cf7cc21d7ef", + "contentType": "application/octet-stream", + "purposes": [ + "runtime" + ] + }, + { + "path": "template-gallery/flux3_klein_base_fp8r512_text_to_image.webp", + "size": 71624, + "sha256": "sha256:bytes:7922c52fa07fee6cc38f0da95b22028996637def32a99aeacc414ce8a39e1fe7", + "contentType": "application/octet-stream", + "purposes": [ + "runtime" + ] + }, + { + "path": "template-gallery/flux3_klein_fp8r512_lora_style.webp", + "size": 95654, + "sha256": "sha256:bytes:59ddede1547b6e0e6958b0327a77c8e253cdd654e61aada584e1619aba7b8c54", + "contentType": "application/octet-stream", + "purposes": [ + "runtime" + ] + }, + { + "path": "template-gallery/flux3_klein_fp8r512_multi_reference_edit.png", + "size": 79459, + "sha256": "sha256:bytes:12f2f2ae8ffcc053d61fb3c409d964f5f0d03b2668d73573c3795e3b5fbd620f", + "contentType": "image/png", + "purposes": [ + "runtime" + ], + "width": 1024, + "height": 1024 + }, + { + "path": "template-gallery/flux3_klein_fp8r512_raw_coordinate_prompt.webp", + "size": 108576, + "sha256": "sha256:bytes:8544a653656be8cd47d87d7550558fa8487d1b72de56ee21adb27313dc34ba8f", + "contentType": "application/octet-stream", + "purposes": [ + "runtime" + ] + }, + { + "path": "template-gallery/flux3_klein_fp8r512_single_reference_edit.webp", + "size": 45456, + "sha256": "sha256:bytes:2694ee895e5f91c7c68d5b7966e872b08546d6792a3038707260d595eb48b6e6", + "contentType": "application/octet-stream", + "purposes": [ + "runtime" + ] + }, + { + "path": "template-gallery/flux3_klein_fp8r512_text_to_image.webp", + "size": 94460, + "sha256": "sha256:bytes:88783643cab795b94b5bc01e6e28d459ff685278d95fb6bf54461094a6400c90", + "contentType": "application/octet-stream", + "purposes": [ + "runtime" + ] + }, { "path": "template-gallery/flux_control_canny.webp", "size": 191804, @@ -573,6 +667,50 @@ "width": 1024, "height": 1024 }, + { + "path": "template-gallery/inputs/flux3_klein_base_fp8r512_multi_reference_edit.before.png", + "size": 11137, + "sha256": "sha256:bytes:b748201353f02543c2a48920bb514c2741366151df45bf6c4904aeb0f32f1a67", + "contentType": "image/png", + "purposes": [ + "runtime" + ], + "width": 1024, + "height": 1024 + }, + { + "path": "template-gallery/inputs/flux3_klein_base_fp8r512_single_reference_edit.before.png", + "size": 266188, + "sha256": "sha256:bytes:d5ba3943d6c0a264860ba0cde18d87e2d9554a3f7328308f4d771e082a9e0c24", + "contentType": "image/png", + "purposes": [ + "runtime" + ], + "width": 512, + "height": 512 + }, + { + "path": "template-gallery/inputs/flux3_klein_fp8r512_multi_reference_edit.before.png", + "size": 11137, + "sha256": "sha256:bytes:b748201353f02543c2a48920bb514c2741366151df45bf6c4904aeb0f32f1a67", + "contentType": "image/png", + "purposes": [ + "runtime" + ], + "width": 1024, + "height": 1024 + }, + { + "path": "template-gallery/inputs/flux3_klein_fp8r512_single_reference_edit.before.png", + "size": 266188, + "sha256": "sha256:bytes:d5ba3943d6c0a264860ba0cde18d87e2d9554a3f7328308f4d771e082a9e0c24", + "contentType": "image/png", + "purposes": [ + "runtime" + ], + "width": 512, + "height": 512 + }, { "path": "template-gallery/inputs/flux_control_canny.before.png", "size": 22013, @@ -1184,8 +1322,8 @@ }, { "path": "template-gallery/manifest.json", - "size": 180959, - "sha256": "sha256:bytes:bcc48de0f85d8a815364b3abfbaf2379b88686ba7e34b4c5d0a568efdf5dbbc4", + "size": 206839, + "sha256": "sha256:bytes:b6e383c698b7a07c8a37a95629ebace6d0f39d608c006bab8df446920f145cc0", "contentType": "application/json", "purposes": [ "runtime" @@ -1626,6 +1764,186 @@ "runtime" ] }, + { + "path": "template-gallery/reviews/flux3_klein_base_fp8r512_lora_style.quality-review.json", + "size": 3156, + "sha256": "sha256:bytes:6ecaa3d253c60a36cfa0129575fda00de91b7259d6d5d7aaf7a1eafc1c1539fb", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, + { + "path": "template-gallery/reviews/flux3_klein_base_fp8r512_lora_style.reviewed-provenance.json", + "size": 101754, + "sha256": "sha256:bytes:bf2a88219068ec3c78bf3ab9f847f2c80d7e78035d574dbccc8d48c9c979bdc6", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, + { + "path": "template-gallery/reviews/flux3_klein_base_fp8r512_multi_reference_edit.quality-review.json", + "size": 3132, + "sha256": "sha256:bytes:0666e990cc08d4014f2f913674e9637a86e4f62fee681de1287c949a6a7dcb5a", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, + { + "path": "template-gallery/reviews/flux3_klein_base_fp8r512_multi_reference_edit.reviewed-provenance.json", + "size": 132386, + "sha256": "sha256:bytes:df83c15df43ca7b2739db3032671014c3dea0cb0bd1cd4acb15df5dcccf443bd", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, + { + "path": "template-gallery/reviews/flux3_klein_base_fp8r512_raw_coordinate_prompt.quality-review.json", + "size": 3020, + "sha256": "sha256:bytes:5a40f1c4b7c13f8678de7fdd41bf090c39071fc884c2e4dfed6c1f03e0ecb09c", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, + { + "path": "template-gallery/reviews/flux3_klein_base_fp8r512_raw_coordinate_prompt.reviewed-provenance.json", + "size": 94834, + "sha256": "sha256:bytes:e5684e876125a01c342b522b2a0d8350ae978f6543ccdfcaf56ec2011ccebb5f", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, + { + "path": "template-gallery/reviews/flux3_klein_base_fp8r512_single_reference_edit.quality-review.json", + "size": 2937, + "sha256": "sha256:bytes:f81ca736173a93bb214088dda9879efd933675799244f363506770202ffc80e0", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, + { + "path": "template-gallery/reviews/flux3_klein_base_fp8r512_single_reference_edit.reviewed-provenance.json", + "size": 100367, + "sha256": "sha256:bytes:145688ff7654e0f2b058caf1e3cdc7f4621cd160bc57967529fbfc6deba3e55f", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, + { + "path": "template-gallery/reviews/flux3_klein_base_fp8r512_text_to_image.quality-review.json", + "size": 2950, + "sha256": "sha256:bytes:e4db5a6f68664c24496139808737c35843ad013a84ed8c647cb7bda822b3ab55", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, + { + "path": "template-gallery/reviews/flux3_klein_base_fp8r512_text_to_image.reviewed-provenance.json", + "size": 97026, + "sha256": "sha256:bytes:2db502f5981665759b16abab179f12ae0093312c5bc99fcc33bb346bc6d3ff05", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, + { + "path": "template-gallery/reviews/flux3_klein_fp8r512_lora_style.quality-review.json", + "size": 3183, + "sha256": "sha256:bytes:563cf20531167d3661cecb5e6897bae7d8a1485eff49e7f16c8cd7fef6486f10", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, + { + "path": "template-gallery/reviews/flux3_klein_fp8r512_lora_style.reviewed-provenance.json", + "size": 93938, + "sha256": "sha256:bytes:945f99e2d8c924809a4e9d6f91056ec417715b7db5e06b2ec0d51a016bdc219b", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, + { + "path": "template-gallery/reviews/flux3_klein_fp8r512_multi_reference_edit.quality-review.json", + "size": 3159, + "sha256": "sha256:bytes:ba9c380fe4ccea2f731999d6aa7d116e4ebf4078c8ddb29ea88f2fee8d37dec9", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, + { + "path": "template-gallery/reviews/flux3_klein_fp8r512_multi_reference_edit.reviewed-provenance.json", + "size": 124866, + "sha256": "sha256:bytes:d89ef493877766cc1eb753cc6bdfd9e44dd6a71f33c8969287b4e70b33544f31", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, + { + "path": "template-gallery/reviews/flux3_klein_fp8r512_raw_coordinate_prompt.quality-review.json", + "size": 3041, + "sha256": "sha256:bytes:5b8429b8102aba95b1fc76e8ff0b3ee823a489ae1ae771c5f10b2c92f583ddf5", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, + { + "path": "template-gallery/reviews/flux3_klein_fp8r512_raw_coordinate_prompt.reviewed-provenance.json", + "size": 87364, + "sha256": "sha256:bytes:27ec68baa354642081ee764d33632cafcfeb8477ef05ec6ce1e7ec9d2925d410", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, + { + "path": "template-gallery/reviews/flux3_klein_fp8r512_single_reference_edit.quality-review.json", + "size": 2937, + "sha256": "sha256:bytes:d3af7d89f63eabfd9313ca12b8ec6b644ae14379265e83ecf75aab453c2df4af", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, + { + "path": "template-gallery/reviews/flux3_klein_fp8r512_single_reference_edit.reviewed-provenance.json", + "size": 92880, + "sha256": "sha256:bytes:bf0f06495f4d9793ebf0f8bc8c4467e6aead1b935bbb5e319b59b92dac3e1b78", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, + { + "path": "template-gallery/reviews/flux3_klein_fp8r512_text_to_image.quality-review.json", + "size": 2953, + "sha256": "sha256:bytes:9c42b9b5987079824364e4749eaee7e9846949c8a8f9142092ac716447bbf063", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, + { + "path": "template-gallery/reviews/flux3_klein_fp8r512_text_to_image.reviewed-provenance.json", + "size": 89559, + "sha256": "sha256:bytes:bb4186fd1e2fdb16f03bbda92673cbbad1169c0c20a13987775eac45ffcca1d2", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, { "path": "template-gallery/reviews/flux_control_canny.quality-review.json", "size": 4414, @@ -3614,9 +3932,9 @@ "height": 1024 } ], - "assetSetId": "sha256:canonical-json:b859b8cb1720f8fcca245726686e2d3e4c2a93e74a9be3d9d90567d93c277700", + "assetSetId": "sha256:canonical-json:86c0298bbdb02531cdb3f031d391493bac818b0dd71c103abb1a540da21925f6", "status": "ready", - "assetCount": 361, - "totalBytes": 488732677, + "assetCount": 395, + "totalBytes": 491202898, "missingAssets": [] } diff --git a/docs/image-template-workflows.md b/docs/image-template-workflows.md index 1e0bc866..ec54d1a5 100644 --- a/docs/image-template-workflows.md +++ b/docs/image-template-workflows.md @@ -8,25 +8,28 @@ Opening an existing saved workflow preserves its graph. ## Current template inventory -The current inventory contains 56 image templates. The historical 54 converted +The current inventory contains 66 image templates. The historical 54 converted templates retain their creator prompts, seeds, sizes, inference settings, immutable model revisions and required input roles. Their fresh graphs use explicit execution-profile selections rather than a family-wide default. -| Native stage family | Templates | Tasks | -| -------------------------- | --------: | ---------------------------------------------- | -| Z-Image Turbo | 7 | Text to image and styles using LoRAs | -| Qwen Image | 10 | Text to image and ControlNet image layout | -| Qwen Image Edit | 7 | Image editing, inpainting and outpainting | -| Qwen Image Edit Plus | 7 | Single-image and multiple-reference editing | -| Qwen Image Layered | 1 | Layer decomposition | -| FLUX Schnell, Dev and Krea | 11 | Text to image and styles using LoRAs | -| FLUX Kontext | 2 | Single-image and multiple-reference editing | -| FLUX.2 Klein | 3 | Text to image and image/reference editing | -| FLUX.2 Dev | 1 | Full-model text to image | -| Cosmos 3 Super | 1 | Full-model text to image with mandatory safety | - -The 48 historical native recipes and two additional full-model candidates contain +| Native stage family | Templates | Tasks | +| -------------------------- | --------: | ------------------------------------------------- | +| Z-Image Turbo | 7 | Text to image and styles using LoRAs | +| Qwen Image | 10 | Text to image and ControlNet image layout | +| Qwen Image Edit | 7 | Image editing, inpainting and outpainting | +| Qwen Image Edit Plus | 7 | Single-image and multiple-reference editing | +| Qwen Image Layered | 1 | Layer decomposition | +| FLUX Schnell, Dev and Krea | 11 | Text to image and styles using LoRAs | +| FLUX Kontext | 2 | Single-image and multiple-reference editing | +| FLUX.2 Klein | 3 | Text to image and image/reference editing | +| FLUX.2 Dev | 1 | Full-model text to image | +| Cosmos 3 Super | 1 | Full-model text to image with mandatory safety | +| FLUX 3 Klein Distilled | 5 | Generation, reference edits, raw layout and style | +| FLUX 3 Klein Base | 5 | Generation, reference edits, raw layout and style | + +The 48 historical native recipes, two additional full-model candidates and ten +reviewed FLUX 3 recipes contain real model loading, input encoding, denoising and latent decoding stages. The two full-model candidates remain separately unqualified; their presence does not establish Auto readiness or fit on ordinary hardware. Fresh eligible native graphs present **Model Setup → Encode Inputs @@ -151,33 +154,36 @@ parity. Use the backend's [image template validation guide](https://github.com/s for matched old/new runs, runtime and input identity checks, decoded-image comparison and the Windows validation procedure. -## Qualification-only blocked-template probes +## Reviewed FLUX 3 recipes -The two FLUX 3 style planning candidates now name the selected immutable +The two reviewed FLUX 3 style recipes name the selected immutable adapters: [NASA concept art](https://huggingface.co/kocabiyik/nsc7-style-lora/blob/9b998d3bdc3b4aeb2113ab4e8cbd9fe2ebfa1cae/README.md) for Distilled at scale `0.75`, and [Monet oil painting](https://huggingface.co/pjecuacion/flux3-klein-mnt-oil-monet-lora/blob/0d94b6a4601892499defd8c5d89c24f78e78043b/README.md) for Base at scale `0.65`. Both cards declare the [FLUX Kommunity License v1.0](https://huggingface.co/black-forest-labs/flux-3-image-klein-base/blob/1469d27cfb9bb1bd81d3a93f5a023b39dbf136e4/LICENSE.md). Their training-data provenance is the authors' statement, not independent rights -verification. The Base planning candidate explicitly replaces Tarot; saved Tarot +verification. The Base recipe explicitly replaces Tarot; saved Tarot workflows and historical evidence keep their original identities. -The revised candidates use the ring-habitat and meadow-fox prompts, seeds +The revised recipes use the ring-habitat and meadow-fox prompts, seeds `481205` and `481405`, 512-square FP8r/BF16 recipes, 16/50 steps and guidance 1/3.5. The original radio/fox recipes and their failed outputs retain their historical -identities. The two plain-radio candidates use revised two-front-control prompts +identities. The two plain-radio recipes use revised two-front-control prompts and seeds `481402` (Distilled) and `481401` (Base). PUP remains disabled. The locked public settings are Expert with no offload and `autoOffload=false`. Successful local `model_cpu` / `autoOffload=true` trials -are a separate recipe and cannot qualify these locks. NASA's advertised style -effect remains unproved; Monet's painterly scale-zero baseline must be considered -when reviewing the adapter effect. Inspect actual outputs for invented marks and -signatures. Both candidates remain blocked planning entries without public media, -template qualification, Gallery eligibility, hardware-fit proof or output -publication approval. Adapter terms and local test consent do not approve an -output's publication. - -The two packaging planning recipes preserve the ordered model references, then +are separate recipes and cannot qualify these locks. The ten fixed-input outputs +passed their bounded visual reviews and have exact-file publication approval. +They enter Experimental with their original task/source/model/input provenance; +the model profiles' global qualification flags remain unchanged. Matching older +evidence retains its historical scope. Separate native Auto checks cover the six +basic routes and the selected NASA/Monet lifecycle cases only on the tested Linux +x86_64 ROCm gfx1151 shared-memory host. They do not qualify larger workloads, +Windows fit, or other hardware. Fixed-output acceptance does not establish a +general adapter benefit or NASA endorsement. Inspect new outputs for invented +marks and signatures; their rights are separate from approval of these exact files. + +The two packaging recipes preserve the ordered model references, then compose the generated photograph onto the second reference using ordinary image nodes. The declared mask protects all pixels outside the photo panel. Three explicit Lanczos resize/pad operations precede a 1024-square crop at `y=205` @@ -189,6 +195,18 @@ Save Image preview contract. The authored mask and selected output media must be published and verified through the normal asset contract before Gallery admission. Existing saved graphs retain their own nodes, settings and outputs. +The two raw-coordinate examples retain their literal caption plus JSON prompt. +Their `raw_layout_reference` quality policy checks one caption, matching unique +object IDs, integer `bbox` coordinates in `0..1000`, valid box extents and concrete +descriptions with visual treatment. The audit is bounded to 16,384 characters and +32 objects. Malformed or incomplete documents fail; this policy never executes +JSON, seeds a structured-layout widget or rewrites the prompt. Distilled's exact +public profile has no negative-prompt input. The reviewed Base recipes use empty +negative conditioning at CFG up to 3.5 while retaining Base's negative-input +support. These declarations do not extend to a different execution profile. + +## Qualification-only blocked-template probes + A complete recipe may remain a blocked planning template while its exact output and visual quality are unqualified. The Gallery runner's explicit `--allow-blocked-probe --record-qualification` combination may retain a successful @@ -220,6 +238,6 @@ reading operator extensions. Its historical migration fixture checks the origina 54 creator contracts, typed graph exports, component policies, shared guidance and seeds, controlled extras, save/restore, undo/redo and stale asynchronous construction. The current public -catalog contains 56 image templates; additional native candidates have separate +catalog contains 66 image templates; additional native candidates have separate selected-recipe tests. Those are contract tests. Real model generation, paired image comparison, visual review and hardware qualification remain separate evidence. diff --git a/public/template-gallery/manifest.json b/public/template-gallery/manifest.json index 3326fe23..d2b260d1 100644 --- a/public/template-gallery/manifest.json +++ b/public/template-gallery/manifest.json @@ -1,7 +1,7 @@ { "schemaVersion": 2, - "generatedAt": "2026-07-28T03:20:46.526Z", - "runtimeFingerprint": "sha256:stable-runtime-v1:63040a4327d52e83952a6e3236e25f2b45026f345548e67b8de1b077986ba4cb", + "generatedAt": "2026-10-31T15:47:51.801Z", + "runtimeFingerprint": "sha256:stable-runtime-v1:d6393f9274337dffc2f9e7989dcfadebff77da4f76e3a7d777c0be0451656304", "examples": [ { "templateId": "ace_step_audio_continuation", @@ -896,6 +896,322 @@ "width": 1024, "height": 1024 }, + { + "templateId": "flux3_klein_base_fp8r512_lora_style", + "verificationStatus": "reviewed", + "promptSettingsHash": "ps_45fc840c", + "templateLockHash": "tpl_b8fe4791", + "modelRevision": "black-forest-labs/flux-3-image-klein-base@1469d27cfb9bb1bd81d3a93f5a023b39dbf136e4 | pjecuacion/flux3-klein-mnt-oil-monet-lora@0d94b6a4601892499defd8c5d89c24f78e78043b", + "runtimeFingerprint": "sha256:stable-runtime-v1:d6393f9274337dffc2f9e7989dcfadebff77da4f76e3a7d777c0be0451656304", + "graphHash": "sha256:canonical-graph-v1:d3312a8e5c8e0fcc4ae50709f7363a83bbb07de55d6fd5e2ff2f6ed6df6f0f8b", + "proofLockHash": "sha256:live-proof-lock-v1:85fd5a2522cab0738fd72ac71460ea7775a4502d2e3ba9052cba4879a6ba1020", + "backendSourceFingerprint": "sha256:backend-source-v1:42faf1330d661102d912e79bea517de856edea4e6b6aa08ae93617a1111e166f", + "backendContractFingerprint": "sha256:backend-contract-v1:46031e39a597e30e0295d793b465899647983b9a4a0607be8648cec87e226ccb", + "modelCommit": "black-forest-labs/flux-3-image-klein-base@1469d27cfb9bb1bd81d3a93f5a023b39dbf136e4 | pjecuacion/flux3-klein-mnt-oil-monet-lora@0d94b6a4601892499defd8c5d89c24f78e78043b", + "modelSetHash": "sha256:model-set-v1:308afa3c4df9dec68f81ac438f44410f5d95be81d083592267d49dcef74ddada", + "inputArtifactsHash": "sha256:input-artifacts-v1:4f53cda18c2baa0c0354bb5f9a3ecbe5ed12ab4d8e11ba873c2f11161202b945", + "templateRevisionHash": "sha256:template-revision-v1:10f9876967b6d679d86ad3faa7ae5f53c4923bc710cd7fafe9966536aba6fd38", + "provenancePath": "/template-gallery/reviews/flux3_klein_base_fp8r512_lora_style.reviewed-provenance.json", + "provenanceHash": "sha256:canonical-json:74a613ed136957a82a9adf34dc07906428946eecbc53cf533b3ae0668b3d7ae8", + "outputPath": "/template-gallery/flux3_klein_base_fp8r512_lora_style.webp", + "thumbnailPath": "/template-gallery/flux3_klein_base_fp8r512_lora_style.webp", + "mediaHash": "sha256:decoded-rgba:cf900eafa34f9a73715a1de4ebba142004f887721c30d6bbc2050185f8b980dc", + "mediaType": "image", + "verificationTimestamp": "2026-10-31T15:47:51.800Z", + "qualityReviewPath": "/template-gallery/reviews/flux3_klein_base_fp8r512_lora_style.quality-review.json", + "qualityReviewHash": "sha256:canonical-json:5213b00293c1194dbd8b1c65ec50ca66ea8582f868fc3ceaf01435d84177e796", + "qualityReviewStatus": "approved_reviewed", + "reviewer": "Codex (AI visual assessment); sourav-das (exact-file publication approval)", + "reviewedAt": "2026-10-31T14:59:34.117Z", + "width": 512, + "height": 512 + }, + { + "templateId": "flux3_klein_base_fp8r512_multi_reference_edit", + "verificationStatus": "reviewed", + "promptSettingsHash": "ps_eda85443", + "templateLockHash": "tpl_6c612164", + "templateInputContractHash": "tic_38eb1289", + "modelRevision": "black-forest-labs/flux-3-image-klein-base@1469d27cfb9bb1bd81d3a93f5a023b39dbf136e4", + "runtimeFingerprint": "sha256:stable-runtime-v1:d6393f9274337dffc2f9e7989dcfadebff77da4f76e3a7d777c0be0451656304", + "graphHash": "sha256:canonical-graph-v1:1f470bad2870220245b7b5103f3fbff4004134358fc6fb02f2971bd70b8d83c0", + "proofLockHash": "sha256:live-proof-lock-v1:beca90316dd861eb57f836e60ed31028a4bcba695ba304c81afa18f7f035838f", + "backendSourceFingerprint": "sha256:backend-source-v1:42faf1330d661102d912e79bea517de856edea4e6b6aa08ae93617a1111e166f", + "backendContractFingerprint": "sha256:backend-contract-v1:586fd63f8d461246cbdc13e3a9c5615c3a0960b87c46f04684e49a411cc5324f", + "modelCommit": "1469d27cfb9bb1bd81d3a93f5a023b39dbf136e4", + "modelSetHash": "sha256:model-set-v1:df7eadeee009e34cd9b0e8e6d38d469d3282aabd897b9e5ffbc60ac99bc6c397", + "inputArtifactsHash": "sha256:input-artifacts-v1:1921feafaf51c572a1490bc5d1e947cd0be520b4d0af775633b2d83f25eb5418", + "templateRevisionHash": "sha256:template-revision-v1:08ccf6456d923be05f428dbe07683c642a02dd5e76c8686cb098a7d59255d849", + "provenancePath": "/template-gallery/reviews/flux3_klein_base_fp8r512_multi_reference_edit.reviewed-provenance.json", + "provenanceHash": "sha256:canonical-json:62903eedf7f1c0f450ef2679c0b5795ef13b55a1ac5109e97514d30bf68c66d1", + "outputPath": "/template-gallery/flux3_klein_base_fp8r512_multi_reference_edit.png", + "thumbnailPath": "/template-gallery/flux3_klein_base_fp8r512_multi_reference_edit.png", + "beforePath": "/template-gallery/inputs/flux3_klein_base_fp8r512_multi_reference_edit.before.png", + "beforeMediaHash": "sha256:bytes:b748201353f02543c2a48920bb514c2741366151df45bf6c4904aeb0f32f1a67", + "afterPath": "/template-gallery/flux3_klein_base_fp8r512_multi_reference_edit.png", + "mediaHash": "sha256:decoded-rgba:ff4596af670899337dcef8856f5878ede20494b7b5ccc4b5f1085efb44ce6c23", + "mediaType": "image", + "verificationTimestamp": "2026-10-31T15:47:49.981Z", + "qualityReviewPath": "/template-gallery/reviews/flux3_klein_base_fp8r512_multi_reference_edit.quality-review.json", + "qualityReviewHash": "sha256:canonical-json:d6d86e1562aed8c3015b6aca1a28bb6ed4be7ccaa1f059f3438c7bb07c7fe685", + "qualityReviewStatus": "approved_reviewed", + "reviewer": "Codex (AI visual assessment); sourav-das (exact-file publication approval)", + "reviewedAt": "2026-10-31T14:59:34.114Z", + "width": 1024, + "height": 1024 + }, + { + "templateId": "flux3_klein_base_fp8r512_raw_coordinate_prompt", + "verificationStatus": "reviewed", + "promptSettingsHash": "ps_ab1f9435", + "templateLockHash": "tpl_e448c87f", + "modelRevision": "black-forest-labs/flux-3-image-klein-base@1469d27cfb9bb1bd81d3a93f5a023b39dbf136e4", + "runtimeFingerprint": "sha256:stable-runtime-v1:d6393f9274337dffc2f9e7989dcfadebff77da4f76e3a7d777c0be0451656304", + "graphHash": "sha256:canonical-graph-v1:543a86b82b6008f1d0bc603cd8bd96e03a91e4f3508e19ec64c6d3bf70aed3ad", + "proofLockHash": "sha256:live-proof-lock-v1:3a82ac7d035aedf413226a29fd51e103d81b229d7c69f18b6f847a878d4627f4", + "backendSourceFingerprint": "sha256:backend-source-v1:4d72b49b1ee7b56357d67d75ce284a9355f2393d6cf8d51f18468d72fa6619de", + "backendContractFingerprint": "sha256:backend-contract-v1:43291ed17b126e3978d9989697e3558530502669e6675a7c5885c7aaebf5adcd", + "modelCommit": "1469d27cfb9bb1bd81d3a93f5a023b39dbf136e4", + "modelSetHash": "sha256:model-set-v1:df7eadeee009e34cd9b0e8e6d38d469d3282aabd897b9e5ffbc60ac99bc6c397", + "inputArtifactsHash": "sha256:input-artifacts-v1:4f53cda18c2baa0c0354bb5f9a3ecbe5ed12ab4d8e11ba873c2f11161202b945", + "templateRevisionHash": "sha256:template-revision-v1:8ba10cb07cc645a6b12a1e5416b12a0ab3d2821786e12e108ec7709b8632014f", + "provenancePath": "/template-gallery/reviews/flux3_klein_base_fp8r512_raw_coordinate_prompt.reviewed-provenance.json", + "provenanceHash": "sha256:canonical-json:f77114ee54351c29edb8805227ce9d9f7389f11fcfc565bd33a352e3752b2235", + "outputPath": "/template-gallery/flux3_klein_base_fp8r512_raw_coordinate_prompt.webp", + "thumbnailPath": "/template-gallery/flux3_klein_base_fp8r512_raw_coordinate_prompt.webp", + "mediaHash": "sha256:decoded-rgba:08207798258b9624a3ae25047d2224d79223adc8e1e592bd3776a2c35ccf82ba", + "mediaType": "image", + "verificationTimestamp": "2026-10-31T15:47:50.901Z", + "qualityReviewPath": "/template-gallery/reviews/flux3_klein_base_fp8r512_raw_coordinate_prompt.quality-review.json", + "qualityReviewHash": "sha256:canonical-json:0d0c0f95bd088d15b72f3b0d1b76ff9637dd977480c0175323c7244260a3b08e", + "qualityReviewStatus": "approved_reviewed", + "reviewer": "Codex (AI visual assessment); sourav-das (exact-file publication approval)", + "reviewedAt": "2026-10-31T14:59:34.116Z", + "width": 512, + "height": 512 + }, + { + "templateId": "flux3_klein_base_fp8r512_single_reference_edit", + "verificationStatus": "reviewed", + "promptSettingsHash": "ps_718b791c", + "templateLockHash": "tpl_02dc7e3c", + "templateInputContractHash": "tic_3e369509", + "modelRevision": "black-forest-labs/flux-3-image-klein-base@1469d27cfb9bb1bd81d3a93f5a023b39dbf136e4", + "runtimeFingerprint": "sha256:stable-runtime-v1:d6393f9274337dffc2f9e7989dcfadebff77da4f76e3a7d777c0be0451656304", + "graphHash": "sha256:canonical-graph-v1:46c03604a6e5629c4f0d03e675696ba161a8120e5a169e234c78ce1560d33633", + "proofLockHash": "sha256:live-proof-lock-v1:f8601a3f75e552d7a1691814806415e7f64426d9019101643b25bd3ab60e5ff9", + "backendSourceFingerprint": "sha256:backend-source-v1:4d72b49b1ee7b56357d67d75ce284a9355f2393d6cf8d51f18468d72fa6619de", + "backendContractFingerprint": "sha256:backend-contract-v1:2b23f1e12c9d7c00c9fdf513899c224daed3b605465939103d6d93ea75e8b841", + "modelCommit": "1469d27cfb9bb1bd81d3a93f5a023b39dbf136e4", + "modelSetHash": "sha256:model-set-v1:df7eadeee009e34cd9b0e8e6d38d469d3282aabd897b9e5ffbc60ac99bc6c397", + "inputArtifactsHash": "sha256:input-artifacts-v1:9302fd651d097d6dabfe7b4b9d2182fa51ec1a09c1dcc7cdf3ecbf0657d445f3", + "templateRevisionHash": "sha256:template-revision-v1:3148a21f8816f5e8b14dfd12531b7505751f3c0653920f19494d6db8219980a0", + "provenancePath": "/template-gallery/reviews/flux3_klein_base_fp8r512_single_reference_edit.reviewed-provenance.json", + "provenanceHash": "sha256:canonical-json:abc0a45d5004113314a7d9e260978b41d94a89d76d92fd34f56a48d76564674b", + "outputPath": "/template-gallery/flux3_klein_base_fp8r512_single_reference_edit.webp", + "thumbnailPath": "/template-gallery/flux3_klein_base_fp8r512_single_reference_edit.webp", + "beforePath": "/template-gallery/inputs/flux3_klein_base_fp8r512_single_reference_edit.before.png", + "beforeMediaHash": "sha256:bytes:d5ba3943d6c0a264860ba0cde18d87e2d9554a3f7328308f4d771e082a9e0c24", + "afterPath": "/template-gallery/flux3_klein_base_fp8r512_single_reference_edit.webp", + "mediaHash": "sha256:decoded-rgba:3335c0bd42c0a2f0dfce32562ce039ef660eae5b22bd4fb6ef376ce57b9f78e1", + "mediaType": "image", + "verificationTimestamp": "2026-10-31T15:47:48.962Z", + "qualityReviewPath": "/template-gallery/reviews/flux3_klein_base_fp8r512_single_reference_edit.quality-review.json", + "qualityReviewHash": "sha256:canonical-json:e4ae9a6db7dcc801c5aceebfd9c632c4ece8e534f7554c8f2f92116e59ddbc1f", + "qualityReviewStatus": "approved_reviewed", + "reviewer": "Codex (AI visual assessment); sourav-das (exact-file publication approval)", + "reviewedAt": "2026-10-31T14:59:34.113Z", + "width": 512, + "height": 512 + }, + { + "templateId": "flux3_klein_base_fp8r512_text_to_image", + "verificationStatus": "reviewed", + "promptSettingsHash": "ps_ec02848c", + "templateLockHash": "tpl_80ddfc95", + "modelRevision": "black-forest-labs/flux-3-image-klein-base@1469d27cfb9bb1bd81d3a93f5a023b39dbf136e4", + "runtimeFingerprint": "sha256:stable-runtime-v1:d6393f9274337dffc2f9e7989dcfadebff77da4f76e3a7d777c0be0451656304", + "graphHash": "sha256:canonical-graph-v1:62f45624654a43a6950b74f777e9040520d6df49b7d3b25dbff2ba5573181ee2", + "proofLockHash": "sha256:live-proof-lock-v1:8ab3e0f7c33257271c96fdbaaf4a366112d955989b6bdd9289b1a2a7308f4fa1", + "backendSourceFingerprint": "sha256:backend-source-v1:42faf1330d661102d912e79bea517de856edea4e6b6aa08ae93617a1111e166f", + "backendContractFingerprint": "sha256:backend-contract-v1:43291ed17b126e3978d9989697e3558530502669e6675a7c5885c7aaebf5adcd", + "modelCommit": "1469d27cfb9bb1bd81d3a93f5a023b39dbf136e4", + "modelSetHash": "sha256:model-set-v1:df7eadeee009e34cd9b0e8e6d38d469d3282aabd897b9e5ffbc60ac99bc6c397", + "inputArtifactsHash": "sha256:input-artifacts-v1:4f53cda18c2baa0c0354bb5f9a3ecbe5ed12ab4d8e11ba873c2f11161202b945", + "templateRevisionHash": "sha256:template-revision-v1:d5a9e2fe9e72b28b8b49c6dcd4d373edb42f345f5d8a1189e1dcb7dbb91ca68c", + "provenancePath": "/template-gallery/reviews/flux3_klein_base_fp8r512_text_to_image.reviewed-provenance.json", + "provenanceHash": "sha256:canonical-json:f1ca318fb3163b82173ef940ba79d07b55814f53156dec253657fc672978fe7a", + "outputPath": "/template-gallery/flux3_klein_base_fp8r512_text_to_image.webp", + "thumbnailPath": "/template-gallery/flux3_klein_base_fp8r512_text_to_image.webp", + "mediaHash": "sha256:decoded-rgba:cf56f56f7f748e06aff01e9d679a219f077b94cfdffdf6e1da393680992a9d16", + "mediaType": "image", + "verificationTimestamp": "2026-10-31T15:47:48.035Z", + "qualityReviewPath": "/template-gallery/reviews/flux3_klein_base_fp8r512_text_to_image.quality-review.json", + "qualityReviewHash": "sha256:canonical-json:ad271574862b778f7a68c361c8b0d1f145c4ff8f8eaec4578fd68b27b3b1f462", + "qualityReviewStatus": "approved_reviewed", + "reviewer": "Codex (AI visual assessment); sourav-das (exact-file publication approval)", + "reviewedAt": "2026-10-31T14:59:34.113Z", + "width": 512, + "height": 512 + }, + { + "templateId": "flux3_klein_fp8r512_lora_style", + "verificationStatus": "reviewed", + "promptSettingsHash": "ps_dbab2ce1", + "templateLockHash": "tpl_9edd5f24", + "modelRevision": "black-forest-labs/flux-3-image-klein@8454017f9ebaada30c998fccd9f67a80c7580f68 | kocabiyik/nsc7-style-lora@9b998d3bdc3b4aeb2113ab4e8cbd9fe2ebfa1cae", + "runtimeFingerprint": "sha256:stable-runtime-v1:d6393f9274337dffc2f9e7989dcfadebff77da4f76e3a7d777c0be0451656304", + "graphHash": "sha256:canonical-graph-v1:d49dde4bdd41a1bb8dc9207e74fe9fce862a13a2332ae1a4654e7ba0dc0518fb", + "proofLockHash": "sha256:live-proof-lock-v1:84a3a34bb7e6756333eda023e6ad9396386a4863168b41cd549471765f513a14", + "backendSourceFingerprint": "sha256:backend-source-v1:059ac079cf29b42460d0951d43c6dac8bec785cba77ef7867d68c9439cf00eab", + "backendContractFingerprint": "sha256:backend-contract-v1:1b1be7967668d37dddf49d09ec1dc92a223b1a649332196f287eacdbb9583da7", + "modelCommit": "black-forest-labs/flux-3-image-klein@8454017f9ebaada30c998fccd9f67a80c7580f68 | kocabiyik/nsc7-style-lora@9b998d3bdc3b4aeb2113ab4e8cbd9fe2ebfa1cae", + "modelSetHash": "sha256:model-set-v1:d971be4822c85403bb49c54176afea87088883f6ad55abe2f461c2999a127255", + "inputArtifactsHash": "sha256:input-artifacts-v1:4f53cda18c2baa0c0354bb5f9a3ecbe5ed12ab4d8e11ba873c2f11161202b945", + "templateRevisionHash": "sha256:template-revision-v1:ea8aa121ed4133b2eb948586d12277a44ba266e86fa30ef7d2a0f4fa1e93d0bc", + "provenancePath": "/template-gallery/reviews/flux3_klein_fp8r512_lora_style.reviewed-provenance.json", + "provenanceHash": "sha256:canonical-json:753f34b72dbcefbf1969ba8f6151169967a39c25c2daad30e96a677f9463820d", + "outputPath": "/template-gallery/flux3_klein_fp8r512_lora_style.webp", + "thumbnailPath": "/template-gallery/flux3_klein_fp8r512_lora_style.webp", + "mediaHash": "sha256:decoded-rgba:f794cdcbb0051301c8f5e206c2a61fb79b7713736ffca809f564c4eea1f30960", + "mediaType": "image", + "verificationTimestamp": "2026-10-31T15:47:47.085Z", + "qualityReviewPath": "/template-gallery/reviews/flux3_klein_fp8r512_lora_style.quality-review.json", + "qualityReviewHash": "sha256:canonical-json:1738d685506c32285ec01c26bcf2eef51d0108b581b15fe32505581b66fe1cc0", + "qualityReviewStatus": "approved_reviewed", + "reviewer": "Codex (AI visual assessment); sourav-das (exact-file publication approval)", + "reviewedAt": "2026-10-31T14:59:34.112Z", + "width": 512, + "height": 512 + }, + { + "templateId": "flux3_klein_fp8r512_multi_reference_edit", + "verificationStatus": "reviewed", + "promptSettingsHash": "ps_4376a79b", + "templateLockHash": "tpl_5b102c44", + "templateInputContractHash": "tic_b7a3a619", + "modelRevision": "black-forest-labs/flux-3-image-klein@8454017f9ebaada30c998fccd9f67a80c7580f68", + "runtimeFingerprint": "sha256:stable-runtime-v1:d6393f9274337dffc2f9e7989dcfadebff77da4f76e3a7d777c0be0451656304", + "graphHash": "sha256:canonical-graph-v1:d98db2b980983b0cc27c07f37b760576bb77531810daff126afc7dfecefe89bc", + "proofLockHash": "sha256:live-proof-lock-v1:b29503e2fd21e2e760714ae13e3b304a1669af7ba3b5f3ac5039636257a02ed3", + "backendSourceFingerprint": "sha256:backend-source-v1:42faf1330d661102d912e79bea517de856edea4e6b6aa08ae93617a1111e166f", + "backendContractFingerprint": "sha256:backend-contract-v1:a32dd459f697cfe85b9c7773f0f01a77ae18fd27401311a05466d6cb457e0062", + "modelCommit": "8454017f9ebaada30c998fccd9f67a80c7580f68", + "modelSetHash": "sha256:model-set-v1:1b505267984a07c91ab451f02b5b2f66bfbe38e7e3f4a8b55c1f105720f56719", + "inputArtifactsHash": "sha256:input-artifacts-v1:1921feafaf51c572a1490bc5d1e947cd0be520b4d0af775633b2d83f25eb5418", + "templateRevisionHash": "sha256:template-revision-v1:66daed8d72cfbe5ccd459f091b84fd0be24ccf99e7f348cda71100db4622b1b5", + "provenancePath": "/template-gallery/reviews/flux3_klein_fp8r512_multi_reference_edit.reviewed-provenance.json", + "provenanceHash": "sha256:canonical-json:b5a12528e163e68fdf61c66add53322215e5fdd1d9bf22ee6c8e09bb2fafe7d0", + "outputPath": "/template-gallery/flux3_klein_fp8r512_multi_reference_edit.png", + "thumbnailPath": "/template-gallery/flux3_klein_fp8r512_multi_reference_edit.png", + "beforePath": "/template-gallery/inputs/flux3_klein_fp8r512_multi_reference_edit.before.png", + "beforeMediaHash": "sha256:bytes:b748201353f02543c2a48920bb514c2741366151df45bf6c4904aeb0f32f1a67", + "afterPath": "/template-gallery/flux3_klein_fp8r512_multi_reference_edit.png", + "mediaHash": "sha256:decoded-rgba:796220d0d5f53b8a21dbc38b6d4342fe00026e6225b81991de01378a99ef05fb", + "mediaType": "image", + "verificationTimestamp": "2026-10-31T15:47:45.226Z", + "qualityReviewPath": "/template-gallery/reviews/flux3_klein_fp8r512_multi_reference_edit.quality-review.json", + "qualityReviewHash": "sha256:canonical-json:6f312e426f927d8e28e9afb9a943403b1cd36bd5ee2344a6c51552391a2e663f", + "qualityReviewStatus": "approved_reviewed", + "reviewer": "Codex (AI visual assessment); sourav-das (exact-file publication approval)", + "reviewedAt": "2026-10-31T14:59:34.111Z", + "width": 1024, + "height": 1024 + }, + { + "templateId": "flux3_klein_fp8r512_raw_coordinate_prompt", + "verificationStatus": "reviewed", + "promptSettingsHash": "ps_d26e7119", + "templateLockHash": "tpl_5e87db80", + "modelRevision": "black-forest-labs/flux-3-image-klein@8454017f9ebaada30c998fccd9f67a80c7580f68", + "runtimeFingerprint": "sha256:stable-runtime-v1:d6393f9274337dffc2f9e7989dcfadebff77da4f76e3a7d777c0be0451656304", + "graphHash": "sha256:canonical-graph-v1:81143968fa75d8238220ea4dca03d6a0e42580160f87aba6a755ad42a096e9b5", + "proofLockHash": "sha256:live-proof-lock-v1:ca26dcd57defc1da1c4c72f2b36aac04f774f3c93f037a14f2ddb48c26724500", + "backendSourceFingerprint": "sha256:backend-source-v1:4d72b49b1ee7b56357d67d75ce284a9355f2393d6cf8d51f18468d72fa6619de", + "backendContractFingerprint": "sha256:backend-contract-v1:171b4bddb5bee4bbe062a67e7de8a43ec8662469019a456279553a8cfc5168ef", + "modelCommit": "8454017f9ebaada30c998fccd9f67a80c7580f68", + "modelSetHash": "sha256:model-set-v1:1b505267984a07c91ab451f02b5b2f66bfbe38e7e3f4a8b55c1f105720f56719", + "inputArtifactsHash": "sha256:input-artifacts-v1:4f53cda18c2baa0c0354bb5f9a3ecbe5ed12ab4d8e11ba873c2f11161202b945", + "templateRevisionHash": "sha256:template-revision-v1:1cd5ea8ddf7601d5f54b4316a0e978e754251068f14b100a36b78792aa1ebeba", + "provenancePath": "/template-gallery/reviews/flux3_klein_fp8r512_raw_coordinate_prompt.reviewed-provenance.json", + "provenanceHash": "sha256:canonical-json:47b2d254939d418af3e0ed2d69dcb265f7fdfd41fd8dbd8b518cf858dde40240", + "outputPath": "/template-gallery/flux3_klein_fp8r512_raw_coordinate_prompt.webp", + "thumbnailPath": "/template-gallery/flux3_klein_fp8r512_raw_coordinate_prompt.webp", + "mediaHash": "sha256:decoded-rgba:1889819e733db720d0274b1a1929aed582c9a5817a788ea7a5f7541e22a51e62", + "mediaType": "image", + "verificationTimestamp": "2026-10-31T15:47:46.136Z", + "qualityReviewPath": "/template-gallery/reviews/flux3_klein_fp8r512_raw_coordinate_prompt.quality-review.json", + "qualityReviewHash": "sha256:canonical-json:e53dd58722d55c07e2aa3dbe775cfd70818f7736bbd4a2d94647a6ecd01764b6", + "qualityReviewStatus": "approved_reviewed", + "reviewer": "Codex (AI visual assessment); sourav-das (exact-file publication approval)", + "reviewedAt": "2026-10-31T14:59:34.111Z", + "width": 512, + "height": 512 + }, + { + "templateId": "flux3_klein_fp8r512_single_reference_edit", + "verificationStatus": "reviewed", + "promptSettingsHash": "ps_6888cfda", + "templateLockHash": "tpl_4e407e4b", + "templateInputContractHash": "tic_2743e769", + "modelRevision": "black-forest-labs/flux-3-image-klein@8454017f9ebaada30c998fccd9f67a80c7580f68", + "runtimeFingerprint": "sha256:stable-runtime-v1:d6393f9274337dffc2f9e7989dcfadebff77da4f76e3a7d777c0be0451656304", + "graphHash": "sha256:canonical-graph-v1:6befaea1addf05446d1c420c997c5e641ac214a966a52f2d2760a087531b747b", + "proofLockHash": "sha256:live-proof-lock-v1:1b206e576d7860fd9b0a6913976132378de28eadc1ea5706197ef334ed16bcd9", + "backendSourceFingerprint": "sha256:backend-source-v1:4d72b49b1ee7b56357d67d75ce284a9355f2393d6cf8d51f18468d72fa6619de", + "backendContractFingerprint": "sha256:backend-contract-v1:17de0800c477f0e24beb595a6bb24fd3ea50ac87541a3bd758b28fe6dc62eb94", + "modelCommit": "8454017f9ebaada30c998fccd9f67a80c7580f68", + "modelSetHash": "sha256:model-set-v1:1b505267984a07c91ab451f02b5b2f66bfbe38e7e3f4a8b55c1f105720f56719", + "inputArtifactsHash": "sha256:input-artifacts-v1:57037390841778a8287e59fad00e4aad639227e97831be2c85d005267029c7d9", + "templateRevisionHash": "sha256:template-revision-v1:f0e217c6d64a3cbd45a6002fcec9c6412aed6cd82f444e29ea2a6c41caddb2bc", + "provenancePath": "/template-gallery/reviews/flux3_klein_fp8r512_single_reference_edit.reviewed-provenance.json", + "provenanceHash": "sha256:canonical-json:eed9076df64ca183e1c9881c95fad3d6e5c7fd832689a963174c2201866537d8", + "outputPath": "/template-gallery/flux3_klein_fp8r512_single_reference_edit.webp", + "thumbnailPath": "/template-gallery/flux3_klein_fp8r512_single_reference_edit.webp", + "beforePath": "/template-gallery/inputs/flux3_klein_fp8r512_single_reference_edit.before.png", + "beforeMediaHash": "sha256:bytes:d5ba3943d6c0a264860ba0cde18d87e2d9554a3f7328308f4d771e082a9e0c24", + "afterPath": "/template-gallery/flux3_klein_fp8r512_single_reference_edit.webp", + "mediaHash": "sha256:decoded-rgba:bb34822f6dd4fbe03a52d3e267b255ab255947981007d7a80102793cb14f277b", + "mediaType": "image", + "verificationTimestamp": "2026-10-31T15:47:44.205Z", + "qualityReviewPath": "/template-gallery/reviews/flux3_klein_fp8r512_single_reference_edit.quality-review.json", + "qualityReviewHash": "sha256:canonical-json:c34b5b0b3487312c407979b673e7436c5b0805441841ee953805c1bbe5a77200", + "qualityReviewStatus": "approved_reviewed", + "reviewer": "Codex (AI visual assessment); sourav-das (exact-file publication approval)", + "reviewedAt": "2026-10-31T14:59:34.109Z", + "width": 512, + "height": 512 + }, + { + "templateId": "flux3_klein_fp8r512_text_to_image", + "verificationStatus": "reviewed", + "promptSettingsHash": "ps_79b85e32", + "templateLockHash": "tpl_d374824c", + "modelRevision": "black-forest-labs/flux-3-image-klein@8454017f9ebaada30c998fccd9f67a80c7580f68", + "runtimeFingerprint": "sha256:stable-runtime-v1:d6393f9274337dffc2f9e7989dcfadebff77da4f76e3a7d777c0be0451656304", + "graphHash": "sha256:canonical-graph-v1:0912bf4cb4ecd6249bfd591f0880a974e4b7298f5e2f1d8b81603828652af6b5", + "proofLockHash": "sha256:live-proof-lock-v1:69cb0804c8a91ab3f1c61032163e24a70a9a8a85a710e6a468e46689e3e31664", + "backendSourceFingerprint": "sha256:backend-source-v1:a89d4290961bab3bb311b2e073b012eb5e165a2e8a4ae0fe4f46cdd04809c697", + "backendContractFingerprint": "sha256:backend-contract-v1:171b4bddb5bee4bbe062a67e7de8a43ec8662469019a456279553a8cfc5168ef", + "modelCommit": "8454017f9ebaada30c998fccd9f67a80c7580f68", + "modelSetHash": "sha256:model-set-v1:1b505267984a07c91ab451f02b5b2f66bfbe38e7e3f4a8b55c1f105720f56719", + "inputArtifactsHash": "sha256:input-artifacts-v1:4f53cda18c2baa0c0354bb5f9a3ecbe5ed12ab4d8e11ba873c2f11161202b945", + "templateRevisionHash": "sha256:template-revision-v1:8b0b4ba9559b9d0171cfebf115ae58aec211915317bb283651af68a00a5aa7cf", + "provenancePath": "/template-gallery/reviews/flux3_klein_fp8r512_text_to_image.reviewed-provenance.json", + "provenanceHash": "sha256:canonical-json:2e0e652dee228089343aaeb540ee83450392c82f7c101069821238b4d8136ffa", + "outputPath": "/template-gallery/flux3_klein_fp8r512_text_to_image.webp", + "thumbnailPath": "/template-gallery/flux3_klein_fp8r512_text_to_image.webp", + "mediaHash": "sha256:decoded-rgba:c8f68ce3a11ec1f3803c8f039bf8a40345b76bd66c6b31c8c593389cc03d1a55", + "mediaType": "image", + "verificationTimestamp": "2026-10-31T15:47:43.280Z", + "qualityReviewPath": "/template-gallery/reviews/flux3_klein_fp8r512_text_to_image.quality-review.json", + "qualityReviewHash": "sha256:canonical-json:dfd3549d3a739a889d597a4a576d862cd40254b30d54d4cf814f46e843e2e383", + "qualityReviewStatus": "approved_reviewed", + "reviewer": "Codex (AI visual assessment); sourav-das (exact-file publication approval)", + "reviewedAt": "2026-10-31T14:59:34.107Z", + "width": 512, + "height": 512 + }, { "templateId": "high_quality", "verificationStatus": "reviewed", @@ -2296,4 +2612,4 @@ "height": 1024 } ] -} +} \ No newline at end of file diff --git a/scripts/flux3-public-template-planning.test.mjs b/scripts/flux3-public-template-planning.test.mjs index df375a0f..98f0aeb9 100644 --- a/scripts/flux3-public-template-planning.test.mjs +++ b/scripts/flux3-public-template-planning.test.mjs @@ -60,21 +60,23 @@ after(async () => { } }); -const card = (id) => templates.PLANNING_STUDIO_TEMPLATES.find((item) => item.id === id); +const card = (id) => templates.STUDIO_TEMPLATES.find((item) => item.id === id); -test('ten public-intent descriptors remain blocked planning entries without output or qualification claims', () => { +test('ten reviewed recipes enter Experimental without inline execution or hardware qualification claims', () => { assert.equal(new Set(ids).size, 10); for (const id of ids) { const value = card(id); assert.ok(value, id); assert.equal( - templates.STUDIO_TEMPLATES.some((item) => item.id === id), + templates.PLANNING_STUDIO_TEMPLATES.some((item) => item.id === id), false, ); - assert.equal(value.difficulty, 'blocked'); - assert.equal(value.readinessPolicy, 'planning'); - assert.equal(value.example.status, 'blocked'); - assert.match(value.example.blockReason, /grants no Gallery, Auto or hardware qualification/); + assert.equal(value.difficulty, 'advanced'); + assert.equal(value.readinessPolicy, value.inputRequirements ? 'requires_input' : 'runnable'); + assert.equal(value.example.status, 'unverified'); + assert.equal(Object.hasOwn(value.example, 'blockReason'), false); + assert.ok(value.tags.includes('experimental')); + assert.match(value.example.notes, /does not qualify other prompts, placements or hardware/); for (const key of ['outputPath', 'thumbnailPath', 'mediaHash', 'runtimeFingerprint', 'verificationTimestamp']) assert.equal(Object.hasOwn(value.example, key), false, `${id}:${key}`); assert.equal( @@ -216,7 +218,7 @@ test('raw coordinate examples are complete prompt text without seeded layout or assert.equal(Object.hasOwn(value.example.lockedSettings, 'layoutConditioning'), false); assert.match(value.example.notes, /layout_conditioning field remains null/); assert.match(value.example.notes, /PUP stays disabled/); - assert.match(value.example.blockReason, /not a seeded region-widget or generated-table template/); + assert.match(value.example.notes, /not a seeded region-widget or generated-table template/); } }); @@ -273,8 +275,8 @@ test('selected NASA and Monet candidates bind exact adapters and prompts without assert.equal(value.description, expected.prompt); assert.equal(value.negativePrompt, ''); assert.equal(value.example.lockedSeed, expected.seed); - assert.match(value.label, /Test Candidate/); - assert.match(value.example.blockReason, /output publication approval/); + assert.match(value.label, /LoRA Style:/); + assert.equal(value.example.status, 'unverified'); assert.match(value.example.notes, /model_cpu.*autoOffload=true/); assert.match(value.example.notes, /none.*autoOffload=false/); assert.match(value.promptGuide.modelHints.join(' '), /FLUX Kommunity License/); @@ -287,7 +289,7 @@ test('revised plain-radio recipes retain distinct tested seeds', () => { }); // Complete source inputs are not native output, fit or publication proof. -test('all ten fixed-input recipes are source-complete while exact public proof remains pending', () => { +test('all ten reviewed fixed-input recipes retain complete source authority without inline qualification', () => { for (const id of ids) { const value = card(id); assert.deepEqual(inputs.resolveTemplateInputs(value).missingLabels, []); @@ -298,12 +300,12 @@ test('all ten fixed-input recipes are source-complete while exact public proof r for (const id of ids) { const value = card(id); assert.equal( - templates.STUDIO_TEMPLATES.some((item) => item.id === id), + templates.PLANNING_STUDIO_TEMPLATES.some((item) => item.id === id), false, ); - assert.equal(value.readinessPolicy, 'planning'); - assert.equal(value.example.status, 'blocked'); - assert.match(value.example.blockReason, /Native output and template qualification/); + assert.equal(value.readinessPolicy, value.inputRequirements ? 'requires_input' : 'runnable'); + assert.equal(value.example.status, 'unverified'); + assert.equal(Object.hasOwn(value.example, 'blockReason'), false); assert.equal(Object.hasOwn(value.example, 'outputPath'), false); assert.equal(Object.hasOwn(value.example, 'runtimeFingerprint'), false); } @@ -311,7 +313,7 @@ test('all ten fixed-input recipes are source-complete while exact public proof r // This uses captured source metadata and mocked managed input paths only. It // constructs ordinary graphs; it does not read media, execute or qualify models. -test('all ten fixed-input planning cards create exact ordinary FP8r task graphs', async () => { +test('all ten reviewed cards create the unchanged ordinary FP8r task graphs', async () => { const load = (name) => server.ssrLoadModule(`/src/${name}.ts`); const [operations, catalog, choices, requests, creator, flow, defaults, exactness, visualGroups] = await Promise.all([ load('workflow/operationContracts'), @@ -789,7 +791,7 @@ test('all ten fixed-input planning cards create exact ordinary FP8r task graphs' } } assert.deepEqual(value, cardBefore); - assert.equal(value.example.status, 'blocked'); + assert.equal(value.example.status, 'unverified'); } assert.deepEqual(registry, registryBefore); assert.deepEqual(captured, capturedBefore); diff --git a/scripts/image-full-native-template-candidates.test.mjs b/scripts/image-full-native-template-candidates.test.mjs index 9ca286ff..8729dd1b 100644 --- a/scripts/image-full-native-template-candidates.test.mjs +++ b/scripts/image-full-native-template-candidates.test.mjs @@ -38,6 +38,7 @@ const expected = { let server, publicTemplates, candidates, builder, exactness, groups, operations, starterRequests, flowStore; let defaults, fixture, backendCaption, backendCaptionBytes; let readiness, usagePolicies, quality; +let historicalImageIds; const backend = path.resolve('../MoDiff'); before(async () => { @@ -61,6 +62,8 @@ before(async () => { }); const module = await server.ssrLoadModule('/src/studio/templates.ts'); publicTemplates = module.STUDIO_TEMPLATES; + const baseline = JSON.parse(await readFile('tests/fixtures/image-template-creator-contracts.v1.json', 'utf8')); + historicalImageIds = new Set(baseline.templates.map((row) => row.templateId)); candidates = candidateIds.map((id) => module.STUDIO_TEMPLATES.find((item) => item.id === id)); assert.ok(candidates.every(Boolean)); builder = await server.ssrLoadModule('/src/studio/templateOperationWorkflow.ts'); @@ -140,10 +143,10 @@ function build(template, options = {}) { test('two experimental Custom recipes extend image coverage while preserving the historical 54 and publishing no proof', () => { assert.equal( - publicTemplates.filter((item) => item.example?.mediaType === 'image' && !candidateIds.includes(item.id)).length, + publicTemplates.filter((item) => item.example?.mediaType === 'image' && historicalImageIds.has(item.id)).length, 54, ); - assert.equal(publicTemplates.filter((item) => item.example?.mediaType === 'image').length, 56); + assert.equal(publicTemplates.filter((item) => item.example?.mediaType === 'image').length, 66); for (const template of candidates) { assert.equal( publicTemplates.some((item) => item.id === template.id), diff --git a/scripts/modiff-template.test.mjs b/scripts/modiff-template.test.mjs index 95493e01..513de1e9 100644 --- a/scripts/modiff-template.test.mjs +++ b/scripts/modiff-template.test.mjs @@ -2810,9 +2810,19 @@ test('persisted inferred bindings self-repair stale model metadata from canonica } }); -test('template prompts are unique, detailed, and not generic placeholders', () => { - const prompts = templatesModule.STUDIO_TEMPLATES.map((template) => template.prompt); - assert.equal(new Set(prompts).size, prompts.length); +test('template prompt recipes are distinct, detailed, and not generic placeholders', () => { + // A retained comparison may use the same prompt with distinct pinned models. + // Duplicate authoring authority within the same model/task is still refused. + const recipes = templatesModule.STUDIO_TEMPLATES.map((template) => + JSON.stringify([ + template.modelType, + template.mode, + template.modelArtifact, + template.executionSelection?.executionProfileId, + template.prompt, + ]), + ); + assert.equal(new Set(recipes).size, recipes.length); const weakFragments = [ 'one clear subject, cinematic lighting', @@ -2835,6 +2845,10 @@ test('template prompts are unique, detailed, and not generic placeholders', () = pendingAudit.issues.map((issue) => issue.code), ['unresolved_backend_default'], ); + } else if (template.promptQualityPolicy === 'raw_layout_reference') { + assert.equal(template.mode, 'text_to_image'); + assert.ok(template.prompt.length >= 40); + assert.equal(templateQualityModule.auditTemplateQuality(template).passed, true); } else if (template.promptQualityPolicy === 'adapter_reference') { assert.equal(template.category, 'lora', `${template.id} adapter reference prompts are limited to LoRA recipes`); assert.ok(template.prompt.length >= 20, `${template.id} retains a meaningful adapter reference prompt`); @@ -4317,9 +4331,14 @@ test('template browser exposes the complete workflow catalog across task and ada difficulty: 'all', sort: 'recommended', }); - const authoredAdapterIds = STUDIO_TEMPLATES.filter((template) => template.category === 'lora').map( - (template) => template.id, - ); + const visible = (template) => + profilesModule.isStudioModelVisibleInCatalog(template.modelType, { + currentModelType: form.modelType, + includeWorkflowOnly: true, + }); + const authoredAdapterIds = STUDIO_TEMPLATES.filter( + (template) => template.category === 'lora' && visible(template), + ).map((template) => template.id); assert.deepEqual( authoredAdapterIds.filter((templateId) => !adapterTemplates.some((template) => template.id === templateId)), [], @@ -4357,14 +4376,23 @@ test('template browser exposes the complete workflow catalog across task and ada difficulty: 'all', sort: 'recommended', }); - assert.equal(completeInventory.length, STUDIO_TEMPLATES.length); + assert.deepEqual( + completeInventory.map((template) => template.id).sort(), + STUDIO_TEMPLATES.filter(visible) + .map((template) => template.id) + .sort(), + ); assert.ok(completeInventory.length >= defaultInventory.length); }); -test('Experimental discovers all ten declared FLUX3 planning creators without promoting ordinary discovery', () => { +test('Experimental discovers all ten reviewed FLUX3 creators without promoting ordinary discovery', () => { const { STUDIO_TEMPLATES, PLANNING_STUDIO_TEMPLATES } = templatesModule; - const planning = PLANNING_STUDIO_TEMPLATES.filter((template) => /^flux3_klein(?:_base)?_fp8r512_/.test(template.id)); + const planning = STUDIO_TEMPLATES.filter((template) => /^flux3_klein(?:_base)?_fp8r512_/.test(template.id)); assert.equal(planning.length, 10); + assert.equal( + PLANNING_STUDIO_TEMPLATES.some((template) => /^flux3_klein(?:_base)?_fp8r512_/.test(template.id)), + false, + ); const before = JSON.stringify(planning); const form = profilesModule.DEFAULT_STUDIO_FORM; const filter = { @@ -4388,7 +4416,7 @@ test('Experimental discovers all ten declared FLUX3 planning creators without pr assert.equal(shown(planning, { query: 'Ceramic Radio' }).length, 2); assert.equal(shown(planning, { mode: 'text_to_image' }).length, 6); assert.equal(shown(planning, { modelType: 'Flux3ModularPipeline' }).length, 5); - assert.equal(shown(planning, { includeBlocked: false }).length, 0); + assert.equal(shown(planning, { includeBlocked: false }).length, 10); assert.equal(shown(planning, { difficulty: 'starter' }).length, 0); for (const category of ['all', 'recommended', 'image', 'edit', 'adapters']) assert.equal( @@ -4400,17 +4428,15 @@ test('Experimental discovers all ten declared FLUX3 planning creators without pr profilesModule.isStudioModelVisibleInCatalog(template.modelType, { includeWorkflowOnly: true }), false, ); - assert.equal(template.difficulty, 'blocked'); - assert.equal(template.example.status, 'blocked'); - assert.equal(template.readinessPolicy, 'planning'); + assert.equal(template.difficulty, 'advanced'); + assert.equal(template.example.status, 'unverified'); + assert.equal(template.readinessPolicy, template.inputRequirements ? 'requires_input' : 'runnable'); } assert.equal(JSON.stringify(planning), before); }); test('Experimental refuses undeclared or incomplete internal creator selections', () => { - const template = templatesModule.PLANNING_STUDIO_TEMPLATES.find( - (item) => item.id === 'flux3_klein_fp8r512_text_to_image', - ); + const template = templatesModule.STUDIO_TEMPLATES.find((item) => item.id === 'flux3_klein_fp8r512_text_to_image'); const variants = [ { ...template, id: 'undeclared-internal-creator' }, { ...template, executionSelection: undefined }, diff --git a/scripts/operation-authoring.test.mjs b/scripts/operation-authoring.test.mjs index 3de1d8c8..b4804dcb 100644 --- a/scripts/operation-authoring.test.mjs +++ b/scripts/operation-authoring.test.mjs @@ -2419,24 +2419,19 @@ test('typed template identities preserve contract-only workflow discovery and re }), false, ); - assert.equal( - STUDIO_TEMPLATES.some((template) => template.modelType === capability.modelType), - false, - 'Private fixture model types gain no visible Studio cards.', - ); } const privateProfileIds = new Set(payload.evaluationAuthoring.executionProfiles.map((profile) => profile.id)); const privateRecipeIds = new Set( payload.evaluationAuthoring.authoringRecipes.map((recipe) => recipe.authoringRecipeId), ); assert.equal( - PLANNING_STUDIO_TEMPLATES.some( + [...STUDIO_TEMPLATES, ...PLANNING_STUDIO_TEMPLATES].some( (template) => privateProfileIds.has(template.executionSelection?.executionProfileId) || privateRecipeIds.has(template.executionSelection?.authoringRecipeId), ), false, - 'Planning cards cannot promote this fixture private execution-profile or recipe authority.', + 'Public and planning cards cannot promote fixture-private profiles or recipes; a shared model family is not execution authority.', ); for (const alter of [ (p) => { diff --git a/scripts/template-gallery-harness.test.mjs b/scripts/template-gallery-harness.test.mjs index 2c7b0708..7f740ee6 100644 --- a/scripts/template-gallery-harness.test.mjs +++ b/scripts/template-gallery-harness.test.mjs @@ -855,8 +855,8 @@ test('public provenance redacts machine paths and source commit ids', () => { }); test('gallery harness loads all Studio templates from the TypeScript runtime', () => { - assert.equal(runtime.templates.length, 80); - assert.equal(new Set(runtime.templates.map((template) => template.id)).size, 80); + assert.equal(runtime.templates.length, 90); + assert.equal(new Set(runtime.templates.map((template) => template.id)).size, 90); assert.ok(runtime.templates.some((template) => template.id === 'minimax_music3_chamber_pop')); assert.equal( runtime.templates.some((template) => template.id === 'wan_22_i2v_seed_vault'), diff --git a/scripts/template-operation-workflows.test.mjs b/scripts/template-operation-workflows.test.mjs index 2aaed847..5bbed29a 100644 --- a/scripts/template-operation-workflows.test.mjs +++ b/scripts/template-operation-workflows.test.mjs @@ -92,7 +92,7 @@ before(async () => { const { STUDIO_TEMPLATES: currentTemplates } = await server.ssrLoadModule('/src/studio/templates.ts'); // This closed migration fixture protects the original 54 creator contracts. // Additional native SDK image recipes have full coverage in the independent - // image-full-native-template-candidates test, including all public image IDs. + // image-full-native-template-candidates and flux3-public-template-planning tests. const baseline = JSON.parse(await readFile('tests/fixtures/image-template-creator-contracts.v1.json', 'utf8')); const historicalImageIds = new Set(baseline.templates.map((row) => row.templateId)); templates = currentTemplates.filter((item) => item.example?.mediaType !== 'image' || historicalImageIds.has(item.id)); diff --git a/scripts/template-qualification.test.mjs b/scripts/template-qualification.test.mjs index e2b9fb7c..b71f4b69 100644 --- a/scripts/template-qualification.test.mjs +++ b/scripts/template-qualification.test.mjs @@ -276,7 +276,7 @@ function qualificationFixtureProcess( return { result, registryPath, backendDirectory }; } -test('experimental canonical LoRA variants require blocked-probe opt-in and retain their exact graph hash', async (t) => { +test('public experimental LoRA variants require explicit canonical lookup and retain their exact graph hash', async (t) => { for (const templateId of ['flux3_klein_fp8r512_lora_style', 'flux3_klein_base_fp8r512_lora_style']) { await t.test(templateId, async () => { const directory = mkdtempSync(join(tmpdir(), 'modiff-template-qualification-experimental-')); @@ -285,7 +285,7 @@ test('experimental canonical LoRA variants require blocked-probe opt-in and reta try { const ordinary = qualificationFixtureProcess(directory, provenance, [], { experimental: true }); assert.notEqual(ordinary.result.status, 0); - assert.match(ordinary.result.stderr, /not in the runtime catalog/); + assert.match(ordinary.result.stderr, /no current canonical workflow/); assert.equal(existsSync(ordinary.registryPath), false); const explicit = qualificationFixtureProcess(directory, provenance, ['--allow-blocked-probe'], { experimental: true, @@ -308,7 +308,7 @@ test('experimental canonical LoRA variants require blocked-probe opt-in and reta ); assert.ok(manifest.experimentalWorkflows.every((record) => record.qualifiedRuntimeProfiles.length === 0)); const runtime = await loadTemplateRuntime(ROOT, { includePlanning: true }); - assert.equal(runtime.templates.find((item) => item.id === templateId).example.status, 'blocked'); + assert.equal(runtime.templates.find((item) => item.id === templateId).example.status, 'unverified'); } finally { disposeFixture(directory); } diff --git a/scripts/template-quality.test.mjs b/scripts/template-quality.test.mjs index 21db900e..e47db12f 100644 --- a/scripts/template-quality.test.mjs +++ b/scripts/template-quality.test.mjs @@ -45,6 +45,60 @@ function sampleTemplate(overrides = {}) { }; } +test('reviewed FLUX3 blank conditioning is scoped to its exact public profile', () => { + for (const [id, declaration] of [ + ['flux3_klein_fp8r512_text_to_image', 'flux3-distilled-no-negative-input'], + ['flux3_klein_base_fp8r512_text_to_image', 'flux3-base-empty-negative-recipe'], + ]) { + const template = templatesModule.STUDIO_TEMPLATES.find((item) => item.id === id); + assert.ok(template); + assert.equal(qualityModule.auditTemplateQuality(template).negative.policy.declarationId, declaration); + const foreign = { + ...template, + executionSelection: { ...template.executionSelection, executionProfileId: 'unreviewed-profile' }, + }; + assert.ok( + qualityModule.auditTemplateQuality(foreign).issues.some((issue) => issue.code === 'blank_negative_not_allowed'), + ); + } +}); + +test('literal layout prompts require a complete bounded caption, box and visual description', () => { + const template = templatesModule.STUDIO_TEMPLATES.find( + (item) => item.id === 'flux3_klein_fp8r512_raw_coordinate_prompt', + ); + assert.ok(template); + assert.equal(template.promptQualityPolicy, 'raw_layout_reference'); + assert.equal(qualityModule.auditTemplateQuality(template).passed, true); + const caption = 'A still life with .'; + const item = { id: 'apple_1', bbox: [250, 125, 750, 875], desc: 'A red apple, with a green leaf.' }; + const invalid = [ + 'A still life with .\n' + JSON.stringify([item]), + caption + '\n' + JSON.stringify([{ ...item, bbox: [750, 125, 250, 875] }]), + caption + '\n' + JSON.stringify([{ ...item, bbox: [250, 125, 1001, 875] }]), + caption + '\n' + JSON.stringify([{ ...item, bbox: [250, 125, 750] }]), + caption + '\n' + JSON.stringify([{ ...item, bbox: [250, 125, 750, 875.5] }]), + caption + '\n' + JSON.stringify([{ ...item, desc: 'x' }]), + caption + '\n' + JSON.stringify([{ ...item, extra: 'undeclared' }]), + caption + '\n' + JSON.stringify([item, item]), + caption + '\n[]', + caption + '\n' + JSON.stringify([item]) + '\ntrailing text', + ]; + for (const prompt of invalid) { + assert.equal(qualityModule.auditTemplateQuality({ ...template, prompt }).passed, false, prompt); + } + const untreated = caption + '\n' + JSON.stringify([{ ...item, desc: 'An apple resting beside a leaf.' }]); + const missingTreatment = qualityModule.auditTemplateQuality({ ...template, prompt: untreated }); + assert.ok(missingTreatment.issues.some((issue) => issue.semanticGroup === 'visual_treatment')); +}); + +test('a habitat is concrete focal content without rewriting an accepted prompt', () => { + const template = templatesModule.STUDIO_TEMPLATES.find((item) => item.id === 'flux3_klein_fp8r512_lora_style'); + const audit = qualityModule.auditTemplateQuality(template); + assert.ok(audit.matchedSemanticGroups.includes('focal_content')); + assert.equal(audit.passed, true); +}); + test('the complete catalog audits authored prompts and reports backend defaults as unresolved', () => { const audits = qualityModule.auditTemplateCatalog(templatesModule.STUDIO_TEMPLATES); const unresolved = audits.filter((audit) => audit.promptResolution === 'unresolved_backend_default'); diff --git a/src/studio/templateAssetSource.json b/src/studio/templateAssetSource.json index 4c458863..2ec7c098 100644 --- a/src/studio/templateAssetSource.json +++ b/src/studio/templateAssetSource.json @@ -4,16 +4,15 @@ "localBasePath": "/template-gallery", "repoType": "dataset", "repoId": "sourav-das/modiff-template-gallery", - "revision": "b27198159c30d0c81aef397c188a7826866e5027", + "revision": "a5b07804940979c17fa24f80fbde4671da5a10b3", "pathPrefix": "template-gallery", "assetManifestPath": "_modiff/template-assets.v1.json", - "assetSetId": "sha256:canonical-json:5ec869b755a6ce04a789d6835819da150493bfaef8a6bc1480f0274ba05bcab9", - "completeAssetSetId": "sha256:canonical-json:b859b8cb1720f8fcca245726686e2d3e4c2a93e74a9be3d9d90567d93c277700", + "assetSetId": "sha256:canonical-json:a3a91265d7273bf172e52b08e0929c754e9019578344f896284c033132b2b34b", + "completeAssetSetId": "sha256:canonical-json:86c0298bbdb02531cdb3f031d391493bac818b0dd71c103abb1a540da21925f6", "unavailableAssets": [ "template-gallery/ace_step_chinese_new_year_lora.card-poster.png", "template-gallery/ace_step_chinese_new_year_lora.wav", "template-gallery/flux_lora_ghibli_story.card-poster.webp", - "template-gallery/flux_lora_ghibli_story.webp", - "template-gallery/inputs/flux3-packaging-protected-photo-mask-v1.png" + "template-gallery/flux_lora_ghibli_story.webp" ] } diff --git a/src/studio/templateQuality.ts b/src/studio/templateQuality.ts index 526297f5..62ae4fbf 100644 --- a/src/studio/templateQuality.ts +++ b/src/studio/templateQuality.ts @@ -36,6 +36,7 @@ export type TemplateNegativeCategory = 'artifact' | 'structure' | 'task_fidelity export type TemplateQualityIssueCode = | 'unresolved_backend_default' + | 'invalid_layout_reference' | 'missing_semantic_group' | 'blank_negative_not_allowed' | 'too_few_negative_constraints' @@ -102,6 +103,7 @@ const SEMANTIC_GROUPS: Record = focal_content: { label: 'a concrete subject, scene, or designed artifact', patterns: [ + /\b(habitat|spacecraft|space station|planet|torus)\b/i, /\b(subject|scene|product|device|object|character|portrait|person|building|architecture|interior|exterior)\b/i, /\b(worker|keeper|operator|courier|engineer|mechanic|artisan|veterinarian|musician|driver|researcher|watchman)\b/i, /\b(bottle|can|radio|camera|poster|logo|packag\w*|lamp|helmet|chair|headphone|observatory|greenhouse)\b/i, @@ -231,6 +233,20 @@ const REQUIRED_SEMANTIC_GROUPS: Record pattern.test(prompt)); } +/** Audit literal prompt text only. This never seeds a layout widget or executes JSON. */ +function rawLayoutSemanticGroups(prompt: string): TemplateSemanticGroup[] | null { + if (prompt.length > 16_384) return null; + const lines = prompt.split('\n'); + const [caption, encoded] = lines; + if (lines.length !== 2 || typeof caption !== 'string' || typeof encoded !== 'string') return null; + if (!caption.trim() || caption.length > 512) return null; + let items: unknown; + try { + items = JSON.parse(encoded); + } catch { + return null; + } + if (!Array.isArray(items) || items.length < 1 || items.length > 32) return null; + const names = new Set(); + const descriptions: string[] = []; + for (const item of items) { + if (!item || typeof item !== 'object' || Array.isArray(item)) return null; + if (Object.keys(item).sort().join(',') !== 'bbox,desc,id') return null; + const { id, bbox, desc } = item as Record; + if (typeof id !== 'string' || !/^[A-Za-z][A-Za-z0-9_]{0,63}$/u.test(id) || names.has(id)) return null; + if ( + !Array.isArray(bbox) || + bbox.length !== 4 || + !bbox.every((value) => Number.isSafeInteger(value) && value >= 0 && value <= 1000) || + bbox[0] >= bbox[2] || + bbox[1] >= bbox[3] + ) + return null; + if (typeof desc !== 'string' || desc !== desc.trim() || desc.length < 12 || desc.length > 512) return null; + names.add(id); + descriptions.push(desc); + } + const placeholders = [...caption.matchAll(/<([A-Za-z][A-Za-z0-9_]{0,63})>/gu)].map((match) => match[1] ?? ''); + if ( + placeholders.length !== names.size || + new Set(placeholders).size !== names.size || + placeholders.some((id) => !names.has(id)) || + /[<>]/u.test(caption.replace(/<[A-Za-z][A-Za-z0-9_]{0,63}>/gu, '')) + ) + return null; + const groups: TemplateSemanticGroup[] = ['focal_content', 'spatial_design']; + const color = /\b(red|orange|yellow|green|blue|purple|pink|brown|black|white|gr[ae]y|gold|silver|cobalt|amber)\b/iu; + if (descriptions.every((desc) => color.test(desc) || templatePromptMatchesSemanticGroup(desc, 'visual_treatment'))) + groups.push('visual_treatment'); + return groups; +} + export function getTemplateNegativePolicy( template: Pick, ): TemplateNegativePolicy { @@ -428,8 +492,10 @@ export function auditTemplateQuality( ? 'backend_default' : 'unresolved_backend_default' : 'template'; + const rawLayout = template.promptQualityPolicy === 'raw_layout_reference'; + const layoutGroups = rawLayout ? rawLayoutSemanticGroups(resolvedPrompt ?? '') : null; const matchedSemanticGroups = requiredSemanticGroups.filter((group) => - templatePromptMatchesSemanticGroup(resolvedPrompt ?? '', group), + rawLayout ? layoutGroups?.includes(group) : templatePromptMatchesSemanticGroup(resolvedPrompt ?? '', group), ); const semanticIssues: TemplateQualityIssue[] = promptResolution === 'unresolved_backend_default' @@ -449,7 +515,16 @@ export function auditTemplateQuality( message: `Prompt is missing ${SEMANTIC_GROUPS[group].label}.`, })); const negative = analyzeTemplateNegativePrompt(template); - const issues = [...semanticIssues, ...negative.issues]; + const layoutIssues: TemplateQualityIssue[] = + rawLayout && !layoutGroups + ? [ + { + code: 'invalid_layout_reference', + message: 'Literal layout prompts require one caption and a bounded, matching id/bbox/desc JSON array.', + }, + ] + : []; + const issues = [...layoutIssues, ...semanticIssues, ...negative.issues]; return { templateId: template.id, diff --git a/src/studio/templates.ts b/src/studio/templates.ts index 73f93e57..65de6b29 100644 --- a/src/studio/templates.ts +++ b/src/studio/templates.ts @@ -4011,18 +4011,26 @@ function protectedPhotoSettings(cropTop: number): StudioTemplateWorkflowBlockSet const NORMALIZED_STUDIO_TEMPLATES: StudioTemplate[] = [ ...BASE_STUDIO_TEMPLATES.map(withVideoDeliveryWorkflow), - // Kept in PLANNING_STUDIO_TEMPLATES until exact runtime/media/rights review. + // Reviewed fixed-input examples retain their experimental Custom contracts. withTemplateRecipeDefaults( { id: 'flux3_klein_fp8r512_text_to_image', - label: 'FLUX 3 Distilled Quick 512 FP8r - Text to Image: Ceramic Radio v2', + label: 'FLUX 3 Image Klein Distilled — Text to Image: Ceramic Radio v2', modelDisplayName: 'FLUX 3 Image Klein Distilled', mode: 'text_to_image', modelType: 'Flux3DistilledModularPipeline', runtimeReuseKey: 'Flux3DistilledModularPipeline:fp8r:bfloat16:none:resident:none:expert', category: 'flux', - tags: ['flux3', 'public-intent', 'planning', 'text-to-image', 'fp8r', '512-square', 'unqualified-recipe'], - difficulty: 'blocked', + tags: [ + 'flux3', + 'experimental', + 'reviewed-example', + 'text-to-image', + 'fp8r', + '512-square', + 'bounded-custom-recipe', + ], + difficulty: 'advanced', modelArtifact: { source: 'hub', value: 'black-forest-labs/flux-3-image-klein', @@ -4036,15 +4044,16 @@ const NORMALIZED_STUDIO_TEMPLATES: StudioTemplate[] = [ 'modules.Image.Preview', ], vramEstimate: - 'Unmeasured for this exact 512 FP8r recipe. FP8r storage does not guarantee native FP8 GEMM or device fit.', - runtimeEstimate: 'Unmeasured distinct 512 x 512 FP8r recipe; original 1024 receipts are not reused.', + 'FP8r storage does not guarantee native FP8 GEMM or fit on other hardware. Use the live resource check; fixed-input examples were tested on the reviewed Linux host.', + runtimeEstimate: + 'Fixed-input output accepted on the tested Linux host; timing depends on model, task and placement.', description: TWO_CONTROL_RADIO_PROMPT, userGoal: 'Inspect the ordinary editable graph and select only the declared runtime and prompt enhancement choices.', presetId: 'flux_fast', example: { mediaType: 'image', - status: 'blocked', + status: 'unverified', lockedSeed: 481402, modelRevision: '8454017f9ebaada30c998fccd9f67a80c7580f68', lockedSettings: { @@ -4065,11 +4074,9 @@ const NORMALIZED_STUDIO_TEMPLATES: StudioTemplate[] = [ width: 512, height: 512, }, - runtimeEstimate: 'Pending measured exact 512 FP8r recipe', - blockReason: - 'Native output and template qualification, approved new output media and rights review are pending; this distinct 512 FP8r recipe grants no Gallery, Auto or hardware qualification.', + runtimeEstimate: 'Reviewed fixed-input example on Linux; timing varies by placement', notes: - 'No generated output, public output media, template receipt or fit measurement is attached. Diffusion uses FP8r storage, BF16 compute and no added quantization. PUP starts disabled; its explicit FP32/NF4 choices are separate.', + 'A reviewed fixed-input output is registered with its original provenance; this example does not qualify other prompts, placements or hardware. Diffusion uses FP8r storage, BF16 compute and no added quantization. PUP starts disabled; its explicit FP32/NF4 choices are separate.', }, executionSelection: IMAGE_TEMPLATE_EXECUTION_SELECTIONS.flux3_klein_fp8r512_text_to_image, promptGuide: { @@ -4087,14 +4094,22 @@ const NORMALIZED_STUDIO_TEMPLATES: StudioTemplate[] = [ withTemplateRecipeDefaults( { id: 'flux3_klein_fp8r512_single_reference_edit', - label: 'FLUX 3 Distilled Quick 512 FP8r - Image Edit: Amber Glass', + label: 'FLUX 3 Image Klein Distilled — Image Edit: Amber Glass', modelDisplayName: 'FLUX 3 Image Klein Distilled', mode: 'edit_image', modelType: 'Flux3DistilledModularPipeline', runtimeReuseKey: 'Flux3DistilledModularPipeline:fp8r:bfloat16:none:resident:none:expert', category: 'edit', - tags: ['flux3', 'public-intent', 'planning', 'single-reference-edit', 'fp8r', '512-square', 'unqualified-recipe'], - difficulty: 'blocked', + tags: [ + 'flux3', + 'experimental', + 'reviewed-example', + 'single-reference-edit', + 'fp8r', + '512-square', + 'bounded-custom-recipe', + ], + difficulty: 'advanced', modelArtifact: { source: 'hub', value: 'black-forest-labs/flux-3-image-klein', @@ -4110,15 +4125,16 @@ const NORMALIZED_STUDIO_TEMPLATES: StudioTemplate[] = [ 'modules.Image.Load', ], vramEstimate: - 'Unmeasured for this exact 512 FP8r recipe. FP8r storage does not guarantee native FP8 GEMM or device fit.', - runtimeEstimate: 'Unmeasured distinct 512 x 512 FP8r recipe; original 1024 receipts are not reused.', + 'FP8r storage does not guarantee native FP8 GEMM or fit on other hardware. Use the live resource check; fixed-input examples were tested on the reviewed Linux host.', + runtimeEstimate: + 'Fixed-input output accepted on the tested Linux host; timing depends on model, task and placement.', description: 'Edit reference image 1: change the cobalt-blue transparent glass cube to warm amber transparent glass. Preserve its square silhouette, thick glass base, camera perspective, position on the pale rough stone slab, neutral background, soft light direction and grounded shadow. Keep the object unbranded; add no objects, logos or text.', userGoal: 'Use the included approved cobalt glass input and review the amber-color edit.', presetId: 'flux_fast', example: { mediaType: 'image', - status: 'blocked', + status: 'unverified', lockedSeed: 481002, modelRevision: '8454017f9ebaada30c998fccd9f67a80c7580f68', lockedSettings: { @@ -4139,11 +4155,9 @@ const NORMALIZED_STUDIO_TEMPLATES: StudioTemplate[] = [ width: 512, height: 512, }, - runtimeEstimate: 'Pending measured exact 512 FP8r recipe', - blockReason: - 'Native output and template qualification, approved new output media and rights review are pending; this distinct 512 FP8r recipe grants no Gallery, Auto or hardware qualification.', + runtimeEstimate: 'Reviewed fixed-input example on Linux; timing varies by placement', notes: - 'No generated output, public output media, template receipt or fit measurement is attached. Diffusion uses FP8r storage, BF16 compute and no added quantization. PUP starts disabled; its explicit FP32/NF4 choices are separate.', + 'A reviewed fixed-input output is registered with its original provenance; this example does not qualify other prompts, placements or hardware. Diffusion uses FP8r storage, BF16 compute and no added quantization. PUP starts disabled; its explicit FP32/NF4 choices are separate.', }, inputRequirements: { referenceImages: 1, @@ -4188,14 +4202,22 @@ const NORMALIZED_STUDIO_TEMPLATES: StudioTemplate[] = [ withTemplateRecipeDefaults( { id: 'flux3_klein_fp8r512_multi_reference_edit', - label: 'FLUX 3 Distilled Quick 512 FP8r - Two-Reference Edit + Protected Packaging v2', + label: 'FLUX 3 Image Klein Distilled — Two-Reference Edit + Protected Packaging v2', modelDisplayName: 'FLUX 3 Image Klein Distilled', mode: 'edit_image', modelType: 'Flux3DistilledModularPipeline', runtimeReuseKey: 'Flux3DistilledModularPipeline:fp8r:bfloat16:none:resident:none:expert', category: 'reference', - tags: ['flux3', 'public-intent', 'planning', 'multi-reference-edit', 'fp8r', '512-square', 'unqualified-recipe'], - difficulty: 'blocked', + tags: [ + 'flux3', + 'experimental', + 'reviewed-example', + 'multi-reference-edit', + 'fp8r', + '512-square', + 'bounded-custom-recipe', + ], + difficulty: 'advanced', modelArtifact: { source: 'hub', value: 'black-forest-labs/flux-3-image-klein', @@ -4215,8 +4237,9 @@ const NORMALIZED_STUDIO_TEMPLATES: StudioTemplate[] = [ 'modules.Image.Load', ], vramEstimate: - 'Unmeasured for this exact 512 FP8r recipe. FP8r storage does not guarantee native FP8 GEMM or device fit.', - runtimeEstimate: 'Unmeasured distinct 512 x 512 FP8r recipe; original 1024 receipts are not reused.', + 'FP8r storage does not guarantee native FP8 GEMM or fit on other hardware. Use the live resource check; fixed-input examples were tested on the reviewed Linux host.', + runtimeEstimate: + 'Fixed-input output accepted on the tested Linux host; timing depends on model, task and placement.', description: 'Use reference image 1 as the cobalt-blue glass product subject. Use reference image 2 as the flat packaging dieline: preserve the cream background, black panel outlines, fold guides, rounded placeholder panels and yellow accent bands. Place a small coherent product photograph of the blue glass cube in the large central panel, leaving the structural lines and other panels intact. Keep the result a flat unfolded packaging design. Do not duplicate the product, add people, invent a brand or add readable text.', userGoal: @@ -4224,7 +4247,7 @@ const NORMALIZED_STUDIO_TEMPLATES: StudioTemplate[] = [ presetId: 'flux_fast', example: { mediaType: 'image', - status: 'blocked', + status: 'unverified', lockedSeed: 481003, modelRevision: '8454017f9ebaada30c998fccd9f67a80c7580f68', lockedSettings: { @@ -4243,11 +4266,9 @@ const NORMALIZED_STUDIO_TEMPLATES: StudioTemplate[] = [ }, // The primary graph output is the protected PNG, after 512px generation. expectedOutput: { width: 1024, height: 1024 }, - runtimeEstimate: 'Pending measured exact 512 FP8r recipe', - blockReason: - 'Native output and template qualification, approved new output media and rights review are pending; this distinct 512 FP8r recipe grants no Gallery, Auto or hardware qualification.', + runtimeEstimate: 'Reviewed fixed-input example on Linux; timing varies by placement', notes: - 'No generated output, public output media, template receipt or fit measurement is attached. Diffusion uses FP8r storage, BF16 compute and no added quantization. PUP starts disabled; its explicit FP32/NF4 choices are separate. Generation keeps the two original references in order. The separate ordinary compositor uses the second reference and the authored mask to preserve guide pixels; this is generated plus composited, with no native Fill claim. Original failed recipes remain historical. The new mask and public outputs still require publication and technical acceptance.', + 'A reviewed fixed-input output is registered with its original provenance; this example does not qualify other prompts, placements or hardware. Diffusion uses FP8r storage, BF16 compute and no added quantization. PUP starts disabled; its explicit FP32/NF4 choices are separate. Generation keeps the two original references in order. The separate ordinary compositor uses the second reference and the authored mask to preserve guide pixels; this is generated plus composited, with no native Fill claim. Original failed recipes remain historical. The authored mask and selected final PNG have exact-file publication approval.', }, inputRequirements: { referenceImages: 2, @@ -4305,7 +4326,8 @@ const NORMALIZED_STUDIO_TEMPLATES: StudioTemplate[] = [ withTemplateRecipeDefaults( { id: 'flux3_klein_fp8r512_raw_coordinate_prompt', - label: 'FLUX 3 Distilled Quick 512 FP8r - Raw Prompt Coordinates: Apple', + promptQualityPolicy: 'raw_layout_reference', + label: 'FLUX 3 Image Klein Distilled — Raw Prompt Coordinates: Apple', modelDisplayName: 'FLUX 3 Image Klein Distilled', mode: 'text_to_image', modelType: 'Flux3DistilledModularPipeline', @@ -4313,14 +4335,14 @@ const NORMALIZED_STUDIO_TEMPLATES: StudioTemplate[] = [ category: 'reference', tags: [ 'flux3', - 'public-intent', - 'planning', + 'experimental', + 'reviewed-example', 'fp8r', '512-square', - 'unqualified-recipe', + 'bounded-custom-recipe', 'raw-prompt-coordinates', ], - difficulty: 'blocked', + difficulty: 'advanced', modelArtifact: { source: 'hub', value: 'black-forest-labs/flux-3-image-klein', @@ -4334,15 +4356,16 @@ const NORMALIZED_STUDIO_TEMPLATES: StudioTemplate[] = [ 'modules.Image.Preview', ], vramEstimate: - 'Unmeasured for this exact 512 FP8r recipe. FP8r storage does not guarantee native FP8 GEMM or device fit.', - runtimeEstimate: 'Unmeasured distinct 512 x 512 FP8r recipe; original 1024 receipts are not reused.', + 'FP8r storage does not guarantee native FP8 GEMM or fit on other hardware. Use the live resource check; fixed-input examples were tested on the reviewed Linux host.', + runtimeEstimate: + 'Fixed-input output accepted on the tested Linux host; timing depends on model, task and placement.', description: 'A still life with .\n[{"id":"apple_1","bbox":[250,125,750,875],"desc":"A red apple, with a green leaf."}]', userGoal: 'Inspect the literal raw coordinate prompt; the structured-layout widget remains unset/null.', presetId: 'flux_fast', example: { mediaType: 'image', - status: 'blocked', + status: 'unverified', lockedSeed: 481004, modelRevision: '8454017f9ebaada30c998fccd9f67a80c7580f68', lockedSettings: { @@ -4363,11 +4386,9 @@ const NORMALIZED_STUDIO_TEMPLATES: StudioTemplate[] = [ width: 512, height: 512, }, - runtimeEstimate: 'Pending measured exact 512 FP8r recipe', - blockReason: - 'Native output and template qualification, approved new output media and rights review are pending; this distinct 512 FP8r recipe grants no Gallery, Auto or hardware qualification. Spatial adherence is unproved. This is not a seeded region-widget or generated-table template.', + runtimeEstimate: 'Reviewed fixed-input example on Linux; timing varies by placement', notes: - 'The raw prompt uses the existing shared layout fixture syntax, y-first integer coordinates [250,125,750,875]. The layout_conditioning field remains null through normal T2I defaults. PUP stays disabled so the literal table is not rewritten. No source-reference IDs, widget geometry, strict generated-table completion or F3-06 proof is claimed.', + 'A reviewed fixed-input output is registered with its original provenance; this example does not qualify other prompts, placements or hardware. The raw prompt uses the existing shared layout fixture syntax, y-first integer coordinates [250,125,750,875]. The layout_conditioning field remains null through normal T2I defaults. PUP stays disabled so the literal table is not rewritten. No source-reference IDs, widget geometry, strict generated-table completion or F3-06 proof is claimed. This is not a seeded region-widget or generated-table template.', }, executionSelection: IMAGE_TEMPLATE_EXECUTION_SELECTIONS.flux3_klein_fp8r512_raw_coordinate_prompt, promptGuide: { @@ -4388,14 +4409,14 @@ const NORMALIZED_STUDIO_TEMPLATES: StudioTemplate[] = [ withTemplateRecipeDefaults( { id: 'flux3_klein_fp8r512_lora_style', - label: 'FLUX 3 Distilled Quick 512 FP8r - NASA Concept-Art LoRA v2 (Test Candidate)', + label: 'FLUX 3 Image Klein Distilled — LoRA Style: Ring Habitat', modelDisplayName: 'FLUX 3 Image Klein Distilled', mode: 'text_to_image', modelType: 'Flux3DistilledModularPipeline', runtimeReuseKey: 'Flux3DistilledModularPipeline:fp8r:bfloat16:none:resident:none:expert', category: 'lora', - tags: ['flux3', 'public-intent', 'planning', 'lora-style', 'fp8r', '512-square', 'unqualified-recipe'], - difficulty: 'blocked', + tags: ['flux3', 'experimental', 'reviewed-example', 'lora-style', 'fp8r', '512-square', 'bounded-custom-recipe'], + difficulty: 'advanced', modelArtifact: { source: 'hub', value: 'black-forest-labs/flux-3-image-klein', @@ -4410,15 +4431,15 @@ const NORMALIZED_STUDIO_TEMPLATES: StudioTemplate[] = [ 'modules.ModularDiffusers.Lora', ], vramEstimate: - 'Unmeasured for this exact 512 FP8r recipe. FP8r storage does not guarantee native FP8 GEMM or device fit.', - runtimeEstimate: 'Unmeasured distinct 512 x 512 FP8r recipe; original 1024 receipts are not reused.', + 'FP8r storage does not guarantee native FP8 GEMM or fit on other hardware. Use the live resource check; fixed-input examples were tested on the reviewed Linux host.', + runtimeEstimate: + 'Fixed-input output accepted on the tested Linux host; timing depends on model, task and placement.', description: RING_HABITAT_PROMPT, - userGoal: - 'Inspect the pinned NASA concept-art adapter and exact public recipe; style quality and publication remain pending.', + userGoal: 'Use the pinned concept-art adapter and review the generated result under its declared terms.', presetId: 'flux_fast', example: { mediaType: 'image', - status: 'blocked', + status: 'unverified', lockedSeed: 481205, modelRevision: '8454017f9ebaada30c998fccd9f67a80c7580f68', lockedSettings: { @@ -4439,11 +4460,9 @@ const NORMALIZED_STUDIO_TEMPLATES: StudioTemplate[] = [ width: 512, height: 512, }, - runtimeEstimate: 'Pending measured exact 512 FP8r recipe', - blockReason: - 'Native output and template qualification, style-quality review and output publication approval remain pending for this exact public recipe; this distinct 512 FP8r recipe grants no Gallery, Auto or hardware qualification. The selected adapter declares FLUX Kommunity License v1.0; its terms do not approve generated output publication.', + runtimeEstimate: 'Reviewed fixed-input example on Linux; timing varies by placement', notes: - 'No public output media, template receipt or fit measurement is attached. Local model_cpu trials with autoOffload=true are separate from this locked none / autoOffload=false recipe; their subtle visual changes do not establish the promised NASA concept-art style. Diffusion uses FP8r storage, BF16 compute and no added quantization. PUP starts disabled; its explicit FP32/NF4 choices are separate.', + 'A reviewed fixed-input output is registered with its original provenance; this example does not qualify other prompts, placements or hardware. Local model_cpu trials with autoOffload=true are separate from this locked none / autoOffload=false recipe; their subtle visual changes do not establish the promised NASA concept-art style. Diffusion uses FP8r storage, BF16 compute and no added quantization. PUP starts disabled; its explicit FP32/NF4 choices are separate.', }, evidencePolicy: 'generated', workflowBlocks: ['lora'], @@ -4474,7 +4493,7 @@ const NORMALIZED_STUDIO_TEMPLATES: StudioTemplate[] = [ 'The exact public source profile is required; package qualification alone is not a template image proof.', 'PUP is advisory and starts disabled. No authored regions: ordinary Enable selects declared raw FP32. Select BF16 + NF4 explicitly if desired; this never changes diffusion FP8r storage selection.', 'With authored regions, append wording preserves them. Constrained table generation is a separate explicit Expert choice; do not enable it on a null layout.', - "The pinned nsc7 adapter declares FLUX Kommunity License v1.0 and recommends Distilled scale 0.75-1.0. This candidate fixes scale 0.75 and the final nsc7 style trigger. Training-data provenance is the author's statement; no NASA endorsement or public output approval is implied.", + "The pinned nsc7 adapter declares FLUX Kommunity License v1.0 and recommends Distilled scale 0.75-1.0. This recipe fixes scale 0.75 and the final nsc7 style trigger. Training-data provenance is the author's statement; no NASA endorsement is implied.", ], }, }, @@ -4484,14 +4503,22 @@ const NORMALIZED_STUDIO_TEMPLATES: StudioTemplate[] = [ withTemplateRecipeDefaults( { id: 'flux3_klein_base_fp8r512_text_to_image', - label: 'FLUX 3 Base 512 FP8r (50 steps) - Text to Image: Ceramic Radio v2', + label: 'FLUX 3 Image Klein Base — Text to Image: Ceramic Radio v2', modelDisplayName: 'FLUX 3 Image Klein Base', mode: 'text_to_image', modelType: 'Flux3ModularPipeline', runtimeReuseKey: 'Flux3ModularPipeline:fp8r:bfloat16:none:resident:none:expert', category: 'flux', - tags: ['flux3', 'public-intent', 'planning', 'text-to-image', 'fp8r', '512-square', 'unqualified-recipe'], - difficulty: 'blocked', + tags: [ + 'flux3', + 'experimental', + 'reviewed-example', + 'text-to-image', + 'fp8r', + '512-square', + 'bounded-custom-recipe', + ], + difficulty: 'advanced', modelArtifact: { source: 'hub', value: 'black-forest-labs/flux-3-image-klein-base', @@ -4506,15 +4533,16 @@ const NORMALIZED_STUDIO_TEMPLATES: StudioTemplate[] = [ 'modules.ModularDiffusers.Guider', ], vramEstimate: - 'Unmeasured for this exact 512 FP8r recipe. FP8r storage does not guarantee native FP8 GEMM or device fit.', - runtimeEstimate: 'Unmeasured distinct 512 x 512 FP8r recipe; original 1024 receipts are not reused.', + 'FP8r storage does not guarantee native FP8 GEMM or fit on other hardware. Use the live resource check; fixed-input examples were tested on the reviewed Linux host.', + runtimeEstimate: + 'Fixed-input output accepted on the tested Linux host; timing depends on model, task and placement.', description: TWO_CONTROL_RADIO_PROMPT, userGoal: 'Inspect the ordinary editable graph and select only the declared runtime and prompt enhancement choices.', presetId: 'flux_quality', example: { mediaType: 'image', - status: 'blocked', + status: 'unverified', lockedSeed: 481401, modelRevision: '1469d27cfb9bb1bd81d3a93f5a023b39dbf136e4', lockedSettings: { @@ -4535,11 +4563,9 @@ const NORMALIZED_STUDIO_TEMPLATES: StudioTemplate[] = [ width: 512, height: 512, }, - runtimeEstimate: 'Pending measured exact 512 FP8r recipe', - blockReason: - 'Native output and template qualification, approved new output media and rights review are pending; this distinct 512 FP8r recipe grants no Gallery, Auto or hardware qualification.', + runtimeEstimate: 'Reviewed fixed-input example on Linux; timing varies by placement', notes: - 'No generated output, public output media, template receipt or fit measurement is attached. Diffusion uses FP8r storage, BF16 compute and no added quantization. PUP starts disabled; its explicit FP32/NF4 choices are separate.', + 'A reviewed fixed-input output is registered with its original provenance; this example does not qualify other prompts, placements or hardware. Diffusion uses FP8r storage, BF16 compute and no added quantization. PUP starts disabled; its explicit FP32/NF4 choices are separate.', }, executionSelection: IMAGE_TEMPLATE_EXECUTION_SELECTIONS.flux3_klein_base_fp8r512_text_to_image, promptGuide: { @@ -4557,14 +4583,22 @@ const NORMALIZED_STUDIO_TEMPLATES: StudioTemplate[] = [ withTemplateRecipeDefaults( { id: 'flux3_klein_base_fp8r512_single_reference_edit', - label: 'FLUX 3 Base 512 FP8r (50 steps) - Image Edit: Amber Glass', + label: 'FLUX 3 Image Klein Base — Image Edit: Amber Glass', modelDisplayName: 'FLUX 3 Image Klein Base', mode: 'edit_image', modelType: 'Flux3ModularPipeline', runtimeReuseKey: 'Flux3ModularPipeline:fp8r:bfloat16:none:resident:none:expert', category: 'edit', - tags: ['flux3', 'public-intent', 'planning', 'single-reference-edit', 'fp8r', '512-square', 'unqualified-recipe'], - difficulty: 'blocked', + tags: [ + 'flux3', + 'experimental', + 'reviewed-example', + 'single-reference-edit', + 'fp8r', + '512-square', + 'bounded-custom-recipe', + ], + difficulty: 'advanced', modelArtifact: { source: 'hub', value: 'black-forest-labs/flux-3-image-klein-base', @@ -4581,15 +4615,16 @@ const NORMALIZED_STUDIO_TEMPLATES: StudioTemplate[] = [ 'modules.ModularDiffusers.Guider', ], vramEstimate: - 'Unmeasured for this exact 512 FP8r recipe. FP8r storage does not guarantee native FP8 GEMM or device fit.', - runtimeEstimate: 'Unmeasured distinct 512 x 512 FP8r recipe; original 1024 receipts are not reused.', + 'FP8r storage does not guarantee native FP8 GEMM or fit on other hardware. Use the live resource check; fixed-input examples were tested on the reviewed Linux host.', + runtimeEstimate: + 'Fixed-input output accepted on the tested Linux host; timing depends on model, task and placement.', description: 'Edit reference image 1: change the cobalt-blue transparent glass cube to warm amber transparent glass. Preserve its square silhouette, thick glass base, camera perspective, position on the pale rough stone slab, neutral background, soft light direction and grounded shadow. Keep the object unbranded; add no objects, logos or text.', userGoal: 'Use the included approved cobalt glass input and review the amber-color edit.', presetId: 'flux_quality', example: { mediaType: 'image', - status: 'blocked', + status: 'unverified', lockedSeed: 481102, modelRevision: '1469d27cfb9bb1bd81d3a93f5a023b39dbf136e4', lockedSettings: { @@ -4610,11 +4645,9 @@ const NORMALIZED_STUDIO_TEMPLATES: StudioTemplate[] = [ width: 512, height: 512, }, - runtimeEstimate: 'Pending measured exact 512 FP8r recipe', - blockReason: - 'Native output and template qualification, approved new output media and rights review are pending; this distinct 512 FP8r recipe grants no Gallery, Auto or hardware qualification.', + runtimeEstimate: 'Reviewed fixed-input example on Linux; timing varies by placement', notes: - 'No generated output, public output media, template receipt or fit measurement is attached. Diffusion uses FP8r storage, BF16 compute and no added quantization. PUP starts disabled; its explicit FP32/NF4 choices are separate.', + 'A reviewed fixed-input output is registered with its original provenance; this example does not qualify other prompts, placements or hardware. Diffusion uses FP8r storage, BF16 compute and no added quantization. PUP starts disabled; its explicit FP32/NF4 choices are separate.', }, inputRequirements: { referenceImages: 1, @@ -4659,14 +4692,22 @@ const NORMALIZED_STUDIO_TEMPLATES: StudioTemplate[] = [ withTemplateRecipeDefaults( { id: 'flux3_klein_base_fp8r512_multi_reference_edit', - label: 'FLUX 3 Base 512 FP8r (50 steps) - Two-Reference Edit + Protected Packaging v3', + label: 'FLUX 3 Image Klein Base — Two-Reference Edit + Protected Packaging v3', modelDisplayName: 'FLUX 3 Image Klein Base', mode: 'edit_image', modelType: 'Flux3ModularPipeline', runtimeReuseKey: 'Flux3ModularPipeline:fp8r:bfloat16:none:resident:none:expert', category: 'reference', - tags: ['flux3', 'public-intent', 'planning', 'multi-reference-edit', 'fp8r', '512-square', 'unqualified-recipe'], - difficulty: 'blocked', + tags: [ + 'flux3', + 'experimental', + 'reviewed-example', + 'multi-reference-edit', + 'fp8r', + '512-square', + 'bounded-custom-recipe', + ], + difficulty: 'advanced', modelArtifact: { source: 'hub', value: 'black-forest-labs/flux-3-image-klein-base', @@ -4687,8 +4728,9 @@ const NORMALIZED_STUDIO_TEMPLATES: StudioTemplate[] = [ 'modules.ModularDiffusers.Guider', ], vramEstimate: - 'Unmeasured for this exact 512 FP8r recipe. FP8r storage does not guarantee native FP8 GEMM or device fit.', - runtimeEstimate: 'Unmeasured distinct 512 x 512 FP8r recipe; original 1024 receipts are not reused.', + 'FP8r storage does not guarantee native FP8 GEMM or fit on other hardware. Use the live resource check; fixed-input examples were tested on the reviewed Linux host.', + runtimeEstimate: + 'Fixed-input output accepted on the tested Linux host; timing depends on model, task and placement.', description: 'Use reference image 1 as the cobalt-blue glass product subject. Use reference image 2 as the flat packaging dieline: preserve the cream background, black panel outlines, fold guides, rounded placeholder panels and yellow accent bands. Place a small coherent product photograph of the blue glass cube in the large central panel, leaving the structural lines and other panels intact. Keep the result a flat unfolded packaging design. Do not duplicate the product, add people, invent a brand or add readable text.', userGoal: @@ -4696,7 +4738,7 @@ const NORMALIZED_STUDIO_TEMPLATES: StudioTemplate[] = [ presetId: 'flux_quality', example: { mediaType: 'image', - status: 'blocked', + status: 'unverified', lockedSeed: 481103, modelRevision: '1469d27cfb9bb1bd81d3a93f5a023b39dbf136e4', lockedSettings: { @@ -4715,11 +4757,9 @@ const NORMALIZED_STUDIO_TEMPLATES: StudioTemplate[] = [ }, // The primary graph output is the protected PNG, after 512px generation. expectedOutput: { width: 1024, height: 1024 }, - runtimeEstimate: 'Pending measured exact 512 FP8r recipe', - blockReason: - 'Native output and template qualification, approved new output media and rights review are pending; this distinct 512 FP8r recipe grants no Gallery, Auto or hardware qualification.', + runtimeEstimate: 'Reviewed fixed-input example on Linux; timing varies by placement', notes: - 'No generated output, public output media, template receipt or fit measurement is attached. Diffusion uses FP8r storage, BF16 compute and no added quantization. PUP starts disabled; its explicit FP32/NF4 choices are separate. Generation keeps the two original references in order. The separate ordinary compositor uses the second reference and the authored mask to preserve guide pixels; this is generated plus composited, with no native Fill claim. Original failed recipes remain historical. The new mask and public outputs still require publication and technical acceptance.', + 'A reviewed fixed-input output is registered with its original provenance; this example does not qualify other prompts, placements or hardware. Diffusion uses FP8r storage, BF16 compute and no added quantization. PUP starts disabled; its explicit FP32/NF4 choices are separate. Generation keeps the two original references in order. The separate ordinary compositor uses the second reference and the authored mask to preserve guide pixels; this is generated plus composited, with no native Fill claim. Original failed recipes remain historical. The authored mask and selected final PNG have exact-file publication approval.', }, inputRequirements: { referenceImages: 2, @@ -4777,7 +4817,8 @@ const NORMALIZED_STUDIO_TEMPLATES: StudioTemplate[] = [ withTemplateRecipeDefaults( { id: 'flux3_klein_base_fp8r512_raw_coordinate_prompt', - label: 'FLUX 3 Base 512 FP8r (50 steps) - Raw Prompt Coordinates: Apple', + promptQualityPolicy: 'raw_layout_reference', + label: 'FLUX 3 Image Klein Base — Raw Prompt Coordinates: Apple', modelDisplayName: 'FLUX 3 Image Klein Base', mode: 'text_to_image', modelType: 'Flux3ModularPipeline', @@ -4785,14 +4826,14 @@ const NORMALIZED_STUDIO_TEMPLATES: StudioTemplate[] = [ category: 'reference', tags: [ 'flux3', - 'public-intent', - 'planning', + 'experimental', + 'reviewed-example', 'fp8r', '512-square', - 'unqualified-recipe', + 'bounded-custom-recipe', 'raw-prompt-coordinates', ], - difficulty: 'blocked', + difficulty: 'advanced', modelArtifact: { source: 'hub', value: 'black-forest-labs/flux-3-image-klein-base', @@ -4807,15 +4848,16 @@ const NORMALIZED_STUDIO_TEMPLATES: StudioTemplate[] = [ 'modules.ModularDiffusers.Guider', ], vramEstimate: - 'Unmeasured for this exact 512 FP8r recipe. FP8r storage does not guarantee native FP8 GEMM or device fit.', - runtimeEstimate: 'Unmeasured distinct 512 x 512 FP8r recipe; original 1024 receipts are not reused.', + 'FP8r storage does not guarantee native FP8 GEMM or fit on other hardware. Use the live resource check; fixed-input examples were tested on the reviewed Linux host.', + runtimeEstimate: + 'Fixed-input output accepted on the tested Linux host; timing depends on model, task and placement.', description: 'A still life with .\n[{"id":"apple_1","bbox":[250,125,750,875],"desc":"A red apple, with a green leaf."}]', userGoal: 'Inspect the literal raw coordinate prompt; the structured-layout widget remains unset/null.', presetId: 'flux_quality', example: { mediaType: 'image', - status: 'blocked', + status: 'unverified', lockedSeed: 481104, modelRevision: '1469d27cfb9bb1bd81d3a93f5a023b39dbf136e4', lockedSettings: { @@ -4836,11 +4878,9 @@ const NORMALIZED_STUDIO_TEMPLATES: StudioTemplate[] = [ width: 512, height: 512, }, - runtimeEstimate: 'Pending measured exact 512 FP8r recipe', - blockReason: - 'Native output and template qualification, approved new output media and rights review are pending; this distinct 512 FP8r recipe grants no Gallery, Auto or hardware qualification. Spatial adherence is unproved. This is not a seeded region-widget or generated-table template.', + runtimeEstimate: 'Reviewed fixed-input example on Linux; timing varies by placement', notes: - 'The raw prompt uses the existing shared layout fixture syntax, y-first integer coordinates [250,125,750,875]. The layout_conditioning field remains null through normal T2I defaults. PUP stays disabled so the literal table is not rewritten. No source-reference IDs, widget geometry, strict generated-table completion or F3-06 proof is claimed.', + 'A reviewed fixed-input output is registered with its original provenance; this example does not qualify other prompts, placements or hardware. The raw prompt uses the existing shared layout fixture syntax, y-first integer coordinates [250,125,750,875]. The layout_conditioning field remains null through normal T2I defaults. PUP stays disabled so the literal table is not rewritten. No source-reference IDs, widget geometry, strict generated-table completion or F3-06 proof is claimed. This is not a seeded region-widget or generated-table template.', }, executionSelection: IMAGE_TEMPLATE_EXECUTION_SELECTIONS.flux3_klein_base_fp8r512_raw_coordinate_prompt, promptGuide: { @@ -4861,14 +4901,14 @@ const NORMALIZED_STUDIO_TEMPLATES: StudioTemplate[] = [ withTemplateRecipeDefaults( { id: 'flux3_klein_base_fp8r512_lora_style', - label: 'FLUX 3 Base 512 FP8r (50 steps) - Monet Oil-Painting LoRA v3 (Test Candidate)', + label: 'FLUX 3 Image Klein Base — LoRA Style: Meadow Fox', modelDisplayName: 'FLUX 3 Image Klein Base', mode: 'text_to_image', modelType: 'Flux3ModularPipeline', runtimeReuseKey: 'Flux3ModularPipeline:fp8r:bfloat16:none:resident:none:expert', category: 'lora', - tags: ['flux3', 'public-intent', 'planning', 'lora-style', 'fp8r', '512-square', 'unqualified-recipe'], - difficulty: 'blocked', + tags: ['flux3', 'experimental', 'reviewed-example', 'lora-style', 'fp8r', '512-square', 'bounded-custom-recipe'], + difficulty: 'advanced', modelArtifact: { source: 'hub', value: 'black-forest-labs/flux-3-image-klein-base', @@ -4884,15 +4924,16 @@ const NORMALIZED_STUDIO_TEMPLATES: StudioTemplate[] = [ 'modules.ModularDiffusers.Guider', ], vramEstimate: - 'Unmeasured for this exact 512 FP8r recipe. FP8r storage does not guarantee native FP8 GEMM or device fit.', - runtimeEstimate: 'Unmeasured distinct 512 x 512 FP8r recipe; original 1024 receipts are not reused.', + 'FP8r storage does not guarantee native FP8 GEMM or fit on other hardware. Use the live resource check; fixed-input examples were tested on the reviewed Linux host.', + runtimeEstimate: + 'Fixed-input output accepted on the tested Linux host; timing depends on model, task and placement.', description: MEADOW_FOX_PROMPT, userGoal: - 'Inspect the pinned Base Monet replacement and exact public recipe; output qualification and publication remain pending.', + 'Inspect the pinned Base Monet replacement and exact public recipe; review the resulting style and preserve the adapter terms.', presetId: 'flux_quality', example: { mediaType: 'image', - status: 'blocked', + status: 'unverified', lockedSeed: 481405, modelRevision: '1469d27cfb9bb1bd81d3a93f5a023b39dbf136e4', lockedSettings: { @@ -4913,11 +4954,9 @@ const NORMALIZED_STUDIO_TEMPLATES: StudioTemplate[] = [ width: 512, height: 512, }, - runtimeEstimate: 'Pending measured exact 512 FP8r recipe', - blockReason: - 'Native output and template qualification, visual review and output publication approval remain pending for this exact public recipe; this distinct 512 FP8r recipe grants no Gallery, Auto or hardware qualification. The selected Monet replacement declares FLUX Kommunity License v1.0; its terms do not approve generated output publication.', + runtimeEstimate: 'Reviewed fixed-input example on Linux; timing varies by placement', notes: - 'No public output media, template receipt or fit measurement is attached. Local model_cpu trials with autoOffload=true are separate from this locked none / autoOffload=false recipe; a painterly baseline alone does not prove adapter benefit. This Base-trained rank16 Monet candidate replaces the public Tarot plan without changing saved Tarot workflows. Diffusion uses FP8r storage, BF16 compute and no added quantization. PUP starts disabled; its explicit FP32/NF4 choices are separate.', + 'A reviewed fixed-input output is registered with its original provenance; this example does not qualify other prompts, placements or hardware. Local model_cpu trials with autoOffload=true are separate from this locked none / autoOffload=false recipe; a painterly baseline alone does not prove adapter benefit. This Base-trained rank16 Monet candidate replaces the public Tarot plan without changing saved Tarot workflows. Diffusion uses FP8r storage, BF16 compute and no added quantization. PUP starts disabled; its explicit FP32/NF4 choices are separate.', }, evidencePolicy: 'generated', workflowBlocks: ['lora'], @@ -4943,7 +4982,7 @@ const NORMALIZED_STUDIO_TEMPLATES: StudioTemplate[] = [ 'The exact public source profile is required; package qualification alone is not a template image proof.', 'PUP is advisory and starts disabled. No authored regions: ordinary Enable selects declared raw FP32. Select BF16 + NF4 explicitly if desired; this never changes diffusion FP8r storage selection.', 'With authored regions, append wording preserves them. Constrained table generation is a separate explicit Expert choice; do not enable it on a null layout.', - "The pinned Monet adapter declares FLUX Kommunity License v1.0. Keep mnt_oil at the start of the prompt and scale 0.65 for this versioned Base candidate. The author warns about invented corner signatures; inspect the actual output. Its training-data provenance is the author's statement, and output publication remains unapproved.", + "The pinned Monet adapter declares FLUX Kommunity License v1.0. Keep mnt_oil at the start of the prompt and scale 0.65 for this versioned Base recipe. The author warns about invented corner signatures; inspect the actual output. Its training-data provenance is the author's statement, and new outputs still require their own rights review.", ], }, }, diff --git a/src/studio/types.ts b/src/studio/types.ts index e4994e50..9a49eee2 100644 --- a/src/studio/types.ts +++ b/src/studio/types.ts @@ -1701,7 +1701,7 @@ export type StudioTemplate = { * prompt instead of expanding it with generic production language that can * dilute the adapter's documented conditioning. */ - promptQualityPolicy?: 'modality_complete' | 'adapter_reference'; + promptQualityPolicy?: 'modality_complete' | 'adapter_reference' | 'raw_layout_reference'; prompt: string; negativePrompt?: string; presetId?: StudioPresetId; diff --git a/tests/e2e/studio-mocked/studio-mocked.spec.ts b/tests/e2e/studio-mocked/studio-mocked.spec.ts index fc4488ef..ebf098da 100644 --- a/tests/e2e/studio-mocked/studio-mocked.spec.ts +++ b/tests/e2e/studio-mocked/studio-mocked.spec.ts @@ -12,7 +12,7 @@ import { IMAGE_TEMPLATE_EXECUTION_SELECTIONS, AUDIO_TEMPLATE_EXECUTION_SELECTIONS, } from '../../../src/studio/templateOperationSelections'; -import { PLANNING_STUDIO_TEMPLATES, STUDIO_TEMPLATES } from '../../../src/studio/templates'; +import { STUDIO_TEMPLATES } from '../../../src/studio/templates'; import { hashString, stableStringify } from '../../../src/studio/stableHash'; import { REGISTERED_BLOCK_V2_ROUTES } from '../../../src/studio/registeredBlockV2Routes'; import { acknowledgementRequiredForTemplate } from '../../../src/studio/modelUsagePolicies'; @@ -11172,7 +11172,7 @@ async function installPublicFlux3AuthoringRoutes( return fixture; } -test('Experimental planning cards create the exact FLUX3 Ceramic Radio graph through ordinary UI', async ({ page }) => { +test('Experimental public cards create the exact FLUX3 Ceramic Radio graph through ordinary UI', async ({ page }) => { await ensureFrontend(); const fixture = await installPublicFlux3AuthoringRoutes(page, false, false, true); // Match the genuine creator fixture's CPU-only device options. This is UI @@ -11218,7 +11218,7 @@ test('Experimental planning cards create the exact FLUX3 Ceramic Radio graph thr await expect(page.locator('[data-testid^="template-browser-card-flux3_"]')).toHaveCount(10); await search.fill('Ceramic Radio'); await expect(page.locator('[data-testid^="template-browser-card-flux3_"]')).toHaveCount(2); - const template = PLANNING_STUDIO_TEMPLATES.find((item) => item.id === 'flux3_klein_fp8r512_text_to_image')!; + const template = STUDIO_TEMPLATES.find((item) => item.id === 'flux3_klein_fp8r512_text_to_image')!; const previousWorkflow = await page.evaluate(() => window.__MODIFF_E2E__!.getState().studio.activeWorkflowTabId); await expect(page.getByTestId(`template-browser-card-${template.id}`)).toContainText('No preview yet'); await page.getByTestId(`template-browser-create-card-${template.id}`).click(); From 8de2ae1666e3afeb71d3406f96347e41240b87c2 Mon Sep 17 00:00:00 2001 From: Sourav Das Date: Sat, 31 Oct 2026 21:54:10 +0530 Subject: [PATCH 116/440] Pair published Gallery bundle with current setup and CI contract --- .github/workflows/ci.yml | 4 +-- CONTRIBUTING.md | 4 +-- README.md | 36 +++++++++---------- docs/windows-support.md | 4 +-- scripts/backend-installer-contract.test.mjs | 39 ++++++++------------- 5 files changed, 38 insertions(+), 49 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 0d81f411..8325cbd7 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -33,7 +33,7 @@ jobs: with: repository: sdevil7th/MoDiff # Paired native contracts and lossless Save Image history previews. - ref: 2bd56fca4b712bfde22c0f2012b5bcc597efb2f1 + ref: 77855588174697b07f13e0bd8e544217d0cfc8cb path: MoDiff persist-credentials: false - name: Verify the pinned backend supports native setup @@ -88,7 +88,7 @@ jobs: with: repository: sdevil7th/MoDiff # Match the immutable backend revision in the Client quality job. - ref: 2bd56fca4b712bfde22c0f2012b5bcc597efb2f1 + ref: 77855588174697b07f13e0bd8e544217d0cfc8cb path: MoDiff persist-credentials: false - name: Verify the pinned backend supports native setup diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index c759dd31..f10f169d 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -69,7 +69,7 @@ For NVIDIA, use `--extra cuda` in each command; for Intel, use `--extra xpu`. On Apple Silicon, omit the extra. Keep the same extra on sync and run. Use a separate checkout to try another accelerator; native sync reconciles `.venv`. AMD vendor-wheel environments use the backend's specialist -[accelerator setup](https://github.com/sdevil7th/MoDiff/blob/codex/windows-delivery-20261026/docs/accelerator-installation.md). +[accelerator setup](https://github.com/sdevil7th/MoDiff/blob/fix-ui-ux-issues/docs/accelerator-installation.md). In the client terminal, run: @@ -82,7 +82,7 @@ Open the URL printed by Vite and leave the backend running. Transformers and PEFT are installed during backend setup; normal image and LoRA workflows need no separate package activation. These commands work on Linux and Windows PowerShell. The backend's -[developer guide](https://github.com/sdevil7th/MoDiff/blob/codex/windows-delivery-20261026/docs/developer-setup.md) +[developer guide](https://github.com/sdevil7th/MoDiff/blob/fix-ui-ux-issues/docs/developer-setup.md) and the [Windows guide](docs/windows-support.md#developer-setup-with-uv-and-npm) cover explicit `uv pip` setup, upgrades, repair, and platform details. diff --git a/README.md b/README.md index 35dc1c55..0d9eda52 100644 --- a/README.md +++ b/README.md @@ -7,10 +7,10 @@ MoDiff Client is the graph-first web interface for the MoDiff generative-media b The client is built with React 19, TypeScript, Vite, Tailwind CSS, Headless UI, Zustand, Lucide React, and [`@xyflow/react`](https://reactflow.dev/). For Qwen-Image 2.1, use the generic image nodes in Workflows. The backend's -[integration guide](https://github.com/sdevil7th/MoDiff/blob/codex/windows-delivery-20261026/docs/qwen-image-21.md) +[integration guide](https://github.com/sdevil7th/MoDiff/blob/fix-ui-ux-issues/docs/qwen-image-21.md) explains attention-context reuse, runtime requirements and current qualification limits. -The [image demo guide](https://github.com/sdevil7th/MoDiff/blob/codex/windows-delivery-20261026/docs/image-demo.md) lists the tested workflows, settings, +The [image demo guide](https://github.com/sdevil7th/MoDiff/blob/fix-ui-ux-issues/docs/image-demo.md) lists the tested workflows, settings, measured reuse behavior and remaining qualification work. > [!IMPORTANT] @@ -22,21 +22,21 @@ Install Git, [uv](https://docs.astral.sh/uv/getting-started/installation/), Node.js `24.12.0`, and npm `11.6.2`. uv can provision Python 3.12. Use two terminals for the backend and the editable frontend. -The interim Windows candidate is on `codex/windows-delivery-20261026` in both +The interim Windows candidate is on `fix-ui-ux-issues` in both repositories. These updates are not released on `main`. The reviewed Windows application source pair is: | Repository | Application source before final packaging | | ------------- | ------------------------------------------ | -| MoDiff | `fe84ed1ad6eeb77d904742780ec511fce441e4e4` | -| MoDiff-client | `109da623e65747ae09e18cf699cf12f1485e7644` | +| MoDiff | `2bd56fca4b712bfde22c0f2012b5bcc597efb2f1` | +| MoDiff-client | `69370265f4291ffe4757277401df07ef9ea9198a` | -CI backend contract: `2bd56fca4b712bfde22c0f2012b5bcc597efb2f1`. +CI backend contract: `77855588174697b07f13e0bd8e544217d0cfc8cb`. Both CI jobs use this exact immutable backend pin. It can include documentation descendants of the reviewed application source above. -These application source revisions were reviewed on 28 October 2026. Final +These application source revisions were reviewed on 31 October 2026. Final documentation, CI pairing and bundled-client packaging commits can be later descendants; they do not expand model or hardware qualification. Record `git rev-parse HEAD` in each checkout and use the final paired handoff when the @@ -48,8 +48,8 @@ release. then start the backend. These commands work in Linux shells and Windows PowerShell. ```text -git clone --branch codex/windows-delivery-20261026 https://github.com/sdevil7th/MoDiff.git MoDiff -git clone --branch codex/windows-delivery-20261026 https://github.com/sdevil7th/MoDiff-client.git MoDiff-client +git clone --branch fix-ui-ux-issues https://github.com/sdevil7th/MoDiff.git MoDiff +git clone --branch fix-ui-ux-issues https://github.com/sdevil7th/MoDiff-client.git MoDiff-client cd MoDiff uv sync --extra cpu uv run --extra cpu python -m modiff.preflight --json --check-port 8088 --fail-on-error @@ -62,7 +62,7 @@ Transformers and PEFT are installed with the base application; ordinary image an LoRA workflows need no optional-runtime installation or activation. Setup installs Python packages without downloading model weights. `uv sync` reconciles `.venv` with the selected profile: use a separate checkout when testing a different -accelerator. See the [full setup guide](https://github.com/sdevil7th/MoDiff/blob/codex/windows-delivery-20261026/docs/developer-setup.md) for specialized AMD profiles, +accelerator. See the [full setup guide](https://github.com/sdevil7th/MoDiff/blob/fix-ui-ux-issues/docs/developer-setup.md) for specialized AMD profiles, explicit `uv pip` commands, repair, and upgrades. **Terminal 2 — frontend:** from the same parent directory, run: @@ -75,7 +75,7 @@ npm run dev Keep the backend running at and open the URL printed by Vite for the editable frontend. Press `Ctrl+C` in each terminal to stop it. -See the [full developer setup guide](https://github.com/sdevil7th/MoDiff/blob/codex/windows-delivery-20261026/docs/developer-setup.md) for accelerator prerequisites, +See the [full developer setup guide](https://github.com/sdevil7th/MoDiff/blob/fix-ui-ux-issues/docs/developer-setup.md) for accelerator prerequisites, optional runtimes, repair, and bundled-app setup. ## Install and run MoDiff @@ -83,15 +83,15 @@ optional runtimes, repair, and bundled-app setup. Clone both repositories into the same parent directory. The backend installer automatically finds this sibling client, installs its locked Node.js toolchain and packages, downloads the verified Gallery assets, and bundles the frontend. -The backend [installation guide](https://github.com/sdevil7th/MoDiff/tree/codex/windows-delivery-20261026#install-and-run) +The backend [installation guide](https://github.com/sdevil7th/MoDiff/tree/fix-ui-ux-issues#install-and-run) is the canonical source for installer profiles, prerequisites, repair, and platform support. Linux or macOS: ```bash -git clone --branch codex/windows-delivery-20261026 https://github.com/sdevil7th/MoDiff.git MoDiff -git clone --branch codex/windows-delivery-20261026 https://github.com/sdevil7th/MoDiff-client.git MoDiff-client +git clone --branch fix-ui-ux-issues https://github.com/sdevil7th/MoDiff.git MoDiff +git clone --branch fix-ui-ux-issues https://github.com/sdevil7th/MoDiff-client.git MoDiff-client cd MoDiff ./install.sh --accelerator auto ./run.sh @@ -100,8 +100,8 @@ cd MoDiff Windows PowerShell: ```powershell -git clone --branch codex/windows-delivery-20261026 https://github.com/sdevil7th/MoDiff.git MoDiff -git clone --branch codex/windows-delivery-20261026 https://github.com/sdevil7th/MoDiff-client.git MoDiff-client +git clone --branch fix-ui-ux-issues https://github.com/sdevil7th/MoDiff.git MoDiff +git clone --branch fix-ui-ux-issues https://github.com/sdevil7th/MoDiff-client.git MoDiff-client cd MoDiff .\install.ps1 -Accelerator auto .\run.ps1 @@ -135,7 +135,7 @@ Use `run.sh` or `run.ps1` unless you are editing frontend source code. In the editor, **Export → Service package** exposes named scalar inputs and persisted preview outputs for the same lowered API graph. See the backend's -[service guide](https://github.com/sdevil7th/MoDiff/blob/codex/windows-delivery-20261026/docs/service-prototyping.md) +[service guide](https://github.com/sdevil7th/MoDiff/blob/fix-ui-ux-issues/docs/service-prototyping.md) for the CLI, environment manifest and model-free example. ## Repository Pairing @@ -411,7 +411,7 @@ require Custom memory. See the backend custom-node guide for contracts and examp Approved Modular blocks that omit model ports receive a **Models** input when their Python contract requires components. Connect **Load Models → Pipeline Components** to reuse compatible loaded weights. This does not download missing -block-specific models. See the backend’s [custom-node guide](https://github.com/sdevil7th/MoDiff/blob/codex/windows-delivery-20261026/docs/custom-nodes.md) +block-specific models. See the backend’s [custom-node guide](https://github.com/sdevil7th/MoDiff/blob/fix-ui-ux-issues/docs/custom-nodes.md) for the VAE reconstruction example and component requirements. Blocks with official component types also expose **Load Models — [block name]** after approval. Select pinned, downloaded sources for its components, use **Custom** diff --git a/docs/windows-support.md b/docs/windows-support.md index 2442a049..a18817d3 100644 --- a/docs/windows-support.md +++ b/docs/windows-support.md @@ -68,7 +68,7 @@ and PEFT are installed with the backend, with no separate activation for normal image and LoRA workflows. Setup downloads packages, not inference weights. `uv sync` reconciles the selected environment; use another checkout to test a different accelerator. The backend's -[developer setup guide](https://github.com/sdevil7th/MoDiff/blob/codex/windows-delivery-20261026/docs/developer-setup.md) +[developer setup guide](https://github.com/sdevil7th/MoDiff/blob/fix-ui-ux-issues/docs/developer-setup.md) also documents explicit `uv pip` commands, repair, and uv upgrades. Windows uses PyTorch's default allocator. MoDiff does not set @@ -258,7 +258,7 @@ route that exceeds the workstation's capacity, or needs an unsupported optional kernel, is a separate compatibility result; capture its exact message and resource plan. Passing the mocked client gates does not establish Windows GPU compatibility or image parity. The backend's -[image template validation guide](https://github.com/sdevil7th/MoDiff/blob/codex/windows-delivery-20261026/docs/image-template-validation.md) +[image template validation guide](https://github.com/sdevil7th/MoDiff/blob/fix-ui-ux-issues/docs/image-template-validation.md) documents paired output comparison and the runtime, recipe, and raw-output evidence to retain. Historical Gallery examples remain historical until a new execution has its own matching proof. diff --git a/scripts/backend-installer-contract.test.mjs b/scripts/backend-installer-contract.test.mjs index 4a7e8402..a2d529ca 100644 --- a/scripts/backend-installer-contract.test.mjs +++ b/scripts/backend-installer-contract.test.mjs @@ -167,8 +167,8 @@ test('README follows the paired install and development launcher contract', () = assert.ok(installStart > quickStart, 'Developer quick start must precede launcher installation'); const quick = readme.slice(quickStart, installStart); for (const command of [ - 'git clone --branch codex/windows-delivery-20261026 https://github.com/sdevil7th/MoDiff.git MoDiff', - 'git clone --branch codex/windows-delivery-20261026 https://github.com/sdevil7th/MoDiff-client.git MoDiff-client', + 'git clone --branch fix-ui-ux-issues https://github.com/sdevil7th/MoDiff.git MoDiff', + 'git clone --branch fix-ui-ux-issues https://github.com/sdevil7th/MoDiff-client.git MoDiff-client', 'cd MoDiff', 'uv sync --extra cpu', 'uv run --extra cpu python -m modiff.preflight --json --check-port 8088 --fail-on-error', @@ -186,18 +186,12 @@ test('README follows the paired install and development launcher contract', () = assert.ok(developmentEnd > developmentStart); const development = readme.slice(developmentStart, developmentEnd); + assert.match(readme, /git clone --branch fix-ui-ux-issues https:\/\/github\.com\/sdevil7th\/MoDiff\.git MoDiff/); assert.match( readme, - /git clone --branch codex\/windows-delivery-20261026 https:\/\/github\.com\/sdevil7th\/MoDiff\.git MoDiff/, - ); - assert.match( - readme, - /git clone --branch codex\/windows-delivery-20261026 https:\/\/github\.com\/sdevil7th\/MoDiff-client\.git MoDiff-client/, - ); - assert.match( - readme, - /https:\/\/github\.com\/sdevil7th\/MoDiff\/tree\/codex\/windows-delivery-20261026#install-and-run/, + /git clone --branch fix-ui-ux-issues https:\/\/github\.com\/sdevil7th\/MoDiff-client\.git MoDiff-client/, ); + assert.match(readme, /https:\/\/github\.com\/sdevil7th\/MoDiff\/tree\/fix-ui-ux-issues#install-and-run/); assert.match(development, /\.\/install-dev\.sh --accelerator auto/); assert.match(development, /\.\/run-dev\.sh/); assert.match(development, /\.\\install-dev\.ps1 -BackendPath \.\.\\MoDiff -Accelerator auto/); @@ -223,8 +217,12 @@ test('current setup guides select the published candidate and identify its revie ]; for (const guide of guides) { const text = readFileSync(guide, 'utf8'); - assert.doesNotMatch(text, /fix-ui-ux-issues/, `${guide.pathname} still advertises the superseded setup branch`); - assert.match(text, /codex\/windows-delivery-20261026/, `${guide.pathname} must identify the current candidate`); + assert.doesNotMatch( + text, + /codex\/windows-delivery-20261026/, + `${guide.pathname} still advertises the superseded setup branch`, + ); + assert.match(text, /fix-ui-ux-issues/, `${guide.pathname} must identify the current candidate`); } const readme = readFileSync(guides[0], 'utf8'); const workflow = readFileSync(new URL('.github/workflows/ci.yml', clientRoot), 'utf8'); @@ -263,10 +261,7 @@ test('reviewed setup source contract rejects missing duplicate mutable and drift 'duplicate backend row': [readme.replace(clientRow, backendRow), workflow], 'duplicate client row': [readme.replace(backendRow, clientRow), workflow], 'unknown application repository': [readme.replace(backendRow, backendRow.replace('MoDiff', 'Other')), workflow], - 'mutable backend source': [ - readme.replace(contract.applicationSource.MoDiff, 'codex/windows-delivery-20261026'), - workflow, - ], + 'mutable backend source': [readme.replace(contract.applicationSource.MoDiff, 'fix-ui-ux-issues'), workflow], 'short client source': [readme.replace(contract.applicationSource['MoDiff-client'], '1234567'), workflow], 'hash prefix with suffix': [ readme.replace(contract.applicationSource.MoDiff, `${contract.applicationSource.MoDiff}0`), @@ -274,19 +269,13 @@ test('reviewed setup source contract rejects missing duplicate mutable and drift ], 'missing CI declaration': [readme.replace(ciLine, ''), workflow], 'duplicate CI declaration': [readme.replace(ciLine, `${ciLine}\n${ciLine}`), workflow], - 'mutable CI declaration': [ - readme.replace(ciLine, 'CI backend contract: `codex/windows-delivery-20261026`.'), - workflow, - ], + 'mutable CI declaration': [readme.replace(ciLine, 'CI backend contract: `fix-ui-ux-issues`.'), workflow], 'one drifting CI job': [readme, workflow.replace(`ref: ${contract.ciBackendCommit}`, `ref: ${'c'.repeat(40)}`)], 'both drifting CI jobs': [ readme, workflow.replaceAll(`ref: ${contract.ciBackendCommit}`, `ref: ${'c'.repeat(40)}`), ], - 'mutable CI job': [ - readme, - workflow.replace(`ref: ${contract.ciBackendCommit}`, 'ref: codex/windows-delivery-20261026'), - ], + 'mutable CI job': [readme, workflow.replace(`ref: ${contract.ciBackendCommit}`, 'ref: fix-ui-ux-issues')], 'missing CI ref': [readme, workflow.replace(`ref: ${contract.ciBackendCommit}`, '# removed backend ref')], 'duplicate CI ref': [ readme, From 1c2af2b181f736af7c8baced345a7582a1018532 Mon Sep 17 00:00:00 2001 From: Sourav Das Date: Sat, 31 Oct 2026 22:24:50 +0530 Subject: [PATCH 117/440] Keep published experimental creators discoverable --- docs/image-template-workflows.md | 4 +- .../flux3-public-template-planning.test.mjs | 16 +++++++ src/components/TemplateBrowserDialog.tsx | 4 +- src/studio/templateBrowser.ts | 4 +- tests/e2e/studio-mocked/studio-mocked.spec.ts | 44 +++++++++++++++++++ 5 files changed, 68 insertions(+), 4 deletions(-) diff --git a/docs/image-template-workflows.md b/docs/image-template-workflows.md index ec54d1a5..cc1104dc 100644 --- a/docs/image-template-workflows.md +++ b/docs/image-template-workflows.md @@ -175,7 +175,9 @@ disabled. The locked public settings are Expert with no offload and are separate recipes and cannot qualify these locks. The ten fixed-input outputs passed their bounded visual reviews and have exact-file publication approval. They enter Experimental with their original task/source/model/input provenance; -the model profiles' global qualification flags remain unchanged. Matching older +publishing a preview keeps explicitly declared experimental creators in that +category. It does not grant visibility through the ordinary model catalog or +change the model profiles' global qualification flags. Matching older evidence retains its historical scope. Separate native Auto checks cover the six basic routes and the selected NASA/Monet lifecycle cases only on the tested Linux x86_64 ROCm gfx1151 shared-memory host. They do not qualify larger workloads, diff --git a/scripts/flux3-public-template-planning.test.mjs b/scripts/flux3-public-template-planning.test.mjs index 98f0aeb9..067b2852 100644 --- a/scripts/flux3-public-template-planning.test.mjs +++ b/scripts/flux3-public-template-planning.test.mjs @@ -86,6 +86,22 @@ test('ten reviewed recipes enter Experimental without inline execution or hardwa } }); +test('published preview discovery keeps exact declared creator authority and rejects private or mutable replacements', async () => { + const browser = await server.ssrLoadModule('/src/studio/templateBrowser.ts'); + for (const id of ids) { + const template = card(id); + assert.equal(browser.hasDeclaredExperimentalCreator(template), true, id); + for (const replacement of [ + { ...template, executionSelection: { ...template.executionSelection, executionProfileId: 'private-fixture' } }, + { ...template, executionSelection: { ...template.executionSelection, authoringRecipeId: 'private-fixture' } }, + { ...template, executionSelection: { ...template.executionSelection, memoryPolicy: 'auto' } }, + { ...template, modelArtifact: { ...template.modelArtifact, revision: 'main' } }, + ]) { + assert.equal(browser.hasDeclaredExperimentalCreator(replacement), false, id); + } + } +}); + test('each card resolves the real public profile and immutable artifact while stale or private identities refuse', () => { const capabilities = fixture.capabilitiesPayload.capabilities; assert.equal(fixture.activeProvider, null); diff --git a/src/components/TemplateBrowserDialog.tsx b/src/components/TemplateBrowserDialog.tsx index 4eab08bc..72727cc7 100644 --- a/src/components/TemplateBrowserDialog.tsx +++ b/src/components/TemplateBrowserDialog.tsx @@ -46,6 +46,7 @@ import { import { TEMPLATE_BROWSER_CATEGORIES, filterStudioTemplates, + hasDeclaredExperimentalCreator, templateDisplayName, templateModelDisplayName, templateMediaSlots, @@ -547,7 +548,8 @@ export default function TemplateBrowserDialog({ entry = false }: { entry?: boole [autoPlanForTemplate], ); const isExperimentalTemplate = useCallback( - (template: StudioTemplate) => !templateHasPublishedMedia(template, manifest), + (template: StudioTemplate) => + hasDeclaredExperimentalCreator(template) || !templateHasPublishedMedia(template, manifest), [manifest], ); const filteredTemplates = useMemo(() => { diff --git a/src/studio/templateBrowser.ts b/src/studio/templateBrowser.ts index 622bc883..49506572 100644 --- a/src/studio/templateBrowser.ts +++ b/src/studio/templateBrowser.ts @@ -188,8 +188,8 @@ function recommendedRank(template: StudioTemplate, form: StudioFormState) { return rank; } -/** Explicit planning discovery only; this grants no model or execution eligibility. */ -function hasDeclaredExperimentalCreator(template: StudioTemplate) { +/** Explicit Experimental discovery only; this grants no model or execution eligibility. */ +export function hasDeclaredExperimentalCreator(template: StudioTemplate) { const selection = template.executionSelection; const declared = IMAGE_TEMPLATE_EXECUTION_SELECTIONS[template.id] ?? AUDIO_TEMPLATE_EXECUTION_SELECTIONS[template.id]; const artifact = template.modelArtifact; diff --git a/tests/e2e/studio-mocked/studio-mocked.spec.ts b/tests/e2e/studio-mocked/studio-mocked.spec.ts index ebf098da..c69e86b6 100644 --- a/tests/e2e/studio-mocked/studio-mocked.spec.ts +++ b/tests/e2e/studio-mocked/studio-mocked.spec.ts @@ -11172,9 +11172,53 @@ async function installPublicFlux3AuthoringRoutes( return fixture; } +test('published Experimental cards remain discoverable after Gallery metadata loads', async ({ page }) => { + await ensureFrontend(); + await installPublicFlux3AuthoringRoutes(page, false, false, true); + const manifest = JSON.parse( + await fs.readFile(path.join(CLIENT_ROOT, 'public/template-gallery/manifest.json'), 'utf8'), + ); + const previewPixel = Buffer.from( + 'iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mP8/x8AAwMCAO+aOCkAAAAASUVORK5CYII=', + 'base64', + ); + await page.route(/\/template-gallery\/[^/?]+\.(?:webp|png|jpe?g)(?:\?.*)?$/u, (route) => + route.fulfill({ body: previewPixel, contentType: 'image/png' }), + ); + const forbiddenPosts: string[] = []; + page.on('request', (request) => { + if ( + request.method() === 'POST' && + /\/(?:graph|execute|install|download)(?:\/|$)/u.test(new URL(request.url()).pathname) + ) + forbiddenPosts.push(new URL(request.url()).pathname); + }); + await page.route('**/template-gallery/manifest.json*', (route) => route.fulfill({ json: manifest })); + await page.goto(FRONTEND_URL, { waitUntil: 'domcontentloaded' }); + await openTemplateBrowser(page); + await page.getByTestId('template-browser-category-experimental').click(); + await page.getByTestId('template-browser-search').fill('FLUX 3'); + const cards = page.locator('[data-testid^="template-browser-card-flux3_"]'); + await expect(cards).toHaveCount(10); + for (const card of await cards.all()) { + // Offscreen previews are lazy; comparisons use Before/After image labels. + await card.scrollIntoViewIfNeeded(); + await expect(card.getByRole('img').first()).toBeVisible(); + await expect(card).not.toContainText('No preview yet'); + } + await page.getByTestId('template-browser-category-all').click(); + await expect(cards).toHaveCount(0); + expect(forbiddenPosts).toEqual([]); +}); + test('Experimental public cards create the exact FLUX3 Ceramic Radio graph through ordinary UI', async ({ page }) => { await ensureFrontend(); const fixture = await installPublicFlux3AuthoringRoutes(page, false, false, true); + const unpublishedManifest = { + ...JSON.parse(await fs.readFile(path.join(CLIENT_ROOT, 'public/template-gallery/manifest.json'), 'utf8')), + examples: [], + }; + await page.route('**/template-gallery/manifest.json*', (route) => route.fulfill({ json: unpublishedManifest })); // Match the genuine creator fixture's CPU-only device options. This is UI // authoring transport, not a hardware fit or execution qualification. await page.route('**/runtime/status**', (route) => From 56d84a510295f25defe307c43d53f622d81ec99c Mon Sep 17 00:00:00 2001 From: Sourav Das Date: Sat, 31 Oct 2026 22:58:38 +0530 Subject: [PATCH 118/440] Pair final experimental Gallery metadata and application bundle --- .github/workflows/ci.yml | 4 ++-- README.md | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 8325cbd7..a9ddce8c 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -33,7 +33,7 @@ jobs: with: repository: sdevil7th/MoDiff # Paired native contracts and lossless Save Image history previews. - ref: 77855588174697b07f13e0bd8e544217d0cfc8cb + ref: b4cc3a03f6250d42b940da89a6551750103e5a79 path: MoDiff persist-credentials: false - name: Verify the pinned backend supports native setup @@ -88,7 +88,7 @@ jobs: with: repository: sdevil7th/MoDiff # Match the immutable backend revision in the Client quality job. - ref: 77855588174697b07f13e0bd8e544217d0cfc8cb + ref: b4cc3a03f6250d42b940da89a6551750103e5a79 path: MoDiff persist-credentials: false - name: Verify the pinned backend supports native setup diff --git a/README.md b/README.md index 0d9eda52..af7f4d81 100644 --- a/README.md +++ b/README.md @@ -28,10 +28,10 @@ application source pair is: | Repository | Application source before final packaging | | ------------- | ------------------------------------------ | -| MoDiff | `2bd56fca4b712bfde22c0f2012b5bcc597efb2f1` | -| MoDiff-client | `69370265f4291ffe4757277401df07ef9ea9198a` | +| MoDiff | `be4d8de439558e5929a2ff3c8941341d13f10f6e` | +| MoDiff-client | `1c2af2b181f736af7c8baced345a7582a1018532` | -CI backend contract: `77855588174697b07f13e0bd8e544217d0cfc8cb`. +CI backend contract: `b4cc3a03f6250d42b940da89a6551750103e5a79`. Both CI jobs use this exact immutable backend pin. It can include documentation descendants of the reviewed application source above. From ef37863c4a5ab2c3736090a6f4fad81b849578d9 Mon Sep 17 00:00:00 2001 From: Sourav Das Date: Sun, 1 Nov 2026 12:17:23 +0530 Subject: [PATCH 119/440] Revise cinematic portrait and restore pinned historical previews --- docs/image-template-workflows.md | 10 +++ docs/template-gallery-assets.md | 9 +++ scripts/bundle-budget.mjs | 7 ++ scripts/reviewed-value-ports-v2.test.mjs | 7 +- scripts/template-operation-workflows.test.mjs | 73 ++++++++++++++++++- src/studio/templateExactness.ts | 46 +++++++++++- src/studio/templates.ts | 27 ++++--- .../image-template-creative-revisions.v1.json | 16 ++++ 8 files changed, 177 insertions(+), 18 deletions(-) create mode 100644 tests/fixtures/image-template-creative-revisions.v1.json diff --git a/docs/image-template-workflows.md b/docs/image-template-workflows.md index cc1104dc..a33583f9 100644 --- a/docs/image-template-workflows.md +++ b/docs/image-template-workflows.md @@ -141,6 +141,16 @@ explicitly named adapters retain their authored names. ## Historical Gallery examples +The Cinematic Octane portrait's **recipe v3** removes injury references and uses +true CFG 1 with the retained distilled guidance 3.5. The previous true-CFG-3 +recipe produced soft detail even in an adapter-free control. The v3 recipe keeps +the two immutable adapters and their strengths, seed, dimensions, steps and +group offload, and explicitly selects Custom memory. Its original v1 creator +fixture and comparison remain unchanged; the separate creative-revision fixture +permits only the new prompt, true CFG and memory-policy selection. This is a new +creative recipe, not pixel parity with v1, Auto/Windows qualification or public +media approval. + An existing approved image generated with the previous recipe can remain visible as **Previous recipe example** when its original prompt, settings, inputs and model revision still match. It is historical output, not visual qualification of diff --git a/docs/template-gallery-assets.md b/docs/template-gallery-assets.md index 00a11977..14642626 100644 --- a/docs/template-gallery-assets.md +++ b/docs/template-gallery-assets.md @@ -27,6 +27,15 @@ recipe, graph, task receipts, model/input identities and source/runtime provenan Historical examples keep their original recipe authority when templates change. Updating a template hash alone does not establish equivalent execution. +The template browser labels retained approved media **Previous recipe example** +when the earlier creator lock matches without the new execution selection. +It also recognizes an added explicit Hub artifact revision only when the +published record's model revision and model commit both already contain that +exact immutable repository/revision pair. The previous lock must still match +all other settings, weight hashes, input bindings and review requirements. +This read-only display lookup never rewrites the current template or published +record, and never satisfies current-graph exactness or the release Gallery gate. + The maintainer-only `gallery:repair-evidence` command repairs one retained example from its original evidence. It requires the original per-run provenance and matching creator settings, admission locks, consumed form, canonical graph, diff --git a/scripts/bundle-budget.mjs b/scripts/bundle-budget.mjs index d7b6c212..9da9ca4b 100644 --- a/scripts/bundle-budget.mjs +++ b/scripts/bundle-budget.mjs @@ -1,3 +1,8 @@ +// Recorded-pin historical examples and the explicit portrait-v3 recipe measure +// largest/startup/deferred gzip 494455/672941/328233 versus the accepted +// 494259/672742/328069. Add measured startup growth 196/199, retaining 8/11 +// bytes of headroom. The same four startup and 90 deferred assets retain their +// loading membership. Both deferred caps, dependencies and identity gates stay fixed. // Versioned FLUX3 prompts, scoped image receipts and ordinary protected-PNG // authoring measure largest/startup/deferred gzip 494259/672742/328069 versus // accepted 493208/671695/327026. Add only measured growth 1051/1047/1043, @@ -265,6 +270,7 @@ const SOURCE_LICENSES = new URL('../public/THIRD_PARTY_LICENSES.txt', import.met // Allow only measured startup growth (+1649/+1651), retaining 8/11 bytes headroom. // Four startup and 89 deferred assets, dependencies, loading rules and deferred caps stay fixed. const MAX_STARTUP_CHUNK_GZIP_BYTES = + 196 + 1051 + 38 + 1649 + @@ -388,6 +394,7 @@ const MAX_STARTUP_CHUNK_GZIP_BYTES = // Preserve the separately measured 64-byte shared loading-policy allowance above. // Preserve the measured 384-byte selected-image authoring allowance above. const MAX_STARTUP_GZIP_BYTES = + 199 + 1047 + 36 + 1651 + diff --git a/scripts/reviewed-value-ports-v2.test.mjs b/scripts/reviewed-value-ports-v2.test.mjs index 46242fdb..65f32860 100644 --- a/scripts/reviewed-value-ports-v2.test.mjs +++ b/scripts/reviewed-value-ports-v2.test.mjs @@ -4,7 +4,12 @@ import { createServer } from 'vite'; let server, add; before(async () => { - server = await createServer({ configFile: false, logLevel: 'silent', server: { middlewareMode: true, watch: null } }); + server = await createServer({ + configFile: false, + logLevel: 'silent', + optimizeDeps: { entries: [], noDiscovery: true }, + server: { middlewareMode: true, watch: null }, + }); ({ addReviewedValuePortsV2: add } = await server.ssrLoadModule('/src/studio/reviewedValuePortsV2.ts')); }); after(async () => { diff --git a/scripts/template-operation-workflows.test.mjs b/scripts/template-operation-workflows.test.mjs index 5bbed29a..b4b91914 100644 --- a/scripts/template-operation-workflows.test.mjs +++ b/scripts/template-operation-workflows.test.mjs @@ -1,4 +1,5 @@ import assert from 'node:assert/strict'; +import { createHash } from 'node:crypto'; import { readFile } from 'node:fs/promises'; import { execFileSync } from 'node:child_process'; import path from 'node:path'; @@ -349,13 +350,33 @@ test('the real public capability and every selected starter response pass produc } }); -test('the historical 54 image templates select exact developer operations without changing creator settings', async () => { +test('the 54 image templates preserve creator contracts except explicit versioned creative revisions', async () => { const baseline = JSON.parse(await readFile('tests/fixtures/image-template-creator-contracts.v1.json', 'utf8')); + const revisions = JSON.parse(await readFile('tests/fixtures/image-template-creative-revisions.v1.json', 'utf8')); + assert.equal(revisions.schemaVersion, 1); + assert.deepEqual( + revisions.revisions.map((row) => row.templateId), + ['flux_lora_cinematic_octane_3d'], + ); const images = templates.filter((template) => template.example?.mediaType === 'image'); assert.equal(images.length, 54); for (const expected of baseline.templates) { const template = images.find((item) => item.id === expected.templateId); assert.ok(template, expected.templateId); + const expectedContract = structuredClone(expected.contract); + const revision = revisions.revisions.find((row) => row.templateId === template.id); + if (revision) { + const digest = (text) => createHash('sha256').update(text).digest('hex'); + assert.equal(revision.recipeVersion, 3); + assert.equal(digest(expected.contract.lockedSettings.prompt), revision.previousPromptSha256); + assert.equal(digest(template.prompt), revision.promptSha256); + assert.deepEqual(revision.lockedSettings, { guidanceScale: 1, resourceMode: 'expert' }); + assert.doesNotMatch(template.prompt, /\b(?:scar|wound|blood|bruise)\b/iu); + assert.match(template.prompt, /healthy unmarked face/u); + assert.equal(template.example.status, 'unverified', 'creative review never grants public qualification'); + expectedContract.lockedSettings.prompt = template.prompt; + Object.assign(expectedContract.lockedSettings, revision.lockedSettings); + } assert.deepEqual( { lockedSettings: exactness.getTemplateLockedSettings(template), @@ -363,8 +384,8 @@ test('the historical 54 image templates select exact developer operations withou workflowBlocks: template.workflowBlocks ?? [], workflowBlockSettings: template.workflowBlockSettings ?? {}, }, - expected.contract, - `${template.id} retains the complete creator contract`, + expectedContract, + `${template.id} retains every setting outside its declared creative revision`, ); assert.equal(template.executionSelection?.schemaVersion, 1, `${template.id} selects a reviewed operation recipe`); assert.ok(template.executionSelection.executionProfileId); @@ -421,6 +442,52 @@ test('historical approved image remains visible without becoming proof of the cu assert.equal(exactness.findHistoricalTemplateManifestEntry(changedPrompt, manifest), undefined); }); +test('historical adapter examples retain their recorded immutable pin when authoring adds that revision', async () => { + const manifest = JSON.parse(await readFile('public/template-gallery/manifest.json', 'utf8')); + for (const id of [ + 'qwen_product_ad_composite', + 'qwen_product_relight', + 'qwen_logo_texture', + 'character_edit', + 'reference_fusion', + 'qwen_multi_reference_product', + ]) { + const template = templates.find((item) => item.id === id); + const before = structuredClone(template); + assert.equal(exactness.findManifestEntry(template, manifest), undefined); + const previous = exactness.findHistoricalTemplateManifestEntry(template, manifest); + assert.ok(previous, id); + assert.equal(previous.templateLockHash, manifest.examples.find((item) => item.templateId === id).templateLockHash); + assert.equal( + exactness.getTemplateExampleUiState(template, selectedForm(template), null, manifest).status, + 'historical', + ); + assert.deepEqual(template, before, 'historical lookup never rewrites the current template'); + for (const change of [ + { revision: 'a'.repeat(40) }, + { revision: 'main' }, + { value: 'another/adapter' }, + { sha256: 'b'.repeat(64) }, + { byteSize: 1 }, + { source: 'local' }, + ]) { + const changed = structuredClone(template); + Object.assign(changed.workflowBlockSettings.lora.model, change); + assert.equal(exactness.findHistoricalTemplateManifestEntry(changed, manifest), undefined, JSON.stringify(change)); + } + const changedScale = structuredClone(template); + changedScale.workflowBlockSettings.lora.scale = 0.5; + assert.equal(exactness.findHistoricalTemplateManifestEntry(changedScale, manifest), undefined); + const changedPrompt = { ...template, prompt: template.prompt + ' changed scene' }; + assert.equal(exactness.findHistoricalTemplateManifestEntry(changedPrompt, manifest), undefined); + for (const field of ['modelCommit', 'modelRevision']) { + const unbound = structuredClone(manifest); + unbound.examples.find((item) => item.templateId === id)[field] = 'another/adapter@' + 'a'.repeat(40); + assert.equal(exactness.findHistoricalTemplateManifestEntry(template, unbound), undefined, field); + } + } +}); + function selectedForm(template) { const authored = { ...defaults, ...exactness.getTemplateLockedSettings(template) }; return { diff --git a/src/studio/templateExactness.ts b/src/studio/templateExactness.ts index 543aa2f7..86ffead2 100644 --- a/src/studio/templateExactness.ts +++ b/src/studio/templateExactness.ts @@ -438,15 +438,53 @@ export function findManifestEntry( ); } -/** Approved media from the unchanged creator recipe before its execution - * selection changed. It is display provenance, never proof of the new graph. */ +function historicalWorkflowSettings(value: unknown, recordedModels: readonly string[]): unknown { + if (Array.isArray(value)) return value.map((item) => historicalWorkflowSettings(item, recordedModels)); + if (!value || typeof value !== 'object') return value; + const artifact = value as Record; + // Some old creator locks predate an explicit authoring revision even though + // the actual published run already records that exact immutable artifact. + // Keep all other artifact metadata in the lock, including its weight hash. + const recordedRevision = + artifact.source === 'hub' && + typeof artifact.revision === 'string' && + /^[a-f0-9]{40}$/u.test(artifact.revision) && + recordedModels.includes(`${artifact.value}@${artifact.revision}`); + return Object.fromEntries( + Object.entries(artifact).flatMap(([key, item]) => + key === 'revision' && recordedRevision ? [] : [[key, historicalWorkflowSettings(item, recordedModels)]], + ), + ); +} + +/** Approved media from an earlier creator lock. It is display provenance, + * never proof of the current graph or execution selection. */ export function findHistoricalTemplateManifestEntry( template: StudioTemplate, manifest: TemplateGalleryManifest | null | undefined, options: { requireCardPreview?: boolean } = {}, ) { - if (!template.executionSelection) return undefined; - return findManifestEntry({ ...template, executionSelection: undefined }, manifest, options); + if (!template.executionSelection || !manifest || manifest.schemaVersion !== 2) return undefined; + const previous = { ...template, executionSelection: undefined }; + const historical = findManifestEntry(previous, manifest, options); + if (historical || !template.workflowBlockSettings) return historical; + return manifest.examples.find( + (entry) => + coerceStudioTemplateId(entry.templateId) === template.id && + typeof entry.modelCommit === 'string' && + entry.modelRevision === entry.modelCommit && + findManifestEntry( + { + ...previous, + workflowBlockSettings: historicalWorkflowSettings( + template.workflowBlockSettings, + entry.modelCommit.split(' | '), + ) as StudioTemplate['workflowBlockSettings'], + }, + { ...manifest, examples: [entry] }, + options, + ), + ); } export function getTemplateExampleUiState( diff --git a/src/studio/templates.ts b/src/studio/templates.ts index 65de6b29..8bb3bac7 100644 --- a/src/studio/templates.ts +++ b/src/studio/templates.ts @@ -1129,7 +1129,7 @@ const TEMPLATE_PROMPTS: Array<[prompt: string, negativePrompt: string]> = [ '', ], [ - 'cinematic_octane, 3D Portrait, 3d render. One adult female deep-sea engineer in a centered chest-up portrait, with her complete head, both shoulders, and the full broad pressure collar visible inside the frame. Sharp focus on both symmetrical eyes. Damp short black hair with individual strands, natural skin pores, and one thin healed scar crossing only her right eyebrow; intact skin, no blood, bruise, swelling, or open wound. Plain graphite diving suit with crisp woven fabric and one broad oxidized-brass pressure collar with fine brushed-metal microtexture. Controlled cinematic CG depth, cool cyan key light, restrained warm amber rim light, realistic material response, no text, logo, watermark, or extra person.', + 'cinematic_octane, 3D Portrait, 3d render. A sharp, high-detail cinematic CG portrait of one adult female deep-sea engineer. Centered chest-up composition, full head, both shoulders and the complete wide pressure collar comfortably inside the frame. Smooth healthy unmarked face, relaxed neutral expression, clear symmetrical eyes with sharply resolved irises and eyelashes. Short damp black hair separated into individual strands. Graphite woven diving suit and a single broad oxidized-brass pressure collar with finely brushed metal texture. Cool cyan key light and restrained warm amber rim light. Both eyes, facial features and the collar share a sharp focus plane; readable material texture, controlled depth of field and a softly blurred plain dark teal background. One person, realistic anatomy, clean studio-quality render.', '', ], [ @@ -2966,7 +2966,7 @@ const BASE_STUDIO_TEMPLATES: StudioTemplateSource[] = [ }, { id: 'flux_lora_cinematic_octane_3d', - label: 'FLUX.1-dev — LoRA Mix: Cinematic Octane 3D', + label: 'FLUX.1-dev — LoRA Mix: Cinematic Octane 3D (Recipe v3)', mode: 'text_to_image', modelType: 'FluxDevPipeline', category: 'lora', @@ -2975,18 +2975,25 @@ const BASE_STUDIO_TEMPLATES: StudioTemplateSource[] = [ requiredBackendCapabilities: ['Diffusers image direct pipeline', 'pinned LoRA adapter verification'], workflowBlocks: ['lora'], workflowBlockSettings: { lora: FLUX_THEME_LORAS.cinematicOctane3d }, - vramEstimate: '24 GB native or quantized/offloaded', + vramEstimate: 'High-memory host with group offload; Windows fit unverified', runtimeEstimate: '2-6 min after the base and both adapters are resident', description: 'Cinematic-Octane character rendering with the documented trigger and a low-strength 3D-render adapter for controlled CG depth.', presetId: 'flux_quality', - example: example(9371, '2-6 min after the base and both adapters are resident', { - width: 768, - height: 1024, - steps: 24, - guidanceScale: 3, - resourceMode: 'auto', - }), + example: { + ...example(9371, '2-6 min after the base and both adapters are resident', { + width: 768, + height: 1024, + steps: 24, + guidanceScale: 1, + resourceMode: 'expert', + dtype: 'bfloat16', + autoOffload: true, + offloadMode: 'group_cpu', + }), + notes: + 'Recipe v3 uses an injury-free portrait prompt, true CFG 1 and retained distilled guidance 3.5. Custom group offload was tested on Linux. Auto, Windows fit and public Gallery qualification remain unverified.', + }, }, { id: 'flux_lora_ghibli_story', diff --git a/tests/fixtures/image-template-creative-revisions.v1.json b/tests/fixtures/image-template-creative-revisions.v1.json new file mode 100644 index 00000000..132b929b --- /dev/null +++ b/tests/fixtures/image-template-creative-revisions.v1.json @@ -0,0 +1,16 @@ +{ + "schemaVersion": 1, + "revisions": [ + { + "templateId": "flux_lora_cinematic_octane_3d", + "recipeVersion": 3, + "previousPromptSha256": "f8a847386a8f87df49167d184c520bb683239fe21a23ae5c855f46914ff40863", + "promptSha256": "c692698583d87ddb656c3771568519f03ecf9786715878befd8ecc8513b44296", + "lockedSettings": { + "guidanceScale": 1, + "resourceMode": "expert" + }, + "reason": "Remove injury references and the extra true-CFG pass after the retained portrait and adapter-free control showed soft detail. Keep the original model, adapters, scales, seed, geometry, steps and group offload. The frozen v1 creator contract and its original-source comparison remain unchanged; this revision does not inherit their pixel-parity or publication approval." + } + ] +} From add24386c68eb103fbca8b9b43b6e22e84ce3399 Mon Sep 17 00:00:00 2001 From: Sourav Das Date: Sun, 1 Nov 2026 12:17:39 +0530 Subject: [PATCH 120/440] Pin image closeout CI to the reviewed backend bundle --- .github/workflows/ci.yml | 4 ++-- README.md | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index a9ddce8c..0a36ab04 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -33,7 +33,7 @@ jobs: with: repository: sdevil7th/MoDiff # Paired native contracts and lossless Save Image history previews. - ref: b4cc3a03f6250d42b940da89a6551750103e5a79 + ref: da44556740b09a65ce0b7c59f79e2ed3f3067fcf path: MoDiff persist-credentials: false - name: Verify the pinned backend supports native setup @@ -88,7 +88,7 @@ jobs: with: repository: sdevil7th/MoDiff # Match the immutable backend revision in the Client quality job. - ref: b4cc3a03f6250d42b940da89a6551750103e5a79 + ref: da44556740b09a65ce0b7c59f79e2ed3f3067fcf path: MoDiff persist-credentials: false - name: Verify the pinned backend supports native setup diff --git a/README.md b/README.md index af7f4d81..60d57b1e 100644 --- a/README.md +++ b/README.md @@ -28,15 +28,15 @@ application source pair is: | Repository | Application source before final packaging | | ------------- | ------------------------------------------ | -| MoDiff | `be4d8de439558e5929a2ff3c8941341d13f10f6e` | -| MoDiff-client | `1c2af2b181f736af7c8baced345a7582a1018532` | +| MoDiff | `da44556740b09a65ce0b7c59f79e2ed3f3067fcf` | +| MoDiff-client | `ef37863c4a5ab2c3736090a6f4fad81b849578d9` | -CI backend contract: `b4cc3a03f6250d42b940da89a6551750103e5a79`. +CI backend contract: `da44556740b09a65ce0b7c59f79e2ed3f3067fcf`. Both CI jobs use this exact immutable backend pin. It can include documentation descendants of the reviewed application source above. -These application source revisions were reviewed on 31 October 2026. Final +These application source revisions were reviewed on 1 November 2026. Final documentation, CI pairing and bundled-client packaging commits can be later descendants; they do not expand model or hardware qualification. Record `git rev-parse HEAD` in each checkout and use the final paired handoff when the From 7eee64f849f7c1844873c36611394dfe0722f5fb Mon Sep 17 00:00:00 2001 From: Sourav Das Date: Sun, 1 Nov 2026 14:06:50 +0530 Subject: [PATCH 121/440] Share video stages and preserve template finishing --- docs/README.md | 2 + docs/deployment.md | 7 + docs/developer-first-node-ux.md | 2 +- docs/video-workflows.md | 35 ++ package.json | 2 +- scripts/bundle-budget.mjs | 9 + scripts/template-operation-fixtures.py | 4 +- scripts/template-operation-workflows.test.mjs | 5 +- scripts/video-stage-groups.test.mjs | 408 ++++++++++++++++++ src/components/VisualStageControls.tsx | 4 +- src/studio/controlledWorkflowValues.ts | 68 ++- src/studio/controlledWorkflows.ts | 56 +-- src/studio/templateOperationSelections.ts | 30 ++ src/studio/templateOperationWorkflow.ts | 58 ++- src/studio/templates.ts | 5 +- src/workflow/imagePipelineStageContracts.ts | 22 +- src/workflow/operationStarterRequest.ts | 10 +- .../visualOperationGroupProjection.ts | 19 +- src/workflow/visualOperationGroups.ts | 60 ++- 19 files changed, 719 insertions(+), 87 deletions(-) create mode 100644 docs/video-workflows.md create mode 100644 scripts/video-stage-groups.test.mjs diff --git a/docs/README.md b/docs/README.md index faaeab29..adfdb6e1 100644 --- a/docs/README.md +++ b/docs/README.md @@ -10,6 +10,8 @@ The [image template workflow guide](image-template-workflows.md) covers fresh template graphs, preserved settings and the distinction from historical examples. The [audio workflow guide](audio-workflows.md) explains real generation stages, source audio, selected adapter ownership, playback and validation boundaries. +The [video workflow guide](video-workflows.md) covers shared stages, source media, +retained upscaling and soundtrack branches, and validation boundaries. | Guide | Audience | What it covers | | ----------------------------------------------- | ------------------- | --------------------------------------------------------------------------------------------- | diff --git a/docs/deployment.md b/docs/deployment.md index 1d5d85e5..bbf7249e 100644 --- a/docs/deployment.md +++ b/docs/deployment.md @@ -254,6 +254,13 @@ hash with the tested build. ## Copy The Build Into The Backend +The selected LTX/Wan video stages and retained finishing branches measure +494742/673228/329130 gzip bytes for largest startup/startup total/deferred total, +against the preceding 494455/672941/328233. The measured allowance is 287/287/897 +bytes, retaining 8/11/79 bytes of headroom. The four startup and 90 deferred asset +members, dependencies, loading boundaries, minifier and independent 65536-byte +deferred chunk ceiling remain fixed. + The MoDiff backend serves the integrated application from its `web/` directory. Replace generated client content, but preserve backend/user-owned content that is not produced by this client checkout. PowerShell example from `MoDiff-client`. `robocopy` exit codes below 8 are diff --git a/docs/developer-first-node-ux.md b/docs/developer-first-node-ux.md index 48be7e6f..82e9064e 100644 --- a/docs/developer-first-node-ux.md +++ b/docs/developer-first-node-ux.md @@ -59,7 +59,7 @@ instead of silently discarding authored settings. | Upscale / refinement | Retain named downstream image operations, connect ordinary image outputs | | ACE variation/repaint/continuation | Attach Load Audio to declared source_audio; keep prompt/lyrics controls | | Transcription / processing | Connect existing typed audio sources to declared consumers; no automatic model-family substitution | -| Video | Existing functionality unchanged; simplification deferred | +| Video | Shared stages for selected LTX/Wan routes; existing native video stages use the same grouping | This audit does not claim fewer backend classes: existing generic modular stages already share their execution implementations, and the remaining Generate/Edit diff --git a/docs/video-workflows.md b/docs/video-workflows.md new file mode 100644 index 00000000..161298ee --- /dev/null +++ b/docs/video-workflows.md @@ -0,0 +1,35 @@ +# Video workflows + +New selected LTX and Wan workflows use shared stage nodes: **Model Setup → Encode +Inputs → Denoise → Video Output**. Expand a group to inspect and edit its ordinary +nodes. A model-specific function is not presented as a new kind of frontend node. +Four is not a stage limit: upscaling, a separately generated soundtrack and audio +timeline fitting remain visible when a template includes them. + +LTX's declared separate-stage tasks accept text, an opening image, ordered +reference images or source video. The selected Wan 2.2 5B backend route currently +accepts text only. Model names and cached weights do not prove another task is +supported. Existing whole-pipeline graphs retain their original representation; +loading an old workflow does not migrate its nodes or discard saved settings. + +Choose a supported task and exact model selection, enter the prompt and required +media, and review the resource settings before Run. The backend owns loading, +sampling and decoding. Auto availability and native validation remain separate +from whether a template can be created. Large video model acceptance is performed +on Linux; this interface does not promise that those weights fit every Windows +machine. + +Encode Inputs can reuse unchanged prompt data. Denoise consumes encoding from the +same model owner, and Video Output decodes that owner's current latents. Changing +the owner or relevant recipe requires fresh runtime data. Saved values and wires +survive reopening; runtime tensors are recomputed after restarting the app. + +LTX templates retain their delivery upscaler. Wan's music-video template retains +its independent audio model, authored soundtrack, timeline fit and muxed export. +An independently generated soundtrack is not described as audio from the video +decoder. A real upscaler between decode and export remains a separate stage. + +The implementation and proof boundaries are described in the paired backend's +`docs/video-pipeline-stages.md`. Schema tests and mocked workflows establish +authoring behavior, not successful video generation. A testable release needs +native task completion and playback on the deployed source pair. diff --git a/package.json b/package.json index 22b67e07..ba0a69f4 100644 --- a/package.json +++ b/package.json @@ -95,7 +95,7 @@ "test:graph-mutations": "node --test scripts/flow-graph-mutations.test.mjs scripts/graph-fixer.test.mjs scripts/process-image-input-requirements.test.mjs scripts/block-seed-repair-v2.test.mjs scripts/block-derived-control-repair-v2.test.mjs scripts/adapter-chain-links.test.mjs", "test:graph-visuals": "node --test scripts/graph-visuals.test.mjs scripts/node-measurement-dispatch.test.mjs scripts/node-connection-search.test.mjs", "test:media-viewer": "node --test scripts/media-viewer.test.mjs scripts/workflow-png-package.test.mjs", - "test:requests": "node --test scripts/controlled-execution-receipt.test.mjs scripts/media-attachment.test.mjs scripts/node-presentation.test.mjs scripts/service-package.test.mjs scripts/node-store-requests.test.mjs scripts/operation-catalog.test.mjs scripts/operation-component-bundle-inputs.test.mjs scripts/operation-component-bundle.test.mjs scripts/operation-authoring.test.mjs scripts/operation-authoring-headless.test.mjs scripts/operation-authoring-recipes.test.mjs scripts/image-stage-groups.test.mjs scripts/model-setup-adapter-authority.test.mjs scripts/audio-authoring.test.mjs scripts/operation-modification-matrix.test.mjs scripts/request-boundary.test.mjs scripts/server-actions.test.mjs scripts/shared-store-requests.test.mjs scripts/supervisor-startup.test.mjs scripts/studio-output-requests.test.mjs scripts/resolved-execution-inputs.test.mjs scripts/prompt-enhancement-summary.test.mjs scripts/ancillary-operations.test.mjs scripts/ancillary-execution-scope.test.mjs scripts/prompt-enhancement-authoring.test.mjs scripts/prompt-enhancement-preview.test.mjs scripts/runtime-resources.test.mjs scripts/websocket-connection.test.mjs scripts/backend-proxy-lifecycle.test.mjs", + "test:requests": "node --test scripts/controlled-execution-receipt.test.mjs scripts/media-attachment.test.mjs scripts/node-presentation.test.mjs scripts/service-package.test.mjs scripts/node-store-requests.test.mjs scripts/operation-catalog.test.mjs scripts/operation-component-bundle-inputs.test.mjs scripts/operation-component-bundle.test.mjs scripts/operation-authoring.test.mjs scripts/operation-authoring-headless.test.mjs scripts/operation-authoring-recipes.test.mjs scripts/image-stage-groups.test.mjs scripts/video-stage-groups.test.mjs scripts/model-setup-adapter-authority.test.mjs scripts/audio-authoring.test.mjs scripts/operation-modification-matrix.test.mjs scripts/request-boundary.test.mjs scripts/server-actions.test.mjs scripts/shared-store-requests.test.mjs scripts/supervisor-startup.test.mjs scripts/studio-output-requests.test.mjs scripts/resolved-execution-inputs.test.mjs scripts/prompt-enhancement-summary.test.mjs scripts/ancillary-operations.test.mjs scripts/ancillary-execution-scope.test.mjs scripts/prompt-enhancement-authoring.test.mjs scripts/prompt-enhancement-preview.test.mjs scripts/runtime-resources.test.mjs scripts/websocket-connection.test.mjs scripts/backend-proxy-lifecycle.test.mjs", "test:run-coordinator": "node --test scripts/run-coordinator.test.mjs scripts/ancillary-run-coordinator.test.mjs scripts/compatibility-panel.test.mjs scripts/run-issue-store.test.mjs scripts/block-runtime-hints-v2.test.mjs scripts/workflow-auto-weight-loading.test.mjs", "test:run-activity": "node --test scripts/run-activity.test.mjs", "test:template-input-preview": "node --test scripts/template-input-preview.test.mjs", diff --git a/scripts/bundle-budget.mjs b/scripts/bundle-budget.mjs index 9da9ca4b..b6aa6eb5 100644 --- a/scripts/bundle-budget.mjs +++ b/scripts/bundle-budget.mjs @@ -1,3 +1,9 @@ +// Generic video stages, strict ownership metadata and retained template finishing +// measure largest/startup/deferred gzip 494742/673228/329130 against the accepted +// 494455/672941/328233. Add only measured growth 287/287/897, preserving 8/11/79 +// bytes of headroom. The same four startup and 90 deferred assets retain their +// loading membership. Dependencies, chunk rules, minifier, identity validation +// and the independent 65536-byte deferred chunk cap remain unchanged. // Recorded-pin historical examples and the explicit portrait-v3 recipe measure // largest/startup/deferred gzip 494455/672941/328233 versus the accepted // 494259/672742/328069. Add measured startup growth 196/199, retaining 8/11 @@ -270,6 +276,7 @@ const SOURCE_LICENSES = new URL('../public/THIRD_PARTY_LICENSES.txt', import.met // Allow only measured startup growth (+1649/+1651), retaining 8/11 bytes headroom. // Four startup and 89 deferred assets, dependencies, loading rules and deferred caps stay fixed. const MAX_STARTUP_CHUNK_GZIP_BYTES = + 287 + 196 + 1051 + 38 + @@ -394,6 +401,7 @@ const MAX_STARTUP_CHUNK_GZIP_BYTES = // Preserve the separately measured 64-byte shared loading-policy allowance above. // Preserve the measured 384-byte selected-image authoring allowance above. const MAX_STARTUP_GZIP_BYTES = + 287 + 199 + 1047 + 36 + @@ -602,6 +610,7 @@ const MAX_DEFERRED_CHUNK_GZIP_BYTES = 64 * 1024; // 321033-byte cap, preserving 39 bytes of headroom at 321227. Startup caps, the // 65536-byte deferred chunk cap, dependencies and loading boundaries stay fixed. const MAX_DEFERRED_GZIP_BYTES = + 897 + 1043 + 334 + 178 + diff --git a/scripts/template-operation-fixtures.py b/scripts/template-operation-fixtures.py index 9fba808b..14e61d8a 100644 --- a/scripts/template-operation-fixtures.py +++ b/scripts/template-operation-fixtures.py @@ -104,7 +104,9 @@ def describe(key): "modules.Spandrel.Upscaler", "modules.Image.Preview", "modules.Image.Resize", "modules.Image.Save", "modules.ImageOperations.CropImage", "modules.ImageOperations.MaskComposite", "modules.DiffusersImage.OutpaintCanvas", "modules.Audio.Export", "modules.Audio.Load", "modules.Image.Load", - "modules.DiffusersAudio.LoadAdapter"): + "modules.DiffusersAudio.LoadAdapter", "modules.Video.Export", "modules.Video.ExportWithAudio", + "modules.Audio.FitDuration", "modules.DiffusersAudio.LoadPipeline", "modules.DiffusersAudio.Generate", + "modules.DiffusersRuntime.PipelineQuantizationConfigV2", "modules.DiffusersRuntime.DiffusersExecutionRecipe"): describe(key) if any(item["selection"]["pipelineClass"] == "Cosmos3OmniModularPipeline" for item in selections): from modiff.modular_whole_workflow_contracts import ( diff --git a/scripts/template-operation-workflows.test.mjs b/scripts/template-operation-workflows.test.mjs index b4b91914..bf76f3ae 100644 --- a/scripts/template-operation-workflows.test.mjs +++ b/scripts/template-operation-workflows.test.mjs @@ -2039,7 +2039,10 @@ test('six pipeline-stage image selections describe real encoding and latent outp 'flux_redux_edit', 'flux_redux_multi_reference', ]; - const selected = templates.filter((template) => template.executionSelection?.implementation === 'pipeline_stages'); + const selected = templates.filter( + (template) => + template.example?.mediaType === 'image' && template.executionSelection?.implementation === 'pipeline_stages', + ); assert.deepEqual(selected.map((template) => template.id).sort(), [...expected].sort()); for (const template of selected) { const row = fixture.recipes.find((item) => item.id === template.id); diff --git a/scripts/video-stage-groups.test.mjs b/scripts/video-stage-groups.test.mjs new file mode 100644 index 00000000..e8d84291 --- /dev/null +++ b/scripts/video-stage-groups.test.mjs @@ -0,0 +1,408 @@ +import assert from 'node:assert/strict'; +import { execFileSync } from 'node:child_process'; +import path from 'node:path'; +import { after, before, test } from 'node:test'; +import { createServer } from 'vite'; + +let fixture, + server, + authoring, + groups, + projection, + exporter, + templates, + builder, + exactness, + defaults, + nodes, + contracts, + starterParser; +before(async () => { + const backend = process.env.MODIFF_BACKEND_DIR || path.resolve('../MoDiff'); + const python = + process.env.MODIFF_BACKEND_PYTHON || + path.join(backend, '.venv', process.platform === 'win32' ? 'Scripts/python.exe' : 'bin/python'); + const selections = [ + ['WanModularPipeline', 'text_to_video'], + ['MiniMaxH3ModularPipeline', 'text_to_video_with_audio'], + ['MiniMaxH3ModularPipeline', 'first_last_frame_to_video_with_audio'], + ['MiniMaxH3ModularPipeline', 'reference_to_video_with_audio'], + ].map(([pipelineClass, task]) => ({ id: `${pipelineClass}:${task}`, selection: { pipelineClass, task } })); + for (const [id, modelType, pipelineClass, profile, task] of [ + ['ltx_video_text_to_video', 'LTXVideoPipeline', 'LTXConditionPipeline', 'ltx-video:direct', 'text_to_video'], + ['ltx_video_image_to_video', 'LTXVideoPipeline', 'LTXConditionPipeline', 'ltx-video:direct', 'image_to_video'], + ['ltx_video_video_to_video', 'LTXVideoPipeline', 'LTXConditionPipeline', 'ltx-video:direct', 'video_to_video'], + ['ltx_video_multi_reference', 'LTXVideoPipeline', 'LTXConditionPipeline', 'ltx-video:direct', 'reference_to_video'], + ['wan_22_ti2v_5b_seed_vault', 'WanTI2VPipeline', 'WanTI2VPipeline', 'wan-22-ti2v-5b:direct', 'text_to_video'], + ]) + selections.push({ + id, + selection: { + pipelineClass, + task, + executionProfileId: profile, + bindingSpec: { modelType, mode: task }, + authoringRecipeId: 'generic-video-stages:v1', + }, + }); + fixture = JSON.parse( + execFileSync(python, [path.resolve('scripts/template-operation-fixtures.py')], { + cwd: backend, + encoding: 'utf8', + maxBuffer: 64 * 1024 ** 2, + timeout: 120_000, + input: JSON.stringify(selections), + env: { + ...process.env, + MODIFF_BACKEND_DIR: backend, + HF_HUB_OFFLINE: '1', + TRANSFORMERS_OFFLINE: '1', + PYTHONDONTWRITEBYTECODE: '1', + CUDA_VISIBLE_DEVICES: '', + }, + }), + ); + const storage = new Map(); + globalThis.localStorage = { + getItem: (key) => storage.get(key) ?? null, + setItem: (key, value) => storage.set(key, value), + removeItem: (key) => storage.delete(key), + }; + globalThis.window = { dispatchEvent: () => true, location: { origin: 'http://127.0.0.1:5191' }, localStorage }; + server = await createServer({ + configFile: false, + logLevel: 'silent', + optimizeDeps: { entries: [], noDiscovery: true }, + server: { middlewareMode: true, watch: null }, + appType: 'custom', + }); + authoring = await server.ssrLoadModule('/src/workflow/operationAuthoring.ts'); + groups = await server.ssrLoadModule('/src/workflow/visualOperationGroups.ts'); + projection = await server.ssrLoadModule('/src/workflow/visualOperationGroupProjection.ts'); + exporter = await server.ssrLoadModule('/src/stores/useFlowStore.ts'); + nodes = await server.ssrLoadModule('/src/stores/useNodeStore.ts'); + contracts = await server.ssrLoadModule('/src/workflow/operationContracts.ts'); + starterParser = await server.ssrLoadModule('/src/workflow/operationStarterRequest.ts'); + ({ STUDIO_TEMPLATES: templates } = await server.ssrLoadModule('/src/studio/templates.ts')); + builder = await server.ssrLoadModule('/src/studio/templateOperationWorkflow.ts'); + exactness = await server.ssrLoadModule('/src/studio/templateExactness.ts'); + ({ DEFAULT_STUDIO_FORM: defaults } = await server.ssrLoadModule('/src/studio/modelProfiles.ts')); +}); +after(async () => server?.close()); + +function graphFor(row) { + const graph = authoring.createOperationStarter(structuredClone(row.starter), { x: 0, y: 0 }); + for (const node of graph.nodes) + if (String(node.data.params.device?.value ?? node.data.params.device?.default).startsWith('cpu')) { + if (node.data.params.offload_mode) node.data.params.offload_mode.value = 'none'; + if (node.data.params.auto_offload) node.data.params.auto_offload.value = false; + } + const audio = row.starter.task.includes('audio'); + graph.nodes.push({ + id: 'video-export', + type: 'custom', + position: { x: 1800, y: 0 }, + data: structuredClone(fixture.registry[`modules.Video.${audio ? 'ExportWithAudio' : 'Export'}`]), + }); + for (const media of audio ? ['video', 'audio'] : ['video']) { + const sources = graph.nodes.filter( + (node) => + node.id !== 'video-export' && + Object.values(node.data.params).some((field) => field.display === 'output' && field.type === media), + ); + assert.equal(sources.length, 1, `one real final ${media} producer`); + const port = Object.entries(sources[0].data.params).find( + ([, field]) => field.display === 'output' && field.type === media, + )[0]; + graph.edges.push({ + id: `export-${media}`, + source: sources[0].id, + sourceHandle: port, + target: 'video-export', + targetHandle: media, + }); + } + return graph; +} + +function api(graph) { + const result = exporter.useFlowStore + .getState() + .exportGraph('video-stage-contract', undefined, { sourceGraph: graph, randomizeSeeds: false }); + const names = new Map(Object.entries(result.nodes).map(([id, node]) => [id, `${node.module}.${node.action}`])); + assert.equal(new Set(names.values()).size, names.size); + const normalize = (value) => + Array.isArray(value) + ? value.map(normalize) + : value && typeof value === 'object' + ? Object.fromEntries( + Object.entries(value).map(([key, item]) => [ + key, + key === 'sourceId' ? (names.get(item) ?? item) : normalize(item), + ]), + ) + : value; + // Presentation may choose another valid ordering of independent suppliers. + // Compare every exact node input/connection and scope membership, and require + // actual dependencies to precede their consumers in both exported orders. + const suppliers = (value) => + Array.isArray(value) + ? value.flatMap(suppliers) + : value && typeof value === 'object' + ? [...(typeof value.sourceId === 'string' ? [value.sourceId] : []), ...Object.values(value).flatMap(suppliers)] + : []; + for (const route of result.paths) + for (const id of route) + for (const source of suppliers(result.nodes[id])) { + assert.ok( + route.indexOf(source) >= 0 && route.indexOf(source) < route.indexOf(id), + 'connected supplier precedes its consumer', + ); + } + return { + nodes: Object.fromEntries( + [...names].map(([id, name]) => [name, normalize(result.nodes[id])]).sort(([a], [b]) => a.localeCompare(b)), + ), + paths: result.paths + .map((route) => route.map((id) => names.get(id) ?? id).sort()) + .sort((a, b) => JSON.stringify(a).localeCompare(JSON.stringify(b))), + }; +} + +test('actual video workflows group real encoders and decoder/export without changing execution', async (t) => { + for (const row of fixture.recipes) + await t.test(row.id, () => { + const graph = graphFor(row), + original = structuredClone(graph); + const grouped = groups.groupNewOperationGraph(graph); + const inputs = grouped.nodes.filter((node) => groups.visualOperationGroup(node) === 'inputs'); + const outputs = grouped.nodes.filter((node) => groups.visualOperationGroup(node) === 'output'); + assert.equal(inputs.length, 1); + assert.equal(outputs.length, 1); + assert.equal(outputs[0].data.label, 'Video Output'); + assert.equal(projection.visualOperationGroupMedia(outputs[0]), 'video'); + assert.equal(outputs[0].data.blockInstanceV2.previewStates[0].binding.mediaType, 'video'); + assert.equal( + inputs[0].data.blockInstanceV2.effectiveGraph.nodes.some( + (node) => node.data.operationAuthoring.operation.nodeType === 'denoise', + ), + false, + ); + const expectedEncoders = graph.nodes.filter((node) => + ['text_encoder', 'vae_encoder', 'before_encode', 'video_encoder'].includes( + node.data.operationAuthoring?.operation.nodeType, + ), + ); + assert.equal(inputs[0].data.blockInstanceV2.effectiveGraph.nodes.length, expectedEncoders.length); + assert.deepEqual(api(grouped), api(original)); + assert.deepEqual(api(groups.unpackVisualOperationGroups(grouped).graph), api(original)); + assert.deepEqual(graph, original); + const restored = JSON.parse(JSON.stringify(grouped)); + assert.deepEqual(api(restored), api(original), 'ordinary saved graph reopens with exact values and connections'); + }); +}); + +test('five retained video template factories preserve creative settings on their exact staged starters', () => { + const parsed = nodes.parseStudioModelCapabilities(fixture.publicPayload); + const operations = contracts.parseOperationContracts( + fixture.publicPayload.operationContracts, + fixture.publicPayload.operationContractSchemaVersion, + ); + for (const row of fixture.recipes.filter((row) => row.spec)) { + const template = templates.find((template) => template.id === row.id); + assert.ok(template?.executionSelection, row.id); + const capability = parsed.capabilities.find((capability) => capability.modelType === template.modelType); + const spec = capability.studioExecutionSpecs.find((spec) => spec.mode === template.mode); + const starter = starterParser.parseOperationStarter( + row.starter, + row.starter.pipelineClass, + row.starter.task, + operations, + { executionProfileId: row.spec.executionProfileId, authoringRecipeId: 'generic-video-stages:v1' }, + ); + const form = { + ...defaults, + ...exactness.getTemplateLockedSettings(template), + device: 'cpu:0', + offloadMode: 'none', + autoOffload: false, + referenceImages: ['images/reference.webp'], + sourceVideo: 'videos/source.mp4', + }; + const graph = builder.createTemplateOperationGraph(template, form, starter, fixture.registry, spec, capability); + const flat = groups.unpackVisualOperationGroups(graph).graph; + assert.ok( + !flat.nodes.some((node) => node.data.module === 'modules.DiffusersVideo' && node.data.action === 'Generate'), + ); + const encoder = flat.nodes.find((node) => node.data.action === 'EncodeInputs'); + const denoiser = flat.nodes.find((node) => node.data.action === 'Denoise'); + assert.equal(encoder.data.params.prompt.value, form.prompt); + assert.deepEqual(denoiser.data.params.seed.value, { value: form.seed, isRandom: false }); + for (const [key, value] of [ + ['width', form.width], + ['height', form.height], + ['num_frames', form.numFrames], + ['num_inference_steps', form.steps], + ]) + assert.equal(denoiser.data.params[key].value, value, `${row.id}:${key}`); + const decoder = flat.nodes.find((node) => node.data.action === 'DecodeLatents'); + const exportNode = flat.nodes.find((node) => node.data.module === 'modules.Video'); + assert.ok(decoder && exportNode, 'real video decode and delivery are retained'); + const videoWire = flat.edges.find((edge) => edge.target === exportNode.id && edge.targetHandle === 'video'); + if (template.workflowBlocks?.includes('upscaler')) { + const upscale = flat.nodes.find((node) => node.data.module === 'modules.Spandrel'); + assert.deepEqual(upscale.data.params.model_id.value, template.workflowBlockSettings.upscaler.model); + assert.equal(videoWire.source, upscale.id); + assert.ok(flat.edges.some((edge) => edge.source === decoder.id && edge.target === upscale.id)); + assert.equal( + graph.nodes.filter((node) => groups.visualOperationGroup(node) === 'output').length, + 0, + 'an interposed upscale remains a genuine separate stage', + ); + } else assert.equal(videoWire.source, decoder.id); + if (template.workflowBlocks?.includes('soundtrack')) { + assert.equal(exportNode.data.action, 'ExportWithAudio'); + const soundtrack = flat.nodes.find( + (node) => node.data.module === 'modules.DiffusersAudio' && node.data.action === 'Generate', + ); + const fit = flat.nodes.find((node) => node.data.module === 'modules.Audio' && node.data.action === 'FitDuration'); + const audioOwner = flat.nodes.find( + (node) => node.data.module === 'modules.DiffusersAudio' && node.data.action === 'LoadPipeline', + ); + const settings = template.workflowBlockSettings.soundtrack; + assert.equal(soundtrack.data.params.prompt.value, settings.prompt); + assert.equal(soundtrack.data.params.seed.value, settings.seed); + assert.equal(audioOwner.data.params.revision.value, settings.model.revision); + assert.equal(fit.data.params.target_duration_seconds.value, settings.audioFit.targetDurationSeconds); + assert.ok( + flat.edges.some( + (edge) => edge.source === soundtrack.id && edge.target === fit.id && edge.targetHandle === 'audio', + ), + ); + assert.ok( + flat.edges.some( + (edge) => edge.source === fit.id && edge.target === exportNode.id && edge.targetHandle === 'audio', + ), + ); + assert.equal( + graph.nodes.filter((node) => groups.visualOperationGroup(node) === 'output').length, + 0, + 'independently generated audio is not presented as a joint decoder', + ); + } + } +}); + +test('joint video output keeps audio connected and refuses an independently supplied soundtrack', () => { + const row = fixture.recipes.find((row) => row.starter.task.includes('audio')); + const graph = graphFor(row); + graph.edges.find((edge) => edge.target === 'video-export' && edge.targetHandle === 'audio').source = 'external-audio'; + const result = groups.groupNewOperationGraph(graph); + assert.equal( + result.nodes.some((node) => groups.visualOperationGroup(node) === 'output'), + false, + ); +}); + +test('selected video starters reject missing ownership wires, partial stages and foreign task metadata', () => { + const operations = contracts.parseOperationContracts(fixture.publicPayload.operationContracts, 3); + for (const row of fixture.recipes.filter((item) => item.spec)) { + const parse = (value) => + starterParser.parseOperationStarter(value, value.pipelineClass, value.task, operations, { + executionProfileId: row.spec.executionProfileId, + authoringRecipeId: 'generic-video-stages:v1', + }); + for (const field of ['encoded_inputs', 'latent_binding', 'latents', 'pipeline']) { + const value = structuredClone(row.starter); + const index = value.edges.findIndex((edge) => edge.targetHandle === field); + assert.ok(index >= 0); + value.edges.splice(index, 1); + assert.throws(() => parse(value), `${row.id}: missing ${field}`); + } + for (const change of [ + (value) => value.nodes.push(structuredClone(value.nodes[0])), + (value) => + (value.nodes.find((item) => item.operation.nodeType === 'denoise').operation.task = 'foreign_video_task'), + (value) => value.edges.push(structuredClone(value.edges.find((edge) => edge.targetHandle === 'latent_binding'))), + ]) { + const value = structuredClone(row.starter); + change(value); + assert.throws(() => parse(value)); + } + } +}); + +test('the same video stages preserve authored prompt and sampling values across LTX and Wan model changes', () => { + const rows = ['ltx_video_text_to_video', 'wan_22_ti2v_5b_seed_vault'].map((id) => + fixture.recipes.find((row) => row.id === id), + ); + for (const [source, target] of [rows, [...rows].reverse()]) { + const graph = graphFor(source); + const encoder = graph.nodes.find((node) => node.data.action === 'EncodeInputs'); + const denoiser = graph.nodes.find((node) => node.data.action === 'Denoise'); + encoder.data.params.prompt.value = 'An amber paper boat travels slowly across a quiet pond.'; + denoiser.data.params.seed.value = { value: 714, isRandom: false }; + denoiser.data.params.num_frames.value = 81; + // Ordinary setParam records an explicit edit even when the chosen value + // equals the old model's default. Preserve that real authoring intent. + authoring.operationAuthoring(denoiser).authored = ['seed', 'num_frames']; + const owner = graph.nodes.find((node) => node.data.action === 'LoadPipeline'); + const original = structuredClone(graph); + const changed = authoring.planOperationChange(graph, owner.id, target.starter, { + replaceModel: true, + baseline: source.starter, + }); + assert.deepEqual(graph, original); + for (const action of ['EncodeInputs', 'Denoise', 'DecodeLatents']) + assert.equal(changed.graph.nodes.filter((node) => node.data.action === action).length, 1); + assert.equal( + changed.graph.nodes.find((node) => node.data.action === 'EncodeInputs').data.params.prompt.value, + encoder.data.params.prompt.value, + ); + assert.deepEqual( + changed.graph.nodes.find((node) => node.data.action === 'Denoise').data.params.seed.value, + denoiser.data.params.seed.value, + ); + assert.equal(changed.graph.nodes.find((node) => node.data.action === 'Denoise').data.params.num_frames.value, 81); + assert.ok(changed.graph.edges.some((edge) => edge.target === 'video-export' && edge.targetHandle === 'video')); + } +}); + +test('video output requires a real file-backed video exporter', () => { + for (const mutate of [ + (sink) => { + sink.data.module = 'modules.Unknown'; + }, + (sink) => { + sink.data.params.preview.display = 'ui_image'; + }, + (sink) => { + sink.data.params.file.type = 'image'; + }, + (sink) => { + sink.data.params.preview.dataSource = 'unrelated'; + }, + ]) { + const graph = graphFor(fixture.recipes[0]); + mutate(graph.nodes.find((node) => node.id === 'video-export')); + assert.equal( + groups.groupNewOperationGraph(graph).nodes.some((node) => groups.visualOperationGroup(node) === 'output'), + false, + ); + } +}); + +test('video output wording follows the declared decoder after removing the preview', () => { + const result = groups.groupNewOperationGraph( + graphFor(fixture.recipes.find((row) => row.starter.task.includes('audio'))), + ); + const output = result.nodes.find((node) => groups.visualOperationGroup(node) === 'output'); + assert.ok(output); + output.data.blockInstanceV2.effectiveGraph.nodes = output.data.blockInstanceV2.effectiveGraph.nodes.filter( + (node) => node.data.module !== 'modules.Video', + ); + assert.deepEqual(projection.visualStagePresentation('output', projection.visualOperationGroupMedia(output)), { + label: 'Video Output', + name: 'video output', + }); +}); diff --git a/src/components/VisualStageControls.tsx b/src/components/VisualStageControls.tsx index 1087584b..702133de 100644 --- a/src/components/VisualStageControls.tsx +++ b/src/components/VisualStageControls.tsx @@ -121,7 +121,9 @@ export default function VisualStageControls({ node }: { node: CustomNodeType }) 'output', workflowTaskCategory(node.data.operationAuthoring?.operation.task ?? '') === 'Audio' ? 'audio' - : null, + : workflowTaskCategory(node.data.operationAuthoring?.operation.task ?? '') === 'Video' + ? 'video' + : null, ).name }`, }[group] diff --git a/src/studio/controlledWorkflowValues.ts b/src/studio/controlledWorkflowValues.ts index ffc3b66a..1bb9235e 100644 --- a/src/studio/controlledWorkflowValues.ts +++ b/src/studio/controlledWorkflowValues.ts @@ -1,4 +1,9 @@ -import type { StudioTemplateLoraSettings, StudioTemplateWorkflowBlockSettings } from './types'; +import type { + StudioAudioFitSettings, + StudioFormState, + StudioTemplateLoraSettings, + StudioTemplateWorkflowBlockSettings, +} from './types'; export type ControlledFieldValue = { fields: string[]; value: unknown }; @@ -36,3 +41,64 @@ export function upscaleWorkflowFieldValues( ...(settings?.downscale !== undefined ? [{ fields: ['downscale'], value: settings.downscale }] : []), ]; } + +export function audioFitWorkflowFieldValues(settings: StudioAudioFitSettings): ControlledFieldValue[] { + return [ + { fields: ['source_start_seconds'], value: settings.sourceStartSeconds }, + { fields: ['source_duration_seconds'], value: settings.sourceDurationSeconds }, + { fields: ['target_duration_seconds'], value: settings.targetDurationSeconds }, + { fields: ['delay_seconds'], value: settings.delaySeconds ?? 0 }, + { fields: ['target_sample_rate'], value: settings.targetSampleRate ?? 48000 }, + { fields: ['fade_in_seconds'], value: settings.fadeInSeconds ?? 0 }, + { fields: ['fade_out_seconds'], value: settings.fadeOutSeconds ?? 0 }, + ]; +} + +/** A soundtrack remains a separate, visible audio pipeline and timeline fit. */ +export function soundtrackWorkflowFieldValues( + settings: NonNullable, + executionForm: StudioFormState, +): Record<'quantization' | 'recipe' | 'pipeline' | 'generate' | 'audioFit' | 'exporter', ControlledFieldValue[]> { + const fields = (values: Record) => + Object.entries(values).map(([field, value]) => ({ fields: [field], value })); + return { + quantization: fields({ backend: 'none', components: [], dtype: executionForm.dtype }), + // ACE-Step's mask needs portable math SDPA on the reviewed ROCm runtime. + recipe: fields({ + device_map: 'none', + offload_mode: executionForm.offloadMode, + device: executionForm.device, + attention_backend: '_native_math', + attention_components: '', + vae_slicing: true, + vae_tiling: true, + }), + pipeline: fields({ + model_id: { source: settings.model.source, value: settings.model.value }, + ...(settings.model.revision ? { revision: settings.model.revision } : {}), + pipeline_class: settings.pipelineClass, + mode: 'text_to_audio', + dtype: executionForm.dtype, + device: executionForm.device, + auto_offload: executionForm.autoOffload, + offload_mode: executionForm.offloadMode, + }), + generate: fields({ + task_type: 'text2music', + prompt: settings.prompt, + negative_prompt: settings.negativePrompt ?? '', + lyrics: '', + audio_duration: settings.durationSeconds, + num_inference_steps: settings.steps, + guidance_scale: settings.guidanceScale, + stable_audio_steps: settings.steps, + stable_audio_guidance: settings.guidanceScale, + seed: settings.seed, + bpm: settings.bpm ?? 0, + keyscale: settings.keyscale ?? '', + timesignature: settings.timesignature ?? '4/4', + }), + audioFit: audioFitWorkflowFieldValues(settings.audioFit), + exporter: fields({ fps: executionForm.fps, quality: 10 }), + }; +} diff --git a/src/studio/controlledWorkflows.ts b/src/studio/controlledWorkflows.ts index ef8897bc..86a95a72 100644 --- a/src/studio/controlledWorkflows.ts +++ b/src/studio/controlledWorkflows.ts @@ -23,7 +23,12 @@ import { type ControlledNodeRole, } from './controlledWorkflowContracts'; import { resolveStudioResourceForm } from './resourcePlanner'; -import { loraWorkflowFieldValues, upscaleWorkflowFieldValues } from './controlledWorkflowValues'; +import { + audioFitWorkflowFieldValues, + loraWorkflowFieldValues, + soundtrackWorkflowFieldValues, + upscaleWorkflowFieldValues, +} from './controlledWorkflowValues'; import { MAX_ORDERED_ADAPTERS, orderedAdapterChainLinks } from './adapterChainLinks'; import type { StudioAudioFitSettings, @@ -91,13 +96,7 @@ function setParamIfPresent( } function applyAudioFitValues(nodeId: string, settings: StudioAudioFitSettings) { - setParamIfPresent(nodeId, ['source_start_seconds'], settings.sourceStartSeconds); - setParamIfPresent(nodeId, ['source_duration_seconds'], settings.sourceDurationSeconds); - setParamIfPresent(nodeId, ['target_duration_seconds'], settings.targetDurationSeconds); - setParamIfPresent(nodeId, ['delay_seconds'], settings.delaySeconds ?? 0); - setParamIfPresent(nodeId, ['target_sample_rate'], settings.targetSampleRate ?? 48000); - setParamIfPresent(nodeId, ['fade_in_seconds'], settings.fadeInSeconds ?? 0); - setParamIfPresent(nodeId, ['fade_out_seconds'], settings.fadeOutSeconds ?? 0); + for (const { fields, value } of audioFitWorkflowFieldValues(settings)) setParamIfPresent(nodeId, fields, value); } async function ensureRegistryKeys(keys: string[]) { @@ -887,43 +886,10 @@ export async function addSoundtrackWorkflowBlock( y: 140, }); - setParamIfPresent(quantization, ['backend'], 'none'); - setParamIfPresent(quantization, ['components'], []); - setParamIfPresent(quantization, ['dtype'], executionForm.dtype); - setParamIfPresent(recipe, ['device_map'], 'none'); - setParamIfPresent(recipe, ['offload_mode'], executionForm.offloadMode); - setParamIfPresent(recipe, ['device'], executionForm.device); - // ACE-Step supplies an attention mask. On the qualified ROCm stack both - // AITER and the native-flash dispatch can reject masked attention, so use - // the portable PyTorch math SDPA path for this small eight-step branch. - setParamIfPresent(recipe, ['attention_backend'], '_native_math'); - setParamIfPresent(recipe, ['attention_components'], ''); - setParamIfPresent(recipe, ['vae_slicing'], true); - setParamIfPresent(recipe, ['vae_tiling'], true); - setParamIfPresent(pipeline, ['model_id'], settings.model); - if (settings.model.revision) setParamIfPresent(pipeline, ['revision'], settings.model.revision); - setParamIfPresent(pipeline, ['pipeline_class'], settings.pipelineClass); - setParamIfPresent(pipeline, ['mode'], 'text_to_audio'); - setParamIfPresent(pipeline, ['dtype'], executionForm.dtype); - setParamIfPresent(pipeline, ['device'], executionForm.device); - setParamIfPresent(pipeline, ['auto_offload'], executionForm.autoOffload); - setParamIfPresent(pipeline, ['offload_mode'], executionForm.offloadMode); - setParamIfPresent(generate, ['task_type'], 'text2music'); - setParamIfPresent(generate, ['prompt'], settings.prompt); - setParamIfPresent(generate, ['negative_prompt'], settings.negativePrompt ?? ''); - setParamIfPresent(generate, ['lyrics'], ''); - setParamIfPresent(generate, ['audio_duration'], settings.durationSeconds); - setParamIfPresent(generate, ['num_inference_steps'], settings.steps); - setParamIfPresent(generate, ['guidance_scale'], settings.guidanceScale); - setParamIfPresent(generate, ['stable_audio_steps'], settings.steps); - setParamIfPresent(generate, ['stable_audio_guidance'], settings.guidanceScale); - setParamIfPresent(generate, ['seed'], settings.seed); - setParamIfPresent(generate, ['bpm'], settings.bpm ?? 0); - setParamIfPresent(generate, ['keyscale'], settings.keyscale ?? ''); - setParamIfPresent(generate, ['timesignature'], settings.timesignature ?? '4/4'); - applyAudioFitValues(audioFit, settings.audioFit); - setParamIfPresent(exporter, ['fps'], form.fps); - setParamIfPresent(exporter, ['quality'], 10); + const fieldValues = soundtrackWorkflowFieldValues(settings, executionForm); + for (const [role, nodeId] of Object.entries({ quantization, recipe, pipeline, generate, audioFit, exporter })) + for (const { fields, value } of fieldValues[role as keyof typeof fieldValues]) + setParamIfPresent(nodeId, fields, value); // Keep the core exporter identity stable and make the controlled receipt // own the explicit sink replacement. This lets restore validate the base diff --git a/src/studio/templateOperationSelections.ts b/src/studio/templateOperationSelections.ts index bb1fb81e..6a18d8d1 100644 --- a/src/studio/templateOperationSelections.ts +++ b/src/studio/templateOperationSelections.ts @@ -520,3 +520,33 @@ export const AUDIO_TEMPLATE_EXECUTION_SELECTIONS: Partial> = + Object.fromEntries( + ( + [ + ['ltx_video_text_to_video', 'text_to_video'], + ['ltx_video_image_to_video', 'image_to_video'], + ['ltx_video_video_to_video', 'video_to_video'], + ['ltx_video_multi_reference', 'reference_to_video'], + ['wan_22_ti2v_5b_seed_vault', 'text_to_video'], + ] as const satisfies readonly (readonly [StudioTemplateId, StudioMode])[] + ).map(([id, mode]) => { + const wan = id === 'wan_22_ti2v_5b_seed_vault'; + return [ + id, + { + schemaVersion: 1, + pipelineClass: wan ? 'WanTI2VPipeline' : 'LTXConditionPipeline', + executionProfileId: wan ? 'wan-22-ti2v-5b:direct' : 'ltx-video:direct', + task: mode, + bindingSpec: { modelType: wan ? 'WanTI2VPipeline' : 'LTXVideoPipeline', mode }, + implementation: 'pipeline_stages', + authoringRecipeId: 'generic-video-stages:v1', + note: 'Encode Inputs reuses official text encoding and owns source media; the official Denoise call prepares media latents and Video Output decodes and exports the matching result.', + } satisfies StudioTemplateExecutionSelection, + ]; + }), + ); diff --git a/src/studio/templateOperationWorkflow.ts b/src/studio/templateOperationWorkflow.ts index 5278ff9d..f81bedb6 100644 --- a/src/studio/templateOperationWorkflow.ts +++ b/src/studio/templateOperationWorkflow.ts @@ -21,7 +21,12 @@ import { acceptsOperationValue } from '../workflow/operationFieldValue'; import { createNodeFromRegistry } from '../workflow/nodeFactory'; import { groupNewOperationGraph } from '../workflow/visualOperationGroups'; import { CONTROLLED_WORKFLOW_NODE_KEYS } from './controlledWorkflowContracts'; -import { loraWorkflowFieldValues, upscaleWorkflowFieldValues } from './controlledWorkflowValues'; +import { + loraWorkflowFieldValues, + soundtrackWorkflowFieldValues, + upscaleWorkflowFieldValues, +} from './controlledWorkflowValues'; +import { resolveStudioResourceForm } from './resourcePlanner'; import { orderedAdapterChainLinks } from './adapterChainLinks'; import { resolveStudioExecutionSpecValues } from './executionSpecValues'; import { selectedNodeWeightFormatArtifact } from './weightFormat'; @@ -508,6 +513,25 @@ export function createTemplateOperationGraph( connect, }); } else if (block === 'upscaler') { + const videoExport = roles.get('videoExport'); + const videoInput = graph.edges.find((edge) => edge.target === videoExport?.id && edge.targetHandle === 'video'); + if (videoExport && videoInput) { + const upscaler = utility(CONTROLLED_WORKFLOW_NODE_KEYS.upscaler, 0); + for (const { fields, value } of upscaleWorkflowFieldValues( + template.workflowBlockSettings?.upscaler, + form.device, + )) + set(upscaler, fields, value); + graph.edges = graph.edges.filter((edge) => edge.id !== videoInput.id); + connect( + graph.nodes.find((node) => node.id === videoInput.source)!, + [videoInput.sourceHandle!], + upscaler, + ['image'], + ); + connect(upscaler, ['output'], videoExport, ['video']); + continue; + } const preview = roles.get('preview'); const input = graph.edges.find((edge) => edge.target === preview?.id && edge.targetHandle === 'image'); if (!preview || !input) throw new Error('The template has no image output to upscale.'); @@ -523,6 +547,38 @@ export function createTemplateOperationGraph( ['image', 'images'], ); connect(upscaler, ['images', 'output', 'image'], upscalePreview, ['image']); + } else if (block === 'soundtrack') { + const settings = template.workflowBlockSettings?.soundtrack; + const videoExport = roles.get('videoExport'); + const videoInput = graph.edges.find((edge) => edge.target === videoExport?.id && edge.targetHandle === 'video'); + if (!settings || !videoExport || videoExport.data.action !== 'Export' || !videoInput) + throw new Error('The template soundtrack needs one ordinary video export.'); + const soundtrack = { + quantization: utility(CONTROLLED_WORKFLOW_NODE_KEYS.soundtrackQuantization, 0), + recipe: utility(CONTROLLED_WORKFLOW_NODE_KEYS.soundtrackRecipe, 1), + pipeline: utility(CONTROLLED_WORKFLOW_NODE_KEYS.soundtrackPipeline, 2), + generate: utility(CONTROLLED_WORKFLOW_NODE_KEYS.soundtrackGenerate, 3), + audioFit: utility(CONTROLLED_WORKFLOW_NODE_KEYS.audioFit, 4), + exporter: utility(CONTROLLED_WORKFLOW_NODE_KEYS.exportWithAudio, 5), + }; + const fieldValues = soundtrackWorkflowFieldValues(settings, resolveStudioResourceForm(form)); + for (const role of Object.keys(soundtrack) as (keyof typeof soundtrack)[]) + for (const { fields, value } of fieldValues[role]) set(soundtrack[role], fields, value); + // Replace the owned terminal explicitly. The ordinary graph contains + // the actual audio branch and mux; no managed recipe is executed. + graph.nodes = graph.nodes.filter((node) => node.id !== videoExport.id); + graph.edges = graph.edges.filter((edge) => edge.target !== videoExport.id && edge.source !== videoExport.id); + connect(soundtrack.quantization, ['quantization_config'], soundtrack.recipe, ['quantization_config']); + connect(soundtrack.recipe, ['execution_recipe'], soundtrack.pipeline, ['execution_recipe']); + connect(soundtrack.pipeline, ['pipeline'], soundtrack.generate, ['pipeline']); + connect(soundtrack.generate, ['audio'], soundtrack.audioFit, ['audio']); + connect(soundtrack.audioFit, ['output'], soundtrack.exporter, ['audio']); + connect( + graph.nodes.find((node) => node.id === videoInput.source)!, + [videoInput.sourceHandle!], + soundtrack.exporter, + ['video'], + ); } else throw new Error(`The template does not declare support for ${block}.`); } return groupNewOperationGraph(attachPromptEnhancementParents(graph, recipe)); diff --git a/src/studio/templates.ts b/src/studio/templates.ts index 8bb3bac7..997809b4 100644 --- a/src/studio/templates.ts +++ b/src/studio/templates.ts @@ -14,6 +14,7 @@ import type { import { IMAGE_TEMPLATE_EXECUTION_SELECTIONS, AUDIO_TEMPLATE_EXECUTION_SELECTIONS, + VIDEO_TEMPLATE_EXECUTION_SELECTIONS, } from './templateOperationSelections'; import { DEFAULT_STUDIO_FORM, @@ -3930,7 +3931,9 @@ function withVideoDeliveryWorkflow(template: StudioTemplateSource, index: number { ...template, executionSelection: - IMAGE_TEMPLATE_EXECUTION_SELECTIONS[template.id] ?? AUDIO_TEMPLATE_EXECUTION_SELECTIONS[template.id], + IMAGE_TEMPLATE_EXECUTION_SELECTIONS[template.id] ?? + AUDIO_TEMPLATE_EXECUTION_SELECTIONS[template.id] ?? + VIDEO_TEMPLATE_EXECUTION_SELECTIONS[template.id], inputBindings: [ ...(template.inputBindings ?? []).filter((binding) => binding.origin !== 'template'), ...generatedInputBindings.filter( diff --git a/src/workflow/imagePipelineStageContracts.ts b/src/workflow/imagePipelineStageContracts.ts index c227f653..6829e74d 100644 --- a/src/workflow/imagePipelineStageContracts.ts +++ b/src/workflow/imagePipelineStageContracts.ts @@ -19,6 +19,7 @@ export function declaredImagePipelineStageContracts( ownerId: string, allEdges: readonly ImagePipelineStageContractEdge[], edges: readonly ImagePipelineStageContractEdge[], + media: 'image' | 'video' = 'image', ): string[] | null { const owner = nodes.find((node) => node.id === ownerId); const owning = owner && owner.operation; @@ -28,7 +29,7 @@ export function declaredImagePipelineStageContracts( const output = nodes.find((node) => node.id === source.source)?.params[source.sourceHandle ?? '']; if ( output?.display !== 'output' || - output.type !== 'image_diffusion_pipeline' || + output.type !== `${media}_diffusion_pipeline` || edges.some((edge) => edge.source !== source.source || edge.sourceHandle !== source.sourceHandle) ) return null; @@ -46,16 +47,16 @@ export function declaredImagePipelineStageContracts( operation.decomposition !== 'bundle' || operation.pipelineClass !== owning.pipelineClass || operation.task !== owning.task || - !['image_encoder', 'denoise', 'decoder'].includes(operation.nodeType) || + ![`${media}_encoder`, 'denoise', 'decoder'].includes(operation.nodeType) || ports?.length !== 1 || port?.types.length !== 1 || - port.types[0] !== 'image_diffusion_pipeline' || + port.types[0] !== `${media}_diffusion_pipeline` || port.roles.length !== 1 || !['component', 'pipeline'].includes(port.roles[0]!) || port.semantics?.kind !== 'pipeline' || port.semantics.owner !== 'same_loader' || port.semantics.scope !== scope || - input?.type !== 'image_diffusion_pipeline' || + input?.type !== `${media}_diffusion_pipeline` || !(input.display === 'input' || input.isInput) || allEdges.filter((candidate) => candidate.target === node.id && candidate.targetHandle === edge.targetHandle) .length !== 1 @@ -70,7 +71,7 @@ export function declaredImagePipelineStageContracts( ) return null; const stage = (kind: string) => stages.find((node) => node.operation!.nodeType === kind)!; - const encoder = stage('image_encoder'), + const encoder = stage(`${media}_encoder`), denoiser = stage('denoise'), decoder = stage('decoder'); const bound = ( @@ -120,13 +121,14 @@ export function declaredImagePipelineStageContracts( ); }; if ( - !bound(encoder, denoiser, 'conditioning', 'image_conditioning') || + !bound(encoder, denoiser, 'conditioning', `${media}_conditioning`) || !bound(denoiser, decoder, 'latents', 'tensor') || - !bound(denoiser, decoder, 'state', 'image_latent_binding') || - !bound(denoiser, decoder, 'value', 'int', 'width_out', 'width') || - !bound(denoiser, decoder, 'value', 'int', 'height_out', 'height') || + !bound(denoiser, decoder, 'state', `${media}_latent_binding`) || + (media === 'image' && + (!bound(denoiser, decoder, 'value', 'int', 'width_out', 'width') || + !bound(denoiser, decoder, 'value', 'int', 'height_out', 'height'))) || !decoder.operation!.ports.some( - (port) => port.direction === 'output' && port.types.includes('image') && port.semantics?.kind === 'media', + (port) => port.direction === 'output' && port.types.includes(media) && port.semantics?.kind === 'media', ) ) return null; diff --git a/src/workflow/operationStarterRequest.ts b/src/workflow/operationStarterRequest.ts index 535d388a..11f28fdd 100644 --- a/src/workflow/operationStarterRequest.ts +++ b/src/workflow/operationStarterRequest.ts @@ -89,7 +89,7 @@ export function parseOperationStarter( targets.add(key); return { source, sourceHandle, target, targetHandle }; }); - const stageKinds = new Set(['image_encoder', 'denoise', 'decoder']); + const stageKinds = new Set(['image_encoder', 'video_encoder', 'denoise', 'decoder']); const owners = expected.filter(operationOwnsModel); const stages = expected.filter( (operation) => operation.decomposition === 'bundle' && stageKinds.has(operation.nodeType), @@ -105,6 +105,7 @@ export function parseOperationStarter( new Set(expected.map((operation) => operation.operationId)).size === 5 && new Set(stages.map((operation) => operation.nodeType)).size === 3; if (alternateImageRoutes) { + const media = stages.some((operation) => operation.nodeType === 'video_encoder') ? 'video' : 'image'; const owner = owners[0]!; const sameRoute = (route: OperationContract[]) => route.length === nodes.length && route.every((operation) => byId.has(operation.operationId)); @@ -121,7 +122,7 @@ export function parseOperationStarter( (port) => port.direction === 'output' && port.types.length === 1 && - port.types[0] === 'image_diffusion_pipeline' && + port.types[0] === `${media}_diffusion_pipeline` && port.semantics?.kind === 'pipeline' && port.semantics.owner === 'same_loader' && port.semantics.scope === scope, @@ -134,6 +135,7 @@ export function parseOperationStarter( owner.operationId, edges, pipelineEdges, + media, ) ) invalid(); @@ -143,7 +145,7 @@ export function parseOperationStarter( (port) => port.direction === 'input' && port.types.length === 1 && - port.types[0] === 'image_diffusion_pipeline' && + port.types[0] === `${media}_diffusion_pipeline` && port.semantics?.kind === 'pipeline' && port.semantics.owner === 'same_loader' && port.semantics.scope === scope, @@ -157,7 +159,7 @@ export function parseOperationStarter( edges[0]!.target !== consumer.operationId || edges[0]!.targetHandle !== incoming[0]!.name || !consumer.ports.some( - (port) => port.direction === 'output' && port.types.includes('image') && port.semantics?.kind === 'media', + (port) => port.direction === 'output' && port.types.includes(media) && port.semantics?.kind === 'media', ) ) invalid(); diff --git a/src/workflow/visualOperationGroupProjection.ts b/src/workflow/visualOperationGroupProjection.ts index 23fff2f3..09ab5295 100644 --- a/src/workflow/visualOperationGroupProjection.ts +++ b/src/workflow/visualOperationGroupProjection.ts @@ -28,17 +28,19 @@ export const VISUAL_STAGE_NAMES = { }; /** Media changes presentation wording only; it never grants execution. */ -export function visualStagePresentation(kind: VisualOperationGroup, media?: 'image' | 'audio' | null) { - return kind === 'output' && media === 'audio' - ? { label: 'Audio Output', name: 'audio output' } +export function visualStagePresentation(kind: VisualOperationGroup, media?: 'image' | 'audio' | 'video' | null) { + return kind === 'output' && (media === 'audio' || media === 'video') + ? media === 'video' + ? { label: 'Video Output', name: 'video output' } + : { label: 'Audio Output', name: 'audio output' } : { label: VISUAL_STAGE_LABELS[kind], name: VISUAL_STAGE_NAMES[kind] }; } -export function visualOperationGroupMedia(node: Pick): 'image' | 'audio' | null { +export function visualOperationGroupMedia(node: Pick): 'image' | 'audio' | 'video' | null { const instance = node.data.blockInstanceV2; const object = (value: unknown): value is Record => Boolean(value && typeof value === 'object' && !Array.isArray(value)); - const declaredMedia = new Set<'image' | 'audio'>(); + const declaredMedia = new Set<'image' | 'audio' | 'video'>(); for (const node of instance?.effectiveGraph.nodes ?? []) { const hint = node.data.operationAuthoring; const operation = object(hint) && hint.operation; @@ -54,13 +56,18 @@ export function visualOperationGroupMedia(node: Pick): ' continue; for (const port of operation.ports) { if (!object(port) || port.direction !== 'output' || !Array.isArray(port.types)) continue; - for (const media of ['image', 'audio'] as const) if (port.types.includes(media)) declaredMedia.add(media); + for (const media of ['image', 'audio', 'video'] as const) + if (port.types.includes(media)) declaredMedia.add(media); } } // Removing or adding a player does not change the real output stage's media. + // A joint video/audio decoder still delivers a video stage after its player + // is removed. The soundtrack must not make its presentation ambiguous. + if (declaredMedia.has('video')) return 'video'; if (declaredMedia.size === 1) return declaredMedia.has('audio') ? 'audio' : 'image'; const previews = instance ? blockInstancePreviewBindingsV2(instance.definitionSnapshot, instance.effectiveGraph) : []; const media = new Set(previews.map((preview) => preview.mediaType)); + if (media.has('video')) return 'video'; return media.size === 1 && (media.has('image') || media.has('audio')) ? media.has('audio') ? 'audio' diff --git a/src/workflow/visualOperationGroups.ts b/src/workflow/visualOperationGroups.ts index 9554b12e..eccbe1a0 100644 --- a/src/workflow/visualOperationGroups.ts +++ b/src/workflow/visualOperationGroups.ts @@ -50,17 +50,27 @@ function stageKind(node: CustomNodeType): VisualOperationGroup | null { Object.values(node.data.params).some((param) => param.display === 'output' && param.type === 'custom_guider') ) return 'guidance'; - if (!operation || !['block', 'bundle'].includes(operation.decomposition) || operation.task?.includes('video')) - return null; + if (!operation || !['block', 'bundle'].includes(operation.decomposition)) return null; if (['text_encoder', 'vae_encoder', 'image_encoder'].includes(operation.nodeType)) return 'inputs'; + if ( + workflowTaskCategory(operation.task ?? '') === 'Video' && + ['before_encode', 'video_encoder', 'condition_encoder', 'reference_encoder'].includes(operation.nodeType) + ) + return 'inputs'; if (['guidance', 'guidance_layers'].includes(operation.nodeType)) return 'guidance'; if ( - ['Image', 'Audio'].includes(workflowTaskCategory(operation.task ?? '')) && + ['Image', 'Audio', 'Video'].includes(workflowTaskCategory(operation.task ?? '')) && (operation.nodeType === 'decoder' || operation.operationId === 'diffusion.decode_latents') && operation.ports.some( (port) => port.direction === 'output' && - port.types.includes(workflowTaskCategory(operation.task ?? '') === 'Audio' ? 'audio' : 'image'), + port.types.includes( + workflowTaskCategory(operation.task ?? '') === 'Video' + ? 'video' + : workflowTaskCategory(operation.task ?? '') === 'Audio' + ? 'audio' + : 'image', + ), ) ) return 'output'; @@ -134,7 +144,7 @@ function operationStageMembers( const scopeIds = new Set(scope.map((node) => node.id)); const owner = scope.find((node) => node.id === ownerId)!; const category = workflowTaskCategory(operationAuthoring(owner)?.operation.task ?? ''); - if (!['Image', 'Audio'].includes(category)) return []; + if (!['Image', 'Audio', 'Video'].includes(category)) return []; if ( category === 'Audio' && kind !== 'output' && @@ -204,18 +214,32 @@ function operationStageMembers( const decoders = scope.filter((node) => stageKind(node) === 'output'); const members = new Set(); for (const decoder of decoders) { - const media = category === 'Audio' ? 'audio' : 'image'; + const media = category === 'Video' ? 'video' : category === 'Audio' ? 'audio' : 'image'; const outputs = operationAuthoring(decoder)!.operation.ports.filter( (port) => port.direction === 'output' && port.types.includes(media), ); const previews = ordinary.filter( (node) => - nodeKey(node) === (media === 'audio' ? 'modules.Audio.Export' : 'modules.Image.Preview') && + (media === 'video' + ? ['modules.Video.Export', 'modules.Video.ExportWithAudio'].includes(nodeKey(node)) + : nodeKey(node) === (media === 'audio' ? 'modules.Audio.Export' : 'modules.Image.Preview')) && node.data.params.preview?.display === `ui_${media}` && - (media !== 'audio' || + (media === 'image' || (node.data.params.preview.dataSource === 'file' && node.data.params.file?.display === 'output' && - node.data.params.file.type === 'audio')) && + node.data.params.file.type === media)) && + (nodeKey(node) !== 'modules.Video.ExportWithAudio' || + (graph.edges.filter((edge) => edge.target === node.id && edge.targetHandle === 'audio').length === 1 && + graph.edges.some( + (edge) => + edge.target === node.id && + edge.targetHandle === 'audio' && + edge.source === decoder.id && + operationAuthoring(decoder)!.operation.ports.some( + (port) => + port.direction === 'output' && port.types.includes('audio') && port.name === edge.sourceHandle, + ), + ))) && graph.edges.filter((edge) => edge.target === node.id && edge.targetHandle === media).length === 1 && graph.edges.some( (edge) => @@ -338,11 +362,11 @@ export function groupVisualStages( (edge.source === node.id && edge.sourceHandle === field && !selected.has(edge.target)) || (edge.target === node.id && edge.targetHandle === field && !selected.has(edge.source)), ); - if (['ui_image', 'ui_audio'].includes(param.display ?? '') && kind === 'output') + if (['ui_image', 'ui_audio', 'ui_video'].includes(param.display ?? '') && kind === 'output') previews.push({ nodeId: remap(node.id), outputPortId: field, - mediaType: param.display === 'ui_audio' ? 'audio' : 'image', + mediaType: param.display === 'ui_video' ? 'video' : param.display === 'ui_audio' ? 'audio' : 'image', ...(previews.length ? {} : { primary: true }), }); if ((param.hidden && !connected) || param.display?.startsWith('ui_')) continue; @@ -403,7 +427,11 @@ export function groupVisualStages( stageKind(node) === 'inputs' ? operationAuthoring(node)?.operation.nodeType === 'text_encoder' ? 'Text' - : 'Image' + : workflowTaskCategory(operationAuthoring(node)?.operation.task ?? '') === 'Video' + ? operationAuthoring(node)?.operation.nodeType === 'video_encoder' + ? 'Video' + : 'Media' + : 'Image' : stageKind(node) === 'guidance' ? 'Guidance' : node.data.label?.trim() || VISUAL_STAGE_LABELS[kind], @@ -469,7 +497,11 @@ export function groupVisualStages( old?.definitionSnapshot.displayName ?? visualStagePresentation( kind, - previews.length && previews.every((preview) => preview.mediaType === 'audio') ? 'audio' : null, + previews.some((preview) => preview.mediaType === 'video') + ? 'video' + : previews.length && previews.every((preview) => preview.mediaType === 'audio') + ? 'audio' + : null, ).label, source: { kind: 'user', @@ -632,7 +664,7 @@ export function groupNewOperationGraph(graph: OperationGraph) { next = workflowTaskCategory(operationAuthoring(owner)?.operation.task ?? '') === 'Image' ? groupOperationStages(next, owner.id, ['inputs', 'setup', 'output'], true) - : workflowTaskCategory(operationAuthoring(owner)?.operation.task ?? '') === 'Audio' + : ['Audio', 'Video'].includes(workflowTaskCategory(operationAuthoring(owner)?.operation.task ?? '')) ? groupOperationStages(next, owner.id, ['inputs', 'guidance', 'setup', 'output']) : groupOperationStages(next, owner.id); // Fresh groups have no saved reusable baseline yet. Bind that baseline to the From 473d142d5e0725a860ab02b3ed001fad5aae1a0c Mon Sep 17 00:00:00 2001 From: Sourav Das Date: Sun, 1 Nov 2026 14:08:58 +0530 Subject: [PATCH 122/440] Pin shared video stages to the matching backend --- .github/workflows/ci.yml | 6 +++--- README.md | 30 +++++++++++++++--------------- 2 files changed, 18 insertions(+), 18 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 0a36ab04..89da3708 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -32,8 +32,8 @@ jobs: uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4 with: repository: sdevil7th/MoDiff - # Paired native contracts and lossless Save Image history previews. - ref: da44556740b09a65ce0b7c59f79e2ed3f3067fcf + # Paired generic LTX/Wan stages and retained video template finishing. + ref: 270a2289574e9a2cd5df676726252d5076cb9faf path: MoDiff persist-credentials: false - name: Verify the pinned backend supports native setup @@ -88,7 +88,7 @@ jobs: with: repository: sdevil7th/MoDiff # Match the immutable backend revision in the Client quality job. - ref: da44556740b09a65ce0b7c59f79e2ed3f3067fcf + ref: 270a2289574e9a2cd5df676726252d5076cb9faf path: MoDiff persist-credentials: false - name: Verify the pinned backend supports native setup diff --git a/README.md b/README.md index 60d57b1e..c15653a1 100644 --- a/README.md +++ b/README.md @@ -28,10 +28,10 @@ application source pair is: | Repository | Application source before final packaging | | ------------- | ------------------------------------------ | -| MoDiff | `da44556740b09a65ce0b7c59f79e2ed3f3067fcf` | -| MoDiff-client | `ef37863c4a5ab2c3736090a6f4fad81b849578d9` | +| MoDiff | `270a2289574e9a2cd5df676726252d5076cb9faf` | +| MoDiff-client | `7eee64f849f7c1844873c36611394dfe0722f5fb` | -CI backend contract: `da44556740b09a65ce0b7c59f79e2ed3f3067fcf`. +CI backend contract: `270a2289574e9a2cd5df676726252d5076cb9faf`. Both CI jobs use this exact immutable backend pin. It can include documentation descendants of the reviewed application source above. @@ -44,7 +44,7 @@ branch advances. To reproduce the application source before packaging, check out the two commits above in separate checkouts. This candidate is not an all-platform release. -**Terminal 1 — backend:** clone both repositories into the same parent directory, +**Terminal 1 — backend:** clone both repositories into the same parent directory, then start the backend. These commands work in Linux shells and Windows PowerShell. ```text @@ -65,7 +65,7 @@ with the selected profile: use a separate checkout when testing a different accelerator. See the [full setup guide](https://github.com/sdevil7th/MoDiff/blob/fix-ui-ux-issues/docs/developer-setup.md) for specialized AMD profiles, explicit `uv pip` commands, repair, and upgrades. -**Terminal 2 — frontend:** from the same parent directory, run: +**Terminal 2 — frontend:** from the same parent directory, run: ```text cd MoDiff-client @@ -133,7 +133,7 @@ Use `run.sh` or `run.ps1` unless you are editing frontend source code. - Export a workflow package, an output package, or raw graph JSON where available. - Add backend-defined nodes and custom React fields without creating a separate execution system. -In the editor, **Export → Service package** exposes named scalar inputs and +In the editor, **Export → Service package** exposes named scalar inputs and persisted preview outputs for the same lowered API graph. See the backend's [service guide](https://github.com/sdevil7th/MoDiff/blob/fix-ui-ux-issues/docs/service-prototyping.md) for the CLI, environment manifest and model-free example. @@ -298,7 +298,7 @@ MiniMax's real stages, Audio Output and selected adapter ownership. ## Workspace And Memory -**Memory → Automatic** asks the backend planner for a known local recipe. The planner evaluates the selected model and task, installed artifacts, backend package versions, accelerator resources, system memory, and offload headroom. Auto enables Run only when the selected candidate reports sufficient compatibility evidence. +**Memory → Automatic** asks the backend planner for a known local recipe. The planner evaluates the selected model and task, installed artifacts, backend package versions, accelerator resources, system memory, and offload headroom. Auto enables Run only when the selected candidate reports sufficient compatibility evidence. The backend planner is the compatibility authority. Template cards, Setup, Models, and Run readiness render the same structured assessment and do not @@ -313,7 +313,7 @@ policy; choose Custom explicitly to use your configured settings. The Run menu's **Auto** item separately repeats execution after parameter changes; keep it off when you want a single generation. -**Memory → Custom** exposes artifact, dtype, quantization, offload, device, and lower-level graph controls. Custom memory is useful for development and explicitly experimental paths; it is not a promise that an arbitrary combination will fit the machine or execute successfully. +**Memory → Custom** exposes artifact, dtype, quantization, offload, device, and lower-level graph controls. Custom memory is useful for development and explicitly experimental paths; it is not a promise that an arbitrary combination will fit the machine or execute successfully. Important model-support rules: @@ -382,7 +382,7 @@ browsing them does not install or enable anything. A **Block** is an editable graph composition. Expand it to work on its nodes; **Saved Blocks** are reusable definitions. An upstream Python block can be an ordinary implementation node or a container represented by a graph Block. -Use **Inspect node / Inspect Block → Implementation** to see its source. +Use **Inspect node / Inspect Block → Implementation** to see its source. Use **Configure Block interface** to expose inputs, outputs and editable controls. A nested Block's interface editor also selects its collapsed previews. These edits belong to the workflow instance; **Save block changes** is the explicit action for @@ -398,7 +398,7 @@ For the current task browser, picker behavior and qualification limits, see ## Custom nodes -**Nodes → Add custom node** opens Local, Hugging Face and Git. Intentional Add/Load +**Nodes → Add custom node** opens Local, Hugging Face and Git. Intentional Add/Load validates and enables trusted code in one action; revisions are pinned internally. Drop a structured Python node file on the canvas to import and insert it. Files and packages in backend `custom/` appear automatically without executing; use @@ -409,11 +409,11 @@ declared data nodes and connected supported components; unmanaged custom models require Custom memory. See the backend custom-node guide for contracts and examples. Approved Modular blocks that omit model ports receive a **Models** input when -their Python contract requires components. Connect **Load Models → Pipeline +their Python contract requires components. Connect **Load Models → Pipeline Components** to reuse compatible loaded weights. This does not download missing -block-specific models. See the backend’s [custom-node guide](https://github.com/sdevil7th/MoDiff/blob/fix-ui-ux-issues/docs/custom-nodes.md) +block-specific models. See the backend’s [custom-node guide](https://github.com/sdevil7th/MoDiff/blob/fix-ui-ux-issues/docs/custom-nodes.md) for the VAE reconstruction example and component requirements. -Blocks with official component types also expose **Load Models — [block name]** +Blocks with official component types also expose **Load Models — [block name]** after approval. Select pinned, downloaded sources for its components, use **Custom** memory policy, and connect its Pipeline Components output to the custom block. @@ -604,8 +604,8 @@ inspect its ordinary nodes, required inputs and upstream implementation, then ad it to the canvas. You can also insert nodes individually by click, drag or canvas search and connect their ports. Connect the final result to a Preview, Save or Export node before running. -To change a graph of generic nodes, select its loader and open **Inspect node → -Parameters → Change model / task**. Choose the replacement pipeline/task, then +To change a graph of generic nodes, select its loader and open **Inspect node → +Parameters → Change model / task**. Choose the replacement pipeline/task, then **Preview model / task change**. The same controls are available in the Studio inspector. Review retained settings and connections before applying. The Nodes library also retains its existing **Graph to change** entry point. Compatible prompt and parameter overrides survive; From 682bf3faa3e2468882f91f8b9298ccb3e9498cd5 Mon Sep 17 00:00:00 2001 From: Sourav Das Date: Sun, 1 Nov 2026 14:10:00 +0530 Subject: [PATCH 123/440] Preserve UTF-8 setup documentation while updating source pins --- README.md | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/README.md b/README.md index c15653a1..31c99963 100644 --- a/README.md +++ b/README.md @@ -44,7 +44,7 @@ branch advances. To reproduce the application source before packaging, check out the two commits above in separate checkouts. This candidate is not an all-platform release. -**Terminal 1 — backend:** clone both repositories into the same parent directory, +**Terminal 1 — backend:** clone both repositories into the same parent directory, then start the backend. These commands work in Linux shells and Windows PowerShell. ```text @@ -65,7 +65,7 @@ with the selected profile: use a separate checkout when testing a different accelerator. See the [full setup guide](https://github.com/sdevil7th/MoDiff/blob/fix-ui-ux-issues/docs/developer-setup.md) for specialized AMD profiles, explicit `uv pip` commands, repair, and upgrades. -**Terminal 2 — frontend:** from the same parent directory, run: +**Terminal 2 — frontend:** from the same parent directory, run: ```text cd MoDiff-client @@ -133,7 +133,7 @@ Use `run.sh` or `run.ps1` unless you are editing frontend source code. - Export a workflow package, an output package, or raw graph JSON where available. - Add backend-defined nodes and custom React fields without creating a separate execution system. -In the editor, **Export → Service package** exposes named scalar inputs and +In the editor, **Export → Service package** exposes named scalar inputs and persisted preview outputs for the same lowered API graph. See the backend's [service guide](https://github.com/sdevil7th/MoDiff/blob/fix-ui-ux-issues/docs/service-prototyping.md) for the CLI, environment manifest and model-free example. @@ -298,7 +298,7 @@ MiniMax's real stages, Audio Output and selected adapter ownership. ## Workspace And Memory -**Memory → Automatic** asks the backend planner for a known local recipe. The planner evaluates the selected model and task, installed artifacts, backend package versions, accelerator resources, system memory, and offload headroom. Auto enables Run only when the selected candidate reports sufficient compatibility evidence. +**Memory → Automatic** asks the backend planner for a known local recipe. The planner evaluates the selected model and task, installed artifacts, backend package versions, accelerator resources, system memory, and offload headroom. Auto enables Run only when the selected candidate reports sufficient compatibility evidence. The backend planner is the compatibility authority. Template cards, Setup, Models, and Run readiness render the same structured assessment and do not @@ -313,7 +313,7 @@ policy; choose Custom explicitly to use your configured settings. The Run menu's **Auto** item separately repeats execution after parameter changes; keep it off when you want a single generation. -**Memory → Custom** exposes artifact, dtype, quantization, offload, device, and lower-level graph controls. Custom memory is useful for development and explicitly experimental paths; it is not a promise that an arbitrary combination will fit the machine or execute successfully. +**Memory → Custom** exposes artifact, dtype, quantization, offload, device, and lower-level graph controls. Custom memory is useful for development and explicitly experimental paths; it is not a promise that an arbitrary combination will fit the machine or execute successfully. Important model-support rules: @@ -382,7 +382,7 @@ browsing them does not install or enable anything. A **Block** is an editable graph composition. Expand it to work on its nodes; **Saved Blocks** are reusable definitions. An upstream Python block can be an ordinary implementation node or a container represented by a graph Block. -Use **Inspect node / Inspect Block → Implementation** to see its source. +Use **Inspect node / Inspect Block → Implementation** to see its source. Use **Configure Block interface** to expose inputs, outputs and editable controls. A nested Block's interface editor also selects its collapsed previews. These edits belong to the workflow instance; **Save block changes** is the explicit action for @@ -398,7 +398,7 @@ For the current task browser, picker behavior and qualification limits, see ## Custom nodes -**Nodes → Add custom node** opens Local, Hugging Face and Git. Intentional Add/Load +**Nodes → Add custom node** opens Local, Hugging Face and Git. Intentional Add/Load validates and enables trusted code in one action; revisions are pinned internally. Drop a structured Python node file on the canvas to import and insert it. Files and packages in backend `custom/` appear automatically without executing; use @@ -409,11 +409,11 @@ declared data nodes and connected supported components; unmanaged custom models require Custom memory. See the backend custom-node guide for contracts and examples. Approved Modular blocks that omit model ports receive a **Models** input when -their Python contract requires components. Connect **Load Models → Pipeline +their Python contract requires components. Connect **Load Models → Pipeline Components** to reuse compatible loaded weights. This does not download missing -block-specific models. See the backend’s [custom-node guide](https://github.com/sdevil7th/MoDiff/blob/fix-ui-ux-issues/docs/custom-nodes.md) +block-specific models. See the backend’s [custom-node guide](https://github.com/sdevil7th/MoDiff/blob/fix-ui-ux-issues/docs/custom-nodes.md) for the VAE reconstruction example and component requirements. -Blocks with official component types also expose **Load Models — [block name]** +Blocks with official component types also expose **Load Models — [block name]** after approval. Select pinned, downloaded sources for its components, use **Custom** memory policy, and connect its Pipeline Components output to the custom block. @@ -604,8 +604,8 @@ inspect its ordinary nodes, required inputs and upstream implementation, then ad it to the canvas. You can also insert nodes individually by click, drag or canvas search and connect their ports. Connect the final result to a Preview, Save or Export node before running. -To change a graph of generic nodes, select its loader and open **Inspect node → -Parameters → Change model / task**. Choose the replacement pipeline/task, then +To change a graph of generic nodes, select its loader and open **Inspect node → +Parameters → Change model / task**. Choose the replacement pipeline/task, then **Preview model / task change**. The same controls are available in the Studio inspector. Review retained settings and connections before applying. The Nodes library also retains its existing **Graph to change** entry point. Compatible prompt and parameter overrides survive; From 6fe4ef4fe8280c82d0416aff33b5b98335797c4e Mon Sep 17 00:00:00 2001 From: Sourav Das Date: Sun, 1 Nov 2026 14:28:59 +0530 Subject: [PATCH 124/440] Group retained video exports in fresh task drafts --- scripts/template-operation-fixtures.py | 2 +- scripts/video-stage-groups.test.mjs | 23 ++++++++++++++++++++++- src/workflow/visualOperationGroups.ts | 4 +++- 3 files changed, 26 insertions(+), 3 deletions(-) diff --git a/scripts/template-operation-fixtures.py b/scripts/template-operation-fixtures.py index 14e61d8a..40c082f8 100644 --- a/scripts/template-operation-fixtures.py +++ b/scripts/template-operation-fixtures.py @@ -104,7 +104,7 @@ def describe(key): "modules.Spandrel.Upscaler", "modules.Image.Preview", "modules.Image.Resize", "modules.Image.Save", "modules.ImageOperations.CropImage", "modules.ImageOperations.MaskComposite", "modules.DiffusersImage.OutpaintCanvas", "modules.Audio.Export", "modules.Audio.Load", "modules.Image.Load", - "modules.DiffusersAudio.LoadAdapter", "modules.Video.Export", "modules.Video.ExportWithAudio", + "modules.DiffusersAudio.LoadAdapter", "modules.Video.Export", "modules.Video.ExportWithAudio", "modules.Video.ExportAsset", "modules.Audio.FitDuration", "modules.DiffusersAudio.LoadPipeline", "modules.DiffusersAudio.Generate", "modules.DiffusersRuntime.PipelineQuantizationConfigV2", "modules.DiffusersRuntime.DiffusersExecutionRecipe"): describe(key) diff --git a/scripts/video-stage-groups.test.mjs b/scripts/video-stage-groups.test.mjs index e8d84291..c8c6fd77 100644 --- a/scripts/video-stage-groups.test.mjs +++ b/scripts/video-stage-groups.test.mjs @@ -16,7 +16,8 @@ let fixture, defaults, nodes, contracts, - starterParser; + starterParser, + drafts; before(async () => { const backend = process.env.MODIFF_BACKEND_DIR || path.resolve('../MoDiff'); const python = @@ -83,6 +84,7 @@ before(async () => { nodes = await server.ssrLoadModule('/src/stores/useNodeStore.ts'); contracts = await server.ssrLoadModule('/src/workflow/operationContracts.ts'); starterParser = await server.ssrLoadModule('/src/workflow/operationStarterRequest.ts'); + drafts = await server.ssrLoadModule('/src/workflow/workflowDraft.ts'); ({ STUDIO_TEMPLATES: templates } = await server.ssrLoadModule('/src/studio/templates.ts')); builder = await server.ssrLoadModule('/src/studio/templateOperationWorkflow.ts'); exactness = await server.ssrLoadModule('/src/studio/templateExactness.ts'); @@ -406,3 +408,22 @@ test('video output wording follows the declared decoder after removing the previ name: 'video output', }); }); + +test('fresh task drafts group the real retained-video exporter with their decoder', () => { + for (const row of fixture.recipes.filter((item) => item.spec && item.starter.task === 'text_to_video')) { + const starter = structuredClone(row.starter); + for (const { node } of starter.nodes) + if (String(node.params.device?.value ?? node.params.device?.default).startsWith('cpu')) { + if (node.params.offload_mode) node.params.offload_mode.value = 'none'; + if (node.params.auto_offload) node.params.auto_offload.value = false; + } + const { graph } = drafts.createWorkflowDraft(starter, fixture.registry); + const output = graph.nodes.find((node) => groups.visualOperationGroup(node) === 'output'); + assert.ok(output, row.id); + const leaves = output.data.blockInstanceV2.effectiveGraph.nodes; + assert.ok(leaves.some((node) => node.data.action === 'DecodeLatents')); + assert.ok(leaves.some((node) => node.data.module === 'modules.Video' && node.data.action === 'ExportAsset')); + assert.equal(output.data.blockInstanceV2.previewStates[0].binding.mediaType, 'video'); + assert.deepEqual(api(graph), api(groups.unpackVisualOperationGroups(graph).graph)); + } +}); diff --git a/src/workflow/visualOperationGroups.ts b/src/workflow/visualOperationGroups.ts index eccbe1a0..dac3dbbb 100644 --- a/src/workflow/visualOperationGroups.ts +++ b/src/workflow/visualOperationGroups.ts @@ -221,7 +221,9 @@ function operationStageMembers( const previews = ordinary.filter( (node) => (media === 'video' - ? ['modules.Video.Export', 'modules.Video.ExportWithAudio'].includes(nodeKey(node)) + ? ['modules.Video.Export', 'modules.Video.ExportWithAudio', 'modules.Video.ExportAsset'].includes( + nodeKey(node), + ) : nodeKey(node) === (media === 'audio' ? 'modules.Audio.Export' : 'modules.Image.Preview')) && node.data.params.preview?.display === `ui_${media}` && (media === 'image' || From 1cff187cb471606439bb86161e47f072676b93dd Mon Sep 17 00:00:00 2001 From: Sourav Das Date: Sun, 1 Nov 2026 14:31:37 +0530 Subject: [PATCH 125/440] Bind executor registration fix and measured retained-export build --- .github/workflows/ci.yml | 4 ++-- README.md | 6 +++--- docs/deployment.md | 4 ++-- scripts/bundle-budget.mjs | 10 +++++----- 4 files changed, 12 insertions(+), 12 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 89da3708..d91f6504 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -33,7 +33,7 @@ jobs: with: repository: sdevil7th/MoDiff # Paired generic LTX/Wan stages and retained video template finishing. - ref: 270a2289574e9a2cd5df676726252d5076cb9faf + ref: 0cef49d971dc8fae08b54bbe83efb528f9cecee1 path: MoDiff persist-credentials: false - name: Verify the pinned backend supports native setup @@ -88,7 +88,7 @@ jobs: with: repository: sdevil7th/MoDiff # Match the immutable backend revision in the Client quality job. - ref: 270a2289574e9a2cd5df676726252d5076cb9faf + ref: 0cef49d971dc8fae08b54bbe83efb528f9cecee1 path: MoDiff persist-credentials: false - name: Verify the pinned backend supports native setup diff --git a/README.md b/README.md index 31c99963..7d1aee72 100644 --- a/README.md +++ b/README.md @@ -28,10 +28,10 @@ application source pair is: | Repository | Application source before final packaging | | ------------- | ------------------------------------------ | -| MoDiff | `270a2289574e9a2cd5df676726252d5076cb9faf` | -| MoDiff-client | `7eee64f849f7c1844873c36611394dfe0722f5fb` | +| MoDiff | `0cef49d971dc8fae08b54bbe83efb528f9cecee1` | +| MoDiff-client | `6fe4ef4fe8280c82d0416aff33b5b98335797c4e` | -CI backend contract: `270a2289574e9a2cd5df676726252d5076cb9faf`. +CI backend contract: `0cef49d971dc8fae08b54bbe83efb528f9cecee1`. Both CI jobs use this exact immutable backend pin. It can include documentation descendants of the reviewed application source above. diff --git a/docs/deployment.md b/docs/deployment.md index bbf7249e..fb6e2142 100644 --- a/docs/deployment.md +++ b/docs/deployment.md @@ -255,8 +255,8 @@ hash with the tested build. ## Copy The Build Into The Backend The selected LTX/Wan video stages and retained finishing branches measure -494742/673228/329130 gzip bytes for largest startup/startup total/deferred total, -against the preceding 494455/672941/328233. The measured allowance is 287/287/897 +494749/673238/329380 gzip bytes for largest startup/startup total/deferred total, +against the preceding 494455/672941/328233. The measured allowance is 294/297/1147 bytes, retaining 8/11/79 bytes of headroom. The four startup and 90 deferred asset members, dependencies, loading boundaries, minifier and independent 65536-byte deferred chunk ceiling remain fixed. diff --git a/scripts/bundle-budget.mjs b/scripts/bundle-budget.mjs index b6aa6eb5..0ccca27d 100644 --- a/scripts/bundle-budget.mjs +++ b/scripts/bundle-budget.mjs @@ -1,6 +1,6 @@ // Generic video stages, strict ownership metadata and retained template finishing -// measure largest/startup/deferred gzip 494742/673228/329130 against the accepted -// 494455/672941/328233. Add only measured growth 287/287/897, preserving 8/11/79 +// measure largest/startup/deferred gzip 494749/673238/329380 against the accepted +// 494455/672941/328233. Add only measured growth 294/297/1147, preserving 8/11/79 // bytes of headroom. The same four startup and 90 deferred assets retain their // loading membership. Dependencies, chunk rules, minifier, identity validation // and the independent 65536-byte deferred chunk cap remain unchanged. @@ -276,7 +276,7 @@ const SOURCE_LICENSES = new URL('../public/THIRD_PARTY_LICENSES.txt', import.met // Allow only measured startup growth (+1649/+1651), retaining 8/11 bytes headroom. // Four startup and 89 deferred assets, dependencies, loading rules and deferred caps stay fixed. const MAX_STARTUP_CHUNK_GZIP_BYTES = - 287 + + 294 + 196 + 1051 + 38 + @@ -401,7 +401,7 @@ const MAX_STARTUP_CHUNK_GZIP_BYTES = // Preserve the separately measured 64-byte shared loading-policy allowance above. // Preserve the measured 384-byte selected-image authoring allowance above. const MAX_STARTUP_GZIP_BYTES = - 287 + + 297 + 199 + 1047 + 36 + @@ -610,7 +610,7 @@ const MAX_DEFERRED_CHUNK_GZIP_BYTES = 64 * 1024; // 321033-byte cap, preserving 39 bytes of headroom at 321227. Startup caps, the // 65536-byte deferred chunk cap, dependencies and loading boundaries stay fixed. const MAX_DEFERRED_GZIP_BYTES = - 897 + + 1147 + 1043 + 334 + 178 + From 88dfc8a137291e5fda511b874d5e82f8a0d0cb49 Mon Sep 17 00:00:00 2001 From: Sourav Das Date: Sun, 1 Nov 2026 15:26:43 +0530 Subject: [PATCH 126/440] Preserve versioned video task observations in output history --- docs/deployment.md | 8 +++ docs/video-workflows.md | 6 ++ scripts/bundle-budget.mjs | 7 +++ scripts/resolved-execution-inputs.test.mjs | 65 ++++++++++++++++++++++ src/studio/resolvedExecutionInputs.ts | 24 ++++++-- 5 files changed, 105 insertions(+), 5 deletions(-) diff --git a/docs/deployment.md b/docs/deployment.md index fb6e2142..4779ef60 100644 --- a/docs/deployment.md +++ b/docs/deployment.md @@ -134,6 +134,14 @@ Run the bundle budget after changes that affect dependencies or code splitting: npm run bundle:check ``` +Versioned video task observations measure 673290 gzip bytes of startup +JavaScript, with a 494806-byte largest startup chunk and 329066 deferred bytes. +The measured startup growth is 52/57 bytes over the preceding video build; +ceilings become 673301/494814, retaining 11/8 bytes of headroom. Both deferred +caps remain unchanged. The same 94 JavaScript asset names retain membership; +only `studio-templates.js` changes after URL-version normalization. Dependencies, +chunk rules, minifier and identity checks remain unchanged. + The versioned FLUX3 prompts, scoped image receipts and protected-PNG template authoring measure 672742 gzip bytes of startup JavaScript, with a 494259-byte largest startup chunk and 328069 deferred bytes. Compared with the accepted diff --git a/docs/video-workflows.md b/docs/video-workflows.md index 161298ee..a6d1ce8c 100644 --- a/docs/video-workflows.md +++ b/docs/video-workflows.md @@ -33,3 +33,9 @@ The implementation and proof boundaries are described in the paired backend's `docs/video-pipeline-stages.md`. Schema tests and mocked workflows establish authoring behavior, not successful video generation. A testable release needs native task completion and playback on the deployed source pair. + +New successful stage runs capture the actual video task, encoded prompt and final +frame format in output history. The optional `graphTasksVersion: 2` distinguishes +the added video-owner vocabulary from older receipts. Existing receipts and saved +forms remain unchanged; missing or conflicting observations do not become support +or publication qualification. diff --git a/scripts/bundle-budget.mjs b/scripts/bundle-budget.mjs index 0ccca27d..5765258d 100644 --- a/scripts/bundle-budget.mjs +++ b/scripts/bundle-budget.mjs @@ -1,3 +1,8 @@ +// Versioned video task observations measure largest/startup/deferred gzip +// 494806/673290/329066 versus 494749/673238/329380. Add measured startup +// growth 57/52, retaining 8/11 bytes of headroom and both deferred caps. +// All 94 JavaScript asset names retain membership; only studio-templates.js +// changes after URL-version normalization. Dependency and build rules stay fixed. // Generic video stages, strict ownership metadata and retained template finishing // measure largest/startup/deferred gzip 494749/673238/329380 against the accepted // 494455/672941/328233. Add only measured growth 294/297/1147, preserving 8/11/79 @@ -276,6 +281,7 @@ const SOURCE_LICENSES = new URL('../public/THIRD_PARTY_LICENSES.txt', import.met // Allow only measured startup growth (+1649/+1651), retaining 8/11 bytes headroom. // Four startup and 89 deferred assets, dependencies, loading rules and deferred caps stay fixed. const MAX_STARTUP_CHUNK_GZIP_BYTES = + 57 + 294 + 196 + 1051 + @@ -401,6 +407,7 @@ const MAX_STARTUP_CHUNK_GZIP_BYTES = // Preserve the separately measured 64-byte shared loading-policy allowance above. // Preserve the measured 384-byte selected-image authoring allowance above. const MAX_STARTUP_GZIP_BYTES = + 52 + 297 + 199 + 1047 + diff --git a/scripts/resolved-execution-inputs.test.mjs b/scripts/resolved-execution-inputs.test.mjs index de50fd14..6c1d624d 100644 --- a/scripts/resolved-execution-inputs.test.mjs +++ b/scripts/resolved-execution-inputs.test.mjs @@ -1490,6 +1490,71 @@ test('ordinary image task receipts survive history reload with strict owner iden const taskOwner = { loaderId: 'loader', pipelineClass: 'QwenImageEditPlusModularPipeline' }; +test('versioned video task receipts override stale image history and preserve legacy owner vocabulary', () => { + const evidence = receipt(); + evidence.nodes = [ + { + nodeId: 'owner', + module: 'modules.DiffusersVideo', + action: 'LoadPipeline', + fields: { pipeline_class: { value: 'LTXConditionPipeline', source: 'literal' } }, + omittedFields: {}, + }, + ]; + evidence.summary = { modelType: 'LTXConditionPipeline' }; + evidence.ambiguousFields = []; + evidence.unavailableFields = []; + evidence.graphTasks = [{ loaderId: 'owner', pipelineClass: 'LTXConditionPipeline', task: 'text_to_video' }]; + evidence.graphTasksVersion = 2; + const identity = { taskId: 'actual-task', attemptIndex: 2, nodeId: 'preview' }; + let output = contracts.coerceStudioOutput({ + id: 'video', + url: '/video.mp4', + ...identity, + mode: 'text_to_image', + formSnapshot: { mode: 'text_to_image' }, + resolvedExecutionInputs: evidence, + }); + for (let reload = 0; reload < 2; reload++) { + assert.equal(output.mode, 'text_to_video'); + assert.equal(output.formSnapshot.mode, 'text_to_image'); + assert.deepEqual(output.resolvedExecutionInputs, evidence); + output = contracts.coerceStudioOutput(JSON.parse(JSON.stringify(output))); + } + for (const mutate of [ + (e) => { + delete e.graphTasksVersion; + }, + (e) => { + e.graphTasksVersion = 3; + }, + (e) => { + delete e.graphTasks; + }, + (e) => { + e.graphTasks = []; + }, + (e) => { + e.graphTasks.push(e.graphTasks[0]); + }, + (e) => { + e.graphTasks[0].pipelineClass = 'ForeignPipeline'; + }, + (e) => { + e.nodes.push({ ...e.nodes[0], nodeId: 'missing-owner' }); + }, + ]) { + const bad = structuredClone(evidence); + mutate(bad); + assert.equal(inputs.coerceResolvedExecutionInputs(bad, identity), undefined); + } + // Pre-versioned mixed outputs may contain video nodes but only image task owners. + const legacy = receipt(); + legacy.nodes.push(evidence.nodes[0]); + legacy.summary.modelType = 'LTXConditionPipeline'; + assert.deepEqual(inputs.coerceResolvedExecutionInputs(legacy, identity), legacy); +}); + test('ambiguous consumed task stays explicitly uncaptured across history reload without borrowing the form', () => { let output = taskHistoryOutput([{ ...taskOwner, task: null }]); for (let reload = 0; reload < 2; reload++) { diff --git a/src/studio/resolvedExecutionInputs.ts b/src/studio/resolvedExecutionInputs.ts index 9620ff87..4b3daa2c 100644 --- a/src/studio/resolvedExecutionInputs.ts +++ b/src/studio/resolvedExecutionInputs.ts @@ -89,6 +89,8 @@ export type ResolvedExecutionInputs = { truncated: boolean; /** Backend recognition of concrete graph contracts, separate from consumed values. */ graphTasks?: { loaderId: string; pipelineClass: string; task: string | null }[]; + /** Version two includes observed ordinary video owners; absence is legacy. */ + graphTasksVersion?: 2; /** Optional accounting never changes the legacy consumed-input summary. */ fieldAccountingStatus?: { schemaVersion: 1; truncated: boolean }; appliedAdaptersStatus?: { schemaVersion: 1; truncated: boolean }; @@ -170,6 +172,12 @@ const nodeInputNames: Record> = { 'Image.Save': { ...inputNames, filename: 'imageSaveFilename', quality: 'imageSaveQuality' }, 'ModularDiffusers.ModelsLoader': { ...inputNames, weight_format: 'weightFormat' }, 'DiffusersImage.LoadPipeline': { ...inputNames, mode: 'executionMode' }, + ...Object.fromEntries( + ['EncodeInputs', 'Denoise', 'DecodeLatents'].map((action) => [ + `DiffusersVideo.${action}`, + { ...inputNames, executed_task: 'executedTask' }, + ]), + ), ...Object.fromEntries( [ 'Generate', @@ -231,13 +239,17 @@ const nodeInputNames: Record> = { layer_scales: 'ipAdapterLayerScales', }, }; -const taskOwnerFields: Record = { +const legacyTaskOwnerFields: Record = { 'modules.ModularDiffusers.ModelsLoader': 'model_type', 'modules.DiffusersImage.LoadPipeline': 'pipeline_class', 'modules.HuggingFaceTransformers.LoadDepthEstimationModel': 'pipeline_class', 'modules.HuggingFaceTransformers.LoadImageTextToTextModel': 'pipeline_class', 'modules.ImageOperations.ProcessImage': 'pipeline_class', }; +const taskOwnerFields: Record = { + ...legacyTaskOwnerFields, + 'modules.DiffusersVideo.LoadPipeline': 'pipeline_class', +}; const summaryNames = new Set([ ...Object.values(inputNames), ...Object.values(nodeInputNames).flatMap(Object.values), @@ -668,6 +680,9 @@ export function coerceResolvedExecutionInputs( ) return undefined; let graphTasks: ResolvedExecutionInputs['graphTasks']; + if (value.graphTasksVersion !== undefined && value.graphTasksVersion !== 2) return undefined; + if (value.graphTasksVersion === 2 && value.graphTasks === undefined) return undefined; + const taskOwners = value.graphTasksVersion === 2 ? taskOwnerFields : legacyTaskOwnerFields; if (value.graphTasks !== undefined) { if ( !Array.isArray(value.graphTasks) || @@ -688,7 +703,7 @@ export function coerceResolvedExecutionInputs( ) return undefined; const owner: unknown = value.nodes.find((node) => record(node) && node.nodeId === item.loaderId); - const field = record(owner) ? taskOwnerFields[`${owner.module}.${owner.action}`] : undefined; + const field = record(owner) ? taskOwners[`${owner.module}.${owner.action}`] : undefined; if ( !record(owner) || !field || @@ -702,9 +717,7 @@ export function coerceResolvedExecutionInputs( } } if (graphTasks) { - const loaders = value.nodes.filter( - (node) => record(node) && hasOwn(taskOwnerFields, `${node.module}.${node.action}`), - ); + const loaders = value.nodes.filter((node) => record(node) && hasOwn(taskOwners, `${node.module}.${node.action}`)); if (loaders.length !== graphTasks.length) return undefined; } let fieldAccountingStatus: ResolvedExecutionInputs['fieldAccountingStatus']; @@ -739,6 +752,7 @@ export function coerceResolvedExecutionInputs( return JSON.parse( JSON.stringify({ ...(graphTasks ? { graphTasks } : {}), + ...(value.graphTasksVersion === 2 ? { graphTasksVersion: 2 } : {}), schemaVersion: 1, source: 'backend-execution', taskId: value.taskId, From 5c0218120189b20ebd396cf65a286a2ec0e00e9e Mon Sep 17 00:00:00 2001 From: Sourav Das Date: Sun, 1 Nov 2026 15:29:01 +0530 Subject: [PATCH 127/440] Pin paired video history backend in both client CI jobs --- .github/workflows/ci.yml | 4 ++-- README.md | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index d91f6504..99e91e93 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -33,7 +33,7 @@ jobs: with: repository: sdevil7th/MoDiff # Paired generic LTX/Wan stages and retained video template finishing. - ref: 0cef49d971dc8fae08b54bbe83efb528f9cecee1 + ref: 058462aaeacd3279092562d4a97128409069f9e0 path: MoDiff persist-credentials: false - name: Verify the pinned backend supports native setup @@ -88,7 +88,7 @@ jobs: with: repository: sdevil7th/MoDiff # Match the immutable backend revision in the Client quality job. - ref: 0cef49d971dc8fae08b54bbe83efb528f9cecee1 + ref: 058462aaeacd3279092562d4a97128409069f9e0 path: MoDiff persist-credentials: false - name: Verify the pinned backend supports native setup diff --git a/README.md b/README.md index 7d1aee72..ac1d3bdb 100644 --- a/README.md +++ b/README.md @@ -28,10 +28,10 @@ application source pair is: | Repository | Application source before final packaging | | ------------- | ------------------------------------------ | -| MoDiff | `0cef49d971dc8fae08b54bbe83efb528f9cecee1` | -| MoDiff-client | `6fe4ef4fe8280c82d0416aff33b5b98335797c4e` | +| MoDiff | `058462aaeacd3279092562d4a97128409069f9e0` | +| MoDiff-client | `88dfc8a137291e5fda511b874d5e82f8a0d0cb49` | -CI backend contract: `0cef49d971dc8fae08b54bbe83efb528f9cecee1`. +CI backend contract: `058462aaeacd3279092562d4a97128409069f9e0`. Both CI jobs use this exact immutable backend pin. It can include documentation descendants of the reviewed application source above. From defdca4ec18f5be228c3bb9f0efd0bc8988388ff Mon Sep 17 00:00:00 2001 From: Sourav Das Date: Sun, 1 Nov 2026 15:50:48 +0530 Subject: [PATCH 128/440] Connect declared source media in fresh generic video drafts --- docs/deployment.md | 7 +++++ docs/video-workflows.md | 6 +++++ scripts/bundle-budget.mjs | 7 +++++ scripts/template-operation-fixtures.py | 2 +- scripts/video-stage-groups.test.mjs | 37 ++++++++++++++++++++++++++ src/workflow/workflowDraft.ts | 21 +++++++++++---- 6 files changed, 74 insertions(+), 6 deletions(-) diff --git a/docs/deployment.md b/docs/deployment.md index 4779ef60..043e2626 100644 --- a/docs/deployment.md +++ b/docs/deployment.md @@ -134,6 +134,13 @@ Run the bundle budget after changes that affect dependencies or code splitting: npm run bundle:check ``` +Required media loaders in fresh video drafts measure 673303 gzip bytes of startup +JavaScript, with a 494816-byte largest chunk and 329249 deferred bytes. Startup +growth is 13/10 bytes; ceilings become 673314/494824 with the same 11/8 bytes +of headroom. Deferred caps, dependencies and build rules remain unchanged. Only +`DeveloperWorkflowLauncher.js` changes after URL-version normalization; the same +94 JavaScript asset names retain their loading membership. + Versioned video task observations measure 673290 gzip bytes of startup JavaScript, with a 494806-byte largest startup chunk and 329066 deferred bytes. The measured startup growth is 52/57 bytes over the preceding video build; diff --git a/docs/video-workflows.md b/docs/video-workflows.md index a6d1ce8c..87662070 100644 --- a/docs/video-workflows.md +++ b/docs/video-workflows.md @@ -19,6 +19,12 @@ from whether a template can be created. Large video model acceptance is performe on Linux; this interface does not promise that those weights fit every Windows machine. +New video drafts also connect ordinary file loaders for their declared required +image, video or audio inputs. Select the files on those loader nodes. Inputs with +different roles, such as first and last frames, keep separate loaders. An absent +or incompatible loader produces a connection notice instead of a guessed wire. +Existing saved graphs are not rewritten. + Encode Inputs can reuse unchanged prompt data. Denoise consumes encoding from the same model owner, and Video Output decodes that owner's current latents. Changing the owner or relevant recipe requires fresh runtime data. Saved values and wires diff --git a/scripts/bundle-budget.mjs b/scripts/bundle-budget.mjs index 5765258d..03d4be47 100644 --- a/scripts/bundle-budget.mjs +++ b/scripts/bundle-budget.mjs @@ -1,3 +1,8 @@ +// Required media loaders in fresh video drafts measure largest/startup/deferred +// gzip 494816/673303/329249 versus 494806/673290/329066. Add only measured +// startup growth 10/13, retaining 8/11 bytes of headroom. Both deferred caps +// remain fixed; only DeveloperWorkflowLauncher.js changes after URL-version +// normalization. The same 94 asset names and build rules retain membership. // Versioned video task observations measure largest/startup/deferred gzip // 494806/673290/329066 versus 494749/673238/329380. Add measured startup // growth 57/52, retaining 8/11 bytes of headroom and both deferred caps. @@ -281,6 +286,7 @@ const SOURCE_LICENSES = new URL('../public/THIRD_PARTY_LICENSES.txt', import.met // Allow only measured startup growth (+1649/+1651), retaining 8/11 bytes headroom. // Four startup and 89 deferred assets, dependencies, loading rules and deferred caps stay fixed. const MAX_STARTUP_CHUNK_GZIP_BYTES = + 10 + 57 + 294 + 196 + @@ -407,6 +413,7 @@ const MAX_STARTUP_CHUNK_GZIP_BYTES = // Preserve the separately measured 64-byte shared loading-policy allowance above. // Preserve the measured 384-byte selected-image authoring allowance above. const MAX_STARTUP_GZIP_BYTES = + 13 + 52 + 297 + 199 + diff --git a/scripts/template-operation-fixtures.py b/scripts/template-operation-fixtures.py index 40c082f8..e5123e77 100644 --- a/scripts/template-operation-fixtures.py +++ b/scripts/template-operation-fixtures.py @@ -104,7 +104,7 @@ def describe(key): "modules.Spandrel.Upscaler", "modules.Image.Preview", "modules.Image.Resize", "modules.Image.Save", "modules.ImageOperations.CropImage", "modules.ImageOperations.MaskComposite", "modules.DiffusersImage.OutpaintCanvas", "modules.Audio.Export", "modules.Audio.Load", "modules.Image.Load", - "modules.DiffusersAudio.LoadAdapter", "modules.Video.Export", "modules.Video.ExportWithAudio", "modules.Video.ExportAsset", + "modules.DiffusersAudio.LoadAdapter", "modules.Video.Load", "modules.Video.Export", "modules.Video.ExportWithAudio", "modules.Video.ExportAsset", "modules.Audio.FitDuration", "modules.DiffusersAudio.LoadPipeline", "modules.DiffusersAudio.Generate", "modules.DiffusersRuntime.PipelineQuantizationConfigV2", "modules.DiffusersRuntime.DiffusersExecutionRecipe"): describe(key) diff --git a/scripts/video-stage-groups.test.mjs b/scripts/video-stage-groups.test.mjs index c8c6fd77..5ebc0c2a 100644 --- a/scripts/video-stage-groups.test.mjs +++ b/scripts/video-stage-groups.test.mjs @@ -427,3 +427,40 @@ test('fresh task drafts group the real retained-video exporter with their decode assert.deepEqual(api(graph), api(groups.unpackVisualOperationGroups(graph).graph)); } }); + +test('fresh video drafts connect declared image and video sources without changing the starter', () => { + for (const row of fixture.recipes.filter((item) => item.spec && item.starter.task !== 'text_to_video')) { + const starter = structuredClone(row.starter); + // The no-weight fixture is CPU-only; retain the ordinary export boundary. + for (const { node } of starter.nodes) + if (String(node.params.device?.value ?? node.params.device?.default).startsWith('cpu')) { + if (node.params.offload_mode) node.params.offload_mode.value = 'none'; + if (node.params.auto_offload) node.params.auto_offload.value = false; + } + const original = structuredClone(starter); + const { graph, notices } = drafts.createWorkflowDraft(starter, fixture.registry); + assert.deepEqual(starter, original); + assert.deepEqual(notices, [], row.id); + const flat = groups.unpackVisualOperationGroups(graph).graph; + const kind = row.starter.task === 'video_to_video' ? 'video' : 'image'; + const source = flat.nodes.filter( + (node) => + node.data.module === (kind === 'video' ? 'modules.Video' : 'modules.Image') && node.data.action === 'Load', + ); + assert.equal(source.length, 1, row.id); + const connections = flat.edges.filter((edge) => edge.source === source[0].id && edge.sourceHandle === kind); + assert.equal(connections.length, 1, row.id); + const target = flat.nodes.find((node) => node.id === connections[0].target); + assert.equal(target.data.action, 'EncodeInputs'); + assert.equal(connections[0].targetHandle, kind === 'video' ? 'video' : 'reference_images'); + assert.deepEqual(api(graph), api(flat)); + const unavailable = { ...fixture.registry }; + delete unavailable[kind === 'video' ? 'modules.Video.Load' : 'modules.Image.Load']; + const missing = drafts.createWorkflowDraft(starter, unavailable); + assert.ok(missing.notices.some((message) => message.includes('loader is unavailable or incompatible'))); + assert.equal( + groups.unpackVisualOperationGroups(missing.graph).graph.nodes.some((node) => node.data.action === 'Load'), + false, + ); + } +}); diff --git a/src/workflow/workflowDraft.ts b/src/workflow/workflowDraft.ts index f02504f2..840c299f 100644 --- a/src/workflow/workflowDraft.ts +++ b/src/workflow/workflowDraft.ts @@ -13,6 +13,11 @@ const OUTPUTS = [ { type: 'video', key: 'modules.Video.ExportAsset', input: 'video' }, { type: 'video_asset', key: 'modules.Video.ExportAsset', input: 'video' }, ]; +const MEDIA_LOADERS = { + image: 'modules.Image.Load', + audio: 'modules.Audio.Load', + video: 'modules.Video.Load', +}; /** Add ordinary typed output nodes, without turning metadata into execution permission. */ export function createWorkflowDraft(starter: OperationStarter, registry: Record) { @@ -20,9 +25,9 @@ export function createWorkflowDraft(starter: OperationStarter, registry: Record< const notices: string[] = []; const sources = [...graph.nodes]; // Starters describe execution stages, not media pickers. Complete only fresh - // image/audio drafts, using exact required ports rather than guessing by task. + // media drafts, using exact required ports rather than guessing by task. // Same-role consumers share one source; masks/references keep separate sources. - if (['Image', 'Audio'].includes(workflowTaskCategory(starter.task))) { + if (['Image', 'Audio', 'Video'].includes(workflowTaskCategory(starter.task))) { const loaders = new Map(); for (const required of starter.requiredInputs) { const target = sources.find( @@ -31,7 +36,13 @@ export function createWorkflowDraft(starter: OperationStarter, registry: Record< const port = target?.data.operationAuthoring!.operation.ports.find( (item) => item.direction === 'input' && item.name === required.field, ); - const kind = port?.types.includes('image') ? 'image' : port?.types.includes('audio') ? 'audio' : null; + const kind = port?.types.includes('image') + ? 'image' + : port?.types.includes('audio') + ? 'audio' + : port?.types.includes('video') + ? 'video' + : null; if ( !target || !port || @@ -41,7 +52,7 @@ export function createWorkflowDraft(starter: OperationStarter, registry: Record< ) continue; const field = target.data.params[port.name]; - const key = kind === 'image' ? 'modules.Image.Load' : 'modules.Audio.Load'; + const key = MEDIA_LOADERS[kind]; const output = registry[key]?.params[kind]; if ( !field || @@ -62,7 +73,7 @@ export function createWorkflowDraft(starter: OperationStarter, registry: Record< if (!loader) { loader = createNodeFromRegistry(key, registry, { x: 80, y: 800 + loaders.size * 600 })!; if (port.semanticName.includes('mask')) loader.data.label = 'Load Mask'; - else if (!['image', 'images', 'audio', 'source_audio'].includes(port.semanticName)) + else if (!['image', 'images', 'audio', 'source_audio', 'video', 'source_video'].includes(port.semanticName)) loader.data.label = `Load ${String(field.label || port.semanticName.replace(/_/gu, ' '))}`; graph.nodes.push(loader); loaders.set(role, loader); From c561a01395044fd71c1918e95fb9e9709d8e7601 Mon Sep 17 00:00:00 2001 From: Sourav Das Date: Sun, 1 Nov 2026 16:08:41 +0530 Subject: [PATCH 129/440] Preserve managed soundtrack selectors and verify actual LTX defaults --- scripts/video-stage-groups.test.mjs | 28 ++++++++++++++++++++++++++ src/studio/controlledWorkflowValues.ts | 7 ++++++- src/studio/controlledWorkflows.ts | 2 +- 3 files changed, 35 insertions(+), 2 deletions(-) diff --git a/scripts/video-stage-groups.test.mjs b/scripts/video-stage-groups.test.mjs index 5ebc0c2a..fce4cd2e 100644 --- a/scripts/video-stage-groups.test.mjs +++ b/scripts/video-stage-groups.test.mjs @@ -274,6 +274,10 @@ test('five retained video template factories preserve creative settings on their const settings = template.workflowBlockSettings.soundtrack; assert.equal(soundtrack.data.params.prompt.value, settings.prompt); assert.equal(soundtrack.data.params.seed.value, settings.seed); + assert.deepEqual(audioOwner.data.params.model_id.value, { + source: settings.model.source, + value: settings.model.value, + }); assert.equal(audioOwner.data.params.revision.value, settings.model.revision); assert.equal(fit.data.params.target_duration_seconds.value, settings.audioFit.targetDurationSeconds); assert.ok( @@ -295,6 +299,19 @@ test('five retained video template factories preserve creative settings on their } }); +test('soundtrack field projection preserves managed selector metadata and exact fresh-field revision', async () => { + const values = await server.ssrLoadModule('/src/studio/controlledWorkflowValues.ts'); + const settings = templates.find((item) => item.id === 'wan_22_ti2v_5b_seed_vault').workflowBlockSettings.soundtrack; + const fresh = values.soundtrackWorkflowFieldValues(settings, defaults); + const managed = values.soundtrackWorkflowFieldValues(settings, defaults, { retainSelectorMetadata: true }); + const value = (set, field) => set.pipeline.find((row) => row.fields.includes(field)).value; + assert.deepEqual(value(managed, 'model_id'), settings.model); + assert.equal(value(managed, 'model_id').revision, '200ba991ae448051e14b0183157e35c2d27c9fb0'); + assert.deepEqual(value(fresh, 'model_id'), { source: settings.model.source, value: settings.model.value }); + assert.equal(value(fresh, 'revision'), settings.model.revision); + assert.equal(value(managed, 'revision'), settings.model.revision); +}); + test('joint video output keeps audio connected and refuses an independently supplied soundtrack', () => { const row = fixture.recipes.find((row) => row.starter.task.includes('audio')); const graph = graphFor(row); @@ -442,6 +459,17 @@ test('fresh video drafts connect declared image and video sources without changi assert.deepEqual(starter, original); assert.deepEqual(notices, [], row.id); const flat = groups.unpackVisualOperationGroups(graph).graph; + for (const node of flat.nodes) + for (const [field, expected] of [ + ['guidance_scale', 1], + ['num_inference_steps', 8], + ]) + if (node.data.params[field]) + assert.equal( + node.data.params[field].value ?? node.data.params[field].default, + expected, + `${row.id}/${node.data.action}/${field}`, + ); const kind = row.starter.task === 'video_to_video' ? 'video' : 'image'; const source = flat.nodes.filter( (node) => diff --git a/src/studio/controlledWorkflowValues.ts b/src/studio/controlledWorkflowValues.ts index 1bb9235e..999e3fd3 100644 --- a/src/studio/controlledWorkflowValues.ts +++ b/src/studio/controlledWorkflowValues.ts @@ -58,6 +58,7 @@ export function audioFitWorkflowFieldValues(settings: StudioAudioFitSettings): C export function soundtrackWorkflowFieldValues( settings: NonNullable, executionForm: StudioFormState, + options: { retainSelectorMetadata?: boolean } = {}, ): Record<'quantization' | 'recipe' | 'pipeline' | 'generate' | 'audioFit' | 'exporter', ControlledFieldValue[]> { const fields = (values: Record) => Object.entries(values).map(([field, value]) => ({ fields: [field], value })); @@ -74,7 +75,11 @@ export function soundtrackWorkflowFieldValues( vae_tiling: true, }), pipeline: fields({ - model_id: { source: settings.model.source, value: settings.model.value }, + // Managed documents retain their full recorded selector. Fresh registry + // fields use its transport value plus the separately declared revision. + model_id: options.retainSelectorMetadata + ? settings.model + : { source: settings.model.source, value: settings.model.value }, ...(settings.model.revision ? { revision: settings.model.revision } : {}), pipeline_class: settings.pipelineClass, mode: 'text_to_audio', diff --git a/src/studio/controlledWorkflows.ts b/src/studio/controlledWorkflows.ts index 86a95a72..4acee262 100644 --- a/src/studio/controlledWorkflows.ts +++ b/src/studio/controlledWorkflows.ts @@ -886,7 +886,7 @@ export async function addSoundtrackWorkflowBlock( y: 140, }); - const fieldValues = soundtrackWorkflowFieldValues(settings, executionForm); + const fieldValues = soundtrackWorkflowFieldValues(settings, executionForm, { retainSelectorMetadata: true }); for (const [role, nodeId] of Object.entries({ quantization, recipe, pipeline, generate, audioFit, exporter })) for (const { fields, value } of fieldValues[role as keyof typeof fieldValues]) setParamIfPresent(nodeId, fields, value); From 79cf779693acc6c032619c8972b30c06d2c07fa1 Mon Sep 17 00:00:00 2001 From: Sourav Das Date: Sun, 1 Nov 2026 16:09:18 +0530 Subject: [PATCH 130/440] Bind LTX starter defaults in the paired client contract --- .github/workflows/ci.yml | 4 ++-- README.md | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 99e91e93..932b9014 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -33,7 +33,7 @@ jobs: with: repository: sdevil7th/MoDiff # Paired generic LTX/Wan stages and retained video template finishing. - ref: 058462aaeacd3279092562d4a97128409069f9e0 + ref: 1239d1cecd12a7318eb263ca17c34d4fc0445d14 path: MoDiff persist-credentials: false - name: Verify the pinned backend supports native setup @@ -88,7 +88,7 @@ jobs: with: repository: sdevil7th/MoDiff # Match the immutable backend revision in the Client quality job. - ref: 058462aaeacd3279092562d4a97128409069f9e0 + ref: 1239d1cecd12a7318eb263ca17c34d4fc0445d14 path: MoDiff persist-credentials: false - name: Verify the pinned backend supports native setup diff --git a/README.md b/README.md index ac1d3bdb..c582cfb0 100644 --- a/README.md +++ b/README.md @@ -28,10 +28,10 @@ application source pair is: | Repository | Application source before final packaging | | ------------- | ------------------------------------------ | -| MoDiff | `058462aaeacd3279092562d4a97128409069f9e0` | -| MoDiff-client | `88dfc8a137291e5fda511b874d5e82f8a0d0cb49` | +| MoDiff | `1239d1cecd12a7318eb263ca17c34d4fc0445d14` | +| MoDiff-client | `c561a01395044fd71c1918e95fb9e9709d8e7601` | -CI backend contract: `058462aaeacd3279092562d4a97128409069f9e0`. +CI backend contract: `1239d1cecd12a7318eb263ca17c34d4fc0445d14`. Both CI jobs use this exact immutable backend pin. It can include documentation descendants of the reviewed application source above. From d4d5c9848f0afeea321689efa52a3de639cdd29d Mon Sep 17 00:00:00 2001 From: Sourav Das Date: Sun, 1 Nov 2026 23:02:39 +0530 Subject: [PATCH 131/440] Allow declared video media attachment with ordinary loaders and history --- docs/developer-first-node-ux.md | 8 +- scripts/media-attachment.test.mjs | 21 ++- scripts/video-stage-groups.test.mjs | 66 +++++++++ src/components/MediaAttachmentControls.tsx | 5 +- src/workflow/mediaAttachment.ts | 23 ++- src/workflow/mediaAttachmentSources.ts | 3 +- tests/e2e/studio-mocked/studio-mocked.spec.ts | 134 ++++++++++++++++++ 7 files changed, 250 insertions(+), 10 deletions(-) diff --git a/docs/developer-first-node-ux.md b/docs/developer-first-node-ux.md index 82e9064e..bedd00aa 100644 --- a/docs/developer-first-node-ux.md +++ b/docs/developer-first-node-ux.md @@ -143,7 +143,13 @@ Whole-pipeline operations remain whole-pipeline operations; no fake encoder is inserted. A group with manually nested containers or mirrored custom interfaces requires explicit structural editing/ungrouping before automatic task adaptation. Audio supports the applicable Model Setup and Audio Output groups described -below. Video simplification remains separate. +below. Selected LTX/Wan video routes use the shared stage presentation too; +other video routes retain their existing native Modular or whole-pipeline nodes. +Add media reads declared image, audio and video input roles for the selected +model. It can add an ordinary media loader or use a compatible existing source. +The attachment stays in the same graph and is one Undo/Redo transaction; +unsupported task changes still require review. Existing saved graphs are not +rewritten on open, and missing source files continue to block Run. ## Audio stages diff --git a/scripts/media-attachment.test.mjs b/scripts/media-attachment.test.mjs index c7b88fb1..3a4cdd7f 100644 --- a/scripts/media-attachment.test.mjs +++ b/scripts/media-attachment.test.mjs @@ -1703,13 +1703,30 @@ test('a newly attached mask uses mask pixels, not an unrelated alpha channel', ( assert.ok(!result.edges.some((edge) => edge.source === source.id && edge.sourceHandle === 'mask')); }); -test('attachment choices reject undeclared roles and do not advertise video transport', () => { +test('attachment choices advertise only declared visible media roles', () => { for (const starter of starters) { const choices = attachment.mediaAttachmentChoices( starter.nodes.map((item) => item.operation), starter.pipelineClass, ); - assert.ok(choices.every((choice) => ['image', 'audio'].includes(choice.kind))); + assert.ok(choices.every((choice) => ['image', 'audio', 'video'].includes(choice.kind))); + for (const choice of choices) + assert.ok( + starter.nodes.some( + ({ operation }) => + operation.pipelineClass === starter.pipelineClass && + operation.task === choice.task && + operation.ports.some( + (port) => + port.direction === 'input' && + !port.hidden && + !port.roles.includes('component') && + port.semantics?.owner !== 'same_loader' && + port.semanticName === choice.role && + port.types.includes(choice.kind), + ), + ), + ); } assert.deepEqual(attachment.mediaAttachmentChoices([], 'UnknownPipeline'), []); }); diff --git a/scripts/video-stage-groups.test.mjs b/scripts/video-stage-groups.test.mjs index fce4cd2e..4529a52d 100644 --- a/scripts/video-stage-groups.test.mjs +++ b/scripts/video-stage-groups.test.mjs @@ -492,3 +492,69 @@ test('fresh video drafts connect declared image and video sources without changi ); } }); + +test('existing video stages offer declared media attachment and lower a video loader to the same graph', async () => { + const attachment = await server.ssrLoadModule('/src/workflow/mediaAttachment.ts'); + const sources = await server.ssrLoadModule('/src/workflow/mediaAttachmentSources.ts'); + const row = fixture.recipes.find((item) => item.id === 'ltx_video_video_to_video'); + const operations = row.starter.nodes.map((item) => item.operation); + const choices = attachment.mediaAttachmentChoices(operations, row.starter.pipelineClass); + const choice = choices.find((item) => item.kind === 'video' && item.role === 'video'); + assert.ok(choice, 'a declared video task must not disappear from Add media'); + const graph = graphFor(row); + const owner = graph.nodes.find((node) => contracts.operationOwnsModel(node.data.operationAuthoring?.operation)); + const original = structuredClone(graph); + const next = attachment.planMediaAttachment(graph, owner.id, row.starter, choice, fixture.registry); + assert.deepEqual(graph, original, 'planning never mutates the retained workflow'); + const input = next.nodes.find((node) => node.data.module === 'modules.Video' && node.data.action === 'Load'); + assert.ok(input); + const encode = next.nodes.find((node) => node.data.action === 'EncodeInputs'); + assert.ok( + next.edges.some( + (edge) => + edge.source === input.id && + edge.sourceHandle === 'video' && + edge.target === encode.id && + edge.targetHandle === 'video', + ), + ); + assert.ok( + sources + .mediaAttachmentSources(next.nodes, next.edges, 'video') + .some((source) => source.value === JSON.stringify([input.id, 'video'])), + ); + const repeated = attachment.planMediaAttachment(next, owner.id, row.starter, choice, fixture.registry, { + nodeId: input.id, + handleId: 'video', + }); + assert.deepEqual(repeated, next, 'choosing the already-connected source is idempotent'); + assert.throws( + () => + attachment.planMediaAttachment(next, owner.id, row.starter, choice, fixture.registry, { + nodeId: 'video-export', + handleId: 'file', + }), + /already connected/u, + ); + assert.throws( + () => + attachment.planMediaAttachment(graph, owner.id, row.starter, choice, fixture.registry, { + nodeId: 'video-export', + handleId: 'file', + }), + /cycle/u, + ); + assert.deepEqual(graph, original, 'failed attachment leaves all values and wires intact'); +}); + +test('video task media discovery includes real image roles but excludes components and hidden ports', async () => { + const attachment = await server.ssrLoadModule('/src/workflow/mediaAttachment.ts'); + const row = fixture.recipes.find((item) => item.id === 'ltx_video_image_to_video'); + const operations = row.starter.nodes.map((item) => item.operation); + const original = structuredClone(operations); + const choices = attachment.mediaAttachmentChoices(operations, row.starter.pipelineClass); + assert.ok(choices.some((item) => item.kind === 'image')); + assert.ok(!choices.some((item) => /pipeline|latent|encoded/u.test(item.role))); + assert.deepEqual(operations, original); + assert.deepEqual(attachment.mediaAttachmentChoices(operations, 'foreign'), []); +}); diff --git a/src/components/MediaAttachmentControls.tsx b/src/components/MediaAttachmentControls.tsx index dadc404f..4ed967ef 100644 --- a/src/components/MediaAttachmentControls.tsx +++ b/src/components/MediaAttachmentControls.tsx @@ -125,7 +125,10 @@ export default function MediaAttachmentControls({ aria-label="Media input source" value={sources.some((item) => item.value === sourceKey) ? sourceKey : ''} disabled={busy} - options={[{ value: '', label: `Add Load ${choice.kind === 'image' ? 'Image' : 'Audio'}` }, ...sources]} + options={[ + { value: '', label: `Add Load ${{ image: 'Image', audio: 'Audio', video: 'Video' }[choice.kind]}` }, + ...sources, + ]} onValueChange={setSourceKey} /> diff --git a/src/workflow/mediaAttachment.ts b/src/workflow/mediaAttachment.ts index 164ce470..f2b10ddd 100644 --- a/src/workflow/mediaAttachment.ts +++ b/src/workflow/mediaAttachment.ts @@ -36,13 +36,20 @@ export function executableMediaOperations(operations: OperationContract[], suppo ); } -export type MediaAttachmentChoice = { key: string; task: string; role: string; kind: 'image' | 'audio'; label: string }; +export type MediaAttachmentKind = 'image' | 'audio' | 'video'; +export type MediaAttachmentChoice = { + key: string; + task: string; + role: string; + kind: MediaAttachmentKind; + label: string; +}; export function mediaAttachmentOwners( graph: OperationGraph, targetId: string, operations: OperationContract[], - kind: 'image' | 'audio', + kind: MediaAttachmentKind, ) { const target = graph.nodes.find((node) => node.id === targetId); if (!target) return []; @@ -73,7 +80,7 @@ export function mediaAttachmentOwners( export function mediaAttachmentChoices(operations: OperationContract[], pipeline: string): MediaAttachmentChoice[] { const choices = new Map(); for (const operation of operations) { - if (operation.pipelineClass !== pipeline || !operation.task || operation.task.includes('video')) continue; + if (operation.pipelineClass !== pipeline || !operation.task) continue; for (const port of operation.ports) { if ( port.direction !== 'input' || @@ -82,7 +89,13 @@ export function mediaAttachmentChoices(operations: OperationContract[], pipeline port.semantics?.owner === 'same_loader' ) continue; - const kind = port.types.includes('image') ? 'image' : port.types.includes('audio') ? 'audio' : null; + const kind = port.types.includes('image') + ? 'image' + : port.types.includes('audio') + ? 'audio' + : port.types.includes('video') + ? 'video' + : null; if (!kind) continue; const key = JSON.stringify([operation.task, port.semanticName, kind]); choices.set(key, { @@ -173,7 +186,7 @@ export function planMediaAttachment( let input = source && next.nodes.find((node) => node.id === source.nodeId); const handle = source?.handleId ?? choice.kind; if (!source) { - const key = choice.kind === 'image' ? 'modules.Image.Load' : 'modules.Audio.Load'; + const key = { image: 'modules.Image.Load', audio: 'modules.Audio.Load', video: 'modules.Video.Load' }[choice.kind]; input = createNodeFromRegistry(key, registry, { x: owner.position.x - 420, y: owner.position.y + 280 }) ?? undefined; if (!input) throw new Error('The media loader is unavailable in the node registry.'); diff --git a/src/workflow/mediaAttachmentSources.ts b/src/workflow/mediaAttachmentSources.ts index 26647111..786daaca 100644 --- a/src/workflow/mediaAttachmentSources.ts +++ b/src/workflow/mediaAttachmentSources.ts @@ -4,6 +4,7 @@ import { nodeConnectorParam, nodeConnectorParams } from '../studio/nodeConnector import { blockOperationGraphV2, blockProjectionNodeIdV2 } from '../studio/blockRuntimeV2'; import { blockConnectionTargetsV2 } from '../studio/blockCrossingConnectionsV2'; import { operationOwnsModel } from './operationContracts'; +import type { MediaAttachmentKind } from './mediaAttachment'; import { nodeDisplayLabel } from './nodePresentation'; const blockViews = new WeakMap>(); @@ -72,7 +73,7 @@ function sourceContexts(nodes: CustomNodeType[], edges: Edge[]) { export function mediaAttachmentSources( nodes: CustomNodeType[], edges: Edge[], - kind: 'image' | 'audio', + kind: MediaAttachmentKind, initialSource?: { nodeId: string; handleId: string }, ) { const context = sourceContexts(nodes, edges); diff --git a/tests/e2e/studio-mocked/studio-mocked.spec.ts b/tests/e2e/studio-mocked/studio-mocked.spec.ts index c69e86b6..e7f7aceb 100644 --- a/tests/e2e/studio-mocked/studio-mocked.spec.ts +++ b/tests/e2e/studio-mocked/studio-mocked.spec.ts @@ -24,6 +24,140 @@ import type { OperationContract } from '../../../src/workflow/operationContracts import type { PipelineSupport } from '../../../src/workflow/operationCatalog'; import type { ApiGraphExport } from '../../../src/types/api'; +for (const [task, kind] of [ + ['video_to_video', 'video'], + ['image_to_video', 'image'], +] as const) { + test(`existing video stage attaches a declared ${kind} input through the visible picker and Undo`, async ({ + page, + }) => { + await ensureFrontend(); + const python = + process.env.MODIFF_BACKEND_PYTHON || + path.join(BACKEND_ROOT, '.venv', process.platform === 'win32' ? 'Scripts/python.exe' : 'bin/python'); + const selection = [ + { + id: 'video-media-browser', + selection: { + pipelineClass: 'LTXConditionPipeline', + task, + executionProfileId: 'ltx-video:direct', + }, + }, + ]; + const { stdout } = await new Promise<{ stdout: string }>((resolve, reject) => { + const child = execFile( + python, + [path.join(CLIENT_ROOT, 'scripts/template-operation-fixtures.py')], + { + cwd: BACKEND_ROOT, + env: { ...process.env, PYTHONDONTWRITEBYTECODE: '1', HF_HUB_OFFLINE: '1' }, + timeout: 90_000, + maxBuffer: 32 * 1024 ** 2, + encoding: 'utf8', + }, + (error, stdout) => (error ? reject(error) : resolve({ stdout })), + ); + child.stdin!.end(JSON.stringify(selection)); + }); + const fixture = JSON.parse(stdout) as { + recipes: { starter: OperationStarter }[]; + registry: Record; + }; + const starter = fixture.recipes[0]!.starter; + await page.route('**/operations/starter', (route) => route.fulfill({ json: starter })); + await page.goto(`${FRONTEND_URL}/control-state-matrix.html`, { waitUntil: 'domcontentloaded' }); + const before = await page.evaluate( + async ({ starter, registry }) => { + const [{ useFlowStore }, { useNodesStore }, { createOperationStarter }, { mountMediaAttachmentProbe }] = + await Promise.all([ + import('/src/stores/useFlowStore.ts'), + import('/src/stores/useNodeStore.ts'), + import('/src/workflow/operationAuthoring.ts'), + import('/tests/e2e/studio-mocked/mediaAttachmentFixture.tsx'), + ]); + const graph = createOperationStarter(starter, { x: 80, y: 120 }); + // This is a CPU schema/control fixture, so retain the real export guard + // and select a valid explicit CPU policy before the first snapshot. + for (const node of graph.nodes) { + if (node.data.params.offload_mode) node.data.params.offload_mode.value = 'none'; + if (node.data.params.auto_offload) node.data.params.auto_offload.value = false; + } + const owner = graph.nodes.find((node) => node.data.action === 'LoadPipeline')!; + useNodesStore.setState({ + nodesRegistry: registry, + operationContracts: starter.nodes.map((row) => row.operation), + pipelineSupport: [ + { + pipelineClass: starter.pipelineClass, + coverage: 'declared', + reason: 'Exact backend fixture', + equivalentTo: [], + upstreamTasks: [], + tasks: [ + { + task: starter.task, + execution: 'adapter', + decomposition: 'stages', + operationIds: starter.nodes.map((row) => row.operation.operationId), + executionProfileIds: ['ltx-video:direct'], + dependencies: 'ready', + runtimeRequirements: [], + }, + ], + }, + ], + }); + useFlowStore.getState().replaceGraph(graph, { clearRemovedCache: false }); + useFlowStore.getState().resetHistory(); + mountMediaAttachmentProbe(owner.id, owner.id, 'unused-source'); + return useFlowStore.getState().toObject(); + }, + { starter, registry: fixture.registry }, + ); + const probe = page.getByTestId('mounted-media-attachment'); + const readApi = () => + page.evaluate(async () => { + const { useFlowStore } = await import('/src/stores/useFlowStore.ts'); + return useFlowStore.getState().exportGraph('video-media-browser', undefined, { randomizeSeeds: false }); + }); + const beforeApi = await readApi(); + await expect(probe.getByRole('button', { name: 'Media input source', exact: true })).toHaveText( + `Add Load ${kind === 'video' ? 'Video' : 'Image'}`, + ); + await probe.getByRole('button', { name: 'Attach input', exact: true }).click(); + const read = () => + page.evaluate(async () => { + const { useFlowStore } = await import('/src/stores/useFlowStore.ts'); + // History intentionally invalidates derived signal values. Compare the + // public saved document plus execution export, not cached runtime hints. + return useFlowStore.getState().toObject(); + }); + await expect.poll(async () => (await read()).nodes.filter((node) => node.data.action === 'Load').length).toBe(1); + const after = await read(); + const afterApi = await readApi(); + const loader = after.nodes.find((node) => node.data.action === 'Load')!; + expect(loader.data.module).toBe(kind === 'video' ? 'modules.Video' : 'modules.Image'); + const encoder = after.nodes.find((node) => node.data.action === 'EncodeInputs')!; + expect(after.edges).toEqual( + expect.arrayContaining([ + expect.objectContaining({ + source: loader.id, + sourceHandle: kind, + target: encoder.id, + targetHandle: kind === 'video' ? 'video' : 'reference_images', + }), + ]), + ); + await probe.getByRole('button', { name: 'Undo source edit', exact: true }).click(); + expect(await read()).toEqual(before); + expect(await readApi()).toEqual(beforeApi); + await probe.getByRole('button', { name: 'Redo source edit', exact: true }).click(); + expect(await read()).toEqual(after); + expect(await readApi()).toEqual(afterApi); + }); +} + function restorationSnapshot(text: string, preview: string, x: number): WorkflowTabSnapshot { return { nodes: [ From 6058bc1595ec430552d6cd4ae21e798395875c0f Mon Sep 17 00:00:00 2001 From: Sourav Das Date: Mon, 2 Nov 2026 00:17:40 +0530 Subject: [PATCH 132/440] Name output downloads using captured execution model --- src/components/TopBar.tsx | 3 +- tests/e2e/studio-mocked/studio-mocked.spec.ts | 58 +++++++++++++++++++ 2 files changed, 60 insertions(+), 1 deletion(-) diff --git a/src/components/TopBar.tsx b/src/components/TopBar.tsx index 67d7a982..6119c33d 100644 --- a/src/components/TopBar.tsx +++ b/src/components/TopBar.tsx @@ -60,6 +60,7 @@ import { applyStudioRuntimeHints } from '../studio/runPreparation'; import { ensureStudioAutoPlanReadyForRun } from '../studio/useStudioRunActions'; import { getDownloadPercent, hasHfDownloadFailed, isHfDownloadActive } from '../studio/modelInstall'; import { buildOutputWorkflowPackage, buildWorkflowPackage } from '../studio/workflowPackage'; +import { outputModelKey } from '../studio/resolvedExecutionInputs'; import { cx } from '../utils/classNames'; import type { StudioResourceMode } from '../studio/types'; import { formatRequestError } from '../utils/requestJson'; @@ -482,7 +483,7 @@ function TopBar() { const handleLatestOutputPackageExportClick = useCallback(() => { if (!latestWorkflowOutput) return; downloadJson( - `modiff-${latestWorkflowOutput.modelType}-${latestWorkflowOutput.id}-workflow.json`, + `modiff-${outputModelKey(latestWorkflowOutput)}-${latestWorkflowOutput.id}-workflow.json`, buildOutputWorkflowPackage(latestWorkflowOutput), ); }, [latestWorkflowOutput]); diff --git a/tests/e2e/studio-mocked/studio-mocked.spec.ts b/tests/e2e/studio-mocked/studio-mocked.spec.ts index e7f7aceb..c2c3ce65 100644 --- a/tests/e2e/studio-mocked/studio-mocked.spec.ts +++ b/tests/e2e/studio-mocked/studio-mocked.spec.ts @@ -24,6 +24,64 @@ import type { OperationContract } from '../../../src/workflow/operationContracts import type { PipelineSupport } from '../../../src/workflow/operationCatalog'; import type { ApiGraphExport } from '../../../src/types/api'; +test('latest output download uses the backend captured model name', async ({ page }) => { + await ensureFrontend(); + await installMockRoutes(page); + await page.addInitScript(() => { + Object.defineProperty(window, 'showSaveFilePicker', { configurable: true, value: undefined }); + }); + await page.goto(FRONTEND_URL, { waitUntil: 'domcontentloaded' }); + await page.waitForFunction(() => Boolean(window.__MODIFF_E2E__)); + await dismissTaskLauncher(page); + await page.evaluate(async () => { + const { useStudioStore } = await import('/src/stores/useStudioStore.ts'); + const current = useStudioStore.getState(); + // The legacy form keeps its previous model; the executed graph's receipt + // records the actual generic model. Download naming must use that receipt. + useStudioStore.setState({ + outputs: [ + { + ...current.form, + id: 'filename-probe', + nodeId: 'video-output', + fieldKey: 'preview', + value: null, + url: '/file?file=filename-probe.mp4', + displayType: 'video', + modelType: current.form.modelType, + modelLabel: 'Captured video model', + repo: 'Pika-Labs/Pika-H3-Flex', + formSnapshot: current.form, + createdAt: 1, + favorite: false, + workflowTabId: current.activeWorkflowTabId, + resolvedExecutionInputs: { + schemaVersion: 1, + source: 'backend-execution', + taskId: 'filename-task', + attemptIndex: 0, + nodeId: 'video-output', + nodes: [], + summary: { modelType: 'PikaH3FlexModularPipeline' }, + ambiguousFields: [], + unavailableFields: [], + uncapturedNodeIds: [], + truncated: false, + }, + }, + ], + }); + }); + await page.getByTestId('topbar-export').click(); + await expect(page.getByTestId('topbar-export-latest-output')).toBeEnabled(); + const downloadPromise = page.waitForEvent('download'); + await page.getByTestId('topbar-export-latest-output').click(); + const download = await downloadPromise; + expect(download.suggestedFilename()).toBe('modiff-PikaH3FlexModularPipeline-filename-probe-workflow.json'); + const exported = JSON.parse(await fs.readFile((await download.path())!, 'utf8')); + expect(exported.latestOutput.resolvedExecutionInputs.summary.modelType).toBe('PikaH3FlexModularPipeline'); +}); + for (const [task, kind] of [ ['video_to_video', 'video'], ['image_to_video', 'image'], From 06dd8fdc22f2c668ae3c43138501e3e6bb0f0345 Mon Sep 17 00:00:00 2001 From: Sourav Das Date: Mon, 2 Nov 2026 00:32:39 +0530 Subject: [PATCH 133/440] Pin paired video backend and document fixture interpreter --- .github/workflows/ci.yml | 4 ++-- CONTRIBUTING.md | 17 +++++++++++++++++ 2 files changed, 19 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 932b9014..b852a8eb 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -33,7 +33,7 @@ jobs: with: repository: sdevil7th/MoDiff # Paired generic LTX/Wan stages and retained video template finishing. - ref: 1239d1cecd12a7318eb263ca17c34d4fc0445d14 + ref: 5a8cc1a4f31c73741c2c0fb9f916153b27a4ade2 path: MoDiff persist-credentials: false - name: Verify the pinned backend supports native setup @@ -88,7 +88,7 @@ jobs: with: repository: sdevil7th/MoDiff # Match the immutable backend revision in the Client quality job. - ref: 1239d1cecd12a7318eb263ca17c34d4fc0445d14 + ref: 5a8cc1a4f31c73741c2c0fb9f916153b27a4ade2 path: MoDiff persist-credentials: false - name: Verify the pinned backend supports native setup diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index f10f169d..232a6aaf 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -410,7 +410,24 @@ Keep Add custom node, the strict response parser and backend hash-bound imports Run the complete local CI-equivalent gate before requesting review: +The schema fixtures need the ordinary backend interpreter from the setup above. +Set both interpreter variables explicitly; do not point them at a managed +optional-runtime overlay. The fixtures do not download model weights. + +On Linux/macOS: + ```bash +export MODIFF_BACKEND_PYTHON="$PWD/../MoDiff/.venv/bin/python" +export MODIFF_PYTHON="$MODIFF_BACKEND_PYTHON" +npx playwright install chromium +npm run check +``` + +On Windows PowerShell: + +```powershell +$env:MODIFF_BACKEND_PYTHON = (Resolve-Path ..\MoDiff\.venv\Scripts\python.exe).Path +$env:MODIFF_PYTHON = $env:MODIFF_BACKEND_PYTHON npx playwright install chromium npm run check ``` From a7621b5d1a6b848b27f00c6e2971c3eccd6f56a4 Mon Sep 17 00:00:00 2001 From: Sourav Das Date: Mon, 2 Nov 2026 00:41:30 +0530 Subject: [PATCH 134/440] Keep reviewed setup baseline distinct from current CI pin --- CONTRIBUTING.md | 4 +++- README.md | 8 +++++--- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 232a6aaf..8ab0cc22 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -449,7 +449,9 @@ platform smoke jobs remain client-only. For a coordinated change, commit and review the backend first, then replace the backend `ref` in both jobs in `.github/workflows/ci.yml` with that actual compatible 40-character commit SHA and run the paired gates. Keep both refs immutable and -equal. The selected backend must contain its reviewed native setup contract and +equal, and update README's `CI backend contract` declaration with them. Keep the +reviewed application-source table independent from that CI selection. The +selected backend must contain its reviewed native setup contract and `uv.lock`; the workflow checks these before setup. Do not substitute a mutable branch or an invented future SHA for the paired commit. diff --git a/README.md b/README.md index c582cfb0..1d1b7dca 100644 --- a/README.md +++ b/README.md @@ -31,10 +31,12 @@ application source pair is: | MoDiff | `1239d1cecd12a7318eb263ca17c34d4fc0445d14` | | MoDiff-client | `c561a01395044fd71c1918e95fb9e9709d8e7601` | -CI backend contract: `1239d1cecd12a7318eb263ca17c34d4fc0445d14`. +CI backend contract: `5a8cc1a4f31c73741c2c0fb9f916153b27a4ade2`. -Both CI jobs use this exact immutable backend pin. It can include documentation -descendants of the reviewed application source above. +Both CI jobs use this exact immutable backend pin. The application table above +is the earlier reviewed testing baseline. Current CI also covers the pending +video-stage changes; a CI pin alone does not establish a new deployed pair or +expand model/hardware qualification. These application source revisions were reviewed on 1 November 2026. Final documentation, CI pairing and bundled-client packaging commits can be later From 2f64349ca013c8d2e74ad2c28441881fba5cb1f7 Mon Sep 17 00:00:00 2001 From: Sourav Das Date: Mon, 2 Nov 2026 03:11:52 +0530 Subject: [PATCH 135/440] Explain unsupported video inline adapters without graph errors --- docs/developer-first-node-ux.md | 4 + scripts/video-stage-groups.test.mjs | 20 ++++- src/workflow/modelSetupAdapters.ts | 16 +++- .../modelSetupAdapterFixture.tsx | 22 +++++ tests/e2e/studio-mocked/studio-mocked.spec.ts | 85 +++++++++++++++++++ 5 files changed, 145 insertions(+), 2 deletions(-) create mode 100644 tests/e2e/studio-mocked/modelSetupAdapterFixture.tsx diff --git a/docs/developer-first-node-ux.md b/docs/developer-first-node-ux.md index bedd00aa..b4f17294 100644 --- a/docs/developer-first-node-ux.md +++ b/docs/developer-first-node-ux.md @@ -151,6 +151,10 @@ The attachment stays in the same graph and is one Undo/Redo transaction; unsupported task changes still require review. Existing saved graphs are not rewritten on open, and missing source files continue to block Run. +Model Setup reports when its inline LoRA editor does not support the selected +pipeline type. This is separate from a graph with shared or missing consumers; +viewing the limitation does not alter the graph or grant adapter support. + ## Audio stages The same stage actions offer **Group model setup** for eligible direct audio diff --git a/scripts/video-stage-groups.test.mjs b/scripts/video-stage-groups.test.mjs index 4529a52d..75dbc9bb 100644 --- a/scripts/video-stage-groups.test.mjs +++ b/scripts/video-stage-groups.test.mjs @@ -17,7 +17,8 @@ let fixture, nodes, contracts, starterParser, - drafts; + drafts, + setupAdapters; before(async () => { const backend = process.env.MODIFF_BACKEND_DIR || path.resolve('../MoDiff'); const python = @@ -85,6 +86,7 @@ before(async () => { contracts = await server.ssrLoadModule('/src/workflow/operationContracts.ts'); starterParser = await server.ssrLoadModule('/src/workflow/operationStarterRequest.ts'); drafts = await server.ssrLoadModule('/src/workflow/workflowDraft.ts'); + setupAdapters = await server.ssrLoadModule('/src/workflow/modelSetupAdapters.ts'); ({ STUDIO_TEMPLATES: templates } = await server.ssrLoadModule('/src/studio/templates.ts')); builder = await server.ssrLoadModule('/src/studio/templateOperationWorkflow.ts'); exactness = await server.ssrLoadModule('/src/studio/templateExactness.ts'); @@ -204,6 +206,22 @@ test('actual video workflows group real encoders and decoder/export without chan }); }); +test('direct video Model Setup explains unavailable inline adapters without blaming valid consumers', () => { + for (const id of ['ltx_video_text_to_video', 'wan_22_ti2v_5b_seed_vault']) { + const row = fixture.recipes.find((item) => item.id === id); + assert.ok(row, id); + const graph = groups.groupNewOperationGraph(graphFor(row)); + const setup = graph.nodes.find((node) => groups.visualOperationGroup(node) === 'setup'); + assert.ok(setup, id); + const before = api(graph); + assert.throws( + () => setupAdapters.modelSetupAdapterChain(graph, setup.id), + /LoRA editing is not available for this pipeline type/, + ); + assert.deepEqual(api(graph), before, 'read-only limitation leaves the complete video graph intact'); + } +}); + test('five retained video template factories preserve creative settings on their exact staged starters', () => { const parsed = nodes.parseStudioModelCapabilities(fixture.publicPayload); const operations = contracts.parseOperationContracts( diff --git a/src/workflow/modelSetupAdapters.ts b/src/workflow/modelSetupAdapters.ts index 8ce2078a..47265210 100644 --- a/src/workflow/modelSetupAdapters.ts +++ b/src/workflow/modelSetupAdapters.ts @@ -31,6 +31,15 @@ export function isModelSetupAdapter(node: CustomNodeType) { return [NATIVE, DIRECT, AUDIO].includes(key(node)); } +function adapterTransportUnavailable(owner: CustomNodeType, adapterKey: string): string | null { + if (adapterKey === NATIVE) return null; + const pipeline = owner.data.params.pipeline; + const expected = adapterKey === AUDIO ? 'audio_diffusion_pipeline' : 'image_diffusion_pipeline'; + return pipeline && connectionTypesAreCompatible(pipeline.type, expected) + ? null + : 'LoRA editing is not available for this pipeline type in Model Setup.'; +} + /** Follow the actual ordered adapter wires, not labels or canvas positions. */ export function modelSetupAdapterChain(graph: OperationGraph, rootId: string) { const root = graph.nodes.find((node) => node.id === rootId); @@ -82,7 +91,10 @@ export function modelSetupAdapterChain(graph: OperationGraph, rootId: string) { const outgoing = flat.edges.filter((edge) => edge.source === source && edge.sourceHandle === handle); if (outgoing.length !== 1) { if (!declaredImagePipelineStageTail(flat, owner.id, outgoing)) - throw new Error('This pipeline has shared or missing consumers. Separate stages before adding adapters.'); + throw new Error( + adapterTransportUnavailable(owner, adapterKey) ?? + 'This pipeline has shared or missing consumers. Separate stages before adding adapters.', + ); tail = outgoing.map((edge) => ({ target: edge.target, targetHandle: edge.targetHandle! })); chainEdges.push(...outgoing); break; @@ -297,6 +309,8 @@ function modelSetupAdapterAuthoringLimit( ) return refresh; const { owner, native, adapterKey, unpacked } = chain; + const unsupported = adapterTransportUnavailable(owner, adapterKey); + if (unsupported) return unsupported; if (adapterKey === AUDIO) { const policy = selectedAudioAdapterPolicy(owner, unpacked.graph, chain.tail, authority); if (typeof policy === 'string') return policy; diff --git a/tests/e2e/studio-mocked/modelSetupAdapterFixture.tsx b/tests/e2e/studio-mocked/modelSetupAdapterFixture.tsx new file mode 100644 index 00000000..e3f4d759 --- /dev/null +++ b/tests/e2e/studio-mocked/modelSetupAdapterFixture.tsx @@ -0,0 +1,22 @@ +import { createRoot } from 'react-dom/client'; +import ModelSetupAdapterControls from '../../../src/components/ModelSetupAdapterControls'; +import { useFlowStore } from '../../../src/stores/useFlowStore'; + +// eslint-disable-next-line react-refresh/only-export-components -- Isolated mounted-control test entry point. +function ModelSetupAdapterProbe({ nodeId }: { nodeId: string }) { + const node = useFlowStore((state) => state.nodes.find((item) => item.id === nodeId)!); + return ( +
+ useFlowStore.getState().setParamWithHistory(nodeId, param, value, key)} + /> +
+ ); +} + +export function mountModelSetupAdapterProbe(nodeId: string) { + const host = document.createElement('div'); + document.body.appendChild(host); + createRoot(host).render(); +} diff --git a/tests/e2e/studio-mocked/studio-mocked.spec.ts b/tests/e2e/studio-mocked/studio-mocked.spec.ts index c2c3ce65..38bd16a1 100644 --- a/tests/e2e/studio-mocked/studio-mocked.spec.ts +++ b/tests/e2e/studio-mocked/studio-mocked.spec.ts @@ -216,6 +216,91 @@ for (const [task, kind] of [ }); } +for (const [pipelineClass, executionProfileId] of [ + ['LTXConditionPipeline', 'ltx-video:direct'], + ['WanTI2VPipeline', 'wan-22-ti2v-5b:direct'], +] as const) { + test(`${pipelineClass} Model Setup explains its inline adapter limitation without changing the graph`, async ({ + page, + }) => { + await ensureFrontend(); + const python = + process.env.MODIFF_BACKEND_PYTHON || + path.join(BACKEND_ROOT, '.venv', process.platform === 'win32' ? 'Scripts/python.exe' : 'bin/python'); + const { stdout } = await new Promise<{ stdout: string }>((resolve, reject) => { + const child = execFile( + python, + [path.join(CLIENT_ROOT, 'scripts/template-operation-fixtures.py')], + { + cwd: BACKEND_ROOT, + env: { ...process.env, PYTHONDONTWRITEBYTECODE: '1', HF_HUB_OFFLINE: '1' }, + timeout: 90_000, + maxBuffer: 32 * 1024 ** 2, + encoding: 'utf8', + }, + (error, stdout) => (error ? reject(error) : resolve({ stdout })), + ); + child.stdin!.end( + JSON.stringify([ + { id: 'video-setup-browser', selection: { pipelineClass, executionProfileId, task: 'text_to_video' } }, + ]), + ); + }); + const fixture = JSON.parse(stdout) as { + recipes: { starter: OperationStarter }[]; + registry: Record; + }; + await page.goto(`${FRONTEND_URL}/control-state-matrix.html`, { waitUntil: 'domcontentloaded' }); + const before = await page.evaluate( + async ({ starter, registry }) => { + const [ + { useFlowStore }, + { useNodesStore }, + { createOperationStarter }, + groups, + { mountModelSetupAdapterProbe }, + ] = await Promise.all([ + import('/src/stores/useFlowStore.ts'), + import('/src/stores/useNodeStore.ts'), + import('/src/workflow/operationAuthoring.ts'), + import('/src/workflow/visualOperationGroups.ts'), + import('/tests/e2e/studio-mocked/modelSetupAdapterFixture.tsx'), + ]); + const source = createOperationStarter(starter, { x: 80, y: 120 }); + for (const node of source.nodes) { + if (node.data.params.offload_mode) node.data.params.offload_mode.value = 'none'; + if (node.data.params.auto_offload) node.data.params.auto_offload.value = false; + } + const graph = groups.groupNewOperationGraph(source); + const setup = graph.nodes.find((node) => groups.visualOperationGroup(node) === 'setup')!; + useNodesStore.setState({ + nodesRegistry: registry, + operationContracts: starter.nodes.map((row) => row.operation), + }); + useFlowStore.getState().replaceGraph(graph, { clearRemovedCache: false }); + useFlowStore.getState().resetHistory(); + const saved = useFlowStore.getState().toObject(); + const api = useFlowStore.getState().exportGraph('video-setup-browser', undefined, { randomizeSeeds: false }); + mountModelSetupAdapterProbe(setup.id); + return { saved, api }; + }, + { starter: fixture.recipes[0]!.starter, registry: fixture.registry }, + ); + const probe = page.getByTestId('mounted-model-setup-adapters'); + await expect(probe).toContainText('LoRA editing is not available for this pipeline type in Model Setup.'); + await expect(probe).not.toContainText('shared or missing consumers'); + await expect(probe.getByRole('button', { name: 'Add LoRA', exact: true })).toBeDisabled(); + const after = await page.evaluate(async () => { + const { useFlowStore } = await import('/src/stores/useFlowStore.ts'); + return { + saved: useFlowStore.getState().toObject(), + api: useFlowStore.getState().exportGraph('video-setup-browser', undefined, { randomizeSeeds: false }), + }; + }); + expect(after).toEqual(before); + }); +} + function restorationSnapshot(text: string, preview: string, x: number): WorkflowTabSnapshot { return { nodes: [ From 2242972cd2b0739f09ed02e55ee293d3d23ebff6 Mon Sep 17 00:00:00 2001 From: Sourav Das Date: Mon, 2 Nov 2026 03:19:25 +0530 Subject: [PATCH 136/440] Preserve scoped video input evidence in output history --- docs/developer-first-node-ux.md | 6 +++ scripts/resolved-execution-inputs.test.mjs | 57 ++++++++++++++++++++++ src/studio/resolvedExecutionInputs.ts | 19 +++++--- 3 files changed, 76 insertions(+), 6 deletions(-) diff --git a/docs/developer-first-node-ux.md b/docs/developer-first-node-ux.md index b4f17294..808a98b1 100644 --- a/docs/developer-first-node-ux.md +++ b/docs/developer-first-node-ux.md @@ -155,6 +155,12 @@ Model Setup reports when its inline LoRA editor does not support the selected pipeline type. This is separate from a graph with shared or missing consumers; viewing the limitation does not alter the graph or grant adapter support. +Recorded ordinary video stage inputs keep condition strength and denoise +strength separate. A source-video pixel digest identifies the ordered frozen +PIL frames used by Encode Inputs, alongside their count; it is not a source-file +hash. Other frame types report an unavailable digest. Saved receipts survive +history reload without borrowing values from the current form. + ## Audio stages The same stage actions offer **Group model setup** for eligible direct audio diff --git a/scripts/resolved-execution-inputs.test.mjs b/scripts/resolved-execution-inputs.test.mjs index 6c1d624d..08394c97 100644 --- a/scripts/resolved-execution-inputs.test.mjs +++ b/scripts/resolved-execution-inputs.test.mjs @@ -376,6 +376,63 @@ test('optional accounting rejects unknown scopes, objects, origins, projections assert.equal(JSON.stringify(inputs.coerceResolvedExecutionInputs(old, legacyIdentity)), JSON.stringify(old)); }); +test('video source and distinct condition strengths survive the actual backend receipt boundary', () => { + const backend = fileURLToPath(new URL('../../MoDiff/', import.meta.url)); + const python = + process.env.MODIFF_BACKEND_PYTHON || + `${backend}.venv/${process.platform === 'win32' ? 'Scripts/python.exe' : 'bin/python'}`; + const generated = spawnSync( + python, + [ + '-B', + '-c', + String.raw` +import json +from modiff.execution_input_provenance import capture_generation_inputs, build_resolved_execution_inputs +nodes = { + 'encode': {'module': 'modules.DiffusersVideo', 'action': 'EncodeInputs', 'params': {}}, + 'sample': {'module': 'modules.DiffusersVideo', 'action': 'Denoise', 'params': { + 'encoded_inputs': {'sourceId': 'encode', 'sourceKey': 'encoded_inputs'}}}, +} +records = { + 'encode': capture_generation_inputs('encode', nodes['encode'], {'video_source_sha256': 'a' * 64, 'video_source_frames': 121}), + 'sample': capture_generation_inputs('sample', nodes['sample'], {'conditioning_strength': .65, 'denoise_strength': .8}), +} +print(json.dumps(build_resolved_execution_inputs({'nodes': nodes}, records, task_id='video-input-contract', attempt_index=0, node_id='sample'))) +`, + ], + { cwd: backend, encoding: 'utf8', maxBuffer: 1_000_000 }, + ); + assert.equal(generated.status, 0, generated.stderr); + const capture = JSON.parse(generated.stdout); + assert.deepEqual(capture.summary, { + videoSourceSha256: 'a'.repeat(64), + videoSourceFrames: 121, + conditioningStrength: 0.65, + denoiseStrength: 0.8, + }); + const parsed = inputs.coerceResolvedExecutionInputs(capture, capture); + assert.deepEqual(parsed, capture); + const output = contracts.coerceStudioOutput({ + id: 'video-input-contract-output', + url: '/clip.mp4', + displayType: 'video', + taskId: capture.taskId, + nodeId: capture.nodeId, + attemptIndex: capture.attemptIndex, + resolvedExecutionInputs: capture, + }); + assert.deepEqual(output.resolvedExecutionInputs, capture); + assert.deepEqual(contracts.coerceStudioOutput(JSON.parse(JSON.stringify(output))).resolvedExecutionInputs, capture); + const unrelated = structuredClone(capture); + unrelated.nodes[0].module = 'modules.DiffusersImage'; + assert.equal( + inputs.coerceResolvedExecutionInputs(unrelated, unrelated), + undefined, + 'Source-video fields remain scoped to video encoding', + ); +}); + test('SSR receipt imports and explicit watch requests allocate no filesystem watchers', () => { assert.equal(server.config.server.watch, null); assert.deepEqual(server.watcher.getWatched(), {}); diff --git a/src/studio/resolvedExecutionInputs.ts b/src/studio/resolvedExecutionInputs.ts index 4b3daa2c..70c1c72a 100644 --- a/src/studio/resolvedExecutionInputs.ts +++ b/src/studio/resolvedExecutionInputs.ts @@ -172,12 +172,19 @@ const nodeInputNames: Record> = { 'Image.Save': { ...inputNames, filename: 'imageSaveFilename', quality: 'imageSaveQuality' }, 'ModularDiffusers.ModelsLoader': { ...inputNames, weight_format: 'weightFormat' }, 'DiffusersImage.LoadPipeline': { ...inputNames, mode: 'executionMode' }, - ...Object.fromEntries( - ['EncodeInputs', 'Denoise', 'DecodeLatents'].map((action) => [ - `DiffusersVideo.${action}`, - { ...inputNames, executed_task: 'executedTask' }, - ]), - ), + 'DiffusersVideo.EncodeInputs': { + ...inputNames, + executed_task: 'executedTask', + video_source_sha256: 'videoSourceSha256', + video_source_frames: 'videoSourceFrames', + }, + 'DiffusersVideo.Denoise': { + ...inputNames, + executed_task: 'executedTask', + conditioning_strength: 'conditioningStrength', + denoise_strength: 'denoiseStrength', + }, + 'DiffusersVideo.DecodeLatents': { ...inputNames, executed_task: 'executedTask' }, ...Object.fromEntries( [ 'Generate', From 914d7a80c9be2ce33768e248e59276cbd61def7c Mon Sep 17 00:00:00 2001 From: Sourav Das Date: Mon, 2 Nov 2026 03:26:57 +0530 Subject: [PATCH 137/440] Pin client checks to scoped video input and offload fixes --- .github/workflows/ci.yml | 4 ++-- README.md | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index b852a8eb..9bbe11a0 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -33,7 +33,7 @@ jobs: with: repository: sdevil7th/MoDiff # Paired generic LTX/Wan stages and retained video template finishing. - ref: 5a8cc1a4f31c73741c2c0fb9f916153b27a4ade2 + ref: 87be7bf3c8a43adb8ee2f9402ca6ce95f148f57d path: MoDiff persist-credentials: false - name: Verify the pinned backend supports native setup @@ -88,7 +88,7 @@ jobs: with: repository: sdevil7th/MoDiff # Match the immutable backend revision in the Client quality job. - ref: 5a8cc1a4f31c73741c2c0fb9f916153b27a4ade2 + ref: 87be7bf3c8a43adb8ee2f9402ca6ce95f148f57d path: MoDiff persist-credentials: false - name: Verify the pinned backend supports native setup diff --git a/README.md b/README.md index 1d1b7dca..8fc25d4b 100644 --- a/README.md +++ b/README.md @@ -31,7 +31,7 @@ application source pair is: | MoDiff | `1239d1cecd12a7318eb263ca17c34d4fc0445d14` | | MoDiff-client | `c561a01395044fd71c1918e95fb9e9709d8e7601` | -CI backend contract: `5a8cc1a4f31c73741c2c0fb9f916153b27a4ade2`. +CI backend contract: `87be7bf3c8a43adb8ee2f9402ca6ce95f148f57d`. Both CI jobs use this exact immutable backend pin. The application table above is the earlier reviewed testing baseline. Current CI also covers the pending From 7d310eabf00eca5af6a63d25cac023eb73805c63 Mon Sep 17 00:00:00 2001 From: Sourav Das Date: Mon, 2 Nov 2026 03:40:11 +0530 Subject: [PATCH 138/440] Retain legacy generic image adapter transports --- src/workflow/modelSetupAdapters.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/workflow/modelSetupAdapters.ts b/src/workflow/modelSetupAdapters.ts index 47265210..bf48b81d 100644 --- a/src/workflow/modelSetupAdapters.ts +++ b/src/workflow/modelSetupAdapters.ts @@ -35,7 +35,10 @@ function adapterTransportUnavailable(owner: CustomNodeType, adapterKey: string): if (adapterKey === NATIVE) return null; const pipeline = owner.data.params.pipeline; const expected = adapterKey === AUDIO ? 'audio_diffusion_pipeline' : 'image_diffusion_pipeline'; - return pipeline && connectionTypesAreCompatible(pipeline.type, expected) + // Legacy generic transports still use the existing backend authoring and + // actual adapter-port checks. Diagnose incompatible typed transports here. + const types = pipeline && (Array.isArray(pipeline.type) ? pipeline.type : [pipeline.type]); + return pipeline && (types?.includes('pipeline') || connectionTypesAreCompatible(pipeline.type, expected)) ? null : 'LoRA editing is not available for this pipeline type in Model Setup.'; } From 70dde80d4d517e2dbcf00b9554077b7c3546678b Mon Sep 17 00:00:00 2001 From: Sourav Das Date: Mon, 2 Nov 2026 04:02:09 +0530 Subject: [PATCH 139/440] Bound shared video input history and adapter messaging size --- scripts/bundle-budget.mjs | 6 ++++++ src/workflow/modelSetupAdapters.ts | 5 ++--- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/scripts/bundle-budget.mjs b/scripts/bundle-budget.mjs index 03d4be47..dc1fc287 100644 --- a/scripts/bundle-budget.mjs +++ b/scripts/bundle-budget.mjs @@ -285,7 +285,10 @@ const SOURCE_LICENSES = new URL('../public/THIRD_PARTY_LICENSES.txt', import.met // largest/startup/deferred gzip 493170/671659/327133 versus 491521/670008/326977. // Allow only measured startup growth (+1649/+1651), retaining 8/11 bytes headroom. // Four startup and 89 deferred assets, dependencies, loading rules and deferred caps stay fixed. +// Scoped video receipts and compatible adapter messaging measure 494870 bytes +// in the largest startup asset (+46 over the cap). Add 64 bytes, no dependencies. const MAX_STARTUP_CHUNK_GZIP_BYTES = + 64 + 10 + 57 + 294 + @@ -412,7 +415,10 @@ const MAX_STARTUP_CHUNK_GZIP_BYTES = // Preserve the same bounded 64-byte numeric-field correction allowance. // Preserve the separately measured 64-byte shared loading-policy allowance above. // Preserve the measured 384-byte selected-image authoring allowance above. +// The same build measures 673359 aggregate startup bytes (+45 over the cap). +// Keep 19 bytes of headroom; deferred limits and loading boundaries stay fixed. const MAX_STARTUP_GZIP_BYTES = + 64 + 13 + 52 + 297 + diff --git a/src/workflow/modelSetupAdapters.ts b/src/workflow/modelSetupAdapters.ts index bf48b81d..266f95c9 100644 --- a/src/workflow/modelSetupAdapters.ts +++ b/src/workflow/modelSetupAdapters.ts @@ -33,12 +33,11 @@ export function isModelSetupAdapter(node: CustomNodeType) { function adapterTransportUnavailable(owner: CustomNodeType, adapterKey: string): string | null { if (adapterKey === NATIVE) return null; - const pipeline = owner.data.params.pipeline; + const type = owner.data.params.pipeline?.type; const expected = adapterKey === AUDIO ? 'audio_diffusion_pipeline' : 'image_diffusion_pipeline'; // Legacy generic transports still use the existing backend authoring and // actual adapter-port checks. Diagnose incompatible typed transports here. - const types = pipeline && (Array.isArray(pipeline.type) ? pipeline.type : [pipeline.type]); - return pipeline && (types?.includes('pipeline') || connectionTypesAreCompatible(pipeline.type, expected)) + return type && (connectionTypesAreCompatible(type, expected) || connectionTypesAreCompatible(type, 'pipeline')) ? null : 'LoRA editing is not available for this pipeline type in Model Setup.'; } From 395a19485a2cdd2d3147f84f64593004814a5f90 Mon Sep 17 00:00:00 2001 From: Sourav Das Date: Mon, 2 Nov 2026 04:54:23 +0530 Subject: [PATCH 140/440] Read explicit catalog source supplements without changing saved members --- .github/workflows/ci.yml | 4 +- README.md | 2 +- docs/developer-first-node-ux.md | 7 ++ package.json | 2 +- .../hugging-face-source-supplements.test.mjs | 96 +++++++++++++++++++ src/studio/huggingFaceNodeLibrary.ts | 80 +++++++++++++++- 6 files changed, 183 insertions(+), 8 deletions(-) create mode 100644 scripts/hugging-face-source-supplements.test.mjs diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 9bbe11a0..c9c83323 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -33,7 +33,7 @@ jobs: with: repository: sdevil7th/MoDiff # Paired generic LTX/Wan stages and retained video template finishing. - ref: 87be7bf3c8a43adb8ee2f9402ca6ce95f148f57d + ref: 3644a29712d804de229f9f91bd70cadbfff3e406 path: MoDiff persist-credentials: false - name: Verify the pinned backend supports native setup @@ -88,7 +88,7 @@ jobs: with: repository: sdevil7th/MoDiff # Match the immutable backend revision in the Client quality job. - ref: 87be7bf3c8a43adb8ee2f9402ca6ce95f148f57d + ref: 3644a29712d804de229f9f91bd70cadbfff3e406 path: MoDiff persist-credentials: false - name: Verify the pinned backend supports native setup diff --git a/README.md b/README.md index 8fc25d4b..f203a4b7 100644 --- a/README.md +++ b/README.md @@ -31,7 +31,7 @@ application source pair is: | MoDiff | `1239d1cecd12a7318eb263ca17c34d4fc0445d14` | | MoDiff-client | `c561a01395044fd71c1918e95fb9e9709d8e7601` | -CI backend contract: `87be7bf3c8a43adb8ee2f9402ca6ce95f148f57d`. +CI backend contract: `3644a29712d804de229f9f91bd70cadbfff3e406`. Both CI jobs use this exact immutable backend pin. The application table above is the earlier reviewed testing baseline. Current CI also covers the pending diff --git a/docs/developer-first-node-ux.md b/docs/developer-first-node-ux.md index 808a98b1..1edb8646 100644 --- a/docs/developer-first-node-ux.md +++ b/docs/developer-first-node-ux.md @@ -245,6 +245,13 @@ explicit Custom settings and are not silently admitted by attachment. ## Verification trail +The library parser accepts collection schema 7 with explicit immutable source +supplements, while preserving schema 5/6 collections. Member definitions keep +their own schema and source revision; adding a source does not rewrite existing +definition hashes. Source metadata is for authoring and does not activate a +runtime, approve custom code or establish model/hardware qualification. The +client renders these declarations without model-specific parameter branches. + Focused source/lifecycle, graph transactions, saved-Block boundaries, registry and search tests precede real browser journeys. The model-free Local/Hub/Git journeys import, insert, connect, Run and refresh using a real backend. The Hub diff --git a/package.json b/package.json index ba0a69f4..76797f0a 100644 --- a/package.json +++ b/package.json @@ -79,7 +79,7 @@ "test:registered-block-v2-adapter": "node --test scripts/wan-video-boundary.test.mjs scripts/registered-block-v2-adapter.test.mjs scripts/registered-block-v2-insertion.test.mjs scripts/registered-block-v2-route-audit.test.mjs", "test:graph-export": "node --test scripts/flow-graph-export.test.mjs", "test:hugging-face-cluster-drag": "node --test scripts/hugging-face-cluster-drag.test.mjs", - "test:hugging-face-node-library": "node --test scripts/hugging-face-node-library.test.mjs", + "test:hugging-face-node-library": "node --test scripts/hugging-face-node-library.test.mjs scripts/hugging-face-source-supplements.test.mjs", "test:templates": "node --test scripts/modiff-template.test.mjs scripts/template-operation-workflows.test.mjs scripts/image-full-native-template-candidates.test.mjs scripts/image-model-usage-policies.test.mjs scripts/workflow-library-dependency-contracts.test.mjs scripts/workflow-library-canonical-export.test.mjs scripts/workflow-library-image-stages.test.mjs scripts/weight-format-template-binding.test.mjs scripts/flux3-public-template-planning.test.mjs", "test:task-templates": "node --test scripts/task-template-contracts.test.mjs", "test:template-assets:local": "node --test scripts/template-default-inputs.test.mjs", diff --git a/scripts/hugging-face-source-supplements.test.mjs b/scripts/hugging-face-source-supplements.test.mjs new file mode 100644 index 00000000..4c9a5cc2 --- /dev/null +++ b/scripts/hugging-face-source-supplements.test.mjs @@ -0,0 +1,96 @@ +import assert from 'node:assert/strict'; +import { before, after, test } from 'node:test'; +import { execFileSync } from 'node:child_process'; +import path from 'node:path'; +import { createServer } from 'vite'; + +let server, parser, fixture; +before(async () => { + const backend = process.env.MODIFF_BACKEND_DIR || path.resolve('../MoDiff'); + const python = + process.env.MODIFF_BACKEND_PYTHON || + path.join(backend, '.venv', process.platform === 'win32' ? 'Scripts/python.exe' : 'bin/python'); + fixture = JSON.parse( + execFileSync( + python, + [ + '-B', + '-c', + ` +import json +from modiff.huggingface_node_library import build_huggingface_node_library +print(json.dumps({'mixed': build_huggingface_node_library(), 'legacy': build_huggingface_node_library(include_source_supplements=False)})) +`, + ], + { + cwd: backend, + encoding: 'utf8', + timeout: 60_000, + maxBuffer: 24 * 1024 ** 2, + env: { ...process.env, PYTHONDONTWRITEBYTECODE: '1', HF_HUB_OFFLINE: '1' }, + }, + ), + ); + server = await createServer({ + configFile: false, + logLevel: 'silent', + appType: 'custom', + optimizeDeps: { entries: [], noDiscovery: true }, + server: { middlewareMode: true, watch: null }, + }); + parser = await server.ssrLoadModule('/src/studio/huggingFaceNodeLibrary.ts'); +}); +after(async () => { + await server?.close(); +}); + +test('actual mixed-source collection preserves all legacy definitions through the client parser', () => { + const mixed = parser.parseHuggingFaceNodeLibrary(fixture.mixed); + const legacy = parser.parseHuggingFaceNodeLibrary(fixture.legacy); + assert.equal(mixed.schemaVersion, 7); + assert.equal(legacy.schemaVersion, 6); + assert.equal(mixed.diffusersRevision, legacy.diffusersRevision); + assert.equal(mixed.sourceSupplements.length, 1); + for (const old of legacy.definitions) { + assert.deepEqual( + mixed.definitions.find((item) => item.id === old.id), + old, + old.id, + ); + } + const source = mixed.sourceSupplements[0]; + const added = mixed.definitions.filter((item) => source.definitionIds.includes(item.id)); + assert.equal(added.length, 3); + assert.ok(added.every((item) => item.libraryRevision === source.libraryRevision)); + assert.ok(added.every((item) => item.executionClaim === 'discovery_only')); + assert.ok(added.every((item) => item.schemaVersion === 6)); + assert.equal(Object.hasOwn(legacy, 'sourceSupplements'), false); +}); + +for (const mutation of [ + 'missing', + 'revision', + 'duplicate', + 'membership', + 'unknown', + 'runtime-format', + 'member-version', + 'legacy-envelope', +]) { + test(`mixed-source parsing rejects inconsistent ${mutation} metadata`, () => { + const value = structuredClone(fixture.mixed); + const source = value.sourceSupplements[0]; + if (mutation === 'missing') delete value.sourceSupplements; + else if (mutation === 'revision') source.libraryRevision = value.diffusersRevision; + else if (mutation === 'duplicate') value.sourceSupplements.push(structuredClone(source)); + else if (mutation === 'membership') source.definitionIds.push('diffusers.modular:UnknownPipeline:text2image'); + else if (mutation === 'unknown') source.runModels = true; + else if (mutation === 'runtime-format') source.runtimeProfileId = 'outside/profile'; + else if (mutation === 'member-version') value.definitions[0].schemaVersion = 7; + else { + value.schemaVersion = 6; + delete value.sourceSupplements; + } + assert.throws(() => parser.parseHuggingFaceNodeLibrary(value)); + }); +} diff --git a/src/studio/huggingFaceNodeLibrary.ts b/src/studio/huggingFaceNodeLibrary.ts index d9a42255..198bb100 100644 --- a/src/studio/huggingFaceNodeLibrary.ts +++ b/src/studio/huggingFaceNodeLibrary.ts @@ -247,7 +247,7 @@ export type HuggingFaceNodeLibraryTaskContract = { }; export type HuggingFaceNodeLibrary = { - schemaVersion: 5 | 6; + schemaVersion: 5 | 6 | 7; diffusersRevision: string; providers: HuggingFaceNodeLibraryProvider[]; taskContracts: HuggingFaceNodeLibraryTaskContract[]; @@ -255,6 +255,18 @@ export type HuggingFaceNodeLibrary = { blockDefinitions: HuggingFaceNodeLibraryBlockDefinition[]; blockRoleAdapters: HuggingFaceNodeLibraryBlockRoleAdapter[]; containerStateAdapters: HuggingFaceNodeLibraryContainerStateAdapter[]; + sourceSupplements?: HuggingFaceNodeLibrarySourceSupplement[]; +}; + +export type HuggingFaceNodeLibrarySourceSupplement = { + schemaVersion: 1; + provider: 'diffusers'; + libraryRevision: string; + runtimeProfileId: string; + workflowContractHash: string; + blockContractHash: string; + definitionIds: string[]; + contentHash: string; }; const IMMUTABLE_REVISION = /^[0-9a-f]{40}$/; @@ -1360,6 +1372,40 @@ function taskContract(value: unknown, schemaVersion: 5 | 6): HuggingFaceNodeLibr }; } +function sourceSupplements(value: unknown): HuggingFaceNodeLibrarySourceSupplement[] { + if (!Array.isArray(value) || !value.length || value.length > 16) invalid(); + return value.map((item) => { + if ( + !record(item) || + !exactKeys(item, [ + 'schemaVersion', + 'provider', + 'libraryRevision', + 'runtimeProfileId', + 'workflowContractHash', + 'blockContractHash', + 'definitionIds', + 'contentHash', + ]) || + item.schemaVersion !== 1 || + item.provider !== 'diffusers' + ) + invalid(); + const definitionIds = uniqueStrings(item.definitionIds, DEFINITION_ID, MAX_DEFINITIONS); + if (!definitionIds.length) invalid(); + return { + schemaVersion: 1, + provider: 'diffusers', + libraryRevision: boundedText(item.libraryRevision, IMMUTABLE_REVISION, 40), + runtimeProfileId: boundedText(item.runtimeProfileId, IDENTIFIER, 256), + workflowContractHash: boundedText(item.workflowContractHash, CONTENT_HASH, 71), + blockContractHash: boundedText(item.blockContractHash, CONTENT_HASH, 71), + definitionIds, + contentHash: boundedText(item.contentHash, CONTENT_HASH, 71), + }; + }); +} + export function parseHuggingFaceNodeLibrary(value: unknown): HuggingFaceNodeLibrary { if ( !record(value) || @@ -1372,12 +1418,13 @@ export function parseHuggingFaceNodeLibrary(value: unknown): HuggingFaceNodeLibr 'blockDefinitions', 'blockRoleAdapters', 'containerStateAdapters', + ...(value.schemaVersion === 7 ? ['sourceSupplements'] : []), ]) ) invalid(); const schemaVersion = value.schemaVersion; if ( - (schemaVersion !== 5 && schemaVersion !== 6) || + (schemaVersion !== 5 && schemaVersion !== 6 && schemaVersion !== 7) || !Array.isArray(value.providers) || !( (value.providers.length === 1 && value.providers[0] === 'diffusers') || @@ -1399,15 +1446,39 @@ export function parseHuggingFaceNodeLibrary(value: unknown): HuggingFaceNodeLibr ) invalid(); const diffusersRevision = boundedText(value.diffusersRevision, IMMUTABLE_REVISION, 40); + const sources = schemaVersion === 7 ? sourceSupplements(value.sourceSupplements) : []; + const sourceByDefinition = new Map(); + const sourceRevisions = new Set(); + for (const source of sources) { + if (source.libraryRevision === diffusersRevision || sourceRevisions.has(source.libraryRevision)) invalid(); + sourceRevisions.add(source.libraryRevision); + for (const identity of source.definitionIds) { + if (sourceByDefinition.has(identity)) invalid(); + sourceByDefinition.set(identity, source); + } + } const blockDefinitions = value.blockDefinitions.map(parseHuggingFaceNodeLibraryBlockDefinition); const blockDefinitionsById = new Map(blockDefinitions.map((item) => [item.id, item])); if (blockDefinitionsById.size !== blockDefinitions.length) invalid(); const parsedBlockRoleAdapters = blockRoleAdapters(value.blockRoleAdapters, blockDefinitionsById); const parsedContainerStateAdapters = containerStateAdapters(value.containerStateAdapters, blockDefinitionsById); - const definitions = value.definitions.map((item) => definition(item, diffusersRevision, blockDefinitionsById)); + const definitions = value.definitions.map((item) => + definition( + item, + record(item) && typeof item.id === 'string' + ? (sourceByDefinition.get(item.id)?.libraryRevision ?? diffusersRevision) + : diffusersRevision, + blockDefinitionsById, + ), + ); const definitionIds = new Set(definitions.map((item) => item.id)); if (definitionIds.size !== definitions.length) invalid(); - const taskContracts = value.taskContracts.map((item) => taskContract(item, schemaVersion)); + if (schemaVersion === 7 && definitions.some((item) => item.schemaVersion !== 6)) invalid(); + for (const identity of sourceByDefinition.keys()) { + const item = definitions.find((definition) => definition.id === identity); + if (!item || item.provider !== 'diffusers' || item.definitionKind !== 'modular_pipeline_workflow') invalid(); + } + const taskContracts = value.taskContracts.map((item) => taskContract(item, schemaVersion === 7 ? 6 : schemaVersion)); const taskContractIds = new Set(taskContracts.map((item) => item.id)); if (taskContractIds.size !== taskContracts.length) invalid(); @@ -1448,5 +1519,6 @@ export function parseHuggingFaceNodeLibrary(value: unknown): HuggingFaceNodeLibr blockDefinitions, blockRoleAdapters: parsedBlockRoleAdapters, containerStateAdapters: parsedContainerStateAdapters, + ...(schemaVersion === 7 ? { sourceSupplements: sources } : {}), }); } From 5bd65f5f3442c416b61a70a39c576861c2f8d3c6 Mon Sep 17 00:00:00 2001 From: Sourav Das Date: Mon, 2 Nov 2026 05:00:46 +0530 Subject: [PATCH 141/440] Pair the Pika Expert contract and bound measured parser size --- .github/workflows/ci.yml | 4 ++-- README.md | 2 +- scripts/bundle-budget.mjs | 6 ++++++ 3 files changed, 9 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index c9c83323..30ee256b 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -33,7 +33,7 @@ jobs: with: repository: sdevil7th/MoDiff # Paired generic LTX/Wan stages and retained video template finishing. - ref: 3644a29712d804de229f9f91bd70cadbfff3e406 + ref: ee76a1533bd7a99eca85ca69bbd354d5d17b27c9 path: MoDiff persist-credentials: false - name: Verify the pinned backend supports native setup @@ -88,7 +88,7 @@ jobs: with: repository: sdevil7th/MoDiff # Match the immutable backend revision in the Client quality job. - ref: 3644a29712d804de229f9f91bd70cadbfff3e406 + ref: ee76a1533bd7a99eca85ca69bbd354d5d17b27c9 path: MoDiff persist-credentials: false - name: Verify the pinned backend supports native setup diff --git a/README.md b/README.md index f203a4b7..e34fe8cc 100644 --- a/README.md +++ b/README.md @@ -31,7 +31,7 @@ application source pair is: | MoDiff | `1239d1cecd12a7318eb263ca17c34d4fc0445d14` | | MoDiff-client | `c561a01395044fd71c1918e95fb9e9709d8e7601` | -CI backend contract: `3644a29712d804de229f9f91bd70cadbfff3e406`. +CI backend contract: `ee76a1533bd7a99eca85ca69bbd354d5d17b27c9`. Both CI jobs use this exact immutable backend pin. The application table above is the earlier reviewed testing baseline. Current CI also covers the pending diff --git a/scripts/bundle-budget.mjs b/scripts/bundle-budget.mjs index dc1fc287..d07f955b 100644 --- a/scripts/bundle-budget.mjs +++ b/scripts/bundle-budget.mjs @@ -288,6 +288,9 @@ const SOURCE_LICENSES = new URL('../public/THIRD_PARTY_LICENSES.txt', import.met // Scoped video receipts and compatible adapter messaging measure 494870 bytes // in the largest startup asset (+46 over the cap). Add 64 bytes, no dependencies. const MAX_STARTUP_CHUNK_GZIP_BYTES = + // Explicit mixed-source collection validation: 494870 -> 495136 gzip bytes. + // Add its measured aggregate cost; retain 18 bytes of headroom and all deferred caps. + 266 + 64 + 10 + 57 + @@ -418,6 +421,9 @@ const MAX_STARTUP_CHUNK_GZIP_BYTES = // The same build measures 673359 aggregate startup bytes (+45 over the cap). // Keep 19 bytes of headroom; deferred limits and loading boundaries stay fixed. const MAX_STARTUP_GZIP_BYTES = + // Same feature: 673359 -> 673622 gzip bytes, retaining 19 bytes of headroom. + // No dependency, minifier, startup membership or lazy-boundary change. + 263 + 64 + 13 + 52 + From b1a433898f687d894cfddde38790122ecca34dc3 Mon Sep 17 00:00:00 2001 From: Sourav Das Date: Mon, 2 Nov 2026 05:19:18 +0530 Subject: [PATCH 142/440] Select each catalog workflow original hierarchy by its immutable source --- .github/workflows/ci.yml | 4 +- README.md | 2 +- docs/developer-first-node-ux.md | 6 + scripts/bundle-budget.mjs | 5 + .../hugging-face-source-supplements.test.mjs | 49 +++++++- scripts/modular-hierarchy-v2.test.mjs | 26 +++-- src/studio/catalogOnlyModularBlockV2.ts | 10 +- src/studio/huggingFaceModularConditionals.ts | 68 ++++++++++- src/studio/huggingFaceNodeCatalog.ts | 108 ++++++++++-------- src/studio/modularDiffusersBlockInsertion.ts | 8 +- src/studio/reviewedModularGraphV2.ts | 5 +- 11 files changed, 219 insertions(+), 72 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 30ee256b..e2f0f8c4 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -33,7 +33,7 @@ jobs: with: repository: sdevil7th/MoDiff # Paired generic LTX/Wan stages and retained video template finishing. - ref: ee76a1533bd7a99eca85ca69bbd354d5d17b27c9 + ref: fbb1026be84b0ac6bb477d4f4edbe3387275b1ef path: MoDiff persist-credentials: false - name: Verify the pinned backend supports native setup @@ -88,7 +88,7 @@ jobs: with: repository: sdevil7th/MoDiff # Match the immutable backend revision in the Client quality job. - ref: ee76a1533bd7a99eca85ca69bbd354d5d17b27c9 + ref: fbb1026be84b0ac6bb477d4f4edbe3387275b1ef path: MoDiff persist-credentials: false - name: Verify the pinned backend supports native setup diff --git a/README.md b/README.md index e34fe8cc..a17cea8f 100644 --- a/README.md +++ b/README.md @@ -31,7 +31,7 @@ application source pair is: | MoDiff | `1239d1cecd12a7318eb263ca17c34d4fc0445d14` | | MoDiff-client | `c561a01395044fd71c1918e95fb9e9709d8e7601` | -CI backend contract: `ee76a1533bd7a99eca85ca69bbd354d5d17b27c9`. +CI backend contract: `fbb1026be84b0ac6bb477d4f4edbe3387275b1ef`. Both CI jobs use this exact immutable backend pin. The application table above is the earlier reviewed testing baseline. Current CI also covers the pending diff --git a/docs/developer-first-node-ux.md b/docs/developer-first-node-ux.md index 1edb8646..a6e33b78 100644 --- a/docs/developer-first-node-ux.md +++ b/docs/developer-first-node-ux.md @@ -252,6 +252,12 @@ definition hashes. Source metadata is for authoring and does not activate a runtime, approve custom code or establish model/hardware qualification. The client renders these declarations without model-specific parameter branches. +The unpruned hierarchy API uses collection schema 2 with separate schema 1 source +snapshots. Select the definition's exact revision before showing or compiling its +tree; an unavailable source remains unavailable. Standalone historical schema 1 +snapshots stay readable. Source grouping does not grant edited-tree execution or +change an existing graph's source identity. + Focused source/lifecycle, graph transactions, saved-Block boundaries, registry and search tests precede real browser journeys. The model-free Local/Hub/Git journeys import, insert, connect, Run and refresh using a real backend. The Hub diff --git a/scripts/bundle-budget.mjs b/scripts/bundle-budget.mjs index d07f955b..396dcf76 100644 --- a/scripts/bundle-budget.mjs +++ b/scripts/bundle-budget.mjs @@ -288,6 +288,9 @@ const SOURCE_LICENSES = new URL('../public/THIRD_PARTY_LICENSES.txt', import.met // Scoped video receipts and compatible adapter messaging measure 494870 bytes // in the largest startup asset (+46 over the cap). Add 64 bytes, no dependencies. const MAX_STARTUP_CHUNK_GZIP_BYTES = + // Source-specific hierarchy selection: 495136 -> 495384 gzip bytes. + // Retain 18 bytes of headroom, four startup assets and both deferred caps. + 248 + // Explicit mixed-source collection validation: 494870 -> 495136 gzip bytes. // Add its measured aggregate cost; retain 18 bytes of headroom and all deferred caps. 266 + @@ -421,6 +424,8 @@ const MAX_STARTUP_CHUNK_GZIP_BYTES = // The same build measures 673359 aggregate startup bytes (+45 over the cap). // Keep 19 bytes of headroom; deferred limits and loading boundaries stay fixed. const MAX_STARTUP_GZIP_BYTES = + // Same hierarchy feature: 673622 -> 673867 bytes; retain 19 bytes of headroom. + 245 + // Same feature: 673359 -> 673622 gzip bytes, retaining 19 bytes of headroom. // No dependency, minifier, startup membership or lazy-boundary change. 263 + diff --git a/scripts/hugging-face-source-supplements.test.mjs b/scripts/hugging-face-source-supplements.test.mjs index 4c9a5cc2..97c324b6 100644 --- a/scripts/hugging-face-source-supplements.test.mjs +++ b/scripts/hugging-face-source-supplements.test.mjs @@ -4,7 +4,7 @@ import { execFileSync } from 'node:child_process'; import path from 'node:path'; import { createServer } from 'vite'; -let server, parser, fixture; +let server, parser, conditionals, catalog, fixture; before(async () => { const backend = process.env.MODIFF_BACKEND_DIR || path.resolve('../MoDiff'); const python = @@ -19,14 +19,15 @@ before(async () => { ` import json from modiff.huggingface_node_library import build_huggingface_node_library -print(json.dumps({'mixed': build_huggingface_node_library(), 'legacy': build_huggingface_node_library(include_source_supplements=False)})) +from modiff.modular_conditional_contracts import reviewed_modular_conditional_collection, reviewed_modular_conditional_snapshot +print(json.dumps({'mixed': build_huggingface_node_library(), 'legacy': build_huggingface_node_library(include_source_supplements=False), 'conditionals': reviewed_modular_conditional_collection(), 'legacyConditionals': reviewed_modular_conditional_snapshot()})) `, ], { cwd: backend, encoding: 'utf8', timeout: 60_000, - maxBuffer: 24 * 1024 ** 2, + maxBuffer: 48 * 1024 ** 2, env: { ...process.env, PYTHONDONTWRITEBYTECODE: '1', HF_HUB_OFFLINE: '1' }, }, ), @@ -39,6 +40,8 @@ print(json.dumps({'mixed': build_huggingface_node_library(), 'legacy': build_hug server: { middlewareMode: true, watch: null }, }); parser = await server.ssrLoadModule('/src/studio/huggingFaceNodeLibrary.ts'); + conditionals = await server.ssrLoadModule('/src/studio/huggingFaceModularConditionals.ts'); + catalog = await server.ssrLoadModule('/src/studio/huggingFaceNodeCatalog.ts'); }); after(async () => { await server?.close(); @@ -94,3 +97,43 @@ for (const mutation of [ assert.throws(() => parser.parseHuggingFaceNodeLibrary(value)); }); } + +test('mixed hierarchy selects the exact source while preserving every historical tree', () => { + const mixed = conditionals.parseHuggingFaceModularConditionalSnapshot(fixture.conditionals); + const legacy = conditionals.parseHuggingFaceModularConditionalSnapshot(fixture.legacyConditionals); + const { sourceSupplements, ...base } = mixed; + assert.deepEqual({ ...base, schemaVersion: 1 }, legacy); + const pika = fixture.mixed.sourceSupplements[0]; + const selected = conditionals.modularConditionalSnapshotForSource(mixed, pika.libraryRevision); + assert.equal(selected, sourceSupplements[0]); + assert.deepEqual( + selected.pipelines.map((item) => item.pipelineClass), + ['PikaH3FlexModularPipeline'], + ); + assert.equal(conditionals.modularConditionalSnapshotForSource(mixed, 'f'.repeat(40)), null); + assert.equal(conditionals.modularConditionalSnapshotForSource(legacy, pika.libraryRevision), null); + assert.equal(conditionals.modularConditionalSnapshotForSource(mixed, legacy.diffusersRevision), mixed); + const library = parser.parseHuggingFaceNodeLibrary(fixture.mixed); + const entries = catalog + .buildHuggingFaceCatalogSections(library, mixed) + .find((section) => section.id === 'modular_diffusers_block_nodes').entries; + const contexts = entries + .flatMap((entry) => entry.modularBlockContexts ?? [entry.modularBlockPlacement]) + .filter((context) => context.pipelineClass === selected.pipelines[0].pipelineClass); + assert.equal(contexts.length, 43); + assert.ok(contexts.every((context) => pika.definitionIds.includes(context.definitionId))); +}); + +for (const mutation of ['missing', 'duplicate', 'base-revision', 'nested', 'unknown', 'pipeline-conflict', 'boolean']) { + test(`mixed hierarchy rejects ${mutation} source metadata`, () => { + const value = structuredClone(fixture.conditionals); + if (mutation === 'missing') delete value.sourceSupplements; + else if (mutation === 'duplicate') value.sourceSupplements.push(structuredClone(value.sourceSupplements[0])); + else if (mutation === 'base-revision') value.sourceSupplements[0].diffusersRevision = value.diffusersRevision; + else if (mutation === 'nested') value.sourceSupplements[0] = structuredClone(fixture.conditionals); + else if (mutation === 'unknown') value.sourceSupplements[0].execute = true; + else if (mutation === 'pipeline-conflict') value.sourceSupplements[0].pipelines = structuredClone(value.pipelines); + else value.schemaVersion = true; + assert.throws(() => conditionals.parseHuggingFaceModularConditionalSnapshot(value)); + }); +} diff --git a/scripts/modular-hierarchy-v2.test.mjs b/scripts/modular-hierarchy-v2.test.mjs index cffaaded..1e5be157 100644 --- a/scripts/modular-hierarchy-v2.test.mjs +++ b/scripts/modular-hierarchy-v2.test.mjs @@ -26,6 +26,7 @@ let blockContainerInterfaceModule; let graphLayoutModule; let nodeLibraryModule; let reviewedLibrary; +let reviewedConditionals; let server; function executionContract(graph) { @@ -55,7 +56,7 @@ before(async () => { [ ...(process.platform === 'win32' ? [] : [BACKEND_PYTHON]), '-c', - 'import json; from modiff.huggingface_node_library import build_huggingface_node_library; print(json.dumps(build_huggingface_node_library(), separators=(",", ":")))', + 'import json; from modiff.huggingface_node_library import build_huggingface_node_library; from modiff.modular_conditional_contracts import reviewed_modular_conditional_collection; print(json.dumps({"library": build_huggingface_node_library(), "conditionals": reviewed_modular_conditional_collection()}, separators=(",", ":")))', ], { cwd: BACKEND_ROOT, @@ -84,7 +85,9 @@ before(async () => { blockContainerInterfaceModule = await server.ssrLoadModule('/src/studio/blockContainerInterfaceV1.ts'); graphLayoutModule = await server.ssrLoadModule('/src/workflow/graphLayout.ts'); nodeLibraryModule = await server.ssrLoadModule('/src/studio/huggingFaceNodeLibrary.ts'); - reviewedLibrary = nodeLibraryModule.parseHuggingFaceNodeLibrary(JSON.parse(libraryResult.stdout)); + const published = JSON.parse(libraryResult.stdout); + reviewedLibrary = nodeLibraryModule.parseHuggingFaceNodeLibrary(published.library); + reviewedConditionals = conditionalModule.parseHuggingFaceModularConditionalSnapshot(published.conditionals); }); test('the Modular Diffusers catalog exposes every exact block once and retains all placement contexts', () => { @@ -98,6 +101,7 @@ test('the Modular Diffusers catalog exposes every exact block once and retains a return { id: `diffusers.modular:${workflow.pipelineClass}:${workflow.workflowId}`, provider: 'diffusers', + libraryRevision: conditional.diffusersRevision, pipelineClass: workflow.pipelineClass, blocksClass: blockById.get(pipeline.rootBlockDefinitionId).className, workflowId: workflow.workflowId, @@ -280,13 +284,15 @@ test('all 98 reviewed workflows map every selected step into the exact unpruned assert.ok(structuralPlacements > 400, 'the audit unexpectedly flattened away reviewed containers'); }); -test('all 98 reviewed workflows compile to one V2 graph with progressively projected nested containers', () => { - const conditional = conditionalModule.parseHuggingFaceModularConditionalSnapshot( - JSON.parse(readFileSync(path.join(BACKEND_DATA, 'modular-conditional-contracts.json'), 'utf8')), - ); +test('all 101 reviewed workflows compile to one V2 graph with progressively projected nested containers', () => { + const conditional = reviewedConditionals; const selected = JSON.parse(readFileSync(path.join(BACKEND_DATA, 'modular-block-contracts.json'), 'utf8')); const allBlocks = new Map( - [...conditional.blockDefinitions, ...selected.blockDefinitions].map((block) => [block.id, block]), + [ + ...conditional.blockDefinitions, + ...(conditional.sourceSupplements ?? []).flatMap((source) => source.blockDefinitions), + ...selected.blockDefinitions, + ].map((block) => [block.id, block]), ); const params = { pipeline_components: { type: 'diffusers_modular_pipeline_components', display: 'input' }, @@ -753,10 +759,10 @@ test('all 98 reviewed workflows compile to one V2 graph with progressively proje ordinaryNodeNestedParent: utilityParent ?? null, }); } - assert.equal(definitions.length, 98); - assert.equal(nodeCount, 1860); + assert.equal(definitions.length, 101); + assert.equal(nodeCount, 1918); assert.equal(maximumDepth, 5); - assert.equal(parameterLocalityChecks, 98); + assert.equal(parameterLocalityChecks, 101); assert.ok(subtreeSaveChecks > 1400); if (process.env.MODIFF_HIERARCHY_AUDIT_OUTPUT) { writeFileSync( diff --git a/src/studio/catalogOnlyModularBlockV2.ts b/src/studio/catalogOnlyModularBlockV2.ts index 7819bc40..6b95ccd7 100644 --- a/src/studio/catalogOnlyModularBlockV2.ts +++ b/src/studio/catalogOnlyModularBlockV2.ts @@ -23,7 +23,10 @@ import type { HuggingFaceNodeLibraryBlockPlacement, HuggingFaceNodeLibraryDefinition, } from './huggingFaceNodeLibrary'; -import type { HuggingFaceModularConditionalSnapshot } from './huggingFaceModularConditionals'; +import { + modularConditionalSnapshotForSource, + type HuggingFaceModularConditionalSnapshot, +} from './huggingFaceModularConditionals'; import { createModularDiffusersCatalogNode } from './modularDiffusersBlockInsertion'; import { compactReviewedModularInternalLayoutV2, reviewedWorkflowHierarchyV2 } from './reviewedModularGraphV2'; import { normalizeBlockValueTypeV2 } from './blockValueTypeCompatibilityV2'; @@ -213,8 +216,9 @@ export function createCatalogOnlyModularBlockRootV2( ): CustomNodeType { if (definition.provider !== 'diffusers' || !definition.blocksClass) throw new Error('Only a reviewed Modular Diffusers workflow can use the structural V2 compiler.'); - if (snapshot.diffusersRevision !== definition.libraryRevision) - throw new Error('The unpruned Modular Diffusers hierarchy revision is stale.'); + const sourceSnapshot = modularConditionalSnapshotForSource(snapshot, definition.libraryRevision); + if (!sourceSnapshot) throw new Error('The unpruned Modular Diffusers hierarchy revision is stale.'); + snapshot = sourceSnapshot; const hierarchy = reviewedWorkflowHierarchyV2(snapshot, definition); if (!hierarchy) throw new Error('The exact reviewed Modular Diffusers workflow hierarchy is unavailable.'); const blocks = new Map([...library.blockDefinitions, ...snapshot.blockDefinitions].map((block) => [block.id, block])); diff --git a/src/studio/huggingFaceModularConditionals.ts b/src/studio/huggingFaceModularConditionals.ts index fefd52a4..a3c08f54 100644 --- a/src/studio/huggingFaceModularConditionals.ts +++ b/src/studio/huggingFaceModularConditionals.ts @@ -62,10 +62,11 @@ export type HuggingFaceModularConditionalPipeline = { }; export type HuggingFaceModularConditionalSnapshot = { - schemaVersion: 1; + schemaVersion: 1 | 2; diffusersRevision: string; blockDefinitions: HuggingFaceNodeLibraryBlockDefinition[]; pipelines: HuggingFaceModularConditionalPipeline[]; + sourceSupplements?: HuggingFaceModularConditionalSnapshot[]; }; export type HuggingFaceModularBranchProjection = { @@ -433,10 +434,20 @@ function pipeline( } export function parseHuggingFaceModularConditionalSnapshot(value: unknown): HuggingFaceModularConditionalSnapshot { + return parseConditionalSnapshot(value, true); +} + +function parseConditionalSnapshot(value: unknown, allowSupplements: boolean): HuggingFaceModularConditionalSnapshot { if ( !record(value) || - !exactKeys(value, ['schemaVersion', 'diffusersRevision', 'blockDefinitions', 'pipelines']) || - value.schemaVersion !== 1 || + !exactKeys(value, [ + 'schemaVersion', + 'diffusersRevision', + 'blockDefinitions', + 'pipelines', + ...(value.schemaVersion === 2 ? ['sourceSupplements'] : []), + ]) || + (value.schemaVersion !== 1 && (value.schemaVersion !== 2 || !allowSupplements)) || !Array.isArray(value.blockDefinitions) || !value.blockDefinitions.length || value.blockDefinitions.length > MAX_BLOCK_DEFINITIONS || @@ -457,7 +468,47 @@ export function parseHuggingFaceModularConditionalSnapshot(value: unknown): Hugg if (definitionsById.size !== blockDefinitions.length) invalid(); const pipelines = value.pipelines.map((item) => pipeline(item, definitionsById)); if (new Set(pipelines.map((item) => item.pipelineClass)).size !== pipelines.length) invalid(); - return { schemaVersion: 1, diffusersRevision, blockDefinitions, pipelines }; + const sourceSupplements = + value.schemaVersion === 2 + ? (() => { + if ( + !Array.isArray(value.sourceSupplements) || + !value.sourceSupplements.length || + value.sourceSupplements.length > 16 + ) + invalid(); + return value.sourceSupplements.map((source) => parseConditionalSnapshot(source, false)); + })() + : []; + const revisions = new Set([diffusersRevision]); + const pipelineClasses = new Set(pipelines.map((item) => item.pipelineClass)); + for (const source of sourceSupplements) { + if (revisions.has(source.diffusersRevision)) invalid(); + revisions.add(source.diffusersRevision); + for (const item of source.pipelines) { + if (pipelineClasses.has(item.pipelineClass)) invalid(); + pipelineClasses.add(item.pipelineClass); + } + } + return { + schemaVersion: value.schemaVersion, + diffusersRevision, + blockDefinitions, + pipelines, + ...(value.schemaVersion === 2 ? { sourceSupplements } : {}), + }; +} + +/** Select one exact source; a missing revision never falls back to another tree. */ +export function modularConditionalSnapshotForSource( + snapshot: HuggingFaceModularConditionalSnapshot | null | undefined, + revision: string, +): HuggingFaceModularConditionalSnapshot | null { + if (!snapshot) return null; + const matches = [snapshot, ...(snapshot.sourceSupplements ?? [])].filter( + (item) => item.diffusersRevision === revision, + ); + return matches.length === 1 ? matches[0]! : null; } function hasValue(value: unknown) { @@ -474,6 +525,11 @@ export function projectHuggingFaceModularBranches( pipelineClass: string, effectiveInputs: Readonly>, ): HuggingFaceModularBranchProjection | null { + const sources = [snapshot, ...(snapshot.sourceSupplements ?? [])].filter((source) => + source.pipelines.some((item) => item.pipelineClass === pipelineClass), + ); + if (sources.length !== 1) return null; + snapshot = sources[0]!; const pipeline = snapshot.pipelines.find((item) => item.pipelineClass === pipelineClass); if (!pipeline) return null; const definitions = new Map(snapshot.blockDefinitions.map((item) => [item.id, item])); @@ -552,7 +608,9 @@ export function huggingFaceModularConditionalHierarchy( definition: HuggingFaceNodeLibraryDefinition, additionalInputs: Readonly> = {}, ): HuggingFaceClusterHierarchyNode[] | null { - if (definition.provider !== 'diffusers' || definition.libraryRevision !== snapshot.diffusersRevision) return null; + const source = modularConditionalSnapshotForSource(snapshot, definition.libraryRevision); + if (definition.provider !== 'diffusers' || !source) return null; + snapshot = source; const normalized = validateHuggingFaceClusterInstance(instance, definition); const effectiveInputs = Object.fromEntries( huggingFaceClusterParameterProjection(normalized, definition).map((field) => [field.name, field.value]), diff --git a/src/studio/huggingFaceNodeCatalog.ts b/src/studio/huggingFaceNodeCatalog.ts index d26e7b3b..a1f849a1 100644 --- a/src/studio/huggingFaceNodeCatalog.ts +++ b/src/studio/huggingFaceNodeCatalog.ts @@ -327,60 +327,76 @@ function unprunedBlockEntries( library: HuggingFaceNodeLibrary, snapshot: HuggingFaceModularConditionalSnapshot, ): HuggingFaceCatalogEntry[] { - if (snapshot.diffusersRevision !== library.diffusersRevision) return selectedWorkflowBlockEntries(library); + if ( + snapshot.diffusersRevision !== library.diffusersRevision && + !library.sourceSupplements?.some((source) => source.libraryRevision === snapshot.diffusersRevision) + ) + return selectedWorkflowBlockEntries(library); + return deduplicateBlockEntries( + [snapshot, ...(snapshot.sourceSupplements ?? [])].flatMap((source) => unprunedBlockSourceEntries(library, source)), + library, + ); +} + +function unprunedBlockSourceEntries( + library: HuggingFaceNodeLibrary, + snapshot: HuggingFaceModularConditionalSnapshot, +): HuggingFaceCatalogEntry[] { const blocks = new Map(snapshot.blockDefinitions.map((block) => [block.id, block])); const definitionsByPipeline = new Map(); library.definitions.forEach((definition) => { - if (definition.provider !== 'diffusers' || !definition.blocksClass) return; + if ( + definition.provider !== 'diffusers' || + !definition.blocksClass || + definition.libraryRevision !== snapshot.diffusersRevision + ) + return; definitionsByPipeline.set(definition.pipelineClass, [ ...(definitionsByPipeline.get(definition.pipelineClass) ?? []), definition, ]); }); - return deduplicateBlockEntries( - snapshot.pipelines.flatMap((pipeline) => { - const definitions = (definitionsByPipeline.get(pipeline.pipelineClass) ?? []).sort((left, right) => - left.workflowId.localeCompare(right.workflowId), - ); - const context = definitions[0]; - if (!context) return []; - return pipeline.placements.map((placement): HuggingFaceCatalogEntry => { - const block = blocks.get(placement.blockDefinitionId)!; - const description = block.description || `Reviewed Modular Diffusers block class ${block.className}.`; - return { - id: `modular-placement:${pipeline.pipelineClass}:unpruned:${placement.path.join('/')}`, - kind: 'block', - label: words(block.className), - description, - detail: `${words(pipeline.pipelineClass)} · ${block.kind} · ${placement.legacyPath}`, - searchText: [ - block.className, - block.kind, - placement.legacyPath, - pipeline.pipelineClass, - context.blocksClass, - ...definitions.map(({ id, workflowId }) => `${id} ${workflowId}`), - ] - .join(' ') - .toLowerCase(), - groupPath: [words(pipeline.pipelineClass), modularBlockRole(block.className, block.kind)], - readiness: 'composable', - readinessLabel: 'Composable', - insertable: true, - definitionIds: definitions.map(({ id }) => id), - modularBlockPlacement: { - definitionId: context.id, - pipelineClass: pipeline.pipelineClass, - blocksClass: context.blocksClass, - workflowId: '__unpruned__', - placement, - executionScope: 'unpruned_pipeline', - }, - }; - }); - }), - library, - ); + return snapshot.pipelines.flatMap((pipeline) => { + const definitions = (definitionsByPipeline.get(pipeline.pipelineClass) ?? []).sort((left, right) => + left.workflowId.localeCompare(right.workflowId), + ); + const context = definitions[0]; + if (!context) return []; + return pipeline.placements.map((placement): HuggingFaceCatalogEntry => { + const block = blocks.get(placement.blockDefinitionId)!; + const description = block.description || `Reviewed Modular Diffusers block class ${block.className}.`; + return { + id: `modular-placement:${pipeline.pipelineClass}:unpruned:${placement.path.join('/')}`, + kind: 'block', + label: words(block.className), + description, + detail: `${words(pipeline.pipelineClass)} · ${block.kind} · ${placement.legacyPath}`, + searchText: [ + block.className, + block.kind, + placement.legacyPath, + pipeline.pipelineClass, + context.blocksClass, + ...definitions.map(({ id, workflowId }) => `${id} ${workflowId}`), + ] + .join(' ') + .toLowerCase(), + groupPath: [words(pipeline.pipelineClass), modularBlockRole(block.className, block.kind)], + readiness: 'composable', + readinessLabel: 'Composable', + insertable: true, + definitionIds: definitions.map(({ id }) => id), + modularBlockPlacement: { + definitionId: context.id, + pipelineClass: pipeline.pipelineClass, + blocksClass: context.blocksClass, + workflowId: '__unpruned__', + placement, + executionScope: 'unpruned_pipeline', + }, + }; + }); + }); } function componentEntries(library: HuggingFaceNodeLibrary): HuggingFaceCatalogEntry[] { diff --git a/src/studio/modularDiffusersBlockInsertion.ts b/src/studio/modularDiffusersBlockInsertion.ts index 9a18f53c..9475735a 100644 --- a/src/studio/modularDiffusersBlockInsertion.ts +++ b/src/studio/modularDiffusersBlockInsertion.ts @@ -4,7 +4,10 @@ import type { CustomNodeType } from '../stores/useFlowStore'; import type { NodeData, NodeParams } from '../stores/useNodeStore'; import type { HuggingFaceCatalogEntry } from './huggingFaceNodeCatalog'; import type { HuggingFaceNodeLibrary } from './huggingFaceNodeLibrary'; -import type { HuggingFaceModularConditionalSnapshot } from './huggingFaceModularConditionals'; +import { + modularConditionalSnapshotForSource, + type HuggingFaceModularConditionalSnapshot, +} from './huggingFaceModularConditionals'; import { blockDefinitionContentHashV2, blockGraphHashV2, @@ -62,6 +65,9 @@ export function createModularDiffusersCatalogNode( const context = entry.modularBlockPlacement; if (entry.kind !== 'block' || !context) throw new Error('This catalog row is not a Modular Diffusers block.'); const definition = library.definitions.find(({ id }) => id === context.definitionId); + modularSnapshot = definition + ? modularConditionalSnapshotForSource(modularSnapshot, definition.libraryRevision) + : null; const block = [...library.blockDefinitions, ...(modularSnapshot?.blockDefinitions ?? [])].find( ({ id }) => id === context.placement.blockDefinitionId, ); diff --git a/src/studio/reviewedModularGraphV2.ts b/src/studio/reviewedModularGraphV2.ts index c729a275..6c96790f 100644 --- a/src/studio/reviewedModularGraphV2.ts +++ b/src/studio/reviewedModularGraphV2.ts @@ -12,6 +12,7 @@ import type { import type { RegisteredBlockV2ControlFanOut, RegisteredBlockV2Route } from './registeredBlockV2Routes'; import { reviewedCallerInputOwnersV2 } from './reviewedControlOwnershipV2'; import { + modularConditionalSnapshotForSource, reviewedConditionalParameterPlacement, type HuggingFaceModularConditionalPlacement, type HuggingFaceModularConditionalSnapshot, @@ -144,7 +145,9 @@ export function reviewedWorkflowHierarchyV2( snapshot: HuggingFaceModularConditionalSnapshot | undefined, definition: HuggingFaceNodeLibraryDefinition, ): ReviewedWorkflowHierarchy | null { - if (!snapshot || snapshot.diffusersRevision !== definition.libraryRevision) return null; + const source = modularConditionalSnapshotForSource(snapshot, definition.libraryRevision); + if (!source) return null; + snapshot = source; const pipeline = snapshot.pipelines.find(({ pipelineClass }) => pipelineClass === definition.pipelineClass); const workflow = pipeline?.workflows.find(({ id }) => id === definition.workflowId); if (!pipeline || !workflow) return null; From 26a426b5bee203cb61853f876f0ab31c3a2a6166 Mon Sep 17 00:00:00 2001 From: Sourav Das Date: Mon, 2 Nov 2026 05:35:05 +0530 Subject: [PATCH 143/440] Pair schema-only reference helper compatibility fix --- .github/workflows/ci.yml | 4 ++-- README.md | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index e2f0f8c4..5a513ebb 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -33,7 +33,7 @@ jobs: with: repository: sdevil7th/MoDiff # Paired generic LTX/Wan stages and retained video template finishing. - ref: fbb1026be84b0ac6bb477d4f4edbe3387275b1ef + ref: 3499b26d9ad585815a9ea728f5638080fdfcc986 path: MoDiff persist-credentials: false - name: Verify the pinned backend supports native setup @@ -88,7 +88,7 @@ jobs: with: repository: sdevil7th/MoDiff # Match the immutable backend revision in the Client quality job. - ref: fbb1026be84b0ac6bb477d4f4edbe3387275b1ef + ref: 3499b26d9ad585815a9ea728f5638080fdfcc986 path: MoDiff persist-credentials: false - name: Verify the pinned backend supports native setup diff --git a/README.md b/README.md index a17cea8f..3520047b 100644 --- a/README.md +++ b/README.md @@ -31,7 +31,7 @@ application source pair is: | MoDiff | `1239d1cecd12a7318eb263ca17c34d4fc0445d14` | | MoDiff-client | `c561a01395044fd71c1918e95fb9e9709d8e7601` | -CI backend contract: `fbb1026be84b0ac6bb477d4f4edbe3387275b1ef`. +CI backend contract: `3499b26d9ad585815a9ea728f5638080fdfcc986`. Both CI jobs use this exact immutable backend pin. The application table above is the earlier reviewed testing baseline. Current CI also covers the pending From 3af5ffde7367f6f89bf7ff18fe0c6fcc09067329 Mon Sep 17 00:00:00 2001 From: Sourav Das Date: Mon, 2 Nov 2026 06:38:54 +0530 Subject: [PATCH 144/440] Audit exact retained specifications alongside new video authoring --- .github/workflows/ci.yml | 4 ++-- .../registered-block-v2-route-audit.test.mjs | 21 ++++++++++++++++++- 2 files changed, 22 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 5a513ebb..517312e9 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -33,7 +33,7 @@ jobs: with: repository: sdevil7th/MoDiff # Paired generic LTX/Wan stages and retained video template finishing. - ref: 3499b26d9ad585815a9ea728f5638080fdfcc986 + ref: 2b5f13535d4d9782e6541411dfb7c338fff9838c path: MoDiff persist-credentials: false - name: Verify the pinned backend supports native setup @@ -88,7 +88,7 @@ jobs: with: repository: sdevil7th/MoDiff # Match the immutable backend revision in the Client quality job. - ref: 3499b26d9ad585815a9ea728f5638080fdfcc986 + ref: 2b5f13535d4d9782e6541411dfb7c338fff9838c path: MoDiff persist-credentials: false - name: Verify the pinned backend supports native setup diff --git a/scripts/registered-block-v2-route-audit.test.mjs b/scripts/registered-block-v2-route-audit.test.mjs index df7a32b2..1d9f779c 100644 --- a/scripts/registered-block-v2-route-audit.test.mjs +++ b/scripts/registered-block-v2-route-audit.test.mjs @@ -73,7 +73,9 @@ from modiff.huggingface_cluster_promotions import build_post_promotion_node_libr from modiff.huggingface_node_library import build_huggingface_node_library from modiff.modular_conditional_contracts import reviewed_modular_conditional_snapshot from modiff.server import WebServer -from modiff.studio_execution_specs import _execution_spec_role_params, validate_studio_execution_specs +from modiff.studio_execution_specs import ( + _execution_spec_role_params, studio_execution_spec_for_pair, validate_studio_execution_specs, +) promotion_candidate_admission = os.environ.get("MODIFF_POST_PROMOTION_ADMISSION_ID", "") library = ( @@ -82,6 +84,23 @@ library = ( else build_huggingface_node_library() ) specs = validate_studio_execution_specs(MODULE_MAP) +# Frozen library admissions can retain a saved specification after fresh +# authoring moves to a provider-bound version. Join only their exact declared +# id/hash/profile; this static witness grants no executable/private publication. +spec_ids = {spec["id"] for spec in specs} +for definition in library["definitions"]: + for admission in definition.get("executionAdmissions", ()): + receipt = admission.get("studioExecutionSpec") + if admission.get("status") != "admitted" or not receipt or receipt["id"] in spec_ids: + continue + saved = studio_execution_spec_for_pair( + definition["pipelineClass"], admission["studioMode"], + content_hash=receipt["contentHash"], execution_profile_id=receipt["executionProfileId"], + ) + if saved is None or saved["id"] != receipt["id"] or saved["contentHash"] != receipt["contentHash"]: + raise ValueError("The frozen library admission has no exact retained Studio specification.") + specs.append(saved) + spec_ids.add(saved["id"]) web = WebServer(modules=MODULE_MAP) from modules.DiffusersRuntime.main import build_runtime_capabilities From 9bc8fa756f5a88d7317aafd603330b264eab4c7f Mon Sep 17 00:00:00 2001 From: Sourav Das Date: Mon, 2 Nov 2026 06:42:19 +0530 Subject: [PATCH 145/440] Align documented CI contract with the reviewed video source --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 3520047b..e1a908ba 100644 --- a/README.md +++ b/README.md @@ -31,7 +31,7 @@ application source pair is: | MoDiff | `1239d1cecd12a7318eb263ca17c34d4fc0445d14` | | MoDiff-client | `c561a01395044fd71c1918e95fb9e9709d8e7601` | -CI backend contract: `3499b26d9ad585815a9ea728f5638080fdfcc986`. +CI backend contract: `2b5f13535d4d9782e6541411dfb7c338fff9838c`. Both CI jobs use this exact immutable backend pin. The application table above is the earlier reviewed testing baseline. Current CI also covers the pending From 5d3cacf449ac843e9b17cff3f56f300d348aa755 Mon Sep 17 00:00:00 2001 From: Sourav Das Date: Mon, 2 Nov 2026 08:13:39 +0530 Subject: [PATCH 146/440] Install exact workflow task artifacts through the generic model manager --- .github/workflows/ci.yml | 4 +- README.md | 26 ++-- docs/video-workflows.md | 12 ++ scripts/operation-authoring.test.mjs | 121 ++++++++++++++++++ src/components/WorkflowModelInventoryRow.tsx | 12 +- src/studio/modelUsagePolicies.ts | 13 ++ src/ui/WorkflowModelInventoryFixture.tsx | 44 ++++++- src/workflow/workflowChoices.ts | 41 +++--- src/workflow/workflowModelInventory.ts | 61 +++++++++ .../layout-conditioning.spec.ts | 22 ++++ 10 files changed, 316 insertions(+), 40 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 517312e9..a4aba3f2 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -33,7 +33,7 @@ jobs: with: repository: sdevil7th/MoDiff # Paired generic LTX/Wan stages and retained video template finishing. - ref: 2b5f13535d4d9782e6541411dfb7c338fff9838c + ref: 73b4fe8bdedc002530b4e018dd11b82eefb995e8 path: MoDiff persist-credentials: false - name: Verify the pinned backend supports native setup @@ -88,7 +88,7 @@ jobs: with: repository: sdevil7th/MoDiff # Match the immutable backend revision in the Client quality job. - ref: 2b5f13535d4d9782e6541411dfb7c338fff9838c + ref: 73b4fe8bdedc002530b4e018dd11b82eefb995e8 path: MoDiff persist-credentials: false - name: Verify the pinned backend supports native setup diff --git a/README.md b/README.md index e1a908ba..2b44a289 100644 --- a/README.md +++ b/README.md @@ -31,7 +31,7 @@ application source pair is: | MoDiff | `1239d1cecd12a7318eb263ca17c34d4fc0445d14` | | MoDiff-client | `c561a01395044fd71c1918e95fb9e9709d8e7601` | -CI backend contract: `2b5f13535d4d9782e6541411dfb7c338fff9838c`. +CI backend contract: `73b4fe8bdedc002530b4e018dd11b82eefb995e8`. Both CI jobs use this exact immutable backend pin. The application table above is the earlier reviewed testing baseline. Current CI also covers the pending @@ -46,7 +46,7 @@ branch advances. To reproduce the application source before packaging, check out the two commits above in separate checkouts. This candidate is not an all-platform release. -**Terminal 1 — backend:** clone both repositories into the same parent directory, +**Terminal 1 — backend:** clone both repositories into the same parent directory, then start the backend. These commands work in Linux shells and Windows PowerShell. ```text @@ -67,7 +67,7 @@ with the selected profile: use a separate checkout when testing a different accelerator. See the [full setup guide](https://github.com/sdevil7th/MoDiff/blob/fix-ui-ux-issues/docs/developer-setup.md) for specialized AMD profiles, explicit `uv pip` commands, repair, and upgrades. -**Terminal 2 — frontend:** from the same parent directory, run: +**Terminal 2 — frontend:** from the same parent directory, run: ```text cd MoDiff-client @@ -135,7 +135,7 @@ Use `run.sh` or `run.ps1` unless you are editing frontend source code. - Export a workflow package, an output package, or raw graph JSON where available. - Add backend-defined nodes and custom React fields without creating a separate execution system. -In the editor, **Export → Service package** exposes named scalar inputs and +In the editor, **Export → Service package** exposes named scalar inputs and persisted preview outputs for the same lowered API graph. See the backend's [service guide](https://github.com/sdevil7th/MoDiff/blob/fix-ui-ux-issues/docs/service-prototyping.md) for the CLI, environment manifest and model-free example. @@ -300,7 +300,7 @@ MiniMax's real stages, Audio Output and selected adapter ownership. ## Workspace And Memory -**Memory → Automatic** asks the backend planner for a known local recipe. The planner evaluates the selected model and task, installed artifacts, backend package versions, accelerator resources, system memory, and offload headroom. Auto enables Run only when the selected candidate reports sufficient compatibility evidence. +**Memory → Automatic** asks the backend planner for a known local recipe. The planner evaluates the selected model and task, installed artifacts, backend package versions, accelerator resources, system memory, and offload headroom. Auto enables Run only when the selected candidate reports sufficient compatibility evidence. The backend planner is the compatibility authority. Template cards, Setup, Models, and Run readiness render the same structured assessment and do not @@ -315,7 +315,7 @@ policy; choose Custom explicitly to use your configured settings. The Run menu's **Auto** item separately repeats execution after parameter changes; keep it off when you want a single generation. -**Memory → Custom** exposes artifact, dtype, quantization, offload, device, and lower-level graph controls. Custom memory is useful for development and explicitly experimental paths; it is not a promise that an arbitrary combination will fit the machine or execute successfully. +**Memory → Custom** exposes artifact, dtype, quantization, offload, device, and lower-level graph controls. Custom memory is useful for development and explicitly experimental paths; it is not a promise that an arbitrary combination will fit the machine or execute successfully. Important model-support rules: @@ -384,7 +384,7 @@ browsing them does not install or enable anything. A **Block** is an editable graph composition. Expand it to work on its nodes; **Saved Blocks** are reusable definitions. An upstream Python block can be an ordinary implementation node or a container represented by a graph Block. -Use **Inspect node / Inspect Block → Implementation** to see its source. +Use **Inspect node / Inspect Block → Implementation** to see its source. Use **Configure Block interface** to expose inputs, outputs and editable controls. A nested Block's interface editor also selects its collapsed previews. These edits belong to the workflow instance; **Save block changes** is the explicit action for @@ -400,7 +400,7 @@ For the current task browser, picker behavior and qualification limits, see ## Custom nodes -**Nodes → Add custom node** opens Local, Hugging Face and Git. Intentional Add/Load +**Nodes → Add custom node** opens Local, Hugging Face and Git. Intentional Add/Load validates and enables trusted code in one action; revisions are pinned internally. Drop a structured Python node file on the canvas to import and insert it. Files and packages in backend `custom/` appear automatically without executing; use @@ -411,11 +411,11 @@ declared data nodes and connected supported components; unmanaged custom models require Custom memory. See the backend custom-node guide for contracts and examples. Approved Modular blocks that omit model ports receive a **Models** input when -their Python contract requires components. Connect **Load Models → Pipeline +their Python contract requires components. Connect **Load Models → Pipeline Components** to reuse compatible loaded weights. This does not download missing -block-specific models. See the backend’s [custom-node guide](https://github.com/sdevil7th/MoDiff/blob/fix-ui-ux-issues/docs/custom-nodes.md) +block-specific models. See the backend’s [custom-node guide](https://github.com/sdevil7th/MoDiff/blob/fix-ui-ux-issues/docs/custom-nodes.md) for the VAE reconstruction example and component requirements. -Blocks with official component types also expose **Load Models — [block name]** +Blocks with official component types also expose **Load Models — [block name]** after approval. Select pinned, downloaded sources for its components, use **Custom** memory policy, and connect its Pipeline Components output to the custom block. @@ -606,8 +606,8 @@ inspect its ordinary nodes, required inputs and upstream implementation, then ad it to the canvas. You can also insert nodes individually by click, drag or canvas search and connect their ports. Connect the final result to a Preview, Save or Export node before running. -To change a graph of generic nodes, select its loader and open **Inspect node → -Parameters → Change model / task**. Choose the replacement pipeline/task, then +To change a graph of generic nodes, select its loader and open **Inspect node → +Parameters → Change model / task**. Choose the replacement pipeline/task, then **Preview model / task change**. The same controls are available in the Studio inspector. Review retained settings and connections before applying. The Nodes library also retains its existing **Graph to change** entry point. Compatible prompt and parameter overrides survive; diff --git a/docs/video-workflows.md b/docs/video-workflows.md index 87662070..7305c16f 100644 --- a/docs/video-workflows.md +++ b/docs/video-workflows.md @@ -45,3 +45,15 @@ frame format in output history. The optional `graphTasksVersion: 2` distinguishe the added video-owner vocabulary from older receipts. Existing receipts and saved forms remain unchanged; missing or conflicting observations do not become support or publication qualification. + +The model manager can show backend-declared task artifact selections. Choose the +task before Install or Repair; text/keyframe and reference workflows can need +different transformer partitions from the same repository. Installed status is +checked against that selection's exact revision and files. Downloading one +partition does not mark the others installed. This uses the existing model +download and terms acknowledgement flow, without a second installer. + +First/last-frame starters show their separate image inputs. Reference starters +show their ordered reference inputs and assembler. Switching tasks must preserve +compatible data and archive incompatible controls; it must not insert an empty +reference helper into a keyframe workflow. diff --git a/scripts/operation-authoring.test.mjs b/scripts/operation-authoring.test.mjs index b4804dcb..50729985 100644 --- a/scripts/operation-authoring.test.mjs +++ b/scripts/operation-authoring.test.mjs @@ -6,6 +6,127 @@ import React from 'react'; import { renderToStaticMarkup } from 'react-dom/server'; let server, authoring, requests, drafts, choices; + +test('task-specific artifact inventories preserve finite partitions and install the selected one', async () => { + const inventory = await server.ssrLoadModule('/src/workflow/workflowModelInventory.ts'); + const repo = 'owner/future-video'; + const pin = 'b'.repeat(40); + const model = { + defaultRepo: repo, + modes: ['text_to_video_with_audio', 'reference_to_video_with_audio'], + executionStatus: 'expert_only', + revisionCandidates: [pin], + downloadFiles: [], + artifactSelections: [ + { + modes: ['text_to_video_with_audio'], + repo, + revision: pin, + label: 'Text video', + downloadFiles: ['model_index.json', 'transformer/model.safetensors'], + }, + { + modes: ['reference_to_video_with_audio'], + repo, + revision: pin, + label: 'Reference video', + downloadFiles: ['model_index.json', 'transformer_ref/model.safetensors'], + }, + ], + }; + const descriptor = { + profileId: 'future-video', + repo, + label: 'Future video', + inventory: inventory.parseWorkflowModelInventory(model, repo), + }; + const rows = inventory.workflowModelArtifactRows(descriptor); + assert.deepEqual( + rows.map((row) => row.label), + ['Text video', 'Reference video'], + ); + assert.equal(new Set(rows.map((row) => row.id)).size, 2); + for (const [index, row] of rows.entries()) { + const state = inventory.workflowModelArtifactStatus(row, descriptor, [], [], null); + assert.equal(state.installTarget.revision, pin); + assert.deepEqual(state.installTarget.files, model.artifactSelections[index].downloadFiles); + assert.equal( + state.installTarget.files.includes('transformer/model.safetensors') && + state.installTarget.files.includes('transformer_ref/model.safetensors'), + false, + ); + } + const cache = [ + { + id: repo, + complete: true, + installed: true, + planned_revision: pin, + planned_files: model.artifactSelections[0].downloadFiles, + }, + ]; + assert.equal(inventory.workflowModelArtifactStatus(rows[0], descriptor, cache, [], null).status.runnable, true); + assert.equal(inventory.workflowModelArtifactStatus(rows[1], descriptor, cache, [], null).status.runnable, false); + const taskChoices = choices.workflowChoices( + [ + { + pipelineClass: 'FutureVideoPipeline', + tasks: model.modes.map((task) => ({ task, operationIds: ['load'], executionProfileIds: ['future-video'] })), + }, + ], + [], + cache, + [], + null, + [{ ...descriptor, pipeline: 'FutureVideoPipeline' }], + ); + assert.equal(taskChoices.find((choice) => choice.task === model.modes[0]).cache.runnable, true); + assert.equal(taskChoices.find((choice) => choice.task === model.modes[1]).cache.runnable, false); + for (const mutate of [ + (row) => { + row.revision = 'main'; + }, + (row) => { + row.downloadFiles = ['*']; + }, + (row) => { + row.downloadFiles = ['../outside']; + }, + (row) => { + row.modes = ['undeclared']; + }, + (row) => { + row.repo = 'https://outside/model'; + }, + ]) { + const changed = structuredClone(model); + mutate(changed.artifactSelections[0]); + assert.throws(() => inventory.parseWorkflowModelInventory(changed, repo)); + } + const duplicate = structuredClone(model); + duplicate.artifactSelections[1].modes = ['text_to_video_with_audio']; + assert.throws(() => inventory.parseWorkflowModelInventory(duplicate, repo)); + const component = await server.ssrLoadModule('/src/components/WorkflowModelInventoryRow.tsx'); + const markup = renderToStaticMarkup( + React.createElement(component.default, { + descriptor, + cache: [], + local: [], + diagnostics: null, + installProgress: {}, + activeInstallCount: 0, + hfTokenConfigured: true, + onConfigureHfToken() {}, + async onInstall() {}, + }), + ); + assert.match(markup, /Workflow task for Future video/); + const policies = await server.ssrLoadModule('/src/studio/modelUsagePolicies.ts'); + const policy = policies.usagePolicyForRepository('Pika-Labs/Pika-H3-Flex'); + assert.equal(policy.acknowledgementRequired, true); + assert.equal(policy.reviewedRevision, '3ff166447d5edb1406107ab8370c42000ce173e4'); + assert.match(policy.termsUrl, /\/3ff166447d5edb1406107ab8370c42000ce173e4\/LICENSE$/u); +}); const evaluationImageFixture = JSON.parse( fs.readFileSync(new URL('../tests/fixtures/evaluation-image-authoring.v1.json', import.meta.url), 'utf8'), ); diff --git a/src/components/WorkflowModelInventoryRow.tsx b/src/components/WorkflowModelInventoryRow.tsx index b585f955..87099f41 100644 --- a/src/components/WorkflowModelInventoryRow.tsx +++ b/src/components/WorkflowModelInventoryRow.tsx @@ -30,9 +30,9 @@ export default function WorkflowModelInventoryRow({ onConfigureHfToken: (repo: string) => void; onInstall: (target: StudioAutoResourceInstallTarget) => Promise; }) { - const [format, setFormat] = useState('native'); + const [selectionId, setSelectionId] = useState(''); const rows = workflowModelArtifactRows(descriptor); - const row = rows.find((item) => item.weightFormat === format) ?? rows[0]!; + const row = rows.find((item) => item.id === selectionId) ?? rows[0]!; const { status, installTarget, reason } = workflowModelArtifactStatus(row, descriptor, cache, local, diagnostics); const repo = row.selection?.repo ?? descriptor.repo; const progress = installProgress[repo]; @@ -91,10 +91,10 @@ export default function WorkflowModelInventoryRow({
{rows.length > 1 ? ( ({ value: item.weightFormat, label: item.label }))} - onValueChange={setFormat} + aria-label={`${descriptor.inventory?.taskSelections?.length ? 'Workflow task' : 'Weight format'} for ${descriptor.label}`} + value={row.id} + options={rows.map((item) => ({ value: item.id, label: item.label }))} + onValueChange={setSelectionId} /> ) : null}

diff --git a/src/studio/modelUsagePolicies.ts b/src/studio/modelUsagePolicies.ts index 9f35cf49..6accee64 100644 --- a/src/studio/modelUsagePolicies.ts +++ b/src/studio/modelUsagePolicies.ts @@ -265,6 +265,19 @@ export const MODEL_USAGE_POLICIES: Readonly> = policyVersion: '2026-09-02', reviewedAt: '2026-09-02', }, + 'Pika-Labs/Pika-H3-Flex': { + id: 'minimax-h3-community-license-agreement', + repository: 'Pika-Labs/Pika-H3-Flex', + useScope: 'license_review_required', + acknowledgementRequired: true, + shortSummary: + 'This derivative uses the MiniMax-H3 Community License. Review its territory, attribution, acceptable-use and commercial-authorization requirements before install or Run.', + termsUrl: 'https://huggingface.co/Pika-Labs/Pika-H3-Flex/blob/3ff166447d5edb1406107ab8370c42000ce173e4/LICENSE', + access: 'public', + reviewedRevision: '3ff166447d5edb1406107ab8370c42000ce173e4', + policyVersion: '2026-11-02', + reviewedAt: '2026-11-02', + }, [LTX2_REPO]: { id: 'ltx-2-community-license-agreement', repository: LTX2_REPO, diff --git a/src/ui/WorkflowModelInventoryFixture.tsx b/src/ui/WorkflowModelInventoryFixture.tsx index d32aec4f..dc3dd1bc 100644 --- a/src/ui/WorkflowModelInventoryFixture.tsx +++ b/src/ui/WorkflowModelInventoryFixture.tsx @@ -1,4 +1,5 @@ import { useState } from 'react'; +import { parseWorkflowModelInventory } from '../workflow/workflowModelInventory'; import selections from '../../tests/fixtures/weight-format-selections.v1.json'; import WorkflowModelInventoryRow from '../components/WorkflowModelInventoryRow'; import type { StudioAutoResourceInstallTarget } from '../studio/autoResource'; @@ -63,19 +64,54 @@ const descriptors = parseWorkflowModelDescriptors( export function WorkflowModelInventoryFixture() { const [target, setTarget] = useState(null); + const taskCase = new URLSearchParams(window.location.search).has('task-selections'); + const taskModel = { + defaultRepo: 'owner/future-video', + executionStatus: 'expert_only', + modes: ['text_to_video_with_audio', 'reference_to_video_with_audio'], + revisionCandidates: ['b'.repeat(40)], + downloadFiles: [], + artifactSelections: [ + { + modes: ['text_to_video_with_audio'], + repo: 'owner/future-video', + revision: 'b'.repeat(40), + downloadFiles: ['model_index.json', 'transformer/model.safetensors'], + label: 'Text video', + }, + { + modes: ['reference_to_video_with_audio'], + repo: 'owner/future-video', + revision: 'b'.repeat(40), + downloadFiles: ['model_index.json', 'transformer_ref/model.safetensors'], + label: 'Reference video', + }, + ], + }; + const visible = taskCase + ? [ + { + profileId: 'future-task', + pipeline: 'FutureVideoPipeline', + label: 'Future video', + repo: taskModel.defaultRepo, + inventory: parseWorkflowModelInventory(taskModel, taskModel.defaultRepo), + }, + ] + : descriptors; return (

- {descriptors.map((descriptor) => ( + {visible.map((descriptor) => ( >; + inventory?: WorkflowModelInventory; }>((id) => { const entry = profiles.get(id); const descriptor = descriptors.find((d) => d.profileId === id && d.pipeline === pipeline.pipelineClass); @@ -207,21 +208,31 @@ export function workflowChoices( cache: null, }, ]; - return matches.map(({ model, profileId, label, repo, evaluationOnly, authoringRecipes }) => ({ - id: `${pipeline.pipelineClass}:${task.task}:${profileId}`, - pipeline: pipeline.pipelineClass, - task: task.task, - label, - repo, - profileId, - ...(evaluationOnly ? { evaluationOnly } : {}), - ...(authoringRecipes?.[task.task] ? { authoringRecipeId: authoringRecipes[task.task] } : {}), - support: task, - cache: - model && model.defaultRepo === repo - ? getStudioModelCacheStatus(model, cache, local, diagnostics) - : getRepoCacheStatus(repo, cache, local, diagnostics), - })); + return matches.map(({ model, profileId, label, repo, evaluationOnly, authoringRecipes, inventory }) => { + const selections = inventory?.taskSelections ?? model?.artifactSelections; + const selection = selections?.find((item) => item.modes.some((mode) => mode === task.task)); + return { + id: `${pipeline.pipelineClass}:${task.task}:${profileId}`, + pipeline: pipeline.pipelineClass, + task: task.task, + label, + repo, + profileId, + ...(evaluationOnly ? { evaluationOnly } : {}), + ...(authoringRecipes?.[task.task] ? { authoringRecipeId: authoringRecipes[task.task] } : {}), + support: task, + cache: selection + ? getRepoCacheStatus(selection.repo, cache, local, diagnostics, { + revision: selection.revision, + files: selection.downloadFiles, + }) + : selections?.length + ? null + : model && model.defaultRepo === repo + ? getStudioModelCacheStatus(model, cache, local, diagnostics) + : getRepoCacheStatus(repo, cache, local, diagnostics), + }; + }); }), ) .sort( diff --git a/src/workflow/workflowModelInventory.ts b/src/workflow/workflowModelInventory.ts index 5cce3fae..21b3a5c5 100644 --- a/src/workflow/workflowModelInventory.ts +++ b/src/workflow/workflowModelInventory.ts @@ -15,6 +15,13 @@ export type WorkflowModelInventory = { optionalRuntimeRequirement?: OptionalRuntimeRequirement; nativeSelection?: Omit; weightFormatSelections?: WeightFormatSelection[]; + taskSelections?: { + modes: string[]; + repo: string; + revision: string; + downloadFiles: string[]; + label: string; + }[]; /** Fresh authoring only; installed files and Auto admission remain independent. */ defaultWeightFormat?: 'native' | 'fp8r' | 'nvfp4'; }; @@ -114,6 +121,7 @@ export function parseWorkflowModelInventory( 'downloadFiles', 'weightFormatSelections', 'defaultWeightFormat', + 'artifactSelections', ]; if (!keys.some((key) => value[key] !== undefined)) return undefined; const result: WorkflowModelInventory = {}; @@ -152,6 +160,51 @@ export function parseWorkflowModelInventory( result.nativeSelection = { repo: repository(repo), revision: revisions[0]!, downloadFiles: nativeFiles }; const selections = parseWeightFormatSelections(value.weightFormatSelections); if (selections && value.defaultRepo === repo) result.weightFormatSelections = selections; + if (value.artifactSelections !== undefined) { + if ( + !Array.isArray(value.artifactSelections) || + !value.artifactSelections.length || + value.artifactSelections.length > 32 || + !Array.isArray(value.modes) || + selections + ) + invalid(); + const declaredModes = value.modes as unknown[]; + const seen = new Set(); + const taskSelections = value.artifactSelections.map((raw) => { + const item = ownRecord(raw); + if ( + Object.keys(item).some((key) => !['modes', 'repo', 'revision', 'downloadFiles', 'label'].includes(key)) || + !Array.isArray(item.modes) || + !item.modes.length || + item.modes.length > 64 || + item.modes.some( + (mode) => + typeof mode !== 'string' || + !/^[a-z][a-z0-9_]{0,127}$/u.test(mode) || + !declaredModes.includes(mode) || + seen.has(mode), + ) || + new Set(item.modes).size !== item.modes.length || + (item.label !== undefined && + (typeof item.label !== 'string' || + !item.label.length || + item.label.length > 256 || + hasControlCharacters(item.label))) + ) + invalid(); + const modes = [...item.modes] as string[]; + modes.forEach((mode) => seen.add(mode)); + return { + modes, + repo: repository(item.repo), + revision: revision(item.revision), + downloadFiles: files(item.downloadFiles), + label: (item.label as string | undefined) ?? modes.join(', '), + }; + }); + if (value.defaultRepo === repo) result.taskSelections = taskSelections; + } if (value.defaultWeightFormat !== undefined) { const format = value.defaultWeightFormat; if (format !== 'native' && format !== 'fp8r' && format !== 'nvfp4') invalid(); @@ -177,6 +230,14 @@ export function workflowModelArtifactRows(descriptor: { repo: string; inventory?: WorkflowModelInventory; }) { + const tasks = descriptor.inventory?.taskSelections; + if (tasks?.length) + return tasks.map((selection) => ({ + id: `${descriptor.profileId}:task:${selection.modes.join(',')}`, + weightFormat: 'native' as const, + label: selection.label, + selection, + })); const native = descriptor.inventory?.nativeSelection; return [ { id: `${descriptor.profileId}:native`, weightFormat: 'native' as const, label: 'Native', selection: native }, diff --git a/tests/e2e/shared-controls/layout-conditioning.spec.ts b/tests/e2e/shared-controls/layout-conditioning.spec.ts index c20d4c4c..66037864 100644 --- a/tests/e2e/shared-controls/layout-conditioning.spec.ts +++ b/tests/e2e/shared-controls/layout-conditioning.spec.ts @@ -8,6 +8,28 @@ test.beforeEach(async ({ page }) => { }); test.afterEach(async ({ page }) => expect(pageErrors.get(page)).toEqual([])); +test('generic task inventory selects the reference partition without offering the whole repository', async ({ + page, +}) => { + await page.goto('/control-state-matrix.html?model-inventory&task-selections'); + const fixture = page.getByTestId('inventory-fixture'); + const install = fixture.getByTestId('model-manager-workflow-install-future-task'); + await expect(install).toHaveText('Installed'); + const task = fixture.getByRole('button', { name: 'Workflow task for Future video', exact: true }); + await expect(task).toHaveText('Text video'); + await task.click(); + await page.getByRole('option', { name: 'Reference video', exact: true }).click(); + await expect(install).toHaveText('Repair'); + await install.click(); + const target = JSON.parse(await page.getByTestId('inventory-target').innerText()); + expect(target.repo).toBe('owner/future-video'); + expect(target.revision).toBe('b'.repeat(40)); + expect(target.files).toEqual(['model_index.json', 'transformer_ref/model.safetensors']); + await task.click(); + await page.getByRole('option', { name: 'Text video', exact: true }).click(); + await expect(install).toHaveText('Installed'); +}); + test('generic public inventory defaults to native and submits only the selected immutable format repair', async ({ page, }) => { From c614595a7379f76c710a44e26c5891634d90acbd Mon Sep 17 00:00:00 2001 From: Sourav Das Date: Mon, 2 Nov 2026 08:29:30 +0530 Subject: [PATCH 147/440] Share task artifact parsing and record measured feature size --- scripts/bundle-budget.mjs | 9 ++ src/stores/useNodeStore.ts | 38 +++------ src/workflow/workflowModelInventory.ts | 111 +++++++++++++------------ 3 files changed, 78 insertions(+), 80 deletions(-) diff --git a/scripts/bundle-budget.mjs b/scripts/bundle-budget.mjs index 396dcf76..7abfee7a 100644 --- a/scripts/bundle-budget.mjs +++ b/scripts/bundle-budget.mjs @@ -1,3 +1,9 @@ +// Finite task artifact inventories share parsing across legacy and generic +// model surfaces. Compared with client 9bc8fa7, largest/startup/deferred gzip +// measures 495646/674134/329538 versus 495384/673867/329241. Add only measured +// feature growth 262/267/297, preserving 18/19/218 bytes of prior headroom. +// Four startup and 90 deferred asset names retain membership. Dependencies, +// chunk rules, minification and module identity checks remain unchanged. // Required media loaders in fresh video drafts measure largest/startup/deferred // gzip 494816/673303/329249 versus 494806/673290/329066. Add only measured // startup growth 10/13, retaining 8/11 bytes of headroom. Both deferred caps @@ -288,6 +294,7 @@ const SOURCE_LICENSES = new URL('../public/THIRD_PARTY_LICENSES.txt', import.met // Scoped video receipts and compatible adapter messaging measure 494870 bytes // in the largest startup asset (+46 over the cap). Add 64 bytes, no dependencies. const MAX_STARTUP_CHUNK_GZIP_BYTES = + 262 + // Source-specific hierarchy selection: 495136 -> 495384 gzip bytes. // Retain 18 bytes of headroom, four startup assets and both deferred caps. 248 + @@ -424,6 +431,7 @@ const MAX_STARTUP_CHUNK_GZIP_BYTES = // The same build measures 673359 aggregate startup bytes (+45 over the cap). // Keep 19 bytes of headroom; deferred limits and loading boundaries stay fixed. const MAX_STARTUP_GZIP_BYTES = + 267 + // Same hierarchy feature: 673622 -> 673867 bytes; retain 19 bytes of headroom. 245 + // Same feature: 673359 -> 673622 gzip bytes, retaining 19 bytes of headroom. @@ -641,6 +649,7 @@ const MAX_DEFERRED_CHUNK_GZIP_BYTES = 64 * 1024; // 321033-byte cap, preserving 39 bytes of headroom at 321227. Startup caps, the // 65536-byte deferred chunk cap, dependencies and loading boundaries stay fixed. const MAX_DEFERRED_GZIP_BYTES = + 297 + 1147 + 1043 + 334 + diff --git a/src/stores/useNodeStore.ts b/src/stores/useNodeStore.ts index c315f1ac..1d3c2995 100644 --- a/src/stores/useNodeStore.ts +++ b/src/stores/useNodeStore.ts @@ -1,3 +1,4 @@ +import { parseTaskArtifactSelections } from '../workflow/workflowModelInventory'; import { bindEncodingInputCapabilities, bindEncodingRouteResolver } from '../workflow/encodingOptionalInput'; import { parseExtensionInfo, @@ -795,34 +796,15 @@ function validCapabilityRepository(value: unknown, artifactKind: unknown) { } function parseArtifactSelections(value: unknown, capabilityModes: StudioMode[]) { - if (value === undefined) return undefined; - if (!Array.isArray(value) || value.length < 1 || value.length > 32) invalidModelCapabilities(); - const seenModes = new Set(); - const selections = value.map((raw) => { - if (!isRecord(raw)) invalidModelCapabilities(); - const modes = parseRuntimeModes(raw.modes, isStudioMode); - const files = parseDownloadFiles(raw.downloadFiles); - if ( - modes.length < 1 || - modes.some((mode) => !capabilityModes.includes(mode) || seenModes.has(mode)) || - typeof raw.repo !== 'string' || - !/^[A-Za-z0-9][A-Za-z0-9._-]{0,95}\/[A-Za-z0-9][A-Za-z0-9._-]{0,95}$/.test(raw.repo) || - typeof raw.revision !== 'string' || - !/^[0-9a-f]{40}$/.test(raw.revision) || - !files?.length || - (raw.label !== undefined && (typeof raw.label !== 'string' || raw.label.length < 1 || raw.label.length > 256)) - ) - invalidModelCapabilities(); - modes.forEach((mode) => seenModes.add(mode)); - return { - modes, - repo: raw.repo, - revision: raw.revision, - downloadFiles: files, - ...(raw.label === undefined ? {} : { label: raw.label }), - }; - }); - return selections as NonNullable; + try { + return parseTaskArtifactSelections( + value, + capabilityModes, + parseDownloadFiles, + ) as StudioModelProfile['artifactSelections']; + } catch { + invalidModelCapabilities(); + } } function parseModeDefaults(value: unknown, capabilityModes: StudioMode[]) { diff --git a/src/workflow/workflowModelInventory.ts b/src/workflow/workflowModelInventory.ts index 21b3a5c5..669d0f2d 100644 --- a/src/workflow/workflowModelInventory.ts +++ b/src/workflow/workflowModelInventory.ts @@ -9,19 +9,21 @@ export type WeightFormatSelection = { downloadFiles: string[]; }; +export type TaskArtifactSelection = { + modes: string[]; + repo: string; + revision: string; + downloadFiles: string[]; + label?: string; +}; + export type WorkflowModelInventory = { executionStatus?: 'expert_only' | 'supported' | 'supported_with_model'; qualificationStatus?: string; optionalRuntimeRequirement?: OptionalRuntimeRequirement; nativeSelection?: Omit; weightFormatSelections?: WeightFormatSelection[]; - taskSelections?: { - modes: string[]; - repo: string; - revision: string; - downloadFiles: string[]; - label: string; - }[]; + taskSelections?: TaskArtifactSelection[]; /** Fresh authoring only; installed files and Auto admission remain independent. */ defaultWeightFormat?: 'native' | 'fp8r' | 'nvfp4'; }; @@ -85,6 +87,51 @@ function files(value: unknown, allowEmpty = false): string[] { return [...value] as string[]; } +/** Shared task inventory envelope; callers retain their own file-path policy. */ +export function parseTaskArtifactSelections( + value: unknown, + capabilityModes: readonly unknown[], + parseFiles: (value: unknown) => string[] | undefined = files, +): TaskArtifactSelection[] | undefined { + if (value === undefined) return undefined; + if (!Array.isArray(value) || !value.length || value.length > 32) invalid(); + const seen = new Set(); + return value.map((raw) => { + const item = ownRecord(raw); + if ( + Object.keys(item).some((key) => !['modes', 'repo', 'revision', 'downloadFiles', 'label'].includes(key)) || + !Array.isArray(item.modes) || + !item.modes.length || + item.modes.length > 64 || + item.modes.some( + (mode) => + typeof mode !== 'string' || + !/^[a-z][a-z0-9_]{0,127}$/u.test(mode) || + !capabilityModes.includes(mode) || + seen.has(mode), + ) || + new Set(item.modes).size !== item.modes.length || + (item.label !== undefined && + (typeof item.label !== 'string' || + !item.label.length || + item.label.length > 256 || + hasControlCharacters(item.label))) + ) + invalid(); + const selectedFiles = parseFiles(item.downloadFiles); + if (!selectedFiles?.length) invalid(); + const modes = [...item.modes] as string[]; + modes.forEach((mode) => seen.add(mode)); + return { + modes, + repo: repository(item.repo), + revision: revision(item.revision), + downloadFiles: selectedFiles, + ...(item.label === undefined ? {} : { label: item.label as string }), + }; + }); +} + /** Exact additional inventories; absence preserves the existing native selection. */ export function parseWeightFormatSelections(value: unknown): WeightFormatSelection[] | undefined { if (value === undefined) return undefined; @@ -161,49 +208,9 @@ export function parseWorkflowModelInventory( const selections = parseWeightFormatSelections(value.weightFormatSelections); if (selections && value.defaultRepo === repo) result.weightFormatSelections = selections; if (value.artifactSelections !== undefined) { - if ( - !Array.isArray(value.artifactSelections) || - !value.artifactSelections.length || - value.artifactSelections.length > 32 || - !Array.isArray(value.modes) || - selections - ) - invalid(); - const declaredModes = value.modes as unknown[]; - const seen = new Set(); - const taskSelections = value.artifactSelections.map((raw) => { - const item = ownRecord(raw); - if ( - Object.keys(item).some((key) => !['modes', 'repo', 'revision', 'downloadFiles', 'label'].includes(key)) || - !Array.isArray(item.modes) || - !item.modes.length || - item.modes.length > 64 || - item.modes.some( - (mode) => - typeof mode !== 'string' || - !/^[a-z][a-z0-9_]{0,127}$/u.test(mode) || - !declaredModes.includes(mode) || - seen.has(mode), - ) || - new Set(item.modes).size !== item.modes.length || - (item.label !== undefined && - (typeof item.label !== 'string' || - !item.label.length || - item.label.length > 256 || - hasControlCharacters(item.label))) - ) - invalid(); - const modes = [...item.modes] as string[]; - modes.forEach((mode) => seen.add(mode)); - return { - modes, - repo: repository(item.repo), - revision: revision(item.revision), - downloadFiles: files(item.downloadFiles), - label: (item.label as string | undefined) ?? modes.join(', '), - }; - }); - if (value.defaultRepo === repo) result.taskSelections = taskSelections; + if (!Array.isArray(value.modes) || selections) invalid(); + const tasks = parseTaskArtifactSelections(value.artifactSelections, value.modes); + if (value.defaultRepo === repo) result.taskSelections = tasks; } if (value.defaultWeightFormat !== undefined) { const format = value.defaultWeightFormat; @@ -235,7 +242,7 @@ export function workflowModelArtifactRows(descriptor: { return tasks.map((selection) => ({ id: `${descriptor.profileId}:task:${selection.modes.join(',')}`, weightFormat: 'native' as const, - label: selection.label, + label: selection.label ?? selection.modes.join(', '), selection, })); const native = descriptor.inventory?.nativeSelection; @@ -289,7 +296,7 @@ export function workflowModelArtifactStatus( allowed && !status.runnable && selection ? { repo: selection.repo, - label: `${descriptor.label} · ${row.label}`, + label: `${descriptor.label} · ${row.label}`, revision: selection.revision, files: [...selection.downloadFiles], repair: status.repairRequired, From 306c94b6e15f723f4aaf8d0a013024b4e0ae0053 Mon Sep 17 00:00:00 2001 From: Sourav Das Date: Mon, 2 Nov 2026 09:45:57 +0530 Subject: [PATCH 148/440] Select Auto explicitly in the legacy controlled-history fixture --- .github/workflows/ci.yml | 4 ++-- README.md | 2 +- tests/e2e/studio-mocked/studio-mocked.spec.ts | 8 ++++++++ 3 files changed, 11 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index a4aba3f2..2c33129f 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -33,7 +33,7 @@ jobs: with: repository: sdevil7th/MoDiff # Paired generic LTX/Wan stages and retained video template finishing. - ref: 73b4fe8bdedc002530b4e018dd11b82eefb995e8 + ref: 86efa3295e2f846a0c3a2208e2dfde502aff3efe path: MoDiff persist-credentials: false - name: Verify the pinned backend supports native setup @@ -88,7 +88,7 @@ jobs: with: repository: sdevil7th/MoDiff # Match the immutable backend revision in the Client quality job. - ref: 73b4fe8bdedc002530b4e018dd11b82eefb995e8 + ref: 86efa3295e2f846a0c3a2208e2dfde502aff3efe path: MoDiff persist-credentials: false - name: Verify the pinned backend supports native setup diff --git a/README.md b/README.md index 2b44a289..7804384b 100644 --- a/README.md +++ b/README.md @@ -31,7 +31,7 @@ application source pair is: | MoDiff | `1239d1cecd12a7318eb263ca17c34d4fc0445d14` | | MoDiff-client | `c561a01395044fd71c1918e95fb9e9709d8e7601` | -CI backend contract: `73b4fe8bdedc002530b4e018dd11b82eefb995e8`. +CI backend contract: `86efa3295e2f846a0c3a2208e2dfde502aff3efe`. Both CI jobs use this exact immutable backend pin. The application table above is the earlier reviewed testing baseline. Current CI also covers the pending diff --git a/tests/e2e/studio-mocked/studio-mocked.spec.ts b/tests/e2e/studio-mocked/studio-mocked.spec.ts index 38bd16a1..c3aa4b7a 100644 --- a/tests/e2e/studio-mocked/studio-mocked.spec.ts +++ b/tests/e2e/studio-mocked/studio-mocked.spec.ts @@ -16313,6 +16313,14 @@ test('controlled LoRA labels base-only Auto history until its exact artifacts ar await page.evaluate(() => window.__MODIFF_E2E__!.applyLegacyTemplateForTest('flux_lora_cinematic_octane_3d')); await page.evaluate(() => window.__MODIFF_E2E__!.openWorkspacePanelForTest('studio')); + // Recipe v3 deliberately uses Expert group offload. Its readiness must not + // imply Auto-history coverage; explicitly select Auto for the notice below. + expect(await page.evaluate(() => window.__MODIFF_E2E__!.getState().studio.form.resourceMode)).toBe('expert'); + await expect(page.getByTestId('studio-run-readiness')).not.toContainText('Base recipe ran here'); + await page.evaluate(() => + window.__MODIFF_E2E__!.applyLegacyTemplateForTest('flux_lora_cinematic_octane_3d', { resourceMode: 'auto' }), + ); + await expect(page.getByTestId('studio-run-readiness')).toContainText('Base recipe ran here'); await expect(page.getByTestId('studio-run-readiness')).toContainText('1 warning'); await page.evaluate(() => window.__MODIFF_E2E__!.openWorkspacePanelForTest('compatibility')); From 3b734e88d9bd22dd87976b711686bbaa44377c6e Mon Sep 17 00:00:00 2001 From: Sourav Das Date: Mon, 2 Nov 2026 09:54:42 +0530 Subject: [PATCH 149/440] Honor the configured backend path in fixture assertions --- scripts/template-gallery-runner.test.mjs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/scripts/template-gallery-runner.test.mjs b/scripts/template-gallery-runner.test.mjs index e828574d..36fb17ed 100644 --- a/scripts/template-gallery-runner.test.mjs +++ b/scripts/template-gallery-runner.test.mjs @@ -315,9 +315,7 @@ test('campaign refuses generic two-second audio fixtures for showcase workflows' /reviewed workflow-specific sourceAudio fixture/, ); const reviewedFixture = resolve( - ROOT, - '..', - 'MoDiff', + process.env.MODIFF_BACKEND_DIR || resolve(ROOT, '..', 'MoDiff'), 'web', 'template-gallery', 'ace_step_text_to_audio.current.wav', From f557b9f958322e6a9ffad52de3e064def0a1b29e Mon Sep 17 00:00:00 2001 From: Sourav Das Date: Mon, 2 Nov 2026 11:19:07 +0530 Subject: [PATCH 150/440] Route selected video templates through the ordinary stage builder --- .github/workflows/ci.yml | 4 +- README.md | 2 +- docs/developer-first-node-ux.md | 6 ++ scripts/bundle-budget.mjs | 7 ++ scripts/video-stage-groups.test.mjs | 72 +++++++++++++++++++ src/studio/templateOperationSelections.ts | 9 ++- src/studio/templateWorkflow.ts | 9 +-- src/studio/useStudioRunActions.ts | 3 +- src/utils/e2eHooks.ts | 3 +- tests/e2e/studio-mocked/studio-mocked.spec.ts | 72 ++++++++++++++++++- 10 files changed, 176 insertions(+), 11 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 2c33129f..3acd3c96 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -33,7 +33,7 @@ jobs: with: repository: sdevil7th/MoDiff # Paired generic LTX/Wan stages and retained video template finishing. - ref: 86efa3295e2f846a0c3a2208e2dfde502aff3efe + ref: 4329a759e81abf4a01d6882bd108537c9e555db4 path: MoDiff persist-credentials: false - name: Verify the pinned backend supports native setup @@ -88,7 +88,7 @@ jobs: with: repository: sdevil7th/MoDiff # Match the immutable backend revision in the Client quality job. - ref: 86efa3295e2f846a0c3a2208e2dfde502aff3efe + ref: 4329a759e81abf4a01d6882bd108537c9e555db4 path: MoDiff persist-credentials: false - name: Verify the pinned backend supports native setup diff --git a/README.md b/README.md index 7804384b..8f56750d 100644 --- a/README.md +++ b/README.md @@ -31,7 +31,7 @@ application source pair is: | MoDiff | `1239d1cecd12a7318eb263ca17c34d4fc0445d14` | | MoDiff-client | `c561a01395044fd71c1918e95fb9e9709d8e7601` | -CI backend contract: `86efa3295e2f846a0c3a2208e2dfde502aff3efe`. +CI backend contract: `4329a759e81abf4a01d6882bd108537c9e555db4`. Both CI jobs use this exact immutable backend pin. The application table above is the earlier reviewed testing baseline. Current CI also covers the pending diff --git a/docs/developer-first-node-ux.md b/docs/developer-first-node-ux.md index a6e33b78..b304660f 100644 --- a/docs/developer-first-node-ux.md +++ b/docs/developer-first-node-ux.md @@ -145,6 +145,12 @@ requires explicit structural editing/ungrouping before automatic task adaptation Audio supports the applicable Model Setup and Audio Output groups described below. Selected LTX/Wan video routes use the shared stage presentation too; other video routes retain their existing native Modular or whole-pipeline nodes. +Fresh image, audio and video template cards with an explicit execution recipe +use that same backend-owned starter through the normal creation path. Selected +video templates retain their creative settings, source nodes, upscaler and +soundtrack branches. Their ordinary stage graph is checkpointed and restored +without a managed receipt for a different topology. This fresh-template routing +does not convert previously saved whole-pipeline workflows. Add media reads declared image, audio and video input roles for the selected model. It can add an ordinary media loader or use a compatible existing source. The attachment stays in the same graph and is one Undo/Redo transaction; diff --git a/scripts/bundle-budget.mjs b/scripts/bundle-budget.mjs index 7abfee7a..a709a7a6 100644 --- a/scripts/bundle-budget.mjs +++ b/scripts/bundle-budget.mjs @@ -1,3 +1,8 @@ +// Shared normal template routing adds video to the exact selected creator. +// Largest/startup/deferred gzip measure 495666/674155/329445 against the accepted +// 495646/674134/329538. Add measured startup growth of 20/21 bytes, retaining 18/19 bytes +// of headroom and both deferred caps. Four startup and 90 deferred assets retain +// membership; dependencies, chunk rules, minification and identity checks stay fixed. // Finite task artifact inventories share parsing across legacy and generic // model surfaces. Compared with client 9bc8fa7, largest/startup/deferred gzip // measures 495646/674134/329538 versus 495384/673867/329241. Add only measured @@ -294,6 +299,7 @@ const SOURCE_LICENSES = new URL('../public/THIRD_PARTY_LICENSES.txt', import.met // Scoped video receipts and compatible adapter messaging measure 494870 bytes // in the largest startup asset (+46 over the cap). Add 64 bytes, no dependencies. const MAX_STARTUP_CHUNK_GZIP_BYTES = + 20 + 262 + // Source-specific hierarchy selection: 495136 -> 495384 gzip bytes. // Retain 18 bytes of headroom, four startup assets and both deferred caps. @@ -431,6 +437,7 @@ const MAX_STARTUP_CHUNK_GZIP_BYTES = // The same build measures 673359 aggregate startup bytes (+45 over the cap). // Keep 19 bytes of headroom; deferred limits and loading boundaries stay fixed. const MAX_STARTUP_GZIP_BYTES = + 21 + 267 + // Same hierarchy feature: 673622 -> 673867 bytes; retain 19 bytes of headroom. 245 + diff --git a/scripts/video-stage-groups.test.mjs b/scripts/video-stage-groups.test.mjs index 75dbc9bb..f5922b5a 100644 --- a/scripts/video-stage-groups.test.mjs +++ b/scripts/video-stage-groups.test.mjs @@ -576,3 +576,75 @@ test('video task media discovery includes real image roles but excludes componen assert.deepEqual(operations, original); assert.deepEqual(attachment.mediaAttachmentChoices(operations, 'foreign'), []); }); + +test('ordinary video template creation reaches real stages and checkpoints their exact saved graph', async (t) => { + const lifecycle = await server.ssrLoadModule('/src/studio/templateWorkflow.ts'); + const studioModule = await server.ssrLoadModule('/src/stores/useStudioStore.ts'); + const studio = studioModule.useStudioStore; + const flow = exporter.useFlowStore; + const registry = nodes.useNodesStore; + const parsed = nodes.parseStudioModelCapabilities(fixture.publicPayload); + const operations = contracts.parseOperationContracts( + fixture.publicPayload.operationContracts, + fixture.publicPayload.operationContractSchemaVersion, + ); + for (const row of fixture.recipes.filter((item) => item.spec)) + await t.test(row.id, async () => { + const previous = [studio.getState(), flow.getState(), registry.getState()]; + const originalFetch = globalThis.fetch; + try { + const template = templates.find((item) => item.id === row.id); + studio.setState({ workflowCanvasHydrated: true }); + const tabId = studio.getState().createWorkflowTab(template.label, undefined, 'template', template.id); + studio.getState().applyTemplate(template); + studio.getState().updateForm({ + device: 'cpu:0', + offloadMode: 'none', + autoOffload: false, + referenceImages: ['images/reference.webp'], + sourceVideo: 'videos/source.mp4', + }); + registry.setState({ + nodesRegistry: fixture.registry, + operationContracts: operations, + studioModelCapabilities: parsed.capabilities, + studioExecutionSpecInvalid: false, + }); + globalThis.fetch = async () => Response.json(row.starter); + const form = structuredClone(studio.getState().form); + await lifecycle.createTemplateOperationWorkflow(template, form, studioModule.captureWorkflowOperationContext()); + const graph = flow.getState().toObject(); + const flat = groups.unpackVisualOperationGroups(graph).graph; + for (const action of ['LoadPipeline', 'EncodeInputs', 'Denoise', 'DecodeLatents']) + assert.equal( + flat.nodes.filter((node) => node.data.module === 'modules.DiffusersVideo' && node.data.action === action) + .length, + 1, + ); + assert.ok( + !flat.nodes.some((node) => node.data.module === 'modules.DiffusersVideo' && node.data.action === 'Generate'), + ); + const encoder = flat.nodes.find((node) => node.data.action === 'EncodeInputs'); + assert.equal(encoder.data.params.prompt.value, form.prompt); + assert.equal(studio.getState().graphBinding, null); + const saved = structuredClone(studio.getState().workflowTabs.find((tab) => tab.id === tabId)); + assert.equal(saved.source, 'template'); + assert.equal(saved.snapshot.activeTemplateId, template.id); + assert.equal(saved.snapshot.studioGraphBinding, null); + const before = flow.getState().exportGraph('saved-video-template', undefined, { randomizeSeeds: false }); + studio.setState({ workflowTabs: [], activeWorkflowTabId: tabId }); + studio.getState().mergeBackendWorkflow({ ...saved, revision: 1 }); + studio.getState().hydrateActiveWorkflowCanvas(); + assert.deepEqual( + flow.getState().exportGraph('saved-video-template', undefined, { randomizeSeeds: false }), + before, + ); + assert.equal(studio.getState().form.prompt, form.prompt); + } finally { + globalThis.fetch = originalFetch; + studio.setState(previous[0], true); + flow.setState(previous[1], true); + registry.setState(previous[2], true); + } + }); +}); diff --git a/src/studio/templateOperationSelections.ts b/src/studio/templateOperationSelections.ts index 6a18d8d1..ba55df6d 100644 --- a/src/studio/templateOperationSelections.ts +++ b/src/studio/templateOperationSelections.ts @@ -1,4 +1,11 @@ -import type { StudioMode, StudioTemplateExecutionSelection, StudioTemplateId } from './types'; +import type { StudioMode, StudioTemplate, StudioTemplateExecutionSelection, StudioTemplateId } from './types'; + +/** Route fresh media templates through their exact backend-owned recipe. */ +export function hasTemplateOperationRecipe(template: Pick) { + return Boolean( + template.executionSelection && ['image', 'audio', 'video'].includes(template.example?.mediaType ?? ''), + ); +} const STANDARD_Z_TEMPLATE_IDS: StudioTemplateId[] = [ 'z_image_quick_concept', diff --git a/src/studio/templateWorkflow.ts b/src/studio/templateWorkflow.ts index b46d020e..cd24dba6 100644 --- a/src/studio/templateWorkflow.ts +++ b/src/studio/templateWorkflow.ts @@ -1,4 +1,5 @@ import { resolveTemplateModelSelection } from './templateModelSelection'; +import { hasTemplateOperationRecipe } from './templateOperationSelections'; import { useSettingsStore } from '../stores/useSettingsStore'; import { useFlowStore } from '../stores/useFlowStore'; import { useNodesStore } from '../stores/useNodeStore'; @@ -173,10 +174,10 @@ export async function createTemplateOperationWorkflow( const selection = template.executionSelection; if ( !selection || - !['image', 'audio'].includes(template.example?.mediaType ?? '') || - template.outputKinds?.includes('video') + !hasTemplateOperationRecipe(template) || + (template.example?.mediaType !== 'video' && template.outputKinds?.includes('video')) ) - throw new Error('Select an image or audio template operation recipe.'); + throw new Error('Select a media template with a declared execution recipe.'); // Preserve the pre-loading graph so edits during lazy module loading remain // protected by the ordinary transaction's exact signature check. const previousGraph = structuredClone(useFlowStore.getState().toObject()); @@ -288,7 +289,7 @@ export async function createWorkflowFromTemplate(template: StudioTemplate): Prom after = useStudioStore.getState().form; await waitForTemplateCanvasPaint(); assertWorkflowOperationContext(context); - if (template.executionSelection && ['image', 'audio'].includes(template.example?.mediaType ?? '')) { + if (hasTemplateOperationRecipe(template)) { const result = await createTemplateOperationWorkflow(template, after, context); warnings = result.warnings; graphCreated = true; diff --git a/src/studio/useStudioRunActions.ts b/src/studio/useStudioRunActions.ts index 75fda8f1..68412aaa 100644 --- a/src/studio/useStudioRunActions.ts +++ b/src/studio/useStudioRunActions.ts @@ -31,6 +31,7 @@ import { coordinateGraphRun } from './runCoordinator'; import { prepareHuggingFaceClustersForRun } from './huggingFaceClusterPreparation'; import { materializeTemplateDefaultInputs } from './templateInputs'; import { STUDIO_TEMPLATES } from './templates'; +import { hasTemplateOperationRecipe } from './templateOperationSelections'; import { exactStudioExecutionProfileForForm, exactStudioExecutionSpecForForm } from './executionSpecs'; import { assertFormWeightFormatSelection, hasNonNativeStudioWeightFormat } from './weightFormat'; import { DEFAULT_STUDIO_FORM, STUDIO_MODEL_PROFILES } from './modelProfiles'; @@ -362,7 +363,7 @@ export function useStudioRunActions({ async (templateId: string) => { const template = STUDIO_TEMPLATES.find((item) => item.id === templateId); if (!template) return; - if (template.executionSelection && template.example?.mediaType === 'image') { + if (hasTemplateOperationRecipe(template)) { const context = captureWorkflowOperationContext(); setIsWorking(true); try { diff --git a/src/utils/e2eHooks.ts b/src/utils/e2eHooks.ts index eec6b3fd..4f4b8251 100644 --- a/src/utils/e2eHooks.ts +++ b/src/utils/e2eHooks.ts @@ -29,6 +29,7 @@ import { prepareExecutionScope } from '../workflow/prepareExecutionScope'; import { coordinateGraphRun } from '../studio/runCoordinator'; import { applyHuggingFaceClusterRuntimeHints } from '../studio/huggingFaceClusterRuntime'; import { PLANNING_STUDIO_TEMPLATES, STUDIO_TEMPLATES } from '../studio/templates'; +import { hasTemplateOperationRecipe } from '../studio/templateOperationSelections'; import { getFormDefaultsForMode } from '../studio/modelProfiles'; import type { StudioTaskTemplateSkeleton } from '../studio/taskTemplateContracts'; import { materializeTemplateDefaultInputs } from '../studio/templateInputs'; @@ -255,7 +256,7 @@ async function applyTemplate( }); try { const context = captureWorkflowOperationContext(); - if (template.executionSelection && ['image', 'audio'].includes(template.example?.mediaType ?? '')) { + if (hasTemplateOperationRecipe(template)) { normalizeTemplateRuntimeDevice(context); await createTemplateOperationWorkflow(template, useStudioStore.getState().form, context); await waitForGraphNodeMeasurements(() => useFlowStore.getState().nodes, 500); diff --git a/tests/e2e/studio-mocked/studio-mocked.spec.ts b/tests/e2e/studio-mocked/studio-mocked.spec.ts index c3aa4b7a..138b43f8 100644 --- a/tests/e2e/studio-mocked/studio-mocked.spec.ts +++ b/tests/e2e/studio-mocked/studio-mocked.spec.ts @@ -11,6 +11,7 @@ import { attachResizeObserverDiagnostics, installResizeObserverDiagnostics } fro import { IMAGE_TEMPLATE_EXECUTION_SELECTIONS, AUDIO_TEMPLATE_EXECUTION_SELECTIONS, + VIDEO_TEMPLATE_EXECUTION_SELECTIONS, } from '../../../src/studio/templateOperationSelections'; import { STUDIO_TEMPLATES } from '../../../src/studio/templates'; import { hashString, stableStringify } from '../../../src/studio/stableHash'; @@ -24,6 +25,73 @@ import type { OperationContract } from '../../../src/workflow/operationContracts import type { PipelineSupport } from '../../../src/workflow/operationCatalog'; import type { ApiGraphExport } from '../../../src/types/api'; +test('normal video template card creates real stages and preserves them after reload', async ({ page }) => { + const templateId = 'ltx_video_text_to_video'; + const selection = VIDEO_TEMPLATE_EXECUTION_SELECTIONS[templateId]!; + const fixture = await generateTemplateSchemas([{ id: templateId, selection }]); + const starter = fixture.recipes[0]!.starter; + await ensureFrontend(); + await installMockRoutes(page); + await page.route('**/nodes**', (route) => + route.fulfill({ + json: { instance: 'mock', nodes: { ...mockRegistry, ...fixture.registry } }, + }), + ); + await page.route('**/model_capabilities**', (route) => route.fulfill({ json: fixture.publicPayload })); + await page.route('**/runtime/status**', (route) => + route.fulfill({ + json: { + ready: true, + config: { hf_token_configured: false }, + packages: { torch: { available: true, cuda_available: false, cuda_device_count: 0, cuda_devices: [] } }, + }, + }), + ); + const selections: unknown[] = []; + await page.route('**/operations/starter', (route) => { + selections.push(route.request().postDataJSON()); + return route.fulfill({ json: starter }); + }); + await page.goto(FRONTEND_URL, { waitUntil: 'domcontentloaded' }); + await page.waitForFunction(() => Boolean(window.__MODIFF_E2E__)); + await openTemplateBrowser(page); + await page.getByTestId('template-browser-search').fill('Rainy Rail Approach'); + await page.getByTestId('template-browser-create-card-ltx_video_text_to_video').click(); + const readGraph = () => + page.evaluate(async () => { + const { useFlowStore } = await import('/src/stores/useFlowStore.ts'); + return useFlowStore + .getState() + .exportGraph('video-template-card-regression', undefined, { randomizeSeeds: false }); + }); + await expect + .poll(async () => { + const graph = await readGraph(); + return Object.values(graph.nodes) + .filter((node) => node.module === 'modules.DiffusersVideo') + .map((node) => node.action) + .sort(); + }) + .toEqual(['DecodeLatents', 'Denoise', 'EncodeInputs', 'LoadPipeline']); + expect(selections).toContainEqual( + expect.objectContaining({ + pipelineClass: selection.pipelineClass, + task: selection.task, + executionProfileId: selection.executionProfileId, + authoringRecipeId: selection.authoringRecipeId, + }), + ); + const before = await readGraph(); + const template = STUDIO_TEMPLATES.find((item) => item.id === templateId)!; + const encoder = Object.values(before.nodes).find((node) => node.action === 'EncodeInputs')!; + expect(encoder.params.prompt!.value).toBe(template.prompt); + expect(Object.values(before.nodes).some((node) => node.module === 'modules.Spandrel')).toBe(true); + await page.reload({ waitUntil: 'domcontentloaded' }); + await page.waitForFunction(() => Boolean(window.__MODIFF_E2E__)); + await expect.poll(readGraph).toEqual(before); + expect(await page.evaluate(() => window.__MODIFF_E2E__!.getState().studio.graphBinding)).toBeNull(); +}); + test('latest output download uses the backend captured model name', async ({ page }) => { await ensureFrontend(); await installMockRoutes(page); @@ -16363,7 +16431,9 @@ test('controlled workflow transactions are idempotent across supported reverse c ); await assertContracts(['upscale.video.v1', 'video-sequence.v1']); - await page.evaluate(() => window.__MODIFF_E2E__!.applyTemplate('wan_22_ti2v_5b_seed_vault')); + // This case exercises retained managed-workflow block replacement. Fresh + // selected video templates are ordinary operation graphs with their own stages. + await page.evaluate(() => window.__MODIFF_E2E__!.applyLegacyTemplateForTest('wan_22_ti2v_5b_seed_vault')); await page.evaluate(() => window.__MODIFF_E2E__!.applyControlledWorkflowBlockForTest('upscaler', 'wan_vace_cinematic_text_to_video'), ); From 0f702adf1dcffb803494a9dbf5604e96ad7b4000 Mon Sep 17 00:00:00 2001 From: Sourav Das Date: Mon, 2 Nov 2026 12:39:45 +0530 Subject: [PATCH 151/440] Keep Pika model selection through workflow restore --- docs/developer-first-node-ux.md | 6 ++++ scripts/video-stage-groups.test.mjs | 20 +++++++++++ scripts/workflow-document-origin.test.mjs | 44 +++++++++++++++++++++++ src/studio/modelProfiles.ts | 33 +++++++++++++++++ src/studio/types.ts | 1 + 5 files changed, 104 insertions(+) diff --git a/docs/developer-first-node-ux.md b/docs/developer-first-node-ux.md index b304660f..e114279c 100644 --- a/docs/developer-first-node-ux.md +++ b/docs/developer-first-node-ux.md @@ -61,6 +61,12 @@ instead of silently discarding authored settings. | Transcription / processing | Connect existing typed audio sources to declared consumers; no automatic model-family substitution | | Video | Shared stages for selected LTX/Wan routes; existing native video stages use the same grouping | +Pika H3 Flex has a conservative presentation profile alongside MiniMax H3, so +capability parsing and saved-form restoration retain its exact model identity +for text, keyframe and reference tasks. The backend still owns its provider, +task-selected weights, required adapter and fixed sampler. This presentation +registration grants no Auto, template, Gallery or live-output qualification. + This audit does not claim fewer backend classes: existing generic modular stages already share their execution implementations, and the remaining Generate/Edit adapters have different required inputs/preflight. The reduction is in duplicate diff --git a/scripts/video-stage-groups.test.mjs b/scripts/video-stage-groups.test.mjs index f5922b5a..6dc52714 100644 --- a/scripts/video-stage-groups.test.mjs +++ b/scripts/video-stage-groups.test.mjs @@ -29,6 +29,9 @@ before(async () => { ['MiniMaxH3ModularPipeline', 'text_to_video_with_audio'], ['MiniMaxH3ModularPipeline', 'first_last_frame_to_video_with_audio'], ['MiniMaxH3ModularPipeline', 'reference_to_video_with_audio'], + ['PikaH3FlexModularPipeline', 'text_to_video_with_audio'], + ['PikaH3FlexModularPipeline', 'first_last_frame_to_video_with_audio'], + ['PikaH3FlexModularPipeline', 'reference_to_video_with_audio'], ].map(([pipelineClass, task]) => ({ id: `${pipelineClass}:${task}`, selection: { pipelineClass, task } })); for (const [id, modelType, pipelineClass, profile, task] of [ ['ltx_video_text_to_video', 'LTXVideoPipeline', 'LTXConditionPipeline', 'ltx-video:direct', 'text_to_video'], @@ -94,6 +97,23 @@ before(async () => { }); after(async () => server?.close()); +test('joint video/audio presentation retains both declared families without granting qualification', () => { + const parsed = nodes.parseStudioModelCapabilities(fixture.publicPayload); + for (const model of ['MiniMaxH3ModularPipeline', 'PikaH3FlexModularPipeline']) { + const capability = parsed.capabilities.find((item) => item.modelType === model); + assert.ok(capability, `${model} must survive presentation parsing`); + assert.deepEqual(capability.modes, [ + 'text_to_video_with_audio', + 'first_last_frame_to_video_with_audio', + 'reference_to_video_with_audio', + ]); + assert.equal(capability.autoEligible, false); + assert.equal(capability.templateEligible, false); + assert.equal(capability.galleryEligible, false); + assert.equal(capability.liveProof, false); + } +}); + function graphFor(row) { const graph = authoring.createOperationStarter(structuredClone(row.starter), { x: 0, y: 0 }); for (const node of graph.nodes) diff --git a/scripts/workflow-document-origin.test.mjs b/scripts/workflow-document-origin.test.mjs index dfc27e3d..2835f151 100644 --- a/scripts/workflow-document-origin.test.mjs +++ b/scripts/workflow-document-origin.test.mjs @@ -60,6 +60,50 @@ function record(t) { return { ...t, revision: 1 }; } +for (const mode of [ + 'text_to_video_with_audio', + 'first_last_frame_to_video_with_audio', + 'reference_to_video_with_audio', +]) + test(`Pika saved forms retain model and authored values through ${mode} restore`, () => { + const form = { + ...defaultForm, + modelType: 'PikaH3FlexModularPipeline', + mode, + prompt: 'Keep this authored reference and sound description.', + seed: 713, + width: 832, + height: 480, + numFrames: 124, + fps: 24, + resourceMode: 'expert', + autoOffload: true, + offloadMode: 'group_disk', + }; + const id = studio.getState().createWorkflowTab( + 'Saved Pika candidate', + { + nodes: [], + edges: [], + viewport: { x: 0, y: 0, zoom: 1 }, + studioForm: form, + selectedMode: mode, + activeTemplateId: null, + studioGraphBinding: null, + }, + 'manual', + undefined, + 'restore', + ); + const saved = structuredClone(tab(id)); + assert.equal(saved.snapshot.studioForm.modelType, form.modelType); + studio.setState({ workflowTabs: [], activeWorkflowTabId: id }); + studio.getState().mergeBackendWorkflow(record(saved)); + studio.getState().hydrateActiveWorkflowCanvas(); + for (const field of ['modelType', 'mode', 'prompt', 'seed', 'width', 'height', 'numFrames', 'fps', 'offloadMode']) + assert.deepEqual(studio.getState().form[field], form[field], field); + }); + function ordinaryImageSnapshot(module, action, resourceMode) { const node = (id, module, action, params) => ({ id, diff --git a/src/studio/modelProfiles.ts b/src/studio/modelProfiles.ts index a840902e..8d6a0f79 100644 --- a/src/studio/modelProfiles.ts +++ b/src/studio/modelProfiles.ts @@ -333,6 +333,7 @@ const STUDIO_MODEL_LABEL_VALUES = [ 'Cosmos3-Super 4-Step (Modular Cluster)', 'Cosmos3-Nano (Modular Cluster)', 'MiniMax H3 (Modular Cluster)', + 'Pika H3 Flex (Modular Cluster)', 'Wan Animate 2 (Modular Cluster)', 'Wan Animate 2 Distilled (Modular Cluster)', 'Z-Image Turbo', @@ -575,6 +576,8 @@ export const COSMOS3_GUARDRAIL_REPO = 'nvidia/Cosmos-Guardrail1'; export const COSMOS3_GUARDRAIL_REVISION = 'd6d4bfa899a71454a700907664f3e88f503950cf'; export const MINIMAX_H3_REPO = 'MiniMaxAI/MiniMax-H3'; export const MINIMAX_H3_REVISION = '42ed227ee7df40d41602854ae760620d6eb651fe'; +export const PIKA_H3_FLEX_REPO = 'Pika-Labs/Pika-H3-Flex'; +export const PIKA_H3_FLEX_REVISION = '3ff166447d5edb1406107ab8370c42000ce173e4'; export const COSMOS3_NANO_FILES = [ 'README.md', 'SAFETY.md', @@ -1538,6 +1541,34 @@ function miniMaxH3Profile(): StudioModelProfileSource { }; } +/** Presentation fallback only. The backend owns the exact provider, selected + * artifacts, mandatory adapter and fixed sampler; this grants no qualification. */ +function pikaH3FlexProfile(): StudioModelProfileSource { + const base = miniMaxH3Profile(); + return { + ...base, + displayName: 'Pika-H3-Flex', + defaultRepo: PIKA_H3_FLEX_REPO, + artifactLabel: 'Pinned task-selected transformer and required scale-one model adapter', + defaultSize: { width: 832, height: 480, aspectRatio: 'custom' }, + recommendedSteps: 6, + guidanceLabel: 'Package-owned sampler; no guidance control', + modeRequirements: { + ...base.modeRequirements, + reference_to_video_with_audio: { + note: 'Requires ordered references with official structured subject labels; audio-only lists are invalid.', + }, + }, + lowVram: { + ...base.lowVram!, + steps: 6, + width: 832, + height: 480, + }, + revisionCandidates: [PIKA_H3_FLEX_REVISION], + }; +} + function wanAnimate2Profile( defaultRepo: string, revision: string, @@ -1624,6 +1655,7 @@ const STUDIO_MODEL_PROFILE_SOURCES = { Cosmos3DistilledModularPipeline: cosmos3DistilledProfile(), Cosmos3OmniModularPipeline: cosmos3NanoProfile(), MiniMaxH3ModularPipeline: miniMaxH3Profile(), + PikaH3FlexModularPipeline: pikaH3FlexProfile(), WanAnimate2ModularPipeline: wanAnimate2Profile(WAN_ANIMATE_2_REPO, WAN_ANIMATE_2_REVISION, 'Wan Animate 2', 40, 3), WanAnimate2DistilledModularPipeline: wanAnimate2Profile( WAN_ANIMATE_2_DISTILLED_REPO, @@ -3859,6 +3891,7 @@ export const STUDIO_AUTO_MODEL_REQUIREMENTS = { Cosmos3DistilledModularPipeline: /* @__PURE__ */ pendingPlanningRequirement('Cosmos3DistilledModularPipeline'), Cosmos3OmniModularPipeline: /* @__PURE__ */ pendingPlanningRequirement('Cosmos3OmniModularPipeline'), MiniMaxH3ModularPipeline: /* @__PURE__ */ pendingPlanningRequirement('MiniMaxH3ModularPipeline'), + PikaH3FlexModularPipeline: /* @__PURE__ */ pendingPlanningRequirement('PikaH3FlexModularPipeline'), WanAnimate2ModularPipeline: /* @__PURE__ */ pendingPlanningRequirement('WanAnimate2ModularPipeline'), WanAnimate2DistilledModularPipeline: /* @__PURE__ */ pendingPlanningRequirement( 'WanAnimate2DistilledModularPipeline', diff --git a/src/studio/types.ts b/src/studio/types.ts index 9a49eee2..0ca80168 100644 --- a/src/studio/types.ts +++ b/src/studio/types.ts @@ -94,6 +94,7 @@ export type StudioModelType = | 'Cosmos3DistilledModularPipeline' | 'Cosmos3OmniModularPipeline' | 'MiniMaxH3ModularPipeline' + | 'PikaH3FlexModularPipeline' | 'WanAnimate2ModularPipeline' | 'WanAnimate2DistilledModularPipeline' | 'DDPMPipeline' From 88b82c46057196fd1c3108796f3c683dc8f20841 Mon Sep 17 00:00:00 2001 From: Sourav Das Date: Mon, 2 Nov 2026 13:59:44 +0530 Subject: [PATCH 152/440] Join video and audio outputs in ordinary workflow drafts --- docs/developer-first-node-ux.md | 6 +++ scripts/video-stage-groups.test.mjs | 51 ++++++++++++++++++ src/workflow/workflowDraft.ts | 46 ++++++++++++++++ tests/e2e/studio-mocked/studio-mocked.spec.ts | 53 +++++++++++++++++++ 4 files changed, 156 insertions(+) diff --git a/docs/developer-first-node-ux.md b/docs/developer-first-node-ux.md index e114279c..d89515a4 100644 --- a/docs/developer-first-node-ux.md +++ b/docs/developer-first-node-ux.md @@ -67,6 +67,12 @@ for text, keyframe and reference tasks. The backend still owns its provider, task-selected weights, required adapter and fixed sampler. This presentation registration grants no Auto, template, Gallery or live-output qualification. +When one declared producer publishes both video frames and audio, a fresh +workflow attaches the existing joined exporter and presents Video Output. Both +typed streams stay connected to that same producer. Independently generated +soundtracks retain their separate stages; missing or incompatible joined +exporters produce a connection notice. Existing saved graphs are unchanged. + This audit does not claim fewer backend classes: existing generic modular stages already share their execution implementations, and the remaining Generate/Edit adapters have different required inputs/preflight. The reduction is in duplicate diff --git a/scripts/video-stage-groups.test.mjs b/scripts/video-stage-groups.test.mjs index 6dc52714..3ad7acf1 100644 --- a/scripts/video-stage-groups.test.mjs +++ b/scripts/video-stage-groups.test.mjs @@ -114,6 +114,57 @@ test('joint video/audio presentation retains both declared families without gran } }); +test('fresh joint video/audio drafts attach one typed joined exporter and Video Output stage', async (t) => { + for (const row of fixture.recipes.filter((item) => item.starter.task.endsWith('_with_audio'))) + await t.test(row.id, () => { + const result = drafts.createWorkflowDraft(row.starter, fixture.registry); + const flat = groups.unpackVisualOperationGroups(result.graph).graph; + const outputs = flat.nodes.filter( + (node) => node.data.module === 'modules.Video' && node.data.action === 'ExportWithAudio', + ); + assert.equal(outputs.length, 1, 'the ordinary creation path must retain the joint soundtrack'); + const wires = flat.edges.filter((edge) => edge.target === outputs[0].id); + assert.deepEqual(wires.map((edge) => edge.targetHandle).sort(), ['audio', 'video']); + assert.equal(new Set(wires.map((edge) => edge.source)).size, 1, 'both streams come from the same producer'); + assert.equal(result.graph.nodes.filter((node) => groups.visualOperationGroup(node) === 'output').length, 1); + assert.ok(!flat.nodes.some((node) => node.data.module === 'modules.Audio' && node.data.action === 'Preview')); + }); +}); + +test('a missing or incompatible joined exporter never creates a partial audio/video connection', () => { + const row = fixture.recipes.find((item) => item.id === 'MiniMaxH3ModularPipeline:text_to_video_with_audio'); + const original = structuredClone(fixture.registry); + for (const incompatible of [false, true]) { + const registry = structuredClone(fixture.registry); + if (incompatible) registry['modules.Video.ExportWithAudio'].params.audio.type = 'image'; + else delete registry['modules.Video.ExportWithAudio']; + const result = drafts.createWorkflowDraft(row.starter, registry); + const flat = groups.unpackVisualOperationGroups(result.graph).graph; + assert.ok(!flat.nodes.some((node) => node.data.action === 'ExportWithAudio')); + assert.ok(result.notices.some((notice) => notice.includes('joined video/audio'))); + } + assert.deepEqual(fixture.registry, original); +}); + +test('one ambiguous union output is not treated as two simultaneous media streams', () => { + const starter = structuredClone( + fixture.recipes.find((item) => item.id === 'MiniMaxH3ModularPipeline:text_to_video_with_audio').starter, + ); + const producer = starter.nodes.find((node) => + node.operation.ports.some((port) => port.direction === 'output' && port.types.includes('audio')), + ); + producer.operation.ports = producer.operation.ports.filter( + (port) => port.direction !== 'output' || !port.types.includes('audio'), + ); + producer.operation.ports.find((port) => port.direction === 'output' && port.types.includes('video')).types = [ + 'video', + 'audio', + ]; + const result = drafts.createWorkflowDraft(starter, fixture.registry); + const flat = groups.unpackVisualOperationGroups(result.graph).graph; + assert.ok(!flat.nodes.some((node) => node.data.action === 'ExportWithAudio')); +}); + function graphFor(row) { const graph = authoring.createOperationStarter(structuredClone(row.starter), { x: 0, y: 0 }); for (const node of graph.nodes) diff --git a/src/workflow/workflowDraft.ts b/src/workflow/workflowDraft.ts index 840c299f..c0f017d6 100644 --- a/src/workflow/workflowDraft.ts +++ b/src/workflow/workflowDraft.ts @@ -90,6 +90,52 @@ export function createWorkflowDraft(starter: OperationStarter, registry: Record< } let outputCount = 0; for (const node of sources) { + const available = node.data.operationAuthoring!.operation.ports.filter( + (port) => + port.direction === 'output' && + !port.hidden && + port.semantics?.kind === 'media' && + !graph.edges.some((edge) => edge.source === node.id && edge.sourceHandle === port.name), + ); + const video = available.filter((port) => connectionTypes(port.types).includes('video')); + const audio = available.filter((port) => connectionTypes(port.types).includes('audio')); + if (video.length === 1 && audio.length === 1 && video[0]!.name !== audio[0]!.name) { + const key = 'modules.Video.ExportWithAudio'; + const definition = registry[key]; + const pair = [ + [video[0]!, 'video'], + [audio[0]!, 'audio'], + ] as const; + if ( + definition && + pair.every(([port, input]) => { + const field = definition.params[input]; + return ( + field && + !field.hidden && + (field.display === 'input' || field.isInput) && + connectionTypesAreCompatible(port.types, field.type) + ); + }) + ) { + const target = createNodeFromRegistry(key, registry, { + x: 80 + sources.length * 420, + y: 120 + outputCount * 340, + })!; + graph.nodes.push(target); + for (const [port, input] of pair) + graph.edges.push({ + id: `edge-${nanoid()}`, + source: node.id, + sourceHandle: port.name, + target: target.id, + targetHandle: input, + type: 'default', + }); + outputCount++; + } else + notices.push('A compatible joined video/audio exporter is unavailable. Connect both streams before export.'); + } for (const port of node.data.operationAuthoring!.operation.ports) { if ( port.direction !== 'output' || diff --git a/tests/e2e/studio-mocked/studio-mocked.spec.ts b/tests/e2e/studio-mocked/studio-mocked.spec.ts index 138b43f8..5fe898af 100644 --- a/tests/e2e/studio-mocked/studio-mocked.spec.ts +++ b/tests/e2e/studio-mocked/studio-mocked.spec.ts @@ -92,6 +92,59 @@ test('normal video template card creates real stages and preserves them after re expect(await page.evaluate(() => window.__MODIFF_E2E__!.getState().studio.graphBinding)).toBeNull(); }); +test('normal Pika task creation joins video and audio and preserves the workflow after reload', async ({ page }) => { + const pipelineClass = 'PikaH3FlexModularPipeline'; + const task = 'text_to_video_with_audio'; + // Transport-only GPU schema: the default upstream offload choice is invalid + // on a CPU fixture. This browser test never dispatches or loads a model. + const fixture = await generateTemplateSchemas([{ id: 'pika-joint-draft', selection: { pipelineClass, task } }], true); + const starter = fixture.recipes[0]!.starter; + await ensureFrontend(); + await installMockRoutes(page); + await page.route('**/nodes**', (route) => + route.fulfill({ json: { nodes: { ...mockRegistry, ...fixture.registry } } }), + ); + await page.route('**/model_capabilities**', (route) => route.fulfill({ json: fixture.publicPayload })); + await page.route('**/operations/task-starter', (route) => + route.fulfill({ json: { schemaVersion: 1, starter, profileId: null, unbound: false, message: '' } }), + ); + const dispatches: string[] = []; + page.on('request', (request) => { + if (request.method() === 'POST' && new URL(request.url()).pathname === '/graph') dispatches.push(request.url()); + }); + await page.goto(FRONTEND_URL, { waitUntil: 'domcontentloaded' }); + const launcher = page.getByRole('dialog', { name: 'Workflows', exact: true }); + await launcher.getByRole('button', { name: 'Video', exact: true }).click(); + await launcher.getByTestId(`workflow-task-${task}`).click(); + await expect(launcher).toHaveCount(0); + const read = () => + page.evaluate(async () => { + const { useFlowStore } = await import('/src/stores/useFlowStore.ts'); + return useFlowStore.getState().exportGraph('pika-joint-draft-regression', undefined, { randomizeSeeds: false }); + }); + await expect + .poll(async () => Object.values((await read()).nodes).filter((node) => node.action === 'ExportWithAudio').length) + .toBe(1); + const before = await read(); + const output = Object.values(before.nodes).find((node) => node.action === 'ExportWithAudio')!; + expect(output.params.video!.sourceId).toBe(output.params.audio!.sourceId); + expect(output.params.video!.sourceId).toBeTruthy(); + expect(Object.values(before.nodes).find((node) => node.action === 'ModelsLoader')!.params.model_type!.value).toBe( + pipelineClass, + ); + expect(Object.values(before.nodes).some((node) => node.module === 'modules.Audio' && node.action === 'Preview')).toBe( + false, + ); + await page.keyboard.press('Control+Shift+s'); + await page.getByTestId('save-workflow-name').fill('Pika joined output'); + await page.getByTestId('confirm-save-workflow').click(); + await expect(page.getByTestId('save-workflow-dialog')).toHaveCount(0); + await page.reload({ waitUntil: 'domcontentloaded' }); + await page.waitForFunction(() => Boolean(window.__MODIFF_E2E__?.getState().studio.workflowCanvasHydrated)); + await expect.poll(read).toEqual(before); + expect(dispatches).toEqual([]); +}); + test('latest output download uses the backend captured model name', async ({ page }) => { await ensureFrontend(); await installMockRoutes(page); From d357832a9d74cbc2d66d2314c1866872395b3df7 Mon Sep 17 00:00:00 2001 From: Sourav Das Date: Mon, 2 Nov 2026 14:10:51 +0530 Subject: [PATCH 153/440] Record measured Pika authoring bundle allowance --- scripts/bundle-budget.mjs | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/scripts/bundle-budget.mjs b/scripts/bundle-budget.mjs index a709a7a6..9fd98506 100644 --- a/scripts/bundle-budget.mjs +++ b/scripts/bundle-budget.mjs @@ -1,3 +1,9 @@ +// Pika saved-model preservation and joined video/audio drafts measure largest/ +// startup/deferred gzip 495868/674357/329734 against 495666/674155/329445. +// Add only measured startup growth of 202/202 bytes, retaining 18/19 bytes of +// headroom and both deferred caps. Only studio-templates.js and the deferred +// DeveloperWorkflowLauncher.js change after URL-version normalization. The same +// four startup and 90 deferred assets, dependencies and chunk rules remain. // Shared normal template routing adds video to the exact selected creator. // Largest/startup/deferred gzip measure 495666/674155/329445 against the accepted // 495646/674134/329538. Add measured startup growth of 20/21 bytes, retaining 18/19 bytes @@ -299,6 +305,7 @@ const SOURCE_LICENSES = new URL('../public/THIRD_PARTY_LICENSES.txt', import.met // Scoped video receipts and compatible adapter messaging measure 494870 bytes // in the largest startup asset (+46 over the cap). Add 64 bytes, no dependencies. const MAX_STARTUP_CHUNK_GZIP_BYTES = + 202 + 20 + 262 + // Source-specific hierarchy selection: 495136 -> 495384 gzip bytes. @@ -437,6 +444,7 @@ const MAX_STARTUP_CHUNK_GZIP_BYTES = // The same build measures 673359 aggregate startup bytes (+45 over the cap). // Keep 19 bytes of headroom; deferred limits and loading boundaries stay fixed. const MAX_STARTUP_GZIP_BYTES = + 202 + 21 + 267 + // Same hierarchy feature: 673622 -> 673867 bytes; retain 19 bytes of headroom. From b83e7db6d3a0285934e738574c392b99f04de6f2 Mon Sep 17 00:00:00 2001 From: Sourav Das Date: Mon, 2 Nov 2026 14:45:47 +0530 Subject: [PATCH 154/440] Wait for cold lazy editor readiness before layout assertions --- tests/e2e/shared-controls/layout-conditioning.spec.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/e2e/shared-controls/layout-conditioning.spec.ts b/tests/e2e/shared-controls/layout-conditioning.spec.ts index 66037864..e62ca570 100644 --- a/tests/e2e/shared-controls/layout-conditioning.spec.ts +++ b/tests/e2e/shared-controls/layout-conditioning.spec.ts @@ -110,6 +110,10 @@ for (const grouped of [false, true]) { }) => { await page.goto(`/control-state-matrix.html?layout-conditioning${grouped ? '&block' : ''}`); const node = widget(page); + // Cold Vite compilation of the lazy editor is fixture readiness, separate + // from the 15-second value/interaction assertions below. Production serves + // the already-built chunk. Retain a finite bound without sleeps or retries. + await expect(node.getByRole('radio', { name: 'Raw prompt', exact: true })).toBeVisible({ timeout: 60_000 }); await expect(node.getByRole('radio', { name: 'Raw prompt', exact: true })).toBeChecked(); const prompt = (await exported(page)).params.prompt!.value; await node.getByRole('radio', { name: 'Structured layout', exact: true }).click(); From 5ad393f38653707a8b629106584860d995228ced Mon Sep 17 00:00:00 2001 From: Sourav Das Date: Mon, 2 Nov 2026 15:29:23 +0530 Subject: [PATCH 155/440] Keep legacy LTX persistence regression on the historical creator --- tests/e2e/studio-mocked/studio-mocked.spec.ts | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/tests/e2e/studio-mocked/studio-mocked.spec.ts b/tests/e2e/studio-mocked/studio-mocked.spec.ts index 5fe898af..aa951861 100644 --- a/tests/e2e/studio-mocked/studio-mocked.spec.ts +++ b/tests/e2e/studio-mocked/studio-mocked.spec.ts @@ -16745,7 +16745,9 @@ test('mocked audio template stays managed after a page reload', async ({ page }) await expect(page.locator('.react-flow__node[data-id^="managed-stage:"]')).toHaveCount(0); }); -test('LTX workflow keeps its model identity and renders numeric Export Video FPS across reload', async ({ page }) => { +test('legacy LTX workflow keeps its model identity and renders numeric Export Video FPS across reload', async ({ + page, +}) => { mockInstalledRepos.clear(); mockInstalledRepos.add('Lightricks/LTX-Video-0.9.8-13B-distilled'); mockDownloadCalls = 0; @@ -16761,7 +16763,9 @@ test('LTX workflow keeps its model identity and renders numeric Export Video FPS await page.waitForFunction(() => Boolean(window.__MODIFF_E2E__), null, { timeout: 30_000 }); await page.evaluate(() => window.__MODIFF_E2E__!.setWebsocketConnection({ sid: 'mock-sid', isConnected: true })); await page.evaluate(async () => { - await window.__MODIFF_E2E__!.applyTemplate('ltx_video_image_to_video', { + // This exercises retained managed documents. New cards use real stages and + // are covered separately through the ordinary card/creator regressions. + await window.__MODIFF_E2E__!.applyLegacyTemplateForTest('ltx_video_image_to_video', { resourceMode: 'expert', autoOffload: false, offloadMode: 'none', From ea65c9eb1dc6d3328b4fd75e8674032fa2c32a25 Mon Sep 17 00:00:00 2001 From: Sourav Das Date: Tue, 3 Nov 2026 03:46:18 +0530 Subject: [PATCH 156/440] Honor backend conditional input requirements in Fix and Run readiness --- docs/modiff-client-architecture.md | 10 ++ package.json | 2 +- scripts/bundle-budget.mjs | 7 + .../conditional-input-requirements.test.mjs | 154 ++++++++++++++++++ .../reference-input-requirements.json | 15 ++ src/stores/useNodeStore.ts | 1 + src/studio/graphFixer.ts | 4 +- src/studio/requiredGraphInputs.ts | 3 +- src/workflow/conditionalInputRequirements.ts | 33 ++++ 9 files changed, 226 insertions(+), 3 deletions(-) create mode 100644 scripts/conditional-input-requirements.test.mjs create mode 100644 scripts/fixtures/reference-input-requirements.json create mode 100644 src/workflow/conditionalInputRequirements.ts diff --git a/docs/modiff-client-architecture.md b/docs/modiff-client-architecture.md index d24f9d0b..cd56339a 100644 --- a/docs/modiff-client-architecture.md +++ b/docs/modiff-client-architecture.md @@ -25,6 +25,16 @@ MoDiff Python backend The frontend treats backend responses, websocket messages, local storage, dynamic node definitions, and imported packages as untrusted data at their boundaries. Use parsers/type guards before storing or rendering them. +Backend field metadata may declare `requiredWhen: { field, equals }` alongside +an optional static `required` value. Graph Fix and Run readiness evaluate the +same read-only string-selector condition against the current registry. They +retain saved values and wires, including older nodes without that metadata. +An unknown, malformed or connected selector keeps the static requirement; +inspection never executes a supplier or guesses its computed value. Runtime +validation remains authoritative. Ordered media references use this for the +selected image/video/audio input; the initial list and video soundtrack remain +optional. This contract is generic and adds no model-specific frontend branch. + The backend may use official model libraries maintained and published by Hugging Face, but the client remains runtime-agnostic. It renders backend-declared task inputs, parameters, outputs, missing optional runtimes, and readiness instead of selecting library classes or maintaining model-specific execution branches. The browser never loads a model runtime or invokes a hosted inference provider. ## Technology diff --git a/package.json b/package.json index 76797f0a..8f41eac2 100644 --- a/package.json +++ b/package.json @@ -92,7 +92,7 @@ "test:demo-tools": "node --test scripts/bounded-browser-process.test.mjs scripts/run-fashion-demo.test.mjs scripts/prepare-fashion-demo.test.mjs scripts/export-fashion-demo.test.mjs scripts/image-prototyping-campaign.test.mjs", "test:gallery-queue": "node --test scripts/example-generation-queue.test.mjs scripts/image-prototyping-campaign.test.mjs", "test:driver-contract": "node --test scripts/hugging-face-runtime-contract.test.mjs", - "test:graph-mutations": "node --test scripts/flow-graph-mutations.test.mjs scripts/graph-fixer.test.mjs scripts/process-image-input-requirements.test.mjs scripts/block-seed-repair-v2.test.mjs scripts/block-derived-control-repair-v2.test.mjs scripts/adapter-chain-links.test.mjs", + "test:graph-mutations": "node --test scripts/flow-graph-mutations.test.mjs scripts/graph-fixer.test.mjs scripts/conditional-input-requirements.test.mjs scripts/process-image-input-requirements.test.mjs scripts/block-seed-repair-v2.test.mjs scripts/block-derived-control-repair-v2.test.mjs scripts/adapter-chain-links.test.mjs", "test:graph-visuals": "node --test scripts/graph-visuals.test.mjs scripts/node-measurement-dispatch.test.mjs scripts/node-connection-search.test.mjs", "test:media-viewer": "node --test scripts/media-viewer.test.mjs scripts/workflow-png-package.test.mjs", "test:requests": "node --test scripts/controlled-execution-receipt.test.mjs scripts/media-attachment.test.mjs scripts/node-presentation.test.mjs scripts/service-package.test.mjs scripts/node-store-requests.test.mjs scripts/operation-catalog.test.mjs scripts/operation-component-bundle-inputs.test.mjs scripts/operation-component-bundle.test.mjs scripts/operation-authoring.test.mjs scripts/operation-authoring-headless.test.mjs scripts/operation-authoring-recipes.test.mjs scripts/image-stage-groups.test.mjs scripts/video-stage-groups.test.mjs scripts/model-setup-adapter-authority.test.mjs scripts/audio-authoring.test.mjs scripts/operation-modification-matrix.test.mjs scripts/request-boundary.test.mjs scripts/server-actions.test.mjs scripts/shared-store-requests.test.mjs scripts/supervisor-startup.test.mjs scripts/studio-output-requests.test.mjs scripts/resolved-execution-inputs.test.mjs scripts/prompt-enhancement-summary.test.mjs scripts/ancillary-operations.test.mjs scripts/ancillary-execution-scope.test.mjs scripts/prompt-enhancement-authoring.test.mjs scripts/prompt-enhancement-preview.test.mjs scripts/runtime-resources.test.mjs scripts/websocket-connection.test.mjs scripts/backend-proxy-lifecycle.test.mjs", diff --git a/scripts/bundle-budget.mjs b/scripts/bundle-budget.mjs index 9fd98506..4f32ead7 100644 --- a/scripts/bundle-budget.mjs +++ b/scripts/bundle-budget.mjs @@ -1,3 +1,8 @@ +// Generic conditional input requirements measure largest/startup/deferred gzip +// 495984/674470/329666 versus accepted 495868/674357/329734. Add only measured +// startup growth 116/113 bytes, retaining 18/19 bytes of headroom. The same four +// startup and 90 deferred asset names, dependencies and loading boundaries stay +// fixed. Both deferred caps and module-identity checks remain unchanged. // Pika saved-model preservation and joined video/audio drafts measure largest/ // startup/deferred gzip 495868/674357/329734 against 495666/674155/329445. // Add only measured startup growth of 202/202 bytes, retaining 18/19 bytes of @@ -305,6 +310,7 @@ const SOURCE_LICENSES = new URL('../public/THIRD_PARTY_LICENSES.txt', import.met // Scoped video receipts and compatible adapter messaging measure 494870 bytes // in the largest startup asset (+46 over the cap). Add 64 bytes, no dependencies. const MAX_STARTUP_CHUNK_GZIP_BYTES = + 116 + 202 + 20 + 262 + @@ -444,6 +450,7 @@ const MAX_STARTUP_CHUNK_GZIP_BYTES = // The same build measures 673359 aggregate startup bytes (+45 over the cap). // Keep 19 bytes of headroom; deferred limits and loading boundaries stay fixed. const MAX_STARTUP_GZIP_BYTES = + 113 + 202 + 21 + 267 + diff --git a/scripts/conditional-input-requirements.test.mjs b/scripts/conditional-input-requirements.test.mjs new file mode 100644 index 00000000..fd027f75 --- /dev/null +++ b/scripts/conditional-input-requirements.test.mjs @@ -0,0 +1,154 @@ +import assert from 'node:assert/strict'; +import { after, before, test } from 'node:test'; +import path from 'node:path'; +import { fileURLToPath } from 'node:url'; +import { readFileSync } from 'node:fs'; +import { createServer } from 'vite'; + +let server, fixer, readiness; +before(async () => { + server = await createServer({ + root: path.resolve(path.dirname(fileURLToPath(import.meta.url)), '..'), + configFile: false, + logLevel: 'silent', + optimizeDeps: { entries: [], noDiscovery: true }, + server: { middlewareMode: true, watch: null }, + appType: 'custom', + }); + fixer = await server.ssrLoadModule('/src/studio/graphFixer.ts'); + readiness = await server.ssrLoadModule('/src/studio/requiredGraphInputs.ts'); +}); +after(async () => { + await server?.close(); +}); + +function fixture(kind = 'image') { + const metadata = JSON.parse( + readFileSync(new URL('./fixtures/reference-input-requirements.json', import.meta.url), 'utf8'), + ); + const params = { + references_in: { display: 'input', type: 'ordered_media', required: false }, + reference_kind: { type: 'string', default: 'image', options: ['image', 'video', 'audio'] }, + references: { display: 'output', type: 'ordered_media' }, + }; + for (const type of ['image', 'video', 'audio']) + params[type] = { + display: 'input', + type, + ...metadata[type], + }; + const definition = { + type: 'custom', + module: 'modules.Test', + action: 'Assemble', + label: 'Ordered reference', + skipParamsCheck: true, + params, + }; + const helper = { id: 'ref', type: 'custom', position: { x: 0, y: 0 }, data: structuredClone(definition) }; + // The user's saved helper predates the registry correction. Inspection must + // use live requiredness without migrating the saved body or trusting this flag. + helper.data.skipParamsCheck = false; + for (const param of Object.values(helper.data.params)) { + delete param.required; + delete param.requiredWhen; + } + helper.data.params.reference_kind.value = kind; + const sink = { + id: 'out', + type: 'custom', + position: { x: 400, y: 0 }, + data: { + type: 'custom', + module: 'modules.Test', + action: 'Preview', + label: 'Preview', + params: { references: { display: 'input', type: 'ordered_media' } }, + }, + }; + const registry = { 'modules.Test.Assemble': definition }; + for (const type of ['image', 'video', 'audio']) + registry[`modules.Test.Load${type}`] = { + type: 'custom', + module: 'modules.Test', + action: `Load${type}`, + label: `Load ${type}`, + params: { value: { display: 'output', type } }, + }; + return { + nodes: [helper, sink], + edges: [{ id: 'result', source: 'ref', sourceHandle: 'references', target: 'out', targetHandle: 'references' }], + registry, + }; +} + +for (const kind of ['image', 'video', 'audio']) + test(`${kind} mode requires only the selected medium in saved graphs`, () => { + const context = fixture(kind); + const before = JSON.stringify(context.nodes); + const missing = fixer.buildGraphFixPlan(context).issues.filter((i) => i.kind === 'missing_input'); + assert.deepEqual( + missing.map((i) => i.targetHandle), + [kind], + ); + const required = readiness.inspectRequiredGraphInputs(context.nodes, context, context.registry); + assert.deepEqual( + required.map((i) => i.fieldId), + [kind], + ); + assert.equal(JSON.stringify(context.nodes), before, 'inspection must not migrate saved values/metadata'); + const source = { + id: 'media', + type: 'custom', + position: { x: -300, y: 0 }, + data: { + type: 'custom', + module: 'modules.Test', + action: 'Load', + label: 'Load media', + params: { value: { type: kind, display: 'output' } }, + }, + }; + context.nodes.push(source); + context.edges.push({ id: 'media', source: 'media', sourceHandle: 'value', target: 'ref', targetHandle: kind }); + assert.deepEqual(fixer.buildGraphFixPlan(context).issues, []); + assert.deepEqual(readiness.inspectRequiredGraphInputs(context.nodes, context, context.registry), []); + assert(!context.edges.some((e) => e.targetHandle === 'references_in'), 'first item needs no prior list'); + }); + +test('changing mode recomputes requirements without erasing existing wires or assuming a connected selector', () => { + const context = fixture('image'); + context.nodes[0].data.params.reference_kind.value = 'video'; + assert.deepEqual( + readiness.inspectRequiredGraphInputs(context.nodes, context, context.registry).map((i) => i.fieldId), + ['video'], + ); + context.nodes[0].data.params.reference_kind.isConnected = true; + assert.deepEqual(readiness.inspectRequiredGraphInputs(context.nodes, context, context.registry), []); + assert.deepEqual(fixer.buildGraphFixPlan(context).issues, []); +}); + +test('malformed conditional metadata does not suppress an unconditional required input', () => { + const context = fixture('image'); + context.registry['modules.Test.Assemble'].params.video.required = true; + context.registry['modules.Test.Assemble'].params.video.requiredWhen = { field: 99, equals: 'image' }; + assert.deepEqual( + readiness.inspectRequiredGraphInputs(context.nodes, context, context.registry).map((i) => i.fieldId), + ['image', 'video'], + ); +}); + +test('fresh optional-reference metadata still requires the selected medium despite skipParamsCheck', () => { + const context = fixture('image'); + context.nodes[0].data = structuredClone(context.registry['modules.Test.Assemble']); + assert.equal(context.nodes[0].data.skipParamsCheck, true); + assert.deepEqual( + fixer.buildGraphFixPlan(context).issues.map((i) => i.targetHandle), + ['image'], + ); + context.nodes[0].data.params.reference_kind.value = 'audio'; + assert.deepEqual( + readiness.inspectRequiredGraphInputs(context.nodes, context, context.registry).map((i) => i.fieldId), + ['audio'], + ); +}); diff --git a/scripts/fixtures/reference-input-requirements.json b/scripts/fixtures/reference-input-requirements.json new file mode 100644 index 00000000..d6cd9a4e --- /dev/null +++ b/scripts/fixtures/reference-input-requirements.json @@ -0,0 +1,15 @@ +{ + "references_in": { "required": false }, + "image": { + "required": false, + "requiredWhen": { "field": "reference_kind", "equals": "image" } + }, + "video": { + "required": false, + "requiredWhen": { "field": "reference_kind", "equals": "video" } + }, + "audio": { + "required": false, + "requiredWhen": { "field": "reference_kind", "equals": "audio" } + } +} diff --git a/src/stores/useNodeStore.ts b/src/stores/useNodeStore.ts index 1d3c2995..63d9a54b 100644 --- a/src/stores/useNodeStore.ts +++ b/src/stores/useNodeStore.ts @@ -200,6 +200,7 @@ export type NodeParams = { disabled?: boolean; hidden?: boolean; required?: boolean; + requiredWhen?: { field: string; equals: string }; isInput?: boolean; isConnected?: boolean; spawn?: boolean; diff --git a/src/studio/graphFixer.ts b/src/studio/graphFixer.ts index 85c7afac..48a4eff3 100644 --- a/src/studio/graphFixer.ts +++ b/src/studio/graphFixer.ts @@ -18,6 +18,7 @@ import type { RunReadinessIssue } from './types'; import { operationInputIsSuppliedByBundle } from '../workflow/componentBundleInputs'; import type { OperationContract } from '../workflow/operationContracts'; import { processImageInputRequirements } from '../workflow/processImageInputRequirements'; +import { conditionalInputRequired } from '../workflow/conditionalInputRequirements'; export type GraphFixConfidence = 'safe' | 'choice'; export type GraphFixExternalAction = 'open_model_manager' | 'open_assets' | 'open_setup' | 'inspect_node'; @@ -148,7 +149,8 @@ function nodesWithLiveContracts(context: GraphFixContext) { { ...stored, type: live?.type ?? stored.type, - required: requirements?.[key]?.required ?? live?.required ?? stored.required, + required: + requirements?.[key]?.required ?? conditionalInputRequired(node, live ?? stored, registry, context.edges), hidden: requirements?.[key]?.hidden ?? stored.hidden, }, ]; diff --git a/src/studio/requiredGraphInputs.ts b/src/studio/requiredGraphInputs.ts index 393352be..de9dd2f4 100644 --- a/src/studio/requiredGraphInputs.ts +++ b/src/studio/requiredGraphInputs.ts @@ -8,6 +8,7 @@ import { connectionTypesAreCompatible } from '../theme/connectionTypes'; import { operationInputIsSuppliedByBundle } from '../workflow/componentBundleInputs'; import type { OperationContract } from '../workflow/operationContracts'; import { processImageInputRequirements } from '../workflow/processImageInputRequirements'; +import { conditionalInputRequired } from '../workflow/conditionalInputRequirements'; /** Inspect current declarations on the same lowered graph used by Run. */ export function inspectRequiredGraphInputs( @@ -33,7 +34,7 @@ export function inspectRequiredGraphInputs( const saved = node.data.params[field] ?? declared![field]!; const param = declared?.[field] ?? saved; if ( - !(requirements?.[field]?.required ?? param.required) || + !(requirements?.[field]?.required ?? conditionalInputRequired(node, param, registry, graph.edges)) || param.disabled || param.display === 'output' || !(param.isInput || param.display === 'input' || param.display === 'modelselect') diff --git a/src/workflow/conditionalInputRequirements.ts b/src/workflow/conditionalInputRequirements.ts new file mode 100644 index 00000000..adfc9385 --- /dev/null +++ b/src/workflow/conditionalInputRequirements.ts @@ -0,0 +1,33 @@ +import type { Edge } from '@xyflow/react'; +import type { CustomNodeType } from '../stores/useFlowStore'; +import type { NodeData, NodeParams } from '../stores/useNodeStore'; + +/** Pure backend-declared requiredness. Inspection never resolves a wired selector. */ +export function conditionalInputRequired( + node: Pick, + param: NodeParams, + registry: Record, + edges: readonly Edge[], +): boolean | undefined { + const when = param.requiredWhen; + if ( + !when || + typeof when !== 'object' || + Array.isArray(when) || + typeof when.field !== 'string' || + !when.field || + typeof when.equals !== 'string' + ) + return param.required; + const definition = registry[`${node.data.module}.${node.data.action}`]; + const selector = node.data.params[when.field] ?? definition?.params[when.field]; + if ( + !selector || + selector.isConnected || + edges.some((edge) => edge.target === node.id && edge.targetHandle === when.field) + ) + return param.required; + const value = selector.value ?? selector.default ?? definition?.params[when.field]?.default; + if (typeof value !== 'string') return param.required; + return value === when.equals; +} From 9bac9ac007aeee7ae5de47f55646260736a7b48f Mon Sep 17 00:00:00 2001 From: Sourav Das Date: Tue, 3 Nov 2026 04:03:09 +0530 Subject: [PATCH 157/440] Retain explicit saved requirements when live metadata is unspecified --- .../conditional-input-requirements.test.mjs | 23 +++++++++++++++++++ src/studio/graphFixer.ts | 4 +++- 2 files changed, 26 insertions(+), 1 deletion(-) diff --git a/scripts/conditional-input-requirements.test.mjs b/scripts/conditional-input-requirements.test.mjs index fd027f75..df497615 100644 --- a/scripts/conditional-input-requirements.test.mjs +++ b/scripts/conditional-input-requirements.test.mjs @@ -152,3 +152,26 @@ test('fresh optional-reference metadata still requires the selected medium despi ['audio'], ); }); + +test('a live schema without requiredness retains a saved explicit optional declaration', () => { + const context = fixture('image'); + context.nodes[0].data.params.audio.required = false; + delete context.registry['modules.Test.Assemble'].params.audio.required; + delete context.registry['modules.Test.Assemble'].params.audio.requiredWhen; + assert.deepEqual( + fixer.buildGraphFixPlan(context).issues.map((i) => i.targetHandle), + ['image'], + ); +}); + +test('a live schema without requiredness retains a saved explicit required declaration on a dynamic node', () => { + const context = fixture('image'); + context.nodes[0].data.skipParamsCheck = true; + context.nodes[0].data.params.video.required = true; + delete context.registry['modules.Test.Assemble'].params.video.required; + delete context.registry['modules.Test.Assemble'].params.video.requiredWhen; + assert.deepEqual( + fixer.buildGraphFixPlan(context).issues.map((i) => i.targetHandle), + ['image', 'video'], + ); +}); diff --git a/src/studio/graphFixer.ts b/src/studio/graphFixer.ts index 48a4eff3..e8f30b76 100644 --- a/src/studio/graphFixer.ts +++ b/src/studio/graphFixer.ts @@ -150,7 +150,9 @@ function nodesWithLiveContracts(context: GraphFixContext) { ...stored, type: live?.type ?? stored.type, required: - requirements?.[key]?.required ?? conditionalInputRequired(node, live ?? stored, registry, context.edges), + requirements?.[key]?.required ?? + conditionalInputRequired(node, live ?? stored, registry, context.edges) ?? + stored.required, hidden: requirements?.[key]?.hidden ?? stored.hidden, }, ]; From 0a88a0f5b03e58eee91fa4ce0c9aac5a5e7f16c3 Mon Sep 17 00:00:00 2001 From: Sourav Das Date: Tue, 3 Nov 2026 06:22:01 +0530 Subject: [PATCH 158/440] Pair client CI with the deployed conditional-reference backend --- .github/workflows/ci.yml | 6 +++--- README.md | 13 ++++++++++--- 2 files changed, 13 insertions(+), 6 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 3acd3c96..7c6d9a24 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -32,8 +32,8 @@ jobs: uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4 with: repository: sdevil7th/MoDiff - # Paired generic LTX/Wan stages and retained video template finishing. - ref: 4329a759e81abf4a01d6882bd108537c9e555db4 + # Paired conditional reference requirements and current video stages. + ref: e13bd558f2eed0ceeb6ce3c95f6d6056e682d46d path: MoDiff persist-credentials: false - name: Verify the pinned backend supports native setup @@ -88,7 +88,7 @@ jobs: with: repository: sdevil7th/MoDiff # Match the immutable backend revision in the Client quality job. - ref: 4329a759e81abf4a01d6882bd108537c9e555db4 + ref: e13bd558f2eed0ceeb6ce3c95f6d6056e682d46d path: MoDiff persist-credentials: false - name: Verify the pinned backend supports native setup diff --git a/README.md b/README.md index 8f56750d..f4948ffc 100644 --- a/README.md +++ b/README.md @@ -31,13 +31,20 @@ application source pair is: | MoDiff | `1239d1cecd12a7318eb263ca17c34d4fc0445d14` | | MoDiff-client | `c561a01395044fd71c1918e95fb9e9709d8e7601` | -CI backend contract: `4329a759e81abf4a01d6882bd108537c9e555db4`. +CI backend contract: `e13bd558f2eed0ceeb6ce3c95f6d6056e682d46d`. Both CI jobs use this exact immutable backend pin. The application table above -is the earlier reviewed testing baseline. Current CI also covers the pending -video-stage changes; a CI pin alone does not establish a new deployed pair or +is the earlier reviewed testing baseline. Current CI covers the shared video +stages and conditional reference requirements; a CI pin alone does not establish a new deployed pair or expand model/hardware qualification. +The 3 November Linux video testing deployment uses backend +`e13bd558f2eed0ceeb6ce3c95f6d6056e682d46d` and client product +`9bac9ac007aeee7ae5de47f55646260736a7b48f`. Later CI/documentation-only +descendants retain that tested client product. Native large-model evidence on +Linux does not expand Windows or other hardware qualification; see the backend's +[video progress and handoff](https://github.com/sdevil7th/MoDiff/blob/fix-ui-ux-issues/plans/video-stages-20261101/MILESTONE2-PROGRESS.md). + These application source revisions were reviewed on 1 November 2026. Final documentation, CI pairing and bundled-client packaging commits can be later descendants; they do not expand model or hardware qualification. Record From 396e64f8e10be240cbebdba085d0cefefba8c898 Mon Sep 17 00:00:00 2001 From: Sourav Das Date: Tue, 3 Nov 2026 07:41:20 +0530 Subject: [PATCH 159/440] Block Run when required media file editors are empty --- docs/modiff-client-architecture.md | 7 +++ scripts/bundle-budget.mjs | 6 ++ .../conditional-input-requirements.test.mjs | 39 +++++++++++++ src/studio/requiredGraphInputs.ts | 24 +++++++- tests/e2e/studio-mocked/studio-mocked.spec.ts | 56 +++++++++++++++++++ 5 files changed, 129 insertions(+), 3 deletions(-) diff --git a/docs/modiff-client-architecture.md b/docs/modiff-client-architecture.md index cd56339a..cd9f3f55 100644 --- a/docs/modiff-client-architecture.md +++ b/docs/modiff-client-architecture.md @@ -35,6 +35,13 @@ validation remains authoritative. Ordered media references use this for the selected image/video/audio input; the initial list and video soundtrack remain optional. This contract is generic and adds no model-specific frontend branch. +Run readiness also checks explicitly required literal `filebrowser` fields, +including older saved media Load nodes inspected against the current registry. +Empty paths/collections and blank collection members block submission without +inventing another node or changing the graph. Optional selectors remain optional. +This checks input presence, not filesystem access or decoding; backend boundaries +remain authoritative. + The backend may use official model libraries maintained and published by Hugging Face, but the client remains runtime-agnostic. It renders backend-declared task inputs, parameters, outputs, missing optional runtimes, and readiness instead of selecting library classes or maintaining model-specific execution branches. The browser never loads a model runtime or invokes a hosted inference provider. ## Technology diff --git a/scripts/bundle-budget.mjs b/scripts/bundle-budget.mjs index 4f32ead7..bb3b8cdb 100644 --- a/scripts/bundle-budget.mjs +++ b/scripts/bundle-budget.mjs @@ -1,3 +1,7 @@ +// Required literal media-file readiness adds 71/71 startup gzip bytes over +// 495984/674470; deferred gzip falls from329666 to329631. Retain18/19 bytes +// headroom, the same4startup/90deferred assets and bothdeferred caps. No new +// dependency, module-loading rule or minifier change. // Generic conditional input requirements measure largest/startup/deferred gzip // 495984/674470/329666 versus accepted 495868/674357/329734. Add only measured // startup growth 116/113 bytes, retaining 18/19 bytes of headroom. The same four @@ -310,6 +314,7 @@ const SOURCE_LICENSES = new URL('../public/THIRD_PARTY_LICENSES.txt', import.met // Scoped video receipts and compatible adapter messaging measure 494870 bytes // in the largest startup asset (+46 over the cap). Add 64 bytes, no dependencies. const MAX_STARTUP_CHUNK_GZIP_BYTES = + 71 + 116 + 202 + 20 + @@ -450,6 +455,7 @@ const MAX_STARTUP_CHUNK_GZIP_BYTES = // The same build measures 673359 aggregate startup bytes (+45 over the cap). // Keep 19 bytes of headroom; deferred limits and loading boundaries stay fixed. const MAX_STARTUP_GZIP_BYTES = + 71 + 113 + 202 + 21 + diff --git a/scripts/conditional-input-requirements.test.mjs b/scripts/conditional-input-requirements.test.mjs index df497615..02dc3e2e 100644 --- a/scripts/conditional-input-requirements.test.mjs +++ b/scripts/conditional-input-requirements.test.mjs @@ -175,3 +175,42 @@ test('a live schema without requiredness retains a saved explicit required decla ['image', 'video'], ); }); + +for (const medium of ['image', 'video', 'audio']) + test(`required ${medium} file editors block empty saved inputs without inventing a connection repair`, () => { + const definition = { + type: 'custom', + module: 'modules.Test', + action: 'LoadFile', + label: `Load ${medium}`, + params: { + file: { display: 'filebrowser', type: 'str', required: true }, + result: { display: 'output', type: medium }, + }, + }; + const node = { id: 'load', type: 'custom', position: { x: 0, y: 0 }, data: structuredClone(definition) }; + delete node.data.params.file.required; // old saved metadata must use the current declaration + const graph = { nodes: [node], edges: [] }, + registry = { 'modules.Test.LoadFile': definition }; + for (const value of [undefined, '', ' ', [], [''], ['a.png', ' '], false, 42, {}]) { + node.data.params.file.value = value; + const before = JSON.stringify(node); + const issues = readiness.inspectRequiredGraphInputs(graph.nodes, graph, registry); + assert.deepEqual( + issues.map((i) => i.fieldId), + ['file'], + ); + assert.match(issues[0].details, /Select/); + assert.equal(JSON.stringify(node), before); + } + for (const value of ['@data/inputs/source.png', ['a.png', 'b.png']]) { + node.data.params.file.value = value; + assert.deepEqual(readiness.inspectRequiredGraphInputs(graph.nodes, graph, registry), []); + } + node.data.params.file.value = ''; + definition.params.file.required = false; + assert.deepEqual(readiness.inspectRequiredGraphInputs(graph.nodes, graph, registry), []); + definition.params.file.required = true; + node.data.uiState = { disabled: true }; + assert.deepEqual(readiness.inspectRequiredGraphInputs(graph.nodes, graph, registry), []); + }); diff --git a/src/studio/requiredGraphInputs.ts b/src/studio/requiredGraphInputs.ts index de9dd2f4..b30423f2 100644 --- a/src/studio/requiredGraphInputs.ts +++ b/src/studio/requiredGraphInputs.ts @@ -37,7 +37,12 @@ export function inspectRequiredGraphInputs( !(requirements?.[field]?.required ?? conditionalInputRequired(node, param, registry, graph.edges)) || param.disabled || param.display === 'output' || - !(param.isInput || param.display === 'input' || param.display === 'modelselect') + !( + param.isInput || + param.display === 'input' || + param.display === 'modelselect' || + param.display === 'filebrowser' + ) ) continue; const selected = saved.value ?? saved.default ?? param.default; @@ -47,7 +52,17 @@ export function inspectRequiredGraphInputs( ? selected.value : undefined : selected; - const present = param.display === 'modelselect' && typeof value === 'string' ? value.trim() : value; + let present: unknown = value; + if (param.display === 'filebrowser') { + present = + typeof value === 'string' + ? value.trim() + : Array.isArray(value) && value.length > 0 && value.every((item) => typeof item === 'string' && item.trim()) + ? value + : undefined; + } else if (param.display === 'modelselect' && typeof value === 'string') { + present = value.trim(); + } if (present !== undefined && present !== null && present !== '' && (!Array.isArray(present) || present.length)) continue; const supplied = graph.edges.some((edge) => { @@ -70,7 +85,10 @@ export function inspectRequiredGraphInputs( nodeId: target, ...(target === node.id ? { fieldId: field } : {}), message: `${node.data.label || node.data.action} needs ${saved.label || field} before running.`, - details: `Connect an enabled compatible source to ${field}, or provide its declared value. Expand the Block to inspect the affected node.`, + details: + param.display === 'filebrowser' + ? `Select the required media file in ${saved.label || field}. Expand the Block if the Load node is inside it.` + : `Connect an enabled compatible source to ${field}, or provide its declared value. Expand the Block to inspect the affected node.`, }); } } diff --git a/tests/e2e/studio-mocked/studio-mocked.spec.ts b/tests/e2e/studio-mocked/studio-mocked.spec.ts index aa951861..a4f11fb7 100644 --- a/tests/e2e/studio-mocked/studio-mocked.spec.ts +++ b/tests/e2e/studio-mocked/studio-mocked.spec.ts @@ -10925,6 +10925,62 @@ test('image pipeline drag-to-add excludes generation actions outside the selecte await expect.poll(() => page.evaluate(() => window.__MODIFF_E2E__!.getState().flow.edges.length)).toBe(1); }); +test('required media file editors block Run before upload and after clearing or reopening', async ({ page }) => { + await ensureFrontend(); + await installMockRoutes(page); + const source = structuredClone(mockRegistry['modules.Image.Load']!); + source.params.file!.required = true; + await page.route('**/nodes**', (route) => + route.fulfill({ json: { nodes: { ...mockRegistry, 'modules.Image.Load': source } } }), + ); + let graphPosts = 0; + await page.route('**/graph', (route) => { + if (route.request().method() === 'POST') graphPosts++; + return route.fulfill({ json: { error: true, message: 'Presence test must not execute.' } }); + }); + await page.route('**/file', (route) => + route.request().method() === 'POST' + ? route.fulfill({ json: { path: ['@data/images/presence-test.png'] } }) + : route.fallback(), + ); + await page.goto(FRONTEND_URL, { waitUntil: 'domcontentloaded' }); + await page.waitForFunction(() => Boolean(window.__MODIFF_E2E__)); + await page.evaluate(() => + window.__MODIFF_E2E__!.setWebsocketConnection({ sid: 'media-presence', isConnected: true }), + ); + await dismissTaskLauncher(page); + await setWorkflowResourceMode(page, 'expert'); + await openNodesLibrary(page); + await page.getByRole('checkbox', { name: 'Show implementation nodes', exact: true }).check(); + await page.getByLabel('Search nodes', { exact: true }).fill('Load'); + await page.getByTestId('node-row-modules-Image-Load').click(); + const node = page.locator('.react-flow__node').filter({ has: page.locator('[data-key="file"] input[type="file"]') }); + await expect(node).toHaveCount(1); + const run = page.getByTestId('studio-run'); + await expect(run).toBeDisabled(); + await expect(page.getByTestId('studio-run-readiness')).toContainText('needs file'); + await node + .locator('[data-key="file"] input[type="file"]') + .setInputFiles({ + name: 'presence.png', + mimeType: 'image/png', + buffer: Buffer.from( + 'iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mP8/x8AAwMCAO+aOCkAAAAASUVORK5CYII=', + 'base64', + ), + }); + await expect(run).toBeEnabled(); + await node.getByRole('button', { name: 'Remove media', exact: true }).click(); + await expect(run).toBeDisabled(); + await page.reload({ waitUntil: 'domcontentloaded' }); + await page.waitForFunction(() => Boolean(window.__MODIFF_E2E__)); + await page.evaluate(() => + window.__MODIFF_E2E__!.setWebsocketConnection({ sid: 'media-presence-reopen', isConnected: true }), + ); + await expect(page.getByTestId('studio-run')).toBeDisabled(); + expect(graphPosts).toBe(0); +}); + test('raw Process Image task changes keep Mask repairs and readiness current', async ({ page }) => { await ensureFrontend(); await installMockRoutes(page); From f1cc8d1ecbe0789ed4af616a52847dee952ada7d Mon Sep 17 00:00:00 2001 From: Sourav Das Date: Tue, 3 Nov 2026 07:41:50 +0530 Subject: [PATCH 160/440] Format media input browser regression --- tests/e2e/studio-mocked/studio-mocked.spec.ts | 18 ++++++++---------- 1 file changed, 8 insertions(+), 10 deletions(-) diff --git a/tests/e2e/studio-mocked/studio-mocked.spec.ts b/tests/e2e/studio-mocked/studio-mocked.spec.ts index a4f11fb7..7eb7f619 100644 --- a/tests/e2e/studio-mocked/studio-mocked.spec.ts +++ b/tests/e2e/studio-mocked/studio-mocked.spec.ts @@ -10959,16 +10959,14 @@ test('required media file editors block Run before upload and after clearing or const run = page.getByTestId('studio-run'); await expect(run).toBeDisabled(); await expect(page.getByTestId('studio-run-readiness')).toContainText('needs file'); - await node - .locator('[data-key="file"] input[type="file"]') - .setInputFiles({ - name: 'presence.png', - mimeType: 'image/png', - buffer: Buffer.from( - 'iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mP8/x8AAwMCAO+aOCkAAAAASUVORK5CYII=', - 'base64', - ), - }); + await node.locator('[data-key="file"] input[type="file"]').setInputFiles({ + name: 'presence.png', + mimeType: 'image/png', + buffer: Buffer.from( + 'iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mP8/x8AAwMCAO+aOCkAAAAASUVORK5CYII=', + 'base64', + ), + }); await expect(run).toBeEnabled(); await node.getByRole('button', { name: 'Remove media', exact: true }).click(); await expect(run).toBeDisabled(); From ba8f7d522aae96589bf7a314ff6cf67b0c32fc53 Mon Sep 17 00:00:00 2001 From: Sourav Das Date: Tue, 3 Nov 2026 07:51:55 +0530 Subject: [PATCH 161/440] Validate media file presence without changing immutable node contracts --- docs/modiff-client-architecture.md | 5 ++-- scripts/bundle-budget.mjs | 10 +++---- .../conditional-input-requirements.test.mjs | 8 ++++++ src/studio/requiredGraphInputs.ts | 13 ++++++++-- tests/e2e/studio-mocked/studio-mocked.spec.ts | 26 ++++++++++++++++++- 5 files changed, 52 insertions(+), 10 deletions(-) diff --git a/docs/modiff-client-architecture.md b/docs/modiff-client-architecture.md index cd9f3f55..5798ec4d 100644 --- a/docs/modiff-client-architecture.md +++ b/docs/modiff-client-architecture.md @@ -35,8 +35,9 @@ validation remains authoritative. Ordered media references use this for the selected image/video/audio input; the initial list and video soundtrack remain optional. This contract is generic and adds no model-specific frontend branch. -Run readiness also checks explicitly required literal `filebrowser` fields, -including older saved media Load nodes inspected against the current registry. +Run readiness also checks literal `filebrowser` fields. Unannotated editors on +normally validated nodes are mandatory; explicit optionality and dynamic +skip-validation remain respected. Raw, immutable and saved definitions stay intact. Empty paths/collections and blank collection members block submission without inventing another node or changing the graph. Optional selectors remain optional. This checks input presence, not filesystem access or decoding; backend boundaries diff --git a/scripts/bundle-budget.mjs b/scripts/bundle-budget.mjs index bb3b8cdb..947df09d 100644 --- a/scripts/bundle-budget.mjs +++ b/scripts/bundle-budget.mjs @@ -1,6 +1,6 @@ -// Required literal media-file readiness adds 71/71 startup gzip bytes over -// 495984/674470; deferred gzip falls from329666 to329631. Retain18/19 bytes -// headroom, the same4startup/90deferred assets and bothdeferred caps. No new +// Required literal media-file readiness adds 103/102 startup gzip bytes over +// 495984/674470; deferred gzip falls from 329666 to 329587. Retain 18/19 bytes +// headroom, the same 4 startup/90 deferred assets and both deferred caps. No new // dependency, module-loading rule or minifier change. // Generic conditional input requirements measure largest/startup/deferred gzip // 495984/674470/329666 versus accepted 495868/674357/329734. Add only measured @@ -314,7 +314,7 @@ const SOURCE_LICENSES = new URL('../public/THIRD_PARTY_LICENSES.txt', import.met // Scoped video receipts and compatible adapter messaging measure 494870 bytes // in the largest startup asset (+46 over the cap). Add 64 bytes, no dependencies. const MAX_STARTUP_CHUNK_GZIP_BYTES = - 71 + + 103 + 116 + 202 + 20 + @@ -455,7 +455,7 @@ const MAX_STARTUP_CHUNK_GZIP_BYTES = // The same build measures 673359 aggregate startup bytes (+45 over the cap). // Keep 19 bytes of headroom; deferred limits and loading boundaries stay fixed. const MAX_STARTUP_GZIP_BYTES = - 71 + + 102 + 113 + 202 + 21 + diff --git a/scripts/conditional-input-requirements.test.mjs b/scripts/conditional-input-requirements.test.mjs index 02dc3e2e..33ded721 100644 --- a/scripts/conditional-input-requirements.test.mjs +++ b/scripts/conditional-input-requirements.test.mjs @@ -210,6 +210,14 @@ for (const medium of ['image', 'video', 'audio']) node.data.params.file.value = ''; definition.params.file.required = false; assert.deepEqual(readiness.inspectRequiredGraphInputs(graph.nodes, graph, registry), []); + delete definition.params.file.required; + assert.deepEqual( + readiness.inspectRequiredGraphInputs(graph.nodes, graph, registry).map((i) => i.fieldId), + ['file'], + ); + definition.skipParamsCheck = true; + assert.deepEqual(readiness.inspectRequiredGraphInputs(graph.nodes, graph, registry), []); + definition.skipParamsCheck = false; definition.params.file.required = true; node.data.uiState = { disabled: true }; assert.deepEqual(readiness.inspectRequiredGraphInputs(graph.nodes, graph, registry), []); diff --git a/src/studio/requiredGraphInputs.ts b/src/studio/requiredGraphInputs.ts index b30423f2..b299efd6 100644 --- a/src/studio/requiredGraphInputs.ts +++ b/src/studio/requiredGraphInputs.ts @@ -28,13 +28,22 @@ export function inspectRequiredGraphInputs( ), ); for (const node of enabled.values()) { - const declared = registry[`${node.data.module}.${node.data.action}`]?.params; + const definition = registry[`${node.data.module}.${node.data.action}`]; + const declared = definition?.params; const requirements = processImageInputRequirements(node, registry, operations, graph.edges); for (const field of new Set([...Object.keys(declared ?? {}), ...Object.keys(node.data.params)])) { const saved = node.data.params[field] ?? declared![field]!; const param = declared?.[field] ?? saved; + // Like ordinary required sockets, an unannotated literal file editor is + // mandatory on a normally validated node. Keep raw/immutable definitions + // intact and respect explicit optionality and dynamic skip validation. + const required = + requirements?.[field]?.required ?? + conditionalInputRequired(node, param, registry, graph.edges) ?? + (param.display === 'filebrowser' && + (saved.required ?? !(definition?.skipParamsCheck ?? node.data.skipParamsCheck))); if ( - !(requirements?.[field]?.required ?? conditionalInputRequired(node, param, registry, graph.edges)) || + !required || param.disabled || param.display === 'output' || !( diff --git a/tests/e2e/studio-mocked/studio-mocked.spec.ts b/tests/e2e/studio-mocked/studio-mocked.spec.ts index 7eb7f619..2d720337 100644 --- a/tests/e2e/studio-mocked/studio-mocked.spec.ts +++ b/tests/e2e/studio-mocked/studio-mocked.spec.ts @@ -10929,7 +10929,7 @@ test('required media file editors block Run before upload and after clearing or await ensureFrontend(); await installMockRoutes(page); const source = structuredClone(mockRegistry['modules.Image.Load']!); - source.params.file!.required = true; + delete source.params.file!.required; // existing raw loader schema stays immutable await page.route('**/nodes**', (route) => route.fulfill({ json: { nodes: { ...mockRegistry, 'modules.Image.Load': source } } }), ); @@ -10956,6 +10956,27 @@ test('required media file editors block Run before upload and after clearing or await page.getByTestId('node-row-modules-Image-Load').click(); const node = page.locator('.react-flow__node').filter({ has: page.locator('[data-key="file"] input[type="file"]') }); await expect(node).toHaveCount(1); + await page.getByLabel('Search nodes', { exact: true }).fill('Preview'); + await page.getByTestId('node-row-modules-Image-Preview').click(); + await page.getByRole('button', { name: 'Arrange graph', exact: true }).click(); + const previewId = await page.evaluate( + () => + window.__MODIFF_E2E__!.getState().flow.nodes.find((n) => n.module === 'modules.Image' && n.action === 'Preview')! + .id, + ); + const from = node.locator('.react-flow__handle.source[data-handleid="image"]'); + const to = page.locator( + `.react-flow__node[data-id="${previewId}"] .react-flow__handle.target[data-handleid="image"]`, + ); + await from.click({ trial: true }); + await to.click({ trial: true }); + const a = (await from.boundingBox())!, + b = (await to.boundingBox())!; + await page.mouse.move(a.x + a.width / 2, a.y + a.height / 2); + await page.mouse.down(); + await page.mouse.move(b.x + b.width / 2, b.y + b.height / 2, { steps: 16 }); + await page.mouse.up(); + await expect.poll(() => page.evaluate(() => window.__MODIFF_E2E__!.getState().flow.edges.length)).toBe(1); const run = page.getByTestId('studio-run'); await expect(run).toBeDisabled(); await expect(page.getByTestId('studio-run-readiness')).toContainText('needs file'); @@ -10975,6 +10996,9 @@ test('required media file editors block Run before upload and after clearing or await page.evaluate(() => window.__MODIFF_E2E__!.setWebsocketConnection({ sid: 'media-presence-reopen', isConnected: true }), ); + await expect( + page.locator('.react-flow__node').filter({ has: page.locator('[data-key="file"] input[type="file"]') }), + ).toHaveCount(1); await expect(page.getByTestId('studio-run')).toBeDisabled(); expect(graphPosts).toBe(0); }); From 121e1b076bf9d601dfc82c7777d0c03d49e94037 Mon Sep 17 00:00:00 2001 From: Sourav Das Date: Tue, 3 Nov 2026 08:05:55 +0530 Subject: [PATCH 162/440] Pin CI to the paired media readiness backend --- .github/workflows/ci.yml | 4 ++-- README.md | 6 +++++- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 7c6d9a24..983029c1 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -33,7 +33,7 @@ jobs: with: repository: sdevil7th/MoDiff # Paired conditional reference requirements and current video stages. - ref: e13bd558f2eed0ceeb6ce3c95f6d6056e682d46d + ref: 328d06f8ea6c6860c10b97adfa6855a80516cfad path: MoDiff persist-credentials: false - name: Verify the pinned backend supports native setup @@ -88,7 +88,7 @@ jobs: with: repository: sdevil7th/MoDiff # Match the immutable backend revision in the Client quality job. - ref: e13bd558f2eed0ceeb6ce3c95f6d6056e682d46d + ref: 328d06f8ea6c6860c10b97adfa6855a80516cfad path: MoDiff persist-credentials: false - name: Verify the pinned backend supports native setup diff --git a/README.md b/README.md index f4948ffc..b3e7133a 100644 --- a/README.md +++ b/README.md @@ -31,7 +31,7 @@ application source pair is: | MoDiff | `1239d1cecd12a7318eb263ca17c34d4fc0445d14` | | MoDiff-client | `c561a01395044fd71c1918e95fb9e9709d8e7601` | -CI backend contract: `e13bd558f2eed0ceeb6ce3c95f6d6056e682d46d`. +CI backend contract: `328d06f8ea6c6860c10b97adfa6855a80516cfad`. Both CI jobs use this exact immutable backend pin. The application table above is the earlier reviewed testing baseline. Current CI covers the shared video @@ -665,3 +665,7 @@ Node status explains whether inputs changed, results were invalidated, or cached results were reused. Automatic resource management retains independent model owners when their combined memory estimate fits; otherwise it uses the existing release schedule where safe. + +The required-file readiness followup pairs backend `328d06f8` with client product +`ba8f7d52`. Raw node/Block identities and model computation remain unchanged; +the video plan handoff records deployment and local template acceptance. From 75080b73fb22bc0ef197f17a119cf507b3352695 Mon Sep 17 00:00:00 2001 From: Sourav Das Date: Tue, 3 Nov 2026 14:18:52 +0530 Subject: [PATCH 163/440] Resolve video and audio input previews through managed media URLs --- .github/workflows/ci.yml | 4 +- README.md | 2 +- docs/modiff-client-architecture.md | 10 ++++ scripts/media-viewer.test.mjs | 38 ++++++++++++ src/components/NodeContent.tsx | 18 ++++-- src/fields/FileBrowserField.tsx | 10 +--- src/studio/outputUtils.ts | 10 ++++ tests/e2e/studio-mocked/studio-mocked.spec.ts | 60 +++++++++++++++++++ 8 files changed, 136 insertions(+), 16 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 983029c1..00d794ce 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -33,7 +33,7 @@ jobs: with: repository: sdevil7th/MoDiff # Paired conditional reference requirements and current video stages. - ref: 328d06f8ea6c6860c10b97adfa6855a80516cfad + ref: e6eaffb397ca55ae015f6767794fc0039891250b path: MoDiff persist-credentials: false - name: Verify the pinned backend supports native setup @@ -88,7 +88,7 @@ jobs: with: repository: sdevil7th/MoDiff # Match the immutable backend revision in the Client quality job. - ref: 328d06f8ea6c6860c10b97adfa6855a80516cfad + ref: e6eaffb397ca55ae015f6767794fc0039891250b path: MoDiff persist-credentials: false - name: Verify the pinned backend supports native setup diff --git a/README.md b/README.md index b3e7133a..26c3a61f 100644 --- a/README.md +++ b/README.md @@ -31,7 +31,7 @@ application source pair is: | MoDiff | `1239d1cecd12a7318eb263ca17c34d4fc0445d14` | | MoDiff-client | `c561a01395044fd71c1918e95fb9e9709d8e7601` | -CI backend contract: `328d06f8ea6c6860c10b97adfa6855a80516cfad`. +CI backend contract: `e6eaffb397ca55ae015f6767794fc0039891250b`. Both CI jobs use this exact immutable backend pin. The application table above is the earlier reviewed testing baseline. Current CI covers the shared video diff --git a/docs/modiff-client-architecture.md b/docs/modiff-client-architecture.md index 5798ec4d..48991d33 100644 --- a/docs/modiff-client-architecture.md +++ b/docs/modiff-client-architecture.md @@ -1980,3 +1980,13 @@ available after app/server restart; closed-page or browser-session recovery uses saved workflows/exports, with no promise to restore a closed page's unsaved tab roster. Legacy import can recover only the retained historical shared snapshot, not values that an older page already overwrote. + +### File-backed audio and video input players + +Load-node players and file-picker previews share `fileBackedMediaPreviewUrl`. +Selected filesystem paths are backend identifiers and go through the managed +`/media/preview` endpoint, including absolute POSIX paths and Windows paths. +Existing browser URLs and bundled public assets retain their normal handling. +Both scalar and picker-array selections project without rewriting saved params; +clearing the selection also clears stale output-backed input previews on reload. +Audio references selected from AV files use the backend's soundtrack conversion. diff --git a/scripts/media-viewer.test.mjs b/scripts/media-viewer.test.mjs index faa12fed..17fa7b69 100644 --- a/scripts/media-viewer.test.mjs +++ b/scripts/media-viewer.test.mjs @@ -297,6 +297,44 @@ test('video field URL compaction removes invalid holes and arrow navigation resp assert.equal(mediaViewer.shouldIgnoreMediaViewerArrowTarget(null), false); }); +test('file-backed media previews encode backend paths and retain browser media URLs', () => { + for (const kind of ['audio', 'video']) { + for (const file of [ + '/home/media/clip #1.mp4', + String.raw`C:\media\clip #1.mp4`, + '@data/videos/clip.mp4', + 'clips/one.mov', + ]) { + assert.equal( + outputUtils.fileBackedMediaPreviewUrl(file, kind), + `http://127.0.0.1:5191/media/preview?file=${encodeURIComponent(file)}&media_kind=${kind}`, + ); + } + for (const value of [ + 'https://media.example/clip.mp4', + 'blob:http://127.0.0.1:5191/media', + 'data:audio/wav;base64,AAAA', + ]) { + assert.equal(outputUtils.fileBackedMediaPreviewUrl(value, kind), value); + } + for (const route of [ + '/cache/node/file/0', + '/file?file=%40data%2Fclip.mp4', + '/media/preview?file=one&media_kind=audio', + ]) { + assert.equal(outputUtils.fileBackedMediaPreviewUrl(route, kind), `http://127.0.0.1:5191${route}`); + } + assert.equal(outputUtils.fileBackedMediaPreviewUrl('', kind), ''); + assert.equal(outputUtils.fileBackedMediaPreviewUrl(' ', kind), ''); + assert.match( + outputUtils.fileBackedMediaPreviewUrl('javascript:alert(1)', kind), + /\/media\/preview\?file=javascript%3A/, + ); + } + const asset = '/template-gallery/runtime-inputs/assets/example.mp4'; + assert.equal(outputUtils.fileBackedMediaPreviewUrl(asset, 'video'), templateAssets.resolveTemplateAssetUrl(asset)); +}); + test('template defaults preview from the configured asset source after upload or refresh', () => { const bundledPath = '/workspace/MoDiff-client/public/template-gallery/runtime-inputs/assets/example.webp'; const imagePath = '/template-gallery/runtime-inputs/assets/example.webp'; diff --git a/src/components/NodeContent.tsx b/src/components/NodeContent.tsx index 02e5f35b..b02b5bb0 100644 --- a/src/components/NodeContent.tsx +++ b/src/components/NodeContent.tsx @@ -27,6 +27,7 @@ import { blockControlConnectionNotesV2 } from '../studio/blockControlConnections import { FieldFrame } from '../ui/FieldFrame'; import { PreviewEmptyState } from '../ui/PreviewFrame'; import { operationOwnsModel } from '../workflow/operationContracts'; +import { fileBackedMediaPreviewUrl } from '../studio/outputUtils'; import HandleField from '../fields/HandleField'; import InputField from '../fields/InputField'; @@ -229,12 +230,17 @@ const NodeContent = memo(function NodeContent({ key === 'model_type' && operationOwnsModel(graphNode?.data.operationAuthoring?.operation); const hidden = Boolean(data.hidden || derivedPipelineType); const configuredValue = data.value ?? data.default; - const fileBackedLoaderPreview = - (fieldType === 'ui_audio' || fieldType === 'ui_video') && - /(?:^|\.)Load$/i.test(action) && - typeof (params.file?.value ?? params.file?.default) === 'string' - ? (params.file?.value ?? params.file?.default) - : undefined; + const selectedFile = params.file?.value ?? params.file?.default; + let fileBackedLoaderPreview: string | string[] | undefined; + if ((fieldType === 'ui_audio' || fieldType === 'ui_video') && /(?:^|\.)Load$/i.test(action)) { + const kind = fieldType === 'ui_audio' ? 'audio' : 'video'; + if (typeof selectedFile === 'string') fileBackedLoaderPreview = fileBackedMediaPreviewUrl(selectedFile, kind); + else if (Array.isArray(selectedFile)) { + fileBackedLoaderPreview = selectedFile + .filter((value): value is string => typeof value === 'string') + .map((value) => fileBackedMediaPreviewUrl(value, kind)); + } + } // Older runs stored `/cache//filename/...` for file-backed previews. // That endpoint contains the filename as text, not the media bytes. Loader // nodes can render their selected file directly before or after execution. diff --git a/src/fields/FileBrowserField.tsx b/src/fields/FileBrowserField.tsx index a5b1d866..0668a8de 100644 --- a/src/fields/FileBrowserField.tsx +++ b/src/fields/FileBrowserField.tsx @@ -12,7 +12,7 @@ import InputField from './InputField'; import { FieldFrame, FileDropFrame } from '../ui'; import { uploadBackendFile } from '../utils/backendUpload'; import { GraphControlInput, GraphIconButton } from '../ui/GraphControls'; -import { bundledPublicAssetUrl } from '../studio/outputUtils'; +import { bundledPublicAssetUrl, fileBackedMediaPreviewUrl } from '../studio/outputUtils'; import { inferImportedMediaKind, mediaAcceptString } from '../studio/mediaImport'; import { enqueueSnackbar } from '../ui/snackbar'; import { MEDIA_PLACEHOLDER_DATA_URL } from '../utils/mediaViewer'; @@ -64,12 +64,8 @@ export default function FileBrowserField(props: FieldProps) { const imagePreviewUrl = (file: string) => bundledPublicAssetUrl(file) ?? (isUrl(file) ? file : `${config.serverAddress}/preview?file=${encodeURIComponent(file)}`); - const videoPreviewUrl = (file: string) => - bundledPublicAssetUrl(file) ?? - (isUrl(file) ? file : `${config.serverAddress}/media/preview?file=${encodeURIComponent(file)}&media_kind=video`); - const audioPreviewUrl = (file: string) => - bundledPublicAssetUrl(file) ?? - (isUrl(file) ? file : `${config.serverAddress}/media/preview?file=${encodeURIComponent(file)}&media_kind=audio`); + const videoPreviewUrl = (file: string) => fileBackedMediaPreviewUrl(file, 'video'); + const audioPreviewUrl = (file: string) => fileBackedMediaPreviewUrl(file, 'audio'); // if none of the values is empty, add an empty string to allow adding more files const baseFieldValue = diff --git a/src/studio/outputUtils.ts b/src/studio/outputUtils.ts index b76b9884..75c8fd11 100644 --- a/src/studio/outputUtils.ts +++ b/src/studio/outputUtils.ts @@ -185,6 +185,16 @@ export function resolveStudioImageUrl(value: string, nodeId?: string, fieldKey?: return value; } +/** Input paths are backend identifiers, even when they begin with a slash. */ +export function fileBackedMediaPreviewUrl(value: string, kind: 'audio' | 'video'): string { + if (!value.trim()) return ''; + const bundledAssetUrl = bundledPublicAssetUrl(value); + if (bundledAssetUrl) return bundledAssetUrl; + if (/^(?:https?:|data:|blob:)/i.test(value)) return value; + if (/^\/(?:cache\/|file\?|media\/preview\?)/.test(value)) return `${config.serverAddress}${value}`; + return `${config.serverAddress}/media/preview?file=${encodeURIComponent(value)}&media_kind=${kind}`; +} + export function resolveStudioVideoUrl(value: string, nodeId?: string, fieldKey?: string) { if ( value.startsWith('http://') || diff --git a/tests/e2e/studio-mocked/studio-mocked.spec.ts b/tests/e2e/studio-mocked/studio-mocked.spec.ts index 2d720337..ede58f39 100644 --- a/tests/e2e/studio-mocked/studio-mocked.spec.ts +++ b/tests/e2e/studio-mocked/studio-mocked.spec.ts @@ -10925,6 +10925,66 @@ test('image pipeline drag-to-add excludes generation actions outside the selecte await expect.poll(() => page.evaluate(() => window.__MODIFF_E2E__!.getState().flow.edges.length)).toBe(1); }); +for (const [kind, selectedFile] of [ + ['video', '/workspace/media/clip #1.mp4'], + ['audio', String.raw`C:\media\clip #1.mp4`], +] as const) { + test(`file-backed ${kind} loader previews use the media endpoint and preserve selected paths after reload`, async ({ + page, + }) => { + await ensureFrontend(); + await installMockRoutes(page); + const key = kind === 'video' ? 'modules.Video.Load' : 'modules.Audio.Load'; + const loader = nodeDef(kind === 'video' ? 'modules.Video' : 'modules.Audio', 'Load', kind, { + file: { + type: 'str', + display: 'filebrowser', + value: selectedFile, + fieldOptions: { fileTypes: [kind], multiple: false }, + }, + filename: { type: 'str', display: 'output' }, + preview: { + type: kind, + display: kind === 'video' ? 'ui_video' : 'ui_audio', + sourceKey: 'filename', + value: '/file?file=previous-media.mp4', + }, + }); + await page.route('**/nodes**', (route) => route.fulfill({ json: { nodes: { ...mockRegistry, [key]: loader } } })); + await page.route('**/media/preview?**', (route) => + route.fulfill({ contentType: kind === 'video' ? 'video/mp4' : 'audio/wav', body: '' }), + ); + let graphPosts = 0; + await page.route('**/graph', (route) => { + if (route.request().method() === 'POST') graphPosts++; + return route.fulfill({ json: { error: true, message: 'Preview test must not execute.' } }); + }); + await page.goto(FRONTEND_URL, { waitUntil: 'domcontentloaded' }); + await page.waitForFunction(() => Boolean(window.__MODIFF_E2E__)); + await dismissTaskLauncher(page); + const id = await page.evaluate((nodeKey) => window.__MODIFF_E2E__!.addCustomNodeForTest(nodeKey), key); + const node = page.locator(`.react-flow__node[data-id="${id}"]`); + const expected = `${FRONTEND_URL}/media/preview?file=${encodeURIComponent(selectedFile)}&media_kind=${kind}`; + const player = + kind === 'video' + ? page.getByTestId(`node-preview-video-${id}-preview`).locator('video') + : page.getByTestId(`node-preview-audio-${id}-preview-0`).locator('audio'); + await expect(player).toHaveAttribute('src', expected); + await expect(node.locator(`[data-key="file"] ${kind}`)).toHaveAttribute('src', expected); + const before = await page.evaluate(() => window.__MODIFF_E2E__!.getState().flow.nodes); + await page.reload({ waitUntil: 'domcontentloaded' }); + await page.waitForFunction(() => Boolean(window.__MODIFF_E2E__)); + await expect(player).toHaveAttribute('src', expected); + expect(await page.evaluate(() => window.__MODIFF_E2E__!.getState().flow.nodes)).toEqual(before); + await node.locator('[data-key="file"]').getByRole('button', { name: 'Remove media', exact: true }).click(); + await expect(player).toHaveCount(0); + await page.reload({ waitUntil: 'domcontentloaded' }); + await page.waitForFunction(() => Boolean(window.__MODIFF_E2E__)); + await expect(player).toHaveCount(0); + expect(graphPosts).toBe(0); + }); +} + test('required media file editors block Run before upload and after clearing or reopening', async ({ page }) => { await ensureFrontend(); await installMockRoutes(page); From 1cd170f27b0cdfaa1a603e6b55d89bfe84337766 Mon Sep 17 00:00:00 2001 From: Sourav Das Date: Tue, 3 Nov 2026 14:31:08 +0530 Subject: [PATCH 164/440] Record measured managed-input preview bundle cost --- scripts/bundle-budget.mjs | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/scripts/bundle-budget.mjs b/scripts/bundle-budget.mjs index 947df09d..050fb2ec 100644 --- a/scripts/bundle-budget.mjs +++ b/scripts/bundle-budget.mjs @@ -1,3 +1,9 @@ +// Shared managed input previews measure largest/startup/deferred gzip +// 496215/674704/329829 versus 496087/674572/329587. Only studio-templates.js +// changes after cache-version normalization; all 90 deferred assets differ +// only in their versioned imports. Add the measured 128/132/242 bytes, keeping +// prior 18/19/169-byte headroom, four startup assets and the 64 KiB chunk cap. +// No dependency, loading-boundary, minifier or model/runtime change. // Required literal media-file readiness adds 103/102 startup gzip bytes over // 495984/674470; deferred gzip falls from 329666 to 329587. Retain 18/19 bytes // headroom, the same 4 startup/90 deferred assets and both deferred caps. No new @@ -314,6 +320,7 @@ const SOURCE_LICENSES = new URL('../public/THIRD_PARTY_LICENSES.txt', import.met // Scoped video receipts and compatible adapter messaging measure 494870 bytes // in the largest startup asset (+46 over the cap). Add 64 bytes, no dependencies. const MAX_STARTUP_CHUNK_GZIP_BYTES = + 128 + 103 + 116 + 202 + @@ -455,6 +462,7 @@ const MAX_STARTUP_CHUNK_GZIP_BYTES = // The same build measures 673359 aggregate startup bytes (+45 over the cap). // Keep 19 bytes of headroom; deferred limits and loading boundaries stay fixed. const MAX_STARTUP_GZIP_BYTES = + 132 + 102 + 113 + 202 + @@ -677,6 +685,7 @@ const MAX_DEFERRED_CHUNK_GZIP_BYTES = 64 * 1024; // 321033-byte cap, preserving 39 bytes of headroom at 321227. Startup caps, the // 65536-byte deferred chunk cap, dependencies and loading boundaries stay fixed. const MAX_DEFERRED_GZIP_BYTES = + 242 + 297 + 1147 + 1043 + From a0145878d7249100c75edf042aa658a844c0edd1 Mon Sep 17 00:00:00 2001 From: Sourav Das Date: Tue, 3 Nov 2026 16:30:06 +0530 Subject: [PATCH 165/440] Verify retained video frame identity across reviewed FFmpeg producers --- docs/template-gallery-assets.md | 15 +++++ scripts/template-gallery-harness.mjs | 76 +++++++++++++++++++++-- scripts/template-gallery-harness.test.mjs | 40 ++++++++++++ 3 files changed, 127 insertions(+), 4 deletions(-) diff --git a/docs/template-gallery-assets.md b/docs/template-gallery-assets.md index 14642626..32cf2cf8 100644 --- a/docs/template-gallery-assets.md +++ b/docs/template-gallery-assets.md @@ -546,6 +546,21 @@ requires the complete Gallery. This check does not approve held content, replace anonymous `verify-remote --full`, or establish new execution or quality evidence. +## Decoded-video identity across reviewed FFmpeg producers + +Historical `sha256:decoded-video-framemd5` identities hash FFmpeg's complete +frame-checksum output, including its software banner. The reviewed Linux +`Lavf61.1.100` and Windows `Lavf61.7.100` producers can emit identical stream +metadata, timestamps and per-frame checksums with different software comments. +The verifier retains the actual raw digest and accepts a historical digest only +when changing that single banner to a reviewed producer reproduces it exactly. +It reports each use in `decodedHashCompatibilityMatches`. All remaining checksum +bytes, published-file SHA-256, audio PCM, provenance and review checks stay strict. +For AV identity, only a matching historical video identity and the actual decoded +audio identity can reproduce the recorded AV hash. No media, manifest hash or +approval record is rewritten. This compatibility does not qualify a changed +template recipe; stale creator locks and other release failures remain blocking. + ## Live generation batching The maintainer-only Gallery runner may reuse a loaded pipeline only for consecutive templates with the same normalized Studio `modelType`. The first template, every model boundary, and every failed template resets the reuse chain and invokes accelerator cleanup. Template inputs come from an explicit checked-in input map; the runner never acquires or repairs a model during execution. Use `npm run gallery:run -- --help` for the current options rather than retaining dated host-specific command batches in documentation. diff --git a/scripts/template-gallery-harness.mjs b/scripts/template-gallery-harness.mjs index 4dd02e31..23ed1e59 100644 --- a/scripts/template-gallery-harness.mjs +++ b/scripts/template-gallery-harness.mjs @@ -307,6 +307,55 @@ export function decodedAudiovisualMediaHash(decodedMediaHash, decodedAudioHash) )}`; } +// Published v1 frame hashes include the muxer's software comment. These two +// reviewed producers emit identical frame records but different banner bytes. +// Retain the actual digest and reconstruct only this nonsemantic header for +// compatibility; all stream metadata, timestamps and frame checksums stay exact. +const REVIEWED_FRAMEMD5_MUXERS = ['Lavf61.1.100', 'Lavf61.7.100']; + +export function decodedVideoFrameHashCompatibility(bytes) { + const rawHash = `sha256:decoded-video-framemd5:${sha256(bytes)}`; + const text = bytes.toString('utf8'); + const software = [...text.matchAll(/^#software: (Lavf\d+\.\d+\.\d+)(?=\r?$)/gm)]; + const rows = text.split(/\r?\n/).filter((line) => line.trim() && !line.startsWith('#')); + const valid = + /^#format: frame checksums\r?$/m.test(text) && + /^#version: 2\r?$/m.test(text) && + /^#hash: MD5\r?$/m.test(text) && + software.length === 1 && + rows.length > 0 && + rows.every((line) => { + const fields = line.split(','); + return fields.length === 6 && /^[a-f0-9]{32}$/i.test(fields[5].trim()); + }); + return { + scheme: 'framemd5-software-header-v1', + rawHash, + observedMuxer: software.length === 1 ? software[0][1] : null, + variants: valid + ? [...new Set([software[0][1], ...REVIEWED_FRAMEMD5_MUXERS])].map((muxer) => ({ + muxer, + hash: `sha256:decoded-video-framemd5:${sha256( + Buffer.from(text.replace(software[0][0], `#software: ${muxer}`)), + )}`, + })) + : [], + }; +} + +export function decodedMediaHashMatches(decoded, expected) { + if (typeof expected !== 'string' || !decoded) return false; + if (decoded.hash === expected) return true; + const compatibility = decoded.frameHashCompatibility; + return ( + /^sha256:decoded-video-framemd5:[a-f0-9]{64}$/.test(decoded.hash ?? '') && + compatibility?.scheme === 'framemd5-software-header-v1' && + compatibility.rawHash === decoded.hash && + Array.isArray(compatibility.variants) && + compatibility.variants.some((variant) => variant.hash === expected) + ); +} + function redactLocalPath(value) { const isWindowsPath = /^[a-z]:[\\/]/i.test(value); const isUserScopedPosixPath = /^\/(?:Users|home|tmp|private\/tmp|var\/tmp)\//.test(value); @@ -1452,7 +1501,8 @@ function decodedVideoHash(videoPath, args) { isolatedLumaFlashes += 1; } } - const decodedMediaHash = `sha256:decoded-video-framemd5:${sha256(frameMd5)}`; + const frameHashCompatibility = decodedVideoFrameHashCompatibility(frameMd5); + const decodedMediaHash = frameHashCompatibility.rawHash; return { width: metadata.width, height: metadata.height, @@ -1480,6 +1530,7 @@ function decodedVideoHash(videoPath, args) { nearBlackFrameRatios.filter((ratio) => ratio > 0.35).length / nearBlackFrameRatios.length, isolatedLumaFlashRatio: frameCount > 2 ? isolatedLumaFlashes / (frameCount - 2) : 0, hash: decodedMediaHash, + frameHashCompatibility, audiovisualMediaHash: decodedAudiovisualMediaHash(decodedMediaHash, embeddedAudio?.hash), }; } @@ -2270,6 +2321,7 @@ export async function verifyGallery( const templatesById = new Map(runtime.templates.map((template) => [template.id, template])); const manifest = readManifest(join(root, 'public', 'template-gallery', 'manifest.json')); const errors = validateManifestShape(manifest); + const decodedHashCompatibilityMatches = []; const scope = galleryVerificationScope(root); const unavailable = new Set(scope.withheld.map((asset) => asset.path)); const isWithheld = (path) => typeof path === 'string' && unavailable.has(path.replace(/^\//, '')); @@ -2358,17 +2410,32 @@ export async function verifyGallery( const decoded = isWithheld(entry.outputPath) ? null : await decodeMedia(outputPath, entry.mediaType ?? 'image', args); - if (decoded && decoded.hash !== entry.mediaHash) { + const decodedIdentityMatches = decodedMediaHashMatches(decoded, entry.mediaHash); + if (decoded && !decodedIdentityMatches) { errors.push(`${entry.templateId} decoded hash mismatch: expected ${entry.mediaHash}, got ${decoded.hash}`); } + if (decodedIdentityMatches && decoded.hash !== entry.mediaHash) { + decodedHashCompatibilityMatches.push({ + templateId: entry.templateId, + expected: entry.mediaHash, + actualRawHash: decoded.hash, + observedMuxer: decoded.frameHashCompatibility.observedMuxer, + matchingHistoricalMuxer: decoded.frameHashCompatibility.variants.find( + (variant) => variant.hash === entry.mediaHash, + ).muxer, + }); + } if (decoded && entry.decodedAudioHash && decoded.embeddedAudio?.hash !== entry.decodedAudioHash) { errors.push( `${entry.templateId} decoded audio hash mismatch: expected ${entry.decodedAudioHash}, got ${decoded.embeddedAudio?.hash ?? 'missing'}`, ); } - if (decoded && entry.audiovisualMediaHash && decoded.audiovisualMediaHash !== entry.audiovisualMediaHash) { + const audiovisualMediaHash = decodedIdentityMatches + ? decodedAudiovisualMediaHash(entry.mediaHash, decoded?.embeddedAudio?.hash) + : decoded?.audiovisualMediaHash; + if (decoded && entry.audiovisualMediaHash && audiovisualMediaHash !== entry.audiovisualMediaHash) { errors.push( - `${entry.templateId} audiovisual hash mismatch: expected ${entry.audiovisualMediaHash}, got ${decoded.audiovisualMediaHash ?? 'missing'}`, + `${entry.templateId} audiovisual hash mismatch: expected ${entry.audiovisualMediaHash}, got ${audiovisualMediaHash ?? 'missing'}`, ); } const template = templatesById.get(entry.templateId); @@ -2581,6 +2648,7 @@ export async function verifyGallery( verifiedExamples: errors.length === 0 ? availableExamples : 0, withheldExamples, withheldAssets: scope.withheld, + decodedHashCompatibilityMatches, errors, ok: errors.length === 0, }; diff --git a/scripts/template-gallery-harness.test.mjs b/scripts/template-gallery-harness.test.mjs index 7f740ee6..3ddf3a56 100644 --- a/scripts/template-gallery-harness.test.mjs +++ b/scripts/template-gallery-harness.test.mjs @@ -23,6 +23,8 @@ import { canonicalJsonHash, cardPreviewContractErrors, decodedAudiovisualMediaHash, + decodedMediaHashMatches, + decodedVideoFrameHashCompatibility, galleryExpectedOutput, loadTemplateRuntime, mergeManifestEntries, @@ -41,6 +43,44 @@ import { canonicalJsonHash as storageJsonHash } from './canonical-json.mjs'; let runtime; +test('decoded video identity tolerates only the reviewed FFmpeg software banner difference', () => { + const original = Buffer.from( + '#format: frame checksums\n#version: 2\n#hash: MD5\n#software: Lavf61.1.100\n' + + '#tb 0: 1/24\n#media_type 0: video\n#dimensions 0: 2x2\n' + + '#stream#, dts, pts, duration, size, hash\n0, 0, 0, 1, 6, 11111111111111111111111111111111\n', + ); + const expected = `sha256:decoded-video-framemd5:${createHash('sha256').update(original).digest('hex')}`; + const current = Buffer.from(original.toString().replace('Lavf61.1.100', 'Lavf61.7.100')); + const compatibility = decodedVideoFrameHashCompatibility(current); + const decoded = { hash: compatibility.rawHash, frameHashCompatibility: compatibility }; + assert.notEqual(decoded.hash, expected); + assert.equal(decodedMediaHashMatches(decoded, expected), true); + assert.equal(compatibility.observedMuxer, 'Lavf61.7.100'); + assert.equal(decodedMediaHashMatches({ hash: 'decoded:image' }, 'decoded:image'), true); + assert.equal( + decodedMediaHashMatches({ hash: 'decoded:image', frameHashCompatibility: compatibility }, expected), + false, + ); + assert.equal(decodedMediaHashMatches({ ...decoded, hash: 'wrong' }, expected), false); + assert.equal(decodedMediaHashMatches(decoded, undefined), false); + for (const changed of [ + current.toString().replace('11111111111111111111111111111111', '21111111111111111111111111111111'), + current.toString().replace('0, 0, 0, 1, 6,', '0, 0, 1, 1, 6,'), + current.toString().replace('#dimensions 0: 2x2', '#dimensions 0: 4x4'), + current.toString().replace('#tb 0: 1/24', '#tb 0: 1/25'), + current.toString().replace('#software: Lavf61.7.100', '#software: unknown'), + current.toString().replace('#hash: MD5', '#hash: SHA256'), + current.toString().replace('#software: Lavf61.7.100', '#software: Lavf61.7.100\n#software: Lavf61.7.100'), + ]) { + const candidate = decodedVideoFrameHashCompatibility(Buffer.from(changed)); + assert.equal( + decodedMediaHashMatches({ hash: candidate.rawHash, frameHashCompatibility: candidate }, expected), + false, + ); + } + assert.equal(decodedMediaHashMatches({ hash: compatibility.rawHash }, expected), false); +}); + // Synthetic media and receipts exercise the verifier; they claim no model output or rights approval. function subsetVerificationFixture() { const root = mkdtempSync(join(tmpdir(), 'modiff-gallery-subset-')); From 66b515280862956a598e6c3ce0b142b2b1932fd1 Mon Sep 17 00:00:00 2001 From: Sourav Das Date: Tue, 3 Nov 2026 16:45:23 +0530 Subject: [PATCH 166/440] Ignore removed module bytecode in release source inspection --- docs/template-gallery-assets.md | 6 +++++ scripts/backend-node-registry.mjs | 9 ++++++- scripts/backend-node-registry.test.mjs | 37 ++++++++++++++++++++++++++ 3 files changed, 51 insertions(+), 1 deletion(-) diff --git a/docs/template-gallery-assets.md b/docs/template-gallery-assets.md index 32cf2cf8..d8eda694 100644 --- a/docs/template-gallery-assets.md +++ b/docs/template-gallery-assets.md @@ -50,6 +50,12 @@ private retained evidence; public asset updates still follow the publication procedure below. Missing current execution or quality proof requires recovery and review of matching receipts or a genuinely accepted new run. +The release-contract generator also inspects the bundled backend node sources. +It ignores removed module directories only when they are empty or contain solely +the residual `__pycache__` directory. Other missing initializers, Python sources +or unresolved registry declarations remain errors; cached bytecode is never +imported to reconstruct a missing module. + Choose a user or organization namespace where you have write permission. The recommended repository name is `/modiff-template-gallery`. The repository must remain public for unauthenticated open-source use. diff --git a/scripts/backend-node-registry.mjs b/scripts/backend-node-registry.mjs index 9f3c4921..92d9efe8 100644 --- a/scripts/backend-node-registry.mjs +++ b/scripts/backend-node-registry.mjs @@ -153,7 +153,14 @@ export function readBundledBackendNodeRegistry(backendRoot) { for (const moduleEntry of modules) { const moduleRoot = join(modulesRoot, moduleEntry.name); const initPath = join(moduleRoot, '__init__.py'); - if (!existsSync(initPath)) throw new Error(`Bundled backend module has no __init__.py: ${moduleRoot}`); + if (!existsSync(initPath)) { + // A checkout can retain empty module directories or bytecode after the + // source was removed. Runtime discovery registers no nodes from them. + // Any other content is an incomplete module and must still fail closed. + const contents = readdirSync(moduleRoot, { withFileTypes: true }); + if (contents.every((entry) => entry.isDirectory() && entry.name === '__pycache__')) continue; + throw new Error(`Bundled backend module has no __init__.py: ${moduleRoot}`); + } const initSource = readFileSync(initPath, 'utf8'); const actions = new Set(precomputedModuleMapKeys(initSource, initPath)); for (const stem of moduleParseStems(initSource, initPath)) { diff --git a/scripts/backend-node-registry.test.mjs b/scripts/backend-node-registry.test.mjs index d03c6452..3551789f 100644 --- a/scripts/backend-node-registry.test.mjs +++ b/scripts/backend-node-registry.test.mjs @@ -73,3 +73,40 @@ test('unresolvable precomputed backend registries fail closed', () => { rmSync(root, { recursive: true, force: true }); } }); + +test('removed modules with only residual bytecode do not block the bundled registry', () => { + const root = mkdtempSync(join(tmpdir(), 'modiff-backend-registry-')); + try { + moduleFixture(root, 'Direct', 'from .main import *\n', { + 'main.py': 'class Load(NodeBase):\n pass\n', + }); + mkdirSync(join(root, 'modules', 'Empty'), { recursive: true }); + const cache = join(root, 'modules', 'Removed', '__pycache__'); + mkdirSync(cache, { recursive: true }); + writeFileSync(join(cache, '__init__.cpython-312.pyc'), 'not executable source'); + assert.deepEqual([...readBundledBackendNodeRegistry(root)], ['modules.Direct.Load']); + + writeFileSync(join(root, 'modules', 'Removed', 'main.py'), 'class Hidden(NodeBase):\n pass\n'); + assert.throws(() => readBundledBackendNodeRegistry(root), /has no __init__\.py/); + } finally { + rmSync(root, { recursive: true, force: true }); + } +}); + +test('non-cache files and directories without an initializer still fail closed', () => { + for (const name of ['notes.txt', 'nested']) { + const root = mkdtempSync(join(tmpdir(), 'modiff-backend-registry-')); + try { + moduleFixture(root, 'Direct', 'from .main import *\n', { + 'main.py': 'class Load(NodeBase):\n pass\n', + }); + const moduleRoot = join(root, 'modules', 'Incomplete'); + mkdirSync(moduleRoot); + if (name === 'nested') mkdirSync(join(moduleRoot, name)); + else writeFileSync(join(moduleRoot, name), 'source may be missing'); + assert.throws(() => readBundledBackendNodeRegistry(root), /has no __init__\.py/); + } finally { + rmSync(root, { recursive: true, force: true }); + } + } +}); From 539d612999675947e0d45bc962681218d78fbe2d Mon Sep 17 00:00:00 2001 From: Sourav Das Date: Wed, 4 Nov 2026 00:08:31 +0530 Subject: [PATCH 167/440] Bind hardware qualification to executed device and original runtime evidence --- docs/template-gallery-assets.md | 19 +++ package.json | 2 +- scripts/hardware-execution-device.test.mjs | 63 ++++++++ scripts/hardware-qualification-runtime.mjs | 42 ++++++ scripts/hardware-qualification.mjs | 55 +++---- scripts/hardware-qualification.test.mjs | 160 ++++++++++++++++----- scripts/hardware-runtime-identity.test.mjs | 99 +++++++++++++ scripts/release-qualification-policy.mjs | 32 +++++ 8 files changed, 406 insertions(+), 66 deletions(-) create mode 100644 scripts/hardware-execution-device.test.mjs create mode 100644 scripts/hardware-qualification-runtime.mjs create mode 100644 scripts/hardware-runtime-identity.test.mjs diff --git a/docs/template-gallery-assets.md b/docs/template-gallery-assets.md index d8eda694..b56e0aa7 100644 --- a/docs/template-gallery-assets.md +++ b/docs/template-gallery-assets.md @@ -56,6 +56,25 @@ the residual `__pycache__` directory. Other missing initializers, Python sources or unresolved registry declarations remain errors; cached bytecode is never imported to reconstruct a missing module. +Hardware registration uses the run's measured execution device and backend, +not the first accelerator listed by its host. CPU execution cannot qualify a +CUDA, ROCm, XPU or MPS profile. GPU evidence must identify the actual device +index in captured physical device metadata, with a matching backend. Missing +or contradictory measurements remain blocked; old receipts are not rewritten +to supply them. A conditional/preview profile still records an observation, +not supported-profile qualification. Runtime installation tiers and CI checks +alone do not establish physical model qualification. + +Current health reports use a resource fingerprint, while completed tasks retain +a separate execution fingerprint. Hardware registration compares the resource +domain to health, then binds the unchanged execution identity and normalized +runtime to original provenance and the worker's exact source inventory. It does +not replace an execution hash with a resource hash. Retained live-proof artifact +directories must include the original `run-terminal.json`, `backend-health.json` +and `run-provenance.json` alongside `status.json`; the completed task must own +that provenance. The full provenance validator still applies. A status marker +or an old output file alone cannot establish qualification. + Choose a user or organization namespace where you have write permission. The recommended repository name is `/modiff-template-gallery`. The repository must remain public for unauthenticated open-source use. diff --git a/package.json b/package.json index 8f41eac2..3d486907 100644 --- a/package.json +++ b/package.json @@ -84,7 +84,7 @@ "test:task-templates": "node --test scripts/task-template-contracts.test.mjs", "test:template-assets:local": "node --test scripts/template-default-inputs.test.mjs", "test:template-quality": "node --test scripts/template-quality.test.mjs", - "test:live-qwen-proof": "node --test scripts/live-qwen-proof.test.mjs scripts/canonical-runtime-hints.test.mjs scripts/hardware-qualification.test.mjs scripts/release-qualification-policy.test.mjs scripts/resource-qualification.test.mjs scripts/route-resource-qualification.test.mjs scripts/resource-qualification-campaign.test.mjs scripts/template-qualification.test.mjs scripts/release-qualification-campaign.test.mjs", + "test:live-qwen-proof": "node --test scripts/live-qwen-proof.test.mjs scripts/canonical-runtime-hints.test.mjs scripts/hardware-qualification.test.mjs scripts/hardware-execution-device.test.mjs scripts/hardware-runtime-identity.test.mjs scripts/release-qualification-policy.test.mjs scripts/resource-qualification.test.mjs scripts/route-resource-qualification.test.mjs scripts/resource-qualification-campaign.test.mjs scripts/template-qualification.test.mjs scripts/release-qualification-campaign.test.mjs", "test:release-contract": "node --test scripts/backend-installer-contract.test.mjs scripts/backend-node-registry.test.mjs scripts/release-contract.test.mjs scripts/template-asset-release-contract.test.mjs", "test:live-backend-contract": "node scripts/live-backend-contract.mjs", "test:gallery-harness": "node --test scripts/template-gallery-harness.test.mjs", diff --git a/scripts/hardware-execution-device.test.mjs b/scripts/hardware-execution-device.test.mjs new file mode 100644 index 00000000..69f8380e --- /dev/null +++ b/scripts/hardware-execution-device.test.mjs @@ -0,0 +1,63 @@ +import assert from 'node:assert/strict'; +import test from 'node:test'; +import { hardwareExecutionDevice } from './release-qualification-policy.mjs'; + +function evidence(profile, device, backend, devices = []) { + const family = String(device).split(':')[0]; + return [ + { runtime_profile: { installed: profile }, packages: { torch: { [`${family}_devices`]: devices } } }, + { execution: { measurement: { device, backend } } }, + ]; +} + +test('a CPU run on a CUDA host cannot qualify the NVIDIA profile', () => { + const args = evidence('nvidia-cuda', 'cpu', 'cpu'); + args[0].packages.torch.cuda_devices = [{ index: 0, name: 'NVIDIA GPU', backend: 'cuda' }]; + assert.throws(() => hardwareExecutionDevice(...args), /does not match/); +}); + +test('record the executed accelerator index, preserving captured metadata', () => { + const devices = [ + { index: 0, name: 'Unused GPU', backend: 'cuda' }, + { index: 1, name: 'Executed GPU', backend: 'cuda', total_memory: 1234 }, + ]; + const args = evidence('nvidia-cuda', 'cuda:1', 'cuda', devices); + const before = structuredClone(args); + assert.equal(hardwareExecutionDevice(...args), devices[1]); + assert.deepEqual(args, before); +}); + +for (const [profile, device, backend] of [ + ['amd-rocm-linux', 'cuda:0', 'rocm'], + ['amd-instinct-rocm-linux', 'cuda:0', 'rocm'], + ['amd-pytorch-windows', 'cuda:0', 'rocm'], + ['intel-xpu', 'xpu:0', 'xpu'], + ['apple-mps', 'mps', 'mps'], +]) { + test(`${profile} uses the actual measured backend`, () => { + const physical = { index: 0, name: 'Physical accelerator', backend }; + assert.equal(hardwareExecutionDevice(...evidence(profile, device, backend, [physical])), physical); + }); +} + +test('CPU qualification has CPU identity even if a host exposes a GPU', () => { + const args = evidence('cpu', 'cpu:0', 'cpu'); + args[0].packages.torch.cuda_devices = [{ index: 0, name: 'Unused GPU', backend: 'cuda' }]; + assert.equal(hardwareExecutionDevice(...args).name, 'cpu'); +}); + +for (const [label, args] of [ + ['missing measurement', [{ runtime_profile: { installed: 'nvidia-cuda' } }, {}]], + ['ROCm cannot establish NVIDIA', evidence('nvidia-cuda', 'cuda:0', 'rocm')], + ['CUDA cannot establish ROCm', evidence('amd-rocm-linux', 'cuda:0', 'cuda')], + ['missing executed index', evidence('nvidia-cuda', 'cuda:1', 'cuda', [{ index: 0, name: 'Other', backend: 'cuda' }])], + [ + 'contradictory physical backend', + evidence('nvidia-cuda', 'cuda:0', 'cuda', [{ index: 0, name: 'Other', backend: 'rocm' }]), + ], + ['unknown profile', evidence('guessed-gpu', 'cuda:0', 'cuda')], + ['malformed index', evidence('nvidia-cuda', 'cuda:-1', 'cuda')], + ['nonzero CPU index', evidence('cpu', 'cpu:1', 'cpu')], +]) { + test(`reject ${label}`, () => assert.throws(() => hardwareExecutionDevice(...args))); +} diff --git a/scripts/hardware-qualification-runtime.mjs b/scripts/hardware-qualification-runtime.mjs new file mode 100644 index 00000000..0ec308de --- /dev/null +++ b/scripts/hardware-qualification-runtime.mjs @@ -0,0 +1,42 @@ +import { backendSourceEvidence, normalizeBackendRuntime } from './live-proof-provenance.mjs'; + +export function assertHardwareRuntimeMatches(observed, health, provenance) { + const reported = typeof observed === 'string' ? observed : observed?.fingerprint; + if ( + Array.isArray(observed) || + typeof reported !== 'string' || + !reported.trim() || + typeof health?.runtime_fingerprint !== 'string' || + !health.runtime_fingerprint.trim() + ) + throw new Error('Gallery run or current backend is missing a runtime fingerprint.'); + + if (observed && typeof observed === 'object' && Object.hasOwn(observed, 'resourceFingerprint')) { + // Health reports the resource domain. Retain the separate execution domain + // and prove its source and normalized runtime; never substitute one hash. + if ( + typeof observed.resourceFingerprint !== 'string' || + !observed.resourceFingerprint.trim() || + health.runtime_fingerprint !== observed.resourceFingerprint + ) { + throw new Error('Current backend runtime does not match the completed gallery run.'); + } + if ( + provenance?.runtime?.reportedFingerprint !== reported || + normalizeBackendRuntime(observed, provenance?.runtime?.deterministic?.settings).lockFingerprint !== + provenance?.runtimeFingerprint + ) { + throw new Error('Gallery execution runtime does not match retained provenance.'); + } + const source = provenance?.runtime?.backendSource; + for (const runtimeFingerprint of [observed, { backendSource: health?.backend_source }]) { + const evidence = backendSourceEvidence({ before: source, after: source, runtimeFingerprint }); + if (evidence.blockers.length) + throw new Error(`Gallery hardware source does not match: ${evidence.blockers.join(' ')}`); + } + return; + } + if (health.runtime_fingerprint !== reported) { + throw new Error('Current backend runtime does not match the completed gallery run.'); + } +} diff --git a/scripts/hardware-qualification.mjs b/scripts/hardware-qualification.mjs index 0f209654..f5a1127a 100644 --- a/scripts/hardware-qualification.mjs +++ b/scripts/hardware-qualification.mjs @@ -3,7 +3,9 @@ import { existsSync, readFileSync, writeFileSync } from 'node:fs'; import { dirname, join, relative, resolve } from 'node:path'; import { fileURLToPath } from 'node:url'; -import { captureQualificationStatus } from './release-qualification-policy.mjs'; +import { captureQualificationStatus, hardwareExecutionDevice } from './release-qualification-policy.mjs'; +import { assertHardwareRuntimeMatches } from './hardware-qualification-runtime.mjs'; +import { validateRunProvenance } from './live-proof-provenance.mjs'; const SCRIPT_DIR = dirname(fileURLToPath(import.meta.url)); const CLIENT_ROOT = resolve(SCRIPT_DIR, '..'); @@ -52,31 +54,13 @@ async function readGalleryEvidence(path) { const response = await fetch(`${backendUrl}/health`, { signal: AbortSignal.timeout(5_000) }); if (!response.ok) throw new Error(`Backend health returned HTTP ${response.status}.`); const health = await response.json(); - // Current task receipts retain the full runtime observation. Compare its - // reported identity without replacing that object or the provenance lock. - // Older Gallery reports stored this same reported identity as a string. - const observedRuntime = output.terminalTask.runtimeFingerprint; - const reportedFingerprint = - typeof observedRuntime === 'string' - ? observedRuntime - : observedRuntime && typeof observedRuntime === 'object' && !Array.isArray(observedRuntime) - ? observedRuntime.fingerprint - : null; - if ( - typeof reportedFingerprint !== 'string' || - !reportedFingerprint.trim() || - typeof health.runtime_fingerprint !== 'string' || - !health.runtime_fingerprint.trim() - ) { - throw new Error('Gallery run or current backend is missing a runtime fingerprint.'); - } - if (health.runtime_fingerprint !== reportedFingerprint) { - throw new Error('Current backend runtime does not match the completed gallery run.'); - } + const provenance = readJson(provenancePath); + if (output.terminalTask.task_id !== provenance.taskId) throw new Error('Hardware task and provenance IDs differ.'); + assertHardwareRuntimeMatches(output.terminalTask.runtimeFingerprint, health, provenance); return { status: { step: 'success' }, health, - provenance: readJson(provenancePath), + provenance, provenancePath, websocketEventsPath: output.evidence?.websocketEvents ? required(resolve(output.evidence.websocketEvents), 'Gallery websocket evidence') @@ -96,10 +80,18 @@ async function readQualificationEvidence() { const statusPath = required(join(ARTIFACT_ROOT, 'status.json'), 'Proof status'); const healthPath = required(join(ARTIFACT_ROOT, 'backend-health.json'), 'Backend health'); const provenancePath = required(join(ARTIFACT_ROOT, 'run-provenance.json'), 'Run provenance'); + const health = readJson(healthPath); + const provenance = readJson(provenancePath); + const original = readJson(required(join(ARTIFACT_ROOT, 'run-terminal.json'), 'Original completed task receipt')); + const task = original.task ?? original; + if (task.status !== 'completed' || task.task_id !== provenance.taskId) { + throw new Error('Retained hardware task is not the completed provenance owner.'); + } + assertHardwareRuntimeMatches(task.runtimeFingerprint, health, provenance); return { status: readJson(statusPath), - health: readJson(healthPath), - provenance: readJson(provenancePath), + health, + provenance, provenancePath, websocketEventsPath: existsSync(join(ARTIFACT_ROOT, 'websocket-events.json')) ? join(ARTIFACT_ROOT, 'websocket-events.json') @@ -139,18 +131,17 @@ if (status.step !== 'success') throw new Error(`Live proof is not complete; curr if (health.ready !== true || health.runtime_profile?.execution_ready !== true) { throw new Error('Live proof backend did not report an execution-ready managed profile.'); } -if (Number(provenance.schemaVersion) < 2 || (provenance.blockers ?? []).length > 0) { +if ( + Number(provenance.schemaVersion) < 2 || + (provenance.blockers ?? []).length > 0 || + validateRunProvenance(provenance).length > 0 +) { throw new Error('Live proof does not contain a complete v2 qualification receipt.'); } const profileId = health.runtime_profile.installed; const torch = health.packages?.torch ?? {}; -const measuredDevice = String(provenance.execution?.measurement?.device ?? ''); -const device = measuredDevice.startsWith('xpu') - ? (torch.xpu_devices?.[0] ?? {}) - : measuredDevice.startsWith('mps') - ? (torch.mps_devices?.[0] ?? {}) - : (torch.cuda_devices?.[0] ?? {}); +const device = hardwareExecutionDevice(health, provenance); const executionPlan = provenance.graph?.executionPlan ?? {}; const recipeHash = provenance.graph?.executionPlanHash ?? diff --git a/scripts/hardware-qualification.test.mjs b/scripts/hardware-qualification.test.mjs index ce6d7360..c9505964 100644 --- a/scripts/hardware-qualification.test.mjs +++ b/scripts/hardware-qualification.test.mjs @@ -5,11 +5,23 @@ import { tmpdir } from 'node:os'; import { dirname, join, resolve } from 'node:path'; import { spawn } from 'node:child_process'; import test from 'node:test'; +import { createRunProvenance, sha256Value } from './live-proof-provenance.mjs'; +import { protocolFactoryArguments } from './canonical-provenance-fixtures.mjs'; -const SCRIPT = resolve('scripts/hardware-qualification.mjs'); +const SCRIPT = resolve(process.env.MODIFF_HARDWARE_QUALIFIER_SCRIPT || 'scripts/hardware-qualification.mjs'); // Synthetic values in the actual retained /runs runtimeFingerprint shape. These // exercise the recorder contract; they are never physical qualification evidence. +const sourceInventory = { gitCommit: 'a'.repeat(40), files: [{ path: 'main.py', sha256: 'b'.repeat(64) }] }; +sourceInventory.fingerprint = sha256Value('backend-source-v1', sourceInventory); +const sourceAttestation = { + schemaVersion: 1, + claim: 'process_start_backend_source_identity', + gitCommit: sourceInventory.gitCommit, + fingerprint: sourceInventory.fingerprint, + fileCount: 1, + capturedAt: '2026-07-28T00:00:00Z', +}; const structuredFingerprint = { fingerprint: 'runtime-1', resourceFingerprint: 'resource-runtime-1', @@ -17,17 +29,56 @@ const structuredFingerprint = { torch: { cuda_available: true }, work_dir: 'unit-work', data_dir: 'unit-data', - backendSource: { fingerprint: 'unit-source' }, + backendSource: sourceAttestation, hardware: { peakAccountingVersion: 2 }, }; -for (const { name, fingerprint, healthFingerprint = 'runtime-1', error } of [ +for (const { + name, + fingerprint, + healthFingerprint = fingerprint?.resourceFingerprint ?? 'runtime-1', + measuredDevice = 'cuda:0', + measuredBackend = 'cuda', + retained = false, + missingTerminal = false, + terminalId = 'task-1', + error, +} of [ { name: 'legacy string', fingerprint: 'runtime-1' }, { name: 'structured current task', fingerprint: structuredFingerprint }, + { name: 'retained original completed task', fingerprint: structuredFingerprint, retained: true }, + { + name: 'retained status cannot replace original task', + fingerprint: structuredFingerprint, + retained: true, + missingTerminal: true, + error: /Original completed task receipt is missing/, + }, + { + name: 'retained task must own the provenance', + fingerprint: structuredFingerprint, + retained: true, + terminalId: 'other-task', + error: /not the completed provenance owner/, + }, + { + name: 'CPU evidence cannot qualify a GPU host', + fingerprint: structuredFingerprint, + measuredDevice: 'cpu', + measuredBackend: 'cpu', + error: /Executed device\/backend does not match/, + }, + { + name: 'executed GPU index cannot fall back to the first GPU', + fingerprint: structuredFingerprint, + measuredDevice: 'cuda:1', + error: /Executed accelerator is missing/, + }, { name: 'different legacy runtime', fingerprint: 'runtime-2', error: /does not match/ }, { name: 'different structured runtime', fingerprint: { ...structuredFingerprint, fingerprint: 'runtime-2' }, + healthFingerprint: 'different-resource-runtime', error: /does not match/, }, { name: 'missing task runtime', fingerprint: undefined, error: /missing a runtime fingerprint/ }, @@ -54,35 +105,56 @@ for (const { name, fingerprint, healthFingerprint = 'runtime-1', error } of [ const provenancePath = join(artifact, 'run.provenance.json'); const websocketEventsPath = join(artifact, 'run.websocket-events.json'); const reportPath = join(artifact, 'report.json'); + const apiGraph = { + nodes: { + loader: { + module: 'modules.DiffusersAudio', + action: 'LoadPipeline', + params: { + model_id: { value: { source: 'hub', value: 'unit/model' } }, + revision: { value: '1'.repeat(40) }, + }, + }, + }, + paths: [['loader']], + runtimeHints: { + modelType: 'AceStepAudioPipeline', + dtype: 'bfloat16', + offloadMode: 'none', + quantizationMode: 'none', + }, + }; + const args = protocolFactoryArguments(apiGraph); + Object.assign(args, { + backendSource: sourceInventory, + taskId: 'task-1', + capturedAt: '2026-07-28T03:17:41.922Z', + runtimeFingerprint: + typeof fingerprint?.fingerprint === 'string' && fingerprint?.backendSource + ? fingerprint + : { + ...structuredFingerprint, + fingerprint: typeof fingerprint === 'string' && fingerprint ? fingerprint : 'runtime-1', + }, + executionReceipt: { + runtimeHints: { autoResourceCandidateId: 'example-native' }, + runtimeMeasurement: { + device: measuredDevice, + backend: measuredBackend, + elapsedSeconds: 1.5, + peakAllocatedBytes: 1024, + }, + }, + }); + const provenance = createRunProvenance(args); + assert.deepEqual(provenance.blockers, []); + const stableRuntime = provenance.runtimeFingerprint; mkdirSync(dirname(join(backend, 'data', 'qualification', 'release', 'placeholder')), { recursive: true, }); mkdirSync(artifact, { recursive: true }); - writeFileSync( - provenancePath, - JSON.stringify({ - schemaVersion: 2, - blockers: [], - taskId: 'task-1', - capturedAt: '2026-07-28T03:17:41.922Z', - runtimeFingerprint: 'stable-runtime', - modelRevision: 'model@1234567890123456789012345678901234567890', - mediaHash: 'sha256:decoded-rgba:test', - graph: { - executionPlan: { - modelType: 'AceStepAudioPipeline', - offloadMode: 'none', - quantizationMode: 'none', - }, - }, - execution: { - resourceCandidateId: 'example-native', - elapsedSeconds: 1.5, - peakMemoryBytes: 1024, - }, - }), - ); + writeFileSync(provenancePath, JSON.stringify(provenance)); writeFileSync( websocketEventsPath, JSON.stringify({ @@ -107,9 +179,10 @@ for (const { name, fingerprint, healthFingerprint = 'runtime-1', error } of [ JSON.stringify({ ready: true, runtime_fingerprint: healthFingerprint, + backend_source: sourceAttestation, runtime_profile: { execution_ready: true, - installed: 'amd-rocm-linux', + installed: 'nvidia-cuda', support_tier: 'experimental', manifest_revision: 'revision-1', }, @@ -117,7 +190,9 @@ for (const { name, fingerprint, healthFingerprint = 'runtime-1', error } of [ packages: { torch: { version: '2.9.1', - cuda_devices: [{ name: 'NVIDIA GeForce RTX 4080', total_memory: 16 * 1024 ** 3 }], + cuda_devices: [ + { index: 0, name: 'NVIDIA GeForce RTX 4080', backend: 'cuda', total_memory: 16 * 1024 ** 3 }, + ], }, }, }), @@ -125,6 +200,24 @@ for (const { name, fingerprint, healthFingerprint = 'runtime-1', error } of [ }); await new Promise((resolveListen) => server.listen(0, '127.0.0.1', resolveListen)); const address = server.address(); + if (retained) { + const health = await (await fetch(`http://127.0.0.1:${address.port}/health`)).json(); + writeFileSync(join(artifact, 'websocket-events.json'), readFileSync(websocketEventsPath)); + writeFileSync(join(artifact, 'backend-health.json'), JSON.stringify(health)); + writeFileSync(join(artifact, 'run-provenance.json'), JSON.stringify(provenance)); + writeFileSync(join(artifact, 'status.json'), JSON.stringify({ step: 'success' })); + if (!missingTerminal) + writeFileSync( + join(artifact, 'run-terminal.json'), + JSON.stringify({ + task: { + status: 'completed', + task_id: terminalId, + runtimeFingerprint: fingerprint, + }, + }), + ); + } writeFileSync( reportPath, @@ -134,7 +227,7 @@ for (const { name, fingerprint, healthFingerprint = 'runtime-1', error } of [ { outputs: [ { - terminalTask: { status: 'completed', runtimeFingerprint: fingerprint }, + terminalTask: { status: 'completed', task_id: 'task-1', runtimeFingerprint: fingerprint }, evidence: { provenance: provenancePath, websocketEvents: websocketEventsPath }, }, ], @@ -152,7 +245,8 @@ for (const { name, fingerprint, healthFingerprint = 'runtime-1', error } of [ env: { ...process.env, MODIFF_BACKEND_DIR: backend, - MODIFF_GALLERY_REPORT: reportPath, + MODIFF_GALLERY_REPORT: retained ? '' : reportPath, + MODIFF_LIVE_PROOF_ARTIFACT: retained ? artifact : '', }, }); let stdout = ''; @@ -180,12 +274,12 @@ for (const { name, fingerprint, healthFingerprint = 'runtime-1', error } of [ const receipt = JSON.parse( readFileSync(join(backend, 'data', 'qualification', 'release', 'hardware-qualification.v1.json')), ).receipts[0]; - assert.equal(receipt.profileId, 'amd-rocm-linux'); + assert.equal(receipt.profileId, 'nvidia-cuda'); assert.equal(receipt.supportTierAtCapture, 'experimental'); assert.equal(receipt.status, 'observed'); assert.equal(receipt.taskId, 'task-1'); assert.equal(receipt.resourceCandidateId, 'example-native'); - assert.equal(receipt.runtimeFingerprint, 'stable-runtime', 'Retain the downstream provenance lock.'); + assert.equal(receipt.runtimeFingerprint, stableRuntime, 'Retain the downstream provenance lock.'); assert.equal(receipt.peakMemoryBytes, 1024); assert.equal(receipt.coldLoaderDurationSeconds, 91.25); assert.equal(receipt.performanceTarget.maxSeconds, 120); diff --git a/scripts/hardware-runtime-identity.test.mjs b/scripts/hardware-runtime-identity.test.mjs new file mode 100644 index 00000000..3d255a67 --- /dev/null +++ b/scripts/hardware-runtime-identity.test.mjs @@ -0,0 +1,99 @@ +import assert from 'node:assert/strict'; +import test from 'node:test'; +import { assertHardwareRuntimeMatches } from './hardware-qualification-runtime.mjs'; +import { normalizeBackendRuntime, sha256Value } from './live-proof-provenance.mjs'; + +function fixture() { + const source = { gitCommit: 'a'.repeat(40), files: [{ path: 'main.py', sha256: 'b'.repeat(64) }] }; + source.fingerprint = sha256Value('backend-source-v1', source); + const attestation = { + schemaVersion: 1, + claim: 'process_start_backend_source_identity', + gitCommit: source.gitCommit, + fingerprint: source.fingerprint, + fileCount: 1, + capturedAt: '2026-11-03T00:00:00Z', + }; + const observed = { + fingerprint: 'sha256:execution', + resourceFingerprint: 'sha256:resource', + packages: { torch: 'synthetic' }, + torch: { cuda_available: true }, + work_dir: '/mock/work', + data_dir: '/mock/data', + backendSource: attestation, + }; + return [ + observed, + { runtime_fingerprint: observed.resourceFingerprint, backend_source: structuredClone(attestation) }, + { + runtimeFingerprint: normalizeBackendRuntime(observed).lockFingerprint, + runtime: { reportedFingerprint: observed.fingerprint, backendSource: source }, + }, + ]; +} + +test('health resource identity corroborates separate execution identity and exact source', () => { + const args = fixture(); + const before = structuredClone(args); + assert.notEqual(args[0].fingerprint, args[1].runtime_fingerprint); + assert.doesNotThrow(() => assertHardwareRuntimeMatches(...args)); + assert.deepEqual(args, before); +}); + +for (const [name, mutate] of [ + [ + 'a resource hash without execution identity', + ([runtime]) => { + delete runtime.fingerprint; + }, + ], + [ + 'the wrong health hash domain', + ([runtime, health]) => { + health.runtime_fingerprint = runtime.fingerprint; + }, + ], + [ + 'another execution with the same resource hash', + ([runtime]) => { + runtime.fingerprint = 'sha256:other-execution'; + }, + ], + [ + 'changed runtime contents behind matching string hashes', + ([runtime]) => { + runtime.packages.torch = 'other'; + }, + ], + [ + 'another worker source', + ([, health]) => { + health.backend_source.gitCommit = 'c'.repeat(40); + }, + ], + [ + 'missing worker source', + ([, health]) => { + delete health.backend_source; + }, + ], + [ + 'invalid source inventory', + ([, , proof]) => { + proof.runtime.backendSource.files[0].sha256 = 'd'.repeat(64); + }, + ], + [ + 'missing original execution binding', + ([, , proof]) => { + delete proof.runtime.reportedFingerprint; + }, + ], +]) { + test(`reject ${name}`, () => { + const args = fixture(); + mutate(args); + assert.throws(() => assertHardwareRuntimeMatches(...args)); + }); +} diff --git a/scripts/release-qualification-policy.mjs b/scripts/release-qualification-policy.mjs index 6e514145..5f7a97d4 100644 --- a/scripts/release-qualification-policy.mjs +++ b/scripts/release-qualification-policy.mjs @@ -2,6 +2,38 @@ export function captureQualificationStatus(supportTier) { return supportTier === 'supported' ? 'qualified' : 'observed'; } +export function hardwareExecutionDevice(health, provenance) { + const profile = health?.runtime_profile?.installed; + const measurement = provenance?.execution?.measurement; + const measuredDevice = measurement?.device; + const backend = measurement?.backend; + const expected = { + 'nvidia-cuda': ['cuda', 'cuda'], + 'amd-rocm-linux': ['cuda', 'rocm'], + 'amd-instinct-rocm-linux': ['cuda', 'rocm'], + 'amd-pytorch-windows': ['cuda', 'rocm'], + 'intel-xpu': ['xpu', 'xpu'], + 'apple-mps': ['mps', 'mps'], + cpu: ['cpu', 'cpu'], + }[profile]; + if (!expected) throw new Error('Hardware evidence has no reviewed runtime profile.'); + const match = typeof measuredDevice === 'string' ? /^(cpu|cuda|xpu|mps)(?::([0-9]+))?$/.exec(measuredDevice) : null; + if (!match || match[1] !== expected[0] || backend !== expected[1]) { + throw new Error('Executed device/backend does not match the recorded hardware profile.'); + } + const index = Number(match[2] ?? 0); + if (!Number.isSafeInteger(index) || (['cpu', 'mps'].includes(match[1]) && index !== 0)) { + throw new Error('Executed device index is invalid.'); + } + if (profile === 'cpu') return { name: 'cpu', backend: 'cpu', vendor: null, total_memory: null }; + const devices = health?.packages?.torch?.[`${match[1]}_devices`]; + const device = Array.isArray(devices) ? devices.find((item) => item?.index === index) : null; + if (!device || typeof device.name !== 'string' || !device.name.trim() || device.backend !== backend) { + throw new Error('Executed accelerator is missing or inconsistent in captured physical device metadata.'); + } + return device; +} + export function hardwareReceiptQualifies(receipt, profileId, manifestRevision) { return ( receipt?.status === 'qualified' && From 7c9b213348f29ca66ad6e95eaf6c77b1b535f9bd Mon Sep 17 00:00:00 2001 From: Sourav Das Date: Wed, 4 Nov 2026 00:51:13 +0530 Subject: [PATCH 168/440] Preserve scoped audio creative evidence in output history --- scripts/resolved-execution-inputs.test.mjs | 61 ++++++++++++++++++++++ src/studio/resolvedExecutionInputs.ts | 9 ++++ 2 files changed, 70 insertions(+) diff --git a/scripts/resolved-execution-inputs.test.mjs b/scripts/resolved-execution-inputs.test.mjs index 08394c97..6139d2ac 100644 --- a/scripts/resolved-execution-inputs.test.mjs +++ b/scripts/resolved-execution-inputs.test.mjs @@ -1196,6 +1196,67 @@ test('captured weight loading mode preserves its cpu/cuda value through output h assert.deepEqual(inputs.coerceResolvedExecutionInputs(omitted, identity), omitted); }); +test('audio creative inputs survive history with exact Unicode and reject other node scopes', () => { + const identity = { taskId: 'audio-creative', attemptIndex: 0, nodeId: 'generate' }; + const values = { + lyrics: 'MoDiff—三拍', + vocal_language: 'en', + shift: 3, + bpm: 170, + keyscale: 'C# minor', + timesignature: '3', + }; + const capture = { + schemaVersion: 1, + source: 'backend-execution', + ...identity, + nodes: [ + { + nodeId: 'generate', + module: 'modules.DiffusersAudio', + action: 'Generate', + fields: Object.fromEntries(Object.entries(values).map(([key, value]) => [key, { value, source: 'literal' }])), + omittedFields: {}, + }, + ], + summary: { + lyrics: values.lyrics, + vocalLanguage: 'en', + shift: 3, + bpm: 170, + keyscale: 'C# minor', + timesignature: '3', + }, + ambiguousFields: [], + unavailableFields: [], + uncapturedNodeIds: [], + truncated: false, + }; + assert.deepEqual(inputs.coerceResolvedExecutionInputs(capture, identity), capture); + const restored = contracts.coerceStudioOutput({ + id: 'audio-creative', + url: '/song.wav', + ...identity, + resolvedExecutionInputs: capture, + }); + assert.deepEqual(restored.resolvedExecutionInputs, capture); + const wrongScope = structuredClone(capture); + wrongScope.nodes[0].module = 'modules.Image'; + wrongScope.nodes[0].action = 'Preview'; + assert.equal(inputs.coerceResolvedExecutionInputs(wrongScope, identity), undefined); + const forged = structuredClone(capture); + forged.summary.lyrics = 'invented'; + assert.equal(inputs.coerceResolvedExecutionInputs(forged, identity), undefined); + const legacy = structuredClone(capture); + legacy.nodes[0].fields = {}; + legacy.summary = {}; + assert.deepEqual( + inputs.coerceResolvedExecutionInputs(legacy, identity), + legacy, + 'never backfill older audio evidence', + ); +}); + test('every backend capture field survives client history parsing with node-scoped adapter identity', () => { const backend = fileURLToPath(new URL('../../MoDiff/', import.meta.url)); const python = diff --git a/src/studio/resolvedExecutionInputs.ts b/src/studio/resolvedExecutionInputs.ts index 70c1c72a..bc75034f 100644 --- a/src/studio/resolvedExecutionInputs.ts +++ b/src/studio/resolvedExecutionInputs.ts @@ -148,6 +148,15 @@ const inputNames: Record = { // Mirror the backend's scoped capture contract. Auxiliary revisions must never // overwrite the base model's identity; unknown fields still reject the receipt. const nodeInputNames: Record> = { + 'DiffusersAudio.Generate': { + ...inputNames, + lyrics: 'lyrics', + vocal_language: 'vocalLanguage', + shift: 'shift', + bpm: 'bpm', + keyscale: 'keyscale', + timesignature: 'timesignature', + }, 'Image.Load': { ...inputNames, alpha_channel: 'imageAlphaChannel', From 97c191d06e477cf6ff3a997114af0f5489d5001a Mon Sep 17 00:00:00 2001 From: Sourav Das Date: Wed, 4 Nov 2026 01:06:24 +0530 Subject: [PATCH 169/440] Pair audio receipt CI and record its measured bundle cost --- .github/workflows/ci.yml | 6 +++--- scripts/bundle-budget.mjs | 7 +++++++ 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 00d794ce..b54687cd 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -32,8 +32,8 @@ jobs: uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4 with: repository: sdevil7th/MoDiff - # Paired conditional reference requirements and current video stages. - ref: e6eaffb397ca55ae015f6767794fc0039891250b + # Paired scoped audio creative-input receipts and current video stages. + ref: cd7fb74c116ae611a1e6cb0dbe95950d129fa84e path: MoDiff persist-credentials: false - name: Verify the pinned backend supports native setup @@ -88,7 +88,7 @@ jobs: with: repository: sdevil7th/MoDiff # Match the immutable backend revision in the Client quality job. - ref: e6eaffb397ca55ae015f6767794fc0039891250b + ref: cd7fb74c116ae611a1e6cb0dbe95950d129fa84e path: MoDiff persist-credentials: false - name: Verify the pinned backend supports native setup diff --git a/scripts/bundle-budget.mjs b/scripts/bundle-budget.mjs index 050fb2ec..4c21e47f 100644 --- a/scripts/bundle-budget.mjs +++ b/scripts/bundle-budget.mjs @@ -1,3 +1,8 @@ +// Scoped audio creative receipts measure largest/startup/deferred gzip +// 496254/674742/329707 versus the accepted 496215/674704/329829. +// Add the measured 39/38 startup bytes, retaining 18/19-byte headroom and +// both deferred caps. Only studio-templates.js changes after immutable import +// URL normalization; all 4 startup/90 deferred assets and build rules remain. // Shared managed input previews measure largest/startup/deferred gzip // 496215/674704/329829 versus 496087/674572/329587. Only studio-templates.js // changes after cache-version normalization; all 90 deferred assets differ @@ -320,6 +325,7 @@ const SOURCE_LICENSES = new URL('../public/THIRD_PARTY_LICENSES.txt', import.met // Scoped video receipts and compatible adapter messaging measure 494870 bytes // in the largest startup asset (+46 over the cap). Add 64 bytes, no dependencies. const MAX_STARTUP_CHUNK_GZIP_BYTES = + 39 + 128 + 103 + 116 + @@ -462,6 +468,7 @@ const MAX_STARTUP_CHUNK_GZIP_BYTES = // The same build measures 673359 aggregate startup bytes (+45 over the cap). // Keep 19 bytes of headroom; deferred limits and loading boundaries stay fixed. const MAX_STARTUP_GZIP_BYTES = + 38 + 132 + 102 + 113 + From 49df2fec20fed334bcecff7ba5e4feff4a73a047 Mon Sep 17 00:00:00 2001 From: Sourav Das Date: Wed, 4 Nov 2026 01:07:02 +0530 Subject: [PATCH 170/440] Align documented CI pairing with audio receipt backend --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 26c3a61f..5f102c40 100644 --- a/README.md +++ b/README.md @@ -31,7 +31,7 @@ application source pair is: | MoDiff | `1239d1cecd12a7318eb263ca17c34d4fc0445d14` | | MoDiff-client | `c561a01395044fd71c1918e95fb9e9709d8e7601` | -CI backend contract: `e6eaffb397ca55ae015f6767794fc0039891250b`. +CI backend contract: `cd7fb74c116ae611a1e6cb0dbe95950d129fa84e`. Both CI jobs use this exact immutable backend pin. The application table above is the earlier reviewed testing baseline. Current CI covers the shared video @@ -39,8 +39,8 @@ stages and conditional reference requirements; a CI pin alone does not establish expand model/hardware qualification. The 3 November Linux video testing deployment uses backend -`e13bd558f2eed0ceeb6ce3c95f6d6056e682d46d` and client product -`9bac9ac007aeee7ae5de47f55646260736a7b48f`. Later CI/documentation-only +`496f3aed56ce1c6a868549df310c68e765712ce3` and client product +`75080b73fb22bc0ef197f17a119cf507b3352695`. Later CI/documentation-only descendants retain that tested client product. Native large-model evidence on Linux does not expand Windows or other hardware qualification; see the backend's [video progress and handoff](https://github.com/sdevil7th/MoDiff/blob/fix-ui-ux-issues/plans/video-stages-20261101/MILESTONE2-PROGRESS.md). From 55d3c5dcdbb4da55083e048316b28fa2aa13c538 Mon Sep 17 00:00:00 2001 From: Sourav Das Date: Wed, 4 Nov 2026 01:25:03 +0530 Subject: [PATCH 171/440] Recover connected manual audio recipes without a legacy binding --- docs/template-gallery-assets.md | 12 +++ scripts/live-proof-provenance.mjs | 170 +++++++++++++++++++++++++++++- scripts/live-qwen-proof.test.mjs | 166 +++++++++++++++++++++++++++++ 3 files changed, 347 insertions(+), 1 deletion(-) diff --git a/docs/template-gallery-assets.md b/docs/template-gallery-assets.md index b56e0aa7..3e13991c 100644 --- a/docs/template-gallery-assets.md +++ b/docs/template-gallery-assets.md @@ -75,6 +75,18 @@ and `run-provenance.json` alongside `status.json`; the completed task must own that provenance. The full provenance validator still applies. A status marker or an old output file alone cannot establish qualification. +For ordinary direct-audio graphs without a legacy Studio binding, the proof +reader can recover a manual resource identity from one executed loader, its +connected disabled-quantization recipe and the exact Generate/Export chain. +Source-backed and loudness-match/join chains must retain their required input +connections and execution order. The audio contract, immutable model revision, +resource controls and saved manual policy must agree. This identity names the +actual backend pipeline, not a display alias from the form. It does not recover +missing consumed controls, establish input bytes or grant model, hardware, +Automatic memory, listening or publication qualification. Unsupported or +ambiguous compositions remain held; canonical field-accounting coverage is a +separate contract. + Choose a user or organization namespace where you have write permission. The recommended repository name is `/modiff-template-gallery`. The repository must remain public for unauthenticated open-source use. diff --git a/scripts/live-proof-provenance.mjs b/scripts/live-proof-provenance.mjs index a04f2d65..d64cd6e9 100644 --- a/scripts/live-proof-provenance.mjs +++ b/scripts/live-proof-provenance.mjs @@ -628,6 +628,170 @@ function executedModularExpertPlanFromGraph(apiGraph) { }); } +// Ordinary direct-audio graphs have no managed Studio binding. Record only +// their unique connected manual recipe; this grants no execution, Auto or fit +// qualification. Do not substitute stale form/model aliases for the loader. +function executedDirectAudioExpertPlanFromGraph(apiGraph) { + const form = apiGraph?.runtimeHints?.workflowSnapshot?.studioForm; + if (form?.resourceMode !== 'expert' || form.quantizationMode !== 'none') return null; + const entries = nodeEntries(apiGraph); + const paths = apiGraph?.paths; + if ( + entries.some( + ([id, node]) => + !id || + !node || + typeof node !== 'object' || + Array.isArray(node) || + !node.params || + typeof node.params !== 'object' || + Array.isArray(node.params), + ) || + ![5, 6, 8].includes(entries.length) || + !Array.isArray(paths) || + paths.length !== 1 || + !Array.isArray(paths[0]) || + paths[0].length !== entries.length || + new Set(paths[0]).size !== entries.length || + entries.some(([id]) => !paths[0].includes(id)) + ) + return null; + const role = (module, action) => { + const matches = entries.filter(([, node]) => node.module === module && node.action === action); + return matches.length === 1 ? matches[0] : null; + }; + const loader = role('modules.DiffusersAudio', 'LoadPipeline'); + const generate = role('modules.DiffusersAudio', 'Generate'); + const recipe = role('modules.DiffusersRuntime', 'DiffusersExecutionRecipe'); + const quant = role('modules.DiffusersRuntime', 'PipelineQuantizationConfigV2'); + const output = role('modules.Audio', 'Export'); + if (!loader || !generate || !recipe || !quant || !output) return null; + const source = role('modules.Audio', 'Load'); + const match = role('modules.Audio', 'MatchLoudness'); + const join = role('modules.Audio', 'Join'); + const roles = [loader, generate, recipe, quant, output, source, match, join].filter(Boolean); + if (roles.length !== entries.length || Boolean(match) !== Boolean(join) || (join && !source)) return null; + const literal = (entry, field) => { + const param = entry?.[1]?.params?.[field]; + return param && !param.sourceId && !param.sourceKey ? apiParamValue(entry[1], field) : undefined; + }; + const repo = hubRepository(literal(loader, 'model_id')); + const revision = literal(loader, 'revision'); + const pipelineClass = literal(loader, 'pipeline_class'); + const mode = literal(loader, 'mode'); + const contract = literal(loader, 'audio_contract'); + if ( + !repo || + !/^[A-Za-z0-9][A-Za-z0-9._-]*\/[A-Za-z0-9][A-Za-z0-9._-]*$/u.test(repo) || + !/^[a-f0-9]{40}$/u.test(String(revision)) || + typeof pipelineClass !== 'string' || + !pipelineClass || + typeof mode !== 'string' || + !mode || + !contract || + Array.isArray(contract) || + contract.schemaVersion !== 1 || + contract.library !== 'diffusers' || + contract.mediaKind !== 'audio' || + contract.pipelineClass !== pipelineClass || + contract.repository !== repo || + contract.mode !== mode || + contract.referenceAudio !== 'forbidden' || + !Array.isArray(contract.actions?.Generate) || + !contract.actions.Generate.includes(mode) || + !['required', 'forbidden'].includes(contract.sourceAudio) || + (contract.sourceAudio === 'required') !== Boolean(source) || + stableStringify(literal(generate, 'audio_contract')) !== stableStringify(contract) + ) + return null; + const wires = new Map([ + [loader[0], { execution_recipe: [recipe[0], 'execution_recipe'] }], + [recipe[0], { quantization_config: [quant[0], 'quantization_config'] }], + [quant[0], {}], + [generate[0], { pipeline: [loader[0], 'pipeline'], ...(source ? { source_audio: [source[0], 'audio'] } : {}) }], + [output[0], { audio: join ? [join[0], 'output'] : [generate[0], 'audio'] }], + ...(source ? [[source[0], {}]] : []), + ...(match + ? [ + [match[0], { audio: [generate[0], 'audio'], reference: [source[0], 'audio'] }], + [join[0], { source: [source[0], 'audio'], continuation: [match[0], 'output'] }], + ] + : []), + ]); + for (const [id, node] of entries) { + const expected = wires.get(id); + if (!expected) return null; + for (const [key, param] of Object.entries(node.params ?? {})) { + const presentation = + id === output[0] && + key === 'preview' && + stableStringify(param) === stableStringify({ display: 'ui_audio', sourceKey: 'file' }); + if ((param?.sourceId || param?.sourceKey) && !Object.hasOwn(expected, key) && !presentation) return null; + } + for (const [field, [producer, port]] of Object.entries(expected)) { + const wire = connectedParamSource(node, field); + if (wire?.nodeId !== producer || wire.field !== port || paths[0].indexOf(producer) >= paths[0].indexOf(id)) + return null; + } + } + const dtype = literal(loader, 'dtype'); + const device = literal(loader, 'device'); + const autoOffload = literal(loader, 'auto_offload'); + const offloadMode = literal(loader, 'offload_mode'); + const deviceMap = literal(recipe, 'device_map'); + if ( + !['float32', 'float16', 'bfloat16'].includes(dtype) || + typeof device !== 'string' || + !device || + typeof autoOffload !== 'boolean' || + typeof offloadMode !== 'string' || + !offloadMode || + typeof deviceMap !== 'string' || + !deviceMap || + literal(quant, 'backend') !== 'none' || + literal(quant, 'dtype') !== dtype || + literal(recipe, 'device') !== device || + literal(recipe, 'offload_mode') !== offloadMode || + form.dtype !== dtype || + form.device !== device || + form.autoOffload !== autoOffload || + form.offloadMode !== offloadMode + ) + return null; + const extras = {}; + for (const [field, name, type] of [ + ['attention_backend', 'attentionBackend', 'string'], + ['regional_compile', 'regionalCompile', 'boolean'], + ['denoiser_cache', 'denoiserCache', 'string'], + ['channels_last', 'channelsLast', 'boolean'], + ['layerwise_casting', 'layerwiseCasting', 'boolean'], + ]) { + const value = literal(recipe, field); + if (typeof value !== type) return null; + extras[name] = value; + } + return orderedValue({ + source: 'executed-expert-direct-audio-graph-v1', + modelType: pipelineClass, + pipelineClass, + modelRepo: repo, + resolvedModelRepo: repo, + resolvedArtifact: repo, + modelRevision: revision, + task: mode, + dtype, + device, + deviceMap, + autoOffload, + offloadMode, + quantizationMode: 'none', + quantizedComponents: [], + resourceMode: 'expert', + resolvedResourceMode: 'expert', + ...extras, + }); +} + export function executionPlanIdentity(apiGraph) { const runtimeHints = apiGraph?.runtimeHints ?? {}; const declaredPlan = Object.fromEntries( @@ -641,7 +805,11 @@ export function executionPlanIdentity(apiGraph) { (field) => ['resourceMode', 'resolvedResourceMode'].includes(field) && declaredPlan[field] === 'expert', ); const modularPlan = expertOnly ? executedModularExpertPlanFromGraph(apiGraph) : null; - const plan = modularPlan ?? (fields.length > 0 ? declaredPlan : (executedExpertPlanFromGraph(apiGraph) ?? {})); + const plan = + modularPlan ?? + (fields.length > 0 + ? declaredPlan + : (executedExpertPlanFromGraph(apiGraph) ?? executedDirectAudioExpertPlanFromGraph(apiGraph) ?? {})); return { hash: sha256Value('execution-plan-v1', plan), plan: orderedValue(plan), diff --git a/scripts/live-qwen-proof.test.mjs b/scripts/live-qwen-proof.test.mjs index 76e8e2c0..ff3ce403 100644 --- a/scripts/live-qwen-proof.test.mjs +++ b/scripts/live-qwen-proof.test.mjs @@ -363,6 +363,172 @@ test('retained Expert execution identity is recovered only from agreeing execute assert.deepEqual(executionPlanIdentity(ambiguous).plan, {}); }); +function directAudioExpertGraph(continuation = false) { + const graph = retainedExpertGraph(); + const contract = { + schemaVersion: 1, + library: 'diffusers', + mediaKind: 'audio', + pipelineClass: 'ExampleAudioPipeline', + repository: 'example/audio', + mode: continuation ? 'audio_continuation' : 'text_to_audio', + sourceAudio: continuation ? 'required' : 'forbidden', + referenceAudio: 'forbidden', + actions: { Generate: [continuation ? 'audio_continuation' : 'text_to_audio'] }, + }; + const loader = graph.nodes.loader; + loader.module = 'modules.DiffusersAudio'; + loader.params.model_id.value.value = contract.repository; + loader.params.pipeline_class.value = contract.pipelineClass; + loader.params.revision = { value: 'a'.repeat(40) }; + loader.params.mode = { value: contract.mode }; + loader.params.audio_contract = { value: structuredClone(contract) }; + delete loader.params.quantization_mode; + delete loader.params.quantized_components; + delete loader.params.device_map; + graph.runtimeHints.workflowSnapshot.studioGraphBinding = null; + graph.runtimeHints.workflowSnapshot.studioForm.modelType = 'DisplayAliasIsNotModelAuthority'; + graph.nodes.generate = { + module: 'modules.DiffusersAudio', + action: 'Generate', + params: { + pipeline: { sourceId: 'loader', sourceKey: 'pipeline' }, + audio_contract: { value: structuredClone(contract) }, + }, + }; + graph.nodes.export = { + module: 'modules.Audio', + action: 'Export', + params: { + audio: { sourceId: 'generate', sourceKey: 'audio' }, + preview: { display: 'ui_audio', sourceKey: 'file' }, + }, + }; + graph.paths[0].push('generate', 'export'); + if (continuation) { + graph.nodes.load = { module: 'modules.Audio', action: 'Load', params: { file: { value: ['@data/source.wav'] } } }; + graph.nodes.generate.params.source_audio = { sourceId: 'load', sourceKey: 'audio' }; + graph.nodes.match = { + module: 'modules.Audio', + action: 'MatchLoudness', + params: { + audio: { sourceId: 'generate', sourceKey: 'audio' }, + reference: { sourceId: 'load', sourceKey: 'audio' }, + }, + }; + graph.nodes.join = { + module: 'modules.Audio', + action: 'Join', + params: { + source: { sourceId: 'load', sourceKey: 'audio' }, + continuation: { sourceId: 'match', sourceKey: 'output' }, + }, + }; + graph.nodes.export.params.audio = { sourceId: 'join', sourceKey: 'output' }; + graph.paths[0] = ['load', 'quant', 'recipe', 'loader', 'generate', 'match', 'join', 'export']; + } + return graph; +} + +test('ordinary direct audio locks the actual connected recipe without a legacy binding or model alias', () => { + for (const continuation of [false, true]) { + const graph = directAudioExpertGraph(continuation); + const before = JSON.stringify(graph); + const plan = executionPlanIdentity(graph).plan; + assert.equal(plan.source, 'executed-expert-direct-audio-graph-v1'); + assert.equal(plan.modelType, 'ExampleAudioPipeline'); + assert.equal(plan.modelRepo, 'example/audio'); + assert.equal(plan.modelRevision, 'a'.repeat(40)); + assert.equal(plan.task, continuation ? 'audio_continuation' : 'text_to_audio'); + assert.equal(plan.resourceMode, 'expert'); + assert.equal(plan.dtype, 'bfloat16'); + assert.equal(plan.device, 'cuda:0'); + assert.equal(plan.qualified, undefined); + assert.equal(JSON.stringify(graph), before, 'do not manufacture hints or rewrite retained evidence'); + } +}); + +test('ordinary audio recipe recovery rejects ambiguous, disconnected and contradictory authority', () => { + const mutations = { + 'malformed owner': (g) => { + g.nodes.quant = null; + }, + 'non-Hub artifact': (g) => { + g.nodes.loader.params.model_id.value.value = '/tmp/model'; + g.nodes.loader.params.audio_contract.value.repository = '/tmp/model'; + g.nodes.generate.params.audio_contract.value.repository = '/tmp/model'; + }, + 'changed repository': (g) => { + g.nodes.loader.params.model_id.value.value = 'other/model'; + }, + 'mutable revision': (g) => { + g.nodes.loader.params.revision.value = 'main'; + }, + 'changed task': (g) => { + g.nodes.loader.params.mode.value = 'audio_repaint'; + }, + 'changed generate contract': (g) => { + g.nodes.generate.params.audio_contract.value.repository = 'other/model'; + }, + 'quantized branch': (g) => { + g.nodes.quant.params.backend.value = 'bitsandbytes_4bit'; + }, + 'missing recipe': (g) => { + g.nodes.loader.params.execution_recipe.sourceId = 'missing'; + }, + 'wrong producer port': (g) => { + g.nodes.generate.params.pipeline.sourceKey = 'other'; + }, + 'hidden connected control': (g) => { + g.nodes.generate.params.seed = { sourceId: 'quant', sourceKey: 'seed' }; + }, + 'forged preview wire': (g) => { + g.nodes.export.params.preview.sourceId = 'loader'; + }, + 'stale form dtype': (g) => { + g.runtimeHints.workflowSnapshot.studioForm.dtype = 'float16'; + }, + 'Auto request': (g) => { + g.runtimeHints.workflowSnapshot.studioForm.resourceMode = 'auto'; + }, + 'unsupported extra owner': (g) => { + g.nodes.other = structuredClone(g.nodes.loader); + g.paths[0].push('other'); + }, + 'unexecuted owner': (g) => { + g.paths[0].pop(); + }, + 'non-topological execution': (g) => { + g.paths[0].reverse(); + }, + 'missing source': (g) => { + delete g.nodes.generate.params.source_audio; + }, + 'disconnected loudness reference': (g) => { + g.nodes.match.params.reference.sourceId = 'generate'; + }, + 'wrong join ordering': (g) => { + g.nodes.join.params.source.sourceId = 'match'; + }, + }; + for (const [label, mutate] of Object.entries(mutations)) { + const graph = directAudioExpertGraph(true); + mutate(graph); + assert.deepEqual(executionPlanIdentity(graph).plan, {}, label); + } +}); + +test('source-backed direct audio without a finishing chain retains only its actual input dependency', () => { + const graph = directAudioExpertGraph(true); + delete graph.nodes.match; + delete graph.nodes.join; + graph.nodes.export.params.audio = { sourceId: 'generate', sourceKey: 'audio' }; + graph.paths[0] = ['load', 'quant', 'recipe', 'loader', 'generate', 'export']; + assert.equal(executionPlanIdentity(graph).plan.modelRepo, 'example/audio'); + delete graph.nodes.generate.params.source_audio; + assert.deepEqual(executionPlanIdentity(graph).plan, {}); +}); + test('default live Qwen proof requests the locked template without diagnostic overrides', () => { const config = resolveLiveProofConfig({}); From 507eb6a3a8b56024de9dd380537691fee2c8dab6 Mon Sep 17 00:00:00 2001 From: Sourav Das Date: Wed, 4 Nov 2026 01:56:19 +0530 Subject: [PATCH 172/440] Keep ACE cold-load guards for the actual pipeline identity --- docs/template-gallery-assets.md | 4 +++ scripts/hardware-qualification.mjs | 5 ++- scripts/hardware-qualification.test.mjs | 42 +++++++++++++++++++------ 3 files changed, 41 insertions(+), 10 deletions(-) diff --git a/docs/template-gallery-assets.md b/docs/template-gallery-assets.md index 3e13991c..ca06dbfb 100644 --- a/docs/template-gallery-assets.md +++ b/docs/template-gallery-assets.md @@ -75,6 +75,10 @@ and `run-provenance.json` alongside `status.json`; the completed task must own that provenance. The full provenance validator still applies. A status marker or an old output file alone cannot establish qualification. +The ACE-Step RTX 4080 cold-load check applies to both the catalog display alias +and the actual backend pipeline class. Changing that identity spelling does +not remove its required timing evidence or its 120-second limit. + For ordinary direct-audio graphs without a legacy Studio binding, the proof reader can recover a manual resource identity from one executed loader, its connected disabled-quantization recipe and the exact Generate/Export chain. diff --git a/scripts/hardware-qualification.mjs b/scripts/hardware-qualification.mjs index f5a1127a..5fa1ef60 100644 --- a/scripts/hardware-qualification.mjs +++ b/scripts/hardware-qualification.mjs @@ -116,7 +116,10 @@ function coldLoaderDurationSeconds(path) { } function coldLoadTarget(modelType, deviceName) { - if (modelType === 'AceStepAudioPipeline' && /(?:nvidia\s+geforce\s+)?rtx\s*4080/i.test(String(deviceName ?? ''))) { + if ( + ['AceStepAudioPipeline', 'AceStepPipeline'].includes(modelType) && + /(?:nvidia\s+geforce\s+)?rtx\s*4080/i.test(String(deviceName ?? '')) + ) { return { name: 'ACE-Step RTX 4080 cold pipeline load', maxSeconds: 120, diff --git a/scripts/hardware-qualification.test.mjs b/scripts/hardware-qualification.test.mjs index c9505964..cb05c8b5 100644 --- a/scripts/hardware-qualification.test.mjs +++ b/scripts/hardware-qualification.test.mjs @@ -42,10 +42,32 @@ for (const { retained = false, missingTerminal = false, terminalId = 'task-1', + modelType = 'AceStepAudioPipeline', + omitColdTiming = false, + coldSeconds = 91.25, error, } of [ { name: 'legacy string', fingerprint: 'runtime-1' }, { name: 'structured current task', fingerprint: structuredFingerprint }, + { + name: 'actual pipeline class retains the ACE cold-load target', + fingerprint: structuredFingerprint, + modelType: 'AceStepPipeline', + }, + { + name: 'actual pipeline class requires cold-load timing', + fingerprint: structuredFingerprint, + modelType: 'AceStepPipeline', + omitColdTiming: true, + error: /missing cold loader timing evidence/, + }, + { + name: 'actual pipeline class keeps the cold-load limit', + fingerprint: structuredFingerprint, + modelType: 'AceStepPipeline', + coldSeconds: 121, + error: /exceeded 120s/, + }, { name: 'retained original completed task', fingerprint: structuredFingerprint, retained: true }, { name: 'retained status cannot replace original task', @@ -118,7 +140,7 @@ for (const { }, paths: [['loader']], runtimeHints: { - modelType: 'AceStepAudioPipeline', + modelType, dtype: 'bfloat16', offloadMode: 'none', quantizationMode: 'none', @@ -158,14 +180,16 @@ for (const { writeFileSync( websocketEventsPath, JSON.stringify({ - events: [ - { - type: 'executed', - name: 'modules.DiffusersAudio.LoadPipeline', - hasChanged: true, - executionTime: { last: 91.25 }, - }, - ], + events: omitColdTiming + ? [] + : [ + { + type: 'executed', + name: 'modules.DiffusersAudio.LoadPipeline', + hasChanged: true, + executionTime: { last: coldSeconds }, + }, + ], }), ); From 7b126cb75f500d043a0ee85a231ec12754d0faee Mon Sep 17 00:00:00 2001 From: Sourav Das Date: Wed, 4 Nov 2026 04:05:51 +0530 Subject: [PATCH 173/440] Preserve audio preview metadata in executed recipe evidence --- docs/template-gallery-assets.md | 8 ++++ scripts/live-proof-provenance.mjs | 14 +++++- scripts/live-qwen-proof.test.mjs | 74 +++++++++++++++++++++++++++++++ 3 files changed, 94 insertions(+), 2 deletions(-) diff --git a/docs/template-gallery-assets.md b/docs/template-gallery-assets.md index ca06dbfb..05fec410 100644 --- a/docs/template-gallery-assets.md +++ b/docs/template-gallery-assets.md @@ -91,6 +91,14 @@ Automatic memory, listening or publication qualification. Unsupported or ambiguous compositions remain held; canonical field-accounting coverage is a separate contract. +The ordinary Audio Load and Export nodes can retain `ui_audio` preview values +after execution and reopening. Their declared `filename`/`file` preview sources +are presentation metadata, with bounded literal media references. The proof +reader preserves those references and retains the same resource identity; +connected preview suppliers, unknown keys, structured values and unsupported +preview sources remain rejected. This does not supply missing input-byte or +consumed-control evidence, and never rewrites the original submitted graph. + Choose a user or organization namespace where you have write permission. The recommended repository name is `/modiff-template-gallery`. The repository must remain public for unauthenticated open-source use. diff --git a/scripts/live-proof-provenance.mjs b/scripts/live-proof-provenance.mjs index d64cd6e9..7a68c11d 100644 --- a/scripts/live-proof-provenance.mjs +++ b/scripts/live-proof-provenance.mjs @@ -718,14 +718,24 @@ function executedDirectAudioExpertPlanFromGraph(apiGraph) { ] : []), ]); + const mediaValue = (value) => typeof value === 'string' && value.length <= 16_384; for (const [id, node] of entries) { const expected = wires.get(id); if (!expected) return null; + const previewPort = id === output[0] ? 'file' : source && id === source[0] ? 'filename' : null; for (const [key, param] of Object.entries(node.params ?? {})) { + const previewValue = param?.value; + // These native preview references survive Save/reopen; sourceKey names + // an output field here, not an additional graph connection. const presentation = - id === output[0] && key === 'preview' && - stableStringify(param) === stableStringify({ display: 'ui_audio', sourceKey: 'file' }); + previewPort !== null && + param?.display === 'ui_audio' && + param.sourceKey === previewPort && + Object.keys(param).every((field) => ['display', 'sourceKey', 'value'].includes(field)) && + (previewValue == null || + mediaValue(previewValue) || + (Array.isArray(previewValue) && previewValue.length <= 16 && previewValue.every(mediaValue))); if ((param?.sourceId || param?.sourceKey) && !Object.hasOwn(expected, key) && !presentation) return null; } for (const [field, [producer, port]] of Object.entries(expected)) { diff --git a/scripts/live-qwen-proof.test.mjs b/scripts/live-qwen-proof.test.mjs index ff3ce403..6babd34b 100644 --- a/scripts/live-qwen-proof.test.mjs +++ b/scripts/live-qwen-proof.test.mjs @@ -448,6 +448,80 @@ test('ordinary direct audio locks the actual connected recipe without a legacy b } }); +test('ordinary direct audio retains its recipe across native input and output preview restoration', () => { + for (const finishingChain of [false, true]) { + const graph = directAudioExpertGraph(true); + if (!finishingChain) { + delete graph.nodes.match; + delete graph.nodes.join; + graph.nodes.export.params.audio = { sourceId: 'generate', sourceKey: 'audio' }; + graph.paths[0] = ['load', 'quant', 'recipe', 'loader', 'generate', 'export']; + } + const originalPlan = executionPlanIdentity(graph).plan; + graph.nodes.load.params.preview = { display: 'ui_audio', sourceKey: 'filename' }; + const beforeGraph = canonicalGraphIdentity(graph).hash; + for (const value of [ + undefined, + null, + '', + '/file?file=%40data/audio/source.wav&t=42', + [], + ['/file?file=%40data/audio/source.wav&t=42'], + ]) { + const restored = structuredClone(graph); + if (value !== undefined) { + restored.nodes.load.params.preview.value = value; + restored.nodes.export.params.preview.value = value; + } + const original = JSON.stringify(restored); + const plan = executionPlanIdentity(restored).plan; + assert.deepEqual(plan, originalPlan); + assert.equal(plan.source, 'executed-expert-direct-audio-graph-v1'); + assert.equal(plan.modelRepo, originalPlan.modelRepo); + assert.equal(plan.task, 'audio_continuation'); + assert.equal(canonicalGraphIdentity(restored).hash, beforeGraph); + assert.equal(JSON.stringify(restored), original, 'retained presentation and source evidence are never rewritten'); + } + } +}); + +test('ordinary audio preview metadata cannot hide extra input wiring or malformed values', () => { + const changes = [ + (p) => { + p.sourceId = 'loader'; + }, + (p) => { + p.sourceKey = 'pipeline'; + }, + (p) => { + p.display = 'input'; + }, + (p) => { + p.other = true; + }, + (p) => { + p.value = { sourceId: 'loader', sourceKey: 'pipeline' }; + }, + (p) => { + p.value = [false]; + }, + (p) => { + p.value = Array(17).fill('/file?file=source.wav'); + }, + (p) => { + p.value = 'x'.repeat(16_385); + }, + ]; + for (const owner of ['load', 'export']) { + for (const change of changes) { + const graph = directAudioExpertGraph(true); + graph.nodes.load.params.preview = { display: 'ui_audio', sourceKey: 'filename' }; + change(graph.nodes[owner].params.preview); + assert.deepEqual(executionPlanIdentity(graph).plan, {}); + } + } +}); + test('ordinary audio recipe recovery rejects ambiguous, disconnected and contradictory authority', () => { const mutations = { 'malformed owner': (g) => { From d59d5e1ecc767dbec94993f8acd2abacb0b70f13 Mon Sep 17 00:00:00 2001 From: Sourav Das Date: Wed, 4 Nov 2026 04:54:05 +0530 Subject: [PATCH 174/440] Keep selected wire hit areas behind unrelated node controls --- docs/developer-first-node-ux.md | 5 + src/components/Workflow.tsx | 4 +- tests/e2e/studio-mocked/studio-mocked.spec.ts | 171 ++++++++++++++++++ 3 files changed, 179 insertions(+), 1 deletion(-) diff --git a/docs/developer-first-node-ux.md b/docs/developer-first-node-ux.md index d89515a4..bdd0f1cc 100644 --- a/docs/developer-first-node-ux.md +++ b/docs/developer-first-node-ux.md @@ -255,6 +255,11 @@ missing types require **Show unverified matches**. This includes deliberately generic utilities such as Data Viewer. Type compatibility is not a guarantee of model availability, shape, memory or the behavior of arbitrary Python. +On ordinary nodes and collapsed stages, selecting a node or wire keeps the +wire's hit area below other node controls. Selection still changes its stroke, +and exposed wire sections remain selectable. Expanded child edges retain the +existing hierarchy layering; this changes no saved graph or execution wiring. + New mask inputs use a loaded black/white image's pixels. Use the explicitly named Alpha mask output only when you intend transparency to define the mask. A model must still support the chosen task. Automatic memory recipes are separate from diff --git a/src/components/Workflow.tsx b/src/components/Workflow.tsx index 2c6b1b39..47f079cc 100644 --- a/src/components/Workflow.tsx +++ b/src/components/Workflow.tsx @@ -1233,7 +1233,9 @@ function Workflow() { nodesDraggable nodesConnectable elementsSelectable - elevateEdgesOnSelect + // Selection keeps its stroke emphasis without lifting a wire's wide + // hit path over unrelated node controls. XYFlow still layers child edges. + elevateEdgesOnSelect={false} className={`${canvasSuspended ? 'pointer-events-none opacity-0' : ''} ${isConnecting ? 'connecting' : ''} ${isConnectionValid !== null ? (isConnectionValid ? 'valid-connection' : 'invalid-connection') : ''}`} > diff --git a/tests/e2e/studio-mocked/studio-mocked.spec.ts b/tests/e2e/studio-mocked/studio-mocked.spec.ts index ede58f39..ee406de1 100644 --- a/tests/e2e/studio-mocked/studio-mocked.spec.ts +++ b/tests/e2e/studio-mocked/studio-mocked.spec.ts @@ -30410,6 +30410,177 @@ test('Developer Workflows recovers unavailable capabilities without installing o expect(mutations).toEqual([]); }); +for (const selection of ['node', 'edge'] as const) { + test(`selected ${selection} wires keep unrelated node cache controls clickable`, async ({ page }) => { + await page.setViewportSize({ width: 1920, height: 1200 }); + await ensureFrontend(); + await installMockRoutes(page); + const releases: unknown[] = []; + let cached = true; + await page.route('**/cache', async (route) => { + if (route.request().method() === 'DELETE') { + releases.push(route.request().postDataJSON()); + cached = false; + await route.fulfill({ json: { error: false, nodes: ['cache-target'] } }); + } else await route.fulfill({ json: { error: false, cachedNodes: cached ? ['cache-target'] : [] } }); + }); + await page.goto(FRONTEND_URL, { waitUntil: 'domcontentloaded' }); + await page.waitForFunction(() => Boolean(window.__MODIFF_E2E__)); + await dismissTaskLauncher(page); + await page.evaluate(async () => { + const { useFlowStore } = await import('/src/stores/useFlowStore.ts'); + const { prepareWorkflowForManualInsertion } = await import('/src/studio/manualGraphInsertion.ts'); + prepareWorkflowForManualInsertion(); + useFlowStore.getState().replaceGraph({ + nodes: [ + { + id: 'wire-source', + type: 'custom', + position: { x: 0, y: 100 }, + data: { + type: 'custom', + module: 'modules.Text', + action: 'Text', + label: 'Wire source', + params: { text: { type: 'string', display: 'output' } }, + }, + }, + { + id: 'wire-target', + type: 'custom', + position: { x: 1100, y: 100 }, + data: { + type: 'custom', + module: 'custom.Fixture', + action: 'Consumer', + label: 'Wire target', + params: { input: { type: 'string', display: 'input' } }, + }, + }, + { + id: 'cache-target', + type: 'custom', + position: { x: 450, y: 500 }, + data: { + type: 'custom', + module: 'custom.Fixture', + action: 'CacheTarget', + label: 'Unrelated cached node', + params: { text: { type: 'string', value: 'Keep this value.' } }, + }, + }, + ], + edges: [ + { + id: 'cache-crossing-wire', + source: 'wire-source', + sourceHandle: 'text', + target: 'wire-target', + targetHandle: 'input', + }, + ], + viewport: { x: 50, y: 70, zoom: 0.8 }, + }); + useFlowStore.getState().setNodeCached('cache-target', true); + }); + const edge = page.locator('.react-flow__edge[data-id="cache-crossing-wire"]'); + const path = edge.locator('.react-flow__edge-interaction'); + const button = page + .locator('.react-flow__node[data-id="cache-target"]') + .getByRole('button', { name: 'Release node cache', exact: true }); + await expect(button).toBeVisible(); + await expect + .poll(() => path.evaluate((element) => (element as SVGPathElement).getTotalLength())) + .toBeGreaterThan(500); + const delta = await button.evaluate((element) => { + const wire = document.querySelector( + '.react-flow__edge[data-id="cache-crossing-wire"] .react-flow__edge-interaction', + )!; + const matrix = wire.getScreenCTM()!; + const point = wire.getPointAtLength(wire.getTotalLength() / 2).matrixTransform(matrix); + const bounds = element.getBoundingClientRect(); + return { + x: (point.x - (bounds.x + bounds.width / 2)) / matrix.a, + y: (point.y - (bounds.y + bounds.height / 2)) / matrix.d, + }; + }); + await page.evaluate(async (shift) => { + const { useFlowStore } = await import('/src/stores/useFlowStore.ts'); + const state = useFlowStore.getState(); + const graph = state.toObject(); + state.replaceGraph({ + ...graph, + nodes: graph.nodes.map((node) => + node.id === 'cache-target' + ? { + ...node, + position: { + x: node.position.x + shift.x, + y: node.position.y + shift.y, + }, + } + : node, + ), + }); + }, delta); + await expect + .poll( + () => + button.evaluate((element) => { + const wire = document.querySelector( + '.react-flow__edge[data-id="cache-crossing-wire"] .react-flow__edge-interaction', + )!; + const point = wire.getPointAtLength(wire.getTotalLength() / 2).matrixTransform(wire.getScreenCTM()!); + const box = element.getBoundingClientRect(); + return Math.hypot(point.x - (box.x + box.width / 2), point.y - (box.y + box.height / 2)); + }), + { message: 'Fixture must place the genuine wire across the button center.' }, + ) + .toBeLessThan(2); + const selectBareWire = async () => { + const point = await path.evaluate((element) => { + const wire = element as SVGPathElement; + for (const fraction of [0.1, 0.2, 0.3, 0.7, 0.8, 0.9]) { + const point = wire.getPointAtLength(wire.getTotalLength() * fraction).matrixTransform(wire.getScreenCTM()!); + const hit = document.elementFromPoint(point.x, point.y); + if (hit?.closest('.react-flow__edge')?.getAttribute('data-id') === 'cache-crossing-wire') + return { x: point.x, y: point.y }; + } + throw new Error('No ordinary selectable wire segment is exposed.'); + }); + await page.mouse.click(point.x, point.y); + await expect(edge).toHaveClass(/selected/u); + }; + // Graph replacement deliberately clears transient selection. Select through + // real gestures after placement so this reproduces actual wire elevation. + if (selection === 'node') { + const source = page.locator('.react-flow__node[data-id="wire-source"]'); + await source.locator('header').first().click(); + await expect(source).toHaveClass(/selected/u); + } else await selectBareWire(); + await expect + .poll( + () => + button.evaluate((element) => { + const box = element.getBoundingClientRect(); + const hit = document.elementFromPoint(box.x + box.width / 2, box.y + box.height / 2); + return hit === element || (hit !== null && element.contains(hit)); + }), + { message: 'A crossing wire must not intercept the unrelated cache control.' }, + ) + .toBe(true); + await button.click(); + await expect.poll(() => releases).toEqual([{ nodes: ['cache-target'] }]); + await expect( + page + .locator('.react-flow__node[data-id="cache-target"]') + .getByRole('button', { name: 'Node is not cached', exact: true }), + ).toBeDisabled(); + await selectBareWire(); + expect(releases).toEqual([{ nodes: ['cache-target'] }]); + }); +} + test('one editor starts in Workflows and offers Templates explicitly', async ({ page }) => { await ensureFrontend(); await installMockRoutes(page); From d4d0874ce74febb0f4439ee138ad9134c56b35be Mon Sep 17 00:00:00 2001 From: Sourav Das Date: Wed, 4 Nov 2026 08:52:39 +0530 Subject: [PATCH 175/440] Recover resource identity from completed workflow Auto evidence --- docs/template-gallery-assets.md | 20 + package.json | 2 +- scripts/live-proof-provenance.mjs | 28 +- scripts/observed-workflow-auto-resource.mjs | 359 +++++++++++++++++ scripts/workflow-auto-provenance.test.mjs | 417 ++++++++++++++++++++ 5 files changed, 821 insertions(+), 5 deletions(-) create mode 100644 scripts/observed-workflow-auto-resource.mjs create mode 100644 scripts/workflow-auto-provenance.test.mjs diff --git a/docs/template-gallery-assets.md b/docs/template-gallery-assets.md index 05fec410..f33ed01d 100644 --- a/docs/template-gallery-assets.md +++ b/docs/template-gallery-assets.md @@ -613,3 +613,23 @@ template recipe; stale creator locks and other release failures remain blocking. ## Live generation batching The maintainer-only Gallery runner may reuse a loaded pipeline only for consecutive templates with the same normalized Studio `modelType`. The first template, every model boundary, and every failed template resets the reuse chain and invokes accelerator cleanup. Template inputs come from an explicit checked-in input map; the runner never acquires or repairs a model during execution. Use `npm run gallery:run -- --help` for the current options rather than retaining dated host-specific command batches in documentation. + +## Retained whole-workflow Auto observations + +A normal graph Run can have a verified whole-workflow Auto receipt without a +primary Studio candidate ID. For a completed, fresh, unquantized native modular +text-to-image graph, the provenance reader can recover an observed resource +identity from the original task's backend-resolved fields and consumed node +receipts. It checks the exact request/output/task/attempt/session/workflow joins, +worker graph hash, immutable literal model owner, controls and backend task +declaration. Missing, conflicting, connected, reused, deferred, patched or +unsupported evidence stays held. Client form intent alone supplies no identity. + +The `observed-workflow-auto-resource-v1` identity records that executed recipe; +it does not assert a registered primary Auto recipe, hardware qualification or +publication approval. Node IDs, prompts and seeds do not manufacture distinct +resource recipes; model pins, effective settings and geometry remain bound. +Original tasks retain their original candidate fields, source and capture time. +Do not rerun a model merely to add this maintainer metadata, rewrite a raw task, +refresh a stale public template lock, or infer missing consumed defaults. The +existing source/model/input/media validators and human review still apply. diff --git a/package.json b/package.json index 3d486907..97f47887 100644 --- a/package.json +++ b/package.json @@ -84,7 +84,7 @@ "test:task-templates": "node --test scripts/task-template-contracts.test.mjs", "test:template-assets:local": "node --test scripts/template-default-inputs.test.mjs", "test:template-quality": "node --test scripts/template-quality.test.mjs", - "test:live-qwen-proof": "node --test scripts/live-qwen-proof.test.mjs scripts/canonical-runtime-hints.test.mjs scripts/hardware-qualification.test.mjs scripts/hardware-execution-device.test.mjs scripts/hardware-runtime-identity.test.mjs scripts/release-qualification-policy.test.mjs scripts/resource-qualification.test.mjs scripts/route-resource-qualification.test.mjs scripts/resource-qualification-campaign.test.mjs scripts/template-qualification.test.mjs scripts/release-qualification-campaign.test.mjs", + "test:live-qwen-proof": "node --test scripts/live-qwen-proof.test.mjs scripts/workflow-auto-provenance.test.mjs scripts/canonical-runtime-hints.test.mjs scripts/hardware-qualification.test.mjs scripts/hardware-execution-device.test.mjs scripts/hardware-runtime-identity.test.mjs scripts/release-qualification-policy.test.mjs scripts/resource-qualification.test.mjs scripts/route-resource-qualification.test.mjs scripts/resource-qualification-campaign.test.mjs scripts/template-qualification.test.mjs scripts/release-qualification-campaign.test.mjs", "test:release-contract": "node --test scripts/backend-installer-contract.test.mjs scripts/backend-node-registry.test.mjs scripts/release-contract.test.mjs scripts/template-asset-release-contract.test.mjs", "test:live-backend-contract": "node scripts/live-backend-contract.mjs", "test:gallery-harness": "node --test scripts/template-gallery-harness.test.mjs", diff --git a/scripts/live-proof-provenance.mjs b/scripts/live-proof-provenance.mjs index 7a68c11d..e0f25861 100644 --- a/scripts/live-proof-provenance.mjs +++ b/scripts/live-proof-provenance.mjs @@ -7,6 +7,11 @@ import path from 'node:path'; import { normalizeResourceRouteBinding, resourceRouteBindingHash } from './resource-route-binding.mjs'; import { createAppliedAdapterProof, validateAppliedAdapterProof } from './applied-adapter-provenance.mjs'; import { assertCanonicalDdimGraphEnvelope, canonicalDdimRuntimeHintAccounting } from './canonical-runtime-hints.mjs'; +import { + OBSERVED_WORKFLOW_AUTO_SOURCE, + observedWorkflowAutoPlan, + observedWorkflowAutoResourceId, +} from './observed-workflow-auto-resource.mjs'; export { validateAppliedAdapterProof } from './applied-adapter-provenance.mjs'; export const LIVE_PROOF_PROVENANCE_SCHEMA_VERSION = 2; @@ -802,7 +807,7 @@ function executedDirectAudioExpertPlanFromGraph(apiGraph) { }); } -export function executionPlanIdentity(apiGraph) { +export function executionPlanIdentity(apiGraph, executionContext) { const runtimeHints = apiGraph?.runtimeHints ?? {}; const declaredPlan = Object.fromEntries( EXECUTION_PLAN_FIELDS.filter((field) => runtimeHints[field] !== undefined).map((field) => [ @@ -815,7 +820,12 @@ export function executionPlanIdentity(apiGraph) { (field) => ['resourceMode', 'resolvedResourceMode'].includes(field) && declaredPlan[field] === 'expert', ); const modularPlan = expertOnly ? executedModularExpertPlanFromGraph(apiGraph) : null; + const observedAutoPlan = + fields.length === 1 && declaredPlan.resourceMode === 'auto' + ? observedWorkflowAutoPlan(apiGraph, executionContext) + : null; const plan = + observedAutoPlan ?? modularPlan ?? (fields.length > 0 ? declaredPlan @@ -836,7 +846,7 @@ export function executionReceiptIdentity(executionReceipt, executionPlan) { measurement?.processRssBytes ?? null; const manualResourceCandidateId = - executionPlan?.modelType && executionPlan?.dtype + executionPlan?.source !== OBSERVED_WORKFLOW_AUTO_SOURCE && executionPlan?.modelType && executionPlan?.dtype ? `manual-resource-v1:${[ executionPlan.modelType, executionPlan.dtype, @@ -846,7 +856,10 @@ export function executionReceiptIdentity(executionReceipt, executionPlan) { : null; return { resourceCandidateId: - hints?.autoResourceCandidateId ?? executionPlan?.autoResourceCandidateId ?? manualResourceCandidateId, + hints?.autoResourceCandidateId ?? + executionPlan?.autoResourceCandidateId ?? + observedWorkflowAutoResourceId(executionPlan) ?? + manualResourceCandidateId, elapsedSeconds: Number.isFinite(measurement?.elapsedSeconds) && measurement.elapsedSeconds >= 0 ? measurement.elapsedSeconds @@ -1389,6 +1402,13 @@ export function validateRunProvenance(provenance) { if (!provenance?.execution?.resourceCandidateId) { blockers.push('execution.resourceCandidateId is missing.'); } + if ( + provenance?.graph?.executionPlan?.source === OBSERVED_WORKFLOW_AUTO_SOURCE && + (!observedWorkflowAutoResourceId(provenance.graph.executionPlan) || + provenance.execution?.resourceCandidateId !== observedWorkflowAutoResourceId(provenance.graph.executionPlan)) + ) { + blockers.push('execution.resourceCandidateId does not match the retained workflow Auto observation.'); + } if (!Number.isFinite(provenance?.execution?.elapsedSeconds) || provenance.execution.elapsedSeconds < 0) { blockers.push('execution.elapsedSeconds is invalid.'); } @@ -1936,7 +1956,7 @@ export function createRunProvenance({ }); const executionPlan = canonicalAccountingProof === undefined - ? executionPlanIdentity(apiGraph) + ? executionPlanIdentity(apiGraph, { executionReceipt, executedOutput, taskId }) : canonicalAccountingProofPlan({ apiGraph, executedOutput, diff --git a/scripts/observed-workflow-auto-resource.mjs b/scripts/observed-workflow-auto-resource.mjs new file mode 100644 index 00000000..16af3c9b --- /dev/null +++ b/scripts/observed-workflow-auto-resource.mjs @@ -0,0 +1,359 @@ +// Maintainer evidence reader only. No graph execution, Auto admission or qualification. +import assert from 'node:assert/strict'; +import { createHash } from 'node:crypto'; +import { canonicalJsonHash, stableJsonValue } from './canonical-json.mjs'; + +export const OBSERVED_WORKFLOW_AUTO_SOURCE = 'observed-workflow-auto-resource-v1'; +const same = (a, b) => assert.deepEqual(stableJsonValue(a), stableJsonValue(b)); +const value = (node, key) => node.params?.[key]?.value; +const scope = (node) => `${node.module}.${node.action}`; +const ownerScope = 'modules.ModularDiffusers.ModelsLoader'; +const core = ['ModelsLoader', 'EncodePrompt', 'Denoise', 'DecodeLatents'] + .map((a) => 'modules.ModularDiffusers.' + a) + .concat('modules.Image.Preview'); +const optional = 'modules.ModularDiffusers.Guider'; +const ownerFields = new Set( + 'reviewed_variant workflow_id revision repo_id model_type dtype device offload_mode auto_offload weight_loading_mode attention_backend vae_slicing vae_tiling weight_format inpaint_compatibility'.split( + ' ', + ), +); +const scalarFields = new Set('width height num_inference_steps guidance_scale strength'.split(' ')); + +function finiteJson(value, depth = 0, seen = new Set()) { + assert(depth <= 16); + if (value === null || typeof value === 'boolean') return; + if (typeof value === 'number') { + assert(Number.isFinite(value)); + return; + } + if (typeof value === 'string') { + assert(Buffer.byteLength(value) <= 65536); + return; + } + assert(value && typeof value === 'object' && !seen.has(value)); + assert( + Array.isArray(value) || Object.getPrototypeOf(value) === Object.prototype || Object.getPrototypeOf(value) === null, + ); + assert(Object.keys(value).length <= 2048); + seen.add(value); + for (const item of Object.values(value)) finiteJson(item, depth + 1, seen); + seen.delete(value); +} + +// Same compact sorted ASCII-JSON wire domain as the worker. A representation +// mismatch remains unsupported; it is never repaired by replacing the receipt. +function workerGraphHash(graph) { + const material = { nodes: graph.nodes, paths: graph.paths }; + finiteJson(material); + const text = JSON.stringify(stableJsonValue(material)).replace( + /[\u007f-\uffff]/g, + (c) => '\\u' + c.charCodeAt(0).toString(16).padStart(4, '0'), + ); + assert(Buffer.byteLength(text) <= 8 * 1024 ** 2); + return 'sha256:workflow-auto-v1:' + createHash('sha256').update(text).digest('hex'); +} + +export function observedWorkflowAutoResourceId(plan) { + try { + assert.equal(plan.source, OBSERVED_WORKFLOW_AUTO_SOURCE); + const o = plan.resourceObservation; + finiteJson(o); + assert.equal(o.schemaVersion, 1); + assert.equal(typeof o.modelType, 'string'); + assert(o.modelType.length > 0); + assert.equal(typeof o.repo, 'string'); + assert(o.repo.length > 0); + assert.match(o.revision, /^[0-9a-f]{40}$/u); + assert.equal(o.task, 'text_to_image'); + assert(['bfloat16', 'float16', 'float32'].includes(o.dtype)); + assert.equal(typeof o.device, 'string'); + assert(o.device.length > 0); + assert.equal(typeof o.autoOffload, 'boolean'); + assert(['none', 'model_cpu', 'sequential_cpu', 'group_cpu', 'group_disk'].includes(o.offloadMode)); + assert(['cpu', 'cuda'].includes(o.weightLoadingMode)); + for (const key of ['width', 'height']) + assert(Number.isInteger(o.geometry[key]) && o.geometry[key] > 0 && o.geometry[key] <= 32768); + assert.equal(o.strategy, 'dependency_order_retained_owners'); + assert(Array.isArray(o.controls) && o.controls.length >= 2 && o.controls.length <= 3); + const controls = new Map(o.controls.map((c) => [c.scope, c.fields])); + assert.equal(controls.size, o.controls.length); + assert(controls.has(ownerScope)); + const denoiseFields = controls.get('modules.ModularDiffusers.Denoise'); + assert(denoiseFields); + for (const key of ['width', 'height']) same(denoiseFields[key], o.geometry[key]); + for (const [kind, fields] of controls) { + assert(kind === ownerScope || kind === 'modules.ModularDiffusers.Denoise' || kind === optional); + for (const key of Object.keys(fields)) assert((kind === ownerScope ? ownerFields : scalarFields).has(key)); + } + for (const [key, other] of Object.entries({ + modelType: 'modelType', + modelRepo: 'repo', + modelRevision: 'revision', + task: 'task', + dtype: 'dtype', + device: 'device', + offloadMode: 'offloadMode', + autoOffload: 'autoOffload', + weightLoadingMode: 'weightLoadingMode', + attentionBackend: 'attentionBackend', + vaeSlicing: 'vaeSlicing', + vaeTiling: 'vaeTiling', + })) + same(plan[key], o[other]); + assert.equal(plan.resolvedModelRepo, o.repo); + assert.equal(plan.resolvedArtifact, o.repo); + assert.equal(plan.pipelineClass, o.modelType); + assert.equal(plan.resourceMode, 'auto'); + assert.equal(plan.resolvedResourceMode, 'auto'); + assert.equal(plan.quantizationMode, 'none'); + same(plan.quantizedComponents, []); + const id = OBSERVED_WORKFLOW_AUTO_SOURCE + ':' + canonicalJsonHash(o); + assert.equal(plan.observedResourceCandidateId, id); + return id; + } catch { + return null; + } +} + +/** Recover only a fresh, literal, unquantized native image T2I owner. Unknown, + * connected, composite, deferred, reused and runtime-patched cases stay held. */ +export function observedWorkflowAutoPlan(apiGraph, { executionReceipt: task, executedOutput: output, taskId } = {}) { + try { + const hints = apiGraph.runtimeHints, + snapshot = hints.workflowSnapshot, + form = snapshot.studioForm; + assert.equal(hints.resourceMode, 'auto'); + assert.equal(form.resourceMode, 'auto'); + assert.equal(form.mode, 'text_to_image'); + assert.equal(task.status, 'completed'); + assert.equal(task.attempt_index, 0); + assert.equal(output.attemptIndex, 0); + for (const [key, taskKey, outputKey] of [ + ['sid', 'sid', 'sid'], + ['workflowTabId', 'workflow_tab_id', 'workflowTabId'], + ['clientRunId', 'client_run_id', 'clientRunId'], + ['runInputHash', 'run_input_hash', 'runInputHash'], + ]) { + const v = key === 'sid' ? apiGraph.sid : hints[key]; + assert.equal(typeof v, 'string'); + assert(v.length > 0); + assert.equal(task[taskKey], v); + assert.equal(output[outputKey], v); + } + assert.equal(typeof task.task_id, 'string'); + assert(task.task_id); + if (taskId !== undefined) assert.equal(taskId, task.task_id); + assert.equal(output.taskId, task.task_id); + same(output.apiGraphSnapshot, apiGraph); + same(task.workflow_snapshot, snapshot); + same(output.formSnapshot, form); + assert.equal(hints.workflowAutoPlan.schemaVersion, 1); + assert(!Object.hasOwn(apiGraph, 'loops')); + assert.equal(hints.workflowAutoPlan.graphHash, workerGraphHash(apiGraph)); + const entries = Object.entries(apiGraph.nodes), + ids = new Set(entries.map(([id]) => id)); + const order = [...new Set(apiGraph.paths.flat())]; + same([...ids].sort(), [...order].sort()); + assert(entries.length <= 6); + const scopes = new Map(); + for (const [id, node] of entries) { + const key = scope(node); + assert(core.includes(key) || key === optional); + assert(!scopes.has(key)); + scopes.set(key, { id, node }); + for (const param of Object.values(node.params)) + if (param.sourceId) { + assert(ids.has(param.sourceId)); + assert(order.indexOf(param.sourceId) < order.indexOf(id)); + } + } + for (const key of core) assert(scopes.has(key)); + const { id: ownerId, node: owner } = scopes.get(ownerScope), + { id: previewId } = scopes.get('modules.Image.Preview'); + assert.equal(output.nodeId, previewId); + const receipt = output.resolvedExecutionInputs; + assert.equal(receipt.source, 'backend-execution'); + assert.equal(receipt.taskId, task.task_id); + assert.equal(receipt.attemptIndex, 0); + assert.equal(receipt.nodeId, previewId); + assert.equal(receipt.truncated, false); + same(receipt.uncapturedNodeIds, []); + assert.equal(receipt.nodes.length, entries.length); + const rows = new Map(receipt.nodes.map((row) => [row.nodeId, row])); + same([...rows.keys()].sort(), [...ids].sort()); + for (const [id, node] of entries) { + assert.equal(rows.get(id).module, node.module); + assert.equal(rows.get(id).action, node.action); + } + same(receipt.graphTasks, [{ loaderId: ownerId, pipelineClass: value(owner, 'model_type'), task: 'text_to_image' }]); + assert.equal(form.modelType, value(owner, 'model_type')); + assert.equal(form.quantizationMode, 'none'); + assert.equal(form.trustRemoteCode, false); + assert.equal(value(owner, 'trust_remote_code'), false); + assert.equal(value(owner, 'weight_format'), 'native'); + for (const key of [ + 'repo_id', + 'revision', + 'model_type', + 'dtype', + 'device', + 'offload_mode', + 'auto_offload', + 'weight_loading_mode', + 'trust_remote_code', + 'weight_format', + ]) + assert(!owner.params[key]?.sourceId && !owner.params[key]?.sourceKey); + for (const key of [ + 'quant_config', + 'unet', + 'vae', + 'controlnet', + 'lora_list', + 'text_encoders', + 'pipeline_components', + 'image_encoder', + ]) { + assert(!owner.params[key]?.sourceId && !owner.params[key]?.sourceKey); + assert(value(owner, key) == null); + } + const repo = value(owner, 'repo_id'); + assert.equal(repo.source, 'hub'); + assert.equal(typeof repo.value, 'string'); + assert(repo.value); + const revision = value(owner, 'revision'); + assert.match(revision, /^[0-9a-f]{40}$/u); + const trace = rows.get(ownerId).fields; + for (const key of [ + 'repo_id', + 'revision', + 'model_type', + 'dtype', + 'device', + 'offload_mode', + 'auto_offload', + 'weight_loading_mode', + 'attention_backend', + 'vae_slicing', + 'vae_tiling', + ]) { + assert.equal(trace[key].source, 'literal'); + same(trace[key].value, key === 'repo_id' ? repo.value : value(owner, key)); + } + assert.equal(trace.quant_config.source, 'literal'); + assert.equal(trace.quant_config.value, null); + assert(['bfloat16', 'float16', 'float32'].includes(value(owner, 'dtype'))); + assert.equal(typeof value(owner, 'auto_offload'), 'boolean'); + assert.equal(typeof value(owner, 'device'), 'string'); + assert(['none', 'model_cpu', 'sequential_cpu', 'group_cpu', 'group_disk'].includes(value(owner, 'offload_mode'))); + assert(['cpu', 'cuda'].includes(value(owner, 'weight_loading_mode'))); + const prep = task.runtimePreparation; + assert.equal(prep.resourceMode, 'auto'); + const auto = prep.workflowAuto; + assert.equal(auto.strategy, 'dependency_order_retained_owners'); + assert.equal(auto.schedule, null); + assert.equal(auto.cachePreparation, null); + for (const key of ['reusedOwnerIds', 'preparedDataNodes', 'appliedUpdates', 'releases']) same(auto[key], []); + assert(auto.resolvedFields[ownerId]); + for (const key of [ + 'repo_id', + 'revision', + 'model_type', + 'dtype', + 'device', + 'offload_mode', + 'auto_offload', + 'weight_loading_mode', + 'weight_format', + 'attention_backend', + 'vae_slicing', + 'vae_tiling', + ]) + assert(Object.hasOwn(auto.resolvedFields[ownerId], key)); + const denoiseOwner = scopes.get('modules.ModularDiffusers.Denoise').id; + for (const key of ['width', 'height']) assert(Object.hasOwn(auto.resolvedFields[denoiseOwner], key)); + const controls = []; + for (const [id, fields] of Object.entries(auto.resolvedFields)) { + const node = apiGraph.nodes[id]; + assert(node); + const kind = scope(node); + assert(kind === ownerScope || kind === 'modules.ModularDiffusers.Denoise' || kind === optional); + for (const [key, v] of Object.entries(fields)) { + assert((kind === ownerScope ? ownerFields : scalarFields).has(key)); + assert(!node.params[key]?.sourceId && !node.params[key]?.sourceKey); + same(v, value(node, key)); + const captured = rows.get(id).fields[key]; + if (captured) { + assert.equal(captured.source, 'literal'); + same(captured.value, key === 'repo_id' ? repo.value : v); + } + } + controls.push({ scope: kind, fields: structuredClone(fields) }); + } + controls.sort((a, b) => a.scope.localeCompare(b.scope)); + const denoise = scopes.get('modules.ModularDiffusers.Denoise'), + d = rows.get(denoise.id).fields; + for (const key of ['width', 'height', 'seed', 'num_inference_steps', 'guidance_scale']) { + assert.equal(d[key].source, 'literal'); + same(d[key].value, value(denoise.node, key)); + } + for (const key of ['width', 'height']) + assert(Number.isInteger(d[key].value) && d[key].value > 0 && d[key].value <= 32768); + const encoded = scopes.get('modules.ModularDiffusers.EncodePrompt'); + for (const [key, formKey] of [ + ['prompt', 'prompt'], + ['negative_prompt', 'negativePrompt'], + ]) { + assert.equal(rows.get(encoded.id).fields[key].source, 'literal'); + same(rows.get(encoded.id).fields[key].value, value(encoded.node, key)); + same(value(encoded.node, key), form[formKey]); + } + const plan = { + source: OBSERVED_WORKFLOW_AUTO_SOURCE, + modelType: value(owner, 'model_type'), + pipelineClass: value(owner, 'model_type'), + modelRepo: repo.value, + resolvedModelRepo: repo.value, + resolvedArtifact: repo.value, + modelRevision: revision, + task: 'text_to_image', + resourceMode: 'auto', + resolvedResourceMode: 'auto', + dtype: value(owner, 'dtype'), + device: value(owner, 'device'), + offloadMode: value(owner, 'offload_mode'), + autoOffload: value(owner, 'auto_offload'), + weightLoadingMode: value(owner, 'weight_loading_mode'), + attentionBackend: value(owner, 'attention_backend'), + vaeSlicing: value(owner, 'vae_slicing'), + vaeTiling: value(owner, 'vae_tiling'), + quantizationMode: 'none', + quantizedComponents: [], + }; + const observation = { + schemaVersion: 1, + modelType: plan.modelType, + repo: repo.value, + revision, + task: plan.task, + dtype: plan.dtype, + device: plan.device, + offloadMode: plan.offloadMode, + autoOffload: plan.autoOffload, + weightLoadingMode: plan.weightLoadingMode, + attentionBackend: plan.attentionBackend, + vaeSlicing: plan.vaeSlicing, + vaeTiling: plan.vaeTiling, + geometry: { width: d.width.value, height: d.height.value }, + strategy: auto.strategy, + controls, + }; + return { + ...plan, + resourceObservation: observation, + observedResourceCandidateId: OBSERVED_WORKFLOW_AUTO_SOURCE + ':' + canonicalJsonHash(observation), + }; + } catch { + return null; + } +} diff --git a/scripts/workflow-auto-provenance.test.mjs b/scripts/workflow-auto-provenance.test.mjs new file mode 100644 index 00000000..8bd8dd9c --- /dev/null +++ b/scripts/workflow-auto-provenance.test.mjs @@ -0,0 +1,417 @@ +import assert from 'node:assert/strict'; +import { createHash } from 'node:crypto'; +import { test } from 'node:test'; +import { spawnSync } from 'node:child_process'; +import { dirname, resolve } from 'node:path'; +import { fileURLToPath } from 'node:url'; +import { executionPlanIdentity, executionReceiptIdentity } from './live-proof-provenance.mjs'; +import { canonicalJsonHash, stableJsonValue } from './canonical-json.mjs'; + +const literal = (value) => ({ value }); +function graphHash(graph) { + const material = JSON.stringify(stableJsonValue({ nodes: graph.nodes, paths: graph.paths })).replace( + /[\u007f-\uffff]/gu, + (c) => '\\u' + c.charCodeAt(0).toString(16).padStart(4, '0'), + ); + return 'sha256:workflow-auto-v1:' + createHash('sha256').update(material).digest('hex'); +} +function witness({ prefix = '', width = 1024, prompt = 'A product photograph', seed = 4202, guider = false } = {}) { + const ids = Object.fromEntries(['owner', 'encode', 'denoise', 'decode', 'preview'].map((k) => [k, prefix + k])); + const connect = (id, key) => ({ sourceId: ids[id], sourceKey: key }); + const values = { + reviewed_variant: 'example/native-image', + workflow_id: 'text2image', + revision: 'a'.repeat(40), + repo_id: { source: 'hub', value: 'example/native-image' }, + model_type: 'ExampleModularPipeline', + dtype: 'bfloat16', + device: 'cuda:0', + offload_mode: 'model_cpu', + auto_offload: true, + weight_loading_mode: 'cpu', + attention_backend: 'auto', + vae_slicing: true, + vae_tiling: true, + weight_format: 'native', + inpaint_compatibility: 'native', + }; + const form = { + mode: 'text_to_image', + modelType: values.model_type, + resourceMode: 'auto', + dtype: values.dtype, + quantizationMode: 'none', + trustRemoteCode: false, + prompt, + negativePrompt: '', + width, + height: 1024, + seed, + }; + const nodes = { + [ids.owner]: { + module: 'modules.ModularDiffusers', + action: 'ModelsLoader', + params: { + ...Object.fromEntries(Object.entries(values).map(([k, v]) => [k, literal(v)])), + trust_remote_code: literal(false), + quant_config: literal(null), + unet: literal(null), + vae: literal(null), + controlnet: literal(null), + lora_list: literal(null), + }, + }, + [ids.encode]: { + module: 'modules.ModularDiffusers', + action: 'EncodePrompt', + params: { + text_encoders: connect('owner', 'text_encoders'), + prompt: literal(prompt), + negative_prompt: literal(''), + }, + }, + [ids.denoise]: { + module: 'modules.ModularDiffusers', + action: 'Denoise', + params: { + unet: connect('owner', 'unet_out'), + scheduler: connect('owner', 'scheduler'), + embeddings: connect('encode', 'embeddings'), + width: literal(width), + height: literal(1024), + seed: literal(seed), + num_inference_steps: literal(8), + guidance_scale: literal(1), + strength: literal(0.5), + }, + }, + [ids.decode]: { + module: 'modules.ModularDiffusers', + action: 'DecodeLatents', + params: { vae: connect('owner', 'vae_out'), latents: connect('denoise', 'latents') }, + }, + [ids.preview]: { + module: 'modules.Image', + action: 'Preview', + params: { image: connect('decode', 'images'), device: literal('cuda:0') }, + }, + }; + const apiGraph = { + sid: 'genuine-session', + nodes, + paths: [[ids.owner, ids.encode, ids.denoise, ids.decode, ids.preview]], + runtimeHints: { + resourceMode: 'auto', + workflowTabId: 'workflow', + clientRunId: 'client-run', + runInputHash: 'run-input', + workflowSnapshot: { nodes: [], edges: [], studioForm: form, activeTemplateId: 'example-template' }, + }, + }; + apiGraph.runtimeHints.workflowAutoPlan = { schemaVersion: 1, graphHash: graphHash(apiGraph) }; + const captured = (node, fields) => ({ + nodeId: node, + module: nodes[node].module, + action: nodes[node].action, + fields: Object.fromEntries(Object.entries(fields).map(([k, v]) => [k, { value: v, source: 'literal' }])), + }); + const ownerTrace = { ...values, repo_id: values.repo_id.value, quant_config: null }; + delete ownerTrace.reviewed_variant; + delete ownerTrace.workflow_id; + delete ownerTrace.weight_format; + delete ownerTrace.inpaint_compatibility; + const denoiseTrace = Object.fromEntries( + ['width', 'height', 'seed', 'num_inference_steps', 'guidance_scale', 'strength'].map((k) => [ + k, + nodes[ids.denoise].params[k].value, + ]), + ); + const receipt = { + source: 'backend-execution', + taskId: 'task', + attemptIndex: 0, + nodeId: ids.preview, + truncated: false, + uncapturedNodeIds: [], + graphTasks: [{ loaderId: ids.owner, pipelineClass: values.model_type, task: 'text_to_image' }], + nodes: [ + captured(ids.owner, ownerTrace), + captured(ids.encode, { prompt, negative_prompt: '' }), + captured(ids.denoise, denoiseTrace), + captured(ids.decode, {}), + captured(ids.preview, { device: 'cuda:0' }), + ], + }; + const executionReceipt = { + task_id: 'task', + status: 'completed', + attempt_index: 0, + sid: apiGraph.sid, + workflow_tab_id: 'workflow', + client_run_id: 'client-run', + run_input_hash: 'run-input', + workflow_snapshot: apiGraph.runtimeHints.workflowSnapshot, + resourceCandidateId: null, + runtimeMeasurement: { + elapsedSeconds: 54, + peakMeasurementVersion: 2, + peakAllocatedBytes: 24_000_000_000, + backend: 'rocm', + device: 'cuda:0', + }, + runtimePreparation: { + resourceMode: 'auto', + workflowAuto: { + strategy: 'dependency_order_retained_owners', + schedule: null, + cachePreparation: null, + reusedOwnerIds: [], + preparedDataNodes: [], + appliedUpdates: [], + releases: [], + resolvedFields: { + [ids.owner]: values, + [ids.denoise]: Object.fromEntries(Object.entries(denoiseTrace).filter(([k]) => k !== 'seed')), + }, + }, + }, + }; + const executedOutput = { + taskId: 'task', + attemptIndex: 0, + sid: apiGraph.sid, + workflowTabId: 'workflow', + clientRunId: 'client-run', + runInputHash: 'run-input', + nodeId: ids.preview, + apiGraphSnapshot: apiGraph, + formSnapshot: form, + resolvedExecutionInputs: receipt, + }; + if (guider) { + const id = prefix + 'guider'; + nodes[id] = { module: 'modules.ModularDiffusers', action: 'Guider', params: { guidance_scale: literal(1) } }; + apiGraph.paths[0].splice(1, 0, id); + nodes[ids.denoise].params.guider = { sourceId: id, sourceKey: 'guider' }; + receipt.nodes.push(captured(id, { guidance_scale: 1 })); + executionReceipt.runtimePreparation.workflowAuto.resolvedFields[id] = { guidance_scale: 1 }; + apiGraph.runtimeHints.workflowAutoPlan.graphHash = graphHash(apiGraph); + } + return { apiGraph, executionReceipt, executedOutput, ids }; +} +const planFor = (w) => executionPlanIdentity(w.apiGraph, w).plan; + +test('a completed whole-workflow Auto trace retains its actual resource identity without rewriting the raw candidate', () => { + const w = witness(), + before = structuredClone(w), + plan = planFor(w); + assert.equal(plan.modelType, 'ExampleModularPipeline'); + assert.equal(plan.modelRepo, 'example/native-image'); + assert.equal(plan.modelRevision, 'a'.repeat(40)); + assert.equal(plan.offloadMode, 'model_cpu'); + assert.equal(plan.weightLoadingMode, 'cpu'); + assert.equal(plan.resourceMode, 'auto'); + assert.equal(plan.source, 'observed-workflow-auto-resource-v1'); + assert.equal(plan.autoResourceCandidateId, undefined, 'An observed recipe is not a primary catalog Auto candidate.'); + const execution = executionReceiptIdentity(w.executionReceipt, plan); + assert.match(execution.resourceCandidateId, /^observed-workflow-auto-resource-v1:[0-9a-f]{64}$/u); + assert.deepEqual(w, before); + assert.equal(w.executionReceipt.resourceCandidateId, null); +}); + +test('resource observation ignores node IDs, prompt and seed, while retaining geometry', () => { + const first = witness(), + second = witness({ prefix: 'other-', prompt: 'A different photograph', seed: 1234 }); + const id = (w) => executionReceiptIdentity(w.executionReceipt, planFor(w)).resourceCandidateId; + assert.ok(id(first)); + assert.equal(id(first), id(second)); + assert.notEqual(id(first), id(witness({ width: 1536 }))); +}); + +test('client Auto hints alone cannot manufacture the backend execution observation', () => { + const w = witness(); + assert.equal(executionPlanIdentity(w.apiGraph).plan.source, undefined); + assert.equal(executionReceiptIdentity({}, executionPlanIdentity(w.apiGraph).plan).resourceCandidateId, null); +}); + +test('incomplete, conflicting, connected or reused execution evidence remains held', () => { + const mutations = { + missingTask: (w) => { + delete w.executionReceipt; + }, + wrongFactoryTask: (w) => { + w.taskId = 'other'; + }, + missingResolvedDtype: (w) => { + delete w.executionReceipt.runtimePreparation.workflowAuto.resolvedFields[w.ids.owner].dtype; + }, + unfinished: (w) => { + w.executionReceipt.status = 'running'; + }, + wrongOutputTask: (w) => { + w.executedOutput.taskId = 'other'; + }, + wrongOutputAttempt: (w) => { + w.executedOutput.attemptIndex = 1; + }, + wrongSession: (w) => { + w.executionReceipt.sid = 'other'; + }, + wrongWorkflow: (w) => { + w.executedOutput.workflowTabId = 'other'; + }, + wrongClientRun: (w) => { + w.executionReceipt.client_run_id = 'other'; + }, + wrongInputHash: (w) => { + w.executionReceipt.run_input_hash = 'other'; + }, + truncated: (w) => { + w.executedOutput.resolvedExecutionInputs.truncated = true; + }, + missingNode: (w) => { + w.executedOutput.resolvedExecutionInputs.nodes.pop(); + }, + uncaptured: (w) => { + w.executedOutput.resolvedExecutionInputs.uncapturedNodeIds = [w.ids.owner]; + }, + wrongTaskMode: (w) => { + w.executedOutput.resolvedExecutionInputs.graphTasks[0].task = 'edit_image'; + }, + wrongPipeline: (w) => { + w.executedOutput.resolvedExecutionInputs.graphTasks[0].pipelineClass = 'OtherPipeline'; + }, + wrongOwner: (w) => { + w.executedOutput.resolvedExecutionInputs.graphTasks[0].loaderId = w.ids.encode; + }, + noBackendPlan: (w) => { + delete w.executionReceipt.runtimePreparation.workflowAuto; + }, + changedStrategy: (w) => { + w.executionReceipt.runtimePreparation.workflowAuto.strategy = 'unknown'; + }, + ownerReuse: (w) => { + w.executionReceipt.runtimePreparation.workflowAuto.reusedOwnerIds = [w.ids.owner]; + }, + deferredData: (w) => { + w.executionReceipt.runtimePreparation.workflowAuto.preparedDataNodes = [w.ids.encode]; + }, + runtimePatches: (w) => { + w.executionReceipt.runtimePreparation.workflowAuto.appliedUpdates = [{}]; + }, + changedTrace: (w) => { + w.executedOutput.resolvedExecutionInputs.nodes[0].fields.dtype.value = 'float32'; + }, + changedResolved: (w) => { + w.executionReceipt.runtimePreparation.workflowAuto.resolvedFields[w.ids.owner].offload_mode = 'none'; + }, + mutableRevision: (w) => { + w.apiGraph.nodes[w.ids.owner].params.revision.value = 'main'; + }, + connectedIdentity: (w) => { + w.apiGraph.nodes[w.ids.owner].params.repo_id.sourceId = w.ids.encode; + }, + unsafeCode: (w) => { + w.apiGraph.nodes[w.ids.owner].params.trust_remote_code.value = true; + }, + borrowedComponent: (w) => { + w.apiGraph.nodes[w.ids.owner].params.vae.sourceId = w.ids.decode; + }, + quantized: (w) => { + w.apiGraph.nodes[w.ids.owner].params.quant_config.value = { backend: 'other' }; + }, + forgedHash: (w) => { + w.apiGraph.runtimeHints.workflowAutoPlan.graphHash = 'sha256:workflow-auto-v1:' + '0'.repeat(64); + }, + nonfinite: (w) => { + w.apiGraph.nodes[w.ids.owner].params.extra = { value: NaN }; + w.apiGraph.runtimeHints.workflowAutoPlan.graphHash = graphHash(w.apiGraph); + }, + unknownResolvedField: (w) => { + w.apiGraph.nodes[w.ids.owner].params.unknown = { value: true }; + w.executionReceipt.runtimePreparation.workflowAuto.resolvedFields[w.ids.owner].unknown = true; + w.apiGraph.runtimeHints.workflowAutoPlan.graphHash = graphHash(w.apiGraph); + }, + clientCustomMode: (w) => { + w.apiGraph.runtimeHints.resourceMode = 'expert'; + }, + backendCustomMode: (w) => { + w.executionReceipt.runtimePreparation.resourceMode = 'expert'; + }, + }; + for (const [name, mutate] of Object.entries(mutations)) { + const w = witness(); + mutate(w); + assert.notEqual(planFor(w).source, 'observed-workflow-auto-resource-v1', name); + } +}); + +test('a changed observed recipe cannot fall back to a manual candidate', () => { + const w = witness(), + plan = planFor(w); + assert.equal(plan.source, 'observed-workflow-auto-resource-v1'); + plan.offloadMode = 'none'; + assert.equal(executionReceiptIdentity(w.executionReceipt, plan).resourceCandidateId, null); +}); + +test('a self-hashed incomplete observation cannot manufacture an executed resource identity', () => { + for (const change of [ + (p) => { + delete p.resourceObservation.geometry; + }, + (p) => { + p.resourceObservation.revision = p.modelRevision = 'main'; + }, + (p) => { + p.pipelineClass = 'OtherPipeline'; + }, + (p) => { + p.quantizedComponents = ['transformer']; + }, + (p) => { + p.resourceObservation.controls = []; + }, + ]) { + const w = witness(), + plan = planFor(w); + change(plan); + plan.observedResourceCandidateId = + 'observed-workflow-auto-resource-v1:' + canonicalJsonHash(plan.resourceObservation); + assert.equal(executionReceiptIdentity(w.executionReceipt, plan).resourceCandidateId, null); + } +}); + +test('optional guidance remains part of the exact backend resource observation', () => { + const w = witness({ guider: true }); + const plan = planFor(w); + assert.equal(plan.source, 'observed-workflow-auto-resource-v1'); + assert.equal(plan.resourceObservation.controls.length, 3); +}); + +test('ordinary and Unicode requests use the actual worker hash protocol', () => { + const python = process.env.MODIFF_BACKEND_PYTHON; + assert(python, 'Set the declared ordinary CPU MODIFF_BACKEND_PYTHON for backend protocol checks.'); + const backend = resolve( + process.env.MODIFF_BACKEND_DIR || resolve(dirname(fileURLToPath(import.meta.url)), '../../MoDiff'), + ); + const witnesses = [witness(), witness({ prompt: 'Café 🌅 — tabletop photograph' }), witness({ guider: true })]; + const code = `import ast,hashlib,json,pathlib,sys +p=pathlib.Path(sys.argv[1]); parsed=ast.parse(p.read_text(encoding='utf8')) +functions=[n for n in parsed.body if isinstance(n,ast.FunctionDef) and n.name in {'graph_material','workflow_graph_hash'}] +assert len(functions)==2 +namespace={'hashlib':hashlib,'json':json} +exec(compile(ast.Module(body=functions,type_ignores=[]),str(p),'exec'),namespace) +print(json.dumps([namespace['workflow_graph_hash'](g) for g in json.load(sys.stdin)]))`; + const result = spawnSync( + python, + ['-X', 'utf8', '-B', '-c', code, resolve(backend, 'modiff/workflow_auto_resource.py')], + { encoding: 'utf8', input: JSON.stringify(witnesses.map((w) => w.apiGraph)), timeout: 30000 }, + ); + assert.equal(result.status, 0, result.stderr); + const hashes = JSON.parse(result.stdout); + for (const [i, w] of witnesses.entries()) { + w.apiGraph.runtimeHints.workflowAutoPlan.graphHash = hashes[i]; + assert.equal(planFor(w).source, 'observed-workflow-auto-resource-v1'); + } +}); From 74a915dfc03d6858c04ad5846cc3e77c0568b248 Mon Sep 17 00:00:00 2001 From: Sourav Das Date: Wed, 4 Nov 2026 10:44:48 +0530 Subject: [PATCH 176/440] Use accepted rear-view contact-sheet brief --- scripts/template-quality.test.mjs | 15 +++++++++++++++ src/studio/templates.ts | 4 ++-- 2 files changed, 17 insertions(+), 2 deletions(-) diff --git a/scripts/template-quality.test.mjs b/scripts/template-quality.test.mjs index e47db12f..bd3919e3 100644 --- a/scripts/template-quality.test.mjs +++ b/scripts/template-quality.test.mjs @@ -45,6 +45,21 @@ function sampleTemplate(overrides = {}) { }; } +test('the contact-sheet identity brief permits the rear-view exit and declares four panels', () => { + const template = templatesModule.STUDIO_TEMPLATES.find((item) => item.id === 'z_image_cinematic_contact_sheet'); + assert.ok(template); + assert.match(template.prompt, /first three frames where his face is visible/i); + assert.doesNotMatch(template.prompt, /same face[^.]*all four frames/i); + const exit = template.prompt.split('Frame four, lower right:')[1]?.split('Each frame')[0]; + assert.match(exit, /from directly behind/i); + assert.match(exit, /back of his head/i); + assert.match(exit, /strides away from camera/i); + assert.doesNotMatch(template.description, /3x3/i); + assert.equal(template.example.lockedSeed, 4301); + assert.equal(template.example.expectedOutput.width, 1344); + assert.equal(template.example.expectedOutput.height, 768); +}); + test('reviewed FLUX3 blank conditioning is scoped to its exact public profile', () => { for (const [id, declaration] of [ ['flux3_klein_fp8r512_text_to_image', 'flux3-distilled-no-negative-input'], diff --git a/src/studio/templates.ts b/src/studio/templates.ts index 997809b4..04f5c9f3 100644 --- a/src/studio/templates.ts +++ b/src/studio/templates.ts @@ -831,7 +831,7 @@ function videoPredictability(seed: number): StudioTemplatePredictability { } const CONTACT_SHEET_PROMPT = - 'Output one landscape 2x2 cinematic storyboard sheet with exactly four widescreen frames separated only by narrow black gutters; include no title, labels, captions, numbers, or interface marks. Story continuity: the same covert operative in a tailored black suit and concealed earpiece crosses a luxury midnight gala inside one marble mansion under warm golden chandeliers. Preserve the same face, hair, suit, lighting, architecture, and tense elegant mood in all four frames. Frame one, upper left: low-angle wide entrance with the operative crossing the marble floor and guests in the foreground. Frame two, upper right: close over-shoulder view at the champagne bar with a security guard reflected in a mirror. Frame three, lower left: tight profile close-up of the earpiece and watchful eyes behind a foreground glass. Frame four, lower right: long symmetrical hallway exit with dramatic vanishing lines and the operative moving away. Each frame must be a genuinely different camera distance, angle, pose, and story beat while remaining a clean premium 16:9 movie still. Keep the four cells aligned, equally sized, sharp, and readable at thumbnail scale.'; + 'Output one landscape 2x2 cinematic storyboard sheet with exactly four widescreen frames separated only by narrow black gutters; include no title, labels, captions, numbers, or interface marks. Story continuity: the same covert operative in a tailored black suit and concealed earpiece crosses a luxury midnight gala inside one marble mansion under warm golden chandeliers. Preserve the same operative, hair, suit, lighting, architecture and tense elegant mood throughout. Keep his facial identity consistent in the first three frames where his face is visible. In the fourth rear-view frame, recognize him from his hair, suit silhouette and earpiece; do not turn his head toward camera. Frame one, upper left: low-angle wide entrance with the operative crossing the marble floor and guests in the foreground. Frame two, upper right: close over-shoulder view at the champagne bar with a security guard reflected in a mirror. Frame three, lower left: tight profile close-up of the earpiece and watchful eyes behind a foreground glass. Frame four, lower right: a REAR-VIEW LONG SHOT from directly BEHIND the operative, looking along an entirely different narrow marble corridor toward open rain-darkened terrace doors. Show the BACK of his head, BACK of his black suit jacket and BOTH SHOULDERS as he strides AWAY from camera toward those distant doors. His face is completely hidden. This final panel is a distinct rear-view exit, never a repeated front-facing entrance. Each frame must be a genuinely different camera distance, angle, pose, and story beat while remaining a clean premium 16:9 movie still. Keep the four cells aligned, equally sized, sharp, and readable at thumbnail scale.'; const PRODUCT_AD_PROMPT = 'Create one premium magazine advertisement by combining the two supplied references. Input 1 defines the restrained editorial grid, generous warm-white margins and disciplined typography hierarchy. Input 2 defines the immutable ASTERMIST lavender sleep-spray bottle. Build a believable bedside ritual context: place exactly one ASTERMIST bottle at normal cosmetic scale on a honed limestone nightstand beside one folded linen eye mask and a small dried-lavender stem. A softly blurred bed and dawn window belong to the same quiet room; every object rests on the same physical surface with coherent perspective, contact shadows and window light. Preserve the bottle’s pale-lavender glass, liquid level, dip tube, satin-silver atomizer, clear cap and rectangular label. Keep both exact label lines readable: “ASTERMIST” and “LAVENDER SLEEP SPRAY”. Do not enlarge it into architecture, a sculpture or a surreal monument. Use Input 1 only for layout discipline. Add exactly one clean headline in the upper negative space: “NIGHT RITUAL”. Include no other campaign copy. Use black editorial type, warm stone, muted lavender and natural blue dawn light with realistic glass refraction and premium photographic grain. The output must read as one real-location commercial photograph, not a pasted packshot or fantasy composite: matching scale, lens, light direction, color spill, focus falloff and surface contact, with no collage edge, halo, floating product, unrelated scenery or arbitrary object replacement.'; @@ -1736,7 +1736,7 @@ const BASE_STUDIO_TEMPLATES: StudioTemplateSource[] = [ difficulty: 'intermediate', vramEstimate: '8-12 GB with offload', runtimeEstimate: '30-70 sec', - description: 'MoDiff-native 3x3 ideation grid in one runnable Z-Image prompt.', + description: 'Four-frame cinematic storyboard with a consistent subject and a rear-view exit.', presetId: 'fast', example: example(4301, '30-70 sec on a consumer GPU', { width: 1344, height: 768 }), }, From a3e952c271230b744bad05fc5d58e964556cec07 Mon Sep 17 00:00:00 2001 From: Sourav Das Date: Wed, 4 Nov 2026 10:53:07 +0530 Subject: [PATCH 177/440] Record contact-sheet creative revision without changing generation controls --- scripts/template-operation-workflows.test.mjs | 18 +++++++++++++----- .../image-template-creative-revisions.v1.json | 8 ++++++++ 2 files changed, 21 insertions(+), 5 deletions(-) diff --git a/scripts/template-operation-workflows.test.mjs b/scripts/template-operation-workflows.test.mjs index bf76f3ae..8f561217 100644 --- a/scripts/template-operation-workflows.test.mjs +++ b/scripts/template-operation-workflows.test.mjs @@ -356,7 +356,7 @@ test('the 54 image templates preserve creator contracts except explicit versione assert.equal(revisions.schemaVersion, 1); assert.deepEqual( revisions.revisions.map((row) => row.templateId), - ['flux_lora_cinematic_octane_3d'], + ['flux_lora_cinematic_octane_3d', 'z_image_cinematic_contact_sheet'], ); const images = templates.filter((template) => template.example?.mediaType === 'image'); assert.equal(images.length, 54); @@ -367,12 +367,20 @@ test('the 54 image templates preserve creator contracts except explicit versione const revision = revisions.revisions.find((row) => row.templateId === template.id); if (revision) { const digest = (text) => createHash('sha256').update(text).digest('hex'); - assert.equal(revision.recipeVersion, 3); assert.equal(digest(expected.contract.lockedSettings.prompt), revision.previousPromptSha256); assert.equal(digest(template.prompt), revision.promptSha256); - assert.deepEqual(revision.lockedSettings, { guidanceScale: 1, resourceMode: 'expert' }); - assert.doesNotMatch(template.prompt, /\b(?:scar|wound|blood|bruise)\b/iu); - assert.match(template.prompt, /healthy unmarked face/u); + if (template.id === 'flux_lora_cinematic_octane_3d') { + assert.equal(revision.recipeVersion, 3); + assert.deepEqual(revision.lockedSettings, { guidanceScale: 1, resourceMode: 'expert' }); + assert.doesNotMatch(template.prompt, /\b(?:scar|wound|blood|bruise)\b/iu); + assert.match(template.prompt, /healthy unmarked face/u); + } else { + assert.equal(template.id, 'z_image_cinematic_contact_sheet'); + assert.equal(revision.recipeVersion, 2); + assert.deepEqual(revision.lockedSettings, {}, 'the exit revision changes no generation control'); + assert.match(template.prompt, /first three frames where his face is visible/iu); + assert.match(template.prompt, /Frame four, lower right: a REAR-VIEW LONG SHOT from directly BEHIND/iu); + } assert.equal(template.example.status, 'unverified', 'creative review never grants public qualification'); expectedContract.lockedSettings.prompt = template.prompt; Object.assign(expectedContract.lockedSettings, revision.lockedSettings); diff --git a/tests/fixtures/image-template-creative-revisions.v1.json b/tests/fixtures/image-template-creative-revisions.v1.json index 132b929b..9c7a505e 100644 --- a/tests/fixtures/image-template-creative-revisions.v1.json +++ b/tests/fixtures/image-template-creative-revisions.v1.json @@ -11,6 +11,14 @@ "resourceMode": "expert" }, "reason": "Remove injury references and the extra true-CFG pass after the retained portrait and adapter-free control showed soft detail. Keep the original model, adapters, scales, seed, geometry, steps and group offload. The frozen v1 creator contract and its original-source comparison remain unchanged; this revision does not inherit their pixel-parity or publication approval." + }, + { + "templateId": "z_image_cinematic_contact_sheet", + "recipeVersion": 2, + "previousPromptSha256": "e4a436bb655cedadb1a25ae3239ad45b2ac52203fe7e64296601a9a9bf2b3c59", + "promptSha256": "705c4fa86a073cd3343989ea75ebd87e04c3483a9ea1e66998fb91c111afdeb4", + "lockedSettings": {}, + "reason": "Resolve the face-in-every-frame instruction that conflicted with the rear-view exit. Limit visible facial continuity to the first three panels and specify a distinct fourth-panel rear view. Keep all model, seed, geometry, steps and resource settings unchanged. Preserve the frozen original creator contract; visual acceptance of the revised result does not grant publication or hardware qualification." } ] } From 8147e2a4634f776d2a888c5809c804efb1f42793 Mon Sep 17 00:00:00 2001 From: Sourav Das Date: Wed, 4 Nov 2026 11:04:14 +0530 Subject: [PATCH 178/440] Bound the measured accepted contact-sheet prompt size --- scripts/bundle-budget.mjs | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/scripts/bundle-budget.mjs b/scripts/bundle-budget.mjs index 4c21e47f..2e6ee77e 100644 --- a/scripts/bundle-budget.mjs +++ b/scripts/bundle-budget.mjs @@ -1,3 +1,9 @@ +// The accepted rear-view contact-sheet prompt and corrected four-panel description +// measure largest/startup/deferred gzip 496485/674972/329730 versus the packaged +// D59 build's 496250/674736/329640. Only studio-templates.js changes after immutable +// import-URL normalization; the other 89 template contracts and all 94 JavaScript +// asset names are exact. Add only measured startup growth 235/236 bytes, retaining +// 22/25-byte headroom and both deferred caps. No dependency or loading-rule change. // Scoped audio creative receipts measure largest/startup/deferred gzip // 496254/674742/329707 versus the accepted 496215/674704/329829. // Add the measured 39/38 startup bytes, retaining 18/19-byte headroom and @@ -325,6 +331,7 @@ const SOURCE_LICENSES = new URL('../public/THIRD_PARTY_LICENSES.txt', import.met // Scoped video receipts and compatible adapter messaging measure 494870 bytes // in the largest startup asset (+46 over the cap). Add 64 bytes, no dependencies. const MAX_STARTUP_CHUNK_GZIP_BYTES = + 235 + 39 + 128 + 103 + @@ -468,6 +475,7 @@ const MAX_STARTUP_CHUNK_GZIP_BYTES = // The same build measures 673359 aggregate startup bytes (+45 over the cap). // Keep 19 bytes of headroom; deferred limits and loading boundaries stay fixed. const MAX_STARTUP_GZIP_BYTES = + 236 + 38 + 132 + 102 + From eef46573b1919dae74c7b371d950e4cf29d6955d Mon Sep 17 00:00:00 2001 From: Sourav Das Date: Wed, 4 Nov 2026 14:55:00 +0530 Subject: [PATCH 179/440] Validate versioned adapter summaries without rewriting legacy receipts --- .github/workflows/ci.yml | 4 +- README.md | 2 +- docs/modiff-client-architecture.md | 9 ++ scripts/resolved-execution-inputs.test.mjs | 136 ++++++++++++++++++ src/studio/resolvedExecutionInputs.ts | 22 ++- tests/e2e/studio-mocked/studio-mocked.spec.ts | 76 ++++++++++ 6 files changed, 242 insertions(+), 7 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index b54687cd..6265f14c 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -33,7 +33,7 @@ jobs: with: repository: sdevil7th/MoDiff # Paired scoped audio creative-input receipts and current video stages. - ref: cd7fb74c116ae611a1e6cb0dbe95950d129fa84e + ref: a877f992bc788f2c403b4814586006635bc5e76f path: MoDiff persist-credentials: false - name: Verify the pinned backend supports native setup @@ -88,7 +88,7 @@ jobs: with: repository: sdevil7th/MoDiff # Match the immutable backend revision in the Client quality job. - ref: cd7fb74c116ae611a1e6cb0dbe95950d129fa84e + ref: a877f992bc788f2c403b4814586006635bc5e76f path: MoDiff persist-credentials: false - name: Verify the pinned backend supports native setup diff --git a/README.md b/README.md index 5f102c40..f449fcad 100644 --- a/README.md +++ b/README.md @@ -31,7 +31,7 @@ application source pair is: | MoDiff | `1239d1cecd12a7318eb263ca17c34d4fc0445d14` | | MoDiff-client | `c561a01395044fd71c1918e95fb9e9709d8e7601` | -CI backend contract: `cd7fb74c116ae611a1e6cb0dbe95950d129fa84e`. +CI backend contract: `a877f992bc788f2c403b4814586006635bc5e76f`. Both CI jobs use this exact immutable backend pin. The application table above is the earlier reviewed testing baseline. Current CI covers the shared video diff --git a/docs/modiff-client-architecture.md b/docs/modiff-client-architecture.md index 48991d33..b2fec5c7 100644 --- a/docs/modiff-client-architecture.md +++ b/docs/modiff-client-architecture.md @@ -1598,6 +1598,15 @@ model object or credential is captured. Receipt identity cannot be reassigned by history enrichment. See the paired backend API reference for limits and omissions; receipt presence is not output-quality/publication proof. +Optional `summaryScopeVersion: 2` keeps builtin LoRA/adapter descriptor fields in +their original node records while excluding them from the primary-model summary. +The parser recomputes summary, ambiguity and omissions with the same exact builtin +identities as the backend. Other primary owners and custom lookalikes remain +subject to ordinary ambiguity checks. Unknown versions are rejected. Without the +marker, legacy all-node aggregation remains unchanged, including a historical +adapter/base revision ambiguity. Refresh, output packages and history retain the +marker; parsing does not rewrite old receipts or prove that an adapter was applied. + `update_value` messages that match recognized output fields are attributed to the active run context. The client stores a bounded output view and synchronizes through `/studio_outputs`. A backend preview slot, scoped by workflow/node/field, is the authority for the main preview: an accepted new run marks the slot pending, a generated output promotes its durable output ID, and tab changes or browser refreshes do not reclassify it. The Previous strip excludes that ID. Saved canvas values and current-run heuristics are compatibility fallbacks only when talking to an older backend that has no preview-slot contract. An output can carry: diff --git a/scripts/resolved-execution-inputs.test.mjs b/scripts/resolved-execution-inputs.test.mjs index 6139d2ac..7ec12bd5 100644 --- a/scripts/resolved-execution-inputs.test.mjs +++ b/scripts/resolved-execution-inputs.test.mjs @@ -625,6 +625,142 @@ function receipt() { }; } +function adapterSummaryReceipt(module, action) { + const capture = receipt(); + capture.nodes = [ + { + nodeId: 'loader', + module: 'modules.DiffusersImage', + action: 'LoadPipeline', + fields: { + model_id: { value: 'owner/model', source: 'literal' }, + revision: { value: 'a'.repeat(40), source: 'literal' }, + }, + omittedFields: {}, + }, + { + nodeId: 'adapter', + module, + action, + fields: { revision: { value: 'b'.repeat(40), source: 'literal' } }, + omittedFields: {}, + }, + ]; + capture.summary = { repo: 'owner/model', revision: 'a'.repeat(40) }; + capture.summaryScopeVersion = 2; + return capture; +} + +test('scoped adapter summaries retain exact node evidence and legacy receipt semantics', () => { + for (const [module, action] of [ + ['ModularDiffusers', 'Lora'], + ['DiffusersImage', 'LoadAdapter'], + ['DiffusersAudio', 'LoadAdapter'], + ]) { + for (const prefix of ['', 'modules.']) { + const capture = adapterSummaryReceipt(prefix + module, action); + for (const reverse of [false, true]) { + const value = structuredClone(capture); + if (reverse) value.nodes.reverse(); + const original = JSON.stringify(value); + const parsed = inputs.coerceResolvedExecutionInputs(value, value); + assert.ok(parsed, `${module}.${action} reversed=${reverse}`); + assert.equal(parsed.summaryScopeVersion, 2); + assert.deepEqual(parsed.nodes, value.nodes); + assert.deepEqual(parsed.summary, value.summary); + assert.equal(JSON.stringify(value), original, 'never rewrite original evidence'); + assert.deepEqual(inputs.coerceResolvedExecutionInputs(JSON.parse(JSON.stringify(parsed)), parsed), parsed); + } + const omitted = structuredClone(capture); + omitted.nodes[1].fields = {}; + omitted.nodes[1].omittedFields = { revision: 'unsupported-value' }; + assert.deepEqual(inputs.coerceResolvedExecutionInputs(omitted, omitted)?.summary, capture.summary); + const legacy = structuredClone(capture); + delete legacy.summaryScopeVersion; + delete legacy.summary.revision; + legacy.ambiguousFields = ['revision']; + const parsed = inputs.coerceResolvedExecutionInputs(legacy, legacy); + assert.ok(parsed); + assert.equal(parsed.summaryScopeVersion, undefined); + assert.deepEqual(parsed.summary, { repo: 'owner/model' }); + assert.deepEqual(parsed.ambiguousFields, ['revision']); + } + } +}); + +test('scoped summaries reject forged model identity, unknown scope versions and custom lookalikes', () => { + const capture = adapterSummaryReceipt('modules.ModularDiffusers', 'Lora'); + for (const version of [1, 3, null, true, '2']) { + const value = structuredClone(capture); + value.summaryScopeVersion = version; + assert.equal(inputs.coerceResolvedExecutionInputs(value, value), undefined, String(version)); + } + for (const [module, action] of [ + ['modules.custom.ModularDiffusers', 'Lora'], + ['modules.ModularDiffusers', 'CustomLora'], + ['modules.DiffusersImage', 'LoadPipeline'], + ['modules.DiffusersAudio', 'LoadPipeline'], + ]) { + const value = adapterSummaryReceipt(module, action); + assert.equal(inputs.coerceResolvedExecutionInputs(value, value), undefined, `${module}.${action}`); + } + const forged = structuredClone(capture); + forged.summary.revision = 'b'.repeat(40); + assert.equal(inputs.coerceResolvedExecutionInputs(forged, forged), undefined); + const missingMarker = structuredClone(capture); + delete missingMarker.summaryScopeVersion; + assert.equal(inputs.coerceResolvedExecutionInputs(missingMarker, missingMarker), undefined); + const multiple = structuredClone(capture); + multiple.nodes.push({ ...structuredClone(capture.nodes[0]), nodeId: 'other-loader' }); + multiple.nodes[2].fields.revision.value = 'c'.repeat(40); + assert.equal(inputs.coerceResolvedExecutionInputs(multiple, multiple), undefined); + delete multiple.summary.revision; + multiple.ambiguousFields = ['revision']; + assert.ok(inputs.coerceResolvedExecutionInputs(multiple, multiple), 'real owner ambiguity remains explicit'); + const malformed = structuredClone(capture); + malformed.nodes[1].fields.revision.value = { opaque: true }; + assert.equal(inputs.coerceResolvedExecutionInputs(malformed, malformed), undefined, 'excluded fields still validate'); +}); + +test('actual backend adapter summary projections survive the paired history parser', () => { + const backend = fileURLToPath(new URL('../../MoDiff/', import.meta.url)); + const python = + process.env.MODIFF_BACKEND_PYTHON || + `${backend}.venv/${process.platform === 'win32' ? 'Scripts/python.exe' : 'bin/python'}`; + const generated = spawnSync( + python, + [ + '-B', + '-c', + String.raw` +import json +from modiff.execution_input_provenance import capture_generation_inputs, build_resolved_execution_inputs +receipts = [] +for module, action in [('ModularDiffusers', 'Lora'), ('DiffusersImage', 'LoadAdapter'), ('DiffusersAudio', 'LoadAdapter')]: + for omitted in (False, True): + graph = {'nodes': { + 'loader': {'module': 'modules.DiffusersImage', 'action': 'LoadPipeline', 'params': {}}, + 'adapter': {'module': 'modules.' + module, 'action': action, 'params': { + 'pipeline': {'sourceId': 'loader', 'sourceKey': 'pipeline'}}}}} + records = { + 'loader': capture_generation_inputs('loader', graph['nodes']['loader'], {'model_id': 'owner/model', 'revision': 'a' * 40}), + 'adapter': capture_generation_inputs('adapter', graph['nodes']['adapter'], {'revision': object() if omitted else 'b' * 40})} + receipts.append(build_resolved_execution_inputs(graph, records, task_id='paired', attempt_index=0, node_id='adapter')) +print(json.dumps(receipts)) +`, + ], + { cwd: backend, encoding: 'utf8', maxBuffer: 1_000_000 }, + ); + assert.equal(generated.status, 0, generated.stderr); + const captures = JSON.parse(generated.stdout); + assert.equal(captures.length, 6); + for (const capture of captures) { + assert.equal(capture.summaryScopeVersion, 2); + assert.deepEqual(capture.summary, { repo: 'owner/model', revision: 'a'.repeat(40) }); + assert.deepEqual(inputs.coerceResolvedExecutionInputs(capture, capture), capture); + } +}); + function appliedAdapterReceipt(observation = 'activated') { const capture = receipt(); const adapters = [0, 1, 0.75].map((scale, index) => ({ diff --git a/src/studio/resolvedExecutionInputs.ts b/src/studio/resolvedExecutionInputs.ts index bc75034f..4c7d0c59 100644 --- a/src/studio/resolvedExecutionInputs.ts +++ b/src/studio/resolvedExecutionInputs.ts @@ -91,6 +91,8 @@ export type ResolvedExecutionInputs = { graphTasks?: { loaderId: string; pipelineClass: string; task: string | null }[]; /** Version two includes observed ordinary video owners; absence is legacy. */ graphTasksVersion?: 2; + /** Version two excludes builtin adapter descriptors from the primary summary. Absence is legacy. */ + summaryScopeVersion?: 2; /** Optional accounting never changes the legacy consumed-input summary. */ fieldAccountingStatus?: { schemaVersion: 1; truncated: boolean }; appliedAdaptersStatus?: { schemaVersion: 1; truncated: boolean }; @@ -605,6 +607,9 @@ export function coerceResolvedExecutionInputs( ) return undefined; if ([...value.ambiguousFields, ...value.unavailableFields].some((key) => !summaryNames.has(key))) return undefined; + if (hasOwn(value, 'summaryScopeVersion') && value.summaryScopeVersion !== 2) return undefined; + const scopedSummary = value.summaryScopeVersion === 2; + let adapterDescriptorSeen = false; const seen = new Set(); const accounting = new Map(); const applications = new Map(); @@ -623,6 +628,11 @@ export function coerceResolvedExecutionInputs( return undefined; seen.add(node.nodeId); const scope = `${node.module.replace(/^modules\./u, '')}.${node.action}`; + const adapterDescriptor = + scope === 'ModularDiffusers.Lora' || + scope === 'DiffusersImage.LoadAdapter' || + scope === 'DiffusersAudio.LoadAdapter'; + adapterDescriptorSeen ||= adapterDescriptor; if (hasOwn(node, 'appliedAdapters')) { const parsed = appliedAdapters(node.appliedAdapters, scope); if (!parsed) return undefined; @@ -665,16 +675,19 @@ export function coerceResolvedExecutionInputs( (!text(field.sourceNodeId) || !field.sourceNodeId || !text(field.sourcePortId) || !field.sourcePortId) ) return undefined; - const values = candidates.get(canonical) ?? new Set(); - values.add(JSON.stringify(field.value)); - candidates.set(canonical, values); + if (!scopedSummary || !adapterDescriptor) { + const values = candidates.get(canonical) ?? new Set(); + values.add(JSON.stringify(field.value)); + candidates.set(canonical, values); + } } for (const [key, reason] of Object.entries(node.omittedFields)) { const canonical = canonicalName(key); if (!canonical || !text(reason)) return undefined; - unavailable.add(canonical); + if (!scopedSummary || !adapterDescriptor) unavailable.add(canonical); } } + if (scopedSummary && !adapterDescriptorSeen) return undefined; const expectedAmbiguous = [...candidates] .filter(([, values]) => values.size > 1) .map(([key]) => key) @@ -798,6 +811,7 @@ export function coerceResolvedExecutionInputs( ...(applications.has(node.nodeId) ? { appliedAdapters: applications.get(node.nodeId) } : {}), })), summary: value.summary, + ...(scopedSummary ? { summaryScopeVersion: 2 } : {}), ambiguousFields: value.ambiguousFields, unavailableFields: value.unavailableFields, uncapturedNodeIds: value.uncapturedNodeIds, diff --git a/tests/e2e/studio-mocked/studio-mocked.spec.ts b/tests/e2e/studio-mocked/studio-mocked.spec.ts index ee406de1..b0c0c0a8 100644 --- a/tests/e2e/studio-mocked/studio-mocked.spec.ts +++ b/tests/e2e/studio-mocked/studio-mocked.spec.ts @@ -30017,6 +30017,82 @@ test('mocked Gallery separates decoded image geometry from uncaptured input dime expect(metadata.resolvedExecutionInputs.summary).toEqual({ steps: 40 }); }); +for (const scoped of [false, true]) { + test(`mocked Gallery preserves ${scoped ? 'scoped' : 'legacy'} adapter revisions through refresh`, async ({ + page, + }) => { + await ensureFrontend(); + await installMockRoutes(page); + const capture = { + schemaVersion: 1, + source: 'backend-execution', + taskId: 'adapter-task', + nodeId: 'preview', + attemptIndex: 0, + ...(scoped ? { summaryScopeVersion: 2 } : {}), + nodes: [ + { + nodeId: 'loader', + module: 'modules.ModularDiffusers', + action: 'ModelsLoader', + fields: { + repo_id: { value: 'owner/model', source: 'literal' }, + revision: { value: 'a'.repeat(40), source: 'literal' }, + }, + omittedFields: {}, + }, + { + nodeId: 'adapter', + module: 'modules.ModularDiffusers', + action: 'Lora', + fields: { revision: { value: 'b'.repeat(40), source: 'literal' } }, + omittedFields: {}, + }, + ], + summary: { repo: 'owner/model', ...(scoped ? { revision: 'a'.repeat(40) } : {}) }, + ambiguousFields: scoped ? [] : ['revision'], + unavailableFields: [], + uncapturedNodeIds: [], + truncated: false, + }; + const output = { + id: 'adapter-output', + url: '/file?file=adapter-output.webp', + displayType: 'image', + taskId: capture.taskId, + nodeId: capture.nodeId, + attemptIndex: 0, + createdAt: 1, + resolvedExecutionInputs: capture, + }; + await page.route('**/studio_outputs**', async (route) => { + await route.fulfill({ + status: 200, + contentType: 'application/json', + body: JSON.stringify({ error: false, outputs: [output], revision: 1 }), + }); + }); + let graphRequests = 0; + page.on('request', (request) => { + if (new URL(request.url()).pathname === '/graph' && request.method() === 'POST') graphRequests += 1; + }); + await page.goto(FRONTEND_URL, { waitUntil: 'domcontentloaded' }); + for (let reload = 0; reload < 2; reload += 1) { + await page.waitForFunction(() => Boolean(window.__MODIFF_E2E__)); + await dismissTaskLauncher(page); + await page.getByTestId('topbar-gallery').click(); + await expect(page.getByTestId('gallery-output-0')).toBeVisible(); + await page.getByTestId('gallery-view-inspect').click(); + const inspector = page.getByTestId('gallery-inspect-view'); + await expect(inspector.getByTestId('resolved-inputs-status')).toContainText('captured by the backend'); + const metadata = JSON.parse((await inspector.locator('pre').textContent())!); + expect(metadata.resolvedExecutionInputs).toEqual(capture); + if (reload === 0) await page.reload({ waitUntil: 'domcontentloaded' }); + } + expect(graphRequests).toBe(0); + }); +} + test('mocked Gallery keeps effective image overrides and favorite identity after refresh', async ({ page }) => { await ensureFrontend(); await installMockRoutes(page); From 2b6a5a15d9b886692c41b39602830d30c1d02129 Mon Sep 17 00:00:00 2001 From: Sourav Das Date: Wed, 4 Nov 2026 15:07:22 +0530 Subject: [PATCH 180/440] Bound the measured adapter summary parser size increase --- scripts/bundle-budget.mjs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/scripts/bundle-budget.mjs b/scripts/bundle-budget.mjs index 2e6ee77e..61b93efc 100644 --- a/scripts/bundle-budget.mjs +++ b/scripts/bundle-budget.mjs @@ -1,3 +1,8 @@ +// Versioned primary-model summaries add 82/83 compressed startup bytes over +// 496485/674972; deferred gzip falls from 329730 to 329712. Only studio-templates.js +// changes after immutable import-URL normalization, with all 94 JavaScript names, +// four startup/90 deferred assets and dependency/loading rules unchanged. Add only +// the measured cost, retaining 22/25-byte headroom and both deferred caps. // The accepted rear-view contact-sheet prompt and corrected four-panel description // measure largest/startup/deferred gzip 496485/674972/329730 versus the packaged // D59 build's 496250/674736/329640. Only studio-templates.js changes after immutable @@ -331,6 +336,7 @@ const SOURCE_LICENSES = new URL('../public/THIRD_PARTY_LICENSES.txt', import.met // Scoped video receipts and compatible adapter messaging measure 494870 bytes // in the largest startup asset (+46 over the cap). Add 64 bytes, no dependencies. const MAX_STARTUP_CHUNK_GZIP_BYTES = + 82 + 235 + 39 + 128 + @@ -475,6 +481,7 @@ const MAX_STARTUP_CHUNK_GZIP_BYTES = // The same build measures 673359 aggregate startup bytes (+45 over the cap). // Keep 19 bytes of headroom; deferred limits and loading boundaries stay fixed. const MAX_STARTUP_GZIP_BYTES = + 83 + 236 + 38 + 132 + From 82d644f9b0f8d5fc4c3babc7d2c70b548d8c4432 Mon Sep 17 00:00:00 2001 From: Sourav Das Date: Wed, 4 Nov 2026 17:09:54 +0530 Subject: [PATCH 181/440] Recover bounded single-LoRA Auto execution evidence --- docs/template-gallery-assets.md | 19 ++ scripts/applied-adapter-provenance.mjs | 52 ++-- scripts/live-proof-provenance.mjs | 56 ++++- scripts/observed-workflow-auto-resource.mjs | 139 ++++++++++- scripts/workflow-auto-provenance.test.mjs | 261 +++++++++++++++++++- 5 files changed, 490 insertions(+), 37 deletions(-) diff --git a/docs/template-gallery-assets.md b/docs/template-gallery-assets.md index f33ed01d..726fe020 100644 --- a/docs/template-gallery-assets.md +++ b/docs/template-gallery-assets.md @@ -633,3 +633,22 @@ Original tasks retain their original candidate fields, source and capture time. Do not rerun a model merely to add this maintainer metadata, rewrite a raw task, refresh a stale public template lock, or infer missing consumed defaults. The existing source/model/input/media validators and human review still apply. + +A separate `observed-workflow-auto-lora-resource-v1` vocabulary covers one +literal pinned Hub `ModularDiffusers.Lora` descriptor connected to the ordinary +modular text-to-image owner, optionally with the existing Guider. It requires the +original complete, freshly activated native adapter application and the existing +strict ordered-adapter proof, including installed base/adapter identities, +artifact pin/hash, name and numeric scale. The resource projection retains the +validated adapter material; per-application IDs stay in execution evidence and +do not manufacture a different resource recipe. The final provenance validator +joins that projection back to the strict native proof even if someone recomputes +its hash. Legacy plain-graph identities are unchanged. + +Multiple adapters, predecessor chains, scheduler overrides, connected descriptor +controls, missing/ambiguous pins, unavailable/truncated state and reused owners +remain outside this observed-reader scope. This reader runs only in maintainer +evidence tooling: it does not add an Auto recipe, execute a supplier, alter saved +graphs/receipts, acquire weights or grant hardware, quality or publication +qualification. A missing original task candidate remains missing; the derived +observation records the actual retained execution separately. diff --git a/scripts/applied-adapter-provenance.mjs b/scripts/applied-adapter-provenance.mjs index 79c16593..9362a413 100644 --- a/scripts/applied-adapter-provenance.mjs +++ b/scripts/applied-adapter-provenance.mjs @@ -15,29 +15,11 @@ const text = (value, maximum) => !/[\u0000-\u001f]/u.test(value); const sha = (value) => typeof value === 'string' && /^[a-f0-9]{64}$/u.test(value); -export function validateAppliedAdapterSection(section) { - assert.equal(section?.schemaVersion, 1); - if (section.status !== 'complete') { - keys(section, ['schemaVersion', 'status', 'reason']); - assert.ok( - typeof section.reason === 'string' && - (section.status === 'truncated' - ? section.reason === 'record-size-limit' - : section.status === 'unavailable' && - ['unobserved-application', 'owner-invalidated', 'unsupported-owner', 'unsupported-projection'].includes( - section.reason, - )), - 'Unknown adapter availability state.', - ); - return section; - } - keys(section, ['schemaVersion', 'status', 'source', 'applicationId', 'observation', 'adapters', 'stateSha256']); - assert.equal(section.source, 'backend-adapter-application'); - assert.match(section.applicationId, /^[a-f0-9]{32}$/u); - assert.ok(['activated', 'reused'].includes(section.observation)); - assert.ok(Array.isArray(section.adapters) && section.adapters.length <= 32); +/** The stable artifact projection is shared by native state and resource evidence. */ +export function validateAppliedAdapterItems(adapters) { + assert.ok(Array.isArray(adapters) && adapters.length <= 32); const names = new Set(); - for (const item of section.adapters) { + for (const item of adapters) { keys(item, ['adapterName', 'scale', 'descriptorSha256', 'artifact', 'scheduler']); assert.ok( text(item.adapterName, 128) && @@ -81,7 +63,31 @@ export function validateAppliedAdapterSection(section) { assert.match(item.scheduler.configSha256, /^sha256:[a-f0-9]{64}$/u); } } - assert.ok(Buffer.byteLength(JSON.stringify({ adapters: section.adapters }), 'utf8') <= 32_768); + assert.ok(Buffer.byteLength(JSON.stringify({ adapters }), 'utf8') <= 32_768); + return adapters; +} + +export function validateAppliedAdapterSection(section) { + assert.equal(section?.schemaVersion, 1); + if (section.status !== 'complete') { + keys(section, ['schemaVersion', 'status', 'reason']); + assert.ok( + typeof section.reason === 'string' && + (section.status === 'truncated' + ? section.reason === 'record-size-limit' + : section.status === 'unavailable' && + ['unobserved-application', 'owner-invalidated', 'unsupported-owner', 'unsupported-projection'].includes( + section.reason, + )), + 'Unknown adapter availability state.', + ); + return section; + } + keys(section, ['schemaVersion', 'status', 'source', 'applicationId', 'observation', 'adapters', 'stateSha256']); + assert.equal(section.source, 'backend-adapter-application'); + assert.match(section.applicationId, /^[a-f0-9]{32}$/u); + assert.ok(['activated', 'reused'].includes(section.observation)); + validateAppliedAdapterItems(section.adapters); assert.equal( section.stateSha256, `sha256:applied-adapters-v1:${canonicalJsonHash({ adapters: section.adapters })}`, diff --git a/scripts/live-proof-provenance.mjs b/scripts/live-proof-provenance.mjs index e0f25861..deb28743 100644 --- a/scripts/live-proof-provenance.mjs +++ b/scripts/live-proof-provenance.mjs @@ -8,7 +8,9 @@ import { normalizeResourceRouteBinding, resourceRouteBindingHash } from './resou import { createAppliedAdapterProof, validateAppliedAdapterProof } from './applied-adapter-provenance.mjs'; import { assertCanonicalDdimGraphEnvelope, canonicalDdimRuntimeHintAccounting } from './canonical-runtime-hints.mjs'; import { - OBSERVED_WORKFLOW_AUTO_SOURCE, + OBSERVED_WORKFLOW_AUTO_LORA_SOURCE, + isObservedWorkflowAutoSource, + observedWorkflowAutoLoraProofMatches, observedWorkflowAutoPlan, observedWorkflowAutoResourceId, } from './observed-workflow-auto-resource.mjs'; @@ -807,6 +809,36 @@ function executedDirectAudioExpertPlanFromGraph(apiGraph) { }); } +function observedAdapterProofContext(apiGraph, context) { + try { + if ( + !Object.values(apiGraph.nodes).some( + (node) => node.module === 'modules.ModularDiffusers' && node.action === 'Lora', + ) + ) + return null; + const canonicalGraph = canonicalizeApiGraph(apiGraph); + const taskId = context?.taskId ?? context?.executionReceipt?.task_id; + const application = createAppliedAdapterProof({ + apiGraph, + canonicalGraph, + executedOutput: context?.executedOutput, + executionReceipt: context?.executionReceipt, + taskId, + }); + if (!application) return null; + return { + taskId, + graph: { canonicalGraph }, + models: modelSetIdentity(context?.modelIdentities ?? []), + adapterApplications: application.proof, + adapterApplicationsHash: application.hash, + }; + } catch { + return null; + } +} + export function executionPlanIdentity(apiGraph, executionContext) { const runtimeHints = apiGraph?.runtimeHints ?? {}; const declaredPlan = Object.fromEntries( @@ -822,7 +854,10 @@ export function executionPlanIdentity(apiGraph, executionContext) { const modularPlan = expertOnly ? executedModularExpertPlanFromGraph(apiGraph) : null; const observedAutoPlan = fields.length === 1 && declaredPlan.resourceMode === 'auto' - ? observedWorkflowAutoPlan(apiGraph, executionContext) + ? observedWorkflowAutoPlan(apiGraph, { + ...executionContext, + adapterProofContext: observedAdapterProofContext(apiGraph, executionContext), + }) : null; const plan = observedAutoPlan ?? @@ -846,7 +881,7 @@ export function executionReceiptIdentity(executionReceipt, executionPlan) { measurement?.processRssBytes ?? null; const manualResourceCandidateId = - executionPlan?.source !== OBSERVED_WORKFLOW_AUTO_SOURCE && executionPlan?.modelType && executionPlan?.dtype + !isObservedWorkflowAutoSource(executionPlan?.source) && executionPlan?.modelType && executionPlan?.dtype ? `manual-resource-v1:${[ executionPlan.modelType, executionPlan.dtype, @@ -1403,12 +1438,18 @@ export function validateRunProvenance(provenance) { blockers.push('execution.resourceCandidateId is missing.'); } if ( - provenance?.graph?.executionPlan?.source === OBSERVED_WORKFLOW_AUTO_SOURCE && + isObservedWorkflowAutoSource(provenance?.graph?.executionPlan?.source) && (!observedWorkflowAutoResourceId(provenance.graph.executionPlan) || provenance.execution?.resourceCandidateId !== observedWorkflowAutoResourceId(provenance.graph.executionPlan)) ) { blockers.push('execution.resourceCandidateId does not match the retained workflow Auto observation.'); } + if ( + provenance?.graph?.executionPlan?.source === OBSERVED_WORKFLOW_AUTO_LORA_SOURCE && + !observedWorkflowAutoLoraProofMatches(provenance.graph.executionPlan, provenance) + ) { + blockers.push('execution LoRA resource observation does not match the original applied adapter proof.'); + } if (!Number.isFinite(provenance?.execution?.elapsedSeconds) || provenance.execution.elapsedSeconds < 0) { blockers.push('execution.elapsedSeconds is invalid.'); } @@ -1956,7 +1997,12 @@ export function createRunProvenance({ }); const executionPlan = canonicalAccountingProof === undefined - ? executionPlanIdentity(apiGraph, { executionReceipt, executedOutput, taskId }) + ? executionPlanIdentity(apiGraph, { + executionReceipt, + executedOutput, + taskId, + modelIdentities: modelIdentities?.length ? modelIdentities : [modelIdentity].filter(Boolean), + }) : canonicalAccountingProofPlan({ apiGraph, executedOutput, diff --git a/scripts/observed-workflow-auto-resource.mjs b/scripts/observed-workflow-auto-resource.mjs index 16af3c9b..bd535ebd 100644 --- a/scripts/observed-workflow-auto-resource.mjs +++ b/scripts/observed-workflow-auto-resource.mjs @@ -2,8 +2,12 @@ import assert from 'node:assert/strict'; import { createHash } from 'node:crypto'; import { canonicalJsonHash, stableJsonValue } from './canonical-json.mjs'; +import { validateAppliedAdapterItems, validateAppliedAdapterProof } from './applied-adapter-provenance.mjs'; export const OBSERVED_WORKFLOW_AUTO_SOURCE = 'observed-workflow-auto-resource-v1'; +export const OBSERVED_WORKFLOW_AUTO_LORA_SOURCE = 'observed-workflow-auto-lora-resource-v1'; +export const isObservedWorkflowAutoSource = (source) => + source === OBSERVED_WORKFLOW_AUTO_SOURCE || source === OBSERVED_WORKFLOW_AUTO_LORA_SOURCE; const same = (a, b) => assert.deepEqual(stableJsonValue(a), stableJsonValue(b)); const value = (node, key) => node.params?.[key]?.value; const scope = (node) => `${node.module}.${node.action}`; @@ -12,6 +16,12 @@ const core = ['ModelsLoader', 'EncodePrompt', 'Denoise', 'DecodeLatents'] .map((a) => 'modules.ModularDiffusers.' + a) .concat('modules.Image.Preview'); const optional = 'modules.ModularDiffusers.Guider'; +const descriptorScope = 'modules.ModularDiffusers.Lora'; +const descriptorFields = new Set( + 'model weight_name revision expected_sha256 scale adapter_name previous_loras scheduler_class scheduler_config'.split( + ' ', + ), +); const ownerFields = new Set( 'reviewed_variant workflow_id revision repo_id model_type dtype device offload_mode auto_offload weight_loading_mode attention_backend vae_slicing vae_tiling weight_format inpaint_compatibility'.split( ' ', @@ -55,7 +65,7 @@ function workerGraphHash(graph) { export function observedWorkflowAutoResourceId(plan) { try { - assert.equal(plan.source, OBSERVED_WORKFLOW_AUTO_SOURCE); + assert(isObservedWorkflowAutoSource(plan.source)); const o = plan.resourceObservation; finiteJson(o); assert.equal(o.schemaVersion, 1); @@ -107,7 +117,32 @@ export function observedWorkflowAutoResourceId(plan) { assert.equal(plan.resolvedResourceMode, 'auto'); assert.equal(plan.quantizationMode, 'none'); same(plan.quantizedComponents, []); - const id = OBSERVED_WORKFLOW_AUTO_SOURCE + ':' + canonicalJsonHash(o); + if (plan.source === OBSERVED_WORKFLOW_AUTO_LORA_SOURCE) { + validateAppliedAdapterItems(o.adapters); + assert.equal(o.adapters.length, 1); + assert.equal(o.adapters[0].artifact.source, 'hub'); + assert.equal(o.adapters[0].scheduler, null); + const primary = controls.get(ownerScope); + assert.equal(primary.repo_id?.source, 'hub'); + same(primary.repo_id.value, o.repo); + for (const [key, observed] of Object.entries({ + model_type: 'modelType', + revision: 'revision', + dtype: 'dtype', + device: 'device', + auto_offload: 'autoOffload', + offload_mode: 'offloadMode', + weight_loading_mode: 'weightLoadingMode', + attention_backend: 'attentionBackend', + vae_slicing: 'vaeSlicing', + vae_tiling: 'vaeTiling', + })) { + assert(Object.hasOwn(primary, key)); + same(primary[key], o[observed]); + } + assert.equal(primary.weight_format, 'native'); + } else assert(!Object.hasOwn(o, 'adapters')); + const id = plan.source + ':' + canonicalJsonHash(o); assert.equal(plan.observedResourceCandidateId, id); return id; } catch { @@ -115,9 +150,51 @@ export function observedWorkflowAutoResourceId(plan) { } } +/** A projected adapter identity is useful only with the existing strict native proof. */ +export function observedWorkflowAutoLoraProofMatches(plan, provenance) { + try { + assert.equal(plan.source, OBSERVED_WORKFLOW_AUTO_LORA_SOURCE); + const proof = validateAppliedAdapterProof(provenance, { required: true }); + assert.equal(proof.owners.length, 1); + const application = proof.owners[0].application; + assert.equal(application.status, 'complete'); + assert.equal(application.observation, 'activated'); + same(plan.resourceObservation.adapters, application.adapters); + const graph = provenance.graph.canonicalGraph; + const owner = graph.nodes.find((node) => node.key === proof.owners[0].nodeKey); + assert.equal(owner.module + '.' + owner.action, ownerScope); + same(value(owner, 'repo_id'), { source: 'hub', value: plan.modelRepo }); + same(value(owner, 'revision'), plan.modelRevision); + same(value(owner, 'model_type'), plan.modelType); + assert( + provenance.models.items.some( + (item) => + item.repoId === plan.modelRepo && + item.selectedRevision === plan.modelRevision && + item.modelRevision === `${plan.modelRepo}@${plan.modelRevision}`, + ), + ); + for (const control of plan.resourceObservation.controls) { + const matching = graph.nodes.filter((node) => scope(node) === control.scope); + assert.equal(matching.length, 1); + for (const [key, field] of Object.entries(control.fields)) { + const param = matching[0].params[key]; + assert(param && !param.sourceId && !param.sourceKey && Object.hasOwn(param, 'value')); + same(field, param.value); + } + } + return true; + } catch { + return false; + } +} + /** Recover only a fresh, literal, unquantized native image T2I owner. Unknown, * connected, composite, deferred, reused and runtime-patched cases stay held. */ -export function observedWorkflowAutoPlan(apiGraph, { executionReceipt: task, executedOutput: output, taskId } = {}) { +export function observedWorkflowAutoPlan( + apiGraph, + { executionReceipt: task, executedOutput: output, taskId, adapterProofContext } = {}, +) { try { const hints = apiGraph.runtimeHints, snapshot = hints.workflowSnapshot, @@ -154,11 +231,11 @@ export function observedWorkflowAutoPlan(apiGraph, { executionReceipt: task, exe ids = new Set(entries.map(([id]) => id)); const order = [...new Set(apiGraph.paths.flat())]; same([...ids].sort(), [...order].sort()); - assert(entries.length <= 6); + assert(entries.length <= 7); const scopes = new Map(); for (const [id, node] of entries) { const key = scope(node); - assert(core.includes(key) || key === optional); + assert(core.includes(key) || key === optional || key === descriptorScope); assert(!scopes.has(key)); scopes.set(key, { id, node }); for (const param of Object.values(node.params)) @@ -170,6 +247,7 @@ export function observedWorkflowAutoPlan(apiGraph, { executionReceipt: task, exe for (const key of core) assert(scopes.has(key)); const { id: ownerId, node: owner } = scopes.get(ownerScope), { id: previewId } = scopes.get('modules.Image.Preview'); + const descriptor = scopes.get(descriptorScope); assert.equal(output.nodeId, previewId); const receipt = output.resolvedExecutionInputs; assert.equal(receipt.source, 'backend-execution'); @@ -209,7 +287,6 @@ export function observedWorkflowAutoPlan(apiGraph, { executionReceipt: task, exe 'unet', 'vae', 'controlnet', - 'lora_list', 'text_encoders', 'pipeline_components', 'image_encoder', @@ -217,12 +294,57 @@ export function observedWorkflowAutoPlan(apiGraph, { executionReceipt: task, exe assert(!owner.params[key]?.sourceId && !owner.params[key]?.sourceKey); assert(value(owner, key) == null); } + let adapters; + if (descriptor) { + const connection = owner.params.lora_list; + assert.equal(connection?.sourceId, descriptor.id); + assert.equal(connection.sourceKey, 'lora'); + assert(!Object.hasOwn(connection, 'value')); + const node = descriptor.node; + assert(Object.keys(node.params).every((key) => descriptorFields.has(key))); + for (const param of Object.values(node.params)) assert(!param.sourceId && !param.sourceKey); + assert(value(node, 'previous_loras') == null); + assert.equal(value(node, 'scheduler_class'), ''); + assert.equal(value(node, 'scheduler_config'), '{}'); + assert.equal(receipt.schemaVersion, 1); + assert.equal(receipt.appliedAdaptersStatus?.schemaVersion, 1); + assert.equal(receipt.appliedAdaptersStatus.truncated, false); + const row = rows.get(descriptor.id); + assert.equal(row.fields.revision.source, 'literal'); + same(row.fields.revision.value, value(node, 'revision')); + assert(!Object.hasOwn(row.omittedFields ?? {}, 'revision')); + const proof = validateAppliedAdapterProof(adapterProofContext, { required: true }); + assert.equal(proof.owners.length, 1); + const application = rows.get(ownerId).appliedAdapters; + same(proof.owners[0].application, application); + assert.equal(application.status, 'complete'); + assert.equal(application.observation, 'activated'); + assert.equal(application.adapters.length, 1); + adapters = structuredClone(application.adapters); + for (const [id, other] of entries) + for (const [key, param] of Object.entries(other.params)) { + if (param.sourceId === descriptor.id) + assert(id === ownerId && key === 'lora_list' && param.sourceKey === 'lora'); + } + } else { + assert(!owner.params.lora_list?.sourceId && !owner.params.lora_list?.sourceKey); + assert(value(owner, 'lora_list') == null); + } const repo = value(owner, 'repo_id'); assert.equal(repo.source, 'hub'); assert.equal(typeof repo.value, 'string'); assert(repo.value); const revision = value(owner, 'revision'); assert.match(revision, /^[0-9a-f]{40}$/u); + if (adapters) + assert( + adapterProofContext.models.items.some( + (item) => + item.repoId === repo.value && + item.selectedRevision === revision && + item.modelRevision === `${repo.value}@${revision}`, + ), + ); const trace = rows.get(ownerId).fields; for (const key of [ 'repo_id', @@ -309,7 +431,7 @@ export function observedWorkflowAutoPlan(apiGraph, { executionReceipt: task, exe same(value(encoded.node, key), form[formKey]); } const plan = { - source: OBSERVED_WORKFLOW_AUTO_SOURCE, + source: adapters ? OBSERVED_WORKFLOW_AUTO_LORA_SOURCE : OBSERVED_WORKFLOW_AUTO_SOURCE, modelType: value(owner, 'model_type'), pipelineClass: value(owner, 'model_type'), modelRepo: repo.value, @@ -347,11 +469,12 @@ export function observedWorkflowAutoPlan(apiGraph, { executionReceipt: task, exe geometry: { width: d.width.value, height: d.height.value }, strategy: auto.strategy, controls, + ...(adapters ? { adapters } : {}), }; return { ...plan, resourceObservation: observation, - observedResourceCandidateId: OBSERVED_WORKFLOW_AUTO_SOURCE + ':' + canonicalJsonHash(observation), + observedResourceCandidateId: plan.source + ':' + canonicalJsonHash(observation), }; } catch { return null; diff --git a/scripts/workflow-auto-provenance.test.mjs b/scripts/workflow-auto-provenance.test.mjs index 8bd8dd9c..9599d42c 100644 --- a/scripts/workflow-auto-provenance.test.mjs +++ b/scripts/workflow-auto-provenance.test.mjs @@ -4,7 +4,14 @@ import { test } from 'node:test'; import { spawnSync } from 'node:child_process'; import { dirname, resolve } from 'node:path'; import { fileURLToPath } from 'node:url'; -import { executionPlanIdentity, executionReceiptIdentity } from './live-proof-provenance.mjs'; +import { + canonicalizeApiGraph, + executionPlanIdentity, + executionReceiptIdentity, + validateRunProvenance, +} from './live-proof-provenance.mjs'; +import { createAppliedAdapterProof } from './applied-adapter-provenance.mjs'; +import { observedWorkflowAutoLoraProofMatches } from './observed-workflow-auto-resource.mjs'; import { canonicalJsonHash, stableJsonValue } from './canonical-json.mjs'; const literal = (value) => ({ value }); @@ -202,6 +209,258 @@ function witness({ prefix = '', width = 1024, prompt = 'A product photograph', s } const planFor = (w) => executionPlanIdentity(w.apiGraph, w).plan; +function loraWitness(options = {}) { + const w = witness({ ...options, guider: options.guider ?? true }); + const id = (options.prefix ?? '') + 'lora'; + w.ids.lora = id; + const artifact = { + source: 'hub', + repository: 'example/style-adapter', + revision: 'b'.repeat(40), + weightName: 'style.safetensors', + sha256: 'c'.repeat(64), + }; + const adapter = { adapterName: 'style', scale: 0.65, descriptorSha256: 'd'.repeat(64), artifact, scheduler: null }; + w.modelIdentities = [ + { + repoId: 'example/native-image', + selectedRevision: 'a'.repeat(40), + modelRevision: 'example/native-image@' + 'a'.repeat(40), + }, + { + repoId: artifact.repository, + selectedRevision: artifact.revision, + modelRevision: artifact.repository + '@' + artifact.revision, + }, + ]; + w.apiGraph.nodes[id] = { + module: 'modules.ModularDiffusers', + action: 'Lora', + params: { + model: literal({ source: 'hub', value: artifact.repository }), + revision: literal(artifact.revision), + weight_name: literal(artifact.weightName), + expected_sha256: literal(artifact.sha256), + scale: literal(adapter.scale), + adapter_name: literal(adapter.adapterName), + previous_loras: {}, + scheduler_class: literal(''), + scheduler_config: literal('{}'), + }, + }; + w.apiGraph.paths[0].unshift(id); + w.apiGraph.nodes[w.ids.owner].params.lora_list = { sourceId: id, sourceKey: 'lora' }; + const receipt = w.executedOutput.resolvedExecutionInputs; + receipt.schemaVersion = 1; + receipt.appliedAdaptersStatus = { schemaVersion: 1, truncated: false }; + receipt.nodes.push({ + nodeId: id, + module: 'modules.ModularDiffusers', + action: 'Lora', + fields: { revision: { value: artifact.revision, source: 'literal' } }, + omittedFields: {}, + }); + receipt.nodes.find((row) => row.nodeId === w.ids.owner).appliedAdapters = { + schemaVersion: 1, + status: 'complete', + source: 'backend-adapter-application', + applicationId: '1'.repeat(32), + observation: 'activated', + adapters: [adapter], + stateSha256: 'sha256:applied-adapters-v1:' + canonicalJsonHash({ adapters: [adapter] }), + }; + w.apiGraph.runtimeHints.workflowAutoPlan.graphHash = graphHash(w.apiGraph); + return w; +} + +test('a fresh pinned single-LoRA Auto observation retains its separate resource identity without raw rewrites', () => { + const w = loraWitness(), + before = structuredClone(w), + plan = planFor(w); + assert.equal(plan.source, 'observed-workflow-auto-lora-resource-v1'); + assert.equal(plan.resourceObservation.adapters[0].artifact.revision, 'b'.repeat(40)); + const execution = executionReceiptIdentity(w.executionReceipt, plan); + assert.match(execution.resourceCandidateId, /^observed-workflow-auto-lora-resource-v1:[0-9a-f]{64}$/u); + assert.equal(w.executionReceipt.resourceCandidateId, null); + assert.deepEqual(w, before); + const withoutGuider = loraWitness({ guider: false }); + assert.equal(planFor(withoutGuider).source, plan.source); + assert.notEqual( + executionReceiptIdentity(withoutGuider.executionReceipt, planFor(withoutGuider)).resourceCandidateId, + execution.resourceCandidateId, + 'optional guidance remains part of the observed resource controls', + ); + const renamed = loraWitness({ prefix: 'other-', prompt: 'Another photograph', seed: 9 }); + assert.equal( + executionReceiptIdentity(renamed.executionReceipt, planFor(renamed)).resourceCandidateId, + execution.resourceCandidateId, + ); + const anotherApplication = loraWitness(); + anotherApplication.executedOutput.resolvedExecutionInputs.nodes.find( + (r) => r.nodeId === anotherApplication.ids.owner, + ).appliedAdapters.applicationId = '2'.repeat(32); + assert.equal( + executionReceiptIdentity(anotherApplication.executionReceipt, planFor(anotherApplication)).resourceCandidateId, + execution.resourceCandidateId, + ); +}); + +test('the single-LoRA observation rejects missing native state, mismatched artifacts and unsupported descriptor authority', () => { + const application = (w) => + w.executedOutput.resolvedExecutionInputs.nodes.find((r) => r.nodeId === w.ids.owner).appliedAdapters; + const mutations = { + absent: (w) => { + delete w.executedOutput.resolvedExecutionInputs.nodes.find((r) => r.nodeId === w.ids.owner).appliedAdapters; + }, + reused: (w) => { + application(w).observation = 'reused'; + }, + truncated: (w) => { + w.executedOutput.resolvedExecutionInputs.appliedAdaptersStatus.truncated = true; + }, + wrongPin: (w) => { + application(w).adapters[0].artifact.revision = 'e'.repeat(40); + }, + wrongScale: (w) => { + application(w).adapters[0].scale = 0.8; + }, + wrongName: (w) => { + application(w).adapters[0].adapterName = 'other'; + }, + wrongSha: (w) => { + application(w).adapters[0].artifact.sha256 = 'f'.repeat(64); + }, + wrongPort: (w) => { + w.apiGraph.nodes[w.ids.owner].params.lora_list.sourceKey = 'other'; + }, + ambiguousList: (w) => { + w.apiGraph.nodes[w.ids.owner].params.lora_list.value = []; + }, + unconnected: (w) => { + w.apiGraph.nodes[w.ids.owner].params.lora_list = literal(null); + }, + opaquePredecessor: (w) => { + w.apiGraph.nodes[w.ids.lora].params.previous_loras = literal([]); + }, + scheduler: (w) => { + w.apiGraph.nodes[w.ids.lora].params.scheduler_class.value = 'OtherScheduler'; + }, + schedulerConfig: (w) => { + w.apiGraph.nodes[w.ids.lora].params.scheduler_config.value = '{"shift":2}'; + }, + custom: (w) => { + w.apiGraph.nodes[w.ids.lora].module = 'custom.ModularDiffusers'; + }, + connectedControl: (w) => { + w.apiGraph.nodes[w.ids.lora].params.revision.sourceId = w.ids.encode; + }, + omittedPin: (w) => { + w.executedOutput.resolvedExecutionInputs.nodes.find((r) => r.nodeId === w.ids.lora).omittedFields.revision = + 'unsupported-value'; + }, + unknownControl: (w) => { + w.apiGraph.nodes[w.ids.lora].params.unknown = literal(true); + }, + missingBaseObservation: (w) => { + w.modelIdentities = w.modelIdentities.slice(1); + }, + missingAdapterObservation: (w) => { + w.modelIdentities = w.modelIdentities.slice(0, 1); + }, + }; + for (const [name, mutate] of Object.entries(mutations)) { + const w = loraWitness(); + mutate(w); + const app = application(w); + if (app) app.stateSha256 = 'sha256:applied-adapters-v1:' + canonicalJsonHash({ adapters: app.adapters }); + w.apiGraph.runtimeHints.workflowAutoPlan.graphHash = graphHash(w.apiGraph); + assert.notEqual(planFor(w).source, 'observed-workflow-auto-lora-resource-v1', name); + } +}); + +test('LoRA resource projections bind to the existing strict proof even after a self-hashed forgery', () => { + const w = loraWitness(), + plan = planFor(w); + const canonicalGraph = canonicalizeApiGraph(w.apiGraph); + const applied = createAppliedAdapterProof({ + apiGraph: w.apiGraph, + canonicalGraph, + executedOutput: w.executedOutput, + executionReceipt: w.executionReceipt, + taskId: 'task', + }); + const provenance = { + schemaVersion: 2, + taskId: 'task', + models: { items: w.modelIdentities }, + graph: { canonicalGraph, executionPlan: plan }, + adapterApplications: applied.proof, + adapterApplicationsHash: applied.hash, + execution: executionReceiptIdentity(w.executionReceipt, plan), + }; + assert(observedWorkflowAutoLoraProofMatches(plan, provenance)); + const blockers = validateRunProvenance(provenance); + assert(!blockers.includes('execution LoRA resource observation does not match the original applied adapter proof.')); + const missingBase = structuredClone(provenance); + missingBase.models.items = missingBase.models.items.slice(1); + assert.equal(observedWorkflowAutoLoraProofMatches(plan, missingBase), false); + const forgedBase = structuredClone(provenance); + forgedBase.graph.executionPlan.modelRepo = 'example/forged-base'; + forgedBase.graph.executionPlan.resourceObservation.repo = 'example/forged-base'; + forgedBase.graph.executionPlan.resourceObservation.controls.find( + (control) => control.scope === 'modules.ModularDiffusers.ModelsLoader', + ).fields.repo_id.value = 'example/forged-base'; + forgedBase.models.items[0] = { + ...forgedBase.models.items[0], + repoId: 'example/forged-base', + modelRevision: 'example/forged-base@' + 'a'.repeat(40), + }; + assert.equal(observedWorkflowAutoLoraProofMatches(forgedBase.graph.executionPlan, forgedBase), false); + const forgedPrecision = structuredClone(plan); + forgedPrecision.dtype = forgedPrecision.resourceObservation.dtype = 'float32'; + forgedPrecision.observedResourceCandidateId = + forgedPrecision.source + ':' + canonicalJsonHash(forgedPrecision.resourceObservation); + assert.equal(executionReceiptIdentity(w.executionReceipt, forgedPrecision).resourceCandidateId, null); + forgedPrecision.resourceObservation.controls.find( + (control) => control.scope === 'modules.ModularDiffusers.ModelsLoader', + ).fields.dtype = 'float32'; + assert.equal(observedWorkflowAutoLoraProofMatches(forgedPrecision, provenance), false); + plan.resourceObservation.adapters[0].artifact.revision = 'f'.repeat(40); + plan.observedResourceCandidateId = plan.source + ':' + canonicalJsonHash(plan.resourceObservation); + provenance.execution.resourceCandidateId = plan.observedResourceCandidateId; + assert.equal(observedWorkflowAutoLoraProofMatches(plan, provenance), false); + assert( + validateRunProvenance(provenance).includes( + 'execution LoRA resource observation does not match the original applied adapter proof.', + ), + ); +}); + +test('LoRA resource identity uses native numeric scale, preserves decimal source text and rejects a corrupt projection', () => { + const first = loraWitness(), + changed = loraWitness(); + const id = (w) => executionReceiptIdentity(w.executionReceipt, planFor(w)).resourceCandidateId; + const before = id(first); + first.apiGraph.nodes[first.ids.lora].params.scale.value = '6.5e-1'; + first.apiGraph.runtimeHints.workflowAutoPlan.graphHash = graphHash(first.apiGraph); + assert.equal(id(first), before); + const application = changed.executedOutput.resolvedExecutionInputs.nodes.find( + (r) => r.nodeId === changed.ids.owner, + ).appliedAdapters; + changed.apiGraph.nodes[changed.ids.lora].params.scale.value = application.adapters[0].scale = 0.8; + application.stateSha256 = 'sha256:applied-adapters-v1:' + canonicalJsonHash({ adapters: application.adapters }); + changed.apiGraph.runtimeHints.workflowAutoPlan.graphHash = graphHash(changed.apiGraph); + assert.notEqual(id(changed), before); + const plan = planFor(changed); + plan.resourceObservation.adapters[0].scale = '0.8'; + plan.observedResourceCandidateId = plan.source + ':' + canonicalJsonHash(plan.resourceObservation); + assert.equal( + executionReceiptIdentity(changed.executionReceipt, plan).resourceCandidateId, + null, + 'no manual fallback for a corrupt observed plan', + ); +}); + test('a completed whole-workflow Auto trace retains its actual resource identity without rewriting the raw candidate', () => { const w = witness(), before = structuredClone(w), From 3da7736a3a65add90127aa2b482af698e921981f Mon Sep 17 00:00:00 2001 From: Sourav Das Date: Wed, 4 Nov 2026 17:36:18 +0530 Subject: [PATCH 182/440] Preserve saved workflow revisions when opening from library --- docs/studio-user-flow.md | 2 + src/components/GraphList.tsx | 3 + tests/e2e/studio-mocked/studio-mocked.spec.ts | 68 +++++++++++++++++++ 3 files changed, 73 insertions(+) diff --git a/docs/studio-user-flow.md b/docs/studio-user-flow.md index 05a2c762..81fe986b 100644 --- a/docs/studio-user-flow.md +++ b/docs/studio-user-flow.md @@ -46,6 +46,8 @@ The model list is filtered by task. A model profile being visible means the clie already-open Queue, Setup, or Block tool. Refresh preserves your explicit open/collapsed choice. - **Save** writes the active snapshot to the backend **My workflows** library. Its menu provides Save as and a JSON file copy; `Ctrl+S` saves the current name and `Ctrl+Shift+S` opens Save as. + Opening a saved workflow from the library keeps its saved revision and timestamp. + Subsequent edits still autosave; opening an unchanged document does not save it again. - **Export** provides a workflow package, latest-output package, and Gallery shortcut. Expert also exposes raw workflow/API graph JSON. - **Auto view / Expert view** changes editing tools and node discovery. It preserves the graph and execution settings. - **Resources → Automatic / Expert overrides** selects this workflow's execution policy in either view. diff --git a/src/components/GraphList.tsx b/src/components/GraphList.tsx index 52ab8274..6d5fdf7c 100644 --- a/src/components/GraphList.tsx +++ b/src/components/GraphList.tsx @@ -41,6 +41,7 @@ import type { WorkflowTab } from '../studio/types'; import { backendWorkflowTab, deleteWorkflowNow, + markBackendWorkflow, markWorkflowTabOpen, saveDetachedWorkflowNow, subscribeBackendWorkflowChanges, @@ -413,6 +414,8 @@ function GraphList() { const complete = await fetchSavedWorkflow(tab); markWorkflowTabOpen(complete.id); if (!workflowTabs.some((item) => item.id === complete.id)) { + // Opening a backend-owned document must not echo it through autosave. + markBackendWorkflow(complete); mergeBackendWorkflow(complete); } switchWorkflowTab(complete.id); diff --git a/tests/e2e/studio-mocked/studio-mocked.spec.ts b/tests/e2e/studio-mocked/studio-mocked.spec.ts index b0c0c0a8..83ac1676 100644 --- a/tests/e2e/studio-mocked/studio-mocked.spec.ts +++ b/tests/e2e/studio-mocked/studio-mocked.spec.ts @@ -1048,6 +1048,74 @@ test('unchanged canvas checkpoints and native tab switches keep a saved document }); }); +test('My workflows opens a closed saved document without rewriting its backend revision and still autosaves edits', async ({ + page, +}) => { + const workflowId = 'library-open-no-echo-regression'; + const fixture = await prepareRestorationStartup(page, workflowId); + await page.route('**/workflows**', async (route) => { + if (route.request().method() === 'GET' && new URL(route.request().url()).pathname === '/workflows') { + await route.fulfill({ json: { workflows: [fixture.getBackend()] } }); + return; + } + await route.fallback(); + }); + await page.goto(FRONTEND_URL, { waitUntil: 'domcontentloaded' }); + await fixture.waitForCanvas(); + await page.clock.runFor(1200); + await page.getByRole('button', { name: 'Close Disposable restoration regression', exact: true }).click(); + await page.clock.runFor(1200); + await page.reload({ waitUntil: 'domcontentloaded' }); + await fixture.waitForCanvas(); + await page.clock.runFor(1200); + expect((await fixture.read()).tab?.id).not.toBe(workflowId); + await expect(page.getByTestId('task-launcher')).toBeVisible(); + await page.keyboard.press('Escape'); + await expect(page.getByTestId('task-launcher')).toHaveCount(0); + const before = fixture.getBackend(); + const start = fixture.events.length; + await page.getByRole('button', { name: 'Workflow library', exact: true }).click(); + await expect + .poll(async () => { + await page.clock.runFor(500); + return page.getByRole('button', { name: 'My workflows', exact: true }).count(); + }) + .toBe(1); + await page.getByRole('button', { name: 'My workflows', exact: true }).click(); + await page + .getByTestId(`saved-workflow-${workflowId}`) + .getByRole('button', { + name: 'Disposable restoration regression', + exact: true, + }) + .click(); + await expect.poll(async () => (await fixture.read()).tab?.id).toBe(workflowId); + await page.clock.runFor(1500); + expect(fixture.events.slice(start).filter((event) => event.method === 'PUT')).toEqual([]); + expect(fixture.getBackend()).toEqual(before); + await fixture.assertCurrentPreview(); + const text = page.locator('.react-flow__node[data-id="restoration-text"]').getByRole('textbox', { + name: 'Text', + exact: true, + }); + await text.fill('A real edit after opening from My workflows'); + await text.blur(); + await expect + .poll(async () => { + await page.clock.runFor(600); + return fixture.getBackend().revision; + }) + .toBe(before.revision + 1); + expect(restorationText(fixture.getBackend().snapshot)).toBe('A real edit after opening from My workflows'); + await page.clock.runFor(1200); + expect(fixture.events.slice(start).filter((event) => event.method === 'PUT')).toHaveLength(1); + expect(fixture.graphPosts()).toBe(0); + await test.info().attach('library-open-no-echo.json', { + body: JSON.stringify({ before, after: fixture.getBackend(), events: fixture.events.slice(start) }, null, 2), + contentType: 'application/json', + }); +}); + test('an explicit Save acknowledgement consumes the same document queued by mounted autosave with exactly one PUT', async ({ page, }) => { From fe388e4462d104826541952d6781d4216e8dacfd Mon Sep 17 00:00:00 2001 From: Sourav Das Date: Wed, 4 Nov 2026 20:25:13 +0530 Subject: [PATCH 183/440] Retain authored Auto settings through workflow restore --- .github/workflows/ci.yml | 4 +- README.md | 2 +- docs/modiff-client-architecture.md | 6 + scripts/video-stage-groups.test.mjs | 17 +++ scripts/workflow-document-origin.test.mjs | 66 ++++++++++ src/stores/useStudioStore.ts | 12 +- src/studio/controlledWorkflowValues.ts | 8 +- src/studio/templateOperationWorkflow.ts | 4 +- tests/e2e/studio-mocked/studio-mocked.spec.ts | 123 ++++++++++++++++++ 9 files changed, 231 insertions(+), 11 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 6265f14c..acbb73e2 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -33,7 +33,7 @@ jobs: with: repository: sdevil7th/MoDiff # Paired scoped audio creative-input receipts and current video stages. - ref: a877f992bc788f2c403b4814586006635bc5e76f + ref: d9610e952d3fa911179bc43acf867df6a9bad328 path: MoDiff persist-credentials: false - name: Verify the pinned backend supports native setup @@ -88,7 +88,7 @@ jobs: with: repository: sdevil7th/MoDiff # Match the immutable backend revision in the Client quality job. - ref: a877f992bc788f2c403b4814586006635bc5e76f + ref: d9610e952d3fa911179bc43acf867df6a9bad328 path: MoDiff persist-credentials: false - name: Verify the pinned backend supports native setup diff --git a/README.md b/README.md index f449fcad..aea9e213 100644 --- a/README.md +++ b/README.md @@ -31,7 +31,7 @@ application source pair is: | MoDiff | `1239d1cecd12a7318eb263ca17c34d4fc0445d14` | | MoDiff-client | `c561a01395044fd71c1918e95fb9e9709d8e7601` | -CI backend contract: `a877f992bc788f2c403b4814586006635bc5e76f`. +CI backend contract: `d9610e952d3fa911179bc43acf867df6a9bad328`. Both CI jobs use this exact immutable backend pin. The application table above is the earlier reviewed testing baseline. Current CI covers the shared video diff --git a/docs/modiff-client-architecture.md b/docs/modiff-client-architecture.md index b2fec5c7..7c7a07bd 100644 --- a/docs/modiff-client-architecture.md +++ b/docs/modiff-client-architecture.md @@ -1123,6 +1123,12 @@ is the single policy selector. Both storage keys and legacy normalizers remain unchanged. A restored workflow keeps its own resource settings while tabs share the global editing preference. +Import, backend hydration and local-storage restore coerce persisted form types +without selecting a new Auto recipe. Authored precision, quantization and offload +values survive even when today's profile recommends another placement. An +explicit model/settings edit can request a new plan; Run still validates the +unchanged document against current backend admission. Restoring values grants +neither resource fit nor execution qualification. Explicit graph imports preserve the document's normalized memory policy while inferring their image recipe summary. Raw graph imports also retain each node's authored device value and default, including mixed CPU/accelerator placement; diff --git a/scripts/video-stage-groups.test.mjs b/scripts/video-stage-groups.test.mjs index 3ad7acf1..452e0d3c 100644 --- a/scripts/video-stage-groups.test.mjs +++ b/scripts/video-stage-groups.test.mjs @@ -322,6 +322,23 @@ test('five retained video template factories preserve creative settings on their }; const graph = builder.createTemplateOperationGraph(template, form, starter, fixture.registry, spec, capability); const flat = groups.unpackVisualOperationGroups(graph).graph; + for (const recipe of flat.nodes.filter((node) => node.data.action === 'DiffusersExecutionRecipe')) + assert.equal(recipe.data.params.attention_backend.value, 'auto', `${row.id}:fresh attention`); + for (const attentionBackend of ['_native_math', '_native_flash']) { + const authoredGraph = builder.createTemplateOperationGraph( + template, + { ...form, attentionBackend }, + starter, + fixture.registry, + spec, + capability, + ); + const authoredRecipes = groups + .unpackVisualOperationGroups(authoredGraph) + .graph.nodes.filter((node) => node.data.action === 'DiffusersExecutionRecipe'); + for (const authoredRecipe of authoredRecipes) + assert.equal(authoredRecipe.data.params.attention_backend.value, attentionBackend); + } assert.ok( !flat.nodes.some((node) => node.data.module === 'modules.DiffusersVideo' && node.data.action === 'Generate'), ); diff --git a/scripts/workflow-document-origin.test.mjs b/scripts/workflow-document-origin.test.mjs index 2835f151..945b35cb 100644 --- a/scripts/workflow-document-origin.test.mjs +++ b/scripts/workflow-document-origin.test.mjs @@ -144,6 +144,72 @@ function ordinaryImageSnapshot(module, action, resourceMode) { }; } +test('saved and imported Automatic forms retain authored precision and offload through restore', async (t) => { + const previousFlow = flow.getState(); + const previousStudio = studio.getState(); + const previousFetch = globalThis.fetch; + try { + globalThis.fetch = async () => assert.fail('Document restore cannot execute or replan a model.'); + for (const [modelType, mode, offloadMode, dtype] of [ + ['Flux2KleinPipeline', 'multi_image_reference_edit', 'group_cpu', 'float16'], + ['Flux2KleinPipeline', 'multi_image_reference_edit', 'group_disk', 'bfloat16'], + ['LTXVideoPipeline', 'video_to_video', 'group_cpu', 'float32'], + ['WanTI2VPipeline', 'text_to_video', 'none', 'bfloat16'], + ]) { + await t.test(`${modelType}: ${offloadMode}/${dtype}`, async () => { + studio.setState({ workflowTabs: [], activeWorkflowTabId: null }); + const form = { + ...defaultForm, + modelType, + mode, + prompt: 'Keep this authored Automatic recipe.', + resourceMode: 'auto', + dtype, + quantizationMode: 'none', + device: 'cuda:0', + autoOffload: offloadMode !== 'none', + offloadMode, + }; + const snapshot = { + nodes: [], + edges: [], + studioForm: form, + selectedMode: mode, + studioGraphBinding: null, + activeTemplateId: null, + sourceOutputId: null, + }; + const original = structuredClone(snapshot); + const parsed = packages.parseWorkflowPackage(packages.buildWorkflowPackage({ form, graph: snapshot })); + assert(parsed); + const id = studio.getState().createWorkflowTab('Authored Automatic document', parsed.snapshot, 'import'); + const assertForm = () => { + assert.deepEqual(tab(id).snapshot.studioForm, form); + assert.deepEqual(studio.getState().form, form); + }; + assertForm(); + studio.getState().createWorkflowTab('Unrelated draft'); + studio.getState().switchWorkflowTab(id); + assertForm(); + const saved = structuredClone({ ...tab(id), dirty: false, intent: 'saved', backendRevision: 1 }); + studio.setState({ workflowTabs: [], activeWorkflowTabId: id }); + studio.getState().mergeBackendWorkflow({ ...saved, revision: 1 }); + studio.getState().hydrateActiveWorkflowCanvas(); + assertForm(); + const persisted = studio.persist.getOptions().partialize(studio.getState()); + storage.setItem('modiff.studio', JSON.stringify({ state: persisted, version: 0 })); + await studio.persist.rehydrate(); + assertForm(); + assert.deepEqual(snapshot, original); + }); + } + } finally { + globalThis.fetch = previousFetch; + flow.setState(previousFlow); + studio.setState(previousStudio); + } +}); + test('ordinary image document normalization preserves memory policy through import, switching and hydration', async (t) => { const previousFlow = flow.getState(); const previousStudio = studio.getState(); diff --git a/src/stores/useStudioStore.ts b/src/stores/useStudioStore.ts index 82659521..5e02b64f 100644 --- a/src/stores/useStudioStore.ts +++ b/src/stores/useStudioStore.ts @@ -546,17 +546,21 @@ function normalizeWorkflowSnapshot( const activeTemplate = activeTemplateId ? STUDIO_TEMPLATES.find((template) => template.id === activeTemplateId) : undefined; - const rawPersistedStudioForm = resolveStudioResourceForm(coerceStudioFormState(value.studioForm)); + // Restoring an authored document is not a new Auto-plan selection. Replacing + // its precision/offload fields with current profile defaults can split the + // displayed form from its unchanged executable graph. Run still checks the + // current backend plan and reports unsupported settings without rewriting it. + const rawPersistedStudioForm = coerceStudioFormState(value.studioForm); // Template identity is durable workflow provenance. Older clients could // coerce newly added model types (notably LTX and Wan variants) to Z-Image // while retaining the original graph and template id. Repair those existing // documents from their template contract instead of perpetuating the split. const persistedStudioForm = activeTemplate - ? resolveStudioResourceForm({ + ? { ...rawPersistedStudioForm, mode: activeTemplate.mode, modelType: activeTemplate.modelType, - }) + } : rawPersistedStudioForm; const normalizedFlow = normalizePersistedFlowState({ nodes: Array.isArray(value.nodes) ? safeCloneJson(value.nodes) : [], @@ -851,7 +855,7 @@ function normalizePersistedStudioState( // live values normally. A legacy canonical graph whose missing binding was // recovered during snapshot normalization is the exception: its actual // loader node is authoritative and can correct stale top-level model data. - const liveForm = resolveStudioResourceForm(coerceStudioFormState(mergedState.form)); + const liveForm = coerceStudioFormState(mergedState.form); const activeBinding = activeSnapshot?.studioGraphBinding; const liveIdentityMatchesActiveDocument = !activeBinding || (liveForm.mode === activeBinding.mode && liveForm.modelType === activeBinding.modelType); diff --git a/src/studio/controlledWorkflowValues.ts b/src/studio/controlledWorkflowValues.ts index 999e3fd3..899b24fe 100644 --- a/src/studio/controlledWorkflowValues.ts +++ b/src/studio/controlledWorkflowValues.ts @@ -58,18 +58,20 @@ export function audioFitWorkflowFieldValues(settings: StudioAudioFitSettings): C export function soundtrackWorkflowFieldValues( settings: NonNullable, executionForm: StudioFormState, - options: { retainSelectorMetadata?: boolean } = {}, + options: { retainSelectorMetadata?: boolean; attentionBackend?: StudioFormState['attentionBackend'] } = {}, ): Record<'quantization' | 'recipe' | 'pipeline' | 'generate' | 'audioFit' | 'exporter', ControlledFieldValue[]> { const fields = (values: Record) => Object.entries(values).map(([field, value]) => ({ fields: [field], value })); return { quantization: fields({ backend: 'none', components: [], dtype: executionForm.dtype }), - // ACE-Step's mask needs portable math SDPA on the reviewed ROCm runtime. + // Keep the legacy managed recipe's explicit math policy. Fresh ordinary + // graphs pass their authored choice; automatic SDPA can select a supported + // kernel without pretending that a CUDA device guarantees flash support. recipe: fields({ device_map: 'none', offload_mode: executionForm.offloadMode, device: executionForm.device, - attention_backend: '_native_math', + attention_backend: options.attentionBackend ?? '_native_math', attention_components: '', vae_slicing: true, vae_tiling: true, diff --git a/src/studio/templateOperationWorkflow.ts b/src/studio/templateOperationWorkflow.ts index f81bedb6..d8d915e1 100644 --- a/src/studio/templateOperationWorkflow.ts +++ b/src/studio/templateOperationWorkflow.ts @@ -561,7 +561,9 @@ export function createTemplateOperationGraph( audioFit: utility(CONTROLLED_WORKFLOW_NODE_KEYS.audioFit, 4), exporter: utility(CONTROLLED_WORKFLOW_NODE_KEYS.exportWithAudio, 5), }; - const fieldValues = soundtrackWorkflowFieldValues(settings, resolveStudioResourceForm(form)); + const fieldValues = soundtrackWorkflowFieldValues(settings, resolveStudioResourceForm(form), { + attentionBackend: form.attentionBackend ?? 'auto', + }); for (const role of Object.keys(soundtrack) as (keyof typeof soundtrack)[]) for (const { fields, value } of fieldValues[role]) set(soundtrack[role], fields, value); // Replace the owned terminal explicitly. The ordinary graph contains diff --git a/tests/e2e/studio-mocked/studio-mocked.spec.ts b/tests/e2e/studio-mocked/studio-mocked.spec.ts index 83ac1676..e0bb8605 100644 --- a/tests/e2e/studio-mocked/studio-mocked.spec.ts +++ b/tests/e2e/studio-mocked/studio-mocked.spec.ts @@ -92,6 +92,128 @@ test('normal video template card creates real stages and preserves them after re expect(await page.evaluate(() => window.__MODIFF_E2E__!.getState().studio.graphBinding)).toBeNull(); }); +test('Klein Automatic workflow import and saved reload preserve group offload and the exact graph', async ({ + page, +}) => { + const templateId = 'flux2_klein_multi_reference'; + const selection = IMAGE_TEMPLATE_EXECUTION_SELECTIONS[templateId]!; + const fixture = await generateTemplateSchemas([{ id: templateId, selection }], true); + await ensureFrontend(); + await installMockRoutes(page); + await page.route('**/nodes**', (route) => + route.fulfill({ json: { instance: 'mock', nodes: { ...mockRegistry, ...fixture.registry } } }), + ); + await page.route('**/model_capabilities**', (route) => route.fulfill({ json: fixture.publicPayload })); + let graphPosts = 0; + page.on('request', (request) => { + if (request.method() === 'POST' && new URL(request.url()).pathname === '/graph') graphPosts++; + }); + await page.goto(FRONTEND_URL, { waitUntil: 'domcontentloaded' }); + await page.waitForFunction(() => Boolean(window.__MODIFF_E2E__?.getState().studio.workflowCanvasHydrated)); + await dismissTaskLauncher(page); + const prepared = await page.evaluate( + async ({ fixture, templateId }) => { + const [ + { STUDIO_TEMPLATES }, + { getFormDefaultsForMode }, + { getTemplateLockedSettings }, + builder, + packages, + contracts, + starters, + ] = await Promise.all([ + import('/src/studio/templates.ts'), + import('/src/studio/modelProfiles.ts'), + import('/src/studio/templateExactness.ts'), + import('/src/studio/templateOperationWorkflow.ts'), + import('/src/studio/workflowPackage.ts'), + import('/src/workflow/operationContracts.ts'), + import('/src/workflow/operationStarterRequest.ts'), + ]); + const template = STUDIO_TEMPLATES.find((entry) => entry.id === templateId)!; + const recipe = fixture.recipes[0]!; + const parsedContracts = contracts.parseOperationContracts( + fixture.publicPayload.operationContracts, + fixture.publicPayload.operationContractSchemaVersion, + ); + const starter = starters.parseOperationStarter( + recipe.starter, + recipe.starter.pipelineClass, + recipe.starter.task, + parsedContracts, + template.executionSelection, + ); + const form = { + ...getFormDefaultsForMode(template.mode, template.modelType), + ...getTemplateLockedSettings(template), + device: 'cuda:0', + }; + const graph = builder.createTemplateOperationGraph( + template, + form, + starter, + fixture.registry, + recipe.spec, + fixture.capabilities.find((entry) => entry.modelType === template.modelType), + ); + const exporter = await import('/src/stores/flowGraphExport.ts'); + const api = exporter.buildApiGraphExport({ + nodes: graph.nodes, + edges: graph.edges, + sid: 'automatic-form-preservation', + randomizeSeeds: false, + setParam: () => { + throw new Error('Export cannot mutate the authored graph.'); + }, + }); + return { form, api, packageData: packages.buildWorkflowPackage({ form, graph }) }; + }, + { fixture, templateId }, + ); + expect(prepared.form.resourceMode).toBe('auto'); + expect(prepared.form.offloadMode).toBe('group_cpu'); + await page.getByTestId('topbar-gallery').click(); + await page.getByTestId('gallery-import-workflow-input').setInputFiles({ + name: 'klein-authored-automatic.workflow.json', + mimeType: 'application/json', + buffer: Buffer.from(JSON.stringify(prepared.packageData), 'utf8'), + }); + await expect(page.getByRole('dialog', { name: 'Output Gallery', exact: true })).toBeHidden(); + const read = () => + page.evaluate(async () => { + const state = window.__MODIFF_E2E__!.getState(); + const exporter = await import('/src/stores/flowGraphExport.ts'); + const graph = window.__MODIFF_E2E__!.exportWorkflowGraph() as Parameters[0]; + const api = exporter.buildApiGraphExport({ + ...graph, + sid: 'automatic-form-preservation', + randomizeSeeds: false, + setParam: () => { + throw new Error('Inspection cannot mutate the visible graph.'); + }, + }); + return { form: state.studio.form, api }; + }); + await expect.poll(async () => (await read()).form).toEqual(prepared.form); + const before = await read(); + expect(before.api).toEqual(prepared.api); + await page.getByTestId('topbar-save-workflow-options').click(); + await page.getByTestId('topbar-save-workflow-as').click(); + await page.getByTestId('save-workflow-name').fill('Authored Klein group offload'); + await page.getByTestId('confirm-save-workflow').click(); + await expect(page.getByTestId('save-workflow-dialog')).toHaveCount(0); + await page.reload({ waitUntil: 'domcontentloaded' }); + await page.waitForFunction(() => Boolean(window.__MODIFF_E2E__?.getState().studio.workflowCanvasHydrated)); + await expect(page.getByRole('tab', { name: 'Authored Klein group offload', exact: true })).toHaveAttribute( + 'aria-selected', + 'true', + ); + await expect.poll(async () => (await read()).form).toEqual(prepared.form); + const after = await read(); + expect(after.api).toEqual(before.api); + expect(graphPosts).toBe(0); +}); + test('normal Pika task creation joins video and audio and preserves the workflow after reload', async ({ page }) => { const pipelineClass = 'PikaH3FlexModularPipeline'; const task = 'text_to_video_with_audio'; @@ -6096,6 +6218,7 @@ type ImageTemplateSchemaFixture = { registry: Record; capabilities: StudioModelProfile[]; publicPayload: { + operationContractSchemaVersion: number; capabilities: StudioModelProfile[]; operationContracts: OperationContract[]; pipelineSupport: PipelineSupport[]; From d77d17f2ccfe38421e5f2705e5fdcf4b757352fe Mon Sep 17 00:00:00 2001 From: Sourav Das Date: Wed, 4 Nov 2026 20:32:07 +0530 Subject: [PATCH 184/440] Use reviewed fresh ACE recipe without rewriting saved Blocks --- .github/workflows/ci.yml | 4 ++-- README.md | 2 +- scripts/audio-authoring.test.mjs | 7 ++++++- scripts/audio-schema-fixture.mjs | 1 + src/studio/templateOperationSelections.ts | 1 + 5 files changed, 11 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index acbb73e2..afd7decc 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -33,7 +33,7 @@ jobs: with: repository: sdevil7th/MoDiff # Paired scoped audio creative-input receipts and current video stages. - ref: d9610e952d3fa911179bc43acf867df6a9bad328 + ref: 19f003f7662ae8f542202cae2eb08321dd966b06 path: MoDiff persist-credentials: false - name: Verify the pinned backend supports native setup @@ -88,7 +88,7 @@ jobs: with: repository: sdevil7th/MoDiff # Match the immutable backend revision in the Client quality job. - ref: d9610e952d3fa911179bc43acf867df6a9bad328 + ref: 19f003f7662ae8f542202cae2eb08321dd966b06 path: MoDiff persist-credentials: false - name: Verify the pinned backend supports native setup diff --git a/README.md b/README.md index aea9e213..b0683abf 100644 --- a/README.md +++ b/README.md @@ -31,7 +31,7 @@ application source pair is: | MoDiff | `1239d1cecd12a7318eb263ca17c34d4fc0445d14` | | MoDiff-client | `c561a01395044fd71c1918e95fb9e9709d8e7601` | -CI backend contract: `d9610e952d3fa911179bc43acf867df6a9bad328`. +CI backend contract: `19f003f7662ae8f542202cae2eb08321dd966b06`. Both CI jobs use this exact immutable backend pin. The application table above is the earlier reviewed testing baseline. Current CI covers the shared video diff --git a/scripts/audio-authoring.test.mjs b/scripts/audio-authoring.test.mjs index 19afee61..e067f4df 100644 --- a/scripts/audio-authoring.test.mjs +++ b/scripts/audio-authoring.test.mjs @@ -86,7 +86,10 @@ function actualStarter(row) { row.starter.pipelineClass, row.starter.task, authority.operationContracts, - { executionProfileId: row.spec?.executionProfileId }, + { + executionProfileId: row.spec?.executionProfileId, + ...(row.starter.authoring ? { authoringRecipeId: row.starter.authoring.id } : {}), + }, ); } function setup(row) { @@ -355,6 +358,8 @@ test('all seven actual curated audio factories preserve original creative settin const prompt = generator.data.params.prompt; assert.equal(prompt.value, form.prompt, template.id); if (selection.pipelineClass === 'AceStepPipeline') { + const recipe = flat.nodes.find((node) => node.data.action === 'DiffusersExecutionRecipe'); + assert.equal(recipe.data.params.attention_backend.value, form.attentionBackend ?? 'auto'); assert.deepEqual(generator.data.params.seed.value, { value: form.seed, isRandom: false }); assert.equal( flat.nodes.filter((node) => node.data.action === 'LoadAdapter').length, diff --git a/scripts/audio-schema-fixture.mjs b/scripts/audio-schema-fixture.mjs index f84b3e5e..86d5ea54 100644 --- a/scripts/audio-schema-fixture.mjs +++ b/scripts/audio-schema-fixture.mjs @@ -18,6 +18,7 @@ export function captureAudioSchemaFixture() { repository: repository === 'ACE-Step' ? 'ACE-Step/acestep-v15-xl-turbo-diffusers' : 'Runware/acestep-v15-turbo-diffusers', bindingSpec: { modelType: 'AceStepAudioPipeline', mode: task }, + authoringRecipeId: 'generic-audio-recipe:v1', }, })), ); diff --git a/src/studio/templateOperationSelections.ts b/src/studio/templateOperationSelections.ts index ba55df6d..0d136754 100644 --- a/src/studio/templateOperationSelections.ts +++ b/src/studio/templateOperationSelections.ts @@ -513,6 +513,7 @@ export const AUDIO_TEMPLATE_EXECUTION_SELECTIONS: Partial Date: Thu, 5 Nov 2026 03:51:37 +0530 Subject: [PATCH 185/440] Preserve branch settings in fresh lyric composite workflows --- docs/modiff-client-architecture.md | 10 ++ scripts/audio-authoring.test.mjs | 90 +++++++++++++++++ scripts/template-operation-fixtures.py | 2 + src/studio/controlledWorkflowValues.ts | 97 +++++++++++++++++++ src/studio/controlledWorkflows.ts | 83 +++------------- src/studio/templateLyricVideo.ts | 68 +++++++++++++ src/studio/templateModelSelection.ts | 7 +- src/studio/templateOperationSelections.ts | 1 + src/studio/templateOperationWorkflow.ts | 16 ++- src/studio/templateWorkflow.ts | 24 +++-- tests/e2e/studio-mocked/studio-mocked.spec.ts | 59 +++++++++++ 11 files changed, 380 insertions(+), 77 deletions(-) create mode 100644 src/studio/templateLyricVideo.ts diff --git a/docs/modiff-client-architecture.md b/docs/modiff-client-architecture.md index 7c7a07bd..29be37a1 100644 --- a/docs/modiff-client-architecture.md +++ b/docs/modiff-client-architecture.md @@ -218,6 +218,16 @@ the same stages manually with native typed wires and add an output Preview, Save or Export node. Plain scalar aliases such as `text`/`string` and `bool`/`boolean` match in native connections; media collections and model objects remain distinct. +Fresh lyric-video templates use the declared audio starter plus their actual +visual sequence, composition, upscale, lyric overlay, timeline fit and AV export +nodes. The soundtrack's stored branch prompt overrides the advisory root prompt +at creation, and the primary audio task selects its immutable model independently +of the final video media type. The new graph has no managed Studio binding, so +later finalization and reopening cannot reapply the root prompt or a historical +forced-math policy. Ordinary node edits remain authoritative. Existing managed +documents and registered definitions retain their original contracts. This +authoring behavior grants neither Auto admission nor model/output qualification. + `operationAuthoring` is a versioned, advisory annotation on those ordinary nodes. It stores the selected operation, initial visible defaults and retained unsupported settings. It does not grant execution permission or replace node params. diff --git a/scripts/audio-authoring.test.mjs b/scripts/audio-authoring.test.mjs index e067f4df..1fc38bf8 100644 --- a/scripts/audio-authoring.test.mjs +++ b/scripts/audio-authoring.test.mjs @@ -80,6 +80,96 @@ before(async () => { }); after(async () => server?.close()); +test('fresh lyric composite keeps its branch brief and authored attention through save and reopen', async () => { + const lifecycle = await server.ssrLoadModule('/src/studio/templateWorkflow.ts'); + const studioModule = await server.ssrLoadModule('/src/stores/useStudioStore.ts'); + const studio = studioModule.useStudioStore; + const flow = exporter.useFlowStore; + const registry = nodes.useNodesStore; + const previous = [studio.getState(), flow.getState(), registry.getState()]; + const originalFetch = globalThis.fetch; + try { + const template = templates.find((item) => item.id === 'ace_step_lyric_music_video'); + const originalTemplate = structuredClone(template); + assert.ok(template.executionSelection, 'fresh composites need the ordinary backend-owned audio recipe'); + const row = fixture.recipes.find((item) => item.id === 'ace:ACE-Step:text_to_audio'); + const historicalSpec = structuredClone(row.spec); + const tabId = studio.getState().createWorkflowTab(template.label, undefined, 'template', template.id); + studio.getState().applyTemplate(template); + studio.getState().updateForm({ device: 'cpu:0', offloadMode: 'none', autoOffload: false }); + registry.setState(authority); + globalThis.fetch = async (url) => { + assert.match(String(url), /operations\/starter/); + return Response.json(row.starter); + }; + const form = structuredClone(studio.getState().form); + assert.notEqual(form.prompt, template.workflowBlockSettings.lyricVideo.audio.prompt); + await lifecycle.createTemplateOperationWorkflow(template, form, studioModule.captureWorkflowOperationContext()); + const flat = groups.unpackVisualOperationGroups(flow.getState().toObject()).graph; + assert.equal(flat.nodes.length, 14); + assert.equal(studio.getState().graphBinding, null); + const generator = flat.nodes.find( + (node) => node.data.module === 'modules.DiffusersAudio' && node.data.action === 'Generate', + ); + const field = (node, name) => node.data.params[name].value ?? node.data.params[name].default; + const brief = template.workflowBlockSettings.lyricVideo; + assert.equal(field(generator, 'prompt'), brief.audio.prompt); + assert.equal(field(generator, 'bpm'), 100); + assert.equal(field(generator, 'lyrics'), brief.audio.lyrics); + assert.equal(field(generator, 'audio_duration'), 30); + assert.deepEqual(field(generator, 'seed'), { value: brief.audio.seed, isRandom: false }); + for (const recipe of flat.nodes.filter((node) => node.data.action === 'DiffusersExecutionRecipe')) + assert.equal(field(recipe, 'attention_backend'), 'auto'); + const sequence = flat.nodes.find((node) => node.data.action === 'GenerateSequence'); + assert.equal(field(sequence, 'prompts_json'), brief.promptsJson); + assert.equal(field(sequence, 'num_frames'), 81); + assert.equal(field(sequence, 'frame_rate'), 16); + assert.equal(field(sequence, 'width'), 768); + assert.equal(field(sequence, 'height'), 512); + assert.equal( + field( + flat.nodes.find((node) => node.data.action === 'Compose'), + 'transition_seconds', + ), + 0.35, + ); + assert.equal( + field( + flat.nodes.find((node) => node.data.action === 'LyricOverlay'), + 'lrc', + ), + brief.lrc, + ); + assert.ok(flat.edges.some((edge) => edge.source === generator.id && edge.targetHandle === 'audio')); + // Ordinary node edits, rather than the advisory root form, remain authoritative. + flow.getState().setParam(generator.id, 'prompt', 'An explicitly edited soundtrack brief'); + const audioRecipe = flat.nodes.find((node) => node.data.studioRole === 'diffusersRecipe'); + assert.ok(audioRecipe); + flow.getState().setParam(audioRecipe.id, 'attention_backend', '_native_math'); + studio.getState().saveActiveWorkflowTab(true); + const expected = flow.getState().exportGraph('lyric-save', undefined, { randomizeSeeds: false }); + const saved = structuredClone(studio.getState().workflowTabs.find((tab) => tab.id === tabId)); + assert.equal(saved.snapshot.studioGraphBinding, null); + studio.setState({ workflowTabs: [], activeWorkflowTabId: tabId }); + studio.getState().mergeBackendWorkflow({ ...saved, revision: 1 }); + studio.getState().hydrateActiveWorkflowCanvas(); + assert.deepEqual(flow.getState().exportGraph('lyric-save', undefined, { randomizeSeeds: false }), expected); + assert.equal(studio.getState().graphBinding, null); + assert.deepEqual(template, originalTemplate); + assert.deepEqual(row.spec, historicalSpec, 'historical managed specification is never rewritten'); + assert.ok( + row.spec.bindings.some( + ([role, name, source]) => role === 'diffusersRecipe' && name === 'attention_backend' && source === 'nativeMath', + ), + ); + } finally { + globalThis.fetch = originalFetch; + studio.setState(previous[0], true); + flow.setState(previous[1], true); + registry.setState(previous[2], true); + } +}); + function actualStarter(row) { return starters.parseOperationStarter( row.starter, diff --git a/scripts/template-operation-fixtures.py b/scripts/template-operation-fixtures.py index e5123e77..8b053ae7 100644 --- a/scripts/template-operation-fixtures.py +++ b/scripts/template-operation-fixtures.py @@ -106,6 +106,8 @@ def describe(key): "modules.DiffusersImage.OutpaintCanvas", "modules.Audio.Export", "modules.Audio.Load", "modules.Image.Load", "modules.DiffusersAudio.LoadAdapter", "modules.Video.Load", "modules.Video.Export", "modules.Video.ExportWithAudio", "modules.Video.ExportAsset", "modules.Audio.FitDuration", "modules.DiffusersAudio.LoadPipeline", "modules.DiffusersAudio.Generate", + "modules.DiffusersVideo.LoadPipeline", "modules.DiffusersVideo.GenerateSequence", + "modules.Video.Compose", "modules.Video.LyricOverlay", "modules.DiffusersRuntime.PipelineQuantizationConfigV2", "modules.DiffusersRuntime.DiffusersExecutionRecipe"): describe(key) if any(item["selection"]["pipelineClass"] == "Cosmos3OmniModularPipeline" for item in selections): diff --git a/src/studio/controlledWorkflowValues.ts b/src/studio/controlledWorkflowValues.ts index 899b24fe..449f59eb 100644 --- a/src/studio/controlledWorkflowValues.ts +++ b/src/studio/controlledWorkflowValues.ts @@ -4,6 +4,7 @@ import type { StudioTemplateLoraSettings, StudioTemplateWorkflowBlockSettings, } from './types'; +import { resolveStudioResourceForm } from './resourcePlanner'; export type ControlledFieldValue = { fields: string[]; value: unknown }; @@ -54,6 +55,102 @@ export function audioFitWorkflowFieldValues(settings: StudioAudioFitSettings): C ]; } +/** The complete existing lyric composite, shared by legacy managed additions + * and fresh ordinary authoring. Placement here is a request, never admission. */ +export function lyricVideoWorkflowFieldValues( + settings: NonNullable, + form: StudioFormState, +): Record< + | 'quantization' + | 'recipe' + | 'pipeline' + | 'sequence' + | 'compose' + | 'upscaler' + | 'overlay' + | 'audioGenerate' + | 'audioFit' + | 'exporter', + ControlledFieldValue[] +> { + const executionForm = resolveStudioResourceForm(form); + const fields = (values: Record) => + Object.entries(values).map(([field, value]) => ({ fields: [field], value })); + return { + quantization: fields({ + backend: executionForm.resourceMode === 'expert' ? executionForm.quantizationMode : 'none', + components: ['transformer'], + dtype: executionForm.dtype, + }), + recipe: fields({ + device_map: 'none', + offload_mode: executionForm.offloadMode, + device: executionForm.device, + attention_backend: 'auto', + attention_components: '', + vae_slicing: true, + vae_tiling: true, + }), + pipeline: fields({ + model_id: settings.visualModel, + pipeline_class: 'LTXConditionPipeline', + dtype: executionForm.dtype, + device: executionForm.device, + auto_offload: executionForm.autoOffload, + offload_mode: executionForm.offloadMode, + }), + sequence: fields({ + mode: 'text_to_video', + prompts_json: settings.promptsJson, + negative_prompt: form.negativePrompt, + width: 768, + height: 512, + num_frames: 81, + frame_rate: form.fps, + num_inference_steps: 8, + guidance_scale: 1, + seed: form.seed, + output_type: form.outputType, + max_sequence_length: form.maxSequenceLength, + }), + compose: fields({ fps: 16, transition_seconds: settings.transitionSeconds }), + upscaler: fields({ + model_id: { + source: 'hub', + value: 'nateraw/real-esrgan/RealESRGAN_x2plus.pth', + revision: '42efb9c3eeed1f5c0c8a626cf5f7f4481dfbb094', + sha256: '49fafd45f8fd7aa8d31ab2a22d14d91b536c34494a5cfe31eb5d89c2fa266abb', + byteSize: 67061725, + }, + downscale: 1, + }), + overlay: fields({ + lrc: settings.lrc, + fps: 16, + font_size: settings.fontSize ?? 58, + bottom_margin: settings.bottomMargin ?? 70, + }), + audioGenerate: fields({ + task_type: 'text2music', + prompt: settings.audio.prompt, + negative_prompt: '', + lyrics: settings.audio.lyrics, + audio_duration: settings.audio.durationSeconds, + num_inference_steps: settings.audio.steps, + guidance_scale: settings.audio.guidanceScale, + shift: settings.audio.shift ?? 3, + seed: settings.audio.seed, + bpm: settings.audio.bpm ?? 0, + keyscale: settings.audio.keyscale ?? '', + timesignature: settings.audio.timesignature ?? '4', + vocal_language: settings.audio.vocalLanguage ?? 'en', + sample_rate: settings.audioFit.targetSampleRate ?? 48000, + }), + audioFit: audioFitWorkflowFieldValues(settings.audioFit), + exporter: fields({ fps: 16 }), + }; +} + /** A soundtrack remains a separate, visible audio pipeline and timeline fit. */ export function soundtrackWorkflowFieldValues( settings: NonNullable, diff --git a/src/studio/controlledWorkflows.ts b/src/studio/controlledWorkflows.ts index 4acee262..21fba0c3 100644 --- a/src/studio/controlledWorkflows.ts +++ b/src/studio/controlledWorkflows.ts @@ -24,32 +24,16 @@ import { } from './controlledWorkflowContracts'; import { resolveStudioResourceForm } from './resourcePlanner'; import { - audioFitWorkflowFieldValues, loraWorkflowFieldValues, + lyricVideoWorkflowFieldValues, soundtrackWorkflowFieldValues, upscaleWorkflowFieldValues, } from './controlledWorkflowValues'; import { MAX_ORDERED_ADAPTERS, orderedAdapterChainLinks } from './adapterChainLinks'; -import type { - StudioAudioFitSettings, - StudioFormState, - StudioTemplateLoraSettings, - StudioTemplateWorkflowBlockSettings, -} from './types'; +import type { StudioFormState, StudioTemplateLoraSettings, StudioTemplateWorkflowBlockSettings } from './types'; export { CONTROLLED_WORKFLOW_NODE_KEYS } from './controlledWorkflowContracts'; -const VIDEO_DELIVERY_UPSCALER = { - model: { - source: 'hub' as const, - value: 'nateraw/real-esrgan/RealESRGAN_x2plus.pth', - revision: '42efb9c3eeed1f5c0c8a626cf5f7f4481dfbb094', - sha256: '49fafd45f8fd7aa8d31ab2a22d14d91b536c34494a5cfe31eb5d89c2fa266abb', - byteSize: 67061725, - }, - downscale: 1, -}; - type ControlledWorkflowOptions = { graphPrepared?: boolean; notify?: boolean; @@ -95,10 +79,6 @@ function setParamIfPresent( return true; } -function applyAudioFitValues(nodeId: string, settings: StudioAudioFitSettings) { - for (const { fields, value } of audioFitWorkflowFieldValues(settings)) setParamIfPresent(nodeId, fields, value); -} - async function ensureRegistryKeys(keys: string[]) { const nodesStore = useNodesStore.getState(); const missingBeforeFetch = keys.filter((key) => !nodesStore.nodesRegistry[key]); @@ -921,7 +901,6 @@ export async function addLyricVideoWorkflowBlock( assertWorkflowOperationContext(context); if (!settings) throw new Error('Lyric video settings are required.'); const executionForm = resolveStudioResourceForm(form); - const runtimeQuantizationMode = executionForm.resourceMode === 'expert' ? executionForm.quantizationMode : 'none'; const requiredKeys: string[] = [ CONTROLLED_WORKFLOW_NODE_KEYS.lyricVideoQuantization, CONTROLLED_WORKFLOW_NODE_KEYS.lyricVideoRecipe, @@ -976,51 +955,21 @@ export async function addLyricVideoWorkflowBlock( x: 1440, y: 180, }); - setParamIfPresent(quantization, ['backend'], runtimeQuantizationMode); - setParamIfPresent(quantization, ['components'], ['transformer']); - setParamIfPresent(quantization, ['dtype'], executionForm.dtype); - setParamIfPresent(recipe, ['device_map'], 'none'); - setParamIfPresent(recipe, ['offload_mode'], executionForm.offloadMode); - setParamIfPresent(recipe, ['device'], executionForm.device); - setParamIfPresent(recipe, ['attention_backend'], 'auto'); - setParamIfPresent(recipe, ['attention_components'], ''); - setParamIfPresent(recipe, ['vae_slicing'], true); - setParamIfPresent(recipe, ['vae_tiling'], true); - setParamIfPresent(pipeline, ['model_id'], settings.visualModel); - setParamIfPresent(pipeline, ['pipeline_class'], 'LTXConditionPipeline'); - setParamIfPresent(pipeline, ['dtype'], executionForm.dtype); - setParamIfPresent(pipeline, ['device'], executionForm.device); - setParamIfPresent(pipeline, ['auto_offload'], executionForm.autoOffload); - setParamIfPresent(pipeline, ['offload_mode'], executionForm.offloadMode); - applySequenceValues( + const nodes = { + quantization, + recipe, + pipeline, sequence, - { ...form, width: 768, height: 512, numFrames: 81, steps: 8, guidanceScale: 1 }, - settings.promptsJson, - ); - setParamIfPresent(compose, ['fps'], 16); - setParamIfPresent(compose, ['transition_seconds'], settings.transitionSeconds); - setParamIfPresent(upscaler, ['model_id'], VIDEO_DELIVERY_UPSCALER.model); - setParamIfPresent(upscaler, ['downscale'], VIDEO_DELIVERY_UPSCALER.downscale); - setParamIfPresent(overlay, ['lrc'], settings.lrc); - setParamIfPresent(overlay, ['fps'], 16); - setParamIfPresent(overlay, ['font_size'], settings.fontSize ?? 58); - setParamIfPresent(overlay, ['bottom_margin'], settings.bottomMargin ?? 70); - setParamIfPresent(audioGenerate, ['task_type'], 'text2music'); - setParamIfPresent(audioGenerate, ['prompt'], settings.audio.prompt); - setParamIfPresent(audioGenerate, ['negative_prompt'], ''); - setParamIfPresent(audioGenerate, ['lyrics'], settings.audio.lyrics); - setParamIfPresent(audioGenerate, ['audio_duration'], settings.audio.durationSeconds); - setParamIfPresent(audioGenerate, ['num_inference_steps'], settings.audio.steps); - setParamIfPresent(audioGenerate, ['guidance_scale'], settings.audio.guidanceScale); - setParamIfPresent(audioGenerate, ['shift'], settings.audio.shift ?? 3); - setParamIfPresent(audioGenerate, ['seed'], settings.audio.seed); - setParamIfPresent(audioGenerate, ['bpm'], settings.audio.bpm ?? 0); - setParamIfPresent(audioGenerate, ['keyscale'], settings.audio.keyscale ?? ''); - setParamIfPresent(audioGenerate, ['timesignature'], settings.audio.timesignature ?? '4'); - setParamIfPresent(audioGenerate, ['vocal_language'], settings.audio.vocalLanguage ?? 'en'); - setParamIfPresent(audioGenerate, ['sample_rate'], settings.audioFit.targetSampleRate ?? 48000); - applyAudioFitValues(audioFit, settings.audioFit); - setParamIfPresent(exporter, ['fps'], 16); + compose, + upscaler, + overlay, + audioGenerate, + audioFit, + exporter, + }; + const values = lyricVideoWorkflowFieldValues(settings, form); + for (const role of Object.keys(nodes) as (keyof typeof nodes)[]) + for (const { fields, value } of values[role]) setParamIfPresent(nodes[role], fields, value); if ( !ensureConnection(quantization, ['quantization_config'], recipe, ['quantization_config']) || !ensureConnection(recipe, ['execution_recipe'], pipeline, ['execution_recipe']) || diff --git a/src/studio/templateLyricVideo.ts b/src/studio/templateLyricVideo.ts new file mode 100644 index 00000000..a0687dbf --- /dev/null +++ b/src/studio/templateLyricVideo.ts @@ -0,0 +1,68 @@ +import type { CustomNodeType } from '../stores/useFlowStore'; +import { CONTROLLED_WORKFLOW_NODE_KEYS as KEYS } from './controlledWorkflowContracts'; +import { lyricVideoWorkflowFieldValues } from './controlledWorkflowValues'; +import type { StudioFormState, StudioTemplateWorkflowBlockSettings } from './types'; + +/** Append the actual visible lyric/media stages to an ordinary audio starter. */ +export function attachTemplateLyricVideo({ + form, + settings, + audioGenerate, + utility, + set, + connect, +}: { + form: StudioFormState; + settings: StudioTemplateWorkflowBlockSettings['lyricVideo']; + audioGenerate: CustomNodeType | undefined; + utility: (key: string, index: number) => CustomNodeType; + set: (node: CustomNodeType, fields: string[], value: unknown) => void; + connect: (from: CustomNodeType, outputs: string[], to: CustomNodeType, inputs: string[]) => void; +}) { + if (!settings || !audioGenerate || audioGenerate.data.params.audio?.type !== 'audio') + throw new Error('The lyric composite needs one declared audio generator and its complete branch settings.'); + const nodes = { + quantization: utility(KEYS.lyricVideoQuantization, 0), + recipe: utility(KEYS.lyricVideoRecipe, 1), + pipeline: utility(KEYS.videoPipeline, 2), + sequence: utility(KEYS.videoSequence, 3), + compose: utility(KEYS.videoCompose, 4), + upscaler: utility(KEYS.upscaler, 5), + overlay: utility(KEYS.lyricOverlay, 6), + audioGenerate, + audioFit: utility(KEYS.audioFit, 7), + exporter: utility(KEYS.exportWithAudio, 8), + }; + const values = lyricVideoWorkflowFieldValues(settings, form); + // Registry selectors transport source/value. Immutable revision is a separate + // declared loader field; never drop it with the legacy selector decoration. + values.pipeline = values.pipeline.map((item) => + item.fields[0] === 'model_id' + ? { fields: item.fields, value: { source: settings.visualModel.source, value: settings.visualModel.value } } + : item, + ); + if (!settings.visualModel.revision || !/^[a-f0-9]{40}$/.test(settings.visualModel.revision)) + throw new Error('The lyric visual branch needs an immutable model revision.'); + values.pipeline.push({ fields: ['revision'], value: settings.visualModel.revision }); + for (const role of Object.keys(nodes) as (keyof typeof nodes)[]) + for (const { fields, value } of values[role]) { + const param = fields.map((name) => nodes[role].data.params[name]).find(Boolean); + // Ordinary factory fields retain their native random-control shape. + set( + nodes[role], + fields, + param?.display === 'random' && typeof value === 'number' + ? { value, isRandom: role === 'sequence' && form.randomSeed } + : value, + ); + } + connect(nodes.quantization, ['quantization_config'], nodes.recipe, ['quantization_config']); + connect(nodes.recipe, ['execution_recipe'], nodes.pipeline, ['execution_recipe']); + connect(nodes.pipeline, ['pipeline'], nodes.sequence, ['pipeline']); + connect(nodes.sequence, ['clips'], nodes.compose, ['clip_1']); + connect(nodes.compose, ['video'], nodes.upscaler, ['image']); + connect(nodes.upscaler, ['output'], nodes.overlay, ['video']); + connect(nodes.overlay, ['output'], nodes.exporter, ['video']); + connect(nodes.audioGenerate, ['audio'], nodes.audioFit, ['audio']); + connect(nodes.audioFit, ['output'], nodes.exporter, ['audio']); +} diff --git a/src/studio/templateModelSelection.ts b/src/studio/templateModelSelection.ts index b207be4d..e7d7b87a 100644 --- a/src/studio/templateModelSelection.ts +++ b/src/studio/templateModelSelection.ts @@ -1,5 +1,10 @@ import type { StudioModelProfile, StudioTemplate } from './types'; +/** A composite's final media does not change its declared primary task. */ +export function templateHasAudioPrimary(template: Pick) { + return ['text_to_audio', 'audio_variation', 'audio_continuation', 'audio_repaint'].includes(template.mode); +} + /** Exact backend ownership for a fresh recipe, independent of Auto and media * qualification. It grants no package installation or execution permission. */ export function resolveTemplateModelSelection(template: StudioTemplate, capabilities: StudioModelProfile[]) { @@ -20,7 +25,7 @@ export function resolveTemplateModelSelection(template: StudioTemplate, capabili !/^[A-Za-z0-9][A-Za-z0-9._-]{0,95}\/[A-Za-z0-9][A-Za-z0-9._-]{0,95}$/u.test(profile.default_repo) ) return null; - const audio = template.example?.mediaType === 'audio'; + const audio = templateHasAudioPrimary(template); const artifact = template.modelArtifact ?? (audio ? template.workflowBlockSettings?.lora?.baseModel : undefined); const repository = artifact?.value ?? profile.default_repo; const exampleRevision = template.example?.modelRevision; diff --git a/src/studio/templateOperationSelections.ts b/src/studio/templateOperationSelections.ts index 0d136754..4e0981f2 100644 --- a/src/studio/templateOperationSelections.ts +++ b/src/studio/templateOperationSelections.ts @@ -503,6 +503,7 @@ export const AUDIO_TEMPLATE_EXECUTION_SELECTIONS: Partial [ id, diff --git a/src/studio/templateOperationWorkflow.ts b/src/studio/templateOperationWorkflow.ts index d8d915e1..da1e7ff6 100644 --- a/src/studio/templateOperationWorkflow.ts +++ b/src/studio/templateOperationWorkflow.ts @@ -1,5 +1,6 @@ import { attachPromptEnhancementParents } from './promptEnhancementAuthoring'; import { attachTemplateImageComposite } from './templateImageComposite'; +import { attachTemplateLyricVideo } from './templateLyricVideo'; import { selectedAudioAdapterPolicy } from '../workflow/selectedAudioAdapterAuthority'; import { validateModelSetupAdapterSelection, @@ -30,7 +31,7 @@ import { resolveStudioResourceForm } from './resourcePlanner'; import { orderedAdapterChainLinks } from './adapterChainLinks'; import { resolveStudioExecutionSpecValues } from './executionSpecValues'; import { selectedNodeWeightFormatArtifact } from './weightFormat'; -import { resolveTemplateModelSelection } from './templateModelSelection'; +import { resolveTemplateModelSelection, templateHasAudioPrimary } from './templateModelSelection'; import type { StudioExecutionSpec, StudioFormState, @@ -128,7 +129,7 @@ export function createTemplateOperationGraph( throw new Error('The backend resolved a different template execution profile.'); const lockedRevision = template.modelArtifact?.revision ?? template.example?.modelRevision; if ( - template.example?.mediaType === 'audio' || + templateHasAudioPrimary(template) || template.modelArtifact || (lockedRevision && /^[a-f0-9]{40}$/u.test(lockedRevision)) ) { @@ -175,7 +176,7 @@ export function createTemplateOperationGraph( const revision = revisionField?.value ?? revisionField?.default; const values = resolveStudioExecutionSpecValues(form, spec, capability, { ...(typeof revision === 'string' ? { defaultModelRevision: revision } : {}), - ...(template.example?.mediaType === 'audio' + ...(templateHasAudioPrimary(template) ? { audioTemplateBaseModel: resolveTemplateModelSelection(template, [capability])?.repository } : {}), }); @@ -502,6 +503,15 @@ export function createTemplateOperationGraph( link.targetHandles, ); } + } else if (block === 'lyric_video') { + attachTemplateLyricVideo({ + form, + settings: template.workflowBlockSettings?.lyricVideo, + audioGenerate: roles.get('audioGenerate'), + utility, + set, + connect, + }); } else if (block === 'masked_composite') { attachTemplateImageComposite({ graph, diff --git a/src/studio/templateWorkflow.ts b/src/studio/templateWorkflow.ts index cd24dba6..783b1ffc 100644 --- a/src/studio/templateWorkflow.ts +++ b/src/studio/templateWorkflow.ts @@ -1,4 +1,4 @@ -import { resolveTemplateModelSelection } from './templateModelSelection'; +import { resolveTemplateModelSelection, templateHasAudioPrimary } from './templateModelSelection'; import { hasTemplateOperationRecipe } from './templateOperationSelections'; import { useSettingsStore } from '../stores/useSettingsStore'; import { useFlowStore } from '../stores/useFlowStore'; @@ -203,11 +203,10 @@ export async function createTemplateOperationWorkflow( ); if (!spec || !capability) throw new Error('The selected template execution specification is unavailable. Refresh model capabilities.'); - const selected = - template.example?.mediaType === 'audio' - ? resolveTemplateModelSelection(template, nodesStore.studioModelCapabilities) - : null; - if (template.example?.mediaType === 'audio' && !selected) + const selected = templateHasAudioPrimary(template) + ? resolveTemplateModelSelection(template, nodesStore.studioModelCapabilities) + : null; + if (templateHasAudioPrimary(template) && !selected) throw new Error('The selected audio template needs one reviewed immutable model revision. Refresh capabilities.'); const starter = await requestOperationStarter( selection.pipelineClass, @@ -225,6 +224,19 @@ export async function createTemplateOperationWorkflow( ? ['modules.ModularDiffusers.Lora', 'modules.DiffusersImage.LoadAdapter', 'modules.DiffusersAudio.LoadAdapter'] : []), ...(template.workflowBlocks?.includes('upscaler') ? ['modules.Spandrel.Upscaler'] : []), + ...(template.workflowBlocks?.includes('lyric_video') + ? [ + 'modules.DiffusersRuntime.PipelineQuantizationConfigV2', + 'modules.DiffusersRuntime.DiffusersExecutionRecipe', + 'modules.DiffusersVideo.LoadPipeline', + 'modules.DiffusersVideo.GenerateSequence', + 'modules.Video.Compose', + 'modules.Spandrel.Upscaler', + 'modules.Video.LyricOverlay', + 'modules.Audio.FitDuration', + 'modules.Video.ExportWithAudio', + ] + : []), ]; if (registryKeys.some((key) => !useNodesStore.getState().nodesRegistry[key])) { await useNodesStore.getState().fetchNodes(); diff --git a/tests/e2e/studio-mocked/studio-mocked.spec.ts b/tests/e2e/studio-mocked/studio-mocked.spec.ts index e0bb8605..7fc80f1e 100644 --- a/tests/e2e/studio-mocked/studio-mocked.spec.ts +++ b/tests/e2e/studio-mocked/studio-mocked.spec.ts @@ -36865,6 +36865,65 @@ test('MiniMax real Audio Output preserves leaves and supports contained playback expect(mutations).toEqual([]); }); +test('fresh lyric template preserves its full composite branch brief through ordinary Save and reopen', async ({ + page, +}) => { + test.setTimeout(180_000); + const { mutations } = await openAudioStageTemplate(page, 'ace_step_lyric_music_video'); + const original = await audioApiSnapshot(page); + const brief = STUDIO_TEMPLATES.find((item) => item.id === 'ace_step_lyric_music_video')!.workflowBlockSettings! + .lyricVideo!; + expect(Object.keys(original.nodes)).toHaveLength(14); + const audio = Object.values(original.nodes).find( + (node) => node.module === 'modules.DiffusersAudio' && node.action === 'Generate', + )!; + expect(audioApiValue(audio, 'prompt')).toBe(brief.audio.prompt); + expect(audioApiValue(audio, 'bpm')).toBe(100); + expect(audioApiValue(audio, 'lyrics')).toBe(brief.audio.lyrics); + expect(audioApiValue(audio, 'audio_duration')).toBe(30); + const recipes = Object.values(original.nodes).filter((node) => node.action === 'DiffusersExecutionRecipe'); + expect(recipes).toHaveLength(2); + for (const recipe of recipes) expect(audioApiValue(recipe, 'attention_backend')).toBe('auto'); + const visual = Object.values(original.nodes).find( + (node) => node.module === 'modules.DiffusersVideo' && node.action === 'LoadPipeline', + )!; + expect(audioApiValue(visual, 'model_id')).toEqual({ source: 'hub', value: brief.visualModel.value }); + expect(audioApiValue(visual, 'revision')).toBe(brief.visualModel.revision); + const sequence = Object.values(original.nodes).find((node) => node.action === 'GenerateSequence')!; + expect(audioApiValue(sequence, 'prompts_json')).toBe(brief.promptsJson); + expect(audioApiValue(sequence, 'num_frames')).toBe(81); + expect(audioApiValue(sequence, 'frame_rate')).toBe(16); + expect( + audioApiValue( + Object.values(original.nodes).find((node) => node.action === 'LyricOverlay')!, + 'lrc', + ), + ).toBe(brief.lrc); + await page.getByTestId('topbar-save-workflow-options').click(); + await page.getByTestId('topbar-save-workflow-as').click(); + const title = 'Lyric composite branch preservation'; + await page.getByTestId('save-workflow-name').fill(title); + const savedResponse = page.waitForResponse( + (response) => + response.request().method() === 'PUT' && + response.url().includes('/workflows/') && + response.request().postDataJSON().title === title && + response.ok(), + ); + await page.getByTestId('confirm-save-workflow').click(); + const saved = (await (await savedResponse).json()) as { id: string; intent: string }; + expect(saved.intent).toBe('saved'); + await page.getByRole('button', { name: `Close ${title}`, exact: true }).click(); + await page.getByTestId('left-tab-workflows').click(); + await page.getByRole('button', { name: 'My workflows', exact: true }).click(); + await page.getByTestId(`saved-workflow-${saved.id}`).getByRole('button', { name: title, exact: true }).click(); + await expect.poll(() => audioApiSnapshot(page)).toEqual(original); + await page.reload(); + await page.waitForFunction(() => Boolean(window.__MODIFF_E2E__?.getState().flow.nodes.length)); + await expect.poll(() => audioApiSnapshot(page)).toEqual(original); + expect(mutations).toEqual([]); +}); + test('ACE selected max-one audio setup keeps its row editable and Remove Undo reload preserves exact API', async ({ page, }) => { From e12980ebab844b51a69eae8a953651ffc14fb030 Mon Sep 17 00:00:00 2001 From: Sourav Das Date: Thu, 5 Nov 2026 04:07:36 +0530 Subject: [PATCH 186/440] Share lyric node construction and bound deferred bundle growth --- scripts/bundle-budget.mjs | 9 ++- src/studio/controlledWorkflowValues.ts | 44 +++++++++++++++ src/studio/controlledWorkflows.ts | 76 +++++--------------------- src/studio/templateLyricVideo.ts | 56 +++++++------------ src/studio/templateModelSelection.ts | 2 +- 5 files changed, 85 insertions(+), 102 deletions(-) diff --git a/scripts/bundle-budget.mjs b/scripts/bundle-budget.mjs index 61b93efc..e2dbace6 100644 --- a/scripts/bundle-budget.mjs +++ b/scripts/bundle-budget.mjs @@ -1,3 +1,9 @@ +// Fresh lyric composites share their actual node/edge construction with managed +// recipes. Largest/startup/deferred gzip is 496585/675069/330324 against the +// accepted D77 496579/675066/329724. Keep both startup limits and the 64 KiB +// deferred chunk limit unchanged; add only the measured 600 deferred bytes, +// retaining 274 bytes of deferred headroom. All 94 JavaScript names and their +// four startup/90 deferred memberships, dependencies and loading rules stay fixed. // Versioned primary-model summaries add 82/83 compressed startup bytes over // 496485/674972; deferred gzip falls from 329730 to 329712. Only studio-templates.js // changes after immutable import-URL normalization, with all 94 JavaScript names, @@ -749,7 +755,8 @@ const MAX_DEFERRED_GZIP_BYTES = 1593 + 864 + 1561 + - 194; + 194 + + 600; const STATIC_MODULE_REFERENCE = /\b(?:import(?=\s|["'{*])(?!\s*\()|export(?=\s|["'{*]))[^;]*?["'](\.\/[^"'?]+\.js)(?:\?v=[0-9a-f]{16})?["']/g; diff --git a/src/studio/controlledWorkflowValues.ts b/src/studio/controlledWorkflowValues.ts index 449f59eb..125a8ead 100644 --- a/src/studio/controlledWorkflowValues.ts +++ b/src/studio/controlledWorkflowValues.ts @@ -5,6 +5,7 @@ import type { StudioTemplateWorkflowBlockSettings, } from './types'; import { resolveStudioResourceForm } from './resourcePlanner'; +import { CONTROLLED_ROLE_NODE_KEYS, type ControlledNodeRole } from './controlledWorkflowContracts'; export type ControlledFieldValue = { fields: string[]; value: unknown }; @@ -151,6 +152,49 @@ export function lyricVideoWorkflowFieldValues( }; } +type LyricRole = keyof ReturnType; + +/** Shared construction keeps the managed and ordinary composite's real stages + * and wires identical without introducing another execution representation. */ +export function buildLyricVideoWorkflow( + settings: NonNullable, + form: StudioFormState, + audioGenerate: T, + create: (key: string, role: ControlledNodeRole, position: { x: number; y: number }) => T, + set: (node: T, fields: string[], value: unknown, role: LyricRole) => void, + connect: (from: T, outputs: string[], to: T, inputs: string[]) => void, +) { + const layout: [Exclude, ControlledNodeRole, number, number][] = [ + ['quantization', 'lyricVideoQuantization', -1280, 340], + ['recipe', 'lyricVideoRecipe', -900, 340], + ['pipeline', 'lyricVideoPipeline', -500, 340], + ['sequence', 'videoSequence', -100, 340], + ['compose', 'videoCompose', 300, 340], + ['upscaler', 'upscaler', 680, 340], + ['overlay', 'lyricOverlay', 1060, 340], + ['audioFit', 'lyricAudioFit', 1060, 720], + ['exporter', 'exportWithAudio', 1440, 180], + ]; + const nodes = { audioGenerate } as Record; + for (const [name, role, x, y] of layout) nodes[name] = create(CONTROLLED_ROLE_NODE_KEYS[role]!, role, { x, y }); + const values = lyricVideoWorkflowFieldValues(settings, form); + for (const role of Object.keys(nodes) as LyricRole[]) + for (const { fields, value } of values[role]) set(nodes[role], fields, value, role); + const edges: [LyricRole, string, LyricRole, string][] = [ + ['quantization', 'quantization_config', 'recipe', 'quantization_config'], + ['recipe', 'execution_recipe', 'pipeline', 'execution_recipe'], + ['pipeline', 'pipeline', 'sequence', 'pipeline'], + ['sequence', 'clips', 'compose', 'clip_1'], + ['compose', 'video', 'upscaler', 'image'], + ['upscaler', 'output', 'overlay', 'video'], + ['overlay', 'output', 'exporter', 'video'], + ['audioGenerate', 'audio', 'audioFit', 'audio'], + ['audioFit', 'output', 'exporter', 'audio'], + ]; + for (const [source, output, target, input] of edges) connect(nodes[source], [output], nodes[target], [input]); + return nodes.exporter; +} + /** A soundtrack remains a separate, visible audio pipeline and timeline fit. */ export function soundtrackWorkflowFieldValues( settings: NonNullable, diff --git a/src/studio/controlledWorkflows.ts b/src/studio/controlledWorkflows.ts index 21fba0c3..2249592c 100644 --- a/src/studio/controlledWorkflows.ts +++ b/src/studio/controlledWorkflows.ts @@ -25,7 +25,7 @@ import { import { resolveStudioResourceForm } from './resourcePlanner'; import { loraWorkflowFieldValues, - lyricVideoWorkflowFieldValues, + buildLyricVideoWorkflow, soundtrackWorkflowFieldValues, upscaleWorkflowFieldValues, } from './controlledWorkflowValues'; @@ -921,68 +921,18 @@ export async function addLyricVideoWorkflowBlock( const audioGenerate = binding?.nodes.audioGenerate; if (!audioGenerate) throw new Error('Lyric video requires the ACE-Step audio graph.'); return runControlledGraphTransaction(context, 'lyric-video.v1', () => { - const quantization = ensureControlledNode( - CONTROLLED_WORKFLOW_NODE_KEYS.lyricVideoQuantization, - 'lyricVideoQuantization', - { x: -1280, y: 340 }, - ); - const recipe = ensureControlledNode(CONTROLLED_WORKFLOW_NODE_KEYS.lyricVideoRecipe, 'lyricVideoRecipe', { - x: -900, - y: 340, - }); - const pipeline = ensureControlledNode(CONTROLLED_WORKFLOW_NODE_KEYS.videoPipeline, 'lyricVideoPipeline', { - x: -500, - y: 340, - }); - const sequence = ensureControlledNode(CONTROLLED_WORKFLOW_NODE_KEYS.videoSequence, 'videoSequence', { - x: -100, - y: 340, - }); - const compose = ensureControlledNode(CONTROLLED_WORKFLOW_NODE_KEYS.videoCompose, 'videoCompose', { - x: 300, - y: 340, - }); - const upscaler = ensureControlledNode(CONTROLLED_WORKFLOW_NODE_KEYS.upscaler, 'upscaler', { x: 680, y: 340 }); - const overlay = ensureControlledNode(CONTROLLED_WORKFLOW_NODE_KEYS.lyricOverlay, 'lyricOverlay', { - x: 1060, - y: 340, - }); - const audioFit = ensureControlledNode(CONTROLLED_WORKFLOW_NODE_KEYS.audioFit, 'lyricAudioFit', { - x: 1060, - y: 720, - }); - const exporter = ensureControlledNode(CONTROLLED_WORKFLOW_NODE_KEYS.exportWithAudio, 'exportWithAudio', { - x: 1440, - y: 180, - }); - const nodes = { - quantization, - recipe, - pipeline, - sequence, - compose, - upscaler, - overlay, + return buildLyricVideoWorkflow( + settings, + form, audioGenerate, - audioFit, - exporter, - }; - const values = lyricVideoWorkflowFieldValues(settings, form); - for (const role of Object.keys(nodes) as (keyof typeof nodes)[]) - for (const { fields, value } of values[role]) setParamIfPresent(nodes[role], fields, value); - if ( - !ensureConnection(quantization, ['quantization_config'], recipe, ['quantization_config']) || - !ensureConnection(recipe, ['execution_recipe'], pipeline, ['execution_recipe']) || - !ensureConnection(pipeline, ['pipeline'], sequence, ['pipeline']) || - !ensureConnection(sequence, ['clips'], compose, ['clip_1']) || - !ensureConnection(compose, ['video'], upscaler, ['image']) || - !ensureConnection(upscaler, ['output'], overlay, ['video']) || - !ensureConnection(overlay, ['output'], exporter, ['video']) || - !ensureConnection(audioGenerate, ['audio'], audioFit, ['audio']) || - !ensureConnection(audioFit, ['output'], exporter, ['audio']) - ) { - throw new Error('Lyric video nodes were created, but their media handles are unavailable.'); - } - return exporter; + ensureControlledNode, + (node, fields, value) => { + setParamIfPresent(node, fields, value); + }, + (from, outputs, to, inputs) => { + if (!ensureConnection(from, outputs, to, inputs)) + throw new Error('Lyric video nodes were created, but their media handles are unavailable.'); + }, + ); }); } diff --git a/src/studio/templateLyricVideo.ts b/src/studio/templateLyricVideo.ts index a0687dbf..ae17b2f5 100644 --- a/src/studio/templateLyricVideo.ts +++ b/src/studio/templateLyricVideo.ts @@ -1,6 +1,5 @@ import type { CustomNodeType } from '../stores/useFlowStore'; -import { CONTROLLED_WORKFLOW_NODE_KEYS as KEYS } from './controlledWorkflowContracts'; -import { lyricVideoWorkflowFieldValues } from './controlledWorkflowValues'; +import { buildLyricVideoWorkflow } from './controlledWorkflowValues'; import type { StudioFormState, StudioTemplateWorkflowBlockSettings } from './types'; /** Append the actual visible lyric/media stages to an ordinary audio starter. */ @@ -21,48 +20,31 @@ export function attachTemplateLyricVideo({ }) { if (!settings || !audioGenerate || audioGenerate.data.params.audio?.type !== 'audio') throw new Error('The lyric composite needs one declared audio generator and its complete branch settings.'); - const nodes = { - quantization: utility(KEYS.lyricVideoQuantization, 0), - recipe: utility(KEYS.lyricVideoRecipe, 1), - pipeline: utility(KEYS.videoPipeline, 2), - sequence: utility(KEYS.videoSequence, 3), - compose: utility(KEYS.videoCompose, 4), - upscaler: utility(KEYS.upscaler, 5), - overlay: utility(KEYS.lyricOverlay, 6), - audioGenerate, - audioFit: utility(KEYS.audioFit, 7), - exporter: utility(KEYS.exportWithAudio, 8), - }; - const values = lyricVideoWorkflowFieldValues(settings, form); - // Registry selectors transport source/value. Immutable revision is a separate - // declared loader field; never drop it with the legacy selector decoration. - values.pipeline = values.pipeline.map((item) => - item.fields[0] === 'model_id' - ? { fields: item.fields, value: { source: settings.visualModel.source, value: settings.visualModel.value } } - : item, - ); if (!settings.visualModel.revision || !/^[a-f0-9]{40}$/.test(settings.visualModel.revision)) throw new Error('The lyric visual branch needs an immutable model revision.'); - values.pipeline.push({ fields: ['revision'], value: settings.visualModel.revision }); - for (const role of Object.keys(nodes) as (keyof typeof nodes)[]) - for (const { fields, value } of values[role]) { - const param = fields.map((name) => nodes[role].data.params[name]).find(Boolean); + let index = 0; + buildLyricVideoWorkflow( + settings, + form, + audioGenerate, + (key) => utility(key, index++), + (node, fields, value, role) => { + // Registry selectors transport source/value with a separate immutable pin. + if (role === 'pipeline' && fields[0] === 'model_id') { + set(node, fields, { source: settings.visualModel.source, value: settings.visualModel.value }); + set(node, ['revision'], settings.visualModel.revision); + return; + } + const param = fields.map((name) => node.data.params[name]).find(Boolean); // Ordinary factory fields retain their native random-control shape. set( - nodes[role], + node, fields, param?.display === 'random' && typeof value === 'number' ? { value, isRandom: role === 'sequence' && form.randomSeed } : value, ); - } - connect(nodes.quantization, ['quantization_config'], nodes.recipe, ['quantization_config']); - connect(nodes.recipe, ['execution_recipe'], nodes.pipeline, ['execution_recipe']); - connect(nodes.pipeline, ['pipeline'], nodes.sequence, ['pipeline']); - connect(nodes.sequence, ['clips'], nodes.compose, ['clip_1']); - connect(nodes.compose, ['video'], nodes.upscaler, ['image']); - connect(nodes.upscaler, ['output'], nodes.overlay, ['video']); - connect(nodes.overlay, ['output'], nodes.exporter, ['video']); - connect(nodes.audioGenerate, ['audio'], nodes.audioFit, ['audio']); - connect(nodes.audioFit, ['output'], nodes.exporter, ['audio']); + }, + connect, + ); } diff --git a/src/studio/templateModelSelection.ts b/src/studio/templateModelSelection.ts index e7d7b87a..cce4e893 100644 --- a/src/studio/templateModelSelection.ts +++ b/src/studio/templateModelSelection.ts @@ -2,7 +2,7 @@ import type { StudioModelProfile, StudioTemplate } from './types'; /** A composite's final media does not change its declared primary task. */ export function templateHasAudioPrimary(template: Pick) { - return ['text_to_audio', 'audio_variation', 'audio_continuation', 'audio_repaint'].includes(template.mode); + return template.mode === 'text_to_audio' || template.mode.startsWith('audio_'); } /** Exact backend ownership for a fresh recipe, independent of Auto and media From b08581e7291d3a4051684f2a76a9d84c0ab88360 Mon Sep 17 00:00:00 2001 From: Sourav Das Date: Thu, 5 Nov 2026 13:02:37 +0530 Subject: [PATCH 187/440] Preserve generator task and memory summaries with postprocessing --- docs/modiff-client-architecture.md | 8 + scripts/modiff-template.test.mjs | 94 +++++++ src/studio/workflowInference.ts | 99 ++++--- tests/e2e/studio-mocked/studio-mocked.spec.ts | 255 ++++++++++-------- 4 files changed, 298 insertions(+), 158 deletions(-) diff --git a/docs/modiff-client-architecture.md b/docs/modiff-client-architecture.md index 29be37a1..33487cd4 100644 --- a/docs/modiff-client-architecture.md +++ b/docs/modiff-client-architecture.md @@ -1144,6 +1144,14 @@ inferring their image recipe summary. Raw graph imports also retain each node's authored device value and default, including mixed CPU/accelerator placement; the current form device does not rebase them. Summary defaults do not repair missing or malformed graph fields. Explicit device rebasing remains separate. +Generation graphs with an upscaler or deterministic processing stage infer their +summary from recognized model-loader declarations before standalone processing +fallbacks. Staged video retains a compatible authored task, Encode Inputs prompt, +Denoise frame/settings values and ordinary export frame rate without requiring +Studio roles. Profiles sharing a repository retain matching authored model +context. This is a descriptive summary, not graph validation, resource admission +or permission to rewrite executable nodes; standalone operations retain their +own task summaries. Passive tab switching, closing, backend hydration and browser reload retain a recognized saved ordinary image form; Save As, Duplicate and output Restore retain that form too. These paths do not diff --git a/scripts/modiff-template.test.mjs b/scripts/modiff-template.test.mjs index 513de1e9..2b198c84 100644 --- a/scripts/modiff-template.test.mjs +++ b/scripts/modiff-template.test.mjs @@ -5691,6 +5691,100 @@ test('built-in video operations are locally ready and preserve multi-video infer assert.deepEqual(tiled.referenceVideos, ['first.mp4', 'second.mp4']); }); +test('ordinary generation with postprocessing retains the generator summary in either node order', () => { + const node = (id, module, action, params) => ({ + id, + type: 'custom', + position: { x: 0, y: 0 }, + data: { + module, + action, + params: Object.fromEntries(Object.entries(params).map(([key, value]) => [key, { value }])), + }, + }); + for (const [module, modelType, mode] of [ + ['modules.DiffusersVideo', 'LTXVideoPipeline', 'image_to_video'], + ['modules.DiffusersVideo', 'WanVACEPipeline', 'control_to_video'], + ['modules.DiffusersImage', 'StableDiffusionXLPipeline', 'text_to_image'], + ]) { + for (const processor of [ + node('upscale', 'modules.Spandrel', 'Upscaler', { device: 'cpu' }), + node('process', 'modules.Video', 'ProcessVideo', { operation: 'video_trim' }), + ]) { + const stages = [ + node('pipeline', module, 'LoadPipeline', { + model_type: modelType, + device: 'cuda:0', + dtype: 'bfloat16', + offload_mode: 'sequential_cpu', + auto_offload: true, + }), + node('encode', module, 'EncodeInputs', { mode, prompt: 'Keep the subject and camera movement.' }), + node('denoise', module, 'Denoise', { + mode, + width: 768, + height: 512, + num_frames: 81, + num_inference_steps: 8, + guidance_scale: 1, + seed: 8313, + }), + node('export', 'modules.Video', 'Export', { fps: 16 }), + ]; + for (const nodes of [ + [processor, ...stages], + [...stages, processor], + ]) { + const original = structuredClone(nodes); + const inferred = workflowInferenceModule.inferStudioFormFromWorkflow(nodes); + assert.equal(inferred.modelType, modelType); + assert.equal(inferred.mode, mode); + assert.equal(inferred.device, 'cuda:0'); + assert.equal(inferred.dtype, 'bfloat16'); + assert.equal(inferred.offloadMode, 'sequential_cpu'); + assert.equal(inferred.prompt, 'Keep the subject and camera movement.'); + assert.equal(inferred.steps, 8); + assert.equal(inferred.seed, 8313); + assert.equal(inferred.numFrames, 81); + assert.equal(inferred.fps, 16); + assert.deepEqual(nodes, original, 'Summary inference must not change executable node settings.'); + } + } + } +}); + +test('ordinary staged video uses the recognized loader repository when its class is not a Studio profile', () => { + const inferred = workflowInferenceModule.inferStudioFormFromWorkflow( + [ + { data: { module: 'modules.Spandrel', action: 'Upscaler', params: {} } }, + { + data: { + module: 'modules.DiffusersVideo', + action: 'LoadPipeline', + params: { + model_id: { + value: { source: 'hub', value: profilesModule.STUDIO_MODEL_PROFILES.LTXVideoPipeline.defaultRepo }, + }, + pipeline_class: { value: 'LTXConditionPipeline' }, + offload_mode: { value: 'sequential_cpu' }, + }, + }, + }, + { + data: { + module: 'modules.DiffusersVideo', + action: 'Denoise', + params: { mode: { value: 'image_to_video' } }, + }, + }, + ], + { ...profilesModule.DEFAULT_STUDIO_FORM, modelType: 'LTXVideoPipeline', mode: 'image_to_video' }, + ); + assert.equal(inferred.modelType, 'LTXVideoPipeline'); + assert.equal(inferred.mode, 'image_to_video'); + assert.equal(inferred.offloadMode, 'sequential_cpu'); +}); + test('Real-ESRGAN video upscale stays model-backed and infers the generic source-video contract', () => { const profile = profilesModule.STUDIO_MODEL_PROFILES.SpandrelVideoUpscale; const requirement = profilesModule.STUDIO_AUTO_MODEL_REQUIREMENTS.SpandrelVideoUpscale; diff --git a/src/studio/workflowInference.ts b/src/studio/workflowInference.ts index c2915a9f..746f56c7 100644 --- a/src/studio/workflowInference.ts +++ b/src/studio/workflowInference.ts @@ -296,7 +296,41 @@ export function adoptManagedWorkflowGraph( ); } +function isModelLoader(node: NodeLike) { + return ( + [ + 'models', + 'wanPipeline', + 'qwenPipeline', + 'qwenInpaintPipeline', + 'diffusersImagePipeline', + 'audioPipeline', + 'speechModel', + ].includes(String(node.data?.studioRole)) || + ['ModelsLoader', 'LoadPipeline', 'LoadInpaintPipeline', 'LoadSpeechRecognitionModel', 'LoadAnyToAnyModel'].includes( + String(node.data?.action), + ) + ); +} + +function declaredModelType(nodes: NodeLike[], fallback: StudioModelType) { + const explicit = nodes.map((node) => paramValue(node, ['model_type'])).find(isStudioModelType); + if (explicit) return explicit; + const pipelineClass = nodes.map((node) => paramValue(node, ['pipeline_class'])).find(isStudioModelType); + if (pipelineClass) return pipelineClass; + const repos = nodes.map((node) => stringValue(paramValue(node, ['repo_id', 'model_id', 'repo']))); + // Several execution profiles may share weights. Retain matching authored + // context rather than selecting a different profile from catalog order. + if (repos.includes(STUDIO_MODEL_PROFILES[fallback].defaultRepo)) return fallback; + return Object.values(STUDIO_MODEL_PROFILES).find((profile) => repos.includes(profile.defaultRepo))?.modelType; +} + function inferModelType(nodes: NodeLike[], fallback: StudioFormState): StudioModelType { + // A processing stage is not the generation model. Prefer the existing + // loader declarations before the standalone-operation fallbacks, independent + // of canvas order. This summary never changes the executable graph. + const loadedModel = declaredModelType(nodes.filter(isModelLoader), fallback.modelType); + if (loadedModel) return loadedModel; if (nodes.some((node) => node.data?.studioRole === 'dataOperation' || nodeKey(node) === 'modules.Text.ProcessText')) { return 'BuiltinDataOperation'; } @@ -327,20 +361,13 @@ function inferModelType(nodes: NodeLike[], fallback: StudioFormState): StudioMod ) { return 'SpandrelImageUpscale'; } - const explicit = nodes.map((node) => paramValue(node, ['model_type'])).find(isStudioModelType); - if (explicit) return explicit; - const pipelineClass = nodes.map((node) => paramValue(node, ['pipeline_class'])).find(isStudioModelType); - if (pipelineClass) return pipelineClass; - - const repoText = nodes.map((node) => stringValue(paramValue(node, ['repo_id', 'model_id', 'repo']))).join(' '); - const matchedProfile = Object.values(STUDIO_MODEL_PROFILES).find((profile) => repoText.includes(profile.defaultRepo)); - return matchedProfile?.modelType ?? fallback.modelType; + return declaredModelType(nodes, fallback.modelType) ?? fallback.modelType; } function inferMode(nodes: NodeLike[], modelType: StudioModelType, fallback: StudioFormState): StudioMode { const roles = new Set(nodes.map((node) => String(node.data?.studioRole ?? ''))); const keys = new Set(nodes.map(nodeKey)); - if (modelType === 'BuiltinDataOperation' || roles.has('dataOperation')) { + if (modelType === 'BuiltinDataOperation') { const operationNode = findNode( nodes, (node) => node.data?.studioRole === 'dataOperation' || nodeKey(node) === 'modules.Text.ProcessText', @@ -348,7 +375,7 @@ function inferMode(nodes: NodeLike[], modelType: StudioModelType, fallback: Stud const operation = stringValue(paramValue(operationNode, ['operation'])); return BUILTIN_DATA_OPERATION_MODES.includes(operation as StudioMode) ? (operation as StudioMode) : 'text_select'; } - if (modelType === 'BuiltinAudioOperation' || roles.has('audioOperation')) { + if (modelType === 'BuiltinAudioOperation') { const operationNode = findNode( nodes, (node) => node.data?.studioRole === 'audioOperation' || nodeKey(node) === 'modules.Audio.ProcessAudio', @@ -356,7 +383,7 @@ function inferMode(nodes: NodeLike[], modelType: StudioModelType, fallback: Stud const operation = stringValue(paramValue(operationNode, ['operation'])); return BUILTIN_AUDIO_OPERATION_MODES.includes(operation as StudioMode) ? (operation as StudioMode) : 'audio_trim'; } - if (modelType === 'BuiltinImageOperation' || roles.has('imageOperation')) { + if (modelType === 'BuiltinImageOperation') { const operationNode = findNode( nodes, (node) => node.data?.studioRole === 'imageOperation' || nodeKey(node) === 'modules.ImageOperations.ProcessImage', @@ -378,7 +405,7 @@ function inferMode(nodes: NodeLike[], modelType: StudioModelType, fallback: Stud } return 'image_adjustment'; } - if (modelType === 'BuiltinVideoOperation' || roles.has('videoOperation')) { + if (modelType === 'BuiltinVideoOperation') { const operationNode = findNode( nodes, (node) => node.data?.studioRole === 'videoOperation' || nodeKey(node) === 'modules.Video.ProcessVideo', @@ -389,10 +416,10 @@ function inferMode(nodes: NodeLike[], modelType: StudioModelType, fallback: Stud } return 'video_frame_extract'; } - if (modelType === 'SpandrelVideoUpscale' || roles.has('videoUpscaler')) { + if (modelType === 'SpandrelVideoUpscale') { return 'video_upscale'; } - if (modelType === 'SpandrelImageUpscale' || roles.has('imageUpscaler')) { + if (modelType === 'SpandrelImageUpscale') { return 'image_upscale'; } if ( @@ -404,6 +431,14 @@ function inferMode(nodes: NodeLike[], modelType: StudioModelType, fallback: Stud } const hasWan = keys.has('modules.DiffusersVideo.LoadPipeline') || keys.has('modules.DiffusersVideo.Generate'); if (hasWan || modelType === 'WanVACEPipeline') { + const authoredMode = nodes + .filter((node) => node.data?.module === 'modules.DiffusersVideo') + .map((node) => paramValue(node, ['mode'])) + .find( + (value): value is StudioMode => + typeof value === 'string' && isModelCompatibleWithMode(modelType, value as StudioMode), + ); + if (authoredMode) return authoredMode; if (roles.has('loadMaskVideo') || roles.has('alignMaskVideo')) return 'video_inpaint'; if (roles.has('loadVideo') && roles.has('loadControlVideo')) return 'control_video_to_video'; if (roles.has('loadControlVideo')) return 'control_to_video'; @@ -534,6 +569,7 @@ export function inferStudioFormFromWorkflow( ].includes(String(node.data?.studioRole)) || [ 'EncodePrompt', + 'EncodeInputs', 'Generate', 'UnconditionalGenerate', 'PredictMap', @@ -549,30 +585,14 @@ export function inferStudioFormFromWorkflow( ].includes(String(node.data?.action)), ); const denoiseNode = findNode(nodes, (node) => node.data?.studioRole === 'denoise' || node.data?.action === 'Denoise'); - const modelNode = findNode( - nodes, - (node) => - [ - 'models', - 'wanPipeline', - 'qwenPipeline', - 'qwenInpaintPipeline', - 'diffusersImagePipeline', - 'audioPipeline', - 'speechModel', - 'imageUpscaler', - 'videoUpscaler', - ].includes(String(node.data?.studioRole)) || - [ - 'ModelsLoader', - 'LoadPipeline', - 'LoadInpaintPipeline', - 'LoadSpeechRecognitionModel', - 'LoadAnyToAnyModel', - 'Upscaler', - 'UpscaleVideo', - ].includes(String(node.data?.action)), - ); + const modelNode = + findNode(nodes, isModelLoader) ?? + findNode( + nodes, + (node) => + ['imageUpscaler', 'videoUpscaler'].includes(String(node.data?.studioRole)) || + ['Upscaler', 'UpscaleVideo'].includes(String(node.data?.action)), + ); const quantizationNode = findNode( nodes, (node) => node.data?.studioRole === 'qwenQuantization' || node.data?.action === 'QuantizationConfigNode', @@ -598,6 +618,7 @@ export function inferStudioFormFromWorkflow( ].includes(String(node.data?.studioRole)) || [ 'Generate', + 'Denoise', 'UnconditionalGenerate', 'PredictMap', 'Inpaint', @@ -741,7 +762,7 @@ export function inferStudioFormFromWorkflow( numFrames: numberValue(paramValue(generateNode, ['num_frames']), defaults.numFrames), fps: numberValue( paramValue( - findNode(nodes, (node) => node.data?.studioRole === 'videoExport'), + findNode(nodes, (node) => node.data?.studioRole === 'videoExport' || nodeKey(node) === 'modules.Video.Export'), ['fps'], ) ?? paramValue(videoUpscaleNode, ['fps']), defaults.fps, diff --git a/tests/e2e/studio-mocked/studio-mocked.spec.ts b/tests/e2e/studio-mocked/studio-mocked.spec.ts index 7fc80f1e..c3dd348f 100644 --- a/tests/e2e/studio-mocked/studio-mocked.spec.ts +++ b/tests/e2e/studio-mocked/studio-mocked.spec.ts @@ -92,127 +92,144 @@ test('normal video template card creates real stages and preserves them after re expect(await page.evaluate(() => window.__MODIFF_E2E__!.getState().studio.graphBinding)).toBeNull(); }); -test('Klein Automatic workflow import and saved reload preserve group offload and the exact graph', async ({ - page, -}) => { - const templateId = 'flux2_klein_multi_reference'; - const selection = IMAGE_TEMPLATE_EXECUTION_SELECTIONS[templateId]!; - const fixture = await generateTemplateSchemas([{ id: templateId, selection }], true); - await ensureFrontend(); - await installMockRoutes(page); - await page.route('**/nodes**', (route) => - route.fulfill({ json: { instance: 'mock', nodes: { ...mockRegistry, ...fixture.registry } } }), - ); - await page.route('**/model_capabilities**', (route) => route.fulfill({ json: fixture.publicPayload })); - let graphPosts = 0; - page.on('request', (request) => { - if (request.method() === 'POST' && new URL(request.url()).pathname === '/graph') graphPosts++; - }); - await page.goto(FRONTEND_URL, { waitUntil: 'domcontentloaded' }); - await page.waitForFunction(() => Boolean(window.__MODIFF_E2E__?.getState().studio.workflowCanvasHydrated)); - await dismissTaskLauncher(page); - const prepared = await page.evaluate( - async ({ fixture, templateId }) => { - const [ - { STUDIO_TEMPLATES }, - { getFormDefaultsForMode }, - { getTemplateLockedSettings }, - builder, - packages, - contracts, - starters, - ] = await Promise.all([ - import('/src/studio/templates.ts'), - import('/src/studio/modelProfiles.ts'), - import('/src/studio/templateExactness.ts'), - import('/src/studio/templateOperationWorkflow.ts'), - import('/src/studio/workflowPackage.ts'), - import('/src/workflow/operationContracts.ts'), - import('/src/workflow/operationStarterRequest.ts'), - ]); - const template = STUDIO_TEMPLATES.find((entry) => entry.id === templateId)!; - const recipe = fixture.recipes[0]!; - const parsedContracts = contracts.parseOperationContracts( - fixture.publicPayload.operationContracts, - fixture.publicPayload.operationContractSchemaVersion, - ); - const starter = starters.parseOperationStarter( - recipe.starter, - recipe.starter.pipelineClass, - recipe.starter.task, - parsedContracts, - template.executionSelection, - ); - const form = { - ...getFormDefaultsForMode(template.mode, template.modelType), - ...getTemplateLockedSettings(template), - device: 'cuda:0', - }; - const graph = builder.createTemplateOperationGraph( - template, - form, - starter, - fixture.registry, - recipe.spec, - fixture.capabilities.find((entry) => entry.modelType === template.modelType), - ); - const exporter = await import('/src/stores/flowGraphExport.ts'); - const api = exporter.buildApiGraphExport({ - nodes: graph.nodes, - edges: graph.edges, - sid: 'automatic-form-preservation', - randomizeSeeds: false, - setParam: () => { - throw new Error('Export cannot mutate the authored graph.'); - }, +for (const { title, templateId, resourceMode, offloadMode } of [ + { + title: 'Klein Automatic', + templateId: 'flux2_klein_multi_reference', + resourceMode: 'auto', + offloadMode: 'group_cpu', + }, + { + title: 'staged LTX with upscaler', + templateId: 'ltx_video_image_to_video', + resourceMode: 'expert', + offloadMode: 'sequential_cpu', + }, +] as const) + test(`${title} workflow import and saved reload preserve the model, task, memory and exact graph`, async ({ + page, + }) => { + const selection = { ...IMAGE_TEMPLATE_EXECUTION_SELECTIONS, ...VIDEO_TEMPLATE_EXECUTION_SELECTIONS }[templateId]!; + const fixture = await generateTemplateSchemas([{ id: templateId, selection }], true); + await ensureFrontend(); + await installMockRoutes(page); + await page.route('**/nodes**', (route) => + route.fulfill({ json: { instance: 'mock', nodes: { ...mockRegistry, ...fixture.registry } } }), + ); + await page.route('**/model_capabilities**', (route) => route.fulfill({ json: fixture.publicPayload })); + let graphPosts = 0; + page.on('request', (request) => { + if (request.method() === 'POST' && new URL(request.url()).pathname === '/graph') graphPosts++; + }); + await page.goto(FRONTEND_URL, { waitUntil: 'domcontentloaded' }); + await page.waitForFunction(() => Boolean(window.__MODIFF_E2E__?.getState().studio.workflowCanvasHydrated)); + await dismissTaskLauncher(page); + const prepared = await page.evaluate( + async ({ fixture, templateId, resourceMode, offloadMode }) => { + const [ + { STUDIO_TEMPLATES }, + { getFormDefaultsForMode }, + { getTemplateLockedSettings }, + builder, + packages, + contracts, + starters, + ] = await Promise.all([ + import('/src/studio/templates.ts'), + import('/src/studio/modelProfiles.ts'), + import('/src/studio/templateExactness.ts'), + import('/src/studio/templateOperationWorkflow.ts'), + import('/src/studio/workflowPackage.ts'), + import('/src/workflow/operationContracts.ts'), + import('/src/workflow/operationStarterRequest.ts'), + ]); + const template = STUDIO_TEMPLATES.find((entry) => entry.id === templateId)!; + const recipe = fixture.recipes[0]!; + const parsedContracts = contracts.parseOperationContracts( + fixture.publicPayload.operationContracts, + fixture.publicPayload.operationContractSchemaVersion, + ); + const starter = starters.parseOperationStarter( + recipe.starter, + recipe.starter.pipelineClass, + recipe.starter.task, + parsedContracts, + template.executionSelection, + ); + const form = { + ...getFormDefaultsForMode(template.mode, template.modelType), + ...getTemplateLockedSettings(template), + device: 'cuda:0', + resourceMode, + offloadMode, + }; + const graph = builder.createTemplateOperationGraph( + template, + form, + starter, + fixture.registry, + recipe.spec, + fixture.capabilities.find((entry) => entry.modelType === template.modelType), + ); + const exporter = await import('/src/stores/flowGraphExport.ts'); + const api = exporter.buildApiGraphExport({ + nodes: graph.nodes, + edges: graph.edges, + sid: 'automatic-form-preservation', + randomizeSeeds: false, + setParam: () => { + throw new Error('Export cannot mutate the authored graph.'); + }, + }); + return { form, api, packageData: packages.buildWorkflowPackage({ form, graph }) }; + }, + { fixture, templateId, resourceMode, offloadMode }, + ); + expect(prepared.form.resourceMode).toBe(resourceMode); + expect(prepared.form.offloadMode).toBe(offloadMode); + await page.getByTestId('topbar-gallery').click(); + await page.getByTestId('gallery-import-workflow-input').setInputFiles({ + name: `${templateId}.workflow.json`, + mimeType: 'application/json', + buffer: Buffer.from(JSON.stringify(prepared.packageData), 'utf8'), + }); + await expect(page.getByRole('dialog', { name: 'Output Gallery', exact: true })).toBeHidden(); + const read = () => + page.evaluate(async () => { + const state = window.__MODIFF_E2E__!.getState(); + const exporter = await import('/src/stores/flowGraphExport.ts'); + const graph = window.__MODIFF_E2E__!.exportWorkflowGraph() as Parameters< + typeof exporter.buildApiGraphExport + >[0]; + const api = exporter.buildApiGraphExport({ + ...graph, + sid: 'automatic-form-preservation', + randomizeSeeds: false, + setParam: () => { + throw new Error('Inspection cannot mutate the visible graph.'); + }, + }); + return { form: state.studio.form, api }; }); - return { form, api, packageData: packages.buildWorkflowPackage({ form, graph }) }; - }, - { fixture, templateId }, - ); - expect(prepared.form.resourceMode).toBe('auto'); - expect(prepared.form.offloadMode).toBe('group_cpu'); - await page.getByTestId('topbar-gallery').click(); - await page.getByTestId('gallery-import-workflow-input').setInputFiles({ - name: 'klein-authored-automatic.workflow.json', - mimeType: 'application/json', - buffer: Buffer.from(JSON.stringify(prepared.packageData), 'utf8'), + await expect.poll(async () => (await read()).form).toEqual(prepared.form); + const before = await read(); + expect(before.api).toEqual(prepared.api); + await page.getByTestId('topbar-save-workflow-options').click(); + await page.getByTestId('topbar-save-workflow-as').click(); + await page.getByTestId('save-workflow-name').fill(`Authored ${title}`); + await page.getByTestId('confirm-save-workflow').click(); + await expect(page.getByTestId('save-workflow-dialog')).toHaveCount(0); + await page.reload({ waitUntil: 'domcontentloaded' }); + await page.waitForFunction(() => Boolean(window.__MODIFF_E2E__?.getState().studio.workflowCanvasHydrated)); + await expect(page.getByRole('tab', { name: `Authored ${title}`, exact: true })).toHaveAttribute( + 'aria-selected', + 'true', + ); + await expect.poll(async () => (await read()).form).toEqual(prepared.form); + const after = await read(); + expect(after.api).toEqual(before.api); + expect(graphPosts).toBe(0); }); - await expect(page.getByRole('dialog', { name: 'Output Gallery', exact: true })).toBeHidden(); - const read = () => - page.evaluate(async () => { - const state = window.__MODIFF_E2E__!.getState(); - const exporter = await import('/src/stores/flowGraphExport.ts'); - const graph = window.__MODIFF_E2E__!.exportWorkflowGraph() as Parameters[0]; - const api = exporter.buildApiGraphExport({ - ...graph, - sid: 'automatic-form-preservation', - randomizeSeeds: false, - setParam: () => { - throw new Error('Inspection cannot mutate the visible graph.'); - }, - }); - return { form: state.studio.form, api }; - }); - await expect.poll(async () => (await read()).form).toEqual(prepared.form); - const before = await read(); - expect(before.api).toEqual(prepared.api); - await page.getByTestId('topbar-save-workflow-options').click(); - await page.getByTestId('topbar-save-workflow-as').click(); - await page.getByTestId('save-workflow-name').fill('Authored Klein group offload'); - await page.getByTestId('confirm-save-workflow').click(); - await expect(page.getByTestId('save-workflow-dialog')).toHaveCount(0); - await page.reload({ waitUntil: 'domcontentloaded' }); - await page.waitForFunction(() => Boolean(window.__MODIFF_E2E__?.getState().studio.workflowCanvasHydrated)); - await expect(page.getByRole('tab', { name: 'Authored Klein group offload', exact: true })).toHaveAttribute( - 'aria-selected', - 'true', - ); - await expect.poll(async () => (await read()).form).toEqual(prepared.form); - const after = await read(); - expect(after.api).toEqual(before.api); - expect(graphPosts).toBe(0); -}); test('normal Pika task creation joins video and audio and preserves the workflow after reload', async ({ page }) => { const pipelineClass = 'PikaH3FlexModularPipeline'; From 9760be6bce462e8be3523859d51f01aed0331380 Mon Sep 17 00:00:00 2001 From: Sourav Das Date: Thu, 5 Nov 2026 13:14:54 +0530 Subject: [PATCH 188/440] Account for measured generator-summary bundle growth --- scripts/bundle-budget.mjs | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/scripts/bundle-budget.mjs b/scripts/bundle-budget.mjs index e2dbace6..973ea45d 100644 --- a/scripts/bundle-budget.mjs +++ b/scripts/bundle-budget.mjs @@ -1,3 +1,9 @@ +// Generator-first import summaries measure largest/startup/deferred gzip +// 496684/675171/330491 against E129's 496585/675069/330324. Only +// studio-templates.js changes after immutable import-URL normalization; all +// 94 JavaScript names and four startup/90 deferred memberships remain exact. +// Add only the measured 99/102 startup bytes, retaining 4/11-byte headroom. +// Both deferred caps, dependencies, minifier and loading rules stay unchanged. // Fresh lyric composites share their actual node/edge construction with managed // recipes. Largest/startup/deferred gzip is 496585/675069/330324 against the // accepted D77 496579/675066/329724. Keep both startup limits and the 64 KiB @@ -342,6 +348,7 @@ const SOURCE_LICENSES = new URL('../public/THIRD_PARTY_LICENSES.txt', import.met // Scoped video receipts and compatible adapter messaging measure 494870 bytes // in the largest startup asset (+46 over the cap). Add 64 bytes, no dependencies. const MAX_STARTUP_CHUNK_GZIP_BYTES = + 99 + 82 + 235 + 39 + @@ -487,6 +494,7 @@ const MAX_STARTUP_CHUNK_GZIP_BYTES = // The same build measures 673359 aggregate startup bytes (+45 over the cap). // Keep 19 bytes of headroom; deferred limits and loading boundaries stay fixed. const MAX_STARTUP_GZIP_BYTES = + 102 + 83 + 236 + 38 + From 3f91f9c04bcef5d633552524befac0561e6fb669 Mon Sep 17 00:00:00 2001 From: Sourav Das Date: Fri, 6 Nov 2026 04:45:04 +0530 Subject: [PATCH 189/440] Recognize declared visible outputs after node rename --- docs/modiff-client-architecture.md | 6 + package.json | 2 +- .../graph-visible-output-readiness.test.mjs | 118 ++++++++++++++++++ src/studio/runReadiness.ts | 12 ++ tests/e2e/studio-mocked/studio-mocked.spec.ts | 77 ++++++++++++ 5 files changed, 214 insertions(+), 1 deletion(-) create mode 100644 scripts/graph-visible-output-readiness.test.mjs diff --git a/docs/modiff-client-architecture.md b/docs/modiff-client-architecture.md index 33487cd4..d402d150 100644 --- a/docs/modiff-client-architecture.md +++ b/docs/modiff-client-architecture.md @@ -43,6 +43,12 @@ inventing another node or changing the graph. Optional selectors remain optional This checks input presence, not filesystem access or decoding; backend boundaries remain authoritative. +For ordinary graphs, a declared media or text preview linked by `dataSource` to +an output port establishes a visible output even after its node label changes. +Input-backed players and label widgets do not establish an output. The existing +connection, required-input, disabled-node and resource checks still apply; +recognizing a preview does not authorize execution or qualify its result. + The backend may use official model libraries maintained and published by Hugging Face, but the client remains runtime-agnostic. It renders backend-declared task inputs, parameters, outputs, missing optional runtimes, and readiness instead of selecting library classes or maintaining model-specific execution branches. The browser never loads a model runtime or invokes a hosted inference provider. ## Technology diff --git a/package.json b/package.json index 97f47887..7965da57 100644 --- a/package.json +++ b/package.json @@ -77,7 +77,7 @@ "test:legacy-cluster-recovery-audit": "node --test scripts/legacy-cluster-recovery-audit.test.mjs", "test:composite-block-capabilities-v2": "node --test scripts/composite-block-capabilities-v2.test.mjs", "test:registered-block-v2-adapter": "node --test scripts/wan-video-boundary.test.mjs scripts/registered-block-v2-adapter.test.mjs scripts/registered-block-v2-insertion.test.mjs scripts/registered-block-v2-route-audit.test.mjs", - "test:graph-export": "node --test scripts/flow-graph-export.test.mjs", + "test:graph-export": "node --test scripts/flow-graph-export.test.mjs scripts/graph-visible-output-readiness.test.mjs", "test:hugging-face-cluster-drag": "node --test scripts/hugging-face-cluster-drag.test.mjs", "test:hugging-face-node-library": "node --test scripts/hugging-face-node-library.test.mjs scripts/hugging-face-source-supplements.test.mjs", "test:templates": "node --test scripts/modiff-template.test.mjs scripts/template-operation-workflows.test.mjs scripts/image-full-native-template-candidates.test.mjs scripts/image-model-usage-policies.test.mjs scripts/workflow-library-dependency-contracts.test.mjs scripts/workflow-library-canonical-export.test.mjs scripts/workflow-library-image-stages.test.mjs scripts/weight-format-template-binding.test.mjs scripts/flux3-public-template-planning.test.mjs", diff --git a/scripts/graph-visible-output-readiness.test.mjs b/scripts/graph-visible-output-readiness.test.mjs new file mode 100644 index 00000000..331cad8c --- /dev/null +++ b/scripts/graph-visible-output-readiness.test.mjs @@ -0,0 +1,118 @@ +import assert from 'node:assert/strict'; +import { after, before, beforeEach, test } from 'node:test'; +import { createServer } from 'vite'; + +let server, flow, readiness; +before(async () => { + const storage = new Map(); + globalThis.localStorage = { + getItem: (key) => storage.get(key) ?? null, + setItem: (key, value) => storage.set(key, String(value)), + removeItem: (key) => storage.delete(key), + }; + globalThis.window = { + localStorage, + sessionStorage: localStorage, + dispatchEvent: () => true, + location: { origin: 'http://127.0.0.1:5191' }, + }; + server = await createServer({ + configFile: false, + logLevel: 'silent', + optimizeDeps: { entries: [], noDiscovery: true }, + server: { middlewareMode: true, watch: null }, + appType: 'custom', + }); + ({ useFlowStore: flow } = await server.ssrLoadModule('/src/stores/useFlowStore.ts')); + readiness = await server.ssrLoadModule('/src/studio/runReadiness.ts'); +}); +after(async () => server?.close()); +beforeEach(() => flow.getState().replaceGraph({ nodes: [], edges: [] })); + +function graph(display = 'ui_video', source = 'file') { + return { + nodes: [ + { + id: 'frames', + type: 'custom', + position: { x: 0, y: 0 }, + data: { + module: 'modules.Video', + action: 'Load', + label: 'Scene', + type: 'custom', + params: { + file: { display: 'filebrowser', type: 'str', value: ['@data/videos/scene.mp4'] }, + video: { display: 'output', type: 'video' }, + }, + }, + }, + { + id: 'film', + type: 'custom', + position: { x: 300, y: 0 }, + data: { + module: 'modules.Video', + action: 'ExportWithAudio', + label: 'Moonflower photographic film', + category: 'Video', + type: 'custom', + params: { + video: { display: 'input', type: 'video' }, + preview: { display, type: 'url', dataSource: source }, + file: { display: 'output', type: 'video' }, + }, + }, + }, + ], + edges: [{ id: 'frames-film', source: 'frames', sourceHandle: 'video', target: 'film', targetHandle: 'video' }], + }; +} + +function structuralIssues() { + return readiness + .collectRunReadinessIssues({ sid: 'unit-session', isConnected: true, includeStudio: false }) + .filter((issue) => ['graph_output_missing', 'graph_output_disconnected'].includes(issue.code)); +} + +test('a renamed video-with-audio exporter retains its declared visible output', () => { + const original = graph(); + flow.getState().replaceGraph(original); + const before = structuredClone(flow.getState().toObject()); + const inspection = readiness.inspectCurrentGraph(); + assert.deepEqual(inspection.connectedOutputNodeIds, ['film']); + assert.equal(inspection.outputPathCount, 1); + assert.deepEqual(structuralIssues(), []); + assert.deepEqual(flow.getState().toObject(), before, 'Readiness must not repair or relabel the saved graph.'); +}); + +test('declared media and text previews do not depend on a node label or action spelling', () => { + for (const display of ['ui_image', 'ui_video', 'ui_audio', 'ui_text', 'ui_imagecompare']) { + const current = graph(display); + current.nodes[1].data.module = 'modules.Utility'; + current.nodes[1].data.action = 'Bake'; + flow.getState().replaceGraph(current); + assert.deepEqual(readiness.inspectCurrentGraph().connectedOutputNodeIds, ['film'], display); + } +}); + +test('an input-backed widget or unknown preview source does not invent an output', () => { + for (const source of ['video', 'absent', '']) { + flow.getState().replaceGraph(graph('ui_video', source)); + assert.deepEqual(readiness.inspectCurrentGraph().outputNodeIds, [], source); + assert.equal(structuralIssues()[0]?.code, 'graph_output_missing'); + } + flow.getState().replaceGraph(graph('ui_label')); + assert.deepEqual(readiness.inspectCurrentGraph().outputNodeIds, []); +}); + +test('disabled and disconnected declared outputs still block Run', () => { + const disconnected = graph(); + disconnected.edges = []; + flow.getState().replaceGraph(disconnected); + assert.equal(structuralIssues()[0]?.code, 'graph_output_disconnected'); + const disabled = graph(); + disabled.nodes[1].data.uiState = { disabled: true }; + flow.getState().replaceGraph(disabled); + assert.equal(structuralIssues()[0]?.code, 'graph_output_missing'); +}); diff --git a/src/studio/runReadiness.ts b/src/studio/runReadiness.ts index 841524f3..3c4b397d 100644 --- a/src/studio/runReadiness.ts +++ b/src/studio/runReadiness.ts @@ -1034,8 +1034,20 @@ function enabledExecutableNodes(graph = executableFlowGraph()) { } function isOutputLikeNode(node: ReturnType[number]) { + // Labels are editable, and compound actions need not contain a word boundary + // after "Export". The declared preview must read an actual output port; + // an input player or a label widget alone does not establish an output. + const params = node.data.params; + const hasDeclaredPreview = Object.values(params).some( + (param) => + ['ui_image', 'ui_video', 'ui_audio', 'ui_text', 'ui_imagecompare'].includes(param.display ?? '') && + typeof param.dataSource === 'string' && + Object.prototype.hasOwnProperty.call(params, param.dataSource) && + params[param.dataSource]?.display === 'output', + ); const text = `${node.data.module} ${node.data.action} ${node.data.label} ${node.data.category}`.toLowerCase(); return ( + hasDeclaredPreview || /\b(preview|export|save|display|output|gallery)\b|viewer\b/.test(text) || /\.preview\b/i.test(`${node.data.module}.${node.data.action}`) || /\.export\b/i.test(`${node.data.module}.${node.data.action}`) diff --git a/tests/e2e/studio-mocked/studio-mocked.spec.ts b/tests/e2e/studio-mocked/studio-mocked.spec.ts index c3dd348f..8d457fcc 100644 --- a/tests/e2e/studio-mocked/studio-mocked.spec.ts +++ b/tests/e2e/studio-mocked/studio-mocked.spec.ts @@ -25,6 +25,83 @@ import type { OperationContract } from '../../../src/workflow/operationContracts import type { PipelineSupport } from '../../../src/workflow/operationCatalog'; import type { ApiGraphExport } from '../../../src/types/api'; +test('renamed declared video output stays runnable after ordinary import Save and reload', async ({ page }) => { + const fixture = await generateTemplateSchemas([]); + await ensureFrontend(); + await installMockRoutes(page); + await page.route('**/media/preview?**', (route) => route.fulfill({ contentType: 'video/mp4', body: '' })); + await page.route('**/nodes**', (route) => + route.fulfill({ json: { instance: 'mock', nodes: { ...mockRegistry, ...fixture.registry } } }), + ); + let submissions = 0; + page.on('request', (request) => { + if (request.method() === 'POST' && new URL(request.url()).pathname === '/graph') submissions++; + }); + await page.goto(FRONTEND_URL, { waitUntil: 'domcontentloaded' }); + await page.waitForFunction(() => Boolean(window.__MODIFF_E2E__?.getState().studio.workflowCanvasHydrated)); + await dismissTaskLauncher(page); + const prepared = await page.evaluate(async (registry) => { + const [{ createNodeFromRegistry }, { getFormDefaultsForMode }, { buildWorkflowPackage }] = await Promise.all([ + import('/src/workflow/nodeFactory.ts'), + import('/src/studio/modelProfiles.ts'), + import('/src/studio/workflowPackage.ts'), + ]); + const video = createNodeFromRegistry('modules.Video.Load', registry, { x: 0, y: 0 })!; + const audio = createNodeFromRegistry('modules.Audio.Load', registry, { x: 0, y: 350 })!; + const film = createNodeFromRegistry('modules.Video.ExportWithAudio', registry, { x: 500, y: 0 })!; + video.data.params.file!.value = ['@data/videos/scene.mp4']; + audio.data.params.file!.value = ['@data/audio/song.wav']; + film.data.label = 'Moonflower photographic film'; + const graph = { + nodes: [video, audio, film], + edges: [ + { id: 'video-film', source: video.id, sourceHandle: 'video', target: film.id, targetHandle: 'video' }, + { id: 'audio-film', source: audio.id, sourceHandle: 'filename', target: film.id, targetHandle: 'audio' }, + ], + }; + const form = { + ...getFormDefaultsForMode('video_stitch', 'BuiltinVideoOperation'), + resourceMode: 'expert' as const, + device: 'cpu', + autoOffload: false, + offloadMode: 'none' as const, + }; + return { packageData: buildWorkflowPackage({ form, graph }), videoId: video.id, filmId: film.id }; + }, fixture.registry); + await page.getByTestId('topbar-gallery').click(); + await page.getByTestId('gallery-import-workflow-input').setInputFiles({ + name: 'renamed-film.workflow.json', + mimeType: 'application/json', + buffer: Buffer.from(JSON.stringify(prepared.packageData)), + }); + await expect(page.getByRole('dialog', { name: 'Output Gallery', exact: true })).toBeHidden(); + await page.evaluate(() => window.__MODIFF_E2E__!.setWebsocketConnection({ sid: 'mock-sid', isConnected: true })); + await expect(page.getByTestId('studio-run')).toBeEnabled(); + const read = () => page.evaluate(() => window.__MODIFF_E2E__!.exportWorkflowGraph()); + const before = await read(); + await page.getByTestId('topbar-save-workflow-options').click(); + await page.getByTestId('topbar-save-workflow-as').click(); + await page.getByTestId('save-workflow-name').fill('Renamed visible output'); + await page.getByTestId('confirm-save-workflow').click(); + await expect(page.getByTestId('save-workflow-dialog')).toHaveCount(0); + await page.reload({ waitUntil: 'domcontentloaded' }); + await page.waitForFunction(() => Boolean(window.__MODIFF_E2E__?.getState().studio.workflowCanvasHydrated)); + await page.evaluate(() => window.__MODIFF_E2E__!.setWebsocketConnection({ sid: 'mock-sid', isConnected: true })); + await expect(page.getByRole('tab', { name: 'Renamed visible output', exact: true })).toHaveAttribute( + 'aria-selected', + 'true', + ); + await expect.poll(read).toEqual(before); + await expect(page.getByTestId('studio-run')).toBeEnabled(); + const summary = await page.evaluate(() => window.__MODIFF_E2E__!.inspectCurrentGraph()); + expect(summary.connectedOutputNodeIds).toEqual([prepared.filmId]); + const input = page.locator(`[data-id="${prepared.videoId}"] [data-key="file"] input[type="text"]`); + await input.fill(''); + await input.blur(); + await expect(page.getByTestId('studio-run')).toBeDisabled(); + expect(submissions).toBe(0); +}); + test('normal video template card creates real stages and preserves them after reload', async ({ page }) => { const templateId = 'ltx_video_text_to_video'; const selection = VIDEO_TEMPLATE_EXECUTION_SELECTIONS[templateId]!; From 5817c7101904091ecb83705aba45ad7d2e205729 Mon Sep 17 00:00:00 2001 From: Sourav Das Date: Fri, 6 Nov 2026 04:56:20 +0530 Subject: [PATCH 190/440] Account for measured visible-output readiness bundle cost --- scripts/bundle-budget.mjs | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/scripts/bundle-budget.mjs b/scripts/bundle-budget.mjs index 973ea45d..a9ceefa7 100644 --- a/scripts/bundle-budget.mjs +++ b/scripts/bundle-budget.mjs @@ -1,3 +1,9 @@ +// Declared output readiness measures largest/startup/deferred gzip +// 496790/675278/330510 against 9760's 496684/675171/330491. Only +// studio-templates.js changes after immutable URL normalization; all119 assets, +// 94 JavaScript names and four startup/90 deferred memberships remain exact. +// Add only measured106/107 startup bytes, retaining4/11 bytes of headroom. +// Deferred caps, dependencies, minifier, loading rules and model guards stay fixed. // Generator-first import summaries measure largest/startup/deferred gzip // 496684/675171/330491 against E129's 496585/675069/330324. Only // studio-templates.js changes after immutable import-URL normalization; all @@ -348,6 +354,7 @@ const SOURCE_LICENSES = new URL('../public/THIRD_PARTY_LICENSES.txt', import.met // Scoped video receipts and compatible adapter messaging measure 494870 bytes // in the largest startup asset (+46 over the cap). Add 64 bytes, no dependencies. const MAX_STARTUP_CHUNK_GZIP_BYTES = + 106 + 99 + 82 + 235 + @@ -494,6 +501,7 @@ const MAX_STARTUP_CHUNK_GZIP_BYTES = // The same build measures 673359 aggregate startup bytes (+45 over the cap). // Keep 19 bytes of headroom; deferred limits and loading boundaries stay fixed. const MAX_STARTUP_GZIP_BYTES = + 107 + 102 + 83 + 236 + From f84e7cdb82025aab85f0fcf71b99478bd21ce3b4 Mon Sep 17 00:00:00 2001 From: Sourav Das Date: Fri, 6 Nov 2026 06:43:05 +0530 Subject: [PATCH 191/440] Keep late-loaded input videos within stable preview frames --- docs/modiff-client-architecture.md | 6 + src/fields/FileBrowserField.tsx | 6 +- .../studio-mocked/mediaInputPreviewFixture.ts | 50 ++++ tests/e2e/studio-mocked/studio-mocked.spec.ts | 225 ++++++++++++++++++ 4 files changed, 285 insertions(+), 2 deletions(-) create mode 100644 tests/e2e/studio-mocked/mediaInputPreviewFixture.ts diff --git a/docs/modiff-client-architecture.md b/docs/modiff-client-architecture.md index d402d150..807beb0d 100644 --- a/docs/modiff-client-architecture.md +++ b/docs/modiff-client-architecture.md @@ -2029,3 +2029,9 @@ Existing browser URLs and bundled public assets retain their normal handling. Both scalar and picker-array selections project without rewriting saved params; clearing the selection also clears stale output-backed input previews on reload. Audio references selected from AV files use the backend's soundtrack conversion. + +Video file-picker previews reserve a bounded landscape frame before metadata +loads. Portrait clips remain fully visible inside that frame through +`object-contain`; their intrinsic dimensions cannot enlarge an arranged node and +cover neighbouring controls. This display sizing does not change the source +file, authored node positions, wires or saved execution parameters. diff --git a/src/fields/FileBrowserField.tsx b/src/fields/FileBrowserField.tsx index 0668a8de..1c79eaee 100644 --- a/src/fields/FileBrowserField.tsx +++ b/src/fields/FileBrowserField.tsx @@ -258,7 +258,7 @@ export default function FileBrowserField(props: FieldProps) { ) : null} {displayValue && displayValue.length > 0 ? ( displayValue.map((file: string, index: number) => ( -
+
{isImage(file) ? ( ) : isVideo(file) ? (
-
+
+ {item.action === 'edit_studio_field' && item.fieldId && ( + } + disabled={!issueScopeCurrent} + onClick={() => { + openStudio(); + focusIssueTarget({ kind: 'studio', fieldId: item.fieldId! }); + }} + > + {item.fieldId === 'mode' + ? 'Choose supported task' + : item.fieldId === 'modelType' + ? 'Choose supported model' + : 'Edit setting'} + + )} + {item.action === 'open_resources' && ( + } + disabled={!issueScopeCurrent} + onClick={() => { + setRightPanelOpen(true); + setRightPanelTab('compatibility'); + focusIssueTarget({ kind: 'resources' }); + closeIssues(); + }} + > + Review Auto options + + )} {item.action === 'install_model' && item.repoId && ( } onClick={() => { void handleInstall(item); @@ -309,6 +377,7 @@ export default function RunIssuesDialog() { {item.action === 'refresh_cache' && ( } + disabled={!issueScopeCurrent} onClick={() => { void handleRefresh(); }} @@ -317,18 +386,26 @@ export default function RunIssuesDialog() { )} {item.action === 'select_image' && ( - } onClick={openStudio}> + } disabled={!issueScopeCurrent} onClick={openStudio}> Open Studio inputs )} {item.action === 'inspect_node' && ( - } onClick={() => inspectNode(item.nodeId, 'issues')}> + } + disabled={!issueScopeCurrent} + onClick={() => { + inspectNode(item.nodeId, 'issues'); + if (item.nodeId) focusIssueTarget({ kind: 'node', nodeId: item.nodeId, fieldId: item.fieldId }); + }} + > {item.nodeId ? 'Inspect node' : 'Inspect graph'} )} {item.action === 'detach_graph' && ( } + disabled={!issueScopeCurrent} onClick={() => { detachManagedGraph(); closeIssues(); @@ -338,23 +415,47 @@ export default function RunIssuesDialog() { )} {item.action === 'open_model_manager' && ( - } onClick={openModelManager}> + } + disabled={!issueScopeCurrent} + onClick={openModelManager} + > Models )} {item.action === 'apply_low_vram_preset' && ( - } onClick={applyLowVramPreset}> + } + disabled={!issueScopeCurrent} + onClick={applyLowVramPreset} + > Use low-VRAM preset )} {item.action === 'switch_to_z_image' && ( - } onClick={switchToZImage}> + } + disabled={!issueScopeCurrent} + onClick={switchToZImage} + > Use Z-Image Turbo )} {(item.action === 'open_setup' || item.action === 'install_model') && ( - } onClick={openSetup}> - Setup + } + disabled={!issueScopeCurrent} + onClick={() => { + openSetup(); + if (item.runtimeProfileIds) + focusIssueTarget({ kind: 'runtime', profileIds: item.runtimeProfileIds }); + }} + > + {item.runtimeProfileIds ? 'Review runtime' : 'Setup'} )}
diff --git a/src/components/RuntimeOptimizationsCard.tsx b/src/components/RuntimeOptimizationsCard.tsx index 8a5596bb..0a8dac23 100644 --- a/src/components/RuntimeOptimizationsCard.tsx +++ b/src/components/RuntimeOptimizationsCard.tsx @@ -13,6 +13,7 @@ import { import { optionalRuntimePollingFailure, type OptionalRuntimePollingFailure } from '../studio/optionalRuntimePolling'; import { formatRequestError, requestJson } from '../utils/requestJson'; import { enqueueSnackbar, ModiffButton, ModiffDisclosure } from '../ui'; +import { useRunRecoveryFocus } from '../studio/useRunRecoveryFocus'; import { parseOptimizationCatalog, parseOptimizationMutationResponse, @@ -59,6 +60,7 @@ function optionalRuntimeTarget(profile: OptionalRuntimeProfileStatus) { } export default function RuntimeOptimizationsCard() { + const recoveryFocusRef = useRunRecoveryFocus('runtime'); const optionalRuntimeCatalog = useNodesStore((state) => state.optionalRuntimeCatalog); const optionalRuntimeRequest = useNodesStore((state) => state.discoveryRequests.optionalRuntimes); const fetchOptionalRuntimes = useNodesStore((state) => state.fetchOptionalRuntimes); @@ -279,7 +281,13 @@ export default function RuntimeOptimizationsCard() { const runtimeBusy = runtimeJob !== null && !['ready', 'failed', 'cancelled'].includes(runtimeJob.status); return ( -
+
Optional runtimes {optionalRuntimeRequest.status === 'success' && @@ -352,6 +360,8 @@ export default function RuntimeOptimizationsCard() { key={profile.id} className="grid gap-1 text-xs text-modiff-text" data-testid={`optional-runtime-${profile.id}`} + data-run-recovery-profile={profile.id} + tabIndex={-1} > {profile.label} ({optionalRuntimeTarget(profile)}):{' '} diff --git a/src/components/StudioPanel.tsx b/src/components/StudioPanel.tsx index b252f530..551bc9bd 100644 --- a/src/components/StudioPanel.tsx +++ b/src/components/StudioPanel.tsx @@ -19,6 +19,8 @@ import { useSettingsStore } from '../stores/useSettingsStore'; import { imageUrlLightboxOpener } from '../utils/mediaViewer'; import { useFlowStore } from '../stores/useFlowStore'; import { useRunIssueStore } from '../stores/useRunIssueStore'; +import { useRunRecoveryFocus } from '../studio/useRunRecoveryFocus'; +import { captureRunRecoveryOrigin } from '../studio/runRecovery'; import { createOrUpdateStudioGraph, ensureStudioGraphReadyForRun, @@ -113,6 +115,7 @@ function copyText(value: string, label: string) { } export default function StudioPanel() { + const recoveryFocusRef = useRunRecoveryFocus('studio'); const [isWorking, setIsWorking] = useState(false); const modelUsageTerms = useModelUsageTermsGate(); const [maskEditorOpen, setMaskEditorOpen] = useState(false); @@ -576,7 +579,7 @@ export default function StudioPanel() { }, [setLightboxOpener]); const handleReviewRunIssues = useCallback(() => { - showRunIssues(runReadiness.issues); + showRunIssues(runReadiness.issues, captureRunRecoveryOrigin()); }, [runReadiness.issues, showRunIssues]); const handleRunSweep = useCallback( @@ -679,7 +682,7 @@ export default function StudioPanel() { }, []); return ( -
+
{ @@ -826,6 +830,7 @@ export default function StudioPanel() { /> { @@ -1103,6 +1108,7 @@ export default function StudioPanel() { ) : capability.layerResolutions?.length ? ( { @@ -1384,6 +1390,7 @@ export default function StudioPanel() { )} {capability.supportsLayers && ( updateAndSync({ offloadMode: value as StudioFormState['offloadMode'] })} @@ -1774,6 +1782,7 @@ export default function StudioPanel() {

{form.mode.includes('control_union') && ( updateAndSync({ controlMode: numberValue(value, form.controlMode) })} diff --git a/src/components/WorkflowResourcePanelV2.tsx b/src/components/WorkflowResourcePanelV2.tsx index 1cf46978..571c4a06 100644 --- a/src/components/WorkflowResourcePanelV2.tsx +++ b/src/components/WorkflowResourcePanelV2.tsx @@ -8,10 +8,12 @@ import { assessWorkflowResourcesV2, buildWorkflowResourceRequestV2 } from '../st import { selectedAutoCandidate } from '../studio/autoResource'; import { formatResourceBytes } from '../studio/runtimeResources'; import type { WorkflowAutoPlanV2 } from '../studio/workflowAutoExecutionV2'; +import { useRunRecoveryFocus } from '../studio/useRunRecoveryFocus'; type Assessment = Awaited>; export default function WorkflowResourcePanelV2() { + const recoveryFocusRef = useRunRecoveryFocus('resources'); const stableNodes = useMemo(createDurableNodesSelector, []); const nodes = useFlowStore((state) => stableNodes(state.nodes)); const edges = useFlowStore((state) => state.edges); @@ -84,7 +86,11 @@ export default function WorkflowResourcePanelV2() { }; const visible = result?.request.key === key ? result : null; return ( -
+

Workflow resources diff --git a/src/stores/useRunIssueStore.ts b/src/stores/useRunIssueStore.ts index 70649fac..9c0d71b2 100644 --- a/src/stores/useRunIssueStore.ts +++ b/src/stores/useRunIssueStore.ts @@ -1,17 +1,19 @@ import { create } from 'zustand'; import { nanoid } from 'nanoid'; import type { RunReadinessIssue, RuntimeFailure, StudioRunContext, WorkflowTab } from '../studio/types'; +import type { RunRecoveryOrigin } from '../studio/runRecovery'; type RunIssueState = { issues: RunReadinessIssue[]; issueDialogOpen: boolean; + issueOrigin: RunRecoveryOrigin | null; failure: RuntimeFailure | null; failureDialogOpen: boolean; failuresByTaskId: Record; }; type RunIssueActions = { - showIssues: (issues: RunReadinessIssue[]) => void; + showIssues: (issues: RunReadinessIssue[], origin: RunRecoveryOrigin) => void; closeIssues: () => void; clearIssues: () => void; reportFailure: ( @@ -75,13 +77,14 @@ function withBoundedFailure(failuresByTaskId: Record, ta export const useRunIssueStore = create((set) => ({ issues: [], issueDialogOpen: false, + issueOrigin: null, failure: null, failureDialogOpen: false, failuresByTaskId: {}, - showIssues: (issues) => set({ issues, issueDialogOpen: true }), + showIssues: (issues, origin) => set({ issues, issueDialogOpen: true, issueOrigin: origin }), closeIssues: () => set({ issueDialogOpen: false }), - clearIssues: () => set({ issues: [], issueDialogOpen: false }), + clearIssues: () => set({ issues: [], issueDialogOpen: false, issueOrigin: null }), reportFailure: (failure, open = true) => set((state) => { const nextFailure: RuntimeFailure = { diff --git a/src/stores/useSettingsStore.ts b/src/stores/useSettingsStore.ts index 1963a22d..9f8bdae6 100644 --- a/src/stores/useSettingsStore.ts +++ b/src/stores/useSettingsStore.ts @@ -9,6 +9,7 @@ import { migrateLocalStorageKey } from '../utils/persistMigration'; import { createResilientCheckpointStorage } from '../utils/checkpointStorage'; import type { MediaKind } from '../studio/mediaCapabilities'; import { unifiedWorkspaceSettings } from '../studio/workspaceMode'; +import type { RunRecoveryFocusRequest } from '../studio/runRecovery'; const LEFT_PANEL_WIDTH_MIN = 240; const RIGHT_PANEL_WIDTH_MIN = 320; @@ -114,6 +115,7 @@ interface SettingsStateVolatile { mediaViewerOpener: MediaViewerOpener; mediaExportOpener: MediaExportOpener; workflowFocusRequest: WorkflowFocusRequest; + runRecoveryFocusRequest: RunRecoveryFocusRequest | null; runActivityPendingTaskId: string | null; workflowLibraryView: 'start' | 'examples' | 'saved' | 'drafts'; templateBrowserOpen: boolean; @@ -161,6 +163,7 @@ interface SettingsActions { setMediaViewerOpener: (opener: MediaViewerOpener) => void; setMediaExportOpener: (opener: MediaExportOpener) => void; setWorkflowFocusRequest: (request: WorkflowFocusRequest) => void; + setRunRecoveryFocusRequest: (request: RunRecoveryFocusRequest | null) => void; setRunActivityPendingTaskId: (taskId: string | null) => void; setTemplateBrowserOpen: (open: boolean) => void; openTemplateBrowser: (category?: TemplateBrowserCategoryId | null) => void; @@ -195,6 +198,7 @@ const defaultVolatileState: SettingsStateVolatile = { mediaViewerOpener: null, mediaExportOpener: null, workflowFocusRequest: null, + runRecoveryFocusRequest: null, runActivityPendingTaskId: null, workflowLibraryView: 'start', templateBrowserOpen: false, @@ -271,6 +275,7 @@ export const useSettingsStore = create set({ mediaViewerOpener: opener }), setMediaExportOpener: (opener: MediaExportOpener) => set({ mediaExportOpener: opener }), setWorkflowFocusRequest: (request: WorkflowFocusRequest) => set({ workflowFocusRequest: request }), + setRunRecoveryFocusRequest: (request) => set({ runRecoveryFocusRequest: request }), setRunActivityPendingTaskId: (taskId: string | null) => set({ runActivityPendingTaskId: taskId }), setTemplateBrowserOpen: (open: boolean) => set({ templateBrowserOpen: open }), openTemplateBrowser: (category?: TemplateBrowserCategoryId | null) => @@ -291,6 +296,7 @@ export const useSettingsStore = create STUDIO_OFFLOAD_LABELS[mode]).join(', ')}.`, } satisfies Omit; @@ -740,10 +743,12 @@ export function getStudioDeviceOffloadIssue(form: StudioFormState) { }); if (!details) return null; return { + code: 'device_offload_conflict', category: 'hardware_fit', severity: 'error', blocking: true, - action: 'open_setup', + action: 'edit_studio_field', + fieldId: 'offloadMode', message: `${form.device} cannot run with ${STUDIO_OFFLOAD_LABELS[form.offloadMode]}.`, details, } satisfies Omit; @@ -933,6 +938,7 @@ export function collectGraphDeviceOffloadIssues(graph = executableFlowGraph()): blocking: true, action: 'inspect_node', nodeId: node.id, + fieldId: 'offload_mode', message: `${node.data.label || node.data.action} has an invalid device/offload plan.`, details, }), @@ -1328,11 +1334,13 @@ function blockingOptionalRuntimeState( mode: StudioFormState['mode'], catalog: ReturnType['optionalRuntimeCatalog'], stale: boolean, -) { +): { state: string; profileIds: string[] } | null { if (!profile) return null; let matching = profile.executionProfiles?.find((item) => item.modes.includes(mode)); if (profile.executionProfiles && !matching) { - return profile.optionalRuntimeRequirement?.requiredNow ? 'unavailable' : null; + return profile.optionalRuntimeRequirement?.requiredNow + ? { state: 'unavailable', profileIds: [...profile.optionalRuntimeRequirement.profileIds] } + : null; } let requirement = matching?.optionalRuntimeRequirement ?? @@ -1370,16 +1378,39 @@ function blockingOptionalRuntimeState( repo && [item.default_repo, item.fallback_repo, ...(item.compatible_repos ?? [])].includes(repo), ); matching = resolved.length === 1 ? resolved[0] : undefined; - if (!matching) - return (sameIdentity.length ? sameIdentity : profiles).some( - (item) => item.optionalRuntimeRequirement?.requiredNow, - ) - ? 'unavailable' + if (!matching) { + const requirements = (sameIdentity.length ? sameIdentity : profiles) + .flatMap((item) => (item.optionalRuntimeRequirement ? [item.optionalRuntimeRequirement] : [])) + .filter((item) => item.requiredNow); + return requirements.length + ? { state: 'unavailable', profileIds: [...new Set(requirements.flatMap((item) => item.profileIds))] } : null; + } requirement = matching?.optionalRuntimeRequirement; } } - return requirement?.requiredNow && stale ? 'unavailable' : optionalRuntimeBlockState(requirement, catalog); + const state = requirement?.requiredNow && stale ? 'unavailable' : optionalRuntimeBlockState(requirement, catalog); + return state ? { state, profileIds: [...(requirement?.profileIds ?? [])] } : null; +} + +function runtimeRecoveryDetails(state: string) { + const descriptions: Record = { + missing: 'An additional runtime is missing. Open its Setup entry to review platform support and installation.', + present_unqualified: + 'The packages are present, but this runtime has not passed compatibility verification. Review its Setup status before running.', + wrong_version: + 'The installed package version does not match the reviewed runtime. Open its Setup entry for the supported repair.', + repair_required: + 'The runtime needs repair. Open its Setup entry to inspect the failure and available repair action.', + staged: 'The runtime is staged but not active. Open its Setup entry to review activation and restart progress.', + restart_required: + 'The worker must restart before this runtime is ready. Open Setup to review the existing operation.', + busy_recovery_only: + 'Runtime recovery is still in progress. Open Setup to follow the existing operation; do not start another installation.', + unavailable: + 'The runtime is unavailable or its compatibility information is not current. Review Setup; installing arbitrary packages does not establish platform support.', + }; + return descriptions[state] ?? 'Open the required runtime in Setup to review its compatibility and readiness.'; } function collectStudioIssues(form: StudioFormState): RunReadinessIssue[] { @@ -1427,8 +1458,11 @@ function collectStudioIssues(form: StudioFormState): RunReadinessIssue[] { category: 'backend', severity: 'error', blocking: true, + action: 'edit_studio_field', + fieldId: exactCapability.capability ? 'mode' : 'modelType', message: exactStudioCapabilityUnsupportedMessage(form.modelType, form.mode, exactCapability), - details: 'Choose a backend-advertised model/task pair or an explicit Expert graph.', + details: + 'Choose a task or model supported by the connected backend. Expert does not add unsupported model capabilities.', }), ); } @@ -1451,8 +1485,9 @@ function collectStudioIssues(form: StudioFormState): RunReadinessIssue[] { severity: 'error', blocking: true, action: 'open_setup', + runtimeProfileIds: optionalRuntimeBlock.profileIds, message: 'Reviewed optional runtime required.', - details: `${optionalRuntimeBlock.replace(/_/g, ' ')}.`, + details: runtimeRecoveryDetails(optionalRuntimeBlock.state), }), ); } @@ -1460,10 +1495,14 @@ function collectStudioIssues(form: StudioFormState): RunReadinessIssue[] { if (autoTarget) { issues.push( issue({ + code: 'auto_plan_stale', category: 'backend', severity: 'error', blocking: true, + action: 'open_resources', message: autoTarget, + details: + 'Review the current workflow resource options and check its Auto execution plan. Inspection does not change settings or start a run.', }), ); } else if (auto && (!autoResourcePlan || !autoPlanIsReady(autoResourcePlan, form))) { @@ -1496,12 +1535,14 @@ function collectStudioIssues(form: StudioFormState): RunReadinessIssue[] { : (autoCompatibility.action?.repo ?? autoInstallTarget?.repo ?? profile.defaultRepo), blocking: true, action: transientPlannerFailure - ? undefined + ? 'open_resources' : autoInstallTarget ? 'install_model' : autoResourcePlan - ? 'open_setup' - : undefined, + ? runtimeIssue + ? 'open_setup' + : 'open_resources' + : 'open_resources', message: autoCompatibility.summary, details: autoInstallTarget?.reason ?? @@ -1693,9 +1734,12 @@ function collectStudioIssues(form: StudioFormState): RunReadinessIssue[] { ) { issues.push( issue({ + code: 'control_mode_invalid', category: 'user_input', severity: 'error', blocking: true, + action: 'edit_studio_field', + fieldId: 'controlMode', message: 'ControlNet Union mode must be an integer from 0 through 5 for the reviewed basic SDXL artifact.', }), ); @@ -1703,9 +1747,12 @@ function collectStudioIssues(form: StudioFormState): RunReadinessIssue[] { if (profile.layerResolutions && (form.width !== form.height || !profile.layerResolutions.includes(form.width))) { issues.push( issue({ + code: 'layer_resolution_invalid', category: 'user_input', severity: 'error', blocking: true, + action: 'edit_studio_field', + fieldId: 'width', message: `Layer resolution must be one of ${profile.layerResolutions.join(', ')} pixels square.`, }), ); @@ -1713,9 +1760,12 @@ function collectStudioIssues(form: StudioFormState): RunReadinessIssue[] { if (profile.layerCount && (form.layers < profile.layerCount.min || form.layers > profile.layerCount.max)) { issues.push( issue({ + code: 'layer_count_invalid', category: 'user_input', severity: 'error', blocking: true, + action: 'edit_studio_field', + fieldId: 'layers', message: `Layer count must be between ${profile.layerCount.min} and ${profile.layerCount.max}.`, }), ); @@ -2142,7 +2192,7 @@ export function validateCurrentRun(options: { applyRunReadinessToGraph(issues); const decision = buildRunReadinessDecision(issues); if (decision.blockingIssues.length > 0 && options.showDialog !== false) { - useRunIssueStore.getState().showIssues(issues); + useRunIssueStore.getState().showIssues(issues, captureRunRecoveryOrigin()); } return { ...decision, diff --git a/src/studio/runRecovery.ts b/src/studio/runRecovery.ts new file mode 100644 index 00000000..07aa1e5c --- /dev/null +++ b/src/studio/runRecovery.ts @@ -0,0 +1,57 @@ +import { durableFlowNodeSnapshot, useFlowStore, withoutBlockCompilationTransientsV2 } from '../stores/useFlowStore'; +import { canonicalBlockStringifyV2 } from './blockSchemaV2'; +import { + captureWorkflowOperationContext, + workflowOperationContextIsCurrent, + type WorkflowOperationContext, +} from '../stores/useStudioStore'; + +export type RunRecoveryOrigin = { + workflow: WorkflowOperationContext; + graphKey: string; +}; + +export type RunRecoveryFocusTarget = + | { kind: 'studio'; fieldId: string } + | { kind: 'node'; nodeId: string; fieldId?: string } + | { kind: 'runtime'; profileIds: string[] } + | { kind: 'resources' }; + +export type RunRecoveryFocusRequest = { + origin: RunRecoveryOrigin; + target: RunRecoveryFocusTarget; +}; + +function recoveryGraphKey() { + const flow = useFlowStore.getState(); + const graph = withoutBlockCompilationTransientsV2(flow.nodes, flow.edges); + return canonicalBlockStringifyV2({ + nodes: graph.nodes.map(durableFlowNodeSnapshot).map(({ id, type, parentId, data }) => ({ + id, + type, + parentId, + data: { ...data, uiState: data.uiState?.disabled ? { disabled: true } : undefined }, + })), + edges: graph.edges.map(({ id, source, sourceHandle, target, targetHandle, data }) => ({ + id, + source, + sourceHandle, + target, + targetHandle, + data, + })), + }); +} + +/** Recovery is navigation for one observed document, not authority over the next tab. */ +export function captureRunRecoveryOrigin(): RunRecoveryOrigin { + return { + workflow: captureWorkflowOperationContext(), + graphKey: recoveryGraphKey(), + }; +} + +export function runRecoveryOriginIsCurrent(origin: RunRecoveryOrigin | null) { + if (!origin || !workflowOperationContextIsCurrent(origin.workflow)) return false; + return origin.graphKey === recoveryGraphKey(); +} diff --git a/src/studio/types.ts b/src/studio/types.ts index 0ca80168..d0e60e91 100644 --- a/src/studio/types.ts +++ b/src/studio/types.ts @@ -381,6 +381,8 @@ export type RunReadinessIssueAction = | 'cleanup_gpu' | 'open_model_manager' | 'detach_graph' + | 'edit_studio_field' + | 'open_resources' | 'inspect_node'; export type RunReadinessIssue = { @@ -391,6 +393,8 @@ export type RunReadinessIssue = { nodeId?: string; /** Visible field/socket to highlight when a diagnostic has an exact target. */ fieldId?: string; + /** Backend-declared alternatives for the selected execution profile, not install consent. */ + runtimeProfileIds?: string[]; repoId?: string; /** Exact Hugging Face Hub snapshot request; never a direct file URL. */ installOptions?: { diff --git a/src/studio/useRunRecoveryFocus.ts b/src/studio/useRunRecoveryFocus.ts new file mode 100644 index 00000000..29e9d839 --- /dev/null +++ b/src/studio/useRunRecoveryFocus.ts @@ -0,0 +1,131 @@ +import { useEffect, useRef } from 'react'; +import { useSettingsStore } from '../stores/useSettingsStore'; +import { runRecoveryOriginIsCurrent, type RunRecoveryFocusTarget } from './runRecovery'; +import { enqueueSnackbar } from '../ui/snackbar'; + +const studioFieldSections: Record = { + width: 'advanced-generation', + height: 'advanced-generation', + layers: 'advanced-generation', + controlMode: 'mask-control', + device: 'runtime', + offloadMode: 'runtime', + quantizationMode: 'runtime', +}; + +function findTarget(root: HTMLElement, target: RunRecoveryFocusTarget): HTMLElement | null { + if (target.kind === 'runtime') { + return ( + [...root.querySelectorAll('[data-run-recovery-profile]')].find((element) => + target.profileIds.includes(element.dataset.runRecoveryProfile ?? ''), + ) ?? (root.dataset.runRecoveryReady === 'true' ? root : null) + ); + } + if (target.kind === 'resources') return root.querySelector('[data-testid="plan-workflow-auto"]'); + if (target.kind === 'studio') { + const section = studioFieldSections[target.fieldId]; + const toggle = section + ? root.querySelector(`[data-testid="studio-section-toggle-${section}"]`) + : null; + // An explicit recovery gesture opens the existing disclosure through its + // normal handler. Inspection never changes the graph or persisted values. + if (toggle?.getAttribute('aria-expanded') === 'false') toggle.click(); + return ( + [...root.querySelectorAll('[data-run-recovery-field]')].find( + (element) => element.dataset.runRecoveryField === target.fieldId, + ) ?? null + ); + } + const inspector = [...root.querySelectorAll('[data-testid]')].find( + (element) => element.dataset.testid === `studio-node-disclosure-${target.nodeId}`, + ); + if (!inspector) return null; + if (!target.fieldId) return inspector; + return ( + [...inspector.querySelectorAll('[data-key]')].find( + (element) => element.dataset.key === target.fieldId, + ) ?? null + ); +} + +/** Focus only the panel requested by an explicit, still-current recovery action. */ +export function useRunRecoveryFocus(panel: 'studio' | 'runtime' | 'resources') { + const rootRef = useRef(null); + const request = useSettingsStore((state) => state.runRecoveryFocusRequest); + const panelOpen = useSettingsStore((state) => state.isRightPanelOpen); + const panelTab = useSettingsStore((state) => state.rightPanelTab); + useEffect(() => { + const root = rootRef.current; + const target = request?.target; + if (!root || !request || !target || (target.kind === 'node' ? 'studio' : target.kind) !== panel) return; + const expectedTab = panel === 'runtime' ? 'setup' : panel === 'resources' ? 'compatibility' : 'studio'; + if (!panelOpen || panelTab !== expectedTab) { + if (useSettingsStore.getState().runRecoveryFocusRequest === request) { + useSettingsStore.getState().setRunRecoveryFocusRequest(null); + } + return; + } + let finished = false; + const clear = () => { + finished = true; + if (useSettingsStore.getState().runRecoveryFocusRequest === request) { + useSettingsStore.getState().setRunRecoveryFocusRequest(null); + } + }; + const focus = () => { + if (finished) return; + if (!runRecoveryOriginIsCurrent(request.origin)) return clear(); + const element = findTarget(root, target); + if (!element || element.getClientRects().length === 0) return; + const control = element.matches('button,input,select,textarea,[tabindex]') + ? element + : element.querySelector('input:not([type="hidden"]),select,textarea,button,[tabindex]'); + if (!control || control.matches(':disabled')) return; + if (target.kind === 'runtime' && element === root && target.profileIds.length > 0) { + enqueueSnackbar( + 'The required runtime is not listed in Setup. Check backend compatibility and the connected platform before installing packages.', + { variant: 'info' }, + ); + } + element.scrollIntoView({ block: 'center', inline: 'nearest' }); + control.focus({ preventScroll: true }); + clear(); + }; + const observer = new MutationObserver(focus); + observer.observe(root, { + childList: true, + subtree: true, + attributes: true, + attributeFilter: ['aria-expanded', 'disabled', 'data-run-recovery-ready'], + }); + // Let the closing dialog finish restoring its focus before moving it into + // the newly mounted panel. No model or backend request is started here. + let innerFrame = 0; + const frame = requestAnimationFrame(() => { + innerFrame = requestAnimationFrame(focus); + }); + const timer = window.setTimeout(() => { + if (!finished && runRecoveryOriginIsCurrent(request.origin)) { + enqueueSnackbar('The requested control is not available in this view. Inspect the selected node or settings.', { + variant: 'info', + }); + } + clear(); + }, 3_000); + return () => { + finished = true; + cancelAnimationFrame(frame); + cancelAnimationFrame(innerFrame); + observer.disconnect(); + window.clearTimeout(timer); + // Real panel navigation retires the request. A Strict Mode effect replay + // keeps its DOM connected and must not cancel the replacement effect. + queueMicrotask(() => { + if (!root.isConnected && useSettingsStore.getState().runRecoveryFocusRequest === request) { + useSettingsStore.getState().setRunRecoveryFocusRequest(null); + } + }); + }; + }, [panel, panelOpen, panelTab, request]); + return rootRef; +} diff --git a/src/studio/workflowAutoExecutionV2.ts b/src/studio/workflowAutoExecutionV2.ts index b8f4df5f..afc6ea5c 100644 --- a/src/studio/workflowAutoExecutionV2.ts +++ b/src/studio/workflowAutoExecutionV2.ts @@ -11,6 +11,7 @@ import config from '../../app.config'; import { useFlowStore, type APIGraphExport, type CustomNodeType } from '../stores/useFlowStore'; import { useStudioStore } from '../stores/useStudioStore'; import { useRunIssueStore } from '../stores/useRunIssueStore'; +import { captureRunRecoveryOrigin } from './runRecovery'; import { formatRequestError, requestJson } from '../utils/requestJson'; import { isWorkflowResourceValue, type WorkflowResourcePatch, type WorkflowResourceUpdate } from '../types/api'; import { canonicalBlockStringifyV2, type BlockInstanceV2 } from './blockSchemaV2'; @@ -179,17 +180,21 @@ export async function prepareWorkflowAutoExecutionV2( // Preparation has no task or captured run context. Keep the explanation in // the existing blocking dialog without inventing a failed model execution. if (isCurrent()) - useRunIssueStore.getState().showIssues([ - { - id: 'workflow-auto-planning', - category: 'hardware_fit', - severity: 'error', - blocking: true, - message: formatRequestError(error, 'Workflow memory planning failed.'), - details: - 'No run was submitted. Review the requirements and model/memory settings, then Run again for a fresh plan.', - }, - ]); + useRunIssueStore.getState().showIssues( + [ + { + id: 'workflow-auto-planning', + category: 'hardware_fit', + severity: 'error', + blocking: true, + action: 'open_resources', + message: formatRequestError(error, 'Workflow memory planning failed.'), + details: + 'No run was submitted. Review the requirements and model/memory settings, then Run again for a fresh plan.', + }, + ], + captureRunRecoveryOrigin(), + ); throw error; } assertCurrentExecutionScope(executionScope); diff --git a/src/ui/StudioControls.tsx b/src/ui/StudioControls.tsx index 7d7391b0..019a72c4 100644 --- a/src/ui/StudioControls.tsx +++ b/src/ui/StudioControls.tsx @@ -41,6 +41,7 @@ export function SectionHeader({ title, action }: { title: string; action?: React export function StudioInput({ label, + name, value, onChange, multiline = false, @@ -51,6 +52,7 @@ export function StudioInput({ required = false, }: { label: string; + name?: string; value: string | number; onChange: (value: string) => void; multiline?: boolean; @@ -75,6 +77,8 @@ export function StudioInput({ {multiline ? ( diff --git a/tests/e2e/studio-mocked/studio-mocked.spec.ts b/tests/e2e/studio-mocked/studio-mocked.spec.ts index 34f59ce7..3c5f5efb 100644 --- a/tests/e2e/studio-mocked/studio-mocked.spec.ts +++ b/tests/e2e/studio-mocked/studio-mocked.spec.ts @@ -12474,17 +12474,21 @@ test('the unified editor inspect a node with the library closed, preserving grap // This is diagnostic fixture setup, not proof of model execution. await page.evaluate(async (id) => { const { useRunIssueStore } = await import('/src/stores/useRunIssueStore.ts'); - useRunIssueStore.getState().showIssues([ - { - id: 'inspection-regression', - category: 'graph', - severity: 'error', - blocking: true, - nodeId: id, - action: 'inspect_node', - message: 'Review this prompt node.', - }, - ]); + const { captureRunRecoveryOrigin } = await import('/src/studio/runRecovery.ts'); + useRunIssueStore.getState().showIssues( + [ + { + id: 'inspection-regression', + category: 'graph', + severity: 'error', + blocking: true, + nodeId: id, + action: 'inspect_node', + message: 'Review this prompt node.', + }, + ], + captureRunRecoveryOrigin(), + ); }, nodeId); await page .getByRole('dialog', { name: 'Run blocked', exact: true }) @@ -16402,6 +16406,346 @@ test('mocked custom graph inspector blocks invalid graphs in Auto and Expert', a } }); +test('Run recovery reveals invalid saved settings and focuses their real controls without changing values', async ({ + page, +}) => { + await ensureFrontend(); + await installMockRoutes(page); + await page.goto(FRONTEND_URL, { waitUntil: 'domcontentloaded' }); + await page.waitForFunction(() => Boolean(window.__MODIFF_E2E__?.getState().studio.workflowCanvasHydrated)); + await dismissTaskLauncher(page); + const mutations: string[] = []; + page.on('request', (request) => { + if ( + request.method() === 'POST' && + /\/(graph|hf\/download|optional-runtimes\/(install|activate))$/.test(new URL(request.url()).pathname) + ) + mutations.push(request.url()); + }); + // A failed/unfinished template restore can expose invalid saved values before + // a graph exists. This fixture supplies that document, never model authority. + await page.evaluate(async () => { + const { useStudioStore } = await import('/src/stores/useStudioStore.ts'); + const { useFlowStore } = await import('/src/stores/useFlowStore.ts'); + const { useSettingsStore } = await import('/src/stores/useSettingsStore.ts'); + const { getFormDefaultsForMode } = await import('/src/studio/modelProfiles.ts'); + window.__MODIFF_E2E__!.setWebsocketConnection({ sid: 'mock-sid', isConnected: true }); + useFlowStore.getState().replaceGraph({ nodes: [], edges: [] }); + useStudioStore.setState({ + form: { + ...getFormDefaultsForMode('layer_decomposition', 'QwenImageLayeredPipeline'), + resourceMode: 'expert', + width: 768, + height: 768, + layers: 11, + }, + activeTemplateId: 'z_image_quick_concept', + graphBinding: null, + graphFinalization: null, + canvasTransition: null, + launcherDismissed: true, + workflowCanvasHydrated: true, + }); + useSettingsStore.getState().setStudioSectionOpen('advanced-generation', false); + useSettingsStore.getState().setRightPanelOpen(true); + useSettingsStore.getState().setRightPanelTab('studio'); + }); + await expect(page.getByTestId('studio-panel')).toBeVisible(); + const read = () => + page.evaluate(() => ({ + form: window.__MODIFF_E2E__!.getState().studio.form, + graph: window.__MODIFF_E2E__!.exportWorkflowGraph(), + })); + const before = await read(); + await page.getByTestId('studio-run-readiness').click(); + const dialog = page.getByTestId('run-issues-dialog'); + const resolution = dialog.locator('[data-testid^="run-issue-layer_resolution_invalid:"]'); + await expect(resolution).toBeVisible(); + await resolution.getByRole('button', { name: 'Edit setting', exact: true }).click(); + await expect(dialog).toHaveCount(0); + await expect(page.getByTestId('studio-section-toggle-advanced-generation')).toHaveAttribute('aria-expanded', 'true'); + await expect(page.getByTestId('studio-layer-resolution-select')).toBeFocused(); + expect(await read()).toEqual(before); + await page.getByTestId('studio-run-readiness').click(); + await dialog + .locator('[data-testid^="run-issue-layer_count_invalid:"]') + .getByRole('button', { name: 'Edit setting', exact: true }) + .click(); + await expect(page.locator('input[name="layers"]')).toBeFocused(); + expect(await read()).toEqual(before); + await page.evaluate(async () => { + const { useStudioStore } = await import('/src/stores/useStudioStore.ts'); + const { useSettingsStore } = await import('/src/stores/useSettingsStore.ts'); + const { getFormDefaultsForMode } = await import('/src/studio/modelProfiles.ts'); + useSettingsStore.getState().setStudioSectionOpen('mask-control', false); + useStudioStore.setState({ + form: { + ...getFormDefaultsForMode('control_union_image', 'StableDiffusionXLModularPipeline'), + resourceMode: 'expert', + controlMode: 6, + }, + }); + }); + const controlBefore = await read(); + await page.getByTestId('studio-run-readiness').click(); + await dialog + .locator('[data-testid^="run-issue-control_mode_invalid:"]') + .getByRole('button', { name: 'Edit setting', exact: true }) + .click(); + await expect(page.getByTestId('studio-section-toggle-mask-control')).toHaveAttribute('aria-expanded', 'true'); + await expect(page.locator('input[name="controlMode"]')).toBeFocused(); + expect(await read()).toEqual(controlBefore); + expect(mutations).toEqual([]); +}); + +test('Run recovery focuses a supported task choice without silently replacing an unsupported saved task', async ({ + page, +}) => { + await ensureFrontend(); + await installMockRoutes(page); + await page.goto(FRONTEND_URL, { waitUntil: 'domcontentloaded' }); + await page.waitForFunction(() => Boolean(window.__MODIFF_E2E__?.getState().studio.workflowCanvasHydrated)); + await dismissTaskLauncher(page); + await page.evaluate(async () => { + const { useStudioStore } = await import('/src/stores/useStudioStore.ts'); + const { useFlowStore } = await import('/src/stores/useFlowStore.ts'); + const { getFormDefaultsForModel } = await import('/src/studio/modelProfiles.ts'); + window.__MODIFF_E2E__!.setWebsocketConnection({ sid: 'mock-sid', isConnected: true }); + useFlowStore.getState().replaceGraph({ nodes: [], edges: [] }); + useStudioStore.setState({ + form: { + ...getFormDefaultsForModel('ZImageModularPipeline'), + mode: 'speech_transcription', + resourceMode: 'expert', + }, + activeTemplateId: 'z_image_quick_concept', + graphBinding: null, + graphFinalization: null, + canvasTransition: null, + launcherDismissed: true, + workflowCanvasHydrated: true, + }); + }); + const before = await page.evaluate(() => window.__MODIFF_E2E__!.getState().studio.form); + await page.getByTestId('studio-run-readiness').click(); + await page + .getByTestId('run-issues-dialog') + .getByRole('button', { name: 'Choose supported task', exact: true }) + .click(); + await expect(page.getByTestId('studio-task-select')).toBeFocused(); + expect(await page.evaluate(() => window.__MODIFF_E2E__!.getState().studio.form)).toEqual(before); +}); + +test('Run recovery opens the exact required runtime and Auto inspection without installing or submitting', async ({ + page, +}) => { + mockOptionalRuntimeActions = true; + await ensureFrontend(); + await installMockRoutes(page); + await page.goto(FRONTEND_URL, { waitUntil: 'domcontentloaded' }); + await page.waitForFunction(() => Boolean(window.__MODIFF_E2E__?.getState().studio.workflowCanvasHydrated)); + await dismissTaskLauncher(page); + await page.evaluate(() => window.__MODIFF_E2E__!.setWebsocketConnection({ sid: 'mock-sid', isConnected: true })); + await page.waitForFunction( + () => window.__MODIFF_E2E__!.getState().nodes.discoveryRequests.optionalRuntimes.status === 'success', + ); + let releaseCatalog!: () => void; + const catalogReady = new Promise((resolve) => { + releaseCatalog = resolve; + }); + await page.route('**/runtime/optional-runtimes', async (route) => { + await catalogReady; + await route.fallback(); + }); + await page.evaluate(async () => { + const { useRunIssueStore } = await import('/src/stores/useRunIssueStore.ts'); + const { captureRunRecoveryOrigin } = await import('/src/studio/runRecovery.ts'); + const { useNodesStore } = await import('/src/stores/useNodeStore.ts'); + useNodesStore.setState((state) => ({ + optionalRuntimeCatalog: null, + discoveryRequests: { + ...state.discoveryRequests, + optionalRuntimes: { ...state.discoveryRequests.optionalRuntimes, status: 'idle', error: null }, + }, + })); + void useNodesStore.getState().fetchOptionalRuntimes(); + useRunIssueStore.getState().showIssues( + [ + { + id: 'required-runtime', + category: 'environment', + severity: 'error', + blocking: true, + action: 'open_setup', + runtimeProfileIds: ['unavailable-profile', 'huggingface-transformers-peft-5.14.1-0.20.0'], + message: 'Review the selected runtime', + }, + ], + captureRunRecoveryOrigin(), + ); + }); + const before = await page.evaluate(() => window.__MODIFF_E2E__!.exportWorkflowGraph()); + const submissions: string[] = []; + page.on('request', (request) => { + if (request.method() === 'POST' && /\/graph$/.test(new URL(request.url()).pathname)) + submissions.push(request.url()); + }); + await page.getByTestId('run-issues-dialog').getByRole('button', { name: 'Review runtime', exact: true }).click(); + await expect(page.getByTestId('setup-panel')).toBeVisible(); + const runtimePanel = page.getByRole('region', { name: 'Optional runtimes', exact: true }); + await expect(runtimePanel).toHaveAttribute('data-run-recovery-ready', 'false'); + await expect(page.getByTestId('optional-runtime-huggingface-transformers-peft-5.14.1-0.20.0')).toHaveCount(0); + await page.getByTestId('workspace-tab-studio').click(); + await expect + .poll(() => + page.evaluate(async () => { + const { useSettingsStore } = await import('/src/stores/useSettingsStore.ts'); + return useSettingsStore.getState().runRecoveryFocusRequest; + }), + ) + .toBeNull(); + await page.evaluate(async () => { + const { useRunIssueStore } = await import('/src/stores/useRunIssueStore.ts'); + const { captureRunRecoveryOrigin } = await import('/src/studio/runRecovery.ts'); + useRunIssueStore.getState().showIssues( + [ + { + id: 'required-runtime-again', + category: 'environment', + severity: 'error', + blocking: true, + action: 'open_setup', + runtimeProfileIds: ['huggingface-transformers-peft-5.14.1-0.20.0'], + message: 'Review the selected runtime', + }, + ], + captureRunRecoveryOrigin(), + ); + }); + await page.getByTestId('run-issues-dialog').getByRole('button', { name: 'Review runtime', exact: true }).click(); + releaseCatalog(); + await expect(page.getByTestId('optional-runtime-huggingface-transformers-peft-5.14.1-0.20.0')).toBeFocused(); + expect(mockOptionalRuntimeMutationCalls).toBe(0); + expect(await page.evaluate(() => window.__MODIFF_E2E__!.exportWorkflowGraph())).toEqual(before); + // Seed a plain executable utility graph through the existing fixture. Its + // inspection is allowed, while the graph dispatch counter must remain zero. + await page.evaluate(() => window.__MODIFF_E2E__!.setGraphScenarioForTest('missing_model')); + await page.evaluate(async () => { + const { useRunIssueStore } = await import('/src/stores/useRunIssueStore.ts'); + const { captureRunRecoveryOrigin } = await import('/src/studio/runRecovery.ts'); + useRunIssueStore.getState().showIssues( + [ + { + id: 'stale-auto', + category: 'backend', + severity: 'error', + blocking: true, + action: 'open_resources', + message: 'Review the current Auto plan', + }, + ], + captureRunRecoveryOrigin(), + ); + }); + const graph = await page.evaluate(() => window.__MODIFF_E2E__!.exportWorkflowGraph()); + let inspections = 0; + await page.route('**/auto_resource/workflow', (route) => { + inspections++; + return route.fulfill({ + json: { + schemaVersion: 1, + graphHash: `sha256:workflow-auto-v1:${'a'.repeat(64)}`, + plannedGraphHash: `sha256:workflow-auto-v1:${'b'.repeat(64)}`, + canAutoRun: false, + issues: ['The current RAM snapshot does not meet the unchanged reserve.'], + message: 'Not enough RAM for this workflow.', + patches: [], + loaders: [], + requirements: { systemRamBytes: 8 * 1024 ** 3 }, + available: { systemRamBytes: 4 * 1024 ** 3 }, + sharedMemory: false, + }, + }); + }); + await page.getByTestId('run-issues-dialog').getByRole('button', { name: 'Review Auto options', exact: true }).click(); + await expect(page.getByTestId('workflow-resource-assessment')).toBeVisible(); + await expect(page.getByTestId('plan-workflow-auto')).toBeFocused(); + await page.getByTestId('plan-workflow-auto').click(); + await expect(page.getByTestId('workflow-auto-plan')).toContainText('Auto needs attention'); + await expect(page.getByTestId('workflow-auto-plan')).toContainText('unchanged reserve'); + expect(inspections).toBe(1); + expect(await page.evaluate(() => window.__MODIFF_E2E__!.exportWorkflowGraph())).toEqual(graph); + expect(mockOptionalRuntimeMutationCalls).toBe(0); + expect(submissions).toEqual([]); +}); + +test('Run recovery refuses an old action after graph changes or a workflow switch', async ({ page }) => { + mockInstalledRepos.clear(); + mockInstalledRepos.add('Tongyi-MAI/Z-Image-Turbo'); + mockDownloadCalls = 0; + await ensureFrontend(); + await installMockRoutes(page); + await page.goto(FRONTEND_URL, { waitUntil: 'domcontentloaded' }); + await page.waitForFunction(() => Boolean(window.__MODIFF_E2E__?.getState().studio.workflowCanvasHydrated)); + await dismissTaskLauncher(page); + await page.evaluate(async () => { + window.__MODIFF_E2E__!.setWebsocketConnection({ sid: 'mock-sid', isConnected: true }); + window.__MODIFF_E2E__!.setGraphScenarioForTest('missing_model'); + const { useRunIssueStore } = await import('/src/stores/useRunIssueStore.ts'); + const { captureRunRecoveryOrigin } = await import('/src/studio/runRecovery.ts'); + useRunIssueStore.getState().showIssues( + [ + { + id: 'stale-install', + category: 'model', + severity: 'error', + blocking: true, + action: 'install_model', + repoId: 'missing/GraphModel', + message: 'Install original graph model', + }, + ], + captureRunRecoveryOrigin(), + ); + }); + const dialog = page.getByTestId('run-issues-dialog'); + await expect(dialog).toBeVisible(); + // A late field response changes the draft while the dialog is open. This is + // fixture setup for a race, not a bypass used by the recovery implementation. + await page.evaluate(async () => { + const { useFlowStore } = await import('/src/stores/useFlowStore.ts'); + useFlowStore.setState((state) => ({ + nodes: state.nodes.map((node) => + node.id === 'scenario-model' + ? { + ...node, + data: { + ...node.data, + params: { ...node.data.params, repo_id: { ...node.data.params.repo_id, value: 'changed/GraphModel' } }, + }, + } + : node, + ), + })); + }); + const changedGraph = await page.evaluate(() => window.__MODIFF_E2E__!.exportWorkflowGraph()); + await dialog.getByRole('button', { name: 'Install', exact: true }).click(); + await expect(page.getByRole('status').filter({ hasText: 'The workflow changed. Close this dialog' })).toBeVisible(); + expect(mockDownloadCalls).toBe(0); + expect(await page.evaluate(() => window.__MODIFF_E2E__!.exportWorkflowGraph())).toEqual(changedGraph); + await page.evaluate(async () => { + const { useStudioStore } = await import('/src/stores/useStudioStore.ts'); + useStudioStore.getState().createWorkflowTab('Other document'); + }); + await expect(dialog.getByRole('button', { name: 'Install', exact: true })).not.toBeVisible(); + await dismissTaskLauncher(page); + if (await dialog.isVisible()) { + await expect(dialog.getByRole('button', { name: 'Install', exact: true })).toBeDisabled(); + await expect(dialog).toContainText('The workflow changed. Close this dialog'); + } + expect(mockDownloadCalls).toBe(0); +}); + test('mocked custom graph artifact requirements show a compact install action', async ({ page }) => { mockInstalledRepos.clear(); mockInstalledRepos.add('Tongyi-MAI/Z-Image-Turbo'); @@ -23226,16 +23570,20 @@ test('runtime cleanup displays partial warnings and restores clean success witho // Diagnostic setup opens the existing remediation surface, without executing a model. await page.evaluate(async () => { const { useRunIssueStore } = await import('/src/stores/useRunIssueStore.ts'); - useRunIssueStore.getState().showIssues([ - { - id: 'cleanup-warning-proof', - category: 'hardware_fit', - severity: 'warning', - blocking: false, - action: 'cleanup_gpu', - message: 'Release cached model state before retrying.', - }, - ]); + const { captureRunRecoveryOrigin } = await import('/src/studio/runRecovery.ts'); + useRunIssueStore.getState().showIssues( + [ + { + id: 'cleanup-warning-proof', + category: 'hardware_fit', + severity: 'warning', + blocking: false, + action: 'cleanup_gpu', + message: 'Release cached model state before retrying.', + }, + ], + captureRunRecoveryOrigin(), + ); }); const dialog = page.getByTestId('run-issues-dialog'); const cleanup = dialog.getByRole('button', { name: 'Release accelerator cache', exact: true }); From 05225ce769a420681386da1da53d00b47b629b91 Mon Sep 17 00:00:00 2001 From: Sourav Das Date: Fri, 6 Nov 2026 19:18:31 +0530 Subject: [PATCH 194/440] fix: name runtime recovery focus regions accessibly --- scripts/bundle-budget.mjs | 8 ++++---- src/components/RuntimeOptimizationsCard.tsx | 3 +++ 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/scripts/bundle-budget.mjs b/scripts/bundle-budget.mjs index e93ac515..d183bdaf 100644 --- a/scripts/bundle-budget.mjs +++ b/scripts/bundle-budget.mjs @@ -1,5 +1,5 @@ // Scoped Run recovery adds measured largest/startup/deferred gzip bytes -// 899/902/1616 over 496791/675277/330399, retaining 3/12/199-byte headroom. +// 894/896/1556 over 496791/675277/330399, retaining 3/12/199-byte headroom. // Exact setting/runtime focus and semantic document ownership keep the same // 119 assets and four startup/90 deferred memberships. Dependencies, minifier, // loading boundaries, model guards and the independent 64 KiB chunk cap stay fixed. @@ -359,7 +359,7 @@ const SOURCE_LICENSES = new URL('../public/THIRD_PARTY_LICENSES.txt', import.met // Scoped video receipts and compatible adapter messaging measure 494870 bytes // in the largest startup asset (+46 over the cap). Add 64 bytes, no dependencies. const MAX_STARTUP_CHUNK_GZIP_BYTES = - 899 + + 894 + 106 + 99 + 82 + @@ -507,7 +507,7 @@ const MAX_STARTUP_CHUNK_GZIP_BYTES = // The same build measures 673359 aggregate startup bytes (+45 over the cap). // Keep 19 bytes of headroom; deferred limits and loading boundaries stay fixed. const MAX_STARTUP_GZIP_BYTES = - 902 + + 896 + 107 + 102 + 83 + @@ -736,7 +736,7 @@ const MAX_DEFERRED_CHUNK_GZIP_BYTES = 64 * 1024; // 321033-byte cap, preserving 39 bytes of headroom at 321227. Startup caps, the // 65536-byte deferred chunk cap, dependencies and loading boundaries stay fixed. const MAX_DEFERRED_GZIP_BYTES = - 1616 + + 1556 + 242 + 297 + 1147 + diff --git a/src/components/RuntimeOptimizationsCard.tsx b/src/components/RuntimeOptimizationsCard.tsx index 0a8dac23..1b5b5c40 100644 --- a/src/components/RuntimeOptimizationsCard.tsx +++ b/src/components/RuntimeOptimizationsCard.tsx @@ -283,6 +283,7 @@ export default function RuntimeOptimizationsCard() { return (
From 7afc553162df459b29f43ea7bceccf4f6ca36954 Mon Sep 17 00:00:00 2001 From: Sourav Das Date: Fri, 6 Nov 2026 19:31:21 +0530 Subject: [PATCH 195/440] ci: pair Run recovery checks with the packaged backend --- .github/workflows/ci.yml | 6 +++--- README.md | 11 +++++++++-- 2 files changed, 12 insertions(+), 5 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index c82696a7..98400ae5 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -32,8 +32,8 @@ jobs: uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4 with: repository: sdevil7th/MoDiff - # Paired scoped audio creative-input receipts and current video stages. - ref: 57811fc2ee6aff5b9de7a6b67ca10914d1136fcc + # Paired scoped Run recovery bundle and unchanged backend runtime. + ref: 81e22ca3306b6a00f0bba784d1ca90d14e002944 path: MoDiff persist-credentials: false - name: Verify the pinned backend supports native setup @@ -88,7 +88,7 @@ jobs: with: repository: sdevil7th/MoDiff # Match the immutable backend revision in the Client quality job. - ref: 57811fc2ee6aff5b9de7a6b67ca10914d1136fcc + ref: 81e22ca3306b6a00f0bba784d1ca90d14e002944 path: MoDiff persist-credentials: false - name: Verify the pinned backend supports native setup diff --git a/README.md b/README.md index 6937d18b..aa395a56 100644 --- a/README.md +++ b/README.md @@ -31,14 +31,21 @@ application source pair is: | MoDiff | `1239d1cecd12a7318eb263ca17c34d4fc0445d14` | | MoDiff-client | `c561a01395044fd71c1918e95fb9e9709d8e7601` | -CI backend contract: `57811fc2ee6aff5b9de7a6b67ca10914d1136fcc`. +CI backend contract: `81e22ca3306b6a00f0bba784d1ca90d14e002944`. Both CI jobs use this exact immutable backend pin. The application table above is the earlier reviewed testing baseline. The selected backend includes the shared video stages, conditional reference requirements and scoped Linux shared-memory LTX Auto -loading fix. A CI pin alone does not establish a new deployed pair or expand +loading fix and the precise Run recovery client bundle. A CI pin alone does not establish a new deployed pair or expand model/hardware qualification. +When Run is blocked, use **Edit setting**, **Choose supported task/model**, +**Review runtime** or **Review Auto options** to reach the relevant existing +control. Navigation preserves saved choices and starts no installation or run. +An edited or switched workflow requires a fresh readiness check. See +[Run recovery](https://github.com/sdevil7th/MoDiff/blob/fix-ui-ux-issues/docs/troubleshooting.md#run-is-blocked) +for correction paths and retained platform/resource limits. + The historical 3 November Linux video testing deployment used backend `496f3aed56ce1c6a868549df310c68e765712ce3` and client product `75080b73fb22bc0ef197f17a119cf507b3352695`. The 6 November Linux manual-testing From e307bc937adaf456cc538979de79034c7bd681b6 Mon Sep 17 00:00:00 2001 From: Sourav Das Date: Fri, 6 Nov 2026 22:40:55 +0530 Subject: [PATCH 196/440] Unify selected workflow setup and clarify installation activation readiness --- .github/workflows/ci.yml | 4 +- README.md | 8 +- docs/cluster-engineering-lessons.md | 7 + docs/modiff-client-architecture.md | 17 ++ package.json | 2 +- scripts/bundle-budget.mjs | 8 + scripts/node-store-requests.test.mjs | 4 +- scripts/workflow-setup.test.mjs | 231 +++++++++++++++++ src/components/ModelSetupPanel.tsx | 21 +- src/components/RuntimeOptimizationsCard.tsx | 87 +++++-- src/components/WorkflowSetupChecklist.tsx | 242 ++++++++++++++++++ src/studio/artifactRequirements.ts | 18 +- src/studio/optionalRuntimes.ts | 47 +++- src/studio/workflowSetup.ts | 178 +++++++++++++ tests/e2e/studio-mocked/studio-mocked.spec.ts | 167 +++++++++++- 15 files changed, 990 insertions(+), 51 deletions(-) create mode 100644 scripts/workflow-setup.test.mjs create mode 100644 src/components/WorkflowSetupChecklist.tsx create mode 100644 src/studio/workflowSetup.ts diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 98400ae5..30c4ca19 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -33,7 +33,7 @@ jobs: with: repository: sdevil7th/MoDiff # Paired scoped Run recovery bundle and unchanged backend runtime. - ref: 81e22ca3306b6a00f0bba784d1ca90d14e002944 + ref: 09f377f54f975ffbfa8705ac4535905f0481f54f path: MoDiff persist-credentials: false - name: Verify the pinned backend supports native setup @@ -88,7 +88,7 @@ jobs: with: repository: sdevil7th/MoDiff # Match the immutable backend revision in the Client quality job. - ref: 81e22ca3306b6a00f0bba784d1ca90d14e002944 + ref: 09f377f54f975ffbfa8705ac4535905f0481f54f path: MoDiff persist-credentials: false - name: Verify the pinned backend supports native setup diff --git a/README.md b/README.md index aa395a56..1e4ec3b9 100644 --- a/README.md +++ b/README.md @@ -31,7 +31,7 @@ application source pair is: | MoDiff | `1239d1cecd12a7318eb263ca17c34d4fc0445d14` | | MoDiff-client | `c561a01395044fd71c1918e95fb9e9709d8e7601` | -CI backend contract: `81e22ca3306b6a00f0bba784d1ca90d14e002944`. +CI backend contract: `09f377f54f975ffbfa8705ac4535905f0481f54f`. Both CI jobs use this exact immutable backend pin. The application table above is the earlier reviewed testing baseline. The selected backend includes the shared video @@ -98,6 +98,12 @@ Vite for the editable frontend. Press `Ctrl+C` in each terminal to stop it. See the [full developer setup guide](https://github.com/sdevil7th/MoDiff/blob/fix-ui-ux-issues/docs/developer-setup.md) for accelerator prerequisites, optional runtimes, repair, and bundled-app setup. +In the app, Setup → Workflow setup checklist groups the selected Run scope's +base environment, model artifacts, extra feature packages and system steps. +Transformers and PEFT are included in ordinary installation. A staged optional +install is shown separately from activation and verified worker readiness; +reloading Setup follows the existing job without starting another install. + ## Install and run MoDiff Clone both repositories into the same parent directory. The backend installer diff --git a/docs/cluster-engineering-lessons.md b/docs/cluster-engineering-lessons.md index 6bf5d636..9cbba12f 100644 --- a/docs/cluster-engineering-lessons.md +++ b/docs/cluster-engineering-lessons.md @@ -299,6 +299,13 @@ the original geometry assertions, then repeat the concurrent generation gesture. packages or submitting a graph. Focus requests are volatile; progress and presentation changes must not impersonate authored input changes. Keep actual resource rejection and unsupported-platform checks intact. +- Setup must inspect the same lowered and selected Run closure without authoring + a graph, executing suppliers or randomizing seeds. Keep base packages, exact + model artifacts, optional environments and system steps distinct in one + checklist. A staged install is not activation, and each requested profile + needs a verified active identity. Deduplicate exact selections and durable + jobs; a file count cannot prove download-file identity. Lost status reads + must not create duplicate installs or turn last-known progress into readiness. - Diagnose the effective bound iteration input, not only the enclosing loop's original Pipeline State. Report bounded type/shape summaries, never contents, and preserve the resource-error category for memory failures. diff --git a/docs/modiff-client-architecture.md b/docs/modiff-client-architecture.md index bdf6f505..f803ef4f 100644 --- a/docs/modiff-client-architecture.md +++ b/docs/modiff-client-architecture.md @@ -1175,6 +1175,23 @@ independent behavior requires the matching updated client bundle. An optional runtime requirement is discovery data, not permission to mutate the Python environment. Template browsing/opening, registry refresh, and Auto planning must remain non-installing. Installation begins only from an explicit user action against a reviewed backend runtime profile, and the client keeps Run blocked until a later backend status confirms the compatible installation. +`WorkflowSetupChecklist` combines base environment, concrete model artifacts, +extra feature packages and system prerequisites. `workflowSetup.ts` exports the +same enabled/selected dependency closure and ordinary modular lowering as Run, +with seed randomization disabled and no graph submission or preparation actions. +It sends this concrete graph to read-only `POST /runtime/workflow-setup`, binds +responses to the active document and backend instance, and discards obsolete +observations. Exact model revisions remain separate; connected model values are +not filled from registry defaults. Unresolved computed selections remain unknown. +Runtime actions reuse the existing consent/job lifecycle below, not a second +installer. Staged installation, restart, verification and active worker status +are distinct. Every required runtime profile needs an exact active match; an +explicit composite alias can satisfy that match. Optional profiles outside the +inspected scope remain available under Show other runtimes, without becoming +prerequisites. Job file counts do not establish exact download-file identity: +follow the existing repository job and prevent duplicate mutations when the +public status cannot prove that row's selection. + The Setup surface renders install or repair only when the exact profile is `qualified`, `cutoverReady`, and the backend advertises `installActionAvailable`. It sends the profile ID, exact spec digest, and diff --git a/package.json b/package.json index 7965da57..1c010d43 100644 --- a/package.json +++ b/package.json @@ -91,7 +91,7 @@ "test:gallery-runner": "node --test scripts/template-gallery-runner.test.mjs && npm run test:demo-tools", "test:demo-tools": "node --test scripts/bounded-browser-process.test.mjs scripts/run-fashion-demo.test.mjs scripts/prepare-fashion-demo.test.mjs scripts/export-fashion-demo.test.mjs scripts/image-prototyping-campaign.test.mjs", "test:gallery-queue": "node --test scripts/example-generation-queue.test.mjs scripts/image-prototyping-campaign.test.mjs", - "test:driver-contract": "node --test scripts/hugging-face-runtime-contract.test.mjs", + "test:driver-contract": "node --test scripts/hugging-face-runtime-contract.test.mjs scripts/workflow-setup.test.mjs", "test:graph-mutations": "node --test scripts/flow-graph-mutations.test.mjs scripts/graph-fixer.test.mjs scripts/conditional-input-requirements.test.mjs scripts/process-image-input-requirements.test.mjs scripts/block-seed-repair-v2.test.mjs scripts/block-derived-control-repair-v2.test.mjs scripts/adapter-chain-links.test.mjs", "test:graph-visuals": "node --test scripts/graph-visuals.test.mjs scripts/node-measurement-dispatch.test.mjs scripts/node-connection-search.test.mjs", "test:media-viewer": "node --test scripts/media-viewer.test.mjs scripts/workflow-png-package.test.mjs", diff --git a/scripts/bundle-budget.mjs b/scripts/bundle-budget.mjs index d183bdaf..3c7173b4 100644 --- a/scripts/bundle-budget.mjs +++ b/scripts/bundle-budget.mjs @@ -1,3 +1,8 @@ +// Selected workflow setup measures largest/startup/deferred gzip +// 497978/676464/335501 over 497685/676173/331955: add only 293/291/3546 bytes, +// retaining 3/12/199 bytes of headroom. All119 assets,94 JS and four startup/ +// 90 deferred memberships stay exact. Shared-export alias churn is not a new +// dependency or loading boundary; the independent 64 KiB chunk cap is unchanged. // Scoped Run recovery adds measured largest/startup/deferred gzip bytes // 894/896/1556 over 496791/675277/330399, retaining 3/12/199-byte headroom. // Exact setting/runtime focus and semantic document ownership keep the same @@ -359,6 +364,7 @@ const SOURCE_LICENSES = new URL('../public/THIRD_PARTY_LICENSES.txt', import.met // Scoped video receipts and compatible adapter messaging measure 494870 bytes // in the largest startup asset (+46 over the cap). Add 64 bytes, no dependencies. const MAX_STARTUP_CHUNK_GZIP_BYTES = + 293 + 894 + 106 + 99 + @@ -507,6 +513,7 @@ const MAX_STARTUP_CHUNK_GZIP_BYTES = // The same build measures 673359 aggregate startup bytes (+45 over the cap). // Keep 19 bytes of headroom; deferred limits and loading boundaries stay fixed. const MAX_STARTUP_GZIP_BYTES = + 291 + 896 + 107 + 102 + @@ -736,6 +743,7 @@ const MAX_DEFERRED_CHUNK_GZIP_BYTES = 64 * 1024; // 321033-byte cap, preserving 39 bytes of headroom at 321227. Startup caps, the // 65536-byte deferred chunk cap, dependencies and loading boundaries stay fixed. const MAX_DEFERRED_GZIP_BYTES = + 3546 + 1556 + 242 + 297 + diff --git a/scripts/node-store-requests.test.mjs b/scripts/node-store-requests.test.mjs index ce49877a..134ee3cf 100644 --- a/scripts/node-store-requests.test.mjs +++ b/scripts/node-store-requests.test.mjs @@ -1550,8 +1550,8 @@ test('optional runtime catalog parsing is bounded and qualified-active only', () ); assert.equal( optionalRuntimesModule.optionalRuntimeBlockState(mixedPins, mixedCatalog), - null, - 'one active alternative pin must satisfy the optional-runtime requirement', + 'wrong_version', + 'every requested profile must match the backend guard; a second pin is not implicitly an alternative', ); for (const [label, activeProfileId, activeDigest] of [ [ diff --git a/scripts/workflow-setup.test.mjs b/scripts/workflow-setup.test.mjs new file mode 100644 index 00000000..0a39ef4c --- /dev/null +++ b/scripts/workflow-setup.test.mjs @@ -0,0 +1,231 @@ +import assert from 'node:assert/strict'; +import { after, before, test } from 'node:test'; +import { createServer } from 'vite'; + +let server, runtimes, setup, flow, nodes, studio; +before(async () => { + const storage = new Map(); + globalThis.localStorage = { + getItem: (key) => storage.get(key) ?? null, + setItem: (key, value) => storage.set(key, String(value)), + removeItem: (key) => storage.delete(key), + }; + globalThis.window = { + localStorage, + sessionStorage: localStorage, + dispatchEvent: () => true, + location: { origin: 'http://127.0.0.1:5191' }, + }; + server = await createServer({ + configFile: false, + logLevel: 'silent', + appType: 'custom', + optimizeDeps: { entries: [], noDiscovery: true }, + server: { middlewareMode: true, watch: null }, + }); + runtimes = await server.ssrLoadModule('/src/studio/optionalRuntimes.ts'); + setup = await server.ssrLoadModule('/src/studio/workflowSetup.ts'); + ({ useFlowStore: flow } = await server.ssrLoadModule('/src/stores/useFlowStore.ts')); + ({ useNodesStore: nodes } = await server.ssrLoadModule('/src/stores/useNodeStore.ts')); + ({ useStudioStore: studio } = await server.ssrLoadModule('/src/stores/useStudioStore.ts')); +}); + +const base = { + schemaVersion: 1, + delivery: 'base', + requiredNow: false, + profileIds: [], + executionProfileIds: [], + state: 'base_satisfied', + reason: 'base_runtime', +}; +const hash = 'sha256:workflow-auto-v1:' + 'a'.repeat(64); +const model = (revision) => ({ + module: 'modules.Test', + action: 'Load', + params: { + model_id: { value: { source: 'hub', value: 'owner/model' } }, + revision: { value: revision }, + }, +}); + +test('shared artifacts deduplicate by exact revision while a second immutable selection stays separate', () => { + const graph = { + nodes: { a: model('a'.repeat(40)), b: model('a'.repeat(40)), c: model('b'.repeat(40)) }, + paths: [['a'], ['b'], ['c']], + }; + const requirements = setup.workflowSetupArtifacts(graph); + assert.equal(requirements.length, 2); + assert.deepEqual( + requirements.map((row) => row.installTarget.revision), + ['a'.repeat(40), 'b'.repeat(40)], + ); + graph.nodes.c.params.model_id = { sourceId: 'a', sourceKey: 'model', value: 'unrelated/default' }; + assert.equal(setup.workflowSetupArtifacts(graph).length, 1); +}); + +test('malformed, duplicate and unbounded setup observations never become ready', () => { + const good = { + schemaVersion: 1, + instance: 'worker', + graphHash: hash, + requirements: [{ nodeIds: ['a'], requirement: base }], + }; + assert.equal(setup.parseWorkflowSetup(good).requirements[0].requirement.delivery, 'base'); + for (const bad of [ + { ...good, instance: '' }, + { ...good, graphHash: 'forged' }, + { ...good, requirements: [...good.requirements, ...good.requirements] }, + { ...good, requirements: [{ nodeIds: ['a'], requirement: { ...base, state: 'active' } }] }, + ]) + assert.throws(() => setup.parseWorkflowSetup(bad)); +}); + +test('exact cached artifacts remain ready and another revision retains its repair requirement', () => { + const graph = { nodes: { a: model('a'.repeat(40)) }, paths: [['a']] }; + const previous = nodes.getState().hfCache; + nodes.setState({ hfCache: [{ id: 'owner/model', planned_revision: 'a'.repeat(40), complete: true }] }); + try { + const ready = setup.workflowSetupArtifacts(graph)[0]; + assert.equal(ready.status.runnable, true); + assert.equal(ready.primaryAction, 'Ready'); + assert.equal(ready.revision, 'a'.repeat(40)); + graph.nodes.a.params.revision.value = 'b'.repeat(40); + const incomplete = setup.workflowSetupArtifacts(graph)[0]; + assert.equal(incomplete.status.runnable, false); + assert.equal(incomplete.primaryAction, 'Repair'); + assert.equal(incomplete.installTarget.revision, 'b'.repeat(40)); + } finally { + nodes.setState({ hfCache: previous }); + } +}); + +test('a repository job is never relabelled as another revision or unreported file selection', () => { + const job = { repo_id: 'owner/model', status: 'downloading', revision: 'a'.repeat(40), total_bytes: 123 }; + assert.deepEqual(setup.workflowSetupDownload({ revision: 'a'.repeat(40) }, job), { progress: job, blocked: false }); + for (const requirement of [{ revision: 'b'.repeat(40) }, { revision: 'a'.repeat(40), files: ['one.safetensors'] }]) { + assert.deepEqual(setup.workflowSetupDownload(requirement, job), { progress: undefined, blocked: true }); + assert.equal(setup.workflowSetupDownload(requirement, { ...job, status: 'complete' }).blocked, false); + } +}); + +test('inspection uses selected Run dependency closure without seeds, installs, field actions or graph submission', async () => { + const make = (id, params = {}, disabled = false) => ({ + id, + position: { x: 0, y: 0 }, + type: 'custom', + data: { + type: 'custom', + module: 'modules.Test', + action: 'Load', + label: id, + category: '', + params, + uiState: { disabled }, + }, + }); + flow.getState().replaceGraph({ + nodes: [ + make('input', { seed: { value: { value: 17, isRandom: true } }, output: { display: 'output' } }), + make('output', { input: { display: 'input' } }), + make('unrelated', model('b'.repeat(40)).params), + make('disabled', {}, true), + ], + edges: [{ id: 'wire', source: 'input', sourceHandle: 'output', target: 'output', targetHandle: 'input' }], + }); + studio.setState({ form: { ...studio.getState().form, resourceMode: 'expert' } }); + nodes.setState({ instance: 'worker' }); + const original = JSON.stringify(flow.getState().toObject()); + const oldFetch = globalThis.fetch; + const requests = []; + globalThis.fetch = async (url, options) => { + assert.match(String(url), /\/runtime\/workflow-setup$/); + requests.push(JSON.parse(options.body)); + return new Response( + JSON.stringify({ + schemaVersion: 1, + instance: 'worker', + graphHash: hash, + requirements: [{ nodeIds: Object.keys(requests.at(-1).graph.nodes), requirement: base }], + }), + { headers: { 'content-type': 'application/json' } }, + ); + }; + try { + const result = await setup.inspectWorkflowSetup('output'); + assert.deepEqual(Object.keys(result.graph.nodes).sort(), ['input', 'output']); + assert.equal(requests.length, 1); + assert.equal(JSON.stringify(flow.getState().toObject()), original); + globalThis.fetch = async () => { + nodes.setState({ instance: 'another-worker' }); + return new Response( + JSON.stringify({ + schemaVersion: 1, + instance: 'worker', + graphHash: hash, + requirements: [{ nodeIds: ['input', 'output'], requirement: base }], + }), + ); + }; + await assert.rejects(() => setup.inspectWorkflowSetup('output'), /backend or execution scope changed/); + } finally { + globalThis.fetch = oldFetch; + } +}); +after(async () => server?.close()); + +const digest = 'sha256:' + 'a'.repeat(64); +const profile = (id, overlayStatus = 'active') => ({ + id, + specDigest: digest, + overlayStatus, + contractState: 'qualified', + cutoverReady: true, + status: 'missing', +}); + +test('runtime status prioritizes recovery and does not call an unqualified stage installed and ready', () => { + const staged = profile('codec', 'staged'); + assert.match( + runtimes.optionalRuntimeSetupStatus( + staged, + { processLoadStatus: 'repair_required', activeOptionalRuntimeSpecs: [] }, + true, + ), + /repair required/, + ); + assert.match( + runtimes.optionalRuntimeSetupStatus( + { ...staged, contractState: 'candidate_unqualified', cutoverReady: false }, + { processLoadStatus: 'base', activeOptionalRuntimeSpecs: [] }, + true, + ), + /unavailable/, + ); + const active = profile('codec'); + const catalog = { + processLoadStatus: 'active', + activeOptionalRuntimeSpecs: [{ profileId: 'codec', specDigest: digest }], + }; + assert.match(runtimes.optionalRuntimeSetupStatus(active, catalog, false), /verifying worker readiness/); + assert.match(runtimes.optionalRuntimeSetupStatus(active, catalog, true), /active — verified/); + assert.match( + runtimes.optionalRuntimeSetupStatus(active, { ...catalog, activeOptionalRuntimeSpecs: [] }, true), + /unavailable/, + ); +}); + +test('a workflow needing two runtime contracts is not ready when only one is active', () => { + const requirement = { requiredNow: true, state: 'active', profileIds: ['codec', 'quantizer'] }; + const catalog = { + processLoadStatus: 'active', + profiles: [profile('codec'), profile('quantizer', 'staged')], + activeOptionalRuntimeSpecs: [{ profileId: 'codec', specDigest: digest }], + }; + assert.equal(runtimes.optionalRuntimeBlockState(requirement, catalog), 'staged'); + catalog.profiles[1].overlayStatus = 'active'; + catalog.activeOptionalRuntimeSpecs.push({ profileId: 'quantizer', specDigest: digest }); + assert.equal(runtimes.optionalRuntimeBlockState(requirement, catalog), null); + catalog.activeOptionalRuntimeSpecs[1].specDigest = 'sha256:' + 'b'.repeat(64); + assert.equal(runtimes.optionalRuntimeBlockState(requirement, catalog), 'unavailable'); +}); diff --git a/src/components/ModelSetupPanel.tsx b/src/components/ModelSetupPanel.tsx index a9e43a7d..2c702e04 100644 --- a/src/components/ModelSetupPanel.tsx +++ b/src/components/ModelSetupPanel.tsx @@ -53,8 +53,7 @@ import { } from '../ui'; import { cx } from '../utils/classNames'; import { ModelDownloadProgressCard } from './ModelDownloadProgressCard'; -import { RuntimeEnvironmentCard } from './RuntimeEnvironmentCard'; -import RuntimeOptimizationsCard from './RuntimeOptimizationsCard'; +import WorkflowSetupChecklist from './WorkflowSetupChecklist'; import { captureRunRecoveryOrigin } from '../studio/runRecovery'; import { TemplateGallerySetupCard } from './TemplateGallerySetupCard'; import { WorkflowArtifactRequirementRow } from './WorkflowArtifactRequirementRow'; @@ -196,7 +195,6 @@ export default function ModelSetupPanel() { const workflowModelDescriptors = useNodesStore((state) => state.workflowModelDescriptors); const studioExecutionSpecInvalid = useNodesStore((state) => state.studioExecutionSpecInvalid); const runtimeStatus = useNodesStore((state) => state.runtimeStatus); - const runtimeError = useNodesStore((state) => state.runtimeError); const hfDownloadProgress = useNodesStore((state) => state.hfDownloadProgress); const refreshModelIndexes = useNodesStore((state) => state.refreshModelIndexes); const fetchRuntimeStatus = useNodesStore((state) => state.fetchRuntimeStatus); @@ -453,7 +451,7 @@ export default function ModelSetupPanel() {
-

Model Health

+

Workflow setup

- - + {currentIssueGroups.length > 0 && ( -
-

Current issues

+

+ These checks cover the whole workflow, independently of the checklist scope selected above. +

} onClick={openIssueReview}> Review all @@ -510,7 +511,7 @@ export default function ModelSetupPanel() {
))} -
+ )} {visibleDownloads.length > 0 && ( diff --git a/src/components/RuntimeOptimizationsCard.tsx b/src/components/RuntimeOptimizationsCard.tsx index 1b5b5c40..e16dc0b4 100644 --- a/src/components/RuntimeOptimizationsCard.tsx +++ b/src/components/RuntimeOptimizationsCard.tsx @@ -5,8 +5,8 @@ import { useSettingsStore } from '../stores/useSettingsStore'; import { parseOptionalRuntimeJobResponse, parseOptionalRuntimeMutation, + optionalRuntimeSetupStatus, stagedOptionalRuntimeEnvironment, - type OptionalRuntimeCatalog, type OptionalRuntimeJob, type OptionalRuntimeProfileStatus, } from '../studio/optionalRuntimes'; @@ -33,38 +33,24 @@ function post(path: string, body: Record, parse: (value: unk }); } -function optionalRuntimeStatus( - profile: OptionalRuntimeProfileStatus, - process: OptionalRuntimeCatalog['processLoadStatus'], -) { - const qualified = - process === 'active' && - profile.overlayStatus === 'active' && - profile.cutoverReady && - profile.contractState === 'qualified'; - const state = - process !== 'active' && process !== 'base' - ? process - : qualified - ? 'active' - : profile.contractState !== 'qualified' || !profile.cutoverReady - ? 'unavailable' - : profile.overlayStatus; - return `${state.replace(/_/g, ' ')}${state === 'unavailable' ? ` (${profile.contractState})` : ''}.`; -} - function optionalRuntimeTarget(profile: OptionalRuntimeProfileStatus) { const platform = profile.platform === 'macos' ? 'macOS' : profile.platform === 'windows' ? 'Windows' : 'Linux'; const machine = profile.machine === 'arm64' ? 'ARM64' : 'x86-64'; return `${platform} ${machine}`; } -export default function RuntimeOptimizationsCard() { +export default function RuntimeOptimizationsCard({ + requiredProfileIds, +}: { requiredProfileIds?: readonly string[] } = {}) { const recoveryFocusRef = useRunRecoveryFocus('runtime'); const optionalRuntimeCatalog = useNodesStore((state) => state.optionalRuntimeCatalog); const optionalRuntimeRequest = useNodesStore((state) => state.discoveryRequests.optionalRuntimes); const fetchOptionalRuntimes = useNodesStore((state) => state.fetchOptionalRuntimes); const setAlertOpener = useSettingsStore((state) => state.setAlertOpener); + const focusRequest = useSettingsStore((state) => state.runRecoveryFocusRequest); + const runtimeStatus = useNodesStore((state) => state.runtimeStatus); + const runtimeRequest = useNodesStore((state) => state.discoveryRequests.runtime); + const [showOther, setShowOther] = useState(false); const [catalog, setCatalog] = useState(null); const [receipts, setReceipts] = useState([]); const [busyId, setBusyId] = useState(null); @@ -279,6 +265,11 @@ export default function RuntimeOptimizationsCard() { const resetToBase = optionalRuntimeCatalog?.processLoadStatus === 'repair_required'; const rollbackAvailable = Boolean(optionalRuntimeCatalog?.previousEnvironmentId || resetToBase); const runtimeBusy = runtimeJob !== null && !['ready', 'failed', 'cancelled'].includes(runtimeJob.status); + const workerReady = + runtimeRequest.status === 'success' && + runtimeStatus?.ready === true && + runtimeStatus.runtimeEnvironment.executionReady; + const focusProfiles = focusRequest?.target.kind === 'runtime' ? focusRequest.target.profileIds : []; return (
Optional runtimes + {requiredProfileIds ? ( +

+ Required runtimes appear first. Only one optional environment can be active. Separate installations do not + establish a combined environment; use a reviewed combined choice when the backend offers it. Download size + is unknown unless reported by the install job. +

+ ) : null} {optionalRuntimeRequest.status === 'success' && optionalRuntimeCatalog?.profiles.some((profile) => profile.baseIncluded) ? (

@@ -305,6 +303,15 @@ export default function RuntimeOptimizationsCard() { data-testid="optional-runtime-progress" > {runtimeJob.progress.message} + {runtimeJob.status === 'ready' ? ( + + {runtimeJob.operation === 'install' + ? 'Installation finished. Activation is a separate step.' + : 'Activation finished; current worker readiness is reported below.'} + + ) : ['restarting', 'verifying'].includes(runtimeJob.status) ? ( + Waiting for the replacement worker to verify the selected runtime. + ) : null} {runtimeJob.operation === 'install' && ['queued', 'running'].includes(runtimeJob.status) ? ( Cancel @@ -327,6 +334,12 @@ export default function RuntimeOptimizationsCard() {

) : null} + {runtimeJob?.status === 'failed' ? ( +

+ Setup failed; this job is not ready. Refresh status and review the current runtime or installation logs + before an explicit repair. Status checks never retry installation automatically. +

+ ) : null} {optionalRuntimeRequest.error ? (

{optionalRuntimeRequest.error}

) : optionalRuntimeRequest.status === 'loading' ? ( @@ -334,6 +347,18 @@ export default function RuntimeOptimizationsCard() { ) : optionalRuntimeRequest.status === 'success' && optionalRuntimeCatalog ? ( optionalRuntimeCatalog.profiles .filter((profile) => !profile.baseIncluded) + .filter( + (profile) => + !requiredProfileIds || + showOther || + requiredProfileIds.includes(profile.id) || + focusProfiles.includes(profile.id) || + (runtimeBusy && runtimeJob?.profileId === profile.id), + ) + .sort( + (left, right) => + Number(requiredProfileIds?.includes(right.id)) - Number(requiredProfileIds?.includes(left.id)), + ) .map((profile) => { const staged = stagedOptionalRuntimeEnvironment(optionalRuntimeCatalog, profile); const completedEnvironment = @@ -368,7 +393,15 @@ export default function RuntimeOptimizationsCard() { > {profile.label} ({optionalRuntimeTarget(profile)}):{' '} - {optionalRuntimeStatus(profile, optionalRuntimeCatalog.processLoadStatus)} + {optionalRuntimeSetupStatus(profile, optionalRuntimeCatalog, workerReady)} + {requiredProfileIds + ? requiredProfileIds.includes(profile.id) + ? ' Required by this scope.' + : ' Other optional runtime; not a requirement of this scope.' + : ''} + {!canAct + ? ' Package actions are unavailable for this target. Use the supported base recipe or a separately qualified runtime/platform; installing arbitrary packages cannot enable it.' + : ''}
{actionable && !runtimeBusy ? ( @@ -388,6 +421,14 @@ export default function RuntimeOptimizationsCard() { ) : (

No optional runtimes.

)} + {requiredProfileIds && + optionalRuntimeCatalog?.profiles.some( + (profile) => !profile.baseIncluded && !requiredProfileIds.includes(profile.id), + ) ? ( + setShowOther((value) => !value)}> + {showOther ? 'Hide other runtimes' : 'Show other runtimes'} + + ) : null} {optionalRuntimeCatalog && rollbackAvailable && (resetToBase || diff --git a/src/components/WorkflowSetupChecklist.tsx b/src/components/WorkflowSetupChecklist.tsx new file mode 100644 index 00000000..0b0a15ff --- /dev/null +++ b/src/components/WorkflowSetupChecklist.tsx @@ -0,0 +1,242 @@ +import { useEffect, useState } from 'react'; +import { flowExecutionScopeSourceKey, useFlowStore } from '../stores/useFlowStore'; +import { useNodesStore } from '../stores/useNodeStore'; +import { useStudioStore } from '../stores/useStudioStore'; +import { useSettingsStore } from '../stores/useSettingsStore'; +import { inspectWorkflowSetup, workflowSetupArtifacts, workflowSetupDownload } from '../studio/workflowSetup'; +import { isHfDownloadActive, formatDownloadBytes } from '../studio/modelInstall'; +import { formatRequestError } from '../utils/requestJson'; +import { ModiffButton, ModiffSelect, enqueueSnackbar } from '../ui'; +import type { StudioAutoResourceInstallTarget } from '../studio/autoResource'; +import { RuntimeEnvironmentCard } from './RuntimeEnvironmentCard'; +import RuntimeOptimizationsCard from './RuntimeOptimizationsCard'; +import { WorkflowArtifactRequirementRow } from './WorkflowArtifactRequirementRow'; + +type Inspection = Awaited>; + +export default function WorkflowSetupChecklist({ + onInstall, +}: { + onInstall: (target: StudioAutoResourceInstallTarget) => Promise; +}) { + const nodes = useFlowStore((state) => state.nodes); + const sourceKey = useFlowStore((state) => flowExecutionScopeSourceKey(state.nodes, state.edges)); + const workflowId = useStudioStore((state) => state.activeWorkflowTabId); + const resourceMode = useStudioStore((state) => state.form.resourceMode); + const instance = useNodesStore((state) => state.instance); + const runtime = useNodesStore((state) => state.runtimeStatus); + const requests = useNodesStore((state) => state.discoveryRequests); + const runtimeError = useNodesStore((state) => state.runtimeError); + const optionalCatalog = useNodesStore((state) => state.optionalRuntimeCatalog); + const downloads = useNodesStore((state) => state.hfDownloadProgress); + const hfCache = useNodesStore((state) => state.hfCache); + const localModels = useNodesStore((state) => state.localModels); + const diagnostics = useNodesStore((state) => state.modelCacheDiagnostics); + const openModels = useSettingsStore((state) => state.setModelManagerOpener); + const [target, setTarget] = useState(''); + const [revision, setRevision] = useState(0); + const [result, setResult] = useState<{ key: string; value?: Inspection; error?: string }>(); + const key = JSON.stringify([sourceKey, workflowId, resourceMode, instance, target, revision, optionalCatalog]); + const hasGraph = nodes.some((node) => node.data.module && node.data.action && !node.data.uiState?.disabled); + useEffect(() => { + setTarget(''); + }, [workflowId]); + useEffect(() => { + if (!hasGraph || !instance) return; + const controller = new AbortController(); + const timer = window.setTimeout(() => { + void inspectWorkflowSetup(target || undefined, controller.signal).then( + (value) => { + if (!controller.signal.aborted) setResult({ key, value }); + }, + (error) => { + if (!controller.signal.aborted) + setResult({ key, error: formatRequestError(error, 'Could not inspect workflow setup.') }); + }, + ); + }, 100); + return () => { + controller.abort(); + window.clearTimeout(timer); + }; + }, [hasGraph, instance, key, target]); + const current = result?.key === key ? result : undefined; + const inspection = current?.value; + // Cache observations can change without changing the immutable graph inspection. + void [hfCache, localModels, diagnostics]; + const indexesReady = requests.hfCache.status === 'success' && requests.localModels.status === 'success'; + const artifacts = inspection && indexesReady ? workflowSetupArtifacts(inspection.graph) : []; + const required = inspection?.observation.requirements.filter((row) => row.requirement.requiredNow) ?? []; + const profileIds = [...new Set(required.flatMap((row) => row.requirement.profileIds))]; + const baseReady = + requests.runtime.status === 'success' && + runtime?.ready === true && + runtime.runtimeEnvironment.profileVerified && + runtime.runtimeEnvironment.executionReady && + ['transformers', 'peft'].every((name) => runtime.packages?.[name]?.available === true); + const online = + requests.runtime.status === 'success' && ['Online', 'Auto'].includes(runtime?.config?.hf_online_status ?? ''); + const baseLibraries = ['transformers', 'peft'] + .map((name) => { + const item = runtime?.packages?.[name]; + return `${name === 'peft' ? 'PEFT' : 'Transformers'}: ${item?.available ? (item.version ?? 'present; version not reported') : 'not verified'}`; + }) + .join(' · '); + return ( +
+

Workflow setup checklist

+

+ Uses the same enabled execution scope as Run. Inspection installs nothing. Model fit, graph inputs and + custom-code approval are checked separately at Run. +

+ + !node.hidden && + !node.data.uiState?.disabled && + (node.data.blockInstanceV2 || (node.data.module && node.data.action)), + ) + .map((node) => ({ + value: node.id, + label: `${node.data.blockInstanceV2 ? 'Run Block' : 'Run through'}: ${node.data.label || node.id}`, + })), + ]} + /> +
+

1. Base environment — {baseReady ? 'Verified' : 'Needs verification'}

+

{baseLibraries}

+

+ These core libraries belong to ordinary installation. They require no optional Activate step. Repair a missing + or incompatible base with the installation procedure for your accelerator. +

+ {runtimeError ? ( +

+ {runtimeError} +

+ ) : null} +
+
+

2. Model artifacts

+ {!hasGraph ? ( +

Open or create a workflow to inspect its selected requirements.

+ ) : !current ? ( +

+ Checking the selected execution scope… +

+ ) : current.error ? ( +

+ {current.error} +

+ ) : !indexesReady ? ( +

Model indexes are not current. Refresh status before installing.

+ ) : !artifacts.length ? ( +

+ No static model artifact is declared in this scope. Computed model selections are resolved at Run. +

+ ) : ( + artifacts.map((requirement) => { + const job = workflowSetupDownload(requirement, downloads[requirement.repo]); + return ( +
+ { + try { + if (!inspection) throw new Error('Setup is not current.'); + inspection.assertCurrent(); + } catch { + enqueueSnackbar('The workflow changed. Refresh its checklist before installing.', { + variant: 'info', + }); + return; + } + await onInstall(value); + } + : undefined + } + onUseLocal={(item) => + openModels({ + nodeId: null, + fieldKey: null, + focus: { source: 'setup', label: item.label, repo: item.repo, requirementId: item.id }, + }) + } + /> +

+ {requirement.revision + ? `Revision: ${requirement.revision}. ` + : 'Revision is resolved by the selected loader. '} + Download size:{' '} + {job.progress?.total_bytes != null + ? formatDownloadBytes(job.progress.total_bytes) + : 'unknown until the backend resolves its file inventory'} + . + {!online && !requirement.status.runnable + ? ' Downloads are unavailable while offline or connection settings are unverified. Use Models to review access and connection settings.' + : ''} + {job.blocked + ? ' A download for this repository is already active. Follow the existing job in Downloads; its exact file selection is not confirmed for this row.' + : ''} +

+
+ ); + }) + )} +
+
+

3. Extra feature packages

+ {inspection ? ( + required.length ? ( + required.map((row, index) => ( +

+ {row.nodeIds.length} node{row.nodeIds.length === 1 ? '' : 's'}:{' '} + {row.requirement.state.replace(/_/g, ' ')} — {row.requirement.reason.replace(/_/g, ' ')}. +

+ )) + ) : ( +

No additional managed runtime is required by the declared scope.

+ ) + ) : ( +

Requirements are unverified until scope inspection succeeds.

+ )} + +
+
+

4. System prerequisites

+

+ Drivers, platform support and guided installation steps come from this backend. A package install does not + establish device or model compatibility. +

+ +
+ { + const store = useNodesStore.getState(); + void Promise.all([ + store.fetchRuntimeStatus(), + store.fetchOptionalRuntimes(), + store.refreshModelIndexes(true, { invalidateAutoPlans: false }), + ]); + setRevision((value) => value + 1); + }} + > + Refresh checklist status + +
+ ); +} diff --git a/src/studio/artifactRequirements.ts b/src/studio/artifactRequirements.ts index 5c31a9d1..28573e5a 100644 --- a/src/studio/artifactRequirements.ts +++ b/src/studio/artifactRequirements.ts @@ -43,6 +43,8 @@ export type WorkflowArtifactRequirement = { modelPath?: string; paramKey?: string; details?: string; + revision?: string; + files?: string[]; }; type WorkflowArtifactRequirementOptions = { @@ -324,9 +326,10 @@ export function getGraphWorkflowArtifactRequirements({ const seen = new Set(); const exactReferences = selectedReferences.filter((reference) => { const label = reference.value.split(/[\\/]/).pop() || reference.value; - const selection = reference.downloadFiles - ? ':' + JSON.stringify([reference.revision, reference.downloadFiles]) - : ''; + const selection = + reference.downloadFiles || reference.revision + ? ':' + JSON.stringify([reference.revision, reference.downloadFiles]) + : ''; const key = `${roleForArtifact(reference.value, label)}:${reference.value}`.toLowerCase() + selection; if (seen.has(key)) return false; seen.add(key); @@ -334,9 +337,10 @@ export function getGraphWorkflowArtifactRequirements({ }); const requirements = exactReferences.map((reference): WorkflowArtifactRequirement => { const label = reference.value.split(/[\\/]/).pop() || reference.value; - const selectionId = reference.downloadFiles - ? ':selection-' + hashString(JSON.stringify([reference.revision, reference.downloadFiles])) - : ''; + const selectionId = + reference.downloadFiles || reference.revision + ? ':selection-' + hashString(JSON.stringify([reference.revision, reference.downloadFiles])) + : ''; const id = `graph:${reference.nodeId}:${reference.paramKey}:${reference.value}${selectionId}`; if (invalidFormatNodes.has(reference.nodeId)) { const status = getStudioModelCacheStatus(null, hfCache, localModels, modelCacheDiagnostics); @@ -402,6 +406,8 @@ export function getGraphWorkflowArtifactRequirements({ primaryAction === 'Install' || primaryAction === 'Repair' ? { ...effectiveInstallTarget, actionLabel: primaryAction } : undefined, + revision: reference.revision, + files: reference.downloadFiles, nodeId: reference.nodeId, nodeLabel: reference.nodeLabel, paramKey: reference.paramKey, diff --git a/src/studio/optionalRuntimes.ts b/src/studio/optionalRuntimes.ts index 452d9da7..5cc4005b 100644 --- a/src/studio/optionalRuntimes.ts +++ b/src/studio/optionalRuntimes.ts @@ -710,6 +710,37 @@ export function stagedOptionalRuntimeEnvironment( return catalog.stagedEnvironmentIds[profile.id + profile.specDigest]; } +export function optionalRuntimeSetupStatus( + profile: OptionalRuntimeProfileStatus, + catalog: OptionalRuntimeCatalog, + workerReady: boolean, +) { + if (!['active', 'base'].includes(catalog.processLoadStatus)) + return `${catalog.processLoadStatus.replace(/_/g, ' ')}. Follow the existing setup operation or refresh status.`; + if (profile.contractState !== 'qualified' || !profile.cutoverReady) return `unavailable (${profile.contractState}).`; + if (profile.overlayStatus === 'active') { + const exact = + catalog.processLoadStatus === 'active' && + catalog.activeOptionalRuntimeSpecs.some( + (spec) => spec.profileId === profile.id && spec.specDigest === profile.specDigest, + ); + return !exact + ? 'unavailable — the current worker has not verified this exact runtime identity.' + : workerReady + ? 'active — verified in this worker.' + : 'verifying worker readiness; not ready yet.'; + } + if (profile.overlayStatus === 'staged') + return 'staged — installed; activation, restart and worker verification are still needed.'; + if (profile.overlayStatus === 'staged_unchecked') + return 'staged unchecked — repair or validation is required before activation.'; + if (profile.overlayStatus === 'missing' && profile.status === 'wrong_version') + return 'wrong version — use the reviewed installation or repair action.'; + if (profile.overlayStatus === 'missing' && profile.status === 'present_unqualified') + return 'present unqualified — visible packages do not establish a verified runtime.'; + return `${profile.overlayStatus.replace(/_/g, ' ')}.`; +} + export function optionalRuntimeBlockState( requirement: OptionalRuntimeRequirement | undefined, catalog: OptionalRuntimeCatalog | null, @@ -718,12 +749,17 @@ export function optionalRuntimeBlockState( if (requirement.state !== 'active') return requirement.state; if (!catalog || catalog.processLoadStatus === 'base') return 'unavailable'; if (catalog.processLoadStatus !== 'active') return catalog.processLoadStatus; - // Profile IDs are alternative pins (e.g. transformers 5.14.1 vs reviewed main). - // One fully active overlay satisfies the requirement. + // Match the backend guard: every requested profile must be supplied by the + // one active environment, including its explicitly declared satisfiesProfiles. + // An installed or separately staged environment cannot complete the set. let fallback: OptionalRuntimeRequirement['state'] = 'unavailable'; + let missing = false; for (const profileId of requirement.profileIds) { const profile = catalog.profiles.find(({ id }) => id === profileId); - if (!profile) continue; + if (!profile) { + missing = true; + continue; + } if ( profile.cutoverReady && profile.contractState === 'qualified' && @@ -732,8 +768,9 @@ export function optionalRuntimeBlockState( (spec) => spec.profileId === profile.id && spec.specDigest === profile.specDigest, ) ) { - return null; + continue; } + missing = true; if (profile.overlayStatus === 'active' || !profile.cutoverReady || profile.contractState !== 'qualified') continue; if (profile.overlayStatus === 'staged' || profile.overlayStatus === 'repair_required') { fallback = profile.overlayStatus; @@ -741,5 +778,5 @@ export function optionalRuntimeBlockState( fallback = profile.status; } } - return fallback; + return missing || requirement.profileIds.length === 0 ? fallback : null; } diff --git a/src/studio/workflowSetup.ts b/src/studio/workflowSetup.ts new file mode 100644 index 00000000..0b34a060 --- /dev/null +++ b/src/studio/workflowSetup.ts @@ -0,0 +1,178 @@ +import config from '../../app.config'; +import { requestJson } from '../utils/requestJson'; +import { useFlowStore, flowExecutionScopeSourceKey, type CustomNodeType } from '../stores/useFlowStore'; +import { useNodesStore } from '../stores/useNodeStore'; +import { + captureWorkflowOperationContext, + assertWorkflowOperationContext, + useStudioStore, +} from '../stores/useStudioStore'; +import { prepareExecutionScope, executionScopeIncludesRoot } from '../workflow/prepareExecutionScope'; +import { collectNodeModelReferences } from './runReadiness'; +import { getGraphWorkflowArtifactRequirements } from './artifactRequirements'; +import { parseOptionalRuntimeRequirement, type OptionalRuntimeRequirement } from './optionalRuntimes'; +import type { ApiGraphExport } from '../types/api'; +import type { HfDownloadProgress } from '../stores/useNodeStore'; +import type { WorkflowArtifactRequirement } from './artifactRequirements'; +import { isHfDownloadActive } from './modelInstall'; + +export function workflowSetupDownload(requirement: WorkflowArtifactRequirement, progress?: HfDownloadProgress) { + // The public job reports a revision and file count, not exact requested files. + // A count cannot prove file identity. Keep the durable job in Downloads and + // prevent a second mutation instead of labelling it this row's progress. + const matches = progress && !requirement.files?.length && (requirement.revision ?? '') === (progress.revision ?? ''); + return { + progress: matches ? progress : undefined, + blocked: Boolean(progress && isHfDownloadActive(progress) && !matches), + }; +} + +export type WorkflowSetupRuntime = { nodeIds: string[]; requirement: OptionalRuntimeRequirement }; +export type WorkflowSetupObservation = { + schemaVersion: 1; + instance: string; + graphHash: string; + requirements: WorkflowSetupRuntime[]; +}; +const record = (value: unknown): value is Record => + Boolean(value && typeof value === 'object' && !Array.isArray(value)); + +export function parseWorkflowSetup(value: unknown): WorkflowSetupObservation { + if ( + !record(value) || + value.schemaVersion !== 1 || + typeof value.instance !== 'string' || + !value.instance || + value.instance.length > 256 || + typeof value.graphHash !== 'string' || + !/^sha256:workflow-auto-v1:[a-f0-9]{64}$/u.test(value.graphHash) || + !Array.isArray(value.requirements) || + value.requirements.length > 2048 + ) + throw new Error('The workflow setup response is invalid. Refresh its status.'); + const seen = new Set(); + const requirements = value.requirements.map((row): WorkflowSetupRuntime => { + if ( + !record(row) || + !Array.isArray(row.nodeIds) || + !row.nodeIds.length || + row.nodeIds.length > 2048 || + !row.nodeIds.every((id) => typeof id === 'string' && id.length > 0 && id.length <= 1024) + ) + throw new Error('The workflow setup scope is invalid. Refresh its status.'); + for (const id of row.nodeIds as string[]) { + if (seen.has(id) || seen.size >= 2048) throw new Error('The workflow setup scope is duplicated or too large.'); + seen.add(id); + } + return { nodeIds: row.nodeIds as string[], requirement: parseOptionalRuntimeRequirement(row.requirement) }; + }); + return { schemaVersion: 1, instance: value.instance, graphHash: value.graphHash, requirements }; +} + +/** Ordinary Run export/lowering, without authoring, randomized seeds or submission. */ +export async function inspectWorkflowSetup(targetNodeId?: string, signal?: AbortSignal) { + const context = captureWorkflowOperationContext(); + const sourceKey = flowExecutionScopeSourceKey(useFlowStore.getState().nodes, useFlowStore.getState().edges); + const check = () => { + signal?.throwIfAborted(); + assertWorkflowOperationContext(context); + if (sourceKey !== flowExecutionScopeSourceKey(useFlowStore.getState().nodes, useFlowStore.getState().edges)) + throw new Error('The workflow changed. Refresh setup for its current settings.'); + }; + const pending = prepareExecutionScope({ targetNodeId, workflowContext: context, signal }); + const executionScope = pending ? await pending : undefined; + check(); + const flow = useFlowStore.getState(); + const sourceGraph = + useStudioStore.getState().form.resourceMode === 'auto' + ? (await import('./legacyBlockMovementV2')).prepareLegacyGraphForAutoV2(flow.nodes, flow.edges, targetNodeId) + : undefined; + check(); + let graph = flow.exportGraph( + '', + targetNodeId && sourceGraph ? (sourceGraph.remapped.get(targetNodeId) ?? targetNodeId) : targetNodeId, + { randomizeSeeds: false, executionScope, ...(sourceGraph ? { sourceGraph } : {}) }, + ); + const scopedNodes = (sourceGraph?.nodes ?? flow.nodes).filter((node) => + executionScopeIncludesRoot(executionScope, node.id), + ); + if ( + scopedNodes.some((node) => + node.data.blockInstanceV2?.effectiveGraph.nodes.some( + (child) => child.modularDiffusers?.kind === 'upstream_block', + ), + ) + ) { + const lower = await (await import('./modularComposition')).prepareModularCompositionExecutionV2(flow, scopedNodes); + check(); + graph = lower(graph); + } + const observation = await requestJson(`${config.serverAddress}/runtime/workflow-setup`, { + method: 'POST', + headers: { 'Content-Type': 'application/json' }, + signal, + timeoutMs: 30_000, + body: JSON.stringify({ + schemaVersion: 1, + graph: { nodes: graph.nodes, paths: graph.paths, ...(graph.loops ? { loops: graph.loops } : {}) }, + }), + parse: parseWorkflowSetup, + }); + check(); + const ids = observation.requirements.flatMap((row) => row.nodeIds); + if ( + ids.length !== Object.keys(graph.nodes).length || + ids.some((id) => !Object.prototype.hasOwnProperty.call(graph.nodes, id)) || + observation.instance !== useNodesStore.getState().instance + ) + throw new Error('The backend or execution scope changed. Refresh setup before taking action.'); + return { graph, observation, assertCurrent: check }; +} + +/** Read the actual lowered node parameters, never another branch's saved draft. */ +export function workflowSetupArtifacts(graph: ApiGraphExport) { + const store = useNodesStore.getState(); + const nodes = Object.entries(graph.nodes).map(([id, node]): CustomNodeType => ({ + id, + position: { x: 0, y: 0 }, + type: 'custom', + data: { + type: 'custom', + module: node.module, + action: node.action, + category: '', + label: useFlowStore.getState().nodes.find((item) => item.id === id)?.data.label ?? node.action, + params: Object.fromEntries( + Object.entries(node.params) + .filter(([, param]) => !param.sourceId) + .map(([key, param]) => [ + key, + { + ...store.nodesRegistry[`${node.module}.${node.action}`]?.params[key], + // The concrete export owns the value. A registry default cannot fill a connected input. + value: param.value, + default: undefined, + }, + ]), + ), + }, + })); + return getGraphWorkflowArtifactRequirements({ + references: nodes.flatMap((node) => + collectNodeModelReferences(node).map((reference) => ({ + ...reference, + nodeId: node.id, + nodeLabel: node.data.label, + ...(typeof node.data.params.revision?.value === 'string' && + /^[a-f0-9]{40}$/u.test(node.data.params.revision.value) + ? { revision: node.data.params.revision.value } + : {}), + })), + ), + nodes, + workflowModelDescriptors: store.workflowModelDescriptors, + hfCache: store.hfCache, + localModels: store.localModels, + modelCacheDiagnostics: store.modelCacheDiagnostics, + }); +} diff --git a/tests/e2e/studio-mocked/studio-mocked.spec.ts b/tests/e2e/studio-mocked/studio-mocked.spec.ts index 3c5f5efb..0d2369fa 100644 --- a/tests/e2e/studio-mocked/studio-mocked.spec.ts +++ b/tests/e2e/studio-mocked/studio-mocked.spec.ts @@ -7329,6 +7329,43 @@ async function installMockRoutes(page: Page, options: { graphQualifiedQwenCluste }), }); }); + await page.route('**/runtime/workflow-setup', async (route) => { + const body = route.request().postDataJSON() as { graph: ApiGraphExport }; + const required: string[] = []; + const base: string[] = []; + Object.entries(body.graph.nodes).forEach(([id, node]) => { + (mockOptionalRuntimeBaseIncluded || !/LoadPipeline|ModelsLoader|LoadModel/u.test(node.action) + ? base + : required + ).push(id); + }); + const requirement = (optional: boolean) => ({ + schemaVersion: 1, + delivery: optional ? 'optional_overlay' : 'base', + requiredNow: optional, + profileIds: optional ? ['huggingface-transformers-peft-5.14.1-0.20.0'] : [], + executionProfileIds: optional ? ['mock:loader'] : [], + state: optional + ? mockOptionalRuntimeQualified + ? 'active' + : mockOptionalRuntimeJobState === 'ready' + ? 'staged' + : 'unavailable' + : 'base_satisfied', + reason: optional ? 'optional_runtime_status_required' : 'base_runtime', + }); + await route.fulfill({ + json: { + schemaVersion: 1, + instance: 'mock', + graphHash: `sha256:workflow-auto-v1:${'a'.repeat(64)}`, + requirements: [ + ...(base.length ? [{ nodeIds: base, requirement: requirement(false) }] : []), + ...(required.length ? [{ nodeIds: required, requirement: requirement(true) }] : []), + ], + }, + }); + }); await page.route('**/runtime/optional-runtimes**', async (route) => { const url = new URL(route.request().url()); const method = route.request().method(); @@ -9691,6 +9728,134 @@ test('Template Gallery setup plans and installs only after explicit consent', as expect(mockDownloadCalls).toBe(0); }); +test('workflow setup checklist follows selected Run scope and preserves saved work without setup mutations', async ({ + page, +}) => { + mockInstalledRepos.add('test/required'); + mockOptionalRuntimeBaseIncluded = true; + await ensureFrontend(); + await installMockRoutes(page); + let healthy = true; + const inspected: string[][] = []; + const mutations: string[] = []; + page.on('request', (request) => { + if ( + request.method() === 'POST' && + /\/(?:graph|hf_download|runtime\/optional-runtimes\/(?:install|activate))$/u.test(new URL(request.url()).pathname) + ) + mutations.push(request.url()); + }); + await page.route('**/runtime/status**', (route) => + route.fulfill({ + json: { + ready: healthy, + runtime_fingerprint: 'worker-runtime-identity', + config: { hf_online_status: 'Auto' }, + runtime_profile: { + requested: 'cpu', + installed: 'cpu', + execution_ready: healthy, + status: healthy ? 'ready' : 'setup-required', + repair_command: 'Use the reviewed installation procedure for the current accelerator.', + issues: healthy + ? [] + : [ + { + code: 'missing_required_package', + severity: 'error', + message: 'PEFT is missing from the base environment.', + }, + ], + }, + packages: { + torch: { available: true }, + transformers: { available: true, version: '5.18.0' }, + peft: { available: healthy, version: '0.21.2' }, + }, + }, + }), + ); + await page.route('**/runtime/workflow-setup', async (route) => { + const body = route.request().postDataJSON() as { graph: ApiGraphExport }; + inspected.push(Object.keys(body.graph.nodes)); + await route.fallback(); + }); + await page.goto(FRONTEND_URL, { waitUntil: 'domcontentloaded' }); + await page.waitForFunction(() => Boolean(window.__MODIFF_E2E__?.getState().studio.workflowCanvasHydrated)); + await dismissTaskLauncher(page); + await page.evaluate(async () => { + const { useFlowStore } = await import('/src/stores/useFlowStore.ts'); + const { useStudioStore } = await import('/src/stores/useStudioStore.ts'); + const node = (id: string, repo?: string, disabled = false) => ({ + id, + position: { x: id === 'output' ? 400 : 0, y: 0 }, + type: 'custom', + data: { + type: 'custom' as const, + module: 'modules.Test', + action: id === 'output' ? 'Preview' : 'Load', + label: id, + category: '', + uiState: { disabled }, + params: { + ...(repo ? { model_id: { display: 'modelselect', value: { source: 'hub', value: repo } } } : {}), + input: { display: 'input', type: 'pipeline' }, + output: { display: 'output', type: 'pipeline' }, + }, + }, + }); + useFlowStore.getState().replaceGraph({ + nodes: [ + node('required', 'test/required'), + node('output'), + node('unrelated', 'test/unrelated'), + node('disabled', 'test/disabled', true), + ], + edges: [ + { + id: 'required-output', + source: 'required', + sourceHandle: 'output', + target: 'output', + targetHandle: 'input', + }, + ], + }); + useStudioStore.setState({ form: { ...useStudioStore.getState().form, resourceMode: 'expert' } }); + useStudioStore.getState().saveActiveWorkflowTab(true); + window.__MODIFF_E2E__!.openWorkspacePanelForTest('setup'); + }); + const before = await page.evaluate(() => window.__MODIFF_E2E__!.exportWorkflowGraph()); + const root = page.getByTestId('workflow-setup-checklist'); + for (const name of ['Base environment', 'Model artifacts', 'Extra feature packages', 'System prerequisites']) + await expect(root.getByRole('group', { name, exact: true })).toBeVisible(); + await expect(root.getByRole('group', { name: 'Base environment', exact: true })).toContainText('Verified'); + await expect(root).toContainText('PEFT: 0.21.2'); + await expect(root.getByRole('group', { name: 'Model artifacts', exact: true })).toContainText('unrelated'); + await root.getByRole('button', { name: 'Workflow setup scope' }).click(); + await page.getByRole('option', { name: 'Run through: output', exact: true }).click(); + await expect.poll(() => inspected.at(-1)?.sort()).toEqual(['output', 'required']); + const artifacts = root.getByRole('group', { name: 'Model artifacts', exact: true }); + await expect(artifacts).toContainText('required'); + await expect(artifacts).toContainText('Ready'); + await expect(artifacts).not.toContainText('unrelated'); + await expect(artifacts).not.toContainText('disabled'); + await expect(root.getByRole('group', { name: 'Extra feature packages', exact: true })).toContainText( + 'No additional managed runtime', + ); + healthy = false; + await root.getByRole('button', { name: 'Refresh checklist status', exact: true }).click(); + await expect(root.getByRole('group', { name: 'Base environment', exact: true })).toContainText('Needs verification'); + await expect(root.getByRole('group', { name: 'System prerequisites', exact: true })).toContainText('PEFT is missing'); + await expect(root.getByRole('button', { name: /^(Install|Activate)$/u })).toHaveCount(0); + expect(await page.evaluate(() => window.__MODIFF_E2E__!.exportWorkflowGraph())).toEqual(before); + await page.reload({ waitUntil: 'domcontentloaded' }); + await page.waitForFunction(() => Boolean(window.__MODIFF_E2E__?.getState().studio.workflowCanvasHydrated)); + await dismissTaskLauncher(page); + expect(await page.evaluate(() => window.__MODIFF_E2E__!.exportWorkflowGraph())).toEqual(before); + expect(mutations).toEqual([]); +}); + test('optional runtime setup is GET-only and keeps a pending target non-actionable', async ({ page }) => { mockInstalledRepos.clear(); mockInstalledRepos.add('Tongyi-MAI/Z-Image-Turbo'); @@ -9822,7 +9987,7 @@ test('qualified optional runtime setup requires consent and supports progress, c await expect(disclosure.getByTestId('optional-runtime-progress')).toContainText('MoDiff is ready', { timeout: 5_000, }); - await expect(disclosure.getByText(/active\./)).toBeVisible({ timeout: 5_000 }); + await expect(disclosure.getByText(/active — verified in this worker/)).toBeVisible({ timeout: 5_000 }); // Runtime activation rehydrates the workspace. On an empty graph its task // launcher can reopen, so dismiss it before interacting with Setup again. await dismissTaskLauncher(page); From e2c3cfee4e7a1f346f4637516ee74b989d18af9b Mon Sep 17 00:00:00 2001 From: Sourav Das Date: Sat, 7 Nov 2026 00:16:29 +0530 Subject: [PATCH 197/440] test: align setup disclosure and stabilize startup timing --- tests/e2e/studio-mocked/studio-mocked.spec.ts | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/tests/e2e/studio-mocked/studio-mocked.spec.ts b/tests/e2e/studio-mocked/studio-mocked.spec.ts index 0d2369fa..05ffe82a 100644 --- a/tests/e2e/studio-mocked/studio-mocked.spec.ts +++ b/tests/e2e/studio-mocked/studio-mocked.spec.ts @@ -16449,6 +16449,13 @@ test('mocked workflow artifact requirements are contextual and role grouped', as // The intentionally incomplete mock registry cannot materialize this Expert // modular graph. Setup still keeps the selected model requirement available so // Graph Fix can repair both the empty canvas and a missing model installation. + // Whole-workflow Run checks are independent of the selected setup scope and + // stay collapsed until explicitly requested. + await expect(page.getByText('Add nodes before running.', { exact: true })).toBeHidden(); + await page + .getByTestId('setup-current-issues') + .getByRole('button', { name: /^Whole workflow Run checks/ }) + .click(); await expect(page.getByText('Add nodes before running.', { exact: true })).toBeVisible(); await expect( page.getByTestId('setup-model-requirement-mode:QwenImageModularPipeline:control_image:qwen-controlnet-union'), @@ -34821,6 +34828,11 @@ test('standalone startup awaits owned metadata and fresh workflow reload retains }) => { await ensureFrontend(); await installMockRoutes(page); + // This case covers metadata arriving before the bounded legacy fallback. + // Keep that boundary deterministic on a loaded CI runner; the unit contract + // separately covers an unknown/busy worker outlasting the fallback deadline. + await page.clock.install({ time: new Date('2026-01-01T00:00:00.000Z') }); + await page.clock.pauseAt(new Date('2026-01-01T00:00:01.000Z')); let queueRequests = 0; const documents: Array<{ id: string; method: string }> = []; const missingDocuments: string[] = []; @@ -34853,6 +34865,7 @@ test('standalone startup awaits owned metadata and fresh workflow reload retains await page.goto(FRONTEND_URL, { waitUntil: 'domcontentloaded' }); await expect(page.getByTestId('task-launcher')).toBeVisible(); await expect(page.getByTestId('startup-workspace-gate')).toHaveCount(0); + await page.clock.runFor(1200); const id = await page.evaluate(() => window.__MODIFF_E2E__!.getState().studio.activeWorkflowTabId!); await expect.poll(() => documents.filter((x) => x.id === id).length).toBeGreaterThan(0); expect(documents.filter((x) => x.id === id)[0]!.method).toBe('PUT'); @@ -34862,6 +34875,7 @@ test('standalone startup awaits owned metadata and fresh workflow reload retains await page.reload({ waitUntil: 'domcontentloaded' }); await expect(page.getByTestId('task-launcher')).toBeVisible(); await expect(page.getByTestId('startup-workspace-gate')).toHaveCount(0); + await page.clock.runFor(1200); await expect.poll(() => documents.slice(before).filter((x) => x.id === id).length).toBeGreaterThan(0); expect(documents.slice(before).find((x) => x.id === id)!.method).toBe('GET'); expect(missingDocuments).toEqual([]); From a745e4e7c9909eabd114c6c9ce7ce9567585846a Mon Sep 17 00:00:00 2001 From: Sourav Das Date: Sat, 7 Nov 2026 01:54:22 +0530 Subject: [PATCH 198/440] Show pending setup checks without diagnosing a missing installation --- docs/modiff-client-architecture.md | 6 +++ src/components/WorkflowSetupChecklist.tsx | 27 ++++++++---- tests/e2e/studio-mocked/studio-mocked.spec.ts | 44 +++++++++++++++++-- 3 files changed, 64 insertions(+), 13 deletions(-) diff --git a/docs/modiff-client-architecture.md b/docs/modiff-client-architecture.md index f803ef4f..fdba087d 100644 --- a/docs/modiff-client-architecture.md +++ b/docs/modiff-client-architecture.md @@ -1192,6 +1192,12 @@ prerequisites. Job file counts do not establish exact download-file identity: follow the existing repository job and prevent duplicate mutations when the public status cannot prove that row's selection. +While the current runtime observation is pending, the checklist shows checking +instead of passing a null profile to the setup card. A failed read is unavailable +verification, not evidence that installation is missing. Only a successful current +read supplies profile conclusions. Refresh uses the existing model-index batch +once; that batch already refreshes the runtime and optional-package catalog. + The Setup surface renders install or repair only when the exact profile is `qualified`, `cutoverReady`, and the backend advertises `installActionAvailable`. It sends the profile ID, exact spec digest, and diff --git a/src/components/WorkflowSetupChecklist.tsx b/src/components/WorkflowSetupChecklist.tsx index 0b0a15ff..899bf1ed 100644 --- a/src/components/WorkflowSetupChecklist.tsx +++ b/src/components/WorkflowSetupChecklist.tsx @@ -68,6 +68,7 @@ export default function WorkflowSetupChecklist({ const artifacts = inspection && indexesReady ? workflowSetupArtifacts(inspection.graph) : []; const required = inspection?.observation.requirements.filter((row) => row.requirement.requiredNow) ?? []; const profileIds = [...new Set(required.flatMap((row) => row.requirement.profileIds))]; + const runtimeChecking = requests.runtime.status === 'idle' || requests.runtime.status === 'loading'; const baseReady = requests.runtime.status === 'success' && runtime?.ready === true && @@ -113,13 +114,15 @@ export default function WorkflowSetupChecklist({ ]} />
-

1. Base environment — {baseReady ? 'Verified' : 'Needs verification'}

-

{baseLibraries}

+

+ 1. Base environment — {runtimeChecking ? 'Checking…' : baseReady ? 'Verified' : 'Needs verification'} +

+

{runtimeChecking ? 'Checking installed libraries and app readiness…' : baseLibraries}

These core libraries belong to ordinary installation. They require no optional Activate step. Repair a missing or incompatible base with the installation procedure for your accelerator.

- {runtimeError ? ( + {runtimeError && !runtimeChecking ? (

{runtimeError}

@@ -221,17 +224,23 @@ export default function WorkflowSetupChecklist({ Drivers, platform support and guided installation steps come from this backend. A package install does not establish device or model compatibility.

- + {runtimeChecking ? ( +

+ Checking system prerequisites… +

+ ) : requests.runtime.status !== 'success' || !runtime ? ( +

+ System prerequisites could not be verified. Refresh checklist status to try again. +

+ ) : ( + + )}
{ const store = useNodesStore.getState(); - void Promise.all([ - store.fetchRuntimeStatus(), - store.fetchOptionalRuntimes(), - store.refreshModelIndexes(true, { invalidateAutoPlans: false }), - ]); + void store.refreshModelIndexes(true, { invalidateAutoPlans: false }); setRevision((value) => value + 1); }} > diff --git a/tests/e2e/studio-mocked/studio-mocked.spec.ts b/tests/e2e/studio-mocked/studio-mocked.spec.ts index 05ffe82a..7c197375 100644 --- a/tests/e2e/studio-mocked/studio-mocked.spec.ts +++ b/tests/e2e/studio-mocked/studio-mocked.spec.ts @@ -9736,6 +9736,9 @@ test('workflow setup checklist follows selected Run scope and preserves saved wo await ensureFrontend(); await installMockRoutes(page); let healthy = true; + let runtimeUnavailable = false; + let runtimeWait: Promise | null = null; + let runtimeReads = 0; const inspected: string[][] = []; const mutations: string[] = []; page.on('request', (request) => { @@ -9745,8 +9748,11 @@ test('workflow setup checklist follows selected Run scope and preserves saved wo ) mutations.push(request.url()); }); - await page.route('**/runtime/status**', (route) => - route.fulfill({ + await page.route('**/runtime/status**', async (route) => { + runtimeReads++; + if (runtimeWait) await runtimeWait; + if (runtimeUnavailable) return route.abort('failed'); + return route.fulfill({ json: { ready: healthy, runtime_fingerprint: 'worker-runtime-identity', @@ -9773,8 +9779,8 @@ test('workflow setup checklist follows selected Run scope and preserves saved wo peft: { available: healthy, version: '0.21.2' }, }, }, - }), - ); + }); + }); await page.route('**/runtime/workflow-setup', async (route) => { const body = route.request().postDataJSON() as { graph: ApiGraphExport }; inspected.push(Object.keys(body.graph.nodes)); @@ -9843,15 +9849,45 @@ test('workflow setup checklist follows selected Run scope and preserves saved wo await expect(root.getByRole('group', { name: 'Extra feature packages', exact: true })).toContainText( 'No additional managed runtime', ); + const baseEnvironment = root.getByRole('group', { name: 'Base environment', exact: true }); + const systemPrerequisites = root.getByRole('group', { name: 'System prerequisites', exact: true }); + let releaseRuntime!: () => void; + runtimeWait = new Promise((resolve) => { + releaseRuntime = resolve; + }); + const readsBeforeRefresh = runtimeReads; + try { + await root.getByRole('button', { name: 'Refresh checklist status', exact: true }).click(); + await expect(baseEnvironment).toContainText('Checking'); + await expect(systemPrerequisites).toContainText('Checking system prerequisites'); + await expect(systemPrerequisites).not.toContainText('Needs setup'); + await expect(systemPrerequisites).not.toContainText('Profile unverified'); + await expect.poll(() => runtimeReads - readsBeforeRefresh).toBe(1); + } finally { + runtimeWait = null; + releaseRuntime(); + } + await expect(baseEnvironment).toContainText('Verified'); + await expect(systemPrerequisites.getByTestId('runtime-environment-card')).toContainText('Ready'); + runtimeUnavailable = true; + await root.getByRole('button', { name: 'Refresh checklist status', exact: true }).click(); + await expect(systemPrerequisites).toContainText('could not be verified'); + await expect(baseEnvironment.getByRole('alert')).toBeVisible(); + await expect(systemPrerequisites).not.toContainText('Needs setup'); + await expect(systemPrerequisites).not.toContainText('Profile unverified'); + runtimeUnavailable = false; healthy = false; await root.getByRole('button', { name: 'Refresh checklist status', exact: true }).click(); await expect(root.getByRole('group', { name: 'Base environment', exact: true })).toContainText('Needs verification'); await expect(root.getByRole('group', { name: 'System prerequisites', exact: true })).toContainText('PEFT is missing'); await expect(root.getByRole('button', { name: /^(Install|Activate)$/u })).toHaveCount(0); expect(await page.evaluate(() => window.__MODIFF_E2E__!.exportWorkflowGraph())).toEqual(before); + healthy = true; await page.reload({ waitUntil: 'domcontentloaded' }); await page.waitForFunction(() => Boolean(window.__MODIFF_E2E__?.getState().studio.workflowCanvasHydrated)); await dismissTaskLauncher(page); + await expect(baseEnvironment).toContainText('Verified'); + await expect(systemPrerequisites.getByTestId('runtime-environment-card')).toContainText('Ready'); expect(await page.evaluate(() => window.__MODIFF_E2E__!.exportWorkflowGraph())).toEqual(before); expect(mutations).toEqual([]); }); From e5c787ebd89c2467e431b47d4ceaf8df865a5d04 Mon Sep 17 00:00:00 2001 From: Sourav Das Date: Sat, 7 Nov 2026 07:57:55 +0530 Subject: [PATCH 199/440] Show model-change conflicts before applying a selection --- docs/workflow-authoring-ux.md | 6 ++++ .../r03-editable-prototyping.md | 35 +++++++++++++++++++ scripts/bundle-budget.mjs | 7 ++++ src/components/OperationModelPicker.tsx | 2 ++ tests/e2e/studio-mocked/studio-mocked.spec.ts | 23 ++++++++++-- 5 files changed, 71 insertions(+), 2 deletions(-) create mode 100644 plans/release-20261028/r03-editable-prototyping.md diff --git a/docs/workflow-authoring-ux.md b/docs/workflow-authoring-ux.md index f8d26acc..1a84a4c6 100644 --- a/docs/workflow-authoring-ux.md +++ b/docs/workflow-authoring-ux.md @@ -254,6 +254,12 @@ Edited values, custom wiring or ambiguous outputs use the preservation/review planner. Schema or connection differences requiring review are shown before applying. Undo/Redo and saved workflow reload use the same graph history and persistence. +Model-change **Needs attention** details open automatically for each selected +model requiring review. Read the incompatible values before Apply; the operator +can still collapse and reopen the section with the pointer or keyboard. Keeping +the current model leaves the graph unchanged. This presentation does not resolve +an incompatibility, waive validation or change the model-selection planner. + Legacy managed Task changes apply the existing fallback for an unavailable default/CUDA device using the current backend runtime metadata before building the graph. CPU offload settings normalize through the ordinary form policy; diff --git a/plans/release-20261028/r03-editable-prototyping.md b/plans/release-20261028/r03-editable-prototyping.md new file mode 100644 index 00000000..4a2ee55e --- /dev/null +++ b/plans/release-20261028/r03-editable-prototyping.md @@ -0,0 +1,35 @@ +# R03 editable prototyping + +Continue in the same backend/client PR7 pair. The existing task-first chooser, +native stage groups, inspectable Blocks, backend-declared model/task planners, +typed socket suggestions and nested UserNodes supply the representative path. +Do not replace these with a second executor or a client model compatibility table. + +The diagnosed remaining review defect is that model-selection attention details +were collapsed while Apply was available. A real browser RED retained the false +expanded state. The repair opens those details for the selected model, keeping +pointer/keyboard disclosure and the existing atomic Apply/Cancel transaction. +It changes no model selection, workflow values, resource policy or runtime path. + +The focused regression and 10 related mocked browser journeys pass, covering +native-stage preservation, compatible switching, delayed-read invalidation, +typed suggestions in both directions, Undo/Redo and reusable-node persistence. +163 focused unit contracts pass. These are software/authoring checks, not model +output or hardware qualification. Full paired gates, current CI, exact packaging, +fresh protected adoption and a native no-model journey remain required before +delivery; record their exact source and results in the existing PR descriptions. + +The native journey starts from a task, inspects actual stages, edits a prompt, +inserts a typed processor, reviews a cached compatible model/task switch and an +incompatibility, then saves/reloads and reuses a nested UserNode. Record gestures, +dialogs, corrections and unexpected rebuilding rather than claiming a universal +node-count target. Inspecting a stage must preserve the executable API graph. +Keep whole-pipeline exceptions explicit and saved templates/defaults unchanged. + +A fresh user prototyping review is required before closing the original A01 +usability goal. Technical tests cannot supply that verdict. R02 is separately +delivered; its closed setup/model/native proofs must not be repeated for R03. +All43 missing-model cases remain user-held. This UI-only change needs no model +run, installation, download, cache retirement or modification of accepted media. +Original Auto/creative, codec, Wan deadline, Gallery/public-lock, physical hardware +and publication limitations retain their separate scope. diff --git a/scripts/bundle-budget.mjs b/scripts/bundle-budget.mjs index 3c7173b4..3f148691 100644 --- a/scripts/bundle-budget.mjs +++ b/scripts/bundle-budget.mjs @@ -1,3 +1,9 @@ +// Visible model-change conflicts measure largest/startup/deferred gzip +// 497985/676473/335647 over 497981/676468/335619. Only the deferred +// OperationModelPicker changes after immutable import-URL normalization; all119 +// assets and four startup/90 deferred memberships stay exact. Allow only the +// measured four-byte largest-chunk import fingerprint growth. Aggregate startup, +// deferred, 64 KiB chunk, dependency, minifier and loading limits stay unchanged. // Selected workflow setup measures largest/startup/deferred gzip // 497978/676464/335501 over 497685/676173/331955: add only 293/291/3546 bytes, // retaining 3/12/199 bytes of headroom. All119 assets,94 JS and four startup/ @@ -364,6 +370,7 @@ const SOURCE_LICENSES = new URL('../public/THIRD_PARTY_LICENSES.txt', import.met // Scoped video receipts and compatible adapter messaging measure 494870 bytes // in the largest startup asset (+46 over the cap). Add 64 bytes, no dependencies. const MAX_STARTUP_CHUNK_GZIP_BYTES = + 4 + 293 + 894 + 106 + diff --git a/src/components/OperationModelPicker.tsx b/src/components/OperationModelPicker.tsx index a247f2b5..8ee03c58 100644 --- a/src/components/OperationModelPicker.tsx +++ b/src/components/OperationModelPicker.tsx @@ -219,6 +219,8 @@ export default function OperationModelPicker({ ) : null} {review.plan.review.attention.length ? ( { + const rect = button.getBoundingClientRect(); + return button.contains(document.elementFromPoint(rect.x + rect.width / 2, rect.y + rect.height / 2)); + }), + ).toBe(true); + await expect(conflict).toBeInViewport(); expect((await publicFlux3FormatSnapshot(page)).semanticGraph).toEqual(beforeReview.semanticGraph); await review.getByRole('button', { name: 'Keep current model', exact: true }).click(); await expect(review).toHaveCount(0); From 823c5cfa9361b66d192435d75e59534f8c91e785 Mon Sep 17 00:00:00 2001 From: Sourav Das Date: Sat, 7 Nov 2026 11:15:19 +0530 Subject: [PATCH 200/440] Expose stage editing and distinguish Blocks from Python nodes --- .github/workflows/ci.yml | 4 +- README.md | 2 +- docs/developer-first-node-ux.md | 22 ++++- scripts/block-renderer-v2.test.mjs | 2 +- scripts/bundle-budget.mjs | 9 ++ src/components/BlockNodeV2.tsx | 35 +++++-- src/components/BlockSaveDialogContentV2.tsx | 14 ++- src/components/CreateUserBlockDialog.tsx | 3 + src/components/CustomExtensionsPanel.tsx | 3 + src/components/EncodingNodeMenu.tsx | 13 ++- src/components/NodeList.tsx | 2 +- tests/e2e/studio-mocked/studio-mocked.spec.ts | 95 ++++++++++++++++++- 12 files changed, 173 insertions(+), 31 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 30c4ca19..07dc4033 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -33,7 +33,7 @@ jobs: with: repository: sdevil7th/MoDiff # Paired scoped Run recovery bundle and unchanged backend runtime. - ref: 09f377f54f975ffbfa8705ac4535905f0481f54f + ref: 89d0e0e2084818b5f0334df4ea8cc0becc785e07 path: MoDiff persist-credentials: false - name: Verify the pinned backend supports native setup @@ -88,7 +88,7 @@ jobs: with: repository: sdevil7th/MoDiff # Match the immutable backend revision in the Client quality job. - ref: 09f377f54f975ffbfa8705ac4535905f0481f54f + ref: 89d0e0e2084818b5f0334df4ea8cc0becc785e07 path: MoDiff persist-credentials: false - name: Verify the pinned backend supports native setup diff --git a/README.md b/README.md index 1e4ec3b9..eb4a3c8f 100644 --- a/README.md +++ b/README.md @@ -31,7 +31,7 @@ application source pair is: | MoDiff | `1239d1cecd12a7318eb263ca17c34d4fc0445d14` | | MoDiff-client | `c561a01395044fd71c1918e95fb9e9709d8e7601` | -CI backend contract: `09f377f54f975ffbfa8705ac4535905f0481f54f`. +CI backend contract: `89d0e0e2084818b5f0334df4ea8cc0becc785e07`. Both CI jobs use this exact immutable backend pin. The application table above is the earlier reviewed testing baseline. The selected backend includes the shared video diff --git a/docs/developer-first-node-ux.md b/docs/developer-first-node-ux.md index bdd0f1cc..4d7012e7 100644 --- a/docs/developer-first-node-ux.md +++ b/docs/developer-first-node-ux.md @@ -7,6 +7,17 @@ are retained. ## Custom nodes +**Saved Blocks** reuse groups of canvas nodes and their settings. Use **Create +block** for selected nodes or **Save as reusable Block…** on a stage group, then +insert the saved copy from the library. **Custom nodes** are Python extensions: +use **Add custom node** when you want to supply new code. Saving a Block does not +write Python or authorize additional source; existing source approvals still apply. + +On a collapsed reusable Block, **Edit nodes** expands its contents for ordinary +canvas editing. Collapse it again when finished; exposed controls stay directly +editable without expansion. Saving changes offers workflow-only, new reusable +Block and applicable existing-definition choices. + The full-width yellow **Add custom node** button opens Local, Hugging Face or Git. Selected source cards have a yellow border, tint and checkmark. Advanced contains optional name/revision settings; normal remote imports need only a repository. @@ -126,10 +137,13 @@ are not silently repaired or structurally rewritten when opened. Existing ControlNet and custom branches are retained; Image does not mean Control Image. Unsupported or ambiguous preparation reports an error rather than silently choosing a different operation or discarding existing work. -4. Use **Inspect implementation** in the options menu for stage details. Use - **Separate encoding stages** to edit individual stages/custom connections on - the canvas, with one Undo to restore the combined node. Inspection never turns - the node into an enclosing Block. +4. Choose the visible **Edit stages** action to edit individual stages and their + connections on the canvas. It uses the existing separation transaction, with + one Undo to restore the combined node. Common controls remain directly editable + without separation. **Inspect implementation** and the named **Separate…** + actions remain in the options menu. Inspection never turns the node into an + enclosing Block. Model Setup, Guidance, Prepare Mask and Output groups use the + same direct editing action where that compact presentation is supported. 5. Change model/task through Load Models. Compatible values and external branches are retained; incompatible changes still require the normal review. An existing image/audio source also supplies newly required inputs with the same declared diff --git a/scripts/block-renderer-v2.test.mjs b/scripts/block-renderer-v2.test.mjs index 4b849903..5281b3dd 100644 --- a/scripts/block-renderer-v2.test.mjs +++ b/scripts/block-renderer-v2.test.mjs @@ -1789,7 +1789,7 @@ test('both composite generations use one shared frame and V2 stays on the block 'utf8', ); assert.match(saveDialogSource, /Save as new \{noun\}/); - assert.match(saveDialogSource, /isFocusedStageNode\(instance\) \? 'node' : 'Block'/); + assert.match(saveDialogSource, /const noun = 'Block'/); assert.match(v2Source, /headerRef\.current\?\.offsetHeight/); assert.match(v2Source, /connectorRef\.current\?\.offsetHeight/); assert.match(v2Source, /headerHeight \+ connectorHeight \+ 96 \+ 4/); diff --git a/scripts/bundle-budget.mjs b/scripts/bundle-budget.mjs index 3f148691..cdd47616 100644 --- a/scripts/bundle-budget.mjs +++ b/scripts/bundle-budget.mjs @@ -1,3 +1,9 @@ +// Direct stage editing and Block/Python guidance measure largest/startup/deferred +// gzip 498039/676527/335816 over 497985/676473/335647. Add only the measured +// 54/54/169 bytes, retaining prior headroom. The five normalized changes are +// CustomExtensionsPanel, EncodingNode, NodeList, block-composition-tools and +// studio-templates. All119 assets, four startup/90 deferred memberships, +// dependencies, minifier/loading rules and the independent64KiB cap stay fixed. // Visible model-change conflicts measure largest/startup/deferred gzip // 497985/676473/335647 over 497981/676468/335619. Only the deferred // OperationModelPicker changes after immutable import-URL normalization; all119 @@ -370,6 +376,7 @@ const SOURCE_LICENSES = new URL('../public/THIRD_PARTY_LICENSES.txt', import.met // Scoped video receipts and compatible adapter messaging measure 494870 bytes // in the largest startup asset (+46 over the cap). Add 64 bytes, no dependencies. const MAX_STARTUP_CHUNK_GZIP_BYTES = + 54 + 4 + 293 + 894 + @@ -520,6 +527,7 @@ const MAX_STARTUP_CHUNK_GZIP_BYTES = // The same build measures 673359 aggregate startup bytes (+45 over the cap). // Keep 19 bytes of headroom; deferred limits and loading boundaries stay fixed. const MAX_STARTUP_GZIP_BYTES = + 54 + 291 + 896 + 107 + @@ -750,6 +758,7 @@ const MAX_DEFERRED_CHUNK_GZIP_BYTES = 64 * 1024; // 321033-byte cap, preserving 39 bytes of headroom at 321227. Startup caps, the // 65536-byte deferred chunk cap, dependencies and loading boundaries stay fixed. const MAX_DEFERRED_GZIP_BYTES = + 169 + 3546 + 1556 + 242 + diff --git a/src/components/BlockNodeV2.tsx b/src/components/BlockNodeV2.tsx index 29a639bc..a4c94b07 100644 --- a/src/components/BlockNodeV2.tsx +++ b/src/components/BlockNodeV2.tsx @@ -25,7 +25,7 @@ import { compactReviewedModularInternalLayoutV2 } from '../studio/reviewedModula import { saveBlockInstanceV2AsNewUserDefinition } from '../studio/blockPersistenceV2'; import { registeredRouteSetForBlockV1 } from '../studio/blockRouteSelectionV1'; import { useNodeLayoutSync } from '../utils/useNodeLayoutSync'; -import { BlockNodeFrame, ModiffDialog, ModiffFieldShell, ModiffIconButton, ModiffSelect } from '../ui'; +import { BlockNodeFrame, ModiffButton, ModiffDialog, ModiffFieldShell, ModiffIconButton, ModiffSelect } from '../ui'; import { enqueueSnackbar } from '../ui/snackbar'; import NodeContent from './NodeContent'; import BlockSaveDialogV2 from './BlockSaveDialogV2'; @@ -403,15 +403,30 @@ export const BlockNodeV2 = memo((node: NodeProps) => { > - - {view.expanded ? : } - + {view.expanded ? ( + + + + ) : ( + } + onClick={handleToggleExpanded} + data-testid={`user-block-toggle-${node.id}`} + > + Edit nodes + + )} } controls={ diff --git a/src/components/BlockSaveDialogContentV2.tsx b/src/components/BlockSaveDialogContentV2.tsx index eba35abb..a796c950 100644 --- a/src/components/BlockSaveDialogContentV2.tsx +++ b/src/components/BlockSaveDialogContentV2.tsx @@ -11,7 +11,6 @@ import { import { resolveCompositeBlockCapabilitiesV2 } from '../studio/compositeBlockCapabilitiesV2'; import { ModiffButton, ModiffInput, ModiffFieldShell } from '../ui'; import { enqueueSnackbar } from '../ui/snackbar'; -import { isFocusedStageNode } from '../workflow/encodingNodePresentation'; /** Mounted on open so the target and workflow context cannot drift behind the dialog. */ export default function BlockSaveDialogContentV2({ @@ -29,7 +28,7 @@ export default function BlockSaveDialogContentV2({ const ownerId = selected?.data.blockInstanceV2 ? nodeId : selected?.data.blockProjectionOwnerId; const instance = useFlowStore((state) => state.nodes.find((node) => node.id === ownerId)?.data.blockInstanceV2); const nested = Boolean(selected && !selected.data.blockInstanceV2); - const noun = !nested && isFocusedStageNode(instance) ? 'node' : 'Block'; + const noun = 'Block'; const [name, setName] = useState(() => { const title = useStudioStore.getState().workflowTabs.find((tab) => tab.id === context.workflowTabId)?.title || 'Workflow'; @@ -113,11 +112,7 @@ export default function BlockSaveDialogContentV2({ >

{selected?.data.label || 'Block'}

- + setName(event.currentTarget.value)} @@ -127,7 +122,10 @@ export default function BlockSaveDialogContentV2({ autoFocus /> -

Save a reusable copy with these settings and the inputs and outputs you configured.

+

A reusable Block stores canvas nodes and their settings.

+

+ It keeps the inputs, outputs and controls you configured. Add a custom Python node when you need new code. +

{nested ? 'Only this Block and its contents are saved. Outside nodes and their connections stay in this workflow.' diff --git a/src/components/CreateUserBlockDialog.tsx b/src/components/CreateUserBlockDialog.tsx index b54acc5d..8e4d4697 100644 --- a/src/components/CreateUserBlockDialog.tsx +++ b/src/components/CreateUserBlockDialog.tsx @@ -45,6 +45,9 @@ export default function CreateUserBlockDialog({ > {pendingBlock ? (

+

+ Group the selected canvas nodes into an editable Block. Save it to reuse in other workflows. +

{pendingBlock.error ? (

{pendingBlock.error} diff --git a/src/components/CustomExtensionsPanel.tsx b/src/components/CustomExtensionsPanel.tsx index 993e4790..13306d16 100644 --- a/src/components/CustomExtensionsPanel.tsx +++ b/src/components/CustomExtensionsPanel.tsx @@ -49,6 +49,9 @@ export default function CustomExtensionsPanel({ return (

+

+ Add a Python node to run your own code. Save a Block to reuse canvas nodes. +

+ + Edit stages + @@ -121,7 +132,7 @@ export default function EncodingNodeMenu({ {combinationOwner ? ( Combine encoding and Guidance ) : null} - {canSave ? Save as reusable node… : null} + {canSave ? Save as reusable Block… : null} requestAnimationFrame(() => setDocsOpen(true))}> Documentation diff --git a/src/components/NodeList.tsx b/src/components/NodeList.tsx index a859b145..11b11663 100644 --- a/src/components/NodeList.tsx +++ b/src/components/NodeList.tsx @@ -369,7 +369,7 @@ function NodeList() { ) : null}

- Nodes, task Blocks and Saved Blocks share this library. Choose a pipeline to add nodes with its declared inputs. + Saved Blocks reuse canvas nodes. Custom nodes run your Python code.

diff --git a/tests/e2e/studio-mocked/studio-mocked.spec.ts b/tests/e2e/studio-mocked/studio-mocked.spec.ts index 6ce95a38..0e7ea4af 100644 --- a/tests/e2e/studio-mocked/studio-mocked.spec.ts +++ b/tests/e2e/studio-mocked/studio-mocked.spec.ts @@ -35073,6 +35073,95 @@ async function optionalStageApi(page: Page) { }); } +for (const width of [1920, 1280]) + test(`stage editing has a visible direct action and preserves controls, connections, Undo and saved work at ${width}px`, async ({ + page, + }) => { + await openOptionalStageTemplate(page, 'qwen_text_rendering', 'Exact Text', false); + await page.setViewportSize({ width, height: width === 1280 ? 720 : 1200 }); + await page.getByRole('button', { name: 'Arrange graph', exact: true }).click(); + await page.screenshot({ path: test.info().outputPath('stage-editing-controls.png') }); + let submissions = 0; + page.on('request', (request) => { + if (request.method() === 'POST' && new URL(request.url()).pathname === '/graph') submissions++; + }); + const read = () => page.evaluate(() => window.__MODIFF_E2E__!.exportWorkflowGraph()); + const before = await optionalStageApi(page); + for (const label of ['Encode Inputs', 'Model Setup', 'Image Output']) { + const group = (await read()).nodes.find((node) => node.data.label === label)!; + const root = page.locator(`.react-flow__node[data-id="${group.id}"]`); + const edit = root.getByRole('button', { name: `Edit ${label} stages`, exact: true }); + await expect(edit).toBeVisible(); + await expect(edit).toHaveText('Edit stages'); + // No options menu, inspector or hover is needed. Enter uses the same action. + if (label === 'Encode Inputs') { + await edit.focus(); + await page.keyboard.press('Enter'); + } else await edit.click(); + await expect(root).toHaveCount(0); + expect(await optionalStageApi(page)).toEqual(before); + await page.locator('.react-flow__pane').click({ position: { x: 40, y: 140 } }); + await page.keyboard.press('Control+z'); + await expect(root).toBeVisible(); + expect(await optionalStageApi(page)).toEqual(before); + } + const output = (await read()).nodes.find((node) => node.data.label === 'Image Output')!; + await page.getByTestId(`output-node-${output.id}`).getByRole('button', { name: 'Image Output options' }).click(); + await page.getByRole('menuitem', { name: 'Save as reusable Block…', exact: true }).click(); + const save = page.getByTestId(`save-user-block-choices-${output.id}`); + await expect(save).toContainText('A reusable Block stores canvas nodes and their settings.'); + await save.getByLabel('Block name').fill('Reusable image output stages'); + await save.getByRole('button', { name: 'Save as new Block', exact: true }).click(); + await expect(save).toHaveCount(0); + expect(await optionalStageApi(page)).toEqual(before); + const input = (await read()).nodes.find((node) => node.data.label === 'Encode Inputs')!; + await page + .locator(`.react-flow__node[data-id="${input.id}"]`) + .getByRole('button', { name: 'Edit Encode Inputs stages' }) + .click(); + await page.getByTestId('topbar-save-workflow').click(); + await page.reload({ waitUntil: 'domcontentloaded' }); + await page.waitForFunction(() => Boolean(window.__MODIFF_E2E__?.getState().studio.workflowCanvasHydrated)); + await expect(page.locator(`.react-flow__node[data-id="${input.id}"]`)).toHaveCount(0); + expect(await optionalStageApi(page)).toEqual(before); + expect(submissions).toBe(0); + }); + +test('reusable canvas Blocks and Python nodes explain their different authoring paths', async ({ page }) => { + await openOptionalStageTemplate(page, 'qwen_text_rendering', 'Exact Text', false); + await page.getByTestId('left-tab-nodes').click(); + await expect( + page.getByText('Saved Blocks reuse canvas nodes. Custom nodes run your Python code.', { exact: true }), + ).toBeVisible(); + await page.getByRole('button', { name: 'Add custom node', exact: true }).click(); + const custom = page.getByTestId('custom-extensions-dialog'); + await expect(custom).toContainText('Add a Python node to run your own code. Save a Block to reuse canvas nodes.'); + await custom.getByRole('button', { name: 'Close', exact: true }).click(); + const read = () => page.evaluate(() => window.__MODIFF_E2E__!.exportWorkflowGraph()); + const before = await optionalStageApi(page); + for (const [i, node] of (await read()).nodes.entries()) + await page + .locator(`.react-flow__node[data-id="${node.id}"] header`) + .first() + .click(i ? { modifiers: ['Control'] } : {}); + await page.getByTestId('selection-toolbar-create-block').click(); + const create = page.getByTestId('create-user-block-dialog'); + await expect(create).toContainText('Group the selected canvas nodes into an editable Block.'); + await create.getByLabel('Name').fill('Editable canvas stages'); + await page.getByTestId('confirm-create-user-block').click(); + await expect(create).toHaveCount(0); + const block = (await read()).nodes.find((node) => node.data.blockInstanceV2)!; + const root = page.locator(`.react-flow__node[data-id="${block.id}"]`); + const expand = root.getByRole('button', { name: 'Expand block', exact: true }); + await expect(expand).toHaveText('Edit nodes'); + await expand.click(); + await expect(root.getByRole('button', { name: 'Collapse block', exact: true })).toBeVisible(); + expect(await optionalStageApi(page)).toEqual(before); + await root.getByRole('button', { name: 'Collapse block', exact: true }).click(); + await expect(expand).toBeVisible(); + expect(await optionalStageApi(page)).toEqual(before); +}); + test('optional Model Setup and Image Output preserve native stages, task review, separate, Undo and reusable save', async ({ page, }) => { @@ -35175,10 +35264,10 @@ test('optional Model Setup and Image Output preserve native stages, task review, await page.keyboard.press('Control+z'); await expect(setupNode).toBeVisible(); await outputNode.getByRole('button', { name: 'Image Output options', exact: true }).click(); - await page.getByRole('menuitem', { name: 'Save as reusable node…', exact: true }).click(); + await page.getByRole('menuitem', { name: 'Save as reusable Block…', exact: true }).click(); const save = page.getByTestId(`save-user-block-choices-${output.id}`); - await save.getByLabel('Node name').fill('My decoded image output'); - await save.getByRole('button', { name: 'Save as new node', exact: true }).click(); + await save.getByLabel('Block name').fill('My decoded image output'); + await save.getByRole('button', { name: 'Save as new Block', exact: true }).click(); await expect(save).toHaveCount(0); expect(await optionalStageApi(page)).toEqual(before); await page.reload({ waitUntil: 'domcontentloaded' }); From 0dfebdf5eaca4ef3268fef1bfee0f672ce25b046 Mon Sep 17 00:00:00 2001 From: Sourav Das Date: Sat, 7 Nov 2026 11:28:55 +0530 Subject: [PATCH 201/440] Align visible stage action labels with accessible names --- .github/workflows/ci.yml | 4 ++-- README.md | 2 +- docs/developer-first-node-ux.md | 2 +- scripts/bundle-budget.mjs | 10 +++++----- src/components/BlockNodeV2.tsx | 2 +- src/components/EncodingNodeMenu.tsx | 2 +- tests/e2e/studio-mocked/studio-mocked.spec.ts | 9 +++++---- 7 files changed, 16 insertions(+), 15 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 07dc4033..ae1017c4 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -33,7 +33,7 @@ jobs: with: repository: sdevil7th/MoDiff # Paired scoped Run recovery bundle and unchanged backend runtime. - ref: 89d0e0e2084818b5f0334df4ea8cc0becc785e07 + ref: 72d4773706734796253363cc5a02305826861e2f path: MoDiff persist-credentials: false - name: Verify the pinned backend supports native setup @@ -88,7 +88,7 @@ jobs: with: repository: sdevil7th/MoDiff # Match the immutable backend revision in the Client quality job. - ref: 89d0e0e2084818b5f0334df4ea8cc0becc785e07 + ref: 72d4773706734796253363cc5a02305826861e2f path: MoDiff persist-credentials: false - name: Verify the pinned backend supports native setup diff --git a/README.md b/README.md index eb4a3c8f..7de30c76 100644 --- a/README.md +++ b/README.md @@ -31,7 +31,7 @@ application source pair is: | MoDiff | `1239d1cecd12a7318eb263ca17c34d4fc0445d14` | | MoDiff-client | `c561a01395044fd71c1918e95fb9e9709d8e7601` | -CI backend contract: `89d0e0e2084818b5f0334df4ea8cc0becc785e07`. +CI backend contract: `72d4773706734796253363cc5a02305826861e2f`. Both CI jobs use this exact immutable backend pin. The application table above is the earlier reviewed testing baseline. The selected backend includes the shared video diff --git a/docs/developer-first-node-ux.md b/docs/developer-first-node-ux.md index 4d7012e7..ac60c193 100644 --- a/docs/developer-first-node-ux.md +++ b/docs/developer-first-node-ux.md @@ -13,7 +13,7 @@ insert the saved copy from the library. **Custom nodes** are Python extensions: use **Add custom node** when you want to supply new code. Saving a Block does not write Python or authorize additional source; existing source approvals still apply. -On a collapsed reusable Block, **Edit nodes** expands its contents for ordinary +On a collapsed reusable Block, **Expand block** shows its contents for ordinary canvas editing. Collapse it again when finished; exposed controls stay directly editable without expansion. Saving changes offers workflow-only, new reusable Block and applicable existing-definition choices. diff --git a/scripts/bundle-budget.mjs b/scripts/bundle-budget.mjs index cdd47616..004a727c 100644 --- a/scripts/bundle-budget.mjs +++ b/scripts/bundle-budget.mjs @@ -1,6 +1,6 @@ // Direct stage editing and Block/Python guidance measure largest/startup/deferred -// gzip 498039/676527/335816 over 497985/676473/335647. Add only the measured -// 54/54/169 bytes, retaining prior headroom. The five normalized changes are +// gzip 498028/676515/335743 over 497985/676473/335647. Add only the measured +// 43/42/96 bytes, retaining prior headroom. The five normalized changes are // CustomExtensionsPanel, EncodingNode, NodeList, block-composition-tools and // studio-templates. All119 assets, four startup/90 deferred memberships, // dependencies, minifier/loading rules and the independent64KiB cap stay fixed. @@ -376,7 +376,7 @@ const SOURCE_LICENSES = new URL('../public/THIRD_PARTY_LICENSES.txt', import.met // Scoped video receipts and compatible adapter messaging measure 494870 bytes // in the largest startup asset (+46 over the cap). Add 64 bytes, no dependencies. const MAX_STARTUP_CHUNK_GZIP_BYTES = - 54 + + 43 + 4 + 293 + 894 + @@ -527,7 +527,7 @@ const MAX_STARTUP_CHUNK_GZIP_BYTES = // The same build measures 673359 aggregate startup bytes (+45 over the cap). // Keep 19 bytes of headroom; deferred limits and loading boundaries stay fixed. const MAX_STARTUP_GZIP_BYTES = - 54 + + 42 + 291 + 896 + 107 + @@ -758,7 +758,7 @@ const MAX_DEFERRED_CHUNK_GZIP_BYTES = 64 * 1024; // 321033-byte cap, preserving 39 bytes of headroom at 321227. Startup caps, the // 65536-byte deferred chunk cap, dependencies and loading boundaries stay fixed. const MAX_DEFERRED_GZIP_BYTES = - 169 + + 96 + 3546 + 1556 + 242 + diff --git a/src/components/BlockNodeV2.tsx b/src/components/BlockNodeV2.tsx index a4c94b07..46f95fde 100644 --- a/src/components/BlockNodeV2.tsx +++ b/src/components/BlockNodeV2.tsx @@ -424,7 +424,7 @@ export const BlockNodeV2 = memo((node: NodeProps) => { onClick={handleToggleExpanded} data-testid={`user-block-toggle-${node.id}`} > - Edit nodes + Expand block )} diff --git a/src/components/EncodingNodeMenu.tsx b/src/components/EncodingNodeMenu.tsx index d0c70652..8b5bba85 100644 --- a/src/components/EncodingNodeMenu.tsx +++ b/src/components/EncodingNodeMenu.tsx @@ -114,7 +114,7 @@ export default function EncodingNodeMenu({ size="compact" tone="ghost" className="nodrag nowheel whitespace-nowrap" - aria-label={`Edit ${label} stages`} + aria-label={`Edit stages: ${label}`} title="Show individual stages on the canvas. Undo restores this group." onClick={separate} > diff --git a/tests/e2e/studio-mocked/studio-mocked.spec.ts b/tests/e2e/studio-mocked/studio-mocked.spec.ts index 0e7ea4af..4b92b024 100644 --- a/tests/e2e/studio-mocked/studio-mocked.spec.ts +++ b/tests/e2e/studio-mocked/studio-mocked.spec.ts @@ -35090,7 +35090,7 @@ for (const width of [1920, 1280]) for (const label of ['Encode Inputs', 'Model Setup', 'Image Output']) { const group = (await read()).nodes.find((node) => node.data.label === label)!; const root = page.locator(`.react-flow__node[data-id="${group.id}"]`); - const edit = root.getByRole('button', { name: `Edit ${label} stages`, exact: true }); + const edit = root.getByRole('button', { name: `Edit stages: ${label}`, exact: true }); await expect(edit).toBeVisible(); await expect(edit).toHaveText('Edit stages'); // No options menu, inspector or hover is needed. Enter uses the same action. @@ -35117,7 +35117,7 @@ for (const width of [1920, 1280]) const input = (await read()).nodes.find((node) => node.data.label === 'Encode Inputs')!; await page .locator(`.react-flow__node[data-id="${input.id}"]`) - .getByRole('button', { name: 'Edit Encode Inputs stages' }) + .getByRole('button', { name: 'Edit stages: Encode Inputs' }) .click(); await page.getByTestId('topbar-save-workflow').click(); await page.reload({ waitUntil: 'domcontentloaded' }); @@ -35152,8 +35152,9 @@ test('reusable canvas Blocks and Python nodes explain their different authoring await expect(create).toHaveCount(0); const block = (await read()).nodes.find((node) => node.data.blockInstanceV2)!; const root = page.locator(`.react-flow__node[data-id="${block.id}"]`); - const expand = root.getByRole('button', { name: 'Expand block', exact: true }); - await expect(expand).toHaveText('Edit nodes'); + const expand = root.getByTestId(`user-block-toggle-${block.id}`); + await expect(expand).toHaveText('Expand block'); + await expect(expand).toHaveAccessibleName(await expand.innerText()); await expand.click(); await expect(root.getByRole('button', { name: 'Collapse block', exact: true })).toBeVisible(); expect(await optionalStageApi(page)).toEqual(before); From 21ef1325cc714c395e36a56a171a8900fdafc03c Mon Sep 17 00:00:00 2001 From: Sourav Das Date: Sat, 7 Nov 2026 12:40:25 +0530 Subject: [PATCH 202/440] Select the Block title explicitly in workspace browser checks --- tests/e2e/studio-mocked/studio-mocked.spec.ts | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) diff --git a/tests/e2e/studio-mocked/studio-mocked.spec.ts b/tests/e2e/studio-mocked/studio-mocked.spec.ts index 4b92b024..7a06609e 100644 --- a/tests/e2e/studio-mocked/studio-mocked.spec.ts +++ b/tests/e2e/studio-mocked/studio-mocked.spec.ts @@ -8301,7 +8301,10 @@ test('custom workspace inspects registered Qwen cluster controls using the canva await (await findQwenCatalogRow(page)).click(); const root = page.locator('.react-flow__node-block').filter({ has: page.locator('[data-block-schema-version="2"]') }); await expect(root).toHaveCount(1, { timeout: 30_000 }); - await root.locator('header').first().click(); + // Select the node title; the header centre can contain a real action button. + const rootTitle = root.locator('header').first().locator(':scope > span').first(); + await rootTitle.click(); + await expect(page.locator('[data-testid^="save-user-block-choices-"]')).toHaveCount(0); const inspector = page.getByTestId('studio-custom-graph-inspector'); await expect(inspector.getByLabel('prompt', { exact: true })).toHaveValue( await root.getByLabel('prompt', { exact: true }).inputValue(), @@ -8327,12 +8330,12 @@ test('custom workspace inspects registered Qwen cluster controls using the canva await inspector.getByLabel('prompt', { exact: true }).fill('Copper observatory at sunrise'); await inspector.getByLabel('prompt', { exact: true }).blur(); await expect(root.getByLabel('prompt', { exact: true })).toHaveValue('Copper observatory at sunrise'); - await root.locator('header').first().click(); + await rootTitle.click(); await page.keyboard.press('Control+z'); - await root.locator('header').first().click(); + await rootTitle.click(); await expect(inspector.getByLabel('prompt', { exact: true })).toHaveValue(originalPrompt); await page.keyboard.press('Control+Shift+z'); - await root.locator('header').first().click(); + await rootTitle.click(); await expect(inspector.getByLabel('prompt', { exact: true })).toHaveValue('Copper observatory at sunrise'); const edited = await page.evaluate(async (id) => { const { useFlowStore } = await import('/src/stores/useFlowStore.ts'); @@ -8348,11 +8351,11 @@ test('custom workspace inspects registered Qwen cluster controls using the canva // choices survive canvas selection while the workspace is already open. await page.getByTestId('topbar-toggle-workspace').click(); await expect(page.getByTestId('workspace-panel')).toHaveCount(0); - await root.locator('header').first().click(); + await rootTitle.click(); await expect(inspector.getByLabel('prompt', { exact: true })).toHaveValue('Copper observatory at sunrise'); for (const tab of ['queue', 'setup']) { await page.getByTestId(`workspace-tab-${tab}`).click(); - await root.locator('header').first().click(); + await rootTitle.click(); await expect(page.getByTestId(`workspace-tab-${tab}`)).toHaveAttribute('aria-selected', 'true'); } await page.getByTestId('workspace-tab-studio').click(); @@ -8394,7 +8397,7 @@ test('custom workspace inspects registered Qwen cluster controls using the canva await expect(promptNode).toBeVisible(); await expect(hiddenPin.getByLabel(/^prompt(?: \*)?$/i)).toHaveValue('Nested observatory edit'); await root.getByRole('button', { name: 'Collapse block', exact: true }).click(); - await root.locator('header').first().click(); + await rootTitle.click(); // Save the edited registered cluster as a User Node through the real menu. await root.getByRole('button', { name: 'Save block changes', exact: true }).click(); @@ -8443,7 +8446,7 @@ test('custom workspace inspects registered Qwen cluster controls using the canva await page.getByTestId('topbar-toggle-workspace').click(); await savedRow.click(); await expect(page.getByTestId('workspace-panel')).toBeVisible(); - await root.locator('header').first().click(); + await rootTitle.click(); await expect(inspector.getByLabel('prompt', { exact: true })).toHaveValue('Nested observatory edit'); await inspector.getByLabel('prompt', { exact: true }).fill('Only the reused User Node changes'); await inspector.getByLabel('prompt', { exact: true }).blur(); From 565e2d74ba1d20a5b4210b79c50661df508db5bc Mon Sep 17 00:00:00 2001 From: Sourav Das Date: Sat, 7 Nov 2026 15:52:42 +0530 Subject: [PATCH 203/440] Keep cache control fixtures connected and budget the full browser suite --- .github/workflows/ci.yml | 7 ++++--- CONTRIBUTING.md | 6 ++++++ tests/e2e/studio-mocked/studio-mocked.spec.ts | 17 ++++++++++++++++- 3 files changed, 26 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index ae1017c4..857cf84f 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -68,9 +68,10 @@ jobs: browser: name: Client browser quality runs-on: ubuntu-latest - # The full serial suite exceeds one hour on hosted runners. Keep its full - # test set and single worker; bound the job without truncating coverage. - timeout-minutes: 90 + # The complete serial suite reached the old 90-minute job limit near its + # final cases on two runners. Include setup and retry overhead; retain every + # test, the single worker and the existing per-test timeouts/retry policy. + timeout-minutes: 120 defaults: run: working-directory: MoDiff-client diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 8ab0cc22..ca6b5a1a 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -446,6 +446,12 @@ browser gate within its own job budget. This setup does not download model weights or qualify accelerator execution; platform smoke jobs remain client-only. +The full browser job has a finite 120-minute outer budget for setup, the complete +serial suite and its existing retry policy. Two hosted runs reached the former +90-minute limit near the final scenarios. Individual test and expectation +timeouts, retries, coverage and the single worker are unchanged. This CI budget +is separate from native model admission, memory and task-time safety limits. + For a coordinated change, commit and review the backend first, then replace the backend `ref` in both jobs in `.github/workflows/ci.yml` with that actual compatible 40-character commit SHA and run the paired gates. Keep both refs immutable and diff --git a/tests/e2e/studio-mocked/studio-mocked.spec.ts b/tests/e2e/studio-mocked/studio-mocked.spec.ts index 7a06609e..1792006d 100644 --- a/tests/e2e/studio-mocked/studio-mocked.spec.ts +++ b/tests/e2e/studio-mocked/studio-mocked.spec.ts @@ -31581,12 +31581,27 @@ for (const selection of ['node', 'edge'] as const) { await installMockRoutes(page); const releases: unknown[] = []; let cached = true; + // Cache membership is process-owned. Keep the fixture's socket and HTTP + // snapshots coherent instead of racing a real disconnect against the UI. + await page.routeWebSocket('**/ws**', (socket) => { + socket.send( + JSON.stringify({ + type: 'welcome', + sid: new URL(socket.url()).searchParams.get('sid'), + instance: 'mock', + current: null, + queued: {}, + cachedNodes: cached ? ['cache-target'] : [], + }), + ); + }); await page.route('**/cache', async (route) => { if (route.request().method() === 'DELETE') { releases.push(route.request().postDataJSON()); cached = false; await route.fulfill({ json: { error: false, nodes: ['cache-target'] } }); - } else await route.fulfill({ json: { error: false, cachedNodes: cached ? ['cache-target'] : [] } }); + } else + await route.fulfill({ json: { error: false, instance: 'mock', cachedNodes: cached ? ['cache-target'] : [] } }); }); await page.goto(FRONTEND_URL, { waitUntil: 'domcontentloaded' }); await page.waitForFunction(() => Boolean(window.__MODIFF_E2E__)); From 8fff9428f39136c670b5f24671c0781b13c9175e Mon Sep 17 00:00:00 2001 From: Sourav Das Date: Sat, 7 Nov 2026 21:19:13 +0530 Subject: [PATCH 204/440] Let activity fold away from canvas controls without clearing history --- docs/modiff-client-architecture.md | 8 + docs/workflow-authoring-ux.md | 9 + scripts/bundle-budget.mjs | 11 +- src/components/RunSessionShelf.tsx | 48 ++- tests/e2e/studio-mocked/studio-mocked.spec.ts | 278 ++++++++++++++++++ 5 files changed, 342 insertions(+), 12 deletions(-) diff --git a/docs/modiff-client-architecture.md b/docs/modiff-client-architecture.md index fdba087d..01b35784 100644 --- a/docs/modiff-client-architecture.md +++ b/docs/modiff-client-architecture.md @@ -1555,6 +1555,14 @@ Session activity merges queue history by execution timestamps before applying its 30-entry limit, retaining running work ahead of waiting tasks and finished history. Repeated or reordered history snapshots must not evict a new submission or promote old runs. +The activity shelf can fold into its heading without dismissing notifications. +Its disclosure is volatile component state, independent of workflow data and +task ownership. The heading retains active-work status while folded; explicit +toolbar download navigation opens the list. Clear and per-item dismissal keep +their existing meanings. Collapsing must preserve graph values, positions, +viewport and all active, failed and finished records; test actual pointer access +behind the overlay as well as keyboard disclosure behavior at scaled viewports. + Saved User Nodes retain model/prompt/settings provenance independently of registered-route authority. For an unambiguous Modular Diffusers User Node, `blockRunFormV2.ts` reads its expanded executable loader and parameter fields diff --git a/docs/workflow-authoring-ux.md b/docs/workflow-authoring-ux.md index 1a84a4c6..36a4f925 100644 --- a/docs/workflow-authoring-ux.md +++ b/docs/workflow-authoring-ux.md @@ -64,6 +64,15 @@ unchanged, unambiguously matched executable nodes, rather than substituting the generator host's defaults. Authored device values and fresh field schemas remain intact; ambiguous matches or incompatible preserved defaults reject regeneration. +## Keep activity out of the editing area + +Click the **Session activity** heading to fold its list away when it covers a +canvas control. The compact heading retains **Active now** while work is running +or downloading. Click it again to restore the same notifications; Enter and Space +also toggle it. This does not clear history, stop work or alter the workflow. +The toolbar's download activity button opens the list when you need download +progress. **Clear** remains a separate action for finished notifications. + ## Structured image layout and optional prompt enhancement An encoding field exposes structured layout only when its current backend schema diff --git a/scripts/bundle-budget.mjs b/scripts/bundle-budget.mjs index 004a727c..241940a2 100644 --- a/scripts/bundle-budget.mjs +++ b/scripts/bundle-budget.mjs @@ -1,3 +1,8 @@ +// Folding Session activity measures largest/startup/deferred gzip +// 498142/676630/335787 over 498028/676515/335743. Only studio-templates.js +// changes after import-URL normalization. Add only the measured 114/115 startup +// bytes, retaining prior headroom; both deferred limits,119 assets/four startup/90 +// deferred memberships, dependencies, minifier and loading boundaries stay fixed. // Direct stage editing and Block/Python guidance measure largest/startup/deferred // gzip 498028/676515/335743 over 497985/676473/335647. Add only the measured // 43/42/96 bytes, retaining prior headroom. The five normalized changes are @@ -446,7 +451,8 @@ const MAX_STARTUP_CHUNK_GZIP_BYTES = 512 + 192 + 288 + - 288; + 288 + + 114; // Shared icons initialize in graph-vendor, avoiding an entry/lazy-panel cycle // that captured undefined tab icons and crashed cold production startup. The // Earlier startup measured 589.1 KiB. Shared Block crossing, explicit movement, @@ -595,7 +601,8 @@ const MAX_STARTUP_GZIP_BYTES = 512 + 192 + 288 + - 288; + 288 + + 115; // Deferred surfaces are measured separately so code splitting cannot hide an // unbounded feature bundle. These ceilings leave room for the reviewed dialogs // and catalog tools while preventing either one oversized deferred chunk or diff --git a/src/components/RunSessionShelf.tsx b/src/components/RunSessionShelf.tsx index 8a07817a..a53eef93 100644 --- a/src/components/RunSessionShelf.tsx +++ b/src/components/RunSessionShelf.tsx @@ -1,5 +1,15 @@ -import { useEffect, useMemo, useState } from 'react'; -import { AlertCircle, CheckCircle2, Clock3, DownloadCloud, LoaderCircle, Trash2, X, XCircle } from 'lucide-react'; +import { useEffect, useId, useMemo, useState } from 'react'; +import { + AlertCircle, + CheckCircle2, + ChevronDown, + Clock3, + DownloadCloud, + LoaderCircle, + Trash2, + X, + XCircle, +} from 'lucide-react'; import { useNodesStore } from '../stores/useNodeStore'; import { useTaskStore, type SessionRun } from '../stores/useTaskStore'; import { hasHfDownloadFailed, isHfDownloadActive, isHfDownloadComplete } from '../studio/modelInstall'; @@ -159,6 +169,8 @@ export default function RunSessionShelf() { const hasActiveRun = sessionRuns.some((run) => run.status === 'running' || run.status === 'queued'); const hasActiveDownload = Object.values(hfDownloadProgress).some(isHfDownloadActive); const hasActiveActivity = hasActiveRun || hasActiveDownload; + const [expanded, setExpanded] = useState(true); + const contentId = useId(); const [highlightDownloads, setHighlightDownloads] = useState(false); const [dismissedActivity, setDismissedActivity] = useState(restoredDismissedActivity); const [now, setNow] = useState(() => Date.now()); @@ -171,6 +183,7 @@ export default function RunSessionShelf() { useEffect(() => { const handleShowDownloads = () => { + setExpanded(true); setHighlightDownloads(true); window.setTimeout(() => setHighlightDownloads(false), 1800); }; @@ -231,16 +244,29 @@ export default function RunSessionShelf() { className="pointer-events-none absolute bottom-4 left-4 z-30 w-[min(360px,calc(100%-32px))] text-modiff-text" >
-
-
+
+ setExpanded((current) => !current)} + className="h-auto! min-w-0 flex-1 gap-2 px-1 py-1" + > -
-
Session activity
-
+ + Session activity + {hasActiveActivity ? 'Active now' : `${finishedCount + finishedDownloadCount} finished`} -
-
-
+ + +
@@ -1525,6 +1528,21 @@ function TemplateBrowserPreview({ thumbnailPath?: string; variant?: StudioTemplate['thumbnailVariant']; }) { + if (mediaKind === 'json' && afterPath) { + return ( +
+
+ ); + } + if (mediaKind === 'image' && beforePath && afterPath) { return ; } diff --git a/src/studio/retainedGalleryTemplates.ts b/src/studio/retainedGalleryTemplates.ts index 38bd9fd4..5c2c9300 100644 --- a/src/studio/retainedGalleryTemplates.ts +++ b/src/studio/retainedGalleryTemplates.ts @@ -19,9 +19,8 @@ const marigoldRevision = '04a73502f7fd8fc5e59947b9df3b2266d71d6849'; const smollm2Revision = '12fd25f77366fa6b3b4b768ec3050bf629380bac'; /** - * Exact recipes for the retained-run release verifier. Keep these outside the - * active catalog until the qualifying Gallery entries and pinned assets ship. - * The standalone task contracts, blank defaults and captured runs stay intact. + * Reviewed catalog recipes tied to saved runs. Canonical workflow generation + * continues to seed their task contracts with the standalone defaults. */ export const RETAINED_GALLERY_TEMPLATES = [ { @@ -29,7 +28,7 @@ export const RETAINED_GALLERY_TEMPLATES = [ sourceTaskTemplateId: 'task-template:marigold-depth-lcm-v1-0:depth-estimation:v1', retainedGraphHash: 'sha256:canonical-graph-v1:ee35e710ecaf34a8a57d93fbefeea28b6a3795027ea8a3a872178501e852e06a', originalReceiptSha256: '1c358ef18df00556b704f826c706674d5ddbd89d8ad091478da862b8ad87c6ea', - reviewedTemplateSha256: '5d96ca2f7621c6926789c50eb0b0c8fed93bddd6f071bdd1ba1cec11907d4b9d', + reviewedTemplateSha256: '4e43813ae0e4b664e4982545884644ec097eb0cc25e8f13ff549ac24c2f49ce1', reviewedCatalogLock: { templateLockHash: 'tpl_bf1d929b', galleryTemplateLockHash: 'tpl_611e9ad6', @@ -40,6 +39,7 @@ export const RETAINED_GALLERY_TEMPLATES = [ template: { id: 'marigold_depth_synthetic_ramp', label: 'Marigold Depth LCM — Synthetic Ramp', + modelDisplayName: 'Marigold Depth LCM', mode: 'depth_estimation', modelType: 'MarigoldDepthPipeline', intentGroup: 'utility', @@ -85,7 +85,9 @@ export const RETAINED_GALLERY_TEMPLATES = [ 'modules.Image.Preview', ], modelArtifact: { source: 'hub', value: 'prs-eth/marigold-depth-lcm-v1-0', revision: marigoldRevision }, + runtimeReuseKey: 'MarigoldDepthPipeline:float32:none:resident:none', description: 'Run one-step relative depth estimation and compare the input ramp with its grayscale preview.', + recipeSummary: 'Compare a source image with a one-step relative-depth preview.', prompt: '', example: { mediaType: 'image', @@ -114,7 +116,7 @@ export const RETAINED_GALLERY_TEMPLATES = [ sourceTaskTemplateId: 'task-template:smollm2-135m-instruct:text-generation:v1', retainedGraphHash: 'sha256:canonical-graph-v1:285625f017e8de78e065d8fc32c9ce71ed9561b008cd5fa0e23ce9cda3dabefe', originalReceiptSha256: '4d0e3ad2819d02cc04c3f264145ddd384b17b9dfa39e83f4af6e923bce34f3d8', - reviewedTemplateSha256: '041ad1596a8b1609029aa3645de8096c17dcee527c02bc0f244df602f2de0c71', + reviewedTemplateSha256: 'aab7cfcf15db94d4e3d1415e963cabc0cf7e6a4baafd243d4095539b1004545b', reviewedCatalogLock: { templateLockHash: 'tpl_84d96f79', galleryTemplateLockHash: 'tpl_a845a534', @@ -124,6 +126,7 @@ export const RETAINED_GALLERY_TEMPLATES = [ template: { id: 'smollm2_rain_gauge', label: 'SmolLM2 135M Instruct — Rain Gauge Answer', + modelDisplayName: 'SmolLM2 135M Instruct', mode: 'text_generation', modelType: 'HuggingFaceTextGenerationModel', intentGroup: 'utility', @@ -141,7 +144,9 @@ export const RETAINED_GALLERY_TEMPLATES = [ 'modules.Primitive.DataViewer', ], modelArtifact: { source: 'hub', value: 'HuggingFaceTB/SmolLM2-135M-Instruct', revision: smollm2Revision }, + runtimeReuseKey: 'HuggingFaceTextGenerationModel:float32:none:resident:none', description: 'Answer a short factual question using greedy decoding and inspect the structured result.', + recipeSummary: 'Answer a short question and inspect the text, finish reason, and token counts.', prompt: 'Reply in one short sentence: What does a rain gauge measure?', example: { mediaType: 'json', diff --git a/src/studio/templateAssetSource.json b/src/studio/templateAssetSource.json index 6f31065c..4e62165c 100644 --- a/src/studio/templateAssetSource.json +++ b/src/studio/templateAssetSource.json @@ -4,11 +4,11 @@ "localBasePath": "/template-gallery", "repoType": "dataset", "repoId": "sourav-das/modiff-template-gallery", - "revision": "c7a3c2e344d8fc11e63d1fcdaa37db40b529a853", + "revision": "b3fefedf324c08cb50eaf4654ce68fefc041d0ef", "pathPrefix": "template-gallery", "assetManifestPath": "_modiff/template-assets.v1.json", - "assetSetId": "sha256:canonical-json:2a9e241d6c4842369d484782e16584f645b6e4fd824c6197217a045dccae688c", - "completeAssetSetId": "sha256:canonical-json:e699ffd797db2ec4e069406ce099ac84a9616e56bea79af9cb687dfd86ec5b35", + "assetSetId": "sha256:canonical-json:c187f603d05614d22fd900d6516b00c8a33b82b1d3e9eaf28b6704b740b78590", + "completeAssetSetId": "sha256:canonical-json:c3d16e412f427cdd1e51b95f7a4173938cb4daecc7e5e6744324fa4845046637", "unavailableAssets": [ "template-gallery/ace_step_chinese_new_year_lora.card-poster.png", "template-gallery/ace_step_chinese_new_year_lora.wav", diff --git a/src/studio/templateBrowser.ts b/src/studio/templateBrowser.ts index 49506572..5245ee15 100644 --- a/src/studio/templateBrowser.ts +++ b/src/studio/templateBrowser.ts @@ -30,6 +30,7 @@ export type TemplateBrowserCategoryId = | 'control' | 'audio' | 'video' + | 'text' | 'adapters' | 'upscale' | 'performance'; @@ -63,6 +64,7 @@ export const TEMPLATE_BROWSER_CATEGORIES: Array<{ id: TemplateBrowserCategoryId; { id: 'control', label: 'Control' }, { id: 'video', label: 'Video' }, { id: 'audio', label: 'Audio' }, + { id: 'text', label: 'Text' }, { id: 'adapters', label: 'Adapters' }, { id: 'upscale', label: 'Upscale' }, { id: 'performance', label: 'Performance' }, @@ -124,6 +126,7 @@ export function inferTemplateIntentGroup(template: StudioTemplate): StudioTempla } export function templateCategoryId(template: StudioTemplate): TemplateBrowserCategoryId { + if (template.category === 'text') return 'text'; if (template.category === 'low_vram') return 'performance'; if (template.category === 'lora') return 'adapters'; if (template.category === 'upscale') return 'upscale'; diff --git a/src/studio/templateQuality.ts b/src/studio/templateQuality.ts index 22476803..7c8e588f 100644 --- a/src/studio/templateQuality.ts +++ b/src/studio/templateQuality.ts @@ -7,6 +7,8 @@ export type TemplateQualityKind = | 'image_outpaint' | 'image_control' | 'image_layers' + | 'depth_estimation' + | 'text_generation' | 'video' | 'audio'; @@ -30,7 +32,8 @@ export type TemplateSemanticGroup = | 'musical_identity' | 'arrangement_or_timbre' | 'dynamic_structure' - | 'mix_or_finish'; + | 'mix_or_finish' + | 'text_request'; export type TemplateNegativeCategory = 'artifact' | 'structure' | 'task_fidelity' | 'aesthetic'; @@ -38,6 +41,7 @@ export type TemplateQualityIssueCode = | 'unresolved_backend_default' | 'invalid_layout_reference' | 'missing_semantic_group' + | 'unsupported_prompt_input' | 'blank_negative_not_allowed' | 'too_few_negative_constraints' | 'generic_negative_constraints'; @@ -219,6 +223,10 @@ const SEMANTIC_GROUPS: Record = label: 'mix, loudness, ambience, or production finish', patterns: [/\b(mix|loudness|ambience|production|reverb|stereo|master|clipping|noise|sibilance|fade)\w*\b/i], }, + text_request: { + label: 'a question or instruction for the text model', + patterns: [/\p{L}/u], + }, }; const REQUIRED_SEMANTIC_GROUPS: Record = { @@ -228,11 +236,18 @@ const REQUIRED_SEMANTIC_GROUPS: Record): TemplateQualityKind { + if (template.mode === 'depth_estimation') return 'depth_estimation'; + if (template.mode === 'text_generation') return 'text_generation'; if (AUDIO_MODES.has(template.mode) || template.modelType === 'AceStepAudioPipeline') return 'audio'; if (VIDEO_MODES.has(template.mode) || template.modelType === 'WanVACEPipeline') return 'video'; if (template.mode === 'inpaint') return 'image_inpaint'; @@ -530,6 +547,12 @@ export function auditTemplateQuality( ] : []; const issues = [...layoutIssues, ...semanticIssues, ...negative.issues]; + if (kind === 'depth_estimation' && (resolvedPrompt?.trim() || template.negativePrompt?.trim())) { + issues.push({ code: 'unsupported_prompt_input', message: 'Depth estimation uses a source image without prompts.' }); + } + if (kind === 'text_generation' && template.negativePrompt?.trim()) { + issues.push({ code: 'unsupported_prompt_input', message: 'Text generation does not accept a negative prompt.' }); + } return { templateId: template.id, diff --git a/src/studio/templates.ts b/src/studio/templates.ts index 2f4ff984..3a8775f2 100644 --- a/src/studio/templates.ts +++ b/src/studio/templates.ts @@ -35,6 +35,7 @@ import { VIDEO_PROMPT_GUIDE, } from './promptGuides'; import { templateDefaultInputBindings } from './generated/templateDefaultInputBindings'; +import { RETAINED_GALLERY_TEMPLATES } from './retainedGalleryTemplates'; // Editorial card posters keep every runnable template visually complete while // model-generated video/audio evidence is still awaiting qualification. They @@ -5257,9 +5258,10 @@ export const PLANNING_STUDIO_TEMPLATES: StudioTemplate[] = NORMALIZED_STUDIO_TEM (template) => template.example?.status === 'blocked', ); -export const STUDIO_TEMPLATES: StudioTemplate[] = NORMALIZED_STUDIO_TEMPLATES.filter( - (template) => template.example?.status !== 'blocked', -); +export const STUDIO_TEMPLATES: StudioTemplate[] = [ + ...NORMALIZED_STUDIO_TEMPLATES.filter((template) => template.example?.status !== 'blocked'), + ...RETAINED_GALLERY_TEMPLATES.map(({ template }) => template), +]; export function getStudioTemplateLoraBaseModel(templateId: StudioTemplateId | null | undefined) { return STUDIO_TEMPLATES.find((template) => template.id === templateId)?.workflowBlockSettings?.lora?.baseModel; diff --git a/tests/e2e/studio-mocked/studio-mocked.spec.ts b/tests/e2e/studio-mocked/studio-mocked.spec.ts index ee2fd3e1..6ff3c610 100644 --- a/tests/e2e/studio-mocked/studio-mocked.spec.ts +++ b/tests/e2e/studio-mocked/studio-mocked.spec.ts @@ -13563,6 +13563,48 @@ test('published Experimental cards remain discoverable after Gallery metadata lo expect(forbiddenPosts).toEqual([]); }); +test('approved retained examples show structured text and a Marigold depth comparison', async ({ page }) => { + await ensureFrontend(); + await installMockRoutes(page); + const manifest = JSON.parse( + await fs.readFile(path.join(CLIENT_ROOT, 'public/template-gallery/manifest.json'), 'utf8'), + ); + const previewPixel = Buffer.from( + 'iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mP8/x8AAwMCAO+aOCkAAAAASUVORK5CYII=', + 'base64', + ); + await page.route(/\/template-gallery\/[^?]+\.(?:webp|png)(?:\?.*)?$/u, (route) => + route.fulfill({ body: previewPixel, contentType: 'image/png' }), + ); + await page.route('**/template-gallery/manifest.json*', (route) => route.fulfill({ json: manifest })); + await page.goto(FRONTEND_URL, { waitUntil: 'domcontentloaded' }); + await page.waitForFunction(() => Boolean(window.__MODIFF_E2E__?.getState().studio.workflowCanvasHydrated)); + const launcher = page.getByTestId('task-launcher'); + if (await launcher.isVisible()) await launcher.getByLabel('Close').click(); + await page.getByTestId('topbar-templates').click(); + + await page.getByTestId('template-browser-category-text').click(); + const textCard = page.getByTestId('template-browser-card-smollm2_rain_gauge'); + await expect(textCard.getByText('Structured response', { exact: true })).toBeVisible(); + await expect(textCard.getByRole('img')).toHaveCount(0); + await textCard.getByTestId('template-browser-use-smollm2_rain_gauge').click(); + const textDetail = page.getByTestId('template-detail-smollm2_rain_gauge'); + await expect(textDetail.getByRole('link', { name: 'Open structured response' })).toHaveAttribute( + 'href', + /\/template-gallery\/smollm2_rain_gauge\.json$/u, + ); + await textDetail.getByRole('button', { name: 'Templates', exact: true }).click(); + + await page.getByTestId('template-browser-category-all').click(); + await page.getByTestId('template-browser-search').fill('Synthetic Ramp'); + const depthCard = page.getByTestId('template-browser-card-marigold_depth_synthetic_ramp'); + await expect(depthCard.getByTestId('template-ab-comparison')).toBeVisible(); + await depthCard.getByTestId('template-browser-use-marigold_depth_synthetic_ramp').click(); + const depthDetail = page.getByTestId('template-detail-marigold_depth_synthetic_ramp'); + await expect(depthDetail.getByText('Hover or drag to compare')).toBeVisible(); + await expect(depthDetail).toContainText('Depth accuracy remains unmeasured.'); +}); + test('Experimental public cards create the exact FLUX3 Ceramic Radio graph through ordinary UI', async ({ page }) => { await ensureFrontend(); const fixture = await installPublicFlux3AuthoringRoutes(page, false, false, true); From b51ac3fc87aa91ff3c587ca69f1ddb5fb157e6a3 Mon Sep 17 00:00:00 2001 From: Sourav Das Date: Thu, 19 Nov 2026 21:08:22 +0530 Subject: [PATCH 257/440] Refresh the selected showcase revision and workflow regression --- config/release-showcase-scope.v1.json | 16 ++++++++++++++-- docs/release-preview-scope.md | 4 ++++ scripts/graph-visuals.test.mjs | 2 +- 3 files changed, 19 insertions(+), 3 deletions(-) diff --git a/config/release-showcase-scope.v1.json b/config/release-showcase-scope.v1.json index 69a81b2a..cced7b72 100644 --- a/config/release-showcase-scope.v1.json +++ b/config/release-showcase-scope.v1.json @@ -4,7 +4,7 @@ "name": "Registered showcase preview without AMD-cloud backlog", "dataset": { "repository": "sourav-das/modiff-template-gallery", - "revision": "c7a3c2e344d8fc11e63d1fcdaa37db40b529a853" + "revision": "b3fefedf324c08cb50eaf4654ce68fefc041d0ef" }, "originalCampaign": { "total": 89, @@ -451,12 +451,24 @@ "reason": "Full recipe deferred to AMD cloud; local complete-workflow campaign budget is two hours. No MoDiff user runtime restriction.", "countedAsComplete": false }, + { + "id": "marigold_depth_synthetic_ramp", + "category": "supplementary-only", + "reason": "Published and registered as a supplementary Gallery example outside the original campaign selection.", + "countedAsComplete": false + }, { "id": "minimax_h3_image_old_town_cat", "category": "supplementary-only", "reason": "Approved supplementary showcases are separate examples; this template is outside the original campaign selection.", "countedAsComplete": false }, + { + "id": "smollm2_rain_gauge", + "category": "supplementary-only", + "reason": "Published and registered as a supplementary Gallery example outside the original campaign selection.", + "countedAsComplete": false + }, { "id": "wan_21_t2v_13b_seed_vault", "category": "amd-cloud", @@ -500,5 +512,5 @@ "countedAsComplete": false } ], - "profileHash": "sha256:canonical-json:6758db9df5f354bbfa69e5552ddbd15ee6f03969a31a46c18b7375b8ef579df8" + "profileHash": "sha256:canonical-json:b9d5e60d449044a2445c782bfc5930cc3d6eade0d1786a89c548b66c1d8436a3" } diff --git a/docs/release-preview-scope.md b/docs/release-preview-scope.md index 485b6275..0beb5842 100644 --- a/docs/release-preview-scope.md +++ b/docs/release-preview-scope.md @@ -6,6 +6,10 @@ original 89-case campaign. The executable selection is revision and each accepted recipe. Run `npm run release:showcases:verify` to verify that selection. This check does not replace the full release gate. +Marigold Depth LCM — Synthetic Ramp and SmolLM2 — Rain Gauge Answer are +registered in the Gallery as supplements. They count toward the workflow release +report and sit outside the original 89-case selection. + Five originals remain deferred to AMD cloud: Amber Glass Replacement, The Winter Delivery, Subway Musician, Final Mise en Place and Morning Light Teapot. Chinese New Year Ensemble, Ghibli Story Illustration and Cosmos 3 Publisher Caption diff --git a/scripts/graph-visuals.test.mjs b/scripts/graph-visuals.test.mjs index 90f61409..d762a579 100644 --- a/scripts/graph-visuals.test.mjs +++ b/scripts/graph-visuals.test.mjs @@ -10452,7 +10452,7 @@ test('canonical workflow generation persists the final layout and library open d assert.match(generator, /refreshTaskTemplateContracts/); assert.match(generator, /applyTaskTemplateSkeleton/); assert.match(generator, /applyTemplate\(templateId, \{ resourceMode: 'expert' \}\)/); - assert.match(generator, /if \(!byPair\.has\(pair\)\)/); + assert.match(generator, /selectCanonicalWorkflowSources\(templates, taskTemplates, retainedTemplateIds\)/); assert.match(generator, /shouldRecycleWorkflowBrowser\(completedWorkflowsInSession, WORKFLOW_BROWSER_BATCH_SIZE\)/); assert.match(generator, /launchWorkflowBrowser\(\(\) => chromium\.launch\(browserLaunchOptions\)\)/); assert.match(generator, /if \(isWorkflowBrowserSessionError\(error\)\) throw error/); From fe10f20ceb50b957e866f1961b49978ee6158719 Mon Sep 17 00:00:00 2001 From: Sourav Das Date: Thu, 19 Nov 2026 22:49:24 +0530 Subject: [PATCH 258/440] Verify exact historical Gallery recipes with saved evidence --- config/template-recipe-history.v1.json | 124 ++++++++++++++++++- docs/template-gallery-assets.md | 7 ++ scripts/release-showcases-verify.mjs | 5 +- scripts/template-gallery-harness.mjs | 33 ++++- scripts/template-gallery-harness.test.mjs | 49 ++++++++ scripts/template-recipe-history.test.mjs | 143 +++++++++++++++++++++- scripts/template-recipe-records.mjs | 34 +++-- 7 files changed, 379 insertions(+), 16 deletions(-) diff --git a/config/template-recipe-history.v1.json b/config/template-recipe-history.v1.json index d495afa0..551e4158 100644 --- a/config/template-recipe-history.v1.json +++ b/config/template-recipe-history.v1.json @@ -3,8 +3,126 @@ "format": "modiff.gallery.recipe-history.v1", "source": { "repository": "sourav-das/modiff-template-gallery", - "revision": "042ea73d44522da8dd1a6168033bbfe811003568" + "revision": "b3fefedf324c08cb50eaf4654ce68fefc041d0ef" }, - "records": [], - "recordsHash": "sha256:canonical-json:f8f6f7a3acddfe32148f438f670c4e27821fbf2d092fcc72be6089ddd8b2f962" + "records": [ + { + "templateId": "flux_lora_ghibli_story", + "currentTemplateLockHash": "tpl_2365c66a", + "bindings": { + "templateLockHash": "tpl_c3ae3e8e", + "promptSettingsHash": "ps_df2d27f3", + "modelRevision": "alvarobartt/ghibli-characters-flux-lora@ed846114c71efc525e7f5a51e274dc976bb970a8 | black-forest-labs/FLUX.1-dev@3de623fc3c33e44ffbe2bad470d0f45bccf2eb21", + "modelCommit": "alvarobartt/ghibli-characters-flux-lora@ed846114c71efc525e7f5a51e274dc976bb970a8 | black-forest-labs/FLUX.1-dev@3de623fc3c33e44ffbe2bad470d0f45bccf2eb21", + "modelSetHash": "sha256:model-set-v1:5fa8d82d74196e11dc0c520be9d31596292a1f268a01c393d049b0dbd1c42341", + "inputArtifactsHash": "sha256:input-artifacts-v1:4f53cda18c2baa0c0354bb5f9a3ecbe5ed12ab4d8e11ba873c2f11161202b945", + "templateRevisionHash": "sha256:template-revision-v1:5699062506dfb9ea15f344016f6ac66a00b2dcecead1d6f6b3813315fa248444", + "graphHash": "sha256:canonical-graph-v1:b563b60f373571d19da7d0e99c2ef5c5a620e944e71f63d706c6e1fe99698da1", + "proofLockHash": "sha256:live-proof-lock-v1:4a1c9bc6fd1a8cb83e4354d88e53e4d9c9ba912dc9a5b8684621f4dbe7096ddd", + "provenanceHash": "sha256:canonical-json:22c15d4f1d99bf087a3d04c6d337bad19ee7b0240b416d9bec55f36d3344d288", + "qualityReviewHash": "sha256:canonical-json:55b5a31babbb0eafbf0457d8b0b8263f8d3da35bf53e1be4e8e277d1bba5f18b", + "mediaHash": "sha256:decoded-rgba:9a9d7ec768c9e3baa85918763f0e61c73a08eae3eec6a060a98334436977e236", + "outputPath": "/template-gallery/flux_lora_ghibli_story.webp", + "provenancePath": "/template-gallery/reviews/flux_lora_ghibli_story.reviewed-provenance.json", + "qualityReviewPath": "/template-gallery/reviews/flux_lora_ghibli_story.quality-review.json" + }, + "creator": { + "executionSelection": null, + "workflowBlocks": ["lora"], + "workflowBlockSettings": { + "lora": { + "model": { + "source": "hub", + "value": "alvarobartt/ghibli-characters-flux-lora", + "revision": "ed846114c71efc525e7f5a51e274dc976bb970a8", + "sha256": "5216bd7eeb12bf6f18cd5d40cb090831796b28aca7446577d08c5a7e4a09dc63", + "byteSize": 171969336, + "license": "flux-1-dev-non-commercial; personal-use-only" + }, + "weightName": "ghibli-characters-flux-lora.safetensors", + "adapterName": "ghibli_style", + "scale": 0.8 + } + } + }, + "declarationSource": { + "source": "Original immutable Gallery creator lock and retained proof. The later native-stage execution selection is absent in this saved recipe." + }, + "evidenceScope": "approved_historical_recipe", + "currentGraphExecutionProved": false + }, + { + "templateId": "wan_22_ti2v_5b_seed_vault", + "currentTemplateLockHash": "tpl_8552a85a", + "evidenceScope": "approved_historical_recipe", + "currentGraphExecutionProved": false, + "creator": { + "executionSelection": null, + "workflowBlockSettings": { + "soundtrack": { + "model": { + "source": "hub", + "value": "ACE-Step/acestep-v15-xl-turbo-diffusers", + "revision": "200ba991ae448051e14b0183157e35c2d27c9fb0" + }, + "pipelineClass": "AceStepPipeline", + "prompt": "Instrumental diegetic solo acoustic-guitar soundtrack matching existing subway footage. For the entire twelve seconds, perform forceful uninterrupted 84 BPM eighth-note down-up chord strumming on one warm steel-string acoustic guitar. Start the established strumming pattern immediately and keep its energy, tempo, and full-chord attack constant past ten seconds. Use a clear alternating downstroke-upstroke pick pattern, realistic pick attack, and natural fret noise, with no pauses or melodic detours. Do not cadence, resolve, decay, slow down, thin out, or stop early; the usable soundtrack will be cut from the middle of this continuous performance. Keep subtle station room ambience far beneath the guitar. No fingerpicking, arpeggio, lead melody, vocals, spoken words, drums, percussion, bass, band, synthesizer, applause, crowd cheering, fade-in, fade-out, or early ending.", + "negativePrompt": "fingerpicking, fingerpicked riff, arpeggio, arpeggiated guitar, lead guitar, lead melody, guitar solo, single-note melody, sparse picking, gentle picking, vocals, singing, speech, drums, percussion, bass guitar, full band, synthesizer, electronic beat, applause, crowd cheering, silence, pause, breakdown, cadence, final chord, early resolution, early decay, early ending, long intro, fade-in, fade-out, clipping, abrupt cutoff", + "durationSeconds": 12, + "steps": 8, + "guidanceScale": 1, + "seed": 1684710282, + "bpm": 84, + "keyscale": "E minor", + "timesignature": "4/4", + "audioFit": { + "sourceStartSeconds": 1, + "sourceDurationSeconds": 5.041666666666667, + "targetDurationSeconds": 5.041666666666667, + "delaySeconds": 0.16666666666666666, + "targetSampleRate": 48000, + "fadeInSeconds": 0.008, + "fadeOutSeconds": 0.12 + } + } + } + }, + "bindings": { + "verificationStatus": "reviewed", + "promptSettingsHash": "ps_7a8322d1", + "templateLockHash": "tpl_28550081", + "modelRevision": "ACE-Step/acestep-v15-xl-turbo-diffusers@200ba991ae448051e14b0183157e35c2d27c9fb0 | Wan-AI/Wan2.2-TI2V-5B-Diffusers@b8fff7315c768468a5333511427288870b2e9635", + "runtimeFingerprint": "sha256:stable-runtime-v1:82d4fd031dfb97607d1a1919c782d4ee3fa2fec4c95a46e3778bf01625334ba3", + "graphHash": "sha256:canonical-graph-v1:1e80e3dfd8b6ccd39ab616a34727853a3816a9d7d1c0e5645722f5b5c9df6436", + "proofLockHash": "sha256:live-proof-lock-v1:1f07f9a222ff0509490fa7f971714ceb54fffcd5d57b2627e7562f9047c927f3", + "backendSourceFingerprint": "sha256:backend-source-v1:d87e3a14c747fafb3350a4678a7f24569a36482551153716cd8e3937618d1b73", + "backendContractFingerprint": "sha256:backend-contract-v1:b45747235e613231f4d66b46f8dae48cf642ee4a7b036b2c06cf6b1096156ad6", + "modelCommit": "ACE-Step/acestep-v15-xl-turbo-diffusers@200ba991ae448051e14b0183157e35c2d27c9fb0 | Wan-AI/Wan2.2-TI2V-5B-Diffusers@b8fff7315c768468a5333511427288870b2e9635", + "modelSetHash": "sha256:model-set-v1:1e8868fb125d028ff0d54ccb1bc67be6d4a8dc0e623d14bc89e0ce2b8dd67f17", + "inputArtifactsHash": "sha256:input-artifacts-v1:4f53cda18c2baa0c0354bb5f9a3ecbe5ed12ab4d8e11ba873c2f11161202b945", + "templateRevisionHash": "sha256:template-revision-v1:caa6c16a2bac675ca369f7c3155b0f8a3f112e1ba7bb5615b3960183d5b6052e", + "provenancePath": "/template-gallery/reviews/wan_22_ti2v_5b_seed_vault.reviewed-provenance.json", + "provenanceHash": "sha256:canonical-json:c33a05cce51bae8c8d8133333bb0b5697545dac15d594921db1214f109961dc1", + "outputPath": "/template-gallery/wan_22_ti2v_5b_seed_vault.mp4", + "thumbnailPath": "/template-gallery/wan_22_ti2v_5b_seed_vault.poster.png", + "mediaHash": "sha256:decoded-video-framemd5:f46d1387bd5848c62fe9343a800d813a906ea33e0139f43f50926cc822bb1de7", + "decodedAudioHash": "sha256:decoded-audio-pcm-s16le-48000-stereo:7971158f3e9988632c8c2100cd1f485c3477dbdb1006e9814d52fcbb1c84db3d", + "audiovisualMediaHash": "sha256:decoded-av-v1:abb6bde8c9ac4d302e1741e51eb38bc139d873ae6914b5de548058a00c4bb476", + "mediaType": "video", + "verificationTimestamp": "2026-07-24T16:33:53.785Z", + "qualityReviewPath": "/template-gallery/reviews/wan_22_ti2v_5b_seed_vault.quality-review.json", + "qualityReviewHash": "sha256:canonical-json:7d1a9b1e47da3c779078312ac1d0ee42c339554f78154f29564d54f865c30ab8", + "qualityReviewStatus": "approved_reviewed", + "reviewer": "Maintainer synchronized-playback approval with Codex technical verification", + "reviewedAt": "2026-07-24T16:29:22.000Z", + "width": 1280, + "height": 704, + "frames": 121, + "durationSeconds": 5.04, + "cardPreviewPath": "/template-gallery/wan_22_ti2v_5b_seed_vault.card-preview.mp4", + "cardPreviewSha256": "sha256:bytes:f610ee34c08aa97e5b2a42e029c7e4acfe2e22f5a73431dcd9ce875ec4dd1145" + } + } + ], + "recordsHash": "sha256:canonical-json:e302107a88e92f2591a8315ba263d097d861c6eafc65e86cc22d01d0a27b744e" } diff --git a/docs/template-gallery-assets.md b/docs/template-gallery-assets.md index 0b5a68ca..7bd78ea3 100644 --- a/docs/template-gallery-assets.md +++ b/docs/template-gallery-assets.md @@ -89,6 +89,13 @@ When accepted current-recipe replacements supersede every active historical example, this ledger may contain zero records. Preserve prior declarations and sidecars in the immutable Dataset history; an empty active ledger grants no proof. +Run `npm run gallery:verify -- --reviewed-history` to verify the complete +Gallery using any exact historical recipe records. The report separates +verified current examples, available historical examples, and historical +records whose media are withheld. Rights, media, provenance and review checks +still apply. The default `npm run gallery:verify` continues to check the +current recipes only. + The browser continues to label these outputs **Previous recipe example**. Repository-relative weight filenames can resolve to their exact recorded Hub repository, but only the added revision field may be omitted from an older lock; diff --git a/scripts/release-showcases-verify.mjs b/scripts/release-showcases-verify.mjs index 341fa51b..06d11aab 100644 --- a/scripts/release-showcases-verify.mjs +++ b/scripts/release-showcases-verify.mjs @@ -17,7 +17,10 @@ const ids = validateReleaseShowcaseScope(profile, { source: read('src/studio/templateAssetSource.json'), }); const historical = verifyTemplateRecipeRecords(history, { root, runtime, manifest }); -const byId = new Map(historical.map((record) => [record.templateId, record])); +const selectedIds = new Set(ids); +const byId = new Map( + historical.filter(({ templateId }) => selectedIds.has(templateId)).map((record) => [record.templateId, record]), +); for (const selected of profile.includedTemplates) { const current = runtime.templates.find((template) => template.id === selected.id); if (selected.evidenceScope === 'current_recipe' && !runtime.findManifestEntry(current, manifest)) { diff --git a/scripts/template-gallery-harness.mjs b/scripts/template-gallery-harness.mjs index bd72987c..f068d524 100644 --- a/scripts/template-gallery-harness.mjs +++ b/scripts/template-gallery-harness.mjs @@ -259,6 +259,11 @@ function parseArgs(argv) { args.publish = true; continue; } + if (entry === '--reviewed-history') { + if (args.mode !== 'verify') throw new Error('--reviewed-history only applies to Gallery verification.'); + args.reviewedHistory = true; + continue; + } if (entry.startsWith('--')) { const [key, inlineValue] = entry.slice(2).split('='); const value = inlineValue ?? argv[index + 1]; @@ -701,7 +706,7 @@ export function validateReviewedDerivative(provenance, derivative, expected) { return errors; } -function validateSingleProvenance(provenance, expected, derivative = null) { +export function validateSingleProvenance(provenance, expected, derivative = null) { const errors = []; const audioDerivative = ['audio_remux', 'audio_caption_timeline_replacement'].includes(derivative?.kind) || @@ -2499,8 +2504,19 @@ export async function verifyGallery( ...completeManifest, examples: completeManifest.examples.filter((entry) => templateIds.includes(entry.templateId)), }; - const decodedHashCompatibilityMatches = []; const scope = galleryVerificationScope(root); + const historicalById = new Map(); + if (args.reviewedHistory === true) { + const { verifyTemplateRecipeRecords } = await import('./template-recipe-records.mjs'); + const history = JSON.parse(readFileSync(join(root, 'config/template-recipe-history.v1.json'), 'utf8')); + if (scope.source.mode === 'huggingface' && history.source?.repository !== scope.source.repoId) { + throw new Error('Reviewed Gallery history belongs to a different Dataset.'); + } + for (const record of verifyTemplateRecipeRecords(history, { root, runtime, manifest: completeManifest })) { + historicalById.set(record.templateId, record.template); + } + } + const decodedHashCompatibilityMatches = []; const unavailable = new Set(scope.withheld.map((asset) => asset.path)); const isWithheld = (path) => typeof path === 'string' && unavailable.has(path.replace(/^\//, '')); const withheldExamples = []; @@ -2616,7 +2632,7 @@ export async function verifyGallery( `${entry.templateId} audiovisual hash mismatch: expected ${entry.audiovisualMediaHash}, got ${audiovisualMediaHash ?? 'missing'}`, ); } - const template = templatesById.get(entry.templateId); + const template = historicalById.get(entry.templateId) ?? templatesById.get(entry.templateId); if (!template) { errors.push(`${entry.templateId} is not present in the current template runtime`); } else { @@ -2851,6 +2867,10 @@ export async function verifyGallery( const availableExamples = (manifest.examples?.length ?? 0) - withheldExamples.length; if (availableExamples === 0) errors.push('Gallery verification has no available published examples.'); + const historicalEntries = (manifest.examples ?? []) + .filter(({ templateId }) => historicalById.has(templateId)) + .map(({ templateId }) => ({ templateId, withheld: withheldExamples.some((row) => row.templateId === templateId) })); + const availableHistorical = historicalEntries.filter(({ withheld }) => !withheld).length; return { mode: 'verify', artifactDir, @@ -2858,6 +2878,13 @@ export async function verifyGallery( verificationScope: scope.source.mode === 'huggingface' ? 'pinned-remote-assets-materialized-locally' : 'complete-local', verifiedExamples: errors.length === 0 ? availableExamples : 0, + ...(args.reviewedHistory === true + ? { + historicalRecipeRecords: historicalEntries, + verifiedCurrentExamples: errors.length === 0 ? availableExamples - availableHistorical : 0, + verifiedHistoricalExamples: errors.length === 0 ? availableHistorical : 0, + } + : {}), ...(templateIds === undefined ? {} : { diff --git a/scripts/template-gallery-harness.test.mjs b/scripts/template-gallery-harness.test.mjs index f6bd40e0..01cfb81f 100644 --- a/scripts/template-gallery-harness.test.mjs +++ b/scripts/template-gallery-harness.test.mjs @@ -174,6 +174,55 @@ test('explicit Gallery selection keeps the default complete verification strict' } }); +test('reviewed history refuses a different source or a changed recipe ledger before decoding media', async () => { + const fixture = subsetVerificationFixture(); + try { + const body = { + schemaVersion: 1, + format: 'modiff.gallery.recipe-history.v1', + source: { repository: 'other/gallery', revision: fixture.source.revision }, + records: [], + }; + fixture.write('config/template-recipe-history.v1.json', { ...body, recordsHash: canonicalJsonHash(body) }); + await assert.rejects( + () => verifyGallery({ reviewedHistory: true }, 'synthetic-history', fixture.options), + /history belongs to a different Dataset/u, + ); + body.source.repository = fixture.source.repoId; + fixture.write('config/template-recipe-history.v1.json', { ...body, recordsHash: 'changed' }); + await assert.rejects( + () => verifyGallery({ reviewedHistory: true }, 'synthetic-history', fixture.options), + /history schema, immutable source or content hash is invalid/u, + ); + assert.deepEqual(fixture.decoded, []); + assert.equal((await verifyGallery({}, 'default-verification', fixture.options)).ok, true); + } finally { + fixture.dispose(); + } +}); + +test( + 'saved Wan media and withheld Ghibli records pass only the explicitly reviewed historical audit', + { skip: !process.env.MODIFF_VERIFY_REVIEWED_HISTORY }, + async () => { + const templateIds = ['flux_lora_ghibli_story', 'wan_22_ti2v_5b_seed_vault']; + const current = await verifyGallery({}, 'current-recipes', { templateIds }); + assert.deepEqual( + current.errors, + templateIds.map((id) => `${id} manifest templateLockHash is stale for the current template revision`), + ); + const saved = await verifyGallery({ reviewedHistory: true }, 'reviewed-recipes', { templateIds }); + assert.deepEqual(saved.errors, []); + assert.equal(saved.verifiedCurrentExamples, 0); + assert.equal(saved.verifiedHistoricalExamples, 1); + assert.deepEqual(saved.historicalRecipeRecords, [ + { templateId: templateIds[0], withheld: true }, + { templateId: templateIds[1], withheld: false }, + ]); + assert.equal(saved.withheldExamples[0].templateId, templateIds[0]); + }, +); + test('decoded video identity tolerates only the reviewed FFmpeg software banner difference', () => { const original = Buffer.from( '#format: frame checksums\n#version: 2\n#hash: MD5\n#software: Lavf61.1.100\n' + diff --git a/scripts/template-recipe-history.test.mjs b/scripts/template-recipe-history.test.mjs index cd77dede..01d27678 100644 --- a/scripts/template-recipe-history.test.mjs +++ b/scripts/template-recipe-history.test.mjs @@ -1,9 +1,11 @@ import assert from 'node:assert/strict'; -import { readFileSync } from 'node:fs'; +import { createHash } from 'node:crypto'; +import { mkdirSync, mkdtempDisposableSync, readFileSync, writeFileSync } from 'node:fs'; +import { tmpdir } from 'node:os'; import { resolve } from 'node:path'; import test from 'node:test'; import { createServer } from 'vite'; -import { canonicalJsonHash } from './template-gallery-harness.mjs'; +import { canonicalJsonHash, decodedAudiovisualMediaHash } from './template-gallery-harness.mjs'; import { verifyTemplateRecipeRecords } from './template-recipe-records.mjs'; const root = resolve(import.meta.dirname, '..'); @@ -112,6 +114,143 @@ test('all reconciled records reproduce their original locks and preserve histori } }); +test('approved audio remux history binds the derivative and its original run independently', () => { + using temporary = mkdtempDisposableSync(resolve(tmpdir(), 'modiff-historical-remux-')); + const gallery = resolve(temporary.path, 'public/template-gallery'); + mkdirSync(gallery, { recursive: true }); + const templateId = 'reviewed_music_video'; + const currentTemplateLockHash = 'tpl_12345555'; + const templateLockHash = 'tpl_12344444'; + const sourceTemplateLockHash = 'tpl_12343333'; + const promptSettingsHash = 'ps_12340000'; + const modelRevision = `example/wan@${'a'.repeat(40)}`; + const decodedMediaHash = 'sha256:decoded-video:original'; + const decodedAudioHash = 'sha256:decoded-audio:replacement'; + const audiovisualMediaHash = decodedAudiovisualMediaHash(decodedMediaHash, decodedAudioHash); + const modelSetHash = 'sha256:model-set:original'; + const inputArtifactsHash = 'sha256:input-artifacts:original'; + const proofFields = { + graphHash: 'sha256:graph:original', + proofLockHash: 'sha256:proof-lock:original', + backendSourceFingerprint: 'sha256:backend-source:original', + backendContractFingerprint: 'sha256:backend-contract:original', + modelCommit: modelRevision, + templateRevisionHash: 'sha256:template-revision:original', + }; + const processorPath = 'scripts/align-subway-strum-review.py'; + const processorHash = createHash('sha256') + .update(readFileSync(resolve(root, processorPath))) + .digest('hex'); + const operation = { name: 'audio_delay_fit_and_stream_copy_remux', parameters: { delayVideoFrames: 4 } }; + const expected = { + templateId, + templateLockHash, + promptSettingsHash, + modelRevision, + runtimeFingerprint: 'sha256:runtime:original', + decodedMediaHash, + decodedAudioHash, + audiovisualMediaHash, + modelSetHash, + inputArtifactsHash, + }; + const prototype = { + schemaVersion: 1, + format: 'modiff.gallery.reviewed-provenance.v1', + templateId, + bindings: expected, + run: { + ...proofFields, + template: { id: templateId, promptSettingsHash }, + templateLockHash: sourceTemplateLockHash, + modelRevision, + models: { hash: modelSetHash, revisionLock: modelRevision, count: 1, items: [{ modelRevision }] }, + inputArtifactsHash, + mediaHash: decodedMediaHash, + output: { collectionHash: 'sha256:output-collection:original' }, + blockers: [], + }, + derivative: { + ...expected, + schemaVersion: 1, + format: 'modiff.gallery.reviewed-derivative.v1', + kind: 'audio_remux', + sourceOutputCollectionHash: 'sha256:output-collection:original', + sourceVideoHash: decodedMediaHash, + sourceTemplateLockHash, + sourcePromptSettingsHash: promptSettingsHash, + replacementAudio: { encodedSha256: 'encoded', decodedSha256: 'decoded', provenanceSha256: 'provenance' }, + processor: { path: processorPath, contentHash: `sha256:bytes:${processorHash}` }, + operation, + operationHash: canonicalJsonHash(operation), + }, + }; + const review = { status: 'approved_reviewed' }; + writeFileSync(resolve(gallery, 'review.json'), JSON.stringify(review)); + const template = { id: templateId, executionSelection: { implementation: 'pipeline_stages' } }; + const historical = { id: templateId }; + const runtime = { + templates: [template], + templateLockHash: () => currentTemplateLockHash, + promptSettingsHash: () => promptSettingsHash, + findHistoricalTemplateRecipe: () => ({ template: historical }), + findManifestEntry: () => undefined, + }; + const verify = (bundle) => { + writeFileSync(resolve(gallery, 'provenance.json'), JSON.stringify(bundle)); + const entry = { + ...expected, + ...proofFields, + mediaHash: decodedMediaHash, + provenancePath: '/template-gallery/provenance.json', + provenanceHash: canonicalJsonHash(bundle), + qualityReviewPath: '/template-gallery/review.json', + qualityReviewHash: canonicalJsonHash(review), + }; + const body = { + schemaVersion: 1, + format: 'modiff.gallery.recipe-history.v1', + source: { repository: 'example/gallery', revision: 'b'.repeat(40) }, + records: [ + { + templateId, + currentTemplateLockHash, + evidenceScope: 'approved_historical_recipe', + currentGraphExecutionProved: false, + creator: { executionSelection: null, workflowBlockSettings: {} }, + bindings: { templateLockHash, provenanceHash: entry.provenanceHash }, + }, + ], + }; + return verifyTemplateRecipeRecords( + { ...body, recordsHash: canonicalJsonHash(body) }, + { root: temporary.path, runtime, manifest: { schemaVersion: 2, examples: [entry] } }, + ); + }; + + const [record] = verify(prototype); + assert.equal(record.template, historical); + assert.equal(record.evidenceScope, 'approved_historical_recipe'); + assert.equal(record.currentGraphExecutionProved, false); + for (const mutate of [ + (bundle) => delete bundle.derivative, + (bundle) => (bundle.derivative.sourceTemplateLockHash = templateLockHash), + (bundle) => (bundle.derivative.templateLockHash = currentTemplateLockHash), + (bundle) => (bundle.derivative.operation.parameters.delayVideoFrames = 5), + (bundle) => (bundle.derivative.decodedAudioHash = 'different audio'), + (bundle) => (bundle.derivative.sourceOutputCollectionHash = 'different source'), + (bundle) => (bundle.bindings.runtimeFingerprint = 'different runtime'), + (bundle) => (bundle.run.graphHash = 'different graph'), + (bundle) => (bundle.run.inputArtifactsHash = 'different inputs'), + (bundle) => (bundle.run.models.count = 0), + (bundle) => (bundle.run.models.items = 'x'), + ]) { + const changed = structuredClone(prototype); + mutate(changed); + assert.throws(() => verify(changed), /original creator, graph or complete model-set proof/u); + } +}); + test('the seven accepted native replacements use current recipes and retire active historical associations', () => { const replaced = [ 'ltx_video_animated_story', diff --git a/scripts/template-recipe-records.mjs b/scripts/template-recipe-records.mjs index c87f4edb..894241ad 100644 --- a/scripts/template-recipe-records.mjs +++ b/scripts/template-recipe-records.mjs @@ -1,7 +1,7 @@ import { readFileSync, realpathSync } from 'node:fs'; import { isAbsolute, join, relative, resolve } from 'node:path'; import { pathToFileURL } from 'node:url'; -import { canonicalJsonHash, loadTemplateRuntime } from './template-gallery-harness.mjs'; +import { canonicalJsonHash, loadTemplateRuntime, validateSingleProvenance } from './template-gallery-harness.mjs'; function publicJson(root, path) { if ( @@ -66,20 +66,40 @@ export function verifyTemplateRecipeRecords(history, { root, runtime, manifest } } const bundle = publicJson(root, entry.provenancePath); const proof = bundle.run; + const expected = { + templateId: entry.templateId, + templateLockHash: entry.templateLockHash, + promptSettingsHash: entry.promptSettingsHash, + modelRevision: entry.modelRevision, + decodedMediaHash: entry.mediaHash, + ...(entry.decodedAudioHash ? { decodedAudioHash: entry.decodedAudioHash } : {}), + ...(entry.audiovisualMediaHash ? { audiovisualMediaHash: entry.audiovisualMediaHash } : {}), + ...(entry.modelSetHash ? { modelSetHash: entry.modelSetHash } : {}), + ...(entry.inputArtifactsHash ? { inputArtifactsHash: entry.inputArtifactsHash } : {}), + }; + // The public run's local runtime metadata is redacted. Verify the sealed + // runtime binding without trying to derive it from that redacted payload. + const publicBindings = { ...expected, runtimeFingerprint: entry.runtimeFingerprint }; if ( canonicalJsonHash(bundle) !== entry.provenanceHash || + bundle.schemaVersion !== 1 || + bundle.format !== 'modiff.gallery.reviewed-provenance.v1' || + bundle.templateId !== record.templateId || !proof || - proof.blockers?.length || - proof.template?.id !== record.templateId || - proof.templateLockHash !== entry.templateLockHash || - proof.template.promptSettingsHash !== runtime.promptSettingsHash(current) || + (bundle.bindings && Object.entries(publicBindings).some(([key, value]) => bundle.bindings[key] !== value)) || + proof.template?.promptSettingsHash !== runtime.promptSettingsHash(historical.template) || proof.graphHash !== entry.graphHash || proof.proofLockHash !== entry.proofLockHash || + proof.backendSourceFingerprint !== entry.backendSourceFingerprint || + proof.backendContractFingerprint !== entry.backendContractFingerprint || + proof.modelCommit !== entry.modelCommit || proof.templateRevisionHash !== entry.templateRevisionHash || proof.models?.hash !== entry.modelSetHash || proof.models?.revisionLock !== entry.modelRevision || - !proof.models?.items?.length || - proof.models.count !== proof.models.items.length + !Array.isArray(proof.models?.items) || + !proof.models.items.length || + proof.models.count !== proof.models.items.length || + validateSingleProvenance(proof, expected, bundle.derivative).length ) { fail('the unchanged original creator, graph or complete model-set proof did not match'); } From f8ee89c077dea8805621d4a82ecbb44799fddab0 Mon Sep 17 00:00:00 2001 From: Sourav Das Date: Thu, 19 Nov 2026 23:53:38 +0530 Subject: [PATCH 259/440] Register approved saved Spandrel 2x technical preview --- CONTRIBUTING.md | 7 +- config/release-showcase-scope.v1.json | 10 +- config/template-asset-rights.v1.json | 108 +++++++++++++++++- config/template-assets.v1.json | 71 ++++++++++-- docs/release-preview-scope.md | 7 +- docs/template-gallery-assets.md | 10 +- public/template-gallery/manifest.json | 31 +++++ scripts/bundle-budget.mjs | 5 + ...e-full-native-template-candidates.test.mjs | 2 +- scripts/modiff-template.test.mjs | 10 ++ scripts/release-contract-core.mjs | 10 +- scripts/release-contract.mjs | 6 +- scripts/retained-gallery-provenance.mjs | 29 ++++- scripts/retained-gallery-release.mjs | 78 ++++++++++++- scripts/retained-gallery-release.test.mjs | 67 ++++++++++- scripts/retained-gallery-templates.test.mjs | 24 +++- scripts/retained-template-association.mjs | 94 +++++++++++++-- scripts/template-gallery-harness.test.mjs | 23 +++- scripts/template-quality.test.mjs | 9 +- src/studio/retainedGalleryTemplates.ts | 94 ++++++++++++++- src/studio/templateAssetSource.json | 6 +- src/studio/templateQuality.ts | 11 ++ src/studio/types.ts | 1 + tests/e2e/studio-mocked/studio-mocked.spec.ts | 12 +- 24 files changed, 663 insertions(+), 62 deletions(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 7509e422..e829f4e6 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -529,8 +529,9 @@ execution with that prompt or file and needs a reviewed recipe to bind it for release. Native-resolution DDIM, DDPM, and Consistency samples are technical canaries under the project's model review policy. -The reviewed Marigold synthetic ramp and SmolLM2 rain-gauge catalog recipes -use declarations in `src/studio/retainedGalleryTemplates.ts`. They share +The reviewed Marigold synthetic ramp, SmolLM2 rain-gauge and Spandrel +Real-ESRGAN 2× catalog recipes use declarations in +`src/studio/retainedGalleryTemplates.ts`. They share the existing task contracts. Keep their original standalone graphs and receipts. For an exact approved local review, retain `approval.v1.json`, the original `review-scope.json` inventory, and its reviewed files beneath @@ -548,7 +549,7 @@ to its original standalone workflow, then verifies the registered proof and media against the active rights-approved Gallery set. The association supplies no Auto or hardware approval. -Publication removes the two original entries from the hidden-candidate +Publication removes the corresponding original entries from the hidden-candidate authoring ledger. Retain each exact original row as `authoring-spec.original.json` beside the approved canonical evidence descriptor. The historical reader checks both byte identities before using the archived diff --git a/config/release-showcase-scope.v1.json b/config/release-showcase-scope.v1.json index cced7b72..08511008 100644 --- a/config/release-showcase-scope.v1.json +++ b/config/release-showcase-scope.v1.json @@ -4,7 +4,7 @@ "name": "Registered showcase preview without AMD-cloud backlog", "dataset": { "repository": "sourav-das/modiff-template-gallery", - "revision": "b3fefedf324c08cb50eaf4654ce68fefc041d0ef" + "revision": "8ffd3ced9c05fa385a5eea80838567468c6d98aa" }, "originalCampaign": { "total": 89, @@ -469,6 +469,12 @@ "reason": "Published and registered as a supplementary Gallery example outside the original campaign selection.", "countedAsComplete": false }, + { + "id": "spandrel_x2_synthetic_gradient", + "category": "supplementary-only", + "countedAsComplete": false, + "reason": "Published and registered as a supplementary Gallery technical preview outside the original campaign selection." + }, { "id": "wan_21_t2v_13b_seed_vault", "category": "amd-cloud", @@ -512,5 +518,5 @@ "countedAsComplete": false } ], - "profileHash": "sha256:canonical-json:b9d5e60d449044a2445c782bfc5930cc3d6eade0d1786a89c548b66c1d8436a3" + "profileHash": "sha256:canonical-json:b1ce2f98559f06dab8c067246b5851f40e4b0d3c8abf66760be43f6b6dabeb0a" } diff --git a/config/template-asset-rights.v1.json b/config/template-asset-rights.v1.json index c5c98ef9..ae9edcf8 100644 --- a/config/template-asset-rights.v1.json +++ b/config/template-asset-rights.v1.json @@ -1,6 +1,6 @@ { "schemaVersion": 1, - "assetSetId": "sha256:canonical-json:c3d16e412f427cdd1e51b95f7a4173938cb4daecc7e5e6744324fa4845046637", + "assetSetId": "sha256:canonical-json:169f19ce25abd67b1fbc4226176786976ee8a62f5fc0b503bd33a6fa1a8f7000", "records": [ { "path": "template-gallery/ace_step_audio_continuation.wav", @@ -4345,6 +4345,29 @@ "provenanceTemplateId": "reference_fusion", "consumingTemplateIds": ["reference_fusion"] }, + { + "path": "template-gallery/inputs/spandrel_x2_synthetic_gradient.before.png", + "sha256": "sha256:bytes:626815c78eaad46cad849732d1598b45b91700ce046c1ee3f4e2444db80aa32a", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Original maintainer-approved synthetic gradient fixture", + "sourceUrl": null, + "sourceRevision": null, + "sourceLicense": "MoDiff-authored fixture or Gallery metadata", + "modelTerms": [], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [], + "assetLicense": "MoDiff-Gallery-Restricted-1.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-19", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "ea2e749b805706828428bd34589bd41263e9c432a9503fe17c3c6a6d7d932176", + "publicationBasis": "Maintainer approved this exact saved Spandrel 2× technical preview and confirmed redistribution rights.", + "provenanceTemplateId": "spandrel_x2_synthetic_gradient" + }, { "path": "template-gallery/inputs/wan_vace_grayscale_control.before.mp4", "sha256": "sha256:bytes:748b164fd91bc2eed97f7c1d1125a04496a056f29cc016d7cc0da3734c2303b7", @@ -5220,14 +5243,14 @@ }, { "path": "template-gallery/manifest.json", - "sha256": "sha256:bytes:6d0538b4311d5366bfe162e5af113895b256c91668ade3e250e80c2ca4d37d12", + "sha256": "sha256:bytes:00dd065727ab3e3c88f3734fd3a12aa4bc946bb204411ca4731aa7ccff23146b", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", - "creationMethod": "Project-authored redacted retained Gallery provenance, review, or registration metadata", + "creationMethod": "Project-authored redacted retained Gallery review, provenance or registration metadata", "sourceUrl": null, "sourceRevision": null, - "sourceLicense": "MoDiff-authored exact fixture or Gallery metadata", + "sourceLicense": "MoDiff-authored fixture or Gallery metadata", "modelTerms": [], "aiGenerated": false, "humanLikenessConsent": "not-applicable", @@ -5237,8 +5260,8 @@ "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-19", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "e604b0284a57b65b20343c7776511ae15bef922c7e104c09f0f6931eec610d2d", - "publicationBasis": "Activate and publish the two approved Gallery candidates using their retained native runs." + "humanApprovalPacketSHA256": "ea2e749b805706828428bd34589bd41263e9c432a9503fe17c3c6a6d7d932176", + "publicationBasis": "Maintainer approved this exact saved Spandrel 2× technical preview and confirmed redistribution rights." }, { "path": "template-gallery/marigold_depth_synthetic_ramp.webp", @@ -9631,6 +9654,52 @@ "publicationBasis": "Activate and publish the two approved Gallery candidates using their retained native runs.", "provenanceTemplateId": "smollm2_rain_gauge" }, + { + "path": "template-gallery/reviews/spandrel_x2_synthetic_gradient.quality-review.json", + "sha256": "sha256:bytes:75cd20b7aa48a0e129f10d09801f4ee7183c8a3bda5cf8a16bf372d9459c97f1", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted retained Gallery review, provenance or registration metadata", + "sourceUrl": null, + "sourceRevision": null, + "sourceLicense": "MoDiff-authored fixture or Gallery metadata", + "modelTerms": [], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-19", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "ea2e749b805706828428bd34589bd41263e9c432a9503fe17c3c6a6d7d932176", + "publicationBasis": "Maintainer approved this exact saved Spandrel 2× technical preview and confirmed redistribution rights.", + "provenanceTemplateId": "spandrel_x2_synthetic_gradient" + }, + { + "path": "template-gallery/reviews/spandrel_x2_synthetic_gradient.retained-template-provenance.json", + "sha256": "sha256:bytes:43789929c6d5eab5bf18f99df491e30a71f0ebd0a74b8162af30893303e282c0", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted retained Gallery review, provenance or registration metadata", + "sourceUrl": null, + "sourceRevision": null, + "sourceLicense": "MoDiff-authored fixture or Gallery metadata", + "modelTerms": [], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-19", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "ea2e749b805706828428bd34589bd41263e9c432a9503fe17c3c6a6d7d932176", + "publicationBasis": "Maintainer approved this exact saved Spandrel 2× technical preview and confirmed redistribution rights.", + "provenanceTemplateId": "spandrel_x2_synthetic_gradient" + }, { "path": "template-gallery/reviews/wan_22_ti2v_5b_seed_vault.quality-review.json", "sha256": "sha256:bytes:119627f8cbd5751af0bf7cbf7dc7f5fa6a22ce28000438e0e49fc7569a493596", @@ -12358,6 +12427,33 @@ "publicationBasis": "Activate and publish the two approved Gallery candidates using their retained native runs.", "provenanceTemplateId": "smollm2_rain_gauge" }, + { + "path": "template-gallery/spandrel_x2_synthetic_gradient.webp", + "sha256": "sha256:bytes:5b1ea25aacbedb50055ac010b38da45dbb3dab5477be1b2b1d99781a299e8729", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Exact maintainer-approved retained technical upscale output", + "sourceUrl": "https://huggingface.co/nateraw/real-esrgan/tree/42efb9c3eeed1f5c0c8a626cf5f7f4481dfbb094", + "sourceRevision": "nateraw/real-esrgan@42efb9c3eeed1f5c0c8a626cf5f7f4481dfbb094", + "sourceLicense": "Generated output subject to recorded model terms", + "modelTerms": [ + "nateraw/real-esrgan@42efb9c3eeed1f5c0c8a626cf5f7f4481dfbb094: BSD-3-Clause model terms; https://huggingface.co/nateraw/real-esrgan/tree/42efb9c3eeed1f5c0c8a626cf5f7f4481dfbb094" + ], + "aiGenerated": true, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "nateraw/real-esrgan@42efb9c3eeed1f5c0c8a626cf5f7f4481dfbb094 — https://huggingface.co/nateraw/real-esrgan/tree/42efb9c3eeed1f5c0c8a626cf5f7f4481dfbb094" + ], + "assetLicense": "MoDiff-Gallery-Restricted-1.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-19", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "ea2e749b805706828428bd34589bd41263e9c432a9503fe17c3c6a6d7d932176", + "publicationBasis": "Maintainer approved this exact saved Spandrel 2× technical preview and confirmed redistribution rights.", + "provenanceTemplateId": "spandrel_x2_synthetic_gradient" + }, { "path": "template-gallery/wan_21_t2v_13b_seed_vault.card-poster.png", "sha256": "sha256:bytes:fd3dbd225c9cd6d1a07b0bcfd80724b60b235f4287423a234c0a56017cd1d3b2", diff --git a/config/template-assets.v1.json b/config/template-assets.v1.json index ea54d327..f70a943e 100644 --- a/config/template-assets.v1.json +++ b/config/template-assets.v1.json @@ -1770,6 +1770,17 @@ "width": 1024, "height": 1024 }, + { + "path": "template-gallery/inputs/spandrel_x2_synthetic_gradient.before.png", + "size": 177, + "sha256": "sha256:bytes:626815c78eaad46cad849732d1598b45b91700ce046c1ee3f4e2444db80aa32a", + "contentType": "image/png", + "purposes": [ + "runtime" + ], + "width": 64, + "height": 48 + }, { "path": "template-gallery/inputs/wan_vace_grayscale_control.before.mp4", "size": 289576, @@ -2114,8 +2125,8 @@ }, { "path": "template-gallery/manifest.json", - "size": 229404, - "sha256": "sha256:bytes:6d0538b4311d5366bfe162e5af113895b256c91668ade3e250e80c2ca4d37d12", + "size": 231734, + "sha256": "sha256:bytes:00dd065727ab3e3c88f3734fd3a12aa4bc946bb204411ca4731aa7ccff23146b", "contentType": "application/json", "purposes": [ "runtime", @@ -3132,7 +3143,8 @@ "sha256": "sha256:bytes:6009868ad3e76b584a12eb4193daf7680a0f224224bcda917c2ebbe8f543d1a5", "contentType": "application/json", "purposes": [ - "runtime" + "runtime", + "tooling" ] }, { @@ -3141,7 +3153,8 @@ "sha256": "sha256:bytes:f87545939eb878e8655640f7563f6ddb93b355ba72c716959fb61c39806fa8a3", "contentType": "application/json", "purposes": [ - "runtime" + "runtime", + "tooling" ] }, { @@ -3900,13 +3913,32 @@ "runtime" ] }, + { + "path": "template-gallery/reviews/spandrel_x2_synthetic_gradient.quality-review.json", + "size": 2674, + "sha256": "sha256:bytes:75cd20b7aa48a0e129f10d09801f4ee7183c8a3bda5cf8a16bf372d9459c97f1", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, + { + "path": "template-gallery/reviews/spandrel_x2_synthetic_gradient.retained-template-provenance.json", + "size": 3397, + "sha256": "sha256:bytes:43789929c6d5eab5bf18f99df491e30a71f0ebd0a74b8162af30893303e282c0", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, { "path": "template-gallery/reviews/wan_22_ti2v_5b_seed_vault.quality-review.json", "size": 8097, "sha256": "sha256:bytes:119627f8cbd5751af0bf7cbf7dc7f5fa6a22ce28000438e0e49fc7569a493596", "contentType": "application/json", "purposes": [ - "runtime" + "runtime", + "tooling" ] }, { @@ -3915,7 +3947,8 @@ "sha256": "sha256:bytes:260b3901159d64efad800ec39e72a1ac893e0b1f717551b572288f2a10efe1e8", "contentType": "application/json", "purposes": [ - "runtime" + "runtime", + "tooling" ] }, { @@ -5098,6 +5131,17 @@ "runtime" ] }, + { + "path": "template-gallery/spandrel_x2_synthetic_gradient.webp", + "size": 3094, + "sha256": "sha256:bytes:5b1ea25aacbedb50055ac010b38da45dbb3dab5477be1b2b1d99781a299e8729", + "contentType": "image/webp", + "purposes": [ + "runtime" + ], + "width": 128, + "height": 96 + }, { "path": "template-gallery/wan_21_t2v_13b_seed_vault.card-poster.png", "size": 2904091, @@ -5137,7 +5181,8 @@ "sha256": "sha256:bytes:f610ee34c08aa97e5b2a42e029c7e4acfe2e22f5a73431dcd9ce875ec4dd1145", "contentType": "video/mp4", "purposes": [ - "runtime" + "runtime", + "tooling" ] }, { @@ -5146,7 +5191,8 @@ "sha256": "sha256:bytes:2056b7fb1da71b48ebad25a95d8ea7fb124ba7eb884df940520224f8f488da7b", "contentType": "video/mp4", "purposes": [ - "runtime" + "runtime", + "tooling" ] }, { @@ -5155,7 +5201,8 @@ "sha256": "sha256:bytes:5c9d7a7553921204ceca0ac74d5405d6ce81909e230e81e9edffaf0f2ffc50c6", "contentType": "image/png", "purposes": [ - "runtime" + "runtime", + "tooling" ], "width": 1280, "height": 704 @@ -5492,9 +5539,9 @@ "height": 1024 } ], - "assetSetId": "sha256:canonical-json:c3d16e412f427cdd1e51b95f7a4173938cb4daecc7e5e6744324fa4845046637", + "assetSetId": "sha256:canonical-json:169f19ce25abd67b1fbc4226176786976ee8a62f5fc0b503bd33a6fa1a8f7000", "status": "ready", - "assetCount": 555, - "totalBytes": 1036632406, + "assetCount": 559, + "totalBytes": 1036644078, "missingAssets": [] } diff --git a/docs/release-preview-scope.md b/docs/release-preview-scope.md index 0beb5842..ef5ed430 100644 --- a/docs/release-preview-scope.md +++ b/docs/release-preview-scope.md @@ -6,9 +6,10 @@ original 89-case campaign. The executable selection is revision and each accepted recipe. Run `npm run release:showcases:verify` to verify that selection. This check does not replace the full release gate. -Marigold Depth LCM — Synthetic Ramp and SmolLM2 — Rain Gauge Answer are -registered in the Gallery as supplements. They count toward the workflow release -report and sit outside the original 89-case selection. +Marigold Depth LCM — Synthetic Ramp, SmolLM2 — Rain Gauge Answer, and Spandrel +Real-ESRGAN 2× — Synthetic Gradient are registered in the Gallery as supplements. +They count toward the workflow release report and sit outside the original +89-case selection. Five originals remain deferred to AMD cloud: Amber Glass Replacement, The Winter Delivery, Subway Musician, Final Mise en Place and Morning Light Teapot. Chinese diff --git a/docs/template-gallery-assets.md b/docs/template-gallery-assets.md index 7bd78ea3..f6320fdb 100644 --- a/docs/template-gallery-assets.md +++ b/docs/template-gallery-assets.md @@ -807,14 +807,16 @@ This source update does not approve media rights, template quality, model execution, Auto, or Gallery eligibility. New inputs and previews still require the normal per-file human rights and template evidence reviews. -The reviewed Marigold depth preview and SmolLM2 rain-gauge reply use -`modiff.gallery.retained-template-provenance.v1`. This format is limited to the -two immutable reviewed associations. It binds the active catalog recipe, +The reviewed Marigold depth preview, SmolLM2 rain-gauge reply and Spandrel +Real-ESRGAN 2× comparison use `modiff.gallery.retained-template-provenance.v1`. +This format is limited to immutable reviewed associations. It binds the active catalog recipe, observed source and runtime, the approved publication bytes, and the exact quality review. The original standalone task identifiers and private captures remain in the private archive. SmolLM2's JSON retains its own encoded and decoded identities alongside the archived transport hash. Marigold records the -source-size visual preview of a synthetic ramp. +source-size visual preview of a synthetic ramp. Spandrel binds the original +64 × 48 source and 128 × 96 delivery to its pinned weight file. The comparison +is a technical preview of the 2× route and measures no fine-detail recovery. Their original canonical workflow rows remain attached to the standalone task skeletons. Release qualification links each row to its verified Gallery diff --git a/public/template-gallery/manifest.json b/public/template-gallery/manifest.json index 75f26bb4..3bbca7bf 100644 --- a/public/template-gallery/manifest.json +++ b/public/template-gallery/manifest.json @@ -2910,6 +2910,37 @@ "qualityReviewStatus": "approved_reviewed", "reviewer": "MoDiff workspace maintainer", "reviewedAt": "2026-11-19T13:32:10.468Z" + }, + { + "templateId": "spandrel_x2_synthetic_gradient", + "verificationStatus": "reviewed", + "promptSettingsHash": "ps_e7556958", + "templateLockHash": "tpl_43c3b587", + "modelRevision": "nateraw/real-esrgan@42efb9c3eeed1f5c0c8a626cf5f7f4481dfbb094", + "runtimeFingerprint": "sha256:stable-runtime-v1:d1ce1bcfa35a3946d562bf90a663deadedaa79939c2c06cb9ac24c07f822dcc9", + "graphHash": "sha256:canonical-graph-v1:700b85c678b691dee3c8ad1e2ea6d4cc0017d1b12d47704e45e913e17f929451", + "proofLockHash": "sha256:retained-template-association-v1:8776b06a18e1b61c737fc9ee80ca907088853705131c457e78bbaf3140ae9dff", + "backendSourceFingerprint": "sha256:backend-source-v1:fd16f3acc76e08525b28215b603104d281e8ab26169b03076a112edbb7d100bb", + "backendContractFingerprint": "sha256:backend-contract-v1:bb13de17797e5bf1f3427f45b91f253013f7f0e590749710332783f28d251566", + "modelCommit": "42efb9c3eeed1f5c0c8a626cf5f7f4481dfbb094", + "templateRevisionHash": "8de95b8b13a0636a37a7db672fbced2199e00e6719517c282f68f685bc5fd482", + "provenancePath": "/template-gallery/reviews/spandrel_x2_synthetic_gradient.retained-template-provenance.json", + "provenanceHash": "sha256:canonical-json:c8e7a35440a517ff338c5faf58faf30571aa63b70152791edd01aa6557159d34", + "outputPath": "/template-gallery/spandrel_x2_synthetic_gradient.webp", + "thumbnailPath": "/template-gallery/spandrel_x2_synthetic_gradient.webp", + "mediaHash": "sha256:decoded-rgba:a292be547bc61295a658f09621a5a88cc0654008f0318147fef8a19faefa4cf0", + "mediaType": "image", + "verificationTimestamp": "2026-11-19T06:05:44.894Z", + "qualityReviewPath": "/template-gallery/reviews/spandrel_x2_synthetic_gradient.quality-review.json", + "qualityReviewHash": "sha256:canonical-json:2951773a705fb79cadec86b280732b29921682e3bb9c97f1279acaee8b653e6f", + "qualityReviewStatus": "approved_reviewed", + "reviewer": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-19T18:08:33.393Z", + "beforePath": "/template-gallery/inputs/spandrel_x2_synthetic_gradient.before.png", + "afterPath": "/template-gallery/spandrel_x2_synthetic_gradient.webp", + "beforeMediaHash": "sha256:bytes:626815c78eaad46cad849732d1598b45b91700ce046c1ee3f4e2444db80aa32a", + "width": 128, + "height": 96 } ] } diff --git a/scripts/bundle-budget.mjs b/scripts/bundle-budget.mjs index 0f7a3e17..0d06a4f3 100644 --- a/scripts/bundle-budget.mjs +++ b/scripts/bundle-budget.mjs @@ -490,6 +490,9 @@ const SOURCE_LICENSES = new URL('../public/THIRD_PARTY_LICENSES.txt', import.met // 504492/682980/346033 largest/startup/deferred gzip bytes: the reviewed // migration ceilings below still pass with 8/12/304 bytes of headroom. const MAX_STARTUP_CHUNK_GZIP_BYTES = + // The retained Spandrel recipe adds 472 gzip bytes (516459 -> 516931). + // Keep five bytes of startup headroom and the two existing deferred limits. + 472 + // Two retained Gallery recipes add 1688 gzip bytes (514771 -> 516459). // Preserve five bytes of startup headroom and both deferred limits. 1688 + @@ -730,6 +733,8 @@ const MAX_STARTUP_CHUNK_GZIP_BYTES = // The same build measures 673359 aggregate startup bytes (+45 over the cap). // Keep 19 bytes of headroom; deferred limits and loading boundaries stay fixed. const MAX_STARTUP_GZIP_BYTES = + // The same Gallery build adds 479 startup gzip bytes (694940 -> 695419). + 479 + // The same Gallery build adds 1683 startup gzip bytes (693257 -> 694940). 1683 + // Same build adds 41 startup gzip bytes (693216 -> 693257). diff --git a/scripts/image-full-native-template-candidates.test.mjs b/scripts/image-full-native-template-candidates.test.mjs index 0ce675e2..aeb9794e 100644 --- a/scripts/image-full-native-template-candidates.test.mjs +++ b/scripts/image-full-native-template-candidates.test.mjs @@ -146,7 +146,7 @@ test('two experimental Custom recipes extend image coverage while preserving the publicTemplates.filter((item) => item.example?.mediaType === 'image' && historicalImageIds.has(item.id)).length, 54, ); - assert.equal(publicTemplates.filter((item) => item.example?.mediaType === 'image').length, 68); + assert.equal(publicTemplates.filter((item) => item.example?.mediaType === 'image').length, 69); for (const template of candidates) { assert.equal( publicTemplates.some((item) => item.id === template.id), diff --git a/scripts/modiff-template.test.mjs b/scripts/modiff-template.test.mjs index 62b29936..d2f8e507 100644 --- a/scripts/modiff-template.test.mjs +++ b/scripts/modiff-template.test.mjs @@ -4381,6 +4381,16 @@ test('template browser exposes the complete workflow catalog across task and ada assert.ok(imageTemplates.some((template) => template.id === 'flux_lora_oil_painting')); assert.ok(imageTemplates.some((template) => template.id === 'flux_lora_retro_comic')); assert.ok(imageTemplates.every((template) => template.id !== 'smollm2_rain_gauge')); + assert.deepEqual( + filterStudioTemplates(STUDIO_TEMPLATES, form, { + category: 'upscale', + query: 'synthetic gradient', + modelType: 'all', + difficulty: 'all', + sort: 'recommended', + }).map(({ id }) => id), + ['spandrel_x2_synthetic_gradient'], + ); assert.deepEqual( filterStudioTemplates(STUDIO_TEMPLATES, form, { category: 'text', diff --git a/scripts/release-contract-core.mjs b/scripts/release-contract-core.mjs index 1bbe66ac..8305b195 100644 --- a/scripts/release-contract-core.mjs +++ b/scripts/release-contract-core.mjs @@ -671,7 +671,7 @@ export async function exportCanonicalWorkflowGraphs(clientRoot, graphs) { } } -// Publication moves these two authoring rows out of the hidden-candidate +// Publication moves these authoring rows out of the hidden-candidate // ledger. Revalidate the original evidence against its exact archived // authoring row. A new or edited standalone capture cannot use that baseline. const RETAINED_AUTHORING_ARCHIVES = new Map([ @@ -691,6 +691,14 @@ const RETAINED_AUTHORING_ARCHIVES = new Map([ sha256: 'e8158c1fcd94e0cf2c2e8e2163f036edc783371d6ca9e253cdf31722c7273d0a', }, ], + [ + 'SpandrelImageUpscale:image_upscale', + { + descriptorSha256: '49336b0f76e158b3be514275763e8b2c50f00c048852a34cff43167687503f15', + bytes: 3349, + sha256: '787946f2e68cba243b8ca0908c8a626a9bc792ac2a03b25316eb503a7956be5b', + }, + ], ]); function archivedCanonicalAuthoring(backendRoot, workflowId, evidencePath) { diff --git a/scripts/release-contract.mjs b/scripts/release-contract.mjs index 726f10e2..d8ce73d3 100644 --- a/scripts/release-contract.mjs +++ b/scripts/release-contract.mjs @@ -349,7 +349,6 @@ const workflowRecords = [...workflowManifest.workflows, ...reviewedExperimental] }); const canonicalReceiptsByWorkflow = new Map(); const retainedNativeBySha = new Map(); -const hasRetainedTemplateReview = existsSync(join(RETAINED_TEMPLATE_REVIEW_ROOT, 'approval.v1.json')); const executionStatuses = { real_backend_deterministic_data: 'verified_deterministic_execution', real_backend_deterministic_media: 'verified_deterministic_media_execution', @@ -385,11 +384,11 @@ if (existsSync(canonicalRegistryPath)) { if (JSON.stringify(stable(body)) !== JSON.stringify(stable(derived.receipt))) { throw new Error(`Canonical workflow receipt differs from original task evidence: ${stored.workflowId}`); } - if (hasRetainedTemplateReview && (derived.receipt.inputBinding || derived.receipt.promptBinding)) { + if (derived.receipt.inputBinding || derived.receipt.promptBinding) { if (retainedNativeBySha.has(stored.evidenceSha256)) { throw new Error(`Original bound workflow evidence is duplicated: ${stored.workflowId}`); } - retainedNativeBySha.set(stored.evidenceSha256, derived); + retainedNativeBySha.set(stored.evidenceSha256, { ...derived, registeredReceipt: stored }); } const previous = canonicalReceiptsByWorkflow.get(stored.workflowId); if (!previous || String(previous.capturedAt).localeCompare(stored.capturedAt) < 0) @@ -446,6 +445,7 @@ try { sourceWorkflow: workflow, templateRevisionHash: canonicalJsonHash({ template, settings: lockedSettings }), localAssociation: retainedTemplateAssociations.get(retainedRecipe.workflowId), + nativeReceipt: retainedNativeBySha.get(retainedRecipe.originalReceiptSha256)?.registeredReceipt, }) : null; const schema = { diff --git a/scripts/retained-gallery-provenance.mjs b/scripts/retained-gallery-provenance.mjs index 98ed617f..4244899e 100644 --- a/scripts/retained-gallery-provenance.mjs +++ b/scripts/retained-gallery-provenance.mjs @@ -6,33 +6,54 @@ export const RETAINED_GALLERY_PROVENANCE_FORMAT = 'modiff.gallery.retained-templ // The public copy omits the original task ID and all underlying capture files. // Pin the exact redacted associations that the maintainer reviewed against the // original runs, so a rewritten association cannot approve itself. -const backendSourceFingerprint = +const originalBackendSourceFingerprint = 'sha256:backend-source-v1:8dd9a4d61d2c9c484e4167e38e7360d6b64a37d278e49771630e428189f5448b'; const pinsByTemplate = new Map( Object.entries({ marigold_depth_synthetic_ramp: { associationSha256: '9bf40847cebd0424cc17f8af5f87d7ce3a9e463ed0593177c1483f62a3a9e945', + backendSourceFingerprint: originalBackendSourceFingerprint, backendContractFingerprint: 'sha256:backend-contract-v1:d159675b024e7b008f6347cf9655169efaa55dc928ddd7e17aae1fab5ca6fb29', templateRevisionHash: '4e43813ae0e4b664e4982545884644ec097eb0cc25e8f13ff549ac24c2f49ce1', capturedAt: '2026-11-19T07:35:33.324Z', inputSize: { width: 64, height: 48 }, + outputSize: { width: 64, height: 48 }, outputExtension: 'webp', }, smollm2_rain_gauge: { associationSha256: 'a31b55bc4524f2e5999ac84a3c5a9f62350f45c807a1f03a0c14904b31e19c8d', + backendSourceFingerprint: originalBackendSourceFingerprint, backendContractFingerprint: 'sha256:backend-contract-v1:cb7aeec701fb0aba61ab0c4fdffd3efbbde9f359f0b22b127d29c83cd44c1d00', templateRevisionHash: 'aab7cfcf15db94d4e3d1415e963cabc0cf7e6a4baafd243d4095539b1004545b', capturedAt: '2026-11-19T07:50:15.253Z', outputExtension: 'json', }, + spandrel_x2_synthetic_gradient: { + associationSha256: 'bc51ecc479d2996d44954e4283d8cdad857f72ea1d5e35af7ef5afcecd7c1fb0', + backendSourceFingerprint: + 'sha256:backend-source-v1:fd16f3acc76e08525b28215b603104d281e8ab26169b03076a112edbb7d100bb', + backendContractFingerprint: + 'sha256:backend-contract-v1:bb13de17797e5bf1f3427f45b91f253013f7f0e590749710332783f28d251566', + templateRevisionHash: '8de95b8b13a0636a37a7db672fbced2199e00e6719517c282f68f685bc5fd482', + capturedAt: '2026-11-19T06:05:44.894Z', + inputSize: { width: 64, height: 48 }, + outputSize: { width: 128, height: 96 }, + outputExtension: 'webp', + }, }), ); export function retainedGalleryProvenancePins(templateId) { const pins = pinsByTemplate.get(templateId); - return pins && { ...pins, inputSize: pins.inputSize && { ...pins.inputSize }, backendSourceFingerprint }; + return ( + pins && { + ...pins, + inputSize: pins.inputSize && { ...pins.inputSize }, + outputSize: pins.outputSize && { ...pins.outputSize }, + } + ); } export function buildRetainedGalleryProvenance(association) { @@ -100,8 +121,8 @@ export function validateRetainedGalleryProvenance(bundle, entry, { templateRevis beforePath: pins.inputSize ? base + 'inputs/' + stem + '.before.png' : undefined, afterPath: pins.inputSize ? outputPath : undefined, beforeMediaHash: output.inputEncodedSha256, - width: pins.inputSize?.width, - height: pins.inputSize?.height, + width: pins.outputSize?.width, + height: pins.outputSize?.height, }; const errors = Object.entries(expected) .filter(([field, value]) => entry[field] !== value) diff --git a/scripts/retained-gallery-release.mjs b/scripts/retained-gallery-release.mjs index 040038d5..caf30ce5 100644 --- a/scripts/retained-gallery-release.mjs +++ b/scripts/retained-gallery-release.mjs @@ -10,6 +10,77 @@ import { validateRetainedGalleryProvenance } from './retained-gallery-provenance const same = (actual, expected, label) => assert.deepEqual(actual, expected, label); +function assertRetainedSpandrelEvidence({ recipe, sourceWorkflow, association, entry, nativeReceipt }) { + const { observedExecution, output } = association; + const { modelArtifact, observationLimits } = observedExecution; + assert.equal(association.originalCanonicalWorkflowHash, sourceWorkflow.contract.graphHash); + assert.equal(association.originalEvidenceSha256, recipe.originalReceiptSha256); + assert.equal(association.originalGraphHash, recipe.retainedGraphHash); + same( + observationLimits, + { fullConsumedFieldAccounting: false, physicalPlatformQualification: false }, + 'Spandrel retained evidence has a broader scope than its saved run.', + ); + assert.equal(association.originalResourceCandidateId, null); + assert.equal(association.originalTemplateLockHash, null); + const { modelArtifact: selected } = recipe.template; + same( + modelArtifact.artifact, + { + source: 'hub', + repository: selected.value, + revision: selected.revision, + weightName: 'RealESRGAN_x2plus.pth', + sha256: selected.sha256, + }, + 'Spandrel retained checkpoint differs from the template.', + ); + assert.equal(modelArtifact.byteSize, selected.byteSize); + assert.equal(output.inputEncodedSha256, `sha256:bytes:${recipe.inputSha256}`); + if (!nativeReceipt) return; + same( + { + sourceTaskTemplateId: nativeReceipt.sourceTemplateId, + workflowId: nativeReceipt.workflowId, + proofKind: nativeReceipt.proofKind, + capturedAt: nativeReceipt.capturedAt, + backendSourceFingerprint: nativeReceipt.backendSourceFingerprint, + canonicalWorkflowHash: nativeReceipt.canonicalWorkflowHash, + graphHash: nativeReceipt.graphHash, + evidenceSha256: nativeReceipt.evidenceSha256, + modelSet: nativeReceipt.modelSet, + modelArtifact: nativeReceipt.modelArtifact, + observationLimits: nativeReceipt.observationLimits, + outputHash: nativeReceipt.outputHash, + decodedMediaHash: nativeReceipt.decodedOutput?.hash, + runtimeFingerprint: nativeReceipt.runtimeFingerprint, + executionDurationSeconds: nativeReceipt.executionDurationSeconds, + peakMemoryBytes: nativeReceipt.peakMemoryBytes, + }, + { + sourceTaskTemplateId: association.nativeSourceTaskContractId, + workflowId: association.workflowId, + proofKind: 'real_backend_input_bound_model_variant', + capturedAt: entry.verificationTimestamp, + backendSourceFingerprint: entry.backendSourceFingerprint, + canonicalWorkflowHash: association.originalCanonicalWorkflowHash, + graphHash: association.originalGraphHash, + evidenceSha256: association.originalEvidenceSha256, + modelSet: observedExecution.modelSet, + modelArtifact, + observationLimits, + outputHash: output.sourceOutputHash, + decodedMediaHash: output.decodedMediaHash, + runtimeFingerprint: observedExecution.runtimeFingerprint, + executionDurationSeconds: observedExecution.executionDurationSeconds, + peakMemoryBytes: observedExecution.peakMemoryBytes, + }, + 'Published Spandrel proof differs from the verified native receipt.', + ); + assert.equal(nativeReceipt.resourceCandidateId, null); + assert.equal(nativeReceipt.inputBinding?.sha256, recipe.inputSha256); +} + export function verifiedRetainedGalleryAssetIndex(clientRoot, expectedSource) { const { source, assets } = galleryVerificationScope(clientRoot); same(source, expectedSource, 'Retained release evidence differs from the activated Gallery source.'); @@ -37,7 +108,7 @@ export function createRetainedGalleryReleaseReader({ clientRoot, source, registr ).bytes; }; - return ({ recipe, entry, sourceWorkflow, templateRevisionHash, localAssociation }) => { + return ({ recipe, entry, sourceWorkflow, templateRevisionHash, localAssociation, nativeReceipt }) => { if (!sourceWorkflow || !entry?.proofLockHash?.startsWith('sha256:retained-template-association-v1:')) return null; if (!approved) { approved = verifiedRetainedGalleryAssetIndex(clientRoot, source); @@ -60,6 +131,8 @@ export function createRetainedGalleryReleaseReader({ clientRoot, source, registr const { association } = bundle; assert.equal(association.workflowId, recipe.workflowId); assert.equal(association.nativeSourceTaskContractId, sourceWorkflow.manifest.sourceTemplateId); + const spandrel = recipe.workflowId === 'SpandrelImageUpscale:image_upscale'; + if (spandrel) assertRetainedSpandrelEvidence({ recipe, sourceWorkflow, association, entry, nativeReceipt }); if (localAssociation) { const { originalTaskId, ...redacted } = localAssociation; same(association, redacted, 'Published Gallery proof differs from the locally revalidated saved run.'); @@ -121,6 +194,9 @@ export function createRetainedGalleryReleaseReader({ clientRoot, source, registr provenanceHash: entry.provenanceHash, verificationStatus: entry.verificationStatus, qualityReviewStatus: entry.qualityReviewStatus, + ...(spandrel + ? { modelArtifact: observedExecution.modelArtifact, observationLimits: observedExecution.observationLimits } + : {}), evidenceMatch: 'current_reviewed_retained_recipe', }; }; diff --git a/scripts/retained-gallery-release.test.mjs b/scripts/retained-gallery-release.test.mjs index 4af4afad..a267ddb6 100644 --- a/scripts/retained-gallery-release.test.mjs +++ b/scripts/retained-gallery-release.test.mjs @@ -1,10 +1,12 @@ import assert from 'node:assert/strict'; -import { mkdirSync, mkdtempSync, rmSync, writeFileSync } from 'node:fs'; +import { mkdirSync, mkdtempSync, readFileSync, rmSync, writeFileSync } from 'node:fs'; import { tmpdir } from 'node:os'; -import { join } from 'node:path'; +import { join, resolve } from 'node:path'; import { test } from 'node:test'; import { canonicalJsonHash } from './canonical-json.mjs'; -import { verifiedRetainedGalleryAssetIndex } from './retained-gallery-release.mjs'; +import { canonicalWorkflowContract } from './release-contract-core.mjs'; +import { createRetainedGalleryReleaseReader, verifiedRetainedGalleryAssetIndex } from './retained-gallery-release.mjs'; +import { loadTemplateRuntime } from './template-gallery-harness.mjs'; const hash = (value) => `sha256:canonical-json:${canonicalJsonHash(value)}`; @@ -92,3 +94,62 @@ test('retained release refuses stale Gallery inventory, unbound rights and chang assert.throws(() => verifiedRetainedGalleryAssetIndex(value.root, value.source)); } }); + +test( + 'the staged Spandrel preview qualifies only the locked recipe and original saved execution', + { + skip: !process.env.MODIFF_VERIFY_SPANDREL_GALLERY_STAGE, + }, + async () => { + const clientRoot = resolve(import.meta.dirname, '..'); + const backend = resolve(process.env.MODIFF_BACKEND_DIR || join(clientRoot, '..', 'MoDiff')); + const stage = resolve(process.env.MODIFF_VERIFY_SPANDREL_GALLERY_STAGE); + const json = (root, path) => JSON.parse(readFileSync(join(root, path), 'utf8')); + const runtime = await loadTemplateRuntime(clientRoot); + const template = runtime.templates.find(({ id }) => id === 'spandrel_x2_synthetic_gradient'); + const registry = json(stage, 'public/template-gallery/manifest.json'); + const source = json(stage, 'src/studio/templateAssetSource.json'); + const entry = runtime.findManifestEntry(template, registry); + assert.ok(entry, 'The saved Gallery preview must match its current technical recipe.'); + const workflowId = 'SpandrelImageUpscale:image_upscale'; + const manifest = json(backend, 'data/workflow-library-manifest.json').workflows.find(({ id }) => id === workflowId); + const graph = json(backend, `data/graphs/${manifest.graphPath}`); + const receiptRegistry = json(backend, 'data/qualification/release/canonical-workflow-run-receipts.v1.json'); + const nativeReceipt = receiptRegistry.receipts.find((row) => row.workflowId === workflowId); + assert.ok(nativeReceipt); + const proof = { + recipe: { + template, + workflowId, + sourceTaskTemplateId: manifest.sourceTemplateId, + originalReceiptSha256: nativeReceipt.evidenceSha256, + retainedGraphHash: nativeReceipt.graphHash, + inputSha256: nativeReceipt.inputBinding.sha256, + }, + entry, + sourceWorkflow: { manifest, contract: canonicalWorkflowContract(manifest, graph) }, + templateRevisionHash: canonicalJsonHash({ template, settings: runtime.lockedSettingsForTemplate(template) }), + nativeReceipt, + }; + const read = createRetainedGalleryReleaseReader({ clientRoot: stage, source, registry }); + const retained = read(proof); + assert.equal(retained.proofKind, 'reviewed_retained_template_execution'); + assert.equal(retained.resourceCandidateId, null); + assert.deepEqual(retained.observationLimits, nativeReceipt.observationLimits); + assert.deepEqual(retained.modelArtifact, nativeReceipt.modelArtifact); + assert.deepEqual(read({ ...proof, nativeReceipt: undefined }), retained); + for (const changes of [ + { graphHash: 'different executed graph' }, + { evidenceSha256: 'a'.repeat(64) }, + { capturedAt: 'changed capture timestamp' }, + { backendSourceFingerprint: 'changed source fingerprint' }, + { modelArtifact: { ...nativeReceipt.modelArtifact, byteSize: 1 } }, + { peakMemoryBytes: 1 }, + ]) { + assert.throws( + () => read({ ...proof, nativeReceipt: { ...nativeReceipt, ...changes } }), + /Published Spandrel proof differs from the verified native receipt/u, + ); + } + }, +); diff --git a/scripts/retained-gallery-templates.test.mjs b/scripts/retained-gallery-templates.test.mjs index 3b462a90..6417e1ea 100644 --- a/scripts/retained-gallery-templates.test.mjs +++ b/scripts/retained-gallery-templates.test.mjs @@ -126,13 +126,14 @@ test('retained Gallery recipes preserve the native graph identities and standalo reviewedCatalogLock.galleryTemplateLockHash, ); assert.equal(exactness.getPromptSettingsHash(settings), reviewedCatalogLock.promptSettingsHash); + if (recipe.inputSha256) assert.equal(exactness.getTemplateInputContractHash(template), undefined); assert.deepEqual(sources.get(`${template.modelType}|${template.mode}`), { ...skeletons.find(({ id }) => id === recipe.sourceTaskTemplateId), taskContract: true, }); assert.equal(retainedTemplateGraph(recipe).hash, recipe.retainedGraphHash, template.id); } - assert.ok(!published.some((item) => item.modelType === 'ShapEPipeline')); + assert.ok(!published.some((item) => ['PixArtSigmaPAGPipeline', 'ShapEPipeline'].includes(item.modelType))); }); test('fresh Expert recipes prepare with current backend specs and without a generation request', async () => { @@ -196,6 +197,27 @@ test('fresh Expert recipes prepare with current backend specs and without a gene assert.equal(binding.executionSpec.contentHash, spec.contentHash); assert.equal(studio.getState().activeWorkflowTabId, tabId); const api = flow.getState().exportGraph('retained-template-check', undefined, { randomizeSeeds: false }); + if (template.modelType === 'SpandrelImageUpscale') { + const source = api.nodes[binding.nodes.loadImage].params; + const upscaler = api.nodes[binding.nodes.imageUpscaler].params; + const preview = api.nodes[binding.nodes.preview].params; + assert.deepEqual(source.file.value, input); + assert.equal(source.alpha_channel.value, 'ignore'); + const { value, ...artifact } = template.modelArtifact; + assert.deepEqual(upscaler.model_id.value, { ...artifact, value: `${value}/RealESRGAN_x2plus.pth` }); + assert.equal(upscaler.tile_size.value, 256); + assert.equal(upscaler.tile_overlap.value, 32); + assert.equal(upscaler.downscale.value, 1); + assert.equal(upscaler.device.value, 'cuda:0'); + assert.equal(upscaler.image.sourceId, binding.nodes.loadImage); + assert.equal(upscaler.image.sourceKey, 'image'); + assert.equal(preview.image.sourceId, binding.nodes.imageUpscaler); + assert.equal(preview.image.sourceKey, 'output'); + const comparable = structuredClone(api); + comparable.nodes[binding.nodes.loadImage].params.file.value = [recipe.inputFileName]; + assert.deepEqual(canonicalGraphIdentity(comparable), retainedTemplateGraph(recipe)); + continue; + } const loader = api.nodes[binding.nodes[spec.roles.find(([, key]) => key.endsWith('.' + spec.loaderAction))[0]]]; assert.deepEqual(loader.params.model_id.value, { source: 'hub', value: template.modelArtifact.value }); assert.equal(loader.params.revision.value, template.modelArtifact.revision); diff --git a/scripts/retained-template-association.mjs b/scripts/retained-template-association.mjs index c32ad53d..548a9b88 100644 --- a/scripts/retained-template-association.mjs +++ b/scripts/retained-template-association.mjs @@ -7,7 +7,7 @@ import { readCanonicalEvidenceFile } from './release-contract-core.mjs'; import { verifyRetainedStructuredText } from './retained-structured-text-evidence.mjs'; import { canonicalJsonHash as galleryJsonHash, validateQualityReview } from './template-gallery-harness.mjs'; -const SCOPES = { +const BOUND_REVIEW_SCOPES = { marigold_depth_synthetic_ramp: { folder: 'marigold', proofKind: 'real_backend_input_bound_model_variant', @@ -22,6 +22,13 @@ const SCOPES = { decision: 'approved', }, }; +const SPANDREL_TEMPLATE_ID = 'spandrel_x2_synthetic_gradient'; +const SPANDREL_REVIEW_HASH = '357594a299efcda4b9b9e7c4fa65c3d016db3ffe1634fdfe8dfe360789c4d0d4'; +const SPANDREL_SCOPE = { + proofKind: 'real_backend_input_bound_model_variant', + input: true, + decision: 'accepted_with_disclosed_limitations', +}; const digest = (bytes) => createHash('sha256').update(bytes).digest('hex'); function readBoundedRecord(path) { @@ -42,9 +49,11 @@ export function assessRetainedTemplateAssociation({ galleryOutput, galleryInput, catalogLock, + reviewedRecipe, }) { const { template } = recipe; - const scope = SCOPES[template.id]; + const spandrel = template.id === SPANDREL_TEMPLATE_ID; + const scope = spandrel ? SPANDREL_SCOPE : BOUND_REVIEW_SCOPES[template.id]; assert.ok(scope, 'Retained Gallery template scope is not reviewed.'); const { evidence, receipt, evidenceRoot, descriptorBytes } = native; assert.equal(candidate.templateId, template.id); @@ -78,6 +87,65 @@ export function assessRetainedTemplateAssociation({ assert.match(catalogLock.promptSettingsHash, /^ps_[a-f0-9]{8}$/u); assert.equal(digest(galleryOutput.bytes), galleryOutput.ref.sha256); + if (spandrel) { + const reviewedRecipeBytes = reviewedRecipe?.bytes; + assert.ok( + Buffer.isBuffer(reviewedRecipeBytes) && reviewedRecipeBytes.length > 0 && reviewedRecipeBytes.length <= 65536, + ); + assert.equal(digest(reviewedRecipeBytes), reviewedRecipe.ref.sha256); + assert.equal(candidate.draftProvenanceSha256, reviewedRecipe.ref.sha256); + const { recipeReviewSha256, ...draft } = JSON.parse(reviewedRecipeBytes); + assert.equal(draft.format, 'modiff.private-technical-preview-recipe-review.v1'); + assert.equal(recipeReviewSha256, SPANDREL_REVIEW_HASH); + assert.equal(candidate.recipeReviewSha256, recipeReviewSha256); + assert.equal(canonicalJsonHash(draft), recipeReviewSha256); + assert.equal(draft.workflowId, receipt.workflowId); + assert.equal(draft.input.sha256, receipt.inputBinding.sha256); + assert.deepEqual( + [draft.input.width, draft.input.height], + [receipt.inputBinding.width, receipt.inputBinding.height], + ); + assert.equal(draft.output.fileHash, receipt.outputHash); + assert.equal(draft.output.decodedHash, receipt.decodedOutput.hash); + assert.deepEqual( + [draft.output.width, draft.output.height], + [receipt.decodedOutput.width, receipt.decodedOutput.height], + ); + assert.deepEqual(draft.controls.model, evidence.modelArtifact); + const { artifact, byteSize, descriptorSha256 } = receipt.modelArtifact; + assert.deepEqual(artifact, { + source: 'hub', + repository: template.modelArtifact.value, + revision: template.modelArtifact.revision, + weightName: 'RealESRGAN_x2plus.pth', + sha256: draft.controls.model.sha256, + }); + assert.equal(draft.controls.model.value, `${artifact.repository}/${artifact.weightName}`); + assert.equal(byteSize, draft.controls.model.byteSize); + assert.equal(template.modelArtifact.sha256, artifact.sha256); + assert.equal(template.modelArtifact.byteSize, byteSize); + assert.equal(template.modelArtifact.license, draft.controls.model.license); + assert.match(descriptorSha256, /^[a-f0-9]{64}$/u); + assert.equal(draft.proof.sourceTaskTemplateId, receipt.sourceTemplateId); + assert.equal(draft.proof.canonicalWorkflowHash, receipt.canonicalWorkflowHash); + assert.equal(draft.proof.populatedGraphHash, receipt.graphHash); + assert.equal(draft.proof.evidenceDescriptorSha256, recipe.originalReceiptSha256); + assert.equal(draft.proof.savedCreatorPackageSha256, evidence.creatorPackage.sha256); + const creator = JSON.parse(readCanonicalEvidenceFile(evidenceRoot, evidence.creatorPackage).bytes); + const upscaler = Object.values(creator.apiGraph.nodes).find( + (node) => node.module === 'modules.Spandrel' && node.action === 'Upscaler', + ); + assert.equal(creator.apiGraph.nodes[receipt.inputBinding.nodeId].params.alpha_channel.value, draft.input.alphaMode); + assert.deepEqual( + [upscaler.params.tile_size.value, upscaler.params.tile_overlap.value, upscaler.params.downscale.value], + [draft.controls.tileSize, draft.controls.tileOverlap, draft.controls.downscale], + ); + assert.deepEqual(receipt.observationLimits, { + fullConsumedFieldAccounting: false, + physicalPlatformQualification: false, + }); + } + let output; if (scope.input) { assert.equal(digest(galleryInput.bytes), galleryInput.ref.sha256); @@ -133,11 +201,13 @@ export function assessRetainedTemplateAssociation({ catalogPromptSettingsHash: catalogLock.promptSettingsHash, originalTaskId: receipt.taskId, originalGraphHash: receipt.graphHash, + ...(spandrel ? { originalCanonicalWorkflowHash: receipt.canonicalWorkflowHash } : {}), originalTemplateLockHash: null, originalResourceCandidateId: null, originalEvidenceSha256: recipe.originalReceiptSha256, observedExecution: { modelSet: receipt.modelSet, + ...(spandrel ? { modelArtifact: receipt.modelArtifact } : {}), runtimeFingerprint: receipt.runtimeFingerprint, executionDurationSeconds: receipt.executionDurationSeconds, peakMemoryBytes: receipt.peakMemoryBytes, @@ -149,6 +219,7 @@ export function assessRetainedTemplateAssociation({ redistributionConfirmed: true, draftReviewSha256: candidate.draftReviewSha256, draftProvenanceSha256: candidate.draftProvenanceSha256, + ...(spandrel ? { recipeReviewSha256: candidate.recipeReviewSha256 } : {}), }, qualificationScope: 'exact_retained_recipe', releaseApprovalGranted: false, @@ -163,6 +234,8 @@ export function assessRetainedTemplateAssociation({ // The final binding describes this reviewed association after execution. It // does not supply template or resource fields to the original native run. export function finalizeRetainedQualityReview({ association, draft, reviewer, reviewedAt }) { + const spandrel = association.templateId === SPANDREL_TEMPLATE_ID; + if (spandrel) assert.equal(draft.ratingMethod, 'maintainer_qualitative_acceptance'); const bindings = { templateId: association.templateId, templateLockHash: association.galleryTemplateLockHash, @@ -181,6 +254,7 @@ export function finalizeRetainedQualityReview({ association, draft, reviewer, re reviewStatus: 'approved_reviewed', reviewer, reviewedAt, + ...(spandrel ? { ratingMethod: draft.ratingMethod } : {}), rubric: draft.rubric, scores: draft.scores, hardFailures: draft.hardFailures, @@ -195,8 +269,9 @@ export function finalizeRetainedQualityReview({ association, draft, reviewer, re decision: 'accepted_with_disclosed_limitations', reviewer, acceptedAt: reviewedAt, - statement: - 'Accepted as a technical depth preview with the reviewed scores and the disclosed limits of the synthetic ramp.', + statement: spandrel + ? 'Accepted as a technical preview of the exact saved synthetic gradient and 2× delivery with the disclosed limitations.' + : 'Accepted as a technical depth preview with the reviewed scores and the disclosed limits of the synthetic ramp.', acceptedReviewHash: galleryJsonHash(review), }; } @@ -221,7 +296,9 @@ export async function readReviewedBoundTemplateAssociations({ approvalRoot, vite Number.isFinite(Date.parse(approval.recordedAt)), ); assert.match(approval.reviewScopeSha256, /^[a-f0-9]{64}$/u); - assert.ok(Array.isArray(approval.candidates) && approval.candidates.length === Object.keys(SCOPES).length); + assert.ok( + Array.isArray(approval.candidates) && approval.candidates.length === Object.keys(BOUND_REVIEW_SCOPES).length, + ); const reviewedScope = readBoundedRecord(join(approvalRoot, 'review-scope.json')); assert.equal(reviewedScope.sha256, approval.reviewScopeSha256, 'Original review inventory hash differs.'); assert.equal(reviewedScope.value.status, 'private_review_only'); @@ -233,10 +310,11 @@ export async function readReviewedBoundTemplateAssociations({ approvalRoot, vite '/src/studio/templateExactness.ts', ); const associations = new Map(); - for (const recipe of RETAINED_GALLERY_TEMPLATES) { + for (const recipe of RETAINED_GALLERY_TEMPLATES.filter(({ template }) => + Object.hasOwn(BOUND_REVIEW_SCOPES, template.id), + )) { const { template } = recipe; - const scope = SCOPES[template.id]; - assert.ok(scope, 'Retained Gallery template scope is not reviewed.'); + const scope = BOUND_REVIEW_SCOPES[template.id]; const matches = approval.candidates.filter((item) => item.templateId === template.id); assert.equal(matches.length, 1, 'Exact retained Gallery approval is missing or ambiguous.'); const [candidate] = matches; diff --git a/scripts/template-gallery-harness.test.mjs b/scripts/template-gallery-harness.test.mjs index 01cfb81f..16cf9e50 100644 --- a/scripts/template-gallery-harness.test.mjs +++ b/scripts/template-gallery-harness.test.mjs @@ -106,7 +106,11 @@ test( const runtime = await loadTemplateRuntime(client); const root = process.env.MODIFF_VERIFY_RETAINED_GALLERY; const manifest = JSON.parse(readFileSync(join(root, 'manifest.json'))); - for (const templateId of ['marigold_depth_synthetic_ramp', 'smollm2_rain_gauge']) { + for (const templateId of [ + 'marigold_depth_synthetic_ramp', + 'smollm2_rain_gauge', + 'spandrel_x2_synthetic_gradient', + ]) { const entry = manifest.examples.find((candidate) => candidate.templateId === templateId); assert.ok(entry, templateId); const load = (assetPath) => readFileSync(join(root, assetPath.slice('/template-gallery/'.length))); @@ -119,6 +123,18 @@ test( beforeBytes: entry.beforePath && load(entry.beforePath), }; assert.deepEqual(validateRetainedGalleryProvenance(bundle, entry, options), []); + if (templateId === 'spandrel_x2_synthetic_gradient') { + assert.equal(entry.width, 128); + assert.equal(entry.height, 96); + assert.deepEqual(validateRetainedGalleryProvenance(bundle, { ...entry, width: 64, height: 48 }, options), [ + 'retained Gallery manifest width differs from the approved observation', + 'retained Gallery manifest height differs from the approved observation', + ]); + const quality = JSON.parse(load(entry.qualityReviewPath)); + assert.equal(quality.ratingMethod, 'maintainer_qualitative_acceptance'); + assert.equal(quality.maintainerAcceptance.decision, 'accepted_with_disclosed_limitations'); + assert.ok(Object.values(quality.scores).every((score) => score === null)); + } assert.ok(validateRetainedGalleryProvenance(bundle, { ...entry, verificationStatus: 'exact' }, options).length); assert.ok( validateRetainedGalleryProvenance(bundle, { ...entry, verificationTimestamp: '2026-01-01T00:00:00Z' }, options) @@ -1094,8 +1110,9 @@ test('public provenance redacts removable Linux mounts while retaining public an }); test('gallery harness loads all Studio templates from the TypeScript runtime', () => { - assert.equal(runtime.templates.length, 93); - assert.equal(new Set(runtime.templates.map((template) => template.id)).size, 93); + assert.equal(runtime.templates.length, 94); + assert.equal(new Set(runtime.templates.map((template) => template.id)).size, 94); + assert.ok(runtime.templates.some((template) => template.id === 'spandrel_x2_synthetic_gradient')); assert.ok(runtime.templates.some((template) => template.id === 'minimax_h3_image_old_town_cat')); assert.ok(runtime.templates.some((template) => template.id === 'minimax_music3_chamber_pop')); assert.equal( diff --git a/scripts/template-quality.test.mjs b/scripts/template-quality.test.mjs index 78ba33db..bb13f971 100644 --- a/scripts/template-quality.test.mjs +++ b/scripts/template-quality.test.mjs @@ -173,6 +173,7 @@ test('the complete catalog audits authored prompts and reports backend defaults 'image_outpaint', 'image_control', 'image_layers', + 'image_upscale', 'depth_estimation', 'text_generation', 'video', @@ -181,15 +182,21 @@ test('the complete catalog audits authored prompts and reports backend defaults ); }); -test('depth and text audits follow the input contracts of their own tasks', () => { +test('depth, upscale, and text audits follow the input contracts of their own tasks', () => { const depth = templatesModule.STUDIO_TEMPLATES.find((item) => item.id === 'marigold_depth_synthetic_ramp'); + const upscale = templatesModule.STUDIO_TEMPLATES.find((item) => item.id === 'spandrel_x2_synthetic_gradient'); const text = templatesModule.STUDIO_TEMPLATES.find((item) => item.id === 'smollm2_rain_gauge'); assert.equal(qualityModule.auditTemplateQuality(depth).passed, true); + assert.equal(qualityModule.auditTemplateQuality(upscale).passed, true); assert.equal(qualityModule.auditTemplateQuality(text).passed, true); assert.deepEqual( qualityModule.auditTemplateQuality({ ...depth, prompt: 'Estimate depth.' }).issues.map((issue) => issue.code), ['unsupported_prompt_input'], ); + assert.deepEqual( + qualityModule.auditTemplateQuality({ ...upscale, prompt: 'Upscale this image.' }).issues.map((issue) => issue.code), + ['unsupported_prompt_input'], + ); assert.deepEqual( qualityModule.auditTemplateQuality({ ...text, prompt: '' }).issues.map((issue) => issue.code), ['missing_semantic_group'], diff --git a/src/studio/retainedGalleryTemplates.ts b/src/studio/retainedGalleryTemplates.ts index 5c2c9300..c2d1dcbd 100644 --- a/src/studio/retainedGalleryTemplates.ts +++ b/src/studio/retainedGalleryTemplates.ts @@ -14,9 +14,10 @@ type RetainedGalleryRecipe = { }; } & ({ readonly inputSha256: string; readonly inputFileName: string } | { readonly promptSha256: string }); -const marigoldSourceSha256 = '626815c78eaad46cad849732d1598b45b91700ce046c1ee3f4e2444db80aa32a'; +const syntheticGradientSha256 = '626815c78eaad46cad849732d1598b45b91700ce046c1ee3f4e2444db80aa32a'; const marigoldRevision = '04a73502f7fd8fc5e59947b9df3b2266d71d6849'; const smollm2Revision = '12fd25f77366fa6b3b4b768ec3050bf629380bac'; +const spandrelRevision = '42efb9c3eeed1f5c0c8a626cf5f7f4481dfbb094'; /** * Reviewed catalog recipes tied to saved runs. Canonical workflow generation @@ -34,7 +35,7 @@ export const RETAINED_GALLERY_TEMPLATES = [ galleryTemplateLockHash: 'tpl_611e9ad6', promptSettingsHash: 'ps_d0a17851', }, - inputSha256: marigoldSourceSha256, + inputSha256: syntheticGradientSha256, inputFileName: 'marigold-depth-source.png', template: { id: 'marigold_depth_synthetic_ramp', @@ -111,6 +112,95 @@ export const RETAINED_GALLERY_TEMPLATES = [ }, }, }, + { + workflowId: 'SpandrelImageUpscale:image_upscale', + sourceTaskTemplateId: 'task-template:real-esrgan-x2-image-upscale:v1', + retainedGraphHash: 'sha256:canonical-graph-v1:700b85c678b691dee3c8ad1e2ea6d4cc0017d1b12d47704e45e913e17f929451', + originalReceiptSha256: '49336b0f76e158b3be514275763e8b2c50f00c048852a34cff43167687503f15', + reviewedTemplateSha256: '8de95b8b13a0636a37a7db672fbced2199e00e6719517c282f68f685bc5fd482', + reviewedCatalogLock: { + templateLockHash: 'tpl_5d99038b', + galleryTemplateLockHash: 'tpl_43c3b587', + promptSettingsHash: 'ps_e7556958', + }, + inputSha256: syntheticGradientSha256, + inputFileName: 'real-esrgan-x2-smoke-source.png', + template: { + id: 'spandrel_x2_synthetic_gradient', + label: 'Spandrel Real-ESRGAN 2× — Synthetic Gradient', + modelDisplayName: 'Real-ESRGAN 2×', + mode: 'image_upscale', + modelType: 'SpandrelImageUpscale', + intentGroup: 'utility', + category: 'upscale', + tags: ['image upscale', 'technical preview'], + difficulty: 'starter', + readinessPolicy: 'requires_input', + outputKinds: ['image'], + thumbnailVariant: 'compareSlider', + inputBindings: [ + { + id: 'source-image', + label: 'Source image', + mediaType: 'image', + origin: 'user', + requiredAt: 'workflow_start', + field: 'referenceImages', + count: 1, + }, + ], + mediaSlots: [ + { + id: 'before', + label: 'Source gradient', + kind: 'comparison_before', + role: 'before', + placeholder: 'Source pending', + }, + { + id: 'after', + label: 'Upscaled gradient', + kind: 'comparison_after', + role: 'after', + placeholder: 'Preview pending', + }, + ], + requiredBackendCapabilities: ['modules.Image.Load', 'modules.Spandrel.Upscaler', 'modules.Image.Preview'], + modelArtifact: { + source: 'hub', + value: 'nateraw/real-esrgan', + revision: spandrelRevision, + sha256: '49fafd45f8fd7aa8d31ab2a22d14d91b536c34494a5cfe31eb5d89c2fa266abb', + byteSize: 67061725, + license: 'bsd-3-clause', + }, + description: 'Double the source image dimensions with tiled Real-ESRGAN upscaling.', + recipeSummary: 'Compare the source gradient with its 2× output.', + prompt: '', + example: { + mediaType: 'image', + status: 'unverified', + modelRevision: spandrelRevision, + // Spandrel has no seed input. The generic template form retains a fixed seed. + lockedSeed: 42, + lockedSettings: { + width: 128, + height: 96, + steps: 1, + guidanceScale: 0, + dtype: 'float32', + resourceMode: 'expert', + quantizationMode: 'none', + autoOffload: false, + offloadMode: 'none', + }, + expectedOutput: { width: 128, height: 96 }, + runtimeEstimate: '5.80 seconds in the retained Windows CUDA run', + notes: + 'Minor edge-region grain and colour drift. The synthetic gradient does not test restoration of fine detail.', + }, + }, + }, { workflowId: 'HuggingFaceTextGenerationModel:text_generation', sourceTaskTemplateId: 'task-template:smollm2-135m-instruct:text-generation:v1', diff --git a/src/studio/templateAssetSource.json b/src/studio/templateAssetSource.json index 4e62165c..de0fcf4c 100644 --- a/src/studio/templateAssetSource.json +++ b/src/studio/templateAssetSource.json @@ -4,11 +4,11 @@ "localBasePath": "/template-gallery", "repoType": "dataset", "repoId": "sourav-das/modiff-template-gallery", - "revision": "b3fefedf324c08cb50eaf4654ce68fefc041d0ef", + "revision": "8ffd3ced9c05fa385a5eea80838567468c6d98aa", "pathPrefix": "template-gallery", "assetManifestPath": "_modiff/template-assets.v1.json", - "assetSetId": "sha256:canonical-json:c187f603d05614d22fd900d6516b00c8a33b82b1d3e9eaf28b6704b740b78590", - "completeAssetSetId": "sha256:canonical-json:c3d16e412f427cdd1e51b95f7a4173938cb4daecc7e5e6744324fa4845046637", + "assetSetId": "sha256:canonical-json:7346d3b800831e21858b8f6c4053eaf6dfb4e5e0c96b7bba19605a33e23b1ce4", + "completeAssetSetId": "sha256:canonical-json:169f19ce25abd67b1fbc4226176786976ee8a62f5fc0b503bd33a6fa1a8f7000", "unavailableAssets": [ "template-gallery/ace_step_chinese_new_year_lora.card-poster.png", "template-gallery/ace_step_chinese_new_year_lora.wav", diff --git a/src/studio/templateQuality.ts b/src/studio/templateQuality.ts index 7c8e588f..c909642b 100644 --- a/src/studio/templateQuality.ts +++ b/src/studio/templateQuality.ts @@ -7,6 +7,7 @@ export type TemplateQualityKind = | 'image_outpaint' | 'image_control' | 'image_layers' + | 'image_upscale' | 'depth_estimation' | 'text_generation' | 'video' @@ -236,6 +237,7 @@ const REQUIRED_SEMANTIC_GROUPS: Record): TemplateQualityKind { if (template.mode === 'depth_estimation') return 'depth_estimation'; + if (template.mode === 'image_upscale') return 'image_upscale'; if (template.mode === 'text_generation') return 'text_generation'; if (AUDIO_MODES.has(template.mode) || template.modelType === 'AceStepAudioPipeline') return 'audio'; if (VIDEO_MODES.has(template.mode) || template.modelType === 'WanVACEPipeline') return 'video'; @@ -550,6 +558,9 @@ export function auditTemplateQuality( if (kind === 'depth_estimation' && (resolvedPrompt?.trim() || template.negativePrompt?.trim())) { issues.push({ code: 'unsupported_prompt_input', message: 'Depth estimation uses a source image without prompts.' }); } + if (kind === 'image_upscale' && (resolvedPrompt?.trim() || template.negativePrompt?.trim())) { + issues.push({ code: 'unsupported_prompt_input', message: 'Image upscaling uses a source image without prompts.' }); + } if (kind === 'text_generation' && template.negativePrompt?.trim()) { issues.push({ code: 'unsupported_prompt_input', message: 'Text generation does not accept a negative prompt.' }); } diff --git a/src/studio/types.ts b/src/studio/types.ts index 0de72338..96fa4a8e 100644 --- a/src/studio/types.ts +++ b/src/studio/types.ts @@ -254,6 +254,7 @@ export type StudioPresetId = export type StudioTemplateId = | 'marigold_depth_synthetic_ramp' | 'smollm2_rain_gauge' + | 'spandrel_x2_synthetic_gradient' | 'minimax_h3_image_old_town_cat' | 'flux3_klein_fp8r512_text_to_image' | 'flux3_klein_fp8r512_single_reference_edit' diff --git a/tests/e2e/studio-mocked/studio-mocked.spec.ts b/tests/e2e/studio-mocked/studio-mocked.spec.ts index 6ff3c610..245e8e5c 100644 --- a/tests/e2e/studio-mocked/studio-mocked.spec.ts +++ b/tests/e2e/studio-mocked/studio-mocked.spec.ts @@ -13563,7 +13563,7 @@ test('published Experimental cards remain discoverable after Gallery metadata lo expect(forbiddenPosts).toEqual([]); }); -test('approved retained examples show structured text and a Marigold depth comparison', async ({ page }) => { +test('approved retained examples show structured text and technical image comparisons', async ({ page }) => { await ensureFrontend(); await installMockRoutes(page); const manifest = JSON.parse( @@ -13603,6 +13603,16 @@ test('approved retained examples show structured text and a Marigold depth compa const depthDetail = page.getByTestId('template-detail-marigold_depth_synthetic_ramp'); await expect(depthDetail.getByText('Hover or drag to compare')).toBeVisible(); await expect(depthDetail).toContainText('Depth accuracy remains unmeasured.'); + await depthDetail.getByRole('button', { name: 'Templates', exact: true }).click(); + + await page.getByTestId('template-browser-category-upscale').click(); + await page.getByTestId('template-browser-search').fill('Synthetic Gradient'); + const upscaleCard = page.getByTestId('template-browser-card-spandrel_x2_synthetic_gradient'); + await expect(upscaleCard.getByTestId('template-ab-comparison')).toBeVisible(); + await upscaleCard.getByTestId('template-browser-use-spandrel_x2_synthetic_gradient').click(); + const upscaleDetail = page.getByTestId('template-detail-spandrel_x2_synthetic_gradient'); + await expect(upscaleDetail.getByText('Hover or drag to compare')).toBeVisible(); + await expect(upscaleDetail).toContainText('The synthetic gradient does not test restoration of fine detail.'); }); test('Experimental public cards create the exact FLUX3 Ceramic Radio graph through ordinary UI', async ({ page }) => { From eb1d329f999b485dfb1c7c49692a60f0e8f10e30 Mon Sep 17 00:00:00 2001 From: Sourav Das Date: Fri, 20 Nov 2026 00:28:17 +0530 Subject: [PATCH 260/440] Cover direct upscaler contracts in the catalog tests --- scripts/modiff-template.test.mjs | 23 +++++++++++++++++------ 1 file changed, 17 insertions(+), 6 deletions(-) diff --git a/scripts/modiff-template.test.mjs b/scripts/modiff-template.test.mjs index d2f8e507..6a404a0d 100644 --- a/scripts/modiff-template.test.mjs +++ b/scripts/modiff-template.test.mjs @@ -2909,7 +2909,7 @@ test('template prompt recipes are distinct, detailed, and not generic placeholde } else if (template.promptQualityPolicy === 'adapter_reference') { assert.equal(template.category, 'lora', `${template.id} adapter reference prompts are limited to LoRA recipes`); assert.ok(template.prompt.length >= 20, `${template.id} retains a meaningful adapter reference prompt`); - } else if (template.mode === 'depth_estimation') { + } else if (template.mode === 'depth_estimation' || template.mode === 'image_upscale') { assert.equal(template.prompt, '', `${template.id} uses only a source image`); } else if (template.mode === 'text_generation') { assert.ok(template.prompt.trim(), `${template.id} asks the text model a question`); @@ -3056,8 +3056,17 @@ test('LTX templates use the qualified 13B distilled execution contract', () => { ); }); -test('every published template exposes a hardware-aware loader reuse contract for family batches', () => { +test('published templates declare loader reuse only where the workflow has a reusable loader', () => { for (const template of templatesModule.STUDIO_TEMPLATES) { + if (template.mode === 'image_upscale' && template.modelType === 'SpandrelImageUpscale') { + assert.deepEqual(template.requiredBackendCapabilities, [ + 'modules.Image.Load', + 'modules.Spandrel.Upscaler', + 'modules.Image.Preview', + ]); + assert.equal(template.runtimeReuseKey, undefined, `${template.id} loads its checkpoint in the upscaler`); + continue; + } assert.ok(template.runtimeReuseKey, `${template.id} has a loader reuse key`); } @@ -4560,10 +4569,12 @@ test('Experimental refuses undeclared or incomplete internal creator selections' test('every template name identifies its exact model and operation', () => { const { STUDIO_TEMPLATES } = templatesModule; for (const template of STUDIO_TEMPLATES) { - assert.ok( - template.label.startsWith(`${browserModule.templateModelDisplayName(template)} — `), - `${template.id} must begin with its model name`, - ); + const modelName = browserModule.templateModelDisplayName(template); + const modelLabel = + template.mode === 'image_upscale' && template.modelType === 'SpandrelImageUpscale' + ? `Spandrel ${modelName}` + : modelName; + assert.ok(template.label.startsWith(`${modelLabel} — `), `${template.id} must begin with its model name`); assert.doesNotMatch(template.label, /^(Low VRAM|High quality|Fast LoRA)$/i); } assert.equal( From 37ed565bf2b834033749bb6a63a1958c50fdc4f1 Mon Sep 17 00:00:00 2001 From: Sourav Das Date: Fri, 20 Nov 2026 01:33:55 +0530 Subject: [PATCH 261/440] File approved H3 Old Town current-recipe review --- config/release-showcase-scope.v1.json | 4 +-- config/template-asset-rights.v1.json | 52 +++++++++++++++++++++++++-- config/template-assets.v1.json | 28 ++++++++++++--- docs/image-template-workflows.md | 8 +++-- public/template-gallery/manifest.json | 30 ++++++++++++++++ scripts/h3-image-template.test.mjs | 9 ++++- src/studio/templateAssetSource.json | 6 ++-- 7 files changed, 121 insertions(+), 16 deletions(-) diff --git a/config/release-showcase-scope.v1.json b/config/release-showcase-scope.v1.json index 08511008..72f51228 100644 --- a/config/release-showcase-scope.v1.json +++ b/config/release-showcase-scope.v1.json @@ -4,7 +4,7 @@ "name": "Registered showcase preview without AMD-cloud backlog", "dataset": { "repository": "sourav-das/modiff-template-gallery", - "revision": "8ffd3ced9c05fa385a5eea80838567468c6d98aa" + "revision": "14970cc49ef1579fcc1899fff406810d8b4ba581" }, "originalCampaign": { "total": 89, @@ -518,5 +518,5 @@ "countedAsComplete": false } ], - "profileHash": "sha256:canonical-json:b1ce2f98559f06dab8c067246b5851f40e4b0d3c8abf66760be43f6b6dabeb0a" + "profileHash": "sha256:canonical-json:ba1dfb69be774d74bc355a70e0ae90a84328ebaa5516020d6c3c3b90c5f1d55e" } diff --git a/config/template-asset-rights.v1.json b/config/template-asset-rights.v1.json index ae9edcf8..da2c55e4 100644 --- a/config/template-asset-rights.v1.json +++ b/config/template-asset-rights.v1.json @@ -1,6 +1,6 @@ { "schemaVersion": 1, - "assetSetId": "sha256:canonical-json:169f19ce25abd67b1fbc4226176786976ee8a62f5fc0b503bd33a6fa1a8f7000", + "assetSetId": "sha256:canonical-json:9cb4e03df78ad36f0beb120a89c66d267c2e98e24b4892a719a7735eca9944af", "records": [ { "path": "template-gallery/ace_step_audio_continuation.wav", @@ -5243,7 +5243,7 @@ }, { "path": "template-gallery/manifest.json", - "sha256": "sha256:bytes:00dd065727ab3e3c88f3734fd3a12aa4bc946bb204411ca4731aa7ccff23146b", + "sha256": "sha256:bytes:785b7c753988370be0df861faca31e7ac1e4e8f94662ac49c96dd940055193f2", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", @@ -8543,6 +8543,54 @@ "publicationBasis": "Activate and publish the two approved Gallery candidates using their retained native runs.", "provenanceTemplateId": "marigold_depth_synthetic_ramp" }, + { + "path": "template-gallery/reviews/minimax_h3_image_old_town_cat.quality-review.json", + "sha256": "sha256:bytes:ce9fc2a0edaaf3eef1f3db03024d3e64108523e93fc2797fee7cbe7364e7ce97", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, subject to the recorded model terms", + "creationMethod": "Project-authored current-recipe review or redacted provenance for the saved image", + "sourceUrl": "https://huggingface.co/MiniMaxAI/MiniMax-H3-Image/tree/492fd8c4eca666f1085f57e30738c1e0d86b3439", + "sourceRevision": "MiniMaxAI/MiniMax-H3-Image@492fd8c4eca666f1085f57e30738c1e0d86b3439", + "sourceLicense": "Apache-2.0 project-authored metadata", + "modelTerms": [ + "MiniMaxAI/MiniMax-H3-Image@492fd8c4eca666f1085f57e30738c1e0d86b3439: MiniMax H3 Image Community License Agreement" + ], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-19", + "reviewClass": "per-file-maintainer-accepted-current-recipe", + "humanApprovalPacketSHA256": "97cf1d2ce0a8500d5b3b67ff4efb20a2e91c44a6f1e22d3eafd7b408babc31a2", + "provenanceTemplateId": "minimax_h3_image_old_town_cat" + }, + { + "path": "template-gallery/reviews/minimax_h3_image_old_town_cat.reviewed-provenance.json", + "sha256": "sha256:bytes:9d5792710da6b60188994c51bfa1ac49047121433d83961cd58d22b9caf6030c", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, subject to the recorded model terms", + "creationMethod": "Project-authored current-recipe review or redacted provenance for the saved image", + "sourceUrl": "https://huggingface.co/MiniMaxAI/MiniMax-H3-Image/tree/492fd8c4eca666f1085f57e30738c1e0d86b3439", + "sourceRevision": "MiniMaxAI/MiniMax-H3-Image@492fd8c4eca666f1085f57e30738c1e0d86b3439", + "sourceLicense": "Apache-2.0 project-authored metadata", + "modelTerms": [ + "MiniMaxAI/MiniMax-H3-Image@492fd8c4eca666f1085f57e30738c1e0d86b3439: MiniMax H3 Image Community License Agreement" + ], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-19", + "reviewClass": "per-file-maintainer-accepted-current-recipe", + "humanApprovalPacketSHA256": "97cf1d2ce0a8500d5b3b67ff4efb20a2e91c44a6f1e22d3eafd7b408babc31a2", + "provenanceTemplateId": "minimax_h3_image_old_town_cat" + }, { "creatorOrRightsholder": "MoDiff project maintainers", "creationMethod": "Project-authored redacted technical/review records or versioned declarations for six maintainer-accepted native results", diff --git a/config/template-assets.v1.json b/config/template-assets.v1.json index f70a943e..815ae3a7 100644 --- a/config/template-assets.v1.json +++ b/config/template-assets.v1.json @@ -2125,8 +2125,8 @@ }, { "path": "template-gallery/manifest.json", - "size": 231734, - "sha256": "sha256:bytes:00dd065727ab3e3c88f3734fd3a12aa4bc946bb204411ca4731aa7ccff23146b", + "size": 234038, + "sha256": "sha256:bytes:785b7c753988370be0df861faca31e7ac1e4e8f94662ac49c96dd940055193f2", "contentType": "application/json", "purposes": [ "runtime", @@ -3463,6 +3463,24 @@ "runtime" ] }, + { + "path": "template-gallery/reviews/minimax_h3_image_old_town_cat.quality-review.json", + "size": 3140, + "sha256": "sha256:bytes:ce9fc2a0edaaf3eef1f3db03024d3e64108523e93fc2797fee7cbe7364e7ce97", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, + { + "path": "template-gallery/reviews/minimax_h3_image_old_town_cat.reviewed-provenance.json", + "size": 96855, + "sha256": "sha256:bytes:9d5792710da6b60188994c51bfa1ac49047121433d83961cd58d22b9caf6030c", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, { "path": "template-gallery/reviews/minimax_music3_chamber_pop.quality-review.json", "size": 3481, @@ -5539,9 +5557,9 @@ "height": 1024 } ], - "assetSetId": "sha256:canonical-json:169f19ce25abd67b1fbc4226176786976ee8a62f5fc0b503bd33a6fa1a8f7000", + "assetSetId": "sha256:canonical-json:9cb4e03df78ad36f0beb120a89c66d267c2e98e24b4892a719a7735eca9944af", "status": "ready", - "assetCount": 559, - "totalBytes": 1036644078, + "assetCount": 561, + "totalBytes": 1036746377, "missingAssets": [] } diff --git a/docs/image-template-workflows.md b/docs/image-template-workflows.md index 938f20de..152992f3 100644 --- a/docs/image-template-workflows.md +++ b/docs/image-template-workflows.md @@ -63,9 +63,11 @@ retain the conservative registry requirements. The **Experimental** category includes **MiniMax H3 Image — Old Town: Human & Cat**. It creates the same generic text-to-image stages, with a fictional adult and a cat as the foreground subjects and a detailed street background. Its pinned -2048-square BF16 recipe uses Custom memory and SSD group offload. The preview -remains unverified until creative review. Its card uses a labeled vector -illustration, which can be rendered with `node scripts/render-h3-template-poster.mjs`. +2048-square BF16 recipe uses Custom memory and SSD group offload. The Gallery +includes the reviewed output for this exact recipe. Its review records brighter +ambient light than the requested blue hour and visibly sharpened edges. The +recipe's fallback vector illustration can be rendered with +`node scripts/render-h3-template-poster.mjs`. The template adds no Auto or broader hardware qualification. Edit the prompt to turn the old town into a modern city. diff --git a/public/template-gallery/manifest.json b/public/template-gallery/manifest.json index 3bbca7bf..a1196511 100644 --- a/public/template-gallery/manifest.json +++ b/public/template-gallery/manifest.json @@ -2941,6 +2941,36 @@ "beforeMediaHash": "sha256:bytes:626815c78eaad46cad849732d1598b45b91700ce046c1ee3f4e2444db80aa32a", "width": 128, "height": 96 + }, + { + "templateId": "minimax_h3_image_old_town_cat", + "modelRevision": "MiniMaxAI/MiniMax-H3-Image@492fd8c4eca666f1085f57e30738c1e0d86b3439", + "templateLockHash": "tpl_6899b3b2", + "promptSettingsHash": "ps_f2030306", + "verificationStatus": "reviewed", + "graphHash": "sha256:canonical-graph-v1:90a99664972df28b447a871b2c180c266199f137944bf55d680c6ae9f281e8de", + "proofLockHash": "sha256:live-proof-lock-v1:b8b45ff63a5aa0b3f0e38714496fae710c0bb9d4acc811ab2a0afb8c049febd1", + "runtimeFingerprint": "sha256:stable-runtime-v1:e40a5952c842b037c3f2f293b9ad3292fd07e22cb791c60aadeb6afa420fdd24", + "backendSourceFingerprint": "sha256:backend-source-v1:002b2f76328c3160e4487de5441fa37807dbdc41718fe9d726e148813da068e8", + "backendContractFingerprint": "sha256:backend-contract-v1:8bae9eb12c4b7b61efc7fe7ea1c27be93f6cf4ffe2b17b9af695e9b0c6c495ff", + "modelCommit": "492fd8c4eca666f1085f57e30738c1e0d86b3439", + "modelSetHash": "sha256:model-set-v1:57ebfdd2342b7b2d42b3e4279633a38854eba1386c4e93aaa58c5c69543869f5", + "inputArtifactsHash": "sha256:input-artifacts-v1:4f53cda18c2baa0c0354bb5f9a3ecbe5ed12ab4d8e11ba873c2f11161202b945", + "templateRevisionHash": "sha256:template-revision-v1:976c532eafd4ca7428ce3a59547619ad72ca0972855de1b3e4cc72c625032ef3", + "outputPath": "/template-gallery/showcases/h3-old-town-human-cat.webp", + "thumbnailPath": "/template-gallery/showcases/h3-old-town-human-cat.webp", + "mediaHash": "sha256:decoded-rgba:b499e978db7492bf2b863198bb1cc5143bc1934b6f2c2e4817c10f3f4832963a", + "mediaType": "image", + "width": 2048, + "height": 2048, + "reviewer": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-19T19:57:14.488Z", + "provenancePath": "/template-gallery/reviews/minimax_h3_image_old_town_cat.reviewed-provenance.json", + "provenanceHash": "sha256:canonical-json:b47d8e7bfdb37430658137dc9abe5321bfb5ccbc0856c289e1926847ded9000c", + "qualityReviewPath": "/template-gallery/reviews/minimax_h3_image_old_town_cat.quality-review.json", + "qualityReviewHash": "sha256:canonical-json:f4b06e2e7e96ae7b9f476ca9d3a03ae3d799c54c3f07ed0a421ce4e662234a31", + "qualityReviewStatus": "approved_reviewed", + "verificationTimestamp": "2026-11-19T19:57:14.488Z" } ] } diff --git a/scripts/h3-image-template.test.mjs b/scripts/h3-image-template.test.mjs index b2e832f3..ba988a10 100644 --- a/scripts/h3-image-template.test.mjs +++ b/scripts/h3-image-template.test.mjs @@ -1,5 +1,6 @@ import assert from 'node:assert/strict'; import { execFileSync } from 'node:child_process'; +import { readFileSync } from 'node:fs'; import path from 'node:path'; import { test } from 'node:test'; import { createServer } from 'vite'; @@ -34,7 +35,13 @@ test('the H3 template keeps its generic recipe and identifies its separately app const exactness = await server.ssrLoadModule('/src/studio/templateExactness.ts'); const card = exactness.getTemplateCardMedia(template, null); assert.equal(card.thumbnailPath, '/assets/minimax-h3-old-town.card-poster.png'); - assert.equal(card.mediaPath, undefined, 'The recipe itself still has no current qualified output.'); + assert.equal(card.mediaPath, undefined, 'The fallback remains usable without a Gallery manifest.'); + const manifest = JSON.parse(readFileSync(new URL('../public/template-gallery/manifest.json', import.meta.url))); + const entry = exactness.findManifestEntry(template, manifest); + assert.ok(entry, 'The retained H3 review matches the current recipe.'); + assert.equal(entry.qualityReviewStatus, 'approved_reviewed'); + assert.equal(entry.outputPath, '/template-gallery/showcases/h3-old-town-human-cat.webp'); + assert.equal(exactness.getTemplateExampleUiState(template, {}, null, manifest).status, 'reviewed'); const { getTemplateShowcase } = await server.ssrLoadModule('/src/studio/templateShowcases.ts'); assert.match(getTemplateShowcase(template.id).mediaPath, /showcases\/h3-emerald-material-transfer\.webp/u); assert.equal(exactness.getTemplateExampleUiState(template, {}, null, null).status, 'unverified'); diff --git a/src/studio/templateAssetSource.json b/src/studio/templateAssetSource.json index de0fcf4c..ff6ee79e 100644 --- a/src/studio/templateAssetSource.json +++ b/src/studio/templateAssetSource.json @@ -4,11 +4,11 @@ "localBasePath": "/template-gallery", "repoType": "dataset", "repoId": "sourav-das/modiff-template-gallery", - "revision": "8ffd3ced9c05fa385a5eea80838567468c6d98aa", + "revision": "14970cc49ef1579fcc1899fff406810d8b4ba581", "pathPrefix": "template-gallery", "assetManifestPath": "_modiff/template-assets.v1.json", - "assetSetId": "sha256:canonical-json:7346d3b800831e21858b8f6c4053eaf6dfb4e5e0c96b7bba19605a33e23b1ce4", - "completeAssetSetId": "sha256:canonical-json:169f19ce25abd67b1fbc4226176786976ee8a62f5fc0b503bd33a6fa1a8f7000", + "assetSetId": "sha256:canonical-json:5af2a0cb70615836fe5044d9837c8d7a2990d220a10af3ef9d4a54c282b9c925", + "completeAssetSetId": "sha256:canonical-json:9cb4e03df78ad36f0beb120a89c66d267c2e98e24b4892a719a7735eca9944af", "unavailableAssets": [ "template-gallery/ace_step_chinese_new_year_lora.card-poster.png", "template-gallery/ace_step_chinese_new_year_lora.wav", From 289095c646408aa15dec2a324887a9c87c95e8bc Mon Sep 17 00:00:00 2001 From: Sourav Das Date: Fri, 20 Nov 2026 12:42:23 +0530 Subject: [PATCH 262/440] Clarify shared stage and custom node interfaces --- docs/developer-first-node-ux.md | 2 + scripts/audio-authoring.test.mjs | 48 ++++- scripts/bundle-budget.mjs | 8 + .../hugging-face-source-supplements.test.mjs | 66 +++++++ scripts/shared-stage-inputs.test.mjs | 32 ++++ src/components/CustomNodeLibrary.tsx | 53 ++++-- src/fields/HandleField.tsx | 6 +- src/studio/blockRuntimeV2.ts | 34 +++- src/studio/huggingFaceNodeCatalog.ts | 81 +++++++-- src/workflow/visualOperationGroups.ts | 2 +- .../live-backend/custom-prototyping.spec.ts | 170 ++++++++++++------ .../live-backend/visual-stage-groups.spec.ts | 27 ++- 12 files changed, 422 insertions(+), 107 deletions(-) diff --git a/docs/developer-first-node-ux.md b/docs/developer-first-node-ux.md index ac60c193..2322de59 100644 --- a/docs/developer-first-node-ux.md +++ b/docs/developer-first-node-ux.md @@ -36,6 +36,8 @@ The permanent Custom nodes category discovers backend `custom/` files/packages without running them. Use Load deliberately, then Reload after editing. Disable keeps the source. Registry refresh does not rewrite existing node port definitions. Code/dependency identity changes invalidate execution until Reload. +Enabled nodes appear under their Python-declared category within Custom nodes. +Search by node name or category to find the operation you want to insert. An approved custom Block's **Load Models** component fields use their own exact lowercase 40-character revisions when you select **Install** beside a Hub model. diff --git a/scripts/audio-authoring.test.mjs b/scripts/audio-authoring.test.mjs index 7686fc7a..fa600c69 100644 --- a/scripts/audio-authoring.test.mjs +++ b/scripts/audio-authoring.test.mjs @@ -1,5 +1,7 @@ import assert from 'node:assert/strict'; +import { readFileSync } from 'node:fs'; import { captureAudioSchemaFixture } from './audio-schema-fixture.mjs'; +import { canonicalGraphIdentity } from './live-proof-provenance.mjs'; import path from 'node:path'; import { after, before, test } from 'node:test'; import { fileURLToPath } from 'node:url'; @@ -23,6 +25,7 @@ let server, defaults, authority, projection, + presentation, exporter, requiredInputs; before(async () => { @@ -56,6 +59,7 @@ before(async () => { exactness = await server.ssrLoadModule('/src/studio/templateExactness.ts'); ({ DEFAULT_STUDIO_FORM: defaults } = await server.ssrLoadModule('/src/studio/modelProfiles.ts')); projection = await server.ssrLoadModule('/src/workflow/visualOperationGroupProjection.ts'); + presentation = await server.ssrLoadModule('/src/workflow/encodingNodePresentation.ts'); exporter = await server.ssrLoadModule('/src/stores/useFlowStore.ts'); requiredInputs = await server.ssrLoadModule('/src/studio/requiredGraphInputs.ts'); const publicPayload = fixture.publicPayload; @@ -504,7 +508,11 @@ test('all seven actual curated audio factories preserve original creative settin template.workflowBlocks?.includes('lora') ? 1 : 0, ); assert.ok(!flat.nodes.some((node) => ['EncodeInputs', 'Denoise', 'DecodeLatents'].includes(node.data.action))); - } else assert.equal(graph.nodes.filter((node) => groups.visualOperationGroup(node) === 'output').length, 1); + } else { + const generation = graph.nodes.find((node) => groups.visualOperationGroup(node) === 'generate'); + assert.ok(presentation.isFocusedStageNode(generation?.data.blockInstanceV2), template.id); + assert.equal(graph.nodes.filter((node) => groups.visualOperationGroup(node) === 'output').length, 1); + } } }); @@ -624,11 +632,20 @@ test('actual audio families group only their real execution stages', async (t) = { label: 'Audio Output', name: 'audio output' }, ); const instance = output[0].data.blockInstanceV2; - assert.equal(instance.effectiveGraph.nodes.length, 2); + assert.deepEqual( + instance.effectiveGraph.nodes.map((node) => node.data.action), + ['Export'], + ); assert.equal(instance.previewStates.length, 1); assert.equal(instance.previewStates[0].binding.mediaType, 'audio'); assert.equal(instance.previewStates[0].binding.outputPortId, 'preview'); - assert.equal(grouped.nodes.length, 4, 'real loader, semantic generation, denoise and audio output'); + const generation = grouped.nodes.find((node) => groups.visualOperationGroup(node) === 'generate'); + assert.ok(presentation.isFocusedStageNode(generation?.data.blockInstanceV2)); + assert.deepEqual( + generation.data.blockInstanceV2.effectiveGraph.nodes.map((node) => node.data.action), + ['WorkflowDenoise', 'WorkflowDecodeAudio'], + ); + assert.equal(grouped.nodes.length, 4, 'real loader, semantic generation, Generate and Audio Output'); } else assert.equal( grouped.nodes.length, @@ -645,6 +662,31 @@ test('actual audio families group only their real execution stages', async (t) = }); }); +test('canonical Music 3 example saves the ordinary Generate stage with the original executable identity', async () => { + const { workflowSnapshotFromGraph } = await server.ssrLoadModule('/src/studio/workflowInference.ts'); + const { exampleWorkflowSnapshotFromGraph } = await server.ssrLoadModule('/src/studio/exampleWorkflow.ts'); + const backend = process.env.MODIFF_BACKEND_DIR || path.resolve('../MoDiff'); + const source = JSON.parse( + readFileSync(path.join(backend, 'data/graphs/studio/mini-max-music3-modular-pipeline/text-to-audio.json'), 'utf8'), + ); + const original = workflowSnapshotFromGraph(source, 'default', defaults); + const opened = exampleWorkflowSnapshotFromGraph(source, 'default', defaults); + const generation = opened.nodes.find((node) => groups.visualOperationGroup(node) === 'generate'); + assert.ok(presentation.isFocusedStageNode(generation?.data.blockInstanceV2)); + const identity = (sourceGraph) => + canonicalGraphIdentity( + exporter.useFlowStore.getState().exportGraph('audio-example', undefined, { + sourceGraph, + randomizeSeeds: false, + }), + ); + assert.deepEqual(identity(opened), identity(original)); + const restored = workflowSnapshotFromGraph(JSON.parse(JSON.stringify(opened)), 'default', defaults); + const restoredGeneration = restored.nodes.find((node) => groups.visualOperationGroup(node) === 'generate'); + assert.ok(presentation.isFocusedStageNode(restoredGeneration?.data.blockInstanceV2)); + assert.deepEqual(identity(restored), identity(original)); +}); + test('actual native audio output refuses an unrelated sink or missing preview binding', () => { const row = fixture.recipes.find((item) => item.starter.pipelineClass === 'MiniMaxMusic3ModularPipeline'); for (const mutate of [ diff --git a/scripts/bundle-budget.mjs b/scripts/bundle-budget.mjs index 0d06a4f3..9b12f429 100644 --- a/scripts/bundle-budget.mjs +++ b/scripts/bundle-budget.mjs @@ -490,6 +490,9 @@ const SOURCE_LICENSES = new URL('../public/THIRD_PARTY_LICENSES.txt', import.met // 504492/682980/346033 largest/startup/deferred gzip bytes: the reviewed // migration ceilings below still pass with 8/12/304 bytes of headroom. const MAX_STARTUP_CHUNK_GZIP_BYTES = + // The shared stage connector labels add 428 gzip bytes (516919 -> 517347). + // Retain the 17-byte headroom and the same four startup chunks. + 428 + // The retained Spandrel recipe adds 472 gzip bytes (516459 -> 516931). // Keep five bytes of startup headroom and the two existing deferred limits. 472 + @@ -733,6 +736,8 @@ const MAX_STARTUP_CHUNK_GZIP_BYTES = // The same build measures 673359 aggregate startup bytes (+45 over the cap). // Keep 19 bytes of headroom; deferred limits and loading boundaries stay fixed. const MAX_STARTUP_GZIP_BYTES = + // Measured node interface presentation delta (695402 -> 695834). + 432 + // The same Gallery build adds 479 startup gzip bytes (694940 -> 695419). 479 + // The same Gallery build adds 1683 startup gzip bytes (693257 -> 694940). @@ -1039,6 +1044,9 @@ const MAX_DEFERRED_CHUNK_GZIP_BYTES = 64 * 1024; // Startup code differs only in the three verified Dataset descriptor values. // Retain both startup caps, the independent 64 KiB chunk cap and prior headroom. const MAX_DEFERRED_GZIP_BYTES = + // Catalog qualifiers and custom node categories add 300 gzip bytes + // (353082 -> 353382), with the same 93 deferred chunks and 64 KiB chunk cap. + 300 + 347 + 1244 + 278 + diff --git a/scripts/hugging-face-source-supplements.test.mjs b/scripts/hugging-face-source-supplements.test.mjs index eb548d1c..cb779720 100644 --- a/scripts/hugging-face-source-supplements.test.mjs +++ b/scripts/hugging-face-source-supplements.test.mjs @@ -140,6 +140,72 @@ test('mixed hierarchy selects the exact source while preserving every historical assert.ok(contexts.every((context) => pika.definitionIds.includes(context.definitionId))); }); +test('same-name discovery variants are distinguishable without changing their reviewed contracts', async () => { + const audit = await server.ssrLoadModule('/src/studio/nodeLibraryAuditV2.ts'); + const library = parser.parseHuggingFaceNodeLibrary(fixture.mixed); + const snapshot = conditionals.parseHuggingFaceModularConditionalSnapshot(fixture.conditionals); + const expectedLabels = [ + 'Flux3 Set Timesteps · Flux3', + 'Flux3 Set Timesteps · Flux3 Distilled', + 'Helios Additional Inputs · Image To Video', + 'Helios Additional Inputs · Video To Video', + 'Qwen Image Additional Inputs · Edit', + 'Qwen Image Additional Inputs · Edit Inpaint', + 'Qwen Image Additional Inputs · Inpaint', + 'Wan Loop Denoiser · Wan', + 'Wan Loop Denoiser · Wan Image To Video', + ]; + for (const source of [undefined, snapshot]) { + const sections = catalog.buildHuggingFaceCatalogSections(library, source); + const blocks = sections.find(({ id }) => id === 'modular_diffusers_block_nodes').entries; + const collisions = audit + .auditNodeLibraryV2({}, sections) + .sections.flatMap((section) => section.sameLabelDifferentIdentities); + assert.deepEqual(collisions, []); + if (source) { + const labels = new Set(blocks.map(({ label }) => label)); + for (const label of expectedLabels) assert.ok(labels.has(label), label); + } + const placements = new Map( + source + ? [source, ...source.sourceSupplements].flatMap(({ pipelines }) => + pipelines.map(({ pipelineClass, placements }) => [pipelineClass, placements]), + ) + : library.definitions.map(({ id, blockPlacements }) => [id, blockPlacements]), + ); + for (const entry of blocks) { + for (const context of entry.modularBlockContexts) { + assert.ok( + placements.get(source ? context.pipelineClass : context.definitionId).includes(context.placement), + entry.id, + ); + assert.equal(entry.id, `modular-block:${context.placement.blockDefinitionId}`); + } + } + const results = catalog.filterHuggingFaceCatalogSections(sections, 'scheduler flow match euler'); + const schedulers = results.find(({ id }) => id === 'diffusers_component_nodes').entries; + assert.deepEqual( + schedulers.map(({ label }) => label), + [ + 'scheduler — Flow Match Euler Discrete Scheduler · From Configuration', + 'scheduler — Flow Match Euler Discrete Scheduler · From Pretrained', + ], + ); + const componentIds = new Set( + library.definitions.flatMap(({ components }) => + components.map( + ({ name, type, creationMethod, reuseKey }) => + `diffusers.component:${JSON.stringify([name, type, creationMethod, reuseKey])}`, + ), + ), + ); + for (const entry of schedulers) { + assert.equal(entry.insertable, false); + assert.ok(componentIds.has(entry.id)); + } + } +}); + for (const mutation of ['missing', 'duplicate', 'base-revision', 'nested', 'unknown', 'pipeline-conflict', 'boolean']) { test(`mixed hierarchy rejects ${mutation} source metadata`, () => { const value = structuredClone(fixture.conditionals); diff --git a/scripts/shared-stage-inputs.test.mjs b/scripts/shared-stage-inputs.test.mjs index d25d5379..f367bed1 100644 --- a/scripts/shared-stage-inputs.test.mjs +++ b/scripts/shared-stage-inputs.test.mjs @@ -153,6 +153,38 @@ test('all seven affected routes and H3 Image expose one shared model input witho }); }); +test('shared stage connectors label distinct outputs by their operation without changing saved bindings', () => { + let checked = 0; + for (const row of fixture.recipes) { + const graph = fresh(row); + const saved = JSON.stringify(graph); + for (const node of graph.nodes.filter(groups.visualOperationGroup)) { + const instance = node.data.blockInstanceV2; + const ports = instance.effectiveInterface.boundary.outputs; + const projected = runtime.blockConnectorParamsV2(instance).outputs; + assert.deepEqual( + Object.keys(projected), + ports.map(({ portId }) => portId), + ); + for (const port of ports) { + const collisions = ports.filter(({ label }) => label === port.label); + if (collisions.length < 2) { + assert.equal(projected[port.portId].label, port.label); + continue; + } + const owner = instance.effectiveGraph.nodes.find(({ nodeId }) => nodeId === port.binding.nodeId); + assert.equal(projected[port.portId].label, `${owner.data.label} · ${port.label}`); + assert.equal(projected[port.portId].fieldOptions.wrapConnectionLabel, true); + assert.equal(new Set(collisions.map(({ portId }) => projected[portId].label)).size, collisions.length); + checked++; + } + } + assert.equal(JSON.stringify(graph), saved, 'labels are only a view of the saved graph'); + assert.deepEqual(api(graph), api(JSON.parse(saved))); + } + assert.ok(checked > 0, 'the released node schemas exercise at least one repeated output label'); +}); + test('saved automatic definitions repair locally, preserving baseline, values, preview, layout and Undo/Redo', async (t) => { for (const row of fixture.recipes) await t.test(row.id, () => { diff --git a/src/components/CustomNodeLibrary.tsx b/src/components/CustomNodeLibrary.tsx index 72cbbb6b..ae311d0b 100644 --- a/src/components/CustomNodeLibrary.tsx +++ b/src/components/CustomNodeLibrary.tsx @@ -40,12 +40,20 @@ export default function CustomNodeLibrary({ }, [fetchModules]); const needle = search.trim().toLowerCase(); const open = expanded || Boolean(needle); - const entries = Object.entries(registry).filter( - ([key, node]) => - key.startsWith('custom.') && - modules.some((item) => item.enabled && key.startsWith(item.moduleKey + '.')) && - (!needle || `${node.label} ${key}`.toLowerCase().includes(needle)), - ); + const entries = Object.entries(registry).flatMap(([key, node]) => { + if (!key.startsWith('custom.') || !modules.some((item) => item.enabled && key.startsWith(item.moduleKey + '.'))) + return []; + const label = node.label || node.action; + const category = (typeof node.category === 'string' && node.category.trim()) || 'Uncategorized'; + if (needle && !`${label} ${key} ${category}`.toLowerCase().includes(needle)) return []; + return [{ key, label, category }]; + }); + const categories = new Map(); + for (const entry of entries) { + const group = categories.get(entry.category); + if (group) group.push(entry); + else categories.set(entry.category, [entry]); + } return (
{open ? ( - {entries.map(([key, node]) => ( - insert(key)} - onDragStart={(event) => { - event.dataTransfer.setData('text/plain', key); - event.dataTransfer.effectAllowed = 'move'; - }} - > - {node.label || node.action} - + {[...categories].map(([category, nodes]) => ( +
+

{category}

+ + {nodes.map(({ key, label }) => ( + insert(key)} + onDragStart={(event) => { + event.dataTransfer.setData('text/plain', key); + event.dataTransfer.effectAllowed = 'move'; + }} + > + {label} + + ))} + +
))} {modules .filter((item) => !item.enabled && (!needle || item.name.toLowerCase().includes(needle))) diff --git a/src/fields/HandleField.tsx b/src/fields/HandleField.tsx index 303af549..0af468fb 100644 --- a/src/fields/HandleField.tsx +++ b/src/fields/HandleField.tsx @@ -112,7 +112,11 @@ export default function HandleField(props: FieldProps) { {props.label} ) : (
{props.label} diff --git a/src/studio/blockRuntimeV2.ts b/src/studio/blockRuntimeV2.ts index dd750acf..1f6e9aa0 100644 --- a/src/studio/blockRuntimeV2.ts +++ b/src/studio/blockRuntimeV2.ts @@ -500,16 +500,32 @@ export function blockConnectorParamsV2(instanceValue: BlockInstanceV2): BlockCon } function connectorParamsForNormalizedInstanceV2(instance: BlockInstanceV2): BlockConnectorParamsV2 { + const focused = isFocusedStageNode(instance); + const project = (ports: BlockPortV2[], direction: 'input' | 'output') => { + const counts = new Map(); + if (focused) { + for (const { label } of ports) counts.set(label, (counts.get(label) ?? 0) + 1); + } + return Object.fromEntries( + ports.map((port) => { + const param = connectorParam(instance, port, direction); + // Distinct operations can publish the same label (for example Doc or + // Summary). Identify its owner on the canvas without changing the + // saved interface name, socket ID, type, or executable binding. + if ((counts.get(port.label) ?? 0) > 1) { + const title = instance.effectiveGraph.nodes.find((node) => node.nodeId === port.binding.nodeId)?.data.label; + if (typeof title === 'string' && title.trim()) { + param.label = `${title.trim()} · ${port.label}`; + param.fieldOptions = { ...param.fieldOptions, wrapConnectionLabel: true }; + } + } + return [port.portId, param]; + }), + ); + }; return { - inputs: Object.fromEntries( - instance.effectiveInterface.boundary.inputs.map((port) => [port.portId, connectorParam(instance, port, 'input')]), - ), - outputs: Object.fromEntries( - instance.effectiveInterface.boundary.outputs.map((port) => [ - port.portId, - connectorParam(instance, port, 'output'), - ]), - ), + inputs: project(instance.effectiveInterface.boundary.inputs, 'input'), + outputs: project(instance.effectiveInterface.boundary.outputs, 'output'), }; } diff --git a/src/studio/huggingFaceNodeCatalog.ts b/src/studio/huggingFaceNodeCatalog.ts index a1f849a1..f2b9f58d 100644 --- a/src/studio/huggingFaceNodeCatalog.ts +++ b/src/studio/huggingFaceNodeCatalog.ts @@ -85,6 +85,57 @@ function titleWords(value: string) { .join(' '); } +function qualifyDuplicateLabels( + entries: HuggingFaceCatalogEntry[], + getQualifiers: (entry: HuggingFaceCatalogEntry) => string[], +) { + const groups = new Map(); + for (const entry of entries) { + const group = groups.get(entry.label) ?? []; + group.push(entry); + groups.set(entry.label, group); + } + return [...groups.values()] + .flatMap((group) => { + if (group.length === 1) return group; + const options = group.map(getQualifiers); + // Use one kind of qualifier for the group so that all variants are directly comparable. + const scheme = options[0]!.findIndex((_, index) => { + const values = options.map((qualifiers) => qualifiers[index]); + return values.every(Boolean) && new Set(values).size === group.length; + }); + return scheme < 0 + ? group + : group.map((entry, index) => ({ ...entry, label: `${entry.label} · ${options[index]![scheme]}` })); + }) + .sort((left, right) => left.label.localeCompare(right.label) || left.id.localeCompare(right.id)); +} + +function routeLabel(value: string) { + return titleWords( + value + .replace(/(audio|image|img|text|video)2(audio|image|img|text|video)/giu, '$1 to $2') + .replace(/\bimg\b/giu, 'image'), + ); +} + +function modularBlockLabelQualifiers(entry: HuggingFaceCatalogEntry) { + const context = entry.modularBlockPlacement!; + const family = routeLabel(context.pipelineClass); + const branches = (entry.modularBlockContexts ?? [context]).map(({ placement }) => + routeLabel( + placement.legacyPath + .split('.') + .slice(0, -1) + .filter((segment) => segment !== 'denoise' && segment !== 'input') + .join(' '), + ), + ); + const branch = branches.filter(Boolean).sort((left, right) => left.length - right.length)[0] ?? ''; + const workflow = context.executionScope === 'unpruned_pipeline' ? '' : routeLabel(context.workflowId); + return [branch, workflow, family, [family, branch || workflow].filter(Boolean).join(' · ')]; +} + function definitionFamilyLabel(definition: HuggingFaceNodeLibraryDefinition) { return definition.label.split('—')[0]?.trim() || words(definition.pipelineClass); } @@ -229,8 +280,8 @@ function deduplicateBlockEntries(entries: HuggingFaceCatalogEntry[], library: Hu previous.searchText = `${previous.searchText} ${entry.searchText}`; }); - return [...byDefinition.values()] - .map((entry) => { + return qualifyDuplicateLabels( + [...byDefinition.values()].map((entry) => { const contexts = entry.modularBlockContexts ?? (entry.modularBlockPlacement ? [entry.modularBlockPlacement] : []); const families = uniqueSorted(contexts.map(({ pipelineClass }) => words(pipelineClass))); const role = entry.groupPath[entry.groupPath.length - 1] || 'Other'; @@ -252,8 +303,9 @@ function deduplicateBlockEntries(entries: HuggingFaceCatalogEntry[], library: Hu families.length === 1 ? families[0]! : 'Shared Across Families', ], }; - }) - .sort((left, right) => left.label.localeCompare(right.label) || left.id.localeCompare(right.id)); + }), + modularBlockLabelQualifiers, + ); } export function huggingFaceCatalogEntryForPipeline( @@ -413,20 +465,20 @@ function componentEntries(library: HuggingFaceNodeLibrary): HuggingFaceCatalogEn library.definitions.forEach((definition) => { if (definition.provider !== 'diffusers') return; definition.components.forEach((component) => { - const identity = JSON.stringify([component.name, component.type, component.creationMethod, component.reuseKey]); - const current = entries.get(identity) ?? { ...component, definitionIds: new Set() }; + const id = `diffusers.component:${JSON.stringify([component.name, component.type, component.creationMethod, component.reuseKey])}`; + const current = entries.get(id) ?? { ...component, definitionIds: new Set() }; current.definitionIds.add(definition.id); - entries.set(identity, current); + entries.set(id, current); }); }); - return [...entries.entries()] - .map(([identity, component]) => { + return qualifyDuplicateLabels( + [...entries.entries()].map(([id, component]) => { const definitionIds = uniqueSorted(component.definitionIds); const typeLabel = shortType(component.type); const label = `${words(component.name)} — ${words(typeLabel)}`; const description = `Reviewed Diffusers component ${component.type}.`; return { - id: `diffusers.component:${identity}`, + id, kind: 'component' as const, label, description, @@ -457,8 +509,13 @@ function componentEntries(library: HuggingFaceNodeLibrary): HuggingFaceCatalogEn insertable: false, definitionIds, }; - }) - .sort((left, right) => left.label.localeCompare(right.label) || left.id.localeCompare(right.id)); + }), + (entry) => { + const component = entries.get(entry.id)!; + const method = titleWords(component.creationMethod.replace(/^from_config$/u, 'from_configuration')); + return [method, [method, component.reuseKey.map(titleWords).join(', ')].filter(Boolean).join(' · ')]; + }, + ); } export function buildHuggingFaceCatalogSections( diff --git a/src/workflow/visualOperationGroups.ts b/src/workflow/visualOperationGroups.ts index bfa0a94f..4aaf3105 100644 --- a/src/workflow/visualOperationGroups.ts +++ b/src/workflow/visualOperationGroups.ts @@ -1157,7 +1157,7 @@ export function groupNewOperationGraph(graph: OperationGraph, options: { legacyS 'output', ]) : workflowTaskCategory(operationAuthoring(owner)?.operation.task ?? '') === 'Audio' - ? groupOperationStages(next, owner.id, ['inputs', 'guidance', 'setup', 'output', 'videoInput', 'generate']) + ? groupOperationStages(next, owner.id, ['inputs', 'guidance', 'setup', 'generate', 'output', 'videoInput']) : groupOperationStages(next, owner.id); // The same real input preparation can precede a whole native pipeline. // Keep a separately consumed original clip external, with its own preview. diff --git a/tests/e2e/live-backend/custom-prototyping.spec.ts b/tests/e2e/live-backend/custom-prototyping.spec.ts index df322e55..6947d5ed 100644 --- a/tests/e2e/live-backend/custom-prototyping.spec.ts +++ b/tests/e2e/live-backend/custom-prototyping.spec.ts @@ -3,6 +3,7 @@ import { mkdir, readFile, writeFile } from 'node:fs/promises'; import { resolve } from 'node:path'; import { createHash } from 'node:crypto'; import { decodedImageStatistics } from './imageProofStatistics'; +import { connect, save } from './qwenDemoGestures'; // Explicit opt-in: creates a uniquely named, reviewed first-party extension. // It never overwrites an existing package, and disables its own copy afterward. @@ -14,6 +15,10 @@ test('fresh documented custom package enables and reloads through the rendered U const modelSwitches = nativeImage && process.env.MODIFF_CUSTOM_MODEL_SWITCHES === '1'; test.setTimeout((modelSwitches ? 30 : nativeImage ? 20 : 5) * 60_000); page.setDefaultTimeout(15_000); + const waitForCanvas = () => + page.waitForFunction(() => Boolean(window.__MODIFF_E2E__?.getState().studio.workflowCanvasHydrated), null, { + timeout: 90_000, + }); const backend = resolve(process.env.MODIFF_BACKEND_DIR || '../MoDiff'); const name = `PrototypingPrompt${Date.now()}`; const output = resolve(process.env.MODIFF_REVIEW_OUTPUT_DIR || 'artifacts/custom-prototyping', name); @@ -52,18 +57,21 @@ test('fresh documented custom package enables and reloads through the rendered U try { await page.setViewportSize({ width: 1600, height: 1000 }); await page.goto('/', { waitUntil: 'domcontentloaded' }); - await page.waitForFunction(() => Boolean(window.__MODIFF_E2E__?.getState().studio.workflowCanvasHydrated)); + await waitForCanvas(); await expect(page.getByTestId('startup-workspace-gate')).toBeHidden({ timeout: 90_000 }); const launcher = page.getByTestId('task-launcher'); - await expect(launcher).toBeVisible(); - await launcher.getByRole('button', { name: 'Empty workflow', exact: true }).click(); + if (await launcher.isVisible()) await launcher.getByRole('button', { name: 'Empty workflow', exact: true }).click(); + await expect.poll(() => page.evaluate(() => window.__MODIFF_E2E__!.exportWorkflowGraph().nodes.length)).toBe(0); await expect(page.getByTestId('startup-workspace-gate')).toBeHidden({ timeout: 90_000 }); await page.getByTestId('left-tab-nodes').click(); - await page.getByRole('button', { name: 'Add custom node', exact: true }).click(); + await page.getByRole('button', { name: 'Add custom node', exact: true }).click({ timeout: 60_000 }); const dialog = page.getByTestId('custom-extensions-dialog'); - await dialog.getByRole('button', { name: 'Advanced options', exact: true }).click(); + await dialog.getByRole('button', { name: 'Advanced options', exact: true }).click({ timeout: 60_000 }); await dialog.getByLabel('Extension source', { exact: true }).fill('examples/custom_nodes/PromptTools'); await dialog.getByLabel('Extension module name').fill(name); + const packageKey = `custom.${name}.PromptPrefix`; + const beforeAdd = await (await page.request.get('/nodes')).json(); + expect(beforeAdd.nodes[packageKey]).toBeUndefined(); const installed = page.waitForResponse((response) => response.url().endsWith('/custom_modules/add')); await dialog.getByTestId('extension-source-form').getByRole('button', { name: 'Add node', exact: true }).click(); const installation = await (await installed).json(); @@ -75,60 +83,82 @@ test('fresh documented custom package enables and reloads through the rendered U receipts.push({ operation: 'enable', response: activation }); const activatedModule = activation.modules.find((item: { name: string }) => item.name === name); expect(activatedModule.enabled).toBe(true); + const registered = await (await page.request.get('/nodes')).json(); + expect(registered.nodes[packageKey]).toMatchObject({ + label: 'Prompt Prefix', + category: 'Text', + params: { + text: { label: 'Prompt', display: 'textarea' }, + prefix: { label: 'Prefix', display: 'textarea' }, + prompt_input: { label: 'Prompt Input', display: 'input', type: 'string', required: false }, + result: { label: 'Prompt', display: 'output', type: 'string' }, + }, + }); await dialog.getByRole('button', { name: 'Close', exact: true }).click(); - await page.getByLabel('Search nodes', { exact: true }).fill(name); - const group = page.getByTestId('node-group-custom-nodes'); - if ((await group.getByRole('button').first().getAttribute('aria-expanded')) !== 'true') - await group.getByRole('button').first().click(); - await group.getByRole('button', { name: 'Prompt Prefix', exact: true }).click(); - await page.getByLabel('Search nodes', { exact: true }).fill(''); + const search = page.getByLabel('Search nodes', { exact: true }); + const customGroup = page.getByTestId('node-group-custom-nodes'); + await search.fill('Text'); + const textCategory = customGroup.getByRole('group', { name: 'Text', exact: true }); + const customButton = textCategory.getByRole('button', { name: 'Prompt Prefix', exact: true }); + await expect(customButton).toBeVisible(); + await page.screenshot({ path: resolve(output, 'custom-category.png') }); + + await page.getByTestId('node-row-modules-Primitive-TextValue').click(); + await customButton.click(); + await search.fill('Export Data'); + await page.getByTestId('node-row-modules-Primitive-ExportData').click(); + await search.fill(''); - // Import a tiny ordinary graph through the real frontend factories. The - // approval, Run, reload and persistence gestures below use the actual UI. - const ids = await page.evaluate(async (name) => { - const [{ useFlowStore }, { useNodesStore }, { createNodeFromRegistry }, { useStudioStore }] = await Promise.all([ - import('/src/stores/useFlowStore.ts'), - import('/src/stores/useNodeStore.ts'), - import('/src/workflow/nodeFactory.ts'), - import('/src/stores/useStudioStore.ts'), - ]); - const flow = useFlowStore.getState(); - const custom = flow.nodes.find((node) => node.data.module === `custom.${name}`)!; - if (!custom) throw new Error('The UI did not insert the enabled custom node.'); - const registry = useNodesStore.getState().nodesRegistry; - const text = createNodeFromRegistry('modules.Primitive.TextValue', registry, { x: 20, y: 100 })!; - const exported = createNodeFromRegistry('modules.Primitive.ExportData', registry, { x: 760, y: 100 })!; - text.data.params.text.value = 'a lighthouse at night'; - custom.data.params.text.value = 'This inline value must not override the connected prompt'; - custom.data.params.prefix.value = 'Watercolor:'; - custom.position = { x: 370, y: 100 }; - exported.data.params.format.value = 'text'; - exported.data.params.filename.value = `{PATH:data}/exports/${name}_{HASH:6}.txt`; - useStudioStore.getState().updateForm({ resourceMode: 'expert' }); - flow.replaceGraph({ - nodes: [text, custom, exported], - edges: [ - { - id: `${name}-input`, - source: text.id, + const readGraph = () => page.evaluate(() => window.__MODIFF_E2E__!.exportWorkflowGraph()); + await expect.poll(async () => (await readGraph()).nodes.length).toBe(3); + const inserted = (await readGraph()).nodes; + const ids = { + text: inserted.find((node) => node.data.action === 'TextValue')!.id, + custom: inserted.find((node) => node.data.module === `custom.${name}`)!.id, + exported: inserted.find((node) => node.data.action === 'ExportData')!.id, + }; + const node = (id: string) => page.locator(`.react-flow__node[data-id="${id}"]`); + const handle = (id: string, field: string) => page.getByTestId(`node-handle-${id}-${field}`); + const arrange = () => page.getByRole('button', { name: 'Arrange graph', exact: true }).click(); + const fill = async (id: string, label: string, value: string) => { + const field = node(id).getByRole('textbox', { name: label, exact: true }); + await field.fill(value); + await field.blur(); + }; + const inlinePrompt = 'an observatory behind a glass dome'; + await arrange(); + await fill(ids.text, 'Text', 'a lighthouse at night'); + await fill(ids.custom, 'Prompt', inlinePrompt); + await fill(ids.custom, 'Prefix', 'Ink painting:'); + await fill(ids.exported, 'File', `{PATH:data}/exports/${name}_{HASH:6}.txt`); + await node(ids.exported).locator('[data-key="format"]').getByRole('button').click(); + await page.getByRole('option', { name: 'text', exact: true }).click(); + await expect(handle(ids.custom, 'prompt_input')).toHaveAttribute('aria-label', 'Input Prompt Input, string'); + await expect(handle(ids.custom, 'result')).toHaveAttribute('aria-label', 'Output Prompt, string'); + await expect(handle(ids.exported, 'value')).toHaveAttribute('aria-label', 'Input Data, any'); + await connect(page, handle(ids.custom, 'result'), handle(ids.exported, 'value')); + await expect + .poll(async () => (await readGraph()).edges) + .toMatchObject([{ source: ids.custom, sourceHandle: 'result', target: ids.exported, targetHandle: 'value' }]); + const connectPrompt = async () => { + await connect(page, handle(ids.text, 'output'), handle(ids.custom, 'prompt_input')); + await expect + .poll(async () => (await readGraph()).edges) + .toContainEqual( + expect.objectContaining({ + source: ids.text, sourceHandle: 'output', - target: custom.id, + target: ids.custom, targetHandle: 'prompt_input', - }, - { - id: `${name}-output`, - source: custom.id, - sourceHandle: 'result', - target: exported.id, - targetHandle: 'value', - }, - ], - }); - return { custom: custom.id, exported: exported.id }; - }, name); + }), + ); + }; + const automatic = page.getByRole('button', { name: 'Memory policy: Automatic. Click to switch.', exact: true }); + if (await automatic.isVisible()) await automatic.click(); let nativePreview: string | null = null; const imageHashes: string[] = []; if (nativeImage) { + await connectPrompt(); const response = await page.request.post('/operations/starter', { data: { pipelineClass: 'ZImageModularPipeline', task: 'text_to_image', executionProfileId: 'z-image:modular' }, timeout: 60_000, @@ -219,6 +249,9 @@ test('fresh documented custom package enables and reloads through the rendered U const value = await page.request.get(`/cache/${ids.custom}/result`); expect(value.ok()).toBe(true); expect(await value.text()).toBe(expected); + const exportedValue = await page.request.get(`/cache/${ids.exported}/output`); + expect(exportedValue.ok()).toBe(true); + expect(await exportedValue.text()).toBe(expected); if (nativePreview) { const evidence = await (await page.request.get(`/runs/${submission.task_id}`)).json(); // Retain mismatching evidence too; an assertion must not erase the @@ -244,8 +277,16 @@ test('fresh documented custom package enables and reloads through the rendered U } receipts.push({ operation: 'run', taskId: submission.task_id, expected, elapsedMs: Date.now() - clickedAt }); }; - await run('Watercolor: a lighthouse at night'); - const before = await page.evaluate(() => window.__MODIFF_E2E__!.exportWorkflowGraph()); + if (!nativeImage) { + await run(`Ink painting: ${inlinePrompt}`); + await connectPrompt(); + } + await arrange(); + await page.screenshot({ path: resolve(output, 'connected.png') }); + const workflowName = `Custom authoring review ${name}`; + await save(page, workflowName); + await run('Ink painting: a lighthouse at night'); + const before = await readGraph(); await writeFile(resolve(output, 'before.workflow.json'), JSON.stringify(before, null, 2)); const installedPath = resolve(activatedModule.path, 'main.py'); expect(await readFile(installedPath, 'utf8')).toBe(source); @@ -272,14 +313,25 @@ test('fresh documented custom package enables and reloads through the rendered U receipts.push({ operation: 'reload', response: reload }); expect(reload.modules.find((item: { name: string }) => item.name === name).enabled).toBe(true); await dialog.getByRole('button', { name: 'Close', exact: true }).click(); - await run('RELOADED Watercolor: a lighthouse at night'); + await run('RELOADED Ink painting: a lighthouse at night'); if (nativeImage) expect(imageHashes[1]).not.toBe(imageHashes[0]); await page.reload({ waitUntil: 'domcontentloaded' }); - await page.waitForFunction(() => Boolean(window.__MODIFF_E2E__?.getState().studio.workflowCanvasHydrated)); - const restored = await page.evaluate(() => window.__MODIFF_E2E__!.exportWorkflowGraph()); + await waitForCanvas(); + const restored = await readGraph(); expect(restored.edges).toEqual(before.edges); expect(restored.nodes.map((node) => node.id)).toEqual(before.nodes.map((node) => node.id)); - await run('RELOADED Watercolor: a lighthouse at night'); + await page.getByRole('button', { name: `Close ${workflowName}`, exact: true }).click(); + if (await launcher.isVisible()) await page.keyboard.press('Escape'); + await page.getByTestId('left-tab-workflows').click(); + await page.getByRole('button', { name: 'My workflows', exact: true }).click(); + await page.getByRole('button', { name: workflowName, exact: true }).click(); + await expect.poll(async () => (await readGraph()).edges).toEqual(before.edges); + await expect + .poll(async () => (await readGraph()).nodes.map((entry) => entry.id)) + .toEqual(before.nodes.map((entry) => entry.id)); + await expect(node(ids.custom).getByRole('textbox', { name: 'Prefix', exact: true })).toHaveValue('Ink painting:'); + await expect(handle(ids.custom, 'prompt_input')).toHaveAttribute('aria-label', 'Input Prompt Input, string'); + await run('RELOADED Ink painting: a lighthouse at night'); if (nativeImage) expect(imageHashes[2]).toBe(imageHashes[1]); if (modelSwitches) { // A real native → native → ordinary whole-pipeline → native round trip. @@ -332,7 +384,7 @@ test('fresh documented custom package enables and reloads through the rendered U ); expect(changed.edges.some((edge) => edge.source === ids.custom && edge.target !== ids.exported)).toBe(true); receipts.push({ operation: 'browser model switch', repository, pipeline }); - await run('RELOADED Watercolor: a lighthouse at night'); + await run('RELOADED Ink painting: a lighthouse at night'); } const returned = await page.evaluate(() => window.__MODIFF_E2E__!.exportWorkflowGraph()); expect(returned.nodes.map((node) => node.id).sort()).toEqual(before.nodes.map((node) => node.id).sort()); diff --git a/tests/e2e/live-backend/visual-stage-groups.spec.ts b/tests/e2e/live-backend/visual-stage-groups.spec.ts index bbaad168..336c47fe 100644 --- a/tests/e2e/live-backend/visual-stage-groups.spec.ts +++ b/tests/e2e/live-backend/visual-stage-groups.spec.ts @@ -488,9 +488,7 @@ for (const [file, model] of [ test(`canonical Example retains its ordinary graph and saves its staged layout: ${model}`, async ({ page }) => { const errors: string[] = []; page.on('pageerror', (error) => errors.push(error.message)); - if (!(await page.getByRole('button', { name: 'Example workflows', exact: true }).isVisible())) - await page.getByTestId('left-tab-workflows').click(); - await page.getByRole('button', { name: 'Example workflows', exact: true }).click(); + await openExamples(page); await page.getByRole('searchbox', { name: 'Search workflows', exact: true }).fill(`${file} ${model}`); const entry = page.getByTestId(/^workflow-file-/); await expect(entry).toHaveCount(1); @@ -506,6 +504,10 @@ for (const [file, model] of [ const generate = Object.values(api.nodes).find((node) => node.action === 'Generate')!; expect(generate.params).not.toHaveProperty('use_guidance_scale_2'); expect(generate.params).not.toHaveProperty('guidance_scale_2'); + const connectors = page.getByTestId(/^setup-node-/).getByRole('group', { name: 'Node connectors' }); + await expect(connectors.getByText('Pipeline Quantization Config V2 · Summary', { exact: true })).toBeVisible(); + await expect(connectors.getByText('Diffusers Execution Recipe · Summary', { exact: true })).toBeVisible(); + await expect(connectors.getByText('Summary', { exact: true })).toHaveCount(0); } if (model === 'HuggingFaceImageTextToTextModel') { const generate = Object.values(api.nodes).find((node) => node.action === 'GenerateImageVideoText')!; @@ -516,6 +518,20 @@ for (const [file, model] of [ const loader = Object.values(api.nodes).find((node) => node.action === 'ModelsLoader')!; expect(loader.params).not.toHaveProperty('weight_format'); } + if (model === 'MiniMaxMusic3ModularPipeline') { + const generate = page.getByTestId(/^generate-node-/); + await expect(generate).toHaveCount(1); + await expect(generate.getByText('Generate', { exact: true }).first()).toBeVisible(); + await expect(generate.getByText('Steps', { exact: true }).first()).toBeVisible(); + await expect(page.getByTestId(/^output-node-/).getByText('Audio Output', { exact: true })).toBeVisible(); + const [samplerId] = Object.entries(api.nodes).find(([, node]) => node.action === 'WorkflowDenoise')!; + const [decoderId, decoder] = Object.entries(api.nodes).find(([, node]) => node.action === 'WorkflowDecodeAudio')!; + const audio = Object.values(api.nodes).find( + (node) => node.action === 'Export' && node.module === 'modules.Audio', + )!; + expect(decoder.params.state_in).toMatchObject({ sourceId: samplerId, sourceKey: 'state_out' }); + expect(audio.params.audio).toMatchObject({ sourceId: decoderId, sourceKey: 'audio' }); + } if (model === 'BuiltinAudioOperation') { await expect(page.locator('.react-flow__node').getByText('Previous', { exact: true })).toHaveCount(0); const overlaps = await page.evaluate(() => { @@ -545,6 +561,11 @@ for (const [file, model] of [ const restored = await page.evaluate(() => window.__MODIFF_E2E__!.exportAuthorizedApiGraph()); expect(restored.nodes).toEqual(api.nodes); expect(restored.paths).toEqual(api.paths); + if (model === 'MiniMaxMusic3ModularPipeline') { + const generate = page.getByTestId(/^generate-node-/); + await expect(generate).toHaveCount(1); + await expect(generate.getByText('Steps', { exact: true }).first()).toBeVisible(); + } expect(errors).toEqual([]); await page.screenshot({ path: test.info().outputPath(`${model}-example-restored.png`) }); }); From 5a2310d246d0f67a1c1041d84a74c331c134fb28 Mon Sep 17 00:00:00 2001 From: Sourav Das Date: Fri, 20 Nov 2026 13:15:38 +0530 Subject: [PATCH 263/440] Share proven stage inputs and fold restored idle activity --- docs/workflow-authoring-ux.md | 20 +- scripts/bundle-budget.mjs | 3 + scripts/shared-stage-inputs.test.mjs | 211 +++++++++++++++++- src/components/EncodingNodeMenu.tsx | 2 +- src/components/RunSessionShelf.tsx | 10 +- src/workflow/visualOperationGroups.ts | 178 ++++++++++++--- tests/e2e/live-backend/live-backend.spec.ts | 2 + .../live-backend/visual-stage-groups.spec.ts | 24 ++ tests/e2e/studio-mocked/studio-mocked.spec.ts | 119 ++++++++++ 9 files changed, 521 insertions(+), 48 deletions(-) diff --git a/docs/workflow-authoring-ux.md b/docs/workflow-authoring-ux.md index 11f98f71..72b2dbdb 100644 --- a/docs/workflow-authoring-ux.md +++ b/docs/workflow-authoring-ux.md @@ -51,15 +51,18 @@ Empty optional bundle inputs can also share a socket when their consumers belong to one model owner. Different sources, required empty inputs and authored bundle values stay separate. This presentation does not change backend execution. -Encode Inputs also shares identical model connections across its encoders. Music -routes that encode inside Generate keep that existing structure. +Encode Inputs keeps one connection when the same image output supplies matching +encoders. Opening and closing frames have separate sockets. Generate uses one +VAE connection when the sampler and decoder share the same component output. +Different sources and fields with their own fallback values remain separate. +Music routes that encode inside Generate keep that existing structure. For an older saved Encode Inputs or Generate stage, open the node's options menu and choose **Merge shared inputs**. The edit is undoable, preserves the saved reusable definition and current settings, and refuses inputs that cannot be shared safely. Opening a saved workflow alone does not rewrite its interface. -Model/task changes retain a repaired stage's shared connection through the normal -review and preservation planner. +Model and task changes retain a repaired shared connection when the new route +can retain the supplier and its compatible consumers. Curated fresh image recipes can request an exact backend `authoringRecipeId` on the ordinary operation-starter endpoint. Its optional hash-covered `authoring` @@ -91,10 +94,11 @@ intact; ambiguous matches or incompatible preserved defaults reject regeneration ## Keep activity out of the editing area -Click the **Session activity** heading to fold its list away when it covers a -canvas control. The compact heading retains **Active now** while work is running -or downloading. Click it again to restore the same notifications; Enter and Space -also toggle it. This does not clear history, stop work or alter the workflow. +When a page opens with only finished activity, **Session activity** shows a +compact count. Live work opens the list automatically and keeps its result +visible unless you fold it. Click the heading to fold or reveal the same +notifications, or use Enter or Space. The heading retains **Active now** while +work is running or downloading. Folding preserves history, work and the canvas. The toolbar's download activity button opens the list when you need download progress. **Clear** remains a separate action for finished notifications. When panning or resizing, the selected-node toolbar moves clear of activity so diff --git a/scripts/bundle-budget.mjs b/scripts/bundle-budget.mjs index 9b12f429..3049868c 100644 --- a/scripts/bundle-budget.mjs +++ b/scripts/bundle-budget.mjs @@ -1044,6 +1044,9 @@ const MAX_DEFERRED_CHUNK_GZIP_BYTES = 64 * 1024; // Startup code differs only in the three verified Dataset descriptor values. // Retain both startup caps, the independent 64 KiB chunk cap and prior headroom. const MAX_DEFERRED_GZIP_BYTES = + // Shared media sockets and restored activity disclosure add 604 gzip bytes + // (353382 -> 353986), with the same chunk membership and startup limits. + 604 + // Catalog qualifiers and custom node categories add 300 gzip bytes // (353082 -> 353382), with the same 93 deferred chunks and 64 KiB chunk cap. 300 + diff --git a/scripts/shared-stage-inputs.test.mjs b/scripts/shared-stage-inputs.test.mjs index f367bed1..be7119a5 100644 --- a/scripts/shared-stage-inputs.test.mjs +++ b/scripts/shared-stage-inputs.test.mjs @@ -1,11 +1,13 @@ import assert from 'node:assert/strict'; import { execFileSync } from 'node:child_process'; +import { readFileSync } from 'node:fs'; import path from 'node:path'; import { after, before, test } from 'node:test'; import { createServer } from 'vite'; import { canonicalGraphIdentity } from './live-proof-provenance.mjs'; -let fixture, server, groups, drafts, authoring, exporter, schema, runtime; +let fixture, server, groups, drafts, authoring, exporter, schema, runtime, defaults, inference, examples; +const backend = process.env.MODIFF_BACKEND_DIR || path.resolve('../MoDiff'); const selections = [ ['HunyuanVideo15ModularPipeline', 'text_to_video'], ['HunyuanVideo15ModularPipeline', 'image_to_video'], @@ -16,8 +18,11 @@ const selections = [ ['QwenImageModularPipeline', 'text_to_image'], ['MiniMaxH3ImageModularPipeline', 'text_to_image'], ]; +const switchSelections = [ + ['QwenImageEditPlusModularPipeline', 'edit_image'], + ['QwenImageEditPlusModularPipeline', 'multi_image_reference_edit'], +]; before(async () => { - const backend = process.env.MODIFF_BACKEND_DIR || path.resolve('../MoDiff'); const python = process.env.MODIFF_BACKEND_PYTHON || path.join(backend, '.venv/Scripts/python.exe'); fixture = JSON.parse( execFileSync(python, [path.resolve('scripts/template-operation-fixtures.py')], { @@ -26,7 +31,7 @@ before(async () => { maxBuffer: 64 * 1024 ** 2, timeout: 120_000, input: JSON.stringify( - selections.map(([pipelineClass, task]) => ({ + [...selections, ...switchSelections].map(([pipelineClass, task]) => ({ id: `${pipelineClass}:${task}`, selection: { pipelineClass, task }, })), @@ -41,6 +46,7 @@ before(async () => { }, }), ); + fixture.switchRecipes = fixture.recipes.splice(selections.length); const storage = new Map(); globalThis.localStorage = { getItem: (key) => storage.get(key) ?? null, @@ -61,6 +67,9 @@ before(async () => { exporter = await server.ssrLoadModule('/src/stores/useFlowStore.ts'); schema = await server.ssrLoadModule('/src/studio/blockSchemaV2.ts'); runtime = await server.ssrLoadModule('/src/studio/blockRuntimeV2.ts'); + ({ DEFAULT_STUDIO_FORM: defaults } = await server.ssrLoadModule('/src/studio/modelProfiles.ts')); + inference = await server.ssrLoadModule('/src/studio/workflowInference.ts'); + examples = await server.ssrLoadModule('/src/studio/exampleWorkflow.ts'); }); after(async () => server?.close()); @@ -90,16 +99,208 @@ function api(graph) { ); } +const sharedImageExamples = [ + 'QwenImageEditModularPipeline:edit_image', + 'QwenImageEditModularPipeline:inpaint', + 'QwenImageEditPlusModularPipeline:edit_image', + 'QwenImageEditPlusModularPipeline:edit_image:qwen_edit_plus_single_image', + 'QwenImageEditPlusModularPipeline:multi_image_reference_edit', + 'QwenImageLayeredModularPipeline:layer_decomposition', +]; +const sharedVideoExample = 'WanImage2VideoModularPipeline:image_to_video'; + +function exampleDocument(id) { + const manifest = JSON.parse(readFileSync(path.join(backend, 'data/workflow-library-manifest.json'), 'utf8')); + const row = [...manifest.workflows, ...manifest.experimentalWorkflows].find((row) => row.id === id); + assert.ok(row, id); + return JSON.parse(readFileSync(path.join(backend, 'data/graphs', row.graphPath), 'utf8')); +} + +function stageInputs(graph, kind, field) { + const stage = graph.nodes.find((node) => groups.visualOperationGroup(node) === kind); + return ( + stage?.data.blockInstanceV2.effectiveInterface.boundary.inputs.filter( + (port) => port.binding.fieldOrPortId === field, + ) ?? [] + ); +} + +test('same-source image, last image and VAE are one connection on the actual example graphs', async (t) => { + for (const id of [...sharedImageExamples, sharedVideoExample]) { + await t.test(id, () => { + const source = exampleDocument(id); + const before = inference.workflowSnapshotFromGraph(source, 'default', defaults); + const graph = examples.exampleWorkflowSnapshotFromGraph(source, 'default', defaults); + const fields = + id === sharedVideoExample + ? [ + ['inputs', 'image'], + ['inputs', 'last_image'], + ['generate', 'vae'], + ] + : [['inputs', 'image']]; + for (const [kind, field] of fields) { + const [port, ...repeated] = stageInputs(graph, kind, field); + assert.equal(repeated.length, 0, `${kind} has one ${field} socket`); + assert.equal(port.mirrorBindings?.length, 1); + assert.equal(port.mirrorBindings[0].fieldOrPortId, field); + } + assert.deepEqual(api(graph), api(before), 'the exact canonical execution and input order survive'); + assert.deepEqual(api(JSON.parse(JSON.stringify(graph))), api(before), 'save and reopen keep both real inputs'); + }); + } +}); + +test('image decisions follow a validated common wire and keep independent or disconnected ports', () => { + for (const fault of [ + 'different source', + 'different handle', + 'incompatible output type', + 'duplicate', + 'disconnected', + 'foreign role', + 'fallback', + 'conditional input', + 'active signal', + ]) { + const raw = inference.workflowSnapshotFromGraph(exampleDocument(sharedImageExamples[0]), 'default', defaults); + const prompt = raw.nodes.find((node) => node.data.action === 'EncodePrompt'); + const edge = raw.edges.find((edge) => edge.target === prompt.id && edge.targetHandle === 'image'); + const loader = raw.nodes.find((node) => node.id === edge.source); + if (fault === 'different source') { + raw.nodes.push({ ...structuredClone(loader), id: 'different-image-source' }); + edge.source = 'different-image-source'; + } + if (fault === 'different handle') { + loader.data.params.alternative = structuredClone(loader.data.params[edge.sourceHandle]); + edge.sourceHandle = 'alternative'; + } + if (fault === 'incompatible output type') loader.data.params[edge.sourceHandle].type = 'video'; + if (fault === 'duplicate') raw.edges.push({ ...edge, id: 'extra-image-wire' }); + if (fault === 'disconnected') raw.edges = raw.edges.filter((wire) => wire !== edge); + if (fault === 'foreign role') + prompt.data.operationAuthoring.operation.ports.find((port) => port.name === 'image').semanticName = 'other'; + if (fault === 'fallback') prompt.data.params.image.value = ['latent-reference.png']; + if (fault === 'conditional input') + prompt.data.params.image.requiredWhen = { field: 'model_type', equals: 'custom' }; + if (fault === 'active signal') prompt.data.params.image.signal = { direction: 'input', value: 'live-image' }; + const before = structuredClone(raw); + const grouped = groups.groupNewOperationGraph(raw); + assert.equal(stageInputs(grouped, 'inputs', 'image').length, 2, fault); + assert.deepEqual(raw, before); + } +}); + +test('saved image sockets with independently configured labels stay separate', () => { + const document = exampleDocument(sharedImageExamples[0]); + const current = examples.exampleWorkflowSnapshotFromGraph(document, 'default', defaults); + const graph = historicalSplit(current, 'inputs', ['image']); + const root = graph.nodes.find((node) => groups.visualOperationGroup(node) === 'inputs'); + const instance = root.data.blockInstanceV2; + const surface = structuredClone(instance.effectiveInterface); + surface.boundary.inputs.find((port) => port.binding.fieldOrPortId === 'image').label = 'Alternate prompt reference'; + root.data.blockInstanceV2 = runtime.replaceBlockEffectiveInterfaceV2(instance, surface); + const before = structuredClone(graph); + assert.throws(() => groups.mergeVisualStageSharedInputs(graph, root.id), /No matching shared inputs/); + assert.deepEqual(graph, before); +}); + +test('saved shared image, closing frame and VAE inputs can be repaired independently', () => { + for (const [id, kind, fields] of [ + [sharedImageExamples[0], 'inputs', ['image']], + [sharedVideoExample, 'inputs', ['image', 'last_image']], + [sharedVideoExample, 'generate', ['vae']], + ]) { + const source = exampleDocument(id); + const current = examples.exampleWorkflowSnapshotFromGraph(source, 'default', defaults); + const saved = JSON.parse(JSON.stringify(historicalSplit(current, kind, fields))); + const before = structuredClone(saved); + const root = saved.nodes.find((node) => groups.visualOperationGroup(node) === kind); + const repaired = groups.mergeVisualStageSharedInputs(saved, root.id); + const changed = repaired.nodes.find((node) => node.id === root.id); + for (const field of fields) { + assert.equal(stageInputs(saved, kind, field).length, 2); + assert.equal(stageInputs(repaired, kind, field).length, 1); + } + assert.deepEqual(saved, before, 'repair is pure'); + assert.deepEqual(changed.data.blockInstanceV2.definitionSnapshot, root.data.blockInstanceV2.definitionSnapshot); + assert.deepEqual(changed.data.blockInstanceV2.presentation, root.data.blockInstanceV2.presentation); + assert.deepEqual(api(repaired), api(saved)); + assert.deepEqual(api(JSON.parse(JSON.stringify(repaired))), api(saved)); + } +}); + +test('rewiring one shared canvas input feeds both executable image consumers', () => { + const source = exampleDocument(sharedImageExamples[0]); + const graph = examples.exampleWorkflowSnapshotFromGraph(source, 'default', defaults); + const stage = graph.nodes.find((node) => groups.visualOperationGroup(node) === 'inputs'); + const port = stageInputs(graph, 'inputs', 'image')[0]; + const edge = graph.edges.find((edge) => edge.target === stage.id && edge.targetHandle === port.portId); + const loader = graph.nodes.find((node) => node.id === edge.source); + const changed = structuredClone(graph); + const newSource = 'alternate-image-loader'; + changed.nodes.push({ ...structuredClone(loader), id: newSource }); + changed.edges.find((wire) => wire.id === edge.id).source = newSource; + const executable = exporter.useFlowStore + .getState() + .exportGraph('shared-image-rewire', undefined, { sourceGraph: changed, randomizeSeeds: false }); + const consumers = Object.values(executable.nodes).filter((node) => + ['EncodePrompt', 'ImageEncode'].includes(node.action), + ); + assert.equal(consumers.length, 2); + for (const node of consumers) + assert.deepEqual([node.params.image.sourceId, node.params.image.sourceKey], [newSource, edge.sourceHandle]); + assert.equal(graph.edges.find((wire) => wire.id === edge.id).source, loader.id); +}); + +test('the shared Wan VAE uses the enabled handle and disconnects both Generate leaves', () => { + const graph = examples.exampleWorkflowSnapshotFromGraph(exampleDocument(sharedVideoExample), 'default', defaults); + const stage = generate(graph); + const instance = stage.data.blockInstanceV2; + const [port] = stageInputs(graph, 'generate', 'vae'); + const member = (binding) => instance.effectiveGraph.nodes.find(({ nodeId }) => nodeId === binding.nodeId); + assert.equal(member(port.binding).data.action, 'Denoise'); + assert.equal(member(port.mirrorBindings[0]).data.params.vae.disabled, true); + assert.notEqual(runtime.blockConnectorParamsV2(instance).inputs[port.portId].disabled, true); + const disconnected = runtime.expandBlockGraphV2ForExecution( + graph.nodes, + graph.edges.filter((edge) => edge.target !== stage.id || edge.targetHandle !== port.portId), + ); + const suppliedVae = disconnected.edges.filter((edge) => edge.targetHandle === 'vae'); + assert.equal(suppliedVae.length, 1, 'separate Encode Inputs VAE is still connected'); + assert.equal(disconnected.nodes.find((node) => node.id === suppliedVae[0].target).data.action, 'ImageEncode'); +}); + +test('Qwen image task switching retains the one shared image source and leaves the source draft intact', () => { + const [single, multi] = fixture.switchRecipes; + assert.equal(multi.id, 'QwenImageEditPlusModularPipeline:multi_image_reference_edit'); + let graph = examples.exampleWorkflowSnapshotFromGraph(exampleDocument(sharedImageExamples[2]), 'default', defaults); + for (const row of [multi, single]) { + const before = structuredClone(graph); + const owner = groups + .unpackVisualOperationGroups(graph) + .graph.nodes.find((node) => node.data.action === 'ModelsLoader'); + const plan = authoring.planOperationChange(graph, owner.id, row.starter); + assert.deepEqual(graph, before); + graph = plan.graph; + const ports = stageInputs(graph, 'inputs', 'image'); + assert.equal(ports.length, 1); + assert.equal(ports[0].mirrorBindings?.length, 1); + assert.deepEqual(api(graph), api(groups.unpackVisualOperationGroups(graph).graph)); + assert.deepEqual(api(graph), api(JSON.parse(JSON.stringify(graph)))); + } +}); + // Historical automatic Generate definitions exposed one socket per consumer. // Preserve the old baseline itself, not a reference to today's planner output. -function historicalSplit(graph, kind = 'generate') { +function historicalSplit(graph, kind = 'generate', fields = ['pipeline_components']) { const result = structuredClone(graph), root = result.nodes.find((node) => groups.visualOperationGroup(node) === kind), instance = root.data.blockInstanceV2; const definition = structuredClone(instance.definitionSnapshot); const replacements = new Map(); definition.boundary.inputs = definition.boundary.inputs.flatMap((port) => { - if (port.binding.fieldOrPortId !== 'pipeline_components' || !port.mirrorBindings?.length) return [port]; + if (!fields.includes(port.binding.fieldOrPortId) || !port.mirrorBindings?.length) return [port]; const ports = [port.binding, ...port.mirrorBindings].map((binding) => ({ ...port, binding, diff --git a/src/components/EncodingNodeMenu.tsx b/src/components/EncodingNodeMenu.tsx index 37c0fa6c..0a239ffe 100644 --- a/src/components/EncodingNodeMenu.tsx +++ b/src/components/EncodingNodeMenu.tsx @@ -149,7 +149,7 @@ export default function EncodingNodeMenu({ const signature = operationGraphSignature(graph); const { mergeVisualStageSharedInputs } = await import('../workflow/visualOperationGroups'); const next = mergeVisualStageSharedInputs(graph, node.id); - commitOperationGraph(next, context, signature, 'Merge shared model inputs'); + commitOperationGraph(next, context, signature, 'Merge shared inputs'); useStudioStore.getState().saveActiveWorkflowTab(true); } catch (error) { enqueueSnackbar(error instanceof Error ? error.message : 'Could not merge these shared inputs.', { diff --git a/src/components/RunSessionShelf.tsx b/src/components/RunSessionShelf.tsx index 66932ec9..78093142 100644 --- a/src/components/RunSessionShelf.tsx +++ b/src/components/RunSessionShelf.tsx @@ -169,7 +169,8 @@ export default function RunSessionShelf() { const hasActiveRun = sessionRuns.some((run) => run.status === 'running' || run.status === 'queued'); const hasActiveDownload = Object.values(hfDownloadProgress).some(isHfDownloadActive); const hasActiveActivity = hasActiveRun || hasActiveDownload; - const [expanded, setExpanded] = useState(true); + const [disclosure, setDisclosure] = useState(null); + const expanded = disclosure ?? hasActiveActivity; const contentId = useId(); const [highlightDownloads, setHighlightDownloads] = useState(false); const [dismissedActivity, setDismissedActivity] = useState(restoredDismissedActivity); @@ -177,13 +178,16 @@ export default function RunSessionShelf() { useEffect(() => { if (!hasActiveActivity) return undefined; + // Retain the visible result or failure of work seen in this page. An + // explicit collapse still takes precedence over active work. + setDisclosure((current) => current ?? true); const timer = window.setInterval(() => setNow(Date.now()), 1000); return () => window.clearInterval(timer); }, [hasActiveActivity]); useEffect(() => { const handleShowDownloads = () => { - setExpanded(true); + setDisclosure(true); setHighlightDownloads(true); window.setTimeout(() => setHighlightDownloads(false), 1800); }; @@ -252,7 +256,7 @@ export default function RunSessionShelf() { aria-label={expanded ? 'Hide session activity' : 'Show session activity'} aria-expanded={expanded} aria-controls={contentId} - onClick={() => setExpanded((current) => !current)} + onClick={() => setDisclosure(!expanded)} className="h-auto! min-w-0 flex-1 gap-2 px-1 py-1" > diff --git a/src/workflow/visualOperationGroups.ts b/src/workflow/visualOperationGroups.ts index 4aaf3105..d745a0d2 100644 --- a/src/workflow/visualOperationGroups.ts +++ b/src/workflow/visualOperationGroups.ts @@ -24,6 +24,7 @@ import { remapOperationAuthoring } from './operationSharedInputs'; import { workflowTaskCategory } from './workflowTaskBrowser'; import { connectionTypesAreCompatible } from '../theme/connectionTypeCompatibility'; import { hasInlineScalarControl } from '../studio/inlineScalarControl'; +import { nodeConnectorParam } from '../studio/nodeConnectorResolution'; import { groupStoryboardShots } from './storyboardShotPresentation'; import { @@ -536,12 +537,86 @@ function sharedModelInput(port: BlockPortV2) { ); } -function retainsGeneratedModelBindings( +function connectedStageInputKind(kind: VisualOperationGroup, { binding, valueType }: BlockPortV2) { + if (kind === 'inputs' && valueType === 'image' && ['image', 'last_image'].includes(binding.fieldOrPortId)) + return 'media'; + if (kind === 'generate' && valueType === 'diffusers_auto_model' && binding.fieldOrPortId === 'vae') + return 'component'; + return null; +} + +/** An opening and closing frame are separate inputs. The same typed frame may + * be consumed by distinct encoders. Legacy component recipes use the same + * contract but omit operation hints, so recognize their exact generic leaves. */ +function compatibleStageInputConsumers(kind: VisualOperationGroup, port: BlockPortV2, consumers: CustomNodeType[]) { + const semantics = connectedStageInputKind(kind, port); + if (!semantics || consumers.length !== 2) return false; + const field = port.binding.fieldOrPortId; + const fields = consumers.map((node) => node.data.params[field]); + if ( + fields.some( + (param) => + param?.type !== port.valueType || + (param.display !== 'input' && !param.isInput) || + (param.value ?? param.default) != null || + param.requiredWhen || + param.onSignal || + param.signal?.value !== undefined || + param.signalCompatibility || + param.connectionRole || + param.connectionRoleSelector, + ) || + fields[0]!.required !== fields[1]!.required || + fields[0]!.label !== fields[1]!.label || + canonicalBlockStringifyV2(fields[0]!.signal ?? null) !== canonicalBlockStringifyV2(fields[1]!.signal ?? null) + ) + return false; + const declared = consumers.map((node) => operationAuthoring(node)?.operation); + if (declared[0] && declared[1]) { + const [first, second] = [declared[0], declared[1]]; + if (first.pipelineClass !== second.pipelineClass || first.task !== second.task) return false; + const roles = new Set([first.nodeType, second.nodeType]); + if ( + semantics === 'media' && + !(roles.has('vae_encoder') && (roles.has('text_encoder') || roles.has('image_encoder'))) + ) + return false; + if (semantics === 'component' && !(roles.has('denoise') && (roles.has('decoder') || roles.has('decode')))) + return false; + const description = declared.map( + (operation) => + operation?.ports.find( + (socket) => + socket.direction === 'input' && + socket.name === field && + socket.semanticName === field && + socket.types.length === 1 && + socket.types[0] === port.valueType && + socket.semantics?.kind === semantics, + )?.semantics, + ); + return Boolean( + description[0] && + description[1] && + canonicalBlockStringifyV2(description[0]) === canonicalBlockStringifyV2(description[1]), + ); + } + if (consumers.some((node) => node.data.operationAuthoring)) return false; + const leaves = new Set(consumers.map(nodeKey)); + return semantics === 'media' + ? leaves.has('modules.ModularDiffusers.ImageEmbeddings') && leaves.has('modules.ModularDiffusers.ImageEncode') + : leaves.has('modules.ModularDiffusers.Denoise') && leaves.has('modules.ModularDiffusers.DecodeLatents'); +} + +function retainsGeneratedStageBindings( + kind: VisualOperationGroup, port: BlockPortV2, definition: BlockDefinitionV2, effectiveGraph: BlockDefinitionV2['graph'], ) { - if (!sharedModelInput(port) || !port.mirrorBindings?.length) return false; + if (!port.mirrorBindings?.length) return false; + const model = sharedModelInput(port); + if (!model && !connectedStageInputKind(kind, port)) return false; const fields = [port.binding, ...port.mirrorBindings]; if (fields.some((binding) => binding.fieldOrPortId !== port.binding.fieldOrPortId)) return false; const original = definition.boundary.inputs @@ -550,11 +625,11 @@ function retainsGeneratedModelBindings( const identity = (bindings: typeof fields) => bindings.map((binding) => canonicalBlockStringifyV2(binding)).sort(); const matches = (bindings: typeof fields) => canonicalBlockStringifyV2(identity(fields)) === canonicalBlockStringifyV2(identity(bindings)); - if (matches(original)) return true; + if (model && matches(original)) return true; // A task change can add native encoders while preserving the original saved - // definition. Admit only the complete typed model-input census of one declared - // task, never an arbitrary or partial custom mirror. - if (!definition.source.provider?.startsWith(PROVIDER)) return false; + // definition. Match all participating leaves before adapting the stage. + const provider = definition.source.provider; + if (!provider?.startsWith(PROVIDER) && !(provider === COMBINED_INPUT_PROVIDER && !model)) return false; const consumers = effectiveGraph.nodes.filter((node) => { const parameter = (node.data.params as CustomNodeType['data']['params'])?.[port.binding.fieldOrPortId]; return ( @@ -565,6 +640,16 @@ function retainsGeneratedModelBindings( ) ); }); + if (!model) { + return ( + matches(consumers.map((node) => ({ nodeId: node.nodeId, fieldOrPortId: port.binding.fieldOrPortId }))) && + compatibleStageInputConsumers( + kind, + port, + consumers.map((node) => ({ data: node.data }) as unknown as CustomNodeType), + ) + ); + } // Inspect the validated hint only; this does not construct or execute a node. const declared = consumers.map( (node) => operationAuthoring({ data: node.data } as unknown as CustomNodeType)?.operation, @@ -619,7 +704,7 @@ export function groupVisualStages( port.mirrorBindings?.length && !( ['inputs', 'generate'].includes(kind) && - retainsGeneratedModelBindings(port, old.definitionSnapshot, old.effectiveGraph) + retainsGeneratedStageBindings(kind, port, old.definitionSnapshot, old.effectiveGraph) ), ) || old.effectiveInterface.controls.some((control) => control.mirrorBindings?.length); if (customized) @@ -786,26 +871,46 @@ export function groupVisualStages( } } if (['inputs', 'generate'].includes(kind)) { - // A shared typed model value is one public input, regardless of the model - // adapter's node names. Independent or unconnected suppliers stay separate. + // Keep a single boundary for each proven common source. Independent + // inputs and local media fallbacks still need their own boundaries. const visited = new Set(); - for (const primary of [...inputs].filter(sharedModelInput)) { + for (const primary of [...inputs].filter((port) => sharedModelInput(port) || connectedStageInputKind(kind, port))) { const key = `${primary.binding.fieldOrPortId}:${primary.valueType}`; if (visited.has(key)) continue; visited.add(key); - const pipelines = inputs.filter( + const ports = inputs.filter( (port) => port.valueType === primary.valueType && port.binding.fieldOrPortId === primary.binding.fieldOrPortId, ); + const member = (port: BlockPortV2) => members.find((node) => remap(node.id) === port.binding.nodeId)!; + const model = sharedModelInput(primary); + if (!model) { + if (!compatibleStageInputConsumers(kind, primary, ports.map(member))) continue; + const saved = old?.effectiveInterface.boundary.inputs.filter((prior) => + ports.some( + (port) => + port.binding.nodeId === prior.binding.nodeId && + port.binding.fieldOrPortId === prior.binding.fieldOrPortId, + ), + ); + if ( + saved?.length === 2 && + (saved[0]!.label !== saved[1]!.label || + saved[0]!.required !== saved[1]!.required || + saved[0]!.multiple !== saved[1]!.multiple) + ) + continue; + } // Keep the callback-bearing consumer as the public projection. Imported // graphs can list a callback-free decoder before its sampler. Every real // binding still receives its own native field actions through V2. const callbacks = (port: BlockPortV2) => { - const member = members.find((member) => remap(member.id) === port.binding.nodeId)!; - const value = member.data.params[port.binding.fieldOrPortId]!.onSignal; + const value = member(port).data.params[port.binding.fieldOrPortId]!.onSignal; return Array.isArray(value) ? value.length : value ? 1 : 0; }; - pipelines.sort((left, right) => callbacks(right) - callbacks(left)); - const wires = pipelines.map((port) => + const disabled = (port: BlockPortV2) => + Number(Boolean(member(port).data.params[port.binding.fieldOrPortId]!.disabled)); + ports.sort((left, right) => callbacks(right) - callbacks(left) || (model ? 0 : disabled(left) - disabled(right))); + const wires = ports.map((port) => graph.edges.filter( (edge) => members.some((member) => member.id === edge.target && remap(member.id) === port.binding.nodeId) && @@ -816,11 +921,11 @@ export function groupVisualStages( // as an alternative to their connected component sockets. Share that // empty alternative only within one demonstrable model-owner branch. const emptyOptional = - pipelines.length > 1 && + model && + ports.length > 1 && wires.every((edges) => edges.length === 0) && - pipelines.every((port) => { - const member = members.find((member) => remap(member.id) === port.binding.nodeId)!; - const field = member.data.params[port.binding.fieldOrPortId]!; + ports.every((port) => { + const field = member(port).data.params[port.binding.fieldOrPortId]!; return !field.required && (field.value ?? field.default) == null; }) && (() => { @@ -830,23 +935,34 @@ export function groupVisualStages( flat.nodes.filter((owner) => { if (!operationOwnsModel(operationAuthoring(owner)?.operation)) return false; const scope = new Set(operationScope(flat, owner.id).map((node) => remap(node.id))); - return pipelines.every((port) => scope.has(port.binding.nodeId)); + return ports.every((port) => scope.has(port.binding.nodeId)); }).length === 1 ); } catch { return false; } })(); + const driver = wires[0]?.[0]; + const sameDriver = + driver && + wires.every( + (edges) => + edges.length === 1 && edges[0]!.source === driver.source && edges[0]!.sourceHandle === driver.sourceHandle, + ); + const source = + !model && sameDriver + ? nodeConnectorParam( + graph.nodes.find((node) => node.id === driver.source), + driver.sourceHandle, + ) + : undefined; if ( - pipelines.length > 1 && + ports.length > 1 && (emptyOptional || - (wires.every((edges) => edges.length === 1) && - wires.every( - (edges) => - edges[0]!.source === wires[0]![0]!.source && edges[0]!.sourceHandle === wires[0]![0]!.sourceHandle, - ))) + (sameDriver && + (model || (source?.display === 'output' && connectionTypesAreCompatible(source.type, primary.valueType))))) ) { - pipelines[0]!.mirrorBindings = pipelines + ports[0]!.mirrorBindings = ports .slice(1) .map((port) => port.binding) .sort((left, right) => { @@ -854,8 +970,8 @@ export function groupVisualStages( b = `${right.nodeId}\0${right.fieldOrPortId}`; return a < b ? -1 : a > b ? 1 : 0; }); - for (let index = 1; index < pipelines.length; index++) { - inputs.splice(inputs.indexOf(pipelines[index]!), 1); + for (let index = 1; index < ports.length; index++) { + inputs.splice(inputs.indexOf(ports[index]!), 1); if (wires[index]!.length) redundantEdges.add(wires[index]![0]!.id); } } @@ -1044,7 +1160,7 @@ export function mergeVisualStageSharedInputs(graph: OperationGraph, rootId: stri const root = graph.nodes.find((node) => node.id === rootId); const kind = root && visualOperationGroup(root); if (!root || !kind || !['inputs', 'generate'].includes(kind)) - throw new Error('Choose an Encode Inputs or Generate stage to merge its shared model inputs.'); + throw new Error('Choose an Encode Inputs or Generate stage to merge its shared inputs.'); const before = root.data.blockInstanceV2!.effectiveInterface.boundary.inputs.length; const unpacked = unpackVisualOperationGroups(graph, new Set([rootId])); const next = groupVisualStages(unpacked.graph, unpacked.members.get(rootId)!, kind, root); @@ -1052,7 +1168,7 @@ export function mergeVisualStageSharedInputs(graph: OperationGraph, rootId: stri .length; if (after >= before) throw new Error( - 'No shared model inputs can be merged. Use the same model output, or empty optional inputs belonging to one model branch.', + 'No matching shared inputs can be merged. Connect them to the same output, or use empty optional bundle inputs on one model branch.', ); return next; } diff --git a/tests/e2e/live-backend/live-backend.spec.ts b/tests/e2e/live-backend/live-backend.spec.ts index 1fe54bd5..f43a12e2 100644 --- a/tests/e2e/live-backend/live-backend.spec.ts +++ b/tests/e2e/live-backend/live-backend.spec.ts @@ -5696,6 +5696,8 @@ test('live Cluster customization recovers from save failure and remains one undo await expect.poll(() => page.evaluate(() => window.__MODIFF_E2E__!.getState().flow.nodes.length)).toBe(0); const sessionShelf = page.getByTestId('run-session-shelf'); if (await sessionShelf.isVisible().catch(() => false)) { + const showActivity = sessionShelf.getByRole('button', { name: 'Show session activity', exact: true }); + if (await showActivity.isVisible()) await showActivity.click(); const dismissButtons = sessionShelf.getByRole('button', { name: /^Dismiss /u }); while ((await dismissButtons.count()) > 0) await dismissButtons.first().click(); await expect(sessionShelf).toHaveCount(0); diff --git a/tests/e2e/live-backend/visual-stage-groups.spec.ts b/tests/e2e/live-backend/visual-stage-groups.spec.ts index 336c47fe..7b9ca453 100644 --- a/tests/e2e/live-backend/visual-stage-groups.spec.ts +++ b/tests/e2e/live-backend/visual-stage-groups.spec.ts @@ -518,6 +518,30 @@ for (const [file, model] of [ const loader = Object.values(api.nodes).find((node) => node.action === 'ModelsLoader')!; expect(loader.params).not.toHaveProperty('weight_format'); } + if (model === 'WanImage2VideoModularPipeline') { + const encode = page.getByTestId(/^encoding-node-/).getByRole('group', { name: 'Node connectors' }); + await expect(encode.getByText('Image *', { exact: true })).toBeVisible(); + await expect(encode.getByText('Last Image', { exact: true })).toBeVisible(); + const generate = page.getByTestId(/^generate-node-/).getByRole('group', { name: 'Node connectors' }); + await expect(generate.getByText('VAE *', { exact: true })).toBeVisible(); + const embedding = Object.values(api.nodes).find((node) => node.action === 'ImageEmbeddings')!; + const encoder = Object.values(api.nodes).find((node) => node.action === 'ImageEncode')!; + expect(embedding.params.image).toMatchObject({ + sourceId: encoder.params.image.sourceId, + sourceKey: encoder.params.image.sourceKey, + }); + expect(embedding.params.last_image).toMatchObject({ + sourceId: encoder.params.last_image.sourceId, + sourceKey: encoder.params.last_image.sourceKey, + }); + expect(embedding.params.image.sourceId).not.toBe(embedding.params.last_image.sourceId); + const denoise = Object.values(api.nodes).find((node) => node.action === 'Denoise')!; + const decode = Object.values(api.nodes).find((node) => node.action === 'DecodeLatents')!; + expect(denoise.params.vae).toMatchObject({ + sourceId: decode.params.vae.sourceId, + sourceKey: decode.params.vae.sourceKey, + }); + } if (model === 'MiniMaxMusic3ModularPipeline') { const generate = page.getByTestId(/^generate-node-/); await expect(generate).toHaveCount(1); diff --git a/tests/e2e/studio-mocked/studio-mocked.spec.ts b/tests/e2e/studio-mocked/studio-mocked.spec.ts index 245e8e5c..7475a7e4 100644 --- a/tests/e2e/studio-mocked/studio-mocked.spec.ts +++ b/tests/e2e/studio-mocked/studio-mocked.spec.ts @@ -278,6 +278,7 @@ for (const [viewport, deviceScaleFactor] of [ const shelf = page.getByTestId('run-session-shelf'); const list = page.getByTestId('run-session-scrollport'); await expect(list.locator('[data-testid^="session-run-viewport-history-"]')).toHaveCount(7); + await shelf.getByRole('button', { name: 'Show session activity', exact: true }).click(); // Arrange fits on deferred animation frames. Measuring before that fit // pans from stale coordinates, especially on an unscaled 4K viewport. await expect @@ -564,6 +565,87 @@ test('sampler activity clears telemetry through websocket phases and keeps termi ).toEqual({ current: null, phase: 'completed', progress: 100, status: 'completed', component: null, step: null }); }); +test('restored finished session activity keeps canvas fields and ports reachable', async ({ page }, testInfo) => { + await page.setViewportSize({ width: 1600, height: 1000 }); + await ensureFrontend(); + const { workflows } = await installMockRoutes(page); + const workflowId = 'restored-activity-workflow'; + const title = 'Restored activity workflow'; + const snapshot = restorationSnapshot('Saved canvas field', '/preview-fixture/unused.png', 60); + snapshot.nodes = snapshot.nodes.slice(0, 1); + snapshot.nodes[0]!.position.y = 580; + const now = Date.now(); + workflows.set(workflowId, { + id: workflowId, + title, + intent: 'saved', + source: 'manual', + revision: 1, + createdAt: now, + updatedAt: now, + snapshot, + }); + const history = Array.from({ length: 4 }, (_, index) => ({ + task_id: `restored-activity-${index}`, + name: `Finished fixture ${index + 1}`, + status: 'completed', + completed_at: now / 1000 - index, + })); + let restoreHistory = false; + await page.route('**/queue', (route) => + route.fulfill({ json: { current: null, queued: {}, recent: restoreHistory ? history : [] } }), + ); + let submissions = 0; + page.on('request', (request) => { + if (request.method() === 'POST' && new URL(request.url()).pathname === '/graph') submissions++; + }); + + await page.goto(FRONTEND_URL, { waitUntil: 'domcontentloaded' }); + await dismissTaskLauncher(page); + await page.getByTestId('left-tab-workflows').click(); + await page.getByRole('button', { name: 'My workflows', exact: true }).click(); + await page.getByRole('button', { name: title, exact: true }).click(); + const node = page.locator('.react-flow__node[data-id="restoration-text"]'); + const field = node.getByRole('textbox', { name: 'Text', exact: true }); + const port = page.getByTestId('node-handle-restoration-text-output'); + const readGraph = () => page.evaluate(() => window.__MODIFF_E2E__!.exportWorkflowGraph()); + await expect(field).toHaveValue('Saved canvas field'); + const viewport = (await readGraph()).viewport; + restoreHistory = true; + await page.reload({ waitUntil: 'domcontentloaded' }); + await expect(field).toHaveValue('Saved canvas field'); + + const shelf = page.getByTestId('run-session-shelf'); + const list = page.getByTestId('run-session-scrollport'); + const toggle = shelf.getByRole('button', { name: /^(Hide|Show) session activity$/u }); + await expect(toggle).toContainText('4 finished'); + await page.screenshot({ path: testInfo.outputPath('restored-activity-initial.png') }); + await expect(toggle).toHaveAttribute('aria-expanded', 'false'); + await expect(list).toBeHidden(); + const restored = await readGraph(); + expect(restored.viewport).toEqual(viewport); + const hit = (target: Locator) => + target.evaluate((element) => { + const bounds = element.getBoundingClientRect(); + return document.elementFromPoint(bounds.x + bounds.width / 2, bounds.y + bounds.height / 2) === element; + }); + await expect.poll(() => hit(field)).toBe(true); + await expect.poll(() => hit(port)).toBe(true); + + await toggle.click(); + await expect(list).toBeVisible(); + await expect(list.locator('[data-testid^="session-run-restored-activity-"]')).toHaveCount(4); + await expect.poll(() => hit(field)).toBe(false); + await expect.poll(() => hit(port)).toBe(false); + await page.screenshot({ path: testInfo.outputPath('restored-activity-explicitly-opened.png') }); + await toggle.click(); + await expect(list).toBeHidden(); + await expect.poll(() => hit(field)).toBe(true); + await expect.poll(() => hit(port)).toBe(true); + expect(await readGraph()).toEqual(restored); + expect(submissions).toBe(0); +}); + test('collapsed canvas activity retains active work, failures and explicit download navigation', async ({ page }) => { await page.setViewportSize({ width: 1280, height: 720 }); await ensureFrontend(); @@ -593,6 +675,30 @@ test('collapsed canvas activity retains active work, failures and explicit downl }); const shelf = page.getByTestId('run-session-shelf'); const list = page.getByTestId('run-session-scrollport'); + await expect(list).toBeHidden(); + await page.evaluate(() => { + window.__MODIFF_E2E__!.sendWebsocketMessage({ + type: 'task_started', + current: { task_id: 'activity-before-failure', name: 'Work before failure', progress: 25, status: 'running' }, + queued: {}, + }); + }); + await expect(page.getByTestId('session-run-activity-before-failure')).toBeVisible(); + await page.evaluate(() => { + window.__MODIFF_E2E__!.sendWebsocketMessage({ + type: 'task_failed', + task_id: 'activity-before-failure', + name: 'Work before failure', + error: 'Visible failure after active work', + current: null, + queued: {}, + }); + }); + await expect(shelf).toContainText('3 finished'); + await expect(page.getByTestId('session-run-activity-before-failure')).toBeVisible(); + await expect(page.getByTestId('session-run-activity-before-failure')).toContainText( + 'Visible failure after active work', + ); await shelf.getByRole('button', { name: 'Hide session activity', exact: true }).click(); await page.evaluate(() => { window.__MODIFF_E2E__!.sendWebsocketMessage({ @@ -24604,6 +24710,7 @@ test('startup discovery blocks transient readiness and the compact activity shel await expect(startupGate).toHaveCount(0, { timeout: 10_000 }); await page.waitForFunction(() => Boolean(window.__MODIFF_E2E__), null, { timeout: 30_000 }); + await dismissTaskLauncher(page); await page.evaluate(() => { window.__MODIFF_E2E__!.setWebsocketConnection({ sid: 'mock-sid', isConnected: true }); for (let index = 0; index < 7; index += 1) { @@ -24621,6 +24728,10 @@ test('startup discovery blocks transient readiness and the compact activity shel const scrollport = page.getByTestId('run-session-scrollport'); await expect(scrollport.locator('[data-testid^="session-run-shelf-history-"]')).toHaveCount(7); + await page + .getByTestId('run-session-shelf') + .getByRole('button', { name: 'Show session activity', exact: true }) + .click(); const activityHeight = await scrollport.evaluate((element) => ({ clientHeight: element.clientHeight, overflowY: getComputedStyle(element).overflowY, @@ -24724,6 +24835,10 @@ test('session activity and generation notifications open the originating workflo .not.toBe(workflowId); await expect(page.getByTestId('task-launcher')).toBeVisible(); await dismissTaskLauncher(page); + await page + .getByTestId('run-session-shelf') + .getByRole('button', { name: 'Show session activity', exact: true }) + .click(); await page.getByTestId('session-run-notification-success-task').click(); await expect .poll(() => page.evaluate(() => window.__MODIFF_E2E__!.getState().studio.activeWorkflowTabId)) @@ -25086,6 +25201,10 @@ for (const outcome of ['queued', 'stale', 'unavailable'] as const) { await page.goto(FRONTEND_URL, { waitUntil: 'domcontentloaded' }); await dismissTaskLauncher(page); await expect.poll(() => connectedSid).toBeTruthy(); + await page + .getByTestId('run-session-shelf') + .getByRole('button', { name: 'Show session activity', exact: true }) + .click(); await page.getByTestId(`session-run-${source.task_id}`).click(); const failureDialog = page.getByTestId('run-failure-dialog'); await expect(failureDialog).toContainText(source.error); From fdcd31656fb274292c28a7bcfca7f7ccb4d5eee0 Mon Sep 17 00:00:00 2001 From: Sourav Das Date: Fri, 20 Nov 2026 14:32:20 +0530 Subject: [PATCH 264/440] Finish shared node interface and authoring audit --- docs/developer-first-node-ux.md | 18 +- docs/workflow-authoring-ux.md | 27 +- scripts/audio-authoring.test.mjs | 32 ++ scripts/bundle-budget.mjs | 7 + scripts/node-presentation.test.mjs | 57 +++ src/components/ModelSetupAdapterControls.tsx | 2 + src/components/NodeContent.tsx | 25 +- src/components/NodeInspectionDetails.tsx | 16 +- src/components/NodeList.tsx | 1 + src/components/SelectionToolbar.tsx | 47 +- src/fields/HandleField.tsx | 5 +- src/studio/nodeCatalog.ts | 18 +- src/workflow/modelSetupAdapters.ts | 27 +- src/workflow/nodePresentation.ts | 32 ++ src/workflow/signalControlPresentation.ts | 52 ++ .../live-backend/conditional-wiring.spec.ts | 458 ++++++++++++++++++ .../ordinary-node-controls.spec.ts | 159 ++++++ .../live-backend/ordinary-node-labels.spec.ts | 114 +++++ .../selection-toolbar-placement.spec.ts | 83 ++++ .../live-backend/visual-stage-groups.spec.ts | 6 + 20 files changed, 1154 insertions(+), 32 deletions(-) create mode 100644 src/workflow/signalControlPresentation.ts create mode 100644 tests/e2e/live-backend/conditional-wiring.spec.ts create mode 100644 tests/e2e/live-backend/ordinary-node-controls.spec.ts create mode 100644 tests/e2e/live-backend/ordinary-node-labels.spec.ts create mode 100644 tests/e2e/live-backend/selection-toolbar-placement.spec.ts diff --git a/docs/developer-first-node-ux.md b/docs/developer-first-node-ux.md index 2322de59..cb935d76 100644 --- a/docs/developer-first-node-ux.md +++ b/docs/developer-first-node-ux.md @@ -185,9 +185,10 @@ The attachment stays in the same graph and is one Undo/Redo transaction; unsupported task changes still require review. Existing saved graphs are not rewritten on open, and missing source files continue to block Run. -Model Setup reports when its inline LoRA editor does not support the selected -pipeline type. This is separate from a graph with shared or missing consumers; -viewing the limitation does not alter the graph or grant adapter support. +Model Setup shows inline adapter controls where they apply. A native workflow +with declared non-image outputs omits the empty image LoRA panel. Existing +adapter rows and external connections remain inspectable, and supported audio +routes retain their declared adapter controls. Recorded ordinary video stage inputs keep condition strength and denoise strength separate. A source-video pixel digest identifies the ordered frozen @@ -198,12 +199,11 @@ history reload without borrowing values from the current form. ## Audio stages The same stage actions offer **Group model setup** for eligible direct audio -loaders and their exclusive configuration/adapter nodes. Native MiniMax retains -Semantic Generation and Denoise; **Group audio output** combines its real decoder -and Export Audio node. The group uses the existing player, file export and -inspection/interface controls. Direct whole-pipeline Generate operations retain -their separate exporter. Source audio and meaningful processing nodes remain -connected outside those groups. +loaders and their exclusive configuration/adapter nodes. Native MiniMax keeps +**Generate Semantics** for its song structure and uses one **Generate** card for +denoising and decoding. **Audio Output** holds the file export and player. Direct +whole-pipeline Generate operations also retain their separate exporter. Source +audio and other processing nodes remain connected outside those stages. Selected ACE branches can expose one owned adapter row when the backend declares the exact task, model revision and registered transport. Capacity restricts Add; diff --git a/docs/workflow-authoring-ux.md b/docs/workflow-authoring-ux.md index 72b2dbdb..464e2d7c 100644 --- a/docs/workflow-authoring-ux.md +++ b/docs/workflow-authoring-ux.md @@ -64,6 +64,12 @@ be shared safely. Opening a saved workflow alone does not rewrite its interface. Model and task changes retain a repaired shared connection when the new route can retain the supplier and its compatible consumers. +The node palette lists **Encode Image** under Models & Components → Condition. +Find the shared **Upscale Image or Video** node under Image & Video → Upscale, +or search by either media type. The Normalize Video, Scheduler, audio mux and +audio generation cards distinguish their controls from the results available +on their sockets. + Curated fresh image recipes can request an exact backend `authoringRecipeId` on the ordinary operation-starter endpoint. Its optional hash-covered `authoring` record uses the existing role, edge and semantic form-binding tuples, plus @@ -224,7 +230,11 @@ chosen settings without claiming Auto qualification. ## Change the model -### Image Model Setup adapters +### Model Setup adapters + +An empty Modular setup with a connected, declared non-image output hides the +image adapter section. Existing adapter rows and connected suppliers remain +visible. Direct audio workflows use their own declared adapter policy. **Add LoRA** requires the selected image model's current backend capability, execution profile, exact repository/revision pair and registered adapter sockets @@ -448,3 +458,18 @@ documents omitted from the browser cache remain in My workflows; clean acknowledged drafts remain in Recovery drafts. If the active workflow or unsaved edits alone exceed browser capacity, the existing Save or export warning remains in effect. + +## Guidance model connections + +The standalone Guider exposes its choice of guidance algorithm and its +model-specific controls after a connected Denoise stage supplies a model +identity accepted by the Guider. General guidance controls remain editable +while the model connection is absent. The canvas and Parameters view show +where to reconnect. The Interface view records the Layers socket and its +dependency on a model connection. + +Removing the model connection keeps authored guidance values and any existing +Layers wire. A connected Layers socket stays visible. Undoing the removal or +reconnecting the same supported model restores the authored settings. The +editor applies the same presentation rules to older saved workflows and +uses the current registry to check which model identities the Guider accepts. diff --git a/scripts/audio-authoring.test.mjs b/scripts/audio-authoring.test.mjs index fa600c69..a4cbb695 100644 --- a/scripts/audio-authoring.test.mjs +++ b/scripts/audio-authoring.test.mjs @@ -300,12 +300,44 @@ test('actual published audio policy parses without changing its false broad flag ); }); +test('the native audio setup hides only its empty image adapter section', async () => { + const row = fixture.recipes.find((item) => item.id === 'minimax:text_to_audio'); + const { graph, root, chain } = setup(row); + const original = structuredClone(graph); + assert.equal(chain.native, true); + assert.equal(adapters.showModelSetupAdapterControls(chain), false); + assert.match(adapters.modelSetupAdapterAddUnavailable(chain, authority), /no reviewed inline LoRA editing/); + assert.deepEqual(graph, original); + + const { createNodeFromRegistry } = await server.ssrLoadModule('/src/workflow/nodeFactory.ts'); + const adapter = createNodeFromRegistry('modules.ModularDiffusers.Lora', fixture.registry, { x: 200, y: 0 }); + const input = root.data.blockInstanceV2.effectiveInterface.boundary.inputs.find( + (port) => port.binding.fieldOrPortId === 'lora_list', + ); + assert.ok(adapter && input); + const connected = { + ...graph, + nodes: [...graph.nodes, adapter], + edges: [ + ...graph.edges, + { id: 'external-adapter', source: adapter.id, sourceHandle: 'lora', target: root.id, targetHandle: input.portId }, + ], + }; + const saved = structuredClone(connected); + const preserved = adapters.modelSetupAdapterChain(connected, root.id); + assert.deepEqual(preserved.prefix, { source: adapter.id, sourceHandle: 'lora' }); + assert.equal(adapters.showModelSetupAdapterControls(preserved), true); + assert.match(adapters.modelSetupAdapterEditUnavailable(preserved, authority), /no reviewed inline LoRA editing/); + assert.deepEqual(connected, saved); +}); + test('actual selected audio tasks and both own repositories authorize one populated row and safe recovery', async (t) => { for (const row of fixture.recipes.filter( (item) => item.starter.pipelineClass === 'AceStepPipeline' && item.id !== 'ace:ACE-Step-Base:audio_variation', )) await t.test(row.id, () => { const { graph, root, chain } = setup(row); + assert.equal(adapters.showModelSetupAdapterControls(chain), true); assert.equal(adapters.modelSetupAdapterAddUnavailable(chain, authority), null); const next = adapters.planModelSetupAdapterEdit( graph, diff --git a/scripts/bundle-budget.mjs b/scripts/bundle-budget.mjs index 3049868c..ce2b9ee2 100644 --- a/scripts/bundle-budget.mjs +++ b/scripts/bundle-budget.mjs @@ -490,6 +490,8 @@ const SOURCE_LICENSES = new URL('../public/THIRD_PARTY_LICENSES.txt', import.met // 504492/682980/346033 largest/startup/deferred gzip bytes: the reviewed // migration ceilings below still pass with 8/12/304 bytes of headroom. const MAX_STARTUP_CHUNK_GZIP_BYTES = + // Node captions and context-aware controls add 926 gzip bytes (517347 -> 518273). + 926 + // The shared stage connector labels add 428 gzip bytes (516919 -> 517347). // Retain the 17-byte headroom and the same four startup chunks. 428 + @@ -736,6 +738,8 @@ const MAX_STARTUP_CHUNK_GZIP_BYTES = // The same build measures 673359 aggregate startup bytes (+45 over the cap). // Keep 19 bytes of headroom; deferred limits and loading boundaries stay fixed. const MAX_STARTUP_GZIP_BYTES = + // The same node presentation pass adds 923 gzip bytes (695833 -> 696756). + 923 + // Measured node interface presentation delta (695402 -> 695834). 432 + // The same Gallery build adds 479 startup gzip bytes (694940 -> 695419). @@ -1044,6 +1048,9 @@ const MAX_DEFERRED_CHUNK_GZIP_BYTES = 64 * 1024; // Startup code differs only in the three verified Dataset descriptor values. // Retain both startup caps, the independent 64 KiB chunk cap and prior headroom. const MAX_DEFERRED_GZIP_BYTES = + // Catalog, adapter, guidance and selection controls add 234 gzip bytes (353986 -> 354220). + // The four startup and 93 deferred chunks retain their exact membership. + 234 + // Shared media sockets and restored activity disclosure add 604 gzip bytes // (353382 -> 353986), with the same chunk membership and startup limits. 604 + diff --git a/scripts/node-presentation.test.mjs b/scripts/node-presentation.test.mjs index 9c9e3869..925d721f 100644 --- a/scripts/node-presentation.test.mjs +++ b/scripts/node-presentation.test.mjs @@ -5,6 +5,7 @@ import { createServer } from 'vite'; let server; let catalog; let browser; +let presentation; const cases = [ ['ModularDiffusers', 'ModelsLoader', 'Load Models', 'Load Modular Components'], ['ModularDiffusers', 'AutoModelLoader', 'Load Model', 'Load Model Component'], @@ -45,6 +46,7 @@ before(async () => { }); catalog = await server.ssrLoadModule('/src/studio/nodeCatalog.ts'); browser = await server.ssrLoadModule('/src/workflow/workflowTaskBrowser.ts'); + presentation = await server.ssrLoadModule('/src/workflow/nodePresentation.ts'); }); after(async () => server?.close()); @@ -76,6 +78,61 @@ test('user titles remain intact and a registry alias uses the executable identit assert.equal(catalog.getNodeCatalogEntry({ ...data, label: 'My border preparation' }).label, 'My border preparation'); }); +test('ordinary controls and sockets distinguish requested settings from supplied or measured results', () => { + const fields = [ + ['VideoConditioning.Normalize', 'video', 'Video', 'Source frames'], + ['VideoConditioning.Normalize', 'num_frames', 'Frames', 'Target frames'], + ['VideoConditioning.Normalize', 'output', 'Video', 'Normalized video'], + ['VideoConditioning.Normalize', 'frames_out', 'Frames', 'Actual frame count'], + ['ModularDiffusers.Scheduler', 'scheduler_in', 'Scheduler', 'Base scheduler'], + ['ModularDiffusers.Scheduler', 'scheduler', 'Scheduler', 'Scheduler type'], + ['ModularDiffusers.Scheduler', 'scheduler_out', 'Scheduler', 'Configured scheduler'], + ['Video.MuxAudioAsset', 'fit', 'Duration', 'Audio fit'], + ['Video.MuxAudioAsset', 'duration_seconds', 'Duration', 'Measured duration (s)'], + ['DiffusersAudio.Generate', 'sample_rate', 'Sample Rate', 'Requested sample rate'], + ['DiffusersAudio.Generate', 'sample_rate_out', 'Sample Rate', 'Actual sample rate'], + ['Audio.FitDuration', 'target_sample_rate', 'Target SR', 'Target sample rate'], + ]; + for (const [action, field, label, expected] of fields) { + const key = `modules.${action}`; + assert.equal(presentation.nodeFieldDisplayLabel(key, field, label), expected); + assert.equal(presentation.nodeFieldDisplayLabel(key, field, 'My title'), 'My title'); + assert.equal(presentation.nodeFieldDisplayLabel(`custom.${action}`, field, label), label); + } +}); + +test('discoverability reflects the encoder role and both declared upscale media types', () => { + const encoder = { ...node('ModularDiffusers', 'ImageEncode', 'Encode Image'), category: 'sampler' }; + const upscaler = { + ...node('Spandrel', 'Upscaler', 'Upscale with model'), + category: 'upscaler', + params: { + image: { display: 'input', type: ['image', 'video'] }, + output: { display: 'output', type: ['image', 'video'] }, + }, + }; + const before = JSON.stringify({ encoder, upscaler }); + const encode = catalog.getNodeCatalogEntry(encoder); + assert.deepEqual(encode.groupPath, ['Models & Components', 'Condition']); + assert.equal(encode.dragKey, 'modules.ModularDiffusers.ImageEncode'); + assert.ok(catalog.nodeCatalogEntryMatchesSearch(encode, 'encode image')); + + const upscale = catalog.getNodeCatalogEntry(upscaler); + assert.deepEqual(upscale.groupPath, ['Image & Video', 'Upscale']); + assert.equal(upscale.dragKey, 'modules.Spandrel.Upscaler'); + assert.equal(upscale.label, 'Upscale Image or Video'); + assert.ok(catalog.nodeCatalogEntryMatchesView(upscale, 'common')); + for (const search of ['image upscale', 'video upscale', 'Upscale with model']) { + assert.ok(catalog.nodeCatalogEntryMatchesSearch(upscale, search), search); + } + const imageOnly = { + ...upscaler, + params: { ...upscaler.params, image: { display: 'input', type: 'image' } }, + }; + assert.notEqual(catalog.getNodeCatalogEntry(imageOnly).groupPath[0], 'Image & Video'); + assert.equal(JSON.stringify({ encoder, upscaler }), before); +}); + test('task browser groups modalities, deduplicates models and prefers available composable execution', () => { const choice = (id, task, overrides = {}) => ({ id, diff --git a/src/components/ModelSetupAdapterControls.tsx b/src/components/ModelSetupAdapterControls.tsx index 1eb25246..c20c3cad 100644 --- a/src/components/ModelSetupAdapterControls.tsx +++ b/src/components/ModelSetupAdapterControls.tsx @@ -18,6 +18,7 @@ import { modelSetupAdapterEditUnavailable, modelSetupAdapterFields, planModelSetupAdapterEdit, + showModelSetupAdapterControls, } from '../workflow/modelSetupAdapters'; import NodeContent from './NodeContent'; @@ -58,6 +59,7 @@ export default function ModelSetupAdapterControls({ let editUnavailable: string | null = null; try { chain = modelSetupAdapterChain(graph, node.id); + if (!showModelSetupAdapterControls(chain)) return null; addUnavailable = modelSetupAdapterAddUnavailable(chain, authority); editUnavailable = modelSetupAdapterEditUnavailable(chain, authority); } catch (failure) { diff --git a/src/components/NodeContent.tsx b/src/components/NodeContent.tsx index f137e28a..b65cf6f6 100644 --- a/src/components/NodeContent.tsx +++ b/src/components/NodeContent.tsx @@ -31,7 +31,9 @@ import { blockControlConnectionNotesV2 } from '../studio/blockControlConnections import { FieldFrame } from '../ui/FieldFrame'; import { PreviewEmptyState } from '../ui/PreviewFrame'; import { operationOwnsModel } from '../workflow/operationContracts'; +import { nodeFieldDisplayLabel } from '../workflow/nodePresentation'; import { fileBackedMediaPreviewUrl } from '../studio/outputUtils'; +import { unresolvedSignalControls } from '../workflow/signalControlPresentation'; import HandleField from '../fields/HandleField'; import InputField from '../fields/InputField'; @@ -214,8 +216,13 @@ const NodeContent = memo(function NodeContent({ // Workflow Auto plans resources without hiding manually authored controls. const autoModeActive = studioResourceMode === 'auto' && controlledStudioNode; const autoFormPatch = formPatchForAutoCandidate(selectedCandidate, studioForm); + const identity = `${module}.${action}`; + const signalControls = useFlowStore( + useShallow((state) => unresolvedSignalControls(nodeId, nodesRegistry[identity]?.params, state)), + ); const fields = Object.entries(params).flatMap(([key, data]: [string, NodeParams]) => { - const label = data.label ?? key.charAt(0).toUpperCase() + key.slice(1); + const declaredLabel = data.label ?? key.charAt(0).toUpperCase() + key.slice(1); + const label = nodeFieldDisplayLabel(identity, key, declaredLabel); const display = data.isInput ? 'input' : data.display || ''; const dataType = ( Array.isArray(data.type) && data.type.length > 0 ? data.type[0] : data.type || 'string' @@ -226,7 +233,7 @@ const NodeContent = memo(function NodeContent({ key, display, blockRuntimeOptionPresentation(data.options || [], key, data, graphNode, blockOwner, nodesRegistry) ?? - registeredRuntimeOptionPresentation(data.options || [], key, nodesRegistry[`${module}.${action}`]?.params), + registeredRuntimeOptionPresentation(data.options || [], key, nodesRegistry[identity]?.params), ); const fieldType = getFieldType(display, dataType, options); // A managed model choice already resolves the repository, implementation @@ -236,7 +243,7 @@ const NodeContent = memo(function NodeContent({ // low-level/custom contract authoring. const derivedPipelineType = key === 'model_type' && operationOwnsModel(graphNode?.data.operationAuthoring?.operation); - const hidden = Boolean(data.hidden || derivedPipelineType); + const hidden = Boolean(data.hidden || derivedPipelineType || signalControls.has(key)); const configuredValue = data.value ?? data.default; const selectedFile = params.file?.value ?? params.file?.default; let fileBackedLoaderPreview: string | string[] | undefined; @@ -293,6 +300,7 @@ const NodeContent = memo(function NodeContent({ step: data.step, fieldOptions: { ...data.fieldOptions, + ...(label !== declaredLabel ? { wrapConnectionLabel: true } : {}), ...(connectionNotes[key] ? { connectedControlNote: connectionNotes[key] } : {}), }, artifacts: data.artifacts, @@ -381,6 +389,12 @@ const NodeContent = memo(function NodeContent({ } const renderFields = mode === 'controls' ? controls : [...controls, ...connectors]; + const signalNotes = new Set( + renderFields.flatMap(({ props }) => { + const note = signalControls.get(props.fieldKey); + return note ? [note] : []; + }), + ); // Keep field ownership stable across presentations. Moving a control between // parents remounts its initialization hook and can repeat backend actions. const mainFields = renderFields.filter(({ surface }) => surface === 'main'); @@ -411,6 +425,11 @@ const NodeContent = memo(function NodeContent({ ) : null} {encodeImageSummary} {resolutionNotice} + {[...signalNotes].map((note) => ( +

+ {note} +

+ ))} {orderedMainFields} {orderedInternalFields.length > 0 && (
{orderedInternalFields}
diff --git a/src/components/NodeInspectionDetails.tsx b/src/components/NodeInspectionDetails.tsx index 54ac4267..ae0c6f97 100644 --- a/src/components/NodeInspectionDetails.tsx +++ b/src/components/NodeInspectionDetails.tsx @@ -1,4 +1,5 @@ import { useFlowStore, type CustomNodeType } from '../stores/useFlowStore'; +import { useShallow } from 'zustand/react/shallow'; import { useNodesStore, type NodeParams } from '../stores/useNodeStore'; import { blockConnectorParamsV2 } from '../studio/blockRuntimeV2'; import { formatStudioFieldValue } from '../studio/presetDiff'; @@ -8,6 +9,8 @@ import type { NodeInspectorSection } from './NodeInspectorSections'; import { isFocusedStageNode } from '../workflow/encodingNodePresentation'; import { nodeConnectorParams } from '../studio/nodeConnectorResolution'; import { isOptionalEncodingHandle } from '../workflow/encodingOptionalInput'; +import { nodeFieldDisplayLabel } from '../workflow/nodePresentation'; +import { unresolvedSignalControls } from '../workflow/signalControlPresentation'; /** Read only. Selecting a section cannot resolve schemas, import code or allocate models. */ export default function NodeInspectionDetails({ @@ -24,6 +27,12 @@ export default function NodeInspectionDetails({ const instance = node.data.blockInstanceV2; const source = instance?.definitionSnapshot.source; const identity = `${node.data.module}.${node.data.action}`; + const registered = useNodesStore((state) => state.nodesRegistry[identity]?.params); + const signalControls = useFlowStore( + useShallow((state) => + section === 'interface' ? unresolvedSignalControls(node.id, registered, state) : new Map(), + ), + ); const modular = node.data.modularDiffusersCatalogNode ?? owner?.data.blockInstanceV2?.effectiveGraph.nodes.find((item) => item.nodeId === node.data.blockProjectionNodeId) @@ -62,6 +71,7 @@ export default function NodeInspectionDetails({

{direction === 'inputs' ? 'Inputs' : 'Outputs'}

{Object.entries(ports[direction]).map(([name, param]: [string, NodeParams]) => { + const signalNote = signalControls.get(name); const connections = edges.filter((edge) => direction === 'inputs' ? edge.target === node.id && edge.targetHandle === name @@ -70,10 +80,12 @@ export default function NodeInspectionDetails({ return (

- {param.label || name} · {Array.isArray(param.type) ? param.type.join(' | ') : param.type || 'Any'} + {nodeFieldDisplayLabel(identity, name, param.label || name)} ·{' '} + {Array.isArray(param.type) ? param.type.join(' | ') : param.type || 'Any'} {param.required ? ' · Required' : ''}

Socket: {name}

+ {signalNote ?

{signalNote}

: null} {isOptionalEncodingHandle(name) ? (

Optional adaptation socket — connecting prepares the supported stage; unused sockets do not @@ -117,7 +129,7 @@ export default function NodeInspectionDetails({ .filter(([, param]) => param.description && !param.hidden) .map(([name, param]) => (

-

{param.label || name}

+

{nodeFieldDisplayLabel(identity, name, param.label || name)}

{param.description}

))} diff --git a/src/components/NodeList.tsx b/src/components/NodeList.tsx index 11b11663..00851bab 100644 --- a/src/components/NodeList.tsx +++ b/src/components/NodeList.tsx @@ -509,6 +509,7 @@ function getIcon(category: string) { case 'embedding': return ; case 'upscaler': + case 'image & video': return ; case 'image_filter': return ; diff --git a/src/components/SelectionToolbar.tsx b/src/components/SelectionToolbar.tsx index b084e5dd..7037902a 100644 --- a/src/components/SelectionToolbar.tsx +++ b/src/components/SelectionToolbar.tsx @@ -115,7 +115,8 @@ export function SelectionToolbar({ const [positioned, setPositioned] = useState(false); const [layoutRevision, setLayoutRevision] = useState(0); const viewport = useViewport(); - const { flowToScreenPosition, getNodesBounds } = useReactFlow(); + const { flowToScreenPosition, getIntersectingNodes, getNodesBounds, screenToFlowPosition } = + useReactFlow(); const [saveNodeId, setSaveNodeId] = useState(null); const [inspectNodeId, setInspectNodeId] = useState(null); const sid = useWebsocketStore((state) => state.sid); @@ -273,12 +274,11 @@ export function SelectionToolbar({ const minTop = (canvasBounds?.top ?? 0) + TOOLBAR_MARGIN; const maxLeft = Math.max(minLeft, (canvasBounds?.right ?? window.innerWidth) - toolbarWidth - TOOLBAR_MARGIN); const maxTop = Math.max(minTop, (canvasBounds?.bottom ?? window.innerHeight) - toolbarHeight - TOOLBAR_MARGIN); + const aboveSelection = topAnchor.y - toolbarHeight - TOOLBAR_SELECTION_GAP; + const belowSelection = bottomAnchor.y + TOOLBAR_SELECTION_GAP; + const preferAbove = aboveSelection >= minTop; let left = topAnchor.x - toolbarWidth / 2; - let top = topAnchor.y - toolbarHeight - TOOLBAR_SELECTION_GAP; - - if (top < minTop) { - top = bottomAnchor.y + TOOLBAR_SELECTION_GAP; - } + let top = preferAbove ? aboveSelection : belowSelection; left = Math.max(minLeft, Math.min(left, maxLeft)); top = Math.max(minTop, Math.min(top, maxTop)); @@ -287,15 +287,15 @@ export function SelectionToolbar({ .closest('[data-canvas-workspace]') ?.querySelector(ACTIVITY_OVERLAY_SELECTOR) ?.getBoundingClientRect(); - if ( + const overlapsActivity = (x: number, y: number) => activity && activity.width > 0 && activity.height > 0 && - left < activity.right + TOOLBAR_MARGIN && - left + toolbarWidth > activity.left - TOOLBAR_MARGIN && - top < activity.bottom + TOOLBAR_MARGIN && - top + toolbarHeight > activity.top - TOOLBAR_MARGIN - ) { + x < activity.right + TOOLBAR_MARGIN && + x + toolbarWidth > activity.left - TOOLBAR_MARGIN && + y < activity.bottom + TOOLBAR_MARGIN && + y + toolbarHeight > activity.top - TOOLBAR_MARGIN; + if (activity && overlapsActivity(left, top)) { // Clamping an off-screen selection to the canvas edge must not cover // activity controls, or leave node actions underneath the opened list. const above = activity.top - toolbarHeight - TOOLBAR_MARGIN; @@ -304,13 +304,36 @@ export function SelectionToolbar({ else if (right <= maxLeft) left = Math.max(left, right); } + const alternativeTop = preferAbove ? belowSelection : aboveSelection; + if (alternativeTop >= minTop && alternativeTop <= maxTop && !overlapsActivity(left, alternativeTop)) { + const overlapsCard = (y: number) => { + const start = screenToFlowPosition({ x: left, y }, { snapToGrid: false }); + const end = screenToFlowPosition({ x: left + toolbarWidth, y: y + toolbarHeight }, { snapToGrid: false }); + return getIntersectingNodes({ ...start, width: end.x - start.x, height: end.y - start.y }).some( + (node) => + !node.hidden && + node.measured?.width && + node.measured?.height && + node.data.type !== 'group' && + node.data.type !== 'loop' && + !node.data.blockInstanceV2?.presentation.expanded && + !node.data.blockProjectionContainerExpanded, + ); + }; + // Stay next to the selection when the preferred side would intercept a + // neighboring node and the opposite side is clear. + if (overlapsCard(top) && !overlapsCard(alternativeTop)) top = alternativeTop; + } + toolbar.style.setProperty('--modiff-selection-toolbar-x', `${Math.round(left)}px`); toolbar.style.setProperty('--modiff-selection-toolbar-y', `${Math.round(top)}px`); setPositioned(true); }, [ flowToScreenPosition, + getIntersectingNodes, getNodesBounds, layoutRevision, + screenToFlowPosition, selectedNodes, viewport.x, viewport.y, diff --git a/src/fields/HandleField.tsx b/src/fields/HandleField.tsx index 0af468fb..2f5e01b4 100644 --- a/src/fields/HandleField.tsx +++ b/src/fields/HandleField.tsx @@ -18,6 +18,9 @@ export default function HandleField(props: FieldProps) { const position = props.handlePosition ?? (props.fieldType === 'output' ? Position.Right : Position.Left); const textAlignClassName = props.fieldType === 'output' ? 'text-right' : 'text-left'; const isCompact = Boolean(props.compactHandle); + const wrapLabel = + props.fieldOptions?.wrapConnectionLabel === true || + (props.fieldType === 'output' && props.fieldKey.startsWith('iteration_previous__')); const updateNodeInternals = useUpdateNodeInternals(); const propsRef = useRef(props); propsRef.current = props; @@ -114,7 +117,7 @@ export default function HandleField(props: FieldProps) {
+ (field.display === 'input' || field.isInput) && + Array.isArray(field.type) && + field.type.includes('image') && + field.type.includes('video'), + ) + ) + return ['Image & Video', 'Upscale']; let modality = 'Data & Utilities'; if (/threed|three_d|3d/u.test(`${module} ${category}`)) modality = '3D'; else if (/audio|speech/u.test(`${module} ${category}`)) modality = 'Audio'; diff --git a/src/workflow/modelSetupAdapters.ts b/src/workflow/modelSetupAdapters.ts index c0e3f71c..60692d55 100644 --- a/src/workflow/modelSetupAdapters.ts +++ b/src/workflow/modelSetupAdapters.ts @@ -14,7 +14,7 @@ import { connectionTypesAreCompatible } from '../theme/connectionTypeCompatibili import { hasInlineScalarControl } from '../studio/inlineScalarControl'; import { MAX_ORDERED_ADAPTERS, orderedAdapterChainLinks } from '../studio/adapterChainLinks'; import { parseImageAdapterAuthoringPolicy } from '../studio/optionalRuntimes'; -import { declaredImagePipelineStageTail } from './operationScope'; +import { declaredImagePipelineStageTail, operationScope } from './operationScope'; import { deepEqual } from '../utils/deepEqual'; import { selectedAudioAdapterPolicy } from './selectedAudioAdapterAuthority'; import { @@ -150,6 +150,27 @@ export function modelSetupAdapterFields(node: CustomNodeType) { ); } +/** The generic Modular loader's LoRA socket can also exist on non-image + * workflows. Only a connected, declared media output establishes relevance. */ +function nativeNonImageAdapterRoute(chain: ReturnType): boolean { + if (!chain.native) return false; + try { + const outputs = operationScope(chain.unpacked.graph, chain.owner.id).flatMap((node) => + node.data.operationAuthoring!.operation.ports.filter( + (port) => port.direction === 'output' && port.semantics?.kind === 'media', + ), + ); + return outputs.length > 0 && outputs.every((port) => !port.types.includes('image')); + } catch { + // Keep existing diagnostics when ownership is incomplete or ambiguous. + return false; + } +} + +export function showModelSetupAdapterControls(chain: ReturnType): boolean { + return chain.adapters.length > 0 || Boolean(chain.native && chain.prefix) || !nativeNonImageAdapterRoute(chain); +} + export type ModelSetupAdapterAuthority = { nodesRegistry: Record; studioModelCapabilities: readonly StudioModelProfile[]; @@ -367,7 +388,9 @@ function modelSetupAdapterAuthoringLimit( ), ) ) - return 'Select a declared image workflow before adding LoRA.'; + return nativeNonImageAdapterRoute(chain) + ? 'This workflow has no reviewed inline LoRA editing.' + : 'Select a declared image workflow before adding LoRA.'; const fields = owner.data.params; const value = (name: string) => Object.prototype.hasOwnProperty.call(fields, name) && diff --git a/src/workflow/nodePresentation.ts b/src/workflow/nodePresentation.ts index 9d335c58..b94533b3 100644 --- a/src/workflow/nodePresentation.ts +++ b/src/workflow/nodePresentation.ts @@ -86,6 +86,7 @@ const PRESENTATIONS: Record = { 'modules.Primitive.ExportData': { label: 'Export Data', previous: ['Export'] }, 'modules.Video.Export': { label: 'Export Video', previous: ['Export'] }, 'modules.Video.ExportAsset': { label: 'Export Video Asset', previous: ['Export Retained Video Asset', 'Export'] }, + 'modules.Spandrel.Upscaler': { label: 'Upscale Image or Video', previous: ['Upscale with model'] }, 'modules.DiffusersVideo.Generate': { label: 'Generate Video', previous: ['Diffusers Video Generate', 'Generate video'], @@ -108,6 +109,37 @@ const PRESENTATIONS: Record = { }, }; +const FIELD_PRESENTATIONS: Record> = { + 'modules.VideoConditioning.Normalize': { + video: ['Video', 'Source frames'], + num_frames: ['Frames', 'Target frames'], + output: ['Video', 'Normalized video'], + frames_out: ['Frames', 'Actual frame count'], + }, + 'modules.ModularDiffusers.Scheduler': { + scheduler_in: ['Scheduler', 'Base scheduler'], + scheduler: ['Scheduler', 'Scheduler type'], + scheduler_out: ['Scheduler', 'Configured scheduler'], + }, + 'modules.Video.MuxAudioAsset': { + fit: ['Duration', 'Audio fit'], + duration_seconds: ['Duration', 'Measured duration (s)'], + }, + 'modules.DiffusersAudio.Generate': { + sample_rate: ['Sample Rate', 'Requested sample rate'], + sample_rate_out: ['Sample Rate', 'Actual sample rate'], + }, + 'modules.Audio.FitDuration': { + target_sample_rate: ['Target SR', 'Target sample rate'], + }, +}; + +/** Improve built-in captions at render time while keeping authored aliases and field IDs. */ +export function nodeFieldDisplayLabel(identity: string, field: string, label: string): string { + const presentation = FIELD_PRESENTATIONS[identity]?.[field]; + return presentation?.[0] === label ? presentation[1] : label; +} + /** Built-in composite metadata carries an exact runtime key, not a user title. */ export function builtinNodeDisplayLabel(identity: string, fallback: string) { return PRESENTATIONS[identity]?.label ?? fallback; diff --git a/src/workflow/signalControlPresentation.ts b/src/workflow/signalControlPresentation.ts new file mode 100644 index 00000000..fb8aedc8 --- /dev/null +++ b/src/workflow/signalControlPresentation.ts @@ -0,0 +1,52 @@ +import type { CustomNodeType } from '../stores/useFlowStore'; +import type { NodeParams } from '../stores/useNodeStore'; +import type { OperationGraph } from './operationAuthoring'; + +const GUIDER_CONTEXT_PORT = 'guider_out'; +const GUIDER_CONTEXT_HINT = 'Connect Guider to a reviewed Denoise model to edit model-specific guidance.'; + +function connectedContext(node: CustomNodeType, definition: NodeParams, graph: OperationGraph) { + const peers = graph.edges.filter((edge) => edge.source === node.id && edge.sourceHandle === GUIDER_CONTEXT_PORT); + if (!peers.length) return false; + const allowed = definition.signalCompatibility?.values; + if (!allowed) return false; + const admits = (value: unknown) => typeof value === 'string' && Object.prototype.hasOwnProperty.call(allowed, value); + const live = node.data.params[GUIDER_CONTEXT_PORT]?.signal?.value; + if (live != null) return admits(live); + + // Saved operation starters intentionally suppress signal callbacks. The exact + // current peer declaration can corroborate their persisted context. + const saved = node.data.params.model_type?.value; + const ownOperation = node.data.operationAuthoring?.operation; + if (!saved || !admits(saved) || saved !== ownOperation?.pipelineClass) return false; + return peers.some(({ target, targetHandle }) => { + const peer = graph.nodes.find(({ id }) => id === target); + const operation = peer?.data.operationAuthoring?.operation; + return ( + operation?.pipelineClass === saved && + operation.task === ownOperation.task && + operation.workflowId === ownOperation.workflowId && + operation.ports.some(({ name, direction, hidden }) => name === targetHandle && direction === 'input' && !hidden) + ); + }); +} + +/** Project Guider visibility without adding presentation metadata to registered or saved definitions. */ +export function unresolvedSignalControls( + nodeId: string, + registered: Record | undefined, + graph: OperationGraph, +) { + const unresolved = new Map(); + const definition = registered?.[GUIDER_CONTEXT_PORT]; + if (!registered || !definition) return unresolved; + const node = graph.nodes.find(({ id }) => id === nodeId); + if (node?.data.module !== 'modules.ModularDiffusers' || node.data.action !== 'Guider') return unresolved; + if (connectedContext(node, definition, graph)) return unresolved; + + const dynamicFields = Object.keys(node.data.params).filter((field) => !(field in registered)); + for (const field of ['guider', 'layers_config', ...dynamicFields]) { + unresolved.set(field, GUIDER_CONTEXT_HINT); + } + return unresolved; +} diff --git a/tests/e2e/live-backend/conditional-wiring.spec.ts b/tests/e2e/live-backend/conditional-wiring.spec.ts new file mode 100644 index 00000000..c1bdda37 --- /dev/null +++ b/tests/e2e/live-backend/conditional-wiring.spec.ts @@ -0,0 +1,458 @@ +import { expect, test, type Locator, type Page } from '@playwright/test'; +import { connect, ready, save } from './qwenDemoGestures'; + +const graph = (page: Page) => page.evaluate(() => window.__MODIFF_E2E__!.exportWorkflowGraph()); +const node = (page: Page, id: string) => page.locator(`.react-flow__node[data-id="${id}"]`); +const handle = (card: Locator, direction: 'source' | 'target', field: string) => + card.locator(`.react-flow__handle.${direction}[data-handleid="${field}"]`); +const optionField = (card: Locator, field: string) => + card.locator(`[data-key="${field}"] button[aria-haspopup="listbox"]`); + +async function add(page: Page, name: string) { + const search = page.getByLabel('Search nodes', { exact: true }); + await search.fill(name); + const previous = new Set((await graph(page)).nodes.map(({ id }) => id)); + await page.getByTestId(`node-row-${name.replace(/\./gu, '-')}`).click(); + const after = await graph(page); + const added = after.nodes.find(({ id, data }) => !previous.has(id) && `${data.module}.${data.action}` === name); + expect(added).toBeDefined(); + return added!.id; +} + +async function arrange(page: Page) { + await page.getByRole('button', { name: 'Arrange graph', exact: true }).click(); +} + +async function choose(page: Page, card: Locator, field: string, option: string) { + await optionField(card, field).click(); + await page.getByRole('option', { name: option, exact: true }).click(); +} + +async function expectMode(card: Locator, mode: string) { + await expect(card.locator('[data-key="mode"]')).toContainText(mode); +} + +async function expectLink(page: Page, source: string, sourceHandle: string, target: string, targetHandle: string) { + await expect + .poll(async () => (await graph(page)).edges) + .toContainEqual(expect.objectContaining({ source, sourceHandle, target, targetHandle })); +} + +async function importSdxlStages(page: Page, guidance = false, olderContract = false) { + // Import the registered starter's exact model binding without creating its + // unrelated output stages. The Preview connection is authored natively. + const fixture = await page.evaluate( + async ({ guidance, olderContract }) => { + const { useNodesStore } = await import('/src/stores/useNodeStore.ts'); + const { requestOperationStarter } = await import('/src/workflow/operationStarterRequest.ts'); + const { createOperationStarter } = await import('/src/workflow/operationAuthoring.ts'); + const { operationContracts } = useNodesStore.getState(); + const starter = await requestOperationStarter( + 'StableDiffusionXLModularPipeline', + 'text_to_image', + operationContracts, + undefined, + guidance ? 'sdxl-pag:modular' : undefined, + ); + const draft = createOperationStarter(starter, { x: 30, y: 80 }); + const loader = draft.nodes.find(({ data }) => data.action === 'ModelsLoader'); + const denoise = draft.nodes.find(({ data }) => data.action === 'Denoise'); + if (!loader || !denoise) throw new Error('The reviewed SDXL starter has a different denoise binding.'); + const visible = new Set(guidance ? ['ModelsLoader', 'Denoise', 'Guider', 'Layers'] : ['ModelsLoader', 'Denoise']); + const nodes = draft.nodes.filter(({ data }) => visible.has(data.action)); + if (olderContract) { + const context = nodes.find(({ data }) => data.action === 'Guider')?.data.params.guider_out; + if (context) delete context.fieldOptions; + } + const ids = new Set(nodes.map(({ id }) => id)); + const edges = draft.edges.filter( + ({ source, target, targetHandle }) => ids.has(source) && ids.has(target) && targetHandle !== 'layers_config', + ); + return { nodes, edges, viewport: { x: 0, y: 0, zoom: 1 } }; + }, + { guidance, olderContract }, + ); + const transfer = await page.evaluateHandle((draft) => { + const data = new DataTransfer(); + data.items.add(new File([JSON.stringify(draft)], 'Reviewed SDXL sockets.json', { type: 'application/json' })); + return data; + }, fixture); + await page.locator('.react-flow').dispatchEvent('drop', { dataTransfer: transfer }); + const ids = Object.fromEntries(fixture.nodes.map(({ data, id }) => [data.action, id])); + await expectLink(page, ids.ModelsLoader!, 'unet_out', ids.Denoise!, 'unet'); + return ids; +} + +const blockedExecutionRequests = new WeakMap(); +const rejectedFieldActions = new WeakMap(); + +test.afterEach(({ page }) => { + const blocked = blockedExecutionRequests.get(page); + if (blocked) expect(blocked).toEqual([]); + const rejected = rejectedFieldActions.get(page); + if (rejected) expect(rejected).toEqual([]); +}); + +test.beforeEach(async ({ page }) => { + test.skip(process.env.MODIFF_NODE_UX_ISOLATED !== '1', 'Requires an isolated live backend'); + page.setDefaultTimeout(20_000); + const forbidden: string[] = []; + const rejected: string[] = []; + rejectedFieldActions.set(page, rejected); + page.on('response', (response) => { + if (!response.ok() && new URL(response.url()).pathname === '/fields/action') { + const { module, action, fn } = response.request().postDataJSON(); + rejected.push(`${module}.${action}.${fn} (${response.status()})`); + } + }); + page.on('request', (request) => { + if ( + request.method() === 'POST' && + /^\/(?:graph|hf_download|execute)(?:\/|$)/u.test(new URL(request.url()).pathname) + ) + forbidden.push(request.url()); + }); + await page.route(/\/(?:graph|hf_download|execute)(?:\/|$)/u, (route) => + route.request().method() === 'POST' ? route.abort() : route.continue(), + ); + await page.setViewportSize({ width: 1920, height: 1200 }); + await page.goto('/', { waitUntil: 'domcontentloaded' }); + await ready(page); + await page.waitForFunction(() => window.__MODIFF_E2E__?.getState().studio.workflowCanvasHydrated); + const launcher = page.getByTestId('task-launcher'); + if (await launcher.isVisible()) await launcher.getByRole('button', { name: 'Close', exact: true }).click(); + if (!(await page.getByLabel('Search nodes', { exact: true }).isVisible())) + await page.getByTestId('left-tab-nodes').click(); + await page.getByRole('checkbox', { name: 'Show implementation nodes', exact: true }).check(); + blockedExecutionRequests.set(page, forbidden); +}); + +test('Wan loader wiring updates conditional native video stage controls', async ({ page }) => { + const loaderId = await add(page, 'modules.DiffusersVideo.LoadPipeline'); + const encodeId = await add(page, 'modules.DiffusersVideo.EncodeInputs'); + const denoiseId = await add(page, 'modules.DiffusersVideo.Denoise'); + const loader = node(page, loaderId); + const encode = node(page, encodeId); + const denoise = node(page, denoiseId); + await arrange(page); + await expectMode(encode, 'text_to_video'); + await expect(handle(encode, 'target', 'reference_images')).toBeHidden(); + await choose(page, loader, 'pipeline_class', 'WanImageToVideoPipeline'); + const source = handle(loader, 'source', 'pipeline'); + await connect(page, source, handle(encode, 'target', 'pipeline')); + await expectLink(page, loaderId, 'pipeline', encodeId, 'pipeline'); + await expectMode(encode, 'image_to_video'); + await expect(handle(encode, 'target', 'reference_images')).toBeVisible(); + await expect(handle(encode, 'target', 'last_image')).toBeVisible(); + await expect(handle(encode, 'target', 'video')).toBeHidden(); + await connect(page, source, handle(denoise, 'target', 'pipeline')); + await expectLink(page, loaderId, 'pipeline', denoiseId, 'pipeline'); + await expectMode(denoise, 'image_to_video'); + await connect(page, handle(encode, 'source', 'encoded_inputs'), handle(denoise, 'target', 'encoded_inputs')); + await expectLink(page, encodeId, 'encoded_inputs', denoiseId, 'encoded_inputs'); + await page.keyboard.press('Control+z'); + await expect.poll(async () => (await graph(page)).edges).toHaveLength(2); + await page.keyboard.press('Control+Shift+z'); + await expectLink(page, encodeId, 'encoded_inputs', denoiseId, 'encoded_inputs'); + const imageId = await add(page, 'modules.Image.Load'); + await arrange(page); + await connect(page, handle(node(page, imageId), 'source', 'image'), handle(encode, 'target', 'reference_images')); + await expectLink(page, imageId, 'image', encodeId, 'reference_images'); + // The isolated worker can author the same graph on CPU. Its execution-plan + // export requires explicit agreement between device, switch, and mode. + await choose(page, loader, 'offload_mode', 'Off'); + const autoOffload = loader.getByRole('switch', { name: 'Auto offload', exact: true }); + if ((await autoOffload.getAttribute('aria-checked')) === 'true') await autoOffload.click(); + const api = await page.evaluate(() => window.__MODIFF_E2E__!.exportAuthorizedApiGraph()); + expect(api.nodes[loaderId]?.params.offload_mode?.value).toBe('none'); + expect(api.nodes[encodeId]?.params.mode?.value).toBe('image_to_video'); + expect(api.nodes[denoiseId]?.params.mode?.value).toBe('image_to_video'); + await save(page, 'Wan conditional sockets'); + await page.reload({ waitUntil: 'domcontentloaded' }); + await ready(page); + await expectMode(encode, 'image_to_video'); + await expectMode(denoise, 'image_to_video'); + await expect(handle(encode, 'target', 'reference_images')).toBeVisible(); + const restored = await page.evaluate(() => window.__MODIFF_E2E__!.exportAuthorizedApiGraph()); + expect(restored.nodes).toEqual(api.nodes); + expect(restored.paths).toEqual(api.paths); + await page.screenshot({ path: test.info().outputPath('wan-conditional-wiring.png') }); +}); + +test('video Generate follows its adapter and Sequence rejects an image-only loader', async ({ page }) => { + const loaderId = await add(page, 'modules.DiffusersVideo.LoadPipeline'); + const generateId = await add(page, 'modules.DiffusersVideo.Generate'); + const sequenceId = await add(page, 'modules.DiffusersVideo.GenerateSequence'); + const loader = node(page, loaderId); + const generate = node(page, generateId); + const sequence = node(page, sequenceId); + const source = handle(loader, 'source', 'pipeline'); + await arrange(page); + await choose(page, loader, 'pipeline_class', 'WanImageToVideoPipeline'); + await connect(page, source, handle(generate, 'target', 'pipeline')); + await expectLink(page, loaderId, 'pipeline', generateId, 'pipeline'); + await expectMode(generate, 'image_to_video'); + await expect(handle(generate, 'target', 'reference_images')).toBeVisible(); + await expect(handle(generate, 'target', 'video')).toBeHidden(); + await connect(page, source, handle(sequence, 'target', 'pipeline')); + await expect.poll(async () => (await graph(page)).edges).toHaveLength(1); + await page.keyboard.press('Escape'); + await page.locator('.react-flow__pane').click({ position: { x: 50, y: 50 } }); + await expect(page.getByTestId('selection-toolbar')).toBeHidden(); + await choose(page, loader, 'pipeline_class', 'WanPipeline'); + await expectMode(generate, 'text_to_video'); + await expect(handle(generate, 'target', 'reference_images')).toBeHidden(); + await arrange(page); + await connect(page, source, handle(sequence, 'target', 'pipeline')); + await expectLink(page, loaderId, 'pipeline', sequenceId, 'pipeline'); + await expectMode(sequence, 'text_to_video'); + await expect(handle(sequence, 'source', 'clips')).toBeVisible(); + await expect(handle(sequence, 'target', 'reference_images')).toBeHidden(); + await expect(handle(sequence, 'target', 'video')).toBeHidden(); + await page.screenshot({ path: test.info().outputPath('video-generate-sequence.png') }); +}); + +test('Image Preview discloses VAE and device only for connected latents', async ({ page }) => { + const { Denoise: denoiseId } = await importSdxlStages(page); + if (!denoiseId) throw new Error('The SDXL starter has no Denoise stage.'); + const previewId = await add(page, 'modules.Image.Preview'); + const denoise = node(page, denoiseId); + const preview = node(page, previewId); + await arrange(page); + const vae = handle(preview, 'target', 'vae'); + await expect(vae).toBeHidden(); + await expect(preview.locator('[data-key="device"]')).toBeHidden(); + const latents = handle(denoise, 'source', 'latents_preview'); + await expect(latents).toBeVisible(); + await arrange(page); + await connect(page, latents, handle(preview, 'target', 'image')); + await expectLink(page, denoiseId, 'latents_preview', previewId, 'image'); + await expect(vae).toBeVisible(); + await expect(preview.locator('[data-key="device"]')).toBeVisible(); + await page.keyboard.press('Control+z'); + await expect(vae).toBeHidden(); + await page.keyboard.press('Control+Shift+z'); + await expect(vae).toBeVisible(); + await expectLink(page, denoiseId, 'latents_preview', previewId, 'image'); + await page.screenshot({ path: test.info().outputPath('image-preview-latent.png') }); +}); + +test('reviewed SDXL Guider reveals and wires the Layers input for layer guidance', async ({ page }) => { + const { + ModelsLoader: loaderId, + Denoise: denoiseId, + Guider: guiderId, + Layers: layersId, + } = await importSdxlStages(page, true); + if (!loaderId || !denoiseId || !guiderId || !layersId) throw new Error('The reviewed PAG recipe is incomplete.'); + const guider = node(page, guiderId); + const layers = node(page, layersId); + const target = handle(guider, 'target', 'layers_config'); + await expectLink(page, guiderId, 'guider_out', denoiseId, 'guider'); + const modelType = () => + page.evaluate(async (id) => { + const { useFlowStore } = await import('/src/stores/useFlowStore.ts'); + return useFlowStore.getState().getParam(id, 'model_type', 'value'); + }, guiderId); + expect(await modelType()).toBe('StableDiffusionXLModularPipeline'); + await arrange(page); + await expect(target).toBeVisible(); + await expect(guider.locator('[data-key="perturbed_guidance_scale"]')).toBeVisible(); + await choose(page, guider, 'guider', 'ClassifierFreeGuidance'); + await expect(target).toBeHidden(); + await expect(guider.locator('[data-key="perturbed_guidance_scale"]')).toBeHidden(); + await choose(page, guider, 'guider', 'Perturbed Attention Guidance'); + await expect(target).toBeVisible(); + await expect(guider.locator('[data-key="perturbed_guidance_scale"]')).toBeVisible(); + await arrange(page); + await connect(page, handle(layers, 'source', 'layers_config'), target); + await expectLink(page, layersId, 'layers_config', guiderId, 'layers_config'); + await page.keyboard.press('Control+z'); + await expect.poll(async () => (await graph(page)).edges.some(({ source }) => source === layersId)).toBe(false); + expect(await modelType()).toBe('StableDiffusionXLModularPipeline'); + await page.keyboard.press('Control+Shift+z'); + await expectLink(page, layersId, 'layers_config', guiderId, 'layers_config'); + await page.screenshot({ path: test.info().outputPath('guider-layers-wiring.png') }); +}); + +test('adding Guider before model wiring has no metadata error', async ({ page }) => { + const reply = page.waitForResponse((response) => { + const request = response.request(); + if (request.method() !== 'POST' || new URL(response.url()).pathname !== '/fields/action') return false; + const { action, fn } = request.postDataJSON(); + return action === 'Guider' && fn === 'updateNode'; + }); + const guiderId = await add(page, 'modules.ModularDiffusers.Guider'); + await expect(node(page, guiderId)).toBeVisible(); + expect((await graph(page)).edges).toHaveLength(0); + expect((await reply).status()).toBe(200); + await expect(handle(node(page, guiderId), 'target', 'layers_config')).toBeHidden(); +}); + +test('disconnecting Guider model context preserves authored guidance across Undo and reload', async ({ page }) => { + const { Denoise: denoiseId, Guider: guiderId, Layers: layersId } = await importSdxlStages(page, true, true); + if (!denoiseId || !guiderId || !layersId) throw new Error('The reviewed PAG recipe is incomplete.'); + const guider = node(page, guiderId); + const denoise = node(page, denoiseId); + const layers = node(page, layersId); + const layerInput = handle(guider, 'target', 'layers_config'); + const scale = guider.locator('[data-key="perturbed_guidance_scale"] input'); + const note = 'Connect Guider to a reviewed Denoise model to edit model-specific guidance.'; + const inspector = page.getByTestId('studio-custom-graph-inspector'); + const fields = async () => (await graph(page)).nodes.find(({ id }) => id === guiderId)?.data.params; + const modelEdge = (await graph(page)).edges.find( + ({ source, sourceHandle, target, targetHandle }) => + source === guiderId && sourceHandle === 'guider_out' && target === denoiseId && targetHandle === 'guider', + ); + if (!modelEdge) throw new Error('The model-context edge is missing from the reviewed recipe.'); + const removeModelEdge = async () => { + const edge = page.locator(`.react-flow__edge[data-id="${modelEdge.id}"]`); + await edge.dispatchEvent('click'); + await expect(edge).toHaveClass(/selected/); + await page.keyboard.press('Delete'); + await expect.poll(async () => (await graph(page)).edges.some(({ id }) => id === modelEdge.id)).toBe(false); + await expect(guider.getByText(note, { exact: true })).toBeVisible(); + await expect(scale).toBeHidden(); + }; + + await arrange(page); + await expect(layerInput).toBeVisible(); + await scale.fill('4.2'); + await scale.press('Enter'); + await expect.poll(async () => (await fields())?.perturbed_guidance_scale?.value).toBe(4.2); + await removeModelEdge(); + await expect(layerInput).toBeHidden(); + await page.keyboard.press('Control+z'); + await expectLink(page, guiderId, 'guider_out', denoiseId, 'guider'); + await expect(scale).toBeVisible(); + await expect(scale).toHaveValue('4.2'); + await arrange(page); + await connect(page, handle(layers, 'source', 'layers_config'), layerInput); + await expectLink(page, layersId, 'layers_config', guiderId, 'layers_config'); + await removeModelEdge(); + await expect(layerInput).toBeVisible(); + await expectLink(page, layersId, 'layers_config', guiderId, 'layers_config'); + await expect.poll(async () => (await fields())?.guider_out?.signal?.value).toBeUndefined(); + + await guider.click({ position: { x: 45, y: 20 } }); + await expect(inspector.getByText(note, { exact: true })).toBeVisible(); + await expect(inspector.locator('[data-key="perturbed_guidance_scale"] input')).toBeHidden(); + await inspector.getByRole('tab', { name: 'Interface', exact: true }).click(); + await expect(inspector.getByText('Socket: layers_config', { exact: true })).toBeVisible(); + await expect(inspector.getByText(note, { exact: true })).toBeVisible(); + await expect(inspector.getByText(`From ${layersId}.layers_config`, { exact: true })).toBeVisible(); + + await save(page, 'Disconnected guidance settings'); + await page.reload({ waitUntil: 'domcontentloaded' }); + await ready(page); + await expect(guider.getByText(note, { exact: true })).toBeVisible(); + await expect(scale).toBeHidden(); + await expect(layerInput).toBeVisible(); + await expectLink(page, layersId, 'layers_config', guiderId, 'layers_config'); + await expect.poll(async () => (await fields())?.perturbed_guidance_scale?.value).toBe(4.2); + await expect.poll(async () => (await fields())?.guider?.value).toBe('PerturbedAttentionGuidance'); + + await arrange(page); + await connect(page, handle(guider, 'source', 'guider_out'), handle(denoise, 'target', 'guider')); + await expectLink(page, guiderId, 'guider_out', denoiseId, 'guider'); + await expect(scale).toBeVisible(); + await expect(scale).toHaveValue('4.2'); + await expect(guider.getByText(note)).toBeHidden(); +}); + +test('LTX 2.5 conditioned AV starter preserves typed image, video and audio wiring after save', async ({ page }) => { + const fixture = await page.evaluate(async () => { + const { useNodesStore } = await import('/src/stores/useNodeStore.ts'); + const { requestOperationStarter } = await import('/src/workflow/operationStarterRequest.ts'); + const { createOperationStarter } = await import('/src/workflow/operationAuthoring.ts'); + const { operationContracts } = useNodesStore.getState(); + const starter = await requestOperationStarter( + 'LTX25FullPipeline', + 'image_to_video_with_audio', + operationContracts, + undefined, + 'ltx25-full-av:direct', + ); + const draft = createOperationStarter(starter, { x: 30, y: 80 }); + const loader = draft.nodes.find( + ({ data }) => data.module === 'modules.DiffusersVideo' && data.action === 'LoadPipeline', + ); + const generate = draft.nodes.find( + ({ data }) => data.module === 'modules.DiffusersVideo' && data.action === 'GenerateVideoAudio', + ); + if (!loader || !generate) throw new Error('The reviewed LTX 2.5 starter has a different generating route.'); + const nodes = [loader, generate]; + const ids = new Set(nodes.map(({ id }) => id)); + const edges = draft.edges.filter(({ source, target }) => ids.has(source) && ids.has(target)); + return { + nodes, + edges, + loaderId: loader.id, + avId: generate.id, + viewport: { x: 0, y: 0, zoom: 1 }, + }; + }); + const transfer = await page.evaluateHandle( + (draft) => { + const data = new DataTransfer(); + data.items.add(new File([JSON.stringify(draft)], 'LTX 2.5 conditioned AV.json', { type: 'application/json' })); + return data; + }, + { nodes: fixture.nodes, edges: fixture.edges, viewport: fixture.viewport }, + ); + await page.locator('.react-flow').dispatchEvent('drop', { dataTransfer: transfer }); + const loader = node(page, fixture.loaderId); + const av = node(page, fixture.avId); + await expectLink(page, fixture.loaderId, 'pipeline', fixture.avId, 'pipeline'); + await expectMode(av, 'image_to_video_with_audio'); + const imageInput = handle(av, 'target', 'reference_images'); + await expect(imageInput).toBeVisible(); + await expect(imageInput).toHaveAttribute('data-connection-type', /\bimage\b/u); + await expect(handle(av, 'target', 'video')).toBeHidden(); + await expect(handle(av, 'target', 'audio')).toHaveCount(0); + const authoritativeNode = () => graph(page).then(({ nodes }) => nodes.find(({ id }) => id === fixture.avId)); + expect((await authoritativeNode())?.data.params.reference_images?.required).toBe(true); + expect((await authoritativeNode())?.data.params.audio?.display).toBe('output'); + + const imageId = await add(page, 'modules.Image.Load'); + const exportId = await add(page, 'modules.Video.ExportWithAudio'); + const image = handle(node(page, imageId), 'source', 'image'); + const exporter = node(page, exportId); + const audioInput = handle(exporter, 'target', 'audio'); + const generatedAudio = handle(av, 'source', 'audio'); + const generatedVideo = handle(av, 'source', 'video_out'); + await expect(generatedAudio).toHaveAttribute('data-connection-type', 'audio'); + await expect(generatedVideo).toHaveAttribute('data-connection-type', 'video'); + await arrange(page); + const original = (await graph(page)).edges; + await connect(page, image, audioInput); + await expect.poll(async () => (await graph(page)).edges).toEqual(original); + await page.keyboard.press('Escape'); + await connect(page, image, imageInput); + await expectLink(page, imageId, 'image', fixture.avId, 'reference_images'); + await connect(page, generatedAudio, audioInput); + await expectLink(page, fixture.avId, 'audio', exportId, 'audio'); + await connect(page, generatedVideo, handle(exporter, 'target', 'video')); + await expectLink(page, fixture.avId, 'video_out', exportId, 'video'); + + // The test worker is CPU-only; apply its explicit compatible loading policy + // through the editable controls without accepting model terms or running. + await choose(page, loader, 'offload_mode', 'Off'); + const autoOffload = loader.getByRole('switch', { name: 'Auto offload', exact: true }); + if ((await autoOffload.getAttribute('aria-checked')) === 'true') await autoOffload.click(); + const api = () => page.evaluate(() => window.__MODIFF_E2E__!.exportAuthorizedApiGraph()); + const before = await api(); + expect(before.nodes[fixture.avId]?.params.mode?.value).toBe('image_to_video_with_audio'); + expect(before.nodes[fixture.avId]?.params.reference_images?.sourceId).toBe(imageId); + expect(before.nodes[exportId]?.params.audio?.sourceKey).toBe('audio'); + expect(before.nodes[exportId]?.params.video?.sourceKey).toBe('video_out'); + await save(page, 'LTX 2.5 AV conditional sockets'); + await page.reload({ waitUntil: 'domcontentloaded' }); + await ready(page); + await expectMode(av, 'image_to_video_with_audio'); + await expect(imageInput).toBeVisible(); + const restored = await api(); + expect(restored.nodes).toEqual(before.nodes); + expect(restored.paths).toEqual(before.paths); + await page.screenshot({ path: test.info().outputPath('ltx-conditioned-av-wiring.png') }); +}); diff --git a/tests/e2e/live-backend/ordinary-node-controls.spec.ts b/tests/e2e/live-backend/ordinary-node-controls.spec.ts new file mode 100644 index 00000000..aa19e951 --- /dev/null +++ b/tests/e2e/live-backend/ordinary-node-controls.spec.ts @@ -0,0 +1,159 @@ +import { expect, test, type Page } from '@playwright/test'; +import { connect, ready, save } from './qwenDemoGestures'; + +const unicodeText = '夕暮れの観測所\nCafé • Δ'; +const png = Buffer.from( + 'iVBORw0KGgoAAAANSUhEUgAAABAAAAAMCAIAAADkharWAAAAGklEQVR4nGNUS3BnIAUwkaSaYVQDcWA4BCsA8wwA5VTmOSsAAAAASUVORK5CYII=', + 'base64', +); + +const readGraph = (page: Page) => page.evaluate(() => window.__MODIFF_E2E__!.exportWorkflowGraph()); +const exportGraph = (page: Page) => page.evaluate(() => window.__MODIFF_E2E__!.exportAuthorizedApiGraph()); +const attemptedSubmissions = new WeakMap(); + +test.beforeEach(async ({ page }) => { + test.skip(process.env.MODIFF_NODE_UX_ISOLATED !== '1', 'Requires an isolated backend and storage'); + test.setTimeout(180_000); + await page.setViewportSize({ width: 1366, height: 768 }); + const submissions: string[] = []; + attemptedSubmissions.set(page, submissions); + await page.route(/\/(graph|hf_download|execute)(\/|$)/u, (route) => { + if (route.request().method() !== 'POST') return route.continue(); + submissions.push(new URL(route.request().url()).pathname); + return route.abort(); + }); + await page.goto('/', { waitUntil: 'domcontentloaded' }); + await ready(page); + const launcher = page.getByTestId('task-launcher'); + const showLauncher = await page.evaluate(() => !window.__MODIFF_E2E__!.getState().studio.launcherDismissed); + if (showLauncher) await launcher.getByRole('button', { name: 'Close', exact: true }).click({ timeout: 60_000 }); + await expect.poll(async () => (await readGraph(page)).nodes.length).toBe(0); + await page.getByTestId('left-tab-nodes').click(); + await page.getByRole('checkbox', { name: 'Show implementation nodes', exact: true }).check({ timeout: 60_000 }); +}); + +test.afterEach(({ page }) => expect(attemptedSubmissions.get(page) ?? []).toEqual([])); + +async function addNode(page: Page, key: string) { + const [module, action] = [key.slice(0, key.lastIndexOf('.')), key.slice(key.lastIndexOf('.') + 1)]; + const search = page.getByLabel('Search nodes', { exact: true }); + await search.fill(key); + await page.getByTestId(`node-row-${key.replaceAll('.', '-')}`).click(); + const find = async () => + (await readGraph(page)).nodes.find((node) => node.data.action === action && node.data.module === module)?.id; + await expect.poll(find).toEqual(expect.any(String)); + const id = (await find())!; + return { id, node: page.locator(`.react-flow__node[data-id="${id}"]`) }; +} + +async function arrange(page: Page) { + await page.getByLabel('Search nodes', { exact: true }).fill(''); + await page.getByRole('button', { name: 'Arrange graph', exact: true }).click(); +} + +async function reopen(page: Page, title: string) { + const stored = page.waitForResponse( + (response) => + /\/workflows\/[^/]+$/u.test(new URL(response.url()).pathname) && response.request().method() === 'PUT', + ); + await save(page, title); + expect((await stored).ok()).toBe(true); + await page.reload({ waitUntil: 'domcontentloaded' }); + await ready(page); + await expect.poll(async () => (await readGraph(page)).nodes.length).toBeGreaterThan(0); +} + +test('ordinary numeric, text, selection and switch controls survive keyboard edits and reload', async ({ page }) => { + const text = await addNode(page, 'modules.Text.ProcessText'); + const video = await addNode(page, 'modules.Video.Export'); + const data = await addNode(page, 'modules.Primitive.ExportData'); + await arrange(page); + + const prompt = text.node.locator('[data-key="source"] textarea'); + await prompt.fill(unicodeText); + await prompt.press('Tab'); + const toggle = text.node.locator('[data-key="ignore_empty_lines"]').getByRole('switch'); + await toggle.focus(); + await toggle.press('Space'); + await expect(toggle).toHaveAttribute('aria-checked', 'true'); + const index = text.node.locator('[data-key="index"] input'); + await index.fill('-1'); + await index.press('Enter'); + await expect.poll(async () => (await exportGraph(page)).nodes[text.id]?.params.index?.value).toBe(-1); + await index.fill('0'); + await index.press('Tab'); + + const fps = video.node.locator('[data-key="fps"] input'); + await fps.fill('23.97'); + await fps.press('Tab'); + await fps.fill('31'); + await fps.press('Escape'); + await expect(fps).toHaveValue('23.97'); + const quality = video.node.locator('[data-key="quality"] input'); + await quality.focus(); + await quality.press('ArrowDown'); + await quality.press('Enter'); + await expect(quality).toHaveValue('7'); + + const selectFormat = data.node.locator('[data-key="format"]').getByRole('button'); + await selectFormat.focus(); + await selectFormat.press('Space'); + await expect(page.getByRole('option', { name: 'text', exact: true })).toBeVisible(); + await page.keyboard.press('End'); + await page.keyboard.press('Enter'); + await expect(selectFormat).toHaveText('text'); + + const before = await exportGraph(page); + expect(before.nodes[text.id]?.params.source?.value).toBe(unicodeText); + expect(before.nodes[text.id]?.params.ignore_empty_lines?.value).toBe(true); + expect(before.nodes[text.id]?.params.index?.value).toBe(0); + expect(before.nodes[video.id]?.params.fps?.value).toBe(23.97); + expect(before.nodes[video.id]?.params.quality?.value).toBe(7); + expect(before.nodes[data.id]?.params.format?.value).toBe('text'); + await reopen(page, 'Ordinary keyboard field review'); + await expect.poll(async () => (await exportGraph(page)).nodes).toEqual(before.nodes); + await expect(prompt).toHaveValue(unicodeText); + await expect(index).toHaveValue('0'); + await expect(toggle).toHaveAttribute('aria-checked', 'true'); + await expect(fps).toHaveValue('23.97'); + await expect(selectFormat).toHaveText('text'); + await page.screenshot({ path: test.info().outputPath('reopened-ordinary-controls.png') }); +}); + +test('ordinary file upload, incompatible wiring, Undo and typed route survive reload', async ({ page }) => { + const text = await addNode(page, 'modules.Primitive.TextValue'); + const source = await addNode(page, 'modules.Image.Load'); + const resize = await addNode(page, 'modules.Image.Resize'); + const upload = source.node.locator('[data-key="file"] input[type="file"]'); + const uploadedResponse = page.waitForResponse( + (response) => new URL(response.url()).pathname === '/file' && response.request().method() === 'POST', + ); + await upload.setInputFiles({ name: 'ordinary-audit.png', mimeType: 'image/png', buffer: png }); + expect(await (await uploadedResponse).json()).toMatchObject({ path: expect.anything() }); + const uploaded = async () => (await exportGraph(page)).nodes[source.id]?.params.file?.value; + await expect.poll(uploaded).toEqual([expect.any(String)]); + const exactFile = await uploaded(); + await arrange(page); + + const handle = (id: string, key: string) => page.getByTestId(`node-handle-${id}-${key}`); + await connect(page, handle(text.id, 'output'), handle(resize.id, 'image')); + await expect.poll(async () => (await readGraph(page)).edges).toEqual([]); + await connect(page, handle(source.id, 'image'), handle(resize.id, 'image')); + const connection = { source: source.id, sourceHandle: 'image', target: resize.id, targetHandle: 'image' }; + await expect.poll(async () => (await readGraph(page)).edges).toMatchObject([connection]); + await page.keyboard.press('Control+z'); + await expect.poll(async () => (await readGraph(page)).edges).toEqual([]); + await page.keyboard.press('Control+Shift+z'); + await expect.poll(async () => (await readGraph(page)).edges).toMatchObject([connection]); + + const before = await exportGraph(page); + expect(before.nodes[resize.id]?.params.image).toMatchObject({ sourceId: source.id, sourceKey: 'image' }); + await reopen(page, 'Ordinary file and socket review'); + await expect.poll(uploaded).toEqual(exactFile); + const preview = source.node.locator('[data-key="file"] img'); + await expect(preview).toBeVisible(); + await expect.poll(() => preview.evaluate((image: HTMLImageElement) => image.naturalWidth)).toBe(16); + await expect.poll(async () => (await readGraph(page)).edges).toMatchObject([connection]); + await expect.poll(async () => (await exportGraph(page)).nodes).toEqual(before.nodes); + await page.screenshot({ path: test.info().outputPath('reopened-ordinary-file-and-wire.png') }); +}); diff --git a/tests/e2e/live-backend/ordinary-node-labels.spec.ts b/tests/e2e/live-backend/ordinary-node-labels.spec.ts new file mode 100644 index 00000000..a4ac53e0 --- /dev/null +++ b/tests/e2e/live-backend/ordinary-node-labels.spec.ts @@ -0,0 +1,114 @@ +import { expect, test, type Page } from '@playwright/test'; + +test.beforeEach(async ({ page }) => { + test.skip(process.env.MODIFF_NODE_UX_ISOLATED !== '1', 'Requires an isolated registry worker'); + await page.setViewportSize({ width: 1366, height: 768 }); + await page.goto('/'); + await expect(page.getByTestId('startup-workspace-gate')).toHaveCount(0); + await page.waitForFunction(() => window.__MODIFF_E2E__?.getState().studio.workflowCanvasHydrated); + if (!(await page.evaluate(() => window.__MODIFF_E2E__!.getState().studio.launcherDismissed))) { + await page.getByTestId('task-launcher').getByRole('button', { name: 'Close', exact: true }).click(); + } + const search = page.getByLabel('Search nodes', { exact: true }); + if (!(await search.isVisible())) await page.getByTestId('left-tab-nodes').click(); + await expect(search).toBeVisible(); +}); + +async function insertNode(page: Page, key: string) { + await page.getByLabel('Search nodes', { exact: true }).fill(key); + const entry = page.getByTestId(`node-row-${key.replaceAll('.', '-')}`); + await entry.click(); + const card = page.locator('.react-flow__node'); + await expect(card).toHaveCount(1); + return card; +} + +test('ordinary media and scheduler cards distinguish controls and sockets without changing their identities', async ({ + page, +}) => { + await page.getByRole('checkbox', { name: 'Show implementation nodes', exact: true }).check(); + const routes = [ + [ + 'modules.VideoConditioning.Normalize', + 'num_frames', + 'Target frames', + [ + ['video', 'Input Source frames, image or video'], + ['output', 'Output Normalized video, video'], + ['frames_out', 'Output Actual frame count, int'], + ], + ], + [ + 'modules.ModularDiffusers.Scheduler', + 'scheduler', + 'Scheduler type', + [ + ['scheduler_in', 'Input Base scheduler, diffusers_auto_model'], + ['scheduler_out', 'Output Configured scheduler, diffusers_auto_model'], + ], + ], + ['modules.Video.MuxAudioAsset', 'fit', 'Audio fit', [['duration_seconds', 'Output Measured duration (s), float']]], + [ + 'modules.DiffusersAudio.Generate', + 'sample_rate', + 'Requested sample rate', + [['sample_rate_out', 'Output Actual sample rate, int']], + ], + ['modules.Audio.FitDuration', 'target_sample_rate', 'Target sample rate', []], + ] as const; + for (const [key, field, caption, sockets] of routes) { + const card = await insertNode(page, key); + await expect(card.locator(`[data-key="${field}"]`).getByText(caption, { exact: true })).toBeVisible(); + for (const [handle, name] of sockets) { + await expect(card.locator(`[data-handleid="${handle}"]`)).toHaveAttribute('aria-label', name); + const caption = card.locator(`[data-key="${handle}"] > div[title]:not([data-testid])`); + await expect + .poll(() => caption.evaluate((element) => element.scrollWidth - element.clientWidth)) + .toBeLessThanOrEqual(2); + } + const active = await page.evaluate(() => window.__MODIFF_E2E__!.exportWorkflowGraph()); + const [{ data }] = active.nodes; + expect(`${data.module}.${data.action}`).toBe(key); + expect(active.edges).toHaveLength(0); + await card.screenshot({ path: test.info().outputPath(`${key}.png`) }); + await page.keyboard.press('Control+z'); + await expect(card).toHaveCount(0); + } +}); + +test('the common palette offers dual-media upscaling and groups Encode Image with conditioning', async ({ page }) => { + const search = page.getByLabel('Search nodes', { exact: true }); + await search.fill('video upscale'); + const upscale = page.getByTestId('node-group-Image-Video').getByRole('button', { name: 'Upscale Image or Video' }); + await expect(upscale).toBeVisible(); + await search.fill('image upscale'); + await expect(upscale).toBeVisible(); + await search.fill('Encode Image'); + await expect( + page + .getByTestId('node-subgroup-runtime-Models-Components-Condition') + .getByTestId('node-row-modules-ModularDiffusers-ImageEncode'), + ).toBeVisible(); +}); + +test('a narrow ordinary reviewed step renders its full previous-iteration output caption', async ({ page }) => { + await page.getByRole('checkbox', { name: 'Show implementation nodes', exact: true }).check(); + const card = await insertNode(page, 'modules.ModularDiffusers.ReviewedModularWorkflowStep'); + const key = 'iteration_previous__negative_connector_audio_prompt_embeds'; + const text = 'negative_connector_audio_prompt_embeds (previous iteration)'; + const field = card.locator(`[data-key="${key}"]`); + await expect(field.locator(`[data-handleid="${key}"]`)).toHaveAttribute( + 'aria-label', + `Output ${text}, modular_loop_value`, + ); + const caption = field.getByText(text, { exact: true }); + await expect(caption).toBeVisible(); + await expect + .poll(() => + caption.evaluate((element) => ({ + overflows: element.scrollWidth - element.clientWidth > 2, + wraps: getComputedStyle(element).whiteSpace === 'normal', + })), + ) + .toEqual({ overflows: false, wraps: true }); +}); diff --git a/tests/e2e/live-backend/selection-toolbar-placement.spec.ts b/tests/e2e/live-backend/selection-toolbar-placement.spec.ts new file mode 100644 index 00000000..d1fe0da3 --- /dev/null +++ b/tests/e2e/live-backend/selection-toolbar-placement.spec.ts @@ -0,0 +1,83 @@ +import { expect, test } from '@playwright/test'; +import { ready } from './qwenDemoGestures'; + +test('selection toolbar stays off the adjacent editable node when there is room below the selection', async ({ + page, +}, testInfo) => { + test.skip(process.env.MODIFF_NODE_UX_ISOLATED !== '1', 'Requires an isolated live backend'); + await page.setViewportSize({ width: 1920, height: 1200 }); + await page.goto('/'); + await ready(page); + await page.waitForFunction(() => window.__MODIFF_E2E__?.getState().studio.workflowCanvasHydrated); + const launcher = page.getByTestId('task-launcher'); + if (await launcher.isVisible()) await launcher.getByRole('button', { name: 'Close', exact: true }).click(); + await page.evaluate(async () => { + const { useFlowStore } = await import('/src/stores/useFlowStore.ts'); + const { useNodesStore } = await import('/src/stores/useNodeStore.ts'); + const { createNodeFromRegistry } = await import('/src/workflow/nodeFactory.ts'); + const nodes = ['toolbar-neighbor', 'toolbar-selected'].map((id, index) => { + const node = createNodeFromRegistry('modules.Primitive.TextValue', useNodesStore.getState().nodesRegistry, { + x: 360, + y: 140 + 210 * index, + }); + if (!node) throw new Error('The Text Value fixture is unavailable.'); + return { ...node, id }; + }); + useFlowStore.getState().replaceGraph({ nodes, edges: [] }); + }); + const neighbor = page.locator('.react-flow__node[data-id="toolbar-neighbor"]'); + const selected = page.locator('.react-flow__node[data-id="toolbar-selected"]'); + const field = neighbor.getByRole('textbox', { name: 'Text', exact: true }); + await expect(field).toBeVisible(); + await expect(selected).toBeVisible(); + const geometry = await page.evaluate(() => { + const field = document.querySelector('[data-id="toolbar-neighbor"] textarea, [data-id="toolbar-neighbor"] input')!; + const fieldBounds = field.getBoundingClientRect(); + const node = document.querySelector('[data-id="toolbar-selected"]')!.getBoundingClientRect(); + const transform = new DOMMatrixReadOnly( + getComputedStyle(document.querySelector('.react-flow__viewport')!).transform, + ); + const fieldCenterY = fieldBounds.top + fieldBounds.height / 2; + return { delta: (fieldCenterY + 32 - node.top) / transform.a, fieldBounds: fieldBounds.toJSON() }; + }); + await page.evaluate(async (delta) => { + const { useFlowStore } = await import('/src/stores/useFlowStore.ts'); + const flow = useFlowStore.getState(); + flow.onNodesChange([ + { + type: 'position', + id: 'toolbar-selected', + position: { x: 360, y: 350 + delta }, + }, + ]); + }, geometry.delta); + await selected.getByText('Text Value', { exact: true }).click(); + const toolbar = page.getByTestId('selection-toolbar'); + await expect(toolbar).toBeVisible(); + await testInfo.attach('placement', { + body: JSON.stringify( + await field.evaluate((element) => { + const bounds = element.getBoundingClientRect(); + return { + field: bounds.toJSON(), + toolbar: document.querySelector('[data-testid="selection-toolbar"]')?.getBoundingClientRect().toJSON(), + hit: document.elementFromPoint(bounds.x + bounds.width / 2, bounds.y + bounds.height / 2)?.outerHTML, + }; + }), + ), + contentType: 'application/json', + }); + await expect + .poll(() => + field.evaluate((element) => { + const r = element.getBoundingClientRect(); + return document.elementFromPoint(r.x + r.width / 2, r.y + r.height / 2) === element; + }), + ) + .toBe(true); + await page.getByTestId('selection-toolbar-inspect-node').click({ trial: true }); + await field.click(); + await field.fill('Edited adjacent to the selection'); + await expect(field).toHaveValue('Edited adjacent to the selection'); + await page.screenshot({ path: testInfo.outputPath('toolbar-clearance.png') }); +}); diff --git a/tests/e2e/live-backend/visual-stage-groups.spec.ts b/tests/e2e/live-backend/visual-stage-groups.spec.ts index 7b9ca453..129dd7ad 100644 --- a/tests/e2e/live-backend/visual-stage-groups.spec.ts +++ b/tests/e2e/live-backend/visual-stage-groups.spec.ts @@ -543,6 +543,9 @@ for (const [file, model] of [ }); } if (model === 'MiniMaxMusic3ModularPipeline') { + const setup = page.getByTestId(/^setup-node-/); + await expect(setup.getByRole('button', { name: 'Change model / task' })).toBeVisible(); + await expect(setup.getByRole('button', { name: 'Adapters', exact: true })).toHaveCount(0); const generate = page.getByTestId(/^generate-node-/); await expect(generate).toHaveCount(1); await expect(generate.getByText('Generate', { exact: true }).first()).toBeVisible(); @@ -586,6 +589,9 @@ for (const [file, model] of [ expect(restored.nodes).toEqual(api.nodes); expect(restored.paths).toEqual(api.paths); if (model === 'MiniMaxMusic3ModularPipeline') { + const setup = page.getByTestId(/^setup-node-/); + await expect(setup.getByRole('button', { name: 'Change model / task' })).toBeVisible(); + await expect(setup.getByRole('button', { name: 'Adapters', exact: true })).toHaveCount(0); const generate = page.getByTestId(/^generate-node-/); await expect(generate).toHaveCount(1); await expect(generate.getByText('Steps', { exact: true }).first()).toBeVisible(); From 7fdd83bc6239cd6c7f84e04dc4b471d150f57114 Mon Sep 17 00:00:00 2001 From: Sourav Das Date: Fri, 20 Nov 2026 14:53:43 +0530 Subject: [PATCH 265/440] Allow cold editor startup in native wiring tests --- tests/e2e/live-backend/conditional-wiring.spec.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/e2e/live-backend/conditional-wiring.spec.ts b/tests/e2e/live-backend/conditional-wiring.spec.ts index c1bdda37..0bb8863a 100644 --- a/tests/e2e/live-backend/conditional-wiring.spec.ts +++ b/tests/e2e/live-backend/conditional-wiring.spec.ts @@ -116,7 +116,7 @@ test.beforeEach(async ({ page }) => { route.request().method() === 'POST' ? route.abort() : route.continue(), ); await page.setViewportSize({ width: 1920, height: 1200 }); - await page.goto('/', { waitUntil: 'domcontentloaded' }); + await page.goto('/', { waitUntil: 'commit', timeout: 60_000 }); await ready(page); await page.waitForFunction(() => window.__MODIFF_E2E__?.getState().studio.workflowCanvasHydrated); const launcher = page.getByTestId('task-launcher'); From 526a698aa3a3fa0b7bd3736ba53bc7c4c666f066 Mon Sep 17 00:00:00 2001 From: Sourav Das Date: Fri, 20 Nov 2026 20:41:33 +0530 Subject: [PATCH 266/440] Use valid speech timestamp defaults and preserve legacy audio receipts --- scripts/builtin-media-qualification.mjs | 3 +- scripts/bundle-budget.mjs | 6 ++ scripts/resolved-execution-inputs.test.mjs | 89 ++++++++++++++++++++++ scripts/task-template-contracts.test.mjs | 79 +++++++++++++++++++ src/components/StudioPanel.tsx | 21 +++-- src/stores/useStudioStore.ts | 16 +++- src/studio/builtinMediaEvidence.ts | 20 ++++- src/studio/effectiveControls.ts | 33 ++++++++ 8 files changed, 256 insertions(+), 11 deletions(-) diff --git a/scripts/builtin-media-qualification.mjs b/scripts/builtin-media-qualification.mjs index c0d7f55c..db6d0ac7 100644 --- a/scripts/builtin-media-qualification.mjs +++ b/scripts/builtin-media-qualification.mjs @@ -290,7 +290,8 @@ export async function readBuiltinMediaEvidence({ clientRoot, manifest, graph, au assert.equal(native.length, binding.values.length); const values = binding.values.map((row, i) => { const physical = read(row.file); - assert.equal(native[i].sourceValue, row.sourceValue); + const { sourceValue } = native[i]; + assert.equal(Array.isArray(sourceValue) ? sourceValue[0] : sourceValue, row.sourceValue); assert.equal(native[i].sha256, row.file.sha256); assert.equal(native[i].byteSize, row.file.bytes); assert.ok(native[i].converted !== true); diff --git a/scripts/bundle-budget.mjs b/scripts/bundle-budget.mjs index ce2b9ee2..2c804336 100644 --- a/scripts/bundle-budget.mjs +++ b/scripts/bundle-budget.mjs @@ -490,6 +490,9 @@ const SOURCE_LICENSES = new URL('../public/THIRD_PARTY_LICENSES.txt', import.met // 504492/682980/346033 largest/startup/deferred gzip bytes: the reviewed // migration ceilings below still pass with 8/12/304 bytes of headroom. const MAX_STARTUP_CHUNK_GZIP_BYTES = + // Speech timestamp authoring and saved audio receipts measure 519191 bytes. + // Add 918 bytes over 518273 and retain the 17-byte headroom. + 918 + // Node captions and context-aware controls add 926 gzip bytes (517347 -> 518273). 926 + // The shared stage connector labels add 428 gzip bytes (516919 -> 517347). @@ -738,6 +741,9 @@ const MAX_STARTUP_CHUNK_GZIP_BYTES = // The same build measures 673359 aggregate startup bytes (+45 over the cap). // Keep 19 bytes of headroom; deferred limits and loading boundaries stay fixed. const MAX_STARTUP_GZIP_BYTES = + // The speech changes measure 697677 bytes, 921 above 696756. + // Preserve the 20-byte headroom, chunk memberships, and deferred budgets. + 921 + // The same node presentation pass adds 923 gzip bytes (695833 -> 696756). 923 + // Measured node interface presentation delta (695402 -> 695834). diff --git a/scripts/resolved-execution-inputs.test.mjs b/scripts/resolved-execution-inputs.test.mjs index a6ddc56f..2b54ac13 100644 --- a/scripts/resolved-execution-inputs.test.mjs +++ b/scripts/resolved-execution-inputs.test.mjs @@ -130,6 +130,95 @@ test('recorded output labels and packages use the exact observed loader without assert.equal(observedModels.observedOutputModelLabel(historical, [descriptor]), 'Historical model alias'); assert.equal(packages.buildOutputWorkflowPackage(historical).metadata.studio.modelType, record.modelType); }); +function audioLoadReceipt(sourceValue) { + return { + ...receipt(), + mediaEvidenceStatus: { schemaVersion: 1, truncated: false }, + summary: {}, + nodes: [ + { + nodeId: 'load', + module: 'modules.Audio', + action: 'Load', + fields: {}, + omittedFields: {}, + mediaEvidence: { + schemaVersion: 1, + source: 'native-builtin-media-v1', + status: 'complete', + controls: {}, + inputs: {}, + outputs: { + audio: [ + { + kind: 'audio', + shape: [16, 1], + sampleRate: 16000, + dtype: 'float32-le', + sha256: 'a'.repeat(64), + byteSize: 64, + }, + ], + }, + files: { file: [{ sourceValue, sha256: 'b'.repeat(64), byteSize: 76, converted: false }] }, + }, + }, + { nodeId: 'preview', module: 'modules.Primitive', action: 'DataViewer', fields: {}, omittedFields: {} }, + ], + }; +} + +test('Audio.Load scalar and legacy singleton filenames survive history and output export exactly', () => { + for (const sourceValue of ['speech.wav', ['speech.wav']]) { + const capture = audioLoadReceipt(sourceValue); + const identity = { taskId: capture.taskId, attemptIndex: capture.attemptIndex, nodeId: capture.nodeId }; + const before = JSON.stringify(capture); + const parsed = inputs.coerceResolvedExecutionInputs(capture, identity); + assert.deepEqual(parsed, capture); + const restored = contracts.coerceStudioOutput({ + id: 'audio-file-proof', + url: '/native.txt', + ...identity, + resolvedExecutionInputs: capture, + }); + assert.deepEqual(restored.resolvedExecutionInputs, capture); + assert.deepEqual(packages.buildOutputWorkflowPackage(restored).latestOutput.resolvedExecutionInputs, capture); + assert.equal(JSON.stringify(capture), before); + } +}); + +test('Audio.Load legacy filenames stay bounded and scoped to its declared file port', async () => { + const { parseBuiltinMediaEvidence } = await server.ssrLoadModule('/src/studio/builtinMediaEvidence.ts'); + for (const sourceValue of [[], [''], [null], [['speech.wav']], ['one.wav', 'two.wav'], ['x'.repeat(16385)]]) { + assert.equal( + parseBuiltinMediaEvidence(audioLoadReceipt(sourceValue).nodes[0].mediaEvidence, 'Audio.Load'), + undefined, + ); + } + const capture = audioLoadReceipt(['speech.wav']).nodes[0].mediaEvidence; + for (const mutate of [ + (row) => { + row.files.other = row.files.file; + }, + (row) => { + row.files.file[0].sha256 = 'changed'; + }, + (row) => { + row.files.file[0].proofOverride = true; + }, + ]) { + const changed = structuredClone(capture); + mutate(changed); + assert.equal(parseBuiltinMediaEvidence(changed, 'Audio.Load'), undefined); + } + const duplicate = { ...capture, files: { file: [...capture.files.file, ...capture.files.file] } }; + assert.equal(parseBuiltinMediaEvidence(duplicate, 'Audio.Load'), undefined); + const otherScope = { ...capture, outputs: {} }; + assert.equal(parseBuiltinMediaEvidence(otherScope, 'Image.Load'), undefined); + otherScope.files = { videos: capture.files.file }; + assert.equal(parseBuiltinMediaEvidence(otherScope, 'Video.ProcessVideo'), undefined); +}); + test('native builtin media metadata survives strict parsing without granting model evidence', async () => { const backend = fileURLToPath(new URL('../../MoDiff/', import.meta.url)); const python = diff --git a/scripts/task-template-contracts.test.mjs b/scripts/task-template-contracts.test.mjs index e56da9c6..52f5a94d 100644 --- a/scripts/task-template-contracts.test.mjs +++ b/scripts/task-template-contracts.test.mjs @@ -1,4 +1,5 @@ import assert from 'node:assert/strict'; +import { readFileSync } from 'node:fs'; import { after, before, test } from 'node:test'; import path from 'node:path'; import { fileURLToPath } from 'node:url'; @@ -2559,3 +2560,81 @@ test('task contracts reject a loader or output identity that diverges from its e ); } }); +test('managed speech authoring uses exact backend timestamp options without rewriting a saved form', async (t) => { + const windowDescriptor = Object.getOwnPropertyDescriptor(globalThis, 'window'); + globalThis.window = { location: { origin: 'http://127.0.0.1' }, dispatchEvent: () => true }; + t.after(() => { + if (windowDescriptor) Object.defineProperty(globalThis, 'window', windowDescriptor); + else delete globalThis.window; + }); + const nodes = (await server.ssrLoadModule('/src/stores/useNodeStore.ts')).useNodesStore; + const studio = (await server.ssrLoadModule('/src/stores/useStudioStore.ts')).useStudioStore; + const originalNodes = nodes.getState(); + const originalStudio = studio.getState(); + t.after(() => { + nodes.setState(originalNodes, true); + studio.setState(originalStudio, true); + }); + const ctc = 'HuggingFaceCTCSpeechRecognitionModel'; + const whisper = 'HuggingFaceSpeechRecognitionModel'; + const ctcNodeKey = 'modules.HuggingFaceSpeech.TranscribeCTCAudio'; + const whisperNodeKey = 'modules.HuggingFaceSpeech.TranscribeAudio'; + const ctcFixture = JSON.parse(readFileSync(path.join(ROOT, 'tests/fixtures/ctc-catalog-insertion.v1.json'), 'utf8')); + const transcribeCtc = ctcFixture.compiledEntry.definition.graph.nodes.find( + (node) => node.data.action === 'TranscribeCTCAudio', + ).data; + const capability = (modelType, nodeKey, modes) => ({ + modelType, + studioExecutionSpecSchemaVersion: 1, + studioExecutionSpecModes: modes, + studioExecutionSpecs: modes.map((mode) => ({ + modelType, + mode, + roles: [['transcribeAudio', nodeKey, 0, 0]], + bindings: [['transcribeAudio', 'timestamps', 'speechTimestamps']], + })), + }); + nodes.setState({ + studioExecutionSpecInvalid: false, + studioModelCapabilities: [ + capability(ctc, ctcNodeKey, ['speech_to_text']), + capability(whisper, whisperNodeKey, ['speech_to_text', 'speech_translation']), + ], + nodesRegistry: { + [ctcNodeKey]: transcribeCtc, + [whisperNodeKey]: { params: { timestamps: { default: 'segment', options: ['none', 'segment', 'word'] } } }, + }, + }); + + studio.getState().updateForm(modelProfilesModule.getFormDefaultsForMode('speech_to_text', ctc)); + assert.equal(studio.getState().form.speechTimestamps, 'word', 'Fresh CTC Studio graph must author the node default'); + const { studioSpeechTimestampContract } = await server.ssrLoadModule('/src/studio/effectiveControls.ts'); + const contractForForm = (form) => studioSpeechTimestampContract(form, nodes.getState()); + assert.deepEqual(contractForForm(studio.getState().form), { options: ['none', 'word'], defaultValue: 'word' }); + + for (const value of ['none', 'word']) { + studio.getState().updateForm({ speechTimestamps: value }); + studio.getState().updateForm({ modelType: whisper }); + assert.equal(studio.getState().form.speechTimestamps, value); + studio.getState().updateForm({ modelType: ctc }); + assert.equal(studio.getState().form.speechTimestamps, value); + } + + studio.getState().selectMode('speech_translation'); + assert.equal(studio.getState().form.modelType, whisper); + assert.equal(studio.getState().form.speechTimestamps, 'segment'); + assert.deepEqual(contractForForm(studio.getState().form), { + options: ['none', 'segment', 'word'], + defaultValue: 'segment', + }); + studio.getState().selectMode('speech_to_text'); + assert.equal(studio.getState().form.speechTimestamps, 'segment'); + studio.getState().updateForm({ modelType: ctc }); + assert.equal(studio.getState().form.speechTimestamps, 'word'); + + // Loading a persisted draft does not take the explicit task/model authoring path. + studio.setState({ form: { ...studio.getState().form, speechTimestamps: 'segment' } }); + studio.getState().updateForm({ sourceAudio: ['@data/audio/old-input.wav'] }); + assert.equal(studio.getState().form.speechTimestamps, 'segment'); + assert.deepEqual(studio.getState().form.sourceAudio, ['@data/audio/old-input.wav']); +}); diff --git a/src/components/StudioPanel.tsx b/src/components/StudioPanel.tsx index 0586f202..9816318f 100644 --- a/src/components/StudioPanel.tsx +++ b/src/components/StudioPanel.tsx @@ -58,7 +58,7 @@ import { import { studioLowMemoryFormValues } from '../studio/resourcePlanner'; import { STUDIO_PRESETS, STUDIO_TEMPLATES } from '../studio/templates'; import { exactStudioExecutionProfileForForm } from '../studio/executionSpecs'; -import { studioSupportsStrength } from '../studio/effectiveControls'; +import { studioSpeechTimestampContract, studioSupportsStrength } from '../studio/effectiveControls'; import { acknowledgementRequiredForModelRun } from '../studio/modelUsagePolicies'; import { useModelUsageTermsGate } from '../studio/useModelUsageTerms'; import type { StudioAspectRatio, StudioFormState, StudioMode, StudioModelType } from '../studio/types'; @@ -97,6 +97,12 @@ import { } from '../ui'; import { cx } from '../utils/classNames'; +const SPEECH_TIMESTAMP_LABELS = { + none: 'No timestamps', + segment: 'Segment timestamps', + word: 'Word timestamps', +} satisfies Record; + const ASPECT_OPTIONS: { label: StudioAspectRatio; width: number; height: number }[] = [ { label: '1:1', width: 1024, height: 1024 }, { label: '4:3', width: 1152, height: 864 }, @@ -231,6 +237,10 @@ export default function StudioPanel() { const isUnconditionalMode = form.mode === 'unconditional_image'; const isPerceptionMode = form.mode === 'depth_estimation'; const isSpeechMode = SPEECH_STUDIO_MODES.includes(form.mode); + const speechTimestampContract = isSpeechMode + ? studioSpeechTimestampContract(form, { studioModelCapabilities, studioExecutionSpecInvalid, nodesRegistry }) + : undefined; + const speechTimestampOptions = speechTimestampContract?.options ?? (['none', 'segment', 'word'] as const); const isThreeDMode = THREE_D_STUDIO_MODES.includes(form.mode); const usesPrompt = !isUnconditionalMode && @@ -1619,11 +1629,10 @@ export default function StudioPanel() { onValueChange={(value) => updateAndSync({ speechTimestamps: value as StudioFormState['speechTimestamps'] }) } - options={[ - { value: 'none', label: 'No timestamps' }, - { value: 'segment', label: 'Segment timestamps' }, - { value: 'word', label: 'Word timestamps' }, - ]} + options={speechTimestampOptions.map((value) => ({ + value, + label: SPEECH_TIMESTAMP_LABELS[value], + }))} />
{ const current = get().form; - const nextForm = resolveStudioResourceForm(getFormDefaultsForMode(mode, current.modelType)); + const nextForm = resolveStudioResourceForm( + normalizeAuthoredSpeechTimestamps(getFormDefaultsForMode(mode, current.modelType)), + ); set({ selectedMode: mode, activeTemplateId: null, @@ -1744,6 +1755,9 @@ export const useStudioStore = create; inputs: Record; outputs: Record; - files: Record; + files: Record< + string, + { sourceValue: string | [string]; sha256: string; byteSize: number; converted?: boolean }[] + >; }; const imageControls = `pipeline_class operation brightness contrast saturation sharpness gamma temperature tint @@ -51,6 +54,18 @@ const keys = (v: Record, names: string[]) => Object.keys(v).length === names.length && names.every((n) => has(v, n)); const uint = (v: unknown): v is number => Number.isSafeInteger(v) && Number(v) >= 0; const digest = (v: unknown) => typeof v === 'string' && /^[a-f0-9]{64}$/u.test(v); +function fileSource(value: unknown, legacyAudioSelection: boolean): value is string | [string] { + if (typeof value === 'string') return value.length <= 16384; + // Older Audio.Load receipts retained the file picker's one-item selection. + return ( + legacyAudioSelection && + Array.isArray(value) && + value.length === 1 && + typeof value[0] === 'string' && + value[0].length > 0 && + value[0].length <= 16384 + ); +} function identity(v: unknown): v is MediaIdentity { if (!record(v) || !digest(v.sha256) || !uint(v.byteSize) || v.byteSize > 256 * 1024 * 1024) return false; if (v.kind === 'file') return keys(v, ['kind', 'sha256', 'byteSize']); @@ -131,8 +146,7 @@ export function parseBuiltinMediaEvidence(value: unknown, scope: string): Builti (v) => !record(v) || !keys(v, ['sourceValue', 'sha256', 'byteSize', ...(has(v, 'converted') ? ['converted'] : [])]) || - typeof v.sourceValue !== 'string' || - v.sourceValue.length > 16384 || + !fileSource(v.sourceValue, scope === 'Audio.Load' && port === 'file' && items.length === 1) || !digest(v.sha256) || !uint(v.byteSize) || v.byteSize > 256 * 1024 * 1024 || diff --git a/src/studio/effectiveControls.ts b/src/studio/effectiveControls.ts index 41225dfc..78c0a6e6 100644 --- a/src/studio/effectiveControls.ts +++ b/src/studio/effectiveControls.ts @@ -1,4 +1,6 @@ +import type { NodeData } from '../stores/useNodeStore'; import { exactStudioExecutionSpecForForm } from './executionSpecs'; +import { runtimeOptionValues } from './runtimeOptions'; import type { StudioFormState, StudioModelProfile, StudioTemplate } from './types'; export function studioSupportsStrength( @@ -19,3 +21,34 @@ export function studioSupportsStrength( // selected task consumes this control. Use the reviewed execution binding. return spec?.bindings.some(([, , source]) => source === 'strength') === true; } + +function isSpeechTimestamp(value: unknown): value is StudioFormState['speechTimestamps'] { + return value === 'none' || value === 'segment' || value === 'word'; +} + +// The bound backend field declares both the accepted choices and the default +// for a fresh authoring route. A saved graph retains its own authored value. +export function studioSpeechTimestampContract( + form: Pick, + metadata: { + studioModelCapabilities: readonly StudioModelProfile[]; + studioExecutionSpecInvalid: boolean; + nodesRegistry: Record>; + }, +) { + const spec = exactStudioExecutionSpecForForm( + metadata.studioModelCapabilities, + metadata.studioExecutionSpecInvalid, + form, + ); + const binding = spec?.bindings.find(([, , source]) => source === 'speechTimestamps'); + if (!binding) return undefined; + const [role, field] = binding; + const nodeKey = spec?.roles.find(([candidate]) => candidate === role)?.[1]; + if (!nodeKey) return undefined; + const parameter = metadata.nodesRegistry[nodeKey]?.params[field]; + const defaultValue = parameter?.default; + const options = runtimeOptionValues(parameter?.options).filter(isSpeechTimestamp); + if (!isSpeechTimestamp(defaultValue) || !options.includes(defaultValue)) return undefined; + return { options, defaultValue }; +} From e1b05503a76a3c0866bcd0598d9c42c89f04630d Mon Sep 17 00:00:00 2001 From: Sourav Das Date: Fri, 20 Nov 2026 21:01:58 +0530 Subject: [PATCH 267/440] Read bounded speech consumer receipts --- scripts/resolved-execution-inputs.test.mjs | 132 +++++++++++++++++++++ src/studio/builtinMediaEvidence.ts | 20 +++- src/studio/resolvedExecutionInputs.ts | 10 ++ 3 files changed, 161 insertions(+), 1 deletion(-) diff --git a/scripts/resolved-execution-inputs.test.mjs b/scripts/resolved-execution-inputs.test.mjs index 2b54ac13..b3609332 100644 --- a/scripts/resolved-execution-inputs.test.mjs +++ b/scripts/resolved-execution-inputs.test.mjs @@ -2471,6 +2471,138 @@ test('audio receipt validates duration, delivery rate and consumed controls thro assert.equal(restored.nodes[0].fields.num_inference_steps.sourceNodeId, 'steps'); }); +function speechConsumerReceipt(action) { + const value = receipt(); + const consumed = (inputValue, value = inputValue) => ({ + disposition: 'consumed', + inputValue, + value, + source: 'literal', + }); + const fields = { + timestamps: consumed('word'), + chunk_length_seconds: consumed(30), + stride_length_seconds: consumed(5), + }; + if (action === 'TranscribeAudio') { + fields.task = consumed(' TRANSLATE ', 'translate'); + fields.language = { + ...consumed(''), + disposition: 'inactive', + reason: 'feature-disabled', + }; + } + value.nodes = [ + { + nodeId: 'speech', + module: 'modules.HuggingFaceSpeech', + action, + fields: {}, + omittedFields: {}, + fieldAccounting: { + schemaVersion: 1, + fields, + inputProjections: {}, + outputProjections: {}, + unaccountedFields: [], + omittedFields: {}, + complete: true, + }, + mediaEvidence: { + schemaVersion: 1, + source: 'native-builtin-media-v1', + status: 'complete', + controls: {}, + inputs: { + audio: [ + { + kind: 'audio', + sha256: 'a'.repeat(64), + shape: [12, 2], + sampleRate: 16000, + byteSize: 96, + dtype: 'float32-le', + }, + ], + }, + outputs: {}, + files: {}, + }, + }, + ]; + value.summary = {}; + value.fieldAccountingStatus = { schemaVersion: 1, truncated: false }; + value.mediaEvidenceStatus = { schemaVersion: 1, truncated: false }; + return value; +} + +test('speech consumer accounting preserves options and one audio input in hydrated outputs', () => { + for (const action of ['TranscribeAudio', 'TranscribeCTCAudio']) { + const capture = speechConsumerReceipt(action); + const identity = { taskId: capture.taskId, attemptIndex: capture.attemptIndex, nodeId: capture.nodeId }; + const output = contracts.coerceStudioOutput({ + id: action, + url: '/transcript.txt', + displayType: 'text', + ...identity, + resolvedExecutionInputs: capture, + }); + assert.deepEqual(output.resolvedExecutionInputs, capture, action); + assert.deepEqual(contracts.coerceStudioOutput(JSON.parse(JSON.stringify(output))).resolvedExecutionInputs, capture); + assert.deepEqual(output.resolvedExecutionInputs.summary, {}); + const incomplete = structuredClone(capture); + incomplete.nodes[0].fieldAccounting.complete = false; + incomplete.nodes[0].fieldAccounting.unaccountedFields = ['unexpected_parameter']; + incomplete.nodes[0].mediaEvidence = { + schemaVersion: 1, + status: 'unavailable', + reason: 'unsupported-or-bounded-input', + }; + assert.deepEqual(inputs.coerceResolvedExecutionInputs(incomplete, identity), incomplete); + } +}); + +test('speech consumer hydration rejects extra options, projections and spoofed media', () => { + for (const action of ['TranscribeAudio', 'TranscribeCTCAudio']) { + const capture = speechConsumerReceipt(action); + const identity = { taskId: capture.taskId, attemptIndex: capture.attemptIndex, nodeId: capture.nodeId }; + const [speech] = capture.nodes; + const accounting = speech.fieldAccounting; + const media = speech.mediaEvidence; + const [audio] = media.inputs.audio; + const option = accounting.fields.timestamps; + const fields = (additional) => ({ + fieldAccounting: { ...accounting, fields: { ...accounting.fields, ...additional } }, + }); + const projections = (key) => ({ fieldAccounting: { ...accounting, [key]: { audio: {} } } }); + const evidence = (changes) => ({ mediaEvidence: { ...media, ...changes } }); + const unreviewedOptions = action === 'TranscribeCTCAudio' ? ['task', 'language'] : ['guidance_scale']; + for (const [reason, changes] of [ + ['foreign scope', { module: 'custom.HuggingFaceSpeech' }], + ...unreviewedOptions.map((name) => [`out-of-scope option ${name}`, fields({ [name]: option })]), + ['raw audio in field accounting', fields({ audio: option })], + ['extra accounting data', fields({ timestamps: { ...option, rawSamples: [1] } })], + ['input projection', projections('inputProjections')], + ['output projection', projections('outputProjections')], + ['media control', evidence({ controls: { timestamps: true } })], + ['file observation', evidence({ files: { file: [] } })], + ['media output', evidence({ outputs: { text: [] } })], + ['foreign input port', evidence({ inputs: { ...media.inputs, reference: [audio] } })], + ['missing audio input', evidence({ inputs: {} })], + ['empty audio input', evidence({ inputs: { audio: [] } })], + ['multiple audio inputs', evidence({ inputs: { audio: [audio, audio] } })], + [ + 'file posing as audio', + evidence({ inputs: { audio: [{ kind: 'file', sha256: audio.sha256, byteSize: audio.byteSize }] } }), + ], + ['extra audio data', evidence({ inputs: { audio: [{ ...audio, samples: [1, 2] }] } })], + ]) { + const candidate = { ...capture, nodes: [{ ...speech, ...changes }] }; + assert.equal(inputs.coerceResolvedExecutionInputs(candidate, identity), undefined, `${action}: ${reason}`); + } + } +}); + test('attention context reuse survives receipts and rejects a contradictory summary', () => { for (const enabled of [true, false]) { const value = receipt(); diff --git a/src/studio/builtinMediaEvidence.ts b/src/studio/builtinMediaEvidence.ts index 3d744386..5ae79a67 100644 --- a/src/studio/builtinMediaEvidence.ts +++ b/src/studio/builtinMediaEvidence.ts @@ -27,7 +27,7 @@ const videoControls = `pipeline_class operation selection_mode indices timecodes transition_seconds start_seconds end_seconds columns sync gap background`; export const BUILTIN_MEDIA_EVIDENCE_SCOPES: Record< string, - { controls: string; inputs: string[]; outputs: string[]; files: string[] } + { controls: string; inputs: string[]; outputs: string[]; files: string[]; requiredSingleAudioInput?: string } > = { 'Image.Load': { controls: 'alpha_channel', inputs: [], outputs: ['image'], files: ['file'] }, 'Image.Preview': { controls: 'device export', inputs: ['image'], outputs: ['output', 'filtered'], files: [] }, @@ -40,6 +40,20 @@ export const BUILTIN_MEDIA_EVIDENCE_SCOPES: Record< 'Audio.Load': { controls: '', inputs: [], outputs: ['audio'], files: ['file'] }, 'Audio.ProcessAudio': { controls: audioControls, inputs: ['source', 'reference'], outputs: ['output'], files: [] }, 'Audio.Export': { controls: 'filename sample_rate', inputs: ['audio'], outputs: ['file'], files: [] }, + 'HuggingFaceSpeech.TranscribeAudio': { + controls: '', + inputs: ['audio'], + outputs: [], + files: [], + requiredSingleAudioInput: 'audio', + }, + 'HuggingFaceSpeech.TranscribeCTCAudio': { + controls: '', + inputs: ['audio'], + outputs: [], + files: [], + requiredSingleAudioInput: 'audio', + }, 'Video.ProcessVideo': { controls: videoControls, inputs: ['videos'], @@ -136,6 +150,10 @@ export function parseBuiltinMediaEvidence(value: unknown, scope: string): Builti ) return undefined; } + if (declaration.requiredSingleAudioInput) { + const audio = value.inputs[declaration.requiredSingleAudioInput]; + if (!Array.isArray(audio) || audio.length !== 1 || audio[0]?.kind !== 'audio') return undefined; + } if ( Object.entries(value.files).some( ([port, items]) => diff --git a/src/studio/resolvedExecutionInputs.ts b/src/studio/resolvedExecutionInputs.ts index 02965dad..705b8d72 100644 --- a/src/studio/resolvedExecutionInputs.ts +++ b/src/studio/resolvedExecutionInputs.ts @@ -438,6 +438,14 @@ const accountingNames: Record = { image_guidance_scale use_guidance_scale_2 guidance_scale_2 pag_scale pag_adaptive_scale control_guidance_start control_guidance_end layers resolution cfg_normalize use_en_prompt strength padding_mask_crop max_sequence_length output_type`.split(/\s+/u), + 'HuggingFaceSpeech.TranscribeAudio': [ + 'task', + 'language', + 'timestamps', + 'chunk_length_seconds', + 'stride_length_seconds', + ], + 'HuggingFaceSpeech.TranscribeCTCAudio': ['timestamps', 'chunk_length_seconds', 'stride_length_seconds'], 'Image.Preview': ['device', 'export'], }; const accountingPorts: Record, Record]> = { @@ -449,6 +457,8 @@ const accountingPorts: Record, Record Date: Fri, 20 Nov 2026 21:04:32 +0530 Subject: [PATCH 268/440] Preserve direct image edit observations in output receipts --- scripts/resolved-execution-inputs.test.mjs | 113 +++++++++++++++++++++ src/studio/resolvedExecutionInputs.ts | 36 ++++++- 2 files changed, 144 insertions(+), 5 deletions(-) diff --git a/scripts/resolved-execution-inputs.test.mjs b/scripts/resolved-execution-inputs.test.mjs index b3609332..e71b27d9 100644 --- a/scripts/resolved-execution-inputs.test.mjs +++ b/scripts/resolved-execution-inputs.test.mjs @@ -391,6 +391,119 @@ test('plain conditional accounting preserves the bounded backend PAG call and re assert.equal(inputs.coerceResolvedExecutionInputs(unknown, identity), undefined); }); +test('image edit accounting preserves only a bounded decoded RGB input on the image port', () => { + const capture = receipt(); + const values = { mode: 'RGB', width: 48, height: 32, byteSize: 4608, sha256: 'b'.repeat(64) }; + const projection = { + kind: 'decoded-image-v1', + values, + sha256: 'a'.repeat(64), + source: 'connected', + sourceNodeId: 'source-image', + sourcePortId: 'image', + }; + const accounting = { + schemaVersion: 1, + fields: { + reference_strength: { + disposition: 'inactive', + inputValue: 1, + value: 1, + reason: 'feature-disabled', + source: 'literal', + }, + }, + inputProjections: { image: projection }, + outputProjections: {}, + unaccountedFields: [], + omittedFields: {}, + complete: true, + }; + const node = { + nodeId: 'edit', + module: 'modules.DiffusersImage', + action: 'Edit', + fields: { executed_task: { value: 'edit_image', source: 'literal' } }, + omittedFields: {}, + fieldAccounting: accounting, + }; + capture.nodes = [node]; + capture.summary = { executedTask: 'edit_image' }; + capture.fieldAccountingStatus = { schemaVersion: 1, truncated: false }; + const identity = { taskId: capture.taskId, attemptIndex: capture.attemptIndex, nodeId: capture.nodeId }; + const output = contracts.coerceStudioOutput({ + id: 'edit', + url: '/edit.png', + ...identity, + resolvedExecutionInputs: capture, + }); + assert.deepEqual(output.resolvedExecutionInputs, capture); + assert.deepEqual(contracts.coerceStudioOutput(JSON.parse(JSON.stringify(output))).resolvedExecutionInputs, capture); + + const withAccounting = (changes) => ({ + ...capture, + nodes: [{ ...node, fieldAccounting: { ...accounting, ...changes } }], + }); + const image = (changes) => ({ image: { ...projection, ...changes } }); + for (const invalid of [ + { mode: 'RGBA' }, + { width: '48' }, + { width: 0, byteSize: 0 }, + { height: 32.5, byteSize: 4680 }, + { height: true }, + { height: Number.MAX_SAFE_INTEGER + 1 }, + { byteSize: 4609 }, + { width: 8192, height: 8192, byteSize: 201326592 }, + { sha256: 'B'.repeat(64) }, + { sha256: 'b'.repeat(63) }, + { samples: [0, 0, 0] }, + ]) { + assert.equal( + inputs.coerceResolvedExecutionInputs( + withAccounting({ inputProjections: image({ values: { ...values, ...invalid } }) }), + identity, + ), + undefined, + JSON.stringify(invalid), + ); + } + for (const [label, changes] of [ + ['missing image', { inputProjections: {} }], + ['foreign port', { inputProjections: { mask: projection } }], + ['output port', { outputProjections: { image: projection } }], + ['unbounded wrapper digest', { inputProjections: image({ sha256: 'wrong' }) }], + ['missing source port', { inputProjections: image({ sourcePortId: undefined }) }], + ]) { + assert.equal(inputs.coerceResolvedExecutionInputs(withAccounting(changes), identity), undefined, label); + } + const wrongScope = { + ...capture, + nodes: [{ ...node, action: 'Generate', fieldAccounting: { ...accounting, fields: {} } }], + }; + assert.equal(inputs.coerceResolvedExecutionInputs(wrongScope, identity), undefined); + for (const source of ['literal', 'override']) { + const { sourceNodeId: _nodeId, sourcePortId: _portId, ...withoutLink } = projection; + const inputProjections = { image: { ...withoutLink, source } }; + assert.equal( + inputs.coerceResolvedExecutionInputs(withAccounting({ inputProjections }), identity), + undefined, + source, + ); + const partial = withAccounting({ + inputProjections, + omittedFields: { image: 'unsupported-origin' }, + complete: false, + }); + assert.deepEqual(inputs.coerceResolvedExecutionInputs(partial, identity), partial, source); + const falselyPartial = withAccounting({ + inputProjections, + omittedFields: { width: 'unavailable' }, + complete: false, + }); + assert.equal(inputs.coerceResolvedExecutionInputs(falselyPartial, identity), undefined, source); + } +}); + test('mocked native DDIM accounting derives the unique executed owner without borrowing Preview CPU or hints', () => { const value = canonicalAccountingCase(); const graphBefore = JSON.stringify(value.apiGraph); diff --git a/src/studio/resolvedExecutionInputs.ts b/src/studio/resolvedExecutionInputs.ts index 705b8d72..d2a7f60b 100644 --- a/src/studio/resolvedExecutionInputs.ts +++ b/src/studio/resolvedExecutionInputs.ts @@ -36,7 +36,7 @@ export type ExecutionFieldAccounting = { complete: boolean; }; type ExecutionAccountingProjection = { - kind: 'disabled-quantization-v1' | 'execution-recipe-v1'; + kind: 'disabled-quantization-v1' | 'execution-recipe-v1' | 'decoded-image-v1'; values: Record; sha256: string; }; @@ -419,6 +419,11 @@ function appliedAdapters(value: unknown, scope: string): AppliedAdapters | undef // Mirror only the backend's bounded accounting policy, not arbitrary objects or // new execution authority. Cryptographic and graph joins belong to the recorder. +const conditionalImageAccountingNames = + `image_contract prompt negative_prompt width height seed num_inference_steps guidance_scale + image_guidance_scale use_guidance_scale_2 guidance_scale_2 pag_scale pag_adaptive_scale control_guidance_start + control_guidance_end layers resolution cfg_normalize use_en_prompt strength padding_mask_crop max_sequence_length + output_type`.split(/\s+/u); const accountingNames: Record = { 'DiffusersImage.LoadPipeline': `model_id pipeline_class mode revision execution_profile_id conditioning_kind conditioning_model_id @@ -434,10 +439,8 @@ const accountingNames: Record = { ), 'DiffusersImage.UnconditionalGenerate': 'image_contract batch_size seed num_inference_steps eta class_label output_type'.split(' '), - 'DiffusersImage.Generate': `image_contract prompt negative_prompt width height seed num_inference_steps guidance_scale - image_guidance_scale use_guidance_scale_2 guidance_scale_2 pag_scale pag_adaptive_scale control_guidance_start - control_guidance_end layers resolution cfg_normalize use_en_prompt strength padding_mask_crop max_sequence_length - output_type`.split(/\s+/u), + 'DiffusersImage.Generate': conditionalImageAccountingNames, + 'DiffusersImage.Edit': [...conditionalImageAccountingNames, 'reference_strength'], 'HuggingFaceSpeech.TranscribeAudio': [ 'task', 'language', @@ -457,6 +460,7 @@ const accountingPorts: Record, Record) => text(value.sourcePortId) && Boolean(value.sourcePortId)); +function decodedImageProjectionValues(values: Record): boolean { + const { mode, width, height, byteSize, sha256 } = values; + const positiveInteger = (value: unknown): value is number => + typeof value === 'number' && Number.isSafeInteger(value) && value > 0; + return ( + exactKeys(values, ['mode', 'width', 'height', 'byteSize', 'sha256']) && + mode === 'RGB' && + positiveInteger(width) && + positiveInteger(height) && + positiveInteger(byteSize) && + byteSize <= 64 * 1024 * 1024 && + width * height * 3 === byteSize && + digest(sha256) + ); +} + function fieldAccounting(value: unknown, scope: string): ExecutionFieldAccounting | undefined { if ( !record(value) || @@ -561,6 +581,12 @@ function fieldAccounting(value: unknown, scope: string): ExecutionFieldAccountin if (projection.kind === 'disabled-quantization-v1') { if (!exactKeys(values, ['backend', 'disabled']) || values.backend !== 'none' || values.disabled !== true) return undefined; + } else if (projection.kind === 'decoded-image-v1') { + if ( + !decodedImageProjectionValues(values) || + (projection.source !== 'connected' && (value.complete || value.omittedFields[port] !== 'unsupported-origin')) + ) + return undefined; } else { const keys = accountingNames['DiffusersRuntime.DiffusersExecutionRecipe']!.filter( (key) => key !== 'device_map_overrides', From d441f2afd69d387fea8e546142f830d44f35e3bb Mon Sep 17 00:00:00 2001 From: Sourav Das Date: Fri, 20 Nov 2026 22:09:08 +0530 Subject: [PATCH 269/440] Read private speech executions through the canonical proof path --- package.json | 2 +- scripts/private-speech-evidence.mjs | 558 +++++++++++++++++++++++ scripts/private-speech-evidence.test.mjs | 250 ++++++++++ scripts/release-contract-core.mjs | 10 + 4 files changed, 819 insertions(+), 1 deletion(-) create mode 100644 scripts/private-speech-evidence.mjs create mode 100644 scripts/private-speech-evidence.test.mjs diff --git a/package.json b/package.json index 2a9da8bf..70b9d8f3 100644 --- a/package.json +++ b/package.json @@ -85,7 +85,7 @@ "test:template-assets:local": "node --test scripts/template-default-inputs.test.mjs", "test:template-quality": "node --test scripts/template-quality.test.mjs", "test:live-qwen-proof": "node --test scripts/live-qwen-proof.test.mjs scripts/native-modular-image-resource.test.mjs scripts/executed-native-media-resource.test.mjs scripts/workflow-auto-provenance.test.mjs scripts/workflow-auto-audio-provenance.test.mjs scripts/workflow-auto-video-provenance.test.mjs scripts/workflow-auto-control-provenance.test.mjs scripts/workflow-auto-masked-image-provenance.test.mjs scripts/retained-native-text-provenance.test.mjs scripts/retained-native-direct-image-provenance.test.mjs scripts/retained-native-modular-image-provenance.test.mjs scripts/canonical-runtime-hints.test.mjs scripts/hardware-qualification.test.mjs scripts/hardware-execution-device.test.mjs scripts/hardware-runtime-identity.test.mjs scripts/release-qualification-policy.test.mjs scripts/resource-qualification.test.mjs scripts/route-resource-qualification.test.mjs scripts/resource-qualification-campaign.test.mjs scripts/template-qualification.test.mjs scripts/release-qualification-campaign.test.mjs", - "test:release-contract": "node --test scripts/backend-installer-contract.test.mjs scripts/backend-node-registry.test.mjs scripts/release-contract.test.mjs scripts/release-candidate-report.test.mjs scripts/template-asset-release-contract.test.mjs scripts/builtin-media-qualification.test.mjs scripts/input-bound-model-evidence.test.mjs scripts/canonical-image-accounting.test.mjs scripts/marigold-preview-evidence.test.mjs scripts/prompt-variant-evidence.test.mjs scripts/retained-template-association.test.mjs scripts/retained-gallery-release.test.mjs scripts/saved-workflow-compatibility.test.mjs", + "test:release-contract": "node --test scripts/backend-installer-contract.test.mjs scripts/backend-node-registry.test.mjs scripts/release-contract.test.mjs scripts/release-candidate-report.test.mjs scripts/template-asset-release-contract.test.mjs scripts/builtin-media-qualification.test.mjs scripts/input-bound-model-evidence.test.mjs scripts/canonical-image-accounting.test.mjs scripts/marigold-preview-evidence.test.mjs scripts/private-speech-evidence.test.mjs scripts/prompt-variant-evidence.test.mjs scripts/retained-template-association.test.mjs scripts/retained-gallery-release.test.mjs scripts/saved-workflow-compatibility.test.mjs", "test:live-backend-contract": "node scripts/live-backend-contract.mjs", "test:gallery-harness": "node --test scripts/template-gallery-harness.test.mjs scripts/source-video-timing.test.mjs scripts/retained-layer-sheet.test.mjs scripts/template-gallery-maintainer-acceptance.test.mjs scripts/template-recipe-history.test.mjs scripts/release-showcase-scope.test.mjs scripts/template-input-roles.test.mjs", "test:gallery-runner": "node --test scripts/template-gallery-runner.test.mjs && npm run test:demo-tools", diff --git a/scripts/private-speech-evidence.mjs b/scripts/private-speech-evidence.mjs new file mode 100644 index 00000000..81e44cc9 --- /dev/null +++ b/scripts/private-speech-evidence.mjs @@ -0,0 +1,558 @@ +import assert from 'node:assert/strict'; +import { createHash } from 'node:crypto'; +import { lstatSync, readFileSync, realpathSync } from 'node:fs'; +import { basename, dirname } from 'node:path'; +import { assertCanonicalAccountingGraphEnvelope } from './canonical-runtime-hints.mjs'; +import { + backendSourceEvidence, + canonicalGraphIdentity, + normalizeBackendRuntime, + selectBackendRuntimeFingerprintEvidence, + selectInstalledModelIdentity, + stableStringify, +} from './live-proof-provenance.mjs'; +import { validateNativeVariantOutput, validateNativeVariantRun } from './native-variant-run-evidence.mjs'; +import { + canonicalWorkflowAuthoringContract, + exportCanonicalWorkflowGraphs, + readCanonicalEvidenceFile, +} from './release-contract-core.mjs'; + +const whisperType = 'HuggingFaceSpeechRecognitionModel'; +const ctcType = 'HuggingFaceCTCSpeechRecognitionModel'; +const task = 'speech_to_text'; +const routes = new Map([ + [ + `${whisperType}:${task}`, + { + modelType: whisperType, + repo: 'openai/whisper-tiny', + revision: '169d4a4341b33bc18d8881c4b69c2e104e1cc0af', + pipeline: 'AutoModelForSpeechSeq2Seq', + loader: 'LoadSpeechRecognitionModel', + consumer: 'TranscribeAudio', + timestamps: 'segment', + }, + ], + [ + `${ctcType}:${task}`, + { + modelType: ctcType, + repo: 'facebook/wav2vec2-base-960h', + revision: '22aad52d435eb6dbaf354bdad9b0da84ce7d6156', + pipeline: 'AutoModelForCTC', + loader: 'LoadCTCSpeechRecognitionModel', + consumer: 'TranscribeCTCAudio', + timestamps: 'word', + }, + ], +]); +const source = 'node-01'; +const loader = 'node-02'; +const consumer = 'node-03'; +const terminal = 'node-04'; +const ids = [source, loader, consumer, terminal]; +const speech = 'modules.HuggingFaceSpeech'; +export const MAX_SPEECH_WAV_BYTES = 4 * 1024 * 1024; +export const MAX_SPEECH_TRANSCRIPT_BYTES = 1024 * 1024; +const digest = (bytes) => createHash('sha256').update(bytes).digest('hex'); +const same = (actual, expected, message) => assert.deepEqual(actual, expected, message); +const sameWireJson = (actual, expected, message) => + assert.equal(stableStringify(actual), stableStringify(expected), message); +const keys = (row, names, message) => same(Object.keys(row ?? {}).sort(), [...names].sort(), message); +const wire = (sourceId, sourceKey) => ({ display: 'input', sourceId, sourceKey }); +const literal = (value) => ({ value, source: 'literal' }); +const completeStatus = { schemaVersion: 1, truncated: false }; +const media = (inputs, outputs, files) => ({ + schemaVersion: 1, + status: 'complete', + source: 'native-builtin-media-v1', + controls: {}, + inputs, + outputs, + files, +}); + +function speechRoute(workflowId) { + const route = routes.get(workflowId); + assert.ok(route, 'Unsupported private speech evidence route.'); + return route; +} + +function speechControls(route) { + const controls = { timestamps: route.timestamps, chunk_length_seconds: 30, stride_length_seconds: 5 }; + return route.modelType === whisperType ? { ...controls, task: 'transcribe', language: '' } : controls; +} + +function assertSafeSourceName(name) { + assert.ok( + typeof name === 'string' && name.length <= 200 && /^[a-z0-9][a-z0-9_.-]*[.]wav$/iu.test(name), + 'Expected a plain WAV file picker name.', + ); +} + +function boundSpeechGraph(workflowId, expectedApi, submitted, sourceName) { + const route = speechRoute(workflowId); + assertSafeSourceName(sourceName); + assertCanonicalAccountingGraphEnvelope(expectedApi); + assertCanonicalAccountingGraphEnvelope(submitted); + same(submitted.paths, [ids], 'The speech recipe must run the four reviewed nodes in order.'); + keys(submitted.nodes, ids, 'Speech node identities differ.'); + for (const [id, module, action] of [ + [source, 'modules.Audio', 'Load'], + [loader, speech, route.loader], + [consumer, speech, route.consumer], + [terminal, 'modules.Primitive', 'DataViewer'], + ]) { + const node = submitted.nodes[id]; + keys(node, ['module', 'action', 'params'], 'Unexpected node execution authority.'); + same([node.module, node.action], [module, action], 'Unexpected speech operation.'); + const fileFields = Object.keys(node.params).filter((field) => node.params[field].display === 'filebrowser'); + same(fileFields, id === source ? ['file'] : [], 'Unexpected speech file input.'); + } + same(expectedApi.nodes[source].params.file, { display: 'filebrowser', value: '' }); + const expected = structuredClone(expectedApi); + expected.nodes[source].params.file.value = [sourceName]; + sameWireJson(submitted.nodes, expected.nodes, 'Speech graph differs outside its single bound WAV.'); + same(submitted.paths, expected.paths, 'Speech graph paths differ.'); + const model = submitted.nodes[loader].params; + same(model.model_id.value, { source: 'hub', value: route.repo }, 'Speech repository differs.'); + assert.equal(model.revision.value, route.revision, 'Speech model pin differs.'); + assert.equal(model.pipeline_class.value, route.pipeline, 'Speech loader class differs.'); + const controls = speechControls(route); + same( + submitted.nodes[consumer].params, + { + audio: wire(source, 'audio'), + model: wire(loader, 'model'), + ...Object.fromEntries(Object.entries(controls).map(([key, value]) => [key, { value }])), + }, + 'Speech consumer inputs or controls differ.', + ); + same(submitted.nodes[terminal].params.value, wire(consumer, 'transcript'), 'Transcript output wire differs.'); + return { route, model, controls, identity: canonicalGraphIdentity(submitted) }; +} + +function pcm16Wave(bytes) { + assert.ok(Buffer.isBuffer(bytes) && bytes.length >= 44 && bytes.length <= MAX_SPEECH_WAV_BYTES); + same(bytes.toString('ascii', 0, 4), 'RIFF'); + same(bytes.toString('ascii', 8, 12), 'WAVE'); + assert.equal(bytes.readUInt32LE(4) + 8, bytes.length, 'WAV size differs.'); + let format, pcm; + let offset = 12; + while (offset + 8 <= bytes.length) { + const chunk = bytes.toString('ascii', offset, offset + 4); + const length = bytes.readUInt32LE(offset + 4); + const start = offset + 8; + const end = start + length; + assert.ok(end <= bytes.length, 'WAV chunk exceeds retained bytes.'); + if (chunk === 'fmt ') { + assert.ok(!format && (length === 16 || (length === 18 && bytes.readUInt16LE(start + 16) === 0))); + format = bytes.subarray(start, end); + } else if (chunk === 'data') { + assert.ok(!pcm && format && length > 0 && length % 2 === 0); + pcm = bytes.subarray(start, end); + } + offset = end + (length % 2); + } + assert.ok(format && pcm && offset === bytes.length, 'WAV chunks are incomplete.'); + same( + [ + format.readUInt16LE(0), + format.readUInt16LE(2), + format.readUInt32LE(4), + format.readUInt32LE(8), + format.readUInt16LE(12), + format.readUInt16LE(14), + ], + [1, 1, 16000, 32000, 2, 16], + 'Expected mono 16 kHz PCM16 WAV.', + ); + const floats = Buffer.alloc(pcm.length * 2); + for (let i = 0; i < pcm.length; i += 2) floats.writeFloatLE(pcm.readInt16LE(i) / 32768, i * 2); + const frames = pcm.length / 2; + return { + duration: frames / 16000, + identity: { + kind: 'audio', + shape: [frames, 1], + sampleRate: 16000, + dtype: 'float32-le', + byteSize: floats.length, + sha256: digest(floats), + }, + }; +} + +function expectedAccounting(controls) { + const fields = Object.fromEntries( + Object.entries(controls).map(([field, value]) => [ + field, + field === 'language' + ? { disposition: 'inactive', inputValue: value, ...literal(value), reason: 'feature-disabled' } + : { disposition: 'consumed', inputValue: value, ...literal(value === 'segment' ? true : value) }, + ]), + ); + return { + schemaVersion: 1, + fields, + inputProjections: {}, + outputProjections: {}, + omittedFields: {}, + unaccountedFields: [], + complete: true, + }; +} + +export function verifyPrivateSpeechConsumer({ workflowId, expectedApi, submitted, output, sourceName, wavBytes }) { + const bound = boundSpeechGraph(workflowId, expectedApi, submitted, sourceName); + const read = output.resolvedExecutionInputs; + assert.ok(read, 'Native speech consumer evidence is required.'); + same( + [read.schemaVersion, read.source, read.taskId, read.attemptIndex, read.nodeId], + [1, 'backend-execution', output.taskId, 0, terminal], + 'Native speech evidence owner differs.', + ); + assert.equal(output.nodeId, terminal); + same(read.uncapturedNodeIds, []); + assert.equal(read.truncated, false); + same(read.fieldAccountingStatus, completeStatus, 'Complete native speech control accounting is required.'); + same(read.mediaEvidenceStatus, completeStatus, 'Complete native speech media evidence is required.'); + same(read.nodes.map((row) => row.nodeId).sort(), ids, 'Native speech node owners are incomplete or ambiguous.'); + const observations = Object.fromEntries(read.nodes.map((row) => [row.nodeId, row])); + for (const id of ids) { + same( + [observations[id].module, observations[id].action], + [submitted.nodes[id].module, submitted.nodes[id].action], + 'Native speech observation scope differs.', + ); + same(observations[id].omittedFields, {}); + } + const { route, model, controls } = bound; + for (const id of [source, consumer, terminal]) same(observations[id].fields, {}); + same( + observations[loader].fields, + { + device: literal(model.device.value), + dtype: literal(model.dtype.value), + model_id: literal(route.repo), + pipeline_class: literal(route.pipeline), + revision: literal(route.revision), + }, + 'Native speech loader or model pin differs.', + ); + const wave = pcm16Wave(wavBytes); + const input = { sourceValue: sourceName, sha256: digest(wavBytes), byteSize: wavBytes.length, converted: false }; + same( + observations[source].mediaEvidence, + media({}, { audio: [wave.identity] }, { file: [input] }), + 'Native Audio.Load WAV or decoded audio differs.', + ); + same(observations[consumer].fieldAccounting, expectedAccounting(controls), 'Native speech controls differ.'); + same( + observations[consumer].mediaEvidence, + media({ audio: [wave.identity] }, {}, {}), + 'The speech consumer did not observe the same decoded audio.', + ); + return { ...bound, wave, input }; +} + +function speechTranscript(bytes, item, bound) { + assert.ok(Buffer.isBuffer(bytes) && bytes.length > 0 && bytes.length <= MAX_SPEECH_TRANSCRIPT_BYTES); + const transport = JSON.parse(new TextDecoder('utf-8', { fatal: true }).decode(bytes)); + assert.ok(Array.isArray(transport) && transport.length === 1 && typeof transport[0] === 'string'); + same(transport, item.value, 'Transcript bytes do not match the native Data Viewer value.'); + const transcript = JSON.parse(transport[0]); + keys(transcript, ['schemaVersion', 'task', 'text', 'timestampMode', 'durationSeconds', 'segments']); + same( + [transcript.schemaVersion, transcript.task, transcript.timestampMode, transcript.durationSeconds], + [1, 'transcribe', bound.route.timestamps, bound.wave.duration], + 'Delivered transcript settings differ.', + ); + assert.ok(Array.isArray(transcript.segments) && transcript.segments.length > 0); + let previous = 0; + const pieces = []; + for (const segment of transcript.segments) { + keys(segment, ['start', 'end', 'text']); + assert.ok( + Number.isFinite(segment.start) && + Number.isFinite(segment.end) && + previous <= segment.start && + segment.start < segment.end && + segment.end <= bound.wave.duration, + 'Invalid speech transcript timestamps.', + ); + assert.ok(typeof segment.text === 'string' && segment.text.length > 0 && segment.text.trim() === segment.text); + previous = segment.end; + pieces.push(segment.text); + } + assert.equal(transcript.text, pieces.join(' '), 'Transcript text and timed segments differ.'); + return transcript; +} + +// Offline observation only. Source-template review and release are separate. +export function verifyPrivateSpeechRun({ + workflowId, + expectedApi, + creator, + outputPackage, + run, + graphCompleted, + graphRequest, + graphAcknowledgment, + sourceName, + wavBytes, + outputRef, + outputBytes, + modelObservation, + sourceBefore, + sourceAfter, +}) { + const route = speechRoute(workflowId); + const { + output, + task: nativeTask, + hints, + } = validateNativeVariantRun({ + target: { modelType: route.modelType, task }, + outputNodeId: terminal, + displayType: 'text', + creator, + outputPackage, + run, + graphCompleted, + graphRequest, + graphAcknowledgment, + }); + const bound = verifyPrivateSpeechConsumer({ + workflowId, + expectedApi, + submitted: graphRequest, + output, + sourceName, + wavBytes, + }); + same(creator.apiGraph.nodes, graphRequest.nodes, 'Creator speech graph differs.'); + same(creator.apiGraph.paths, graphRequest.paths, 'Creator speech paths differ.'); + same( + graphCompleted.runtimeHints, + { ...hints, controlledArtifacts: [], loaderContract: [] }, + 'Unexpected native speech execution authority.', + ); + const fingerprint = selectBackendRuntimeFingerprintEvidence([nativeTask.runtimeFingerprint]); + assert.ok(fingerprint, 'Native runtime fingerprint is required.'); + const attestation = backendSourceEvidence({ + before: sourceBefore, + after: sourceAfter, + runtimeFingerprint: nativeTask.runtimeFingerprint, + }); + same(attestation.blockers, [], 'Backend source attestation differs.'); + assert.equal(modelObservation.error, false); + assert.equal(modelObservation.runtimeFingerprint, fingerprint.fingerprint); + assert.equal(modelObservation.models.length, 1); + assert.equal(modelObservation.models[0].complete, true); + assert.equal(modelObservation.models[0].repairRequired, false); + const observedModel = selectInstalledModelIdentity(modelObservation, route.repo); + assert.equal(observedModel?.modelRevision, `${route.repo}@${route.revision}`, 'Installed speech model pin differs.'); + assert.equal(nativeTask.runtimeMeasurement?.device, bound.model.device.value, 'Native speech device differs.'); + const measurement = nativeTask.runtimeMeasurement; + assert.ok( + Number.isFinite(measurement.elapsedSeconds) && measurement.elapsedSeconds > 0, + 'Native speech elapsed time is missing.', + ); + assert.ok(Number.isSafeInteger(measurement.peakAllocatedBytes) && measurement.peakAllocatedBytes > 0); + assert.equal(measurement.peakMeasurementVersion, 2); + assert.equal(outputBytes.length, outputRef.file.bytes, 'Retained transcript byte count differs.'); + assert.equal(digest(outputBytes), outputRef.file.sha256, 'Retained transcript bytes differ.'); + const item = validateNativeVariantOutput({ + output, + outputRef, + task: nativeTask, + bytes: outputBytes, + displayType: 'text', + contentType: 'text/plain', + }); + const transcript = speechTranscript(outputBytes, item, bound); + return { + workflowId, + taskId: nativeTask.task_id, + runTitle: hints.workflowTitle, + capturedAt: new Date(nativeTask.completed_at * 1000).toISOString(), + modelRevision: observedModel.modelRevision, + graphHash: bound.identity.hash, + input: bound.input, + decodedAudio: bound.wave.identity, + runtimeFingerprint: normalizeBackendRuntime(fingerprint).lockFingerprint, + backendSourceFingerprint: attestation.identity.fingerprint, + executionDurationSeconds: measurement.elapsedSeconds, + peakMemoryBytes: measurement.peakAllocatedBytes, + outputSha256: outputRef.file.sha256, + transcript, + scope: 'private-native-speech-observation', + }; +} + +async function readPrivateSpeechCapture({ + clientRoot, + canonicalGraph, + captureRoot, + evidenceRef, + graphRequestRef, + graphAcknowledgmentRef, +}) { + const retainedFiles = []; + const read = (ref, maximum) => { + const result = readCanonicalEvidenceFile(captureRoot, ref, maximum); + retainedFiles.push({ ...ref, absolutePath: result.file }); + return result.bytes; + }; + const readJson = (ref, maximum) => JSON.parse(new TextDecoder('utf-8', { fatal: true }).decode(read(ref, maximum))); + const evidence = readJson(evidenceRef, 64 * 1024); + assert.equal(evidence.schemaVersion, 1); + speechRoute(evidence.workflowId); + assert.ok( + ['modiff.private.speech-recognition-observation.v1', 'modiff.private.input-bound-speech-capture.v1'].includes( + evidence.format, + ), + ); + same(evidence.qualificationClaims, { releaseEligible: false, technicalVariant: true }); + assert.ok(Array.isArray(evidence.inputs) && evidence.inputs.length === 1); + assert.ok(Array.isArray(evidence.outputs) && evidence.outputs.length === 1); + assert.ok(Array.isArray(evidence.modelObservations) && evidence.modelObservations.length === 1); + const [input] = evidence.inputs; + const [outputRef] = evidence.outputs; + same([input.nodeId, input.field], [source, 'file']); + const creator = readJson(evidence.creatorPackage); + const outputPackage = readJson(evidence.outputPackage); + const run = readJson(evidence.runDetail); + const graphRequest = readJson(graphRequestRef ?? evidence.graphRequest); + const registry = readJson(evidence.nodes).nodes; + for (const [id, { module, action }] of Object.entries(graphRequest.nodes)) { + const contract = registry[`${module}.${action}`]; + same([contract?.module, contract?.action], [module, action], 'Speech runtime node registry differs.'); + same( + Object.keys(contract.params).filter((field) => contract.params[field].display === 'filebrowser'), + id === source ? ['file'] : [], + 'The retained speech worker had an unbound file input.', + ); + } + const [expectedApi, ...captures] = await exportCanonicalWorkflowGraphs(clientRoot, [ + canonicalGraph, + creator.graph, + outputPackage.graph, + run.workflow_snapshot, + ]); + for (const capture of captures) { + sameWireJson(capture.nodes, graphRequest.nodes, 'Retained visual speech graph exports to different nodes.'); + same(capture.paths, graphRequest.paths, 'Retained visual speech graph exports to different paths.'); + } + const observation = verifyPrivateSpeechRun({ + workflowId: evidence.workflowId, + expectedApi, + creator, + outputPackage, + run, + graphRequest, + graphAcknowledgment: readJson(graphAcknowledgmentRef ?? evidence.graphAcknowledgment), + graphCompleted: readJson(evidence.graphCompleted), + sourceName: input.sourceValue, + wavBytes: read(input.file, MAX_SPEECH_WAV_BYTES), + outputRef, + outputBytes: read(outputRef.file, MAX_SPEECH_TRANSCRIPT_BYTES), + modelObservation: readJson(evidence.modelObservations[0]), + sourceBefore: readJson(evidence.backendSourceBefore).identity, + sourceAfter: readJson(evidence.backendSourceAfter).identity, + }); + return { observation, evidence, retainedFiles }; +} + +export async function readPrivateSpeechRun(args) { + return (await readPrivateSpeechCapture(args)).observation; +} + +// The canonical recorder can recognize this exact private recipe. Its +// immutable evidence never implies permission to register a public template. +export async function readCanonicalSpeechEvidence({ clientRoot, manifest, graph, authoring, artifact, evidencePath }) { + const route = speechRoute(manifest.id); + const target = canonicalWorkflowAuthoringContract(manifest, graph, authoring, artifact); + same(target.modelSet, [{ repoId: route.repo, revision: route.revision }], 'Canonical speech pin differs.'); + same(target.outputPlan.mediaKinds, ['json'], 'Canonical speech must deliver structured text.'); + assert.equal(target.outputPlan.minimumAssetCount, 1); + const stat = lstatSync(evidencePath); + assert.ok(stat.isFile() && !stat.isSymbolicLink() && stat.size > 0 && stat.size <= 65_536); + const descriptorBytes = readFileSync(evidencePath); + const evidence = JSON.parse(descriptorBytes); + keys(evidence, ['schemaVersion', 'format', 'workflowId', 'capture', 'graphRequest', 'graphAcknowledgment']); + assert.equal(evidence.schemaVersion, 1); + assert.equal(evidence.format, 'modiff.private.speech-to-text-input-bound.v1'); + assert.equal(evidence.workflowId, manifest.id); + const evidenceRoot = realpathSync(dirname(evidencePath)); + const { + observation, + evidence: capture, + retainedFiles, + } = await readPrivateSpeechCapture({ + clientRoot, + canonicalGraph: graph, + captureRoot: evidenceRoot, + evidenceRef: evidence.capture, + graphRequestRef: evidence.graphRequest, + graphAcknowledgmentRef: evidence.graphAcknowledgment, + }); + assert.equal(observation.workflowId, manifest.id, 'Captured speech workflow differs.'); + assert.equal(observation.modelRevision, `${route.repo}@${route.revision}`, 'Captured speech pin differs.'); + assert.equal(observation.runTitle, basename(manifest.graphPath, '.json'), 'Canonical speech run title differs.'); + for (const ref of retainedFiles) readCanonicalEvidenceFile(evidenceRoot, ref); + assert.ok(readFileSync(evidencePath).equals(descriptorBytes), 'Speech descriptor changed during validation.'); + + const receipt = { + schemaVersion: 1, + format: 'modiff.canonical-workflow-run-receipt.v1', + proofKind: 'real_backend_input_bound_model_variant', + ...target, + recipeTitle: authoring.title, + runTitle: observation.runTitle, + taskId: observation.taskId, + capturedAt: observation.capturedAt, + graphHash: observation.graphHash, + resourceCandidateId: null, + runtimeFingerprint: observation.runtimeFingerprint, + backendSourceFingerprint: observation.backendSourceFingerprint, + outputHash: `sha256:bytes:${observation.outputSha256}`, + executionDurationSeconds: observation.executionDurationSeconds, + peakMemoryBytes: observation.peakMemoryBytes, + canonicalDefaultsExecuted: false, + inputBinding: { nodeId: source, field: 'file', ...observation.input, decodedAudio: observation.decodedAudio }, + transcriptEvidence: { + storage: 'native-text-json', + durationSeconds: observation.transcript.durationSeconds, + timestampMode: observation.transcript.timestampMode, + segmentCount: observation.transcript.segments.length, + }, + observationLimits: { + fullConsumedFieldAccounting: false, + speechConsumerControlsObserved: true, + actualRecognizerInputAfterNormalization: false, + physicalPlatformQualification: false, + }, + qualificationClaims: { + publicTemplate: false, + qualityApproved: false, + rightsApproved: false, + hardwareQualified: false, + modelResourceQualified: false, + }, + }; + const provenance = { + format: 'modiff.input-bound-model-variant-proof.v1', + receipt, + evidenceFiles: { + capture: evidence.capture, + graphRequest: evidence.graphRequest, + graphAcknowledgment: evidence.graphAcknowledgment, + input: capture.inputs[0].file, + output: capture.outputs[0].file, + }, + }; + return { receipt, provenance, evidence, descriptorBytes, retainedFiles, evidenceRoot }; +} diff --git a/scripts/private-speech-evidence.test.mjs b/scripts/private-speech-evidence.test.mjs new file mode 100644 index 00000000..2a0b3c64 --- /dev/null +++ b/scripts/private-speech-evidence.test.mjs @@ -0,0 +1,250 @@ +import assert from 'node:assert/strict'; +import { createHash } from 'node:crypto'; +import test from 'node:test'; +import { verifyPrivateSpeechConsumer } from './private-speech-evidence.mjs'; + +const sha256 = (bytes) => createHash('sha256').update(bytes).digest('hex'); +const sourceName = 'sample-source.wav'; +const status = { schemaVersion: 1, truncated: false }; +const ctc = { + type: 'HuggingFaceCTCSpeechRecognitionModel', + repo: 'facebook/wav2vec2-base-960h', + pin: '22aad52d435eb6dbaf354bdad9b0da84ce7d6156', + loader: 'LoadCTCSpeechRecognitionModel', + method: 'AutoModelForCTC', + consumer: 'TranscribeCTCAudio', + timestamps: 'word', +}; +const whisper = { + type: 'HuggingFaceSpeechRecognitionModel', + repo: 'openai/whisper-tiny', + pin: '169d4a4341b33bc18d8881c4b69c2e104e1cc0af', + loader: 'LoadSpeechRecognitionModel', + method: 'AutoModelForSpeechSeq2Seq', + consumer: 'TranscribeAudio', + timestamps: 'segment', +}; + +function capture(route) { + const wavBytes = Buffer.from( + '524946462800000057415645666d74201000000001000100803e0000007d000002001000646174610400000000c00040', + 'hex', + ); + const floats = Buffer.from('000000bf0000003f', 'hex'); + const identity = { + kind: 'audio', + shape: [2, 1], + sampleRate: 16000, + dtype: 'float32-le', + byteSize: 8, + sha256: sha256(floats), + }; + const files = { + file: [{ sourceValue: sourceName, byteSize: wavBytes.length, sha256: sha256(wavBytes), converted: false }], + }; + const media = { schemaVersion: 1, source: 'native-builtin-media-v1', status: 'complete', controls: {} }; + const mediaSource = { ...media, inputs: {}, outputs: { audio: [identity] }, files }; + const mediaConsumer = { ...media, inputs: { audio: [structuredClone(identity)] }, outputs: {}, files: {} }; + const literal = (value) => ({ value, source: 'literal' }); + const active = (value, actual = value) => ({ disposition: 'consumed', inputValue: value, ...literal(actual) }); + const controls = { + timestamps: active(route.timestamps, route === whisper ? true : 'word'), + chunk_length_seconds: active(30), + stride_length_seconds: active(5), + ...(route === whisper + ? { + task: active('transcribe'), + language: { disposition: 'inactive', inputValue: '', ...literal(''), reason: 'feature-disabled' }, + } + : {}), + }; + const model = { + model_id: route.repo, + pipeline_class: route.method, + revision: route.pin, + device: 'cuda:0', + dtype: 'float32', + }; + const pipeline = 'modules.HuggingFaceSpeech'; + const wire = (sourceId, sourceKey) => ({ display: 'input', sourceId, sourceKey }); + const graphNode = (module, action, params) => ({ module, action, params }); + const paramsFrom = (values) => Object.fromEntries(Object.entries(values).map(([key, value]) => [key, { value }])); + const nodes = { + 'node-01': graphNode('modules.Audio', 'Load', { file: { display: 'filebrowser', value: '' } }), + 'node-02': graphNode( + pipeline, + route.loader, + paramsFrom({ ...model, model_id: { source: 'hub', value: route.repo } }), + ), + 'node-03': graphNode(pipeline, route.consumer, { + ...paramsFrom(Object.fromEntries(Object.entries(controls).map(([key, row]) => [key, row.inputValue]))), + audio: wire('node-01', 'audio'), + model: wire('node-02', 'model'), + }), + 'node-04': graphNode('modules.Primitive', 'DataViewer', { value: wire('node-03', 'transcript') }), + }; + const expectedApi = { sid: 'test', nodes, paths: [Object.keys(nodes)] }; + const submitted = structuredClone(expectedApi); + submitted.nodes['node-01'].params.file.value = [sourceName]; + const nodeReceipts = Object.entries(nodes).map(([nodeId, { module, action }]) => ({ + nodeId, + module, + action, + fields: {}, + omittedFields: {}, + })); + nodeReceipts[0].mediaEvidence = mediaSource; + nodeReceipts[1].fields = Object.fromEntries(Object.entries(model).map(([key, value]) => [key, literal(value)])); + nodeReceipts[2].fieldAccounting = { + schemaVersion: 1, + complete: true, + fields: controls, + inputProjections: {}, + outputProjections: {}, + omittedFields: {}, + unaccountedFields: [], + }; + nodeReceipts[2].mediaEvidence = mediaConsumer; + const output = { + taskId: 'speech-task', + nodeId: 'node-04', + resolvedExecutionInputs: { + schemaVersion: 1, + source: 'backend-execution', + taskId: 'speech-task', + attemptIndex: 0, + nodeId: 'node-04', + truncated: false, + uncapturedNodeIds: [], + nodes: nodeReceipts, + fieldAccountingStatus: { ...status }, + mediaEvidenceStatus: { ...status }, + }, + }; + return { workflowId: route.type + ':speech_to_text', expectedApi, submitted, output, sourceName, wavBytes }; +} + +test('uses bound audio and effective native controls for both supported speech-to-text recipes', () => { + for (const route of [whisper, ctc]) { + const checked = verifyPrivateSpeechConsumer(capture(route)); + assert.equal(checked.route.repo, route.repo); + assert.equal(checked.wave.duration, 2 / 16000); + assert.equal(checked.input.sourceValue, sourceName); + } +}); + +test('rejects legacy speech receipts and any incomplete native accounting', () => { + for (const route of [whisper, ctc]) { + const older = capture(route); + const receipt = older.output.resolvedExecutionInputs; + delete receipt.fieldAccountingStatus; + delete receipt.nodes[2].fieldAccounting; + delete receipt.nodes[2].mediaEvidence; + assert.throws(() => verifyPrivateSpeechConsumer(older), /Complete native speech control accounting/u); + receipt.fieldAccountingStatus = { ...status }; + assert.throws(() => verifyPrivateSpeechConsumer(older), /Native speech controls differ/u); + receipt.fieldAccountingStatus.truncated = true; + assert.throws(() => verifyPrivateSpeechConsumer(older), /Complete native speech control accounting/u); + } +}); + +test('rejects changed audio, controls, graph wiring, model pin and output ownership', () => { + const mutations = [ + [ + 'consumer hash', + (row, read) => { + read.nodes[2].mediaEvidence.inputs.audio[0].sha256 = '0'.repeat(64); + }, + /same decoded audio/u, + ], + [ + 'consumer origin', + (row, read) => { + read.nodes[2].fieldAccounting.fields.timestamps.source = 'override'; + }, + /speech controls differ/u, + ], + [ + 'timestamp argument', + (row, read) => { + read.nodes[2].fieldAccounting.fields.timestamps.value = 'segment'; + }, + /speech controls differ/u, + ], + [ + 'language hint', + (row, read) => { + read.nodes[2].fieldAccounting.fields.language.value = 'French'; + }, + /speech controls differ/u, + ], + [ + 'audio bytes', + (row) => { + row.wavBytes[45] ^= 1; + }, + /Audio.Load WAV or decoded audio differs/u, + ], + [ + 'audio filename', + (row) => { + row.sourceName = '../sample-source.wav'; + }, + /plain WAV file picker name/u, + ], + [ + 'conversion', + (row, read) => { + read.nodes[0].mediaEvidence.files.file[0].converted = true; + }, + /Audio.Load WAV or decoded audio differs/u, + ], + [ + 'loader pin', + (row, read) => { + read.nodes[1].fields.revision.value = '0'.repeat(40); + }, + /loader or model pin differs/u, + ], + [ + 'output owner', + (row, read) => { + read.nodeId = 'node-02'; + }, + /speech evidence owner differs/u, + ], + [ + 'node owners', + (row, read) => { + read.nodes[0].nodeId = 'node-03'; + }, + /node owners are incomplete or ambiguous/u, + ], + [ + 'audio wire', + (row) => { + row.submitted.nodes['node-03'].params.audio.sourceKey = 'filename'; + }, + /graph differs outside/u, + ], + [ + 'extra graph authority', + (row) => { + row.submitted.runtimePreparation = {}; + }, + /top-level execution authority/u, + ], + [ + 'wrong route', + (row) => { + row.workflowId = whisper.type + ':speech_translation'; + }, + /Unsupported private speech/u, + ], + ]; + for (const [name, tamper, error] of mutations) { + const row = capture(whisper); + tamper(row, row.output.resolvedExecutionInputs); + assert.throws(() => verifyPrivateSpeechConsumer(row), error, name); + } +}); diff --git a/scripts/release-contract-core.mjs b/scripts/release-contract-core.mjs index 8305b195..fdf2b747 100644 --- a/scripts/release-contract-core.mjs +++ b/scripts/release-contract-core.mjs @@ -764,6 +764,16 @@ export async function readCanonicalWorkflowEvidence({ clientRoot, backendRoot, w const evidence = JSON.parse(descriptorBytes.toString('utf8')); assert.equal(evidence.schemaVersion, 1); assert.equal(evidence.workflowId, workflowId); + if ( + evidence.format === 'modiff.private.speech-to-text-input-bound.v1' && + [ + 'HuggingFaceSpeechRecognitionModel:speech_to_text', + 'HuggingFaceCTCSpeechRecognitionModel:speech_to_text', + ].includes(workflowId) + ) { + const { readCanonicalSpeechEvidence } = await import('./private-speech-evidence.mjs'); + return readCanonicalSpeechEvidence({ clientRoot, manifest, graph, authoring, artifact, evidencePath }); + } if ( evidence.format === 'modiff.private.input-bound-model-smoke.v1' && workflowId === 'MarigoldDepthPipeline:depth_estimation' From 53a43eaa9954d3702574748b61a5778240140216 Mon Sep 17 00:00:00 2001 From: Sourav Das Date: Fri, 20 Nov 2026 22:13:56 +0530 Subject: [PATCH 270/440] Document and bind the paired evidence contract --- .github/workflows/ci.yml | 4 ++-- README.md | 2 +- docs/modiff-client-architecture.md | 9 +++++++++ scripts/bundle-budget.mjs | 4 ++++ 4 files changed, 16 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 11893148..21f4df15 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -33,7 +33,7 @@ jobs: with: repository: sdevil7th/MoDiff # Pair R04 damaged-metadata readiness and the existing setup contract. - ref: c820db3aa9369370d7e2e14c98484d8abf9aedbf + ref: 6df52c2e2f86313ace4838e17450b9be005b631b path: MoDiff persist-credentials: false - name: Verify the pinned backend supports native setup @@ -89,7 +89,7 @@ jobs: with: repository: sdevil7th/MoDiff # Match the immutable backend revision in the Client quality job. - ref: c820db3aa9369370d7e2e14c98484d8abf9aedbf + ref: 6df52c2e2f86313ace4838e17450b9be005b631b path: MoDiff persist-credentials: false - name: Verify the pinned backend supports native setup diff --git a/README.md b/README.md index ed9cbde6..e97f7c9b 100644 --- a/README.md +++ b/README.md @@ -85,7 +85,7 @@ application source pair is: | MoDiff | `1239d1cecd12a7318eb263ca17c34d4fc0445d14` | | MoDiff-client | `c561a01395044fd71c1918e95fb9e9709d8e7601` | -CI backend contract: `c820db3aa9369370d7e2e14c98484d8abf9aedbf`. +CI backend contract: `6df52c2e2f86313ace4838e17450b9be005b631b`. Both CI jobs use this immutable backend revision. It includes shared video stages, conditional reference requirements, the scoped Linux shared-memory LTX diff --git a/docs/modiff-client-architecture.md b/docs/modiff-client-architecture.md index 18b47f56..5b8d1d73 100644 --- a/docs/modiff-client-architecture.md +++ b/docs/modiff-client-architecture.md @@ -1734,6 +1734,15 @@ model object or credential is captured. Receipt identity cannot be reassigned by history enrichment. See the paired backend API reference for limits and omissions; receipt presence is not output-quality/publication proof. +History and workflow packages preserve the bounded decoded RGB input projection +for reviewed image edits and the typed audio input observation for speech +recognition. The Edit projection identifies the pixels supplied to Diffusers +and their connected source. Speech control accounting records the dispatched +timestamp, chunking and task arguments separately from the audio identity. +Missing observations in older receipts stay missing. The canonical evidence +reader checks saved inputs, native outputs and the pinned recipe before +accepting a private execution record. + Optional `summaryScopeVersion: 2` keeps builtin LoRA/adapter descriptor fields in their original node records while excluding them from the primary-model summary. The parser recomputes summary, ambiguity and omissions with the same exact builtin diff --git a/scripts/bundle-budget.mjs b/scripts/bundle-budget.mjs index 2c804336..08777f78 100644 --- a/scripts/bundle-budget.mjs +++ b/scripts/bundle-budget.mjs @@ -490,6 +490,8 @@ const SOURCE_LICENSES = new URL('../public/THIRD_PARTY_LICENSES.txt', import.met // 504492/682980/346033 largest/startup/deferred gzip bytes: the reviewed // migration ceilings below still pass with 8/12/304 bytes of headroom. const MAX_STARTUP_CHUNK_GZIP_BYTES = + // Preserve the measured 17-byte headroom with the new speech and edit receipt parsers. + 296 + // Speech timestamp authoring and saved audio receipts measure 519191 bytes. // Add 918 bytes over 518273 and retain the 17-byte headroom. 918 + @@ -741,6 +743,8 @@ const MAX_STARTUP_CHUNK_GZIP_BYTES = // The same build measures 673359 aggregate startup bytes (+45 over the cap). // Keep 19 bytes of headroom; deferred limits and loading boundaries stay fixed. const MAX_STARTUP_GZIP_BYTES = + // The production startup total rose by 296 gzip bytes. Deferred limits are unchanged. + 296 + // The speech changes measure 697677 bytes, 921 above 696756. // Preserve the 20-byte headroom, chunk memberships, and deferred budgets. 921 + From 6ed8832bb3935fddf549da7e83fc5c41cc45f671 Mon Sep 17 00:00:00 2001 From: Sourav Das Date: Fri, 20 Nov 2026 22:22:51 +0530 Subject: [PATCH 271/440] Validate saved private image edits and late native snapshots --- package.json | 2 +- scripts/image-edit-source-binding.mjs | 74 ++++ scripts/image-edit-source-binding.test.mjs | 118 +++++ scripts/native-variant-run-evidence.mjs | 81 +++- scripts/private-image-edit-evidence.mjs | 403 ++++++++++++++++++ scripts/private-image-edit-evidence.test.mjs | 210 +++++++++ scripts/release-contract-core.mjs | 7 + .../image-edit-source-binding.v1.json | 302 +++++++++++++ 8 files changed, 1176 insertions(+), 21 deletions(-) create mode 100644 scripts/image-edit-source-binding.mjs create mode 100644 scripts/image-edit-source-binding.test.mjs create mode 100644 scripts/private-image-edit-evidence.mjs create mode 100644 scripts/private-image-edit-evidence.test.mjs create mode 100644 tests/fixtures/image-edit-source-binding.v1.json diff --git a/package.json b/package.json index 70b9d8f3..885a556a 100644 --- a/package.json +++ b/package.json @@ -85,7 +85,7 @@ "test:template-assets:local": "node --test scripts/template-default-inputs.test.mjs", "test:template-quality": "node --test scripts/template-quality.test.mjs", "test:live-qwen-proof": "node --test scripts/live-qwen-proof.test.mjs scripts/native-modular-image-resource.test.mjs scripts/executed-native-media-resource.test.mjs scripts/workflow-auto-provenance.test.mjs scripts/workflow-auto-audio-provenance.test.mjs scripts/workflow-auto-video-provenance.test.mjs scripts/workflow-auto-control-provenance.test.mjs scripts/workflow-auto-masked-image-provenance.test.mjs scripts/retained-native-text-provenance.test.mjs scripts/retained-native-direct-image-provenance.test.mjs scripts/retained-native-modular-image-provenance.test.mjs scripts/canonical-runtime-hints.test.mjs scripts/hardware-qualification.test.mjs scripts/hardware-execution-device.test.mjs scripts/hardware-runtime-identity.test.mjs scripts/release-qualification-policy.test.mjs scripts/resource-qualification.test.mjs scripts/route-resource-qualification.test.mjs scripts/resource-qualification-campaign.test.mjs scripts/template-qualification.test.mjs scripts/release-qualification-campaign.test.mjs", - "test:release-contract": "node --test scripts/backend-installer-contract.test.mjs scripts/backend-node-registry.test.mjs scripts/release-contract.test.mjs scripts/release-candidate-report.test.mjs scripts/template-asset-release-contract.test.mjs scripts/builtin-media-qualification.test.mjs scripts/input-bound-model-evidence.test.mjs scripts/canonical-image-accounting.test.mjs scripts/marigold-preview-evidence.test.mjs scripts/private-speech-evidence.test.mjs scripts/prompt-variant-evidence.test.mjs scripts/retained-template-association.test.mjs scripts/retained-gallery-release.test.mjs scripts/saved-workflow-compatibility.test.mjs", + "test:release-contract": "node --test scripts/backend-installer-contract.test.mjs scripts/backend-node-registry.test.mjs scripts/release-contract.test.mjs scripts/release-candidate-report.test.mjs scripts/template-asset-release-contract.test.mjs scripts/builtin-media-qualification.test.mjs scripts/input-bound-model-evidence.test.mjs scripts/canonical-image-accounting.test.mjs scripts/marigold-preview-evidence.test.mjs scripts/private-speech-evidence.test.mjs scripts/private-image-edit-evidence.test.mjs scripts/image-edit-source-binding.test.mjs scripts/prompt-variant-evidence.test.mjs scripts/retained-template-association.test.mjs scripts/retained-gallery-release.test.mjs scripts/saved-workflow-compatibility.test.mjs", "test:live-backend-contract": "node scripts/live-backend-contract.mjs", "test:gallery-harness": "node --test scripts/template-gallery-harness.test.mjs scripts/source-video-timing.test.mjs scripts/retained-layer-sheet.test.mjs scripts/template-gallery-maintainer-acceptance.test.mjs scripts/template-recipe-history.test.mjs scripts/release-showcase-scope.test.mjs scripts/template-input-roles.test.mjs", "test:gallery-runner": "node --test scripts/template-gallery-runner.test.mjs && npm run test:demo-tools", diff --git a/scripts/image-edit-source-binding.mjs b/scripts/image-edit-source-binding.mjs new file mode 100644 index 00000000..33441a4d --- /dev/null +++ b/scripts/image-edit-source-binding.mjs @@ -0,0 +1,74 @@ +// Private join for an unchanged RGB image on the direct Image.Load → Edit wire. +// The caller owns exact recipe, archived file, task and output authorization. +import assert from 'node:assert/strict'; +import { createHash } from 'node:crypto'; +import { coerceResolvedExecutionInputs } from '../src/studio/resolvedExecutionInputs.ts'; +import { stableJsonValue } from './canonical-json.mjs'; + +const literal = (value) => ({ value, source: 'literal' }); + +export function verifyImageEditSourceBinding({ submittedApi, receipt, outputIdentity, loadId, editId }) { + assert.notEqual(loadId, editId, 'Load and Edit must be separate nodes.'); + const load = submittedApi.nodes[loadId]; + const edit = submittedApi.nodes[editId]; + assert.equal(load?.module, 'modules.Image'); + assert.equal(load.action, 'Load'); + assert.equal(edit?.module, 'modules.DiffusersImage'); + assert.equal(edit.action, 'Edit'); + assert.deepEqual( + edit.params.image, + { display: 'input', sourceId: loadId, sourceKey: 'image' }, + 'Edit must have the declared single Image.Load image wire.', + ); + + const observed = coerceResolvedExecutionInputs(receipt, outputIdentity); + assert.ok(observed && !observed.truncated && observed.uncapturedNodeIds.length === 0, 'Incomplete native receipt.'); + assert.deepEqual(observed.mediaEvidenceStatus, { schemaVersion: 1, truncated: false }); + assert.deepEqual(observed.fieldAccountingStatus, { schemaVersion: 1, truncated: false }); + const loaded = observed.nodes.find((row) => row.nodeId === loadId); + const edited = observed.nodes.find((row) => row.nodeId === editId); + assert.equal(loaded?.module, load.module); + assert.equal(loaded.action, load.action); + assert.equal(edited?.module, edit.module); + assert.equal(edited.action, edit.action); + assert.deepEqual(loaded.omittedFields, {}); + assert.deepEqual(edited.omittedFields, {}); + assert.deepEqual(edited.fields.executed_task, literal('edit_image')); + + const media = loaded.mediaEvidence; + assert.equal(media?.status, 'complete', 'The native source decode is missing.'); + assert.equal(media.files.file?.length, 1, 'A single native file observation is required.'); + const [file] = media.files.file; + assert.ok(typeof file.sourceValue === 'string' && file.sourceValue && file.byteSize > 0 && !file.converted); + assert.deepEqual( + load.params.file, + { display: 'filebrowser', value: [file.sourceValue] }, + 'Image.Load file differs from the declared selection.', + ); + assert.equal(media.outputs.image?.length, 1, 'A single native decoded image is required.'); + const [{ kind, ...decoded }] = media.outputs.image; + assert.equal(kind, 'image'); + assert.equal(decoded.mode, 'RGB'); + assert.deepEqual(media.controls, { alpha_channel: load.params.alpha_channel.value }); + assert.deepEqual(loaded.fields, { + alpha_channel: literal(media.controls.alpha_channel), + source_hashes: literal([file.sha256]), + source_widths: literal([decoded.width]), + source_heights: literal([decoded.height]), + source_modes: literal(['RGB']), + }); + + const accounting = edited.fieldAccounting; + assert.equal(accounting?.complete, true, 'Edit input accounting must be complete.'); + const projection = accounting.inputProjections.image; + assert.equal(projection.kind, 'decoded-image-v1'); + assert.equal(projection.source, 'connected'); + assert.equal(projection.sourceNodeId, loadId, 'Edit recorded a different source node.'); + assert.equal(projection.sourcePortId, 'image', 'Edit recorded a different source port.'); + assert.deepEqual(projection.values, decoded, 'Edit input pixels or geometry differ from the decoded source.'); + const digest = createHash('sha256') + .update(`decoded-image-v1\n${JSON.stringify(stableJsonValue(decoded))}`, 'ascii') + .digest('hex'); + assert.equal(projection.sha256, digest, 'Edit image projection digest differs.'); + return { sourceFile: file, decodedImage: decoded }; +} diff --git a/scripts/image-edit-source-binding.test.mjs b/scripts/image-edit-source-binding.test.mjs new file mode 100644 index 00000000..e96810e4 --- /dev/null +++ b/scripts/image-edit-source-binding.test.mjs @@ -0,0 +1,118 @@ +import assert from 'node:assert/strict'; +import { createHash } from 'node:crypto'; +import { readFileSync } from 'node:fs'; +import { before, after, test } from 'node:test'; +import { fileURLToPath } from 'node:url'; +import { createServer } from 'vite'; +import { stableJsonValue } from './canonical-json.mjs'; + +const fixture = JSON.parse( + readFileSync(new URL('../tests/fixtures/image-edit-source-binding.v1.json', import.meta.url), 'utf8'), +); +const decode = (sample) => sample.receipt.nodes.find((row) => row.nodeId === sample.loadId).mediaEvidence; +const accounting = (sample) => sample.receipt.nodes.find((row) => row.nodeId === sample.editId).fieldAccounting; +let server, verify; + +before(async () => { + server = await createServer({ + root: fileURLToPath(new URL('..', import.meta.url)), + configFile: false, + server: { middlewareMode: true, ws: false }, + }); + ({ verifyImageEditSourceBinding: verify } = await server.ssrLoadModule('/scripts/image-edit-source-binding.mjs')); +}); + +after(async () => server?.close()); + +test('joins the actual same-size Load and Edit producer records', () => { + const supplied = structuredClone(fixture); + const { kind, ...decoded } = decode(fixture).outputs.image[0]; + assert.equal(kind, 'image'); + assert.deepEqual(verify(supplied), { sourceFile: decode(fixture).files.file[0], decodedImage: decoded }); + assert.deepEqual(supplied, fixture, 'The private check must preserve original receipts.'); +}); + +for (const [label, replace, error] of [ + [ + 'changed pixels with equal geometry and a valid new projection digest', + (sample) => { + const projection = accounting(sample).inputProjections.image; + projection.values.sha256 = 'b'.repeat(64); + projection.sha256 = createHash('sha256') + .update(`decoded-image-v1\n${JSON.stringify(stableJsonValue(projection.values))}`, 'ascii') + .digest('hex'); + }, + /pixels or geometry/u, + ], + [ + 'wrong projection digest', + (sample) => (accounting(sample).inputProjections.image.sha256 = 'b'.repeat(64)), + /projection digest/u, + ], + [ + 'changed projection geometry with the same byte count', + (sample) => { + const values = accounting(sample).inputProjections.image.values; + [values.width, values.height] = [values.height, values.width]; + }, + /pixels or geometry/u, + ], + [ + 'a graph wire that names the wrong producer port', + (sample) => (sample.submittedApi.nodes[sample.editId].params.image.sourceKey = 'mask'), + /declared single/u, + ], + [ + 'a native projection from another producer', + (sample) => (accounting(sample).inputProjections.image.sourceNodeId = 'wrong-load'), + /different source node/u, + ], + [ + 'a native projection from another port', + (sample) => (accounting(sample).inputProjections.image.sourcePortId = 'mask'), + /different source port/u, + ], + [ + 'multiple decoded images', + (sample) => decode(sample).outputs.image.push(decode(sample).outputs.image[0]), + /single native decoded image/u, + ], + ['multiple files', (sample) => decode(sample).files.file.push(decode(sample).files.file[0]), /single native file/u], + [ + 'a changed original file selection', + (sample) => (sample.submittedApi.nodes[sample.loadId].params.file.value = ['other.png']), + /declared selection/u, + ], + [ + 'an overridden source image', + (sample) => { + const edit = accounting(sample); + const { kind, values, sha256 } = edit.inputProjections.image; + edit.inputProjections.image = { kind, values, sha256, source: 'override' }; + edit.omittedFields = { image: 'unsupported-origin', overrides: 'unsupported-origin' }; + edit.complete = false; + }, + /must be complete/u, + ], + [ + 'an output from another attempt', + (sample) => (sample.outputIdentity.attemptIndex = 1), + /Incomplete native receipt/u, + ], +]) { + test(`rejects ${label}`, () => { + const modified = structuredClone(fixture); + replace(modified); + assert.throws(() => verify(modified), error); + }); +} + +const old = process.env.MODIFF_SD15_EDIT_PAIRED_RECEIPTS; +test('the earlier deliberate-resize producer trace cannot prove original pixels', { skip: !old }, () => { + const [deliberatelyResized] = JSON.parse(readFileSync(old, 'utf8')); + const modified = structuredClone(fixture); + const projection = structuredClone(deliberatelyResized.nodes[0].fieldAccounting.inputProjections.image); + projection.sourceNodeId = modified.loadId; + accounting(modified).inputProjections.image = projection; + assert.throws(() => verify(modified), /pixels or geometry/u); +}); diff --git a/scripts/native-variant-run-evidence.mjs b/scripts/native-variant-run-evidence.mjs index 2d58e11b..6e4a076f 100644 --- a/scripts/native-variant-run-evidence.mjs +++ b/scripts/native-variant-run-evidence.mjs @@ -3,6 +3,26 @@ import { stableStringify } from './live-proof-provenance.mjs'; const same = (a, b, message) => assert.equal(stableStringify(a), stableStringify(b), message); const recordKeys = (row, keys, message) => same(Object.keys(row ?? {}).sort(), keys.sort(), message); +const nativeOutputFields = [ + 'id', + 'taskId', + 'sid', + 'clientRunId', + 'runInputHash', + 'workflowTabId', + 'attemptIndex', + 'nodeId', + 'fieldKey', + 'displayType', + 'formSnapshot', + 'graphSnapshot', + 'apiGraphSnapshot', + 'resolvedExecutionInputs', + 'backendProvenance', + 'mediaHash', + 'mediaCollectionHash', + 'mediaItems', +]; export function validateUnmodifiedExpertPreparation(preparation, modelType) { const { availableRamBytes, availableVramBytes, ...status } = preparation; @@ -98,26 +118,7 @@ export function validateNativeVariantRun({ same(graphCompleted.runtimePreparation, task.runtimePreparation, 'Native completion preparation differs.'); assert.equal(run.outputs.length, 1, 'A single native output is required.'); const nativeOutput = run.outputs[0]; - for (const field of [ - 'id', - 'taskId', - 'sid', - 'clientRunId', - 'runInputHash', - 'workflowTabId', - 'attemptIndex', - 'nodeId', - 'fieldKey', - 'displayType', - 'formSnapshot', - 'graphSnapshot', - 'apiGraphSnapshot', - 'resolvedExecutionInputs', - 'backendProvenance', - 'mediaHash', - 'mediaCollectionHash', - 'mediaItems', - ]) { + for (const field of nativeOutputFields) { assert.notEqual(output[field], undefined, `Original output is missing ${field}.`); same(output[field], nativeOutput[field], `Original native output ${field} differs.`); } @@ -130,6 +131,46 @@ export function validateNativeVariantRun({ return { task, output, hints }; } +// Some image output stores attach the API snapshot after the completed task +// GET returns. Compare that original response and the late native record +// before applying the ordinary complete-output validation to the late record. +export function validateLateNativeImageVariantRun({ run, persistedOutput, ...options }) { + assert.equal(options.displayType, 'image'); + assert.equal(run.outputs.length, 1); + const [early] = run.outputs; + assert.equal(early.apiGraphSnapshot, undefined, 'Unexpected already captured early API snapshot.'); + assert.ok(persistedOutput?.apiGraphSnapshot, 'The late native API snapshot is missing.'); + for (const field of nativeOutputFields) { + if (['apiGraphSnapshot', 'backendProvenance', 'mediaItems'].includes(field)) continue; + assert.notEqual(early[field], undefined, `Early native output lacks ${field}.`); + same(early[field], persistedOutput[field], `Native output changed ${field} during persistence.`); + } + const earlyMedia = early.mediaItems; + const lateMedia = persistedOutput.mediaItems; + assert.equal(earlyMedia.length, 1); + assert.equal(lateMedia.length, 1); + const { durationSeconds: earlyDuration, label: earlyLabel, ...earlyItem } = earlyMedia[0]; + const { durationSeconds: lateDuration, label: lateLabel, ...lateItem } = lateMedia[0]; + assert.equal(earlyDuration, null); + assert.equal(lateDuration, undefined); + assert.equal(earlyLabel, undefined); + assert.equal(lateLabel, 'Item 1'); + same(earlyItem, lateItem, 'Native image identity changed during persistence.'); + const provenanceAt = (row, media) => { + const { capturedAt, exactTemplateCompatible, promptSettingsHash, mediaItems, ...identity } = row.backendProvenance; + assert.ok(Number.isSafeInteger(capturedAt) && capturedAt > 0); + assert.ok(exactTemplateCompatible == null || exactTemplateCompatible === false); + assert.ok(promptSettingsHash == null); + same(mediaItems, media, 'Native provenance media differs from its output.'); + return { capturedAt, identity }; + }; + const earlyProof = provenanceAt(early, earlyMedia); + const lateProof = provenanceAt(persistedOutput, lateMedia); + assert.ok(earlyProof.capturedAt <= lateProof.capturedAt); + same(earlyProof.identity, lateProof.identity, 'Native provenance identity changed during persistence.'); + return validateNativeVariantRun({ ...options, run: { ...run, outputs: [persistedOutput] } }); +} + export function validateNativeVariantOutput({ output, outputRef, task, bytes, displayType, contentType }) { const { backendProvenance } = output; assert.equal(backendProvenance.source, 'backend-record'); diff --git a/scripts/private-image-edit-evidence.mjs b/scripts/private-image-edit-evidence.mjs new file mode 100644 index 00000000..9b3f084b --- /dev/null +++ b/scripts/private-image-edit-evidence.mjs @@ -0,0 +1,403 @@ +import assert from 'node:assert/strict'; +import { createHash } from 'node:crypto'; +import { lstatSync, readFileSync, realpathSync } from 'node:fs'; +import { dirname } from 'node:path'; +import { stableJsonValue } from './canonical-json.mjs'; +import { + backendContractIdentity, + backendSourceEvidence, + canonicalGraphIdentity, + normalizeBackendRuntime, + selectBackendRuntimeFingerprintEvidence, + selectInstalledModelIdentity, + stableStringify, +} from './live-proof-provenance.mjs'; +import { + validateLateNativeImageVariantRun, + validateNativeVariantOutput, + validateUnmodifiedExpertPreparation, +} from './native-variant-run-evidence.mjs'; +import { + canonicalWorkflowAuthoringContract, + exportCanonicalWorkflowGraphs, + readCanonicalEvidenceFile, +} from './release-contract-core.mjs'; + +export const PRIVATE_IMAGE_EDIT_FORMAT = 'modiff.private.lcm-source-bound-edit.v1'; +const workflowId = 'LatentConsistencyModelPipeline:edit_image'; +const modelRepo = 'SimianLuo/LCM_Dreamshaper_v7'; +const modelRevision = 'a85df6a8bd976cdd08b4fd8f3b73f229c9e54df5'; +const loaderClass = 'LatentConsistencyModelImg2ImgPipeline'; +const ownerOrder = [ + ['quantization', 'modules.DiffusersRuntime', 'PipelineQuantizationConfigV2'], + ['recipe', 'modules.DiffusersRuntime', 'DiffusersExecutionRecipe'], + ['loader', 'modules.DiffusersImage', 'LoadPipeline'], + ['source', 'modules.Image', 'Load'], + ['edit', 'modules.DiffusersImage', 'Edit'], + ['preview', 'modules.Image', 'Preview'], +]; +const consumedEditFields = ['guidance_scale', 'num_inference_steps', 'output_type', 'prompt', 'seed', 'strength']; +const inactiveEditFields = [ + 'cfg_normalize', + 'control_guidance_end', + 'control_guidance_start', + 'height', + 'image_guidance_scale', + 'layers', + 'max_sequence_length', + 'negative_prompt', + 'padding_mask_crop', + 'pag_adaptive_scale', + 'pag_scale', + 'reference_strength', + 'resolution', + 'use_en_prompt', + 'width', +]; +const sha256 = (bytes) => createHash('sha256').update(bytes).digest('hex'); +const same = (a, b, message) => assert.equal(stableStringify(a), stableStringify(b), message); +const keys = (row, expected) => + same(Object.keys(row ?? {}).sort(), [...expected].sort(), 'Unexpected evidence fields.'); + +function directOwners(api, hinted = false) { + keys(api, ['sid', 'nodes', 'paths', ...(hinted ? ['runtimeHints'] : [])]); + assert.equal(Object.keys(api.nodes).length, ownerOrder.length); + assert.equal(api.paths.length, 1); + const route = api.paths[0]; + assert.equal(route.length, ownerOrder.length); + assert.equal(new Set(route).size, ownerOrder.length); + return Object.fromEntries( + ownerOrder.map(([role, module, action], index) => { + const id = route[index]; + const node = api.nodes[id]; + keys(node, ['module', 'action', 'params']); + assert.equal(node.module, module); + assert.equal(node.action, action); + return [role, { id, node }]; + }), + ); +} + +export function bindPrivateImageEditGraph({ expected, submitted, input }) { + const bound = structuredClone(expected); + const canonical = directOwners(bound); + const observed = directOwners(submitted, Object.hasOwn(submitted, 'runtimeHints')); + const canonicalInput = canonical.source.node.params.file; + const canonicalPrompt = canonical.edit.node.params.prompt; + assert.deepEqual(canonicalInput, { value: [], display: 'filebrowser' }); + assert.equal(canonicalPrompt.value, ''); + assert.equal(input.nodeId, observed.source.id); + assert.equal(input.field, 'file'); + assert.match(input.sourceValue, /^[a-zA-Z0-9_-][\w.-]{0,200}\.webp$/u); + const prompt = observed.edit.node.params.prompt.value; + assert.ok(typeof prompt === 'string' && prompt.length > 0 && prompt.length <= 4096 && prompt.trim() === prompt); + assert.ok(!/[\u0000-\u001f\u007f]/u.test(prompt)); + canonicalInput.value = [input.sourceValue]; + canonicalPrompt.value = prompt; + const identity = canonicalGraphIdentity(bound); + same( + canonicalGraphIdentity(submitted), + identity, + 'Submitted edit differs outside its single declared file and prompt.', + ); + return { ...observed, prompt, identity }; +} + +export function validatePrivateImageEditFields(bound, output) { + const accounting = output.resolvedExecutionInputs; + for (const field of ['unavailableFields', 'uncapturedNodeIds']) same(accounting[field], []); + // The legacy flat summary combines the GPU loader/recipe and the inactive + // CPU preview selector. Only its exact, independently scoped causes are safe. + same(accounting.ambiguousFields, ['device']); + const roles = ownerOrder.map(([role]) => bound[role]); + same(accounting.nodes.map(({ nodeId }) => nodeId).sort(), roles.map(({ id }) => id).sort()); + for (const { id, node } of roles) { + const observed = accounting.nodes.find(({ nodeId }) => nodeId === id); + assert.equal(observed.module, node.module); + assert.equal(observed.action, node.action); + same(observed.omittedFields, {}); + } + for (const [role, value, flags] of [ + ['recipe', 'cuda:0', { disposition: 'consumed' }], + ['loader', 'cuda:0', { disposition: 'superseded', reason: 'connected-recipe' }], + ['preview', 'cpu:0', { disposition: 'inactive', reason: 'already-decoded-image' }], + ]) { + const { id, node } = bound[role]; + const observed = accounting.nodes.find(({ nodeId }) => nodeId === id); + assert.equal(node.params.device.value, value); + same(observed.fields.device, { value, source: 'literal' }); + same(observed.fieldAccounting.fields.device, { ...flags, inputValue: value, value, source: 'literal' }); + } + const { fields, complete, inputProjections, outputProjections, unaccountedFields, omittedFields } = + accounting.nodes.find(({ nodeId }) => nodeId === bound.edit.id).fieldAccounting; + assert.equal(complete, true); + same(unaccountedFields, []); + same(omittedFields, {}); + keys(inputProjections, ['image']); + keys(outputProjections, []); + const params = bound.edit.node.params; + const metadata = 'image_contract'; + const known = [...consumedEditFields, ...inactiveEditFields, metadata]; + keys(fields, known); + keys(params, [...known, 'image', 'pipeline']); + for (const field of known) { + const value = params[field].value; + assert.notEqual(value, undefined); + const expected = + field === metadata + ? { + disposition: 'metadata', + reason: 'presentation-contract', + sha256: sha256(`image-contract-v1\n${JSON.stringify(stableJsonValue(value))}`), + } + : { + ...(consumedEditFields.includes(field) + ? { disposition: 'consumed' } + : { disposition: 'inactive', reason: 'adapter-inactive' }), + inputValue: value, + value, + }; + same(fields[field], { ...expected, source: 'literal' }, `Native Edit field differs: ${field}.`); + } + return fields; +} + +async function verifySourceBinding(clientRoot, bound, output, input) { + const { createServer } = await import('vite'); + const server = await createServer({ + root: clientRoot, + configFile: false, + logLevel: 'silent', + optimizeDeps: { entries: [], noDiscovery: true }, + server: { middlewareMode: true, hmr: false, watch: null }, + appType: 'custom', + }); + try { + const { verifyImageEditSourceBinding } = await server.ssrLoadModule('/scripts/image-edit-source-binding.mjs'); + const receipt = output.resolvedExecutionInputs; + const joined = verifyImageEditSourceBinding({ + submittedApi: output.apiGraphSnapshot, + receipt, + outputIdentity: output, + loadId: bound.source.id, + editId: bound.edit.id, + }); + assert.equal(joined.sourceFile.sha256, input.file.sha256); + assert.equal(joined.sourceFile.byteSize, input.file.bytes); + return joined.decodedImage; + } finally { + await server.close(); + } +} + +function validateRuntime(task, hints, completion, observation, bound) { + same( + completion.runtimeHints, + { + ...hints, + controlledArtifacts: [], + loaderContract: ['modules.DiffusersImage.LoadPipeline'], + }, + 'Native completion runtime envelope differs.', + ); + const runtime = selectBackendRuntimeFingerprintEvidence([task.runtimeFingerprint]); + assert.match(runtime.packages.platform, /Linux/iu); + assert.equal(runtime.torch.cuda_available, true); + assert.equal(task.runtimeMeasurement.backend, 'rocm'); + assert.equal(task.runtimeMeasurement.device, 'cuda:0'); + const { elapsedSeconds, peakAllocatedBytes, peakReservedBytes, peakMeasurementVersion } = task.runtimeMeasurement; + assert.equal(peakMeasurementVersion, 2); + assert.ok(Number.isFinite(elapsedSeconds) && elapsedSeconds > 0 && elapsedSeconds <= 7200); + assert.ok(Number.isSafeInteger(peakAllocatedBytes) && peakAllocatedBytes > 0); + assert.ok(Number.isSafeInteger(peakReservedBytes) && peakReservedBytes >= peakAllocatedBytes); + assert.equal(observation.error, false); + assert.equal(observation.runtimeFingerprint, runtime.fingerprint); + assert.equal(observation.models.length, 1); + assert.equal(observation.models[0].complete, true); + assert.equal(observation.models[0].repairRequired, false); + const model = selectInstalledModelIdentity(observation, modelRepo); + assert.equal(model?.selectedRevision, modelRevision); + assert.equal(model?.modelRevision, `${modelRepo}@${modelRevision}`); + const loader = bound.loader.node.params; + same(loader.model_id.value, { source: 'hub', value: modelRepo }); + assert.equal(loader.revision.value, modelRevision); + assert.equal(loader.pipeline_class.value, loaderClass); + return { runtime, elapsedSeconds, peakAllocatedBytes }; +} + +export async function readPrivateImageEditEvidence({ clientRoot, manifest, graph, authoring, artifact, evidencePath }) { + assert.equal(manifest.id, workflowId); + const target = canonicalWorkflowAuthoringContract(manifest, graph, authoring, artifact); + same(target.modelSet, [{ repoId: modelRepo, revision: modelRevision }]); + same(target.outputPlan.mediaKinds, ['image']); + assert.equal(target.outputPlan.minimumAssetCount, 1); + const stat = lstatSync(evidencePath); + assert.ok(stat.isFile() && !stat.isSymbolicLink() && stat.size > 0 && stat.size <= 65_536); + const descriptorBytes = readFileSync(evidencePath); + const evidence = JSON.parse(descriptorBytes); + keys(evidence, [ + 'schemaVersion', + 'format', + 'workflowId', + 'capture', + 'graphRequest', + 'graphAcknowledgment', + 'persistedOutputs', + 'inputServerBefore', + 'inputServerAfter', + ]); + assert.equal(evidence.schemaVersion, 1); + assert.equal(evidence.format, PRIVATE_IMAGE_EDIT_FORMAT); + assert.equal(evidence.workflowId, workflowId); + const evidenceRoot = realpathSync(dirname(evidencePath)); + const retainedFiles = []; + const read = (ref, maximum = 16 * 1024 * 1024) => { + const physical = readCanonicalEvidenceFile(evidenceRoot, ref, maximum); + retainedFiles.push({ ...ref, absolutePath: physical.file }); + return physical; + }; + const json = (ref) => JSON.parse(read(ref).bytes); + const capture = json(evidence.capture); + keys(capture, [ + 'schemaVersion', + 'format', + 'workflowId', + 'qualificationClaims', + 'creatorPackage', + 'outputPackage', + 'runDetail', + 'nodes', + 'backendSourceBefore', + 'backendSourceAfter', + 'graphCompleted', + 'modelObservations', + 'inputs', + 'outputs', + ]); + assert.equal(capture.schemaVersion, 1); + assert.equal(capture.format, 'modiff.private.lcm-image-edit-observation.v1'); + assert.equal(capture.workflowId, workflowId); + same(capture.qualificationClaims, { releaseEligible: false, technicalVariant: true }); + assert.equal(capture.inputs.length, 1); + assert.equal(capture.outputs.length, 1); + assert.equal(capture.modelObservations.length, 1); + const [input] = capture.inputs; + const [outputRef] = capture.outputs; + keys(input, ['nodeId', 'field', 'sourceValue', 'file']); + keys(outputRef, ['backendPath', 'mediaType', 'file']); + const creator = json(capture.creatorPackage); + const outputPackage = json(capture.outputPackage); + const run = json(capture.runDetail); + const graphCompleted = json(capture.graphCompleted); + const graphRequest = json(evidence.graphRequest); + const graphAcknowledgment = json(evidence.graphAcknowledgment); + const store = json(evidence.persistedOutputs); + assert.equal(store.outputs.length, 1); + const [persistedOutput] = store.outputs; + const [expected, ...visualExports] = await exportCanonicalWorkflowGraphs(clientRoot, [ + graph, + creator.graph, + outputPackage.latestOutput.graphSnapshot, + run.workflow_snapshot, + ]); + const bound = bindPrivateImageEditGraph({ expected, submitted: graphRequest, input }); + for (const api of [creator.apiGraph, ...visualExports]) { + directOwners(api); + same(canonicalGraphIdentity(api), bound.identity, 'A saved visual owner graph differs from the original Run.'); + } + const { task, output, hints } = validateLateNativeImageVariantRun({ + target, + outputNodeId: bound.preview.id, + displayType: 'image', + creator, + outputPackage, + run, + graphCompleted, + graphRequest, + graphAcknowledgment, + persistedOutput, + validatePreparation: (preparation) => validateUnmodifiedExpertPreparation(preparation, loaderClass), + }); + same(hints.workflowSnapshot.studioForm, output.formSnapshot); + validatePrivateImageEditFields(bound, output); + const decodedInput = await verifySourceBinding(clientRoot, bound, output, input); + const inputMedia = read(input.file); + for (const ref of [evidence.inputServerBefore, evidence.inputServerAfter]) { + assert.ok(read(ref).bytes.equals(inputMedia.bytes), 'The server-bound source bytes differ.'); + } + const media = read(outputRef.file); + const item = validateNativeVariantOutput({ + output, + outputRef, + task, + bytes: media.bytes, + displayType: 'image', + contentType: 'image/webp', + }); + assert.match(output.id, /^run-output-[a-f0-9]{24}$/u); + assert.equal(item.backendPath, `@data/studio/outputs/${output.id}_item_00.webp`); + assert.equal(output.mediaCollectionHash, `sha256:collection:${sha256(JSON.stringify([item.mediaHash]))}`); + const { decodedMediaHash, technicalMediaErrors } = await import('./template-gallery-harness.mjs'); + const decoded = await decodedMediaHash(media.file, 'image'); + same(technicalMediaErrors(decoded, { width: decodedInput.width, height: decodedInput.height }), []); + assert.equal(item.width, decoded.width); + assert.equal(item.height, decoded.height); + const backendContract = backendContractIdentity(json(capture.nodes), bound.identity.canonicalGraph); + assert.ok(backendContract.fingerprint); + const source = backendSourceEvidence({ + before: json(capture.backendSourceBefore).identity, + after: json(capture.backendSourceAfter).identity, + runtimeFingerprint: task.runtimeFingerprint, + }); + same(source.blockers, []); + const { runtime, elapsedSeconds, peakAllocatedBytes } = validateRuntime( + task, + hints, + graphCompleted, + json(capture.modelObservations[0]), + bound, + ); + for (const ref of retainedFiles) readCanonicalEvidenceFile(evidenceRoot, ref, 16 * 1024 * 1024); + assert.ok(readFileSync(evidencePath).equals(descriptorBytes), 'Evidence descriptor changed during validation.'); + const receipt = { + schemaVersion: 1, + format: 'modiff.canonical-workflow-run-receipt.v1', + proofKind: 'real_backend_input_bound_model_variant', + ...target, + taskId: task.task_id, + capturedAt: new Date(task.completed_at * 1000).toISOString(), + graphHash: bound.identity.hash, + resourceCandidateId: null, + outputHash: item.mediaHash, + runtimeFingerprint: normalizeBackendRuntime(runtime).lockFingerprint, + backendSourceFingerprint: source.identity.fingerprint, + backendContractFingerprint: backendContract.fingerprint, + executionDurationSeconds: elapsedSeconds, + peakMemoryBytes: peakAllocatedBytes, + canonicalDefaultsExecuted: false, + inputBinding: { nodeId: input.nodeId, field: 'file', sha256: input.file.sha256, decodedImage: decodedInput }, + promptBinding: { nodeId: bound.edit.id, field: 'prompt', sha256: sha256(bound.prompt) }, + decodedOutput: { hash: decoded.hash, width: decoded.width, height: decoded.height }, + observationLimits: { + fullConsumedFieldAccounting: false, + editConsumerControlsObserved: true, + sourceGeometryQualified: false, + physicalPlatformQualification: false, + }, + qualificationClaims: { + publicTemplate: false, + qualityApproved: false, + rightsApproved: false, + hardwareQualified: false, + modelResourceQualified: false, + }, + }; + return { + receipt, + provenance: { format: 'modiff.input-bound-model-variant-proof.v1', receipt }, + evidence, + descriptorBytes, + retainedFiles, + evidenceRoot, + }; +} diff --git a/scripts/private-image-edit-evidence.test.mjs b/scripts/private-image-edit-evidence.test.mjs new file mode 100644 index 00000000..336b7233 --- /dev/null +++ b/scripts/private-image-edit-evidence.test.mjs @@ -0,0 +1,210 @@ +import assert from 'node:assert/strict'; +import test from 'node:test'; +import { validateLateNativeImageVariantRun, validateNativeVariantRun } from './native-variant-run-evidence.mjs'; +import { bindPrivateImageEditGraph } from './private-image-edit-evidence.mjs'; + +function archivedImage() { + const target = { task: 'edit_image', modelType: 'LatentConsistencyModelPipeline' }; + const formSnapshot = { ...target, mode: target.task, resourceMode: 'expert' }; + const graphSnapshot = { nodes: [], edges: [] }; + const workflowSnapshot = { ...graphSnapshot, studioForm: formSnapshot }; + const hints = { + clientRunId: 'client-run', + runInputHash: 'run-input', + workflowTabId: 'workflow', + workflowCanvasEpoch: 2, + workflowTitle: 'Private image test', + workflowSnapshot, + }; + const sid = 'native-session'; + const taskId = 'native-task'; + const apiGraphSnapshot = { sid, nodes: {}, paths: [], runtimeHints: hints }; + const item = { displayType: 'image', backendPath: '@data/studio/outputs/test.webp', byteSize: 10 }; + const earlyMedia = [{ ...item, durationSeconds: null }]; + const mediaItems = [{ ...item, label: 'Item 1' }]; + const backendIdentity = { source: 'backend-record', backendExecutionId: taskId, mediaHash: 'native-image-sha' }; + const runtimeFingerprint = { fingerprint: 'private-runtime' }; + const runtimeMeasurement = { elapsedSeconds: 1 }; + const runtimePreparation = null; + const shared = { + taskId, + sid, + id: 'native-image', + attemptIndex: 0, + clientRunId: hints.clientRunId, + runInputHash: hints.runInputHash, + workflowTabId: hints.workflowTabId, + nodeId: 'preview', + fieldKey: 'preview', + displayType: 'image', + formSnapshot, + graphSnapshot, + resolvedExecutionInputs: {}, + mediaHash: backendIdentity.mediaHash, + mediaCollectionHash: 'native-collection-sha', + }; + const output = { + ...shared, + apiGraphSnapshot, + mediaItems, + backendProvenance: { ...backendIdentity, mediaItems, capturedAt: 200, exactTemplateCompatible: false }, + }; + const early = { + ...shared, + mediaItems: earlyMedia, + backendProvenance: { ...backendIdentity, mediaItems: earlyMedia, capturedAt: 100 }, + }; + const context = { + client_run_id: hints.clientRunId, + run_input_hash: hints.runInputHash, + workflow_tab_id: hints.workflowTabId, + workflow_canvas_epoch: hints.workflowCanvasEpoch, + }; + const run = { + task: { + task_id: taskId, + sid, + status: 'completed', + attempt_index: 0, + resourceCandidateId: null, + started_at: 100, + completed_at: 200, + ...context, + runtimeFingerprint, + runtimeMeasurement, + runtimePreparation, + workflow_snapshot: workflowSnapshot, + }, + workflow_id: hints.workflowTabId, + workflow_title: hints.workflowTitle, + workflow_snapshot: workflowSnapshot, + outputs: [early], + }; + return { + target, + displayType: 'image', + outputNodeId: 'preview', + run, + creator: { manifest: { packageType: 'modiff-workflow-share' }, metadata: { studio: formSnapshot } }, + outputPackage: { + manifest: { packageType: 'modiff-output-package' }, + apiGraph: apiGraphSnapshot, + graph: graphSnapshot, + latestOutput: structuredClone(output), + }, + graphCompleted: { + type: 'graph_completed', + task_id: taskId, + sid, + ...context, + deterministicMode: null, + resourceRetryHistory: [], + runtimeBudget: { applied: false }, + runtimeFingerprint, + runtimeMeasurement, + runtimePreparation, + }, + graphRequest: apiGraphSnapshot, + graphAcknowledgment: { error: false, sid, task_id: taskId }, + persistedOutput: output, + }; +} + +test('strict output verification accepts a separately joined late native image snapshot', () => { + const options = archivedImage(); + const before = structuredClone(options); + assert.throws(() => validateNativeVariantRun(options), /native output apiGraphSnapshot differs/u); + const { task, output } = validateLateNativeImageVariantRun(options); + assert.equal(task.task_id, 'native-task'); + assert.equal(output.apiGraphSnapshot.sid, 'native-session'); + assert.deepEqual(options, before); +}); + +test('the late native image join rejects a changed task, capture, graph or output', () => { + const scenarios = [ + [ + ({ persistedOutput }) => { + persistedOutput.taskId = 'different-task'; + }, + /changed taskId/u, + ], + [ + ({ persistedOutput }) => { + persistedOutput.apiGraphSnapshot = undefined; + }, + /snapshot is missing/u, + ], + [ + ({ persistedOutput }) => { + persistedOutput.apiGraphSnapshot = { ...persistedOutput.apiGraphSnapshot, sid: 'different' }; + }, + /apiGraphSnapshot differs/u, + ], + [ + ({ run }) => { + run.outputs[0].resolvedExecutionInputs = { swapped: true }; + }, + /changed resolvedExecutionInputs/u, + ], + [ + ({ persistedOutput }) => { + persistedOutput.mediaItems[0].byteSize = 11; + }, + /image identity changed/u, + ], + [ + ({ persistedOutput }) => { + persistedOutput.backendProvenance.backendExecutionId = 'stale-task'; + }, + /provenance identity changed/u, + ], + [ + ({ persistedOutput }) => { + persistedOutput.backendProvenance.exactTemplateCompatible = true; + }, + /false/u, + ], + ]; + for (const [mutate, error] of scenarios) { + const options = archivedImage(); + mutate(options); + assert.throws(() => validateLateNativeImageVariantRun(options), error); + } +}); + +test('private direct image edit graph binds exactly one empty file and one empty prompt', () => { + const expected = { + sid: 'canonical', + nodes: { + quantization: { module: 'modules.DiffusersRuntime', action: 'PipelineQuantizationConfigV2', params: {} }, + recipe: { module: 'modules.DiffusersRuntime', action: 'DiffusersExecutionRecipe', params: {} }, + loader: { module: 'modules.DiffusersImage', action: 'LoadPipeline', params: {} }, + source: { module: 'modules.Image', action: 'Load', params: { file: { value: [], display: 'filebrowser' } } }, + edit: { + module: 'modules.DiffusersImage', + action: 'Edit', + params: { + prompt: { value: '' }, + strength: { value: 0.8 }, + image: { display: 'input', sourceId: 'source', sourceKey: 'image' }, + }, + }, + preview: { module: 'modules.Image', action: 'Preview', params: {} }, + }, + paths: [['quantization', 'recipe', 'loader', 'source', 'edit', 'preview']], + }; + const input = { nodeId: 'source', field: 'file', sourceValue: 'source.webp' }; + const submitted = structuredClone(expected); + submitted.nodes.source.params.file.value = [input.sourceValue]; + submitted.nodes.edit.params.prompt.value = 'A lake at dawn.'; + const invoke = () => bindPrivateImageEditGraph({ expected, submitted, input }); + assert.equal(invoke().prompt, 'A lake at dawn.'); + assert.deepEqual(expected.nodes.source.params.file.value, []); + submitted.nodes.edit.params.strength.value = 0.7; + assert.throws(invoke, /changed|differs outside/u); + submitted.nodes.edit.params.strength.value = 0.8; + submitted.nodes.edit.params.image.sourceKey = 'mask'; + assert.throws(invoke, /differs outside/u); + submitted.loops = []; + assert.throws(invoke, /Unexpected evidence fields/u); +}); diff --git a/scripts/release-contract-core.mjs b/scripts/release-contract-core.mjs index fdf2b747..d56c62b8 100644 --- a/scripts/release-contract-core.mjs +++ b/scripts/release-contract-core.mjs @@ -774,6 +774,13 @@ export async function readCanonicalWorkflowEvidence({ clientRoot, backendRoot, w const { readCanonicalSpeechEvidence } = await import('./private-speech-evidence.mjs'); return readCanonicalSpeechEvidence({ clientRoot, manifest, graph, authoring, artifact, evidencePath }); } + if ( + evidence.format === 'modiff.private.lcm-source-bound-edit.v1' && + workflowId === 'LatentConsistencyModelPipeline:edit_image' + ) { + const { readPrivateImageEditEvidence } = await import('./private-image-edit-evidence.mjs'); + return readPrivateImageEditEvidence({ clientRoot, manifest, graph, authoring, artifact, evidencePath }); + } if ( evidence.format === 'modiff.private.input-bound-model-smoke.v1' && workflowId === 'MarigoldDepthPipeline:depth_estimation' diff --git a/tests/fixtures/image-edit-source-binding.v1.json b/tests/fixtures/image-edit-source-binding.v1.json new file mode 100644 index 00000000..74400059 --- /dev/null +++ b/tests/fixtures/image-edit-source-binding.v1.json @@ -0,0 +1,302 @@ +{ + "submittedApi": { + "nodes": { + "load": { + "module": "modules.Image", + "action": "Load", + "params": { + "file": { + "display": "filebrowser", + "value": ["synthetic-rgb-pattern.png"] + }, + "alpha_channel": { + "value": "ignore" + } + } + }, + "edit": { + "module": "modules.DiffusersImage", + "action": "Edit", + "params": { + "image": { + "display": "input", + "sourceId": "load", + "sourceKey": "image" + } + } + } + } + }, + "receipt": { + "fieldAccountingStatus": { + "schemaVersion": 1, + "truncated": false + }, + "mediaEvidenceStatus": { + "schemaVersion": 1, + "truncated": false + }, + "schemaVersion": 1, + "source": "backend-execution", + "taskId": "synthetic-rgb-source-edit", + "attemptIndex": 0, + "nodeId": "edit", + "nodes": [ + { + "nodeId": "edit", + "module": "modules.DiffusersImage", + "action": "Edit", + "fields": { + "prompt": { + "value": "Flat travel poster", + "source": "literal" + }, + "num_inference_steps": { + "value": 30, + "source": "literal" + }, + "output_type": { + "value": "pil", + "source": "literal" + }, + "negative_prompt": { + "value": "", + "source": "literal" + }, + "strength": { + "value": 0.8, + "source": "literal" + }, + "guidance_scale": { + "value": 7.5, + "source": "literal" + }, + "executed_task": { + "value": "edit_image", + "source": "literal" + }, + "seed": { + "value": 42, + "source": "literal" + }, + "control_guidance_end": { + "value": null, + "source": "literal" + }, + "max_sequence_length": { + "value": null, + "source": "literal" + }, + "control_guidance_start": { + "value": null, + "source": "literal" + }, + "conditioning_scale": { + "value": null, + "source": "literal" + }, + "width": { + "value": null, + "source": "literal" + }, + "height": { + "value": null, + "source": "literal" + } + }, + "omittedFields": {}, + "fieldAccounting": { + "schemaVersion": 1, + "fields": { + "guidance_scale": { + "disposition": "consumed", + "inputValue": 7.5, + "value": 7.5, + "source": "literal" + }, + "height": { + "disposition": "inactive", + "inputValue": 512, + "value": 512, + "reason": "adapter-inactive", + "source": "literal" + }, + "image_contract": { + "disposition": "metadata", + "reason": "presentation-contract", + "sha256": "f5c3241f8cec9e8dc35e8be81dfd0354380bd5a2b33f0451d320cb57fe455ee4", + "source": "literal" + }, + "max_sequence_length": { + "disposition": "inactive", + "inputValue": 512, + "value": 512, + "reason": "adapter-inactive", + "source": "literal" + }, + "negative_prompt": { + "disposition": "consumed", + "inputValue": "", + "value": "", + "source": "literal" + }, + "num_inference_steps": { + "disposition": "consumed", + "inputValue": 30, + "value": 30, + "source": "literal" + }, + "output_type": { + "disposition": "consumed", + "inputValue": "pil", + "value": "pil", + "source": "literal" + }, + "prompt": { + "disposition": "consumed", + "inputValue": "Flat travel poster", + "value": "Flat travel poster", + "source": "literal" + }, + "reference_strength": { + "disposition": "inactive", + "inputValue": 1, + "value": 1, + "reason": "adapter-inactive", + "source": "literal" + }, + "seed": { + "disposition": "consumed", + "inputValue": 42, + "value": 42, + "source": "literal" + }, + "strength": { + "disposition": "consumed", + "inputValue": 0.8, + "value": 0.8, + "source": "literal" + }, + "width": { + "disposition": "inactive", + "inputValue": 512, + "value": 512, + "reason": "adapter-inactive", + "source": "literal" + } + }, + "inputProjections": { + "image": { + "kind": "decoded-image-v1", + "values": { + "sha256": "78f70abfbea583685cf06bf4b8ead86205f1e3e218a14aeefb09e4fded2b17c8", + "byteSize": 4608, + "width": 48, + "height": 32, + "mode": "RGB" + }, + "sha256": "f96db0030504f2ebd0cfa15c120d890e6dba487dea430b77db594e623a698507", + "source": "connected", + "sourceNodeId": "load", + "sourcePortId": "image" + } + }, + "outputProjections": {}, + "unaccountedFields": [], + "omittedFields": {}, + "complete": true + } + }, + { + "nodeId": "load", + "module": "modules.Image", + "action": "Load", + "fields": { + "alpha_channel": { + "value": "ignore", + "source": "literal" + }, + "source_hashes": { + "value": ["b4bf67b55e9276e60895d82f90f8b065f96213092f1a8cdfd21d5a8fca17edff"], + "source": "literal" + }, + "source_widths": { + "value": [48], + "source": "literal" + }, + "source_heights": { + "value": [32], + "source": "literal" + }, + "source_modes": { + "value": ["RGB"], + "source": "literal" + } + }, + "omittedFields": {}, + "mediaEvidence": { + "schemaVersion": 1, + "source": "native-builtin-media-v1", + "status": "complete", + "controls": { + "alpha_channel": "ignore" + }, + "inputs": {}, + "outputs": { + "image": [ + { + "kind": "image", + "sha256": "78f70abfbea583685cf06bf4b8ead86205f1e3e218a14aeefb09e4fded2b17c8", + "byteSize": 4608, + "width": 48, + "height": 32, + "mode": "RGB" + } + ] + }, + "files": { + "file": [ + { + "sourceValue": "synthetic-rgb-pattern.png", + "sha256": "b4bf67b55e9276e60895d82f90f8b065f96213092f1a8cdfd21d5a8fca17edff", + "byteSize": 130 + } + ] + } + } + } + ], + "summary": { + "prompt": "Flat travel poster", + "steps": 30, + "outputType": "pil", + "negativePrompt": "", + "strength": 0.8, + "guidanceScale": 7.5, + "executedTask": "edit_image", + "seed": 42, + "controlGuidanceEnd": null, + "maxSequenceLength": null, + "controlGuidanceStart": null, + "conditioningScale": null, + "width": null, + "height": null, + "imageAlphaChannel": "ignore", + "imageSourceHashes": ["b4bf67b55e9276e60895d82f90f8b065f96213092f1a8cdfd21d5a8fca17edff"], + "imageSourceWidths": [48], + "imageSourceHeights": [32], + "imageSourceModes": ["RGB"] + }, + "ambiguousFields": [], + "unavailableFields": [], + "uncapturedNodeIds": [], + "truncated": false + }, + "outputIdentity": { + "taskId": "synthetic-rgb-source-edit", + "nodeId": "edit", + "attemptIndex": 0 + }, + "loadId": "load", + "editId": "edit" +} From 2be1dbc651ecfc4c2bbd762cf104229988055761 Mon Sep 17 00:00:00 2001 From: Sourav Das Date: Fri, 20 Nov 2026 22:30:00 +0530 Subject: [PATCH 272/440] Pin the backend contract with the DreamLite Edit repair --- .github/workflows/ci.yml | 4 ++-- README.md | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 21f4df15..96a0f979 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -33,7 +33,7 @@ jobs: with: repository: sdevil7th/MoDiff # Pair R04 damaged-metadata readiness and the existing setup contract. - ref: 6df52c2e2f86313ace4838e17450b9be005b631b + ref: ea51a9fd194db3ccf02910f2b8ef40eaec3722d2 path: MoDiff persist-credentials: false - name: Verify the pinned backend supports native setup @@ -89,7 +89,7 @@ jobs: with: repository: sdevil7th/MoDiff # Match the immutable backend revision in the Client quality job. - ref: 6df52c2e2f86313ace4838e17450b9be005b631b + ref: ea51a9fd194db3ccf02910f2b8ef40eaec3722d2 path: MoDiff persist-credentials: false - name: Verify the pinned backend supports native setup diff --git a/README.md b/README.md index e97f7c9b..4c94507a 100644 --- a/README.md +++ b/README.md @@ -85,7 +85,7 @@ application source pair is: | MoDiff | `1239d1cecd12a7318eb263ca17c34d4fc0445d14` | | MoDiff-client | `c561a01395044fd71c1918e95fb9e9709d8e7601` | -CI backend contract: `6df52c2e2f86313ace4838e17450b9be005b631b`. +CI backend contract: `ea51a9fd194db3ccf02910f2b8ef40eaec3722d2`. Both CI jobs use this immutable backend revision. It includes shared video stages, conditional reference requirements, the scoped Linux shared-memory LTX From 10784b52fd761ee51ee8b8e2bdc98f1ab766d510 Mon Sep 17 00:00:00 2001 From: Sourav Das Date: Sat, 21 Nov 2026 01:24:37 +0530 Subject: [PATCH 273/440] Register approved saved Whisper Tiny and LCM Gallery examples --- CONTRIBUTING.md | 4 +- config/release-showcase-scope.v1.json | 16 +- config/template-asset-rights.v1.json | 209 ++++++++++++++++- config/template-assets.v1.json | 77 +++++- docs/template-gallery-assets.md | 11 +- package.json | 2 +- public/template-gallery/manifest.json | 57 +++++ scripts/bundle-budget.mjs | 4 + ...e-full-native-template-candidates.test.mjs | 5 +- scripts/modiff-template.test.mjs | 5 + scripts/release-contract-core.mjs | 16 ++ scripts/retained-gallery-provenance.mjs | 25 +- scripts/retained-gallery-release.mjs | 106 +++++---- scripts/retained-gallery-release.test.mjs | 71 ++++++ scripts/retained-gallery-templates.test.mjs | 124 ++++++++-- scripts/retained-speech-gallery-evidence.mjs | 105 +++++++++ .../retained-speech-gallery-evidence.test.mjs | 191 +++++++++++++++ scripts/retained-template-association.mjs | 219 ++++++++++++++++-- scripts/template-gallery-harness.test.mjs | 9 +- scripts/template-quality.test.mjs | 40 ++++ src/studio/retainedGalleryTemplates.ts | 186 ++++++++++++++- src/studio/templateAssetSource.json | 6 +- src/studio/templateQuality.ts | 52 ++++- src/studio/types.ts | 2 + tests/e2e/studio-mocked/studio-mocked.spec.ts | 138 +++++++++++ 25 files changed, 1567 insertions(+), 113 deletions(-) create mode 100644 scripts/retained-speech-gallery-evidence.mjs create mode 100644 scripts/retained-speech-gallery-evidence.test.mjs diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index e829f4e6..14f217c9 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -529,8 +529,8 @@ execution with that prompt or file and needs a reviewed recipe to bind it for release. Native-resolution DDIM, DDPM, and Consistency samples are technical canaries under the project's model review policy. -The reviewed Marigold synthetic ramp, SmolLM2 rain-gauge and Spandrel -Real-ESRGAN 2× catalog recipes use declarations in +The reviewed Marigold synthetic ramp, SmolLM2 rain-gauge, Spandrel +Real-ESRGAN 2×, Whisper Tiny transcription and LCM dawn edit use declarations in `src/studio/retainedGalleryTemplates.ts`. They share the existing task contracts. Keep their original standalone graphs and receipts. For an exact approved local review, retain `approval.v1.json`, diff --git a/config/release-showcase-scope.v1.json b/config/release-showcase-scope.v1.json index 72f51228..ef77acea 100644 --- a/config/release-showcase-scope.v1.json +++ b/config/release-showcase-scope.v1.json @@ -4,7 +4,7 @@ "name": "Registered showcase preview without AMD-cloud backlog", "dataset": { "repository": "sourav-das/modiff-template-gallery", - "revision": "14970cc49ef1579fcc1899fff406810d8b4ba581" + "revision": "3fe997d48f920c5a2ec66d025b008901d2fc3ce3" }, "originalCampaign": { "total": 89, @@ -516,7 +516,19 @@ "category": "planning-contract", "reason": "Planning-only workflow lacks its separately required implementation or execution qualification.", "countedAsComplete": false + }, + { + "id": "lcm_dawn_alpine_lake", + "category": "supplementary-only", + "reason": "Published and registered as a supplementary Gallery example outside the original campaign selection.", + "countedAsComplete": false + }, + { + "id": "whisper_tiny_blue_cup_transcription", + "category": "supplementary-only", + "reason": "Published and registered as a supplementary Gallery example outside the original campaign selection.", + "countedAsComplete": false } ], - "profileHash": "sha256:canonical-json:ba1dfb69be774d74bc355a70e0ae90a84328ebaa5516020d6c3c3b90c5f1d55e" + "profileHash": "sha256:canonical-json:2b6e9de6bc70face7dc1bf8a7f15306c08e470ad6ce0984a4f842af0dd0f408d" } diff --git a/config/template-asset-rights.v1.json b/config/template-asset-rights.v1.json index da2c55e4..1d063601 100644 --- a/config/template-asset-rights.v1.json +++ b/config/template-asset-rights.v1.json @@ -1,6 +1,6 @@ { "schemaVersion": 1, - "assetSetId": "sha256:canonical-json:9cb4e03df78ad36f0beb120a89c66d267c2e98e24b4892a719a7735eca9944af", + "assetSetId": "sha256:canonical-json:985e5c67b0e9791b04f400b287029bd3f54285e908107ca1951fb62070405fc8", "records": [ { "path": "template-gallery/ace_step_audio_continuation.wav", @@ -3757,6 +3757,36 @@ "provenanceTemplateId": "flux_redux_multi_reference", "consumingTemplateIds": ["flux_redux_multi_reference"] }, + { + "path": "template-gallery/inputs/lcm_dawn_alpine_lake.before.webp", + "sha256": "sha256:bytes:25fe06d8e93645bc6ff29928556a0cd654aa6d70178d435268b3d17e9188feaa", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "humanLikenessConsent": "not-applicable", + "marks": [], + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-20", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "ba369c5fff89e379be66714d3ecbf1a0e3a9555e2b5ffbc9cb54210d862ec30b", + "publicationBasis": "Maintainer approved the exact Whisper JSON and both exact LCM images, accepted the disclosed LCM changes, and authorized publication of the associated redacted Gallery records.", + "creationMethod": "Exact retained PRX text-generated synthetic daylight lake image used as the LCM Edit source", + "sourceUrl": "https://huggingface.co/Photoroom/prx-512-t2i-sft/resolve/2996423bc26e8eaca48774fac1797484214dfea0/README.md", + "sourceRevision": "Photoroom/prx-512-t2i-sft@2996423bc26e8eaca48774fac1797484214dfea0", + "sourceLicense": "Project-authored synthetic content processed by recorded model(s), subject to their applicable terms", + "modelTerms": [ + "Photoroom/prx-512-t2i-sft@2996423bc26e8eaca48774fac1797484214dfea0 — Apache-2.0 declaration and Gemma use restrictions. https://huggingface.co/Photoroom/prx-512-t2i-sft/resolve/2996423bc26e8eaca48774fac1797484214dfea0/README.md", + "Pinned Photoroom notice names Google T5Gemma 2B-2B UL2 under the Gemma Terms and FLUX.1 Schnell VAE under Apache-2.0. https://huggingface.co/Photoroom/prx-512-t2i-sft/resolve/2996423bc26e8eaca48774fac1797484214dfea0/NOTICE", + "Gemma Terms and use policy. https://ai.google.dev/gemma/terms · https://gemma.ai/resources/prohibited-use/" + ], + "aiGenerated": true, + "requiredAttribution": [ + "Photoroom Inc., PRX 512 SFT. https://huggingface.co/Photoroom/prx-512-t2i-sft/resolve/2996423bc26e8eaca48774fac1797484214dfea0/README.md", + "Google T5Gemma and Black Forest Labs FLUX.1 Schnell VAE component notices. https://huggingface.co/Photoroom/prx-512-t2i-sft/resolve/2996423bc26e8eaca48774fac1797484214dfea0/NOTICE" + ], + "assetLicense": "MoDiff-Gallery-Restricted-1.0", + "provenanceTemplateId": "lcm_dawn_alpine_lake" + }, { "path": "template-gallery/inputs/ltx_boardwalk_tracking.end.webp", "sha256": "sha256:bytes:52ea89c0cdec3142162156be07af12a06a14ad623b68c9700ccbc82bf889100d", @@ -4618,6 +4648,41 @@ "humanApprovalPacketSHA256": "69c6b3d9b0ea2fcca16ee538f6e75b414b7141658b74f10578758e61360f63fd", "provenanceTemplateId": "qwen_layered_portrait" }, + { + "path": "template-gallery/lcm_dawn_alpine_lake.webp", + "sha256": "sha256:bytes:6da406d5e24cb7b9e62c1ee617ff8bca851b0f5da3cc7aef2b2e88ac73bfc8d0", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "humanLikenessConsent": "not-applicable", + "marks": [], + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-20", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "ba369c5fff89e379be66714d3ecbf1a0e3a9555e2b5ffbc9cb54210d862ec30b", + "publicationBasis": "Maintainer approved the exact Whisper JSON and both exact LCM images, accepted the disclosed LCM changes, and authorized publication of the associated redacted Gallery records.", + "creationMethod": "Exact retained LCM edit of the specified synthetic PRX lake image", + "sourceUrl": "https://huggingface.co/SimianLuo/LCM_Dreamshaper_v7/blob/a85df6a8bd976cdd08b4fd8f3b73f229c9e54df5/README.md", + "sourceRevision": "SimianLuo/LCM_Dreamshaper_v7@a85df6a8bd976cdd08b4fd8f3b73f229c9e54df5", + "sourceLicense": "Project-authored synthetic content processed by recorded model(s), subject to their applicable terms", + "modelTerms": [ + "SimianLuo/LCM_Dreamshaper_v7@a85df6a8bd976cdd08b4fd8f3b73f229c9e54df5 — pinned model card MIT declaration. https://huggingface.co/SimianLuo/LCM_Dreamshaper_v7/blob/a85df6a8bd976cdd08b4fd8f3b73f229c9e54df5/README.md", + "LCM card credits DreamShaper 7 and Stable Diffusion v1.5. DreamShaper 7 card declares CreativeML Open RAIL-M. https://huggingface.co/Lykon/dreamshaper-7", + "Stable Diffusion upstream use terms. https://github.com/CompVis/stable-diffusion/blob/main/LICENSE", + "Photoroom/prx-512-t2i-sft@2996423bc26e8eaca48774fac1797484214dfea0 — Apache-2.0 declaration and Gemma use restrictions. https://huggingface.co/Photoroom/prx-512-t2i-sft/resolve/2996423bc26e8eaca48774fac1797484214dfea0/README.md", + "Pinned Photoroom notice names Google T5Gemma 2B-2B UL2 under the Gemma Terms and FLUX.1 Schnell VAE under Apache-2.0. https://huggingface.co/Photoroom/prx-512-t2i-sft/resolve/2996423bc26e8eaca48774fac1797484214dfea0/NOTICE", + "Gemma Terms and use policy. https://ai.google.dev/gemma/terms · https://gemma.ai/resources/prohibited-use/" + ], + "aiGenerated": true, + "requiredAttribution": [ + "LCM DreamShaper v7. https://huggingface.co/SimianLuo/LCM_Dreamshaper_v7/blob/a85df6a8bd976cdd08b4fd8f3b73f229c9e54df5/README.md", + "DreamShaper 7. https://huggingface.co/Lykon/dreamshaper-7", + "Photoroom Inc., PRX 512 SFT. https://huggingface.co/Photoroom/prx-512-t2i-sft/resolve/2996423bc26e8eaca48774fac1797484214dfea0/README.md", + "Google T5Gemma and Black Forest Labs FLUX.1 Schnell VAE component notices. https://huggingface.co/Photoroom/prx-512-t2i-sft/resolve/2996423bc26e8eaca48774fac1797484214dfea0/NOTICE" + ], + "assetLicense": "MoDiff-Gallery-Restricted-1.0", + "provenanceTemplateId": "lcm_dawn_alpine_lake" + }, { "creatorOrRightsholder": "MoDiff project maintainers, subject to source/model terms", "creationMethod": "AI-generated original text-to-image Gallery example", @@ -5243,25 +5308,25 @@ }, { "path": "template-gallery/manifest.json", - "sha256": "sha256:bytes:785b7c753988370be0df861faca31e7ac1e4e8f94662ac49c96dd940055193f2", - "publishDecision": "approved", - "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "humanLikenessConsent": "not-applicable", + "marks": [], + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-20", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "ba369c5fff89e379be66714d3ecbf1a0e3a9555e2b5ffbc9cb54210d862ec30b", + "publicationBasis": "Maintainer approved the exact Whisper JSON and both exact LCM images, accepted the disclosed LCM changes, and authorized publication of the associated redacted Gallery records.", "creationMethod": "Project-authored redacted retained Gallery review, provenance or registration metadata", "sourceUrl": null, "sourceRevision": null, - "sourceLicense": "MoDiff-authored fixture or Gallery metadata", + "sourceLicense": "MoDiff-authored Gallery metadata", "modelTerms": [], "aiGenerated": false, - "humanLikenessConsent": "not-applicable", - "marks": [], "requiredAttribution": [], "assetLicense": "Apache-2.0", - "reviewedBy": "MoDiff workspace maintainer", - "reviewedAt": "2026-11-19", - "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "ea2e749b805706828428bd34589bd41263e9c432a9503fe17c3c6a6d7d932176", - "publicationBasis": "Maintainer approved this exact saved Spandrel 2× technical preview and confirmed redistribution rights." + "sha256": "sha256:bytes:2c35cd09dc15607edc9fe8e8335d1150b88a74485bcb643363dd1839edd54199", + "publishDecision": "approved", + "holdReason": null }, { "path": "template-gallery/marigold_depth_synthetic_ramp.webp", @@ -8183,6 +8248,52 @@ "provenanceTemplateId": "high_quality", "humanApprovalPacketSHA256": "dcea9bcff1de179dad3357926933fe869b99c063cee0f4dc1764833e3cf3ea53" }, + { + "path": "template-gallery/reviews/lcm_dawn_alpine_lake.quality-review.json", + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "humanLikenessConsent": "not-applicable", + "marks": [], + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-20", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "ba369c5fff89e379be66714d3ecbf1a0e3a9555e2b5ffbc9cb54210d862ec30b", + "publicationBasis": "Maintainer approved the exact Whisper JSON and both exact LCM images, accepted the disclosed LCM changes, and authorized publication of the associated redacted Gallery records.", + "creationMethod": "Project-authored redacted retained Gallery review, provenance or registration metadata", + "sourceUrl": null, + "sourceRevision": null, + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [], + "aiGenerated": false, + "requiredAttribution": [], + "assetLicense": "Apache-2.0", + "provenanceTemplateId": "lcm_dawn_alpine_lake", + "sha256": "sha256:bytes:e5c590a6287147faad9d5eab5676b8d2bb8224a8581a2043cf78c8dd50dcb0b9", + "publishDecision": "approved", + "holdReason": null + }, + { + "path": "template-gallery/reviews/lcm_dawn_alpine_lake.retained-template-provenance.json", + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "humanLikenessConsent": "not-applicable", + "marks": [], + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-20", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "ba369c5fff89e379be66714d3ecbf1a0e3a9555e2b5ffbc9cb54210d862ec30b", + "publicationBasis": "Maintainer approved the exact Whisper JSON and both exact LCM images, accepted the disclosed LCM changes, and authorized publication of the associated redacted Gallery records.", + "creationMethod": "Project-authored redacted retained Gallery review, provenance or registration metadata", + "sourceUrl": null, + "sourceRevision": null, + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [], + "aiGenerated": false, + "requiredAttribution": [], + "assetLicense": "Apache-2.0", + "provenanceTemplateId": "lcm_dawn_alpine_lake", + "sha256": "sha256:bytes:767b8d794460fca5a3e1c79a89aeaa2b1dcdb815d47702e1063ed35d07163247", + "publishDecision": "approved", + "holdReason": null + }, { "path": "template-gallery/reviews/low_vram.quality-review.json", "sha256": "sha256:bytes:53b25669d880814ac612e803b0c6f2abbcdd8853e7ea4ca6e1e6d0b97fa23352", @@ -10066,6 +10177,52 @@ "publicationBasis": "Register the six approved assets now while Moonflower runs on Linux. Use Windows in parallel wherever possible, and keep the longer workflows separate for AMD cloud.", "provenanceTemplateId": "wan_video_long_showcase" }, + { + "path": "template-gallery/reviews/whisper_tiny_blue_cup_transcription.quality-review.json", + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "humanLikenessConsent": "not-applicable", + "marks": [], + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-20", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "ba369c5fff89e379be66714d3ecbf1a0e3a9555e2b5ffbc9cb54210d862ec30b", + "publicationBasis": "Maintainer approved the exact Whisper JSON and both exact LCM images, accepted the disclosed LCM changes, and authorized publication of the associated redacted Gallery records.", + "creationMethod": "Project-authored redacted retained Gallery review, provenance or registration metadata", + "sourceUrl": null, + "sourceRevision": null, + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [], + "aiGenerated": false, + "requiredAttribution": [], + "assetLicense": "Apache-2.0", + "provenanceTemplateId": "whisper_tiny_blue_cup_transcription", + "sha256": "sha256:bytes:e25cabb7027838e4593af9155c9dba2dc695d23ee2cccc2ad8bbc991a992c5e5", + "publishDecision": "approved", + "holdReason": null + }, + { + "path": "template-gallery/reviews/whisper_tiny_blue_cup_transcription.retained-template-provenance.json", + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "humanLikenessConsent": "not-applicable", + "marks": [], + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-20", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "ba369c5fff89e379be66714d3ecbf1a0e3a9555e2b5ffbc9cb54210d862ec30b", + "publicationBasis": "Maintainer approved the exact Whisper JSON and both exact LCM images, accepted the disclosed LCM changes, and authorized publication of the associated redacted Gallery records.", + "creationMethod": "Project-authored redacted retained Gallery review, provenance or registration metadata", + "sourceUrl": null, + "sourceRevision": null, + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [], + "aiGenerated": false, + "requiredAttribution": [], + "assetLicense": "Apache-2.0", + "provenanceTemplateId": "whisper_tiny_blue_cup_transcription", + "sha256": "sha256:bytes:410e2c8efcb1ae5a4bf6827f9bf327fc9bfa6bc84f32eedb269b1120cbbfd3a9", + "publishDecision": "approved", + "holdReason": null + }, { "path": "template-gallery/reviews/z_image_cinematic_contact_sheet.quality-review.json", "sha256": "sha256:bytes:4a895beb586a81c69f6afeaf387bf2797333d59396023c188920d1913ee86029", @@ -13301,6 +13458,34 @@ "publicationBasis": "Register the six approved assets now while Moonflower runs on Linux. Use Windows in parallel wherever possible, and keep the longer workflows separate for AMD cloud.", "provenanceTemplateId": "wan_video_long_showcase" }, + { + "path": "template-gallery/whisper_tiny_blue_cup_transcription.json", + "sha256": "sha256:bytes:19ad6ca1cda03c92aa6f86f590a69c052e8bded5c8340189a56c68193c2ed9ec", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "humanLikenessConsent": "not-applicable", + "marks": [], + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-20", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "ba369c5fff89e379be66714d3ecbf1a0e3a9555e2b5ffbc9cb54210d862ec30b", + "publicationBasis": "Maintainer approved the exact Whisper JSON and both exact LCM images, accepted the disclosed LCM changes, and authorized publication of the associated redacted Gallery records.", + "creationMethod": "Exact retained structured transcription of two project-authored synthetic sentences", + "sourceUrl": "https://huggingface.co/openai/whisper-tiny/blob/169d4a4341b33bc18d8881c4b69c2e104e1cc0af/README.md", + "sourceRevision": "openai/whisper-tiny@169d4a4341b33bc18d8881c4b69c2e104e1cc0af", + "sourceLicense": "Project-authored synthetic content processed by recorded model(s), subject to their applicable terms", + "modelTerms": [ + "openai/whisper-tiny@169d4a4341b33bc18d8881c4b69c2e104e1cc0af — pinned Hub card Apache-2.0 declaration. https://huggingface.co/openai/whisper-tiny/blob/169d4a4341b33bc18d8881c4b69c2e104e1cc0af/README.md", + "OpenAI upstream Whisper project identifies its code and model weights as MIT. https://github.com/openai/whisper#license" + ], + "aiGenerated": true, + "requiredAttribution": [ + "OpenAI Whisper Tiny. https://huggingface.co/openai/whisper-tiny/blob/169d4a4341b33bc18d8881c4b69c2e104e1cc0af/README.md" + ], + "assetLicense": "MoDiff-Gallery-Restricted-1.0", + "provenanceTemplateId": "whisper_tiny_blue_cup_transcription" + }, { "path": "template-gallery/z_image_cinematic_contact_sheet.webp", "sha256": "sha256:bytes:4c2bbf8e5c5fc23984d3cbb7cf716220d6a5a3a628510b0de9bae418b3447723", diff --git a/config/template-assets.v1.json b/config/template-assets.v1.json index 815ae3a7..e871a142 100644 --- a/config/template-assets.v1.json +++ b/config/template-assets.v1.json @@ -1505,6 +1505,17 @@ "width": 1024, "height": 1024 }, + { + "path": "template-gallery/inputs/lcm_dawn_alpine_lake.before.webp", + "size": 164148, + "sha256": "sha256:bytes:25fe06d8e93645bc6ff29928556a0cd654aa6d70178d435268b3d17e9188feaa", + "contentType": "image/webp", + "purposes": [ + "runtime" + ], + "width": 512, + "height": 512 + }, { "path": "template-gallery/inputs/ltx_boardwalk_tracking.end.webp", "size": 62370, @@ -1883,6 +1894,17 @@ "width": 640, "height": 640 }, + { + "path": "template-gallery/lcm_dawn_alpine_lake.webp", + "size": 119274, + "sha256": "sha256:bytes:6da406d5e24cb7b9e62c1ee617ff8bca851b0f5da3cc7aef2b2e88ac73bfc8d0", + "contentType": "image/webp", + "purposes": [ + "runtime" + ], + "width": 512, + "height": 512 + }, { "path": "template-gallery/low_vram.webp", "size": 230540, @@ -2125,8 +2147,8 @@ }, { "path": "template-gallery/manifest.json", - "size": 234038, - "sha256": "sha256:bytes:785b7c753988370be0df861faca31e7ac1e4e8f94662ac49c96dd940055193f2", + "size": 238353, + "sha256": "sha256:bytes:2c35cd09dc15607edc9fe8e8335d1150b88a74485bcb643363dd1839edd54199", "contentType": "application/json", "purposes": [ "runtime", @@ -3319,6 +3341,24 @@ "runtime" ] }, + { + "path": "template-gallery/reviews/lcm_dawn_alpine_lake.quality-review.json", + "size": 2982, + "sha256": "sha256:bytes:e5c590a6287147faad9d5eab5676b8d2bb8224a8581a2043cf78c8dd50dcb0b9", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, + { + "path": "template-gallery/reviews/lcm_dawn_alpine_lake.retained-template-provenance.json", + "size": 5757, + "sha256": "sha256:bytes:767b8d794460fca5a3e1c79a89aeaa2b1dcdb815d47702e1063ed35d07163247", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, { "path": "template-gallery/reviews/low_vram.quality-review.json", "size": 2522, @@ -4077,6 +4117,24 @@ "runtime" ] }, + { + "path": "template-gallery/reviews/whisper_tiny_blue_cup_transcription.quality-review.json", + "size": 2380, + "sha256": "sha256:bytes:e25cabb7027838e4593af9155c9dba2dc695d23ee2cccc2ad8bbc991a992c5e5", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, + { + "path": "template-gallery/reviews/whisper_tiny_blue_cup_transcription.retained-template-provenance.json", + "size": 3759, + "sha256": "sha256:bytes:410e2c8efcb1ae5a4bf6827f9bf327fc9bfa6bc84f32eedb269b1120cbbfd3a9", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, { "path": "template-gallery/reviews/z_image_cinematic_contact_sheet.quality-review.json", "size": 2401, @@ -5489,6 +5547,15 @@ "width": 1664, "height": 960 }, + { + "path": "template-gallery/whisper_tiny_blue_cup_transcription.json", + "size": 305, + "sha256": "sha256:bytes:19ad6ca1cda03c92aa6f86f590a69c052e8bded5c8340189a56c68193c2ed9ec", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, { "path": "template-gallery/z_image_cinematic_contact_sheet.webp", "size": 182632, @@ -5557,9 +5624,9 @@ "height": 1024 } ], - "assetSetId": "sha256:canonical-json:9cb4e03df78ad36f0beb120a89c66d267c2e98e24b4892a719a7735eca9944af", + "assetSetId": "sha256:canonical-json:985e5c67b0e9791b04f400b287029bd3f54285e908107ca1951fb62070405fc8", "status": "ready", - "assetCount": 561, - "totalBytes": 1036746377, + "assetCount": 568, + "totalBytes": 1037049297, "missingAssets": [] } diff --git a/docs/template-gallery-assets.md b/docs/template-gallery-assets.md index f6320fdb..e9fb866a 100644 --- a/docs/template-gallery-assets.md +++ b/docs/template-gallery-assets.md @@ -807,8 +807,9 @@ This source update does not approve media rights, template quality, model execution, Auto, or Gallery eligibility. New inputs and previews still require the normal per-file human rights and template evidence reviews. -The reviewed Marigold depth preview, SmolLM2 rain-gauge reply and Spandrel -Real-ESRGAN 2× comparison use `modiff.gallery.retained-template-provenance.v1`. +The reviewed Marigold depth preview, SmolLM2 rain-gauge reply, Spandrel +Real-ESRGAN 2× comparison, Whisper Tiny transcription and LCM dawn edit use +`modiff.gallery.retained-template-provenance.v1`. This format is limited to immutable reviewed associations. It binds the active catalog recipe, observed source and runtime, the approved publication bytes, and the exact quality review. The original standalone task identifiers and private captures @@ -817,6 +818,12 @@ decoded identities alongside the archived transport hash. Marigold records the source-size visual preview of a synthetic ramp. Spandrel binds the original 64 × 48 source and 128 × 96 delivery to its pinned weight file. The comparison is a technical preview of the 2× route and measures no fine-detail recovery. +Whisper publishes the exact JSON delivered by the transcription node. Its +retained association verifies the original audio input hash, native transcript +transport and exact JSON. The original recording remains private. The LCM +comparison retains both original WebPs and binds the source and the saved +prompt. Its accepted review records the substantial changes to the ridge and +shoreline and the stronger dawn light. Their original canonical workflow rows remain attached to the standalone task skeletons. Release qualification links each row to its verified Gallery diff --git a/package.json b/package.json index 885a556a..48c31a13 100644 --- a/package.json +++ b/package.json @@ -85,7 +85,7 @@ "test:template-assets:local": "node --test scripts/template-default-inputs.test.mjs", "test:template-quality": "node --test scripts/template-quality.test.mjs", "test:live-qwen-proof": "node --test scripts/live-qwen-proof.test.mjs scripts/native-modular-image-resource.test.mjs scripts/executed-native-media-resource.test.mjs scripts/workflow-auto-provenance.test.mjs scripts/workflow-auto-audio-provenance.test.mjs scripts/workflow-auto-video-provenance.test.mjs scripts/workflow-auto-control-provenance.test.mjs scripts/workflow-auto-masked-image-provenance.test.mjs scripts/retained-native-text-provenance.test.mjs scripts/retained-native-direct-image-provenance.test.mjs scripts/retained-native-modular-image-provenance.test.mjs scripts/canonical-runtime-hints.test.mjs scripts/hardware-qualification.test.mjs scripts/hardware-execution-device.test.mjs scripts/hardware-runtime-identity.test.mjs scripts/release-qualification-policy.test.mjs scripts/resource-qualification.test.mjs scripts/route-resource-qualification.test.mjs scripts/resource-qualification-campaign.test.mjs scripts/template-qualification.test.mjs scripts/release-qualification-campaign.test.mjs", - "test:release-contract": "node --test scripts/backend-installer-contract.test.mjs scripts/backend-node-registry.test.mjs scripts/release-contract.test.mjs scripts/release-candidate-report.test.mjs scripts/template-asset-release-contract.test.mjs scripts/builtin-media-qualification.test.mjs scripts/input-bound-model-evidence.test.mjs scripts/canonical-image-accounting.test.mjs scripts/marigold-preview-evidence.test.mjs scripts/private-speech-evidence.test.mjs scripts/private-image-edit-evidence.test.mjs scripts/image-edit-source-binding.test.mjs scripts/prompt-variant-evidence.test.mjs scripts/retained-template-association.test.mjs scripts/retained-gallery-release.test.mjs scripts/saved-workflow-compatibility.test.mjs", + "test:release-contract": "node --test scripts/backend-installer-contract.test.mjs scripts/backend-node-registry.test.mjs scripts/release-contract.test.mjs scripts/release-candidate-report.test.mjs scripts/template-asset-release-contract.test.mjs scripts/builtin-media-qualification.test.mjs scripts/input-bound-model-evidence.test.mjs scripts/canonical-image-accounting.test.mjs scripts/marigold-preview-evidence.test.mjs scripts/private-speech-evidence.test.mjs scripts/retained-speech-gallery-evidence.test.mjs scripts/private-image-edit-evidence.test.mjs scripts/image-edit-source-binding.test.mjs scripts/prompt-variant-evidence.test.mjs scripts/retained-template-association.test.mjs scripts/retained-gallery-release.test.mjs scripts/saved-workflow-compatibility.test.mjs", "test:live-backend-contract": "node scripts/live-backend-contract.mjs", "test:gallery-harness": "node --test scripts/template-gallery-harness.test.mjs scripts/source-video-timing.test.mjs scripts/retained-layer-sheet.test.mjs scripts/template-gallery-maintainer-acceptance.test.mjs scripts/template-recipe-history.test.mjs scripts/release-showcase-scope.test.mjs scripts/template-input-roles.test.mjs", "test:gallery-runner": "node --test scripts/template-gallery-runner.test.mjs && npm run test:demo-tools", diff --git a/public/template-gallery/manifest.json b/public/template-gallery/manifest.json index a1196511..b99bd068 100644 --- a/public/template-gallery/manifest.json +++ b/public/template-gallery/manifest.json @@ -2971,6 +2971,63 @@ "qualityReviewHash": "sha256:canonical-json:f4b06e2e7e96ae7b9f476ca9d3a03ae3d799c54c3f07ed0a421ce4e662234a31", "qualityReviewStatus": "approved_reviewed", "verificationTimestamp": "2026-11-19T19:57:14.488Z" + }, + { + "templateId": "whisper_tiny_blue_cup_transcription", + "promptSettingsHash": "ps_254ff664", + "templateLockHash": "tpl_e533ed76", + "modelRevision": "openai/whisper-tiny@169d4a4341b33bc18d8881c4b69c2e104e1cc0af", + "runtimeFingerprint": "sha256:stable-runtime-v1:c413b61da4bb7d2d8fabbbacf42924d44e77161c68840f7c69de196e9b3815aa", + "graphHash": "sha256:canonical-graph-v1:b377ff0dee17374428c2deb83531bdee0b21eac105ea6e81fe705a41c4f98adb", + "proofLockHash": "sha256:retained-template-association-v1:ef75e5724204721987f43988a7ddbb9bdc79fb4c378bdca0af141d7ce5bdf834", + "backendSourceFingerprint": "sha256:backend-source-v1:674f8959f84e6b26f6ff04d8c7cdd2af9d9a5f4e438a325ecd4c042ecda9eeab", + "backendContractFingerprint": "sha256:backend-contract-v1:a54ff5dae2f71449c7a5b7cbb9f3db0277594d7e5117f892ecc21d4ce676f98f", + "modelCommit": "169d4a4341b33bc18d8881c4b69c2e104e1cc0af", + "templateRevisionHash": "f9e6bd0b708cc08d7068555be9f4094f68cc9aa6115639792339f50b38c2e35c", + "provenancePath": "/template-gallery/reviews/whisper_tiny_blue_cup_transcription.retained-template-provenance.json", + "provenanceHash": "sha256:canonical-json:5ee8b9b7cd968d1e6998da556e58470eb449c3eae6ac9990cfeea8392b05fed6", + "outputPath": "/template-gallery/whisper_tiny_blue_cup_transcription.json", + "thumbnailPath": "/template-gallery/whisper_tiny_blue_cup_transcription.json", + "mediaHash": "sha256:canonical-json:ba0b1938f2962321a2b801c83cdfb42de6908a828303214ba1313116da5319fe", + "mediaType": "json", + "verificationTimestamp": "2026-11-20T15:39:15.190Z", + "qualityReviewPath": "/template-gallery/reviews/whisper_tiny_blue_cup_transcription.quality-review.json", + "qualityReviewHash": "sha256:canonical-json:fccc92077f2c5e4e806b3b42136a169473886d965ca54e6bec82b619fb3ed3cc", + "verificationStatus": "reviewed", + "qualityReviewStatus": "approved_reviewed", + "reviewer": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-20T19:22:56.000Z" + }, + { + "templateId": "lcm_dawn_alpine_lake", + "promptSettingsHash": "ps_614c9651", + "templateLockHash": "tpl_03de02cb", + "modelRevision": "SimianLuo/LCM_Dreamshaper_v7@a85df6a8bd976cdd08b4fd8f3b73f229c9e54df5", + "runtimeFingerprint": "sha256:stable-runtime-v1:81c1e564602a0aaa60ba319af5a6d2fb21b9dc5a5489335a5f6cba911340bb29", + "graphHash": "sha256:canonical-graph-v1:80fc803df0e8e4fe9a90c302a88cadda57fb613ac3e67857f88fcb24ee7f0a8b", + "proofLockHash": "sha256:retained-template-association-v1:7fad851ee65290902ce375bd68b91871c4de372086de5d93d4d42a1eb3476ab9", + "backendSourceFingerprint": "sha256:backend-source-v1:56db5ad14d640c084f94cafa1e746939ebff60ac39d214f5d413dca61b94df66", + "backendContractFingerprint": "sha256:backend-contract-v1:315617df789a8a5f57426692318e197c13786098718305edd1927471b5b9c194", + "modelCommit": "a85df6a8bd976cdd08b4fd8f3b73f229c9e54df5", + "templateRevisionHash": "79ee258770b00a581d8e006b743cacd78ad992739353bcfcd724a920eb41fc8e", + "provenancePath": "/template-gallery/reviews/lcm_dawn_alpine_lake.retained-template-provenance.json", + "provenanceHash": "sha256:canonical-json:1bd4c43b13def542b4564976dcb1503f4acc441c68295e55c819545f2e6f8ffc", + "outputPath": "/template-gallery/lcm_dawn_alpine_lake.webp", + "thumbnailPath": "/template-gallery/lcm_dawn_alpine_lake.webp", + "mediaHash": "sha256:decoded-rgba:cd79df39332538af601357f0652d2a0590e6b4cfbd64eb9aa5cd1f3b96086afb", + "mediaType": "image", + "verificationTimestamp": "2026-11-20T16:22:50.650Z", + "qualityReviewPath": "/template-gallery/reviews/lcm_dawn_alpine_lake.quality-review.json", + "qualityReviewHash": "sha256:canonical-json:77136e34ecfe60b3886db742ff05fb9f81bb39903650eac3dc27ba903fbae2e0", + "verificationStatus": "reviewed", + "qualityReviewStatus": "approved_reviewed", + "reviewer": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-20T19:22:56.000Z", + "beforePath": "/template-gallery/inputs/lcm_dawn_alpine_lake.before.webp", + "beforeMediaHash": "sha256:bytes:25fe06d8e93645bc6ff29928556a0cd654aa6d70178d435268b3d17e9188feaa", + "afterPath": "/template-gallery/lcm_dawn_alpine_lake.webp", + "width": 512, + "height": 512 } ] } diff --git a/scripts/bundle-budget.mjs b/scripts/bundle-budget.mjs index 08777f78..c3351301 100644 --- a/scripts/bundle-budget.mjs +++ b/scripts/bundle-budget.mjs @@ -490,6 +490,8 @@ const SOURCE_LICENSES = new URL('../public/THIRD_PARTY_LICENSES.txt', import.met // 504492/682980/346033 largest/startup/deferred gzip bytes: the reviewed // migration ceilings below still pass with 8/12/304 bytes of headroom. const MAX_STARTUP_CHUNK_GZIP_BYTES = + // The two approved retained templates add 1643 measured gzip bytes and keep 17 bytes of headroom. + 1643 + // Preserve the measured 17-byte headroom with the new speech and edit receipt parsers. 296 + // Speech timestamp authoring and saved audio receipts measure 519191 bytes. @@ -743,6 +745,8 @@ const MAX_STARTUP_CHUNK_GZIP_BYTES = // The same build measures 673359 aggregate startup bytes (+45 over the cap). // Keep 19 bytes of headroom; deferred limits and loading boundaries stay fixed. const MAX_STARTUP_GZIP_BYTES = + // The same build adds 1644 startup gzip bytes and keeps 20 bytes of headroom. + 1644 + // The production startup total rose by 296 gzip bytes. Deferred limits are unchanged. 296 + // The speech changes measure 697677 bytes, 921 above 696756. diff --git a/scripts/image-full-native-template-candidates.test.mjs b/scripts/image-full-native-template-candidates.test.mjs index aeb9794e..ab18ee32 100644 --- a/scripts/image-full-native-template-candidates.test.mjs +++ b/scripts/image-full-native-template-candidates.test.mjs @@ -146,7 +146,10 @@ test('two experimental Custom recipes extend image coverage while preserving the publicTemplates.filter((item) => item.example?.mediaType === 'image' && historicalImageIds.has(item.id)).length, 54, ); - assert.equal(publicTemplates.filter((item) => item.example?.mediaType === 'image').length, 69); + const imageTemplates = publicTemplates.filter((item) => item.example?.mediaType === 'image'); + const retainedLake = imageTemplates.find(({ id }) => id === 'lcm_dawn_alpine_lake'); + assert.equal(retainedLake?.example.status, 'unverified'); + assert.equal(imageTemplates.filter((item) => item !== retainedLake).length, 69); for (const template of candidates) { assert.equal( publicTemplates.some((item) => item.id === template.id), diff --git a/scripts/modiff-template.test.mjs b/scripts/modiff-template.test.mjs index 6a404a0d..08baf754 100644 --- a/scripts/modiff-template.test.mjs +++ b/scripts/modiff-template.test.mjs @@ -2911,6 +2911,11 @@ test('template prompt recipes are distinct, detailed, and not generic placeholde assert.ok(template.prompt.length >= 20, `${template.id} retains a meaningful adapter reference prompt`); } else if (template.mode === 'depth_estimation' || template.mode === 'image_upscale') { assert.equal(template.prompt, '', `${template.id} uses only a source image`); + } else if (templateQualityModule.classifyTemplateQualityKind(template) === 'speech_recognition') { + assert.equal(template.prompt, '', `${template.id} reads source audio without a prompt`); + assert.ok( + template.inputBindings?.some((binding) => binding.origin === 'user' && binding.field === 'sourceAudio'), + ); } else if (template.mode === 'text_generation') { assert.ok(template.prompt.trim(), `${template.id} asks the text model a question`); } else { diff --git a/scripts/release-contract-core.mjs b/scripts/release-contract-core.mjs index d56c62b8..e554baca 100644 --- a/scripts/release-contract-core.mjs +++ b/scripts/release-contract-core.mjs @@ -699,6 +699,22 @@ const RETAINED_AUTHORING_ARCHIVES = new Map([ sha256: '787946f2e68cba243b8ca0908c8a626a9bc792ac2a03b25316eb503a7956be5b', }, ], + [ + 'HuggingFaceSpeechRecognitionModel:speech_to_text', + { + descriptorSha256: '7ef2a7611856f6a0c111d5e4ffa248201f88718756aed16f5a6a30487e571faa', + bytes: 3846, + sha256: '50555a4961d24df966a82582bbb6a0f169f5419319e955ceec8a42ec4823e415', + }, + ], + [ + 'LatentConsistencyModelPipeline:edit_image', + { + descriptorSha256: 'd29515dfafdcde29ecff2332276275247a6feeae5afd36639da87efc552af4f6', + bytes: 4384, + sha256: '5b07f097ab9706ce5ce7f9de8c1e93c2860adf5712b9c874237bea0e5739f83c', + }, + ], ]); function archivedCanonicalAuthoring(backendRoot, workflowId, evidencePath) { diff --git a/scripts/retained-gallery-provenance.mjs b/scripts/retained-gallery-provenance.mjs index 4244899e..fbbe884e 100644 --- a/scripts/retained-gallery-provenance.mjs +++ b/scripts/retained-gallery-provenance.mjs @@ -42,6 +42,29 @@ const pinsByTemplate = new Map( outputSize: { width: 128, height: 96 }, outputExtension: 'webp', }, + whisper_tiny_blue_cup_transcription: { + associationSha256: '17998ed9f920a3656b4b30178f18b03ef3c709dcaf6e43cfdd7c0804fa5c7b8c', + backendSourceFingerprint: + 'sha256:backend-source-v1:674f8959f84e6b26f6ff04d8c7cdd2af9d9a5f4e438a325ecd4c042ecda9eeab', + backendContractFingerprint: + 'sha256:backend-contract-v1:a54ff5dae2f71449c7a5b7cbb9f3db0277594d7e5117f892ecc21d4ce676f98f', + templateRevisionHash: 'f9e6bd0b708cc08d7068555be9f4094f68cc9aa6115639792339f50b38c2e35c', + capturedAt: '2026-11-20T15:39:15.190Z', + outputExtension: 'json', + }, + lcm_dawn_alpine_lake: { + associationSha256: '33a841dd30dfa18c0de548283a9adbcb92b7a89fc28a0defe3975b79f0cbeb10', + backendSourceFingerprint: + 'sha256:backend-source-v1:56db5ad14d640c084f94cafa1e746939ebff60ac39d214f5d413dca61b94df66', + backendContractFingerprint: + 'sha256:backend-contract-v1:315617df789a8a5f57426692318e197c13786098718305edd1927471b5b9c194', + templateRevisionHash: '79ee258770b00a581d8e006b743cacd78ad992739353bcfcd724a920eb41fc8e', + capturedAt: '2026-11-20T16:22:50.650Z', + inputSize: { width: 512, height: 512 }, + outputSize: { width: 512, height: 512 }, + beforeExtension: 'webp', + outputExtension: 'webp', + }, }), ); @@ -118,7 +141,7 @@ export function validateRetainedGalleryProvenance(bundle, entry, { templateRevis qualityReviewStatus: 'approved_reviewed', verificationStatus: 'reviewed', verificationTimestamp: pins.capturedAt, - beforePath: pins.inputSize ? base + 'inputs/' + stem + '.before.png' : undefined, + beforePath: pins.inputSize ? base + 'inputs/' + stem + '.before.' + (pins.beforeExtension ?? 'png') : undefined, afterPath: pins.inputSize ? outputPath : undefined, beforeMediaHash: output.inputEncodedSha256, width: pins.outputSize?.width, diff --git a/scripts/retained-gallery-release.mjs b/scripts/retained-gallery-release.mjs index caf30ce5..637ab1d6 100644 --- a/scripts/retained-gallery-release.mjs +++ b/scripts/retained-gallery-release.mjs @@ -10,6 +10,29 @@ import { validateRetainedGalleryProvenance } from './retained-gallery-provenance const same = (actual, expected, label) => assert.deepEqual(actual, expected, label); +function assertRetainedNativeIdentity(association, entry, nativeReceipt, label) { + const { observedExecution, output } = association; + const expected = { + sourceTemplateId: association.nativeSourceTaskContractId, + workflowId: association.workflowId, + proofKind: 'real_backend_input_bound_model_variant', + capturedAt: entry.verificationTimestamp, + backendSourceFingerprint: entry.backendSourceFingerprint, + canonicalWorkflowHash: association.originalCanonicalWorkflowHash, + graphHash: association.originalGraphHash, + evidenceSha256: association.originalEvidenceSha256, + modelSet: observedExecution.modelSet, + observationLimits: observedExecution.observationLimits, + outputHash: output.sourceOutputHash, + runtimeFingerprint: observedExecution.runtimeFingerprint, + executionDurationSeconds: observedExecution.executionDurationSeconds, + peakMemoryBytes: observedExecution.peakMemoryBytes, + resourceCandidateId: null, + }; + const actual = Object.fromEntries(Object.keys(expected).map((key) => [key, nativeReceipt[key]])); + same(actual, expected, label); +} + function assertRetainedSpandrelEvidence({ recipe, sourceWorkflow, association, entry, nativeReceipt }) { const { observedExecution, output } = association; const { modelArtifact, observationLimits } = observedExecution; @@ -38,47 +61,48 @@ function assertRetainedSpandrelEvidence({ recipe, sourceWorkflow, association, e assert.equal(modelArtifact.byteSize, selected.byteSize); assert.equal(output.inputEncodedSha256, `sha256:bytes:${recipe.inputSha256}`); if (!nativeReceipt) return; - same( - { - sourceTaskTemplateId: nativeReceipt.sourceTemplateId, - workflowId: nativeReceipt.workflowId, - proofKind: nativeReceipt.proofKind, - capturedAt: nativeReceipt.capturedAt, - backendSourceFingerprint: nativeReceipt.backendSourceFingerprint, - canonicalWorkflowHash: nativeReceipt.canonicalWorkflowHash, - graphHash: nativeReceipt.graphHash, - evidenceSha256: nativeReceipt.evidenceSha256, - modelSet: nativeReceipt.modelSet, - modelArtifact: nativeReceipt.modelArtifact, - observationLimits: nativeReceipt.observationLimits, - outputHash: nativeReceipt.outputHash, - decodedMediaHash: nativeReceipt.decodedOutput?.hash, - runtimeFingerprint: nativeReceipt.runtimeFingerprint, - executionDurationSeconds: nativeReceipt.executionDurationSeconds, - peakMemoryBytes: nativeReceipt.peakMemoryBytes, - }, - { - sourceTaskTemplateId: association.nativeSourceTaskContractId, - workflowId: association.workflowId, - proofKind: 'real_backend_input_bound_model_variant', - capturedAt: entry.verificationTimestamp, - backendSourceFingerprint: entry.backendSourceFingerprint, - canonicalWorkflowHash: association.originalCanonicalWorkflowHash, - graphHash: association.originalGraphHash, - evidenceSha256: association.originalEvidenceSha256, - modelSet: observedExecution.modelSet, - modelArtifact, - observationLimits, - outputHash: output.sourceOutputHash, - decodedMediaHash: output.decodedMediaHash, - runtimeFingerprint: observedExecution.runtimeFingerprint, - executionDurationSeconds: observedExecution.executionDurationSeconds, - peakMemoryBytes: observedExecution.peakMemoryBytes, - }, - 'Published Spandrel proof differs from the verified native receipt.', + const label = 'Published Spandrel proof differs from the verified native receipt.'; + assertRetainedNativeIdentity(association, entry, nativeReceipt, label); + same(nativeReceipt.modelArtifact, modelArtifact, label); + assert.equal(nativeReceipt.decodedOutput?.hash, output.decodedMediaHash, label); + assert.equal(nativeReceipt.inputBinding?.sha256, recipe.inputSha256); +} + +function assertRetainedTechnicalRecipe({ recipe, sourceWorkflow, association, entry, nativeReceipt }) { + const { observedExecution, output, recipeObservation } = association; + const speech = output.mediaType === 'json'; + assert.equal(association.originalCanonicalWorkflowHash, sourceWorkflow.contract.graphHash); + assert.equal(association.originalEvidenceSha256, recipe.originalReceiptSha256); + assert.equal(association.originalGraphHash, recipe.retainedGraphHash); + assert.equal(association.originalResourceCandidateId, null); + assert.equal(association.originalTemplateLockHash, null); + assert.equal(observedExecution.backendContractFingerprint, entry.backendContractFingerprint); + assert.equal(observedExecution.observationLimits.physicalPlatformQualification, false); + if (speech) { + assert.equal(recipeObservation.input.sha256, recipe.inputSha256); + assert.equal(recipeObservation.input.galleryScope, 'private_source_hash_only'); + assert.equal(entry.beforePath, undefined); + } else { + assert.equal(output.inputEncodedSha256, `sha256:bytes:${recipe.inputSha256}`); + assert.equal(recipeObservation.observedEditControls.prompt, recipe.template.prompt); + assert.equal(observedExecution.observationLimits.sourceGeometryQualified, false); + } + if (!nativeReceipt) return; + assertRetainedNativeIdentity( + association, + entry, + nativeReceipt, + 'Published recipe differs from the verified native receipt.', ); - assert.equal(nativeReceipt.resourceCandidateId, null); + assert.equal(nativeReceipt.canonicalDefaultsExecuted, false); assert.equal(nativeReceipt.inputBinding?.sha256, recipe.inputSha256); + if (speech) { + same(nativeReceipt.transcriptEvidence, recipeObservation.transcript, 'Published transcript observations differ.'); + } else { + assert.equal(nativeReceipt.backendContractFingerprint, entry.backendContractFingerprint); + assert.equal(nativeReceipt.promptBinding.sha256, recipe.promptSha256); + assert.equal(nativeReceipt.decodedOutput.hash, output.decodedMediaHash); + } } export function verifiedRetainedGalleryAssetIndex(clientRoot, expectedSource) { @@ -133,6 +157,9 @@ export function createRetainedGalleryReleaseReader({ clientRoot, source, registr assert.equal(association.nativeSourceTaskContractId, sourceWorkflow.manifest.sourceTemplateId); const spandrel = recipe.workflowId === 'SpandrelImageUpscale:image_upscale'; if (spandrel) assertRetainedSpandrelEvidence({ recipe, sourceWorkflow, association, entry, nativeReceipt }); + if (association.recipeObservation) { + assertRetainedTechnicalRecipe({ recipe, sourceWorkflow, association, entry, nativeReceipt }); + } if (localAssociation) { const { originalTaskId, ...redacted } = localAssociation; same(association, redacted, 'Published Gallery proof differs from the locally revalidated saved run.'); @@ -197,6 +224,7 @@ export function createRetainedGalleryReleaseReader({ clientRoot, source, registr ...(spandrel ? { modelArtifact: observedExecution.modelArtifact, observationLimits: observedExecution.observationLimits } : {}), + ...(association.recipeObservation ? { observationLimits: observedExecution.observationLimits } : {}), evidenceMatch: 'current_reviewed_retained_recipe', }; }; diff --git a/scripts/retained-gallery-release.test.mjs b/scripts/retained-gallery-release.test.mjs index a267ddb6..0422ffa0 100644 --- a/scripts/retained-gallery-release.test.mjs +++ b/scripts/retained-gallery-release.test.mjs @@ -6,6 +6,7 @@ import { test } from 'node:test'; import { canonicalJsonHash } from './canonical-json.mjs'; import { canonicalWorkflowContract } from './release-contract-core.mjs'; import { createRetainedGalleryReleaseReader, verifiedRetainedGalleryAssetIndex } from './retained-gallery-release.mjs'; +import { validateRetainedGalleryProvenance } from './retained-gallery-provenance.mjs'; import { loadTemplateRuntime } from './template-gallery-harness.mjs'; const hash = (value) => `sha256:canonical-json:${canonicalJsonHash(value)}`; @@ -153,3 +154,73 @@ test( } }, ); + +test( + 'the approved retained Whisper and LCM examples bind exact bytes and native observations', + { skip: !process.env.MODIFF_VERIFY_WHISPER_LCM_GALLERY_STAGE }, + async () => { + const clientRoot = resolve(import.meta.dirname, '..'); + const backend = resolve(process.env.MODIFF_BACKEND_DIR || join(clientRoot, '..', 'MoDiff')); + const stage = resolve(process.env.MODIFF_VERIFY_WHISPER_LCM_GALLERY_STAGE); + const json = (root, path) => JSON.parse(readFileSync(join(root, path), 'utf8')); + const registry = json(stage, 'public/template-gallery/manifest.json'); + const source = json(stage, 'src/studio/templateAssetSource.json'); + const manifest = json(backend, 'data/workflow-library-manifest.json'); + const receiptRegistry = json(backend, 'data/qualification/release/canonical-workflow-run-receipts.v1.json'); + const runtime = await loadTemplateRuntime(clientRoot); + const read = createRetainedGalleryReleaseReader({ clientRoot: stage, source, registry }); + for (const [id, workflowId] of [ + ['whisper_tiny_blue_cup_transcription', 'HuggingFaceSpeechRecognitionModel:speech_to_text'], + ['lcm_dawn_alpine_lake', 'LatentConsistencyModelPipeline:edit_image'], + ]) { + const template = runtime.templates.find((item) => item.id === id); + const entry = runtime.findManifestEntry(template, registry); + const workflow = manifest.workflows.find((item) => item.id === workflowId); + const graph = json(backend, `data/graphs/${workflow.graphPath}`); + const nativeReceipt = receiptRegistry.receipts.find((item) => item.workflowId === workflowId); + assert.ok(entry); + const proof = { + recipe: { + template, + workflowId, + sourceTaskTemplateId: workflow.sourceTemplateId, + originalReceiptSha256: nativeReceipt.evidenceSha256, + retainedGraphHash: nativeReceipt.graphHash, + inputSha256: nativeReceipt.inputBinding.sha256, + promptSha256: nativeReceipt.promptBinding?.sha256, + }, + entry, + sourceWorkflow: { manifest: workflow, contract: canonicalWorkflowContract(workflow, graph) }, + templateRevisionHash: canonicalJsonHash({ template, settings: runtime.lockedSettingsForTemplate(template) }), + nativeReceipt, + }; + const retained = read(proof); + assert.equal(retained.proofKind, 'reviewed_retained_template_execution'); + assert.equal(retained.resourceCandidateId, null); + assert.deepEqual(retained.observationLimits, nativeReceipt.observationLimits); + assert.deepEqual(read({ ...proof, nativeReceipt: undefined }), retained); + assert.throws( + () => read({ ...proof, nativeReceipt: { ...nativeReceipt, resourceCandidateId: 'made-up' } }), + /Published recipe differs from the verified native receipt/u, + ); + const provenance = json(stage, `public${entry.provenancePath}`); + const outputBytes = readFileSync(join(stage, `public${entry.outputPath}`)); + const beforeBytes = entry.beforePath && readFileSync(join(stage, `public${entry.beforePath}`)); + const check = { templateRevisionHash: proof.templateRevisionHash, outputBytes, beforeBytes }; + const changed = Buffer.from('not the original media'); + assert.deepEqual(validateRetainedGalleryProvenance(provenance, entry, check), []); + assert.ok(validateRetainedGalleryProvenance(provenance, entry, { ...check, outputBytes: changed }).length); + assert.ok(validateRetainedGalleryProvenance(provenance, entry, { ...check, beforeBytes: changed }).length); + assert.equal('originalTaskId' in provenance.association, false); + if (workflowId.startsWith('HuggingFace')) { + assert.equal(entry.beforePath, undefined); + assert.equal(provenance.association.recipeObservation.input.galleryScope, 'private_source_hash_only'); + } else { + const review = json(stage, `public${entry.qualityReviewPath}`); + assert.match(entry.beforePath, /\.before\.webp$/u); + assert.equal(review.scores.promptAdherence, 3); + assert.equal(review.maintainerAcceptance.decision, 'accepted_with_disclosed_limitations'); + } + } + }, +); diff --git a/scripts/retained-gallery-templates.test.mjs b/scripts/retained-gallery-templates.test.mjs index 6417e1ea..58f1785d 100644 --- a/scripts/retained-gallery-templates.test.mjs +++ b/scripts/retained-gallery-templates.test.mjs @@ -1,12 +1,13 @@ import assert from 'node:assert/strict'; import { execFileSync } from 'node:child_process'; import { createHash } from 'node:crypto'; -import { readFileSync } from 'node:fs'; +import { existsSync, readFileSync } from 'node:fs'; import { after, before, test } from 'node:test'; import { join, resolve } from 'node:path'; import { createServer } from 'vite'; import { canonicalJsonHash } from './canonical-json.mjs'; import { canonicalGraphIdentity } from './live-proof-provenance.mjs'; +import { readCanonicalEvidenceFile } from './release-contract-core.mjs'; import { selectCanonicalWorkflowSources } from './workflow-library-manifest-state.mjs'; const client = resolve(import.meta.dirname, '..'); @@ -73,7 +74,9 @@ after(async () => { await server?.close(); }); -function retainedTemplateGraph(recipe) { +const authorsAudioFixture = 'review-source-audio.wav'; + +function retainedTemplateGraph(recipe, sourceValue = recipe.inputFileName ?? authorsAudioFixture) { const manifest = JSON.parse(readFileSync(join(backend, 'data/workflow-library-manifest.json'), 'utf8')); const { template } = recipe; const row = manifest.workflows.find((item) => item.id === recipe.workflowId); @@ -86,16 +89,23 @@ function retainedTemplateGraph(recipe) { sourceGraph: graph, randomizeSeeds: false, }); - const node = Object.values(api.nodes).find((item) => item.action === (recipe.inputSha256 ? 'Load' : 'GenerateText')); + const nodes = Object.values(api.nodes); if (recipe.inputSha256) { - assert.equal(template.inputBindings[0].origin, 'user'); + const [binding] = template.inputBindings; + const audio = binding.mediaType === 'audio'; + assert.equal(binding.origin, 'user'); assert.match(recipe.inputSha256, /^[a-f0-9]{64}$/u); - assert.deepEqual(node.params.file.value, []); - node.params.file.value = [recipe.inputFileName]; - } else { + const source = nodes.find( + (node) => node.module === (audio ? 'modules.Audio' : 'modules.Image') && node.action === 'Load', + ); + assert.deepEqual(source.params.file.value, audio ? '' : []); + source.params.file.value = [sourceValue]; + } + if (recipe.promptSha256) { assert.equal(recipe.promptSha256, sha256(template.prompt)); - assert.equal(node.params.prompt.value, ''); - node.params.prompt.value = template.prompt; + const promptNode = nodes.find((node) => node.action === (template.mode === 'edit_image' ? 'Edit' : 'GenerateText')); + assert.equal(promptNode.params.prompt.value, ''); + promptNode.params.prompt.value = template.prompt; } return canonicalGraphIdentity(api); } @@ -131,7 +141,29 @@ test('retained Gallery recipes preserve the native graph identities and standalo ...skeletons.find(({ id }) => id === recipe.sourceTaskTemplateId), taskContract: true, }); - assert.equal(retainedTemplateGraph(recipe).hash, recipe.retainedGraphHash, template.id); + if (recipe.inputLocatorSha256) { + const evidenceRoot = join( + backend, + 'data/qualification/release/canonical-workflow-evidence', + recipe.originalReceiptSha256, + ); + const evidenceFile = join(evidenceRoot, 'evidence.json'); + assert.match(recipe.inputLocatorSha256, /^[a-f0-9]{64}$/u); + assert.equal(recipe.inputFileName, undefined); + // Repository CI has no private source. The browser-form checks below + // can use a synthetic picker string without exposing the real locator. + if (existsSync(evidenceFile)) { + const bytes = readFileSync(evidenceFile); + assert.equal(sha256(bytes), recipe.originalReceiptSha256); + const { capture } = JSON.parse(bytes); + const { inputs } = JSON.parse(readCanonicalEvidenceFile(evidenceRoot, capture).bytes); + assert.equal(inputs.length, 1); + assert.equal(sha256(inputs[0].sourceValue), recipe.inputLocatorSha256); + assert.equal(retainedTemplateGraph(recipe, inputs[0].sourceValue).hash, recipe.retainedGraphHash, template.id); + } + } else { + assert.equal(retainedTemplateGraph(recipe).hash, recipe.retainedGraphHash, template.id); + } } assert.ok(!published.some((item) => ['PixArtSigmaPAGPipeline', 'ShapEPipeline'].includes(item.modelType))); }); @@ -162,7 +194,7 @@ test('fresh Expert recipes prepare with current backend specs and without a gene flow.getState().setParam(payload.node, 'pipeline', { direction: 'output', value: contract }, 'signal'); } else { assert.equal(payload.fn, 'update_image_contract'); - assert.equal(payload.action, 'PredictMap'); + assert.ok(['PredictMap', 'Edit'].includes(payload.action)); assert.deepEqual(payload.values.image_contract, contract); } return Response.json({ error: false, nodes: [] }); @@ -177,9 +209,11 @@ test('fresh Expert recipes prepare with current backend specs and without a gene const { template } = recipe; const { spec, imageContract } = fixture.recipes.find((item) => item.id === template.id); contract = imageContract; - const input = recipe.inputSha256 ? ['@data/images/sha256-bound-ramp.png'] : []; + const inputBinding = template.inputBindings?.[0]; + const audio = inputBinding?.mediaType === 'audio'; + const input = recipe.inputSha256 ? [recipe.inputFileName ?? authorsAudioFixture] : []; const tabId = studio.getState().createWorkflowTab(template.label, undefined, 'template', template.id); - studio.getState().applyTemplate(template, { referenceImages: input }); + studio.getState().applyTemplate(template, audio ? { sourceAudio: input[0] } : { referenceImages: input }); const form = studio.getState().form; assert.equal(form.device, 'cuda:0'); assert.equal(form.resourceMode, 'expert'); @@ -222,8 +256,70 @@ test('fresh Expert recipes prepare with current backend specs and without a gene assert.deepEqual(loader.params.model_id.value, { source: 'hub', value: template.modelArtifact.value }); assert.equal(loader.params.revision.value, template.modelArtifact.revision); assert.equal(loader.params.dtype.value, 'float32'); - assert.equal(loader.params.quantization_mode.value, 'none'); assert.equal(loader.params.device.value, 'cuda:0'); + if (audio) { + const source = api.nodes[binding.nodes.loadAudio]; + // The interactive file picker supplies a local locator. The retained + // native file evidence records the same selected file as a one-item list. + const file = source.params.file.value; + assert.deepEqual(typeof file === 'string' ? [file] : file, input); + source.params.file.value = input; + const withIndependentInputsOrdered = ({ canonicalGraph }) => { + // The fresh form inserts the model before Audio Load. Both are + // independent suppliers to Transcribe Audio. + const { nodes, paths } = canonicalGraph; + assert.deepEqual( + nodes + .slice(0, 2) + .map(({ key }) => key) + .sort(), + ['modules.Audio.Load#1', 'modules.HuggingFaceSpeech.LoadSpeechRecognitionModel#1'], + ); + assert.equal(paths.length, 1); + return { + ...canonicalGraph, + nodes: [...nodes.slice(0, 2).sort((a, b) => a.key.localeCompare(b.key)), ...nodes.slice(2)], + paths: [[...paths[0].slice(0, 2).sort(), ...paths[0].slice(2)]], + }; + }; + assert.deepEqual( + withIndependentInputsOrdered(canonicalGraphIdentity(api)), + withIndependentInputsOrdered(retainedTemplateGraph(recipe)), + ); + continue; + } + assert.equal(loader.params.quantization_mode.value, 'none'); + if (template.mode === 'edit_image') { + const source = api.nodes[binding.nodes.loadImage].params; + assert.deepEqual(source.file.value, input); + assert.equal(source.alpha_channel.value, 'ignore'); + const edit = api.nodes[binding.nodes.diffusersImageEdit].params; + assert.deepEqual(edit.image_contract.value, contract); + const values = Object.fromEntries( + ['prompt', 'width', 'height', 'num_inference_steps', 'guidance_scale', 'strength', 'seed', 'output_type'].map( + (key) => [key, edit[key].value], + ), + ); + assert.deepEqual(values, { + prompt: template.prompt, + width: 1024, + height: 1024, + num_inference_steps: 4, + guidance_scale: 8.5, + strength: 0.8, + seed: 42, + output_type: 'pil', + }); + assert.equal(edit.image.sourceId, binding.nodes.loadImage); + assert.equal(edit.pipeline.sourceId, binding.nodes.diffusersImagePipeline); + assert.equal(api.nodes[binding.nodes.preview].params.image.sourceId, binding.nodes.diffusersImageEdit); + const controls = api.nodes[binding.nodes.diffusersRecipe].params; + assert.equal(controls.offload_mode.value, 'none'); + assert.equal(controls.attention_backend.value, 'auto'); + assert.equal(controls.vae_slicing.value, true); + assert.equal(controls.vae_tiling.value, true); + continue; + } if (recipe.inputSha256) { assert.ok(fieldActions.includes('update_pipeline_contract')); assert.ok(fieldActions.includes('update_image_contract')); diff --git a/scripts/retained-speech-gallery-evidence.mjs b/scripts/retained-speech-gallery-evidence.mjs new file mode 100644 index 00000000..9402f206 --- /dev/null +++ b/scripts/retained-speech-gallery-evidence.mjs @@ -0,0 +1,105 @@ +import assert from 'node:assert/strict'; +import { createHash } from 'node:crypto'; +import { canonicalJsonHash } from './canonical-json.mjs'; +import { backendContractIdentity, canonicalGraphIdentity } from './live-proof-provenance.mjs'; +import { MAX_SPEECH_TRANSCRIPT_BYTES, MAX_SPEECH_WAV_BYTES } from './private-speech-evidence.mjs'; +import { readCanonicalEvidenceFile } from './release-contract-core.mjs'; + +const digest = (bytes) => createHash('sha256').update(bytes).digest('hex'); + +function retainedBackendContract(evidenceRoot, files, graphHash) { + const readJson = (ref, maxBytes) => { + const { bytes } = readCanonicalEvidenceFile(evidenceRoot, ref, maxBytes); + return JSON.parse(new TextDecoder('utf-8', { fatal: true }).decode(bytes)); + }; + const graph = canonicalGraphIdentity(readJson(files.graphRequest)); + assert.equal(graph.hash, graphHash, 'Retained Whisper graph differs from the receipt.'); + const capture = readJson(files.capture, 64 * 1024); + const nodes = readJson(capture.nodes); + const { contracts, fingerprint } = backendContractIdentity(nodes, graph.canonicalGraph); + assert.ok( + contracts.length === 4 && contracts.every(({ params }) => Object.keys(params).length > 0), + 'Retained Whisper graph is missing a native node contract.', + ); + return fingerprint; +} + +// The caller has already revalidated the private native speech capture. Bind +// the exact archived WAV and transport to the separate Gallery JSON bytes. +export function verifyRetainedSpeechGalleryEvidence({ recipe, native, galleryOutput, galleryInput }) { + assert.equal(recipe.template.id, 'whisper_tiny_blue_cup_transcription'); + assert.equal(recipe.workflowId, 'HuggingFaceSpeechRecognitionModel:speech_to_text'); + assert.equal(galleryInput, undefined, 'The retained Whisper audio source stays private.'); + const { receipt, provenance, evidenceRoot } = native; + assert.equal(receipt.schemaVersion, 1); + assert.equal(receipt.format, 'modiff.canonical-workflow-run-receipt.v1'); + assert.equal(receipt.proofKind, 'real_backend_input_bound_model_variant'); + assert.equal(receipt.workflowId, recipe.workflowId); + assert.equal(receipt.sourceTemplateId, recipe.sourceTaskTemplateId); + assert.equal(receipt.task, 'speech_to_text'); + assert.equal(provenance.format, 'modiff.input-bound-model-variant-proof.v1'); + + const { input, output } = provenance.evidenceFiles; + const binding = receipt.inputBinding; + assert.equal(binding.field, 'file'); + assert.equal(typeof binding.sourceValue, 'string'); + assert.equal( + digest(binding.sourceValue), + recipe.inputLocatorSha256, + 'Whisper source locator differs from the retained recipe.', + ); + assert.equal(binding.converted, false); + assert.equal(binding.sha256, recipe.inputSha256, 'Whisper WAV differs from the exact recipe.'); + assert.equal(binding.sha256, input.sha256, 'Archived WAV differs from the native input binding.'); + assert.equal(binding.byteSize, input.bytes); + readCanonicalEvidenceFile(evidenceRoot, input, MAX_SPEECH_WAV_BYTES); + + const { bytes: transportBytes } = readCanonicalEvidenceFile(evidenceRoot, output, MAX_SPEECH_TRANSCRIPT_BYTES); + const sourceOutputHash = 'sha256:bytes:' + output.sha256; + assert.equal(sourceOutputHash, receipt.outputHash, 'Archived Whisper transport differs from the native run.'); + const text = new TextDecoder('utf-8', { fatal: true }).decode(transportBytes); + assert.ok(Buffer.from(text).equals(transportBytes), 'Native Whisper transport must use BOM-free UTF-8.'); + const transport = JSON.parse(text); + assert.ok( + Array.isArray(transport) && transport.length === 1 && typeof transport[0] === 'string', + 'Native Whisper transport must contain one structured result.', + ); + + const { bytes: structuredBytes, ref } = galleryOutput; + assert.ok( + Buffer.isBuffer(structuredBytes) && + structuredBytes.length > 0 && + structuredBytes.length <= MAX_SPEECH_TRANSCRIPT_BYTES, + 'Gallery transcript must be a nonempty bounded file.', + ); + assert.equal(structuredBytes.length, ref.bytes); + assert.equal(digest(structuredBytes), ref.sha256, 'Gallery transcript differs from the approved file.'); + assert.ok(Buffer.from(transport[0]).equals(structuredBytes), 'Gallery transcript must match the exact native JSON.'); + const transcript = JSON.parse(transport[0]); + assert.equal(transcript.schemaVersion, 1); + assert.equal(transcript.task, 'transcribe'); + assert.equal(transcript.timestampMode, 'segment'); + assert.ok(Array.isArray(transcript.segments) && transcript.segments.length > 0); + assert.deepEqual( + receipt.transcriptEvidence, + { + storage: 'native-text-json', + durationSeconds: transcript.durationSeconds, + timestampMode: transcript.timestampMode, + segmentCount: transcript.segments.length, + }, + 'Gallery transcript metadata differs from the verified speech receipt.', + ); + + return { + output: { + mediaType: 'json', + sourceOutputHash, + outputEncodedSha256: 'sha256:bytes:' + ref.sha256, + decodedMediaHash: 'sha256:canonical-json:' + canonicalJsonHash(transcript), + outputBytes: structuredBytes.length, + }, + inputSha256: input.sha256, + backendContractFingerprint: retainedBackendContract(evidenceRoot, provenance.evidenceFiles, receipt.graphHash), + }; +} diff --git a/scripts/retained-speech-gallery-evidence.test.mjs b/scripts/retained-speech-gallery-evidence.test.mjs new file mode 100644 index 00000000..b3965601 --- /dev/null +++ b/scripts/retained-speech-gallery-evidence.test.mjs @@ -0,0 +1,191 @@ +import assert from 'node:assert/strict'; +import { createHash } from 'node:crypto'; +import { mkdtempSync, rmSync, writeFileSync } from 'node:fs'; +import { tmpdir } from 'node:os'; +import { join } from 'node:path'; +import { test } from 'node:test'; +import { canonicalJsonHash } from './canonical-json.mjs'; +import { backendContractIdentity, canonicalGraphIdentity } from './live-proof-provenance.mjs'; +import { verifyRetainedSpeechGalleryEvidence } from './retained-speech-gallery-evidence.mjs'; + +const hash = (bytes) => createHash('sha256').update(bytes).digest('hex'); +const fileRecord = (path, bytes) => ({ path, bytes: bytes.length, sha256: hash(bytes) }); + +function fixture(t) { + const evidenceRoot = mkdtempSync(join(tmpdir(), 'modiff-retained-speech-')); + t.after(() => rmSync(evidenceRoot, { recursive: true, force: true })); + const store = (path, bytes) => { + writeFileSync(join(evidenceRoot, path), bytes); + return fileRecord(path, bytes); + }; + const durationSeconds = 2 / 16000; + const transcript = { + schemaVersion: 1, + task: 'transcribe', + text: 'Private verified recording.', + timestampMode: 'segment', + durationSeconds, + segments: [{ text: 'Private verified recording.', start: 0, end: durationSeconds }], + }; + const structured = Buffer.from(JSON.stringify(transcript, null, 2)); + const wav = Buffer.from( + '524946462800000057415645666d74201000000001000100803e0000007d000002001000646174610400000000c00040', + 'hex', + ); + const input = store('private.source.wav', wav); + const output = store('native.output.txt', Buffer.from(JSON.stringify([structured.toString('utf8')]))); + const stages = [ + ['modules.Audio', 'Load'], + ['modules.HuggingFaceSpeech', 'LoadSpeechRecognitionModel'], + ['modules.HuggingFaceSpeech', 'TranscribeAudio'], + ['modules.Primitive', 'DataViewer'], + ]; + const nodes = Object.fromEntries( + stages.map(([module, action], index) => [ + 'node-' + (index + 1), + { module, action, params: { sample: { value: index } } }, + ]), + ); + const submission = { nodes, paths: [Object.keys(nodes)] }; + const graph = canonicalGraphIdentity(submission); + const registry = { + nodes: Object.fromEntries( + Object.values(nodes).map(({ module, action }) => [ + module + '.' + action, + { module, action, params: { sample: { type: 'int', display: 'number' } } }, + ]), + ), + }; + const storeJson = (path, value) => store(path, Buffer.from(JSON.stringify(value))); + const storeCapture = () => storeJson('capture.json', { nodes: storeJson('nodes.json', registry) }); + const recipe = { + workflowId: 'HuggingFaceSpeechRecognitionModel:speech_to_text', + sourceTaskTemplateId: 'task-template:whisper-tiny:speech-to-text:v1', + template: { id: 'whisper_tiny_blue_cup_transcription' }, + inputLocatorSha256: hash('local.source.wav'), + inputSha256: input.sha256, + }; + const receipt = { + schemaVersion: 1, + format: 'modiff.canonical-workflow-run-receipt.v1', + proofKind: 'real_backend_input_bound_model_variant', + workflowId: recipe.workflowId, + task: 'speech_to_text', + sourceTemplateId: recipe.sourceTaskTemplateId, + inputBinding: { + field: 'file', + sourceValue: 'local.source.wav', + byteSize: input.bytes, + sha256: input.sha256, + converted: false, + }, + graphHash: graph.hash, + outputHash: 'sha256:bytes:' + output.sha256, + transcriptEvidence: { + storage: 'native-text-json', + durationSeconds, + timestampMode: 'segment', + segmentCount: 1, + }, + }; + const provenance = { + format: 'modiff.input-bound-model-variant-proof.v1', + evidenceFiles: { + input, + output, + capture: storeCapture(), + graphRequest: storeJson('graph-request.json', submission), + }, + }; + const galleryOutput = { bytes: structured, ref: fileRecord('transcript.json', structured) }; + return { + args: { recipe, native: { receipt, provenance, evidenceRoot }, galleryOutput }, + transcript, + store, + storeJson, + storeCapture, + registry, + submission, + wav, + backendContractFingerprint: backendContractIdentity(registry, graph.canonicalGraph).fingerprint, + }; +} + +test('Whisper Gallery proof rejects a changed private source locator', (t) => { + const { args } = fixture(t); + args.native.receipt.inputBinding.sourceValue = 'different.source.wav'; + assert.throws(() => verifyRetainedSpeechGalleryEvidence(args), /source locator differs/u); +}); + +test('verified Whisper Gallery proof binds exact output and original private WAV by hash', (t) => { + const { args, transcript, backendContractFingerprint } = fixture(t); + const proof = verifyRetainedSpeechGalleryEvidence(args); + assert.deepEqual(proof, { + output: { + mediaType: 'json', + sourceOutputHash: args.native.receipt.outputHash, + outputEncodedSha256: 'sha256:bytes:' + args.galleryOutput.ref.sha256, + decodedMediaHash: 'sha256:canonical-json:' + canonicalJsonHash(transcript), + outputBytes: args.galleryOutput.bytes.length, + }, + inputSha256: args.recipe.inputSha256, + backendContractFingerprint, + }); +}); + +test('rejects equal JSON content with different approved file bytes', (t) => { + const { args, transcript } = fixture(t); + const bytes = Buffer.from(JSON.stringify(transcript)); + args.galleryOutput = { bytes, ref: fileRecord('transcript.json', bytes) }; + assert.throws(() => verifyRetainedSpeechGalleryEvidence(args), /exact native JSON/u); +}); + +test('rejects matching changed transport and Gallery output against the saved receipt', (t) => { + const { args, transcript, store } = fixture(t); + transcript.text = 'Altered transcript.'; + transcript.segments[0].text = transcript.text; + const bytes = Buffer.from(JSON.stringify(transcript, null, 2)); + args.galleryOutput = { bytes, ref: fileRecord('transcript.json', bytes) }; + args.native.provenance.evidenceFiles.output = store( + 'native.output.txt', + Buffer.from(JSON.stringify([bytes.toString('utf8')])), + ); + assert.throws(() => verifyRetainedSpeechGalleryEvidence(args), /native run/u); +}); + +test('rejects a WAV altered on disk or replaced with a rehashed descriptor', (t) => { + const { args, store, wav } = fixture(t); + wav[wav.length - 1] ^= 1; + const changed = store('private.source.wav', wav); + assert.throws(() => verifyRetainedSpeechGalleryEvidence(args), /Evidence file hash differs/u); + args.native.provenance.evidenceFiles.input = changed; + assert.throws(() => verifyRetainedSpeechGalleryEvidence(args), /native input binding/u); + args.native.receipt.inputBinding.sha256 = changed.sha256; + assert.throws(() => verifyRetainedSpeechGalleryEvidence(args), /exact recipe/u); +}); + +test('rejects a mismatched decoded transcript observation', (t) => { + const { args } = fixture(t); + args.native.receipt.transcriptEvidence.segmentCount = 2; + assert.throws(() => verifyRetainedSpeechGalleryEvidence(args), /verified speech receipt/u); +}); + +test('rejects an attempt to provide the private WAV as Gallery input', (t) => { + const { args, wav } = fixture(t); + args.galleryInput = { bytes: wav, ref: fileRecord('input.wav', wav) }; + assert.throws(() => verifyRetainedSpeechGalleryEvidence(args), /audio source stays private/u); +}); + +test('rejects a rehashed graph that differs from the captured Whisper graph', (t) => { + const { args, submission, storeJson } = fixture(t); + submission.nodes['node-1'].params.sample.value = 999; + args.native.provenance.evidenceFiles.graphRequest = storeJson('graph-request.json', submission); + assert.throws(() => verifyRetainedSpeechGalleryEvidence(args), /graph differs from the receipt/u); +}); + +test('rejects a rehashed incomplete native node inventory', (t) => { + const { args, registry, storeCapture } = fixture(t); + delete registry.nodes['modules.Audio.Load']; + args.native.provenance.evidenceFiles.capture = storeCapture(); + assert.throws(() => verifyRetainedSpeechGalleryEvidence(args), /missing a native node contract/u); +}); diff --git a/scripts/retained-template-association.mjs b/scripts/retained-template-association.mjs index 548a9b88..427fb4ec 100644 --- a/scripts/retained-template-association.mjs +++ b/scripts/retained-template-association.mjs @@ -4,6 +4,7 @@ import { existsSync, lstatSync, readFileSync } from 'node:fs'; import { join } from 'node:path'; import { canonicalJsonHash } from './canonical-json.mjs'; import { readCanonicalEvidenceFile } from './release-contract-core.mjs'; +import { verifyRetainedSpeechGalleryEvidence } from './retained-speech-gallery-evidence.mjs'; import { verifyRetainedStructuredText } from './retained-structured-text-evidence.mjs'; import { canonicalJsonHash as galleryJsonHash, validateQualityReview } from './template-gallery-harness.mjs'; @@ -22,6 +23,25 @@ const BOUND_REVIEW_SCOPES = { decision: 'approved', }, }; +const WHISPER_LCM_REVIEW_SCOPES = { + whisper_tiny_blue_cup_transcription: { + folder: 'whisper', + proofKind: 'real_backend_input_bound_model_variant', + output: 'output.original.json', + decision: 'approved', + technicalRecipe: 'speech_transcription', + }, + lcm_dawn_alpine_lake: { + folder: 'lcm', + proofKind: 'real_backend_input_bound_model_variant', + output: 'output.original.webp', + input: 'input.original.webp', + decision: 'accepted_with_disclosed_limitations', + technicalRecipe: 'source_bound_image_edit', + acceptanceStatement: + 'Accepted as a creative dawn reinterpretation with the disclosed terrain changes and stronger alpenglow.', + }, +}; const SPANDREL_TEMPLATE_ID = 'spandrel_x2_synthetic_gradient'; const SPANDREL_REVIEW_HASH = '357594a299efcda4b9b9e7c4fa65c3d016db3ffe1634fdfe8dfe360789c4d0d4'; const SPANDREL_SCOPE = { @@ -42,6 +62,101 @@ function readBoundedRecord(path) { return { value: JSON.parse(bytes), sha256: digest(bytes) }; } +function verifiedTechnicalRecipe({ scope, recipe, candidate, native, reviewedRecipe, output, speech }) { + const { bytes, ref } = reviewedRecipe; + const { receipt } = native; + assert.equal(digest(bytes), ref.sha256); + assert.equal(ref.sha256, candidate.draftProvenanceSha256); + const draft = JSON.parse(bytes); + assert.equal(draft.schemaVersion, 1); + assert.equal(draft.templateId, recipe.template.id); + assert.equal(draft.workflowId, receipt.workflowId); + assert.equal(draft.sourceTaskContractId, receipt.sourceTemplateId); + assert.equal(draft.runtimeFingerprint, receipt.runtimeFingerprint); + assert.equal(draft.backendSourceFingerprint, receipt.backendSourceFingerprint); + assert.deepEqual(draft.observationLimits, receipt.observationLimits); + assert.equal( + draft.output.decodedMediaHash ?? `sha256:decoded-rgba:${draft.output.decodedSha256}`, + output.decodedMediaHash, + ); + assert.equal(`sha256:bytes:${draft.output.sha256 ?? draft.output.encodedSha256}`, output.outputEncodedSha256); + assert.equal(draft.output.byteSize ?? draft.output.bytes, output.outputBytes); + const { templateLockHash, galleryTemplateLockHash, promptSettingsHash } = recipe.reviewedCatalogLock; + if (scope.technicalRecipe === 'speech_transcription') { + assert.equal(draft.format, 'modiff.gallery.retained-speech-review-draft.v1'); + assert.equal(draft.reviewStatus, 'pending_review'); + assert.equal(draft.proposedTemplateRevisionSha256, recipe.reviewedTemplateSha256); + assert.deepEqual(draft.proposedCatalogLock, recipe.reviewedCatalogLock); + assert.equal(draft.canonicalWorkflowHash, receipt.canonicalWorkflowHash); + assert.equal(draft.graphHash, receipt.graphHash); + assert.equal(draft.backendContractFingerprint, speech.backendContractFingerprint); + assert.equal(draft.output.nativeTransportSha256, output.sourceOutputHash); + assert.equal( + draft.modelRevision, + receipt.modelSet.map(({ repoId, revision }) => `${repoId}@${revision}`).join(' | '), + ); + assert.equal(Date.parse(draft.capturedAt), Date.parse(receipt.capturedAt)); + assert.equal(draft.executionDurationSeconds, receipt.executionDurationSeconds); + assert.equal(draft.peakMemoryBytes, receipt.peakMemoryBytes); + assert.deepEqual(draft.input, { + origin: 'Synthetic English speech', + format: 'PCM16 WAV', + byteSize: receipt.inputBinding.byteSize, + sampleRate: receipt.inputBinding.decodedAudio.sampleRate, + channels: receipt.inputBinding.decodedAudio.shape[1], + durationSeconds: receipt.transcriptEvidence.durationSeconds, + sha256: speech.inputSha256, + galleryScope: 'private_source_hash_only', + }); + return { + backendContractFingerprint: speech.backendContractFingerprint, + recipeObservation: { input: draft.input, settings: draft.settings, transcript: receipt.transcriptEvidence }, + }; + } + assert.equal(draft.format, 'modiff.gallery.retained-template-provenance-draft.v1'); + assert.equal(draft.verificationStatus, 'pending_maintainer_review'); + assert.equal(draft.templateRevisionHash, recipe.reviewedTemplateSha256); + assert.equal(draft.templateLockHash, galleryTemplateLockHash); + assert.equal(draft.catalogTemplateLockHash, templateLockHash); + assert.equal(draft.promptSettingsHash, promptSettingsHash); + assert.equal(draft.originalCanonicalWorkflowHash, receipt.canonicalWorkflowHash); + assert.equal(draft.originalGraphHash, receipt.graphHash); + assert.equal(draft.evidenceDescriptorSha256, recipe.originalReceiptSha256); + assert.equal(draft.backendContractFingerprint, receipt.backendContractFingerprint); + assert.equal(Date.parse(draft.verificationTimestamp), Date.parse(receipt.capturedAt)); + assert.equal(draft.runtime.executionDurationSeconds, receipt.executionDurationSeconds); + assert.equal(draft.runtime.peakMemoryBytes, receipt.peakMemoryBytes); + assert.deepEqual(draft.modelSet, receipt.modelSet); + assert.deepEqual(draft.qualificationClaims, receipt.qualificationClaims); + assert.equal(draft.canonicalDefaultsExecuted, false); + const { width, height } = receipt.inputBinding.decodedImage; + assert.deepEqual([draft.source.width, draft.source.height], [width, height]); + assert.equal(draft.source.encodedSha256, recipe.inputSha256); + assert.equal(draft.source.decodedSha256, receipt.inputBinding.decodedImage.sha256); + assert.equal(draft.source.sourceFileName, recipe.inputFileName); + assert.deepEqual( + [draft.output.width, draft.output.height], + [receipt.decodedOutput.width, receipt.decodedOutput.height], + ); + assert.equal(draft.observedEditControls.prompt, recipe.template.prompt); + return { + backendContractFingerprint: receipt.backendContractFingerprint, + recipeObservation: { + source: { + width, + height, + encodedSha256: draft.source.encodedSha256, + decodedSha256: draft.source.decodedSha256, + creation: draft.source.creation, + }, + observedEditControls: draft.observedEditControls, + inactiveAuthoredEditControls: draft.inactiveAuthoredEditControls, + submittedLoaderSettings: draft.submittedLoaderSettings, + modelTerms: draft.modelTerms, + }, + }; +} + export function assessRetainedTemplateAssociation({ recipe, candidate, @@ -53,7 +168,9 @@ export function assessRetainedTemplateAssociation({ }) { const { template } = recipe; const spandrel = template.id === SPANDREL_TEMPLATE_ID; - const scope = spandrel ? SPANDREL_SCOPE : BOUND_REVIEW_SCOPES[template.id]; + const scope = spandrel + ? SPANDREL_SCOPE + : (BOUND_REVIEW_SCOPES[template.id] ?? WHISPER_LCM_REVIEW_SCOPES[template.id]); assert.ok(scope, 'Retained Gallery template scope is not reviewed.'); const { evidence, receipt, evidenceRoot, descriptorBytes } = native; assert.equal(candidate.templateId, template.id); @@ -147,7 +264,11 @@ export function assessRetainedTemplateAssociation({ } let output; - if (scope.input) { + let speech; + if (scope.technicalRecipe === 'speech_transcription') { + speech = verifyRetainedSpeechGalleryEvidence({ recipe, native, galleryOutput, galleryInput }); + output = speech.output; + } else if (scope.input) { assert.equal(digest(galleryInput.bytes), galleryInput.ref.sha256); assert.equal(galleryInput.ref.sha256, receipt.inputBinding.sha256); assert.equal(galleryInput.ref.sha256, recipe.inputSha256); @@ -155,8 +276,12 @@ export function assessRetainedTemplateAssociation({ [template.example.expectedOutput.width, template.example.expectedOutput.height], [receipt.decodedOutput.width, receipt.decodedOutput.height], ); - const source = evidence.inputs[0]; - assert.equal(evidence.inputs.length, 1); + const capture = + scope.technicalRecipe === 'source_bound_image_edit' + ? JSON.parse(readCanonicalEvidenceFile(evidenceRoot, evidence.capture).bytes) + : evidence; + const source = capture.inputs[0]; + assert.equal(capture.inputs.length, 1); assert.equal(source.file.sha256, recipe.inputSha256); assert.equal(source.sourceValue, recipe.inputFileName); assert.equal(template.inputBindings.length, 1); @@ -165,6 +290,10 @@ export function assessRetainedTemplateAssociation({ assert.equal(binding.field, 'referenceImages'); assert.equal(binding.count, 1); assert.equal(`sha256:bytes:${galleryOutput.ref.sha256}`, receipt.outputHash); + if (scope.technicalRecipe === 'source_bound_image_edit') { + assert.equal(digest(template.prompt), recipe.promptSha256); + assert.equal(receipt.promptBinding.sha256, recipe.promptSha256); + } output = { mediaType: 'image', sourceOutputHash: receipt.outputHash, @@ -190,6 +319,9 @@ export function assessRetainedTemplateAssociation({ }; } assert.equal(digest(descriptorBytes), recipe.originalReceiptSha256); + const technicalRecipe = scope.technicalRecipe + ? verifiedTechnicalRecipe({ scope, recipe, candidate, native, reviewedRecipe, output, speech }) + : null; const association = { schemaVersion: 1, format: 'modiff.retained-template-association.v1', @@ -201,7 +333,7 @@ export function assessRetainedTemplateAssociation({ catalogPromptSettingsHash: catalogLock.promptSettingsHash, originalTaskId: receipt.taskId, originalGraphHash: receipt.graphHash, - ...(spandrel ? { originalCanonicalWorkflowHash: receipt.canonicalWorkflowHash } : {}), + ...(spandrel || technicalRecipe ? { originalCanonicalWorkflowHash: receipt.canonicalWorkflowHash } : {}), originalTemplateLockHash: null, originalResourceCandidateId: null, originalEvidenceSha256: recipe.originalReceiptSha256, @@ -212,8 +344,10 @@ export function assessRetainedTemplateAssociation({ executionDurationSeconds: receipt.executionDurationSeconds, peakMemoryBytes: receipt.peakMemoryBytes, observationLimits: receipt.observationLimits, + ...(technicalRecipe ? { backendContractFingerprint: technicalRecipe.backendContractFingerprint } : {}), }, output, + ...(technicalRecipe ? { recipeObservation: technicalRecipe.recipeObservation } : {}), review: { qualityDecision: candidate.qualityDecision, redistributionConfirmed: true, @@ -269,9 +403,11 @@ export function finalizeRetainedQualityReview({ association, draft, reviewer, re decision: 'accepted_with_disclosed_limitations', reviewer, acceptedAt: reviewedAt, - statement: spandrel - ? 'Accepted as a technical preview of the exact saved synthetic gradient and 2× delivery with the disclosed limitations.' - : 'Accepted as a technical depth preview with the reviewed scores and the disclosed limits of the synthetic ramp.', + statement: + WHISPER_LCM_REVIEW_SCOPES[association.templateId]?.acceptanceStatement ?? + (spandrel + ? 'Accepted as a technical preview of the exact saved synthetic gradient and 2× delivery with the disclosed limitations.' + : 'Accepted as a technical depth preview with the reviewed scores and the disclosed limits of the synthetic ramp.'), acceptedReviewHash: galleryJsonHash(review), }; } @@ -280,12 +416,11 @@ export function finalizeRetainedQualityReview({ association, draft, reviewer, re return review; } -// The retained native reader must already have revalidated the original -// evidence descriptor and all inputs, output, runtime and source receipts. -export async function readReviewedBoundTemplateAssociations({ approvalRoot, vite, nativeBySha }) { +async function readReviewBatch({ approvalRoot, vite, nativeBySha, scopes, approvalSha256 }) { const approvalPath = join(approvalRoot, 'approval.v1.json'); - if (!existsSync(approvalPath)) return new Map(); - const { value: approval } = readBoundedRecord(approvalPath); + if (!existsSync(approvalPath)) return []; + const { value: approval, sha256: approvalDigest } = readBoundedRecord(approvalPath); + if (approvalSha256) assert.equal(approvalDigest, approvalSha256, 'The retained batch approval differs.'); assert.equal(approval.schemaVersion, 1); assert.equal(approval.format, 'modiff.private.gallery-candidate-approval.v1'); assert.equal(approval.publicationStatus, 'private_staging'); @@ -296,9 +431,7 @@ export async function readReviewedBoundTemplateAssociations({ approvalRoot, vite Number.isFinite(Date.parse(approval.recordedAt)), ); assert.match(approval.reviewScopeSha256, /^[a-f0-9]{64}$/u); - assert.ok( - Array.isArray(approval.candidates) && approval.candidates.length === Object.keys(BOUND_REVIEW_SCOPES).length, - ); + assert.ok(Array.isArray(approval.candidates) && approval.candidates.length === Object.keys(scopes).length); const reviewedScope = readBoundedRecord(join(approvalRoot, 'review-scope.json')); assert.equal(reviewedScope.sha256, approval.reviewScopeSha256, 'Original review inventory hash differs.'); assert.equal(reviewedScope.value.status, 'private_review_only'); @@ -309,12 +442,10 @@ export async function readReviewedBoundTemplateAssociations({ approvalRoot, vite const { getTemplateLockHash, getPromptSettingsHash, getTemplateLockedSettings } = await vite.ssrLoadModule( '/src/studio/templateExactness.ts', ); - const associations = new Map(); - for (const recipe of RETAINED_GALLERY_TEMPLATES.filter(({ template }) => - Object.hasOwn(BOUND_REVIEW_SCOPES, template.id), - )) { + const records = []; + for (const recipe of RETAINED_GALLERY_TEMPLATES.filter(({ template }) => Object.hasOwn(scopes, template.id))) { const { template } = recipe; - const scope = BOUND_REVIEW_SCOPES[template.id]; + const scope = scopes[template.id]; const matches = approval.candidates.filter((item) => item.templateId === template.id); assert.equal(matches.length, 1, 'Exact retained Gallery approval is missing or ambiguous.'); const [candidate] = matches; @@ -354,12 +485,21 @@ export async function readReviewedBoundTemplateAssociations({ approvalRoot, vite !draft.reviewer && !draft.reviewedAt, 'The reviewed draft must preserve original pending review metadata.', ); + if (scope.technicalRecipe) { + assert.deepEqual(draft.scores, candidate.reviewedScores); + assert.equal(draft.schemaVersion, 2); + if (scope.input) { + assert.equal(draft.sourceSha256, files.get(scope.input).ref.sha256); + assert.equal(draft.proposedDecision, scope.decision); + } + } const association = assessRetainedTemplateAssociation({ recipe, candidate, native, galleryOutput: media, galleryInput: scope.input ? files.get(scope.input) : undefined, + reviewedRecipe: files.get('proposed-provenance.json'), catalogLock: { templateLockHash: getTemplateLockHash(template), galleryTemplateLockHash: getTemplateLockHash(template, draft.modelRevision), @@ -373,13 +513,44 @@ export async function readReviewedBoundTemplateAssociations({ approvalRoot, vite reviewer: approval.reviewer, reviewedAt: approval.recordedAt, }); - assert.ok(!associations.has(association.workflowId), 'Retained Gallery workflow association is duplicated.'); - associations.set(association.workflowId, { ...association, qualityReviewHash: galleryJsonHash(qualityReview) }); + records.push({ + association: { ...association, qualityReviewHash: galleryJsonHash(qualityReview) }, + qualityReview, + recipe, + receipt: native.receipt, + outputBytes: media.bytes, + beforeBytes: scope.input ? files.get(scope.input).bytes : undefined, + }); } - assert.equal(associations.size, approval.candidates.length); + assert.equal(records.length, approval.candidates.length); assert.equal( indexedFiles.size, approval.candidates.reduce((total, item) => total + item.files.length, 0), ); + return records; +} + +// The retained native reader must already have revalidated the original +// evidence descriptor and all inputs, output, runtime and source receipts. +export function readApprovedWhisperLcmBatch(args) { + return readReviewBatch({ + ...args, + scopes: WHISPER_LCM_REVIEW_SCOPES, + approvalSha256: 'ba369c5fff89e379be66714d3ecbf1a0e3a9555e2b5ffbc9cb54210d862ec30b', + }); +} + +export async function readReviewedBoundTemplateAssociations({ approvalRoot, vite, nativeBySha }) { + const current = await readReviewBatch({ approvalRoot, vite, nativeBySha, scopes: BOUND_REVIEW_SCOPES }); + const audited = await readApprovedWhisperLcmBatch({ + approvalRoot: join(approvalRoot, 'whisper-lcm'), + vite, + nativeBySha, + }); + const associations = new Map(); + for (const { association } of [...current, ...audited]) { + assert.ok(!associations.has(association.workflowId), 'Retained Gallery workflow association is duplicated.'); + associations.set(association.workflowId, association); + } return associations; } diff --git a/scripts/template-gallery-harness.test.mjs b/scripts/template-gallery-harness.test.mjs index 16cf9e50..57a0ed23 100644 --- a/scripts/template-gallery-harness.test.mjs +++ b/scripts/template-gallery-harness.test.mjs @@ -1110,9 +1110,12 @@ test('public provenance redacts removable Linux mounts while retaining public an }); test('gallery harness loads all Studio templates from the TypeScript runtime', () => { - assert.equal(runtime.templates.length, 94); - assert.equal(new Set(runtime.templates.map((template) => template.id)).size, 94); - assert.ok(runtime.templates.some((template) => template.id === 'spandrel_x2_synthetic_gradient')); + assert.equal(runtime.templates.length, 96); + const ids = new Set(runtime.templates.map((template) => template.id)); + assert.equal(ids.size, 96); + assert.ok(ids.has('whisper_tiny_blue_cup_transcription')); + assert.ok(ids.has('lcm_dawn_alpine_lake')); + assert.ok(ids.has('spandrel_x2_synthetic_gradient')); assert.ok(runtime.templates.some((template) => template.id === 'minimax_h3_image_old_town_cat')); assert.ok(runtime.templates.some((template) => template.id === 'minimax_music3_chamber_pop')); assert.equal( diff --git a/scripts/template-quality.test.mjs b/scripts/template-quality.test.mjs index bb13f971..54144aa7 100644 --- a/scripts/template-quality.test.mjs +++ b/scripts/template-quality.test.mjs @@ -176,6 +176,7 @@ test('the complete catalog audits authored prompts and reports backend defaults 'image_upscale', 'depth_estimation', 'text_generation', + 'speech_recognition', 'video', 'audio', ]), @@ -203,6 +204,45 @@ test('depth, upscale, and text audits follow the input contracts of their own ta ); }); +test('the Whisper Tiny audio-to-text template needs an audio source and no prompt', () => { + const template = templatesModule.STUDIO_TEMPLATES.find((item) => item.id === 'whisper_tiny_blue_cup_transcription'); + assert.ok(template); + const audit = qualityModule.auditTemplateQuality(template); + assert.equal(audit.kind, 'speech_recognition'); + assert.deepEqual(audit.requiredSemanticGroups, []); + assert.equal(audit.passed, true); + assert.deepEqual( + qualityModule + .auditTemplateQuality({ ...template, prompt: 'Transcribe the uploaded audio.' }) + .issues.map((issue) => issue.code), + ['unsupported_prompt_input'], + ); +}); + +test('the LCM Edit audit recognizes a target caption with a bound source and no negative input', () => { + const template = templatesModule.STUDIO_TEMPLATES.find((item) => item.id === 'lcm_dawn_alpine_lake'); + assert.ok(template); + const audit = qualityModule.auditTemplateQuality(template); + assert.equal(audit.passed, true); + assert.equal(audit.negative.policy.declarationId, 'lcm-edit-no-negative-input'); + assert.deepEqual(audit.matchedSemanticGroups, ['source_role', 'transformation', 'preservation', 'integration']); + + const missingSource = qualityModule.auditTemplateQuality({ ...template, inputBindings: [] }); + assert.ok(missingSource.issues.some((issue) => issue.semanticGroup === 'source_role')); + const noTarget = qualityModule.auditTemplateQuality({ + ...template, + prompt: 'Photograph of this alpine lake. Keep the shoreline, rocky foreground and pine forest composition.', + }); + assert.ok(noTarget.issues.some((issue) => issue.semanticGroup === 'transformation')); + const instructionEdit = qualityModule.auditTemplateQuality({ + ...template, + modelType: 'QwenImageEditModularPipeline', + }); + assert.ok(instructionEdit.issues.some((issue) => issue.semanticGroup === 'transformation')); + assert.ok(instructionEdit.issues.some((issue) => issue.code === 'blank_negative_not_allowed')); + assert.equal(qualityModule.getTemplateNegativePolicy({ ...template, mode: 'text_to_image' }).requirement, 'required'); +}); + test('the Cosmos publisher blank-negative declaration does not extend to other same-class recipes', () => { const template = templatesModule.STUDIO_TEMPLATES.find((item) => item.id === 'cosmos3_super_text_to_image'); assert.equal(qualityModule.getTemplateNegativePolicy(template).declarationId, 'cosmos3-super-publisher-conditioning'); diff --git a/src/studio/retainedGalleryTemplates.ts b/src/studio/retainedGalleryTemplates.ts index c2d1dcbd..9b0bd47c 100644 --- a/src/studio/retainedGalleryTemplates.ts +++ b/src/studio/retainedGalleryTemplates.ts @@ -12,7 +12,11 @@ type RetainedGalleryRecipe = { readonly galleryTemplateLockHash: string; readonly promptSettingsHash: string; }; -} & ({ readonly inputSha256: string; readonly inputFileName: string } | { readonly promptSha256: string }); +} & ( + | { readonly inputSha256: string; readonly inputFileName: string; readonly promptSha256?: string } + | { readonly inputSha256: string; readonly inputLocatorSha256: string } + | { readonly promptSha256: string } +); const syntheticGradientSha256 = '626815c78eaad46cad849732d1598b45b91700ce046c1ee3f4e2444db80aa32a'; const marigoldRevision = '04a73502f7fd8fc5e59947b9df3b2266d71d6849'; @@ -260,4 +264,184 @@ export const RETAINED_GALLERY_TEMPLATES = [ }, }, }, + { + workflowId: 'HuggingFaceSpeechRecognitionModel:speech_to_text', + sourceTaskTemplateId: 'task-template:whisper-tiny:speech-to-text:v1', + retainedGraphHash: 'sha256:canonical-graph-v1:b377ff0dee17374428c2deb83531bdee0b21eac105ea6e81fe705a41c4f98adb', + originalReceiptSha256: '7ef2a7611856f6a0c111d5e4ffa248201f88718756aed16f5a6a30487e571faa', + reviewedTemplateSha256: 'f9e6bd0b708cc08d7068555be9f4094f68cc9aa6115639792339f50b38c2e35c', + reviewedCatalogLock: { + templateLockHash: 'tpl_feef81de', + galleryTemplateLockHash: 'tpl_e533ed76', + promptSettingsHash: 'ps_254ff664', + }, + inputSha256: 'd5a4aebb4bd603192b70b0744e6ac158ed10c4c845d423b7fb7b1ef7de0ed41f', + inputLocatorSha256: '50e837ad6f7de4f94901d12dd299c89410ff225f23a4bd5eb4ccf5621e0aea26', + template: { + id: 'whisper_tiny_blue_cup_transcription', + label: 'Whisper Tiny — Short Speech Transcription', + modelDisplayName: 'Whisper Tiny', + mode: 'speech_to_text', + modelType: 'HuggingFaceSpeechRecognitionModel', + intentGroup: 'utility', + category: 'audio_edit', + tags: ['transcription', 'segment timestamps', 'JSON'], + difficulty: 'starter', + readinessPolicy: 'requires_input', + outputKinds: ['json'], + inputBindings: [ + { + id: 'source-audio', + label: 'Source audio', + mediaType: 'audio', + origin: 'user', + requiredAt: 'workflow_start', + field: 'sourceAudio', + count: 1, + }, + ], + mediaSlots: [ + { + id: 'result', + label: 'Transcript and segment timestamps', + kind: 'json', + role: 'output', + placeholder: 'Transcript pending', + }, + ], + requiredBackendCapabilities: [ + 'modules.Audio.Load', + 'modules.HuggingFaceSpeech.LoadSpeechRecognitionModel', + 'modules.HuggingFaceSpeech.TranscribeAudio', + 'modules.Primitive.DataViewer', + ], + modelArtifact: { + source: 'hub', + value: 'openai/whisper-tiny', + revision: '169d4a4341b33bc18d8881c4b69c2e104e1cc0af', + }, + runtimeReuseKey: 'HuggingFaceSpeechRecognitionModel:float32:none:resident:none', + description: 'Transcribe a short audio file and inspect the text and segment timestamps.', + recipeSummary: 'Load audio, transcribe with Whisper Tiny, and inspect the structured result.', + prompt: '', + example: { + mediaType: 'json', + status: 'unverified', + modelRevision: '169d4a4341b33bc18d8881c4b69c2e104e1cc0af', + lockedSeed: 42, + lockedSettings: { + width: 1, + height: 1, + steps: 1, + guidanceScale: 0, + dtype: 'float32', + resourceMode: 'expert', + quantizationMode: 'none', + autoOffload: false, + offloadMode: 'none', + }, + runtimeEstimate: '1.56 seconds in the retained Linux ROCm run', + notes: 'One short synthetic English recording. Segment timestamps were checked for bounds.', + }, + }, + }, + { + workflowId: 'LatentConsistencyModelPipeline:edit_image', + sourceTaskTemplateId: 'task-template:lcm-dreamshaper-v7:edit-image:v1', + retainedGraphHash: 'sha256:canonical-graph-v1:80fc803df0e8e4fe9a90c302a88cadda57fb613ac3e67857f88fcb24ee7f0a8b', + originalReceiptSha256: 'd29515dfafdcde29ecff2332276275247a6feeae5afd36639da87efc552af4f6', + reviewedTemplateSha256: '79ee258770b00a581d8e006b743cacd78ad992739353bcfcd724a920eb41fc8e', + reviewedCatalogLock: { + templateLockHash: 'tpl_606d8d50', + galleryTemplateLockHash: 'tpl_03de02cb', + promptSettingsHash: 'ps_614c9651', + }, + inputFileName: 'prx-linux-bf16-native-efficient-alpine-lake.webp', + inputSha256: '25fe06d8e93645bc6ff29928556a0cd654aa6d70178d435268b3d17e9188feaa', + promptSha256: 'ec2943b08ef8225e661ab5c3f712a6e555eabd481e4bf2e8ba68b34963367e33', + template: { + id: 'lcm_dawn_alpine_lake', + label: 'LCM DreamShaper 7 — Alpine Lake at Dawn', + modelDisplayName: 'LCM DreamShaper 7', + mode: 'edit_image', + modelType: 'LatentConsistencyModelPipeline', + intentGroup: 'edit_image', + category: 'edit', + tags: ['image edit', 'landscape', 'dawn'], + difficulty: 'starter', + readinessPolicy: 'requires_input', + outputKinds: ['image'], + thumbnailVariant: 'compareSlider', + inputBindings: [ + { + id: 'alpine-lake-source', + label: 'Source image', + mediaType: 'image', + origin: 'user', + requiredAt: 'workflow_start', + field: 'referenceImages', + count: 1, + }, + ], + mediaSlots: [ + { + id: 'before', + label: 'Daylight source', + kind: 'comparison_before', + role: 'before', + placeholder: 'Source pending', + }, + { + id: 'after', + label: 'Dawn edit', + kind: 'comparison_after', + role: 'after', + placeholder: 'Preview pending', + }, + ], + requiredBackendCapabilities: [ + 'modules.DiffusersRuntime.PipelineQuantizationConfigV2', + 'modules.DiffusersRuntime.DiffusersExecutionRecipe', + 'modules.DiffusersImage.LoadPipeline', + 'modules.Image.Load', + 'modules.DiffusersImage.Edit', + 'modules.Image.Preview', + ], + modelArtifact: { + source: 'hub', + value: 'SimianLuo/LCM_Dreamshaper_v7', + revision: 'a85df6a8bd976cdd08b4fd8f3b73f229c9e54df5', + }, + runtimeReuseKey: 'LatentConsistencyModelPipeline:float32:none:resident:none', + description: 'Reimagine a daylight alpine lake at dawn with mist over the water and rosy mountain light.', + recipeSummary: 'Compare the original lake scene with a four-step creative image edit.', + prompt: + 'Photograph of this alpine lake at dawn, with a low band of mist over the reflective water and faint rose-colored light on the mountains. Keep the shoreline, rocky foreground and pine forest composition. Natural atmospheric detail.', + negativePrompt: '', + example: { + mediaType: 'image', + status: 'unverified', + modelRevision: 'a85df6a8bd976cdd08b4fd8f3b73f229c9e54df5', + lockedSeed: 42, + lockedSettings: { + width: 1024, + height: 1024, + strength: 0.8, + steps: 4, + guidanceScale: 8.5, + randomSeed: false, + outputType: 'pil', + maxSequenceLength: 256, + dtype: 'float32', + resourceMode: 'expert', + quantizationMode: 'none', + autoOffload: false, + offloadMode: 'none', + }, + expectedOutput: { width: 512, height: 512 }, + runtimeEstimate: '23.92 seconds in the retained Linux ROCm run', + notes: 'Landscape structure changes along with the light. The saved 512 × 512 source determined output size.', + }, + }, + }, ] as const satisfies readonly RetainedGalleryRecipe[]; diff --git a/src/studio/templateAssetSource.json b/src/studio/templateAssetSource.json index ff6ee79e..2a10ac1c 100644 --- a/src/studio/templateAssetSource.json +++ b/src/studio/templateAssetSource.json @@ -4,11 +4,11 @@ "localBasePath": "/template-gallery", "repoType": "dataset", "repoId": "sourav-das/modiff-template-gallery", - "revision": "14970cc49ef1579fcc1899fff406810d8b4ba581", + "revision": "3fe997d48f920c5a2ec66d025b008901d2fc3ce3", "pathPrefix": "template-gallery", "assetManifestPath": "_modiff/template-assets.v1.json", - "assetSetId": "sha256:canonical-json:5af2a0cb70615836fe5044d9837c8d7a2990d220a10af3ef9d4a54c282b9c925", - "completeAssetSetId": "sha256:canonical-json:9cb4e03df78ad36f0beb120a89c66d267c2e98e24b4892a719a7735eca9944af", + "assetSetId": "sha256:canonical-json:f2ba278012cca358dafe5157abcf3c0d89b9d9619c744f368b6854fb4f514bc8", + "completeAssetSetId": "sha256:canonical-json:985e5c67b0e9791b04f400b287029bd3f54285e908107ca1951fb62070405fc8", "unavailableAssets": [ "template-gallery/ace_step_chinese_new_year_lora.card-poster.png", "template-gallery/ace_step_chinese_new_year_lora.wav", diff --git a/src/studio/templateQuality.ts b/src/studio/templateQuality.ts index c909642b..e83c148d 100644 --- a/src/studio/templateQuality.ts +++ b/src/studio/templateQuality.ts @@ -10,6 +10,7 @@ export type TemplateQualityKind = | 'image_upscale' | 'depth_estimation' | 'text_generation' + | 'speech_recognition' | 'video' | 'audio'; @@ -85,6 +86,7 @@ type SemanticGroupDefinition = { type BlankNegativeDeclaration = { id: string; modelTypes: readonly StudioModelType[]; + modes?: readonly StudioMode[]; executionProfileId?: string; maxGuidanceScale?: number; reason: string; @@ -103,6 +105,7 @@ const VIDEO_MODES = new Set([ ]); const AUDIO_MODES = new Set(['text_to_audio', 'audio_variation', 'audio_continuation', 'audio_repaint']); +const SPEECH_RECOGNITION_MODES: readonly StudioMode[] = ['speech_to_text', 'speech_translation']; const SEMANTIC_GROUPS: Record = { focal_content: { @@ -240,6 +243,7 @@ const REQUIRED_SEMANTIC_GROUPS: Record, + template: Pick, ): TemplateNegativePolicy { const guidanceScale = template.example?.lockedSettings?.guidanceScale; const declaration = BLANK_NEGATIVE_DECLARATIONS.find((candidate) => { if (!candidate.modelTypes.includes(template.modelType)) return false; + if (candidate.modes && !candidate.modes.includes(template.mode)) return false; if ( candidate.executionProfileId !== undefined && template.executionSelection?.executionProfileId !== candidate.executionProfileId @@ -460,7 +478,7 @@ export function getTemplateNegativePolicy( } export function analyzeTemplateNegativePrompt( - template: Pick, + template: Pick, ): TemplateNegativeAnalysis { const policy = getTemplateNegativePolicy(template); const negativePrompt = template.negativePrompt?.trim() ?? ''; @@ -508,6 +526,28 @@ export function analyzeTemplateNegativePrompt( return { policy, constraints, categories, issues }; } +function imageTargetCaptionGroups(template: StudioTemplate, prompt: string): TemplateSemanticGroup[] { + if ( + template.mode !== 'edit_image' || + template.modelType !== 'LatentConsistencyModelPipeline' || + !template.inputBindings?.some( + (binding) => binding.origin === 'user' && binding.field === 'referenceImages' && binding.count === 1, + ) + ) { + return []; + } + // This img2img route describes the desired image. A caption can refer to the + // bound source and specify its new look without an instruction verb. + const target = + /^(?:an? )?(?:photo(?:graph)?|image|portrait|illustration|rendering) of (?:this|the same) ([^.!?]+)/iu.exec( + prompt.trim(), + )?.[1]; + if (!target) return []; + return templatePromptMatchesSemanticGroup(target, 'visual_treatment') + ? ['source_role', 'transformation'] + : ['source_role']; +} + export function auditTemplateQuality( template: StudioTemplate, resolvedBackendDefaults?: Pick, @@ -524,8 +564,11 @@ export function auditTemplateQuality( : 'template'; const rawLayout = template.promptQualityPolicy === 'raw_layout_reference'; const layoutGroups = rawLayout ? rawLayoutSemanticGroups(resolvedPrompt ?? '') : null; + const captionGroups = imageTargetCaptionGroups(template, resolvedPrompt ?? ''); const matchedSemanticGroups = requiredSemanticGroups.filter((group) => - rawLayout ? layoutGroups?.includes(group) : templatePromptMatchesSemanticGroup(resolvedPrompt ?? '', group), + rawLayout + ? layoutGroups?.includes(group) + : captionGroups.includes(group) || templatePromptMatchesSemanticGroup(resolvedPrompt ?? '', group), ); const semanticIssues: TemplateQualityIssue[] = promptResolution === 'unresolved_backend_default' @@ -564,6 +607,9 @@ export function auditTemplateQuality( if (kind === 'text_generation' && template.negativePrompt?.trim()) { issues.push({ code: 'unsupported_prompt_input', message: 'Text generation does not accept a negative prompt.' }); } + if (kind === 'speech_recognition' && (resolvedPrompt?.trim() || template.negativePrompt?.trim())) { + issues.push({ code: 'unsupported_prompt_input', message: 'Speech recognition uses source audio without prompts.' }); + } return { templateId: template.id, diff --git a/src/studio/types.ts b/src/studio/types.ts index 96fa4a8e..90eb2b97 100644 --- a/src/studio/types.ts +++ b/src/studio/types.ts @@ -255,6 +255,8 @@ export type StudioTemplateId = | 'marigold_depth_synthetic_ramp' | 'smollm2_rain_gauge' | 'spandrel_x2_synthetic_gradient' + | 'whisper_tiny_blue_cup_transcription' + | 'lcm_dawn_alpine_lake' | 'minimax_h3_image_old_town_cat' | 'flux3_klein_fp8r512_text_to_image' | 'flux3_klein_fp8r512_single_reference_edit' diff --git a/tests/e2e/studio-mocked/studio-mocked.spec.ts b/tests/e2e/studio-mocked/studio-mocked.spec.ts index 7475a7e4..316f4b70 100644 --- a/tests/e2e/studio-mocked/studio-mocked.spec.ts +++ b/tests/e2e/studio-mocked/studio-mocked.spec.ts @@ -14,6 +14,7 @@ import { VIDEO_TEMPLATE_EXECUTION_SELECTIONS, } from '../../../src/studio/templateOperationSelections'; import { STUDIO_TEMPLATES } from '../../../src/studio/templates'; +import type { TemplateGalleryManifest } from '../../../src/studio/templateExactness'; import { hashString, stableStringify } from '../../../src/studio/stableHash'; import { REGISTERED_BLOCK_V2_ROUTES } from '../../../src/studio/registeredBlockV2Routes'; import { acknowledgementRequiredForTemplate } from '../../../src/studio/modelUsagePolicies'; @@ -13721,6 +13722,143 @@ test('approved retained examples show structured text and technical image compar await expect(upscaleDetail).toContainText('The synthetic gradient does not test restoration of fine detail.'); }); +test('Whisper and LCM approved examples preserve their source requirements', async ({ page }) => { + await ensureFrontend(); + await installMockRoutes(page); + const manifestBytes = await fs.readFile(path.join(CLIENT_ROOT, 'public/template-gallery/manifest.json')); + const manifest: TemplateGalleryManifest = JSON.parse(manifestBytes.toString('utf8')); + const whisperId = 'whisper_tiny_blue_cup_transcription'; + const lcmId = 'lcm_dawn_alpine_lake'; + const transcriptPath = `template-gallery/${whisperId}.json`; + const beforePath = `template-gallery/inputs/${lcmId}.before.webp`; + const afterPath = `template-gallery/${lcmId}.webp`; + const transcript = 'The blue cup is on the table. The window is open.'; + const whisper = manifest.examples.find((entry) => entry.templateId === whisperId); + const lcm = manifest.examples.find((entry) => entry.templateId === lcmId); + expect(whisper).toMatchObject({ + mediaType: 'json', + outputPath: '/' + transcriptPath, + verificationStatus: 'reviewed', + qualityReviewStatus: 'approved_reviewed', + }); + expect(whisper?.beforePath).toBeUndefined(); + expect(lcm).toMatchObject({ + mediaType: 'image', + outputPath: '/' + afterPath, + beforePath: '/' + beforePath, + afterPath: '/' + afterPath, + verificationStatus: 'reviewed', + qualityReviewStatus: 'approved_reviewed', + }); + + const assetIndex: { assets: Array<{ path: string; size: number; sha256: string }> } = JSON.parse( + await fs.readFile(path.join(CLIENT_ROOT, 'config/template-assets.v1.json'), 'utf8'), + ); + const previewPixel = Buffer.from( + 'iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mP8/x8AAwMCAO+aOCkAAAAASUVORK5CYII=', + 'base64', + ); + const approvedFilesServed: string[] = []; + for (const galleryPath of [transcriptPath, beforePath, afterPath]) { + const asset = assetIndex.assets.find((item) => item.path === galleryPath); + expect(asset).toBeDefined(); + const cached = await fs + .readFile(path.join(CLIENT_ROOT, 'public', galleryPath)) + .catch((error: NodeJS.ErrnoException) => { + if (error.code === 'ENOENT') return null; + throw error; + }); + if (cached) { + expect(cached.byteLength).toBe(asset?.size); + expect('sha256:bytes:' + createHash('sha256').update(cached).digest('hex')).toBe(asset?.sha256); + approvedFilesServed.push(galleryPath); + } + // Clean checkouts can verify presentation without downloading the Gallery. + const jsonPreview = galleryPath === transcriptPath; + await page.context().route( + (url) => url.pathname.endsWith('/' + galleryPath), + (route) => + route.fulfill({ + body: cached ?? (jsonPreview ? Buffer.from(JSON.stringify({ text: transcript })) : previewPixel), + contentType: jsonPreview ? 'application/json' : cached ? 'image/webp' : 'image/png', + headers: { 'access-control-allow-origin': new URL(FRONTEND_URL).origin }, + }), + ); + } + await test.info().attach('checked Gallery bytes available locally', { + body: JSON.stringify(approvedFilesServed), + contentType: 'application/json', + }); + await page.route('**/template-gallery/manifest.json*', (route) => + route.fulfill({ body: manifestBytes, contentType: 'application/json' }), + ); + const forbiddenRequests: string[] = []; + await page.route( + /\/(?:graph|execute|hf_download|install|download|runtime\/optional-runtimes)(?:[/?]|$)/u, + (route) => { + if (route.request().method() !== 'POST') return route.fallback(); + forbiddenRequests.push(new URL(route.request().url()).pathname); + return route.abort('blockedbyclient'); + }, + ); + await page.context().route(/\/template-gallery\/[^?]+\.wav(?:\?.*)?$/iu, (route) => { + forbiddenRequests.push(new URL(route.request().url()).pathname); + return route.abort('blockedbyclient'); + }); + await page.goto(FRONTEND_URL, { waitUntil: 'domcontentloaded' }); + await page.waitForFunction(() => Boolean(window.__MODIFF_E2E__?.getState().studio.workflowCanvasHydrated)); + await openTemplateBrowser(page); + await page.getByTestId('template-browser-category-all').click(); + + for (const [id, search, input] of [ + [whisperId, 'Short Speech Transcription', 'Source audio'], + [lcmId, 'Alpine Lake at Dawn', 'Source image'], + ] as const) { + await page.getByTestId('template-browser-search').fill(search); + const card = page.getByTestId(`template-browser-card-${id}`); + await expect(card).toBeVisible(); + if (id === whisperId) { + await expect(card.getByText('Structured response', { exact: true })).toBeVisible(); + await expect(card.getByRole('img')).toHaveCount(0); + } else { + await expect(card.getByTestId('template-ab-comparison')).toBeVisible(); + } + await card.getByTestId(`template-browser-use-${id}`).click(); + + const detail = page.getByTestId(`template-detail-${id}`); + const inputs = detail.getByRole('heading', { name: 'Required inputs' }).locator('..'); + await expect(inputs.getByText(input, { exact: true })).toBeVisible(); + await expect(detail.getByRole('heading', { name: 'Included inputs' })).toHaveCount(0); + await expect(detail.getByTestId('template-approved-showcase')).toHaveCount(0); + if (id === whisperId) { + await expect(detail.locator('audio, a[href*=".wav" i], [src*=".wav" i]')).toHaveCount(0); + const link = detail.getByRole('link', { name: 'Open structured response' }); + const href = await link.getAttribute('href'); + expect(new URL(href!, FRONTEND_URL).pathname.endsWith('/' + transcriptPath)).toBe(true); + const [popup] = await Promise.all([page.waitForEvent('popup'), link.click()]); + await expect(popup.locator('body')).toContainText(transcript); + await popup.close(); + } else { + const comparison = detail.getByTestId('template-ab-comparison'); + await expect(comparison).toBeVisible(); + for (const [name, galleryPath] of [ + ['A · Before', beforePath], + ['B · After', afterPath], + ] as const) { + const image = comparison.getByRole('img', { name, exact: true }); + await expect(image).toBeVisible(); + await expect + .poll(() => image.evaluate((img: HTMLImageElement) => img.naturalWidth)) + .toBe(approvedFilesServed.includes(galleryPath) ? 512 : 1); + const src = await image.getAttribute('src'); + expect(new URL(src!, FRONTEND_URL).pathname.endsWith('/' + galleryPath)).toBe(true); + } + } + await detail.getByRole('button', { name: 'Templates', exact: true }).click(); + } + expect(forbiddenRequests).toEqual([]); +}); + test('Experimental public cards create the exact FLUX3 Ceramic Radio graph through ordinary UI', async ({ page }) => { await ensureFrontend(); const fixture = await installPublicFlux3AuthoringRoutes(page, false, false, true); From 34a36fdeef7708de5e05b2f30be93fad4fc5a227 Mon Sep 17 00:00:00 2001 From: Sourav Das Date: Sat, 21 Nov 2026 01:30:11 +0530 Subject: [PATCH 274/440] Pin the backend bundle with both approved Gallery examples --- .github/workflows/ci.yml | 4 ++-- README.md | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 96a0f979..5f2be03c 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -33,7 +33,7 @@ jobs: with: repository: sdevil7th/MoDiff # Pair R04 damaged-metadata readiness and the existing setup contract. - ref: ea51a9fd194db3ccf02910f2b8ef40eaec3722d2 + ref: 0d80138d13bee585957f77403ec1144bc3e2a1f9 path: MoDiff persist-credentials: false - name: Verify the pinned backend supports native setup @@ -89,7 +89,7 @@ jobs: with: repository: sdevil7th/MoDiff # Match the immutable backend revision in the Client quality job. - ref: ea51a9fd194db3ccf02910f2b8ef40eaec3722d2 + ref: 0d80138d13bee585957f77403ec1144bc3e2a1f9 path: MoDiff persist-credentials: false - name: Verify the pinned backend supports native setup diff --git a/README.md b/README.md index 4c94507a..c1555a7b 100644 --- a/README.md +++ b/README.md @@ -85,7 +85,7 @@ application source pair is: | MoDiff | `1239d1cecd12a7318eb263ca17c34d4fc0445d14` | | MoDiff-client | `c561a01395044fd71c1918e95fb9e9709d8e7601` | -CI backend contract: `ea51a9fd194db3ccf02910f2b8ef40eaec3722d2`. +CI backend contract: `0d80138d13bee585957f77403ec1144bc3e2a1f9`. Both CI jobs use this immutable backend revision. It includes shared video stages, conditional reference requirements, the scoped Linux shared-memory LTX From dbae2c2da6f637ff5df7d8559f15646a60806ce3 Mon Sep 17 00:00:00 2001 From: Sourav Das Date: Sat, 21 Nov 2026 03:14:29 +0530 Subject: [PATCH 275/440] Register the saved Sana Sprint monochrome tiger recipe --- .github/workflows/ci.yml | 4 +- README.md | 2 +- config/release-showcase-scope.v1.json | 10 +- config/template-asset-rights.v1.json | 118 +++++++++- config/template-assets.v1.json | 50 ++++- public/template-gallery/manifest.json | 31 +++ scripts/bundle-budget.mjs | 4 + ...e-full-native-template-candidates.test.mjs | 10 +- scripts/modiff-template.test.mjs | 10 +- scripts/private-image-edit-evidence.mjs | 91 ++++++-- scripts/private-image-edit-evidence.test.mjs | 7 + scripts/release-contract-core.mjs | 13 +- scripts/retained-gallery-provenance.mjs | 13 ++ scripts/retained-gallery-release.test.mjs | 33 ++- scripts/retained-gallery-templates.test.mjs | 24 +- scripts/retained-template-association.mjs | 209 +++++++++++++++++- scripts/template-gallery-harness.test.mjs | 5 +- scripts/template-quality.test.mjs | 14 ++ src/studio/retainedGalleryTemplates.ts | 102 +++++++++ src/studio/templateAssetSource.json | 6 +- src/studio/templateQuality.ts | 28 ++- src/studio/types.ts | 1 + 22 files changed, 703 insertions(+), 82 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 5f2be03c..79fcf84b 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -33,7 +33,7 @@ jobs: with: repository: sdevil7th/MoDiff # Pair R04 damaged-metadata readiness and the existing setup contract. - ref: 0d80138d13bee585957f77403ec1144bc3e2a1f9 + ref: 6485b4cf59f25298e5105491941d9e2e1fcf297c path: MoDiff persist-credentials: false - name: Verify the pinned backend supports native setup @@ -89,7 +89,7 @@ jobs: with: repository: sdevil7th/MoDiff # Match the immutable backend revision in the Client quality job. - ref: 0d80138d13bee585957f77403ec1144bc3e2a1f9 + ref: 6485b4cf59f25298e5105491941d9e2e1fcf297c path: MoDiff persist-credentials: false - name: Verify the pinned backend supports native setup diff --git a/README.md b/README.md index c1555a7b..634e7fd4 100644 --- a/README.md +++ b/README.md @@ -85,7 +85,7 @@ application source pair is: | MoDiff | `1239d1cecd12a7318eb263ca17c34d4fc0445d14` | | MoDiff-client | `c561a01395044fd71c1918e95fb9e9709d8e7601` | -CI backend contract: `0d80138d13bee585957f77403ec1144bc3e2a1f9`. +CI backend contract: `6485b4cf59f25298e5105491941d9e2e1fcf297c`. Both CI jobs use this immutable backend revision. It includes shared video stages, conditional reference requirements, the scoped Linux shared-memory LTX diff --git a/config/release-showcase-scope.v1.json b/config/release-showcase-scope.v1.json index ef77acea..0f7f6c60 100644 --- a/config/release-showcase-scope.v1.json +++ b/config/release-showcase-scope.v1.json @@ -4,7 +4,7 @@ "name": "Registered showcase preview without AMD-cloud backlog", "dataset": { "repository": "sourav-das/modiff-template-gallery", - "revision": "3fe997d48f920c5a2ec66d025b008901d2fc3ce3" + "revision": "b3796d7eedd09df37bef63e99f3ef46a677deebd" }, "originalCampaign": { "total": 89, @@ -528,7 +528,13 @@ "category": "supplementary-only", "reason": "Published and registered as a supplementary Gallery example outside the original campaign selection.", "countedAsComplete": false + }, + { + "id": "sana_sprint_monochrome_tiger", + "category": "supplementary-only", + "reason": "Published and registered as a supplementary Gallery example outside the original campaign selection.", + "countedAsComplete": false } ], - "profileHash": "sha256:canonical-json:2b6e9de6bc70face7dc1bf8a7f15306c08e470ad6ce0984a4f842af0dd0f408d" + "profileHash": "sha256:canonical-json:e398f0055740c887648dc8e66ca32df6e45898b56edaa4771e1fb663b3c5d822" } diff --git a/config/template-asset-rights.v1.json b/config/template-asset-rights.v1.json index 1d063601..10ec91bf 100644 --- a/config/template-asset-rights.v1.json +++ b/config/template-asset-rights.v1.json @@ -1,6 +1,6 @@ { "schemaVersion": 1, - "assetSetId": "sha256:canonical-json:985e5c67b0e9791b04f400b287029bd3f54285e908107ca1951fb62070405fc8", + "assetSetId": "sha256:canonical-json:1345dca546164326458297b1a75b056cefa8fccb94da13f60301b3ddcd21ca3a", "records": [ { "path": "template-gallery/ace_step_audio_continuation.wav", @@ -4375,6 +4375,35 @@ "provenanceTemplateId": "reference_fusion", "consumingTemplateIds": ["reference_fusion"] }, + { + "path": "template-gallery/inputs/sana_sprint_monochrome_tiger.before.webp", + "sha256": "sha256:bytes:a99616590d7d8586a51a25bbe9e36b309f705bc80f2abaab04ac84f1e0d948e4", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "humanLikenessConsent": "not-applicable", + "marks": [], + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-20", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "40060ba701188a6d287df07e0852c6497d109885495e6fc85a19e8371ef73906", + "publicationBasis": "Maintainer approved both exact Sana Sprint images and redistribution of the redacted review and recipe records.", + "creationMethod": "Exact retained synthetic Sana Sprint source generated from a project-authored prompt", + "sourceUrl": "https://huggingface.co/Efficient-Large-Model/Sana_Sprint_0.6B_1024px_diffusers/blob/aa76e7f4f4928f378716b6716a2130fba3caf5b1/README.md", + "sourceRevision": "Efficient-Large-Model/Sana_Sprint_0.6B_1024px_diffusers@aa76e7f4f4928f378716b6716a2130fba3caf5b1", + "sourceLicense": "Project-authored synthetic example generated with the pinned model and applicable component terms", + "modelTerms": [ + "Efficient-Large-Model/Sana_Sprint_0.6B_1024px_diffusers@aa76e7f4f4928f378716b6716a2130fba3caf5b1 — Apache-2.0. https://huggingface.co/Efficient-Large-Model/Sana_Sprint_0.6B_1024px_diffusers/blob/aa76e7f4f4928f378716b6716a2130fba3caf5b1/LICENSE", + "The model card identifies Gemma-2-2B-IT as its text encoder. https://huggingface.co/Efficient-Large-Model/Sana_Sprint_0.6B_1024px_diffusers/blob/aa76e7f4f4928f378716b6716a2130fba3caf5b1/README.md", + "Gemma Terms of Use and Prohibited Use Policy. https://gemma.ai/resources/terms/ https://gemma.ai/resources/prohibited-use/" + ], + "aiGenerated": true, + "requiredAttribution": [ + "NVIDIA, MIT HAN Lab and Hugging Face Sana Sprint, plus the Google Gemma 2 text encoder. https://huggingface.co/Efficient-Large-Model/Sana_Sprint_0.6B_1024px_diffusers/blob/aa76e7f4f4928f378716b6716a2130fba3caf5b1/README.md" + ], + "assetLicense": "MoDiff-Gallery-Restricted-1.0", + "provenanceTemplateId": "sana_sprint_monochrome_tiger" + }, { "path": "template-gallery/inputs/spandrel_x2_synthetic_gradient.before.png", "sha256": "sha256:bytes:626815c78eaad46cad849732d1598b45b91700ce046c1ee3f4e2444db80aa32a", @@ -5308,14 +5337,17 @@ }, { "path": "template-gallery/manifest.json", + "sha256": "sha256:bytes:7aec0be529d3d015f42cc48d9eea0302afc8727097235fe3fa558bf73ec6c8c5", + "publishDecision": "approved", + "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "humanLikenessConsent": "not-applicable", "marks": [], "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-20", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "ba369c5fff89e379be66714d3ecbf1a0e3a9555e2b5ffbc9cb54210d862ec30b", - "publicationBasis": "Maintainer approved the exact Whisper JSON and both exact LCM images, accepted the disclosed LCM changes, and authorized publication of the associated redacted Gallery records.", + "humanApprovalPacketSHA256": "40060ba701188a6d287df07e0852c6497d109885495e6fc85a19e8371ef73906", + "publicationBasis": "Maintainer approved both exact Sana Sprint images and redistribution of the redacted review and recipe records.", "creationMethod": "Project-authored redacted retained Gallery review, provenance or registration metadata", "sourceUrl": null, "sourceRevision": null, @@ -5323,10 +5355,7 @@ "modelTerms": [], "aiGenerated": false, "requiredAttribution": [], - "assetLicense": "Apache-2.0", - "sha256": "sha256:bytes:2c35cd09dc15607edc9fe8e8335d1150b88a74485bcb643363dd1839edd54199", - "publishDecision": "approved", - "holdReason": null + "assetLicense": "Apache-2.0" }, { "path": "template-gallery/marigold_depth_synthetic_ramp.webp", @@ -9767,6 +9796,52 @@ "provenanceTemplateId": "reference_fusion", "humanApprovalPacketSHA256": "95893cb17e10b15ae6b23d8b31b57b0e14b9af96f822d75edbc6b68971afb11d" }, + { + "path": "template-gallery/reviews/sana_sprint_monochrome_tiger.quality-review.json", + "sha256": "sha256:bytes:daad196fff80a6e8d2543deeb911b5cd94a027a746e8d7cc0a011dc687f8c50e", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "humanLikenessConsent": "not-applicable", + "marks": [], + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-20", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "40060ba701188a6d287df07e0852c6497d109885495e6fc85a19e8371ef73906", + "publicationBasis": "Maintainer approved both exact Sana Sprint images and redistribution of the redacted review and recipe records.", + "creationMethod": "Project-authored redacted retained Gallery review, provenance or registration metadata", + "sourceUrl": null, + "sourceRevision": null, + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [], + "aiGenerated": false, + "requiredAttribution": [], + "assetLicense": "Apache-2.0", + "provenanceTemplateId": "sana_sprint_monochrome_tiger" + }, + { + "path": "template-gallery/reviews/sana_sprint_monochrome_tiger.retained-template-provenance.json", + "sha256": "sha256:bytes:9da7a90fdc337893b768009a2d6c619c730606e2544c335f4c4d02d14137d1a9", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "humanLikenessConsent": "not-applicable", + "marks": [], + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-20", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "40060ba701188a6d287df07e0852c6497d109885495e6fc85a19e8371ef73906", + "publicationBasis": "Maintainer approved both exact Sana Sprint images and redistribution of the redacted review and recipe records.", + "creationMethod": "Project-authored redacted retained Gallery review, provenance or registration metadata", + "sourceUrl": null, + "sourceRevision": null, + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [], + "aiGenerated": false, + "requiredAttribution": [], + "assetLicense": "Apache-2.0", + "provenanceTemplateId": "sana_sprint_monochrome_tiger" + }, { "path": "template-gallery/reviews/smollm2_rain_gauge.quality-review.json", "sha256": "sha256:bytes:a457e4143d17eecd1af499e61a28e7df0533b4a6a8f67712182ab8a829115e09", @@ -11862,6 +11937,35 @@ "publicationBasis": "you can register these two as well", "provenanceTemplateId": "ace_step_lyric_music_video" }, + { + "path": "template-gallery/sana_sprint_monochrome_tiger.webp", + "sha256": "sha256:bytes:f22b1d5a1d2944949698b47eec10e7f8d04b23bc0746f4e089b41d78e9d94ff7", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "humanLikenessConsent": "not-applicable", + "marks": [], + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-20", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "40060ba701188a6d287df07e0852c6497d109885495e6fc85a19e8371ef73906", + "publicationBasis": "Maintainer approved both exact Sana Sprint images and redistribution of the redacted review and recipe records.", + "creationMethod": "Exact retained Sana Sprint 0.75 image edit of the synthetic source", + "sourceUrl": "https://huggingface.co/Efficient-Large-Model/Sana_Sprint_0.6B_1024px_diffusers/blob/aa76e7f4f4928f378716b6716a2130fba3caf5b1/README.md", + "sourceRevision": "Efficient-Large-Model/Sana_Sprint_0.6B_1024px_diffusers@aa76e7f4f4928f378716b6716a2130fba3caf5b1", + "sourceLicense": "Project-authored synthetic example generated with the pinned model and applicable component terms", + "modelTerms": [ + "Efficient-Large-Model/Sana_Sprint_0.6B_1024px_diffusers@aa76e7f4f4928f378716b6716a2130fba3caf5b1 — Apache-2.0. https://huggingface.co/Efficient-Large-Model/Sana_Sprint_0.6B_1024px_diffusers/blob/aa76e7f4f4928f378716b6716a2130fba3caf5b1/LICENSE", + "The model card identifies Gemma-2-2B-IT as its text encoder. https://huggingface.co/Efficient-Large-Model/Sana_Sprint_0.6B_1024px_diffusers/blob/aa76e7f4f4928f378716b6716a2130fba3caf5b1/README.md", + "Gemma Terms of Use and Prohibited Use Policy. https://gemma.ai/resources/terms/ https://gemma.ai/resources/prohibited-use/" + ], + "aiGenerated": true, + "requiredAttribution": [ + "NVIDIA, MIT HAN Lab and Hugging Face Sana Sprint, plus the Google Gemma 2 text encoder. https://huggingface.co/Efficient-Large-Model/Sana_Sprint_0.6B_1024px_diffusers/blob/aa76e7f4f4928f378716b6716a2130fba3caf5b1/README.md" + ], + "assetLicense": "MoDiff-Gallery-Restricted-1.0", + "provenanceTemplateId": "sana_sprint_monochrome_tiger" + }, { "path": "template-gallery/showcases/flux3-kolkata-bride.v1.json", "sha256": "sha256:bytes:64a51a70baec5b4a99937ac3952e458450c7d699669b6f31241106da33f70b55", diff --git a/config/template-assets.v1.json b/config/template-assets.v1.json index e871a142..06790bd5 100644 --- a/config/template-assets.v1.json +++ b/config/template-assets.v1.json @@ -1781,6 +1781,17 @@ "width": 1024, "height": 1024 }, + { + "path": "template-gallery/inputs/sana_sprint_monochrome_tiger.before.webp", + "size": 256118, + "sha256": "sha256:bytes:a99616590d7d8586a51a25bbe9e36b309f705bc80f2abaab04ac84f1e0d948e4", + "contentType": "image/webp", + "purposes": [ + "runtime" + ], + "width": 1024, + "height": 1024 + }, { "path": "template-gallery/inputs/spandrel_x2_synthetic_gradient.before.png", "size": 177, @@ -2147,8 +2158,8 @@ }, { "path": "template-gallery/manifest.json", - "size": 238353, - "sha256": "sha256:bytes:2c35cd09dc15607edc9fe8e8335d1150b88a74485bcb643363dd1839edd54199", + "size": 240709, + "sha256": "sha256:bytes:7aec0be529d3d015f42cc48d9eea0302afc8727097235fe3fa558bf73ec6c8c5", "contentType": "application/json", "purposes": [ "runtime", @@ -3953,6 +3964,24 @@ "runtime" ] }, + { + "path": "template-gallery/reviews/sana_sprint_monochrome_tiger.quality-review.json", + "size": 3320, + "sha256": "sha256:bytes:daad196fff80a6e8d2543deeb911b5cd94a027a746e8d7cc0a011dc687f8c50e", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, + { + "path": "template-gallery/reviews/sana_sprint_monochrome_tiger.retained-template-provenance.json", + "size": 5206, + "sha256": "sha256:bytes:9da7a90fdc337893b768009a2d6c619c730606e2544c335f4c4d02d14137d1a9", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, { "path": "template-gallery/reviews/smollm2_rain_gauge.quality-review.json", "size": 2378, @@ -4869,6 +4898,17 @@ "tooling" ] }, + { + "path": "template-gallery/sana_sprint_monochrome_tiger.webp", + "size": 365662, + "sha256": "sha256:bytes:f22b1d5a1d2944949698b47eec10e7f8d04b23bc0746f4e089b41d78e9d94ff7", + "contentType": "image/webp", + "purposes": [ + "runtime" + ], + "width": 1024, + "height": 1024 + }, { "path": "template-gallery/showcases/flux3-kolkata-bride.v1.json", "size": 5475, @@ -5624,9 +5664,9 @@ "height": 1024 } ], - "assetSetId": "sha256:canonical-json:985e5c67b0e9791b04f400b287029bd3f54285e908107ca1951fb62070405fc8", + "assetSetId": "sha256:canonical-json:1345dca546164326458297b1a75b056cefa8fccb94da13f60301b3ddcd21ca3a", "status": "ready", - "assetCount": 568, - "totalBytes": 1037049297, + "assetCount": 572, + "totalBytes": 1037681959, "missingAssets": [] } diff --git a/public/template-gallery/manifest.json b/public/template-gallery/manifest.json index b99bd068..d6252d3d 100644 --- a/public/template-gallery/manifest.json +++ b/public/template-gallery/manifest.json @@ -3028,6 +3028,37 @@ "afterPath": "/template-gallery/lcm_dawn_alpine_lake.webp", "width": 512, "height": 512 + }, + { + "templateId": "sana_sprint_monochrome_tiger", + "promptSettingsHash": "ps_6cb5dccc", + "templateLockHash": "tpl_8be9c59d", + "modelRevision": "Efficient-Large-Model/Sana_Sprint_0.6B_1024px_diffusers@aa76e7f4f4928f378716b6716a2130fba3caf5b1", + "runtimeFingerprint": "sha256:stable-runtime-v1:86cbd0c11653c4c599d5eb3c2559aa63a0a7ec8c205bc89d37bc67cb82e285fe", + "graphHash": "sha256:canonical-graph-v1:e69d5c8fa5e75c1387b8dae436e44c580d3b1eb31267946c26b98049e2f7132c", + "proofLockHash": "sha256:retained-template-association-v1:c750198e9b68ec712a04f992e93451f1e8023185f9992b63475b88f3aec2aeaa", + "backendSourceFingerprint": "sha256:backend-source-v1:51be643787f3d45e45bed24df176137979ee0c8983fd86521cc2bcf45ad568ec", + "backendContractFingerprint": "sha256:backend-contract-v1:315617df789a8a5f57426692318e197c13786098718305edd1927471b5b9c194", + "modelCommit": "aa76e7f4f4928f378716b6716a2130fba3caf5b1", + "templateRevisionHash": "7f1ac6b38c8f3fcc701921fe7f500b4717c4f1bfdf5cc2f059e934972923296b", + "provenancePath": "/template-gallery/reviews/sana_sprint_monochrome_tiger.retained-template-provenance.json", + "provenanceHash": "sha256:canonical-json:edecb4d3879face43fcf6d23512307b1a078a688caa5f4d579dc6e2ce0e3afa2", + "outputPath": "/template-gallery/sana_sprint_monochrome_tiger.webp", + "thumbnailPath": "/template-gallery/sana_sprint_monochrome_tiger.webp", + "mediaHash": "sha256:decoded-rgba:abe5eb7eab08a9f78453c9aedbbb336af94d9c633efc4a5abb30eea5b8221a4f", + "mediaType": "image", + "verificationTimestamp": "2026-11-20T16:56:35.946Z", + "qualityReviewPath": "/template-gallery/reviews/sana_sprint_monochrome_tiger.quality-review.json", + "qualityReviewHash": "sha256:canonical-json:56f0a406162e07665a67c1d4126b437a328690dc3be104de4eead7888a37b647", + "verificationStatus": "reviewed", + "qualityReviewStatus": "approved_reviewed", + "reviewer": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-20T21:03:32.000Z", + "beforePath": "/template-gallery/inputs/sana_sprint_monochrome_tiger.before.webp", + "beforeMediaHash": "sha256:bytes:a99616590d7d8586a51a25bbe9e36b309f705bc80f2abaab04ac84f1e0d948e4", + "afterPath": "/template-gallery/sana_sprint_monochrome_tiger.webp", + "width": 1024, + "height": 1024 } ] } diff --git a/scripts/bundle-budget.mjs b/scripts/bundle-budget.mjs index c3351301..77dd5b64 100644 --- a/scripts/bundle-budget.mjs +++ b/scripts/bundle-budget.mjs @@ -490,6 +490,8 @@ const SOURCE_LICENSES = new URL('../public/THIRD_PARTY_LICENSES.txt', import.met // 504492/682980/346033 largest/startup/deferred gzip bytes: the reviewed // migration ceilings below still pass with 8/12/304 bytes of headroom. const MAX_STARTUP_CHUNK_GZIP_BYTES = + // The approved Sana comparison adds 617 measured bytes and keeps 17 bytes of headroom. + 617 + // The two approved retained templates add 1643 measured gzip bytes and keep 17 bytes of headroom. 1643 + // Preserve the measured 17-byte headroom with the new speech and edit receipt parsers. @@ -745,6 +747,8 @@ const MAX_STARTUP_CHUNK_GZIP_BYTES = // The same build measures 673359 aggregate startup bytes (+45 over the cap). // Keep 19 bytes of headroom; deferred limits and loading boundaries stay fixed. const MAX_STARTUP_GZIP_BYTES = + // Aggregate startup rises by 612 bytes. Deferred limits and chunk membership stay fixed. + 612 + // The same build adds 1644 startup gzip bytes and keeps 20 bytes of headroom. 1644 + // The production startup total rose by 296 gzip bytes. Deferred limits are unchanged. diff --git a/scripts/image-full-native-template-candidates.test.mjs b/scripts/image-full-native-template-candidates.test.mjs index ab18ee32..daf9230f 100644 --- a/scripts/image-full-native-template-candidates.test.mjs +++ b/scripts/image-full-native-template-candidates.test.mjs @@ -147,9 +147,13 @@ test('two experimental Custom recipes extend image coverage while preserving the 54, ); const imageTemplates = publicTemplates.filter((item) => item.example?.mediaType === 'image'); - const retainedLake = imageTemplates.find(({ id }) => id === 'lcm_dawn_alpine_lake'); - assert.equal(retainedLake?.example.status, 'unverified'); - assert.equal(imageTemplates.filter((item) => item !== retainedLake).length, 69); + const retainedEdits = ['lcm_dawn_alpine_lake', 'sana_sprint_monochrome_tiger']; + for (const id of retainedEdits) { + const template = imageTemplates.find((item) => item.id === id); + assert.equal(template?.example.status, 'unverified'); + assert.equal(template.readinessPolicy, 'requires_input'); + } + assert.equal(imageTemplates.filter(({ id }) => !retainedEdits.includes(id)).length, 69); for (const template of candidates) { assert.equal( publicTemplates.some((item) => item.id === template.id), diff --git a/scripts/modiff-template.test.mjs b/scripts/modiff-template.test.mjs index 08baf754..1345a42f 100644 --- a/scripts/modiff-template.test.mjs +++ b/scripts/modiff-template.test.mjs @@ -4579,7 +4579,15 @@ test('every template name identifies its exact model and operation', () => { template.mode === 'image_upscale' && template.modelType === 'SpandrelImageUpscale' ? `Spandrel ${modelName}` : modelName; - assert.ok(template.label.startsWith(`${modelLabel} — `), `${template.id} must begin with its model name`); + // Keep the archived title of the exact reviewed Sana recipe. Its detailed + // card has separate model and operation labels, including the 0.6B variant. + if (template.id === 'sana_sprint_monochrome_tiger') { + assert.equal(template.label, 'Sana Sprint — Monochrome Tiger'); + assert.equal(modelLabel, 'Sana Sprint 0.6B'); + assert.equal(template.mode, 'edit_image'); + } else { + assert.ok(template.label.startsWith(`${modelLabel} — `), `${template.id} must begin with its model name`); + } assert.doesNotMatch(template.label, /^(Low VRAM|High quality|Fast LoRA)$/i); } assert.equal( diff --git a/scripts/private-image-edit-evidence.mjs b/scripts/private-image-edit-evidence.mjs index 9b3f084b..c0feccf9 100644 --- a/scripts/private-image-edit-evidence.mjs +++ b/scripts/private-image-edit-evidence.mjs @@ -15,6 +15,7 @@ import { import { validateLateNativeImageVariantRun, validateNativeVariantOutput, + validateNativeVariantRun, validateUnmodifiedExpertPreparation, } from './native-variant-run-evidence.mjs'; import { @@ -24,10 +25,37 @@ import { } from './release-contract-core.mjs'; export const PRIVATE_IMAGE_EDIT_FORMAT = 'modiff.private.lcm-source-bound-edit.v1'; -const workflowId = 'LatentConsistencyModelPipeline:edit_image'; -const modelRepo = 'SimianLuo/LCM_Dreamshaper_v7'; -const modelRevision = 'a85df6a8bd976cdd08b4fd8f3b73f229c9e54df5'; -const loaderClass = 'LatentConsistencyModelImg2ImgPipeline'; +export const DIRECT_IMAGE_EDIT_FORMAT = 'modiff.private.direct-image-edit-source-bound.v1'; +const baseConsumed = ['num_inference_steps', 'output_type', 'prompt', 'seed']; +const imageGeometry = ['height', 'max_sequence_length', 'width']; +const editRoutes = new Map([ + [ + 'LatentConsistencyModelPipeline:edit_image', + { + modelRepo: 'SimianLuo/LCM_Dreamshaper_v7', + modelRevision: 'a85df6a8bd976cdd08b4fd8f3b73f229c9e54df5', + loaderClass: 'LatentConsistencyModelImg2ImgPipeline', + format: PRIVATE_IMAGE_EDIT_FORMAT, + captureFormat: 'modiff.private.lcm-image-edit-observation.v1', + consumed: [...baseConsumed, 'guidance_scale', 'strength'], + }, + ], + [ + 'SanaSprintPipeline:edit_image', + { + modelRepo: 'Efficient-Large-Model/Sana_Sprint_0.6B_1024px_diffusers', + modelRevision: 'aa76e7f4f4928f378716b6716a2130fba3caf5b1', + loaderClass: 'SanaSprintImg2ImgPipeline', + format: DIRECT_IMAGE_EDIT_FORMAT, + captureFormat: 'modiff.private.direct-image-edit-observation.v1', + consumed: [...baseConsumed, ...imageGeometry, 'guidance_scale', 'strength'], + fullNativeSnapshot: true, + strengthVariant: { original: 0.5, retained: 0.75 }, + }, + ], +]); +const lcmRoute = editRoutes.get('LatentConsistencyModelPipeline:edit_image'); + const ownerOrder = [ ['quantization', 'modules.DiffusersRuntime', 'PipelineQuantizationConfigV2'], ['recipe', 'modules.DiffusersRuntime', 'DiffusersExecutionRecipe'], @@ -36,23 +64,23 @@ const ownerOrder = [ ['edit', 'modules.DiffusersImage', 'Edit'], ['preview', 'modules.Image', 'Preview'], ]; -const consumedEditFields = ['guidance_scale', 'num_inference_steps', 'output_type', 'prompt', 'seed', 'strength']; -const inactiveEditFields = [ +const editableFields = [ + ...baseConsumed, + ...imageGeometry, 'cfg_normalize', 'control_guidance_end', 'control_guidance_start', - 'height', + 'guidance_scale', 'image_guidance_scale', 'layers', - 'max_sequence_length', 'negative_prompt', 'padding_mask_crop', 'pag_adaptive_scale', 'pag_scale', 'reference_strength', 'resolution', + 'strength', 'use_en_prompt', - 'width', ]; const sha256 = (bytes) => createHash('sha256').update(bytes).digest('hex'); const same = (a, b, message) => assert.equal(stableStringify(a), stableStringify(b), message); @@ -78,7 +106,7 @@ function directOwners(api, hinted = false) { ); } -export function bindPrivateImageEditGraph({ expected, submitted, input }) { +export function bindPrivateImageEditGraph({ expected, submitted, input, strengthVariant }) { const bound = structuredClone(expected); const canonical = directOwners(bound); const observed = directOwners(submitted, Object.hasOwn(submitted, 'runtimeHints')); @@ -94,16 +122,20 @@ export function bindPrivateImageEditGraph({ expected, submitted, input }) { assert.ok(!/[\u0000-\u001f\u007f]/u.test(prompt)); canonicalInput.value = [input.sourceValue]; canonicalPrompt.value = prompt; + if (strengthVariant) { + assert.equal(canonical.edit.node.params.strength.value, strengthVariant.original); + canonical.edit.node.params.strength.value = strengthVariant.retained; + } const identity = canonicalGraphIdentity(bound); same( canonicalGraphIdentity(submitted), identity, - 'Submitted edit differs outside its single declared file and prompt.', + 'Submitted edit differs outside its declared file, prompt and reviewed control variant.', ); return { ...observed, prompt, identity }; } -export function validatePrivateImageEditFields(bound, output) { +export function validatePrivateImageEditFields(bound, output, consumed = lcmRoute.consumed) { const accounting = output.resolvedExecutionInputs; for (const field of ['unavailableFields', 'uncapturedNodeIds']) same(accounting[field], []); // The legacy flat summary combines the GPU loader/recipe and the inactive @@ -137,7 +169,7 @@ export function validatePrivateImageEditFields(bound, output) { keys(outputProjections, []); const params = bound.edit.node.params; const metadata = 'image_contract'; - const known = [...consumedEditFields, ...inactiveEditFields, metadata]; + const known = [...editableFields, metadata]; keys(fields, known); keys(params, [...known, 'image', 'pipeline']); for (const field of known) { @@ -151,7 +183,7 @@ export function validatePrivateImageEditFields(bound, output) { sha256: sha256(`image-contract-v1\n${JSON.stringify(stableJsonValue(value))}`), } : { - ...(consumedEditFields.includes(field) + ...(consumed.includes(field) ? { disposition: 'consumed' } : { disposition: 'inactive', reason: 'adapter-inactive' }), inputValue: value, @@ -190,7 +222,7 @@ async function verifySourceBinding(clientRoot, bound, output, input) { } } -function validateRuntime(task, hints, completion, observation, bound) { +function validateRuntime(task, hints, completion, observation, bound, { modelRepo, modelRevision, loaderClass }) { same( completion.runtimeHints, { @@ -226,7 +258,10 @@ function validateRuntime(task, hints, completion, observation, bound) { } export async function readPrivateImageEditEvidence({ clientRoot, manifest, graph, authoring, artifact, evidencePath }) { - assert.equal(manifest.id, workflowId); + const workflowId = manifest.id; + const route = editRoutes.get(workflowId); + assert.ok(route, 'Unknown private image-edit evidence route.'); + const { modelRepo, modelRevision, loaderClass } = route; const target = canonicalWorkflowAuthoringContract(manifest, graph, authoring, artifact); same(target.modelSet, [{ repoId: modelRepo, revision: modelRevision }]); same(target.outputPlan.mediaKinds, ['image']); @@ -247,7 +282,7 @@ export async function readPrivateImageEditEvidence({ clientRoot, manifest, graph 'inputServerAfter', ]); assert.equal(evidence.schemaVersion, 1); - assert.equal(evidence.format, PRIVATE_IMAGE_EDIT_FORMAT); + assert.equal(evidence.format, route.format); assert.equal(evidence.workflowId, workflowId); const evidenceRoot = realpathSync(dirname(evidencePath)); const retainedFiles = []; @@ -275,7 +310,7 @@ export async function readPrivateImageEditEvidence({ clientRoot, manifest, graph 'outputs', ]); assert.equal(capture.schemaVersion, 1); - assert.equal(capture.format, 'modiff.private.lcm-image-edit-observation.v1'); + assert.equal(capture.format, route.captureFormat); assert.equal(capture.workflowId, workflowId); same(capture.qualificationClaims, { releaseEligible: false, technicalVariant: true }); assert.equal(capture.inputs.length, 1); @@ -300,12 +335,17 @@ export async function readPrivateImageEditEvidence({ clientRoot, manifest, graph outputPackage.latestOutput.graphSnapshot, run.workflow_snapshot, ]); - const bound = bindPrivateImageEditGraph({ expected, submitted: graphRequest, input }); + const bound = bindPrivateImageEditGraph({ + expected, + submitted: graphRequest, + input, + strengthVariant: route.strengthVariant, + }); for (const api of [creator.apiGraph, ...visualExports]) { directOwners(api); same(canonicalGraphIdentity(api), bound.identity, 'A saved visual owner graph differs from the original Run.'); } - const { task, output, hints } = validateLateNativeImageVariantRun({ + const runOptions = { target, outputNodeId: bound.preview.id, displayType: 'image', @@ -317,9 +357,15 @@ export async function readPrivateImageEditEvidence({ clientRoot, manifest, graph graphAcknowledgment, persistedOutput, validatePreparation: (preparation) => validateUnmodifiedExpertPreparation(preparation, loaderClass), - }); + }; + if (route.fullNativeSnapshot) { + assert.equal(run.outputs.length, 1); + same(run.outputs[0], persistedOutput, 'Saved native output differs from the at-close output store.'); + } + const validateRun = route.fullNativeSnapshot ? validateNativeVariantRun : validateLateNativeImageVariantRun; + const { task, output, hints } = validateRun(runOptions); same(hints.workflowSnapshot.studioForm, output.formSnapshot); - validatePrivateImageEditFields(bound, output); + validatePrivateImageEditFields(bound, output, route.consumed); const decodedInput = await verifySourceBinding(clientRoot, bound, output, input); const inputMedia = read(input.file); for (const ref of [evidence.inputServerBefore, evidence.inputServerAfter]) { @@ -356,6 +402,7 @@ export async function readPrivateImageEditEvidence({ clientRoot, manifest, graph graphCompleted, json(capture.modelObservations[0]), bound, + route, ); for (const ref of retainedFiles) readCanonicalEvidenceFile(evidenceRoot, ref, 16 * 1024 * 1024); assert.ok(readFileSync(evidencePath).equals(descriptorBytes), 'Evidence descriptor changed during validation.'); diff --git a/scripts/private-image-edit-evidence.test.mjs b/scripts/private-image-edit-evidence.test.mjs index 336b7233..9952f164 100644 --- a/scripts/private-image-edit-evidence.test.mjs +++ b/scripts/private-image-edit-evidence.test.mjs @@ -202,7 +202,14 @@ test('private direct image edit graph binds exactly one empty file and one empty assert.deepEqual(expected.nodes.source.params.file.value, []); submitted.nodes.edit.params.strength.value = 0.7; assert.throws(invoke, /changed|differs outside/u); + const strengthVariant = { original: 0.8, retained: 0.7 }; + const bindVariant = (variant = strengthVariant) => + bindPrivateImageEditGraph({ expected, submitted, input, strengthVariant: variant }); + assert.equal(bindVariant().edit.node.params.strength.value, 0.7); + assert.equal(expected.nodes.edit.params.strength.value, 0.8); + assert.throws(() => bindVariant({ ...strengthVariant, original: 0.5 })); submitted.nodes.edit.params.strength.value = 0.8; + assert.throws(() => bindVariant(), /differs outside/u); submitted.nodes.edit.params.image.sourceKey = 'mask'; assert.throws(invoke, /differs outside/u); submitted.loops = []; diff --git a/scripts/release-contract-core.mjs b/scripts/release-contract-core.mjs index e554baca..5085a390 100644 --- a/scripts/release-contract-core.mjs +++ b/scripts/release-contract-core.mjs @@ -715,6 +715,14 @@ const RETAINED_AUTHORING_ARCHIVES = new Map([ sha256: '5b07f097ab9706ce5ce7f9de8c1e93c2860adf5712b9c874237bea0e5739f83c', }, ], + [ + 'SanaSprintPipeline:edit_image', + { + descriptorSha256: 'ec340d225ca8eae07996fc5f93e3561cd25c82e80d1229a3adca1f648ea8d20e', + bytes: 4739, + sha256: '47a822a576ca20855d10311136e51651c5a2765bdd6c7fb3d79f8ab781bb0c0f', + }, + ], ]); function archivedCanonicalAuthoring(backendRoot, workflowId, evidencePath) { @@ -791,8 +799,9 @@ export async function readCanonicalWorkflowEvidence({ clientRoot, backendRoot, w return readCanonicalSpeechEvidence({ clientRoot, manifest, graph, authoring, artifact, evidencePath }); } if ( - evidence.format === 'modiff.private.lcm-source-bound-edit.v1' && - workflowId === 'LatentConsistencyModelPipeline:edit_image' + ['modiff.private.lcm-source-bound-edit.v1', 'modiff.private.direct-image-edit-source-bound.v1'].includes( + evidence.format, + ) ) { const { readPrivateImageEditEvidence } = await import('./private-image-edit-evidence.mjs'); return readPrivateImageEditEvidence({ clientRoot, manifest, graph, authoring, artifact, evidencePath }); diff --git a/scripts/retained-gallery-provenance.mjs b/scripts/retained-gallery-provenance.mjs index fbbe884e..da3b8072 100644 --- a/scripts/retained-gallery-provenance.mjs +++ b/scripts/retained-gallery-provenance.mjs @@ -65,6 +65,19 @@ const pinsByTemplate = new Map( beforeExtension: 'webp', outputExtension: 'webp', }, + sana_sprint_monochrome_tiger: { + associationSha256: '71acd76b4251a090e7c311cdb2a7d60a1ca7efbb48740046c2a9c71d62c064ce', + backendSourceFingerprint: + 'sha256:backend-source-v1:51be643787f3d45e45bed24df176137979ee0c8983fd86521cc2bcf45ad568ec', + backendContractFingerprint: + 'sha256:backend-contract-v1:315617df789a8a5f57426692318e197c13786098718305edd1927471b5b9c194', + templateRevisionHash: '7f1ac6b38c8f3fcc701921fe7f500b4717c4f1bfdf5cc2f059e934972923296b', + capturedAt: '2026-11-20T16:56:35.946Z', + inputSize: { width: 1024, height: 1024 }, + outputSize: { width: 1024, height: 1024 }, + beforeExtension: 'webp', + outputExtension: 'webp', + }, }), ); diff --git a/scripts/retained-gallery-release.test.mjs b/scripts/retained-gallery-release.test.mjs index 0422ffa0..ea2eff98 100644 --- a/scripts/retained-gallery-release.test.mjs +++ b/scripts/retained-gallery-release.test.mjs @@ -156,23 +156,27 @@ test( ); test( - 'the approved retained Whisper and LCM examples bind exact bytes and native observations', - { skip: !process.env.MODIFF_VERIFY_WHISPER_LCM_GALLERY_STAGE }, + 'approved retained speech and edit examples bind exact bytes and native observations', + { skip: !process.env.MODIFF_VERIFY_WHISPER_LCM_GALLERY_STAGE && !process.env.MODIFF_VERIFY_SANA_GALLERY_STAGE }, async () => { const clientRoot = resolve(import.meta.dirname, '..'); const backend = resolve(process.env.MODIFF_BACKEND_DIR || join(clientRoot, '..', 'MoDiff')); - const stage = resolve(process.env.MODIFF_VERIFY_WHISPER_LCM_GALLERY_STAGE); + const whisperLcmStage = process.env.MODIFF_VERIFY_WHISPER_LCM_GALLERY_STAGE; + const sanaStage = process.env.MODIFF_VERIFY_SANA_GALLERY_STAGE; const json = (root, path) => JSON.parse(readFileSync(join(root, path), 'utf8')); - const registry = json(stage, 'public/template-gallery/manifest.json'); - const source = json(stage, 'src/studio/templateAssetSource.json'); const manifest = json(backend, 'data/workflow-library-manifest.json'); const receiptRegistry = json(backend, 'data/qualification/release/canonical-workflow-run-receipts.v1.json'); const runtime = await loadTemplateRuntime(clientRoot); - const read = createRetainedGalleryReleaseReader({ clientRoot: stage, source, registry }); - for (const [id, workflowId] of [ - ['whisper_tiny_blue_cup_transcription', 'HuggingFaceSpeechRecognitionModel:speech_to_text'], - ['lcm_dawn_alpine_lake', 'LatentConsistencyModelPipeline:edit_image'], + for (const [id, workflowId, stagePath] of [ + ['whisper_tiny_blue_cup_transcription', 'HuggingFaceSpeechRecognitionModel:speech_to_text', whisperLcmStage], + ['lcm_dawn_alpine_lake', 'LatentConsistencyModelPipeline:edit_image', whisperLcmStage], + ['sana_sprint_monochrome_tiger', 'SanaSprintPipeline:edit_image', sanaStage], ]) { + if (!stagePath) continue; + const stage = resolve(stagePath); + const registry = json(stage, 'public/template-gallery/manifest.json'); + const source = json(stage, 'src/studio/templateAssetSource.json'); + const read = createRetainedGalleryReleaseReader({ clientRoot: stage, source, registry }); const template = runtime.templates.find((item) => item.id === id); const entry = runtime.findManifestEntry(template, registry); const workflow = manifest.workflows.find((item) => item.id === workflowId); @@ -218,8 +222,17 @@ test( } else { const review = json(stage, `public${entry.qualityReviewPath}`); assert.match(entry.beforePath, /\.before\.webp$/u); - assert.equal(review.scores.promptAdherence, 3); + const sana = id === 'sana_sprint_monochrome_tiger'; + assert.equal(review.scores.promptAdherence, sana ? 4 : 3); assert.equal(review.maintainerAcceptance.decision, 'accepted_with_disclosed_limitations'); + if (sana) { + const { observedEditControls, modelTerms } = provenance.association.recipeObservation; + assert.equal(observedEditControls.strength, 0.75); + assert.equal(modelTerms.textEncoder, 'Gemma-2-2B-IT'); + const stock = structuredClone(provenance); + stock.association.recipeObservation.observedEditControls.strength = 0.5; + assert.ok(validateRetainedGalleryProvenance(stock, entry, check).length); + } } } }, diff --git a/scripts/retained-gallery-templates.test.mjs b/scripts/retained-gallery-templates.test.mjs index 58f1785d..ec084306 100644 --- a/scripts/retained-gallery-templates.test.mjs +++ b/scripts/retained-gallery-templates.test.mjs @@ -106,6 +106,11 @@ function retainedTemplateGraph(recipe, sourceValue = recipe.inputFileName ?? aut const promptNode = nodes.find((node) => node.action === (template.mode === 'edit_image' ? 'Edit' : 'GenerateText')); assert.equal(promptNode.params.prompt.value, ''); promptNode.params.prompt.value = template.prompt; + if (template.modelType === 'SanaSprintPipeline' && template.mode === 'edit_image') { + assert.equal(promptNode.params.strength.value, 0.5); + assert.equal(template.example.lockedSettings.strength, 0.75); + promptNode.params.strength.value = template.example.lockedSettings.strength; + } } return canonicalGraphIdentity(api); } @@ -255,7 +260,7 @@ test('fresh Expert recipes prepare with current backend specs and without a gene const loader = api.nodes[binding.nodes[spec.roles.find(([, key]) => key.endsWith('.' + spec.loaderAction))[0]]]; assert.deepEqual(loader.params.model_id.value, { source: 'hub', value: template.modelArtifact.value }); assert.equal(loader.params.revision.value, template.modelArtifact.revision); - assert.equal(loader.params.dtype.value, 'float32'); + assert.equal(loader.params.dtype.value, template.example.lockedSettings.dtype ?? 'float32'); assert.equal(loader.params.device.value, 'cuda:0'); if (audio) { const source = api.nodes[binding.nodes.loadAudio]; @@ -290,6 +295,7 @@ test('fresh Expert recipes prepare with current backend specs and without a gene } assert.equal(loader.params.quantization_mode.value, 'none'); if (template.mode === 'edit_image') { + const locked = template.example.lockedSettings; const source = api.nodes[binding.nodes.loadImage].params; assert.deepEqual(source.file.value, input); assert.equal(source.alpha_channel.value, 'ignore'); @@ -302,19 +308,19 @@ test('fresh Expert recipes prepare with current backend specs and without a gene ); assert.deepEqual(values, { prompt: template.prompt, - width: 1024, - height: 1024, - num_inference_steps: 4, - guidance_scale: 8.5, - strength: 0.8, - seed: 42, - output_type: 'pil', + width: locked.width, + height: locked.height, + num_inference_steps: locked.steps, + guidance_scale: locked.guidanceScale, + strength: locked.strength, + seed: template.example.lockedSeed, + output_type: locked.outputType, }); assert.equal(edit.image.sourceId, binding.nodes.loadImage); assert.equal(edit.pipeline.sourceId, binding.nodes.diffusersImagePipeline); assert.equal(api.nodes[binding.nodes.preview].params.image.sourceId, binding.nodes.diffusersImageEdit); const controls = api.nodes[binding.nodes.diffusersRecipe].params; - assert.equal(controls.offload_mode.value, 'none'); + assert.equal(controls.offload_mode.value, locked.offloadMode); assert.equal(controls.attention_backend.value, 'auto'); assert.equal(controls.vae_slicing.value, true); assert.equal(controls.vae_tiling.value, true); diff --git a/scripts/retained-template-association.mjs b/scripts/retained-template-association.mjs index 427fb4ec..e7353f28 100644 --- a/scripts/retained-template-association.mjs +++ b/scripts/retained-template-association.mjs @@ -42,6 +42,18 @@ const WHISPER_LCM_REVIEW_SCOPES = { 'Accepted as a creative dawn reinterpretation with the disclosed terrain changes and stronger alpenglow.', }, }; +const SANA_TEMPLATE_ID = 'sana_sprint_monochrome_tiger'; +const SANA_WORKFLOW_ID = 'SanaSprintPipeline:edit_image'; +const SANA_REVIEW_SCOPE_SHA256 = '09c91c7aa04229e591a86849d399dcf557ca61bdecfc3ac25e7b935795113263'; +const SANA_REVIEW_SCOPE = { + proofKind: 'real_backend_input_bound_model_variant', + input: `${SANA_TEMPLATE_ID}.before.webp`, + output: `${SANA_TEMPLATE_ID}.webp`, + decision: 'accepted_with_disclosed_limitations', + technicalRecipe: 'source_bound_image_edit', + acceptanceStatement: + 'Accepted as a creative monochrome edit with the disclosed changes to facial proportions, stripes, crop and background.', +}; const SPANDREL_TEMPLATE_ID = 'spandrel_x2_synthetic_gradient'; const SPANDREL_REVIEW_HASH = '357594a299efcda4b9b9e7c4fa65c3d016db3ffe1634fdfe8dfe360789c4d0d4'; const SPANDREL_SCOPE = { @@ -62,6 +74,91 @@ function readBoundedRecord(path) { return { value: JSON.parse(bytes), sha256: digest(bytes) }; } +function verifiedSanaRecipe(draft, native, recipe) { + const { evidence, receipt, evidenceRoot } = native; + const capture = JSON.parse(readCanonicalEvidenceFile(evidenceRoot, evidence.capture).bytes); + const run = JSON.parse(readCanonicalEvidenceFile(evidenceRoot, capture.runDetail).bytes); + const [nativeOutput] = run.outputs; + const [source] = capture.inputs; + const original = nativeOutput.resolvedExecutionInputs.nodes; + const parameters = (action, disposition) => + Object.fromEntries( + Object.entries(original.find((node) => node.action === action).fieldAccounting.fields) + .filter(([, field]) => field.disposition === disposition) + .map(([key, field]) => [key, field.value]), + ); + const loaded = parameters('LoadPipeline', 'consumed'); + const execution = parameters('DiffusersExecutionRecipe', 'consumed'); + const submittedLoaderSettings = { + dtype: loaded.dtype, + device: execution.device, + device_map: execution.device_map, + attention_backend: execution.attention_backend, + offload_mode: execution.offload_mode, + quantization_mode: loaded.quantization_mode, + low_cpu_mem_usage: loaded.low_cpu_mem_usage, + vae_slicing: execution.vae_slicing, + vae_tiling: execution.vae_tiling, + }; + assert.equal(draft.format, 'modiff.gallery.retained-template-provenance-draft.v1'); + assert.equal(draft.verificationStatus, 'pending_maintainer_review'); + assert.equal(draft.evidenceDescriptorSha256, evidence.capture.sha256); + assert.equal(draft.nativeRuntimeFingerprint, run.task.runtimeFingerprint.fingerprint); + assert.equal(draft.originalGraphHash, receipt.graphHash); + assert.equal(`sha256:workflow-graph-v1:${draft.sourceGraphManifestSha256}`, receipt.canonicalWorkflowHash); + assert.equal(draft.verificationTimestamp, new Date(nativeOutput.createdAt).toISOString()); + assert.equal(draft.canonicalDefaultsExecuted, receipt.canonicalDefaultsExecuted); + assert.deepEqual(draft.qualificationClaims, receipt.qualificationClaims); + assert.deepEqual(draft.modelSet, receipt.modelSet); + assert.equal(draft.effectivePipelineClass, loaded.pipeline_class); + assert.deepEqual(draft.submittedLoading, submittedLoaderSettings); + assert.deepEqual(draft.observedEditControls, parameters('Edit', 'consumed')); + assert.deepEqual(draft.inactiveAuthoredEditControls, parameters('Edit', 'inactive')); + assert.equal(draft.observedEditControls.prompt, recipe.template.prompt); + assert.equal(draft.observedEditControls.strength, 0.75); + assert.deepEqual(draft.controlledVariant.strength, { field: 'strength', from: 0.5, to: 0.75 }); + const { width, height, mode, sha256 } = receipt.inputBinding.decodedImage; + assert.deepEqual( + [draft.source.width, draft.source.height, draft.source.decodedMode, draft.source.decodedSha256], + [width, height, mode, sha256], + ); + assert.equal(draft.source.bytes, source.file.bytes); + assert.equal(draft.source.encodedSha256, receipt.inputBinding.sha256); + assert.deepEqual( + [draft.output.width, draft.output.height], + [receipt.decodedOutput.width, receipt.decodedOutput.height], + ); + const { runtimeMeasurement } = run.task; + assert.equal(draft.runtime.backend, runtimeMeasurement.backend); + assert.equal(draft.runtime.resourceMode, run.task.runtimePreparation.resourceMode); + assert.equal(draft.runtime.executionDurationSeconds, receipt.executionDurationSeconds); + assert.equal(draft.runtime.peakAllocatedAcceleratorBytes, receipt.peakMemoryBytes); + assert.equal(draft.runtime.peakReservedAcceleratorBytes, runtimeMeasurement.peakReservedBytes); + return { + backendContractFingerprint: receipt.backendContractFingerprint, + recipeObservation: { + source: { + width, + height, + encodedSha256: draft.source.encodedSha256, + decodedSha256: sha256, + creation: draft.source.creation, + }, + observedEditControls: draft.observedEditControls, + inactiveAuthoredEditControls: draft.inactiveAuthoredEditControls, + submittedLoaderSettings, + modelTerms: { + license: 'Apache-2.0', + licenseUrl: + 'https://huggingface.co/Efficient-Large-Model/Sana_Sprint_0.6B_1024px_diffusers/blob/aa76e7f4f4928f378716b6716a2130fba3caf5b1/LICENSE', + textEncoder: 'Gemma-2-2B-IT', + textEncoderTermsUrl: 'https://ai.google.dev/gemma/terms', + textEncoderProhibitedUsePolicyUrl: 'https://ai.google.dev/gemma/prohibited_use_policy', + }, + }, + }; +} + function verifiedTechnicalRecipe({ scope, recipe, candidate, native, reviewedRecipe, output, speech }) { const { bytes, ref } = reviewedRecipe; const { receipt } = native; @@ -72,15 +169,16 @@ function verifiedTechnicalRecipe({ scope, recipe, candidate, native, reviewedRec assert.equal(draft.templateId, recipe.template.id); assert.equal(draft.workflowId, receipt.workflowId); assert.equal(draft.sourceTaskContractId, receipt.sourceTemplateId); - assert.equal(draft.runtimeFingerprint, receipt.runtimeFingerprint); assert.equal(draft.backendSourceFingerprint, receipt.backendSourceFingerprint); - assert.deepEqual(draft.observationLimits, receipt.observationLimits); assert.equal( draft.output.decodedMediaHash ?? `sha256:decoded-rgba:${draft.output.decodedSha256}`, output.decodedMediaHash, ); assert.equal(`sha256:bytes:${draft.output.sha256 ?? draft.output.encodedSha256}`, output.outputEncodedSha256); assert.equal(draft.output.byteSize ?? draft.output.bytes, output.outputBytes); + if (scope === SANA_REVIEW_SCOPE) return verifiedSanaRecipe(draft, native, recipe); + assert.equal(draft.runtimeFingerprint, receipt.runtimeFingerprint); + assert.deepEqual(draft.observationLimits, receipt.observationLimits); const { templateLockHash, galleryTemplateLockHash, promptSettingsHash } = recipe.reviewedCatalogLock; if (scope.technicalRecipe === 'speech_transcription') { assert.equal(draft.format, 'modiff.gallery.retained-speech-review-draft.v1'); @@ -170,7 +268,9 @@ export function assessRetainedTemplateAssociation({ const spandrel = template.id === SPANDREL_TEMPLATE_ID; const scope = spandrel ? SPANDREL_SCOPE - : (BOUND_REVIEW_SCOPES[template.id] ?? WHISPER_LCM_REVIEW_SCOPES[template.id]); + : template.id === SANA_TEMPLATE_ID + ? SANA_REVIEW_SCOPE + : (BOUND_REVIEW_SCOPES[template.id] ?? WHISPER_LCM_REVIEW_SCOPES[template.id]); assert.ok(scope, 'Retained Gallery template scope is not reviewed.'); const { evidence, receipt, evidenceRoot, descriptorBytes } = native; assert.equal(candidate.templateId, template.id); @@ -404,7 +504,9 @@ export function finalizeRetainedQualityReview({ association, draft, reviewer, re reviewer, acceptedAt: reviewedAt, statement: - WHISPER_LCM_REVIEW_SCOPES[association.templateId]?.acceptanceStatement ?? + (association.templateId === SANA_TEMPLATE_ID + ? SANA_REVIEW_SCOPE.acceptanceStatement + : WHISPER_LCM_REVIEW_SCOPES[association.templateId]?.acceptanceStatement) ?? (spandrel ? 'Accepted as a technical preview of the exact saved synthetic gradient and 2× delivery with the disclosed limitations.' : 'Accepted as a technical depth preview with the reviewed scores and the disclosed limits of the synthetic ramp.'), @@ -540,6 +642,101 @@ export function readApprovedWhisperLcmBatch(args) { }); } +export async function readApprovedSanaReview({ approvalRoot, vite, nativeBySha }) { + const approvalPath = join(approvalRoot, 'approval.v1.json'); + if (!existsSync(approvalPath)) return null; + const { value: approval, sha256: approvalHash } = readBoundedRecord(approvalPath); + assert.equal( + approvalHash, + '40060ba701188a6d287df07e0852c6497d109885495e6fc85a19e8371ef73906', + 'Sana Sprint approval digest differs.', + ); + assert.equal(approval.schemaVersion, 1); + assert.equal(approval.format, 'modiff.private.gallery-candidate-approval.v1'); + assert.ok(typeof approval.reviewer === 'string' && approval.reviewer.trim()); + assert.ok(Number.isFinite(Date.parse(approval.reviewedAt))); + assert.equal(approval.reviewScopeSha256, SANA_REVIEW_SCOPE_SHA256); + assert.equal(approval.candidates.length, 1); + const [candidate] = approval.candidates; + assert.equal(candidate.templateId, SANA_TEMPLATE_ID); + assert.equal(candidate.workflowId, SANA_WORKFLOW_ID); + const { value: scope, sha256: scopeHash } = readBoundedRecord(join(approvalRoot, 'review-scope.json')); + assert.equal(scopeHash, SANA_REVIEW_SCOPE_SHA256); + assert.equal(scope.status, 'pending_review_and_redistribution_rights'); + assert.deepEqual(candidate.files, scope.files); + const { RETAINED_GALLERY_TEMPLATES } = await vite.ssrLoadModule('/src/studio/retainedGalleryTemplates.ts'); + const { getTemplateLockHash, getPromptSettingsHash, getTemplateLockedSettings } = await vite.ssrLoadModule( + '/src/studio/templateExactness.ts', + ); + const matches = RETAINED_GALLERY_TEMPLATES.filter(({ template }) => template.id === SANA_TEMPLATE_ID); + assert.equal(matches.length, 1); + const [recipe] = matches; + const { template } = recipe; + const settings = getTemplateLockedSettings(template); + assert.equal(canonicalJsonHash({ template, settings }), recipe.reviewedTemplateSha256); + const native = nativeBySha.get(recipe.originalReceiptSha256); + assert.ok(native, 'The approved original Sana Sprint receipt could not be verified.'); + const before = SANA_REVIEW_SCOPE.input; + const after = SANA_REVIEW_SCOPE.output; + const review = `${SANA_TEMPLATE_ID}.proposed-review.json`; + const provenance = `${SANA_TEMPLATE_ID}.proposed-provenance.json`; + assert.equal(candidate.files.length, 4); + const files = new Map( + [before, after, review, provenance].map((name) => { + const refs = candidate.files.filter((item) => item.path === name); + assert.equal(refs.length, 1); + const [ref] = refs; + return [name, { ref, ...readCanonicalEvidenceFile(join(approvalRoot, 'reviewed'), ref, 2 * 1024 * 1024) }]; + }), + ); + const draftReview = JSON.parse(files.get(review).bytes); + assert.equal(draftReview.schemaVersion, 2); + assert.equal(draftReview.templateId, SANA_TEMPLATE_ID); + assert.equal(draftReview.reviewStatus, 'pending_maintainer_review'); + assert.equal(draftReview.proposedDecision, SANA_REVIEW_SCOPE.decision); + assert.ok(!draftReview.reviewer && !draftReview.reviewedAt); + assert.equal(draftReview.graphHash, native.receipt.graphHash); + const capture = JSON.parse(readCanonicalEvidenceFile(native.evidenceRoot, native.evidence.capture).bytes); + const run = JSON.parse(readCanonicalEvidenceFile(native.evidenceRoot, capture.runDetail).bytes); + assert.equal(draftReview.nativeRuntimeFingerprint, run.task.runtimeFingerprint.fingerprint); + assert.equal(draftReview.modelRevision, `${template.modelArtifact.value}@${template.modelArtifact.revision}`); + assert.equal(draftReview.outputSha256, files.get(after).ref.sha256); + assert.equal(draftReview.sourceSha256, files.get(before).ref.sha256); + const association = assessRetainedTemplateAssociation({ + recipe, + candidate: { + ...candidate, + sourceTaskContractId: recipe.sourceTaskTemplateId, + draftReviewSha256: files.get(review).ref.sha256, + draftProvenanceSha256: files.get(provenance).ref.sha256, + }, + native, + galleryOutput: files.get(after), + galleryInput: files.get(before), + reviewedRecipe: files.get(provenance), + catalogLock: { + templateLockHash: getTemplateLockHash(template), + galleryTemplateLockHash: getTemplateLockHash(template, draftReview.modelRevision), + promptSettingsHash: getPromptSettingsHash(settings), + }, + }); + assert.equal(draftReview.decodedMediaHash, association.output.decodedMediaHash); + const qualityReview = finalizeRetainedQualityReview({ + association, + draft: draftReview, + reviewer: approval.reviewer, + reviewedAt: approval.reviewedAt, + }); + return { + association: { ...association, qualityReviewHash: galleryJsonHash(qualityReview) }, + qualityReview, + recipe, + receipt: native.receipt, + outputBytes: files.get(after).bytes, + beforeBytes: files.get(before).bytes, + }; +} + export async function readReviewedBoundTemplateAssociations({ approvalRoot, vite, nativeBySha }) { const current = await readReviewBatch({ approvalRoot, vite, nativeBySha, scopes: BOUND_REVIEW_SCOPES }); const audited = await readApprovedWhisperLcmBatch({ @@ -547,8 +744,10 @@ export async function readReviewedBoundTemplateAssociations({ approvalRoot, vite vite, nativeBySha, }); + const sana = await readApprovedSanaReview({ approvalRoot: join(approvalRoot, 'sana-sprint'), vite, nativeBySha }); + const records = sana ? [...current, ...audited, sana] : [...current, ...audited]; const associations = new Map(); - for (const { association } of [...current, ...audited]) { + for (const { association } of records) { assert.ok(!associations.has(association.workflowId), 'Retained Gallery workflow association is duplicated.'); associations.set(association.workflowId, association); } diff --git a/scripts/template-gallery-harness.test.mjs b/scripts/template-gallery-harness.test.mjs index 57a0ed23..40257c9f 100644 --- a/scripts/template-gallery-harness.test.mjs +++ b/scripts/template-gallery-harness.test.mjs @@ -1110,11 +1110,12 @@ test('public provenance redacts removable Linux mounts while retaining public an }); test('gallery harness loads all Studio templates from the TypeScript runtime', () => { - assert.equal(runtime.templates.length, 96); + assert.equal(runtime.templates.length, 97); const ids = new Set(runtime.templates.map((template) => template.id)); - assert.equal(ids.size, 96); + assert.equal(ids.size, 97); assert.ok(ids.has('whisper_tiny_blue_cup_transcription')); assert.ok(ids.has('lcm_dawn_alpine_lake')); + assert.ok(ids.has('sana_sprint_monochrome_tiger')); assert.ok(ids.has('spandrel_x2_synthetic_gradient')); assert.ok(runtime.templates.some((template) => template.id === 'minimax_h3_image_old_town_cat')); assert.ok(runtime.templates.some((template) => template.id === 'minimax_music3_chamber_pop')); diff --git a/scripts/template-quality.test.mjs b/scripts/template-quality.test.mjs index 54144aa7..d03b760a 100644 --- a/scripts/template-quality.test.mjs +++ b/scripts/template-quality.test.mjs @@ -243,6 +243,20 @@ test('the LCM Edit audit recognizes a target caption with a bound source and no assert.equal(qualityModule.getTemplateNegativePolicy({ ...template, mode: 'text_to_image' }).requirement, 'required'); }); +test('the retained Sana Sprint Edit requires a target caption and exactly one required source', () => { + const template = templatesModule.STUDIO_TEMPLATES.find((item) => item.id === 'sana_sprint_monochrome_tiger'); + assert.ok(template); + const audit = qualityModule.auditTemplateQuality(template); + assert.equal(audit.passed, true); + assert.equal(audit.negative.policy.declarationId, 'sana-sprint-edit-no-negative-input'); + assert.deepEqual(audit.matchedSemanticGroups, ['source_role', 'focal_content', 'spatial_design', 'visual_treatment']); + const noSource = qualityModule.auditTemplateQuality({ ...template, inputBindings: [] }); + assert.ok(noSource.issues.some((issue) => issue.semanticGroup === 'source_role')); + const noCaption = qualityModule.auditTemplateQuality({ ...template, prompt: '' }); + assert.ok(noCaption.issues.some((issue) => issue.semanticGroup === 'visual_treatment')); + assert.equal(qualityModule.getTemplateNegativePolicy({ ...template, mode: 'text_to_image' }).requirement, 'required'); +}); + test('the Cosmos publisher blank-negative declaration does not extend to other same-class recipes', () => { const template = templatesModule.STUDIO_TEMPLATES.find((item) => item.id === 'cosmos3_super_text_to_image'); assert.equal(qualityModule.getTemplateNegativePolicy(template).declarationId, 'cosmos3-super-publisher-conditioning'); diff --git a/src/studio/retainedGalleryTemplates.ts b/src/studio/retainedGalleryTemplates.ts index 9b0bd47c..931cc949 100644 --- a/src/studio/retainedGalleryTemplates.ts +++ b/src/studio/retainedGalleryTemplates.ts @@ -444,4 +444,106 @@ export const RETAINED_GALLERY_TEMPLATES = [ }, }, }, + { + workflowId: 'SanaSprintPipeline:edit_image', + sourceTaskTemplateId: 'task-template:sana-sprint-600m:edit-image:v1', + retainedGraphHash: 'sha256:canonical-graph-v1:e69d5c8fa5e75c1387b8dae436e44c580d3b1eb31267946c26b98049e2f7132c', + originalReceiptSha256: 'ec340d225ca8eae07996fc5f93e3561cd25c82e80d1229a3adca1f648ea8d20e', + reviewedTemplateSha256: '7f1ac6b38c8f3fcc701921fe7f500b4717c4f1bfdf5cc2f059e934972923296b', + reviewedCatalogLock: { + templateLockHash: 'tpl_b6bc5c52', + galleryTemplateLockHash: 'tpl_8be9c59d', + promptSettingsHash: 'ps_6cb5dccc', + }, + inputFileName: 'retained-tiger-source.webp', + inputSha256: 'a99616590d7d8586a51a25bbe9e36b309f705bc80f2abaab04ac84f1e0d948e4', + promptSha256: 'db2c046f8d489387110e3de23a28dfd52f981d796958433e819988b94c8ed853', + template: { + id: 'sana_sprint_monochrome_tiger', + label: 'Sana Sprint — Monochrome Tiger', + modelDisplayName: 'Sana Sprint 0.6B', + mode: 'edit_image', + modelType: 'SanaSprintPipeline', + intentGroup: 'edit_image', + category: 'edit', + tags: ['image edit', 'wildlife', 'monochrome'], + difficulty: 'starter', + readinessPolicy: 'requires_input', + outputKinds: ['image'], + thumbnailVariant: 'compareSlider', + inputBindings: [ + { + id: 'source-image', + label: 'Source image', + mediaType: 'image', + origin: 'user', + requiredAt: 'workflow_start', + field: 'referenceImages', + count: 1, + }, + ], + mediaSlots: [ + { + id: 'before', + label: 'Color tiger source', + kind: 'comparison_before', + role: 'before', + placeholder: 'Source pending', + }, + { + id: 'after', + label: 'Monochrome edit', + kind: 'comparison_after', + role: 'after', + placeholder: 'Preview pending', + }, + ], + requiredBackendCapabilities: [ + 'modules.DiffusersRuntime.PipelineQuantizationConfigV2', + 'modules.DiffusersRuntime.DiffusersExecutionRecipe', + 'modules.DiffusersImage.LoadPipeline', + 'modules.Image.Load', + 'modules.DiffusersImage.Edit', + 'modules.Image.Preview', + ], + modelArtifact: { + source: 'hub', + value: 'Efficient-Large-Model/Sana_Sprint_0.6B_1024px_diffusers', + revision: 'aa76e7f4f4928f378716b6716a2130fba3caf5b1', + }, + runtimeReuseKey: 'SanaSprintPipeline:bfloat16:none:model_cpu:none:expert', + description: 'Transform a full-color tiger portrait into a high-contrast monochrome wildlife photograph.', + recipeSummary: 'Compare the source tiger portrait with a two-step creative edit at strength 0.75.', + prompt: + 'Black-and-white wildlife photograph of a front-facing tiger cub against a soft dark-gray forest background, with silver highlights on its whiskers, detailed charcoal stripes, and gentle overcast light. Centered head-and-shoulders framing, direct gaze, natural fur texture.', + negativePrompt: '', + example: { + mediaType: 'image', + status: 'unverified', + modelRevision: 'aa76e7f4f4928f378716b6716a2130fba3caf5b1', + lockedSeed: 42, + lockedSettings: { + width: 1024, + height: 1024, + strength: 0.75, + steps: 2, + guidanceScale: 4.5, + randomSeed: false, + outputType: 'pil', + maxSequenceLength: 300, + dtype: 'bfloat16', + resourceMode: 'expert', + quantizationMode: 'none', + autoOffload: true, + offloadMode: 'model_cpu', + }, + expectedOutput: { + width: 1024, + height: 1024, + }, + runtimeEstimate: '8.30 seconds in the retained Linux ROCm run', + notes: 'The edit keeps the frontal pose and gaze while altering stripe markings, eye spacing and the crop.', + }, + }, + }, ] as const satisfies readonly RetainedGalleryRecipe[]; diff --git a/src/studio/templateAssetSource.json b/src/studio/templateAssetSource.json index 2a10ac1c..3955c659 100644 --- a/src/studio/templateAssetSource.json +++ b/src/studio/templateAssetSource.json @@ -4,11 +4,11 @@ "localBasePath": "/template-gallery", "repoType": "dataset", "repoId": "sourav-das/modiff-template-gallery", - "revision": "3fe997d48f920c5a2ec66d025b008901d2fc3ce3", + "revision": "b3796d7eedd09df37bef63e99f3ef46a677deebd", "pathPrefix": "template-gallery", "assetManifestPath": "_modiff/template-assets.v1.json", - "assetSetId": "sha256:canonical-json:f2ba278012cca358dafe5157abcf3c0d89b9d9619c744f368b6854fb4f514bc8", - "completeAssetSetId": "sha256:canonical-json:985e5c67b0e9791b04f400b287029bd3f54285e908107ca1951fb62070405fc8", + "assetSetId": "sha256:canonical-json:f75071fbeaea2c6db64f9345902e65c4860656ddac526ffecb2b02ad09c8ec0e", + "completeAssetSetId": "sha256:canonical-json:1345dca546164326458297b1a75b056cefa8fccb94da13f60301b3ddcd21ca3a", "unavailableAssets": [ "template-gallery/ace_step_chinese_new_year_lora.card-poster.png", "template-gallery/ace_step_chinese_new_year_lora.wav", diff --git a/src/studio/templateQuality.ts b/src/studio/templateQuality.ts index e83c148d..f9f5f1a7 100644 --- a/src/studio/templateQuality.ts +++ b/src/studio/templateQuality.ts @@ -116,6 +116,7 @@ const SEMANTIC_GROUPS: Record = /\b(worker|keeper|operator|courier|engineer|mechanic|artisan|veterinarian|musician|driver|researcher|watchman)\b/i, /\b(bottle|can|radio|camera|poster|logo|packag\w*|lamp|helmet|chair|headphone|observatory|greenhouse)\b/i, /\b(train|harbor|gallery|briefcase|coast|orchid|book\w*|speaker|bowl|mascot|carton|mug|cup|teapot)\b/i, + /\b(tiger|lion|leopard|elephant|fox|wolf|bear|deer|owl|eagle|wildlife)\b/i, ], }, spatial_design: { @@ -271,6 +272,12 @@ export const BLANK_NEGATIVE_DECLARATIONS: readonly BlankNegativeDeclaration[] = modes: ['edit_image'], reason: 'LCM image editing uses a source image and a positive target caption.', }, + { + id: 'sana-sprint-edit-no-negative-input', + modelTypes: ['SanaSprintPipeline'], + modes: ['edit_image'], + reason: 'The reviewed Sana Sprint image edit uses a source image and a positive target caption.', + }, { id: 'minimax-h3-image-no-negative-input', modelTypes: ['MiniMaxH3ImageModularPipeline'], @@ -392,6 +399,9 @@ export function classifyTemplateQualityKind(template: Pick, ): TemplateSemanticGroup[] { + if (template.modelType === 'SanaSprintPipeline' && template.mode === 'edit_image') { + return ['source_role', ...REQUIRED_SEMANTIC_GROUPS.image_generation]; + } return [...REQUIRED_SEMANTIC_GROUPS[classifyTemplateQualityKind(template)]]; } @@ -527,15 +537,17 @@ export function analyzeTemplateNegativePrompt( } function imageTargetCaptionGroups(template: StudioTemplate, prompt: string): TemplateSemanticGroup[] { - if ( - template.mode !== 'edit_image' || - template.modelType !== 'LatentConsistencyModelPipeline' || - !template.inputBindings?.some( - (binding) => binding.origin === 'user' && binding.field === 'referenceImages' && binding.count === 1, - ) - ) { - return []; + if (template.mode !== 'edit_image') return []; + const reference = template.inputBindings?.find( + (binding) => binding.origin === 'user' && binding.field === 'referenceImages' && binding.count === 1, + ); + if (!reference) return []; + // Sana Sprint takes a positive description of the finished image. The + // source's role is established by its explicit required image binding. + if (template.modelType === 'SanaSprintPipeline') { + return reference.requiredAt === 'workflow_start' ? ['source_role'] : []; } + if (template.modelType !== 'LatentConsistencyModelPipeline') return []; // This img2img route describes the desired image. A caption can refer to the // bound source and specify its new look without an instruction verb. const target = diff --git a/src/studio/types.ts b/src/studio/types.ts index 90eb2b97..a13d29f4 100644 --- a/src/studio/types.ts +++ b/src/studio/types.ts @@ -257,6 +257,7 @@ export type StudioTemplateId = | 'spandrel_x2_synthetic_gradient' | 'whisper_tiny_blue_cup_transcription' | 'lcm_dawn_alpine_lake' + | 'sana_sprint_monochrome_tiger' | 'minimax_h3_image_old_town_cat' | 'flux3_klein_fp8r512_text_to_image' | 'flux3_klein_fp8r512_single_reference_edit' From f6370a27c35bc591d862d4f4050d89ea57cd9783 Mon Sep 17 00:00:00 2001 From: Sourav Das Date: Sat, 21 Nov 2026 03:49:41 +0530 Subject: [PATCH 276/440] Pin the validated Sana catalog assertions --- .github/workflows/ci.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 79fcf84b..de05c641 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -33,7 +33,7 @@ jobs: with: repository: sdevil7th/MoDiff # Pair R04 damaged-metadata readiness and the existing setup contract. - ref: 6485b4cf59f25298e5105491941d9e2e1fcf297c + ref: a254c87e39aa509d12f8a45d5760e2e0c8bf90fe path: MoDiff persist-credentials: false - name: Verify the pinned backend supports native setup @@ -89,7 +89,7 @@ jobs: with: repository: sdevil7th/MoDiff # Match the immutable backend revision in the Client quality job. - ref: 6485b4cf59f25298e5105491941d9e2e1fcf297c + ref: a254c87e39aa509d12f8a45d5760e2e0c8bf90fe path: MoDiff persist-credentials: false - name: Verify the pinned backend supports native setup From 764ff3ee745a374f533d6c5ef49e1bfc8b8fa370 Mon Sep 17 00:00:00 2001 From: Sourav Das Date: Sat, 21 Nov 2026 03:56:12 +0530 Subject: [PATCH 277/440] Document the validated Sana backend CI pin --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 634e7fd4..07336226 100644 --- a/README.md +++ b/README.md @@ -85,7 +85,7 @@ application source pair is: | MoDiff | `1239d1cecd12a7318eb263ca17c34d4fc0445d14` | | MoDiff-client | `c561a01395044fd71c1918e95fb9e9709d8e7601` | -CI backend contract: `6485b4cf59f25298e5105491941d9e2e1fcf297c`. +CI backend contract: `a254c87e39aa509d12f8a45d5760e2e0c8bf90fe`. Both CI jobs use this immutable backend revision. It includes shared video stages, conditional reference requirements, the scoped Linux shared-memory LTX From 4e6b1184742304a8e92c1b56bb4d507c9fca8857 Mon Sep 17 00:00:00 2001 From: Sourav Das Date: Sat, 21 Nov 2026 03:34:13 +0530 Subject: [PATCH 278/440] Preserve saved video attention receipts --- .github/workflows/ci.yml | 4 +- README.md | 2 +- scripts/bundle-budget.mjs | 6 +++ scripts/saved-workflow-compatibility.test.mjs | 31 +++++++------ scripts/workflow-library-verify.mjs | 9 ++-- src/studio/savedStudioSpecCompatibility.ts | 45 ++++++++++++++++++- src/workflow/savedAttentionCompatibility.ts | 7 ++- 7 files changed, 82 insertions(+), 22 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index de05c641..757f34b1 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -33,7 +33,7 @@ jobs: with: repository: sdevil7th/MoDiff # Pair R04 damaged-metadata readiness and the existing setup contract. - ref: a254c87e39aa509d12f8a45d5760e2e0c8bf90fe + ref: c1650035b239187addfc2b04964790f71c571961 path: MoDiff persist-credentials: false - name: Verify the pinned backend supports native setup @@ -89,7 +89,7 @@ jobs: with: repository: sdevil7th/MoDiff # Match the immutable backend revision in the Client quality job. - ref: a254c87e39aa509d12f8a45d5760e2e0c8bf90fe + ref: c1650035b239187addfc2b04964790f71c571961 path: MoDiff persist-credentials: false - name: Verify the pinned backend supports native setup diff --git a/README.md b/README.md index 07336226..6b8aa68b 100644 --- a/README.md +++ b/README.md @@ -85,7 +85,7 @@ application source pair is: | MoDiff | `1239d1cecd12a7318eb263ca17c34d4fc0445d14` | | MoDiff-client | `c561a01395044fd71c1918e95fb9e9709d8e7601` | -CI backend contract: `a254c87e39aa509d12f8a45d5760e2e0c8bf90fe`. +CI backend contract: `c1650035b239187addfc2b04964790f71c571961`. Both CI jobs use this immutable backend revision. It includes shared video stages, conditional reference requirements, the scoped Linux shared-memory LTX diff --git a/scripts/bundle-budget.mjs b/scripts/bundle-budget.mjs index 77dd5b64..3fbc2673 100644 --- a/scripts/bundle-budget.mjs +++ b/scripts/bundle-budget.mjs @@ -490,6 +490,9 @@ const SOURCE_LICENSES = new URL('../public/THIRD_PARTY_LICENSES.txt', import.met // 504492/682980/346033 largest/startup/deferred gzip bytes: the reviewed // migration ceilings below still pass with 8/12/304 bytes of headroom. const MAX_STARTUP_CHUNK_GZIP_BYTES = + // Saved attention receipts for five video routes add 267 measured bytes. + // Keep the previous 17-byte headroom and the existing chunk membership. + 267 + // The approved Sana comparison adds 617 measured bytes and keeps 17 bytes of headroom. 617 + // The two approved retained templates add 1643 measured gzip bytes and keep 17 bytes of headroom. @@ -747,6 +750,9 @@ const MAX_STARTUP_CHUNK_GZIP_BYTES = // The same build measures 673359 aggregate startup bytes (+45 over the cap). // Keep 19 bytes of headroom; deferred limits and loading boundaries stay fixed. const MAX_STARTUP_GZIP_BYTES = + // The same receipt compatibility adds 271 measured startup bytes. + // Keep 20 bytes of headroom and the existing deferred limits. + 271 + // Aggregate startup rises by 612 bytes. Deferred limits and chunk membership stay fixed. 612 + // The same build adds 1644 startup gzip bytes and keeps 20 bytes of headroom. diff --git a/scripts/saved-workflow-compatibility.test.mjs b/scripts/saved-workflow-compatibility.test.mjs index e857c2c2..5c92f008 100644 --- a/scripts/saved-workflow-compatibility.test.mjs +++ b/scripts/saved-workflow-compatibility.test.mjs @@ -101,8 +101,12 @@ test('older stages restore tested defaults while explicit attention and unreview }); test('restored managed receipts use current authoring while keeping the original exact Run identity', () => { - const archive = JSON.parse(readFileSync(join(backend, 'data/unconditional-studio-spec-compatibility.v1.json'))); - for (const { specification: previous } of archive.specifications) { + const archives = ['unconditional', 'video-attention'].flatMap( + (kind) => JSON.parse(readFileSync(join(backend, `data/${kind}-studio-spec-compatibility.v1.json`))).specifications, + ); + const manifest = JSON.parse(readFileSync(join(backend, 'data/workflow-library-manifest.json'))); + const paths = new Map(manifest.workflows.map(({ id, graphPath }) => [id, graphPath])); + for (const { specification: previous } of archives) { const { contentHash, ...semantic } = previous; const current = { ...semantic, @@ -121,17 +125,9 @@ test('restored managed receipts use current authoring while keeping the original studioExecutionSpecs: [current], }, ]; - const isDdpm = previous.modelType === 'DDPMPipeline'; - const graph = JSON.parse( - readFileSync( - join( - backend, - 'data/graphs/studio', - isDdpm ? 'ddpm-pipeline' : 'consistency-model-pipeline', - 'unconditional-image.json', - ), - ), - ); + const graphPath = paths.get(`${previous.modelType}:${previous.mode}`); + assert.ok(graphPath, previous.id); + const graph = JSON.parse(readFileSync(join(backend, 'data/graphs', graphPath))); graph.nodes.find(({ data }) => data.action === recipeAction).data.params.attention_backend.value = '_native_math'; const device = graph.nodes.find(({ data }) => data.action === recipeAction).data.params.device.value; const nodes = Object.fromEntries(graph.nodes.map(({ data, id }) => [data.studioRole, id])); @@ -165,7 +161,14 @@ test('restored managed receipts use current authoring while keeping the original const active = studio.getState().graphBinding; assert.deepEqual(active.executionSpec, identity); assert.equal(active.fingerprint, binding.fingerprint); - compareOnlyAttention(exportGraph(graph), exportGraph(restored)); + if (previous.mode === 'unconditional_image') { + compareOnlyAttention(exportGraph(graph), exportGraph(restored)); + } else { + const before = exportGraph(graph); + const after = exportGraph(restored); + assert.equal(attention(after).value, '_native_math'); + assert.equal(canonicalGraphIdentity(after).hash, canonicalGraphIdentity(before).hash); + } assert.equal(specs.exactStudioExecutionSpecForBinding(capabilities, false, active), current); assert.deepEqual(specs.studioExecutionSpecRuntimeReceipt(active, capabilities), { schemaVersion: 1, diff --git a/scripts/workflow-library-verify.mjs b/scripts/workflow-library-verify.mjs index ff2cf42d..b3e87256 100644 --- a/scripts/workflow-library-verify.mjs +++ b/scripts/workflow-library-verify.mjs @@ -408,6 +408,9 @@ function verifyWorkflow(workflow, expectedTier, graphLayout, imageStageContracts revision: '3d4d00fc113225e1040f4d3bec504b6ec750c10c', }, }; + if (pipelineClass === 'AnimateDiffPAGPipeline' && recipeParams.attention_backend?.value !== 'auto') { + throw new Error(`${workflow.id} AnimateDiff PAG graph must use its automatic attention default.`); + } const animateMotion = animateMotionArtifacts[pipelineClass]; if (animateMotion) { const base = pipeline.data.params?.model_id?.value; @@ -423,7 +426,7 @@ function verifyWorkflow(workflow, expectedTier, graphLayout, imageStageContracts motionRevision !== animateMotion.revision || !workflow.requiredArtifacts.includes(base.value) || !workflow.requiredArtifacts.includes(motion.value) || - recipeParams.attention_backend?.value !== '_native_math' || + recipeParams.attention_backend?.value !== 'auto' || recipeParams.attention_components?.value !== '' || recipeParams.vae_tiling?.value !== false ) { @@ -440,7 +443,7 @@ function verifyWorkflow(workflow, expectedTier, graphLayout, imageStageContracts revision !== '1137dacfc2c9c012bed6a0793f4ecf2ca8e7ba01' || !workflow.requiredArtifacts.includes(base.value) || JSON.stringify(quantizationParams.components?.value) !== '[]' || - recipeParams.attention_backend?.value !== '_native_math' || + recipeParams.attention_backend?.value !== 'auto' || recipeParams.attention_components?.value !== '' || recipeParams.vae_slicing?.value !== true || recipeParams.vae_tiling?.value !== false @@ -558,7 +561,7 @@ function verifyWorkflow(workflow, expectedTier, graphLayout, imageStageContracts !workflow.requiredArtifacts.includes(base.value) || JSON.stringify(quantizationParams.components?.value) !== '[]' || recipeParams.offload_mode?.value !== 'sequential_cpu' || - recipeParams.attention_backend?.value !== '_native_math' || + recipeParams.attention_backend?.value !== (imageConditioned ? '_native_math' : 'auto') || recipeParams.attention_components?.value !== '' || recipeParams.vae_slicing?.value !== true || recipeParams.vae_tiling?.value !== false || diff --git a/src/studio/savedStudioSpecCompatibility.ts b/src/studio/savedStudioSpecCompatibility.ts index 17f42fbe..89dcfc52 100644 --- a/src/studio/savedStudioSpecCompatibility.ts +++ b/src/studio/savedStudioSpecCompatibility.ts @@ -5,6 +5,7 @@ import type { StudioGraphBinding } from './types'; const ATTENTION_DEFAULT_UPDATES = [ { modelType: 'DDPMPipeline', + mode: 'unconditional_image', id: 'ddpm-cifar10:unconditional-image:v1', executionProfileId: 'ddpm-cifar10:direct', previousHash: 'studio-spec-v1-6a3b6073', @@ -12,19 +13,61 @@ const ATTENTION_DEFAULT_UPDATES = [ }, { modelType: 'ConsistencyModelPipeline', + mode: 'unconditional_image', id: 'consistency-imagenet64:unconditional-image:v1', executionProfileId: 'consistency-imagenet64:direct', previousHash: 'studio-spec-v1-95990ceb', currentHash: 'studio-spec-v1-f3633720', }, + { + modelType: 'AnimateDiffPipeline', + mode: 'text_to_video', + id: 'animatediff:text-to-video:v1', + executionProfileId: 'animatediff-sd15-v2:direct', + previousHash: 'studio-spec-v1-ccb16ca8', + currentHash: 'studio-spec-v1-47f27245', + }, + { + modelType: 'AnimateDiffPAGPipeline', + mode: 'text_to_video', + id: 'animatediff-pag:text-to-video:v1', + executionProfileId: 'animatediff-sd15-v2-pag:direct', + previousHash: 'studio-spec-v1-e980c1b1', + currentHash: 'studio-spec-v1-9033412a', + }, + { + modelType: 'AnimateLCMPipeline', + mode: 'text_to_video', + id: 'animatelcm:text-to-video:v1', + executionProfileId: 'animatelcm-sd15:direct', + previousHash: 'studio-spec-v1-aba7ebb7', + currentHash: 'studio-spec-v1-c5d9ff8c', + }, + { + modelType: 'CogVideoXPipeline', + mode: 'text_to_video', + id: 'cogvideox-2b:text-to-video:v1', + executionProfileId: 'cogvideox-2b:direct', + previousHash: 'studio-spec-v1-0993e43c', + currentHash: 'studio-spec-v1-407c9ddf', + }, + { + modelType: 'SanaVideoPipeline', + mode: 'text_to_video', + id: 'sana-video-480p:text-to-video:v1', + executionProfileId: 'sana-video-480p:direct', + previousHash: 'studio-spec-v1-b2fedfda', + currentHash: 'studio-spec-v1-3b63a399', + }, ] as const; export function savedAttentionDefaultUpdate(binding: StudioGraphBinding | null) { const receipt = binding?.executionSpec; - if (!receipt || receipt.schemaVersion !== 1 || binding.mode !== 'unconditional_image') return undefined; + if (!receipt || receipt.schemaVersion !== 1) return undefined; return ATTENTION_DEFAULT_UPDATES.find( (update) => update.modelType === binding.modelType && + update.mode === binding.mode && update.id === receipt.id && update.executionProfileId === receipt.executionProfileId && update.previousHash === receipt.contentHash, diff --git a/src/workflow/savedAttentionCompatibility.ts b/src/workflow/savedAttentionCompatibility.ts index c84da35d..38a4dcb0 100644 --- a/src/workflow/savedAttentionCompatibility.ts +++ b/src/workflow/savedAttentionCompatibility.ts @@ -97,7 +97,12 @@ export function restoreManagedAttentionDefault( binding: StudioGraphBinding | null, requested?: string, ) { - if (!binding || !savedAttentionDefaultUpdate(binding) || (requested && requested !== 'auto')) return nodes; + if ( + binding?.mode !== 'unconditional_image' || + !savedAttentionDefaultUpdate(binding) || + (requested && requested !== 'auto') + ) + return nodes; const recipe = nodes.find((node) => isRecord(node) && node.id === binding.nodes.diffusersRecipe); const loader = nodes.find((node) => isRecord(node) && node.id === binding.nodes.diffusersImagePipeline); if ( From 72cdad983a73c3843e243e73092b8ee2c4726416 Mon Sep 17 00:00:00 2001 From: Sourav Das Date: Sat, 21 Nov 2026 04:54:54 +0530 Subject: [PATCH 279/440] Pin the host-independent backend test checkpoint --- .github/workflows/ci.yml | 4 ++-- README.md | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 757f34b1..131da54e 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -33,7 +33,7 @@ jobs: with: repository: sdevil7th/MoDiff # Pair R04 damaged-metadata readiness and the existing setup contract. - ref: c1650035b239187addfc2b04964790f71c571961 + ref: eb151722a3e02c8feae6d97d1cc8046463afcc6e path: MoDiff persist-credentials: false - name: Verify the pinned backend supports native setup @@ -89,7 +89,7 @@ jobs: with: repository: sdevil7th/MoDiff # Match the immutable backend revision in the Client quality job. - ref: c1650035b239187addfc2b04964790f71c571961 + ref: eb151722a3e02c8feae6d97d1cc8046463afcc6e path: MoDiff persist-credentials: false - name: Verify the pinned backend supports native setup diff --git a/README.md b/README.md index 6b8aa68b..c1789d8e 100644 --- a/README.md +++ b/README.md @@ -85,7 +85,7 @@ application source pair is: | MoDiff | `1239d1cecd12a7318eb263ca17c34d4fc0445d14` | | MoDiff-client | `c561a01395044fd71c1918e95fb9e9709d8e7601` | -CI backend contract: `c1650035b239187addfc2b04964790f71c571961`. +CI backend contract: `eb151722a3e02c8feae6d97d1cc8046463afcc6e`. Both CI jobs use this immutable backend revision. It includes shared video stages, conditional reference requirements, the scoped Linux shared-memory LTX From d2d21521db4146f541653a8f5336657210db9d6f Mon Sep 17 00:00:00 2001 From: Sourav Das Date: Sat, 21 Nov 2026 05:12:58 +0530 Subject: [PATCH 280/440] Carry rounded seconds in progress durations --- scripts/run-activity.test.mjs | 44 +++++++++++++++++++ src/components/RunQueuePanel.tsx | 17 ++----- src/components/RunSessionShelf.tsx | 17 ++----- src/studio/executionProgress.ts | 4 +- src/studio/modelInstall.ts | 7 +-- src/utils/formatExecutionTime.ts | 14 ++++++ tests/e2e/studio-mocked/studio-mocked.spec.ts | 16 +++++++ 7 files changed, 86 insertions(+), 33 deletions(-) diff --git a/scripts/run-activity.test.mjs b/scripts/run-activity.test.mjs index 3e601042..3222e3ed 100644 --- a/scripts/run-activity.test.mjs +++ b/scripts/run-activity.test.mjs @@ -7,6 +7,8 @@ import { createServer } from 'vite'; const ROOT = path.resolve(path.dirname(fileURLToPath(import.meta.url)), '..'); let activityModule; +let durationModule; +let modelInstallModule; let outputContracts; let flowStoreModule; let issueStoreModule; @@ -54,6 +56,46 @@ test('Queue accepts batch upscale frame progress through the existing phase cont assert.match(detail, /ETA/u); }); +test('Session and queue duration labels carry rounded seconds and preserve short or missing values', () => { + const { formatRunDuration } = durationModule; + for (const [milliseconds, expected] of [ + [0, '0ms'], + [425, '425ms'], + [2500, '2.5s'], + [60000, '1:00'], + [1559499, '25:59'], + [1559500, '26:00'], + [3599499, '59:59'], + [3599500, '60:00'], + [undefined, '-'], + [Number.NaN, '-'], + ]) { + assert.equal(formatRunDuration(milliseconds), expected); + } +}); + +test('Run progress details and download estimates carry across minute and hour boundaries', () => { + const detail = activityModule.runActivityDetailForTask({ + status: 'running', + current_step: 1, + total_steps: 2, + elapsed_seconds: 1559.5, + eta_seconds: 119.5, + phase_timings: { component_loading: 3599.5 }, + }); + assert.match(detail, /Elapsed 26m 0s · ETA 2m 0s · Phase timings: component loading 60m 0s/u); + assert.match(activityModule.runActivityDetailForTask({ status: 'running', elapsed_seconds: 0 }), /Elapsed 0s/u); + assert.doesNotMatch(activityModule.runActivityDetailForTask({ status: 'running' }), /Elapsed/u); + + const { formatDownloadEta, formatDownloadDuration } = modelInstallModule; + assert.equal(formatDownloadEta(7140), '1 hr 59 min'); + assert.equal(formatDownloadEta(7199.5), '2 hr 0 min'); + assert.equal(formatDownloadEta(7200), '2 hr 0 min'); + assert.equal(formatDownloadDuration(1, 7200.5), '2 hr 0 min'); + assert.equal(formatDownloadEta(0), ''); + assert.equal(formatDownloadEta(undefined), ''); +}); + before(async () => { const storage = new Map(); globalThis.localStorage = { @@ -86,6 +128,8 @@ before(async () => { appType: 'custom', }); activityModule = await server.ssrLoadModule('/src/studio/runActivity.ts'); + durationModule = await server.ssrLoadModule('/src/utils/formatExecutionTime.ts'); + modelInstallModule = await server.ssrLoadModule('/src/studio/modelInstall.ts'); outputContracts = await server.ssrLoadModule('/src/studio/outputContracts.ts'); flowStoreModule = await server.ssrLoadModule('/src/stores/useFlowStore.ts'); issueStoreModule = await server.ssrLoadModule('/src/stores/useRunIssueStore.ts'); diff --git a/src/components/RunQueuePanel.tsx b/src/components/RunQueuePanel.tsx index 159cbcad..88971a11 100644 --- a/src/components/RunQueuePanel.tsx +++ b/src/components/RunQueuePanel.tsx @@ -16,6 +16,7 @@ import { } from '../studio/runActivity'; import { useSettingsStore } from '../stores/useSettingsStore'; import { cx } from '../utils/classNames'; +import { formatRunDuration } from '../utils/formatExecutionTime'; type QueueButtonProps = { children: string; @@ -33,20 +34,8 @@ function QueueButton({ children, disabled, icon, onClick, testId }: QueueButtonP ); } -function formatDuration(ms: number | undefined) { - if (typeof ms !== 'number' || !Number.isFinite(ms)) return '-'; - if (ms < 1000) return `${Math.max(0, Math.round(ms))}ms`; - const seconds = ms / 1000; - if (seconds < 60) return `${seconds.toFixed(seconds < 10 ? 1 : 0)}s`; - const minutes = Math.floor(seconds / 60); - const remainder = Math.round(seconds % 60) - .toString() - .padStart(2, '0'); - return `${minutes}:${remainder}`; -} - function formatSeconds(seconds: number | null | undefined) { - return typeof seconds === 'number' && Number.isFinite(seconds) ? formatDuration(seconds * 1000) : null; + return typeof seconds === 'number' && Number.isFinite(seconds) ? formatRunDuration(seconds * 1000) : null; } function sessionRunDuration(run: SessionRun) { @@ -317,7 +306,7 @@ export default function RunQueuePanel() { - {formatDuration(sessionRunDuration(run))} + {formatRunDuration(sessionRunDuration(run))} diff --git a/src/components/RunSessionShelf.tsx b/src/components/RunSessionShelf.tsx index 78093142..af2aaa3c 100644 --- a/src/components/RunSessionShelf.tsx +++ b/src/components/RunSessionShelf.tsx @@ -16,6 +16,7 @@ import { hasHfDownloadFailed, isHfDownloadActive, isHfDownloadComplete } from '. import { ProgressBar } from '../ui/ProgressBar'; import { ModiffButton, ModiffTooltip } from '../ui'; import { cx } from '../utils/classNames'; +import { formatRunDuration } from '../utils/formatExecutionTime'; import { ModelDownloadProgressCard } from './ModelDownloadProgressCard'; import { openRunActivity, @@ -28,18 +29,6 @@ import { executionProgressDetail, executionProgressFrom } from '../studio/execut const TERMINAL_STATUSES = new Set(['completed', 'failed', 'cancelled']); -function formatDuration(ms: number | undefined) { - if (typeof ms !== 'number' || !Number.isFinite(ms)) return '-'; - if (ms < 1000) return `${Math.max(0, Math.round(ms))}ms`; - const seconds = ms / 1000; - if (seconds < 60) return `${seconds.toFixed(seconds < 10 ? 1 : 0)}s`; - const minutes = Math.floor(seconds / 60); - const remainder = Math.round(seconds % 60) - .toString() - .padStart(2, '0'); - return `${minutes}:${remainder}`; -} - function runDuration(run: SessionRun, now: number) { if (typeof run.durationMs === 'number') return run.durationMs; if (run.status === 'running' && run.startedAtMs) return now - run.startedAtMs; @@ -73,7 +62,7 @@ function RunCard({ now, onDismiss, run }: { now: number; onDismiss: () => void; const label = runActivityLabelForTask(run, run.task_id || run.id); const progressDetail = (!terminal && executionProgressDetail(executionProgressFrom(run))) || - `${label} · ${statusLabel(run)} · ${formatDuration(duration)}`; + `${label} · ${statusLabel(run)} · ${formatRunDuration(duration)}`; return (
@@ -112,7 +101,7 @@ function RunCard({ now, onDismiss, run }: { now: number; onDismiss: () => void; - {formatDuration(duration)} + {formatRunDuration(duration)} {active ? ( diff --git a/src/studio/executionProgress.ts b/src/studio/executionProgress.ts index aa402a79..069bef94 100644 --- a/src/studio/executionProgress.ts +++ b/src/studio/executionProgress.ts @@ -1,5 +1,6 @@ import type { ExecutionProgress } from './types'; import { formatResourceBytes, parseRuntimeResourceSnapshot } from './runtimeResources'; +import { splitRoundedSeconds } from '../utils/formatExecutionTime'; type ProgressLike = { status?: ExecutionProgress['status']; @@ -59,8 +60,7 @@ export function executionProgressFrom(value: ProgressLike): ExecutionProgress { function duration(value: number | undefined) { if (!finite(value)) return null; if (value < 60) return `${Math.round(value)}s`; - const minutes = Math.floor(value / 60); - const seconds = Math.round(value % 60); + const { minutes, seconds } = splitRoundedSeconds(value); return `${minutes}m ${seconds}s`; } diff --git a/src/studio/modelInstall.ts b/src/studio/modelInstall.ts index 6dba33f4..1597fcae 100644 --- a/src/studio/modelInstall.ts +++ b/src/studio/modelInstall.ts @@ -90,9 +90,10 @@ export function formatDownloadBytes(bytes?: number) { export function formatDownloadEta(seconds?: number) { if (typeof seconds !== 'number' || !Number.isFinite(seconds) || seconds <= 0) return ''; if (seconds < 60) return `${Math.ceil(seconds)} sec`; - if (seconds < 3600) return `${Math.ceil(seconds / 60)} min`; - const hours = Math.floor(seconds / 3600); - const minutes = Math.ceil((seconds % 3600) / 60); + const totalMinutes = Math.ceil(seconds / 60); + if (seconds < 3600) return `${totalMinutes} min`; + const hours = Math.floor(totalMinutes / 60); + const minutes = totalMinutes % 60; return `${hours} hr ${minutes} min`; } diff --git a/src/utils/formatExecutionTime.ts b/src/utils/formatExecutionTime.ts index 573ee624..34f47266 100644 --- a/src/utils/formatExecutionTime.ts +++ b/src/utils/formatExecutionTime.ts @@ -33,3 +33,17 @@ export function formatExecutionTime(timeInSeconds: number): string { const minutes = Math.floor((timeInSeconds % 3600) / 60); return `${hours}h ${minutes}m`; } + +export function splitRoundedSeconds(seconds: number) { + const roundedSeconds = Math.round(seconds); + return { minutes: Math.floor(roundedSeconds / 60), seconds: roundedSeconds % 60 }; +} + +export function formatRunDuration(milliseconds: number | undefined): string { + if (typeof milliseconds !== 'number' || !Number.isFinite(milliseconds)) return '-'; + if (milliseconds < 1000) return `${Math.max(0, Math.round(milliseconds))}ms`; + const seconds = milliseconds / 1000; + if (seconds < 60) return `${seconds.toFixed(seconds < 10 ? 1 : 0)}s`; + const rounded = splitRoundedSeconds(seconds); + return `${rounded.minutes}:${String(rounded.seconds).padStart(2, '0')}`; +} diff --git a/tests/e2e/studio-mocked/studio-mocked.spec.ts b/tests/e2e/studio-mocked/studio-mocked.spec.ts index 316f4b70..389c02ed 100644 --- a/tests/e2e/studio-mocked/studio-mocked.spec.ts +++ b/tests/e2e/studio-mocked/studio-mocked.spec.ts @@ -734,6 +734,22 @@ test('collapsed canvas activity retains active work, failures and explicit downl await shelf.getByRole('button', { name: 'Show session activity', exact: true }).click(); await expect(page.getByTestId('session-run-activity-running')).toBeVisible(); await expect(page.getByTestId('session-download-example/existing-download')).toBeVisible(); + await page.evaluate(() => { + window.__MODIFF_E2E__!.sendWebsocketMessage({ + type: 'task_completed', + task_id: 'activity-running', + name: 'Current work', + started_at: 1_790_000_000, + completed_at: 1_790_001_559.6, + current: null, + queued: {}, + }); + }); + await expect(page.getByTestId('session-run-activity-running').getByText('26:00', { exact: true })).toBeVisible(); + await page.getByTestId('workspace-tab-queue').click(); + await expect( + page.getByTestId('queue-session-run-activity-running').getByText('26:00', { exact: true }), + ).toBeVisible(); expect(mutations).toBe(0); }); From f29b5c8575ffdcd00b7d8dcfb7faee84f5bcd2ef Mon Sep 17 00:00:00 2001 From: Sourav Das Date: Sat, 21 Nov 2026 05:35:12 +0530 Subject: [PATCH 281/440] Pin the paired run duration bundle --- .github/workflows/ci.yml | 4 ++-- README.md | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 131da54e..15de255c 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -33,7 +33,7 @@ jobs: with: repository: sdevil7th/MoDiff # Pair R04 damaged-metadata readiness and the existing setup contract. - ref: eb151722a3e02c8feae6d97d1cc8046463afcc6e + ref: 86c2e281917afaf734c48c31f7b79c5ec1cfa0b2 path: MoDiff persist-credentials: false - name: Verify the pinned backend supports native setup @@ -89,7 +89,7 @@ jobs: with: repository: sdevil7th/MoDiff # Match the immutable backend revision in the Client quality job. - ref: eb151722a3e02c8feae6d97d1cc8046463afcc6e + ref: 86c2e281917afaf734c48c31f7b79c5ec1cfa0b2 path: MoDiff persist-credentials: false - name: Verify the pinned backend supports native setup diff --git a/README.md b/README.md index c1789d8e..0c82564d 100644 --- a/README.md +++ b/README.md @@ -85,7 +85,7 @@ application source pair is: | MoDiff | `1239d1cecd12a7318eb263ca17c34d4fc0445d14` | | MoDiff-client | `c561a01395044fd71c1918e95fb9e9709d8e7601` | -CI backend contract: `eb151722a3e02c8feae6d97d1cc8046463afcc6e`. +CI backend contract: `86c2e281917afaf734c48c31f7b79c5ec1cfa0b2`. Both CI jobs use this immutable backend revision. It includes shared video stages, conditional reference requirements, the scoped Linux shared-memory LTX From 0236af2ec78d56e07a864645b934ff9e1e1c7f66 Mon Sep 17 00:00:00 2001 From: Sourav Das Date: Sat, 21 Nov 2026 08:15:38 +0530 Subject: [PATCH 282/440] Allow the full lyric graph time to close the picker --- tests/e2e/studio-mocked/studio-mocked.spec.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/e2e/studio-mocked/studio-mocked.spec.ts b/tests/e2e/studio-mocked/studio-mocked.spec.ts index 389c02ed..d57e9285 100644 --- a/tests/e2e/studio-mocked/studio-mocked.spec.ts +++ b/tests/e2e/studio-mocked/studio-mocked.spec.ts @@ -39584,7 +39584,8 @@ async function openAudioStageTemplate( const terms = page.getByRole('dialog', { name: 'Review model terms', exact: true }); await terms.getByRole('button', { name: 'I have reviewed and agree \u2014 Create graph', exact: true }).click(); } - await expect(browser).toHaveCount(0); + // The nine-scene lyric recipe builds both branches and lays out the full graph before closing. + await expect(browser).toHaveCount(0, templateId === 'ace_step_lyric_music_video' ? { timeout: 30_000 } : undefined); } await expect .poll(() => From 32f5b62286c601d4f2504e59391cb39985cffa5c Mon Sep 17 00:00:00 2001 From: Sourav Das Date: Sat, 21 Nov 2026 10:22:44 +0530 Subject: [PATCH 283/440] Review Qwen Image 2.1 Turbo terms and authoring --- scripts/bundle-budget.mjs | 4 + scripts/image-model-usage-policies.test.mjs | 28 +++- scripts/operation-authoring-recipes.test.mjs | 149 ++++++++++++++++++- src/studio/modelUsagePolicies.ts | 16 ++ 4 files changed, 191 insertions(+), 6 deletions(-) diff --git a/scripts/bundle-budget.mjs b/scripts/bundle-budget.mjs index 3fbc2673..95c209ea 100644 --- a/scripts/bundle-budget.mjs +++ b/scripts/bundle-budget.mjs @@ -490,6 +490,8 @@ const SOURCE_LICENSES = new URL('../public/THIRD_PARTY_LICENSES.txt', import.met // 504492/682980/346033 largest/startup/deferred gzip bytes: the reviewed // migration ceilings below still pass with 8/12/304 bytes of headroom. const MAX_STARTUP_CHUNK_GZIP_BYTES = + // The pinned Qwen 2.1 Turbo terms add 125 gzip bytes (522009 -> 522134). + 125 + // Saved attention receipts for five video routes add 267 measured bytes. // Keep the previous 17-byte headroom and the existing chunk membership. 267 + @@ -750,6 +752,8 @@ const MAX_STARTUP_CHUNK_GZIP_BYTES = // The same build measures 673359 aggregate startup bytes (+45 over the cap). // Keep 19 bytes of headroom; deferred limits and loading boundaries stay fixed. const MAX_STARTUP_GZIP_BYTES = + // The pinned Qwen 2.1 Turbo terms add 126 startup gzip bytes (700494 -> 700620). + 126 + // The same receipt compatibility adds 271 measured startup bytes. // Keep 20 bytes of headroom and the existing deferred limits. 271 + diff --git a/scripts/image-model-usage-policies.test.mjs b/scripts/image-model-usage-policies.test.mjs index 3217e97d..ac026942 100644 --- a/scripts/image-model-usage-policies.test.mjs +++ b/scripts/image-model-usage-policies.test.mjs @@ -1,10 +1,12 @@ import assert from 'node:assert/strict'; import { createHash } from 'node:crypto'; import { readFile } from 'node:fs/promises'; +import { resolve } from 'node:path'; import { after, before, test } from 'node:test'; import { createServer } from 'vite'; let server, policies, profiles, templates, artifactCatalog, captionProvenance; +const backend = resolve(process.env.MODIFF_BACKEND_DIR || '../MoDiff'); before(async () => { globalThis.localStorage = { getItem: () => null, setItem() {}, removeItem() {} }; @@ -19,14 +21,34 @@ before(async () => { policies = await server.ssrLoadModule('/src/studio/modelUsagePolicies.ts'); profiles = await server.ssrLoadModule('/src/studio/modelProfiles.ts'); templates = await server.ssrLoadModule('/src/studio/templates.ts'); - artifactCatalog = JSON.parse(await readFile('../MoDiff/data/model-artifact-catalog.json', 'utf8')); + artifactCatalog = JSON.parse(await readFile(resolve(backend, 'data/model-artifact-catalog.json'), 'utf8')); captionProvenance = JSON.parse( - await readFile('../MoDiff/data/cosmos3-super-t2i-publisher-caption-provenance.v1.json', 'utf8'), + await readFile(resolve(backend, 'data/cosmos3-super-t2i-publisher-caption-provenance.v1.json'), 'utf8'), ); }); after(async () => server?.close()); +test('Qwen Image 2.1 Turbo requires acknowledgement of its pinned public checkpoint', () => { + const repository = 'Qwen/Qwen-Image-2.1-Turbo'; + const entry = artifactCatalog.models.find(({ modelType }) => modelType === 'QwenImage21TurboPipeline'); + assert.equal(entry.baseRepo, repository); + assert.equal(entry.baseLicense, 'qwen-research'); + const [policy] = policies.acknowledgementRequiredForRepository(repository, entry.baseRevision); + assert.equal(policy.repository, repository); + assert.equal(policy.useScope, 'license_review_required'); + assert.equal(policy.access, 'public'); + assert.equal(policy.reviewedRevision, 'fc13ba1986fcb905854dc8de2f52eee395f49b5b'); + assert.equal(policy.reviewedRevision, entry.baseRevision); + assert.equal(policy.termsUrl, `https://huggingface.co/${repository}/blob/${entry.baseRevision}/LICENSE`); + assert.match(policy.shortSummary, /non-commercial research and evaluation/u); + assert.equal(policies.repositoryRequiresHuggingFaceGate(repository), false); + assert.deepEqual(policies.acknowledgementRequiredForRepository('Qwen/Qwen-Image-2.1'), []); + const key = policies.usagePolicyAcknowledgementKey([policy]); + assert.ok(key); + assert.notEqual(key, policies.usagePolicyAcknowledgementKey([{ ...policy, revision: 'a'.repeat(40) }])); +}); + test('LTX-2.5 Full has separate revision-bound model terms and gated access', () => { const repo = 'Lightricks/LTX-2.5-Diffusers'; const policy = policies.usagePolicyForRepository(repo); @@ -90,7 +112,7 @@ test('Cosmos Super uses its public OpenMDW terms while mandatory Guardrail keeps assert.equal(policy.reviewedRevision, captionProvenance.revision); assert.equal(pin.license, 'openmdw-1.1'); assert.equal(policy.termsUrl, captionProvenance.publisherLicenseUrl); - const license = await readFile(`../MoDiff/${captionProvenance.licenseFile}`); + const license = await readFile(resolve(backend, captionProvenance.licenseFile)); assert.equal(createHash('sha256').update(license).digest('hex'), captionProvenance.licenseFileSha256); assert.equal(policy.access, 'public'); assert.equal(policy.useScope, 'commercial_allowed'); diff --git a/scripts/operation-authoring-recipes.test.mjs b/scripts/operation-authoring-recipes.test.mjs index 116649ca..fe945d2d 100644 --- a/scripts/operation-authoring-recipes.test.mjs +++ b/scripts/operation-authoring-recipes.test.mjs @@ -34,6 +34,27 @@ const auxiliarySelections = [ }, })), ]; +const qwenImage21Models = [ + { + pipelineClass: 'QwenImage21Pipeline', + executionProfileId: 'qwen-image-21:direct', + repository: 'Qwen/Qwen-Image-2.1', + revision: '790c92633540aa0cb11d9abf19eb46d861714758', + }, + { + pipelineClass: 'QwenImage21TurboPipeline', + executionProfileId: 'qwen-image-21-turbo:direct', + repository: 'Qwen/Qwen-Image-2.1-Turbo', + revision: 'fc13ba1986fcb905854dc8de2f52eee395f49b5b', + }, +]; +const qwenImage21Tasks = ['text_to_image', 'edit_image', 'multi_image_reference_edit']; +const qwenImage21Selections = qwenImage21Models.flatMap(({ pipelineClass, executionProfileId }) => + qwenImage21Tasks.map((task) => ({ + id: `${pipelineClass}:${task}`, + selection: { pipelineClass, task, executionProfileId }, + })), +); before(async () => { globalThis.window = { location: { origin: 'http://127.0.0.1:5191' } }; server = await createServer({ @@ -46,14 +67,18 @@ before(async () => { requests = await server.ssrLoadModule('/src/workflow/operationStarterRequest.ts'); hashes = await server.ssrLoadModule('/src/studio/stableHash.ts'); const operations = await server.ssrLoadModule('/src/workflow/operationContracts.ts'); - const backend = path.resolve('../MoDiff'); + const backend = path.resolve(process.env.MODIFF_BACKEND_DIR || '../MoDiff'); const python = process.env.MODIFF_BACKEND_PYTHON || path.join(backend, '.venv', 'Scripts/python.exe'); fixture = JSON.parse( - execFileSync(python, [path.resolve('scripts/template-operation-fixtures.py')], { + execFileSync(python, [path.resolve('scripts/template-operation-fixtures.py'), '--mock-cuda'], { cwd: backend, encoding: 'utf8', maxBuffer: 64 * 1024 * 1024, - input: JSON.stringify([{ id: 'z_image_quick_concept', selection }, ...auxiliarySelections]), + input: JSON.stringify([ + { id: 'z_image_quick_concept', selection }, + ...auxiliarySelections, + ...qwenImage21Selections, + ]), }), ); contracts = operations.parseOperationContracts( @@ -62,6 +87,124 @@ before(async () => { ); }); +test('the generic Qwen Image 2.1 workflows discover and switch to the exact Turbo model', async (t) => { + const { parsePipelineSupport } = await server.ssrLoadModule('/src/workflow/operationCatalog.ts'); + const { parseStudioModelCapabilities } = await server.ssrLoadModule('/src/stores/useNodeStore.ts'); + const { parseWorkflowModelDescriptors, workflowChoices } = await server.ssrLoadModule( + '/src/workflow/workflowChoices.ts', + ); + const { createWorkflowDraft } = await server.ssrLoadModule('/src/workflow/workflowDraft.ts'); + const { useFlowStore } = await server.ssrLoadModule('/src/stores/useFlowStore.ts'); + const { buildWorkflowPackage, parseWorkflowPackage } = await server.ssrLoadModule('/src/studio/workflowPackage.ts'); + const { DEFAULT_STUDIO_FORM } = await server.ssrLoadModule('/src/studio/modelProfiles.ts'); + const { operationFieldValue, planOperationChange } = await server.ssrLoadModule( + '/src/workflow/operationAuthoring.ts', + ); + const { groupNewOperationGraph, unpackVisualOperationGroups } = await server.ssrLoadModule( + '/src/workflow/visualOperationGroups.ts', + ); + const { publicPayload, recipes, registry } = fixture; + const support = parsePipelineSupport( + publicPayload.pipelineSupport, + publicPayload.pipelineSupportSchemaVersion, + contracts, + ); + const { capabilities } = parseStudioModelCapabilities(publicPayload); + const descriptors = parseWorkflowModelDescriptors(publicPayload, support, capabilities); + const choices = workflowChoices(support, capabilities, [], [], null, descriptors); + const [, turboModel] = qwenImage21Models; + const turboDescriptor = descriptors.find(({ profileId }) => profileId === turboModel.executionProfileId); + const artifact = turboDescriptor?.inventory?.nativeSelection; + assert.equal(artifact?.repo, turboModel.repository); + assert.equal(artifact?.revision, turboModel.revision); + assert.equal(artifact.downloadFiles.length, 18); + assert.ok(artifact.downloadFiles.includes('model_index.json')); + assert.ok(artifact.downloadFiles.includes('LICENSE')); + assert.equal(turboDescriptor.supportsLora, false); + const leaf = (draft, action) => + unpackVisualOperationGroups(draft).graph.nodes.find((node) => node.data.action === action); + const exportGraph = (sourceGraph) => + useFlowStore.getState().exportGraph('qwen-turbo-contract', undefined, { sourceGraph, randomizeSeeds: false }); + const checkOwner = (owner, model) => { + assert.equal(owner.data.module, 'modules.DiffusersImage'); + assert.deepEqual(operationFieldValue(owner.data.params.model_id), { source: 'hub', value: model.repository }); + assert.equal(operationFieldValue(owner.data.params.revision), model.revision); + }; + + for (const task of qwenImage21Tasks) { + await t.test(task, () => { + const starters = qwenImage21Models.map((model) => { + const choice = choices.find( + ({ profileId, task: mode }) => profileId === model.executionProfileId && mode === task, + ); + assert.equal(choice?.repo, model.repository); + const row = recipes.find(({ id }) => id === `${model.pipelineClass}:${task}`); + return requests.parseOperationStarter(row.starter, model.pipelineClass, task, contracts, { + executionProfileId: model.executionProfileId, + }); + }); + const [baseModel] = qwenImage21Models; + const [baseStarter, turboStarter] = starters; + const base = createWorkflowDraft(baseStarter, registry).graph; + const owner = leaf(base, 'LoadPipeline'); + checkOwner(owner, baseModel); + const action = task === 'text_to_image' ? 'Generate' : 'Edit'; + const freshTurbo = leaf(createWorkflowDraft(turboStarter, registry).graph, action); + assert.equal(freshTurbo.data.module, 'modules.DiffusersImage'); + const turboFields = freshTurbo.data.params; + assert.equal(operationFieldValue(turboFields.num_inference_steps), 8); + assert.equal(operationFieldValue(turboFields.guidance_scale), 1); + assert.equal(turboFields.num_inference_steps.hidden, true); + assert.equal(turboFields.negative_prompt?.hidden, true); + assert.equal(turboFields.sigmas?.hidden, true); + assert.equal(turboFields.guidance_scale.hidden, true); + + const request = 'Painted porcelain on an oak bench, photographed under soft window light.'; + const source = unpackVisualOperationGroups(base).graph; + const generation = source.nodes.find((node) => node.data.action === action); + generation.data.params.prompt.value = request; + generation.data.params.guidance_scale.value = 5; + generation.data.params.negative_prompt.value = 'harsh shadows'; + generation.data.params.num_inference_steps.value = 22; + const fileInputs = task === 'edit_image' ? ['first.png'] : ['first.png', 'second.png']; + if (task !== 'text_to_image') leaf(source, 'Load').data.params.file.value = fileInputs; + const authored = groupNewOperationGraph(source); + const turbo = planOperationChange(authored, leaf(authored, 'LoadPipeline').id, turboStarter, { + replaceModel: true, + baseline: baseStarter, + }).graph; + const turboOwner = leaf(turbo, 'LoadPipeline'); + const turboGeneration = leaf(turbo, action); + checkOwner(turboOwner, turboModel); + assert.equal(operationFieldValue(turboGeneration.data.params.prompt), request); + assert.equal(operationFieldValue(turboGeneration.data.params.num_inference_steps), 8); + assert.equal(operationFieldValue(turboGeneration.data.params.guidance_scale), 1); + assert.equal(operationFieldValue(turboGeneration.data.params.negative_prompt), ''); + if (task !== 'text_to_image') + assert.deepEqual(operationFieldValue(leaf(turbo, 'Load').data.params.file), fileInputs); + + const savedGraph = { ...turbo, viewport: { x: 0, y: 0, zoom: 1 } }; + const apiGraph = exportGraph(savedGraph); + const saved = buildWorkflowPackage({ + apiGraph, + form: { ...DEFAULT_STUDIO_FORM, mode: task }, + graph: savedGraph, + workflowModelType: turboModel.pipelineClass, + }); + const imported = parseWorkflowPackage(JSON.parse(JSON.stringify(saved))); + assert.ok(imported); + assert.deepEqual(exportGraph(imported.snapshot), apiGraph); + + const restored = planOperationChange(turbo, turboOwner.id, baseStarter, { + replaceModel: true, + baseline: turboStarter, + }).graph; + checkOwner(leaf(restored, 'LoadPipeline'), baseModel); + assert.equal(operationFieldValue(leaf(restored, action).data.params.prompt), request); + }); + } +}); + test('protects auxiliary model identity while keeping declared Qwen and SDXL Control bindings', async (t) => { const { STUDIO_TEMPLATES } = await server.ssrLoadModule('/src/studio/templates.ts'); const { DEFAULT_STUDIO_FORM } = await server.ssrLoadModule('/src/studio/modelProfiles.ts'); diff --git a/src/studio/modelUsagePolicies.ts b/src/studio/modelUsagePolicies.ts index 08225b5e..598b827e 100644 --- a/src/studio/modelUsagePolicies.ts +++ b/src/studio/modelUsagePolicies.ts @@ -74,6 +74,9 @@ export type ResolvedModelUsagePolicy = ModelUsagePolicy & { const UNDECLARED_MOTION_RIGHTS_NOTICE = 'This snapshot does not declare a license for its motion weights. Independently establish authorization before use; MoDiff grants no rights.'; +const QWEN_IMAGE_21_TURBO_REPO = 'Qwen/Qwen-Image-2.1-Turbo'; +const QWEN_IMAGE_21_TURBO_REVISION = 'fc13ba1986fcb905854dc8de2f52eee395f49b5b'; + const fluxDevPolicy = ( repository: string, reviewedRevision: string, @@ -134,6 +137,19 @@ function hunyuanVideo15Policy( * repository name, a license substring, a GPU type, or a template id. */ export const MODEL_USAGE_POLICIES: Readonly> = Object.freeze({ + [QWEN_IMAGE_21_TURBO_REPO]: { + id: 'qwen-research-license:qwen-image-2.1-turbo', + repository: QWEN_IMAGE_21_TURBO_REPO, + useScope: 'license_review_required', + acknowledgementRequired: true, + shortSummary: + 'The Qwen Research License is limited to non-commercial research and evaluation. Commercial use requires a separate license.', + termsUrl: `https://huggingface.co/${QWEN_IMAGE_21_TURBO_REPO}/blob/${QWEN_IMAGE_21_TURBO_REVISION}/LICENSE`, + access: 'public', + reviewedRevision: QWEN_IMAGE_21_TURBO_REVISION, + policyVersion: '2026-11-21', + reviewedAt: '2026-11-21', + }, [FLUX2_DEV_REPO]: { id: 'flux-non-commercial-license-v2.1:flux2-dev', repository: FLUX2_DEV_REPO, From 19ac7c834436178909c7b011bf0f5120fe8c25dd Mon Sep 17 00:00:00 2001 From: Sourav Das Date: Sat, 21 Nov 2026 12:22:02 +0530 Subject: [PATCH 284/440] Use ordinary cards for whole-pipeline generation stages --- AGENTS.md | 8 ++ docs/cluster-engineering-lessons.md | 10 ++ docs/developer-first-node-ux.md | 6 + docs/modiff-client-architecture.md | 7 +- scripts/bundle-budget.mjs | 7 ++ scripts/image-stage-groups.test.mjs | 25 ++++ scripts/node-presentation.test.mjs | 61 +++++++++ scripts/video-stage-groups.test.mjs | 14 ++- ...workflow-library-canonical-export.test.mjs | 116 +++++++++++++++++- src/components/StageNodeControls.tsx | 8 +- src/stores/flowGraphMutations.ts | 5 + src/studio/controlledWorkflowContracts.ts | 5 + src/studio/graphNodeControls.ts | 18 ++- src/studio/nodeCatalog.ts | 21 +++- src/workflow/modelSetupAdapters.ts | 7 +- src/workflow/modelSetupControlPresentation.ts | 83 +++++++++++++ src/workflow/nodePresentation.ts | 45 ++++++- src/workflow/operationCatalog.ts | 12 +- src/workflow/visualOperationGroups.ts | 43 ++++--- src/workflow/wholePipelineStage.ts | 35 ++++++ tests/e2e/studio-mocked/studio-mocked.spec.ts | 35 ++++++ 21 files changed, 527 insertions(+), 44 deletions(-) create mode 100644 src/workflow/modelSetupControlPresentation.ts create mode 100644 src/workflow/wholePipelineStage.ts diff --git a/AGENTS.md b/AGENTS.md index 4845e826..123fb8ed 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -25,6 +25,14 @@ These rules apply to Codex, Copilot-style agents, and any AI tool editing this r - Keep `src/App.css` limited to global browser rules, React Flow internals, and behavior hooks such as `modiff-field`, `nodrag`, and `nowheel`. - Backend-provided `style` objects must go through the MoDiff style sanitizer and stay limited to safe layout properties. +## Generic Workflow Stages + +- Reuse a task- or modality-generic node for the same user-visible job across models and workflows. Put model-specific execution and schema differences in the declared backend adapter. +- Use an ordinary node for a stage with one executable action. Expose the inputs, effective controls and outputs the user needs. Fold internal preparation or decoding into a stage only when it shares one owner and its intermediate result has no independent consumer. +- Reserve new Blocks for meaningful typed boundaries, such as storyboard shots, reusable compositions, loops or genuine nested control flow. Preserve existing saved Block interfaces and registered definition hashes. +- Label ports by role, including Source, Mask, Control, and First or Last Frame. Show one editor per effective setting and retain the saved fallback when a typed connection supplies the value. Choose a shared default only after it works in both the fresh workflow and the corresponding saved workflow. +- Test the canvas and the ordered executable graph separately. Compare controls, typed bindings, model switching, and save/reopen. A presentation-only change preserves the executable graph and reuses the original run evidence. + ## Component Rules - Feature components should describe behavior and layout, not recreate visual primitives. diff --git a/docs/cluster-engineering-lessons.md b/docs/cluster-engineering-lessons.md index eac44fce..700cac87 100644 --- a/docs/cluster-engineering-lessons.md +++ b/docs/cluster-engineering-lessons.md @@ -30,6 +30,16 @@ unreasonable user expectations. The corrective obligations are: ## Invariants to protect +- One ordinary node is the default for a single executable stage. Reuse + generic stages across compatible models and keep their ports named by role. + Fold internal operations only under the same owner with no independent + consumer of the intermediate result. Reserve new Blocks for a meaningful + typed boundary, such as a complete shot, reusable composition or loop. +- Present one editor for a connected setting and retain the saved fallback. + When selecting the default for similar stages, verify the fresh Creator + path and the corresponding saved workflow, including the precise ordered + execution export, compatible model switch and reopening. Preserve legacy + Block interfaces and registered definition hashes. - One owning `BlockInstanceV2`, one flat effective execution graph and one existing backend executor. Nested containment is not a second persisted execution system. Ordinary leaves remain ordinary nodes. diff --git a/docs/developer-first-node-ux.md b/docs/developer-first-node-ux.md index cb935d76..f79feb9b 100644 --- a/docs/developer-first-node-ux.md +++ b/docs/developer-first-node-ux.md @@ -190,6 +190,12 @@ with declared non-image outputs omits the empty image LoRA panel. Existing adapter rows and external connections remain inspectable, and supported audio routes retain their declared adapter controls. +When a directly connected execution recipe supplies a VAE setting inside Model +Setup, the node and inspector show the recipe control. The loader's saved +fallback value remains available in the implementation and returns to the node +when the recipe is disconnected. Base model and adapter revisions keep their +separate values. + Recorded ordinary video stage inputs keep condition strength and denoise strength separate. A source-video pixel digest identifies the ordered frozen PIL frames used by Encode Inputs, alongside their count; it is not a source-file diff --git a/docs/modiff-client-architecture.md b/docs/modiff-client-architecture.md index 5b8d1d73..11fe0240 100644 --- a/docs/modiff-client-architecture.md +++ b/docs/modiff-client-architecture.md @@ -137,7 +137,12 @@ nodes, descendants, incident edges and separately selected edges. The existing Block deletion checks run before removing any selected wires. One Undo restores the complete graph; a rejected structural deletion leaves the selection intact. -Built-in stage cards use the ordinary node surface with the existing interface, +Single-action whole-pipeline generation uses its ordinary node card. Loading a +workflow with an authored pipeline field set restores the registered actions +for those fields and retains the selected contract's field inventory. +Presentation changes preserve the ordered executable graph. + +Built-in grouped stage cards use the ordinary node surface with the existing interface, bindings, and graph lowering. A saved expanded stage restores as a single card. Shot groups and reusable Blocks keep their composition controls. Inside an authored Shot, the generated image input, encoding and generation stages use diff --git a/scripts/bundle-budget.mjs b/scripts/bundle-budget.mjs index 95c209ea..b1aaf3cb 100644 --- a/scripts/bundle-budget.mjs +++ b/scripts/bundle-budget.mjs @@ -490,6 +490,9 @@ const SOURCE_LICENSES = new URL('../public/THIRD_PARTY_LICENSES.txt', import.met // 504492/682980/346033 largest/startup/deferred gzip bytes: the reviewed // migration ceilings below still pass with 8/12/304 bytes of headroom. const MAX_STARTUP_CHUNK_GZIP_BYTES = + // Generic stage cards and connected Model Setup controls add 435 gzip bytes + // (522134 -> 522569). Preserve the previous measured margin. + 435 + // The pinned Qwen 2.1 Turbo terms add 125 gzip bytes (522009 -> 522134). 125 + // Saved attention receipts for five video routes add 267 measured bytes. @@ -752,6 +755,8 @@ const MAX_STARTUP_CHUNK_GZIP_BYTES = // The same build measures 673359 aggregate startup bytes (+45 over the cap). // Keep 19 bytes of headroom; deferred limits and loading boundaries stay fixed. const MAX_STARTUP_GZIP_BYTES = + // Generic stage presentation adds 432 startup gzip bytes (700620 -> 701052). + 432 + // The pinned Qwen 2.1 Turbo terms add 126 startup gzip bytes (700494 -> 700620). 126 + // The same receipt compatibility adds 271 measured startup bytes. @@ -1076,6 +1081,8 @@ const MAX_DEFERRED_CHUNK_GZIP_BYTES = 64 * 1024; // Startup code differs only in the three verified Dataset descriptor values. // Retain both startup caps, the independent 64 KiB chunk cap and prior headroom. const MAX_DEFERRED_GZIP_BYTES = + // The stage and inspector changes add 504 deferred gzip bytes (354385 -> 354889). + 504 + // Catalog, adapter, guidance and selection controls add 234 gzip bytes (353986 -> 354220). // The four startup and 93 deferred chunks retain their exact membership. 234 + diff --git a/scripts/image-stage-groups.test.mjs b/scripts/image-stage-groups.test.mjs index c00ca210..9231cf3c 100644 --- a/scripts/image-stage-groups.test.mjs +++ b/scripts/image-stage-groups.test.mjs @@ -1,4 +1,6 @@ import assert from 'node:assert/strict'; +import { readFileSync } from 'node:fs'; +import path from 'node:path'; import { after, before, test } from 'node:test'; import { createServer } from 'vite'; @@ -31,6 +33,29 @@ before(async () => { }); after(async () => server?.close()); +test('whole-pipeline examples keep one-action generation on the ordinary node', () => { + const backend = path.resolve(process.env.MODIFF_BACKEND_DIR || '../MoDiff'); + const cases = [ + ['sana-sprint-pipeline/text-to-image', 'Generate'], + ['qwen-image-edit-pipeline/edit-image', 'Edit'], + ['stable-diffusion-pipeline/control-inpaint', 'ControlInpaint'], + ['wan-vace-pipeline/text-to-video', 'Generate'], + ['long-cat-audio-di-t-pipeline/text-to-audio', 'Generate'], + ]; + for (const [graphPath, action] of cases) { + const graph = JSON.parse(readFileSync(path.join(backend, 'data/graphs/studio', graphPath + '.json'), 'utf8')); + const before = structuredClone(graph); + const draft = groups.groupNewOperationGraph(graph); + const original = graph.nodes.find((node) => node.data.action === action); + const actual = draft.nodes.find((node) => node.id === original.id); + assert.ok(actual, graphPath + ' must show ' + action + ' directly'); + assert.equal(actual.data.blockInstanceV2, undefined); + assert.deepEqual(actual.data.params, original.data.params); + assert.ok(draft.nodes.some((node) => groups.visualOperationGroup(node) === 'setup')); + assert.deepEqual(graph, before); + } +}); + function ordinaryImage({ task = 'text_to_image', withGuidance = true } = {}) { const pipelineClass = 'FutureImagePipeline'; const field = (type, display, value) => ({ type, display, ...(value === undefined ? {} : { value }) }); diff --git a/scripts/node-presentation.test.mjs b/scripts/node-presentation.test.mjs index 925d721f..2cbba85b 100644 --- a/scripts/node-presentation.test.mjs +++ b/scripts/node-presentation.test.mjs @@ -6,6 +6,7 @@ let server; let catalog; let browser; let presentation; +let operationCatalog; const cases = [ ['ModularDiffusers', 'ModelsLoader', 'Load Models', 'Load Modular Components'], ['ModularDiffusers', 'AutoModelLoader', 'Load Model', 'Load Model Component'], @@ -47,6 +48,7 @@ before(async () => { catalog = await server.ssrLoadModule('/src/studio/nodeCatalog.ts'); browser = await server.ssrLoadModule('/src/workflow/workflowTaskBrowser.ts'); presentation = await server.ssrLoadModule('/src/workflow/nodePresentation.ts'); + operationCatalog = await server.ssrLoadModule('/src/workflow/operationCatalog.ts'); }); after(async () => server?.close()); @@ -78,6 +80,65 @@ test('user titles remain intact and a registry alias uses the executable identit assert.equal(catalog.getNodeCatalogEntry({ ...data, label: 'My border preparation' }).label, 'My border preparation'); }); +test('managed image actions show their exact task instead of the shared generation operation title', () => { + const cases = [ + ['Edit', 'edit_image', 'Edit Image'], + ['Edit', 'multi_image_reference_edit', 'Edit Image'], + ['Inpaint', 'inpaint', 'Inpaint Image'], + ['Inpaint', 'outpaint', 'Outpaint Image'], + ['ControlGenerate', 'control_image', 'Generate Image with Control'], + ['ControlEdit', 'control_edit_image', 'Edit Image with Control'], + ['ControlInpaint', 'control_inpaint', 'Inpaint Image with Control'], + ['UnconditionalGenerate', 'unconditional_image', 'Generate Unconditional Image'], + ]; + for (const [action, task, expected] of cases) { + const data = { + ...node('DiffusersImage', action, 'Generate Image'), + operationAuthoring: { + operation: { operationId: 'diffusion.generate_image', nodeKey: `modules.DiffusersImage.${action}`, task }, + }, + }; + const before = JSON.stringify(data); + assert.equal(presentation.nodeDisplayLabel(data), expected); + assert.equal(operationCatalog.operationLabel(data.operationAuthoring.operation), expected); + assert.equal(presentation.nodeDisplayLabel({ ...data, label: 'My authored stage' }), 'My authored stage'); + assert.equal(presentation.nodeDisplayLabel({ ...data, module: 'custom.Images' }), 'Generate Image'); + assert.equal(JSON.stringify(data), before); + } + assert.equal( + operationCatalog.operationLabel({ operationId: 'diffusion.generate_image', nodeKey: 'custom.Images.Edit' }), + 'Generate image', + ); +}); + +test('common discovery shows ordinary image and video preparation but keeps native recipe details advanced', () => { + const cases = [ + ['DiffusersImage', 'ControlEdit', 'Edit'], + ['DiffusersImage', 'ControlInpaint', 'Edit'], + ['DiffusersImage', 'LayerDecompose', 'Edit'], + ['DiffusersImage', 'PredictMap', 'Condition'], + ['VideoConditioning', 'Normalize', 'Condition'], + ['VideoConditioning', 'AlignMask', 'Edit'], + ['VideoConditioning', 'OutpaintCanvas', 'Edit'], + ['VideoConditioning', 'EdgePreprocessor', 'Condition'], + ]; + for (const [module, action, category] of cases) { + const entry = catalog.getNodeCatalogEntry(node(module, action, action)); + assert.equal(entry.surfaceCategory, category); + assert.ok(catalog.nodeCatalogEntryMatchesView(entry, 'common')); + assert.equal(entry.dragKey, `modules.${module}.${action}`); + } + for (const [module, action] of [ + ['DiffusersRuntime', 'PipelineQuantizationConfigV2'], + ['DiffusersRuntime', 'DiffusersExecutionRecipe'], + ['ModularDiffusers', 'WorkflowMiniMaxH3TextEncode'], + ]) { + const entry = catalog.getNodeCatalogEntry(node(module, action, action)); + assert.equal(catalog.nodeCatalogEntryMatchesView(entry, 'common'), false); + assert.ok(catalog.nodeCatalogEntryMatchesView(entry, 'advanced')); + } +}); + test('ordinary controls and sockets distinguish requested settings from supplied or measured results', () => { const fields = [ ['VideoConditioning.Normalize', 'video', 'Video', 'Source frames'], diff --git a/scripts/video-stage-groups.test.mjs b/scripts/video-stage-groups.test.mjs index a7282678..4a0fa767 100644 --- a/scripts/video-stage-groups.test.mjs +++ b/scripts/video-stage-groups.test.mjs @@ -821,7 +821,19 @@ test('new single-shot templates expose the agreed source, mask, generate and del }; const graph = builder.createTemplateOperationGraph(template, form, row.starter, fixture.registry, spec, capability); const kinds = graph.nodes.map((node) => groups.visualOperationGroup(node)); - for (const kind of ['setup', 'inputs', 'generate', 'output']) assert.ok(kinds.includes(kind), `${row.id}:${kind}`); + for (const kind of ['setup', 'inputs', 'output']) assert.ok(kinds.includes(kind), `${row.id}:${kind}`); + const groupedGenerate = graph.nodes.find((node) => groups.visualOperationGroup(node) === 'generate'); + const ordinaryGenerate = graph.nodes.find( + (node) => node.data.module === 'modules.DiffusersVideo' && node.data.action === 'Generate', + ); + if (ordinaryGenerate) { + assert.equal(template.modelType, 'WanVACEPipeline'); + assert.equal(ordinaryGenerate.data.blockInstanceV2, undefined); + assert.equal(groupedGenerate, undefined); + } else { + assert.ok(groupedGenerate, `${row.id}:generate`); + assert.ok(groupedGenerate.data.blockInstanceV2.effectiveGraph.nodes.length > 1); + } if ( ['video_color_edit', 'video_to_video', 'video_inpaint', 'video_outpaint', 'control_to_video'].includes( template.mode, diff --git a/scripts/workflow-library-canonical-export.test.mjs b/scripts/workflow-library-canonical-export.test.mjs index 4b324dc0..f19ac35b 100644 --- a/scripts/workflow-library-canonical-export.test.mjs +++ b/scripts/workflow-library-canonical-export.test.mjs @@ -40,7 +40,8 @@ test('repeated shot processors retain only unanimous fallback defaults with unch }); import { canonicalExecutableWorkflowGraph, loadCanonicalWorkflowExpander } from './canonical-workflow-execution.mjs'; -let server, hooks, flowStore, groups, blockSchema, fixture, templates, builder, defaults, exactness, operations; +let server, hooks, flowStore, groups, blockSchema, blockRuntime, modelSetupControlParams, graphNodeControlParams; +let fixture, templates, builder, defaults, exactness, operations; let requests; let shared; const ids = ['qwen_text_rendering', 'cosmos3_super_text_to_image', 'qwen_outpaint_aspect_template']; @@ -69,6 +70,9 @@ before(async () => { assert.ok(templates.every(Boolean)); ({ useFlowStore: flowStore } = await server.ssrLoadModule('/src/stores/useFlowStore.ts')); groups = await server.ssrLoadModule('/src/workflow/visualOperationGroups.ts'); + blockRuntime = await server.ssrLoadModule('/src/studio/blockRuntimeV2.ts'); + ({ modelSetupControlParams } = await server.ssrLoadModule('/src/workflow/modelSetupControlPresentation.ts')); + ({ graphNodeControlParams } = await server.ssrLoadModule('/src/studio/graphNodeControls.ts')); shared = await server.ssrLoadModule('/src/workflow/operationSharedInputs.ts'); blockSchema = await server.ssrLoadModule('/src/studio/blockSchemaV2.ts'); builder = await server.ssrLoadModule('/src/studio/templateOperationWorkflow.ts'); @@ -337,6 +341,107 @@ test('whole-pipeline examples fold connected runtime settings into the shared Mo } }); +test('Model Setup shows connected VAE recipe controls and retains each loader fallback', () => { + const backend = path.resolve(process.env.MODIFF_BACKEND_DIR || '../MoDiff'); + const examples = [ + ['studio/ddim-pipeline/unconditional-image.json', ['slicing', 'tiling']], + ['studio/long-cat-audio-di-t-pipeline/text-to-audio.json', ['tiling']], + ]; + for (const [relative, modes] of examples) { + const source = JSON.parse(readFileSync(path.join(backend, 'data/graphs', relative), 'utf8')); + const grouped = groups.groupNewOperationGraph(source); + const setup = grouped.nodes.find((node) => groups.visualOperationGroup(node) === 'setup'); + assert.ok(setup, relative); + const instance = setup.data.blockInstanceV2; + const before = structuredClone(instance); + const graph = blockRuntime.blockOperationGraphV2(instance); + const view = blockRuntime.blockViewModelV2(instance); + const visible = modelSetupControlParams(instance, graph, view.controlParams); + const inspector = graphNodeControlParams(setup); + const disconnected = { + ...graph, + edges: graph.edges.filter((edge) => edge.targetHandle !== 'execution_recipe'), + }; + const fallback = modelSetupControlParams(instance, disconnected, view.controlParams); + const competing = { + ...graph, + edges: [...graph.edges, ...graph.edges.filter((edge) => edge.targetHandle === 'execution_recipe')], + }; + const unresolved = modelSetupControlParams(instance, competing, view.controlParams); + for (const mode of modes) { + const direct = instance.effectiveInterface.controls.find( + (control) => control.binding.fieldId === `enable_vae_${mode}`, + ); + const recipe = instance.effectiveInterface.controls.find((control) => control.binding.fieldId === `vae_${mode}`); + assert.equal(view.controlParams[direct.controlId].value ?? view.controlParams[direct.controlId].default, true); + assert.equal(visible[recipe.controlId].value ?? visible[recipe.controlId].default, false); + assert.equal(Object.hasOwn(visible, direct.controlId), false, relative); + assert.equal(Object.hasOwn(inspector, direct.controlId), false, relative); + assert.equal(inspector[recipe.controlId].label, visible[recipe.controlId].label, relative); + assert.equal(fallback[direct.controlId], view.controlParams[direct.controlId], relative); + assert.equal(unresolved[direct.controlId], view.controlParams[direct.controlId], relative); + const customInterface = { + ...instance, + effectiveInterface: { + ...instance.effectiveInterface, + controls: instance.effectiveInterface.controls.map((control) => + control.controlId === direct.controlId ? { ...control, label: 'My fallback' } : control, + ), + }, + }; + assert.ok( + modelSetupControlParams(customInterface, graph, view.controlParams)[direct.controlId], + `${relative}: retain explicitly named controls`, + ); + } + assert.deepEqual(instance, before, `${relative}: render must preserve saved values, graph and interface`); + const api = (sourceGraph) => + canonicalGraphIdentity( + flowStore.getState().exportGraph('model-setup-precedence', undefined, { sourceGraph, randomizeSeeds: false }), + ); + assert.deepEqual(api(grouped), api(source), relative); + } +}); + +test('Model Setup scopes VAE precedence to each owner and distinguishes base model revision', () => { + const backend = path.resolve(process.env.MODIFF_BACKEND_DIR || '../MoDiff'); + const stageControls = (relative) => { + const source = JSON.parse(readFileSync(path.join(backend, 'data/graphs', relative), 'utf8')); + return groups + .groupNewOperationGraph(source) + .nodes.filter((node) => groups.visualOperationGroup(node) === 'setup') + .map((node) => { + const instance = node.data.blockInstanceV2; + const before = structuredClone(instance); + const graph = blockRuntime.blockOperationGraphV2(instance); + const { controlParams } = blockRuntime.blockViewModelV2(instance); + const visible = modelSetupControlParams(instance, graph, controlParams); + assert.deepEqual(instance, before, relative); + return { instance, graph, controlParams, visible }; + }); + }; + const movie = stageControls('studio/wan-ti2-v-pipeline/text-to-video.json'); + assert.equal(movie.length, 2); + const audio = movie.find(({ graph }) => graph.nodes.some((node) => node.data.module === 'modules.DiffusersAudio')); + const video = movie.find(({ graph }) => graph.nodes.some((node) => node.data.module === 'modules.DiffusersVideo')); + const audioFallback = audio.instance.effectiveInterface.controls.find( + (control) => control.binding.fieldId === 'enable_vae_tiling', + ); + assert.equal(Object.hasOwn(audio.visible, audioFallback.controlId), false); + assert.deepEqual(video.visible, video.controlParams); + + const [adapterExample] = stageControls('studio/flux-dev-pipeline/text-to-image--flux-lora-ghibli-story.json'); + const revisionControls = adapterExample.instance.effectiveInterface.controls.filter( + (control) => control.binding.fieldId === 'revision', + ); + assert.equal(revisionControls.length, 2); + assert.deepEqual(revisionControls.map(({ controlId }) => adapterExample.visible[controlId].label).sort(), [ + 'Base model revision', + 'Revision', + ]); + assert.notEqual(...revisionControls.map(({ controlId }) => adapterExample.visible[controlId].value)); +}); + test('whole-pipeline video inputs combine their actual Load and Normalize operations', () => { const backend = path.resolve(process.env.MODIFF_BACKEND_DIR || '../MoDiff'); for (const relative of [ @@ -386,12 +491,11 @@ test('whole-pipeline Generate retains its authored executable fields during live flowStore.getState().replaceGraph(groups.groupNewOperationGraph(graph), { clearRemovedCache: false }); const live = { nodes: flowStore.getState().nodes, edges: flowStore.getState().edges }; assert.deepEqual(identity(live), expected, 'Opening a reviewed example must not add inactive guidance overrides.'); - const generate = live.nodes.find((node) => groups.visualOperationGroup(node) === 'generate'); - assert.ok(generate, 'Whole native generation has the same editable Generate stage.'); - assert.deepEqual( - generate.data.blockInstanceV2.effectiveGraph.nodes.map((node) => node.data.action), - ['Generate'], + const generate = live.nodes.find( + (node) => node.data.module === 'modules.DiffusersImage' && node.data.action === 'Generate', ); + assert.ok(generate, 'Whole native generation has the same editable Generate stage.'); + assert.equal(generate.data.blockInstanceV2, undefined); } finally { useNodesStore.setState({ nodesRegistry: previous }); } diff --git a/src/components/StageNodeControls.tsx b/src/components/StageNodeControls.tsx index 41e86789..4dd6932f 100644 --- a/src/components/StageNodeControls.tsx +++ b/src/components/StageNodeControls.tsx @@ -9,6 +9,7 @@ import { BlockOwnerChoices } from './OperationOwnerControls'; import NodeContent from './NodeContent'; import ModelSetupAdapterControls from './ModelSetupAdapterControls'; import { isModelSetupAdapter } from '../workflow/modelSetupAdapters'; +import { modelSetupControlParams } from '../workflow/modelSetupControlPresentation'; /** The same exposed fields, model planner and preview authority as Block V2, * presented within the ordinary node shell. No second state or executor. */ @@ -24,6 +25,7 @@ export default function StageNodeControls({ const { view, groups } = useMemo(() => { const view = blockViewModelV2(instance); const graph = blockOperationGraphV2(instance); + const controlParams = setup ? modelSetupControlParams(instance, graph, view.controlParams) : view.controlParams; const owners = new Set( graph.nodes .filter((n) => operationOwnsModel(n.data.operationAuthoring?.operation)) @@ -32,18 +34,20 @@ export default function StageNodeControls({ const adapters = new Set(graph.nodes.filter(isModelSetupAdapter).map((node) => node.data.blockProjectionNodeId)); const controls = instance.effectiveInterface.controls.filter( (control) => + controlParams[control.controlId] !== undefined && !( setup && owners.has(control.binding.nodeId) && ['repo_id', 'model_id', 'model_type'].includes(control.binding.fieldId) - ) && !(setup && adapters.has(control.binding.nodeId)), + ) && + !(setup && adapters.has(control.binding.nodeId)), ); const groups = [...new Set(controls.map((control) => control.group ?? 'Settings'))].map((group) => ({ label: group, params: Object.fromEntries( controls .filter((control) => (control.group ?? 'Settings') === group) - .map((control) => [control.controlId, view.controlParams[control.controlId]!]), + .map((control) => [control.controlId, controlParams[control.controlId]!]), ), })); return { view, groups }; diff --git a/src/stores/flowGraphMutations.ts b/src/stores/flowGraphMutations.ts index 11c50029..a966af2d 100644 --- a/src/stores/flowGraphMutations.ts +++ b/src/stores/flowGraphMutations.ts @@ -11,6 +11,7 @@ import { } from '../studio/blockRuntimeV2'; import { enqueueSnackbar } from '../ui/snackbar'; import { operationAuthoring } from '../workflow/operationAuthoringHint'; +import { isWholePipelineStage } from '../workflow/wholePipelineStage'; import { projectFlowCacheStatus } from './flowRuntimeCache'; import { handleEdgesChange, reconcileGraphConnections } from './flowConnectionMutations'; import type { CustomNodeType, FlowStore } from './useFlowStore'; @@ -48,6 +49,9 @@ function withLiveFieldContracts(nodes: CustomNodeType[]) { const liveParams = definition?.params; const storedParams = node.data.params; const operation = operationAuthoring(node)?.operation; + // These actions share registry fields across several pipelines. The + // stored fields belong to the selected pipeline, even on an ordinary card. + const preserveFields = isWholePipelineStage(node.data); const params = Object.fromEntries( Object.entries(storedParams).map(([fieldKey, storedParam]) => { const liveParam = liveParams?.[fieldKey]; @@ -71,6 +75,7 @@ function withLiveFieldContracts(nodes: CustomNodeType[]) { ); for (const [fieldKey, liveParam] of Object.entries(liveParams ?? {})) { if (hasOwn(storedParams, fieldKey)) continue; + if (preserveFields && !liveParam.display?.startsWith('ui_')) continue; // The generic registry contains sockets for other pipeline/task modes. // An authored operation's selected contract owns its missing inputs; // UI fields and hidden scalar defaults still hydrate normally. diff --git a/src/studio/controlledWorkflowContracts.ts b/src/studio/controlledWorkflowContracts.ts index 5604c4d8..9dc0cc25 100644 --- a/src/studio/controlledWorkflowContracts.ts +++ b/src/studio/controlledWorkflowContracts.ts @@ -32,6 +32,11 @@ export const CONTROLLED_WORKFLOW_NODE_KEYS = { qualityVideoJoin: 'modules.Video.ConcatenateAssets', } as const; +export function isModelSetupAdapterKey(key: string): boolean { + const { lora, directLora, audioLora } = CONTROLLED_WORKFLOW_NODE_KEYS; + return key === lora || key === directLora || key === audioLora; +} + export const CONTROLLED_GRAPH_CONTRACT_IDS = [ 'lora.modular.v1', 'lora.diffusers-image.v1', diff --git a/src/studio/graphNodeControls.ts b/src/studio/graphNodeControls.ts index 6b94d2cd..8b881651 100644 --- a/src/studio/graphNodeControls.ts +++ b/src/studio/graphNodeControls.ts @@ -2,10 +2,17 @@ import { hasInlineScalarControl } from './inlineScalarControl'; import { useFlowStore, type CustomNodeType } from '../stores/useFlowStore'; import type { NodeParams } from '../stores/useNodeStore'; import { useStudioStore } from '../stores/useStudioStore'; -import { blockControlParamsV2, blockModularParentIdsV2, materializeBlockProjectionV2 } from './blockRuntimeV2'; +import { + blockControlParamsV2, + blockModularParentIdsV2, + blockOperationGraphV2, + materializeBlockProjectionV2, +} from './blockRuntimeV2'; import type { BlockJsonValue } from './blockSchemaV2'; import { syncManagedNodeControlChange } from './managedControlSync'; import type { AppModeInput } from './types'; +import { modelSetupControlParams } from '../workflow/modelSetupControlPresentation'; +import { visualOperationGroup } from '../workflow/visualOperationGroupProjection'; export type GraphInputCandidate = AppModeInput & { node: CustomNodeType; param: NodeParams }; @@ -15,10 +22,15 @@ const expandedByInstance = new WeakMap(); /** The inspector is another view of the canvas control contract, never a schema owner. */ export function graphNodeControlParams(node: CustomNodeType): Record { - const source = node.data.blockInstanceV2 ?? node.data.params; + const instance = node.data.blockInstanceV2; + const source = instance ?? node.data.params; const cached = controlsBySource.get(source); if (cached) return cached; - const params = node.data.blockInstanceV2 ? blockControlParamsV2(node.data.blockInstanceV2) : node.data.params; + const base = instance ? blockControlParamsV2(instance) : node.data.params; + const params = + instance && visualOperationGroup(node) === 'setup' + ? modelSetupControlParams(instance, blockOperationGraphV2(instance), base) + : base; const controls = Object.fromEntries( Object.entries(params) .filter(([key, param]) => { diff --git a/src/studio/nodeCatalog.ts b/src/studio/nodeCatalog.ts index 697d1fc9..b0f7ee75 100644 --- a/src/studio/nodeCatalog.ts +++ b/src/studio/nodeCatalog.ts @@ -88,7 +88,15 @@ const MODEL_SPECIFIC_MODULES = new Set(); // Discovery only: these existing generic operations keep their backend schemas // and execution identities. Inclusion does not add model/task support. const GENERIC_NODE_KEYS = new Set([ + 'modules.DiffusersImage.ControlEdit', + 'modules.DiffusersImage.ControlInpaint', + 'modules.DiffusersImage.LayerDecompose', + 'modules.DiffusersImage.PredictMap', 'modules.DiffusersImage.OutpaintCanvas', + 'modules.VideoConditioning.Normalize', + 'modules.VideoConditioning.AlignMask', + 'modules.VideoConditioning.OutpaintCanvas', + 'modules.VideoConditioning.EdgePreprocessor', 'modules.ModularDiffusers.ModelsLoader', 'modules.ModularDiffusers.AutoModelLoader', 'modules.ModularDiffusers.EncodePrompt', @@ -106,6 +114,16 @@ const GENERIC_NODE_KEYS = new Set([ 'modules.Spandrel.Upscaler', ]); +const GENERIC_NODE_ROLES: Readonly> = { + 'modules.DiffusersImage.LayerDecompose': 'Edit', + 'modules.DiffusersImage.PredictMap': 'Condition', + 'modules.ModularDiffusers.ImageEncode': 'Condition', + 'modules.VideoConditioning.Normalize': 'Condition', + 'modules.VideoConditioning.AlignMask': 'Edit', + 'modules.VideoConditioning.OutpaintCanvas': 'Edit', + 'modules.VideoConditioning.EdgePreprocessor': 'Condition', +}; + export function nodeCatalogEntryMatchesView(entry: NodeCatalogEntry, view: NodeCatalogView) { if (entry.visibility === 'internal') return false; if (entry.visibility === 'experimental') return view === 'experimental' || view === 'all'; @@ -166,7 +184,8 @@ function textIncludesAny(text: string, values: string[]) { } function categoryFromNode(node: NodeData, key: string): NodeSurfaceCategory { - if (nodeKey(node) === 'modules.ModularDiffusers.ImageEncode') return 'Condition'; + const role = GENERIC_NODE_ROLES[nodeKey(node)]; + if (role) return role; const text = `${key} ${node.category} ${node.label}`.toLowerCase(); if (textIncludesAny(text, ['adapter', 'lora'])) return 'Adapters'; if (textIncludesAny(text, ['export', 'save'])) return 'Export'; diff --git a/src/workflow/modelSetupAdapters.ts b/src/workflow/modelSetupAdapters.ts index 60692d55..0cfa812a 100644 --- a/src/workflow/modelSetupAdapters.ts +++ b/src/workflow/modelSetupAdapters.ts @@ -13,6 +13,7 @@ import { createNodeFromRegistry } from './nodeFactory'; import { connectionTypesAreCompatible } from '../theme/connectionTypeCompatibility'; import { hasInlineScalarControl } from '../studio/inlineScalarControl'; import { MAX_ORDERED_ADAPTERS, orderedAdapterChainLinks } from '../studio/adapterChainLinks'; +import { CONTROLLED_WORKFLOW_NODE_KEYS, isModelSetupAdapterKey } from '../studio/controlledWorkflowContracts'; import { parseImageAdapterAuthoringPolicy } from '../studio/optionalRuntimes'; import { declaredImagePipelineStageTail, operationScope } from './operationScope'; import { deepEqual } from '../utils/deepEqual'; @@ -23,12 +24,10 @@ import { visualOperationGroup, } from './visualOperationGroups'; -const NATIVE = 'modules.ModularDiffusers.Lora'; -const DIRECT = 'modules.DiffusersImage.LoadAdapter'; -const AUDIO = 'modules.DiffusersAudio.LoadAdapter'; +const { lora: NATIVE, directLora: DIRECT, audioLora: AUDIO } = CONTROLLED_WORKFLOW_NODE_KEYS; const key = (node: CustomNodeType) => `${node.data.module}.${node.data.action}`; export function isModelSetupAdapter(node: CustomNodeType) { - return [NATIVE, DIRECT, AUDIO].includes(key(node)); + return isModelSetupAdapterKey(key(node)); } function adapterTransportUnavailable(owner: CustomNodeType, adapterKey: string): string | null { diff --git a/src/workflow/modelSetupControlPresentation.ts b/src/workflow/modelSetupControlPresentation.ts new file mode 100644 index 00000000..0c915646 --- /dev/null +++ b/src/workflow/modelSetupControlPresentation.ts @@ -0,0 +1,83 @@ +import type { NodeParams } from '../stores/useNodeStore'; +import { blockProjectionNodeIdV2, type BlockFlowGraphV2 } from '../studio/blockRuntimeV2'; +import type { BlockInstanceV2 } from '../studio/blockSchemaV2'; +import { isModelSetupAdapterKey } from '../studio/controlledWorkflowContracts'; + +const IMAGE_LOADER = 'modules.DiffusersImage.LoadPipeline'; +const AUDIO_LOADER = 'modules.DiffusersAudio.LoadPipeline'; +const EXECUTION_RECIPE = 'modules.DiffusersRuntime.DiffusersExecutionRecipe'; +const RECIPE_SOCKET = 'execution_recipe'; +const RECIPE_TYPE = 'diffusers_execution_recipe'; +const VAE_FALLBACKS: Record> = { + [IMAGE_LOADER]: { enable_vae_slicing: 'vae_slicing', enable_vae_tiling: 'vae_tiling' }, + [AUDIO_LOADER]: { enable_vae_tiling: 'vae_tiling' }, +}; + +/** Only compact Model Setup's displayed controls change. The loader's + * fallback still belongs to its saved leaf and becomes active on disconnect. */ +export function modelSetupControlParams( + instance: BlockInstanceV2, + graph: BlockFlowGraphV2, + params: Record, +): Record { + const controls = instance.effectiveInterface.controls; + const nodes = new Map(graph.nodes.map((node) => [node.id, node])); + const leaf = (nodeId: string) => nodes.get(blockProjectionNodeIdV2(instance.instanceId, nodeId)); + const hasAdapterRevision = controls.some((control) => { + const owner = leaf(control.binding.nodeId); + return ( + control.binding.fieldId === 'revision' && + control.label === 'Revision' && + owner && + isModelSetupAdapterKey(`${owner.data.module}.${owner.data.action}`) + ); + }); + const visible = { ...params }; + for (const control of controls) { + const { nodeId, fieldId } = control.binding; + const owner = leaf(nodeId); + const field = params[control.controlId]; + if (!owner || !field) continue; + const nodeKey = `${owner.data.module}.${owner.data.action}`; + if ( + hasAdapterRevision && + fieldId === 'revision' && + control.label === 'Revision' && + [IMAGE_LOADER, AUDIO_LOADER, 'modules.ModularDiffusers.ModelsLoader'].includes(nodeKey) + ) { + visible[control.controlId] = { ...field, label: 'Base model revision' }; + } + const recipeField = VAE_FALLBACKS[nodeKey]?.[fieldId]; + const recipeInput = owner.data.params[RECIPE_SOCKET]; + if ( + !recipeField || + control.sealed || + control.mirrorBindings?.length || + control.label !== owner.data.params[fieldId]?.label || + owner.data.uiState?.disabled || + recipeInput?.type !== RECIPE_TYPE || + !(recipeInput.display === 'input' || recipeInput.isInput) || + graph.edges.some((edge) => edge.target === owner.id && edge.targetHandle === fieldId) + ) + continue; + const incoming = graph.edges.filter((edge) => edge.target === owner.id && edge.targetHandle === RECIPE_SOCKET); + if (incoming.length !== 1 || incoming[0]?.sourceHandle !== RECIPE_SOCKET) continue; + const recipe = nodes.get(incoming[0].source); + if ( + !recipe || + `${recipe.data.module}.${recipe.data.action}` !== EXECUTION_RECIPE || + recipe.data.uiState?.disabled || + recipe.data.params[RECIPE_SOCKET]?.type !== RECIPE_TYPE || + recipe.data.params[RECIPE_SOCKET].display !== 'output' || + recipe.data.params[recipeField]?.type !== 'bool' + ) + continue; + const effective = controls.find( + (candidate) => + candidate.binding.nodeId === recipe.data.blockProjectionNodeId && candidate.binding.fieldId === recipeField, + ); + const effectiveParam = effective && params[effective.controlId]; + if (effectiveParam && !effectiveParam.hidden) delete visible[control.controlId]; + } + return visible; +} diff --git a/src/workflow/nodePresentation.ts b/src/workflow/nodePresentation.ts index b94533b3..d2284f11 100644 --- a/src/workflow/nodePresentation.ts +++ b/src/workflow/nodePresentation.ts @@ -1,6 +1,7 @@ import type { NodeData } from '../stores/useNodeStore'; +import type { OperationContract } from './operationContracts'; -type Presentation = { label: string; previous: string[] }; +type Presentation = { label: string; previous: string[]; imageGeneration?: true }; /** Presentation only. Never replace execution identities or infer an operation * from a substring in its class name. Unrecognized and user-defined titles stay intact. */ @@ -59,21 +60,38 @@ const PRESENTATIONS: Record = { 'modules.DiffusersImage.UnconditionalGenerate': { label: 'Generate Unconditional Image', previous: ['Diffusers Unconditional Image Generate', 'Sample image'], + imageGeneration: true, }, 'modules.DiffusersImage.ControlGenerate': { label: 'Generate Image with Control', previous: ['Diffusers Control Generate', 'Generate image'], + imageGeneration: true, + }, + 'modules.DiffusersImage.Edit': { + label: 'Edit Image', + previous: ['Diffusers Image Edit', 'Edit image'], + imageGeneration: true, }, - 'modules.DiffusersImage.Edit': { label: 'Edit Image', previous: ['Diffusers Image Edit', 'Edit image'] }, 'modules.DiffusersImage.ControlEdit': { label: 'Edit Image with Control', previous: ['Diffusers Control Edit', 'Edit image'], + imageGeneration: true, + }, + 'modules.DiffusersImage.Inpaint': { + label: 'Inpaint Image', + previous: ['Diffusers Image Inpaint', 'Inpaint'], + imageGeneration: true, }, - 'modules.DiffusersImage.Inpaint': { label: 'Inpaint Image', previous: ['Diffusers Image Inpaint', 'Inpaint'] }, 'modules.DiffusersImage.ControlInpaint': { label: 'Inpaint Image with Control', previous: ['Diffusers Control Inpaint', 'Edit image'], + imageGeneration: true, + }, + 'modules.DiffusersImage.LayerDecompose': { + label: 'Decompose Image Layers', + previous: ['Diffusers Layer Decompose'], }, + 'modules.DiffusersImage.PredictMap': { label: 'Predict Image Map', previous: ['Diffusers Predict Map'] }, 'modules.DiffusersImage.OutpaintCanvas': { label: 'Prepare Outpaint Canvas', previous: ['Outpaint Canvas', 'Edit image'], @@ -145,11 +163,26 @@ export function builtinNodeDisplayLabel(identity: string, fallback: string) { return PRESENTATIONS[identity]?.label ?? fallback; } +/** Give distinct built-in image tasks their own caption when the backend + * binds them to the shared generation operation. */ +export function imageActionCaption(operation: Pick) { + if (operation.operationId !== 'diffusion.generate_image') return undefined; + const presentation = PRESENTATIONS[operation.nodeKey]; + if (!presentation?.imageGeneration) return undefined; + if (operation.nodeKey === 'modules.DiffusersImage.Inpaint' && operation.task === 'outpaint') return 'Outpaint Image'; + return presentation.label; +} + export function nodeDisplayLabel(node: Pick): string { - // Canonical authoring nodes already have a task-specific semantic label. Raw - // implementation names must not replace that label on a bound workflow. - if (node.operationAuthoring && node.label) return node.label; const identity = `${node.module}.${node.action}`; + const operation = node.operationAuthoring?.operation; + if (node.operationAuthoring && node.label) { + // The starter derives this default from the shared operation ID. Refine + // that caption without rewriting it or overriding a distinct saved title. + if (node.label === 'Generate Image' && operation?.nodeKey === identity) + return imageActionCaption(operation) ?? node.label; + return node.label; + } const presentation = PRESENTATIONS[identity]; if (presentation && (!node.label || node.label === identity || presentation.previous.includes(node.label))) return presentation.label; diff --git a/src/workflow/operationCatalog.ts b/src/workflow/operationCatalog.ts index bf39024d..0dfc97c6 100644 --- a/src/workflow/operationCatalog.ts +++ b/src/workflow/operationCatalog.ts @@ -8,6 +8,7 @@ import { type OperationPort, } from './operationContracts'; import { blockValueTypesAreCompatibleV2 } from '../studio/blockValueTypeCompatibilityV2'; +import { imageActionCaption } from './nodePresentation'; export type PipelineTaskSupport = { task: string; @@ -165,10 +166,13 @@ const ORDER = [ 'postprocess_media', ]; export function operationLabel(operation: OperationContract) { - return operation.operationId - .split('.')[1]! - .replace(/_/gu, ' ') - .replace(/^./u, (c) => c.toUpperCase()); + return ( + imageActionCaption(operation) ?? + operation.operationId + .split('.')[1]! + .replace(/_/gu, ' ') + .replace(/^./u, (c) => c.toUpperCase()) + ); } export function operationsForTask( operations: OperationContract[], diff --git a/src/workflow/visualOperationGroups.ts b/src/workflow/visualOperationGroups.ts index d745a0d2..05590b46 100644 --- a/src/workflow/visualOperationGroups.ts +++ b/src/workflow/visualOperationGroups.ts @@ -26,6 +26,7 @@ import { connectionTypesAreCompatible } from '../theme/connectionTypeCompatibili import { hasInlineScalarControl } from '../studio/inlineScalarControl'; import { nodeConnectorParam } from '../studio/nodeConnectorResolution'; import { groupStoryboardShots } from './storyboardShotPresentation'; +import { isWholePipelineStage } from './wholePipelineStage'; import { visualOperationGroup, @@ -1211,6 +1212,7 @@ export function groupOperationStages( ownerId: string, kinds: VisualOperationGroup[] = ['inputs', 'guidance'], combineGuidance = false, + preferOrdinaryStages = false, ) { const unpacked = unpackVisualOperationGroups(graph); const grouped = new Set([...unpacked.members.values()].flat()); @@ -1224,6 +1226,8 @@ export function groupOperationStages( if (kind === 'output' && members.some((node) => generated.has(node.id))) members = members.filter((node) => !generated.has(node.id)); if (members.some((node) => grouped.has(node.id))) continue; + if (preferOrdinaryStages && kind === 'generate' && members.length === 1 && isWholePipelineStage(members[0]!.data)) + continue; if (members.length) { next = groupVisualStages( next, @@ -1259,21 +1263,29 @@ export function groupNewOperationGraph(graph: OperationGraph, options: { legacyS for (const owner of graph.nodes.filter((node) => operationOwnsModel(operationAuthoring(node)?.operation))) next = workflowTaskCategory(operationAuthoring(owner)?.operation.task ?? '') === 'Image' - ? groupOperationStages(next, owner.id, ['inputs', 'setup', 'generate', 'output', 'references', 'mask'], true) + ? groupOperationStages( + next, + owner.id, + ['inputs', 'setup', 'generate', 'output', 'references', 'mask'], + true, + true, + ) : workflowTaskCategory(operationAuthoring(owner)?.operation.task ?? '') === 'Video' - ? groupOperationStages(next, owner.id, [ - 'inputs', - 'guidance', - 'setup', - 'videoInput', - 'imageInput', - 'references', - 'mask', - 'generate', - 'output', - ]) + ? groupOperationStages( + next, + owner.id, + ['inputs', 'guidance', 'setup', 'videoInput', 'imageInput', 'references', 'mask', 'generate', 'output'], + false, + true, + ) : workflowTaskCategory(operationAuthoring(owner)?.operation.task ?? '') === 'Audio' - ? groupOperationStages(next, owner.id, ['inputs', 'guidance', 'setup', 'generate', 'output', 'videoInput']) + ? groupOperationStages( + next, + owner.id, + ['inputs', 'guidance', 'setup', 'generate', 'output', 'videoInput'], + false, + true, + ) : groupOperationStages(next, owner.id); // The same real input preparation can precede a whole native pipeline. // Keep a separately consumed original clip external, with its own preview. @@ -1467,9 +1479,8 @@ export function groupNewOperationGraph(graph: OperationGraph, options: { legacyS members.map((node) => node.id), 'setup', ); - // Keep the authored call fields inside the same real V2 Generate boundary. - // Live root-schema hydration must not add inactive controls for other models. - for (const node of generation) next = groupVisualStages(next, [node.id], 'generate'); + for (const node of generation) + if (!isWholePipelineStage(node.data)) next = groupVisualStages(next, [node.id], 'generate'); } // Export remains its own stage after an intervening upscale, assembly or // independent soundtrack. Group the actual file exporter and its complete diff --git a/src/workflow/wholePipelineStage.ts b/src/workflow/wholePipelineStage.ts new file mode 100644 index 00000000..b52532ab --- /dev/null +++ b/src/workflow/wholePipelineStage.ts @@ -0,0 +1,35 @@ +import type { NodeData } from '../stores/useNodeStore'; + +const GENERATION_CONTRACTS = new Map([ + [ + 'modules.DiffusersImage', + { + inputType: 'image_diffusion_pipeline', + actions: new Set([ + 'Generate', + 'Edit', + 'Inpaint', + 'ControlGenerate', + 'ControlEdit', + 'ControlInpaint', + 'UnconditionalGenerate', + 'PredictMap', + 'LayerDecompose', + ]), + }, + ], + ['modules.DiffusersAudio', { inputType: 'audio_diffusion_pipeline', actions: new Set(['Generate']) }], + [ + 'modules.DiffusersVideo', + { inputType: 'video_diffusion_pipeline', actions: new Set(['Generate', 'GenerateVideoAudio']) }, + ], +]); + +export function isWholePipelineStage({ module, action, params }: Pick) { + const contract = GENERATION_CONTRACTS.get(module); + return Boolean( + contract?.actions.has(action) && + params.pipeline?.type === contract.inputType && + (params.pipeline.display === 'input' || params.pipeline.isInput === true), + ); +} diff --git a/tests/e2e/studio-mocked/studio-mocked.spec.ts b/tests/e2e/studio-mocked/studio-mocked.spec.ts index d57e9285..22c6a123 100644 --- a/tests/e2e/studio-mocked/studio-mocked.spec.ts +++ b/tests/e2e/studio-mocked/studio-mocked.spec.ts @@ -37097,6 +37097,41 @@ test('reusable canvas Blocks and Python nodes explain their different authoring expect(await optionalStageApi(page)).toEqual(before); }); +test('Model Setup VAE settings show the connected recipe once on the canvas and in the inspector', async ({ page }) => { + const source = JSON.parse( + await fs.readFile(path.join(BACKEND_ROOT, 'data/graphs/studio/ddim-pipeline/unconditional-image.json'), 'utf8'), + ); + await page.setViewportSize({ width: 1920, height: 1200 }); + await ensureFrontend(); + await installMockRoutes(page); + await page.goto(FRONTEND_URL, { waitUntil: 'domcontentloaded' }); + await page.waitForFunction(() => Boolean(window.__MODIFF_E2E__?.getState().studio.workflowCanvasHydrated)); + const setupId = await page.evaluate(async (graph) => { + const { useFlowStore } = await import('/src/stores/useFlowStore.ts'); + const { groupNewOperationGraph, visualOperationGroup } = await import('/src/workflow/visualOperationGroups.ts'); + const grouped = groupNewOperationGraph(graph); + const setup = grouped.nodes.find((node) => visualOperationGroup(node) === 'setup')!; + useFlowStore.getState().replaceGraph(grouped); + return setup.id; + }, source); + const card = page.getByTestId(`setup-node-${setupId}`); + const tiling = card.getByRole('switch', { name: /^VAE tiling$/iu }); + const slicing = card.getByRole('switch', { name: /^VAE slicing$/iu }); + await expect(tiling).toHaveCount(1, { timeout: 45_000 }); + await expect(slicing).toHaveCount(1); + await expect(tiling).not.toBeChecked(); + await card.locator('header').first().click(); + await page.getByRole('button', { name: 'Inspect node', exact: true }).click(); + const inspector = page.getByRole('dialog', { name: 'Node inspector', exact: true }); + const inspectorTiling = inspector.getByRole('switch', { name: /^VAE tiling$/iu }); + await expect(inspectorTiling).toHaveCount(1); + await expect(inspectorTiling).not.toBeChecked(); + await inspectorTiling.click(); + await expect(inspectorTiling).toBeChecked(); + await page.keyboard.press('Escape'); + await expect(tiling).toBeChecked(); +}); + test('optional Model Setup and Image Output preserve native stages, task review, separate, Undo and reusable save', async ({ page, }) => { From 832d4d25e881c23e7365842bd07d6ed4c780bdfd Mon Sep 17 00:00:00 2001 From: Sourav Das Date: Sat, 21 Nov 2026 12:41:30 +0530 Subject: [PATCH 285/440] Polish generic stage inputs and register the saved Wav2Vec2 template --- config/release-showcase-scope.v1.json | 10 +- config/template-asset-rights.v1.json | 91 +++++++++++-- config/template-assets.v1.json | 37 ++++- public/template-gallery/manifest.json | 26 ++++ scripts/bundle-budget.mjs | 6 + scripts/graph-visuals.test.mjs | 52 +++++++ scripts/node-presentation.test.mjs | 69 ++++++++++ scripts/private-speech-evidence.mjs | 2 +- scripts/release-contract-core.mjs | 8 ++ scripts/retained-gallery-provenance.mjs | 10 ++ scripts/retained-gallery-templates.test.mjs | 2 +- scripts/retained-speech-gallery-evidence.mjs | 85 ++++++++++-- .../retained-speech-gallery-evidence.test.mjs | 127 +++++++++++++++-- scripts/retained-template-association.mjs | 128 ++++++++++++++++-- scripts/task-template-contracts.test.mjs | 7 + scripts/template-gallery-harness.test.mjs | 5 +- src/stores/useFlowStore.ts | 3 +- src/stores/useStudioStore.ts | 28 ++-- src/studio/exampleWorkflow.ts | 2 +- src/studio/retainedGalleryTemplates.ts | 81 +++++++++++ src/studio/templateAssetSource.json | 6 +- src/studio/types.ts | 1 + src/workflow/graphLayout.ts | 41 +++++- src/workflow/nodePresentation.ts | 71 +++++++--- 24 files changed, 799 insertions(+), 99 deletions(-) diff --git a/config/release-showcase-scope.v1.json b/config/release-showcase-scope.v1.json index 0f7f6c60..f85e4ffe 100644 --- a/config/release-showcase-scope.v1.json +++ b/config/release-showcase-scope.v1.json @@ -4,7 +4,7 @@ "name": "Registered showcase preview without AMD-cloud backlog", "dataset": { "repository": "sourav-das/modiff-template-gallery", - "revision": "b3796d7eedd09df37bef63e99f3ef46a677deebd" + "revision": "decf9bd7ae2db2fe2aabfe729ecaca2765965436" }, "originalCampaign": { "total": 89, @@ -534,7 +534,13 @@ "category": "supplementary-only", "reason": "Published and registered as a supplementary Gallery example outside the original campaign selection.", "countedAsComplete": false + }, + { + "id": "wav2vec2_station_announcement", + "category": "supplementary-only", + "reason": "Published and registered as a supplementary Gallery example outside the original campaign selection.", + "countedAsComplete": false } ], - "profileHash": "sha256:canonical-json:e398f0055740c887648dc8e66ca32df6e45898b56edaa4771e1fb663b3c5d822" + "profileHash": "sha256:canonical-json:75789d86419c6dfc94e0802a3e06c8a4ba238c57cb8aebd794bb88196d5993b7" } diff --git a/config/template-asset-rights.v1.json b/config/template-asset-rights.v1.json index 10ec91bf..ebf7aa27 100644 --- a/config/template-asset-rights.v1.json +++ b/config/template-asset-rights.v1.json @@ -1,6 +1,6 @@ { "schemaVersion": 1, - "assetSetId": "sha256:canonical-json:1345dca546164326458297b1a75b056cefa8fccb94da13f60301b3ddcd21ca3a", + "assetSetId": "sha256:canonical-json:4434e38c233eb32820d8903661684c0d91b77edf6fae07035a8ea7edd8760651", "records": [ { "path": "template-gallery/ace_step_audio_continuation.wav", @@ -5337,25 +5337,25 @@ }, { "path": "template-gallery/manifest.json", - "sha256": "sha256:bytes:7aec0be529d3d015f42cc48d9eea0302afc8727097235fe3fa558bf73ec6c8c5", + "sha256": "sha256:bytes:a13452fd3e4a7e389f4bf5ef0e79fcd5e029bc12ce8fc329ba29319cd044ae30", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", - "humanLikenessConsent": "not-applicable", - "marks": [], - "reviewedBy": "MoDiff workspace maintainer", - "reviewedAt": "2026-11-20", - "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "40060ba701188a6d287df07e0852c6497d109885495e6fc85a19e8371ef73906", - "publicationBasis": "Maintainer approved both exact Sana Sprint images and redistribution of the redacted review and recipe records.", "creationMethod": "Project-authored redacted retained Gallery review, provenance or registration metadata", "sourceUrl": null, "sourceRevision": null, "sourceLicense": "MoDiff-authored Gallery metadata", "modelTerms": [], "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], "requiredAttribution": [], - "assetLicense": "Apache-2.0" + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-21", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "5a790d4a6c9f82b2e00140b8d1c62fc3721c0b66856e4e2e7f2440890772b0e0", + "publicationBasis": "Maintainer approved the exact Wav2Vec2 transcript, the disclosed limitations and the redacted review and technical records under Apache-2.0. The source WAV is private." }, { "path": "template-gallery/marigold_depth_synthetic_ramp.webp", @@ -10252,6 +10252,50 @@ "publicationBasis": "Register the six approved assets now while Moonflower runs on Linux. Use Windows in parallel wherever possible, and keep the longer workflows separate for AMD cloud.", "provenanceTemplateId": "wan_video_long_showcase" }, + { + "path": "template-gallery/reviews/wav2vec2_station_announcement.quality-review.json", + "sha256": "sha256:bytes:7baa800c8cbcdc9fb820deaa07c82e1755f24720eb00a254753ab487cd02ebf1", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted retained Gallery review, provenance or registration metadata", + "sourceUrl": null, + "sourceRevision": null, + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-21", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "5a790d4a6c9f82b2e00140b8d1c62fc3721c0b66856e4e2e7f2440890772b0e0", + "publicationBasis": "Maintainer approved the exact Wav2Vec2 transcript, the disclosed limitations and the redacted review and technical records under Apache-2.0. The source WAV is private." + }, + { + "path": "template-gallery/reviews/wav2vec2_station_announcement.retained-template-provenance.json", + "sha256": "sha256:bytes:4eb550b72db5b3c48a5dc5a1807067dc92ca77d9c288cbcc6e66e8fe3d15e78c", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted retained Gallery review, provenance or registration metadata", + "sourceUrl": null, + "sourceRevision": null, + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-21", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "5a790d4a6c9f82b2e00140b8d1c62fc3721c0b66856e4e2e7f2440890772b0e0", + "publicationBasis": "Maintainer approved the exact Wav2Vec2 transcript, the disclosed limitations and the redacted review and technical records under Apache-2.0. The source WAV is private." + }, { "path": "template-gallery/reviews/whisper_tiny_blue_cup_transcription.quality-review.json", "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", @@ -13562,6 +13606,33 @@ "publicationBasis": "Register the six approved assets now while Moonflower runs on Linux. Use Windows in parallel wherever possible, and keep the longer workflows separate for AMD cloud.", "provenanceTemplateId": "wan_video_long_showcase" }, + { + "path": "template-gallery/wav2vec2_station_announcement.json", + "sha256": "sha256:bytes:619cc94b2dda660e87ae3c2a684aa2c7e7cc56c6d9b6df86f488ab4eea690751", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Exact retained Wav2Vec2 transcription of a project-authored synthetic station announcement", + "sourceUrl": "https://huggingface.co/facebook/wav2vec2-base-960h/tree/22aad52d435eb6dbaf354bdad9b0da84ce7d6156", + "sourceRevision": "facebook/wav2vec2-base-960h@22aad52d435eb6dbaf354bdad9b0da84ce7d6156", + "sourceLicense": "Project-authored synthetic content processed by the pinned Wav2Vec2 model (Apache-2.0 declaration)", + "modelTerms": [ + "facebook/wav2vec2-base-960h@22aad52d435eb6dbaf354bdad9b0da84ce7d6156 — pinned Hub card Apache-2.0 declaration. https://huggingface.co/facebook/wav2vec2-base-960h/tree/22aad52d435eb6dbaf354bdad9b0da84ce7d6156" + ], + "aiGenerated": true, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "Meta Wav2Vec2 Base 960h. https://huggingface.co/facebook/wav2vec2-base-960h/tree/22aad52d435eb6dbaf354bdad9b0da84ce7d6156" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-21", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "5a790d4a6c9f82b2e00140b8d1c62fc3721c0b66856e4e2e7f2440890772b0e0", + "publicationBasis": "Maintainer approved the exact Wav2Vec2 transcript, the disclosed limitations and the redacted review and technical records under Apache-2.0. The source WAV is private.", + "provenanceTemplateId": "wav2vec2_station_announcement" + }, { "path": "template-gallery/whisper_tiny_blue_cup_transcription.json", "sha256": "sha256:bytes:19ad6ca1cda03c92aa6f86f590a69c052e8bded5c8340189a56c68193c2ed9ec", diff --git a/config/template-assets.v1.json b/config/template-assets.v1.json index 06790bd5..b64b39d2 100644 --- a/config/template-assets.v1.json +++ b/config/template-assets.v1.json @@ -2158,8 +2158,8 @@ }, { "path": "template-gallery/manifest.json", - "size": 240709, - "sha256": "sha256:bytes:7aec0be529d3d015f42cc48d9eea0302afc8727097235fe3fa558bf73ec6c8c5", + "size": 242731, + "sha256": "sha256:bytes:a13452fd3e4a7e389f4bf5ef0e79fcd5e029bc12ce8fc329ba29319cd044ae30", "contentType": "application/json", "purposes": [ "runtime", @@ -4146,6 +4146,24 @@ "runtime" ] }, + { + "path": "template-gallery/reviews/wav2vec2_station_announcement.quality-review.json", + "size": 2461, + "sha256": "sha256:bytes:7baa800c8cbcdc9fb820deaa07c82e1755f24720eb00a254753ab487cd02ebf1", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, + { + "path": "template-gallery/reviews/wav2vec2_station_announcement.retained-template-provenance.json", + "size": 3692, + "sha256": "sha256:bytes:4eb550b72db5b3c48a5dc5a1807067dc92ca77d9c288cbcc6e66e8fe3d15e78c", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, { "path": "template-gallery/reviews/whisper_tiny_blue_cup_transcription.quality-review.json", "size": 2380, @@ -5587,6 +5605,15 @@ "width": 1664, "height": 960 }, + { + "path": "template-gallery/wav2vec2_station_announcement.json", + "size": 1574, + "sha256": "sha256:bytes:619cc94b2dda660e87ae3c2a684aa2c7e7cc56c6d9b6df86f488ab4eea690751", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, { "path": "template-gallery/whisper_tiny_blue_cup_transcription.json", "size": 305, @@ -5664,9 +5691,9 @@ "height": 1024 } ], - "assetSetId": "sha256:canonical-json:1345dca546164326458297b1a75b056cefa8fccb94da13f60301b3ddcd21ca3a", + "assetSetId": "sha256:canonical-json:4434e38c233eb32820d8903661684c0d91b77edf6fae07035a8ea7edd8760651", "status": "ready", - "assetCount": 572, - "totalBytes": 1037681959, + "assetCount": 575, + "totalBytes": 1037691708, "missingAssets": [] } diff --git a/public/template-gallery/manifest.json b/public/template-gallery/manifest.json index d6252d3d..676e65c3 100644 --- a/public/template-gallery/manifest.json +++ b/public/template-gallery/manifest.json @@ -3059,6 +3059,32 @@ "afterPath": "/template-gallery/sana_sprint_monochrome_tiger.webp", "width": 1024, "height": 1024 + }, + { + "templateId": "wav2vec2_station_announcement", + "promptSettingsHash": "ps_583a0762", + "templateLockHash": "tpl_51e4cb19", + "modelRevision": "facebook/wav2vec2-base-960h@22aad52d435eb6dbaf354bdad9b0da84ce7d6156", + "runtimeFingerprint": "sha256:stable-runtime-v1:51bd86273b54d35996cab8f90c9884f84513a199813ecd2dc36f7fb3ab1999f9", + "graphHash": "sha256:canonical-graph-v1:36c5afc09d6f5f3be0cf44ba472bc514313464e2c61616a1c934a254f137c1c1", + "proofLockHash": "sha256:retained-template-association-v1:744bc0abced124474f03240e240b1a820d646757eea3ddccad260b38f33d2261", + "backendSourceFingerprint": "sha256:backend-source-v1:98ee8d4a895829905e82d8fefeea42b93e55c96252a5456561eada6ffef3c764", + "backendContractFingerprint": "sha256:backend-contract-v1:0a28031ff08ae7b2858c04f373cdb65b75ee0a0bf66ba3ccec2a65ee033cdca9", + "modelCommit": "22aad52d435eb6dbaf354bdad9b0da84ce7d6156", + "templateRevisionHash": "fc0cb2cf3751967eb0ab2910d5b17fd0796bdf047cfc48871e5266346d925e37", + "provenancePath": "/template-gallery/reviews/wav2vec2_station_announcement.retained-template-provenance.json", + "provenanceHash": "sha256:canonical-json:d4173d1919726f061fc4c2be89f510f5be75ed176662a579117d434b107ede02", + "outputPath": "/template-gallery/wav2vec2_station_announcement.json", + "thumbnailPath": "/template-gallery/wav2vec2_station_announcement.json", + "mediaHash": "sha256:canonical-json:782f1411a9387b269ccb02331e7b0d916be891a557459e650680afdf53634425", + "mediaType": "json", + "verificationTimestamp": "2026-11-21T03:22:14.027Z", + "qualityReviewPath": "/template-gallery/reviews/wav2vec2_station_announcement.quality-review.json", + "qualityReviewHash": "sha256:canonical-json:25491a0413f46367afc2a7f2bd139809327c90bef1def36728feca3e3f71353d", + "verificationStatus": "reviewed", + "qualityReviewStatus": "approved_reviewed", + "reviewer": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-21T06:49:19.885Z" } ] } diff --git a/scripts/bundle-budget.mjs b/scripts/bundle-budget.mjs index b1aaf3cb..aa575487 100644 --- a/scripts/bundle-budget.mjs +++ b/scripts/bundle-budget.mjs @@ -490,6 +490,8 @@ const SOURCE_LICENSES = new URL('../public/THIRD_PARTY_LICENSES.txt', import.met // 504492/682980/346033 largest/startup/deferred gzip bytes: the reviewed // migration ceilings below still pass with 8/12/304 bytes of headroom. const MAX_STARTUP_CHUNK_GZIP_BYTES = + // Wav2Vec2 registration and role-aware node captions add 1113 bytes (522569 -> 523682). + 1113 + // Generic stage cards and connected Model Setup controls add 435 gzip bytes // (522134 -> 522569). Preserve the previous measured margin. 435 + @@ -755,6 +757,8 @@ const MAX_STARTUP_CHUNK_GZIP_BYTES = // The same build measures 673359 aggregate startup bytes (+45 over the cap). // Keep 19 bytes of headroom; deferred limits and loading boundaries stay fixed. const MAX_STARTUP_GZIP_BYTES = + // The same changes add 1115 aggregate startup bytes (701052 -> 702167). + 1115 + // Generic stage presentation adds 432 startup gzip bytes (700620 -> 701052). 432 + // The pinned Qwen 2.1 Turbo terms add 126 startup gzip bytes (700494 -> 700620). @@ -1081,6 +1085,8 @@ const MAX_DEFERRED_CHUNK_GZIP_BYTES = 64 * 1024; // Startup code differs only in the three verified Dataset descriptor values. // Retain both startup caps, the independent 64 KiB chunk cap and prior headroom. const MAX_DEFERRED_GZIP_BYTES = + // Initial media preview spacing and workflow labels add 148 deferred bytes (354889 -> 355037). + 148 + // The stage and inspector changes add 504 deferred gzip bytes (354385 -> 354889). 504 + // Catalog, adapter, guidance and selection controls add 234 gzip bytes (353986 -> 354220). diff --git a/scripts/graph-visuals.test.mjs b/scripts/graph-visuals.test.mjs index d762a579..415d0f42 100644 --- a/scripts/graph-visuals.test.mjs +++ b/scripts/graph-visuals.test.mjs @@ -1518,6 +1518,58 @@ test('fresh example layout follows its document while initial form settings sett } }); +test('fresh paired image inputs have room for the first previews without changing their saved fields', async () => { + const { exampleWorkflowSnapshotFromGraph, settleExampleWorkflowCanvas } = await server.ssrLoadModule( + '/src/studio/exampleWorkflow.ts', + ); + const flow = flowStoreModule.useFlowStore; + const studio = studioStoreModule.useStudioStore; + const oldFlow = flow.getState(); + const oldStudio = studio.getState(); + const canonical = JSON.parse( + fs.readFileSync( + path.resolve( + process.env.MODIFF_BACKEND_DIR ?? path.join(ROOT, '../MoDiff'), + 'data/graphs/studio/stable-diffusion-pipeline/inpaint.json', + ), + 'utf8', + ), + ); + const original = structuredClone(canonical); + const opened = exampleWorkflowSnapshotFromGraph(canonical, 'default', oldStudio.form); + const nodes = opened.nodes.map((item) => ({ ...item, measured: { width: 400, height: 302 } })); + const sources = nodes.filter((item) => ['node-05', 'node-06'].includes(item.id)); + const initialLayout = graphLayout.arrangeGraphNodes(nodes, opened.edges); + const separation = (items) => + Math.abs(items.find(({ id }) => id === 'node-05').position.y - items.find(({ id }) => id === 'node-06').position.y); + try { + flow.setState({ nodes, edges: opened.edges, layoutRevision: 0 }); + studio.setState({ activeWorkflowTabId: null, workflowCanvasEpoch: 0, workflowFormEpoch: 0 }); + assert.equal(await settleExampleWorkflowCanvas(), true); + const laidOut = flow.getState().nodes; + assert.ok( + separation(laidOut) >= separation(initialLayout) + 200, + 'The blank image stack must have room for a decoded preview and its next file row.', + ); + for (const source of sources) { + const actual = laidOut.find(({ id }) => id === source.id); + assert.deepEqual(actual.data.params, source.data.params); + assert.deepEqual(actual.measured, source.measured); + } + assert.deepEqual(canonical, original); + assert.deepEqual(flow.getState().edges, opened.edges); + await flow.getState().arrangeGraph({ history: false }); + assert.equal( + separation(flow.getState().nodes), + separation(initialLayout), + 'Explicit Arrange stays based on the currently rendered sizes.', + ); + } finally { + flow.setState(oldFlow); + studio.setState(oldStudio); + } +}); + test('graph finalization wait preserves failures and reports a bounded timeout', async () => { const failed = graphFinalization.settleGraphFinalization(Promise.reject(new Error('dynamic field failure'))); const failedResult = await graphFinalization.waitForSettledGraphFinalization(failed, 100); diff --git a/scripts/node-presentation.test.mjs b/scripts/node-presentation.test.mjs index 2cbba85b..1893104a 100644 --- a/scripts/node-presentation.test.mjs +++ b/scripts/node-presentation.test.mjs @@ -80,6 +80,75 @@ test('user titles remain intact and a registry alias uses the executable identit assert.equal(catalog.getNodeCatalogEntry({ ...data, label: 'My border preparation' }).label, 'My border preparation'); }); +test('canonical portable captions display their exact execution action while retaining authored titles and data', () => { + const stock = [ + ['DiffusersAudio', 'Generate', 'Diffusers.GenerateAudio', 'Generate Audio'], + ['DiffusersAudio', 'LoadPipeline', 'Diffusers.LoadPipeline', 'Load Audio Pipeline'], + ['DiffusersImage', 'ControlEdit', 'Diffusers.ControlEdit', 'Edit Image with Control'], + ['DiffusersImage', 'ControlGenerate', 'Diffusers.Control', 'Generate Image with Control'], + ['DiffusersImage', 'ControlInpaint', 'Diffusers.ControlInpaint', 'Inpaint Image with Control'], + ['DiffusersImage', 'Edit', 'Diffusers.Edit', 'Edit Image'], + ['DiffusersImage', 'Generate', 'Diffusers.Generate', 'Generate Image'], + ['DiffusersImage', 'Inpaint', 'Diffusers.Inpaint', 'Inpaint Image'], + ['DiffusersImage', 'LoadPipeline', 'Diffusers.LoadPipeline', 'Load Image Pipeline'], + ['DiffusersThreeD', 'GenerateRenderedArtifact', 'Diffusers.Generate3D', 'Render 3D Orbit'], + ['DiffusersThreeD', 'LoadPipeline', 'Diffusers.LoadPipeline', 'Load 3D Pipeline'], + ['DiffusersVideo', 'Generate', 'Diffusers.Generate', 'Generate Video'], + ['DiffusersVideo', 'GenerateVideoAudio', 'Diffusers.Generate', 'Generate Video and Audio'], + ['DiffusersVideo', 'LoadPipeline', 'Diffusers.LoadPipeline', 'Load Video Pipeline'], + ['ModularDiffusers', 'ModelsLoader', 'Diffusers.LoadPipeline', 'Load Modular Components'], + ]; + for (const [module, action, label, expected] of stock) { + const data = node(module, action, label); + const before = JSON.stringify(data); + assert.equal(presentation.nodeDisplayLabel(data), expected, module + '.' + action); + assert.equal(catalog.nodeCatalogEntryMatchesSearch(catalog.getNodeCatalogEntry(data), label), true); + assert.equal(presentation.nodeDisplayLabel({ ...data, label: label + ' for my scene' }), label + ' for my scene'); + assert.equal(presentation.nodeDisplayLabel({ ...data, module: 'custom.Models' }), label); + assert.equal(JSON.stringify(data), before); + } + const authored = node('DiffusersImage', 'Edit', 'Diffusers.Generate'); + assert.equal(presentation.nodeDisplayLabel(authored), 'Diffusers.Generate'); +}); + +test('stock media loaders show their bound role without changing custom names or unbound palette entries', () => { + const stock = [ + ['Image', 'loadImage', 'Source Image'], + ['Image', 'loadMask', 'Mask'], + ['Image', 'loadControlImage', 'Control Image'], + ['Image', 'loadIPAdapterImage', 'Reference Image'], + ['Image', 'loadLastImage', 'Last Frame'], + ['Audio', 'loadAudio', 'Source Audio'], + ['Audio', 'loadReferenceAudio', 'Reference Audio'], + ['Video', 'loadVideo', 'Source Video'], + ['Video', 'loadReferenceVideo', 'Reference Video'], + ['Video', 'loadControlVideo', 'Control Video'], + ['Video', 'loadMaskVideo', 'Mask Video'], + ['Video', 'loadPoseVideo', 'Pose Video'], + ['Video', 'loadFaceVideo', 'Face Video'], + ['Video', 'loadBackgroundVideo', 'Background Video'], + ]; + for (const [module, studioRole, expected] of stock) { + const label = 'Load ' + module; + const data = { ...node(module, 'Load', label), studioRole }; + const before = JSON.stringify(data); + assert.equal(presentation.nodeDisplayLabel(data), expected); + assert.equal( + presentation.nodeDisplayLabel({ ...data, label: 'Reference from my camera' }), + 'Reference from my camera', + ); + assert.equal(presentation.nodeDisplayLabel({ ...data, studioRole: 'unknownRole' }), label); + assert.equal(presentation.nodeDisplayLabel({ ...data, module: 'custom.Media' }), label); + assert.equal(presentation.nodeDisplayLabel({ ...data, action: 'Clone' }), label); + assert.equal(presentation.nodeDisplayLabel({ ...data, studioRole: undefined }), label); + assert.equal(JSON.stringify(data), before); + } + assert.equal( + presentation.nodeDisplayLabel({ ...node('Audio', 'Load', 'Load Audio'), studioRole: 'loadMask' }), + 'Load Audio', + ); +}); + test('managed image actions show their exact task instead of the shared generation operation title', () => { const cases = [ ['Edit', 'edit_image', 'Edit Image'], diff --git a/scripts/private-speech-evidence.mjs b/scripts/private-speech-evidence.mjs index 81e44cc9..11bd83d5 100644 --- a/scripts/private-speech-evidence.mjs +++ b/scripts/private-speech-evidence.mjs @@ -73,7 +73,7 @@ const media = (inputs, outputs, files) => ({ files, }); -function speechRoute(workflowId) { +export function speechRoute(workflowId) { const route = routes.get(workflowId); assert.ok(route, 'Unsupported private speech evidence route.'); return route; diff --git a/scripts/release-contract-core.mjs b/scripts/release-contract-core.mjs index 5085a390..7cd1ed63 100644 --- a/scripts/release-contract-core.mjs +++ b/scripts/release-contract-core.mjs @@ -675,6 +675,14 @@ export async function exportCanonicalWorkflowGraphs(clientRoot, graphs) { // ledger. Revalidate the original evidence against its exact archived // authoring row. A new or edited standalone capture cannot use that baseline. const RETAINED_AUTHORING_ARCHIVES = new Map([ + [ + 'HuggingFaceCTCSpeechRecognitionModel:speech_to_text', + { + descriptorSha256: '226c35aaf3a811a8077e0caae4b4652daaf332d3c7718a095f238afde982f7ee', + bytes: 3666, + sha256: '16d68385a8e5fad61049a63f68846a1e848e2729d70ff915c5ebb1d704261534', + }, + ], [ 'MarigoldDepthPipeline:depth_estimation', { diff --git a/scripts/retained-gallery-provenance.mjs b/scripts/retained-gallery-provenance.mjs index da3b8072..5e48f697 100644 --- a/scripts/retained-gallery-provenance.mjs +++ b/scripts/retained-gallery-provenance.mjs @@ -42,6 +42,16 @@ const pinsByTemplate = new Map( outputSize: { width: 128, height: 96 }, outputExtension: 'webp', }, + wav2vec2_station_announcement: { + associationSha256: '74534ec594b1fd02b8913ff572fcaf7984b78a2533550ab6e6d58aee11bac514', + backendSourceFingerprint: + 'sha256:backend-source-v1:98ee8d4a895829905e82d8fefeea42b93e55c96252a5456561eada6ffef3c764', + backendContractFingerprint: + 'sha256:backend-contract-v1:0a28031ff08ae7b2858c04f373cdb65b75ee0a0bf66ba3ccec2a65ee033cdca9', + templateRevisionHash: 'fc0cb2cf3751967eb0ab2910d5b17fd0796bdf047cfc48871e5266346d925e37', + capturedAt: '2026-11-21T03:22:14.027Z', + outputExtension: 'json', + }, whisper_tiny_blue_cup_transcription: { associationSha256: '17998ed9f920a3656b4b30178f18b03ef3c709dcaf6e43cfdd7c0804fa5c7b8c', backendSourceFingerprint: diff --git a/scripts/retained-gallery-templates.test.mjs b/scripts/retained-gallery-templates.test.mjs index ec084306..fa091409 100644 --- a/scripts/retained-gallery-templates.test.mjs +++ b/scripts/retained-gallery-templates.test.mjs @@ -278,7 +278,7 @@ test('fresh Expert recipes prepare with current backend specs and without a gene .slice(0, 2) .map(({ key }) => key) .sort(), - ['modules.Audio.Load#1', 'modules.HuggingFaceSpeech.LoadSpeechRecognitionModel#1'], + ['modules.Audio.Load#1', 'modules.HuggingFaceSpeech.' + spec.loaderAction + '#1'], ); assert.equal(paths.length, 1); return { diff --git a/scripts/retained-speech-gallery-evidence.mjs b/scripts/retained-speech-gallery-evidence.mjs index 9402f206..5fb102c1 100644 --- a/scripts/retained-speech-gallery-evidence.mjs +++ b/scripts/retained-speech-gallery-evidence.mjs @@ -2,24 +2,51 @@ import assert from 'node:assert/strict'; import { createHash } from 'node:crypto'; import { canonicalJsonHash } from './canonical-json.mjs'; import { backendContractIdentity, canonicalGraphIdentity } from './live-proof-provenance.mjs'; -import { MAX_SPEECH_TRANSCRIPT_BYTES, MAX_SPEECH_WAV_BYTES } from './private-speech-evidence.mjs'; +import { MAX_SPEECH_TRANSCRIPT_BYTES, MAX_SPEECH_WAV_BYTES, speechRoute } from './private-speech-evidence.mjs'; import { readCanonicalEvidenceFile } from './release-contract-core.mjs'; const digest = (bytes) => createHash('sha256').update(bytes).digest('hex'); -function retainedBackendContract(evidenceRoot, files, graphHash) { +const retainedSpeechTemplates = new Map([ + [ + 'whisper_tiny_blue_cup_transcription', + { + workflowId: 'HuggingFaceSpeechRecognitionModel:speech_to_text', + sourceTaskTemplateId: 'task-template:whisper-tiny:speech-to-text:v1', + }, + ], + [ + 'wav2vec2_station_announcement', + { + workflowId: 'HuggingFaceCTCSpeechRecognitionModel:speech_to_text', + sourceTaskTemplateId: 'task-template:wav2vec2-base-960h:speech-to-text:v1', + }, + ], +]); + +function retainedBackendContract(evidenceRoot, files, graphHash, route) { const readJson = (ref, maxBytes) => { const { bytes } = readCanonicalEvidenceFile(evidenceRoot, ref, maxBytes); return JSON.parse(new TextDecoder('utf-8', { fatal: true }).decode(bytes)); }; const graph = canonicalGraphIdentity(readJson(files.graphRequest)); - assert.equal(graph.hash, graphHash, 'Retained Whisper graph differs from the receipt.'); + assert.equal(graph.hash, graphHash, 'Retained speech graph differs from the receipt.'); const capture = readJson(files.capture, 64 * 1024); const nodes = readJson(capture.nodes); const { contracts, fingerprint } = backendContractIdentity(nodes, graph.canonicalGraph); assert.ok( contracts.length === 4 && contracts.every(({ params }) => Object.keys(params).length > 0), - 'Retained Whisper graph is missing a native node contract.', + 'Retained speech graph is missing a native node contract.', + ); + assert.deepEqual( + contracts.map(({ key }) => key).sort(), + [ + 'modules.Audio.Load', + 'modules.HuggingFaceSpeech.' + route.loader, + 'modules.HuggingFaceSpeech.' + route.consumer, + 'modules.Primitive.DataViewer', + ].sort(), + 'Retained speech graph differs from the reviewed node identities.', ); return fingerprint; } @@ -27,16 +54,35 @@ function retainedBackendContract(evidenceRoot, files, graphHash) { // The caller has already revalidated the private native speech capture. Bind // the exact archived WAV and transport to the separate Gallery JSON bytes. export function verifyRetainedSpeechGalleryEvidence({ recipe, native, galleryOutput, galleryInput }) { - assert.equal(recipe.template.id, 'whisper_tiny_blue_cup_transcription'); - assert.equal(recipe.workflowId, 'HuggingFaceSpeechRecognitionModel:speech_to_text'); - assert.equal(galleryInput, undefined, 'The retained Whisper audio source stays private.'); - const { receipt, provenance, evidenceRoot } = native; + const template = retainedSpeechTemplates.get(recipe.template.id); + assert.ok(template, 'Unsupported retained speech template.'); + assert.equal(recipe.workflowId, template.workflowId, 'Retained speech workflow differs from the reviewed template.'); + assert.equal(recipe.sourceTaskTemplateId, template.sourceTaskTemplateId); + assert.equal(galleryInput, undefined, 'The retained speech audio source stays private.'); + const route = speechRoute(recipe.workflowId); + assert.equal(recipe.template.mode, 'speech_to_text'); + assert.equal(recipe.template.modelType, route.modelType); + assert.deepEqual( + recipe.template.modelArtifact, + { source: 'hub', value: route.repo, revision: route.revision }, + 'Retained speech template model pin differs from the reviewed route.', + ); + const { receipt, provenance, evidenceRoot, descriptorBytes } = native; + assert.ok(Buffer.isBuffer(descriptorBytes), 'Retained speech requires the original evidence descriptor.'); + assert.equal(digest(descriptorBytes), recipe.originalReceiptSha256, 'Retained speech evidence descriptor differs.'); assert.equal(receipt.schemaVersion, 1); assert.equal(receipt.format, 'modiff.canonical-workflow-run-receipt.v1'); assert.equal(receipt.proofKind, 'real_backend_input_bound_model_variant'); assert.equal(receipt.workflowId, recipe.workflowId); assert.equal(receipt.sourceTemplateId, recipe.sourceTaskTemplateId); assert.equal(receipt.task, 'speech_to_text'); + assert.equal(receipt.modelType, route.modelType); + assert.deepEqual( + receipt.modelSet, + [{ repoId: route.repo, revision: route.revision }], + 'Native speech model pin differs from the reviewed route.', + ); + assert.equal(receipt.graphHash, recipe.retainedGraphHash, 'Native speech graph differs from the reviewed recipe.'); assert.equal(provenance.format, 'modiff.input-bound-model-variant-proof.v1'); const { input, output } = provenance.evidenceFiles; @@ -46,23 +92,23 @@ export function verifyRetainedSpeechGalleryEvidence({ recipe, native, galleryOut assert.equal( digest(binding.sourceValue), recipe.inputLocatorSha256, - 'Whisper source locator differs from the retained recipe.', + 'speech source locator differs from the retained recipe.', ); assert.equal(binding.converted, false); - assert.equal(binding.sha256, recipe.inputSha256, 'Whisper WAV differs from the exact recipe.'); + assert.equal(binding.sha256, recipe.inputSha256, 'speech WAV differs from the exact recipe.'); assert.equal(binding.sha256, input.sha256, 'Archived WAV differs from the native input binding.'); assert.equal(binding.byteSize, input.bytes); readCanonicalEvidenceFile(evidenceRoot, input, MAX_SPEECH_WAV_BYTES); const { bytes: transportBytes } = readCanonicalEvidenceFile(evidenceRoot, output, MAX_SPEECH_TRANSCRIPT_BYTES); const sourceOutputHash = 'sha256:bytes:' + output.sha256; - assert.equal(sourceOutputHash, receipt.outputHash, 'Archived Whisper transport differs from the native run.'); + assert.equal(sourceOutputHash, receipt.outputHash, 'Archived speech transport differs from the native run.'); const text = new TextDecoder('utf-8', { fatal: true }).decode(transportBytes); - assert.ok(Buffer.from(text).equals(transportBytes), 'Native Whisper transport must use BOM-free UTF-8.'); + assert.ok(Buffer.from(text).equals(transportBytes), 'Native speech transport must use BOM-free UTF-8.'); const transport = JSON.parse(text); assert.ok( Array.isArray(transport) && transport.length === 1 && typeof transport[0] === 'string', - 'Native Whisper transport must contain one structured result.', + 'Native speech transport must contain one structured result.', ); const { bytes: structuredBytes, ref } = galleryOutput; @@ -78,7 +124,11 @@ export function verifyRetainedSpeechGalleryEvidence({ recipe, native, galleryOut const transcript = JSON.parse(transport[0]); assert.equal(transcript.schemaVersion, 1); assert.equal(transcript.task, 'transcribe'); - assert.equal(transcript.timestampMode, 'segment'); + assert.equal( + transcript.timestampMode, + route.timestamps, + 'Transcript timestamp mode differs from the reviewed route.', + ); assert.ok(Array.isArray(transcript.segments) && transcript.segments.length > 0); assert.deepEqual( receipt.transcriptEvidence, @@ -100,6 +150,11 @@ export function verifyRetainedSpeechGalleryEvidence({ recipe, native, galleryOut outputBytes: structuredBytes.length, }, inputSha256: input.sha256, - backendContractFingerprint: retainedBackendContract(evidenceRoot, provenance.evidenceFiles, receipt.graphHash), + backendContractFingerprint: retainedBackendContract( + evidenceRoot, + provenance.evidenceFiles, + receipt.graphHash, + route, + ), }; } diff --git a/scripts/retained-speech-gallery-evidence.test.mjs b/scripts/retained-speech-gallery-evidence.test.mjs index b3965601..9d74ad34 100644 --- a/scripts/retained-speech-gallery-evidence.test.mjs +++ b/scripts/retained-speech-gallery-evidence.test.mjs @@ -11,7 +11,28 @@ import { verifyRetainedSpeechGalleryEvidence } from './retained-speech-gallery-e const hash = (bytes) => createHash('sha256').update(bytes).digest('hex'); const fileRecord = (path, bytes) => ({ path, bytes: bytes.length, sha256: hash(bytes) }); -function fixture(t) { +const whisper = { + modelType: 'HuggingFaceSpeechRecognitionModel', + templateId: 'whisper_tiny_blue_cup_transcription', + sourceTask: 'task-template:whisper-tiny:speech-to-text:v1', + repo: 'openai/whisper-tiny', + revision: '169d4a4341b33bc18d8881c4b69c2e104e1cc0af', + loader: 'LoadSpeechRecognitionModel', + consumer: 'TranscribeAudio', + timestamps: 'segment', +}; +const wav2vec = { + modelType: 'HuggingFaceCTCSpeechRecognitionModel', + templateId: 'wav2vec2_station_announcement', + sourceTask: 'task-template:wav2vec2-base-960h:speech-to-text:v1', + repo: 'facebook/wav2vec2-base-960h', + revision: '22aad52d435eb6dbaf354bdad9b0da84ce7d6156', + loader: 'LoadCTCSpeechRecognitionModel', + consumer: 'TranscribeCTCAudio', + timestamps: 'word', +}; + +function fixture(t, route = whisper) { const evidenceRoot = mkdtempSync(join(tmpdir(), 'modiff-retained-speech-')); t.after(() => rmSync(evidenceRoot, { recursive: true, force: true })); const store = (path, bytes) => { @@ -22,10 +43,10 @@ function fixture(t) { const transcript = { schemaVersion: 1, task: 'transcribe', - text: 'Private verified recording.', - timestampMode: 'segment', + text: route === wav2vec ? 'READY' : 'Private verified recording.', + timestampMode: route.timestamps, durationSeconds, - segments: [{ text: 'Private verified recording.', start: 0, end: durationSeconds }], + segments: [{ text: route === wav2vec ? 'READY' : 'Private verified recording.', start: 0, end: durationSeconds }], }; const structured = Buffer.from(JSON.stringify(transcript, null, 2)); const wav = Buffer.from( @@ -36,8 +57,8 @@ function fixture(t) { const output = store('native.output.txt', Buffer.from(JSON.stringify([structured.toString('utf8')]))); const stages = [ ['modules.Audio', 'Load'], - ['modules.HuggingFaceSpeech', 'LoadSpeechRecognitionModel'], - ['modules.HuggingFaceSpeech', 'TranscribeAudio'], + ['modules.HuggingFaceSpeech', route.loader], + ['modules.HuggingFaceSpeech', route.consumer], ['modules.Primitive', 'DataViewer'], ]; const nodes = Object.fromEntries( @@ -58,10 +79,19 @@ function fixture(t) { }; const storeJson = (path, value) => store(path, Buffer.from(JSON.stringify(value))); const storeCapture = () => storeJson('capture.json', { nodes: storeJson('nodes.json', registry) }); + const workflowId = route.modelType + ':speech_to_text'; + const descriptorBytes = Buffer.from(JSON.stringify({ schemaVersion: 1, workflowId, graphHash: graph.hash })); const recipe = { - workflowId: 'HuggingFaceSpeechRecognitionModel:speech_to_text', - sourceTaskTemplateId: 'task-template:whisper-tiny:speech-to-text:v1', - template: { id: 'whisper_tiny_blue_cup_transcription' }, + workflowId, + sourceTaskTemplateId: route.sourceTask, + template: { + id: route.templateId, + modelType: route.modelType, + mode: 'speech_to_text', + modelArtifact: { source: 'hub', value: route.repo, revision: route.revision }, + }, + originalReceiptSha256: hash(descriptorBytes), + retainedGraphHash: graph.hash, inputLocatorSha256: hash('local.source.wav'), inputSha256: input.sha256, }; @@ -72,6 +102,8 @@ function fixture(t) { workflowId: recipe.workflowId, task: 'speech_to_text', sourceTemplateId: recipe.sourceTaskTemplateId, + modelType: route.modelType, + modelSet: [{ repoId: route.repo, revision: route.revision }], inputBinding: { field: 'file', sourceValue: 'local.source.wav', @@ -84,7 +116,7 @@ function fixture(t) { transcriptEvidence: { storage: 'native-text-json', durationSeconds, - timestampMode: 'segment', + timestampMode: route.timestamps, segmentCount: 1, }, }; @@ -99,7 +131,7 @@ function fixture(t) { }; const galleryOutput = { bytes: structured, ref: fileRecord('transcript.json', structured) }; return { - args: { recipe, native: { receipt, provenance, evidenceRoot }, galleryOutput }, + args: { recipe, native: { receipt, provenance, evidenceRoot, descriptorBytes }, galleryOutput }, transcript, store, storeJson, @@ -189,3 +221,76 @@ test('rejects a rehashed incomplete native node inventory', (t) => { args.native.provenance.evidenceFiles.capture = storeCapture(); assert.throws(() => verifyRetainedSpeechGalleryEvidence(args), /missing a native node contract/u); }); + +test('verified Wav2Vec2 Gallery proof binds the pinned CTC word result and private WAV', (t) => { + const { args, transcript, backendContractFingerprint } = fixture(t, wav2vec); + const proof = verifyRetainedSpeechGalleryEvidence(args); + assert.deepEqual(proof, { + output: { + mediaType: 'json', + sourceOutputHash: args.native.receipt.outputHash, + outputEncodedSha256: 'sha256:bytes:' + args.galleryOutput.ref.sha256, + decodedMediaHash: 'sha256:canonical-json:' + canonicalJsonHash(transcript), + outputBytes: args.galleryOutput.bytes.length, + }, + inputSha256: args.recipe.inputSha256, + backendContractFingerprint, + }); +}); + +test('a Wav2Vec2 draft cannot substitute another checkpoint, route, or native descriptor', (t) => { + const { args } = fixture(t, wav2vec); + const { recipe, native } = args; + const wrongArtifact = { ...recipe.template.modelArtifact, revision: 'a'.repeat(40) }; + assert.throws( + () => + verifyRetainedSpeechGalleryEvidence({ + ...args, + recipe: { ...recipe, template: { ...recipe.template, modelArtifact: wrongArtifact } }, + }), + /template model pin differs/u, + ); + assert.throws( + () => + verifyRetainedSpeechGalleryEvidence({ + ...args, + recipe: { ...recipe, workflowId: whisper.modelType + ':speech_to_text' }, + }), + /workflow differs from the reviewed template/u, + ); + assert.throws( + () => + verifyRetainedSpeechGalleryEvidence({ ...args, native: { ...native, descriptorBytes: Buffer.from('changed') } }), + /descriptor differs/u, + ); +}); + +test('Wav2Vec2 rejects a consistently rehashed segment result and private audio publication', (t) => { + const { args, transcript, store, wav } = fixture(t, wav2vec); + assert.throws( + () => verifyRetainedSpeechGalleryEvidence({ ...args, galleryInput: { bytes: wav } }), + /audio source stays private/u, + ); + transcript.timestampMode = 'segment'; + const bytes = Buffer.from(JSON.stringify(transcript)); + args.galleryOutput = { bytes, ref: fileRecord('transcript.json', bytes) }; + const output = store('native.output.txt', Buffer.from(JSON.stringify([bytes.toString('utf8')]))); + args.native.provenance.evidenceFiles.output = output; + args.native.receipt.outputHash = 'sha256:bytes:' + output.sha256; + args.native.receipt.transcriptEvidence.timestampMode = 'segment'; + assert.throws(() => verifyRetainedSpeechGalleryEvidence(args), /timestamp mode differs from the reviewed route/u); +}); + +test('Wav2Vec2 rejects substituted Whisper nodes even if the edited graph and node registry agree', (t) => { + const { args, submission, registry, storeCapture, storeJson } = fixture(t, wav2vec); + const previous = 'modules.HuggingFaceSpeech.' + wav2vec.consumer; + const replacement = 'modules.HuggingFaceSpeech.' + whisper.consumer; + submission.nodes['node-3'].action = whisper.consumer; + registry.nodes[replacement] = { ...registry.nodes[previous], action: whisper.consumer }; + delete registry.nodes[previous]; + args.native.provenance.evidenceFiles.capture = storeCapture(); + args.native.provenance.evidenceFiles.graphRequest = storeJson('graph-request.json', submission); + args.native.receipt.graphHash = canonicalGraphIdentity(submission).hash; + args.recipe.retainedGraphHash = args.native.receipt.graphHash; + assert.throws(() => verifyRetainedSpeechGalleryEvidence(args), /differs from the reviewed node identities/u); +}); diff --git a/scripts/retained-template-association.mjs b/scripts/retained-template-association.mjs index e7353f28..b9ea5ae7 100644 --- a/scripts/retained-template-association.mjs +++ b/scripts/retained-template-association.mjs @@ -42,6 +42,18 @@ const WHISPER_LCM_REVIEW_SCOPES = { 'Accepted as a creative dawn reinterpretation with the disclosed terrain changes and stronger alpenglow.', }, }; +const WAV2VEC2_TEMPLATE_ID = 'wav2vec2_station_announcement'; +const WAV2VEC2_REVIEW_SCOPE = { + folder: 'wav2vec2', + proofKind: 'real_backend_input_bound_model_variant', + output: 'transcript.json', + reviewFile: 'review.json', + provenanceFile: 'technical-record.json', + decision: 'accepted_with_disclosed_limitations', + technicalRecipe: 'speech_transcription', + acceptanceStatement: + 'Accepted the exact saved station announcement transcript and word timestamps with the disclosed limitations.', +}; const SANA_TEMPLATE_ID = 'sana_sprint_monochrome_tiger'; const SANA_WORKFLOW_ID = 'SanaSprintPipeline:edit_image'; const SANA_REVIEW_SCOPE_SHA256 = '09c91c7aa04229e591a86849d399dcf557ca61bdecfc3ac25e7b935795113263'; @@ -159,6 +171,50 @@ function verifiedSanaRecipe(draft, native, recipe) { }; } +function verifiedWav2Vec2Recipe(draft, receipt, output, speech) { + assert.equal(draft.status, 'private_review_candidate'); + assert.equal(draft.workflowId, receipt.workflowId); + assert.deepEqual([{ repoId: draft.model.repoId, revision: draft.model.revision }], receipt.modelSet); + assert.equal(draft.model.publisherLicenseDeclaration, 'Apache-2.0'); + assert.equal(draft.platform, 'Windows CUDA'); + assert.equal(draft.graphHash, receipt.graphHash); + assert.equal(draft.runtimeFingerprint, receipt.runtimeFingerprint); + assert.equal(draft.measuredElapsedSeconds, receipt.executionDurationSeconds); + assert.equal(draft.measuredPeakAllocatedBytes, receipt.peakMemoryBytes); + assert.deepEqual(draft.observedSettings, { + timestamps: receipt.transcriptEvidence.timestampMode, + chunkLengthSeconds: 30, + chunkStrideSeconds: 5, + }); + assert.deepEqual(draft.input, { + origin: 'synthetic station announcement', + format: 'PCM16 WAV', + sampleRate: receipt.inputBinding.decodedAudio.sampleRate, + channels: receipt.inputBinding.decodedAudio.shape[1], + durationSeconds: receipt.transcriptEvidence.durationSeconds, + sha256: speech.inputSha256, + }); + assert.deepEqual(draft.output, { + path: WAV2VEC2_REVIEW_SCOPE.output, + mediaType: output.mediaType, + sha256: output.outputEncodedSha256.slice('sha256:bytes:'.length), + byteSize: output.outputBytes, + nativeTransportSha256: output.sourceOutputHash.slice('sha256:bytes:'.length), + projection: 'Exact UTF-8 bytes of the single JSON string in the native text result.', + }); + return { + backendContractFingerprint: speech.backendContractFingerprint, + recipeObservation: { + platform: draft.platform, + modelPublisherLicense: draft.model.publisherLicenseDeclaration, + input: { ...draft.input, galleryScope: 'private_source_hash_only' }, + settings: draft.observedSettings, + transcript: receipt.transcriptEvidence, + outputProjection: draft.output.projection, + }, + }; +} + function verifiedTechnicalRecipe({ scope, recipe, candidate, native, reviewedRecipe, output, speech }) { const { bytes, ref } = reviewedRecipe; const { receipt } = native; @@ -166,6 +222,7 @@ function verifiedTechnicalRecipe({ scope, recipe, candidate, native, reviewedRec assert.equal(ref.sha256, candidate.draftProvenanceSha256); const draft = JSON.parse(bytes); assert.equal(draft.schemaVersion, 1); + if (scope === WAV2VEC2_REVIEW_SCOPE) return verifiedWav2Vec2Recipe(draft, receipt, output, speech); assert.equal(draft.templateId, recipe.template.id); assert.equal(draft.workflowId, receipt.workflowId); assert.equal(draft.sourceTaskContractId, receipt.sourceTemplateId); @@ -270,7 +327,9 @@ export function assessRetainedTemplateAssociation({ ? SPANDREL_SCOPE : template.id === SANA_TEMPLATE_ID ? SANA_REVIEW_SCOPE - : (BOUND_REVIEW_SCOPES[template.id] ?? WHISPER_LCM_REVIEW_SCOPES[template.id]); + : template.id === WAV2VEC2_TEMPLATE_ID + ? WAV2VEC2_REVIEW_SCOPE + : (BOUND_REVIEW_SCOPES[template.id] ?? WHISPER_LCM_REVIEW_SCOPES[template.id]); assert.ok(scope, 'Retained Gallery template scope is not reviewed.'); const { evidence, receipt, evidenceRoot, descriptorBytes } = native; assert.equal(candidate.templateId, template.id); @@ -469,7 +528,9 @@ export function assessRetainedTemplateAssociation({ // does not supply template or resource fields to the original native run. export function finalizeRetainedQualityReview({ association, draft, reviewer, reviewedAt }) { const spandrel = association.templateId === SPANDREL_TEMPLATE_ID; - if (spandrel) assert.equal(draft.ratingMethod, 'maintainer_qualitative_acceptance'); + const wav2vec2 = association.templateId === WAV2VEC2_TEMPLATE_ID; + const qualitative = spandrel || wav2vec2; + if (qualitative) assert.equal(draft.ratingMethod, 'maintainer_qualitative_acceptance'); const bindings = { templateId: association.templateId, templateLockHash: association.galleryTemplateLockHash, @@ -488,7 +549,7 @@ export function finalizeRetainedQualityReview({ association, draft, reviewer, re reviewStatus: 'approved_reviewed', reviewer, reviewedAt, - ...(spandrel ? { ratingMethod: draft.ratingMethod } : {}), + ...(qualitative ? { ratingMethod: draft.ratingMethod } : {}), rubric: draft.rubric, scores: draft.scores, hardFailures: draft.hardFailures, @@ -506,7 +567,9 @@ export function finalizeRetainedQualityReview({ association, draft, reviewer, re statement: (association.templateId === SANA_TEMPLATE_ID ? SANA_REVIEW_SCOPE.acceptanceStatement - : WHISPER_LCM_REVIEW_SCOPES[association.templateId]?.acceptanceStatement) ?? + : wav2vec2 + ? WAV2VEC2_REVIEW_SCOPE.acceptanceStatement + : WHISPER_LCM_REVIEW_SCOPES[association.templateId]?.acceptanceStatement) ?? (spandrel ? 'Accepted as a technical preview of the exact saved synthetic gradient and 2× delivery with the disclosed limitations.' : 'Accepted as a technical depth preview with the reviewed scores and the disclosed limits of the synthetic ramp.'), @@ -518,6 +581,29 @@ export function finalizeRetainedQualityReview({ association, draft, reviewer, re return review; } +function projectApprovedWav2Vec2Review(original, receipt, template) { + assert.equal(original.schemaVersion, 1); + assert.equal(original.reviewStatus, 'pending_review'); + assert.equal(original.approved, false); + assert.equal(original.redistributionApproved, false); + const [contentCheck, timingCheck, receiptCheck] = original.observations; + return { + schemaVersion: 2, + outputSha256: original.outputSha256, + graphHash: receipt.graphHash, + runtimeFingerprint: receipt.runtimeFingerprint, + modelRevision: template.modelArtifact.value + '@' + template.modelArtifact.revision, + ratingMethod: 'maintainer_qualitative_acceptance', + rubric: { taskAdherence: null, artifactControl: null, modalityQuality: null }, + scores: { promptAdherence: null, composition: null, technicalExecution: null, templateUsefulness: null }, + hardFailures: [], + objectiveChecks: { status: 'pass', checks: [receiptCheck] }, + modalityReview: { status: 'pass', checks: [contentCheck, timingCheck] }, + summary: original.observations.join(' '), + knownLimitations: original.limitations, + }; +} + async function readReviewBatch({ approvalRoot, vite, nativeBySha, scopes, approvalSha256 }) { const approvalPath = join(approvalRoot, 'approval.v1.json'); if (!existsSync(approvalPath)) return []; @@ -557,7 +643,9 @@ async function readReviewBatch({ approvalRoot, vite, nativeBySha, scopes, approv recipe.reviewedTemplateSha256, 'The staged template definition differs from the reviewed recipe.', ); - const names = [scope.output, 'proposed-review.json', 'proposed-provenance.json']; + const reviewFile = scope.reviewFile ?? 'proposed-review.json'; + const provenanceFile = scope.provenanceFile ?? 'proposed-provenance.json'; + const names = [scope.output, reviewFile, provenanceFile]; if (scope.input) names.push(scope.input); assert.ok(Array.isArray(candidate.files) && candidate.files.length === names.length); const files = new Map( @@ -573,12 +661,14 @@ async function readReviewBatch({ approvalRoot, vite, nativeBySha, scopes, approv return [name, { ref, ...readCanonicalEvidenceFile(join(approvalRoot, 'reviewed'), ref, 2 * 1024 * 1024) }]; }), ); - assert.equal(files.get('proposed-review.json').ref.sha256, candidate.draftReviewSha256); - assert.equal(files.get('proposed-provenance.json').ref.sha256, candidate.draftProvenanceSha256); + assert.equal(files.get(reviewFile).ref.sha256, candidate.draftReviewSha256); + assert.equal(files.get(provenanceFile).ref.sha256, candidate.draftProvenanceSha256); const native = nativeBySha.get(recipe.originalReceiptSha256); assert.ok(native, 'The approved original native receipt could not be verified.'); const media = files.get(scope.output); - const draft = JSON.parse(files.get('proposed-review.json').bytes); + const original = JSON.parse(files.get(reviewFile).bytes); + const wav2vec2 = scope === WAV2VEC2_REVIEW_SCOPE; + const draft = wav2vec2 ? projectApprovedWav2Vec2Review(original, native.receipt, template) : original; assert.equal(draft.outputSha256, media.ref.sha256); assert.equal(draft.graphHash, native.receipt.graphHash); assert.equal(draft.runtimeFingerprint, native.receipt.runtimeFingerprint); @@ -587,7 +677,7 @@ async function readReviewBatch({ approvalRoot, vite, nativeBySha, scopes, approv !draft.reviewer && !draft.reviewedAt, 'The reviewed draft must preserve original pending review metadata.', ); - if (scope.technicalRecipe) { + if (scope.technicalRecipe && !wav2vec2) { assert.deepEqual(draft.scores, candidate.reviewedScores); assert.equal(draft.schemaVersion, 2); if (scope.input) { @@ -601,14 +691,14 @@ async function readReviewBatch({ approvalRoot, vite, nativeBySha, scopes, approv native, galleryOutput: media, galleryInput: scope.input ? files.get(scope.input) : undefined, - reviewedRecipe: files.get('proposed-provenance.json'), + reviewedRecipe: files.get(provenanceFile), catalogLock: { templateLockHash: getTemplateLockHash(template), galleryTemplateLockHash: getTemplateLockHash(template, draft.modelRevision), promptSettingsHash: getPromptSettingsHash(settings), }, }); - assert.equal(draft.decodedMediaHash, association.output.decodedMediaHash); + if (!wav2vec2) assert.equal(draft.decodedMediaHash, association.output.decodedMediaHash); const qualityReview = finalizeRetainedQualityReview({ association, draft, @@ -642,6 +732,14 @@ export function readApprovedWhisperLcmBatch(args) { }); } +export function readApprovedWav2Vec2Review(args) { + return readReviewBatch({ + ...args, + scopes: { [WAV2VEC2_TEMPLATE_ID]: WAV2VEC2_REVIEW_SCOPE }, + approvalSha256: '5a790d4a6c9f82b2e00140b8d1c62fc3721c0b66856e4e2e7f2440890772b0e0', + }); +} + export async function readApprovedSanaReview({ approvalRoot, vite, nativeBySha }) { const approvalPath = join(approvalRoot, 'approval.v1.json'); if (!existsSync(approvalPath)) return null; @@ -745,7 +843,13 @@ export async function readReviewedBoundTemplateAssociations({ approvalRoot, vite nativeBySha, }); const sana = await readApprovedSanaReview({ approvalRoot: join(approvalRoot, 'sana-sprint'), vite, nativeBySha }); - const records = sana ? [...current, ...audited, sana] : [...current, ...audited]; + const wav2vec2 = await readApprovedWav2Vec2Review({ + approvalRoot: join(approvalRoot, 'wav2vec2'), + vite, + nativeBySha, + }); + const records = [...current, ...audited, ...wav2vec2]; + if (sana) records.push(sana); const associations = new Map(); for (const { association } of records) { assert.ok(!associations.has(association.workflowId), 'Retained Gallery workflow association is duplicated.'); diff --git a/scripts/task-template-contracts.test.mjs b/scripts/task-template-contracts.test.mjs index 52f5a94d..a8a3ce12 100644 --- a/scripts/task-template-contracts.test.mjs +++ b/scripts/task-template-contracts.test.mjs @@ -2632,6 +2632,13 @@ test('managed speech authoring uses exact backend timestamp options without rewr studio.getState().updateForm({ modelType: ctc }); assert.equal(studio.getState().form.speechTimestamps, 'word'); + const templateFor = (modelType) => ({ id: 'speech-template-fixture', modelType, mode: 'speech_to_text', prompt: '' }); + studio.getState().applyTemplate(templateFor(ctc), { sourceAudio: ['@data/audio/template-input.wav'] }); + assert.equal(studio.getState().form.speechTimestamps, 'word', 'Fresh CTC templates must use the CTC node default'); + assert.deepEqual(studio.getState().form.sourceAudio, ['@data/audio/template-input.wav']); + studio.getState().applyTemplate(templateFor(whisper)); + assert.equal(studio.getState().form.speechTimestamps, 'segment', 'Fresh Whisper templates retain segment timestamps'); + // Loading a persisted draft does not take the explicit task/model authoring path. studio.setState({ form: { ...studio.getState().form, speechTimestamps: 'segment' } }); studio.getState().updateForm({ sourceAudio: ['@data/audio/old-input.wav'] }); diff --git a/scripts/template-gallery-harness.test.mjs b/scripts/template-gallery-harness.test.mjs index 40257c9f..11ed554f 100644 --- a/scripts/template-gallery-harness.test.mjs +++ b/scripts/template-gallery-harness.test.mjs @@ -1110,10 +1110,11 @@ test('public provenance redacts removable Linux mounts while retaining public an }); test('gallery harness loads all Studio templates from the TypeScript runtime', () => { - assert.equal(runtime.templates.length, 97); + assert.equal(runtime.templates.length, 98); const ids = new Set(runtime.templates.map((template) => template.id)); - assert.equal(ids.size, 97); + assert.equal(ids.size, 98); assert.ok(ids.has('whisper_tiny_blue_cup_transcription')); + assert.ok(ids.has('wav2vec2_station_announcement')); assert.ok(ids.has('lcm_dawn_alpine_lake')); assert.ok(ids.has('sana_sprint_monochrome_tiger')); assert.ok(ids.has('spandrel_x2_synthetic_gradient')); diff --git a/src/stores/useFlowStore.ts b/src/stores/useFlowStore.ts index 30c9fbff..d7fb50e1 100644 --- a/src/stores/useFlowStore.ts +++ b/src/stores/useFlowStore.ts @@ -182,6 +182,7 @@ export type ReplaceGraphOptions = FlowGraphReplacementOptions & { export type ArrangeGraphOptions = { history?: boolean; + reserveFirstImagePreviewSpace?: boolean; }; export type FlowStore = { @@ -2564,7 +2565,7 @@ export const useFlowStore = create()( arrangeGraph: async (options = {}) => { const applyLayout = () => { set((state) => { - const arranged = arrangeGraphNodes(state.nodes, state.edges).map((node) => { + const arranged = arrangeGraphNodes(state.nodes, state.edges, options).map((node) => { const instance = node.data.blockInstanceV2; if (!instance) return node; return { diff --git a/src/stores/useStudioStore.ts b/src/stores/useStudioStore.ts index f3c80754..edbc65cd 100644 --- a/src/stores/useStudioStore.ts +++ b/src/stores/useStudioStore.ts @@ -1788,19 +1788,21 @@ export const useStudioStore = create { - const form = resolveStudioResourceForm({ - ...state.form, - ...defaults, - ...presetValues, - ...lockedValues, - // Missing legacy template storage means native, not the prior tab selection. - weightFormat: lockedValues.weightFormat, - ...inputDefaults, - mode: template.mode, - modelType: template.modelType, - prompt: template.prompt, - negativePrompt: template.negativePrompt ?? lockedValues.negativePrompt, - }); + const form = resolveStudioResourceForm( + normalizeAuthoredSpeechTimestamps({ + ...state.form, + ...defaults, + ...presetValues, + ...lockedValues, + // Missing legacy template storage means native, not the prior tab selection. + weightFormat: lockedValues.weightFormat, + ...inputDefaults, + mode: template.mode, + modelType: template.modelType, + prompt: template.prompt, + negativePrompt: template.negativePrompt ?? lockedValues.negativePrompt, + }), + ); return { selectedMode: template.mode, activeTemplateId: template.id, diff --git a/src/studio/exampleWorkflow.ts b/src/studio/exampleWorkflow.ts index 0824e137..f75ab944 100644 --- a/src/studio/exampleWorkflow.ts +++ b/src/studio/exampleWorkflow.ts @@ -54,7 +54,7 @@ export async function settleExampleWorkflowCanvas() { assertWorkflowOperationContext(context, { includeForm: false }); if (!measured) throw new Error('The example controls did not finish measuring. Reopen the example to retry its layout.'); - await useFlowStore.getState().arrangeGraph({ history: false }); + await useFlowStore.getState().arrangeGraph({ history: false, reserveFirstImagePreviewSpace: true }); await new Promise((resolve) => window.requestAnimationFrame(() => window.requestAnimationFrame(() => resolve())), ); diff --git a/src/studio/retainedGalleryTemplates.ts b/src/studio/retainedGalleryTemplates.ts index 931cc949..8c4429b4 100644 --- a/src/studio/retainedGalleryTemplates.ts +++ b/src/studio/retainedGalleryTemplates.ts @@ -546,4 +546,85 @@ export const RETAINED_GALLERY_TEMPLATES = [ }, }, }, + { + workflowId: 'HuggingFaceCTCSpeechRecognitionModel:speech_to_text', + sourceTaskTemplateId: 'task-template:wav2vec2-base-960h:speech-to-text:v1', + retainedGraphHash: 'sha256:canonical-graph-v1:36c5afc09d6f5f3be0cf44ba472bc514313464e2c61616a1c934a254f137c1c1', + originalReceiptSha256: '226c35aaf3a811a8077e0caae4b4652daaf332d3c7718a095f238afde982f7ee', + reviewedTemplateSha256: 'fc0cb2cf3751967eb0ab2910d5b17fd0796bdf047cfc48871e5266346d925e37', + reviewedCatalogLock: { + templateLockHash: 'tpl_a1f95a4a', + galleryTemplateLockHash: 'tpl_51e4cb19', + promptSettingsHash: 'ps_583a0762', + }, + inputSha256: '534bf47b7a715e5637443eaf7175e0b2e5288504beb8d8a09d25ee6c66c8d4f8', + inputLocatorSha256: 'b5a6579a0125be7bd9aec165e3f22c0c054f598e4aaaf00b9bf53decbd4f6e18', + template: { + id: 'wav2vec2_station_announcement', + label: 'Wav2Vec2 — Station Announcement', + modelDisplayName: 'Wav2Vec2 Base 960h', + mode: 'speech_to_text', + modelType: 'HuggingFaceCTCSpeechRecognitionModel', + intentGroup: 'utility', + category: 'audio_edit', + tags: ['transcription', 'word timestamps', 'JSON'], + difficulty: 'starter', + readinessPolicy: 'requires_input', + outputKinds: ['json'], + inputBindings: [ + { + id: 'source-audio', + label: 'Source audio', + mediaType: 'audio', + origin: 'user', + requiredAt: 'workflow_start', + field: 'sourceAudio', + count: 1, + }, + ], + mediaSlots: [ + { + id: 'result', + label: 'Transcript and word timestamps', + kind: 'json', + role: 'output', + placeholder: 'Transcript pending', + }, + ], + requiredBackendCapabilities: [ + 'modules.Audio.Load', + 'modules.HuggingFaceSpeech.LoadCTCSpeechRecognitionModel', + 'modules.HuggingFaceSpeech.TranscribeCTCAudio', + 'modules.Primitive.DataViewer', + ], + modelArtifact: { + source: 'hub', + value: 'facebook/wav2vec2-base-960h', + revision: '22aad52d435eb6dbaf354bdad9b0da84ce7d6156', + }, + runtimeReuseKey: 'HuggingFaceCTCSpeechRecognitionModel:float32:none:resident:none', + description: 'Transcribe a short English audio file and inspect timestamps for each word.', + recipeSummary: 'Load audio, transcribe with Wav2Vec2, and inspect the structured result.', + prompt: '', + example: { + mediaType: 'json', + status: 'unverified', + modelRevision: '22aad52d435eb6dbaf354bdad9b0da84ce7d6156', + lockedSeed: 42, + lockedSettings: { + width: 1, + height: 1, + steps: 1, + guidanceScale: 0, + dtype: 'float32', + resourceMode: 'expert', + quantizationMode: 'none', + autoOffload: false, + offloadMode: 'none', + }, + runtimeEstimate: '1.95 seconds in the retained Windows CUDA run', + notes: 'One clean synthetic English recording. Word timestamps were checked for order and bounds.', + }, + }, + }, ] as const satisfies readonly RetainedGalleryRecipe[]; diff --git a/src/studio/templateAssetSource.json b/src/studio/templateAssetSource.json index 3955c659..7c623914 100644 --- a/src/studio/templateAssetSource.json +++ b/src/studio/templateAssetSource.json @@ -4,11 +4,11 @@ "localBasePath": "/template-gallery", "repoType": "dataset", "repoId": "sourav-das/modiff-template-gallery", - "revision": "b3796d7eedd09df37bef63e99f3ef46a677deebd", + "revision": "decf9bd7ae2db2fe2aabfe729ecaca2765965436", "pathPrefix": "template-gallery", "assetManifestPath": "_modiff/template-assets.v1.json", - "assetSetId": "sha256:canonical-json:f75071fbeaea2c6db64f9345902e65c4860656ddac526ffecb2b02ad09c8ec0e", - "completeAssetSetId": "sha256:canonical-json:1345dca546164326458297b1a75b056cefa8fccb94da13f60301b3ddcd21ca3a", + "assetSetId": "sha256:canonical-json:a509793eeac8658e1ea9c9a69f6f83524a8a1c87bccb93ef9f0832810258885f", + "completeAssetSetId": "sha256:canonical-json:4434e38c233eb32820d8903661684c0d91b77edf6fae07035a8ea7edd8760651", "unavailableAssets": [ "template-gallery/ace_step_chinese_new_year_lora.card-poster.png", "template-gallery/ace_step_chinese_new_year_lora.wav", diff --git a/src/studio/types.ts b/src/studio/types.ts index a13d29f4..69b02d72 100644 --- a/src/studio/types.ts +++ b/src/studio/types.ts @@ -256,6 +256,7 @@ export type StudioTemplateId = | 'smollm2_rain_gauge' | 'spandrel_x2_synthetic_gradient' | 'whisper_tiny_blue_cup_transcription' + | 'wav2vec2_station_announcement' | 'lcm_dawn_alpine_lake' | 'sana_sprint_monochrome_tiger' | 'minimax_h3_image_old_town_cat' diff --git a/src/workflow/graphLayout.ts b/src/workflow/graphLayout.ts index 05d6584f..a6a2714b 100644 --- a/src/workflow/graphLayout.ts +++ b/src/workflow/graphLayout.ts @@ -6,7 +6,9 @@ export const GRAPH_LAYOUT_HORIZONTAL_GAP = 140; export const GRAPH_LAYOUT_VERTICAL_GAP = 72; type Size = { width: number; height: number }; +type SizeOfNode = (node: CustomNodeType) => Size; type Point = { x: number; y: number }; +type GraphLayoutOptions = { reserveFirstImagePreviewSpace?: boolean }; type Component = { id: number; @@ -55,6 +57,25 @@ export function graphNodeSize(node: CustomNodeType): Size { }; } +function firstImagePreviewSpace(node: CustomNodeType): number { + const file = node.data.params.file; + if ( + node.parentId || + node.data.type !== 'custom' || + node.data.module !== 'modules.Image' || + node.data.action !== 'Load' || + file?.display !== 'filebrowser' || + file.hidden + ) + return 0; + const values = Array.isArray(file.value) ? file.value : [file.value]; + if (values.some((value) => typeof value === 'string' && value.trim())) return 0; + // FileBrowserField adds a 360px × 16:9 preview and a spare filename row + // once the first image is bound. Allow their combined height in the + // initial Example spacing without changing the node's measured size. + return 240; +} + function tarjanComponents(ids: string[], adjacency: Map>) { let index = 0; const indices = new Map(); @@ -168,7 +189,7 @@ function reorderRanks( } } -function layoutLevel(nodes: CustomNodeType[], pairs: Array<[string, string]>): Map { +function layoutLevel(nodes: CustomNodeType[], pairs: Array<[string, string]>, sizeOf: SizeOfNode): Map { const ids = nodes.map((node) => node.id); const idSet = new Set(ids); const adjacency = new Map(ids.map((id) => [id, new Set()])); @@ -181,7 +202,7 @@ function layoutLevel(nodes: CustomNodeType[], pairs: Array<[string, string]>): M const componentByNode = new Map(); const components = rawComponents.map((members, id) => { members.forEach((member) => componentByNode.set(member, id)); - const sizes = members.map((member) => graphNodeSize(nodeById.get(member)!)); + const sizes = members.map((member) => sizeOf(nodeById.get(member)!)); return { id, members, @@ -248,7 +269,7 @@ function layoutLevel(nodes: CustomNodeType[], pairs: Array<[string, string]>): M const component = components[componentId]!; let memberY = y; component.members.forEach((member) => { - const size = graphNodeSize(nodeById.get(member)!); + const size = sizeOf(nodeById.get(member)!); positions.set(member, { x: (rankX.get(rank) ?? 0) + (component.width - size.width) / 2, y: memberY, @@ -288,8 +309,18 @@ function containerPadding(node: CustomNodeType | undefined) { * out first, containers are resized, and then each container participates as a * single node in its parent's topology. */ -export function arrangeGraphNodes(nodes: CustomNodeType[], edges: Edge[]): CustomNodeType[] { +export function arrangeGraphNodes( + nodes: CustomNodeType[], + edges: Edge[], + options: GraphLayoutOptions = {}, +): CustomNodeType[] { if (nodes.length < 2) return nodes; + const sizeOf: SizeOfNode = options.reserveFirstImagePreviewSpace + ? (node) => { + const size = graphNodeSize(node); + return { ...size, height: size.height + firstImagePreviewSpace(node) }; + } + : graphNodeSize; // V2 internals are a derived hierarchical projection, not independent graph // documents. Moving/resizing them here bypasses their durable presentation // and competes with the recursive Block fitter. Arrange each V2 root as one @@ -326,7 +357,7 @@ export function arrangeGraphNodes(nodes: CustomNodeType[], edges: Edge[]): Custo pairKeys.add(key); pairs.push([source, target]); }); - const positions = layoutLevel(levelNodes, pairs); + const positions = layoutLevel(levelNodes, pairs, sizeOf); const parent = parentId ? nextById.get(parentId) : undefined; const padding = containerPadding(parent); levelNodes.forEach((node) => { diff --git a/src/workflow/nodePresentation.ts b/src/workflow/nodePresentation.ts index d2284f11..b0ded844 100644 --- a/src/workflow/nodePresentation.ts +++ b/src/workflow/nodePresentation.ts @@ -8,26 +8,27 @@ type Presentation = { label: string; previous: string[]; imageGeneration?: true const PRESENTATIONS: Record = { 'modules.Audio.Load': { label: 'Load Audio', previous: ['Load'] }, 'modules.Image.Load': { label: 'Load Image', previous: ['Load'] }, + 'modules.Video.Load': { label: 'Load Video', previous: ['Load'] }, 'modules.ModularDiffusers.ModelsLoader': { label: 'Load Modular Components', - previous: ['Load Models', 'Load model'], + previous: ['Load Models', 'Load model', 'Diffusers.LoadPipeline'], }, 'modules.ModularDiffusers.AutoModelLoader': { label: 'Load Model Component', previous: ['Load Model'] }, 'modules.DiffusersImage.LoadPipeline': { label: 'Load Image Pipeline', - previous: ['Load Diffusers Image Pipeline', 'Load pipeline'], + previous: ['Load Diffusers Image Pipeline', 'Load pipeline', 'Diffusers.LoadPipeline'], }, 'modules.DiffusersAudio.LoadPipeline': { label: 'Load Audio Pipeline', - previous: ['Load Diffusers Audio Pipeline', 'Load pipeline'], + previous: ['Load Diffusers Audio Pipeline', 'Load pipeline', 'Diffusers.LoadPipeline'], }, 'modules.DiffusersVideo.LoadPipeline': { label: 'Load Video Pipeline', - previous: ['Load Diffusers Video Pipeline', 'Load pipeline'], + previous: ['Load Diffusers Video Pipeline', 'Load pipeline', 'Diffusers.LoadPipeline'], }, 'modules.DiffusersThreeD.LoadPipeline': { label: 'Load 3D Pipeline', - previous: ['Load Diffusers 3D Pipeline', 'Load 3D pipeline'], + previous: ['Load Diffusers 3D Pipeline', 'Load 3D pipeline', 'Diffusers.LoadPipeline'], }, 'modules.DiffusersVideo.WanVACELoadPipeline': { label: 'Load Wan VACE Pipeline', @@ -35,11 +36,11 @@ const PRESENTATIONS: Record = { }, 'modules.DiffusersImage.Generate': { label: 'Generate Image', - previous: ['Diffusers Image Generate', 'Generate image'], + previous: ['Diffusers Image Generate', 'Generate image', 'Diffusers.Generate'], }, 'modules.DiffusersAudio.Generate': { label: 'Generate Audio', - previous: ['Diffusers Audio Generate', 'Generate audio'], + previous: ['Diffusers Audio Generate', 'Generate audio', 'Diffusers.GenerateAudio'], }, 'modules.DiffusersImage.LoadAdapter': { label: 'Load Image Adapter', @@ -51,7 +52,7 @@ const PRESENTATIONS: Record = { }, 'modules.DiffusersThreeD.GenerateRenderedArtifact': { label: 'Render 3D Orbit', - previous: ['Diffusers 3D Rendered Generate', 'Render 3D orbit'], + previous: ['Diffusers 3D Rendered Generate', 'Render 3D orbit', 'Diffusers.Generate3D'], }, 'modules.Video.LyricOverlay': { label: 'Add Timed Lyrics', @@ -64,27 +65,27 @@ const PRESENTATIONS: Record = { }, 'modules.DiffusersImage.ControlGenerate': { label: 'Generate Image with Control', - previous: ['Diffusers Control Generate', 'Generate image'], + previous: ['Diffusers Control Generate', 'Generate image', 'Diffusers.Control'], imageGeneration: true, }, 'modules.DiffusersImage.Edit': { label: 'Edit Image', - previous: ['Diffusers Image Edit', 'Edit image'], + previous: ['Diffusers Image Edit', 'Edit image', 'Diffusers.Edit'], imageGeneration: true, }, 'modules.DiffusersImage.ControlEdit': { label: 'Edit Image with Control', - previous: ['Diffusers Control Edit', 'Edit image'], + previous: ['Diffusers Control Edit', 'Edit image', 'Diffusers.ControlEdit'], imageGeneration: true, }, 'modules.DiffusersImage.Inpaint': { label: 'Inpaint Image', - previous: ['Diffusers Image Inpaint', 'Inpaint'], + previous: ['Diffusers Image Inpaint', 'Inpaint', 'Diffusers.Inpaint'], imageGeneration: true, }, 'modules.DiffusersImage.ControlInpaint': { label: 'Inpaint Image with Control', - previous: ['Diffusers Control Inpaint', 'Edit image'], + previous: ['Diffusers Control Inpaint', 'Edit image', 'Diffusers.ControlInpaint'], imageGeneration: true, }, 'modules.DiffusersImage.LayerDecompose': { @@ -107,7 +108,7 @@ const PRESENTATIONS: Record = { 'modules.Spandrel.Upscaler': { label: 'Upscale Image or Video', previous: ['Upscale with model'] }, 'modules.DiffusersVideo.Generate': { label: 'Generate Video', - previous: ['Diffusers Video Generate', 'Generate video'], + previous: ['Diffusers Video Generate', 'Generate video', 'Diffusers.Generate'], }, 'modules.DiffusersVideo.GenerateShotJob': { label: 'Generate Video Shot', @@ -123,7 +124,29 @@ const PRESENTATIONS: Record = { }, 'modules.DiffusersVideo.GenerateVideoAudio': { label: 'Generate Video and Audio', - previous: ['Diffusers Video + Audio Generate', 'Generate video + audio'], + previous: ['Diffusers Video + Audio Generate', 'Generate video + audio', 'Diffusers.Generate'], + }, +}; + +// The generic loader can serve distinct workflow inputs. Use the authored +// role when present; its generic catalog entry carries no workflow role. +const MEDIA_ROLE_CAPTIONS: Record> = { + 'modules.Image.Load': { + loadImage: 'Source Image', + loadMask: 'Mask', + loadControlImage: 'Control Image', + loadIPAdapterImage: 'Reference Image', + loadLastImage: 'Last Frame', + }, + 'modules.Audio.Load': { loadAudio: 'Source Audio', loadReferenceAudio: 'Reference Audio' }, + 'modules.Video.Load': { + loadVideo: 'Source Video', + loadReferenceVideo: 'Reference Video', + loadControlVideo: 'Control Video', + loadMaskVideo: 'Mask Video', + loadPoseVideo: 'Pose Video', + loadFaceVideo: 'Face Video', + loadBackgroundVideo: 'Background Video', }, }; @@ -173,8 +196,23 @@ export function imageActionCaption(operation: Pick): string { +export function nodeDisplayLabel( + node: Pick, +): string { const identity = `${node.module}.${node.action}`; + const presentation = PRESENTATIONS[identity]; + const roleLabels = MEDIA_ROLE_CAPTIONS[identity]; + const roleLabel = node.studioRole ? roleLabels?.[node.studioRole] : undefined; + if ( + presentation && + typeof roleLabel === 'string' && + (!node.label || + node.label === identity || + node.label === presentation.label || + presentation.previous.includes(node.label)) + ) { + return roleLabel; + } const operation = node.operationAuthoring?.operation; if (node.operationAuthoring && node.label) { // The starter derives this default from the shared operation ID. Refine @@ -183,7 +221,6 @@ export function nodeDisplayLabel(node: Pick Date: Sat, 21 Nov 2026 12:46:32 +0530 Subject: [PATCH 286/440] Test the reviewed Wav2Vec2 title and exact model label --- scripts/modiff-template.test.mjs | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/scripts/modiff-template.test.mjs b/scripts/modiff-template.test.mjs index 1345a42f..dbdc1324 100644 --- a/scripts/modiff-template.test.mjs +++ b/scripts/modiff-template.test.mjs @@ -4579,12 +4579,16 @@ test('every template name identifies its exact model and operation', () => { template.mode === 'image_upscale' && template.modelType === 'SpandrelImageUpscale' ? `Spandrel ${modelName}` : modelName; - // Keep the archived title of the exact reviewed Sana recipe. Its detailed - // card has separate model and operation labels, including the 0.6B variant. + // The archived review titles are exact. The card identifies each variant + // and operation separately. if (template.id === 'sana_sprint_monochrome_tiger') { assert.equal(template.label, 'Sana Sprint — Monochrome Tiger'); assert.equal(modelLabel, 'Sana Sprint 0.6B'); assert.equal(template.mode, 'edit_image'); + } else if (template.id === 'wav2vec2_station_announcement') { + assert.equal(template.label, 'Wav2Vec2 — Station Announcement'); + assert.equal(modelLabel, 'Wav2Vec2 Base 960h'); + assert.equal(template.mode, 'speech_to_text'); } else { assert.ok(template.label.startsWith(`${modelLabel} — `), `${template.id} must begin with its model name`); } From 2d5b7a14c91571b9f5d935d640b9de00b46f58b9 Mon Sep 17 00:00:00 2001 From: Sourav Das Date: Sat, 21 Nov 2026 12:54:35 +0530 Subject: [PATCH 287/440] Verify pinned SDXL Edit native source receipts --- scripts/private-image-edit-evidence.mjs | 27 ++++++-- scripts/private-image-edit-evidence.test.mjs | 65 +++++++++++++++++++- 2 files changed, 86 insertions(+), 6 deletions(-) diff --git a/scripts/private-image-edit-evidence.mjs b/scripts/private-image-edit-evidence.mjs index c0feccf9..49ccccea 100644 --- a/scripts/private-image-edit-evidence.mjs +++ b/scripts/private-image-edit-evidence.mjs @@ -53,6 +53,19 @@ const editRoutes = new Map([ strengthVariant: { original: 0.5, retained: 0.75 }, }, ], + [ + 'StableDiffusionXLPipeline:edit_image', + { + modelRepo: 'stabilityai/stable-diffusion-xl-base-1.0', + modelRevision: '462165984030d82259a11f4367a4eed129e94a7b', + loaderClass: 'StableDiffusionXLImg2ImgPipeline', + format: DIRECT_IMAGE_EDIT_FORMAT, + captureFormat: 'modiff.private.direct-image-edit-observation.v1', + consumed: [...baseConsumed, 'negative_prompt', 'guidance_scale', 'strength'], + fullOrLateNativeSnapshot: true, + inputPathPrefix: '@data/images/', + }, + ], ]); const lcmRoute = editRoutes.get('LatentConsistencyModelPipeline:edit_image'); @@ -106,7 +119,7 @@ function directOwners(api, hinted = false) { ); } -export function bindPrivateImageEditGraph({ expected, submitted, input, strengthVariant }) { +export function bindPrivateImageEditGraph({ expected, submitted, input, strengthVariant, inputPathPrefix = '' }) { const bound = structuredClone(expected); const canonical = directOwners(bound); const observed = directOwners(submitted, Object.hasOwn(submitted, 'runtimeHints')); @@ -116,7 +129,8 @@ export function bindPrivateImageEditGraph({ expected, submitted, input, strength assert.equal(canonicalPrompt.value, ''); assert.equal(input.nodeId, observed.source.id); assert.equal(input.field, 'file'); - assert.match(input.sourceValue, /^[a-zA-Z0-9_-][\w.-]{0,200}\.webp$/u); + assert.ok(typeof input.sourceValue === 'string' && input.sourceValue.startsWith(inputPathPrefix)); + assert.match(input.sourceValue.slice(inputPathPrefix.length), /^[a-zA-Z0-9_-][\w.-]{0,200}\.webp$/u); const prompt = observed.edit.node.params.prompt.value; assert.ok(typeof prompt === 'string' && prompt.length > 0 && prompt.length <= 4096 && prompt.trim() === prompt); assert.ok(!/[\u0000-\u001f\u007f]/u.test(prompt)); @@ -263,7 +277,7 @@ export async function readPrivateImageEditEvidence({ clientRoot, manifest, graph assert.ok(route, 'Unknown private image-edit evidence route.'); const { modelRepo, modelRevision, loaderClass } = route; const target = canonicalWorkflowAuthoringContract(manifest, graph, authoring, artifact); - same(target.modelSet, [{ repoId: modelRepo, revision: modelRevision }]); + same(target.modelSet, [{ repoId: modelRepo, revision: modelRevision }], 'Private edit model pin differs.'); same(target.outputPlan.mediaKinds, ['image']); assert.equal(target.outputPlan.minimumAssetCount, 1); const stat = lstatSync(evidencePath); @@ -340,6 +354,7 @@ export async function readPrivateImageEditEvidence({ clientRoot, manifest, graph submitted: graphRequest, input, strengthVariant: route.strengthVariant, + inputPathPrefix: route.inputPathPrefix, }); for (const api of [creator.apiGraph, ...visualExports]) { directOwners(api); @@ -358,11 +373,13 @@ export async function readPrivateImageEditEvidence({ clientRoot, manifest, graph persistedOutput, validatePreparation: (preparation) => validateUnmodifiedExpertPreparation(preparation, loaderClass), }; - if (route.fullNativeSnapshot) { + const hasNativeSnapshot = + route.fullNativeSnapshot || (route.fullOrLateNativeSnapshot && run.outputs[0]?.apiGraphSnapshot !== undefined); + if (hasNativeSnapshot) { assert.equal(run.outputs.length, 1); same(run.outputs[0], persistedOutput, 'Saved native output differs from the at-close output store.'); } - const validateRun = route.fullNativeSnapshot ? validateNativeVariantRun : validateLateNativeImageVariantRun; + const validateRun = hasNativeSnapshot ? validateNativeVariantRun : validateLateNativeImageVariantRun; const { task, output, hints } = validateRun(runOptions); same(hints.workflowSnapshot.studioForm, output.formSnapshot); validatePrivateImageEditFields(bound, output, route.consumed); diff --git a/scripts/private-image-edit-evidence.test.mjs b/scripts/private-image-edit-evidence.test.mjs index 9952f164..cce76fd4 100644 --- a/scripts/private-image-edit-evidence.test.mjs +++ b/scripts/private-image-edit-evidence.test.mjs @@ -1,7 +1,8 @@ import assert from 'node:assert/strict'; import test from 'node:test'; +import { canonicalJsonHash } from './canonical-json.mjs'; import { validateLateNativeImageVariantRun, validateNativeVariantRun } from './native-variant-run-evidence.mjs'; -import { bindPrivateImageEditGraph } from './private-image-edit-evidence.mjs'; +import { bindPrivateImageEditGraph, readPrivateImageEditEvidence } from './private-image-edit-evidence.mjs'; function archivedImage() { const target = { task: 'edit_image', modelType: 'LatentConsistencyModelPipeline' }; @@ -210,8 +211,70 @@ test('private direct image edit graph binds exactly one empty file and one empty assert.throws(() => bindVariant({ ...strengthVariant, original: 0.5 })); submitted.nodes.edit.params.strength.value = 0.8; assert.throws(() => bindVariant(), /differs outside/u); + const scoped = { ...input, sourceValue: '@data/images/source.webp' }; + submitted.nodes.source.params.file.value = [scoped.sourceValue]; + assert.equal( + bindPrivateImageEditGraph({ expected, submitted, input: scoped, inputPathPrefix: '@data/images/' }).prompt, + 'A lake at dawn.', + ); + for (const sourceValue of ['source.webp', '@data/videos/source.webp', '@data/images/../source.webp']) { + submitted.nodes.source.params.file.value = [sourceValue]; + assert.throws(() => + bindPrivateImageEditGraph({ + expected, + submitted, + input: { ...scoped, sourceValue }, + inputPathPrefix: '@data/images/', + }), + ); + } + submitted.nodes.source.params.file.value = [input.sourceValue]; submitted.nodes.edit.params.image.sourceKey = 'mask'; assert.throws(invoke, /differs outside/u); submitted.loops = []; assert.throws(invoke, /Unexpected evidence fields/u); }); + +test('SDXL private Edit evidence requires the reviewed checkpoint before reading its descriptor', async () => { + const modelType = 'StableDiffusionXLPipeline'; + const repo = 'stabilityai/stable-diffusion-xl-base-1.0'; + const makeOptions = (revision) => { + const graph = { + nodes: [ + { + id: 'model', + data: { + module: 'modules.DiffusersImage', + action: 'LoadPipeline', + params: { model_id: { value: { source: 'hub', value: repo } }, revision: { value: revision } }, + }, + }, + ], + edges: [], + }; + const manifest = { + id: modelType + ':edit_image', + modelType, + mode: 'edit_image', + graphPath: 'studio/stable-diffusion-xl-pipeline/edit-image.json', + graphHash: canonicalJsonHash(graph), + sourceTemplateId: 'task-template:sdxl-base:edit-image:v1', + requiredArtifacts: [repo], + }; + const authoring = { + id: 'template-authoring:' + manifest.id, + canonicalWorkflowId: manifest.id, + modelType, + mode: manifest.mode, + canonicalGraph: { path: manifest.graphPath, sha256: manifest.graphHash }, + defaultsPlan: { sourceGraphSha256: manifest.graphHash }, + artifactPlan: { requiredArtifacts: [repo] }, + outputPlan: { mediaKinds: ['image'], minimumAssetCount: 1 }, + }; + return { manifest, graph, authoring, evidencePath: '' }; + }; + await assert.rejects(readPrivateImageEditEvidence(makeOptions('462165984030d82259a11f4367a4eed129e94a7b')), { + code: 'ENOENT', + }); + await assert.rejects(readPrivateImageEditEvidence(makeOptions('0'.repeat(40))), /Private edit model pin differs/u); +}); From 40662a06add7e821f2829e740a74ad7e3a1070c0 Mon Sep 17 00:00:00 2001 From: Sourav Das Date: Sat, 21 Nov 2026 13:02:30 +0530 Subject: [PATCH 288/440] Use consistent stage labels and verify the consumed Inpaint mask --- scripts/block-media-readiness-v2.test.mjs | 32 +++++ scripts/bundle-budget.mjs | 6 + scripts/image-edit-source-binding.mjs | 132 ++++++++++++++---- scripts/image-edit-source-binding.test.mjs | 118 +++++++++++++++- ...workflow-library-canonical-export.test.mjs | 31 +++- src/components/StageNodeControls.tsx | 22 +-- src/studio/blockMediaReadinessV2.ts | 5 +- src/studio/requiredGraphInputs.ts | 3 +- src/studio/resolvedExecutionInputs.ts | 15 +- src/workflow/modelSetupControlPresentation.ts | 16 ++- 10 files changed, 330 insertions(+), 50 deletions(-) diff --git a/scripts/block-media-readiness-v2.test.mjs b/scripts/block-media-readiness-v2.test.mjs index 5d9c37f8..4f2ed564 100644 --- a/scripts/block-media-readiness-v2.test.mjs +++ b/scripts/block-media-readiness-v2.test.mjs @@ -360,6 +360,38 @@ test('connected built-in loaders need files only when supplying declared require } }); +test('required files name their Source Image and Mask while preserving custom names and targets', async () => { + const { inspectRequiredGraphInputs } = await server.ssrLoadModule('/src/studio/requiredGraphInputs.ts'); + for (const [role, caption] of [ + ['loadImage', 'Source Image'], + ['loadMask', 'Mask'], + ]) { + const f = fixture('', { required: false }); + f.instance.effectiveGraph.nodes = [{ nodeId: 'loadMask' }]; + Object.assign(f.leaf.data, { label: 'Load Image', studioRole: role }); + Object.assign(f.leaf.data.params.file, { required: true, label: 'file' }); + const checks = [ + [(visible) => inspectRequiredGraphInputs(visible, f.graph, {}), 'needs file before running.'], + [(visible) => inspect(visible, f.graph), 'needs a file before running.'], + ]; + const before = structuredClone(f); + for (const [check, message] of checks) { + const [visible] = check([...f.roots, f.leaf]); + assert.equal(visible.message, caption + ' ' + message); + assert.equal(visible.nodeId, f.leaf.id); + assert.equal(visible.fieldId, 'file'); + const [collapsed] = check(f.roots); + assert.equal(collapsed.message, visible.message); + assert.equal(collapsed.nodeId, f.root.id); + assert.equal(collapsed.fieldId, undefined); + } + assert.deepEqual(f, before); + f.leaf.data.label = 'My studio reference'; + for (const [check, message] of checks) + assert.equal(check([...f.roots, f.leaf])[0].message, 'My studio reference ' + message); + } +}); + test('required model inputs use current registry contracts inside collapsed Blocks', async () => { const { inspectRequiredGraphInputs } = await server.ssrLoadModule('/src/studio/requiredGraphInputs.ts'); const { roots, graph, leaf, instance } = fixture(''); diff --git a/scripts/bundle-budget.mjs b/scripts/bundle-budget.mjs index aa575487..e2f6c040 100644 --- a/scripts/bundle-budget.mjs +++ b/scripts/bundle-budget.mjs @@ -490,6 +490,8 @@ const SOURCE_LICENSES = new URL('../public/THIRD_PARTY_LICENSES.txt', import.met // 504492/682980/346033 largest/startup/deferred gzip bytes: the reviewed // migration ceilings below still pass with 8/12/304 bytes of headroom. const MAX_STARTUP_CHUNK_GZIP_BYTES = + // Exact Inpaint input evidence and shared role labels add 65 gzip bytes. + 65 + // Wav2Vec2 registration and role-aware node captions add 1113 bytes (522569 -> 523682). 1113 + // Generic stage cards and connected Model Setup controls add 435 gzip bytes @@ -757,6 +759,8 @@ const MAX_STARTUP_CHUNK_GZIP_BYTES = // The same build measures 673359 aggregate startup bytes (+45 over the cap). // Keep 19 bytes of headroom; deferred limits and loading boundaries stay fixed. const MAX_STARTUP_GZIP_BYTES = + // The same changes add 68 aggregate startup gzip bytes. + 68 + // The same changes add 1115 aggregate startup bytes (701052 -> 702167). 1115 + // Generic stage presentation adds 432 startup gzip bytes (700620 -> 701052). @@ -1085,6 +1089,8 @@ const MAX_DEFERRED_CHUNK_GZIP_BYTES = 64 * 1024; // Startup code differs only in the three verified Dataset descriptor values. // Retain both startup caps, the independent 64 KiB chunk cap and prior headroom. const MAX_DEFERRED_GZIP_BYTES = + // Bound media input receipts and stage captions add 173 deferred gzip bytes. + 173 + // Initial media preview spacing and workflow labels add 148 deferred bytes (354889 -> 355037). 148 + // The stage and inspector changes add 504 deferred gzip bytes (354385 -> 354889). diff --git a/scripts/image-edit-source-binding.mjs b/scripts/image-edit-source-binding.mjs index 33441a4d..63caf830 100644 --- a/scripts/image-edit-source-binding.mjs +++ b/scripts/image-edit-source-binding.mjs @@ -8,32 +8,113 @@ import { stableJsonValue } from './canonical-json.mjs'; const literal = (value) => ({ value, source: 'literal' }); export function verifyImageEditSourceBinding({ submittedApi, receipt, outputIdentity, loadId, editId }) { - assert.notEqual(loadId, editId, 'Load and Edit must be separate nodes.'); - const load = submittedApi.nodes[loadId]; - const edit = submittedApi.nodes[editId]; - assert.equal(load?.module, 'modules.Image'); - assert.equal(load.action, 'Load'); - assert.equal(edit?.module, 'modules.DiffusersImage'); - assert.equal(edit.action, 'Edit'); + return verifyImageSourceBindings({ + submittedApi, + receipt, + outputIdentity, + consumerId: editId, + action: 'Edit', + task: 'edit_image', + ports: [{ input: 'image', loadId, mode: 'RGB', projectionKind: 'decoded-image-v1' }], + }).inputs.image; +} + +export function verifyImageInpaintSourceBinding({ + submittedApi, + receipt, + outputIdentity, + sourceId, + maskId, + inpaintId, +}) { + assert.notEqual(sourceId, maskId, 'Source and mask must be separate Image.Load nodes.'); + const { observed, inputs } = verifyImageSourceBindings({ + submittedApi, + receipt, + outputIdentity, + consumerId: inpaintId, + action: 'Inpaint', + task: 'inpaint', + ports: [ + { input: 'image', loadId: sourceId, mode: 'RGB', projectionKind: 'decoded-image-v1' }, + { input: 'mask_image', loadId: maskId, mode: 'L', projectionKind: 'decoded-mask-v1' }, + ], + }); + const pipeline = submittedApi.nodes[inpaintId].params.pipeline; + const ownerId = pipeline.sourceId; + assert.deepEqual(pipeline, { display: 'input', sourceId: ownerId, sourceKey: 'pipeline' }); + assert.ok(![sourceId, maskId, inpaintId].includes(ownerId)); + const owner = submittedApi.nodes[ownerId]; + assert.equal(owner?.module, 'modules.DiffusersImage'); + assert.equal(owner.action, 'LoadPipeline'); + const observedOwner = observed.nodes.find((row) => row.nodeId === ownerId); + assert.equal(observedOwner?.module, owner.module); + assert.equal(observedOwner.action, owner.action); + const repo = 'stable-diffusion-v1-5/stable-diffusion-v1-5'; + assert.deepEqual(owner.params.model_id.value, { source: 'hub', value: repo }); + assert.deepEqual(observedOwner.fields.model_id, literal(repo)); + for (const [field, value] of Object.entries({ + mode: 'inpaint', + pipeline_class: 'StableDiffusionInpaintPipeline', + revision: '451f4fe16113bff5a5d2269ed5ad43b0592e9a14', + })) { + assert.equal(owner.params[field].value, value, `Unexpected Inpaint loader ${field}.`); + assert.deepEqual(observedOwner.fields[field], literal(value), `Unexpected native Inpaint loader ${field}.`); + } + const { image: source, mask_image: mask } = inputs; + assert.notEqual(source.sourceFile.sourceValue, mask.sourceFile.sourceValue); + assert.notEqual(source.sourceFile.sha256, mask.sourceFile.sha256); assert.deepEqual( - edit.params.image, - { display: 'input', sourceId: loadId, sourceKey: 'image' }, - 'Edit must have the declared single Image.Load image wire.', + [source.decodedImage.width, source.decodedImage.height], + [mask.decodedImage.width, mask.decodedImage.height], + 'Inpaint source and mask must share their original geometry.', ); + return { source, mask }; +} +function verifyImageSourceBindings({ submittedApi, receipt, outputIdentity, consumerId, action, task, ports }) { + const consumer = submittedApi.nodes[consumerId]; + assert.equal(consumer?.module, 'modules.DiffusersImage'); + assert.equal(consumer.action, action); + for (const { input, loadId } of ports) { + assert.notEqual(loadId, consumerId, `Load and ${action} must be separate nodes.`); + assert.deepEqual( + consumer.params[input], + { display: 'input', sourceId: loadId, sourceKey: 'image' }, + `${action} must have the declared single Image.Load ${input} wire.`, + ); + } const observed = coerceResolvedExecutionInputs(receipt, outputIdentity); assert.ok(observed && !observed.truncated && observed.uncapturedNodeIds.length === 0, 'Incomplete native receipt.'); assert.deepEqual(observed.mediaEvidenceStatus, { schemaVersion: 1, truncated: false }); assert.deepEqual(observed.fieldAccountingStatus, { schemaVersion: 1, truncated: false }); - const loaded = observed.nodes.find((row) => row.nodeId === loadId); - const edited = observed.nodes.find((row) => row.nodeId === editId); + const target = observed.nodes.find((row) => row.nodeId === consumerId); + assert.equal(target?.module, consumer.module); + assert.equal(target.action, consumer.action); + assert.deepEqual(target.omittedFields, {}); + assert.deepEqual(target.fields.executed_task, literal(task)); + const accounting = target.fieldAccounting; + assert.equal(accounting?.complete, true, `${action} input accounting must be complete.`); + const inputs = Object.fromEntries( + ports.map(({ input, loadId, mode, projectionKind }) => [ + input, + verifyOneDecodedSource( + submittedApi.nodes[loadId], + observed.nodes.find((row) => row.nodeId === loadId), + accounting.inputProjections[input], + { loadId, mode, projectionKind, action }, + ), + ]), + ); + return { observed, inputs }; +} + +function verifyOneDecodedSource(load, loaded, projection, { loadId, mode, projectionKind, action }) { + assert.equal(load?.module, 'modules.Image'); + assert.equal(load.action, 'Load'); assert.equal(loaded?.module, load.module); assert.equal(loaded.action, load.action); - assert.equal(edited?.module, edit.module); - assert.equal(edited.action, edit.action); assert.deepEqual(loaded.omittedFields, {}); - assert.deepEqual(edited.omittedFields, {}); - assert.deepEqual(edited.fields.executed_task, literal('edit_image')); const media = loaded.mediaEvidence; assert.equal(media?.status, 'complete', 'The native source decode is missing.'); @@ -48,27 +129,24 @@ export function verifyImageEditSourceBinding({ submittedApi, receipt, outputIden assert.equal(media.outputs.image?.length, 1, 'A single native decoded image is required.'); const [{ kind, ...decoded }] = media.outputs.image; assert.equal(kind, 'image'); - assert.equal(decoded.mode, 'RGB'); + assert.equal(decoded.mode, mode); assert.deepEqual(media.controls, { alpha_channel: load.params.alpha_channel.value }); assert.deepEqual(loaded.fields, { alpha_channel: literal(media.controls.alpha_channel), source_hashes: literal([file.sha256]), source_widths: literal([decoded.width]), source_heights: literal([decoded.height]), - source_modes: literal(['RGB']), + source_modes: literal([mode]), }); - const accounting = edited.fieldAccounting; - assert.equal(accounting?.complete, true, 'Edit input accounting must be complete.'); - const projection = accounting.inputProjections.image; - assert.equal(projection.kind, 'decoded-image-v1'); + assert.equal(projection.kind, projectionKind); assert.equal(projection.source, 'connected'); - assert.equal(projection.sourceNodeId, loadId, 'Edit recorded a different source node.'); - assert.equal(projection.sourcePortId, 'image', 'Edit recorded a different source port.'); - assert.deepEqual(projection.values, decoded, 'Edit input pixels or geometry differ from the decoded source.'); + assert.equal(projection.sourceNodeId, loadId, `${action} recorded a different source node.`); + assert.equal(projection.sourcePortId, 'image', `${action} recorded a different source port.`); + assert.deepEqual(projection.values, decoded, `${action} input pixels or geometry differ from the decoded source.`); const digest = createHash('sha256') - .update(`decoded-image-v1\n${JSON.stringify(stableJsonValue(decoded))}`, 'ascii') + .update(`${projectionKind}\n${JSON.stringify(stableJsonValue(decoded))}`, 'ascii') .digest('hex'); - assert.equal(projection.sha256, digest, 'Edit image projection digest differs.'); + assert.equal(projection.sha256, digest, `${action} image projection digest differs.`); return { sourceFile: file, decodedImage: decoded }; } diff --git a/scripts/image-edit-source-binding.test.mjs b/scripts/image-edit-source-binding.test.mjs index e96810e4..aae37caf 100644 --- a/scripts/image-edit-source-binding.test.mjs +++ b/scripts/image-edit-source-binding.test.mjs @@ -11,7 +11,7 @@ const fixture = JSON.parse( ); const decode = (sample) => sample.receipt.nodes.find((row) => row.nodeId === sample.loadId).mediaEvidence; const accounting = (sample) => sample.receipt.nodes.find((row) => row.nodeId === sample.editId).fieldAccounting; -let server, verify; +let server, verify, verifyInpaint; before(async () => { server = await createServer({ @@ -19,7 +19,8 @@ before(async () => { configFile: false, server: { middlewareMode: true, ws: false }, }); - ({ verifyImageEditSourceBinding: verify } = await server.ssrLoadModule('/scripts/image-edit-source-binding.mjs')); + ({ verifyImageEditSourceBinding: verify, verifyImageInpaintSourceBinding: verifyInpaint } = + await server.ssrLoadModule('/scripts/image-edit-source-binding.mjs')); }); after(async () => server?.close()); @@ -116,3 +117,116 @@ test('the earlier deliberate-resize producer trace cannot prove original pixels' accounting(modified).inputProjections.image = projection; assert.throws(() => verify(modified), /pixels or geometry/u); }); + +function pairedInpaintFixture() { + const value = structuredClone(fixture); + const { submittedApi, receipt, editId: inpaintId, loadId: sourceId } = value; + const maskId = 'mask'; + const target = submittedApi.nodes[inpaintId]; + target.action = 'Inpaint'; + target.params.mask_image = { display: 'input', sourceId: maskId, sourceKey: 'image' }; + const mask = (submittedApi.nodes[maskId] = structuredClone(submittedApi.nodes[sourceId])); + mask.params.file.value = ['@data/images/test-mask.png']; + const literal = (value) => ({ value, source: 'literal' }); + const observed = receipt.nodes.find((row) => row.nodeId === inpaintId); + observed.action = 'Inpaint'; + observed.fields.executed_task = literal('inpaint'); + receipt.summary.executedTask = 'inpaint'; + const loaded = structuredClone(receipt.nodes.find((row) => row.nodeId === sourceId)); + loaded.nodeId = maskId; + const [file] = loaded.mediaEvidence.files.file; + file.sourceValue = mask.params.file.value[0]; + file.sha256 = 'c'.repeat(64); + const [decoded] = loaded.mediaEvidence.outputs.image; + decoded.mode = 'L'; + decoded.byteSize = decoded.width * decoded.height; + decoded.sha256 = 'd'.repeat(64); + loaded.fields.source_modes = literal(['L']); + loaded.fields.source_hashes = literal([file.sha256]); + receipt.nodes.push(loaded); + receipt.ambiguousFields.push('imageSourceHashes', 'imageSourceModes'); + delete receipt.summary.imageSourceHashes; + delete receipt.summary.imageSourceModes; + const { kind: _kind, ...pixels } = decoded; + observed.fieldAccounting.inputProjections.mask_image = { + kind: 'decoded-mask-v1', + values: pixels, + sha256: createHash('sha256') + .update(`decoded-mask-v1\n${JSON.stringify(stableJsonValue(pixels))}`, 'ascii') + .digest('hex'), + source: 'connected', + sourceNodeId: maskId, + sourcePortId: 'image', + }; + const owner = 'model'; + target.params.pipeline = { display: 'input', sourceId: owner, sourceKey: 'pipeline' }; + const module = 'modules.DiffusersImage'; + const action = 'LoadPipeline'; + const modelRepo = 'stable-diffusion-v1-5/stable-diffusion-v1-5'; + const controls = { + model_id: modelRepo, + mode: 'inpaint', + pipeline_class: 'StableDiffusionInpaintPipeline', + revision: '451f4fe16113bff5a5d2269ed5ad43b0592e9a14', + }; + submittedApi.nodes[owner] = { + module, + action, + params: Object.fromEntries( + Object.entries(controls).map(([key, item]) => [ + key, + { value: key === 'model_id' ? { source: 'hub', value: item } : item }, + ]), + ), + }; + const ownerRecord = { + nodeId: owner, + module, + action, + fields: Object.fromEntries(Object.entries(controls).map(([key, item]) => [key, literal(item)])), + omittedFields: {}, + }; + receipt.nodes.push(ownerRecord); + Object.assign(receipt.summary, { + repo: modelRepo, + executionMode: controls.mode, + modelType: controls.pipeline_class, + revision: controls.revision, + }); + return { submittedApi, receipt, outputIdentity: value.outputIdentity, sourceId, maskId, inpaintId }; +} + +test('direct Inpaint independently joins the RGB source and grayscale mask to their actual call', () => { + const sample = pairedInpaintFixture(); + const original = structuredClone(sample); + const joined = verifyInpaint(sample); + assert.equal(joined.source.decodedImage.mode, 'RGB'); + assert.equal(joined.mask.decodedImage.mode, 'L'); + assert.equal(joined.mask.sourceFile.sourceValue, '@data/images/test-mask.png'); + assert.deepEqual(sample, original); +}); + +test('direct Inpaint rejects missing, swapped, rehashed or overridden mask evidence and a mismatched model pin', () => { + const inputProjections = (s) => s.receipt.nodes[0].fieldAccounting.inputProjections; + const mutate = [ + (s) => delete inputProjections(s).mask_image, + (s) => (s.submittedApi.nodes[s.inpaintId].params.mask_image.sourceId = s.sourceId), + (s) => (inputProjections(s).mask_image.sourceNodeId = s.sourceId), + (s) => (inputProjections(s).mask_image.kind = 'decoded-image-v1'), + (s) => (inputProjections(s).mask_image.source = 'override'), + (s) => { + const projection = inputProjections(s).mask_image; + projection.values.sha256 = 'e'.repeat(64); + projection.sha256 = createHash('sha256') + .update(`decoded-mask-v1\n${JSON.stringify(stableJsonValue(projection.values))}`, 'ascii') + .digest('hex'); + }, + (s) => (s.receipt.nodes.find((row) => row.nodeId === 'model').fields.revision.value = '0'.repeat(40)), + (s) => (s.outputIdentity.attemptIndex = 1), + ]; + for (const change of mutate) { + const sample = pairedInpaintFixture(); + change(sample); + assert.throws(() => verifyInpaint(sample)); + } +}); diff --git a/scripts/workflow-library-canonical-export.test.mjs b/scripts/workflow-library-canonical-export.test.mjs index f19ac35b..cdb46b16 100644 --- a/scripts/workflow-library-canonical-export.test.mjs +++ b/scripts/workflow-library-canonical-export.test.mjs @@ -41,6 +41,7 @@ test('repeated shot processors retain only unanimous fallback defaults with unch import { canonicalExecutableWorkflowGraph, loadCanonicalWorkflowExpander } from './canonical-workflow-execution.mjs'; let server, hooks, flowStore, groups, blockSchema, blockRuntime, modelSetupControlParams, graphNodeControlParams; +let modelSetupControlGroupLabel; let fixture, templates, builder, defaults, exactness, operations; let requests; let shared; @@ -71,7 +72,9 @@ before(async () => { ({ useFlowStore: flowStore } = await server.ssrLoadModule('/src/stores/useFlowStore.ts')); groups = await server.ssrLoadModule('/src/workflow/visualOperationGroups.ts'); blockRuntime = await server.ssrLoadModule('/src/studio/blockRuntimeV2.ts'); - ({ modelSetupControlParams } = await server.ssrLoadModule('/src/workflow/modelSetupControlPresentation.ts')); + ({ modelSetupControlGroupLabel, modelSetupControlParams } = await server.ssrLoadModule( + '/src/workflow/modelSetupControlPresentation.ts', + )); ({ graphNodeControlParams } = await server.ssrLoadModule('/src/studio/graphNodeControls.ts')); shared = await server.ssrLoadModule('/src/workflow/operationSharedInputs.ts'); blockSchema = await server.ssrLoadModule('/src/studio/blockSchemaV2.ts'); @@ -341,6 +344,32 @@ test('whole-pipeline examples fold connected runtime settings into the shared Mo } }); +test('Model Setup subsections use the bound loader caption without renaming a saved group', () => { + const backend = path.resolve(process.env.MODIFF_BACKEND_DIR || '../MoDiff'); + const pathToEdit = 'data/graphs/studio/stable-diffusion-xl-pipeline/edit-image.json'; + const source = JSON.parse(readFileSync(path.join(backend, pathToEdit), 'utf8')); + const grouped = groups.groupNewOperationGraph(source); + const setup = grouped.nodes.find((node) => groups.visualOperationGroup(node) === 'setup'); + assert.ok(setup); + const instance = setup.data.blockInstanceV2; + const graph = blockRuntime.blockOperationGraphV2(instance); + const before = structuredClone(instance); + const title = 'Diffusers.LoadPipeline'; + const controls = instance.effectiveInterface.controls.filter((control) => control.group === title); + assert.ok(controls.length > 0); + assert.equal(modelSetupControlGroupLabel(title, controls, graph), 'Load Image Pipeline'); + assert.equal(modelSetupControlGroupLabel('My loader settings', controls, graph), 'My loader settings'); + const other = instance.effectiveInterface.controls.find((control) => control.group !== title); + assert.ok(other); + assert.equal(modelSetupControlGroupLabel(title, [...controls, other], graph), title); + assert.deepEqual(instance, before); + const api = (sourceGraph) => + canonicalGraphIdentity( + flowStore.getState().exportGraph('model-setup-subsections', undefined, { sourceGraph, randomizeSeeds: false }), + ); + assert.deepEqual(api(grouped), api(source)); +}); + test('Model Setup shows connected VAE recipe controls and retains each loader fallback', () => { const backend = path.resolve(process.env.MODIFF_BACKEND_DIR || '../MoDiff'); const examples = [ diff --git a/src/components/StageNodeControls.tsx b/src/components/StageNodeControls.tsx index 4dd6932f..a1b39f83 100644 --- a/src/components/StageNodeControls.tsx +++ b/src/components/StageNodeControls.tsx @@ -9,7 +9,7 @@ import { BlockOwnerChoices } from './OperationOwnerControls'; import NodeContent from './NodeContent'; import ModelSetupAdapterControls from './ModelSetupAdapterControls'; import { isModelSetupAdapter } from '../workflow/modelSetupAdapters'; -import { modelSetupControlParams } from '../workflow/modelSetupControlPresentation'; +import { modelSetupControlGroupLabel, modelSetupControlParams } from '../workflow/modelSetupControlPresentation'; /** The same exposed fields, model planner and preview authority as Block V2, * presented within the ordinary node shell. No second state or executor. */ @@ -42,14 +42,16 @@ export default function StageNodeControls({ ) && !(setup && adapters.has(control.binding.nodeId)), ); - const groups = [...new Set(controls.map((control) => control.group ?? 'Settings'))].map((group) => ({ - label: group, - params: Object.fromEntries( - controls - .filter((control) => (control.group ?? 'Settings') === group) - .map((control) => [control.controlId, controlParams[control.controlId]!]), - ), - })); + const groups = [...new Set(controls.map((control) => control.group ?? 'Settings'))].map((group) => { + const groupControls = controls.filter((control) => (control.group ?? 'Settings') === group); + return { + key: group, + label: setup ? modelSetupControlGroupLabel(group, groupControls, graph) : group, + params: Object.fromEntries( + groupControls.map((control) => [control.controlId, controlParams[control.controlId]!]), + ), + }; + }); return { view, groups }; }, [instance, setup]); return ( @@ -58,7 +60,7 @@ export default function StageNodeControls({ {setup ? : null} {groups.map((group) => ( ; sha256: string; }; @@ -441,6 +441,7 @@ const accountingNames: Record = { 'image_contract batch_size seed num_inference_steps eta class_label output_type'.split(' '), 'DiffusersImage.Generate': conditionalImageAccountingNames, 'DiffusersImage.Edit': [...conditionalImageAccountingNames, 'reference_strength'], + 'DiffusersImage.Inpaint': [...conditionalImageAccountingNames, 'reference_strength'], 'HuggingFaceSpeech.TranscribeAudio': [ 'task', 'language', @@ -461,6 +462,7 @@ const accountingPorts: Record, Record) => text(value.sourcePortId) && Boolean(value.sourcePortId)); -function decodedImageProjectionValues(values: Record): boolean { +function decodedImageProjectionValues(values: Record, expectedMode: 'RGB' | 'L'): boolean { const { mode, width, height, byteSize, sha256 } = values; + const channels = expectedMode === 'L' ? 1 : 3; const positiveInteger = (value: unknown): value is number => typeof value === 'number' && Number.isSafeInteger(value) && value > 0; return ( exactKeys(values, ['mode', 'width', 'height', 'byteSize', 'sha256']) && - mode === 'RGB' && + mode === expectedMode && positiveInteger(width) && positiveInteger(height) && positiveInteger(byteSize) && byteSize <= 64 * 1024 * 1024 && - width * height * 3 === byteSize && + width * height * channels === byteSize && digest(sha256) ); } @@ -581,9 +584,9 @@ function fieldAccounting(value: unknown, scope: string): ExecutionFieldAccountin if (projection.kind === 'disabled-quantization-v1') { if (!exactKeys(values, ['backend', 'disabled']) || values.backend !== 'none' || values.disabled !== true) return undefined; - } else if (projection.kind === 'decoded-image-v1') { + } else if (projection.kind === 'decoded-image-v1' || projection.kind === 'decoded-mask-v1') { if ( - !decodedImageProjectionValues(values) || + !decodedImageProjectionValues(values, projection.kind === 'decoded-mask-v1' ? 'L' : 'RGB') || (projection.source !== 'connected' && (value.complete || value.omittedFields[port] !== 'unsupported-origin')) ) return undefined; diff --git a/src/workflow/modelSetupControlPresentation.ts b/src/workflow/modelSetupControlPresentation.ts index 0c915646..d6d621b5 100644 --- a/src/workflow/modelSetupControlPresentation.ts +++ b/src/workflow/modelSetupControlPresentation.ts @@ -1,7 +1,8 @@ import type { NodeParams } from '../stores/useNodeStore'; import { blockProjectionNodeIdV2, type BlockFlowGraphV2 } from '../studio/blockRuntimeV2'; -import type { BlockInstanceV2 } from '../studio/blockSchemaV2'; +import type { BlockControlV2, BlockInstanceV2 } from '../studio/blockSchemaV2'; import { isModelSetupAdapterKey } from '../studio/controlledWorkflowContracts'; +import { nodeDisplayLabel } from './nodePresentation'; const IMAGE_LOADER = 'modules.DiffusersImage.LoadPipeline'; const AUDIO_LOADER = 'modules.DiffusersAudio.LoadPipeline'; @@ -13,6 +14,19 @@ const VAE_FALLBACKS: Record> = { [AUDIO_LOADER]: { enable_vae_tiling: 'vae_tiling' }, }; +// Only a section copied from one member's own title should follow its +// display caption. A custom or shared section keeps its authored name. +export function modelSetupControlGroupLabel( + group: string, + controls: readonly BlockControlV2[], + graph: BlockFlowGraphV2, +): string { + const memberId = controls[0]?.binding.nodeId; + if (!memberId || !controls.every((control) => control.binding.nodeId === memberId)) return group; + const member = graph.nodes.find((node) => node.data.blockProjectionNodeId === memberId); + return member?.data.label === group ? nodeDisplayLabel(member.data) : group; +} + /** Only compact Model Setup's displayed controls change. The loader's * fallback still belongs to its saved leaf and becomes active on disconnect. */ export function modelSetupControlParams( From 787df9b525dd7fa038be0278c3539e9da74dbed4 Mon Sep 17 00:00:00 2001 From: Sourav Das Date: Sat, 21 Nov 2026 13:26:10 +0530 Subject: [PATCH 289/440] Identify direct image models from connected execution contracts --- AGENTS.md | 1 + scripts/bundle-budget.mjs | 4 + scripts/private-image-edit-evidence.mjs | 42 ++++++++- scripts/private-image-edit-evidence.test.mjs | 55 +++++++++--- scripts/workflow-document-origin.test.mjs | 81 ++++++++++++++++++ src/stores/useStudioStore.ts | 12 ++- src/studio/workflowInference.ts | 89 +++++++++++++++++++- 7 files changed, 267 insertions(+), 17 deletions(-) diff --git a/AGENTS.md b/AGENTS.md index 123fb8ed..9296e319 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -31,6 +31,7 @@ These rules apply to Codex, Copilot-style agents, and any AI tool editing this r - Use an ordinary node for a stage with one executable action. Expose the inputs, effective controls and outputs the user needs. Fold internal preparation or decoding into a stage only when it shares one owner and its intermediate result has no independent consumer. - Reserve new Blocks for meaningful typed boundaries, such as storyboard shots, reusable compositions, loops or genuine nested control flow. Preserve existing saved Block interfaces and registered definition hashes. - Label ports by role, including Source, Mask, Control, and First or Last Frame. Show one editor per effective setting and retain the saved fallback when a typed connection supplies the value. Choose a shared default only after it works in both the fresh workflow and the corresponding saved workflow. +- Resolve model variants that share a repository through the exact connected model and task declaration. Keep the canvas, restored workflow and saved output metadata consistent. - Test the canvas and the ordered executable graph separately. Compare controls, typed bindings, model switching, and save/reopen. A presentation-only change preserves the executable graph and reuses the original run evidence. ## Component Rules diff --git a/scripts/bundle-budget.mjs b/scripts/bundle-budget.mjs index e2f6c040..8614d149 100644 --- a/scripts/bundle-budget.mjs +++ b/scripts/bundle-budget.mjs @@ -490,6 +490,8 @@ const SOURCE_LICENSES = new URL('../public/THIRD_PARTY_LICENSES.txt', import.met // 504492/682980/346033 largest/startup/deferred gzip bytes: the reviewed // migration ceilings below still pass with 8/12/304 bytes of headroom. const MAX_STARTUP_CHUNK_GZIP_BYTES = + // Exact connected model summaries add 501 gzip bytes (523747 -> 524248). + 501 + // Exact Inpaint input evidence and shared role labels add 65 gzip bytes. 65 + // Wav2Vec2 registration and role-aware node captions add 1113 bytes (522569 -> 523682). @@ -759,6 +761,8 @@ const MAX_STARTUP_CHUNK_GZIP_BYTES = // The same build measures 673359 aggregate startup bytes (+45 over the cap). // Keep 19 bytes of headroom; deferred limits and loading boundaries stay fixed. const MAX_STARTUP_GZIP_BYTES = + // The same change adds 498 aggregate startup gzip bytes (702235 -> 702733). + 498 + // The same changes add 68 aggregate startup gzip bytes. 68 + // The same changes add 1115 aggregate startup bytes (701052 -> 702167). diff --git a/scripts/private-image-edit-evidence.mjs b/scripts/private-image-edit-evidence.mjs index 49ccccea..0b9f7343 100644 --- a/scripts/private-image-edit-evidence.mjs +++ b/scripts/private-image-edit-evidence.mjs @@ -28,6 +28,7 @@ export const PRIVATE_IMAGE_EDIT_FORMAT = 'modiff.private.lcm-source-bound-edit.v export const DIRECT_IMAGE_EDIT_FORMAT = 'modiff.private.direct-image-edit-source-bound.v1'; const baseConsumed = ['num_inference_steps', 'output_type', 'prompt', 'seed']; const imageGeometry = ['height', 'max_sequence_length', 'width']; +const stableDiffusionEditConsumed = [...baseConsumed, 'negative_prompt', 'guidance_scale', 'strength']; const editRoutes = new Map([ [ 'LatentConsistencyModelPipeline:edit_image', @@ -53,6 +54,20 @@ const editRoutes = new Map([ strengthVariant: { original: 0.5, retained: 0.75 }, }, ], + [ + 'StableDiffusionPipeline:edit_image', + { + modelRepo: 'stable-diffusion-v1-5/stable-diffusion-v1-5', + modelRevision: '451f4fe16113bff5a5d2269ed5ad43b0592e9a14', + loaderClass: 'StableDiffusionImg2ImgPipeline', + format: DIRECT_IMAGE_EDIT_FORMAT, + captureFormat: 'modiff.private.direct-image-edit-observation.v1', + consumed: stableDiffusionEditConsumed, + fullNativeSnapshot: true, + inputPathPrefix: '@data/images/', + windowsCudaRuntime: true, + }, + ], [ 'StableDiffusionXLPipeline:edit_image', { @@ -61,7 +76,7 @@ const editRoutes = new Map([ loaderClass: 'StableDiffusionXLImg2ImgPipeline', format: DIRECT_IMAGE_EDIT_FORMAT, captureFormat: 'modiff.private.direct-image-edit-observation.v1', - consumed: [...baseConsumed, 'negative_prompt', 'guidance_scale', 'strength'], + consumed: stableDiffusionEditConsumed, fullOrLateNativeSnapshot: true, inputPathPrefix: '@data/images/', }, @@ -236,7 +251,26 @@ async function verifySourceBinding(clientRoot, bound, output, input) { } } -function validateRuntime(task, hints, completion, observation, bound, { modelRepo, modelRevision, loaderClass }) { +export function validatePrivateImageEditRuntimePlatform(workflowId, platform, backend) { + const route = editRoutes.get(workflowId); + assert.ok(route, 'Unknown private image-edit evidence route.'); + if (route.windowsCudaRuntime && /^Windows-/iu.test(platform)) { + assert.equal(backend, 'cuda'); + } else { + assert.match(platform, /Linux/iu); + assert.equal(backend, 'rocm'); + } +} + +function validateRuntime( + task, + hints, + completion, + observation, + bound, + workflowId, + { modelRepo, modelRevision, loaderClass }, +) { same( completion.runtimeHints, { @@ -247,9 +281,8 @@ function validateRuntime(task, hints, completion, observation, bound, { modelRep 'Native completion runtime envelope differs.', ); const runtime = selectBackendRuntimeFingerprintEvidence([task.runtimeFingerprint]); - assert.match(runtime.packages.platform, /Linux/iu); + validatePrivateImageEditRuntimePlatform(workflowId, runtime.packages.platform, task.runtimeMeasurement.backend); assert.equal(runtime.torch.cuda_available, true); - assert.equal(task.runtimeMeasurement.backend, 'rocm'); assert.equal(task.runtimeMeasurement.device, 'cuda:0'); const { elapsedSeconds, peakAllocatedBytes, peakReservedBytes, peakMeasurementVersion } = task.runtimeMeasurement; assert.equal(peakMeasurementVersion, 2); @@ -419,6 +452,7 @@ export async function readPrivateImageEditEvidence({ clientRoot, manifest, graph graphCompleted, json(capture.modelObservations[0]), bound, + workflowId, route, ); for (const ref of retainedFiles) readCanonicalEvidenceFile(evidenceRoot, ref, 16 * 1024 * 1024); diff --git a/scripts/private-image-edit-evidence.test.mjs b/scripts/private-image-edit-evidence.test.mjs index cce76fd4..7fc50de4 100644 --- a/scripts/private-image-edit-evidence.test.mjs +++ b/scripts/private-image-edit-evidence.test.mjs @@ -2,7 +2,11 @@ import assert from 'node:assert/strict'; import test from 'node:test'; import { canonicalJsonHash } from './canonical-json.mjs'; import { validateLateNativeImageVariantRun, validateNativeVariantRun } from './native-variant-run-evidence.mjs'; -import { bindPrivateImageEditGraph, readPrivateImageEditEvidence } from './private-image-edit-evidence.mjs'; +import { + bindPrivateImageEditGraph, + readPrivateImageEditEvidence, + validatePrivateImageEditRuntimePlatform, +} from './private-image-edit-evidence.mjs'; function archivedImage() { const target = { task: 'edit_image', modelType: 'LatentConsistencyModelPipeline' }; @@ -235,9 +239,7 @@ test('private direct image edit graph binds exactly one empty file and one empty assert.throws(invoke, /Unexpected evidence fields/u); }); -test('SDXL private Edit evidence requires the reviewed checkpoint before reading its descriptor', async () => { - const modelType = 'StableDiffusionXLPipeline'; - const repo = 'stabilityai/stable-diffusion-xl-base-1.0'; +function assertPinnedPrivateEdit({ modelType, graphPath, sourceTemplateId, repo, exactRevision }) { const makeOptions = (revision) => { const graph = { nodes: [ @@ -256,9 +258,9 @@ test('SDXL private Edit evidence requires the reviewed checkpoint before reading id: modelType + ':edit_image', modelType, mode: 'edit_image', - graphPath: 'studio/stable-diffusion-xl-pipeline/edit-image.json', + graphPath, graphHash: canonicalJsonHash(graph), - sourceTemplateId: 'task-template:sdxl-base:edit-image:v1', + sourceTemplateId, requiredArtifacts: [repo], }; const authoring = { @@ -273,8 +275,41 @@ test('SDXL private Edit evidence requires the reviewed checkpoint before reading }; return { manifest, graph, authoring, evidencePath: '' }; }; - await assert.rejects(readPrivateImageEditEvidence(makeOptions('462165984030d82259a11f4367a4eed129e94a7b')), { - code: 'ENOENT', - }); - await assert.rejects(readPrivateImageEditEvidence(makeOptions('0'.repeat(40))), /Private edit model pin differs/u); + return Promise.all([ + assert.rejects(readPrivateImageEditEvidence(makeOptions(exactRevision)), { code: 'ENOENT' }), + assert.rejects(readPrivateImageEditEvidence(makeOptions('0'.repeat(40))), /Private edit model pin differs/u), + ]); +} + +test('SDXL private Edit evidence requires the reviewed checkpoint before reading its descriptor', () => + assertPinnedPrivateEdit({ + modelType: 'StableDiffusionXLPipeline', + graphPath: 'studio/stable-diffusion-xl-pipeline/edit-image.json', + sourceTemplateId: 'task-template:sdxl-base:edit-image:v1', + repo: 'stabilityai/stable-diffusion-xl-base-1.0', + exactRevision: '462165984030d82259a11f4367a4eed129e94a7b', + })); + +test('SD1.5 private Edit evidence requires the reviewed checkpoint before reading its descriptor', () => + assertPinnedPrivateEdit({ + modelType: 'StableDiffusionPipeline', + graphPath: 'studio/stable-diffusion-pipeline/edit-image.json', + sourceTemplateId: 'task-template:sd15-base:edit-image:v1', + repo: 'stable-diffusion-v1-5/stable-diffusion-v1-5', + exactRevision: '451f4fe16113bff5a5d2269ed5ad43b0592e9a14', + })); + +test('only the scoped SD1.5 Edit route accepts the observed Windows CUDA runtime', () => { + const sd15 = 'StableDiffusionPipeline:edit_image'; + const sdxl = 'StableDiffusionXLPipeline:edit_image'; + const windows = 'Windows-11-10.0.26300-SP0'; + const linux = 'Linux-7.0.0-38-generic-x86_64-with-glibc2.43'; + assert.doesNotThrow(() => validatePrivateImageEditRuntimePlatform(sd15, windows, 'cuda')); + assert.doesNotThrow(() => validatePrivateImageEditRuntimePlatform(sd15, linux, 'rocm')); + assert.throws(() => validatePrivateImageEditRuntimePlatform(sd15, windows, 'rocm')); + assert.throws(() => validatePrivateImageEditRuntimePlatform(sd15, linux, 'cuda')); + assert.throws(() => validatePrivateImageEditRuntimePlatform(sd15, 'Darwin-26.0', 'mps')); + assert.throws(() => validatePrivateImageEditRuntimePlatform('StableDiffusionPipeline:inpaint', windows, 'cuda')); + assert.doesNotThrow(() => validatePrivateImageEditRuntimePlatform(sdxl, linux, 'rocm')); + assert.throws(() => validatePrivateImageEditRuntimePlatform(sdxl, windows, 'cuda')); }); diff --git a/scripts/workflow-document-origin.test.mjs b/scripts/workflow-document-origin.test.mjs index 945b35cb..21dfcde5 100644 --- a/scripts/workflow-document-origin.test.mjs +++ b/scripts/workflow-document-origin.test.mjs @@ -283,6 +283,87 @@ test('fresh ordinary graph inference still defaults to Automatic without a saved assert.equal(inference.inferStudioFormFromWorkflow(snapshot.nodes, snapshot.studioForm).resourceMode, 'auto'); }); +test('an exact SDXL direct task keeps its own model identity despite a same-checkpoint modular form', async () => { + const { workflowSnapshotFromGraph, restoreReviewedDirectImageModelType } = await server.ssrLoadModule( + '/src/studio/workflowInference.ts', + ); + const { useNodesStore } = await server.ssrLoadModule('/src/stores/useNodeStore.ts'); + const originalRegistry = useNodesStore.getState(); + const selection = { source: 'hub', value: 'stabilityai/stable-diffusion-xl-base-1.0' }; + const routes = [ + ['edit_image', 'Edit', 'diffusersImageEdit', 'StableDiffusionXLImg2ImgPipeline'], + ['inpaint', 'Inpaint', 'diffusersImageInpaint', 'StableDiffusionXLInpaintPipeline'], + ]; + useNodesStore.setState({ + studioModelCapabilitiesAuthoritative: true, + studioExecutionSpecInvalid: false, + studioModelCapabilities: [ + { + modelType: 'StableDiffusionXLPipeline', + studioExecutionSpecs: routes.map(([mode, action, role, pipelineClass]) => ({ + modelType: 'StableDiffusionXLPipeline', + mode, + pipelineClass, + defaultRepo: selection.value, + loaderModule: 'modules.DiffusersImage', + loaderAction: 'LoadPipeline', + executionPath: 'direct-diffusers-image', + roles: [[role, `modules.DiffusersImage.${action}`]], + edges: [['diffusersImagePipeline', 'pipeline', role, 'pipeline']], + })), + }, + ], + }); + try { + for (const [mode, action, role, pipelineClass] of routes) { + const form = { ...defaultForm, mode, modelType: 'StableDiffusionXLModularPipeline' }; + const graph = ordinaryImageSnapshot('modules.DiffusersImage', action, 'expert'); + const loader = graph.nodes.find((node) => node.id === 'model'); + const consumer = graph.nodes.find((node) => node.id === 'operation'); + Object.assign(loader.data, { + module: 'modules.DiffusersImage', + action: 'LoadPipeline', + studioOwned: true, + studioRole: 'diffusersImagePipeline', + params: { + model_id: { value: selection }, + pipeline_class: { value: pipelineClass }, + mode: { value: mode }, + }, + }); + Object.assign(consumer.data, { + studioOwned: true, + studioRole: role, + params: { image_contract: { value: { pipelineClass, mode } } }, + }); + graph.edges.push({ + id: 'model-wire', + source: 'model', + sourceHandle: 'pipeline', + target: 'operation', + targetHandle: 'pipeline', + }); + const original = structuredClone(graph); + const reopened = workflowSnapshotFromGraph(graph, 'default', form); + assert.equal(reopened.studioForm.modelType, 'StableDiffusionXLPipeline'); + assert.equal(reopened.studioForm.mode, mode); + assert.deepEqual(restoreReviewedDirectImageModelType(graph.nodes, graph.edges, form), { + ...form, + modelType: 'StableDiffusionXLPipeline', + }); + assert.deepEqual(graph, original); + assert.equal(restoreReviewedDirectImageModelType(graph.nodes, [], form), form); + const authored = { ...form, modelType: 'StableDiffusionXLInstructPix2PixPipeline' }; + assert.equal(restoreReviewedDirectImageModelType(graph.nodes, graph.edges, authored), authored); + loader.data.module = 'modules.ModularDiffusers'; + loader.data.action = 'ModelsLoader'; + assert.equal(restoreReviewedDirectImageModelType(graph.nodes, graph.edges, form), form); + } + } finally { + useNodesStore.setState(originalRegistry); + } +}); + test('passive ordinary image restore preserves the complete saved form and does not autosave an inferred summary', async (t) => { const previousFlow = flow.getState(); const previousStudio = studio.getState(); diff --git a/src/stores/useStudioStore.ts b/src/stores/useStudioStore.ts index edbc65cd..5ff38746 100644 --- a/src/stores/useStudioStore.ts +++ b/src/stores/useStudioStore.ts @@ -53,7 +53,11 @@ import { stableStringify, } from '../studio/templateExactness'; import { STUDIO_TEMPLATES, getPreset } from '../studio/templates'; -import { adoptManagedWorkflowGraph, inferStudioFormFromWorkflow } from '../studio/workflowInference'; +import { + adoptManagedWorkflowGraph, + inferStudioFormFromWorkflow, + restoreReviewedDirectImageModelType, +} from '../studio/workflowInference'; import { createLatestRequestGate, formatRequestError, requestBlob } from '../utils/requestJson'; import { createPageCheckpointStorage } from '../utils/checkpointStorage'; import { restoreManagedAttentionDefault, restoreSavedAttentionDefaults } from '../workflow/savedAttentionCompatibility'; @@ -676,7 +680,11 @@ function normalizeWorkflowSnapshot( value.studioForm.mode === persistedStudioForm.mode && value.studioForm.modelType === persistedStudioForm.modelType; const inferOrdinaryForm = ordinaryTaskImport && (intent === 'import' || !hasPersistedForm); - const studioForm = adoptedGraph || inferOrdinaryForm ? inferredManagedForm : persistedStudioForm; + const inferredOrSavedForm = adoptedGraph || inferOrdinaryForm ? inferredManagedForm : persistedStudioForm; + const studioForm = + activeTemplateId || persistedGraphBinding || adoptedGraph + ? inferredOrSavedForm + : restoreReviewedDirectImageModelType(nodes, edges, inferredOrSavedForm); const normalizedNodes = adoptedGraph?.nodes ?? nodes; const executionNormalizedNodes = ordinaryTaskImport || ordinaryOperationGraph diff --git a/src/studio/workflowInference.ts b/src/studio/workflowInference.ts index 746f56c7..a626736e 100644 --- a/src/studio/workflowInference.ts +++ b/src/studio/workflowInference.ts @@ -1,5 +1,7 @@ import type { Edge, Viewport } from '@xyflow/react'; import type { CustomNodeType } from '../stores/useFlowStore'; +import { useNodesStore } from '../stores/useNodeStore'; +import { unpackVisualOperationGroups } from '../workflow/visualOperationGroupProjection'; import { BUILTIN_AUDIO_OPERATION_MODES, BUILTIN_DATA_OPERATION_MODES, @@ -325,6 +327,91 @@ function declaredModelType(nodes: NodeLike[], fallback: StudioModelType) { return Object.values(STUDIO_MODEL_PROFILES).find((profile) => repos.includes(profile.defaultRepo))?.modelType; } +/** Repair a same-repository summary only when the ordinary graph carries a + * uniquely identified direct execution specification and its connected task. + * The projection is inspected and never saved back into the document. */ +export function restoreReviewedDirectImageModelType( + nodes: CustomNodeType[], + edges: Edge[], + form: StudioFormState, +): StudioFormState { + const registry = useNodesStore.getState(); + if (!registry.studioModelCapabilitiesAuthoritative || registry.studioExecutionSpecInvalid) return form; + const authoredRepo = STUDIO_MODEL_PROFILES[form.modelType]?.defaultRepo; + if (!authoredRepo) return form; + let graph; + try { + graph = unpackVisualOperationGroups({ nodes, edges }).graph; + } catch { + return form; + } + const loaders = graph.nodes.filter(isModelLoader); + const loader = loaders[0]; + if ( + loaders.length !== 1 || + !loader || + nodeKey(loader) !== 'modules.DiffusersImage.LoadPipeline' || + loader.data.studioOwned !== true || + loader.data.studioRole !== 'diffusersImagePipeline' || + paramValue(loader, ['model_type']) !== undefined || + paramValue(loader, ['mode']) !== form.mode + ) + return form; + const selection = paramValue(loader, ['model_id']); + if ( + typeof selection !== 'object' || + !selection || + !('source' in selection) || + selection.source !== 'hub' || + stringValue(selection) !== authoredRepo + ) + return form; + const pipeline = paramValue(loader, ['pipeline_class']); + const specs = registry.studioModelCapabilities.flatMap((profile) => profile.studioExecutionSpecs ?? []); + const routes = specs.filter( + (spec) => + spec.mode === form.mode && + spec.executionPath === 'direct-diffusers-image' && + spec.loaderModule === loader.data.module && + spec.loaderAction === loader.data.action && + spec.pipelineClass === pipeline && + spec.defaultRepo === authoredRepo, + ); + const route = routes[0]; + if (routes.length !== 1 || !route || route.modelType === form.modelType) return form; + const consumers = graph.edges.filter( + (edge) => edge.source === loader.id && edge.sourceHandle === 'pipeline' && edge.targetHandle === 'pipeline', + ); + if (consumers.length !== 1) return form; + const consumer = graph.nodes.find((node) => node.id === consumers[0]?.target); + const consumerRole = consumer?.data.studioRole; + if ( + !consumer || + !consumerRole || + consumer.data.studioOwned !== true || + !route.roles.some(([role, key]) => role === consumerRole && key === nodeKey(consumer)) || + !route.edges.some( + ([sourceRole, sourcePort, targetRole, targetPort]) => + sourceRole === loader.data.studioRole && + sourcePort === 'pipeline' && + targetRole === consumerRole && + targetPort === 'pipeline', + ) + ) + return form; + const contract = paramValue(consumer, ['image_contract']); + if ( + !contract || + typeof contract !== 'object' || + !('pipelineClass' in contract) || + contract.pipelineClass !== route.pipelineClass || + !('mode' in contract) || + contract.mode !== route.mode + ) + return form; + return { ...form, modelType: route.modelType }; +} + function inferModelType(nodes: NodeLike[], fallback: StudioFormState): StudioModelType { // A processing stage is not the generation model. Prefer the existing // loader declarations before the standalone-operation fallbacks, independent @@ -790,7 +877,7 @@ export function workflowSnapshotFromGraph( ...edge, type: edge.type ?? edgeType, })); - const form = inferStudioFormFromWorkflow(nodes, fallback); + const form = restoreReviewedDirectImageModelType(nodes, edges, inferStudioFormFromWorkflow(nodes, fallback)); const adopted = adoptManagedWorkflowGraph(nodes, edges, form); return { nodes: adopted?.nodes ?? nodes, From 56424424a6096ad88943ae72ded598e7af970c3e Mon Sep 17 00:00:00 2001 From: Sourav Das Date: Sat, 21 Nov 2026 13:40:27 +0530 Subject: [PATCH 290/440] Verify exact PRX and saved SD 1.5 prompt-bound receipts --- scripts/canonical-image-accounting.test.mjs | 132 ++++++++++++++-- scripts/canonical-runtime-hints.mjs | 59 ++++++-- scripts/live-proof-provenance.mjs | 157 +++++++++++++++++--- scripts/prompt-variant-evidence.mjs | 91 ++++++++++-- scripts/prompt-variant-evidence.test.mjs | 37 +++++ scripts/release-contract-core.mjs | 8 +- 6 files changed, 432 insertions(+), 52 deletions(-) diff --git a/scripts/canonical-image-accounting.test.mjs b/scripts/canonical-image-accounting.test.mjs index 031ea9d5..6813f897 100644 --- a/scripts/canonical-image-accounting.test.mjs +++ b/scripts/canonical-image-accounting.test.mjs @@ -5,7 +5,13 @@ import { join } from 'node:path'; import { fileURLToPath } from 'node:url'; import { before, test } from 'node:test'; import { protocolFactoryArguments } from './canonical-provenance-fixtures.mjs'; -import { canonicalAccountingExecutionPlan, createRunProvenance, stableStringify } from './live-proof-provenance.mjs'; +import { directImagePromptRuntimeHintAccounting } from './canonical-runtime-hints.mjs'; +import { + canonicalAccountingExecutionPlan, + createRunProvenance, + directImagePromptAccountingExecutionPlan, + stableStringify, +} from './live-proof-provenance.mjs'; import { exportCanonicalWorkflowGraphs, readCanonicalWorkflowEvidence } from './release-contract-core.mjs'; const clientRoot = fileURLToPath(new URL('../', import.meta.url)); @@ -46,6 +52,7 @@ const project = (kind, values, sourceNodeId, sourcePortId) => ({ // The canonical input is the actual exporter output. The stage transport, // runtime and accounting observations are synthetic and never registered. let synthetic; +let syntheticPrx; const syntheticRetained = new Map(); before(async () => { synthetic = await syntheticImageCase({ @@ -53,22 +60,35 @@ before(async () => { graphPath: 'pix-art-sigma-pag-pipeline/text-to-image.json', size: 1024, }); + syntheticPrx = await syntheticImageCase({ + modelType: 'PRXPipeline', + graphPath: 'prx-pipeline/text-to-image.json', + size: 512, + platform: 'Linux-x86_64', + backend: 'rocm', + }); for (const profile of retainedProfiles) syntheticRetained.set(profile.modelType, await syntheticImageCase(profile)); }); async function syntheticImageCase({ modelType, graphPath, size, platform, backend }) { - const retained = platform !== undefined; + const directPrx = modelType === 'PRXPipeline'; + const retained = platform !== undefined && !directPrx; const generateAction = retained ? 'UnconditionalGenerate' : 'Generate'; const taskMode = retained ? 'unconditional_image' : 'text_to_image'; const graph = JSON.parse(readFileSync(join(backendRoot, 'data/graphs/studio', graphPath), 'utf8')); + if (directPrx) { + const generate = graph.nodes.find((node) => node.data.action === 'Generate'); + generate.data.params.prompt.value = 'Editorial product photograph of a single silver compass.'; + } const [expected] = await exportCanonicalWorkflowGraphs(clientRoot, [graph]); const form = { modelType, mode: taskMode, ...(retained ? { resourceMode: 'expert' } : {}) }; - const visualNodes = graph.nodes.filter((node) => node.data.action === 'Preview'); + const visualNodes = graph.nodes.filter( + (node) => node.data.action === 'Preview' || (directPrx && node.data.action === 'Generate'), + ); const ids = new Map(visualNodes.map((node) => [node.id, node.id])); - for (const [id, pick] of [ - ['setup', (node) => node.data.action !== generateAction], - ['generate', (node) => node.data.action === generateAction], - ]) { + const staged = [['setup', (node) => node.data.action !== generateAction]]; + if (!directPrx) staged.push(['generate', (node) => node.data.action === generateAction]); + for (const [id, pick] of staged) { const leaves = graph.nodes.filter((node) => !ids.has(node.id) && pick(node)); const nodes = leaves.map(({ id: nodeId, data }) => { ids.set(nodeId, `block-v2-node:${id.length}:${id}:${nodeId.length}:${nodeId}`); @@ -85,9 +105,9 @@ async function syntheticImageCase({ modelType, graphPath, size, platform, backen for (const param of Object.values(node.params)) if (param.sourceId) param.sourceId = ids.get(param.sourceId); apiGraph.paths = apiGraph.paths.map((path) => path.map((id) => ids.get(id))); const expectedApiGraph = structuredClone(apiGraph); - const nodeId = visualNodes[0].id; + const nodeId = visualNodes.find((node) => node.data.action === 'Preview').id; const base = protocolFactoryArguments(apiGraph); - if (retained) { + if (platform) { base.runtimeFingerprint.packages.platform = platform; base.executionReceipt.runtimeMeasurement.backend = backend; base.executionReceipt.runtimeMeasurement.device = 'cuda:0'; @@ -170,6 +190,23 @@ async function syntheticImageCase({ modelType, graphPath, size, platform, backen 'use_en_prompt', ], UnconditionalGenerate: ['eta', 'class_label'], + ...(directPrx + ? { + Generate: [ + 'cfg_normalize', + 'control_guidance_end', + 'control_guidance_start', + 'image_guidance_scale', + 'layers', + 'padding_mask_crop', + 'pag_adaptive_scale', + 'pag_scale', + 'resolution', + 'strength', + 'use_en_prompt', + ], + } + : {}), Preview: ['device'], }; const replacedLoaderFields = { @@ -317,9 +354,9 @@ async function syntheticImageCase({ modelType, graphPath, size, platform, backen }; } -const projection = (value) => { +const projection = (value, reader = canonicalAccountingExecutionPlan) => { const { expectedApiGraph, target, run, graphCompleted } = value.canonicalAccountingProof; - return canonicalAccountingExecutionPlan({ + return reader({ expectedApiGraph, target, apiGraph: value.apiGraph, @@ -328,6 +365,79 @@ const projection = (value) => { }); }; +test('PRX prompt variant accepts the exact cached pin and complete scoped accounting', () => { + const before = structuredClone(syntheticPrx); + const accepted = projection(syntheticPrx, directImagePromptAccountingExecutionPlan); + assert.equal(accepted.plan.runtimeHintAccounting.policy, 'direct-image-prompt-runtime-hints-v1'); + assert.equal(accepted.plan.offloadMode, 'model_cpu'); + assert.deepEqual(syntheticPrx, before); + assert.throws(() => projection(syntheticPrx), /outside the reviewed scope/u); +}); + +test('PRX prompt variant rejects alternate model pins, sequence accounting and controls', () => { + const wrongOwner = structuredClone(syntheticPrx); + const snapshot = wrongOwner.apiGraph.runtimeHints.workflowSnapshot; + const generateNode = snapshot.nodes.find((node) => node.data.action === 'Generate'); + const setup = snapshot.nodes.find((node) => node.data.blockInstanceV2); + setup.data.blockInstanceV2.effectiveGraph.nodes.push({ nodeId: generateNode.id, data: generateNode.data }); + snapshot.nodes = snapshot.nodes.filter((node) => node.id !== generateNode.id); + assert.throws( + () => projection(wrongOwner, directImagePromptAccountingExecutionPlan), + /PRX Model Setup member scope differs/u, + ); + const wrongPin = structuredClone(syntheticPrx); + wrongPin.canonicalAccountingProof.target.modelSet[0].revision = 'e'.repeat(40); + assert.throws( + () => projection(wrongPin, directImagePromptAccountingExecutionPlan), + /Conditional image model is outside the reviewed accounting scope/u, + ); + const misplacedLimit = structuredClone(syntheticPrx); + const generate = misplacedLimit.executedOutput.resolvedExecutionInputs.nodes.find((row) => row.action === 'Generate'); + const reported = generate.fieldAccounting.fields.max_sequence_length; + reported.disposition = 'inactive'; + reported.reason = 'adapter-inactive'; + delete generate.fields.max_sequence_length; + assert.throws(() => projection(misplacedLimit, directImagePromptAccountingExecutionPlan)); + const wrongValue = structuredClone(syntheticPrx); + const wrongGenerate = wrongValue.executedOutput.resolvedExecutionInputs.nodes.find( + (row) => row.action === 'Generate', + ); + wrongGenerate.fieldAccounting.fields.max_sequence_length.value = 224; + wrongGenerate.fields.max_sequence_length.value = 224; + assert.throws(() => projection(wrongValue, directImagePromptAccountingExecutionPlan)); + const incomplete = structuredClone(syntheticPrx); + const incompleteGenerate = incomplete.executedOutput.resolvedExecutionInputs.nodes.find( + (row) => row.action === 'Generate', + ); + delete incompleteGenerate.fieldAccounting.fields.cfg_normalize; + assert.throws(() => projection(incomplete, directImagePromptAccountingExecutionPlan)); +}); + +test('saved SD1.5 stage owners still require the original native completion evidence', () => { + const block = (actions) => ({ + data: { blockInstanceV2: { effectiveGraph: { nodes: actions.map((action) => ({ data: { action } })) } } }, + }); + const preview = { data: { action: 'Preview' } }; + const setup = block(['LoadPipeline', 'PipelineQuantizationConfigV2', 'DiffusersExecutionRecipe']); + const generate = block(['Generate']); + const verify = (modelType, nodes) => + directImagePromptRuntimeHintAccounting({ + plan: { modelType }, + apiGraph: { runtimeHints: { workflowSnapshot: { nodes } } }, + }); + assert.throws(() => verify('StableDiffusionPipeline', [preview, setup, generate]), /original completion evidence/u); + assert.throws( + () => verify('StableDiffusionPipeline', [preview, setup, block(['Preview'])]), + /Saved SD1.5 Generate member scope differs/u, + ); + assert.throws( + () => verify('StableDiffusionPipeline', [preview, setup, { data: { action: 'Generate' } }]), + /exact saved stage owners/u, + ); + assert.throws(() => verify('PRXPipeline', [preview, setup, generate]), /exact saved stage owners/u); + assert.throws(() => verify('SanaSprintPipeline', [preview, setup, generate]), /outside reviewed scope/u); +}); + test('staged PixArt evidence derives a correlated Expert CPU-offload plan without altering the originals', () => { const before = structuredClone(synthetic); const result = projection(synthetic); diff --git a/scripts/canonical-runtime-hints.mjs b/scripts/canonical-runtime-hints.mjs index 774c01dd..13b2d855 100644 --- a/scripts/canonical-runtime-hints.mjs +++ b/scripts/canonical-runtime-hints.mjs @@ -39,7 +39,7 @@ export function assertCanonicalAccountingGraphEnvelope(apiGraph) { // Preserve the existing importer while the same envelope is reused by image accounting. export const assertCanonicalDdimGraphEnvelope = assertCanonicalAccountingGraphEnvelope; -function assertSnapshotOwners(snapshot, apiGraph, staged) { +function assertSnapshotOwners(snapshot, apiGraph, expectedBlockCount) { const owners = []; const check = (id, data) => { const node = apiGraph.nodes[id]; @@ -55,7 +55,7 @@ function assertSnapshotOwners(snapshot, apiGraph, staged) { check(node.id, node.data); continue; } - assert.ok(staged, 'Block snapshot authority is outside ordinary DDIM scope.'); + assert.ok(expectedBlockCount > 0, 'Block snapshot authority is outside ordinary DDIM scope.'); assert.equal(node.data.module, 'MoDiff'); assert.equal(node.data.action, 'BlockV2'); assert.equal(block.instanceId, node.id, 'Workflow snapshot Block owner differs.'); @@ -70,7 +70,7 @@ function assertSnapshotOwners(snapshot, apiGraph, staged) { check(id, leaf.data); } } - if (staged) assert.equal(blockCount, 2, 'Reviewed image stage owners differ.'); + assert.equal(blockCount, expectedBlockCount, 'Reviewed stage owners differ.'); same(owners.sort(), Object.keys(apiGraph.nodes).sort(), 'Workflow snapshot owner scope differs.'); } @@ -91,7 +91,48 @@ export function canonicalDdimRuntimeHintAccounting(args) { // The reviewed PixArt route is a staged Expert graph with transport hints only. export function canonicalPixArtSigmaPagRuntimeHintAccounting(args) { - return canonicalRuntimeHintAccounting(args, 'text_to_image', 'canonical-pixart-sigma-pag-runtime-hints-v1', true); + return canonicalRuntimeHintAccounting(args, 'text_to_image', 'canonical-pixart-sigma-pag-runtime-hints-v1', 2); +} + +export function directImagePromptRuntimeHintAccounting(args) { + const savedSd15 = args.plan.modelType === 'StableDiffusionPipeline'; + assert.ok( + savedSd15 || args.plan.modelType === 'PRXPipeline', + 'Direct image snapshot model is outside reviewed scope.', + ); + const stageName = savedSd15 ? 'Saved SD1.5' : 'PRX'; + const expectedBlockCount = savedSd15 ? 2 : 1; + const nodes = args.apiGraph.runtimeHints?.workflowSnapshot?.nodes; + assert.ok(Array.isArray(nodes), `Original ${stageName} workflow snapshot is missing.`); + const blocks = nodes.filter((node) => node.data?.blockInstanceV2); + assert.equal(blocks.length, expectedBlockCount, `${stageName} requires the exact saved stage owners.`); + const members = blocks + .map((node) => { + const leaves = node.data.blockInstanceV2.effectiveGraph?.nodes; + assert.ok(Array.isArray(leaves), `${stageName} stage members are missing.`); + return leaves.map((leaf) => leaf.data?.action).sort(); + }) + .sort((a, b) => b.length - a.length); + same( + members[0], + ['DiffusersExecutionRecipe', 'LoadPipeline', 'PipelineQuantizationConfigV2'], + `${stageName} Model Setup member scope differs.`, + ); + if (savedSd15) same(members[1], ['Generate'], 'Saved SD1.5 Generate member scope differs.'); + same( + nodes + .filter((node) => !node.data?.blockInstanceV2) + .map((node) => node.data?.action) + .sort(), + savedSd15 ? ['Preview'] : ['Generate', 'Preview'], + `${stageName} ordinary executable node scope differs.`, + ); + return canonicalRuntimeHintAccounting( + args, + 'text_to_image', + 'direct-image-prompt-runtime-hints-v1', + expectedBlockCount, + ); } export function canonicalRetainedUnconditionalRuntimeHintAccounting(args) { @@ -99,19 +140,19 @@ export function canonicalRetainedUnconditionalRuntimeHintAccounting(args) { args, 'unconditional_image', 'canonical-retained-unconditional-runtime-hints-v1', - true, + 2, ); } export function canonicalMarigoldPreviewRuntimeHintAccounting(args) { - return canonicalRuntimeHintAccounting(args, 'depth_estimation', 'canonical-marigold-preview-runtime-hints-v1', true); + return canonicalRuntimeHintAccounting(args, 'depth_estimation', 'canonical-marigold-preview-runtime-hints-v1', 2); } function canonicalRuntimeHintAccounting( { apiGraph, consumed, plan, runtimeEvidence, digest }, taskMode, policy, - staged = false, + expectedBlockCount = 0, ) { const hints = apiGraph.runtimeHints; assert.ok(record(runtimeEvidence), 'Declared runtime hints require original completion evidence.'); @@ -120,7 +161,7 @@ function canonicalRuntimeHintAccounting( const task = run?.task; const managed = Object.hasOwn(hints, 'source'); assert.ok( - !staged || (!managed && !Object.hasOwn(hints, 'nodeId')), + expectedBlockCount === 0 || (!managed && !Object.hasOwn(hints, 'nodeId')), 'Image accounting requires full-graph transport-only hints.', ); const optional = optionalTransportKeys.filter((key) => Object.hasOwn(hints, key)); @@ -270,7 +311,7 @@ function canonicalRuntimeHintAccounting( record(snapshot) && Array.isArray(snapshot.nodes) && Array.isArray(snapshot.edges), 'Original workflow snapshot is missing.', ); - assertSnapshotOwners(snapshot, apiGraph, staged); + assertSnapshotOwners(snapshot, apiGraph, expectedBlockCount); same(snapshot.studioForm, output.formSnapshot, 'Submitted snapshot/output form differs.'); assert.equal(output.formSnapshot?.modelType, plan.modelType, 'Original hinted form model differs.'); assert.equal(output.formSnapshot?.mode, taskMode, 'Original hinted form task differs.'); diff --git a/scripts/live-proof-provenance.mjs b/scripts/live-proof-provenance.mjs index 7295ae56..fee20c94 100644 --- a/scripts/live-proof-provenance.mjs +++ b/scripts/live-proof-provenance.mjs @@ -12,6 +12,7 @@ import { canonicalDdimRuntimeHintAccounting, canonicalPixArtSigmaPagRuntimeHintAccounting, canonicalRetainedUnconditionalRuntimeHintAccounting, + directImagePromptRuntimeHintAccounting, } from './canonical-runtime-hints.mjs'; import { capturedNativeGraphSubmission, @@ -2204,6 +2205,61 @@ const pixArtSigmaPag = { ' ', ), }; +const plainImageActive = 'prompt seed width height num_inference_steps guidance_scale output_type'.split(' '); +const plainImageInactive = + 'image_guidance_scale pag_adaptive_scale pag_scale cfg_normalize control_guidance_end control_guidance_start layers padding_mask_crop resolution strength use_en_prompt'.split( + ' ', + ); +const plainImageLegacyNull = ['control_guidance_start', 'conditioning_scale', 'strength', 'control_guidance_end']; +export const directImagePromptRoutes = [ + { + format: 'modiff.private.prx-prompt-variant.v1', + workflowId: 'PRXPipeline:text_to_image', + modelType: 'PRXPipeline', + modelRepo: 'Photoroom/prx-512-t2i-sft', + modelRevision: '2996423bc26e8eaca48774fac1797484214dfea0', + active: [...plainImageActive, 'negative_prompt', 'max_sequence_length'], + inactive: plainImageInactive, + legacyNull: plainImageLegacyNull, + platform: /^Linux-/u, + backend: 'rocm', + dtype: 'bfloat16', + offload: 'model_cpu', + deviceMap: 'none', + generation: { + width: 512, + height: 512, + num_inference_steps: 28, + guidance_scale: 5, + max_sequence_length: 256, + seed: 42, + negative_prompt: '', + }, + }, + { + format: 'modiff.private.sd15-prompt-variant.v1', + workflowId: 'StableDiffusionPipeline:text_to_image', + modelType: 'StableDiffusionPipeline', + modelRepo: 'stable-diffusion-v1-5/stable-diffusion-v1-5', + modelRevision: '451f4fe16113bff5a5d2269ed5ad43b0592e9a14', + active: [...plainImageActive, 'negative_prompt'], + inactive: [...plainImageInactive, 'max_sequence_length'], + legacyNull: [...plainImageLegacyNull, 'max_sequence_length'], + platform: /^Windows-/u, + backend: 'cuda', + dtype: 'float32', + offload: 'none', + deviceMap: 'cuda', + generation: { + width: 512, + height: 512, + num_inference_steps: 30, + guidance_scale: 7.5, + seed: 8319, + negative_prompt: '', + }, + }, +]; const retainedUnconditionalRecipes = { DDPMPipeline: { repoId: 'google/ddpm-cifar10-32', @@ -2287,6 +2343,19 @@ function accountingDigest(kind, value) { * Native acceptance remains separate; the default factory path stays unchanged. */ export function canonicalAccountingExecutionPlan({ expectedApiGraph, apiGraph, consumed, target, runtimeEvidence }) { + return imageAccountingExecutionPlan({ expectedApiGraph, apiGraph, consumed, target, runtimeEvidence }); +} + +export function directImagePromptAccountingExecutionPlan(args) { + const profile = directImagePromptRoutes.find(({ workflowId }) => workflowId === args.target.workflowId); + assert.ok(profile, 'Direct image prompt accounting route is outside the reviewed scope.'); + return imageAccountingExecutionPlan(args, profile); +} + +function imageAccountingExecutionPlan( + { expectedApiGraph, apiGraph, consumed, target, runtimeEvidence }, + promptVariant, +) { assertCanonicalAccountingGraphEnvelope(expectedApiGraph); assertCanonicalAccountingGraphEnvelope(apiGraph); same( @@ -2295,24 +2364,33 @@ export function canonicalAccountingExecutionPlan({ expectedApiGraph, apiGraph, c 'Accounting graph is not the canonical export.', ); const isPixArt = target.modelType === pixArtSigmaPag.modelType; + const conditional = promptVariant ?? (isPixArt ? pixArtSigmaPag : null); + const legacyNullFields = promptVariant?.legacyNull ?? (isPixArt ? pixArtLegacyNullFields : []); const retainedUnconditional = Object.hasOwn(retainedUnconditionalRecipes, target.modelType) ? retainedUnconditionalRecipes[target.modelType] : null; assert.ok( - isPixArt || retainedUnconditional || target.modelType === 'DDIMPipeline', + conditional || retainedUnconditional || target.modelType === 'DDIMPipeline', 'Canonical accounting model is outside the reviewed scope.', ); - assert.equal(target.task, isPixArt ? 'text_to_image' : 'unconditional_image'); - if (isPixArt) { - assert.equal(target.workflowId, pixArtSigmaPag.workflowId); - same(target.modelSet, pixArtSigmaPag.modelSet, 'PixArt model is outside the reviewed accounting scope.'); + assert.equal(target.task, conditional ? 'text_to_image' : 'unconditional_image'); + if (conditional) { + assert.equal(target.modelType, conditional.modelType); + assert.equal(target.workflowId, conditional.workflowId); + const modelSet = promptVariant + ? [{ repoId: promptVariant.modelRepo, revision: promptVariant.modelRevision }] + : conditional.modelSet; + same(target.modelSet, modelSet, 'Conditional image model is outside the reviewed accounting scope.'); } if (retainedUnconditional) { const { repoId, revision } = retainedUnconditional; assert.equal(target.workflowId, `${target.modelType}:unconditional_image`); same(target.modelSet, [{ repoId, revision }], 'Retained unconditional model is outside the reviewed scope.'); } - const generateAction = isPixArt ? 'Generate' : 'UnconditionalGenerate'; + const generateAction = conditional ? 'Generate' : 'UnconditionalGenerate'; + const generationFields = conditional + ? ['image_contract', ...conditional.active, ...conditional.inactive] + : accountingFields[generateAction]; assert.equal(consumed?.schemaVersion, 1); assert.equal(consumed.source, 'backend-execution'); assert.equal(consumed.truncated, false); @@ -2359,7 +2437,7 @@ export function canonicalAccountingExecutionPlan({ expectedApiGraph, apiGraph, c same(section.unaccountedFields, [], 'Unaccounted graph fields remain.'); assert.ok(JSON.stringify(section).length <= 65_536, 'Accounting section exceeds its bound.'); const expectedFields = [ - ...accountingFields[row.action], + ...(row.action === generateAction ? generationFields : accountingFields[row.action]), ...(row.action === 'LoadPipeline' && Object.hasOwn(node.params, 'execution_profile_id') ? ['execution_profile_id'] : []), @@ -2408,8 +2486,8 @@ export function canonicalAccountingExecutionPlan({ expectedApiGraph, apiGraph, c assert.equal(field.value, target.task); continue; } - if (isPixArt && row.action === 'Generate' && pixArtLegacyNullFields.includes(key)) { - assert.equal(field.value, null, `Inactive legacy control was passed to PixArt: ${key}`); + if (row.action === 'Generate' && legacyNullFields.includes(key)) { + assert.equal(field.value, null, `Inactive legacy control was passed to the pipeline: ${key}`); continue; } const accounted = section.fields[key]; @@ -2492,7 +2570,7 @@ export function canonicalAccountingExecutionPlan({ expectedApiGraph, apiGraph, c assert.equal(value(recipe, 'device_map'), 'none', 'Split/manual placement is outside the bounded accounting scope.'); assert.equal( value(recipe, 'offload_mode'), - isPixArt ? 'model_cpu' : 'none', + promptVariant?.offload ?? (isPixArt ? 'model_cpu' : 'none'), 'Offload is outside the reviewed accounting scope.', ); const projection = (item, kind, values, producer) => { @@ -2599,19 +2677,19 @@ export function canonicalAccountingExecutionPlan({ expectedApiGraph, apiGraph, c target.modelSet, 'Executed model set differs.', ); - const inactive = new Set( - isPixArt ? pixArtSigmaPag.inactive : ['class_label', ...(retainedUnconditional ? ['eta'] : [])], - ); - for (const key of accountingFields[generateAction]) { + const inactive = new Set(conditional?.inactive ?? ['class_label', ...(retainedUnconditional ? ['eta'] : [])]); + for (const key of generationFields) { if (key === 'image_contract') { assert.equal(fields(generate)[key].disposition, 'metadata'); continue; } + const inputValue = fields(generate)[key].inputValue; + const effective = promptVariant && key === 'seed' ? Number(inputValue) : inputValue; check( generate, key, inactive.has(key) ? 'inactive' : 'consumed', - fields(generate)[key].inputValue, + effective, inactive.has(key) ? 'adapter-inactive' : undefined, ); } @@ -2684,6 +2762,43 @@ export function canonicalAccountingExecutionPlan({ expectedApiGraph, apiGraph, c 'PixArt output height differs from generation.', ); } + if (promptVariant) { + assert.ok( + typeof value(generate, 'prompt') === 'string' && value(generate, 'prompt').trim(), + 'Direct image accounting needs the authored prompt.', + ); + accountingKeys( + generate.row.fields, + [...promptVariant.active, 'executed_task', ...legacyNullFields], + 'Direct image legacy controls are incomplete or unexpected.', + ); + const contract = generate.node.params.image_contract.value; + assert.equal(contract.pipelineClass, target.modelType); + assert.equal(contract.mode, target.task); + for (const [key, expected] of Object.entries(promptVariant.generation)) + assert.equal(value(generate, key), expected, `Direct image ${key} is outside the reviewed accounting scope.`); + assert.ok(Number.isSafeInteger(value(generate, 'seed')) && value(generate, 'seed') >= 0); + assert.equal(value(owner, 'dtype'), promptVariant.dtype); + assert.equal(value(owner, 'device'), 'cuda:0'); + assert.equal(value(owner, 'device_map'), promptVariant.deviceMap); + assert.equal(recipeValues.attention_backend, 'auto'); + same(recipeValues.attention_components, [], 'Direct image attention component scope differs.'); + for (const key of ['regional_compile', 'channels_last', 'layerwise_casting']) + assert.equal(recipeValues[key], false); + assert.equal(recipeValues.denoiser_cache, 'none'); + assert.ok( + apiGraph.runtimeHints && Object.keys(apiGraph.runtimeHints).length > 0, + 'Direct image accounting requires original submission and completion evidence.', + ); + const { output } = runtimeEvidence ?? {}; + assert.equal(output?.fieldKey, 'preview'); + assert.equal(output.mediaItems?.length, 1); + same( + [output.mediaItems[0].width, output.mediaItems[0].height], + [value(generate, 'width'), value(generate, 'height')], + 'Native image dimensions differ from the dispatched recipe.', + ); + } check(preview, 'device', 'inactive', fields(preview).device.inputValue, 'already-decoded-image'); check(preview, 'export', 'consumed', fields(preview).export.inputValue); const plan = { @@ -2709,11 +2824,13 @@ export function canonicalAccountingExecutionPlan({ expectedApiGraph, apiGraph, c layerwiseCasting: recipeValues.layerwise_casting, }; if (apiGraph.runtimeHints && Object.keys(apiGraph.runtimeHints).length > 0) { - const accountHints = retainedUnconditional - ? canonicalRetainedUnconditionalRuntimeHintAccounting - : isPixArt - ? canonicalPixArtSigmaPagRuntimeHintAccounting - : canonicalDdimRuntimeHintAccounting; + const accountHints = promptVariant + ? directImagePromptRuntimeHintAccounting + : retainedUnconditional + ? canonicalRetainedUnconditionalRuntimeHintAccounting + : isPixArt + ? canonicalPixArtSigmaPagRuntimeHintAccounting + : canonicalDdimRuntimeHintAccounting; plan.runtimeHintAccounting = accountHints({ apiGraph, consumed, diff --git a/scripts/prompt-variant-evidence.mjs b/scripts/prompt-variant-evidence.mjs index eeb9ad1b..031c5937 100644 --- a/scripts/prompt-variant-evidence.mjs +++ b/scripts/prompt-variant-evidence.mjs @@ -8,6 +8,8 @@ import { backendSourceEvidence, canonicalGraphIdentity, normalizeBackendRuntime, + directImagePromptAccountingExecutionPlan, + directImagePromptRoutes, selectBackendRuntimeFingerprintEvidence, selectInstalledModelIdentity, stableStringify, @@ -84,6 +86,21 @@ const videoRoute = { ], }; +const imagePromptRoute = { + outputKind: 'image', + displayType: 'image', + contentType: 'image/webp', + loaderContract: ['modules.DiffusersImage.LoadPipeline'], + bindSeed: true, + chain: [ + ['quantization', 'modules.DiffusersRuntime', 'PipelineQuantizationConfigV2', ''], + ['recipe', 'modules.DiffusersRuntime', 'DiffusersExecutionRecipe', ''], + ['loader', 'modules.DiffusersImage', 'LoadPipeline', ''], + ['generator', 'modules.DiffusersImage', 'Generate', ''], + ['preview', 'modules.Image', 'Preview', ''], + ], +}; + const same = (actual, expected, message) => assert.equal(stableStringify(actual), stableStringify(expected), message); const keys = (record, fields, message) => same(Object.keys(record ?? {}).sort(), [...fields].sort(), message); const digest = (value) => createHash('sha256').update(value).digest('hex'); @@ -123,7 +140,8 @@ export function bindPromptVariant(profile, original, created, output, baselineHa const baseline = canonicalGraphIdentity(original); assert.equal(baseline.hash, baselineHash, 'The current authored prompt recipe differs from the original baseline.'); const expected = structuredClone(original); - const promptSlot = owners(profile, expected).generator.node.params.prompt; + const expectedInputs = owners(profile, expected).generator.node.params; + const promptSlot = expectedInputs.prompt; assert.equal(promptSlot.value, '', 'The current authored prompt is already filled.'); assert.ok(!promptSlot.sourceId, 'The authored prompt must be an unconnected literal.'); const submittedOwners = owners(profile, output); @@ -131,10 +149,23 @@ export function bindPromptVariant(profile, original, created, output, baselineHa assert.ok(typeof prompt === 'string' && prompt.length <= 4096 && prompt.trim() === prompt && prompt.length > 0); assert.ok(!/[\u0000-\u001f\u007f]/u.test(prompt), 'Prompt exercise contains an unsupported control character.'); promptSlot.value = prompt; + let seed; + if (profile.bindSeed) { + const seedSlot = expectedInputs.seed; + const actualSeed = submittedOwners.generator.node.params.seed; + for (const input of [seedSlot, actualSeed]) + assert.ok(input && !input.sourceId && !input.sourceKey, 'Prompt variant requires a literal seed.'); + const raw = actualSeed.value; + seed = typeof raw === 'string' && /^(?:0|[1-9][0-9]*)$/u.test(raw) ? Number(raw) : raw; + assert.ok(Number.isSafeInteger(seed) && seed >= 0, 'Prompt variant requires a safely representable unsigned seed.'); + seedSlot.value = raw; + } const identity = canonicalGraphIdentity(expected); - for (const graph of [created, output]) - same(canonicalGraphIdentity(graph), identity, 'Prompt variant changed a field or wire outside the empty prompt.'); - return { ...submittedOwners, identity, prompt }; + const mismatch = profile.bindSeed + ? 'Prompt variant changed a field or wire outside the bound prompt and seed.' + : 'Prompt variant changed a field or wire outside the empty prompt.'; + for (const graph of [created, output]) same(canonicalGraphIdentity(graph), identity, mismatch); + return { ...submittedOwners, identity, prompt, expected, seed }; } function validateConsumedPromptVariant(profile, bound, output) { @@ -200,6 +231,21 @@ function validateNativePromptRuntime(profile, bound, task, hints, graphCompleted return { runtime, measurement: task.runtimeMeasurement }; } +function validateImagePromptPreparation(preparation, modelType) { + if (preparation?.performed !== true) { + validateUnmodifiedExpertPreparation(preparation, modelType); + return; + } + const { cleanup, reasons, ...unchanged } = preparation; + validateUnmodifiedExpertPreparation({ ...unchanged, performed: false, cleanup: null, reasons: [] }, modelType); + same(reasons, ['cached model family is unknown'], 'Unreviewed direct image cache cleanup.'); + keys(cleanup, ['released', 'allocatorTrimmed', 'errors']); + same(cleanup.errors, [], 'Direct image cache cleanup failed.'); + assert.equal(typeof cleanup.allocatorTrimmed, 'boolean'); + keys(cleanup.released, ['nodes', 'models', 'diffusers_components', 'offload_files']); + assert.ok(Object.values(cleanup.released).every((count) => Number.isSafeInteger(count) && count >= 0)); +} + export function validatePromptVariantText(bytes, item, bound, runtime) { const text = new TextDecoder('utf-8', { fatal: true }).decode(bytes); assert.ok(bytes.equals(Buffer.from(text)), 'Original JSON output encoding differs.'); @@ -286,8 +332,10 @@ export function validatePromptVariantVideo(decoded, item, bound) { export async function readPromptVariantEvidence({ clientRoot, manifest, graph, authoring, artifact, evidencePath }) { const target = canonicalWorkflowAuthoringContract(manifest, graph, authoring, artifact); - const profiles = [textRoute, videoRoute]; - const profile = profiles.find(({ workflowId }) => workflowId === target.workflowId); + const imageRoute = directImagePromptRoutes.find(({ workflowId }) => workflowId === target.workflowId); + const profile = imageRoute + ? { ...imagePromptRoute, ...imageRoute } + : [textRoute, videoRoute].find(({ workflowId }) => workflowId === target.workflowId); assert.ok(profile, 'Prompt variant route is not reviewed.'); same(target.modelSet, [{ repoId: profile.modelRepo, revision: profile.modelRevision }]); assert.equal(target.outputPlan.minimumAssetCount, 1); @@ -311,6 +359,7 @@ export async function readPromptVariantEvidence({ clientRoot, manifest, graph, a 'modelObservations', 'inputs', 'outputs', + ...(imageRoute ? ['graphRequest', 'graphAcknowledgment'] : []), ]); assert.equal(evidence.schemaVersion, 1); assert.equal(evidence.format, profile.format); @@ -356,12 +405,28 @@ export async function readPromptVariantEvidence({ clientRoot, manifest, graph, a outputPackage, run, graphCompleted, + ...(imageRoute + ? { + graphRequest: json(evidence.graphRequest), + graphAcknowledgment: json(evidence.graphAcknowledgment), + validatePreparation: (preparation) => validateImagePromptPreparation(preparation, target.modelType), + } + : {}), ...(profile === videoRoute ? { validatePreparation: (preparation) => validateUnmodifiedExpertPreparation(preparation, target.modelType) } : {}), }); same(hints.workflowSnapshot.studioForm, output.formSnapshot, 'Run snapshot form differs from persisted form.'); - validateConsumedPromptVariant(profile, bound, output); + const accounting = imageRoute + ? directImagePromptAccountingExecutionPlan({ + expectedApiGraph: bound.expected, + apiGraph: submitted, + consumed: output.resolvedExecutionInputs, + target, + runtimeEvidence: { run, output, graphCompleted }, + }) + : null; + if (!accounting) validateConsumedPromptVariant(profile, bound, output); const nodes = json(evidence.nodes); const backendContract = backendContractIdentity(nodes, bound.identity.canonicalGraph); assert.ok(backendContract.fingerprint, 'Native backend contract fingerprint is missing.'); @@ -395,15 +460,20 @@ export async function readPromptVariantEvidence({ clientRoot, manifest, graph, a contentType: profile.contentType, }); assert.match(output.id, /^run-output-[a-f0-9]{24}$/u); - const extension = profile === textRoute ? 'txt' : 'mp4'; + const extension = imageRoute ? 'webp' : profile === textRoute ? 'txt' : 'mp4'; assert.equal(item.backendPath, `@data/studio/outputs/${output.id}_item_00.${extension}`); assert.equal(output.mediaCollectionHash, `sha256:collection:${digest(JSON.stringify([item.mediaHash]))}`); let decodedOutput; if (profile === textRoute) { decodedOutput = validatePromptVariantText(media.bytes, item, bound, runtime); - } else { + } else if (profile === videoRoute) { const { decodedMediaHash } = await import('./template-gallery-harness.mjs'); decodedOutput = validatePromptVariantVideo(await decodedMediaHash(media.file, 'video'), item, bound); + } else { + const { decodedMediaHash, technicalMediaErrors } = await import('./template-gallery-harness.mjs'); + const decoded = await decodedMediaHash(media.file, 'image'); + same(technicalMediaErrors(decoded, { width: item.width, height: item.height }), []); + decodedOutput = { kind: 'image', hash: decoded.hash, width: decoded.width, height: decoded.height }; } for (const ref of retainedFiles) readCanonicalEvidenceFile(root, ref, 16 * 1024 * 1024); assert.ok(readFileSync(evidencePath).equals(descriptorBytes), 'Prompt variant descriptor changed during validation.'); @@ -425,8 +495,9 @@ export async function readPromptVariantEvidence({ clientRoot, manifest, graph, a peakMemoryBytes: measurement.peakAllocatedBytes, canonicalDefaultsExecuted: false, promptBinding: { nodeId: bound.generator.id, field: 'prompt', sha256: digest(bound.prompt) }, + ...(accounting ? { seedBinding: { nodeId: bound.generator.id, field: 'seed', value: bound.seed } } : {}), decodedOutput, - observationLimits: { fullConsumedFieldAccounting: false, physicalPlatformQualification: false }, + observationLimits: { fullConsumedFieldAccounting: Boolean(accounting), physicalPlatformQualification: false }, qualificationClaims: { publicTemplate: false, qualityApproved: false, diff --git a/scripts/prompt-variant-evidence.test.mjs b/scripts/prompt-variant-evidence.test.mjs index 42980aa7..d6e7e37b 100644 --- a/scripts/prompt-variant-evidence.test.mjs +++ b/scripts/prompt-variant-evidence.test.mjs @@ -75,6 +75,43 @@ test('a prompt variant fills a single empty literal and keeps all other fields a ); }); +test('an image prompt variant binds the authored seed with the prompt and accepts no other controls', () => { + const profile = { + bindSeed: true, + chain: [['generator', 'Fixture', 'Generate', 'prompt seed']], + }; + const baseline = { + sid: 'fixture', + paths: [['generator']], + nodes: { + generator: { + module: 'Fixture', + action: 'Generate', + params: { prompt: { value: '' }, seed: { value: 42 }, num_inference_steps: { value: 2 } }, + }, + }, + }; + const creator = structuredClone(baseline); + creator.nodes.generator.params.prompt.value = 'A close photograph of a painted ceramic bowl.'; + creator.nodes.generator.params.seed.value = 1093; + const submitted = { ...structuredClone(creator), runtimeHints: {} }; + const baselineHash = canonicalGraphIdentity(baseline).hash; + const bound = bindPromptVariant(profile, baseline, creator, submitted, baselineHash); + assert.equal(bound.seed, 1093); + assert.deepEqual(bound.expected.nodes.generator.params, creator.nodes.generator.params); + assert.equal(baseline.nodes.generator.params.seed.value, 42); + + const wrongStep = structuredClone(submitted); + wrongStep.nodes.generator.params.num_inference_steps.value = 4; + assert.throws(() => bindPromptVariant(profile, baseline, creator, wrongStep, baselineHash), /outside the bound/u); + const invalidSeed = structuredClone(submitted); + invalidSeed.nodes.generator.params.seed.value = -1; + assert.throws(() => bindPromptVariant(profile, baseline, creator, invalidSeed, baselineHash), /unsigned seed/u); + const connectedSeed = structuredClone(submitted); + connectedSeed.nodes.generator.params.seed.sourceId = 'generator'; + assert.throws(() => bindPromptVariant(profile, baseline, creator, connectedSeed, baselineHash), /literal seed/u); +}); + test('the native text output binds exact durable JSON, prompt route and local model receipt', () => { const model = { schemaVersion: 1, diff --git a/scripts/release-contract-core.mjs b/scripts/release-contract-core.mjs index 7cd1ed63..1e7b1d15 100644 --- a/scripts/release-contract-core.mjs +++ b/scripts/release-contract-core.mjs @@ -840,8 +840,12 @@ export async function readCanonicalWorkflowEvidence({ clientRoot, backendRoot, w }); } if ( - evidence.format === 'modiff.private.smollm2-prompt-variant.v1' || - evidence.format === 'modiff.private.shap-e-prompt-variant.v1' + [ + 'modiff.private.smollm2-prompt-variant.v1', + 'modiff.private.shap-e-prompt-variant.v1', + 'modiff.private.prx-prompt-variant.v1', + 'modiff.private.sd15-prompt-variant.v1', + ].includes(evidence.format) ) { const { readPromptVariantEvidence } = await import('./prompt-variant-evidence.mjs'); return readPromptVariantEvidence({ From 7c00f59ca966aa65525ca9837ffa760754be4ae2 Mon Sep 17 00:00:00 2001 From: Sourav Das Date: Sat, 21 Nov 2026 13:46:23 +0530 Subject: [PATCH 291/440] Record exact SDXL Base prompt-bound execution --- scripts/canonical-image-accounting.test.mjs | 65 ++++++++++++++++++--- scripts/canonical-runtime-hints.mjs | 4 +- scripts/live-proof-provenance.mjs | 24 ++++++++ scripts/release-contract-core.mjs | 9 +-- 4 files changed, 87 insertions(+), 15 deletions(-) diff --git a/scripts/canonical-image-accounting.test.mjs b/scripts/canonical-image-accounting.test.mjs index 6813f897..2a6d45de 100644 --- a/scripts/canonical-image-accounting.test.mjs +++ b/scripts/canonical-image-accounting.test.mjs @@ -53,6 +53,7 @@ const project = (kind, values, sourceNodeId, sourcePortId) => ({ // runtime and accounting observations are synthetic and never registered. let synthetic; let syntheticPrx; +let syntheticSdxl; const syntheticRetained = new Map(); before(async () => { synthetic = await syntheticImageCase({ @@ -67,27 +68,38 @@ before(async () => { platform: 'Linux-x86_64', backend: 'rocm', }); + syntheticSdxl = await syntheticImageCase({ + modelType: 'StableDiffusionXLPipeline', + graphPath: 'stable-diffusion-xl-pipeline/text-to-image.json', + size: 1024, + platform: 'Linux-x86_64', + backend: 'rocm', + }); for (const profile of retainedProfiles) syntheticRetained.set(profile.modelType, await syntheticImageCase(profile)); }); async function syntheticImageCase({ modelType, graphPath, size, platform, backend }) { const directPrx = modelType === 'PRXPipeline'; - const retained = platform !== undefined && !directPrx; + const directSdxl = modelType === 'StableDiffusionXLPipeline'; + const directImage = directPrx || directSdxl; + const retained = platform !== undefined && !directImage; const generateAction = retained ? 'UnconditionalGenerate' : 'Generate'; const taskMode = retained ? 'unconditional_image' : 'text_to_image'; const graph = JSON.parse(readFileSync(join(backendRoot, 'data/graphs/studio', graphPath), 'utf8')); - if (directPrx) { + if (directImage) { const generate = graph.nodes.find((node) => node.data.action === 'Generate'); - generate.data.params.prompt.value = 'Editorial product photograph of a single silver compass.'; + generate.data.params.prompt.value = directSdxl + ? 'A rain-soaked Victorian conservatory with a wet terracotta aisle and fern beds.' + : 'Editorial product photograph of a single silver compass.'; } const [expected] = await exportCanonicalWorkflowGraphs(clientRoot, [graph]); const form = { modelType, mode: taskMode, ...(retained ? { resourceMode: 'expert' } : {}) }; const visualNodes = graph.nodes.filter( - (node) => node.data.action === 'Preview' || (directPrx && node.data.action === 'Generate'), + (node) => node.data.action === 'Preview' || (directImage && node.data.action === 'Generate'), ); const ids = new Map(visualNodes.map((node) => [node.id, node.id])); const staged = [['setup', (node) => node.data.action !== generateAction]]; - if (!directPrx) staged.push(['generate', (node) => node.data.action === generateAction]); + if (!directImage) staged.push(['generate', (node) => node.data.action === generateAction]); for (const [id, pick] of staged) { const leaves = graph.nodes.filter((node) => !ids.has(node.id) && pick(node)); const nodes = leaves.map(({ id: nodeId, data }) => { @@ -190,7 +202,7 @@ async function syntheticImageCase({ modelType, graphPath, size, platform, backen 'use_en_prompt', ], UnconditionalGenerate: ['eta', 'class_label'], - ...(directPrx + ...(directImage ? { Generate: [ 'cfg_normalize', @@ -198,6 +210,7 @@ async function syntheticImageCase({ modelType, graphPath, size, platform, backen 'control_guidance_start', 'image_guidance_scale', 'layers', + ...(directSdxl ? ['max_sequence_length'] : []), 'padding_mask_crop', 'pag_adaptive_scale', 'pag_scale', @@ -281,6 +294,7 @@ async function syntheticImageCase({ modelType, graphPath, size, platform, backen if (node.action === generateAction) { row.fields.executed_task = legacy(taskMode); if (!retained) for (const [key, value] of Object.entries(emptyConditioning)) row.fields[key] = legacy(value); + if (directSdxl) row.fields.max_sequence_length = legacy(null); } consumed.nodes.push(row); } @@ -365,6 +379,43 @@ const projection = (value, reader = canonicalAccountingExecutionPlan) => { }); }; +test('SDXL Base prompt variant accepts only its exact Linux pin and actual sequence accounting', () => { + const accepted = projection(syntheticSdxl, directImagePromptAccountingExecutionPlan); + assert.equal(accepted.plan.runtimeHintAccounting.policy, 'direct-image-prompt-runtime-hints-v1'); + assert.equal(accepted.plan.pipelineClass, 'StableDiffusionXLPipeline'); + assert.equal(accepted.plan.offloadMode, 'model_cpu'); + + const wrongPin = structuredClone(syntheticSdxl); + wrongPin.canonicalAccountingProof.target.modelSet[0].revision = 'e'.repeat(40); + assert.throws( + () => projection(wrongPin, directImagePromptAccountingExecutionPlan), + /Conditional image model is outside the reviewed accounting scope/u, + ); + const wrongLength = structuredClone(syntheticSdxl); + const generate = wrongLength.executedOutput.resolvedExecutionInputs.nodes.find((row) => row.action === 'Generate'); + generate.fields.max_sequence_length.value = 512; + assert.throws( + () => projection(wrongLength, directImagePromptAccountingExecutionPlan), + /Inactive legacy control was passed to the pipeline: max_sequence_length/u, + ); + const wrongDisposition = structuredClone(syntheticSdxl); + const field = wrongDisposition.executedOutput.resolvedExecutionInputs.nodes.find((row) => row.action === 'Generate') + .fieldAccounting.fields.max_sequence_length; + field.disposition = 'consumed'; + delete field.reason; + assert.throws(() => projection(wrongDisposition, directImagePromptAccountingExecutionPlan), /Wrong disposition/u); + const wrongDimensions = structuredClone(syntheticSdxl); + wrongDimensions.executedOutput.mediaItems[0].width = 512; + assert.throws( + () => projection(wrongDimensions, directImagePromptAccountingExecutionPlan), + /Native image dimensions differ/u, + ); + const turbo = structuredClone(syntheticSdxl); + turbo.canonicalAccountingProof.target.workflowId = 'StableDiffusionXLTurboPipeline:text_to_image'; + turbo.canonicalAccountingProof.target.modelType = 'StableDiffusionXLTurboPipeline'; + assert.throws(() => projection(turbo, directImagePromptAccountingExecutionPlan), /outside the reviewed scope/u); +}); + test('PRX prompt variant accepts the exact cached pin and complete scoped accounting', () => { const before = structuredClone(syntheticPrx); const accepted = projection(syntheticPrx, directImagePromptAccountingExecutionPlan); @@ -383,7 +434,7 @@ test('PRX prompt variant rejects alternate model pins, sequence accounting and c snapshot.nodes = snapshot.nodes.filter((node) => node.id !== generateNode.id); assert.throws( () => projection(wrongOwner, directImagePromptAccountingExecutionPlan), - /PRX Model Setup member scope differs/u, + /Model Setup member scope differs/u, ); const wrongPin = structuredClone(syntheticPrx); wrongPin.canonicalAccountingProof.target.modelSet[0].revision = 'e'.repeat(40); diff --git a/scripts/canonical-runtime-hints.mjs b/scripts/canonical-runtime-hints.mjs index 13b2d855..0de10eb0 100644 --- a/scripts/canonical-runtime-hints.mjs +++ b/scripts/canonical-runtime-hints.mjs @@ -97,10 +97,10 @@ export function canonicalPixArtSigmaPagRuntimeHintAccounting(args) { export function directImagePromptRuntimeHintAccounting(args) { const savedSd15 = args.plan.modelType === 'StableDiffusionPipeline'; assert.ok( - savedSd15 || args.plan.modelType === 'PRXPipeline', + savedSd15 || ['PRXPipeline', 'StableDiffusionXLPipeline'].includes(args.plan.modelType), 'Direct image snapshot model is outside reviewed scope.', ); - const stageName = savedSd15 ? 'Saved SD1.5' : 'PRX'; + const stageName = savedSd15 ? 'Saved SD1.5' : 'Direct image'; const expectedBlockCount = savedSd15 ? 2 : 1; const nodes = args.apiGraph.runtimeHints?.workflowSnapshot?.nodes; assert.ok(Array.isArray(nodes), `Original ${stageName} workflow snapshot is missing.`); diff --git a/scripts/live-proof-provenance.mjs b/scripts/live-proof-provenance.mjs index fee20c94..199223e4 100644 --- a/scripts/live-proof-provenance.mjs +++ b/scripts/live-proof-provenance.mjs @@ -2259,6 +2259,30 @@ export const directImagePromptRoutes = [ negative_prompt: '', }, }, + { + format: 'modiff.private.sdxl-base-prompt-variant.v1', + workflowId: 'StableDiffusionXLPipeline:text_to_image', + modelType: 'StableDiffusionXLPipeline', + modelRepo: 'stabilityai/stable-diffusion-xl-base-1.0', + modelRevision: '462165984030d82259a11f4367a4eed129e94a7b', + active: [...plainImageActive, 'negative_prompt'], + inactive: [...plainImageInactive, 'max_sequence_length'], + legacyNull: [...plainImageLegacyNull, 'max_sequence_length'], + platform: /^Linux-/u, + backend: 'rocm', + dtype: 'bfloat16', + offload: 'model_cpu', + deviceMap: 'none', + generation: { + width: 1024, + height: 1024, + num_inference_steps: 30, + guidance_scale: 5, + max_sequence_length: 512, + seed: 42, + negative_prompt: '', + }, + }, ]; const retainedUnconditionalRecipes = { DDPMPipeline: { diff --git a/scripts/release-contract-core.mjs b/scripts/release-contract-core.mjs index 1e7b1d15..6f0dd424 100644 --- a/scripts/release-contract-core.mjs +++ b/scripts/release-contract-core.mjs @@ -9,6 +9,7 @@ import { canonicalGraphIdentity, canonicalAccountingExecutionPlan, createRunProvenance, + directImagePromptRoutes, executionPlanIdentity, executionReceiptIdentity, normalizeBackendRuntime, @@ -840,12 +841,8 @@ export async function readCanonicalWorkflowEvidence({ clientRoot, backendRoot, w }); } if ( - [ - 'modiff.private.smollm2-prompt-variant.v1', - 'modiff.private.shap-e-prompt-variant.v1', - 'modiff.private.prx-prompt-variant.v1', - 'modiff.private.sd15-prompt-variant.v1', - ].includes(evidence.format) + ['modiff.private.smollm2-prompt-variant.v1', 'modiff.private.shap-e-prompt-variant.v1'].includes(evidence.format) || + directImagePromptRoutes.some(({ format }) => format === evidence.format) ) { const { readPromptVariantEvidence } = await import('./prompt-variant-evidence.mjs'); return readPromptVariantEvidence({ From 708c74417109654ebd4a7883cbcb1003dc05f2e0 Mon Sep 17 00:00:00 2001 From: Sourav Das Date: Sat, 21 Nov 2026 14:00:39 +0530 Subject: [PATCH 292/440] Observe exact PAG controls in prompt-bound receipts --- scripts/canonical-image-accounting.test.mjs | 61 ++++++++++++++++----- scripts/canonical-runtime-hints.mjs | 14 ++--- scripts/live-proof-provenance.mjs | 37 ++++++++++++- 3 files changed, 89 insertions(+), 23 deletions(-) diff --git a/scripts/canonical-image-accounting.test.mjs b/scripts/canonical-image-accounting.test.mjs index 2a6d45de..667c85da 100644 --- a/scripts/canonical-image-accounting.test.mjs +++ b/scripts/canonical-image-accounting.test.mjs @@ -10,6 +10,7 @@ import { canonicalAccountingExecutionPlan, createRunProvenance, directImagePromptAccountingExecutionPlan, + directImagePromptRoutes, stableStringify, } from './live-proof-provenance.mjs'; import { exportCanonicalWorkflowGraphs, readCanonicalWorkflowEvidence } from './release-contract-core.mjs'; @@ -54,6 +55,7 @@ const project = (kind, values, sourceNodeId, sourcePortId) => ({ let synthetic; let syntheticPrx; let syntheticSdxl; +let syntheticSd15Pag; const syntheticRetained = new Map(); before(async () => { synthetic = await syntheticImageCase({ @@ -75,22 +77,33 @@ before(async () => { platform: 'Linux-x86_64', backend: 'rocm', }); + syntheticSd15Pag = await syntheticImageCase({ + modelType: 'StableDiffusionPAGPipeline', + graphPath: 'stable-diffusion-pag-pipeline/text-to-image.json', + size: 512, + platform: 'Windows-11', + backend: 'cuda', + }); for (const profile of retainedProfiles) syntheticRetained.set(profile.modelType, await syntheticImageCase(profile)); }); async function syntheticImageCase({ modelType, graphPath, size, platform, backend }) { const directPrx = modelType === 'PRXPipeline'; const directSdxl = modelType === 'StableDiffusionXLPipeline'; - const directImage = directPrx || directSdxl; + const directPag = modelType === 'StableDiffusionPAGPipeline'; + const directImage = directPrx || directSdxl || directPag; const retained = platform !== undefined && !directImage; const generateAction = retained ? 'UnconditionalGenerate' : 'Generate'; const taskMode = retained ? 'unconditional_image' : 'text_to_image'; const graph = JSON.parse(readFileSync(join(backendRoot, 'data/graphs/studio', graphPath), 'utf8')); if (directImage) { const generate = graph.nodes.find((node) => node.data.action === 'Generate'); - generate.data.params.prompt.value = directSdxl - ? 'A rain-soaked Victorian conservatory with a wet terracotta aisle and fern beds.' - : 'Editorial product photograph of a single silver compass.'; + const prompt = { + StableDiffusionXLPipeline: 'A rain-soaked Victorian conservatory with a wet terracotta aisle and fern beds.', + StableDiffusionPAGPipeline: 'A weathered copper watering can on a rain-dark slate step.', + PRXPipeline: 'Editorial product photograph of a single silver compass.', + }; + generate.data.params.prompt.value = prompt[modelType]; } const [expected] = await exportCanonicalWorkflowGraphs(clientRoot, [graph]); const form = { modelType, mode: taskMode, ...(retained ? { resourceMode: 'expert' } : {}) }; @@ -210,10 +223,9 @@ async function syntheticImageCase({ modelType, graphPath, size, platform, backen 'control_guidance_start', 'image_guidance_scale', 'layers', - ...(directSdxl ? ['max_sequence_length'] : []), + ...(!directPrx ? ['max_sequence_length'] : []), 'padding_mask_crop', - 'pag_adaptive_scale', - 'pag_scale', + ...(!directPag ? ['pag_adaptive_scale', 'pag_scale'] : []), 'resolution', 'strength', 'use_en_prompt', @@ -270,7 +282,7 @@ async function syntheticImageCase({ modelType, graphPath, size, platform, backen disposition: 'superseded', reason: 'connected-recipe', }; - } else if (retained && node.action === 'LoadPipeline' && key === 'device_map') { + } else if ((retained || directPag) && node.action === 'LoadPipeline' && key === 'device_map') { field = { ...field, value: 'cuda', disposition: 'superseded', reason: 'loader-normalization' }; } else if (key === 'image_contract') { field = { @@ -294,7 +306,7 @@ async function syntheticImageCase({ modelType, graphPath, size, platform, backen if (node.action === generateAction) { row.fields.executed_task = legacy(taskMode); if (!retained) for (const [key, value] of Object.entries(emptyConditioning)) row.fields[key] = legacy(value); - if (directSdxl) row.fields.max_sequence_length = legacy(null); + if (directSdxl || directPag) row.fields.max_sequence_length = legacy(null); } consumed.nodes.push(row); } @@ -472,14 +484,17 @@ test('saved SD1.5 stage owners still require the original native completion evid const setup = block(['LoadPipeline', 'PipelineQuantizationConfigV2', 'DiffusersExecutionRecipe']); const generate = block(['Generate']); const verify = (modelType, nodes) => - directImagePromptRuntimeHintAccounting({ - plan: { modelType }, - apiGraph: { runtimeHints: { workflowSnapshot: { nodes } } }, - }); + directImagePromptRuntimeHintAccounting( + { + plan: { modelType }, + apiGraph: { runtimeHints: { workflowSnapshot: { nodes } } }, + }, + directImagePromptRoutes.find((profile) => profile.modelType === modelType), + ); assert.throws(() => verify('StableDiffusionPipeline', [preview, setup, generate]), /original completion evidence/u); assert.throws( () => verify('StableDiffusionPipeline', [preview, setup, block(['Preview'])]), - /Saved SD1.5 Generate member scope differs/u, + /Saved direct image Generate member scope differs/u, ); assert.throws( () => verify('StableDiffusionPipeline', [preview, setup, { data: { action: 'Generate' } }]), @@ -489,6 +504,24 @@ test('saved SD1.5 stage owners still require the original native completion evid assert.throws(() => verify('SanaSprintPipeline', [preview, setup, generate]), /outside reviewed scope/u); }); +test('SD1.5 PAG prompt variant requires both locked PAG values in typed consumption evidence', () => { + const { plan } = projection(syntheticSd15Pag, directImagePromptAccountingExecutionPlan); + assert.equal(plan.runtimeHintAccounting.policy, 'direct-image-prompt-runtime-hints-v1'); + assert.equal(plan.offloadMode, 'none'); + const generate = (proof) => + proof.executedOutput.resolvedExecutionInputs.nodes.find((node) => node.action === 'Generate'); + assert.equal(generate(syntheticSd15Pag).fieldAccounting.fields.strength.disposition, 'inactive'); + const missingScalar = structuredClone(syntheticSd15Pag); + delete generate(missingScalar).fieldAccounting.fields.pag_adaptive_scale; + assert.throws(() => projection(missingScalar, directImagePromptAccountingExecutionPlan)); + const changedScalar = structuredClone(syntheticSd15Pag); + generate(changedScalar).fieldAccounting.fields.pag_scale.value = 4; + assert.throws(() => projection(changedScalar, directImagePromptAccountingExecutionPlan)); + const legacyScalar = structuredClone(syntheticSd15Pag); + generate(legacyScalar).fields.pag_scale = { value: 3, source: 'literal' }; + assert.throws(() => projection(legacyScalar, directImagePromptAccountingExecutionPlan), /legacy controls/u); +}); + test('staged PixArt evidence derives a correlated Expert CPU-offload plan without altering the originals', () => { const before = structuredClone(synthetic); const result = projection(synthetic); diff --git a/scripts/canonical-runtime-hints.mjs b/scripts/canonical-runtime-hints.mjs index 0de10eb0..1ca73c75 100644 --- a/scripts/canonical-runtime-hints.mjs +++ b/scripts/canonical-runtime-hints.mjs @@ -94,14 +94,14 @@ export function canonicalPixArtSigmaPagRuntimeHintAccounting(args) { return canonicalRuntimeHintAccounting(args, 'text_to_image', 'canonical-pixart-sigma-pag-runtime-hints-v1', 2); } -export function directImagePromptRuntimeHintAccounting(args) { - const savedSd15 = args.plan.modelType === 'StableDiffusionPipeline'; +export function directImagePromptRuntimeHintAccounting(args, profile) { assert.ok( - savedSd15 || ['PRXPipeline', 'StableDiffusionXLPipeline'].includes(args.plan.modelType), + profile && args.plan.modelType === profile.modelType, 'Direct image snapshot model is outside reviewed scope.', ); - const stageName = savedSd15 ? 'Saved SD1.5' : 'Direct image'; - const expectedBlockCount = savedSd15 ? 2 : 1; + const savedGenerateBlock = profile.savedGenerateBlock === true; + const stageName = savedGenerateBlock ? 'Saved direct image' : 'Direct image'; + const expectedBlockCount = savedGenerateBlock ? 2 : 1; const nodes = args.apiGraph.runtimeHints?.workflowSnapshot?.nodes; assert.ok(Array.isArray(nodes), `Original ${stageName} workflow snapshot is missing.`); const blocks = nodes.filter((node) => node.data?.blockInstanceV2); @@ -118,13 +118,13 @@ export function directImagePromptRuntimeHintAccounting(args) { ['DiffusersExecutionRecipe', 'LoadPipeline', 'PipelineQuantizationConfigV2'], `${stageName} Model Setup member scope differs.`, ); - if (savedSd15) same(members[1], ['Generate'], 'Saved SD1.5 Generate member scope differs.'); + if (savedGenerateBlock) same(members[1], ['Generate'], 'Saved direct image Generate member scope differs.'); same( nodes .filter((node) => !node.data?.blockInstanceV2) .map((node) => node.data?.action) .sort(), - savedSd15 ? ['Preview'] : ['Generate', 'Preview'], + savedGenerateBlock ? ['Preview'] : ['Generate', 'Preview'], `${stageName} ordinary executable node scope differs.`, ); return canonicalRuntimeHintAccounting( diff --git a/scripts/live-proof-provenance.mjs b/scripts/live-proof-provenance.mjs index 199223e4..2d0eec5f 100644 --- a/scripts/live-proof-provenance.mjs +++ b/scripts/live-proof-provenance.mjs @@ -2211,6 +2211,7 @@ const plainImageInactive = ' ', ); const plainImageLegacyNull = ['control_guidance_start', 'conditioning_scale', 'strength', 'control_guidance_end']; +const sd15PagScalars = ['pag_scale', 'pag_adaptive_scale']; export const directImagePromptRoutes = [ { format: 'modiff.private.prx-prompt-variant.v1', @@ -2238,6 +2239,7 @@ export const directImagePromptRoutes = [ }, { format: 'modiff.private.sd15-prompt-variant.v1', + savedGenerateBlock: true, workflowId: 'StableDiffusionPipeline:text_to_image', modelType: 'StableDiffusionPipeline', modelRepo: 'stable-diffusion-v1-5/stable-diffusion-v1-5', @@ -2283,6 +2285,33 @@ export const directImagePromptRoutes = [ negative_prompt: '', }, }, + { + format: 'modiff.private.sd15-pag-prompt-variant.v1', + workflowId: 'StableDiffusionPAGPipeline:text_to_image', + modelType: 'StableDiffusionPAGPipeline', + modelRepo: 'stable-diffusion-v1-5/stable-diffusion-v1-5', + modelRevision: '451f4fe16113bff5a5d2269ed5ad43b0592e9a14', + active: [...plainImageActive, 'negative_prompt', ...sd15PagScalars], + inactive: [...plainImageInactive.filter((key) => !sd15PagScalars.includes(key)), 'max_sequence_length'], + legacyNull: [...plainImageLegacyNull, 'max_sequence_length'], + // These effective settings are present only in typed field accounting. + typedOnly: sd15PagScalars, + platform: /^Windows-/u, + backend: 'cuda', + dtype: 'float32', + offload: 'none', + deviceMap: 'cuda', + generation: { + width: 512, + height: 512, + num_inference_steps: 30, + guidance_scale: 7.5, + seed: 42, + negative_prompt: '', + pag_scale: 3, + pag_adaptive_scale: 0, + }, + }, ]; const retainedUnconditionalRecipes = { DDPMPipeline: { @@ -2793,7 +2822,11 @@ function imageAccountingExecutionPlan( ); accountingKeys( generate.row.fields, - [...promptVariant.active, 'executed_task', ...legacyNullFields], + [ + ...promptVariant.active.filter((key) => !promptVariant.typedOnly?.includes(key)), + 'executed_task', + ...legacyNullFields, + ], 'Direct image legacy controls are incomplete or unexpected.', ); const contract = generate.node.params.image_contract.value; @@ -2849,7 +2882,7 @@ function imageAccountingExecutionPlan( }; if (apiGraph.runtimeHints && Object.keys(apiGraph.runtimeHints).length > 0) { const accountHints = promptVariant - ? directImagePromptRuntimeHintAccounting + ? (args) => directImagePromptRuntimeHintAccounting(args, promptVariant) : retainedUnconditional ? canonicalRetainedUnconditionalRuntimeHintAccounting : isPixArt From bd3b12e28dd591cf3c8ed85a605a4d5095205fa9 Mon Sep 17 00:00:00 2001 From: Sourav Das Date: Sat, 21 Nov 2026 14:06:06 +0530 Subject: [PATCH 293/440] Show conditioning models only where their controls apply --- docs/cluster-engineering-lessons.md | 5 + docs/developer-first-node-ux.md | 4 +- scripts/bundle-budget.mjs | 2 + ...workflow-library-canonical-export.test.mjs | 134 ++++++++++++++++++ src/components/EncodingNode.tsx | 2 +- src/components/GraphNodeInputs.tsx | 9 +- src/components/StageNodeControls.tsx | 9 +- src/components/StudioPanel.tsx | 5 +- src/studio/graphNodeControls.ts | 35 +++-- src/workflow/modelSetupControlPresentation.ts | 54 ++++++- tests/e2e/studio-mocked/studio-mocked.spec.ts | 64 +++++++++ 11 files changed, 301 insertions(+), 22 deletions(-) diff --git a/docs/cluster-engineering-lessons.md b/docs/cluster-engineering-lessons.md index 700cac87..2957ffad 100644 --- a/docs/cluster-engineering-lessons.md +++ b/docs/cluster-engineering-lessons.md @@ -805,6 +805,11 @@ successful run, and retain immutable definitions and unrelated preview owners. - Opt-in generation tests need explicit backend isolation, installed-artifact checks, an idle queue, bounded execution and task-scoped cleanup. A file-path environment variable or an empty queue alone does not establish isolation. +- Exercise ordinary output persistence after a native submission. The Client + writes the executed API snapshot through `/studio_outputs`. An isolated + capture must accept the metadata save for its own task, then independently + join it to the original graph request and terminal event. Preserve any + missing snapshot as a capture gap. - Keep reviewed upstream source checkouts outside ordinary application test discovery. Distinguish collection/harness failures from product failures; reproduce suspect pre-existing assertions on the original commit. diff --git a/docs/developer-first-node-ux.md b/docs/developer-first-node-ux.md index f79feb9b..4d8438a1 100644 --- a/docs/developer-first-node-ux.md +++ b/docs/developer-first-node-ux.md @@ -194,7 +194,9 @@ When a directly connected execution recipe supplies a VAE setting inside Model Setup, the node and inspector show the recipe control. The loader's saved fallback value remains available in the implementation and returns to the node when the recipe is disconnected. Base model and adapter revisions keep their -separate values. +separate values. A stock image loader whose conditioning selector is set to None +hides the auxiliary model picker in Model Setup and Inspector. Connected supplier +controls and the saved picker value remain available when applicable. Recorded ordinary video stage inputs keep condition strength and denoise strength separate. A source-video pixel digest identifies the ordered frozen diff --git a/scripts/bundle-budget.mjs b/scripts/bundle-budget.mjs index 8614d149..7c229cb2 100644 --- a/scripts/bundle-budget.mjs +++ b/scripts/bundle-budget.mjs @@ -1093,6 +1093,8 @@ const MAX_DEFERRED_CHUNK_GZIP_BYTES = 64 * 1024; // Startup code differs only in the three verified Dataset descriptor values. // Retain both startup caps, the independent 64 KiB chunk cap and prior headroom. const MAX_DEFERRED_GZIP_BYTES = + // Conditioning picker visibility adds 328 deferred gzip bytes (355104 -> 355432). + 328 + // Bound media input receipts and stage captions add 173 deferred gzip bytes. 173 + // Initial media preview spacing and workflow labels add 148 deferred bytes (354889 -> 355037). diff --git a/scripts/workflow-library-canonical-export.test.mjs b/scripts/workflow-library-canonical-export.test.mjs index cdb46b16..4cbeb353 100644 --- a/scripts/workflow-library-canonical-export.test.mjs +++ b/scripts/workflow-library-canonical-export.test.mjs @@ -432,6 +432,140 @@ test('Model Setup shows connected VAE recipe controls and retains each loader fa } }); +test('Model Setup hides the stock conditioning picker only when the loader declares it inactive', () => { + const backend = path.resolve(process.env.MODIFF_BACKEND_DIR || '../MoDiff'); + const graphName = 'stable-diffusion-xl-pipeline/text-to-image'; + const load = (name) => JSON.parse(readFileSync(path.join(backend, `data/graphs/studio/${name}.json`), 'utf8')); + const projection = (source) => { + const grouped = groups.groupNewOperationGraph(source); + const setup = grouped.nodes.find((node) => groups.visualOperationGroup(node) === 'setup'); + assert.ok(setup); + const instance = setup.data.blockInstanceV2; + const graph = blockRuntime.blockOperationGraphV2(instance); + const loader = graph.nodes.find( + ({ data }) => data.module === 'modules.DiffusersImage' && data.action === 'LoadPipeline', + ); + assert.ok(loader); + const field = (fieldId) => { + const found = instance.effectiveInterface.controls.find( + (control) => + control.binding.nodeId === loader.data.blockProjectionNodeId && control.binding.fieldId === fieldId, + ); + assert.ok(found, fieldId); + return found; + }; + const { controlParams } = blockRuntime.blockViewModelV2(instance); + const conditioning = field('conditioning_model_id'); + return { + grouped, + setup, + instance, + graph, + loader, + controlParams, + conditioning, + modelId: field('model_id').controlId, + }; + }; + const active = (context, graph = context.graph, edges = [], root = context.setup) => { + const projected = modelSetupControlParams(context.instance, graph, context.controlParams, edges); + assert.ok(projected[context.modelId], 'Base model picker remains available'); + return { + stage: Object.hasOwn(projected, context.conditioning.controlId), + inspector: Object.hasOwn(graphNodeControlParams(root, edges), context.conditioning.controlId), + }; + }; + const source = load(graphName); + const inactive = projection(source); + const before = structuredClone(inactive.grouped); + assert.equal(inactive.loader.data.params.conditioning_kind.value, 'none'); + assert.equal(inactive.controlParams[inactive.conditioning.controlId].display, 'modelselect'); + assert.equal(inactive.controlParams[inactive.conditioning.controlId].hidden, false); + assert.deepEqual(active(inactive), { stage: false, inspector: false }); + const api = (sourceGraph) => + canonicalGraphIdentity( + flowStore + .getState() + .exportGraph('model-setup-conditioning-visibility', undefined, { sourceGraph, randomizeSeeds: false }), + ); + assert.deepEqual(inactive.grouped, before, 'Projection must preserve the entire saved graph and interface.'); + assert.deepEqual(api(inactive.grouped), api(source)); + + for (const [name, kind] of [ + ['stable-diffusion-xl-control-net-pipeline/control-image', 'controlnet'], + ['stable-diffusion-xl-adapter-pipeline/control-image', 't2i_adapter'], + ]) { + const enabled = projection(load(name)); + assert.equal(enabled.loader.data.params.conditioning_kind.value, kind); + assert.deepEqual(active(enabled), { stage: true, inspector: true }, name); + } + + const supplier = { + id: 'typed-value-source', + type: 'basic', + position: { x: 0, y: 0 }, + data: { + module: 'modules.Primitive', + action: 'TextValue', + label: 'Text Value', + params: { + text: { type: 'string', display: 'text', value: 'a value supplied at execution' }, + output: { type: 'string', display: 'output' }, + }, + }, + }; + for (const fieldOrPortId of ['conditioning_kind', 'conditioning_model_id']) { + const edge = { + id: `dynamically-supplied-${fieldOrPortId}`, + source: supplier.id, + sourceHandle: 'output', + target: inactive.setup.id, + targetHandle: `block-crossing:input:${encodeURIComponent(inactive.loader.data.blockProjectionNodeId)}:${fieldOrPortId}`, + }; + const wired = { + ...inactive.grouped, + nodes: [...inactive.grouped.nodes, supplier], + edges: [...inactive.grouped.edges, edge], + }; + const exportWithSupplier = api(wired); + const consumer = exportWithSupplier.canonicalGraph.nodes.find(({ action }) => action === 'LoadPipeline'); + assert.equal(consumer.params[fieldOrPortId].sourceKey, 'output'); + assert.deepEqual(active(inactive, inactive.graph, wired.edges), { stage: true, inspector: true }, fieldOrPortId); + assert.deepEqual(api(wired), exportWithSupplier); + assert.deepEqual( + active(inactive), + { stage: false, inspector: false }, + `Revert after disconnecting ${fieldOrPortId}`, + ); + assert.deepEqual(inactive.grouped, before); + } + + const unresolved = load(graphName); + const unresolvedSelector = unresolved.nodes.find(({ data }) => data.action === 'LoadPipeline').data.params + .conditioning_kind; + delete unresolvedSelector.value; + delete unresolvedSelector.default; + assert.deepEqual(active(projection(unresolved)), { stage: true, inspector: true }, 'No literal selector authority'); + + const interfaceControl = { ...inactive.conditioning, group: 'My loader settings' }; + const customInstance = blockRuntime.replaceBlockEffectiveInterfaceV2(inactive.instance, { + ...inactive.instance.effectiveInterface, + controls: inactive.instance.effectiveInterface.controls.map((control) => + control.controlId === interfaceControl.controlId ? interfaceControl : control, + ), + }); + const custom = { ...inactive.setup, data: { ...inactive.setup.data, blockInstanceV2: customInstance } }; + const customParams = blockRuntime.blockViewModelV2(customInstance).controlParams; + const customGraph = blockRuntime.blockOperationGraphV2(customInstance); + const customView = modelSetupControlParams(customInstance, customGraph, customParams); + assert.equal(customView[interfaceControl.controlId].label, interfaceControl.label); + assert.equal(graphNodeControlParams(custom)[interfaceControl.controlId].label, interfaceControl.label); + assert.equal( + modelSetupControlGroupLabel(interfaceControl.group, [interfaceControl], customGraph), + interfaceControl.group, + ); +}); + test('Model Setup scopes VAE precedence to each owner and distinguishes base model revision', () => { const backend = path.resolve(process.env.MODIFF_BACKEND_DIR || '../MoDiff'); const stageControls = (relative) => { diff --git a/src/components/EncodingNode.tsx b/src/components/EncodingNode.tsx index ecd21107..ebd80bc4 100644 --- a/src/components/EncodingNode.tsx +++ b/src/components/EncodingNode.tsx @@ -82,7 +82,7 @@ const EncodingNode = memo((node: NodeProps) => { ) : ( Loading stage controls…

}> - +
), actions: ( diff --git a/src/components/GraphNodeInputs.tsx b/src/components/GraphNodeInputs.tsx index d155d14d..e1031589 100644 --- a/src/components/GraphNodeInputs.tsx +++ b/src/components/GraphNodeInputs.tsx @@ -1,5 +1,7 @@ import { nodeDisplayLabel } from '../workflow/nodePresentation'; import { useCallback, useMemo, useState } from 'react'; +import { useShallow } from 'zustand/react/shallow'; +import { useFlowStore } from '../stores/useFlowStore'; import { Pin, PinOff } from 'lucide-react'; import type { CustomNodeType } from '../stores/useFlowStore'; import type { NodeParams } from '../stores/useNodeStore'; @@ -39,6 +41,9 @@ export function GraphNodeInputs({ const [disclosureState, setDisclosureState] = useState>({}); const pinnedSet = useMemo(() => new Set(pinnedIds), [pinnedIds]); const selectedNode = selectedNodes.length === 1 ? selectedNodes[0] : null; + const incomingEdges = useFlowStore( + useShallow((state) => (selectedNode ? state.edges.filter((edge) => edge.target === selectedNode.id) : [])), + ); const groups = useMemo(() => { const byNode = new Map }>(); pinnedInputs.forEach((input) => { @@ -49,7 +54,7 @@ export function GraphNodeInputs({ }); if (selectedNode) { - const selectedParams = graphNodeControlParams(selectedNode); + const selectedParams = graphNodeControlParams(selectedNode, incomingEdges); byNode.set(selectedNode.id, { node: selectedNode, params: selectedParams }); } @@ -61,7 +66,7 @@ export function GraphNodeInputs({ const group = byNode.get(id); return group ? [group] : []; }); - }, [nodes, pinnedInputs, selectedNode]); + }, [nodes, pinnedInputs, selectedNode, incomingEdges]); const updateParam = useCallback( (nodeId: string, param: string, value: unknown, key?: keyof NodeParams) => { diff --git a/src/components/StageNodeControls.tsx b/src/components/StageNodeControls.tsx index a1b39f83..5e1ea1ea 100644 --- a/src/components/StageNodeControls.tsx +++ b/src/components/StageNodeControls.tsx @@ -1,3 +1,4 @@ +import type { Edge } from '@xyflow/react'; import type { NodeParams } from '../stores/useNodeStore'; import { useMemo } from 'react'; import type { CustomNodeType } from '../stores/useFlowStore'; @@ -15,9 +16,11 @@ import { modelSetupControlGroupLabel, modelSetupControlParams } from '../workflo * presented within the ordinary node shell. No second state or executor. */ export default function StageNodeControls({ node, + edges, updateStore, }: { node: CustomNodeType; + edges: readonly Edge[]; updateStore: (param: string, value: unknown, key?: keyof NodeParams) => void; }) { const instance = node.data.blockInstanceV2!; @@ -25,7 +28,9 @@ export default function StageNodeControls({ const { view, groups } = useMemo(() => { const view = blockViewModelV2(instance); const graph = blockOperationGraphV2(instance); - const controlParams = setup ? modelSetupControlParams(instance, graph, view.controlParams) : view.controlParams; + const controlParams = setup + ? modelSetupControlParams(instance, graph, view.controlParams, edges) + : view.controlParams; const owners = new Set( graph.nodes .filter((n) => operationOwnsModel(n.data.operationAuthoring?.operation)) @@ -53,7 +58,7 @@ export default function StageNodeControls({ }; }); return { view, groups }; - }, [instance, setup]); + }, [instance, setup, edges]); return (
{setup ? : null} diff --git a/src/components/StudioPanel.tsx b/src/components/StudioPanel.tsx index 9816318f..b828b7f2 100644 --- a/src/components/StudioPanel.tsx +++ b/src/components/StudioPanel.tsx @@ -326,6 +326,7 @@ export default function StudioPanel() { ? `${runReadiness.warningIssues.length} warning${runReadiness.warningIssues.length === 1 ? '' : 's'}` : undefined; const graphNodes = useFlowStore(useShallow((state) => state.nodes)); + const graphEdges = useFlowStore((state) => state.edges); // A template can fail before its graph skeleton is committed (for example, // when the connected backend is missing a required node contract). Keep the // selected template's task controls and readiness issue visible in that @@ -336,8 +337,8 @@ export default function StudioPanel() { const selectedGraphNodes = useMemo(() => graphNodes.filter((node) => node.selected), [graphNodes]); const inspectExactNode = true; const graphInputCandidates = useMemo( - () => (inspectExactNode ? graphParamInputCandidates(graphNodes, pinnedGraphInputIds) : []), - [graphNodes, inspectExactNode, pinnedGraphInputIds], + () => (inspectExactNode ? graphParamInputCandidates(graphNodes, pinnedGraphInputIds, graphEdges) : []), + [graphNodes, graphEdges, inspectExactNode, pinnedGraphInputIds], ); const effectivePinnedGraphInputIds = pinnedGraphInputIds.filter((id) => graphInputCandidates.some((input) => input.id === id), diff --git a/src/studio/graphNodeControls.ts b/src/studio/graphNodeControls.ts index 8b881651..e0b72ba3 100644 --- a/src/studio/graphNodeControls.ts +++ b/src/studio/graphNodeControls.ts @@ -1,3 +1,4 @@ +import type { Edge } from '@xyflow/react'; import { hasInlineScalarControl } from './inlineScalarControl'; import { useFlowStore, type CustomNodeType } from '../stores/useFlowStore'; import type { NodeParams } from '../stores/useNodeStore'; @@ -21,16 +22,18 @@ const controlsBySource = new WeakMap>(); const expandedByInstance = new WeakMap(); /** The inspector is another view of the canvas control contract, never a schema owner. */ -export function graphNodeControlParams(node: CustomNodeType): Record { +export function graphNodeControlParams( + node: CustomNodeType, + workflowEdges: readonly Edge[] = [], +): Record { const instance = node.data.blockInstanceV2; const source = instance ?? node.data.params; - const cached = controlsBySource.get(source); + const setup = instance && visualOperationGroup(node) === 'setup'; + const hasIncoming = setup && workflowEdges.some((edge) => edge.target === node.id); + const cached = hasIncoming ? undefined : controlsBySource.get(source); if (cached) return cached; const base = instance ? blockControlParamsV2(instance) : node.data.params; - const params = - instance && visualOperationGroup(node) === 'setup' - ? modelSetupControlParams(instance, blockOperationGraphV2(instance), base) - : base; + const params = setup ? modelSetupControlParams(instance, blockOperationGraphV2(instance), base, workflowEdges) : base; const controls = Object.fromEntries( Object.entries(params) .filter(([key, param]) => { @@ -53,13 +56,17 @@ export function graphNodeControlParams(node: CustomNodeType): Record - Object.entries(graphNodeControlParams(node)).map(([key, param]) => ({ + Object.entries(graphNodeControlParams(node, workflowEdges)).map(([key, param]) => ({ id: `graph:${node.id}:${key}`, kind: 'graph-param' as const, label: `${node.data.label || node.id} / ${param.label || key}`, @@ -92,9 +99,11 @@ export function graphParamInputCandidates(nodes: CustomNodeType[], pinnedIds: st expandedByInstance.set(instance, expanded); } candidates.push( - ...graphParamInputCandidates(expanded.filter(({ id }) => !visibleIds.has(id))).filter(({ id }) => - missingPins.has(id), - ), + ...graphParamInputCandidates( + expanded.filter(({ id }) => !visibleIds.has(id)), + [], + workflowEdges, + ).filter(({ id }) => missingPins.has(id)), ); } return candidates; @@ -142,7 +151,7 @@ export function updateGraphNodeControl( !Object.prototype.hasOwnProperty.call(params, param) ) return; - } else if (!graphNodeControlParams(node)[param]) return; + } else if (!graphNodeControlParams(node, flow.edges)[param]) return; if (node.data.blockInstanceV2) { if (key === undefined || key === 'value') flow.setBlockInstanceValueV2(nodeId, param, value as BlockJsonValue); return; diff --git a/src/workflow/modelSetupControlPresentation.ts b/src/workflow/modelSetupControlPresentation.ts index d6d621b5..812e4e47 100644 --- a/src/workflow/modelSetupControlPresentation.ts +++ b/src/workflow/modelSetupControlPresentation.ts @@ -1,5 +1,8 @@ +import type { Edge } from '@xyflow/react'; +import type { CustomNodeType } from '../stores/useFlowStore'; import type { NodeParams } from '../stores/useNodeStore'; -import { blockProjectionNodeIdV2, type BlockFlowGraphV2 } from '../studio/blockRuntimeV2'; +import { blockCrossingHandleV2 } from '../studio/blockCrossingConnectionsV2'; +import { blockInputPortBindingsV2, blockProjectionNodeIdV2, type BlockFlowGraphV2 } from '../studio/blockRuntimeV2'; import type { BlockControlV2, BlockInstanceV2 } from '../studio/blockSchemaV2'; import { isModelSetupAdapterKey } from '../studio/controlledWorkflowContracts'; import { nodeDisplayLabel } from './nodePresentation'; @@ -7,6 +10,8 @@ import { nodeDisplayLabel } from './nodePresentation'; const IMAGE_LOADER = 'modules.DiffusersImage.LoadPipeline'; const AUDIO_LOADER = 'modules.DiffusersAudio.LoadPipeline'; const EXECUTION_RECIPE = 'modules.DiffusersRuntime.DiffusersExecutionRecipe'; +const CONDITIONING_KIND = 'conditioning_kind'; +const CONDITIONING_MODEL = 'conditioning_model_id'; const RECIPE_SOCKET = 'execution_recipe'; const RECIPE_TYPE = 'diffusers_execution_recipe'; const VAE_FALLBACKS: Record> = { @@ -27,12 +32,36 @@ export function modelSetupControlGroupLabel( return member?.data.label === group ? nodeDisplayLabel(member.data) : group; } +function hasConditioningSupplier( + instance: BlockInstanceV2, + owner: CustomNodeType, + internalEdges: readonly Edge[], + workflowEdges: readonly Edge[], +) { + const fields = [CONDITIONING_KIND, CONDITIONING_MODEL]; + if (internalEdges.some((edge) => edge.target === owner.id && fields.includes(edge.targetHandle ?? ''))) return true; + const nodeId = owner.data.blockProjectionNodeId!; + const handles = new Set( + fields.map((fieldOrPortId) => blockCrossingHandleV2({ nodeId, fieldOrPortId, direction: 'input' })), + ); + for (const port of instance.effectiveInterface.boundary.inputs) { + if ( + blockInputPortBindingsV2(port).some( + (binding) => binding.nodeId === nodeId && fields.includes(binding.fieldOrPortId), + ) + ) + handles.add(port.portId); + } + return workflowEdges.some((edge) => edge.target === instance.instanceId && handles.has(edge.targetHandle ?? '')); +} + /** Only compact Model Setup's displayed controls change. The loader's * fallback still belongs to its saved leaf and becomes active on disconnect. */ export function modelSetupControlParams( instance: BlockInstanceV2, graph: BlockFlowGraphV2, params: Record, + workflowEdges: readonly Edge[] = [], ): Record { const controls = instance.effectiveInterface.controls; const nodes = new Map(graph.nodes.map((node) => [node.id, node])); @@ -53,6 +82,29 @@ export function modelSetupControlParams( const field = params[control.controlId]; if (!owner || !field) continue; const nodeKey = `${owner.data.module}.${owner.data.action}`; + const declared = owner.data.params[fieldId]; + const conditioning = owner.data.params[CONDITIONING_KIND]; + // Portable graphs can retain the unfiltered loader schema. Use an exact, + // unconnected selector as evidence instead of resolving a supplier or reseeding a value. + if ( + nodeKey === IMAGE_LOADER && + fieldId === CONDITIONING_MODEL && + declared?.display === 'modelselect' && + control.label === declared.label && + control.group === owner.data.label?.trim() && + !control.sealed && + !control.mirrorBindings?.length && + !owner.data.uiState?.disabled && + conditioning?.value === 'none' && + !conditioning.isConnected && + !conditioning.signal && + !declared.isConnected && + !declared.signal && + !hasConditioningSupplier(instance, owner, graph.edges, workflowEdges) + ) { + delete visible[control.controlId]; + continue; + } if ( hasAdapterRevision && fieldId === 'revision' && diff --git a/tests/e2e/studio-mocked/studio-mocked.spec.ts b/tests/e2e/studio-mocked/studio-mocked.spec.ts index 22c6a123..0eda88b6 100644 --- a/tests/e2e/studio-mocked/studio-mocked.spec.ts +++ b/tests/e2e/studio-mocked/studio-mocked.spec.ts @@ -37097,6 +37097,70 @@ test('reusable canvas Blocks and Python nodes explain their different authoring expect(await optionalStageApi(page)).toEqual(before); }); +test('Model Setup and Inspector expose the conditioning picker only on eligible image examples', async ({ page }) => { + await page.setViewportSize({ width: 1920, height: 1200 }); + await ensureFrontend(); + await installMockRoutes(page); + const requests: string[] = []; + page.on('request', (request) => { + if ( + request.method() === 'POST' && + /^\/(?:graph|hf_download|execute)(?:\/|$)/u.test(new URL(request.url()).pathname) + ) + requests.push(request.url()); + }); + await page.goto(FRONTEND_URL, { waitUntil: 'domcontentloaded' }); + await page.waitForFunction(() => Boolean(window.__MODIFF_E2E__?.getState().studio.workflowCanvasHydrated)); + + for (const [name, conditioning] of [ + ['stable-diffusion-xl-pipeline/text-to-image', false], + ['stable-diffusion-xl-control-net-pipeline/control-image', true], + ['stable-diffusion-xl-adapter-pipeline/control-image', true], + ] as const) { + const source = JSON.parse(await fs.readFile(path.join(BACKEND_ROOT, `data/graphs/studio/${name}.json`), 'utf8')); + const setup = await page.evaluate(async (graph) => { + const { useFlowStore } = await import('/src/stores/useFlowStore.ts'); + const { groupNewOperationGraph, visualOperationGroup } = await import('/src/workflow/visualOperationGroups.ts'); + const grouped = groupNewOperationGraph(graph); + const node = grouped.nodes.find((candidate) => visualOperationGroup(candidate) === 'setup')!; + const controls = node.data.blockInstanceV2!.effectiveInterface.controls; + const field = (name: string) => controls.find(({ binding }) => binding.fieldId === name)?.controlId; + useFlowStore.getState().replaceGraph(grouped); + return { id: node.id, base: field('model_id'), conditioning: field('conditioning_model_id') }; + }, source); + expect(setup.base).toBeTruthy(); + expect(setup.conditioning).toBeTruthy(); + const graphBefore = await optionalStageApi(page); + await page.getByRole('button', { name: 'Arrange graph', exact: true }).click(); + const card = page.getByTestId(`setup-node-${setup.id}`); + const chooser = (root: Locator, field: string) => + root.locator(`[data-key="${field}"]`).getByRole('button', { name: 'Choose model', exact: true }); + await expect(chooser(card, setup.base!)).toBeVisible(); + if (conditioning) await expect(chooser(card, setup.conditioning!)).toBeVisible(); + else await expect(chooser(card, setup.conditioning!)).toHaveCount(0); + await card.locator('header').first().click(); + await page.getByRole('button', { name: 'Inspect node', exact: true }).click(); + const inspector = page.getByRole('dialog', { name: 'Node inspector', exact: true }); + await expect(chooser(inspector, setup.base!)).toBeVisible(); + if (conditioning) await expect(chooser(inspector, setup.conditioning!)).toBeVisible(); + else await expect(chooser(inspector, setup.conditioning!)).toHaveCount(0); + await page.keyboard.press('Escape'); + expect(await optionalStageApi(page)).toEqual(graphBefore); + if (!conditioning) { + await page.getByTestId('topbar-save-workflow-options').click(); + await page.getByTestId('topbar-save-workflow-as').click(); + await page.getByTestId('save-workflow-name').fill('Base text-to-image Model Setup'); + await page.getByTestId('confirm-save-workflow').click(); + await expect(page.getByTestId('save-workflow-dialog')).toHaveCount(0); + await page.reload({ waitUntil: 'domcontentloaded' }); + await expect(chooser(card, setup.base!)).toBeVisible(); + await expect(chooser(card, setup.conditioning!)).toHaveCount(0); + expect(await optionalStageApi(page)).toEqual(graphBefore); + } + } + expect(requests).toEqual([]); +}); + test('Model Setup VAE settings show the connected recipe once on the canvas and in the inspector', async ({ page }) => { const source = JSON.parse( await fs.readFile(path.join(BACKEND_ROOT, 'data/graphs/studio/ddim-pipeline/unconditional-image.json'), 'utf8'), From 070e81c2a7de4e193fc4732b32fc02437f4280c7 Mon Sep 17 00:00:00 2001 From: Sourav Das Date: Sat, 21 Nov 2026 14:14:48 +0530 Subject: [PATCH 294/440] Hide inactive conditioning revision with its model picker --- docs/developer-first-node-ux.md | 4 ++-- scripts/bundle-budget.mjs | 4 ++-- .../workflow-library-canonical-export.test.mjs | 15 +++++++++------ src/workflow/modelSetupControlPresentation.ts | 7 ++++--- tests/e2e/studio-mocked/studio-mocked.spec.ts | 13 +++++++++++-- 5 files changed, 28 insertions(+), 15 deletions(-) diff --git a/docs/developer-first-node-ux.md b/docs/developer-first-node-ux.md index 4d8438a1..7dcea7ff 100644 --- a/docs/developer-first-node-ux.md +++ b/docs/developer-first-node-ux.md @@ -195,8 +195,8 @@ Setup, the node and inspector show the recipe control. The loader's saved fallback value remains available in the implementation and returns to the node when the recipe is disconnected. Base model and adapter revisions keep their separate values. A stock image loader whose conditioning selector is set to None -hides the auxiliary model picker in Model Setup and Inspector. Connected supplier -controls and the saved picker value remain available when applicable. +hides the auxiliary model picker and revision in Model Setup and Inspector. +Connected supplier controls and the saved values remain available when applicable. Recorded ordinary video stage inputs keep condition strength and denoise strength separate. A source-video pixel digest identifies the ordered frozen diff --git a/scripts/bundle-budget.mjs b/scripts/bundle-budget.mjs index 7c229cb2..bb081e93 100644 --- a/scripts/bundle-budget.mjs +++ b/scripts/bundle-budget.mjs @@ -1093,8 +1093,8 @@ const MAX_DEFERRED_CHUNK_GZIP_BYTES = 64 * 1024; // Startup code differs only in the three verified Dataset descriptor values. // Retain both startup caps, the independent 64 KiB chunk cap and prior headroom. const MAX_DEFERRED_GZIP_BYTES = - // Conditioning picker visibility adds 328 deferred gzip bytes (355104 -> 355432). - 328 + + // Applicable conditioning controls add 646 deferred gzip bytes (355104 -> 355750). + 646 + // Bound media input receipts and stage captions add 173 deferred gzip bytes. 173 + // Initial media preview spacing and workflow labels add 148 deferred bytes (354889 -> 355037). diff --git a/scripts/workflow-library-canonical-export.test.mjs b/scripts/workflow-library-canonical-export.test.mjs index 4cbeb353..5f4a7212 100644 --- a/scripts/workflow-library-canonical-export.test.mjs +++ b/scripts/workflow-library-canonical-export.test.mjs @@ -432,7 +432,7 @@ test('Model Setup shows connected VAE recipe controls and retains each loader fa } }); -test('Model Setup hides the stock conditioning picker only when the loader declares it inactive', () => { +test('Model Setup hides the stock conditioning controls only when the loader declares it inactive', () => { const backend = path.resolve(process.env.MODIFF_BACKEND_DIR || '../MoDiff'); const graphName = 'stable-diffusion-xl-pipeline/text-to-image'; const load = (name) => JSON.parse(readFileSync(path.join(backend, `data/graphs/studio/${name}.json`), 'utf8')); @@ -464,16 +464,19 @@ test('Model Setup hides the stock conditioning picker only when the loader decla loader, controlParams, conditioning, + conditioningRevision: field('conditioning_revision'), modelId: field('model_id').controlId, }; }; const active = (context, graph = context.graph, edges = [], root = context.setup) => { const projected = modelSetupControlParams(context.instance, graph, context.controlParams, edges); assert.ok(projected[context.modelId], 'Base model picker remains available'); - return { - stage: Object.hasOwn(projected, context.conditioning.controlId), - inspector: Object.hasOwn(graphNodeControlParams(root, edges), context.conditioning.controlId), - }; + const inspector = graphNodeControlParams(root, edges); + const stageVisible = Object.hasOwn(projected, context.conditioning.controlId); + const inspectorVisible = Object.hasOwn(inspector, context.conditioning.controlId); + assert.equal(Object.hasOwn(projected, context.conditioningRevision.controlId), stageVisible); + assert.equal(Object.hasOwn(inspector, context.conditioningRevision.controlId), inspectorVisible); + return { stage: stageVisible, inspector: inspectorVisible }; }; const source = load(graphName); const inactive = projection(source); @@ -514,7 +517,7 @@ test('Model Setup hides the stock conditioning picker only when the loader decla }, }, }; - for (const fieldOrPortId of ['conditioning_kind', 'conditioning_model_id']) { + for (const fieldOrPortId of ['conditioning_kind', 'conditioning_model_id', 'conditioning_revision']) { const edge = { id: `dynamically-supplied-${fieldOrPortId}`, source: supplier.id, diff --git a/src/workflow/modelSetupControlPresentation.ts b/src/workflow/modelSetupControlPresentation.ts index 812e4e47..433e6ddb 100644 --- a/src/workflow/modelSetupControlPresentation.ts +++ b/src/workflow/modelSetupControlPresentation.ts @@ -12,6 +12,7 @@ const AUDIO_LOADER = 'modules.DiffusersAudio.LoadPipeline'; const EXECUTION_RECIPE = 'modules.DiffusersRuntime.DiffusersExecutionRecipe'; const CONDITIONING_KIND = 'conditioning_kind'; const CONDITIONING_MODEL = 'conditioning_model_id'; +const CONDITIONING_REVISION = 'conditioning_revision'; const RECIPE_SOCKET = 'execution_recipe'; const RECIPE_TYPE = 'diffusers_execution_recipe'; const VAE_FALLBACKS: Record> = { @@ -38,7 +39,7 @@ function hasConditioningSupplier( internalEdges: readonly Edge[], workflowEdges: readonly Edge[], ) { - const fields = [CONDITIONING_KIND, CONDITIONING_MODEL]; + const fields = [CONDITIONING_KIND, CONDITIONING_MODEL, CONDITIONING_REVISION]; if (internalEdges.some((edge) => edge.target === owner.id && fields.includes(edge.targetHandle ?? ''))) return true; const nodeId = owner.data.blockProjectionNodeId!; const handles = new Set( @@ -88,8 +89,8 @@ export function modelSetupControlParams( // unconnected selector as evidence instead of resolving a supplier or reseeding a value. if ( nodeKey === IMAGE_LOADER && - fieldId === CONDITIONING_MODEL && - declared?.display === 'modelselect' && + ((fieldId === CONDITIONING_MODEL && declared?.display === 'modelselect') || + (fieldId === CONDITIONING_REVISION && declared?.type === 'string')) && control.label === declared.label && control.group === owner.data.label?.trim() && !control.sealed && diff --git a/tests/e2e/studio-mocked/studio-mocked.spec.ts b/tests/e2e/studio-mocked/studio-mocked.spec.ts index 0eda88b6..978abedd 100644 --- a/tests/e2e/studio-mocked/studio-mocked.spec.ts +++ b/tests/e2e/studio-mocked/studio-mocked.spec.ts @@ -37097,7 +37097,7 @@ test('reusable canvas Blocks and Python nodes explain their different authoring expect(await optionalStageApi(page)).toEqual(before); }); -test('Model Setup and Inspector expose the conditioning picker only on eligible image examples', async ({ page }) => { +test('Model Setup and Inspector expose conditioning controls only on eligible image examples', async ({ page }) => { await page.setViewportSize({ width: 1920, height: 1200 }); await ensureFrontend(); await installMockRoutes(page); @@ -37126,10 +37126,16 @@ test('Model Setup and Inspector expose the conditioning picker only on eligible const controls = node.data.blockInstanceV2!.effectiveInterface.controls; const field = (name: string) => controls.find(({ binding }) => binding.fieldId === name)?.controlId; useFlowStore.getState().replaceGraph(grouped); - return { id: node.id, base: field('model_id'), conditioning: field('conditioning_model_id') }; + return { + id: node.id, + base: field('model_id'), + conditioning: field('conditioning_model_id'), + revision: field('conditioning_revision'), + }; }, source); expect(setup.base).toBeTruthy(); expect(setup.conditioning).toBeTruthy(); + expect(setup.revision).toBeTruthy(); const graphBefore = await optionalStageApi(page); await page.getByRole('button', { name: 'Arrange graph', exact: true }).click(); const card = page.getByTestId(`setup-node-${setup.id}`); @@ -37138,12 +37144,14 @@ test('Model Setup and Inspector expose the conditioning picker only on eligible await expect(chooser(card, setup.base!)).toBeVisible(); if (conditioning) await expect(chooser(card, setup.conditioning!)).toBeVisible(); else await expect(chooser(card, setup.conditioning!)).toHaveCount(0); + await expect(card.locator(`[data-key="${setup.revision}"]`)).toHaveCount(conditioning ? 1 : 0); await card.locator('header').first().click(); await page.getByRole('button', { name: 'Inspect node', exact: true }).click(); const inspector = page.getByRole('dialog', { name: 'Node inspector', exact: true }); await expect(chooser(inspector, setup.base!)).toBeVisible(); if (conditioning) await expect(chooser(inspector, setup.conditioning!)).toBeVisible(); else await expect(chooser(inspector, setup.conditioning!)).toHaveCount(0); + await expect(inspector.locator(`[data-key="${setup.revision}"]`)).toHaveCount(conditioning ? 1 : 0); await page.keyboard.press('Escape'); expect(await optionalStageApi(page)).toEqual(graphBefore); if (!conditioning) { @@ -37155,6 +37163,7 @@ test('Model Setup and Inspector expose the conditioning picker only on eligible await page.reload({ waitUntil: 'domcontentloaded' }); await expect(chooser(card, setup.base!)).toBeVisible(); await expect(chooser(card, setup.conditioning!)).toHaveCount(0); + await expect(card.locator(`[data-key="${setup.revision}"]`)).toHaveCount(0); expect(await optionalStageApi(page)).toEqual(graphBefore); } } From 36417d4e36fb2e1fe0c27a5235a9d0bbe61fd19e Mon Sep 17 00:00:00 2001 From: Sourav Das Date: Sat, 21 Nov 2026 20:03:10 +0530 Subject: [PATCH 295/440] Clarify node roles and hide raw compiled placements --- AGENTS.md | 1 + docs/developer-first-node-ux.md | 6 ++ scripts/node-presentation.test.mjs | 38 +++++++++++- src/studio/nodeCatalog.ts | 3 + src/workflow/nodePresentation.ts | 58 ++++++++++++++++++- .../live-backend/ordinary-node-labels.spec.ts | 40 ++++++++++++- 6 files changed, 142 insertions(+), 4 deletions(-) diff --git a/AGENTS.md b/AGENTS.md index 9296e319..8cbfa27d 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -30,6 +30,7 @@ These rules apply to Codex, Copilot-style agents, and any AI tool editing this r - Reuse a task- or modality-generic node for the same user-visible job across models and workflows. Put model-specific execution and schema differences in the declared backend adapter. - Use an ordinary node for a stage with one executable action. Expose the inputs, effective controls and outputs the user needs. Fold internal preparation or decoding into a stage only when it shares one owner and its intermediate result has no independent consumer. - Reserve new Blocks for meaningful typed boundaries, such as storyboard shots, reusable compositions, loops or genuine nested control flow. Preserve existing saved Block interfaces and registered definition hashes. +- Keep compiler-only actions out of manual node discovery. Give public fields and sockets role-specific labels and show only controls consumed by the current operation. Test inactive saved values and existing connections when changing presentation. - Label ports by role, including Source, Mask, Control, and First or Last Frame. Show one editor per effective setting and retain the saved fallback when a typed connection supplies the value. Choose a shared default only after it works in both the fresh workflow and the corresponding saved workflow. - Resolve model variants that share a repository through the exact connected model and task declaration. Keep the canvas, restored workflow and saved output metadata consistent. - Test the canvas and the ordered executable graph separately. Compare controls, typed bindings, model switching, and save/reopen. A presentation-only change preserves the executable graph and reuses the original run evidence. diff --git a/docs/developer-first-node-ux.md b/docs/developer-first-node-ux.md index 7dcea7ff..d095c734 100644 --- a/docs/developer-first-node-ux.md +++ b/docs/developer-first-node-ux.md @@ -198,6 +198,12 @@ separate values. A stock image loader whose conditioning selector is set to None hides the auxiliary model picker and revision in Model Setup and Inspector. Connected supplier controls and the saved values remain available when applicable. +Use role-specific captions for inputs and outputs. Image composition names the +overlay and base separately, and generated dimensions are labeled as measured +outputs. Presentation changes preserve authored names, field IDs and socket types. +The raw reviewed modular placement action stays resolvable for saved workflows. +The registered Block picker supplies the exact contract and is its authoring path. + Recorded ordinary video stage inputs keep condition strength and denoise strength separate. A source-video pixel digest identifies the ordered frozen PIL frames used by Encode Inputs, alongside their count; it is not a source-file diff --git a/scripts/node-presentation.test.mjs b/scripts/node-presentation.test.mjs index 1893104a..22ac2acd 100644 --- a/scripts/node-presentation.test.mjs +++ b/scripts/node-presentation.test.mjs @@ -10,6 +10,12 @@ let operationCatalog; const cases = [ ['ModularDiffusers', 'ModelsLoader', 'Load Models', 'Load Modular Components'], ['ModularDiffusers', 'AutoModelLoader', 'Load Model', 'Load Model Component'], + [ + 'ModularDiffusers', + 'WorkflowJointAVReferenceAssembler', + 'Add Ordered Video or Audio Reference', + 'Add Ordered Media Reference', + ], ['DiffusersImage', 'LoadPipeline', 'Load Diffusers Image Pipeline', 'Load Image Pipeline'], ['DiffusersAudio', 'LoadPipeline', 'Load Diffusers Audio Pipeline', 'Load Audio Pipeline'], ['DiffusersVideo', 'LoadPipeline', 'Load Diffusers Video Pipeline', 'Load Video Pipeline'], @@ -27,7 +33,7 @@ const cases = [ ['DiffusersImage', 'ControlInpaint', 'Diffusers Control Inpaint', 'Inpaint Image with Control'], ['Audio', 'Preview', 'Preview Audio', 'Preview Audio'], ['Image', 'Preview', 'Preview Image', 'Preview Image'], - ['ModularDiffusers', 'LatentsPreview', 'Latents Preview', 'Preview Latents'], + ['ModularDiffusers', 'LatentsPreview', 'Latents Preview', 'Preview 4-Channel Latent'], ['Audio', 'Export', 'Export Audio', 'Export Audio'], ['Image', 'Save', 'Save Image', 'Save Image'], ['Primitive', 'ExportData', 'Export Data', 'Export Data'], @@ -210,6 +216,25 @@ test('common discovery shows ordinary image and video preparation but keeps nati test('ordinary controls and sockets distinguish requested settings from supplied or measured results', () => { const fields = [ + ['Image.Merge', 'image_from', 'Image From', 'Overlay image'], + ['Image.Merge', 'image_to', 'Image To', 'Base image'], + ['Image.Merge', 'output', 'Output', 'Composite image'], + ['Image.ApplyMask', 'output', 'Output', 'Masked image'], + ['VideoConditioning.FirstLastFrames', 'first', 'First', 'First frame'], + ['VideoConditioning.FirstLastFrames', 'last', 'Last', 'Last frame'], + ['VideoConditioning.FirstLastFrames', 'references', 'References', 'Frame pair'], + ['ModularDiffusers.Guider', 'guider', 'Guider', 'Guidance type'], + ['ModularDiffusers.Guider', 'guider_out', 'Guider', 'Configured guider'], + ['ModularDiffusers.ModelsLoader', 'unet', 'Denoise Model', 'Denoiser override'], + ['ModularDiffusers.ModelsLoader', 'unet_out', 'Denoise Model', 'Loaded denoiser'], + ['ModularDiffusers.ModelsLoader', 'vae', 'VAE', 'VAE override'], + ['ModularDiffusers.ModelsLoader', 'vae_out', 'VAE', 'Loaded VAE'], + ['DiffusersRuntime.ApplyPipelineRuntimeConfig', 'configured_pipeline', 'Pipeline', 'Configured pipeline'], + ['DiffusersImage.LoadAdapter', 'output', 'Pipeline', 'Adapted pipeline'], + ['DiffusersImage.Generate', 'width_out', 'Width', 'Actual width'], + ['DiffusersImage.Inpaint', 'height_out', 'Height', 'Actual height'], + ['DiffusersVideo.Denoise', 'width_out', 'Width', 'Actual width'], + ['DiffusersVideo.GenerateVideoAudio', 'height_out', 'Height', 'Actual height'], ['VideoConditioning.Normalize', 'video', 'Video', 'Source frames'], ['VideoConditioning.Normalize', 'num_frames', 'Frames', 'Target frames'], ['VideoConditioning.Normalize', 'output', 'Video', 'Normalized video'], @@ -231,6 +256,17 @@ test('ordinary controls and sockets distinguish requested settings from supplied } }); +test('the reviewed Block placement helper stays resolvable but cannot be inserted from discovery', () => { + const step = node('ModularDiffusers', 'ReviewedModularWorkflowStep', 'Reviewed Modular Diffusers Block'); + const [entry] = catalog.nodeCatalogEntries({ 'modules.ModularDiffusers.ReviewedModularWorkflowStep': step }); + assert.equal(entry.node, step); + for (const view of ['common', 'advanced', 'experimental', 'all']) { + assert.equal(catalog.nodeCatalogEntryMatchesView(entry, view), false); + } + const custom = catalog.getNodeCatalogEntry({ ...step, module: 'custom.Example' }); + assert.equal(catalog.nodeCatalogEntryMatchesView(custom, 'common'), true); +}); + test('discoverability reflects the encoder role and both declared upscale media types', () => { const encoder = { ...node('ModularDiffusers', 'ImageEncode', 'Encode Image'), category: 'sampler' }; const upscaler = { diff --git a/src/studio/nodeCatalog.ts b/src/studio/nodeCatalog.ts index b0f7ee75..bd02ec2c 100644 --- a/src/studio/nodeCatalog.ts +++ b/src/studio/nodeCatalog.ts @@ -203,6 +203,9 @@ function categoryFromNode(node: NodeData, key: string): NodeSurfaceCategory { function visibilityForNode(node: NodeData, key: string): NodeCatalogVisibility { if (node.type === 'group' || node.type === 'loop') return 'internal'; + // This action requires an admitted definition and placement supplied by the Block compiler. + // Its saved execution identity stays available even though its raw schema cannot be authored. + if (nodeKey(node) === 'modules.ModularDiffusers.ReviewedModularWorkflowStep') return 'internal'; if (textIncludesAny(`${key} ${node.label}`, ['nunchaku', 'sd3', 'deprecated'])) return 'experimental'; if (ESSENTIAL_NODE_KEYS.has(key)) return 'essential'; if (MODEL_SPECIFIC_MODULES.has(node.module)) return 'advanced'; diff --git a/src/workflow/nodePresentation.ts b/src/workflow/nodePresentation.ts index b0ded844..7092830d 100644 --- a/src/workflow/nodePresentation.ts +++ b/src/workflow/nodePresentation.ts @@ -14,6 +14,10 @@ const PRESENTATIONS: Record = { previous: ['Load Models', 'Load model', 'Diffusers.LoadPipeline'], }, 'modules.ModularDiffusers.AutoModelLoader': { label: 'Load Model Component', previous: ['Load Model'] }, + 'modules.ModularDiffusers.WorkflowJointAVReferenceAssembler': { + label: 'Add Ordered Media Reference', + previous: ['Add Ordered Video or Audio Reference'], + }, 'modules.DiffusersImage.LoadPipeline': { label: 'Load Image Pipeline', previous: ['Load Diffusers Image Pipeline', 'Load pipeline', 'Diffusers.LoadPipeline'], @@ -99,7 +103,10 @@ const PRESENTATIONS: Record = { }, 'modules.Audio.Preview': { label: 'Preview Audio', previous: ['Preview'] }, 'modules.Image.Preview': { label: 'Preview Image', previous: ['Preview'] }, - 'modules.ModularDiffusers.LatentsPreview': { label: 'Preview Latents', previous: ['Latents Preview', 'Preview'] }, + 'modules.ModularDiffusers.LatentsPreview': { + label: 'Preview 4-Channel Latent', + previous: ['Latents Preview', 'Preview Latents', 'Preview'], + }, 'modules.Audio.Export': { label: 'Export Audio', previous: ['Export'] }, 'modules.Image.Save': { label: 'Save Image', previous: ['Export'] }, 'modules.Primitive.ExportData': { label: 'Export Data', previous: ['Export'] }, @@ -151,6 +158,18 @@ const MEDIA_ROLE_CAPTIONS: Record> = { }; const FIELD_PRESENTATIONS: Record> = { + 'modules.Image.Merge': { + image_from: ['Image From', 'Overlay image'], + image_to: ['Image To', 'Base image'], + output: ['Output', 'Composite image'], + }, + 'modules.Image.ApplyMask': { output: ['Output', 'Masked image'] }, + 'modules.VideoConditioning.FirstLastFrames': { + video: ['Video', 'Source video'], + first: ['First', 'First frame'], + last: ['Last', 'Last frame'], + references: ['References', 'Frame pair'], + }, 'modules.VideoConditioning.Normalize': { video: ['Video', 'Source frames'], num_frames: ['Frames', 'Target frames'], @@ -162,6 +181,20 @@ const FIELD_PRESENTATIONS: Record { await page.getByRole('checkbox', { name: 'Show implementation nodes', exact: true }).check(); - const card = await insertNode(page, 'modules.ModularDiffusers.ReviewedModularWorkflowStep'); + const action = 'modules.ModularDiffusers.ReviewedModularWorkflowStep'; + await page.getByLabel('Search nodes', { exact: true }).fill(action); + await expect(page.getByTestId('node-row-modules-ModularDiffusers-ReviewedModularWorkflowStep')).toHaveCount(0); + const id = await page.evaluate(async (key) => { + const [{ useFlowStore }, { useNodesStore }, { createNodeFromRegistry }] = await Promise.all([ + import('/src/stores/useFlowStore.ts'), + import('/src/stores/useNodeStore.ts'), + import('/src/workflow/nodeFactory.ts'), + ]); + // Render a legacy placement outside discovery to retain coverage for saved cards. + const node = createNodeFromRegistry(key, useNodesStore.getState().nodesRegistry, { x: 40, y: 60 }); + if (!node) throw new Error('The saved reviewed step no longer resolves against the registry'); + useFlowStore.getState().addNode(node); + return node.id; + }, action); + const card = page.locator(`.react-flow__node[data-id="${id}"]`); const key = 'iteration_previous__negative_connector_audio_prompt_embeds'; const text = 'negative_connector_audio_prompt_embeds (previous iteration)'; const field = card.locator(`[data-key="${key}"]`); @@ -112,3 +127,26 @@ test('a narrow ordinary reviewed step renders its full previous-iteration output ) .toEqual({ overflows: false, wraps: true }); }); + +test('image composition, frame extraction and generation name their typed boundaries', async ({ page }) => { + await page.getByRole('checkbox', { name: 'Show implementation nodes', exact: true }).check(); + const routes = [ + ['modules.Image.Merge', ['Input Overlay image, image', 'Input Base image, image', 'Output Composite image, image']], + [ + 'modules.VideoConditioning.FirstLastFrames', + ['Output First frame, image', 'Output Last frame, image', 'Output Frame pair, image'], + ], + ['modules.DiffusersImage.Generate', ['Output Actual width, int', 'Output Actual height, int']], + ] as const; + for (const [action, sockets] of routes) { + const card = await insertNode(page, action); + for (const name of sockets) { + const handle = card.getByLabel(name, { exact: true }); + await expect(handle).toBeVisible(); + const caption = handle.locator('..').locator(':scope > div[title]:not([data-testid])'); + await expect.poll(() => caption.evaluate((item) => item.scrollWidth - item.clientWidth)).toBeLessThanOrEqual(2); + } + await page.keyboard.press('Control+z'); + await expect(card).toHaveCount(0); + } +}); From 77b82ac27a9f9d16502d0529a5b7ac0731698c51 Mon Sep 17 00:00:00 2001 From: Sourav Das Date: Sat, 21 Nov 2026 19:57:13 +0530 Subject: [PATCH 296/440] Expose video outputs on conditioned Helios Blocks --- docs/modiff-client-architecture.md | 8 +++++ .../registered-block-v2-route-audit.test.mjs | 30 +++++++++++++++++++ src/studio/registeredBlockV2FanOutRoutes.ts | 30 +++++++++++-------- 3 files changed, 56 insertions(+), 12 deletions(-) diff --git a/docs/modiff-client-architecture.md b/docs/modiff-client-architecture.md index 11fe0240..2b05ea92 100644 --- a/docs/modiff-client-architecture.md +++ b/docs/modiff-client-architecture.md @@ -1950,6 +1950,14 @@ Do not relax generic input validation to accept an image file adaptation on a video loader. The focused regression exports both creators with only their required media paths supplied. +Helios Base, Pyramid, and Pyramid Distilled expose the generated video file +on the Image-to-Video and Video-to-Video Block boundary. Source width and +height remain independent outputs and describe the loaded input. The rendered +preview still comes from the same Video Export action. Saved instances retain +their original immutable graph and public sockets. Auto recognizes the exact +prior catalog definitions and applies the same graph, interface and resource +checks when those instances reopen. + Running from a generic User Node root resolves to a terminal media preview inside that specific expanded instance (or its first terminal node when it has no media preview). Both the store export and run coordinator use this diff --git a/scripts/registered-block-v2-route-audit.test.mjs b/scripts/registered-block-v2-route-audit.test.mjs index a3d96a9e..2271e164 100644 --- a/scripts/registered-block-v2-route-audit.test.mjs +++ b/scripts/registered-block-v2-route-audit.test.mjs @@ -1336,6 +1336,36 @@ test('every explicitly routed admission is an exact backend schema-v6 compiler s `the exact graph leaves required runtime sockets unbound: ${unboundRequiredInputs.join(', ')}`, ); assert.equal(compiled.definition.source.executionAdmissionId, admission.id); + if ( + /^diffusers\.modular:Helios(?:Pyramid(?:Distilled)?)?ModularPipeline:(?:image2video|video2video)$/u.test( + definition.id, + ) + ) { + const outputs = compiled.definition.boundary.outputs; + assert.deepEqual( + outputs.map(({ portId, valueType, binding }) => ({ portId, valueType, binding })), + [ + { + portId: 'height', + valueType: 'int', + binding: { + nodeId: definition.workflowId === 'image2video' ? 'loadImage' : 'loadVideo', + fieldOrPortId: 'height', + }, + }, + { + portId: 'width', + valueType: 'int', + binding: { + nodeId: definition.workflowId === 'image2video' ? 'loadImage' : 'loadVideo', + fieldOrPortId: 'width', + }, + }, + { portId: 'videos', valueType: 'video', binding: { nodeId: 'videoExport', fieldOrPortId: 'file' } }, + ], + 'the generated movie must be wireable independently of the source dimensions', + ); + } if (definition.id === 'diffusers.modular:QwenImageEditModularPipeline:image_conditioned') { for (const dimension of ['width', 'height']) { const input = compiled.definition.boundary.inputs.find(({ portId }) => portId === `${dimension}_input`); diff --git a/src/studio/registeredBlockV2FanOutRoutes.ts b/src/studio/registeredBlockV2FanOutRoutes.ts index 93ef5ae3..e7c469f7 100644 --- a/src/studio/registeredBlockV2FanOutRoutes.ts +++ b/src/studio/registeredBlockV2FanOutRoutes.ts @@ -1757,8 +1757,8 @@ export const REGISTERED_BLOCK_V2_FANOUT_ROUTES = Object.freeze([ }, artifact: { repo: 'BestWishYsh/Helios-Base', revision: '5c50b6bc90eae9bd815d2a50b0c9877e3fd2cf88' }, dynamicFieldActions: [{ event: 'onChange', field: 'model_type', role: 'models', valueSource: 'pipelineClass' }], - compiledDefinitionContentHash: 'block-definition-v2-adfac216', - compiledDefinitionCanonicalSha256: 'sha256:b657d30a3b13bb1122e3077569bf162a8e312d4df5bc1f8612da745cc7f9f02d', + compiledDefinitionContentHash: 'block-definition-v2-08f6fb44', + compiledDefinitionCanonicalSha256: 'sha256:649d94de75f2d95687c5c1d2caffb4b1e6f13619c8ccef1d37b00183c6372929', controlFanOuts: [ { source: 'width', @@ -1803,6 +1803,7 @@ export const REGISTERED_BLOCK_V2_FANOUT_ROUTES = Object.freeze([ outputs: [ { portId: 'height', role: 'loadImage', fieldId: 'height' }, { portId: 'width', role: 'loadImage', fieldId: 'width' }, + { portId: 'videos', role: 'videoExport', fieldId: 'file', adaptation: 'media_file_export', mediaType: 'video' }, ], }, }, @@ -1825,8 +1826,8 @@ export const REGISTERED_BLOCK_V2_FANOUT_ROUTES = Object.freeze([ }, artifact: { repo: 'BestWishYsh/Helios-Base', revision: '5c50b6bc90eae9bd815d2a50b0c9877e3fd2cf88' }, dynamicFieldActions: [{ event: 'onChange', field: 'model_type', role: 'models', valueSource: 'pipelineClass' }], - compiledDefinitionContentHash: 'block-definition-v2-f4239c5e', - compiledDefinitionCanonicalSha256: 'sha256:92e2a3cc4eed10f22208a75382380cf041d0dd8b40e53eab3f6ecc276ad01f5f', + compiledDefinitionContentHash: 'block-definition-v2-fef10cd4', + compiledDefinitionCanonicalSha256: 'sha256:75f8f1cc64acb8e4904e403bb558f850ca6115799b3148530b683a517efa5ed6', controlFanOuts: [ { source: 'width', @@ -1871,6 +1872,7 @@ export const REGISTERED_BLOCK_V2_FANOUT_ROUTES = Object.freeze([ outputs: [ { portId: 'height', role: 'loadVideo', fieldId: 'height' }, { portId: 'width', role: 'loadVideo', fieldId: 'width' }, + { portId: 'videos', role: 'videoExport', fieldId: 'file', adaptation: 'media_file_export', mediaType: 'video' }, ], }, }, @@ -1895,8 +1897,8 @@ export const REGISTERED_BLOCK_V2_FANOUT_ROUTES = Object.freeze([ }, artifact: { repo: 'BestWishYsh/Helios-Distilled', revision: 'b991c0379a018f4de3227d95468237f56066f5bb' }, dynamicFieldActions: [{ event: 'onChange', field: 'model_type', role: 'models', valueSource: 'pipelineClass' }], - compiledDefinitionContentHash: 'block-definition-v2-cc90157b', - compiledDefinitionCanonicalSha256: 'sha256:c0ba64dd152981981fb47a8b00669731f6f30d0ae17a986bb4adfe364f780118', + compiledDefinitionContentHash: 'block-definition-v2-eb6ac085', + compiledDefinitionCanonicalSha256: 'sha256:9f04481aeb6443cee6e39d18bb703c2ca5dfb9018a34ca98632cc4eeb3391c64', controlFanOuts: [ { source: 'width', @@ -1940,6 +1942,7 @@ export const REGISTERED_BLOCK_V2_FANOUT_ROUTES = Object.freeze([ outputs: [ { portId: 'height', role: 'loadImage', fieldId: 'height' }, { portId: 'width', role: 'loadImage', fieldId: 'width' }, + { portId: 'videos', role: 'videoExport', fieldId: 'file', adaptation: 'media_file_export', mediaType: 'video' }, ], }, }, @@ -1964,8 +1967,8 @@ export const REGISTERED_BLOCK_V2_FANOUT_ROUTES = Object.freeze([ }, artifact: { repo: 'BestWishYsh/Helios-Distilled', revision: 'b991c0379a018f4de3227d95468237f56066f5bb' }, dynamicFieldActions: [{ event: 'onChange', field: 'model_type', role: 'models', valueSource: 'pipelineClass' }], - compiledDefinitionContentHash: 'block-definition-v2-436870d8', - compiledDefinitionCanonicalSha256: 'sha256:db5d77e9c4bbd905d0075d19c10b1ef9f62c77e235d8ead409d1e167e54ea0db', + compiledDefinitionContentHash: 'block-definition-v2-2b8cd0c6', + compiledDefinitionCanonicalSha256: 'sha256:a0d75a3e1b9fe9d14524ae285f8bf6a30566d6ba5be1b7869c582bb7ac344264', controlFanOuts: [ { source: 'width', @@ -2009,6 +2012,7 @@ export const REGISTERED_BLOCK_V2_FANOUT_ROUTES = Object.freeze([ outputs: [ { portId: 'height', role: 'loadVideo', fieldId: 'height' }, { portId: 'width', role: 'loadVideo', fieldId: 'width' }, + { portId: 'videos', role: 'videoExport', fieldId: 'file', adaptation: 'media_file_export', mediaType: 'video' }, ], }, }, @@ -2033,8 +2037,8 @@ export const REGISTERED_BLOCK_V2_FANOUT_ROUTES = Object.freeze([ }, artifact: { repo: 'BestWishYsh/Helios-Mid', revision: '477c55427ec0ea774bdebd0fbe736313cfc5a312' }, dynamicFieldActions: [{ event: 'onChange', field: 'model_type', role: 'models', valueSource: 'pipelineClass' }], - compiledDefinitionContentHash: 'block-definition-v2-29db419c', - compiledDefinitionCanonicalSha256: 'sha256:fe384ffc7ae3aa84c4e5bd89ceea31e5f824cbd407c0933b04c65790cd40e6a6', + compiledDefinitionContentHash: 'block-definition-v2-b1545162', + compiledDefinitionCanonicalSha256: 'sha256:2a3d9d7eadcc5f0e9c83070fead2231c9e7ee5fd70c7fcd4b618ab80e3478693', controlFanOuts: [ { source: 'width', @@ -2078,6 +2082,7 @@ export const REGISTERED_BLOCK_V2_FANOUT_ROUTES = Object.freeze([ outputs: [ { portId: 'height', role: 'loadImage', fieldId: 'height' }, { portId: 'width', role: 'loadImage', fieldId: 'width' }, + { portId: 'videos', role: 'videoExport', fieldId: 'file', adaptation: 'media_file_export', mediaType: 'video' }, ], }, }, @@ -2102,8 +2107,8 @@ export const REGISTERED_BLOCK_V2_FANOUT_ROUTES = Object.freeze([ }, artifact: { repo: 'BestWishYsh/Helios-Mid', revision: '477c55427ec0ea774bdebd0fbe736313cfc5a312' }, dynamicFieldActions: [{ event: 'onChange', field: 'model_type', role: 'models', valueSource: 'pipelineClass' }], - compiledDefinitionContentHash: 'block-definition-v2-96feb2c3', - compiledDefinitionCanonicalSha256: 'sha256:15ade38e8eac9ae3a386867fb0a835ceb307d5a8a4b8729d6af5167371b5702a', + compiledDefinitionContentHash: 'block-definition-v2-5429a7b5', + compiledDefinitionCanonicalSha256: 'sha256:6105ac04e9451d4e1a7728b662d7fd791a31e08e622067925b08e3e3563d734b', controlFanOuts: [ { source: 'width', @@ -2147,6 +2152,7 @@ export const REGISTERED_BLOCK_V2_FANOUT_ROUTES = Object.freeze([ outputs: [ { portId: 'height', role: 'loadVideo', fieldId: 'height' }, { portId: 'width', role: 'loadVideo', fieldId: 'width' }, + { portId: 'videos', role: 'videoExport', fieldId: 'file', adaptation: 'media_file_export', mediaType: 'video' }, ], }, }, From e96910fe2d656c558b81b762fef78d965e3840f5 Mon Sep 17 00:00:00 2001 From: Sourav Das Date: Sat, 21 Nov 2026 20:00:08 +0530 Subject: [PATCH 297/440] Show controls for the selected audio and video utility --- scripts/template-operation-fixtures.py | 3 +- src/components/NodeContent.tsx | 11 ++- .../builtinMediaOperationPresentation.ts | 54 ++++++++++ tests/e2e/studio-mocked/studio-mocked.spec.ts | 98 +++++++++++++++++++ 4 files changed, 163 insertions(+), 3 deletions(-) create mode 100644 src/workflow/builtinMediaOperationPresentation.ts diff --git a/scripts/template-operation-fixtures.py b/scripts/template-operation-fixtures.py index e85113e3..d916c367 100644 --- a/scripts/template-operation-fixtures.py +++ b/scripts/template-operation-fixtures.py @@ -121,7 +121,8 @@ def describe(key): "modules.Image.Save", "modules.ImageOperations.CropImage", "modules.ImageOperations.MaskComposite", "modules.DiffusersImage.OutpaintCanvas", "modules.Audio.Export", "modules.Audio.Load", "modules.Image.Load", "modules.DiffusersAudio.LoadAdapter", "modules.Video.Load", "modules.Video.Export", "modules.Video.ExportWithAudio", "modules.Video.ExportAsset", - "modules.Audio.FitDuration", "modules.DiffusersAudio.LoadPipeline", "modules.DiffusersAudio.Generate", + "modules.Audio.FitDuration", "modules.Audio.ProcessAudio", "modules.Video.ProcessVideo", + "modules.DiffusersAudio.LoadPipeline", "modules.DiffusersAudio.Generate", "modules.DiffusersVideo.LoadPipeline", "modules.DiffusersVideo.GenerateSequence", "modules.Video.Compose", "modules.Video.LyricOverlay", "modules.VideoConditioning.Storyboard", "modules.VideoConditioning.ShotPrompt", diff --git a/src/components/NodeContent.tsx b/src/components/NodeContent.tsx index b65cf6f6..70a07eda 100644 --- a/src/components/NodeContent.tsx +++ b/src/components/NodeContent.tsx @@ -34,6 +34,7 @@ import { operationOwnsModel } from '../workflow/operationContracts'; import { nodeFieldDisplayLabel } from '../workflow/nodePresentation'; import { fileBackedMediaPreviewUrl } from '../studio/outputUtils'; import { unresolvedSignalControls } from '../workflow/signalControlPresentation'; +import { builtinMediaOperationPresentation } from '../workflow/builtinMediaOperationPresentation'; import HandleField from '../fields/HandleField'; import InputField from '../fields/InputField'; @@ -217,12 +218,16 @@ const NodeContent = memo(function NodeContent({ const autoModeActive = studioResourceMode === 'auto' && controlledStudioNode; const autoFormPatch = formPatchForAutoCandidate(selectedCandidate, studioForm); const identity = `${module}.${action}`; + const mediaOperation = builtinMediaOperationPresentation(identity, graphNode?.data.params ?? params); const signalControls = useFlowStore( useShallow((state) => unresolvedSignalControls(nodeId, nodesRegistry[identity]?.params, state)), ); const fields = Object.entries(params).flatMap(([key, data]: [string, NodeParams]) => { const declaredLabel = data.label ?? key.charAt(0).toUpperCase() + key.slice(1); - const label = nodeFieldDisplayLabel(identity, key, declaredLabel); + const label = + mediaOperation?.continuation && key === 'reference' && declaredLabel === 'Reference Audio' + ? 'Continuation Audio' + : nodeFieldDisplayLabel(identity, key, declaredLabel); const display = data.isInput ? 'input' : data.display || ''; const dataType = ( Array.isArray(data.type) && data.type.length > 0 ? data.type[0] : data.type || 'string' @@ -243,7 +248,8 @@ const NodeContent = memo(function NodeContent({ // low-level/custom contract authoring. const derivedPipelineType = key === 'model_type' && operationOwnsModel(graphNode?.data.operationAuthoring?.operation); - const hidden = Boolean(data.hidden || derivedPipelineType || signalControls.has(key)); + const inactiveMediaField = mediaOperation?.inactive.has(key); + const hidden = Boolean(data.hidden || derivedPipelineType || signalControls.has(key) || inactiveMediaField); const configuredValue = data.value ?? data.default; const selectedFile = params.file?.value ?? params.file?.default; let fileBackedLoaderPreview: string | string[] | undefined; @@ -301,6 +307,7 @@ const NodeContent = memo(function NodeContent({ fieldOptions: { ...data.fieldOptions, ...(label !== declaredLabel ? { wrapConnectionLabel: true } : {}), + ...(inactiveMediaField && isConnected ? { connectionDescription: 'Unused by this operation' } : {}), ...(connectionNotes[key] ? { connectedControlNote: connectionNotes[key] } : {}), }, artifacts: data.artifacts, diff --git a/src/workflow/builtinMediaOperationPresentation.ts b/src/workflow/builtinMediaOperationPresentation.ts new file mode 100644 index 00000000..2a007652 --- /dev/null +++ b/src/workflow/builtinMediaOperationPresentation.ts @@ -0,0 +1,54 @@ +import type { NodeParams } from '../stores/useNodeStore'; + +const AUDIO_FIELDS: Record = { + audio_trim: ['start_seconds', 'duration_seconds', 'target_sample_rate', 'normalize_peak'], + audio_join: ['reference', 'boundary_fade_seconds'], + audio_loudness_match: ['reference', 'reference_window_seconds', 'target_peak_dbfs', 'max_adjustment_db'], +}; + +const VIDEO_FIELDS: Record = { + video_frame_extract: ['selection_mode', 'images', 'selected_indices', 'timestamps'], + frame_interpolation: ['interpolation_fps', 'video'], + video_stitch: ['transition_seconds', 'video'], + video_trim: ['start_seconds', 'end_seconds', 'video'], + video_reverse: ['video'], + video_tile: ['columns', 'sync', 'gap', 'background', 'video'], +}; + +const EXTRACT_DETAIL_FIELDS = ['indices', 'timecodes', 'every_n']; +const EXTRACT_BOUNDARIES = ['first', 'last', 'first_last']; +const ALL_AUDIO_FIELDS = new Set(Object.values(AUDIO_FIELDS).flat()); +const ALL_VIDEO_FIELDS = new Set([...Object.values(VIDEO_FIELDS).flat(), ...EXTRACT_DETAIL_FIELDS, 'fps']); + +function savedSelector(field: NodeParams | undefined) { + if (field?.isConnected) return undefined; + const value = field?.value ?? field?.default; + return typeof value === 'string' ? value : undefined; +} + +/** Filter only the ordinary utility presentation. Keep saved settings and handle IDs available. */ +export function builtinMediaOperationPresentation(identity: string, params: Record) { + const operation = savedSelector(params.operation); + if (!operation) return undefined; + + if (identity === 'modules.Audio.ProcessAudio' && Object.prototype.hasOwnProperty.call(AUDIO_FIELDS, operation)) { + const active = AUDIO_FIELDS[operation]!; + return { + inactive: new Set([...ALL_AUDIO_FIELDS].filter((field) => !active.includes(field))), + continuation: operation === 'audio_join', + }; + } + + if (identity === 'modules.Video.ProcessVideo' && Object.prototype.hasOwnProperty.call(VIDEO_FIELDS, operation)) { + const active = new Set(VIDEO_FIELDS[operation]); + if (operation === 'video_frame_extract') { + const selection = savedSelector(params.selection_mode); + if (selection && EXTRACT_DETAIL_FIELDS.includes(selection)) active.add(selection); + else if (!selection || !EXTRACT_BOUNDARIES.includes(selection)) { + for (const field of EXTRACT_DETAIL_FIELDS) active.add(field); + } + } + return { inactive: new Set([...ALL_VIDEO_FIELDS].filter((field) => !active.has(field))) }; + } + return undefined; +} diff --git a/tests/e2e/studio-mocked/studio-mocked.spec.ts b/tests/e2e/studio-mocked/studio-mocked.spec.ts index 978abedd..ef7909ed 100644 --- a/tests/e2e/studio-mocked/studio-mocked.spec.ts +++ b/tests/e2e/studio-mocked/studio-mocked.spec.ts @@ -1019,6 +1019,104 @@ test('late-loaded media input previews retain arranged geometry and reachable co expect(graphPosts).toBe(0); }); +test('media utility controls follow the selected operation without losing saved values or wires', async ({ page }) => { + const { registry } = await generateTemplateSchemas([]); + await ensureFrontend(); + await installMockRoutes(page); + await page.route('**/media/preview?**', (route) => route.fulfill({ contentType: 'video/mp4', body: '' })); + await page.route('**/nodes**', (route) => + route.fulfill({ json: { instance: 'mock', nodes: { ...mockRegistry, ...registry } } }), + ); + await page.goto(FRONTEND_URL, { waitUntil: 'domcontentloaded' }); + await page.waitForFunction(() => Boolean(window.__MODIFF_E2E__?.getState().studio.workflowCanvasHydrated)); + await dismissTaskLauncher(page); + const prepared = await page.evaluate(async (registry) => { + const [{ createNodeFromRegistry }, { getFormDefaultsForMode }, { buildWorkflowPackage }] = await Promise.all([ + import('/src/workflow/nodeFactory.ts'), + import('/src/studio/modelProfiles.ts'), + import('/src/studio/workflowPackage.ts'), + ]); + const source = createNodeFromRegistry('modules.Audio.Load', registry, { x: 0, y: 0 })!; + const audio = createNodeFromRegistry('modules.Audio.ProcessAudio', registry, { x: 350, y: 0 })!; + const video = createNodeFromRegistry('modules.Video.ProcessVideo', registry, { x: 750, y: 0 })!; + audio.data.params.operation!.value = 'audio_join'; + audio.data.params.boundary_fade_seconds!.value = 0.14; + video.data.params.operation!.value = 'video_frame_extract'; + video.data.params.selection_mode!.value = 'indices'; + video.data.params.indices!.value = '1,8'; + video.data.params.start_seconds!.value = 3.25; + video.data.params.videos!.value = ['@data/videos/scene.mp4']; + const edge = { + id: 'saved-continuation', + source: source.id, + sourceHandle: 'audio', + target: audio.id, + targetHandle: 'reference', + }; + const packageData = buildWorkflowPackage({ + form: getFormDefaultsForMode('video_frame_extract', 'BuiltinVideoOperation'), + graph: { nodes: [source, audio, video], edges: [edge], viewport: { x: 30, y: 80, zoom: 0.65 } }, + }); + return { packageData, audioId: audio.id, videoId: video.id }; + }, registry); + await page.getByTestId('topbar-gallery').click(); + await page.getByTestId('gallery-import-workflow-input').setInputFiles({ + name: 'media-utilities.workflow.json', + mimeType: 'application/json', + buffer: Buffer.from(JSON.stringify(prepared.packageData)), + }); + await expect(page.getByRole('dialog', { name: 'Output Gallery', exact: true })).toBeHidden(); + const audio = page.locator(`.react-flow__node[data-id="${prepared.audioId}"]`); + const video = page.locator(`.react-flow__node[data-id="${prepared.videoId}"]`); + const field = (node: Locator, key: string) => node.locator(`[data-key="${key}"]`); + const choose = async (node: Locator, key: string, option: string) => { + await field(node, key).getByRole('button').click(); + await page.getByRole('option', { name: option, exact: true }).click(); + }; + const read = () => page.evaluate(() => window.__MODIFF_E2E__!.exportWorkflowGraph()); + + await expect(field(audio, 'start_seconds')).toBeHidden(); + await expect(field(audio, 'boundary_fade_seconds')).toBeVisible(); + const continued = page.getByTestId(`node-handle-${prepared.audioId}-reference`); + await expect(continued).toHaveAccessibleName(/Continuation Audio/u); + await choose(audio, 'operation', 'audio_trim'); + await expect(field(audio, 'start_seconds')).toBeVisible(); + await expect(field(audio, 'boundary_fade_seconds')).toBeHidden(); + await expect(continued).toBeVisible(); + await choose(audio, 'operation', 'audio_loudness_match'); + await expect(continued).toHaveAccessibleName(/Reference Audio/u); + await expect(field(audio, 'target_peak_dbfs')).toBeVisible(); + await choose(audio, 'operation', 'audio_join'); + await expect(field(audio, 'boundary_fade_seconds').locator('input')).toHaveValue(/^0\.140*$/u); + + await expect(field(video, 'start_seconds')).toBeHidden(); + await expect(field(video, 'fps')).toBeHidden(); + await expect(field(video, 'images')).toBeVisible(); + await expect(field(video, 'video')).toBeHidden(); + await choose(video, 'selection_mode', 'last'); + await expect(field(video, 'indices')).toBeHidden(); + await choose(video, 'selection_mode', 'indices'); + await expect(field(video, 'indices').locator('input')).toHaveValue('1,8'); + await choose(video, 'operation', 'video_trim'); + await expect(field(video, 'selection_mode')).toBeHidden(); + await expect(field(video, 'start_seconds').locator('input')).toHaveValue(/^3\.250*$/u); + await expect(field(video, 'images')).toBeHidden(); + await expect(field(video, 'video')).toBeVisible(); + + const before = await read(); + await page.getByTestId('topbar-save-workflow-options').click(); + await page.getByTestId('topbar-save-workflow-as').click(); + await page.getByTestId('save-workflow-name').fill('Saved media utilities'); + await page.getByTestId('confirm-save-workflow').click(); + await expect(page.getByTestId('save-workflow-dialog')).toHaveCount(0); + await page.reload({ waitUntil: 'domcontentloaded' }); + await page.waitForFunction(() => Boolean(window.__MODIFF_E2E__?.getState().studio.workflowCanvasHydrated)); + await expect.poll(read).toEqual(before); + await expect(continued).toHaveAccessibleName(/Continuation Audio/u); + await expect(field(video, 'selection_mode')).toBeHidden(); + await expect(field(video, 'start_seconds').locator('input')).toHaveValue(/^3\.250*$/u); +}); + test('renamed declared video output stays runnable after ordinary import Save and reload', async ({ page }) => { const fixture = await generateTemplateSchemas([]); await ensureFrontend(); From 79cbff9f00538ccd3f6fd30d818099bd8a76f5a6 Mon Sep 17 00:00:00 2001 From: Sourav Das Date: Sat, 21 Nov 2026 20:03:38 +0530 Subject: [PATCH 298/440] Clarify registered image and transcript output labels --- docs/modiff-client-architecture.md | 6 +++ .../registered-block-v2-route-audit.test.mjs | 53 ++++++++++++++++++- src/studio/blockRuntimeV2.ts | 48 ++++++++++++++++- 3 files changed, 105 insertions(+), 2 deletions(-) diff --git a/docs/modiff-client-architecture.md b/docs/modiff-client-architecture.md index 2b05ea92..a89d0e30 100644 --- a/docs/modiff-client-architecture.md +++ b/docs/modiff-client-architecture.md @@ -1958,6 +1958,12 @@ their original immutable graph and public sockets. Auto recognizes the exact prior catalog definitions and applies the same graph, interface and resource checks when those instances reopen. +The registered Cosmos 3 text-to-image outputs appear as Image on the +canvas. Wav2Vec2 and Whisper text outputs appear as Transcript. These +labels are presentation defaults for the exact registered output +descriptors. Editing a port label overrides the default. The displayed +name leaves the saved identifier, type, binding and definition hash intact. + Running from a generic User Node root resolves to a terminal media preview inside that specific expanded instance (or its first terminal node when it has no media preview). Both the store export and run coordinator use this diff --git a/scripts/registered-block-v2-route-audit.test.mjs b/scripts/registered-block-v2-route-audit.test.mjs index 2271e164..092cf0a2 100644 --- a/scripts/registered-block-v2-route-audit.test.mjs +++ b/scripts/registered-block-v2-route-audit.test.mjs @@ -1128,7 +1128,7 @@ test('actual registered materialization rejects a changed sealed ControlNet offl ); }); -test('every explicitly routed admission is an exact backend schema-v6 compiler success with fixed runtime probes', () => { +test('every explicitly routed admission is an exact backend schema-v6 compiler success with fixed runtime probes', async () => { const parsedLibrary = nodeLibraryModule.parseHuggingFaceNodeLibrary(snapshot.library); assert.equal(parsedLibrary.definitions.length, snapshot.library.definitions.length); const specs = new Map(snapshot.specs.map((spec) => [spec.id, spec])); @@ -1709,6 +1709,57 @@ test('every explicitly routed admission is an exact backend schema-v6 compiler s `${definition.id} falsely presents an equivalent standard executor as exact upstream blocks`, ); }); + const runtime = await server.ssrLoadModule('/src/studio/blockRuntimeV2.ts'); + for (const [catalogId, portId, savedLabel, displayLabel, type] of [ + ['diffusers.modular:Cosmos3DistilledModularPipeline:text2image', 'images', 'videos', 'Image', 'image'], + ['diffusers.modular:Cosmos3OmniModularPipeline:text2image', 'images', 'videos', 'Image', 'image'], + [ + 'transformers.composite:HuggingFaceCTCSpeechRecognitionModel:speech_to_text', + 'result', + 'result', + 'Transcript', + 'any', + ], + [ + 'transformers.composite:HuggingFaceSpeechRecognitionModel:speech_to_text', + 'result', + 'result', + 'Transcript', + 'any', + ], + [ + 'transformers.composite:HuggingFaceSpeechRecognitionModel:speech_translation', + 'result', + 'result', + 'Transcript', + 'any', + ], + ['diffusers.modular:Cosmos3OmniModularPipeline:image2video', 'videos', 'videos', 'videos', 'video'], + ]) { + const result = [...compilerSuccesses.values()].find(({ definition }) => definition.id === catalogId); + assert.ok(result, catalogId); + const instance = result.compiledInstance; + const saved = JSON.stringify(instance); + const { boundary, controls } = instance.effectiveInterface; + const publicPort = boundary.outputs.find((port) => port.portId === portId); + assert.equal(publicPort.label, savedLabel, catalogId); + const projected = runtime.blockConnectorParamsV2(instance).outputs[portId]; + assert.equal(projected.label, displayLabel, catalogId); + assert.equal(projected.type, type, catalogId); + assert.equal(projected.fieldOptions.blockBindingV2.logicalId, portId, catalogId); + assert.equal(projected.fieldOptions.blockBindingV2.nodeId, publicPort.binding.nodeId, catalogId); + assert.equal(projected.fieldOptions.blockBindingV2.fieldOrPortId, publicPort.binding.fieldOrPortId, catalogId); + const edited = runtime.replaceBlockEffectiveInterfaceV2(instance, { + controls, + boundary: { + ...boundary, + outputs: boundary.outputs.map((port) => (port.portId === portId ? { ...port, label: 'My output' } : port)), + }, + }); + assert.equal(runtime.blockConnectorParamsV2(edited).outputs[portId].label, 'My output', catalogId); + assert.equal(JSON.stringify(instance), saved, catalogId); + } + const qwenDefinition = snapshot.library.definitions.find( (definition) => definition.id === 'diffusers.modular:QwenImageModularPipeline:text2image', ); diff --git a/src/studio/blockRuntimeV2.ts b/src/studio/blockRuntimeV2.ts index 1f6e9aa0..98741f51 100644 --- a/src/studio/blockRuntimeV2.ts +++ b/src/studio/blockRuntimeV2.ts @@ -446,6 +446,52 @@ function controlParamsForNormalizedInstanceV2(instance: BlockInstanceV2): Record ); } +const IMAGE_RESULT_LABEL_V2 = { + portId: 'images', + savedLabel: 'videos', + displayLabel: 'Image', + valueType: 'image', + nodeId: 'decode', + fieldOrPortId: 'videos', +}; +const TRANSCRIPT_RESULT_LABEL_V2 = { + portId: 'result', + savedLabel: 'result', + displayLabel: 'Transcript', + valueType: 'any', + nodeId: 'transcribeAudio', + fieldOrPortId: 'transcript', +}; + +// Keep these user-facing aliases out of the immutable registered interfaces. +const REGISTERED_OUTPUT_LABELS_V2 = new Map([ + [ + 'diffusers.cluster-admission:Cosmos3DistilledModularPipeline:text2image:workflow:official_top_level_blocks', + IMAGE_RESULT_LABEL_V2, + ], + [ + 'diffusers.cluster-admission:Cosmos3OmniModularPipeline:text2image:workflow:official_top_level_blocks', + IMAGE_RESULT_LABEL_V2, + ], + ['transformers.cluster-admission:HuggingFaceCTCSpeechRecognitionModel:speech_to_text', TRANSCRIPT_RESULT_LABEL_V2], + ['transformers.cluster-admission:HuggingFaceSpeechRecognitionModel:speech_to_text', TRANSCRIPT_RESULT_LABEL_V2], + ['transformers.cluster-admission:HuggingFaceSpeechRecognitionModel:speech_translation', TRANSCRIPT_RESULT_LABEL_V2], +]); + +function registeredOutputLabelV2(instance: BlockInstanceV2, port: BlockPortV2) { + const { definitionId, source, ownership } = instance.definitionSnapshot; + const alias = REGISTERED_OUTPUT_LABELS_V2.get(definitionId); + return ownership.kind === 'registered' && + source.executionAdmissionId === definitionId && + alias?.portId === port.portId && + alias.savedLabel === port.label && + alias.valueType === port.valueType && + alias.nodeId === port.binding.nodeId && + alias.fieldOrPortId === port.binding.fieldOrPortId + ? alias.displayLabel + : port.label; +} + function connectorParam(instance: BlockInstanceV2, port: BlockPortV2, direction: 'input' | 'output'): NodeParams { const base = sourceParam(instance, port.binding.nodeId, port.binding.fieldOrPortId); if (base?.signalCompatibility?.action === '$node') { @@ -479,7 +525,7 @@ function connectorParam(instance: BlockInstanceV2, port: BlockPortV2, direction: const union = normalizeBlockValueTypeV2(port.valueType); return { ...(base ? cloneJson(base) : {}), - label: port.label, + label: direction === 'output' ? registeredOutputLabelV2(instance, port) : port.label, type: Array.isArray(union) ? (union as string[]) : port.valueType, display: direction, required: port.required, From 43be777fa5e6cb5dc98f8ad148602a35c39fd255 Mon Sep 17 00:00:00 2001 From: Sourav Das Date: Sat, 21 Nov 2026 20:04:20 +0530 Subject: [PATCH 299/440] Show controls for the selected image and text utility --- src/components/NodeContent.tsx | 12 +-- .../builtinMediaOperationPresentation.ts | 54 ----------- .../builtinUtilityOperationPresentation.ts | 83 +++++++++++++++++ tests/e2e/studio-mocked/studio-mocked.spec.ts | 93 +++++++++++++++++-- 4 files changed, 175 insertions(+), 67 deletions(-) delete mode 100644 src/workflow/builtinMediaOperationPresentation.ts create mode 100644 src/workflow/builtinUtilityOperationPresentation.ts diff --git a/src/components/NodeContent.tsx b/src/components/NodeContent.tsx index 70a07eda..106fbf58 100644 --- a/src/components/NodeContent.tsx +++ b/src/components/NodeContent.tsx @@ -34,7 +34,7 @@ import { operationOwnsModel } from '../workflow/operationContracts'; import { nodeFieldDisplayLabel } from '../workflow/nodePresentation'; import { fileBackedMediaPreviewUrl } from '../studio/outputUtils'; import { unresolvedSignalControls } from '../workflow/signalControlPresentation'; -import { builtinMediaOperationPresentation } from '../workflow/builtinMediaOperationPresentation'; +import { builtinUtilityOperationPresentation } from '../workflow/builtinUtilityOperationPresentation'; import HandleField from '../fields/HandleField'; import InputField from '../fields/InputField'; @@ -218,14 +218,14 @@ const NodeContent = memo(function NodeContent({ const autoModeActive = studioResourceMode === 'auto' && controlledStudioNode; const autoFormPatch = formPatchForAutoCandidate(selectedCandidate, studioForm); const identity = `${module}.${action}`; - const mediaOperation = builtinMediaOperationPresentation(identity, graphNode?.data.params ?? params); + const utilityOperation = builtinUtilityOperationPresentation(identity, graphNode?.data.params ?? params); const signalControls = useFlowStore( useShallow((state) => unresolvedSignalControls(nodeId, nodesRegistry[identity]?.params, state)), ); const fields = Object.entries(params).flatMap(([key, data]: [string, NodeParams]) => { const declaredLabel = data.label ?? key.charAt(0).toUpperCase() + key.slice(1); const label = - mediaOperation?.continuation && key === 'reference' && declaredLabel === 'Reference Audio' + utilityOperation?.continuation && key === 'reference' && declaredLabel === 'Reference Audio' ? 'Continuation Audio' : nodeFieldDisplayLabel(identity, key, declaredLabel); const display = data.isInput ? 'input' : data.display || ''; @@ -248,8 +248,8 @@ const NodeContent = memo(function NodeContent({ // low-level/custom contract authoring. const derivedPipelineType = key === 'model_type' && operationOwnsModel(graphNode?.data.operationAuthoring?.operation); - const inactiveMediaField = mediaOperation?.inactive.has(key); - const hidden = Boolean(data.hidden || derivedPipelineType || signalControls.has(key) || inactiveMediaField); + const inactiveUtilityField = utilityOperation?.inactive.has(key); + const hidden = Boolean(data.hidden || derivedPipelineType || signalControls.has(key) || inactiveUtilityField); const configuredValue = data.value ?? data.default; const selectedFile = params.file?.value ?? params.file?.default; let fileBackedLoaderPreview: string | string[] | undefined; @@ -307,7 +307,7 @@ const NodeContent = memo(function NodeContent({ fieldOptions: { ...data.fieldOptions, ...(label !== declaredLabel ? { wrapConnectionLabel: true } : {}), - ...(inactiveMediaField && isConnected ? { connectionDescription: 'Unused by this operation' } : {}), + ...(inactiveUtilityField && isConnected ? { connectionDescription: 'Unused by this operation' } : {}), ...(connectionNotes[key] ? { connectedControlNote: connectionNotes[key] } : {}), }, artifacts: data.artifacts, diff --git a/src/workflow/builtinMediaOperationPresentation.ts b/src/workflow/builtinMediaOperationPresentation.ts deleted file mode 100644 index 2a007652..00000000 --- a/src/workflow/builtinMediaOperationPresentation.ts +++ /dev/null @@ -1,54 +0,0 @@ -import type { NodeParams } from '../stores/useNodeStore'; - -const AUDIO_FIELDS: Record = { - audio_trim: ['start_seconds', 'duration_seconds', 'target_sample_rate', 'normalize_peak'], - audio_join: ['reference', 'boundary_fade_seconds'], - audio_loudness_match: ['reference', 'reference_window_seconds', 'target_peak_dbfs', 'max_adjustment_db'], -}; - -const VIDEO_FIELDS: Record = { - video_frame_extract: ['selection_mode', 'images', 'selected_indices', 'timestamps'], - frame_interpolation: ['interpolation_fps', 'video'], - video_stitch: ['transition_seconds', 'video'], - video_trim: ['start_seconds', 'end_seconds', 'video'], - video_reverse: ['video'], - video_tile: ['columns', 'sync', 'gap', 'background', 'video'], -}; - -const EXTRACT_DETAIL_FIELDS = ['indices', 'timecodes', 'every_n']; -const EXTRACT_BOUNDARIES = ['first', 'last', 'first_last']; -const ALL_AUDIO_FIELDS = new Set(Object.values(AUDIO_FIELDS).flat()); -const ALL_VIDEO_FIELDS = new Set([...Object.values(VIDEO_FIELDS).flat(), ...EXTRACT_DETAIL_FIELDS, 'fps']); - -function savedSelector(field: NodeParams | undefined) { - if (field?.isConnected) return undefined; - const value = field?.value ?? field?.default; - return typeof value === 'string' ? value : undefined; -} - -/** Filter only the ordinary utility presentation. Keep saved settings and handle IDs available. */ -export function builtinMediaOperationPresentation(identity: string, params: Record) { - const operation = savedSelector(params.operation); - if (!operation) return undefined; - - if (identity === 'modules.Audio.ProcessAudio' && Object.prototype.hasOwnProperty.call(AUDIO_FIELDS, operation)) { - const active = AUDIO_FIELDS[operation]!; - return { - inactive: new Set([...ALL_AUDIO_FIELDS].filter((field) => !active.includes(field))), - continuation: operation === 'audio_join', - }; - } - - if (identity === 'modules.Video.ProcessVideo' && Object.prototype.hasOwnProperty.call(VIDEO_FIELDS, operation)) { - const active = new Set(VIDEO_FIELDS[operation]); - if (operation === 'video_frame_extract') { - const selection = savedSelector(params.selection_mode); - if (selection && EXTRACT_DETAIL_FIELDS.includes(selection)) active.add(selection); - else if (!selection || !EXTRACT_BOUNDARIES.includes(selection)) { - for (const field of EXTRACT_DETAIL_FIELDS) active.add(field); - } - } - return { inactive: new Set([...ALL_VIDEO_FIELDS].filter((field) => !active.has(field))) }; - } - return undefined; -} diff --git a/src/workflow/builtinUtilityOperationPresentation.ts b/src/workflow/builtinUtilityOperationPresentation.ts new file mode 100644 index 00000000..361617dd --- /dev/null +++ b/src/workflow/builtinUtilityOperationPresentation.ts @@ -0,0 +1,83 @@ +import type { NodeParams } from '../stores/useNodeStore'; + +const EXTRACT_DETAIL_FIELDS = ['indices', 'timecodes', 'every_n']; +const EXTRACT_BOUNDARIES = ['first', 'last', 'first_last']; +const FILTER_TYPES = [ + 'gaussian_blur', + 'box_blur', + 'sharpen', + 'unsharp_mask', + 'glow', + 'film_grain', + 'chromatic_aberration', +]; +const FIELDS_BY_UTILITY: Record> = { + 'modules.Audio.ProcessAudio': { + audio_trim: ['start_seconds', 'duration_seconds', 'target_sample_rate', 'normalize_peak'], + audio_join: ['reference', 'boundary_fade_seconds'], + audio_loudness_match: ['reference', 'reference_window_seconds', 'target_peak_dbfs', 'max_adjustment_db'], + }, + 'modules.Video.ProcessVideo': { + video_frame_extract: ['selection_mode', 'images', 'selected_indices', 'timestamps', ...EXTRACT_DETAIL_FIELDS], + frame_interpolation: ['interpolation_fps', 'video'], + video_stitch: ['transition_seconds', 'video'], + video_trim: ['start_seconds', 'end_seconds', 'video'], + video_reverse: ['video'], + video_tile: ['columns', 'sync', 'gap', 'background', 'video'], + }, + 'modules.ImageOperations.ProcessImage': { + image_adjustment: ['brightness', 'contrast', 'saturation', 'sharpness', 'gamma', 'temperature', 'tint'], + image_filter: ['filter_operation', 'amount', 'threshold', 'seed'], + image_crop: ['x', 'y', 'width', 'height'], + image_upscale: ['resize_width', 'resize_height', 'resize_fit_mode', 'resize_resampling'], + image_stitch: ['stitch_columns', 'stitch_spacing', 'stitch_background', 'stitch_match_size'], + image_tile: ['rows', 'columns'], + image_channels: ['channel'], + mask_composite: ['mask', 'composite_mask_channel', 'composite_invert_mask'], + }, + 'modules.Text.ProcessText': { + text_select: ['index', 'selection_mode', 'ignore_empty_lines', 'strip_line'], + data_conversion: ['target_type'], + graph_utility: ['alternate_source', 'condition'], + }, +}; + +function savedSelector(field: NodeParams | undefined) { + if (field?.isConnected) return undefined; + const value = field?.value ?? field?.default; + return typeof value === 'string' ? value : undefined; +} + +/** Filter only the ordinary utility presentation. Keep saved settings and handle IDs available. */ +export function builtinUtilityOperationPresentation(identity: string, params: Record) { + if (!Object.prototype.hasOwnProperty.call(FIELDS_BY_UTILITY, identity)) return undefined; + const fields = FIELDS_BY_UTILITY[identity]!; + const operation = savedSelector(params.operation); + if (!operation || !Object.prototype.hasOwnProperty.call(fields, operation)) return undefined; + const active = new Set(fields[operation]); + + if (operation === 'video_frame_extract') { + const selection = savedSelector(params.selection_mode); + if (selection && [...EXTRACT_DETAIL_FIELDS, ...EXTRACT_BOUNDARIES].includes(selection)) { + for (const field of EXTRACT_DETAIL_FIELDS) { + if (field !== selection) active.delete(field); + } + } + } + if (operation === 'image_filter') { + const filter = savedSelector(params.filter_operation); + if (filter && FILTER_TYPES.includes(filter)) { + if (filter !== 'unsharp_mask') active.delete('threshold'); + if (filter !== 'film_grain') active.delete('seed'); + } + } + const inactive = new Set( + Object.values(fields) + .flat() + .filter((field) => !active.has(field)), + ); + // The saved generic FPS value is unused. Frame extraction reads the source FPS, + // and interpolation exposes its own target FPS. + if (identity === 'modules.Video.ProcessVideo') inactive.add('fps'); + return { inactive, continuation: operation === 'audio_join' }; +} diff --git a/tests/e2e/studio-mocked/studio-mocked.spec.ts b/tests/e2e/studio-mocked/studio-mocked.spec.ts index ef7909ed..cf051fd6 100644 --- a/tests/e2e/studio-mocked/studio-mocked.spec.ts +++ b/tests/e2e/studio-mocked/studio-mocked.spec.ts @@ -1019,8 +1019,11 @@ test('late-loaded media input previews retain arranged geometry and reachable co expect(graphPosts).toBe(0); }); -test('media utility controls follow the selected operation without losing saved values or wires', async ({ page }) => { - const { registry } = await generateTemplateSchemas([]); +let utilitySchemaFixture: Promise | undefined; + +async function openUtilityTestCanvas(page: Page) { + utilitySchemaFixture ??= generateTemplateSchemas([]); + const { registry } = await utilitySchemaFixture; await ensureFrontend(); await installMockRoutes(page); await page.route('**/media/preview?**', (route) => route.fulfill({ contentType: 'video/mp4', body: '' })); @@ -1030,6 +1033,20 @@ test('media utility controls follow the selected operation without losing saved await page.goto(FRONTEND_URL, { waitUntil: 'domcontentloaded' }); await page.waitForFunction(() => Boolean(window.__MODIFF_E2E__?.getState().studio.workflowCanvasHydrated)); await dismissTaskLauncher(page); + return registry; +} + +function utilityField(node: Locator, key: string) { + return node.locator(`[data-key="${key}"]`); +} + +async function chooseUtilityOption(page: Page, node: Locator, key: string, option: string) { + await utilityField(node, key).getByRole('button').click(); + await page.getByRole('option', { name: option, exact: true }).click(); +} + +test('media utility controls follow the selected operation without losing saved values or wires', async ({ page }) => { + const registry = await openUtilityTestCanvas(page); const prepared = await page.evaluate(async (registry) => { const [{ createNodeFromRegistry }, { getFormDefaultsForMode }, { buildWorkflowPackage }] = await Promise.all([ import('/src/workflow/nodeFactory.ts'), @@ -1068,11 +1085,8 @@ test('media utility controls follow the selected operation without losing saved await expect(page.getByRole('dialog', { name: 'Output Gallery', exact: true })).toBeHidden(); const audio = page.locator(`.react-flow__node[data-id="${prepared.audioId}"]`); const video = page.locator(`.react-flow__node[data-id="${prepared.videoId}"]`); - const field = (node: Locator, key: string) => node.locator(`[data-key="${key}"]`); - const choose = async (node: Locator, key: string, option: string) => { - await field(node, key).getByRole('button').click(); - await page.getByRole('option', { name: option, exact: true }).click(); - }; + const field = utilityField; + const choose = (node: Locator, key: string, option: string) => chooseUtilityOption(page, node, key, option); const read = () => page.evaluate(() => window.__MODIFF_E2E__!.exportWorkflowGraph()); await expect(field(audio, 'start_seconds')).toBeHidden(); @@ -1117,6 +1131,71 @@ test('media utility controls follow the selected operation without losing saved await expect(field(video, 'start_seconds').locator('input')).toHaveValue(/^3\.250*$/u); }); +test('image and text utilities show controls for the effective action', async ({ page }) => { + await page.setViewportSize({ width: 1560, height: 920 }); + const registry = await openUtilityTestCanvas(page); + const prepared = await page.evaluate(async (registry) => { + const [{ createNodeFromRegistry }, { getFormDefaultsForMode }, { buildWorkflowPackage }] = await Promise.all([ + import('/src/workflow/nodeFactory.ts'), + import('/src/studio/modelProfiles.ts'), + import('/src/studio/workflowPackage.ts'), + ]); + const image = createNodeFromRegistry('modules.ImageOperations.ProcessImage', registry, { x: 0, y: 0 })!; + const text = createNodeFromRegistry('modules.Text.ProcessText', registry, { x: 470, y: 0 })!; + image.data.params.operation!.value = 'image_crop'; + image.data.params.x!.value = 7; + text.data.params.operation!.value = 'data_conversion'; + text.data.params.target_type!.value = 'float'; + text.data.params.alternate_source!.value = 'Saved alternate branch.'; + const packageData = buildWorkflowPackage({ + form: getFormDefaultsForMode('image_crop', 'BuiltinImageOperation'), + graph: { nodes: [image, text], edges: [] }, + }); + return { packageData, imageId: image.id, textId: text.id }; + }, registry); + await page.getByTestId('topbar-gallery').click(); + await page.getByTestId('gallery-import-workflow-input').setInputFiles({ + name: 'image-text-utilities.workflow.json', + mimeType: 'application/json', + buffer: Buffer.from(JSON.stringify(prepared.packageData)), + }); + await expect(page.getByRole('dialog', { name: 'Output Gallery', exact: true })).toBeHidden(); + const image = page.locator(`.react-flow__node[data-id="${prepared.imageId}"]`); + const text = page.locator(`.react-flow__node[data-id="${prepared.textId}"]`); + const choose = (node: Locator, key: string, option: string) => chooseUtilityOption(page, node, key, option); + + await expect(utilityField(image, 'brightness')).toBeHidden(); + await expect(utilityField(image, 'x').locator('input')).toHaveValue('7'); + await expect(utilityField(image, 'mask')).toBeHidden(); + await choose(image, 'operation', 'image_filter'); + await expect(utilityField(image, 'amount')).toBeVisible(); + await expect(utilityField(image, 'seed')).toBeHidden(); + await expect(utilityField(image, 'threshold')).toBeHidden(); + await choose(image, 'filter_operation', 'unsharp_mask'); + await expect(utilityField(image, 'threshold')).toBeVisible(); + await choose(image, 'filter_operation', 'film_grain'); + await expect(utilityField(image, 'threshold')).toBeHidden(); + await expect(utilityField(image, 'seed')).toBeVisible(); + await choose(image, 'operation', 'mask_composite'); + await expect(utilityField(image, 'mask')).toBeVisible(); + await expect(utilityField(image, 'filter_operation')).toBeHidden(); + await choose(image, 'operation', 'image_crop'); + await expect(utilityField(image, 'x').locator('input')).toHaveValue('7'); + + await expect(utilityField(text, 'target_type')).toContainText('Float'); + await expect(utilityField(text, 'index')).toBeHidden(); + await expect(utilityField(text, 'alternate_source')).toBeHidden(); + await choose(text, 'operation', 'Select Text Branch'); + await expect(utilityField(text, 'alternate_source').locator('textarea')).toHaveValue('Saved alternate branch.'); + await expect(utilityField(text, 'condition')).toBeVisible(); + await expect(utilityField(text, 'target_type')).toBeHidden(); + await choose(text, 'operation', 'Select Line'); + await expect(utilityField(text, 'index')).toBeVisible(); + await expect(utilityField(text, 'alternate_source')).toBeHidden(); + await choose(text, 'operation', 'Convert Data'); + await expect(utilityField(text, 'target_type')).toContainText('Float'); +}); + test('renamed declared video output stays runnable after ordinary import Save and reload', async ({ page }) => { const fixture = await generateTemplateSchemas([]); await ensureFrontend(); From 1dcce51ed3c81a29de039e26c76e4be8f2912a9f Mon Sep 17 00:00:00 2001 From: Sourav Das Date: Sat, 21 Nov 2026 20:08:50 +0530 Subject: [PATCH 300/440] Show single Cosmos decoding operations as stages --- docs/modiff-client-architecture.md | 7 +++ .../registered-block-v2-route-audit.test.mjs | 47 ++++++++++++++++ src/components/ProjectedBlockNodeV2.tsx | 12 +++-- src/components/SelectionToolbar.tsx | 14 ++--- src/studio/blockRuntimeV2.ts | 54 ++++++++++++++++++- 5 files changed, 122 insertions(+), 12 deletions(-) diff --git a/docs/modiff-client-architecture.md b/docs/modiff-client-architecture.md index a89d0e30..d5d29b68 100644 --- a/docs/modiff-client-architecture.md +++ b/docs/modiff-client-architecture.md @@ -1964,6 +1964,13 @@ labels are presentation defaults for the exact registered output descriptors. Editing a port label overrides the default. The displayed name leaves the saved identifier, type, binding and definition hash intact. +The four registered Cosmos 3 Omni routes whose standard decode container +has exactly one decoder display an ordinary Decode Latents stage. The stage +projects every decoder socket, including the unwired Latents and Output Type +inputs. Inspect Implementation shows the original decoder. Audio branches +and customized container interfaces retain their own expandable views. The +projection leaves the stored hierarchy and execution graph intact. + Running from a generic User Node root resolves to a terminal media preview inside that specific expanded instance (or its first terminal node when it has no media preview). Both the store export and run coordinator use this diff --git a/scripts/registered-block-v2-route-audit.test.mjs b/scripts/registered-block-v2-route-audit.test.mjs index 092cf0a2..5a8d361e 100644 --- a/scripts/registered-block-v2-route-audit.test.mjs +++ b/scripts/registered-block-v2-route-audit.test.mjs @@ -1760,6 +1760,53 @@ test('every explicitly routed admission is an exact backend schema-v6 compiler s assert.equal(JSON.stringify(instance), saved, catalogId); } + for (const workflow of ['image2video', 'text2image', 'text2video', 'video2video', 'text2video_with_sound']) { + const catalogId = `diffusers.modular:Cosmos3OmniModularPipeline:${workflow}`; + const result = [...compilerSuccesses.values()].find(({ definition }) => definition.id === catalogId); + assert.ok(result, catalogId); + const instance = result.compiledInstance; + const wrapperId = 'container:decode/standard'; + if (workflow === 'text2video_with_sound') { + assert.equal(runtime.projectedStageKindV2(instance, wrapperId), null, catalogId); + continue; + } + const expanded = runtime.setBlockPresentationV2(instance, { + expanded: true, + collapsedContainerNodeIds: instance.presentation.collapsedContainerNodeIds.filter( + (id) => id !== 'container:decode', + ), + }); + const projection = runtime.materializeBlockProjectionV2(runtime.createBlockRootNodeV2(expanded)); + const wrapper = projection.nodes.find((node) => node.data.blockProjectionNodeId === wrapperId); + assert.ok(wrapper, catalogId); + assert.equal(runtime.projectedStageKindV2(expanded, wrapperId), 'decode', catalogId); + assert.equal(wrapper.data.blockProjectionContainerExpanded, false, catalogId); + assert.equal( + projection.nodes.some((node) => node.data.blockProjectionNodeId === 'decode'), + false, + catalogId, + ); + const sockets = Object.entries(wrapper.data.params).map(([handle, field]) => [ + runtime.blockProjectionConnectionEndpointV2(wrapper, handle, field.display)?.fieldOrPortId, + field.display, + field.type, + ]); + assert.deepEqual( + sockets.sort(), + [ + ['latents', 'input', 'latent'], + ['output_type', 'input', 'string'], + ['state_in', 'input', 'modular_workflow_state'], + ['state_out', 'output', 'modular_workflow_state'], + ['videos', 'output', workflow === 'text2image' ? 'image' : 'video'], + ].sort(), + catalogId, + ); + assert.deepEqual(runtime.blockOperationGraphV2(expanded), runtime.blockOperationGraphV2(instance), catalogId); + assert.deepEqual(expanded.definitionSnapshot, instance.definitionSnapshot, catalogId); + assert.deepEqual(expanded.effectiveGraph, instance.effectiveGraph, catalogId); + } + const qwenDefinition = snapshot.library.definitions.find( (definition) => definition.id === 'diffusers.modular:QwenImageModularPipeline:text2image', ); diff --git a/src/components/ProjectedBlockNodeV2.tsx b/src/components/ProjectedBlockNodeV2.tsx index d41414d6..4d6aea75 100644 --- a/src/components/ProjectedBlockNodeV2.tsx +++ b/src/components/ProjectedBlockNodeV2.tsx @@ -8,7 +8,7 @@ import { modiffLayout } from '../theme'; import { BlockNodeFrame, ModiffIconButton } from '../ui'; import { useNodeLayoutSync } from '../utils/useNodeLayoutSync'; import { syncManagedNodeControlChange } from '../studio/managedControlSync'; -import { blockContainerPreviewViewsV2, storyboardStageKindV2 } from '../studio/blockRuntimeV2'; +import { blockContainerPreviewViewsV2, projectedStageKindV2 } from '../studio/blockRuntimeV2'; import ErrorBoundary from './ErrorBoundary'; import NodeContent from './NodeContent'; import BlockSaveDialogV2 from './BlockSaveDialogV2'; @@ -46,14 +46,17 @@ const ProjectedBlockNodeV2 = memo((node: NodeProps) => { return state.nodes.find((candidate) => candidate.id === ownerId)?.data.blockInstanceV2; }); const ownerSourceKind = ownerInstance?.definitionSnapshot.source.kind; - const stageKind = storyboardStageKindV2(ownerInstance, node.data.blockProjectionNodeId); + const stageKind = projectedStageKindV2(ownerInstance, node.data.blockProjectionNodeId); const params = useMemo(() => { if (!ownerInstance || !node.data.blockProjectionNodeId) return node.data.params; const previews = blockContainerPreviewViewsV2(ownerInstance, node.data.blockProjectionNodeId); if (!previews.length) return node.data.params; return Object.assign({ ...node.data.params }, ...previews.map((preview) => preview.params)); }, [node.data.params, node.data.blockProjectionNodeId, ownerInstance]); - const label = node.data.label || node.data.action || node.data.blockProjectionNodeId || 'Modular Diffusers Block'; + const label = + stageKind === 'decode' + ? 'Decode Latents' + : node.data.label || node.data.action || node.data.blockProjectionNodeId || 'Modular Diffusers Block'; const isContainer = node.data.blockProjectionContainer === true; const expanded = isContainer && node.data.blockProjectionContainerExpanded !== false; const childCount = node.data.blockProjectionChildCount ?? 0; @@ -253,8 +256,9 @@ const ProjectedBlockNodeV2 = memo((node: NodeProps) => { <> node.id === singleProjectedModular.data.blockProjectionOwnerId)?.data.blockInstanceV2, singleProjectedModular.data.blockProjectionNodeId, ), @@ -355,7 +355,7 @@ export function SelectionToolbar({ const handleToggleProjectedContainer = useCallback(() => { if ( - isShotStage || + isCompactStage || !singleProjectedModular?.data.blockProjectionContainer || !singleProjectedModular.data.blockProjectionOwnerId || !singleProjectedModular.data.blockProjectionNodeId @@ -366,7 +366,7 @@ export function SelectionToolbar({ singleProjectedModular.data.blockProjectionNodeId, ); useStudioStore.getState().saveActiveWorkflowTab(true); - }, [isShotStage, singleProjectedModular, toggleBlockContainerExpandedV2]); + }, [isCompactStage, singleProjectedModular, toggleBlockContainerExpandedV2]); const handleDuplicateNode = useCallback(() => { if (!singleActionNode) return; @@ -552,13 +552,13 @@ export function SelectionToolbar({ {singleProjectedModular && ( <> setSaveNodeId(singleProjectedModular.id)} data-testid="selection-toolbar-save-modular-subtree" > - {singleProjectedModular.data.blockProjectionContainer && !isShotStage ? ( + {singleProjectedModular.data.blockProjectionContainer && !isCompactStage ? ( node.nodeId === nodeId); + if (wrapper?.modularDiffusers?.blockClass !== 'Cosmos3DecodeStep' || wrapper.containerInterface) return null; + const parents = blockGraphParentIdsV2(graph); + const children = graph.nodes.filter((node) => parents.get(node.nodeId) === nodeId); + const decoder = children[0]; + if ( + children.length !== 1 || + !decoder || + decoder.nodeId !== 'decode' || + decoder.modularDiffusers?.blockClass !== 'Cosmos3VideoDecodeStep' || + decoder.containerInterface || + [...parents.values()].includes(decoder.nodeId) || + Object.values(sourceParams(decoder)).some((field) => !field.hidden && !connectorDirection(field)) + ) + return null; + return decoder; +} + +export function projectedStageKindV2(instance: BlockInstanceV2 | undefined, semanticNodeId: string | undefined) { + return instance && compactCosmosDecoderV2(instance, semanticNodeId) + ? 'decode' + : storyboardStageKindV2(instance, semanticNodeId); +} + function collapsedCanvasContainerIdsV2(instance: BlockInstanceV2) { const collapsed = new Set(instance.presentation.collapsedContainerNodeIds ?? []); if (instance.definitionSnapshot.source.provider === STORYBOARD_SHOT_PROVIDER) { @@ -1919,6 +1955,7 @@ function collapsedCanvasContainerIdsV2(instance: BlockInstanceV2) { if (storyboardStageKindV2(instance, node.nodeId)) collapsed.add(node.nodeId); } } + if (compactCosmosDecoderV2(instance, COSMOS_DECODE_WRAPPER_ID)) collapsed.add(COSMOS_DECODE_WRAPPER_ID); return collapsed; } @@ -2151,11 +2188,26 @@ function blockProjectionSurfaceV2(instance: BlockInstanceV2): BlockProjectionSur nodeId: port.binding.nodeId, fieldOrPortId: port.binding.fieldOrPortId, }; - const preferred = { label: port.label, valueType: port.valueType, required: port.required }; + const preferred = { + label: registeredOutputLabelV2(instance, port), + valueType: port.valueType, + required: port.required, + }; addEndpoint(endpoint, preferred); addEndpointToVisibleContainers(endpoint, preferred); }); + // This single-operation stage keeps every native socket, including optional + // sockets that do not participate in a default crossing connection. + const compactDecoder = compactCosmosDecoderV2(instance, COSMOS_DECODE_WRAPPER_ID); + if (compactDecoder && visibleNodeIds.has(COSMOS_DECODE_WRAPPER_ID)) { + for (const [fieldOrPortId, field] of Object.entries(sourceParams(compactDecoder))) { + const direction = connectorDirection(field); + if (!direction || field.hidden) continue; + addEndpointAtNode(COSMOS_DECODE_WRAPPER_ID, { direction, nodeId: compactDecoder.nodeId, fieldOrPortId }, {}); + } + } + // A nested Block's declared public sockets also remain available on its // unopened descendants. Do not leak a local interface into ancestors above // its owner or create any new wire while disclosing that interface. From 2964880b5a5ad16c6b020d4c387d2efc7b70b786 Mon Sep 17 00:00:00 2001 From: Sourav Das Date: Sat, 21 Nov 2026 20:25:09 +0530 Subject: [PATCH 301/440] Name utility choices by their user-facing actions --- scripts/node-presentation.test.mjs | 25 ++++++++ src/components/NodeContent.tsx | 13 +++- .../builtinUtilityOperationPresentation.ts | 60 ++++++++++++++++++- src/workflow/nodePresentation.ts | 1 + tests/e2e/studio-mocked/studio-mocked.spec.ts | 23 +++---- 5 files changed, 107 insertions(+), 15 deletions(-) diff --git a/scripts/node-presentation.test.mjs b/scripts/node-presentation.test.mjs index 22ac2acd..727fedfd 100644 --- a/scripts/node-presentation.test.mjs +++ b/scripts/node-presentation.test.mjs @@ -6,6 +6,7 @@ let server; let catalog; let browser; let presentation; +let utilityPresentation; let operationCatalog; const cases = [ ['ModularDiffusers', 'ModelsLoader', 'Load Models', 'Load Modular Components'], @@ -54,6 +55,7 @@ before(async () => { catalog = await server.ssrLoadModule('/src/studio/nodeCatalog.ts'); browser = await server.ssrLoadModule('/src/workflow/workflowTaskBrowser.ts'); presentation = await server.ssrLoadModule('/src/workflow/nodePresentation.ts'); + utilityPresentation = await server.ssrLoadModule('/src/workflow/builtinUtilityOperationPresentation.ts'); operationCatalog = await server.ssrLoadModule('/src/workflow/operationCatalog.ts'); }); after(async () => server?.close()); @@ -267,6 +269,29 @@ test('the reviewed Block placement helper stays resolvable but cannot be inserte assert.equal(catalog.nodeCatalogEntryMatchesView(custom, 'common'), true); }); +test('utility enum captions retain values, live status and authored labels', () => { + const descriptor = { + schemaVersion: 1, + value: 'audio_loudness_match', + label: 'audio_loudness_match', + compatibility: 'unknown', + availability: 'unavailable', + installationState: 'unavailable', + disabledReason: 'Retain this status', + }; + const custom = { ...descriptor, value: 'audio_join', label: 'My soundtrack join' }; + const options = ['audio_trim', descriptor, custom]; + assert.deepEqual( + utilityPresentation.builtinUtilityOptionPresentation('modules.Audio.ProcessAudio', 'operation', options), + [{ value: 'audio_trim', label: 'Trim Audio' }, { ...descriptor, label: 'Match Loudness' }, custom], + ); + assert.equal( + utilityPresentation.builtinUtilityOptionPresentation('custom.Audio.ProcessAudio', 'operation', options), + options, + ); + assert.equal(descriptor.label, descriptor.value); +}); + test('discoverability reflects the encoder role and both declared upscale media types', () => { const encoder = { ...node('ModularDiffusers', 'ImageEncode', 'Encode Image'), category: 'sampler' }; const upscaler = { diff --git a/src/components/NodeContent.tsx b/src/components/NodeContent.tsx index 106fbf58..d3808e91 100644 --- a/src/components/NodeContent.tsx +++ b/src/components/NodeContent.tsx @@ -34,7 +34,10 @@ import { operationOwnsModel } from '../workflow/operationContracts'; import { nodeFieldDisplayLabel } from '../workflow/nodePresentation'; import { fileBackedMediaPreviewUrl } from '../studio/outputUtils'; import { unresolvedSignalControls } from '../workflow/signalControlPresentation'; -import { builtinUtilityOperationPresentation } from '../workflow/builtinUtilityOperationPresentation'; +import { + builtinUtilityOperationPresentation, + builtinUtilityOptionPresentation, +} from '../workflow/builtinUtilityOperationPresentation'; import HandleField from '../fields/HandleField'; import InputField from '../fields/InputField'; @@ -237,8 +240,12 @@ const NodeContent = memo(function NodeContent({ module, key, display, - blockRuntimeOptionPresentation(data.options || [], key, data, graphNode, blockOwner, nodesRegistry) ?? - registeredRuntimeOptionPresentation(data.options || [], key, nodesRegistry[identity]?.params), + builtinUtilityOptionPresentation( + identity, + key, + blockRuntimeOptionPresentation(data.options || [], key, data, graphNode, blockOwner, nodesRegistry) ?? + registeredRuntimeOptionPresentation(data.options || [], key, nodesRegistry[identity]?.params), + ), ); const fieldType = getFieldType(display, dataType, options); // A managed model choice already resolves the repository, implementation diff --git a/src/workflow/builtinUtilityOperationPresentation.ts b/src/workflow/builtinUtilityOperationPresentation.ts index 361617dd..6fb7d659 100644 --- a/src/workflow/builtinUtilityOperationPresentation.ts +++ b/src/workflow/builtinUtilityOperationPresentation.ts @@ -1,4 +1,62 @@ -import type { NodeParams } from '../stores/useNodeStore'; +import { isOptionDescriptor } from '../studio/runtimeOptions'; +import type { NodeParamOptions, NodeParams } from '../stores/useNodeStore'; + +const UTILITY_OPTION_LABELS: Record>> = { + 'modules.Audio.ProcessAudio': { + operation: { audio_trim: 'Trim Audio', audio_join: 'Join Audio', audio_loudness_match: 'Match Loudness' }, + }, + 'modules.Video.ProcessVideo': { + operation: { + video_frame_extract: 'Extract Frames', + frame_interpolation: 'Interpolate Frames', + video_stitch: 'Stitch Clips', + video_trim: 'Trim Video', + video_reverse: 'Reverse Video', + video_tile: 'Tile Clips', + }, + selection_mode: { + first: 'First Frame', + last: 'Last Frame', + first_last: 'First and Last Frames', + indices: 'Frame Indices', + timecodes: 'Timecodes', + every_n: 'Every N Frames', + }, + }, + 'modules.ImageOperations.ProcessImage': { + operation: { + image_adjustment: 'Adjust Image', + image_filter: 'Filter Image', + image_crop: 'Crop Image', + image_upscale: 'Resize Image', + image_stitch: 'Stitch Images', + image_tile: 'Split into Tiles', + image_channels: 'Extract Channels', + mask_composite: 'Composite with Mask', + }, + filter_operation: { + gaussian_blur: 'Gaussian Blur', + box_blur: 'Box Blur', + sharpen: 'Sharpen', + unsharp_mask: 'Unsharp Mask', + glow: 'Glow', + film_grain: 'Film Grain', + chromatic_aberration: 'Chromatic Aberration', + }, + }, +}; + +/** Label stock enum values without replacing saved choices or authored option labels. */ +export function builtinUtilityOptionPresentation(identity: string, field: string, options: NodeParamOptions) { + const labels = UTILITY_OPTION_LABELS[identity]?.[field]; + if (!labels || !Array.isArray(options)) return options; + return options.map((option) => { + if (typeof option === 'string' && Object.hasOwn(labels, option)) return { value: option, label: labels[option] }; + if (isOptionDescriptor(option) && option.label === option.value && Object.hasOwn(labels, option.value)) + return { ...option, label: labels[option.value] }; + return option; + }); +} const EXTRACT_DETAIL_FIELDS = ['indices', 'timecodes', 'every_n']; const EXTRACT_BOUNDARIES = ['first', 'last', 'first_last']; diff --git a/src/workflow/nodePresentation.ts b/src/workflow/nodePresentation.ts index 7092830d..b7cd229e 100644 --- a/src/workflow/nodePresentation.ts +++ b/src/workflow/nodePresentation.ts @@ -206,6 +206,7 @@ const FIELD_PRESENTATIONS: Record Date: Sat, 21 Nov 2026 20:33:21 +0530 Subject: [PATCH 302/440] Keep utility captions compatible with the client type target --- src/workflow/builtinUtilityOperationPresentation.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/workflow/builtinUtilityOperationPresentation.ts b/src/workflow/builtinUtilityOperationPresentation.ts index 6fb7d659..969b8b23 100644 --- a/src/workflow/builtinUtilityOperationPresentation.ts +++ b/src/workflow/builtinUtilityOperationPresentation.ts @@ -50,9 +50,10 @@ const UTILITY_OPTION_LABELS: Record Object.prototype.hasOwnProperty.call(labels, value); return options.map((option) => { - if (typeof option === 'string' && Object.hasOwn(labels, option)) return { value: option, label: labels[option] }; - if (isOptionDescriptor(option) && option.label === option.value && Object.hasOwn(labels, option.value)) + if (typeof option === 'string' && hasLabel(option)) return { value: option, label: labels[option] }; + if (isOptionDescriptor(option) && option.label === option.value && hasLabel(option.value)) return { ...option, label: labels[option.value] }; return option; }); From 0a5f8f52b062df939cc61f1ada9ff8cc9a4c4147 Mon Sep 17 00:00:00 2001 From: Sourav Das Date: Sat, 21 Nov 2026 20:33:21 +0530 Subject: [PATCH 303/440] Clarify standalone filters and image controls --- scripts/node-presentation.test.mjs | 66 +++++++++++++++ .../builtinUtilityOperationPresentation.ts | 84 ++++++++++--------- src/workflow/nodePresentation.ts | 6 ++ .../live-backend/ordinary-node-labels.spec.ts | 83 ++++++++++++++++++ 4 files changed, 201 insertions(+), 38 deletions(-) diff --git a/scripts/node-presentation.test.mjs b/scripts/node-presentation.test.mjs index 727fedfd..361bc2e2 100644 --- a/scripts/node-presentation.test.mjs +++ b/scripts/node-presentation.test.mjs @@ -222,6 +222,10 @@ test('ordinary controls and sockets distinguish requested settings from supplied ['Image.Merge', 'image_to', 'Image To', 'Base image'], ['Image.Merge', 'output', 'Output', 'Composite image'], ['Image.ApplyMask', 'output', 'Output', 'Masked image'], + ['Image.Compare', 'image_1', 'Image From', 'Before image'], + ['Image.Compare', 'image_2', 'Image To', 'After image'], + ['Image.Preview', 'export', 'Export', 'Image indices'], + ['Video.FrameExtract', 'fps', 'FPS', 'Frame-list FPS'], ['VideoConditioning.FirstLastFrames', 'first', 'First', 'First frame'], ['VideoConditioning.FirstLastFrames', 'last', 'Last', 'Last frame'], ['VideoConditioning.FirstLastFrames', 'references', 'References', 'Frame pair'], @@ -292,6 +296,68 @@ test('utility enum captions retain values, live status and authored labels', () assert.equal(descriptor.label, descriptor.value); }); +test('direct and generic image filters keep only effective controls without replacing saved settings', () => { + const { builtinUtilityOperationPresentation, builtinUtilityOptionPresentation } = utilityPresentation; + const direct = 'modules.ImageOperations.FilterImage'; + const generic = 'modules.ImageOperations.ProcessImage'; + const params = { operation: { default: 'gaussian_blur' }, threshold: { value: 11 }, seed: { value: 23 } }; + const snapshot = structuredClone(params); + assert.deepEqual([...builtinUtilityOperationPresentation(direct, params).inactive].sort(), ['seed', 'threshold']); + for (const [filter, unavailable] of [ + ['unsharp_mask', 'seed'], + ['film_grain', 'threshold'], + ]) { + const directView = builtinUtilityOperationPresentation(direct, { ...params, operation: { value: filter } }); + const genericView = builtinUtilityOperationPresentation(generic, { + ...params, + operation: { value: 'image_filter' }, + filter_operation: { value: filter }, + }); + assert.deepEqual([...directView.inactive], [unavailable]); + assert.equal(genericView.inactive.has(unavailable), true); + assert.equal(genericView.inactive.has(unavailable === 'seed' ? 'threshold' : 'seed'), false); + } + assert.deepEqual( + [ + ...builtinUtilityOperationPresentation(direct, { operation: { value: 'gaussian_blur', isConnected: true } }) + .inactive, + ], + [], + ); + assert.equal(builtinUtilityOperationPresentation('custom.Custom.FilterImage', params), undefined); + assert.deepEqual(builtinUtilityOptionPresentation(direct, 'operation', ['gaussian_blur', 'film_grain']), [ + { value: 'gaussian_blur', label: 'Gaussian Blur' }, + { value: 'film_grain', label: 'Film Grain' }, + ]); + assert.deepEqual(params, snapshot); +}); + +test('direct frame extraction shows the selected timing input and preserves frame-list FPS', () => { + const { builtinUtilityOperationPresentation, builtinUtilityOptionPresentation } = utilityPresentation; + const action = 'modules.Video.FrameExtract'; + const params = { mode: { default: 'first_last' }, fps: { value: 24 }, timecodes: { value: '1.25' } }; + const before = structuredClone(params); + assert.deepEqual( + [...builtinUtilityOperationPresentation(action, params).inactive], + ['indices', 'timecodes', 'every_n'], + ); + for (const active of ['indices', 'timecodes', 'every_n']) { + const { inactive } = builtinUtilityOperationPresentation(action, { ...params, mode: { value: active } }); + assert.equal(inactive.size, 2); + assert.equal(inactive.has(active), false); + assert.equal(inactive.has('fps'), false); + } + assert.deepEqual( + [...builtinUtilityOperationPresentation(action, { mode: { value: 'timecodes', isConnected: true } }).inactive], + [], + ); + assert.deepEqual(builtinUtilityOptionPresentation(action, 'mode', ['first_last', 'timecodes']), [ + { value: 'first_last', label: 'First and Last Frames' }, + { value: 'timecodes', label: 'Timecodes' }, + ]); + assert.deepEqual(params, before); +}); + test('discoverability reflects the encoder role and both declared upscale media types', () => { const encoder = { ...node('ModularDiffusers', 'ImageEncode', 'Encode Image'), category: 'sampler' }; const upscaler = { diff --git a/src/workflow/builtinUtilityOperationPresentation.ts b/src/workflow/builtinUtilityOperationPresentation.ts index 969b8b23..3a0805b2 100644 --- a/src/workflow/builtinUtilityOperationPresentation.ts +++ b/src/workflow/builtinUtilityOperationPresentation.ts @@ -1,6 +1,27 @@ import { isOptionDescriptor } from '../studio/runtimeOptions'; import type { NodeParamOptions, NodeParams } from '../stores/useNodeStore'; +const DIRECT_IMAGE_FILTER = 'modules.ImageOperations.FilterImage'; +const DIRECT_FRAME_EXTRACT = 'modules.Video.FrameExtract'; +const FILTER_LABELS = { + gaussian_blur: 'Gaussian Blur', + box_blur: 'Box Blur', + sharpen: 'Sharpen', + unsharp_mask: 'Unsharp Mask', + glow: 'Glow', + film_grain: 'Film Grain', + chromatic_aberration: 'Chromatic Aberration', +}; + +const FRAME_SELECTION_LABELS = { + first: 'First Frame', + last: 'Last Frame', + first_last: 'First and Last Frames', + indices: 'Frame Indices', + timecodes: 'Timecodes', + every_n: 'Every N Frames', +}; + const UTILITY_OPTION_LABELS: Record>> = { 'modules.Audio.ProcessAudio': { operation: { audio_trim: 'Trim Audio', audio_join: 'Join Audio', audio_loudness_match: 'Match Loudness' }, @@ -14,14 +35,7 @@ const UTILITY_OPTION_LABELS: Record> = { 'modules.Audio.ProcessAudio': { audio_trim: ['start_seconds', 'duration_seconds', 'target_sample_rate', 'normalize_peak'], @@ -107,8 +105,27 @@ function savedSelector(field: NodeParams | undefined) { return typeof value === 'string' ? value : undefined; } +function inactiveFilterControls(filter: NodeParams | undefined) { + const value = savedSelector(filter); + if (!value || !Object.prototype.hasOwnProperty.call(FILTER_LABELS, value)) return []; + const inactive: string[] = []; + if (value !== 'unsharp_mask') inactive.push('threshold'); + if (value !== 'film_grain') inactive.push('seed'); + return inactive; +} + +function inactiveFrameSelectionControls(selection: NodeParams | undefined) { + const value = savedSelector(selection); + if (!value || !Object.prototype.hasOwnProperty.call(FRAME_SELECTION_LABELS, value)) return []; + return EXTRACT_DETAIL_FIELDS.filter((field) => field !== value); +} + /** Filter only the ordinary utility presentation. Keep saved settings and handle IDs available. */ export function builtinUtilityOperationPresentation(identity: string, params: Record) { + if (identity === DIRECT_IMAGE_FILTER) + return { inactive: new Set(inactiveFilterControls(params.operation)), continuation: false }; + if (identity === DIRECT_FRAME_EXTRACT) + return { inactive: new Set(inactiveFrameSelectionControls(params.mode)), continuation: false }; if (!Object.prototype.hasOwnProperty.call(FIELDS_BY_UTILITY, identity)) return undefined; const fields = FIELDS_BY_UTILITY[identity]!; const operation = savedSelector(params.operation); @@ -116,19 +133,10 @@ export function builtinUtilityOperationPresentation(identity: string, params: Re const active = new Set(fields[operation]); if (operation === 'video_frame_extract') { - const selection = savedSelector(params.selection_mode); - if (selection && [...EXTRACT_DETAIL_FIELDS, ...EXTRACT_BOUNDARIES].includes(selection)) { - for (const field of EXTRACT_DETAIL_FIELDS) { - if (field !== selection) active.delete(field); - } - } + for (const key of inactiveFrameSelectionControls(params.selection_mode)) active.delete(key); } if (operation === 'image_filter') { - const filter = savedSelector(params.filter_operation); - if (filter && FILTER_TYPES.includes(filter)) { - if (filter !== 'unsharp_mask') active.delete('threshold'); - if (filter !== 'film_grain') active.delete('seed'); - } + for (const key of inactiveFilterControls(params.filter_operation)) active.delete(key); } const inactive = new Set( Object.values(fields) diff --git a/src/workflow/nodePresentation.ts b/src/workflow/nodePresentation.ts index b7cd229e..7563a41c 100644 --- a/src/workflow/nodePresentation.ts +++ b/src/workflow/nodePresentation.ts @@ -164,6 +164,12 @@ const FIELD_PRESENTATIONS: Record { + await page.getByRole('checkbox', { name: 'Show implementation nodes', exact: true }).check(); + const preview = await insertNode(page, 'modules.Image.Preview'); + const indices = preview.locator('[data-key="export"]'); + await expect(indices.getByText('Image indices', { exact: true })).toBeVisible(); + const input = indices.getByRole('textbox'); + await input.fill('0,2'); + await input.press('Tab'); + await expect + .poll(() => page.evaluate(() => window.__MODIFF_E2E__!.exportWorkflowGraph().nodes[0]!.data.params.export?.value)) + .toBe('0,2'); + await preview.screenshot({ path: test.info().outputPath('preview-image-indices.png') }); + + await preview.getByText('Preview Image', { exact: true }).click(); + await page.keyboard.press('Delete'); + await expect(preview).toHaveCount(0); + + const filter = await insertNode(page, 'modules.ImageOperations.FilterImage'); + const operation = filter.locator('[data-key="operation"]').getByRole('button'); + const threshold = filter.locator('[data-key="threshold"]'); + const seed = filter.locator('[data-key="seed"]'); + const choose = async (name: string) => { + await operation.click(); + await page.getByRole('option', { name, exact: true }).click(); + }; + await expect(operation).toHaveText('Gaussian Blur'); + await expect(threshold).toBeHidden(); + await expect(seed).toBeHidden(); + await choose('Unsharp Mask'); + await expect(threshold).toBeVisible(); + await expect(seed).toBeHidden(); + await threshold.locator('input').fill('11'); + await threshold.locator('input').press('Tab'); + await choose('Film Grain'); + await expect(threshold).toBeHidden(); + await expect(seed).toBeVisible(); + await choose('Unsharp Mask'); + await expect(threshold.locator('input')).toHaveValue('11'); + const output = await page.evaluate(() => window.__MODIFF_E2E__!.exportWorkflowGraph()); + expect(output.nodes[0]?.data.action).toBe('FilterImage'); + expect(output.nodes[0]?.data.params.operation?.value).toBe('unsharp_mask'); + await filter.screenshot({ path: test.info().outputPath('filter-unsharp-controls.png') }); +}); + +test('standalone frame extraction shows the selected frame control and keeps frame-list FPS', async ({ page }) => { + await page.getByRole('checkbox', { name: 'Show implementation nodes', exact: true }).check(); + const card = await insertNode(page, 'modules.Video.FrameExtract'); + const mode = card.locator('[data-key="mode"]').getByRole('button'); + const indices = card.locator('[data-key="indices"]'); + const timecodes = card.locator('[data-key="timecodes"]'); + const interval = card.locator('[data-key="every_n"]'); + const fps = card.locator('[data-key="fps"]'); + await expect(mode).toHaveText('First and Last Frames'); + await expect(fps.getByText('Frame-list FPS', { exact: true })).toBeVisible(); + await expect(indices).toBeHidden(); + await expect(timecodes).toBeHidden(); + await expect(interval).toBeHidden(); + + const choose = async (name: string) => { + await mode.click(); + await page.getByRole('option', { name, exact: true }).click(); + }; + await choose('Timecodes'); + await expect(timecodes).toBeVisible(); + await expect(indices).toBeHidden(); + await expect(interval).toBeHidden(); + await timecodes.getByRole('textbox').fill('0.5'); + await timecodes.getByRole('textbox').press('Tab'); + await choose('Every N Frames'); + await expect(interval).toBeVisible(); + await expect(timecodes).toBeHidden(); + await expect(fps).toBeVisible(); + await choose('Timecodes'); + await expect(timecodes.getByRole('textbox')).toHaveValue('0.5'); + const output = await page.evaluate(() => window.__MODIFF_E2E__!.exportWorkflowGraph()); + expect(output.nodes[0]?.data.params.mode?.value).toBe('timecodes'); + expect(output.nodes[0]?.data.params.timecodes?.value).toBe('0.5'); + await card.screenshot({ path: test.info().outputPath('extract-frames-timecodes.png') }); +}); From 42bb2ccc851c88a8b076cf2f817c69264bd1b777 Mon Sep 17 00:00:00 2001 From: Sourav Das Date: Sat, 21 Nov 2026 20:36:48 +0530 Subject: [PATCH 304/440] Verify compiler helpers remain outside manual discovery --- scripts/hugging-face-node-library.test.mjs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/scripts/hugging-face-node-library.test.mjs b/scripts/hugging-face-node-library.test.mjs index 815c903a..e0ac9ed0 100644 --- a/scripts/hugging-face-node-library.test.mjs +++ b/scripts/hugging-face-node-library.test.mjs @@ -89,12 +89,14 @@ test('one common catalog includes generic nodes, utilities and custom nodes with for (const view of ['common', 'advanced', 'experimental', 'all']) assert.equal(matches(entry('modules.ModularDiffusers', action), view), true, action); } - for (const action of ['ReviewedModularWorkflowStep', 'WorkflowKrea2Denoise', 'DynamicBlockNode']) { + for (const action of ['WorkflowKrea2Denoise', 'DynamicBlockNode']) { assert.equal(matches(entry('modules.ModularDiffusers', action), 'common'), false); assert.equal(matches(entry('modules.ModularDiffusers', action), 'experimental'), false); assert.equal(matches(entry('modules.ModularDiffusers', action), 'advanced'), true); assert.equal(matches(entry('modules.ModularDiffusers', action), 'all'), true); } + for (const view of ['common', 'advanced', 'experimental', 'all']) + assert.equal(matches(entry('modules.ModularDiffusers', 'ReviewedModularWorkflowStep'), view), false); for (const module of ['modules.Primitive', 'modules.Text', 'custom.my_nodes']) assert.equal(matches(entry(module, 'TextValue'), 'common'), true); assert.equal(matches(entry('modules.Image', 'Preview'), 'common'), true); From 6881eda17d639dfbce9cb69a902fb100df8a4e05 Mon Sep 17 00:00:00 2001 From: Sourav Das Date: Sat, 21 Nov 2026 20:38:49 +0530 Subject: [PATCH 305/440] Show mode-specific video canvas controls --- .../builtinUtilityOperationPresentation.ts | 10 ++- tests/e2e/studio-mocked/studio-mocked.spec.ts | 78 +++++++++++++++++++ 2 files changed, 87 insertions(+), 1 deletion(-) diff --git a/src/workflow/builtinUtilityOperationPresentation.ts b/src/workflow/builtinUtilityOperationPresentation.ts index 3a0805b2..07bf94ab 100644 --- a/src/workflow/builtinUtilityOperationPresentation.ts +++ b/src/workflow/builtinUtilityOperationPresentation.ts @@ -37,6 +37,9 @@ const UTILITY_OPTION_LABELS: Record> = { video_reverse: ['video'], video_tile: ['columns', 'sync', 'gap', 'background', 'video'], }, + 'modules.VideoConditioning.OutpaintCanvas': { + expand: ['left', 'right', 'top', 'bottom', 'fill_color'], + prepared: ['prepared_mask_file', 'invert', 'threshold', 'grow_pixels'], + }, 'modules.ImageOperations.ProcessImage': { image_adjustment: ['brightness', 'contrast', 'saturation', 'sharpness', 'gamma', 'temperature', 'tint'], image_filter: ['filter_operation', 'amount', 'threshold', 'seed'], @@ -128,7 +135,8 @@ export function builtinUtilityOperationPresentation(identity: string, params: Re return { inactive: new Set(inactiveFrameSelectionControls(params.mode)), continuation: false }; if (!Object.prototype.hasOwnProperty.call(FIELDS_BY_UTILITY, identity)) return undefined; const fields = FIELDS_BY_UTILITY[identity]!; - const operation = savedSelector(params.operation); + const selector = identity === 'modules.VideoConditioning.OutpaintCanvas' ? params.preparation : params.operation; + const operation = savedSelector(selector); if (!operation || !Object.prototype.hasOwnProperty.call(fields, operation)) return undefined; const active = new Set(fields[operation]); diff --git a/tests/e2e/studio-mocked/studio-mocked.spec.ts b/tests/e2e/studio-mocked/studio-mocked.spec.ts index 7fbf582c..a7c1c1ec 100644 --- a/tests/e2e/studio-mocked/studio-mocked.spec.ts +++ b/tests/e2e/studio-mocked/studio-mocked.spec.ts @@ -1197,6 +1197,84 @@ test('image and text utilities show controls for the effective action', async ({ await expect(utilityField(text, 'target_type')).toContainText('Float'); }); +test('video canvas expansion needs only the source and preserves the prepared mask choice', async ({ page }) => { + await page.setViewportSize({ width: 1500, height: 900 }); + const registry = await openUtilityTestCanvas(page); + const prepared = await page.evaluate(async (registry) => { + const [{ createNodeFromRegistry }, { getFormDefaultsForMode }, { buildWorkflowPackage }] = await Promise.all([ + import('/src/workflow/nodeFactory.ts'), + import('/src/studio/modelProfiles.ts'), + import('/src/studio/workflowPackage.ts'), + ]); + const source = createNodeFromRegistry('modules.Video.Load', registry, { x: 0, y: 0 })!; + source.data.params.file!.value = ['@data/videos/source.mp4']; + const canvas = createNodeFromRegistry('modules.VideoConditioning.OutpaintCanvas', registry, { x: 470, y: 0 })!; + canvas.data.params.left!.value = 16; + // Exercise an older saved node through the live conditional declaration. + delete canvas.data.params.prepared_mask_file!.required; + delete canvas.data.params.prepared_mask_file!.requiredWhen; + const edge = { + id: 'source-to-canvas', + source: source.id, + sourceHandle: 'video', + target: canvas.id, + targetHandle: 'video', + }; + const packageData = buildWorkflowPackage({ + form: getFormDefaultsForMode('video_frame_extract', 'BuiltinVideoOperation'), + graph: { nodes: [source, canvas], edges: [edge] }, + }); + return { packageData, canvasId: canvas.id, edge }; + }, registry); + await page.getByTestId('topbar-gallery').click(); + await page.getByTestId('gallery-import-workflow-input').setInputFiles({ + name: 'video-canvas-expansion.workflow.json', + mimeType: 'application/json', + buffer: Buffer.from(JSON.stringify(prepared.packageData)), + }); + await expect(page.getByRole('dialog', { name: 'Output Gallery', exact: true })).toBeHidden(); + const canvas = page.locator(`.react-flow__node[data-id="${prepared.canvasId}"]`); + const maskEditor = utilityField(canvas, 'prepared_mask_file').filter({ has: page.locator('input[type="file"]') }); + const read = () => + page.evaluate(async (canvasId) => { + const [{ useFlowStore }, { useNodesStore }, { inspectRequiredGraphInputs }] = await Promise.all([ + import('/src/stores/useFlowStore.ts'), + import('/src/stores/useNodeStore.ts'), + import('/src/studio/requiredGraphInputs.ts'), + ]); + const { nodes, edges } = useFlowStore.getState(); + const definitions = useNodesStore.getState().nodesRegistry; + return { + missing: inspectRequiredGraphInputs(nodes, { nodes, edges }, definitions).map(({ fieldId }) => fieldId), + maskFile: nodes.find(({ id }) => id === canvasId)?.data.params.prepared_mask_file?.value, + sourceHandle: edges.find(({ target }) => target === canvasId)?.sourceHandle, + }; + }, prepared.canvasId); + + await expect(maskEditor).toBeHidden(); + await expect(utilityField(canvas, 'left').locator('input')).toHaveValue('16'); + expect((await read()).missing).toEqual([]); + await chooseUtilityOption(page, canvas, 'preparation', 'Use Prepared Mask'); + await expect(maskEditor).toBeVisible(); + await expect(utilityField(canvas, 'left')).toBeHidden(); + expect((await read()).missing).toEqual(['prepared_mask_file']); + + const maskPath = '@data/videos/prepared-mask.mp4'; + const maskInput = maskEditor.getByRole('textbox'); + await maskInput.fill(maskPath); + await maskInput.blur(); + expect((await read()).missing).toEqual([]); + await chooseUtilityOption(page, canvas, 'preparation', 'Expand Canvas'); + await expect(maskEditor).toBeHidden(); + await expect(utilityField(canvas, 'left').locator('input')).toHaveValue('16'); + expect(await read()).toMatchObject({ missing: [], maskFile: [maskPath], sourceHandle: prepared.edge.sourceHandle }); + await expect(page.getByTestId(`node-handle-${prepared.canvasId}-canvas`)).toBeVisible(); + await expect(page.getByTestId(`node-handle-${prepared.canvasId}-mask`)).toBeVisible(); + await chooseUtilityOption(page, canvas, 'preparation', 'Use Prepared Mask'); + await expect(maskInput).toHaveValue(maskPath); + expect((await read()).missing).toEqual([]); +}); + test('renamed declared video output stays runnable after ordinary import Save and reload', async ({ page }) => { const fixture = await generateTemplateSchemas([]); await ensureFrontend(); From ecdf33120a3961111ca17d770ae06cf01f439cf5 Mon Sep 17 00:00:00 2001 From: Sourav Das Date: Sat, 21 Nov 2026 20:45:41 +0530 Subject: [PATCH 306/440] Account for six explicit Helios media projections --- scripts/registered-block-v2-adapter.test.mjs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/registered-block-v2-adapter.test.mjs b/scripts/registered-block-v2-adapter.test.mjs index cc4ad5f6..1c7c788f 100644 --- a/scripts/registered-block-v2-adapter.test.mjs +++ b/scripts/registered-block-v2-adapter.test.mjs @@ -1077,7 +1077,7 @@ test('every reviewed direct-media projection is explicit and undeclared media ha .filter(({ mediaType }) => mediaType !== undefined) .map((binding) => ({ registeredRoute, binding })), ); - assert.equal(reviewedMediaBindings.length, 114); + assert.equal(reviewedMediaBindings.length, 120); assert.equal( reviewedMediaBindings.every(({ binding }) => binding.adaptation !== undefined), true, From 9ea162b1fd817e2bdb4a519daaad1d223858dff5 Mon Sep 17 00:00:00 2001 From: Sourav Das Date: Sat, 21 Nov 2026 20:53:32 +0530 Subject: [PATCH 307/440] Defer canvas media preview renderers --- src/components/NodeContent.tsx | 27 ++++++++++++++------------- vite.config.ts | 14 ++++++++++++++ 2 files changed, 28 insertions(+), 13 deletions(-) diff --git a/src/components/NodeContent.tsx b/src/components/NodeContent.tsx index d3808e91..417e50d4 100644 --- a/src/components/NodeContent.tsx +++ b/src/components/NodeContent.tsx @@ -54,14 +54,16 @@ import ModelSelectField from '../fields/ModelSelectField'; import LayerConfigField from '../fields/LayerConfigField'; import SelectDialogField from '../fields/SelectDialogField'; -import UITextField from '../fields/UITextField'; -import UIImageField from '../fields/UIImageField'; import UIButtonField from '../fields/UIButtonField'; import UILabelFieldField from '../fields/UILabelField'; import UIGroupField from '../fields/UIGroupField'; -import UIImagecompareField from '../fields/UIImagecompareField'; -const UIVideoField = lazy(() => import('../fields/UIVideoField')); -const UIAudioField = lazy(() => import('../fields/UIAudioField')); +const CANVAS_MEDIA_PREVIEWS = { + ui_image: { label: 'image', Field: lazy(() => import('../fields/UIImageField')) }, + ui_imagecompare: { label: 'image comparison', Field: lazy(() => import('../fields/UIImagecompareField')) }, + ui_video: { label: 'video', Field: lazy(() => import('../fields/UIVideoField')) }, + ui_audio: { label: 'audio', Field: lazy(() => import('../fields/UIAudioField')) }, + ui_text: { label: 'text', Field: lazy(() => import('../fields/UITextField')) }, +}; const SplineField = lazy(() => import('../fields/SplineField')); const LayoutConditioningField = lazy(() => import('../fields/LayoutConditioningField')); const PromptEnhancementControls = lazy(() => import('./PromptEnhancementControls')); @@ -681,11 +683,11 @@ const FieldMemo = memo((props: FieldProps) => { case 'selectdialog': return ; case 'ui_text': - return ; case 'ui_image': - return ; + case 'ui_imagecompare': case 'ui_video': - case 'ui_audio': + case 'ui_audio': { + const { label, Field } = CANVAS_MEDIA_PREVIEWS[props.fieldType]; return ( { >
} > - {props.fieldType === 'ui_audio' ? : } +
); + } case 'ui_button': return ; - case 'ui_imagecompare': - return ; case 'ui_label': return ; case 'ui_group': diff --git a/vite.config.ts b/vite.config.ts index 00906a4c..0b7ac78b 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -313,6 +313,20 @@ const baseConfig: UserConfig = { includeDependenciesRecursively: false, priority: 10, }, + { + // The canvas loads media preview fields on demand. Keep their + // shared dependencies separate from the viewer and export dialogs. + name: 'node-media-previews', + test: /\/src\/(?:fields\/(?:UIImageField|UIImagecompareField|UIVideoField|UIAudioField|UITextField|PreviewHistoryStrip|PreviewHistoryStripContent)\.tsx|utils\/mediaDownload\.ts|studio\/outputText\.ts)$/, + includeDependenciesRecursively: false, + priority: 10, + }, + { + name: 'media-viewer-tools', + test: /\/src\/(?:components\/(?:MediaViewerDialog|LightboxDialog|MediaExportDialog)\.tsx|studio\/mediaCapabilities\.ts)$/, + includeDependenciesRecursively: false, + priority: 10, + }, { // These planners already load on demand. Their shared graph and // schema vocabulary compresses once without making store or From 7ab58f26e5ec908e97f5e03c16b854235ba4d532 Mon Sep 17 00:00:00 2001 From: Sourav Das Date: Mon, 23 Nov 2026 12:17:38 +0530 Subject: [PATCH 308/440] Show generic processing stages first and fold owned media preparation --- AGENTS.md | 1 + docs/developer-first-node-ux.md | 7 +- docs/workflow-authoring-ux.md | 27 ++++- scripts/hugging-face-node-library.test.mjs | 22 +++- scripts/image-stage-groups.test.mjs | 58 ++++++++++ scripts/node-presentation.test.mjs | 6 +- src/components/NodeList.tsx | 19 ++-- src/components/NodeSearchDialog.tsx | 20 +++- src/studio/nodeCatalog.ts | 42 +++++-- src/workflow/nodeConnectionSearch.ts | 2 +- src/workflow/visualOperationGroups.ts | 106 +++++++++++------- tests/e2e/studio-mocked/studio-mocked.spec.ts | 8 ++ 12 files changed, 249 insertions(+), 69 deletions(-) diff --git a/AGENTS.md b/AGENTS.md index 8cbfa27d..7abdad82 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -34,6 +34,7 @@ These rules apply to Codex, Copilot-style agents, and any AI tool editing this r - Label ports by role, including Source, Mask, Control, and First or Last Frame. Show one editor per effective setting and retain the saved fallback when a typed connection supplies the value. Choose a shared default only after it works in both the fresh workflow and the corresponding saved workflow. - Resolve model variants that share a repository through the exact connected model and task declaration. Keep the canvas, restored workflow and saved output metadata consistent. - Test the canvas and the ordered executable graph separately. Compare controls, typed bindings, model switching, and save/reopen. A presentation-only change preserves the executable graph and reuses the original run evidence. +- Review the default blank-canvas picker separately from the execution registry. Start with generic stages and media processors. Keep specialist tools reachable by search, compatible wire or explicit implementation browsing. Compare the fresh template with its shipped Example and reopened execution graph. Check independent branches before folding preparation into a stage. ## Component Rules diff --git a/docs/developer-first-node-ux.md b/docs/developer-first-node-ux.md index d095c734..8d532333 100644 --- a/docs/developer-first-node-ux.md +++ b/docs/developer-first-node-ux.md @@ -94,9 +94,10 @@ minimal native image graph has five stages including Preview. The connected SDXL starter also exposes Guider and Layers, giving seven nodes with Preview; attaching an image adds Load Image and Image Encode, giving nine executable nodes. New eligible starters now present these as six and seven top-level nodes using -the visual groups below. It does not replace the execution graph. Model/catalog variants are not node -kinds. Isolated startup registered234 built-in definitions; the default public -palette showed63 entries, separately from121 upstream catalog entries. +the visual groups below. It does not replace the execution graph. The registry includes implementation actions and compatibility identities. +The common picker lists ordinary stages and media processors. Searching by name, +dragging from a compatible socket, or enabling implementation nodes reveals +specialists. The sidebar counts matching runtime nodes and catalog entries separately. ## Encode Inputs and Guidance diff --git a/docs/workflow-authoring-ux.md b/docs/workflow-authoring-ux.md index 464e2d7c..6a84b76a 100644 --- a/docs/workflow-authoring-ux.md +++ b/docs/workflow-authoring-ux.md @@ -3,6 +3,27 @@ Creator opens Templates. Developer opens Workflows. Both use the same editable nodes, Blocks, execution path and independent memory policy. +## Choose a node on an empty canvas + +Start with Process Image, Process Audio, Process Video or Process Text/Data for a +deterministic media operation. Select the operation on the card. For generation, +start from the task to get the connected model setup, inputs, generation and output +that its adapter supports. A mask, independent control source, optional upscale +or second soundtrack has its own editable connection. + +Search for a specialist such as Gaussian Blur or Decode Latents when you need +its precise controls or an intermediate result. Dragging from a port offers +compatible specialists. **Show implementation nodes** opens the broader library. +On an empty canvas, **Include catalog Blocks** adds prebuilt compositions to the +unfiltered picker. A matching name or compatible wire also finds them. Saved +Blocks stay accessible under their authored names. + +Fresh examples use one Video Input for a file and its normalization, including +when the prepared clip feeds an edge processor. Prepare Mask combines loading +and aligning a mask. Composite can include foreground sizing, padding and cropping. +A separately consumed intermediate remains accessible. Opening an existing user +document respects the presentation saved in that document. + ## Start a workflow In Developer, search for an action or filter by Image, Audio, Video, 3D, or Text & @@ -344,9 +365,9 @@ and approval; opening a picker or choosing Developer does not enable code. ## Names, examples and library Raw loaders use distinct names: **Load Image Pipeline**, **Load Audio Pipeline**, -**Load Modular Components**, and **Load Model Component**. Canonical workflows use -**Load Models**. Other corrected names include **Prepare Outpaint Canvas**, -**Generate Image with Control**, **Preview Latents**, and **Export Video Asset**. +**Load Modular Components**, and **Load Model Component**. Composable workflow +canvases present the loader and its settings as **Model Setup**. Other corrected names include **Prepare Outpaint Canvas**, +**Generate Image with Control**, **Preview 4-Channel Latent**, and **Export Video Asset**. Names are selected by execution identity, not guessed from class-name substrings. Serialized identities and custom titles are preserved; previous built-in labels remain searchable. diff --git a/scripts/hugging-face-node-library.test.mjs b/scripts/hugging-face-node-library.test.mjs index e0ac9ed0..2bbf5c9c 100644 --- a/scripts/hugging-face-node-library.test.mjs +++ b/scripts/hugging-face-node-library.test.mjs @@ -85,10 +85,23 @@ test('one common catalog includes generic nodes, utilities and custom nodes with const entry = (module, action, extra = {}) => nodeCatalogModule.getNodeCatalogEntry({ module, action, label: action, category: 'Test', params: {}, ...extra }); const matches = nodeCatalogModule.nodeCatalogEntryMatchesView; - for (const action of ['ModelsLoader', 'EncodePrompt', 'Denoise', 'DecodeLatents', 'ImageEncode']) { + for (const action of ['ModelsLoader', 'ImageEncode']) { for (const view of ['common', 'advanced', 'experimental', 'all']) assert.equal(matches(entry('modules.ModularDiffusers', action), view), true, action); } + for (const action of ['EncodePrompt', 'Denoise', 'DecodeLatents', 'Scheduler']) { + const item = entry('modules.ModularDiffusers', action); + assert.equal(matches(item, 'common'), false); + assert.equal(matches(item, 'common', true), true); + assert.equal(matches(item, 'advanced'), true); + } + for (const [module, action] of [ + ['modules.ImageOperations', 'ProcessImage'], + ['modules.Audio', 'ProcessAudio'], + ['modules.Video', 'ProcessVideo'], + ['modules.Text', 'ProcessText'], + ]) + assert.ok(matches(entry(module, action), 'common')); for (const action of ['WorkflowKrea2Denoise', 'DynamicBlockNode']) { assert.equal(matches(entry('modules.ModularDiffusers', action), 'common'), false); assert.equal(matches(entry('modules.ModularDiffusers', action), 'experimental'), false); @@ -106,7 +119,7 @@ test('one common catalog includes generic nodes, utilities and custom nodes with assert.equal(matches(entry('modules.Image', action, { type: 'group' }), 'common'), false); } for (const [module, actions] of [ - ['modules.ImageFilters', ['Canny', 'UnsharpMask', 'GuidedBlur', 'AdaptiveSharpening', 'GaussianBlur']], + ['modules.ImageFilters', ['Canny']], ['modules.Color', ['Invert']], ['modules.DiffusersImage', ['OutpaintCanvas']], ]) { @@ -116,6 +129,11 @@ test('one common catalog includes generic nodes, utilities and custom nodes with assert.equal(matches(entry(module, action, { type: 'group' }), 'common'), false); } } + for (const action of ['UnsharpMask', 'GuidedBlur', 'AdaptiveSharpening', 'GaussianBlur']) { + assert.equal(matches(entry('modules.ImageFilters', action), 'common'), false); + assert.ok(matches(entry('modules.ImageFilters', action), 'common', true)); + assert.ok(matches(entry('modules.ImageFilters', action), 'advanced')); + } assert.equal(matches(entry('modules.ImageFiltersExperimental', 'Canny'), 'common'), false); assert.equal(matches(entry('modules.DiffusersImage', 'UnreviewedInternal'), 'common'), false); for (const view of ['common', 'advanced', 'experimental', 'all']) diff --git a/scripts/image-stage-groups.test.mjs b/scripts/image-stage-groups.test.mjs index 9231cf3c..b189250d 100644 --- a/scripts/image-stage-groups.test.mjs +++ b/scripts/image-stage-groups.test.mjs @@ -1,5 +1,6 @@ import assert from 'node:assert/strict'; import { readFileSync } from 'node:fs'; +import { canonicalGraphIdentity } from './live-proof-provenance.mjs'; import path from 'node:path'; import { after, before, test } from 'node:test'; import { createServer } from 'vite'; @@ -56,6 +57,63 @@ test('whole-pipeline examples keep one-action generation on the ordinary node', } }); +test('bundled examples fold exclusively owned media preparation even when a processor consumes its result', async () => { + const backend = path.resolve(process.env.MODIFF_BACKEND_DIR || '../MoDiff', 'data/graphs'); + const { useFlowStore, normalizePersistedFlowState } = await server.ssrLoadModule('/src/stores/useFlowStore.ts'); + const exported = (sourceGraph) => + canonicalGraphIdentity( + useFlowStore.getState().exportGraph('stage-check', undefined, { sourceGraph, randomizeSeeds: false }), + ); + const cases = [ + ['studio/animate-diff-control-net-pipeline/control-to-video', 'videoInput', ['Load', 'Normalize']], + [ + 'studio/animate-diff-video-to-video-control-net-pipeline/control-video-to-video', + 'videoInput', + ['Load', 'Normalize'], + ], + ['studio/wan-vace-pipeline/video-inpaint', 'mask', ['AlignMask', 'Load']], + ...['flux3-distilled-modular-pipeline', 'flux3-modular-pipeline'].map((family) => [ + 'experimental/' + + family + + '/edit-image--flux3-klein-' + + (family.startsWith('flux3-distilled') ? '' : 'base-') + + 'fp8r512-multi-reference-edit', + 'composite', + ['Resize', 'Resize', 'Resize', 'CropImage', 'MaskComposite'], + ]), + ]; + for (const [file, kind, expected] of cases) { + const graph = JSON.parse(readFileSync(path.join(backend, file + '.json'), 'utf8')); + const before = structuredClone(graph); + const hasStage = (grouped) => + grouped.nodes.some( + (n) => + groups.visualOperationGroup(n) === kind && + JSON.stringify(n.data.blockInstanceV2.effectiveGraph.nodes.map((m) => m.data.action).sort()) === + JSON.stringify([...expected].sort()) && + (kind !== 'videoInput' || + n.data.blockInstanceV2.effectiveGraph.nodes.some((m) => m.data.studioRole === 'loadControlVideo')), + ); + const grouped = groups.groupNewOperationGraph(graph); + assert.ok(hasStage(grouped), file); + assert.deepEqual(exported(grouped), exported(graph), file); + assert.deepEqual(exported(normalizePersistedFlowState(structuredClone(grouped))), exported(graph), file); + assert.deepEqual(graph, before); + // A second consumer uses the unprepared input/foreground. Folding it would hide a real branch. + const member = graph.nodes.find((n) => + kind === 'composite' + ? n.data.action === 'CropImage' + : n.data.studioRole === (kind === 'mask' ? 'loadMaskVideo' : 'loadControlVideo'), + ); + const wire = graph.edges.find((e) => e.source === member.id); + const preview = structuredClone(graph.nodes.find((n) => n.id === wire.target)); + preview.id = 'independent-consumer'; + graph.nodes.push(preview); + graph.edges.push({ ...wire, id: 'extra-output-consumer', target: preview.id }); + assert.equal(hasStage(groups.groupNewOperationGraph(graph)), false, file); + } +}); + function ordinaryImage({ task = 'text_to_image', withGuidance = true } = {}) { const pipelineClass = 'FutureImagePipeline'; const field = (type, display, value) => ({ type, display, ...(value === undefined ? {} : { value }) }); diff --git a/scripts/node-presentation.test.mjs b/scripts/node-presentation.test.mjs index 361bc2e2..78d52345 100644 --- a/scripts/node-presentation.test.mjs +++ b/scripts/node-presentation.test.mjs @@ -202,7 +202,11 @@ test('common discovery shows ordinary image and video preparation but keeps nati for (const [module, action, category] of cases) { const entry = catalog.getNodeCatalogEntry(node(module, action, action)); assert.equal(entry.surfaceCategory, category); - assert.ok(catalog.nodeCatalogEntryMatchesView(entry, 'common')); + assert.equal( + catalog.nodeCatalogEntryMatchesView(entry, 'common'), + !['ControlEdit', 'ControlInpaint'].includes(action), + ); + assert.ok(catalog.nodeCatalogEntryMatchesView(entry, 'common', true)); assert.equal(entry.dragKey, `modules.${module}.${action}`); } for (const [module, action] of [ diff --git a/src/components/NodeList.tsx b/src/components/NodeList.tsx index 00851bab..6fe0364b 100644 --- a/src/components/NodeList.tsx +++ b/src/components/NodeList.tsx @@ -160,18 +160,17 @@ function NodeList() { [allHuggingFaceSections, search, effectiveCatalogView], ); const huggingFaceCatalogCount = useMemo( - () => - filterHuggingFaceCatalogSections(allHuggingFaceSections, '', effectiveCatalogView).reduce( - (total, section) => total + section.entries.length, - 0, - ), - [allHuggingFaceSections, effectiveCatalogView], + () => huggingFaceSections.reduce((total, section) => total + section.entries.length, 0), + [huggingFaceSections], ); const runtimeNodeCount = useMemo( () => - nodeCatalogEntries(catalogNodes).filter((entry) => nodeCatalogEntryMatchesView(entry, effectiveCatalogView)) - .length, - [catalogNodes, effectiveCatalogView], + nodeCatalogEntries(catalogNodes).filter( + (entry) => + nodeCatalogEntryMatchesView(entry, effectiveCatalogView, Boolean(search.trim())) && + nodeCatalogEntryMatchesSearch(entry, search), + ).length, + [catalogNodes, effectiveCatalogView, search], ); const handleInsertUserBlock = useCallback( @@ -994,7 +993,7 @@ function NodeGroupList({ const groups = useMemo(() => { return nodeCatalogEntries(nodes) - .filter((entry) => nodeCatalogEntryMatchesView(entry, view)) + .filter((entry) => nodeCatalogEntryMatchesView(entry, view, Boolean(search.trim()))) .filter((entry) => nodeCatalogEntryMatchesSearch(entry, search)) .reduce( (acc, entry) => { diff --git a/src/components/NodeSearchDialog.tsx b/src/components/NodeSearchDialog.tsx index 647863b8..7ad4ff8e 100644 --- a/src/components/NodeSearchDialog.tsx +++ b/src/components/NodeSearchDialog.tsx @@ -81,6 +81,7 @@ const NodeSearchDialog = ({ const [selectedIndex, setSelectedIndex] = useState(0); const [builtInOpen, setBuiltInOpen] = useState(true); const [customOpen, setCustomOpen] = useState(true); + const [browseBlocks, setBrowseBlocks] = useState(false); const [allowUnverified, setAllowUnverified] = useState(false); const inputRef = useRef(null); const blocks = useUserBlockStore((state) => state.blocks); @@ -158,6 +159,7 @@ const NodeSearchDialog = ({ () => runtimeCatalogNodes(nodes, operations, support, view, { pipeline, task }), [nodes, operations, support, view, pipeline, task], ); + const browsingCommon = (view === 'common' || view === 'experimental') && !handleType && !searchQuery.trim(); const filteredNodes = useMemo(() => { const entries = [ ...operationSearchEntries( @@ -183,7 +185,11 @@ const NodeSearchDialog = ({ label: nodeDisplayLabel(node), }), ), - ...catalogEntries.map((catalog) => ({ key: `catalog:${catalog.id}`, label: catalog.label, catalog })), + ...(browsingCommon && !browseBlocks ? [] : catalogEntries).map((catalog) => ({ + key: `catalog:${catalog.id}`, + label: catalog.label, + catalog, + })), ...savedEntries .filter( ({ block, node }) => @@ -205,6 +211,8 @@ const NodeSearchDialog = ({ savedEntries, nodes, catalogEntries, + browsingCommon, + browseBlocks, origin, allowUnverified, ]); @@ -237,6 +245,7 @@ const NodeSearchDialog = ({ onClose(); setTimeout(() => { setSearchQuery(''); + setBrowseBlocks(false); setSelectedIndex(0); }, 0); }, [onClose]); @@ -409,6 +418,15 @@ const NodeSearchDialog = ({
+ {browsingCommon && catalogEntries.length > 0 ? ( +
+ +
+ ) : null} {resolutionError ? (

diff --git a/src/studio/nodeCatalog.ts b/src/studio/nodeCatalog.ts index bd02ec2c..bf02e9a3 100644 --- a/src/studio/nodeCatalog.ts +++ b/src/studio/nodeCatalog.ts @@ -83,8 +83,6 @@ const SURFACE_CATEGORY_ORDER: NodeSurfaceCategory[] = [ 'Utility', ]; -const MODEL_SPECIFIC_MODULES = new Set(); - // Discovery only: these existing generic operations keep their backend schemas // and execution identities. Inclusion does not add model/task support. const GENERIC_NODE_KEYS = new Set([ @@ -115,6 +113,9 @@ const GENERIC_NODE_KEYS = new Set([ ]); const GENERIC_NODE_ROLES: Readonly> = { + 'modules.ImageOperations.ProcessImage': 'Image', + 'modules.Audio.ProcessAudio': 'Audio', + 'modules.Video.ProcessVideo': 'Video', 'modules.DiffusersImage.LayerDecompose': 'Edit', 'modules.DiffusersImage.PredictMap': 'Condition', 'modules.ModularDiffusers.ImageEncode': 'Condition', @@ -124,12 +125,37 @@ const GENERIC_NODE_ROLES: Readonly> = { 'modules.VideoConditioning.EdgePreprocessor': 'Condition', }; -export function nodeCatalogEntryMatchesView(entry: NodeCatalogEntry, view: NodeCatalogView) { +// These public controls have an independent wiring use. Offer them on a +// relevant search or wire drag, and in the full implementation browser. +const SPECIALIST_ACTIONS = new Set([ + 'modules.ModularDiffusers.AutoModelLoader', + 'modules.ModularDiffusers.Denoise', + 'modules.ModularDiffusers.DecodeLatents', + 'modules.ModularDiffusers.EncodePrompt', + 'modules.ModularDiffusers.ImageEmbeddings', + 'modules.ModularDiffusers.LatentsPreview', + 'modules.ModularDiffusers.QuantizationConfigNode', + 'modules.ModularDiffusers.Guider', + 'modules.ModularDiffusers.Scheduler', + 'modules.DiffusersImage.ControlGenerate', + 'modules.DiffusersImage.ControlEdit', + 'modules.DiffusersImage.ControlInpaint', + 'modules.DiffusersImage.UnconditionalGenerate', + 'modules.DiffusersAudio.SetAdapters', + 'modules.DiffusersAudio.FuseAdapters', + 'modules.DiffusersVideo.GenerateSequence', + 'modules.ImageFilters.GaussianBlur', + 'modules.ImageFilters.GuidedBlur', + 'modules.ImageFilters.UnsharpMask', + 'modules.ImageFilters.AdaptiveSharpening', +]); + +export function nodeCatalogEntryMatchesView(entry: NodeCatalogEntry, view: NodeCatalogView, targeted = false) { if (entry.visibility === 'internal') return false; if (entry.visibility === 'experimental') return view === 'experimental' || view === 'all'; + if (view === 'advanced' || view === 'all') return true; + if (SPECIALIST_ACTIONS.has(nodeKey(entry.node))) return targeted; return ( - view === 'advanced' || - view === 'all' || entry.visibility === 'essential' || GENERIC_NODE_KEYS.has(nodeKey(entry.node)) || entry.node.module === 'modules.Primitive' || @@ -142,6 +168,9 @@ export function nodeCatalogEntryMatchesView(entry: NodeCatalogEntry, view: NodeC } const ESSENTIAL_NODE_KEYS = new Set([ + 'modules.ImageOperations.ProcessImage', + 'modules.Video.ProcessVideo', + 'modules.Audio.ProcessAudio', 'modules.DiffusersImage.LoadPipeline', 'modules.DiffusersAudio.LoadPipeline', 'modules.DiffusersImage.Generate', @@ -208,7 +237,6 @@ function visibilityForNode(node: NodeData, key: string): NodeCatalogVisibility { if (nodeKey(node) === 'modules.ModularDiffusers.ReviewedModularWorkflowStep') return 'internal'; if (textIncludesAny(`${key} ${node.label}`, ['nunchaku', 'sd3', 'deprecated'])) return 'experimental'; if (ESSENTIAL_NODE_KEYS.has(key)) return 'essential'; - if (MODEL_SPECIFIC_MODULES.has(node.module)) return 'advanced'; if (node.module === 'modules.ModularDiffusers') return 'advanced'; if (node.module === 'modules.ModelArtifact') return 'advanced'; if (node.module.startsWith('custom.')) return 'essential'; @@ -231,7 +259,7 @@ export function getNodeCatalogEntry(node: NodeData, key = nodeKey(node)): NodeCa const specializedReason = visibility === 'experimental' ? 'Experimental Diffusers node. Enable experimental discovery to find it.' - : MODEL_SPECIFIC_MODULES.has(node.module) || node.module === 'modules.ModularDiffusers' + : node.module === 'modules.ModularDiffusers' ? 'Backend strategy node. Studio routes normal workflows through profiles.' : undefined; diff --git a/src/workflow/nodeConnectionSearch.ts b/src/workflow/nodeConnectionSearch.ts index a3b83eab..89533ae5 100644 --- a/src/workflow/nodeConnectionSearch.ts +++ b/src/workflow/nodeConnectionSearch.ts @@ -41,7 +41,7 @@ export function connectionSearchEntries( allowUnverified = false, ): [string, NodeData][] { return nodeCatalogEntries(registry) - .filter((entry) => nodeCatalogEntryMatchesView(entry, view)) + .filter((entry) => nodeCatalogEntryMatchesView(entry, view, Boolean(handleType || search.trim()))) .filter((entry) => nodeCatalogEntryMatchesSearch(entry, search)) .filter( (entry) => !handleType || matchingNodeHandleForDrop(entry.node, dataType, handleType, origin, allowUnverified), diff --git a/src/workflow/visualOperationGroups.ts b/src/workflow/visualOperationGroups.ts index 05590b46..2b07a7ba 100644 --- a/src/workflow/visualOperationGroups.ts +++ b/src/workflow/visualOperationGroups.ts @@ -22,7 +22,7 @@ import { declaredImagePipelineStageTail, operationScope } from './operationScope import { operationOwnsModel } from './operationContracts'; import { remapOperationAuthoring } from './operationSharedInputs'; import { workflowTaskCategory } from './workflowTaskBrowser'; -import { connectionTypesAreCompatible } from '../theme/connectionTypeCompatibility'; +import { connectionTypes, connectionTypesAreCompatible } from '../theme/connectionTypeCompatibility'; import { hasInlineScalarControl } from '../studio/inlineScalarControl'; import { nodeConnectorParam } from '../studio/nodeConnectorResolution'; import { groupStoryboardShots } from './storyboardShotPresentation'; @@ -1243,6 +1243,69 @@ export function groupOperationStages( return next; } +/** Only fold preparation whose intermediate result belongs to one downstream step. */ +function exclusiveMediaSupplier( + graph: OperationGraph, + target: CustomNodeType, + input: string, + output: string, + type: 'image' | 'video', +) { + const wires = graph.edges.filter((edge) => edge.target === target.id && edge.targetHandle === input); + const wire = wires[0]; + if (wires.length !== 1 || wire?.sourceHandle !== output) return; + const source = graph.nodes.find((node) => node.id === wire.source); + const field = target.data.params[input]; + if ( + !source || + source.parentId || + source.data.blockInstanceV2 || + source.data.blockProjectionOwnerId || + source.data.params[output]?.display !== 'output' || + source.data.params[output]?.type !== type || + !field || + !(field.display === 'input' || field.isInput) || + !connectionTypes(field.type).includes(type) || + graph.edges.some((edge) => edge.source === source.id && edge !== wire) + ) + return; + return source; +} + +function groupMediaPreparation(graph: OperationGraph) { + let next = graph; + for (const end of graph.nodes) { + if (end.parentId || end.data.blockInstanceV2 || end.data.blockProjectionOwnerId) continue; + const key = nodeKey(end); + if (key === 'modules.ImageOperations.MaskComposite') { + const members = [end.id]; + let source = exclusiveMediaSupplier(next, end, 'foreground', 'output', 'image'); + while ( + source && + !members.includes(source.id) && + ['modules.Image.Resize', 'modules.ImageOperations.CropImage'].includes(nodeKey(source)) + ) { + members.push(source.id); + source = exclusiveMediaSupplier(next, source, 'image', 'output', 'image'); + } + if (members.length > 1) next = groupVisualStages(next, members, 'composite'); + continue; + } + const mask = key === 'modules.VideoConditioning.AlignMask'; + if (!mask && key !== 'modules.VideoConditioning.Normalize') continue; + const loader = exclusiveMediaSupplier(next, end, mask ? 'mask' : 'video', 'video', 'video'); + if (!loader || nodeKey(loader) !== 'modules.Video.Load') continue; + // A direct generator, an edge processor or another typed consumer may use the prepared clip. + const consumed = next.edges.some((edge) => { + if (edge.source !== end.id || edge.sourceHandle !== 'output') return false; + const field = next.nodes.find((node) => node.id === edge.target)?.data.params[edge.targetHandle ?? '']; + return field && (field.display === 'input' || field.isInput) && connectionTypes(field.type).includes('video'); + }); + if (consumed) next = groupVisualStages(next, [loader.id, end.id], mask ? 'mask' : 'videoInput'); + } + return next; +} + export function groupNewOperationGraph(graph: OperationGraph, options: { legacyStageOrder?: boolean } = {}) { // Existing decomposed template creators retain their historical traversal. // Fresh Example imports instead preserve the canonical source's own order. @@ -1287,46 +1350,7 @@ export function groupNewOperationGraph(graph: OperationGraph, options: { legacyS true, ) : groupOperationStages(next, owner.id); - // The same real input preparation can precede a whole native pipeline. - // Keep a separately consumed original clip external, with its own preview. - for (const prepare of [...next.nodes]) { - if ( - prepare.parentId || - prepare.data.blockInstanceV2 || - prepare.data.blockProjectionOwnerId || - nodeKey(prepare) !== 'modules.VideoConditioning.Normalize' - ) - continue; - const incoming = next.edges.filter((edge) => edge.target === prepare.id && edge.targetHandle === 'video'); - const wire = incoming[0]; - if (incoming.length !== 1 || wire?.sourceHandle !== 'video') continue; - const loader = next.nodes.find((node) => node.id === wire.source); - if ( - !loader || - loader.parentId || - loader.data.blockInstanceV2 || - loader.data.blockProjectionOwnerId || - nodeKey(loader) !== 'modules.Video.Load' || - next.edges.some((edge) => edge.source === loader.id && edge.target !== prepare.id) - ) - continue; - const consumers = next.edges.filter((edge) => edge.source === prepare.id && edge.sourceHandle === 'output'); - if ( - !consumers.length || - !consumers.some((edge) => { - const target = next.nodes.find((node) => node.id === edge.target); - const input = target?.data.params[edge.targetHandle ?? '']; - return ( - target?.data.module === 'modules.DiffusersVideo' && - ['Generate', 'GenerateVideoAudio'].includes(target.data.action) && - input?.type === 'video' && - (input.display === 'input' || input.isInput) - ); - }) - ) - continue; - next = groupVisualStages(next, [loader.id, prepare.id], 'videoInput'); - } + next = groupMediaPreparation(next); // Whole-pipeline paths already perform encoding/generation/decoding inside // their real native Generate operation. Fold only their actual setup chain; // do not invent an Encode stage or assign operation-authoring authority. diff --git a/tests/e2e/studio-mocked/studio-mocked.spec.ts b/tests/e2e/studio-mocked/studio-mocked.spec.ts index a7c1c1ec..3a757150 100644 --- a/tests/e2e/studio-mocked/studio-mocked.spec.ts +++ b/tests/e2e/studio-mocked/studio-mocked.spec.ts @@ -34758,6 +34758,14 @@ for (const workspace of ['expert'] as const) { await page.locator('.react-flow__pane').dblclick({ position: { x: 300, y: 200 } }); const list = page.getByRole('listbox', { name: 'Matching nodes' }); await expect(list).toBeVisible(); + const browse = page.getByRole('checkbox', { name: /Include catalog Blocks/u }); + const qwen = list.getByRole('option').filter({ hasText: 'Qwen Image — Text To Image' }); + await expect(browse).toBeVisible(); + await expect(qwen).toHaveCount(0); + await browse.click(); + await expect(qwen).toHaveCount(1); + await browse.click(); + await expect(qwen).toHaveCount(0); await page.locator('input[aria-label="Search nodes"]').last().fill('Qwen Image Text To Image'); const option = list.getByRole('option').filter({ hasText: 'Qwen Image — Text To Image' }); await expect(option).toHaveCount(1); From 07c89ca1d8cf21e18712451e64c69811993e6a31 Mon Sep 17 00:00:00 2001 From: Sourav Das Date: Mon, 23 Nov 2026 12:43:26 +0530 Subject: [PATCH 309/440] Distinguish source and control footage on generic video input cards --- docs/workflow-authoring-ux.md | 4 ++++ scripts/image-stage-groups.test.mjs | 11 +++++++++++ src/workflow/visualOperationGroups.ts | 4 ++-- 3 files changed, 17 insertions(+), 2 deletions(-) diff --git a/docs/workflow-authoring-ux.md b/docs/workflow-authoring-ux.md index 6a84b76a..a0e572e1 100644 --- a/docs/workflow-authoring-ux.md +++ b/docs/workflow-authoring-ux.md @@ -21,6 +21,10 @@ Blocks stay accessible under their authored names. Fresh examples use one Video Input for a file and its normalization, including when the prepared clip feeds an edge processor. Prepare Mask combines loading and aligning a mask. Composite can include foreground sizing, padding and cropping. +A video-to-video workflow with separate footage and motion guidance has two Video +Input cards. Their file pickers identify the source video and the control video. +A saved loader from before per-action video metadata can restore controls when +its library, adapter, schema and ordered modes still match the current registry. A separately consumed intermediate remains accessible. Opening an existing user document respects the presentation saved in that document. diff --git a/scripts/image-stage-groups.test.mjs b/scripts/image-stage-groups.test.mjs index b189250d..a41d09a1 100644 --- a/scripts/image-stage-groups.test.mjs +++ b/scripts/image-stage-groups.test.mjs @@ -96,6 +96,17 @@ test('bundled examples fold exclusively owned media preparation even when a proc ); const grouped = groups.groupNewOperationGraph(graph); assert.ok(hasStage(grouped), file); + if ( + graph.nodes.some((n) => n.data.studioRole === 'loadControlVideo') && + graph.nodes.some((n) => n.data.studioRole === 'loadVideo') + ) { + const pickers = grouped.nodes + .filter((n) => groups.visualOperationGroup(n) === 'videoInput') + .flatMap((n) => n.data.blockInstanceV2.effectiveInterface.controls) + .filter((control) => control.binding.fieldId === 'file') + .map((control) => control.label); + assert.deepEqual(pickers.sort(), ['Control video', 'Source video']); + } assert.deepEqual(exported(grouped), exported(graph), file); assert.deepEqual(exported(normalizePersistedFlowState(structuredClone(grouped))), exported(graph), file); assert.deepEqual(graph, before); diff --git a/src/workflow/visualOperationGroups.ts b/src/workflow/visualOperationGroups.ts index 2b07a7ba..cdc169ea 100644 --- a/src/workflow/visualOperationGroups.ts +++ b/src/workflow/visualOperationGroups.ts @@ -768,8 +768,8 @@ export function groupVisualStages( // example Image.Load.path). The explicit Block interface still needs a // non-empty name without changing the original leaf field. let label = (typeof param.label === 'string' && param.label.trim()) || field; - if (kind === 'videoInput' && node.data.studioRole === 'loadControlVideo' && field === 'file') - label = 'Control video'; + if (kind === 'videoInput' && nodeKey(node) === 'modules.Video.Load' && field === 'file') + label = node.data.studioRole === 'loadControlVideo' ? 'Control video' : 'Source video'; if ( kind === 'videoInput' && nodeKey(node) === 'modules.Video.Load' && From ac4ace688707d280cdd5d3240010cc0e1703d5d4 Mon Sep 17 00:00:00 2001 From: Sourav Das Date: Mon, 23 Nov 2026 14:55:36 +0530 Subject: [PATCH 310/440] Present shared speech and video stages across wired sources and saved workflows --- AGENTS.md | 1 + docs/developer-first-node-ux.md | 19 + scripts/flow-graph-export.test.mjs | 27 ++ scripts/flow-graph-mutations.test.mjs | 16 + scripts/modiff-template.test.mjs | 34 ++ scripts/node-presentation.test.mjs | 17 + src/stores/flowGraphExport.ts | 79 +--- src/stores/flowGraphMutations.ts | 6 +- src/stores/useNodeStore.ts | 2 +- src/stores/useStudioStore.ts | 2 +- src/studio/nodeCatalog.ts | 2 + src/studio/resolvedExecutionInputs.ts | 1 + src/studio/workflowInference.ts | 399 +++++++----------- .../builtinUtilityOperationPresentation.ts | 7 +- 14 files changed, 290 insertions(+), 322 deletions(-) diff --git a/AGENTS.md b/AGENTS.md index 7abdad82..108a15fa 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -34,6 +34,7 @@ These rules apply to Codex, Copilot-style agents, and any AI tool editing this r - Label ports by role, including Source, Mask, Control, and First or Last Frame. Show one editor per effective setting and retain the saved fallback when a typed connection supplies the value. Choose a shared default only after it works in both the fresh workflow and the corresponding saved workflow. - Resolve model variants that share a repository through the exact connected model and task declaration. Keep the canvas, restored workflow and saved output metadata consistent. - Test the canvas and the ordered executable graph separately. Compare controls, typed bindings, model switching, and save/reopen. A presentation-only change preserves the executable graph and reuses the original run evidence. +- When unifying stages across model families or input types, test a real wire change and an older saved workflow in the packaged UI. Restore fixed model capabilities from the installed registry. Preserve the saved file fallback and each family’s settings across switches. - Review the default blank-canvas picker separately from the execution registry. Start with generic stages and media processors. Keep specialist tools reachable by search, compatible wire or explicit implementation browsing. Compare the fresh template with its shipped Example and reopened execution graph. Check independent branches before folding preparation into a stage. ## Component Rules diff --git a/docs/developer-first-node-ux.md b/docs/developer-first-node-ux.md index 8d532333..086c38a9 100644 --- a/docs/developer-first-node-ux.md +++ b/docs/developer-first-node-ux.md @@ -325,3 +325,22 @@ repository you can access). Do not point the isolated fixture root at operator data. Remote tests skip explicitly without a repository; skips are not evidence. Native Windows/RTX4080 and all-model generation qualification are separate from these Linux UI/contract checks. + +For a new speech graph, add **Transcribe Audio** and wire a speech model and +source audio. The model connection controls which settings appear. A +sequence-to-sequence recognizer offers language, translation and three timing +choices. A CTC recognizer offers plain text or word timing. Switching back +restores the settings for the previous recognizer. Saved CTC recipes retain +their original action and timestamp field. + +Saved graphs discard transient signal values. A loader that always supplies +the same model family can declare its output signal `fixed: true`. Reopening +restores that capability from the installed registry. Mark a newly added +optional input with `fieldOptions.omitInactiveDefault` when a disconnected +default has no effect. Older graphs then offer the socket, and their executable +recipes acquire the input when the user connects or edits it. + +**Process Video** accepts files, retained clips and decoded frame sequences. +The file picker is the fallback when the Source input is disconnected. Files +carry their own frame rate and embedded audio. Decoded frames use the frame +rate entered on the stage and carry no audio track. diff --git a/scripts/flow-graph-export.test.mjs b/scripts/flow-graph-export.test.mjs index a7183edb..1e32ffe3 100644 --- a/scripts/flow-graph-export.test.mjs +++ b/scripts/flow-graph-export.test.mjs @@ -60,6 +60,33 @@ function exportSeed(value, setParam = () => {}) { return graph.nodes.generate.params.seed; } +test('optional stage inputs preserve old execution defaults and every explicit wire or nondefault', () => { + const source = { ...seedNode(5), id: 'supplier' }; + source.data.params = { result: { display: 'output', type: 'string' } }; + const stage = seedNode(6); + const settings = { hidden: true, default: 'word', value: 'word', fieldOptions: { omitInactiveDefault: true } }; + stage.data.params = { timing: settings, source: { display: 'input', fieldOptions: { omitInactiveDefault: true } } }; + const run = (edges = []) => + exportModule.buildApiGraphExport({ + nodes: [source, stage], + edges, + sid: 'test', + setParam() {}, + randomizeSeeds: false, + }).nodes.generate.params; + assert.deepEqual(run(), {}); + settings.value = 'none'; + assert.equal(run().timing.value, 'none'); + settings.value = 'word'; + settings.hidden = false; + assert.equal(run().timing.value, 'word'); + assert.equal( + run([{ id: 'wire', source: 'supplier', sourceHandle: 'result', target: 'generate', targetHandle: 'source' }]).source + .sourceId, + 'supplier', + ); +}); + function loopMember(id) { return { id, diff --git a/scripts/flow-graph-mutations.test.mjs b/scripts/flow-graph-mutations.test.mjs index 396ba8e3..0b1655f2 100644 --- a/scripts/flow-graph-mutations.test.mjs +++ b/scripts/flow-graph-mutations.test.mjs @@ -694,6 +694,22 @@ test('graph replacement preserves dynamic visibility and required inputs even wh assert.equal(params.missing_identity.hidden, true); }); +test('an older ordinary graph restores fixed capabilities and adds new optional sockets from its registry', () => { + const signal = { direction: 'output', origin: 'pipeline_class', value: 'family', fixed: true }; + const model = { display: 'output', type: 'model' }; + const source = { display: 'input', type: 'video', fieldOptions: { omitInactiveDefault: true } }; + nodeStoreModule.useNodesStore.setState({ + nodesRegistry: { 'modules.Test.Edit': node('Edit', { model: { ...model, signal }, source }).data }, + }); + const store = flowStoreModule.useFlowStore.getState; + for (const oldModel of [model, { ...model, signal: { ...signal, value: 'old' } }]) { + store().replaceGraph({ nodes: [node('Edit', { model: oldModel })], edges: [] }); + const params = store().nodes[0].data.params; + assert.deepEqual(params.model.signal, signal); + assert.equal(params.source.type, 'video'); + } +}); + test('pre-registry graph replacement strips stored behavior and restores only the arriving live contract', () => { flowStoreModule.useFlowStore.getState().replaceGraph({ nodes: [ diff --git a/scripts/modiff-template.test.mjs b/scripts/modiff-template.test.mjs index dbdc1324..eae07f50 100644 --- a/scripts/modiff-template.test.mjs +++ b/scripts/modiff-template.test.mjs @@ -1427,6 +1427,40 @@ test('Whisper Tiny exposes generic transcription and translation contracts', () assert.equal(translation.mode, 'speech_translation'); }); +test('reopening a shared transcriber follows its wired loader and preserves both timing choices', async () => { + const saved = async (family) => + JSON.parse( + await readFile(path.join(ROOT, '..', 'MoDiff', 'data/graphs/studio', family, 'speech-to-text.json'), 'utf8'), + ); + const whisper = await saved('hugging-face-speech-recognition-model'); + const ctc = await saved('hugging-face-ctc-speech-recognition-model'); + const loader = ctc.nodes.find((node) => node.data.studioRole === 'speechModel'); + loader.id = 'alternative'; + const stage = whisper.nodes.find((node) => node.data.studioRole === 'transcribeAudio'); + Object.assign(stage.data.params, { + task: { value: 'translate' }, + language: { value: 'French' }, + timestamps: { value: 'segment' }, + ctc_timestamps: { value: 'none' }, + }); + whisper.nodes.push(loader); + const wire = whisper.edges.find((edge) => edge.target === stage.id && edge.targetHandle === 'model'); + const originalSource = wire.source; + const settings = structuredClone(stage.data.params); + for (const source of [loader.id, originalSource, loader.id]) { + wire.source = source; + const { studioForm } = workflowInferenceModule.workflowSnapshotFromGraph(whisper, 'default'); + assert.equal( + studioForm.modelType, + source === loader.id ? 'HuggingFaceCTCSpeechRecognitionModel' : 'HuggingFaceSpeechRecognitionModel', + ); + assert.equal(studioForm.mode, source === loader.id ? 'speech_to_text' : 'speech_translation'); + assert.equal(studioForm.speechTimestamps, source === loader.id ? 'none' : 'segment'); + assert.equal(studioForm.speechLanguage, source === loader.id ? '' : 'French'); + } + assert.deepEqual(stage.data.params, settings); +}); + test('equivalent Modular Diffusers Cluster identities retain their exact standard execution profiles', () => { const expected = { ErnieImageModularPipeline: { diff --git a/scripts/node-presentation.test.mjs b/scripts/node-presentation.test.mjs index 78d52345..7f78a475 100644 --- a/scripts/node-presentation.test.mjs +++ b/scripts/node-presentation.test.mjs @@ -362,6 +362,23 @@ test('direct frame extraction shows the selected timing input and preserves fram assert.deepEqual(params, before); }); +test('one discoverable transcription stage and one video editor accept typed connections', () => { + const entry = (action) => catalog.getNodeCatalogEntry(node('HuggingFaceSpeech', action, action)); + assert.ok(catalog.nodeCatalogEntryMatchesView(entry('TranscribeAudio'), 'common')); + assert.equal(catalog.nodeCatalogEntryMatchesView(entry('TranscribeCTCAudio'), 'common'), false); + const saved = { operation: { value: 'video_trim' }, videos: { value: ['original.mp4'] }, fps: { value: 25 } }; + const backup = structuredClone(saved); + for (const connected of [false, true, false]) { + const view = utilityPresentation.builtinUtilityOperationPresentation('modules.Video.ProcessVideo', { + ...saved, + source: { isConnected: connected }, + }); + assert.equal(view.inactive.has('videos'), connected); + assert.equal(view.inactive.has('fps'), !connected); + } + assert.deepEqual(saved, backup); +}); + test('discoverability reflects the encoder role and both declared upscale media types', () => { const encoder = { ...node('ModularDiffusers', 'ImageEncode', 'Encode Image'), category: 'sampler' }; const upscaler = { diff --git a/src/stores/flowGraphExport.ts b/src/stores/flowGraphExport.ts index 32f5e8f4..a67ea0f9 100644 --- a/src/stores/flowGraphExport.ts +++ b/src/stores/flowGraphExport.ts @@ -147,25 +147,11 @@ export function selectFlowGraphExecutionScope({ if (!executableNodes.some((node) => node.id === id)) throw new Error(`Target node with id ${id} not found in executable nodes`); - const getIncomingNodes = (nodeId: string): FlowGraphNode[] => { - const node = executableNodes.find((n) => n.id === nodeId); - if (!node) return []; - return getIncomers(node, executableNodes, edges); - }; - - const getOutgoingNodes = (nodeId: string): FlowGraphNode[] => { - const node = executableNodes.find((n) => n.id === nodeId); - if (!node) return []; - return getOutgoers(node, executableNodes, edges); - }; - + const byId = new Map(executableNodes.map((node) => [node.id, node])); const walkBackwards = (nodeId: string, visited = new Set()): string[] => { - if (visited.has(nodeId)) { - return []; - } - + if (visited.has(nodeId)) return []; visited.add(nodeId); - const incomingNodes = getIncomingNodes(nodeId); + const incomingNodes = getIncomers(byId.get(nodeId)!, executableNodes, edges); const dependencies: string[] = []; for (const node of incomingNodes) { dependencies.push(...walkBackwards(node.id, visited)); @@ -175,49 +161,14 @@ export function selectFlowGraphExecutionScope({ return dependencies; }; - let nodesToInclude: string[] = []; - - if (targets.length) { - nodesToInclude = [...new Set(targets.flatMap((id) => walkBackwards(id)))]; - } else { - const outputNodes = executableNodes.filter((node) => { - const outgoers = getOutgoingNodes(node.id); - return outgoers.length === 0; - }); - - const endNodes = outputNodes.length > 0 ? outputNodes : executableNodes; - const allPathNodes = new Set(); - endNodes.forEach((node) => { - const path = walkBackwards(node.id); - path.forEach((nodeId) => allPathNodes.add(nodeId)); - }); - - nodesToInclude = Array.from(allPathNodes); + let terminals = targets; + if (!terminals.length) { + const sinks = executableNodes.filter((node) => !getOutgoers(node, executableNodes, edges).length); + terminals = (sinks.length ? sinks : executableNodes).map((node) => node.id); } - - const paths: string[][] = []; - - if (targets.length) { - for (const id of targets) { - const path = walkBackwards(id); - if (path.length > 0) paths.push(path); - } - } else { - const outputNodes = executableNodes.filter((node) => { - const outgoers = getOutgoingNodes(node.id); - return outgoers.length === 0; - }); - - const endNodes = outputNodes.length > 0 ? outputNodes : executableNodes; - endNodes.forEach((node) => { - const path = walkBackwards(node.id); - if (path.length > 0) { - paths.push(path); - } - }); - } - - return { nodes: executableNodes.filter((node) => nodesToInclude.includes(node.id)), paths }; + const paths = terminals.map((id) => walkBackwards(id)); + const included = new Set(paths.flat()); + return { nodes: executableNodes.filter((node) => included.has(node.id)), paths }; } export function buildApiGraphExport({ @@ -289,6 +240,16 @@ export function buildApiGraphExport({ (edge) => edge.target === node.id && edge.targetHandle === paramName && includedNodeIds.has(edge.source), ); + // Optional additions keep older recipes byte-compatible. Authored nondefaults + // and actual edges are exported even when their editor is hidden. + if ( + !incomingEdge && + paramData.fieldOptions?.omitInactiveDefault === true && + (paramData.hidden || paramData.display === 'input') && + (exportValue ?? null) === (paramData.default ?? null) + ) + return; + if (incomingEdge) { param.sourceId = incomingEdge.source; param.sourceKey = incomingEdge.sourceHandle || undefined; diff --git a/src/stores/flowGraphMutations.ts b/src/stores/flowGraphMutations.ts index a966af2d..29e13952 100644 --- a/src/stores/flowGraphMutations.ts +++ b/src/stores/flowGraphMutations.ts @@ -66,6 +66,9 @@ function withLiveFieldContracts(nodes: CustomNodeType[]) { : { ...(liveParam?.hidden ? liveParam : {}), ...storedParam }; if (fullLiveField && hasOwn(storedParam, 'value')) mergedParam.value = storedParam.value; if (fullLiveField && hasOwn(storedParam, 'artifacts')) mergedParam.artifacts = storedParam.artifacts; + // Snapshots discard runtime signal payloads. A fixed capability comes + // from the installed node, including when the saved schema predates it. + if (liveParam?.signal?.fixed) mergedParam.signal = liveParam.signal; for (const behaviorKey of ['onChange', 'onSignal'] as const) { if (liveParam && hasOwn(liveParam, behaviorKey)) mergedParam[behaviorKey] = liveParam[behaviorKey]; else delete mergedParam[behaviorKey]; @@ -86,7 +89,8 @@ function withLiveFieldContracts(nodes: CustomNodeType[]) { !operation.ports.some((port) => port.direction === 'input' && port.name === fieldKey) ) continue; - if (liveParam.display?.startsWith('ui_') || liveParam.hidden) params[fieldKey] = { ...liveParam }; + if (liveParam.display?.startsWith('ui_') || liveParam.hidden || liveParam.fieldOptions?.omitInactiveDefault) + params[fieldKey] = { ...liveParam }; } return { ...node, data: { ...node.data, params } }; }); diff --git a/src/stores/useNodeStore.ts b/src/stores/useNodeStore.ts index 1912afd4..14ac8df6 100644 --- a/src/stores/useNodeStore.ts +++ b/src/stores/useNodeStore.ts @@ -66,7 +66,7 @@ import { createLatestRequestGate, formatRequestError, requestJson, RequestError import { useStudioStore } from './useStudioStore'; export type NodeParamOptions = unknown[] | Record; -export type NodeParamSignal = { direction: 'input' | 'output'; origin?: string; value: unknown }; +export type NodeParamSignal = { direction: 'input' | 'output'; origin?: string; value: unknown; fixed?: boolean }; export type NodeExecutionStatus = 'queued' | 'running' | 'completed' | 'cached' | 'failed' | 'cancelled' | 'succeeded'; export type NodeData = { diff --git a/src/stores/useStudioStore.ts b/src/stores/useStudioStore.ts index 5ff38746..98974ae2 100644 --- a/src/stores/useStudioStore.ts +++ b/src/stores/useStudioStore.ts @@ -662,7 +662,7 @@ function normalizeWorkflowSnapshot( ); const inferredManagedForm = shouldRecoverManagedIdentity ? resolveStudioResourceForm({ - ...inferStudioFormFromWorkflow(nodes, persistedStudioForm), + ...inferStudioFormFromWorkflow(nodes, persistedStudioForm, edges as import('@xyflow/react').Edge[]), // Graph inference refreshes the recipe summary, not the document's // explicit memory policy. Missing/invalid legacy values already coerce to Auto. resourceMode: persistedStudioForm.resourceMode, diff --git a/src/studio/nodeCatalog.ts b/src/studio/nodeCatalog.ts index bf02e9a3..447bf340 100644 --- a/src/studio/nodeCatalog.ts +++ b/src/studio/nodeCatalog.ts @@ -115,6 +115,7 @@ const GENERIC_NODE_KEYS = new Set([ const GENERIC_NODE_ROLES: Readonly> = { 'modules.ImageOperations.ProcessImage': 'Image', 'modules.Audio.ProcessAudio': 'Audio', + 'modules.HuggingFaceSpeech.TranscribeAudio': 'Audio', 'modules.Video.ProcessVideo': 'Video', 'modules.DiffusersImage.LayerDecompose': 'Edit', 'modules.DiffusersImage.PredictMap': 'Condition', @@ -168,6 +169,7 @@ export function nodeCatalogEntryMatchesView(entry: NodeCatalogEntry, view: NodeC } const ESSENTIAL_NODE_KEYS = new Set([ + 'modules.HuggingFaceSpeech.TranscribeAudio', 'modules.ImageOperations.ProcessImage', 'modules.Video.ProcessVideo', 'modules.Audio.ProcessAudio', diff --git a/src/studio/resolvedExecutionInputs.ts b/src/studio/resolvedExecutionInputs.ts index 4ba5ec39..8df85830 100644 --- a/src/studio/resolvedExecutionInputs.ts +++ b/src/studio/resolvedExecutionInputs.ts @@ -446,6 +446,7 @@ const accountingNames: Record = { 'task', 'language', 'timestamps', + 'ctc_timestamps', 'chunk_length_seconds', 'stride_length_seconds', ], diff --git a/src/studio/workflowInference.ts b/src/studio/workflowInference.ts index a626736e..d1be44ae 100644 --- a/src/studio/workflowInference.ts +++ b/src/studio/workflowInference.ts @@ -3,9 +3,6 @@ import type { CustomNodeType } from '../stores/useFlowStore'; import { useNodesStore } from '../stores/useNodeStore'; import { unpackVisualOperationGroups } from '../workflow/visualOperationGroupProjection'; import { - BUILTIN_AUDIO_OPERATION_MODES, - BUILTIN_DATA_OPERATION_MODES, - BUILTIN_VIDEO_OPERATION_MODES, DEFAULT_STUDIO_FORM, QWEN_OUTPAINT_CANVAS_NODE_KEY, STUDIO_MODEL_PROFILES, @@ -40,7 +37,7 @@ type NodeLike = { category?: string; studioRole?: string; studioOwned?: boolean; - params?: Record; + params?: Record; }; }; @@ -94,14 +91,6 @@ function nodeKey(node: NodeLike) { return `${node.data?.module ?? ''}.${node.data?.action ?? ''}`; } -function findNode(nodes: NodeLike[], predicate: (node: NodeLike) => boolean) { - return nodes.find(predicate); -} - -function findNodes(nodes: NodeLike[], predicate: (node: NodeLike) => boolean) { - return nodes.filter(predicate); -} - type ManagedWorkflowAdoption = { nodes: CustomNodeType[]; binding: StudioGraphBinding; @@ -194,23 +183,12 @@ function adoptRoleMarkedWorkflow( const managedNodeSet = new Set(executableNodes.map((node) => node.id)); if (edges.some((edge) => !managedNodeSet.has(edge.source) || !managedNodeSet.has(edge.target))) return null; - const executableNodeIds = new Set(executableNodes.map((node) => node.id)); - const adoptedManagedNodes = executableNodes.map((node) => ({ - ...node, - data: { ...node.data, studioOwned: true }, - })); - const adoptedNodes = nodes.map((node) => { - const managed = adoptedManagedNodes.find((candidate) => candidate.id === node.id); - return managed ?? node; - }); + const adoptedNodes = nodes.map((node) => + managedNodeSet.has(node.id) ? { ...node, data: { ...node.data, studioOwned: true } } : node, + ); return { nodes: adoptedNodes, - binding: bindingForManagedNodes( - adoptedManagedNodes.filter((node) => executableNodeIds.has(node.id)), - edges, - form, - roleNodeIds, - ), + binding: bindingForManagedNodes(executableNodes, edges, form, roleNodeIds), }; } @@ -412,107 +390,52 @@ export function restoreReviewedDirectImageModelType( return { ...form, modelType: route.modelType }; } +// Preserve the published default and precedence when several processors occur in one graph. +const VIDEO_PROCESSOR = ['BuiltinVideoOperation', 'videoOperation', 'modules.Video.ProcessVideo'] as const; +const VIDEO_UPSCALER = ['SpandrelVideoUpscale', 'videoUpscaler', 'modules.Video.UpscaleVideo'] as const; +const PROCESSORS = [ + ['BuiltinDataOperation', 'dataOperation', 'modules.Text.ProcessText'], + ['BuiltinAudioOperation', 'audioOperation', 'modules.Audio.ProcessAudio'], + ['BuiltinImageOperation', 'imageOperation', 'modules.ImageOperations.ProcessImage'], + VIDEO_PROCESSOR, + VIDEO_UPSCALER, + ['SpandrelImageUpscale', 'imageUpscaler', 'modules.Spandrel.Upscaler'], +] as const; + +function findProcessor(nodes: NodeLike[], [, role, key]: (typeof PROCESSORS)[number]) { + return nodes.find((node) => node.data?.studioRole === role || nodeKey(node) === key); +} + function inferModelType(nodes: NodeLike[], fallback: StudioFormState): StudioModelType { // A processing stage is not the generation model. Prefer the existing // loader declarations before the standalone-operation fallbacks, independent // of canvas order. This summary never changes the executable graph. const loadedModel = declaredModelType(nodes.filter(isModelLoader), fallback.modelType); if (loadedModel) return loadedModel; - if (nodes.some((node) => node.data?.studioRole === 'dataOperation' || nodeKey(node) === 'modules.Text.ProcessText')) { - return 'BuiltinDataOperation'; - } - if ( - nodes.some((node) => node.data?.studioRole === 'audioOperation' || nodeKey(node) === 'modules.Audio.ProcessAudio') - ) { - return 'BuiltinAudioOperation'; - } - if ( - nodes.some( - (node) => node.data?.studioRole === 'imageOperation' || nodeKey(node) === 'modules.ImageOperations.ProcessImage', - ) - ) { - return 'BuiltinImageOperation'; - } - if ( - nodes.some((node) => node.data?.studioRole === 'videoOperation' || nodeKey(node) === 'modules.Video.ProcessVideo') - ) { - return 'BuiltinVideoOperation'; - } - if ( - nodes.some((node) => node.data?.studioRole === 'videoUpscaler' || nodeKey(node) === 'modules.Video.UpscaleVideo') - ) { - return 'SpandrelVideoUpscale'; - } - if ( - nodes.some((node) => node.data?.studioRole === 'imageUpscaler' || nodeKey(node) === 'modules.Spandrel.Upscaler') - ) { - return 'SpandrelImageUpscale'; + for (const processor of PROCESSORS) { + if (findProcessor(nodes, processor)) return processor[0]; } return declaredModelType(nodes, fallback.modelType) ?? fallback.modelType; } -function inferMode(nodes: NodeLike[], modelType: StudioModelType, fallback: StudioFormState): StudioMode { +function inferMode( + nodes: NodeLike[], + modelType: StudioModelType, + fallback: StudioFormState, + speech: NodeLike | undefined, +): StudioMode { const roles = new Set(nodes.map((node) => String(node.data?.studioRole ?? ''))); const keys = new Set(nodes.map(nodeKey)); - if (modelType === 'BuiltinDataOperation') { - const operationNode = findNode( - nodes, - (node) => node.data?.studioRole === 'dataOperation' || nodeKey(node) === 'modules.Text.ProcessText', - ); - const operation = stringValue(paramValue(operationNode, ['operation'])); - return BUILTIN_DATA_OPERATION_MODES.includes(operation as StudioMode) ? (operation as StudioMode) : 'text_select'; - } - if (modelType === 'BuiltinAudioOperation') { - const operationNode = findNode( - nodes, - (node) => node.data?.studioRole === 'audioOperation' || nodeKey(node) === 'modules.Audio.ProcessAudio', - ); - const operation = stringValue(paramValue(operationNode, ['operation'])); - return BUILTIN_AUDIO_OPERATION_MODES.includes(operation as StudioMode) ? (operation as StudioMode) : 'audio_trim'; - } - if (modelType === 'BuiltinImageOperation') { - const operationNode = findNode( - nodes, - (node) => node.data?.studioRole === 'imageOperation' || nodeKey(node) === 'modules.ImageOperations.ProcessImage', - ); - const operation = stringValue(paramValue(operationNode, ['operation'])); - if ( - [ - 'image_adjustment', - 'image_filter', - 'image_crop', - 'image_upscale', - 'image_stitch', - 'image_tile', - 'image_channels', - 'mask_composite', - ].includes(operation) - ) { - return operation as StudioMode; - } - return 'image_adjustment'; - } - if (modelType === 'BuiltinVideoOperation') { - const operationNode = findNode( - nodes, - (node) => node.data?.studioRole === 'videoOperation' || nodeKey(node) === 'modules.Video.ProcessVideo', - ); - const operation = stringValue(paramValue(operationNode, ['operation'])); - if (BUILTIN_VIDEO_OPERATION_MODES.includes(operation as StudioMode)) { - return operation as StudioMode; - } - return 'video_frame_extract'; - } - if (modelType === 'SpandrelVideoUpscale') { - return 'video_upscale'; - } - if (modelType === 'SpandrelImageUpscale') { - return 'image_upscale'; + const hasRoleOrAction = (role: string, action: string) => roles.has(role) || keys.has(action); + const processor = PROCESSORS.find(([type]) => type === modelType); + if (processor) { + const mode = stringValue(paramValue(findProcessor(nodes, processor), ['operation'])) as StudioMode; + const modes = STUDIO_MODEL_PROFILES[processor[0]].modes; + return modes.includes(mode) ? mode : modes[0]!; } if ( modelType === 'ShapEPipeline' || - roles.has('diffusersThreeDGenerate') || - keys.has('modules.DiffusersThreeD.GenerateRenderedArtifact') + hasRoleOrAction('diffusersThreeDGenerate', 'modules.DiffusersThreeD.GenerateRenderedArtifact') ) { return 'text_to_3d'; } @@ -535,26 +458,21 @@ function inferMode(nodes: NodeLike[], modelType: StudioModelType, fallback: Stud } if (keys.has('modules.HuggingFaceTransformers.GenerateAnyToAny')) { - const generateNode = findNode( - nodes, - (node) => nodeKey(node) === 'modules.HuggingFaceTransformers.GenerateAnyToAny', - ); + const generateNode = nodes.find((node) => nodeKey(node) === 'modules.HuggingFaceTransformers.GenerateAnyToAny'); if (stringValue(paramValue(generateNode, ['generation_mode'])) === 'image') return 'text_to_image'; return keys.has('modules.Image.Load') ? 'image_to_text' : 'text_generation'; } if ( modelType === 'HuggingFaceImageTextToTextModel' || - roles.has('transformersImageTextGenerate') || - keys.has('modules.HuggingFaceTransformers.GenerateImageVideoText') + hasRoleOrAction('transformersImageTextGenerate', 'modules.HuggingFaceTransformers.GenerateImageVideoText') ) { return 'image_to_text'; } if ( modelType === 'HuggingFaceTextGenerationModel' || - roles.has('transformersTextGenerate') || - keys.has('modules.HuggingFaceTransformers.GenerateText') + hasRoleOrAction('transformersTextGenerate', 'modules.HuggingFaceTransformers.GenerateText') ) { return 'text_generation'; } @@ -562,29 +480,19 @@ function inferMode(nodes: NodeLike[], modelType: StudioModelType, fallback: Stud if ( modelType === 'HuggingFaceSpeechRecognitionModel' || modelType === 'HuggingFaceCTCSpeechRecognitionModel' || - roles.has('transcribeAudio') || - keys.has('modules.HuggingFaceSpeech.TranscribeAudio') || - keys.has('modules.HuggingFaceSpeech.TranscribeCTCAudio') + speech ) { - const actionNode = findNode( - nodes, - (node) => - node.data?.studioRole === 'transcribeAudio' || - nodeKey(node) === 'modules.HuggingFaceSpeech.TranscribeAudio' || - nodeKey(node) === 'modules.HuggingFaceSpeech.TranscribeCTCAudio', - ); - return stringValue(paramValue(actionNode, ['task'])) === 'translate' ? 'speech_translation' : 'speech_to_text'; + if (modelType === 'HuggingFaceCTCSpeechRecognitionModel') return 'speech_to_text'; + return stringValue(paramValue(speech, ['task'])) === 'translate' ? 'speech_translation' : 'speech_to_text'; } if ( modelType === 'AceStepAudioPipeline' || modelType === 'StableAudioPipeline' || - roles.has('audioGenerate') || - keys.has('modules.DiffusersAudio.Generate') + hasRoleOrAction('audioGenerate', 'modules.DiffusersAudio.Generate') ) { if (roles.has('loadAudio')) { - const generateNode = findNode( - nodes, + const generateNode = nodes.find( (node) => node.data?.studioRole === 'audioGenerate' || nodeKey(node) === 'modules.DiffusersAudio.Generate', ); const taskType = stringValue(paramValue(generateNode, ['task_type'])); @@ -596,28 +504,26 @@ function inferMode(nodes: NodeLike[], modelType: StudioModelType, fallback: Stud } if (modelType.startsWith('Flux') || keys.has('modules.DiffusersImage.LoadPipeline')) { - if (roles.has('diffusersUnconditionalGenerate') || keys.has('modules.DiffusersImage.UnconditionalGenerate')) + if (hasRoleOrAction('diffusersUnconditionalGenerate', 'modules.DiffusersImage.UnconditionalGenerate')) return 'unconditional_image'; - if (roles.has('diffusersPredictMap') || keys.has('modules.DiffusersImage.PredictMap')) return 'depth_estimation'; - if (roles.has('diffusersImageLayerDecompose') || keys.has('modules.DiffusersImage.LayerDecompose')) + if (hasRoleOrAction('diffusersPredictMap', 'modules.DiffusersImage.PredictMap')) return 'depth_estimation'; + if (hasRoleOrAction('diffusersImageLayerDecompose', 'modules.DiffusersImage.LayerDecompose')) return 'layer_decomposition'; - if (roles.has('diffusersImageControlInpaint') || keys.has('modules.DiffusersImage.ControlInpaint')) + if (hasRoleOrAction('diffusersImageControlInpaint', 'modules.DiffusersImage.ControlInpaint')) return 'control_inpaint'; - if (roles.has('diffusersImageControlEdit') || keys.has('modules.DiffusersImage.ControlEdit')) - return 'control_edit_image'; - if (roles.has('diffusersImageControl') || keys.has('modules.DiffusersImage.ControlGenerate')) - return 'control_image'; - if (roles.has('outpaintCanvas') || roles.has('qwenOutpaintCanvas') || keys.has(QWEN_OUTPAINT_CANVAS_NODE_KEY)) + if (hasRoleOrAction('diffusersImageControlEdit', 'modules.DiffusersImage.ControlEdit')) return 'control_edit_image'; + if (hasRoleOrAction('diffusersImageControl', 'modules.DiffusersImage.ControlGenerate')) return 'control_image'; + if (roles.has('outpaintCanvas') || hasRoleOrAction('qwenOutpaintCanvas', QWEN_OUTPAINT_CANVAS_NODE_KEY)) return 'outpaint'; - if (roles.has('diffusersImageInpaint') || keys.has('modules.DiffusersImage.Inpaint')) return 'inpaint'; - if (roles.has('diffusersImageEdit') || keys.has('modules.DiffusersImage.Edit')) return 'edit_image'; + if (hasRoleOrAction('diffusersImageInpaint', 'modules.DiffusersImage.Inpaint')) return 'inpaint'; + if (hasRoleOrAction('diffusersImageEdit', 'modules.DiffusersImage.Edit')) return 'edit_image'; return 'text_to_image'; } - if (roles.has('controlnet') || keys.has('modules.ModularDiffusers.Controlnet')) return 'control_image'; - if (roles.has('qwenOutpaintCanvas') || keys.has(QWEN_OUTPAINT_CANVAS_NODE_KEY)) return 'outpaint'; - if (roles.has('qwenInpaint') || keys.has('modules.DiffusersImage.Inpaint')) return 'inpaint'; - if (roles.has('applyMask') || roles.has('loadMask') || keys.has('modules.Image.ApplyMask')) return 'inpaint'; + if (hasRoleOrAction('controlnet', 'modules.ModularDiffusers.Controlnet')) return 'control_image'; + if (hasRoleOrAction('qwenOutpaintCanvas', QWEN_OUTPAINT_CANVAS_NODE_KEY)) return 'outpaint'; + if (hasRoleOrAction('qwenInpaint', 'modules.DiffusersImage.Inpaint')) return 'inpaint'; + if (roles.has('applyMask') || hasRoleOrAction('loadMask', 'modules.Image.ApplyMask')) return 'inpaint'; if (modelType === 'QwenImageLayeredModularPipeline') return 'layer_decomposition'; if (modelType === 'QwenImageEditPlusModularPipeline') return 'multi_image_reference_edit'; if (modelType === 'QwenImageEditModularPipeline') return 'edit_image'; @@ -625,132 +531,103 @@ function inferMode(nodes: NodeLike[], modelType: StudioModelType, fallback: Stud return getDefaultModeForModel(modelType); } +function isGenerationStage(node: NodeLike) { + return ( + [ + 'wanGenerate', + 'qwenGenerate', + 'qwenInpaint', + 'diffusersImageGenerate', + 'diffusersUnconditionalGenerate', + 'diffusersPredictMap', + 'diffusersImageEdit', + 'diffusersImageInpaint', + 'diffusersImageControl', + 'diffusersImageControlEdit', + 'diffusersImageControlInpaint', + 'diffusersImageLayerDecompose', + 'audioGenerate', + 'transcribeAudio', + ].includes(String(node.data?.studioRole)) || + [ + 'Generate', + 'UnconditionalGenerate', + 'PredictMap', + 'Inpaint', + 'Edit', + 'ControlGenerate', + 'ControlEdit', + 'ControlInpaint', + 'LayerDecompose', + 'TranscribeAudio', + 'TranscribeCTCAudio', + 'GenerateAnyToAny', + ].includes(String(node.data?.action)) + ); +} + export function inferStudioFormFromWorkflow( nodesInput: unknown[], fallback: StudioFormState = DEFAULT_STUDIO_FORM, + edges: Edge[] = [], ): StudioFormState { const nodes = nodesInput.filter(isNodeLike); - const modelType = inferModelType(nodes, fallback); - const mode = inferMode(nodes, modelType, fallback); + const transcribers = nodes.filter( + (n) => + n.data?.studioRole === 'transcribeAudio' || + (n.data?.module === 'modules.HuggingFaceSpeech' && + ['TranscribeAudio', 'TranscribeCTCAudio'].includes(String(n.data.action))), + ); + const modelWire = + transcribers.length === 1 && + edges.find((e) => e.target === transcribers[0]?.id && e.targetHandle === 'model' && e.sourceHandle === 'model'); + const speechLoader = + modelWire && nodes.find((n) => n.id === modelWire.source && n.data?.module === 'modules.HuggingFaceSpeech'); + const modelType = + (speechLoader && declaredModelType([speechLoader], fallback.modelType)) || inferModelType(nodes, fallback); + const mode = inferMode(nodes, modelType, fallback, transcribers[0]); const defaults = getFormDefaultsForMode(mode, modelType); - const promptNode = findNode( - nodes, + const promptNode = nodes.find( (node) => - [ - 'prompt', - 'wanGenerate', - 'qwenGenerate', - 'qwenInpaint', - 'diffusersImageGenerate', - 'diffusersUnconditionalGenerate', - 'diffusersPredictMap', - 'diffusersImageEdit', - 'diffusersImageInpaint', - 'diffusersImageControl', - 'diffusersImageControlEdit', - 'diffusersImageControlInpaint', - 'diffusersImageLayerDecompose', - 'audioGenerate', - 'dataOperation', - 'transcribeAudio', - ].includes(String(node.data?.studioRole)) || - [ - 'EncodePrompt', - 'EncodeInputs', - 'Generate', - 'UnconditionalGenerate', - 'PredictMap', - 'Inpaint', - 'Edit', - 'ControlGenerate', - 'ControlEdit', - 'ControlInpaint', - 'LayerDecompose', - 'TranscribeAudio', - 'GenerateAnyToAny', - 'ProcessText', - ].includes(String(node.data?.action)), + isGenerationStage(node) || + ['prompt', 'dataOperation'].includes(String(node.data?.studioRole)) || + ['EncodePrompt', 'EncodeInputs', 'ProcessText'].includes(String(node.data?.action)), ); - const denoiseNode = findNode(nodes, (node) => node.data?.studioRole === 'denoise' || node.data?.action === 'Denoise'); + const denoiseNode = nodes.find((node) => node.data?.studioRole === 'denoise' || node.data?.action === 'Denoise'); const modelNode = - findNode(nodes, isModelLoader) ?? - findNode( - nodes, + speechLoader || + nodes.find(isModelLoader) || + nodes.find( (node) => ['imageUpscaler', 'videoUpscaler'].includes(String(node.data?.studioRole)) || ['Upscaler', 'UpscaleVideo'].includes(String(node.data?.action)), ); - const quantizationNode = findNode( - nodes, + const quantizationNode = nodes.find( (node) => node.data?.studioRole === 'qwenQuantization' || node.data?.action === 'QuantizationConfigNode', ); - const generateNode = findNode( - nodes, - (node) => - [ - 'wanGenerate', - 'qwenGenerate', - 'qwenInpaint', - 'diffusersImageGenerate', - 'diffusersUnconditionalGenerate', - 'diffusersPredictMap', - 'diffusersImageEdit', - 'diffusersImageInpaint', - 'diffusersImageControl', - 'diffusersImageControlEdit', - 'diffusersImageControlInpaint', - 'diffusersImageLayerDecompose', - 'audioGenerate', - 'transcribeAudio', - ].includes(String(node.data?.studioRole)) || - [ - 'Generate', - 'Denoise', - 'UnconditionalGenerate', - 'PredictMap', - 'Inpaint', - 'Edit', - 'ControlGenerate', - 'ControlEdit', - 'ControlInpaint', - 'LayerDecompose', - 'TranscribeAudio', - 'GenerateAnyToAny', - ].includes(String(node.data?.action)), - ); - const outpaintNode = findNode( - nodes, + const generateNode = nodes.find((node) => isGenerationStage(node) || node.data?.action === 'Denoise'); + const outpaintNode = nodes.find( (node) => node.data?.studioRole === 'outpaintCanvas' || node.data?.studioRole === 'qwenOutpaintCanvas' || nodeKey(node) === QWEN_OUTPAINT_CANVAS_NODE_KEY, ); - const loadImages = findNodes( - nodes, - (node) => node.data?.action === 'Load' && nodeKey(node).startsWith('modules.Image.'), - ); - const loadVideos = findNodes( - nodes, - (node) => node.data?.action === 'Load' && nodeKey(node).startsWith('modules.Video.'), - ); - const loadAudios = findNodes( - nodes, - (node) => node.data?.action === 'Load' && nodeKey(node).startsWith('modules.Audio.'), - ); + const loadImages = nodes.filter((node) => node.data?.action === 'Load' && nodeKey(node).startsWith('modules.Image.')); + const loadVideos = nodes.filter((node) => node.data?.action === 'Load' && nodeKey(node).startsWith('modules.Video.')); + const loadAudios = nodes.filter((node) => node.data?.action === 'Load' && nodeKey(node).startsWith('modules.Audio.')); const sourceVideoNode = loadVideos.find((node) => node.data?.studioRole === 'loadVideo') ?? loadVideos.find((node) => !['loadControlVideo', 'loadMaskVideo'].includes(String(node.data?.studioRole))); const maskVideoNode = loadVideos.find((node) => node.data?.studioRole === 'loadMaskVideo'); const controlVideoNode = loadVideos.find((node) => node.data?.studioRole === 'loadControlVideo'); - const videoOperationNode = findNode( - nodes, - (node) => node.data?.studioRole === 'videoOperation' || nodeKey(node) === 'modules.Video.ProcessVideo', - ); - const videoUpscaleNode = findNode( - nodes, - (node) => node.data?.studioRole === 'videoUpscaler' || nodeKey(node) === 'modules.Video.UpscaleVideo', - ); - const operationVideos = arrayStringValue(paramValue(videoOperationNode, ['videos'])); + const videoOperationNode = findProcessor(nodes, VIDEO_PROCESSOR); + const videoUpscaleNode = findProcessor(nodes, VIDEO_UPSCALER); + const operationVideos = + videoOperationNode && + (videoOperationNode.data?.params?.source?.isConnected || + edges.some((edge) => edge.target === videoOperationNode.id && edge.targetHandle === 'source')) + ? [] + : arrayStringValue(paramValue(videoOperationNode, ['videos'])); const loadImageNode = loadImages.find((node) => node.data?.studioRole === 'loadImage') ?? loadImages[0]; const loadControlImageNode = loadImages.find((node) => node.data?.studioRole === 'loadControlImage'); const loadMaskNode = loadImages.find((node) => node.data?.studioRole === 'loadMask'); @@ -829,10 +706,18 @@ export function inferStudioFormFromWorkflow( controlVideo: stringValue(paramValue(controlVideoNode, ['file'])), sourceAudio: stringValue(paramValue(loadAudioNode, ['file'])), referenceAudio: stringValue(paramValue(loadReferenceAudioNode, ['file'])), - speechLanguage: stringValue(paramValue(generateNode, ['language'])) || defaults.speechLanguage, + speechLanguage: + modelType === 'HuggingFaceCTCSpeechRecognitionModel' + ? defaults.speechLanguage + : stringValue(paramValue(generateNode, ['language'])) || defaults.speechLanguage, speechTimestamps: - (stringValue(paramValue(generateNode, ['timestamps'])) as StudioFormState['speechTimestamps']) || - defaults.speechTimestamps, + (stringValue( + paramValue(generateNode, [ + modelType === 'HuggingFaceCTCSpeechRecognitionModel' && generateNode?.data?.action === 'TranscribeAudio' + ? 'ctc_timestamps' + : 'timestamps', + ]), + ) as StudioFormState['speechTimestamps']) || defaults.speechTimestamps, speechChunkSeconds: numberValue(paramValue(generateNode, ['chunk_length_seconds']), defaults.speechChunkSeconds), speechStrideSeconds: numberValue(paramValue(generateNode, ['stride_length_seconds']), defaults.speechStrideSeconds), lyrics: stringValue(paramValue(generateNode, ['lyrics'])) || defaults.lyrics, @@ -849,7 +734,7 @@ export function inferStudioFormFromWorkflow( numFrames: numberValue(paramValue(generateNode, ['num_frames']), defaults.numFrames), fps: numberValue( paramValue( - findNode(nodes, (node) => node.data?.studioRole === 'videoExport' || nodeKey(node) === 'modules.Video.Export'), + nodes.find((node) => node.data?.studioRole === 'videoExport' || nodeKey(node) === 'modules.Video.Export'), ['fps'], ) ?? paramValue(videoUpscaleNode, ['fps']), defaults.fps, @@ -877,7 +762,7 @@ export function workflowSnapshotFromGraph( ...edge, type: edge.type ?? edgeType, })); - const form = restoreReviewedDirectImageModelType(nodes, edges, inferStudioFormFromWorkflow(nodes, fallback)); + const form = restoreReviewedDirectImageModelType(nodes, edges, inferStudioFormFromWorkflow(nodes, fallback, edges)); const adopted = adoptManagedWorkflowGraph(nodes, edges, form); return { nodes: adopted?.nodes ?? nodes, diff --git a/src/workflow/builtinUtilityOperationPresentation.ts b/src/workflow/builtinUtilityOperationPresentation.ts index 07bf94ab..4a713834 100644 --- a/src/workflow/builtinUtilityOperationPresentation.ts +++ b/src/workflow/builtinUtilityOperationPresentation.ts @@ -151,8 +151,9 @@ export function builtinUtilityOperationPresentation(identity: string, params: Re .flat() .filter((field) => !active.has(field)), ); - // The saved generic FPS value is unused. Frame extraction reads the source FPS, - // and interpolation exposes its own target FPS. - if (identity === 'modules.Video.ProcessVideo') inactive.add('fps'); + if (identity === 'modules.Video.ProcessVideo') { + if (params.source?.isConnected) inactive.add('videos'); + else inactive.add('fps'); + } return { inactive, continuation: operation === 'audio_join' }; } From d1741043a40b55d1a9ee42d9628ed4a042fcdb8d Mon Sep 17 00:00:00 2001 From: Sourav Das Date: Mon, 23 Nov 2026 17:23:29 +0530 Subject: [PATCH 311/440] Present workflow stages through a searchable, model-aware node catalog --- .github/workflows/ci.yml | 6 +- AGENTS.md | 2 + CONTRIBUTING.md | 9 + README.md | 2 +- docs/cluster-engineering-lessons.md | 2 + docs/developer-first-node-ux.md | 6 + package.json | 2 +- scripts/bundle-budget.mjs | 6 + scripts/visual-node-catalog.test.mjs | 209 ++++++++++++ src/components/CustomNode.tsx | 25 +- src/components/CustomNodeLibrary.tsx | 4 +- src/components/GraphNodeInputs.tsx | 8 +- src/components/ImageGuidanceChoice.tsx | 43 +++ src/components/NodeInspectionDetails.tsx | 15 + src/components/NodeList.tsx | 68 +++- src/components/NodeSearchDialog.tsx | 66 +++- src/components/OperationCatalogPanel.tsx | 62 ++-- src/components/StageActionChoice.tsx | 60 ++++ src/components/VisualStageLibrary.tsx | 140 ++++++++ src/stores/useNodeDiscoveryStore.ts | 14 +- src/stores/useNodeStore.ts | 27 +- src/studio/imageStageGuidance.ts | 101 ++++++ src/studio/nodeCatalog.ts | 2 + src/studio/nodeLibraryAuditV2.ts | 2 +- src/studio/stageActionChange.ts | 100 ++++++ src/studio/visualNodeCatalog.ts | 318 ++++++++++++++++++ src/utils/isRecord.ts | 3 + src/workflow/nodeConnectionSearch.ts | 20 ++ src/workflow/nodeFactory.ts | 1 + src/workflow/useWorkflowDrop.ts | 11 +- tests/e2e/live-backend/node-ux.spec.ts | 12 +- .../live-backend/ordinary-node-labels.spec.ts | 6 +- 32 files changed, 1268 insertions(+), 84 deletions(-) create mode 100644 scripts/visual-node-catalog.test.mjs create mode 100644 src/components/ImageGuidanceChoice.tsx create mode 100644 src/components/StageActionChoice.tsx create mode 100644 src/components/VisualStageLibrary.tsx create mode 100644 src/studio/imageStageGuidance.ts create mode 100644 src/studio/stageActionChange.ts create mode 100644 src/studio/visualNodeCatalog.ts create mode 100644 src/utils/isRecord.ts diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 15de255c..89bd32e6 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -32,8 +32,8 @@ jobs: uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4 with: repository: sdevil7th/MoDiff - # Pair R04 damaged-metadata readiness and the existing setup contract. - ref: 86c2e281917afaf734c48c31f7b79c5ec1cfa0b2 + # Pair the visual stage catalog and custom action search metadata. + ref: 413a2bca931d9dd56a8a4a1e2750a338abb9a4a5 path: MoDiff persist-credentials: false - name: Verify the pinned backend supports native setup @@ -89,7 +89,7 @@ jobs: with: repository: sdevil7th/MoDiff # Match the immutable backend revision in the Client quality job. - ref: 86c2e281917afaf734c48c31f7b79c5ec1cfa0b2 + ref: 413a2bca931d9dd56a8a4a1e2750a338abb9a4a5 path: MoDiff persist-credentials: false - name: Verify the pinned backend supports native setup diff --git a/AGENTS.md b/AGENTS.md index 108a15fa..be6e9ea8 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -27,6 +27,8 @@ These rules apply to Codex, Copilot-style agents, and any AI tool editing this r ## Generic Workflow Stages +- Keep search metadata with the backend visual stage catalog. Add modes, action names, familiar aliases and typed roles to an existing stage first. Verify name and action searches, click and wire insertion, model switching and saved graph export before adding another public stage. + - Reuse a task- or modality-generic node for the same user-visible job across models and workflows. Put model-specific execution and schema differences in the declared backend adapter. - Use an ordinary node for a stage with one executable action. Expose the inputs, effective controls and outputs the user needs. Fold internal preparation or decoding into a stage only when it shares one owner and its intermediate result has no independent consumer. - Reserve new Blocks for meaningful typed boundaries, such as storyboard shots, reusable compositions, loops or genuine nested control flow. Preserve existing saved Block interfaces and registered definition hashes. diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 14f217c9..1f5b140e 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -744,3 +744,12 @@ AI-assisted contributions are welcome, but the contributor remains responsible f ## Code Of Conduct Participation in this project is governed by [CODE_OF_CONDUCT.md](CODE_OF_CONDUCT.md). Be constructive, assume good intent, and focus review on the work and its impact. + +## Visual node discovery + +The backend publishes the versioned visual node catalog with the full node registry. Give each new user action a destination in the existing stage catalog and describe its action in language a user can search. Test the published mode against its real schema, both pickers, a typed wire and a saved graph. Preserve author titles, connection roles, model ownership and executable identities. Run the paired catalog tests from the backend and client repositories. + +```text +python -m pytest -q tests/test_visual_node_catalog.py +node --test scripts/visual-node-catalog.test.mjs +``` diff --git a/README.md b/README.md index 0c82564d..8f4979c9 100644 --- a/README.md +++ b/README.md @@ -85,7 +85,7 @@ application source pair is: | MoDiff | `1239d1cecd12a7318eb263ca17c34d4fc0445d14` | | MoDiff-client | `c561a01395044fd71c1918e95fb9e9709d8e7601` | -CI backend contract: `86c2e281917afaf734c48c31f7b79c5ec1cfa0b2`. +CI backend contract: `413a2bca931d9dd56a8a4a1e2750a338abb9a4a5`. Both CI jobs use this immutable backend revision. It includes shared video stages, conditional reference requirements, the scoped Linux shared-memory LTX diff --git a/docs/cluster-engineering-lessons.md b/docs/cluster-engineering-lessons.md index 2957ffad..22b3640a 100644 --- a/docs/cluster-engineering-lessons.md +++ b/docs/cluster-engineering-lessons.md @@ -833,6 +833,8 @@ successful run, and retain immutable definitions and unrelated preview owners. graph before and after presentation changes and keep the saved input and output evidence tied to its recorded run. +For visual stage discovery, exercise both a name and an action alias in the picker, import a saved graph, and verify its typed wires and executable export. Search metadata belongs to the published registry. A wording change must preserve the recorded recipe and the approved asset. + Keep acceptance criteria in [workbench acceptance](workbench-acceptance.md), implementation contracts in technical references, and dated plans/run ledgers in Git history or local evidence. Retiring a tracker must preserve unresolved diff --git a/docs/developer-first-node-ux.md b/docs/developer-first-node-ux.md index 086c38a9..2430c8ee 100644 --- a/docs/developer-first-node-ux.md +++ b/docs/developer-first-node-ux.md @@ -344,3 +344,9 @@ recipes acquire the input when the user connects or edits it. The file picker is the fallback when the Source input is disconnected. Files carry their own frame rate and embedded audio. Decoded frames use the frame rate entered on the stage and carry no audio track. + +## Finding a stage by its action + +Browse starts with 15 everyday stages. Show task stages adds 14. Advanced includes six more. Search by stage or action, for example `KSampler`, `CheckpointLoaderSimple`, `Canny` or `fit audio duration`. Expand a result to choose an available action. A search from a wire also checks its type, direction and role. The Docs tab shows the action in the selected stage. Custom authors can declare searchable `searchTerms` on their node class. + +Choose **Show on canvas** to locate an existing instance. For an independently inserted node, open its help menu and use **Stage action** to switch modes. The editor restores values for the selected mode and identifies any wire that needs your attention. For a model-bound workflow, use Model Setup to change the model or task for the connected stages. diff --git a/package.json b/package.json index 48c31a13..fe801dcc 100644 --- a/package.json +++ b/package.json @@ -93,7 +93,7 @@ "test:gallery-queue": "node --test scripts/example-generation-queue.test.mjs scripts/image-prototyping-campaign.test.mjs", "test:driver-contract": "node --test scripts/hugging-face-runtime-contract.test.mjs scripts/workflow-setup.test.mjs", "test:graph-mutations": "node --test scripts/flow-graph-mutations.test.mjs scripts/graph-fixer.test.mjs scripts/conditional-input-requirements.test.mjs scripts/process-image-input-requirements.test.mjs scripts/block-seed-repair-v2.test.mjs scripts/block-derived-control-repair-v2.test.mjs scripts/adapter-chain-links.test.mjs", - "test:graph-visuals": "node --test scripts/graph-visuals.test.mjs scripts/node-measurement-dispatch.test.mjs scripts/node-connection-search.test.mjs", + "test:graph-visuals": "node --test scripts/visual-node-catalog.test.mjs scripts/graph-visuals.test.mjs scripts/node-measurement-dispatch.test.mjs scripts/node-connection-search.test.mjs", "test:media-viewer": "node --test scripts/media-viewer.test.mjs scripts/workflow-png-package.test.mjs", "test:requests": "node --test scripts/controlled-execution-receipt.test.mjs scripts/media-attachment.test.mjs scripts/node-presentation.test.mjs scripts/service-package.test.mjs scripts/node-store-requests.test.mjs scripts/operation-catalog.test.mjs scripts/operation-component-bundle-inputs.test.mjs scripts/operation-component-bundle.test.mjs scripts/operation-authoring.test.mjs scripts/operation-authoring-headless.test.mjs scripts/operation-authoring-recipes.test.mjs scripts/image-stage-groups.test.mjs scripts/shared-stage-inputs.test.mjs scripts/video-stage-groups.test.mjs scripts/model-setup-adapter-authority.test.mjs scripts/audio-authoring.test.mjs scripts/operation-modification-matrix.test.mjs scripts/request-boundary.test.mjs scripts/server-actions.test.mjs scripts/shared-store-requests.test.mjs scripts/supervisor-startup.test.mjs scripts/studio-output-requests.test.mjs scripts/resolved-execution-inputs.test.mjs scripts/prompt-enhancement-summary.test.mjs scripts/ancillary-operations.test.mjs scripts/ancillary-execution-scope.test.mjs scripts/prompt-enhancement-authoring.test.mjs scripts/prompt-enhancement-preview.test.mjs scripts/runtime-resources.test.mjs scripts/websocket-connection.test.mjs scripts/backend-proxy-lifecycle.test.mjs", "test:run-coordinator": "node --test scripts/run-coordinator.test.mjs scripts/ancillary-run-coordinator.test.mjs scripts/compatibility-panel.test.mjs scripts/run-issue-store.test.mjs scripts/block-runtime-hints-v2.test.mjs scripts/workflow-auto-weight-loading.test.mjs", diff --git a/scripts/bundle-budget.mjs b/scripts/bundle-budget.mjs index bb081e93..2adaf756 100644 --- a/scripts/bundle-budget.mjs +++ b/scripts/bundle-budget.mjs @@ -490,6 +490,8 @@ const SOURCE_LICENSES = new URL('../public/THIRD_PARTY_LICENSES.txt', import.met // 504492/682980/346033 largest/startup/deferred gzip bytes: the reviewed // migration ceilings below still pass with 8/12/304 bytes of headroom. const MAX_STARTUP_CHUNK_GZIP_BYTES = + // Stage discovery, action search and compatible mode changes (524253 -> 528821 gzip bytes). + 4568 + // Exact connected model summaries add 501 gzip bytes (523747 -> 524248). 501 + // Exact Inpaint input evidence and shared role labels add 65 gzip bytes. @@ -761,6 +763,8 @@ const MAX_STARTUP_CHUNK_GZIP_BYTES = // The same build measures 673359 aggregate startup bytes (+45 over the cap). // Keep 19 bytes of headroom; deferred limits and loading boundaries stay fixed. const MAX_STARTUP_GZIP_BYTES = + // Stage discovery, action search and compatible mode changes (702737 -> 707310 gzip bytes). + 4573 + // The same change adds 498 aggregate startup gzip bytes (702235 -> 702733). 498 + // The same changes add 68 aggregate startup gzip bytes. @@ -1093,6 +1097,8 @@ const MAX_DEFERRED_CHUNK_GZIP_BYTES = 64 * 1024; // Startup code differs only in the three verified Dataset descriptor values. // Retain both startup caps, the independent 64 KiB chunk cap and prior headroom. const MAX_DEFERRED_GZIP_BYTES = + // Stage discovery, action search and compatible mode changes (355589 -> 357408 gzip bytes). + 1819 + // Applicable conditioning controls add 646 deferred gzip bytes (355104 -> 355750). 646 + // Bound media input receipts and stage captions add 173 deferred gzip bytes. diff --git a/scripts/visual-node-catalog.test.mjs b/scripts/visual-node-catalog.test.mjs new file mode 100644 index 00000000..0ee3575b --- /dev/null +++ b/scripts/visual-node-catalog.test.mjs @@ -0,0 +1,209 @@ +import assert from 'node:assert/strict'; +import { readFileSync } from 'node:fs'; +import { after, before, test } from 'node:test'; +import { createServer } from 'vite'; +const metadata = JSON.parse( + readFileSync(new URL('../../MoDiff/modiff/visual_node_catalog.v1.json', import.meta.url), 'utf8'), +); +let server, api, guide, registry, catalog; +before(async () => { + const values = new Map(); + globalThis.localStorage = { + getItem: (key) => values.get(key) ?? null, + setItem: (key, value) => values.set(key, value), + removeItem: (key) => values.delete(key), + }; + globalThis.window = { localStorage, location: { origin: 'http://127.0.0.1:8088' }, dispatchEvent: () => true }; + server = await createServer({ + configFile: false, + logLevel: 'silent', + server: { middlewareMode: true, watch: null }, + appType: 'custom', + }); + api = await server.ssrLoadModule('/src/studio/visualNodeCatalog.ts'); + guide = (await server.ssrLoadModule('/src/studio/imageStageGuidance.ts')).imageStageGuidance; + catalog = api.parseVisualCatalog(metadata); + registry = {}; + for (const stage of catalog.stages) + for (const mode of stage.modes) { + const parts = mode.node.split('.'); + const n = (registry[mode.node] ??= { + module: parts.slice(0, 2).join('.'), + action: parts[2], + label: parts[2], + params: {}, + }); + for (const [field, value] of Object.entries(mode.settings ?? {})) { + const p = (n.params[field] ??= { options: [] }); + if (!p.options.includes(value)) p.options.push(value); + } + } +}); +after(async () => await server?.close()); +test('shipped image and video stages use the same picker titles after reopening and preserve user titles', async () => { + const { exampleWorkflowSnapshotFromGraph } = await server.ssrLoadModule('/src/studio/exampleWorkflow.ts'); + const { normalizePersistedFlowState } = await server.ssrLoadModule('/src/stores/useFlowStore.ts'); + const { DEFAULT_STUDIO_FORM } = await server.ssrLoadModule('/src/studio/modelProfiles.ts'); + for (const [file, expected] of [ + ['z-image-modular-pipeline/text-to-image', 'Generate Image'], + ['wan-video-pipeline/text-to-video', 'Generate Video'], + ]) { + const raw = JSON.parse(readFileSync(new URL('../../MoDiff/data/graphs/studio/' + file + '.json', import.meta.url))); + const fresh = exampleWorkflowSnapshotFromGraph(raw, 'default', DEFAULT_STUDIO_FORM); + for (const state of [fresh, normalizePersistedFlowState(structuredClone(fresh))]) { + const generate = state.nodes.find((n) => n.data.label === 'Generate'); + assert.ok(generate, file); + const before = JSON.stringify(generate.data); + assert.equal(api.visualNodeTitle(catalog, generate.data), expected); + assert.equal(api.visualNodeTitle(null, generate.data), 'Generate'); + assert.equal(api.visualNodeTitle(catalog, { ...generate.data, label: 'Opening shot' }), 'Opening shot'); + assert.equal(JSON.stringify(generate.data), before); + } + } +}); +test('35 stages, tiered browsing and every published alias and exact ID can reach its stage', () => { + const results = (query, options) => api.visualStageMatches(catalog, registry, query, options); + assert.equal(results('').length, 15); + assert.equal(results('', { targeted: true }).length, 29); + assert.equal(results('', { all: true }).length, 35); + for (const stage of catalog.stages) { + assert.equal(results(stage.label)[0].stage.id, stage.id, stage.label); + for (const mode of stage.modes) { + for (const query of [mode.node, mode.label, ...(mode.terms ?? [])]) { + const hits = results(query); + assert.equal(new Set(hits.map((hit) => hit.stage.id)).size, hits.length); + assert.ok( + hits.some((hit) => hit.stage.id === stage.id), + query + ' → ' + stage.id, + ); + } + } + } + assert.deepEqual(results('!!!'), []); + assert.equal(results('Canny')[0].stage.label, 'Control Map'); + assert.equal(results('CheckpointLoaderSimple')[0].stage.label, 'Model Setup'); + assert.equal(results('KSampler')[0].stage.label, 'Generate Image'); + assert.equal(results('VAEDecode')[0].stage.label, 'Generate Image'); + assert.equal(results('last extract frame')[0].stage.label, 'Process Video'); +}); +test('search, drag, insertion and reopening agree on preset values without rewriting the saved graph', () => { + const hit = api.visualStageMatches(catalog, registry, 'Gaussian blur')[0]; + assert.equal(hit.stage.id, 'process-image'); + assert.equal(hit.definition.params.filter_operation.value, 'gaussian_blur'); + const token = api.stageDragKey(hit.stage, hit.mode); + assert.deepEqual(api.stageFromDrag(token, catalog, registry), hit.definition); + assert.equal(api.stageFromDrag(token.replace('Gaussian blur', 'unknown'), catalog, registry), null); + assert.equal(registry[hit.mode.node].params.operation.value, undefined); + const saved = JSON.stringify(hit.definition); + assert.equal(api.visualStageForNode(catalog, JSON.parse(saved)).mode.label, 'Gaussian blur'); + assert.equal(api.visualNodeTitle(catalog, hit.definition, registry[hit.mode.node]), 'Process Image'); + assert.equal( + api.visualNodeTitle(catalog, { ...hit.definition, label: 'My optical finish' }, registry[hit.mode.node]), + 'My optical finish', + ); + assert.equal(JSON.stringify(hit.definition), saved); +}); +test('selected model, required wire and disabled preset narrow insertable choices', () => { + const key = 'modules.DiffusersImage.ControlGenerate'; + const operation = { nodeKey: key, pipelineClass: 'ControlModel', task: 'text_to_image' }; + const hits = api.visualStageMatches(catalog, registry, '', { operations: [operation] }); + const hit = hits.find((h) => h.stage.id === 'generate-image'); + assert.deepEqual( + hit.choices.map((c) => c.operation), + [operation], + ); + assert.ok(!hits.some((h) => h.stage.id === 'edit-image')); + assert.ok(!api.visualStageMatches(catalog, registry, 'KSampler', { operations: [] }).length); + const decode = api.visualStageMatches(catalog, registry, 'VAE Decode', { + compatible: (n) => n.action === 'DecodeLatents', + }); + assert.equal(decode[0].mode.node, 'modules.DiffusersImage.DecodeLatents'); + const mode = { node: key, label: 'unsafe preset', settings: { choice: 'off' } }; + assert.equal( + api.stageDefinition(mode, { + [key]: { ...registry[key], params: { choice: { options: [{ value: 'off', disabled: true }] } } }, + }), + null, + ); + assert.equal(api.parseVisualCatalog(undefined), null); + assert.throws(() => api.parseVisualCatalog({ ...metadata, stages: [metadata.stages[0], metadata.stages[0]] })); +}); +test('control guidance preserves identity, compatible values and guide wires across model changes', () => { + const make = (action, more = {}) => ({ + module: 'modules.DiffusersImage', + action, + label: action, + params: { + pipeline: { type: 'pipeline', display: 'input', signalCompatibility: { required: true, action: '$node' } }, + steps: { type: 'int', value: 12 }, + ...more, + }, + }); + const plain = make('Edit'), + controlled = make('ControlEdit', { + control_image: { type: 'image', display: 'input', required: true }, + conditioning_scale: { type: 'float', default: 1 }, + }); + const defs = { 'modules.DiffusersImage.Edit': plain, 'modules.DiffusersImage.ControlEdit': controlled }; + const edge = { source: 'model', sourceHandle: 'out', target: 'edit', targetHandle: 'pipeline' }; + const context = (data, actions, extra = []) => { + const edit = { id: 'edit', data }; + const source = { + id: 'model', + data: { params: { out: { type: 'pipeline', display: 'output', signal: { value: { actions } } } } }, + }; + return guide(edit, [source, edit], [edge, ...extra], defs, catalog); + }; + const both = { Edit: ['edit'], ControlEdit: ['edit'] }; + const enabled = context(plain, both).next; + assert.equal(enabled.action, 'ControlEdit'); + assert.equal(enabled.params.steps.value, 12); + enabled.params.conditioning_scale = { ...enabled.params.conditioning_scale, value: 0.73 }; + assert.match(context(enabled, { ControlEdit: ['edit'] }).reason, /requires/); + assert.match(context(enabled, { Edit: ['edit'] }).reason, /does not support/); + assert.match( + context(enabled, both, [{ source: 'guide', target: 'edit', targetHandle: 'control_image' }]).reason, + /Disconnect/, + ); + const disabled = context(enabled, both).next; + assert.equal(context(disabled, both).next.params.conditioning_scale.value, 0.73); + assert.equal(context(plain, { Edit: ['edit'] }), null); +}); + +test('changing a manual stage restores action-specific settings and refuses an incompatible live wire', async () => { + const { changeStageAction } = await server.ssrLoadModule('/src/studio/stageActionChange.ts'); + const stage = catalog.stages.find((s) => s.id === 'media-input'), + loadImage = stage.modes.find((m) => m.node === 'modules.Image.Load'), + loadAudio = stage.modes.find((m) => m.node === 'modules.Audio.Load'); + const defs = {}; + for (const [m, type] of [ + [loadImage, 'image'], + [loadAudio, 'audio'], + ]) + defs[m.node] = { + ...registry[m.node], + label: 'Load', + params: { path: { type: 'string', default: '' }, out: { type, display: 'output' } }, + }; + const image = { + id: 'source', + data: { + ...defs[loadImage.node], + params: { ...defs[loadImage.node].params, path: { type: 'string', value: 'example.png' } }, + }, + }; + const sound = changeStageAction(image, loadAudio, catalog, defs, [image], []); + assert.equal(sound.params.path.value, undefined); + const reopened = { id: 'source', data: JSON.parse(JSON.stringify(sound)) }; + assert.equal(changeStageAction(reopened, loadImage, catalog, defs, [reopened], []).params.path.value, 'example.png'); + const viewer = { + id: 'viewer', + data: { module: 'custom.Test', action: 'Show', params: { input: { display: 'input', type: 'image' } } }, + }; + const edge = { source: 'source', sourceHandle: 'out', target: 'viewer', targetHandle: 'input' }; + assert.throws( + () => changeStageAction(image, loadAudio, catalog, defs, [image, viewer], [edge]), + /connection is incompatible/, + ); + assert.equal(image.data.params.path.value, 'example.png'); +}); diff --git a/src/components/CustomNode.tsx b/src/components/CustomNode.tsx index 169456c4..3adbae40 100644 --- a/src/components/CustomNode.tsx +++ b/src/components/CustomNode.tsx @@ -1,4 +1,6 @@ -import { nodeDisplayLabel } from '../workflow/nodePresentation'; +import { visualNodeTitle, visualStageForNode } from '../studio/visualNodeCatalog'; +import ImageGuidanceChoice from './ImageGuidanceChoice'; +import StageActionChoice from './StageActionChoice'; // Derived from cubiq/Mellon-client and modified by the MoDiff project. import { NodeProps, useStoreApi } from '@xyflow/react'; @@ -33,7 +35,7 @@ import { } from 'lucide-react'; import { CustomNodeType, useFlowStore } from '../stores/useFlowStore'; -import { NodeParams } from '../stores/useNodeStore'; +import { useNodesStore, type NodeParams } from '../stores/useNodeStore'; import { useSettingsStore } from '../stores/useSettingsStore'; import { useWebsocketStore } from '../stores/useWebsocketStore'; import { prepareExecutionScope } from '../workflow/prepareExecutionScope'; @@ -126,7 +128,10 @@ type NodeSurface = { const CustomNode = memo((node: NodeProps & { surface?: NodeSurface }) => { const nodeRef = useRef(null); const style = sanitizeModiffNodeStyle(node.data.style, `${node.id}.node`); - const label = nodeDisplayLabel(node.data); + const catalog = useNodesStore((state) => state.visualNodeCatalog); + const registered = useNodesStore((state) => state.nodesRegistry[`${node.data.module}.${node.data.action}`]); + const stage = node.surface ? null : visualStageForNode(catalog, node.data); + const label = visualNodeTitle(catalog, node.data, registered); const hasAudioPlayer = node.surface?.hasAudioPreview || Object.values(node.data.params).some((param) => param.display === 'ui_audio'); const minimumNodeWidth = hasAudioPlayer ? modiffLayout.audioPreviewNodeMinWidth : modiffLayout.nodeMinWidth; @@ -387,7 +392,9 @@ const CustomNode = memo((node: NodeProps & { surface?: NodeSurfa >

- {label} + + {label} + {showDisabledForRun && Disabled for run export} {recentChangeLabel && {recentChangeLabel}}
@@ -425,6 +432,12 @@ const CustomNode = memo((node: NodeProps & { surface?: NodeSurfa {helpAnchor && ( setHelpAnchor(null)} className="max-w-[480px] p-3">
{label}
+ {stage && } + {stage && ( +

+ What this stage does · {stage.mode.label} +

+ )} {node.data.description &&
{node.data.description}
} {Object.entries(node.data.params).map(([key, param]) => param.description ? ( @@ -456,6 +469,10 @@ const CustomNode = memo((node: NodeProps & { surface?: NodeSurfa data-testid={`node-scroll-body-${node.id}`} > + {stage && !node.surface && stage.mode.label !== label && ( +

{stage.mode.label}

+ )} + {stage?.mode.guidance && !node.surface && } {node.surface?.controls ?? ( (); diff --git a/src/components/GraphNodeInputs.tsx b/src/components/GraphNodeInputs.tsx index e1031589..7feaa1e1 100644 --- a/src/components/GraphNodeInputs.tsx +++ b/src/components/GraphNodeInputs.tsx @@ -1,10 +1,10 @@ -import { nodeDisplayLabel } from '../workflow/nodePresentation'; +import { visualNodeTitle } from '../studio/visualNodeCatalog'; import { useCallback, useMemo, useState } from 'react'; import { useShallow } from 'zustand/react/shallow'; import { useFlowStore } from '../stores/useFlowStore'; import { Pin, PinOff } from 'lucide-react'; import type { CustomNodeType } from '../stores/useFlowStore'; -import type { NodeParams } from '../stores/useNodeStore'; +import { useNodesStore, type NodeParams } from '../stores/useNodeStore'; import { graphNodeControlParams, updateGraphNodeControl, @@ -39,6 +39,8 @@ export function GraphNodeInputs({ controlIdPrefix?: string; }) { const [disclosureState, setDisclosureState] = useState>({}); + const catalog = useNodesStore((state) => state.visualNodeCatalog); + const registry = useNodesStore((state) => state.nodesRegistry); const pinnedSet = useMemo(() => new Set(pinnedIds), [pinnedIds]); const selectedNode = selectedNodes.length === 1 ? selectedNodes[0] : null; const incomingEdges = useFlowStore( @@ -90,7 +92,7 @@ export function GraphNodeInputs({ const disclosureKey = `${workflowId ?? 'unscoped'}:${node.id}`; const rememberedOpen = disclosureState[disclosureKey] ?? inspectorDisclosureMemory.get(disclosureKey); const defaultOpen = selected || (rememberedOpen ?? index === 0); - const label = nodeDisplayLabel(node.data); + const label = visualNodeTitle(catalog, node.data, registry[node.data.module + '.' + node.data.action]); const fieldCount = Object.keys(params).length; const controls = !nodes.some(({ id }) => id === node.id) ? ( diff --git a/src/components/ImageGuidanceChoice.tsx b/src/components/ImageGuidanceChoice.tsx new file mode 100644 index 00000000..01eccf98 --- /dev/null +++ b/src/components/ImageGuidanceChoice.tsx @@ -0,0 +1,43 @@ +import { useFlowStore } from '../stores/useFlowStore'; +import { useNodesStore } from '../stores/useNodeStore'; +import { imageStageGuidance } from '../studio/imageStageGuidance'; +import { ModiffButton } from '../ui'; + +export default function ImageGuidanceChoice({ nodeId }: { nodeId: string }) { + const nodes = useFlowStore((s) => s.nodes); + const edges = useFlowStore((s) => s.edges); + const registry = useNodesStore((s) => s.nodesRegistry); + const catalog = useNodesStore((s) => s.visualNodeCatalog); + const node = nodes.find((item) => item.id === nodeId); + const choice = node && imageStageGuidance(node, nodes, edges, registry, catalog); + if (!choice) return null; + if (choice.reason) return

{choice.reason}

; + return ( + { + const flow = useFlowStore.getState(); + const current = flow.nodes.find((item) => item.id === nodeId); + if (!current) return; + const currentRegistry = useNodesStore.getState(); + const updated = imageStageGuidance( + current, + flow.nodes, + flow.edges, + currentRegistry.nodesRegistry, + currentRegistry.visualNodeCatalog, + )?.next; + if (updated) + flow.replaceGraph( + { + nodes: flow.nodes.map((peer) => (peer === current ? { ...current, data: updated } : peer)), + edges: flow.edges, + }, + { historyLabel: choice.label }, + ); + }} + > + {choice.label} + + ); +} diff --git a/src/components/NodeInspectionDetails.tsx b/src/components/NodeInspectionDetails.tsx index ae0c6f97..fee596dd 100644 --- a/src/components/NodeInspectionDetails.tsx +++ b/src/components/NodeInspectionDetails.tsx @@ -11,6 +11,7 @@ import { nodeConnectorParams } from '../studio/nodeConnectorResolution'; import { isOptionalEncodingHandle } from '../workflow/encodingOptionalInput'; import { nodeFieldDisplayLabel } from '../workflow/nodePresentation'; import { unresolvedSignalControls } from '../workflow/signalControlPresentation'; +import { visualStageForNode } from '../studio/visualNodeCatalog'; /** Read only. Selecting a section cannot resolve schemas, import code or allocate models. */ export default function NodeInspectionDetails({ @@ -24,6 +25,7 @@ export default function NodeInspectionDetails({ const owner = useFlowStore((state) => state.nodes.find((item) => item.id === node.data.blockProjectionOwnerId)); const extension = useNodesStore((state) => state.customModules.find((item) => item.moduleKey === node.data.module)); const hint = operationAuthoring(node); + const catalog = useNodesStore((state) => state.visualNodeCatalog); const instance = node.data.blockInstanceV2; const source = instance?.definitionSnapshot.source; const identity = `${node.data.module}.${node.data.action}`; @@ -115,8 +117,21 @@ export default function NodeInspectionDetails({ if (section === 'docs') { const description = instance?.definitionSnapshot.description || node.data.description; + const actions = instance + ? instance.effectiveGraph.nodes + .filter((entry) => !entry.containerInterface) + .map((entry) => (typeof entry.data.label === 'string' ? entry.data.label : entry.nodeType)) + : [visualStageForNode(catalog, node.data)?.mode.label ?? node.data.label]; return (
+
+

What this stage does

+
    + {actions.map((action, i) => ( +
  • {action}
  • + ))} +
+

{description || 'No description supplied by this node.'}

{instance ? (

diff --git a/src/components/NodeList.tsx b/src/components/NodeList.tsx index 6fe0364b..da4baebb 100644 --- a/src/components/NodeList.tsx +++ b/src/components/NodeList.tsx @@ -3,6 +3,9 @@ import NodeDiscoveryFilters from './NodeDiscoveryFilters'; import CustomNodeLibrary from './CustomNodeLibrary'; import { useNodeDiscovery } from '../stores/useNodeDiscoveryStore'; import RuntimeNodeGroupsV2 from './RuntimeNodeGroupsV2'; +import VisualStageLibrary from './VisualStageLibrary'; +import { visualStageMatches } from '../studio/visualNodeCatalog'; +import { operationsForTask } from '../workflow/operationCatalog'; // Derived from cubiq/Mellon-client and modified by the MoDiff project. import { lazy, Suspense, useCallback, useEffect, useMemo, useState } from 'react'; @@ -98,6 +101,8 @@ const OperationCatalogPanel = lazy(() => import('./OperationCatalogPanel')); function NodeList() { const nodesRegistry = useNodesStore((state) => state.nodesRegistry); + const stageCatalog = useNodesStore((state) => state.visualNodeCatalog); + const [showMoreStages, setShowMoreStages] = useState(false); const operationContracts = useNodesStore((state) => state.operationContracts); const pipelineSupport = useNodesStore((state) => state.pipelineSupport); const addNode = useFlowStore((state) => state.addNode); @@ -129,6 +134,22 @@ function NodeList() { const [extensionsKind, setExtensionsKind] = useState<'local' | 'hub'>('local'); const [clusterInsertionIds, setClusterInsertionIds] = useState>(() => new Set()); const { view: effectiveCatalogView, pipeline, task } = useNodeDiscovery(); + const stageResults = useMemo( + () => + stageCatalog + ? visualStageMatches(stageCatalog, nodesRegistry, search, { + all: effectiveCatalogView === 'advanced' || effectiveCatalogView === 'all', + targeted: showMoreStages, + operations: pipeline ? operationsForTask(operationContracts, pipeline, task) : undefined, + }) + : [], + [stageCatalog, nodesRegistry, search, effectiveCatalogView, showMoreStages, operationContracts, pipeline, task], + ); + const rawRegistryVisible = !stageCatalog; + const represented = useMemo( + () => new Set(stageResults.flatMap((s) => s.choices.flatMap((c) => (c.operation ? [c.operation] : [])))), + [stageResults], + ); const catalogNodes = useMemo( () => runtimeCatalogNodes(nodesRegistry, operationContracts, pipelineSupport, effectiveCatalogView, { pipeline, task }), @@ -163,15 +184,14 @@ function NodeList() { () => huggingFaceSections.reduce((total, section) => total + section.entries.length, 0), [huggingFaceSections], ); - const runtimeNodeCount = useMemo( - () => - nodeCatalogEntries(catalogNodes).filter( - (entry) => - nodeCatalogEntryMatchesView(entry, effectiveCatalogView, Boolean(search.trim())) && - nodeCatalogEntryMatchesSearch(entry, search), - ).length, - [catalogNodes, effectiveCatalogView, search], - ); + const runtimeNodeCount = useMemo(() => { + if (stageCatalog) return 0; + return nodeCatalogEntries(catalogNodes).filter( + (entry) => + nodeCatalogEntryMatchesView(entry, effectiveCatalogView, Boolean(search.trim())) && + nodeCatalogEntryMatchesSearch(entry, search), + ).length; + }, [catalogNodes, effectiveCatalogView, search, stageCatalog]); const handleInsertUserBlock = useCallback( (block: StoredUserBlockDefinition) => { @@ -216,8 +236,17 @@ function NodeList() { height: 420, }); addNode({ ...node, selected: true }); + if (activeWorkflowTabId) { + const time = Date.now(); + setWorkflowFocusRequest({ + workflowTabId: activeWorkflowTabId, + nodeId: node.id, + requestId: time, + requestedAt: time, + }); + } }, - [addNode, nodeCount, nodesRegistry, viewport], + [addNode, nodeCount, nodesRegistry, viewport, activeWorkflowTabId, setWorkflowFocusRequest], ); const handleInsertHuggingFaceCluster = useCallback( @@ -325,7 +354,8 @@ function NodeList() {

Nodes

- {runtimeNodeCount} nodes · {huggingFaceCatalogCount} catalog entries + {stageCatalog ? `${stageResults.length} stages` : `${runtimeNodeCount} nodes`} ·{' '} + {huggingFaceCatalogCount} catalog entries

@@ -372,6 +402,14 @@ function NodeList() {

+ {stageCatalog && ( + <> + setShowMoreStages(!showMoreStages)}> + {showMoreStages ? 'Everyday stages' : 'Show task stages'} + + + + )} - + !key.startsWith('custom.')))} + nodes={ + rawRegistryVisible + ? Object.fromEntries(Object.entries(catalogNodes).filter(([key]) => !key.startsWith('custom.'))) + : {} + } search={search} view={effectiveCatalogView} userBlocks={[...userBlockDefinitionsV2, ...userBlocks]} diff --git a/src/components/NodeSearchDialog.tsx b/src/components/NodeSearchDialog.tsx index 7ad4ff8e..b25026e6 100644 --- a/src/components/NodeSearchDialog.tsx +++ b/src/components/NodeSearchDialog.tsx @@ -1,4 +1,6 @@ import { nodeDisplayLabel } from '../workflow/nodePresentation'; +import { visualStageMatches, type StageMatch } from '../studio/visualNodeCatalog'; +import { operationsForTask } from '../workflow/operationCatalog'; // Derived from cubiq/Mellon-client and modified by the MoDiff project. import { useCallback, useEffect, useState, useMemo, useRef } from 'react'; @@ -24,6 +26,7 @@ import { connectionSearchEntries, operationSearchEntries, prepareOperationConnection, + stageOperationMatchesWire, rankConnectionSearchEntries, matchingNodeHandleForDrop, savedBlockSearchEntries, @@ -41,6 +44,7 @@ import { buildHuggingFaceCatalogSections, type HuggingFaceCatalogEntry } from '. import { catalogNodeSearchEntries, createCatalogSearchNode } from '../workflow/catalogNodeSearch'; type SearchEntry = { + stage?: StageMatch; key: string; label: string; node?: NodeData; @@ -71,6 +75,7 @@ const NodeSearchDialog = ({ }: NodeSearchDialogProps) => { const { pipeline, task, view, support } = useNodeDiscovery(); const operations = useNodesStore((s) => s.operationContracts); + const stageCatalog = useNodesStore((s) => s.visualNodeCatalog); const resolve = useNodesStore((s) => s.resolveOperation); const workflow = useStudioStore((s) => s.activeWorkflowTabId); const canvasEpoch = useStudioStore((s) => s.workflowCanvasEpoch); @@ -161,7 +166,27 @@ const NodeSearchDialog = ({ ); const browsingCommon = (view === 'common' || view === 'experimental') && !handleType && !searchQuery.trim(); const filteredNodes = useMemo(() => { + const stages = stageCatalog + ? visualStageMatches(stageCatalog, nodes, searchQuery, { + all: view === 'advanced' || view === 'all', + targeted: Boolean(handleType), + operations: pipeline ? operationsForTask(operations, pipeline, task) : undefined, + compatible: (node, op) => + !handleType || + (op + ? stageOperationMatchesWire(node, op, dataType, handleType, origin, allowUnverified) + : Boolean(matchingNodeHandleForDrop(node, dataType, handleType, origin, allowUnverified))), + }) + : []; + const represented = new Set(stages.map((s) => s.operation).filter(Boolean)); const entries = [ + ...stages.map((stage) => ({ + stage, + key: 'stage:' + stage.stage.id, + label: stage.stage.label, + node: stage.definition, + operation: stage.operation, + })), ...operationSearchEntries( operations, pipeline, @@ -172,19 +197,29 @@ const NodeSearchDialog = ({ nodes, origin, allowUnverified, - ).map((operation) => ({ - key: `operation:${operation.operationId}`, - label: operationLabel(operation), - operation, - node: nodes[operation.nodeKey], + ) + .filter((operation) => !represented.has(operation)) + .map((operation) => ({ + key: `operation:${operation.operationId}`, + label: operationLabel(operation), + operation, + node: nodes[operation.nodeKey], + })), + ...connectionSearchEntries( + stageCatalog + ? Object.fromEntries(Object.entries(catalogNodes).filter(([, node]) => node.module.startsWith('custom.'))) + : catalogNodes, + dataType, + handleType, + searchQuery, + view, + origin, + allowUnverified, + ).map(([key, node]) => ({ + key, + node, + label: nodeDisplayLabel(node), })), - ...connectionSearchEntries(catalogNodes, dataType, handleType, searchQuery, view, origin, allowUnverified).map( - ([key, node]) => ({ - key, - node, - label: nodeDisplayLabel(node), - }), - ), ...(browsingCommon && !browseBlocks ? [] : catalogEntries).map((catalog) => ({ key: `catalog:${catalog.id}`, label: catalog.label, @@ -200,6 +235,7 @@ const NodeSearchDialog = ({ ]; return rankConnectionSearchEntries(entries, dataType, handleType, origin); }, [ + stageCatalog, catalogNodes, operations, pipeline, @@ -283,10 +319,11 @@ const NodeSearchDialog = ({ createNode = (position) => createStoredUserBlockNode(block, position); } else if (entry.node) { const node = entry.node; - createNode = (position) => createNodeFromRegistry(entry.key, { [entry.key]: node }, position)!; + const key = entry.stage?.mode.node ?? entry.key; + createNode = (position) => createNodeFromRegistry(key, { [key]: node }, position)!; } else return; if (request.signal.aborted || useNodeDiscoveryStore.getState().selection !== selection) return; - assertWorkflowOperationContext(context, { includeForm: false }); + assertWorkflowOperationContext(context, { includeForm: Boolean(entry.operation && entry.stage && !selection) }); await onSelect(createNode, request.signal, allowUnverified); if (request.signal.aborted) return; handleClose(); @@ -351,6 +388,7 @@ const NodeSearchDialog = ({ )} >
{entry.label}
+ {entry.stage &&
{entry.stage.detail}
} {entry.block ?
Saved Block · {entry.revision}
: null} {entry.catalog ? (
diff --git a/src/components/OperationCatalogPanel.tsx b/src/components/OperationCatalogPanel.tsx index ce1979be..0c92662e 100644 --- a/src/components/OperationCatalogPanel.tsx +++ b/src/components/OperationCatalogPanel.tsx @@ -20,9 +20,11 @@ import { withOperationAuthoring } from '../workflow/operationAuthoring'; export default function OperationCatalogPanel({ search, onInsert, + represented, }: { search: string; onInsert: (key: string, node: NodeData) => void; + represented?: Set; }) { const operations = useNodesStore((state) => state.operationContracts); const registry = useNodesStore((state) => state.nodesRegistry); @@ -103,35 +105,37 @@ export default function OperationCatalogPanel({ ) : null}
{selected?.operationIds.length ? : null} - {entries.map((operation) => ( - { - if (busy) { - event.preventDefault(); - return; - } - event.dataTransfer.setData('text/plain', beginOperationDrag(operation)); - event.dataTransfer.effectAllowed = 'move'; - }} - onDragEnd={endOperationDrag} - disabled={busy} - aria-busy={busy || undefined} - onClick={() => void insert(operation)} - title={`Add ${operationLabel(operation)} for ${operation.pipelineClass}. ${operation.decomposition === 'pipeline' ? 'This operation calls the complete pipeline.' : 'Uses the existing node execution path.'}`} - > - {operationLabel(operation)} - - {operation.decomposition === 'pipeline' - ? 'Pipeline' - : operation.decomposition === 'loader' - ? 'Load' - : 'Node'} - - - ))} + {entries + .filter((operation) => !represented?.has(operation)) + .map((operation) => ( + { + if (busy) { + event.preventDefault(); + return; + } + event.dataTransfer.setData('text/plain', beginOperationDrag(operation)); + event.dataTransfer.effectAllowed = 'move'; + }} + onDragEnd={endOperationDrag} + disabled={busy} + aria-busy={busy || undefined} + onClick={() => void insert(operation)} + title={`Add ${operationLabel(operation)} for ${operation.pipelineClass}. ${operation.decomposition === 'pipeline' ? 'This operation calls the complete pipeline.' : 'Uses the existing node execution path.'}`} + > + {operationLabel(operation)} + + {operation.decomposition === 'pipeline' + ? 'Pipeline' + : operation.decomposition === 'loader' + ? 'Load' + : 'Node'} + + + ))} {selected && !entries.length && selected.operationIds.length > 0 ? (

No operations match this search.

) : null} diff --git a/src/components/StageActionChoice.tsx b/src/components/StageActionChoice.tsx new file mode 100644 index 00000000..b1bc1dd2 --- /dev/null +++ b/src/components/StageActionChoice.tsx @@ -0,0 +1,60 @@ +import { useState } from 'react'; +import { useFlowStore } from '../stores/useFlowStore'; +import { useNodesStore } from '../stores/useNodeStore'; +import { stageDefinition, visualStageForNode } from '../studio/visualNodeCatalog'; +import { changeStageAction } from '../studio/stageActionChange'; +import { ModiffSelect } from '../ui'; + +/** Ordinary manually authored stages. Managed model switches and saved Block + * interfaces keep their existing owners. */ +export default function StageActionChoice({ nodeId }: { nodeId: string }) { + const node = useFlowStore((s) => s.nodes.find((n) => n.id === nodeId)); + const catalog = useNodesStore((s) => s.visualNodeCatalog); + const registry = useNodesStore((s) => s.nodesRegistry); + const [reason, setReason] = useState(''); + const current = node && visualStageForNode(catalog, node.data); + if ( + !node || + !catalog || + !current || + node.parentId || + node.data.studioRole || + node.data.operationAuthoring || + node.data.blockProjectionOwnerId || + node.data.blockInstanceV2 || + current.mode.guidance + ) + return null; + const choices = current.stage.modes.filter((m) => !m.guidance && stageDefinition(m, registry)); + if (choices.length < 2) return null; + return ( +
+ ({ value: String(i), label: m.label }))} + onValueChange={(v) => { + const flow = useFlowStore.getState(), + selected = choices[Number(v)], + live = flow.nodes.find((n) => n.id === nodeId); + if (!selected || !live) return; + try { + const next = changeStageAction(live, selected, catalog, registry, flow.nodes, flow.edges); + flow.replaceGraph( + { nodes: flow.nodes.map((n) => (n === live ? { ...n, data: next } : n)), edges: flow.edges }, + { historyLabel: 'Change stage action' }, + ); + setReason(''); + } catch (error) { + setReason(error instanceof Error ? error.message : 'Could not change this stage.'); + } + }} + /> + {reason && ( +

+ {reason} +

+ )} +
+ ); +} diff --git a/src/components/VisualStageLibrary.tsx b/src/components/VisualStageLibrary.tsx new file mode 100644 index 00000000..00bd9d7c --- /dev/null +++ b/src/components/VisualStageLibrary.tsx @@ -0,0 +1,140 @@ +import { useEffect, useRef, useState } from 'react'; +import { ModiffButton, ModiffDisclosure, ModiffSelect } from '../ui'; +import { useNodesStore, type NodeData } from '../stores/useNodeStore'; +import { assertWorkflowOperationContext, captureWorkflowOperationContext } from '../stores/useStudioStore'; +import { useNodeDiscoveryStore } from '../stores/useNodeDiscoveryStore'; +import { beginOperationDrag, endOperationDrag } from '../workflow/operationDrag'; +import { withOperationAuthoring } from '../workflow/operationAuthoring'; +import { formatRequestError } from '../utils/requestJson'; +import { stageDragKey, type StageChoice, type StageMatch } from '../studio/visualNodeCatalog'; +import { useFlowStore } from '../stores/useFlowStore'; +import { useSettingsStore } from '../stores/useSettingsStore'; + +export default function VisualStageLibrary({ + matches, + insert, + searching, +}: { + matches: StageMatch[]; + insert: (key: string, definition: NodeData) => void; + searching: boolean; +}) { + const [chosen, setChosen] = useState<{ match: StageMatch; index: number } | null>(null); + const [error, setError] = useState(''); + const nodes = useFlowStore((s) => s.nodes); + const pending = useRef(null); + useEffect(() => () => pending.current?.abort(), []); + async function add(match: StageChoice) { + let definition = match.definition; + const request = new AbortController(); + pending.current?.abort(); + pending.current = request; + setError(''); + const context = captureWorkflowOperationContext(); + const selection = useNodeDiscoveryStore.getState().selection; + try { + if (match.operation) { + const node = await useNodesStore.getState().resolveOperation(match.operation, request.signal); + if (request.signal.aborted || useNodeDiscoveryStore.getState().selection !== selection) return; + assertWorkflowOperationContext(context); + definition = withOperationAuthoring(node, match.operation); + } + insert(`${definition.module}.${definition.action}`, definition); + } catch (e) { + if (!request.signal.aborted) setError(formatRequestError(e, 'Could not add the selected stage.')); + } finally { + if (pending.current === request) pending.current = null; + } + } + return ( +
+ {error && ( +

+ {error} +

+ )} + {matches.map((match) => { + const choices = match.choices; + const index = + chosen?.match === match + ? chosen.index + : choices.findIndex((item) => item.mode === match.mode && item.operation === match.operation); + const choice = choices[index] ?? match; + const existing = searching + ? nodes.filter( + (n) => + !n.hidden && + !n.data.blockProjectionOwnerId && + ((n.data.module + '.' + n.data.action === choice.mode.node && + Object.entries(choice.mode.settings ?? {}).every( + ([key, value]) => (n.data.params[key]?.value ?? n.data.params[key]?.default) === value, + )) || + n.data.blockInstanceV2?.effectiveGraph.nodes.some( + (member) => member.data.module + '.' + member.data.action === choice.mode.node, + )), + ) + : []; + return ( +
+ { + event.dataTransfer.setData( + 'text/plain', + choice.operation ? beginOperationDrag(choice.operation) : stageDragKey(match.stage, choice.mode), + ); + event.dataTransfer.effectAllowed = 'copy'; + }} + onDragEnd={endOperationDrag} + onClick={() => void add(choice)} + > + + {match.stage.label} + + + {choices.length > 1 ? ( + + ({ + value: String(i), + label: item.operation ? item.mode.label + ' · ' + item.operation.operationId : item.mode.label, + }))} + onValueChange={(v) => setChosen({ match, index: Number(v) })} + /> + + ) : ( +

{match.detail}

+ )} + {existing.map((n, i) => ( + { + const { workflowTabId } = captureWorkflowOperationContext(); + if (!workflowTabId) return; + const now = Date.now(); + useSettingsStore + .getState() + .setWorkflowFocusRequest({ workflowTabId, nodeId: n.id, requestId: now, requestedAt: now }); + }} + > + Show on canvas{existing.length > 1 ? ' · ' + (i + 1) : ''} + + ))} +
+ ); + })} +
+ ); +} diff --git a/src/stores/useNodeDiscoveryStore.ts b/src/stores/useNodeDiscoveryStore.ts index 4b11b63d..bb97d430 100644 --- a/src/stores/useNodeDiscoveryStore.ts +++ b/src/stores/useNodeDiscoveryStore.ts @@ -24,7 +24,12 @@ export function useNodeDiscovery() { useShallow((s) => ({ view: s.view, selection: s.selection, setView: s.setView, select: s.select })), ); const context = useStudioStore( - useShallow((s) => ({ workflowTabId: s.activeWorkflowTabId, canvasEpoch: s.workflowCanvasEpoch })), + useShallow((s) => ({ + workflowTabId: s.activeWorkflowTabId, + canvasEpoch: s.workflowCanvasEpoch, + model: s.graphBinding ? s.form.modelType : '', + task: s.graphBinding ? s.form.mode : '', + })), ); const support = useNodesStore((s) => s.pipelineSupport); const selection = @@ -32,9 +37,12 @@ export function useNodeDiscovery() { state.selection.context.canvasEpoch === context.canvasEpoch ? state.selection : null; - const entry = support.find((item) => item.pipelineClass === selection?.pipeline); + const inferred = support.find( + (item) => item.pipelineClass === context.model && item.tasks.some((t) => t.task === context.task), + ); + const entry = selection ? support.find((item) => item.pipelineClass === selection.pipeline) : inferred; const selected = - entry?.tasks.find((item) => item.task === selection?.task) ?? + entry?.tasks.find((item) => item.task === (selection?.task ?? context.task)) ?? entry?.tasks.find((item) => item.operationIds.length > 0) ?? entry?.tasks[0]; return { ...state, pipeline: entry?.pipelineClass ?? '', task: selected?.task ?? '', entry, selected, support }; diff --git a/src/stores/useNodeStore.ts b/src/stores/useNodeStore.ts index 14ac8df6..6e2dc821 100644 --- a/src/stores/useNodeStore.ts +++ b/src/stores/useNodeStore.ts @@ -1,3 +1,5 @@ +import { isRecord } from '../utils/isRecord'; +import { parseVisualCatalog, type VisualCatalog } from '../studio/visualNodeCatalog'; import { parseTaskArtifactSelections } from '../workflow/workflowModelInventory'; import { bindEncodingInputCapabilities, bindEncodingRouteResolver } from '../workflow/encodingOptionalInput'; import { @@ -77,6 +79,7 @@ export type NodeData = { category: string; params: Record; description?: string; + searchTerms?: string[]; style?: ModiffNodeStyle; resizable?: boolean; skipParamsCheck?: boolean; @@ -93,6 +96,8 @@ export type NodeData = { minimized?: boolean; headerColor?: string; uiState?: { + inactiveGuidance?: Record; + stageActionDrafts?: Record>; collapsed?: boolean; blockExpanded?: boolean; blockCollapsedWidth?: number; @@ -441,6 +446,7 @@ export type RuntimeStatus = { type NodesStore = { nodesRegistry: Record; + visualNodeCatalog: VisualCatalog | null; isLoading: boolean; instance: string; error: string | null; @@ -627,9 +633,7 @@ function notifyHfDownloadTransition(previous: HfDownloadProgress | undefined, ne } } -export function isRecord(value: unknown): value is Record { - return Boolean(value && typeof value === 'object' && !Array.isArray(value)); -} +export { isRecord }; export function payloadRecord(value: unknown, fallbackMessage: string) { if (!isRecord(value)) throw new Error(fallbackMessage); @@ -657,6 +661,14 @@ export function parseNodesResponse(value: unknown) { ) { throw new Error(`Node definition ${key} is invalid.`); } + const terms = definition.searchTerms; + if ( + terms !== undefined && + (!Array.isArray(terms) || + terms.length > 32 || + terms.some((term) => typeof term !== 'string' || !term.trim() || term.length > 96)) + ) + throw new Error(`Node definition ${key} has invalid search terms.`); for (const [field, param] of Object.entries(definition.params)) { if ( isRecord(param) && @@ -668,6 +680,7 @@ export function parseNodesResponse(value: unknown) { }); return { nodes: payload.nodes as unknown as Record, + visualNodeCatalog: parseVisualCatalog(payload.visualNodeCatalog), instance: typeof payload.instance === 'string' ? payload.instance : '', }; } @@ -1100,6 +1113,7 @@ async function runCustomModuleAction( export const useNodesStore = create()((set, get) => ({ nodesRegistry: {}, + visualNodeCatalog: null, isLoading: false, instance: '', error: null, @@ -1428,7 +1442,12 @@ export const useNodesStore = create()((set, get) => ({ timeoutMs: 120_000, parse: parseNodesResponse, }), - (data) => ({ nodesRegistry: data.nodes, instance: data.instance, error: null }), + (data) => ({ + nodesRegistry: data.nodes, + visualNodeCatalog: data.visualNodeCatalog, + instance: data.instance, + error: null, + }), (message) => ({ error: message }), `Server ${config.serverAddress} is not responding. Check if the server is running and the address is correct.`, ); diff --git a/src/studio/imageStageGuidance.ts b/src/studio/imageStageGuidance.ts new file mode 100644 index 00000000..29f8ff84 --- /dev/null +++ b/src/studio/imageStageGuidance.ts @@ -0,0 +1,101 @@ +import type { NodeData } from '../stores/useNodeStore'; +import type { CustomNodeType } from '../stores/useFlowStore'; +import type { Edge } from '@xyflow/react'; +import { matchingNodeHandleForDrop, nodeConnectionSemanticsAreCompatible } from '../workflow/nodeConnectionMatching'; +import { acceptsOperationValue } from '../workflow/operationFieldValue'; +import { isRecord } from '../utils/isRecord'; +import { visualStageForNode, type VisualCatalog } from './visualNodeCatalog'; +type Context = { label: string; reason?: string; next?: NodeData }; + +/** An explicit edit to a manually wired image stage. Bound workflow recipes use + * their existing task/model switch, which also updates the loader and branches. */ +export function imageStageGuidance( + node: CustomNodeType, + nodes: CustomNodeType[], + edges: Edge[], + registry: Record, + catalog: VisualCatalog | null, +): Context | null { + const data = node.data; + if (data.operationAuthoring || data.blockProjectionOwnerId || data.studioRole || data.blockInstanceV2) return null; + const active = visualStageForNode(catalog, data); + if (!active?.mode.guidance) return null; + const alternate = active.stage.modes.find((m) => m.guidance && m.guidance !== active.mode.guidance); + const other = alternate && registry[alternate.node]; + if (!other || other.module !== data.module) return null; + const controlled = Boolean(data.params.control_image); + const label = controlled ? 'Remove control guidance' : 'Add control guidance'; + const ownerEdge = edges.find((edge) => edge.target === node.id && edge.targetHandle === 'pipeline'); + const owner = nodes.find((peer) => peer.id === ownerEdge?.source); + if (ownerEdge) { + const port = ownerEdge.sourceHandle; + const signal = port && owner?.data.params[port]?.signal?.value; + if (!owner || !port || !isRecord(signal)) + return { label, reason: 'Waiting for the connected model’s supported actions.' }; + if (!nodeConnectionSemanticsAreCompatible(owner.data, port, data, 'pipeline')) + return { label, reason: 'The connected model does not support this action. Check the model or its task.' }; + if (!nodeConnectionSemanticsAreCompatible(owner.data, port, other, 'pipeline')) + return controlled ? { label, reason: 'The selected model requires a control guide.' } : null; + } + for (const edge of edges) { + const key = edge.target === node.id ? edge.targetHandle : edge.source === node.id ? edge.sourceHandle : null; + if (key && !other.params[key]) + return { label, reason: 'Disconnect ' + (data.params[key]?.label ?? key) + ' to change guidance.' }; + } + const params = { ...other.params }; + const retained: Record = { ...data.uiState?.inactiveGuidance }; + for (const [key, p] of Object.entries(data.params)) { + if (p.value !== undefined && !other.params[key] && p.display !== 'output' && !p.display?.startsWith('ui_')) + retained[key] = p.value; + } + for (const [key, p] of Object.entries(params)) { + const previous = data.params[key]; + const value = previous?.value ?? retained[key]; + if (value !== undefined && p.display !== 'output' && !p.display?.startsWith('ui_')) { + if (!acceptsOperationValue(p, value)) + return { label, reason: 'The saved ' + (p.label ?? key) + ' value is incompatible with this action.' }; + params[key] = { ...p, value, isInput: previous?.isInput ?? p.isInput }; + delete retained[key]; + } + } + const registered = registry[data.module + '.' + data.action]; + const title = data.label === registered?.label ? other.label : data.label; + const target = { ...other, params }; + for (const edge of edges.filter((e) => e.source === node.id || e.target === node.id)) { + const upstream = edge.target === node.id; + const peer = nodes.find((n) => n.id === (upstream ? edge.source : edge.target)); + const field = upstream ? edge.targetHandle : edge.sourceHandle; + const peerField = upstream ? edge.sourceHandle : edge.targetHandle; + if ( + !peer || + !field || + !peerField || + !matchingNodeHandleForDrop( + target, + peer.data.params[peerField]?.type, + upstream ? 'source' : 'target', + { node: peer.data, handleId: peerField }, + true, + field, + ) + ) + return { + label, + reason: + 'Check the existing ' + + (data.params[field ?? '']?.label ?? field ?? 'stage') + + ' connection before changing guidance.', + }; + } + return { + label, + next: { + ...data, + action: other.action, + description: other.description, + label: title, + params, + uiState: { ...data.uiState, inactiveGuidance: retained }, + }, + }; +} diff --git a/src/studio/nodeCatalog.ts b/src/studio/nodeCatalog.ts index 447bf340..a0ae8848 100644 --- a/src/studio/nodeCatalog.ts +++ b/src/studio/nodeCatalog.ts @@ -304,6 +304,8 @@ export function nodeCatalogEntryMatchesSearch(entry: NodeCatalogEntry, search: s entry.node.module, entry.node.action, entry.node.category, + entry.description, + ...(entry.node.searchTerms ?? []), ]); } diff --git a/src/studio/nodeLibraryAuditV2.ts b/src/studio/nodeLibraryAuditV2.ts index 1d4dfd39..246fb012 100644 --- a/src/studio/nodeLibraryAuditV2.ts +++ b/src/studio/nodeLibraryAuditV2.ts @@ -22,7 +22,7 @@ function canonical(value: unknown): unknown { * field/default contract. Similar labels or signatures are insufficient. */ export function runtimeNodeIdentityV2(node: NodeData) { const contract = Object.fromEntries( - Object.entries(node).filter(([key]) => !['label', 'description', 'category'].includes(key)), + Object.entries(node).filter(([key]) => !['label', 'description', 'category', 'searchTerms'].includes(key)), ); return JSON.stringify(canonical(contract)); } diff --git a/src/studio/stageActionChange.ts b/src/studio/stageActionChange.ts new file mode 100644 index 00000000..03ffb133 --- /dev/null +++ b/src/studio/stageActionChange.ts @@ -0,0 +1,100 @@ +import type { CustomNodeType } from '../stores/useFlowStore'; +import type { NodeData, NodeParams } from '../stores/useNodeStore'; +import type { Edge } from '@xyflow/react'; +import { visualStageForNode, stageDefinition, type StageMode, type VisualCatalog } from './visualNodeCatalog'; +import { matchingNodeHandleForDrop } from '../workflow/nodeConnectionMatching'; +import { acceptsOperationValue } from '../workflow/operationFieldValue'; +import { nodeDisplayLabel } from '../workflow/nodePresentation'; + +function editable(p: NodeParams) { + return p.value !== undefined && p.display !== 'output' && !p.display?.startsWith('ui_'); +} + +/** Restore only settings previously authored for the exact destination action. + * A change of stage mode must never send an image model ID to an audio loader. */ +export function changeStageAction( + node: CustomNodeType, + mode: StageMode, + catalog: VisualCatalog, + registry: Record, + nodes: CustomNodeType[], + edges: Edge[], +) { + const data = node.data; + const current = visualStageForNode(catalog, data); + if ( + node.parentId || + data.operationAuthoring || + data.studioRole || + data.blockProjectionOwnerId || + data.blockInstanceV2 || + !current || + !current.stage.modes.includes(mode) || + current.mode.guidance || + mode.guidance + ) + throw Error('Use the owning workflow to change this stage.'); + const desired = stageDefinition(mode, registry); + if (!desired) throw Error('This action is unavailable.'); + const key = data.module + '.' + data.action, + same = key === mode.node; + const defs = same ? { ...data.params } : { ...desired.params }; + const owned = Object.fromEntries( + Object.entries(data.params) + .filter(([, p]) => editable(p)) + .map(([k, p]) => [k, p.value]), + ); + const drafts = { ...data.uiState?.stageActionDrafts, [key]: owned }; + if (!same) { + for (const [field, value] of Object.entries(drafts[mode.node] ?? {})) { + const p = defs[field]; + if ( + p && + !p.disabled && + p.display !== 'output' && + !p.display?.startsWith('ui_') && + acceptsOperationValue(p, value) + ) + defs[field] = { ...p, value }; + } + } + for (const [k, value] of Object.entries(mode.settings ?? {})) { + if (edges.some((e) => e.target === node.id && e.targetHandle === k)) + throw Error('Disconnect ' + (defs[k]?.label ?? k) + ' before changing this action.'); + defs[k] = { ...defs[k], value }; + } + const next: NodeData = { + ...desired, + params: defs, + label: registry[key] && nodeDisplayLabel(data) === nodeDisplayLabel(registry[key]!) ? desired.label : data.label, + uiState: { ...data.uiState, stageActionDrafts: drafts }, + }; + delete next.searchTerms; + for (const edge of edges.filter((e) => e.source === node.id || e.target === node.id)) { + const upstream = edge.target === node.id; + const field = upstream ? edge.targetHandle : edge.sourceHandle; + const peerField = upstream ? edge.sourceHandle : edge.targetHandle; + const peer = nodes.find((p) => p.id === (upstream ? edge.source : edge.target)); + if ( + !field || + !peerField || + !peer || + !matchingNodeHandleForDrop( + next, + peer.data.params[peerField]?.type, + upstream ? 'source' : 'target', + { node: peer.data, handleId: peerField }, + true, + field, + ) + ) + throw Error( + 'The ' + + (data.params[field ?? '']?.label ?? field ?? 'existing') + + ' connection is incompatible with ' + + mode.label + + '. Review the wire before changing this action.', + ); + } + return next; +} diff --git a/src/studio/visualNodeCatalog.ts b/src/studio/visualNodeCatalog.ts new file mode 100644 index 00000000..c01cc66c --- /dev/null +++ b/src/studio/visualNodeCatalog.ts @@ -0,0 +1,318 @@ +import type { NodeData } from '../stores/useNodeStore'; +import type { OperationContract } from '../workflow/operationContracts'; +import { nodeDisplayLabel, nodeSearchAliases } from '../workflow/nodePresentation'; +import { isOptionDescriptor, optionDescriptorIsSelectable } from './runtimeOptions'; +import { isRecord } from '../utils/isRecord'; +import { + visualOperationGroupMedia, + visualOperationStageKind, + visualStageHasNestedStructure, + visualStagePresentation, + type VisualOperationGroup, +} from '../workflow/visualOperationGroupProjection'; + +export type StageMode = { + node: string; + label: string; + terms?: string[]; + settings?: Record; + guidance?: 'plain' | 'guided'; +}; +export type VisualStage = { + id: string; + label: string; + tier: 'browse' | 'task' | 'advanced'; + summary: string; + modes: StageMode[]; + members?: string[]; + modelBound?: boolean; + memberTasks?: string[]; + memberDecomposition?: 'loader'; +}; +export type VisualCatalog = { version: 1; stages: VisualStage[] }; +export type StageChoice = { mode: StageMode; definition: NodeData; operation?: OperationContract }; +export type StageMatch = StageChoice & { stage: VisualStage; score: number; detail: string; choices: StageChoice[] }; + +const text = (value: unknown, limit: number): value is string => + typeof value === 'string' && value.length > 0 && value.length <= limit; +const builtinKey = (x: unknown): x is string => text(x, 250) && /^modules\.[\w]+\.[\w]+$/u.test(x); +function textList(x: unknown, limit: number, check: (item: unknown) => boolean) { + return Array.isArray(x) && x.length <= limit && x.every(check); +} +function validMode(x: unknown) { + return ( + isRecord(x) && + builtinKey(x.node) && + text(x.label, 180) && + (x.guidance === undefined || x.guidance === 'plain' || x.guidance === 'guided') && + (x.terms === undefined || textList(x.terms, 40, (word) => text(word, 180))) && + (x.settings === undefined || + (isRecord(x.settings) && + Object.keys(x.settings).length <= 8 && + Object.entries(x.settings).every(([k, v]) => /^[a-z][a-z0-9_]*$/u.test(k) && text(v, 128)))) + ); +} +export function parseVisualCatalog(value: unknown): VisualCatalog | null { + if (value === undefined) return null; + if ( + !isRecord(value) || + value.version !== 1 || + !Array.isArray(value.stages) || + !value.stages.length || + value.stages.length > 100 + ) + throw new Error('Invalid visual node catalog.'); + const ids = new Set(); + for (const stage of value.stages) { + if ( + !isRecord(stage) || + !text(stage.id, 80) || + !/^[a-z][a-z0-9-]*$/u.test(stage.id) || + ids.has(stage.id) || + !text(stage.label, 120) || + !text(stage.summary, 500) || + !['browse', 'task', 'advanced'].includes(String(stage.tier)) || + !Array.isArray(stage.modes) || + !stage.modes.length || + stage.modes.length > 256 || + !stage.modes.every(validMode) || + (stage.modelBound !== undefined && typeof stage.modelBound !== 'boolean') || + (stage.memberTasks !== undefined && !textList(stage.memberTasks, 80, (key) => text(key, 128))) || + (stage.memberDecomposition !== undefined && stage.memberDecomposition !== 'loader') || + (stage.members !== undefined && !textList(stage.members, 256, builtinKey)) + ) + throw new Error('Invalid visual node stage.'); + ids.add(stage.id); + } + return { version: 1, stages: value.stages as VisualStage[] }; +} +function words(s: string) { + return s + .normalize('NFKC') + .replace(/([a-z0-9])([A-Z])/gu, '$1 $2') + .replace(/([A-Z])([A-Z][a-z])/gu, '$1 $2') + .toLowerCase() + .replace(/[^\p{L}\p{N}]+/gu, ' ') + .trim(); +} +export function stageDefinition(mode: StageMode, registry: Record) { + const node = registry[mode.node]; + if (!node || mode.node !== `${node.module}.${node.action}`) return null; + if (!mode.settings) return node; + const params = { ...node.params }; + for (const [field, value] of Object.entries(mode.settings)) { + const param = params[field]; + if ( + !param || + param.isConnected || + !Array.isArray(param.options) || + !param.options.some( + (item) => + (typeof item === 'string' + ? item + : isOptionDescriptor(item) + ? optionDescriptorIsSelectable(item) + ? item.value + : null + : isRecord(item) && !item.disabled + ? item.value + : null) === value, + ) + ) + return null; + params[field] = { ...param, value }; + } + return { ...node, params }; +} + +type Index = { names: string[]; terms: string[]; descriptive: string[] }; +const indexes = new WeakMap>(); +const compact = (s: string) => s.replace(/ /gu, ''); +function indexMode(stage: VisualStage, mode: StageMode, node: NodeData): Index { + let modes = indexes.get(node); + if (!modes) { + modes = new WeakMap(); + indexes.set(node, modes); + } + const cached = modes.get(mode); + if (cached) return cached; + const names = [mode.label, ...(mode.terms ?? []), nodeDisplayLabel(node), ...nodeSearchAliases(node)].map(words); + const roles = Object.entries(node.params) + .filter(([, p]) => p.display === 'input' || p.isInput || p.display === 'output') + .flatMap(([key, p]) => [key, p.label ?? '']); + const terms = words([stage.label, mode.node, ...names].join(' ')).split(' '); + const descriptive = [...terms, ...words([stage.summary, node.description ?? '', ...roles].join(' ')).split(' ')]; + const result = { names, terms, descriptive }; + modes.set(mode, result); + return result; +} +function relevance(query: string, stage: VisualStage, mode: StageMode, node: NodeData) { + if (!query) return 1; + const equal = (s: string) => s === query || compact(s) === compact(query); + if (equal(words(stage.label))) return 100; + if (equal(words(mode.node)) || equal(words(mode.label))) return 95; + const index = indexMode(stage, mode, node); + if (index.names.some(equal)) return 90; + const matches = (fields: string[]) => + query + .split(' ') + .every((token) => fields.some((word) => word === token || (token.length > 2 && word.startsWith(token)))); + return matches(index.terms) ? 65 : matches(index.descriptive) ? 30 : 0; +} + +/** Restrict model execution to a published binding when browsing a specific pipeline. + * Media and data utilities remain independently insertable. */ +function operationMember(stage: VisualStage, op: OperationContract) { + return Boolean( + stage.modelBound && + stage.members?.includes(op.nodeKey) && + (!stage.memberTasks || stage.memberTasks.includes(op.task ?? '')) && + (!stage.memberDecomposition || op.decomposition === stage.memberDecomposition), + ); +} +export function visualStageMatches( + catalog: VisualCatalog, + registry: Record, + search: string, + options: { + all?: boolean; + targeted?: boolean; + compatible?: (node: NodeData, operation?: OperationContract) => boolean; + operations?: OperationContract[]; + } = {}, +): StageMatch[] { + const query = words(search); + if (search.trim() && !query) return []; + const results: StageMatch[] = []; + const operations = new Map(); + for (const op of options.operations ?? []) operations.set(op.nodeKey, [...(operations.get(op.nodeKey) ?? []), op]); + for (const stage of catalog.stages) { + if (!query && !options.all && (stage.tier === 'advanced' || (stage.tier === 'task' && !options.targeted))) continue; + if ( + options.operations && + stage.memberTasks && + !options.operations.some((op) => stage.memberTasks!.includes(op.task ?? '')) + ) + continue; + const choices: StageChoice[] = []; + let best: StageMatch | undefined; + const extra = (options.operations ?? []).filter( + (op) => operationMember(stage, op) && !stage.modes.some((m) => m.node === op.nodeKey), + ); + const modes: StageMode[] = [ + ...stage.modes, + ...[...new Map(extra.map((op) => [op.nodeKey, op])).values()].map((op) => ({ + node: op.nodeKey, + label: registry[op.nodeKey]?.label ?? op.nodeType, + terms: [ + op.nodeType, + ...(op.nodeType === 'denoise' + ? ['KSampler', 'sample latents'] + : op.nodeType === 'decoder' + ? ['VAE Decode'] + : []), + ], + })), + ]; + for (const mode of modes) { + const node = stageDefinition(mode, registry); + if (!node) continue; + const bound = operations.get(mode.node); + if (options.operations && stage.modelBound && !bound) continue; + for (const operation of bound ?? [undefined]) { + if (options.compatible && !options.compatible(node, operation)) continue; + const choice = { mode, definition: node, operation }; + choices.push(choice); + const score = relevance(query, stage, mode, registry[mode.node]!); + if (!score || (best && best.score >= score)) continue; + const term = query && mode.terms?.find((term) => compact(words(term)) === compact(query)); + const detail = term && words(term) !== words(mode.label) ? mode.label + ' · ' + term : mode.label; + best = { stage, ...choice, score, detail, choices }; + } + } + if (best) results.push(best); + } + return results.sort((a, b) => b.score - a.score); +} + +export function visualStageForNode(catalog: VisualCatalog | null, node: NodeData) { + const key = `${node.module}.${node.action}`; + const operation = node.operationAuthoring?.operation; + if (operation?.nodeKey === key) { + const owner = catalog?.stages.find((stage) => operationMember(stage, operation)); + if (owner) + return { + stage: owner, + mode: owner.modes.find((m) => m.node === key) ?? { node: key, label: node.label || operation.nodeType }, + }; + } + for (const stage of catalog?.stages ?? []) { + const modes = stage.modes.filter((m) => m.node === key); + const mode = + modes.find( + (m) => + m.settings && + Object.entries(m.settings).every(([k, v]) => (node.params[k]?.value ?? node.params[k]?.default) === v), + ) ?? modes[0]; + if (mode) return { stage, mode }; + } + return null; +} + +const projectedStages: Partial> = { + setup: 'model-setup', + inputs: 'encode-inputs', + imageInput: 'media-input', + videoInput: 'media-input', + output: 'export', + composite: 'composite', + references: 'references', + mask: 'prepare-mask', + assemble: 'assemble-clips', +}; + +export function visualNodeTitle(catalog: VisualCatalog | null, node: NodeData, registered?: NodeData) { + const original = nodeDisplayLabel(node); + const instance = node.blockInstanceV2; + if (catalog && instance) { + const kind = visualOperationStageKind(instance); + if (!kind || visualStageHasNestedStructure(instance)) return original; + const media = visualOperationGroupMedia({ data: node }); + if (original !== visualStagePresentation(kind, media).label) return original; + if (kind === 'generate') { + for (const member of instance.effectiveGraph.nodes) { + const hint = member.data.operationAuthoring; + const op = isRecord(hint) && hint.operation; + if (!isRecord(op) || typeof op.task !== 'string') continue; + const task = op.task; + const owningStage = catalog.stages.find((stage) => stage.memberTasks?.includes(task)); + if (owningStage) return owningStage.label; + } + return catalog.stages.find((stage) => stage.id === 'generate-' + media)?.label ?? original; + } + return catalog.stages.find((stage) => stage.id === projectedStages[kind])?.label ?? original; + } + const match = visualStageForNode(catalog, node); + if (!match || !registered || (original !== nodeDisplayLabel(registered) && original !== registered.label)) + return original; + return match.stage.label; +} + +export const STAGE_DRAG_PREFIX = 'modiff-stage:'; +export function stageDragKey(stage: VisualStage, mode: StageMode) { + return STAGE_DRAG_PREFIX + JSON.stringify([stage.id, mode.node, mode.label]); +} +export function stageFromDrag(token: string, catalog: VisualCatalog | null, registry: Record) { + if (!catalog || !token.startsWith(STAGE_DRAG_PREFIX) || token.length > 650) return null; + const payload = token.slice(STAGE_DRAG_PREFIX.length); + try { + const id: unknown = JSON.parse(payload); + if (!Array.isArray(id) || id.length !== 3) return null; + const mode = catalog.stages + .find((stage) => stage.id === id[0]) + ?.modes.find((m) => m.node === id[1] && m.label === id[2]); + return mode ? stageDefinition(mode, registry) : null; + } catch { + return null; + } +} diff --git a/src/utils/isRecord.ts b/src/utils/isRecord.ts new file mode 100644 index 00000000..dfdde1c6 --- /dev/null +++ b/src/utils/isRecord.ts @@ -0,0 +1,3 @@ +export function isRecord(value: unknown): value is Record { + return Boolean(value && typeof value === 'object' && !Array.isArray(value)); +} diff --git a/src/workflow/nodeConnectionSearch.ts b/src/workflow/nodeConnectionSearch.ts index 89533ae5..f99f5478 100644 --- a/src/workflow/nodeConnectionSearch.ts +++ b/src/workflow/nodeConnectionSearch.ts @@ -106,6 +106,7 @@ export function operationSearchEntries( origin?: ConnectionSearchOrigin | null, allowUnverified = false, ) { + if (!pipeline || !task) return []; const aliases = new Map( nodeCatalogEntries(registry).map((entry) => [ runtimeNodeIdentityV2(entry.node), @@ -144,6 +145,25 @@ export function operationSearchEntries( ); } +/** Test the exact operation boundary. A compatible field in the raw schema + * may be hidden or sealed by the selected model. */ +export function stageOperationMatchesWire( + node: NodeData, + op: OperationContract, + dataType: NodeParams['type'] | null, + handleType: HandleDirection, + origin?: ConnectionSearchOrigin | null, + allowUnverified = false, +) { + const shown = prepareOperationConnection(node, op, dataType, handleType); + return op.ports.some( + (port) => + !port.hidden && + port.direction === (handleType === 'source' ? 'input' : 'output') && + matchingNodeHandleForDrop(shown, dataType, handleType, origin, allowUnverified, port.name), + ); +} + /** Expose a new node's declared value socket just as dropping a wire on its * editable control would. Never change resolver defaults or binding constants. */ export function prepareOperationConnection( diff --git a/src/workflow/nodeFactory.ts b/src/workflow/nodeFactory.ts index 525ca528..c482b002 100644 --- a/src/workflow/nodeFactory.ts +++ b/src/workflow/nodeFactory.ts @@ -15,6 +15,7 @@ export function createNodeFromRegistry( const registryNode = nodesRegistry[key]; if (!registryNode) return null; const data = cloneNodeData(registryNode); + delete data.searchTerms; return { // Ordinary nodes must also have valid semantic IDs when moved into a Block. diff --git a/src/workflow/useWorkflowDrop.ts b/src/workflow/useWorkflowDrop.ts index 0017facc..0ffc0e0f 100644 --- a/src/workflow/useWorkflowDrop.ts +++ b/src/workflow/useWorkflowDrop.ts @@ -12,6 +12,7 @@ import { import { useNodesStore, type NodeData } from '../stores/useNodeStore'; import { pythonFileImport } from '../studio/customExtensions'; import { OPERATION_DRAG_PREFIX, takeOperationDrag } from './operationDrag'; +import { STAGE_DRAG_PREFIX, stageFromDrag } from '../studio/visualNodeCatalog'; import { useFlowStore, type CustomNodeType } from '../stores/useFlowStore'; import type { WorkflowTab, WorkflowTabSnapshot } from '../studio/types'; import { enqueueSnackbar } from '../ui/snackbar'; @@ -414,7 +415,15 @@ export function useWorkflowDrop({ pendingOperations.current.delete(request); } } else { - newNode = createNodeFromRegistry(data, nodesRegistry, position); + if (data.startsWith(STAGE_DRAG_PREFIX)) { + const definition = stageFromDrag(data, useNodesStore.getState().visualNodeCatalog, nodesRegistry); + if (!definition) { + showGraphImportError('This stage action is unavailable. Select it again in the library.'); + return; + } + const key = `${definition.module}.${definition.action}`; + newNode = createNodeFromRegistry(key, { [key]: definition }, position); + } else newNode = createNodeFromRegistry(data, nodesRegistry, position); } if (!newNode) { showGraphImportError(`Node ${data} not found. Reload the page to refresh the node list.`); diff --git a/tests/e2e/live-backend/node-ux.spec.ts b/tests/e2e/live-backend/node-ux.spec.ts index c89e0ba1..8fb154a5 100644 --- a/tests/e2e/live-backend/node-ux.spec.ts +++ b/tests/e2e/live-backend/node-ux.spec.ts @@ -9,6 +9,7 @@ const python = `from modiff.NodeBase import NodeBase MODIFF_RUNTIME_ROLE = "data" class Proof(NodeBase): label = "Local import proof" + searchTerms = ["initial phrase lookup"] params = {"text": {"type": "string", "display": "text", "default": "local proof"}, "result": {"type": "string", "display": "output"}} def execute(self, text): return {"result": text + " passed"} @@ -32,11 +33,18 @@ test('detecting a Python file does not enable it; intentional Load and Reload do .last(); await card.getByRole('button', { name: 'Load', exact: true }).click(); await expect(card.getByRole('button', { name: 'Reload', exact: true })).toBeVisible(); - await writeFile(file, python.replace('Local import proof', 'Reloaded local proof')); + await writeFile( + file, + python + .replace('Local import proof', 'Reloaded local proof') + .replace('initial phrase lookup', 'refreshed phrase lookup'), + ); await card.getByRole('button', { name: 'Reload', exact: true }).click(); await expect(dialog.getByRole('status')).toContainText('loaded'); await dialog.getByRole('button', { name: 'Close', exact: true }).click(); - await page.getByPlaceholder('Search nodes').fill(name); + await page.getByPlaceholder('Search nodes').fill('initial phrase lookup'); + await expect(group.getByRole('button', { name: 'Reloaded local proof', exact: true })).toHaveCount(0); + await page.getByPlaceholder('Search nodes').fill('refreshed phrase lookup'); await expect(group.getByRole('button', { name: 'Reloaded local proof', exact: true })).toBeVisible(); }); diff --git a/tests/e2e/live-backend/ordinary-node-labels.spec.ts b/tests/e2e/live-backend/ordinary-node-labels.spec.ts index 4421af7f..60355e43 100644 --- a/tests/e2e/live-backend/ordinary-node-labels.spec.ts +++ b/tests/e2e/live-backend/ordinary-node-labels.spec.ts @@ -79,15 +79,13 @@ test('ordinary media and scheduler cards distinguish controls and sockets withou test('the common palette offers dual-media upscaling and groups Encode Image with conditioning', async ({ page }) => { const search = page.getByLabel('Search nodes', { exact: true }); await search.fill('video upscale'); - const upscale = page.getByTestId('node-group-Image-Video').getByRole('button', { name: 'Upscale Image or Video' }); + const upscale = page.getByTestId('stage-add-upscale'); await expect(upscale).toBeVisible(); await search.fill('image upscale'); await expect(upscale).toBeVisible(); await search.fill('Encode Image'); await expect( - page - .getByTestId('node-subgroup-runtime-Models-Components-Condition') - .getByTestId('node-row-modules-ModularDiffusers-ImageEncode'), + page.getByTestId('stage-add-encode-inputs').getByTestId('node-row-modules-ModularDiffusers-ImageEncode'), ).toBeVisible(); }); From 0da9140bd47dc6ef20c152dd6dfb9639d4c1a178 Mon Sep 17 00:00:00 2001 From: Sourav Das Date: Mon, 23 Nov 2026 18:22:03 +0530 Subject: [PATCH 312/440] Keep stage discovery, saved cards and typed wire gestures consistent --- .github/workflows/ci.yml | 4 +- README.md | 2 +- docs/developer-first-node-ux.md | 2 + scripts/bundle-budget.mjs | 5 + scripts/hugging-face-node-library.test.mjs | 3 +- scripts/visual-node-catalog.test.mjs | 21 ++++ src/components/EncodingNodeRenderer.tsx | 5 +- src/components/NodeList.tsx | 1 + src/components/NodeSearchDialog.tsx | 5 +- src/components/SelectionToolbar.tsx | 57 ++++++--- src/components/VisualStageLibrary.tsx | 3 +- src/studio/visualNodeCatalog.ts | 33 +++++- tests/e2e/dragWireToCanvas.ts | 40 +++++++ .../live-backend/custom-prototyping.spec.ts | 3 +- tests/e2e/live-backend/node-ux.spec.ts | 20 ++-- .../live-backend/ordinary-node-labels.spec.ts | 8 +- tests/e2e/studio-mocked/studio-mocked.spec.ts | 112 +++++++++++------- 17 files changed, 239 insertions(+), 85 deletions(-) create mode 100644 tests/e2e/dragWireToCanvas.ts diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 89bd32e6..a7404c44 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -33,7 +33,7 @@ jobs: with: repository: sdevil7th/MoDiff # Pair the visual stage catalog and custom action search metadata. - ref: 413a2bca931d9dd56a8a4a1e2750a338abb9a4a5 + ref: 9a81a9f798b24f37915de90a73ee68a8f07ac634 path: MoDiff persist-credentials: false - name: Verify the pinned backend supports native setup @@ -89,7 +89,7 @@ jobs: with: repository: sdevil7th/MoDiff # Match the immutable backend revision in the Client quality job. - ref: 413a2bca931d9dd56a8a4a1e2750a338abb9a4a5 + ref: 9a81a9f798b24f37915de90a73ee68a8f07ac634 path: MoDiff persist-credentials: false - name: Verify the pinned backend supports native setup diff --git a/README.md b/README.md index 8f4979c9..7c4f432c 100644 --- a/README.md +++ b/README.md @@ -85,7 +85,7 @@ application source pair is: | MoDiff | `1239d1cecd12a7318eb263ca17c34d4fc0445d14` | | MoDiff-client | `c561a01395044fd71c1918e95fb9e9709d8e7601` | -CI backend contract: `413a2bca931d9dd56a8a4a1e2750a338abb9a4a5`. +CI backend contract: `9a81a9f798b24f37915de90a73ee68a8f07ac634`. Both CI jobs use this immutable backend revision. It includes shared video stages, conditional reference requirements, the scoped Linux shared-memory LTX diff --git a/docs/developer-first-node-ux.md b/docs/developer-first-node-ux.md index 2430c8ee..cfe36994 100644 --- a/docs/developer-first-node-ux.md +++ b/docs/developer-first-node-ux.md @@ -350,3 +350,5 @@ rate entered on the stage and carry no audio track. Browse starts with 15 everyday stages. Show task stages adds 14. Advanced includes six more. Search by stage or action, for example `KSampler`, `CheckpointLoaderSimple`, `Canny` or `fit audio duration`. Expand a result to choose an available action. A search from a wire also checks its type, direction and role. The Docs tab shows the action in the selected stage. Custom authors can declare searchable `searchTerms` on their node class. Choose **Show on canvas** to locate an existing instance. For an independently inserted node, open its help menu and use **Stage action** to switch modes. The editor restores values for the selected mode and identifies any wire that needs your attention. For a model-bound workflow, use Model Setup to change the model or task for the connected stages. + +Searching an exact older implementation name such as `WorkflowImageDenoise` on an empty canvas lists the stages that can own it. Select a compatible model and task to enable the action. Searching from a wire shows the insertable choices for that port. diff --git a/scripts/bundle-budget.mjs b/scripts/bundle-budget.mjs index 2adaf756..936cf8cc 100644 --- a/scripts/bundle-budget.mjs +++ b/scripts/bundle-budget.mjs @@ -490,6 +490,9 @@ const SOURCE_LICENSES = new URL('../public/THIRD_PARTY_LICENSES.txt', import.met // 504492/682980/346033 largest/startup/deferred gzip bytes: the reviewed // migration ceilings below still pass with 8/12/304 bytes of headroom. const MAX_STARTUP_CHUNK_GZIP_BYTES = + // Exact legacy-action hints before model selection and stable stage titles. + // Reviewed paired build: 528970 vs. 528834 bytes; preserve the four-byte margin. + 136 + // Stage discovery, action search and compatible mode changes (524253 -> 528821 gzip bytes). 4568 + // Exact connected model summaries add 501 gzip bytes (523747 -> 524248). @@ -763,6 +766,8 @@ const MAX_STARTUP_CHUNK_GZIP_BYTES = // The same build measures 673359 aggregate startup bytes (+45 over the cap). // Keep 19 bytes of headroom; deferred limits and loading boundaries stay fixed. const MAX_STARTUP_GZIP_BYTES = + // Paired build above: 707457 vs. 707322 bytes across the startup closure. + 135 + // Stage discovery, action search and compatible mode changes (702737 -> 707310 gzip bytes). 4573 + // The same change adds 498 aggregate startup gzip bytes (702235 -> 702733). diff --git a/scripts/hugging-face-node-library.test.mjs b/scripts/hugging-face-node-library.test.mjs index 2bbf5c9c..947b3564 100644 --- a/scripts/hugging-face-node-library.test.mjs +++ b/scripts/hugging-face-node-library.test.mjs @@ -217,10 +217,11 @@ test('runtime node search requires every keyword and preserves exact registry ke 'custom.registry.ImageLoader', 'legacy.Image.Open', 'picture', + 'disk image', ]) { assert.equal(nodeCatalogModule.nodeCatalogEntryMatchesSearch(entry, query), true, query); } - for (const query of ['image audio', 'disk image', 'missing', '---']) { + for (const query of ['image audio', 'disk audio', 'missing', '---']) { assert.equal(nodeCatalogModule.nodeCatalogEntryMatchesSearch(entry, query), false, query); } assert.equal(nodeCatalogModule.nodeCatalogEntryMatchesSearch(entry, ''), true); diff --git a/scripts/visual-node-catalog.test.mjs b/scripts/visual-node-catalog.test.mjs index 0ee3575b..59ec14cf 100644 --- a/scripts/visual-node-catalog.test.mjs +++ b/scripts/visual-node-catalog.test.mjs @@ -40,6 +40,27 @@ before(async () => { } }); after(async () => await server?.close()); +test('an exact decomposed action can be located before model selection without becoming insertable', () => { + const node = 'modules.ModularDiffusers.WorkflowImageDenoise'; + const definitions = { + ...registry, + [node]: { module: 'modules.ModularDiffusers', action: 'WorkflowImageDenoise', label: 'Denoise', params: {} }, + }; + const search = (query, options) => api.visualStageMatches(catalog, definitions, query, options); + for (const query of [node, 'WorkflowImageDenoise']) { + const hits = search(query, { showModelHints: true }).filter((hit) => hit.requiresModel); + assert.deepEqual( + hits.map((hit) => hit.stage.id), + ['generate-image', 'edit-image', 'inpaint-image'], + ); + for (const hit of hits) { + assert.deepEqual(hit.choices, []); + assert.equal(api.stageFromDrag(api.stageDragKey(hit.stage, hit.mode), catalog, definitions), null); + } + assert.equal(search(query, { showModelHints: false }).length, 0); + assert.equal(search(query, { showModelHints: true, operations: [] }).length, 0); + } +}); test('shipped image and video stages use the same picker titles after reopening and preserve user titles', async () => { const { exampleWorkflowSnapshotFromGraph } = await server.ssrLoadModule('/src/studio/exampleWorkflow.ts'); const { normalizePersistedFlowState } = await server.ssrLoadModule('/src/stores/useFlowStore.ts'); diff --git a/src/components/EncodingNodeRenderer.tsx b/src/components/EncodingNodeRenderer.tsx index a97e92d9..c4a5d5e9 100644 --- a/src/components/EncodingNodeRenderer.tsx +++ b/src/components/EncodingNodeRenderer.tsx @@ -1,6 +1,8 @@ import { lazy, Suspense } from 'react'; import type { NodeProps } from '@xyflow/react'; import type { CustomNodeType } from '../stores/useFlowStore'; +import { useNodesStore } from '../stores/useNodeStore'; +import { visualNodeTitle } from '../studio/visualNodeCatalog'; import { CustomNodeFrame, CustomNodeHeaderFrame } from '../ui'; import { nodeConnectorParams } from '../studio/nodeConnectorResolution'; import NodeContent from './NodeContent'; @@ -10,11 +12,12 @@ const EncodingNode = lazy(() => import('./EncodingNode')); /** Load the encoding editor only when a workflow contains this node. */ export default function EncodingNodeRenderer(props: NodeProps) { const ports = nodeConnectorParams(props); + const catalog = useNodesStore((state) => state.visualNodeCatalog); return ( - {props.data.label} + {visualNodeTitle(catalog, props.data)}

Loading node controls…

diff --git a/src/components/NodeList.tsx b/src/components/NodeList.tsx index da4baebb..82ae2ecb 100644 --- a/src/components/NodeList.tsx +++ b/src/components/NodeList.tsx @@ -140,6 +140,7 @@ function NodeList() { ? visualStageMatches(stageCatalog, nodesRegistry, search, { all: effectiveCatalogView === 'advanced' || effectiveCatalogView === 'all', targeted: showMoreStages, + showModelHints: true, operations: pipeline ? operationsForTask(operationContracts, pipeline, task) : undefined, }) : [], diff --git a/src/components/NodeSearchDialog.tsx b/src/components/NodeSearchDialog.tsx index b25026e6..e5bc25f3 100644 --- a/src/components/NodeSearchDialog.tsx +++ b/src/components/NodeSearchDialog.tsx @@ -170,6 +170,7 @@ const NodeSearchDialog = ({ ? visualStageMatches(stageCatalog, nodes, searchQuery, { all: view === 'advanced' || view === 'all', targeted: Boolean(handleType), + showModelHints: !handleType, operations: pipeline ? operationsForTask(operations, pipeline, task) : undefined, compatible: (node, op) => !handleType || @@ -288,7 +289,7 @@ const NodeSearchDialog = ({ const selectEntry = useCallback( async (entry: SearchEntry) => { - if (pending.current) return; + if (pending.current || entry.stage?.requiresModel) return; const request = new AbortController(); const context = captureWorkflowOperationContext(); const selection = useNodeDiscoveryStore.getState().selection; @@ -379,7 +380,7 @@ const NodeSearchDialog = ({ id={`node-search-${index}`} role="option" aria-selected={index === activeIndex} - disabled={busy} + disabled={busy || entry.stage?.requiresModel} aria-busy={busy || undefined} onClick={() => void selectEntry(entry)} className={cx( diff --git a/src/components/SelectionToolbar.tsx b/src/components/SelectionToolbar.tsx index b9102118..d0087822 100644 --- a/src/components/SelectionToolbar.tsx +++ b/src/components/SelectionToolbar.tsx @@ -304,25 +304,44 @@ export function SelectionToolbar({ else if (right <= maxLeft) left = Math.max(left, right); } - const alternativeTop = preferAbove ? belowSelection : aboveSelection; - if (alternativeTop >= minTop && alternativeTop <= maxTop && !overlapsActivity(left, alternativeTop)) { - const overlapsCard = (y: number) => { - const start = screenToFlowPosition({ x: left, y }, { snapToGrid: false }); - const end = screenToFlowPosition({ x: left + toolbarWidth, y: y + toolbarHeight }, { snapToGrid: false }); - return getIntersectingNodes({ ...start, width: end.x - start.x, height: end.y - start.y }).some( - (node) => - !node.hidden && - node.measured?.width && - node.measured?.height && - node.data.type !== 'group' && - node.data.type !== 'loop' && - !node.data.blockInstanceV2?.presentation.expanded && - !node.data.blockProjectionContainerExpanded, - ); - }; - // Stay next to the selection when the preferred side would intercept a - // neighboring node and the opposite side is clear. - if (overlapsCard(top) && !overlapsCard(alternativeTop)) top = alternativeTop; + const overlapsCard = (x: number, y: number) => { + // Include handles which sit just outside the node rectangle. + const start = screenToFlowPosition({ x: x - TOOLBAR_MARGIN, y: y - TOOLBAR_MARGIN }, { snapToGrid: false }); + const end = screenToFlowPosition( + { x: x + toolbarWidth + TOOLBAR_MARGIN, y: y + toolbarHeight + TOOLBAR_MARGIN }, + { snapToGrid: false }, + ); + return getIntersectingNodes({ ...start, width: end.x - start.x, height: end.y - start.y }).some( + (node) => + !node.hidden && + node.measured?.width && + node.measured?.height && + node.data.type !== 'group' && + node.data.type !== 'loop' && + !node.data.blockInstanceV2?.presentation.expanded && + !node.data.blockProjectionContainerExpanded, + ); + }; + if (overlapsCard(left, top)) { + const alternativeTop = preferAbove ? belowSelection : aboveSelection; + const positions: [number, number][] = [ + [left, alternativeTop], + [left, minTop], + [left, maxTop], + [minLeft, top], + [maxLeft, top], + [minLeft, minTop], + [maxLeft, minTop], + [minLeft, maxTop], + [maxLeft, maxTop], + ]; + for (const [x, y] of positions) { + if (x < minLeft || x > maxLeft || y < minTop || y > maxTop || overlapsActivity(x, y) || overlapsCard(x, y)) + continue; + left = x; + top = y; + break; + } } toolbar.style.setProperty('--modiff-selection-toolbar-x', `${Math.round(left)}px`); diff --git a/src/components/VisualStageLibrary.tsx b/src/components/VisualStageLibrary.tsx index 00bd9d7c..be2aebd5 100644 --- a/src/components/VisualStageLibrary.tsx +++ b/src/components/VisualStageLibrary.tsx @@ -79,7 +79,8 @@ export default function VisualStageLibrary({ { diff --git a/src/studio/visualNodeCatalog.ts b/src/studio/visualNodeCatalog.ts index c01cc66c..ad131992 100644 --- a/src/studio/visualNodeCatalog.ts +++ b/src/studio/visualNodeCatalog.ts @@ -31,7 +31,13 @@ export type VisualStage = { }; export type VisualCatalog = { version: 1; stages: VisualStage[] }; export type StageChoice = { mode: StageMode; definition: NodeData; operation?: OperationContract }; -export type StageMatch = StageChoice & { stage: VisualStage; score: number; detail: string; choices: StageChoice[] }; +export type StageMatch = StageChoice & { + stage: VisualStage; + score: number; + detail: string; + choices: StageChoice[]; + requiresModel?: boolean; +}; const text = (value: unknown, limit: number): value is string => typeof value === 'string' && value.length > 0 && value.length <= limit; @@ -179,6 +185,7 @@ export function visualStageMatches( targeted?: boolean; compatible?: (node: NodeData, operation?: OperationContract) => boolean; operations?: OperationContract[]; + showModelHints?: boolean; } = {}, ): StageMatch[] { const query = words(search); @@ -230,6 +237,30 @@ export function visualStageMatches( best = { stage, ...choice, score, detail, choices }; } } + if (query && !options.operations && options.showModelHints && stage.modelBound) { + // Historical implementation names can locate their owner before a model is selected. + // A hint carries no executable binding and is never offered for a typed wire. + const member = stage.members?.find((key) => { + const node = registry[key]; + return ( + node && + [key, node.action].some((name) => compact(words(name)) === compact(query)) && + !catalog.stages.some((s) => s.modes.some((m) => m.node === key)) + ); + }); + if (member) { + const definition = registry[member]!; + best = { + stage, + definition, + mode: { node: member, label: definition.label }, + score: 95, + choices: [], + detail: definition.label + ' · Select a compatible model and task to add this action.', + requiresModel: true, + }; + } + } if (best) results.push(best); } return results.sort((a, b) => b.score - a.score); diff --git a/tests/e2e/dragWireToCanvas.ts b/tests/e2e/dragWireToCanvas.ts new file mode 100644 index 00000000..1b4cd4a6 --- /dev/null +++ b/tests/e2e/dragWireToCanvas.ts @@ -0,0 +1,40 @@ +import { expect, type Locator, type Page } from '@playwright/test'; + +export async function dragWireToCanvas(page: Page, handle: Locator) { + await handle.click({ trial: true }); + // Insertion can start an animated fit after the card has mounted. + // Wait for its socket to stop moving before starting a gesture in screen coordinates. + await handle.evaluate(async (element) => { + let last = element.getBoundingClientRect(); + let stableSince = performance.now(); + while (performance.now() - stableSince < 275) { + await new Promise((resolve) => requestAnimationFrame(() => resolve())); + const next = element.getBoundingClientRect(); + if (Math.abs(next.x - last.x) + Math.abs(next.y - last.y) > 0.1) stableSince = performance.now(); + last = next; + } + }); + await handle.hover(); + const start = await handle.boundingBox(); + if (!start) throw new Error('The connection handle is outside the visible canvas.'); + const x = start.x + start.width / 2, + y = start.y + start.height / 2; + await page.mouse.move(x, y); + await page.mouse.down(); + await page.mouse.move(x + 18, y + 5, { steps: 4 }); + await expect(page.locator('.react-flow__connection')).toBeVisible(); + const pane = page.locator('.react-flow__pane'); + const destination = await pane.evaluate((el) => { + const bounds = el.getBoundingClientRect(); + for (const y of [0.25, 0.75, 0.5, 0.15, 0.85]) { + for (const x of [0.8, 0.2, 0.65, 0.35, 0.5]) { + const point = { x: bounds.left + bounds.width * x, y: bounds.top + bounds.height * y }; + if (document.elementFromPoint(point.x, point.y) === el) return point; + } + } + return null; + }); + expect(destination, 'Workflow canvas has a visible area to drop a wire').toBeTruthy(); + await page.mouse.move(destination!.x, destination!.y, { steps: 18 }); + await page.mouse.up(); +} diff --git a/tests/e2e/live-backend/custom-prototyping.spec.ts b/tests/e2e/live-backend/custom-prototyping.spec.ts index 6947d5ed..687aa1f6 100644 --- a/tests/e2e/live-backend/custom-prototyping.spec.ts +++ b/tests/e2e/live-backend/custom-prototyping.spec.ts @@ -103,8 +103,9 @@ test('fresh documented custom package enables and reloads through the rendered U await expect(customButton).toBeVisible(); await page.screenshot({ path: resolve(output, 'custom-category.png') }); - await page.getByTestId('node-row-modules-Primitive-TextValue').click(); await customButton.click(); + await search.fill('modules.Primitive.TextValue'); + await page.getByTestId('node-row-modules-Primitive-TextValue').click(); await search.fill('Export Data'); await page.getByTestId('node-row-modules-Primitive-ExportData').click(); await search.fill(''); diff --git a/tests/e2e/live-backend/node-ux.spec.ts b/tests/e2e/live-backend/node-ux.spec.ts index 8fb154a5..ef33b93e 100644 --- a/tests/e2e/live-backend/node-ux.spec.ts +++ b/tests/e2e/live-backend/node-ux.spec.ts @@ -1,6 +1,7 @@ import { expect, test } from '@playwright/test'; import { writeFile } from 'node:fs/promises'; import path from 'node:path'; +import { dragWireToCanvas } from '../dragWireToCanvas'; // Run against scripts/run_node_ux_backend.py, never an operator's normal state. const remote = process.env.MODIFF_NODE_UX_REPO; @@ -51,11 +52,15 @@ test('detecting a Python file does not enable it; intentional Load and Reload do test.beforeEach(async ({ page }) => { page.setDefaultTimeout(15_000); test.skip(process.env.MODIFF_NODE_UX_ISOLATED !== '1', 'Requires explicitly isolated backend'); - await page.goto('/'); + await page.goto('/', { waitUntil: 'domcontentloaded', timeout: 60_000 }); + await page.waitForFunction(() => window.__MODIFF_E2E__?.getState().studio.workflowCanvasHydrated, null, { + timeout: 90_000, + }); await expect(page.getByTestId('startup-workspace-gate')).toHaveCount(0, { timeout: 120_000 }); const launcher = page.getByTestId('task-launcher'); if (await launcher.isVisible()) await launcher.getByRole('button', { name: 'Close', exact: true }).click(); - await page.getByTestId('left-tab-nodes').click(); + if (!(await page.getByTestId('node-group-custom-nodes').isVisible())) + await page.getByTestId('left-tab-nodes').click(); await expect(page.getByTestId('node-group-custom-nodes')).toBeVisible(); await expect(page.getByRole('radio', { name: 'Creator', exact: true })).toHaveCount(0); }); @@ -98,17 +103,14 @@ for (const kind of ['local', 'hub', 'git'] as const) { const socket = page.locator( `.react-flow__handle.source[data-handleid="${kind === 'local' ? 'result' : 'out_result'}"]`, ); - const box = await socket.boundingBox(); - const pane = await page.locator('.react-flow__pane').boundingBox(); - if (!box || !pane) throw new Error('Missing canvas or output socket'); - await page.mouse.move(box.x + box.width / 2, box.y + box.height / 2); - await page.mouse.down(); - await page.mouse.move(pane.x + pane.width - 150, pane.y + pane.height - 120, { steps: 12 }); - await page.mouse.up(); + await dragWireToCanvas(page, socket); await page.getByLabel('Show unverified matches (generic or missing types)').check(); await page.getByPlaceholder('Search nodes and Blocks').fill('Data Viewer'); await page.getByRole('option').filter({ hasText: 'Data Viewer' }).first().click(); await expect(page.locator('.react-flow__node')).toHaveCount(2); + // This operator-reviewed extension has no automatic resource contract. + const automatic = page.getByRole('button', { name: 'Memory policy: Automatic. Click to switch.', exact: true }); + if (await automatic.isVisible()) await automatic.click(); await page.getByTestId('studio-run').click(); await expect .poll( diff --git a/tests/e2e/live-backend/ordinary-node-labels.spec.ts b/tests/e2e/live-backend/ordinary-node-labels.spec.ts index 60355e43..e276b92e 100644 --- a/tests/e2e/live-backend/ordinary-node-labels.spec.ts +++ b/tests/e2e/live-backend/ordinary-node-labels.spec.ts @@ -3,9 +3,11 @@ import { expect, test, type Page } from '@playwright/test'; test.beforeEach(async ({ page }) => { test.skip(process.env.MODIFF_NODE_UX_ISOLATED !== '1', 'Requires an isolated registry worker'); await page.setViewportSize({ width: 1366, height: 768 }); - await page.goto('/'); - await expect(page.getByTestId('startup-workspace-gate')).toHaveCount(0); - await page.waitForFunction(() => window.__MODIFF_E2E__?.getState().studio.workflowCanvasHydrated); + await page.goto('/', { waitUntil: 'domcontentloaded', timeout: 60_000 }); + await page.waitForFunction(() => window.__MODIFF_E2E__?.getState().studio.workflowCanvasHydrated, null, { + timeout: 90_000, + }); + await expect(page.getByTestId('startup-workspace-gate')).toHaveCount(0, { timeout: 90_000 }); if (!(await page.evaluate(() => window.__MODIFF_E2E__!.getState().studio.launcherDismissed))) { await page.getByTestId('task-launcher').getByRole('button', { name: 'Close', exact: true }).click(); } diff --git a/tests/e2e/studio-mocked/studio-mocked.spec.ts b/tests/e2e/studio-mocked/studio-mocked.spec.ts index 3a757150..f2e5255f 100644 --- a/tests/e2e/studio-mocked/studio-mocked.spec.ts +++ b/tests/e2e/studio-mocked/studio-mocked.spec.ts @@ -1,3 +1,4 @@ +import { dragWireToCanvas } from '../dragWireToCanvas'; import { expect, test, type Page, type Locator } from '@playwright/test'; import { execFile, spawn, type ChildProcessWithoutNullStreams } from 'node:child_process'; import { createHash } from 'node:crypto'; @@ -9255,7 +9256,21 @@ async function dismissTaskLauncher(page: Page) { return flow.nodes.length === 0 && !studio.launcherDismissed; }); const launcher = page.getByTestId('task-launcher'); - if (expected) await expect(launcher).toBeVisible(); + if (expected) { + await page.waitForFunction( + () => { + const state = window.__MODIFF_E2E__?.getState(); + return ( + state && + (state.studio.launcherDismissed || + state.flow.nodes.length > 0 || + document.querySelector('[data-testid="task-launcher"]')) + ); + }, + null, + { timeout: 90_000 }, + ); + } if (await launcher.isVisible()) { await launcher.getByLabel('Close').click(); await expect(launcher).toBeHidden(); @@ -9301,20 +9316,14 @@ async function seedLegacyManagedWorkflow( } async function openTemplateBrowser(page: Page) { - // Empty workflows intentionally open the dismissible task launcher as a - // modal. Template-focused tests must close it before interacting with the - // library rail, exactly as a user choosing to build manually would. - await dismissTaskLauncher(page); - const openButton = page.getByTestId('left-open-template-browser'); - if ((await openButton.count()) === 0) { - // A workflow transition can close the panel while retaining its selected - // tab. Move through a known sibling tab so clicking Templates always opens - // it instead of toggling the retained tab back off. - await page.getByTestId('left-tab-nodes').click(); - await page.getByTestId('left-tab-templates').click(); + await page.waitForFunction(() => window.__MODIFF_E2E__?.getState().studio.workflowCanvasHydrated); + const launcher = page.getByTestId('task-launcher'); + await page.addLocatorHandler(launcher, () => launcher.getByLabel('Close').click()); + try { + await page.getByTestId('topbar-templates').click({ timeout: 90_000 }); + } finally { + await page.removeLocatorHandler(launcher); } - await expect(openButton).toBeVisible(); - await openButton.click(); await expect(page.getByTestId('template-browser-search')).toBeVisible(); } @@ -13099,12 +13108,7 @@ test('image pipeline drag-to-add excludes generation actions outside the selecte const node = page.locator('.react-flow__node-custom').filter({ hasText: 'Load Image Pipeline' }); const id = (await node.getAttribute('data-id'))!; const handle = node.getByTestId(`node-handle-${id}-pipeline`); - const start = (await handle.boundingBox())!; - const pane = (await page.locator('.react-flow__pane').boundingBox())!; - await page.mouse.move(start.x + start.width / 2, start.y + start.height / 2); - await page.mouse.down(); - await page.mouse.move(pane.x + pane.width - 70, pane.y + 70, { steps: 18 }); - await page.mouse.up(); + await dragWireToCanvas(page, handle); const suggestions = page.getByRole('listbox', { name: 'Matching nodes' }); await expect(suggestions.getByRole('option', { name: 'Generate Image', exact: true })).toBeVisible(); await expect(suggestions.getByRole('option', { name: 'Generate Unconditional Image', exact: true })).toHaveCount(0); @@ -13385,13 +13389,36 @@ test('raw Process Image task changes keep Mask repairs and readiness current', a await expect(selectedNodes).toHaveCount(1); await expect(selectedNodes).toHaveAttribute('data-id', processId); const operation = page.getByTestId('studio-custom-graph-inspector').getByLabel('Operation', { exact: true }); - const select = async (task: string) => { + const select = async (task: 'image_stitch' | 'mask_composite') => { + const label = task === 'image_stitch' ? 'Stitch Images' : 'Composite with Mask'; await operation.click(); - await page.getByRole('option', { name: task, exact: true }).click(); - await expect(operation).toHaveText(task); + await page.getByRole('option', { name: label, exact: true }).click(); + await expect(operation).toHaveText(label); + await expect + .poll(() => + page.evaluate( + (id) => + window.__MODIFF_E2E__!.exportWorkflowGraph().nodes.find((node) => node.id === id)?.data.params.operation + ?.value, + processId, + ), + ) + .toBe(task); }; const run = page.getByTestId('studio-run'); const fix = page.getByTestId('graph-fix'); + const dialog = page.getByTestId('graph-fix-dialog'); + async function openFixDialog() { + await fix.click(); + await expect + .poll(() => + page.evaluate( + async () => (await import('/src/stores/useGraphFixStore.ts')).useGraphFixStore.getState().dialogOpen, + ), + ) + .toBe(true); + await expect(dialog, renderErrors.join('\n')).toBeVisible({ timeout: 60_000 }); + } const readiness = page.getByTestId('studio-run-readiness'); await select('image_stitch'); await expect(run).toBeEnabled(); @@ -13401,8 +13428,7 @@ test('raw Process Image task changes keep Mask repairs and readiness current', a await expect(run).toBeDisabled(); await expect(readiness).toContainText('needs Mask before running'); await expect(fix).toBeEnabled(); - await fix.click(); - const dialog = page.getByTestId('graph-fix-dialog'); + await openFixDialog(); await expect(dialog).toContainText('needs Mask'); await dialog.getByRole('button', { name: 'Close', exact: true }).click(); await select('image_stitch'); @@ -13436,7 +13462,7 @@ test('raw Process Image task changes keep Mask repairs and readiness current', a catalogAvailable = false; await refresh(); await expect(fix).toBeEnabled(); - await fix.click(); + await openFixDialog(); await expect(dialog).toContainText('needs Mask'); await dialog.getByRole('button', { name: 'Close', exact: true }).click(); catalogAvailable = true; @@ -13455,7 +13481,7 @@ test('raw Process Image task changes keep Mask repairs and readiness current', a .toBe(false); await expect(run).toBeDisabled(); await expect(readiness).toContainText('needs Image before running'); - await fix.click(); + await openFixDialog(); await expect(dialog).toContainText('needs Image'); await expect(dialog).not.toContainText('needs Mask'); expect(graphPosts).toBe(0); @@ -13958,9 +13984,7 @@ test('approved retained examples show structured text and technical image compar await page.route('**/template-gallery/manifest.json*', (route) => route.fulfill({ json: manifest })); await page.goto(FRONTEND_URL, { waitUntil: 'domcontentloaded' }); await page.waitForFunction(() => Boolean(window.__MODIFF_E2E__?.getState().studio.workflowCanvasHydrated)); - const launcher = page.getByTestId('task-launcher'); - if (await launcher.isVisible()) await launcher.getByLabel('Close').click(); - await page.getByTestId('topbar-templates').click(); + await openTemplateBrowser(page); await page.getByTestId('template-browser-category-text').click(); const textCard = page.getByTestId('template-browser-card-smollm2_rain_gauge'); @@ -16580,7 +16604,10 @@ test('the unified editor share one library with additive implementation filters ), ) .toBe(1); - const before = await page.evaluate(() => window.__MODIFF_E2E__!.exportWorkflowGraph()); + const before = await page.evaluate(() => { + const { nodes, edges } = window.__MODIFF_E2E__!.exportWorkflowGraph(); + return { nodes, edges }; + }); await search.fill(''); await implementation.check(); await expect(page.getByTestId('node-group-Modular-Diffusers-implementation')).toBeVisible(); @@ -16597,7 +16624,12 @@ test('the unified editor share one library with additive implementation filters await experimental.uncheck(); await assertUnifiedWorkspace(page, 'expert'); await expect(implementation).not.toBeChecked(); - expect(await page.evaluate(() => window.__MODIFF_E2E__!.exportWorkflowGraph())).toEqual(before); + expect( + await page.evaluate(() => { + const { nodes, edges } = window.__MODIFF_E2E__!.exportWorkflowGraph(); + return { nodes, edges }; + }), + ).toEqual(before); await page.screenshot({ path: test.info().outputPath('shared-nodes-library.png'), animations: 'disabled' }); }); @@ -34945,12 +34977,7 @@ test('known-compatible drag search inserts the image socket instead of the earli .click(); const original = page.locator('.react-flow__node-custom').first(); const id = (await original.getAttribute('data-id'))!; - const handle = (await original.getByTestId(`node-handle-${id}-image`).boundingBox())!; - const pane = (await page.locator('.react-flow__pane').boundingBox())!; - await page.mouse.move(handle.x + handle.width / 2, handle.y + handle.height / 2); - await page.mouse.down(); - await page.mouse.move(pane.x + pane.width - 70, pane.y + 70, { steps: 15 }); - await page.mouse.up(); + await dragWireToCanvas(page, original.getByTestId(`node-handle-${id}-image`)); const list = page.getByRole('listbox', { name: 'Matching nodes' }); await expect(list).toBeVisible(); await page.getByLabel('Search nodes', { exact: true }).last().fill('Mixed search target'); @@ -35000,12 +35027,7 @@ async function openTypedCatalogSearch(page: Page, workspace: 'auto' | 'expert', const original = page.locator('.react-flow__node-custom').first(); const id = (await original.getAttribute('data-id'))!; const handle = original.getByTestId(`node-handle-${id}-${direction === 'source' ? 'output' : 'input'}`); - const start = (await handle.boundingBox())!; - const pane = (await page.locator('.react-flow__pane').boundingBox())!; - await page.mouse.move(start.x + start.width / 2, start.y + start.height / 2); - await page.mouse.down(); - await page.mouse.move(pane.x + pane.width - 60, pane.y + 70, { steps: 15 }); - await page.mouse.up(); + await dragWireToCanvas(page, handle); const list = page.getByRole('listbox', { name: 'Matching nodes' }); await expect(list).toBeVisible(); await page.getByLabel('Search nodes', { exact: true }).last().fill('Qwen Image Text To Image'); @@ -37137,6 +37159,7 @@ test('saved Generate shared-input repair preserves execution, Undo, reload and s await expect(root.getByRole('textbox', { name: 'Steps', exact: true })).toBeVisible(); expect(await optionalStageApi(page)).toEqual(before); await page.reload({ waitUntil: 'domcontentloaded' }); + await page.waitForFunction(() => window.__MODIFF_E2E__?.getState().studio.workflowCanvasHydrated); await expect(root).toBeVisible(); await expect.poll(count).toBe(1); expect(await optionalStageApi(page)).toEqual(before); @@ -37238,6 +37261,7 @@ test('saved Encode Inputs repairs three native encoder sockets through the stage await page.keyboard.press('Control+Shift+z'); await expect.poll(count).toBe(1); await page.reload({ waitUntil: 'domcontentloaded' }); + await page.waitForFunction(() => window.__MODIFF_E2E__?.getState().studio.workflowCanvasHydrated); await expect(root).toBeVisible(); await expect.poll(count).toBe(1); expect(await optionalStageApi(page)).toEqual(before); From 273c1b5ae9786b522f421dfc35d551ba33b66cd4 Mon Sep 17 00:00:00 2001 From: Sourav Das Date: Mon, 23 Nov 2026 18:31:02 +0530 Subject: [PATCH 313/440] Unify operation ownership in stage and wire search --- .github/workflows/ci.yml | 4 ++-- README.md | 2 +- scripts/bundle-budget.mjs | 10 +++++----- scripts/visual-node-catalog.test.mjs | 20 ++++++++++++++++++++ src/components/NodeList.tsx | 7 ++----- src/components/NodeSearchDialog.tsx | 4 ++-- src/studio/visualNodeCatalog.ts | 9 ++++++++- 7 files changed, 40 insertions(+), 16 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index a7404c44..6d478081 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -33,7 +33,7 @@ jobs: with: repository: sdevil7th/MoDiff # Pair the visual stage catalog and custom action search metadata. - ref: 9a81a9f798b24f37915de90a73ee68a8f07ac634 + ref: 2a47c734f037db7ce91f0570aecfd1a6e5909c0a path: MoDiff persist-credentials: false - name: Verify the pinned backend supports native setup @@ -89,7 +89,7 @@ jobs: with: repository: sdevil7th/MoDiff # Match the immutable backend revision in the Client quality job. - ref: 9a81a9f798b24f37915de90a73ee68a8f07ac634 + ref: 2a47c734f037db7ce91f0570aecfd1a6e5909c0a path: MoDiff persist-credentials: false - name: Verify the pinned backend supports native setup diff --git a/README.md b/README.md index 7c4f432c..77df1381 100644 --- a/README.md +++ b/README.md @@ -85,7 +85,7 @@ application source pair is: | MoDiff | `1239d1cecd12a7318eb263ca17c34d4fc0445d14` | | MoDiff-client | `c561a01395044fd71c1918e95fb9e9709d8e7601` | -CI backend contract: `9a81a9f798b24f37915de90a73ee68a8f07ac634`. +CI backend contract: `2a47c734f037db7ce91f0570aecfd1a6e5909c0a`. Both CI jobs use this immutable backend revision. It includes shared video stages, conditional reference requirements, the scoped Linux shared-memory LTX diff --git a/scripts/bundle-budget.mjs b/scripts/bundle-budget.mjs index 936cf8cc..04d5ebf5 100644 --- a/scripts/bundle-budget.mjs +++ b/scripts/bundle-budget.mjs @@ -490,9 +490,9 @@ const SOURCE_LICENSES = new URL('../public/THIRD_PARTY_LICENSES.txt', import.met // 504492/682980/346033 largest/startup/deferred gzip bytes: the reviewed // migration ceilings below still pass with 8/12/304 bytes of headroom. const MAX_STARTUP_CHUNK_GZIP_BYTES = - // Exact legacy-action hints before model selection and stable stage titles. - // Reviewed paired build: 528970 vs. 528834 bytes; preserve the four-byte margin. - 136 + + // Exact action lookup and shared discovery of compatible model bindings. + // Reviewed paired build: 529044 vs. 528834 bytes; preserve the four-byte margin. + 210 + // Stage discovery, action search and compatible mode changes (524253 -> 528821 gzip bytes). 4568 + // Exact connected model summaries add 501 gzip bytes (523747 -> 524248). @@ -766,8 +766,8 @@ const MAX_STARTUP_CHUNK_GZIP_BYTES = // The same build measures 673359 aggregate startup bytes (+45 over the cap). // Keep 19 bytes of headroom; deferred limits and loading boundaries stay fixed. const MAX_STARTUP_GZIP_BYTES = - // Paired build above: 707457 vs. 707322 bytes across the startup closure. - 135 + + // Paired build above: 707532 vs. 707322 bytes across the startup closure. + 210 + // Stage discovery, action search and compatible mode changes (702737 -> 707310 gzip bytes). 4573 + // The same change adds 498 aggregate startup gzip bytes (702235 -> 702733). diff --git a/scripts/visual-node-catalog.test.mjs b/scripts/visual-node-catalog.test.mjs index 59ec14cf..b9de291a 100644 --- a/scripts/visual-node-catalog.test.mjs +++ b/scripts/visual-node-catalog.test.mjs @@ -149,6 +149,26 @@ test('selected model, required wire and disabled preset narrow insertable choice assert.equal(api.parseVisualCatalog(undefined), null); assert.throws(() => api.parseVisualCatalog({ ...metadata, stages: [metadata.stages[0], metadata.stages[0]] })); }); +test('multiple compatible bindings share one stage result and the exact operation selects its own binding', () => { + const base = { nodeKey: 'modules.DiffusersImage.Generate', pipelineClass: 'Image', task: 'text_to_image' }; + const guided = { ...base, nodeKey: 'modules.DiffusersImage.ControlGenerate', operationId: 'image.control.generate' }; + const plain = { ...base, operationId: 'image.base.generate' }; + const operations = [plain, guided]; + const visible = api.visualStageMatches(catalog, registry, '', { operations }); + assert.equal(visible.filter((hit) => hit.stage.id === 'generate-image').length, 1); + assert.ok(operations.every((op) => api.representedStageOperations(visible).has(op))); + const matching = api.visualStageMatches(catalog, registry, guided.operationId, { operations }); + assert.equal(matching[0].operation, guided); + assert.equal(matching[0].stage.id, 'generate-image'); + assert.ok( + !api + .visualStageMatches(catalog, registry, guided.operationId, { + operations, + compatible: (_node, op) => op === plain, + }) + .some((hit) => hit.operation === guided), + ); +}); test('control guidance preserves identity, compatible values and guide wires across model changes', () => { const make = (action, more = {}) => ({ module: 'modules.DiffusersImage', diff --git a/src/components/NodeList.tsx b/src/components/NodeList.tsx index 82ae2ecb..37374355 100644 --- a/src/components/NodeList.tsx +++ b/src/components/NodeList.tsx @@ -4,7 +4,7 @@ import CustomNodeLibrary from './CustomNodeLibrary'; import { useNodeDiscovery } from '../stores/useNodeDiscoveryStore'; import RuntimeNodeGroupsV2 from './RuntimeNodeGroupsV2'; import VisualStageLibrary from './VisualStageLibrary'; -import { visualStageMatches } from '../studio/visualNodeCatalog'; +import { representedStageOperations, visualStageMatches } from '../studio/visualNodeCatalog'; import { operationsForTask } from '../workflow/operationCatalog'; // Derived from cubiq/Mellon-client and modified by the MoDiff project. @@ -147,10 +147,7 @@ function NodeList() { [stageCatalog, nodesRegistry, search, effectiveCatalogView, showMoreStages, operationContracts, pipeline, task], ); const rawRegistryVisible = !stageCatalog; - const represented = useMemo( - () => new Set(stageResults.flatMap((s) => s.choices.flatMap((c) => (c.operation ? [c.operation] : [])))), - [stageResults], - ); + const represented = useMemo(() => representedStageOperations(stageResults), [stageResults]); const catalogNodes = useMemo( () => runtimeCatalogNodes(nodesRegistry, operationContracts, pipelineSupport, effectiveCatalogView, { pipeline, task }), diff --git a/src/components/NodeSearchDialog.tsx b/src/components/NodeSearchDialog.tsx index e5bc25f3..a6a08013 100644 --- a/src/components/NodeSearchDialog.tsx +++ b/src/components/NodeSearchDialog.tsx @@ -1,5 +1,5 @@ import { nodeDisplayLabel } from '../workflow/nodePresentation'; -import { visualStageMatches, type StageMatch } from '../studio/visualNodeCatalog'; +import { representedStageOperations, visualStageMatches, type StageMatch } from '../studio/visualNodeCatalog'; import { operationsForTask } from '../workflow/operationCatalog'; // Derived from cubiq/Mellon-client and modified by the MoDiff project. @@ -179,7 +179,7 @@ const NodeSearchDialog = ({ : Boolean(matchingNodeHandleForDrop(node, dataType, handleType, origin, allowUnverified))), }) : []; - const represented = new Set(stages.map((s) => s.operation).filter(Boolean)); + const represented = representedStageOperations(stages); const entries = [ ...stages.map((stage) => ({ stage, diff --git a/src/studio/visualNodeCatalog.ts b/src/studio/visualNodeCatalog.ts index ad131992..a55e81aa 100644 --- a/src/studio/visualNodeCatalog.ts +++ b/src/studio/visualNodeCatalog.ts @@ -230,7 +230,10 @@ export function visualStageMatches( if (options.compatible && !options.compatible(node, operation)) continue; const choice = { mode, definition: node, operation }; choices.push(choice); - const score = relevance(query, stage, mode, registry[mode.node]!); + const score = + query && operation?.operationId && words(operation.operationId) === query + ? 96 + : relevance(query, stage, mode, registry[mode.node]!); if (!score || (best && best.score >= score)) continue; const term = query && mode.terms?.find((term) => compact(words(term)) === compact(query)); const detail = term && words(term) !== words(mode.label) ? mode.label + ' · ' + term : mode.label; @@ -266,6 +269,10 @@ export function visualStageMatches( return results.sort((a, b) => b.score - a.score); } +export function representedStageOperations(matches: StageMatch[]) { + return new Set(matches.flatMap((match) => match.choices.flatMap(({ operation }) => (operation ? [operation] : [])))); +} + export function visualStageForNode(catalog: VisualCatalog | null, node: NodeData) { const key = `${node.module}.${node.action}`; const operation = node.operationAuthoring?.operation; From bd95ae04747bc5adda0e34997441f6de1e2c82ca Mon Sep 17 00:00:00 2001 From: Sourav Das Date: Mon, 23 Nov 2026 20:52:33 +0530 Subject: [PATCH 314/440] Preserve saved video settings and resolve caption stage labels --- scripts/bundle-budget.mjs | 4 ++ scripts/run-coordinator.test.mjs | 55 +++++++++++++++++++++++++++ scripts/visual-node-catalog.test.mjs | 3 +- src/stores/websocketMessageHandler.ts | 6 +++ src/studio/visualNodeCatalog.ts | 8 ++++ 5 files changed, 75 insertions(+), 1 deletion(-) diff --git a/scripts/bundle-budget.mjs b/scripts/bundle-budget.mjs index 04d5ebf5..84d6577b 100644 --- a/scripts/bundle-budget.mjs +++ b/scripts/bundle-budget.mjs @@ -490,6 +490,8 @@ const SOURCE_LICENSES = new URL('../public/THIRD_PARTY_LICENSES.txt', import.met // 504492/682980/346033 largest/startup/deferred gzip bytes: the reviewed // migration ceilings below still pass with 8/12/304 bytes of headroom. const MAX_STARTUP_CHUNK_GZIP_BYTES = + // Preserve saved video controls and resolve caption stage names (+87 bytes). + 87 + // Exact action lookup and shared discovery of compatible model bindings. // Reviewed paired build: 529044 vs. 528834 bytes; preserve the four-byte margin. 210 + @@ -766,6 +768,8 @@ const MAX_STARTUP_CHUNK_GZIP_BYTES = // The same build measures 673359 aggregate startup bytes (+45 over the cap). // Keep 19 bytes of headroom; deferred limits and loading boundaries stay fixed. const MAX_STARTUP_GZIP_BYTES = + // The same saved-workflow corrections add 84 bytes across startup. + 84 + // Paired build above: 707532 vs. 707322 bytes across the startup closure. 210 + // Stage discovery, action search and compatible mode changes (702737 -> 707310 gzip bytes). diff --git a/scripts/run-coordinator.test.mjs b/scripts/run-coordinator.test.mjs index 4b943d14..3c168a70 100644 --- a/scripts/run-coordinator.test.mjs +++ b/scripts/run-coordinator.test.mjs @@ -2018,6 +2018,61 @@ test('dynamic field and completion messages mutate only their owning workflow ca assert.equal(flowStoreModule.useFlowStore.getState().getParam('preview', 'output', 'disabled'), false); }); +test('a whole-pipeline field update keeps absent inactive controls out of older graphs', async () => { + const context = { sid: 'session-1', ws: {}, getSid: () => 'session-1', setSid() {}, setLoopTimer() {} }; + studioStoreModule.useStudioStore.setState({ + activeWorkflowTabId: 'workflow-origin', + workflowCanvasEpoch: 12, + workflowTabs: [{ id: 'workflow-origin' }], + }); + const store = flowStoreModule.useFlowStore; + store.setState({ + nodes: [ + { + id: 'video', + type: 'custom', + position: { x: 0, y: 0 }, + data: { + type: 'custom', + module: 'modules.DiffusersVideo', + action: 'Generate', + label: 'Generate Video', + category: 'Video', + params: { + pipeline: { display: 'input', type: 'video_diffusion_pipeline' }, + stg_scale: { value: 2, hidden: false, type: 'float' }, + }, + }, + }, + ], + edges: [], + }); + const update = (field, params) => + websocketModule.handleWebsocketMessage( + { + type: 'set_field_params', + sid: 'session-1', + node: 'video', + field, + params, + workflow_tab_id: 'workflow-origin', + workflow_canvas_epoch: 12, + }, + context, + ); + update('audio_guidance_scale', { hidden: true }); + update('stg_scale', { hidden: true }); + await Promise.resolve(); + let params = store.getState().nodes[0].data.params; + assert.equal(Object.hasOwn(params, 'audio_guidance_scale'), false); + assert.equal(params.stg_scale.hidden, true); + assert.equal(params.stg_scale.value, 2); + update('audio_guidance_scale', { hidden: false, value: 7 }); + await Promise.resolve(); + params = store.getState().nodes[0].data.params; + assert.equal(params.audio_guidance_scale.value, 7); +}); + test('owned set_field_params messages reconcile opaque signals across connected generic fields', async () => { const context = { sid: 'session-1', diff --git a/scripts/visual-node-catalog.test.mjs b/scripts/visual-node-catalog.test.mjs index b9de291a..06e805e1 100644 --- a/scripts/visual-node-catalog.test.mjs +++ b/scripts/visual-node-catalog.test.mjs @@ -61,13 +61,14 @@ test('an exact decomposed action can be located before model selection without b assert.equal(search(query, { showModelHints: true, operations: [] }).length, 0); } }); -test('shipped image and video stages use the same picker titles after reopening and preserve user titles', async () => { +test('shipped image, video, and caption stages use picker titles after reopening and preserve user titles', async () => { const { exampleWorkflowSnapshotFromGraph } = await server.ssrLoadModule('/src/studio/exampleWorkflow.ts'); const { normalizePersistedFlowState } = await server.ssrLoadModule('/src/stores/useFlowStore.ts'); const { DEFAULT_STUDIO_FORM } = await server.ssrLoadModule('/src/studio/modelProfiles.ts'); for (const [file, expected] of [ ['z-image-modular-pipeline/text-to-image', 'Generate Image'], ['wan-video-pipeline/text-to-video', 'Generate Video'], + ['hugging-face-image-text-to-text-model/image-to-text', 'Generate Text'], ]) { const raw = JSON.parse(readFileSync(new URL('../../MoDiff/data/graphs/studio/' + file + '.json', import.meta.url))); const fresh = exampleWorkflowSnapshotFromGraph(raw, 'default', DEFAULT_STUDIO_FORM); diff --git a/src/stores/websocketMessageHandler.ts b/src/stores/websocketMessageHandler.ts index a352f61f..11614160 100644 --- a/src/stores/websocketMessageHandler.ts +++ b/src/stores/websocketMessageHandler.ts @@ -5,6 +5,7 @@ import { blockOperationGraphV2 } from '../studio/blockRuntimeV2'; import { markStudioGraphDefinitionPending, syncStudioGraphDefinition } from '../studio/graphBridge'; import { collapsedHuggingFaceClusterPreviewTarget } from '../studio/huggingFaceClusterGraph'; import { prepareExecutionScope } from '../workflow/prepareExecutionScope'; +import { isWholePipelineStage } from '../workflow/wholePipelineStage'; import { coordinateGraphRun } from '../studio/runCoordinator'; import { ensureStudioAutoPlanReadyForRun } from '../studio/useStudioRunActions'; import { blockPreviewTargetV2, collapsedUserBlockPreviewTarget, runtimeProgressTarget } from '../studio/userBlocks'; @@ -1246,6 +1247,11 @@ export function handleWebsocketMessage(message: WebsocketMessage, context: Webso const nodeId = message.node; const field = message.field; const params = message.params; + if (params.hidden === true && !hasOwn(params, 'value') && !hasOwn(params, 'signal')) { + const target = useFlowStore.getState().nodes.find((node) => node.id === nodeId); + // A visibility update must not add an inactive literal to an older recipe. + if (target && !hasOwn(target.data.params, field) && isWholePipelineStage(target.data)) break; + } const workflowContext = captureWorkflowOperationContext(); const schemaPending = markStudioGraphDefinitionPending(nodeId, Object.keys(params) as Array); const previousSignal = useFlowStore.getState().getParam(nodeId, field, 'signal'); diff --git a/src/studio/visualNodeCatalog.ts b/src/studio/visualNodeCatalog.ts index a55e81aa..9e76b2e8 100644 --- a/src/studio/visualNodeCatalog.ts +++ b/src/studio/visualNodeCatalog.ts @@ -326,6 +326,14 @@ export function visualNodeTitle(catalog: VisualCatalog | null, node: NodeData, r const owningStage = catalog.stages.find((stage) => stage.memberTasks?.includes(task)); if (owningStage) return owningStage.label; } + // A whole action can take media and produce text. Use its published + // action before interpreting input or output media ports as a fallback. + const [member] = instance.effectiveGraph.nodes; + if (member && instance.effectiveGraph.nodes.length === 1) { + const key = `${member.data.module}.${member.data.action}`; + const owningStage = catalog.stages.find((stage) => stage.modes.some((mode) => mode.node === key)); + if (owningStage) return owningStage.label; + } return catalog.stages.find((stage) => stage.id === 'generate-' + media)?.label ?? original; } return catalog.stages.find((stage) => stage.id === projectedStages[kind])?.label ?? original; From 19bbd3336d70235a47b7bf4b419437c800a5ca2c Mon Sep 17 00:00:00 2001 From: Sourav Das Date: Mon, 23 Nov 2026 22:47:26 +0530 Subject: [PATCH 315/440] Show declared roles on generic video input cards --- docs/video-workflows.md | 8 +++++--- scripts/bundle-budget.mjs | 4 ++++ scripts/visual-node-catalog.test.mjs | 19 +++++++++++++++++++ src/studio/visualNodeCatalog.ts | 9 +++++++-- src/workflow/nodePresentation.ts | 8 ++++++-- 5 files changed, 41 insertions(+), 7 deletions(-) diff --git a/docs/video-workflows.md b/docs/video-workflows.md index e679c24a..fbb5c814 100644 --- a/docs/video-workflows.md +++ b/docs/video-workflows.md @@ -38,9 +38,11 @@ decoder. A real upscaler between decode and export remains a separate stage. When an upscaler or separately produced soundtrack follows decoding, the connected denoiser and decoder appear as **Generate**. The shared pipeline input feeds both operations and checks that the selected model supports both -actions. An exclusive video loader and normalizer appear as **Video Input**. -The file picker previews the source. Target width, height, frames and fit -control the normalized clip. Expand either Block to inspect its operations. +actions. An exclusive video loader and normalizer appear in one input stage. +The card uses its declared role, such as **Source Video** or **Control Video**, +and shows **Video Input** when the saved workflow has no role. The file picker +previews the clip. Target width, height, frames and fit control normalization. +Use **Edit stages** to inspect the underlying operations. In a saved workflow, choose **Model Setup → options → Simplify connected stages** to apply the same grouping to that branch. Undo restores its previous diff --git a/scripts/bundle-budget.mjs b/scripts/bundle-budget.mjs index 84d6577b..77dac3bf 100644 --- a/scripts/bundle-budget.mjs +++ b/scripts/bundle-budget.mjs @@ -490,6 +490,8 @@ const SOURCE_LICENSES = new URL('../public/THIRD_PARTY_LICENSES.txt', import.met // 504492/682980/346033 largest/startup/deferred gzip bytes: the reviewed // migration ceilings below still pass with 8/12/304 bytes of headroom. const MAX_STARTUP_CHUNK_GZIP_BYTES = + // Use the saved media roles on video input cards (529131 -> 529176 gzip bytes). + 45 + // Preserve saved video controls and resolve caption stage names (+87 bytes). 87 + // Exact action lookup and shared discovery of compatible model bindings. @@ -768,6 +770,8 @@ const MAX_STARTUP_CHUNK_GZIP_BYTES = // The same build measures 673359 aggregate startup bytes (+45 over the cap). // Keep 19 bytes of headroom; deferred limits and loading boundaries stay fixed. const MAX_STARTUP_GZIP_BYTES = + // The same input titles add 47 bytes across the startup closure. + 47 + // The same saved-workflow corrections add 84 bytes across startup. 84 + // Paired build above: 707532 vs. 707322 bytes across the startup closure. diff --git a/scripts/visual-node-catalog.test.mjs b/scripts/visual-node-catalog.test.mjs index 06e805e1..039ee8d0 100644 --- a/scripts/visual-node-catalog.test.mjs +++ b/scripts/visual-node-catalog.test.mjs @@ -83,6 +83,25 @@ test('shipped image, video, and caption stages use picker titles after reopening } } }); +test('projected video inputs identify source and control roles after reopening', async () => { + const { exampleWorkflowSnapshotFromGraph } = await server.ssrLoadModule('/src/studio/exampleWorkflow.ts'); + const { normalizePersistedFlowState } = await server.ssrLoadModule('/src/stores/useFlowStore.ts'); + const { DEFAULT_STUDIO_FORM } = await server.ssrLoadModule('/src/studio/modelProfiles.ts'); + const file = + '../../MoDiff/data/graphs/studio/animate-diff-video-to-video-control-net-pipeline/control-video-to-video.json'; + const raw = JSON.parse(readFileSync(new URL(file, import.meta.url))); + const fresh = exampleWorkflowSnapshotFromGraph(raw, 'default', DEFAULT_STUDIO_FORM); + for (const state of [fresh, normalizePersistedFlowState(structuredClone(fresh))]) { + const inputs = state.nodes.filter((node) => node.data.label === 'Video Input'); + assert.equal(inputs.length, 2); + assert.deepEqual(inputs.map((node) => api.visualNodeTitle(catalog, node.data)).sort(), [ + 'Control Video', + 'Source Video', + ]); + const data = { ...inputs[0].data, label: 'Opening plate' }; + assert.equal(api.visualNodeTitle(catalog, data), 'Opening plate'); + } +}); test('35 stages, tiered browsing and every published alias and exact ID can reach its stage', () => { const results = (query, options) => api.visualStageMatches(catalog, registry, query, options); assert.equal(results('').length, 15); diff --git a/src/studio/visualNodeCatalog.ts b/src/studio/visualNodeCatalog.ts index 9e76b2e8..bef799b0 100644 --- a/src/studio/visualNodeCatalog.ts +++ b/src/studio/visualNodeCatalog.ts @@ -1,6 +1,6 @@ import type { NodeData } from '../stores/useNodeStore'; import type { OperationContract } from '../workflow/operationContracts'; -import { nodeDisplayLabel, nodeSearchAliases } from '../workflow/nodePresentation'; +import { mediaRoleCaption, nodeDisplayLabel, nodeSearchAliases } from '../workflow/nodePresentation'; import { isOptionDescriptor, optionDescriptorIsSelectable } from './runtimeOptions'; import { isRecord } from '../utils/isRecord'; import { @@ -301,7 +301,6 @@ const projectedStages: Partial> = { setup: 'model-setup', inputs: 'encode-inputs', imageInput: 'media-input', - videoInput: 'media-input', output: 'export', composite: 'composite', references: 'references', @@ -317,6 +316,12 @@ export function visualNodeTitle(catalog: VisualCatalog | null, node: NodeData, r if (!kind || visualStageHasNestedStructure(instance)) return original; const media = visualOperationGroupMedia({ data: node }); if (original !== visualStagePresentation(kind, media).label) return original; + if (kind === 'videoInput') { + const loaders = instance.effectiveGraph.nodes.filter( + ({ data }) => data.module === 'modules.Video' && data.action === 'Load', + ); + return (loaders.length === 1 && mediaRoleCaption('modules.Video.Load', loaders[0]?.data.studioRole)) || original; + } if (kind === 'generate') { for (const member of instance.effectiveGraph.nodes) { const hint = member.data.operationAuthoring; diff --git a/src/workflow/nodePresentation.ts b/src/workflow/nodePresentation.ts index 7563a41c..a101e187 100644 --- a/src/workflow/nodePresentation.ts +++ b/src/workflow/nodePresentation.ts @@ -157,6 +157,11 @@ const MEDIA_ROLE_CAPTIONS: Record> = { }, }; +export function mediaRoleCaption(identity: string, role: unknown) { + const caption = typeof role === 'string' ? MEDIA_ROLE_CAPTIONS[identity]?.[role] : undefined; + return typeof caption === 'string' ? caption : undefined; +} + const FIELD_PRESENTATIONS: Record> = { 'modules.Image.Merge': { image_from: ['Image From', 'Overlay image'], @@ -262,8 +267,7 @@ export function nodeDisplayLabel( ): string { const identity = `${node.module}.${node.action}`; const presentation = PRESENTATIONS[identity]; - const roleLabels = MEDIA_ROLE_CAPTIONS[identity]; - const roleLabel = node.studioRole ? roleLabels?.[node.studioRole] : undefined; + const roleLabel = mediaRoleCaption(identity, node.studioRole); if ( presentation && typeof roleLabel === 'string' && From d6d887b48e337971d2e02f9ac73cc0fc9dc470b8 Mon Sep 17 00:00:00 2001 From: Sourav Das Date: Tue, 24 Nov 2026 01:25:49 +0530 Subject: [PATCH 316/440] Preserve absent inputs on saved pipeline stages --- docs/video-workflows.md | 2 ++ scripts/bundle-budget.mjs | 4 ++++ scripts/run-coordinator.test.mjs | 24 +++++++++++++++++++++++- src/stores/websocketMessageHandler.ts | 22 +++++++++++++++++----- 4 files changed, 46 insertions(+), 6 deletions(-) diff --git a/docs/video-workflows.md b/docs/video-workflows.md index fbb5c814..1127c9a9 100644 --- a/docs/video-workflows.md +++ b/docs/video-workflows.md @@ -11,6 +11,8 @@ reference images or source video. The selected Wan 2.2 5B backend route currentl accepts text only. Model names and cached weights do not prove another task is supported. Existing whole-pipeline graphs retain their original representation; loading an old workflow does not migrate its nodes or discard saved settings. +For whole-pipeline stages, passive visibility updates affect existing fields. +A newly declared field or explicit value can still appear after a model change. Choose a supported task and exact model selection, enter the prompt and required media, and review the resource settings before Run. The backend owns loading, diff --git a/scripts/bundle-budget.mjs b/scripts/bundle-budget.mjs index 77dac3bf..1ce3e0dd 100644 --- a/scripts/bundle-budget.mjs +++ b/scripts/bundle-budget.mjs @@ -490,6 +490,8 @@ const SOURCE_LICENSES = new URL('../public/THIRD_PARTY_LICENSES.txt', import.met // 504492/682980/346033 largest/startup/deferred gzip bytes: the reviewed // migration ceilings below still pass with 8/12/304 bytes of headroom. const MAX_STARTUP_CHUNK_GZIP_BYTES = + // Preserve older whole-pipeline sockets across passive updates (529176 -> 529202 bytes). + 26 + // Use the saved media roles on video input cards (529131 -> 529176 gzip bytes). 45 + // Preserve saved video controls and resolve caption stage names (+87 bytes). @@ -770,6 +772,8 @@ const MAX_STARTUP_CHUNK_GZIP_BYTES = // The same build measures 673359 aggregate startup bytes (+45 over the cap). // Keep 19 bytes of headroom; deferred limits and loading boundaries stay fixed. const MAX_STARTUP_GZIP_BYTES = + // The same scoped compatibility fix adds 25 bytes across startup (707663 -> 707688). + 25 + // The same input titles add 47 bytes across the startup closure. 47 + // The same saved-workflow corrections add 84 bytes across startup. diff --git a/scripts/run-coordinator.test.mjs b/scripts/run-coordinator.test.mjs index 3c168a70..9910c78a 100644 --- a/scripts/run-coordinator.test.mjs +++ b/scripts/run-coordinator.test.mjs @@ -2018,7 +2018,7 @@ test('dynamic field and completion messages mutate only their owning workflow ca assert.equal(flowStoreModule.useFlowStore.getState().getParam('preview', 'output', 'disabled'), false); }); -test('a whole-pipeline field update keeps absent inactive controls out of older graphs', async () => { +test('a whole-pipeline field update preserves old graph fields and accepts declared controls', async () => { const context = { sid: 'session-1', ws: {}, getSid: () => 'session-1', setSid() {}, setLoopTimer() {} }; studioStoreModule.useStudioStore.setState({ activeWorkflowTabId: 'workflow-origin', @@ -2061,16 +2061,38 @@ test('a whole-pipeline field update keeps absent inactive controls out of older context, ); update('audio_guidance_scale', { hidden: true }); + update('encoded_inputs', { hidden: false }); update('stg_scale', { hidden: true }); + websocketModule.handleWebsocketMessage( + { + type: 'set_field_visibility', + sid: 'session-1', + node: 'video', + fields: { reference_video: true, stg_scale: false }, + workflow_tab_id: 'workflow-origin', + workflow_canvas_epoch: 12, + }, + context, + ); await Promise.resolve(); let params = store.getState().nodes[0].data.params; assert.equal(Object.hasOwn(params, 'audio_guidance_scale'), false); + assert.equal(Object.hasOwn(params, 'encoded_inputs'), false); + assert.equal(Object.hasOwn(params, 'reference_video'), false); assert.equal(params.stg_scale.hidden, true); assert.equal(params.stg_scale.value, 2); update('audio_guidance_scale', { hidden: false, value: 7 }); + update('encoded_inputs', { hidden: false, display: 'input', type: 'video_conditioning', required: true }); await Promise.resolve(); params = store.getState().nodes[0].data.params; assert.equal(params.audio_guidance_scale.value, 7); + assert.deepEqual(params.encoded_inputs, { + disabled: false, + hidden: false, + display: 'input', + type: 'video_conditioning', + required: true, + }); }); test('owned set_field_params messages reconcile opaque signals across connected generic fields', async () => { diff --git a/src/stores/websocketMessageHandler.ts b/src/stores/websocketMessageHandler.ts index 11614160..b2b086fd 100644 --- a/src/stores/websocketMessageHandler.ts +++ b/src/stores/websocketMessageHandler.ts @@ -501,6 +501,11 @@ function scheduleStudioDefinitionSync() { }, 80); } +function isOmittedWholePipelineField(nodeId: string, field: string) { + const node = useFlowStore.getState().nodes.find((entry) => entry.id === nodeId); + return node && isWholePipelineStage(node.data) && !hasOwn(node.data.params, field); +} + export function handleWebsocketMessage(message: WebsocketMessage, context: WebsocketMessageHandlerContext) { switch (message.type) { case 'welcome': { @@ -1220,7 +1225,9 @@ export function handleWebsocketMessage(message: WebsocketMessage, context: Webso const visibility = message.fields as Record; const schemaPending = markStudioGraphDefinitionPending(nodeId, ['hidden']); Object.keys(visibility).forEach((key) => { - useFlowStore.getState().setParam(nodeId, key, !visibility[key], 'hidden'); + if (!isOmittedWholePipelineField(nodeId, key)) { + useFlowStore.getState().setParam(nodeId, key, !visibility[key], 'hidden'); + } }); if (schemaPending) scheduleStudioDefinitionSync(); break; @@ -1247,10 +1254,15 @@ export function handleWebsocketMessage(message: WebsocketMessage, context: Webso const nodeId = message.node; const field = message.field; const params = message.params; - if (params.hidden === true && !hasOwn(params, 'value') && !hasOwn(params, 'signal')) { - const target = useFlowStore.getState().nodes.find((node) => node.id === nodeId); - // A visibility update must not add an inactive literal to an older recipe. - if (target && !hasOwn(target.data.params, field) && isWholePipelineStage(target.data)) break; + const visibilityOnly = Object.keys(params).every((key) => key === 'hidden' || key === 'disabled'); + // Passive presentation updates cannot create a field absent from a saved stage. + if ( + (params.hidden === true || visibilityOnly) && + !hasOwn(params, 'value') && + !hasOwn(params, 'signal') && + isOmittedWholePipelineField(nodeId, field) + ) { + break; } const workflowContext = captureWorkflowOperationContext(); const schemaPending = markStudioGraphDefinitionPending(nodeId, Object.keys(params) as Array); From 030213b4194689cfea95043c3e49a1591d6ae58b Mon Sep 17 00:00:00 2001 From: Sourav Das Date: Tue, 24 Nov 2026 03:47:46 +0530 Subject: [PATCH 317/440] Check AnimateDiff readiness against the standard motion file --- .../weight-format-template-binding.test.mjs | 22 +++++++++++++++++++ src/studio/modelProfiles.ts | 2 +- 2 files changed, 23 insertions(+), 1 deletion(-) diff --git a/scripts/weight-format-template-binding.test.mjs b/scripts/weight-format-template-binding.test.mjs index 542f4d63..6b1cfa2f 100644 --- a/scripts/weight-format-template-binding.test.mjs +++ b/scripts/weight-format-template-binding.test.mjs @@ -408,6 +408,28 @@ test('native-only cache cannot satisfy a distinct variant and deduplication pres ); }); +test('AnimateDiff readiness requires the standard motion file at the pinned revision', async () => { + const { ANIMATEDIFF_MOTION_REQUIREMENT: motion, ANIMATELCM_MOTION_REQUIREMENT: lcm } = + await load('studio/modelProfiles'); + const { getRepoCacheStatus } = await load('studio/modelCache'); + const files = ['.gitattributes', 'README.md', 'config.json', 'diffusion_pytorch_model.safetensors']; + assert.deepEqual(motion.downloadFiles, files); + assert.notEqual(lcm.repo, motion.repo); + const cachedSelection = (weight) => ({ + id: motion.repo, + installed: true, + complete: true, + observed_selections: [{ revision: motion.revision, files: [...files.slice(0, -1), weight], complete: true }], + }); + const status = (weight) => + getRepoCacheStatus(motion.repo, [cachedSelection(weight)], [], null, { + revision: motion.revision, + files: motion.downloadFiles, + }); + assert.equal(status('diffusion_pytorch_model.fp16.safetensors').runnable, false); + assert.equal(status('diffusion_pytorch_model.safetensors').runnable, true); +}); + test('observed exact cached selections supersede native receipts without confusing variants or repository prefixes', async () => { const { getRepoCacheStatus, getStudioModelCacheStatus } = await load('studio/modelCache'); const { getGraphWorkflowArtifactRequirements } = await load('studio/artifactRequirements'); diff --git a/src/studio/modelProfiles.ts b/src/studio/modelProfiles.ts index 5183490f..579fdccf 100644 --- a/src/studio/modelProfiles.ts +++ b/src/studio/modelProfiles.ts @@ -782,7 +782,7 @@ export const ANIMATEDIFF_MOTION_REQUIREMENT: StudioModelRequirement = { revision: ANIMATEDIFF_MOTION_REVISION, kind: 'adapter', requiredForModes: ['text_to_video'], - description: 'Pinned fp16 safetensors AnimateDiff motion module.', + downloadFiles: ['.gitattributes', 'README.md', 'config.json', 'diffusion_pytorch_model.safetensors'], }; export const ANIMATELCM_MOTION_REQUIREMENT: StudioModelRequirement = { From 71f02b8b523fa7ae4fadc27db989e1e146bdce62 Mon Sep 17 00:00:00 2001 From: Sourav Das Date: Tue, 24 Nov 2026 06:59:26 +0530 Subject: [PATCH 318/440] Apply model-specific image geometry and verify Latte Auto --- scripts/bundle-budget.mjs | 4 ++ scripts/modiff-template.test.mjs | 13 +++++++ scripts/workflow-library-verify.mjs | 2 +- src/studio/modelProfiles.ts | 58 ++++++++++++++++++----------- 4 files changed, 55 insertions(+), 22 deletions(-) diff --git a/scripts/bundle-budget.mjs b/scripts/bundle-budget.mjs index 1ce3e0dd..4a41839d 100644 --- a/scripts/bundle-budget.mjs +++ b/scripts/bundle-budget.mjs @@ -490,6 +490,8 @@ const SOURCE_LICENSES = new URL('../public/THIRD_PARTY_LICENSES.txt', import.met // 504492/682980/346033 largest/startup/deferred gzip bytes: the reviewed // migration ceilings below still pass with 8/12/304 bytes of headroom. const MAX_STARTUP_CHUNK_GZIP_BYTES = + // Model-selected outpaint geometry adds 17 bytes (529206 -> 529223 gzip bytes). + 17 + // Preserve older whole-pipeline sockets across passive updates (529176 -> 529202 bytes). 26 + // Use the saved media roles on video input cards (529131 -> 529176 gzip bytes). @@ -772,6 +774,8 @@ const MAX_STARTUP_CHUNK_GZIP_BYTES = // The same build measures 673359 aggregate startup bytes (+45 over the cap). // Keep 19 bytes of headroom; deferred limits and loading boundaries stay fixed. const MAX_STARTUP_GZIP_BYTES = + // The same change adds 12 startup bytes (707695 -> 707707 gzip bytes). + 12 + // The same scoped compatibility fix adds 25 bytes across startup (707663 -> 707688). 25 + // The same input titles add 47 bytes across the startup closure. diff --git a/scripts/modiff-template.test.mjs b/scripts/modiff-template.test.mjs index eae07f50..a857650a 100644 --- a/scripts/modiff-template.test.mjs +++ b/scripts/modiff-template.test.mjs @@ -1053,6 +1053,19 @@ test('final direct image and LTX2 routes stay additive, Expert-only, and media t ]); }); +test('outpaint uses the selected model canvas defaults and keeps other task defaults', () => { + const defaults = profilesModule.getFormDefaultsForMode('outpaint', 'ChromaInpaintPipeline'); + assert.deepEqual([defaults.width, defaults.height, defaults.aspectRatio], [1024, 768, '4:3']); + assert.deepEqual( + [defaults.outpaintLeft, defaults.outpaintRight, defaults.outpaintOverlap, defaults.outpaintFeather], + [96, 96, 48, 16], + ); + const inpaint = profilesModule.getFormDefaultsForMode('inpaint', 'ChromaInpaintPipeline'); + assert.deepEqual([inpaint.width, inpaint.height, inpaint.outpaintLeft], [1024, 1024, 256]); + const other = profilesModule.getFormDefaultsForMode('outpaint', 'ZImageInpaintPipeline'); + assert.deepEqual([other.width, other.height, other.outpaintLeft, other.outpaintRight], [1344, 768, 256, 256]); +}); + test('generic direct outpaint and synchronized LTX2 workflows infer exact modes and fields', () => { const node = (id, module, action, studioRole, params = {}) => ({ id, diff --git a/scripts/workflow-library-verify.mjs b/scripts/workflow-library-verify.mjs index b3e87256..585ded12 100644 --- a/scripts/workflow-library-verify.mjs +++ b/scripts/workflow-library-verify.mjs @@ -495,7 +495,7 @@ function verifyWorkflow(workflow, expectedTier, graphLayout, imageStageContracts !workflow.requiredArtifacts.includes(base.value) || JSON.stringify(quantizationParams.components?.value) !== '[]' || recipeParams.offload_mode?.value !== 'sequential_cpu' || - recipeParams.attention_backend?.value !== '_native_math' || + recipeParams.attention_backend?.value !== 'auto' || recipeParams.attention_components?.value !== '' || recipeParams.vae_slicing?.value !== true || recipeParams.vae_tiling?.value !== false || diff --git a/src/studio/modelProfiles.ts b/src/studio/modelProfiles.ts index 579fdccf..89e3ba74 100644 --- a/src/studio/modelProfiles.ts +++ b/src/studio/modelProfiles.ts @@ -926,8 +926,15 @@ export function isStudioModelDiffusersBacked(profile: StudioModelProfile) { return profile.isDiffusersBacked ?? (runtimeKind === 'diffusers' || runtimeKind === 'diffusers_accelerated'); } +type StudioModelAuthoringDefaults = StudioModelProfile & { + outpaintDefaults?: Pick< + StudioFormState, + 'width' | 'height' | 'aspectRatio' | 'outpaintLeft' | 'outpaintRight' | 'outpaintOverlap' | 'outpaintFeather' + >; +}; + type StudioModelProfileSource = Omit< - StudioModelProfile, + StudioModelAuthoringDefaults, | 'modelType' | 'label' | 'displayName' @@ -3511,22 +3518,33 @@ const STUDIO_MODEL_PROFILE_SOURCES = { lowVramSide: 1024, lowVramOffload: 'sequential_cpu', }), - ChromaInpaintPipeline: expertImageRouteProfile({ - family: 'Chroma', - defaultRepo: CHROMA1_HD_REPO, - revision: CHROMA1_HD_REVISION, - modes: ['inpaint', 'outpaint'], - modeRequirements: { - inpaint: { requiredImages: ['referenceImages', 'maskImage'] }, - outpaint: { requiredImages: ['referenceImages'] }, + ChromaInpaintPipeline: { + ...expertImageRouteProfile({ + family: 'Chroma', + defaultRepo: CHROMA1_HD_REPO, + revision: CHROMA1_HD_REVISION, + modes: ['inpaint', 'outpaint'], + modeRequirements: { + inpaint: { requiredImages: ['referenceImages', 'maskImage'] }, + outpaint: { requiredImages: ['referenceImages'] }, + }, + recommendedSteps: 28, + recommendedGuidance: 7, + recommendedMaxSequenceLength: 512, + supportFlags: 3, + lowVramSide: 1024, + lowVramOffload: 'sequential_cpu', + }), + outpaintDefaults: { + width: 1024, + height: 768, + aspectRatio: '4:3', + outpaintLeft: 96, + outpaintRight: 96, + outpaintOverlap: 48, + outpaintFeather: 16, }, - recommendedSteps: 28, - recommendedGuidance: 7, - recommendedMaxSequenceLength: 512, - supportFlags: 3, - lowVramSide: 1024, - lowVramOffload: 'sequential_cpu', - }), + }, LTX2Pipeline: { ...expertVideoProfile( planningVideoProfile('LTX Video', LTX2_REPO, ['text_to_video'], {}, 0), @@ -3876,7 +3894,7 @@ export const STUDIO_MODEL_PROFILES = Object.fromEntries( }, ]; }), -) as Record; +) as Record; export const STUDIO_MODEL_LABELS = Object.fromEntries( Object.entries(STUDIO_MODEL_PROFILES).map(([modelType, profile]) => [modelType, profile.label]), @@ -4815,7 +4833,7 @@ export function getFormDefaultsForMode(mode: StudioMode, preferredModel?: Studio const modeDefaults = profile.modeDefaults?.[mode]; const size = mode === 'outpaint' - ? { aspectRatio: '16:9' as const, width: 1344, height: 768 } + ? (profile.outpaintDefaults ?? { aspectRatio: '16:9' as const, width: 1344, height: 768 }) : { ...profile.defaultSize, width: modeDefaults?.width ?? profile.defaultSize.width, @@ -4824,11 +4842,9 @@ export function getFormDefaultsForMode(mode: StudioMode, preferredModel?: Studio return { ...DEFAULT_STUDIO_FORM, + ...size, mode, modelType, - aspectRatio: size.aspectRatio, - width: size.width, - height: size.height, dtype: profile.defaultDtype, steps: mode === 'outpaint' ? 32 : (modeDefaults?.steps ?? profile.recommendedSteps), guidanceScale: modeDefaults?.guidanceScale ?? profile.recommendedGuidance, From f6432e123ecc15fe554aa9cb8698ba2eeec3c033 Mon Sep 17 00:00:00 2001 From: Sourav Das Date: Tue, 24 Nov 2026 08:45:20 +0530 Subject: [PATCH 319/440] Verify CogVideoX defaults and two exact image receipt routes --- scripts/live-proof-provenance.mjs | 47 ++++++++++++++++++++++ scripts/prompt-variant-evidence.test.mjs | 51 +++++++++++++++++++++++- scripts/workflow-library-verify.mjs | 2 +- 3 files changed, 97 insertions(+), 3 deletions(-) diff --git a/scripts/live-proof-provenance.mjs b/scripts/live-proof-provenance.mjs index 2d0eec5f..6dc0f1b5 100644 --- a/scripts/live-proof-provenance.mjs +++ b/scripts/live-proof-provenance.mjs @@ -2213,6 +2213,53 @@ const plainImageInactive = const plainImageLegacyNull = ['control_guidance_start', 'conditioning_scale', 'strength', 'control_guidance_end']; const sd15PagScalars = ['pag_scale', 'pag_adaptive_scale']; export const directImagePromptRoutes = [ + { + format: 'modiff.private.nucleus-image-prompt-variant.v1', + workflowId: 'NucleusMoEImagePipeline:text_to_image', + modelType: 'NucleusMoEImagePipeline', + modelRepo: 'NucleusAI/Nucleus-Image', + modelRevision: '5e963db4fd0a65c7e4faf53ca2d4eca567c4dcfa', + active: [...plainImageActive, 'negative_prompt', 'max_sequence_length'], + inactive: plainImageInactive, + legacyNull: plainImageLegacyNull, + platform: /^Linux-/u, + backend: 'rocm', + dtype: 'bfloat16', + offload: 'model_cpu', + deviceMap: 'none', + generation: { + width: 1024, + height: 1024, + num_inference_steps: 50, + guidance_scale: 4, + max_sequence_length: 1024, + seed: 42, + negative_prompt: '', + }, + }, + { + format: 'modiff.private.glm-image-prompt-variant.v1', + workflowId: 'GlmImagePipeline:text_to_image', + modelType: 'GlmImagePipeline', + modelRepo: 'zai-org/GLM-Image', + modelRevision: '2c433cc0cbc293bde2ac8ca9624f279b5d23fcf4', + active: [...plainImageActive, 'max_sequence_length'], + inactive: [...plainImageInactive, 'negative_prompt'], + legacyNull: [...plainImageLegacyNull, 'negative_prompt'], + platform: /^Linux-/u, + backend: 'rocm', + dtype: 'bfloat16', + offload: 'model_cpu', + deviceMap: 'none', + generation: { + width: 1024, + height: 1024, + num_inference_steps: 50, + guidance_scale: 1.5, + max_sequence_length: 2048, + seed: 42, + }, + }, { format: 'modiff.private.prx-prompt-variant.v1', workflowId: 'PRXPipeline:text_to_image', diff --git a/scripts/prompt-variant-evidence.test.mjs b/scripts/prompt-variant-evidence.test.mjs index d6e7e37b..fcb62921 100644 --- a/scripts/prompt-variant-evidence.test.mjs +++ b/scripts/prompt-variant-evidence.test.mjs @@ -6,14 +6,18 @@ import { dirname, join, resolve } from 'node:path'; import test from 'node:test'; import { fileURLToPath } from 'node:url'; import { canonicalJsonHash } from './canonical-json.mjs'; -import { canonicalGraphIdentity } from './live-proof-provenance.mjs'; +import { canonicalGraphIdentity, directImagePromptRoutes } from './live-proof-provenance.mjs'; import { verifyRetainedStructuredText } from './retained-structured-text-evidence.mjs'; import { bindPromptVariant, validatePromptVariantText, validatePromptVariantVideo, } from './prompt-variant-evidence.mjs'; -import { readCanonicalEvidenceFile, readCanonicalWorkflowEvidence } from './release-contract-core.mjs'; +import { + exportCanonicalWorkflowGraphs, + readCanonicalEvidenceFile, + readCanonicalWorkflowEvidence, +} from './release-contract-core.mjs'; const clientRoot = fileURLToPath(new URL('..', import.meta.url)); const backendRoot = resolve(clientRoot, '../MoDiff'); @@ -319,3 +323,46 @@ for (const [workflowId, variable, kind] of [ } }); } + +test('GLM and Nucleus prompt receipts keep the exact portable artifact and graph', async () => { + const graphs = join(backendRoot, 'data/graphs'); + const manifest = JSON.parse(readFileSync(join(backendRoot, 'data/workflow-library-manifest.json'), 'utf8')); + const workflowIds = ['GlmImagePipeline:text_to_image', 'NucleusMoEImagePipeline:text_to_image']; + const fixtures = workflowIds.map((id) => + JSON.parse(readFileSync(join(graphs, manifest.workflows.find((entry) => entry.id === id).graphPath), 'utf8')), + ); + const originals = await exportCanonicalWorkflowGraphs(clientRoot, fixtures); + for (const [index, workflowId] of workflowIds.entries()) { + const record = directImagePromptRoutes.find((route) => route.workflowId === workflowId); + const original = originals[index]; + const identity = canonicalGraphIdentity(original); + const profile = { + ...record, + bindSeed: true, + chain: [ + ['quantization', 'modules.DiffusersRuntime', 'PipelineQuantizationConfigV2', ''], + ['recipe', 'modules.DiffusersRuntime', 'DiffusersExecutionRecipe', ''], + ['loader', 'modules.DiffusersImage', 'LoadPipeline', ''], + ['generator', 'modules.DiffusersImage', 'Generate', ''], + ['preview', 'modules.Image', 'Preview', ''], + ], + }; + const created = structuredClone(original); + const generation = Object.values(created.nodes).find((node) => node.action === 'Generate').params; + generation.prompt.value = 'A botanical print on ivory paper'; + generation.seed.value = record.generation.seed; + const output = { ...structuredClone(created), runtimeHints: {} }; + const witness = bindPromptVariant(profile, original, created, output, identity.hash); + assert.equal(witness.prompt, generation.prompt.value); + assert.equal(witness.loader.node.params.model_id.value.value, record.modelRepo); + assert.equal(witness.loader.node.params.revision.value, record.modelRevision); + assert.equal(witness.generator.node.params.max_sequence_length.value, record.generation.max_sequence_length); + + const changed = structuredClone(output); + Object.values(changed.nodes).find((node) => node.action === 'Generate').params.width.value += 32; + assert.throws( + () => bindPromptVariant(profile, original, created, changed, identity.hash), + /outside the bound prompt and seed/u, + ); + } +}); diff --git a/scripts/workflow-library-verify.mjs b/scripts/workflow-library-verify.mjs index 585ded12..48600c2c 100644 --- a/scripts/workflow-library-verify.mjs +++ b/scripts/workflow-library-verify.mjs @@ -433,7 +433,7 @@ function verifyWorkflow(workflow, expectedTier, graphLayout, imageStageContracts throw new Error(`${workflow.id} AnimateDiff graph is missing its exact base, motion, or scheduler recipe.`); } } - if (pipelineClass === 'CogVideoXPipeline') { + if (['CogVideoXPipeline', 'CogVideoXVideoToVideoPipeline'].includes(pipelineClass)) { const base = pipeline.data.params?.model_id?.value; const revision = pipeline.data.params?.revision?.value; const quantizationParams = quantization.data.params ?? {}; From 757d8383a3a11fbce9a92436df774802fad9a91b Mon Sep 17 00:00:00 2001 From: Sourav Das Date: Tue, 24 Nov 2026 10:11:37 +0530 Subject: [PATCH 320/440] Use the distilled LTX long-video sampler defaults --- scripts/bundle-budget.mjs | 4 ++++ scripts/task-template-contracts.test.mjs | 10 ++++++++++ scripts/workflow-library-verify.mjs | 13 +++++++++++++ src/studio/modelProfiles.ts | 20 ++++++++++++++------ 4 files changed, 41 insertions(+), 6 deletions(-) diff --git a/scripts/bundle-budget.mjs b/scripts/bundle-budget.mjs index 4a41839d..79d90ad2 100644 --- a/scripts/bundle-budget.mjs +++ b/scripts/bundle-budget.mjs @@ -490,6 +490,8 @@ const SOURCE_LICENSES = new URL('../public/THIRD_PARTY_LICENSES.txt', import.met // 504492/682980/346033 largest/startup/deferred gzip bytes: the reviewed // migration ceilings below still pass with 8/12/304 bytes of headroom. const MAX_STARTUP_CHUNK_GZIP_BYTES = + // LTX long distilled sampling defaults add 57 bytes (529223 -> 529280 gzip bytes). + 57 + // Model-selected outpaint geometry adds 17 bytes (529206 -> 529223 gzip bytes). 17 + // Preserve older whole-pipeline sockets across passive updates (529176 -> 529202 bytes). @@ -774,6 +776,8 @@ const MAX_STARTUP_CHUNK_GZIP_BYTES = // The same build measures 673359 aggregate startup bytes (+45 over the cap). // Keep 19 bytes of headroom; deferred limits and loading boundaries stay fixed. const MAX_STARTUP_GZIP_BYTES = + // The same scoped profile defaults add 58 bytes across startup (707707 -> 707765). + 58 + // The same change adds 12 startup bytes (707695 -> 707707 gzip bytes). 12 + // The same scoped compatibility fix adds 25 bytes across startup (707663 -> 707688). diff --git a/scripts/task-template-contracts.test.mjs b/scripts/task-template-contracts.test.mjs index a8a3ce12..b779425e 100644 --- a/scripts/task-template-contracts.test.mjs +++ b/scripts/task-template-contracts.test.mjs @@ -34,6 +34,16 @@ after(async () => { await server?.close(); }); +test('LTX long video starts with the exact distilled sampling controls', () => { + const model = 'LTXI2VLongMultiPromptPipeline'; + const defaults = modelProfilesModule.getFormDefaultsForRegisteredRoute('image_to_video', model); + assert.equal(defaults.modelType, model); + assert.equal(defaults.steps, 8); + assert.equal(defaults.guidanceScale, 1); + assert.equal(defaults.maxSequenceLength, 128); + assert.equal(modelProfilesModule.STUDIO_MODEL_PROFILES[model].lowVram.steps, 8); +}); + test('required Diffusers providers are hash-covered and bound to the exact declared overlay profile', async () => { const runtime = await server.ssrLoadModule('/src/studio/optionalRuntimes.ts'); const modelType = 'DDPMPipeline'; diff --git a/scripts/workflow-library-verify.mjs b/scripts/workflow-library-verify.mjs index 48600c2c..238c0036 100644 --- a/scripts/workflow-library-verify.mjs +++ b/scripts/workflow-library-verify.mjs @@ -451,6 +451,19 @@ function verifyWorkflow(workflow, expectedTier, graphLayout, imageStageContracts throw new Error(`${workflow.id} CogVideoX graph is missing its exact artifact or safe execution recipe.`); } } + if (pipelineClass === 'LTXI2VLongMultiPromptPipeline') { + const generate = (graph.nodes ?? []).find( + (node) => node?.data?.module === 'modules.DiffusersVideo' && node?.data?.action === 'Generate', + ); + const settings = generate?.data?.params ?? {}; + if ( + settings.num_inference_steps?.value !== 8 || + settings.guidance_scale?.value !== 1 || + settings.max_sequence_length?.value !== 128 + ) { + throw new Error(`${workflow.id} LTX long graph must use its pinned distilled sampler defaults.`); + } + } if (pipelineClass === 'AllegroPipeline') { const base = pipeline.data.params?.model_id?.value; const revision = pipeline.data.params?.revision?.value; diff --git a/src/studio/modelProfiles.ts b/src/studio/modelProfiles.ts index 89e3ba74..de62af82 100644 --- a/src/studio/modelProfiles.ts +++ b/src/studio/modelProfiles.ts @@ -975,6 +975,7 @@ function planningVideoProfile( modeRequirements: StudioModelProfile['modeRequirements'] = {}, supportFlags = 1, supportsVideoInput = false, + sampling?: { steps: number; guidance: number; maxSequenceLength: number }, ): StudioModelProfileSource { return { family, @@ -982,8 +983,9 @@ function planningVideoProfile( catalogVisibility: 'workflowOnly', defaultRepo, defaultSize: { width: 768, height: 512, aspectRatio: 'custom' }, - recommendedSteps: 30, - recommendedGuidance: 3, + recommendedSteps: sampling?.steps ?? 30, + recommendedGuidance: sampling?.guidance ?? 3, + ...(sampling ? { recommendedMaxSequenceLength: sampling.maxSequenceLength } : {}), supportFlags, supportsVideoInput, outputKind: 'video', @@ -993,7 +995,7 @@ function planningVideoProfile( dtype: 'bfloat16', autoOffload: true, offloadMode: DIRECT_OFFLOAD_SUPPORT.lowVram, - steps: 20, + steps: Math.min(20, sampling?.steps ?? 30), width: 768, height: 512, numFrames: 49, @@ -2040,9 +2042,15 @@ const STUDIO_MODEL_PROFILE_SOURCES = { image_to_video: { requiredImages: ['referenceImages', 'lastImage'] }, }, ), - LTXI2VLongMultiPromptPipeline: planningVideoProfile('LTX Video', LTX_VIDEO_REPO, ['image_to_video'], { - image_to_video: { requiredImages: ['referenceImages'] }, - }), + LTXI2VLongMultiPromptPipeline: planningVideoProfile( + 'LTX Video', + LTX_VIDEO_REPO, + ['image_to_video'], + { image_to_video: { requiredImages: ['referenceImages'] } }, + 1, + false, + { steps: 8, guidance: 1, maxSequenceLength: 128 }, + ), LTX2ConditionPipeline: planningVideoProfile( 'LTX Video', LTX2_REPO, From e8ea789b0e020b9738eea8997bec7b75a274fe52 Mon Sep 17 00:00:00 2001 From: Sourav Das Date: Tue, 24 Nov 2026 10:32:38 +0530 Subject: [PATCH 321/440] Verify retained ERNIE, Ovis and CogView4 image runs --- scripts/live-proof-provenance.mjs | 72 ++++++++++++++++++++++++ scripts/prompt-variant-evidence.test.mjs | 10 +++- 2 files changed, 80 insertions(+), 2 deletions(-) diff --git a/scripts/live-proof-provenance.mjs b/scripts/live-proof-provenance.mjs index 6dc0f1b5..99944b91 100644 --- a/scripts/live-proof-provenance.mjs +++ b/scripts/live-proof-provenance.mjs @@ -2213,6 +2213,78 @@ const plainImageInactive = const plainImageLegacyNull = ['control_guidance_start', 'conditioning_scale', 'strength', 'control_guidance_end']; const sd15PagScalars = ['pag_scale', 'pag_adaptive_scale']; export const directImagePromptRoutes = [ + { + format: 'modiff.private.ernie-image-prompt-variant.v1', + workflowId: 'ErnieImagePipeline:text_to_image', + modelType: 'ErnieImagePipeline', + modelRepo: 'baidu/ERNIE-Image-Turbo', + modelRevision: 'bc68c81e2a1730a394d5fc9fae70713dee940140', + active: [...plainImageActive, 'negative_prompt'], + inactive: [...plainImageInactive, 'max_sequence_length'], + legacyNull: [...plainImageLegacyNull, 'max_sequence_length'], + platform: /^Linux-/u, + backend: 'rocm', + dtype: 'bfloat16', + offload: 'model_cpu', + deviceMap: 'none', + generation: { + width: 1024, + height: 1024, + num_inference_steps: 8, + guidance_scale: 1, + max_sequence_length: 2048, + seed: 42, + negative_prompt: '', + }, + }, + { + format: 'modiff.private.ovis-image-prompt-variant.v1', + workflowId: 'OvisImagePipeline:text_to_image', + modelType: 'OvisImagePipeline', + modelRepo: 'ATH-MaaS/Ovis-Image-7B', + modelRevision: '41be1c5821a92c970d63d7eb595a2fd3fe32b22e', + active: [...plainImageActive, 'negative_prompt', 'max_sequence_length'], + inactive: plainImageInactive, + legacyNull: plainImageLegacyNull, + platform: /^Linux-/u, + backend: 'rocm', + dtype: 'bfloat16', + offload: 'model_cpu', + deviceMap: 'none', + generation: { + width: 1024, + height: 1024, + num_inference_steps: 50, + guidance_scale: 5, + max_sequence_length: 256, + seed: 42, + negative_prompt: '', + }, + }, + { + format: 'modiff.private.cogview4-prompt-variant.v1', + workflowId: 'CogView4Pipeline:text_to_image', + modelType: 'CogView4Pipeline', + modelRepo: 'zai-org/CogView4-6B', + modelRevision: '63a52b7f6dace7033380cd6da14d0915eab3e6b5', + active: [...plainImageActive, 'negative_prompt', 'max_sequence_length'], + inactive: plainImageInactive, + legacyNull: plainImageLegacyNull, + platform: /^Linux-/u, + backend: 'rocm', + dtype: 'bfloat16', + offload: 'model_cpu', + deviceMap: 'none', + generation: { + width: 1024, + height: 1024, + num_inference_steps: 50, + guidance_scale: 3.5, + max_sequence_length: 1024, + seed: 42, + negative_prompt: '', + }, + }, { format: 'modiff.private.nucleus-image-prompt-variant.v1', workflowId: 'NucleusMoEImagePipeline:text_to_image', diff --git a/scripts/prompt-variant-evidence.test.mjs b/scripts/prompt-variant-evidence.test.mjs index fcb62921..06434266 100644 --- a/scripts/prompt-variant-evidence.test.mjs +++ b/scripts/prompt-variant-evidence.test.mjs @@ -324,10 +324,16 @@ for (const [workflowId, variable, kind] of [ }); } -test('GLM and Nucleus prompt receipts keep the exact portable artifact and graph', async () => { +test('Reviewed image prompt receipts keep the exact portable artifact and graph', async () => { const graphs = join(backendRoot, 'data/graphs'); const manifest = JSON.parse(readFileSync(join(backendRoot, 'data/workflow-library-manifest.json'), 'utf8')); - const workflowIds = ['GlmImagePipeline:text_to_image', 'NucleusMoEImagePipeline:text_to_image']; + const workflowIds = [ + 'GlmImagePipeline:text_to_image', + 'NucleusMoEImagePipeline:text_to_image', + 'ErnieImagePipeline:text_to_image', + 'OvisImagePipeline:text_to_image', + 'CogView4Pipeline:text_to_image', + ]; const fixtures = workflowIds.map((id) => JSON.parse(readFileSync(join(graphs, manifest.workflows.find((entry) => entry.id === id).graphPath), 'utf8')), ); From 4db633c52e8c5a5c85bd95979553c2040c50fe06 Mon Sep 17 00:00:00 2001 From: Sourav Das Date: Tue, 24 Nov 2026 10:46:08 +0530 Subject: [PATCH 322/440] Verify native PNG source evidence for retained image edits --- scripts/private-image-edit-evidence.mjs | 53 +++++++++++++++++--- scripts/private-image-edit-evidence.test.mjs | 41 +++++++++++++++ scripts/release-contract-core.mjs | 8 +-- 3 files changed, 92 insertions(+), 10 deletions(-) diff --git a/scripts/private-image-edit-evidence.mjs b/scripts/private-image-edit-evidence.mjs index 0b9f7343..51e17e16 100644 --- a/scripts/private-image-edit-evidence.mjs +++ b/scripts/private-image-edit-evidence.mjs @@ -26,6 +26,7 @@ import { export const PRIVATE_IMAGE_EDIT_FORMAT = 'modiff.private.lcm-source-bound-edit.v1'; export const DIRECT_IMAGE_EDIT_FORMAT = 'modiff.private.direct-image-edit-source-bound.v1'; +export const NATIVE_PNG_EDIT_FORMAT = 'modiff.private.direct-image-edit-native-png.v1'; const baseConsumed = ['num_inference_steps', 'output_type', 'prompt', 'seed']; const imageGeometry = ['height', 'max_sequence_length', 'width']; const stableDiffusionEditConsumed = [...baseConsumed, 'negative_prompt', 'guidance_scale', 'strength']; @@ -66,6 +67,7 @@ const editRoutes = new Map([ fullNativeSnapshot: true, inputPathPrefix: '@data/images/', windowsCudaRuntime: true, + nativePngEvidence: true, }, ], [ @@ -134,7 +136,14 @@ function directOwners(api, hinted = false) { ); } -export function bindPrivateImageEditGraph({ expected, submitted, input, strengthVariant, inputPathPrefix = '' }) { +export function bindPrivateImageEditGraph({ + expected, + submitted, + input, + strengthVariant, + inputPathPrefix = '', + nativePngEvidence = false, +}) { const bound = structuredClone(expected); const canonical = directOwners(bound); const observed = directOwners(submitted, Object.hasOwn(submitted, 'runtimeHints')); @@ -145,7 +154,8 @@ export function bindPrivateImageEditGraph({ expected, submitted, input, strength assert.equal(input.nodeId, observed.source.id); assert.equal(input.field, 'file'); assert.ok(typeof input.sourceValue === 'string' && input.sourceValue.startsWith(inputPathPrefix)); - assert.match(input.sourceValue.slice(inputPathPrefix.length), /^[a-zA-Z0-9_-][\w.-]{0,200}\.webp$/u); + const safeBasename = nativePngEvidence ? /^[a-zA-Z0-9_-][\w.-]{0,200}\.png$/u : /^[a-zA-Z0-9_-][\w.-]{0,200}\.webp$/u; + assert.match(input.sourceValue.slice(inputPathPrefix.length), safeBasename); const prompt = observed.edit.node.params.prompt.value; assert.ok(typeof prompt === 'string' && prompt.length > 0 && prompt.length <= 4096 && prompt.trim() === prompt); assert.ok(!/[\u0000-\u001f\u007f]/u.test(prompt)); @@ -304,6 +314,29 @@ function validateRuntime( return { runtime, elapsedSeconds, peakAllocatedBytes }; } +export function verifyRetainedPngUpload(upload, input, decoded, bytes) { + keys(upload, ['error', 'path', 'media']); + assert.equal(upload.error, false); + assert.equal(upload.path, input.sourceValue); + assert.match(input.sourceValue, /^@data\/images\/[a-zA-Z0-9_-][\w.-]{0,200}\.png$/u); + same( + upload.media, + { + filename: input.sourceValue.split('/').at(-1), + extension: '.png', + sizeBytes: bytes.length, + sha256: sha256(bytes), + kind: 'image', + mimeType: 'image/png', + width: decoded.width, + height: decoded.height, + frames: 1, + }, + 'The retained source upload differs from the exact native PNG input.', + ); + assert.equal(bytes.subarray(0, 8).toString('hex'), '89504e470d0a1a0a', 'The retained source is not PNG.'); +} + export async function readPrivateImageEditEvidence({ clientRoot, manifest, graph, authoring, artifact, evidencePath }) { const workflowId = manifest.id; const route = editRoutes.get(workflowId); @@ -317,6 +350,7 @@ export async function readPrivateImageEditEvidence({ clientRoot, manifest, graph assert.ok(stat.isFile() && !stat.isSymbolicLink() && stat.size > 0 && stat.size <= 65_536); const descriptorBytes = readFileSync(evidencePath); const evidence = JSON.parse(descriptorBytes); + const nativePngEvidence = route.nativePngEvidence === true && evidence.format === NATIVE_PNG_EDIT_FORMAT; keys(evidence, [ 'schemaVersion', 'format', @@ -325,11 +359,10 @@ export async function readPrivateImageEditEvidence({ clientRoot, manifest, graph 'graphRequest', 'graphAcknowledgment', 'persistedOutputs', - 'inputServerBefore', - 'inputServerAfter', + ...(nativePngEvidence ? ['inputUpload'] : ['inputServerBefore', 'inputServerAfter']), ]); assert.equal(evidence.schemaVersion, 1); - assert.equal(evidence.format, route.format); + assert.equal(evidence.format, nativePngEvidence ? NATIVE_PNG_EDIT_FORMAT : route.format); assert.equal(evidence.workflowId, workflowId); const evidenceRoot = realpathSync(dirname(evidencePath)); const retainedFiles = []; @@ -388,6 +421,7 @@ export async function readPrivateImageEditEvidence({ clientRoot, manifest, graph input, strengthVariant: route.strengthVariant, inputPathPrefix: route.inputPathPrefix, + nativePngEvidence, }); for (const api of [creator.apiGraph, ...visualExports]) { directOwners(api); @@ -418,8 +452,12 @@ export async function readPrivateImageEditEvidence({ clientRoot, manifest, graph validatePrivateImageEditFields(bound, output, route.consumed); const decodedInput = await verifySourceBinding(clientRoot, bound, output, input); const inputMedia = read(input.file); - for (const ref of [evidence.inputServerBefore, evidence.inputServerAfter]) { - assert.ok(read(ref).bytes.equals(inputMedia.bytes), 'The server-bound source bytes differ.'); + if (nativePngEvidence) { + verifyRetainedPngUpload(json(evidence.inputUpload), input, decodedInput, inputMedia.bytes); + } else { + for (const ref of [evidence.inputServerBefore, evidence.inputServerAfter]) { + assert.ok(read(ref).bytes.equals(inputMedia.bytes), 'The server-bound source bytes differ.'); + } } const media = read(outputRef.file); const item = validateNativeVariantOutput({ @@ -480,6 +518,7 @@ export async function readPrivateImageEditEvidence({ clientRoot, manifest, graph fullConsumedFieldAccounting: false, editConsumerControlsObserved: true, sourceGeometryQualified: false, + ...(nativePngEvidence ? { sourceByteWitness: 'native-load-consumer-and-upload' } : {}), physicalPlatformQualification: false, }, qualificationClaims: { diff --git a/scripts/private-image-edit-evidence.test.mjs b/scripts/private-image-edit-evidence.test.mjs index 7fc50de4..a1a4a8c1 100644 --- a/scripts/private-image-edit-evidence.test.mjs +++ b/scripts/private-image-edit-evidence.test.mjs @@ -1,4 +1,5 @@ import assert from 'node:assert/strict'; +import { createHash } from 'node:crypto'; import test from 'node:test'; import { canonicalJsonHash } from './canonical-json.mjs'; import { validateLateNativeImageVariantRun, validateNativeVariantRun } from './native-variant-run-evidence.mjs'; @@ -6,6 +7,7 @@ import { bindPrivateImageEditGraph, readPrivateImageEditEvidence, validatePrivateImageEditRuntimePlatform, + verifyRetainedPngUpload, } from './private-image-edit-evidence.mjs'; function archivedImage() { @@ -313,3 +315,42 @@ test('only the scoped SD1.5 Edit route accepts the observed Windows CUDA runtime assert.doesNotThrow(() => validatePrivateImageEditRuntimePlatform(sdxl, linux, 'rocm')); assert.throws(() => validatePrivateImageEditRuntimePlatform(sdxl, windows, 'cuda')); }); + +test('retained native PNG upload binds an exact safe path, file bytes and decoded dimensions', () => { + const bytes = Buffer.from( + 'iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mP8/x8AAwMCAO+a0AMAAAAASUVORK5CYII=', + 'base64', + ); + const sourceValue = '@data/images/study.png'; + const metadata = { width: 1, height: 1 }; + const upload = { + error: false, + path: sourceValue, + media: { + filename: 'study.png', + extension: '.png', + sizeBytes: bytes.length, + sha256: createHash('sha256').update(bytes).digest('hex'), + kind: 'image', + mimeType: 'image/png', + ...metadata, + frames: 1, + }, + }; + verifyRetainedPngUpload(upload, { sourceValue }, metadata, bytes); + for (const bad of [ + { ...upload, path: '@data/images/other.png' }, + { ...upload, media: { ...upload.media, sha256: 'a'.repeat(64) } }, + { ...upload, media: { ...upload.media, width: 2 } }, + { ...upload, media: { ...upload.media, mimeType: 'image/webp' } }, + ]) { + assert.throws(() => verifyRetainedPngUpload(bad, { sourceValue }, metadata, bytes)); + } + const wrongMagic = Buffer.from(bytes); + wrongMagic[0] = 0; + const magicWitness = { + ...upload, + media: { ...upload.media, sha256: createHash('sha256').update(wrongMagic).digest('hex') }, + }; + assert.throws(() => verifyRetainedPngUpload(magicWitness, { sourceValue }, metadata, wrongMagic), /not PNG/u); +}); diff --git a/scripts/release-contract-core.mjs b/scripts/release-contract-core.mjs index 6f0dd424..def1050c 100644 --- a/scripts/release-contract-core.mjs +++ b/scripts/release-contract-core.mjs @@ -808,9 +808,11 @@ export async function readCanonicalWorkflowEvidence({ clientRoot, backendRoot, w return readCanonicalSpeechEvidence({ clientRoot, manifest, graph, authoring, artifact, evidencePath }); } if ( - ['modiff.private.lcm-source-bound-edit.v1', 'modiff.private.direct-image-edit-source-bound.v1'].includes( - evidence.format, - ) + [ + 'modiff.private.lcm-source-bound-edit.v1', + 'modiff.private.direct-image-edit-source-bound.v1', + 'modiff.private.direct-image-edit-native-png.v1', + ].includes(evidence.format) ) { const { readPrivateImageEditEvidence } = await import('./private-image-edit-evidence.mjs'); return readPrivateImageEditEvidence({ clientRoot, manifest, graph, authoring, artifact, evidencePath }); From bb5c11126273d5343125e554ba7cfea8c0bd422d Mon Sep 17 00:00:00 2001 From: Sourav Das Date: Tue, 24 Nov 2026 11:19:22 +0530 Subject: [PATCH 323/440] Verify CogView3 retained prompt and late native output --- scripts/live-proof-provenance.mjs | 25 ++++++++++++++++++++++++ scripts/prompt-variant-evidence.mjs | 20 ++++++++++++++++--- scripts/prompt-variant-evidence.test.mjs | 2 ++ 3 files changed, 44 insertions(+), 3 deletions(-) diff --git a/scripts/live-proof-provenance.mjs b/scripts/live-proof-provenance.mjs index 99944b91..a5f2024b 100644 --- a/scripts/live-proof-provenance.mjs +++ b/scripts/live-proof-provenance.mjs @@ -2261,6 +2261,31 @@ export const directImagePromptRoutes = [ negative_prompt: '', }, }, + { + format: 'modiff.private.cogview3-prompt-variant.v1', + lateNativeSnapshot: true, + workflowId: 'CogView3PlusPipeline:text_to_image', + modelType: 'CogView3PlusPipeline', + modelRepo: 'zai-org/CogView3-Plus-3B', + modelRevision: '5d70e40732ac0efac98524c51a7fa9c82707f1e5', + active: [...plainImageActive, 'negative_prompt', 'max_sequence_length'], + inactive: plainImageInactive, + legacyNull: plainImageLegacyNull, + platform: /^Linux-/u, + backend: 'rocm', + dtype: 'bfloat16', + offload: 'model_cpu', + deviceMap: 'none', + generation: { + width: 1024, + height: 1024, + num_inference_steps: 50, + guidance_scale: 7, + max_sequence_length: 224, + seed: 42, + negative_prompt: '', + }, + }, { format: 'modiff.private.cogview4-prompt-variant.v1', workflowId: 'CogView4Pipeline:text_to_image', diff --git a/scripts/prompt-variant-evidence.mjs b/scripts/prompt-variant-evidence.mjs index 031c5937..f031c2e0 100644 --- a/scripts/prompt-variant-evidence.mjs +++ b/scripts/prompt-variant-evidence.mjs @@ -15,6 +15,7 @@ import { stableStringify, } from './live-proof-provenance.mjs'; import { + validateLateNativeImageVariantRun, validateNativeVariantOutput, validateNativeVariantRun, validateUnmodifiedExpertPreparation, @@ -360,6 +361,7 @@ export async function readPromptVariantEvidence({ clientRoot, manifest, graph, a 'inputs', 'outputs', ...(imageRoute ? ['graphRequest', 'graphAcknowledgment'] : []), + ...(profile.lateNativeSnapshot ? ['persistedOutputs'] : []), ]); assert.equal(evidence.schemaVersion, 1); assert.equal(evidence.format, profile.format); @@ -397,7 +399,7 @@ export async function readPromptVariantEvidence({ clientRoot, manifest, graph, a 'Saved visual graph differs from the exact submitted prompt variant.', ); } - const { task, output, hints } = validateNativeVariantRun({ + const runOptions = { target, outputNodeId: bound.preview.id, displayType: profile.displayType, @@ -415,7 +417,19 @@ export async function readPromptVariantEvidence({ clientRoot, manifest, graph, a ...(profile === videoRoute ? { validatePreparation: (preparation) => validateUnmodifiedExpertPreparation(preparation, target.modelType) } : {}), - }); + }; + let validatedRun; + let accountingRun = run; + if (profile.lateNativeSnapshot) { + const store = json(evidence.persistedOutputs); + assert.equal(store.outputs.length, 1); + const [persistedOutput] = store.outputs; + validatedRun = validateLateNativeImageVariantRun({ ...runOptions, persistedOutput }); + accountingRun = { ...run, outputs: [persistedOutput] }; + } else { + validatedRun = validateNativeVariantRun(runOptions); + } + const { task, output, hints } = validatedRun; same(hints.workflowSnapshot.studioForm, output.formSnapshot, 'Run snapshot form differs from persisted form.'); const accounting = imageRoute ? directImagePromptAccountingExecutionPlan({ @@ -423,7 +437,7 @@ export async function readPromptVariantEvidence({ clientRoot, manifest, graph, a apiGraph: submitted, consumed: output.resolvedExecutionInputs, target, - runtimeEvidence: { run, output, graphCompleted }, + runtimeEvidence: { run: accountingRun, output, graphCompleted }, }) : null; if (!accounting) validateConsumedPromptVariant(profile, bound, output); diff --git a/scripts/prompt-variant-evidence.test.mjs b/scripts/prompt-variant-evidence.test.mjs index 06434266..5f87b753 100644 --- a/scripts/prompt-variant-evidence.test.mjs +++ b/scripts/prompt-variant-evidence.test.mjs @@ -285,6 +285,7 @@ test('the video variant needs independently decoded and moving geometry at the n for (const [workflowId, variable, kind] of [ ['HuggingFaceTextGenerationModel:text_generation', 'MODIFF_SMOLLM2_PROMPT_EVIDENCE', 'json'], ['ShapEPipeline:text_to_3d', 'MODIFF_SHAPE_PROMPT_EVIDENCE', 'video'], + ['CogView3PlusPipeline:text_to_image', 'MODIFF_COGVIEW3_PROMPT_EVIDENCE', 'image'], ]) { const saved = process.env[variable]; test(`retained ${kind} prompt variant verifies without new execution`, { skip: !saved }, async () => { @@ -332,6 +333,7 @@ test('Reviewed image prompt receipts keep the exact portable artifact and graph' 'NucleusMoEImagePipeline:text_to_image', 'ErnieImagePipeline:text_to_image', 'OvisImagePipeline:text_to_image', + 'CogView3PlusPipeline:text_to_image', 'CogView4Pipeline:text_to_image', ]; const fixtures = workflowIds.map((id) => From f3a23d2b8017326ade3c7f4cf7e939ecd2925c06 Mon Sep 17 00:00:00 2001 From: Sourav Das Date: Tue, 24 Nov 2026 11:40:20 +0530 Subject: [PATCH 324/440] Bind four retained image prompt recipes to native evidence --- scripts/canonical-image-accounting.test.mjs | 5 +- scripts/live-proof-provenance.mjs | 107 +++++++++++++++++++- scripts/prompt-variant-evidence.test.mjs | 10 +- 3 files changed, 116 insertions(+), 6 deletions(-) diff --git a/scripts/canonical-image-accounting.test.mjs b/scripts/canonical-image-accounting.test.mjs index 667c85da..0f274b79 100644 --- a/scripts/canonical-image-accounting.test.mjs +++ b/scripts/canonical-image-accounting.test.mjs @@ -425,7 +425,10 @@ test('SDXL Base prompt variant accepts only its exact Linux pin and actual seque const turbo = structuredClone(syntheticSdxl); turbo.canonicalAccountingProof.target.workflowId = 'StableDiffusionXLTurboPipeline:text_to_image'; turbo.canonicalAccountingProof.target.modelType = 'StableDiffusionXLTurboPipeline'; - assert.throws(() => projection(turbo, directImagePromptAccountingExecutionPlan), /outside the reviewed scope/u); + assert.throws( + () => projection(turbo, directImagePromptAccountingExecutionPlan), + /Conditional image model is outside the reviewed accounting scope/u, + ); }); test('PRX prompt variant accepts the exact cached pin and complete scoped accounting', () => { diff --git a/scripts/live-proof-provenance.mjs b/scripts/live-proof-provenance.mjs index a5f2024b..7f31f406 100644 --- a/scripts/live-proof-provenance.mjs +++ b/scripts/live-proof-provenance.mjs @@ -2211,8 +2211,107 @@ const plainImageInactive = ' ', ); const plainImageLegacyNull = ['control_guidance_start', 'conditioning_scale', 'strength', 'control_guidance_end']; -const sd15PagScalars = ['pag_scale', 'pag_adaptive_scale']; +const pagScalars = ['pag_scale', 'pag_adaptive_scale']; export const directImagePromptRoutes = [ + { + format: 'modiff.private.sdxl-turbo-prompt-variant.v1', + workflowId: 'StableDiffusionXLTurboPipeline:text_to_image', + modelType: 'StableDiffusionXLTurboPipeline', + modelRepo: 'stabilityai/sdxl-turbo', + modelRevision: '71153311d3dbb46851df1931d3ca6e939de83304', + active: [...plainImageActive, 'negative_prompt'], + inactive: [...plainImageInactive, 'max_sequence_length'], + legacyNull: [...plainImageLegacyNull, 'max_sequence_length'], + platform: /^Linux-/u, + backend: 'rocm', + dtype: 'float16', + offload: 'model_cpu', + deviceMap: 'none', + generation: { + width: 512, + height: 512, + num_inference_steps: 1, + guidance_scale: 0, + max_sequence_length: 512, + seed: 42, + negative_prompt: '', + }, + }, + { + format: 'modiff.private.sana-pag-prompt-variant.v1', + workflowId: 'SanaPAGPipeline:text_to_image', + modelType: 'SanaPAGPipeline', + modelRepo: 'Efficient-Large-Model/Sana_600M_1024px_diffusers', + modelRevision: '28f3af7689de15f3883d5863059a2fca0aa9b829', + active: [...plainImageActive, 'negative_prompt', 'max_sequence_length', ...pagScalars], + inactive: plainImageInactive.filter((field) => !pagScalars.includes(field)), + legacyNull: plainImageLegacyNull, + typedOnly: pagScalars, + platform: /^Linux-/u, + backend: 'rocm', + dtype: 'float16', + offload: 'model_cpu', + deviceMap: 'none', + generation: { + width: 1024, + height: 1024, + num_inference_steps: 20, + guidance_scale: 4.5, + max_sequence_length: 300, + seed: 42, + negative_prompt: '', + pag_scale: 3, + pag_adaptive_scale: 0, + }, + }, + { + format: 'modiff.private.auraflow-prompt-variant.v1', + workflowId: 'AuraFlowPipeline:text_to_image', + modelType: 'AuraFlowPipeline', + modelRepo: 'fal/AuraFlow-v0.3', + modelRevision: '2cd8588f04c886002be4571697d84654a50e3af3', + active: [...plainImageActive, 'negative_prompt', 'max_sequence_length'], + inactive: plainImageInactive, + legacyNull: plainImageLegacyNull, + platform: /^Linux-/u, + backend: 'rocm', + dtype: 'float16', + offload: 'model_cpu', + deviceMap: 'none', + generation: { + width: 1536, + height: 768, + num_inference_steps: 50, + guidance_scale: 3.5, + max_sequence_length: 256, + seed: 42, + negative_prompt: '', + }, + }, + { + format: 'modiff.private.lcm-text-to-image-prompt-variant.v1', + workflowId: 'LatentConsistencyModelPipeline:text_to_image', + modelType: 'LatentConsistencyModelPipeline', + modelRepo: 'SimianLuo/LCM_Dreamshaper_v7', + modelRevision: 'a85df6a8bd976cdd08b4fd8f3b73f229c9e54df5', + active: plainImageActive, + inactive: [...plainImageInactive, 'negative_prompt', 'max_sequence_length'], + legacyNull: [...plainImageLegacyNull, 'negative_prompt', 'max_sequence_length'], + platform: /^Windows-/u, + backend: 'cuda', + dtype: 'float32', + offload: 'none', + deviceMap: 'cuda', + generation: { + width: 512, + height: 512, + num_inference_steps: 4, + guidance_scale: 8.5, + max_sequence_length: 512, + seed: 42, + negative_prompt: '', + }, + }, { format: 'modiff.private.ernie-image-prompt-variant.v1', workflowId: 'ErnieImagePipeline:text_to_image', @@ -2435,11 +2534,11 @@ export const directImagePromptRoutes = [ modelType: 'StableDiffusionPAGPipeline', modelRepo: 'stable-diffusion-v1-5/stable-diffusion-v1-5', modelRevision: '451f4fe16113bff5a5d2269ed5ad43b0592e9a14', - active: [...plainImageActive, 'negative_prompt', ...sd15PagScalars], - inactive: [...plainImageInactive.filter((key) => !sd15PagScalars.includes(key)), 'max_sequence_length'], + active: [...plainImageActive, 'negative_prompt', ...pagScalars], + inactive: [...plainImageInactive.filter((key) => !pagScalars.includes(key)), 'max_sequence_length'], legacyNull: [...plainImageLegacyNull, 'max_sequence_length'], // These effective settings are present only in typed field accounting. - typedOnly: sd15PagScalars, + typedOnly: pagScalars, platform: /^Windows-/u, backend: 'cuda', dtype: 'float32', diff --git a/scripts/prompt-variant-evidence.test.mjs b/scripts/prompt-variant-evidence.test.mjs index 5f87b753..430fa0ad 100644 --- a/scripts/prompt-variant-evidence.test.mjs +++ b/scripts/prompt-variant-evidence.test.mjs @@ -286,9 +286,13 @@ for (const [workflowId, variable, kind] of [ ['HuggingFaceTextGenerationModel:text_generation', 'MODIFF_SMOLLM2_PROMPT_EVIDENCE', 'json'], ['ShapEPipeline:text_to_3d', 'MODIFF_SHAPE_PROMPT_EVIDENCE', 'video'], ['CogView3PlusPipeline:text_to_image', 'MODIFF_COGVIEW3_PROMPT_EVIDENCE', 'image'], + ['StableDiffusionXLTurboPipeline:text_to_image', 'MODIFF_SDXL_TURBO_PROMPT_EVIDENCE', 'image'], + ['SanaPAGPipeline:text_to_image', 'MODIFF_SANA_PAG_PROMPT_EVIDENCE', 'image'], + ['AuraFlowPipeline:text_to_image', 'MODIFF_AURAFLOW_PROMPT_EVIDENCE', 'image'], + ['LatentConsistencyModelPipeline:text_to_image', 'MODIFF_LCM_IMAGE_PROMPT_EVIDENCE', 'image'], ]) { const saved = process.env[variable]; - test(`retained ${kind} prompt variant verifies without new execution`, { skip: !saved }, async () => { + test(`${workflowId} retained ${kind} prompt variant verifies without new execution`, { skip: !saved }, async () => { const evidencePath = resolve(saved); const args = { clientRoot, backendRoot, workflowId, evidencePath }; const original = await readCanonicalWorkflowEvidence(args); @@ -335,6 +339,10 @@ test('Reviewed image prompt receipts keep the exact portable artifact and graph' 'OvisImagePipeline:text_to_image', 'CogView3PlusPipeline:text_to_image', 'CogView4Pipeline:text_to_image', + 'StableDiffusionXLTurboPipeline:text_to_image', + 'SanaPAGPipeline:text_to_image', + 'AuraFlowPipeline:text_to_image', + 'LatentConsistencyModelPipeline:text_to_image', ]; const fixtures = workflowIds.map((id) => JSON.parse(readFileSync(join(graphs, manifest.workflows.find((entry) => entry.id === id).graphPath), 'utf8')), From 39d55403d978c54c0f5ce4fa70abffa5460aac23 Mon Sep 17 00:00:00 2001 From: Sourav Das Date: Tue, 24 Nov 2026 13:32:41 +0530 Subject: [PATCH 325/440] Verify retained Sana Sprint and SDXL PAG image runs --- CONTRIBUTING.md | 8 ++++ scripts/canonical-image-accounting.test.mjs | 6 ++- scripts/live-proof-provenance.mjs | 51 +++++++++++++++++++++ scripts/prompt-variant-evidence.test.mjs | 4 ++ 4 files changed, 68 insertions(+), 1 deletion(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 1f5b140e..05892071 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -503,6 +503,14 @@ authored prompt in their respective workflows. Native producer evidence and the original text or video are required. These receipts cover the populated prompt variants and record the limits of their native control accounting. +The native image prompt-variant recorder also accepts the reviewed Linux ROCm +Sana Sprint text-to-image and SDXL PAG recipes with model CPU offload. It +verifies their immutable checkpoints and separate control contracts. Sana Sprint +records the sequence length and treats the saved negative prompt as inactive. +SDXL PAG verifies both PAG scales through typed accounting and treats the saved +sequence length as inactive. These receipts bind the saved prompt, seed and +exact output only for the matching source graph and runtime. + Run evidence always uses the direct exporter for the original archived graph. Opening an editable workflow tab separately applies the legacy attention default repair to matching DDPM and Consistency presets. A workflow-local diff --git a/scripts/canonical-image-accounting.test.mjs b/scripts/canonical-image-accounting.test.mjs index 0f274b79..e345cbd4 100644 --- a/scripts/canonical-image-accounting.test.mjs +++ b/scripts/canonical-image-accounting.test.mjs @@ -504,7 +504,11 @@ test('saved SD1.5 stage owners still require the original native completion evid /exact saved stage owners/u, ); assert.throws(() => verify('PRXPipeline', [preview, setup, generate]), /exact saved stage owners/u); - assert.throws(() => verify('SanaSprintPipeline', [preview, setup, generate]), /outside reviewed scope/u); + assert.throws(() => verify('SanaSprintPipeline', [preview, setup, generate]), /exact saved stage owners/u); + assert.throws( + () => verify('StableDiffusionXLControlNetPipeline', [preview, setup, generate]), + /outside reviewed scope/u, + ); }); test('SD1.5 PAG prompt variant requires both locked PAG values in typed consumption evidence', () => { diff --git a/scripts/live-proof-provenance.mjs b/scripts/live-proof-provenance.mjs index 7f31f406..28ca83fd 100644 --- a/scripts/live-proof-provenance.mjs +++ b/scripts/live-proof-provenance.mjs @@ -2213,6 +2213,57 @@ const plainImageInactive = const plainImageLegacyNull = ['control_guidance_start', 'conditioning_scale', 'strength', 'control_guidance_end']; const pagScalars = ['pag_scale', 'pag_adaptive_scale']; export const directImagePromptRoutes = [ + { + format: 'modiff.private.sana-sprint-text-to-image-prompt-variant.v1', + workflowId: 'SanaSprintPipeline:text_to_image', + modelType: 'SanaSprintPipeline', + modelRepo: 'Efficient-Large-Model/Sana_Sprint_0.6B_1024px_diffusers', + modelRevision: 'aa76e7f4f4928f378716b6716a2130fba3caf5b1', + active: [...plainImageActive, 'max_sequence_length'], + inactive: [...plainImageInactive, 'negative_prompt'], + legacyNull: [...plainImageLegacyNull, 'negative_prompt'], + platform: /^Linux-/u, + backend: 'rocm', + dtype: 'bfloat16', + offload: 'model_cpu', + deviceMap: 'none', + generation: { + width: 1024, + height: 1024, + num_inference_steps: 2, + guidance_scale: 4.5, + max_sequence_length: 300, + seed: 42, + negative_prompt: '', + }, + }, + { + format: 'modiff.private.sdxl-pag-prompt-variant.v1', + workflowId: 'StableDiffusionXLPAGPipeline:text_to_image', + modelType: 'StableDiffusionXLPAGPipeline', + modelRepo: 'stabilityai/stable-diffusion-xl-base-1.0', + modelRevision: '462165984030d82259a11f4367a4eed129e94a7b', + active: [...plainImageActive, 'negative_prompt', ...pagScalars], + inactive: [...plainImageInactive.filter((field) => !pagScalars.includes(field)), 'max_sequence_length'], + legacyNull: [...plainImageLegacyNull, 'max_sequence_length'], + typedOnly: pagScalars, + platform: /^Linux-/u, + backend: 'rocm', + dtype: 'float16', + offload: 'model_cpu', + deviceMap: 'none', + generation: { + width: 1024, + height: 1024, + num_inference_steps: 50, + guidance_scale: 5, + max_sequence_length: 512, + seed: 42, + negative_prompt: '', + pag_scale: 3, + pag_adaptive_scale: 0, + }, + }, { format: 'modiff.private.sdxl-turbo-prompt-variant.v1', workflowId: 'StableDiffusionXLTurboPipeline:text_to_image', diff --git a/scripts/prompt-variant-evidence.test.mjs b/scripts/prompt-variant-evidence.test.mjs index 430fa0ad..2bc58b48 100644 --- a/scripts/prompt-variant-evidence.test.mjs +++ b/scripts/prompt-variant-evidence.test.mjs @@ -290,6 +290,8 @@ for (const [workflowId, variable, kind] of [ ['SanaPAGPipeline:text_to_image', 'MODIFF_SANA_PAG_PROMPT_EVIDENCE', 'image'], ['AuraFlowPipeline:text_to_image', 'MODIFF_AURAFLOW_PROMPT_EVIDENCE', 'image'], ['LatentConsistencyModelPipeline:text_to_image', 'MODIFF_LCM_IMAGE_PROMPT_EVIDENCE', 'image'], + ['SanaSprintPipeline:text_to_image', 'MODIFF_SANA_SPRINT_IMAGE_PROMPT_EVIDENCE', 'image'], + ['StableDiffusionXLPAGPipeline:text_to_image', 'MODIFF_SDXL_PAG_PROMPT_EVIDENCE', 'image'], ]) { const saved = process.env[variable]; test(`${workflowId} retained ${kind} prompt variant verifies without new execution`, { skip: !saved }, async () => { @@ -343,6 +345,8 @@ test('Reviewed image prompt receipts keep the exact portable artifact and graph' 'SanaPAGPipeline:text_to_image', 'AuraFlowPipeline:text_to_image', 'LatentConsistencyModelPipeline:text_to_image', + 'SanaSprintPipeline:text_to_image', + 'StableDiffusionXLPAGPipeline:text_to_image', ]; const fixtures = workflowIds.map((id) => JSON.parse(readFileSync(join(graphs, manifest.workflows.find((entry) => entry.id === id).graphPath), 'utf8')), From 76121dbe022d9e1149464fb8f9a9c3eca2a4a3a9 Mon Sep 17 00:00:00 2001 From: Sourav Das Date: Tue, 24 Nov 2026 14:20:00 +0530 Subject: [PATCH 326/440] Verify retained SD1.5 Inpaint source and mask evidence --- CONTRIBUTING.md | 6 + scripts/private-image-edit-evidence.mjs | 124 +++++++++++++++---- scripts/private-image-edit-evidence.test.mjs | 66 +++++++++- scripts/release-contract-core.mjs | 1 + 4 files changed, 165 insertions(+), 32 deletions(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 05892071..49eb1d98 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -537,6 +537,12 @@ execution with that prompt or file and needs a reviewed recipe to bind it for release. Native-resolution DDIM, DDPM, and Consistency samples are technical canaries under the project's model review policy. +The SD1.5 Inpaint path accepts a separate native PNG descriptor with original +source and mask uploads. The reader verifies that the two distinct Load nodes +produced the recorded RGB source and grayscale mask and that those exact pixels +and dimensions reached their respective Inpaint ports. Its receipt binds the +source and mask separately to the saved Expert execution. + The reviewed Marigold synthetic ramp, SmolLM2 rain-gauge, Spandrel Real-ESRGAN 2×, Whisper Tiny transcription and LCM dawn edit use declarations in `src/studio/retainedGalleryTemplates.ts`. They share diff --git a/scripts/private-image-edit-evidence.mjs b/scripts/private-image-edit-evidence.mjs index 51e17e16..d69b2e04 100644 --- a/scripts/private-image-edit-evidence.mjs +++ b/scripts/private-image-edit-evidence.mjs @@ -27,6 +27,7 @@ import { export const PRIVATE_IMAGE_EDIT_FORMAT = 'modiff.private.lcm-source-bound-edit.v1'; export const DIRECT_IMAGE_EDIT_FORMAT = 'modiff.private.direct-image-edit-source-bound.v1'; export const NATIVE_PNG_EDIT_FORMAT = 'modiff.private.direct-image-edit-native-png.v1'; +export const NATIVE_PNG_INPAINT_FORMAT = 'modiff.private.direct-image-inpaint-native-png.v1'; const baseConsumed = ['num_inference_steps', 'output_type', 'prompt', 'seed']; const imageGeometry = ['height', 'max_sequence_length', 'width']; const stableDiffusionEditConsumed = [...baseConsumed, 'negative_prompt', 'guidance_scale', 'strength']; @@ -70,6 +71,22 @@ const editRoutes = new Map([ nativePngEvidence: true, }, ], + [ + 'StableDiffusionPipeline:inpaint', + { + modelRepo: 'stable-diffusion-v1-5/stable-diffusion-v1-5', + modelRevision: '451f4fe16113bff5a5d2269ed5ad43b0592e9a14', + loaderClass: 'StableDiffusionInpaintPipeline', + format: NATIVE_PNG_INPAINT_FORMAT, + captureFormat: 'modiff.private.direct-image-inpaint-observation.v1', + consumed: [...stableDiffusionEditConsumed, 'width', 'height'], + fullNativeSnapshot: true, + inputPathPrefix: '@data/images/', + windowsCudaRuntime: true, + nativePngEvidence: true, + masked: true, + }, + ], [ 'StableDiffusionXLPipeline:edit_image', { @@ -94,6 +111,12 @@ const ownerOrder = [ ['edit', 'modules.DiffusersImage', 'Edit'], ['preview', 'modules.Image', 'Preview'], ]; +const inpaintOwners = [ + ...ownerOrder.slice(0, 4), + ['mask', 'modules.Image', 'Load'], + ['edit', 'modules.DiffusersImage', 'Inpaint'], + ownerOrder.at(-1), +]; const editableFields = [ ...baseConsumed, ...imageGeometry, @@ -117,15 +140,16 @@ const same = (a, b, message) => assert.equal(stableStringify(a), stableStringify const keys = (row, expected) => same(Object.keys(row ?? {}).sort(), [...expected].sort(), 'Unexpected evidence fields.'); -function directOwners(api, hinted = false) { +function directOwners(api, hinted = false, masked = false) { keys(api, ['sid', 'nodes', 'paths', ...(hinted ? ['runtimeHints'] : [])]); - assert.equal(Object.keys(api.nodes).length, ownerOrder.length); + const owners = masked ? inpaintOwners : ownerOrder; + assert.equal(Object.keys(api.nodes).length, owners.length); assert.equal(api.paths.length, 1); const route = api.paths[0]; - assert.equal(route.length, ownerOrder.length); - assert.equal(new Set(route).size, ownerOrder.length); + assert.equal(route.length, owners.length); + assert.equal(new Set(route).size, owners.length); return Object.fromEntries( - ownerOrder.map(([role, module, action], index) => { + owners.map(([role, module, action], index) => { const id = route[index]; const node = api.nodes[id]; keys(node, ['module', 'action', 'params']); @@ -140,26 +164,32 @@ export function bindPrivateImageEditGraph({ expected, submitted, input, + maskInput, strengthVariant, inputPathPrefix = '', nativePngEvidence = false, }) { const bound = structuredClone(expected); - const canonical = directOwners(bound); - const observed = directOwners(submitted, Object.hasOwn(submitted, 'runtimeHints')); - const canonicalInput = canonical.source.node.params.file; + const masked = maskInput !== undefined; + const canonical = directOwners(bound, false, masked); + const observed = directOwners(submitted, Object.hasOwn(submitted, 'runtimeHints'), masked); const canonicalPrompt = canonical.edit.node.params.prompt; - assert.deepEqual(canonicalInput, { value: [], display: 'filebrowser' }); assert.equal(canonicalPrompt.value, ''); - assert.equal(input.nodeId, observed.source.id); - assert.equal(input.field, 'file'); - assert.ok(typeof input.sourceValue === 'string' && input.sourceValue.startsWith(inputPathPrefix)); const safeBasename = nativePngEvidence ? /^[a-zA-Z0-9_-][\w.-]{0,200}\.png$/u : /^[a-zA-Z0-9_-][\w.-]{0,200}\.webp$/u; - assert.match(input.sourceValue.slice(inputPathPrefix.length), safeBasename); + const bindFile = (role, reference) => { + const field = canonical[role].node.params.file; + assert.deepEqual(field, { value: role === 'mask' ? '' : [], display: 'filebrowser' }); + assert.equal(reference.nodeId, observed[role].id); + assert.equal(reference.field, 'file'); + assert.ok(typeof reference.sourceValue === 'string' && reference.sourceValue.startsWith(inputPathPrefix)); + assert.match(reference.sourceValue.slice(inputPathPrefix.length), safeBasename); + field.value = [reference.sourceValue]; + }; + bindFile('source', input); + if (masked) bindFile('mask', maskInput); const prompt = observed.edit.node.params.prompt.value; assert.ok(typeof prompt === 'string' && prompt.length > 0 && prompt.length <= 4096 && prompt.trim() === prompt); assert.ok(!/[\u0000-\u001f\u007f]/u.test(prompt)); - canonicalInput.value = [input.sourceValue]; canonicalPrompt.value = prompt; if (strengthVariant) { assert.equal(canonical.edit.node.params.strength.value, strengthVariant.original); @@ -179,8 +209,12 @@ export function validatePrivateImageEditFields(bound, output, consumed = lcmRout for (const field of ['unavailableFields', 'uncapturedNodeIds']) same(accounting[field], []); // The legacy flat summary combines the GPU loader/recipe and the inactive // CPU preview selector. Only its exact, independently scoped causes are safe. - same(accounting.ambiguousFields, ['device']); - const roles = ownerOrder.map(([role]) => bound[role]); + // Source and mask also each publish their own exact decoded image facts. + same( + accounting.ambiguousFields, + bound.mask ? ['device', 'imageAlphaChannel', 'imageSourceHashes', 'imageSourceModes'] : ['device'], + ); + const roles = (bound.mask ? inpaintOwners : ownerOrder).map(([role]) => bound[role]); same(accounting.nodes.map(({ nodeId }) => nodeId).sort(), roles.map(({ id }) => id).sort()); for (const { id, node } of roles) { const observed = accounting.nodes.find(({ nodeId }) => nodeId === id); @@ -204,13 +238,13 @@ export function validatePrivateImageEditFields(bound, output, consumed = lcmRout assert.equal(complete, true); same(unaccountedFields, []); same(omittedFields, {}); - keys(inputProjections, ['image']); + keys(inputProjections, bound.mask ? ['image', 'mask_image'] : ['image']); keys(outputProjections, []); const params = bound.edit.node.params; const metadata = 'image_contract'; const known = [...editableFields, metadata]; keys(fields, known); - keys(params, [...known, 'image', 'pipeline']); + keys(params, [...known, 'image', 'pipeline', ...(bound.mask ? ['mask_image'] : [])]); for (const field of known) { const value = params[field].value; assert.notEqual(value, undefined); @@ -244,8 +278,23 @@ async function verifySourceBinding(clientRoot, bound, output, input) { appType: 'custom', }); try { - const { verifyImageEditSourceBinding } = await server.ssrLoadModule('/scripts/image-edit-source-binding.mjs'); + const { verifyImageEditSourceBinding, verifyImageInpaintSourceBinding } = await server.ssrLoadModule( + '/scripts/image-edit-source-binding.mjs', + ); const receipt = output.resolvedExecutionInputs; + if (bound.mask) { + const { source, mask } = verifyImageInpaintSourceBinding({ + submittedApi: output.apiGraphSnapshot, + receipt, + outputIdentity: output, + sourceId: bound.source.id, + maskId: bound.mask.id, + inpaintId: bound.edit.id, + }); + assert.equal(source.sourceFile.sha256, input.file.sha256); + assert.equal(source.sourceFile.byteSize, input.file.bytes); + return { decodedInput: source.decodedImage, mask }; + } const joined = verifyImageEditSourceBinding({ submittedApi: output.apiGraphSnapshot, receipt, @@ -255,7 +304,7 @@ async function verifySourceBinding(clientRoot, bound, output, input) { }); assert.equal(joined.sourceFile.sha256, input.file.sha256); assert.equal(joined.sourceFile.byteSize, input.file.bytes); - return joined.decodedImage; + return { decodedInput: joined.decodedImage }; } finally { await server.close(); } @@ -350,7 +399,9 @@ export async function readPrivateImageEditEvidence({ clientRoot, manifest, graph assert.ok(stat.isFile() && !stat.isSymbolicLink() && stat.size > 0 && stat.size <= 65_536); const descriptorBytes = readFileSync(evidencePath); const evidence = JSON.parse(descriptorBytes); - const nativePngEvidence = route.nativePngEvidence === true && evidence.format === NATIVE_PNG_EDIT_FORMAT; + const masked = route.masked === true; + const pngFormat = masked ? NATIVE_PNG_INPAINT_FORMAT : NATIVE_PNG_EDIT_FORMAT; + const nativePngEvidence = route.nativePngEvidence === true && evidence.format === pngFormat; keys(evidence, [ 'schemaVersion', 'format', @@ -360,9 +411,10 @@ export async function readPrivateImageEditEvidence({ clientRoot, manifest, graph 'graphAcknowledgment', 'persistedOutputs', ...(nativePngEvidence ? ['inputUpload'] : ['inputServerBefore', 'inputServerAfter']), + ...(masked ? ['maskUpload'] : []), ]); assert.equal(evidence.schemaVersion, 1); - assert.equal(evidence.format, nativePngEvidence ? NATIVE_PNG_EDIT_FORMAT : route.format); + assert.equal(evidence.format, nativePngEvidence ? pngFormat : route.format); assert.equal(evidence.workflowId, workflowId); const evidenceRoot = realpathSync(dirname(evidencePath)); const retainedFiles = []; @@ -393,12 +445,12 @@ export async function readPrivateImageEditEvidence({ clientRoot, manifest, graph assert.equal(capture.format, route.captureFormat); assert.equal(capture.workflowId, workflowId); same(capture.qualificationClaims, { releaseEligible: false, technicalVariant: true }); - assert.equal(capture.inputs.length, 1); + assert.equal(capture.inputs.length, masked ? 2 : 1); assert.equal(capture.outputs.length, 1); assert.equal(capture.modelObservations.length, 1); - const [input] = capture.inputs; + const [input, maskInput] = capture.inputs; const [outputRef] = capture.outputs; - keys(input, ['nodeId', 'field', 'sourceValue', 'file']); + for (const source of capture.inputs) keys(source, ['nodeId', 'field', 'sourceValue', 'file']); keys(outputRef, ['backendPath', 'mediaType', 'file']); const creator = json(capture.creatorPackage); const outputPackage = json(capture.outputPackage); @@ -419,12 +471,13 @@ export async function readPrivateImageEditEvidence({ clientRoot, manifest, graph expected, submitted: graphRequest, input, + maskInput, strengthVariant: route.strengthVariant, inputPathPrefix: route.inputPathPrefix, nativePngEvidence, }); for (const api of [creator.apiGraph, ...visualExports]) { - directOwners(api); + directOwners(api, false, masked); same(canonicalGraphIdentity(api), bound.identity, 'A saved visual owner graph differs from the original Run.'); } const runOptions = { @@ -450,7 +503,7 @@ export async function readPrivateImageEditEvidence({ clientRoot, manifest, graph const { task, output, hints } = validateRun(runOptions); same(hints.workflowSnapshot.studioForm, output.formSnapshot); validatePrivateImageEditFields(bound, output, route.consumed); - const decodedInput = await verifySourceBinding(clientRoot, bound, output, input); + const { decodedInput, mask } = await verifySourceBinding(clientRoot, bound, output, input); const inputMedia = read(input.file); if (nativePngEvidence) { verifyRetainedPngUpload(json(evidence.inputUpload), input, decodedInput, inputMedia.bytes); @@ -459,6 +512,12 @@ export async function readPrivateImageEditEvidence({ clientRoot, manifest, graph assert.ok(read(ref).bytes.equals(inputMedia.bytes), 'The server-bound source bytes differ.'); } } + if (masked) { + const maskMedia = read(maskInput.file); + assert.equal(mask.sourceFile.sha256, maskInput.file.sha256); + assert.equal(mask.sourceFile.byteSize, maskInput.file.bytes); + verifyRetainedPngUpload(json(evidence.maskUpload), maskInput, mask.decodedImage, maskMedia.bytes); + } const media = read(outputRef.file); const item = validateNativeVariantOutput({ output, @@ -512,6 +571,16 @@ export async function readPrivateImageEditEvidence({ clientRoot, manifest, graph peakMemoryBytes: peakAllocatedBytes, canonicalDefaultsExecuted: false, inputBinding: { nodeId: input.nodeId, field: 'file', sha256: input.file.sha256, decodedImage: decodedInput }, + ...(masked + ? { + maskBinding: { + nodeId: maskInput.nodeId, + field: 'file', + sha256: maskInput.file.sha256, + decodedImage: mask.decodedImage, + }, + } + : {}), promptBinding: { nodeId: bound.edit.id, field: 'prompt', sha256: sha256(bound.prompt) }, decodedOutput: { hash: decoded.hash, width: decoded.width, height: decoded.height }, observationLimits: { @@ -519,6 +588,7 @@ export async function readPrivateImageEditEvidence({ clientRoot, manifest, graph editConsumerControlsObserved: true, sourceGeometryQualified: false, ...(nativePngEvidence ? { sourceByteWitness: 'native-load-consumer-and-upload' } : {}), + ...(masked ? { maskByteWitness: 'native-load-consumer-and-upload' } : {}), physicalPlatformQualification: false, }, qualificationClaims: { diff --git a/scripts/private-image-edit-evidence.test.mjs b/scripts/private-image-edit-evidence.test.mjs index a1a4a8c1..d9fb1548 100644 --- a/scripts/private-image-edit-evidence.test.mjs +++ b/scripts/private-image-edit-evidence.test.mjs @@ -1,8 +1,13 @@ import assert from 'node:assert/strict'; import { createHash } from 'node:crypto'; +import { copyFileSync, mkdtempSync, readFileSync, rmSync, writeFileSync } from 'node:fs'; +import { tmpdir } from 'node:os'; +import { basename, dirname, join, resolve } from 'node:path'; import test from 'node:test'; +import { fileURLToPath } from 'node:url'; import { canonicalJsonHash } from './canonical-json.mjs'; import { validateLateNativeImageVariantRun, validateNativeVariantRun } from './native-variant-run-evidence.mjs'; +import { readCanonicalWorkflowEvidence } from './release-contract-core.mjs'; import { bindPrivateImageEditGraph, readPrivateImageEditEvidence, @@ -241,7 +246,7 @@ test('private direct image edit graph binds exactly one empty file and one empty assert.throws(invoke, /Unexpected evidence fields/u); }); -function assertPinnedPrivateEdit({ modelType, graphPath, sourceTemplateId, repo, exactRevision }) { +function assertPinnedPrivateEdit({ modelType, task = 'edit_image', graphPath, sourceTemplateId, repo, exactRevision }) { const makeOptions = (revision) => { const graph = { nodes: [ @@ -257,9 +262,9 @@ function assertPinnedPrivateEdit({ modelType, graphPath, sourceTemplateId, repo, edges: [], }; const manifest = { - id: modelType + ':edit_image', + id: modelType + ':' + task, modelType, - mode: 'edit_image', + mode: task, graphPath, graphHash: canonicalJsonHash(graph), sourceTemplateId, @@ -301,7 +306,7 @@ test('SD1.5 private Edit evidence requires the reviewed checkpoint before readin exactRevision: '451f4fe16113bff5a5d2269ed5ad43b0592e9a14', })); -test('only the scoped SD1.5 Edit route accepts the observed Windows CUDA runtime', () => { +test('only the scoped SD1.5 Edit and Inpaint routes accept the observed Windows CUDA runtime', () => { const sd15 = 'StableDiffusionPipeline:edit_image'; const sdxl = 'StableDiffusionXLPipeline:edit_image'; const windows = 'Windows-11-10.0.26300-SP0'; @@ -311,11 +316,62 @@ test('only the scoped SD1.5 Edit route accepts the observed Windows CUDA runtime assert.throws(() => validatePrivateImageEditRuntimePlatform(sd15, windows, 'rocm')); assert.throws(() => validatePrivateImageEditRuntimePlatform(sd15, linux, 'cuda')); assert.throws(() => validatePrivateImageEditRuntimePlatform(sd15, 'Darwin-26.0', 'mps')); - assert.throws(() => validatePrivateImageEditRuntimePlatform('StableDiffusionPipeline:inpaint', windows, 'cuda')); + assert.doesNotThrow(() => + validatePrivateImageEditRuntimePlatform('StableDiffusionPipeline:inpaint', windows, 'cuda'), + ); + assert.throws(() => + validatePrivateImageEditRuntimePlatform('StableDiffusionPipeline:control_inpaint', windows, 'cuda'), + ); assert.doesNotThrow(() => validatePrivateImageEditRuntimePlatform(sdxl, linux, 'rocm')); assert.throws(() => validatePrivateImageEditRuntimePlatform(sdxl, windows, 'cuda')); }); +test('SD1.5 masked evidence requires the reviewed checkpoint before reading its descriptor', () => + assertPinnedPrivateEdit({ + modelType: 'StableDiffusionPipeline', + task: 'inpaint', + graphPath: 'studio/stable-diffusion-pipeline/inpaint.json', + sourceTemplateId: 'task-template:sd15-base:inpaint:v1', + repo: 'stable-diffusion-v1-5/stable-diffusion-v1-5', + exactRevision: '451f4fe16113bff5a5d2269ed5ad43b0592e9a14', + })); + +const retainedMaskEvidence = process.env.MODIFF_SD15_INPAINT_EVIDENCE; +test( + 'saved Inpaint evidence binds two original PNG uploads to their distinct consumed ports', + { + skip: !retainedMaskEvidence, + }, + async () => { + const clientRoot = fileURLToPath(new URL('..', import.meta.url)); + const backendRoot = resolve(process.env.MODIFF_BACKEND_DIR ?? join(clientRoot, '..', 'MoDiff')); + const evidencePath = resolve(retainedMaskEvidence); + const args = { clientRoot, backendRoot, workflowId: 'StableDiffusionPipeline:inpaint', evidencePath }; + const original = await readCanonicalWorkflowEvidence(args); + const { receipt } = original; + assert.equal(receipt.inputBinding.decodedImage.mode, 'RGB'); + assert.equal(receipt.maskBinding.decodedImage.mode, 'L'); + assert.notEqual(receipt.inputBinding.sha256, receipt.maskBinding.sha256); + assert.ok(Object.values(receipt.qualificationClaims).every((flag) => flag === false)); + + const root = mkdtempSync(join(tmpdir(), 'modiff-inpaint-evidence-')); + try { + for (const file of original.retainedFiles) { + assert.equal(basename(file.path), file.path); + copyFileSync(file.absolutePath, join(root, file.path)); + } + const swapped = JSON.parse(original.descriptorBytes); + [swapped.inputUpload, swapped.maskUpload] = [swapped.maskUpload, swapped.inputUpload]; + const changedPath = join(root, 'evidence.json'); + writeFileSync(changedPath, JSON.stringify(swapped)); + await assert.rejects(readCanonicalWorkflowEvidence({ ...args, evidencePath: changedPath })); + assert.deepEqual(readFileSync(evidencePath), original.descriptorBytes); + } finally { + rmSync(root, { recursive: true, force: true }); + } + }, +); + test('retained native PNG upload binds an exact safe path, file bytes and decoded dimensions', () => { const bytes = Buffer.from( 'iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mP8/x8AAwMCAO+a0AMAAAAASUVORK5CYII=', diff --git a/scripts/release-contract-core.mjs b/scripts/release-contract-core.mjs index def1050c..c86337b4 100644 --- a/scripts/release-contract-core.mjs +++ b/scripts/release-contract-core.mjs @@ -812,6 +812,7 @@ export async function readCanonicalWorkflowEvidence({ clientRoot, backendRoot, w 'modiff.private.lcm-source-bound-edit.v1', 'modiff.private.direct-image-edit-source-bound.v1', 'modiff.private.direct-image-edit-native-png.v1', + 'modiff.private.direct-image-inpaint-native-png.v1', ].includes(evidence.format) ) { const { readPrivateImageEditEvidence } = await import('./private-image-edit-evidence.mjs'); From 97a7e1d84ee1949218daa3e05244478fb8416cd8 Mon Sep 17 00:00:00 2001 From: Sourav Das Date: Tue, 24 Nov 2026 18:12:53 +0530 Subject: [PATCH 327/440] Verify native SDXL inpaint evidence Pairs with MoDiff backend 13db21ea92107dce920aa9b9014651bdb1d6027d. --- scripts/image-edit-source-binding.mjs | 7 ++--- scripts/image-edit-source-binding.test.mjs | 27 ++++++++++++++++---- scripts/private-image-edit-evidence.mjs | 22 ++++++++++++++-- scripts/private-image-edit-evidence.test.mjs | 16 +++++++++++- 4 files changed, 61 insertions(+), 11 deletions(-) diff --git a/scripts/image-edit-source-binding.mjs b/scripts/image-edit-source-binding.mjs index 63caf830..8a54e2af 100644 --- a/scripts/image-edit-source-binding.mjs +++ b/scripts/image-edit-source-binding.mjs @@ -26,6 +26,7 @@ export function verifyImageInpaintSourceBinding({ sourceId, maskId, inpaintId, + expectedOwner, }) { assert.notEqual(sourceId, maskId, 'Source and mask must be separate Image.Load nodes.'); const { observed, inputs } = verifyImageSourceBindings({ @@ -50,13 +51,13 @@ export function verifyImageInpaintSourceBinding({ const observedOwner = observed.nodes.find((row) => row.nodeId === ownerId); assert.equal(observedOwner?.module, owner.module); assert.equal(observedOwner.action, owner.action); - const repo = 'stable-diffusion-v1-5/stable-diffusion-v1-5'; + const { modelRepo: repo, modelRevision, loaderClass } = expectedOwner; assert.deepEqual(owner.params.model_id.value, { source: 'hub', value: repo }); assert.deepEqual(observedOwner.fields.model_id, literal(repo)); for (const [field, value] of Object.entries({ mode: 'inpaint', - pipeline_class: 'StableDiffusionInpaintPipeline', - revision: '451f4fe16113bff5a5d2269ed5ad43b0592e9a14', + pipeline_class: loaderClass, + revision: modelRevision, })) { assert.equal(owner.params[field].value, value, `Unexpected Inpaint loader ${field}.`); assert.deepEqual(observedOwner.fields[field], literal(value), `Unexpected native Inpaint loader ${field}.`); diff --git a/scripts/image-edit-source-binding.test.mjs b/scripts/image-edit-source-binding.test.mjs index aae37caf..0a0208fe 100644 --- a/scripts/image-edit-source-binding.test.mjs +++ b/scripts/image-edit-source-binding.test.mjs @@ -118,7 +118,13 @@ test('the earlier deliberate-resize producer trace cannot prove original pixels' assert.throws(() => verify(modified), /pixels or geometry/u); }); -function pairedInpaintFixture() { +function pairedInpaintFixture( + expectedOwner = { + modelRepo: 'stable-diffusion-v1-5/stable-diffusion-v1-5', + modelRevision: '451f4fe16113bff5a5d2269ed5ad43b0592e9a14', + loaderClass: 'StableDiffusionInpaintPipeline', + }, +) { const value = structuredClone(fixture); const { submittedApi, receipt, editId: inpaintId, loadId: sourceId } = value; const maskId = 'mask'; @@ -162,12 +168,12 @@ function pairedInpaintFixture() { target.params.pipeline = { display: 'input', sourceId: owner, sourceKey: 'pipeline' }; const module = 'modules.DiffusersImage'; const action = 'LoadPipeline'; - const modelRepo = 'stable-diffusion-v1-5/stable-diffusion-v1-5'; + const { modelRepo, modelRevision, loaderClass } = expectedOwner; const controls = { model_id: modelRepo, mode: 'inpaint', - pipeline_class: 'StableDiffusionInpaintPipeline', - revision: '451f4fe16113bff5a5d2269ed5ad43b0592e9a14', + pipeline_class: loaderClass, + revision: modelRevision, }; submittedApi.nodes[owner] = { module, @@ -193,9 +199,20 @@ function pairedInpaintFixture() { modelType: controls.pipeline_class, revision: controls.revision, }); - return { submittedApi, receipt, outputIdentity: value.outputIdentity, sourceId, maskId, inpaintId }; + return { submittedApi, receipt, outputIdentity: value.outputIdentity, sourceId, maskId, inpaintId, expectedOwner }; } +test('direct SDXL Inpaint rejects an otherwise valid source and mask from an SD 1.5 recipe', () => { + const expectedOwner = { + modelRepo: 'stabilityai/stable-diffusion-xl-base-1.0', + modelRevision: '462165984030d82259a11f4367a4eed129e94a7b', + loaderClass: 'StableDiffusionXLInpaintPipeline', + }; + const sample = pairedInpaintFixture(expectedOwner); + assert.equal(verifyInpaint(sample).mask.decodedImage.mode, 'L'); + assert.throws(() => verifyInpaint({ ...pairedInpaintFixture(), expectedOwner })); +}); + test('direct Inpaint independently joins the RGB source and grayscale mask to their actual call', () => { const sample = pairedInpaintFixture(); const original = structuredClone(sample); diff --git a/scripts/private-image-edit-evidence.mjs b/scripts/private-image-edit-evidence.mjs index d69b2e04..7f4dfc0b 100644 --- a/scripts/private-image-edit-evidence.mjs +++ b/scripts/private-image-edit-evidence.mjs @@ -100,6 +100,23 @@ const editRoutes = new Map([ inputPathPrefix: '@data/images/', }, ], + [ + 'StableDiffusionXLPipeline:inpaint', + { + modelRepo: 'stabilityai/stable-diffusion-xl-base-1.0', + modelRevision: '462165984030d82259a11f4367a4eed129e94a7b', + loaderClass: 'StableDiffusionXLInpaintPipeline', + format: NATIVE_PNG_INPAINT_FORMAT, + captureFormat: 'modiff.private.direct-image-inpaint-observation.v1', + consumed: [...stableDiffusionEditConsumed, 'width', 'height'], + fullNativeSnapshot: true, + inputPathPrefix: '@data/images/', + windowsCudaRuntime: true, + nativePngEvidence: true, + masked: true, + strengthVariant: { original: 0.8, retained: 1 }, + }, + ], ]); const lcmRoute = editRoutes.get('LatentConsistencyModelPipeline:edit_image'); @@ -267,7 +284,7 @@ export function validatePrivateImageEditFields(bound, output, consumed = lcmRout return fields; } -async function verifySourceBinding(clientRoot, bound, output, input) { +async function verifySourceBinding(clientRoot, bound, output, input, route) { const { createServer } = await import('vite'); const server = await createServer({ root: clientRoot, @@ -290,6 +307,7 @@ async function verifySourceBinding(clientRoot, bound, output, input) { sourceId: bound.source.id, maskId: bound.mask.id, inpaintId: bound.edit.id, + expectedOwner: route, }); assert.equal(source.sourceFile.sha256, input.file.sha256); assert.equal(source.sourceFile.byteSize, input.file.bytes); @@ -503,7 +521,7 @@ export async function readPrivateImageEditEvidence({ clientRoot, manifest, graph const { task, output, hints } = validateRun(runOptions); same(hints.workflowSnapshot.studioForm, output.formSnapshot); validatePrivateImageEditFields(bound, output, route.consumed); - const { decodedInput, mask } = await verifySourceBinding(clientRoot, bound, output, input); + const { decodedInput, mask } = await verifySourceBinding(clientRoot, bound, output, input, route); const inputMedia = read(input.file); if (nativePngEvidence) { verifyRetainedPngUpload(json(evidence.inputUpload), input, decodedInput, inputMedia.bytes); diff --git a/scripts/private-image-edit-evidence.test.mjs b/scripts/private-image-edit-evidence.test.mjs index d9fb1548..ae884bd3 100644 --- a/scripts/private-image-edit-evidence.test.mjs +++ b/scripts/private-image-edit-evidence.test.mjs @@ -306,7 +306,7 @@ test('SD1.5 private Edit evidence requires the reviewed checkpoint before readin exactRevision: '451f4fe16113bff5a5d2269ed5ad43b0592e9a14', })); -test('only the scoped SD1.5 Edit and Inpaint routes accept the observed Windows CUDA runtime', () => { +test('only the reviewed edit and masked routes accept the observed Windows CUDA runtime', () => { const sd15 = 'StableDiffusionPipeline:edit_image'; const sdxl = 'StableDiffusionXLPipeline:edit_image'; const windows = 'Windows-11-10.0.26300-SP0'; @@ -319,6 +319,10 @@ test('only the scoped SD1.5 Edit and Inpaint routes accept the observed Windows assert.doesNotThrow(() => validatePrivateImageEditRuntimePlatform('StableDiffusionPipeline:inpaint', windows, 'cuda'), ); + assert.doesNotThrow(() => + validatePrivateImageEditRuntimePlatform('StableDiffusionXLPipeline:inpaint', windows, 'cuda'), + ); + assert.throws(() => validatePrivateImageEditRuntimePlatform('StableDiffusionXLPipeline:inpaint', windows, 'rocm')); assert.throws(() => validatePrivateImageEditRuntimePlatform('StableDiffusionPipeline:control_inpaint', windows, 'cuda'), ); @@ -336,6 +340,16 @@ test('SD1.5 masked evidence requires the reviewed checkpoint before reading its exactRevision: '451f4fe16113bff5a5d2269ed5ad43b0592e9a14', })); +test('SDXL masked evidence requires the reviewed checkpoint before reading its descriptor', () => + assertPinnedPrivateEdit({ + modelType: 'StableDiffusionXLPipeline', + task: 'inpaint', + graphPath: 'studio/stable-diffusion-xl-pipeline/inpaint.json', + sourceTemplateId: 'task-template:sdxl-base:inpaint:v1', + repo: 'stabilityai/stable-diffusion-xl-base-1.0', + exactRevision: '462165984030d82259a11f4367a4eed129e94a7b', + })); + const retainedMaskEvidence = process.env.MODIFF_SD15_INPAINT_EVIDENCE; test( 'saved Inpaint evidence binds two original PNG uploads to their distinct consumed ports', From 183acea7680afecb45b18153cbe05f2514ac2b21 Mon Sep 17 00:00:00 2001 From: Sourav Das Date: Tue, 24 Nov 2026 21:53:34 +0530 Subject: [PATCH 328/440] Use the declared Studio spec for direct image routing --- scripts/bundle-budget.mjs | 4 ++++ scripts/graph-visuals.test.mjs | 7 ++++++- src/studio/graphBridge.ts | 5 +++-- 3 files changed, 13 insertions(+), 3 deletions(-) diff --git a/scripts/bundle-budget.mjs b/scripts/bundle-budget.mjs index 79d90ad2..ed00143d 100644 --- a/scripts/bundle-budget.mjs +++ b/scripts/bundle-budget.mjs @@ -490,6 +490,8 @@ const SOURCE_LICENSES = new URL('../public/THIRD_PARTY_LICENSES.txt', import.met // 504492/682980/346033 largest/startup/deferred gzip bytes: the reviewed // migration ceilings below still pass with 8/12/304 bytes of headroom. const MAX_STARTUP_CHUNK_GZIP_BYTES = + // Direct image routing uses the exact Studio spec (529280 -> 529295 gzip bytes). + 15 + // LTX long distilled sampling defaults add 57 bytes (529223 -> 529280 gzip bytes). 57 + // Model-selected outpaint geometry adds 17 bytes (529206 -> 529223 gzip bytes). @@ -776,6 +778,8 @@ const MAX_STARTUP_CHUNK_GZIP_BYTES = // The same build measures 673359 aggregate startup bytes (+45 over the cap). // Keep 19 bytes of headroom; deferred limits and loading boundaries stay fixed. const MAX_STARTUP_GZIP_BYTES = + // The same route correction adds 16 startup bytes (707765 -> 707781 gzip bytes). + 16 + // The same scoped profile defaults add 58 bytes across startup (707707 -> 707765). 58 + // The same change adds 12 startup bytes (707695 -> 707707 gzip bytes). diff --git a/scripts/graph-visuals.test.mjs b/scripts/graph-visuals.test.mjs index 415d0f42..ae54b67a 100644 --- a/scripts/graph-visuals.test.mjs +++ b/scripts/graph-visuals.test.mjs @@ -3259,7 +3259,12 @@ test('backend execution specs materialize exact image, video, and audio recipes ...capability(sdxlSpec), modes: ['text_to_image', 'edit_image', 'inpaint'], runnableModes: ['text_to_image', 'edit_image', 'inpaint'], - executionProfiles: [profile(sdxlSpec), profile(sdxlEditSpec), profile(sdxlInpaintSpec)], + executionProfiles: [ + profile(sdxlSpec), + profile(sdxlEditSpec), + profile(sdxlInpaintSpec), + { ...profile(sdxlSpec), id: `${sdxlSpec.executionProfileId}:alternate` }, + ], studioExecutionSpecModes: ['edit_image', 'inpaint', 'text_to_image'], studioExecutionSpecs: [sdxlSpec, sdxlEditSpec, sdxlInpaintSpec], revisionCandidates: [sdxlRevision], diff --git a/src/studio/graphBridge.ts b/src/studio/graphBridge.ts index d7612e3c..36ec6124 100644 --- a/src/studio/graphBridge.ts +++ b/src/studio/graphBridge.ts @@ -403,8 +403,9 @@ function isAudioMode(mode: StudioMode) { } function usesDiffusersImageFacade(form: StudioFormState | Pick) { - if ('nodes' in form && form.nodes.diffusersImagePipeline) return true; - return !('nodes' in form) && executionProfileForForm(form)?.execution_path === 'direct-diffusers-image'; + if ('nodes' in form) return Boolean(form.nodes.diffusersImagePipeline); + const path = executionSpecForForm(form)?.executionPath ?? executionProfileForForm(form)?.execution_path; + return path === 'direct-diffusers-image'; } function diffusersImageActionNode(binding: StudioGraphBinding) { From c1488a1f2341cc020f6a264a844ac49f0ec0b551 Mon Sep 17 00:00:00 2001 From: Sourav Das Date: Tue, 24 Nov 2026 22:14:58 +0530 Subject: [PATCH 329/440] Verify retained Lumina image execution evidence --- scripts/live-proof-provenance.mjs | 24 ++++++++++++++++++++++++ scripts/prompt-variant-evidence.test.mjs | 2 ++ 2 files changed, 26 insertions(+) diff --git a/scripts/live-proof-provenance.mjs b/scripts/live-proof-provenance.mjs index 28ca83fd..87e7fea8 100644 --- a/scripts/live-proof-provenance.mjs +++ b/scripts/live-proof-provenance.mjs @@ -2213,6 +2213,30 @@ const plainImageInactive = const plainImageLegacyNull = ['control_guidance_start', 'conditioning_scale', 'strength', 'control_guidance_end']; const pagScalars = ['pag_scale', 'pag_adaptive_scale']; export const directImagePromptRoutes = [ + { + format: 'modiff.private.lumina-prompt-variant.v1', + workflowId: 'LuminaPipeline:text_to_image', + modelType: 'LuminaPipeline', + modelRepo: 'Alpha-VLLM/Lumina-Next-SFT-diffusers', + modelRevision: '0ee5ec90043acf5cb41fe96274af36eb7fad8d95', + active: [...plainImageActive, 'negative_prompt', 'max_sequence_length'], + inactive: plainImageInactive, + legacyNull: plainImageLegacyNull, + platform: /^Windows-/u, + backend: 'cuda', + dtype: 'bfloat16', + offload: 'model_cpu', + deviceMap: 'none', + generation: { + width: 1024, + height: 1024, + num_inference_steps: 30, + guidance_scale: 4, + max_sequence_length: 256, + seed: 42, + negative_prompt: '', + }, + }, { format: 'modiff.private.sana-sprint-text-to-image-prompt-variant.v1', workflowId: 'SanaSprintPipeline:text_to_image', diff --git a/scripts/prompt-variant-evidence.test.mjs b/scripts/prompt-variant-evidence.test.mjs index 2bc58b48..bba13d6f 100644 --- a/scripts/prompt-variant-evidence.test.mjs +++ b/scripts/prompt-variant-evidence.test.mjs @@ -283,6 +283,7 @@ test('the video variant needs independently decoded and moving geometry at the n }); for (const [workflowId, variable, kind] of [ + ['LuminaPipeline:text_to_image', 'MODIFF_LUMINA_PROMPT_EVIDENCE', 'image'], ['HuggingFaceTextGenerationModel:text_generation', 'MODIFF_SMOLLM2_PROMPT_EVIDENCE', 'json'], ['ShapEPipeline:text_to_3d', 'MODIFF_SHAPE_PROMPT_EVIDENCE', 'video'], ['CogView3PlusPipeline:text_to_image', 'MODIFF_COGVIEW3_PROMPT_EVIDENCE', 'image'], @@ -335,6 +336,7 @@ test('Reviewed image prompt receipts keep the exact portable artifact and graph' const graphs = join(backendRoot, 'data/graphs'); const manifest = JSON.parse(readFileSync(join(backendRoot, 'data/workflow-library-manifest.json'), 'utf8')); const workflowIds = [ + 'LuminaPipeline:text_to_image', 'GlmImagePipeline:text_to_image', 'NucleusMoEImagePipeline:text_to_image', 'ErnieImagePipeline:text_to_image', From 8ca96431a068a9a80b4cd3340673ec2a944a88b3 Mon Sep 17 00:00:00 2001 From: Sourav Das Date: Tue, 24 Nov 2026 22:18:39 +0530 Subject: [PATCH 330/440] Validate saved Janus text workflow evidence --- scripts/prompt-variant-evidence.mjs | 117 +++++++++++++++++++++-- scripts/prompt-variant-evidence.test.mjs | 3 +- scripts/release-contract-core.mjs | 6 +- 3 files changed, 115 insertions(+), 11 deletions(-) diff --git a/scripts/prompt-variant-evidence.mjs b/scripts/prompt-variant-evidence.mjs index f031c2e0..b8896702 100644 --- a/scripts/prompt-variant-evidence.mjs +++ b/scripts/prompt-variant-evidence.mjs @@ -52,6 +52,19 @@ const textRoute = { ], }; +const janusTextRoute = { + ...textRoute, + format: 'modiff.private.janus-text-prompt-variant.v1', + workflowId: 'HuggingFaceAnyToAnyModel:text_generation', + modelRepo: 'deepseek-community/Janus-Pro-1B', + modelRevision: '1655280bb75959cc1cb85529a2a8b26e7016072e', + chain: [ + ['loader', 'modules.HuggingFaceTransformers', 'LoadAnyToAnyModel', 'device dtype model_id pipeline_class revision'], + ['generator', 'modules.HuggingFaceTransformers', 'GenerateAnyToAny', 'prompt'], + ['preview', 'modules.Primitive', 'DataViewer', ''], + ], +}; + const videoRoute = { format: 'modiff.private.shap-e-prompt-variant.v1', workflowId: 'ShapEPipeline:text_to_3d', @@ -247,7 +260,7 @@ function validateImagePromptPreparation(preparation, modelType) { assert.ok(Object.values(cleanup.released).every((count) => Number.isSafeInteger(count) && count >= 0)); } -export function validatePromptVariantText(bytes, item, bound, runtime) { +function nativeTextResult(bytes, item) { const text = new TextDecoder('utf-8', { fatal: true }).decode(bytes); assert.ok(bytes.equals(Buffer.from(text)), 'Original JSON output encoding differs.'); const payload = JSON.parse(text); @@ -256,15 +269,23 @@ export function validatePromptVariantText(bytes, item, bound, runtime) { stableStringify(item.value) === stableStringify(payload), 'Original text does not match the saved native output.', ); - const result = JSON.parse(payload[0]); - keys(result, ['schemaVersion', 'task', 'text', 'finishReason', 'inputTokens', 'generatedTokens', 'modelReceipt']); + return JSON.parse(payload[0]); +} + +function validateGeneratedText(result, bound) { assert.equal(result.schemaVersion, 1); - assert.equal(result.task, 'text-generation'); assert.ok(typeof result.text === 'string' && result.text.trim() && result.text.length <= 4096); assert.ok(['stop', 'length'].includes(result.finishReason)); assert.ok(Number.isSafeInteger(result.inputTokens) && result.inputTokens > 0); assert.ok(Number.isSafeInteger(result.generatedTokens) && result.generatedTokens > 0); assert.ok(result.generatedTokens <= bound.generator.node.params.max_new_tokens.value); +} + +export function validatePromptVariantText(bytes, item, bound, runtime) { + const result = nativeTextResult(bytes, item); + keys(result, ['schemaVersion', 'task', 'text', 'finishReason', 'inputTokens', 'generatedTokens', 'modelReceipt']); + assert.equal(result.task, 'text-generation'); + validateGeneratedText(result, bound); const { receiptDigest, ...record } = result.modelReceipt; const version = runtime.packages.transformers; assert.match(version, /^\d+(?:\.\d+){2}(?:[a-z0-9.+-]+)?$/u); @@ -301,6 +322,79 @@ export function validatePromptVariantText(bytes, item, bound, runtime) { }; } +function validateJanusPromptVariantText(bytes, item, bound, runtime) { + const result = nativeTextResult(bytes, item); + keys(result, [ + 'schemaVersion', + 'task', + 'adapter', + 'outputModality', + 'text', + 'image', + 'audio', + 'finishReason', + 'inputTokens', + 'generatedTokens', + 'inputImageCount', + 'inputMediaPixels', + 'modelReceipt', + ]); + assert.equal(result.task, 'any-to-any-generation'); + assert.equal(result.adapter, 'janus-v1'); + assert.equal(result.outputModality, 'text'); + assert.equal(result.image, null); + assert.equal(result.audio, null); + assert.equal(result.inputImageCount, 0); + assert.equal(result.inputMediaPixels, 0); + validateGeneratedText(result, bound); + const { receiptDigest, ...record } = result.modelReceipt; + const version = runtime.packages.transformers; + assert.match(version, /^\d+(?:\.\d+){2}(?:[a-z0-9.+-]+)?$/u); + same( + record, + { + schemaVersion: 1, + library: 'transformers', + task: 'any-to-any-generation', + adapter: { + adapterId: 'janus-v1', + imageGeneration: { height: 384, patchSize: 16, tokenCount: 576, width: 384 }, + inputModalities: ['image', 'text'], + modelType: 'janus', + outputModalities: ['image', 'text'], + }, + loader: { + configAutoClass: 'AutoConfig', + modelAutoClass: 'AutoModelForMultimodalLM', + pipelineClass: 'AnyToAnyPipeline', + preprocessorAutoClass: 'AutoProcessor', + }, + runtime: { + architectures: ['JanusForConditionalGeneration'], + device: bound.loader.node.params.device.value, + dtype: bound.loader.node.params.dtype.value, + modelClass: 'JanusForConditionalGeneration', + modelType: 'janus', + pipelineClass: 'AnyToAnyPipeline', + preprocessorClass: 'JanusProcessor', + transformersVersion: version, + }, + security: { hostedInference: false, localFilesOnly: true, safetensorsOnly: true, trustRemoteCode: false }, + source: { kind: 'hub', repository: janusTextRoute.modelRepo, revision: janusTextRoute.modelRevision }, + }, + 'Native Janus model-selection receipt differs from the executed local recipe.', + ); + assert.equal(receiptDigest, `sha256:${canonicalJsonHash(record)}`, 'Native Janus model receipt digest differs.'); + return { + schemaVersion: 1, + kind: 'json', + finishReason: result.finishReason, + inputTokens: result.inputTokens, + generatedTokens: result.generatedTokens, + modelReceiptDigest: receiptDigest, + }; +} + export function validatePromptVariantVideo(decoded, item, bound) { const frameSize = bound.generator.node.params.frame_size.value; const fps = bound.preview.node.params.fps.value; @@ -336,8 +430,9 @@ export async function readPromptVariantEvidence({ clientRoot, manifest, graph, a const imageRoute = directImagePromptRoutes.find(({ workflowId }) => workflowId === target.workflowId); const profile = imageRoute ? { ...imagePromptRoute, ...imageRoute } - : [textRoute, videoRoute].find(({ workflowId }) => workflowId === target.workflowId); + : [textRoute, janusTextRoute, videoRoute].find(({ workflowId }) => workflowId === target.workflowId); assert.ok(profile, 'Prompt variant route is not reviewed.'); + const requiresOriginalRequest = imageRoute !== undefined || profile === janusTextRoute; same(target.modelSet, [{ repoId: profile.modelRepo, revision: profile.modelRevision }]); assert.equal(target.outputPlan.minimumAssetCount, 1); assert.ok(target.outputPlan.mediaKinds.includes(profile.outputKind)); @@ -360,7 +455,7 @@ export async function readPromptVariantEvidence({ clientRoot, manifest, graph, a 'modelObservations', 'inputs', 'outputs', - ...(imageRoute ? ['graphRequest', 'graphAcknowledgment'] : []), + ...(requiresOriginalRequest ? ['graphRequest', 'graphAcknowledgment'] : []), ...(profile.lateNativeSnapshot ? ['persistedOutputs'] : []), ]); assert.equal(evidence.schemaVersion, 1); @@ -407,13 +502,15 @@ export async function readPromptVariantEvidence({ clientRoot, manifest, graph, a outputPackage, run, graphCompleted, - ...(imageRoute + ...(requiresOriginalRequest ? { graphRequest: json(evidence.graphRequest), graphAcknowledgment: json(evidence.graphAcknowledgment), - validatePreparation: (preparation) => validateImagePromptPreparation(preparation, target.modelType), } : {}), + ...(imageRoute + ? { validatePreparation: (preparation) => validateImagePromptPreparation(preparation, target.modelType) } + : {}), ...(profile === videoRoute ? { validatePreparation: (preparation) => validateUnmodifiedExpertPreparation(preparation, target.modelType) } : {}), @@ -474,12 +571,14 @@ export async function readPromptVariantEvidence({ clientRoot, manifest, graph, a contentType: profile.contentType, }); assert.match(output.id, /^run-output-[a-f0-9]{24}$/u); - const extension = imageRoute ? 'webp' : profile === textRoute ? 'txt' : 'mp4'; + const extension = imageRoute ? 'webp' : profile.outputKind === 'json' ? 'txt' : 'mp4'; assert.equal(item.backendPath, `@data/studio/outputs/${output.id}_item_00.${extension}`); assert.equal(output.mediaCollectionHash, `sha256:collection:${digest(JSON.stringify([item.mediaHash]))}`); let decodedOutput; if (profile === textRoute) { decodedOutput = validatePromptVariantText(media.bytes, item, bound, runtime); + } else if (profile === janusTextRoute) { + decodedOutput = validateJanusPromptVariantText(media.bytes, item, bound, runtime); } else if (profile === videoRoute) { const { decodedMediaHash } = await import('./template-gallery-harness.mjs'); decodedOutput = validatePromptVariantVideo(await decodedMediaHash(media.file, 'video'), item, bound); diff --git a/scripts/prompt-variant-evidence.test.mjs b/scripts/prompt-variant-evidence.test.mjs index bba13d6f..f8c0a271 100644 --- a/scripts/prompt-variant-evidence.test.mjs +++ b/scripts/prompt-variant-evidence.test.mjs @@ -283,6 +283,7 @@ test('the video variant needs independently decoded and moving geometry at the n }); for (const [workflowId, variable, kind] of [ + ['HuggingFaceAnyToAnyModel:text_generation', 'MODIFF_JANUS_TEXT_PROMPT_EVIDENCE', 'json'], ['LuminaPipeline:text_to_image', 'MODIFF_LUMINA_PROMPT_EVIDENCE', 'image'], ['HuggingFaceTextGenerationModel:text_generation', 'MODIFF_SMOLLM2_PROMPT_EVIDENCE', 'json'], ['ShapEPipeline:text_to_3d', 'MODIFF_SHAPE_PROMPT_EVIDENCE', 'video'], @@ -323,7 +324,7 @@ for (const [workflowId, variable, kind] of [ writeFileSync(changedPath, JSON.stringify(evidence)); await assert.rejects( () => readCanonicalWorkflowEvidence({ ...args, evidencePath: changedPath }), - /another-execution/u, + /another-execution|Archived authoring requires the exact original capture/u, ); assert.ok(readFileSync(evidencePath).equals(original.descriptorBytes)); } finally { diff --git a/scripts/release-contract-core.mjs b/scripts/release-contract-core.mjs index c86337b4..4543991c 100644 --- a/scripts/release-contract-core.mjs +++ b/scripts/release-contract-core.mjs @@ -844,7 +844,11 @@ export async function readCanonicalWorkflowEvidence({ clientRoot, backendRoot, w }); } if ( - ['modiff.private.smollm2-prompt-variant.v1', 'modiff.private.shap-e-prompt-variant.v1'].includes(evidence.format) || + [ + 'modiff.private.smollm2-prompt-variant.v1', + 'modiff.private.janus-text-prompt-variant.v1', + 'modiff.private.shap-e-prompt-variant.v1', + ].includes(evidence.format) || directImagePromptRoutes.some(({ format }) => format === evidence.format) ) { const { readPromptVariantEvidence } = await import('./prompt-variant-evidence.mjs'); From a16372d772610794ecf5635182d2455416b5b6cf Mon Sep 17 00:00:00 2001 From: Sourav Das Date: Tue, 24 Nov 2026 22:28:20 +0530 Subject: [PATCH 331/440] Verify retained Janus image and caption evidence --- scripts/image-edit-source-binding.mjs | 33 +----- scripts/native-image-load-evidence.mjs | 35 ++++++ scripts/prompt-variant-evidence.mjs | 141 +++++++++++++++++++---- scripts/prompt-variant-evidence.test.mjs | 26 ++++- scripts/release-contract-core.mjs | 2 + 5 files changed, 181 insertions(+), 56 deletions(-) create mode 100644 scripts/native-image-load-evidence.mjs diff --git a/scripts/image-edit-source-binding.mjs b/scripts/image-edit-source-binding.mjs index 8a54e2af..83d937b4 100644 --- a/scripts/image-edit-source-binding.mjs +++ b/scripts/image-edit-source-binding.mjs @@ -4,6 +4,7 @@ import assert from 'node:assert/strict'; import { createHash } from 'node:crypto'; import { coerceResolvedExecutionInputs } from '../src/studio/resolvedExecutionInputs.ts'; import { stableJsonValue } from './canonical-json.mjs'; +import { verifyNativeLoadedImage } from './native-image-load-evidence.mjs'; const literal = (value) => ({ value, source: 'literal' }); @@ -111,35 +112,7 @@ function verifyImageSourceBindings({ submittedApi, receipt, outputIdentity, cons } function verifyOneDecodedSource(load, loaded, projection, { loadId, mode, projectionKind, action }) { - assert.equal(load?.module, 'modules.Image'); - assert.equal(load.action, 'Load'); - assert.equal(loaded?.module, load.module); - assert.equal(loaded.action, load.action); - assert.deepEqual(loaded.omittedFields, {}); - - const media = loaded.mediaEvidence; - assert.equal(media?.status, 'complete', 'The native source decode is missing.'); - assert.equal(media.files.file?.length, 1, 'A single native file observation is required.'); - const [file] = media.files.file; - assert.ok(typeof file.sourceValue === 'string' && file.sourceValue && file.byteSize > 0 && !file.converted); - assert.deepEqual( - load.params.file, - { display: 'filebrowser', value: [file.sourceValue] }, - 'Image.Load file differs from the declared selection.', - ); - assert.equal(media.outputs.image?.length, 1, 'A single native decoded image is required.'); - const [{ kind, ...decoded }] = media.outputs.image; - assert.equal(kind, 'image'); - assert.equal(decoded.mode, mode); - assert.deepEqual(media.controls, { alpha_channel: load.params.alpha_channel.value }); - assert.deepEqual(loaded.fields, { - alpha_channel: literal(media.controls.alpha_channel), - source_hashes: literal([file.sha256]), - source_widths: literal([decoded.width]), - source_heights: literal([decoded.height]), - source_modes: literal([mode]), - }); - + const { sourceFile, decodedImage: decoded } = verifyNativeLoadedImage(load, loaded, mode); assert.equal(projection.kind, projectionKind); assert.equal(projection.source, 'connected'); assert.equal(projection.sourceNodeId, loadId, `${action} recorded a different source node.`); @@ -149,5 +122,5 @@ function verifyOneDecodedSource(load, loaded, projection, { loadId, mode, projec .update(`${projectionKind}\n${JSON.stringify(stableJsonValue(decoded))}`, 'ascii') .digest('hex'); assert.equal(projection.sha256, digest, `${action} image projection digest differs.`); - return { sourceFile: file, decodedImage: decoded }; + return { sourceFile, decodedImage: decoded }; } diff --git a/scripts/native-image-load-evidence.mjs b/scripts/native-image-load-evidence.mjs new file mode 100644 index 00000000..6234b3bc --- /dev/null +++ b/scripts/native-image-load-evidence.mjs @@ -0,0 +1,35 @@ +import assert from 'node:assert/strict'; + +const literal = (value) => ({ value, source: 'literal' }); + +export function verifyNativeLoadedImage(load, loaded, mode) { + assert.equal(load?.module, 'modules.Image'); + assert.equal(load.action, 'Load'); + assert.equal(loaded?.module, load.module); + assert.equal(loaded.action, load.action); + assert.deepEqual(loaded.omittedFields, {}); + + const media = loaded.mediaEvidence; + assert.equal(media?.status, 'complete', 'The native source decode is missing.'); + assert.equal(media.files.file?.length, 1, 'A single native file observation is required.'); + const [file] = media.files.file; + assert.ok(typeof file.sourceValue === 'string' && file.sourceValue && file.byteSize > 0 && !file.converted); + assert.deepEqual( + load.params.file, + { display: 'filebrowser', value: [file.sourceValue] }, + 'Image.Load file differs from the declared selection.', + ); + assert.equal(media.outputs.image?.length, 1, 'A single native decoded image is required.'); + const [{ kind, ...decoded }] = media.outputs.image; + assert.equal(kind, 'image'); + assert.equal(decoded.mode, mode); + assert.deepEqual(media.controls, { alpha_channel: load.params.alpha_channel.value }); + assert.deepEqual(loaded.fields, { + alpha_channel: literal(media.controls.alpha_channel), + source_hashes: literal([file.sha256]), + source_widths: literal([decoded.width]), + source_heights: literal([decoded.height]), + source_modes: literal([mode]), + }); + return { sourceFile: file, decodedImage: decoded }; +} diff --git a/scripts/prompt-variant-evidence.mjs b/scripts/prompt-variant-evidence.mjs index b8896702..f937b7fd 100644 --- a/scripts/prompt-variant-evidence.mjs +++ b/scripts/prompt-variant-evidence.mjs @@ -3,6 +3,7 @@ import { createHash } from 'node:crypto'; import { lstatSync, readFileSync, realpathSync } from 'node:fs'; import { dirname } from 'node:path'; import { canonicalJsonHash } from './canonical-json.mjs'; +import { verifyNativeLoadedImage } from './native-image-load-evidence.mjs'; import { backendContractIdentity, backendSourceEvidence, @@ -65,6 +66,25 @@ const janusTextRoute = { ], }; +const janusImageRoute = { + ...janusTextRoute, + format: 'modiff.private.janus-image-prompt-variant.v1', + workflowId: 'HuggingFaceAnyToAnyModel:text_to_image', + outputKind: 'image', + displayType: 'image', + contentType: 'image/webp', + chain: [...janusTextRoute.chain.slice(0, 2), ['preview', 'modules.Image', 'Preview', 'device']], +}; + +const janusCaptionRoute = { + ...janusTextRoute, + format: 'modiff.private.janus-caption-variant.v1', + workflowId: 'HuggingFaceAnyToAnyModel:image_to_text', + bindsImage: true, + baselinePrompt: 'Describe the image.', + chain: [['source', 'modules.Image', 'Load', ''], ...janusTextRoute.chain], +}; + const videoRoute = { format: 'modiff.private.shap-e-prompt-variant.v1', workflowId: 'ShapEPipeline:text_to_3d', @@ -141,22 +161,36 @@ function owners(profile, api) { keys(node, ['module', 'action', 'params'], 'Unreviewed prompt variant node definition.'); assert.equal(node.module, module); assert.equal(node.action, action); - assert.ok(!Object.values(node.params).some((param) => param.display === 'filebrowser')); + const fileFields = Object.keys(node.params).filter((name) => node.params[name].display === 'filebrowser'); + same(fileFields, role === 'source' && profile.bindsImage ? ['file'] : []); return [role, { id, node, capturedFields: capturedFields ? capturedFields.split(' ') : [] }]; }), ); } -export function bindPromptVariant(profile, original, created, output, baselineHash) { +export function bindPromptVariant(profile, original, created, output, baselineHash, sourceValue) { graphEnvelope(original); graphEnvelope(created); graphEnvelope(output, true); const baseline = canonicalGraphIdentity(original); assert.equal(baseline.hash, baselineHash, 'The current authored prompt recipe differs from the original baseline.'); const expected = structuredClone(original); - const expectedInputs = owners(profile, expected).generator.node.params; + const expectedOwners = owners(profile, expected); + const expectedInputs = expectedOwners.generator.node.params; + if (profile.bindsImage) { + assert.match(sourceValue, /^@data\/images\/[a-z0-9_-]{1,120}[.]png$/iu); + const { params } = expectedOwners.source.node; + same(params.file, { display: 'filebrowser', value: [] }); + assert.equal(params.alpha_channel.value, 'ignore'); + same(expectedInputs.images, { display: 'input', sourceId: expectedOwners.source.id, sourceKey: 'image' }); + params.file.value = [sourceValue]; + } const promptSlot = expectedInputs.prompt; - assert.equal(promptSlot.value, '', 'The current authored prompt is already filled.'); + assert.equal( + promptSlot.value, + profile.baselinePrompt ?? '', + 'The authored prompt differs from the reviewed default.', + ); assert.ok(!promptSlot.sourceId, 'The authored prompt must be an unconnected literal.'); const submittedOwners = owners(profile, output); const prompt = submittedOwners.generator.node.params.prompt.value; @@ -175,14 +209,16 @@ export function bindPromptVariant(profile, original, created, output, baselineHa seedSlot.value = raw; } const identity = canonicalGraphIdentity(expected); - const mismatch = profile.bindSeed - ? 'Prompt variant changed a field or wire outside the bound prompt and seed.' - : 'Prompt variant changed a field or wire outside the empty prompt.'; + const mismatch = profile.bindsImage + ? 'Caption variant changed the canonical graph outside its bound source and prompt.' + : profile.bindSeed + ? 'Prompt variant changed a field or wire outside the bound prompt and seed.' + : 'Prompt variant changed a field or wire outside the empty prompt.'; for (const graph of [created, output]) same(canonicalGraphIdentity(graph), identity, mismatch); return { ...submittedOwners, identity, prompt, expected, seed }; } -function validateConsumedPromptVariant(profile, bound, output) { +function validateConsumedPromptVariant(profile, bound, output, suppliedImage) { const consumed = output.resolvedExecutionInputs; assert.equal(consumed.schemaVersion, 1); assert.equal(consumed.source, 'backend-execution'); @@ -197,11 +233,20 @@ function validateConsumedPromptVariant(profile, bound, output) { roles.map(({ id }) => id).sort(), 'Native prompt variant scope differs.', ); + let image; for (const { id, node, capturedFields } of roles) { const row = consumed.nodes.find(({ nodeId }) => nodeId === id); assert.equal(row.module, node.module); assert.equal(row.action, node.action); same(row.omittedFields, {}); + if (profile.bindsImage && id === bound.source.id) { + const { sourceFile, decodedImage } = verifyNativeLoadedImage(node, row, 'RGB'); + assert.equal(sourceFile.sourceValue, suppliedImage.sourceValue); + assert.equal(sourceFile.sha256, suppliedImage.file.sha256, 'Caption source bytes differ from the native load.'); + assert.equal(sourceFile.byteSize, suppliedImage.file.bytes); + image = { nodeId: id, field: 'file', sha256: sourceFile.sha256, decodedImage }; + continue; + } const expected = Object.fromEntries( capturedFields.map((field) => { const { value, sourceId } = node.params[field]; @@ -212,7 +257,7 @@ function validateConsumedPromptVariant(profile, bound, output) { ); same(row.fields, expected, `Actual consumed fields differ for ${node.action}.`); } - return consumed; + return image; } function validateNativePromptRuntime(profile, bound, task, hints, graphCompleted, observation) { @@ -322,7 +367,7 @@ export function validatePromptVariantText(bytes, item, bound, runtime) { }; } -function validateJanusPromptVariantText(bytes, item, bound, runtime) { +function validateJanusPromptVariantText(bytes, item, bound, runtime, source) { const result = nativeTextResult(bytes, item); keys(result, [ 'schemaVersion', @@ -344,8 +389,8 @@ function validateJanusPromptVariantText(bytes, item, bound, runtime) { assert.equal(result.outputModality, 'text'); assert.equal(result.image, null); assert.equal(result.audio, null); - assert.equal(result.inputImageCount, 0); - assert.equal(result.inputMediaPixels, 0); + assert.equal(result.inputImageCount, source ? 1 : 0); + assert.equal(result.inputMediaPixels, source ? source.width * source.height : 0); validateGeneratedText(result, bound); const { receiptDigest, ...record } = result.modelReceipt; const version = runtime.packages.transformers; @@ -430,9 +475,15 @@ export async function readPromptVariantEvidence({ clientRoot, manifest, graph, a const imageRoute = directImagePromptRoutes.find(({ workflowId }) => workflowId === target.workflowId); const profile = imageRoute ? { ...imagePromptRoute, ...imageRoute } - : [textRoute, janusTextRoute, videoRoute].find(({ workflowId }) => workflowId === target.workflowId); + : [textRoute, janusTextRoute, janusImageRoute, janusCaptionRoute, videoRoute].find( + ({ workflowId }) => workflowId === target.workflowId, + ); assert.ok(profile, 'Prompt variant route is not reviewed.'); - const requiresOriginalRequest = imageRoute !== undefined || profile === janusTextRoute; + const requiresOriginalRequest = + imageRoute !== undefined || + profile === janusTextRoute || + profile === janusImageRoute || + profile === janusCaptionRoute; same(target.modelSet, [{ repoId: profile.modelRepo, revision: profile.modelRevision }]); assert.equal(target.outputPlan.minimumAssetCount, 1); assert.ok(target.outputPlan.mediaKinds.includes(profile.outputKind)); @@ -461,7 +512,10 @@ export async function readPromptVariantEvidence({ clientRoot, manifest, graph, a assert.equal(evidence.schemaVersion, 1); assert.equal(evidence.format, profile.format); assert.equal(evidence.workflowId, profile.workflowId); - same(evidence.inputs, []); + assert.ok(Array.isArray(evidence.inputs)); + assert.equal(evidence.inputs.length, profile.bindsImage ? 1 : 0); + const [suppliedImage] = evidence.inputs; + if (suppliedImage) keys(suppliedImage, ['sourceValue', 'file', 'upload']); assert.equal(evidence.modelObservations.length, 1); assert.equal(evidence.outputs.length, 1); const [outputRef] = evidence.outputs; @@ -485,7 +539,14 @@ export async function readPromptVariantEvidence({ clientRoot, manifest, graph, a outputPackage.latestOutput.graphSnapshot, run.workflow_snapshot, ]); - const bound = bindPromptVariant(profile, expectedApi, creator.apiGraph, submitted, evidence.originalGraphHash); + const bound = bindPromptVariant( + profile, + expectedApi, + creator.apiGraph, + submitted, + evidence.originalGraphHash, + suppliedImage?.sourceValue, + ); for (const api of [creatorApi, outputApi, runApi]) { graphEnvelope(api); same( @@ -537,15 +598,40 @@ export async function readPromptVariantEvidence({ clientRoot, manifest, graph, a runtimeEvidence: { run: accountingRun, output, graphCompleted }, }) : null; - if (!accounting) validateConsumedPromptVariant(profile, bound, output); + const inputBinding = accounting ? undefined : validateConsumedPromptVariant(profile, bound, output, suppliedImage); + if (suppliedImage) { + const source = read(suppliedImage.file, 2 * 1024 * 1024); + const upload = json(suppliedImage.upload); + const { width, height } = inputBinding.decodedImage; + assert.equal(upload.error, false); + assert.equal(upload.path, suppliedImage.sourceValue); + same( + upload.media, + { + filename: suppliedImage.sourceValue.split('/').at(-1), + extension: '.png', + sizeBytes: source.bytes.length, + sha256: inputBinding.sha256, + kind: 'image', + mimeType: 'image/png', + width, + height, + frames: 1, + }, + 'Caption input differs from the original image upload.', + ); + } const nodes = json(evidence.nodes); const backendContract = backendContractIdentity(nodes, bound.identity.canonicalGraph); assert.ok(backendContract.fingerprint, 'Native backend contract fingerprint is missing.'); - for (const [, module, action] of profile.chain) { + for (const [role, module, action] of profile.chain) { const contract = (nodes.nodes ?? nodes)[`${module}.${action}`]; assert.equal(contract?.module, module); assert.equal(contract.action, action); - assert.ok(Object.values(contract.params).every(({ display }) => display !== 'filebrowser')); + same( + Object.keys(contract.params).filter((name) => contract.params[name].display === 'filebrowser'), + role === 'source' && profile.bindsImage ? ['file'] : [], + ); } const source = backendSourceEvidence({ before: json(evidence.backendSourceBefore).identity, @@ -571,14 +657,14 @@ export async function readPromptVariantEvidence({ clientRoot, manifest, graph, a contentType: profile.contentType, }); assert.match(output.id, /^run-output-[a-f0-9]{24}$/u); - const extension = imageRoute ? 'webp' : profile.outputKind === 'json' ? 'txt' : 'mp4'; + const extension = { image: 'webp', json: 'txt', video: 'mp4' }[profile.outputKind]; assert.equal(item.backendPath, `@data/studio/outputs/${output.id}_item_00.${extension}`); assert.equal(output.mediaCollectionHash, `sha256:collection:${digest(JSON.stringify([item.mediaHash]))}`); let decodedOutput; if (profile === textRoute) { decodedOutput = validatePromptVariantText(media.bytes, item, bound, runtime); - } else if (profile === janusTextRoute) { - decodedOutput = validateJanusPromptVariantText(media.bytes, item, bound, runtime); + } else if (profile === janusTextRoute || profile === janusCaptionRoute) { + decodedOutput = validateJanusPromptVariantText(media.bytes, item, bound, runtime, inputBinding?.decodedImage); } else if (profile === videoRoute) { const { decodedMediaHash } = await import('./template-gallery-harness.mjs'); decodedOutput = validatePromptVariantVideo(await decodedMediaHash(media.file, 'video'), item, bound); @@ -586,6 +672,9 @@ export async function readPromptVariantEvidence({ clientRoot, manifest, graph, a const { decodedMediaHash, technicalMediaErrors } = await import('./template-gallery-harness.mjs'); const decoded = await decodedMediaHash(media.file, 'image'); same(technicalMediaErrors(decoded, { width: item.width, height: item.height }), []); + if (profile === janusImageRoute) { + same([decoded.width, decoded.height], [384, 384], 'Janus image dimensions differ from the reviewed image route.'); + } decodedOutput = { kind: 'image', hash: decoded.hash, width: decoded.width, height: decoded.height }; } for (const ref of retainedFiles) readCanonicalEvidenceFile(root, ref, 16 * 1024 * 1024); @@ -593,7 +682,7 @@ export async function readPromptVariantEvidence({ clientRoot, manifest, graph, a const receipt = { schemaVersion: 1, format: 'modiff.canonical-workflow-run-receipt.v1', - proofKind: 'real_backend_prompt_bound_model_variant', + proofKind: inputBinding ? 'real_backend_input_bound_model_variant' : 'real_backend_prompt_bound_model_variant', ...target, taskId: task.task_id, outputId: output.id, @@ -608,6 +697,7 @@ export async function readPromptVariantEvidence({ clientRoot, manifest, graph, a peakMemoryBytes: measurement.peakAllocatedBytes, canonicalDefaultsExecuted: false, promptBinding: { nodeId: bound.generator.id, field: 'prompt', sha256: digest(bound.prompt) }, + ...(inputBinding ? { inputBinding } : {}), ...(accounting ? { seedBinding: { nodeId: bound.generator.id, field: 'seed', value: bound.seed } } : {}), decodedOutput, observationLimits: { fullConsumedFieldAccounting: Boolean(accounting), physicalPlatformQualification: false }, @@ -621,7 +711,10 @@ export async function readPromptVariantEvidence({ clientRoot, manifest, graph, a }; return { receipt, - provenance: { format: 'modiff.prompt-bound-model-variant-proof.v1', receipt }, + provenance: { + format: inputBinding ? 'modiff.input-bound-model-variant-proof.v1' : 'modiff.prompt-bound-model-variant-proof.v1', + receipt, + }, evidence, descriptorBytes, retainedFiles, diff --git a/scripts/prompt-variant-evidence.test.mjs b/scripts/prompt-variant-evidence.test.mjs index f8c0a271..07a62e25 100644 --- a/scripts/prompt-variant-evidence.test.mjs +++ b/scripts/prompt-variant-evidence.test.mjs @@ -282,8 +282,15 @@ test('the video variant needs independently decoded and moving geometry at the n assert.throws(() => validatePromptVariantVideo({ ...decoded, uniqueFrameRatio: 0.1 }, item, bound)); }); -for (const [workflowId, variable, kind] of [ +for (const [workflowId, variable, kind, proofKind = 'real_backend_prompt_bound_model_variant'] of [ ['HuggingFaceAnyToAnyModel:text_generation', 'MODIFF_JANUS_TEXT_PROMPT_EVIDENCE', 'json'], + ['HuggingFaceAnyToAnyModel:text_to_image', 'MODIFF_JANUS_IMAGE_PROMPT_EVIDENCE', 'image'], + [ + 'HuggingFaceAnyToAnyModel:image_to_text', + 'MODIFF_JANUS_CAPTION_EVIDENCE', + 'json', + 'real_backend_input_bound_model_variant', + ], ['LuminaPipeline:text_to_image', 'MODIFF_LUMINA_PROMPT_EVIDENCE', 'image'], ['HuggingFaceTextGenerationModel:text_generation', 'MODIFF_SMOLLM2_PROMPT_EVIDENCE', 'json'], ['ShapEPipeline:text_to_3d', 'MODIFF_SHAPE_PROMPT_EVIDENCE', 'video'], @@ -300,7 +307,7 @@ for (const [workflowId, variable, kind] of [ const evidencePath = resolve(saved); const args = { clientRoot, backendRoot, workflowId, evidencePath }; const original = await readCanonicalWorkflowEvidence(args); - assert.equal(original.receipt.proofKind, 'real_backend_prompt_bound_model_variant'); + assert.equal(original.receipt.proofKind, proofKind); assert.equal(original.receipt.canonicalDefaultsExecuted, false); assert.equal(original.receipt.decodedOutput.kind, kind); assert.ok(Object.values(original.receipt.qualificationClaims).every((claim) => claim === false)); @@ -314,6 +321,21 @@ for (const [workflowId, variable, kind] of [ } const changedPath = join(temp, 'evidence.json'); const evidence = JSON.parse(original.descriptorBytes); + if (proofKind === 'real_backend_input_bound_model_variant') { + const [input] = evidence.inputs; + const path = join(temp, input.file.path); + const originalBytes = readFileSync(path); + const replacement = Buffer.concat([originalBytes, Buffer.from([0])]); + const substituted = structuredClone(evidence); + substituted.inputs[0].file = { ...input.file, bytes: replacement.length, sha256: digest(replacement) }; + writeFileSync(path, replacement); + writeFileSync(changedPath, JSON.stringify(substituted)); + await assert.rejects( + () => readCanonicalWorkflowEvidence({ ...args, evidencePath: changedPath }), + /Caption source bytes differ from the native load/u, + ); + writeFileSync(path, originalBytes); + } const completionPath = join(temp, evidence.graphCompleted.path); const completion = JSON.parse(readFileSync(completionPath)); completion.task_id = 'another-execution'; diff --git a/scripts/release-contract-core.mjs b/scripts/release-contract-core.mjs index 4543991c..649c4e93 100644 --- a/scripts/release-contract-core.mjs +++ b/scripts/release-contract-core.mjs @@ -847,6 +847,8 @@ export async function readCanonicalWorkflowEvidence({ clientRoot, backendRoot, w [ 'modiff.private.smollm2-prompt-variant.v1', 'modiff.private.janus-text-prompt-variant.v1', + 'modiff.private.janus-image-prompt-variant.v1', + 'modiff.private.janus-caption-variant.v1', 'modiff.private.shap-e-prompt-variant.v1', ].includes(evidence.format) || directImagePromptRoutes.some(({ format }) => format === evidence.format) From 9a063570c6a3c4a9b55f5e7ba32d1531cbb030ca Mon Sep 17 00:00:00 2001 From: Sourav Das Date: Tue, 24 Nov 2026 22:41:17 +0530 Subject: [PATCH 332/440] Verify retained Janus Gallery text against native outputs --- scripts/prompt-variant-evidence.test.mjs | 56 +++++++++++++++++++ scripts/retained-structured-text-evidence.mjs | 20 ++++++- 2 files changed, 73 insertions(+), 3 deletions(-) diff --git a/scripts/prompt-variant-evidence.test.mjs b/scripts/prompt-variant-evidence.test.mjs index 07a62e25..b5e75481 100644 --- a/scripts/prompt-variant-evidence.test.mjs +++ b/scripts/prompt-variant-evidence.test.mjs @@ -116,6 +116,62 @@ test('an image prompt variant binds the authored seed with the prompt and accept assert.throws(() => bindPromptVariant(profile, baseline, creator, connectedSeed, baselineHash), /literal seed/u); }); +test('retained Janus text and captions preserve the output modality and source image binding', () => { + const model = { + source: { + repository: 'deepseek-community/Janus-Pro-1B', + revision: '1655280bb75959cc1cb85529a2a8b26e7016072e', + }, + }; + const modelReceiptDigest = `sha256:${canonicalJsonHash(model)}`; + const sourceImage = { decodedImage: { width: 640, height: 512 } }; + for (const caption of [false, true]) { + const receipt = { + schemaVersion: 1, + format: 'modiff.canonical-workflow-run-receipt.v1', + proofKind: caption ? 'real_backend_input_bound_model_variant' : 'real_backend_prompt_bound_model_variant', + workflowId: `HuggingFaceAnyToAnyModel:${caption ? 'image_to_text' : 'text_generation'}`, + modelSet: [{ repoId: model.source.repository, revision: model.source.revision }], + decodedOutput: { + schemaVersion: 1, + kind: 'json', + finishReason: 'stop', + inputTokens: 7, + generatedTokens: 5, + modelReceiptDigest, + }, + ...(caption && { inputBinding: sourceImage }), + }; + const native = { + schemaVersion: 1, + task: 'any-to-any-generation', + outputModality: 'text', + text: caption ? 'A red triangle on white.' : 'Reykjavik is the capital of Iceland.', + finishReason: 'stop', + inputTokens: 7, + generatedTokens: 5, + inputImageCount: caption ? 1 : 0, + inputMediaPixels: caption ? 640 * 512 : 0, + modelReceipt: { ...model, receiptDigest: modelReceiptDigest }, + }; + function verify(result, receiptOverrides = {}) { + const transportBytes = Buffer.from(JSON.stringify([JSON.stringify(result)])); + const structuredBytes = Buffer.from(JSON.stringify(result)); + return verifyRetainedStructuredText({ + receipt: { ...receipt, outputHash: `sha256:bytes:${digest(transportBytes)}`, ...receiptOverrides }, + transportBytes, + structuredBytes, + outputSha256: digest(structuredBytes), + }); + } + assert.equal(verify(native).decodedMediaHash, `sha256:canonical-json:${canonicalJsonHash(native)}`); + assert.throws(() => verify(native, { inputBinding: caption ? undefined : sourceImage }), /source evidence/u); + assert.throws(() => verify({ ...native, outputModality: 'image' })); + assert.throws(() => verify({ ...native, inputImageCount: 2 })); + assert.throws(() => verify({ ...native, inputMediaPixels: 1 })); + } +}); + test('the native text output binds exact durable JSON, prompt route and local model receipt', () => { const model = { schemaVersion: 1, diff --git a/scripts/retained-structured-text-evidence.mjs b/scripts/retained-structured-text-evidence.mjs index 4d87f907..78ac0576 100644 --- a/scripts/retained-structured-text-evidence.mjs +++ b/scripts/retained-structured-text-evidence.mjs @@ -15,11 +15,17 @@ function parseJsonBytes(bytes, label) { // original source and captures. This binds its exact text output to a separate, // approved JSON file. Neither the native receipt nor its media hash changes. export function verifyRetainedStructuredText({ receipt, transportBytes, structuredBytes, outputSha256 }) { + const textRoutes = { + 'HuggingFaceTextGenerationModel:text_generation': ['real_backend_prompt_bound_model_variant', 'text-generation'], + 'HuggingFaceAnyToAnyModel:text_generation': ['real_backend_prompt_bound_model_variant', 'any-to-any-generation'], + 'HuggingFaceAnyToAnyModel:image_to_text': ['real_backend_input_bound_model_variant', 'any-to-any-generation'], + }; + const route = Object.hasOwn(textRoutes, receipt?.workflowId) ? textRoutes[receipt.workflowId] : null; assert.ok( receipt?.schemaVersion === 1 && receipt.format === 'modiff.canonical-workflow-run-receipt.v1' && - receipt.proofKind === 'real_backend_prompt_bound_model_variant' && - receipt.workflowId === 'HuggingFaceTextGenerationModel:text_generation' && + route && + receipt.proofKind === route[0] && receipt.decodedOutput?.schemaVersion === 1 && receipt.decodedOutput.kind === 'json', 'A verified receipt for the reviewed text workflow is required.', @@ -44,7 +50,7 @@ export function verifyRetainedStructuredText({ receipt, transportBytes, structur const decoded = receipt.decodedOutput; assert.ok( native?.schemaVersion === 1 && - native.task === 'text-generation' && + native.task === route[1] && typeof native.text === 'string' && native.text.trim() && native.finishReason === decoded.finishReason && @@ -54,6 +60,14 @@ export function verifyRetainedStructuredText({ receipt, transportBytes, structur /^sha256:[a-f0-9]{64}$/u.test(decoded.modelReceiptDigest), 'Decoded result differs from the native text receipt.', ); + if (native.task === 'any-to-any-generation') { + const source = receipt.inputBinding?.decodedImage; + const caption = receipt.workflowId === 'HuggingFaceAnyToAnyModel:image_to_text'; + assert.equal(Boolean(source), caption, 'Janus result has the wrong source evidence.'); + assert.equal(native.outputModality, 'text'); + assert.equal(native.inputImageCount, caption ? 1 : 0); + assert.equal(native.inputMediaPixels, caption ? source.width * source.height : 0); + } const { receiptDigest, ...model } = native.modelReceipt; assert.equal(receiptDigest, `sha256:${canonicalJsonHash(model)}`, 'Native text model receipt digest differs.'); assert.deepEqual( From 1748e748e52036509c92d2085d79b7c5d210d84f Mon Sep 17 00:00:00 2001 From: Sourav Das Date: Tue, 24 Nov 2026 23:32:00 +0530 Subject: [PATCH 333/440] Show overlap between execution and release counts --- docs/deployment.md | 5 +++++ scripts/release-candidate-report.mjs | 4 +++- scripts/release-candidate-report.test.mjs | 1 + 3 files changed, 9 insertions(+), 1 deletion(-) diff --git a/docs/deployment.md b/docs/deployment.md index f8f5a526..e5fda61c 100644 --- a/docs/deployment.md +++ b/docs/deployment.md @@ -66,6 +66,11 @@ restarting only the frontend is insufficient. Historical V2 receipts without this worker attestation require a fresh run and cannot be upgraded from the current checkout. +The release candidate report splits verified standalone executions into +`alreadyReleaseEligible` and `awaitingReleaseEligibility`. The first group +is already included in the eligible workflow total. The second group still +needs the release evidence listed against each workflow. + ```bash npm run release:qualification:run -- \ --dry-run \ diff --git a/scripts/release-candidate-report.mjs b/scripts/release-candidate-report.mjs index e96506e7..2ff659a8 100644 --- a/scripts/release-candidate-report.mjs +++ b/scripts/release-candidate-report.mjs @@ -109,6 +109,7 @@ const standaloneExecution = { exactModelWorkflows: 0, boundVariants: 0, deterministicWorkflows: 0, + alreadyReleaseEligible: 0, awaitingReleaseEligibility: 0, }; for (const workflow of contract.workflows) { @@ -116,7 +117,8 @@ for (const workflow of contract.workflows) { if (!scope || !workflow.lastSuccessfulRealRun) continue; standaloneExecution[scope] += 1; standaloneExecution.verified += 1; - if (!workflow.releaseEligible) standaloneExecution.awaitingReleaseEligibility += 1; + if (workflow.releaseEligible) standaloneExecution.alreadyReleaseEligible += 1; + else standaloneExecution.awaitingReleaseEligibility += 1; } const missingFieldCounts = {}; for (const template of contract.templates) { diff --git a/scripts/release-candidate-report.test.mjs b/scripts/release-candidate-report.test.mjs index 2a4ce352..6d950815 100644 --- a/scripts/release-candidate-report.test.mjs +++ b/scripts/release-candidate-report.test.mjs @@ -167,6 +167,7 @@ test('candidate report counts exact runs and bound variants without granting rel exactModelWorkflows: 1, boundVariants: 2, deterministicWorkflows: 1, + alreadyReleaseEligible: 1, awaitingReleaseEligibility: 3, }); assert.deepEqual(report.incompleteWorkflows, [ From 4d2547d63052420e7d6865e866543a69257727c3 Mon Sep 17 00:00:00 2001 From: Sourav Das Date: Tue, 24 Nov 2026 23:32:00 +0530 Subject: [PATCH 334/440] Accept retained Whisper Small translation execution evidence --- scripts/private-speech-evidence.mjs | 73 ++++++++++++++++++------ scripts/private-speech-evidence.test.mjs | 38 +++++++++++- scripts/release-contract-core.mjs | 1 + 3 files changed, 94 insertions(+), 18 deletions(-) diff --git a/scripts/private-speech-evidence.mjs b/scripts/private-speech-evidence.mjs index 11bd83d5..be3c883a 100644 --- a/scripts/private-speech-evidence.mjs +++ b/scripts/private-speech-evidence.mjs @@ -21,19 +21,33 @@ import { const whisperType = 'HuggingFaceSpeechRecognitionModel'; const ctcType = 'HuggingFaceCTCSpeechRecognitionModel'; const task = 'speech_to_text'; +const whisperTiny = { repoId: 'openai/whisper-tiny', revision: '169d4a4341b33bc18d8881c4b69c2e104e1cc0af' }; const routes = new Map([ [ `${whisperType}:${task}`, { modelType: whisperType, - repo: 'openai/whisper-tiny', - revision: '169d4a4341b33bc18d8881c4b69c2e104e1cc0af', + repo: whisperTiny.repoId, + revision: whisperTiny.revision, pipeline: 'AutoModelForSpeechSeq2Seq', loader: 'LoadSpeechRecognitionModel', consumer: 'TranscribeAudio', timestamps: 'segment', }, ], + [ + `${whisperType}:speech_translation`, + { + modelType: whisperType, + repo: 'openai/whisper-small', + revision: '973afd24965f72e36ca33b3055d56a652f456b4d', + pipeline: 'AutoModelForSpeechSeq2Seq', + loader: 'LoadSpeechRecognitionModel', + consumer: 'TranscribeAudio', + timestamps: 'segment', + translation: { baselineModel: whisperTiny, language: 'es', sourceSampleRate: 22_050 }, + }, + ], [ `${ctcType}:${task}`, { @@ -81,19 +95,22 @@ export function speechRoute(workflowId) { function speechControls(route) { const controls = { timestamps: route.timestamps, chunk_length_seconds: 30, stride_length_seconds: 5 }; + if (route.translation) return { ...controls, task: 'translate', language: route.translation.language }; return route.modelType === whisperType ? { ...controls, task: 'transcribe', language: '' } : controls; } -function assertSafeSourceName(name) { +function assertSafeSourceName(name, { translation }) { assert.ok( - typeof name === 'string' && name.length <= 200 && /^[a-z0-9][a-z0-9_.-]*[.]wav$/iu.test(name), - 'Expected a plain WAV file picker name.', + typeof name === 'string' && + name.length <= 200 && + (translation ? /^@data\/audio\/[a-z0-9][a-z0-9_.-]*[.]wav$/iu : /^[a-z0-9][a-z0-9_.-]*[.]wav$/iu).test(name), + translation ? 'Expected a managed WAV file picker name.' : 'Expected a plain WAV file picker name.', ); } function boundSpeechGraph(workflowId, expectedApi, submitted, sourceName) { const route = speechRoute(workflowId); - assertSafeSourceName(sourceName); + assertSafeSourceName(sourceName, route); assertCanonicalAccountingGraphEnvelope(expectedApi); assertCanonicalAccountingGraphEnvelope(submitted); same(submitted.paths, [ids], 'The speech recipe must run the four reviewed nodes in order.'); @@ -113,7 +130,23 @@ function boundSpeechGraph(workflowId, expectedApi, submitted, sourceName) { same(expectedApi.nodes[source].params.file, { display: 'filebrowser', value: '' }); const expected = structuredClone(expectedApi); expected.nodes[source].params.file.value = [sourceName]; - sameWireJson(submitted.nodes, expected.nodes, 'Speech graph differs outside its single bound WAV.'); + if (route.translation) { + const { baselineModel, language } = route.translation; + const { model_id: modelId, revision } = expected.nodes[loader].params; + same(modelId.value, { source: 'hub', value: baselineModel.repoId }, 'Original translation repository differs.'); + assert.equal(revision.value, baselineModel.revision, 'Original translation revision differs.'); + sameWireJson(expected.nodes[consumer].params.language, { value: '' }); + modelId.value.value = route.repo; + revision.value = route.revision; + expected.nodes[consumer].params.language.value = language; + } + sameWireJson( + submitted.nodes, + expected.nodes, + route.translation + ? 'Speech graph differs outside its reviewed bindings.' + : 'Speech graph differs outside its single bound WAV.', + ); same(submitted.paths, expected.paths, 'Speech graph paths differ.'); const model = submitted.nodes[loader].params; same(model.model_id.value, { source: 'hub', value: route.repo }, 'Speech repository differs.'); @@ -133,7 +166,7 @@ function boundSpeechGraph(workflowId, expectedApi, submitted, sourceName) { return { route, model, controls, identity: canonicalGraphIdentity(submitted) }; } -function pcm16Wave(bytes) { +function pcm16Wave(bytes, sampleRate) { assert.ok(Buffer.isBuffer(bytes) && bytes.length >= 44 && bytes.length <= MAX_SPEECH_WAV_BYTES); same(bytes.toString('ascii', 0, 4), 'RIFF'); same(bytes.toString('ascii', 8, 12), 'WAVE'); @@ -165,18 +198,18 @@ function pcm16Wave(bytes) { format.readUInt16LE(12), format.readUInt16LE(14), ], - [1, 1, 16000, 32000, 2, 16], - 'Expected mono 16 kHz PCM16 WAV.', + [1, 1, sampleRate, sampleRate * 2, 2, 16], + 'Expected mono PCM16 WAV at the reviewed source sample rate.', ); const floats = Buffer.alloc(pcm.length * 2); for (let i = 0; i < pcm.length; i += 2) floats.writeFloatLE(pcm.readInt16LE(i) / 32768, i * 2); const frames = pcm.length / 2; return { - duration: frames / 16000, + duration: frames / sampleRate, identity: { kind: 'audio', shape: [frames, 1], - sampleRate: 16000, + sampleRate, dtype: 'float32-le', byteSize: floats.length, sha256: digest(floats), @@ -188,7 +221,7 @@ function expectedAccounting(controls) { const fields = Object.fromEntries( Object.entries(controls).map(([field, value]) => [ field, - field === 'language' + field === 'language' && value === '' ? { disposition: 'inactive', inputValue: value, ...literal(value), reason: 'feature-disabled' } : { disposition: 'consumed', inputValue: value, ...literal(value === 'segment' ? true : value) }, ]), @@ -241,7 +274,7 @@ export function verifyPrivateSpeechConsumer({ workflowId, expectedApi, submitted }, 'Native speech loader or model pin differs.', ); - const wave = pcm16Wave(wavBytes); + const wave = pcm16Wave(wavBytes, route.translation?.sourceSampleRate ?? 16000); const input = { sourceValue: sourceName, sha256: digest(wavBytes), byteSize: wavBytes.length, converted: false }; same( observations[source].mediaEvidence, @@ -266,7 +299,7 @@ function speechTranscript(bytes, item, bound) { keys(transcript, ['schemaVersion', 'task', 'text', 'timestampMode', 'durationSeconds', 'segments']); same( [transcript.schemaVersion, transcript.task, transcript.timestampMode, transcript.durationSeconds], - [1, 'transcribe', bound.route.timestamps, bound.wave.duration], + [1, bound.controls.task ?? 'transcribe', bound.route.timestamps, bound.wave.duration], 'Delivered transcript settings differ.', ); assert.ok(Array.isArray(transcript.segments) && transcript.segments.length > 0); @@ -314,7 +347,7 @@ export function verifyPrivateSpeechRun({ task: nativeTask, hints, } = validateNativeVariantRun({ - target: { modelType: route.modelType, task }, + target: { modelType: route.modelType, task: route.translation ? 'speech_translation' : task }, outputNodeId: terminal, displayType: 'text', creator, @@ -475,7 +508,12 @@ export async function readPrivateSpeechRun(args) { export async function readCanonicalSpeechEvidence({ clientRoot, manifest, graph, authoring, artifact, evidencePath }) { const route = speechRoute(manifest.id); const target = canonicalWorkflowAuthoringContract(manifest, graph, authoring, artifact); - same(target.modelSet, [{ repoId: route.repo, revision: route.revision }], 'Canonical speech pin differs.'); + const modelSet = [{ repoId: route.repo, revision: route.revision }]; + same( + target.modelSet, + route.translation ? [route.translation.baselineModel] : modelSet, + 'Canonical speech pin differs.', + ); same(target.outputPlan.mediaKinds, ['json'], 'Canonical speech must deliver structured text.'); assert.equal(target.outputPlan.minimumAssetCount, 1); const stat = lstatSync(evidencePath); @@ -510,6 +548,7 @@ export async function readCanonicalSpeechEvidence({ clientRoot, manifest, graph, format: 'modiff.canonical-workflow-run-receipt.v1', proofKind: 'real_backend_input_bound_model_variant', ...target, + modelSet, recipeTitle: authoring.title, runTitle: observation.runTitle, taskId: observation.taskId, diff --git a/scripts/private-speech-evidence.test.mjs b/scripts/private-speech-evidence.test.mjs index 2a0b3c64..9e781560 100644 --- a/scripts/private-speech-evidence.test.mjs +++ b/scripts/private-speech-evidence.test.mjs @@ -133,6 +133,42 @@ test('uses bound audio and effective native controls for both supported speech-t } }); +test('binds the saved Spanish translation to the reviewed alternate model and source audio', () => { + const record = capture(whisper); + record.workflowId = whisper.type + ':speech_translation'; + record.sourceName = '@data/audio/sample-source.wav'; + record.wavBytes.writeUInt32LE(22050, 24); + record.wavBytes.writeUInt32LE(44100, 28); + const repo = 'openai/whisper-small'; + const revision = '973afd24965f72e36ca33b3055d56a652f456b4d'; + record.expectedApi.nodes['node-03'].params.task.value = 'translate'; + const submitted = record.submitted.nodes; + submitted['node-01'].params.file.value = [record.sourceName]; + submitted['node-02'].params.model_id.value.value = repo; + submitted['node-02'].params.revision.value = revision; + submitted['node-03'].params.task.value = 'translate'; + submitted['node-03'].params.language.value = 'es'; + const [loader, model, consumer] = record.output.resolvedExecutionInputs.nodes; + loader.mediaEvidence.files.file[0].sourceValue = record.sourceName; + loader.mediaEvidence.files.file[0].sha256 = sha256(record.wavBytes); + loader.mediaEvidence.outputs.audio[0].sampleRate = 22050; + consumer.mediaEvidence.inputs.audio[0].sampleRate = 22050; + model.fields.model_id.value = repo; + model.fields.revision.value = revision; + const fields = consumer.fieldAccounting.fields; + fields.task.inputValue = fields.task.value = 'translate'; + fields.language = { disposition: 'consumed', inputValue: 'es', value: 'es', source: 'literal' }; + + const verified = verifyPrivateSpeechConsumer(record); + assert.equal(verified.route.repo, repo); + assert.equal(verified.wave.duration, 2 / 22050); + submitted['node-03'].params.language.value = 'fr'; + assert.throws(() => verifyPrivateSpeechConsumer(record), /outside its reviewed bindings/u); + submitted['node-03'].params.language.value = 'es'; + record.wavBytes.writeUInt32LE(16000, 24); + assert.throws(() => verifyPrivateSpeechConsumer(record), /Expected mono/u); +}); + test('rejects legacy speech receipts and any incomplete native accounting', () => { for (const route of [whisper, ctc]) { const older = capture(route); @@ -237,7 +273,7 @@ test('rejects changed audio, controls, graph wiring, model pin and output owners [ 'wrong route', (row) => { - row.workflowId = whisper.type + ':speech_translation'; + row.workflowId = whisper.type + ':speaker_classification'; }, /Unsupported private speech/u, ], diff --git a/scripts/release-contract-core.mjs b/scripts/release-contract-core.mjs index 649c4e93..d4689126 100644 --- a/scripts/release-contract-core.mjs +++ b/scripts/release-contract-core.mjs @@ -801,6 +801,7 @@ export async function readCanonicalWorkflowEvidence({ clientRoot, backendRoot, w evidence.format === 'modiff.private.speech-to-text-input-bound.v1' && [ 'HuggingFaceSpeechRecognitionModel:speech_to_text', + 'HuggingFaceSpeechRecognitionModel:speech_translation', 'HuggingFaceCTCSpeechRecognitionModel:speech_to_text', ].includes(workflowId) ) { From 3459edcad6d3f5684012e13a2c2fafeef87cf0d7 Mon Sep 17 00:00:00 2001 From: Sourav Das Date: Wed, 25 Nov 2026 01:00:16 +0530 Subject: [PATCH 335/440] Register 21 approved retained Gallery recipes Pin the verified immutable Gallery descriptor and retain exact generation settings and approved files. Verify 112 of 220 release-eligible workflow IDs with saved evidence. --- CONTRIBUTING.md | 7 + config/release-showcase-scope.v1.json | 109 +- .../retained-gallery-approved-batch.v1.json | 254 + config/template-asset-rights.v1.json | 5002 +++++++++++++---- config/template-assets.v1.json | 1428 ++++- public/template-gallery/manifest.json | 633 +++ scripts/bundle-budget.mjs | 9 +- ...e-full-native-template-candidates.test.mjs | 15 +- scripts/modiff-template.test.mjs | 15 + scripts/retained-gallery-provenance.mjs | 12 + scripts/retained-gallery-release.mjs | 43 +- scripts/retained-gallery-release.test.mjs | 30 +- scripts/retained-gallery-templates.test.mjs | 71 +- scripts/template-gallery-harness.test.mjs | 4 +- scripts/template-quality.test.mjs | 6 + src/studio/retainedGalleryApprovedBatch.ts | 1683 ++++++ src/studio/retainedGalleryTemplates.ts | 5 +- src/studio/templateAssetSource.json | 6 +- src/studio/types.ts | 21 + 19 files changed, 8058 insertions(+), 1295 deletions(-) create mode 100644 config/retained-gallery-approved-batch.v1.json create mode 100644 src/studio/retainedGalleryApprovedBatch.ts diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 49eb1d98..db7f7b7d 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -290,6 +290,13 @@ When adding or changing a template: 5. Add/update template and quality tests. 6. Update Gallery coverage and evidence only when the publication contract is met. +For a template registered from an approved saved run, preserve the recorded +conditioning and locked settings. Test its evidence bindings against the +retained graph, original output and exact approved files. The authored prompt +lint still applies to new recipes. Keep display metadata separate from the +execution settings when refreshing a retained catalog entry, and verify the +current Gallery association after changing its catalog revision. + When adding a model or mode, follow the checklist in [Auto mode design](docs/auto-mode-design.md). Do not mark a profile Auto-ready from schema or mocked UI evidence alone. Public Gallery changes must keep manifest paths, media types, reviews, and redacted provenance consistent. Run: diff --git a/config/release-showcase-scope.v1.json b/config/release-showcase-scope.v1.json index f85e4ffe..3a1ccca3 100644 --- a/config/release-showcase-scope.v1.json +++ b/config/release-showcase-scope.v1.json @@ -4,7 +4,7 @@ "name": "Registered showcase preview without AMD-cloud backlog", "dataset": { "repository": "sourav-das/modiff-template-gallery", - "revision": "decf9bd7ae2db2fe2aabfe729ecaca2765965436" + "revision": "56751b206e461b4a3cdfbcab35b3ae46d8cf43fd" }, "originalCampaign": { "total": 89, @@ -418,6 +418,111 @@ "id": "z_image_quick_concept", "evidenceScope": "current_recipe", "templateLockHash": "tpl_de6c4faa" + }, + { + "id": "alpine_lake_in_oils", + "evidenceScope": "current_recipe", + "templateLockHash": "tpl_0816c26c" + }, + { + "id": "bookshop_at_blue_hour", + "evidenceScope": "current_recipe", + "templateLockHash": "tpl_14707aaf" + }, + { + "id": "flowers_after_rain", + "evidenceScope": "current_recipe", + "templateLockHash": "tpl_3ba52cb2" + }, + { + "id": "forest_ferns", + "evidenceScope": "current_recipe", + "templateLockHash": "tpl_be9fadb4" + }, + { + "id": "ochre_paper_pavilion", + "evidenceScope": "current_recipe", + "templateLockHash": "tpl_f93a2d5c" + }, + { + "id": "quiet_current", + "evidenceScope": "current_recipe", + "templateLockHash": "tpl_57a6868c" + }, + { + "id": "persimmon_glaze", + "evidenceScope": "current_recipe", + "templateLockHash": "tpl_ef8db2a5" + }, + { + "id": "porcelain_on_slate_linen", + "evidenceScope": "current_recipe", + "templateLockHash": "tpl_5536c9a7" + }, + { + "id": "salt_marsh_from_above", + "evidenceScope": "current_recipe", + "templateLockHash": "tpl_a23dcce5" + }, + { + "id": "cobalt_jug_and_lemons", + "evidenceScope": "current_recipe", + "templateLockHash": "tpl_61d186ae" + }, + { + "id": "copper_hour_dunes", + "evidenceScope": "current_recipe", + "templateLockHash": "tpl_3f17401c" + }, + { + "id": "glasshouse_rain", + "evidenceScope": "current_recipe", + "templateLockHash": "tpl_a4b61426" + }, + { + "id": "pomegranate_on_blue_linen", + "evidenceScope": "current_recipe", + "templateLockHash": "tpl_5dba74f8" + }, + { + "id": "canal_lantern_in_warm_light", + "evidenceScope": "current_recipe", + "templateLockHash": "tpl_c72697e6" + }, + { + "id": "the_glasshouse_seed_tray", + "evidenceScope": "current_recipe", + "templateLockHash": "tpl_9fd062df" + }, + { + "id": "quiet_kiln_at_daybreak", + "evidenceScope": "current_recipe", + "templateLockHash": "tpl_c722e490" + }, + { + "id": "restoring_the_studio_backdrop", + "evidenceScope": "current_recipe", + "templateLockHash": "tpl_cab1d671" + }, + { + "id": "janus_reykjavik_travel_note", + "evidenceScope": "current_recipe", + "templateLockHash": "tpl_ffabdfb5" + }, + { + "id": "janus_red_triangle_caption", + "evidenceScope": "current_recipe", + "templateLockHash": "tpl_a56db7ab" + }, + { + "id": "janus_red_enamel_teapot", + "evidenceScope": "current_recipe", + "templateLockHash": "tpl_ac9c0bc5" + }, + { + "id": "lumina_opal_pendant_in_limestone", + "evidenceScope": "current_recipe", + "templateLockHash": "tpl_f24a6ace" } ], "excludedTemplates": [ @@ -542,5 +647,5 @@ "countedAsComplete": false } ], - "profileHash": "sha256:canonical-json:75789d86419c6dfc94e0802a3e06c8a4ba238c57cb8aebd794bb88196d5993b7" + "profileHash": "sha256:canonical-json:298993cbcd745bae76a26da29985d312702836108014a3fe3bb07d5ae57ac716" } diff --git a/config/retained-gallery-approved-batch.v1.json b/config/retained-gallery-approved-batch.v1.json new file mode 100644 index 00000000..e0de0219 --- /dev/null +++ b/config/retained-gallery-approved-batch.v1.json @@ -0,0 +1,254 @@ +{ + "alpine_lake_in_oils": { + "associationSha256": "4dfdff4d86ccabd8a28819e0fc479f77f70106866dcb37ab3efc1541fa58b9a3", + "backendSourceFingerprint": "sha256:backend-source-v1:3227569ff822090d00a80a3a88213d76d5ca43092d2918cec2494962457865a5", + "backendContractFingerprint": "sha256:backend-contract-v1:bd364fcd29020d51bb61f5f9bf320cf0bf562e718c645c21ffac8ed5a47b740d", + "templateRevisionHash": "81ebe61010abc66045694e149989c24310c3a181d46fab2b644ac0a0bafffcae", + "capturedAt": "2026-11-23T18:29:34.403Z", + "outputExtension": "webp", + "outputSize": { + "width": 1024, + "height": 1024 + }, + "inputSize": { + "width": 1024, + "height": 1024 + } + }, + "bookshop_at_blue_hour": { + "associationSha256": "e88d530a22af0c530efeea91227f5287740e579eeab88ab18d11d20979bef7cb", + "backendSourceFingerprint": "sha256:backend-source-v1:371fd754663a95b1b06900df9a838042048466464b4bd5cfa7033c1b6eebe0e3", + "backendContractFingerprint": "sha256:backend-contract-v1:300f2fb801e65ef8a0355d217f3f89e59d11e38f976af5a86ba41212d30216fd", + "templateRevisionHash": "160e77d5c28132522b0cbf5f3102b812a4e8be9eff09f321db0c5853905cab5e", + "capturedAt": "2026-11-23T14:48:46.445Z", + "outputExtension": "webp", + "outputSize": { + "width": 1024, + "height": 1024 + } + }, + "flowers_after_rain": { + "associationSha256": "d2f4ba4bf64e895aceca11c7fd3b3d6e1b77592a6bbc50b100073430c0899636", + "backendSourceFingerprint": "sha256:backend-source-v1:43f2ed10792fc6167b963166287cf7d5a0429afa26029e6455b0418e2123be86", + "backendContractFingerprint": "sha256:backend-contract-v1:300f2fb801e65ef8a0355d217f3f89e59d11e38f976af5a86ba41212d30216fd", + "templateRevisionHash": "a113786c4f56e30b9f8c024d9e71abd7e84419b59bafe097bee8cd40b7074687", + "capturedAt": "2026-11-23T23:44:54.021Z", + "outputExtension": "webp", + "outputSize": { + "width": 1024, + "height": 1024 + } + }, + "forest_ferns": { + "associationSha256": "f758997480cb0406135ec2829cdfbaec4eb75e3837b08133994a7d6369dcde25", + "backendSourceFingerprint": "sha256:backend-source-v1:43f2ed10792fc6167b963166287cf7d5a0429afa26029e6455b0418e2123be86", + "backendContractFingerprint": "sha256:backend-contract-v1:300f2fb801e65ef8a0355d217f3f89e59d11e38f976af5a86ba41212d30216fd", + "templateRevisionHash": "6a6e34ea5e9b0dec925e0ce13a0422fc00c65754f867c44e3105bfdb9d03c305", + "capturedAt": "2026-11-24T02:51:19.434Z", + "outputExtension": "webp", + "outputSize": { + "width": 1024, + "height": 1024 + } + }, + "ochre_paper_pavilion": { + "associationSha256": "70897e1af886e489a67c209bfd3caa382077fa2a09b71e8ae33b3e5f6555a251", + "backendSourceFingerprint": "sha256:backend-source-v1:272116bf77447dfb20b0899666ae417b68401993dd97ca438db63d91ff79cab6", + "backendContractFingerprint": "sha256:backend-contract-v1:300f2fb801e65ef8a0355d217f3f89e59d11e38f976af5a86ba41212d30216fd", + "templateRevisionHash": "b5e4c8446f01030c05a206290d9ed0c1e5035cd3110f0fb6a9e6e3c416ad5177", + "capturedAt": "2026-11-24T05:30:35.733Z", + "outputExtension": "webp", + "outputSize": { + "width": 1024, + "height": 1024 + } + }, + "quiet_current": { + "associationSha256": "f1d031268c22b8679f42bdb78c36d977d41aef77222ba8066fb835ae62156820", + "backendSourceFingerprint": "sha256:backend-source-v1:e3aea8f8d102572ad10fdd0700f0c42d92061e864ede89777efcd6a3269770a8", + "backendContractFingerprint": "sha256:backend-contract-v1:300f2fb801e65ef8a0355d217f3f89e59d11e38f976af5a86ba41212d30216fd", + "templateRevisionHash": "c3c7aada8d0fc7bec8c4067c9c88fbb03d5210ee9f6412d1d5984b21879ab886", + "capturedAt": "2026-11-23T17:21:03.387Z", + "outputExtension": "webp", + "outputSize": { + "width": 1024, + "height": 1024 + } + }, + "persimmon_glaze": { + "associationSha256": "1cb82a65c9b5c86bd33286a1db09f9159a1bd5def106f5e34d7506e8ef0623c1", + "backendSourceFingerprint": "sha256:backend-source-v1:057b165c6ef6225461649a47077562dffad098a2d37d639a13bf0e73088d79ab", + "backendContractFingerprint": "sha256:backend-contract-v1:300f2fb801e65ef8a0355d217f3f89e59d11e38f976af5a86ba41212d30216fd", + "templateRevisionHash": "ddf39e419212cba10df50f7b27b3fae22d57a0cbfc574164bcad08975fa2545b", + "capturedAt": "2026-11-23T14:38:24.904Z", + "outputExtension": "webp", + "outputSize": { + "width": 1024, + "height": 1024 + } + }, + "porcelain_on_slate_linen": { + "associationSha256": "5f59b268e66ffa4b5a58ea622198b047b418baee667f0fd0d2f18a44ea480617", + "backendSourceFingerprint": "sha256:backend-source-v1:fe1a57b8e352eb66a1a26ebbff5865aaafcf5d55326c4bbcbaf2132ec75f54a8", + "backendContractFingerprint": "sha256:backend-contract-v1:5429892d782af9dbc60b8c6b2762de25748a8da025a4965bb7d6e641908e47ba", + "templateRevisionHash": "fe33d74a4694ab6b3d34f483d56575c0c66a5948d424a62c04538c0dd608253a", + "capturedAt": "2026-11-23T15:33:09.403Z", + "outputExtension": "webp", + "outputSize": { + "width": 512, + "height": 512 + } + }, + "salt_marsh_from_above": { + "associationSha256": "7fc63473243ca1e274daa65c995ad7ba3e06a4fa6da039e863cb2a55622dad76", + "backendSourceFingerprint": "sha256:backend-source-v1:7c2e1b7de13f4da1e785e92f41a91f96b0029f79607915780ddb97aaff6a8d29", + "backendContractFingerprint": "sha256:backend-contract-v1:300f2fb801e65ef8a0355d217f3f89e59d11e38f976af5a86ba41212d30216fd", + "templateRevisionHash": "b09d5bf8c1d2efa3ae62881840125aa474500d658ba7538031dedeaeb79d52d4", + "capturedAt": "2026-11-24T01:53:00.229Z", + "outputExtension": "webp", + "outputSize": { + "width": 1536, + "height": 768 + } + }, + "cobalt_jug_and_lemons": { + "associationSha256": "fc35297a4538927d230457cee80cdca1a242a0a1ba16597a9059cb261ffa1e8c", + "backendSourceFingerprint": "sha256:backend-source-v1:98ee8d4a895829905e82d8fefeea42b93e55c96252a5456561eada6ffef3c764", + "backendContractFingerprint": "sha256:backend-contract-v1:5429892d782af9dbc60b8c6b2762de25748a8da025a4965bb7d6e641908e47ba", + "templateRevisionHash": "1c4b2351129fdb61f6ea79abfb8c699ff4db82db0c97e1dc92e9eeeb36a34d12", + "capturedAt": "2026-11-21T03:31:28.279Z", + "outputExtension": "webp", + "outputSize": { + "width": 512, + "height": 512 + } + }, + "copper_hour_dunes": { + "associationSha256": "b898daa53f760bf19a4984e30bc9432bdb3bafa2212f7985a0bc3c0f745baf43", + "backendSourceFingerprint": "sha256:backend-source-v1:95899090708469a60e137d3b59a1a8c2c02cc673a1af5f82720f6b5f7393c258", + "backendContractFingerprint": "sha256:backend-contract-v1:300f2fb801e65ef8a0355d217f3f89e59d11e38f976af5a86ba41212d30216fd", + "templateRevisionHash": "4a188876a65d35df1c87da93c5fcae162f3bc8b20934a61fe70e4580b5090249", + "capturedAt": "2026-11-21T08:05:20.189Z", + "outputExtension": "webp", + "outputSize": { + "width": 512, + "height": 512 + } + }, + "glasshouse_rain": { + "associationSha256": "a212c9c1442e1eebe801da3bc87f96423038874723f9289207b02c5a06166023", + "backendSourceFingerprint": "sha256:backend-source-v1:95899090708469a60e137d3b59a1a8c2c02cc673a1af5f82720f6b5f7393c258", + "backendContractFingerprint": "sha256:backend-contract-v1:300f2fb801e65ef8a0355d217f3f89e59d11e38f976af5a86ba41212d30216fd", + "templateRevisionHash": "4d32a1778d7cad756e05f14f09de559b9b065f3675b2aef6a289c5299cbd2c24", + "capturedAt": "2026-11-21T08:21:05.869Z", + "outputExtension": "webp", + "outputSize": { + "width": 1024, + "height": 1024 + } + }, + "pomegranate_on_blue_linen": { + "associationSha256": "912ddb48782b903de10ce1f23f400537bb9f8944354d48bf0ea7203bad10e071", + "backendSourceFingerprint": "sha256:backend-source-v1:1f2f7e00ce4a500ba52d5b729f43d4321af6f931125a3f266f307cf80038c12e", + "backendContractFingerprint": "sha256:backend-contract-v1:5429892d782af9dbc60b8c6b2762de25748a8da025a4965bb7d6e641908e47ba", + "templateRevisionHash": "6642ac1831a788b83981383c33b7ce019692d58fd2b23f3bff9d95e3a59ec27b", + "capturedAt": "2026-11-23T14:15:52.979Z", + "outputExtension": "webp", + "outputSize": { + "width": 512, + "height": 512 + } + }, + "canal_lantern_in_warm_light": { + "associationSha256": "3666d6af914c5fcae59b30951005de8ceaa06b1bb0a103bce5bfe817827c18a3", + "backendSourceFingerprint": "sha256:backend-source-v1:057b165c6ef6225461649a47077562dffad098a2d37d639a13bf0e73088d79ab", + "backendContractFingerprint": "sha256:backend-contract-v1:300f2fb801e65ef8a0355d217f3f89e59d11e38f976af5a86ba41212d30216fd", + "templateRevisionHash": "0724f395ee3219d2cf878ea1ef914692d9808e83236c4d972322e062dd15b380", + "capturedAt": "2026-11-23T14:19:48.529Z", + "outputExtension": "webp", + "outputSize": { + "width": 1024, + "height": 1024 + } + }, + "the_glasshouse_seed_tray": { + "associationSha256": "e08a25a88a52011adcb645ed75fe1904eec042529005c19e11552d90210f3f03", + "backendSourceFingerprint": "sha256:backend-source-v1:057b165c6ef6225461649a47077562dffad098a2d37d639a13bf0e73088d79ab", + "backendContractFingerprint": "sha256:backend-contract-v1:300f2fb801e65ef8a0355d217f3f89e59d11e38f976af5a86ba41212d30216fd", + "templateRevisionHash": "f30bccf14d658fa6222cec9c7458ec74fec76940dc1dac07ed87e19d93b3738c", + "capturedAt": "2026-11-23T14:16:46.399Z", + "outputExtension": "webp", + "outputSize": { + "width": 1024, + "height": 1024 + } + }, + "quiet_kiln_at_daybreak": { + "associationSha256": "8c535a4a82a668b1aa7063e6c9c201fc7824f2c54493d8d7572749f13fbb8473", + "backendSourceFingerprint": "sha256:backend-source-v1:258d554494a8e31795e6c04f21e6ab998a6225773194b12546c45d68b690887e", + "backendContractFingerprint": "sha256:backend-contract-v1:300f2fb801e65ef8a0355d217f3f89e59d11e38f976af5a86ba41212d30216fd", + "templateRevisionHash": "82918f24aaddf420da3c1213ac69779af2bf962cd2af50b33814f1eefdf14a3b", + "capturedAt": "2026-11-24T02:35:25.266Z", + "outputExtension": "webp", + "outputSize": { + "width": 1024, + "height": 1024 + } + }, + "restoring_the_studio_backdrop": { + "associationSha256": "17ee149d9d1ca9d8b1f747f62f15e8672a2353555847e043ef60eb766e9befa7", + "backendSourceFingerprint": "sha256:backend-source-v1:1f2f7e00ce4a500ba52d5b729f43d4321af6f931125a3f266f307cf80038c12e", + "backendContractFingerprint": "sha256:backend-contract-v1:61201b43ea68d3fd347fbc374e292b5839be28f908b473bcb69f5ec1f8b87736", + "templateRevisionHash": "26d6762e118bc9217762cc4abeec7817586ee58fb80ef09bc3c98e32a2789472", + "capturedAt": "2026-11-23T14:17:31.827Z", + "outputExtension": "webp", + "outputSize": { + "width": 512, + "height": 512 + }, + "inputSize": { + "width": 512, + "height": 512 + } + }, + "janus_reykjavik_travel_note": { + "associationSha256": "5fd534ee6e424f62376c87fe518cadea0e77d7aa5bd621fcdbe731eebda2c346", + "backendSourceFingerprint": "sha256:backend-source-v1:b82eb33180a6e16431bc47381c6012c002e18b3a41b45635bef663c50f735ec3", + "backendContractFingerprint": "sha256:backend-contract-v1:bc2a2aeb1bb1fa7a545e1a1f139cc5651e1326b320efefc80afcb0e2a476433a", + "templateRevisionHash": "cd73585863835d186d076de2bc4f37c36c11138376bdd2939af45290ff2c37af", + "capturedAt": "2026-11-23T17:39:26.972Z", + "outputExtension": "json" + }, + "janus_red_triangle_caption": { + "associationSha256": "1119235403f7eaccc327a270c34129be0d0164ccab0003f0aa299b8fde73f932", + "backendSourceFingerprint": "sha256:backend-source-v1:fe1a57b8e352eb66a1a26ebbff5865aaafcf5d55326c4bbcbaf2132ec75f54a8", + "backendContractFingerprint": "sha256:backend-contract-v1:d9a9f3b4b638533dd92574871ffd7944f91a74b3004a161c77b2451fd99b1a36", + "templateRevisionHash": "44e68d77baa00812c4b9888835013887d523bfe990c11caec96ac426c8ca87b3", + "capturedAt": "2026-11-23T15:41:11.401Z", + "outputExtension": "json" + }, + "janus_red_enamel_teapot": { + "associationSha256": "9a4b508c50d4b701161e242d688e2bde97bf20ead144ab29e81134a2928a4bbf", + "backendSourceFingerprint": "sha256:backend-source-v1:693cbe0ad6ddc5d1796f10269726b6d92a067c5ed14ea4458614797eb25c9a7c", + "backendContractFingerprint": "sha256:backend-contract-v1:eea189de4cdfe09f5055e14ff414c28400c1abd2f1f6c7d8094855c12adeefde", + "templateRevisionHash": "335f3fbf1907201be05d98148bff1fb7dc68d540750b71f33812769ddfa55879", + "capturedAt": "2026-11-23T15:46:06.879Z", + "outputExtension": "webp", + "outputSize": { + "width": 384, + "height": 384 + } + }, + "lumina_opal_pendant_in_limestone": { + "associationSha256": "2b785b4b786b96de5ca6c7649147f4f71f24fa56e2f3e2e4f7187b39df84a78a", + "backendSourceFingerprint": "sha256:backend-source-v1:4e964e7de84962b7d4f70d35de6904394561f9a9314ea2bd7e435a03a55af5b6", + "backendContractFingerprint": "sha256:backend-contract-v1:5429892d782af9dbc60b8c6b2762de25748a8da025a4965bb7d6e641908e47ba", + "templateRevisionHash": "4545f92379bc42dd213572033b19a7d37bfd24a3cf8c5eb90fb510c2e2c4c1e7", + "capturedAt": "2026-11-24T16:28:31.695Z", + "outputExtension": "webp", + "outputSize": { + "width": 1024, + "height": 1024 + } + } +} diff --git a/config/template-asset-rights.v1.json b/config/template-asset-rights.v1.json index ebf7aa27..80cebb5c 100644 --- a/config/template-asset-rights.v1.json +++ b/config/template-asset-rights.v1.json @@ -1,6 +1,6 @@ { "schemaVersion": 1, - "assetSetId": "sha256:canonical-json:4434e38c233eb32820d8903661684c0d91b77edf6fae07035a8ea7edd8760651", + "assetSetId": "sha256:canonical-json:caa900140d82653b84f9c71dda792dda20616498078938bc687b8dfc977b9f72", "records": [ { "path": "template-gallery/ace_step_audio_continuation.wav", @@ -366,6 +366,87 @@ "reviewClass": "per-file-human-approved-accepted-registration", "provenanceTemplateId": "ace_step_text_to_audio" }, + { + "path": "template-gallery/alpine_lake_in_oils.webp", + "sha256": "sha256:bytes:734b381cd8bb514a1a3aa4e057aa5675e3cd437381d7e081b7577267fb0222bf", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Exact approved file captured from a saved MoDiff workflow", + "sourceUrl": "https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14", + "sourceRevision": "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14", + "sourceLicense": "Maintainer-authorized file with publisher terms retained", + "modelTerms": [ + "creativeml-openrail-m. https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14" + ], + "aiGenerated": true, + "humanLikenessConsent": "synthetic", + "marks": [], + "requiredAttribution": [ + "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14 https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", + "provenanceTemplateId": "alpine_lake_in_oils" + }, + { + "path": "template-gallery/bookshop_at_blue_hour.webp", + "sha256": "sha256:bytes:ff045be510a0e88cbab69bbe8c3794dd26bd19036bdec26a63a5b6ea5a11bc66", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Exact approved file captured from a saved MoDiff workflow", + "sourceUrl": "https://huggingface.co/baidu/ERNIE-Image-Turbo/tree/bc68c81e2a1730a394d5fc9fae70713dee940140", + "sourceRevision": "baidu/ERNIE-Image-Turbo@bc68c81e2a1730a394d5fc9fae70713dee940140", + "sourceLicense": "Maintainer-authorized file with publisher terms retained", + "modelTerms": [ + "apache-2.0. https://huggingface.co/baidu/ERNIE-Image-Turbo/tree/bc68c81e2a1730a394d5fc9fae70713dee940140" + ], + "aiGenerated": true, + "humanLikenessConsent": "synthetic", + "marks": [], + "requiredAttribution": [ + "baidu/ERNIE-Image-Turbo@bc68c81e2a1730a394d5fc9fae70713dee940140 https://huggingface.co/baidu/ERNIE-Image-Turbo/tree/bc68c81e2a1730a394d5fc9fae70713dee940140" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", + "provenanceTemplateId": "bookshop_at_blue_hour" + }, + { + "path": "template-gallery/canal_lantern_in_warm_light.webp", + "sha256": "sha256:bytes:245deed3f2a8ac213c630ac7a8517c625c1eaa60971778d816a55220310ed8c3", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Exact approved file captured from a saved MoDiff workflow", + "sourceUrl": "https://huggingface.co/Efficient-Large-Model/Sana_Sprint_0.6B_1024px_diffusers/tree/aa76e7f4f4928f378716b6716a2130fba3caf5b1", + "sourceRevision": "Efficient-Large-Model/Sana_Sprint_0.6B_1024px_diffusers@aa76e7f4f4928f378716b6716a2130fba3caf5b1", + "sourceLicense": "Maintainer-authorized file with publisher terms retained", + "modelTerms": [ + "apache-2.0. https://huggingface.co/Efficient-Large-Model/Sana_Sprint_0.6B_1024px_diffusers/tree/aa76e7f4f4928f378716b6716a2130fba3caf5b1" + ], + "aiGenerated": true, + "humanLikenessConsent": "synthetic", + "marks": [], + "requiredAttribution": [ + "Efficient-Large-Model/Sana_Sprint_0.6B_1024px_diffusers@aa76e7f4f4928f378716b6716a2130fba3caf5b1 https://huggingface.co/Efficient-Large-Model/Sana_Sprint_0.6B_1024px_diffusers/tree/aa76e7f4f4928f378716b6716a2130fba3caf5b1" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", + "provenanceTemplateId": "canal_lantern_in_warm_light" + }, { "path": "template-gallery/character_edit.webp", "sha256": "sha256:bytes:c7da13667186b8303eab34103e3e2394e590166cc14a0f5c2c769af8942f035d", @@ -393,6 +474,60 @@ "acceptedOutputSHA256": "c7da13667186b8303eab34103e3e2394e590166cc14a0f5c2c769af8942f035d", "humanApprovalPacketSHA256": "95893cb17e10b15ae6b23d8b31b57b0e14b9af96f822d75edbc6b68971afb11d" }, + { + "path": "template-gallery/cobalt_jug_and_lemons.webp", + "sha256": "sha256:bytes:a8f9d05f34a6bbf631bccbb3eadf1d18824a772f5f1e038248db7bfdc8c0dbba", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Exact approved file captured from a saved MoDiff workflow", + "sourceUrl": "https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14", + "sourceRevision": "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14", + "sourceLicense": "Maintainer-authorized file with publisher terms retained", + "modelTerms": [ + "creativeml-openrail-m. https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14" + ], + "aiGenerated": true, + "humanLikenessConsent": "synthetic", + "marks": [], + "requiredAttribution": [ + "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14 https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", + "provenanceTemplateId": "cobalt_jug_and_lemons" + }, + { + "path": "template-gallery/copper_hour_dunes.webp", + "sha256": "sha256:bytes:45eabeca35fe5982441c80158faa69bca6da1d7f2efb3002a81a8b5c03ae4ef2", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Exact approved file captured from a saved MoDiff workflow", + "sourceUrl": "https://huggingface.co/Photoroom/prx-512-t2i-sft/tree/2996423bc26e8eaca48774fac1797484214dfea0", + "sourceRevision": "Photoroom/prx-512-t2i-sft@2996423bc26e8eaca48774fac1797484214dfea0", + "sourceLicense": "Maintainer-authorized file with publisher terms retained", + "modelTerms": [ + "apache-2.0. https://huggingface.co/Photoroom/prx-512-t2i-sft/tree/2996423bc26e8eaca48774fac1797484214dfea0" + ], + "aiGenerated": true, + "humanLikenessConsent": "synthetic", + "marks": [], + "requiredAttribution": [ + "Photoroom/prx-512-t2i-sft@2996423bc26e8eaca48774fac1797484214dfea0 https://huggingface.co/Photoroom/prx-512-t2i-sft/tree/2996423bc26e8eaca48774fac1797484214dfea0" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", + "provenanceTemplateId": "copper_hour_dunes" + }, { "path": "template-gallery/fast_lora.card-poster.webp", "sha256": "sha256:bytes:071786ad9b3120c3d5981e70c4617cbc9c1ab946bd6aafc7a0e055df02fc27ae", @@ -442,6 +577,33 @@ "humanApprovalPacketSHA256": "9b728a5f8535fc1ba3c03d2e2759d7ac795a586fafab51beb1509379ed388934", "provenanceTemplateId": "fast_lora" }, + { + "path": "template-gallery/flowers_after_rain.webp", + "sha256": "sha256:bytes:ffebbed5e41a1aadbffe64573e522c4ef1b1131844503200f535d1198df1fe83", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Exact approved file captured from a saved MoDiff workflow", + "sourceUrl": "https://huggingface.co/ATH-MaaS/Ovis-Image-7B/tree/41be1c5821a92c970d63d7eb595a2fd3fe32b22e", + "sourceRevision": "ATH-MaaS/Ovis-Image-7B@41be1c5821a92c970d63d7eb595a2fd3fe32b22e", + "sourceLicense": "Maintainer-authorized file with publisher terms retained", + "modelTerms": [ + "apache-2.0. https://huggingface.co/ATH-MaaS/Ovis-Image-7B/tree/41be1c5821a92c970d63d7eb595a2fd3fe32b22e" + ], + "aiGenerated": true, + "humanLikenessConsent": "synthetic", + "marks": [], + "requiredAttribution": [ + "ATH-MaaS/Ovis-Image-7B@41be1c5821a92c970d63d7eb595a2fd3fe32b22e https://huggingface.co/ATH-MaaS/Ovis-Image-7B/tree/41be1c5821a92c970d63d7eb595a2fd3fe32b22e" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", + "provenanceTemplateId": "flowers_after_rain" + }, { "creatorOrRightsholder": "MoDiff project maintainers, with exact-file rights explicitly attested by the maintainer", "creationMethod": "AI-generated native FLUX.2 Klein image; the edit preserves the declared approved synthetic cube input", @@ -1478,6 +1640,58 @@ "humanApprovalPacketSHA256": "488dc05971842cc9ed2b31c5995de204015d8b6a975ebc917329dfe3eac71d2c", "provenanceTemplateId": "flux_schnell_text_to_image" }, + { + "path": "template-gallery/forest_ferns.webp", + "sha256": "sha256:bytes:714152e1bc5bbfba9201877fa572f7537204806c5b0ad24f71eda95b09f89f26", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Exact approved file captured from a saved MoDiff workflow", + "sourceUrl": "https://huggingface.co/zai-org/GLM-Image/tree/2c433cc0cbc293bde2ac8ca9624f279b5d23fcf4", + "sourceRevision": "zai-org/GLM-Image@2c433cc0cbc293bde2ac8ca9624f279b5d23fcf4", + "sourceLicense": "Maintainer-authorized file with publisher terms retained", + "modelTerms": ["mit. https://huggingface.co/zai-org/GLM-Image/tree/2c433cc0cbc293bde2ac8ca9624f279b5d23fcf4"], + "aiGenerated": true, + "humanLikenessConsent": "synthetic", + "marks": [], + "requiredAttribution": [ + "zai-org/GLM-Image@2c433cc0cbc293bde2ac8ca9624f279b5d23fcf4 https://huggingface.co/zai-org/GLM-Image/tree/2c433cc0cbc293bde2ac8ca9624f279b5d23fcf4" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", + "provenanceTemplateId": "forest_ferns" + }, + { + "path": "template-gallery/glasshouse_rain.webp", + "sha256": "sha256:bytes:56968828743bb61caae1be50d0fe07499cea57eade5d9e6586749cd9da99003b", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Exact approved file captured from a saved MoDiff workflow", + "sourceUrl": "https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b", + "sourceRevision": "stabilityai/stable-diffusion-xl-base-1.0@462165984030d82259a11f4367a4eed129e94a7b", + "sourceLicense": "Maintainer-authorized file with publisher terms retained", + "modelTerms": [ + "CreativeML Open RAIL++-M. https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b" + ], + "aiGenerated": true, + "humanLikenessConsent": "synthetic", + "marks": [], + "requiredAttribution": [ + "stabilityai/stable-diffusion-xl-base-1.0@462165984030d82259a11f4367a4eed129e94a7b https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", + "provenanceTemplateId": "glasshouse_rain" + }, { "creatorOrRightsholder": "MoDiff project maintainers, with exact-file rights explicitly attested by the maintainer", "creationMethod": "AI-generated prompt-only native Qwen-Image-2512 image", @@ -3328,6 +3542,33 @@ "publicationBasis": "Register the six approved assets now while Moonflower runs on Linux. Use Windows in parallel wherever possible, and keep the longer workflows separate for AMD cloud.", "provenanceTemplateId": "ace_step_audio_variation" }, + { + "path": "template-gallery/inputs/alpine_lake_in_oils.before.png", + "sha256": "sha256:bytes:88290a96bc8d52f11f2d1e3c0c0e04c2027661816e54b57d7d4739d731ca1e75", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Exact approved file captured from a saved MoDiff workflow", + "sourceUrl": "https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14", + "sourceRevision": "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14", + "sourceLicense": "Maintainer-authorized file with publisher terms retained", + "modelTerms": [ + "creativeml-openrail-m. https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14" + ], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14 https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", + "provenanceTemplateId": "alpine_lake_in_oils" + }, { "path": "template-gallery/inputs/character_edit.before.webp", "sha256": "sha256:bytes:b9909f4cbff8af6e97be6d1e4923c67687eee41dbd64b051a018866781da12ab", @@ -4375,6 +4616,56 @@ "provenanceTemplateId": "reference_fusion", "consumingTemplateIds": ["reference_fusion"] }, + { + "path": "template-gallery/inputs/restoring_the_studio_backdrop.before.png", + "sha256": "sha256:bytes:d143c4922ad498b9bd436d06df424bbff50baf023b93735b53ee401e19e4cbf1", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Exact approved file captured from a saved MoDiff workflow", + "sourceUrl": "https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14", + "sourceRevision": "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14", + "sourceLicense": "Maintainer-authorized file with publisher terms retained", + "modelTerms": ["CreativeML Open RAIL-M at the pinned Stable Diffusion v1.5 revision."], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14 https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", + "provenanceTemplateId": "restoring_the_studio_backdrop" + }, + { + "path": "template-gallery/inputs/restoring_the_studio_backdrop.mask.png", + "sha256": "sha256:bytes:71817f4823a73712c8e76e7d832ec382c29ec0a0bf5a472e09639448c082da01", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Exact approved file captured from a saved MoDiff workflow", + "sourceUrl": "https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14", + "sourceRevision": "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14", + "sourceLicense": "Maintainer-authorized file with publisher terms retained", + "modelTerms": ["CreativeML Open RAIL-M at the pinned Stable Diffusion v1.5 revision."], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14 https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", + "provenanceTemplateId": "restoring_the_studio_backdrop" + }, { "path": "template-gallery/inputs/sana_sprint_monochrome_tiger.before.webp", "sha256": "sha256:bytes:a99616590d7d8586a51a25bbe9e36b309f705bc80f2abaab04ac84f1e0d948e4", @@ -4527,6 +4818,81 @@ "provenanceTemplateId": "wan_vace_video_to_video", "consumingTemplateIds": ["wan_vace_video_to_video"] }, + { + "path": "template-gallery/janus_red_enamel_teapot.webp", + "sha256": "sha256:bytes:c2cc1b06535dae0816a255e5a08bb20372a4cbd2c4b895f51273140dba4615eb", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Exact approved file captured from a saved MoDiff workflow", + "sourceUrl": "https://huggingface.co/deepseek-community/Janus-Pro-1B/tree/1655280bb75959cc1cb85529a2a8b26e7016072e", + "sourceRevision": "deepseek-community/Janus-Pro-1B@1655280bb75959cc1cb85529a2a8b26e7016072e", + "sourceLicense": "Maintainer-authorized file with publisher terms retained", + "modelTerms": ["https://github.com/deepseek-ai/Janus/blob/main/LICENSE-MODEL"], + "aiGenerated": true, + "humanLikenessConsent": "synthetic", + "marks": [], + "requiredAttribution": [ + "deepseek-community/Janus-Pro-1B@1655280bb75959cc1cb85529a2a8b26e7016072e https://huggingface.co/deepseek-community/Janus-Pro-1B/tree/1655280bb75959cc1cb85529a2a8b26e7016072e" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", + "provenanceTemplateId": "janus_red_enamel_teapot" + }, + { + "path": "template-gallery/janus_red_triangle_caption.json", + "sha256": "sha256:bytes:1fec185a203f16541cf13a02afff3c4333b83ff6c593a88fc59fa108801e6d44", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Exact approved file captured from a saved MoDiff workflow", + "sourceUrl": "https://huggingface.co/deepseek-community/Janus-Pro-1B/tree/1655280bb75959cc1cb85529a2a8b26e7016072e", + "sourceRevision": "deepseek-community/Janus-Pro-1B@1655280bb75959cc1cb85529a2a8b26e7016072e", + "sourceLicense": "Maintainer-authorized file with publisher terms retained", + "modelTerms": ["https://github.com/deepseek-ai/Janus/blob/main/LICENSE-MODEL"], + "aiGenerated": true, + "humanLikenessConsent": "synthetic", + "marks": [], + "requiredAttribution": [ + "deepseek-community/Janus-Pro-1B@1655280bb75959cc1cb85529a2a8b26e7016072e https://huggingface.co/deepseek-community/Janus-Pro-1B/tree/1655280bb75959cc1cb85529a2a8b26e7016072e" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", + "provenanceTemplateId": "janus_red_triangle_caption" + }, + { + "path": "template-gallery/janus_reykjavik_travel_note.json", + "sha256": "sha256:bytes:c7fb7a09d2480a8cffde6212e6686a5be04ccb01ec7811c7109281634d7c4daa", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Exact approved file captured from a saved MoDiff workflow", + "sourceUrl": "https://huggingface.co/deepseek-community/Janus-Pro-1B/tree/1655280bb75959cc1cb85529a2a8b26e7016072e", + "sourceRevision": "deepseek-community/Janus-Pro-1B@1655280bb75959cc1cb85529a2a8b26e7016072e", + "sourceLicense": "Maintainer-authorized file with publisher terms retained", + "modelTerms": ["https://github.com/deepseek-ai/Janus/blob/main/LICENSE-MODEL"], + "aiGenerated": true, + "humanLikenessConsent": "synthetic", + "marks": [], + "requiredAttribution": [ + "deepseek-community/Janus-Pro-1B@1655280bb75959cc1cb85529a2a8b26e7016072e https://huggingface.co/deepseek-community/Janus-Pro-1B/tree/1655280bb75959cc1cb85529a2a8b26e7016072e" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", + "provenanceTemplateId": "janus_reykjavik_travel_note" + }, { "creatorOrRightsholder": "MoDiff project maintainers, subject to previously approved synthetic source rights and recorded model terms", "creationMethod": "Native local AI-generated output or exact deterministic layer-sheet derivative; original approved bytes retained", @@ -5335,13 +5701,40 @@ "publicationBasis": "Register the six approved assets now while Moonflower runs on Linux. Use Windows in parallel wherever possible, and keep the longer workflows separate for AMD cloud.", "provenanceTemplateId": "ltx_video_video_to_video" }, + { + "path": "template-gallery/lumina_opal_pendant_in_limestone.webp", + "sha256": "sha256:bytes:3ff57e957b7db5ad20c9c37789a0536437846cdc8eb4737482cb7f026f25fb8e", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Exact approved file captured from a saved MoDiff workflow", + "sourceUrl": "https://huggingface.co/Alpha-VLLM/Lumina-Next-SFT-diffusers/tree/0ee5ec90043acf5cb41fe96274af36eb7fad8d95", + "sourceRevision": "Alpha-VLLM/Lumina-Next-SFT-diffusers@0ee5ec90043acf5cb41fe96274af36eb7fad8d95", + "sourceLicense": "Maintainer-authorized file with publisher terms retained", + "modelTerms": [ + "https://huggingface.co/Alpha-VLLM/Lumina-Next-SFT-diffusers/blob/0ee5ec90043acf5cb41fe96274af36eb7fad8d95/README.md" + ], + "aiGenerated": true, + "humanLikenessConsent": "synthetic", + "marks": [], + "requiredAttribution": [ + "Alpha-VLLM/Lumina-Next-SFT-diffusers@0ee5ec90043acf5cb41fe96274af36eb7fad8d95 https://huggingface.co/Alpha-VLLM/Lumina-Next-SFT-diffusers/tree/0ee5ec90043acf5cb41fe96274af36eb7fad8d95" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", + "provenanceTemplateId": "lumina_opal_pendant_in_limestone" + }, { "path": "template-gallery/manifest.json", - "sha256": "sha256:bytes:a13452fd3e4a7e389f4bf5ef0e79fcd5e029bc12ce8fc329ba29319cd044ae30", + "sha256": "sha256:bytes:0237fc54abc42f620ffc5d6f0b39e6918f19250078c5abfa29f6aa151830927d", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", - "creationMethod": "Project-authored redacted retained Gallery review, provenance or registration metadata", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", "sourceUrl": null, "sourceRevision": null, "sourceLicense": "MoDiff-authored Gallery metadata", @@ -5352,10 +5745,10 @@ "requiredAttribution": [], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", - "reviewedAt": "2026-11-21", + "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "5a790d4a6c9f82b2e00140b8d1c62fc3721c0b66856e4e2e7f2440890772b0e0", - "publicationBasis": "Maintainer approved the exact Wav2Vec2 transcript, the disclosed limitations and the redacted review and technical records under Apache-2.0. The source WAV is private." + "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained." }, { "path": "template-gallery/marigold_depth_synthetic_ramp.webp", @@ -5411,48 +5804,210 @@ "provenanceTemplateId": "minimax_music3_chamber_pop" }, { - "creatorOrRightsholder": "MoDiff project maintainers, with exact-file rights explicitly attested by the maintainer", - "creationMethod": "AI-generated native Qwen Edit character sheet using the existing approved synthetic portrait", - "sourceUrl": "https://huggingface.co/Qwen/Qwen-Image-Edit/tree/ac7f9318f633fc4b5778c59367c8128225f1e3de", - "sourceRevision": "Qwen/Qwen-Image-Edit@ac7f9318f633fc4b5778c59367c8128225f1e3de", - "sourceLicense": "Original generated image; exact-file redistribution rights explicitly attested; see pinned model terms", + "path": "template-gallery/ochre_paper_pavilion.webp", + "sha256": "sha256:bytes:6fd64eda0cd96aca0f5c9d860fec6fed090426ff1c5cd5c9434a639755c06c1e", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Exact approved file captured from a saved MoDiff workflow", + "sourceUrl": "https://huggingface.co/zai-org/CogView3-Plus-3B/tree/5d70e40732ac0efac98524c51a7fa9c82707f1e5", + "sourceRevision": "zai-org/CogView3-Plus-3B@5d70e40732ac0efac98524c51a7fa9c82707f1e5", + "sourceLicense": "Maintainer-authorized file with publisher terms retained", "modelTerms": [ - "Qwen/Qwen-Image-Edit: Apache-2.0; https://huggingface.co/Qwen/Qwen-Image-Edit/tree/ac7f9318f633fc4b5778c59367c8128225f1e3de" + "apache-2.0. https://huggingface.co/zai-org/CogView3-Plus-3B/tree/5d70e40732ac0efac98524c51a7fa9c82707f1e5" ], "aiGenerated": true, "humanLikenessConsent": "synthetic", "marks": [], - "requiredAttribution": [], - "sourceRightsAttestation": "I hold the rights needed to publish this exact generated angle sheet and its redacted technical/review records under Apache-2.0 in the existing MoDiff Gallery Dataset. The input is the existing approved synthetic character image; no external image inputs or real-person likeness references were used. The pinned Qwen model terms are retained.", - "path": "template-gallery/qwen_character_angles.webp", - "sha256": "sha256:bytes:4a3a001c82fb171de587b505ad269b493eceefa2c243b9c1b4d1a7205777c354", - "publishDecision": "approved", - "holdReason": null, + "requiredAttribution": [ + "zai-org/CogView3-Plus-3B@5d70e40732ac0efac98524c51a7fa9c82707f1e5 https://huggingface.co/zai-org/CogView3-Plus-3B/tree/5d70e40732ac0efac98524c51a7fa9c82707f1e5" + ], "assetLicense": "Apache-2.0", - "reviewedBy": "SOURAV DAS", - "reviewedAt": "2026-11-10", - "reviewClass": "per-file-human-approved-qwen-angle-native-image-registration", - "humanApprovalPacketSHA256": "9ca0bb197dbad8a2a27b25cef64aff67875aa6ea6f69fcb3bff581aae35b43d5", - "provenanceTemplateId": "qwen_character_angles" + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", + "provenanceTemplateId": "ochre_paper_pavilion" }, { - "path": "template-gallery/qwen_control_image_layout.webp", - "sha256": "sha256:bytes:8aea21cd03849912745c7bbc1a2ceabad27cf3649947c6fb08fd86a7eec16c17", + "path": "template-gallery/persimmon_glaze.webp", + "sha256": "sha256:bytes:0a8f757232720068dbf3ad94fa81e525c7e9d7260853680328019c43ded30279", "publishDecision": "approved", "holdReason": null, - "creatorOrRightsholder": "MoDiff project maintainers", - "creationMethod": "Maintainer-accepted native MoDiff output or its deterministic Gallery preview", - "sourceUrl": "https://huggingface.co/InstantX/Qwen-Image-ControlNet-Union/tree/b13036f066d6dee7c20513e263d3d673055e9de8", - "sourceRevision": "InstantX/Qwen-Image-ControlNet-Union@b13036f066d6dee7c20513e263d3d673055e9de8 | Qwen/Qwen-Image-2512@25468b98e3276ca6700de15c6628e51b7de54a26", - "sourceLicense": "Original generation or recorded workflow input; see modelTerms", + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Exact approved file captured from a saved MoDiff workflow", + "sourceUrl": "https://huggingface.co/Efficient-Large-Model/Sana_600M_1024px_diffusers/tree/28f3af7689de15f3883d5863059a2fca0aa9b829", + "sourceRevision": "Efficient-Large-Model/Sana_600M_1024px_diffusers@28f3af7689de15f3883d5863059a2fca0aa9b829", + "sourceLicense": "Maintainer-authorized file with publisher terms retained", "modelTerms": [ - "InstantX/Qwen-Image-ControlNet-Union: Apache-2.0; https://huggingface.co/InstantX/Qwen-Image-ControlNet-Union/tree/b13036f066d6dee7c20513e263d3d673055e9de8", - "Qwen/Qwen-Image-2512: Apache-2.0; https://huggingface.co/Qwen/Qwen-Image-2512/tree/25468b98e3276ca6700de15c6628e51b7de54a26" + "apache-2.0. https://huggingface.co/Efficient-Large-Model/Sana_600M_1024px_diffusers/tree/28f3af7689de15f3883d5863059a2fca0aa9b829" ], "aiGenerated": true, "humanLikenessConsent": "synthetic", "marks": [], - "requiredAttribution": [], + "requiredAttribution": [ + "Efficient-Large-Model/Sana_600M_1024px_diffusers@28f3af7689de15f3883d5863059a2fca0aa9b829 https://huggingface.co/Efficient-Large-Model/Sana_600M_1024px_diffusers/tree/28f3af7689de15f3883d5863059a2fca0aa9b829" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", + "provenanceTemplateId": "persimmon_glaze" + }, + { + "path": "template-gallery/pomegranate_on_blue_linen.webp", + "sha256": "sha256:bytes:ec62b729d1e4b37f37bd7fd8838b831ab10bd82662adc3a359a371cc7e756861", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Exact approved file captured from a saved MoDiff workflow", + "sourceUrl": "https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14", + "sourceRevision": "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14", + "sourceLicense": "Maintainer-authorized file with publisher terms retained", + "modelTerms": [ + "creativeml-openrail-m. https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14" + ], + "aiGenerated": true, + "humanLikenessConsent": "synthetic", + "marks": [], + "requiredAttribution": [ + "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14 https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", + "provenanceTemplateId": "pomegranate_on_blue_linen" + }, + { + "path": "template-gallery/porcelain_on_slate_linen.webp", + "sha256": "sha256:bytes:78a0954f82ae30dcc721d9087a54f62063d8b9ded7204838864b1d981a1e763d", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Exact approved file captured from a saved MoDiff workflow", + "sourceUrl": "https://huggingface.co/SimianLuo/LCM_Dreamshaper_v7/tree/a85df6a8bd976cdd08b4fd8f3b73f229c9e54df5", + "sourceRevision": "SimianLuo/LCM_Dreamshaper_v7@a85df6a8bd976cdd08b4fd8f3b73f229c9e54df5", + "sourceLicense": "Maintainer-authorized file with publisher terms retained", + "modelTerms": [ + "mit. https://huggingface.co/SimianLuo/LCM_Dreamshaper_v7/tree/a85df6a8bd976cdd08b4fd8f3b73f229c9e54df5" + ], + "aiGenerated": true, + "humanLikenessConsent": "synthetic", + "marks": [], + "requiredAttribution": [ + "SimianLuo/LCM_Dreamshaper_v7@a85df6a8bd976cdd08b4fd8f3b73f229c9e54df5 https://huggingface.co/SimianLuo/LCM_Dreamshaper_v7/tree/a85df6a8bd976cdd08b4fd8f3b73f229c9e54df5" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", + "provenanceTemplateId": "porcelain_on_slate_linen" + }, + { + "path": "template-gallery/quiet_current.webp", + "sha256": "sha256:bytes:c4db3876adb54a5f2bb9449ab4865601a24c2b486440f5c04d939a42a7f299a4", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Exact approved file captured from a saved MoDiff workflow", + "sourceUrl": "https://huggingface.co/zai-org/CogView4-6B/tree/63a52b7f6dace7033380cd6da14d0915eab3e6b5", + "sourceRevision": "zai-org/CogView4-6B@63a52b7f6dace7033380cd6da14d0915eab3e6b5", + "sourceLicense": "Maintainer-authorized file with publisher terms retained", + "modelTerms": [ + "apache-2.0. https://huggingface.co/zai-org/CogView4-6B/tree/63a52b7f6dace7033380cd6da14d0915eab3e6b5" + ], + "aiGenerated": true, + "humanLikenessConsent": "synthetic", + "marks": [], + "requiredAttribution": [ + "zai-org/CogView4-6B@63a52b7f6dace7033380cd6da14d0915eab3e6b5 https://huggingface.co/zai-org/CogView4-6B/tree/63a52b7f6dace7033380cd6da14d0915eab3e6b5" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", + "provenanceTemplateId": "quiet_current" + }, + { + "path": "template-gallery/quiet_kiln_at_daybreak.webp", + "sha256": "sha256:bytes:3cbbe1b912086f3d97cbfd3e8ba4c077166d355b6ba0cf25a07441f2826aa6ab", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Exact approved file captured from a saved MoDiff workflow", + "sourceUrl": "https://huggingface.co/NucleusAI/Nucleus-Image/tree/5e963db4fd0a65c7e4faf53ca2d4eca567c4dcfa", + "sourceRevision": "NucleusAI/Nucleus-Image@5e963db4fd0a65c7e4faf53ca2d4eca567c4dcfa", + "sourceLicense": "Maintainer-authorized file with publisher terms retained", + "modelTerms": [ + "Apache-2.0 per the publisher at this revision. https://huggingface.co/NucleusAI/Nucleus-Image/tree/5e963db4fd0a65c7e4faf53ca2d4eca567c4dcfa" + ], + "aiGenerated": true, + "humanLikenessConsent": "synthetic", + "marks": [], + "requiredAttribution": [ + "NucleusAI/Nucleus-Image@5e963db4fd0a65c7e4faf53ca2d4eca567c4dcfa https://huggingface.co/NucleusAI/Nucleus-Image/tree/5e963db4fd0a65c7e4faf53ca2d4eca567c4dcfa" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", + "provenanceTemplateId": "quiet_kiln_at_daybreak" + }, + { + "creatorOrRightsholder": "MoDiff project maintainers, with exact-file rights explicitly attested by the maintainer", + "creationMethod": "AI-generated native Qwen Edit character sheet using the existing approved synthetic portrait", + "sourceUrl": "https://huggingface.co/Qwen/Qwen-Image-Edit/tree/ac7f9318f633fc4b5778c59367c8128225f1e3de", + "sourceRevision": "Qwen/Qwen-Image-Edit@ac7f9318f633fc4b5778c59367c8128225f1e3de", + "sourceLicense": "Original generated image; exact-file redistribution rights explicitly attested; see pinned model terms", + "modelTerms": [ + "Qwen/Qwen-Image-Edit: Apache-2.0; https://huggingface.co/Qwen/Qwen-Image-Edit/tree/ac7f9318f633fc4b5778c59367c8128225f1e3de" + ], + "aiGenerated": true, + "humanLikenessConsent": "synthetic", + "marks": [], + "requiredAttribution": [], + "sourceRightsAttestation": "I hold the rights needed to publish this exact generated angle sheet and its redacted technical/review records under Apache-2.0 in the existing MoDiff Gallery Dataset. The input is the existing approved synthetic character image; no external image inputs or real-person likeness references were used. The pinned Qwen model terms are retained.", + "path": "template-gallery/qwen_character_angles.webp", + "sha256": "sha256:bytes:4a3a001c82fb171de587b505ad269b493eceefa2c243b9c1b4d1a7205777c354", + "publishDecision": "approved", + "holdReason": null, + "assetLicense": "Apache-2.0", + "reviewedBy": "SOURAV DAS", + "reviewedAt": "2026-11-10", + "reviewClass": "per-file-human-approved-qwen-angle-native-image-registration", + "humanApprovalPacketSHA256": "9ca0bb197dbad8a2a27b25cef64aff67875aa6ea6f69fcb3bff581aae35b43d5", + "provenanceTemplateId": "qwen_character_angles" + }, + { + "path": "template-gallery/qwen_control_image_layout.webp", + "sha256": "sha256:bytes:8aea21cd03849912745c7bbc1a2ceabad27cf3649947c6fb08fd86a7eec16c17", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers", + "creationMethod": "Maintainer-accepted native MoDiff output or its deterministic Gallery preview", + "sourceUrl": "https://huggingface.co/InstantX/Qwen-Image-ControlNet-Union/tree/b13036f066d6dee7c20513e263d3d673055e9de8", + "sourceRevision": "InstantX/Qwen-Image-ControlNet-Union@b13036f066d6dee7c20513e263d3d673055e9de8 | Qwen/Qwen-Image-2512@25468b98e3276ca6700de15c6628e51b7de54a26", + "sourceLicense": "Original generation or recorded workflow input; see modelTerms", + "modelTerms": [ + "InstantX/Qwen-Image-ControlNet-Union: Apache-2.0; https://huggingface.co/InstantX/Qwen-Image-ControlNet-Union/tree/b13036f066d6dee7c20513e263d3d673055e9de8", + "Qwen/Qwen-Image-2512: Apache-2.0; https://huggingface.co/Qwen/Qwen-Image-2512/tree/25468b98e3276ca6700de15c6628e51b7de54a26" + ], + "aiGenerated": true, + "humanLikenessConsent": "synthetic", + "marks": [], + "requiredAttribution": [], "assetLicense": "Apache-2.0", "reviewedBy": "SOURAV DAS", "reviewedAt": "2026-11-10", @@ -6490,6 +7045,31 @@ "acceptedOutputSHA256": "fcce19c98e3931e5b15de0b7deee704fff89276b3dabbef53de49c73cf08c155", "humanApprovalPacketSHA256": "95893cb17e10b15ae6b23d8b31b57b0e14b9af96f822d75edbc6b68971afb11d" }, + { + "path": "template-gallery/restoring_the_studio_backdrop.webp", + "sha256": "sha256:bytes:c17be5dd41fc9ee16e58d287503e5daf9507ee1536f9ba9db63182af1e74f693", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Exact approved file captured from a saved MoDiff workflow", + "sourceUrl": "https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14", + "sourceRevision": "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14", + "sourceLicense": "Maintainer-authorized file with publisher terms retained", + "modelTerms": ["CreativeML Open RAIL-M at the pinned Stable Diffusion v1.5 revision."], + "aiGenerated": true, + "humanLikenessConsent": "synthetic", + "marks": [], + "requiredAttribution": [ + "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14 https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", + "provenanceTemplateId": "restoring_the_studio_backdrop" + }, { "path": "template-gallery/reviews/ace_step_audio_continuation.quality-review.json", "sha256": "sha256:bytes:71d0e561ba26674f54c4ee09894578414a39ab55596afa74b847c915bbb09cfb", @@ -6711,698 +7291,796 @@ "provenanceTemplateId": "ace_step_text_to_audio" }, { - "path": "template-gallery/reviews/character_edit.quality-review.json", - "sha256": "sha256:bytes:89cca4e7b8e466c614d973925b4775e18cec8c39e14e639a9d48b89918e7ae7f", + "path": "template-gallery/reviews/alpine_lake_in_oils.original-provenance.json", + "sha256": "sha256:bytes:9c9ff8e4bae92b7e4564fdc203a36a2cb625489c7b0ca9474ce9979f7bd2d519", "publishDecision": "approved", "holdReason": null, - "creatorOrRightsholder": "MoDiff project maintainers", - "creationMethod": "Project-authored Gallery manifest, native provenance or accepted quality review", - "sourceUrl": null, - "sourceRevision": null, - "sourceLicense": "Apache-2.0 project-authored metadata", - "modelTerms": [], + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14", + "sourceRevision": "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "creativeml-openrail-m. https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14" + ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], - "requiredAttribution": [], + "requiredAttribution": [ + "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14 https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14" + ], "assetLicense": "Apache-2.0", - "reviewedBy": "SOURAV DAS", - "reviewedAt": "2026-11-10", - "reviewClass": "per-file-maintainer-accepted-native-gallery-registration", - "provenanceTemplateId": "character_edit", - "humanApprovalPacketSHA256": "95893cb17e10b15ae6b23d8b31b57b0e14b9af96f822d75edbc6b68971afb11d" + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", + "provenanceTemplateId": "alpine_lake_in_oils" }, { - "path": "template-gallery/reviews/character_edit.reviewed-provenance.json", - "sha256": "sha256:bytes:fee8045c51a38c8c73f668af5e3f513d7f0cbbf6978122fe73d2487ab746e110", + "path": "template-gallery/reviews/alpine_lake_in_oils.original-review.json", + "sha256": "sha256:bytes:9535ffb383b57c57805ca9ad24a1df06ec87fe005d821448727de9c04709a2bd", "publishDecision": "approved", "holdReason": null, - "creatorOrRightsholder": "MoDiff project maintainers", - "creationMethod": "Project-authored Gallery manifest, native provenance or accepted quality review", - "sourceUrl": null, - "sourceRevision": null, - "sourceLicense": "Apache-2.0 project-authored metadata", - "modelTerms": [], + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14", + "sourceRevision": "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "creativeml-openrail-m. https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14" + ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], - "requiredAttribution": [], + "requiredAttribution": [ + "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14 https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14" + ], "assetLicense": "Apache-2.0", - "reviewedBy": "SOURAV DAS", - "reviewedAt": "2026-11-10", - "reviewClass": "per-file-maintainer-accepted-native-gallery-registration", - "provenanceTemplateId": "character_edit", - "humanApprovalPacketSHA256": "95893cb17e10b15ae6b23d8b31b57b0e14b9af96f822d75edbc6b68971afb11d" + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", + "provenanceTemplateId": "alpine_lake_in_oils" }, { - "path": "template-gallery/reviews/fast_lora.quality-review.json", - "sha256": "sha256:bytes:96079ed2226e86a0a0686283402a8c4f567809c73d67138afb4d58fc46936a15", + "path": "template-gallery/reviews/alpine_lake_in_oils.quality-review.json", + "sha256": "sha256:bytes:ca7c2fd6b10e3f100c7aff867aceb300f4fc93c5d4c3c93919fdf810fdf077b3", "publishDecision": "approved", "holdReason": null, - "creatorOrRightsholder": "MoDiff project maintainers", - "creationMethod": "MoDiff-authored technical provenance or quality metadata from the explicitly approved six-image source packet", - "sourceUrl": null, - "sourceRevision": null, - "sourceLicense": "Apache-2.0 project-authored metadata; generated-media terms remain in their exact per-file records", - "modelTerms": [], + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14", + "sourceRevision": "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "creativeml-openrail-m. https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14" + ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], - "requiredAttribution": [], + "requiredAttribution": [ + "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14 https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14" + ], "assetLicense": "Apache-2.0", - "reviewedBy": "SOURAV DAS", - "reviewedAt": "2026-11-09", - "reviewClass": "per-file-human-approved-six-z-registration", - "provenanceTemplateId": "fast_lora", - "humanApprovalPacketSHA256": "9b728a5f8535fc1ba3c03d2e2759d7ac795a586fafab51beb1509379ed388934" + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", + "provenanceTemplateId": "alpine_lake_in_oils" }, { - "path": "template-gallery/reviews/fast_lora.reviewed-provenance.json", - "sha256": "sha256:bytes:7a3e3ac94845ad37f5f374c1e808a5ff449b0e5776be72a1891bb2c106fdd722", + "path": "template-gallery/reviews/alpine_lake_in_oils.retained-template-provenance.json", + "sha256": "sha256:bytes:c268ddbea9ba90fcf556ac9afdcc6b290e103883c5c7e9b5b91a1312f0c4eacb", "publishDecision": "approved", "holdReason": null, - "creatorOrRightsholder": "MoDiff project maintainers", - "creationMethod": "MoDiff-authored technical provenance or quality metadata from the explicitly approved six-image source packet", - "sourceUrl": null, - "sourceRevision": null, - "sourceLicense": "Apache-2.0 project-authored metadata; generated-media terms remain in their exact per-file records", - "modelTerms": [], + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14", + "sourceRevision": "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "creativeml-openrail-m. https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14" + ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], - "requiredAttribution": [], + "requiredAttribution": [ + "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14 https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14" + ], "assetLicense": "Apache-2.0", - "reviewedBy": "SOURAV DAS", - "reviewedAt": "2026-11-09", - "reviewClass": "per-file-human-approved-six-z-registration", - "provenanceTemplateId": "fast_lora", - "humanApprovalPacketSHA256": "9b728a5f8535fc1ba3c03d2e2759d7ac795a586fafab51beb1509379ed388934" + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", + "provenanceTemplateId": "alpine_lake_in_oils" }, { - "path": "template-gallery/reviews/flux2_klein_edit.quality-review.json", - "sha256": "sha256:bytes:9fb22201199f326234b60ad2b1162dd14d3e94cf6e2bd4d00507c26d240aeebe", + "path": "template-gallery/reviews/bookshop_at_blue_hour.original-provenance.json", + "sha256": "sha256:bytes:3f3e4056350e5a1ee59d46aea727b87563ae6fc5fe11a491257e2af7d412f0bf", "publishDecision": "approved", "holdReason": null, - "creatorOrRightsholder": "MoDiff project maintainers", - "creationMethod": "MoDiff-authored technical provenance, Gallery manifest or quality review for the two explicitly approved native Windows FLUX.2 Klein images", - "sourceUrl": null, - "sourceRevision": null, - "sourceLicense": "Apache-2.0 project-authored metadata; generated-media terms remain in their exact per-file record", - "modelTerms": [], + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/baidu/ERNIE-Image-Turbo/tree/bc68c81e2a1730a394d5fc9fae70713dee940140", + "sourceRevision": "baidu/ERNIE-Image-Turbo@bc68c81e2a1730a394d5fc9fae70713dee940140", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "apache-2.0. https://huggingface.co/baidu/ERNIE-Image-Turbo/tree/bc68c81e2a1730a394d5fc9fae70713dee940140" + ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], - "requiredAttribution": [], + "requiredAttribution": [ + "baidu/ERNIE-Image-Turbo@bc68c81e2a1730a394d5fc9fae70713dee940140 https://huggingface.co/baidu/ERNIE-Image-Turbo/tree/bc68c81e2a1730a394d5fc9fae70713dee940140" + ], "assetLicense": "Apache-2.0", - "reviewedBy": "SOURAV DAS", - "reviewedAt": "2026-11-10", - "reviewClass": "per-file-human-approved-windows-klein-native-image-registration", - "provenanceTemplateId": "flux2_klein_edit", - "humanApprovalPacketSHA256": "2862dea890936a224953749fccb20cbba222471c43abad480dad091e8437f45a" + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", + "provenanceTemplateId": "bookshop_at_blue_hour" }, { - "path": "template-gallery/reviews/flux2_klein_edit.reviewed-provenance.json", - "sha256": "sha256:bytes:780517219787eafdce5362cfd9f8cab52f848397edde41b5b91ed9bb3c904462", + "path": "template-gallery/reviews/bookshop_at_blue_hour.original-review.json", + "sha256": "sha256:bytes:26882cd197ba823799f50be6ea1c01098038ad3cee926a71edf7aa47038d7226", "publishDecision": "approved", "holdReason": null, - "creatorOrRightsholder": "MoDiff project maintainers", - "creationMethod": "MoDiff-authored technical provenance, Gallery manifest or quality review for the two explicitly approved native Windows FLUX.2 Klein images", - "sourceUrl": null, - "sourceRevision": null, - "sourceLicense": "Apache-2.0 project-authored metadata; generated-media terms remain in their exact per-file record", - "modelTerms": [], + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/baidu/ERNIE-Image-Turbo/tree/bc68c81e2a1730a394d5fc9fae70713dee940140", + "sourceRevision": "baidu/ERNIE-Image-Turbo@bc68c81e2a1730a394d5fc9fae70713dee940140", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "apache-2.0. https://huggingface.co/baidu/ERNIE-Image-Turbo/tree/bc68c81e2a1730a394d5fc9fae70713dee940140" + ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], - "requiredAttribution": [], + "requiredAttribution": [ + "baidu/ERNIE-Image-Turbo@bc68c81e2a1730a394d5fc9fae70713dee940140 https://huggingface.co/baidu/ERNIE-Image-Turbo/tree/bc68c81e2a1730a394d5fc9fae70713dee940140" + ], "assetLicense": "Apache-2.0", - "reviewedBy": "SOURAV DAS", - "reviewedAt": "2026-11-10", - "reviewClass": "per-file-human-approved-windows-klein-native-image-registration", - "humanApprovalPacketSHA256": "2862dea890936a224953749fccb20cbba222471c43abad480dad091e8437f45a", - "humanApprovalScope": "The maintainer explicitly approved the proposed 4/5 scores, known limits, exact retained Klein two-reference derivative output, its redacted technical/quality metadata, and permission to make and redistribute this derivative under Apache-2.0. Existing source images and their mixed license records remain unchanged; no other assets or held cases are newly approved.", - "provenanceTemplateId": "flux2_klein_edit" + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", + "provenanceTemplateId": "bookshop_at_blue_hour" }, { - "path": "template-gallery/reviews/flux2_klein_multi_reference.quality-review.json", - "sha256": "sha256:bytes:7f6d97ce71b303302117236ae3c8f3cd047801026a8f808916c69c9008c6c5c5", + "path": "template-gallery/reviews/bookshop_at_blue_hour.quality-review.json", + "sha256": "sha256:bytes:345c8dfefaa685385a016fcf545a50bf4d7554b07cee8c04f76efa270d830e4d", "publishDecision": "approved", "holdReason": null, - "creatorOrRightsholder": "MoDiff project maintainers", - "creationMethod": "MoDiff-authored technical provenance or quality metadata from the explicitly approved retained Klein two-reference source packet", - "sourceUrl": null, - "sourceRevision": null, - "sourceLicense": "Apache-2.0 project-authored metadata; generated-media terms remain in their exact per-file records", - "modelTerms": [], + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/baidu/ERNIE-Image-Turbo/tree/bc68c81e2a1730a394d5fc9fae70713dee940140", + "sourceRevision": "baidu/ERNIE-Image-Turbo@bc68c81e2a1730a394d5fc9fae70713dee940140", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "apache-2.0. https://huggingface.co/baidu/ERNIE-Image-Turbo/tree/bc68c81e2a1730a394d5fc9fae70713dee940140" + ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], - "requiredAttribution": [], + "requiredAttribution": [ + "baidu/ERNIE-Image-Turbo@bc68c81e2a1730a394d5fc9fae70713dee940140 https://huggingface.co/baidu/ERNIE-Image-Turbo/tree/bc68c81e2a1730a394d5fc9fae70713dee940140" + ], "assetLicense": "Apache-2.0", - "reviewedBy": "SOURAV DAS", - "reviewedAt": "2026-11-09", - "reviewClass": "per-file-human-approved-klein-derivative-registration", - "provenanceTemplateId": "flux2_klein_multi_reference", - "humanApprovalPacketSHA256": "6110699f001f269b75ee943b96c82d2c0c37cb33ba4c10fdd1a9cd15d4d48042", - "humanApprovalScope": "The maintainer explicitly approved the proposed 4/5 scores, known limits, exact retained Klein two-reference derivative output, its redacted technical/quality metadata, and permission to make and redistribute this derivative under Apache-2.0. Existing source images and their mixed license records remain unchanged; no other assets or held cases are newly approved." + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", + "provenanceTemplateId": "bookshop_at_blue_hour" }, { - "path": "template-gallery/reviews/flux2_klein_multi_reference.reviewed-provenance.json", - "sha256": "sha256:bytes:dd9601157dcff562c822db19d08d7c7f7720a1e069945563609e87c7fc52cf77", + "path": "template-gallery/reviews/bookshop_at_blue_hour.retained-template-provenance.json", + "sha256": "sha256:bytes:47f8649c5c8bdf345ef71157478da39f55cccda4ef5e6a726bb4738c560de7d7", "publishDecision": "approved", "holdReason": null, - "creatorOrRightsholder": "MoDiff project maintainers", - "creationMethod": "MoDiff-authored technical provenance or quality metadata from the explicitly approved retained Klein two-reference source packet", - "sourceUrl": null, - "sourceRevision": null, - "sourceLicense": "Apache-2.0 project-authored metadata; generated-media terms remain in their exact per-file records", - "modelTerms": [], + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/baidu/ERNIE-Image-Turbo/tree/bc68c81e2a1730a394d5fc9fae70713dee940140", + "sourceRevision": "baidu/ERNIE-Image-Turbo@bc68c81e2a1730a394d5fc9fae70713dee940140", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "apache-2.0. https://huggingface.co/baidu/ERNIE-Image-Turbo/tree/bc68c81e2a1730a394d5fc9fae70713dee940140" + ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], - "requiredAttribution": [], + "requiredAttribution": [ + "baidu/ERNIE-Image-Turbo@bc68c81e2a1730a394d5fc9fae70713dee940140 https://huggingface.co/baidu/ERNIE-Image-Turbo/tree/bc68c81e2a1730a394d5fc9fae70713dee940140" + ], "assetLicense": "Apache-2.0", - "reviewedBy": "SOURAV DAS", - "reviewedAt": "2026-11-09", - "reviewClass": "per-file-human-approved-klein-derivative-registration", - "provenanceTemplateId": "flux2_klein_multi_reference", - "humanApprovalPacketSHA256": "6110699f001f269b75ee943b96c82d2c0c37cb33ba4c10fdd1a9cd15d4d48042", - "humanApprovalScope": "The maintainer explicitly approved the proposed 4/5 scores, known limits, exact retained Klein two-reference derivative output, its redacted technical/quality metadata, and permission to make and redistribute this derivative under Apache-2.0. Existing source images and their mixed license records remain unchanged; no other assets or held cases are newly approved." + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", + "provenanceTemplateId": "bookshop_at_blue_hour" }, { - "path": "template-gallery/reviews/flux2_klein_text_to_image.quality-review.json", - "sha256": "sha256:bytes:2a2f12b34c26df960805a7fcac925e8f36894326f271f20920f720e3b72499ac", + "path": "template-gallery/reviews/canal_lantern_in_warm_light.original-provenance.json", + "sha256": "sha256:bytes:3a802a1d1961ab209994af944eb3889cc6d675e3f9a409414c0504d344b38d7b", "publishDecision": "approved", "holdReason": null, - "creatorOrRightsholder": "MoDiff project maintainers", - "creationMethod": "MoDiff-authored technical provenance, Gallery manifest or quality review for the two explicitly approved native Windows FLUX.2 Klein images", - "sourceUrl": null, - "sourceRevision": null, - "sourceLicense": "Apache-2.0 project-authored metadata; generated-media terms remain in their exact per-file record", - "modelTerms": [], + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/Efficient-Large-Model/Sana_Sprint_0.6B_1024px_diffusers/tree/aa76e7f4f4928f378716b6716a2130fba3caf5b1", + "sourceRevision": "Efficient-Large-Model/Sana_Sprint_0.6B_1024px_diffusers@aa76e7f4f4928f378716b6716a2130fba3caf5b1", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "apache-2.0. https://huggingface.co/Efficient-Large-Model/Sana_Sprint_0.6B_1024px_diffusers/tree/aa76e7f4f4928f378716b6716a2130fba3caf5b1" + ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], - "requiredAttribution": [], + "requiredAttribution": [ + "Efficient-Large-Model/Sana_Sprint_0.6B_1024px_diffusers@aa76e7f4f4928f378716b6716a2130fba3caf5b1 https://huggingface.co/Efficient-Large-Model/Sana_Sprint_0.6B_1024px_diffusers/tree/aa76e7f4f4928f378716b6716a2130fba3caf5b1" + ], "assetLicense": "Apache-2.0", - "reviewedBy": "SOURAV DAS", - "reviewedAt": "2026-11-10", - "reviewClass": "per-file-human-approved-windows-klein-native-image-registration", - "provenanceTemplateId": "flux2_klein_text_to_image", - "humanApprovalPacketSHA256": "2862dea890936a224953749fccb20cbba222471c43abad480dad091e8437f45a" + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", + "provenanceTemplateId": "canal_lantern_in_warm_light" }, { - "path": "template-gallery/reviews/flux2_klein_text_to_image.reviewed-provenance.json", - "sha256": "sha256:bytes:e24076267505e368ca3f117c3147640dd731493d23ab2cdb32e9581c27b6c366", + "path": "template-gallery/reviews/canal_lantern_in_warm_light.original-review.json", + "sha256": "sha256:bytes:fdfac320256dd1dd7bcaa77ef449fe39a537e871db6ea579500579148bffea23", "publishDecision": "approved", "holdReason": null, - "creatorOrRightsholder": "MoDiff project maintainers", - "creationMethod": "MoDiff-authored technical provenance, Gallery manifest or quality review for the two explicitly approved native Windows FLUX.2 Klein images", - "sourceUrl": null, - "sourceRevision": null, - "sourceLicense": "Apache-2.0 project-authored metadata; generated-media terms remain in their exact per-file record", - "modelTerms": [], + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/Efficient-Large-Model/Sana_Sprint_0.6B_1024px_diffusers/tree/aa76e7f4f4928f378716b6716a2130fba3caf5b1", + "sourceRevision": "Efficient-Large-Model/Sana_Sprint_0.6B_1024px_diffusers@aa76e7f4f4928f378716b6716a2130fba3caf5b1", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "apache-2.0. https://huggingface.co/Efficient-Large-Model/Sana_Sprint_0.6B_1024px_diffusers/tree/aa76e7f4f4928f378716b6716a2130fba3caf5b1" + ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], - "requiredAttribution": [], + "requiredAttribution": [ + "Efficient-Large-Model/Sana_Sprint_0.6B_1024px_diffusers@aa76e7f4f4928f378716b6716a2130fba3caf5b1 https://huggingface.co/Efficient-Large-Model/Sana_Sprint_0.6B_1024px_diffusers/tree/aa76e7f4f4928f378716b6716a2130fba3caf5b1" + ], "assetLicense": "Apache-2.0", - "reviewedBy": "SOURAV DAS", - "reviewedAt": "2026-11-10", - "reviewClass": "per-file-human-approved-windows-klein-native-image-registration", - "provenanceTemplateId": "flux2_klein_text_to_image", - "humanApprovalPacketSHA256": "2862dea890936a224953749fccb20cbba222471c43abad480dad091e8437f45a" + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", + "provenanceTemplateId": "canal_lantern_in_warm_light" }, { - "path": "template-gallery/reviews/flux3_klein_base_fp8r512_lora_style.quality-review.json", - "sha256": "sha256:bytes:6ecaa3d253c60a36cfa0129575fda00de91b7259d6d5d7aaf7a1eafc1c1539fb", + "path": "template-gallery/reviews/canal_lantern_in_warm_light.quality-review.json", + "sha256": "sha256:bytes:721e6e325451df2320c2813bedce2b5c4b37d92d30ac974ca95b4f3edba6b316", "publishDecision": "approved", "holdReason": null, - "creatorOrRightsholder": "sourav-das / MoDiff project maintainers", - "creationMethod": "MoDiff-authored technical provenance or quality metadata derived from the explicitly approved source-media packet", - "sourceUrl": null, - "sourceRevision": null, - "sourceLicense": "Apache-2.0 project-authored metadata; image/model terms remain in their own per-file records", + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/Efficient-Large-Model/Sana_Sprint_0.6B_1024px_diffusers/tree/aa76e7f4f4928f378716b6716a2130fba3caf5b1", + "sourceRevision": "Efficient-Large-Model/Sana_Sprint_0.6B_1024px_diffusers@aa76e7f4f4928f378716b6716a2130fba3caf5b1", + "sourceLicense": "MoDiff-authored Gallery metadata", "modelTerms": [ - "AI-assisted technical quality assessment authored in Codex for this project; no model weights or additional generated media are included." + "apache-2.0. https://huggingface.co/Efficient-Large-Model/Sana_Sprint_0.6B_1024px_diffusers/tree/aa76e7f4f4928f378716b6716a2130fba3caf5b1" ], - "aiGenerated": true, + "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], - "requiredAttribution": [], + "requiredAttribution": [ + "Efficient-Large-Model/Sana_Sprint_0.6B_1024px_diffusers@aa76e7f4f4928f378716b6716a2130fba3caf5b1 https://huggingface.co/Efficient-Large-Model/Sana_Sprint_0.6B_1024px_diffusers/tree/aa76e7f4f4928f378716b6716a2130fba3caf5b1" + ], "assetLicense": "Apache-2.0", - "reviewedBy": "Codex (technical metadata); sourav-das (underlying exact-file rights and publication approval)", - "reviewedAt": "2026-10-31", - "reviewClass": "technical-derivation-of-human-approved-media", - "humanApprovalPacketSHA256": "a55745498d9c767d581d947b90b12ad4308e5f95b870224ef67107d5894f2499", - "humanApprovalScope": "Exact source images, authored mask and SHA-bound review packet. Numeric quality scores are the AI assessment, not human-supplied scores. The metadata is project-authored; it introduces no new third-party media rights." + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", + "provenanceTemplateId": "canal_lantern_in_warm_light" }, { - "path": "template-gallery/reviews/flux3_klein_base_fp8r512_lora_style.reviewed-provenance.json", - "sha256": "sha256:bytes:bf2a88219068ec3c78bf3ab9f847f2c80d7e78035d574dbccc8d48c9c979bdc6", + "path": "template-gallery/reviews/canal_lantern_in_warm_light.retained-template-provenance.json", + "sha256": "sha256:bytes:5027304dcbef05cecb1baff1771c2f7f96671fee8d3fac34f9fece5f730c3885", "publishDecision": "approved", "holdReason": null, - "creatorOrRightsholder": "sourav-das / MoDiff project maintainers", - "creationMethod": "MoDiff-authored technical provenance or quality metadata derived from the explicitly approved source-media packet", - "sourceUrl": null, - "sourceRevision": null, - "sourceLicense": "Apache-2.0 project-authored metadata; image/model terms remain in their own per-file records", - "modelTerms": [], + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/Efficient-Large-Model/Sana_Sprint_0.6B_1024px_diffusers/tree/aa76e7f4f4928f378716b6716a2130fba3caf5b1", + "sourceRevision": "Efficient-Large-Model/Sana_Sprint_0.6B_1024px_diffusers@aa76e7f4f4928f378716b6716a2130fba3caf5b1", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "apache-2.0. https://huggingface.co/Efficient-Large-Model/Sana_Sprint_0.6B_1024px_diffusers/tree/aa76e7f4f4928f378716b6716a2130fba3caf5b1" + ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], - "requiredAttribution": [], + "requiredAttribution": [ + "Efficient-Large-Model/Sana_Sprint_0.6B_1024px_diffusers@aa76e7f4f4928f378716b6716a2130fba3caf5b1 https://huggingface.co/Efficient-Large-Model/Sana_Sprint_0.6B_1024px_diffusers/tree/aa76e7f4f4928f378716b6716a2130fba3caf5b1" + ], "assetLicense": "Apache-2.0", - "reviewedBy": "Codex (technical metadata); sourav-das (underlying exact-file rights and publication approval)", - "reviewedAt": "2026-10-31", - "reviewClass": "technical-derivation-of-human-approved-media", - "humanApprovalPacketSHA256": "a55745498d9c767d581d947b90b12ad4308e5f95b870224ef67107d5894f2499", - "humanApprovalScope": "Exact source images, authored mask and SHA-bound review packet. Numeric quality scores are the AI assessment, not human-supplied scores. The metadata is project-authored; it introduces no new third-party media rights." + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", + "provenanceTemplateId": "canal_lantern_in_warm_light" }, { - "path": "template-gallery/reviews/flux3_klein_base_fp8r512_multi_reference_edit.quality-review.json", - "sha256": "sha256:bytes:0666e990cc08d4014f2f913674e9637a86e4f62fee681de1287c949a6a7dcb5a", + "path": "template-gallery/reviews/character_edit.quality-review.json", + "sha256": "sha256:bytes:89cca4e7b8e466c614d973925b4775e18cec8c39e14e639a9d48b89918e7ae7f", "publishDecision": "approved", "holdReason": null, - "creatorOrRightsholder": "sourav-das / MoDiff project maintainers", - "creationMethod": "MoDiff-authored technical provenance or quality metadata derived from the explicitly approved source-media packet", + "creatorOrRightsholder": "MoDiff project maintainers", + "creationMethod": "Project-authored Gallery manifest, native provenance or accepted quality review", "sourceUrl": null, "sourceRevision": null, - "sourceLicense": "Apache-2.0 project-authored metadata; image/model terms remain in their own per-file records", - "modelTerms": [ - "AI-assisted technical quality assessment authored in Codex for this project; no model weights or additional generated media are included." - ], - "aiGenerated": true, + "sourceLicense": "Apache-2.0 project-authored metadata", + "modelTerms": [], + "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [], "assetLicense": "Apache-2.0", - "reviewedBy": "Codex (technical metadata); sourav-das (underlying exact-file rights and publication approval)", - "reviewedAt": "2026-10-31", - "reviewClass": "technical-derivation-of-human-approved-media", - "humanApprovalPacketSHA256": "a55745498d9c767d581d947b90b12ad4308e5f95b870224ef67107d5894f2499", - "humanApprovalScope": "Exact source images, authored mask and SHA-bound review packet. Numeric quality scores are the AI assessment, not human-supplied scores. The metadata is project-authored; it introduces no new third-party media rights." + "reviewedBy": "SOURAV DAS", + "reviewedAt": "2026-11-10", + "reviewClass": "per-file-maintainer-accepted-native-gallery-registration", + "provenanceTemplateId": "character_edit", + "humanApprovalPacketSHA256": "95893cb17e10b15ae6b23d8b31b57b0e14b9af96f822d75edbc6b68971afb11d" }, { - "path": "template-gallery/reviews/flux3_klein_base_fp8r512_multi_reference_edit.reviewed-provenance.json", - "sha256": "sha256:bytes:df83c15df43ca7b2739db3032671014c3dea0cb0bd1cd4acb15df5dcccf443bd", + "path": "template-gallery/reviews/character_edit.reviewed-provenance.json", + "sha256": "sha256:bytes:fee8045c51a38c8c73f668af5e3f513d7f0cbbf6978122fe73d2487ab746e110", "publishDecision": "approved", "holdReason": null, - "creatorOrRightsholder": "sourav-das / MoDiff project maintainers", - "creationMethod": "MoDiff-authored technical provenance or quality metadata derived from the explicitly approved source-media packet", + "creatorOrRightsholder": "MoDiff project maintainers", + "creationMethod": "Project-authored Gallery manifest, native provenance or accepted quality review", "sourceUrl": null, "sourceRevision": null, - "sourceLicense": "Apache-2.0 project-authored metadata; image/model terms remain in their own per-file records", + "sourceLicense": "Apache-2.0 project-authored metadata", "modelTerms": [], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [], "assetLicense": "Apache-2.0", - "reviewedBy": "Codex (technical metadata); sourav-das (underlying exact-file rights and publication approval)", - "reviewedAt": "2026-10-31", - "reviewClass": "technical-derivation-of-human-approved-media", - "humanApprovalPacketSHA256": "a55745498d9c767d581d947b90b12ad4308e5f95b870224ef67107d5894f2499", - "humanApprovalScope": "Exact source images, authored mask and SHA-bound review packet. Numeric quality scores are the AI assessment, not human-supplied scores. The metadata is project-authored; it introduces no new third-party media rights." + "reviewedBy": "SOURAV DAS", + "reviewedAt": "2026-11-10", + "reviewClass": "per-file-maintainer-accepted-native-gallery-registration", + "provenanceTemplateId": "character_edit", + "humanApprovalPacketSHA256": "95893cb17e10b15ae6b23d8b31b57b0e14b9af96f822d75edbc6b68971afb11d" }, { - "path": "template-gallery/reviews/flux3_klein_base_fp8r512_raw_coordinate_prompt.quality-review.json", - "sha256": "sha256:bytes:5a40f1c4b7c13f8678de7fdd41bf090c39071fc884c2e4dfed6c1f03e0ecb09c", + "path": "template-gallery/reviews/cobalt_jug_and_lemons.original-provenance.json", + "sha256": "sha256:bytes:c9b80942080368a5e13eef6d01a31691034655d618c40ef89ab9bd1b0ade0c7e", "publishDecision": "approved", "holdReason": null, - "creatorOrRightsholder": "sourav-das / MoDiff project maintainers", - "creationMethod": "MoDiff-authored technical provenance or quality metadata derived from the explicitly approved source-media packet", - "sourceUrl": null, - "sourceRevision": null, - "sourceLicense": "Apache-2.0 project-authored metadata; image/model terms remain in their own per-file records", + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14", + "sourceRevision": "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14", + "sourceLicense": "MoDiff-authored Gallery metadata", "modelTerms": [ - "AI-assisted technical quality assessment authored in Codex for this project; no model weights or additional generated media are included." + "creativeml-openrail-m. https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14" ], - "aiGenerated": true, + "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], - "requiredAttribution": [], + "requiredAttribution": [ + "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14 https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14" + ], "assetLicense": "Apache-2.0", - "reviewedBy": "Codex (technical metadata); sourav-das (underlying exact-file rights and publication approval)", - "reviewedAt": "2026-10-31", - "reviewClass": "technical-derivation-of-human-approved-media", - "humanApprovalPacketSHA256": "a55745498d9c767d581d947b90b12ad4308e5f95b870224ef67107d5894f2499", - "humanApprovalScope": "Exact source images, authored mask and SHA-bound review packet. Numeric quality scores are the AI assessment, not human-supplied scores. The metadata is project-authored; it introduces no new third-party media rights." + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", + "provenanceTemplateId": "cobalt_jug_and_lemons" }, { - "path": "template-gallery/reviews/flux3_klein_base_fp8r512_raw_coordinate_prompt.reviewed-provenance.json", - "sha256": "sha256:bytes:e5684e876125a01c342b522b2a0d8350ae978f6543ccdfcaf56ec2011ccebb5f", + "path": "template-gallery/reviews/cobalt_jug_and_lemons.original-review.json", + "sha256": "sha256:bytes:f55b66df26013db2e002b925f1aceececec95ebd311a306bb082258f292751f1", "publishDecision": "approved", "holdReason": null, - "creatorOrRightsholder": "sourav-das / MoDiff project maintainers", - "creationMethod": "MoDiff-authored technical provenance or quality metadata derived from the explicitly approved source-media packet", - "sourceUrl": null, - "sourceRevision": null, - "sourceLicense": "Apache-2.0 project-authored metadata; image/model terms remain in their own per-file records", - "modelTerms": [], + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14", + "sourceRevision": "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "creativeml-openrail-m. https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14" + ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], - "requiredAttribution": [], + "requiredAttribution": [ + "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14 https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14" + ], "assetLicense": "Apache-2.0", - "reviewedBy": "Codex (technical metadata); sourav-das (underlying exact-file rights and publication approval)", - "reviewedAt": "2026-10-31", - "reviewClass": "technical-derivation-of-human-approved-media", - "humanApprovalPacketSHA256": "a55745498d9c767d581d947b90b12ad4308e5f95b870224ef67107d5894f2499", - "humanApprovalScope": "Exact source images, authored mask and SHA-bound review packet. Numeric quality scores are the AI assessment, not human-supplied scores. The metadata is project-authored; it introduces no new third-party media rights." + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", + "provenanceTemplateId": "cobalt_jug_and_lemons" }, { - "path": "template-gallery/reviews/flux3_klein_base_fp8r512_single_reference_edit.quality-review.json", - "sha256": "sha256:bytes:f81ca736173a93bb214088dda9879efd933675799244f363506770202ffc80e0", + "path": "template-gallery/reviews/cobalt_jug_and_lemons.quality-review.json", + "sha256": "sha256:bytes:da64a4e035bbe030a037ddfaf23a16946114d0e680c842f37976cc50ff8d6970", "publishDecision": "approved", "holdReason": null, - "creatorOrRightsholder": "sourav-das / MoDiff project maintainers", - "creationMethod": "MoDiff-authored technical provenance or quality metadata derived from the explicitly approved source-media packet", - "sourceUrl": null, - "sourceRevision": null, - "sourceLicense": "Apache-2.0 project-authored metadata; image/model terms remain in their own per-file records", + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14", + "sourceRevision": "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14", + "sourceLicense": "MoDiff-authored Gallery metadata", "modelTerms": [ - "AI-assisted technical quality assessment authored in Codex for this project; no model weights or additional generated media are included." + "creativeml-openrail-m. https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14" ], - "aiGenerated": true, + "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], - "requiredAttribution": [], + "requiredAttribution": [ + "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14 https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14" + ], "assetLicense": "Apache-2.0", - "reviewedBy": "Codex (technical metadata); sourav-das (underlying exact-file rights and publication approval)", - "reviewedAt": "2026-10-31", - "reviewClass": "technical-derivation-of-human-approved-media", - "humanApprovalPacketSHA256": "a55745498d9c767d581d947b90b12ad4308e5f95b870224ef67107d5894f2499", - "humanApprovalScope": "Exact source images, authored mask and SHA-bound review packet. Numeric quality scores are the AI assessment, not human-supplied scores. The metadata is project-authored; it introduces no new third-party media rights." + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", + "provenanceTemplateId": "cobalt_jug_and_lemons" }, { - "path": "template-gallery/reviews/flux3_klein_base_fp8r512_single_reference_edit.reviewed-provenance.json", - "sha256": "sha256:bytes:145688ff7654e0f2b058caf1e3cdc7f4621cd160bc57967529fbfc6deba3e55f", + "path": "template-gallery/reviews/cobalt_jug_and_lemons.retained-template-provenance.json", + "sha256": "sha256:bytes:066fee762cae8b5f92625cc71f4002422828b06115024c3ce11affd68f34544e", "publishDecision": "approved", "holdReason": null, - "creatorOrRightsholder": "sourav-das / MoDiff project maintainers", - "creationMethod": "MoDiff-authored technical provenance or quality metadata derived from the explicitly approved source-media packet", - "sourceUrl": null, - "sourceRevision": null, - "sourceLicense": "Apache-2.0 project-authored metadata; image/model terms remain in their own per-file records", - "modelTerms": [], + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14", + "sourceRevision": "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "creativeml-openrail-m. https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14" + ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], - "requiredAttribution": [], + "requiredAttribution": [ + "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14 https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14" + ], "assetLicense": "Apache-2.0", - "reviewedBy": "Codex (technical metadata); sourav-das (underlying exact-file rights and publication approval)", - "reviewedAt": "2026-10-31", - "reviewClass": "technical-derivation-of-human-approved-media", - "humanApprovalPacketSHA256": "a55745498d9c767d581d947b90b12ad4308e5f95b870224ef67107d5894f2499", - "humanApprovalScope": "Exact source images, authored mask and SHA-bound review packet. Numeric quality scores are the AI assessment, not human-supplied scores. The metadata is project-authored; it introduces no new third-party media rights." + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", + "provenanceTemplateId": "cobalt_jug_and_lemons" }, { - "path": "template-gallery/reviews/flux3_klein_base_fp8r512_text_to_image.quality-review.json", - "sha256": "sha256:bytes:e4db5a6f68664c24496139808737c35843ad013a84ed8c647cb7bda822b3ab55", + "path": "template-gallery/reviews/copper_hour_dunes.original-provenance.json", + "sha256": "sha256:bytes:6223329bd7a1a962703aefba1379c33dae7f57daa40a09aa8e77c1cdd05b099c", "publishDecision": "approved", "holdReason": null, - "creatorOrRightsholder": "sourav-das / MoDiff project maintainers", - "creationMethod": "MoDiff-authored technical provenance or quality metadata derived from the explicitly approved source-media packet", - "sourceUrl": null, - "sourceRevision": null, - "sourceLicense": "Apache-2.0 project-authored metadata; image/model terms remain in their own per-file records", + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/Photoroom/prx-512-t2i-sft/tree/2996423bc26e8eaca48774fac1797484214dfea0", + "sourceRevision": "Photoroom/prx-512-t2i-sft@2996423bc26e8eaca48774fac1797484214dfea0", + "sourceLicense": "MoDiff-authored Gallery metadata", "modelTerms": [ - "AI-assisted technical quality assessment authored in Codex for this project; no model weights or additional generated media are included." + "apache-2.0. https://huggingface.co/Photoroom/prx-512-t2i-sft/tree/2996423bc26e8eaca48774fac1797484214dfea0" ], - "aiGenerated": true, + "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], - "requiredAttribution": [], + "requiredAttribution": [ + "Photoroom/prx-512-t2i-sft@2996423bc26e8eaca48774fac1797484214dfea0 https://huggingface.co/Photoroom/prx-512-t2i-sft/tree/2996423bc26e8eaca48774fac1797484214dfea0" + ], "assetLicense": "Apache-2.0", - "reviewedBy": "Codex (technical metadata); sourav-das (underlying exact-file rights and publication approval)", - "reviewedAt": "2026-10-31", - "reviewClass": "technical-derivation-of-human-approved-media", - "humanApprovalPacketSHA256": "a55745498d9c767d581d947b90b12ad4308e5f95b870224ef67107d5894f2499", - "humanApprovalScope": "Exact source images, authored mask and SHA-bound review packet. Numeric quality scores are the AI assessment, not human-supplied scores. The metadata is project-authored; it introduces no new third-party media rights." + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", + "provenanceTemplateId": "copper_hour_dunes" }, { - "path": "template-gallery/reviews/flux3_klein_base_fp8r512_text_to_image.reviewed-provenance.json", - "sha256": "sha256:bytes:2db502f5981665759b16abab179f12ae0093312c5bc99fcc33bb346bc6d3ff05", + "path": "template-gallery/reviews/copper_hour_dunes.original-review.json", + "sha256": "sha256:bytes:1da7406a3792d864c6aa0e010203a15d608a2f85372e530aabdeabfd7dc7e529", "publishDecision": "approved", "holdReason": null, - "creatorOrRightsholder": "sourav-das / MoDiff project maintainers", - "creationMethod": "MoDiff-authored technical provenance or quality metadata derived from the explicitly approved source-media packet", - "sourceUrl": null, - "sourceRevision": null, - "sourceLicense": "Apache-2.0 project-authored metadata; image/model terms remain in their own per-file records", - "modelTerms": [], + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/Photoroom/prx-512-t2i-sft/tree/2996423bc26e8eaca48774fac1797484214dfea0", + "sourceRevision": "Photoroom/prx-512-t2i-sft@2996423bc26e8eaca48774fac1797484214dfea0", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "apache-2.0. https://huggingface.co/Photoroom/prx-512-t2i-sft/tree/2996423bc26e8eaca48774fac1797484214dfea0" + ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], - "requiredAttribution": [], + "requiredAttribution": [ + "Photoroom/prx-512-t2i-sft@2996423bc26e8eaca48774fac1797484214dfea0 https://huggingface.co/Photoroom/prx-512-t2i-sft/tree/2996423bc26e8eaca48774fac1797484214dfea0" + ], "assetLicense": "Apache-2.0", - "reviewedBy": "Codex (technical metadata); sourav-das (underlying exact-file rights and publication approval)", - "reviewedAt": "2026-10-31", - "reviewClass": "technical-derivation-of-human-approved-media", - "humanApprovalPacketSHA256": "a55745498d9c767d581d947b90b12ad4308e5f95b870224ef67107d5894f2499", - "humanApprovalScope": "Exact source images, authored mask and SHA-bound review packet. Numeric quality scores are the AI assessment, not human-supplied scores. The metadata is project-authored; it introduces no new third-party media rights." + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", + "provenanceTemplateId": "copper_hour_dunes" }, { - "path": "template-gallery/reviews/flux3_klein_fp8r512_lora_style.quality-review.json", - "sha256": "sha256:bytes:563cf20531167d3661cecb5e6897bae7d8a1485eff49e7f16c8cd7fef6486f10", + "path": "template-gallery/reviews/copper_hour_dunes.quality-review.json", + "sha256": "sha256:bytes:bc0ce5cb8d1e26c9b3491f5d1653365ca11b5305b25cd32647b08398bf889e8f", "publishDecision": "approved", "holdReason": null, - "creatorOrRightsholder": "sourav-das / MoDiff project maintainers", - "creationMethod": "MoDiff-authored technical provenance or quality metadata derived from the explicitly approved source-media packet", - "sourceUrl": null, - "sourceRevision": null, - "sourceLicense": "Apache-2.0 project-authored metadata; image/model terms remain in their own per-file records", + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/Photoroom/prx-512-t2i-sft/tree/2996423bc26e8eaca48774fac1797484214dfea0", + "sourceRevision": "Photoroom/prx-512-t2i-sft@2996423bc26e8eaca48774fac1797484214dfea0", + "sourceLicense": "MoDiff-authored Gallery metadata", "modelTerms": [ - "AI-assisted technical quality assessment authored in Codex for this project; no model weights or additional generated media are included." + "apache-2.0. https://huggingface.co/Photoroom/prx-512-t2i-sft/tree/2996423bc26e8eaca48774fac1797484214dfea0" ], - "aiGenerated": true, + "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], - "requiredAttribution": [], + "requiredAttribution": [ + "Photoroom/prx-512-t2i-sft@2996423bc26e8eaca48774fac1797484214dfea0 https://huggingface.co/Photoroom/prx-512-t2i-sft/tree/2996423bc26e8eaca48774fac1797484214dfea0" + ], "assetLicense": "Apache-2.0", - "reviewedBy": "Codex (technical metadata); sourav-das (underlying exact-file rights and publication approval)", - "reviewedAt": "2026-10-31", - "reviewClass": "technical-derivation-of-human-approved-media", - "humanApprovalPacketSHA256": "a55745498d9c767d581d947b90b12ad4308e5f95b870224ef67107d5894f2499", - "humanApprovalScope": "Exact source images, authored mask and SHA-bound review packet. Numeric quality scores are the AI assessment, not human-supplied scores. The metadata is project-authored; it introduces no new third-party media rights." + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", + "provenanceTemplateId": "copper_hour_dunes" }, { - "path": "template-gallery/reviews/flux3_klein_fp8r512_lora_style.reviewed-provenance.json", - "sha256": "sha256:bytes:945f99e2d8c924809a4e9d6f91056ec417715b7db5e06b2ec0d51a016bdc219b", + "path": "template-gallery/reviews/copper_hour_dunes.retained-template-provenance.json", + "sha256": "sha256:bytes:b1d27bc198b128e1085d6b920a62dff73ed1684735c0d9b7eefbd28ab52d7e5b", "publishDecision": "approved", "holdReason": null, - "creatorOrRightsholder": "sourav-das / MoDiff project maintainers", - "creationMethod": "MoDiff-authored technical provenance or quality metadata derived from the explicitly approved source-media packet", - "sourceUrl": null, - "sourceRevision": null, - "sourceLicense": "Apache-2.0 project-authored metadata; image/model terms remain in their own per-file records", - "modelTerms": [], + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/Photoroom/prx-512-t2i-sft/tree/2996423bc26e8eaca48774fac1797484214dfea0", + "sourceRevision": "Photoroom/prx-512-t2i-sft@2996423bc26e8eaca48774fac1797484214dfea0", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "apache-2.0. https://huggingface.co/Photoroom/prx-512-t2i-sft/tree/2996423bc26e8eaca48774fac1797484214dfea0" + ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], - "requiredAttribution": [], + "requiredAttribution": [ + "Photoroom/prx-512-t2i-sft@2996423bc26e8eaca48774fac1797484214dfea0 https://huggingface.co/Photoroom/prx-512-t2i-sft/tree/2996423bc26e8eaca48774fac1797484214dfea0" + ], "assetLicense": "Apache-2.0", - "reviewedBy": "Codex (technical metadata); sourav-das (underlying exact-file rights and publication approval)", - "reviewedAt": "2026-10-31", - "reviewClass": "technical-derivation-of-human-approved-media", - "humanApprovalPacketSHA256": "a55745498d9c767d581d947b90b12ad4308e5f95b870224ef67107d5894f2499", - "humanApprovalScope": "Exact source images, authored mask and SHA-bound review packet. Numeric quality scores are the AI assessment, not human-supplied scores. The metadata is project-authored; it introduces no new third-party media rights." + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", + "provenanceTemplateId": "copper_hour_dunes" }, { - "path": "template-gallery/reviews/flux3_klein_fp8r512_multi_reference_edit.quality-review.json", - "sha256": "sha256:bytes:ba9c380fe4ccea2f731999d6aa7d116e4ebf4078c8ddb29ea88f2fee8d37dec9", + "path": "template-gallery/reviews/fast_lora.quality-review.json", + "sha256": "sha256:bytes:96079ed2226e86a0a0686283402a8c4f567809c73d67138afb4d58fc46936a15", "publishDecision": "approved", "holdReason": null, - "creatorOrRightsholder": "sourav-das / MoDiff project maintainers", - "creationMethod": "MoDiff-authored technical provenance or quality metadata derived from the explicitly approved source-media packet", + "creatorOrRightsholder": "MoDiff project maintainers", + "creationMethod": "MoDiff-authored technical provenance or quality metadata from the explicitly approved six-image source packet", "sourceUrl": null, "sourceRevision": null, - "sourceLicense": "Apache-2.0 project-authored metadata; image/model terms remain in their own per-file records", - "modelTerms": [ - "AI-assisted technical quality assessment authored in Codex for this project; no model weights or additional generated media are included." - ], - "aiGenerated": true, + "sourceLicense": "Apache-2.0 project-authored metadata; generated-media terms remain in their exact per-file records", + "modelTerms": [], + "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [], "assetLicense": "Apache-2.0", - "reviewedBy": "Codex (technical metadata); sourav-das (underlying exact-file rights and publication approval)", - "reviewedAt": "2026-10-31", - "reviewClass": "technical-derivation-of-human-approved-media", - "humanApprovalPacketSHA256": "a55745498d9c767d581d947b90b12ad4308e5f95b870224ef67107d5894f2499", - "humanApprovalScope": "Exact source images, authored mask and SHA-bound review packet. Numeric quality scores are the AI assessment, not human-supplied scores. The metadata is project-authored; it introduces no new third-party media rights." + "reviewedBy": "SOURAV DAS", + "reviewedAt": "2026-11-09", + "reviewClass": "per-file-human-approved-six-z-registration", + "provenanceTemplateId": "fast_lora", + "humanApprovalPacketSHA256": "9b728a5f8535fc1ba3c03d2e2759d7ac795a586fafab51beb1509379ed388934" }, { - "path": "template-gallery/reviews/flux3_klein_fp8r512_multi_reference_edit.reviewed-provenance.json", - "sha256": "sha256:bytes:d89ef493877766cc1eb753cc6bdfd9e44dd6a71f33c8969287b4e70b33544f31", + "path": "template-gallery/reviews/fast_lora.reviewed-provenance.json", + "sha256": "sha256:bytes:7a3e3ac94845ad37f5f374c1e808a5ff449b0e5776be72a1891bb2c106fdd722", "publishDecision": "approved", "holdReason": null, - "creatorOrRightsholder": "sourav-das / MoDiff project maintainers", - "creationMethod": "MoDiff-authored technical provenance or quality metadata derived from the explicitly approved source-media packet", + "creatorOrRightsholder": "MoDiff project maintainers", + "creationMethod": "MoDiff-authored technical provenance or quality metadata from the explicitly approved six-image source packet", "sourceUrl": null, "sourceRevision": null, - "sourceLicense": "Apache-2.0 project-authored metadata; image/model terms remain in their own per-file records", + "sourceLicense": "Apache-2.0 project-authored metadata; generated-media terms remain in their exact per-file records", "modelTerms": [], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [], "assetLicense": "Apache-2.0", - "reviewedBy": "Codex (technical metadata); sourav-das (underlying exact-file rights and publication approval)", - "reviewedAt": "2026-10-31", - "reviewClass": "technical-derivation-of-human-approved-media", - "humanApprovalPacketSHA256": "a55745498d9c767d581d947b90b12ad4308e5f95b870224ef67107d5894f2499", - "humanApprovalScope": "Exact source images, authored mask and SHA-bound review packet. Numeric quality scores are the AI assessment, not human-supplied scores. The metadata is project-authored; it introduces no new third-party media rights." + "reviewedBy": "SOURAV DAS", + "reviewedAt": "2026-11-09", + "reviewClass": "per-file-human-approved-six-z-registration", + "provenanceTemplateId": "fast_lora", + "humanApprovalPacketSHA256": "9b728a5f8535fc1ba3c03d2e2759d7ac795a586fafab51beb1509379ed388934" }, { - "path": "template-gallery/reviews/flux3_klein_fp8r512_raw_coordinate_prompt.quality-review.json", - "sha256": "sha256:bytes:5b8429b8102aba95b1fc76e8ff0b3ee823a489ae1ae771c5f10b2c92f583ddf5", + "path": "template-gallery/reviews/flowers_after_rain.original-provenance.json", + "sha256": "sha256:bytes:4368cd0ed92243d2cc6b5b628ffabba5e64339eeec153282832b253d68efaa87", "publishDecision": "approved", "holdReason": null, - "creatorOrRightsholder": "sourav-das / MoDiff project maintainers", - "creationMethod": "MoDiff-authored technical provenance or quality metadata derived from the explicitly approved source-media packet", - "sourceUrl": null, - "sourceRevision": null, - "sourceLicense": "Apache-2.0 project-authored metadata; image/model terms remain in their own per-file records", + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/ATH-MaaS/Ovis-Image-7B/tree/41be1c5821a92c970d63d7eb595a2fd3fe32b22e", + "sourceRevision": "ATH-MaaS/Ovis-Image-7B@41be1c5821a92c970d63d7eb595a2fd3fe32b22e", + "sourceLicense": "MoDiff-authored Gallery metadata", "modelTerms": [ - "AI-assisted technical quality assessment authored in Codex for this project; no model weights or additional generated media are included." + "apache-2.0. https://huggingface.co/ATH-MaaS/Ovis-Image-7B/tree/41be1c5821a92c970d63d7eb595a2fd3fe32b22e" ], - "aiGenerated": true, + "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], - "requiredAttribution": [], + "requiredAttribution": [ + "ATH-MaaS/Ovis-Image-7B@41be1c5821a92c970d63d7eb595a2fd3fe32b22e https://huggingface.co/ATH-MaaS/Ovis-Image-7B/tree/41be1c5821a92c970d63d7eb595a2fd3fe32b22e" + ], "assetLicense": "Apache-2.0", - "reviewedBy": "Codex (technical metadata); sourav-das (underlying exact-file rights and publication approval)", - "reviewedAt": "2026-10-31", - "reviewClass": "technical-derivation-of-human-approved-media", - "humanApprovalPacketSHA256": "a55745498d9c767d581d947b90b12ad4308e5f95b870224ef67107d5894f2499", - "humanApprovalScope": "Exact source images, authored mask and SHA-bound review packet. Numeric quality scores are the AI assessment, not human-supplied scores. The metadata is project-authored; it introduces no new third-party media rights." + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", + "provenanceTemplateId": "flowers_after_rain" }, { - "path": "template-gallery/reviews/flux3_klein_fp8r512_raw_coordinate_prompt.reviewed-provenance.json", - "sha256": "sha256:bytes:27ec68baa354642081ee764d33632cafcfeb8477ef05ec6ce1e7ec9d2925d410", + "path": "template-gallery/reviews/flowers_after_rain.original-review.json", + "sha256": "sha256:bytes:0dadd907604fdde95baa31bcc981dd87cab836c1b167fc852542982163bbc455", "publishDecision": "approved", "holdReason": null, - "creatorOrRightsholder": "sourav-das / MoDiff project maintainers", - "creationMethod": "MoDiff-authored technical provenance or quality metadata derived from the explicitly approved source-media packet", - "sourceUrl": null, - "sourceRevision": null, - "sourceLicense": "Apache-2.0 project-authored metadata; image/model terms remain in their own per-file records", - "modelTerms": [], + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/ATH-MaaS/Ovis-Image-7B/tree/41be1c5821a92c970d63d7eb595a2fd3fe32b22e", + "sourceRevision": "ATH-MaaS/Ovis-Image-7B@41be1c5821a92c970d63d7eb595a2fd3fe32b22e", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "apache-2.0. https://huggingface.co/ATH-MaaS/Ovis-Image-7B/tree/41be1c5821a92c970d63d7eb595a2fd3fe32b22e" + ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], - "requiredAttribution": [], + "requiredAttribution": [ + "ATH-MaaS/Ovis-Image-7B@41be1c5821a92c970d63d7eb595a2fd3fe32b22e https://huggingface.co/ATH-MaaS/Ovis-Image-7B/tree/41be1c5821a92c970d63d7eb595a2fd3fe32b22e" + ], "assetLicense": "Apache-2.0", - "reviewedBy": "Codex (technical metadata); sourav-das (underlying exact-file rights and publication approval)", - "reviewedAt": "2026-10-31", - "reviewClass": "technical-derivation-of-human-approved-media", - "humanApprovalPacketSHA256": "a55745498d9c767d581d947b90b12ad4308e5f95b870224ef67107d5894f2499", - "humanApprovalScope": "Exact source images, authored mask and SHA-bound review packet. Numeric quality scores are the AI assessment, not human-supplied scores. The metadata is project-authored; it introduces no new third-party media rights." + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", + "provenanceTemplateId": "flowers_after_rain" }, { - "path": "template-gallery/reviews/flux3_klein_fp8r512_single_reference_edit.quality-review.json", - "sha256": "sha256:bytes:d3af7d89f63eabfd9313ca12b8ec6b644ae14379265e83ecf75aab453c2df4af", + "path": "template-gallery/reviews/flowers_after_rain.quality-review.json", + "sha256": "sha256:bytes:4dc4ac8e4aa12dc1a9f0d685a3416d1039866c8b52d8d2560a8d3b0364cd5121", "publishDecision": "approved", "holdReason": null, - "creatorOrRightsholder": "sourav-das / MoDiff project maintainers", - "creationMethod": "MoDiff-authored technical provenance or quality metadata derived from the explicitly approved source-media packet", - "sourceUrl": null, - "sourceRevision": null, - "sourceLicense": "Apache-2.0 project-authored metadata; image/model terms remain in their own per-file records", + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/ATH-MaaS/Ovis-Image-7B/tree/41be1c5821a92c970d63d7eb595a2fd3fe32b22e", + "sourceRevision": "ATH-MaaS/Ovis-Image-7B@41be1c5821a92c970d63d7eb595a2fd3fe32b22e", + "sourceLicense": "MoDiff-authored Gallery metadata", "modelTerms": [ - "AI-assisted technical quality assessment authored in Codex for this project; no model weights or additional generated media are included." + "apache-2.0. https://huggingface.co/ATH-MaaS/Ovis-Image-7B/tree/41be1c5821a92c970d63d7eb595a2fd3fe32b22e" ], - "aiGenerated": true, + "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], - "requiredAttribution": [], + "requiredAttribution": [ + "ATH-MaaS/Ovis-Image-7B@41be1c5821a92c970d63d7eb595a2fd3fe32b22e https://huggingface.co/ATH-MaaS/Ovis-Image-7B/tree/41be1c5821a92c970d63d7eb595a2fd3fe32b22e" + ], "assetLicense": "Apache-2.0", - "reviewedBy": "Codex (technical metadata); sourav-das (underlying exact-file rights and publication approval)", - "reviewedAt": "2026-10-31", - "reviewClass": "technical-derivation-of-human-approved-media", - "humanApprovalPacketSHA256": "a55745498d9c767d581d947b90b12ad4308e5f95b870224ef67107d5894f2499", - "humanApprovalScope": "Exact source images, authored mask and SHA-bound review packet. Numeric quality scores are the AI assessment, not human-supplied scores. The metadata is project-authored; it introduces no new third-party media rights." + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", + "provenanceTemplateId": "flowers_after_rain" }, { - "path": "template-gallery/reviews/flux3_klein_fp8r512_single_reference_edit.reviewed-provenance.json", - "sha256": "sha256:bytes:bf0f06495f4d9793ebf0f8bc8c4467e6aead1b935bbb5e319b59b92dac3e1b78", + "path": "template-gallery/reviews/flowers_after_rain.retained-template-provenance.json", + "sha256": "sha256:bytes:5251193aa4454f936e7677ee44b91d30938885e46645007effb8b1de8ea61f4a", "publishDecision": "approved", "holdReason": null, - "creatorOrRightsholder": "sourav-das / MoDiff project maintainers", - "creationMethod": "MoDiff-authored technical provenance or quality metadata derived from the explicitly approved source-media packet", - "sourceUrl": null, - "sourceRevision": null, - "sourceLicense": "Apache-2.0 project-authored metadata; image/model terms remain in their own per-file records", - "modelTerms": [], + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/ATH-MaaS/Ovis-Image-7B/tree/41be1c5821a92c970d63d7eb595a2fd3fe32b22e", + "sourceRevision": "ATH-MaaS/Ovis-Image-7B@41be1c5821a92c970d63d7eb595a2fd3fe32b22e", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "apache-2.0. https://huggingface.co/ATH-MaaS/Ovis-Image-7B/tree/41be1c5821a92c970d63d7eb595a2fd3fe32b22e" + ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], - "requiredAttribution": [], + "requiredAttribution": [ + "ATH-MaaS/Ovis-Image-7B@41be1c5821a92c970d63d7eb595a2fd3fe32b22e https://huggingface.co/ATH-MaaS/Ovis-Image-7B/tree/41be1c5821a92c970d63d7eb595a2fd3fe32b22e" + ], "assetLicense": "Apache-2.0", - "reviewedBy": "Codex (technical metadata); sourav-das (underlying exact-file rights and publication approval)", - "reviewedAt": "2026-10-31", - "reviewClass": "technical-derivation-of-human-approved-media", - "humanApprovalPacketSHA256": "a55745498d9c767d581d947b90b12ad4308e5f95b870224ef67107d5894f2499", - "humanApprovalScope": "Exact source images, authored mask and SHA-bound review packet. Numeric quality scores are the AI assessment, not human-supplied scores. The metadata is project-authored; it introduces no new third-party media rights." + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", + "provenanceTemplateId": "flowers_after_rain" }, { - "path": "template-gallery/reviews/flux3_klein_fp8r512_text_to_image.quality-review.json", - "sha256": "sha256:bytes:9c42b9b5987079824364e4749eaee7e9846949c8a8f9142092ac716447bbf063", + "path": "template-gallery/reviews/flux2_klein_edit.quality-review.json", + "sha256": "sha256:bytes:9fb22201199f326234b60ad2b1162dd14d3e94cf6e2bd4d00507c26d240aeebe", "publishDecision": "approved", "holdReason": null, - "creatorOrRightsholder": "sourav-das / MoDiff project maintainers", - "creationMethod": "MoDiff-authored technical provenance or quality metadata derived from the explicitly approved source-media packet", + "creatorOrRightsholder": "MoDiff project maintainers", + "creationMethod": "MoDiff-authored technical provenance, Gallery manifest or quality review for the two explicitly approved native Windows FLUX.2 Klein images", "sourceUrl": null, "sourceRevision": null, - "sourceLicense": "Apache-2.0 project-authored metadata; image/model terms remain in their own per-file records", - "modelTerms": [ - "AI-assisted technical quality assessment authored in Codex for this project; no model weights or additional generated media are included." - ], - "aiGenerated": true, + "sourceLicense": "Apache-2.0 project-authored metadata; generated-media terms remain in their exact per-file record", + "modelTerms": [], + "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [], "assetLicense": "Apache-2.0", - "reviewedBy": "Codex (technical metadata); sourav-das (underlying exact-file rights and publication approval)", - "reviewedAt": "2026-10-31", - "reviewClass": "technical-derivation-of-human-approved-media", - "humanApprovalPacketSHA256": "a55745498d9c767d581d947b90b12ad4308e5f95b870224ef67107d5894f2499", - "humanApprovalScope": "Exact source images, authored mask and SHA-bound review packet. Numeric quality scores are the AI assessment, not human-supplied scores. The metadata is project-authored; it introduces no new third-party media rights." + "reviewedBy": "SOURAV DAS", + "reviewedAt": "2026-11-10", + "reviewClass": "per-file-human-approved-windows-klein-native-image-registration", + "provenanceTemplateId": "flux2_klein_edit", + "humanApprovalPacketSHA256": "2862dea890936a224953749fccb20cbba222471c43abad480dad091e8437f45a" }, { - "path": "template-gallery/reviews/flux3_klein_fp8r512_text_to_image.reviewed-provenance.json", - "sha256": "sha256:bytes:bb4186fd1e2fdb16f03bbda92673cbbad1169c0c20a13987775eac45ffcca1d2", + "path": "template-gallery/reviews/flux2_klein_edit.reviewed-provenance.json", + "sha256": "sha256:bytes:780517219787eafdce5362cfd9f8cab52f848397edde41b5b91ed9bb3c904462", "publishDecision": "approved", "holdReason": null, - "creatorOrRightsholder": "sourav-das / MoDiff project maintainers", - "creationMethod": "MoDiff-authored technical provenance or quality metadata derived from the explicitly approved source-media packet", + "creatorOrRightsholder": "MoDiff project maintainers", + "creationMethod": "MoDiff-authored technical provenance, Gallery manifest or quality review for the two explicitly approved native Windows FLUX.2 Klein images", "sourceUrl": null, "sourceRevision": null, - "sourceLicense": "Apache-2.0 project-authored metadata; image/model terms remain in their own per-file records", + "sourceLicense": "Apache-2.0 project-authored metadata; generated-media terms remain in their exact per-file record", "modelTerms": [], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [], "assetLicense": "Apache-2.0", - "reviewedBy": "Codex (technical metadata); sourav-das (underlying exact-file rights and publication approval)", - "reviewedAt": "2026-10-31", - "reviewClass": "technical-derivation-of-human-approved-media", - "humanApprovalPacketSHA256": "a55745498d9c767d581d947b90b12ad4308e5f95b870224ef67107d5894f2499", - "humanApprovalScope": "Exact source images, authored mask and SHA-bound review packet. Numeric quality scores are the AI assessment, not human-supplied scores. The metadata is project-authored; it introduces no new third-party media rights." + "reviewedBy": "SOURAV DAS", + "reviewedAt": "2026-11-10", + "reviewClass": "per-file-human-approved-windows-klein-native-image-registration", + "humanApprovalPacketSHA256": "2862dea890936a224953749fccb20cbba222471c43abad480dad091e8437f45a", + "humanApprovalScope": "The maintainer explicitly approved the proposed 4/5 scores, known limits, exact retained Klein two-reference derivative output, its redacted technical/quality metadata, and permission to make and redistribute this derivative under Apache-2.0. Existing source images and their mixed license records remain unchanged; no other assets or held cases are newly approved.", + "provenanceTemplateId": "flux2_klein_edit" }, { - "path": "template-gallery/reviews/flux_control_canny.quality-review.json", - "sha256": "sha256:bytes:18fe010ceca23f0e99deb1d854905d52d805c45931b4ab523c364ac36ae594ab", + "path": "template-gallery/reviews/flux2_klein_multi_reference.quality-review.json", + "sha256": "sha256:bytes:7f6d97ce71b303302117236ae3c8f3cd047801026a8f808916c69c9008c6c5c5", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers", - "creationMethod": "MoDiff-authored Gallery manifest, reviewed provenance or quality review for the accepted morning batch", + "creationMethod": "MoDiff-authored technical provenance or quality metadata from the explicitly approved retained Klein two-reference source packet", "sourceUrl": null, "sourceRevision": null, - "sourceLicense": "Apache-2.0 project-authored metadata; generated-media terms remain in their exact per-file record", + "sourceLicense": "Apache-2.0 project-authored metadata; generated-media terms remain in their exact per-file records", "modelTerms": [], "aiGenerated": false, "humanLikenessConsent": "not-applicable", @@ -7410,21 +8088,22 @@ "requiredAttribution": [], "assetLicense": "Apache-2.0", "reviewedBy": "SOURAV DAS", - "reviewedAt": "2026-11-10", - "reviewClass": "per-file-maintainer-approved-gallery-registration", - "provenanceTemplateId": "flux_control_canny", - "humanApprovalPacketSHA256": "351d122936dc8df9c3fb6217005641dd2cc2ecddc39cd7cd7fadc2939def70b3" + "reviewedAt": "2026-11-09", + "reviewClass": "per-file-human-approved-klein-derivative-registration", + "provenanceTemplateId": "flux2_klein_multi_reference", + "humanApprovalPacketSHA256": "6110699f001f269b75ee943b96c82d2c0c37cb33ba4c10fdd1a9cd15d4d48042", + "humanApprovalScope": "The maintainer explicitly approved the proposed 4/5 scores, known limits, exact retained Klein two-reference derivative output, its redacted technical/quality metadata, and permission to make and redistribute this derivative under Apache-2.0. Existing source images and their mixed license records remain unchanged; no other assets or held cases are newly approved." }, { - "path": "template-gallery/reviews/flux_control_canny.reviewed-provenance.json", - "sha256": "sha256:bytes:de3e003b083c9ecbf1dfae92a5c9a225c963943be0820aba88e24723aecc70b0", + "path": "template-gallery/reviews/flux2_klein_multi_reference.reviewed-provenance.json", + "sha256": "sha256:bytes:dd9601157dcff562c822db19d08d7c7f7720a1e069945563609e87c7fc52cf77", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers", - "creationMethod": "MoDiff-authored Gallery manifest, reviewed provenance or quality review for the accepted morning batch", + "creationMethod": "MoDiff-authored technical provenance or quality metadata from the explicitly approved retained Klein two-reference source packet", "sourceUrl": null, "sourceRevision": null, - "sourceLicense": "Apache-2.0 project-authored metadata; generated-media terms remain in their exact per-file record", + "sourceLicense": "Apache-2.0 project-authored metadata; generated-media terms remain in their exact per-file records", "modelTerms": [], "aiGenerated": false, "humanLikenessConsent": "not-applicable", @@ -7432,18 +8111,19 @@ "requiredAttribution": [], "assetLicense": "Apache-2.0", "reviewedBy": "SOURAV DAS", - "reviewedAt": "2026-11-10", - "reviewClass": "per-file-maintainer-approved-gallery-registration", - "provenanceTemplateId": "flux_control_canny", - "humanApprovalPacketSHA256": "351d122936dc8df9c3fb6217005641dd2cc2ecddc39cd7cd7fadc2939def70b3" + "reviewedAt": "2026-11-09", + "reviewClass": "per-file-human-approved-klein-derivative-registration", + "provenanceTemplateId": "flux2_klein_multi_reference", + "humanApprovalPacketSHA256": "6110699f001f269b75ee943b96c82d2c0c37cb33ba4c10fdd1a9cd15d4d48042", + "humanApprovalScope": "The maintainer explicitly approved the proposed 4/5 scores, known limits, exact retained Klein two-reference derivative output, its redacted technical/quality metadata, and permission to make and redistribute this derivative under Apache-2.0. Existing source images and their mixed license records remain unchanged; no other assets or held cases are newly approved." }, { - "path": "template-gallery/reviews/flux_depth_control.quality-review.json", - "sha256": "sha256:bytes:cfa61450e6b63ad91cdba6b5d17c8ee316db1ce6005b19569595e173c9800daf", + "path": "template-gallery/reviews/flux2_klein_text_to_image.quality-review.json", + "sha256": "sha256:bytes:2a2f12b34c26df960805a7fcac925e8f36894326f271f20920f720e3b72499ac", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers", - "creationMethod": "MoDiff-authored Gallery manifest, reviewed provenance or quality review for the accepted morning batch", + "creationMethod": "MoDiff-authored technical provenance, Gallery manifest or quality review for the two explicitly approved native Windows FLUX.2 Klein images", "sourceUrl": null, "sourceRevision": null, "sourceLicense": "Apache-2.0 project-authored metadata; generated-media terms remain in their exact per-file record", @@ -7455,17 +8135,17 @@ "assetLicense": "Apache-2.0", "reviewedBy": "SOURAV DAS", "reviewedAt": "2026-11-10", - "reviewClass": "per-file-maintainer-approved-gallery-registration", - "provenanceTemplateId": "flux_depth_control", - "humanApprovalPacketSHA256": "351d122936dc8df9c3fb6217005641dd2cc2ecddc39cd7cd7fadc2939def70b3" + "reviewClass": "per-file-human-approved-windows-klein-native-image-registration", + "provenanceTemplateId": "flux2_klein_text_to_image", + "humanApprovalPacketSHA256": "2862dea890936a224953749fccb20cbba222471c43abad480dad091e8437f45a" }, { - "path": "template-gallery/reviews/flux_depth_control.reviewed-provenance.json", - "sha256": "sha256:bytes:845284bdb0898bb02ddd178e1de0c4b24e2281ae8f84c15eb09de2798abfcf79", + "path": "template-gallery/reviews/flux2_klein_text_to_image.reviewed-provenance.json", + "sha256": "sha256:bytes:e24076267505e368ca3f117c3147640dd731493d23ab2cdb32e9581c27b6c366", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers", - "creationMethod": "MoDiff-authored Gallery manifest, reviewed provenance or quality review for the accepted morning batch", + "creationMethod": "MoDiff-authored technical provenance, Gallery manifest or quality review for the two explicitly approved native Windows FLUX.2 Klein images", "sourceUrl": null, "sourceRevision": null, "sourceLicense": "Apache-2.0 project-authored metadata; generated-media terms remain in their exact per-file record", @@ -7477,460 +8157,480 @@ "assetLicense": "Apache-2.0", "reviewedBy": "SOURAV DAS", "reviewedAt": "2026-11-10", - "reviewClass": "per-file-maintainer-approved-gallery-registration", - "provenanceTemplateId": "flux_depth_control", - "humanApprovalPacketSHA256": "351d122936dc8df9c3fb6217005641dd2cc2ecddc39cd7cd7fadc2939def70b3" + "reviewClass": "per-file-human-approved-windows-klein-native-image-registration", + "provenanceTemplateId": "flux2_klein_text_to_image", + "humanApprovalPacketSHA256": "2862dea890936a224953749fccb20cbba222471c43abad480dad091e8437f45a" }, { - "path": "template-gallery/reviews/flux_dev_expert_text_to_image.quality-review.json", - "sha256": "sha256:bytes:4b7d81b2a342e898519cfef4ea3ada3325831a7a0c93b0966a42d59f74999715", + "path": "template-gallery/reviews/flux3_klein_base_fp8r512_lora_style.quality-review.json", + "sha256": "sha256:bytes:6ecaa3d253c60a36cfa0129575fda00de91b7259d6d5d7aaf7a1eafc1c1539fb", "publishDecision": "approved", "holdReason": null, - "creatorOrRightsholder": "MoDiff project maintainers", - "creationMethod": "MoDiff-authored Gallery manifest, reviewed provenance or quality review for the accepted morning batch", + "creatorOrRightsholder": "sourav-das / MoDiff project maintainers", + "creationMethod": "MoDiff-authored technical provenance or quality metadata derived from the explicitly approved source-media packet", "sourceUrl": null, "sourceRevision": null, - "sourceLicense": "Apache-2.0 project-authored metadata; generated-media terms remain in their exact per-file record", - "modelTerms": [], - "aiGenerated": false, + "sourceLicense": "Apache-2.0 project-authored metadata; image/model terms remain in their own per-file records", + "modelTerms": [ + "AI-assisted technical quality assessment authored in Codex for this project; no model weights or additional generated media are included." + ], + "aiGenerated": true, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [], "assetLicense": "Apache-2.0", - "reviewedBy": "SOURAV DAS", - "reviewedAt": "2026-11-10", - "reviewClass": "per-file-maintainer-approved-gallery-registration", - "provenanceTemplateId": "flux_dev_expert_text_to_image", - "humanApprovalPacketSHA256": "351d122936dc8df9c3fb6217005641dd2cc2ecddc39cd7cd7fadc2939def70b3" + "reviewedBy": "Codex (technical metadata); sourav-das (underlying exact-file rights and publication approval)", + "reviewedAt": "2026-10-31", + "reviewClass": "technical-derivation-of-human-approved-media", + "humanApprovalPacketSHA256": "a55745498d9c767d581d947b90b12ad4308e5f95b870224ef67107d5894f2499", + "humanApprovalScope": "Exact source images, authored mask and SHA-bound review packet. Numeric quality scores are the AI assessment, not human-supplied scores. The metadata is project-authored; it introduces no new third-party media rights." }, { - "path": "template-gallery/reviews/flux_dev_expert_text_to_image.reviewed-provenance.json", - "sha256": "sha256:bytes:56dd0d53dd62f58ff085722eb7266a7c4e10e591b0a78a9408c3b2061e656182", + "path": "template-gallery/reviews/flux3_klein_base_fp8r512_lora_style.reviewed-provenance.json", + "sha256": "sha256:bytes:bf2a88219068ec3c78bf3ab9f847f2c80d7e78035d574dbccc8d48c9c979bdc6", "publishDecision": "approved", "holdReason": null, - "creatorOrRightsholder": "MoDiff project maintainers", - "creationMethod": "MoDiff-authored Gallery manifest, reviewed provenance or quality review for the accepted morning batch", + "creatorOrRightsholder": "sourav-das / MoDiff project maintainers", + "creationMethod": "MoDiff-authored technical provenance or quality metadata derived from the explicitly approved source-media packet", "sourceUrl": null, "sourceRevision": null, - "sourceLicense": "Apache-2.0 project-authored metadata; generated-media terms remain in their exact per-file record", + "sourceLicense": "Apache-2.0 project-authored metadata; image/model terms remain in their own per-file records", "modelTerms": [], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [], "assetLicense": "Apache-2.0", - "reviewedBy": "SOURAV DAS", - "reviewedAt": "2026-11-10", - "reviewClass": "per-file-maintainer-approved-gallery-registration", - "provenanceTemplateId": "flux_dev_expert_text_to_image", - "humanApprovalPacketSHA256": "351d122936dc8df9c3fb6217005641dd2cc2ecddc39cd7cd7fadc2939def70b3" + "reviewedBy": "Codex (technical metadata); sourav-das (underlying exact-file rights and publication approval)", + "reviewedAt": "2026-10-31", + "reviewClass": "technical-derivation-of-human-approved-media", + "humanApprovalPacketSHA256": "a55745498d9c767d581d947b90b12ad4308e5f95b870224ef67107d5894f2499", + "humanApprovalScope": "Exact source images, authored mask and SHA-bound review packet. Numeric quality scores are the AI assessment, not human-supplied scores. The metadata is project-authored; it introduces no new third-party media rights." }, { - "path": "template-gallery/reviews/flux_fill_inpaint.quality-review.json", - "sha256": "sha256:bytes:118df046dca340d5130af71eefea56e4d0182c2beb9b01ac4de9da102fb002ff", + "path": "template-gallery/reviews/flux3_klein_base_fp8r512_multi_reference_edit.quality-review.json", + "sha256": "sha256:bytes:0666e990cc08d4014f2f913674e9637a86e4f62fee681de1287c949a6a7dcb5a", "publishDecision": "approved", "holdReason": null, - "creatorOrRightsholder": "MoDiff project maintainers", - "creationMethod": "Project-authored Gallery manifest, native provenance or accepted quality review", + "creatorOrRightsholder": "sourav-das / MoDiff project maintainers", + "creationMethod": "MoDiff-authored technical provenance or quality metadata derived from the explicitly approved source-media packet", "sourceUrl": null, "sourceRevision": null, - "sourceLicense": "Apache-2.0 project-authored metadata", - "modelTerms": [], - "aiGenerated": false, + "sourceLicense": "Apache-2.0 project-authored metadata; image/model terms remain in their own per-file records", + "modelTerms": [ + "AI-assisted technical quality assessment authored in Codex for this project; no model weights or additional generated media are included." + ], + "aiGenerated": true, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [], "assetLicense": "Apache-2.0", - "reviewedBy": "SOURAV DAS", - "reviewedAt": "2026-11-10", - "reviewClass": "per-file-maintainer-accepted-native-gallery-registration", - "provenanceTemplateId": "flux_fill_inpaint", - "humanApprovalPacketSHA256": "73ddf9ea7fc27eccc6b93817809421a008ce0fd2fb3080ffbdc5831a09205304" + "reviewedBy": "Codex (technical metadata); sourav-das (underlying exact-file rights and publication approval)", + "reviewedAt": "2026-10-31", + "reviewClass": "technical-derivation-of-human-approved-media", + "humanApprovalPacketSHA256": "a55745498d9c767d581d947b90b12ad4308e5f95b870224ef67107d5894f2499", + "humanApprovalScope": "Exact source images, authored mask and SHA-bound review packet. Numeric quality scores are the AI assessment, not human-supplied scores. The metadata is project-authored; it introduces no new third-party media rights." }, { - "path": "template-gallery/reviews/flux_fill_inpaint.reviewed-provenance.json", - "sha256": "sha256:bytes:43b64ed1f67a2e36e9d7646eae58bc0aad9b1d49925425f5ebb98a0607577c3d", + "path": "template-gallery/reviews/flux3_klein_base_fp8r512_multi_reference_edit.reviewed-provenance.json", + "sha256": "sha256:bytes:df83c15df43ca7b2739db3032671014c3dea0cb0bd1cd4acb15df5dcccf443bd", "publishDecision": "approved", "holdReason": null, - "creatorOrRightsholder": "MoDiff project maintainers", - "creationMethod": "Project-authored Gallery manifest, native provenance or accepted quality review", + "creatorOrRightsholder": "sourav-das / MoDiff project maintainers", + "creationMethod": "MoDiff-authored technical provenance or quality metadata derived from the explicitly approved source-media packet", "sourceUrl": null, "sourceRevision": null, - "sourceLicense": "Apache-2.0 project-authored metadata", + "sourceLicense": "Apache-2.0 project-authored metadata; image/model terms remain in their own per-file records", "modelTerms": [], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [], "assetLicense": "Apache-2.0", - "reviewedBy": "SOURAV DAS", - "reviewedAt": "2026-11-10", - "reviewClass": "per-file-maintainer-accepted-native-gallery-registration", - "provenanceTemplateId": "flux_fill_inpaint", - "humanApprovalPacketSHA256": "73ddf9ea7fc27eccc6b93817809421a008ce0fd2fb3080ffbdc5831a09205304" + "reviewedBy": "Codex (technical metadata); sourav-das (underlying exact-file rights and publication approval)", + "reviewedAt": "2026-10-31", + "reviewClass": "technical-derivation-of-human-approved-media", + "humanApprovalPacketSHA256": "a55745498d9c767d581d947b90b12ad4308e5f95b870224ef67107d5894f2499", + "humanApprovalScope": "Exact source images, authored mask and SHA-bound review packet. Numeric quality scores are the AI assessment, not human-supplied scores. The metadata is project-authored; it introduces no new third-party media rights." }, { - "path": "template-gallery/reviews/flux_fill_outpaint.quality-review.json", - "sha256": "sha256:bytes:cf7d2d52d6d95733fd75be94e96fac1b331e8ad8996d615640123e95d3604edf", + "path": "template-gallery/reviews/flux3_klein_base_fp8r512_raw_coordinate_prompt.quality-review.json", + "sha256": "sha256:bytes:5a40f1c4b7c13f8678de7fdd41bf090c39071fc884c2e4dfed6c1f03e0ecb09c", "publishDecision": "approved", "holdReason": null, - "creatorOrRightsholder": "MoDiff project maintainers", - "creationMethod": "MoDiff-authored Gallery manifest, reviewed provenance or quality review for the accepted morning batch", + "creatorOrRightsholder": "sourav-das / MoDiff project maintainers", + "creationMethod": "MoDiff-authored technical provenance or quality metadata derived from the explicitly approved source-media packet", "sourceUrl": null, "sourceRevision": null, - "sourceLicense": "Apache-2.0 project-authored metadata; generated-media terms remain in their exact per-file record", - "modelTerms": [], - "aiGenerated": false, + "sourceLicense": "Apache-2.0 project-authored metadata; image/model terms remain in their own per-file records", + "modelTerms": [ + "AI-assisted technical quality assessment authored in Codex for this project; no model weights or additional generated media are included." + ], + "aiGenerated": true, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [], "assetLicense": "Apache-2.0", - "reviewedBy": "SOURAV DAS", - "reviewedAt": "2026-11-10", - "reviewClass": "per-file-maintainer-approved-gallery-registration", - "provenanceTemplateId": "flux_fill_outpaint", - "humanApprovalPacketSHA256": "351d122936dc8df9c3fb6217005641dd2cc2ecddc39cd7cd7fadc2939def70b3" + "reviewedBy": "Codex (technical metadata); sourav-das (underlying exact-file rights and publication approval)", + "reviewedAt": "2026-10-31", + "reviewClass": "technical-derivation-of-human-approved-media", + "humanApprovalPacketSHA256": "a55745498d9c767d581d947b90b12ad4308e5f95b870224ef67107d5894f2499", + "humanApprovalScope": "Exact source images, authored mask and SHA-bound review packet. Numeric quality scores are the AI assessment, not human-supplied scores. The metadata is project-authored; it introduces no new third-party media rights." }, { - "path": "template-gallery/reviews/flux_fill_outpaint.reviewed-provenance.json", - "sha256": "sha256:bytes:83bd50a5df98a04d55a86ca75b3f39a5d87d11221910a8f2d1cc570dc5cc423c", + "path": "template-gallery/reviews/flux3_klein_base_fp8r512_raw_coordinate_prompt.reviewed-provenance.json", + "sha256": "sha256:bytes:e5684e876125a01c342b522b2a0d8350ae978f6543ccdfcaf56ec2011ccebb5f", "publishDecision": "approved", "holdReason": null, - "creatorOrRightsholder": "MoDiff project maintainers", - "creationMethod": "MoDiff-authored Gallery manifest, reviewed provenance or quality review for the accepted morning batch", + "creatorOrRightsholder": "sourav-das / MoDiff project maintainers", + "creationMethod": "MoDiff-authored technical provenance or quality metadata derived from the explicitly approved source-media packet", "sourceUrl": null, "sourceRevision": null, - "sourceLicense": "Apache-2.0 project-authored metadata; generated-media terms remain in their exact per-file record", + "sourceLicense": "Apache-2.0 project-authored metadata; image/model terms remain in their own per-file records", "modelTerms": [], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [], "assetLicense": "Apache-2.0", - "reviewedBy": "SOURAV DAS", - "reviewedAt": "2026-11-10", - "reviewClass": "per-file-maintainer-approved-gallery-registration", - "provenanceTemplateId": "flux_fill_outpaint", - "humanApprovalPacketSHA256": "351d122936dc8df9c3fb6217005641dd2cc2ecddc39cd7cd7fadc2939def70b3" + "reviewedBy": "Codex (technical metadata); sourav-das (underlying exact-file rights and publication approval)", + "reviewedAt": "2026-10-31", + "reviewClass": "technical-derivation-of-human-approved-media", + "humanApprovalPacketSHA256": "a55745498d9c767d581d947b90b12ad4308e5f95b870224ef67107d5894f2499", + "humanApprovalScope": "Exact source images, authored mask and SHA-bound review packet. Numeric quality scores are the AI assessment, not human-supplied scores. The metadata is project-authored; it introduces no new third-party media rights." }, { - "path": "template-gallery/reviews/flux_kontext_edit.quality-review.json", - "sha256": "sha256:bytes:b4ecdefeee42100d34df1f4a1d05c944c3c950e586a7d644496d36961e66c593", + "path": "template-gallery/reviews/flux3_klein_base_fp8r512_single_reference_edit.quality-review.json", + "sha256": "sha256:bytes:f81ca736173a93bb214088dda9879efd933675799244f363506770202ffc80e0", "publishDecision": "approved", "holdReason": null, - "creatorOrRightsholder": "MoDiff project maintainers", - "creationMethod": "MoDiff-authored technical, review, input-binding or retained recipe metadata for three maintainer-accepted assets", + "creatorOrRightsholder": "sourav-das / MoDiff project maintainers", + "creationMethod": "MoDiff-authored technical provenance or quality metadata derived from the explicitly approved source-media packet", "sourceUrl": null, "sourceRevision": null, - "sourceLicense": "Apache-2.0 project-authored metadata; generated-media model terms are retained separately", - "modelTerms": [], - "aiGenerated": false, + "sourceLicense": "Apache-2.0 project-authored metadata; image/model terms remain in their own per-file records", + "modelTerms": [ + "AI-assisted technical quality assessment authored in Codex for this project; no model weights or additional generated media are included." + ], + "aiGenerated": true, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [], "assetLicense": "Apache-2.0", - "reviewedBy": "maintainer (current user)", - "reviewedAt": "2026-11-12", - "reviewClass": "per-file-maintainer-accepted-native-three-registration", - "provenanceTemplateId": "flux_kontext_edit", - "humanApprovalPacketSHA256": "69c6b3d9b0ea2fcca16ee538f6e75b414b7141658b74f10578758e61360f63fd" + "reviewedBy": "Codex (technical metadata); sourav-das (underlying exact-file rights and publication approval)", + "reviewedAt": "2026-10-31", + "reviewClass": "technical-derivation-of-human-approved-media", + "humanApprovalPacketSHA256": "a55745498d9c767d581d947b90b12ad4308e5f95b870224ef67107d5894f2499", + "humanApprovalScope": "Exact source images, authored mask and SHA-bound review packet. Numeric quality scores are the AI assessment, not human-supplied scores. The metadata is project-authored; it introduces no new third-party media rights." }, { - "path": "template-gallery/reviews/flux_kontext_edit.reviewed-provenance.json", - "sha256": "sha256:bytes:a1d3b7605879400b4675dbb92e52b510648d331cbdc715026695b951a4f9970f", - "publishDecision": "approved", + "path": "template-gallery/reviews/flux3_klein_base_fp8r512_single_reference_edit.reviewed-provenance.json", + "sha256": "sha256:bytes:145688ff7654e0f2b058caf1e3cdc7f4621cd160bc57967529fbfc6deba3e55f", + "publishDecision": "approved", "holdReason": null, - "creatorOrRightsholder": "MoDiff project maintainers", - "creationMethod": "MoDiff-authored technical, review, input-binding or retained recipe metadata for three maintainer-accepted assets", + "creatorOrRightsholder": "sourav-das / MoDiff project maintainers", + "creationMethod": "MoDiff-authored technical provenance or quality metadata derived from the explicitly approved source-media packet", "sourceUrl": null, "sourceRevision": null, - "sourceLicense": "Apache-2.0 project-authored metadata; generated-media model terms are retained separately", + "sourceLicense": "Apache-2.0 project-authored metadata; image/model terms remain in their own per-file records", "modelTerms": [], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [], "assetLicense": "Apache-2.0", - "reviewedBy": "maintainer (current user)", - "reviewedAt": "2026-11-12", - "reviewClass": "per-file-maintainer-accepted-native-three-registration", - "provenanceTemplateId": "flux_kontext_edit", - "humanApprovalPacketSHA256": "69c6b3d9b0ea2fcca16ee538f6e75b414b7141658b74f10578758e61360f63fd" + "reviewedBy": "Codex (technical metadata); sourav-das (underlying exact-file rights and publication approval)", + "reviewedAt": "2026-10-31", + "reviewClass": "technical-derivation-of-human-approved-media", + "humanApprovalPacketSHA256": "a55745498d9c767d581d947b90b12ad4308e5f95b870224ef67107d5894f2499", + "humanApprovalScope": "Exact source images, authored mask and SHA-bound review packet. Numeric quality scores are the AI assessment, not human-supplied scores. The metadata is project-authored; it introduces no new third-party media rights." }, { - "path": "template-gallery/reviews/flux_kontext_multi_reference.quality-review.json", - "sha256": "sha256:bytes:e81c8ef5da7e3e2a0d6b511c093052c6edcc5dff6c5ca59db393450ed2a1cb06", + "path": "template-gallery/reviews/flux3_klein_base_fp8r512_text_to_image.quality-review.json", + "sha256": "sha256:bytes:e4db5a6f68664c24496139808737c35843ad013a84ed8c647cb7bda822b3ab55", "publishDecision": "approved", "holdReason": null, - "creatorOrRightsholder": "MoDiff project maintainers", - "creationMethod": "MoDiff-authored technical, review, input-binding or retained recipe metadata for three maintainer-accepted assets", + "creatorOrRightsholder": "sourav-das / MoDiff project maintainers", + "creationMethod": "MoDiff-authored technical provenance or quality metadata derived from the explicitly approved source-media packet", "sourceUrl": null, "sourceRevision": null, - "sourceLicense": "Apache-2.0 project-authored metadata; generated-media model terms are retained separately", - "modelTerms": [], - "aiGenerated": false, + "sourceLicense": "Apache-2.0 project-authored metadata; image/model terms remain in their own per-file records", + "modelTerms": [ + "AI-assisted technical quality assessment authored in Codex for this project; no model weights or additional generated media are included." + ], + "aiGenerated": true, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [], "assetLicense": "Apache-2.0", - "reviewedBy": "maintainer (current user)", - "reviewedAt": "2026-11-12", - "reviewClass": "per-file-maintainer-accepted-native-three-registration", - "provenanceTemplateId": "flux_kontext_multi_reference", - "humanApprovalPacketSHA256": "69c6b3d9b0ea2fcca16ee538f6e75b414b7141658b74f10578758e61360f63fd" + "reviewedBy": "Codex (technical metadata); sourav-das (underlying exact-file rights and publication approval)", + "reviewedAt": "2026-10-31", + "reviewClass": "technical-derivation-of-human-approved-media", + "humanApprovalPacketSHA256": "a55745498d9c767d581d947b90b12ad4308e5f95b870224ef67107d5894f2499", + "humanApprovalScope": "Exact source images, authored mask and SHA-bound review packet. Numeric quality scores are the AI assessment, not human-supplied scores. The metadata is project-authored; it introduces no new third-party media rights." }, { - "path": "template-gallery/reviews/flux_kontext_multi_reference.reviewed-provenance.json", - "sha256": "sha256:bytes:14db077ec2ae9cbc640bab2585a5105d2b129eafded32e7ea7be2464b412bb25", + "path": "template-gallery/reviews/flux3_klein_base_fp8r512_text_to_image.reviewed-provenance.json", + "sha256": "sha256:bytes:2db502f5981665759b16abab179f12ae0093312c5bc99fcc33bb346bc6d3ff05", "publishDecision": "approved", "holdReason": null, - "creatorOrRightsholder": "MoDiff project maintainers", - "creationMethod": "MoDiff-authored technical, review, input-binding or retained recipe metadata for three maintainer-accepted assets", + "creatorOrRightsholder": "sourav-das / MoDiff project maintainers", + "creationMethod": "MoDiff-authored technical provenance or quality metadata derived from the explicitly approved source-media packet", "sourceUrl": null, "sourceRevision": null, - "sourceLicense": "Apache-2.0 project-authored metadata; generated-media model terms are retained separately", + "sourceLicense": "Apache-2.0 project-authored metadata; image/model terms remain in their own per-file records", "modelTerms": [], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [], "assetLicense": "Apache-2.0", - "reviewedBy": "maintainer (current user)", - "reviewedAt": "2026-11-12", - "reviewClass": "per-file-maintainer-accepted-native-three-registration", - "provenanceTemplateId": "flux_kontext_multi_reference", - "humanApprovalPacketSHA256": "69c6b3d9b0ea2fcca16ee538f6e75b414b7141658b74f10578758e61360f63fd" + "reviewedBy": "Codex (technical metadata); sourav-das (underlying exact-file rights and publication approval)", + "reviewedAt": "2026-10-31", + "reviewClass": "technical-derivation-of-human-approved-media", + "humanApprovalPacketSHA256": "a55745498d9c767d581d947b90b12ad4308e5f95b870224ef67107d5894f2499", + "humanApprovalScope": "Exact source images, authored mask and SHA-bound review packet. Numeric quality scores are the AI assessment, not human-supplied scores. The metadata is project-authored; it introduces no new third-party media rights." }, { - "path": "template-gallery/reviews/flux_krea_text_to_image.quality-review.json", - "sha256": "sha256:bytes:e60051b4da6abcd87c5c1356a2ff3dae280d92fbe25f9a95360f6d54bad93c45", + "path": "template-gallery/reviews/flux3_klein_fp8r512_lora_style.quality-review.json", + "sha256": "sha256:bytes:563cf20531167d3661cecb5e6897bae7d8a1485eff49e7f16c8cd7fef6486f10", "publishDecision": "approved", "holdReason": null, - "creatorOrRightsholder": "MoDiff project maintainers", - "creationMethod": "MoDiff-authored Gallery manifest, reviewed provenance or quality review for the accepted morning batch", + "creatorOrRightsholder": "sourav-das / MoDiff project maintainers", + "creationMethod": "MoDiff-authored technical provenance or quality metadata derived from the explicitly approved source-media packet", "sourceUrl": null, "sourceRevision": null, - "sourceLicense": "Apache-2.0 project-authored metadata; generated-media terms remain in their exact per-file record", - "modelTerms": [], - "aiGenerated": false, + "sourceLicense": "Apache-2.0 project-authored metadata; image/model terms remain in their own per-file records", + "modelTerms": [ + "AI-assisted technical quality assessment authored in Codex for this project; no model weights or additional generated media are included." + ], + "aiGenerated": true, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [], "assetLicense": "Apache-2.0", - "reviewedBy": "SOURAV DAS", - "reviewedAt": "2026-11-10", - "reviewClass": "per-file-maintainer-approved-gallery-registration", - "provenanceTemplateId": "flux_krea_text_to_image", - "humanApprovalPacketSHA256": "351d122936dc8df9c3fb6217005641dd2cc2ecddc39cd7cd7fadc2939def70b3" + "reviewedBy": "Codex (technical metadata); sourav-das (underlying exact-file rights and publication approval)", + "reviewedAt": "2026-10-31", + "reviewClass": "technical-derivation-of-human-approved-media", + "humanApprovalPacketSHA256": "a55745498d9c767d581d947b90b12ad4308e5f95b870224ef67107d5894f2499", + "humanApprovalScope": "Exact source images, authored mask and SHA-bound review packet. Numeric quality scores are the AI assessment, not human-supplied scores. The metadata is project-authored; it introduces no new third-party media rights." }, { - "path": "template-gallery/reviews/flux_krea_text_to_image.reviewed-provenance.json", - "sha256": "sha256:bytes:6cc4951f1e036aa80a7e92f80be0c40d37336f0f76ca7fe3dc118679f3cd08f3", + "path": "template-gallery/reviews/flux3_klein_fp8r512_lora_style.reviewed-provenance.json", + "sha256": "sha256:bytes:945f99e2d8c924809a4e9d6f91056ec417715b7db5e06b2ec0d51a016bdc219b", "publishDecision": "approved", "holdReason": null, - "creatorOrRightsholder": "MoDiff project maintainers", - "creationMethod": "MoDiff-authored Gallery manifest, reviewed provenance or quality review for the accepted morning batch", + "creatorOrRightsholder": "sourav-das / MoDiff project maintainers", + "creationMethod": "MoDiff-authored technical provenance or quality metadata derived from the explicitly approved source-media packet", "sourceUrl": null, "sourceRevision": null, - "sourceLicense": "Apache-2.0 project-authored metadata; generated-media terms remain in their exact per-file record", + "sourceLicense": "Apache-2.0 project-authored metadata; image/model terms remain in their own per-file records", "modelTerms": [], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [], "assetLicense": "Apache-2.0", - "reviewedBy": "SOURAV DAS", - "reviewedAt": "2026-11-10", - "reviewClass": "per-file-maintainer-approved-gallery-registration", - "provenanceTemplateId": "flux_krea_text_to_image", - "humanApprovalPacketSHA256": "351d122936dc8df9c3fb6217005641dd2cc2ecddc39cd7cd7fadc2939def70b3" + "reviewedBy": "Codex (technical metadata); sourav-das (underlying exact-file rights and publication approval)", + "reviewedAt": "2026-10-31", + "reviewClass": "technical-derivation-of-human-approved-media", + "humanApprovalPacketSHA256": "a55745498d9c767d581d947b90b12ad4308e5f95b870224ef67107d5894f2499", + "humanApprovalScope": "Exact source images, authored mask and SHA-bound review packet. Numeric quality scores are the AI assessment, not human-supplied scores. The metadata is project-authored; it introduces no new third-party media rights." }, { - "creatorOrRightsholder": "MoDiff project maintainers", - "creationMethod": "Project-authored redacted technical/review records or versioned declarations for six maintainer-accepted native results", + "path": "template-gallery/reviews/flux3_klein_fp8r512_multi_reference_edit.quality-review.json", + "sha256": "sha256:bytes:ba9c380fe4ccea2f731999d6aa7d116e4ebf4078c8ddb29ea88f2fee8d37dec9", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "sourav-das / MoDiff project maintainers", + "creationMethod": "MoDiff-authored technical provenance or quality metadata derived from the explicitly approved source-media packet", "sourceUrl": null, "sourceRevision": null, - "sourceLicense": "Apache-2.0 project-authored metadata; media and model terms remain separate", - "modelTerms": [], - "aiGenerated": false, + "sourceLicense": "Apache-2.0 project-authored metadata; image/model terms remain in their own per-file records", + "modelTerms": [ + "AI-assisted technical quality assessment authored in Codex for this project; no model weights or additional generated media are included." + ], + "aiGenerated": true, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [], "assetLicense": "Apache-2.0", - "path": "template-gallery/reviews/flux_lora_cinematic_octane_3d.quality-review.json", - "sha256": "sha256:bytes:b145a9798d1ac5c44516f02308008140a08bb99ae35a014dd381a650cb30c7f9", - "publishDecision": "approved", - "holdReason": null, - "reviewedBy": "SOURAV DAS", - "reviewedAt": "2026-11-13", - "reviewClass": "per-file-maintainer-accepted-native-six-registration", - "humanApprovalPacketSHA256": "03b66b4631afb15032d62a1705331b56f6b12c4882c23945175ec92cc45a506f", - "publicationBasis": "Register the six approved assets now while Moonflower runs on Linux. Use Windows in parallel wherever possible, and keep the longer workflows separate for AMD cloud.", - "provenanceTemplateId": "flux_lora_cinematic_octane_3d" + "reviewedBy": "Codex (technical metadata); sourav-das (underlying exact-file rights and publication approval)", + "reviewedAt": "2026-10-31", + "reviewClass": "technical-derivation-of-human-approved-media", + "humanApprovalPacketSHA256": "a55745498d9c767d581d947b90b12ad4308e5f95b870224ef67107d5894f2499", + "humanApprovalScope": "Exact source images, authored mask and SHA-bound review packet. Numeric quality scores are the AI assessment, not human-supplied scores. The metadata is project-authored; it introduces no new third-party media rights." }, { - "creatorOrRightsholder": "MoDiff project maintainers", - "creationMethod": "Project-authored redacted technical/review records or versioned declarations for six maintainer-accepted native results", + "path": "template-gallery/reviews/flux3_klein_fp8r512_multi_reference_edit.reviewed-provenance.json", + "sha256": "sha256:bytes:d89ef493877766cc1eb753cc6bdfd9e44dd6a71f33c8969287b4e70b33544f31", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "sourav-das / MoDiff project maintainers", + "creationMethod": "MoDiff-authored technical provenance or quality metadata derived from the explicitly approved source-media packet", "sourceUrl": null, "sourceRevision": null, - "sourceLicense": "Apache-2.0 project-authored metadata; media and model terms remain separate", + "sourceLicense": "Apache-2.0 project-authored metadata; image/model terms remain in their own per-file records", "modelTerms": [], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [], "assetLicense": "Apache-2.0", - "path": "template-gallery/reviews/flux_lora_cinematic_octane_3d.reviewed-provenance.json", - "sha256": "sha256:bytes:62bf8f0c28985cd8be0da00e7c74548a63dc0daa2893e1aaef7bb7a370b6aa35", - "publishDecision": "approved", - "holdReason": null, - "reviewedBy": "SOURAV DAS", - "reviewedAt": "2026-11-13", - "reviewClass": "per-file-maintainer-accepted-native-six-registration", - "humanApprovalPacketSHA256": "03b66b4631afb15032d62a1705331b56f6b12c4882c23945175ec92cc45a506f", - "publicationBasis": "Register the six approved assets now while Moonflower runs on Linux. Use Windows in parallel wherever possible, and keep the longer workflows separate for AMD cloud.", - "provenanceTemplateId": "flux_lora_cinematic_octane_3d" + "reviewedBy": "Codex (technical metadata); sourav-das (underlying exact-file rights and publication approval)", + "reviewedAt": "2026-10-31", + "reviewClass": "technical-derivation-of-human-approved-media", + "humanApprovalPacketSHA256": "a55745498d9c767d581d947b90b12ad4308e5f95b870224ef67107d5894f2499", + "humanApprovalScope": "Exact source images, authored mask and SHA-bound review packet. Numeric quality scores are the AI assessment, not human-supplied scores. The metadata is project-authored; it introduces no new third-party media rights." }, { - "path": "template-gallery/reviews/flux_lora_film_noir.quality-review.json", - "sha256": "sha256:bytes:d3cf61a480ef2d55e4371d70806b1b70ecd2f97b038906767f36046f7211c1d4", + "path": "template-gallery/reviews/flux3_klein_fp8r512_raw_coordinate_prompt.quality-review.json", + "sha256": "sha256:bytes:5b8429b8102aba95b1fc76e8ff0b3ee823a489ae1ae771c5f10b2c92f583ddf5", "publishDecision": "approved", "holdReason": null, - "creatorOrRightsholder": "MoDiff project maintainers", - "creationMethod": "Project-authored Gallery manifest, native provenance or accepted quality review", + "creatorOrRightsholder": "sourav-das / MoDiff project maintainers", + "creationMethod": "MoDiff-authored technical provenance or quality metadata derived from the explicitly approved source-media packet", "sourceUrl": null, "sourceRevision": null, - "sourceLicense": "Apache-2.0 project-authored metadata", - "modelTerms": [], - "aiGenerated": false, + "sourceLicense": "Apache-2.0 project-authored metadata; image/model terms remain in their own per-file records", + "modelTerms": [ + "AI-assisted technical quality assessment authored in Codex for this project; no model weights or additional generated media are included." + ], + "aiGenerated": true, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [], "assetLicense": "Apache-2.0", - "reviewedBy": "SOURAV DAS", - "reviewedAt": "2026-11-10", - "reviewClass": "per-file-maintainer-accepted-native-gallery-registration", - "provenanceTemplateId": "flux_lora_film_noir", - "humanApprovalPacketSHA256": "73ddf9ea7fc27eccc6b93817809421a008ce0fd2fb3080ffbdc5831a09205304" + "reviewedBy": "Codex (technical metadata); sourav-das (underlying exact-file rights and publication approval)", + "reviewedAt": "2026-10-31", + "reviewClass": "technical-derivation-of-human-approved-media", + "humanApprovalPacketSHA256": "a55745498d9c767d581d947b90b12ad4308e5f95b870224ef67107d5894f2499", + "humanApprovalScope": "Exact source images, authored mask and SHA-bound review packet. Numeric quality scores are the AI assessment, not human-supplied scores. The metadata is project-authored; it introduces no new third-party media rights." }, { - "path": "template-gallery/reviews/flux_lora_film_noir.reviewed-provenance.json", - "sha256": "sha256:bytes:063c3b4d37ec01f694e47ca06bce70c54bc9e0abc682fb0b22f914be868a2e18", + "path": "template-gallery/reviews/flux3_klein_fp8r512_raw_coordinate_prompt.reviewed-provenance.json", + "sha256": "sha256:bytes:27ec68baa354642081ee764d33632cafcfeb8477ef05ec6ce1e7ec9d2925d410", "publishDecision": "approved", "holdReason": null, - "creatorOrRightsholder": "MoDiff project maintainers", - "creationMethod": "Project-authored Gallery manifest, native provenance or accepted quality review", + "creatorOrRightsholder": "sourav-das / MoDiff project maintainers", + "creationMethod": "MoDiff-authored technical provenance or quality metadata derived from the explicitly approved source-media packet", "sourceUrl": null, "sourceRevision": null, - "sourceLicense": "Apache-2.0 project-authored metadata", + "sourceLicense": "Apache-2.0 project-authored metadata; image/model terms remain in their own per-file records", "modelTerms": [], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [], "assetLicense": "Apache-2.0", - "reviewedBy": "SOURAV DAS", - "reviewedAt": "2026-11-10", - "reviewClass": "per-file-maintainer-accepted-native-gallery-registration", - "provenanceTemplateId": "flux_lora_film_noir", - "humanApprovalPacketSHA256": "73ddf9ea7fc27eccc6b93817809421a008ce0fd2fb3080ffbdc5831a09205304" + "reviewedBy": "Codex (technical metadata); sourav-das (underlying exact-file rights and publication approval)", + "reviewedAt": "2026-10-31", + "reviewClass": "technical-derivation-of-human-approved-media", + "humanApprovalPacketSHA256": "a55745498d9c767d581d947b90b12ad4308e5f95b870224ef67107d5894f2499", + "humanApprovalScope": "Exact source images, authored mask and SHA-bound review packet. Numeric quality scores are the AI assessment, not human-supplied scores. The metadata is project-authored; it introduces no new third-party media rights." }, { - "path": "template-gallery/reviews/flux_lora_ghibli_story.quality-review.json", - "sha256": "sha256:bytes:6009868ad3e76b584a12eb4193daf7680a0f224224bcda917c2ebbe8f543d1a5", + "path": "template-gallery/reviews/flux3_klein_fp8r512_single_reference_edit.quality-review.json", + "sha256": "sha256:bytes:d3af7d89f63eabfd9313ca12b8ec6b644ae14379265e83ecf75aab453c2df4af", "publishDecision": "approved", "holdReason": null, - "creatorOrRightsholder": "MoDiff project maintainers", - "creationMethod": "MoDiff-authored technical metadata or review record", + "creatorOrRightsholder": "sourav-das / MoDiff project maintainers", + "creationMethod": "MoDiff-authored technical provenance or quality metadata derived from the explicitly approved source-media packet", "sourceUrl": null, "sourceRevision": null, - "sourceLicense": "Apache-2.0", - "modelTerms": [], - "aiGenerated": false, + "sourceLicense": "Apache-2.0 project-authored metadata; image/model terms remain in their own per-file records", + "modelTerms": [ + "AI-assisted technical quality assessment authored in Codex for this project; no model weights or additional generated media are included." + ], + "aiGenerated": true, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [], "assetLicense": "Apache-2.0", - "reviewedBy": "SOURAV DAS", - "reviewedAt": "2026-08-03", - "reviewClass": "standard-human-attestation", - "provenanceTemplateId": "flux_lora_ghibli_story" + "reviewedBy": "Codex (technical metadata); sourav-das (underlying exact-file rights and publication approval)", + "reviewedAt": "2026-10-31", + "reviewClass": "technical-derivation-of-human-approved-media", + "humanApprovalPacketSHA256": "a55745498d9c767d581d947b90b12ad4308e5f95b870224ef67107d5894f2499", + "humanApprovalScope": "Exact source images, authored mask and SHA-bound review packet. Numeric quality scores are the AI assessment, not human-supplied scores. The metadata is project-authored; it introduces no new third-party media rights." }, { - "path": "template-gallery/reviews/flux_lora_ghibli_story.reviewed-provenance.json", - "sha256": "sha256:bytes:f87545939eb878e8655640f7563f6ddb93b355ba72c716959fb61c39806fa8a3", + "path": "template-gallery/reviews/flux3_klein_fp8r512_single_reference_edit.reviewed-provenance.json", + "sha256": "sha256:bytes:bf0f06495f4d9793ebf0f8bc8c4467e6aead1b935bbb5e319b59b92dac3e1b78", "publishDecision": "approved", "holdReason": null, - "creatorOrRightsholder": "MoDiff project maintainers", - "creationMethod": "MoDiff-authored technical metadata or review record", + "creatorOrRightsholder": "sourav-das / MoDiff project maintainers", + "creationMethod": "MoDiff-authored technical provenance or quality metadata derived from the explicitly approved source-media packet", "sourceUrl": null, "sourceRevision": null, - "sourceLicense": "Apache-2.0", + "sourceLicense": "Apache-2.0 project-authored metadata; image/model terms remain in their own per-file records", "modelTerms": [], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [], "assetLicense": "Apache-2.0", - "reviewedBy": "SOURAV DAS", - "reviewedAt": "2026-08-03", - "reviewClass": "standard-human-attestation", - "provenanceTemplateId": "flux_lora_ghibli_story" - }, - { - "path": "template-gallery/reviews/flux_lora_oil_painting.quality-review.json", - "sha256": "sha256:bytes:a081914ac871d3d02e47263f1807eb1dc112b861e517221a71ac6987df5611ee", + "reviewedBy": "Codex (technical metadata); sourav-das (underlying exact-file rights and publication approval)", + "reviewedAt": "2026-10-31", + "reviewClass": "technical-derivation-of-human-approved-media", + "humanApprovalPacketSHA256": "a55745498d9c767d581d947b90b12ad4308e5f95b870224ef67107d5894f2499", + "humanApprovalScope": "Exact source images, authored mask and SHA-bound review packet. Numeric quality scores are the AI assessment, not human-supplied scores. The metadata is project-authored; it introduces no new third-party media rights." + }, + { + "path": "template-gallery/reviews/flux3_klein_fp8r512_text_to_image.quality-review.json", + "sha256": "sha256:bytes:9c42b9b5987079824364e4749eaee7e9846949c8a8f9142092ac716447bbf063", "publishDecision": "approved", "holdReason": null, - "creatorOrRightsholder": "MoDiff project maintainers", - "creationMethod": "Project-authored Gallery manifest, native provenance or accepted quality review", + "creatorOrRightsholder": "sourav-das / MoDiff project maintainers", + "creationMethod": "MoDiff-authored technical provenance or quality metadata derived from the explicitly approved source-media packet", "sourceUrl": null, "sourceRevision": null, - "sourceLicense": "Apache-2.0 project-authored metadata", - "modelTerms": [], - "aiGenerated": false, + "sourceLicense": "Apache-2.0 project-authored metadata; image/model terms remain in their own per-file records", + "modelTerms": [ + "AI-assisted technical quality assessment authored in Codex for this project; no model weights or additional generated media are included." + ], + "aiGenerated": true, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [], "assetLicense": "Apache-2.0", - "reviewedBy": "SOURAV DAS", - "reviewedAt": "2026-11-10", - "reviewClass": "per-file-maintainer-accepted-native-gallery-registration", - "provenanceTemplateId": "flux_lora_oil_painting", - "humanApprovalPacketSHA256": "73ddf9ea7fc27eccc6b93817809421a008ce0fd2fb3080ffbdc5831a09205304" + "reviewedBy": "Codex (technical metadata); sourav-das (underlying exact-file rights and publication approval)", + "reviewedAt": "2026-10-31", + "reviewClass": "technical-derivation-of-human-approved-media", + "humanApprovalPacketSHA256": "a55745498d9c767d581d947b90b12ad4308e5f95b870224ef67107d5894f2499", + "humanApprovalScope": "Exact source images, authored mask and SHA-bound review packet. Numeric quality scores are the AI assessment, not human-supplied scores. The metadata is project-authored; it introduces no new third-party media rights." }, { - "path": "template-gallery/reviews/flux_lora_oil_painting.reviewed-provenance.json", - "sha256": "sha256:bytes:04e8530313e3bfcdf2c09550c17ffbe43aed0b4a28eaccf8b8153d217c2aa35f", + "path": "template-gallery/reviews/flux3_klein_fp8r512_text_to_image.reviewed-provenance.json", + "sha256": "sha256:bytes:bb4186fd1e2fdb16f03bbda92673cbbad1169c0c20a13987775eac45ffcca1d2", "publishDecision": "approved", "holdReason": null, - "creatorOrRightsholder": "MoDiff project maintainers", - "creationMethod": "Project-authored Gallery manifest, native provenance or accepted quality review", + "creatorOrRightsholder": "sourav-das / MoDiff project maintainers", + "creationMethod": "MoDiff-authored technical provenance or quality metadata derived from the explicitly approved source-media packet", "sourceUrl": null, "sourceRevision": null, - "sourceLicense": "Apache-2.0 project-authored metadata", + "sourceLicense": "Apache-2.0 project-authored metadata; image/model terms remain in their own per-file records", "modelTerms": [], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [], "assetLicense": "Apache-2.0", - "reviewedBy": "SOURAV DAS", - "reviewedAt": "2026-11-10", - "reviewClass": "per-file-maintainer-accepted-native-gallery-registration", - "provenanceTemplateId": "flux_lora_oil_painting", - "humanApprovalPacketSHA256": "73ddf9ea7fc27eccc6b93817809421a008ce0fd2fb3080ffbdc5831a09205304" + "reviewedBy": "Codex (technical metadata); sourav-das (underlying exact-file rights and publication approval)", + "reviewedAt": "2026-10-31", + "reviewClass": "technical-derivation-of-human-approved-media", + "humanApprovalPacketSHA256": "a55745498d9c767d581d947b90b12ad4308e5f95b870224ef67107d5894f2499", + "humanApprovalScope": "Exact source images, authored mask and SHA-bound review packet. Numeric quality scores are the AI assessment, not human-supplied scores. The metadata is project-authored; it introduces no new third-party media rights." }, { - "path": "template-gallery/reviews/flux_lora_paper_cutout.quality-review.json", - "sha256": "sha256:bytes:badbd8d5727387a36c3a65bf2780ea931578ea3c6f1dc50421fcce0352cbb45f", + "path": "template-gallery/reviews/flux_control_canny.quality-review.json", + "sha256": "sha256:bytes:18fe010ceca23f0e99deb1d854905d52d805c45931b4ab523c364ac36ae594ab", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers", - "creationMethod": "Project-authored Gallery manifest, native provenance or accepted quality review", + "creationMethod": "MoDiff-authored Gallery manifest, reviewed provenance or quality review for the accepted morning batch", "sourceUrl": null, "sourceRevision": null, - "sourceLicense": "Apache-2.0 project-authored metadata", + "sourceLicense": "Apache-2.0 project-authored metadata; generated-media terms remain in their exact per-file record", "modelTerms": [], "aiGenerated": false, "humanLikenessConsent": "not-applicable", @@ -7939,20 +8639,20 @@ "assetLicense": "Apache-2.0", "reviewedBy": "SOURAV DAS", "reviewedAt": "2026-11-10", - "reviewClass": "per-file-maintainer-accepted-native-gallery-registration", - "provenanceTemplateId": "flux_lora_paper_cutout", - "humanApprovalPacketSHA256": "73ddf9ea7fc27eccc6b93817809421a008ce0fd2fb3080ffbdc5831a09205304" + "reviewClass": "per-file-maintainer-approved-gallery-registration", + "provenanceTemplateId": "flux_control_canny", + "humanApprovalPacketSHA256": "351d122936dc8df9c3fb6217005641dd2cc2ecddc39cd7cd7fadc2939def70b3" }, { - "path": "template-gallery/reviews/flux_lora_paper_cutout.reviewed-provenance.json", - "sha256": "sha256:bytes:0824474e69c3917b7cecea1fa9830e9a473b5b6f1a11bb3f3293bb8237f30f7e", + "path": "template-gallery/reviews/flux_control_canny.reviewed-provenance.json", + "sha256": "sha256:bytes:de3e003b083c9ecbf1dfae92a5c9a225c963943be0820aba88e24723aecc70b0", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers", - "creationMethod": "Project-authored Gallery manifest, native provenance or accepted quality review", + "creationMethod": "MoDiff-authored Gallery manifest, reviewed provenance or quality review for the accepted morning batch", "sourceUrl": null, "sourceRevision": null, - "sourceLicense": "Apache-2.0 project-authored metadata", + "sourceLicense": "Apache-2.0 project-authored metadata; generated-media terms remain in their exact per-file record", "modelTerms": [], "aiGenerated": false, "humanLikenessConsent": "not-applicable", @@ -7961,13 +8661,13 @@ "assetLicense": "Apache-2.0", "reviewedBy": "SOURAV DAS", "reviewedAt": "2026-11-10", - "reviewClass": "per-file-maintainer-accepted-native-gallery-registration", - "provenanceTemplateId": "flux_lora_paper_cutout", - "humanApprovalPacketSHA256": "73ddf9ea7fc27eccc6b93817809421a008ce0fd2fb3080ffbdc5831a09205304" + "reviewClass": "per-file-maintainer-approved-gallery-registration", + "provenanceTemplateId": "flux_control_canny", + "humanApprovalPacketSHA256": "351d122936dc8df9c3fb6217005641dd2cc2ecddc39cd7cd7fadc2939def70b3" }, { - "path": "template-gallery/reviews/flux_lora_photoreal_documentary.quality-review.json", - "sha256": "sha256:bytes:36a405950da3e180bdea7d6912da7ec2d19ca8382e3f4a26bd9bb9e79cc5f6d6", + "path": "template-gallery/reviews/flux_depth_control.quality-review.json", + "sha256": "sha256:bytes:cfa61450e6b63ad91cdba6b5d17c8ee316db1ce6005b19569595e173c9800daf", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers", @@ -7984,12 +8684,12 @@ "reviewedBy": "SOURAV DAS", "reviewedAt": "2026-11-10", "reviewClass": "per-file-maintainer-approved-gallery-registration", - "provenanceTemplateId": "flux_lora_photoreal_documentary", + "provenanceTemplateId": "flux_depth_control", "humanApprovalPacketSHA256": "351d122936dc8df9c3fb6217005641dd2cc2ecddc39cd7cd7fadc2939def70b3" }, { - "path": "template-gallery/reviews/flux_lora_photoreal_documentary.reviewed-provenance.json", - "sha256": "sha256:bytes:80b8756cfa9e3cc14716d82a93f7322b08d2f53901b913ab119258891fc4dffb", + "path": "template-gallery/reviews/flux_depth_control.reviewed-provenance.json", + "sha256": "sha256:bytes:845284bdb0898bb02ddd178e1de0c4b24e2281ae8f84c15eb09de2798abfcf79", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers", @@ -8006,12 +8706,12 @@ "reviewedBy": "SOURAV DAS", "reviewedAt": "2026-11-10", "reviewClass": "per-file-maintainer-approved-gallery-registration", - "provenanceTemplateId": "flux_lora_photoreal_documentary", + "provenanceTemplateId": "flux_depth_control", "humanApprovalPacketSHA256": "351d122936dc8df9c3fb6217005641dd2cc2ecddc39cd7cd7fadc2939def70b3" }, { - "path": "template-gallery/reviews/flux_lora_retro_comic.quality-review.json", - "sha256": "sha256:bytes:4436655b45348e57831e147e268e80be4759cd5aec0e6e0eb8d6f1530de06435", + "path": "template-gallery/reviews/flux_dev_expert_text_to_image.quality-review.json", + "sha256": "sha256:bytes:4b7d81b2a342e898519cfef4ea3ada3325831a7a0c93b0966a42d59f74999715", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers", @@ -8028,12 +8728,12 @@ "reviewedBy": "SOURAV DAS", "reviewedAt": "2026-11-10", "reviewClass": "per-file-maintainer-approved-gallery-registration", - "provenanceTemplateId": "flux_lora_retro_comic", + "provenanceTemplateId": "flux_dev_expert_text_to_image", "humanApprovalPacketSHA256": "351d122936dc8df9c3fb6217005641dd2cc2ecddc39cd7cd7fadc2939def70b3" }, { - "path": "template-gallery/reviews/flux_lora_retro_comic.reviewed-provenance.json", - "sha256": "sha256:bytes:3e44966400c118ba7ea67c8c511dcd0aad51a7e59d64bf1d4a0b96566a96f3e2", + "path": "template-gallery/reviews/flux_dev_expert_text_to_image.reviewed-provenance.json", + "sha256": "sha256:bytes:56dd0d53dd62f58ff085722eb7266a7c4e10e591b0a78a9408c3b2061e656182", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers", @@ -8050,19 +8750,19 @@ "reviewedBy": "SOURAV DAS", "reviewedAt": "2026-11-10", "reviewClass": "per-file-maintainer-approved-gallery-registration", - "provenanceTemplateId": "flux_lora_retro_comic", + "provenanceTemplateId": "flux_dev_expert_text_to_image", "humanApprovalPacketSHA256": "351d122936dc8df9c3fb6217005641dd2cc2ecddc39cd7cd7fadc2939def70b3" }, { - "path": "template-gallery/reviews/flux_lora_watercolor.quality-review.json", - "sha256": "sha256:bytes:3454f88eecab20d70370fe23bbd9248d6e6e3255d0fbfc557a2f1103c94e7ef4", + "path": "template-gallery/reviews/flux_fill_inpaint.quality-review.json", + "sha256": "sha256:bytes:118df046dca340d5130af71eefea56e4d0182c2beb9b01ac4de9da102fb002ff", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers", - "creationMethod": "MoDiff-authored Gallery manifest, reviewed provenance or quality review for the accepted morning batch", + "creationMethod": "Project-authored Gallery manifest, native provenance or accepted quality review", "sourceUrl": null, "sourceRevision": null, - "sourceLicense": "Apache-2.0 project-authored metadata; generated-media terms remain in their exact per-file record", + "sourceLicense": "Apache-2.0 project-authored metadata", "modelTerms": [], "aiGenerated": false, "humanLikenessConsent": "not-applicable", @@ -8071,20 +8771,20 @@ "assetLicense": "Apache-2.0", "reviewedBy": "SOURAV DAS", "reviewedAt": "2026-11-10", - "reviewClass": "per-file-maintainer-approved-gallery-registration", - "provenanceTemplateId": "flux_lora_watercolor", - "humanApprovalPacketSHA256": "351d122936dc8df9c3fb6217005641dd2cc2ecddc39cd7cd7fadc2939def70b3" + "reviewClass": "per-file-maintainer-accepted-native-gallery-registration", + "provenanceTemplateId": "flux_fill_inpaint", + "humanApprovalPacketSHA256": "73ddf9ea7fc27eccc6b93817809421a008ce0fd2fb3080ffbdc5831a09205304" }, { - "path": "template-gallery/reviews/flux_lora_watercolor.reviewed-provenance.json", - "sha256": "sha256:bytes:c51b9dfb5471d1f0f704852672152a09f0c01aeeaee7f5dd0b324e5652fe8b6f", + "path": "template-gallery/reviews/flux_fill_inpaint.reviewed-provenance.json", + "sha256": "sha256:bytes:43b64ed1f67a2e36e9d7646eae58bc0aad9b1d49925425f5ebb98a0607577c3d", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers", - "creationMethod": "MoDiff-authored Gallery manifest, reviewed provenance or quality review for the accepted morning batch", + "creationMethod": "Project-authored Gallery manifest, native provenance or accepted quality review", "sourceUrl": null, "sourceRevision": null, - "sourceLicense": "Apache-2.0 project-authored metadata; generated-media terms remain in their exact per-file record", + "sourceLicense": "Apache-2.0 project-authored metadata", "modelTerms": [], "aiGenerated": false, "humanLikenessConsent": "not-applicable", @@ -8093,153 +8793,149 @@ "assetLicense": "Apache-2.0", "reviewedBy": "SOURAV DAS", "reviewedAt": "2026-11-10", - "reviewClass": "per-file-maintainer-approved-gallery-registration", - "provenanceTemplateId": "flux_lora_watercolor", - "humanApprovalPacketSHA256": "351d122936dc8df9c3fb6217005641dd2cc2ecddc39cd7cd7fadc2939def70b3" + "reviewClass": "per-file-maintainer-accepted-native-gallery-registration", + "provenanceTemplateId": "flux_fill_inpaint", + "humanApprovalPacketSHA256": "73ddf9ea7fc27eccc6b93817809421a008ce0fd2fb3080ffbdc5831a09205304" }, { + "path": "template-gallery/reviews/flux_fill_outpaint.quality-review.json", + "sha256": "sha256:bytes:cf7d2d52d6d95733fd75be94e96fac1b331e8ad8996d615640123e95d3604edf", + "publishDecision": "approved", + "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers", - "creationMethod": "Project-authored redacted technical/review records or versioned declarations for six maintainer-accepted native results", + "creationMethod": "MoDiff-authored Gallery manifest, reviewed provenance or quality review for the accepted morning batch", "sourceUrl": null, "sourceRevision": null, - "sourceLicense": "Apache-2.0 project-authored metadata; media and model terms remain separate", + "sourceLicense": "Apache-2.0 project-authored metadata; generated-media terms remain in their exact per-file record", "modelTerms": [], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [], "assetLicense": "Apache-2.0", - "path": "template-gallery/reviews/flux_redux_edit.quality-review.json", - "sha256": "sha256:bytes:10afc2e145791fb240bdcce1bcfbcee80280f5bec4cd15afe64985da51129788", - "publishDecision": "approved", - "holdReason": null, "reviewedBy": "SOURAV DAS", - "reviewedAt": "2026-11-13", - "reviewClass": "per-file-maintainer-accepted-native-six-registration", - "humanApprovalPacketSHA256": "03b66b4631afb15032d62a1705331b56f6b12c4882c23945175ec92cc45a506f", - "publicationBasis": "Register the six approved assets now while Moonflower runs on Linux. Use Windows in parallel wherever possible, and keep the longer workflows separate for AMD cloud.", - "provenanceTemplateId": "flux_redux_edit" + "reviewedAt": "2026-11-10", + "reviewClass": "per-file-maintainer-approved-gallery-registration", + "provenanceTemplateId": "flux_fill_outpaint", + "humanApprovalPacketSHA256": "351d122936dc8df9c3fb6217005641dd2cc2ecddc39cd7cd7fadc2939def70b3" }, { + "path": "template-gallery/reviews/flux_fill_outpaint.reviewed-provenance.json", + "sha256": "sha256:bytes:83bd50a5df98a04d55a86ca75b3f39a5d87d11221910a8f2d1cc570dc5cc423c", + "publishDecision": "approved", + "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers", - "creationMethod": "Project-authored redacted technical/review records or versioned declarations for six maintainer-accepted native results", + "creationMethod": "MoDiff-authored Gallery manifest, reviewed provenance or quality review for the accepted morning batch", "sourceUrl": null, "sourceRevision": null, - "sourceLicense": "Apache-2.0 project-authored metadata; media and model terms remain separate", + "sourceLicense": "Apache-2.0 project-authored metadata; generated-media terms remain in their exact per-file record", "modelTerms": [], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [], "assetLicense": "Apache-2.0", - "path": "template-gallery/reviews/flux_redux_edit.reviewed-provenance.json", - "sha256": "sha256:bytes:88dc41a06a6fa368953d24f0d20c0700a375465b6c49591653c5471754690c00", - "publishDecision": "approved", - "holdReason": null, "reviewedBy": "SOURAV DAS", - "reviewedAt": "2026-11-13", - "reviewClass": "per-file-maintainer-accepted-native-six-registration", - "humanApprovalPacketSHA256": "03b66b4631afb15032d62a1705331b56f6b12c4882c23945175ec92cc45a506f", - "publicationBasis": "Register the six approved assets now while Moonflower runs on Linux. Use Windows in parallel wherever possible, and keep the longer workflows separate for AMD cloud.", - "provenanceTemplateId": "flux_redux_edit" + "reviewedAt": "2026-11-10", + "reviewClass": "per-file-maintainer-approved-gallery-registration", + "provenanceTemplateId": "flux_fill_outpaint", + "humanApprovalPacketSHA256": "351d122936dc8df9c3fb6217005641dd2cc2ecddc39cd7cd7fadc2939def70b3" }, { + "path": "template-gallery/reviews/flux_kontext_edit.quality-review.json", + "sha256": "sha256:bytes:b4ecdefeee42100d34df1f4a1d05c944c3c950e586a7d644496d36961e66c593", + "publishDecision": "approved", + "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers", - "creationMethod": "Project-authored redacted technical/review records or versioned declarations for two maintainer-accepted native replacements", + "creationMethod": "MoDiff-authored technical, review, input-binding or retained recipe metadata for three maintainer-accepted assets", "sourceUrl": null, "sourceRevision": null, - "sourceLicense": "Apache-2.0 project-authored metadata; media and model terms remain separate", + "sourceLicense": "Apache-2.0 project-authored metadata; generated-media model terms are retained separately", "modelTerms": [], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [], "assetLicense": "Apache-2.0", - "path": "template-gallery/reviews/flux_redux_multi_reference.quality-review.json", - "sha256": "sha256:bytes:1e4c83b2db81df7e43b8e79a9a01cc8eadfd2de6c826c218d0c31b50d95b7441", - "publishDecision": "approved", - "holdReason": null, - "reviewedBy": "SOURAV DAS", - "reviewedAt": "2026-11-15", - "reviewClass": "per-file-maintainer-accepted-native-two-registration", - "humanApprovalPacketSHA256": "c3c5e06d05771cf28f823e1dee31a9e7e3765d2f84038823aaadc505ee8290f5", - "publicationBasis": "you can register these two as well", - "provenanceTemplateId": "flux_redux_multi_reference" + "reviewedBy": "maintainer (current user)", + "reviewedAt": "2026-11-12", + "reviewClass": "per-file-maintainer-accepted-native-three-registration", + "provenanceTemplateId": "flux_kontext_edit", + "humanApprovalPacketSHA256": "69c6b3d9b0ea2fcca16ee538f6e75b414b7141658b74f10578758e61360f63fd" }, { + "path": "template-gallery/reviews/flux_kontext_edit.reviewed-provenance.json", + "sha256": "sha256:bytes:a1d3b7605879400b4675dbb92e52b510648d331cbdc715026695b951a4f9970f", + "publishDecision": "approved", + "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers", - "creationMethod": "Project-authored redacted technical/review records or versioned declarations for two maintainer-accepted native replacements", + "creationMethod": "MoDiff-authored technical, review, input-binding or retained recipe metadata for three maintainer-accepted assets", "sourceUrl": null, "sourceRevision": null, - "sourceLicense": "Apache-2.0 project-authored metadata; media and model terms remain separate", + "sourceLicense": "Apache-2.0 project-authored metadata; generated-media model terms are retained separately", "modelTerms": [], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [], "assetLicense": "Apache-2.0", - "path": "template-gallery/reviews/flux_redux_multi_reference.reviewed-provenance.json", - "sha256": "sha256:bytes:dd1ea7815bc1bc51589ef774cc1f412b3f8bc2f16a7204a8efe56469913d8179", - "publishDecision": "approved", - "holdReason": null, - "reviewedBy": "SOURAV DAS", - "reviewedAt": "2026-11-15", - "reviewClass": "per-file-maintainer-accepted-native-two-registration", - "humanApprovalPacketSHA256": "c3c5e06d05771cf28f823e1dee31a9e7e3765d2f84038823aaadc505ee8290f5", - "publicationBasis": "you can register these two as well", - "provenanceTemplateId": "flux_redux_multi_reference" + "reviewedBy": "maintainer (current user)", + "reviewedAt": "2026-11-12", + "reviewClass": "per-file-maintainer-accepted-native-three-registration", + "provenanceTemplateId": "flux_kontext_edit", + "humanApprovalPacketSHA256": "69c6b3d9b0ea2fcca16ee538f6e75b414b7141658b74f10578758e61360f63fd" }, { - "path": "template-gallery/reviews/flux_schnell_text_to_image.quality-review.json", - "sha256": "sha256:bytes:5eeda44bb0b251f27d30973ad62659d2d247f1ab620eb4b48af154385958530e", + "path": "template-gallery/reviews/flux_kontext_multi_reference.quality-review.json", + "sha256": "sha256:bytes:e81c8ef5da7e3e2a0d6b511c093052c6edcc5dff6c5ca59db393450ed2a1cb06", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers", - "creationMethod": "MoDiff-authored technical provenance, Gallery manifest or quality review for the explicitly approved retained native Linux FLUX.1 Schnell image", + "creationMethod": "MoDiff-authored technical, review, input-binding or retained recipe metadata for three maintainer-accepted assets", "sourceUrl": null, "sourceRevision": null, - "sourceLicense": "Apache-2.0 project-authored metadata; generated-media terms remain in their exact per-file record", + "sourceLicense": "Apache-2.0 project-authored metadata; generated-media model terms are retained separately", "modelTerms": [], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [], "assetLicense": "Apache-2.0", - "reviewedBy": "SOURAV DAS", - "reviewedAt": "2026-11-10", - "reviewClass": "per-file-human-approved-retained-schnell-limited-image-registration", - "provenanceTemplateId": "flux_schnell_text_to_image", - "humanApprovalPacketSHA256": "488dc05971842cc9ed2b31c5995de204015d8b6a975ebc917329dfe3eac71d2c" + "reviewedBy": "maintainer (current user)", + "reviewedAt": "2026-11-12", + "reviewClass": "per-file-maintainer-accepted-native-three-registration", + "provenanceTemplateId": "flux_kontext_multi_reference", + "humanApprovalPacketSHA256": "69c6b3d9b0ea2fcca16ee538f6e75b414b7141658b74f10578758e61360f63fd" }, { - "path": "template-gallery/reviews/flux_schnell_text_to_image.reviewed-provenance.json", - "sha256": "sha256:bytes:ccf1ec3ab127ce8c01008df4a8a323bac0548e83679281d58c7d77a964ae07a9", + "path": "template-gallery/reviews/flux_kontext_multi_reference.reviewed-provenance.json", + "sha256": "sha256:bytes:14db077ec2ae9cbc640bab2585a5105d2b129eafded32e7ea7be2464b412bb25", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers", - "creationMethod": "MoDiff-authored technical provenance, Gallery manifest or quality review for the explicitly approved retained native Linux FLUX.1 Schnell image", + "creationMethod": "MoDiff-authored technical, review, input-binding or retained recipe metadata for three maintainer-accepted assets", "sourceUrl": null, "sourceRevision": null, - "sourceLicense": "Apache-2.0 project-authored metadata; generated-media terms remain in their exact per-file record", + "sourceLicense": "Apache-2.0 project-authored metadata; generated-media model terms are retained separately", "modelTerms": [], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [], "assetLicense": "Apache-2.0", - "reviewedBy": "SOURAV DAS", - "reviewedAt": "2026-11-10", - "reviewClass": "per-file-human-approved-retained-schnell-limited-image-registration", - "provenanceTemplateId": "flux_schnell_text_to_image", - "humanApprovalPacketSHA256": "488dc05971842cc9ed2b31c5995de204015d8b6a975ebc917329dfe3eac71d2c" + "reviewedBy": "maintainer (current user)", + "reviewedAt": "2026-11-12", + "reviewClass": "per-file-maintainer-accepted-native-three-registration", + "provenanceTemplateId": "flux_kontext_multi_reference", + "humanApprovalPacketSHA256": "69c6b3d9b0ea2fcca16ee538f6e75b414b7141658b74f10578758e61360f63fd" }, { - "path": "template-gallery/reviews/high_quality.quality-review.json", - "sha256": "sha256:bytes:859a90999ac580d2dfbf45a39d26c475e2af362a6e5a95d72c6ff05626fca54c", + "path": "template-gallery/reviews/flux_krea_text_to_image.quality-review.json", + "sha256": "sha256:bytes:e60051b4da6abcd87c5c1356a2ff3dae280d92fbe25f9a95360f6d54bad93c45", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers", - "creationMethod": "MoDiff-authored technical provenance, Gallery manifest or quality review for the explicitly approved native Qwen bakery image", + "creationMethod": "MoDiff-authored Gallery manifest, reviewed provenance or quality review for the accepted morning batch", "sourceUrl": null, "sourceRevision": null, "sourceLicense": "Apache-2.0 project-authored metadata; generated-media terms remain in their exact per-file record", @@ -8251,17 +8947,17 @@ "assetLicense": "Apache-2.0", "reviewedBy": "SOURAV DAS", "reviewedAt": "2026-11-10", - "reviewClass": "per-file-human-approved-qwen-native-image-registration", - "provenanceTemplateId": "high_quality", - "humanApprovalPacketSHA256": "dcea9bcff1de179dad3357926933fe869b99c063cee0f4dc1764833e3cf3ea53" + "reviewClass": "per-file-maintainer-approved-gallery-registration", + "provenanceTemplateId": "flux_krea_text_to_image", + "humanApprovalPacketSHA256": "351d122936dc8df9c3fb6217005641dd2cc2ecddc39cd7cd7fadc2939def70b3" }, { - "path": "template-gallery/reviews/high_quality.reviewed-provenance.json", - "sha256": "sha256:bytes:082cd7fc2b3345ff6bf881df607e19dc9e175081e2f029cf01f2abdafcbc17d4", + "path": "template-gallery/reviews/flux_krea_text_to_image.reviewed-provenance.json", + "sha256": "sha256:bytes:6cc4951f1e036aa80a7e92f80be0c40d37336f0f76ca7fe3dc118679f3cd08f3", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers", - "creationMethod": "MoDiff-authored technical provenance, Gallery manifest or quality review for the explicitly approved native Qwen bakery image", + "creationMethod": "MoDiff-authored Gallery manifest, reviewed provenance or quality review for the accepted morning batch", "sourceUrl": null, "sourceRevision": null, "sourceLicense": "Apache-2.0 project-authored metadata; generated-media terms remain in their exact per-file record", @@ -8273,103 +8969,13 @@ "assetLicense": "Apache-2.0", "reviewedBy": "SOURAV DAS", "reviewedAt": "2026-11-10", - "reviewClass": "per-file-human-approved-qwen-native-image-registration", - "provenanceTemplateId": "high_quality", - "humanApprovalPacketSHA256": "dcea9bcff1de179dad3357926933fe869b99c063cee0f4dc1764833e3cf3ea53" - }, - { - "path": "template-gallery/reviews/lcm_dawn_alpine_lake.quality-review.json", - "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", - "humanLikenessConsent": "not-applicable", - "marks": [], - "reviewedBy": "MoDiff workspace maintainer", - "reviewedAt": "2026-11-20", - "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "ba369c5fff89e379be66714d3ecbf1a0e3a9555e2b5ffbc9cb54210d862ec30b", - "publicationBasis": "Maintainer approved the exact Whisper JSON and both exact LCM images, accepted the disclosed LCM changes, and authorized publication of the associated redacted Gallery records.", - "creationMethod": "Project-authored redacted retained Gallery review, provenance or registration metadata", - "sourceUrl": null, - "sourceRevision": null, - "sourceLicense": "MoDiff-authored Gallery metadata", - "modelTerms": [], - "aiGenerated": false, - "requiredAttribution": [], - "assetLicense": "Apache-2.0", - "provenanceTemplateId": "lcm_dawn_alpine_lake", - "sha256": "sha256:bytes:e5c590a6287147faad9d5eab5676b8d2bb8224a8581a2043cf78c8dd50dcb0b9", - "publishDecision": "approved", - "holdReason": null - }, - { - "path": "template-gallery/reviews/lcm_dawn_alpine_lake.retained-template-provenance.json", - "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", - "humanLikenessConsent": "not-applicable", - "marks": [], - "reviewedBy": "MoDiff workspace maintainer", - "reviewedAt": "2026-11-20", - "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "ba369c5fff89e379be66714d3ecbf1a0e3a9555e2b5ffbc9cb54210d862ec30b", - "publicationBasis": "Maintainer approved the exact Whisper JSON and both exact LCM images, accepted the disclosed LCM changes, and authorized publication of the associated redacted Gallery records.", - "creationMethod": "Project-authored redacted retained Gallery review, provenance or registration metadata", - "sourceUrl": null, - "sourceRevision": null, - "sourceLicense": "MoDiff-authored Gallery metadata", - "modelTerms": [], - "aiGenerated": false, - "requiredAttribution": [], - "assetLicense": "Apache-2.0", - "provenanceTemplateId": "lcm_dawn_alpine_lake", - "sha256": "sha256:bytes:767b8d794460fca5a3e1c79a89aeaa2b1dcdb815d47702e1063ed35d07163247", - "publishDecision": "approved", - "holdReason": null - }, - { - "path": "template-gallery/reviews/low_vram.quality-review.json", - "sha256": "sha256:bytes:53b25669d880814ac612e803b0c6f2abbcdd8853e7ea4ca6e1e6d0b97fa23352", - "publishDecision": "approved", - "holdReason": null, - "creatorOrRightsholder": "MoDiff project maintainers", - "creationMethod": "MoDiff-authored technical provenance or quality metadata from the explicitly approved six-image source packet", - "sourceUrl": null, - "sourceRevision": null, - "sourceLicense": "Apache-2.0 project-authored metadata; generated-media terms remain in their exact per-file records", - "modelTerms": [], - "aiGenerated": false, - "humanLikenessConsent": "not-applicable", - "marks": [], - "requiredAttribution": [], - "assetLicense": "Apache-2.0", - "reviewedBy": "SOURAV DAS", - "reviewedAt": "2026-11-09", - "reviewClass": "per-file-human-approved-six-z-registration", - "provenanceTemplateId": "low_vram", - "humanApprovalPacketSHA256": "9b728a5f8535fc1ba3c03d2e2759d7ac795a586fafab51beb1509379ed388934" - }, - { - "path": "template-gallery/reviews/low_vram.reviewed-provenance.json", - "sha256": "sha256:bytes:a07f1942cb39c873d7ccd1b99dbece3c203d73296712aa0168a3edf4054b8076", - "publishDecision": "approved", - "holdReason": null, - "creatorOrRightsholder": "MoDiff project maintainers", - "creationMethod": "MoDiff-authored technical provenance or quality metadata from the explicitly approved six-image source packet", - "sourceUrl": null, - "sourceRevision": null, - "sourceLicense": "Apache-2.0 project-authored metadata; generated-media terms remain in their exact per-file records", - "modelTerms": [], - "aiGenerated": false, - "humanLikenessConsent": "not-applicable", - "marks": [], - "requiredAttribution": [], - "assetLicense": "Apache-2.0", - "reviewedBy": "SOURAV DAS", - "reviewedAt": "2026-11-09", - "reviewClass": "per-file-human-approved-six-z-registration", - "provenanceTemplateId": "low_vram", - "humanApprovalPacketSHA256": "9b728a5f8535fc1ba3c03d2e2759d7ac795a586fafab51beb1509379ed388934" + "reviewClass": "per-file-maintainer-approved-gallery-registration", + "provenanceTemplateId": "flux_krea_text_to_image", + "humanApprovalPacketSHA256": "351d122936dc8df9c3fb6217005641dd2cc2ecddc39cd7cd7fadc2939def70b3" }, { "creatorOrRightsholder": "MoDiff project maintainers", - "creationMethod": "Project-authored redacted technical/review records or versioned declarations for seven maintainer-accepted native video replacements", + "creationMethod": "Project-authored redacted technical/review records or versioned declarations for six maintainer-accepted native results", "sourceUrl": null, "sourceRevision": null, "sourceLicense": "Apache-2.0 project-authored metadata; media and model terms remain separate", @@ -8379,20 +8985,20 @@ "marks": [], "requiredAttribution": [], "assetLicense": "Apache-2.0", - "path": "template-gallery/reviews/ltx_video_animated_story.quality-review.json", - "sha256": "sha256:bytes:1ec83b229ba5c7995c8ada2629c448334965939304ffddc7a70161c8b7e1b7f1", + "path": "template-gallery/reviews/flux_lora_cinematic_octane_3d.quality-review.json", + "sha256": "sha256:bytes:b145a9798d1ac5c44516f02308008140a08bb99ae35a014dd381a650cb30c7f9", "publishDecision": "approved", "holdReason": null, "reviewedBy": "SOURAV DAS", - "reviewedAt": "2026-11-15", - "reviewClass": "per-file-maintainer-accepted-native-seven-registration", - "humanApprovalPacketSHA256": "95c7c2ed080c3d618db1701b066724660595337460c46df8305b50810783eaa3", - "publicationBasis": "these are approved, you can register them", - "provenanceTemplateId": "ltx_video_animated_story" + "reviewedAt": "2026-11-13", + "reviewClass": "per-file-maintainer-accepted-native-six-registration", + "humanApprovalPacketSHA256": "03b66b4631afb15032d62a1705331b56f6b12c4882c23945175ec92cc45a506f", + "publicationBasis": "Register the six approved assets now while Moonflower runs on Linux. Use Windows in parallel wherever possible, and keep the longer workflows separate for AMD cloud.", + "provenanceTemplateId": "flux_lora_cinematic_octane_3d" }, { "creatorOrRightsholder": "MoDiff project maintainers", - "creationMethod": "Project-authored redacted technical/review records or versioned declarations for seven maintainer-accepted native video replacements", + "creationMethod": "Project-authored redacted technical/review records or versioned declarations for six maintainer-accepted native results", "sourceUrl": null, "sourceRevision": null, "sourceLicense": "Apache-2.0 project-authored metadata; media and model terms remain separate", @@ -8402,20 +9008,20 @@ "marks": [], "requiredAttribution": [], "assetLicense": "Apache-2.0", - "path": "template-gallery/reviews/ltx_video_animated_story.reviewed-provenance.json", - "sha256": "sha256:bytes:3910ae6f164eb978e38b16e1eab92d73fe7f55dac543b681416ba0b8c43b440d", + "path": "template-gallery/reviews/flux_lora_cinematic_octane_3d.reviewed-provenance.json", + "sha256": "sha256:bytes:62bf8f0c28985cd8be0da00e7c74548a63dc0daa2893e1aaef7bb7a370b6aa35", "publishDecision": "approved", "holdReason": null, "reviewedBy": "SOURAV DAS", - "reviewedAt": "2026-11-15", - "reviewClass": "per-file-maintainer-accepted-native-seven-registration", - "humanApprovalPacketSHA256": "95c7c2ed080c3d618db1701b066724660595337460c46df8305b50810783eaa3", - "publicationBasis": "these are approved, you can register them", - "provenanceTemplateId": "ltx_video_animated_story" + "reviewedAt": "2026-11-13", + "reviewClass": "per-file-maintainer-accepted-native-six-registration", + "humanApprovalPacketSHA256": "03b66b4631afb15032d62a1705331b56f6b12c4882c23945175ec92cc45a506f", + "publicationBasis": "Register the six approved assets now while Moonflower runs on Linux. Use Windows in parallel wherever possible, and keep the longer workflows separate for AMD cloud.", + "provenanceTemplateId": "flux_lora_cinematic_octane_3d" }, { - "path": "template-gallery/reviews/ltx_video_image_to_video.quality-review.json", - "sha256": "sha256:bytes:6c31e71b0b9e6a6a1c46f55e058dd208b7b2f510f6eeb332648575da388f9431", + "path": "template-gallery/reviews/flux_lora_film_noir.quality-review.json", + "sha256": "sha256:bytes:d3cf61a480ef2d55e4371d70806b1b70ecd2f97b038906767f36046f7211c1d4", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers", @@ -8432,12 +9038,12 @@ "reviewedBy": "SOURAV DAS", "reviewedAt": "2026-11-10", "reviewClass": "per-file-maintainer-accepted-native-gallery-registration", - "provenanceTemplateId": "ltx_video_image_to_video", + "provenanceTemplateId": "flux_lora_film_noir", "humanApprovalPacketSHA256": "73ddf9ea7fc27eccc6b93817809421a008ce0fd2fb3080ffbdc5831a09205304" }, { - "path": "template-gallery/reviews/ltx_video_image_to_video.reviewed-provenance.json", - "sha256": "sha256:bytes:ff18a19dd44e03eb76e3879a7e49f1732cc9e6dba6affadcf370feafcc6cf06b", + "path": "template-gallery/reviews/flux_lora_film_noir.reviewed-provenance.json", + "sha256": "sha256:bytes:063c3b4d37ec01f694e47ca06bce70c54bc9e0abc682fb0b22f914be868a2e18", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers", @@ -8454,58 +9060,54 @@ "reviewedBy": "SOURAV DAS", "reviewedAt": "2026-11-10", "reviewClass": "per-file-maintainer-accepted-native-gallery-registration", - "provenanceTemplateId": "ltx_video_image_to_video", + "provenanceTemplateId": "flux_lora_film_noir", "humanApprovalPacketSHA256": "73ddf9ea7fc27eccc6b93817809421a008ce0fd2fb3080ffbdc5831a09205304" }, { + "path": "template-gallery/reviews/flux_lora_ghibli_story.quality-review.json", + "sha256": "sha256:bytes:6009868ad3e76b584a12eb4193daf7680a0f224224bcda917c2ebbe8f543d1a5", + "publishDecision": "approved", + "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers", - "creationMethod": "Project-authored redacted technical/review records or versioned declarations for seven maintainer-accepted native video replacements", + "creationMethod": "MoDiff-authored technical metadata or review record", "sourceUrl": null, "sourceRevision": null, - "sourceLicense": "Apache-2.0 project-authored metadata; media and model terms remain separate", + "sourceLicense": "Apache-2.0", "modelTerms": [], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [], "assetLicense": "Apache-2.0", - "path": "template-gallery/reviews/ltx_video_long_showcase.quality-review.json", - "sha256": "sha256:bytes:60cbabfbf56d499a45000cdbabc3c4d64733de27638c1e8b127ba067f1918b9c", - "publishDecision": "approved", - "holdReason": null, "reviewedBy": "SOURAV DAS", - "reviewedAt": "2026-11-15", - "reviewClass": "per-file-maintainer-accepted-native-seven-registration", - "humanApprovalPacketSHA256": "95c7c2ed080c3d618db1701b066724660595337460c46df8305b50810783eaa3", - "publicationBasis": "these are approved, you can register them", - "provenanceTemplateId": "ltx_video_long_showcase" + "reviewedAt": "2026-08-03", + "reviewClass": "standard-human-attestation", + "provenanceTemplateId": "flux_lora_ghibli_story" }, { + "path": "template-gallery/reviews/flux_lora_ghibli_story.reviewed-provenance.json", + "sha256": "sha256:bytes:f87545939eb878e8655640f7563f6ddb93b355ba72c716959fb61c39806fa8a3", + "publishDecision": "approved", + "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers", - "creationMethod": "Project-authored redacted technical/review records or versioned declarations for seven maintainer-accepted native video replacements", + "creationMethod": "MoDiff-authored technical metadata or review record", "sourceUrl": null, "sourceRevision": null, - "sourceLicense": "Apache-2.0 project-authored metadata; media and model terms remain separate", + "sourceLicense": "Apache-2.0", "modelTerms": [], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [], "assetLicense": "Apache-2.0", - "path": "template-gallery/reviews/ltx_video_long_showcase.reviewed-provenance.json", - "sha256": "sha256:bytes:c2566ed4233b850092727e2bfc805d1be849c2b11cd9424e42283ff9e19b15d0", - "publishDecision": "approved", - "holdReason": null, "reviewedBy": "SOURAV DAS", - "reviewedAt": "2026-11-15", - "reviewClass": "per-file-maintainer-accepted-native-seven-registration", - "humanApprovalPacketSHA256": "95c7c2ed080c3d618db1701b066724660595337460c46df8305b50810783eaa3", - "publicationBasis": "these are approved, you can register them", - "provenanceTemplateId": "ltx_video_long_showcase" + "reviewedAt": "2026-08-03", + "reviewClass": "standard-human-attestation", + "provenanceTemplateId": "flux_lora_ghibli_story" }, { - "path": "template-gallery/reviews/ltx_video_multi_reference.quality-review.json", - "sha256": "sha256:bytes:ccb132c3ffd2e929acca88d871c2f04ba9d0cd69d54750f303b58953a8b9bc93", + "path": "template-gallery/reviews/flux_lora_oil_painting.quality-review.json", + "sha256": "sha256:bytes:a081914ac871d3d02e47263f1807eb1dc112b861e517221a71ac6987df5611ee", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers", @@ -8522,12 +9124,12 @@ "reviewedBy": "SOURAV DAS", "reviewedAt": "2026-11-10", "reviewClass": "per-file-maintainer-accepted-native-gallery-registration", - "provenanceTemplateId": "ltx_video_multi_reference", + "provenanceTemplateId": "flux_lora_oil_painting", "humanApprovalPacketSHA256": "73ddf9ea7fc27eccc6b93817809421a008ce0fd2fb3080ffbdc5831a09205304" }, { - "path": "template-gallery/reviews/ltx_video_multi_reference.reviewed-provenance.json", - "sha256": "sha256:bytes:9bdf09de275841af2f1f63ce0011dfc1eeaa703e2deeb2ebf678090abad80203", + "path": "template-gallery/reviews/flux_lora_oil_painting.reviewed-provenance.json", + "sha256": "sha256:bytes:04e8530313e3bfcdf2c09550c17ffbe43aed0b4a28eaccf8b8153d217c2aa35f", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers", @@ -8544,12 +9146,12 @@ "reviewedBy": "SOURAV DAS", "reviewedAt": "2026-11-10", "reviewClass": "per-file-maintainer-accepted-native-gallery-registration", - "provenanceTemplateId": "ltx_video_multi_reference", + "provenanceTemplateId": "flux_lora_oil_painting", "humanApprovalPacketSHA256": "73ddf9ea7fc27eccc6b93817809421a008ce0fd2fb3080ffbdc5831a09205304" }, { - "path": "template-gallery/reviews/ltx_video_text_to_video.quality-review.json", - "sha256": "sha256:bytes:37f6a5c00110c6f9e306447a53691521c77db1ecf3cedf8210dd1e7ed10ea99d", + "path": "template-gallery/reviews/flux_lora_paper_cutout.quality-review.json", + "sha256": "sha256:bytes:badbd8d5727387a36c3a65bf2780ea931578ea3c6f1dc50421fcce0352cbb45f", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers", @@ -8566,12 +9168,12 @@ "reviewedBy": "SOURAV DAS", "reviewedAt": "2026-11-10", "reviewClass": "per-file-maintainer-accepted-native-gallery-registration", - "provenanceTemplateId": "ltx_video_text_to_video", + "provenanceTemplateId": "flux_lora_paper_cutout", "humanApprovalPacketSHA256": "73ddf9ea7fc27eccc6b93817809421a008ce0fd2fb3080ffbdc5831a09205304" }, { - "path": "template-gallery/reviews/ltx_video_text_to_video.reviewed-provenance.json", - "sha256": "sha256:bytes:58bfc0b841177bc73dbde13effbf5eebcf9e8d618d3aa90aa8b19afc3a6e5132", + "path": "template-gallery/reviews/flux_lora_paper_cutout.reviewed-provenance.json", + "sha256": "sha256:bytes:0824474e69c3917b7cecea1fa9830e9a473b5b6f1a11bb3f3293bb8237f30f7e", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers", @@ -8588,148 +9190,163 @@ "reviewedBy": "SOURAV DAS", "reviewedAt": "2026-11-10", "reviewClass": "per-file-maintainer-accepted-native-gallery-registration", - "provenanceTemplateId": "ltx_video_text_to_video", + "provenanceTemplateId": "flux_lora_paper_cutout", "humanApprovalPacketSHA256": "73ddf9ea7fc27eccc6b93817809421a008ce0fd2fb3080ffbdc5831a09205304" }, { + "path": "template-gallery/reviews/flux_lora_photoreal_documentary.quality-review.json", + "sha256": "sha256:bytes:36a405950da3e180bdea7d6912da7ec2d19ca8382e3f4a26bd9bb9e79cc5f6d6", + "publishDecision": "approved", + "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers", - "creationMethod": "Project-authored redacted technical/review records or versioned declarations for six maintainer-accepted native results", + "creationMethod": "MoDiff-authored Gallery manifest, reviewed provenance or quality review for the accepted morning batch", "sourceUrl": null, "sourceRevision": null, - "sourceLicense": "Apache-2.0 project-authored metadata; media and model terms remain separate", + "sourceLicense": "Apache-2.0 project-authored metadata; generated-media terms remain in their exact per-file record", "modelTerms": [], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [], "assetLicense": "Apache-2.0", - "path": "template-gallery/reviews/ltx_video_video_to_video.quality-review.json", - "sha256": "sha256:bytes:819fd6d872b8e86bbb091980a435bd363216d069223dd694f65d7942aeb05178", - "publishDecision": "approved", - "holdReason": null, "reviewedBy": "SOURAV DAS", - "reviewedAt": "2026-11-13", - "reviewClass": "per-file-maintainer-accepted-native-six-registration", - "humanApprovalPacketSHA256": "03b66b4631afb15032d62a1705331b56f6b12c4882c23945175ec92cc45a506f", - "publicationBasis": "Register the six approved assets now while Moonflower runs on Linux. Use Windows in parallel wherever possible, and keep the longer workflows separate for AMD cloud.", - "provenanceTemplateId": "ltx_video_video_to_video" + "reviewedAt": "2026-11-10", + "reviewClass": "per-file-maintainer-approved-gallery-registration", + "provenanceTemplateId": "flux_lora_photoreal_documentary", + "humanApprovalPacketSHA256": "351d122936dc8df9c3fb6217005641dd2cc2ecddc39cd7cd7fadc2939def70b3" }, { + "path": "template-gallery/reviews/flux_lora_photoreal_documentary.reviewed-provenance.json", + "sha256": "sha256:bytes:80b8756cfa9e3cc14716d82a93f7322b08d2f53901b913ab119258891fc4dffb", + "publishDecision": "approved", + "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers", - "creationMethod": "Project-authored redacted technical/review records or versioned declarations for six maintainer-accepted native results", + "creationMethod": "MoDiff-authored Gallery manifest, reviewed provenance or quality review for the accepted morning batch", "sourceUrl": null, "sourceRevision": null, - "sourceLicense": "Apache-2.0 project-authored metadata; media and model terms remain separate", + "sourceLicense": "Apache-2.0 project-authored metadata; generated-media terms remain in their exact per-file record", "modelTerms": [], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [], "assetLicense": "Apache-2.0", - "path": "template-gallery/reviews/ltx_video_video_to_video.reviewed-provenance.json", - "sha256": "sha256:bytes:9de3b2659acc8383ab86923bc7c9c87be3e53f3d894a06c77af8a16a155795a4", - "publishDecision": "approved", - "holdReason": null, "reviewedBy": "SOURAV DAS", - "reviewedAt": "2026-11-13", - "reviewClass": "per-file-maintainer-accepted-native-six-registration", - "humanApprovalPacketSHA256": "03b66b4631afb15032d62a1705331b56f6b12c4882c23945175ec92cc45a506f", - "publicationBasis": "Register the six approved assets now while Moonflower runs on Linux. Use Windows in parallel wherever possible, and keep the longer workflows separate for AMD cloud.", - "provenanceTemplateId": "ltx_video_video_to_video" + "reviewedAt": "2026-11-10", + "reviewClass": "per-file-maintainer-approved-gallery-registration", + "provenanceTemplateId": "flux_lora_photoreal_documentary", + "humanApprovalPacketSHA256": "351d122936dc8df9c3fb6217005641dd2cc2ecddc39cd7cd7fadc2939def70b3" }, { - "path": "template-gallery/reviews/marigold_depth_synthetic_ramp.quality-review.json", - "sha256": "sha256:bytes:17c3bbb2da127558c468e58ccc2bb08a9b78d4f07f901d483cfe8092732ebb42", + "path": "template-gallery/reviews/flux_lora_retro_comic.quality-review.json", + "sha256": "sha256:bytes:4436655b45348e57831e147e268e80be4759cd5aec0e6e0eb8d6f1530de06435", "publishDecision": "approved", "holdReason": null, - "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", - "creationMethod": "Project-authored redacted retained Gallery provenance, review, or registration metadata", + "creatorOrRightsholder": "MoDiff project maintainers", + "creationMethod": "MoDiff-authored Gallery manifest, reviewed provenance or quality review for the accepted morning batch", "sourceUrl": null, "sourceRevision": null, - "sourceLicense": "MoDiff-authored exact fixture or Gallery metadata", + "sourceLicense": "Apache-2.0 project-authored metadata; generated-media terms remain in their exact per-file record", "modelTerms": [], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [], "assetLicense": "Apache-2.0", - "reviewedBy": "MoDiff workspace maintainer", - "reviewedAt": "2026-11-19", - "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "e604b0284a57b65b20343c7776511ae15bef922c7e104c09f0f6931eec610d2d", - "publicationBasis": "Activate and publish the two approved Gallery candidates using their retained native runs.", - "provenanceTemplateId": "marigold_depth_synthetic_ramp" + "reviewedBy": "SOURAV DAS", + "reviewedAt": "2026-11-10", + "reviewClass": "per-file-maintainer-approved-gallery-registration", + "provenanceTemplateId": "flux_lora_retro_comic", + "humanApprovalPacketSHA256": "351d122936dc8df9c3fb6217005641dd2cc2ecddc39cd7cd7fadc2939def70b3" }, { - "path": "template-gallery/reviews/marigold_depth_synthetic_ramp.retained-template-provenance.json", - "sha256": "sha256:bytes:57b1487ecee6f44016512e1e1ce5c8135e963add06b1519b7e6007cb83184ae0", + "path": "template-gallery/reviews/flux_lora_retro_comic.reviewed-provenance.json", + "sha256": "sha256:bytes:3e44966400c118ba7ea67c8c511dcd0aad51a7e59d64bf1d4a0b96566a96f3e2", "publishDecision": "approved", "holdReason": null, - "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", - "creationMethod": "Project-authored redacted retained Gallery provenance, review, or registration metadata", + "creatorOrRightsholder": "MoDiff project maintainers", + "creationMethod": "MoDiff-authored Gallery manifest, reviewed provenance or quality review for the accepted morning batch", "sourceUrl": null, "sourceRevision": null, - "sourceLicense": "MoDiff-authored exact fixture or Gallery metadata", + "sourceLicense": "Apache-2.0 project-authored metadata; generated-media terms remain in their exact per-file record", "modelTerms": [], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [], "assetLicense": "Apache-2.0", - "reviewedBy": "MoDiff workspace maintainer", - "reviewedAt": "2026-11-19", - "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "e604b0284a57b65b20343c7776511ae15bef922c7e104c09f0f6931eec610d2d", - "publicationBasis": "Activate and publish the two approved Gallery candidates using their retained native runs.", - "provenanceTemplateId": "marigold_depth_synthetic_ramp" + "reviewedBy": "SOURAV DAS", + "reviewedAt": "2026-11-10", + "reviewClass": "per-file-maintainer-approved-gallery-registration", + "provenanceTemplateId": "flux_lora_retro_comic", + "humanApprovalPacketSHA256": "351d122936dc8df9c3fb6217005641dd2cc2ecddc39cd7cd7fadc2939def70b3" }, { - "path": "template-gallery/reviews/minimax_h3_image_old_town_cat.quality-review.json", - "sha256": "sha256:bytes:ce9fc2a0edaaf3eef1f3db03024d3e64108523e93fc2797fee7cbe7364e7ce97", + "path": "template-gallery/reviews/flux_lora_watercolor.quality-review.json", + "sha256": "sha256:bytes:3454f88eecab20d70370fe23bbd9248d6e6e3255d0fbfc557a2f1103c94e7ef4", "publishDecision": "approved", "holdReason": null, - "creatorOrRightsholder": "MoDiff project maintainers, subject to the recorded model terms", - "creationMethod": "Project-authored current-recipe review or redacted provenance for the saved image", - "sourceUrl": "https://huggingface.co/MiniMaxAI/MiniMax-H3-Image/tree/492fd8c4eca666f1085f57e30738c1e0d86b3439", - "sourceRevision": "MiniMaxAI/MiniMax-H3-Image@492fd8c4eca666f1085f57e30738c1e0d86b3439", - "sourceLicense": "Apache-2.0 project-authored metadata", - "modelTerms": [ - "MiniMaxAI/MiniMax-H3-Image@492fd8c4eca666f1085f57e30738c1e0d86b3439: MiniMax H3 Image Community License Agreement" - ], + "creatorOrRightsholder": "MoDiff project maintainers", + "creationMethod": "MoDiff-authored Gallery manifest, reviewed provenance or quality review for the accepted morning batch", + "sourceUrl": null, + "sourceRevision": null, + "sourceLicense": "Apache-2.0 project-authored metadata; generated-media terms remain in their exact per-file record", + "modelTerms": [], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [], "assetLicense": "Apache-2.0", - "reviewedBy": "MoDiff workspace maintainer", - "reviewedAt": "2026-11-19", - "reviewClass": "per-file-maintainer-accepted-current-recipe", - "humanApprovalPacketSHA256": "97cf1d2ce0a8500d5b3b67ff4efb20a2e91c44a6f1e22d3eafd7b408babc31a2", - "provenanceTemplateId": "minimax_h3_image_old_town_cat" + "reviewedBy": "SOURAV DAS", + "reviewedAt": "2026-11-10", + "reviewClass": "per-file-maintainer-approved-gallery-registration", + "provenanceTemplateId": "flux_lora_watercolor", + "humanApprovalPacketSHA256": "351d122936dc8df9c3fb6217005641dd2cc2ecddc39cd7cd7fadc2939def70b3" }, { - "path": "template-gallery/reviews/minimax_h3_image_old_town_cat.reviewed-provenance.json", - "sha256": "sha256:bytes:9d5792710da6b60188994c51bfa1ac49047121433d83961cd58d22b9caf6030c", + "path": "template-gallery/reviews/flux_lora_watercolor.reviewed-provenance.json", + "sha256": "sha256:bytes:c51b9dfb5471d1f0f704852672152a09f0c01aeeaee7f5dd0b324e5652fe8b6f", "publishDecision": "approved", "holdReason": null, - "creatorOrRightsholder": "MoDiff project maintainers, subject to the recorded model terms", - "creationMethod": "Project-authored current-recipe review or redacted provenance for the saved image", - "sourceUrl": "https://huggingface.co/MiniMaxAI/MiniMax-H3-Image/tree/492fd8c4eca666f1085f57e30738c1e0d86b3439", - "sourceRevision": "MiniMaxAI/MiniMax-H3-Image@492fd8c4eca666f1085f57e30738c1e0d86b3439", - "sourceLicense": "Apache-2.0 project-authored metadata", - "modelTerms": [ - "MiniMaxAI/MiniMax-H3-Image@492fd8c4eca666f1085f57e30738c1e0d86b3439: MiniMax H3 Image Community License Agreement" - ], + "creatorOrRightsholder": "MoDiff project maintainers", + "creationMethod": "MoDiff-authored Gallery manifest, reviewed provenance or quality review for the accepted morning batch", + "sourceUrl": null, + "sourceRevision": null, + "sourceLicense": "Apache-2.0 project-authored metadata; generated-media terms remain in their exact per-file record", + "modelTerms": [], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [], "assetLicense": "Apache-2.0", - "reviewedBy": "MoDiff workspace maintainer", - "reviewedAt": "2026-11-19", - "reviewClass": "per-file-maintainer-accepted-current-recipe", - "humanApprovalPacketSHA256": "97cf1d2ce0a8500d5b3b67ff4efb20a2e91c44a6f1e22d3eafd7b408babc31a2", - "provenanceTemplateId": "minimax_h3_image_old_town_cat" + "reviewedBy": "SOURAV DAS", + "reviewedAt": "2026-11-10", + "reviewClass": "per-file-maintainer-approved-gallery-registration", + "provenanceTemplateId": "flux_lora_watercolor", + "humanApprovalPacketSHA256": "351d122936dc8df9c3fb6217005641dd2cc2ecddc39cd7cd7fadc2939def70b3" + }, + { + "creatorOrRightsholder": "MoDiff project maintainers", + "creationMethod": "Project-authored redacted technical/review records or versioned declarations for six maintainer-accepted native results", + "sourceUrl": null, + "sourceRevision": null, + "sourceLicense": "Apache-2.0 project-authored metadata; media and model terms remain separate", + "modelTerms": [], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [], + "assetLicense": "Apache-2.0", + "path": "template-gallery/reviews/flux_redux_edit.quality-review.json", + "sha256": "sha256:bytes:10afc2e145791fb240bdcce1bcfbcee80280f5bec4cd15afe64985da51129788", + "publishDecision": "approved", + "holdReason": null, + "reviewedBy": "SOURAV DAS", + "reviewedAt": "2026-11-13", + "reviewClass": "per-file-maintainer-accepted-native-six-registration", + "humanApprovalPacketSHA256": "03b66b4631afb15032d62a1705331b56f6b12c4882c23945175ec92cc45a506f", + "publicationBasis": "Register the six approved assets now while Moonflower runs on Linux. Use Windows in parallel wherever possible, and keep the longer workflows separate for AMD cloud.", + "provenanceTemplateId": "flux_redux_edit" }, { "creatorOrRightsholder": "MoDiff project maintainers", @@ -8741,41 +9358,1916 @@ "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], - "requiredAttribution": [], + "requiredAttribution": [], + "assetLicense": "Apache-2.0", + "path": "template-gallery/reviews/flux_redux_edit.reviewed-provenance.json", + "sha256": "sha256:bytes:88dc41a06a6fa368953d24f0d20c0700a375465b6c49591653c5471754690c00", + "publishDecision": "approved", + "holdReason": null, + "reviewedBy": "SOURAV DAS", + "reviewedAt": "2026-11-13", + "reviewClass": "per-file-maintainer-accepted-native-six-registration", + "humanApprovalPacketSHA256": "03b66b4631afb15032d62a1705331b56f6b12c4882c23945175ec92cc45a506f", + "publicationBasis": "Register the six approved assets now while Moonflower runs on Linux. Use Windows in parallel wherever possible, and keep the longer workflows separate for AMD cloud.", + "provenanceTemplateId": "flux_redux_edit" + }, + { + "creatorOrRightsholder": "MoDiff project maintainers", + "creationMethod": "Project-authored redacted technical/review records or versioned declarations for two maintainer-accepted native replacements", + "sourceUrl": null, + "sourceRevision": null, + "sourceLicense": "Apache-2.0 project-authored metadata; media and model terms remain separate", + "modelTerms": [], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [], + "assetLicense": "Apache-2.0", + "path": "template-gallery/reviews/flux_redux_multi_reference.quality-review.json", + "sha256": "sha256:bytes:1e4c83b2db81df7e43b8e79a9a01cc8eadfd2de6c826c218d0c31b50d95b7441", + "publishDecision": "approved", + "holdReason": null, + "reviewedBy": "SOURAV DAS", + "reviewedAt": "2026-11-15", + "reviewClass": "per-file-maintainer-accepted-native-two-registration", + "humanApprovalPacketSHA256": "c3c5e06d05771cf28f823e1dee31a9e7e3765d2f84038823aaadc505ee8290f5", + "publicationBasis": "you can register these two as well", + "provenanceTemplateId": "flux_redux_multi_reference" + }, + { + "creatorOrRightsholder": "MoDiff project maintainers", + "creationMethod": "Project-authored redacted technical/review records or versioned declarations for two maintainer-accepted native replacements", + "sourceUrl": null, + "sourceRevision": null, + "sourceLicense": "Apache-2.0 project-authored metadata; media and model terms remain separate", + "modelTerms": [], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [], + "assetLicense": "Apache-2.0", + "path": "template-gallery/reviews/flux_redux_multi_reference.reviewed-provenance.json", + "sha256": "sha256:bytes:dd1ea7815bc1bc51589ef774cc1f412b3f8bc2f16a7204a8efe56469913d8179", + "publishDecision": "approved", + "holdReason": null, + "reviewedBy": "SOURAV DAS", + "reviewedAt": "2026-11-15", + "reviewClass": "per-file-maintainer-accepted-native-two-registration", + "humanApprovalPacketSHA256": "c3c5e06d05771cf28f823e1dee31a9e7e3765d2f84038823aaadc505ee8290f5", + "publicationBasis": "you can register these two as well", + "provenanceTemplateId": "flux_redux_multi_reference" + }, + { + "path": "template-gallery/reviews/flux_schnell_text_to_image.quality-review.json", + "sha256": "sha256:bytes:5eeda44bb0b251f27d30973ad62659d2d247f1ab620eb4b48af154385958530e", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers", + "creationMethod": "MoDiff-authored technical provenance, Gallery manifest or quality review for the explicitly approved retained native Linux FLUX.1 Schnell image", + "sourceUrl": null, + "sourceRevision": null, + "sourceLicense": "Apache-2.0 project-authored metadata; generated-media terms remain in their exact per-file record", + "modelTerms": [], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [], + "assetLicense": "Apache-2.0", + "reviewedBy": "SOURAV DAS", + "reviewedAt": "2026-11-10", + "reviewClass": "per-file-human-approved-retained-schnell-limited-image-registration", + "provenanceTemplateId": "flux_schnell_text_to_image", + "humanApprovalPacketSHA256": "488dc05971842cc9ed2b31c5995de204015d8b6a975ebc917329dfe3eac71d2c" + }, + { + "path": "template-gallery/reviews/flux_schnell_text_to_image.reviewed-provenance.json", + "sha256": "sha256:bytes:ccf1ec3ab127ce8c01008df4a8a323bac0548e83679281d58c7d77a964ae07a9", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers", + "creationMethod": "MoDiff-authored technical provenance, Gallery manifest or quality review for the explicitly approved retained native Linux FLUX.1 Schnell image", + "sourceUrl": null, + "sourceRevision": null, + "sourceLicense": "Apache-2.0 project-authored metadata; generated-media terms remain in their exact per-file record", + "modelTerms": [], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [], + "assetLicense": "Apache-2.0", + "reviewedBy": "SOURAV DAS", + "reviewedAt": "2026-11-10", + "reviewClass": "per-file-human-approved-retained-schnell-limited-image-registration", + "provenanceTemplateId": "flux_schnell_text_to_image", + "humanApprovalPacketSHA256": "488dc05971842cc9ed2b31c5995de204015d8b6a975ebc917329dfe3eac71d2c" + }, + { + "path": "template-gallery/reviews/forest_ferns.original-provenance.json", + "sha256": "sha256:bytes:9f3dbdc8c7c6c2bbd65792b2d1b958cc21e1aeb44489af772f6e1d8e14b1932b", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/zai-org/GLM-Image/tree/2c433cc0cbc293bde2ac8ca9624f279b5d23fcf4", + "sourceRevision": "zai-org/GLM-Image@2c433cc0cbc293bde2ac8ca9624f279b5d23fcf4", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": ["mit. https://huggingface.co/zai-org/GLM-Image/tree/2c433cc0cbc293bde2ac8ca9624f279b5d23fcf4"], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "zai-org/GLM-Image@2c433cc0cbc293bde2ac8ca9624f279b5d23fcf4 https://huggingface.co/zai-org/GLM-Image/tree/2c433cc0cbc293bde2ac8ca9624f279b5d23fcf4" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", + "provenanceTemplateId": "forest_ferns" + }, + { + "path": "template-gallery/reviews/forest_ferns.original-review.json", + "sha256": "sha256:bytes:c736e68088c4a94fcec6574242c08e840dea34559d3802d63de6f2114f514f1c", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/zai-org/GLM-Image/tree/2c433cc0cbc293bde2ac8ca9624f279b5d23fcf4", + "sourceRevision": "zai-org/GLM-Image@2c433cc0cbc293bde2ac8ca9624f279b5d23fcf4", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": ["mit. https://huggingface.co/zai-org/GLM-Image/tree/2c433cc0cbc293bde2ac8ca9624f279b5d23fcf4"], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "zai-org/GLM-Image@2c433cc0cbc293bde2ac8ca9624f279b5d23fcf4 https://huggingface.co/zai-org/GLM-Image/tree/2c433cc0cbc293bde2ac8ca9624f279b5d23fcf4" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", + "provenanceTemplateId": "forest_ferns" + }, + { + "path": "template-gallery/reviews/forest_ferns.quality-review.json", + "sha256": "sha256:bytes:8d789319fd8de535f0e638a1fecdc2e65db93e1ff95104c7c63939437994529b", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/zai-org/GLM-Image/tree/2c433cc0cbc293bde2ac8ca9624f279b5d23fcf4", + "sourceRevision": "zai-org/GLM-Image@2c433cc0cbc293bde2ac8ca9624f279b5d23fcf4", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": ["mit. https://huggingface.co/zai-org/GLM-Image/tree/2c433cc0cbc293bde2ac8ca9624f279b5d23fcf4"], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "zai-org/GLM-Image@2c433cc0cbc293bde2ac8ca9624f279b5d23fcf4 https://huggingface.co/zai-org/GLM-Image/tree/2c433cc0cbc293bde2ac8ca9624f279b5d23fcf4" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", + "provenanceTemplateId": "forest_ferns" + }, + { + "path": "template-gallery/reviews/forest_ferns.retained-template-provenance.json", + "sha256": "sha256:bytes:8776590ac1201f5606eab7521d2ef8283f85cc48038acafdb3cbe60a11f91a82", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/zai-org/GLM-Image/tree/2c433cc0cbc293bde2ac8ca9624f279b5d23fcf4", + "sourceRevision": "zai-org/GLM-Image@2c433cc0cbc293bde2ac8ca9624f279b5d23fcf4", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": ["mit. https://huggingface.co/zai-org/GLM-Image/tree/2c433cc0cbc293bde2ac8ca9624f279b5d23fcf4"], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "zai-org/GLM-Image@2c433cc0cbc293bde2ac8ca9624f279b5d23fcf4 https://huggingface.co/zai-org/GLM-Image/tree/2c433cc0cbc293bde2ac8ca9624f279b5d23fcf4" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", + "provenanceTemplateId": "forest_ferns" + }, + { + "path": "template-gallery/reviews/glasshouse_rain.original-provenance.json", + "sha256": "sha256:bytes:0dad28d294233db5c72915ddb9559f8eb2e4fba77cd8ebd8510a254ae0434083", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b", + "sourceRevision": "stabilityai/stable-diffusion-xl-base-1.0@462165984030d82259a11f4367a4eed129e94a7b", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "CreativeML Open RAIL++-M. https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b" + ], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "stabilityai/stable-diffusion-xl-base-1.0@462165984030d82259a11f4367a4eed129e94a7b https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", + "provenanceTemplateId": "glasshouse_rain" + }, + { + "path": "template-gallery/reviews/glasshouse_rain.original-review.json", + "sha256": "sha256:bytes:41b3e9a683bb5af2655b9e2874464a97a79eecdf987b93672f1ea3d142bed370", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b", + "sourceRevision": "stabilityai/stable-diffusion-xl-base-1.0@462165984030d82259a11f4367a4eed129e94a7b", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "CreativeML Open RAIL++-M. https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b" + ], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "stabilityai/stable-diffusion-xl-base-1.0@462165984030d82259a11f4367a4eed129e94a7b https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", + "provenanceTemplateId": "glasshouse_rain" + }, + { + "path": "template-gallery/reviews/glasshouse_rain.quality-review.json", + "sha256": "sha256:bytes:da3cb94631be949ba21fcdf842135099dbc6992bfbf37cc9b30710d1fb997ca4", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b", + "sourceRevision": "stabilityai/stable-diffusion-xl-base-1.0@462165984030d82259a11f4367a4eed129e94a7b", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "CreativeML Open RAIL++-M. https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b" + ], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "stabilityai/stable-diffusion-xl-base-1.0@462165984030d82259a11f4367a4eed129e94a7b https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", + "provenanceTemplateId": "glasshouse_rain" + }, + { + "path": "template-gallery/reviews/glasshouse_rain.retained-template-provenance.json", + "sha256": "sha256:bytes:fdd2f0c10865bfc619852978699d6ab58346d8a4d435b6ad24b706bf2aad4b88", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b", + "sourceRevision": "stabilityai/stable-diffusion-xl-base-1.0@462165984030d82259a11f4367a4eed129e94a7b", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "CreativeML Open RAIL++-M. https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b" + ], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "stabilityai/stable-diffusion-xl-base-1.0@462165984030d82259a11f4367a4eed129e94a7b https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", + "provenanceTemplateId": "glasshouse_rain" + }, + { + "path": "template-gallery/reviews/high_quality.quality-review.json", + "sha256": "sha256:bytes:859a90999ac580d2dfbf45a39d26c475e2af362a6e5a95d72c6ff05626fca54c", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers", + "creationMethod": "MoDiff-authored technical provenance, Gallery manifest or quality review for the explicitly approved native Qwen bakery image", + "sourceUrl": null, + "sourceRevision": null, + "sourceLicense": "Apache-2.0 project-authored metadata; generated-media terms remain in their exact per-file record", + "modelTerms": [], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [], + "assetLicense": "Apache-2.0", + "reviewedBy": "SOURAV DAS", + "reviewedAt": "2026-11-10", + "reviewClass": "per-file-human-approved-qwen-native-image-registration", + "provenanceTemplateId": "high_quality", + "humanApprovalPacketSHA256": "dcea9bcff1de179dad3357926933fe869b99c063cee0f4dc1764833e3cf3ea53" + }, + { + "path": "template-gallery/reviews/high_quality.reviewed-provenance.json", + "sha256": "sha256:bytes:082cd7fc2b3345ff6bf881df607e19dc9e175081e2f029cf01f2abdafcbc17d4", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers", + "creationMethod": "MoDiff-authored technical provenance, Gallery manifest or quality review for the explicitly approved native Qwen bakery image", + "sourceUrl": null, + "sourceRevision": null, + "sourceLicense": "Apache-2.0 project-authored metadata; generated-media terms remain in their exact per-file record", + "modelTerms": [], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [], + "assetLicense": "Apache-2.0", + "reviewedBy": "SOURAV DAS", + "reviewedAt": "2026-11-10", + "reviewClass": "per-file-human-approved-qwen-native-image-registration", + "provenanceTemplateId": "high_quality", + "humanApprovalPacketSHA256": "dcea9bcff1de179dad3357926933fe869b99c063cee0f4dc1764833e3cf3ea53" + }, + { + "path": "template-gallery/reviews/janus_red_enamel_teapot.original-provenance.json", + "sha256": "sha256:bytes:170501bd8a025aa58341bc17322a6c9f8448be401b7263fdc9c5e9b449d1cb87", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/deepseek-community/Janus-Pro-1B/tree/1655280bb75959cc1cb85529a2a8b26e7016072e", + "sourceRevision": "deepseek-community/Janus-Pro-1B@1655280bb75959cc1cb85529a2a8b26e7016072e", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": ["https://github.com/deepseek-ai/Janus/blob/main/LICENSE-MODEL"], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "deepseek-community/Janus-Pro-1B@1655280bb75959cc1cb85529a2a8b26e7016072e https://huggingface.co/deepseek-community/Janus-Pro-1B/tree/1655280bb75959cc1cb85529a2a8b26e7016072e" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", + "provenanceTemplateId": "janus_red_enamel_teapot" + }, + { + "path": "template-gallery/reviews/janus_red_enamel_teapot.original-review.json", + "sha256": "sha256:bytes:05d63ee8fe6f5ef33cb0ea16988861ffbbd99e0f7317b039b01c41a67eb4f5f8", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/deepseek-community/Janus-Pro-1B/tree/1655280bb75959cc1cb85529a2a8b26e7016072e", + "sourceRevision": "deepseek-community/Janus-Pro-1B@1655280bb75959cc1cb85529a2a8b26e7016072e", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": ["https://github.com/deepseek-ai/Janus/blob/main/LICENSE-MODEL"], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "deepseek-community/Janus-Pro-1B@1655280bb75959cc1cb85529a2a8b26e7016072e https://huggingface.co/deepseek-community/Janus-Pro-1B/tree/1655280bb75959cc1cb85529a2a8b26e7016072e" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", + "provenanceTemplateId": "janus_red_enamel_teapot" + }, + { + "path": "template-gallery/reviews/janus_red_enamel_teapot.quality-review.json", + "sha256": "sha256:bytes:b9d911046c3faff978d22cb397ee2a95d23608240d18674dc68fb5b957783f90", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/deepseek-community/Janus-Pro-1B/tree/1655280bb75959cc1cb85529a2a8b26e7016072e", + "sourceRevision": "deepseek-community/Janus-Pro-1B@1655280bb75959cc1cb85529a2a8b26e7016072e", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": ["https://github.com/deepseek-ai/Janus/blob/main/LICENSE-MODEL"], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "deepseek-community/Janus-Pro-1B@1655280bb75959cc1cb85529a2a8b26e7016072e https://huggingface.co/deepseek-community/Janus-Pro-1B/tree/1655280bb75959cc1cb85529a2a8b26e7016072e" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", + "provenanceTemplateId": "janus_red_enamel_teapot" + }, + { + "path": "template-gallery/reviews/janus_red_enamel_teapot.retained-template-provenance.json", + "sha256": "sha256:bytes:7fc41c79f10344c5621f2184f7086b4b33daf929d83e37e099e9c0e3fc16aa2d", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/deepseek-community/Janus-Pro-1B/tree/1655280bb75959cc1cb85529a2a8b26e7016072e", + "sourceRevision": "deepseek-community/Janus-Pro-1B@1655280bb75959cc1cb85529a2a8b26e7016072e", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": ["https://github.com/deepseek-ai/Janus/blob/main/LICENSE-MODEL"], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "deepseek-community/Janus-Pro-1B@1655280bb75959cc1cb85529a2a8b26e7016072e https://huggingface.co/deepseek-community/Janus-Pro-1B/tree/1655280bb75959cc1cb85529a2a8b26e7016072e" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", + "provenanceTemplateId": "janus_red_enamel_teapot" + }, + { + "path": "template-gallery/reviews/janus_red_triangle_caption.original-provenance.json", + "sha256": "sha256:bytes:3f6648332a0351e6904385e3d670550b1072c8539055ea6d827d3c7d3ee39510", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/deepseek-community/Janus-Pro-1B/tree/1655280bb75959cc1cb85529a2a8b26e7016072e", + "sourceRevision": "deepseek-community/Janus-Pro-1B@1655280bb75959cc1cb85529a2a8b26e7016072e", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": ["https://github.com/deepseek-ai/Janus/blob/main/LICENSE-MODEL"], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "deepseek-community/Janus-Pro-1B@1655280bb75959cc1cb85529a2a8b26e7016072e https://huggingface.co/deepseek-community/Janus-Pro-1B/tree/1655280bb75959cc1cb85529a2a8b26e7016072e" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", + "provenanceTemplateId": "janus_red_triangle_caption" + }, + { + "path": "template-gallery/reviews/janus_red_triangle_caption.original-review.json", + "sha256": "sha256:bytes:f7b4652f53f7840da5338cc9e77215884c500ae59aa26e66fb83c84bb6e1ede8", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/deepseek-community/Janus-Pro-1B/tree/1655280bb75959cc1cb85529a2a8b26e7016072e", + "sourceRevision": "deepseek-community/Janus-Pro-1B@1655280bb75959cc1cb85529a2a8b26e7016072e", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": ["https://github.com/deepseek-ai/Janus/blob/main/LICENSE-MODEL"], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "deepseek-community/Janus-Pro-1B@1655280bb75959cc1cb85529a2a8b26e7016072e https://huggingface.co/deepseek-community/Janus-Pro-1B/tree/1655280bb75959cc1cb85529a2a8b26e7016072e" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", + "provenanceTemplateId": "janus_red_triangle_caption" + }, + { + "path": "template-gallery/reviews/janus_red_triangle_caption.quality-review.json", + "sha256": "sha256:bytes:03dd22b437f3d94f8789eed26ccf9c0de4fd24a2162e1bab3d1e164441077ef5", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/deepseek-community/Janus-Pro-1B/tree/1655280bb75959cc1cb85529a2a8b26e7016072e", + "sourceRevision": "deepseek-community/Janus-Pro-1B@1655280bb75959cc1cb85529a2a8b26e7016072e", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": ["https://github.com/deepseek-ai/Janus/blob/main/LICENSE-MODEL"], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "deepseek-community/Janus-Pro-1B@1655280bb75959cc1cb85529a2a8b26e7016072e https://huggingface.co/deepseek-community/Janus-Pro-1B/tree/1655280bb75959cc1cb85529a2a8b26e7016072e" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", + "provenanceTemplateId": "janus_red_triangle_caption" + }, + { + "path": "template-gallery/reviews/janus_red_triangle_caption.retained-template-provenance.json", + "sha256": "sha256:bytes:0e5cecab2d1a8c81c1b36c4e3b2fcd0799b327f94a61d9f4c55fac0ce1f16a9b", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/deepseek-community/Janus-Pro-1B/tree/1655280bb75959cc1cb85529a2a8b26e7016072e", + "sourceRevision": "deepseek-community/Janus-Pro-1B@1655280bb75959cc1cb85529a2a8b26e7016072e", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": ["https://github.com/deepseek-ai/Janus/blob/main/LICENSE-MODEL"], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "deepseek-community/Janus-Pro-1B@1655280bb75959cc1cb85529a2a8b26e7016072e https://huggingface.co/deepseek-community/Janus-Pro-1B/tree/1655280bb75959cc1cb85529a2a8b26e7016072e" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", + "provenanceTemplateId": "janus_red_triangle_caption" + }, + { + "path": "template-gallery/reviews/janus_reykjavik_travel_note.original-provenance.json", + "sha256": "sha256:bytes:e691c32bc7b7eb4bd1bf7feae5773671d7e083d79e5bc9426ed5e768bc78d899", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/deepseek-community/Janus-Pro-1B/tree/1655280bb75959cc1cb85529a2a8b26e7016072e", + "sourceRevision": "deepseek-community/Janus-Pro-1B@1655280bb75959cc1cb85529a2a8b26e7016072e", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": ["https://github.com/deepseek-ai/Janus/blob/main/LICENSE-MODEL"], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "deepseek-community/Janus-Pro-1B@1655280bb75959cc1cb85529a2a8b26e7016072e https://huggingface.co/deepseek-community/Janus-Pro-1B/tree/1655280bb75959cc1cb85529a2a8b26e7016072e" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", + "provenanceTemplateId": "janus_reykjavik_travel_note" + }, + { + "path": "template-gallery/reviews/janus_reykjavik_travel_note.original-review.json", + "sha256": "sha256:bytes:85c17c8b45a8df155a69a5de0e983b32ef5d9cc917cade0115bae566c861b088", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/deepseek-community/Janus-Pro-1B/tree/1655280bb75959cc1cb85529a2a8b26e7016072e", + "sourceRevision": "deepseek-community/Janus-Pro-1B@1655280bb75959cc1cb85529a2a8b26e7016072e", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": ["https://github.com/deepseek-ai/Janus/blob/main/LICENSE-MODEL"], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "deepseek-community/Janus-Pro-1B@1655280bb75959cc1cb85529a2a8b26e7016072e https://huggingface.co/deepseek-community/Janus-Pro-1B/tree/1655280bb75959cc1cb85529a2a8b26e7016072e" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", + "provenanceTemplateId": "janus_reykjavik_travel_note" + }, + { + "path": "template-gallery/reviews/janus_reykjavik_travel_note.quality-review.json", + "sha256": "sha256:bytes:08b83eb62ffdf911938d868f1be875cc895f472e9e48936acfaa93bbed96c709", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/deepseek-community/Janus-Pro-1B/tree/1655280bb75959cc1cb85529a2a8b26e7016072e", + "sourceRevision": "deepseek-community/Janus-Pro-1B@1655280bb75959cc1cb85529a2a8b26e7016072e", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": ["https://github.com/deepseek-ai/Janus/blob/main/LICENSE-MODEL"], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "deepseek-community/Janus-Pro-1B@1655280bb75959cc1cb85529a2a8b26e7016072e https://huggingface.co/deepseek-community/Janus-Pro-1B/tree/1655280bb75959cc1cb85529a2a8b26e7016072e" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", + "provenanceTemplateId": "janus_reykjavik_travel_note" + }, + { + "path": "template-gallery/reviews/janus_reykjavik_travel_note.retained-template-provenance.json", + "sha256": "sha256:bytes:70da97c6adaef6d92f70d91e3aa549503dacb307ea94dd3115047cb3de17945b", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/deepseek-community/Janus-Pro-1B/tree/1655280bb75959cc1cb85529a2a8b26e7016072e", + "sourceRevision": "deepseek-community/Janus-Pro-1B@1655280bb75959cc1cb85529a2a8b26e7016072e", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": ["https://github.com/deepseek-ai/Janus/blob/main/LICENSE-MODEL"], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "deepseek-community/Janus-Pro-1B@1655280bb75959cc1cb85529a2a8b26e7016072e https://huggingface.co/deepseek-community/Janus-Pro-1B/tree/1655280bb75959cc1cb85529a2a8b26e7016072e" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", + "provenanceTemplateId": "janus_reykjavik_travel_note" + }, + { + "path": "template-gallery/reviews/lcm_dawn_alpine_lake.quality-review.json", + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "humanLikenessConsent": "not-applicable", + "marks": [], + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-20", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "ba369c5fff89e379be66714d3ecbf1a0e3a9555e2b5ffbc9cb54210d862ec30b", + "publicationBasis": "Maintainer approved the exact Whisper JSON and both exact LCM images, accepted the disclosed LCM changes, and authorized publication of the associated redacted Gallery records.", + "creationMethod": "Project-authored redacted retained Gallery review, provenance or registration metadata", + "sourceUrl": null, + "sourceRevision": null, + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [], + "aiGenerated": false, + "requiredAttribution": [], + "assetLicense": "Apache-2.0", + "provenanceTemplateId": "lcm_dawn_alpine_lake", + "sha256": "sha256:bytes:e5c590a6287147faad9d5eab5676b8d2bb8224a8581a2043cf78c8dd50dcb0b9", + "publishDecision": "approved", + "holdReason": null + }, + { + "path": "template-gallery/reviews/lcm_dawn_alpine_lake.retained-template-provenance.json", + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "humanLikenessConsent": "not-applicable", + "marks": [], + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-20", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "ba369c5fff89e379be66714d3ecbf1a0e3a9555e2b5ffbc9cb54210d862ec30b", + "publicationBasis": "Maintainer approved the exact Whisper JSON and both exact LCM images, accepted the disclosed LCM changes, and authorized publication of the associated redacted Gallery records.", + "creationMethod": "Project-authored redacted retained Gallery review, provenance or registration metadata", + "sourceUrl": null, + "sourceRevision": null, + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [], + "aiGenerated": false, + "requiredAttribution": [], + "assetLicense": "Apache-2.0", + "provenanceTemplateId": "lcm_dawn_alpine_lake", + "sha256": "sha256:bytes:767b8d794460fca5a3e1c79a89aeaa2b1dcdb815d47702e1063ed35d07163247", + "publishDecision": "approved", + "holdReason": null + }, + { + "path": "template-gallery/reviews/low_vram.quality-review.json", + "sha256": "sha256:bytes:53b25669d880814ac612e803b0c6f2abbcdd8853e7ea4ca6e1e6d0b97fa23352", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers", + "creationMethod": "MoDiff-authored technical provenance or quality metadata from the explicitly approved six-image source packet", + "sourceUrl": null, + "sourceRevision": null, + "sourceLicense": "Apache-2.0 project-authored metadata; generated-media terms remain in their exact per-file records", + "modelTerms": [], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [], + "assetLicense": "Apache-2.0", + "reviewedBy": "SOURAV DAS", + "reviewedAt": "2026-11-09", + "reviewClass": "per-file-human-approved-six-z-registration", + "provenanceTemplateId": "low_vram", + "humanApprovalPacketSHA256": "9b728a5f8535fc1ba3c03d2e2759d7ac795a586fafab51beb1509379ed388934" + }, + { + "path": "template-gallery/reviews/low_vram.reviewed-provenance.json", + "sha256": "sha256:bytes:a07f1942cb39c873d7ccd1b99dbece3c203d73296712aa0168a3edf4054b8076", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers", + "creationMethod": "MoDiff-authored technical provenance or quality metadata from the explicitly approved six-image source packet", + "sourceUrl": null, + "sourceRevision": null, + "sourceLicense": "Apache-2.0 project-authored metadata; generated-media terms remain in their exact per-file records", + "modelTerms": [], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [], + "assetLicense": "Apache-2.0", + "reviewedBy": "SOURAV DAS", + "reviewedAt": "2026-11-09", + "reviewClass": "per-file-human-approved-six-z-registration", + "provenanceTemplateId": "low_vram", + "humanApprovalPacketSHA256": "9b728a5f8535fc1ba3c03d2e2759d7ac795a586fafab51beb1509379ed388934" + }, + { + "creatorOrRightsholder": "MoDiff project maintainers", + "creationMethod": "Project-authored redacted technical/review records or versioned declarations for seven maintainer-accepted native video replacements", + "sourceUrl": null, + "sourceRevision": null, + "sourceLicense": "Apache-2.0 project-authored metadata; media and model terms remain separate", + "modelTerms": [], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [], + "assetLicense": "Apache-2.0", + "path": "template-gallery/reviews/ltx_video_animated_story.quality-review.json", + "sha256": "sha256:bytes:1ec83b229ba5c7995c8ada2629c448334965939304ffddc7a70161c8b7e1b7f1", + "publishDecision": "approved", + "holdReason": null, + "reviewedBy": "SOURAV DAS", + "reviewedAt": "2026-11-15", + "reviewClass": "per-file-maintainer-accepted-native-seven-registration", + "humanApprovalPacketSHA256": "95c7c2ed080c3d618db1701b066724660595337460c46df8305b50810783eaa3", + "publicationBasis": "these are approved, you can register them", + "provenanceTemplateId": "ltx_video_animated_story" + }, + { + "creatorOrRightsholder": "MoDiff project maintainers", + "creationMethod": "Project-authored redacted technical/review records or versioned declarations for seven maintainer-accepted native video replacements", + "sourceUrl": null, + "sourceRevision": null, + "sourceLicense": "Apache-2.0 project-authored metadata; media and model terms remain separate", + "modelTerms": [], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [], + "assetLicense": "Apache-2.0", + "path": "template-gallery/reviews/ltx_video_animated_story.reviewed-provenance.json", + "sha256": "sha256:bytes:3910ae6f164eb978e38b16e1eab92d73fe7f55dac543b681416ba0b8c43b440d", + "publishDecision": "approved", + "holdReason": null, + "reviewedBy": "SOURAV DAS", + "reviewedAt": "2026-11-15", + "reviewClass": "per-file-maintainer-accepted-native-seven-registration", + "humanApprovalPacketSHA256": "95c7c2ed080c3d618db1701b066724660595337460c46df8305b50810783eaa3", + "publicationBasis": "these are approved, you can register them", + "provenanceTemplateId": "ltx_video_animated_story" + }, + { + "path": "template-gallery/reviews/ltx_video_image_to_video.quality-review.json", + "sha256": "sha256:bytes:6c31e71b0b9e6a6a1c46f55e058dd208b7b2f510f6eeb332648575da388f9431", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers", + "creationMethod": "Project-authored Gallery manifest, native provenance or accepted quality review", + "sourceUrl": null, + "sourceRevision": null, + "sourceLicense": "Apache-2.0 project-authored metadata", + "modelTerms": [], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [], + "assetLicense": "Apache-2.0", + "reviewedBy": "SOURAV DAS", + "reviewedAt": "2026-11-10", + "reviewClass": "per-file-maintainer-accepted-native-gallery-registration", + "provenanceTemplateId": "ltx_video_image_to_video", + "humanApprovalPacketSHA256": "73ddf9ea7fc27eccc6b93817809421a008ce0fd2fb3080ffbdc5831a09205304" + }, + { + "path": "template-gallery/reviews/ltx_video_image_to_video.reviewed-provenance.json", + "sha256": "sha256:bytes:ff18a19dd44e03eb76e3879a7e49f1732cc9e6dba6affadcf370feafcc6cf06b", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers", + "creationMethod": "Project-authored Gallery manifest, native provenance or accepted quality review", + "sourceUrl": null, + "sourceRevision": null, + "sourceLicense": "Apache-2.0 project-authored metadata", + "modelTerms": [], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [], + "assetLicense": "Apache-2.0", + "reviewedBy": "SOURAV DAS", + "reviewedAt": "2026-11-10", + "reviewClass": "per-file-maintainer-accepted-native-gallery-registration", + "provenanceTemplateId": "ltx_video_image_to_video", + "humanApprovalPacketSHA256": "73ddf9ea7fc27eccc6b93817809421a008ce0fd2fb3080ffbdc5831a09205304" + }, + { + "creatorOrRightsholder": "MoDiff project maintainers", + "creationMethod": "Project-authored redacted technical/review records or versioned declarations for seven maintainer-accepted native video replacements", + "sourceUrl": null, + "sourceRevision": null, + "sourceLicense": "Apache-2.0 project-authored metadata; media and model terms remain separate", + "modelTerms": [], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [], + "assetLicense": "Apache-2.0", + "path": "template-gallery/reviews/ltx_video_long_showcase.quality-review.json", + "sha256": "sha256:bytes:60cbabfbf56d499a45000cdbabc3c4d64733de27638c1e8b127ba067f1918b9c", + "publishDecision": "approved", + "holdReason": null, + "reviewedBy": "SOURAV DAS", + "reviewedAt": "2026-11-15", + "reviewClass": "per-file-maintainer-accepted-native-seven-registration", + "humanApprovalPacketSHA256": "95c7c2ed080c3d618db1701b066724660595337460c46df8305b50810783eaa3", + "publicationBasis": "these are approved, you can register them", + "provenanceTemplateId": "ltx_video_long_showcase" + }, + { + "creatorOrRightsholder": "MoDiff project maintainers", + "creationMethod": "Project-authored redacted technical/review records or versioned declarations for seven maintainer-accepted native video replacements", + "sourceUrl": null, + "sourceRevision": null, + "sourceLicense": "Apache-2.0 project-authored metadata; media and model terms remain separate", + "modelTerms": [], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [], + "assetLicense": "Apache-2.0", + "path": "template-gallery/reviews/ltx_video_long_showcase.reviewed-provenance.json", + "sha256": "sha256:bytes:c2566ed4233b850092727e2bfc805d1be849c2b11cd9424e42283ff9e19b15d0", + "publishDecision": "approved", + "holdReason": null, + "reviewedBy": "SOURAV DAS", + "reviewedAt": "2026-11-15", + "reviewClass": "per-file-maintainer-accepted-native-seven-registration", + "humanApprovalPacketSHA256": "95c7c2ed080c3d618db1701b066724660595337460c46df8305b50810783eaa3", + "publicationBasis": "these are approved, you can register them", + "provenanceTemplateId": "ltx_video_long_showcase" + }, + { + "path": "template-gallery/reviews/ltx_video_multi_reference.quality-review.json", + "sha256": "sha256:bytes:ccb132c3ffd2e929acca88d871c2f04ba9d0cd69d54750f303b58953a8b9bc93", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers", + "creationMethod": "Project-authored Gallery manifest, native provenance or accepted quality review", + "sourceUrl": null, + "sourceRevision": null, + "sourceLicense": "Apache-2.0 project-authored metadata", + "modelTerms": [], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [], + "assetLicense": "Apache-2.0", + "reviewedBy": "SOURAV DAS", + "reviewedAt": "2026-11-10", + "reviewClass": "per-file-maintainer-accepted-native-gallery-registration", + "provenanceTemplateId": "ltx_video_multi_reference", + "humanApprovalPacketSHA256": "73ddf9ea7fc27eccc6b93817809421a008ce0fd2fb3080ffbdc5831a09205304" + }, + { + "path": "template-gallery/reviews/ltx_video_multi_reference.reviewed-provenance.json", + "sha256": "sha256:bytes:9bdf09de275841af2f1f63ce0011dfc1eeaa703e2deeb2ebf678090abad80203", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers", + "creationMethod": "Project-authored Gallery manifest, native provenance or accepted quality review", + "sourceUrl": null, + "sourceRevision": null, + "sourceLicense": "Apache-2.0 project-authored metadata", + "modelTerms": [], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [], + "assetLicense": "Apache-2.0", + "reviewedBy": "SOURAV DAS", + "reviewedAt": "2026-11-10", + "reviewClass": "per-file-maintainer-accepted-native-gallery-registration", + "provenanceTemplateId": "ltx_video_multi_reference", + "humanApprovalPacketSHA256": "73ddf9ea7fc27eccc6b93817809421a008ce0fd2fb3080ffbdc5831a09205304" + }, + { + "path": "template-gallery/reviews/ltx_video_text_to_video.quality-review.json", + "sha256": "sha256:bytes:37f6a5c00110c6f9e306447a53691521c77db1ecf3cedf8210dd1e7ed10ea99d", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers", + "creationMethod": "Project-authored Gallery manifest, native provenance or accepted quality review", + "sourceUrl": null, + "sourceRevision": null, + "sourceLicense": "Apache-2.0 project-authored metadata", + "modelTerms": [], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [], + "assetLicense": "Apache-2.0", + "reviewedBy": "SOURAV DAS", + "reviewedAt": "2026-11-10", + "reviewClass": "per-file-maintainer-accepted-native-gallery-registration", + "provenanceTemplateId": "ltx_video_text_to_video", + "humanApprovalPacketSHA256": "73ddf9ea7fc27eccc6b93817809421a008ce0fd2fb3080ffbdc5831a09205304" + }, + { + "path": "template-gallery/reviews/ltx_video_text_to_video.reviewed-provenance.json", + "sha256": "sha256:bytes:58bfc0b841177bc73dbde13effbf5eebcf9e8d618d3aa90aa8b19afc3a6e5132", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers", + "creationMethod": "Project-authored Gallery manifest, native provenance or accepted quality review", + "sourceUrl": null, + "sourceRevision": null, + "sourceLicense": "Apache-2.0 project-authored metadata", + "modelTerms": [], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [], + "assetLicense": "Apache-2.0", + "reviewedBy": "SOURAV DAS", + "reviewedAt": "2026-11-10", + "reviewClass": "per-file-maintainer-accepted-native-gallery-registration", + "provenanceTemplateId": "ltx_video_text_to_video", + "humanApprovalPacketSHA256": "73ddf9ea7fc27eccc6b93817809421a008ce0fd2fb3080ffbdc5831a09205304" + }, + { + "creatorOrRightsholder": "MoDiff project maintainers", + "creationMethod": "Project-authored redacted technical/review records or versioned declarations for six maintainer-accepted native results", + "sourceUrl": null, + "sourceRevision": null, + "sourceLicense": "Apache-2.0 project-authored metadata; media and model terms remain separate", + "modelTerms": [], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [], + "assetLicense": "Apache-2.0", + "path": "template-gallery/reviews/ltx_video_video_to_video.quality-review.json", + "sha256": "sha256:bytes:819fd6d872b8e86bbb091980a435bd363216d069223dd694f65d7942aeb05178", + "publishDecision": "approved", + "holdReason": null, + "reviewedBy": "SOURAV DAS", + "reviewedAt": "2026-11-13", + "reviewClass": "per-file-maintainer-accepted-native-six-registration", + "humanApprovalPacketSHA256": "03b66b4631afb15032d62a1705331b56f6b12c4882c23945175ec92cc45a506f", + "publicationBasis": "Register the six approved assets now while Moonflower runs on Linux. Use Windows in parallel wherever possible, and keep the longer workflows separate for AMD cloud.", + "provenanceTemplateId": "ltx_video_video_to_video" + }, + { + "creatorOrRightsholder": "MoDiff project maintainers", + "creationMethod": "Project-authored redacted technical/review records or versioned declarations for six maintainer-accepted native results", + "sourceUrl": null, + "sourceRevision": null, + "sourceLicense": "Apache-2.0 project-authored metadata; media and model terms remain separate", + "modelTerms": [], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [], + "assetLicense": "Apache-2.0", + "path": "template-gallery/reviews/ltx_video_video_to_video.reviewed-provenance.json", + "sha256": "sha256:bytes:9de3b2659acc8383ab86923bc7c9c87be3e53f3d894a06c77af8a16a155795a4", + "publishDecision": "approved", + "holdReason": null, + "reviewedBy": "SOURAV DAS", + "reviewedAt": "2026-11-13", + "reviewClass": "per-file-maintainer-accepted-native-six-registration", + "humanApprovalPacketSHA256": "03b66b4631afb15032d62a1705331b56f6b12c4882c23945175ec92cc45a506f", + "publicationBasis": "Register the six approved assets now while Moonflower runs on Linux. Use Windows in parallel wherever possible, and keep the longer workflows separate for AMD cloud.", + "provenanceTemplateId": "ltx_video_video_to_video" + }, + { + "path": "template-gallery/reviews/lumina_opal_pendant_in_limestone.original-provenance.json", + "sha256": "sha256:bytes:1759ed2ceb7e564e568eced6f47a017c647dd549c2ebdf6e414310d8445a4fd4", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/Alpha-VLLM/Lumina-Next-SFT-diffusers/tree/0ee5ec90043acf5cb41fe96274af36eb7fad8d95", + "sourceRevision": "Alpha-VLLM/Lumina-Next-SFT-diffusers@0ee5ec90043acf5cb41fe96274af36eb7fad8d95", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "https://huggingface.co/Alpha-VLLM/Lumina-Next-SFT-diffusers/blob/0ee5ec90043acf5cb41fe96274af36eb7fad8d95/README.md" + ], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "Alpha-VLLM/Lumina-Next-SFT-diffusers@0ee5ec90043acf5cb41fe96274af36eb7fad8d95 https://huggingface.co/Alpha-VLLM/Lumina-Next-SFT-diffusers/tree/0ee5ec90043acf5cb41fe96274af36eb7fad8d95" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", + "provenanceTemplateId": "lumina_opal_pendant_in_limestone" + }, + { + "path": "template-gallery/reviews/lumina_opal_pendant_in_limestone.original-review.json", + "sha256": "sha256:bytes:11b0b3259e607f479a30ccb2c6f530ff41cb6367245961c43f56ccad21babfb7", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/Alpha-VLLM/Lumina-Next-SFT-diffusers/tree/0ee5ec90043acf5cb41fe96274af36eb7fad8d95", + "sourceRevision": "Alpha-VLLM/Lumina-Next-SFT-diffusers@0ee5ec90043acf5cb41fe96274af36eb7fad8d95", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "https://huggingface.co/Alpha-VLLM/Lumina-Next-SFT-diffusers/blob/0ee5ec90043acf5cb41fe96274af36eb7fad8d95/README.md" + ], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "Alpha-VLLM/Lumina-Next-SFT-diffusers@0ee5ec90043acf5cb41fe96274af36eb7fad8d95 https://huggingface.co/Alpha-VLLM/Lumina-Next-SFT-diffusers/tree/0ee5ec90043acf5cb41fe96274af36eb7fad8d95" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", + "provenanceTemplateId": "lumina_opal_pendant_in_limestone" + }, + { + "path": "template-gallery/reviews/lumina_opal_pendant_in_limestone.quality-review.json", + "sha256": "sha256:bytes:4566c14128c7a9a7b32d92d927cff0c2ca12bb392328bd692272130e0c5fe387", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/Alpha-VLLM/Lumina-Next-SFT-diffusers/tree/0ee5ec90043acf5cb41fe96274af36eb7fad8d95", + "sourceRevision": "Alpha-VLLM/Lumina-Next-SFT-diffusers@0ee5ec90043acf5cb41fe96274af36eb7fad8d95", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "https://huggingface.co/Alpha-VLLM/Lumina-Next-SFT-diffusers/blob/0ee5ec90043acf5cb41fe96274af36eb7fad8d95/README.md" + ], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "Alpha-VLLM/Lumina-Next-SFT-diffusers@0ee5ec90043acf5cb41fe96274af36eb7fad8d95 https://huggingface.co/Alpha-VLLM/Lumina-Next-SFT-diffusers/tree/0ee5ec90043acf5cb41fe96274af36eb7fad8d95" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", + "provenanceTemplateId": "lumina_opal_pendant_in_limestone" + }, + { + "path": "template-gallery/reviews/lumina_opal_pendant_in_limestone.retained-template-provenance.json", + "sha256": "sha256:bytes:a4e3e7b9be7fdd489f3876e63e7d0e9ed65508e84eabb0a673719251d3d46e0e", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/Alpha-VLLM/Lumina-Next-SFT-diffusers/tree/0ee5ec90043acf5cb41fe96274af36eb7fad8d95", + "sourceRevision": "Alpha-VLLM/Lumina-Next-SFT-diffusers@0ee5ec90043acf5cb41fe96274af36eb7fad8d95", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "https://huggingface.co/Alpha-VLLM/Lumina-Next-SFT-diffusers/blob/0ee5ec90043acf5cb41fe96274af36eb7fad8d95/README.md" + ], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "Alpha-VLLM/Lumina-Next-SFT-diffusers@0ee5ec90043acf5cb41fe96274af36eb7fad8d95 https://huggingface.co/Alpha-VLLM/Lumina-Next-SFT-diffusers/tree/0ee5ec90043acf5cb41fe96274af36eb7fad8d95" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", + "provenanceTemplateId": "lumina_opal_pendant_in_limestone" + }, + { + "path": "template-gallery/reviews/marigold_depth_synthetic_ramp.quality-review.json", + "sha256": "sha256:bytes:17c3bbb2da127558c468e58ccc2bb08a9b78d4f07f901d483cfe8092732ebb42", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted retained Gallery provenance, review, or registration metadata", + "sourceUrl": null, + "sourceRevision": null, + "sourceLicense": "MoDiff-authored exact fixture or Gallery metadata", + "modelTerms": [], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-19", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "e604b0284a57b65b20343c7776511ae15bef922c7e104c09f0f6931eec610d2d", + "publicationBasis": "Activate and publish the two approved Gallery candidates using their retained native runs.", + "provenanceTemplateId": "marigold_depth_synthetic_ramp" + }, + { + "path": "template-gallery/reviews/marigold_depth_synthetic_ramp.retained-template-provenance.json", + "sha256": "sha256:bytes:57b1487ecee6f44016512e1e1ce5c8135e963add06b1519b7e6007cb83184ae0", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted retained Gallery provenance, review, or registration metadata", + "sourceUrl": null, + "sourceRevision": null, + "sourceLicense": "MoDiff-authored exact fixture or Gallery metadata", + "modelTerms": [], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-19", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "e604b0284a57b65b20343c7776511ae15bef922c7e104c09f0f6931eec610d2d", + "publicationBasis": "Activate and publish the two approved Gallery candidates using their retained native runs.", + "provenanceTemplateId": "marigold_depth_synthetic_ramp" + }, + { + "path": "template-gallery/reviews/minimax_h3_image_old_town_cat.quality-review.json", + "sha256": "sha256:bytes:ce9fc2a0edaaf3eef1f3db03024d3e64108523e93fc2797fee7cbe7364e7ce97", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, subject to the recorded model terms", + "creationMethod": "Project-authored current-recipe review or redacted provenance for the saved image", + "sourceUrl": "https://huggingface.co/MiniMaxAI/MiniMax-H3-Image/tree/492fd8c4eca666f1085f57e30738c1e0d86b3439", + "sourceRevision": "MiniMaxAI/MiniMax-H3-Image@492fd8c4eca666f1085f57e30738c1e0d86b3439", + "sourceLicense": "Apache-2.0 project-authored metadata", + "modelTerms": [ + "MiniMaxAI/MiniMax-H3-Image@492fd8c4eca666f1085f57e30738c1e0d86b3439: MiniMax H3 Image Community License Agreement" + ], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-19", + "reviewClass": "per-file-maintainer-accepted-current-recipe", + "humanApprovalPacketSHA256": "97cf1d2ce0a8500d5b3b67ff4efb20a2e91c44a6f1e22d3eafd7b408babc31a2", + "provenanceTemplateId": "minimax_h3_image_old_town_cat" + }, + { + "path": "template-gallery/reviews/minimax_h3_image_old_town_cat.reviewed-provenance.json", + "sha256": "sha256:bytes:9d5792710da6b60188994c51bfa1ac49047121433d83961cd58d22b9caf6030c", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, subject to the recorded model terms", + "creationMethod": "Project-authored current-recipe review or redacted provenance for the saved image", + "sourceUrl": "https://huggingface.co/MiniMaxAI/MiniMax-H3-Image/tree/492fd8c4eca666f1085f57e30738c1e0d86b3439", + "sourceRevision": "MiniMaxAI/MiniMax-H3-Image@492fd8c4eca666f1085f57e30738c1e0d86b3439", + "sourceLicense": "Apache-2.0 project-authored metadata", + "modelTerms": [ + "MiniMaxAI/MiniMax-H3-Image@492fd8c4eca666f1085f57e30738c1e0d86b3439: MiniMax H3 Image Community License Agreement" + ], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-19", + "reviewClass": "per-file-maintainer-accepted-current-recipe", + "humanApprovalPacketSHA256": "97cf1d2ce0a8500d5b3b67ff4efb20a2e91c44a6f1e22d3eafd7b408babc31a2", + "provenanceTemplateId": "minimax_h3_image_old_town_cat" + }, + { + "creatorOrRightsholder": "MoDiff project maintainers", + "creationMethod": "Project-authored redacted technical/review records or versioned declarations for six maintainer-accepted native results", + "sourceUrl": null, + "sourceRevision": null, + "sourceLicense": "Apache-2.0 project-authored metadata; media and model terms remain separate", + "modelTerms": [], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [], + "assetLicense": "Apache-2.0", + "path": "template-gallery/reviews/minimax_music3_chamber_pop.quality-review.json", + "sha256": "sha256:bytes:cd83b77fc2ccb4b11263406c12dc9d0d222af582e52dc47b77c18a4243462502", + "publishDecision": "approved", + "holdReason": null, + "reviewedBy": "SOURAV DAS", + "reviewedAt": "2026-11-13", + "reviewClass": "per-file-maintainer-accepted-native-six-registration", + "humanApprovalPacketSHA256": "03b66b4631afb15032d62a1705331b56f6b12c4882c23945175ec92cc45a506f", + "publicationBasis": "Register the six approved assets now while Moonflower runs on Linux. Use Windows in parallel wherever possible, and keep the longer workflows separate for AMD cloud.", + "provenanceTemplateId": "minimax_music3_chamber_pop" + }, + { + "creatorOrRightsholder": "MoDiff project maintainers", + "creationMethod": "Project-authored redacted technical/review records or versioned declarations for six maintainer-accepted native results", + "sourceUrl": null, + "sourceRevision": null, + "sourceLicense": "Apache-2.0 project-authored metadata; media and model terms remain separate", + "modelTerms": [], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [], + "assetLicense": "Apache-2.0", + "path": "template-gallery/reviews/minimax_music3_chamber_pop.reviewed-provenance.json", + "sha256": "sha256:bytes:1b2c91a45c40a7d6621bee54083d3e02d9b843d1034c06e3284ff8f1a2e44270", + "publishDecision": "approved", + "holdReason": null, + "reviewedBy": "SOURAV DAS", + "reviewedAt": "2026-11-13", + "reviewClass": "per-file-maintainer-accepted-native-six-registration", + "humanApprovalPacketSHA256": "03b66b4631afb15032d62a1705331b56f6b12c4882c23945175ec92cc45a506f", + "publicationBasis": "Register the six approved assets now while Moonflower runs on Linux. Use Windows in parallel wherever possible, and keep the longer workflows separate for AMD cloud.", + "provenanceTemplateId": "minimax_music3_chamber_pop" + }, + { + "path": "template-gallery/reviews/ochre_paper_pavilion.original-provenance.json", + "sha256": "sha256:bytes:5fab665db87b17f2c4cea8e3903ac6df84232912fc2abaabee3bf3107542dc96", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/zai-org/CogView3-Plus-3B/tree/5d70e40732ac0efac98524c51a7fa9c82707f1e5", + "sourceRevision": "zai-org/CogView3-Plus-3B@5d70e40732ac0efac98524c51a7fa9c82707f1e5", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "apache-2.0. https://huggingface.co/zai-org/CogView3-Plus-3B/tree/5d70e40732ac0efac98524c51a7fa9c82707f1e5" + ], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "zai-org/CogView3-Plus-3B@5d70e40732ac0efac98524c51a7fa9c82707f1e5 https://huggingface.co/zai-org/CogView3-Plus-3B/tree/5d70e40732ac0efac98524c51a7fa9c82707f1e5" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", + "provenanceTemplateId": "ochre_paper_pavilion" + }, + { + "path": "template-gallery/reviews/ochre_paper_pavilion.original-review.json", + "sha256": "sha256:bytes:6e31d3ec89e61e8b5722fb93db8f7bb7ea8328bf1c055028ba44c18affacf058", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/zai-org/CogView3-Plus-3B/tree/5d70e40732ac0efac98524c51a7fa9c82707f1e5", + "sourceRevision": "zai-org/CogView3-Plus-3B@5d70e40732ac0efac98524c51a7fa9c82707f1e5", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "apache-2.0. https://huggingface.co/zai-org/CogView3-Plus-3B/tree/5d70e40732ac0efac98524c51a7fa9c82707f1e5" + ], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "zai-org/CogView3-Plus-3B@5d70e40732ac0efac98524c51a7fa9c82707f1e5 https://huggingface.co/zai-org/CogView3-Plus-3B/tree/5d70e40732ac0efac98524c51a7fa9c82707f1e5" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", + "provenanceTemplateId": "ochre_paper_pavilion" + }, + { + "path": "template-gallery/reviews/ochre_paper_pavilion.quality-review.json", + "sha256": "sha256:bytes:a635772ae5b26758629581843258dea266c7e85934eb222d4884b9a2522a93c1", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/zai-org/CogView3-Plus-3B/tree/5d70e40732ac0efac98524c51a7fa9c82707f1e5", + "sourceRevision": "zai-org/CogView3-Plus-3B@5d70e40732ac0efac98524c51a7fa9c82707f1e5", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "apache-2.0. https://huggingface.co/zai-org/CogView3-Plus-3B/tree/5d70e40732ac0efac98524c51a7fa9c82707f1e5" + ], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "zai-org/CogView3-Plus-3B@5d70e40732ac0efac98524c51a7fa9c82707f1e5 https://huggingface.co/zai-org/CogView3-Plus-3B/tree/5d70e40732ac0efac98524c51a7fa9c82707f1e5" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", + "provenanceTemplateId": "ochre_paper_pavilion" + }, + { + "path": "template-gallery/reviews/ochre_paper_pavilion.retained-template-provenance.json", + "sha256": "sha256:bytes:9bd899fe903bcc05057c1ae452c641700d9c36b5001b499dadba6a6a07e36e80", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/zai-org/CogView3-Plus-3B/tree/5d70e40732ac0efac98524c51a7fa9c82707f1e5", + "sourceRevision": "zai-org/CogView3-Plus-3B@5d70e40732ac0efac98524c51a7fa9c82707f1e5", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "apache-2.0. https://huggingface.co/zai-org/CogView3-Plus-3B/tree/5d70e40732ac0efac98524c51a7fa9c82707f1e5" + ], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "zai-org/CogView3-Plus-3B@5d70e40732ac0efac98524c51a7fa9c82707f1e5 https://huggingface.co/zai-org/CogView3-Plus-3B/tree/5d70e40732ac0efac98524c51a7fa9c82707f1e5" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", + "provenanceTemplateId": "ochre_paper_pavilion" + }, + { + "path": "template-gallery/reviews/persimmon_glaze.original-provenance.json", + "sha256": "sha256:bytes:dece98191d7fdcae395409a4ca8fb0f7eb215bc095660a8251d668f1dabd0054", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/Efficient-Large-Model/Sana_600M_1024px_diffusers/tree/28f3af7689de15f3883d5863059a2fca0aa9b829", + "sourceRevision": "Efficient-Large-Model/Sana_600M_1024px_diffusers@28f3af7689de15f3883d5863059a2fca0aa9b829", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "apache-2.0. https://huggingface.co/Efficient-Large-Model/Sana_600M_1024px_diffusers/tree/28f3af7689de15f3883d5863059a2fca0aa9b829" + ], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "Efficient-Large-Model/Sana_600M_1024px_diffusers@28f3af7689de15f3883d5863059a2fca0aa9b829 https://huggingface.co/Efficient-Large-Model/Sana_600M_1024px_diffusers/tree/28f3af7689de15f3883d5863059a2fca0aa9b829" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", + "provenanceTemplateId": "persimmon_glaze" + }, + { + "path": "template-gallery/reviews/persimmon_glaze.original-review.json", + "sha256": "sha256:bytes:3c97652cd91cc4af5660429652241efbe6675b20ec59c7abc73c3f1c185b491a", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/Efficient-Large-Model/Sana_600M_1024px_diffusers/tree/28f3af7689de15f3883d5863059a2fca0aa9b829", + "sourceRevision": "Efficient-Large-Model/Sana_600M_1024px_diffusers@28f3af7689de15f3883d5863059a2fca0aa9b829", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "apache-2.0. https://huggingface.co/Efficient-Large-Model/Sana_600M_1024px_diffusers/tree/28f3af7689de15f3883d5863059a2fca0aa9b829" + ], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "Efficient-Large-Model/Sana_600M_1024px_diffusers@28f3af7689de15f3883d5863059a2fca0aa9b829 https://huggingface.co/Efficient-Large-Model/Sana_600M_1024px_diffusers/tree/28f3af7689de15f3883d5863059a2fca0aa9b829" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", + "provenanceTemplateId": "persimmon_glaze" + }, + { + "path": "template-gallery/reviews/persimmon_glaze.quality-review.json", + "sha256": "sha256:bytes:9c9afc7223597ea8ee65889581c40f1e9f6a63a2bab6d7827b6af207353909ad", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/Efficient-Large-Model/Sana_600M_1024px_diffusers/tree/28f3af7689de15f3883d5863059a2fca0aa9b829", + "sourceRevision": "Efficient-Large-Model/Sana_600M_1024px_diffusers@28f3af7689de15f3883d5863059a2fca0aa9b829", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "apache-2.0. https://huggingface.co/Efficient-Large-Model/Sana_600M_1024px_diffusers/tree/28f3af7689de15f3883d5863059a2fca0aa9b829" + ], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "Efficient-Large-Model/Sana_600M_1024px_diffusers@28f3af7689de15f3883d5863059a2fca0aa9b829 https://huggingface.co/Efficient-Large-Model/Sana_600M_1024px_diffusers/tree/28f3af7689de15f3883d5863059a2fca0aa9b829" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", + "provenanceTemplateId": "persimmon_glaze" + }, + { + "path": "template-gallery/reviews/persimmon_glaze.retained-template-provenance.json", + "sha256": "sha256:bytes:4813f96f9332d04d4b8b0fc8d30d51e110ab8d157a1aef7c6172474f09bb490f", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/Efficient-Large-Model/Sana_600M_1024px_diffusers/tree/28f3af7689de15f3883d5863059a2fca0aa9b829", + "sourceRevision": "Efficient-Large-Model/Sana_600M_1024px_diffusers@28f3af7689de15f3883d5863059a2fca0aa9b829", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "apache-2.0. https://huggingface.co/Efficient-Large-Model/Sana_600M_1024px_diffusers/tree/28f3af7689de15f3883d5863059a2fca0aa9b829" + ], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "Efficient-Large-Model/Sana_600M_1024px_diffusers@28f3af7689de15f3883d5863059a2fca0aa9b829 https://huggingface.co/Efficient-Large-Model/Sana_600M_1024px_diffusers/tree/28f3af7689de15f3883d5863059a2fca0aa9b829" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", + "provenanceTemplateId": "persimmon_glaze" + }, + { + "path": "template-gallery/reviews/pomegranate_on_blue_linen.original-provenance.json", + "sha256": "sha256:bytes:b9cecf2139bc5a0e5d6a3db462caf017c4d54482267592bf220f5015f7ae690b", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14", + "sourceRevision": "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "creativeml-openrail-m. https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14" + ], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14 https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", + "provenanceTemplateId": "pomegranate_on_blue_linen" + }, + { + "path": "template-gallery/reviews/pomegranate_on_blue_linen.original-review.json", + "sha256": "sha256:bytes:752b7cc115a3794d1066785e887b73e3eed5f3bb6735ef5ec89c45035b20d7e4", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14", + "sourceRevision": "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "creativeml-openrail-m. https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14" + ], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14 https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", + "provenanceTemplateId": "pomegranate_on_blue_linen" + }, + { + "path": "template-gallery/reviews/pomegranate_on_blue_linen.quality-review.json", + "sha256": "sha256:bytes:412a9940d2e86768a91a54c8d1282d46ff638f86d94d6582e81738f32c2749ab", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14", + "sourceRevision": "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "creativeml-openrail-m. https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14" + ], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14 https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", + "provenanceTemplateId": "pomegranate_on_blue_linen" + }, + { + "path": "template-gallery/reviews/pomegranate_on_blue_linen.retained-template-provenance.json", + "sha256": "sha256:bytes:15ad50f1686ae7dca486dba01974ad9155dbfc694b97b824314c257e316c185e", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14", + "sourceRevision": "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "creativeml-openrail-m. https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14" + ], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14 https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", + "provenanceTemplateId": "pomegranate_on_blue_linen" + }, + { + "path": "template-gallery/reviews/porcelain_on_slate_linen.original-provenance.json", + "sha256": "sha256:bytes:a20717be541cf1ac1dc84a8b7fdfd82f0dfedd5ec322ec1e257654a978ab1842", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/SimianLuo/LCM_Dreamshaper_v7/tree/a85df6a8bd976cdd08b4fd8f3b73f229c9e54df5", + "sourceRevision": "SimianLuo/LCM_Dreamshaper_v7@a85df6a8bd976cdd08b4fd8f3b73f229c9e54df5", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "mit. https://huggingface.co/SimianLuo/LCM_Dreamshaper_v7/tree/a85df6a8bd976cdd08b4fd8f3b73f229c9e54df5" + ], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "SimianLuo/LCM_Dreamshaper_v7@a85df6a8bd976cdd08b4fd8f3b73f229c9e54df5 https://huggingface.co/SimianLuo/LCM_Dreamshaper_v7/tree/a85df6a8bd976cdd08b4fd8f3b73f229c9e54df5" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", + "provenanceTemplateId": "porcelain_on_slate_linen" + }, + { + "path": "template-gallery/reviews/porcelain_on_slate_linen.original-review.json", + "sha256": "sha256:bytes:8f6972bd24388616958f18d53ba39b7a9626fd23ef2470a96e888d01599ee303", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/SimianLuo/LCM_Dreamshaper_v7/tree/a85df6a8bd976cdd08b4fd8f3b73f229c9e54df5", + "sourceRevision": "SimianLuo/LCM_Dreamshaper_v7@a85df6a8bd976cdd08b4fd8f3b73f229c9e54df5", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "mit. https://huggingface.co/SimianLuo/LCM_Dreamshaper_v7/tree/a85df6a8bd976cdd08b4fd8f3b73f229c9e54df5" + ], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "SimianLuo/LCM_Dreamshaper_v7@a85df6a8bd976cdd08b4fd8f3b73f229c9e54df5 https://huggingface.co/SimianLuo/LCM_Dreamshaper_v7/tree/a85df6a8bd976cdd08b4fd8f3b73f229c9e54df5" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", + "provenanceTemplateId": "porcelain_on_slate_linen" + }, + { + "path": "template-gallery/reviews/porcelain_on_slate_linen.quality-review.json", + "sha256": "sha256:bytes:aa85f397af28e1ca7da538dae08a96d1ff3452c5542f72419447fa5635a2aab3", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/SimianLuo/LCM_Dreamshaper_v7/tree/a85df6a8bd976cdd08b4fd8f3b73f229c9e54df5", + "sourceRevision": "SimianLuo/LCM_Dreamshaper_v7@a85df6a8bd976cdd08b4fd8f3b73f229c9e54df5", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "mit. https://huggingface.co/SimianLuo/LCM_Dreamshaper_v7/tree/a85df6a8bd976cdd08b4fd8f3b73f229c9e54df5" + ], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "SimianLuo/LCM_Dreamshaper_v7@a85df6a8bd976cdd08b4fd8f3b73f229c9e54df5 https://huggingface.co/SimianLuo/LCM_Dreamshaper_v7/tree/a85df6a8bd976cdd08b4fd8f3b73f229c9e54df5" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", + "provenanceTemplateId": "porcelain_on_slate_linen" + }, + { + "path": "template-gallery/reviews/porcelain_on_slate_linen.retained-template-provenance.json", + "sha256": "sha256:bytes:e1d8fb3b54f1fc0c1d4e3560d9a7d829aaf81d22f3cd543809051b38b598a396", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/SimianLuo/LCM_Dreamshaper_v7/tree/a85df6a8bd976cdd08b4fd8f3b73f229c9e54df5", + "sourceRevision": "SimianLuo/LCM_Dreamshaper_v7@a85df6a8bd976cdd08b4fd8f3b73f229c9e54df5", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "mit. https://huggingface.co/SimianLuo/LCM_Dreamshaper_v7/tree/a85df6a8bd976cdd08b4fd8f3b73f229c9e54df5" + ], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "SimianLuo/LCM_Dreamshaper_v7@a85df6a8bd976cdd08b4fd8f3b73f229c9e54df5 https://huggingface.co/SimianLuo/LCM_Dreamshaper_v7/tree/a85df6a8bd976cdd08b4fd8f3b73f229c9e54df5" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", + "provenanceTemplateId": "porcelain_on_slate_linen" + }, + { + "path": "template-gallery/reviews/quiet_current.original-provenance.json", + "sha256": "sha256:bytes:6831c3577cf90fa0a6606497bd13844a9b25d4371f1b402efe9b099e8a58d42c", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/zai-org/CogView4-6B/tree/63a52b7f6dace7033380cd6da14d0915eab3e6b5", + "sourceRevision": "zai-org/CogView4-6B@63a52b7f6dace7033380cd6da14d0915eab3e6b5", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "apache-2.0. https://huggingface.co/zai-org/CogView4-6B/tree/63a52b7f6dace7033380cd6da14d0915eab3e6b5" + ], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "zai-org/CogView4-6B@63a52b7f6dace7033380cd6da14d0915eab3e6b5 https://huggingface.co/zai-org/CogView4-6B/tree/63a52b7f6dace7033380cd6da14d0915eab3e6b5" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", + "provenanceTemplateId": "quiet_current" + }, + { + "path": "template-gallery/reviews/quiet_current.original-review.json", + "sha256": "sha256:bytes:c1596743b2612f0bfcda8cf8d21b3e6bec1c570710c73e19e82d7d6aaea9b61c", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/zai-org/CogView4-6B/tree/63a52b7f6dace7033380cd6da14d0915eab3e6b5", + "sourceRevision": "zai-org/CogView4-6B@63a52b7f6dace7033380cd6da14d0915eab3e6b5", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "apache-2.0. https://huggingface.co/zai-org/CogView4-6B/tree/63a52b7f6dace7033380cd6da14d0915eab3e6b5" + ], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "zai-org/CogView4-6B@63a52b7f6dace7033380cd6da14d0915eab3e6b5 https://huggingface.co/zai-org/CogView4-6B/tree/63a52b7f6dace7033380cd6da14d0915eab3e6b5" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", + "provenanceTemplateId": "quiet_current" + }, + { + "path": "template-gallery/reviews/quiet_current.quality-review.json", + "sha256": "sha256:bytes:2387a8febca71a20ea416bb6db610de9c442c584f64bd913eb66cf3688d84773", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/zai-org/CogView4-6B/tree/63a52b7f6dace7033380cd6da14d0915eab3e6b5", + "sourceRevision": "zai-org/CogView4-6B@63a52b7f6dace7033380cd6da14d0915eab3e6b5", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "apache-2.0. https://huggingface.co/zai-org/CogView4-6B/tree/63a52b7f6dace7033380cd6da14d0915eab3e6b5" + ], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "zai-org/CogView4-6B@63a52b7f6dace7033380cd6da14d0915eab3e6b5 https://huggingface.co/zai-org/CogView4-6B/tree/63a52b7f6dace7033380cd6da14d0915eab3e6b5" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", + "provenanceTemplateId": "quiet_current" + }, + { + "path": "template-gallery/reviews/quiet_current.retained-template-provenance.json", + "sha256": "sha256:bytes:888aecdcb91637d93c268a9ad7b615ca545e7b73e2f1caf064c12bf4a0681655", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/zai-org/CogView4-6B/tree/63a52b7f6dace7033380cd6da14d0915eab3e6b5", + "sourceRevision": "zai-org/CogView4-6B@63a52b7f6dace7033380cd6da14d0915eab3e6b5", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "apache-2.0. https://huggingface.co/zai-org/CogView4-6B/tree/63a52b7f6dace7033380cd6da14d0915eab3e6b5" + ], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "zai-org/CogView4-6B@63a52b7f6dace7033380cd6da14d0915eab3e6b5 https://huggingface.co/zai-org/CogView4-6B/tree/63a52b7f6dace7033380cd6da14d0915eab3e6b5" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", + "provenanceTemplateId": "quiet_current" + }, + { + "path": "template-gallery/reviews/quiet_kiln_at_daybreak.original-provenance.json", + "sha256": "sha256:bytes:a4b6c9950b2f2f6d185eb574ad4acddec21e2015fcf8d50bd14195ed24dcee97", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/NucleusAI/Nucleus-Image/tree/5e963db4fd0a65c7e4faf53ca2d4eca567c4dcfa", + "sourceRevision": "NucleusAI/Nucleus-Image@5e963db4fd0a65c7e4faf53ca2d4eca567c4dcfa", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "Apache-2.0 per the publisher at this revision. https://huggingface.co/NucleusAI/Nucleus-Image/tree/5e963db4fd0a65c7e4faf53ca2d4eca567c4dcfa" + ], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "NucleusAI/Nucleus-Image@5e963db4fd0a65c7e4faf53ca2d4eca567c4dcfa https://huggingface.co/NucleusAI/Nucleus-Image/tree/5e963db4fd0a65c7e4faf53ca2d4eca567c4dcfa" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", + "provenanceTemplateId": "quiet_kiln_at_daybreak" + }, + { + "path": "template-gallery/reviews/quiet_kiln_at_daybreak.original-review.json", + "sha256": "sha256:bytes:b76ab6d15da10b9d6fb9ddfd83af0abf2f56ca962aac6ab65c78ae231a74d2bd", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/NucleusAI/Nucleus-Image/tree/5e963db4fd0a65c7e4faf53ca2d4eca567c4dcfa", + "sourceRevision": "NucleusAI/Nucleus-Image@5e963db4fd0a65c7e4faf53ca2d4eca567c4dcfa", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "Apache-2.0 per the publisher at this revision. https://huggingface.co/NucleusAI/Nucleus-Image/tree/5e963db4fd0a65c7e4faf53ca2d4eca567c4dcfa" + ], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "NucleusAI/Nucleus-Image@5e963db4fd0a65c7e4faf53ca2d4eca567c4dcfa https://huggingface.co/NucleusAI/Nucleus-Image/tree/5e963db4fd0a65c7e4faf53ca2d4eca567c4dcfa" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", + "provenanceTemplateId": "quiet_kiln_at_daybreak" + }, + { + "path": "template-gallery/reviews/quiet_kiln_at_daybreak.quality-review.json", + "sha256": "sha256:bytes:b0118affa79b69e333c6a7977aa8c47328d570dd374aa212f0a371ec5a4a353b", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/NucleusAI/Nucleus-Image/tree/5e963db4fd0a65c7e4faf53ca2d4eca567c4dcfa", + "sourceRevision": "NucleusAI/Nucleus-Image@5e963db4fd0a65c7e4faf53ca2d4eca567c4dcfa", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "Apache-2.0 per the publisher at this revision. https://huggingface.co/NucleusAI/Nucleus-Image/tree/5e963db4fd0a65c7e4faf53ca2d4eca567c4dcfa" + ], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "NucleusAI/Nucleus-Image@5e963db4fd0a65c7e4faf53ca2d4eca567c4dcfa https://huggingface.co/NucleusAI/Nucleus-Image/tree/5e963db4fd0a65c7e4faf53ca2d4eca567c4dcfa" + ], "assetLicense": "Apache-2.0", - "path": "template-gallery/reviews/minimax_music3_chamber_pop.quality-review.json", - "sha256": "sha256:bytes:cd83b77fc2ccb4b11263406c12dc9d0d222af582e52dc47b77c18a4243462502", - "publishDecision": "approved", - "holdReason": null, - "reviewedBy": "SOURAV DAS", - "reviewedAt": "2026-11-13", - "reviewClass": "per-file-maintainer-accepted-native-six-registration", - "humanApprovalPacketSHA256": "03b66b4631afb15032d62a1705331b56f6b12c4882c23945175ec92cc45a506f", - "publicationBasis": "Register the six approved assets now while Moonflower runs on Linux. Use Windows in parallel wherever possible, and keep the longer workflows separate for AMD cloud.", - "provenanceTemplateId": "minimax_music3_chamber_pop" + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", + "provenanceTemplateId": "quiet_kiln_at_daybreak" }, { - "creatorOrRightsholder": "MoDiff project maintainers", - "creationMethod": "Project-authored redacted technical/review records or versioned declarations for six maintainer-accepted native results", - "sourceUrl": null, - "sourceRevision": null, - "sourceLicense": "Apache-2.0 project-authored metadata; media and model terms remain separate", - "modelTerms": [], + "path": "template-gallery/reviews/quiet_kiln_at_daybreak.retained-template-provenance.json", + "sha256": "sha256:bytes:ae5db3f69f0a3ae1ad178ca986819e1b8cb1ccdf50c9b3850d5ec2e7d745ba8d", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/NucleusAI/Nucleus-Image/tree/5e963db4fd0a65c7e4faf53ca2d4eca567c4dcfa", + "sourceRevision": "NucleusAI/Nucleus-Image@5e963db4fd0a65c7e4faf53ca2d4eca567c4dcfa", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "Apache-2.0 per the publisher at this revision. https://huggingface.co/NucleusAI/Nucleus-Image/tree/5e963db4fd0a65c7e4faf53ca2d4eca567c4dcfa" + ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], - "requiredAttribution": [], + "requiredAttribution": [ + "NucleusAI/Nucleus-Image@5e963db4fd0a65c7e4faf53ca2d4eca567c4dcfa https://huggingface.co/NucleusAI/Nucleus-Image/tree/5e963db4fd0a65c7e4faf53ca2d4eca567c4dcfa" + ], "assetLicense": "Apache-2.0", - "path": "template-gallery/reviews/minimax_music3_chamber_pop.reviewed-provenance.json", - "sha256": "sha256:bytes:1b2c91a45c40a7d6621bee54083d3e02d9b843d1034c06e3284ff8f1a2e44270", - "publishDecision": "approved", - "holdReason": null, - "reviewedBy": "SOURAV DAS", - "reviewedAt": "2026-11-13", - "reviewClass": "per-file-maintainer-accepted-native-six-registration", - "humanApprovalPacketSHA256": "03b66b4631afb15032d62a1705331b56f6b12c4882c23945175ec92cc45a506f", - "publicationBasis": "Register the six approved assets now while Moonflower runs on Linux. Use Windows in parallel wherever possible, and keep the longer workflows separate for AMD cloud.", - "provenanceTemplateId": "minimax_music3_chamber_pop" + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", + "provenanceTemplateId": "quiet_kiln_at_daybreak" }, { "path": "template-gallery/reviews/qwen_character_angles.quality-review.json", @@ -9796,6 +12288,214 @@ "provenanceTemplateId": "reference_fusion", "humanApprovalPacketSHA256": "95893cb17e10b15ae6b23d8b31b57b0e14b9af96f822d75edbc6b68971afb11d" }, + { + "path": "template-gallery/reviews/restoring_the_studio_backdrop.original-provenance.json", + "sha256": "sha256:bytes:a8d0febc08556ad204bef84d5c8d35bfab9bf69fe8d28b21f10ad315f962b897", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14", + "sourceRevision": "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": ["CreativeML Open RAIL-M at the pinned Stable Diffusion v1.5 revision."], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14 https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", + "provenanceTemplateId": "restoring_the_studio_backdrop" + }, + { + "path": "template-gallery/reviews/restoring_the_studio_backdrop.original-review.json", + "sha256": "sha256:bytes:633f93991afc1d361ac19a79c101f868f5954814f09dc349bcb61f967b821cf6", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14", + "sourceRevision": "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": ["CreativeML Open RAIL-M at the pinned Stable Diffusion v1.5 revision."], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14 https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", + "provenanceTemplateId": "restoring_the_studio_backdrop" + }, + { + "path": "template-gallery/reviews/restoring_the_studio_backdrop.quality-review.json", + "sha256": "sha256:bytes:1e0613d7b8b08333cca474aea32b92bd3d6ac680a776e639b93c554a3011b311", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14", + "sourceRevision": "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": ["CreativeML Open RAIL-M at the pinned Stable Diffusion v1.5 revision."], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14 https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", + "provenanceTemplateId": "restoring_the_studio_backdrop" + }, + { + "path": "template-gallery/reviews/restoring_the_studio_backdrop.retained-template-provenance.json", + "sha256": "sha256:bytes:6a6538a8278e1f94de68eb9b2928131809e5b3163a7157ff7db17d053635fa46", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14", + "sourceRevision": "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": ["CreativeML Open RAIL-M at the pinned Stable Diffusion v1.5 revision."], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14 https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", + "provenanceTemplateId": "restoring_the_studio_backdrop" + }, + { + "path": "template-gallery/reviews/salt_marsh_from_above.original-provenance.json", + "sha256": "sha256:bytes:a126541afded7807e2f7c48f7695571cd00edb4c237e257829dea8025548fdc4", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/fal/AuraFlow-v0.3/tree/2cd8588f04c886002be4571697d84654a50e3af3", + "sourceRevision": "fal/AuraFlow-v0.3@2cd8588f04c886002be4571697d84654a50e3af3", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "apache-2.0. https://huggingface.co/fal/AuraFlow-v0.3/tree/2cd8588f04c886002be4571697d84654a50e3af3" + ], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "fal/AuraFlow-v0.3@2cd8588f04c886002be4571697d84654a50e3af3 https://huggingface.co/fal/AuraFlow-v0.3/tree/2cd8588f04c886002be4571697d84654a50e3af3" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", + "provenanceTemplateId": "salt_marsh_from_above" + }, + { + "path": "template-gallery/reviews/salt_marsh_from_above.original-review.json", + "sha256": "sha256:bytes:890b1c2f2a76d781d9c1062a1e4ec1e637a5d7de161e8ec21fb4860bfba68365", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/fal/AuraFlow-v0.3/tree/2cd8588f04c886002be4571697d84654a50e3af3", + "sourceRevision": "fal/AuraFlow-v0.3@2cd8588f04c886002be4571697d84654a50e3af3", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "apache-2.0. https://huggingface.co/fal/AuraFlow-v0.3/tree/2cd8588f04c886002be4571697d84654a50e3af3" + ], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "fal/AuraFlow-v0.3@2cd8588f04c886002be4571697d84654a50e3af3 https://huggingface.co/fal/AuraFlow-v0.3/tree/2cd8588f04c886002be4571697d84654a50e3af3" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", + "provenanceTemplateId": "salt_marsh_from_above" + }, + { + "path": "template-gallery/reviews/salt_marsh_from_above.quality-review.json", + "sha256": "sha256:bytes:deb996a0c76f064ba87fcbde7750b4297dedd4f470a70246be5ce550f88b52d3", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/fal/AuraFlow-v0.3/tree/2cd8588f04c886002be4571697d84654a50e3af3", + "sourceRevision": "fal/AuraFlow-v0.3@2cd8588f04c886002be4571697d84654a50e3af3", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "apache-2.0. https://huggingface.co/fal/AuraFlow-v0.3/tree/2cd8588f04c886002be4571697d84654a50e3af3" + ], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "fal/AuraFlow-v0.3@2cd8588f04c886002be4571697d84654a50e3af3 https://huggingface.co/fal/AuraFlow-v0.3/tree/2cd8588f04c886002be4571697d84654a50e3af3" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", + "provenanceTemplateId": "salt_marsh_from_above" + }, + { + "path": "template-gallery/reviews/salt_marsh_from_above.retained-template-provenance.json", + "sha256": "sha256:bytes:9a904012bac7d429111212a1e17e1b5b08a754a6354230233a6c81b8f1a2cfe2", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/fal/AuraFlow-v0.3/tree/2cd8588f04c886002be4571697d84654a50e3af3", + "sourceRevision": "fal/AuraFlow-v0.3@2cd8588f04c886002be4571697d84654a50e3af3", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "apache-2.0. https://huggingface.co/fal/AuraFlow-v0.3/tree/2cd8588f04c886002be4571697d84654a50e3af3" + ], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "fal/AuraFlow-v0.3@2cd8588f04c886002be4571697d84654a50e3af3 https://huggingface.co/fal/AuraFlow-v0.3/tree/2cd8588f04c886002be4571697d84654a50e3af3" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", + "provenanceTemplateId": "salt_marsh_from_above" + }, { "path": "template-gallery/reviews/sana_sprint_monochrome_tiger.quality-review.json", "sha256": "sha256:bytes:daad196fff80a6e8d2543deeb911b5cd94a027a746e8d7cc0a011dc687f8c50e", @@ -9934,6 +12634,114 @@ "publicationBasis": "Maintainer approved this exact saved Spandrel 2× technical preview and confirmed redistribution rights.", "provenanceTemplateId": "spandrel_x2_synthetic_gradient" }, + { + "path": "template-gallery/reviews/the_glasshouse_seed_tray.original-provenance.json", + "sha256": "sha256:bytes:267ab964ea3749739c8f58b86f7b94aa2c2cfe506a12c4f33c615c8415a97230", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b", + "sourceRevision": "stabilityai/stable-diffusion-xl-base-1.0@462165984030d82259a11f4367a4eed129e94a7b", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "CreativeML Open RAIL++-M. https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b" + ], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "stabilityai/stable-diffusion-xl-base-1.0@462165984030d82259a11f4367a4eed129e94a7b https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", + "provenanceTemplateId": "the_glasshouse_seed_tray" + }, + { + "path": "template-gallery/reviews/the_glasshouse_seed_tray.original-review.json", + "sha256": "sha256:bytes:49410d9deaf87256d1f77a2ee3839b8ae49ddd9ba4a33b6bc740347c4ce12744", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b", + "sourceRevision": "stabilityai/stable-diffusion-xl-base-1.0@462165984030d82259a11f4367a4eed129e94a7b", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "CreativeML Open RAIL++-M. https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b" + ], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "stabilityai/stable-diffusion-xl-base-1.0@462165984030d82259a11f4367a4eed129e94a7b https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", + "provenanceTemplateId": "the_glasshouse_seed_tray" + }, + { + "path": "template-gallery/reviews/the_glasshouse_seed_tray.quality-review.json", + "sha256": "sha256:bytes:ddc92db2d2f6ce8da152019e33a20b66ffd61a780d72b76ce550fd2d00d63a33", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b", + "sourceRevision": "stabilityai/stable-diffusion-xl-base-1.0@462165984030d82259a11f4367a4eed129e94a7b", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "CreativeML Open RAIL++-M. https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b" + ], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "stabilityai/stable-diffusion-xl-base-1.0@462165984030d82259a11f4367a4eed129e94a7b https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", + "provenanceTemplateId": "the_glasshouse_seed_tray" + }, + { + "path": "template-gallery/reviews/the_glasshouse_seed_tray.retained-template-provenance.json", + "sha256": "sha256:bytes:c719553a51b1b44737b448ad981e6e14d2e71ad4a63deb0a865453e94e7c78c8", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b", + "sourceRevision": "stabilityai/stable-diffusion-xl-base-1.0@462165984030d82259a11f4367a4eed129e94a7b", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "CreativeML Open RAIL++-M. https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b" + ], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "stabilityai/stable-diffusion-xl-base-1.0@462165984030d82259a11f4367a4eed129e94a7b https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", + "provenanceTemplateId": "the_glasshouse_seed_tray" + }, { "path": "template-gallery/reviews/wan_22_ti2v_5b_seed_vault.quality-review.json", "sha256": "sha256:bytes:119627f8cbd5751af0bf7cbf7dc7f5fa6a22ce28000438e0e49fc7569a493596", @@ -11981,6 +14789,33 @@ "publicationBasis": "you can register these two as well", "provenanceTemplateId": "ace_step_lyric_music_video" }, + { + "path": "template-gallery/salt_marsh_from_above.webp", + "sha256": "sha256:bytes:6447268a9bef5f8a4503d73760f91e8d930e9ce620880e958f461d7d6539f27c", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Exact approved file captured from a saved MoDiff workflow", + "sourceUrl": "https://huggingface.co/fal/AuraFlow-v0.3/tree/2cd8588f04c886002be4571697d84654a50e3af3", + "sourceRevision": "fal/AuraFlow-v0.3@2cd8588f04c886002be4571697d84654a50e3af3", + "sourceLicense": "Maintainer-authorized file with publisher terms retained", + "modelTerms": [ + "apache-2.0. https://huggingface.co/fal/AuraFlow-v0.3/tree/2cd8588f04c886002be4571697d84654a50e3af3" + ], + "aiGenerated": true, + "humanLikenessConsent": "synthetic", + "marks": [], + "requiredAttribution": [ + "fal/AuraFlow-v0.3@2cd8588f04c886002be4571697d84654a50e3af3 https://huggingface.co/fal/AuraFlow-v0.3/tree/2cd8588f04c886002be4571697d84654a50e3af3" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", + "provenanceTemplateId": "salt_marsh_from_above" + }, { "path": "template-gallery/sana_sprint_monochrome_tiger.webp", "sha256": "sha256:bytes:f22b1d5a1d2944949698b47eec10e7f8d04b23bc0746f4e089b41d78e9d94ff7", @@ -12807,6 +15642,33 @@ "publicationBasis": "Maintainer approved this exact saved Spandrel 2× technical preview and confirmed redistribution rights.", "provenanceTemplateId": "spandrel_x2_synthetic_gradient" }, + { + "path": "template-gallery/the_glasshouse_seed_tray.webp", + "sha256": "sha256:bytes:21fc2abc9656ec805dfa5836064beb5c53e920fd8d75a658b7cfefdcff83a35f", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Exact approved file captured from a saved MoDiff workflow", + "sourceUrl": "https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b", + "sourceRevision": "stabilityai/stable-diffusion-xl-base-1.0@462165984030d82259a11f4367a4eed129e94a7b", + "sourceLicense": "Maintainer-authorized file with publisher terms retained", + "modelTerms": [ + "CreativeML Open RAIL++-M. https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b" + ], + "aiGenerated": true, + "humanLikenessConsent": "synthetic", + "marks": [], + "requiredAttribution": [ + "stabilityai/stable-diffusion-xl-base-1.0@462165984030d82259a11f4367a4eed129e94a7b https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", + "provenanceTemplateId": "the_glasshouse_seed_tray" + }, { "path": "template-gallery/wan_21_t2v_13b_seed_vault.card-poster.png", "sha256": "sha256:bytes:fd3dbd225c9cd6d1a07b0bcfd80724b60b235f4287423a234c0a56017cd1d3b2", diff --git a/config/template-assets.v1.json b/config/template-assets.v1.json index b64b39d2..85c86801 100644 --- a/config/template-assets.v1.json +++ b/config/template-assets.v1.json @@ -153,6 +153,39 @@ "tooling" ] }, + { + "path": "template-gallery/alpine_lake_in_oils.webp", + "size": 565124, + "sha256": "sha256:bytes:734b381cd8bb514a1a3aa4e057aa5675e3cd437381d7e081b7577267fb0222bf", + "contentType": "image/webp", + "purposes": [ + "runtime" + ], + "width": 1024, + "height": 1024 + }, + { + "path": "template-gallery/bookshop_at_blue_hour.webp", + "size": 569776, + "sha256": "sha256:bytes:ff045be510a0e88cbab69bbe8c3794dd26bd19036bdec26a63a5b6ea5a11bc66", + "contentType": "image/webp", + "purposes": [ + "runtime" + ], + "width": 1024, + "height": 1024 + }, + { + "path": "template-gallery/canal_lantern_in_warm_light.webp", + "size": 315492, + "sha256": "sha256:bytes:245deed3f2a8ac213c630ac7a8517c625c1eaa60971778d816a55220310ed8c3", + "contentType": "image/webp", + "purposes": [ + "runtime" + ], + "width": 1024, + "height": 1024 + }, { "path": "template-gallery/character_edit.webp", "size": 242746, @@ -164,6 +197,28 @@ "width": 1024, "height": 1024 }, + { + "path": "template-gallery/cobalt_jug_and_lemons.webp", + "size": 116500, + "sha256": "sha256:bytes:a8f9d05f34a6bbf631bccbb3eadf1d18824a772f5f1e038248db7bfdc8c0dbba", + "contentType": "image/webp", + "purposes": [ + "runtime" + ], + "width": 512, + "height": 512 + }, + { + "path": "template-gallery/copper_hour_dunes.webp", + "size": 135298, + "sha256": "sha256:bytes:45eabeca35fe5982441c80158faa69bca6da1d7f2efb3002a81a8b5c03ae4ef2", + "contentType": "image/webp", + "purposes": [ + "runtime" + ], + "width": 512, + "height": 512 + }, { "path": "template-gallery/fast_lora.card-poster.webp", "size": 211346, @@ -186,6 +241,17 @@ "width": 1024, "height": 1024 }, + { + "path": "template-gallery/flowers_after_rain.webp", + "size": 253846, + "sha256": "sha256:bytes:ffebbed5e41a1aadbffe64573e522c4ef1b1131844503200f535d1198df1fe83", + "contentType": "image/webp", + "purposes": [ + "runtime" + ], + "width": 1024, + "height": 1024 + }, { "path": "template-gallery/flux2_klein_edit.webp", "size": 163900, @@ -638,6 +704,28 @@ "width": 1024, "height": 1024 }, + { + "path": "template-gallery/forest_ferns.webp", + "size": 295506, + "sha256": "sha256:bytes:714152e1bc5bbfba9201877fa572f7537204806c5b0ad24f71eda95b09f89f26", + "contentType": "image/webp", + "purposes": [ + "runtime" + ], + "width": 1024, + "height": 1024 + }, + { + "path": "template-gallery/glasshouse_rain.webp", + "size": 555700, + "sha256": "sha256:bytes:56968828743bb61caae1be50d0fe07499cea57eade5d9e6586749cd9da99003b", + "contentType": "image/webp", + "purposes": [ + "runtime" + ], + "width": 1024, + "height": 1024 + }, { "path": "template-gallery/high_quality.webp", "size": 294374, @@ -1315,6 +1403,17 @@ "runtime" ] }, + { + "path": "template-gallery/inputs/alpine_lake_in_oils.before.png", + "size": 1509971, + "sha256": "sha256:bytes:88290a96bc8d52f11f2d1e3c0c0e04c2027661816e54b57d7d4739d731ca1e75", + "contentType": "image/png", + "purposes": [ + "runtime" + ], + "width": 1024, + "height": 1024 + }, { "path": "template-gallery/inputs/character_edit.before.webp", "size": 329508, @@ -1781,6 +1880,28 @@ "width": 1024, "height": 1024 }, + { + "path": "template-gallery/inputs/restoring_the_studio_backdrop.before.png", + "size": 271303, + "sha256": "sha256:bytes:d143c4922ad498b9bd436d06df424bbff50baf023b93735b53ee401e19e4cbf1", + "contentType": "image/png", + "purposes": [ + "runtime" + ], + "width": 512, + "height": 512 + }, + { + "path": "template-gallery/inputs/restoring_the_studio_backdrop.mask.png", + "size": 568, + "sha256": "sha256:bytes:71817f4823a73712c8e76e7d832ec382c29ec0a0bf5a472e09639448c082da01", + "contentType": "image/png", + "purposes": [ + "runtime" + ], + "width": 512, + "height": 512 + }, { "path": "template-gallery/inputs/sana_sprint_monochrome_tiger.before.webp", "size": 256118, @@ -1839,6 +1960,35 @@ "runtime" ] }, + { + "path": "template-gallery/janus_red_enamel_teapot.webp", + "size": 33688, + "sha256": "sha256:bytes:c2cc1b06535dae0816a255e5a08bb20372a4cbd2c4b895f51273140dba4615eb", + "contentType": "image/webp", + "purposes": [ + "runtime" + ], + "width": 384, + "height": 384 + }, + { + "path": "template-gallery/janus_red_triangle_caption.json", + "size": 1791, + "sha256": "sha256:bytes:1fec185a203f16541cf13a02afff3c4333b83ff6c593a88fc59fa108801e6d44", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, + { + "path": "template-gallery/janus_reykjavik_travel_note.json", + "size": 1834, + "sha256": "sha256:bytes:c7fb7a09d2480a8cffde6212e6686a5be04ccb01ec7811c7109281634d7c4daa", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, { "path": "template-gallery/layers/qwen_layered_portrait.native-layer-00.webp", "size": 103484, @@ -2156,10 +2306,21 @@ "width": 1536, "height": 1024 }, + { + "path": "template-gallery/lumina_opal_pendant_in_limestone.webp", + "size": 279270, + "sha256": "sha256:bytes:3ff57e957b7db5ad20c9c37789a0536437846cdc8eb4737482cb7f026f25fb8e", + "contentType": "image/webp", + "purposes": [ + "runtime" + ], + "width": 1024, + "height": 1024 + }, { "path": "template-gallery/manifest.json", - "size": 242731, - "sha256": "sha256:bytes:a13452fd3e4a7e389f4bf5ef0e79fcd5e029bc12ce8fc329ba29319cd044ae30", + "size": 290556, + "sha256": "sha256:bytes:0237fc54abc42f620ffc5d6f0b39e6918f19250078c5abfa29f6aa151830927d", "contentType": "application/json", "purposes": [ "runtime", @@ -2186,6 +2347,72 @@ "runtime" ] }, + { + "path": "template-gallery/ochre_paper_pavilion.webp", + "size": 150332, + "sha256": "sha256:bytes:6fd64eda0cd96aca0f5c9d860fec6fed090426ff1c5cd5c9434a639755c06c1e", + "contentType": "image/webp", + "purposes": [ + "runtime" + ], + "width": 1024, + "height": 1024 + }, + { + "path": "template-gallery/persimmon_glaze.webp", + "size": 67650, + "sha256": "sha256:bytes:0a8f757232720068dbf3ad94fa81e525c7e9d7260853680328019c43ded30279", + "contentType": "image/webp", + "purposes": [ + "runtime" + ], + "width": 1024, + "height": 1024 + }, + { + "path": "template-gallery/pomegranate_on_blue_linen.webp", + "size": 142146, + "sha256": "sha256:bytes:ec62b729d1e4b37f37bd7fd8838b831ab10bd82662adc3a359a371cc7e756861", + "contentType": "image/webp", + "purposes": [ + "runtime" + ], + "width": 512, + "height": 512 + }, + { + "path": "template-gallery/porcelain_on_slate_linen.webp", + "size": 65926, + "sha256": "sha256:bytes:78a0954f82ae30dcc721d9087a54f62063d8b9ded7204838864b1d981a1e763d", + "contentType": "image/webp", + "purposes": [ + "runtime" + ], + "width": 512, + "height": 512 + }, + { + "path": "template-gallery/quiet_current.webp", + "size": 109696, + "sha256": "sha256:bytes:c4db3876adb54a5f2bb9449ab4865601a24c2b486440f5c04d939a42a7f299a4", + "contentType": "image/webp", + "purposes": [ + "runtime" + ], + "width": 1024, + "height": 1024 + }, + { + "path": "template-gallery/quiet_kiln_at_daybreak.webp", + "size": 202092, + "sha256": "sha256:bytes:3cbbe1b912086f3d97cbfd3e8ba4c077166d355b6ba0cf25a07441f2826aa6ab", + "contentType": "image/webp", + "purposes": [ + "runtime" + ], + "width": 1024, + "height": 1024 + }, { "path": "template-gallery/qwen_character_angles.webp", "size": 200648, @@ -2630,6 +2857,17 @@ "width": 1024, "height": 1024 }, + { + "path": "template-gallery/restoring_the_studio_backdrop.webp", + "size": 45142, + "sha256": "sha256:bytes:c17be5dd41fc9ee16e58d287503e5daf9507ee1536f9ba9db63182af1e74f693", + "contentType": "image/webp", + "purposes": [ + "runtime" + ], + "width": 512, + "height": 512 + }, { "path": "template-gallery/reviews/ace_step_audio_continuation.quality-review.json", "size": 2439, @@ -2721,224 +2959,440 @@ ] }, { - "path": "template-gallery/reviews/character_edit.quality-review.json", - "size": 3905, - "sha256": "sha256:bytes:89cca4e7b8e466c614d973925b4775e18cec8c39e14e639a9d48b89918e7ae7f", + "path": "template-gallery/reviews/alpine_lake_in_oils.original-provenance.json", + "size": 3315, + "sha256": "sha256:bytes:9c9ff8e4bae92b7e4564fdc203a36a2cb625489c7b0ca9474ce9979f7bd2d519", "contentType": "application/json", "purposes": [ "runtime" ] }, { - "path": "template-gallery/reviews/character_edit.reviewed-provenance.json", - "size": 106076, - "sha256": "sha256:bytes:fee8045c51a38c8c73f668af5e3f513d7f0cbbf6978122fe73d2487ab746e110", + "path": "template-gallery/reviews/alpine_lake_in_oils.original-review.json", + "size": 677, + "sha256": "sha256:bytes:9535ffb383b57c57805ca9ad24a1df06ec87fe005d821448727de9c04709a2bd", "contentType": "application/json", "purposes": [ "runtime" ] }, { - "path": "template-gallery/reviews/fast_lora.quality-review.json", - "size": 2589, - "sha256": "sha256:bytes:96079ed2226e86a0a0686283402a8c4f567809c73d67138afb4d58fc46936a15", + "path": "template-gallery/reviews/alpine_lake_in_oils.quality-review.json", + "size": 2525, + "sha256": "sha256:bytes:ca7c2fd6b10e3f100c7aff867aceb300f4fc93c5d4c3c93919fdf810fdf077b3", "contentType": "application/json", "purposes": [ "runtime" ] }, { - "path": "template-gallery/reviews/fast_lora.reviewed-provenance.json", - "size": 106511, - "sha256": "sha256:bytes:7a3e3ac94845ad37f5f374c1e808a5ff449b0e5776be72a1891bb2c106fdd722", + "path": "template-gallery/reviews/alpine_lake_in_oils.retained-template-provenance.json", + "size": 3564, + "sha256": "sha256:bytes:c268ddbea9ba90fcf556ac9afdcc6b290e103883c5c7e9b5b91a1312f0c4eacb", "contentType": "application/json", "purposes": [ "runtime" ] }, { - "path": "template-gallery/reviews/flux2_klein_edit.quality-review.json", - "size": 4024, - "sha256": "sha256:bytes:9fb22201199f326234b60ad2b1162dd14d3e94cf6e2bd4d00507c26d240aeebe", + "path": "template-gallery/reviews/bookshop_at_blue_hour.original-provenance.json", + "size": 2922, + "sha256": "sha256:bytes:3f3e4056350e5a1ee59d46aea727b87563ae6fc5fe11a491257e2af7d412f0bf", "contentType": "application/json", "purposes": [ "runtime" ] }, { - "path": "template-gallery/reviews/flux2_klein_edit.reviewed-provenance.json", - "size": 96521, - "sha256": "sha256:bytes:780517219787eafdce5362cfd9f8cab52f848397edde41b5b91ed9bb3c904462", + "path": "template-gallery/reviews/bookshop_at_blue_hour.original-review.json", + "size": 598, + "sha256": "sha256:bytes:26882cd197ba823799f50be6ea1c01098038ad3cee926a71edf7aa47038d7226", "contentType": "application/json", "purposes": [ "runtime" ] }, { - "path": "template-gallery/reviews/flux2_klein_multi_reference.quality-review.json", - "size": 3297, - "sha256": "sha256:bytes:7f6d97ce71b303302117236ae3c8f3cd047801026a8f808916c69c9008c6c5c5", + "path": "template-gallery/reviews/bookshop_at_blue_hour.quality-review.json", + "size": 2270, + "sha256": "sha256:bytes:345c8dfefaa685385a016fcf545a50bf4d7554b07cee8c04f76efa270d830e4d", "contentType": "application/json", "purposes": [ "runtime" ] }, { - "path": "template-gallery/reviews/flux2_klein_multi_reference.reviewed-provenance.json", - "size": 98777, - "sha256": "sha256:bytes:dd9601157dcff562c822db19d08d7c7f7720a1e069945563609e87c7fc52cf77", + "path": "template-gallery/reviews/bookshop_at_blue_hour.retained-template-provenance.json", + "size": 3302, + "sha256": "sha256:bytes:47f8649c5c8bdf345ef71157478da39f55cccda4ef5e6a726bb4738c560de7d7", "contentType": "application/json", "purposes": [ "runtime" ] }, { - "path": "template-gallery/reviews/flux2_klein_text_to_image.quality-review.json", - "size": 3928, - "sha256": "sha256:bytes:2a2f12b34c26df960805a7fcac925e8f36894326f271f20920f720e3b72499ac", + "path": "template-gallery/reviews/canal_lantern_in_warm_light.original-provenance.json", + "size": 2421, + "sha256": "sha256:bytes:3a802a1d1961ab209994af944eb3889cc6d675e3f9a409414c0504d344b38d7b", "contentType": "application/json", "purposes": [ "runtime" ] }, { - "path": "template-gallery/reviews/flux2_klein_text_to_image.reviewed-provenance.json", - "size": 92220, - "sha256": "sha256:bytes:e24076267505e368ca3f117c3147640dd731493d23ab2cdb32e9581c27b6c366", + "path": "template-gallery/reviews/canal_lantern_in_warm_light.original-review.json", + "size": 604, + "sha256": "sha256:bytes:fdfac320256dd1dd7bcaa77ef449fe39a537e871db6ea579500579148bffea23", "contentType": "application/json", "purposes": [ "runtime" ] }, { - "path": "template-gallery/reviews/flux3_klein_base_fp8r512_lora_style.quality-review.json", - "size": 3156, - "sha256": "sha256:bytes:6ecaa3d253c60a36cfa0129575fda00de91b7259d6d5d7aaf7a1eafc1c1539fb", + "path": "template-gallery/reviews/canal_lantern_in_warm_light.quality-review.json", + "size": 2308, + "sha256": "sha256:bytes:721e6e325451df2320c2813bedce2b5c4b37d92d30ac974ca95b4f3edba6b316", "contentType": "application/json", "purposes": [ "runtime" ] }, { - "path": "template-gallery/reviews/flux3_klein_base_fp8r512_lora_style.reviewed-provenance.json", - "size": 101754, - "sha256": "sha256:bytes:bf2a88219068ec3c78bf3ab9f847f2c80d7e78035d574dbccc8d48c9c979bdc6", + "path": "template-gallery/reviews/canal_lantern_in_warm_light.retained-template-provenance.json", + "size": 3356, + "sha256": "sha256:bytes:5027304dcbef05cecb1baff1771c2f7f96671fee8d3fac34f9fece5f730c3885", "contentType": "application/json", "purposes": [ "runtime" ] }, { - "path": "template-gallery/reviews/flux3_klein_base_fp8r512_multi_reference_edit.quality-review.json", - "size": 3132, - "sha256": "sha256:bytes:0666e990cc08d4014f2f913674e9637a86e4f62fee681de1287c949a6a7dcb5a", + "path": "template-gallery/reviews/character_edit.quality-review.json", + "size": 3905, + "sha256": "sha256:bytes:89cca4e7b8e466c614d973925b4775e18cec8c39e14e639a9d48b89918e7ae7f", "contentType": "application/json", "purposes": [ "runtime" ] }, { - "path": "template-gallery/reviews/flux3_klein_base_fp8r512_multi_reference_edit.reviewed-provenance.json", - "size": 132386, - "sha256": "sha256:bytes:df83c15df43ca7b2739db3032671014c3dea0cb0bd1cd4acb15df5dcccf443bd", + "path": "template-gallery/reviews/character_edit.reviewed-provenance.json", + "size": 106076, + "sha256": "sha256:bytes:fee8045c51a38c8c73f668af5e3f513d7f0cbbf6978122fe73d2487ab746e110", "contentType": "application/json", "purposes": [ "runtime" ] }, { - "path": "template-gallery/reviews/flux3_klein_base_fp8r512_raw_coordinate_prompt.quality-review.json", - "size": 3020, - "sha256": "sha256:bytes:5a40f1c4b7c13f8678de7fdd41bf090c39071fc884c2e4dfed6c1f03e0ecb09c", + "path": "template-gallery/reviews/cobalt_jug_and_lemons.original-provenance.json", + "size": 2633, + "sha256": "sha256:bytes:c9b80942080368a5e13eef6d01a31691034655d618c40ef89ab9bd1b0ade0c7e", "contentType": "application/json", "purposes": [ "runtime" ] }, { - "path": "template-gallery/reviews/flux3_klein_base_fp8r512_raw_coordinate_prompt.reviewed-provenance.json", - "size": 94834, - "sha256": "sha256:bytes:e5684e876125a01c342b522b2a0d8350ae978f6543ccdfcaf56ec2011ccebb5f", + "path": "template-gallery/reviews/cobalt_jug_and_lemons.original-review.json", + "size": 853, + "sha256": "sha256:bytes:f55b66df26013db2e002b925f1aceececec95ebd311a306bb082258f292751f1", "contentType": "application/json", "purposes": [ "runtime" ] }, { - "path": "template-gallery/reviews/flux3_klein_base_fp8r512_single_reference_edit.quality-review.json", - "size": 2937, - "sha256": "sha256:bytes:f81ca736173a93bb214088dda9879efd933675799244f363506770202ffc80e0", + "path": "template-gallery/reviews/cobalt_jug_and_lemons.quality-review.json", + "size": 2680, + "sha256": "sha256:bytes:da64a4e035bbe030a037ddfaf23a16946114d0e680c842f37976cc50ff8d6970", "contentType": "application/json", "purposes": [ "runtime" ] }, { - "path": "template-gallery/reviews/flux3_klein_base_fp8r512_single_reference_edit.reviewed-provenance.json", - "size": 100367, - "sha256": "sha256:bytes:145688ff7654e0f2b058caf1e3cdc7f4621cd160bc57967529fbfc6deba3e55f", + "path": "template-gallery/reviews/cobalt_jug_and_lemons.retained-template-provenance.json", + "size": 3318, + "sha256": "sha256:bytes:066fee762cae8b5f92625cc71f4002422828b06115024c3ce11affd68f34544e", "contentType": "application/json", "purposes": [ "runtime" ] }, { - "path": "template-gallery/reviews/flux3_klein_base_fp8r512_text_to_image.quality-review.json", - "size": 2950, - "sha256": "sha256:bytes:e4db5a6f68664c24496139808737c35843ad013a84ed8c647cb7bda822b3ab55", + "path": "template-gallery/reviews/copper_hour_dunes.original-provenance.json", + "size": 3659, + "sha256": "sha256:bytes:6223329bd7a1a962703aefba1379c33dae7f57daa40a09aa8e77c1cdd05b099c", "contentType": "application/json", "purposes": [ "runtime" ] }, { - "path": "template-gallery/reviews/flux3_klein_base_fp8r512_text_to_image.reviewed-provenance.json", - "size": 97026, - "sha256": "sha256:bytes:2db502f5981665759b16abab179f12ae0093312c5bc99fcc33bb346bc6d3ff05", + "path": "template-gallery/reviews/copper_hour_dunes.original-review.json", + "size": 839, + "sha256": "sha256:bytes:1da7406a3792d864c6aa0e010203a15d608a2f85372e530aabdeabfd7dc7e529", "contentType": "application/json", "purposes": [ "runtime" ] }, { - "path": "template-gallery/reviews/flux3_klein_fp8r512_lora_style.quality-review.json", - "size": 3183, - "sha256": "sha256:bytes:563cf20531167d3661cecb5e6897bae7d8a1485eff49e7f16c8cd7fef6486f10", + "path": "template-gallery/reviews/copper_hour_dunes.quality-review.json", + "size": 2722, + "sha256": "sha256:bytes:bc0ce5cb8d1e26c9b3491f5d1653365ca11b5305b25cd32647b08398bf889e8f", "contentType": "application/json", "purposes": [ "runtime" ] }, { - "path": "template-gallery/reviews/flux3_klein_fp8r512_lora_style.reviewed-provenance.json", - "size": 93938, - "sha256": "sha256:bytes:945f99e2d8c924809a4e9d6f91056ec417715b7db5e06b2ec0d51a016bdc219b", + "path": "template-gallery/reviews/copper_hour_dunes.retained-template-provenance.json", + "size": 3274, + "sha256": "sha256:bytes:b1d27bc198b128e1085d6b920a62dff73ed1684735c0d9b7eefbd28ab52d7e5b", "contentType": "application/json", "purposes": [ "runtime" ] }, { - "path": "template-gallery/reviews/flux3_klein_fp8r512_multi_reference_edit.quality-review.json", - "size": 3159, - "sha256": "sha256:bytes:ba9c380fe4ccea2f731999d6aa7d116e4ebf4078c8ddb29ea88f2fee8d37dec9", + "path": "template-gallery/reviews/fast_lora.quality-review.json", + "size": 2589, + "sha256": "sha256:bytes:96079ed2226e86a0a0686283402a8c4f567809c73d67138afb4d58fc46936a15", "contentType": "application/json", "purposes": [ "runtime" ] }, { - "path": "template-gallery/reviews/flux3_klein_fp8r512_multi_reference_edit.reviewed-provenance.json", - "size": 124866, - "sha256": "sha256:bytes:d89ef493877766cc1eb753cc6bdfd9e44dd6a71f33c8969287b4e70b33544f31", + "path": "template-gallery/reviews/fast_lora.reviewed-provenance.json", + "size": 106511, + "sha256": "sha256:bytes:7a3e3ac94845ad37f5f374c1e808a5ff449b0e5776be72a1891bb2c106fdd722", "contentType": "application/json", "purposes": [ "runtime" ] }, { - "path": "template-gallery/reviews/flux3_klein_fp8r512_raw_coordinate_prompt.quality-review.json", - "size": 3041, + "path": "template-gallery/reviews/flowers_after_rain.original-provenance.json", + "size": 3371, + "sha256": "sha256:bytes:4368cd0ed92243d2cc6b5b628ffabba5e64339eeec153282832b253d68efaa87", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, + { + "path": "template-gallery/reviews/flowers_after_rain.original-review.json", + "size": 702, + "sha256": "sha256:bytes:0dadd907604fdde95baa31bcc981dd87cab836c1b167fc852542982163bbc455", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, + { + "path": "template-gallery/reviews/flowers_after_rain.quality-review.json", + "size": 2590, + "sha256": "sha256:bytes:4dc4ac8e4aa12dc1a9f0d685a3416d1039866c8b52d8d2560a8d3b0364cd5121", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, + { + "path": "template-gallery/reviews/flowers_after_rain.retained-template-provenance.json", + "size": 3284, + "sha256": "sha256:bytes:5251193aa4454f936e7677ee44b91d30938885e46645007effb8b1de8ea61f4a", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, + { + "path": "template-gallery/reviews/flux2_klein_edit.quality-review.json", + "size": 4024, + "sha256": "sha256:bytes:9fb22201199f326234b60ad2b1162dd14d3e94cf6e2bd4d00507c26d240aeebe", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, + { + "path": "template-gallery/reviews/flux2_klein_edit.reviewed-provenance.json", + "size": 96521, + "sha256": "sha256:bytes:780517219787eafdce5362cfd9f8cab52f848397edde41b5b91ed9bb3c904462", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, + { + "path": "template-gallery/reviews/flux2_klein_multi_reference.quality-review.json", + "size": 3297, + "sha256": "sha256:bytes:7f6d97ce71b303302117236ae3c8f3cd047801026a8f808916c69c9008c6c5c5", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, + { + "path": "template-gallery/reviews/flux2_klein_multi_reference.reviewed-provenance.json", + "size": 98777, + "sha256": "sha256:bytes:dd9601157dcff562c822db19d08d7c7f7720a1e069945563609e87c7fc52cf77", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, + { + "path": "template-gallery/reviews/flux2_klein_text_to_image.quality-review.json", + "size": 3928, + "sha256": "sha256:bytes:2a2f12b34c26df960805a7fcac925e8f36894326f271f20920f720e3b72499ac", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, + { + "path": "template-gallery/reviews/flux2_klein_text_to_image.reviewed-provenance.json", + "size": 92220, + "sha256": "sha256:bytes:e24076267505e368ca3f117c3147640dd731493d23ab2cdb32e9581c27b6c366", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, + { + "path": "template-gallery/reviews/flux3_klein_base_fp8r512_lora_style.quality-review.json", + "size": 3156, + "sha256": "sha256:bytes:6ecaa3d253c60a36cfa0129575fda00de91b7259d6d5d7aaf7a1eafc1c1539fb", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, + { + "path": "template-gallery/reviews/flux3_klein_base_fp8r512_lora_style.reviewed-provenance.json", + "size": 101754, + "sha256": "sha256:bytes:bf2a88219068ec3c78bf3ab9f847f2c80d7e78035d574dbccc8d48c9c979bdc6", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, + { + "path": "template-gallery/reviews/flux3_klein_base_fp8r512_multi_reference_edit.quality-review.json", + "size": 3132, + "sha256": "sha256:bytes:0666e990cc08d4014f2f913674e9637a86e4f62fee681de1287c949a6a7dcb5a", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, + { + "path": "template-gallery/reviews/flux3_klein_base_fp8r512_multi_reference_edit.reviewed-provenance.json", + "size": 132386, + "sha256": "sha256:bytes:df83c15df43ca7b2739db3032671014c3dea0cb0bd1cd4acb15df5dcccf443bd", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, + { + "path": "template-gallery/reviews/flux3_klein_base_fp8r512_raw_coordinate_prompt.quality-review.json", + "size": 3020, + "sha256": "sha256:bytes:5a40f1c4b7c13f8678de7fdd41bf090c39071fc884c2e4dfed6c1f03e0ecb09c", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, + { + "path": "template-gallery/reviews/flux3_klein_base_fp8r512_raw_coordinate_prompt.reviewed-provenance.json", + "size": 94834, + "sha256": "sha256:bytes:e5684e876125a01c342b522b2a0d8350ae978f6543ccdfcaf56ec2011ccebb5f", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, + { + "path": "template-gallery/reviews/flux3_klein_base_fp8r512_single_reference_edit.quality-review.json", + "size": 2937, + "sha256": "sha256:bytes:f81ca736173a93bb214088dda9879efd933675799244f363506770202ffc80e0", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, + { + "path": "template-gallery/reviews/flux3_klein_base_fp8r512_single_reference_edit.reviewed-provenance.json", + "size": 100367, + "sha256": "sha256:bytes:145688ff7654e0f2b058caf1e3cdc7f4621cd160bc57967529fbfc6deba3e55f", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, + { + "path": "template-gallery/reviews/flux3_klein_base_fp8r512_text_to_image.quality-review.json", + "size": 2950, + "sha256": "sha256:bytes:e4db5a6f68664c24496139808737c35843ad013a84ed8c647cb7bda822b3ab55", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, + { + "path": "template-gallery/reviews/flux3_klein_base_fp8r512_text_to_image.reviewed-provenance.json", + "size": 97026, + "sha256": "sha256:bytes:2db502f5981665759b16abab179f12ae0093312c5bc99fcc33bb346bc6d3ff05", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, + { + "path": "template-gallery/reviews/flux3_klein_fp8r512_lora_style.quality-review.json", + "size": 3183, + "sha256": "sha256:bytes:563cf20531167d3661cecb5e6897bae7d8a1485eff49e7f16c8cd7fef6486f10", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, + { + "path": "template-gallery/reviews/flux3_klein_fp8r512_lora_style.reviewed-provenance.json", + "size": 93938, + "sha256": "sha256:bytes:945f99e2d8c924809a4e9d6f91056ec417715b7db5e06b2ec0d51a016bdc219b", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, + { + "path": "template-gallery/reviews/flux3_klein_fp8r512_multi_reference_edit.quality-review.json", + "size": 3159, + "sha256": "sha256:bytes:ba9c380fe4ccea2f731999d6aa7d116e4ebf4078c8ddb29ea88f2fee8d37dec9", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, + { + "path": "template-gallery/reviews/flux3_klein_fp8r512_multi_reference_edit.reviewed-provenance.json", + "size": 124866, + "sha256": "sha256:bytes:d89ef493877766cc1eb753cc6bdfd9e44dd6a71f33c8969287b4e70b33544f31", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, + { + "path": "template-gallery/reviews/flux3_klein_fp8r512_raw_coordinate_prompt.quality-review.json", + "size": 3041, "sha256": "sha256:bytes:5b8429b8102aba95b1fc76e8ff0b3ee823a489ae1ae771c5f10b2c92f583ddf5", "contentType": "application/json", "purposes": [ @@ -3176,375 +3630,807 @@ "sha256": "sha256:bytes:6009868ad3e76b584a12eb4193daf7680a0f224224bcda917c2ebbe8f543d1a5", "contentType": "application/json", "purposes": [ - "runtime", - "tooling" + "runtime", + "tooling" + ] + }, + { + "path": "template-gallery/reviews/flux_lora_ghibli_story.reviewed-provenance.json", + "size": 53038, + "sha256": "sha256:bytes:f87545939eb878e8655640f7563f6ddb93b355ba72c716959fb61c39806fa8a3", + "contentType": "application/json", + "purposes": [ + "runtime", + "tooling" + ] + }, + { + "path": "template-gallery/reviews/flux_lora_oil_painting.quality-review.json", + "size": 4685, + "sha256": "sha256:bytes:a081914ac871d3d02e47263f1807eb1dc112b861e517221a71ac6987df5611ee", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, + { + "path": "template-gallery/reviews/flux_lora_oil_painting.reviewed-provenance.json", + "size": 106369, + "sha256": "sha256:bytes:04e8530313e3bfcdf2c09550c17ffbe43aed0b4a28eaccf8b8153d217c2aa35f", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, + { + "path": "template-gallery/reviews/flux_lora_paper_cutout.quality-review.json", + "size": 4842, + "sha256": "sha256:bytes:badbd8d5727387a36c3a65bf2780ea931578ea3c6f1dc50421fcce0352cbb45f", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, + { + "path": "template-gallery/reviews/flux_lora_paper_cutout.reviewed-provenance.json", + "size": 106530, + "sha256": "sha256:bytes:0824474e69c3917b7cecea1fa9830e9a473b5b6f1a11bb3f3293bb8237f30f7e", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, + { + "path": "template-gallery/reviews/flux_lora_photoreal_documentary.quality-review.json", + "size": 4360, + "sha256": "sha256:bytes:36a405950da3e180bdea7d6912da7ec2d19ca8382e3f4a26bd9bb9e79cc5f6d6", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, + { + "path": "template-gallery/reviews/flux_lora_photoreal_documentary.reviewed-provenance.json", + "size": 106591, + "sha256": "sha256:bytes:80b8756cfa9e3cc14716d82a93f7322b08d2f53901b913ab119258891fc4dffb", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, + { + "path": "template-gallery/reviews/flux_lora_retro_comic.quality-review.json", + "size": 4525, + "sha256": "sha256:bytes:4436655b45348e57831e147e268e80be4759cd5aec0e6e0eb8d6f1530de06435", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, + { + "path": "template-gallery/reviews/flux_lora_retro_comic.reviewed-provenance.json", + "size": 107029, + "sha256": "sha256:bytes:3e44966400c118ba7ea67c8c511dcd0aad51a7e59d64bf1d4a0b96566a96f3e2", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, + { + "path": "template-gallery/reviews/flux_lora_watercolor.quality-review.json", + "size": 4145, + "sha256": "sha256:bytes:3454f88eecab20d70370fe23bbd9248d6e6e3255d0fbfc557a2f1103c94e7ef4", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, + { + "path": "template-gallery/reviews/flux_lora_watercolor.reviewed-provenance.json", + "size": 106882, + "sha256": "sha256:bytes:c51b9dfb5471d1f0f704852672152a09f0c01aeeaee7f5dd0b324e5652fe8b6f", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, + { + "path": "template-gallery/reviews/flux_redux_edit.quality-review.json", + "size": 3943, + "sha256": "sha256:bytes:10afc2e145791fb240bdcce1bcfbcee80280f5bec4cd15afe64985da51129788", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, + { + "path": "template-gallery/reviews/flux_redux_edit.reviewed-provenance.json", + "size": 180120, + "sha256": "sha256:bytes:88dc41a06a6fa368953d24f0d20c0700a375465b6c49591653c5471754690c00", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, + { + "path": "template-gallery/reviews/flux_redux_multi_reference.quality-review.json", + "size": 5103, + "sha256": "sha256:bytes:1e4c83b2db81df7e43b8e79a9a01cc8eadfd2de6c826c218d0c31b50d95b7441", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, + { + "path": "template-gallery/reviews/flux_redux_multi_reference.reviewed-provenance.json", + "size": 189567, + "sha256": "sha256:bytes:dd1ea7815bc1bc51589ef774cc1f412b3f8bc2f16a7204a8efe56469913d8179", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, + { + "path": "template-gallery/reviews/flux_schnell_text_to_image.quality-review.json", + "size": 5151, + "sha256": "sha256:bytes:5eeda44bb0b251f27d30973ad62659d2d247f1ab620eb4b48af154385958530e", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, + { + "path": "template-gallery/reviews/flux_schnell_text_to_image.reviewed-provenance.json", + "size": 91343, + "sha256": "sha256:bytes:ccf1ec3ab127ce8c01008df4a8a323bac0548e83679281d58c7d77a964ae07a9", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, + { + "path": "template-gallery/reviews/forest_ferns.original-provenance.json", + "size": 3364, + "sha256": "sha256:bytes:9f3dbdc8c7c6c2bbd65792b2d1b958cc21e1aeb44489af772f6e1d8e14b1932b", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, + { + "path": "template-gallery/reviews/forest_ferns.original-review.json", + "size": 695, + "sha256": "sha256:bytes:c736e68088c4a94fcec6574242c08e840dea34559d3802d63de6f2114f514f1c", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, + { + "path": "template-gallery/reviews/forest_ferns.quality-review.json", + "size": 2579, + "sha256": "sha256:bytes:8d789319fd8de535f0e638a1fecdc2e65db93e1ff95104c7c63939437994529b", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, + { + "path": "template-gallery/reviews/forest_ferns.retained-template-provenance.json", + "size": 3248, + "sha256": "sha256:bytes:8776590ac1201f5606eab7521d2ef8283f85cc48038acafdb3cbe60a11f91a82", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, + { + "path": "template-gallery/reviews/glasshouse_rain.original-provenance.json", + "size": 3275, + "sha256": "sha256:bytes:0dad28d294233db5c72915ddb9559f8eb2e4fba77cd8ebd8510a254ae0434083", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, + { + "path": "template-gallery/reviews/glasshouse_rain.original-review.json", + "size": 852, + "sha256": "sha256:bytes:41b3e9a683bb5af2655b9e2874464a97a79eecdf987b93672f1ea3d142bed370", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, + { + "path": "template-gallery/reviews/glasshouse_rain.quality-review.json", + "size": 2632, + "sha256": "sha256:bytes:da3cb94631be949ba21fcdf842135099dbc6992bfbf37cc9b30710d1fb997ca4", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, + { + "path": "template-gallery/reviews/glasshouse_rain.retained-template-provenance.json", + "size": 3292, + "sha256": "sha256:bytes:fdd2f0c10865bfc619852978699d6ab58346d8a4d435b6ad24b706bf2aad4b88", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, + { + "path": "template-gallery/reviews/high_quality.quality-review.json", + "size": 3663, + "sha256": "sha256:bytes:859a90999ac580d2dfbf45a39d26c475e2af362a6e5a95d72c6ff05626fca54c", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, + { + "path": "template-gallery/reviews/high_quality.reviewed-provenance.json", + "size": 102347, + "sha256": "sha256:bytes:082cd7fc2b3345ff6bf881df607e19dc9e175081e2f029cf01f2abdafcbc17d4", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, + { + "path": "template-gallery/reviews/janus_red_enamel_teapot.original-provenance.json", + "size": 1699, + "sha256": "sha256:bytes:170501bd8a025aa58341bc17322a6c9f8448be401b7263fdc9c5e9b449d1cb87", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, + { + "path": "template-gallery/reviews/janus_red_enamel_teapot.original-review.json", + "size": 567, + "sha256": "sha256:bytes:05d63ee8fe6f5ef33cb0ea16988861ffbbd99e0f7317b039b01c41a67eb4f5f8", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, + { + "path": "template-gallery/reviews/janus_red_enamel_teapot.quality-review.json", + "size": 2364, + "sha256": "sha256:bytes:b9d911046c3faff978d22cb397ee2a95d23608240d18674dc68fb5b957783f90", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, + { + "path": "template-gallery/reviews/janus_red_enamel_teapot.retained-template-provenance.json", + "size": 3317, + "sha256": "sha256:bytes:7fc41c79f10344c5621f2184f7086b4b33daf929d83e37e099e9c0e3fc16aa2d", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, + { + "path": "template-gallery/reviews/janus_red_triangle_caption.original-provenance.json", + "size": 2343, + "sha256": "sha256:bytes:3f6648332a0351e6904385e3d670550b1072c8539055ea6d827d3c7d3ee39510", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, + { + "path": "template-gallery/reviews/janus_red_triangle_caption.original-review.json", + "size": 545, + "sha256": "sha256:bytes:f7b4652f53f7840da5338cc9e77215884c500ae59aa26e66fb83c84bb6e1ede8", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, + { + "path": "template-gallery/reviews/janus_red_triangle_caption.quality-review.json", + "size": 2288, + "sha256": "sha256:bytes:03dd22b437f3d94f8789eed26ccf9c0de4fd24a2162e1bab3d1e164441077ef5", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, + { + "path": "template-gallery/reviews/janus_red_triangle_caption.retained-template-provenance.json", + "size": 3538, + "sha256": "sha256:bytes:0e5cecab2d1a8c81c1b36c4e3b2fcd0799b327f94a61d9f4c55fac0ce1f16a9b", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, + { + "path": "template-gallery/reviews/janus_reykjavik_travel_note.original-provenance.json", + "size": 2277, + "sha256": "sha256:bytes:e691c32bc7b7eb4bd1bf7feae5773671d7e083d79e5bc9426ed5e768bc78d899", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, + { + "path": "template-gallery/reviews/janus_reykjavik_travel_note.original-review.json", + "size": 517, + "sha256": "sha256:bytes:85c17c8b45a8df155a69a5de0e983b32ef5d9cc917cade0115bae566c861b088", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, + { + "path": "template-gallery/reviews/janus_reykjavik_travel_note.quality-review.json", + "size": 2193, + "sha256": "sha256:bytes:08b83eb62ffdf911938d868f1be875cc895f472e9e48936acfaa93bbed96c709", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, + { + "path": "template-gallery/reviews/janus_reykjavik_travel_note.retained-template-provenance.json", + "size": 3451, + "sha256": "sha256:bytes:70da97c6adaef6d92f70d91e3aa549503dacb307ea94dd3115047cb3de17945b", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, + { + "path": "template-gallery/reviews/lcm_dawn_alpine_lake.quality-review.json", + "size": 2982, + "sha256": "sha256:bytes:e5c590a6287147faad9d5eab5676b8d2bb8224a8581a2043cf78c8dd50dcb0b9", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, + { + "path": "template-gallery/reviews/lcm_dawn_alpine_lake.retained-template-provenance.json", + "size": 5757, + "sha256": "sha256:bytes:767b8d794460fca5a3e1c79a89aeaa2b1dcdb815d47702e1063ed35d07163247", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, + { + "path": "template-gallery/reviews/low_vram.quality-review.json", + "size": 2522, + "sha256": "sha256:bytes:53b25669d880814ac612e803b0c6f2abbcdd8853e7ea4ca6e1e6d0b97fa23352", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, + { + "path": "template-gallery/reviews/low_vram.reviewed-provenance.json", + "size": 100927, + "sha256": "sha256:bytes:a07f1942cb39c873d7ccd1b99dbece3c203d73296712aa0168a3edf4054b8076", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, + { + "path": "template-gallery/reviews/ltx_video_animated_story.quality-review.json", + "size": 5831, + "sha256": "sha256:bytes:1ec83b229ba5c7995c8ada2629c448334965939304ffddc7a70161c8b7e1b7f1", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, + { + "path": "template-gallery/reviews/ltx_video_animated_story.reviewed-provenance.json", + "size": 256227, + "sha256": "sha256:bytes:3910ae6f164eb978e38b16e1eab92d73fe7f55dac543b681416ba0b8c43b440d", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, + { + "path": "template-gallery/reviews/ltx_video_image_to_video.quality-review.json", + "size": 6506, + "sha256": "sha256:bytes:6c31e71b0b9e6a6a1c46f55e058dd208b7b2f510f6eeb332648575da388f9431", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, + { + "path": "template-gallery/reviews/ltx_video_image_to_video.reviewed-provenance.json", + "size": 143757, + "sha256": "sha256:bytes:ff18a19dd44e03eb76e3879a7e49f1732cc9e6dba6affadcf370feafcc6cf06b", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, + { + "path": "template-gallery/reviews/ltx_video_long_showcase.quality-review.json", + "size": 5986, + "sha256": "sha256:bytes:60cbabfbf56d499a45000cdbabc3c4d64733de27638c1e8b127ba067f1918b9c", + "contentType": "application/json", + "purposes": [ + "runtime" ] }, { - "path": "template-gallery/reviews/flux_lora_ghibli_story.reviewed-provenance.json", - "size": 53038, - "sha256": "sha256:bytes:f87545939eb878e8655640f7563f6ddb93b355ba72c716959fb61c39806fa8a3", + "path": "template-gallery/reviews/ltx_video_long_showcase.reviewed-provenance.json", + "size": 444547, + "sha256": "sha256:bytes:c2566ed4233b850092727e2bfc805d1be849c2b11cd9424e42283ff9e19b15d0", "contentType": "application/json", "purposes": [ - "runtime", - "tooling" + "runtime" ] }, { - "path": "template-gallery/reviews/flux_lora_oil_painting.quality-review.json", - "size": 4685, - "sha256": "sha256:bytes:a081914ac871d3d02e47263f1807eb1dc112b861e517221a71ac6987df5611ee", + "path": "template-gallery/reviews/ltx_video_multi_reference.quality-review.json", + "size": 6794, + "sha256": "sha256:bytes:ccb132c3ffd2e929acca88d871c2f04ba9d0cd69d54750f303b58953a8b9bc93", "contentType": "application/json", "purposes": [ "runtime" ] }, { - "path": "template-gallery/reviews/flux_lora_oil_painting.reviewed-provenance.json", - "size": 106369, - "sha256": "sha256:bytes:04e8530313e3bfcdf2c09550c17ffbe43aed0b4a28eaccf8b8153d217c2aa35f", + "path": "template-gallery/reviews/ltx_video_multi_reference.reviewed-provenance.json", + "size": 144273, + "sha256": "sha256:bytes:9bdf09de275841af2f1f63ce0011dfc1eeaa703e2deeb2ebf678090abad80203", "contentType": "application/json", "purposes": [ "runtime" ] }, { - "path": "template-gallery/reviews/flux_lora_paper_cutout.quality-review.json", - "size": 4842, - "sha256": "sha256:bytes:badbd8d5727387a36c3a65bf2780ea931578ea3c6f1dc50421fcce0352cbb45f", + "path": "template-gallery/reviews/ltx_video_text_to_video.quality-review.json", + "size": 6898, + "sha256": "sha256:bytes:37f6a5c00110c6f9e306447a53691521c77db1ecf3cedf8210dd1e7ed10ea99d", "contentType": "application/json", "purposes": [ "runtime" ] }, { - "path": "template-gallery/reviews/flux_lora_paper_cutout.reviewed-provenance.json", - "size": 106530, - "sha256": "sha256:bytes:0824474e69c3917b7cecea1fa9830e9a473b5b6f1a11bb3f3293bb8237f30f7e", + "path": "template-gallery/reviews/ltx_video_text_to_video.reviewed-provenance.json", + "size": 140131, + "sha256": "sha256:bytes:58bfc0b841177bc73dbde13effbf5eebcf9e8d618d3aa90aa8b19afc3a6e5132", "contentType": "application/json", "purposes": [ "runtime" ] }, { - "path": "template-gallery/reviews/flux_lora_photoreal_documentary.quality-review.json", - "size": 4360, - "sha256": "sha256:bytes:36a405950da3e180bdea7d6912da7ec2d19ca8382e3f4a26bd9bb9e79cc5f6d6", + "path": "template-gallery/reviews/ltx_video_video_to_video.quality-review.json", + "size": 6549, + "sha256": "sha256:bytes:819fd6d872b8e86bbb091980a435bd363216d069223dd694f65d7942aeb05178", "contentType": "application/json", "purposes": [ "runtime" ] }, { - "path": "template-gallery/reviews/flux_lora_photoreal_documentary.reviewed-provenance.json", - "size": 106591, - "sha256": "sha256:bytes:80b8756cfa9e3cc14716d82a93f7322b08d2f53901b913ab119258891fc4dffb", + "path": "template-gallery/reviews/ltx_video_video_to_video.reviewed-provenance.json", + "size": 146951, + "sha256": "sha256:bytes:9de3b2659acc8383ab86923bc7c9c87be3e53f3d894a06c77af8a16a155795a4", "contentType": "application/json", "purposes": [ "runtime" ] }, { - "path": "template-gallery/reviews/flux_lora_retro_comic.quality-review.json", - "size": 4525, - "sha256": "sha256:bytes:4436655b45348e57831e147e268e80be4759cd5aec0e6e0eb8d6f1530de06435", + "path": "template-gallery/reviews/lumina_opal_pendant_in_limestone.original-provenance.json", + "size": 2146, + "sha256": "sha256:bytes:1759ed2ceb7e564e568eced6f47a017c647dd549c2ebdf6e414310d8445a4fd4", "contentType": "application/json", "purposes": [ "runtime" ] }, { - "path": "template-gallery/reviews/flux_lora_retro_comic.reviewed-provenance.json", - "size": 107029, - "sha256": "sha256:bytes:3e44966400c118ba7ea67c8c511dcd0aad51a7e59d64bf1d4a0b96566a96f3e2", + "path": "template-gallery/reviews/lumina_opal_pendant_in_limestone.original-review.json", + "size": 569, + "sha256": "sha256:bytes:11b0b3259e607f479a30ccb2c6f530ff41cb6367245961c43f56ccad21babfb7", "contentType": "application/json", "purposes": [ "runtime" ] }, { - "path": "template-gallery/reviews/flux_lora_watercolor.quality-review.json", - "size": 4145, - "sha256": "sha256:bytes:3454f88eecab20d70370fe23bbd9248d6e6e3255d0fbfc557a2f1103c94e7ef4", + "path": "template-gallery/reviews/lumina_opal_pendant_in_limestone.quality-review.json", + "size": 2396, + "sha256": "sha256:bytes:4566c14128c7a9a7b32d92d927cff0c2ca12bb392328bd692272130e0c5fe387", "contentType": "application/json", "purposes": [ "runtime" ] }, { - "path": "template-gallery/reviews/flux_lora_watercolor.reviewed-provenance.json", - "size": 106882, - "sha256": "sha256:bytes:c51b9dfb5471d1f0f704852672152a09f0c01aeeaee7f5dd0b324e5652fe8b6f", + "path": "template-gallery/reviews/lumina_opal_pendant_in_limestone.retained-template-provenance.json", + "size": 3347, + "sha256": "sha256:bytes:a4e3e7b9be7fdd489f3876e63e7d0e9ed65508e84eabb0a673719251d3d46e0e", "contentType": "application/json", "purposes": [ "runtime" ] }, { - "path": "template-gallery/reviews/flux_redux_edit.quality-review.json", - "size": 3943, - "sha256": "sha256:bytes:10afc2e145791fb240bdcce1bcfbcee80280f5bec4cd15afe64985da51129788", + "path": "template-gallery/reviews/marigold_depth_synthetic_ramp.quality-review.json", + "size": 2882, + "sha256": "sha256:bytes:17c3bbb2da127558c468e58ccc2bb08a9b78d4f07f901d483cfe8092732ebb42", "contentType": "application/json", "purposes": [ "runtime" ] }, { - "path": "template-gallery/reviews/flux_redux_edit.reviewed-provenance.json", - "size": 180120, - "sha256": "sha256:bytes:88dc41a06a6fa368953d24f0d20c0700a375465b6c49591653c5471754690c00", + "path": "template-gallery/reviews/marigold_depth_synthetic_ramp.retained-template-provenance.json", + "size": 2639, + "sha256": "sha256:bytes:57b1487ecee6f44016512e1e1ce5c8135e963add06b1519b7e6007cb83184ae0", "contentType": "application/json", "purposes": [ "runtime" ] }, { - "path": "template-gallery/reviews/flux_redux_multi_reference.quality-review.json", - "size": 5103, - "sha256": "sha256:bytes:1e4c83b2db81df7e43b8e79a9a01cc8eadfd2de6c826c218d0c31b50d95b7441", + "path": "template-gallery/reviews/minimax_h3_image_old_town_cat.quality-review.json", + "size": 3140, + "sha256": "sha256:bytes:ce9fc2a0edaaf3eef1f3db03024d3e64108523e93fc2797fee7cbe7364e7ce97", "contentType": "application/json", "purposes": [ "runtime" ] }, { - "path": "template-gallery/reviews/flux_redux_multi_reference.reviewed-provenance.json", - "size": 189567, - "sha256": "sha256:bytes:dd1ea7815bc1bc51589ef774cc1f412b3f8bc2f16a7204a8efe56469913d8179", + "path": "template-gallery/reviews/minimax_h3_image_old_town_cat.reviewed-provenance.json", + "size": 96855, + "sha256": "sha256:bytes:9d5792710da6b60188994c51bfa1ac49047121433d83961cd58d22b9caf6030c", "contentType": "application/json", "purposes": [ "runtime" ] }, { - "path": "template-gallery/reviews/flux_schnell_text_to_image.quality-review.json", - "size": 5151, - "sha256": "sha256:bytes:5eeda44bb0b251f27d30973ad62659d2d247f1ab620eb4b48af154385958530e", + "path": "template-gallery/reviews/minimax_music3_chamber_pop.quality-review.json", + "size": 3481, + "sha256": "sha256:bytes:cd83b77fc2ccb4b11263406c12dc9d0d222af582e52dc47b77c18a4243462502", "contentType": "application/json", "purposes": [ "runtime" ] }, { - "path": "template-gallery/reviews/flux_schnell_text_to_image.reviewed-provenance.json", - "size": 91343, - "sha256": "sha256:bytes:ccf1ec3ab127ce8c01008df4a8a323bac0548e83679281d58c7d77a964ae07a9", + "path": "template-gallery/reviews/minimax_music3_chamber_pop.reviewed-provenance.json", + "size": 96233, + "sha256": "sha256:bytes:1b2c91a45c40a7d6621bee54083d3e02d9b843d1034c06e3284ff8f1a2e44270", "contentType": "application/json", "purposes": [ "runtime" ] }, { - "path": "template-gallery/reviews/high_quality.quality-review.json", - "size": 3663, - "sha256": "sha256:bytes:859a90999ac580d2dfbf45a39d26c475e2af362a6e5a95d72c6ff05626fca54c", + "path": "template-gallery/reviews/ochre_paper_pavilion.original-provenance.json", + "size": 3254, + "sha256": "sha256:bytes:5fab665db87b17f2c4cea8e3903ac6df84232912fc2abaabee3bf3107542dc96", "contentType": "application/json", "purposes": [ "runtime" ] }, { - "path": "template-gallery/reviews/high_quality.reviewed-provenance.json", - "size": 102347, - "sha256": "sha256:bytes:082cd7fc2b3345ff6bf881df607e19dc9e175081e2f029cf01f2abdafcbc17d4", + "path": "template-gallery/reviews/ochre_paper_pavilion.original-review.json", + "size": 664, + "sha256": "sha256:bytes:6e31d3ec89e61e8b5722fb93db8f7bb7ea8328bf1c055028ba44c18affacf058", "contentType": "application/json", "purposes": [ "runtime" ] }, { - "path": "template-gallery/reviews/lcm_dawn_alpine_lake.quality-review.json", - "size": 2982, - "sha256": "sha256:bytes:e5c590a6287147faad9d5eab5676b8d2bb8224a8581a2043cf78c8dd50dcb0b9", + "path": "template-gallery/reviews/ochre_paper_pavilion.quality-review.json", + "size": 2465, + "sha256": "sha256:bytes:a635772ae5b26758629581843258dea266c7e85934eb222d4884b9a2522a93c1", "contentType": "application/json", "purposes": [ "runtime" ] }, { - "path": "template-gallery/reviews/lcm_dawn_alpine_lake.retained-template-provenance.json", - "size": 5757, - "sha256": "sha256:bytes:767b8d794460fca5a3e1c79a89aeaa2b1dcdb815d47702e1063ed35d07163247", + "path": "template-gallery/reviews/ochre_paper_pavilion.retained-template-provenance.json", + "size": 3298, + "sha256": "sha256:bytes:9bd899fe903bcc05057c1ae452c641700d9c36b5001b499dadba6a6a07e36e80", "contentType": "application/json", "purposes": [ "runtime" ] }, { - "path": "template-gallery/reviews/low_vram.quality-review.json", - "size": 2522, - "sha256": "sha256:bytes:53b25669d880814ac612e803b0c6f2abbcdd8853e7ea4ca6e1e6d0b97fa23352", + "path": "template-gallery/reviews/persimmon_glaze.original-provenance.json", + "size": 2814, + "sha256": "sha256:bytes:dece98191d7fdcae395409a4ca8fb0f7eb215bc095660a8251d668f1dabd0054", "contentType": "application/json", "purposes": [ "runtime" ] }, { - "path": "template-gallery/reviews/low_vram.reviewed-provenance.json", - "size": 100927, - "sha256": "sha256:bytes:a07f1942cb39c873d7ccd1b99dbece3c203d73296712aa0168a3edf4054b8076", + "path": "template-gallery/reviews/persimmon_glaze.original-review.json", + "size": 571, + "sha256": "sha256:bytes:3c97652cd91cc4af5660429652241efbe6675b20ec59c7abc73c3f1c185b491a", "contentType": "application/json", "purposes": [ "runtime" ] }, { - "path": "template-gallery/reviews/ltx_video_animated_story.quality-review.json", - "size": 5831, - "sha256": "sha256:bytes:1ec83b229ba5c7995c8ada2629c448334965939304ffddc7a70161c8b7e1b7f1", + "path": "template-gallery/reviews/persimmon_glaze.quality-review.json", + "size": 2235, + "sha256": "sha256:bytes:9c9afc7223597ea8ee65889581c40f1e9f6a63a2bab6d7827b6af207353909ad", "contentType": "application/json", "purposes": [ "runtime" ] }, { - "path": "template-gallery/reviews/ltx_video_animated_story.reviewed-provenance.json", - "size": 256227, - "sha256": "sha256:bytes:3910ae6f164eb978e38b16e1eab92d73fe7f55dac543b681416ba0b8c43b440d", + "path": "template-gallery/reviews/persimmon_glaze.retained-template-provenance.json", + "size": 3294, + "sha256": "sha256:bytes:4813f96f9332d04d4b8b0fc8d30d51e110ab8d157a1aef7c6172474f09bb490f", "contentType": "application/json", "purposes": [ "runtime" ] }, { - "path": "template-gallery/reviews/ltx_video_image_to_video.quality-review.json", - "size": 6506, - "sha256": "sha256:bytes:6c31e71b0b9e6a6a1c46f55e058dd208b7b2f510f6eeb332648575da388f9431", + "path": "template-gallery/reviews/pomegranate_on_blue_linen.original-provenance.json", + "size": 2497, + "sha256": "sha256:bytes:b9cecf2139bc5a0e5d6a3db462caf017c4d54482267592bf220f5015f7ae690b", "contentType": "application/json", "purposes": [ "runtime" ] }, { - "path": "template-gallery/reviews/ltx_video_image_to_video.reviewed-provenance.json", - "size": 143757, - "sha256": "sha256:bytes:ff18a19dd44e03eb76e3879a7e49f1732cc9e6dba6affadcf370feafcc6cf06b", + "path": "template-gallery/reviews/pomegranate_on_blue_linen.original-review.json", + "size": 654, + "sha256": "sha256:bytes:752b7cc115a3794d1066785e887b73e3eed5f3bb6735ef5ec89c45035b20d7e4", "contentType": "application/json", "purposes": [ "runtime" ] }, { - "path": "template-gallery/reviews/ltx_video_long_showcase.quality-review.json", - "size": 5986, - "sha256": "sha256:bytes:60cbabfbf56d499a45000cdbabc3c4d64733de27638c1e8b127ba067f1918b9c", + "path": "template-gallery/reviews/pomegranate_on_blue_linen.quality-review.json", + "size": 2426, + "sha256": "sha256:bytes:412a9940d2e86768a91a54c8d1282d46ff638f86d94d6582e81738f32c2749ab", "contentType": "application/json", "purposes": [ "runtime" ] }, { - "path": "template-gallery/reviews/ltx_video_long_showcase.reviewed-provenance.json", - "size": 444547, - "sha256": "sha256:bytes:c2566ed4233b850092727e2bfc805d1be849c2b11cd9424e42283ff9e19b15d0", + "path": "template-gallery/reviews/pomegranate_on_blue_linen.retained-template-provenance.json", + "size": 3335, + "sha256": "sha256:bytes:15ad50f1686ae7dca486dba01974ad9155dbfc694b97b824314c257e316c185e", "contentType": "application/json", "purposes": [ "runtime" ] }, { - "path": "template-gallery/reviews/ltx_video_multi_reference.quality-review.json", - "size": 6794, - "sha256": "sha256:bytes:ccb132c3ffd2e929acca88d871c2f04ba9d0cd69d54750f303b58953a8b9bc93", + "path": "template-gallery/reviews/porcelain_on_slate_linen.original-provenance.json", + "size": 2629, + "sha256": "sha256:bytes:a20717be541cf1ac1dc84a8b7fdfd82f0dfedd5ec322ec1e257654a978ab1842", "contentType": "application/json", "purposes": [ "runtime" ] }, { - "path": "template-gallery/reviews/ltx_video_multi_reference.reviewed-provenance.json", - "size": 144273, - "sha256": "sha256:bytes:9bdf09de275841af2f1f63ce0011dfc1eeaa703e2deeb2ebf678090abad80203", + "path": "template-gallery/reviews/porcelain_on_slate_linen.original-review.json", + "size": 607, + "sha256": "sha256:bytes:8f6972bd24388616958f18d53ba39b7a9626fd23ef2470a96e888d01599ee303", "contentType": "application/json", "purposes": [ "runtime" ] }, { - "path": "template-gallery/reviews/ltx_video_text_to_video.quality-review.json", - "size": 6898, - "sha256": "sha256:bytes:37f6a5c00110c6f9e306447a53691521c77db1ecf3cedf8210dd1e7ed10ea99d", + "path": "template-gallery/reviews/porcelain_on_slate_linen.quality-review.json", + "size": 2260, + "sha256": "sha256:bytes:aa85f397af28e1ca7da538dae08a96d1ff3452c5542f72419447fa5635a2aab3", "contentType": "application/json", "purposes": [ "runtime" ] }, { - "path": "template-gallery/reviews/ltx_video_text_to_video.reviewed-provenance.json", - "size": 140131, - "sha256": "sha256:bytes:58bfc0b841177bc73dbde13effbf5eebcf9e8d618d3aa90aa8b19afc3a6e5132", + "path": "template-gallery/reviews/porcelain_on_slate_linen.retained-template-provenance.json", + "size": 3329, + "sha256": "sha256:bytes:e1d8fb3b54f1fc0c1d4e3560d9a7d829aaf81d22f3cd543809051b38b598a396", "contentType": "application/json", "purposes": [ "runtime" ] }, { - "path": "template-gallery/reviews/ltx_video_video_to_video.quality-review.json", - "size": 6549, - "sha256": "sha256:bytes:819fd6d872b8e86bbb091980a435bd363216d069223dd694f65d7942aeb05178", + "path": "template-gallery/reviews/quiet_current.original-provenance.json", + "size": 2802, + "sha256": "sha256:bytes:6831c3577cf90fa0a6606497bd13844a9b25d4371f1b402efe9b099e8a58d42c", "contentType": "application/json", "purposes": [ "runtime" ] }, { - "path": "template-gallery/reviews/ltx_video_video_to_video.reviewed-provenance.json", - "size": 146951, - "sha256": "sha256:bytes:9de3b2659acc8383ab86923bc7c9c87be3e53f3d894a06c77af8a16a155795a4", + "path": "template-gallery/reviews/quiet_current.original-review.json", + "size": 637, + "sha256": "sha256:bytes:c1596743b2612f0bfcda8cf8d21b3e6bec1c570710c73e19e82d7d6aaea9b61c", "contentType": "application/json", "purposes": [ "runtime" ] }, { - "path": "template-gallery/reviews/marigold_depth_synthetic_ramp.quality-review.json", - "size": 2882, - "sha256": "sha256:bytes:17c3bbb2da127558c468e58ccc2bb08a9b78d4f07f901d483cfe8092732ebb42", + "path": "template-gallery/reviews/quiet_current.quality-review.json", + "size": 2405, + "sha256": "sha256:bytes:2387a8febca71a20ea416bb6db610de9c442c584f64bd913eb66cf3688d84773", "contentType": "application/json", "purposes": [ "runtime" ] }, { - "path": "template-gallery/reviews/marigold_depth_synthetic_ramp.retained-template-provenance.json", - "size": 2639, - "sha256": "sha256:bytes:57b1487ecee6f44016512e1e1ce5c8135e963add06b1519b7e6007cb83184ae0", + "path": "template-gallery/reviews/quiet_current.retained-template-provenance.json", + "size": 3257, + "sha256": "sha256:bytes:888aecdcb91637d93c268a9ad7b615ca545e7b73e2f1caf064c12bf4a0681655", "contentType": "application/json", "purposes": [ "runtime" ] }, { - "path": "template-gallery/reviews/minimax_h3_image_old_town_cat.quality-review.json", - "size": 3140, - "sha256": "sha256:bytes:ce9fc2a0edaaf3eef1f3db03024d3e64108523e93fc2797fee7cbe7364e7ce97", + "path": "template-gallery/reviews/quiet_kiln_at_daybreak.original-provenance.json", + "size": 3958, + "sha256": "sha256:bytes:a4b6c9950b2f2f6d185eb574ad4acddec21e2015fcf8d50bd14195ed24dcee97", "contentType": "application/json", "purposes": [ "runtime" ] }, { - "path": "template-gallery/reviews/minimax_h3_image_old_town_cat.reviewed-provenance.json", - "size": 96855, - "sha256": "sha256:bytes:9d5792710da6b60188994c51bfa1ac49047121433d83961cd58d22b9caf6030c", + "path": "template-gallery/reviews/quiet_kiln_at_daybreak.original-review.json", + "size": 740, + "sha256": "sha256:bytes:b76ab6d15da10b9d6fb9ddfd83af0abf2f56ca962aac6ab65c78ae231a74d2bd", "contentType": "application/json", "purposes": [ "runtime" ] }, { - "path": "template-gallery/reviews/minimax_music3_chamber_pop.quality-review.json", - "size": 3481, - "sha256": "sha256:bytes:cd83b77fc2ccb4b11263406c12dc9d0d222af582e52dc47b77c18a4243462502", + "path": "template-gallery/reviews/quiet_kiln_at_daybreak.quality-review.json", + "size": 2679, + "sha256": "sha256:bytes:b0118affa79b69e333c6a7977aa8c47328d570dd374aa212f0a371ec5a4a353b", "contentType": "application/json", "purposes": [ "runtime" ] }, { - "path": "template-gallery/reviews/minimax_music3_chamber_pop.reviewed-provenance.json", - "size": 96233, - "sha256": "sha256:bytes:1b2c91a45c40a7d6621bee54083d3e02d9b843d1034c06e3284ff8f1a2e44270", + "path": "template-gallery/reviews/quiet_kiln_at_daybreak.retained-template-provenance.json", + "size": 3306, + "sha256": "sha256:bytes:ae5db3f69f0a3ae1ad178ca986819e1b8cb1ccdf50c9b3850d5ec2e7d745ba8d", "contentType": "application/json", "purposes": [ "runtime" @@ -3964,6 +4850,78 @@ "runtime" ] }, + { + "path": "template-gallery/reviews/restoring_the_studio_backdrop.original-provenance.json", + "size": 2263, + "sha256": "sha256:bytes:a8d0febc08556ad204bef84d5c8d35bfab9bf69fe8d28b21f10ad315f962b897", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, + { + "path": "template-gallery/reviews/restoring_the_studio_backdrop.original-review.json", + "size": 403, + "sha256": "sha256:bytes:633f93991afc1d361ac19a79c101f868f5954814f09dc349bcb61f967b821cf6", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, + { + "path": "template-gallery/reviews/restoring_the_studio_backdrop.quality-review.json", + "size": 2397, + "sha256": "sha256:bytes:1e0613d7b8b08333cca474aea32b92bd3d6ac680a776e639b93c554a3011b311", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, + { + "path": "template-gallery/reviews/restoring_the_studio_backdrop.retained-template-provenance.json", + "size": 3994, + "sha256": "sha256:bytes:6a6538a8278e1f94de68eb9b2928131809e5b3163a7157ff7db17d053635fa46", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, + { + "path": "template-gallery/reviews/salt_marsh_from_above.original-provenance.json", + "size": 3298, + "sha256": "sha256:bytes:a126541afded7807e2f7c48f7695571cd00edb4c237e257829dea8025548fdc4", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, + { + "path": "template-gallery/reviews/salt_marsh_from_above.original-review.json", + "size": 720, + "sha256": "sha256:bytes:890b1c2f2a76d781d9c1062a1e4ec1e637a5d7de161e8ec21fb4860bfba68365", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, + { + "path": "template-gallery/reviews/salt_marsh_from_above.quality-review.json", + "size": 2636, + "sha256": "sha256:bytes:deb996a0c76f064ba87fcbde7750b4297dedd4f470a70246be5ce550f88b52d3", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, + { + "path": "template-gallery/reviews/salt_marsh_from_above.retained-template-provenance.json", + "size": 3289, + "sha256": "sha256:bytes:9a904012bac7d429111212a1e17e1b5b08a754a6354230233a6c81b8f1a2cfe2", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, { "path": "template-gallery/reviews/sana_sprint_monochrome_tiger.quality-review.json", "size": 3320, @@ -4018,6 +4976,42 @@ "runtime" ] }, + { + "path": "template-gallery/reviews/the_glasshouse_seed_tray.original-provenance.json", + "size": 2794, + "sha256": "sha256:bytes:267ab964ea3749739c8f58b86f7b94aa2c2cfe506a12c4f33c615c8415a97230", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, + { + "path": "template-gallery/reviews/the_glasshouse_seed_tray.original-review.json", + "size": 685, + "sha256": "sha256:bytes:49410d9deaf87256d1f77a2ee3839b8ae49ddd9ba4a33b6bc740347c4ce12744", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, + { + "path": "template-gallery/reviews/the_glasshouse_seed_tray.quality-review.json", + "size": 2512, + "sha256": "sha256:bytes:ddc92db2d2f6ce8da152019e33a20b66ffd61a780d72b76ce550fd2d00d63a33", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, + { + "path": "template-gallery/reviews/the_glasshouse_seed_tray.retained-template-provenance.json", + "size": 3330, + "sha256": "sha256:bytes:c719553a51b1b44737b448ad981e6e14d2e71ad4a63deb0a865453e94e7c78c8", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, { "path": "template-gallery/reviews/wan_22_ti2v_5b_seed_vault.quality-review.json", "size": 8097, @@ -4916,6 +5910,17 @@ "tooling" ] }, + { + "path": "template-gallery/salt_marsh_from_above.webp", + "size": 542348, + "sha256": "sha256:bytes:6447268a9bef5f8a4503d73760f91e8d930e9ce620880e958f461d7d6539f27c", + "contentType": "image/webp", + "purposes": [ + "runtime" + ], + "width": 1536, + "height": 768 + }, { "path": "template-gallery/sana_sprint_monochrome_tiger.webp", "size": 365662, @@ -5276,6 +6281,17 @@ "width": 128, "height": 96 }, + { + "path": "template-gallery/the_glasshouse_seed_tray.webp", + "size": 406498, + "sha256": "sha256:bytes:21fc2abc9656ec805dfa5836064beb5c53e920fd8d75a658b7cfefdcff83a35f", + "contentType": "image/webp", + "purposes": [ + "runtime" + ], + "width": 1024, + "height": 1024 + }, { "path": "template-gallery/wan_21_t2v_13b_seed_vault.card-poster.png", "size": 2904091, @@ -5691,9 +6707,9 @@ "height": 1024 } ], - "assetSetId": "sha256:canonical-json:4434e38c233eb32820d8903661684c0d91b77edf6fae07035a8ea7edd8760651", + "assetSetId": "sha256:canonical-json:caa900140d82653b84f9c71dda792dda20616498078938bc687b8dfc977b9f72", "status": "ready", - "assetCount": 575, - "totalBytes": 1037691708, + "assetCount": 683, + "totalBytes": 1044572748, "missingAssets": [] } diff --git a/public/template-gallery/manifest.json b/public/template-gallery/manifest.json index 676e65c3..038f10f0 100644 --- a/public/template-gallery/manifest.json +++ b/public/template-gallery/manifest.json @@ -3085,6 +3085,639 @@ "qualityReviewStatus": "approved_reviewed", "reviewer": "MoDiff workspace maintainer", "reviewedAt": "2026-11-21T06:49:19.885Z" + }, + { + "templateId": "alpine_lake_in_oils", + "templateLockHash": "tpl_0816c26c", + "promptSettingsHash": "ps_9f1fefe2", + "modelRevision": "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14", + "runtimeFingerprint": "sha256:stable-runtime-v1:615884f86efe6130396deadeb3748520462cbc6518b11525dd860f7c89bd2e06", + "graphHash": "sha256:canonical-graph-v1:e5a47286938233b67cc7bec938b43449fdbf4dd46a028f200cce4471158267e2", + "proofLockHash": "sha256:retained-template-association-v1:a653bf93cc3dd88ae7ffd1225ad636dcb31c403d897cd94bb233f3cfeba50c4a", + "backendSourceFingerprint": "sha256:backend-source-v1:3227569ff822090d00a80a3a88213d76d5ca43092d2918cec2494962457865a5", + "backendContractFingerprint": "sha256:backend-contract-v1:bd364fcd29020d51bb61f5f9bf320cf0bf562e718c645c21ffac8ed5a47b740d", + "modelCommit": "451f4fe16113bff5a5d2269ed5ad43b0592e9a14", + "templateRevisionHash": "81ebe61010abc66045694e149989c24310c3a181d46fab2b644ac0a0bafffcae", + "provenancePath": "/template-gallery/reviews/alpine_lake_in_oils.retained-template-provenance.json", + "provenanceHash": "sha256:canonical-json:0a868caa1ef51006ccd51cff1916df9ba32b8985f1a0e6dedf017a328f724da5", + "outputPath": "/template-gallery/alpine_lake_in_oils.webp", + "thumbnailPath": "/template-gallery/alpine_lake_in_oils.webp", + "mediaHash": "sha256:decoded-rgba:28630f60ee9aa276630384ab6978b1bb3cac87231e44d175821516f8b71f6e90", + "mediaType": "image", + "verificationTimestamp": "2026-11-23T18:29:34.403Z", + "verificationStatus": "reviewed", + "qualityReviewStatus": "approved_reviewed", + "qualityReviewHash": "sha256:canonical-json:922924843f50e743a76f20be1564dd8fe6641ad5678437e5b922f778d2a77b40", + "qualityReviewPath": "/template-gallery/reviews/alpine_lake_in_oils.quality-review.json", + "reviewer": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-24T18:48:44Z", + "beforePath": "/template-gallery/inputs/alpine_lake_in_oils.before.png", + "beforeMediaHash": "sha256:bytes:88290a96bc8d52f11f2d1e3c0c0e04c2027661816e54b57d7d4739d731ca1e75", + "afterPath": "/template-gallery/alpine_lake_in_oils.webp", + "width": 1024, + "height": 1024, + "approvedOriginalReviewPath": "/template-gallery/reviews/alpine_lake_in_oils.original-review.json", + "approvedOriginalProvenancePath": "/template-gallery/reviews/alpine_lake_in_oils.original-provenance.json" + }, + { + "templateId": "bookshop_at_blue_hour", + "templateLockHash": "tpl_14707aaf", + "promptSettingsHash": "ps_cf9a00e5", + "modelRevision": "baidu/ERNIE-Image-Turbo@bc68c81e2a1730a394d5fc9fae70713dee940140", + "runtimeFingerprint": "sha256:stable-runtime-v1:7bd1c3e58b5f9f51b038ccd48941de7a6759375ffde295a9c222ef5dafb43c56", + "graphHash": "sha256:canonical-graph-v1:f12eab7de9d1be025dee6d2466013865b35a67d145813a1faf68c1e4d0ff034c", + "proofLockHash": "sha256:retained-template-association-v1:808a32050500d247221d8799030cd8f152915c6f4243cd672f5719d1944fea04", + "backendSourceFingerprint": "sha256:backend-source-v1:371fd754663a95b1b06900df9a838042048466464b4bd5cfa7033c1b6eebe0e3", + "backendContractFingerprint": "sha256:backend-contract-v1:300f2fb801e65ef8a0355d217f3f89e59d11e38f976af5a86ba41212d30216fd", + "modelCommit": "bc68c81e2a1730a394d5fc9fae70713dee940140", + "templateRevisionHash": "160e77d5c28132522b0cbf5f3102b812a4e8be9eff09f321db0c5853905cab5e", + "provenancePath": "/template-gallery/reviews/bookshop_at_blue_hour.retained-template-provenance.json", + "provenanceHash": "sha256:canonical-json:18ee342fd9ecd21c60eb0af65683179f3b82a8f170bf31bb0d6b8f303d976cf7", + "outputPath": "/template-gallery/bookshop_at_blue_hour.webp", + "thumbnailPath": "/template-gallery/bookshop_at_blue_hour.webp", + "mediaHash": "sha256:decoded-rgba:2b3824950a21cddf861f4f4c005ebecbdfd19f4489f51c176570d169f3896665", + "mediaType": "image", + "verificationTimestamp": "2026-11-23T14:48:46.445Z", + "verificationStatus": "reviewed", + "qualityReviewStatus": "approved_reviewed", + "qualityReviewHash": "sha256:canonical-json:e6346915598b15ac960f1ceba6da47eb24f05a145c6b79ceedf6ee1c67ca36a3", + "qualityReviewPath": "/template-gallery/reviews/bookshop_at_blue_hour.quality-review.json", + "reviewer": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-24T18:48:44Z", + "width": 1024, + "height": 1024, + "approvedOriginalReviewPath": "/template-gallery/reviews/bookshop_at_blue_hour.original-review.json", + "approvedOriginalProvenancePath": "/template-gallery/reviews/bookshop_at_blue_hour.original-provenance.json" + }, + { + "templateId": "flowers_after_rain", + "templateLockHash": "tpl_3ba52cb2", + "promptSettingsHash": "ps_1e317563", + "modelRevision": "ATH-MaaS/Ovis-Image-7B@41be1c5821a92c970d63d7eb595a2fd3fe32b22e", + "runtimeFingerprint": "sha256:stable-runtime-v1:1e62f6df68904ea5b6fee68f381b6fd41e7e992b95810ae4f63e834f1f9157b1", + "graphHash": "sha256:canonical-graph-v1:12380dcafddc7153ecd5f02ced0b95c58031228dc7825e3914f22dae90489999", + "proofLockHash": "sha256:retained-template-association-v1:bf0f0326102196a56c140aa6f2146db8214ed34363c0c82c8dfa75474717d93d", + "backendSourceFingerprint": "sha256:backend-source-v1:43f2ed10792fc6167b963166287cf7d5a0429afa26029e6455b0418e2123be86", + "backendContractFingerprint": "sha256:backend-contract-v1:300f2fb801e65ef8a0355d217f3f89e59d11e38f976af5a86ba41212d30216fd", + "modelCommit": "41be1c5821a92c970d63d7eb595a2fd3fe32b22e", + "templateRevisionHash": "a113786c4f56e30b9f8c024d9e71abd7e84419b59bafe097bee8cd40b7074687", + "provenancePath": "/template-gallery/reviews/flowers_after_rain.retained-template-provenance.json", + "provenanceHash": "sha256:canonical-json:341216f07cdd54c33f396e8148a51497f78a0ee6a1a9ea73385fc4ba91ba0916", + "outputPath": "/template-gallery/flowers_after_rain.webp", + "thumbnailPath": "/template-gallery/flowers_after_rain.webp", + "mediaHash": "sha256:decoded-rgba:0df26d9ad6ba4c98f3150881ca40e871c0935ed6faf56bc556a363e0c0e4a9c9", + "mediaType": "image", + "verificationTimestamp": "2026-11-23T23:44:54.021Z", + "verificationStatus": "reviewed", + "qualityReviewStatus": "approved_reviewed", + "qualityReviewHash": "sha256:canonical-json:4016b026d26cca0d1305c99246b53af97696172b0ab65221ab8987f982dff93c", + "qualityReviewPath": "/template-gallery/reviews/flowers_after_rain.quality-review.json", + "reviewer": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-24T18:48:44Z", + "width": 1024, + "height": 1024, + "approvedOriginalReviewPath": "/template-gallery/reviews/flowers_after_rain.original-review.json", + "approvedOriginalProvenancePath": "/template-gallery/reviews/flowers_after_rain.original-provenance.json" + }, + { + "templateId": "forest_ferns", + "templateLockHash": "tpl_be9fadb4", + "promptSettingsHash": "ps_975f83ff", + "modelRevision": "zai-org/GLM-Image@2c433cc0cbc293bde2ac8ca9624f279b5d23fcf4", + "runtimeFingerprint": "sha256:stable-runtime-v1:9a2e3ebfcb4726c4fcaacf213b020cce77b44d0c018e2108fcab689a7f7c7f79", + "graphHash": "sha256:canonical-graph-v1:ff052e8de129d2eef0f849f457336a1dfce83bd0b7443e1dc5802d0608e0781e", + "proofLockHash": "sha256:retained-template-association-v1:80b7fef0813c50d9c8263e98228658fd2687d55486c10e2fd46d2d56814e9fc1", + "backendSourceFingerprint": "sha256:backend-source-v1:43f2ed10792fc6167b963166287cf7d5a0429afa26029e6455b0418e2123be86", + "backendContractFingerprint": "sha256:backend-contract-v1:300f2fb801e65ef8a0355d217f3f89e59d11e38f976af5a86ba41212d30216fd", + "modelCommit": "2c433cc0cbc293bde2ac8ca9624f279b5d23fcf4", + "templateRevisionHash": "6a6e34ea5e9b0dec925e0ce13a0422fc00c65754f867c44e3105bfdb9d03c305", + "provenancePath": "/template-gallery/reviews/forest_ferns.retained-template-provenance.json", + "provenanceHash": "sha256:canonical-json:98104927b8280bcd4d6daed609f1028edbe91a963a3adb1a65bb0d76e49f8d50", + "outputPath": "/template-gallery/forest_ferns.webp", + "thumbnailPath": "/template-gallery/forest_ferns.webp", + "mediaHash": "sha256:decoded-rgba:22330df53c3861884025cc0c6faba5155aed75dc1bdbaa747d1011cf27262b52", + "mediaType": "image", + "verificationTimestamp": "2026-11-24T02:51:19.434Z", + "verificationStatus": "reviewed", + "qualityReviewStatus": "approved_reviewed", + "qualityReviewHash": "sha256:canonical-json:5634d68bad7c5d67140b8c87a3c56805660d111108f295528503317bd4dddb72", + "qualityReviewPath": "/template-gallery/reviews/forest_ferns.quality-review.json", + "reviewer": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-24T18:48:44Z", + "width": 1024, + "height": 1024, + "approvedOriginalReviewPath": "/template-gallery/reviews/forest_ferns.original-review.json", + "approvedOriginalProvenancePath": "/template-gallery/reviews/forest_ferns.original-provenance.json" + }, + { + "templateId": "ochre_paper_pavilion", + "templateLockHash": "tpl_f93a2d5c", + "promptSettingsHash": "ps_f36e5dd5", + "modelRevision": "zai-org/CogView3-Plus-3B@5d70e40732ac0efac98524c51a7fa9c82707f1e5", + "runtimeFingerprint": "sha256:stable-runtime-v1:e3b8486eaafc5e672034487de12bec1dabb21ae630eaf41784ca0f655bcdc4e0", + "graphHash": "sha256:canonical-graph-v1:063bf00e554a6d90e9fab896c09f23b976d423fc4c82da89c7471ac21a81eb57", + "proofLockHash": "sha256:retained-template-association-v1:a4820e2df4178fa7605b08a43059ad741b00d81705ee3c07fe24c58caceb3674", + "backendSourceFingerprint": "sha256:backend-source-v1:272116bf77447dfb20b0899666ae417b68401993dd97ca438db63d91ff79cab6", + "backendContractFingerprint": "sha256:backend-contract-v1:300f2fb801e65ef8a0355d217f3f89e59d11e38f976af5a86ba41212d30216fd", + "modelCommit": "5d70e40732ac0efac98524c51a7fa9c82707f1e5", + "templateRevisionHash": "b5e4c8446f01030c05a206290d9ed0c1e5035cd3110f0fb6a9e6e3c416ad5177", + "provenancePath": "/template-gallery/reviews/ochre_paper_pavilion.retained-template-provenance.json", + "provenanceHash": "sha256:canonical-json:c234e5af255ecb51adaf5d0b0a038340508d2b2e638558557d84073642878856", + "outputPath": "/template-gallery/ochre_paper_pavilion.webp", + "thumbnailPath": "/template-gallery/ochre_paper_pavilion.webp", + "mediaHash": "sha256:decoded-rgba:fe55a20b8bb775c5a3f4b7132bd60406ef00182470fee330f44e8eba63646c25", + "mediaType": "image", + "verificationTimestamp": "2026-11-24T05:30:35.733Z", + "verificationStatus": "reviewed", + "qualityReviewStatus": "approved_reviewed", + "qualityReviewHash": "sha256:canonical-json:2ee7583a81353807e8fd312db5a206e1fea1ce0397f12b5aba7f2b08645e0542", + "qualityReviewPath": "/template-gallery/reviews/ochre_paper_pavilion.quality-review.json", + "reviewer": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-24T18:48:44Z", + "width": 1024, + "height": 1024, + "approvedOriginalReviewPath": "/template-gallery/reviews/ochre_paper_pavilion.original-review.json", + "approvedOriginalProvenancePath": "/template-gallery/reviews/ochre_paper_pavilion.original-provenance.json" + }, + { + "templateId": "quiet_current", + "templateLockHash": "tpl_57a6868c", + "promptSettingsHash": "ps_5d56d1da", + "modelRevision": "zai-org/CogView4-6B@63a52b7f6dace7033380cd6da14d0915eab3e6b5", + "runtimeFingerprint": "sha256:stable-runtime-v1:2a8a0b94ac14e05ae48429d257aac6579ca5a176504d1256b7bd7079dc16411d", + "graphHash": "sha256:canonical-graph-v1:0870e1b5d6c05b496e120e383bc7c13c4fe1705efc5d918466900b9e906288d8", + "proofLockHash": "sha256:retained-template-association-v1:3f134f053faa0c89a09258393281aeed9325e81e89e8f55ac0ff3321dd139396", + "backendSourceFingerprint": "sha256:backend-source-v1:e3aea8f8d102572ad10fdd0700f0c42d92061e864ede89777efcd6a3269770a8", + "backendContractFingerprint": "sha256:backend-contract-v1:300f2fb801e65ef8a0355d217f3f89e59d11e38f976af5a86ba41212d30216fd", + "modelCommit": "63a52b7f6dace7033380cd6da14d0915eab3e6b5", + "templateRevisionHash": "c3c7aada8d0fc7bec8c4067c9c88fbb03d5210ee9f6412d1d5984b21879ab886", + "provenancePath": "/template-gallery/reviews/quiet_current.retained-template-provenance.json", + "provenanceHash": "sha256:canonical-json:d5f0b598ea263ab18ef4cec204cf97ea52b4dfc784ea647add919d3db1c1686d", + "outputPath": "/template-gallery/quiet_current.webp", + "thumbnailPath": "/template-gallery/quiet_current.webp", + "mediaHash": "sha256:decoded-rgba:e76e55029f92ff7abf2f969442e49ce126435278842462d0a6c9a2643b55ba18", + "mediaType": "image", + "verificationTimestamp": "2026-11-23T17:21:03.387Z", + "verificationStatus": "reviewed", + "qualityReviewStatus": "approved_reviewed", + "qualityReviewHash": "sha256:canonical-json:e941ad7c194422653d460ede32292114dfbf52de8ad97b51064eafb6a2a8a324", + "qualityReviewPath": "/template-gallery/reviews/quiet_current.quality-review.json", + "reviewer": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-24T18:48:44Z", + "width": 1024, + "height": 1024, + "approvedOriginalReviewPath": "/template-gallery/reviews/quiet_current.original-review.json", + "approvedOriginalProvenancePath": "/template-gallery/reviews/quiet_current.original-provenance.json" + }, + { + "templateId": "persimmon_glaze", + "templateLockHash": "tpl_ef8db2a5", + "promptSettingsHash": "ps_8a0e2f0d", + "modelRevision": "Efficient-Large-Model/Sana_600M_1024px_diffusers@28f3af7689de15f3883d5863059a2fca0aa9b829", + "runtimeFingerprint": "sha256:stable-runtime-v1:e9ad13c92f750baba3e20eefadc375ccb45ad01723f1c260f84db3fc5926ef3c", + "graphHash": "sha256:canonical-graph-v1:52c3114e98debe02d6e7a297276e67887d782628952ddb20ae88c499d7c6a356", + "proofLockHash": "sha256:retained-template-association-v1:b5b6ab9c63bf7b293403adf3d6792f18f536be26ba213cb97d6e614a658bff24", + "backendSourceFingerprint": "sha256:backend-source-v1:057b165c6ef6225461649a47077562dffad098a2d37d639a13bf0e73088d79ab", + "backendContractFingerprint": "sha256:backend-contract-v1:300f2fb801e65ef8a0355d217f3f89e59d11e38f976af5a86ba41212d30216fd", + "modelCommit": "28f3af7689de15f3883d5863059a2fca0aa9b829", + "templateRevisionHash": "ddf39e419212cba10df50f7b27b3fae22d57a0cbfc574164bcad08975fa2545b", + "provenancePath": "/template-gallery/reviews/persimmon_glaze.retained-template-provenance.json", + "provenanceHash": "sha256:canonical-json:bdb682a3810febe632b067087be54daa601c90b49fe210d0981d275d4e3f14f4", + "outputPath": "/template-gallery/persimmon_glaze.webp", + "thumbnailPath": "/template-gallery/persimmon_glaze.webp", + "mediaHash": "sha256:decoded-rgba:d0c3ce4a778aeee953862f14f119875e6f9dd68429fb8d706be56dd03239336f", + "mediaType": "image", + "verificationTimestamp": "2026-11-23T14:38:24.904Z", + "verificationStatus": "reviewed", + "qualityReviewStatus": "approved_reviewed", + "qualityReviewHash": "sha256:canonical-json:8a2131e75c152cf33a2f7b9009db66d276828bd83a98a08fcaace74fd3c4fce1", + "qualityReviewPath": "/template-gallery/reviews/persimmon_glaze.quality-review.json", + "reviewer": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-24T18:48:44Z", + "width": 1024, + "height": 1024, + "approvedOriginalReviewPath": "/template-gallery/reviews/persimmon_glaze.original-review.json", + "approvedOriginalProvenancePath": "/template-gallery/reviews/persimmon_glaze.original-provenance.json" + }, + { + "templateId": "porcelain_on_slate_linen", + "templateLockHash": "tpl_5536c9a7", + "promptSettingsHash": "ps_38a31bbe", + "modelRevision": "SimianLuo/LCM_Dreamshaper_v7@a85df6a8bd976cdd08b4fd8f3b73f229c9e54df5", + "runtimeFingerprint": "sha256:stable-runtime-v1:bd4a092870107a6eace89ea49ffdcae69e5bdeb4a02c321236a11c96b1305775", + "graphHash": "sha256:canonical-graph-v1:a27f2318675f32fa007ed44f64cc42f78c58f05c896bdba16bcf71cec4383ea5", + "proofLockHash": "sha256:retained-template-association-v1:1b491cd3badf36dbb2109c09741d77cfe29abdbfb3677e45f4be805b7cb9eaf2", + "backendSourceFingerprint": "sha256:backend-source-v1:fe1a57b8e352eb66a1a26ebbff5865aaafcf5d55326c4bbcbaf2132ec75f54a8", + "backendContractFingerprint": "sha256:backend-contract-v1:5429892d782af9dbc60b8c6b2762de25748a8da025a4965bb7d6e641908e47ba", + "modelCommit": "a85df6a8bd976cdd08b4fd8f3b73f229c9e54df5", + "templateRevisionHash": "fe33d74a4694ab6b3d34f483d56575c0c66a5948d424a62c04538c0dd608253a", + "provenancePath": "/template-gallery/reviews/porcelain_on_slate_linen.retained-template-provenance.json", + "provenanceHash": "sha256:canonical-json:bf685df209e2bd4659e0672357c97faa0cc861119e5b777d938adc2aa80c9f4b", + "outputPath": "/template-gallery/porcelain_on_slate_linen.webp", + "thumbnailPath": "/template-gallery/porcelain_on_slate_linen.webp", + "mediaHash": "sha256:decoded-rgba:b2f9076f89d8b8bd8f99f181ea0a79ac50ada5fb95ba17bdaac312d52c0d7a54", + "mediaType": "image", + "verificationTimestamp": "2026-11-23T15:33:09.403Z", + "verificationStatus": "reviewed", + "qualityReviewStatus": "approved_reviewed", + "qualityReviewHash": "sha256:canonical-json:4817097a0790d4e63e9116c9c862e1710ad4c12f16b83ed0c99611cb5da40ff3", + "qualityReviewPath": "/template-gallery/reviews/porcelain_on_slate_linen.quality-review.json", + "reviewer": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-24T18:48:44Z", + "width": 512, + "height": 512, + "approvedOriginalReviewPath": "/template-gallery/reviews/porcelain_on_slate_linen.original-review.json", + "approvedOriginalProvenancePath": "/template-gallery/reviews/porcelain_on_slate_linen.original-provenance.json" + }, + { + "templateId": "salt_marsh_from_above", + "templateLockHash": "tpl_a23dcce5", + "promptSettingsHash": "ps_97c53e0a", + "modelRevision": "fal/AuraFlow-v0.3@2cd8588f04c886002be4571697d84654a50e3af3", + "runtimeFingerprint": "sha256:stable-runtime-v1:a3650d9c5b6c2816c3117efdc4930118a1e4eec4df0fbc8d760a0cbb4013bdc6", + "graphHash": "sha256:canonical-graph-v1:956816a0ebe49ffead5c8c8759c3db2becf2d5a46196fba7696e978d0d55b15b", + "proofLockHash": "sha256:retained-template-association-v1:c96e2b95a8014ebb6f19a1d3277f88fc9ec42e5c8345c0a7f563afef492e9aa6", + "backendSourceFingerprint": "sha256:backend-source-v1:7c2e1b7de13f4da1e785e92f41a91f96b0029f79607915780ddb97aaff6a8d29", + "backendContractFingerprint": "sha256:backend-contract-v1:300f2fb801e65ef8a0355d217f3f89e59d11e38f976af5a86ba41212d30216fd", + "modelCommit": "2cd8588f04c886002be4571697d84654a50e3af3", + "templateRevisionHash": "b09d5bf8c1d2efa3ae62881840125aa474500d658ba7538031dedeaeb79d52d4", + "provenancePath": "/template-gallery/reviews/salt_marsh_from_above.retained-template-provenance.json", + "provenanceHash": "sha256:canonical-json:2c09961fbf32f239b64d2fe9afcfc1b28389add503738d1883001856c383ee11", + "outputPath": "/template-gallery/salt_marsh_from_above.webp", + "thumbnailPath": "/template-gallery/salt_marsh_from_above.webp", + "mediaHash": "sha256:decoded-rgba:386be6b3777b423696e50a41079040f9011a36e7116de09eac4c0c00117c767c", + "mediaType": "image", + "verificationTimestamp": "2026-11-24T01:53:00.229Z", + "verificationStatus": "reviewed", + "qualityReviewStatus": "approved_reviewed", + "qualityReviewHash": "sha256:canonical-json:c0bf0bf579af4f8d0975bb9405b1e02adfcd21ec56a32bc1b688ba8169c8b292", + "qualityReviewPath": "/template-gallery/reviews/salt_marsh_from_above.quality-review.json", + "reviewer": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-24T18:48:44Z", + "width": 1536, + "height": 768, + "approvedOriginalReviewPath": "/template-gallery/reviews/salt_marsh_from_above.original-review.json", + "approvedOriginalProvenancePath": "/template-gallery/reviews/salt_marsh_from_above.original-provenance.json" + }, + { + "templateId": "cobalt_jug_and_lemons", + "templateLockHash": "tpl_61d186ae", + "promptSettingsHash": "ps_82f89ed0", + "modelRevision": "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14", + "runtimeFingerprint": "sha256:stable-runtime-v1:51bd86273b54d35996cab8f90c9884f84513a199813ecd2dc36f7fb3ab1999f9", + "graphHash": "sha256:canonical-graph-v1:27fe077b35b48bbd8edc6589655a5ed7a3788139a0a0ab82b14cf3f0ae839b19", + "proofLockHash": "sha256:retained-template-association-v1:8dd18521f34daca6ed0117dd4fa3648c141e037e047270fe83986269662eb46f", + "backendSourceFingerprint": "sha256:backend-source-v1:98ee8d4a895829905e82d8fefeea42b93e55c96252a5456561eada6ffef3c764", + "backendContractFingerprint": "sha256:backend-contract-v1:5429892d782af9dbc60b8c6b2762de25748a8da025a4965bb7d6e641908e47ba", + "modelCommit": "451f4fe16113bff5a5d2269ed5ad43b0592e9a14", + "templateRevisionHash": "1c4b2351129fdb61f6ea79abfb8c699ff4db82db0c97e1dc92e9eeeb36a34d12", + "provenancePath": "/template-gallery/reviews/cobalt_jug_and_lemons.retained-template-provenance.json", + "provenanceHash": "sha256:canonical-json:1218cfc78acb88a604b60adc6244effdfb9f4a56c449eebe7ec4fdebe783cc67", + "outputPath": "/template-gallery/cobalt_jug_and_lemons.webp", + "thumbnailPath": "/template-gallery/cobalt_jug_and_lemons.webp", + "mediaHash": "sha256:decoded-rgba:eef440f7340d1f08ecbb3b93e6c0fc905dd97610ca343bc9ca83503fcd63f653", + "mediaType": "image", + "verificationTimestamp": "2026-11-21T03:31:28.279Z", + "verificationStatus": "reviewed", + "qualityReviewStatus": "approved_reviewed", + "qualityReviewHash": "sha256:canonical-json:6623a29f2727e7f4a59b4c7589c229013fe6430b6c29ce58a9d974a7846bcf4c", + "qualityReviewPath": "/template-gallery/reviews/cobalt_jug_and_lemons.quality-review.json", + "reviewer": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-24T18:48:44Z", + "width": 512, + "height": 512, + "approvedOriginalReviewPath": "/template-gallery/reviews/cobalt_jug_and_lemons.original-review.json", + "approvedOriginalProvenancePath": "/template-gallery/reviews/cobalt_jug_and_lemons.original-provenance.json" + }, + { + "templateId": "copper_hour_dunes", + "templateLockHash": "tpl_3f17401c", + "promptSettingsHash": "ps_6998df3e", + "modelRevision": "Photoroom/prx-512-t2i-sft@2996423bc26e8eaca48774fac1797484214dfea0", + "runtimeFingerprint": "sha256:stable-runtime-v1:4cc3a80f237c1fe057204c7f6236bfc03e94fbeeaf01fc146f79e3e7e88a51e3", + "graphHash": "sha256:canonical-graph-v1:3d2853278333f4c6760e366ae0347794b14b3937ac62422b5f84d6effcd10495", + "proofLockHash": "sha256:retained-template-association-v1:78abe5d6ea961d9dd0220f7b94358e1ec46963cbd3d2919b52392a821d1ed887", + "backendSourceFingerprint": "sha256:backend-source-v1:95899090708469a60e137d3b59a1a8c2c02cc673a1af5f82720f6b5f7393c258", + "backendContractFingerprint": "sha256:backend-contract-v1:300f2fb801e65ef8a0355d217f3f89e59d11e38f976af5a86ba41212d30216fd", + "modelCommit": "2996423bc26e8eaca48774fac1797484214dfea0", + "templateRevisionHash": "4a188876a65d35df1c87da93c5fcae162f3bc8b20934a61fe70e4580b5090249", + "provenancePath": "/template-gallery/reviews/copper_hour_dunes.retained-template-provenance.json", + "provenanceHash": "sha256:canonical-json:ef38c88346d9574e6456d443286503b5b54ef5a9b36d44745dd061d26f40404b", + "outputPath": "/template-gallery/copper_hour_dunes.webp", + "thumbnailPath": "/template-gallery/copper_hour_dunes.webp", + "mediaHash": "sha256:decoded-rgba:a4375e56e13bd87625d5b2117074169e68d5f2bd18768965b0a21cccb55df2f2", + "mediaType": "image", + "verificationTimestamp": "2026-11-21T08:05:20.189Z", + "verificationStatus": "reviewed", + "qualityReviewStatus": "approved_reviewed", + "qualityReviewHash": "sha256:canonical-json:30eb3491a71f17f58358b99108288851eb3f33b64fe8404edca03d2aec6de14c", + "qualityReviewPath": "/template-gallery/reviews/copper_hour_dunes.quality-review.json", + "reviewer": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-24T18:48:44Z", + "width": 512, + "height": 512, + "approvedOriginalReviewPath": "/template-gallery/reviews/copper_hour_dunes.original-review.json", + "approvedOriginalProvenancePath": "/template-gallery/reviews/copper_hour_dunes.original-provenance.json" + }, + { + "templateId": "glasshouse_rain", + "templateLockHash": "tpl_a4b61426", + "promptSettingsHash": "ps_fc327a42", + "modelRevision": "stabilityai/stable-diffusion-xl-base-1.0@462165984030d82259a11f4367a4eed129e94a7b", + "runtimeFingerprint": "sha256:stable-runtime-v1:6d658e5ec1d43cbff0b70c907f430b90a11eff235db24349b51ebb1c8882ba1e", + "graphHash": "sha256:canonical-graph-v1:8cca9a4269d1339b835a8fba2a380913be348c06c3a628b212a3a17ef2377bb1", + "proofLockHash": "sha256:retained-template-association-v1:4b4d543576e48e1929bdc479c3f76880d53b6a83bc308c7b13071adb1a87e1c4", + "backendSourceFingerprint": "sha256:backend-source-v1:95899090708469a60e137d3b59a1a8c2c02cc673a1af5f82720f6b5f7393c258", + "backendContractFingerprint": "sha256:backend-contract-v1:300f2fb801e65ef8a0355d217f3f89e59d11e38f976af5a86ba41212d30216fd", + "modelCommit": "462165984030d82259a11f4367a4eed129e94a7b", + "templateRevisionHash": "4d32a1778d7cad756e05f14f09de559b9b065f3675b2aef6a289c5299cbd2c24", + "provenancePath": "/template-gallery/reviews/glasshouse_rain.retained-template-provenance.json", + "provenanceHash": "sha256:canonical-json:9af8a9cb81d35a8ba4ea741af1d9a791b9aa68350d81ec0a804ee861b1d41b86", + "outputPath": "/template-gallery/glasshouse_rain.webp", + "thumbnailPath": "/template-gallery/glasshouse_rain.webp", + "mediaHash": "sha256:decoded-rgba:361acd028382a71fa49c9b68d88bfd49121645dd75dcaceae37389d618ee89b1", + "mediaType": "image", + "verificationTimestamp": "2026-11-21T08:21:05.869Z", + "verificationStatus": "reviewed", + "qualityReviewStatus": "approved_reviewed", + "qualityReviewHash": "sha256:canonical-json:50ced83fcffffb7f38148d97b39de5f514685a786feb4730f83836167bdcfd0a", + "qualityReviewPath": "/template-gallery/reviews/glasshouse_rain.quality-review.json", + "reviewer": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-24T18:48:44Z", + "width": 1024, + "height": 1024, + "approvedOriginalReviewPath": "/template-gallery/reviews/glasshouse_rain.original-review.json", + "approvedOriginalProvenancePath": "/template-gallery/reviews/glasshouse_rain.original-provenance.json" + }, + { + "templateId": "pomegranate_on_blue_linen", + "templateLockHash": "tpl_5dba74f8", + "promptSettingsHash": "ps_2f4c6afa", + "modelRevision": "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14", + "runtimeFingerprint": "sha256:stable-runtime-v1:8887f1f01530446b2646d4276425cd3f8f5e72dad15e5b1b6240a8abeb375f0e", + "graphHash": "sha256:canonical-graph-v1:f471ecd5a18b997bf9dc6b61a72cf7e98e0988f9309ef3432ec635838f97c409", + "proofLockHash": "sha256:retained-template-association-v1:1a4965c3a28498af15033e70da53eab447cc6eaaa1ad8f00eab35e1de4e89589", + "backendSourceFingerprint": "sha256:backend-source-v1:1f2f7e00ce4a500ba52d5b729f43d4321af6f931125a3f266f307cf80038c12e", + "backendContractFingerprint": "sha256:backend-contract-v1:5429892d782af9dbc60b8c6b2762de25748a8da025a4965bb7d6e641908e47ba", + "modelCommit": "451f4fe16113bff5a5d2269ed5ad43b0592e9a14", + "templateRevisionHash": "6642ac1831a788b83981383c33b7ce019692d58fd2b23f3bff9d95e3a59ec27b", + "provenancePath": "/template-gallery/reviews/pomegranate_on_blue_linen.retained-template-provenance.json", + "provenanceHash": "sha256:canonical-json:701dcadc877ce90c1353e2b7e185e1c1b772fa2b066ad14a84f65ebd76f66dbf", + "outputPath": "/template-gallery/pomegranate_on_blue_linen.webp", + "thumbnailPath": "/template-gallery/pomegranate_on_blue_linen.webp", + "mediaHash": "sha256:decoded-rgba:124f6827b3d0bb3262a1d64577e7e510477fd610a1979008a04b7677bde3ee63", + "mediaType": "image", + "verificationTimestamp": "2026-11-23T14:15:52.979Z", + "verificationStatus": "reviewed", + "qualityReviewStatus": "approved_reviewed", + "qualityReviewHash": "sha256:canonical-json:dae3b9fab87965232727681ec76dc4457635fcbd8714a82536cad4ad5c206f03", + "qualityReviewPath": "/template-gallery/reviews/pomegranate_on_blue_linen.quality-review.json", + "reviewer": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-24T18:48:44Z", + "width": 512, + "height": 512, + "approvedOriginalReviewPath": "/template-gallery/reviews/pomegranate_on_blue_linen.original-review.json", + "approvedOriginalProvenancePath": "/template-gallery/reviews/pomegranate_on_blue_linen.original-provenance.json" + }, + { + "templateId": "canal_lantern_in_warm_light", + "templateLockHash": "tpl_c72697e6", + "promptSettingsHash": "ps_d411e860", + "modelRevision": "Efficient-Large-Model/Sana_Sprint_0.6B_1024px_diffusers@aa76e7f4f4928f378716b6716a2130fba3caf5b1", + "runtimeFingerprint": "sha256:stable-runtime-v1:eebb12b6ce7eb5e22033d091074a268ba41e4003e21f9fad5d4c102518f45a48", + "graphHash": "sha256:canonical-graph-v1:374726f7f4d26de27f216171d570f84ef9365397555d083767b89eacc2415338", + "proofLockHash": "sha256:retained-template-association-v1:5be78085d2d542827af8d170932db0758d617d99fbf23cdea0806a28517b9065", + "backendSourceFingerprint": "sha256:backend-source-v1:057b165c6ef6225461649a47077562dffad098a2d37d639a13bf0e73088d79ab", + "backendContractFingerprint": "sha256:backend-contract-v1:300f2fb801e65ef8a0355d217f3f89e59d11e38f976af5a86ba41212d30216fd", + "modelCommit": "aa76e7f4f4928f378716b6716a2130fba3caf5b1", + "templateRevisionHash": "0724f395ee3219d2cf878ea1ef914692d9808e83236c4d972322e062dd15b380", + "provenancePath": "/template-gallery/reviews/canal_lantern_in_warm_light.retained-template-provenance.json", + "provenanceHash": "sha256:canonical-json:1bc239c010c4f26b803b580e9848a165d684905a36857aae5882437dad87872a", + "outputPath": "/template-gallery/canal_lantern_in_warm_light.webp", + "thumbnailPath": "/template-gallery/canal_lantern_in_warm_light.webp", + "mediaHash": "sha256:decoded-rgba:e7e5163453bdd3deba5033146b0625fdd7bdb235b7ab346b3d38ba7f20647d31", + "mediaType": "image", + "verificationTimestamp": "2026-11-23T14:19:48.529Z", + "verificationStatus": "reviewed", + "qualityReviewStatus": "approved_reviewed", + "qualityReviewHash": "sha256:canonical-json:d2c7828d1611fe165889fae9ddb182f2ccf95940d7cfb96c570b75b27bd2e512", + "qualityReviewPath": "/template-gallery/reviews/canal_lantern_in_warm_light.quality-review.json", + "reviewer": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-24T18:48:44Z", + "width": 1024, + "height": 1024, + "approvedOriginalReviewPath": "/template-gallery/reviews/canal_lantern_in_warm_light.original-review.json", + "approvedOriginalProvenancePath": "/template-gallery/reviews/canal_lantern_in_warm_light.original-provenance.json" + }, + { + "templateId": "the_glasshouse_seed_tray", + "templateLockHash": "tpl_9fd062df", + "promptSettingsHash": "ps_c51df98f", + "modelRevision": "stabilityai/stable-diffusion-xl-base-1.0@462165984030d82259a11f4367a4eed129e94a7b", + "runtimeFingerprint": "sha256:stable-runtime-v1:2197c7fd7cfda34fc39e3aca3b80eb2cb45a758a5da6714486fa911843fc8417", + "graphHash": "sha256:canonical-graph-v1:084cbe824fed25ab44a940b2319aa37299f80d3fc2e06efb5848d701162902d9", + "proofLockHash": "sha256:retained-template-association-v1:2239ee3de2dc68391338efe94044b54003b400ffca482657052a07ee25c00cf6", + "backendSourceFingerprint": "sha256:backend-source-v1:057b165c6ef6225461649a47077562dffad098a2d37d639a13bf0e73088d79ab", + "backendContractFingerprint": "sha256:backend-contract-v1:300f2fb801e65ef8a0355d217f3f89e59d11e38f976af5a86ba41212d30216fd", + "modelCommit": "462165984030d82259a11f4367a4eed129e94a7b", + "templateRevisionHash": "f30bccf14d658fa6222cec9c7458ec74fec76940dc1dac07ed87e19d93b3738c", + "provenancePath": "/template-gallery/reviews/the_glasshouse_seed_tray.retained-template-provenance.json", + "provenanceHash": "sha256:canonical-json:0d0142748fc26dee745ac95785029695fbf63469bc8948a71b8643c209462438", + "outputPath": "/template-gallery/the_glasshouse_seed_tray.webp", + "thumbnailPath": "/template-gallery/the_glasshouse_seed_tray.webp", + "mediaHash": "sha256:decoded-rgba:42461a6eb4eb2d6f793504c9a22f38f535472ec314a31a57f8097c8865d0eec8", + "mediaType": "image", + "verificationTimestamp": "2026-11-23T14:16:46.399Z", + "verificationStatus": "reviewed", + "qualityReviewStatus": "approved_reviewed", + "qualityReviewHash": "sha256:canonical-json:a34b8617891c22a29e8dde55355d082743b837323940218f5444e0b330c549e0", + "qualityReviewPath": "/template-gallery/reviews/the_glasshouse_seed_tray.quality-review.json", + "reviewer": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-24T18:48:44Z", + "width": 1024, + "height": 1024, + "approvedOriginalReviewPath": "/template-gallery/reviews/the_glasshouse_seed_tray.original-review.json", + "approvedOriginalProvenancePath": "/template-gallery/reviews/the_glasshouse_seed_tray.original-provenance.json" + }, + { + "templateId": "quiet_kiln_at_daybreak", + "templateLockHash": "tpl_c722e490", + "promptSettingsHash": "ps_b971c379", + "modelRevision": "NucleusAI/Nucleus-Image@5e963db4fd0a65c7e4faf53ca2d4eca567c4dcfa", + "runtimeFingerprint": "sha256:stable-runtime-v1:cdcff048aa4782c7313f176a2c65936090e32fe7e61ddd1ed154136f66dfc9c2", + "graphHash": "sha256:canonical-graph-v1:ee3d46849aebf382a67208a5f3c2ee4461deb6bfdab6af3506dfbb5abb6dfec1", + "proofLockHash": "sha256:retained-template-association-v1:4c080e373f3754dba05ca7da6f56965de1fdc504386cf8dc3d51081ec4635881", + "backendSourceFingerprint": "sha256:backend-source-v1:258d554494a8e31795e6c04f21e6ab998a6225773194b12546c45d68b690887e", + "backendContractFingerprint": "sha256:backend-contract-v1:300f2fb801e65ef8a0355d217f3f89e59d11e38f976af5a86ba41212d30216fd", + "modelCommit": "5e963db4fd0a65c7e4faf53ca2d4eca567c4dcfa", + "templateRevisionHash": "82918f24aaddf420da3c1213ac69779af2bf962cd2af50b33814f1eefdf14a3b", + "provenancePath": "/template-gallery/reviews/quiet_kiln_at_daybreak.retained-template-provenance.json", + "provenanceHash": "sha256:canonical-json:5d0bcf5b8c471374874d5369574666b5d2e8bcb3830728cc406bbb3ec31e4389", + "outputPath": "/template-gallery/quiet_kiln_at_daybreak.webp", + "thumbnailPath": "/template-gallery/quiet_kiln_at_daybreak.webp", + "mediaHash": "sha256:decoded-rgba:ca068453fb7c90bfc12ca67c056cddffbfa3490bc39f1415d5f9f412bf5ac5a4", + "mediaType": "image", + "verificationTimestamp": "2026-11-24T02:35:25.266Z", + "verificationStatus": "reviewed", + "qualityReviewStatus": "approved_reviewed", + "qualityReviewHash": "sha256:canonical-json:31c840d72c3da15e1cdf7b2da293f70763e9906162b5b63df893b3bfbc6a13ee", + "qualityReviewPath": "/template-gallery/reviews/quiet_kiln_at_daybreak.quality-review.json", + "reviewer": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-24T18:48:44Z", + "width": 1024, + "height": 1024, + "approvedOriginalReviewPath": "/template-gallery/reviews/quiet_kiln_at_daybreak.original-review.json", + "approvedOriginalProvenancePath": "/template-gallery/reviews/quiet_kiln_at_daybreak.original-provenance.json" + }, + { + "templateId": "restoring_the_studio_backdrop", + "templateLockHash": "tpl_cab1d671", + "promptSettingsHash": "ps_b010f09b", + "modelRevision": "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14", + "runtimeFingerprint": "sha256:stable-runtime-v1:eff380a9cf20ea04d6d66a075e51c8dc133b219275ad1bca5e8eeea6efd12ac9", + "graphHash": "sha256:canonical-graph-v1:d46308269e83807cfb33229dc47a0720e765872ff093ae7006857bb9fe382051", + "proofLockHash": "sha256:retained-template-association-v1:54736cba5af85b0a0e4ef0eeffc059fda52b08268ab02daf0b32e1e85c4dfdfa", + "backendSourceFingerprint": "sha256:backend-source-v1:1f2f7e00ce4a500ba52d5b729f43d4321af6f931125a3f266f307cf80038c12e", + "backendContractFingerprint": "sha256:backend-contract-v1:61201b43ea68d3fd347fbc374e292b5839be28f908b473bcb69f5ec1f8b87736", + "modelCommit": "451f4fe16113bff5a5d2269ed5ad43b0592e9a14", + "templateRevisionHash": "26d6762e118bc9217762cc4abeec7817586ee58fb80ef09bc3c98e32a2789472", + "provenancePath": "/template-gallery/reviews/restoring_the_studio_backdrop.retained-template-provenance.json", + "provenanceHash": "sha256:canonical-json:1ade11b207b41f29e320239d8686285c2cac80473de608ae0f1bfe849c42fd7d", + "outputPath": "/template-gallery/restoring_the_studio_backdrop.webp", + "thumbnailPath": "/template-gallery/restoring_the_studio_backdrop.webp", + "mediaHash": "sha256:decoded-rgba:85243454c34c3567069f952d068bc5b3e48ca7b87597aef858e1f92291296578", + "mediaType": "image", + "verificationTimestamp": "2026-11-23T14:17:31.827Z", + "verificationStatus": "reviewed", + "qualityReviewStatus": "approved_reviewed", + "qualityReviewHash": "sha256:canonical-json:baefa28302075a9422d66ef14238918fb00e21d7e890bee7478d6bea00050e3c", + "qualityReviewPath": "/template-gallery/reviews/restoring_the_studio_backdrop.quality-review.json", + "reviewer": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-24T18:48:44Z", + "beforePath": "/template-gallery/inputs/restoring_the_studio_backdrop.before.png", + "beforeMediaHash": "sha256:bytes:d143c4922ad498b9bd436d06df424bbff50baf023b93735b53ee401e19e4cbf1", + "afterPath": "/template-gallery/restoring_the_studio_backdrop.webp", + "width": 512, + "height": 512, + "approvedOriginalReviewPath": "/template-gallery/reviews/restoring_the_studio_backdrop.original-review.json", + "approvedOriginalProvenancePath": "/template-gallery/reviews/restoring_the_studio_backdrop.original-provenance.json", + "approvedMaskPath": "/template-gallery/inputs/restoring_the_studio_backdrop.mask.png" + }, + { + "templateId": "janus_reykjavik_travel_note", + "templateLockHash": "tpl_ffabdfb5", + "promptSettingsHash": "ps_2eede069", + "modelRevision": "deepseek-community/Janus-Pro-1B@1655280bb75959cc1cb85529a2a8b26e7016072e", + "runtimeFingerprint": "sha256:stable-runtime-v1:d8c8f37f96fe7bcc5037b76897f1e38b1de4443883ae58982e572682750f56b7", + "graphHash": "sha256:canonical-graph-v1:eb58163449468a297887a396fb270e73104cbf0a537b7a4c30a17561087d94eb", + "proofLockHash": "sha256:retained-template-association-v1:0861e8eeee2dd4788c8b3760986067673ef03017244a4fe65e701d056e10485c", + "backendSourceFingerprint": "sha256:backend-source-v1:b82eb33180a6e16431bc47381c6012c002e18b3a41b45635bef663c50f735ec3", + "backendContractFingerprint": "sha256:backend-contract-v1:bc2a2aeb1bb1fa7a545e1a1f139cc5651e1326b320efefc80afcb0e2a476433a", + "modelCommit": "1655280bb75959cc1cb85529a2a8b26e7016072e", + "templateRevisionHash": "cd73585863835d186d076de2bc4f37c36c11138376bdd2939af45290ff2c37af", + "provenancePath": "/template-gallery/reviews/janus_reykjavik_travel_note.retained-template-provenance.json", + "provenanceHash": "sha256:canonical-json:3afbda8766bd968d7a027597bee510c979f3cb259888b4edd30ccbfdb3010c42", + "outputPath": "/template-gallery/janus_reykjavik_travel_note.json", + "thumbnailPath": "/template-gallery/janus_reykjavik_travel_note.json", + "mediaHash": "sha256:canonical-json:ee32c7b9e7d512c8369de75fc9dcf8b890921784cce40a4f3ed175b1ad880a89", + "mediaType": "json", + "verificationTimestamp": "2026-11-23T17:39:26.972Z", + "verificationStatus": "reviewed", + "qualityReviewStatus": "approved_reviewed", + "qualityReviewHash": "sha256:canonical-json:bb002c9e22bef57b15e6d1e33103a5d191988b82a332ee5df19d97a0a067c34e", + "qualityReviewPath": "/template-gallery/reviews/janus_reykjavik_travel_note.quality-review.json", + "reviewer": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-24T18:48:44Z", + "approvedOriginalReviewPath": "/template-gallery/reviews/janus_reykjavik_travel_note.original-review.json", + "approvedOriginalProvenancePath": "/template-gallery/reviews/janus_reykjavik_travel_note.original-provenance.json" + }, + { + "templateId": "janus_red_triangle_caption", + "templateLockHash": "tpl_a56db7ab", + "promptSettingsHash": "ps_28ae7860", + "modelRevision": "deepseek-community/Janus-Pro-1B@1655280bb75959cc1cb85529a2a8b26e7016072e", + "runtimeFingerprint": "sha256:stable-runtime-v1:4e270d24c1b4cbcf5b0e3225b5bf8cd5c72ac24405bffc726bd8b8ccf476aed3", + "graphHash": "sha256:canonical-graph-v1:92d1160e0d3e06871c8b32b01497360e199c3a0c5bb1e69d68f81a6c651f795f", + "proofLockHash": "sha256:retained-template-association-v1:c8a5ac56ccef4aa0e6e1c20a81d48d8607d7ab0e1f618ee987bef5f2156bac7f", + "backendSourceFingerprint": "sha256:backend-source-v1:fe1a57b8e352eb66a1a26ebbff5865aaafcf5d55326c4bbcbaf2132ec75f54a8", + "backendContractFingerprint": "sha256:backend-contract-v1:d9a9f3b4b638533dd92574871ffd7944f91a74b3004a161c77b2451fd99b1a36", + "modelCommit": "1655280bb75959cc1cb85529a2a8b26e7016072e", + "templateRevisionHash": "44e68d77baa00812c4b9888835013887d523bfe990c11caec96ac426c8ca87b3", + "provenancePath": "/template-gallery/reviews/janus_red_triangle_caption.retained-template-provenance.json", + "provenanceHash": "sha256:canonical-json:a46761be16b97568f88233567f93081a26655ca25231fd672351438def552611", + "outputPath": "/template-gallery/janus_red_triangle_caption.json", + "thumbnailPath": "/template-gallery/janus_red_triangle_caption.json", + "mediaHash": "sha256:canonical-json:fd4d7721901f286e007837f419b904ea959c61dc4ba63f50d5a4d454a4e8ef21", + "mediaType": "json", + "verificationTimestamp": "2026-11-23T15:41:11.401Z", + "verificationStatus": "reviewed", + "qualityReviewStatus": "approved_reviewed", + "qualityReviewHash": "sha256:canonical-json:35e0b67a3ab682b5cd8b01d3260d98ef36d0a6c7a519d92f1bcb52f068ce0e83", + "qualityReviewPath": "/template-gallery/reviews/janus_red_triangle_caption.quality-review.json", + "reviewer": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-24T18:48:44Z", + "approvedOriginalReviewPath": "/template-gallery/reviews/janus_red_triangle_caption.original-review.json", + "approvedOriginalProvenancePath": "/template-gallery/reviews/janus_red_triangle_caption.original-provenance.json" + }, + { + "templateId": "janus_red_enamel_teapot", + "templateLockHash": "tpl_ac9c0bc5", + "promptSettingsHash": "ps_4a949eaa", + "modelRevision": "deepseek-community/Janus-Pro-1B@1655280bb75959cc1cb85529a2a8b26e7016072e", + "runtimeFingerprint": "sha256:stable-runtime-v1:d4f3136ca8c66faf48a50bb85a1fdfd1017d867fdf0c97c6f483a765f189db7e", + "graphHash": "sha256:canonical-graph-v1:fc935fef4353febb86244c65ae189e7da6bee8ad266dc6ca0d8f88b7497c4eb1", + "proofLockHash": "sha256:retained-template-association-v1:8203a09289e433bf455d76bf2b1e0f25de7da91b783ade3bd48607cc9a44add8", + "backendSourceFingerprint": "sha256:backend-source-v1:693cbe0ad6ddc5d1796f10269726b6d92a067c5ed14ea4458614797eb25c9a7c", + "backendContractFingerprint": "sha256:backend-contract-v1:eea189de4cdfe09f5055e14ff414c28400c1abd2f1f6c7d8094855c12adeefde", + "modelCommit": "1655280bb75959cc1cb85529a2a8b26e7016072e", + "templateRevisionHash": "335f3fbf1907201be05d98148bff1fb7dc68d540750b71f33812769ddfa55879", + "provenancePath": "/template-gallery/reviews/janus_red_enamel_teapot.retained-template-provenance.json", + "provenanceHash": "sha256:canonical-json:3f6a7c55db2d8451540de526a6de00d255e2efc144cf45d36484ed7ea6afd662", + "outputPath": "/template-gallery/janus_red_enamel_teapot.webp", + "thumbnailPath": "/template-gallery/janus_red_enamel_teapot.webp", + "mediaHash": "sha256:decoded-rgba:450db3fcdb61d8e231cb366f52f0b7057dfc7b0704129545331163b11ff76877", + "mediaType": "image", + "verificationTimestamp": "2026-11-23T15:46:06.879Z", + "verificationStatus": "reviewed", + "qualityReviewStatus": "approved_reviewed", + "qualityReviewHash": "sha256:canonical-json:e402768b481a454d36fcbf83bb5a223c5aacc0a3d5827f79fd89cbf8e24f3223", + "qualityReviewPath": "/template-gallery/reviews/janus_red_enamel_teapot.quality-review.json", + "reviewer": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-24T18:48:44Z", + "width": 384, + "height": 384, + "approvedOriginalReviewPath": "/template-gallery/reviews/janus_red_enamel_teapot.original-review.json", + "approvedOriginalProvenancePath": "/template-gallery/reviews/janus_red_enamel_teapot.original-provenance.json" + }, + { + "templateId": "lumina_opal_pendant_in_limestone", + "templateLockHash": "tpl_f24a6ace", + "promptSettingsHash": "ps_a3742a3f", + "modelRevision": "Alpha-VLLM/Lumina-Next-SFT-diffusers@0ee5ec90043acf5cb41fe96274af36eb7fad8d95", + "runtimeFingerprint": "sha256:stable-runtime-v1:95700292a2f22cd3123319ba6f53fcb69bbc62b2abf81f6f64180c8c16274cbc", + "graphHash": "sha256:canonical-graph-v1:029c04a5a3e933bb710937287da6cab94ef80b85a2b57c93e3002a3b6334d62f", + "proofLockHash": "sha256:retained-template-association-v1:7630abdd2bdf2938c6a13aea16a04f21ed86d65b662cbfe00edca63315af455e", + "backendSourceFingerprint": "sha256:backend-source-v1:4e964e7de84962b7d4f70d35de6904394561f9a9314ea2bd7e435a03a55af5b6", + "backendContractFingerprint": "sha256:backend-contract-v1:5429892d782af9dbc60b8c6b2762de25748a8da025a4965bb7d6e641908e47ba", + "modelCommit": "0ee5ec90043acf5cb41fe96274af36eb7fad8d95", + "templateRevisionHash": "4545f92379bc42dd213572033b19a7d37bfd24a3cf8c5eb90fb510c2e2c4c1e7", + "provenancePath": "/template-gallery/reviews/lumina_opal_pendant_in_limestone.retained-template-provenance.json", + "provenanceHash": "sha256:canonical-json:2c407c2ee24ca830ed7e7613316a92010bd112a85c4f7f0306fea6b0b2c8ee17", + "outputPath": "/template-gallery/lumina_opal_pendant_in_limestone.webp", + "thumbnailPath": "/template-gallery/lumina_opal_pendant_in_limestone.webp", + "mediaHash": "sha256:decoded-rgba:16611a99ff281d6ed596144aebfd591e066d18b879aaffc392b0029e66dce471", + "mediaType": "image", + "verificationTimestamp": "2026-11-24T16:28:31.695Z", + "verificationStatus": "reviewed", + "qualityReviewStatus": "approved_reviewed", + "qualityReviewHash": "sha256:canonical-json:ca067bd85f363317365aa4e30c4c9559ee2e1bfe4520386b9f1e81b78de9ed85", + "qualityReviewPath": "/template-gallery/reviews/lumina_opal_pendant_in_limestone.quality-review.json", + "reviewer": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-24T18:48:44Z", + "width": 1024, + "height": 1024, + "approvedOriginalReviewPath": "/template-gallery/reviews/lumina_opal_pendant_in_limestone.original-review.json", + "approvedOriginalProvenancePath": "/template-gallery/reviews/lumina_opal_pendant_in_limestone.original-provenance.json" } ] } diff --git a/scripts/bundle-budget.mjs b/scripts/bundle-budget.mjs index ed00143d..11180b3f 100644 --- a/scripts/bundle-budget.mjs +++ b/scripts/bundle-budget.mjs @@ -1,3 +1,6 @@ +// The 21 approved retained recipes add 11568/11563 startup gzip bytes. +// The measured largest chunk is 540863 bytes and startup totals 719345. +// Keep existing headroom, startup membership, and both deferred ceilings. // Saved workflow compatibility measures 514731/693216 startup gzip bytes. // Account for the measured 1204/1206-byte additions over 513527/692010. // Existing startup headroom, deferred caps, and loading boundaries stay fixed. @@ -697,7 +700,8 @@ const MAX_STARTUP_CHUNK_GZIP_BYTES = 192 + 288 + 288 + - 114; + 114 + + 11568; // Shared icons initialize in graph-vendor, avoiding an entry/lazy-panel cycle // that captured undefined tab icons and crashed cold production startup. The // Earlier startup measured 589.1 KiB. Shared Block crossing, explicit movement, @@ -958,7 +962,8 @@ const MAX_STARTUP_GZIP_BYTES = 192 + 288 + 288 + - 115; + 115 + + 11563; // Deferred surfaces are measured separately so code splitting cannot hide an // unbounded feature bundle. These ceilings leave room for the reviewed dialogs // and catalog tools while preventing either one oversized deferred chunk or diff --git a/scripts/image-full-native-template-candidates.test.mjs b/scripts/image-full-native-template-candidates.test.mjs index daf9230f..e42fe67f 100644 --- a/scripts/image-full-native-template-candidates.test.mjs +++ b/scripts/image-full-native-template-candidates.test.mjs @@ -39,6 +39,7 @@ let server, publicTemplates, candidates, builder, exactness, groups, operations, let defaults, fixture, backendCaption, backendCaptionBytes; let readiness, usagePolicies, quality; let historicalImageIds; +let approvedRetainedImageIds; const backend = path.resolve('../MoDiff'); before(async () => { @@ -62,6 +63,10 @@ before(async () => { }); const module = await server.ssrLoadModule('/src/studio/templates.ts'); publicTemplates = module.STUDIO_TEMPLATES; + const { APPROVED_RETAINED_BATCH } = await server.ssrLoadModule('/src/studio/retainedGalleryApprovedBatch.ts'); + approvedRetainedImageIds = APPROVED_RETAINED_BATCH.filter( + ({ template }) => template.example.mediaType === 'image', + ).map(({ template }) => template.id); const baseline = JSON.parse(await readFile('tests/fixtures/image-template-creator-contracts.v1.json', 'utf8')); historicalImageIds = new Set(baseline.templates.map((row) => row.templateId)); candidates = candidateIds.map((id) => module.STUDIO_TEMPLATES.find((item) => item.id === id)); @@ -153,7 +158,15 @@ test('two experimental Custom recipes extend image coverage while preserving the assert.equal(template?.example.status, 'unverified'); assert.equal(template.readinessPolicy, 'requires_input'); } - assert.equal(imageTemplates.filter(({ id }) => !retainedEdits.includes(id)).length, 69); + assert.equal( + imageTemplates.filter(({ id }) => !retainedEdits.includes(id) && !approvedRetainedImageIds.includes(id)).length, + 69, + ); + for (const id of approvedRetainedImageIds) + assert.ok( + imageTemplates.some((template) => template.id === id), + id, + ); for (const template of candidates) { assert.equal( publicTemplates.some((item) => item.id === template.id), diff --git a/scripts/modiff-template.test.mjs b/scripts/modiff-template.test.mjs index a857650a..afc1a5de 100644 --- a/scripts/modiff-template.test.mjs +++ b/scripts/modiff-template.test.mjs @@ -26,6 +26,7 @@ let outputContractsModule; let nodesStoreModule; let studioStoreModule; let templateQualityModule; +let approvedRetainedPromptById; let templateAssetsModule; let modelCacheModule; let templateExactnessModule; @@ -105,6 +106,13 @@ before(async () => { nodesStoreModule = await server.ssrLoadModule('/src/stores/useNodeStore.ts'); studioStoreModule = await server.ssrLoadModule('/src/stores/useStudioStore.ts'); templateQualityModule = await server.ssrLoadModule('/src/studio/templateQuality.ts'); + const { APPROVED_RETAINED_BATCH } = await server.ssrLoadModule('/src/studio/retainedGalleryApprovedBatch.ts'); + approvedRetainedPromptById = new Map( + APPROVED_RETAINED_BATCH.map(({ template }) => [ + template.id, + { prompt: template.prompt, negativePrompt: template.negativePrompt }, + ]), + ); templateAssetsModule = await server.ssrLoadModule('/src/studio/templateAssets.ts'); modelCacheModule = await server.ssrLoadModule('/src/studio/modelCache.ts'); templateExactnessModule = await server.ssrLoadModule('/src/studio/templateExactness.ts'); @@ -2939,6 +2947,13 @@ test('template prompt recipes are distinct, detailed, and not generic placeholde assert.ok(template.intentGroup, `${template.id} has an intent group`); assert.ok(template.recipeSummary, `${template.id} has a recipe summary`); assert.ok(template.mediaSlots?.length > 0, `${template.id} has media placeholders`); + const retained = approvedRetainedPromptById.get(template.id); + if (retained) { + // Authoring guidance must not rewrite conditioning from an approved execution. + assert.deepEqual({ prompt: template.prompt, negativePrompt: template.negativePrompt }, retained); + assert.ok(template.prompt.trim(), `${template.id} retains the recorded prompt`); + continue; + } const backendDefaultPrompt = !template.prompt && template.executionSelection?.backendDefaultInputs?.includes('prompt'); if (backendDefaultPrompt) { diff --git a/scripts/retained-gallery-provenance.mjs b/scripts/retained-gallery-provenance.mjs index 5e48f697..6a720b08 100644 --- a/scripts/retained-gallery-provenance.mjs +++ b/scripts/retained-gallery-provenance.mjs @@ -1,4 +1,5 @@ import { createHash } from 'node:crypto'; +import retainedBatchPins from '../config/retained-gallery-approved-batch.v1.json' with { type: 'json' }; import { canonicalJsonHash } from './canonical-json.mjs'; export const RETAINED_GALLERY_PROVENANCE_FORMAT = 'modiff.gallery.retained-template-provenance.v1'; @@ -88,6 +89,7 @@ const pinsByTemplate = new Map( beforeExtension: 'webp', outputExtension: 'webp', }, + ...retainedBatchPins, }), ); @@ -121,6 +123,15 @@ function encodedHash(bytes) { return Buffer.isBuffer(bytes) ? 'sha256:bytes:' + createHash('sha256').update(bytes).digest('hex') : null; } +export function verifyRetainedApprovedFiles(approvedFiles, readAsset) { + for (const { path, bytes, sha256 } of Object.values(approvedFiles)) { + const stored = readAsset(path); + if (stored?.length !== bytes || encodedHash(stored) !== 'sha256:bytes:' + sha256) { + throw new Error('A retained Gallery file differs from the exact approved bytes.'); + } + } +} + // The normal Gallery verifier still checks the decoded output, full sidecar // hash and quality rubric. This branch establishes the retained run bindings // against the current catalog and the encoded bytes that were approved. @@ -169,6 +180,7 @@ export function validateRetainedGalleryProvenance(bundle, entry, { templateRevis beforeMediaHash: output.inputEncodedSha256, width: pins.outputSize?.width, height: pins.outputSize?.height, + ...Object.fromEntries(Object.entries(association.approvedFiles ?? {}).map(([field, ref]) => [field, ref.path])), }; const errors = Object.entries(expected) .filter(([field, value]) => entry[field] !== value) diff --git a/scripts/retained-gallery-release.mjs b/scripts/retained-gallery-release.mjs index 637ab1d6..5c64171e 100644 --- a/scripts/retained-gallery-release.mjs +++ b/scripts/retained-gallery-release.mjs @@ -6,7 +6,7 @@ import { galleryVerificationScope, validateQualityReview, } from './template-gallery-harness.mjs'; -import { validateRetainedGalleryProvenance } from './retained-gallery-provenance.mjs'; +import { validateRetainedGalleryProvenance, verifyRetainedApprovedFiles } from './retained-gallery-provenance.mjs'; const same = (actual, expected, label) => assert.deepEqual(actual, expected, label); @@ -15,7 +15,7 @@ function assertRetainedNativeIdentity(association, entry, nativeReceipt, label) const expected = { sourceTemplateId: association.nativeSourceTaskContractId, workflowId: association.workflowId, - proofKind: 'real_backend_input_bound_model_variant', + proofKind: association.nativeProofKind ?? 'real_backend_input_bound_model_variant', capturedAt: entry.verificationTimestamp, backendSourceFingerprint: entry.backendSourceFingerprint, canonicalWorkflowHash: association.originalCanonicalWorkflowHash, @@ -33,6 +33,41 @@ function assertRetainedNativeIdentity(association, entry, nativeReceipt, label) same(actual, expected, label); } +function assertRetainedBatchEvidence({ recipe, sourceWorkflow, association, entry, nativeReceipt }) { + assert.equal(association.originalCanonicalWorkflowHash, sourceWorkflow.contract.graphHash); + assert.equal(association.originalEvidenceSha256, recipe.originalReceiptSha256); + assert.equal(association.originalGraphHash, recipe.retainedGraphHash); + assert.equal(association.originalResourceCandidateId, null); + assert.equal(association.originalTemplateLockHash, null); + assert.equal(association.observedExecution.backendContractFingerprint, entry.backendContractFingerprint); + assert.equal(association.observedExecution.observationLimits.physicalPlatformQualification, false); + assert.equal(association.review.redistributionConfirmed, true); + assert.equal(association.approvedFiles.approvedOriginalReviewPath.sha256, association.review.draftReviewSha256); + assert.equal( + association.approvedFiles.approvedOriginalProvenancePath.sha256, + association.review.draftProvenanceSha256, + ); + const inputHash = + association.output.inputEncodedSha256?.replace(/^sha256:bytes:/u, '') ?? association.privateSourceSha256; + assert.equal(inputHash, recipe.inputSha256); + assert.equal(association.approvedFiles.approvedMaskPath?.sha256, recipe.maskSha256); + assert.equal( + association.output.maskEncodedSha256, + recipe.maskSha256 ? 'sha256:bytes:' + recipe.maskSha256 : undefined, + ); + if (!nativeReceipt) return; + const label = 'Published Gallery batch proof differs from the verified native receipt.'; + assertRetainedNativeIdentity(association, entry, nativeReceipt, label); + assert.equal(nativeReceipt.canonicalDefaultsExecuted, false, label); + assert.equal(nativeReceipt.backendContractFingerprint, entry.backendContractFingerprint, label); + assert.equal(nativeReceipt.promptBinding.sha256, recipe.promptSha256, label); + assert.equal(nativeReceipt.inputBinding?.sha256, recipe.inputSha256, label); + assert.equal(nativeReceipt.maskBinding?.sha256, recipe.maskSha256, label); + if (association.output.mediaType === 'image') { + assert.equal(nativeReceipt.decodedOutput.hash, association.output.decodedMediaHash, label); + } +} + function assertRetainedSpandrelEvidence({ recipe, sourceWorkflow, association, entry, nativeReceipt }) { const { observedExecution, output } = association; const { modelArtifact, observationLimits } = observedExecution; @@ -160,6 +195,10 @@ export function createRetainedGalleryReleaseReader({ clientRoot, source, registr if (association.recipeObservation) { assertRetainedTechnicalRecipe({ recipe, sourceWorkflow, association, entry, nativeReceipt }); } + if (association.approvedFiles) { + assertRetainedBatchEvidence({ recipe, sourceWorkflow, association, entry, nativeReceipt }); + verifyRetainedApprovedFiles(association.approvedFiles, open); + } if (localAssociation) { const { originalTaskId, ...redacted } = localAssociation; same(association, redacted, 'Published Gallery proof differs from the locally revalidated saved run.'); diff --git a/scripts/retained-gallery-release.test.mjs b/scripts/retained-gallery-release.test.mjs index ea2eff98..05956607 100644 --- a/scripts/retained-gallery-release.test.mjs +++ b/scripts/retained-gallery-release.test.mjs @@ -6,11 +6,39 @@ import { test } from 'node:test'; import { canonicalJsonHash } from './canonical-json.mjs'; import { canonicalWorkflowContract } from './release-contract-core.mjs'; import { createRetainedGalleryReleaseReader, verifiedRetainedGalleryAssetIndex } from './retained-gallery-release.mjs'; -import { validateRetainedGalleryProvenance } from './retained-gallery-provenance.mjs'; +import { createHash } from 'node:crypto'; +import { validateRetainedGalleryProvenance, verifyRetainedApprovedFiles } from './retained-gallery-provenance.mjs'; import { loadTemplateRuntime } from './template-gallery-harness.mjs'; const hash = (value) => `sha256:canonical-json:${canonicalJsonHash(value)}`; +test('retained registration binds the exact approved review, provenance and mask files', () => { + const archive = new Map([ + ['/template-gallery/reviews/example.original-review.json', Buffer.from('{"review":"accepted"}\n')], + ['/template-gallery/reviews/example.original-provenance.json', Buffer.from('{"source":"saved run"}\n')], + ['/template-gallery/inputs/example.mask.png', Buffer.from('original mask bytes')], + ]); + const approved = Object.fromEntries( + [...archive].map(([path, bytes], index) => [ + index, + { path, bytes: bytes.length, sha256: createHash('sha256').update(bytes).digest('hex') }, + ]), + ); + assert.doesNotThrow(() => verifyRetainedApprovedFiles(approved, (path) => archive.get(path))); + for (const [path, bytes] of archive) { + const changed = Buffer.from(bytes); + changed[0] ^= 1; + assert.throws( + () => verifyRetainedApprovedFiles(approved, (key) => (key === path ? changed : archive.get(key))), + /exact approved bytes/u, + ); + assert.throws( + () => verifyRetainedApprovedFiles(approved, (key) => (key === path ? undefined : archive.get(key))), + /exact approved bytes/u, + ); + } +}); + function fixture(t) { const root = mkdtempSync(join(tmpdir(), 'retained-gallery-release-')); t.after(() => rmSync(root, { recursive: true, force: true })); diff --git a/scripts/retained-gallery-templates.test.mjs b/scripts/retained-gallery-templates.test.mjs index fa091409..80e196e2 100644 --- a/scripts/retained-gallery-templates.test.mjs +++ b/scripts/retained-gallery-templates.test.mjs @@ -13,7 +13,7 @@ import { selectCanonicalWorkflowSources } from './workflow-library-manifest-stat const client = resolve(import.meta.dirname, '..'); const backend = resolve(process.env.MODIFF_BACKEND_DIR || join(client, '../MoDiff')); const sha256 = (bytes) => createHash('sha256').update(bytes).digest('hex'); -let server, recipes, fixture, studio, flow, nodeStore, graphBridge, published, exactness; +let server, recipes, fixture, studio, flow, nodeStore, graphBridge, published, exactness, approvedBatchIds; before(async () => { const storage = new Map(); @@ -38,6 +38,8 @@ before(async () => { appType: 'custom', }); ({ RETAINED_GALLERY_TEMPLATES: recipes } = await server.ssrLoadModule('/src/studio/retainedGalleryTemplates.ts')); + const { APPROVED_RETAINED_BATCH } = await server.ssrLoadModule('/src/studio/retainedGalleryApprovedBatch.ts'); + approvedBatchIds = new Set(APPROVED_RETAINED_BATCH.map(({ template }) => template.id)); ({ STUDIO_TEMPLATES: published } = await server.ssrLoadModule('/src/studio/templates.ts')); exactness = await server.ssrLoadModule('/src/studio/templateExactness.ts'); ({ useStudioStore: studio } = await server.ssrLoadModule('/src/stores/useStudioStore.ts')); @@ -146,7 +148,33 @@ test('retained Gallery recipes preserve the native graph identities and standalo ...skeletons.find(({ id }) => id === recipe.sourceTaskTemplateId), taskContract: true, }); - if (recipe.inputLocatorSha256) { + if (approvedBatchIds.has(template.id)) { + const evidenceRoot = join( + backend, + 'data/qualification/release/canonical-workflow-evidence', + recipe.originalReceiptSha256, + ); + const evidenceFile = join(evidenceRoot, 'evidence.json'); + assert.equal(sha256(template.prompt), recipe.promptSha256); + if (existsSync(evidenceFile)) { + const bytes = readFileSync(evidenceFile); + assert.equal(sha256(bytes), recipe.originalReceiptSha256); + const descriptor = JSON.parse(bytes); + const capture = descriptor.capture + ? JSON.parse(readCanonicalEvidenceFile(evidenceRoot, descriptor.capture).bytes) + : descriptor; + const saved = JSON.parse(readCanonicalEvidenceFile(evidenceRoot, capture.creatorPackage).bytes); + const api = flow.getState().exportGraph('retained-batch-check', undefined, { + sourceGraph: saved.graph, + randomizeSeeds: false, + }); + assert.equal(canonicalGraphIdentity(api).hash, recipe.retainedGraphHash, template.id); + assert.deepEqual( + capture.inputs.map(({ file }) => file.sha256), + [recipe.inputSha256, recipe.maskSha256].filter(Boolean), + ); + } + } else if (recipe.inputLocatorSha256) { const evidenceRoot = join( backend, 'data/qualification/release/canonical-workflow-evidence', @@ -199,7 +227,7 @@ test('fresh Expert recipes prepare with current backend specs and without a gene flow.getState().setParam(payload.node, 'pipeline', { direction: 'output', value: contract }, 'signal'); } else { assert.equal(payload.fn, 'update_image_contract'); - assert.ok(['PredictMap', 'Edit'].includes(payload.action)); + assert.ok(['PredictMap', 'Edit', 'Generate', 'Inpaint'].includes(payload.action)); assert.deepEqual(payload.values.image_contract, contract); } return Response.json({ error: false, nodes: [] }); @@ -216,9 +244,17 @@ test('fresh Expert recipes prepare with current backend specs and without a gene contract = imageContract; const inputBinding = template.inputBindings?.[0]; const audio = inputBinding?.mediaType === 'audio'; - const input = recipe.inputSha256 ? [recipe.inputFileName ?? authorsAudioFixture] : []; + const input = recipe.inputSha256 + ? [recipe.inputFileName ?? (audio ? authorsAudioFixture : 'review-source-image.png')] + : []; + const mask = recipe.maskSha256 ? 'review-mask-image.png' : undefined; const tabId = studio.getState().createWorkflowTab(template.label, undefined, 'template', template.id); - studio.getState().applyTemplate(template, audio ? { sourceAudio: input[0] } : { referenceImages: input }); + studio + .getState() + .applyTemplate( + template, + audio ? { sourceAudio: input[0] } : { referenceImages: input, ...(mask && { maskImage: mask }) }, + ); const form = studio.getState().form; assert.equal(form.device, 'cuda:0'); assert.equal(form.resourceMode, 'expert'); @@ -262,6 +298,31 @@ test('fresh Expert recipes prepare with current backend specs and without a gene assert.equal(loader.params.revision.value, template.modelArtifact.revision); assert.equal(loader.params.dtype.value, template.example.lockedSettings.dtype ?? 'float32'); assert.equal(loader.params.device.value, 'cuda:0'); + if (approvedBatchIds.has(template.id)) { + const actions = Object.values(api.nodes); + const generation = actions.find(({ action }) => + ['Generate', 'Edit', 'Inpaint', 'GenerateAnyToAny'].includes(action), + ); + assert.equal(generation.params.prompt.value, template.prompt); + const locked = template.example.lockedSettings; + if (generation.action !== 'GenerateAnyToAny') { + for (const [field, control] of [ + ['width', 'width'], + ['height', 'height'], + ['num_inference_steps', 'steps'], + ['guidance_scale', 'guidanceScale'], + ]) { + assert.equal(generation.params[field].value, locked[control], `${template.id} ${control}`); + } + assert.equal(Number(generation.params.seed.value), template.example.lockedSeed); + assert.equal(loader.params.quantization_mode.value, 'none'); + } + const sources = actions.filter(({ module, action }) => module === 'modules.Image' && action === 'Load'); + assert.equal(sources.length, input.length + Number(Boolean(mask))); + if (input.length) assert.ok(sources.some(({ params }) => params.file.value?.includes(input[0]))); + if (mask) assert.ok(sources.some(({ params }) => params.file.value?.includes(mask))); + continue; + } if (audio) { const source = api.nodes[binding.nodes.loadAudio]; // The interactive file picker supplies a local locator. The retained diff --git a/scripts/template-gallery-harness.test.mjs b/scripts/template-gallery-harness.test.mjs index 11ed554f..5d4bdc6b 100644 --- a/scripts/template-gallery-harness.test.mjs +++ b/scripts/template-gallery-harness.test.mjs @@ -1110,9 +1110,9 @@ test('public provenance redacts removable Linux mounts while retaining public an }); test('gallery harness loads all Studio templates from the TypeScript runtime', () => { - assert.equal(runtime.templates.length, 98); + assert.equal(runtime.templates.length, 119); const ids = new Set(runtime.templates.map((template) => template.id)); - assert.equal(ids.size, 98); + assert.equal(ids.size, 119); assert.ok(ids.has('whisper_tiny_blue_cup_transcription')); assert.ok(ids.has('wav2vec2_station_announcement')); assert.ok(ids.has('lcm_dawn_alpine_lake')); diff --git a/scripts/template-quality.test.mjs b/scripts/template-quality.test.mjs index d03b760a..ba60415f 100644 --- a/scripts/template-quality.test.mjs +++ b/scripts/template-quality.test.mjs @@ -9,6 +9,7 @@ const ROOT = path.resolve(path.dirname(fileURLToPath(import.meta.url)), '..'); let server; let qualityModule; let templatesModule; +let retainedRecipeIds; before(async () => { server = await createServer({ @@ -24,6 +25,8 @@ before(async () => { }); qualityModule = await server.ssrLoadModule('/src/studio/templateQuality.ts'); templatesModule = await server.ssrLoadModule('/src/studio/templates.ts'); + const { APPROVED_RETAINED_BATCH } = await server.ssrLoadModule('/src/studio/retainedGalleryApprovedBatch.ts'); + retainedRecipeIds = new Set(APPROVED_RETAINED_BATCH.map(({ template }) => template.id)); }); after(async () => { @@ -161,6 +164,9 @@ test('the complete catalog audits authored prompts and reports backend defaults } const failures = audits .filter((audit) => !audit.passed && audit.promptResolution !== 'unresolved_backend_default') + // Retained recipes keep the approved conditioning byte for byte. Their + // media, prompt and settings bindings are verified by the retained tests. + .filter(({ templateId }) => !retainedRecipeIds.has(templateId)) .map((audit) => `${audit.templateId}: ${audit.issues.map((issue) => issue.message).join(' | ')}`); assert.deepEqual(failures, []); diff --git a/src/studio/retainedGalleryApprovedBatch.ts b/src/studio/retainedGalleryApprovedBatch.ts new file mode 100644 index 00000000..a885ce4b --- /dev/null +++ b/src/studio/retainedGalleryApprovedBatch.ts @@ -0,0 +1,1683 @@ +import type { RetainedGalleryRecipe } from './retainedGalleryTemplates'; + +export const APPROVED_RETAINED_BATCH: RetainedGalleryRecipe[] = [ + { + workflowId: 'StableDiffusionPipeline:edit_image', + sourceTaskTemplateId: 'task-template:sd15-base:edit-image:v1', + retainedGraphHash: 'sha256:canonical-graph-v1:e5a47286938233b67cc7bec938b43449fdbf4dd46a028f200cce4471158267e2', + originalReceiptSha256: 'ce72fd7e5d5f263f68f94ae15778a596a3161c38c0f4092531f0c719b78667d8', + reviewedTemplateSha256: '81ebe61010abc66045694e149989c24310c3a181d46fab2b644ac0a0bafffcae', + reviewedCatalogLock: { + templateLockHash: 'tpl_8c19d0a7', + galleryTemplateLockHash: 'tpl_0816c26c', + promptSettingsHash: 'ps_9f1fefe2', + }, + promptSha256: '8aeb1e7983a533609ac97ac6366f042be91fc806047b8e0cfe251abef9accaf1', + inputSha256: '88290a96bc8d52f11f2d1e3c0c0e04c2027661816e54b57d7d4739d731ca1e75', + inputLocatorSha256: 'b7e9b68e47a60f438c82f778b960f66d58d319de50749d453a9aa0c30c4df45a', + template: { + id: 'alpine_lake_in_oils', + label: 'Stable Diffusion 1.5 — Edit image: Alpine Lake in Oils', + mode: 'edit_image', + modelType: 'StableDiffusionPipeline', + intentGroup: 'edit_image', + category: 'edit', + inputBindings: [ + { + id: 'source-image', + label: 'Source image', + mediaType: 'image', + origin: 'user', + requiredAt: 'workflow_start', + field: 'referenceImages', + count: 1, + }, + ], + outputKinds: ['image'], + readinessPolicy: 'requires_input', + modelArtifact: { + source: 'hub', + value: 'stable-diffusion-v1-5/stable-diffusion-v1-5', + revision: '451f4fe16113bff5a5d2269ed5ad43b0592e9a14', + }, + description: + 'Reproduce the reviewed Alpine Lake in Oils example with the saved prompt, settings and model revision.', + prompt: + 'A small hand-painted alpine landscape in thick impasto oil paint, palette-knife strokes and a clearly visible linen canvas texture. A central dark green larch stands on a pale rocky islet, with blue and snowy mountain shapes behind it and a still emerald glacial lake below. Build the scene from broad overlapping patches of cobalt, white and teal, deliberately textured and visibly brush-painted. Noon light, coherent reflection, square fine art study.', + negativePrompt: '', + example: { + mediaType: 'image', + status: 'unverified', + modelRevision: '451f4fe16113bff5a5d2269ed5ad43b0592e9a14', + lockedSeed: 42, + lockedSettings: { + width: 512, + height: 512, + steps: 30, + guidanceScale: 7.5, + strength: 0.8, + outputType: 'pil', + maxSequenceLength: 512, + dtype: 'float32', + resourceMode: 'expert', + quantizationMode: 'none', + autoOffload: false, + offloadMode: 'none', + }, + expectedOutput: { + width: 1024, + height: 1024, + }, + runtimeEstimate: '30.28 seconds in the saved run', + }, + requiredBackendCapabilities: [ + 'modules.DiffusersImage.Edit', + 'modules.DiffusersImage.LoadPipeline', + 'modules.DiffusersRuntime.PipelineQuantizationConfigV2', + 'modules.DiffusersRuntime.DiffusersExecutionRecipe', + 'modules.Image.Load', + 'modules.Image.Preview', + ], + mediaSlots: [ + { + id: 'before', + label: 'Source image', + kind: 'comparison_before', + role: 'before', + placeholder: 'Source pending', + }, + { + id: 'after', + label: 'Generated image', + kind: 'comparison_after', + role: 'after', + placeholder: 'Preview pending', + }, + ], + thumbnailVariant: 'compareSlider', + recipeSummary: + 'Reproduce the reviewed Alpine Lake in Oils example with the saved prompt, settings and model revision.', + runtimeReuseKey: 'sha256:canonical-graph-v1:e5a47286938233b67cc7bec938b43449fdbf4dd46a028f200cce4471158267e2', + }, + }, + { + workflowId: 'ErnieImagePipeline:text_to_image', + sourceTaskTemplateId: 'task-template:ernie-image-turbo:text-to-image:v1', + retainedGraphHash: 'sha256:canonical-graph-v1:f12eab7de9d1be025dee6d2466013865b35a67d145813a1faf68c1e4d0ff034c', + originalReceiptSha256: '45f9a07cbd540055ad63000eb928be4a1b685c4b622bf46b84c98784e2c61139', + reviewedTemplateSha256: '160e77d5c28132522b0cbf5f3102b812a4e8be9eff09f321db0c5853905cab5e', + reviewedCatalogLock: { + templateLockHash: 'tpl_502a4ae7', + galleryTemplateLockHash: 'tpl_14707aaf', + promptSettingsHash: 'ps_cf9a00e5', + }, + promptSha256: '767ac6934d73853bdb2b07521107727f936eec375361a0eba6dd64dfc5a1b63d', + template: { + id: 'bookshop_at_blue_hour', + label: 'ERNIE Image Turbo — Text to image: Bookshop at Blue Hour', + mode: 'text_to_image', + modelType: 'ErnieImagePipeline', + intentGroup: 'generate_image', + category: 'concept', + inputBindings: [], + outputKinds: ['image'], + readinessPolicy: 'runnable', + modelArtifact: { + source: 'hub', + value: 'baidu/ERNIE-Image-Turbo', + revision: 'bc68c81e2a1730a394d5fc9fae70713dee940140', + }, + description: + 'Reproduce the reviewed Bookshop at Blue Hour example with the saved prompt, settings and model revision.', + prompt: + 'Night photograph of a small independent bookstore on a narrow brick lane. A warm reading lamp glows behind the tall front window. Outside, a burgundy bicycle leans against the wall, two wheels visible in side profile. Rain-dark bricks, old plaster, reflections on cobblestones, clear warm window light against cool night shadows.', + negativePrompt: '', + example: { + mediaType: 'image', + status: 'unverified', + modelRevision: 'bc68c81e2a1730a394d5fc9fae70713dee940140', + lockedSeed: 42, + lockedSettings: { + width: 1024, + height: 1024, + steps: 8, + guidanceScale: 1, + strength: 0.8, + outputType: 'pil', + maxSequenceLength: 2048, + dtype: 'bfloat16', + resourceMode: 'expert', + quantizationMode: 'none', + autoOffload: true, + offloadMode: 'model_cpu', + }, + expectedOutput: { + width: 1024, + height: 1024, + }, + runtimeEstimate: '101.84 seconds in the saved run', + }, + requiredBackendCapabilities: [ + 'modules.DiffusersImage.Generate', + 'modules.DiffusersImage.LoadPipeline', + 'modules.DiffusersRuntime.PipelineQuantizationConfigV2', + 'modules.DiffusersRuntime.DiffusersExecutionRecipe', + 'modules.Image.Preview', + ], + mediaSlots: [ + { + id: 'result', + label: 'Generated image', + kind: 'image', + role: 'output', + placeholder: 'Result pending', + }, + ], + recipeSummary: + 'Reproduce the reviewed Bookshop at Blue Hour example with the saved prompt, settings and model revision.', + runtimeReuseKey: 'sha256:canonical-graph-v1:f12eab7de9d1be025dee6d2466013865b35a67d145813a1faf68c1e4d0ff034c', + }, + }, + { + workflowId: 'OvisImagePipeline:text_to_image', + sourceTaskTemplateId: 'task-template:ovis-image-7b:text-to-image:v1', + retainedGraphHash: 'sha256:canonical-graph-v1:12380dcafddc7153ecd5f02ced0b95c58031228dc7825e3914f22dae90489999', + originalReceiptSha256: '37580a349097d0a2e201a6daa48f3cc541c62260306e4153c4995e2d0615a72c', + reviewedTemplateSha256: 'a113786c4f56e30b9f8c024d9e71abd7e84419b59bafe097bee8cd40b7074687', + reviewedCatalogLock: { + templateLockHash: 'tpl_3f0f58ac', + galleryTemplateLockHash: 'tpl_3ba52cb2', + promptSettingsHash: 'ps_1e317563', + }, + promptSha256: '0250d3ccd73f7db3eabae81abe1590befc673f4bc9e68506c134c84a6a3ff1a8', + template: { + id: 'flowers_after_rain', + label: 'Ovis Image 7B — Text to image: Flowers After Rain', + mode: 'text_to_image', + modelType: 'OvisImagePipeline', + intentGroup: 'generate_image', + category: 'concept', + inputBindings: [], + outputKinds: ['image'], + readinessPolicy: 'runnable', + modelArtifact: { + source: 'hub', + value: 'ATH-MaaS/Ovis-Image-7B', + revision: '41be1c5821a92c970d63d7eb595a2fd3fe32b22e', + }, + description: + 'Reproduce the reviewed Flowers After Rain example with the saved prompt, settings and model revision.', + prompt: + 'Editorial photograph of a quiet old-town flower stall just after rain, early morning. A single bundle of pale pink tulips in a tall ribbed galvanized bucket beside one short brown ceramic vase with yellow narcissus. Pale blue painted folding shop door behind the flowers, dark wet stone underfoot, reflected blue near the door. Low three-quarter perspective, diffuse window light, realistic petal texture and tiny droplets, crisp front flowers, softly blurred deep alley in the upper corner. Natural hand-crafted setting, no signs or labels.', + negativePrompt: '', + example: { + mediaType: 'image', + status: 'unverified', + modelRevision: '41be1c5821a92c970d63d7eb595a2fd3fe32b22e', + lockedSeed: 42, + lockedSettings: { + width: 1024, + height: 1024, + steps: 50, + guidanceScale: 5, + strength: 0.8, + outputType: 'pil', + maxSequenceLength: 256, + dtype: 'bfloat16', + resourceMode: 'expert', + quantizationMode: 'none', + autoOffload: true, + offloadMode: 'model_cpu', + }, + expectedOutput: { + width: 1024, + height: 1024, + }, + runtimeEstimate: '264.86 seconds in the saved run', + }, + requiredBackendCapabilities: [ + 'modules.DiffusersImage.Generate', + 'modules.DiffusersImage.LoadPipeline', + 'modules.DiffusersRuntime.PipelineQuantizationConfigV2', + 'modules.DiffusersRuntime.DiffusersExecutionRecipe', + 'modules.Image.Preview', + ], + mediaSlots: [ + { + id: 'result', + label: 'Generated image', + kind: 'image', + role: 'output', + placeholder: 'Result pending', + }, + ], + recipeSummary: + 'Reproduce the reviewed Flowers After Rain example with the saved prompt, settings and model revision.', + runtimeReuseKey: 'sha256:canonical-graph-v1:12380dcafddc7153ecd5f02ced0b95c58031228dc7825e3914f22dae90489999', + }, + }, + { + workflowId: 'GlmImagePipeline:text_to_image', + sourceTaskTemplateId: 'task-template:glm-image:text-to-image:v1', + retainedGraphHash: 'sha256:canonical-graph-v1:ff052e8de129d2eef0f849f457336a1dfce83bd0b7443e1dc5802d0608e0781e', + originalReceiptSha256: '193b411fea187862b1af32edf24623f0cfd75a9f0d856a66b07fe99b1e562833', + reviewedTemplateSha256: '6a6e34ea5e9b0dec925e0ce13a0422fc00c65754f867c44e3105bfdb9d03c305', + reviewedCatalogLock: { + templateLockHash: 'tpl_8cbb3432', + galleryTemplateLockHash: 'tpl_be9fadb4', + promptSettingsHash: 'ps_975f83ff', + }, + promptSha256: 'e4e5455d0f55ea6ae1f3061bdb8462de4ddffa2a230462a2010ebd3d443b1f50', + template: { + id: 'forest_ferns', + label: 'GLM-Image — Text to image: Forest Ferns', + mode: 'text_to_image', + modelType: 'GlmImagePipeline', + intentGroup: 'generate_image', + category: 'concept', + inputBindings: [], + outputKinds: ['image'], + readinessPolicy: 'runnable', + modelArtifact: { + source: 'hub', + value: 'zai-org/GLM-Image', + revision: '2c433cc0cbc293bde2ac8ca9624f279b5d23fcf4', + }, + description: 'Reproduce the reviewed Forest Ferns example with the saved prompt, settings and model revision.', + prompt: + 'A flat, unframed botanical exhibition print on ivory cotton paper, photographed square-on in even light. At the top, one wide line of large dark green block letters reads "FOREST FERNS". This is the sole line of lettering on the print. Beneath it, a centered hand-engraved specimen shows three graceful fern fronds with individual leaflets and curled fiddleheads, printed in a single forest-green ink. The bottom quarter is open ivory paper. There is generous open space between the title and the illustration. Dry letterpress texture and precise natural shapes.', + negativePrompt: '', + example: { + mediaType: 'image', + status: 'unverified', + modelRevision: '2c433cc0cbc293bde2ac8ca9624f279b5d23fcf4', + lockedSeed: 42, + lockedSettings: { + width: 1024, + height: 1024, + steps: 50, + guidanceScale: 1.5, + strength: 0.8, + outputType: 'pil', + maxSequenceLength: 2048, + dtype: 'bfloat16', + resourceMode: 'expert', + quantizationMode: 'none', + autoOffload: true, + offloadMode: 'model_cpu', + }, + expectedOutput: { + width: 1024, + height: 1024, + }, + runtimeEstimate: '512.24 seconds in the saved run', + }, + requiredBackendCapabilities: [ + 'modules.DiffusersImage.Generate', + 'modules.DiffusersImage.LoadPipeline', + 'modules.DiffusersRuntime.PipelineQuantizationConfigV2', + 'modules.DiffusersRuntime.DiffusersExecutionRecipe', + 'modules.Image.Preview', + ], + mediaSlots: [ + { + id: 'result', + label: 'Generated image', + kind: 'image', + role: 'output', + placeholder: 'Result pending', + }, + ], + recipeSummary: 'Reproduce the reviewed Forest Ferns example with the saved prompt, settings and model revision.', + runtimeReuseKey: 'sha256:canonical-graph-v1:ff052e8de129d2eef0f849f457336a1dfce83bd0b7443e1dc5802d0608e0781e', + }, + }, + { + workflowId: 'CogView3PlusPipeline:text_to_image', + sourceTaskTemplateId: 'task-template:cogview3-plus-3b:text-to-image:v1', + retainedGraphHash: 'sha256:canonical-graph-v1:063bf00e554a6d90e9fab896c09f23b976d423fc4c82da89c7471ac21a81eb57', + originalReceiptSha256: '19c1e125e259b8b0e22a5bf5c03ab7c105a8302fc69b7e63c61796d7b7496744', + reviewedTemplateSha256: 'b5e4c8446f01030c05a206290d9ed0c1e5035cd3110f0fb6a9e6e3c416ad5177', + reviewedCatalogLock: { + templateLockHash: 'tpl_791ad974', + galleryTemplateLockHash: 'tpl_f93a2d5c', + promptSettingsHash: 'ps_f36e5dd5', + }, + promptSha256: '2483828af4f90e3e8b07e47b32c754c7970b1f30c4e8cfbd0c4a0e66f6b987f3', + template: { + id: 'ochre_paper_pavilion', + label: 'CogView3 Plus 3B — Text to image: Ochre Paper Pavilion', + mode: 'text_to_image', + modelType: 'CogView3PlusPipeline', + intentGroup: 'generate_image', + category: 'concept', + inputBindings: [], + outputKinds: ['image'], + readinessPolicy: 'runnable', + modelArtifact: { + source: 'hub', + value: 'zai-org/CogView3-Plus-3B', + revision: '5d70e40732ac0efac98524c51a7fa9c82707f1e5', + }, + description: + 'Reproduce the reviewed Ochre Paper Pavilion example with the saved prompt, settings and model revision.', + prompt: + 'A single piece of thick ochre paper folded into a small triangular pavilion, standing on a dark indigo tabletop. The pavilion has two clear sloping paper planes and a simple triangular opening facing the camera. A narrow beam of late afternoon light from the left reveals the matte paper fibres and casts one long crisp shadow to the right. Low three-quarter view, deep indigo background, a finely crafted architectural paper study, one object in a spacious square composition.', + negativePrompt: '', + example: { + mediaType: 'image', + status: 'unverified', + modelRevision: '5d70e40732ac0efac98524c51a7fa9c82707f1e5', + lockedSeed: 42, + lockedSettings: { + width: 1024, + height: 1024, + steps: 50, + guidanceScale: 7, + strength: 0.8, + outputType: 'pil', + maxSequenceLength: 224, + dtype: 'bfloat16', + resourceMode: 'expert', + quantizationMode: 'none', + autoOffload: true, + offloadMode: 'model_cpu', + }, + expectedOutput: { + width: 1024, + height: 1024, + }, + runtimeEstimate: '225.07 seconds in the saved run', + }, + requiredBackendCapabilities: [ + 'modules.DiffusersImage.Generate', + 'modules.DiffusersImage.LoadPipeline', + 'modules.DiffusersRuntime.PipelineQuantizationConfigV2', + 'modules.DiffusersRuntime.DiffusersExecutionRecipe', + 'modules.Image.Preview', + ], + mediaSlots: [ + { + id: 'result', + label: 'Generated image', + kind: 'image', + role: 'output', + placeholder: 'Result pending', + }, + ], + recipeSummary: + 'Reproduce the reviewed Ochre Paper Pavilion example with the saved prompt, settings and model revision.', + runtimeReuseKey: 'sha256:canonical-graph-v1:063bf00e554a6d90e9fab896c09f23b976d423fc4c82da89c7471ac21a81eb57', + }, + }, + { + workflowId: 'CogView4Pipeline:text_to_image', + sourceTaskTemplateId: 'task-template:cogview4-6b:text-to-image:v1', + retainedGraphHash: 'sha256:canonical-graph-v1:0870e1b5d6c05b496e120e383bc7c13c4fe1705efc5d918466900b9e906288d8', + originalReceiptSha256: '7cb177ef1dac774f3cb76c3f58cf246fbdbf7673a78e379ff54e7fba5fa1a85f', + reviewedTemplateSha256: 'c3c7aada8d0fc7bec8c4067c9c88fbb03d5210ee9f6412d1d5984b21879ab886', + reviewedCatalogLock: { + templateLockHash: 'tpl_13cc85b1', + galleryTemplateLockHash: 'tpl_57a6868c', + promptSettingsHash: 'ps_5d56d1da', + }, + promptSha256: '18d76f8a51049a51ea77cf436170824bf445ae8fa572893ee930ae11924d49d6', + template: { + id: 'quiet_current', + label: 'CogView4 6B — Text to image: Quiet Current', + mode: 'text_to_image', + modelType: 'CogView4Pipeline', + intentGroup: 'generate_image', + category: 'concept', + inputBindings: [], + outputKinds: ['image'], + readinessPolicy: 'runnable', + modelArtifact: { + source: 'hub', + value: 'zai-org/CogView4-6B', + revision: '63a52b7f6dace7033380cd6da14d0915eab3e6b5', + }, + description: 'Reproduce the reviewed Quiet Current example with the saved prompt, settings and model revision.', + prompt: + 'Front-facing editorial photograph of an original handmade concert poster on warm cream paper. Exact large title "QUIET CURRENT" above simple navy blue wave shapes. Small date "08 MAY" centered below, crisp letterpress, subtle paper fibers, legible dark ink.', + negativePrompt: '', + example: { + mediaType: 'image', + status: 'unverified', + modelRevision: '63a52b7f6dace7033380cd6da14d0915eab3e6b5', + lockedSeed: 42, + lockedSettings: { + width: 1024, + height: 1024, + steps: 50, + guidanceScale: 3.5, + strength: 0.8, + outputType: 'pil', + maxSequenceLength: 1024, + dtype: 'bfloat16', + resourceMode: 'expert', + quantizationMode: 'none', + autoOffload: true, + offloadMode: 'model_cpu', + }, + expectedOutput: { + width: 1024, + height: 1024, + }, + runtimeEstimate: '326.29 seconds in the saved run', + }, + requiredBackendCapabilities: [ + 'modules.DiffusersImage.Generate', + 'modules.DiffusersImage.LoadPipeline', + 'modules.DiffusersRuntime.PipelineQuantizationConfigV2', + 'modules.DiffusersRuntime.DiffusersExecutionRecipe', + 'modules.Image.Preview', + ], + mediaSlots: [ + { + id: 'result', + label: 'Generated image', + kind: 'image', + role: 'output', + placeholder: 'Result pending', + }, + ], + recipeSummary: 'Reproduce the reviewed Quiet Current example with the saved prompt, settings and model revision.', + runtimeReuseKey: 'sha256:canonical-graph-v1:0870e1b5d6c05b496e120e383bc7c13c4fe1705efc5d918466900b9e906288d8', + }, + }, + { + workflowId: 'SanaPAGPipeline:text_to_image', + sourceTaskTemplateId: 'task-template:sana-600m-pag:text-to-image:v1', + retainedGraphHash: 'sha256:canonical-graph-v1:52c3114e98debe02d6e7a297276e67887d782628952ddb20ae88c499d7c6a356', + originalReceiptSha256: '2e80e952039cfbc7b42f7f1b5689f30fb8b8f83646e0f4c2f6cb8e3a68b8d784', + reviewedTemplateSha256: 'ddf39e419212cba10df50f7b27b3fae22d57a0cbfc574164bcad08975fa2545b', + reviewedCatalogLock: { + templateLockHash: 'tpl_fc97bb6a', + galleryTemplateLockHash: 'tpl_ef8db2a5', + promptSettingsHash: 'ps_8a0e2f0d', + }, + promptSha256: 'fb940b41391388f6221f47154824aac67e9c0f828de5581e1afd855ce2ec528d', + template: { + id: 'persimmon_glaze', + label: 'Sana 0.6B PAG — Text to image: Persimmon Glaze', + mode: 'text_to_image', + modelType: 'SanaPAGPipeline', + intentGroup: 'generate_image', + category: 'concept', + inputBindings: [], + outputKinds: ['image'], + readinessPolicy: 'runnable', + modelArtifact: { + source: 'hub', + value: 'Efficient-Large-Model/Sana_600M_1024px_diffusers', + revision: '28f3af7689de15f3883d5863059a2fca0aa9b829', + }, + description: 'Reproduce the reviewed Persimmon Glaze example with the saved prompt, settings and model revision.', + prompt: + 'Editorial photograph of a single glazed persimmon-orange ceramic vase on a low travertine plinth, with one curved eucalyptus branch. Soft light from the left, off-white plaster wall, clean sculptural still life.', + negativePrompt: '', + example: { + mediaType: 'image', + status: 'unverified', + modelRevision: '28f3af7689de15f3883d5863059a2fca0aa9b829', + lockedSeed: 42, + lockedSettings: { + width: 1024, + height: 1024, + steps: 20, + guidanceScale: 4.5, + strength: 0.8, + outputType: 'pil', + maxSequenceLength: 300, + dtype: 'float16', + resourceMode: 'expert', + quantizationMode: 'none', + autoOffload: true, + offloadMode: 'model_cpu', + }, + expectedOutput: { + width: 1024, + height: 1024, + }, + runtimeEstimate: '12.93 seconds in the saved run', + }, + requiredBackendCapabilities: [ + 'modules.DiffusersImage.Generate', + 'modules.DiffusersImage.LoadPipeline', + 'modules.DiffusersRuntime.PipelineQuantizationConfigV2', + 'modules.DiffusersRuntime.DiffusersExecutionRecipe', + 'modules.Image.Preview', + ], + mediaSlots: [ + { + id: 'result', + label: 'Generated image', + kind: 'image', + role: 'output', + placeholder: 'Result pending', + }, + ], + recipeSummary: + 'Reproduce the reviewed Persimmon Glaze example with the saved prompt, settings and model revision.', + runtimeReuseKey: 'sha256:canonical-graph-v1:52c3114e98debe02d6e7a297276e67887d782628952ddb20ae88c499d7c6a356', + }, + }, + { + workflowId: 'LatentConsistencyModelPipeline:text_to_image', + sourceTaskTemplateId: 'task-template:lcm-dreamshaper-v7:text-to-image:v1', + retainedGraphHash: 'sha256:canonical-graph-v1:a27f2318675f32fa007ed44f64cc42f78c58f05c896bdba16bcf71cec4383ea5', + originalReceiptSha256: 'b23f6c1d6ea11f928eab1c62422e49a288645e6f46ecf0c4f1b4994e95ad56ea', + reviewedTemplateSha256: 'fe33d74a4694ab6b3d34f483d56575c0c66a5948d424a62c04538c0dd608253a', + reviewedCatalogLock: { + templateLockHash: 'tpl_64460ff2', + galleryTemplateLockHash: 'tpl_5536c9a7', + promptSettingsHash: 'ps_38a31bbe', + }, + promptSha256: '1ad3ea7692a0f8ae0bbd025e78774b790e4fee6066ddd349390e80bcff3c0fa9', + template: { + id: 'porcelain_on_slate_linen', + label: 'LCM DreamShaper v7 — Text to image: Porcelain on Slate Linen', + mode: 'text_to_image', + modelType: 'LatentConsistencyModelPipeline', + intentGroup: 'generate_image', + category: 'concept', + inputBindings: [], + outputKinds: ['image'], + readinessPolicy: 'runnable', + modelArtifact: { + source: 'hub', + value: 'SimianLuo/LCM_Dreamshaper_v7', + revision: 'a85df6a8bd976cdd08b4fd8f3b73f229c9e54df5', + }, + description: + 'Reproduce the reviewed Porcelain on Slate Linen example with the saved prompt, settings and model revision.', + prompt: + 'Studio photograph of one shallow empty ivory porcelain bowl on a flat dark navy linen tablecloth. Simple round rim, natural window light from the left, delicate shadows, close three-quarter view.', + negativePrompt: '', + example: { + mediaType: 'image', + status: 'unverified', + modelRevision: 'a85df6a8bd976cdd08b4fd8f3b73f229c9e54df5', + lockedSeed: 42, + lockedSettings: { + width: 512, + height: 512, + steps: 4, + guidanceScale: 8.5, + strength: 0.8, + outputType: 'pil', + maxSequenceLength: 512, + dtype: 'float32', + resourceMode: 'expert', + quantizationMode: 'none', + autoOffload: false, + offloadMode: 'none', + }, + expectedOutput: { + width: 512, + height: 512, + }, + runtimeEstimate: '11.34 seconds in the saved run', + }, + requiredBackendCapabilities: [ + 'modules.DiffusersImage.Generate', + 'modules.DiffusersImage.LoadPipeline', + 'modules.DiffusersRuntime.PipelineQuantizationConfigV2', + 'modules.DiffusersRuntime.DiffusersExecutionRecipe', + 'modules.Image.Preview', + ], + mediaSlots: [ + { + id: 'result', + label: 'Generated image', + kind: 'image', + role: 'output', + placeholder: 'Result pending', + }, + ], + recipeSummary: + 'Reproduce the reviewed Porcelain on Slate Linen example with the saved prompt, settings and model revision.', + runtimeReuseKey: 'sha256:canonical-graph-v1:a27f2318675f32fa007ed44f64cc42f78c58f05c896bdba16bcf71cec4383ea5', + }, + }, + { + workflowId: 'AuraFlowPipeline:text_to_image', + sourceTaskTemplateId: 'task-template:auraflow-v0.3:text-to-image:v1', + retainedGraphHash: 'sha256:canonical-graph-v1:956816a0ebe49ffead5c8c8759c3db2becf2d5a46196fba7696e978d0d55b15b', + originalReceiptSha256: 'c4ce21c85cf0412cc1e69ff59009037bbdde9d1692cff19f307d589b84fb5b1f', + reviewedTemplateSha256: 'b09d5bf8c1d2efa3ae62881840125aa474500d658ba7538031dedeaeb79d52d4', + reviewedCatalogLock: { + templateLockHash: 'tpl_b2dab5aa', + galleryTemplateLockHash: 'tpl_a23dcce5', + promptSettingsHash: 'ps_97c53e0a', + }, + promptSha256: '1689b205b531ff682a01a0cac00b798a7dc1ec291b1cc72f47cafd7c11c188aa', + template: { + id: 'salt_marsh_from_above', + label: 'AuraFlow v0.3 1536px — Text to image: Salt Marsh from Above', + mode: 'text_to_image', + modelType: 'AuraFlowPipeline', + intentGroup: 'generate_image', + category: 'concept', + inputBindings: [], + outputKinds: ['image'], + readinessPolicy: 'runnable', + modelArtifact: { + source: 'hub', + value: 'fal/AuraFlow-v0.3', + revision: '2cd8588f04c886002be4571697d84654a50e3af3', + }, + description: + 'Reproduce the reviewed Salt Marsh from Above example with the saved prompt, settings and model revision.', + prompt: + 'Wide aerial landscape photograph of a tidal estuary at low tide. A single deep blue channel curves from the lower left through pale sandbanks and copper-red salt-marsh grass, then opens into a calm sea on the horizon. A small isolated white navigation beacon on a stone causeway gives a clear sense of scale. Late-afternoon light, clean distant horizon, natural variation in the reeds and intricate small branching tidal patterns. Restrained blue and warm sienna colors, crisp photographic detail, no writing.', + negativePrompt: '', + example: { + mediaType: 'image', + status: 'unverified', + modelRevision: '2cd8588f04c886002be4571697d84654a50e3af3', + lockedSeed: 42, + lockedSettings: { + width: 1536, + height: 768, + steps: 50, + guidanceScale: 3.5, + strength: 0.8, + outputType: 'pil', + maxSequenceLength: 256, + dtype: 'float16', + resourceMode: 'expert', + quantizationMode: 'none', + autoOffload: true, + offloadMode: 'model_cpu', + }, + expectedOutput: { + width: 1536, + height: 768, + }, + runtimeEstimate: '760.61 seconds in the saved run', + }, + requiredBackendCapabilities: [ + 'modules.DiffusersImage.Generate', + 'modules.DiffusersImage.LoadPipeline', + 'modules.DiffusersRuntime.PipelineQuantizationConfigV2', + 'modules.DiffusersRuntime.DiffusersExecutionRecipe', + 'modules.Image.Preview', + ], + mediaSlots: [ + { + id: 'result', + label: 'Generated image', + kind: 'image', + role: 'output', + placeholder: 'Result pending', + }, + ], + recipeSummary: + 'Reproduce the reviewed Salt Marsh from Above example with the saved prompt, settings and model revision.', + runtimeReuseKey: 'sha256:canonical-graph-v1:956816a0ebe49ffead5c8c8759c3db2becf2d5a46196fba7696e978d0d55b15b', + }, + }, + { + workflowId: 'StableDiffusionPipeline:text_to_image', + sourceTaskTemplateId: 'task-template:sd15-base:text-to-image:v1', + retainedGraphHash: 'sha256:canonical-graph-v1:27fe077b35b48bbd8edc6589655a5ed7a3788139a0a0ab82b14cf3f0ae839b19', + originalReceiptSha256: '235118ee94df6adef140079116b17158e2922bf861a5f6d7d23f4f3f988d3927', + reviewedTemplateSha256: '1c4b2351129fdb61f6ea79abfb8c699ff4db82db0c97e1dc92e9eeeb36a34d12', + reviewedCatalogLock: { + templateLockHash: 'tpl_514a5205', + galleryTemplateLockHash: 'tpl_61d186ae', + promptSettingsHash: 'ps_82f89ed0', + }, + promptSha256: '516be575fb3191eafa8dd83a38a09c7e85cb36a6484abb71ea32b7080b21c7b8', + template: { + id: 'cobalt_jug_and_lemons', + label: 'Stable Diffusion 1.5 — Text to image: Cobalt Jug and Lemons', + mode: 'text_to_image', + modelType: 'StableDiffusionPipeline', + intentGroup: 'generate_image', + category: 'concept', + inputBindings: [], + outputKinds: ['image'], + readinessPolicy: 'runnable', + modelArtifact: { + source: 'hub', + value: 'stable-diffusion-v1-5/stable-diffusion-v1-5', + revision: '451f4fe16113bff5a5d2269ed5ad43b0592e9a14', + }, + description: + 'Reproduce the reviewed Cobalt Jug and Lemons example with the saved prompt, settings and model revision.', + prompt: + 'Fine art still life, a single cobalt blue glazed ceramic jug holding a fresh olive branch, two yellow lemons on undyed linen, worn oak windowsill, warm late afternoon sunlight from the left, palest ochre plaster backdrop, soft grounded shadows, slight brush texture in the finish, carefully composed, muted earthy palette, detailed ceramic glaze and linen weave.', + negativePrompt: '', + example: { + mediaType: 'image', + status: 'unverified', + modelRevision: '451f4fe16113bff5a5d2269ed5ad43b0592e9a14', + lockedSeed: 8319, + lockedSettings: { + width: 512, + height: 512, + steps: 30, + guidanceScale: 7.5, + strength: 0.8, + outputType: 'pil', + maxSequenceLength: 512, + dtype: 'float32', + resourceMode: 'expert', + quantizationMode: 'none', + autoOffload: false, + offloadMode: 'none', + }, + expectedOutput: { + width: 512, + height: 512, + }, + runtimeEstimate: '14.70 seconds in the saved run', + }, + requiredBackendCapabilities: [ + 'modules.DiffusersImage.Generate', + 'modules.DiffusersImage.LoadPipeline', + 'modules.DiffusersRuntime.PipelineQuantizationConfigV2', + 'modules.DiffusersRuntime.DiffusersExecutionRecipe', + 'modules.Image.Preview', + ], + mediaSlots: [ + { + id: 'result', + label: 'Generated image', + kind: 'image', + role: 'output', + placeholder: 'Result pending', + }, + ], + recipeSummary: + 'Reproduce the reviewed Cobalt Jug and Lemons example with the saved prompt, settings and model revision.', + runtimeReuseKey: 'sha256:canonical-graph-v1:27fe077b35b48bbd8edc6589655a5ed7a3788139a0a0ab82b14cf3f0ae839b19', + }, + }, + { + workflowId: 'PRXPipeline:text_to_image', + sourceTaskTemplateId: 'task-template:prx-512-sft:text-to-image:v1', + retainedGraphHash: 'sha256:canonical-graph-v1:3d2853278333f4c6760e366ae0347794b14b3937ac62422b5f84d6effcd10495', + originalReceiptSha256: '77d2fb24693cf118ec83aea3c2a53a3c8558b13b78f0bae478458e53896dcabd', + reviewedTemplateSha256: '4a188876a65d35df1c87da93c5fcae162f3bc8b20934a61fe70e4580b5090249', + reviewedCatalogLock: { + templateLockHash: 'tpl_b747cf95', + galleryTemplateLockHash: 'tpl_3f17401c', + promptSettingsHash: 'ps_6998df3e', + }, + promptSha256: '04cb0ceff2138f0fe17267a6c1e68698a7ccb1b2e9075641957b6b7dd59ea8f5', + template: { + id: 'copper_hour_dunes', + label: 'PRX 512 SFT — Text to image: Copper Hour Dunes', + mode: 'text_to_image', + modelType: 'PRXPipeline', + intentGroup: 'generate_image', + category: 'concept', + inputBindings: [], + outputKinds: ['image'], + readinessPolicy: 'runnable', + modelArtifact: { + source: 'hub', + value: 'Photoroom/prx-512-t2i-sft', + revision: '2996423bc26e8eaca48774fac1797484214dfea0', + }, + description: + 'Reproduce the reviewed Copper Hour Dunes example with the saved prompt, settings and model revision.', + prompt: + 'A wide photographic desert landscape at last light, viewed from the shoulder of a high dune. Fine, continuous wind ripples lead from the sharp foreground sand toward a curved ochre ridge. Warm low sunlight from frame left catches each crest, casting long violet-gray shadows down the slip faces. Successive amber and terracotta ridgelines soften into a dusty blue mountain silhouette on the horizon beneath a clear pale-blue sky. Low horizon haze, tactile sand grains, restrained natural color and atmospheric depth. Compose a square frame with a strong curving ridge through the lower two-thirds and quiet open sky above. The dunes fill the frame edge to edge, with the stillness and depth of a large-format landscape photograph.', + negativePrompt: '', + example: { + mediaType: 'image', + status: 'unverified', + modelRevision: '2996423bc26e8eaca48774fac1797484214dfea0', + lockedSeed: 42, + lockedSettings: { + width: 512, + height: 512, + steps: 28, + guidanceScale: 5, + strength: 0.8, + outputType: 'pil', + maxSequenceLength: 256, + dtype: 'bfloat16', + resourceMode: 'expert', + quantizationMode: 'none', + autoOffload: true, + offloadMode: 'model_cpu', + }, + expectedOutput: { + width: 512, + height: 512, + }, + runtimeEstimate: '10.14 seconds in the saved run', + }, + requiredBackendCapabilities: [ + 'modules.DiffusersImage.Generate', + 'modules.DiffusersImage.LoadPipeline', + 'modules.DiffusersRuntime.PipelineQuantizationConfigV2', + 'modules.DiffusersRuntime.DiffusersExecutionRecipe', + 'modules.Image.Preview', + ], + mediaSlots: [ + { + id: 'result', + label: 'Generated image', + kind: 'image', + role: 'output', + placeholder: 'Result pending', + }, + ], + recipeSummary: + 'Reproduce the reviewed Copper Hour Dunes example with the saved prompt, settings and model revision.', + runtimeReuseKey: 'sha256:canonical-graph-v1:3d2853278333f4c6760e366ae0347794b14b3937ac62422b5f84d6effcd10495', + }, + }, + { + workflowId: 'StableDiffusionXLPipeline:text_to_image', + sourceTaskTemplateId: 'task-template:sdxl-base:text-to-image:v1', + retainedGraphHash: 'sha256:canonical-graph-v1:8cca9a4269d1339b835a8fba2a380913be348c06c3a628b212a3a17ef2377bb1', + originalReceiptSha256: '944ff90f533867016d514d9cdd7a35648e711359c55f2ae06fc3bac8e88b63e8', + reviewedTemplateSha256: '4d32a1778d7cad756e05f14f09de559b9b065f3675b2aef6a289c5299cbd2c24', + reviewedCatalogLock: { + templateLockHash: 'tpl_b24bef60', + galleryTemplateLockHash: 'tpl_a4b61426', + promptSettingsHash: 'ps_fc327a42', + }, + promptSha256: 'eb5d22de03c2688152fd9f6674b018dcb8770f099e44706affd68deda70e65b2', + template: { + id: 'glasshouse_rain', + label: 'Stable Diffusion XL 1.0 — Text to image: Glasshouse Rain', + mode: 'text_to_image', + modelType: 'StableDiffusionXLPipeline', + intentGroup: 'generate_image', + category: 'concept', + inputBindings: [], + outputKinds: ['image'], + readinessPolicy: 'runnable', + modelArtifact: { + source: 'hub', + value: 'stabilityai/stable-diffusion-xl-base-1.0', + revision: '462165984030d82259a11f4367a4eed129e94a7b', + }, + description: 'Reproduce the reviewed Glasshouse Rain example with the saved prompt, settings and model revision.', + prompt: + 'Architectural photograph from inside an empty Victorian conservatory during a steady rain. The camera looks at eye level down a wet terracotta aisle beneath slender black cast-iron ribs. Dense green ferns spill gently toward the aisle from both sides, and rain beads trace the overhead glass. Cool overcast daylight falls evenly through the panes; a single shaded brass wall light near the far door casts a small amber reflection onto the floor. A clear central vanishing point, natural tones, realistic fine surface texture and a quiet, sheltered atmosphere. Square frame, editorial architecture photography, no lettering or people.', + negativePrompt: '', + example: { + mediaType: 'image', + status: 'unverified', + modelRevision: '462165984030d82259a11f4367a4eed129e94a7b', + lockedSeed: 42, + lockedSettings: { + width: 1024, + height: 1024, + steps: 30, + guidanceScale: 5, + strength: 0.8, + outputType: 'pil', + maxSequenceLength: 512, + dtype: 'bfloat16', + resourceMode: 'expert', + quantizationMode: 'none', + autoOffload: true, + offloadMode: 'model_cpu', + }, + expectedOutput: { + width: 1024, + height: 1024, + }, + runtimeEstimate: '26.90 seconds in the saved run', + }, + requiredBackendCapabilities: [ + 'modules.DiffusersImage.Generate', + 'modules.DiffusersImage.LoadPipeline', + 'modules.DiffusersRuntime.PipelineQuantizationConfigV2', + 'modules.DiffusersRuntime.DiffusersExecutionRecipe', + 'modules.Image.Preview', + ], + mediaSlots: [ + { + id: 'result', + label: 'Generated image', + kind: 'image', + role: 'output', + placeholder: 'Result pending', + }, + ], + recipeSummary: + 'Reproduce the reviewed Glasshouse Rain example with the saved prompt, settings and model revision.', + runtimeReuseKey: 'sha256:canonical-graph-v1:8cca9a4269d1339b835a8fba2a380913be348c06c3a628b212a3a17ef2377bb1', + }, + }, + { + workflowId: 'StableDiffusionPAGPipeline:text_to_image', + sourceTaskTemplateId: 'task-template:sd15-pag:text-to-image:v1', + retainedGraphHash: 'sha256:canonical-graph-v1:f471ecd5a18b997bf9dc6b61a72cf7e98e0988f9309ef3432ec635838f97c409', + originalReceiptSha256: 'ad23b58153c3301fd0125a0a66e9e110a61a16e0c8833563cd3ca51109fe5056', + reviewedTemplateSha256: '6642ac1831a788b83981383c33b7ce019692d58fd2b23f3bff9d95e3a59ec27b', + reviewedCatalogLock: { + templateLockHash: 'tpl_98174f0f', + galleryTemplateLockHash: 'tpl_5dba74f8', + promptSettingsHash: 'ps_2f4c6afa', + }, + promptSha256: 'f0657889fb99878c51b1e31b08806daf0714539faf351abf6efcde2a39024db3', + template: { + id: 'pomegranate_on_blue_linen', + label: 'Stable Diffusion 1.5 PAG — Text to image: Pomegranate on Blue Linen', + mode: 'text_to_image', + modelType: 'StableDiffusionPAGPipeline', + intentGroup: 'generate_image', + category: 'concept', + inputBindings: [], + outputKinds: ['image'], + readinessPolicy: 'runnable', + modelArtifact: { + source: 'hub', + value: 'stable-diffusion-v1-5/stable-diffusion-v1-5', + revision: '451f4fe16113bff5a5d2269ed5ad43b0592e9a14', + }, + description: + 'Reproduce the reviewed Pomegranate on Blue Linen example with the saved prompt, settings and model revision.', + prompt: + 'Square editorial still life photograph of a single cut pomegranate half resting cut side up on a folded indigo linen napkin. Glossy ruby seeds cluster inside the curved ivory pith. A few loose seeds sit on the weathered pale wood just below the fruit. Soft daylight rakes in from the upper left, revealing linen fibers and the wet seed surfaces. Three-quarter overhead camera, muted navy and pale wood palette, simple composition.', + negativePrompt: '', + example: { + mediaType: 'image', + status: 'unverified', + modelRevision: '451f4fe16113bff5a5d2269ed5ad43b0592e9a14', + lockedSeed: 42, + lockedSettings: { + width: 512, + height: 512, + steps: 30, + guidanceScale: 7.5, + strength: 0.8, + outputType: 'pil', + maxSequenceLength: 512, + dtype: 'float32', + resourceMode: 'expert', + quantizationMode: 'none', + autoOffload: false, + offloadMode: 'none', + }, + expectedOutput: { + width: 512, + height: 512, + }, + runtimeEstimate: '15.64 seconds in the saved run', + }, + requiredBackendCapabilities: [ + 'modules.DiffusersImage.Generate', + 'modules.DiffusersImage.LoadPipeline', + 'modules.DiffusersRuntime.PipelineQuantizationConfigV2', + 'modules.DiffusersRuntime.DiffusersExecutionRecipe', + 'modules.Image.Preview', + ], + mediaSlots: [ + { + id: 'result', + label: 'Generated image', + kind: 'image', + role: 'output', + placeholder: 'Result pending', + }, + ], + recipeSummary: + 'Reproduce the reviewed Pomegranate on Blue Linen example with the saved prompt, settings and model revision.', + runtimeReuseKey: 'sha256:canonical-graph-v1:f471ecd5a18b997bf9dc6b61a72cf7e98e0988f9309ef3432ec635838f97c409', + }, + }, + { + workflowId: 'SanaSprintPipeline:text_to_image', + sourceTaskTemplateId: 'task-template:sana-sprint-600m:text-to-image:v1', + retainedGraphHash: 'sha256:canonical-graph-v1:374726f7f4d26de27f216171d570f84ef9365397555d083767b89eacc2415338', + originalReceiptSha256: 'e6693f3cb5cc81bbac653e0f89c15e2871fdbb67ad37c4f3c63514bbf4e0aa43', + reviewedTemplateSha256: '0724f395ee3219d2cf878ea1ef914692d9808e83236c4d972322e062dd15b380', + reviewedCatalogLock: { + templateLockHash: 'tpl_193e94c3', + galleryTemplateLockHash: 'tpl_c72697e6', + promptSettingsHash: 'ps_d411e860', + }, + promptSha256: '315c32ce4bc4c7352d7eaf6bd8598fdfb67fa3479c4b3a9a14beb33e562a2605', + template: { + id: 'canal_lantern_in_warm_light', + label: 'Sana Sprint 0.6B — Text to image: Canal Lantern in Warm Light', + mode: 'text_to_image', + modelType: 'SanaSprintPipeline', + intentGroup: 'generate_image', + category: 'concept', + inputBindings: [], + outputKinds: ['image'], + readinessPolicy: 'runnable', + modelArtifact: { + source: 'hub', + value: 'Efficient-Large-Model/Sana_Sprint_0.6B_1024px_diffusers', + revision: 'aa76e7f4f4928f378716b6716a2130fba3caf5b1', + }, + description: + 'Reproduce the reviewed Canal Lantern in Warm Light example with the saved prompt, settings and model revision.', + prompt: + 'Square editorial product photo from a three-quarter angle. A single art deco copper railway lantern with translucent teal glass and one arched handle sits on a walnut workbench. Warm window light from the left catches the engraved copper edges and the wood grain. Soft blue shadows in a slightly out-of-focus canal workshop.', + negativePrompt: '', + example: { + mediaType: 'image', + status: 'unverified', + modelRevision: 'aa76e7f4f4928f378716b6716a2130fba3caf5b1', + lockedSeed: 42, + lockedSettings: { + width: 1024, + height: 1024, + steps: 2, + guidanceScale: 4.5, + strength: 0.5, + outputType: 'pil', + maxSequenceLength: 300, + dtype: 'bfloat16', + resourceMode: 'expert', + quantizationMode: 'none', + autoOffload: true, + offloadMode: 'model_cpu', + }, + expectedOutput: { + width: 1024, + height: 1024, + }, + runtimeEstimate: '10.74 seconds in the saved run', + }, + requiredBackendCapabilities: [ + 'modules.DiffusersImage.Generate', + 'modules.DiffusersImage.LoadPipeline', + 'modules.DiffusersRuntime.PipelineQuantizationConfigV2', + 'modules.DiffusersRuntime.DiffusersExecutionRecipe', + 'modules.Image.Preview', + ], + mediaSlots: [ + { + id: 'result', + label: 'Generated image', + kind: 'image', + role: 'output', + placeholder: 'Result pending', + }, + ], + recipeSummary: + 'Reproduce the reviewed Canal Lantern in Warm Light example with the saved prompt, settings and model revision.', + runtimeReuseKey: 'sha256:canonical-graph-v1:374726f7f4d26de27f216171d570f84ef9365397555d083767b89eacc2415338', + }, + }, + { + workflowId: 'StableDiffusionXLPAGPipeline:text_to_image', + sourceTaskTemplateId: 'task-template:sdxl-pag:text-to-image:v1', + retainedGraphHash: 'sha256:canonical-graph-v1:084cbe824fed25ab44a940b2319aa37299f80d3fc2e06efb5848d701162902d9', + originalReceiptSha256: 'e5bcc2b64bfddcadc334c20f0c125fdcae68760cde1ff60ec10d1a22ce81a997', + reviewedTemplateSha256: 'f30bccf14d658fa6222cec9c7458ec74fec76940dc1dac07ed87e19d93b3738c', + reviewedCatalogLock: { + templateLockHash: 'tpl_7e4877bb', + galleryTemplateLockHash: 'tpl_9fd062df', + promptSettingsHash: 'ps_c51df98f', + }, + promptSha256: '635581fcdcd104401ed65f1733f0cd4c7c700f35455f499f509dad161e799cb3', + template: { + id: 'the_glasshouse_seed_tray', + label: 'Stable Diffusion XL PAG — Text to image: The Glasshouse Seed Tray', + mode: 'text_to_image', + modelType: 'StableDiffusionXLPAGPipeline', + intentGroup: 'generate_image', + category: 'concept', + inputBindings: [], + outputKinds: ['image'], + readinessPolicy: 'runnable', + modelArtifact: { + source: 'hub', + value: 'stabilityai/stable-diffusion-xl-base-1.0', + revision: '462165984030d82259a11f4367a4eed129e94a7b', + }, + description: + 'Reproduce the reviewed The Glasshouse Seed Tray example with the saved prompt, settings and model revision.', + prompt: + 'Square editorial photograph, close three-quarter view of a shallow weathered terracotta propagation tray filled with rows of tiny green seedlings on a dark cedar potting bench. A small brushed steel plant mister sits at the far left with a soft reflection. Cool morning light passes through rain-streaked Victorian greenhouse panes behind the bench and brushes water droplets on the leaves. The front row of seedlings and the terracotta texture are crisp. The glass panes and other plants recede gently out of focus. Muted greens, natural warm clay and cool blue window light.', + negativePrompt: '', + example: { + mediaType: 'image', + status: 'unverified', + modelRevision: '462165984030d82259a11f4367a4eed129e94a7b', + lockedSeed: 42, + lockedSettings: { + width: 1024, + height: 1024, + steps: 50, + guidanceScale: 5, + strength: 0.8, + outputType: 'pil', + maxSequenceLength: 512, + dtype: 'float16', + resourceMode: 'expert', + quantizationMode: 'none', + autoOffload: true, + offloadMode: 'model_cpu', + }, + expectedOutput: { + width: 1024, + height: 1024, + }, + runtimeEstimate: '53.86 seconds in the saved run', + }, + requiredBackendCapabilities: [ + 'modules.DiffusersImage.Generate', + 'modules.DiffusersImage.LoadPipeline', + 'modules.DiffusersRuntime.PipelineQuantizationConfigV2', + 'modules.DiffusersRuntime.DiffusersExecutionRecipe', + 'modules.Image.Preview', + ], + mediaSlots: [ + { + id: 'result', + label: 'Generated image', + kind: 'image', + role: 'output', + placeholder: 'Result pending', + }, + ], + recipeSummary: + 'Reproduce the reviewed The Glasshouse Seed Tray example with the saved prompt, settings and model revision.', + runtimeReuseKey: 'sha256:canonical-graph-v1:084cbe824fed25ab44a940b2319aa37299f80d3fc2e06efb5848d701162902d9', + }, + }, + { + workflowId: 'NucleusMoEImagePipeline:text_to_image', + sourceTaskTemplateId: 'task-template:nucleus-image:text-to-image:v1', + retainedGraphHash: 'sha256:canonical-graph-v1:ee3d46849aebf382a67208a5f3c2ee4461deb6bfdab6af3506dfbb5abb6dfec1', + originalReceiptSha256: 'adc6e23f1c2082c72ea9e0697cc87f4e7da5d8cc01540d06f0d6e08acea81a04', + reviewedTemplateSha256: '82918f24aaddf420da3c1213ac69779af2bf962cd2af50b33814f1eefdf14a3b', + reviewedCatalogLock: { + templateLockHash: 'tpl_4c4f64e3', + galleryTemplateLockHash: 'tpl_c722e490', + promptSettingsHash: 'ps_b971c379', + }, + promptSha256: 'e1a2c655bd0bf0edee77abe9e13b3e9f1fe06114b20e01047491a379d96b6f6f', + template: { + id: 'quiet_kiln_at_daybreak', + label: 'Nucleus Image 17B MoE — Text to image: Quiet Kiln at Daybreak', + mode: 'text_to_image', + modelType: 'NucleusMoEImagePipeline', + intentGroup: 'generate_image', + category: 'concept', + inputBindings: [], + outputKinds: ['image'], + readinessPolicy: 'runnable', + modelArtifact: { + source: 'hub', + value: 'NucleusAI/Nucleus-Image', + revision: '5e963db4fd0a65c7e4faf53ca2d4eca567c4dcfa', + }, + description: + 'Reproduce the reviewed Quiet Kiln at Daybreak example with the saved prompt, settings and model revision.', + prompt: + 'Square photojournalistic still life of a traditional brick pottery kiln at daybreak. Seen from an open-sided workshop at eye level with a 50 mm lens. A little orange ember bed is visible deep inside the single dark arched firebox. Three separate handmade terracotta pieces rest on a weathered wood shelf in the lower foreground. On the left is a tall narrow-neck bottle, in the center is a shallow open bowl, and on the right is a squat wide-mouthed jar. Each has a distinct silhouette with open space between it and the next. Soft cool blue morning light from the open workshop side, warm reflection on the nearest bricks, detailed tool marks and clay pores, and clear still air in the foreground. A distant grove is softly blurred beyond the workshop.', + negativePrompt: '', + example: { + mediaType: 'image', + status: 'unverified', + modelRevision: '5e963db4fd0a65c7e4faf53ca2d4eca567c4dcfa', + lockedSeed: 42, + lockedSettings: { + width: 1024, + height: 1024, + steps: 50, + guidanceScale: 4, + strength: 0.8, + outputType: 'pil', + maxSequenceLength: 1024, + dtype: 'bfloat16', + resourceMode: 'expert', + quantizationMode: 'none', + autoOffload: true, + offloadMode: 'model_cpu', + }, + expectedOutput: { + width: 1024, + height: 1024, + }, + runtimeEstimate: '264.24 seconds in the saved run', + }, + requiredBackendCapabilities: [ + 'modules.DiffusersImage.Generate', + 'modules.DiffusersImage.LoadPipeline', + 'modules.DiffusersRuntime.PipelineQuantizationConfigV2', + 'modules.DiffusersRuntime.DiffusersExecutionRecipe', + 'modules.Image.Preview', + ], + mediaSlots: [ + { + id: 'result', + label: 'Generated image', + kind: 'image', + role: 'output', + placeholder: 'Result pending', + }, + ], + recipeSummary: + 'Reproduce the reviewed Quiet Kiln at Daybreak example with the saved prompt, settings and model revision.', + runtimeReuseKey: 'sha256:canonical-graph-v1:ee3d46849aebf382a67208a5f3c2ee4461deb6bfdab6af3506dfbb5abb6dfec1', + }, + }, + { + workflowId: 'StableDiffusionPipeline:inpaint', + sourceTaskTemplateId: 'task-template:sd15-base:inpaint:v1', + retainedGraphHash: 'sha256:canonical-graph-v1:d46308269e83807cfb33229dc47a0720e765872ff093ae7006857bb9fe382051', + originalReceiptSha256: '74c30496f6c07b0eceae986254a425b0b919b5e5d91fc668839d31a59783a4a6', + reviewedTemplateSha256: '26d6762e118bc9217762cc4abeec7817586ee58fb80ef09bc3c98e32a2789472', + reviewedCatalogLock: { + templateLockHash: 'tpl_46535382', + galleryTemplateLockHash: 'tpl_cab1d671', + promptSettingsHash: 'ps_b010f09b', + }, + promptSha256: '17cd8e35f8e283ec08936955f6848154024d1a15ca2518e5e91c535e18996924', + inputSha256: 'd143c4922ad498b9bd436d06df424bbff50baf023b93735b53ee401e19e4cbf1', + inputLocatorSha256: 'efcb2b3b9ced784bb620763301bb33ea3b2f6ac2561624a4a60c7a735049cfb1', + maskSha256: '71817f4823a73712c8e76e7d832ec382c29ec0a0bf5a472e09639448c082da01', + template: { + id: 'restoring_the_studio_backdrop', + label: 'Stable Diffusion 1.5 — Inpaint: Restoring the Studio Backdrop', + mode: 'inpaint', + modelType: 'StableDiffusionPipeline', + intentGroup: 'edit_image', + category: 'inpaint', + inputBindings: [ + { + id: 'source-image', + label: 'Source image', + mediaType: 'image', + origin: 'user', + requiredAt: 'workflow_start', + field: 'referenceImages', + count: 1, + }, + { + id: 'repair-mask', + label: 'Mask', + mediaType: 'image', + origin: 'user', + requiredAt: 'workflow_start', + field: 'maskImage', + count: 1, + }, + ], + outputKinds: ['image'], + readinessPolicy: 'requires_input', + modelArtifact: { + source: 'hub', + value: 'stable-diffusion-v1-5/stable-diffusion-v1-5', + revision: '451f4fe16113bff5a5d2269ed5ad43b0592e9a14', + }, + description: + 'Reproduce the reviewed Restoring the Studio Backdrop example with the saved prompt, settings and model revision.', + prompt: + 'An uninterrupted smooth warm light-gray studio backdrop with a soft even gradient from window light. Clean plain matte gray wall, subtle even tone, simple studio product photography background.', + negativePrompt: '', + example: { + mediaType: 'image', + status: 'unverified', + modelRevision: '451f4fe16113bff5a5d2269ed5ad43b0592e9a14', + lockedSeed: 42, + lockedSettings: { + width: 512, + height: 512, + steps: 30, + guidanceScale: 7.5, + strength: 0.8, + outputType: 'pil', + maxSequenceLength: 512, + dtype: 'float32', + resourceMode: 'expert', + quantizationMode: 'none', + autoOffload: false, + offloadMode: 'none', + }, + expectedOutput: { + width: 512, + height: 512, + }, + runtimeEstimate: '13.86 seconds in the saved run', + }, + requiredBackendCapabilities: [ + 'modules.DiffusersImage.Inpaint', + 'modules.DiffusersImage.LoadPipeline', + 'modules.DiffusersRuntime.PipelineQuantizationConfigV2', + 'modules.DiffusersRuntime.DiffusersExecutionRecipe', + 'modules.Image.Load', + 'modules.Image.Preview', + ], + mediaSlots: [ + { + id: 'before', + label: 'Source image', + kind: 'comparison_before', + role: 'before', + placeholder: 'Source pending', + }, + { + id: 'after', + label: 'Generated image', + kind: 'comparison_after', + role: 'after', + placeholder: 'Preview pending', + }, + ], + thumbnailVariant: 'compareSlider', + recipeSummary: + 'Reproduce the reviewed Restoring the Studio Backdrop example with the saved prompt, settings and model revision.', + runtimeReuseKey: 'sha256:canonical-graph-v1:d46308269e83807cfb33229dc47a0720e765872ff093ae7006857bb9fe382051', + }, + }, + { + workflowId: 'HuggingFaceAnyToAnyModel:text_generation', + sourceTaskTemplateId: 'task-template:janus-pro-1b:text-generation:v1', + retainedGraphHash: 'sha256:canonical-graph-v1:eb58163449468a297887a396fb270e73104cbf0a537b7a4c30a17561087d94eb', + originalReceiptSha256: '5c9d37ae6894cd6aa04a9bfc4a91beaf7e9eb73bef40e2edc144ddce0215b3e7', + reviewedTemplateSha256: 'cd73585863835d186d076de2bc4f37c36c11138376bdd2939af45290ff2c37af', + reviewedCatalogLock: { + templateLockHash: 'tpl_f85e0e6f', + galleryTemplateLockHash: 'tpl_ffabdfb5', + promptSettingsHash: 'ps_2eede069', + }, + promptSha256: 'ec9c470f211df567cf09face1047675387ac0bd0191e7962f42eaede605b45b7', + template: { + id: 'janus_reykjavik_travel_note', + label: 'Janus Pro 1B — Text generation: Reykjavik Travel Note', + modelDisplayName: 'Janus Pro 1B', + modelType: 'HuggingFaceAnyToAnyModel', + mode: 'text_generation', + intentGroup: 'utility', + category: 'text', + difficulty: 'starter', + tags: ['text', 'JSON'], + description: + 'Reproduce the reviewed Reykjavik Travel Note example with the saved prompt, settings and model revision.', + prompt: + 'A travel note needs one complete, accurate sentence of 8 to 16 words. Name the capital city of Iceland and the ocean that surrounds the island. Write the sentence only.', + negativePrompt: '', + modelArtifact: { + source: 'hub', + value: 'deepseek-community/Janus-Pro-1B', + revision: '1655280bb75959cc1cb85529a2a8b26e7016072e', + }, + requiredBackendCapabilities: [ + 'modules.HuggingFaceTransformers.GenerateAnyToAny', + 'modules.HuggingFaceTransformers.LoadAnyToAnyModel', + 'modules.Primitive.DataViewer', + ], + inputBindings: [], + readinessPolicy: 'runnable', + mediaSlots: [ + { + id: 'result', + label: 'Structured response', + kind: 'json', + role: 'output', + placeholder: 'Result pending', + }, + ], + outputKinds: ['json'], + example: { + mediaType: 'json', + status: 'unverified', + modelRevision: '1655280bb75959cc1cb85529a2a8b26e7016072e', + lockedSeed: 42, + lockedSettings: { + dtype: 'bfloat16', + resourceMode: 'expert', + quantizationMode: 'none', + autoOffload: false, + offloadMode: 'none', + }, + notes: 'The answer correctly identifies Reykjavik and the Atlantic Ocean. It exceeds the requested 8–16 words.', + runtimeEstimate: '5.86 seconds in the saved run', + }, + recipeSummary: + 'Reproduce the reviewed Reykjavik Travel Note example with the saved prompt, settings and model revision.', + runtimeReuseKey: 'sha256:canonical-graph-v1:eb58163449468a297887a396fb270e73104cbf0a537b7a4c30a17561087d94eb', + }, + }, + { + workflowId: 'HuggingFaceAnyToAnyModel:image_to_text', + sourceTaskTemplateId: 'task-template:janus-pro-1b:image-to-text:v1', + retainedGraphHash: 'sha256:canonical-graph-v1:92d1160e0d3e06871c8b32b01497360e199c3a0c5bb1e69d68f81a6c651f795f', + originalReceiptSha256: '13c313cdf72749eea9789f1cef22fa7e1106d1c46cf6d3a0fb0757c00677c45c', + reviewedTemplateSha256: '44e68d77baa00812c4b9888835013887d523bfe990c11caec96ac426c8ca87b3', + reviewedCatalogLock: { + templateLockHash: 'tpl_124461a5', + galleryTemplateLockHash: 'tpl_a56db7ab', + promptSettingsHash: 'ps_28ae7860', + }, + promptSha256: 'cd46be79ad59a1ca92ca16e6910d11f0272c0fdadf1688b1cbf05040e08606d2', + inputSha256: '42d903217dc0d8addf5bb6b4a91c2fd83f6fec7fbbf165d780308b5efcba8c6f', + inputLocatorSha256: 'ce6e7bdfc88e0f8e6c01d9db3078a2990182e21ac8169460c399a757c1f0c294', + template: { + id: 'janus_red_triangle_caption', + label: 'Janus Pro 1B — Image to text: Red Triangle Caption', + modelDisplayName: 'Janus Pro 1B', + modelType: 'HuggingFaceAnyToAnyModel', + mode: 'image_to_text', + intentGroup: 'utility', + category: 'text', + difficulty: 'starter', + tags: ['text', 'JSON'], + description: + 'Reproduce the reviewed Red Triangle Caption example with the saved prompt, settings and model revision.', + prompt: 'Describe the color, shape, and background of the symbol in one sentence.', + negativePrompt: '', + modelArtifact: { + source: 'hub', + value: 'deepseek-community/Janus-Pro-1B', + revision: '1655280bb75959cc1cb85529a2a8b26e7016072e', + }, + requiredBackendCapabilities: [ + 'modules.Image.Load', + 'modules.HuggingFaceTransformers.GenerateAnyToAny', + 'modules.HuggingFaceTransformers.LoadAnyToAnyModel', + 'modules.Primitive.DataViewer', + ], + inputBindings: [ + { + id: 'source-image', + label: 'Source image', + mediaType: 'image', + field: 'referenceImages', + origin: 'user', + requiredAt: 'workflow_start', + count: 1, + }, + ], + readinessPolicy: 'requires_input', + mediaSlots: [ + { + id: 'result', + label: 'Structured response', + kind: 'json', + role: 'output', + placeholder: 'Result pending', + }, + ], + outputKinds: ['json'], + example: { + mediaType: 'json', + status: 'unverified', + modelRevision: '1655280bb75959cc1cb85529a2a8b26e7016072e', + lockedSeed: 42, + lockedSettings: { + dtype: 'bfloat16', + resourceMode: 'expert', + quantizationMode: 'none', + autoOffload: false, + offloadMode: 'none', + }, + notes: + 'One sentence accurately identifies the red triangle and white background. The source stays private. Attach an image to run the workflow.', + runtimeEstimate: '6.26 seconds in the saved run', + }, + recipeSummary: + 'Reproduce the reviewed Red Triangle Caption example with the saved prompt, settings and model revision.', + runtimeReuseKey: 'sha256:canonical-graph-v1:92d1160e0d3e06871c8b32b01497360e199c3a0c5bb1e69d68f81a6c651f795f', + }, + }, + { + workflowId: 'HuggingFaceAnyToAnyModel:text_to_image', + sourceTaskTemplateId: 'task-template:janus-pro-1b:text-to-image:v1', + retainedGraphHash: 'sha256:canonical-graph-v1:fc935fef4353febb86244c65ae189e7da6bee8ad266dc6ca0d8f88b7497c4eb1', + originalReceiptSha256: '5820a7260e3f78175f684b39ee2a28c244bfb7cfaed6318c256c642dce306ecd', + reviewedTemplateSha256: '335f3fbf1907201be05d98148bff1fb7dc68d540750b71f33812769ddfa55879', + reviewedCatalogLock: { + templateLockHash: 'tpl_26cd8cd7', + galleryTemplateLockHash: 'tpl_ac9c0bc5', + promptSettingsHash: 'ps_4a949eaa', + }, + promptSha256: '07b559ce738871099c5f9a2f9a5c61fb9ca71a8bfca500c109449f50a46eb456', + template: { + id: 'janus_red_enamel_teapot', + label: 'Janus Pro 1B — Text to image: Red Enamel Teapot', + modelDisplayName: 'Janus Pro 1B', + modelType: 'HuggingFaceAnyToAnyModel', + mode: 'text_to_image', + intentGroup: 'generate_image', + category: 'product', + difficulty: 'starter', + tags: ['still life', 'product'], + description: + 'Reproduce the reviewed Red Enamel Teapot example with the saved prompt, settings and model revision.', + prompt: + 'A single bright red enamel teapot on a clean pale stone table. Natural window light, quiet still life photography, clearly visible spout and handle.', + negativePrompt: '', + modelArtifact: { + source: 'hub', + value: 'deepseek-community/Janus-Pro-1B', + revision: '1655280bb75959cc1cb85529a2a8b26e7016072e', + }, + requiredBackendCapabilities: [ + 'modules.Image.Preview', + 'modules.HuggingFaceTransformers.GenerateAnyToAny', + 'modules.HuggingFaceTransformers.LoadAnyToAnyModel', + ], + inputBindings: [], + readinessPolicy: 'runnable', + mediaSlots: [ + { + id: 'result', + label: 'Generated image', + kind: 'image', + role: 'output', + placeholder: 'Result pending', + }, + ], + outputKinds: ['image'], + example: { + mediaType: 'image', + status: 'unverified', + modelRevision: '1655280bb75959cc1cb85529a2a8b26e7016072e', + lockedSeed: 42, + lockedSettings: { + dtype: 'bfloat16', + resourceMode: 'expert', + quantizationMode: 'none', + autoOffload: false, + offloadMode: 'none', + }, + expectedOutput: { + width: 384, + height: 384, + }, + notes: + 'One clearly recognizable red teapot with an unobstructed spout and handle. The strong window reflection obscures a small patch of enamel. Native 384 × 384 output.', + runtimeEstimate: '17.56 seconds in the saved run', + }, + recipeSummary: + 'Reproduce the reviewed Red Enamel Teapot example with the saved prompt, settings and model revision.', + runtimeReuseKey: 'sha256:canonical-graph-v1:fc935fef4353febb86244c65ae189e7da6bee8ad266dc6ca0d8f88b7497c4eb1', + }, + }, + { + workflowId: 'LuminaPipeline:text_to_image', + sourceTaskTemplateId: 'task-template:lumina-next:text-to-image:v1', + retainedGraphHash: 'sha256:canonical-graph-v1:029c04a5a3e933bb710937287da6cab94ef80b85a2b57c93e3002a3b6334d62f', + originalReceiptSha256: 'cbb5826ba9e44f9608ef88d6c52757cbd040c9bcb611f88e5892a2e93c79c8d3', + reviewedTemplateSha256: '4545f92379bc42dd213572033b19a7d37bfd24a3cf8c5eb90fb510c2e2c4c1e7', + reviewedCatalogLock: { + templateLockHash: 'tpl_9b863ddd', + galleryTemplateLockHash: 'tpl_f24a6ace', + promptSettingsHash: 'ps_a3742a3f', + }, + promptSha256: '429f531790d0fb684f2bae38fd64c0519e34a091da09ed608b3f69ac0590bb68', + template: { + id: 'lumina_opal_pendant_in_limestone', + label: 'Lumina Next — Text to image: Opal Pendant in Limestone', + modelDisplayName: 'Lumina Next', + modelType: 'LuminaPipeline', + mode: 'text_to_image', + intentGroup: 'generate_image', + category: 'product', + difficulty: 'starter', + tags: ['still life', 'product'], + description: + 'Reproduce the reviewed Opal Pendant in Limestone example with the saved prompt, settings and model revision.', + prompt: + 'Architectural product photograph of a single illuminated opal glass globe pendant suspended by one straight aged-brass stem entering the top of the frame. The smooth round sphere is fully visible and centered against a warm textured limestone arch. Soft daylight washes the arch from the left. A subtle warm glow diffuses evenly through the white globe. Simple elegant composition, natural stone grain, convincing brass and glass, restrained palette, closely framed square editorial photograph.', + negativePrompt: '', + modelArtifact: { + source: 'hub', + value: 'Alpha-VLLM/Lumina-Next-SFT-diffusers', + revision: '0ee5ec90043acf5cb41fe96274af36eb7fad8d95', + }, + requiredBackendCapabilities: [ + 'modules.DiffusersImage.Generate', + 'modules.DiffusersImage.LoadPipeline', + 'modules.DiffusersRuntime.PipelineQuantizationConfigV2', + 'modules.DiffusersRuntime.DiffusersExecutionRecipe', + 'modules.Image.Preview', + ], + inputBindings: [], + readinessPolicy: 'runnable', + mediaSlots: [ + { + id: 'result', + label: 'Generated image', + kind: 'image', + role: 'output', + placeholder: 'Result pending', + }, + ], + outputKinds: ['image'], + example: { + mediaType: 'image', + status: 'unverified', + modelRevision: '0ee5ec90043acf5cb41fe96274af36eb7fad8d95', + lockedSeed: 42, + lockedSettings: { + dtype: 'bfloat16', + resourceMode: 'expert', + quantizationMode: 'none', + autoOffload: true, + offloadMode: 'model_cpu', + width: 1024, + height: 1024, + steps: 30, + guidanceScale: 4, + outputType: 'pil', + maxSequenceLength: 256, + }, + expectedOutput: { + width: 1024, + height: 1024, + }, + notes: + 'The globe, aged brass fitting and textured arch are clear. The bulb creates a bright central hotspot where the prompt asked for an even glow. Native 1024 × 1024 output.', + runtimeEstimate: '42.56 seconds in the saved run', + }, + recipeSummary: + 'Reproduce the reviewed Opal Pendant in Limestone example with the saved prompt, settings and model revision.', + runtimeReuseKey: 'sha256:canonical-graph-v1:029c04a5a3e933bb710937287da6cab94ef80b85a2b57c93e3002a3b6334d62f', + }, + }, +]; diff --git a/src/studio/retainedGalleryTemplates.ts b/src/studio/retainedGalleryTemplates.ts index 8c4429b4..22d515e8 100644 --- a/src/studio/retainedGalleryTemplates.ts +++ b/src/studio/retainedGalleryTemplates.ts @@ -1,12 +1,14 @@ import type { StudioTemplate } from './types'; +import { APPROVED_RETAINED_BATCH } from './retainedGalleryApprovedBatch'; -type RetainedGalleryRecipe = { +export type RetainedGalleryRecipe = { readonly workflowId: string; readonly sourceTaskTemplateId: string; readonly template: StudioTemplate; readonly retainedGraphHash: string; readonly originalReceiptSha256: string; readonly reviewedTemplateSha256: string; + readonly maskSha256?: string; readonly reviewedCatalogLock: { readonly templateLockHash: string; readonly galleryTemplateLockHash: string; @@ -28,6 +30,7 @@ const spandrelRevision = '42efb9c3eeed1f5c0c8a626cf5f7f4481dfbb094'; * continues to seed their task contracts with the standalone defaults. */ export const RETAINED_GALLERY_TEMPLATES = [ + ...APPROVED_RETAINED_BATCH, { workflowId: 'MarigoldDepthPipeline:depth_estimation', sourceTaskTemplateId: 'task-template:marigold-depth-lcm-v1-0:depth-estimation:v1', diff --git a/src/studio/templateAssetSource.json b/src/studio/templateAssetSource.json index 7c623914..fc2f0a4b 100644 --- a/src/studio/templateAssetSource.json +++ b/src/studio/templateAssetSource.json @@ -4,11 +4,11 @@ "localBasePath": "/template-gallery", "repoType": "dataset", "repoId": "sourav-das/modiff-template-gallery", - "revision": "decf9bd7ae2db2fe2aabfe729ecaca2765965436", + "revision": "56751b206e461b4a3cdfbcab35b3ae46d8cf43fd", "pathPrefix": "template-gallery", "assetManifestPath": "_modiff/template-assets.v1.json", - "assetSetId": "sha256:canonical-json:a509793eeac8658e1ea9c9a69f6f83524a8a1c87bccb93ef9f0832810258885f", - "completeAssetSetId": "sha256:canonical-json:4434e38c233eb32820d8903661684c0d91b77edf6fae07035a8ea7edd8760651", + "assetSetId": "sha256:canonical-json:93e433f8eccbc604c49832ece766ee09ce6d0aa7d049eabf5391f3e28e400162", + "completeAssetSetId": "sha256:canonical-json:caa900140d82653b84f9c71dda792dda20616498078938bc687b8dfc977b9f72", "unavailableAssets": [ "template-gallery/ace_step_chinese_new_year_lora.card-poster.png", "template-gallery/ace_step_chinese_new_year_lora.wav", diff --git a/src/studio/types.ts b/src/studio/types.ts index 69b02d72..d03c00f5 100644 --- a/src/studio/types.ts +++ b/src/studio/types.ts @@ -252,6 +252,27 @@ export type StudioPresetId = | 'flux_control'; export type StudioTemplateId = + | 'alpine_lake_in_oils' + | 'bookshop_at_blue_hour' + | 'flowers_after_rain' + | 'forest_ferns' + | 'ochre_paper_pavilion' + | 'quiet_current' + | 'persimmon_glaze' + | 'porcelain_on_slate_linen' + | 'salt_marsh_from_above' + | 'cobalt_jug_and_lemons' + | 'copper_hour_dunes' + | 'glasshouse_rain' + | 'pomegranate_on_blue_linen' + | 'canal_lantern_in_warm_light' + | 'the_glasshouse_seed_tray' + | 'quiet_kiln_at_daybreak' + | 'restoring_the_studio_backdrop' + | 'janus_reykjavik_travel_note' + | 'janus_red_triangle_caption' + | 'janus_red_enamel_teapot' + | 'lumina_opal_pendant_in_limestone' | 'marigold_depth_synthetic_ramp' | 'smollm2_rain_gauge' | 'spandrel_x2_synthetic_gradient' From 95bd6a8b909491e4190528164489e517cce9c621 Mon Sep 17 00:00:00 2001 From: Sourav Das Date: Wed, 25 Nov 2026 01:00:17 +0530 Subject: [PATCH 336/440] Verify retained SmolVLM image caption execution --- scripts/prompt-variant-evidence.mjs | 87 ++++++++++++++++++- scripts/prompt-variant-evidence.test.mjs | 22 +++++ scripts/release-contract-core.mjs | 1 + scripts/retained-structured-text-evidence.mjs | 8 ++ 4 files changed, 116 insertions(+), 2 deletions(-) diff --git a/scripts/prompt-variant-evidence.mjs b/scripts/prompt-variant-evidence.mjs index f937b7fd..f9c4baa2 100644 --- a/scripts/prompt-variant-evidence.mjs +++ b/scripts/prompt-variant-evidence.mjs @@ -85,6 +85,28 @@ const janusCaptionRoute = { chain: [['source', 'modules.Image', 'Load', ''], ...janusTextRoute.chain], }; +const smolVlmCaptionRoute = { + ...textRoute, + format: 'modiff.private.smolvlm-caption-variant.v1', + workflowId: 'HuggingFaceImageTextToTextModel:image_to_text', + modelRepo: 'HuggingFaceTB/SmolVLM-256M-Instruct', + modelRevision: '7e3e67edbbed1bf9888184d9df282b700a323964', + bindsImage: true, + baselinePrompt: 'Describe the image.', + executedTask: 'image_to_text', + chain: [ + ['source', 'modules.Image', 'Load', ''], + [ + 'loader', + 'modules.HuggingFaceTransformers', + 'LoadImageTextToTextModel', + 'device dtype model_id pipeline_class revision', + ], + ['generator', 'modules.HuggingFaceTransformers', 'GenerateImageVideoText', 'prompt'], + ['preview', 'modules.Primitive', 'DataViewer', ''], + ], +}; + const videoRoute = { format: 'modiff.private.shap-e-prompt-variant.v1', workflowId: 'ShapEPipeline:text_to_3d', @@ -255,6 +277,9 @@ function validateConsumedPromptVariant(profile, bound, output, suppliedImage) { return [field, { value: field === 'model_id' ? value.value : value, source: 'literal' }]; }), ); + if (profile.executedTask && id === bound.generator.id) { + expected.executed_task = { value: profile.executedTask, source: 'literal' }; + } same(row.fields, expected, `Actual consumed fields differ for ${node.action}.`); } return image; @@ -440,6 +465,61 @@ function validateJanusPromptVariantText(bytes, item, bound, runtime, source) { }; } +function validateSmolVlmCaption(bytes, item, bound, runtime, source) { + const result = nativeTextResult(bytes, item); + keys(result, [ + 'schemaVersion', + 'task', + 'text', + 'finishReason', + 'inputTokens', + 'generatedTokens', + 'imageCount', + 'videoFrameCount', + 'mediaPixels', + 'modelReceipt', + ]); + assert.equal(result.task, 'image-video-to-text'); + assert.equal(result.imageCount, 1); + assert.equal(result.videoFrameCount, 0); + assert.equal(result.mediaPixels, source.width * source.height); + validateGeneratedText(result, bound); + const { receiptDigest, ...record } = result.modelReceipt; + const version = runtime.packages.transformers; + assert.match(version, /^\d+(?:\.\d+){2}(?:[a-z0-9.+-]+)?$/u); + same( + record, + { + schemaVersion: 1, + library: 'transformers', + task: 'image-video-to-text', + loader: { modelAutoClass: 'AutoModelForImageTextToText', preprocessorAutoClass: 'AutoProcessor' }, + runtime: { + architectures: ['Idefics3ForConditionalGeneration'], + device: bound.loader.node.params.device.value, + dtype: bound.loader.node.params.dtype.value, + modelClass: 'Idefics3ForConditionalGeneration', + modelType: 'idefics3', + preprocessorClass: 'Idefics3Processor', + quantization: { mode: 'none' }, + transformersVersion: version, + }, + security: { hostedInference: false, localFilesOnly: true, safetensorsOnly: true, trustRemoteCode: false }, + source: { kind: 'hub', repository: smolVlmCaptionRoute.modelRepo, revision: smolVlmCaptionRoute.modelRevision }, + }, + 'Native SmolVLM model-selection receipt differs from the executed local recipe.', + ); + assert.equal(receiptDigest, `sha256:${canonicalJsonHash(record)}`, 'Native SmolVLM model receipt digest differs.'); + return { + schemaVersion: 1, + kind: 'json', + finishReason: result.finishReason, + inputTokens: result.inputTokens, + generatedTokens: result.generatedTokens, + modelReceiptDigest: receiptDigest, + }; +} + export function validatePromptVariantVideo(decoded, item, bound) { const frameSize = bound.generator.node.params.frame_size.value; const fps = bound.preview.node.params.fps.value; @@ -475,7 +555,7 @@ export async function readPromptVariantEvidence({ clientRoot, manifest, graph, a const imageRoute = directImagePromptRoutes.find(({ workflowId }) => workflowId === target.workflowId); const profile = imageRoute ? { ...imagePromptRoute, ...imageRoute } - : [textRoute, janusTextRoute, janusImageRoute, janusCaptionRoute, videoRoute].find( + : [textRoute, janusTextRoute, janusImageRoute, janusCaptionRoute, smolVlmCaptionRoute, videoRoute].find( ({ workflowId }) => workflowId === target.workflowId, ); assert.ok(profile, 'Prompt variant route is not reviewed.'); @@ -483,7 +563,8 @@ export async function readPromptVariantEvidence({ clientRoot, manifest, graph, a imageRoute !== undefined || profile === janusTextRoute || profile === janusImageRoute || - profile === janusCaptionRoute; + profile === janusCaptionRoute || + profile === smolVlmCaptionRoute; same(target.modelSet, [{ repoId: profile.modelRepo, revision: profile.modelRevision }]); assert.equal(target.outputPlan.minimumAssetCount, 1); assert.ok(target.outputPlan.mediaKinds.includes(profile.outputKind)); @@ -665,6 +746,8 @@ export async function readPromptVariantEvidence({ clientRoot, manifest, graph, a decodedOutput = validatePromptVariantText(media.bytes, item, bound, runtime); } else if (profile === janusTextRoute || profile === janusCaptionRoute) { decodedOutput = validateJanusPromptVariantText(media.bytes, item, bound, runtime, inputBinding?.decodedImage); + } else if (profile === smolVlmCaptionRoute) { + decodedOutput = validateSmolVlmCaption(media.bytes, item, bound, runtime, inputBinding.decodedImage); } else if (profile === videoRoute) { const { decodedMediaHash } = await import('./template-gallery-harness.mjs'); decodedOutput = validatePromptVariantVideo(await decodedMediaHash(media.file, 'video'), item, bound); diff --git a/scripts/prompt-variant-evidence.test.mjs b/scripts/prompt-variant-evidence.test.mjs index b5e75481..36cbf6cb 100644 --- a/scripts/prompt-variant-evidence.test.mjs +++ b/scripts/prompt-variant-evidence.test.mjs @@ -347,6 +347,12 @@ for (const [workflowId, variable, kind, proofKind = 'real_backend_prompt_bound_m 'json', 'real_backend_input_bound_model_variant', ], + [ + 'HuggingFaceImageTextToTextModel:image_to_text', + 'MODIFF_SMOLVLM_CAPTION_EVIDENCE', + 'json', + 'real_backend_input_bound_model_variant', + ], ['LuminaPipeline:text_to_image', 'MODIFF_LUMINA_PROMPT_EVIDENCE', 'image'], ['HuggingFaceTextGenerationModel:text_generation', 'MODIFF_SMOLLM2_PROMPT_EVIDENCE', 'json'], ['ShapEPipeline:text_to_3d', 'MODIFF_SHAPE_PROMPT_EVIDENCE', 'video'], @@ -367,6 +373,22 @@ for (const [workflowId, variable, kind, proofKind = 'real_backend_prompt_bound_m assert.equal(original.receipt.canonicalDefaultsExecuted, false); assert.equal(original.receipt.decodedOutput.kind, kind); assert.ok(Object.values(original.receipt.qualificationClaims).every((claim) => claim === false)); + if (workflowId === 'HuggingFaceImageTextToTextModel:image_to_text') { + const [{ file }] = original.evidence.outputs; + const transportBytes = readCanonicalEvidenceFile(dirname(evidencePath), file).bytes; + const structuredBytes = Buffer.from(JSON.parse(transportBytes)[0]); + const args = { + receipt: original.receipt, + transportBytes, + structuredBytes, + outputSha256: digest(structuredBytes), + }; + assert.equal(verifyRetainedStructuredText(args).sourceOutputHash, original.receipt.outputHash); + assert.throws( + () => verifyRetainedStructuredText({ ...args, receipt: { ...original.receipt, inputBinding: undefined } }), + /missing its original source evidence/u, + ); + } const temp = mkdtempSync(join(tmpdir(), 'modiff-prompt-variant-')); try { const refs = original.retainedFiles; diff --git a/scripts/release-contract-core.mjs b/scripts/release-contract-core.mjs index d4689126..3695cafa 100644 --- a/scripts/release-contract-core.mjs +++ b/scripts/release-contract-core.mjs @@ -850,6 +850,7 @@ export async function readCanonicalWorkflowEvidence({ clientRoot, backendRoot, w 'modiff.private.janus-text-prompt-variant.v1', 'modiff.private.janus-image-prompt-variant.v1', 'modiff.private.janus-caption-variant.v1', + 'modiff.private.smolvlm-caption-variant.v1', 'modiff.private.shap-e-prompt-variant.v1', ].includes(evidence.format) || directImagePromptRoutes.some(({ format }) => format === evidence.format) diff --git a/scripts/retained-structured-text-evidence.mjs b/scripts/retained-structured-text-evidence.mjs index 78ac0576..70703c8c 100644 --- a/scripts/retained-structured-text-evidence.mjs +++ b/scripts/retained-structured-text-evidence.mjs @@ -19,6 +19,7 @@ export function verifyRetainedStructuredText({ receipt, transportBytes, structur 'HuggingFaceTextGenerationModel:text_generation': ['real_backend_prompt_bound_model_variant', 'text-generation'], 'HuggingFaceAnyToAnyModel:text_generation': ['real_backend_prompt_bound_model_variant', 'any-to-any-generation'], 'HuggingFaceAnyToAnyModel:image_to_text': ['real_backend_input_bound_model_variant', 'any-to-any-generation'], + 'HuggingFaceImageTextToTextModel:image_to_text': ['real_backend_input_bound_model_variant', 'image-video-to-text'], }; const route = Object.hasOwn(textRoutes, receipt?.workflowId) ? textRoutes[receipt.workflowId] : null; assert.ok( @@ -68,6 +69,13 @@ export function verifyRetainedStructuredText({ receipt, transportBytes, structur assert.equal(native.inputImageCount, caption ? 1 : 0); assert.equal(native.inputMediaPixels, caption ? source.width * source.height : 0); } + if (native.task === 'image-video-to-text') { + const source = receipt.inputBinding?.decodedImage; + assert.ok(source, 'Caption result is missing its original source evidence.'); + assert.equal(native.imageCount, 1); + assert.equal(native.videoFrameCount, 0); + assert.equal(native.mediaPixels, source.width * source.height); + } const { receiptDigest, ...model } = native.modelReceipt; assert.equal(receiptDigest, `sha256:${canonicalJsonHash(model)}`, 'Native text model receipt digest differs.'); assert.deepEqual( From 769f7fc7c3c46e2d93ddd87489d8a8df58223f22 Mon Sep 17 00:00:00 2001 From: Sourav Das Date: Wed, 25 Nov 2026 01:07:53 +0530 Subject: [PATCH 337/440] Replay the 21 approved workflows after catalog packaging Require exact archived authoring records for the retired hidden candidates. Add portable release checks that distinguish retained records from modified captures. --- ...etained-gallery-authoring-archives.v1.json | 107 ++++++++++++++++++ scripts/prompt-variant-evidence.test.mjs | 4 +- scripts/release-contract-core.mjs | 2 + scripts/retained-gallery-templates.test.mjs | 11 ++ 4 files changed, 123 insertions(+), 1 deletion(-) create mode 100644 config/retained-gallery-authoring-archives.v1.json diff --git a/config/retained-gallery-authoring-archives.v1.json b/config/retained-gallery-authoring-archives.v1.json new file mode 100644 index 00000000..e0adf5ec --- /dev/null +++ b/config/retained-gallery-authoring-archives.v1.json @@ -0,0 +1,107 @@ +{ + "AuraFlowPipeline:text_to_image": { + "descriptorSha256": "c4ce21c85cf0412cc1e69ff59009037bbdde9d1692cff19f307d589b84fb5b1f", + "bytes": 4108, + "sha256": "945515d6dee658ed3cf4503b674b33d73149a091f98ecb438a01970c5c08d820" + }, + "CogView3PlusPipeline:text_to_image": { + "descriptorSha256": "19c1e125e259b8b0e22a5bf5c03ab7c105a8302fc69b7e63c61796d7b7496744", + "bytes": 4135, + "sha256": "8e7775f9f0213646dad474747622c3daab32ad6ffd7d15c9b30b88ade40344a6" + }, + "CogView4Pipeline:text_to_image": { + "descriptorSha256": "7cb177ef1dac774f3cb76c3f58cf246fbdbf7673a78e379ff54e7fba5fa1a85f", + "bytes": 4067, + "sha256": "4a085738b6d9e818596480a5ed7a0bda9f663670d35cf49385be56d74b241ce2" + }, + "ErnieImagePipeline:text_to_image": { + "descriptorSha256": "45f9a07cbd540055ad63000eb928be4a1b685c4b622bf46b84c98784e2c61139", + "bytes": 4122, + "sha256": "4072211fe61effe609b205e87cc599542446e73be2a9d108b27b87f52815064c" + }, + "GlmImagePipeline:text_to_image": { + "descriptorSha256": "193b411fea187862b1af32edf24623f0cfd75a9f0d856a66b07fe99b1e562833", + "bytes": 4113, + "sha256": "538a6b30027a76e723ada2716c4c07f8dc17af247cfb71304b35bda43510c4aa" + }, + "HuggingFaceAnyToAnyModel:image_to_text": { + "descriptorSha256": "13c313cdf72749eea9789f1cef22fa7e1106d1c46cf6d3a0fb0757c00677c45c", + "bytes": 3662, + "sha256": "6c21dca774c759b82adcef3a7a749146a6e46b5d885694a3c516eb75dbd0429e" + }, + "HuggingFaceAnyToAnyModel:text_generation": { + "descriptorSha256": "5c9d37ae6894cd6aa04a9bfc4a91beaf7e9eb73bef40e2edc144ddce0215b3e7", + "bytes": 3139, + "sha256": "a7da7a73ed531ea097ef2044d88d156a17c0e9104862cf2c3d21cf48248c1416" + }, + "HuggingFaceAnyToAnyModel:text_to_image": { + "descriptorSha256": "5820a7260e3f78175f684b39ee2a28c244bfb7cfaed6318c256c642dce306ecd", + "bytes": 3257, + "sha256": "983434b29fc3b2b54690bef0dcab7e7d765d66eac3a81534bbbf7debb5c9fc79" + }, + "LatentConsistencyModelPipeline:text_to_image": { + "descriptorSha256": "b23f6c1d6ea11f928eab1c62422e49a288645e6f46ecf0c4f1b4994e95ad56ea", + "bytes": 4229, + "sha256": "a5cb8dddeaf3f82f84025ceeded8a59c186a33e20f8cff733cbd32624e9e3a59" + }, + "LuminaPipeline:text_to_image": { + "descriptorSha256": "cbb5826ba9e44f9608ef88d6c52757cbd040c9bcb611f88e5892a2e93c79c8d3", + "bytes": 4167, + "sha256": "5767302415a0ada7fbef1fd186df344ea7204a2be2b22c2035f07e2b2088d564" + }, + "NucleusMoEImagePipeline:text_to_image": { + "descriptorSha256": "adc6e23f1c2082c72ea9e0697cc87f4e7da5d8cc01540d06f0d6e08acea81a04", + "bytes": 4121, + "sha256": "9dc242dd86b1a286c5822328a3c0a05dd0f077fdefc17990a5cf086de9e53f3d" + }, + "OvisImagePipeline:text_to_image": { + "descriptorSha256": "37580a349097d0a2e201a6daa48f3cc541c62260306e4153c4995e2d0615a72c", + "bytes": 4103, + "sha256": "fad8cc96b399b48f86738f9ad17cd8b2a468a351725997c5d668fb648480db06" + }, + "PRXPipeline:text_to_image": { + "descriptorSha256": "77d2fb24693cf118ec83aea3c2a53a3c8558b13b78f0bae478458e53896dcabd", + "bytes": 4027, + "sha256": "912dc80ea1fbd712358db93e1b4808850bbe6659ea6adcd3f9c9205d5cf2f188" + }, + "SanaPAGPipeline:text_to_image": { + "descriptorSha256": "2e80e952039cfbc7b42f7f1b5689f30fb8b8f83646e0f4c2f6cb8e3a68b8d784", + "bytes": 4223, + "sha256": "fcfb1ff59de112a555b88307312610465acd2e9ce5bfdd6f66c6eecc544745e1" + }, + "SanaSprintPipeline:text_to_image": { + "descriptorSha256": "e6693f3cb5cc81bbac653e0f89c15e2871fdbb67ad37c4f3c63514bbf4e0aa43", + "bytes": 4134, + "sha256": "6c40aefc3fd65ed6bf87626873bb0377e7fba8ff4fbdbc5c0d3e4e0e3531968a" + }, + "StableDiffusionPAGPipeline:text_to_image": { + "descriptorSha256": "ad23b58153c3301fd0125a0a66e9e110a61a16e0c8833563cd3ca51109fe5056", + "bytes": 4433, + "sha256": "419397857a211d1ba3812d32cc47678a00883b5d70114a80079d8415176d09ed" + }, + "StableDiffusionPipeline:edit_image": { + "descriptorSha256": "ce72fd7e5d5f263f68f94ae15778a596a3161c38c0f4092531f0c719b78667d8", + "bytes": 4799, + "sha256": "24e9ff077725308d4e2c6b8be3bfa3cb7d01c17c70ad023aee9d69b8299da02e" + }, + "StableDiffusionPipeline:inpaint": { + "descriptorSha256": "74c30496f6c07b0eceae986254a425b0b919b5e5d91fc668839d31a59783a4a6", + "bytes": 5254, + "sha256": "3e87dce95449f7eb25d1f271c7ba8748f05e82cf151a768e058a804c9a8789ee" + }, + "StableDiffusionPipeline:text_to_image": { + "descriptorSha256": "235118ee94df6adef140079116b17158e2922bf861a5f6d7d23f4f3f988d3927", + "bytes": 4194, + "sha256": "642ccf45dd15946ead72c9666b394a9932d92d0dca64f13dfae0284edc55b9c5" + }, + "StableDiffusionXLPAGPipeline:text_to_image": { + "descriptorSha256": "e5bcc2b64bfddcadc334c20f0c125fdcae68760cde1ff60ec10d1a22ce81a997", + "bytes": 4412, + "sha256": "2b526a0dec7fbee4a8553727a4c001e269b524551ad5169ea4928f8b4a76b633" + }, + "StableDiffusionXLPipeline:text_to_image": { + "descriptorSha256": "944ff90f533867016d514d9cdd7a35648e711359c55f2ae06fc3bac8e88b63e8", + "bytes": 4267, + "sha256": "07305066b2f96232db5f26d62e1d9fbf9f3a21d84f97328208a7e066798234a1" + } +} diff --git a/scripts/prompt-variant-evidence.test.mjs b/scripts/prompt-variant-evidence.test.mjs index 36cbf6cb..14c5fc41 100644 --- a/scripts/prompt-variant-evidence.test.mjs +++ b/scripts/prompt-variant-evidence.test.mjs @@ -410,7 +410,9 @@ for (const [workflowId, variable, kind, proofKind = 'real_backend_prompt_bound_m writeFileSync(changedPath, JSON.stringify(substituted)); await assert.rejects( () => readCanonicalWorkflowEvidence({ ...args, evidencePath: changedPath }), - /Caption source bytes differ from the native load/u, + workflowId === 'HuggingFaceAnyToAnyModel:image_to_text' + ? /Caption source bytes differ from the native load|Archived authoring requires the exact original capture/u + : /Caption source bytes differ from the native load/u, ); writeFileSync(path, originalBytes); } diff --git a/scripts/release-contract-core.mjs b/scripts/release-contract-core.mjs index 3695cafa..3ccda641 100644 --- a/scripts/release-contract-core.mjs +++ b/scripts/release-contract-core.mjs @@ -4,6 +4,7 @@ import assert from 'node:assert/strict'; import { createHash } from 'node:crypto'; import { lstatSync, readFileSync, realpathSync } from 'node:fs'; import { dirname, isAbsolute, join, sep } from 'node:path'; +import retainedGalleryAuthoringArchives from '../config/retained-gallery-authoring-archives.v1.json' with { type: 'json' }; import { backendSourceEvidence, canonicalGraphIdentity, @@ -732,6 +733,7 @@ const RETAINED_AUTHORING_ARCHIVES = new Map([ sha256: '47a822a576ca20855d10311136e51651c5a2765bdd6c7fb3d79f8ab781bb0c0f', }, ], + ...Object.entries(retainedGalleryAuthoringArchives), ]); function archivedCanonicalAuthoring(backendRoot, workflowId, evidencePath) { diff --git a/scripts/retained-gallery-templates.test.mjs b/scripts/retained-gallery-templates.test.mjs index 80e196e2..44f10e9a 100644 --- a/scripts/retained-gallery-templates.test.mjs +++ b/scripts/retained-gallery-templates.test.mjs @@ -5,6 +5,7 @@ import { existsSync, readFileSync } from 'node:fs'; import { after, before, test } from 'node:test'; import { join, resolve } from 'node:path'; import { createServer } from 'vite'; +import retainedGalleryAuthoringArchives from '../config/retained-gallery-authoring-archives.v1.json' with { type: 'json' }; import { canonicalJsonHash } from './canonical-json.mjs'; import { canonicalGraphIdentity } from './live-proof-provenance.mjs'; import { readCanonicalEvidenceFile } from './release-contract-core.mjs'; @@ -149,6 +150,10 @@ test('retained Gallery recipes preserve the native graph identities and standalo taskContract: true, }); if (approvedBatchIds.has(template.id)) { + const authoringArchive = retainedGalleryAuthoringArchives[recipe.workflowId]; + assert.equal(authoringArchive.descriptorSha256, recipe.originalReceiptSha256); + assert.ok(authoringArchive.bytes > 0); + assert.match(authoringArchive.sha256, /^[a-f0-9]{64}$/u); const evidenceRoot = join( backend, 'data/qualification/release/canonical-workflow-evidence', @@ -157,6 +162,12 @@ test('retained Gallery recipes preserve the native graph identities and standalo const evidenceFile = join(evidenceRoot, 'evidence.json'); assert.equal(sha256(template.prompt), recipe.promptSha256); if (existsSync(evidenceFile)) { + const originalAuthoring = readCanonicalEvidenceFile(evidenceRoot, { + path: 'authoring-spec.original.json', + bytes: authoringArchive.bytes, + sha256: authoringArchive.sha256, + }); + assert.equal(JSON.parse(originalAuthoring.bytes).canonicalWorkflowId, recipe.workflowId); const bytes = readFileSync(evidenceFile); assert.equal(sha256(bytes), recipe.originalReceiptSha256); const descriptor = JSON.parse(bytes); From d10bf11598f0a7b25973c3c9cc88e420a3478966 Mon Sep 17 00:00:00 2001 From: Sourav Das Date: Wed, 25 Nov 2026 01:14:46 +0530 Subject: [PATCH 338/440] Verify retained Kandinsky 3 CPU execution and sampled memory Replay the exact original graph and capture. Measure the highest original in-run worker RSS sample without making GPU or physical platform claims. --- scripts/live-proof-provenance.mjs | 27 +++++++- scripts/prompt-variant-evidence.mjs | 81 ++++++++++++++++++++++-- scripts/prompt-variant-evidence.test.mjs | 28 ++++++++ 3 files changed, 129 insertions(+), 7 deletions(-) diff --git a/scripts/live-proof-provenance.mjs b/scripts/live-proof-provenance.mjs index 87e7fea8..462786f3 100644 --- a/scripts/live-proof-provenance.mjs +++ b/scripts/live-proof-provenance.mjs @@ -2213,6 +2213,31 @@ const plainImageInactive = const plainImageLegacyNull = ['control_guidance_start', 'conditioning_scale', 'strength', 'control_guidance_end']; const pagScalars = ['pag_scale', 'pag_adaptive_scale']; export const directImagePromptRoutes = [ + { + format: 'modiff.private.kandinsky3-cpu-prompt-variant.v1', + workflowId: 'Kandinsky3Pipeline:text_to_image', + modelType: 'Kandinsky3Pipeline', + modelRepo: 'kandinsky-community/kandinsky-3', + modelRevision: 'bf79e6c219da8a94abb50235fdc4567eb8fb4632', + active: [...plainImageActive, 'negative_prompt'], + inactive: [...plainImageInactive, 'max_sequence_length'], + legacyNull: [...plainImageLegacyNull, 'max_sequence_length'], + platform: /^Linux-/u, + backend: 'rocm', + executionDevice: 'cpu:0', + dtype: 'float32', + offload: 'none', + deviceMap: 'none', + generation: { + width: 1024, + height: 1024, + num_inference_steps: 25, + guidance_scale: 3, + max_sequence_length: 128, + seed: 42, + negative_prompt: '', + }, + }, { format: 'modiff.private.lumina-prompt-variant.v1', workflowId: 'LuminaPipeline:text_to_image', @@ -3154,7 +3179,7 @@ function imageAccountingExecutionPlan( assert.equal(value(generate, key), expected, `Direct image ${key} is outside the reviewed accounting scope.`); assert.ok(Number.isSafeInteger(value(generate, 'seed')) && value(generate, 'seed') >= 0); assert.equal(value(owner, 'dtype'), promptVariant.dtype); - assert.equal(value(owner, 'device'), 'cuda:0'); + assert.equal(value(owner, 'device'), promptVariant.executionDevice ?? 'cuda:0'); assert.equal(value(owner, 'device_map'), promptVariant.deviceMap); assert.equal(recipeValues.attention_backend, 'auto'); same(recipeValues.attention_components, [], 'Direct image attention component scope differs.'); diff --git a/scripts/prompt-variant-evidence.mjs b/scripts/prompt-variant-evidence.mjs index f9c4baa2..ba1cadf1 100644 --- a/scripts/prompt-variant-evidence.mjs +++ b/scripts/prompt-variant-evidence.mjs @@ -194,10 +194,27 @@ export function bindPromptVariant(profile, original, created, output, baselineHa graphEnvelope(original); graphEnvelope(created); graphEnvelope(output, true); - const baseline = canonicalGraphIdentity(original); - assert.equal(baseline.hash, baselineHash, 'The current authored prompt recipe differs from the original baseline.'); const expected = structuredClone(original); const expectedOwners = owners(profile, expected); + if (profile.executionDevice === 'cpu:0') { + const cpuChanges = [ + [expectedOwners.loader, 'auto_offload', true, false], + [expectedOwners.loader, 'device', 'cuda:0', 'cpu:0'], + [expectedOwners.loader, 'dtype', 'float16', 'float32'], + [expectedOwners.loader, 'offload_mode', 'model_cpu', 'none'], + [expectedOwners.quantization, 'dtype', 'float16', 'float32'], + [expectedOwners.recipe, 'device', 'cuda:0', 'cpu:0'], + [expectedOwners.recipe, 'offload_mode', 'model_cpu', 'none'], + ]; + for (const [owner, field, originalValue, cpuValue] of cpuChanges) { + const param = owner.node.params[field]; + assert.equal(param.value, originalValue); + assert.ok(!param.sourceId && !param.sourceKey, 'A CPU variant requires literal resource controls.'); + param.value = cpuValue; + } + } + const baseline = canonicalGraphIdentity(expected); + assert.equal(baseline.hash, baselineHash, 'The current authored prompt recipe differs from the original baseline.'); const expectedInputs = expectedOwners.generator.node.params; if (profile.bindsImage) { assert.match(sourceValue, /^@data\/images\/[a-z0-9_-]{1,120}[.]png$/iu); @@ -297,10 +314,12 @@ function validateNativePromptRuntime(profile, bound, task, hints, graphCompleted assert.ok(runtime, 'Native runtime fingerprint is incomplete.'); const { backend, device, peakMeasurementVersion, elapsedSeconds, peakAllocatedBytes } = task.runtimeMeasurement; assert.equal(backend, profile.backend); - assert.equal(device, bound.loader.node.params.device.value); + assert.equal(device, profile.executionDevice === 'cpu:0' ? 'cuda:0' : bound.loader.node.params.device.value); assert.equal(peakMeasurementVersion, 2); assert.ok(Number.isFinite(elapsedSeconds) && elapsedSeconds > 0 && elapsedSeconds <= 7200); - assert.ok(Number.isSafeInteger(peakAllocatedBytes) && peakAllocatedBytes > 0); + assert.ok(Number.isSafeInteger(peakAllocatedBytes)); + if (profile.executionDevice === 'cpu:0') assert.equal(peakAllocatedBytes, 0); + else assert.ok(peakAllocatedBytes > 0); assert.equal(observation.error, false); assert.equal(observation.runtimeFingerprint, runtime.fingerprint); assert.equal(observation.models.length, 1); @@ -315,6 +334,42 @@ function validateNativePromptRuntime(profile, bound, task, hints, graphCompleted return { runtime, measurement: task.runtimeMeasurement }; } +export function validateSampledCpuWorkerMemory(bytes, worker, source, task) { + keys(worker, ['origin', 'pid', 'source']); + assert.match(worker.origin, /^http:\/\/127[.]0[.]0[.]1:[1-9][0-9]{0,4}$/u); + assert.ok(Number.isSafeInteger(worker.pid) && worker.pid > 0); + assert.equal(worker.source.fingerprint, source.fingerprint); + assert.equal(worker.source.fileCount, source.files.length); + assert.equal(worker.source.gitCommit, source.gitCommit); + const samples = new TextDecoder('utf-8', { fatal: true }) + .decode(bytes) + .trim() + .split(/\r?\n/u) + .map((line) => JSON.parse(line)); + const { started_at: started, completed_at: completed } = task; + assert.ok(Number.isFinite(started) && Number.isFinite(completed) && completed > started); + assert.ok(samples.length >= 3 && samples.length <= 10000); + assert.ok(samples[0].unixTime <= started && started - samples[0].unixTime < 15); + assert.ok(samples.at(-1).unixTime >= completed && samples.at(-1).unixTime - completed < 15); + let previous = -Infinity; + let peak = 0; + for (const sample of samples) { + keys(sample, ['unixTime', 'hostAvailable', 'workerRss', 'accelerator']); + const { unixTime, workerRss, hostAvailable } = sample; + assert.ok(Number.isFinite(unixTime) && unixTime > previous); + if (Number.isFinite(previous)) assert.ok(unixTime - previous <= 3); + assert.ok(Number.isSafeInteger(workerRss) && workerRss > 0); + assert.ok(Number.isSafeInteger(hostAvailable) && hostAvailable > 0); + if (unixTime >= started && unixTime <= completed) peak = Math.max(peak, workerRss); + previous = unixTime; + } + assert.ok( + Number.isSafeInteger(task.runtimeMeasurement.processRssBytes) && task.runtimeMeasurement.processRssBytes > 0, + ); + assert.ok(peak >= task.runtimeMeasurement.processRssBytes); + return peak; +} + function validateImagePromptPreparation(preparation, modelType) { if (preparation?.performed !== true) { validateUnmodifiedExpertPreparation(preparation, modelType); @@ -565,6 +620,7 @@ export async function readPromptVariantEvidence({ clientRoot, manifest, graph, a profile === janusImageRoute || profile === janusCaptionRoute || profile === smolVlmCaptionRoute; + const sampledCpuMemory = profile.executionDevice === 'cpu:0'; same(target.modelSet, [{ repoId: profile.modelRepo, revision: profile.modelRevision }]); assert.equal(target.outputPlan.minimumAssetCount, 1); assert.ok(target.outputPlan.mediaKinds.includes(profile.outputKind)); @@ -589,6 +645,7 @@ export async function readPromptVariantEvidence({ clientRoot, manifest, graph, a 'outputs', ...(requiresOriginalRequest ? ['graphRequest', 'graphAcknowledgment'] : []), ...(profile.lateNativeSnapshot ? ['persistedOutputs'] : []), + ...(sampledCpuMemory ? ['worker', 'resourceSamples'] : []), ]); assert.equal(evidence.schemaVersion, 1); assert.equal(evidence.format, profile.format); @@ -728,6 +785,14 @@ export async function readPromptVariantEvidence({ clientRoot, manifest, graph, a graphCompleted, json(evidence.modelObservations[0]), ); + const peakMemoryBytes = sampledCpuMemory + ? validateSampledCpuWorkerMemory( + read(evidence.resourceSamples, 1024 * 1024).bytes, + json(evidence.worker), + source.identity, + task, + ) + : measurement.peakAllocatedBytes; const media = read(outputRef.file, 2 * 1024 * 1024); const item = validateNativeVariantOutput({ output, @@ -777,13 +842,17 @@ export async function readPromptVariantEvidence({ clientRoot, manifest, graph, a resourceCandidateId: null, outputHash: item.mediaHash, executionDurationSeconds: measurement.elapsedSeconds, - peakMemoryBytes: measurement.peakAllocatedBytes, + peakMemoryBytes, canonicalDefaultsExecuted: false, promptBinding: { nodeId: bound.generator.id, field: 'prompt', sha256: digest(bound.prompt) }, ...(inputBinding ? { inputBinding } : {}), ...(accounting ? { seedBinding: { nodeId: bound.generator.id, field: 'seed', value: bound.seed } } : {}), decodedOutput, - observationLimits: { fullConsumedFieldAccounting: Boolean(accounting), physicalPlatformQualification: false }, + observationLimits: { + fullConsumedFieldAccounting: Boolean(accounting), + physicalPlatformQualification: false, + ...(sampledCpuMemory ? { memoryMeasurement: 'sampled_worker_rss' } : {}), + }, qualificationClaims: { publicTemplate: false, qualityApproved: false, diff --git a/scripts/prompt-variant-evidence.test.mjs b/scripts/prompt-variant-evidence.test.mjs index 14c5fc41..ca57391f 100644 --- a/scripts/prompt-variant-evidence.test.mjs +++ b/scripts/prompt-variant-evidence.test.mjs @@ -12,6 +12,7 @@ import { bindPromptVariant, validatePromptVariantText, validatePromptVariantVideo, + validateSampledCpuWorkerMemory, } from './prompt-variant-evidence.mjs'; import { exportCanonicalWorkflowGraphs, @@ -23,6 +24,32 @@ const clientRoot = fileURLToPath(new URL('..', import.meta.url)); const backendRoot = resolve(clientRoot, '../MoDiff'); const digest = (value) => createHash('sha256').update(value).digest('hex'); +test('a CPU capture measures sampled worker memory within its exact original task interval', () => { + const source = { fingerprint: 'original', gitCommit: null, files: [{}] }; + const worker = { + origin: 'http://127.0.0.1:8088', + pid: 123, + source: { fingerprint: source.fingerprint, gitCommit: null, fileCount: 1 }, + }; + const task = { started_at: 9.5, completed_at: 11.5, runtimeMeasurement: { processRssBytes: 100 } }; + const samples = [ + { unixTime: 9, hostAvailable: 1000, workerRss: 999, accelerator: '{}' }, + { unixTime: 10, hostAvailable: 1000, workerRss: 180, accelerator: '{}' }, + { unixTime: 11, hostAvailable: 1000, workerRss: 120, accelerator: '{}' }, + { unixTime: 12, hostAvailable: 1000, workerRss: 999, accelerator: '{}' }, + ]; + const capture = (entries) => Buffer.from(entries.map((entry) => JSON.stringify(entry)).join('\n')); + assert.equal(validateSampledCpuWorkerMemory(capture(samples), worker, source, task), 180); + assert.throws(() => validateSampledCpuWorkerMemory(capture(samples.slice(0, -1)), worker, source, task)); + assert.throws(() => + validateSampledCpuWorkerMemory(capture(samples), worker, { ...source, fingerprint: 'other' }, task), + ); + const contradicted = { ...task, runtimeMeasurement: { processRssBytes: 300 } }; + assert.throws(() => validateSampledCpuWorkerMemory(capture(samples), worker, source, contradicted)); + const unordered = [samples[0], samples[2], samples[1], samples[3]]; + assert.throws(() => validateSampledCpuWorkerMemory(capture(unordered), worker, source, task)); +}); + test('a prompt variant fills a single empty literal and keeps all other fields and connections', () => { const profile = { chain: [ @@ -354,6 +381,7 @@ for (const [workflowId, variable, kind, proofKind = 'real_backend_prompt_bound_m 'real_backend_input_bound_model_variant', ], ['LuminaPipeline:text_to_image', 'MODIFF_LUMINA_PROMPT_EVIDENCE', 'image'], + ['Kandinsky3Pipeline:text_to_image', 'MODIFF_KANDINSKY3_CPU_PROMPT_EVIDENCE', 'image'], ['HuggingFaceTextGenerationModel:text_generation', 'MODIFF_SMOLLM2_PROMPT_EVIDENCE', 'json'], ['ShapEPipeline:text_to_3d', 'MODIFF_SHAPE_PROMPT_EVIDENCE', 'video'], ['CogView3PlusPipeline:text_to_image', 'MODIFF_COGVIEW3_PROMPT_EVIDENCE', 'image'], From 08157a9b41b43e780b346199c88cca0793afd566 Mon Sep 17 00:00:00 2001 From: Sourav Das Date: Wed, 25 Nov 2026 01:53:54 +0530 Subject: [PATCH 339/440] Register six approved retained Gallery recipes Bind exact DDIM, SDXL, Whisper Small, SmolVLM and Kandinsky evidence to immutable Gallery revision 7a5c7bd. Preserve the private sources and verify the fresh authoring path. --- config/release-showcase-scope.v1.json | 40 +- .../retained-gallery-approved-batch.v1.json | 68 ++ ...etained-gallery-authoring-archives.v1.json | 30 + config/template-asset-rights.v1.json | 926 +++++++++++++++++- config/template-assets.v1.json | 310 +++++- public/template-gallery/manifest.json | 180 ++++ scripts/bundle-budget.mjs | 4 + scripts/modiff-template.test.mjs | 6 +- scripts/release-contract.mjs | 7 +- scripts/retained-gallery-release.mjs | 62 +- scripts/retained-gallery-templates.test.mjs | 36 +- scripts/retained-speech-gallery-evidence.mjs | 14 +- scripts/template-gallery-harness.test.mjs | 4 +- src/studio/graphBridge.ts | 22 +- src/studio/retainedGalleryApprovedBatch.ts | 507 ++++++++++ src/studio/templateAssetSource.json | 6 +- src/studio/templateExactness.ts | 9 +- src/studio/types.ts | 8 +- 18 files changed, 2169 insertions(+), 70 deletions(-) diff --git a/config/release-showcase-scope.v1.json b/config/release-showcase-scope.v1.json index 3a1ccca3..fec8057d 100644 --- a/config/release-showcase-scope.v1.json +++ b/config/release-showcase-scope.v1.json @@ -4,7 +4,7 @@ "name": "Registered showcase preview without AMD-cloud backlog", "dataset": { "repository": "sourav-das/modiff-template-gallery", - "revision": "56751b206e461b4a3cdfbcab35b3ae46d8cf43fd" + "revision": "7a5c7bd80df3c9179762bece6adc28dd62e1ab9e" }, "originalCampaign": { "total": 89, @@ -645,7 +645,43 @@ "category": "supplementary-only", "reason": "Published and registered as a supplementary Gallery example outside the original campaign selection.", "countedAsComplete": false + }, + { + "id": "ddim_cifar10_preview", + "category": "supplementary-only", + "reason": "Published and registered from the approved saved run outside the original campaign selection.", + "countedAsComplete": false + }, + { + "id": "sdxl_clear_cobalt_backdrop", + "category": "supplementary-only", + "reason": "Published and registered from the approved saved run outside the original campaign selection.", + "countedAsComplete": false + }, + { + "id": "sdxl_turbo_orange_caps", + "category": "supplementary-only", + "reason": "Published and registered from the approved saved run outside the original campaign selection.", + "countedAsComplete": false + }, + { + "id": "whisper_small_an_open_door", + "category": "supplementary-only", + "reason": "Published and registered from the approved saved run outside the original campaign selection.", + "countedAsComplete": false + }, + { + "id": "smolvlm_red_triangle", + "category": "supplementary-only", + "reason": "Published and registered from the approved saved run outside the original campaign selection.", + "countedAsComplete": false + }, + { + "id": "kandinsky3_ginkgo_on_slate", + "category": "supplementary-only", + "reason": "Published and registered from the approved saved run outside the original campaign selection.", + "countedAsComplete": false } ], - "profileHash": "sha256:canonical-json:298993cbcd745bae76a26da29985d312702836108014a3fe3bb07d5ae57ac716" + "profileHash": "sha256:canonical-json:4a48c6b4502baaad0573b0bb0f1c1fb4030663fe72cf7aa1c5214c1a724eb778" } diff --git a/config/retained-gallery-approved-batch.v1.json b/config/retained-gallery-approved-batch.v1.json index e0de0219..36918e4b 100644 --- a/config/retained-gallery-approved-batch.v1.json +++ b/config/retained-gallery-approved-batch.v1.json @@ -250,5 +250,73 @@ "width": 1024, "height": 1024 } + }, + "ddim_cifar10_preview": { + "associationSha256": "549bae13109f9c98a1f010748011a727511311bda9cf27b2cf70e460b74f6205", + "backendSourceFingerprint": "sha256:backend-source-v1:7073247d40471c857faf3c52f186d17923fbdf3c44234232a8c6f8b9db925663", + "backendContractFingerprint": "sha256:backend-contract-v1:53144518f3a56e4644f06618acdc61a3e6c4f8dbacbca96e7d2e9912d699836b", + "templateRevisionHash": "1f41b7d2d7bccb216f46b9ce174a9d4246f0348584e208baeeaa4af92c172c9f", + "capturedAt": "2026-11-14T06:55:56.039Z", + "outputExtension": "webp", + "outputSize": { + "width": 32, + "height": 32 + } + }, + "sdxl_clear_cobalt_backdrop": { + "associationSha256": "521b7a02cb3320f0c9518529323ccd9f545913a181851da3c425bd5c06dc7588", + "backendSourceFingerprint": "sha256:backend-source-v1:a7a074387d21c2a016af41b7de9d090fd6377b8efe388047bc50201779908464", + "backendContractFingerprint": "sha256:backend-contract-v1:61201b43ea68d3fd347fbc374e292b5839be28f908b473bcb69f5ec1f8b87736", + "templateRevisionHash": "5ac53251bbc44c8b3eb62ab06fba702e275ebc7340348f36fb20a055d36b3573", + "capturedAt": "2026-11-24T12:07:41.410Z", + "outputExtension": "webp", + "outputSize": { + "width": 1024, + "height": 1024 + }, + "inputSize": { + "width": 1024, + "height": 1024 + } + }, + "sdxl_turbo_orange_caps": { + "associationSha256": "85cf071e354281c57ed922fc7a4a112c34ebe994be2d2f52221f23bf12865b34", + "backendSourceFingerprint": "sha256:backend-source-v1:057b165c6ef6225461649a47077562dffad098a2d37d639a13bf0e73088d79ab", + "backendContractFingerprint": "sha256:backend-contract-v1:300f2fb801e65ef8a0355d217f3f89e59d11e38f976af5a86ba41212d30216fd", + "templateRevisionHash": "a8bae14e8dc50c3969cba99c45be96d5ffbbca1fa12824640f5c3360bcc4427c", + "capturedAt": "2026-11-23T14:40:52.201Z", + "outputExtension": "webp", + "outputSize": { + "width": 512, + "height": 512 + } + }, + "whisper_small_an_open_door": { + "associationSha256": "a6f56721c12e3ddffb35182f4b457b4af8255563e712753979b2787226a84d95", + "backendSourceFingerprint": "sha256:backend-source-v1:3227569ff822090d00a80a3a88213d76d5ca43092d2918cec2494962457865a5", + "backendContractFingerprint": "sha256:backend-contract-v1:89ce835969abfae21cb4c27992f38f895d98a9cebbce248d62123a5a8aa1fc28", + "templateRevisionHash": "cfc95f86cf49288a5b851e7e042558b50bcd091f1a69cfabdf961cb204fde1ac", + "capturedAt": "2026-11-23T18:16:55.558Z", + "outputExtension": "json" + }, + "smolvlm_red_triangle": { + "associationSha256": "a686ff98e677c53f203c5c86a7cca856c8e2103ebe80621679de07c58b4c596c", + "backendSourceFingerprint": "sha256:backend-source-v1:12feeb1b7586129e38f183c3c391555c88004534d762ea8676efe9dc334540d9", + "backendContractFingerprint": "sha256:backend-contract-v1:5dcc04106f1021d0ef9128d360e91a97236cc538ea7426b994967a459307a4fc", + "templateRevisionHash": "7c5cc75ca115a437ec6a7ebab59030ef5c5ea14c74735bae5ca78dff427fb0e2", + "capturedAt": "2026-11-23T18:58:19.689Z", + "outputExtension": "json" + }, + "kandinsky3_ginkgo_on_slate": { + "associationSha256": "d06e06739b07e69ae2f2c65f503b94970643c950a89d4d39a316f5e7e93b3269", + "backendSourceFingerprint": "sha256:backend-source-v1:175112f2430928958bd90dc5ae78b50ce0a54403e42e28cfc68096945d05fbe6", + "backendContractFingerprint": "sha256:backend-contract-v1:300f2fb801e65ef8a0355d217f3f89e59d11e38f976af5a86ba41212d30216fd", + "templateRevisionHash": "5870090e6b4d12c32d72566b6038e9bcc8bf8d063492a28ecbeb65275d77c8e9", + "capturedAt": "2026-11-24T01:18:22.804Z", + "outputExtension": "webp", + "outputSize": { + "width": 1024, + "height": 1024 + } } } diff --git a/config/retained-gallery-authoring-archives.v1.json b/config/retained-gallery-authoring-archives.v1.json index e0adf5ec..99d4070e 100644 --- a/config/retained-gallery-authoring-archives.v1.json +++ b/config/retained-gallery-authoring-archives.v1.json @@ -14,6 +14,11 @@ "bytes": 4067, "sha256": "4a085738b6d9e818596480a5ed7a0bda9f663670d35cf49385be56d74b241ce2" }, + "DDIMPipeline:unconditional_image": { + "descriptorSha256": "ba8521d8043808cfb8880be8e8f46eadb81e266624aa6fb478c8b0d156bab079", + "bytes": 3418, + "sha256": "d36f4697ffb13bbf8b8c6f72db8f1c7db7f22dafafa358b298916b0f84a27963" + }, "ErnieImagePipeline:text_to_image": { "descriptorSha256": "45f9a07cbd540055ad63000eb928be4a1b685c4b622bf46b84c98784e2c61139", "bytes": 4122, @@ -39,6 +44,21 @@ "bytes": 3257, "sha256": "983434b29fc3b2b54690bef0dcab7e7d765d66eac3a81534bbbf7debb5c9fc79" }, + "HuggingFaceImageTextToTextModel:image_to_text": { + "descriptorSha256": "daf5d3a9cb638e942a8f3f53df6cc86860e874943bc28fa01175ca2d30e56d5d", + "bytes": 3579, + "sha256": "90b53dde6fd677559cf4ddba7168802c4c834376e91c00f896977fa04aaf10bb" + }, + "HuggingFaceSpeechRecognitionModel:speech_translation": { + "descriptorSha256": "9d7ed920f22989d90bddc05fb1976b69025132a87799d43d361f14d671539d1c", + "bytes": 3869, + "sha256": "9fa0b0086341bdb652c97b70521b5647977e1922b7bc0858c7b803e90ea8c4a7" + }, + "Kandinsky3Pipeline:text_to_image": { + "descriptorSha256": "41b3b13c0f66711ffa3ac065f7a990bee824fc52db69940b8f75e0f7f79bdd38", + "bytes": 4089, + "sha256": "5ed088eae56863584fdb4a4a141dcae6fe10dae649fe735b39b3e4bf688a9ea6" + }, "LatentConsistencyModelPipeline:text_to_image": { "descriptorSha256": "b23f6c1d6ea11f928eab1c62422e49a288645e6f46ecf0c4f1b4994e95ad56ea", "bytes": 4229, @@ -99,9 +119,19 @@ "bytes": 4412, "sha256": "2b526a0dec7fbee4a8553727a4c001e269b524551ad5169ea4928f8b4a76b633" }, + "StableDiffusionXLPipeline:inpaint": { + "descriptorSha256": "04773f9c39ab30246fca3f87394f504a61772ccfa97630d4b46d1a9530450ee2", + "bytes": 5259, + "sha256": "1102d4d59e00388022892406c5cca60c33a7f22f21420f6e0e64c8dfba04b0d0" + }, "StableDiffusionXLPipeline:text_to_image": { "descriptorSha256": "944ff90f533867016d514d9cdd7a35648e711359c55f2ae06fc3bac8e88b63e8", "bytes": 4267, "sha256": "07305066b2f96232db5f26d62e1d9fbf9f3a21d84f97328208a7e066798234a1" + }, + "StableDiffusionXLTurboPipeline:text_to_image": { + "descriptorSha256": "c530e10728c8c3871c1f6d6e58589996b8e926729d7c57e43fa36d020660e3dd", + "bytes": 4169, + "sha256": "b5dfc591a73c4d04d8f540c4617c0f7820a4d8553a31ef9dd030837fb72325b2" } } diff --git a/config/template-asset-rights.v1.json b/config/template-asset-rights.v1.json index 80cebb5c..2b241684 100644 --- a/config/template-asset-rights.v1.json +++ b/config/template-asset-rights.v1.json @@ -1,6 +1,6 @@ { "schemaVersion": 1, - "assetSetId": "sha256:canonical-json:caa900140d82653b84f9c71dda792dda20616498078938bc687b8dfc977b9f72", + "assetSetId": "sha256:canonical-json:690ea1522e3b4ffd3d72bc5911f02763c842fa3d23428ef123db0dbe0dca3a91", "records": [ { "path": "template-gallery/ace_step_audio_continuation.wav", @@ -528,6 +528,33 @@ "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", "provenanceTemplateId": "copper_hour_dunes" }, + { + "path": "template-gallery/ddim_cifar10_preview.webp", + "sha256": "sha256:bytes:8da37d75c632e43b7131bcb634f76a9e83857a88bf511785fa8f55c746f0f0a4", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Exact approved file captured from a saved MoDiff workflow", + "sourceUrl": "https://huggingface.co/google/ddpm-cifar10-32/tree/267b167dc01f0e4e61923ea244e8b988f84deb80", + "sourceRevision": "google/ddpm-cifar10-32@267b167dc01f0e4e61923ea244e8b988f84deb80", + "sourceLicense": "Maintainer-authorized file with publisher terms retained", + "modelTerms": [ + "Publisher model terms at https://huggingface.co/google/ddpm-cifar10-32/tree/267b167dc01f0e4e61923ea244e8b988f84deb80" + ], + "aiGenerated": true, + "humanLikenessConsent": "synthetic", + "marks": [], + "requiredAttribution": [ + "google/ddpm-cifar10-32@267b167dc01f0e4e61923ea244e8b988f84deb80 https://huggingface.co/google/ddpm-cifar10-32/tree/267b167dc01f0e4e61923ea244e8b988f84deb80" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-24", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "d216f065bdc316366c6183592f657bcfbbd7cb05acd0e510c6b3877fe56bcec2", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped six saved cases with model terms retained.", + "provenanceTemplateId": "ddim_cifar10_preview" + }, { "path": "template-gallery/fast_lora.card-poster.webp", "sha256": "sha256:bytes:071786ad9b3120c3d5981e70c4617cbc9c1ab946bd6aafc7a0e055df02fc27ae", @@ -4695,6 +4722,60 @@ "assetLicense": "MoDiff-Gallery-Restricted-1.0", "provenanceTemplateId": "sana_sprint_monochrome_tiger" }, + { + "path": "template-gallery/inputs/sdxl_clear_cobalt_backdrop.before.png", + "sha256": "sha256:bytes:e75c20f0e8a74e283b996bf526e6ea74535ed24125ad97c2d92508d3435d7a87", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Exact approved file captured from a saved MoDiff workflow", + "sourceUrl": "https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b", + "sourceRevision": "stabilityai/stable-diffusion-xl-base-1.0@462165984030d82259a11f4367a4eed129e94a7b", + "sourceLicense": "Maintainer-authorized file with publisher terms retained", + "modelTerms": [ + "Publisher model terms at https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b" + ], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "stabilityai/stable-diffusion-xl-base-1.0@462165984030d82259a11f4367a4eed129e94a7b https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-24", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "d216f065bdc316366c6183592f657bcfbbd7cb05acd0e510c6b3877fe56bcec2", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped six saved cases with model terms retained.", + "provenanceTemplateId": "sdxl_clear_cobalt_backdrop" + }, + { + "path": "template-gallery/inputs/sdxl_clear_cobalt_backdrop.mask.png", + "sha256": "sha256:bytes:1f48775f2826f84e0c5b55f16f3475bdc80ecad8b931d6b0279598610e9a828d", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Exact approved file captured from a saved MoDiff workflow", + "sourceUrl": "https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b", + "sourceRevision": "stabilityai/stable-diffusion-xl-base-1.0@462165984030d82259a11f4367a4eed129e94a7b", + "sourceLicense": "Maintainer-authorized file with publisher terms retained", + "modelTerms": [ + "Publisher model terms at https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b" + ], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "stabilityai/stable-diffusion-xl-base-1.0@462165984030d82259a11f4367a4eed129e94a7b https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-24", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "d216f065bdc316366c6183592f657bcfbbd7cb05acd0e510c6b3877fe56bcec2", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped six saved cases with model terms retained.", + "provenanceTemplateId": "sdxl_clear_cobalt_backdrop" + }, { "path": "template-gallery/inputs/spandrel_x2_synthetic_gradient.before.png", "sha256": "sha256:bytes:626815c78eaad46cad849732d1598b45b91700ce046c1ee3f4e2444db80aa32a", @@ -4893,6 +4974,33 @@ "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", "provenanceTemplateId": "janus_reykjavik_travel_note" }, + { + "path": "template-gallery/kandinsky3_ginkgo_on_slate.webp", + "sha256": "sha256:bytes:4b33c6b278e6c9f036ee8f4a11fe6dd4dab58ad385407f844b1f0bb609557ab4", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Exact approved file captured from a saved MoDiff workflow", + "sourceUrl": "https://huggingface.co/kandinsky-community/kandinsky-3/tree/bf79e6c219da8a94abb50235fdc4567eb8fb4632", + "sourceRevision": "kandinsky-community/kandinsky-3@bf79e6c219da8a94abb50235fdc4567eb8fb4632", + "sourceLicense": "Maintainer-authorized file with publisher terms retained", + "modelTerms": [ + "Publisher model terms at https://huggingface.co/kandinsky-community/kandinsky-3/tree/bf79e6c219da8a94abb50235fdc4567eb8fb4632" + ], + "aiGenerated": true, + "humanLikenessConsent": "synthetic", + "marks": [], + "requiredAttribution": [ + "kandinsky-community/kandinsky-3@bf79e6c219da8a94abb50235fdc4567eb8fb4632 https://huggingface.co/kandinsky-community/kandinsky-3/tree/bf79e6c219da8a94abb50235fdc4567eb8fb4632" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-24", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "d216f065bdc316366c6183592f657bcfbbd7cb05acd0e510c6b3877fe56bcec2", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped six saved cases with model terms retained.", + "provenanceTemplateId": "kandinsky3_ginkgo_on_slate" + }, { "creatorOrRightsholder": "MoDiff project maintainers, subject to previously approved synthetic source rights and recorded model terms", "creationMethod": "Native local AI-generated output or exact deterministic layer-sheet derivative; original approved bytes retained", @@ -5730,7 +5838,7 @@ }, { "path": "template-gallery/manifest.json", - "sha256": "sha256:bytes:0237fc54abc42f620ffc5d6f0b39e6918f19250078c5abfa29f6aa151830927d", + "sha256": "sha256:bytes:e754f588addecb7b9d0a35ea3310c591907ab34785115f1bf653f2d92d65c42d", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", @@ -5745,10 +5853,10 @@ "requiredAttribution": [], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", - "reviewedAt": "2026-11-25", + "reviewedAt": "2026-11-24", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", - "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained." + "humanApprovalPacketSHA256": "d216f065bdc316366c6183592f657bcfbbd7cb05acd0e510c6b3877fe56bcec2", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped six saved cases with model terms retained." }, { "path": "template-gallery/marigold_depth_synthetic_ramp.webp", @@ -7874,6 +7982,114 @@ "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", "provenanceTemplateId": "copper_hour_dunes" }, + { + "path": "template-gallery/reviews/ddim_cifar10_preview.original-provenance.json", + "sha256": "sha256:bytes:8fc838dd4bc701aa0c65e6b2630cc749d05736d23623591e3d1ac5af3d6b93d9", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/google/ddpm-cifar10-32/tree/267b167dc01f0e4e61923ea244e8b988f84deb80", + "sourceRevision": "google/ddpm-cifar10-32@267b167dc01f0e4e61923ea244e8b988f84deb80", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "Publisher model terms at https://huggingface.co/google/ddpm-cifar10-32/tree/267b167dc01f0e4e61923ea244e8b988f84deb80" + ], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "google/ddpm-cifar10-32@267b167dc01f0e4e61923ea244e8b988f84deb80 https://huggingface.co/google/ddpm-cifar10-32/tree/267b167dc01f0e4e61923ea244e8b988f84deb80" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-24", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "d216f065bdc316366c6183592f657bcfbbd7cb05acd0e510c6b3877fe56bcec2", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped six saved cases with model terms retained.", + "provenanceTemplateId": "ddim_cifar10_preview" + }, + { + "path": "template-gallery/reviews/ddim_cifar10_preview.original-review.json", + "sha256": "sha256:bytes:5a793d20a7b28f16f07648dce956a5cf5d2ecf8b50d85ca9005f965196102391", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/google/ddpm-cifar10-32/tree/267b167dc01f0e4e61923ea244e8b988f84deb80", + "sourceRevision": "google/ddpm-cifar10-32@267b167dc01f0e4e61923ea244e8b988f84deb80", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "Publisher model terms at https://huggingface.co/google/ddpm-cifar10-32/tree/267b167dc01f0e4e61923ea244e8b988f84deb80" + ], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "google/ddpm-cifar10-32@267b167dc01f0e4e61923ea244e8b988f84deb80 https://huggingface.co/google/ddpm-cifar10-32/tree/267b167dc01f0e4e61923ea244e8b988f84deb80" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-24", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "d216f065bdc316366c6183592f657bcfbbd7cb05acd0e510c6b3877fe56bcec2", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped six saved cases with model terms retained.", + "provenanceTemplateId": "ddim_cifar10_preview" + }, + { + "path": "template-gallery/reviews/ddim_cifar10_preview.quality-review.json", + "sha256": "sha256:bytes:24698d674171ad14c31fba20652e694b1e845214fe802d32cb7d0e42611cb7c2", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/google/ddpm-cifar10-32/tree/267b167dc01f0e4e61923ea244e8b988f84deb80", + "sourceRevision": "google/ddpm-cifar10-32@267b167dc01f0e4e61923ea244e8b988f84deb80", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "Publisher model terms at https://huggingface.co/google/ddpm-cifar10-32/tree/267b167dc01f0e4e61923ea244e8b988f84deb80" + ], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "google/ddpm-cifar10-32@267b167dc01f0e4e61923ea244e8b988f84deb80 https://huggingface.co/google/ddpm-cifar10-32/tree/267b167dc01f0e4e61923ea244e8b988f84deb80" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-24", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "d216f065bdc316366c6183592f657bcfbbd7cb05acd0e510c6b3877fe56bcec2", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped six saved cases with model terms retained.", + "provenanceTemplateId": "ddim_cifar10_preview" + }, + { + "path": "template-gallery/reviews/ddim_cifar10_preview.retained-template-provenance.json", + "sha256": "sha256:bytes:8f2075aff72c4a31ca3e247ce7b1c1c6ebaa8b8f29d7ad7e124555543b7ddfbd", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/google/ddpm-cifar10-32/tree/267b167dc01f0e4e61923ea244e8b988f84deb80", + "sourceRevision": "google/ddpm-cifar10-32@267b167dc01f0e4e61923ea244e8b988f84deb80", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "Publisher model terms at https://huggingface.co/google/ddpm-cifar10-32/tree/267b167dc01f0e4e61923ea244e8b988f84deb80" + ], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "google/ddpm-cifar10-32@267b167dc01f0e4e61923ea244e8b988f84deb80 https://huggingface.co/google/ddpm-cifar10-32/tree/267b167dc01f0e4e61923ea244e8b988f84deb80" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-24", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "d216f065bdc316366c6183592f657bcfbbd7cb05acd0e510c6b3877fe56bcec2", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped six saved cases with model terms retained.", + "provenanceTemplateId": "ddim_cifar10_preview" + }, { "path": "template-gallery/reviews/fast_lora.quality-review.json", "sha256": "sha256:bytes:96079ed2226e86a0a0686283402a8c4f567809c73d67138afb4d58fc46936a15", @@ -10013,6 +10229,114 @@ "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", "provenanceTemplateId": "janus_reykjavik_travel_note" }, + { + "path": "template-gallery/reviews/kandinsky3_ginkgo_on_slate.original-provenance.json", + "sha256": "sha256:bytes:31189848b609ec308b9bd427975d0b09d502ff7583321e88a7ba813f5a968db8", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/kandinsky-community/kandinsky-3/tree/bf79e6c219da8a94abb50235fdc4567eb8fb4632", + "sourceRevision": "kandinsky-community/kandinsky-3@bf79e6c219da8a94abb50235fdc4567eb8fb4632", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "Publisher model terms at https://huggingface.co/kandinsky-community/kandinsky-3/tree/bf79e6c219da8a94abb50235fdc4567eb8fb4632" + ], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "kandinsky-community/kandinsky-3@bf79e6c219da8a94abb50235fdc4567eb8fb4632 https://huggingface.co/kandinsky-community/kandinsky-3/tree/bf79e6c219da8a94abb50235fdc4567eb8fb4632" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-24", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "d216f065bdc316366c6183592f657bcfbbd7cb05acd0e510c6b3877fe56bcec2", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped six saved cases with model terms retained.", + "provenanceTemplateId": "kandinsky3_ginkgo_on_slate" + }, + { + "path": "template-gallery/reviews/kandinsky3_ginkgo_on_slate.original-review.json", + "sha256": "sha256:bytes:3d23527148ae151f8b05b623d2739f79ab4bcd37202db7b331e391bdf7b6bedf", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/kandinsky-community/kandinsky-3/tree/bf79e6c219da8a94abb50235fdc4567eb8fb4632", + "sourceRevision": "kandinsky-community/kandinsky-3@bf79e6c219da8a94abb50235fdc4567eb8fb4632", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "Publisher model terms at https://huggingface.co/kandinsky-community/kandinsky-3/tree/bf79e6c219da8a94abb50235fdc4567eb8fb4632" + ], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "kandinsky-community/kandinsky-3@bf79e6c219da8a94abb50235fdc4567eb8fb4632 https://huggingface.co/kandinsky-community/kandinsky-3/tree/bf79e6c219da8a94abb50235fdc4567eb8fb4632" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-24", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "d216f065bdc316366c6183592f657bcfbbd7cb05acd0e510c6b3877fe56bcec2", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped six saved cases with model terms retained.", + "provenanceTemplateId": "kandinsky3_ginkgo_on_slate" + }, + { + "path": "template-gallery/reviews/kandinsky3_ginkgo_on_slate.quality-review.json", + "sha256": "sha256:bytes:ce1d21e1a50c1861198590eda8f52dde82afccaceae93500fbaf612e1b1a2426", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/kandinsky-community/kandinsky-3/tree/bf79e6c219da8a94abb50235fdc4567eb8fb4632", + "sourceRevision": "kandinsky-community/kandinsky-3@bf79e6c219da8a94abb50235fdc4567eb8fb4632", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "Publisher model terms at https://huggingface.co/kandinsky-community/kandinsky-3/tree/bf79e6c219da8a94abb50235fdc4567eb8fb4632" + ], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "kandinsky-community/kandinsky-3@bf79e6c219da8a94abb50235fdc4567eb8fb4632 https://huggingface.co/kandinsky-community/kandinsky-3/tree/bf79e6c219da8a94abb50235fdc4567eb8fb4632" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-24", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "d216f065bdc316366c6183592f657bcfbbd7cb05acd0e510c6b3877fe56bcec2", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped six saved cases with model terms retained.", + "provenanceTemplateId": "kandinsky3_ginkgo_on_slate" + }, + { + "path": "template-gallery/reviews/kandinsky3_ginkgo_on_slate.retained-template-provenance.json", + "sha256": "sha256:bytes:5be139ba899439bf234dee3274572a5062dbfdbb0fbf6ba12f23b64ce47a2fc3", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/kandinsky-community/kandinsky-3/tree/bf79e6c219da8a94abb50235fdc4567eb8fb4632", + "sourceRevision": "kandinsky-community/kandinsky-3@bf79e6c219da8a94abb50235fdc4567eb8fb4632", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "Publisher model terms at https://huggingface.co/kandinsky-community/kandinsky-3/tree/bf79e6c219da8a94abb50235fdc4567eb8fb4632" + ], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "kandinsky-community/kandinsky-3@bf79e6c219da8a94abb50235fdc4567eb8fb4632 https://huggingface.co/kandinsky-community/kandinsky-3/tree/bf79e6c219da8a94abb50235fdc4567eb8fb4632" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-24", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "d216f065bdc316366c6183592f657bcfbbd7cb05acd0e510c6b3877fe56bcec2", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped six saved cases with model terms retained.", + "provenanceTemplateId": "kandinsky3_ginkgo_on_slate" + }, { "path": "template-gallery/reviews/lcm_dawn_alpine_lake.quality-review.json", "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", @@ -12543,54 +12867,378 @@ "provenanceTemplateId": "sana_sprint_monochrome_tiger" }, { - "path": "template-gallery/reviews/smollm2_rain_gauge.quality-review.json", - "sha256": "sha256:bytes:a457e4143d17eecd1af499e61a28e7df0533b4a6a8f67712182ab8a829115e09", + "path": "template-gallery/reviews/sdxl_clear_cobalt_backdrop.original-provenance.json", + "sha256": "sha256:bytes:7361ac84e232f55f7f8e19fae39c5abff4e4df36ac1d1c754ca4d9716d60b1df", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", - "creationMethod": "Project-authored redacted retained Gallery provenance, review, or registration metadata", - "sourceUrl": null, - "sourceRevision": null, - "sourceLicense": "MoDiff-authored exact fixture or Gallery metadata", - "modelTerms": [], + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b", + "sourceRevision": "stabilityai/stable-diffusion-xl-base-1.0@462165984030d82259a11f4367a4eed129e94a7b", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "Publisher model terms at https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b" + ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], - "requiredAttribution": [], + "requiredAttribution": [ + "stabilityai/stable-diffusion-xl-base-1.0@462165984030d82259a11f4367a4eed129e94a7b https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b" + ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", - "reviewedAt": "2026-11-19", + "reviewedAt": "2026-11-24", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "e604b0284a57b65b20343c7776511ae15bef922c7e104c09f0f6931eec610d2d", - "publicationBasis": "Activate and publish the two approved Gallery candidates using their retained native runs.", - "provenanceTemplateId": "smollm2_rain_gauge" + "humanApprovalPacketSHA256": "d216f065bdc316366c6183592f657bcfbbd7cb05acd0e510c6b3877fe56bcec2", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped six saved cases with model terms retained.", + "provenanceTemplateId": "sdxl_clear_cobalt_backdrop" }, { - "path": "template-gallery/reviews/smollm2_rain_gauge.retained-template-provenance.json", - "sha256": "sha256:bytes:6b45536aab6905c02b1e937fb6c684765c30354ceff8e05c7ec6c1454500f168", + "path": "template-gallery/reviews/sdxl_clear_cobalt_backdrop.original-review.json", + "sha256": "sha256:bytes:d7edf6240c066f9d48ab24fd45c77556b2afa52e145f530428c93620496ddf15", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", - "creationMethod": "Project-authored redacted retained Gallery provenance, review, or registration metadata", - "sourceUrl": null, - "sourceRevision": null, - "sourceLicense": "MoDiff-authored exact fixture or Gallery metadata", - "modelTerms": [], + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b", + "sourceRevision": "stabilityai/stable-diffusion-xl-base-1.0@462165984030d82259a11f4367a4eed129e94a7b", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "Publisher model terms at https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b" + ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], - "requiredAttribution": [], + "requiredAttribution": [ + "stabilityai/stable-diffusion-xl-base-1.0@462165984030d82259a11f4367a4eed129e94a7b https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b" + ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", - "reviewedAt": "2026-11-19", + "reviewedAt": "2026-11-24", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "e604b0284a57b65b20343c7776511ae15bef922c7e104c09f0f6931eec610d2d", - "publicationBasis": "Activate and publish the two approved Gallery candidates using their retained native runs.", - "provenanceTemplateId": "smollm2_rain_gauge" + "humanApprovalPacketSHA256": "d216f065bdc316366c6183592f657bcfbbd7cb05acd0e510c6b3877fe56bcec2", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped six saved cases with model terms retained.", + "provenanceTemplateId": "sdxl_clear_cobalt_backdrop" }, { - "path": "template-gallery/reviews/spandrel_x2_synthetic_gradient.quality-review.json", - "sha256": "sha256:bytes:75cd20b7aa48a0e129f10d09801f4ee7183c8a3bda5cf8a16bf372d9459c97f1", + "path": "template-gallery/reviews/sdxl_clear_cobalt_backdrop.quality-review.json", + "sha256": "sha256:bytes:c5853176bee61c270f06f94714ff9e968eb466ab7198d26d78a1d9dc4482cb41", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b", + "sourceRevision": "stabilityai/stable-diffusion-xl-base-1.0@462165984030d82259a11f4367a4eed129e94a7b", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "Publisher model terms at https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b" + ], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "stabilityai/stable-diffusion-xl-base-1.0@462165984030d82259a11f4367a4eed129e94a7b https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-24", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "d216f065bdc316366c6183592f657bcfbbd7cb05acd0e510c6b3877fe56bcec2", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped six saved cases with model terms retained.", + "provenanceTemplateId": "sdxl_clear_cobalt_backdrop" + }, + { + "path": "template-gallery/reviews/sdxl_clear_cobalt_backdrop.retained-template-provenance.json", + "sha256": "sha256:bytes:b680690954be3c7784aed2b97110d50706dc3ebb56df9e61611b203150a90b39", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b", + "sourceRevision": "stabilityai/stable-diffusion-xl-base-1.0@462165984030d82259a11f4367a4eed129e94a7b", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "Publisher model terms at https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b" + ], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "stabilityai/stable-diffusion-xl-base-1.0@462165984030d82259a11f4367a4eed129e94a7b https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-24", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "d216f065bdc316366c6183592f657bcfbbd7cb05acd0e510c6b3877fe56bcec2", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped six saved cases with model terms retained.", + "provenanceTemplateId": "sdxl_clear_cobalt_backdrop" + }, + { + "path": "template-gallery/reviews/sdxl_turbo_orange_caps.original-provenance.json", + "sha256": "sha256:bytes:38ebec1786b4ca93369a6e08f61c7fa24ed755f1a11804d2f0378d0b5b4c0f74", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/stabilityai/sdxl-turbo/tree/71153311d3dbb46851df1931d3ca6e939de83304", + "sourceRevision": "stabilityai/sdxl-turbo@71153311d3dbb46851df1931d3ca6e939de83304", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "https://huggingface.co/stabilityai/sdxl-turbo/blob/71153311d3dbb46851df1931d3ca6e939de83304/LICENSE.md" + ], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "stabilityai/sdxl-turbo@71153311d3dbb46851df1931d3ca6e939de83304 https://huggingface.co/stabilityai/sdxl-turbo/tree/71153311d3dbb46851df1931d3ca6e939de83304" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-24", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "d216f065bdc316366c6183592f657bcfbbd7cb05acd0e510c6b3877fe56bcec2", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped six saved cases with model terms retained.", + "provenanceTemplateId": "sdxl_turbo_orange_caps" + }, + { + "path": "template-gallery/reviews/sdxl_turbo_orange_caps.original-review.json", + "sha256": "sha256:bytes:45bccd884aec054b8054d8253ef61fe6a09716a97d2ca3331eae39fed60d675c", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/stabilityai/sdxl-turbo/tree/71153311d3dbb46851df1931d3ca6e939de83304", + "sourceRevision": "stabilityai/sdxl-turbo@71153311d3dbb46851df1931d3ca6e939de83304", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "https://huggingface.co/stabilityai/sdxl-turbo/blob/71153311d3dbb46851df1931d3ca6e939de83304/LICENSE.md" + ], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "stabilityai/sdxl-turbo@71153311d3dbb46851df1931d3ca6e939de83304 https://huggingface.co/stabilityai/sdxl-turbo/tree/71153311d3dbb46851df1931d3ca6e939de83304" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-24", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "d216f065bdc316366c6183592f657bcfbbd7cb05acd0e510c6b3877fe56bcec2", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped six saved cases with model terms retained.", + "provenanceTemplateId": "sdxl_turbo_orange_caps" + }, + { + "path": "template-gallery/reviews/sdxl_turbo_orange_caps.quality-review.json", + "sha256": "sha256:bytes:b65f8f13cbb77853bc90c4015ce3432a353f22d1b4b8d3faeecb5ac1a00ba9e0", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/stabilityai/sdxl-turbo/tree/71153311d3dbb46851df1931d3ca6e939de83304", + "sourceRevision": "stabilityai/sdxl-turbo@71153311d3dbb46851df1931d3ca6e939de83304", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "https://huggingface.co/stabilityai/sdxl-turbo/blob/71153311d3dbb46851df1931d3ca6e939de83304/LICENSE.md" + ], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "stabilityai/sdxl-turbo@71153311d3dbb46851df1931d3ca6e939de83304 https://huggingface.co/stabilityai/sdxl-turbo/tree/71153311d3dbb46851df1931d3ca6e939de83304" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-24", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "d216f065bdc316366c6183592f657bcfbbd7cb05acd0e510c6b3877fe56bcec2", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped six saved cases with model terms retained.", + "provenanceTemplateId": "sdxl_turbo_orange_caps" + }, + { + "path": "template-gallery/reviews/sdxl_turbo_orange_caps.retained-template-provenance.json", + "sha256": "sha256:bytes:485e9d39648d71e0c2d449418ed6124bb37ae1e7928a2bcbc1592040929f01bd", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/stabilityai/sdxl-turbo/tree/71153311d3dbb46851df1931d3ca6e939de83304", + "sourceRevision": "stabilityai/sdxl-turbo@71153311d3dbb46851df1931d3ca6e939de83304", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "https://huggingface.co/stabilityai/sdxl-turbo/blob/71153311d3dbb46851df1931d3ca6e939de83304/LICENSE.md" + ], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "stabilityai/sdxl-turbo@71153311d3dbb46851df1931d3ca6e939de83304 https://huggingface.co/stabilityai/sdxl-turbo/tree/71153311d3dbb46851df1931d3ca6e939de83304" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-24", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "d216f065bdc316366c6183592f657bcfbbd7cb05acd0e510c6b3877fe56bcec2", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped six saved cases with model terms retained.", + "provenanceTemplateId": "sdxl_turbo_orange_caps" + }, + { + "path": "template-gallery/reviews/smollm2_rain_gauge.quality-review.json", + "sha256": "sha256:bytes:a457e4143d17eecd1af499e61a28e7df0533b4a6a8f67712182ab8a829115e09", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted retained Gallery provenance, review, or registration metadata", + "sourceUrl": null, + "sourceRevision": null, + "sourceLicense": "MoDiff-authored exact fixture or Gallery metadata", + "modelTerms": [], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-19", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "e604b0284a57b65b20343c7776511ae15bef922c7e104c09f0f6931eec610d2d", + "publicationBasis": "Activate and publish the two approved Gallery candidates using their retained native runs.", + "provenanceTemplateId": "smollm2_rain_gauge" + }, + { + "path": "template-gallery/reviews/smollm2_rain_gauge.retained-template-provenance.json", + "sha256": "sha256:bytes:6b45536aab6905c02b1e937fb6c684765c30354ceff8e05c7ec6c1454500f168", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted retained Gallery provenance, review, or registration metadata", + "sourceUrl": null, + "sourceRevision": null, + "sourceLicense": "MoDiff-authored exact fixture or Gallery metadata", + "modelTerms": [], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-19", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "e604b0284a57b65b20343c7776511ae15bef922c7e104c09f0f6931eec610d2d", + "publicationBasis": "Activate and publish the two approved Gallery candidates using their retained native runs.", + "provenanceTemplateId": "smollm2_rain_gauge" + }, + { + "path": "template-gallery/reviews/smolvlm_red_triangle.original-provenance.json", + "sha256": "sha256:bytes:7ef65f47028ad3af96b1189b40a52d085c696475b0e9ee55ea1d780f286a3481", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/HuggingFaceTB/SmolVLM-256M-Instruct/tree/7e3e67edbbed1bf9888184d9df282b700a323964", + "sourceRevision": "HuggingFaceTB/SmolVLM-256M-Instruct@7e3e67edbbed1bf9888184d9df282b700a323964", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "Publisher model terms at https://huggingface.co/HuggingFaceTB/SmolVLM-256M-Instruct/tree/7e3e67edbbed1bf9888184d9df282b700a323964" + ], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "HuggingFaceTB/SmolVLM-256M-Instruct@7e3e67edbbed1bf9888184d9df282b700a323964 https://huggingface.co/HuggingFaceTB/SmolVLM-256M-Instruct/tree/7e3e67edbbed1bf9888184d9df282b700a323964" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-24", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "d216f065bdc316366c6183592f657bcfbbd7cb05acd0e510c6b3877fe56bcec2", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped six saved cases with model terms retained.", + "provenanceTemplateId": "smolvlm_red_triangle" + }, + { + "path": "template-gallery/reviews/smolvlm_red_triangle.original-review.json", + "sha256": "sha256:bytes:24aae45e0bf9ca8ec749e8521293a25beb56dc264276604e634699eed52f852e", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/HuggingFaceTB/SmolVLM-256M-Instruct/tree/7e3e67edbbed1bf9888184d9df282b700a323964", + "sourceRevision": "HuggingFaceTB/SmolVLM-256M-Instruct@7e3e67edbbed1bf9888184d9df282b700a323964", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "Publisher model terms at https://huggingface.co/HuggingFaceTB/SmolVLM-256M-Instruct/tree/7e3e67edbbed1bf9888184d9df282b700a323964" + ], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "HuggingFaceTB/SmolVLM-256M-Instruct@7e3e67edbbed1bf9888184d9df282b700a323964 https://huggingface.co/HuggingFaceTB/SmolVLM-256M-Instruct/tree/7e3e67edbbed1bf9888184d9df282b700a323964" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-24", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "d216f065bdc316366c6183592f657bcfbbd7cb05acd0e510c6b3877fe56bcec2", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped six saved cases with model terms retained.", + "provenanceTemplateId": "smolvlm_red_triangle" + }, + { + "path": "template-gallery/reviews/smolvlm_red_triangle.quality-review.json", + "sha256": "sha256:bytes:d7f5e471998c28cb0ba86532b0471c0a2a3ff1c9ea17e2e9169bcb91cf835bd1", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/HuggingFaceTB/SmolVLM-256M-Instruct/tree/7e3e67edbbed1bf9888184d9df282b700a323964", + "sourceRevision": "HuggingFaceTB/SmolVLM-256M-Instruct@7e3e67edbbed1bf9888184d9df282b700a323964", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "Publisher model terms at https://huggingface.co/HuggingFaceTB/SmolVLM-256M-Instruct/tree/7e3e67edbbed1bf9888184d9df282b700a323964" + ], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "HuggingFaceTB/SmolVLM-256M-Instruct@7e3e67edbbed1bf9888184d9df282b700a323964 https://huggingface.co/HuggingFaceTB/SmolVLM-256M-Instruct/tree/7e3e67edbbed1bf9888184d9df282b700a323964" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-24", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "d216f065bdc316366c6183592f657bcfbbd7cb05acd0e510c6b3877fe56bcec2", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped six saved cases with model terms retained.", + "provenanceTemplateId": "smolvlm_red_triangle" + }, + { + "path": "template-gallery/reviews/smolvlm_red_triangle.retained-template-provenance.json", + "sha256": "sha256:bytes:45f154d4661611e859e67593f38fef064e544c1806c03a1f67919120b169d4f1", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/HuggingFaceTB/SmolVLM-256M-Instruct/tree/7e3e67edbbed1bf9888184d9df282b700a323964", + "sourceRevision": "HuggingFaceTB/SmolVLM-256M-Instruct@7e3e67edbbed1bf9888184d9df282b700a323964", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "Publisher model terms at https://huggingface.co/HuggingFaceTB/SmolVLM-256M-Instruct/tree/7e3e67edbbed1bf9888184d9df282b700a323964" + ], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "HuggingFaceTB/SmolVLM-256M-Instruct@7e3e67edbbed1bf9888184d9df282b700a323964 https://huggingface.co/HuggingFaceTB/SmolVLM-256M-Instruct/tree/7e3e67edbbed1bf9888184d9df282b700a323964" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-24", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "d216f065bdc316366c6183592f657bcfbbd7cb05acd0e510c6b3877fe56bcec2", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped six saved cases with model terms retained.", + "provenanceTemplateId": "smolvlm_red_triangle" + }, + { + "path": "template-gallery/reviews/spandrel_x2_synthetic_gradient.quality-review.json", + "sha256": "sha256:bytes:75cd20b7aa48a0e129f10d09801f4ee7183c8a3bda5cf8a16bf372d9459c97f1", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", @@ -13104,6 +13752,114 @@ "humanApprovalPacketSHA256": "5a790d4a6c9f82b2e00140b8d1c62fc3721c0b66856e4e2e7f2440890772b0e0", "publicationBasis": "Maintainer approved the exact Wav2Vec2 transcript, the disclosed limitations and the redacted review and technical records under Apache-2.0. The source WAV is private." }, + { + "path": "template-gallery/reviews/whisper_small_an_open_door.original-provenance.json", + "sha256": "sha256:bytes:f8c6523ab16cc4c21dd7239dfb6d08930eb74dcf26109391f7eccdc1243ec1f8", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/openai/whisper-small/tree/973afd24965f72e36ca33b3055d56a652f456b4d", + "sourceRevision": "openai/whisper-small@973afd24965f72e36ca33b3055d56a652f456b4d", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "Publisher model terms at https://huggingface.co/openai/whisper-small/tree/973afd24965f72e36ca33b3055d56a652f456b4d" + ], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "openai/whisper-small@973afd24965f72e36ca33b3055d56a652f456b4d https://huggingface.co/openai/whisper-small/tree/973afd24965f72e36ca33b3055d56a652f456b4d" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-24", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "d216f065bdc316366c6183592f657bcfbbd7cb05acd0e510c6b3877fe56bcec2", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped six saved cases with model terms retained.", + "provenanceTemplateId": "whisper_small_an_open_door" + }, + { + "path": "template-gallery/reviews/whisper_small_an_open_door.original-review.json", + "sha256": "sha256:bytes:eaecd7b4ce1cfb2fcbbe8304f8700b1f46c29f5fea4befa7fff971aea95f2a7f", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/openai/whisper-small/tree/973afd24965f72e36ca33b3055d56a652f456b4d", + "sourceRevision": "openai/whisper-small@973afd24965f72e36ca33b3055d56a652f456b4d", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "Publisher model terms at https://huggingface.co/openai/whisper-small/tree/973afd24965f72e36ca33b3055d56a652f456b4d" + ], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "openai/whisper-small@973afd24965f72e36ca33b3055d56a652f456b4d https://huggingface.co/openai/whisper-small/tree/973afd24965f72e36ca33b3055d56a652f456b4d" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-24", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "d216f065bdc316366c6183592f657bcfbbd7cb05acd0e510c6b3877fe56bcec2", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped six saved cases with model terms retained.", + "provenanceTemplateId": "whisper_small_an_open_door" + }, + { + "path": "template-gallery/reviews/whisper_small_an_open_door.quality-review.json", + "sha256": "sha256:bytes:86f1cf2540c9c980f232d3ee7e1927d38e32b5b5f613bb40801ec8d7f9945d33", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/openai/whisper-small/tree/973afd24965f72e36ca33b3055d56a652f456b4d", + "sourceRevision": "openai/whisper-small@973afd24965f72e36ca33b3055d56a652f456b4d", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "Publisher model terms at https://huggingface.co/openai/whisper-small/tree/973afd24965f72e36ca33b3055d56a652f456b4d" + ], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "openai/whisper-small@973afd24965f72e36ca33b3055d56a652f456b4d https://huggingface.co/openai/whisper-small/tree/973afd24965f72e36ca33b3055d56a652f456b4d" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-24", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "d216f065bdc316366c6183592f657bcfbbd7cb05acd0e510c6b3877fe56bcec2", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped six saved cases with model terms retained.", + "provenanceTemplateId": "whisper_small_an_open_door" + }, + { + "path": "template-gallery/reviews/whisper_small_an_open_door.retained-template-provenance.json", + "sha256": "sha256:bytes:07e2575fa2b29c75f4f4f5a4dcad63f6cd5c790386f16d6ccf277628fbfb5483", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/openai/whisper-small/tree/973afd24965f72e36ca33b3055d56a652f456b4d", + "sourceRevision": "openai/whisper-small@973afd24965f72e36ca33b3055d56a652f456b4d", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "Publisher model terms at https://huggingface.co/openai/whisper-small/tree/973afd24965f72e36ca33b3055d56a652f456b4d" + ], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "openai/whisper-small@973afd24965f72e36ca33b3055d56a652f456b4d https://huggingface.co/openai/whisper-small/tree/973afd24965f72e36ca33b3055d56a652f456b4d" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-24", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "d216f065bdc316366c6183592f657bcfbbd7cb05acd0e510c6b3877fe56bcec2", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped six saved cases with model terms retained.", + "provenanceTemplateId": "whisper_small_an_open_door" + }, { "path": "template-gallery/reviews/whisper_tiny_blue_cup_transcription.quality-review.json", "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", @@ -14845,6 +15601,60 @@ "assetLicense": "MoDiff-Gallery-Restricted-1.0", "provenanceTemplateId": "sana_sprint_monochrome_tiger" }, + { + "path": "template-gallery/sdxl_clear_cobalt_backdrop.webp", + "sha256": "sha256:bytes:98b57164602d8cfd6b61c689fa26770421f9dce8a7b9c23bc879a49d4def1004", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Exact approved file captured from a saved MoDiff workflow", + "sourceUrl": "https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b", + "sourceRevision": "stabilityai/stable-diffusion-xl-base-1.0@462165984030d82259a11f4367a4eed129e94a7b", + "sourceLicense": "Maintainer-authorized file with publisher terms retained", + "modelTerms": [ + "Publisher model terms at https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b" + ], + "aiGenerated": true, + "humanLikenessConsent": "synthetic", + "marks": [], + "requiredAttribution": [ + "stabilityai/stable-diffusion-xl-base-1.0@462165984030d82259a11f4367a4eed129e94a7b https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-24", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "d216f065bdc316366c6183592f657bcfbbd7cb05acd0e510c6b3877fe56bcec2", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped six saved cases with model terms retained.", + "provenanceTemplateId": "sdxl_clear_cobalt_backdrop" + }, + { + "path": "template-gallery/sdxl_turbo_orange_caps.webp", + "sha256": "sha256:bytes:e69bdc004989467e4e0df8d7d5b3d7e19f95158dff49e3ca649bb6da42f2cf59", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Exact approved file captured from a saved MoDiff workflow", + "sourceUrl": "https://huggingface.co/stabilityai/sdxl-turbo/tree/71153311d3dbb46851df1931d3ca6e939de83304", + "sourceRevision": "stabilityai/sdxl-turbo@71153311d3dbb46851df1931d3ca6e939de83304", + "sourceLicense": "Maintainer-authorized file with publisher terms retained", + "modelTerms": [ + "https://huggingface.co/stabilityai/sdxl-turbo/blob/71153311d3dbb46851df1931d3ca6e939de83304/LICENSE.md" + ], + "aiGenerated": true, + "humanLikenessConsent": "synthetic", + "marks": [], + "requiredAttribution": [ + "stabilityai/sdxl-turbo@71153311d3dbb46851df1931d3ca6e939de83304 https://huggingface.co/stabilityai/sdxl-turbo/tree/71153311d3dbb46851df1931d3ca6e939de83304" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-24", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "d216f065bdc316366c6183592f657bcfbbd7cb05acd0e510c6b3877fe56bcec2", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped six saved cases with model terms retained.", + "provenanceTemplateId": "sdxl_turbo_orange_caps" + }, { "path": "template-gallery/showcases/flux3-kolkata-bride.v1.json", "sha256": "sha256:bytes:64a51a70baec5b4a99937ac3952e458450c7d699669b6f31241106da33f70b55", @@ -15615,6 +16425,33 @@ "publicationBasis": "Activate and publish the two approved Gallery candidates using their retained native runs.", "provenanceTemplateId": "smollm2_rain_gauge" }, + { + "path": "template-gallery/smolvlm_red_triangle.json", + "sha256": "sha256:bytes:ec3bb29dcf29943847d3c22f36369927a30eac1834541e25d8ae4ac7f7fd2fb3", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Exact approved file captured from a saved MoDiff workflow", + "sourceUrl": "https://huggingface.co/HuggingFaceTB/SmolVLM-256M-Instruct/tree/7e3e67edbbed1bf9888184d9df282b700a323964", + "sourceRevision": "HuggingFaceTB/SmolVLM-256M-Instruct@7e3e67edbbed1bf9888184d9df282b700a323964", + "sourceLicense": "Maintainer-authorized file with publisher terms retained", + "modelTerms": [ + "Publisher model terms at https://huggingface.co/HuggingFaceTB/SmolVLM-256M-Instruct/tree/7e3e67edbbed1bf9888184d9df282b700a323964" + ], + "aiGenerated": true, + "humanLikenessConsent": "synthetic", + "marks": [], + "requiredAttribution": [ + "HuggingFaceTB/SmolVLM-256M-Instruct@7e3e67edbbed1bf9888184d9df282b700a323964 https://huggingface.co/HuggingFaceTB/SmolVLM-256M-Instruct/tree/7e3e67edbbed1bf9888184d9df282b700a323964" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-24", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "d216f065bdc316366c6183592f657bcfbbd7cb05acd0e510c6b3877fe56bcec2", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped six saved cases with model terms retained.", + "provenanceTemplateId": "smolvlm_red_triangle" + }, { "path": "template-gallery/spandrel_x2_synthetic_gradient.webp", "sha256": "sha256:bytes:5b1ea25aacbedb50055ac010b38da45dbb3dab5477be1b2b1d99781a299e8729", @@ -16495,6 +17332,33 @@ "publicationBasis": "Maintainer approved the exact Wav2Vec2 transcript, the disclosed limitations and the redacted review and technical records under Apache-2.0. The source WAV is private.", "provenanceTemplateId": "wav2vec2_station_announcement" }, + { + "path": "template-gallery/whisper_small_an_open_door.json", + "sha256": "sha256:bytes:6f8a84cafae41e8903b7b60d97701dbf24b8f41fab860913b419deea1a84e263", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Exact approved file captured from a saved MoDiff workflow", + "sourceUrl": "https://huggingface.co/openai/whisper-small/tree/973afd24965f72e36ca33b3055d56a652f456b4d", + "sourceRevision": "openai/whisper-small@973afd24965f72e36ca33b3055d56a652f456b4d", + "sourceLicense": "Maintainer-authorized file with publisher terms retained", + "modelTerms": [ + "Publisher model terms at https://huggingface.co/openai/whisper-small/tree/973afd24965f72e36ca33b3055d56a652f456b4d" + ], + "aiGenerated": true, + "humanLikenessConsent": "synthetic", + "marks": [], + "requiredAttribution": [ + "openai/whisper-small@973afd24965f72e36ca33b3055d56a652f456b4d https://huggingface.co/openai/whisper-small/tree/973afd24965f72e36ca33b3055d56a652f456b4d" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-24", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "d216f065bdc316366c6183592f657bcfbbd7cb05acd0e510c6b3877fe56bcec2", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped six saved cases with model terms retained.", + "provenanceTemplateId": "whisper_small_an_open_door" + }, { "path": "template-gallery/whisper_tiny_blue_cup_transcription.json", "sha256": "sha256:bytes:19ad6ca1cda03c92aa6f86f590a69c052e8bded5c8340189a56c68193c2ed9ec", diff --git a/config/template-assets.v1.json b/config/template-assets.v1.json index 85c86801..f08d120a 100644 --- a/config/template-assets.v1.json +++ b/config/template-assets.v1.json @@ -219,6 +219,17 @@ "width": 512, "height": 512 }, + { + "path": "template-gallery/ddim_cifar10_preview.webp", + "size": 962, + "sha256": "sha256:bytes:8da37d75c632e43b7131bcb634f76a9e83857a88bf511785fa8f55c746f0f0a4", + "contentType": "image/webp", + "purposes": [ + "runtime" + ], + "width": 32, + "height": 32 + }, { "path": "template-gallery/fast_lora.card-poster.webp", "size": 211346, @@ -1913,6 +1924,28 @@ "width": 1024, "height": 1024 }, + { + "path": "template-gallery/inputs/sdxl_clear_cobalt_backdrop.before.png", + "size": 623267, + "sha256": "sha256:bytes:e75c20f0e8a74e283b996bf526e6ea74535ed24125ad97c2d92508d3435d7a87", + "contentType": "image/png", + "purposes": [ + "runtime" + ], + "width": 1024, + "height": 1024 + }, + { + "path": "template-gallery/inputs/sdxl_clear_cobalt_backdrop.mask.png", + "size": 1571, + "sha256": "sha256:bytes:1f48775f2826f84e0c5b55f16f3475bdc80ecad8b931d6b0279598610e9a828d", + "contentType": "image/png", + "purposes": [ + "runtime" + ], + "width": 1024, + "height": 1024 + }, { "path": "template-gallery/inputs/spandrel_x2_synthetic_gradient.before.png", "size": 177, @@ -1989,6 +2022,17 @@ "runtime" ] }, + { + "path": "template-gallery/kandinsky3_ginkgo_on_slate.webp", + "size": 578858, + "sha256": "sha256:bytes:4b33c6b278e6c9f036ee8f4a11fe6dd4dab58ad385407f844b1f0bb609557ab4", + "contentType": "image/webp", + "purposes": [ + "runtime" + ], + "width": 1024, + "height": 1024 + }, { "path": "template-gallery/layers/qwen_layered_portrait.native-layer-00.webp", "size": 103484, @@ -2319,8 +2363,8 @@ }, { "path": "template-gallery/manifest.json", - "size": 290556, - "sha256": "sha256:bytes:0237fc54abc42f620ffc5d6f0b39e6918f19250078c5abfa29f6aa151830927d", + "size": 304414, + "sha256": "sha256:bytes:e754f588addecb7b9d0a35ea3310c591907ab34785115f1bf653f2d92d65c42d", "contentType": "application/json", "purposes": [ "runtime", @@ -3156,6 +3200,42 @@ "runtime" ] }, + { + "path": "template-gallery/reviews/ddim_cifar10_preview.original-provenance.json", + "size": 873, + "sha256": "sha256:bytes:8fc838dd4bc701aa0c65e6b2630cc749d05736d23623591e3d1ac5af3d6b93d9", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, + { + "path": "template-gallery/reviews/ddim_cifar10_preview.original-review.json", + "size": 474, + "sha256": "sha256:bytes:5a793d20a7b28f16f07648dce956a5cf5d2ecf8b50d85ca9005f965196102391", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, + { + "path": "template-gallery/reviews/ddim_cifar10_preview.quality-review.json", + "size": 2306, + "sha256": "sha256:bytes:24698d674171ad14c31fba20652e694b1e845214fe802d32cb7d0e42611cb7c2", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, + { + "path": "template-gallery/reviews/ddim_cifar10_preview.retained-template-provenance.json", + "size": 3342, + "sha256": "sha256:bytes:8f2075aff72c4a31ca3e247ce7b1c1c6ebaa8b8f29d7ad7e124555543b7ddfbd", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, { "path": "template-gallery/reviews/fast_lora.quality-review.json", "size": 2589, @@ -3986,6 +4066,42 @@ "runtime" ] }, + { + "path": "template-gallery/reviews/kandinsky3_ginkgo_on_slate.original-provenance.json", + "size": 1302, + "sha256": "sha256:bytes:31189848b609ec308b9bd427975d0b09d502ff7583321e88a7ba813f5a968db8", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, + { + "path": "template-gallery/reviews/kandinsky3_ginkgo_on_slate.original-review.json", + "size": 467, + "sha256": "sha256:bytes:3d23527148ae151f8b05b623d2739f79ab4bcd37202db7b331e391bdf7b6bedf", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, + { + "path": "template-gallery/reviews/kandinsky3_ginkgo_on_slate.quality-review.json", + "size": 2699, + "sha256": "sha256:bytes:ce1d21e1a50c1861198590eda8f52dde82afccaceae93500fbaf612e1b1a2426", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, + { + "path": "template-gallery/reviews/kandinsky3_ginkgo_on_slate.retained-template-provenance.json", + "size": 3374, + "sha256": "sha256:bytes:5be139ba899439bf234dee3274572a5062dbfdbb0fbf6ba12f23b64ce47a2fc3", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, { "path": "template-gallery/reviews/lcm_dawn_alpine_lake.quality-review.json", "size": 2982, @@ -4940,6 +5056,78 @@ "runtime" ] }, + { + "path": "template-gallery/reviews/sdxl_clear_cobalt_backdrop.original-provenance.json", + "size": 1214, + "sha256": "sha256:bytes:7361ac84e232f55f7f8e19fae39c5abff4e4df36ac1d1c754ca4d9716d60b1df", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, + { + "path": "template-gallery/reviews/sdxl_clear_cobalt_backdrop.original-review.json", + "size": 473, + "sha256": "sha256:bytes:d7edf6240c066f9d48ab24fd45c77556b2afa52e145f530428c93620496ddf15", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, + { + "path": "template-gallery/reviews/sdxl_clear_cobalt_backdrop.quality-review.json", + "size": 2291, + "sha256": "sha256:bytes:c5853176bee61c270f06f94714ff9e968eb466ab7198d26d78a1d9dc4482cb41", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, + { + "path": "template-gallery/reviews/sdxl_clear_cobalt_backdrop.retained-template-provenance.json", + "size": 3981, + "sha256": "sha256:bytes:b680690954be3c7784aed2b97110d50706dc3ebb56df9e61611b203150a90b39", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, + { + "path": "template-gallery/reviews/sdxl_turbo_orange_caps.original-provenance.json", + "size": 997, + "sha256": "sha256:bytes:38ebec1786b4ca93369a6e08f61c7fa24ed755f1a11804d2f0378d0b5b4c0f74", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, + { + "path": "template-gallery/reviews/sdxl_turbo_orange_caps.original-review.json", + "size": 465, + "sha256": "sha256:bytes:45bccd884aec054b8054d8253ef61fe6a09716a97d2ca3331eae39fed60d675c", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, + { + "path": "template-gallery/reviews/sdxl_turbo_orange_caps.quality-review.json", + "size": 2257, + "sha256": "sha256:bytes:b65f8f13cbb77853bc90c4015ce3432a353f22d1b4b8d3faeecb5ac1a00ba9e0", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, + { + "path": "template-gallery/reviews/sdxl_turbo_orange_caps.retained-template-provenance.json", + "size": 3306, + "sha256": "sha256:bytes:485e9d39648d71e0c2d449418ed6124bb37ae1e7928a2bcbc1592040929f01bd", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, { "path": "template-gallery/reviews/smollm2_rain_gauge.quality-review.json", "size": 2378, @@ -4958,6 +5146,42 @@ "runtime" ] }, + { + "path": "template-gallery/reviews/smolvlm_red_triangle.original-provenance.json", + "size": 1393, + "sha256": "sha256:bytes:7ef65f47028ad3af96b1189b40a52d085c696475b0e9ee55ea1d780f286a3481", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, + { + "path": "template-gallery/reviews/smolvlm_red_triangle.original-review.json", + "size": 549, + "sha256": "sha256:bytes:24aae45e0bf9ca8ec749e8521293a25beb56dc264276604e634699eed52f852e", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, + { + "path": "template-gallery/reviews/smolvlm_red_triangle.quality-review.json", + "size": 2273, + "sha256": "sha256:bytes:d7f5e471998c28cb0ba86532b0471c0a2a3ff1c9ea17e2e9169bcb91cf835bd1", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, + { + "path": "template-gallery/reviews/smolvlm_red_triangle.retained-template-provenance.json", + "size": 3535, + "sha256": "sha256:bytes:45f154d4661611e859e67593f38fef064e544c1806c03a1f67919120b169d4f1", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, { "path": "template-gallery/reviews/spandrel_x2_synthetic_gradient.quality-review.json", "size": 2674, @@ -5158,6 +5382,42 @@ "runtime" ] }, + { + "path": "template-gallery/reviews/whisper_small_an_open_door.original-provenance.json", + "size": 856, + "sha256": "sha256:bytes:f8c6523ab16cc4c21dd7239dfb6d08930eb74dcf26109391f7eccdc1243ec1f8", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, + { + "path": "template-gallery/reviews/whisper_small_an_open_door.original-review.json", + "size": 470, + "sha256": "sha256:bytes:eaecd7b4ce1cfb2fcbbe8304f8700b1f46c29f5fea4befa7fff971aea95f2a7f", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, + { + "path": "template-gallery/reviews/whisper_small_an_open_door.quality-review.json", + "size": 2270, + "sha256": "sha256:bytes:86f1cf2540c9c980f232d3ee7e1927d38e32b5b5f613bb40801ec8d7f9945d33", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, + { + "path": "template-gallery/reviews/whisper_small_an_open_door.retained-template-provenance.json", + "size": 3535, + "sha256": "sha256:bytes:07e2575fa2b29c75f4f4f5a4dcad63f6cd5c790386f16d6ccf277628fbfb5483", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, { "path": "template-gallery/reviews/whisper_tiny_blue_cup_transcription.quality-review.json", "size": 2380, @@ -5932,6 +6192,28 @@ "width": 1024, "height": 1024 }, + { + "path": "template-gallery/sdxl_clear_cobalt_backdrop.webp", + "size": 119828, + "sha256": "sha256:bytes:98b57164602d8cfd6b61c689fa26770421f9dce8a7b9c23bc879a49d4def1004", + "contentType": "image/webp", + "purposes": [ + "runtime" + ], + "width": 1024, + "height": 1024 + }, + { + "path": "template-gallery/sdxl_turbo_orange_caps.webp", + "size": 75822, + "sha256": "sha256:bytes:e69bdc004989467e4e0df8d7d5b3d7e19f95158dff49e3ca649bb6da42f2cf59", + "contentType": "image/webp", + "purposes": [ + "runtime" + ], + "width": 512, + "height": 512 + }, { "path": "template-gallery/showcases/flux3-kolkata-bride.v1.json", "size": 5475, @@ -6270,6 +6552,15 @@ "runtime" ] }, + { + "path": "template-gallery/smolvlm_red_triangle.json", + "size": 1291, + "sha256": "sha256:bytes:ec3bb29dcf29943847d3c22f36369927a30eac1834541e25d8ae4ac7f7fd2fb3", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, { "path": "template-gallery/spandrel_x2_synthetic_gradient.webp", "size": 3094, @@ -6630,6 +6921,15 @@ "runtime" ] }, + { + "path": "template-gallery/whisper_small_an_open_door.json", + "size": 352, + "sha256": "sha256:bytes:6f8a84cafae41e8903b7b60d97701dbf24b8f41fab860913b419deea1a84e263", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, { "path": "template-gallery/whisper_tiny_blue_cup_transcription.json", "size": 305, @@ -6707,9 +7007,9 @@ "height": 1024 } ], - "assetSetId": "sha256:canonical-json:caa900140d82653b84f9c71dda792dda20616498078938bc687b8dfc977b9f72", + "assetSetId": "sha256:canonical-json:690ea1522e3b4ffd3d72bc5911f02763c842fa3d23428ef123db0dbe0dca3a91", "status": "ready", - "assetCount": 683, - "totalBytes": 1044572748, + "assetCount": 715, + "totalBytes": 1046033259, "missingAssets": [] } diff --git a/public/template-gallery/manifest.json b/public/template-gallery/manifest.json index 038f10f0..979f48b0 100644 --- a/public/template-gallery/manifest.json +++ b/public/template-gallery/manifest.json @@ -3718,6 +3718,186 @@ "height": 1024, "approvedOriginalReviewPath": "/template-gallery/reviews/lumina_opal_pendant_in_limestone.original-review.json", "approvedOriginalProvenancePath": "/template-gallery/reviews/lumina_opal_pendant_in_limestone.original-provenance.json" + }, + { + "templateId": "ddim_cifar10_preview", + "templateLockHash": "tpl_48bbabb3", + "promptSettingsHash": "ps_b456b1ed", + "modelRevision": "google/ddpm-cifar10-32@267b167dc01f0e4e61923ea244e8b988f84deb80", + "runtimeFingerprint": "sha256:stable-runtime-v1:b7a5d9a9152704cb3aea775d25419a594559cf8b034fe482dd77fa9a989bdd05", + "graphHash": "sha256:canonical-graph-v1:ef9521d37a186e6b6539068596033f2b921370e3cf3ca8a031f3feaae8716434", + "proofLockHash": "sha256:retained-template-association-v1:7d3a998d22fbff0579a6110649004ebdc4b956b55e5bc3bd3c747c5d3db524cb", + "backendSourceFingerprint": "sha256:backend-source-v1:7073247d40471c857faf3c52f186d17923fbdf3c44234232a8c6f8b9db925663", + "backendContractFingerprint": "sha256:backend-contract-v1:53144518f3a56e4644f06618acdc61a3e6c4f8dbacbca96e7d2e9912d699836b", + "modelCommit": "267b167dc01f0e4e61923ea244e8b988f84deb80", + "templateRevisionHash": "1f41b7d2d7bccb216f46b9ce174a9d4246f0348584e208baeeaa4af92c172c9f", + "provenancePath": "/template-gallery/reviews/ddim_cifar10_preview.retained-template-provenance.json", + "provenanceHash": "sha256:canonical-json:813802e3004e9ba14b2582a5f343ff737c2346795c9b83fc82de850d54538f0d", + "outputPath": "/template-gallery/ddim_cifar10_preview.webp", + "thumbnailPath": "/template-gallery/ddim_cifar10_preview.webp", + "mediaHash": "sha256:decoded-rgba:1eb33c017bdf3821ac9cefedc516901400d1b26e188fa49d460b9b24d81e4f97", + "mediaType": "image", + "verificationTimestamp": "2026-11-14T06:55:56.039Z", + "verificationStatus": "reviewed", + "qualityReviewStatus": "approved_reviewed", + "qualityReviewHash": "sha256:canonical-json:02de4a39ffb67d8118e028e15439a5dc1554f34c75fbd3b50bf92d1f0287c2b2", + "qualityReviewPath": "/template-gallery/reviews/ddim_cifar10_preview.quality-review.json", + "reviewer": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-24T19:53:04.808Z", + "width": 32, + "height": 32, + "approvedOriginalReviewPath": "/template-gallery/reviews/ddim_cifar10_preview.original-review.json", + "approvedOriginalProvenancePath": "/template-gallery/reviews/ddim_cifar10_preview.original-provenance.json" + }, + { + "templateId": "sdxl_clear_cobalt_backdrop", + "templateLockHash": "tpl_72c55f1d", + "promptSettingsHash": "ps_fdf2b4ba", + "modelRevision": "stabilityai/stable-diffusion-xl-base-1.0@462165984030d82259a11f4367a4eed129e94a7b", + "runtimeFingerprint": "sha256:stable-runtime-v1:e58252b333ab8e28e89181aaa2a7be1ae7b982a6aec611d3bcd616aca7e8b784", + "graphHash": "sha256:canonical-graph-v1:46f00547faa02a687a12eafda44d9c94802a76505143f4a95124b6bd44eabfda", + "proofLockHash": "sha256:retained-template-association-v1:905441188fb96f7dadce2caac6554d2a060efc43bc98aa0a1e735992510acef7", + "backendSourceFingerprint": "sha256:backend-source-v1:a7a074387d21c2a016af41b7de9d090fd6377b8efe388047bc50201779908464", + "backendContractFingerprint": "sha256:backend-contract-v1:61201b43ea68d3fd347fbc374e292b5839be28f908b473bcb69f5ec1f8b87736", + "modelCommit": "462165984030d82259a11f4367a4eed129e94a7b", + "templateRevisionHash": "5ac53251bbc44c8b3eb62ab06fba702e275ebc7340348f36fb20a055d36b3573", + "provenancePath": "/template-gallery/reviews/sdxl_clear_cobalt_backdrop.retained-template-provenance.json", + "provenanceHash": "sha256:canonical-json:2514269fce7a1235446e09c28596d04c802351f2d061b6df39ed409bb01ae496", + "outputPath": "/template-gallery/sdxl_clear_cobalt_backdrop.webp", + "thumbnailPath": "/template-gallery/sdxl_clear_cobalt_backdrop.webp", + "mediaHash": "sha256:decoded-rgba:a9988cc89f4cbaffe1568391196573f3679944cb593e89c0fa55a234d9955ddd", + "mediaType": "image", + "verificationTimestamp": "2026-11-24T12:07:41.410Z", + "verificationStatus": "reviewed", + "qualityReviewStatus": "approved_reviewed", + "qualityReviewHash": "sha256:canonical-json:18badc1f2d07f814b0b81d1f53b97c8ed0909f55525218a24aa0c85ea066f595", + "qualityReviewPath": "/template-gallery/reviews/sdxl_clear_cobalt_backdrop.quality-review.json", + "reviewer": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-24T19:53:04.808Z", + "beforePath": "/template-gallery/inputs/sdxl_clear_cobalt_backdrop.before.png", + "beforeMediaHash": "sha256:bytes:e75c20f0e8a74e283b996bf526e6ea74535ed24125ad97c2d92508d3435d7a87", + "afterPath": "/template-gallery/sdxl_clear_cobalt_backdrop.webp", + "width": 1024, + "height": 1024, + "approvedOriginalReviewPath": "/template-gallery/reviews/sdxl_clear_cobalt_backdrop.original-review.json", + "approvedOriginalProvenancePath": "/template-gallery/reviews/sdxl_clear_cobalt_backdrop.original-provenance.json", + "approvedMaskPath": "/template-gallery/inputs/sdxl_clear_cobalt_backdrop.mask.png" + }, + { + "templateId": "sdxl_turbo_orange_caps", + "templateLockHash": "tpl_53f34630", + "promptSettingsHash": "ps_4787eff9", + "modelRevision": "stabilityai/sdxl-turbo@71153311d3dbb46851df1931d3ca6e939de83304", + "runtimeFingerprint": "sha256:stable-runtime-v1:a759e2219c208a2db7ca8ea48eb1d3854ce2372e264a687267eab92f2fccecaf", + "graphHash": "sha256:canonical-graph-v1:40e7ee74d823ffc46f9e096c7cba50ec7f825e36627159674e1e621c33bbe0d3", + "proofLockHash": "sha256:retained-template-association-v1:bbdf288353cf4925d20a8039627c9e329266f89e9142f119da06e9c76497efda", + "backendSourceFingerprint": "sha256:backend-source-v1:057b165c6ef6225461649a47077562dffad098a2d37d639a13bf0e73088d79ab", + "backendContractFingerprint": "sha256:backend-contract-v1:300f2fb801e65ef8a0355d217f3f89e59d11e38f976af5a86ba41212d30216fd", + "modelCommit": "71153311d3dbb46851df1931d3ca6e939de83304", + "templateRevisionHash": "a8bae14e8dc50c3969cba99c45be96d5ffbbca1fa12824640f5c3360bcc4427c", + "provenancePath": "/template-gallery/reviews/sdxl_turbo_orange_caps.retained-template-provenance.json", + "provenanceHash": "sha256:canonical-json:6d34abd1da7fd74d4fc4f53d29ae5ea6a303dff6b70079e12891cac1e40ea46c", + "outputPath": "/template-gallery/sdxl_turbo_orange_caps.webp", + "thumbnailPath": "/template-gallery/sdxl_turbo_orange_caps.webp", + "mediaHash": "sha256:decoded-rgba:6367020d93affc49805bb6f02fb1da64ff8bc77d0abc2d22f59f29f23d7f4908", + "mediaType": "image", + "verificationTimestamp": "2026-11-23T14:40:52.201Z", + "verificationStatus": "reviewed", + "qualityReviewStatus": "approved_reviewed", + "qualityReviewHash": "sha256:canonical-json:369b57f52271926dde53251f6f7c9812c849dbe85d401b4b841d6e39547821fc", + "qualityReviewPath": "/template-gallery/reviews/sdxl_turbo_orange_caps.quality-review.json", + "reviewer": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-24T19:53:04.808Z", + "width": 512, + "height": 512, + "approvedOriginalReviewPath": "/template-gallery/reviews/sdxl_turbo_orange_caps.original-review.json", + "approvedOriginalProvenancePath": "/template-gallery/reviews/sdxl_turbo_orange_caps.original-provenance.json" + }, + { + "templateId": "whisper_small_an_open_door", + "templateLockHash": "tpl_169ef95b", + "promptSettingsHash": "ps_c6fb7372", + "modelRevision": "openai/whisper-small@973afd24965f72e36ca33b3055d56a652f456b4d", + "runtimeFingerprint": "sha256:stable-runtime-v1:daad92c13097d7f0d0d0e83bdff4d6a09ce064abfe313264832b8779235ea3cb", + "graphHash": "sha256:canonical-graph-v1:69e261c29aa777da002dada801f01091436e8f116780f1ac7271ce23a3da425c", + "proofLockHash": "sha256:retained-template-association-v1:fdeb350238b682dea2f7eaf900b187c054e35672f626c885691741be0ff946d5", + "backendSourceFingerprint": "sha256:backend-source-v1:3227569ff822090d00a80a3a88213d76d5ca43092d2918cec2494962457865a5", + "backendContractFingerprint": "sha256:backend-contract-v1:89ce835969abfae21cb4c27992f38f895d98a9cebbce248d62123a5a8aa1fc28", + "modelCommit": "973afd24965f72e36ca33b3055d56a652f456b4d", + "templateRevisionHash": "cfc95f86cf49288a5b851e7e042558b50bcd091f1a69cfabdf961cb204fde1ac", + "provenancePath": "/template-gallery/reviews/whisper_small_an_open_door.retained-template-provenance.json", + "provenanceHash": "sha256:canonical-json:ea3ecb614eeaeabaf08959f78b1c681bf286853aa5950a656cc12065f89d7d7f", + "outputPath": "/template-gallery/whisper_small_an_open_door.json", + "thumbnailPath": "/template-gallery/whisper_small_an_open_door.json", + "mediaHash": "sha256:canonical-json:3d36babba4ea9d8167136819afcb79d50d55fc647a773ed81d2bdd71835a973f", + "mediaType": "json", + "verificationTimestamp": "2026-11-23T18:16:55.558Z", + "verificationStatus": "reviewed", + "qualityReviewStatus": "approved_reviewed", + "qualityReviewHash": "sha256:canonical-json:d05317c4c2c905fbe757e83cd40b269353546ade5868f630165eeff347f48fee", + "qualityReviewPath": "/template-gallery/reviews/whisper_small_an_open_door.quality-review.json", + "reviewer": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-24T19:53:04.808Z", + "approvedOriginalReviewPath": "/template-gallery/reviews/whisper_small_an_open_door.original-review.json", + "approvedOriginalProvenancePath": "/template-gallery/reviews/whisper_small_an_open_door.original-provenance.json" + }, + { + "templateId": "smolvlm_red_triangle", + "templateLockHash": "tpl_0912c789", + "promptSettingsHash": "ps_b91c5c35", + "modelRevision": "HuggingFaceTB/SmolVLM-256M-Instruct@7e3e67edbbed1bf9888184d9df282b700a323964", + "runtimeFingerprint": "sha256:stable-runtime-v1:a05139e82bba496d6cc49c9755bf063098d45e62d5cf71ed2a1285028db9ce08", + "graphHash": "sha256:canonical-graph-v1:619f187da77a6fda72f90354dcb1768036d2f46b8418f51d674ceac1942c31a6", + "proofLockHash": "sha256:retained-template-association-v1:6557dbdb9a58ea0dc3a92ba6d9c86c3e91a0d59047e14eb61520b8e811285526", + "backendSourceFingerprint": "sha256:backend-source-v1:12feeb1b7586129e38f183c3c391555c88004534d762ea8676efe9dc334540d9", + "backendContractFingerprint": "sha256:backend-contract-v1:5dcc04106f1021d0ef9128d360e91a97236cc538ea7426b994967a459307a4fc", + "modelCommit": "7e3e67edbbed1bf9888184d9df282b700a323964", + "templateRevisionHash": "7c5cc75ca115a437ec6a7ebab59030ef5c5ea14c74735bae5ca78dff427fb0e2", + "provenancePath": "/template-gallery/reviews/smolvlm_red_triangle.retained-template-provenance.json", + "provenanceHash": "sha256:canonical-json:7b0a6dc6926475432e75632d39b3bc87365dd13887363f6ae71ffbd94ec42d8c", + "outputPath": "/template-gallery/smolvlm_red_triangle.json", + "thumbnailPath": "/template-gallery/smolvlm_red_triangle.json", + "mediaHash": "sha256:canonical-json:17a1f7a82c7f157016203bb8b4d82e264cf4b530f00179517113308ed571b4a5", + "mediaType": "json", + "verificationTimestamp": "2026-11-23T18:58:19.689Z", + "verificationStatus": "reviewed", + "qualityReviewStatus": "approved_reviewed", + "qualityReviewHash": "sha256:canonical-json:717781763c0ca20cc7e55772bae2298bea8b59e583101bbb89a84cb01618d960", + "qualityReviewPath": "/template-gallery/reviews/smolvlm_red_triangle.quality-review.json", + "reviewer": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-24T19:53:04.808Z", + "approvedOriginalReviewPath": "/template-gallery/reviews/smolvlm_red_triangle.original-review.json", + "approvedOriginalProvenancePath": "/template-gallery/reviews/smolvlm_red_triangle.original-provenance.json" + }, + { + "templateId": "kandinsky3_ginkgo_on_slate", + "templateLockHash": "tpl_44580a03", + "promptSettingsHash": "ps_bf341b46", + "modelRevision": "kandinsky-community/kandinsky-3@bf79e6c219da8a94abb50235fdc4567eb8fb4632", + "runtimeFingerprint": "sha256:stable-runtime-v1:cf55f746a3e0c81464ecb685882bce49fcd7f28b7b7d419b1e71af9d3fb533c5", + "graphHash": "sha256:canonical-graph-v1:2d805bf9c48d49b9e4c2778136f8c528d8ff82a7f7753ba7a99021cc439b5b3c", + "proofLockHash": "sha256:retained-template-association-v1:bae161c761c98c151641cb6205477fd818b6fc94dd07a13a2af874471cf22e21", + "backendSourceFingerprint": "sha256:backend-source-v1:175112f2430928958bd90dc5ae78b50ce0a54403e42e28cfc68096945d05fbe6", + "backendContractFingerprint": "sha256:backend-contract-v1:300f2fb801e65ef8a0355d217f3f89e59d11e38f976af5a86ba41212d30216fd", + "modelCommit": "bf79e6c219da8a94abb50235fdc4567eb8fb4632", + "templateRevisionHash": "5870090e6b4d12c32d72566b6038e9bcc8bf8d063492a28ecbeb65275d77c8e9", + "provenancePath": "/template-gallery/reviews/kandinsky3_ginkgo_on_slate.retained-template-provenance.json", + "provenanceHash": "sha256:canonical-json:c3a38ac1954d413d4f74b9e4b64642dd4d5374e2120db48e246f5d9989ed31d8", + "outputPath": "/template-gallery/kandinsky3_ginkgo_on_slate.webp", + "thumbnailPath": "/template-gallery/kandinsky3_ginkgo_on_slate.webp", + "mediaHash": "sha256:decoded-rgba:16c9705a80a00678ee42c0030f0697328b96986574adadd17a253b6c4ded1290", + "mediaType": "image", + "verificationTimestamp": "2026-11-24T01:18:22.804Z", + "verificationStatus": "reviewed", + "qualityReviewStatus": "approved_reviewed", + "qualityReviewHash": "sha256:canonical-json:b1c52fc64b8b47a7a3be4f49abae6fbb80cac4f2c2740c565c0e7ca7df1cb679", + "qualityReviewPath": "/template-gallery/reviews/kandinsky3_ginkgo_on_slate.quality-review.json", + "reviewer": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-24T19:53:04.808Z", + "width": 1024, + "height": 1024, + "approvedOriginalReviewPath": "/template-gallery/reviews/kandinsky3_ginkgo_on_slate.original-review.json", + "approvedOriginalProvenancePath": "/template-gallery/reviews/kandinsky3_ginkgo_on_slate.original-provenance.json" } ] } diff --git a/scripts/bundle-budget.mjs b/scripts/bundle-budget.mjs index 11180b3f..aba23938 100644 --- a/scripts/bundle-budget.mjs +++ b/scripts/bundle-budget.mjs @@ -493,6 +493,8 @@ const SOURCE_LICENSES = new URL('../public/THIRD_PARTY_LICENSES.txt', import.met // 504492/682980/346033 largest/startup/deferred gzip bytes: the reviewed // migration ceilings below still pass with 8/12/304 bytes of headroom. const MAX_STARTUP_CHUNK_GZIP_BYTES = + // Six retained recipes and their exact authoring bindings add 3094 gzip bytes (540863 -> 543957). + 3094 + // Direct image routing uses the exact Studio spec (529280 -> 529295 gzip bytes). 15 + // LTX long distilled sampling defaults add 57 bytes (529223 -> 529280 gzip bytes). @@ -782,6 +784,8 @@ const MAX_STARTUP_CHUNK_GZIP_BYTES = // The same build measures 673359 aggregate startup bytes (+45 over the cap). // Keep 19 bytes of headroom; deferred limits and loading boundaries stay fixed. const MAX_STARTUP_GZIP_BYTES = + // The same additions add 3099 aggregate startup gzip bytes (719345 -> 722444). + 3099 + // The same route correction adds 16 startup bytes (707765 -> 707781 gzip bytes). 16 + // The same scoped profile defaults add 58 bytes across startup (707707 -> 707765). diff --git a/scripts/modiff-template.test.mjs b/scripts/modiff-template.test.mjs index afc1a5de..384c5fd8 100644 --- a/scripts/modiff-template.test.mjs +++ b/scripts/modiff-template.test.mjs @@ -2951,7 +2951,11 @@ test('template prompt recipes are distinct, detailed, and not generic placeholde if (retained) { // Authoring guidance must not rewrite conditioning from an approved execution. assert.deepEqual({ prompt: template.prompt, negativePrompt: template.negativePrompt }, retained); - assert.ok(template.prompt.trim(), `${template.id} retains the recorded prompt`); + if (template.mode === 'unconditional_image' || template.mode === 'speech_translation') { + assert.equal(template.prompt, '', `${template.id} keeps its prompt-free task contract`); + } else { + assert.ok(template.prompt.trim(), `${template.id} retains the recorded prompt`); + } continue; } const backendDefaultPrompt = diff --git a/scripts/release-contract.mjs b/scripts/release-contract.mjs index d8ce73d3..0cd091a6 100644 --- a/scripts/release-contract.mjs +++ b/scripts/release-contract.mjs @@ -384,7 +384,11 @@ if (existsSync(canonicalRegistryPath)) { if (JSON.stringify(stable(body)) !== JSON.stringify(stable(derived.receipt))) { throw new Error(`Canonical workflow receipt differs from original task evidence: ${stored.workflowId}`); } - if (derived.receipt.inputBinding || derived.receipt.promptBinding) { + if ( + derived.receipt.inputBinding || + derived.receipt.promptBinding || + stored.workflowId === 'DDIMPipeline:unconditional_image' + ) { if (retainedNativeBySha.has(stored.evidenceSha256)) { throw new Error(`Original bound workflow evidence is duplicated: ${stored.workflowId}`); } @@ -445,6 +449,7 @@ try { sourceWorkflow: workflow, templateRevisionHash: canonicalJsonHash({ template, settings: lockedSettings }), localAssociation: retainedTemplateAssociations.get(retainedRecipe.workflowId), + native: retainedNativeBySha.get(retainedRecipe.originalReceiptSha256), nativeReceipt: retainedNativeBySha.get(retainedRecipe.originalReceiptSha256)?.registeredReceipt, }) : null; diff --git a/scripts/retained-gallery-release.mjs b/scripts/retained-gallery-release.mjs index 5c64171e..dc4e1ccd 100644 --- a/scripts/retained-gallery-release.mjs +++ b/scripts/retained-gallery-release.mjs @@ -7,6 +7,7 @@ import { validateQualityReview, } from './template-gallery-harness.mjs'; import { validateRetainedGalleryProvenance, verifyRetainedApprovedFiles } from './retained-gallery-provenance.mjs'; +import { verifyRetainedSpeechGalleryEvidence } from './retained-speech-gallery-evidence.mjs'; const same = (actual, expected, label) => assert.deepEqual(actual, expected, label); @@ -22,22 +23,37 @@ function assertRetainedNativeIdentity(association, entry, nativeReceipt, label) graphHash: association.originalGraphHash, evidenceSha256: association.originalEvidenceSha256, modelSet: observedExecution.modelSet, - observationLimits: observedExecution.observationLimits, + ...(association.nativeProofKind !== 'real_backend_weights' && { + observationLimits: observedExecution.observationLimits, + }), outputHash: output.sourceOutputHash, runtimeFingerprint: observedExecution.runtimeFingerprint, executionDurationSeconds: observedExecution.executionDurationSeconds, peakMemoryBytes: observedExecution.peakMemoryBytes, - resourceCandidateId: null, + resourceCandidateId: association.originalResourceCandidateId, }; const actual = Object.fromEntries(Object.keys(expected).map((key) => [key, nativeReceipt[key]])); same(actual, expected, label); } -function assertRetainedBatchEvidence({ recipe, sourceWorkflow, association, entry, nativeReceipt }) { +function assertRetainedBatchEvidence({ + recipe, + sourceWorkflow, + association, + entry, + native, + nativeReceipt, + outputBytes, +}) { assert.equal(association.originalCanonicalWorkflowHash, sourceWorkflow.contract.graphHash); assert.equal(association.originalEvidenceSha256, recipe.originalReceiptSha256); assert.equal(association.originalGraphHash, recipe.retainedGraphHash); - assert.equal(association.originalResourceCandidateId, null); + assert.equal( + association.originalResourceCandidateId, + recipe.workflowId === 'DDIMPipeline:unconditional_image' + ? 'manual-resource-v1:DDIMPipeline|float32|none|none' + : null, + ); assert.equal(association.originalTemplateLockHash, null); assert.equal(association.observedExecution.backendContractFingerprint, entry.backendContractFingerprint); assert.equal(association.observedExecution.observationLimits.physicalPlatformQualification, false); @@ -58,7 +74,34 @@ function assertRetainedBatchEvidence({ recipe, sourceWorkflow, association, entr if (!nativeReceipt) return; const label = 'Published Gallery batch proof differs from the verified native receipt.'; assertRetainedNativeIdentity(association, entry, nativeReceipt, label); + if (recipe.workflowId === 'DDIMPipeline:unconditional_image') { + assert.equal(nativeReceipt.proofKind, 'real_backend_weights', label); + assert.equal(nativeReceipt.backendContractFingerprint, entry.backendContractFingerprint, label); + assert.equal(native.provenance.output.collectionHash, nativeReceipt.outputHash, label); + const [image] = native.provenance.output.items; + assert.equal(native.provenance.output.count, 1, label); + assert.equal(image.backendMediaHash, association.output.outputEncodedSha256, label); + assert.equal(image.decodedSha256, association.output.decodedMediaHash, label); + assert.deepEqual([image.width, image.height], [entry.width, entry.height], label); + return; + } assert.equal(nativeReceipt.canonicalDefaultsExecuted, false, label); + if (recipe.workflowId === 'HuggingFaceSpeechRecognitionModel:speech_translation') { + const verified = verifyRetainedSpeechGalleryEvidence({ + recipe, + native, + galleryOutput: { + bytes: outputBytes, + ref: { + bytes: association.output.outputBytes, + sha256: association.output.outputEncodedSha256.slice('sha256:bytes:'.length), + }, + }, + }); + assert.deepEqual(verified.output, association.output, label); + assert.equal(verified.backendContractFingerprint, entry.backendContractFingerprint, label); + return; + } assert.equal(nativeReceipt.backendContractFingerprint, entry.backendContractFingerprint, label); assert.equal(nativeReceipt.promptBinding.sha256, recipe.promptSha256, label); assert.equal(nativeReceipt.inputBinding?.sha256, recipe.inputSha256, label); @@ -167,7 +210,7 @@ export function createRetainedGalleryReleaseReader({ clientRoot, source, registr ).bytes; }; - return ({ recipe, entry, sourceWorkflow, templateRevisionHash, localAssociation, nativeReceipt }) => { + return ({ recipe, entry, sourceWorkflow, templateRevisionHash, localAssociation, native, nativeReceipt }) => { if (!sourceWorkflow || !entry?.proofLockHash?.startsWith('sha256:retained-template-association-v1:')) return null; if (!approved) { approved = verifiedRetainedGalleryAssetIndex(clientRoot, source); @@ -176,11 +219,12 @@ export function createRetainedGalleryReleaseReader({ clientRoot, source, registr assert.equal(sourceWorkflow.manifest.id, recipe.workflowId); assert.equal(sourceWorkflow.manifest.sourceTemplateId, recipe.sourceTaskTemplateId); const bundle = JSON.parse(open(entry.provenancePath)); + const outputBytes = open(entry.outputPath); assert.equal(galleryJsonHash(bundle), entry.provenanceHash); same( validateRetainedGalleryProvenance(bundle, entry, { templateRevisionHash, - outputBytes: open(entry.outputPath), + outputBytes, beforeBytes: entry.beforePath ? open(entry.beforePath) : undefined, }), [], @@ -196,7 +240,7 @@ export function createRetainedGalleryReleaseReader({ clientRoot, source, registr assertRetainedTechnicalRecipe({ recipe, sourceWorkflow, association, entry, nativeReceipt }); } if (association.approvedFiles) { - assertRetainedBatchEvidence({ recipe, sourceWorkflow, association, entry, nativeReceipt }); + assertRetainedBatchEvidence({ recipe, sourceWorkflow, association, entry, native, nativeReceipt, outputBytes }); verifyRetainedApprovedFiles(association.approvedFiles, open); } if (localAssociation) { @@ -263,7 +307,9 @@ export function createRetainedGalleryReleaseReader({ clientRoot, source, registr ...(spandrel ? { modelArtifact: observedExecution.modelArtifact, observationLimits: observedExecution.observationLimits } : {}), - ...(association.recipeObservation ? { observationLimits: observedExecution.observationLimits } : {}), + ...(association.recipeObservation || observedExecution.observationLimits?.memoryMeasurement + ? { observationLimits: observedExecution.observationLimits } + : {}), evidenceMatch: 'current_reviewed_retained_recipe', }; }; diff --git a/scripts/retained-gallery-templates.test.mjs b/scripts/retained-gallery-templates.test.mjs index 44f10e9a..f9ecd0b7 100644 --- a/scripts/retained-gallery-templates.test.mjs +++ b/scripts/retained-gallery-templates.test.mjs @@ -160,7 +160,7 @@ test('retained Gallery recipes preserve the native graph identities and standalo recipe.originalReceiptSha256, ); const evidenceFile = join(evidenceRoot, 'evidence.json'); - assert.equal(sha256(template.prompt), recipe.promptSha256); + if (recipe.promptSha256 !== undefined) assert.equal(sha256(template.prompt), recipe.promptSha256); if (existsSync(evidenceFile)) { const originalAuthoring = readCanonicalEvidenceFile(evidenceRoot, { path: 'authoring-spec.original.json', @@ -238,7 +238,7 @@ test('fresh Expert recipes prepare with current backend specs and without a gene flow.getState().setParam(payload.node, 'pipeline', { direction: 'output', value: contract }, 'signal'); } else { assert.equal(payload.fn, 'update_image_contract'); - assert.ok(['PredictMap', 'Edit', 'Generate', 'Inpaint'].includes(payload.action)); + assert.ok(['PredictMap', 'Edit', 'Generate', 'Inpaint', 'UnconditionalGenerate'].includes(payload.action)); assert.deepEqual(payload.values.image_contract, contract); } return Response.json({ error: false, nodes: [] }); @@ -267,7 +267,7 @@ test('fresh Expert recipes prepare with current backend specs and without a gene audio ? { sourceAudio: input[0] } : { referenceImages: input, ...(mask && { maskImage: mask }) }, ); const form = studio.getState().form; - assert.equal(form.device, 'cuda:0'); + assert.equal(form.device, template.example.lockedSettings.device ?? 'cuda:0'); assert.equal(form.resourceMode, 'expert'); assert.equal(form.randomSeed, false); await graphBridge.createOrUpdateStudioGraph(form, undefined, 3000).catch((error) => { @@ -308,15 +308,28 @@ test('fresh Expert recipes prepare with current backend specs and without a gene assert.deepEqual(loader.params.model_id.value, { source: 'hub', value: template.modelArtifact.value }); assert.equal(loader.params.revision.value, template.modelArtifact.revision); assert.equal(loader.params.dtype.value, template.example.lockedSettings.dtype ?? 'float32'); - assert.equal(loader.params.device.value, 'cuda:0'); - if (approvedBatchIds.has(template.id)) { + assert.equal(loader.params.device.value, form.device); + if (approvedBatchIds.has(template.id) && !audio) { const actions = Object.values(api.nodes); const generation = actions.find(({ action }) => - ['Generate', 'Edit', 'Inpaint', 'GenerateAnyToAny'].includes(action), + [ + 'Generate', + 'Edit', + 'Inpaint', + 'GenerateAnyToAny', + 'GenerateImageVideoText', + 'UnconditionalGenerate', + ].includes(action), ); - assert.equal(generation.params.prompt.value, template.prompt); + assert.equal(generation.params.prompt?.value ?? '', template.prompt); const locked = template.example.lockedSettings; - if (generation.action !== 'GenerateAnyToAny') { + if (generation.action === 'UnconditionalGenerate') { + assert.equal(generation.params.num_inference_steps.value, locked.steps); + assert.equal(Number(generation.params.seed.value), template.example.lockedSeed); + assert.equal(generation.params.pipeline.sourceId, binding.nodes.diffusersImagePipeline); + assert.equal(generation.params.pipeline.sourceKey, 'pipeline'); + assert.equal(generation.params.prompt, undefined); + } else if (!['GenerateAnyToAny', 'GenerateImageVideoText'].includes(generation.action)) { for (const [field, control] of [ ['width', 'width'], ['height', 'height'], @@ -340,6 +353,13 @@ test('fresh Expert recipes prepare with current backend specs and without a gene // native file evidence records the same selected file as a one-item list. const file = source.params.file.value; assert.deepEqual(typeof file === 'string' ? [file] : file, input); + if (template.mode === 'speech_translation') { + const consumer = Object.values(api.nodes).find(({ action }) => action === 'TranscribeAudio'); + assert.equal(consumer.params.task.value, 'translate'); + assert.equal(consumer.params.language.value, template.example.lockedSettings.speechLanguage); + assert.equal(consumer.params.timestamps.value, 'segment'); + continue; + } source.params.file.value = input; const withIndependentInputsOrdered = ({ canonicalGraph }) => { // The fresh form inserts the model before Audio Load. Both are diff --git a/scripts/retained-speech-gallery-evidence.mjs b/scripts/retained-speech-gallery-evidence.mjs index 5fb102c1..b1e2b009 100644 --- a/scripts/retained-speech-gallery-evidence.mjs +++ b/scripts/retained-speech-gallery-evidence.mjs @@ -8,6 +8,13 @@ import { readCanonicalEvidenceFile } from './release-contract-core.mjs'; const digest = (bytes) => createHash('sha256').update(bytes).digest('hex'); const retainedSpeechTemplates = new Map([ + [ + 'whisper_small_an_open_door', + { + workflowId: 'HuggingFaceSpeechRecognitionModel:speech_translation', + sourceTaskTemplateId: 'task-template:whisper-tiny:speech-translation:v1', + }, + ], [ 'whisper_tiny_blue_cup_transcription', { @@ -60,7 +67,8 @@ export function verifyRetainedSpeechGalleryEvidence({ recipe, native, galleryOut assert.equal(recipe.sourceTaskTemplateId, template.sourceTaskTemplateId); assert.equal(galleryInput, undefined, 'The retained speech audio source stays private.'); const route = speechRoute(recipe.workflowId); - assert.equal(recipe.template.mode, 'speech_to_text'); + const mode = route.translation ? 'speech_translation' : 'speech_to_text'; + assert.equal(recipe.template.mode, mode); assert.equal(recipe.template.modelType, route.modelType); assert.deepEqual( recipe.template.modelArtifact, @@ -75,7 +83,7 @@ export function verifyRetainedSpeechGalleryEvidence({ recipe, native, galleryOut assert.equal(receipt.proofKind, 'real_backend_input_bound_model_variant'); assert.equal(receipt.workflowId, recipe.workflowId); assert.equal(receipt.sourceTemplateId, recipe.sourceTaskTemplateId); - assert.equal(receipt.task, 'speech_to_text'); + assert.equal(receipt.task, mode); assert.equal(receipt.modelType, route.modelType); assert.deepEqual( receipt.modelSet, @@ -123,7 +131,7 @@ export function verifyRetainedSpeechGalleryEvidence({ recipe, native, galleryOut assert.ok(Buffer.from(transport[0]).equals(structuredBytes), 'Gallery transcript must match the exact native JSON.'); const transcript = JSON.parse(transport[0]); assert.equal(transcript.schemaVersion, 1); - assert.equal(transcript.task, 'transcribe'); + assert.equal(transcript.task, route.translation ? 'translate' : 'transcribe'); assert.equal( transcript.timestampMode, route.timestamps, diff --git a/scripts/template-gallery-harness.test.mjs b/scripts/template-gallery-harness.test.mjs index 5d4bdc6b..53f717fe 100644 --- a/scripts/template-gallery-harness.test.mjs +++ b/scripts/template-gallery-harness.test.mjs @@ -1110,9 +1110,9 @@ test('public provenance redacts removable Linux mounts while retaining public an }); test('gallery harness loads all Studio templates from the TypeScript runtime', () => { - assert.equal(runtime.templates.length, 119); + assert.equal(runtime.templates.length, 125); const ids = new Set(runtime.templates.map((template) => template.id)); - assert.equal(ids.size, 119); + assert.equal(ids.size, 125); assert.ok(ids.has('whisper_tiny_blue_cup_transcription')); assert.ok(ids.has('wav2vec2_station_announcement')); assert.ok(ids.has('lcm_dawn_alpine_lake')); diff --git a/src/studio/graphBridge.ts b/src/studio/graphBridge.ts index 36ec6124..44db5358 100644 --- a/src/studio/graphBridge.ts +++ b/src/studio/graphBridge.ts @@ -416,6 +416,7 @@ function diffusersImageActionNode(binding: StudioGraphBinding) { binding.nodes.diffusersImageControl ?? binding.nodes.diffusersImageLayerDecompose ?? binding.nodes.diffusersImageEdit ?? + binding.nodes.diffusersUnconditionalGenerate ?? binding.nodes.diffusersImageGenerate ); } @@ -3413,13 +3414,24 @@ function applyExecutionSpecValues(binding: StudioGraphBinding, form: StudioFormS if (candidate && candidate.executionProfileId !== spec.executionProfileId) { throw new Error('The selected Auto candidate does not match the Studio execution specification.'); } + const activeTemplateId = useStudioStore.getState().activeTemplateId; + const activeTemplate = + form.resourceMode === 'expert' && + STUDIO_TEMPLATES.find( + ({ id, modelType, mode }) => id === activeTemplateId && modelType === spec.modelType && mode === spec.mode, + ); + const artifact = activeTemplate ? activeTemplate.modelArtifact : undefined; + const pinnedTemplateArtifact = + artifact?.source === 'hub' && /^[a-f0-9]{40}$/u.test(artifact.revision ?? '') ? artifact : undefined; const audioTemplateBaseModel = binding.nodes.audioPipeline ? activeAudioTemplateBaseModel() : null; const capability = useNodesStore.getState().studioModelCapabilities.find((item) => item.modelType === spec.modelType); const values = resolveStudioExecutionSpecValues(form, spec, capability, { candidate, audioTemplateBaseModel, seed: seedValue(form), + defaultModelRevision: pinnedTemplateArtifact?.revision, }); + if (pinnedTemplateArtifact) values.artifact = pinnedTemplateArtifact.value; const declaredFormat = assertFormWeightFormatSelection( form, spec, @@ -4149,9 +4161,13 @@ async function finalizeDiffusersImageGraph( ) { const prediction = binding.nodes.diffusersPredictMap; const targetNode = prediction ?? diffusersImageActionNode(binding); - const targetFields = prediction - ? [['pipeline'], ['image'], ['preview_images']] - : [['pipeline'], ['prompt'], ['images']]; + const targetFields = [['pipeline']]; + if (prediction) { + targetFields.push(['image'], ['preview_images']); + } else { + if (!binding.nodes.diffusersUnconditionalGenerate) targetFields.push(['prompt']); + targetFields.push(['images']); + } await Promise.all([ waitForFieldGroupsTracked( binding.nodes.diffusersImagePipeline, diff --git a/src/studio/retainedGalleryApprovedBatch.ts b/src/studio/retainedGalleryApprovedBatch.ts index a885ce4b..5dea73a2 100644 --- a/src/studio/retainedGalleryApprovedBatch.ts +++ b/src/studio/retainedGalleryApprovedBatch.ts @@ -1680,4 +1680,511 @@ export const APPROVED_RETAINED_BATCH: RetainedGalleryRecipe[] = [ runtimeReuseKey: 'sha256:canonical-graph-v1:029c04a5a3e933bb710937287da6cab94ef80b85a2b57c93e3002a3b6334d62f', }, }, + { + workflowId: 'DDIMPipeline:unconditional_image', + sourceTaskTemplateId: 'task-template:ddim-cifar10:unconditional-image:v1', + retainedGraphHash: 'sha256:canonical-graph-v1:ef9521d37a186e6b6539068596033f2b921370e3cf3ca8a031f3feaae8716434', + originalReceiptSha256: 'ba8521d8043808cfb8880be8e8f46eadb81e266624aa6fb478c8b0d156bab079', + reviewedTemplateSha256: '1f41b7d2d7bccb216f46b9ce174a9d4246f0348584e208baeeaa4af92c172c9f', + reviewedCatalogLock: { + templateLockHash: 'tpl_13b8b56b', + galleryTemplateLockHash: 'tpl_48bbabb3', + promptSettingsHash: 'ps_b456b1ed', + }, + promptSha256: 'e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855', + template: { + id: 'ddim_cifar10_preview', + label: 'DDIM CIFAR-10 32x32 — Unconditional image: CIFAR-10 Technical Preview', + mode: 'unconditional_image', + modelType: 'DDIMPipeline', + intentGroup: 'generate_image', + category: 'concept', + outputKinds: ['image'], + readinessPolicy: 'runnable', + modelArtifact: { + source: 'hub', + value: 'google/ddpm-cifar10-32', + revision: '267b167dc01f0e4e61923ea244e8b988f84deb80', + }, + description: + 'Reproduce the reviewed CIFAR-10 Technical Preview example with the saved prompt, settings and model revision.', + prompt: '', + negativePrompt: '', + example: { + mediaType: 'image', + status: 'unverified', + modelRevision: '267b167dc01f0e4e61923ea244e8b988f84deb80', + lockedSeed: 42, + lockedSettings: { + width: 32, + height: 32, + steps: 50, + guidanceScale: 0, + strength: 0.8, + outputType: 'pil', + maxSequenceLength: 512, + dtype: 'float32', + resourceMode: 'expert', + quantizationMode: 'none', + autoOffload: false, + offloadMode: 'none', + }, + expectedOutput: { + width: 32, + height: 32, + }, + notes: 'Technical preview at the native 32 by 32 resolution.', + runtimeEstimate: '3.95 seconds in the saved run', + }, + requiredBackendCapabilities: [ + 'modules.DiffusersImage.LoadPipeline', + 'modules.DiffusersRuntime.PipelineQuantizationConfigV2', + 'modules.DiffusersRuntime.DiffusersExecutionRecipe', + 'modules.DiffusersImage.UnconditionalGenerate', + 'modules.Image.Preview', + ], + mediaSlots: [ + { + id: 'result', + label: 'Generated image', + kind: 'image', + role: 'output', + placeholder: 'Result pending', + }, + ], + recipeSummary: + 'Reproduce the reviewed CIFAR-10 Technical Preview example with the saved prompt, settings and model revision.', + runtimeReuseKey: 'sha256:canonical-graph-v1:ef9521d37a186e6b6539068596033f2b921370e3cf3ca8a031f3feaae8716434', + }, + }, + { + workflowId: 'StableDiffusionXLPipeline:inpaint', + sourceTaskTemplateId: 'task-template:sdxl-base:inpaint:v1', + retainedGraphHash: 'sha256:canonical-graph-v1:46f00547faa02a687a12eafda44d9c94802a76505143f4a95124b6bd44eabfda', + originalReceiptSha256: '04773f9c39ab30246fca3f87394f504a61772ccfa97630d4b46d1a9530450ee2', + reviewedTemplateSha256: '5ac53251bbc44c8b3eb62ab06fba702e275ebc7340348f36fb20a055d36b3573', + reviewedCatalogLock: { + templateLockHash: 'tpl_15f3348b', + galleryTemplateLockHash: 'tpl_72c55f1d', + promptSettingsHash: 'ps_fdf2b4ba', + }, + promptSha256: '159253308aba23cc8f6955da96e48e550533d368ca286ad70b6caa601d1291e4', + inputSha256: 'e75c20f0e8a74e283b996bf526e6ea74535ed24125ad97c2d92508d3435d7a87', + inputLocatorSha256: '69ba088466bbd714eba0a70d1dc24984230ca1ac74b00ac0ff1bbcb29675799d', + maskSha256: '1f48775f2826f84e0c5b55f16f3475bdc80ecad8b931d6b0279598610e9a828d', + template: { + id: 'sdxl_clear_cobalt_backdrop', + label: 'Stable Diffusion XL 1.0 — Inpaint: Clear Backdrop for Cobalt Glass', + mode: 'inpaint', + modelType: 'StableDiffusionXLPipeline', + intentGroup: 'edit_image', + category: 'inpaint', + inputBindings: [ + { + id: 'source-image', + label: 'Source image', + mediaType: 'image', + field: 'referenceImages', + origin: 'user', + requiredAt: 'workflow_start', + count: 1, + }, + { + id: 'mask-image', + label: 'Mask image', + mediaType: 'image', + field: 'maskImage', + origin: 'user', + requiredAt: 'workflow_start', + count: 1, + }, + ], + outputKinds: ['image'], + readinessPolicy: 'requires_input', + modelArtifact: { + source: 'hub', + value: 'stabilityai/stable-diffusion-xl-base-1.0', + revision: '462165984030d82259a11f4367a4eed129e94a7b', + }, + description: + 'Reproduce the reviewed Clear Backdrop for Cobalt Glass example with the saved prompt, settings and model revision.', + prompt: + 'Studio product photograph of a cobalt blue glass cube on a pale stone slab against a plain pale-gray wall. The upper right is empty wall, a seamless uninterrupted matte surface with diffuse daylight and a subtle gradient that matches the surrounding studio backdrop.', + negativePrompt: '', + example: { + mediaType: 'image', + status: 'unverified', + modelRevision: '462165984030d82259a11f4367a4eed129e94a7b', + lockedSeed: 42, + lockedSettings: { + width: 1024, + height: 1024, + steps: 30, + guidanceScale: 5, + strength: 0.8, + outputType: 'pil', + maxSequenceLength: 512, + dtype: 'bfloat16', + resourceMode: 'expert', + quantizationMode: 'none', + autoOffload: true, + offloadMode: 'model_cpu', + }, + expectedOutput: { + width: 1024, + height: 1024, + }, + runtimeEstimate: '22.41 seconds in the saved run', + }, + requiredBackendCapabilities: [ + 'modules.DiffusersImage.Inpaint', + 'modules.DiffusersImage.LoadPipeline', + 'modules.DiffusersRuntime.PipelineQuantizationConfigV2', + 'modules.DiffusersRuntime.DiffusersExecutionRecipe', + 'modules.Image.Load', + 'modules.Image.Preview', + ], + mediaSlots: [ + { + id: 'before', + label: 'Source image', + kind: 'comparison_before', + role: 'before', + placeholder: 'Source pending', + }, + { + id: 'after', + label: 'Generated image', + kind: 'comparison_after', + role: 'after', + placeholder: 'Preview pending', + }, + ], + thumbnailVariant: 'compareSlider', + recipeSummary: + 'Reproduce the reviewed Clear Backdrop for Cobalt Glass example with the saved prompt, settings and model revision.', + runtimeReuseKey: 'sha256:canonical-graph-v1:46f00547faa02a687a12eafda44d9c94802a76505143f4a95124b6bd44eabfda', + }, + }, + { + workflowId: 'StableDiffusionXLTurboPipeline:text_to_image', + sourceTaskTemplateId: 'task-template:sdxl-turbo:text-to-image:v1', + retainedGraphHash: 'sha256:canonical-graph-v1:40e7ee74d823ffc46f9e096c7cba50ec7f825e36627159674e1e621c33bbe0d3', + originalReceiptSha256: 'c530e10728c8c3871c1f6d6e58589996b8e926729d7c57e43fa36d020660e3dd', + reviewedTemplateSha256: 'a8bae14e8dc50c3969cba99c45be96d5ffbbca1fa12824640f5c3360bcc4427c', + reviewedCatalogLock: { + templateLockHash: 'tpl_117d90f4', + galleryTemplateLockHash: 'tpl_53f34630', + promptSettingsHash: 'ps_4787eff9', + }, + promptSha256: '370292f42dec86505ba60a4386671fcf130c10ce047b910063ffbbb0a511e0eb', + template: { + id: 'sdxl_turbo_orange_caps', + label: 'Stable Diffusion XL Turbo — Text to image: Orange Caps on Moss', + mode: 'text_to_image', + modelType: 'StableDiffusionXLTurboPipeline', + intentGroup: 'generate_image', + category: 'concept', + outputKinds: ['image'], + readinessPolicy: 'runnable', + modelArtifact: { + source: 'hub', + value: 'stabilityai/sdxl-turbo', + revision: '71153311d3dbb46851df1931d3ca6e939de83304', + }, + description: + 'Reproduce the reviewed Orange Caps on Moss example with the saved prompt, settings and model revision.', + prompt: + 'Square editorial photograph of orange trumpet mushrooms growing on dark moss beside a fallen birch twig. Rain droplets, soft overcast daylight, shallow depth of field, natural macro detail.', + negativePrompt: '', + example: { + mediaType: 'image', + status: 'unverified', + modelRevision: '71153311d3dbb46851df1931d3ca6e939de83304', + lockedSeed: 42, + lockedSettings: { + width: 512, + height: 512, + steps: 1, + guidanceScale: 0, + strength: 0.8, + outputType: 'pil', + maxSequenceLength: 512, + dtype: 'float16', + resourceMode: 'expert', + quantizationMode: 'none', + autoOffload: true, + offloadMode: 'model_cpu', + }, + expectedOutput: { + width: 512, + height: 512, + }, + runtimeEstimate: '7.25 seconds in the saved run', + }, + requiredBackendCapabilities: [ + 'modules.DiffusersImage.Generate', + 'modules.DiffusersImage.LoadPipeline', + 'modules.DiffusersRuntime.PipelineQuantizationConfigV2', + 'modules.DiffusersRuntime.DiffusersExecutionRecipe', + 'modules.Image.Preview', + ], + mediaSlots: [ + { + id: 'result', + label: 'Generated image', + kind: 'image', + role: 'output', + placeholder: 'Result pending', + }, + ], + recipeSummary: + 'Reproduce the reviewed Orange Caps on Moss example with the saved prompt, settings and model revision.', + runtimeReuseKey: 'sha256:canonical-graph-v1:40e7ee74d823ffc46f9e096c7cba50ec7f825e36627159674e1e621c33bbe0d3', + }, + }, + { + workflowId: 'HuggingFaceSpeechRecognitionModel:speech_translation', + sourceTaskTemplateId: 'task-template:whisper-tiny:speech-translation:v1', + retainedGraphHash: 'sha256:canonical-graph-v1:69e261c29aa777da002dada801f01091436e8f116780f1ac7271ce23a3da425c', + originalReceiptSha256: '9d7ed920f22989d90bddc05fb1976b69025132a87799d43d361f14d671539d1c', + reviewedTemplateSha256: 'cfc95f86cf49288a5b851e7e042558b50bcd091f1a69cfabdf961cb204fde1ac', + reviewedCatalogLock: { + templateLockHash: 'tpl_d016a22c', + galleryTemplateLockHash: 'tpl_169ef95b', + promptSettingsHash: 'ps_c6fb7372', + }, + inputSha256: 'cbf33b144644e786767fec1d5db416d50533d9846f8347e157ac8c3f54f26f11', + inputLocatorSha256: '49fcd9605ca47c396030ec76144518411fdbfb9a953cf7ca27717017b010b13b', + template: { + id: 'whisper_small_an_open_door', + label: 'Whisper Small — Speech translation: An Open Door', + mode: 'speech_translation', + modelType: 'HuggingFaceSpeechRecognitionModel', + modelDisplayName: 'Whisper Small', + intentGroup: 'utility', + category: 'audio_edit', + inputBindings: [ + { + id: 'source-audio', + label: 'Source audio', + mediaType: 'audio', + field: 'sourceAudio', + origin: 'user', + requiredAt: 'workflow_start', + count: 1, + }, + ], + outputKinds: ['json'], + readinessPolicy: 'requires_input', + modelArtifact: { + source: 'hub', + value: 'openai/whisper-small', + revision: '973afd24965f72e36ca33b3055d56a652f456b4d', + }, + description: 'Reproduce the reviewed An Open Door example with the saved prompt, settings and model revision.', + prompt: '', + negativePrompt: '', + example: { + mediaType: 'json', + status: 'unverified', + modelRevision: '973afd24965f72e36ca33b3055d56a652f456b4d', + lockedSeed: 42, + lockedSettings: { + width: 1, + height: 1, + steps: 1, + guidanceScale: 0, + strength: 0.8, + outputType: 'pil', + maxSequenceLength: 512, + dtype: 'float32', + resourceMode: 'expert', + quantizationMode: 'none', + autoOffload: false, + offloadMode: 'none', + speechLanguage: 'es', + }, + runtimeEstimate: '3.83 seconds in the saved run', + }, + requiredBackendCapabilities: [ + 'modules.Audio.Load', + 'modules.HuggingFaceSpeech.LoadSpeechRecognitionModel', + 'modules.HuggingFaceSpeech.TranscribeAudio', + 'modules.Primitive.DataViewer', + ], + mediaSlots: [ + { + id: 'result', + label: 'Structured response', + kind: 'json', + role: 'output', + placeholder: 'Result pending', + }, + ], + recipeSummary: 'Reproduce the reviewed An Open Door example with the saved prompt, settings and model revision.', + runtimeReuseKey: 'sha256:canonical-graph-v1:69e261c29aa777da002dada801f01091436e8f116780f1ac7271ce23a3da425c', + }, + }, + { + workflowId: 'HuggingFaceImageTextToTextModel:image_to_text', + sourceTaskTemplateId: 'task-template:smolvlm-256m-instruct:image-to-text:v1', + retainedGraphHash: 'sha256:canonical-graph-v1:619f187da77a6fda72f90354dcb1768036d2f46b8418f51d674ceac1942c31a6', + originalReceiptSha256: 'daf5d3a9cb638e942a8f3f53df6cc86860e874943bc28fa01175ca2d30e56d5d', + reviewedTemplateSha256: '7c5cc75ca115a437ec6a7ebab59030ef5c5ea14c74735bae5ca78dff427fb0e2', + reviewedCatalogLock: { + templateLockHash: 'tpl_7d29caa4', + galleryTemplateLockHash: 'tpl_0912c789', + promptSettingsHash: 'ps_b91c5c35', + }, + promptSha256: '31d08ea568d869e6cf7c0742d85a54617ba38744b60123dfe25f3c81f9e111aa', + inputSha256: '42d903217dc0d8addf5bb6b4a91c2fd83f6fec7fbbf165d780308b5efcba8c6f', + inputLocatorSha256: 'ce6e7bdfc88e0f8e6c01d9db3078a2990182e21ac8169460c399a757c1f0c294', + template: { + id: 'smolvlm_red_triangle', + label: 'SmolVLM 256M Instruct — Image to text: Red Triangle Identification', + mode: 'image_to_text', + modelType: 'HuggingFaceImageTextToTextModel', + intentGroup: 'edit_image', + category: 'text', + inputBindings: [ + { + id: 'source-image', + label: 'Source image', + mediaType: 'image', + field: 'referenceImages', + origin: 'user', + requiredAt: 'workflow_start', + count: 1, + }, + ], + outputKinds: ['json'], + readinessPolicy: 'requires_input', + modelArtifact: { + source: 'hub', + value: 'HuggingFaceTB/SmolVLM-256M-Instruct', + revision: '7e3e67edbbed1bf9888184d9df282b700a323964', + }, + description: + 'Reproduce the reviewed Red Triangle Identification example with the saved prompt, settings and model revision.', + prompt: 'What is the red object on the white background?', + negativePrompt: '', + example: { + mediaType: 'json', + status: 'unverified', + modelRevision: '7e3e67edbbed1bf9888184d9df282b700a323964', + lockedSeed: 42, + lockedSettings: { + width: 512, + height: 512, + steps: 1, + guidanceScale: 0, + strength: 0.8, + outputType: 'pil', + maxSequenceLength: 512, + dtype: 'float32', + resourceMode: 'expert', + quantizationMode: 'none', + autoOffload: false, + offloadMode: 'none', + }, + runtimeEstimate: '3.11 seconds in the saved run', + }, + requiredBackendCapabilities: [ + 'modules.Image.Load', + 'modules.HuggingFaceTransformers.GenerateImageVideoText', + 'modules.HuggingFaceTransformers.LoadImageTextToTextModel', + 'modules.Primitive.DataViewer', + ], + mediaSlots: [ + { + id: 'result', + label: 'Structured response', + kind: 'json', + role: 'output', + placeholder: 'Result pending', + }, + ], + recipeSummary: + 'Reproduce the reviewed Red Triangle Identification example with the saved prompt, settings and model revision.', + runtimeReuseKey: 'sha256:canonical-graph-v1:619f187da77a6fda72f90354dcb1768036d2f46b8418f51d674ceac1942c31a6', + }, + }, + { + workflowId: 'Kandinsky3Pipeline:text_to_image', + sourceTaskTemplateId: 'task-template:kandinsky3:text-to-image:v1', + retainedGraphHash: 'sha256:canonical-graph-v1:2d805bf9c48d49b9e4c2778136f8c528d8ff82a7f7753ba7a99021cc439b5b3c', + originalReceiptSha256: '41b3b13c0f66711ffa3ac065f7a990bee824fc52db69940b8f75e0f7f79bdd38', + reviewedTemplateSha256: '5870090e6b4d12c32d72566b6038e9bcc8bf8d063492a28ecbeb65275d77c8e9', + reviewedCatalogLock: { + templateLockHash: 'tpl_23ed569e', + galleryTemplateLockHash: 'tpl_44580a03', + promptSettingsHash: 'ps_bf341b46', + }, + promptSha256: '349928bf9ad6755eb4abb5af47199b1152e32323eb855dca5a9dbcfeb3475730', + template: { + id: 'kandinsky3_ginkgo_on_slate', + label: 'Kandinsky 3 — Text to image: Ginkgo on Slate', + mode: 'text_to_image', + modelType: 'Kandinsky3Pipeline', + intentGroup: 'generate_image', + category: 'concept', + outputKinds: ['image'], + readinessPolicy: 'runnable', + modelArtifact: { + source: 'hub', + value: 'kandinsky-community/kandinsky-3', + revision: 'bf79e6c219da8a94abb50235fdc4567eb8fb4632', + }, + description: 'Reproduce the reviewed Ginkgo on Slate example with the saved prompt, settings and model revision.', + prompt: + 'Macro still life photograph of a single fan-shaped ginkgo leaf on a dark weathered stone. The leaf is golden yellow with fine veins and two small droplets. Soft light from the right. Restrained warm gold against charcoal slate, close overhead composition.', + negativePrompt: '', + example: { + mediaType: 'image', + status: 'unverified', + modelRevision: 'bf79e6c219da8a94abb50235fdc4567eb8fb4632', + lockedSeed: 42, + lockedSettings: { + width: 1024, + height: 1024, + steps: 25, + guidanceScale: 3, + strength: 0.75, + outputType: 'pil', + maxSequenceLength: 128, + dtype: 'float32', + resourceMode: 'expert', + quantizationMode: 'none', + autoOffload: false, + offloadMode: 'none', + device: 'cpu:0', + }, + expectedOutput: { + width: 1024, + height: 1024, + }, + runtimeEstimate: '237.05 seconds in the saved run', + }, + requiredBackendCapabilities: [ + 'modules.DiffusersImage.Generate', + 'modules.DiffusersImage.LoadPipeline', + 'modules.DiffusersRuntime.PipelineQuantizationConfigV2', + 'modules.DiffusersRuntime.DiffusersExecutionRecipe', + 'modules.Image.Preview', + ], + mediaSlots: [ + { + id: 'result', + label: 'Generated image', + kind: 'image', + role: 'output', + placeholder: 'Result pending', + }, + ], + recipeSummary: + 'Reproduce the reviewed Ginkgo on Slate example with the saved prompt, settings and model revision.', + runtimeReuseKey: 'sha256:canonical-graph-v1:2d805bf9c48d49b9e4c2778136f8c528d8ff82a7f7753ba7a99021cc439b5b3c', + }, + }, ]; diff --git a/src/studio/templateAssetSource.json b/src/studio/templateAssetSource.json index fc2f0a4b..db3da35d 100644 --- a/src/studio/templateAssetSource.json +++ b/src/studio/templateAssetSource.json @@ -4,11 +4,11 @@ "localBasePath": "/template-gallery", "repoType": "dataset", "repoId": "sourav-das/modiff-template-gallery", - "revision": "56751b206e461b4a3cdfbcab35b3ae46d8cf43fd", + "revision": "7a5c7bd80df3c9179762bece6adc28dd62e1ab9e", "pathPrefix": "template-gallery", "assetManifestPath": "_modiff/template-assets.v1.json", - "assetSetId": "sha256:canonical-json:93e433f8eccbc604c49832ece766ee09ce6d0aa7d049eabf5391f3e28e400162", - "completeAssetSetId": "sha256:canonical-json:caa900140d82653b84f9c71dda792dda20616498078938bc687b8dfc977b9f72", + "assetSetId": "sha256:canonical-json:f101d2602b1d61f6b963af6db70d67b45d0b8af2b95a6a2f2020974b4540c21b", + "completeAssetSetId": "sha256:canonical-json:690ea1522e3b4ffd3d72bc5911f02763c842fa3d23428ef123db0dbe0dca3a91", "unavailableAssets": [ "template-gallery/ace_step_chinese_new_year_lora.card-poster.png", "template-gallery/ace_step_chinese_new_year_lora.wav", diff --git a/src/studio/templateExactness.ts b/src/studio/templateExactness.ts index cb3bbf0e..37d964d0 100644 --- a/src/studio/templateExactness.ts +++ b/src/studio/templateExactness.ts @@ -293,7 +293,9 @@ export function getTemplateInputContractHash(template: StudioTemplate) { return `tic_${hashString(stableStringify(defaults))}`; } -export function getTemplateLockedSettings(template: StudioTemplate): StudioTemplateLockedSettings { +export function getTemplateLockedSettings( + template: StudioTemplate, +): StudioTemplateLockedSettings & Partial> { const defaults = getFormDefaultsForMode(template.mode, template.modelType); const presetValues = getPreset(template.presetId)?.values ?? {}; const lockedSettings = template.example?.lockedSettings ?? {}; @@ -319,7 +321,10 @@ export function getTemplateLockedSettings(template: StudioTemplate): StudioTempl : {}), } : { ...settings, [field]: merged[field] }, - {} as StudioTemplateLockedSettings, + { + ...(lockedSettings.device !== undefined && { device: lockedSettings.device }), + ...(lockedSettings.speechLanguage !== undefined && { speechLanguage: lockedSettings.speechLanguage }), + } as StudioTemplateLockedSettings & Partial>, ); } diff --git a/src/studio/types.ts b/src/studio/types.ts index d03c00f5..c9b0cc24 100644 --- a/src/studio/types.ts +++ b/src/studio/types.ts @@ -253,6 +253,12 @@ export type StudioPresetId = export type StudioTemplateId = | 'alpine_lake_in_oils' + | 'ddim_cifar10_preview' + | 'sdxl_clear_cobalt_backdrop' + | 'sdxl_turbo_orange_caps' + | 'whisper_small_an_open_door' + | 'smolvlm_red_triangle' + | 'kandinsky3_ginkgo_on_slate' | 'bookshop_at_blue_hour' | 'flowers_after_rain' | 'forest_ferns' @@ -1639,7 +1645,7 @@ export type StudioTemplateExample = { mediaType: TemplateMediaType; status: TemplateExactnessStatus; lockedSeed: number; - lockedSettings?: Partial; + lockedSettings?: Partial>; /** Contract for each primary runtime output emitted by the graph. */ expectedOutput?: TemplateExpectedOutput; /** Optional derived gallery-media override, such as a review contact sheet. */ From da94b5e3db84cad75c61a515afdb20cf7d713525 Mon Sep 17 00:00:00 2001 From: Sourav Das Date: Wed, 25 Nov 2026 03:22:40 +0530 Subject: [PATCH 340/440] Verify retained native Sana image evidence --- scripts/live-proof-provenance.mjs | 25 ++++++++++++++++++++++++ scripts/native-variant-run-evidence.mjs | 6 +++--- scripts/prompt-variant-evidence.mjs | 18 ++++++++++++----- scripts/prompt-variant-evidence.test.mjs | 18 +++++++++++++++++ 4 files changed, 59 insertions(+), 8 deletions(-) diff --git a/scripts/live-proof-provenance.mjs b/scripts/live-proof-provenance.mjs index 462786f3..4e79f41a 100644 --- a/scripts/live-proof-provenance.mjs +++ b/scripts/live-proof-provenance.mjs @@ -2262,6 +2262,31 @@ export const directImagePromptRoutes = [ negative_prompt: '', }, }, + { + format: 'modiff.private.sana-text-to-image-prompt-variant.v1', + workflowId: 'SanaPipeline:text_to_image', + modelType: 'SanaPipeline', + modelRepo: 'Efficient-Large-Model/Sana_600M_1024px_diffusers', + modelRevision: '28f3af7689de15f3883d5863059a2fca0aa9b829', + active: [...plainImageActive, 'negative_prompt', 'max_sequence_length'], + inactive: plainImageInactive, + legacyNull: plainImageLegacyNull, + platform: /^Linux-/u, + backend: 'rocm', + previousExpertFamily: 'AnimateDiffPipeline', + dtype: 'float16', + offload: 'model_cpu', + deviceMap: 'none', + generation: { + width: 1024, + height: 1024, + num_inference_steps: 20, + guidance_scale: 4.5, + max_sequence_length: 300, + seed: 42, + negative_prompt: '', + }, + }, { format: 'modiff.private.sana-sprint-text-to-image-prompt-variant.v1', workflowId: 'SanaSprintPipeline:text_to_image', diff --git a/scripts/native-variant-run-evidence.mjs b/scripts/native-variant-run-evidence.mjs index 6e4a076f..a6fe2400 100644 --- a/scripts/native-variant-run-evidence.mjs +++ b/scripts/native-variant-run-evidence.mjs @@ -24,7 +24,7 @@ const nativeOutputFields = [ 'mediaItems', ]; -export function validateUnmodifiedExpertPreparation(preparation, modelType) { +export function validateUnmodifiedExpertPreparation(preparation, modelType, previousModelFamily = null) { const { availableRamBytes, availableVramBytes, ...status } = preparation; assert.ok(Number.isSafeInteger(availableRamBytes) && availableRamBytes > 0); assert.ok(Number.isSafeInteger(availableVramBytes) && availableVramBytes > 0); @@ -34,11 +34,11 @@ export function validateUnmodifiedExpertPreparation(preparation, modelType) { cleanup: null, incomingModelFamily: modelType, performed: false, - previousModelFamily: null, + previousModelFamily, reasons: [], residentRecipeReusable: false, resourceMode: 'expert', - resourceRecipeChanged: false, + resourceRecipeChanged: previousModelFamily !== null, }, 'The captured resource preparation differed from the unmodified Expert recipe.', ); diff --git a/scripts/prompt-variant-evidence.mjs b/scripts/prompt-variant-evidence.mjs index ba1cadf1..aa9fd01f 100644 --- a/scripts/prompt-variant-evidence.mjs +++ b/scripts/prompt-variant-evidence.mjs @@ -370,14 +370,22 @@ export function validateSampledCpuWorkerMemory(bytes, worker, source, task) { return peak; } -function validateImagePromptPreparation(preparation, modelType) { +function validateImagePromptPreparation(preparation, { modelType, previousExpertFamily }) { + const previous = preparation?.previousModelFamily ?? null; + assert.ok(previous === null || previous === previousExpertFamily, 'Unreviewed previous Expert model family.'); if (preparation?.performed !== true) { - validateUnmodifiedExpertPreparation(preparation, modelType); + validateUnmodifiedExpertPreparation(preparation, modelType, previous); return; } const { cleanup, reasons, ...unchanged } = preparation; - validateUnmodifiedExpertPreparation({ ...unchanged, performed: false, cleanup: null, reasons: [] }, modelType); - same(reasons, ['cached model family is unknown'], 'Unreviewed direct image cache cleanup.'); + validateUnmodifiedExpertPreparation( + { ...unchanged, performed: false, cleanup: null, reasons: [] }, + modelType, + previous, + ); + const reason = + previous === null ? 'cached model family is unknown' : `model family changed from ${previous} to ${modelType}`; + same(reasons, [reason], 'Unreviewed direct image cache cleanup.'); keys(cleanup, ['released', 'allocatorTrimmed', 'errors']); same(cleanup.errors, [], 'Direct image cache cleanup failed.'); assert.equal(typeof cleanup.allocatorTrimmed, 'boolean'); @@ -708,7 +716,7 @@ export async function readPromptVariantEvidence({ clientRoot, manifest, graph, a } : {}), ...(imageRoute - ? { validatePreparation: (preparation) => validateImagePromptPreparation(preparation, target.modelType) } + ? { validatePreparation: (preparation) => validateImagePromptPreparation(preparation, profile) } : {}), ...(profile === videoRoute ? { validatePreparation: (preparation) => validateUnmodifiedExpertPreparation(preparation, target.modelType) } diff --git a/scripts/prompt-variant-evidence.test.mjs b/scripts/prompt-variant-evidence.test.mjs index ca57391f..a55199bf 100644 --- a/scripts/prompt-variant-evidence.test.mjs +++ b/scripts/prompt-variant-evidence.test.mjs @@ -389,6 +389,7 @@ for (const [workflowId, variable, kind, proofKind = 'real_backend_prompt_bound_m ['SanaPAGPipeline:text_to_image', 'MODIFF_SANA_PAG_PROMPT_EVIDENCE', 'image'], ['AuraFlowPipeline:text_to_image', 'MODIFF_AURAFLOW_PROMPT_EVIDENCE', 'image'], ['LatentConsistencyModelPipeline:text_to_image', 'MODIFF_LCM_IMAGE_PROMPT_EVIDENCE', 'image'], + ['SanaPipeline:text_to_image', 'MODIFF_SANA_IMAGE_PROMPT_EVIDENCE', 'image'], ['SanaSprintPipeline:text_to_image', 'MODIFF_SANA_SPRINT_IMAGE_PROMPT_EVIDENCE', 'image'], ['StableDiffusionXLPAGPipeline:text_to_image', 'MODIFF_SDXL_PAG_PROMPT_EVIDENCE', 'image'], ]) { @@ -427,6 +428,22 @@ for (const [workflowId, variable, kind, proofKind = 'real_backend_prompt_bound_m } const changedPath = join(temp, 'evidence.json'); const evidence = JSON.parse(original.descriptorBytes); + if (workflowId === 'SanaPipeline:text_to_image') { + const runPath = join(temp, evidence.runDetail.path); + const originalRun = readFileSync(runPath); + const run = JSON.parse(originalRun); + run.task.runtimePreparation.previousModelFamily = 'UnreviewedPipeline'; + const replacement = Buffer.from(JSON.stringify(run)); + const substituted = structuredClone(evidence); + substituted.runDetail = { ...evidence.runDetail, bytes: replacement.length, sha256: digest(replacement) }; + writeFileSync(runPath, replacement); + writeFileSync(changedPath, JSON.stringify(substituted)); + await assert.rejects( + () => readCanonicalWorkflowEvidence({ ...args, evidencePath: changedPath }), + /Unreviewed previous Expert model family/u, + ); + writeFileSync(runPath, originalRun); + } if (proofKind === 'real_backend_input_bound_model_variant') { const [input] = evidence.inputs; const path = join(temp, input.file.path); @@ -478,6 +495,7 @@ test('Reviewed image prompt receipts keep the exact portable artifact and graph' 'SanaPAGPipeline:text_to_image', 'AuraFlowPipeline:text_to_image', 'LatentConsistencyModelPipeline:text_to_image', + 'SanaPipeline:text_to_image', 'SanaSprintPipeline:text_to_image', 'StableDiffusionXLPAGPipeline:text_to_image', ]; From 33b3ae89955524da46c75234c0bcf0e7a804797a Mon Sep 17 00:00:00 2001 From: Sourav Das Date: Wed, 25 Nov 2026 03:26:13 +0530 Subject: [PATCH 341/440] Accept saved PNG input evidence for SDXL edits --- scripts/private-image-edit-evidence.mjs | 1 + scripts/private-image-edit-evidence.test.mjs | 38 ++++++++++++++++++++ 2 files changed, 39 insertions(+) diff --git a/scripts/private-image-edit-evidence.mjs b/scripts/private-image-edit-evidence.mjs index 7f4dfc0b..cd5f9133 100644 --- a/scripts/private-image-edit-evidence.mjs +++ b/scripts/private-image-edit-evidence.mjs @@ -98,6 +98,7 @@ const editRoutes = new Map([ consumed: stableDiffusionEditConsumed, fullOrLateNativeSnapshot: true, inputPathPrefix: '@data/images/', + nativePngEvidence: true, }, ], [ diff --git a/scripts/private-image-edit-evidence.test.mjs b/scripts/private-image-edit-evidence.test.mjs index ae884bd3..76ce6b7f 100644 --- a/scripts/private-image-edit-evidence.test.mjs +++ b/scripts/private-image-edit-evidence.test.mjs @@ -350,6 +350,44 @@ test('SDXL masked evidence requires the reviewed checkpoint before reading its d exactRevision: '462165984030d82259a11f4367a4eed129e94a7b', })); +const retainedSdxlEvidence = process.env.MODIFF_SDXL_EDIT_NATIVE_PNG_EVIDENCE; +test( + 'saved SDXL edit binds the original PNG upload and consumed RGB input', + { skip: !retainedSdxlEvidence }, + async () => { + const clientRoot = fileURLToPath(new URL('..', import.meta.url)); + const backendRoot = resolve(process.env.MODIFF_BACKEND_DIR ?? join(clientRoot, '..', 'MoDiff')); + const evidencePath = resolve(retainedSdxlEvidence); + const args = { clientRoot, backendRoot, workflowId: 'StableDiffusionXLPipeline:edit_image', evidencePath }; + const original = await readCanonicalWorkflowEvidence(args); + const { receipt } = original; + assert.equal(receipt.inputBinding.sha256, 'e75c20f0e8a74e283b996bf526e6ea74535ed24125ad97c2d92508d3435d7a87'); + assert.equal(receipt.inputBinding.decodedImage.mode, 'RGB'); + assert.ok(Object.values(receipt.qualificationClaims).every((flag) => flag === false)); + + const root = mkdtempSync(join(tmpdir(), 'modiff-sdxl-edit-evidence-')); + try { + for (const file of original.retainedFiles) { + assert.equal(basename(file.path), file.path); + copyFileSync(file.absolutePath, join(root, file.path)); + } + const descriptor = JSON.parse(original.descriptorBytes); + const uploadPath = join(root, descriptor.inputUpload.path); + const upload = JSON.parse(readFileSync(uploadPath, 'utf8')); + upload.media.sha256 = '0'.repeat(64); + const changedUpload = Buffer.from(JSON.stringify(upload)); + writeFileSync(uploadPath, changedUpload); + descriptor.inputUpload.bytes = changedUpload.length; + descriptor.inputUpload.sha256 = createHash('sha256').update(changedUpload).digest('hex'); + const changedPath = join(root, 'evidence.json'); + writeFileSync(changedPath, JSON.stringify(descriptor)); + await assert.rejects(readCanonicalWorkflowEvidence({ ...args, evidencePath: changedPath })); + } finally { + rmSync(root, { recursive: true, force: true }); + } + }, +); + const retainedMaskEvidence = process.env.MODIFF_SD15_INPAINT_EVIDENCE; test( 'saved Inpaint evidence binds two original PNG uploads to their distinct consumed ports', From efa85d64c3bf2170d80245489de424cea81e9c6c Mon Sep 17 00:00:00 2001 From: Sourav Das Date: Wed, 25 Nov 2026 03:55:22 +0530 Subject: [PATCH 342/440] Keep native video upscale evidence in output history --- scripts/bundle-budget.mjs | 4 ++ scripts/resolved-execution-inputs.test.mjs | 78 ++++++++++++++++++++++ src/studio/builtinMediaEvidence.ts | 6 ++ src/studio/resolvedExecutionInputs.ts | 37 +++++----- 4 files changed, 109 insertions(+), 16 deletions(-) diff --git a/scripts/bundle-budget.mjs b/scripts/bundle-budget.mjs index aba23938..d292847c 100644 --- a/scripts/bundle-budget.mjs +++ b/scripts/bundle-budget.mjs @@ -493,6 +493,8 @@ const SOURCE_LICENSES = new URL('../public/THIRD_PARTY_LICENSES.txt', import.met // 504492/682980/346033 largest/startup/deferred gzip bytes: the reviewed // migration ceilings below still pass with 8/12/304 bytes of headroom. const MAX_STARTUP_CHUNK_GZIP_BYTES = + // Native video upscale history adds 79 gzip bytes to the existing startup chunk (543957 to 544036). + 79 + // Six retained recipes and their exact authoring bindings add 3094 gzip bytes (540863 -> 543957). 3094 + // Direct image routing uses the exact Studio spec (529280 -> 529295 gzip bytes). @@ -784,6 +786,8 @@ const MAX_STARTUP_CHUNK_GZIP_BYTES = // The same build measures 673359 aggregate startup bytes (+45 over the cap). // Keep 19 bytes of headroom; deferred limits and loading boundaries stay fixed. const MAX_STARTUP_GZIP_BYTES = + // The same history contract adds 76 bytes across startup (722444 to 722520). + 76 + // The same additions add 3099 aggregate startup gzip bytes (719345 -> 722444). 3099 + // The same route correction adds 16 startup bytes (707765 -> 707781 gzip bytes). diff --git a/scripts/resolved-execution-inputs.test.mjs b/scripts/resolved-execution-inputs.test.mjs index e71b27d9..1383c302 100644 --- a/scripts/resolved-execution-inputs.test.mjs +++ b/scripts/resolved-execution-inputs.test.mjs @@ -168,6 +168,84 @@ function audioLoadReceipt(sourceValue) { }; } +test('video upscale model evidence requires the declared operation and exact native owner', () => { + const sourceFile = { sha256: '1'.repeat(64), byteSize: 1200 }; + const outputFile = { sha256: '2'.repeat(64), byteSize: 1800 }; + const witness = { + ...receipt(), + mediaEvidenceStatus: { schemaVersion: 1, truncated: false }, + summary: { modelType: 'SpandrelVideoUpscaleV1' }, + nodes: [ + { + nodeId: 'preview', + module: 'modules.Video', + action: 'UpscaleVideo', + fields: { pipeline_class: { source: 'literal', value: 'SpandrelVideoUpscaleV1' } }, + omittedFields: {}, + mediaEvidence: { + schemaVersion: 1, + status: 'complete', + source: 'native-builtin-media-v1', + controls: { + pipeline_class: 'SpandrelVideoUpscaleV1', + operation: 'video_upscale', + tile_size: 256, + tile_overlap: 32, + device: 'cuda:0', + fps: 16, + }, + inputs: { video: [{ kind: 'file', ...sourceFile }] }, + outputs: { video_out: [{ kind: 'file', ...outputFile }] }, + files: { video: [{ sourceValue: '@data/videos/source.mp4', ...sourceFile }] }, + }, + }, + ], + }; + Object.assign(witness, { ambiguousFields: [], unavailableFields: [], uncapturedNodeIds: [] }); + const record = { + id: 'video-upscale-proof', + url: '/recorded.mp4', + modelType: 'SpandrelVideoUpscaleV1', + mode: 'video_upscale', + taskId: witness.taskId, + attemptIndex: witness.attemptIndex, + nodeId: witness.nodeId, + resolvedExecutionInputs: witness, + }; + const output = contracts.coerceStudioOutput(record); + assert.deepEqual(output.resolvedExecutionInputs, witness); + assert.equal(inputs.outputModelKey(output), 'SpandrelVideoUpscale'); + const changed = structuredClone(record); + changed.resolvedExecutionInputs.nodes[0].mediaEvidence.controls.operation = 'video_trim'; + const unrelated = contracts.coerceStudioOutput(changed); + assert.notEqual(inputs.outputModelKey(unrelated), 'SpandrelVideoUpscale'); +}); + +const retainedVideoUpscale = process.env.MODIFF_VIDEO_UPSCALE_OUTPUTS; +test( + 'native video upscale retains its model and verified file chain in exported output history', + { skip: !retainedVideoUpscale }, + () => { + const raw = JSON.parse(readFileSync(retainedVideoUpscale, 'utf8')); + assert.equal(raw.outputs.length, 2); + for (const record of raw.outputs) { + const output = contracts.coerceStudioOutput(record); + assert.equal(output.modelType, 'SpandrelVideoUpscale'); + assert.equal(output.mode, 'video_upscale'); + assert.equal(output.repo, record.repo); + assert.deepEqual(output.resolvedExecutionInputs, record.resolvedExecutionInputs); + const exported = packages.buildOutputWorkflowPackage(output); + assert.equal(exported.metadata.studio.modelType, 'SpandrelVideoUpscale'); + assert.deepEqual(exported.latestOutput.resolvedExecutionInputs, record.resolvedExecutionInputs); + const changed = structuredClone(record); + const owner = changed.resolvedExecutionInputs.nodes.find(({ action }) => action === 'UpscaleVideo'); + owner.mediaEvidence.files.extra = owner.mediaEvidence.files.video; + const tampered = contracts.coerceStudioOutput(changed); + assert.equal(tampered.resolvedExecutionInputs, undefined); + } + }, +); + test('Audio.Load scalar and legacy singleton filenames survive history and output export exactly', () => { for (const sourceValue of ['speech.wav', ['speech.wav']]) { const capture = audioLoadReceipt(sourceValue); diff --git a/src/studio/builtinMediaEvidence.ts b/src/studio/builtinMediaEvidence.ts index 5ae79a67..ed3f6f74 100644 --- a/src/studio/builtinMediaEvidence.ts +++ b/src/studio/builtinMediaEvidence.ts @@ -60,6 +60,12 @@ export const BUILTIN_MEDIA_EVIDENCE_SCOPES: Record< outputs: ['images', 'video'], files: ['videos'], }, + 'Video.UpscaleVideo': { + controls: 'pipeline_class operation tile_size tile_overlap device fps', + inputs: ['video'], + outputs: ['video_out'], + files: ['video'], + }, 'Video.Export': { controls: 'filename quality fps', inputs: ['video'], outputs: ['file'], files: [] }, }; const record = (v: unknown): v is Record => typeof v === 'object' && v !== null && !Array.isArray(v); diff --git a/src/studio/resolvedExecutionInputs.ts b/src/studio/resolvedExecutionInputs.ts index 8df85830..14d58f8b 100644 --- a/src/studio/resolvedExecutionInputs.ts +++ b/src/studio/resolvedExecutionInputs.ts @@ -936,8 +936,8 @@ export function applyResolvedExecutionInputs(output: StudioOutput, candidate: un next[key] = !resolvedInputUnavailable(receipt, key) && typeof receipt.summary[key] === 'string' ? receipt.summary[key] : ''; } - const builtin = capturedBuiltinProfile(receipt); - if (builtin) next.repo = STUDIO_MODEL_PROFILES[builtin].defaultRepo; + const profile = capturedMediaProfile(receipt); + if (profile?.startsWith('Builtin')) next.repo = STUDIO_MODEL_PROFILES[profile].defaultRepo; for (const key of ['seed', 'width', 'height', 'steps', 'guidanceScale'] as const) { const value = outputNumericInputValue(next, key); if (value !== undefined) next[key] = value; @@ -947,24 +947,29 @@ export function applyResolvedExecutionInputs(output: StudioOutput, candidate: un return next; } -// Versioned deterministic operation descriptors are not model classes. Resolve -// their existing presentation profiles only from an exact captured owner and -// summary; never strip arbitrary version suffixes or infer identity from a form. -const builtinOutputOwners = { +// Resolve versioned media operation descriptors from their captured owner and +// summary. Preserve the original fields supplied by the backend. +const mediaOutputOwners = { 'modules.ImageOperations.ProcessImage': 'BuiltinImageOperation', 'modules.Audio.ProcessAudio': 'BuiltinAudioOperation', 'modules.Video.ProcessVideo': 'BuiltinVideoOperation', + 'modules.Video.UpscaleVideo': 'SpandrelVideoUpscale', 'modules.Text.ProcessText': 'BuiltinDataOperation', } as const; -type BuiltinOutputProfile = (typeof builtinOutputOwners)[keyof typeof builtinOutputOwners]; +type MediaOutputProfile = (typeof mediaOutputOwners)[keyof typeof mediaOutputOwners]; -function capturedBuiltinProfile(receipt: ResolvedExecutionInputs): BuiltinOutputProfile | undefined { +function capturedMediaProfile(receipt: ResolvedExecutionInputs): MediaOutputProfile | undefined { if (receipt.truncated) return undefined; - const profiles = new Set(); + const profiles = new Set(); for (const node of receipt.nodes) { const owner = `${node.module}.${node.action}`; - if (!hasOwn(builtinOutputOwners, owner)) continue; - const profile = builtinOutputOwners[owner as keyof typeof builtinOutputOwners]; + if (!hasOwn(mediaOutputOwners, owner)) continue; + const profile = mediaOutputOwners[owner as keyof typeof mediaOutputOwners]; + if ( + profile === 'SpandrelVideoUpscale' && + (node.mediaEvidence?.status !== 'complete' || node.mediaEvidence.controls.operation !== 'video_upscale') + ) + return undefined; if (node.fields.pipeline_class?.value === `${profile}V1`) profiles.add(profile); } const profile = [...profiles][0]; @@ -984,13 +989,13 @@ export function outputTaskKey(output: StudioOutput): StudioMode | undefined { ? (task as StudioMode) : undefined; } - const profile = capturedBuiltinProfile(receipt); + const profile = capturedMediaProfile(receipt); if (!profile) return undefined; const tasks = new Set(); for (const node of receipt.nodes) { const owner = `${node.module}.${node.action}`; - if (!hasOwn(builtinOutputOwners, owner)) continue; - if (builtinOutputOwners[owner as keyof typeof builtinOutputOwners] !== profile) return undefined; + if (!hasOwn(mediaOutputOwners, owner)) continue; + if (mediaOutputOwners[owner as keyof typeof mediaOutputOwners] !== profile) return undefined; const evidence = node.mediaEvidence; if (evidence?.status !== 'complete' || evidence.controls.pipeline_class !== `${profile}V1`) return undefined; const task = evidence.controls.operation; @@ -1008,8 +1013,8 @@ export function outputModelKey(output: StudioOutput): string { return output.legacyRecordedFields && !output.legacyRecordedFields.includes('modelType') ? 'uncaptured-model' : output.modelType; - const builtin = capturedBuiltinProfile(receipt); - if (builtin) return builtin; + const profile = capturedMediaProfile(receipt); + if (profile) return profile; const model = receipt.summary.modelType; return !resolvedInputUnavailable(receipt, 'modelType') && typeof model === 'string' && model.trim() ? model From 4657dd47264fcf0d5b5f081cae74998a41a0fd97 Mon Sep 17 00:00:00 2001 From: Sourav Das Date: Wed, 25 Nov 2026 03:54:03 +0530 Subject: [PATCH 343/440] Verify saved native Real-ESRGAN video upscale runs --- scripts/input-bound-model-evidence.mjs | 16 +- scripts/release-contract-core.mjs | 7 + scripts/video-upscale-evidence.mjs | 279 ++++++++++++++++++++++++ scripts/video-upscale-evidence.test.mjs | 60 +++++ 4 files changed, 358 insertions(+), 4 deletions(-) create mode 100644 scripts/video-upscale-evidence.mjs create mode 100644 scripts/video-upscale-evidence.test.mjs diff --git a/scripts/input-bound-model-evidence.mjs b/scripts/input-bound-model-evidence.mjs index 2ba9c075..98f955d2 100644 --- a/scripts/input-bound-model-evidence.mjs +++ b/scripts/input-bound-model-evidence.mjs @@ -161,13 +161,21 @@ export function validateSpandrelArtifact({ submissionHints, observation, }) { - const model = bound.api.nodes[bound.upscaleId].params.model_id.value; + const { module, action, params } = bound.api.nodes[bound.upscaleId]; + const model = params.model_id.value; same(modelArtifact, model, 'Declared checkpoint metadata differs from canonical graph.'); const [org, repository, weightName] = model.value.split('/'); assert.equal(model.source, 'hub'); assert.equal(weightName, 'RealESRGAN_x2plus.pth'); assert.equal(model.value, `${org}/${repository}/${weightName}`); - assert.equal(bound.api.nodes[bound.upscaleId].params.downscale.value, 1); + assert( + (module === 'modules.Spandrel' && action === 'Upscaler' && params.downscale.value === 1) || + (module === 'modules.Video' && + action === 'UpscaleVideo' && + params.pipeline_class.value === 'SpandrelVideoUpscaleV1' && + params.operation.value === 'video_upscale'), + 'Unexpected controlled upscale action.', + ); same(modelSet, [{ repoId: `${org}/${repository}`, revision: model.revision }]); const completionHints = graphCompleted.runtimeHints; recordKeys( @@ -181,8 +189,8 @@ export function validateSpandrelArtifact({ const receipt = { schemaVersion: 1, kind: 'spandrel_upscaler', - module: 'modules.Spandrel', - action: 'Upscaler', + module, + action, artifact: { source: 'hub', repository: `${org}/${repository}`, diff --git a/scripts/release-contract-core.mjs b/scripts/release-contract-core.mjs index 3ccda641..72b9adf8 100644 --- a/scripts/release-contract-core.mjs +++ b/scripts/release-contract-core.mjs @@ -846,6 +846,13 @@ export async function readCanonicalWorkflowEvidence({ clientRoot, backendRoot, w evidencePath, }); } + if ( + evidence.format === 'modiff.private.video-upscale-native-files.v1' && + workflowId === 'SpandrelVideoUpscale:video_upscale' + ) { + const { readVideoUpscaleEvidence } = await import('./video-upscale-evidence.mjs'); + return readVideoUpscaleEvidence({ clientRoot, manifest, graph, authoring, artifact, evidencePath }); + } if ( [ 'modiff.private.smollm2-prompt-variant.v1', diff --git a/scripts/video-upscale-evidence.mjs b/scripts/video-upscale-evidence.mjs new file mode 100644 index 00000000..44ef7977 --- /dev/null +++ b/scripts/video-upscale-evidence.mjs @@ -0,0 +1,279 @@ +import assert from 'node:assert/strict'; +import { readFileSync, realpathSync } from 'node:fs'; +import { dirname } from 'node:path'; +import { validateSpandrelArtifact } from './input-bound-model-evidence.mjs'; +import { validateNativeVariantOutput, validateNativeVariantRun } from './native-variant-run-evidence.mjs'; +import { + canonicalWorkflowAuthoringContract, + exportCanonicalWorkflowGraphs, + readCanonicalEvidenceFile, +} from './release-contract-core.mjs'; +import { + backendSourceEvidence, + canonicalGraphIdentity, + normalizeBackendRuntime, + selectBackendRuntimeFingerprintEvidence, + stableStringify, +} from './live-proof-provenance.mjs'; + +const same = (actual, expected, label) => assert.equal(stableStringify(actual), stableStringify(expected), label); +const keys = (value, allowed) => + same(Object.keys(value).sort(), [...allowed].sort(), 'Unexpected upscale evidence fields.'); +const fileIdentity = ({ sha256, bytes }) => ({ kind: 'file', sha256, byteSize: bytes }); + +export function verifyVideoUpscaleFileChain({ resolved, taskId, upscaleId, exportId, upscale, exporter, files }) { + assert.equal(resolved.schemaVersion, 1); + assert.equal(resolved.source, 'backend-execution'); + assert.equal(resolved.taskId, taskId); + assert.equal(resolved.attemptIndex, 0); + assert.equal(resolved.nodeId, exportId); + assert.equal(resolved.truncated, false); + same(resolved.mediaEvidenceStatus, { schemaVersion: 1, truncated: false }); + for (const list of ['ambiguousFields', 'unavailableFields', 'uncapturedNodeIds']) same(resolved[list], []); + const byId = new Map(resolved.nodes.map((node) => [node.nodeId, node])); + assert.equal(resolved.nodes.length, 2); + same([...byId.keys()].sort(), [upscaleId, exportId].sort()); + const check = (id, action, expected) => { + const node = byId.get(id); + assert.equal(node.action, action); + assert.equal(node.module, 'modules.Video'); + same(node.omittedFields, {}); + same( + node.mediaEvidence, + { schemaVersion: 1, status: 'complete', source: 'native-builtin-media-v1', ...expected }, + `The native ${action} bytes or controls differ.`, + ); + }; + const input = fileIdentity(files.source); + const intermediate = fileIdentity(files.intermediate); + const controlValues = (params, names) => Object.fromEntries(names.map((name) => [name, params[name].value])); + check(upscaleId, 'UpscaleVideo', { + controls: controlValues(upscale, ['pipeline_class', 'operation', 'tile_size', 'tile_overlap', 'device', 'fps']), + inputs: { video: [input] }, + outputs: { video_out: [intermediate] }, + files: { video: [{ sourceValue: upscale.video.value[0], sha256: input.sha256, byteSize: input.byteSize }] }, + }); + check(exportId, 'Export', { + controls: controlValues(exporter, ['filename', 'quality', 'fps']), + inputs: { video: [intermediate] }, + outputs: { file: [fileIdentity(files.output)] }, + files: {}, + }); +} + +export async function readVideoUpscaleEvidence({ clientRoot, manifest, graph, authoring, artifact, evidencePath }) { + const target = canonicalWorkflowAuthoringContract(manifest, graph, authoring, artifact); + assert.equal(target.workflowId, 'SpandrelVideoUpscale:video_upscale'); + const descriptorBytes = readFileSync(evidencePath); + const evidence = JSON.parse(descriptorBytes); + keys(evidence, [ + 'schemaVersion', + 'format', + 'workflowId', + 'creator', + 'outputPackage', + 'run', + 'persisted', + 'request', + 'acknowledgment', + 'completion', + 'backendSource', + 'modelObservation', + 'upload', + 'source', + 'intermediate', + 'output', + ]); + assert.equal(evidence.schemaVersion, 1); + assert.equal(evidence.workflowId, target.workflowId); + assert.equal(evidence.format, 'modiff.private.video-upscale-native-files.v1'); + const root = realpathSync(dirname(evidencePath)); + const retainedFiles = []; + const read = (ref) => { + const retained = readCanonicalEvidenceFile(root, ref, 16 * 1024 * 1024); + retainedFiles.push({ ...ref, absolutePath: retained.file }); + return retained; + }; + const json = (ref) => JSON.parse(read(ref).bytes); + const creator = json(evidence.creator); + const outputPackage = json(evidence.outputPackage); + const run = json(evidence.run); + const persisted = json(evidence.persisted); + const request = json(evidence.request); + const graphCompleted = json(evidence.completion); + const upload = json(evidence.upload); + const sourceValue = upload.path; + assert.match(sourceValue, /^@data\/videos\/[a-zA-Z0-9_-][\w.-]{0,200}\.mp4$/u); + assert.equal(upload.error, false); + assert.equal(upload.media.kind, 'video'); + assert.equal(upload.media.mimeType, 'video/mp4'); + assert.equal(upload.media.sha256, evidence.source.sha256); + assert.equal(upload.media.sizeBytes, evidence.source.bytes); + + const [canonical, ...visualGraphs] = await exportCanonicalWorkflowGraphs(clientRoot, [ + graph, + creator.graph, + outputPackage.latestOutput.graphSnapshot, + run.workflow_snapshot, + ]); + const find = (api, action) => { + const nodes = Object.entries(api.nodes).filter( + ([, node]) => node.module === 'modules.Video' && node.action === action, + ); + assert.equal(nodes.length, 1, `Expected one ${action} owner.`); + return nodes[0]; + }; + const [baseId, base] = find(canonical, 'UpscaleVideo'); + assert.equal(Object.keys(canonical.nodes).length, 2); + same(base.params.video, { display: 'filebrowser', value: '' }); + const [upscaleId, { params: upscale }] = find(request, 'UpscaleVideo'); + const [exportId, { params: exporter }] = find(request, 'Export'); + same(exporter.video, { display: 'input', sourceId: upscaleId, sourceKey: 'video_out' }); + same(request.paths, [[upscaleId, exportId]]); + const boundApi = structuredClone(canonical); + boundApi.nodes[baseId].params.video.value = [sourceValue]; + const boundHash = canonicalGraphIdentity(boundApi).hash; + for (const api of [request, creator.apiGraph, ...visualGraphs]) + assert.equal( + canonicalGraphIdentity(api).hash, + boundHash, + 'A saved upscale recipe differs from the captured graph.', + ); + + assert.equal(run.outputs.length, 2); + assert.equal(persisted.outputs.length, 2); + const [final, intermediate] = [exportId, upscaleId].map((id) => { + const rows = run.outputs.filter((row) => row.nodeId === id); + assert.equal(rows.length, 1); + const stored = persisted.outputs.find((row) => row.id === rows[0].id); + same(rows[0], stored, 'Original task output differs from the saved native record.'); + return stored; + }); + // Older clients omitted this section from the package. The original run and + // output store must independently hold identical native witnesses. + const packaged = outputPackage.latestOutput; + if (packaged.resolvedExecutionInputs !== undefined) + same(packaged.resolvedExecutionInputs, final.resolvedExecutionInputs); + const packageWithNativeInputs = { + ...outputPackage, + latestOutput: { ...packaged, resolvedExecutionInputs: final.resolvedExecutionInputs }, + }; + const { task, output, hints } = validateNativeVariantRun({ + target, + outputNodeId: exportId, + displayType: 'video', + creator, + outputPackage: packageWithNativeInputs, + run: { ...run, outputs: [final] }, + graphCompleted, + graphRequest: request, + graphAcknowledgment: json(evidence.acknowledgment), + }); + const source = json(evidence.backendSource); + const sourceProof = backendSourceEvidence({ ...source, runtimeFingerprint: task.runtimeFingerprint }); + same(sourceProof.blockers, []); + const runtime = selectBackendRuntimeFingerprintEvidence([task.runtimeFingerprint]); + assert.ok(runtime); + const measurement = task.runtimeMeasurement; + assert.equal(measurement.backend, 'cuda'); + assert.equal(measurement.device, upscale.device.value); + assert.equal(measurement.peakMeasurementVersion, 2); + assert.ok(measurement.elapsedSeconds > 0 && measurement.peakAllocatedBytes > 0); + const modelArtifact = validateSpandrelArtifact({ + bound: { api: request, upscaleId }, + modelSet: target.modelSet, + modelArtifact: upscale.model_id.value, + graphCompleted, + submissionHints: hints, + observation: json(evidence.modelObservation), + }); + verifyVideoUpscaleFileChain({ + resolved: output.resolvedExecutionInputs, + taskId: task.task_id, + upscaleId, + exportId, + upscale, + exporter, + files: { source: evidence.source, intermediate: evidence.intermediate, output: evidence.output }, + }); + const validateMedia = (record, file, physical) => + validateNativeVariantOutput({ + output: record, + task, + bytes: physical.bytes, + displayType: 'video', + contentType: 'video/mp4', + outputRef: { backendPath: record.backendMediaPath, mediaType: 'video', file }, + }); + const outputVideo = read(evidence.output); + const item = validateMedia(output, evidence.output, outputVideo); + validateMedia(intermediate, evidence.intermediate, read(evidence.intermediate)); + const { decodedMediaHash } = await import('./template-gallery-harness.mjs'); + const before = await decodedMediaHash(read(evidence.source).file, 'video'); + const after = await decodedMediaHash(outputVideo.file, 'video'); + same([before.width, before.height], [upload.media.width, upload.media.height]); + same([after.width, after.height], [before.width * 2, before.height * 2]); + same( + [after.width, after.height, after.frames], + [item.mediaMetadata.width, item.mediaMetadata.height, item.mediaMetadata.frame_count], + ); + assert.equal(after.frames, before.frames); + assert.equal(after.fps, before.fps); + assert.equal(after.fps, upscale.fps.value); + assert.equal(after.durationSeconds, before.durationSeconds); + assert.equal(after.hasAudio, before.hasAudio); + assert.ok(after.lumaStdDev >= 0.75 && after.severeNearBlackFrameRatio < 0.5); + assert.notEqual(after.hash, before.hash); + for (const ref of retainedFiles) readCanonicalEvidenceFile(root, ref, 16 * 1024 * 1024); + assert.ok(readFileSync(evidencePath).equals(descriptorBytes)); + return { + descriptorBytes, + retainedFiles, + receipt: { + schemaVersion: 1, + format: 'modiff.canonical-workflow-run-receipt.v1', + proofKind: 'real_backend_input_bound_model_variant', + workflowId: target.workflowId, + sourceTemplateId: target.sourceTemplateId, + authoringId: target.authoringId, + authoringHash: target.authoringHash, + canonicalWorkflowHash: target.canonicalWorkflowHash, + modelType: target.modelType, + task: target.task, + taskId: task.task_id, + capturedAt: new Date(task.completed_at * 1000).toISOString(), + graphHash: boundHash, + modelSet: target.modelSet, + resourceCandidateId: null, + runtimeFingerprint: normalizeBackendRuntime(runtime).lockFingerprint, + backendSourceFingerprint: sourceProof.identity.fingerprint, + outputHash: item.mediaHash, + executionDurationSeconds: measurement.elapsedSeconds, + peakMemoryBytes: measurement.peakAllocatedBytes, + canonicalDefaultsExecuted: false, + inputBinding: { + nodeId: upscaleId, + field: 'video', + sha256: evidence.source.sha256, + width: before.width, + height: before.height, + }, + modelArtifact, + decodedOutput: { + hash: after.hash, + width: after.width, + height: after.height, + fps: after.fps, + frameCount: after.frames, + }, + observationLimits: { fullConsumedFieldAccounting: false, physicalPlatformQualification: false }, + qualificationClaims: { + publicTemplate: false, + qualityApproved: false, + rightsApproved: false, + hardwareQualified: false, + modelResourceQualified: false, + }, + }, + }; +} diff --git a/scripts/video-upscale-evidence.test.mjs b/scripts/video-upscale-evidence.test.mjs new file mode 100644 index 00000000..9df3ad09 --- /dev/null +++ b/scripts/video-upscale-evidence.test.mjs @@ -0,0 +1,60 @@ +import assert from 'node:assert/strict'; +import { test } from 'node:test'; +import { copyFileSync, mkdtempSync, rmSync, writeFileSync } from 'node:fs'; +import { tmpdir } from 'node:os'; +import { basename, join, resolve } from 'node:path'; +import { fileURLToPath } from 'node:url'; +import { readCanonicalWorkflowEvidence } from './release-contract-core.mjs'; +import { verifyVideoUpscaleFileChain } from './video-upscale-evidence.mjs'; + +const evidencePath = process.env.MODIFF_VIDEO_UPSCALE_EVIDENCE; +test( + 'native upscale receipt binds both original output owners, the checkpoint and the source', + { skip: !evidencePath }, + async () => { + const clientRoot = fileURLToPath(new URL('..', import.meta.url)); + const backendRoot = resolve(process.env.MODIFF_BACKEND_DIR ?? join(clientRoot, '..', 'MoDiff')); + const args = { clientRoot, backendRoot, evidencePath, workflowId: 'SpandrelVideoUpscale:video_upscale' }; + const result = await readCanonicalWorkflowEvidence(args); + assert.deepEqual(result.receipt.decodedOutput, { + hash: 'sha256:decoded-video-framemd5:ebf16340b2bf264a507cd39155aaa568519292a70b5c22cb00210230a2446124', + width: 1024, + height: 576, + fps: 16, + frameCount: 54, + }); + assert.equal( + result.receipt.inputBinding.sha256, + '5c24b2b67f893f48e4dbf0d893e0aa4308852592f30f8179b44298cca4ce197e', + ); + assert.ok(Object.values(result.receipt.qualificationClaims).every((claim) => claim === false)); + const temp = mkdtempSync(join(tmpdir(), 'modiff-video-evidence-')); + try { + for (const file of result.retainedFiles) { + assert.equal(basename(file.path), file.path); + copyFileSync(file.absolutePath, join(temp, file.path)); + } + const changed = JSON.parse(result.descriptorBytes.toString('utf8')); + changed.intermediate = changed.output; + const changedPath = join(temp, 'changed.json'); + writeFileSync(changedPath, JSON.stringify(changed)); + await assert.rejects( + readCanonicalWorkflowEvidence({ ...args, evidencePath: changedPath }), + /UpscaleVideo bytes or controls differ/u, + ); + } finally { + rmSync(temp, { recursive: true, force: true }); + } + }, +); + +test('upscale input and export must belong to the same observed run', () => { + assert.throws( + () => + verifyVideoUpscaleFileChain({ + resolved: { schemaVersion: 1, source: 'backend-execution', taskId: 'other' }, + taskId: 'reviewed', + }), + /other/u, + ); +}); From 9f554896c4f5d00feb7ff44d56f0c97887589107 Mon Sep 17 00:00:00 2001 From: Sourav Das Date: Wed, 25 Nov 2026 03:57:29 +0530 Subject: [PATCH 344/440] Test the stable video receipt across FFmpeg builds --- package.json | 2 +- scripts/video-upscale-evidence.mjs | 4 +++- scripts/video-upscale-evidence.test.mjs | 2 +- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index fe801dcc..a9d0789b 100644 --- a/package.json +++ b/package.json @@ -85,7 +85,7 @@ "test:template-assets:local": "node --test scripts/template-default-inputs.test.mjs", "test:template-quality": "node --test scripts/template-quality.test.mjs", "test:live-qwen-proof": "node --test scripts/live-qwen-proof.test.mjs scripts/native-modular-image-resource.test.mjs scripts/executed-native-media-resource.test.mjs scripts/workflow-auto-provenance.test.mjs scripts/workflow-auto-audio-provenance.test.mjs scripts/workflow-auto-video-provenance.test.mjs scripts/workflow-auto-control-provenance.test.mjs scripts/workflow-auto-masked-image-provenance.test.mjs scripts/retained-native-text-provenance.test.mjs scripts/retained-native-direct-image-provenance.test.mjs scripts/retained-native-modular-image-provenance.test.mjs scripts/canonical-runtime-hints.test.mjs scripts/hardware-qualification.test.mjs scripts/hardware-execution-device.test.mjs scripts/hardware-runtime-identity.test.mjs scripts/release-qualification-policy.test.mjs scripts/resource-qualification.test.mjs scripts/route-resource-qualification.test.mjs scripts/resource-qualification-campaign.test.mjs scripts/template-qualification.test.mjs scripts/release-qualification-campaign.test.mjs", - "test:release-contract": "node --test scripts/backend-installer-contract.test.mjs scripts/backend-node-registry.test.mjs scripts/release-contract.test.mjs scripts/release-candidate-report.test.mjs scripts/template-asset-release-contract.test.mjs scripts/builtin-media-qualification.test.mjs scripts/input-bound-model-evidence.test.mjs scripts/canonical-image-accounting.test.mjs scripts/marigold-preview-evidence.test.mjs scripts/private-speech-evidence.test.mjs scripts/retained-speech-gallery-evidence.test.mjs scripts/private-image-edit-evidence.test.mjs scripts/image-edit-source-binding.test.mjs scripts/prompt-variant-evidence.test.mjs scripts/retained-template-association.test.mjs scripts/retained-gallery-release.test.mjs scripts/saved-workflow-compatibility.test.mjs", + "test:release-contract": "node --test scripts/backend-installer-contract.test.mjs scripts/backend-node-registry.test.mjs scripts/release-contract.test.mjs scripts/release-candidate-report.test.mjs scripts/template-asset-release-contract.test.mjs scripts/builtin-media-qualification.test.mjs scripts/input-bound-model-evidence.test.mjs scripts/video-upscale-evidence.test.mjs scripts/canonical-image-accounting.test.mjs scripts/marigold-preview-evidence.test.mjs scripts/private-speech-evidence.test.mjs scripts/retained-speech-gallery-evidence.test.mjs scripts/private-image-edit-evidence.test.mjs scripts/image-edit-source-binding.test.mjs scripts/prompt-variant-evidence.test.mjs scripts/retained-template-association.test.mjs scripts/retained-gallery-release.test.mjs scripts/saved-workflow-compatibility.test.mjs", "test:live-backend-contract": "node scripts/live-backend-contract.mjs", "test:gallery-harness": "node --test scripts/template-gallery-harness.test.mjs scripts/source-video-timing.test.mjs scripts/retained-layer-sheet.test.mjs scripts/template-gallery-maintainer-acceptance.test.mjs scripts/template-recipe-history.test.mjs scripts/release-showcase-scope.test.mjs scripts/template-input-roles.test.mjs", "test:gallery-runner": "node --test scripts/template-gallery-runner.test.mjs && npm run test:demo-tools", diff --git a/scripts/video-upscale-evidence.mjs b/scripts/video-upscale-evidence.mjs index 44ef7977..b5644776 100644 --- a/scripts/video-upscale-evidence.mjs +++ b/scripts/video-upscale-evidence.mjs @@ -224,6 +224,8 @@ export async function readVideoUpscaleEvidence({ clientRoot, manifest, graph, au assert.equal(after.hasAudio, before.hasAudio); assert.ok(after.lumaStdDev >= 0.75 && after.severeNearBlackFrameRatio < 0.5); assert.notEqual(after.hash, before.hash); + const decodedIdentity = after.frameHashCompatibility.variants.find(({ muxer }) => muxer === 'Lavf61.1.100'); + assert.ok(decodedIdentity, 'The frame checksums could not be normalized across reviewed FFmpeg versions.'); for (const ref of retainedFiles) readCanonicalEvidenceFile(root, ref, 16 * 1024 * 1024); assert.ok(readFileSync(evidencePath).equals(descriptorBytes)); return { @@ -260,7 +262,7 @@ export async function readVideoUpscaleEvidence({ clientRoot, manifest, graph, au }, modelArtifact, decodedOutput: { - hash: after.hash, + hash: decodedIdentity.hash, width: after.width, height: after.height, fps: after.fps, diff --git a/scripts/video-upscale-evidence.test.mjs b/scripts/video-upscale-evidence.test.mjs index 9df3ad09..0b5fe031 100644 --- a/scripts/video-upscale-evidence.test.mjs +++ b/scripts/video-upscale-evidence.test.mjs @@ -17,7 +17,7 @@ test( const args = { clientRoot, backendRoot, evidencePath, workflowId: 'SpandrelVideoUpscale:video_upscale' }; const result = await readCanonicalWorkflowEvidence(args); assert.deepEqual(result.receipt.decodedOutput, { - hash: 'sha256:decoded-video-framemd5:ebf16340b2bf264a507cd39155aaa568519292a70b5c22cb00210230a2446124', + hash: 'sha256:decoded-video-framemd5:cb31cd0903f5e394e21f0ac8bd6373e0e67fb0a93a3191fef43e628bec0f17ed', width: 1024, height: 576, fps: 16, From 3226976f2e94805d5cc297a99a7fb69e3a728b28 Mon Sep 17 00:00:00 2001 From: Sourav Das Date: Wed, 25 Nov 2026 04:01:51 +0530 Subject: [PATCH 345/440] Expose native video intake through the shared receipt interface --- scripts/video-upscale-evidence.mjs | 98 ++++++++++++++++-------------- 1 file changed, 52 insertions(+), 46 deletions(-) diff --git a/scripts/video-upscale-evidence.mjs b/scripts/video-upscale-evidence.mjs index b5644776..2754988f 100644 --- a/scripts/video-upscale-evidence.mjs +++ b/scripts/video-upscale-evidence.mjs @@ -228,54 +228,60 @@ export async function readVideoUpscaleEvidence({ clientRoot, manifest, graph, au assert.ok(decodedIdentity, 'The frame checksums could not be normalized across reviewed FFmpeg versions.'); for (const ref of retainedFiles) readCanonicalEvidenceFile(root, ref, 16 * 1024 * 1024); assert.ok(readFileSync(evidencePath).equals(descriptorBytes)); + const receipt = { + schemaVersion: 1, + format: 'modiff.canonical-workflow-run-receipt.v1', + proofKind: 'real_backend_input_bound_model_variant', + workflowId: target.workflowId, + sourceTemplateId: target.sourceTemplateId, + authoringId: target.authoringId, + authoringHash: target.authoringHash, + canonicalWorkflowHash: target.canonicalWorkflowHash, + modelType: target.modelType, + task: target.task, + outputPlan: target.outputPlan, + taskId: task.task_id, + outputId: output.id, + capturedAt: new Date(task.completed_at * 1000).toISOString(), + graphHash: boundHash, + modelSet: target.modelSet, + resourceCandidateId: null, + runtimeFingerprint: normalizeBackendRuntime(runtime).lockFingerprint, + backendSourceFingerprint: sourceProof.identity.fingerprint, + outputHash: item.mediaHash, + executionDurationSeconds: measurement.elapsedSeconds, + peakMemoryBytes: measurement.peakAllocatedBytes, + canonicalDefaultsExecuted: false, + inputBinding: { + nodeId: upscaleId, + field: 'video', + sha256: evidence.source.sha256, + width: before.width, + height: before.height, + }, + modelArtifact, + decodedOutput: { + hash: decodedIdentity.hash, + width: after.width, + height: after.height, + fps: after.fps, + frameCount: after.frames, + }, + observationLimits: { fullConsumedFieldAccounting: false, physicalPlatformQualification: false }, + qualificationClaims: { + publicTemplate: false, + qualityApproved: false, + rightsApproved: false, + hardwareQualified: false, + modelResourceQualified: false, + }, + }; return { descriptorBytes, retainedFiles, - receipt: { - schemaVersion: 1, - format: 'modiff.canonical-workflow-run-receipt.v1', - proofKind: 'real_backend_input_bound_model_variant', - workflowId: target.workflowId, - sourceTemplateId: target.sourceTemplateId, - authoringId: target.authoringId, - authoringHash: target.authoringHash, - canonicalWorkflowHash: target.canonicalWorkflowHash, - modelType: target.modelType, - task: target.task, - taskId: task.task_id, - capturedAt: new Date(task.completed_at * 1000).toISOString(), - graphHash: boundHash, - modelSet: target.modelSet, - resourceCandidateId: null, - runtimeFingerprint: normalizeBackendRuntime(runtime).lockFingerprint, - backendSourceFingerprint: sourceProof.identity.fingerprint, - outputHash: item.mediaHash, - executionDurationSeconds: measurement.elapsedSeconds, - peakMemoryBytes: measurement.peakAllocatedBytes, - canonicalDefaultsExecuted: false, - inputBinding: { - nodeId: upscaleId, - field: 'video', - sha256: evidence.source.sha256, - width: before.width, - height: before.height, - }, - modelArtifact, - decodedOutput: { - hash: decodedIdentity.hash, - width: after.width, - height: after.height, - fps: after.fps, - frameCount: after.frames, - }, - observationLimits: { fullConsumedFieldAccounting: false, physicalPlatformQualification: false }, - qualificationClaims: { - publicTemplate: false, - qualityApproved: false, - rightsApproved: false, - hardwareQualified: false, - modelResourceQualified: false, - }, - }, + evidence, + evidenceRoot: root, + receipt, + provenance: { format: 'modiff.input-bound-model-variant-proof.v1', receipt }, }; } From abdcefc1c414db7ce05c2c667da693a708726bf0 Mon Sep 17 00:00:00 2001 From: Sourav Das Date: Wed, 25 Nov 2026 04:13:42 +0530 Subject: [PATCH 346/440] Verify saved LongCat audio with its effective speech controls --- scripts/prompt-variant-evidence.mjs | 83 ++++++++++++++++++++++-- scripts/prompt-variant-evidence.test.mjs | 3 +- scripts/release-contract-core.mjs | 1 + 3 files changed, 81 insertions(+), 6 deletions(-) diff --git a/scripts/prompt-variant-evidence.mjs b/scripts/prompt-variant-evidence.mjs index aa9fd01f..2800c82d 100644 --- a/scripts/prompt-variant-evidence.mjs +++ b/scripts/prompt-variant-evidence.mjs @@ -142,6 +142,37 @@ const videoRoute = { ], }; +const audioRoute = { + format: 'modiff.private.longcat-audio-prompt-variant.v1', + workflowId: 'LongCatAudioDiTPipeline:text_to_audio', + outputKind: 'audio', + displayType: 'audio', + contentType: 'audio/wav', + platform: /^Windows-/u, + backend: 'cuda', + modelRepo: 'ruixiangma/LongCat-AudioDiT-1B-Diffusers', + modelRevision: 'f4c063ea37f262ba5e6129ebd80095a6d6a9de4d', + loaderContract: ['modules.DiffusersAudio.LoadPipeline'], + bindSeed: true, + chain: [ + ['quantization', 'modules.DiffusersRuntime', 'PipelineQuantizationConfigV2', 'dtype'], + [ + 'recipe', + 'modules.DiffusersRuntime', + 'DiffusersExecutionRecipe', + 'attention_backend device offload_mode vae_slicing vae_tiling', + ], + [ + 'loader', + 'modules.DiffusersAudio', + 'LoadPipeline', + 'auto_offload device dtype enable_vae_tiling model_id offload_mode pipeline_class revision', + ], + ['generator', 'modules.DiffusersAudio', 'Generate', 'prompt seed audio_duration sample_rate'], + ['preview', 'modules.Audio', 'Export', 'sample_rate'], + ], +}; + const imagePromptRoute = { outputKind: 'image', displayType: 'image', @@ -265,7 +296,18 @@ function validateConsumedPromptVariant(profile, bound, output, suppliedImage) { assert.equal(consumed.attemptIndex, 0); assert.equal(consumed.nodeId, bound.preview.id); assert.equal(consumed.truncated, false); - for (const key of ['ambiguousFields', 'unavailableFields', 'uncapturedNodeIds']) same(consumed[key], []); + for (const key of ['unavailableFields', 'uncapturedNodeIds']) same(consumed[key], []); + if (profile === audioRoute) { + same(bound.loader.node.params.execution_recipe, { + display: 'input', + sourceId: bound.recipe.id, + sourceKey: 'execution_recipe', + }); + assert.equal(bound.recipe.node.params.vae_tiling.value, false); + // The connected execution recipe wins over this retained loader fallback. + assert.equal(bound.loader.node.params.enable_vae_tiling.value, true); + same(consumed.ambiguousFields, ['vaeTiling']); + } else same(consumed.ambiguousFields, []); const roles = profile.chain.map(([role]) => bound[role]); same( consumed.nodes.map(({ nodeId }) => nodeId).sort(), @@ -297,6 +339,19 @@ function validateConsumedPromptVariant(profile, bound, output, suppliedImage) { if (profile.executedTask && id === bound.generator.id) { expected.executed_task = { value: profile.executedTask, source: 'literal' }; } + if (profile === audioRoute && id === bound.generator.id) { + assert.equal(node.params.negative_prompt.value, ''); + assert.equal(node.params.stable_audio_steps.value, 16); + assert.equal(node.params.stable_audio_guidance.value, 4); + assert.equal(node.params.audio_duration.value, 5); + for (const [name, value] of Object.entries({ + negative_prompt: null, + num_inference_steps: node.params.stable_audio_steps.value, + guidance_scale: node.params.stable_audio_guidance.value, + output_type: 'pt', + })) + expected[name] = { value, source: 'literal' }; + } same(row.fields, expected, `Actual consumed fields differ for ${node.action}.`); } return image; @@ -618,7 +673,7 @@ export async function readPromptVariantEvidence({ clientRoot, manifest, graph, a const imageRoute = directImagePromptRoutes.find(({ workflowId }) => workflowId === target.workflowId); const profile = imageRoute ? { ...imagePromptRoute, ...imageRoute } - : [textRoute, janusTextRoute, janusImageRoute, janusCaptionRoute, smolVlmCaptionRoute, videoRoute].find( + : [textRoute, janusTextRoute, janusImageRoute, janusCaptionRoute, smolVlmCaptionRoute, videoRoute, audioRoute].find( ({ workflowId }) => workflowId === target.workflowId, ); assert.ok(profile, 'Prompt variant route is not reviewed.'); @@ -627,7 +682,8 @@ export async function readPromptVariantEvidence({ clientRoot, manifest, graph, a profile === janusTextRoute || profile === janusImageRoute || profile === janusCaptionRoute || - profile === smolVlmCaptionRoute; + profile === smolVlmCaptionRoute || + profile === audioRoute; const sampledCpuMemory = profile.executionDevice === 'cpu:0'; same(target.modelSet, [{ repoId: profile.modelRepo, revision: profile.modelRevision }]); assert.equal(target.outputPlan.minimumAssetCount, 1); @@ -718,7 +774,7 @@ export async function readPromptVariantEvidence({ clientRoot, manifest, graph, a ...(imageRoute ? { validatePreparation: (preparation) => validateImagePromptPreparation(preparation, profile) } : {}), - ...(profile === videoRoute + ...(profile === videoRoute || profile === audioRoute ? { validatePreparation: (preparation) => validateUnmodifiedExpertPreparation(preparation, target.modelType) } : {}), }; @@ -811,7 +867,7 @@ export async function readPromptVariantEvidence({ clientRoot, manifest, graph, a contentType: profile.contentType, }); assert.match(output.id, /^run-output-[a-f0-9]{24}$/u); - const extension = { image: 'webp', json: 'txt', video: 'mp4' }[profile.outputKind]; + const extension = { image: 'webp', json: 'txt', video: 'mp4', audio: 'wav' }[profile.outputKind]; assert.equal(item.backendPath, `@data/studio/outputs/${output.id}_item_00.${extension}`); assert.equal(output.mediaCollectionHash, `sha256:collection:${digest(JSON.stringify([item.mediaHash]))}`); let decodedOutput; @@ -824,6 +880,23 @@ export async function readPromptVariantEvidence({ clientRoot, manifest, graph, a } else if (profile === videoRoute) { const { decodedMediaHash } = await import('./template-gallery-harness.mjs'); decodedOutput = validatePromptVariantVideo(await decodedMediaHash(media.file, 'video'), item, bound); + } else if (profile === audioRoute) { + assert.equal(media.bytes.toString('ascii', 0, 4), 'RIFF'); + assert.equal(media.bytes.toString('ascii', 8, 12), 'WAVE'); + const { decodedMediaHash } = await import('./template-gallery-harness.mjs'); + const decoded = await decodedMediaHash(media.file, 'audio'); + assert.equal(decoded.sourceSampleRate, 24000); + assert.equal(decoded.channels, 1); + assert.equal(decoded.clippedSampleRatio, 0); + assert.ok(decoded.durationSeconds >= 4.9 && decoded.durationSeconds <= 5); + assert.ok(decoded.peakAmplitude > 0.05 && decoded.silenceRatio < 0.75); + decodedOutput = { + kind: 'audio', + hash: decoded.hash, + durationSeconds: decoded.durationSeconds, + sampleRate: decoded.sourceSampleRate, + channels: decoded.channels, + }; } else { const { decodedMediaHash, technicalMediaErrors } = await import('./template-gallery-harness.mjs'); const decoded = await decodedMediaHash(media.file, 'image'); diff --git a/scripts/prompt-variant-evidence.test.mjs b/scripts/prompt-variant-evidence.test.mjs index a55199bf..1ce0182a 100644 --- a/scripts/prompt-variant-evidence.test.mjs +++ b/scripts/prompt-variant-evidence.test.mjs @@ -21,7 +21,7 @@ import { } from './release-contract-core.mjs'; const clientRoot = fileURLToPath(new URL('..', import.meta.url)); -const backendRoot = resolve(clientRoot, '../MoDiff'); +const backendRoot = resolve(process.env.MODIFF_BACKEND_DIR ?? join(clientRoot, '../MoDiff')); const digest = (value) => createHash('sha256').update(value).digest('hex'); test('a CPU capture measures sampled worker memory within its exact original task interval', () => { @@ -384,6 +384,7 @@ for (const [workflowId, variable, kind, proofKind = 'real_backend_prompt_bound_m ['Kandinsky3Pipeline:text_to_image', 'MODIFF_KANDINSKY3_CPU_PROMPT_EVIDENCE', 'image'], ['HuggingFaceTextGenerationModel:text_generation', 'MODIFF_SMOLLM2_PROMPT_EVIDENCE', 'json'], ['ShapEPipeline:text_to_3d', 'MODIFF_SHAPE_PROMPT_EVIDENCE', 'video'], + ['LongCatAudioDiTPipeline:text_to_audio', 'MODIFF_LONGCAT_AUDIO_PROMPT_EVIDENCE', 'audio'], ['CogView3PlusPipeline:text_to_image', 'MODIFF_COGVIEW3_PROMPT_EVIDENCE', 'image'], ['StableDiffusionXLTurboPipeline:text_to_image', 'MODIFF_SDXL_TURBO_PROMPT_EVIDENCE', 'image'], ['SanaPAGPipeline:text_to_image', 'MODIFF_SANA_PAG_PROMPT_EVIDENCE', 'image'], diff --git a/scripts/release-contract-core.mjs b/scripts/release-contract-core.mjs index 72b9adf8..b9606aae 100644 --- a/scripts/release-contract-core.mjs +++ b/scripts/release-contract-core.mjs @@ -861,6 +861,7 @@ export async function readCanonicalWorkflowEvidence({ clientRoot, backendRoot, w 'modiff.private.janus-caption-variant.v1', 'modiff.private.smolvlm-caption-variant.v1', 'modiff.private.shap-e-prompt-variant.v1', + 'modiff.private.longcat-audio-prompt-variant.v1', ].includes(evidence.format) || directImagePromptRoutes.some(({ format }) => format === evidence.format) ) { From f6a4067a62547d02aa0ddf317fe43dee9a6d5712 Mon Sep 17 00:00:00 2001 From: Sourav Das Date: Wed, 25 Nov 2026 04:23:23 +0530 Subject: [PATCH 347/440] Verify retained Chroma image runs with native recipe accounting --- scripts/live-proof-provenance.mjs | 25 ++++++++++++++++++++++++ scripts/prompt-variant-evidence.mjs | 8 ++++++-- scripts/prompt-variant-evidence.test.mjs | 19 +++++++++++++++++- 3 files changed, 49 insertions(+), 3 deletions(-) diff --git a/scripts/live-proof-provenance.mjs b/scripts/live-proof-provenance.mjs index 4e79f41a..58b89d95 100644 --- a/scripts/live-proof-provenance.mjs +++ b/scripts/live-proof-provenance.mjs @@ -2311,6 +2311,31 @@ export const directImagePromptRoutes = [ negative_prompt: '', }, }, + { + format: 'modiff.private.chroma-text-to-image-prompt-variant.v1', + workflowId: 'ChromaPipeline:text_to_image', + modelType: 'ChromaPipeline', + modelRepo: 'lodestones/Chroma1-HD', + modelRevision: '0e0c60ece1e82b17cb7f77342d765ba5024c40c0', + previousExpertFamily: 'ChromaPipeline', + active: [...plainImageActive, 'negative_prompt', 'max_sequence_length'], + inactive: plainImageInactive, + legacyNull: plainImageLegacyNull, + platform: /^Linux-/u, + backend: 'rocm', + dtype: 'bfloat16', + offload: 'model_cpu', + deviceMap: 'none', + generation: { + width: 1024, + height: 1024, + num_inference_steps: 40, + guidance_scale: 3, + max_sequence_length: 512, + seed: 42, + negative_prompt: '', + }, + }, { format: 'modiff.private.sdxl-pag-prompt-variant.v1', workflowId: 'StableDiffusionXLPAGPipeline:text_to_image', diff --git a/scripts/prompt-variant-evidence.mjs b/scripts/prompt-variant-evidence.mjs index 2800c82d..e57cafdd 100644 --- a/scripts/prompt-variant-evidence.mjs +++ b/scripts/prompt-variant-evidence.mjs @@ -438,8 +438,12 @@ function validateImagePromptPreparation(preparation, { modelType, previousExpert modelType, previous, ); - const reason = - previous === null ? 'cached model family is unknown' : `model family changed from ${previous} to ${modelType}`; + let reason = 'cached model family is unknown'; + if (previous === modelType) { + reason = `resource recipe changed within ${modelType}`; + } else if (previous !== null) { + reason = `model family changed from ${previous} to ${modelType}`; + } same(reasons, [reason], 'Unreviewed direct image cache cleanup.'); keys(cleanup, ['released', 'allocatorTrimmed', 'errors']); same(cleanup.errors, [], 'Direct image cache cleanup failed.'); diff --git a/scripts/prompt-variant-evidence.test.mjs b/scripts/prompt-variant-evidence.test.mjs index 1ce0182a..7c2016e1 100644 --- a/scripts/prompt-variant-evidence.test.mjs +++ b/scripts/prompt-variant-evidence.test.mjs @@ -391,6 +391,7 @@ for (const [workflowId, variable, kind, proofKind = 'real_backend_prompt_bound_m ['AuraFlowPipeline:text_to_image', 'MODIFF_AURAFLOW_PROMPT_EVIDENCE', 'image'], ['LatentConsistencyModelPipeline:text_to_image', 'MODIFF_LCM_IMAGE_PROMPT_EVIDENCE', 'image'], ['SanaPipeline:text_to_image', 'MODIFF_SANA_IMAGE_PROMPT_EVIDENCE', 'image'], + ['ChromaPipeline:text_to_image', 'MODIFF_CHROMA_IMAGE_PROMPT_EVIDENCE', 'image'], ['SanaSprintPipeline:text_to_image', 'MODIFF_SANA_SPRINT_IMAGE_PROMPT_EVIDENCE', 'image'], ['StableDiffusionXLPAGPipeline:text_to_image', 'MODIFF_SDXL_PAG_PROMPT_EVIDENCE', 'image'], ]) { @@ -429,10 +430,11 @@ for (const [workflowId, variable, kind, proofKind = 'real_backend_prompt_bound_m } const changedPath = join(temp, 'evidence.json'); const evidence = JSON.parse(original.descriptorBytes); - if (workflowId === 'SanaPipeline:text_to_image') { + if (['SanaPipeline:text_to_image', 'ChromaPipeline:text_to_image'].includes(workflowId)) { const runPath = join(temp, evidence.runDetail.path); const originalRun = readFileSync(runPath); const run = JSON.parse(originalRun); + const originalPreparation = structuredClone(run.task.runtimePreparation); run.task.runtimePreparation.previousModelFamily = 'UnreviewedPipeline'; const replacement = Buffer.from(JSON.stringify(run)); const substituted = structuredClone(evidence); @@ -443,6 +445,20 @@ for (const [workflowId, variable, kind, proofKind = 'real_backend_prompt_bound_m () => readCanonicalWorkflowEvidence({ ...args, evidencePath: changedPath }), /Unreviewed previous Expert model family/u, ); + if (workflowId === 'ChromaPipeline:text_to_image') { + run.task.runtimePreparation = { + ...originalPreparation, + reasons: ['model family changed from ChromaPipeline to ChromaPipeline'], + }; + const changed = Buffer.from(JSON.stringify(run)); + substituted.runDetail = { ...evidence.runDetail, bytes: changed.length, sha256: digest(changed) }; + writeFileSync(runPath, changed); + writeFileSync(changedPath, JSON.stringify(substituted)); + await assert.rejects( + () => readCanonicalWorkflowEvidence({ ...args, evidencePath: changedPath }), + /Unreviewed direct image cache cleanup/u, + ); + } writeFileSync(runPath, originalRun); } if (proofKind === 'real_backend_input_bound_model_variant') { @@ -497,6 +513,7 @@ test('Reviewed image prompt receipts keep the exact portable artifact and graph' 'AuraFlowPipeline:text_to_image', 'LatentConsistencyModelPipeline:text_to_image', 'SanaPipeline:text_to_image', + 'ChromaPipeline:text_to_image', 'SanaSprintPipeline:text_to_image', 'StableDiffusionXLPAGPipeline:text_to_image', ]; From 2b0172058060c6f6262accf2e8db344bcf695469 Mon Sep 17 00:00:00 2001 From: Sourav Das Date: Wed, 25 Nov 2026 04:48:14 +0530 Subject: [PATCH 348/440] Preserve native guide frame inputs in saved run evidence --- scripts/bundle-budget.mjs | 4 ++ scripts/resolved-execution-inputs.test.mjs | 81 ++++++++++++++++++++++ src/studio/builtinMediaEvidence.ts | 45 +++++++++++- 3 files changed, 129 insertions(+), 1 deletion(-) diff --git a/scripts/bundle-budget.mjs b/scripts/bundle-budget.mjs index d292847c..07b0cc34 100644 --- a/scripts/bundle-budget.mjs +++ b/scripts/bundle-budget.mjs @@ -493,6 +493,8 @@ const SOURCE_LICENSES = new URL('../public/THIRD_PARTY_LICENSES.txt', import.met // 504492/682980/346033 largest/startup/deferred gzip bytes: the reviewed // migration ceilings below still pass with 8/12/304 bytes of headroom. const MAX_STARTUP_CHUNK_GZIP_BYTES = + // Native guide frame receipts add 300 gzip bytes (544036 to 544336). + 300 + // Native video upscale history adds 79 gzip bytes to the existing startup chunk (543957 to 544036). 79 + // Six retained recipes and their exact authoring bindings add 3094 gzip bytes (540863 -> 543957). @@ -786,6 +788,8 @@ const MAX_STARTUP_CHUNK_GZIP_BYTES = // The same build measures 673359 aggregate startup bytes (+45 over the cap). // Keep 19 bytes of headroom; deferred limits and loading boundaries stay fixed. const MAX_STARTUP_GZIP_BYTES = + // The guide receipt checks add 302 bytes across startup (722520 to 722822). + 302 + // The same history contract adds 76 bytes across startup (722444 to 722520). 76 + // The same additions add 3099 aggregate startup gzip bytes (719345 -> 722444). diff --git a/scripts/resolved-execution-inputs.test.mjs b/scripts/resolved-execution-inputs.test.mjs index 1383c302..f88ba475 100644 --- a/scripts/resolved-execution-inputs.test.mjs +++ b/scripts/resolved-execution-inputs.test.mjs @@ -297,6 +297,87 @@ test('Audio.Load legacy filenames stay bounded and scoped to its declared file p assert.equal(parseBuiltinMediaEvidence(otherScope, 'Video.ProcessVideo'), undefined); }); +test('Video.Load binds one encoded source and one bounded ordered set of decoded frames', async () => { + const { parseBuiltinMediaEvidence } = await server.ssrLoadModule('/src/studio/builtinMediaEvidence.ts'); + const sha256 = 'a'.repeat(64); + const capture = { + schemaVersion: 1, + source: 'native-builtin-media-v1', + status: 'complete', + inputs: {}, + controls: {}, + files: { file: [{ sourceValue: '@data/guide.mp4', sha256, byteSize: 120 }] }, + outputs: { video: [{ kind: 'video', sha256, byteSize: 360, width: 3, height: 2, mode: 'RGB', frameCount: 20 }] }, + }; + assert.deepEqual(parseBuiltinMediaEvidence(capture, 'Video.Load'), capture); + assert.equal(parseBuiltinMediaEvidence(capture, 'Video.ProcessVideo'), undefined); + for (const mutate of [ + (row) => { + delete row.files.file; + }, + (row) => { + row.outputs.video[0].frameCount = 21; + }, + (row) => { + row.outputs.video[0].mode = 'P'; + }, + (row) => { + row.outputs.video.push(row.outputs.video[0]); + }, + ]) { + const changed = structuredClone(capture); + mutate(changed); + assert.equal(parseBuiltinMediaEvidence(changed, 'Video.Load'), undefined); + } +}); + +test('Wan motion evidence distinguishes reference, motion, face, background, and mask roles', async () => { + const { parseBuiltinMediaEvidence } = await server.ssrLoadModule('/src/studio/builtinMediaEvidence.ts'); + const sha256 = 'b'.repeat(64); + const clip = { kind: 'video', sha256, byteSize: 360, width: 3, height: 2, mode: 'RGB', frameCount: 20 }; + const image = { kind: 'image', sha256, byteSize: 18, width: 3, height: 2, mode: 'RGB' }; + for (const mode of ['character_replace', 'character_animate']) { + const supported = mode === 'character_replace' ? [clip] : []; + const record = { + schemaVersion: 1, + status: 'complete', + source: 'native-builtin-media-v1', + controls: { mode }, + inputs: { + reference: [image], + pose_video: [clip], + face_video: [clip], + background_video: supported, + mask: supported, + }, + files: {}, + outputs: {}, + }; + assert.deepEqual(parseBuiltinMediaEvidence(record, 'DiffusersVideo.Generate'), record); + for (const mutate of [ + (row) => { + row.inputs.reference = [clip]; + }, + (row) => { + row.inputs.pose_video = [image]; + }, + (row) => { + delete row.inputs.face_video; + }, + (row) => { + row.inputs.mask = row.inputs.mask.length ? [] : [clip]; + }, + (row) => { + row.controls.mode = 'text_to_video'; + }, + ]) { + const changed = structuredClone(record); + mutate(changed); + assert.equal(parseBuiltinMediaEvidence(changed, 'DiffusersVideo.Generate'), undefined); + } + } +}); + test('native builtin media metadata survives strict parsing without granting model evidence', async () => { const backend = fileURLToPath(new URL('../../MoDiff/', import.meta.url)); const python = diff --git a/src/studio/builtinMediaEvidence.ts b/src/studio/builtinMediaEvidence.ts index ed3f6f74..7efce82a 100644 --- a/src/studio/builtinMediaEvidence.ts +++ b/src/studio/builtinMediaEvidence.ts @@ -2,6 +2,7 @@ type Scalar = string | number | boolean | null; export type MediaIdentity = | { kind: 'file'; sha256: string; byteSize: number } | { kind: 'image'; sha256: string; byteSize: number; width: number; height: number; mode: string } + | { kind: 'video'; sha256: string; byteSize: number; width: number; height: number; frameCount: number; mode: string } | { kind: 'audio'; sha256: string; byteSize: number; shape: number[]; sampleRate: number; dtype: 'float32-le' }; export type BuiltinMediaEvidence = | { schemaVersion: 1; status: 'unavailable' | 'truncated'; reason: string } @@ -54,6 +55,7 @@ export const BUILTIN_MEDIA_EVIDENCE_SCOPES: Record< files: [], requiredSingleAudioInput: 'audio', }, + 'Video.Load': { controls: '', inputs: [], outputs: ['video'], files: ['file'] }, 'Video.ProcessVideo': { controls: videoControls, inputs: ['videos'], @@ -67,6 +69,12 @@ export const BUILTIN_MEDIA_EVIDENCE_SCOPES: Record< files: ['video'], }, 'Video.Export': { controls: 'filename quality fps', inputs: ['video'], outputs: ['file'], files: [] }, + 'DiffusersVideo.Generate': { + controls: 'mode', + inputs: ['reference', 'pose_video', 'face_video', 'background_video', 'mask'], + outputs: [], + files: [], + }, }; const record = (v: unknown): v is Record => typeof v === 'object' && v !== null && !Array.isArray(v); const has = (v: object, key: string) => Object.prototype.hasOwnProperty.call(v, key); @@ -89,6 +97,22 @@ function fileSource(value: unknown, legacyAudioSelection: boolean): value is str function identity(v: unknown): v is MediaIdentity { if (!record(v) || !digest(v.sha256) || !uint(v.byteSize) || v.byteSize > 256 * 1024 * 1024) return false; if (v.kind === 'file') return keys(v, ['kind', 'sha256', 'byteSize']); + if (v.kind === 'video') { + const bands = v.mode === 'RGB' ? 3 : v.mode === 'RGBA' ? 4 : v.mode === 'L' ? 1 : 0; + return ( + keys(v, ['kind', 'sha256', 'byteSize', 'width', 'height', 'frameCount', 'mode']) && + uint(v.width) && + v.width > 0 && + uint(v.height) && + v.height > 0 && + uint(v.frameCount) && + v.frameCount > 0 && + v.frameCount <= 1200 && + bands > 0 && + v.width * v.height * bands <= 64 * 1024 * 1024 && + v.width * v.height * bands * v.frameCount === v.byteSize + ); + } if (v.kind === 'image') return ( keys(v, ['kind', 'sha256', 'byteSize', 'width', 'height', 'mode']) && @@ -131,6 +155,7 @@ export function parseBuiltinMediaEvidence(value: unknown, scope: string): Builti ) return undefined; const declaration = BUILTIN_MEDIA_EVIDENCE_SCOPES[scope]!; + const frameEvidence = scope === 'Video.Load' || scope === 'DiffusersVideo.Generate'; const controls = new Set(declaration.controls.split(/\s+/u).filter(Boolean)); if ( Object.entries(value.controls).some( @@ -151,11 +176,29 @@ export function parseBuiltinMediaEvidence(value: unknown, scope: string): Builti if ( Object.entries(ports).some( ([port, items]) => - !declaration[section].includes(port) || !Array.isArray(items) || items.length > 16 || !items.every(identity), + !declaration[section].includes(port) || + !Array.isArray(items) || + items.length > 16 || + !items.every((item) => identity(item) && (item.kind !== 'video' || frameEvidence)), ) ) return undefined; } + if (scope === 'Video.Load') { + const { video } = value.outputs; + if (!Array.isArray(video) || video.length !== 1 || video[0]?.kind !== 'video') return undefined; + if (!Array.isArray(value.files.file) || value.files.file.length !== 1) return undefined; + } + if (scope === 'DiffusersVideo.Generate') { + if (value.controls.mode !== 'character_animate' && value.controls.mode !== 'character_replace') return undefined; + if (!keys(value.inputs, declaration.inputs)) return undefined; + for (const role of declaration.inputs) { + const items = value.inputs[role]; + const optional = value.controls.mode === 'character_animate' && ['background_video', 'mask'].includes(role); + if (!Array.isArray(items) || items.length !== (optional ? 0 : 1)) return undefined; + if (!optional && items[0]?.kind !== (role === 'reference' ? 'image' : 'video')) return undefined; + } + } if (declaration.requiredSingleAudioInput) { const audio = value.inputs[declaration.requiredSingleAudioInput]; if (!Array.isArray(audio) || audio.length !== 1 || audio[0]?.kind !== 'audio') return undefined; From 8bc821fc0765d3f70a38694c444e46b6334c99a8 Mon Sep 17 00:00:00 2001 From: Sourav Das Date: Wed, 25 Nov 2026 04:42:17 +0530 Subject: [PATCH 349/440] Verify retained image runs from their observed adapter controls --- scripts/live-proof-provenance.mjs | 123 ++++++++++++++++++++++- scripts/prompt-variant-evidence.mjs | 16 +-- scripts/prompt-variant-evidence.test.mjs | 38 +++++++ 3 files changed, 166 insertions(+), 11 deletions(-) diff --git a/scripts/live-proof-provenance.mjs b/scripts/live-proof-provenance.mjs index 58b89d95..4614137c 100644 --- a/scripts/live-proof-provenance.mjs +++ b/scripts/live-proof-provenance.mjs @@ -2213,6 +2213,84 @@ const plainImageInactive = const plainImageLegacyNull = ['control_guidance_start', 'conditioning_scale', 'strength', 'control_guidance_end']; const pagScalars = ['pag_scale', 'pag_adaptive_scale']; export const directImagePromptRoutes = [ + { + format: 'modiff.private.lumina2-prompt-variant.v1', + workflowId: 'Lumina2Pipeline:text_to_image', + modelType: 'Lumina2Pipeline', + modelRepo: 'Alpha-VLLM/Lumina-Image-2.0', + modelRevision: '53504abd8178b30685b6c4c7a4cd181ff78b73e9', + retainedObservationSource: + 'sha256:backend-source-v1:057b165c6ef6225461649a47077562dffad098a2d37d639a13bf0e73088d79ab', + active: [...plainImageActive, 'negative_prompt', 'max_sequence_length'], + inactive: plainImageInactive, + legacyNull: plainImageLegacyNull, + platform: /^Linux-/u, + backend: 'rocm', + dtype: 'bfloat16', + offload: 'model_cpu', + deviceMap: 'none', + generation: { + width: 1024, + height: 1024, + num_inference_steps: 50, + guidance_scale: 4, + max_sequence_length: 256, + seed: 42, + negative_prompt: '', + }, + }, + { + format: 'modiff.private.hunyuan-dit-prompt-variant.v1', + workflowId: 'HunyuanDiTPipeline:text_to_image', + modelType: 'HunyuanDiTPipeline', + modelRepo: 'Tencent-Hunyuan/HunyuanDiT-v1.2-Diffusers-Distilled', + modelRevision: 'ba991d1546d8c50936c4c16398ed0a87b9b99fb1', + retainedObservationSource: + 'sha256:backend-source-v1:371fd754663a95b1b06900df9a838042048466464b4bd5cfa7033c1b6eebe0e3', + active: [...plainImageActive, 'negative_prompt'], + inactive: [...plainImageInactive, 'max_sequence_length'], + legacyNull: [...plainImageLegacyNull, 'max_sequence_length'], + platform: /^Linux-/u, + backend: 'rocm', + dtype: 'float16', + offload: 'model_cpu', + deviceMap: 'none', + generation: { + width: 1024, + height: 1024, + num_inference_steps: 25, + guidance_scale: 5, + max_sequence_length: 256, + seed: 42, + negative_prompt: '', + }, + }, + { + format: 'modiff.private.omnigen-prompt-variant.v1', + workflowId: 'OmniGenPipeline:text_to_image', + modelType: 'OmniGenPipeline', + modelRepo: 'Shitao/OmniGen-v1-diffusers', + modelRevision: '016e2f61d12a98303f6bbdf122687694d7984268', + retainedObservationSource: + 'sha256:backend-source-v1:371fd754663a95b1b06900df9a838042048466464b4bd5cfa7033c1b6eebe0e3', + active: plainImageActive, + inactive: [...plainImageInactive, 'negative_prompt', 'max_sequence_length'], + legacyNull: [...plainImageLegacyNull, 'negative_prompt', 'max_sequence_length'], + platform: /^Linux-/u, + backend: 'rocm', + dtype: 'bfloat16', + offload: 'model_cpu', + deviceMap: 'none', + generation: { + width: 1024, + height: 1024, + num_inference_steps: 50, + guidance_scale: 2.5, + max_sequence_length: 256, + seed: 42, + negative_prompt: '', + }, + }, { format: 'modiff.private.kandinsky3-cpu-prompt-variant.v1', workflowId: 'Kandinsky3Pipeline:text_to_image', @@ -2834,6 +2912,19 @@ function imageAccountingExecutionPlan( same(target.modelSet, [{ repoId, revision }], 'Retained unconditional model is outside the reviewed scope.'); } const generateAction = conditional ? 'Generate' : 'UnconditionalGenerate'; + const retainedGenerator = Boolean( + promptVariant?.retainedObservationSource && + consumed?.nodes?.find((row) => row.action === 'Generate')?.fieldAccounting === undefined, + ); + if (retainedGenerator) { + assert.equal( + runtimeEvidence?.sourceFingerprint, + promptVariant.retainedObservationSource, + 'Retained image source differs from the reviewed adapter.', + ); + same(consumed.ambiguousFields, ['device'], 'Unexpected ambiguity in retained image consumption.'); + same(consumed.unavailableFields, [], 'Required retained image controls are unavailable.'); + } const generationFields = conditional ? ['image_contract', ...conditional.active, ...conditional.inactive] : accountingFields[generateAction]; @@ -2863,6 +2954,22 @@ function imageAccountingExecutionPlan( assert.ok(!byAction.has(row.action), 'Accounting owner is not unique.'); byAction.set(row.action, { row, node }); same(row.omittedFields, {}, 'Legacy consumed fields were omitted.'); + if (retainedGenerator && row.action === generateAction) { + accountingKeys( + row.fields, + [...conditional.active, 'executed_task', ...legacyNullFields], + 'Retained adapter controls are incomplete or unexpected.', + ); + for (const [key, item] of Object.entries(row.fields)) { + accountingKeys(item, ['value', 'source'], 'Retained control origin is incomplete.'); + assert.equal(item.source, 'literal'); + const expected = + key === 'executed_task' ? target.task : legacyNullFields.includes(key) ? null : node.params[key]?.value; + assert.notEqual(expected, undefined, 'Retained control is absent from the graph.'); + same(item.value, expected, `Retained adapter control differs: ${key}`); + } + continue; + } const section = row.fieldAccounting; accountingKeys( section, @@ -2952,7 +3059,11 @@ function imageAccountingExecutionPlan( assert.ok(owner && recipe && quant && generate && preview, 'Canonical accounting roles are incomplete.'); assert.equal(consumed.nodeId, preview.row.nodeId, 'Accounting output owner differs.'); const fields = (entry) => entry.row.fieldAccounting.fields; - const value = (entry, key) => fields(entry)[key].value; + const value = (entry, key) => { + if (retainedGenerator && entry === generate) + return conditional.active.includes(key) ? entry.row.fields[key].value : entry.node.params[key]?.value; + return fields(entry)[key].value; + }; const check = (entry, key, disposition, effective, reason) => { const field = fields(entry)[key]; assert.equal(field.disposition, disposition, `Wrong disposition: ${entry.row.nodeId}.${key}`); @@ -3035,6 +3146,7 @@ function imageAccountingExecutionPlan( } }; for (const entry of byAction.values()) { + if (retainedGenerator && entry === generate) continue; const section = entry.row.fieldAccounting; const inputPort = entry === owner ? 'execution_recipe' : entry === recipe ? 'quantization_config' : null; const outputPort = entry === recipe ? 'execution_recipe' : entry === quant ? 'quantization_config' : null; @@ -3124,7 +3236,7 @@ function imageAccountingExecutionPlan( 'Executed model set differs.', ); const inactive = new Set(conditional?.inactive ?? ['class_label', ...(retainedUnconditional ? ['eta'] : [])]); - for (const key of generationFields) { + for (const key of retainedGenerator ? [] : generationFields) { if (key === 'image_contract') { assert.equal(fields(generate)[key].disposition, 'metadata'); continue; @@ -3289,7 +3401,12 @@ function imageAccountingExecutionPlan( digest: sha256Value, }); } - return { ownerId: owner.row.nodeId, plan, hash: sha256Value('execution-plan-v1', plan) }; + return { + ownerId: owner.row.nodeId, + plan, + hash: sha256Value('execution-plan-v1', plan), + ...(retainedGenerator ? { retainedGenerator: true } : {}), + }; } function canonicalAccountingProofPlan({ apiGraph, executedOutput, executionReceipt, taskId, proof }) { diff --git a/scripts/prompt-variant-evidence.mjs b/scripts/prompt-variant-evidence.mjs index e57cafdd..7614ce27 100644 --- a/scripts/prompt-variant-evidence.mjs +++ b/scripts/prompt-variant-evidence.mjs @@ -795,13 +795,19 @@ export async function readPromptVariantEvidence({ clientRoot, manifest, graph, a } const { task, output, hints } = validatedRun; same(hints.workflowSnapshot.studioForm, output.formSnapshot, 'Run snapshot form differs from persisted form.'); + const source = backendSourceEvidence({ + before: json(evidence.backendSourceBefore).identity, + after: json(evidence.backendSourceAfter).identity, + runtimeFingerprint: task.runtimeFingerprint, + }); + same(source.blockers, [], 'Backend source differs from the running process.'); const accounting = imageRoute ? directImagePromptAccountingExecutionPlan({ expectedApiGraph: bound.expected, apiGraph: submitted, consumed: output.resolvedExecutionInputs, target, - runtimeEvidence: { run: accountingRun, output, graphCompleted }, + runtimeEvidence: { run: accountingRun, output, graphCompleted, sourceFingerprint: source.identity.fingerprint }, }) : null; const inputBinding = accounting ? undefined : validateConsumedPromptVariant(profile, bound, output, suppliedImage); @@ -839,12 +845,6 @@ export async function readPromptVariantEvidence({ clientRoot, manifest, graph, a role === 'source' && profile.bindsImage ? ['file'] : [], ); } - const source = backendSourceEvidence({ - before: json(evidence.backendSourceBefore).identity, - after: json(evidence.backendSourceAfter).identity, - runtimeFingerprint: task.runtimeFingerprint, - }); - same(source.blockers, [], 'Backend source differs from the running process.'); const { runtime, measurement } = validateNativePromptRuntime( profile, bound, @@ -934,7 +934,7 @@ export async function readPromptVariantEvidence({ clientRoot, manifest, graph, a ...(accounting ? { seedBinding: { nodeId: bound.generator.id, field: 'seed', value: bound.seed } } : {}), decodedOutput, observationLimits: { - fullConsumedFieldAccounting: Boolean(accounting), + fullConsumedFieldAccounting: Boolean(accounting && !accounting.retainedGenerator), physicalPlatformQualification: false, ...(sampledCpuMemory ? { memoryMeasurement: 'sampled_worker_rss' } : {}), }, diff --git a/scripts/prompt-variant-evidence.test.mjs b/scripts/prompt-variant-evidence.test.mjs index 7c2016e1..54575178 100644 --- a/scripts/prompt-variant-evidence.test.mjs +++ b/scripts/prompt-variant-evidence.test.mjs @@ -392,6 +392,9 @@ for (const [workflowId, variable, kind, proofKind = 'real_backend_prompt_bound_m ['LatentConsistencyModelPipeline:text_to_image', 'MODIFF_LCM_IMAGE_PROMPT_EVIDENCE', 'image'], ['SanaPipeline:text_to_image', 'MODIFF_SANA_IMAGE_PROMPT_EVIDENCE', 'image'], ['ChromaPipeline:text_to_image', 'MODIFF_CHROMA_IMAGE_PROMPT_EVIDENCE', 'image'], + ['Lumina2Pipeline:text_to_image', 'MODIFF_LUMINA2_SAVED_PROMPT_EVIDENCE', 'image'], + ['HunyuanDiTPipeline:text_to_image', 'MODIFF_HUNYUAN_DIT_SAVED_PROMPT_EVIDENCE', 'image'], + ['OmniGenPipeline:text_to_image', 'MODIFF_OMNIGEN_SAVED_PROMPT_EVIDENCE', 'image'], ['SanaSprintPipeline:text_to_image', 'MODIFF_SANA_SPRINT_IMAGE_PROMPT_EVIDENCE', 'image'], ['StableDiffusionXLPAGPipeline:text_to_image', 'MODIFF_SDXL_PAG_PROMPT_EVIDENCE', 'image'], ]) { @@ -430,6 +433,38 @@ for (const [workflowId, variable, kind, proofKind = 'real_backend_prompt_bound_m } const changedPath = join(temp, 'evidence.json'); const evidence = JSON.parse(original.descriptorBytes); + const route = directImagePromptRoutes.find((row) => row.workflowId === workflowId); + if (route?.retainedObservationSource) { + assert.equal(original.receipt.observationLimits.fullConsumedFieldAccounting, false); + const packagePath = join(temp, evidence.outputPackage.path); + const originalPackage = readFileSync(packagePath); + const altered = JSON.parse(originalPackage); + const owner = altered.latestOutput.resolvedExecutionInputs.nodes.find((node) => node.action === 'Generate'); + assert.equal(owner.fieldAccounting, undefined); + owner.fields.num_inference_steps.value += 1; + const replacement = Buffer.from(JSON.stringify(altered)); + const descriptor = structuredClone(evidence); + descriptor.outputPackage = { + ...evidence.outputPackage, + bytes: replacement.length, + sha256: digest(replacement), + }; + const runPath = join(temp, evidence.runDetail.path); + const originalRun = readFileSync(runPath); + const run = JSON.parse(originalRun); + run.outputs[0].resolvedExecutionInputs = altered.latestOutput.resolvedExecutionInputs; + const changedRun = Buffer.from(JSON.stringify(run)); + descriptor.runDetail = { ...evidence.runDetail, bytes: changedRun.length, sha256: digest(changedRun) }; + writeFileSync(packagePath, replacement); + writeFileSync(runPath, changedRun); + writeFileSync(changedPath, JSON.stringify(descriptor)); + await assert.rejects( + () => readCanonicalWorkflowEvidence({ ...args, evidencePath: changedPath }), + /Retained adapter control differs: num_inference_steps/u, + ); + writeFileSync(packagePath, originalPackage); + writeFileSync(runPath, originalRun); + } if (['SanaPipeline:text_to_image', 'ChromaPipeline:text_to_image'].includes(workflowId)) { const runPath = join(temp, evidence.runDetail.path); const originalRun = readFileSync(runPath); @@ -514,6 +549,9 @@ test('Reviewed image prompt receipts keep the exact portable artifact and graph' 'LatentConsistencyModelPipeline:text_to_image', 'SanaPipeline:text_to_image', 'ChromaPipeline:text_to_image', + 'Lumina2Pipeline:text_to_image', + 'HunyuanDiTPipeline:text_to_image', + 'OmniGenPipeline:text_to_image', 'SanaSprintPipeline:text_to_image', 'StableDiffusionXLPAGPipeline:text_to_image', ]; From fc035d64d5029511c0dc2251e5acd24b64907dd8 Mon Sep 17 00:00:00 2001 From: Sourav Das Date: Wed, 25 Nov 2026 04:48:15 +0530 Subject: [PATCH 350/440] Verify native Wan A14B video against its pinned prompt recipe --- scripts/prompt-variant-evidence.mjs | 80 +++++++++++++++++++++--- scripts/prompt-variant-evidence.test.mjs | 48 ++++++++------ scripts/release-contract-core.mjs | 1 + 3 files changed, 99 insertions(+), 30 deletions(-) diff --git a/scripts/prompt-variant-evidence.mjs b/scripts/prompt-variant-evidence.mjs index 7614ce27..0cae89f1 100644 --- a/scripts/prompt-variant-evidence.mjs +++ b/scripts/prompt-variant-evidence.mjs @@ -173,6 +173,45 @@ const audioRoute = { ], }; +const wanA14BRoute = { + format: 'modiff.private.wan-a14b-video-prompt-variant.v1', + workflowId: 'Wan22Pipeline:text_to_video', + modelType: 'Wan22Pipeline', + outputKind: 'video', + displayType: 'video', + contentType: 'video/mp4', + platform: /^Linux-/u, + backend: 'rocm', + previousExpertFamily: 'WanAnimatePipeline', + modelRepo: 'Wan-AI/Wan2.2-T2V-A14B-Diffusers', + modelRevision: '5be7df9619b54f4e2667b2755bc6a756675b5cd7', + loaderContract: ['modules.DiffusersVideo.LoadPipeline'], + bindSeed: true, + executedTask: 'text_to_video', + chain: [ + ['quantization', 'modules.DiffusersRuntime', 'PipelineQuantizationConfigV2', 'dtype'], + [ + 'recipe', + 'modules.DiffusersRuntime', + 'DiffusersExecutionRecipe', + 'attention_backend device offload_mode vae_slicing vae_tiling', + ], + [ + 'loader', + 'modules.DiffusersVideo', + 'LoadPipeline', + 'auto_offload device dtype model_id offload_mode pipeline_class revision', + ], + [ + 'generator', + 'modules.DiffusersVideo', + 'Generate', + 'conditioning_scale frame_rate guidance_scale height max_sequence_length negative_prompt num_frames num_inference_steps output_type prompt secondary_guidance_scale seed strength true_cfg_scale width', + ], + ['preview', 'modules.Video', 'Export', 'fps'], + ], +}; + const imagePromptRoute = { outputKind: 'image', displayType: 'image', @@ -645,12 +684,16 @@ function validateSmolVlmCaption(bytes, item, bound, runtime, source) { export function validatePromptVariantVideo(decoded, item, bound) { const frameSize = bound.generator.node.params.frame_size.value; const fps = bound.preview.node.params.fps.value; + return validateNativeVideoDelivery(decoded, item, { width: frameSize, height: frameSize, fps, frames: 20 }); +} + +function validateNativeVideoDelivery(decoded, item, { width, height, fps, frames }) { const native = item.mediaMetadata; assert.equal(native.source, 'encoded-file'); - assert.equal(native.width, frameSize); - assert.equal(native.height, frameSize); + assert.equal(native.width, width); + assert.equal(native.height, height); assert.equal(native.fps, fps); - assert.equal(native.frame_count, 20); + assert.equal(native.frame_count, frames); assert.ok(Math.abs(native.duration_seconds - native.frame_count / fps) <= 0.01); same( [decoded.width, decoded.height, decoded.fps, decoded.frames], @@ -677,9 +720,16 @@ export async function readPromptVariantEvidence({ clientRoot, manifest, graph, a const imageRoute = directImagePromptRoutes.find(({ workflowId }) => workflowId === target.workflowId); const profile = imageRoute ? { ...imagePromptRoute, ...imageRoute } - : [textRoute, janusTextRoute, janusImageRoute, janusCaptionRoute, smolVlmCaptionRoute, videoRoute, audioRoute].find( - ({ workflowId }) => workflowId === target.workflowId, - ); + : [ + textRoute, + janusTextRoute, + janusImageRoute, + janusCaptionRoute, + smolVlmCaptionRoute, + videoRoute, + audioRoute, + wanA14BRoute, + ].find(({ workflowId }) => workflowId === target.workflowId); assert.ok(profile, 'Prompt variant route is not reviewed.'); const requiresOriginalRequest = imageRoute !== undefined || @@ -687,7 +737,8 @@ export async function readPromptVariantEvidence({ clientRoot, manifest, graph, a profile === janusImageRoute || profile === janusCaptionRoute || profile === smolVlmCaptionRoute || - profile === audioRoute; + profile === audioRoute || + profile === wanA14BRoute; const sampledCpuMemory = profile.executionDevice === 'cpu:0'; same(target.modelSet, [{ repoId: profile.modelRepo, revision: profile.modelRevision }]); assert.equal(target.outputPlan.minimumAssetCount, 1); @@ -775,7 +826,7 @@ export async function readPromptVariantEvidence({ clientRoot, manifest, graph, a graphAcknowledgment: json(evidence.graphAcknowledgment), } : {}), - ...(imageRoute + ...(imageRoute || profile === wanA14BRoute ? { validatePreparation: (preparation) => validateImagePromptPreparation(preparation, profile) } : {}), ...(profile === videoRoute || profile === audioRoute @@ -881,9 +932,18 @@ export async function readPromptVariantEvidence({ clientRoot, manifest, graph, a decodedOutput = validateJanusPromptVariantText(media.bytes, item, bound, runtime, inputBinding?.decodedImage); } else if (profile === smolVlmCaptionRoute) { decodedOutput = validateSmolVlmCaption(media.bytes, item, bound, runtime, inputBinding.decodedImage); - } else if (profile === videoRoute) { + } else if (profile === videoRoute || profile === wanA14BRoute) { const { decodedMediaHash } = await import('./template-gallery-harness.mjs'); - decodedOutput = validatePromptVariantVideo(await decodedMediaHash(media.file, 'video'), item, bound); + const decoded = await decodedMediaHash(media.file, 'video'); + if (profile === wanA14BRoute) { + const { width, height, num_frames } = bound.generator.node.params; + decodedOutput = validateNativeVideoDelivery(decoded, item, { + width: width.value, + height: height.value, + frames: num_frames.value, + fps: bound.preview.node.params.fps.value, + }); + } else decodedOutput = validatePromptVariantVideo(decoded, item, bound); } else if (profile === audioRoute) { assert.equal(media.bytes.toString('ascii', 0, 4), 'RIFF'); assert.equal(media.bytes.toString('ascii', 8, 12), 'WAVE'); diff --git a/scripts/prompt-variant-evidence.test.mjs b/scripts/prompt-variant-evidence.test.mjs index 54575178..da8d4e08 100644 --- a/scripts/prompt-variant-evidence.test.mjs +++ b/scripts/prompt-variant-evidence.test.mjs @@ -384,6 +384,7 @@ for (const [workflowId, variable, kind, proofKind = 'real_backend_prompt_bound_m ['Kandinsky3Pipeline:text_to_image', 'MODIFF_KANDINSKY3_CPU_PROMPT_EVIDENCE', 'image'], ['HuggingFaceTextGenerationModel:text_generation', 'MODIFF_SMOLLM2_PROMPT_EVIDENCE', 'json'], ['ShapEPipeline:text_to_3d', 'MODIFF_SHAPE_PROMPT_EVIDENCE', 'video'], + ['Wan22Pipeline:text_to_video', 'MODIFF_WAN_A14B_VIDEO_PROMPT_EVIDENCE', 'video'], ['LongCatAudioDiTPipeline:text_to_audio', 'MODIFF_LONGCAT_AUDIO_PROMPT_EVIDENCE', 'audio'], ['CogView3PlusPipeline:text_to_image', 'MODIFF_COGVIEW3_PROMPT_EVIDENCE', 'image'], ['StableDiffusionXLTurboPipeline:text_to_image', 'MODIFF_SDXL_TURBO_PROMPT_EVIDENCE', 'image'], @@ -434,33 +435,40 @@ for (const [workflowId, variable, kind, proofKind = 'real_backend_prompt_bound_m const changedPath = join(temp, 'evidence.json'); const evidence = JSON.parse(original.descriptorBytes); const route = directImagePromptRoutes.find((row) => row.workflowId === workflowId); - if (route?.retainedObservationSource) { + if (route?.retainedObservationSource || workflowId === 'Wan22Pipeline:text_to_video') { assert.equal(original.receipt.observationLimits.fullConsumedFieldAccounting, false); const packagePath = join(temp, evidence.outputPackage.path); - const originalPackage = readFileSync(packagePath); - const altered = JSON.parse(originalPackage); - const owner = altered.latestOutput.resolvedExecutionInputs.nodes.find((node) => node.action === 'Generate'); - assert.equal(owner.fieldAccounting, undefined); - owner.fields.num_inference_steps.value += 1; - const replacement = Buffer.from(JSON.stringify(altered)); - const descriptor = structuredClone(evidence); - descriptor.outputPackage = { - ...evidence.outputPackage, - bytes: replacement.length, - sha256: digest(replacement), - }; const runPath = join(temp, evidence.runDetail.path); + const originalPackage = readFileSync(packagePath); const originalRun = readFileSync(runPath); + const changed = JSON.parse(originalPackage); + const inputs = changed.latestOutput.resolvedExecutionInputs; + const sampler = inputs.nodes.find((node) => node.action === 'Generate'); + let expectedFailure; + if (route?.retainedObservationSource) { + assert.equal(sampler.fieldAccounting, undefined); + sampler.fields.num_inference_steps.value += 1; + expectedFailure = /Retained adapter control differs: num_inference_steps/u; + } else { + assert.equal(sampler.fields.secondary_guidance_scale.value, 3.5); + sampler.fields.secondary_guidance_scale.value = 0; + expectedFailure = /Actual consumed fields differ for Generate/u; + } const run = JSON.parse(originalRun); - run.outputs[0].resolvedExecutionInputs = altered.latestOutput.resolvedExecutionInputs; - const changedRun = Buffer.from(JSON.stringify(run)); - descriptor.runDetail = { ...evidence.runDetail, bytes: changedRun.length, sha256: digest(changedRun) }; - writeFileSync(packagePath, replacement); - writeFileSync(runPath, changedRun); - writeFileSync(changedPath, JSON.stringify(descriptor)); + run.outputs[0].resolvedExecutionInputs = inputs; + const substituted = structuredClone(evidence); + for (const [field, path, data] of [ + ['outputPackage', packagePath, changed], + ['runDetail', runPath, run], + ]) { + const bytes = Buffer.from(JSON.stringify(data)); + substituted[field] = { ...substituted[field], bytes: bytes.length, sha256: digest(bytes) }; + writeFileSync(path, bytes); + } + writeFileSync(changedPath, JSON.stringify(substituted)); await assert.rejects( () => readCanonicalWorkflowEvidence({ ...args, evidencePath: changedPath }), - /Retained adapter control differs: num_inference_steps/u, + expectedFailure, ); writeFileSync(packagePath, originalPackage); writeFileSync(runPath, originalRun); diff --git a/scripts/release-contract-core.mjs b/scripts/release-contract-core.mjs index b9606aae..f3be0b0b 100644 --- a/scripts/release-contract-core.mjs +++ b/scripts/release-contract-core.mjs @@ -862,6 +862,7 @@ export async function readCanonicalWorkflowEvidence({ clientRoot, backendRoot, w 'modiff.private.smolvlm-caption-variant.v1', 'modiff.private.shap-e-prompt-variant.v1', 'modiff.private.longcat-audio-prompt-variant.v1', + 'modiff.private.wan-a14b-video-prompt-variant.v1', ].includes(evidence.format) || directImagePromptRoutes.some(({ format }) => format === evidence.format) ) { From 23e6c91185d9bec93761a76b195b5c45fe920610 Mon Sep 17 00:00:00 2001 From: Sourav Das Date: Wed, 25 Nov 2026 05:11:28 +0530 Subject: [PATCH 351/440] Verify the pinned Qwen layered run and exported layer order --- package.json | 2 +- scripts/bundle-budget.mjs | 4 + scripts/layer-decomposition-evidence.mjs | 308 ++++++++++++++++++ scripts/layer-decomposition-evidence.test.mjs | 72 ++++ scripts/release-contract-core.mjs | 7 + scripts/resolved-execution-inputs.test.mjs | 32 ++ src/studio/builtinMediaEvidence.ts | 16 + 7 files changed, 440 insertions(+), 1 deletion(-) create mode 100644 scripts/layer-decomposition-evidence.mjs create mode 100644 scripts/layer-decomposition-evidence.test.mjs diff --git a/package.json b/package.json index a9d0789b..102cf3d7 100644 --- a/package.json +++ b/package.json @@ -85,7 +85,7 @@ "test:template-assets:local": "node --test scripts/template-default-inputs.test.mjs", "test:template-quality": "node --test scripts/template-quality.test.mjs", "test:live-qwen-proof": "node --test scripts/live-qwen-proof.test.mjs scripts/native-modular-image-resource.test.mjs scripts/executed-native-media-resource.test.mjs scripts/workflow-auto-provenance.test.mjs scripts/workflow-auto-audio-provenance.test.mjs scripts/workflow-auto-video-provenance.test.mjs scripts/workflow-auto-control-provenance.test.mjs scripts/workflow-auto-masked-image-provenance.test.mjs scripts/retained-native-text-provenance.test.mjs scripts/retained-native-direct-image-provenance.test.mjs scripts/retained-native-modular-image-provenance.test.mjs scripts/canonical-runtime-hints.test.mjs scripts/hardware-qualification.test.mjs scripts/hardware-execution-device.test.mjs scripts/hardware-runtime-identity.test.mjs scripts/release-qualification-policy.test.mjs scripts/resource-qualification.test.mjs scripts/route-resource-qualification.test.mjs scripts/resource-qualification-campaign.test.mjs scripts/template-qualification.test.mjs scripts/release-qualification-campaign.test.mjs", - "test:release-contract": "node --test scripts/backend-installer-contract.test.mjs scripts/backend-node-registry.test.mjs scripts/release-contract.test.mjs scripts/release-candidate-report.test.mjs scripts/template-asset-release-contract.test.mjs scripts/builtin-media-qualification.test.mjs scripts/input-bound-model-evidence.test.mjs scripts/video-upscale-evidence.test.mjs scripts/canonical-image-accounting.test.mjs scripts/marigold-preview-evidence.test.mjs scripts/private-speech-evidence.test.mjs scripts/retained-speech-gallery-evidence.test.mjs scripts/private-image-edit-evidence.test.mjs scripts/image-edit-source-binding.test.mjs scripts/prompt-variant-evidence.test.mjs scripts/retained-template-association.test.mjs scripts/retained-gallery-release.test.mjs scripts/saved-workflow-compatibility.test.mjs", + "test:release-contract": "node --test scripts/backend-installer-contract.test.mjs scripts/backend-node-registry.test.mjs scripts/release-contract.test.mjs scripts/release-candidate-report.test.mjs scripts/template-asset-release-contract.test.mjs scripts/builtin-media-qualification.test.mjs scripts/input-bound-model-evidence.test.mjs scripts/video-upscale-evidence.test.mjs scripts/layer-decomposition-evidence.test.mjs scripts/canonical-image-accounting.test.mjs scripts/marigold-preview-evidence.test.mjs scripts/private-speech-evidence.test.mjs scripts/retained-speech-gallery-evidence.test.mjs scripts/private-image-edit-evidence.test.mjs scripts/image-edit-source-binding.test.mjs scripts/prompt-variant-evidence.test.mjs scripts/retained-template-association.test.mjs scripts/retained-gallery-release.test.mjs scripts/saved-workflow-compatibility.test.mjs", "test:live-backend-contract": "node scripts/live-backend-contract.mjs", "test:gallery-harness": "node --test scripts/template-gallery-harness.test.mjs scripts/source-video-timing.test.mjs scripts/retained-layer-sheet.test.mjs scripts/template-gallery-maintainer-acceptance.test.mjs scripts/template-recipe-history.test.mjs scripts/release-showcase-scope.test.mjs scripts/template-input-roles.test.mjs", "test:gallery-runner": "node --test scripts/template-gallery-runner.test.mjs && npm run test:demo-tools", diff --git a/scripts/bundle-budget.mjs b/scripts/bundle-budget.mjs index 07b0cc34..8ae19923 100644 --- a/scripts/bundle-budget.mjs +++ b/scripts/bundle-budget.mjs @@ -493,6 +493,8 @@ const SOURCE_LICENSES = new URL('../public/THIRD_PARTY_LICENSES.txt', import.met // 504492/682980/346033 largest/startup/deferred gzip bytes: the reviewed // migration ceilings below still pass with 8/12/304 bytes of headroom. const MAX_STARTUP_CHUNK_GZIP_BYTES = + // Layer stack evidence adds 127 gzip bytes (544336 to 544463). + 127 + // Native guide frame receipts add 300 gzip bytes (544036 to 544336). 300 + // Native video upscale history adds 79 gzip bytes to the existing startup chunk (543957 to 544036). @@ -788,6 +790,8 @@ const MAX_STARTUP_CHUNK_GZIP_BYTES = // The same build measures 673359 aggregate startup bytes (+45 over the cap). // Keep 19 bytes of headroom; deferred limits and loading boundaries stay fixed. const MAX_STARTUP_GZIP_BYTES = + // The layer stack evidence checks add 124 bytes across startup (722822 to 722946). + 124 + // The guide receipt checks add 302 bytes across startup (722520 to 722822). 302 + // The same history contract adds 76 bytes across startup (722444 to 722520). diff --git a/scripts/layer-decomposition-evidence.mjs b/scripts/layer-decomposition-evidence.mjs new file mode 100644 index 00000000..f6476f3f --- /dev/null +++ b/scripts/layer-decomposition-evidence.mjs @@ -0,0 +1,308 @@ +import assert from 'node:assert/strict'; +import { createHash } from 'node:crypto'; +import { readFileSync, realpathSync } from 'node:fs'; +import { dirname } from 'node:path'; +import { + backendContractIdentity, + backendSourceEvidence, + canonicalGraphIdentity, + normalizeBackendRuntime, + selectBackendRuntimeFingerprintEvidence, + selectInstalledModelIdentity, + stableStringify, +} from './live-proof-provenance.mjs'; +import { verifyNativeLoadedImage } from './native-image-load-evidence.mjs'; +import { validateNativeVariantRun, validateUnmodifiedExpertPreparation } from './native-variant-run-evidence.mjs'; +import { + canonicalWorkflowAuthoringContract, + exportCanonicalWorkflowGraphs, + readCanonicalEvidenceFile, +} from './release-contract-core.mjs'; +import { decodedMediaHash } from './template-gallery-harness.mjs'; + +const workflowId = 'QwenImageLayeredPipeline:layer_decomposition'; +const repoId = 'Qwen/Qwen-Image-Layered'; +const revision = '8f0ca708dfff6ba1dd5f2d85d78f8c108a040bcf'; +const digest = (bytes) => createHash('sha256').update(bytes).digest('hex'); +const same = (a, b, message) => assert.equal(stableStringify(a), stableStringify(b), message); +const literal = (value) => ({ value, source: 'literal' }); +const chain = [ + 'modules.DiffusersRuntime.PipelineQuantizationConfigV2', + 'modules.DiffusersRuntime.DiffusersExecutionRecipe', + 'modules.DiffusersImage.LoadPipeline', + 'modules.Image.Load', + 'modules.DiffusersImage.LayerDecompose', + 'modules.Image.Preview', +]; + +function chainOwners(api) { + assert.equal(api.paths.length, 1); + const [path] = api.paths; + same([...path].sort(), Object.keys(api.nodes).sort(), 'The layer graph scope differs.'); + same( + path.map((id) => `${api.nodes[id].module}.${api.nodes[id].action}`), + chain, + 'Layer stage order differs.', + ); + return path; +} + +function verifyLayerInputs(output, api, path, input) { + const [, , loaderId, sourceId, splitId, previewId] = path; + const inputReceipt = output.resolvedExecutionInputs; + assert.equal(inputReceipt.schemaVersion, 1); + assert.equal(inputReceipt.source, 'backend-execution'); + assert.equal(inputReceipt.truncated, false); + assert.equal(inputReceipt.taskId, output.taskId); + assert.equal(inputReceipt.nodeId, previewId); + assert.equal(inputReceipt.attemptIndex, 0); + same(inputReceipt.mediaEvidenceStatus, { schemaVersion: 1, truncated: false }); + same(inputReceipt.uncapturedNodeIds, []); + same(inputReceipt.unavailableFields, []); + same(inputReceipt.nodes.map(({ nodeId }) => nodeId).sort(), [...path].sort()); + const record = (id) => { + const row = inputReceipt.nodes.find(({ nodeId }) => nodeId === id); + assert.equal(row.action, api.nodes[id].action); + assert.equal(row.module, api.nodes[id].module); + same(row.omittedFields, {}); + return row; + }; + const { sourceFile, decodedImage } = verifyNativeLoadedImage(api.nodes[sourceId], record(sourceId), 'RGBA'); + same( + [sourceFile.sourceValue, sourceFile.sha256, sourceFile.byteSize], + [input.sourceValue, input.file.sha256, input.file.bytes], + 'Loaded layer source differs.', + ); + const split = record(splitId); + const preview = record(previewId); + const loader = record(loaderId); + same(loader.fields.model_id, literal(repoId)); + same(loader.fields.revision, literal(revision)); + same(loader.fields.mode, literal('layer_decomposition')); + const params = api.nodes[splitId].params; + const expected = Object.fromEntries( + ['layers', 'resolution', 'cfg_normalize', 'use_en_prompt'].map((key) => [key, params[key].value]), + ); + same(split.mediaEvidence.controls, expected, 'Layer adapter controls differ from the submitted graph.'); + for (const field of [ + 'prompt', + 'negative_prompt', + 'num_inference_steps', + 'output_type', + 'max_sequence_length', + 'seed', + ]) + same(split.fields[field], literal(params[field].value), `Layer adapter control differs: ${field}`); + same(split.fields.true_cfg_scale, literal(params.guidance_scale.value)); + same(split.fields.executed_task, literal('layer_decomposition')); + const layers = split.mediaEvidence.outputs.images; + assert.equal(layers.length, expected.layers); + assert.equal(split.mediaEvidence.status, 'complete'); + assert.equal(preview.mediaEvidence.status, 'complete'); + same(split.mediaEvidence.inputs, { image: [{ kind: 'image', ...decodedImage }] }, 'Consumed layer source differs.'); + same(preview.mediaEvidence.inputs.image, layers, 'Layer order changed before export.'); + return { decodedImage, layers }; +} + +export async function readLayerDecompositionEvidence({ + clientRoot, + manifest, + graph, + authoring, + artifact, + evidencePath, +}) { + assert.equal(manifest.id, workflowId); + const target = canonicalWorkflowAuthoringContract(manifest, graph, authoring, artifact); + same(target.modelSet, [{ repoId, revision }]); + const descriptorBytes = readFileSync(evidencePath); + const evidence = JSON.parse(descriptorBytes); + assert.equal(evidence.format, 'modiff.private.native-layer-decomposition.v1'); + assert.equal(evidence.schemaVersion, 1); + const root = realpathSync(dirname(evidencePath)); + const retainedFiles = []; + const read = (ref) => { + const { bytes, file } = readCanonicalEvidenceFile(root, ref, 16 * 1024 * 1024); + retainedFiles.push({ ...ref, absolutePath: file }); + return { bytes, file }; + }; + const json = (ref) => JSON.parse(read(ref).bytes); + const creator = json(evidence.creatorPackage); + const outputPackage = json(evidence.outputPackage); + const run = json(evidence.runDetail); + const completed = json(evidence.graphCompleted); + const request = json(evidence.graphRequest); + const [expected, ...visual] = await exportCanonicalWorkflowGraphs(clientRoot, [ + graph, + creator.graph, + outputPackage.latestOutput.graphSnapshot, + run.workflow_snapshot, + ]); + assert.equal(canonicalGraphIdentity(expected).hash, evidence.originalGraphHash); + const expectedPath = chainOwners(expected); + const path = chainOwners(request); + const [, , , sourceId, splitId, previewId] = path; + const input = evidence.input; + assert.match(input.sourceValue, /^@data\/images\/[a-z0-9_-]{1,128}[.]png$/iu); + assert.equal(input.nodeId, sourceId); + const sourceSlot = expected.nodes[expectedPath[3]].params.file; + same(sourceSlot, { display: 'filebrowser', value: [] }); + sourceSlot.value = [input.sourceValue]; + const prompt = request.nodes[splitId].params.prompt.value; + assert.ok(typeof prompt === 'string' && prompt.length > 0 && prompt.length <= 4096 && prompt === prompt.trim()); + assert.ok(!/[\u0000-\u001f\u007f]/u.test(prompt)); + expected.nodes[expectedPath[4]].params.prompt.value = prompt; + const identity = canonicalGraphIdentity(expected); + for (const value of [request, creator.apiGraph, ...visual]) { + same(canonicalGraphIdentity(value), identity, 'The layer graph differs outside its source and authored prompt.'); + } + const { task, output, hints } = validateNativeVariantRun({ + target, + outputNodeId: previewId, + displayType: 'image_collection', + creator, + outputPackage, + run, + graphCompleted: completed, + graphRequest: request, + graphAcknowledgment: json(evidence.graphAcknowledgment), + validatePreparation: (value) => validateUnmodifiedExpertPreparation(value, target.modelType), + }); + same(hints.workflowSnapshot.studioForm, output.formSnapshot); + same(completed.runtimeHints, { + ...hints, + controlledArtifacts: [], + loaderContract: ['modules.DiffusersImage.LoadPipeline'], + }); + const { decodedImage, layers } = verifyLayerInputs(output, request, path, input); + const source = read(input.file); + assert.equal(source.bytes.subarray(0, 8).toString('hex'), '89504e470d0a1a0a'); + const upload = json(input.upload); + assert.equal(upload.error, false); + assert.equal(upload.path, input.sourceValue); + same( + [upload.media.sha256, upload.media.sizeBytes, upload.media.width, upload.media.height], + [digest(source.bytes), source.bytes.length, decodedImage.width, decodedImage.height], + ); + assert.equal(upload.media.frames, 1); + assert.equal(upload.media.mimeType, 'image/png'); + const runtimeSource = backendSourceEvidence({ + before: json(evidence.backendSourceBefore).identity, + after: json(evidence.backendSourceAfter).identity, + runtimeFingerprint: task.runtimeFingerprint, + }); + same(runtimeSource.blockers, []); + const backendContract = backendContractIdentity(json(evidence.nodes), identity.canonicalGraph); + assert.ok(backendContract.fingerprint); + const runtime = selectBackendRuntimeFingerprintEvidence([task.runtimeFingerprint]); + assert.match(runtime.packages.platform, /^Linux-/u); + assert.equal(evidence.modelObservations.length, 1); + const observation = json(evidence.modelObservations[0]); + assert.equal(observation.error, false); + assert.equal(observation.models.length, 1); + assert.equal(observation.models[0].complete, true); + assert.equal(observation.models[0].repairRequired, false); + assert.equal(observation.runtimeFingerprint, runtime.fingerprint); + const model = selectInstalledModelIdentity(observation, repoId); + assert.equal(model?.selectedRevision, revision); + assert.equal(model?.modelRevision, `${repoId}@${revision}`); + const measurement = task.runtimeMeasurement; + assert.equal(measurement.backend, 'rocm'); + assert.equal(measurement.device, 'cuda:0'); + assert.equal(measurement.peakMeasurementVersion, 2); + assert.ok(measurement.elapsedSeconds > 0 && measurement.elapsedSeconds <= 7200); + assert.ok(measurement.peakAllocatedBytes > 0); + const media = await verifyLayerCollection(output, evidence.outputs, layers, read); + assert.ok(readFileSync(evidencePath).equals(descriptorBytes)); + const receipt = { + schemaVersion: 1, + format: 'modiff.canonical-workflow-run-receipt.v1', + proofKind: 'real_backend_input_bound_model_variant', + ...target, + graphHash: identity.hash, + capturedAt: new Date(task.completed_at * 1000).toISOString(), + taskId: task.task_id, + outputId: output.id, + runtimeFingerprint: normalizeBackendRuntime(runtime).lockFingerprint, + backendSourceFingerprint: runtimeSource.identity.fingerprint, + backendContractFingerprint: backendContract.fingerprint, + resourceCandidateId: null, + outputHash: output.mediaCollectionHash, + executionDurationSeconds: measurement.elapsedSeconds, + peakMemoryBytes: measurement.peakAllocatedBytes, + canonicalDefaultsExecuted: false, + inputBinding: { nodeId: sourceId, field: 'file', sha256: input.file.sha256, decodedImage }, + promptBinding: { nodeId: splitId, field: 'prompt', sha256: digest(prompt) }, + decodedOutput: { kind: 'image_collection', items: media }, + observationLimits: { + fullConsumedFieldAccounting: false, + orderedLayerStack: true, + physicalPlatformQualification: false, + }, + qualificationClaims: { + publicTemplate: false, + qualityApproved: false, + rightsApproved: false, + hardwareQualified: false, + modelResourceQualified: false, + }, + }; + return { + receipt, + descriptorBytes, + evidence, + evidenceRoot: root, + retainedFiles, + provenance: { format: 'modiff.input-bound-model-variant-proof.v1', receipt }, + }; +} + +async function verifyLayerCollection(output, refs, layers, read) { + assert.equal(refs.length, layers.length); + assert.equal(output.mediaItems.length, layers.length); + const hashes = output.mediaItems.map(({ mediaHash }) => mediaHash); + assert.ok(hashes.every((hash) => /^sha256:bytes:[a-f0-9]{64}$/u.test(hash))); + // The backend uses Python's default JSON separator for this ordered list. + const serialized = `[${hashes.map((hash) => JSON.stringify(hash)).join(', ')}]`; + assert.equal(output.mediaHash, `sha256:collection:${digest(serialized)}`); + assert.equal(output.mediaCollectionHash, output.mediaHash); + const provenance = output.backendProvenance; + assert.equal(provenance.source, 'backend-record'); + assert.equal(provenance.backendExecutionId, output.taskId); + for (const field of [ + 'clientRunId', + 'runInputHash', + 'workflowTabId', + 'nodeId', + 'fieldKey', + 'attemptIndex', + 'mediaHash', + 'mediaCollectionHash', + 'mediaItems', + ]) + same(provenance[field], output[field]); + assert.equal(provenance.mediaPath, refs[0].backendPath); + const decoded = []; + for (const [index, ref] of refs.entries()) { + const item = output.mediaItems[index]; + const layer = layers[index]; + assert.equal(layer.mode, 'RGBA'); + assert.equal(ref.mediaType, 'image'); + assert.equal(item.index, index); + assert.equal(item.taskId, output.taskId); + assert.equal(item.clientRunId, output.clientRunId); + assert.equal(item.runInputHash, output.runInputHash); + assert.equal(item.attemptIndex, 0); + assert.equal(item.backendPath, ref.backendPath); + assert.equal(item.backendPath, `@data/studio/outputs/${output.id}_item_0${index}.webp`); + assert.equal(item.mediaHash, `sha256:bytes:${ref.file.sha256}`); + assert.equal(item.contentType, 'image/webp'); + const { bytes, file } = read(ref.file); + assert.equal(item.byteSize, bytes.length); + const { hash, width, height } = await decodedMediaHash(file, 'image'); + same([width, height], [layer.width, layer.height], 'Delivered layer geometry differs.'); + same([width, height], [item.width, item.height], 'Saved layer geometry differs.'); + decoded.push({ hash, width, height, encodedSha256: ref.file.sha256 }); + } + return decoded; +} diff --git a/scripts/layer-decomposition-evidence.test.mjs b/scripts/layer-decomposition-evidence.test.mjs new file mode 100644 index 00000000..62d54ebb --- /dev/null +++ b/scripts/layer-decomposition-evidence.test.mjs @@ -0,0 +1,72 @@ +import assert from 'node:assert/strict'; +import { createHash } from 'node:crypto'; +import { mkdtempSync, readFileSync, rmSync, writeFileSync } from 'node:fs'; +import { tmpdir } from 'node:os'; +import { dirname, join, resolve } from 'node:path'; +import test from 'node:test'; +import { fileURLToPath } from 'node:url'; +import { readCanonicalEvidenceFile, readCanonicalWorkflowEvidence } from './release-contract-core.mjs'; + +const clientRoot = fileURLToPath(new URL('..', import.meta.url)); +const backendRoot = resolve(process.env.MODIFF_BACKEND_DIR ?? join(clientRoot, '../MoDiff')); +const fixture = process.env.MODIFF_LAYER_DECOMPOSITION_EVIDENCE; +const workflowId = 'QwenImageLayeredPipeline:layer_decomposition'; + +test( + 'the retained layer run binds the exact source, generation controls and ordered layer stack', + { skip: !fixture }, + async () => { + const args = { clientRoot, backendRoot, workflowId, evidencePath: resolve(fixture) }; + const verified = await readCanonicalWorkflowEvidence(args); + assert.equal(verified.receipt.proofKind, 'real_backend_input_bound_model_variant'); + assert.equal(verified.receipt.observationLimits.orderedLayerStack, true); + assert.equal(verified.receipt.decodedOutput.items.length, 4); + assert.equal(new Set(verified.receipt.decodedOutput.items.map((item) => item.encodedSha256)).size, 4); + const staging = mkdtempSync(join(tmpdir(), 'modiff-layer-evidence-')); + try { + for (const ref of verified.retainedFiles) { + assert.match(ref.path, /^[a-z0-9._-]+$/iu); + writeFileSync(join(staging, ref.path), readCanonicalEvidenceFile(dirname(fixture), ref).bytes); + } + const changedPath = join(staging, 'changed.json'); + for (const [action, mutate, message] of [ + [ + 'LayerDecompose', + (media) => { + media.controls.cfg_normalize = !media.controls.cfg_normalize; + }, + /Layer adapter controls differ/u, + ], + [ + 'Preview', + (media) => { + media.inputs.image.reverse(); + }, + /Layer order changed before export/u, + ], + ]) { + const descriptor = structuredClone(verified.evidence); + const read = (ref) => JSON.parse(readFileSync(join(dirname(fixture), ref.path))); + const output = read(descriptor.outputPackage); + const run = read(descriptor.runDetail); + const fields = output.latestOutput.resolvedExecutionInputs; + mutate(fields.nodes.find((node) => node.action === action).mediaEvidence); + run.outputs[0].resolvedExecutionInputs = fields; + for (const [key, value] of [ + ['outputPackage', output], + ['runDetail', run], + ]) { + const ref = descriptor[key]; + const bytes = Buffer.from(JSON.stringify(value)); + ref.sha256 = createHash('sha256').update(bytes).digest('hex'); + ref.bytes = bytes.length; + writeFileSync(join(staging, ref.path), bytes); + } + writeFileSync(changedPath, JSON.stringify(descriptor)); + await assert.rejects(() => readCanonicalWorkflowEvidence({ ...args, evidencePath: changedPath }), message); + } + } finally { + rmSync(staging, { recursive: true, force: true }); + } + }, +); diff --git a/scripts/release-contract-core.mjs b/scripts/release-contract-core.mjs index f3be0b0b..efc5f87e 100644 --- a/scripts/release-contract-core.mjs +++ b/scripts/release-contract-core.mjs @@ -799,6 +799,13 @@ export async function readCanonicalWorkflowEvidence({ clientRoot, backendRoot, w const evidence = JSON.parse(descriptorBytes.toString('utf8')); assert.equal(evidence.schemaVersion, 1); assert.equal(evidence.workflowId, workflowId); + if ( + workflowId === 'QwenImageLayeredPipeline:layer_decomposition' && + evidence.format === 'modiff.private.native-layer-decomposition.v1' + ) { + const { readLayerDecompositionEvidence } = await import('./layer-decomposition-evidence.mjs'); + return readLayerDecompositionEvidence({ clientRoot, manifest, graph, authoring, artifact, evidencePath }); + } if ( evidence.format === 'modiff.private.speech-to-text-input-bound.v1' && [ diff --git a/scripts/resolved-execution-inputs.test.mjs b/scripts/resolved-execution-inputs.test.mjs index f88ba475..cb595c4c 100644 --- a/scripts/resolved-execution-inputs.test.mjs +++ b/scripts/resolved-execution-inputs.test.mjs @@ -378,6 +378,38 @@ test('Wan motion evidence distinguishes reference, motion, face, background, and } }); +test('layer decomposition evidence retains one input and the ordered output stack', async () => { + const { parseBuiltinMediaEvidence } = await server.ssrLoadModule('/src/studio/builtinMediaEvidence.ts'); + const source = { kind: 'image', sha256: 'a'.repeat(64), byteSize: 4, width: 1, height: 1, mode: 'RGBA' }; + const layers = ['b', 'c', 'd'].map((digit) => ({ ...source, sha256: digit.repeat(64) })); + const capture = { + schemaVersion: 1, + source: 'native-builtin-media-v1', + status: 'complete', + controls: { layers: 3, resolution: 640, cfg_normalize: true, use_en_prompt: false }, + inputs: { image: [source] }, + outputs: { images: layers }, + files: {}, + }; + const scope = 'DiffusersImage.LayerDecompose'; + assert.deepEqual(parseBuiltinMediaEvidence(capture, scope), capture); + for (const mutate of [ + (row) => { + row.outputs.images.pop(); + }, + (row) => { + row.inputs.image.push(source); + }, + (row) => { + row.controls.cfg_normalize = 'true'; + }, + ]) { + const changed = structuredClone(capture); + mutate(changed); + assert.equal(parseBuiltinMediaEvidence(changed, scope), undefined); + } +}); + test('native builtin media metadata survives strict parsing without granting model evidence', async () => { const backend = fileURLToPath(new URL('../../MoDiff/', import.meta.url)); const python = diff --git a/src/studio/builtinMediaEvidence.ts b/src/studio/builtinMediaEvidence.ts index 7efce82a..b4ddbf42 100644 --- a/src/studio/builtinMediaEvidence.ts +++ b/src/studio/builtinMediaEvidence.ts @@ -32,6 +32,12 @@ export const BUILTIN_MEDIA_EVIDENCE_SCOPES: Record< > = { 'Image.Load': { controls: 'alpha_channel', inputs: [], outputs: ['image'], files: ['file'] }, 'Image.Preview': { controls: 'device export', inputs: ['image'], outputs: ['output', 'filtered'], files: [] }, + 'DiffusersImage.LayerDecompose': { + controls: 'layers resolution cfg_normalize use_en_prompt', + inputs: ['image'], + outputs: ['images'], + files: [], + }, 'ImageOperations.ProcessImage': { controls: imageControls, inputs: ['image', 'mask'], @@ -189,6 +195,16 @@ export function parseBuiltinMediaEvidence(value: unknown, scope: string): Builti if (!Array.isArray(video) || video.length !== 1 || video[0]?.kind !== 'video') return undefined; if (!Array.isArray(value.files.file) || value.files.file.length !== 1) return undefined; } + if (scope === 'DiffusersImage.LayerDecompose') { + const { layers, resolution, cfg_normalize, use_en_prompt } = value.controls; + if (!uint(layers) || layers < 1 || layers > 10 || !uint(resolution) || resolution === 0) return undefined; + if (typeof cfg_normalize !== 'boolean' || typeof use_en_prompt !== 'boolean') return undefined; + const source = value.inputs.image; + const stack = value.outputs.images; + if (!Array.isArray(source) || source.length !== 1 || source[0]?.kind !== 'image') return undefined; + if (!Array.isArray(stack) || stack.length !== layers || !stack.every((item) => item.kind === 'image')) + return undefined; + } if (scope === 'DiffusersVideo.Generate') { if (value.controls.mode !== 'character_animate' && value.controls.mode !== 'character_replace') return undefined; if (!keys(value.inputs, declaration.inputs)) return undefined; From 883e6b156e2c7b2db8960ed833a67460612563a8 Mon Sep 17 00:00:00 2001 From: Sourav Das Date: Wed, 25 Nov 2026 05:20:52 +0530 Subject: [PATCH 352/440] Verify saved Hunyuan PAG evidence with stated control limits --- scripts/live-proof-provenance.mjs | 39 ++++++++++++++++++++++-- scripts/prompt-variant-evidence.mjs | 3 ++ scripts/prompt-variant-evidence.test.mjs | 5 +++ 3 files changed, 45 insertions(+), 2 deletions(-) diff --git a/scripts/live-proof-provenance.mjs b/scripts/live-proof-provenance.mjs index 4614137c..e4a0b9a3 100644 --- a/scripts/live-proof-provenance.mjs +++ b/scripts/live-proof-provenance.mjs @@ -2265,6 +2265,35 @@ export const directImagePromptRoutes = [ negative_prompt: '', }, }, + { + format: 'modiff.private.hunyuan-dit-pag-prompt-variant.v1', + workflowId: 'HunyuanDiTPAGPipeline:text_to_image', + modelType: 'HunyuanDiTPAGPipeline', + modelRepo: 'Tencent-Hunyuan/HunyuanDiT-v1.2-Diffusers-Distilled', + modelRevision: 'ba991d1546d8c50936c4c16398ed0a87b9b99fb1', + retainedObservationSource: + 'sha256:backend-source-v1:371fd754663a95b1b06900df9a838042048466464b4bd5cfa7033c1b6eebe0e3', + active: [...plainImageActive, 'negative_prompt', ...pagScalars], + inactive: [...plainImageInactive.filter((key) => !pagScalars.includes(key)), 'max_sequence_length'], + legacyNull: [...plainImageLegacyNull, 'max_sequence_length'], + typedOnly: pagScalars, + platform: /^Linux-/u, + backend: 'rocm', + dtype: 'float16', + offload: 'model_cpu', + deviceMap: 'none', + generation: { + width: 1024, + height: 1024, + num_inference_steps: 25, + guidance_scale: 5, + max_sequence_length: 256, + seed: 42, + negative_prompt: '', + pag_scale: 3, + pag_adaptive_scale: 0, + }, + }, { format: 'modiff.private.omnigen-prompt-variant.v1', workflowId: 'OmniGenPipeline:text_to_image', @@ -2957,7 +2986,11 @@ function imageAccountingExecutionPlan( if (retainedGenerator && row.action === generateAction) { accountingKeys( row.fields, - [...conditional.active, 'executed_task', ...legacyNullFields], + [ + ...conditional.active.filter((key) => !conditional.typedOnly?.includes(key)), + 'executed_task', + ...legacyNullFields, + ], 'Retained adapter controls are incomplete or unexpected.', ); for (const [key, item] of Object.entries(row.fields)) { @@ -3061,7 +3094,9 @@ function imageAccountingExecutionPlan( const fields = (entry) => entry.row.fieldAccounting.fields; const value = (entry, key) => { if (retainedGenerator && entry === generate) - return conditional.active.includes(key) ? entry.row.fields[key].value : entry.node.params[key]?.value; + return conditional.active.includes(key) && !conditional.typedOnly?.includes(key) + ? entry.row.fields[key].value + : entry.node.params[key]?.value; return fields(entry)[key].value; }; const check = (entry, key, disposition, effective, reason) => { diff --git a/scripts/prompt-variant-evidence.mjs b/scripts/prompt-variant-evidence.mjs index 0cae89f1..d7c48d82 100644 --- a/scripts/prompt-variant-evidence.mjs +++ b/scripts/prompt-variant-evidence.mjs @@ -996,6 +996,9 @@ export async function readPromptVariantEvidence({ clientRoot, manifest, graph, a observationLimits: { fullConsumedFieldAccounting: Boolean(accounting && !accounting.retainedGenerator), physicalPlatformQualification: false, + ...(accounting?.retainedGenerator && imageRoute.typedOnly?.length + ? { configuredUnobservedControls: [...imageRoute.typedOnly] } + : {}), ...(sampledCpuMemory ? { memoryMeasurement: 'sampled_worker_rss' } : {}), }, qualificationClaims: { diff --git a/scripts/prompt-variant-evidence.test.mjs b/scripts/prompt-variant-evidence.test.mjs index da8d4e08..448399c6 100644 --- a/scripts/prompt-variant-evidence.test.mjs +++ b/scripts/prompt-variant-evidence.test.mjs @@ -395,6 +395,7 @@ for (const [workflowId, variable, kind, proofKind = 'real_backend_prompt_bound_m ['ChromaPipeline:text_to_image', 'MODIFF_CHROMA_IMAGE_PROMPT_EVIDENCE', 'image'], ['Lumina2Pipeline:text_to_image', 'MODIFF_LUMINA2_SAVED_PROMPT_EVIDENCE', 'image'], ['HunyuanDiTPipeline:text_to_image', 'MODIFF_HUNYUAN_DIT_SAVED_PROMPT_EVIDENCE', 'image'], + ['HunyuanDiTPAGPipeline:text_to_image', 'MODIFF_HUNYUAN_DIT_PAG_SAVED_PROMPT_EVIDENCE', 'image'], ['OmniGenPipeline:text_to_image', 'MODIFF_OMNIGEN_SAVED_PROMPT_EVIDENCE', 'image'], ['SanaSprintPipeline:text_to_image', 'MODIFF_SANA_SPRINT_IMAGE_PROMPT_EVIDENCE', 'image'], ['StableDiffusionXLPAGPipeline:text_to_image', 'MODIFF_SDXL_PAG_PROMPT_EVIDENCE', 'image'], @@ -437,6 +438,9 @@ for (const [workflowId, variable, kind, proofKind = 'real_backend_prompt_bound_m const route = directImagePromptRoutes.find((row) => row.workflowId === workflowId); if (route?.retainedObservationSource || workflowId === 'Wan22Pipeline:text_to_video') { assert.equal(original.receipt.observationLimits.fullConsumedFieldAccounting, false); + if (route?.typedOnly) { + assert.deepEqual(original.receipt.observationLimits.configuredUnobservedControls, route.typedOnly); + } const packagePath = join(temp, evidence.outputPackage.path); const runPath = join(temp, evidence.runDetail.path); const originalPackage = readFileSync(packagePath); @@ -559,6 +563,7 @@ test('Reviewed image prompt receipts keep the exact portable artifact and graph' 'ChromaPipeline:text_to_image', 'Lumina2Pipeline:text_to_image', 'HunyuanDiTPipeline:text_to_image', + 'HunyuanDiTPAGPipeline:text_to_image', 'OmniGenPipeline:text_to_image', 'SanaSprintPipeline:text_to_image', 'StableDiffusionXLPAGPipeline:text_to_image', From 2a22b44c812a5b80576e36776a1252c739f6776c Mon Sep 17 00:00:00 2001 From: Sourav Das Date: Wed, 25 Nov 2026 05:35:18 +0530 Subject: [PATCH 353/440] Keep native Canny and guided inpainting receipts --- scripts/bundle-budget.mjs | 4 ++++ scripts/resolved-execution-inputs.test.mjs | 26 ++++++++++++++++++++++ src/studio/builtinMediaEvidence.ts | 12 ++++++++++ 3 files changed, 42 insertions(+) diff --git a/scripts/bundle-budget.mjs b/scripts/bundle-budget.mjs index 8ae19923..bda8d9a1 100644 --- a/scripts/bundle-budget.mjs +++ b/scripts/bundle-budget.mjs @@ -493,6 +493,8 @@ const SOURCE_LICENSES = new URL('../public/THIRD_PARTY_LICENSES.txt', import.met // 504492/682980/346033 largest/startup/deferred gzip bytes: the reviewed // migration ceilings below still pass with 8/12/304 bytes of headroom. const MAX_STARTUP_CHUNK_GZIP_BYTES = + // Guided inpainting media evidence adds 54 gzip bytes (544463 to 544517). + 54 + // Layer stack evidence adds 127 gzip bytes (544336 to 544463). 127 + // Native guide frame receipts add 300 gzip bytes (544036 to 544336). @@ -790,6 +792,8 @@ const MAX_STARTUP_CHUNK_GZIP_BYTES = // The same build measures 673359 aggregate startup bytes (+45 over the cap). // Keep 19 bytes of headroom; deferred limits and loading boundaries stay fixed. const MAX_STARTUP_GZIP_BYTES = + // The guide receipt scopes add 56 bytes across startup (722946 to 723002). + 56 + // The layer stack evidence checks add 124 bytes across startup (722822 to 722946). 124 + // The guide receipt checks add 302 bytes across startup (722520 to 722822). diff --git a/scripts/resolved-execution-inputs.test.mjs b/scripts/resolved-execution-inputs.test.mjs index cb595c4c..b7cdd7eb 100644 --- a/scripts/resolved-execution-inputs.test.mjs +++ b/scripts/resolved-execution-inputs.test.mjs @@ -410,6 +410,32 @@ test('layer decomposition evidence retains one input and the ordered output stac } }); +test('controlled inpainting evidence preserves the source, mask and derived guide roles', async () => { + const { parseBuiltinMediaEvidence } = await server.ssrLoadModule('/src/studio/builtinMediaEvidence.ts'); + const rgb = { kind: 'image', sha256: 'a'.repeat(64), byteSize: 3, width: 1, height: 1, mode: 'RGB' }; + const mask = { ...rgb, sha256: 'b'.repeat(64), byteSize: 1, mode: 'L' }; + const guide = { ...rgb, sha256: 'c'.repeat(64) }; + const base = { schemaVersion: 1, source: 'native-builtin-media-v1', status: 'complete', files: {} }; + const edges = { + ...base, + controls: { low_threshold: 0.1, high_threshold: 0.7, output_mode: 'RGB', device: 'cpu:0' }, + inputs: { image: [rgb] }, + outputs: { output: [guide] }, + }; + const inpaint = { + ...base, + controls: {}, + inputs: { image: [rgb], mask_image: [mask], control_image: [guide] }, + outputs: { images: [rgb] }, + }; + assert.deepEqual(parseBuiltinMediaEvidence(edges, 'ImageFilters.Canny'), edges); + assert.deepEqual(parseBuiltinMediaEvidence(inpaint, 'DiffusersImage.ControlInpaint'), inpaint); + assert.equal(parseBuiltinMediaEvidence(inpaint, 'DiffusersImage.Inpaint'), undefined); + const invalid = structuredClone(inpaint); + invalid.inputs.background = invalid.inputs.image; + assert.equal(parseBuiltinMediaEvidence(invalid, 'DiffusersImage.ControlInpaint'), undefined); +}); + test('native builtin media metadata survives strict parsing without granting model evidence', async () => { const backend = fileURLToPath(new URL('../../MoDiff/', import.meta.url)); const python = diff --git a/src/studio/builtinMediaEvidence.ts b/src/studio/builtinMediaEvidence.ts index b4ddbf42..6d82fbdd 100644 --- a/src/studio/builtinMediaEvidence.ts +++ b/src/studio/builtinMediaEvidence.ts @@ -38,6 +38,18 @@ export const BUILTIN_MEDIA_EVIDENCE_SCOPES: Record< outputs: ['images'], files: [], }, + 'DiffusersImage.ControlInpaint': { + controls: '', + inputs: ['image', 'mask_image', 'control_image'], + outputs: ['images'], + files: [], + }, + 'ImageFilters.Canny': { + controls: 'low_threshold high_threshold output_mode device', + inputs: ['image'], + outputs: ['output'], + files: [], + }, 'ImageOperations.ProcessImage': { controls: imageControls, inputs: ['image', 'mask'], From f5ad357e8c858f7606cba91e74c4d2e125f5abf9 Mon Sep 17 00:00:00 2001 From: Sourav Das Date: Wed, 25 Nov 2026 05:49:43 +0530 Subject: [PATCH 354/440] Validate guided image repair and retained video recipes --- scripts/control-inpaint-evidence.mjs | 337 ++++++++++++++++++++++ scripts/control-inpaint-evidence.test.mjs | 54 ++++ scripts/prompt-variant-evidence.mjs | 28 +- scripts/prompt-variant-evidence.test.mjs | 9 +- scripts/release-contract-core.mjs | 9 + scripts/wan-first-last-evidence.mjs | 311 ++++++++++++++++++++ scripts/wan-first-last-evidence.test.mjs | 47 +++ 7 files changed, 789 insertions(+), 6 deletions(-) create mode 100644 scripts/control-inpaint-evidence.mjs create mode 100644 scripts/control-inpaint-evidence.test.mjs create mode 100644 scripts/wan-first-last-evidence.mjs create mode 100644 scripts/wan-first-last-evidence.test.mjs diff --git a/scripts/control-inpaint-evidence.mjs b/scripts/control-inpaint-evidence.mjs new file mode 100644 index 00000000..52f1cb9f --- /dev/null +++ b/scripts/control-inpaint-evidence.mjs @@ -0,0 +1,337 @@ +import assert from 'node:assert/strict'; +import { createHash } from 'node:crypto'; +import { readFileSync, realpathSync } from 'node:fs'; +import { dirname } from 'node:path'; +import { + backendContractIdentity, + backendSourceEvidence, + canonicalGraphIdentity, + normalizeBackendRuntime, + selectBackendRuntimeFingerprintEvidence, + selectInstalledModelIdentity, +} from './live-proof-provenance.mjs'; +import { verifyNativeLoadedImage } from './native-image-load-evidence.mjs'; +import { verifyRetainedPngUpload } from './private-image-edit-evidence.mjs'; +import { + validateNativeVariantOutput, + validateNativeVariantRun, + validateUnmodifiedExpertPreparation, +} from './native-variant-run-evidence.mjs'; +import { + canonicalWorkflowAuthoringContract, + exportCanonicalWorkflowGraphs, + readCanonicalEvidenceFile, +} from './release-contract-core.mjs'; +import { decodedMediaHash, technicalMediaErrors } from './template-gallery-harness.mjs'; + +const workflowId = 'StableDiffusionXLControlNetPipeline:control_inpaint'; +const pipelineClass = 'StableDiffusionXLControlNetInpaintPipeline'; +const format = 'modiff.private.native-control-inpaint.v1'; +const roles = ['guide', 'mask', 'source']; +const chain = [ + 'modules.Image.Load', + 'modules.ImageFilters.Canny', + 'modules.DiffusersRuntime.PipelineQuantizationConfigV2', + 'modules.DiffusersRuntime.DiffusersExecutionRecipe', + 'modules.DiffusersImage.LoadPipeline', + 'modules.Image.Load', + 'modules.Image.Load', + 'modules.DiffusersImage.ControlInpaint', + 'modules.Image.Preview', +]; +const sha256 = (bytes) => createHash('sha256').update(bytes).digest('hex'); +const literal = (value) => ({ value, source: 'literal' }); + +function owners(api) { + assert.equal(api.paths.length, 1); + const [path] = api.paths; + assert.deepEqual([...path].sort(), Object.keys(api.nodes).sort()); + assert.deepEqual( + path.map((id) => `${api.nodes[id].module}.${api.nodes[id].action}`), + chain, + ); + const [guide, canny, , , loader, source, mask, sampler, preview] = path; + return { path, guide, canny, loader, source, mask, sampler, preview }; +} + +export function verifyControlInpaintMedia(api, output, inputs, owner = owners(api)) { + const receipt = output.resolvedExecutionInputs; + assert.equal(receipt.schemaVersion, 1); + assert.equal(receipt.source, 'backend-execution'); + assert.equal(receipt.taskId, output.taskId); + assert.equal(receipt.nodeId, owner.preview); + assert.equal(receipt.attemptIndex, 0); + assert.equal(receipt.truncated, false); + assert.deepEqual(receipt.mediaEvidenceStatus, { schemaVersion: 1, truncated: false }); + assert.deepEqual(receipt.unavailableFields, []); + assert.deepEqual(receipt.uncapturedNodeIds, []); + assert.deepEqual(receipt.nodes.map(({ nodeId }) => nodeId).sort(), [...owner.path].sort()); + const record = (id) => { + const row = receipt.nodes.find(({ nodeId }) => nodeId === id); + assert.equal(row.module, api.nodes[id].module); + assert.equal(row.action, api.nodes[id].action); + assert.deepEqual(row.omittedFields, {}); + assert.equal(row.mediaEvidence.status, 'complete'); + return row; + }; + const decoded = Object.fromEntries( + roles.map((role) => { + const id = owner[role]; + const { sourceFile, decodedImage } = verifyNativeLoadedImage( + api.nodes[id], + record(id), + role === 'mask' ? 'L' : 'RGB', + ); + assert.deepEqual(sourceFile, { + sourceValue: inputs[role].sourceValue, + sha256: inputs[role].file.sha256, + byteSize: inputs[role].file.bytes, + }); + return [role, decodedImage]; + }), + ); + const image = (role) => [{ kind: 'image', ...decoded[role] }]; + const canny = record(owner.canny).mediaEvidence; + const settings = api.nodes[owner.canny].params; + const thresholds = [settings.low_threshold.value, settings.high_threshold.value]; + const outputMode = settings.output_mode?.value ?? 'L'; + assert.deepEqual(canny.controls, { + low_threshold: Math.min(...thresholds), + high_threshold: Math.max(...thresholds), + output_mode: outputMode, + device: settings.device.value, + }); + assert.deepEqual(canny.inputs, { image: image('guide') }, 'Canny did not consume the selected guide.'); + assert.equal(canny.outputs.output.length, 1); + assert.equal(canny.outputs.output[0].kind, 'image'); + assert.equal(canny.outputs.output[0].mode, outputMode); + + const sampler = record(owner.sampler); + const params = api.nodes[owner.sampler].params; + for (const field of [ + 'prompt', + 'negative_prompt', + 'output_type', + 'num_inference_steps', + 'width', + 'height', + 'strength', + 'guidance_scale', + 'conditioning_scale', + 'control_guidance_start', + 'control_guidance_end', + 'seed', + ]) { + assert.deepEqual(sampler.fields[field], literal(params[field].value), `Inpaint sampler control differs: ${field}.`); + } + assert.deepEqual(sampler.fields.executed_task, literal('control_inpaint')); + assert.deepEqual( + sampler.mediaEvidence.inputs, + { + image: image('source'), + mask_image: image('mask'), + control_image: canny.outputs.output, + }, + 'Control Inpaint did not consume the selected source, mask and Canny output.', + ); + const composite = sampler.mediaEvidence.outputs.images; + assert.equal(composite.length, 1); + assert.deepEqual( + record(owner.preview).mediaEvidence.inputs, + { image: composite }, + 'Preview received a different image.', + ); + return decoded; +} + +export async function readControlInpaintEvidence({ clientRoot, manifest, graph, authoring, artifact, evidencePath }) { + assert.equal(manifest.id, workflowId); + const target = canonicalWorkflowAuthoringContract(manifest, graph, authoring, artifact); + const descriptorBytes = readFileSync(evidencePath); + const evidence = JSON.parse(descriptorBytes); + assert.equal(evidence.format, format); + assert.equal(evidence.schemaVersion, 1); + assert.equal(evidence.workflowId, workflowId); + const evidenceRoot = realpathSync(dirname(evidencePath)); + const retainedFiles = []; + const read = (ref) => { + const result = readCanonicalEvidenceFile(evidenceRoot, ref, 16 * 1024 * 1024); + retainedFiles.push({ ...ref, absolutePath: result.file }); + return result; + }; + const json = (ref) => JSON.parse(read(ref).bytes); + const creator = json(evidence.creatorPackage); + const outputPackage = json(evidence.outputPackage); + const run = json(evidence.runDetail); + const graphRequest = json(evidence.graphRequest); + const completed = json(evidence.graphCompleted); + const [expected, ...visual] = await exportCanonicalWorkflowGraphs(clientRoot, [ + graph, + creator.graph, + outputPackage.latestOutput.graphSnapshot, + run.workflow_snapshot, + ]); + const canonical = owners(expected); + const actual = owners(graphRequest); + assert.equal(canonicalGraphIdentity(expected).hash, evidence.originalGraphHash); + assert.deepEqual(Object.keys(evidence.inputs).sort(), roles); + for (const role of roles) { + const { sourceValue } = evidence.inputs[role]; + assert.match(sourceValue, /^@data\/images\/[\w-]{1,128}\.png$/u); + const field = expected.nodes[canonical[role]].params.file; + assert.deepEqual(field, { display: 'filebrowser', value: role === 'source' ? [] : '' }); + field.value = [sourceValue]; + } + assert.equal(new Set(roles.map((role) => evidence.inputs[role].file.sha256)).size, roles.length); + const prompt = graphRequest.nodes[actual.sampler].params.prompt.value; + assert.ok(typeof prompt === 'string' && prompt.length > 0 && prompt.length <= 4096 && prompt === prompt.trim()); + assert.ok(!/[\u0000-\u001f\u007f]/u.test(prompt)); + const promptSlot = expected.nodes[canonical.sampler].params.prompt; + assert.deepEqual(promptSlot, { display: 'textarea', value: '' }); + promptSlot.value = prompt; + const identity = canonicalGraphIdentity(expected); + for (const graphSource of [graphRequest, creator.apiGraph, ...visual]) { + assert.equal( + canonicalGraphIdentity(graphSource).hash, + identity.hash, + 'The inpaint graph differs outside its files and prompt.', + ); + } + const { task, output, hints } = validateNativeVariantRun({ + target, + outputNodeId: actual.preview, + displayType: 'image', + creator, + outputPackage, + run, + graphCompleted: completed, + graphRequest, + graphAcknowledgment: json(evidence.graphAcknowledgment), + validatePreparation: (value) => validateUnmodifiedExpertPreparation(value, pipelineClass), + }); + assert.deepEqual(hints.workflowSnapshot.studioForm, output.formSnapshot); + const decodedInputs = verifyControlInpaintMedia(graphRequest, output, evidence.inputs, actual); + for (const role of roles) { + const input = evidence.inputs[role]; + verifyRetainedPngUpload(json(input.upload), input, decodedInputs[role], read(input.file).bytes); + } + + const loader = graphRequest.nodes[actual.loader].params; + const base = { repoId: loader.model_id.value.value, revision: loader.revision.value }; + const control = { repoId: loader.conditioning_model_id.value.value, revision: loader.conditioning_revision.value }; + assert.equal(loader.pipeline_class.value, pipelineClass); + assert.deepEqual(target.modelSet, [control, base]); + const { controlledArtifacts, loaderContract, ...completionHints } = completed.runtimeHints; + assert.deepEqual(completionHints, hints); + assert.deepEqual(loaderContract, ['modules.DiffusersImage.LoadPipeline']); + assert.equal(controlledArtifacts.length, 1); + const [conditioning] = controlledArtifacts; + assert.deepEqual(conditioning.artifact, { source: 'hub', repository: control.repoId, revision: control.revision }); + assert.equal(conditioning.componentClass, 'ControlNetModel'); + assert.equal(conditioning.pipelineClass, pipelineClass); + assert.equal(conditioning.safeSerializationRequired, true); + const runtime = selectBackendRuntimeFingerprintEvidence([task.runtimeFingerprint]); + assert.equal(evidence.modelObservations.length, 2); + for (const [expectedModel, reference] of [ + [base, evidence.modelObservations[0]], + [control, evidence.modelObservations[1]], + ]) { + const observation = json(reference); + assert.equal(observation.error, false); + assert.equal(observation.runtimeFingerprint, runtime.fingerprint); + assert.equal(observation.models.length, 1); + assert.equal(observation.models[0].complete, true); + assert.equal(observation.models[0].repairRequired, false); + const verified = selectInstalledModelIdentity(observation, expectedModel.repoId); + assert.equal(verified?.selectedRevision, expectedModel.revision); + } + const source = backendSourceEvidence({ + before: json(evidence.backendSourceBefore).identity, + after: json(evidence.backendSourceAfter).identity, + runtimeFingerprint: task.runtimeFingerprint, + }); + assert.deepEqual(source.blockers, []); + const backendContract = backendContractIdentity(json(evidence.nodes), identity.canonicalGraph); + assert.ok(backendContract.fingerprint); + const measurement = task.runtimeMeasurement; + assert.match(runtime.packages.platform, /^Windows-/u); + assert.equal(measurement.backend, 'cuda'); + assert.equal(measurement.device, 'cuda:0'); + assert.equal(measurement.peakMeasurementVersion, 2); + assert.ok(measurement.elapsedSeconds > 0 && measurement.elapsedSeconds <= 7200); + assert.ok(measurement.peakAllocatedBytes > 0 && measurement.peakReservedBytes >= measurement.peakAllocatedBytes); + assert.equal(evidence.outputs.length, 1); + const [outputRef] = evidence.outputs; + const media = read(outputRef.file); + const item = validateNativeVariantOutput({ + output, + outputRef, + task, + bytes: media.bytes, + displayType: 'image', + contentType: 'image/webp', + }); + const decoded = await decodedMediaHash(media.file, 'image'); + assert.deepEqual(technicalMediaErrors(decoded, { width: item.width, height: item.height }), []); + for (const ref of retainedFiles) readCanonicalEvidenceFile(evidenceRoot, ref, 16 * 1024 * 1024); + assert.ok(readFileSync(evidencePath).equals(descriptorBytes)); + const receipt = { + schemaVersion: 1, + format: 'modiff.canonical-workflow-run-receipt.v1', + proofKind: 'real_backend_input_bound_model_variant', + ...target, + graphHash: identity.hash, + capturedAt: new Date(task.completed_at * 1000).toISOString(), + taskId: task.task_id, + outputId: output.id, + runtimeFingerprint: normalizeBackendRuntime(runtime).lockFingerprint, + backendSourceFingerprint: source.identity.fingerprint, + backendContractFingerprint: backendContract.fingerprint, + resourceCandidateId: null, + outputHash: item.mediaHash, + executionDurationSeconds: measurement.elapsedSeconds, + peakMemoryBytes: measurement.peakAllocatedBytes, + canonicalDefaultsExecuted: false, + inputBinding: { + nodeId: actual.source, + field: 'file', + sha256: evidence.inputs.source.file.sha256, + decodedImage: decodedInputs.source, + }, + maskBinding: { + nodeId: actual.mask, + field: 'file', + sha256: evidence.inputs.mask.file.sha256, + decodedImage: decodedInputs.mask, + }, + guideBinding: { + nodeId: actual.guide, + field: 'file', + sha256: evidence.inputs.guide.file.sha256, + decodedImage: decodedInputs.guide, + }, + conditioningModel: control, + promptBinding: { nodeId: actual.sampler, field: 'prompt', sha256: sha256(prompt) }, + decodedOutput: { hash: decoded.hash, width: decoded.width, height: decoded.height }, + observationLimits: { + fullConsumedFieldAccounting: false, + nativeCannyAndComposite: true, + physicalPlatformQualification: false, + }, + qualificationClaims: { + publicTemplate: false, + qualityApproved: false, + rightsApproved: false, + hardwareQualified: false, + modelResourceQualified: false, + }, + }; + return { + receipt, + descriptorBytes, + evidence, + evidenceRoot, + retainedFiles, + provenance: { format: 'modiff.input-bound-model-variant-proof.v1', receipt }, + }; +} diff --git a/scripts/control-inpaint-evidence.test.mjs b/scripts/control-inpaint-evidence.test.mjs new file mode 100644 index 00000000..2a99d3bb --- /dev/null +++ b/scripts/control-inpaint-evidence.test.mjs @@ -0,0 +1,54 @@ +import assert from 'node:assert/strict'; +import { dirname, join, resolve } from 'node:path'; +import test from 'node:test'; +import { fileURLToPath } from 'node:url'; +import { verifyControlInpaintMedia } from './control-inpaint-evidence.mjs'; +import { readCanonicalEvidenceFile, readCanonicalWorkflowEvidence } from './release-contract-core.mjs'; + +const clientRoot = fileURLToPath(new URL('..', import.meta.url)); +const backendRoot = resolve(process.env.MODIFF_BACKEND_DIR ?? join(clientRoot, '../MoDiff')); +const fixture = process.env.MODIFF_CONTROL_INPAINT_EVIDENCE; +const workflowId = 'StableDiffusionXLControlNetPipeline:control_inpaint'; + +test( + 'the retained controlled inpaint binds the three distinct image roles and the actual edge map', + { + skip: !fixture, + }, + async () => { + const { receipt, evidence } = await readCanonicalWorkflowEvidence({ + clientRoot, + backendRoot, + workflowId, + evidencePath: resolve(fixture), + }); + assert.equal(receipt.proofKind, 'real_backend_input_bound_model_variant'); + assert.equal(receipt.observationLimits.nativeCannyAndComposite, true); + const inputHashes = [receipt.inputBinding, receipt.maskBinding, receipt.guideBinding].map((input) => input.sha256); + assert.equal(new Set(inputHashes).size, 3); + assert.equal(receipt.modelSet.length, 2); + assert.equal(receipt.conditioningModel.repoId, 'diffusers/controlnet-canny-sdxl-1.0'); + const read = (reference) => JSON.parse(readCanonicalEvidenceFile(dirname(fixture), reference).bytes); + const graph = read(evidence.graphRequest); + const output = read(evidence.outputPackage).latestOutput; + const changed = structuredClone(output); + const row = (value, action) => value.resolvedExecutionInputs.nodes.find((item) => item.action === action); + const sampler = row(changed, 'ControlInpaint'); + sampler.mediaEvidence.inputs.control_image = sampler.mediaEvidence.inputs.image; + assert.throws(() => verifyControlInpaintMedia(graph, changed, evidence.inputs), /did not consume the selected/u); + + const changedPreview = structuredClone(output); + row(changedPreview, 'Preview').mediaEvidence.inputs.image = row( + changedPreview, + 'Canny', + ).mediaEvidence.outputs.output; + assert.throws( + () => verifyControlInpaintMedia(graph, changedPreview, evidence.inputs), + /Preview received a different image/u, + ); + + const changedSettings = structuredClone(output); + row(changedSettings, 'ControlInpaint').fields.conditioning_scale.value = 0; + assert.throws(() => verifyControlInpaintMedia(graph, changedSettings, evidence.inputs), /conditioning_scale/u); + }, +); diff --git a/scripts/prompt-variant-evidence.mjs b/scripts/prompt-variant-evidence.mjs index d7c48d82..f5357e75 100644 --- a/scripts/prompt-variant-evidence.mjs +++ b/scripts/prompt-variant-evidence.mjs @@ -212,6 +212,17 @@ const wanA14BRoute = { ], }; +const cogVideoRoute = { + ...wanA14BRoute, + format: 'modiff.private.cogvideox-video-prompt-variant.v1', + workflowId: 'CogVideoXPipeline:text_to_video', + modelType: 'CogVideoXPipeline', + previousExpertFamily: null, + modelRepo: 'zai-org/CogVideoX-2b', + modelRevision: '1137dacfc2c9c012bed6a0793f4ecf2ca8e7ba01', + retainedVaeTiling: true, +}; + const imagePromptRoute = { outputKind: 'image', displayType: 'image', @@ -266,6 +277,11 @@ export function bindPromptVariant(profile, original, created, output, baselineHa graphEnvelope(output, true); const expected = structuredClone(original); const expectedOwners = owners(profile, expected); + if (profile.retainedVaeTiling) { + const tiling = expectedOwners.recipe.node.params.vae_tiling; + same(tiling, { value: false }, 'CogVideoX tiling default changed.'); + tiling.value = true; + } if (profile.executionDevice === 'cpu:0') { const cpuChanges = [ [expectedOwners.loader, 'auto_offload', true, false], @@ -687,7 +703,7 @@ export function validatePromptVariantVideo(decoded, item, bound) { return validateNativeVideoDelivery(decoded, item, { width: frameSize, height: frameSize, fps, frames: 20 }); } -function validateNativeVideoDelivery(decoded, item, { width, height, fps, frames }) { +export function validateNativeVideoDelivery(decoded, item, { width, height, fps, frames }) { const native = item.mediaMetadata; assert.equal(native.source, 'encoded-file'); assert.equal(native.width, width); @@ -729,8 +745,10 @@ export async function readPromptVariantEvidence({ clientRoot, manifest, graph, a videoRoute, audioRoute, wanA14BRoute, + cogVideoRoute, ].find(({ workflowId }) => workflowId === target.workflowId); assert.ok(profile, 'Prompt variant route is not reviewed.'); + const generatedVideo = profile === wanA14BRoute || profile === cogVideoRoute; const requiresOriginalRequest = imageRoute !== undefined || profile === janusTextRoute || @@ -738,7 +756,7 @@ export async function readPromptVariantEvidence({ clientRoot, manifest, graph, a profile === janusCaptionRoute || profile === smolVlmCaptionRoute || profile === audioRoute || - profile === wanA14BRoute; + generatedVideo; const sampledCpuMemory = profile.executionDevice === 'cpu:0'; same(target.modelSet, [{ repoId: profile.modelRepo, revision: profile.modelRevision }]); assert.equal(target.outputPlan.minimumAssetCount, 1); @@ -826,7 +844,7 @@ export async function readPromptVariantEvidence({ clientRoot, manifest, graph, a graphAcknowledgment: json(evidence.graphAcknowledgment), } : {}), - ...(imageRoute || profile === wanA14BRoute + ...(imageRoute || generatedVideo ? { validatePreparation: (preparation) => validateImagePromptPreparation(preparation, profile) } : {}), ...(profile === videoRoute || profile === audioRoute @@ -932,10 +950,10 @@ export async function readPromptVariantEvidence({ clientRoot, manifest, graph, a decodedOutput = validateJanusPromptVariantText(media.bytes, item, bound, runtime, inputBinding?.decodedImage); } else if (profile === smolVlmCaptionRoute) { decodedOutput = validateSmolVlmCaption(media.bytes, item, bound, runtime, inputBinding.decodedImage); - } else if (profile === videoRoute || profile === wanA14BRoute) { + } else if (profile === videoRoute || generatedVideo) { const { decodedMediaHash } = await import('./template-gallery-harness.mjs'); const decoded = await decodedMediaHash(media.file, 'video'); - if (profile === wanA14BRoute) { + if (generatedVideo) { const { width, height, num_frames } = bound.generator.node.params; decodedOutput = validateNativeVideoDelivery(decoded, item, { width: width.value, diff --git a/scripts/prompt-variant-evidence.test.mjs b/scripts/prompt-variant-evidence.test.mjs index 448399c6..c5eb1ae2 100644 --- a/scripts/prompt-variant-evidence.test.mjs +++ b/scripts/prompt-variant-evidence.test.mjs @@ -385,6 +385,7 @@ for (const [workflowId, variable, kind, proofKind = 'real_backend_prompt_bound_m ['HuggingFaceTextGenerationModel:text_generation', 'MODIFF_SMOLLM2_PROMPT_EVIDENCE', 'json'], ['ShapEPipeline:text_to_3d', 'MODIFF_SHAPE_PROMPT_EVIDENCE', 'video'], ['Wan22Pipeline:text_to_video', 'MODIFF_WAN_A14B_VIDEO_PROMPT_EVIDENCE', 'video'], + ['CogVideoXPipeline:text_to_video', 'MODIFF_COGVIDEOX_VIDEO_PROMPT_EVIDENCE', 'video'], ['LongCatAudioDiTPipeline:text_to_audio', 'MODIFF_LONGCAT_AUDIO_PROMPT_EVIDENCE', 'audio'], ['CogView3PlusPipeline:text_to_image', 'MODIFF_COGVIEW3_PROMPT_EVIDENCE', 'image'], ['StableDiffusionXLTurboPipeline:text_to_image', 'MODIFF_SDXL_TURBO_PROMPT_EVIDENCE', 'image'], @@ -436,7 +437,8 @@ for (const [workflowId, variable, kind, proofKind = 'real_backend_prompt_bound_m const changedPath = join(temp, 'evidence.json'); const evidence = JSON.parse(original.descriptorBytes); const route = directImagePromptRoutes.find((row) => row.workflowId === workflowId); - if (route?.retainedObservationSource || workflowId === 'Wan22Pipeline:text_to_video') { + const cogVideo = workflowId === 'CogVideoXPipeline:text_to_video'; + if (route?.retainedObservationSource || workflowId === 'Wan22Pipeline:text_to_video' || cogVideo) { assert.equal(original.receipt.observationLimits.fullConsumedFieldAccounting, false); if (route?.typedOnly) { assert.deepEqual(original.receipt.observationLimits.configuredUnobservedControls, route.typedOnly); @@ -453,6 +455,11 @@ for (const [workflowId, variable, kind, proofKind = 'real_backend_prompt_bound_m assert.equal(sampler.fieldAccounting, undefined); sampler.fields.num_inference_steps.value += 1; expectedFailure = /Retained adapter control differs: num_inference_steps/u; + } else if (cogVideo) { + const { fields } = inputs.nodes.find((node) => node.action === 'DiffusersExecutionRecipe'); + assert.equal(fields.vae_tiling.value, true); + fields.vae_tiling.value = false; + expectedFailure = /Actual consumed fields differ for DiffusersExecutionRecipe/u; } else { assert.equal(sampler.fields.secondary_guidance_scale.value, 3.5); sampler.fields.secondary_guidance_scale.value = 0; diff --git a/scripts/release-contract-core.mjs b/scripts/release-contract-core.mjs index efc5f87e..21d91941 100644 --- a/scripts/release-contract-core.mjs +++ b/scripts/release-contract-core.mjs @@ -870,6 +870,7 @@ export async function readCanonicalWorkflowEvidence({ clientRoot, backendRoot, w 'modiff.private.shap-e-prompt-variant.v1', 'modiff.private.longcat-audio-prompt-variant.v1', 'modiff.private.wan-a14b-video-prompt-variant.v1', + 'modiff.private.cogvideox-video-prompt-variant.v1', ].includes(evidence.format) || directImagePromptRoutes.some(({ format }) => format === evidence.format) ) { @@ -883,6 +884,14 @@ export async function readCanonicalWorkflowEvidence({ clientRoot, backendRoot, w evidencePath, }); } + if (evidence.format === 'modiff.private.native-control-inpaint.v1') { + const { readControlInpaintEvidence } = await import('./control-inpaint-evidence.mjs'); + return readControlInpaintEvidence({ clientRoot, manifest, graph, authoring, artifact, evidencePath }); + } + if (evidence.format === 'modiff.private.wan-first-last-frame-variant.v1') { + const { readWanFirstLastEvidence } = await import('./wan-first-last-evidence.mjs'); + return readWanFirstLastEvidence({ clientRoot, manifest, graph, authoring, artifact, evidencePath }); + } const captureFormat = { 'DDPMPipeline:unconditional_image': 'modiff.private.ddpm-attention-variant.v1', 'ConsistencyModelPipeline:unconditional_image': 'modiff.private.consistency-attention-variant.v1', diff --git a/scripts/wan-first-last-evidence.mjs b/scripts/wan-first-last-evidence.mjs new file mode 100644 index 00000000..0811fc51 --- /dev/null +++ b/scripts/wan-first-last-evidence.mjs @@ -0,0 +1,311 @@ +import assert from 'node:assert/strict'; +import { createHash } from 'node:crypto'; +import { readFileSync, realpathSync } from 'node:fs'; +import { dirname } from 'node:path'; +import { + backendContractIdentity, + backendSourceEvidence, + canonicalGraphIdentity, + normalizeBackendRuntime, + selectBackendRuntimeFingerprintEvidence, + selectInstalledModelIdentity, +} from './live-proof-provenance.mjs'; +import { + validateNativeVariantOutput, + validateNativeVariantRun, + validateUnmodifiedExpertPreparation, +} from './native-variant-run-evidence.mjs'; +import { verifyRetainedPngUpload } from './private-image-edit-evidence.mjs'; +import { validateNativeVideoDelivery } from './prompt-variant-evidence.mjs'; +import { + canonicalWorkflowAuthoringContract, + exportCanonicalWorkflowGraphs, + readCanonicalEvidenceFile, +} from './release-contract-core.mjs'; +import { decodedMediaHash } from './template-gallery-harness.mjs'; + +const modelType = 'WanImage2VideoModularPipeline'; +const workflowId = `${modelType}:image_to_video`; +const repoId = 'Wan-AI/Wan2.1-FLF2V-14B-720P-diffusers'; +const revision = '17c30769b1e0b5dcaa1799b117bf20a9c31f59d7'; +const correctedSource = 'sha256:backend-source-v1:b29a5b0d317aaa781ae2a5205b46b518eea5a3d68a214eb0968dba4ac0660af7'; +const format = 'modiff.private.wan-first-last-frame-variant.v1'; +const digest = (value) => createHash('sha256').update(value).digest('hex'); +const literal = (value) => ({ value, source: 'literal' }); +const loaderDefaults = { + weight_loading_mode: 'cpu', + attention_backend: 'inherit', + vae_slicing: null, + vae_tiling: null, +}; +const stages = [ + ['first', 'Image.Load'], + ['last', 'Image.Load'], + [ + 'loader', + 'ModularDiffusers.ModelsLoader', + 'model_type repo_id revision dtype device auto_offload offload_mode quant_config weight_loading_mode attention_backend vae_slicing vae_tiling', + ], + ['embed', 'ModularDiffusers.ImageEmbeddings', 'height width'], + ['encode', 'ModularDiffusers.ImageEncode', 'height num_frames seed width'], + ['prompt', 'ModularDiffusers.EncodePrompt', 'prompt negative_prompt'], + ['denoise', 'ModularDiffusers.Denoise', 'guidance_scale height num_frames num_inference_steps seed width'], + ['decode', 'ModularDiffusers.DecodeLatents', 'output_type'], + ['export', 'Video.Export', 'fps'], +]; +function owners(api) { + assert.equal(api.paths.length, 1); + const [path] = api.paths; + assert.deepEqual([...path].sort(), Object.keys(api.nodes).sort()); + assert.equal(path.length, stages.length); + return Object.fromEntries( + stages.map(([role, action, fields], index) => { + const id = path[index]; + const node = api.nodes[id]; + assert.equal(`${node.module}.${node.action}`, `modules.${action}`); + return [role, { id, node, fields }]; + }), + ); +} + +export function verifyFirstLastFields(output, api, inputs) { + const actual = owners(api); + const receipt = output.resolvedExecutionInputs; + assert.equal(receipt.schemaVersion, 1); + assert.equal(receipt.source, 'backend-execution'); + assert.equal(receipt.taskId, output.taskId); + assert.equal(receipt.nodeId, actual.export.id); + assert.equal(receipt.attemptIndex, 0); + assert.equal(receipt.truncated, false); + assert.deepEqual(receipt.uncapturedNodeIds, []); + assert.deepEqual(receipt.unavailableFields, []); + assert.deepEqual(receipt.ambiguousFields, ['imageSourceHashes']); + assert.deepEqual(receipt.nodes.map(({ nodeId }) => nodeId).sort(), [...api.paths[0]].sort()); + for (const [role, { id, node, fields }] of Object.entries(actual)) { + const observed = receipt.nodes.find(({ nodeId }) => id === nodeId); + assert.equal(observed.module, node.module); + assert.equal(observed.action, node.action); + assert.deepEqual(observed.omittedFields, {}); + if (fields) { + const settings = Object.fromEntries( + fields.split(' ').map((key) => { + const field = + node.params[key] ?? + (role === 'loader' && Object.hasOwn(loaderDefaults, key) ? { value: loaderDefaults[key] } : undefined); + assert.ok(field, `No literal for ${role}.${key}.`); + assert.equal(field.sourceId, undefined); + if (role === 'loader' && key === 'quant_config') { + assert.deepEqual(field, { display: 'input' }); + return [key, literal(null)]; + } + return [key, literal(key === 'repo_id' ? field.value.value : field.value)]; + }), + ); + assert.deepEqual(observed.fields, settings, `Observed ${role} controls differ.`); + continue; + } + const input = inputs[role]; + assert.deepEqual(node.params.file, { display: 'filebrowser', value: [input.sourceValue] }); + assert.deepEqual( + observed.fields, + { + alpha_channel: literal('ignore'), + source_hashes: literal([input.file.sha256]), + source_widths: literal([input.geometry.width]), + source_heights: literal([input.geometry.height]), + source_modes: literal(['RGB']), + }, + `Observed ${role} frame differs.`, + ); + for (const processor of [actual.embed, actual.encode]) { + assert.deepEqual(processor.node.params[role === 'first' ? 'image' : 'last_image'], { + display: 'input', + sourceId: id, + sourceKey: 'image', + }); + } + } +} + +export async function readWanFirstLastEvidence({ clientRoot, manifest, graph, authoring, artifact, evidencePath }) { + assert.equal(manifest.id, workflowId); + const target = canonicalWorkflowAuthoringContract(manifest, graph, authoring, artifact); + assert.deepEqual(target.modelSet, [{ repoId, revision }]); + const descriptorBytes = readFileSync(evidencePath); + const evidence = JSON.parse(descriptorBytes); + assert.equal(evidence.format, format); + assert.equal(evidence.schemaVersion, 1); + assert.equal(evidence.workflowId, workflowId); + const evidenceRoot = realpathSync(dirname(evidencePath)); + const retainedFiles = []; + const read = (ref) => { + const result = readCanonicalEvidenceFile(evidenceRoot, ref, 16 * 1024 * 1024); + retainedFiles.push({ ...ref, absolutePath: result.file }); + return result; + }; + const json = (ref) => JSON.parse(read(ref).bytes); + const creator = json(evidence.creatorPackage); + const outputPackage = json(evidence.outputPackage); + const run = json(evidence.runDetail); + const graphRequest = json(evidence.graphRequest); + const completion = json(evidence.graphCompleted); + const [expected, ...visual] = await exportCanonicalWorkflowGraphs(clientRoot, [ + graph, + creator.graph, + outputPackage.latestOutput.graphSnapshot, + run.workflow_snapshot, + ]); + assert.equal(canonicalGraphIdentity(expected).hash, evidence.originalGraphHash); + const canonical = owners(expected); + const actual = owners(graphRequest); + const [first, last] = evidence.inputs; + assert.equal(evidence.inputs.length, 2); + assert.notEqual(first.file.sha256, last.file.sha256); + const inputs = { first, last }; + for (const [role, input] of Object.entries(inputs)) { + assert.match(input.sourceValue, /^@data\/images\/[\w-]{1,128}\.png$/u); + const field = canonical[role].node.params.file; + assert.deepEqual(field, { display: 'filebrowser', value: role === 'first' ? [] : '' }); + field.value = [input.sourceValue]; + } + const prompts = {}; + for (const field of ['prompt', 'negative_prompt']) { + const value = actual.prompt.node.params[field].value; + assert.ok(typeof value === 'string' && value.length > 0 && value.length <= 4096 && value === value.trim()); + assert.ok(!/[\u0000-\u001f\u007f]/u.test(value)); + assert.deepEqual(canonical.prompt.node.params[field], { value: '', display: 'textarea' }); + canonical.prompt.node.params[field].value = value; + prompts[field] = digest(value); + } + assert.deepEqual(canonical.denoise.node.params.guidance_scale, { display: 'slider', value: 3 }); + canonical.denoise.node.params.guidance_scale.value = 5.5; + const identity = canonicalGraphIdentity(expected); + for (const value of [graphRequest, creator.apiGraph, ...visual]) { + assert.equal( + canonicalGraphIdentity(value).hash, + identity.hash, + 'The supplied frame recipe differs from the reviewed variant.', + ); + } + const { task, output, hints } = validateNativeVariantRun({ + // This archived form used the older task label. The graph and authoring + // contract above verify the canonical two-frame operation independently. + target: { ...target, task: 'single_image_to_video' }, + outputNodeId: actual.export.id, + displayType: 'video', + creator, + outputPackage, + run, + graphCompleted: completion, + graphRequest, + graphAcknowledgment: json(evidence.graphAcknowledgment), + validatePreparation: (value) => validateUnmodifiedExpertPreparation(value, modelType), + }); + assert.deepEqual(hints.workflowSnapshot.studioForm, output.formSnapshot); + assert.deepEqual(completion.runtimeHints, { + ...hints, + loaderContract: ['modules.ModularDiffusers.ModelsLoader'], + controlledArtifacts: [], + }); + const geometry = { width: actual.denoise.node.params.width.value, height: actual.denoise.node.params.height.value }; + for (const input of Object.values(inputs)) { + const { bytes, file } = read(input.file); + const decoded = await decodedMediaHash(file, 'image'); + assert.deepEqual({ width: decoded.width, height: decoded.height }, geometry); + verifyRetainedPngUpload(json(input.upload), input, geometry, bytes); + input.geometry = geometry; + } + verifyFirstLastFields(output, graphRequest, inputs); + const backend = backendSourceEvidence({ + before: json(evidence.backendSourceBefore).identity, + after: json(evidence.backendSourceAfter).identity, + runtimeFingerprint: task.runtimeFingerprint, + }); + assert.deepEqual(backend.blockers, []); + assert.equal(backend.identity.fingerprint, correctedSource); + const backendContract = backendContractIdentity(json(evidence.nodes), identity.canonicalGraph); + assert.ok(backendContract.fingerprint); + const runtime = selectBackendRuntimeFingerprintEvidence([task.runtimeFingerprint]); + assert.equal(evidence.modelObservations.length, 1); + const observation = json(evidence.modelObservations[0]); + assert.equal(observation.error, false); + assert.equal(observation.runtimeFingerprint, runtime.fingerprint); + assert.equal(observation.models.length, 1); + assert.equal(observation.models[0].complete, true); + assert.equal(observation.models[0].repairRequired, false); + assert.equal(selectInstalledModelIdentity(observation, repoId)?.selectedRevision, revision); + const measurement = task.runtimeMeasurement; + assert.match(runtime.packages.platform, /^Linux-/u); + assert.equal(measurement.backend, 'rocm'); + assert.equal(measurement.device, 'cuda:0'); + assert.equal(measurement.peakMeasurementVersion, 2); + assert.ok(measurement.elapsedSeconds > 0 && measurement.elapsedSeconds <= 7200); + assert.ok(measurement.peakAllocatedBytes > 0 && measurement.peakReservedBytes >= measurement.peakAllocatedBytes); + assert.equal(evidence.outputs.length, 1); + const [outputRef] = evidence.outputs; + const media = read(outputRef.file); + const item = validateNativeVariantOutput({ + output, + outputRef, + task, + bytes: media.bytes, + displayType: 'video', + contentType: 'video/mp4', + }); + const decodedOutput = validateNativeVideoDelivery(await decodedMediaHash(media.file, 'video'), item, { + ...geometry, + frames: actual.denoise.node.params.num_frames.value, + fps: actual.export.node.params.fps.value, + }); + for (const ref of retainedFiles) readCanonicalEvidenceFile(evidenceRoot, ref, 16 * 1024 * 1024); + assert.ok(readFileSync(evidencePath).equals(descriptorBytes)); + const frameBinding = (role) => ({ + nodeId: actual[role].id, + field: 'file', + sha256: inputs[role].file.sha256, + ...geometry, + }); + const receipt = { + schemaVersion: 1, + format: 'modiff.canonical-workflow-run-receipt.v1', + proofKind: 'real_backend_input_bound_model_variant', + ...target, + graphHash: identity.hash, + taskId: task.task_id, + outputId: output.id, + capturedAt: new Date(task.completed_at * 1000).toISOString(), + runtimeFingerprint: normalizeBackendRuntime(runtime).lockFingerprint, + backendSourceFingerprint: backend.identity.fingerprint, + backendContractFingerprint: backendContract.fingerprint, + resourceCandidateId: null, + outputHash: item.mediaHash, + executionDurationSeconds: measurement.elapsedSeconds, + peakMemoryBytes: measurement.peakAllocatedBytes, + canonicalDefaultsExecuted: false, + inputBinding: frameBinding('first'), + lastFrameBinding: frameBinding('last'), + promptBinding: { nodeId: actual.prompt.id, field: 'prompt', sha256: prompts.prompt }, + negativePromptBinding: { nodeId: actual.prompt.id, field: 'negative_prompt', sha256: prompts.negative_prompt }, + decodedOutput, + observationLimits: { + fullConsumedFieldAccounting: false, + independentEncoderPixelSnapshots: false, + physicalPlatformQualification: false, + }, + qualificationClaims: { + publicTemplate: false, + qualityApproved: false, + rightsApproved: false, + hardwareQualified: false, + modelResourceQualified: false, + }, + }; + return { + receipt, + descriptorBytes, + evidence, + evidenceRoot, + retainedFiles, + provenance: { format: 'modiff.input-bound-model-variant-proof.v1', receipt }, + }; +} diff --git a/scripts/wan-first-last-evidence.test.mjs b/scripts/wan-first-last-evidence.test.mjs new file mode 100644 index 00000000..422ca086 --- /dev/null +++ b/scripts/wan-first-last-evidence.test.mjs @@ -0,0 +1,47 @@ +import assert from 'node:assert/strict'; +import { dirname, join, resolve } from 'node:path'; +import test from 'node:test'; +import { fileURLToPath } from 'node:url'; +import { readCanonicalEvidenceFile, readCanonicalWorkflowEvidence } from './release-contract-core.mjs'; +import { verifyFirstLastFields } from './wan-first-last-evidence.mjs'; + +const clientRoot = fileURLToPath(new URL('..', import.meta.url)); +const backendRoot = resolve(process.env.MODIFF_BACKEND_DIR ?? join(clientRoot, '../MoDiff')); +const fixture = process.env.MODIFF_WAN_FIRST_LAST_EVIDENCE; +const workflowId = 'WanImage2VideoModularPipeline:image_to_video'; + +test( + 'the corrected Wan save retains both frame roles and the original encoder and sampler settings', + { + skip: !fixture, + }, + async () => { + const { receipt, evidence } = await readCanonicalWorkflowEvidence({ + clientRoot, + backendRoot, + workflowId, + evidencePath: resolve(fixture), + }); + assert.equal(receipt.decodedOutput.frames, 81); + assert.equal(receipt.decodedOutput.fps, 24); + assert.equal(receipt.observationLimits.independentEncoderPixelSnapshots, false); + const read = (reference) => JSON.parse(readCanonicalEvidenceFile(dirname(fixture), reference).bytes); + const graph = read(evidence.graphRequest); + const output = read(evidence.outputPackage).latestOutput; + const [first, last] = evidence.inputs; + const geometry = { width: receipt.decodedOutput.width, height: receipt.decodedOutput.height }; + const inputs = { first: { ...first, geometry }, last: { ...last, geometry } }; + verifyFirstLastFields(output, graph, inputs); + const exchanged = structuredClone(output); + const loads = exchanged.resolvedExecutionInputs.nodes.filter((node) => node.action === 'Load'); + [loads[0].fields.source_hashes, loads[1].fields.source_hashes] = [ + loads[1].fields.source_hashes, + loads[0].fields.source_hashes, + ]; + assert.throws(() => verifyFirstLastFields(exchanged, graph, inputs), /Observed first frame differs/u); + const rewired = structuredClone(graph); + const encoder = Object.values(rewired.nodes).find((node) => node.action === 'ImageEncode'); + encoder.params.last_image.sourceId = receipt.inputBinding.nodeId; + assert.throws(() => verifyFirstLastFields(output, rewired, inputs), /sourceId/u); + }, +); From 0074ce8cd93630ab6e906c62745509e64d9162d2 Mon Sep 17 00:00:00 2001 From: Sourav Das Date: Wed, 25 Nov 2026 06:09:54 +0530 Subject: [PATCH 355/440] Recover saved image and video recipes and verify AudioLDM2 --- scripts/private-image-edit-evidence.mjs | 196 +++++++++++++++++-- scripts/private-image-edit-evidence.test.mjs | 42 ++++ scripts/prompt-variant-evidence.mjs | 136 +++++++++++-- scripts/prompt-variant-evidence.test.mjs | 22 ++- scripts/release-contract-core.mjs | 3 + 5 files changed, 359 insertions(+), 40 deletions(-) diff --git a/scripts/private-image-edit-evidence.mjs b/scripts/private-image-edit-evidence.mjs index cd5f9133..e2c94d09 100644 --- a/scripts/private-image-edit-evidence.mjs +++ b/scripts/private-image-edit-evidence.mjs @@ -28,6 +28,7 @@ export const PRIVATE_IMAGE_EDIT_FORMAT = 'modiff.private.lcm-source-bound-edit.v export const DIRECT_IMAGE_EDIT_FORMAT = 'modiff.private.direct-image-edit-source-bound.v1'; export const NATIVE_PNG_EDIT_FORMAT = 'modiff.private.direct-image-edit-native-png.v1'; export const NATIVE_PNG_INPAINT_FORMAT = 'modiff.private.direct-image-inpaint-native-png.v1'; +export const SAVED_PNG_EDIT_FORMAT = 'modiff.private.saved-image-edit-native-png.v1'; const baseConsumed = ['num_inference_steps', 'output_type', 'prompt', 'seed']; const imageGeometry = ['height', 'max_sequence_length', 'width']; const stableDiffusionEditConsumed = [...baseConsumed, 'negative_prompt', 'guidance_scale', 'strength']; @@ -118,6 +119,41 @@ const editRoutes = new Map([ strengthVariant: { original: 0.8, retained: 1 }, }, ], + [ + 'ChromaInpaintPipeline:inpaint', + { + modelRepo: 'lodestones/Chroma1-HD', + modelRevision: '0e0c60ece1e82b17cb7f77342d765ba5024c40c0', + loaderClass: 'ChromaInpaintPipeline', + format: SAVED_PNG_EDIT_FORMAT, + captureFormat: 'modiff.private.direct-image-inpaint-observation.v1', + consumed: [...stableDiffusionEditConsumed, ...imageGeometry], + sourceFingerprint: 'sha256:backend-source-v1:43f2ed10792fc6167b963166287cf7d5a0429afa26029e6455b0418e2123be86', + runtimeContractDigest: '8cbe038eeeb6d4a4c079783b8d7e4915d9f78faad9495cb8e354504c66925cf5', + fullNativeSnapshot: true, + inputPathPrefix: '@data/images/', + masked: true, + }, + ], + [ + 'StableDiffusionXLInstructPix2PixPipeline:edit_image', + { + modelRepo: 'diffusers/sdxl-instructpix2pix-768', + modelRevision: '06653d47f8d22f2c2205a5884d6a24c5e76d2ca7', + loaderClass: 'StableDiffusionXLInstructPix2PixPipeline', + format: SAVED_PNG_EDIT_FORMAT, + captureFormat: 'modiff.private.direct-image-edit-observation.v1', + consumed: [...baseConsumed, 'negative_prompt', 'guidance_scale', 'width', 'height'], + inactiveRecorded: ['strength', 'max_sequence_length'], + sourceFingerprint: 'sha256:backend-source-v1:55da4a68212923ee8a67e70754f46193288e210bce08ab4ae8c06834a7a76995', + runtimeContractDigest: 'e5d045d5ecf997c0cfe8dba771fd92cfc1fef6d3e10d91791b2b5e747f384b3c', + fullNativeSnapshot: true, + inputPathPrefix: '@data/images/', + windowsCudaRuntime: true, + residentRecipe: true, + unobservedControls: ['image_guidance_scale'], + }, + ], ]); const lcmRoute = editRoutes.get('LatentConsistencyModelPipeline:edit_image'); @@ -154,6 +190,7 @@ const editableFields = [ 'use_en_prompt', ]; const sha256 = (bytes) => createHash('sha256').update(bytes).digest('hex'); +const literal = (value) => ({ value, source: 'literal' }); const same = (a, b, message) => assert.equal(stableStringify(a), stableStringify(b), message); const keys = (row, expected) => same(Object.keys(row ?? {}).sort(), [...expected].sort(), 'Unexpected evidence fields.'); @@ -186,6 +223,7 @@ export function bindPrivateImageEditGraph({ strengthVariant, inputPathPrefix = '', nativePngEvidence = false, + residentRecipe = false, }) { const bound = structuredClone(expected); const masked = maskInput !== undefined; @@ -213,6 +251,11 @@ export function bindPrivateImageEditGraph({ assert.equal(canonical.edit.node.params.strength.value, strengthVariant.original); canonical.edit.node.params.strength.value = strengthVariant.retained; } + if (residentRecipe) { + const offload = canonical.recipe.node.params.offload_mode; + same(offload, { value: 'model_cpu' }); + offload.value = 'none'; + } const identity = canonicalGraphIdentity(bound); same( canonicalGraphIdentity(submitted), @@ -340,6 +383,95 @@ export function validatePrivateImageEditRuntimePlatform(workflowId, platform, ba } } +function verifySavedEditControls(bound, output, route) { + const receipt = output.resolvedExecutionInputs; + assert.equal(receipt.schemaVersion, 1); + assert.equal(receipt.source, 'backend-execution'); + assert.equal(receipt.taskId, output.taskId); + assert.equal(receipt.nodeId, bound.preview.id); + assert.equal(receipt.attemptIndex, 0); + assert.equal(receipt.truncated, false); + same(receipt.unavailableFields, []); + same(receipt.uncapturedNodeIds, []); + same( + receipt.ambiguousFields, + route.residentRecipe ? ['offloadMode'] : ['device', 'imageAlphaChannel', 'imageSourceHashes', 'imageSourceModes'], + ); + const owners = (bound.mask ? inpaintOwners : ownerOrder).map(([role]) => bound[role]); + same(receipt.nodes.map(({ nodeId }) => nodeId).sort(), owners.map(({ id }) => id).sort()); + const record = ({ id, node }) => { + const row = receipt.nodes.find(({ nodeId }) => nodeId === id); + assert.equal(row.module, node.module); + assert.equal(row.action, node.action); + same(row.omittedFields, {}); + return row; + }; + const sampler = record(bound.edit); + assert.equal(sampler.fieldAccounting, undefined); + const controls = Object.fromEntries( + route.consumed.map((name) => [name, literal(bound.edit.node.params[name].value)]), + ); + for (const field of [ + 'conditioning_scale', + 'control_guidance_start', + 'control_guidance_end', + ...(route.inactiveRecorded ?? []), + ]) { + controls[field] = literal(null); + } + controls.executed_task = literal(bound.mask ? 'inpaint' : 'edit_image'); + same(sampler.fields, controls, 'Saved sampler controls differ.'); + const loader = record(bound.loader); + for (const [field, value] of Object.entries({ + model_id: route.modelRepo, + revision: route.modelRevision, + pipeline_class: route.loaderClass, + mode: controls.executed_task.value, + })) + same(loader.fields[field], literal(value)); + const offload = route.residentRecipe ? 'none' : 'model_cpu'; + const recipe = record(bound.recipe); + const connected = bound.loader.node.params.execution_recipe; + same(connected, { display: 'input', sourceId: bound.recipe.id, sourceKey: 'execution_recipe' }); + same(recipe.fields.offload_mode, literal(offload)); + assert.equal(recipe.fieldAccounting.fields.offload_mode.disposition, 'consumed'); + assert.equal(loader.fieldAccounting.fields.offload_mode.disposition, 'superseded'); + assert.equal(loader.fieldAccounting.fields.offload_mode.reason, 'connected-recipe'); + return record; +} + +async function verifySavedPngSource(bound, output, input, maskInput, route, read, json, evidence) { + const record = verifySavedEditControls(bound, output, route); + const { decodedMediaHash } = await import('./template-gallery-harness.mjs'); + const verify = async (role, rootImage, upload, port, mode) => { + const owner = bound[role]; + const { bytes, file } = read(rootImage.file); + const { width, height } = await decodedMediaHash(file, 'image'); + const decodedImage = { width, height, mode }; + const row = record(owner); + same( + row.fields, + { + alpha_channel: literal(owner.node.params.alpha_channel.value), + source_hashes: literal([rootImage.file.sha256]), + source_widths: literal([width]), + source_heights: literal([height]), + source_modes: literal([mode]), + }, + `Original ${role} load differs.`, + ); + same(bound.edit.node.params[port], { display: 'input', sourceId: owner.id, sourceKey: 'image' }); + verifyRetainedPngUpload(json(upload), rootImage, decodedImage, bytes); + return decodedImage; + }; + const decodedInput = await verify('source', input, evidence.inputUpload, 'image', 'RGB'); + if (!maskInput) return { decodedInput }; + assert.notEqual(input.file.sha256, maskInput.file.sha256); + const decodedMask = await verify('mask', maskInput, evidence.maskUpload, 'mask_image', 'L'); + same([decodedInput.width, decodedInput.height], [decodedMask.width, decodedMask.height]); + return { decodedInput, mask: { decodedImage: decodedMask } }; +} + function validateRuntime( task, hints, @@ -419,8 +551,9 @@ export async function readPrivateImageEditEvidence({ clientRoot, manifest, graph const descriptorBytes = readFileSync(evidencePath); const evidence = JSON.parse(descriptorBytes); const masked = route.masked === true; + const savedPng = route.format === SAVED_PNG_EDIT_FORMAT && evidence.format === SAVED_PNG_EDIT_FORMAT; const pngFormat = masked ? NATIVE_PNG_INPAINT_FORMAT : NATIVE_PNG_EDIT_FORMAT; - const nativePngEvidence = route.nativePngEvidence === true && evidence.format === pngFormat; + const nativePngEvidence = savedPng || (route.nativePngEvidence === true && evidence.format === pngFormat); keys(evidence, [ 'schemaVersion', 'format', @@ -431,9 +564,10 @@ export async function readPrivateImageEditEvidence({ clientRoot, manifest, graph 'persistedOutputs', ...(nativePngEvidence ? ['inputUpload'] : ['inputServerBefore', 'inputServerAfter']), ...(masked ? ['maskUpload'] : []), + ...(savedPng ? ['registryReplay'] : []), ]); assert.equal(evidence.schemaVersion, 1); - assert.equal(evidence.format, nativePngEvidence ? pngFormat : route.format); + assert.equal(evidence.format, nativePngEvidence && !savedPng ? pngFormat : route.format); assert.equal(evidence.workflowId, workflowId); const evidenceRoot = realpathSync(dirname(evidencePath)); const retainedFiles = []; @@ -494,6 +628,7 @@ export async function readPrivateImageEditEvidence({ clientRoot, manifest, graph strengthVariant: route.strengthVariant, inputPathPrefix: route.inputPathPrefix, nativePngEvidence, + residentRecipe: route.residentRecipe, }); for (const api of [creator.apiGraph, ...visualExports]) { directOwners(api, false, masked); @@ -521,22 +656,28 @@ export async function readPrivateImageEditEvidence({ clientRoot, manifest, graph const validateRun = hasNativeSnapshot ? validateNativeVariantRun : validateLateNativeImageVariantRun; const { task, output, hints } = validateRun(runOptions); same(hints.workflowSnapshot.studioForm, output.formSnapshot); - validatePrivateImageEditFields(bound, output, route.consumed); - const { decodedInput, mask } = await verifySourceBinding(clientRoot, bound, output, input, route); - const inputMedia = read(input.file); - if (nativePngEvidence) { - verifyRetainedPngUpload(json(evidence.inputUpload), input, decodedInput, inputMedia.bytes); + let sourceBinding; + if (savedPng) { + sourceBinding = await verifySavedPngSource(bound, output, input, maskInput, route, read, json, evidence); } else { - for (const ref of [evidence.inputServerBefore, evidence.inputServerAfter]) { - assert.ok(read(ref).bytes.equals(inputMedia.bytes), 'The server-bound source bytes differ.'); + validatePrivateImageEditFields(bound, output, route.consumed); + sourceBinding = await verifySourceBinding(clientRoot, bound, output, input, route); + const inputMedia = read(input.file); + if (nativePngEvidence) { + verifyRetainedPngUpload(json(evidence.inputUpload), input, sourceBinding.decodedInput, inputMedia.bytes); + } else { + for (const ref of [evidence.inputServerBefore, evidence.inputServerAfter]) { + assert.ok(read(ref).bytes.equals(inputMedia.bytes), 'The server-bound source bytes differ.'); + } + } + if (masked) { + const maskMedia = read(maskInput.file); + assert.equal(sourceBinding.mask.sourceFile.sha256, maskInput.file.sha256); + assert.equal(sourceBinding.mask.sourceFile.byteSize, maskInput.file.bytes); + verifyRetainedPngUpload(json(evidence.maskUpload), maskInput, sourceBinding.mask.decodedImage, maskMedia.bytes); } } - if (masked) { - const maskMedia = read(maskInput.file); - assert.equal(mask.sourceFile.sha256, maskInput.file.sha256); - assert.equal(mask.sourceFile.byteSize, maskInput.file.bytes); - verifyRetainedPngUpload(json(evidence.maskUpload), maskInput, mask.decodedImage, maskMedia.bytes); - } + const { decodedInput, mask } = sourceBinding; const media = read(outputRef.file); const item = validateNativeVariantOutput({ output, @@ -554,7 +695,8 @@ export async function readPrivateImageEditEvidence({ clientRoot, manifest, graph same(technicalMediaErrors(decoded, { width: decodedInput.width, height: decodedInput.height }), []); assert.equal(item.width, decoded.width); assert.equal(item.height, decoded.height); - const backendContract = backendContractIdentity(json(capture.nodes), bound.identity.canonicalGraph); + const nodes = read(capture.nodes); + const backendContract = backendContractIdentity(JSON.parse(nodes.bytes), bound.identity.canonicalGraph); assert.ok(backendContract.fingerprint); const source = backendSourceEvidence({ before: json(capture.backendSourceBefore).identity, @@ -562,6 +704,17 @@ export async function readPrivateImageEditEvidence({ clientRoot, manifest, graph runtimeFingerprint: task.runtimeFingerprint, }); same(source.blockers, []); + if (savedPng) { + assert.equal(source.identity.fingerprint, route.sourceFingerprint); + const replay = json(evidence.registryReplay); + assert.equal(replay.scope, 'Original nodes handler only, with exact source and runtime contract'); + assert.equal(replay.modelRuns, 0); + assert.equal(replay.fileCount, source.identity.files.length); + assert.equal(replay.sourceFingerprint, route.sourceFingerprint); + assert.equal(replay.runtimeContract, route.runtimeContractDigest); + assert.equal(replay.nodeBytes, nodes.bytes.length); + assert.equal(replay.nodeHash, sha256(nodes.bytes)); + } const { runtime, elapsedSeconds, peakAllocatedBytes } = validateRuntime( task, hints, @@ -606,8 +759,15 @@ export async function readPrivateImageEditEvidence({ clientRoot, manifest, graph fullConsumedFieldAccounting: false, editConsumerControlsObserved: true, sourceGeometryQualified: false, - ...(nativePngEvidence ? { sourceByteWitness: 'native-load-consumer-and-upload' } : {}), - ...(masked ? { maskByteWitness: 'native-load-consumer-and-upload' } : {}), + ...(nativePngEvidence + ? { sourceByteWitness: savedPng ? 'native-load-and-upload-with-typed-wire' : 'native-load-consumer-and-upload' } + : {}), + ...(masked + ? { maskByteWitness: savedPng ? 'native-load-and-upload-with-typed-wire' : 'native-load-consumer-and-upload' } + : {}), + ...(savedPng + ? { independentConsumerPixels: false, configuredUnobservedControls: route.unobservedControls ?? [] } + : {}), physicalPlatformQualification: false, }, qualificationClaims: { diff --git a/scripts/private-image-edit-evidence.test.mjs b/scripts/private-image-edit-evidence.test.mjs index 76ce6b7f..1da9e649 100644 --- a/scripts/private-image-edit-evidence.test.mjs +++ b/scripts/private-image-edit-evidence.test.mjs @@ -424,6 +424,48 @@ test( }, ); +for (const [workflowId, variable, hasMask] of [ + ['ChromaInpaintPipeline:inpaint', 'MODIFF_SAVED_CHROMA_INPAINT_EVIDENCE', true], + ['StableDiffusionXLInstructPix2PixPipeline:edit_image', 'MODIFF_SAVED_PIX2PIX_EVIDENCE', false], +]) { + const saved = process.env[variable]; + test( + `${workflowId} retains the original source identity with disclosed sampler limits`, + { skip: !saved }, + async () => { + const clientRoot = fileURLToPath(new URL('..', import.meta.url)); + const backendRoot = resolve(process.env.MODIFF_BACKEND_DIR ?? join(clientRoot, '..', 'MoDiff')); + const evidencePath = resolve(saved); + const args = { clientRoot, backendRoot, workflowId, evidencePath }; + const original = await readCanonicalWorkflowEvidence(args); + const { receipt } = original; + assert.equal(receipt.observationLimits.independentConsumerPixels, false); + assert.equal(receipt.observationLimits.sourceByteWitness, 'native-load-and-upload-with-typed-wire'); + assert.deepEqual(receipt.observationLimits.configuredUnobservedControls, hasMask ? [] : ['image_guidance_scale']); + assert.equal(Boolean(receipt.maskBinding), hasMask); + const root = mkdtempSync(join(tmpdir(), 'modiff-retained-edit-')); + try { + for (const file of original.retainedFiles) { + assert.equal(basename(file.path), file.path); + copyFileSync(file.absolutePath, join(root, file.path)); + } + const descriptor = JSON.parse(original.descriptorBytes); + const ref = descriptor.registryReplay; + const proof = JSON.parse(readFileSync(join(root, ref.path))); + proof.nodeHash = 'a'.repeat(64); + const bytes = Buffer.from(JSON.stringify(proof)); + Object.assign(ref, { bytes: bytes.length, sha256: createHash('sha256').update(bytes).digest('hex') }); + writeFileSync(join(root, ref.path), bytes); + const changedPath = join(root, 'evidence.json'); + writeFileSync(changedPath, JSON.stringify(descriptor)); + await assert.rejects(readCanonicalWorkflowEvidence({ ...args, evidencePath: changedPath }), /strictly equal/u); + } finally { + rmSync(root, { recursive: true, force: true }); + } + }, + ); +} + test('retained native PNG upload binds an exact safe path, file bytes and decoded dimensions', () => { const bytes = Buffer.from( 'iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mP8/x8AAwMCAO+a0AMAAAAASUVORK5CYII=', diff --git a/scripts/prompt-variant-evidence.mjs b/scripts/prompt-variant-evidence.mjs index f5357e75..04590e63 100644 --- a/scripts/prompt-variant-evidence.mjs +++ b/scripts/prompt-variant-evidence.mjs @@ -173,6 +173,21 @@ const audioRoute = { ], }; +const audioLdmRoute = { + ...audioRoute, + format: 'modiff.private.audioldm2-prompt-variant.v1', + workflowId: 'AudioLDM2Pipeline:text_to_audio', + modelType: 'AudioLDM2Pipeline', + previousExpertFamily: 'StableDiffusionXLControlNetInpaintPipeline', + modelRepo: 'cvssp/audioldm2', + modelRevision: 'c8e7e189d324425c05c4c2f81214041ef4107983', + chain: audioRoute.chain.map((stage) => + stage[0] === 'generator' + ? ['generator', 'modules.DiffusersAudio', 'Generate', 'prompt seed audio_duration sample_rate'] + : stage, + ), +}; + const wanA14BRoute = { format: 'modiff.private.wan-a14b-video-prompt-variant.v1', workflowId: 'Wan22Pipeline:text_to_video', @@ -223,6 +238,22 @@ const cogVideoRoute = { retainedVaeTiling: true, }; +const cogVideoEditRoute = { + ...cogVideoRoute, + format: 'modiff.private.cogvideox-source-video-variant.v1', + workflowId: 'CogVideoXVideoToVideoPipeline:video_to_video', + modelType: 'CogVideoXVideoToVideoPipeline', + retainedVaeTiling: false, + executedTask: 'video_to_video', + bindsVideoUpload: true, + sourceFingerprint: 'sha256:backend-source-v1:43f2ed10792fc6167b963166287cf7d5a0429afa26029e6455b0418e2123be86', + chain: [ + ['source', 'modules.Video', 'Load', ''], + ['normalize', 'modules.VideoConditioning', 'Normalize', 'height num_frames width'], + ...cogVideoRoute.chain, + ], +}; + const imagePromptRoute = { outputKind: 'image', displayType: 'image', @@ -265,7 +296,7 @@ function owners(profile, api) { assert.equal(node.module, module); assert.equal(node.action, action); const fileFields = Object.keys(node.params).filter((name) => node.params[name].display === 'filebrowser'); - same(fileFields, role === 'source' && profile.bindsImage ? ['file'] : []); + same(fileFields, role === 'source' && (profile.bindsImage || profile.bindsVideoUpload) ? ['file'] : []); return [role, { id, node, capturedFields: capturedFields ? capturedFields.split(' ') : [] }]; }), ); @@ -310,6 +341,14 @@ export function bindPromptVariant(profile, original, created, output, baselineHa same(expectedInputs.images, { display: 'input', sourceId: expectedOwners.source.id, sourceKey: 'image' }); params.file.value = [sourceValue]; } + if (profile.bindsVideoUpload) { + assert.match(sourceValue, /^@data\/videos\/[a-z0-9_-]{1,120}[.]mp4$/iu); + const { source, normalize } = expectedOwners; + same(source.node.params.file, { display: 'filebrowser', value: '' }); + same(normalize.node.params.video, { display: 'input', sourceId: source.id, sourceKey: 'video' }); + same(expectedInputs.video, { display: 'input', sourceId: normalize.id, sourceKey: 'output' }); + source.node.params.file.value = [sourceValue]; + } const promptSlot = expectedInputs.prompt; assert.equal( promptSlot.value, @@ -407,6 +446,17 @@ function validateConsumedPromptVariant(profile, bound, output, suppliedImage) { })) expected[name] = { value, source: 'literal' }; } + if (profile === audioLdmRoute && id === bound.generator.id) { + assert.equal(node.params.negative_prompt.value, ''); + expected.negative_prompt = { value: null, source: 'literal' }; + expected.output_type = { value: 'pt', source: 'literal' }; + // The generic audio contract exposes these controls for AudioLDM2. + // The ACE-style fallback values in the same graph are inactive. + assert.equal(node.params.audio_contract.value.fieldParams.num_inference_steps.hidden, true); + assert.equal(node.params.audio_contract.value.fieldParams.guidance_scale.hidden, true); + expected.num_inference_steps = { value: node.params.stable_audio_steps.value, source: 'literal' }; + expected.guidance_scale = { value: node.params.stable_audio_guidance.value, source: 'literal' }; + } same(row.fields, expected, `Actual consumed fields differ for ${node.action}.`); } return image; @@ -744,18 +794,21 @@ export async function readPromptVariantEvidence({ clientRoot, manifest, graph, a smolVlmCaptionRoute, videoRoute, audioRoute, + audioLdmRoute, wanA14BRoute, cogVideoRoute, + cogVideoEditRoute, ].find(({ workflowId }) => workflowId === target.workflowId); assert.ok(profile, 'Prompt variant route is not reviewed.'); - const generatedVideo = profile === wanA14BRoute || profile === cogVideoRoute; + const generatedVideo = profile === wanA14BRoute || profile === cogVideoRoute || profile === cogVideoEditRoute; + const generatedAudio = profile === audioRoute || profile === audioLdmRoute; const requiresOriginalRequest = imageRoute !== undefined || profile === janusTextRoute || profile === janusImageRoute || profile === janusCaptionRoute || profile === smolVlmCaptionRoute || - profile === audioRoute || + generatedAudio || generatedVideo; const sampledCpuMemory = profile.executionDevice === 'cpu:0'; same(target.modelSet, [{ repoId: profile.modelRepo, revision: profile.modelRevision }]); @@ -788,9 +841,9 @@ export async function readPromptVariantEvidence({ clientRoot, manifest, graph, a assert.equal(evidence.format, profile.format); assert.equal(evidence.workflowId, profile.workflowId); assert.ok(Array.isArray(evidence.inputs)); - assert.equal(evidence.inputs.length, profile.bindsImage ? 1 : 0); - const [suppliedImage] = evidence.inputs; - if (suppliedImage) keys(suppliedImage, ['sourceValue', 'file', 'upload']); + assert.equal(evidence.inputs.length, profile.bindsImage || profile.bindsVideoUpload ? 1 : 0); + const [suppliedInput] = evidence.inputs; + if (suppliedInput) keys(suppliedInput, ['sourceValue', 'file', 'upload']); assert.equal(evidence.modelObservations.length, 1); assert.equal(evidence.outputs.length, 1); const [outputRef] = evidence.outputs; @@ -820,7 +873,7 @@ export async function readPromptVariantEvidence({ clientRoot, manifest, graph, a creator.apiGraph, submitted, evidence.originalGraphHash, - suppliedImage?.sourceValue, + suppliedInput?.sourceValue, ); for (const api of [creatorApi, outputApi, runApi]) { graphEnvelope(api); @@ -844,7 +897,7 @@ export async function readPromptVariantEvidence({ clientRoot, manifest, graph, a graphAcknowledgment: json(evidence.graphAcknowledgment), } : {}), - ...(imageRoute || generatedVideo + ...(imageRoute || generatedVideo || profile === audioLdmRoute ? { validatePreparation: (preparation) => validateImagePromptPreparation(preparation, profile) } : {}), ...(profile === videoRoute || profile === audioRoute @@ -870,6 +923,9 @@ export async function readPromptVariantEvidence({ clientRoot, manifest, graph, a runtimeFingerprint: task.runtimeFingerprint, }); same(source.blockers, [], 'Backend source differs from the running process.'); + if (profile.sourceFingerprint) { + assert.equal(source.identity.fingerprint, profile.sourceFingerprint, 'The archived source fingerprint differs.'); + } const accounting = imageRoute ? directImagePromptAccountingExecutionPlan({ expectedApiGraph: bound.expected, @@ -879,17 +935,17 @@ export async function readPromptVariantEvidence({ clientRoot, manifest, graph, a runtimeEvidence: { run: accountingRun, output, graphCompleted, sourceFingerprint: source.identity.fingerprint }, }) : null; - const inputBinding = accounting ? undefined : validateConsumedPromptVariant(profile, bound, output, suppliedImage); - if (suppliedImage) { - const source = read(suppliedImage.file, 2 * 1024 * 1024); - const upload = json(suppliedImage.upload); + let inputBinding = accounting ? undefined : validateConsumedPromptVariant(profile, bound, output, suppliedInput); + if (profile.bindsImage) { + const source = read(suppliedInput.file, 2 * 1024 * 1024); + const upload = json(suppliedInput.upload); const { width, height } = inputBinding.decodedImage; assert.equal(upload.error, false); - assert.equal(upload.path, suppliedImage.sourceValue); + assert.equal(upload.path, suppliedInput.sourceValue); same( upload.media, { - filename: suppliedImage.sourceValue.split('/').at(-1), + filename: suppliedInput.sourceValue.split('/').at(-1), extension: '.png', sizeBytes: source.bytes.length, sha256: inputBinding.sha256, @@ -902,6 +958,43 @@ export async function readPromptVariantEvidence({ clientRoot, manifest, graph, a 'Caption input differs from the original image upload.', ); } + if (profile.bindsVideoUpload) { + const { bytes, file } = read(suppliedInput.file); + const upload = json(suppliedInput.upload); + const { decodedMediaHash } = await import('./template-gallery-harness.mjs'); + const decoded = await decodedMediaHash(file, 'video'); + assert.equal(upload.error, false); + assert.equal(upload.path, suppliedInput.sourceValue); + same( + upload.media, + { + filename: suppliedInput.sourceValue.split('/').at(-1), + extension: '.mp4', + sizeBytes: bytes.length, + sha256: digest(bytes), + kind: 'video', + mimeType: 'video/mp4', + durationSeconds: decoded.durationSeconds, + width: decoded.width, + height: decoded.height, + }, + 'Archived video upload differs from the retained bytes.', + ); + assert.equal(decoded.frames, bound.normalize.node.params.num_frames.value); + assert.equal(decoded.hasAudio, false); + inputBinding = { + nodeId: bound.source.id, + field: 'file', + sha256: digest(bytes), + decodedVideo: { + width: decoded.width, + height: decoded.height, + frames: decoded.frames, + fps: decoded.fps, + hash: decoded.hash, + }, + }; + } const nodes = json(evidence.nodes); const backendContract = backendContractIdentity(nodes, bound.identity.canonicalGraph); assert.ok(backendContract.fingerprint, 'Native backend contract fingerprint is missing.'); @@ -911,7 +1004,7 @@ export async function readPromptVariantEvidence({ clientRoot, manifest, graph, a assert.equal(contract.action, action); same( Object.keys(contract.params).filter((name) => contract.params[name].display === 'filebrowser'), - role === 'source' && profile.bindsImage ? ['file'] : [], + role === 'source' && (profile.bindsImage || profile.bindsVideoUpload) ? ['file'] : [], ); } const { runtime, measurement } = validateNativePromptRuntime( @@ -962,15 +1055,19 @@ export async function readPromptVariantEvidence({ clientRoot, manifest, graph, a fps: bound.preview.node.params.fps.value, }); } else decodedOutput = validatePromptVariantVideo(decoded, item, bound); - } else if (profile === audioRoute) { + } else if (generatedAudio) { assert.equal(media.bytes.toString('ascii', 0, 4), 'RIFF'); assert.equal(media.bytes.toString('ascii', 8, 12), 'WAVE'); const { decodedMediaHash } = await import('./template-gallery-harness.mjs'); const decoded = await decodedMediaHash(media.file, 'audio'); - assert.equal(decoded.sourceSampleRate, 24000); + const rate = bound.generator.node.params.sample_rate.value; + const duration = bound.generator.node.params.audio_duration.value; + assert.equal(rate, profile === audioRoute ? 24000 : 16000); + assert.equal(duration, profile === audioRoute ? 5 : 10); + assert.equal(decoded.sourceSampleRate, rate); assert.equal(decoded.channels, 1); assert.equal(decoded.clippedSampleRatio, 0); - assert.ok(decoded.durationSeconds >= 4.9 && decoded.durationSeconds <= 5); + assert.ok(decoded.durationSeconds >= duration - 0.1 && decoded.durationSeconds <= duration); assert.ok(decoded.peakAmplitude > 0.05 && decoded.silenceRatio < 0.75); decodedOutput = { kind: 'audio', @@ -1018,6 +1115,9 @@ export async function readPromptVariantEvidence({ clientRoot, manifest, graph, a ? { configuredUnobservedControls: [...imageRoute.typedOnly] } : {}), ...(sampledCpuMemory ? { memoryMeasurement: 'sampled_worker_rss' } : {}), + ...(profile.bindsVideoUpload + ? { sourceVideoByteWitness: 'original-upload-and-typed-wire', normalizedConsumerFramesObserved: false } + : {}), }, qualificationClaims: { publicTemplate: false, diff --git a/scripts/prompt-variant-evidence.test.mjs b/scripts/prompt-variant-evidence.test.mjs index c5eb1ae2..36b834f1 100644 --- a/scripts/prompt-variant-evidence.test.mjs +++ b/scripts/prompt-variant-evidence.test.mjs @@ -386,7 +386,14 @@ for (const [workflowId, variable, kind, proofKind = 'real_backend_prompt_bound_m ['ShapEPipeline:text_to_3d', 'MODIFF_SHAPE_PROMPT_EVIDENCE', 'video'], ['Wan22Pipeline:text_to_video', 'MODIFF_WAN_A14B_VIDEO_PROMPT_EVIDENCE', 'video'], ['CogVideoXPipeline:text_to_video', 'MODIFF_COGVIDEOX_VIDEO_PROMPT_EVIDENCE', 'video'], + [ + 'CogVideoXVideoToVideoPipeline:video_to_video', + 'MODIFF_COGVIDEOX_EDIT_EVIDENCE', + 'video', + 'real_backend_input_bound_model_variant', + ], ['LongCatAudioDiTPipeline:text_to_audio', 'MODIFF_LONGCAT_AUDIO_PROMPT_EVIDENCE', 'audio'], + ['AudioLDM2Pipeline:text_to_audio', 'MODIFF_AUDIOLDM2_PROMPT_EVIDENCE', 'audio'], ['CogView3PlusPipeline:text_to_image', 'MODIFF_COGVIEW3_PROMPT_EVIDENCE', 'image'], ['StableDiffusionXLTurboPipeline:text_to_image', 'MODIFF_SDXL_TURBO_PROMPT_EVIDENCE', 'image'], ['SanaPAGPipeline:text_to_image', 'MODIFF_SANA_PAG_PROMPT_EVIDENCE', 'image'], @@ -438,7 +445,8 @@ for (const [workflowId, variable, kind, proofKind = 'real_backend_prompt_bound_m const evidence = JSON.parse(original.descriptorBytes); const route = directImagePromptRoutes.find((row) => row.workflowId === workflowId); const cogVideo = workflowId === 'CogVideoXPipeline:text_to_video'; - if (route?.retainedObservationSource || workflowId === 'Wan22Pipeline:text_to_video' || cogVideo) { + const audioLdm = workflowId === 'AudioLDM2Pipeline:text_to_audio'; + if (route?.retainedObservationSource || workflowId === 'Wan22Pipeline:text_to_video' || cogVideo || audioLdm) { assert.equal(original.receipt.observationLimits.fullConsumedFieldAccounting, false); if (route?.typedOnly) { assert.deepEqual(original.receipt.observationLimits.configuredUnobservedControls, route.typedOnly); @@ -460,6 +468,10 @@ for (const [workflowId, variable, kind, proofKind = 'real_backend_prompt_bound_m assert.equal(fields.vae_tiling.value, true); fields.vae_tiling.value = false; expectedFailure = /Actual consumed fields differ for DiffusersExecutionRecipe/u; + } else if (audioLdm) { + assert.equal(sampler.fields.num_inference_steps.value, 200); + sampler.fields.num_inference_steps.value = 8; + expectedFailure = /Actual consumed fields differ for Generate/u; } else { assert.equal(sampler.fields.secondary_guidance_scale.value, 3.5); sampler.fields.secondary_guidance_scale.value = 0; @@ -526,9 +538,11 @@ for (const [workflowId, variable, kind, proofKind = 'real_backend_prompt_bound_m writeFileSync(changedPath, JSON.stringify(substituted)); await assert.rejects( () => readCanonicalWorkflowEvidence({ ...args, evidencePath: changedPath }), - workflowId === 'HuggingFaceAnyToAnyModel:image_to_text' - ? /Caption source bytes differ from the native load|Archived authoring requires the exact original capture/u - : /Caption source bytes differ from the native load/u, + workflowId === 'CogVideoXVideoToVideoPipeline:video_to_video' + ? /Archived video upload differs/u + : workflowId === 'HuggingFaceAnyToAnyModel:image_to_text' + ? /Caption source bytes differ from the native load|Archived authoring requires the exact original capture/u + : /Caption source bytes differ from the native load/u, ); writeFileSync(path, originalBytes); } diff --git a/scripts/release-contract-core.mjs b/scripts/release-contract-core.mjs index 21d91941..f1fae756 100644 --- a/scripts/release-contract-core.mjs +++ b/scripts/release-contract-core.mjs @@ -823,6 +823,7 @@ export async function readCanonicalWorkflowEvidence({ clientRoot, backendRoot, w 'modiff.private.direct-image-edit-source-bound.v1', 'modiff.private.direct-image-edit-native-png.v1', 'modiff.private.direct-image-inpaint-native-png.v1', + 'modiff.private.saved-image-edit-native-png.v1', ].includes(evidence.format) ) { const { readPrivateImageEditEvidence } = await import('./private-image-edit-evidence.mjs'); @@ -869,8 +870,10 @@ export async function readCanonicalWorkflowEvidence({ clientRoot, backendRoot, w 'modiff.private.smolvlm-caption-variant.v1', 'modiff.private.shap-e-prompt-variant.v1', 'modiff.private.longcat-audio-prompt-variant.v1', + 'modiff.private.audioldm2-prompt-variant.v1', 'modiff.private.wan-a14b-video-prompt-variant.v1', 'modiff.private.cogvideox-video-prompt-variant.v1', + 'modiff.private.cogvideox-source-video-variant.v1', ].includes(evidence.format) || directImagePromptRoutes.some(({ format }) => format === evidence.format) ) { From eebede6628816d2d157dfe4b39baab929a4002e9 Mon Sep 17 00:00:00 2001 From: Sourav Das Date: Wed, 25 Nov 2026 06:18:05 +0530 Subject: [PATCH 356/440] Recover three approved PAG and Z-Image edit recipes --- scripts/private-image-edit-evidence.mjs | 80 ++++++++++++++++++-- scripts/private-image-edit-evidence.test.mjs | 26 ++++++- 2 files changed, 95 insertions(+), 11 deletions(-) diff --git a/scripts/private-image-edit-evidence.mjs b/scripts/private-image-edit-evidence.mjs index e2c94d09..e47e182b 100644 --- a/scripts/private-image-edit-evidence.mjs +++ b/scripts/private-image-edit-evidence.mjs @@ -3,6 +3,7 @@ import { createHash } from 'node:crypto'; import { lstatSync, readFileSync, realpathSync } from 'node:fs'; import { dirname } from 'node:path'; import { stableJsonValue } from './canonical-json.mjs'; +import { verifyNativeLoadedImage } from './native-image-load-evidence.mjs'; import { backendContractIdentity, backendSourceEvidence, @@ -154,6 +155,62 @@ const editRoutes = new Map([ unobservedControls: ['image_guidance_scale'], }, ], + [ + 'StableDiffusionPAGPipeline:edit_image', + { + modelRepo: 'stable-diffusion-v1-5/stable-diffusion-v1-5', + modelRevision: '451f4fe16113bff5a5d2269ed5ad43b0592e9a14', + loaderClass: 'StableDiffusionPAGImg2ImgPipeline', + format: SAVED_PNG_EDIT_FORMAT, + captureFormat: 'modiff.private.direct-image-edit-observation.v1', + consumed: stableDiffusionEditConsumed, + inactiveRecorded: ['width', 'height', 'max_sequence_length'], + sourceFingerprint: 'sha256:backend-source-v1:3b073e3f6f5e9489e06116f277ee4a9e878b8f0c6258efc93c60be9a04513cb5', + runtimeContractDigest: 'e5d045d5ecf997c0cfe8dba771fd92cfc1fef6d3e10d91791b2b5e747f384b3c', + windowsCudaRuntime: true, + fullNativeSnapshot: true, + inputPathPrefix: '@data/images/', + unobservedControls: ['pag_scale', 'pag_adaptive_scale'], + nativeSourceMedia: true, + }, + ], + [ + 'StableDiffusionPAGPipeline:inpaint', + { + modelRepo: 'stable-diffusion-v1-5/stable-diffusion-v1-5', + modelRevision: '451f4fe16113bff5a5d2269ed5ad43b0592e9a14', + loaderClass: 'StableDiffusionPAGInpaintPipeline', + format: SAVED_PNG_EDIT_FORMAT, + captureFormat: 'modiff.private.direct-image-inpaint-observation.v1', + consumed: [...stableDiffusionEditConsumed, 'width', 'height'], + inactiveRecorded: ['max_sequence_length'], + sourceFingerprint: 'sha256:backend-source-v1:1f2f7e00ce4a500ba52d5b729f43d4321af6f931125a3f266f307cf80038c12e', + runtimeContractDigest: 'e5d045d5ecf997c0cfe8dba771fd92cfc1fef6d3e10d91791b2b5e747f384b3c', + windowsCudaRuntime: true, + fullNativeSnapshot: true, + inputPathPrefix: '@data/images/', + unobservedControls: ['pag_scale', 'pag_adaptive_scale'], + nativeSourceMedia: true, + masked: true, + }, + ], + [ + 'ZImageModularPipeline:edit_image', + { + modelRepo: 'Tongyi-MAI/Z-Image-Turbo', + modelRevision: 'f332072aa78be7aecdf3ee76d5c247082da564a6', + loaderClass: 'ZImageImg2ImgPipeline', + format: SAVED_PNG_EDIT_FORMAT, + captureFormat: 'modiff.private.direct-image-edit-observation.v1', + consumed: [...stableDiffusionEditConsumed, ...imageGeometry], + sourceFingerprint: 'sha256:backend-source-v1:e3aea8f8d102572ad10fdd0700f0c42d92061e864ede89777efcd6a3269770a8', + runtimeContractDigest: '8cbe038eeeb6d4a4c079783b8d7e4915d9f78faad9495cb8e354504c66925cf5', + fullNativeSnapshot: true, + inputPathPrefix: '@data/images/', + nativeSourceMedia: true, + outputGeometryFromSettings: true, + }, + ], ]); const lcmRoute = editRoutes.get('LatentConsistencyModelPipeline:edit_image'); @@ -393,10 +450,8 @@ function verifySavedEditControls(bound, output, route) { assert.equal(receipt.truncated, false); same(receipt.unavailableFields, []); same(receipt.uncapturedNodeIds, []); - same( - receipt.ambiguousFields, - route.residentRecipe ? ['offloadMode'] : ['device', 'imageAlphaChannel', 'imageSourceHashes', 'imageSourceModes'], - ); + const ambiguous = bound.mask ? ['device', 'imageAlphaChannel', 'imageSourceHashes', 'imageSourceModes'] : ['device']; + same(receipt.ambiguousFields, route.residentRecipe ? ['offloadMode'] : ambiguous); const owners = (bound.mask ? inpaintOwners : ownerOrder).map(([role]) => bound[role]); same(receipt.nodes.map(({ nodeId }) => nodeId).sort(), owners.map(({ id }) => id).sort()); const record = ({ id, node }) => { @@ -429,8 +484,8 @@ function verifySavedEditControls(bound, output, route) { mode: controls.executed_task.value, })) same(loader.fields[field], literal(value)); - const offload = route.residentRecipe ? 'none' : 'model_cpu'; const recipe = record(bound.recipe); + const offload = bound.recipe.node.params.offload_mode.value; const connected = bound.loader.node.params.execution_recipe; same(connected, { display: 'input', sourceId: bound.recipe.id, sourceKey: 'execution_recipe' }); same(recipe.fields.offload_mode, literal(offload)); @@ -462,7 +517,15 @@ async function verifySavedPngSource(bound, output, input, maskInput, route, read ); same(bound.edit.node.params[port], { display: 'input', sourceId: owner.id, sourceKey: 'image' }); verifyRetainedPngUpload(json(upload), rootImage, decodedImage, bytes); - return decodedImage; + if (!route.nativeSourceMedia) return decodedImage; + const native = verifyNativeLoadedImage(owner.node, row, mode); + same(native.sourceFile, { + sourceValue: rootImage.sourceValue, + sha256: rootImage.file.sha256, + byteSize: rootImage.file.bytes, + }); + same([native.decodedImage.width, native.decodedImage.height], [width, height]); + return native.decodedImage; }; const decodedInput = await verify('source', input, evidence.inputUpload, 'image', 'RGB'); if (!maskInput) return { decodedInput }; @@ -692,7 +755,10 @@ export async function readPrivateImageEditEvidence({ clientRoot, manifest, graph assert.equal(output.mediaCollectionHash, `sha256:collection:${sha256(JSON.stringify([item.mediaHash]))}`); const { decodedMediaHash, technicalMediaErrors } = await import('./template-gallery-harness.mjs'); const decoded = await decodedMediaHash(media.file, 'image'); - same(technicalMediaErrors(decoded, { width: decodedInput.width, height: decodedInput.height }), []); + const expectedGeometry = route.outputGeometryFromSettings + ? { width: bound.edit.node.params.width.value, height: bound.edit.node.params.height.value } + : { width: decodedInput.width, height: decodedInput.height }; + same(technicalMediaErrors(decoded, expectedGeometry), []); assert.equal(item.width, decoded.width); assert.equal(item.height, decoded.height); const nodes = read(capture.nodes); diff --git a/scripts/private-image-edit-evidence.test.mjs b/scripts/private-image-edit-evidence.test.mjs index 1da9e649..ec2636ea 100644 --- a/scripts/private-image-edit-evidence.test.mjs +++ b/scripts/private-image-edit-evidence.test.mjs @@ -424,9 +424,27 @@ test( }, ); -for (const [workflowId, variable, hasMask] of [ - ['ChromaInpaintPipeline:inpaint', 'MODIFF_SAVED_CHROMA_INPAINT_EVIDENCE', true], - ['StableDiffusionXLInstructPix2PixPipeline:edit_image', 'MODIFF_SAVED_PIX2PIX_EVIDENCE', false], +for (const [workflowId, variable, hasMask, unobserved] of [ + ['ChromaInpaintPipeline:inpaint', 'MODIFF_SAVED_CHROMA_INPAINT_EVIDENCE', true, []], + [ + 'StableDiffusionXLInstructPix2PixPipeline:edit_image', + 'MODIFF_SAVED_PIX2PIX_EVIDENCE', + false, + ['image_guidance_scale'], + ], + [ + 'StableDiffusionPAGPipeline:edit_image', + 'MODIFF_SAVED_PAG_EDIT_EVIDENCE', + false, + ['pag_scale', 'pag_adaptive_scale'], + ], + [ + 'StableDiffusionPAGPipeline:inpaint', + 'MODIFF_SAVED_PAG_INPAINT_EVIDENCE', + true, + ['pag_scale', 'pag_adaptive_scale'], + ], + ['ZImageModularPipeline:edit_image', 'MODIFF_SAVED_ZIMAGE_EDIT_EVIDENCE', false, []], ]) { const saved = process.env[variable]; test( @@ -441,7 +459,7 @@ for (const [workflowId, variable, hasMask] of [ const { receipt } = original; assert.equal(receipt.observationLimits.independentConsumerPixels, false); assert.equal(receipt.observationLimits.sourceByteWitness, 'native-load-and-upload-with-typed-wire'); - assert.deepEqual(receipt.observationLimits.configuredUnobservedControls, hasMask ? [] : ['image_guidance_scale']); + assert.deepEqual(receipt.observationLimits.configuredUnobservedControls, unobserved); assert.equal(Boolean(receipt.maskBinding), hasMask); const root = mkdtempSync(join(tmpdir(), 'modiff-retained-edit-')); try { From 780e377aae2cd8cd96db1e491575b1f74725eed9 Mon Sep 17 00:00:00 2001 From: Sourav Das Date: Wed, 25 Nov 2026 06:47:26 +0530 Subject: [PATCH 357/440] Verify six saved guided image executions --- CONTRIBUTING.md | 7 + package.json | 2 +- scripts/control-inpaint-evidence.mjs | 91 +++-- scripts/release-contract-core.mjs | 4 + scripts/saved-control-image-evidence.mjs | 351 ++++++++++++++++++ scripts/saved-control-image-evidence.test.mjs | 89 +++++ 6 files changed, 515 insertions(+), 29 deletions(-) create mode 100644 scripts/saved-control-image-evidence.mjs create mode 100644 scripts/saved-control-image-evidence.test.mjs diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index db7f7b7d..fb54131c 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -550,6 +550,13 @@ produced the recorded RGB source and grayscale mask and that those exact pixels and dimensions reached their respective Inpaint ports. Its receipt binds the source and mask separately to the saved Expert execution. +The saved control-image reader verifies the original PNG upload and decoded +source, the guide wire into the sampler, the main and conditioning model +revisions, and the observed sampler settings. An archived node registry can +be replayed from the original source and runtime contract without inference. +The receipt records when the saved run lacks processed guide pixels or +effective PAG settings. + The reviewed Marigold synthetic ramp, SmolLM2 rain-gauge, Spandrel Real-ESRGAN 2×, Whisper Tiny transcription and LCM dawn edit use declarations in `src/studio/retainedGalleryTemplates.ts`. They share diff --git a/package.json b/package.json index 102cf3d7..953fb628 100644 --- a/package.json +++ b/package.json @@ -85,7 +85,7 @@ "test:template-assets:local": "node --test scripts/template-default-inputs.test.mjs", "test:template-quality": "node --test scripts/template-quality.test.mjs", "test:live-qwen-proof": "node --test scripts/live-qwen-proof.test.mjs scripts/native-modular-image-resource.test.mjs scripts/executed-native-media-resource.test.mjs scripts/workflow-auto-provenance.test.mjs scripts/workflow-auto-audio-provenance.test.mjs scripts/workflow-auto-video-provenance.test.mjs scripts/workflow-auto-control-provenance.test.mjs scripts/workflow-auto-masked-image-provenance.test.mjs scripts/retained-native-text-provenance.test.mjs scripts/retained-native-direct-image-provenance.test.mjs scripts/retained-native-modular-image-provenance.test.mjs scripts/canonical-runtime-hints.test.mjs scripts/hardware-qualification.test.mjs scripts/hardware-execution-device.test.mjs scripts/hardware-runtime-identity.test.mjs scripts/release-qualification-policy.test.mjs scripts/resource-qualification.test.mjs scripts/route-resource-qualification.test.mjs scripts/resource-qualification-campaign.test.mjs scripts/template-qualification.test.mjs scripts/release-qualification-campaign.test.mjs", - "test:release-contract": "node --test scripts/backend-installer-contract.test.mjs scripts/backend-node-registry.test.mjs scripts/release-contract.test.mjs scripts/release-candidate-report.test.mjs scripts/template-asset-release-contract.test.mjs scripts/builtin-media-qualification.test.mjs scripts/input-bound-model-evidence.test.mjs scripts/video-upscale-evidence.test.mjs scripts/layer-decomposition-evidence.test.mjs scripts/canonical-image-accounting.test.mjs scripts/marigold-preview-evidence.test.mjs scripts/private-speech-evidence.test.mjs scripts/retained-speech-gallery-evidence.test.mjs scripts/private-image-edit-evidence.test.mjs scripts/image-edit-source-binding.test.mjs scripts/prompt-variant-evidence.test.mjs scripts/retained-template-association.test.mjs scripts/retained-gallery-release.test.mjs scripts/saved-workflow-compatibility.test.mjs", + "test:release-contract": "node --test scripts/backend-installer-contract.test.mjs scripts/backend-node-registry.test.mjs scripts/release-contract.test.mjs scripts/release-candidate-report.test.mjs scripts/template-asset-release-contract.test.mjs scripts/builtin-media-qualification.test.mjs scripts/input-bound-model-evidence.test.mjs scripts/video-upscale-evidence.test.mjs scripts/layer-decomposition-evidence.test.mjs scripts/canonical-image-accounting.test.mjs scripts/marigold-preview-evidence.test.mjs scripts/private-speech-evidence.test.mjs scripts/retained-speech-gallery-evidence.test.mjs scripts/private-image-edit-evidence.test.mjs scripts/image-edit-source-binding.test.mjs scripts/control-inpaint-evidence.test.mjs scripts/saved-control-image-evidence.test.mjs scripts/prompt-variant-evidence.test.mjs scripts/retained-template-association.test.mjs scripts/retained-gallery-release.test.mjs scripts/saved-workflow-compatibility.test.mjs", "test:live-backend-contract": "node scripts/live-backend-contract.mjs", "test:gallery-harness": "node --test scripts/template-gallery-harness.test.mjs scripts/source-video-timing.test.mjs scripts/retained-layer-sheet.test.mjs scripts/template-gallery-maintainer-acceptance.test.mjs scripts/template-recipe-history.test.mjs scripts/release-showcase-scope.test.mjs scripts/template-input-roles.test.mjs", "test:gallery-runner": "node --test scripts/template-gallery-runner.test.mjs && npm run test:demo-tools", diff --git a/scripts/control-inpaint-evidence.mjs b/scripts/control-inpaint-evidence.mjs index 52f1cb9f..3c07b846 100644 --- a/scripts/control-inpaint-evidence.mjs +++ b/scripts/control-inpaint-evidence.mjs @@ -42,6 +42,59 @@ const chain = [ const sha256 = (bytes) => createHash('sha256').update(bytes).digest('hex'); const literal = (value) => ({ value, source: 'literal' }); +export function verifyConditioningModels({ + loader, + target, + pipelineClass, + componentClass, + conditioningKind = 'controlnet', + componentParameter = 'controlnet', + completed, + hints, + runtime, + observations, +}) { + const base = { repoId: loader.model_id.value.value, revision: loader.revision.value }; + const control = { repoId: loader.conditioning_model_id.value.value, revision: loader.conditioning_revision.value }; + assert.equal(loader.pipeline_class.value, pipelineClass); + assert.equal(loader.conditioning_kind.value, conditioningKind); + assert.equal(loader.model_id.value.source, 'hub'); + assert.equal(loader.conditioning_model_id.value.source, 'hub'); + assert.equal(target.modelSet.length, 2); + assert.ok(target.modelSet.some(({ repoId, revision }) => repoId === base.repoId && revision === base.revision)); + assert.ok(target.modelSet.some(({ repoId, revision }) => repoId === control.repoId && revision === control.revision)); + assert.notEqual(base.repoId, control.repoId); + const { controlledArtifacts, loaderContract, ...completionHints } = completed.runtimeHints; + assert.deepEqual(completionHints, hints); + assert.deepEqual(loaderContract, ['modules.DiffusersImage.LoadPipeline']); + assert.equal(controlledArtifacts.length, 1); + const [conditioning] = controlledArtifacts; + assert.equal(conditioning.schemaVersion, 1); + assert.equal(conditioning.kind, 'diffusers_conditioning_component'); + assert.equal(conditioning.module, 'modules.DiffusersImage'); + assert.equal(conditioning.action, 'LoadPipeline'); + assert.deepEqual(conditioning.artifact, { source: 'hub', repository: control.repoId, revision: control.revision }); + assert.equal(conditioning.conditioningKind, conditioningKind); + assert.equal(conditioning.componentClass, componentClass); + assert.equal(conditioning.componentParameter, componentParameter); + assert.equal(conditioning.pipelineClass, pipelineClass); + assert.equal(conditioning.safeSerializationRequired, true); + assert.match(conditioning.descriptorSha256, /^[a-f0-9]{64}$/u); + assert.equal(observations.length, 2); + for (const model of [base, control]) { + const matching = observations.filter((observation) => selectInstalledModelIdentity(observation, model.repoId)); + assert.equal(matching.length, 1); + const [observation] = matching; + assert.equal(observation.error, false); + assert.equal(observation.runtimeFingerprint, runtime.fingerprint); + assert.equal(observation.models.length, 1); + assert.equal(observation.models[0].complete, true); + assert.equal(observation.models[0].repairRequired, false); + assert.equal(selectInstalledModelIdentity(observation, model.repoId).selectedRevision, model.revision); + } + return control; +} + function owners(api) { assert.equal(api.paths.length, 1); const [path] = api.paths; @@ -216,35 +269,17 @@ export async function readControlInpaintEvidence({ clientRoot, manifest, graph, verifyRetainedPngUpload(json(input.upload), input, decodedInputs[role], read(input.file).bytes); } - const loader = graphRequest.nodes[actual.loader].params; - const base = { repoId: loader.model_id.value.value, revision: loader.revision.value }; - const control = { repoId: loader.conditioning_model_id.value.value, revision: loader.conditioning_revision.value }; - assert.equal(loader.pipeline_class.value, pipelineClass); - assert.deepEqual(target.modelSet, [control, base]); - const { controlledArtifacts, loaderContract, ...completionHints } = completed.runtimeHints; - assert.deepEqual(completionHints, hints); - assert.deepEqual(loaderContract, ['modules.DiffusersImage.LoadPipeline']); - assert.equal(controlledArtifacts.length, 1); - const [conditioning] = controlledArtifacts; - assert.deepEqual(conditioning.artifact, { source: 'hub', repository: control.repoId, revision: control.revision }); - assert.equal(conditioning.componentClass, 'ControlNetModel'); - assert.equal(conditioning.pipelineClass, pipelineClass); - assert.equal(conditioning.safeSerializationRequired, true); const runtime = selectBackendRuntimeFingerprintEvidence([task.runtimeFingerprint]); - assert.equal(evidence.modelObservations.length, 2); - for (const [expectedModel, reference] of [ - [base, evidence.modelObservations[0]], - [control, evidence.modelObservations[1]], - ]) { - const observation = json(reference); - assert.equal(observation.error, false); - assert.equal(observation.runtimeFingerprint, runtime.fingerprint); - assert.equal(observation.models.length, 1); - assert.equal(observation.models[0].complete, true); - assert.equal(observation.models[0].repairRequired, false); - const verified = selectInstalledModelIdentity(observation, expectedModel.repoId); - assert.equal(verified?.selectedRevision, expectedModel.revision); - } + const control = verifyConditioningModels({ + loader: graphRequest.nodes[actual.loader].params, + target, + pipelineClass, + componentClass: 'ControlNetModel', + completed, + hints, + runtime, + observations: evidence.modelObservations.map(json), + }); const source = backendSourceEvidence({ before: json(evidence.backendSourceBefore).identity, after: json(evidence.backendSourceAfter).identity, diff --git a/scripts/release-contract-core.mjs b/scripts/release-contract-core.mjs index f1fae756..302148e6 100644 --- a/scripts/release-contract-core.mjs +++ b/scripts/release-contract-core.mjs @@ -891,6 +891,10 @@ export async function readCanonicalWorkflowEvidence({ clientRoot, backendRoot, w const { readControlInpaintEvidence } = await import('./control-inpaint-evidence.mjs'); return readControlInpaintEvidence({ clientRoot, manifest, graph, authoring, artifact, evidencePath }); } + if (evidence.format === 'modiff.private.saved-control-image-native-png.v1') { + const { readSavedControlImageEvidence } = await import('./saved-control-image-evidence.mjs'); + return readSavedControlImageEvidence({ clientRoot, manifest, graph, authoring, artifact, evidencePath }); + } if (evidence.format === 'modiff.private.wan-first-last-frame-variant.v1') { const { readWanFirstLastEvidence } = await import('./wan-first-last-evidence.mjs'); return readWanFirstLastEvidence({ clientRoot, manifest, graph, authoring, artifact, evidencePath }); diff --git a/scripts/saved-control-image-evidence.mjs b/scripts/saved-control-image-evidence.mjs new file mode 100644 index 00000000..56dbeae8 --- /dev/null +++ b/scripts/saved-control-image-evidence.mjs @@ -0,0 +1,351 @@ +import assert from 'node:assert/strict'; +import { createHash } from 'node:crypto'; +import { readFileSync, realpathSync } from 'node:fs'; +import { dirname } from 'node:path'; +import { verifyConditioningModels } from './control-inpaint-evidence.mjs'; +import { + backendContractIdentity, + backendSourceEvidence, + canonicalGraphIdentity, + normalizeBackendRuntime, + selectBackendRuntimeFingerprintEvidence, +} from './live-proof-provenance.mjs'; +import { verifyNativeLoadedImage } from './native-image-load-evidence.mjs'; +import { + validateLateNativeImageVariantRun, + validateNativeVariantOutput, + validateNativeVariantRun, + validateUnmodifiedExpertPreparation, +} from './native-variant-run-evidence.mjs'; +import { verifyRetainedPngUpload } from './private-image-edit-evidence.mjs'; +import { + canonicalWorkflowAuthoringContract, + exportCanonicalWorkflowGraphs, + readCanonicalEvidenceFile, +} from './release-contract-core.mjs'; +import { decodedMediaHash, technicalMediaErrors } from './template-gallery-harness.mjs'; + +const format = 'modiff.private.saved-control-image-native-png.v1'; +const replayRuntime = '8cbe038eeeb6d4a4c079783b8d7e4915d9f78faad9495cb8e354504c66925cf5'; +const commonSource = 'e3aea8f8d102572ad10fdd0700f0c42d92061e864ede89777efcd6a3269770a8'; +const sdxlSource = '371fd754663a95b1b06900df9a838042048466464b4bd5cfa7033c1b6eebe0e3'; +const routes = { + 'StableDiffusionPipeline:control_image': { + pipelineClass: 'StableDiffusionControlNetPipeline', + componentClass: 'ControlNetModel', + source: commonSource, + canny: true, + }, + 'HunyuanDiTControlNetPipeline:control_image': { + pipelineClass: 'HunyuanDiTControlNetPipeline', + componentClass: 'HunyuanDiT2DControlNetModel', + source: '1aae04a8ad2e66aeb3eaacc065f2e111280bd8a64e7e6cb95cc927fed95d6b39', + canny: true, + guidanceWindowUnavailable: true, + lateOutput: true, + }, + 'QwenImageControlNetPipeline:control_image': { + pipelineClass: 'QwenImageControlNetPipeline', + componentClass: 'QwenImageControlNetModel', + source: commonSource, + canny: false, + trueCfg: true, + }, + 'StableDiffusionPAGPipeline:control_image': { + pipelineClass: 'StableDiffusionControlNetPAGPipeline', + componentClass: 'ControlNetModel', + source: commonSource, + canny: true, + lateOutput: true, + pagSettingsUnobserved: true, + }, + 'StableDiffusionXLControlNetPipeline:control_image': { + pipelineClass: 'StableDiffusionXLControlNetPipeline', + componentClass: 'ControlNetModel', + source: sdxlSource, + canny: true, + }, + 'StableDiffusionXLAdapterPipeline:control_image': { + pipelineClass: 'StableDiffusionXLAdapterPipeline', + componentClass: 'T2IAdapter', + conditioningKind: 't2i_adapter', + componentParameter: 'adapter', + source: sdxlSource, + canny: true, + guidanceWindowUnavailable: true, + }, +}; +const sha256 = (bytes) => createHash('sha256').update(bytes).digest('hex'); +const connected = (sourceId, sourceKey) => ({ display: 'input', sourceId, sourceKey }); +const literal = (value) => ({ value, source: 'literal' }); + +function owners(api, route) { + assert.equal(api.paths.length, 1); + const [path] = api.paths; + assert.deepEqual([...path].sort(), Object.keys(api.nodes).sort()); + const setup = [ + 'modules.DiffusersRuntime.PipelineQuantizationConfigV2', + 'modules.DiffusersRuntime.DiffusersExecutionRecipe', + 'modules.DiffusersImage.LoadPipeline', + ]; + const load = 'modules.Image.Load'; + assert.deepEqual( + path.map((id) => { + const { module, action } = api.nodes[id]; + return module + '.' + action; + }), + [ + ...(route.canny ? [load, 'modules.ImageFilters.Canny', ...setup] : [...setup, load]), + 'modules.DiffusersImage.ControlGenerate', + 'modules.Image.Preview', + ], + ); + const [source, canny, loader] = route.canny ? [path[0], path[1], path[4]] : [path[3], null, path[2]]; + const [sampler, preview] = path.slice(-2); + return { path, source, canny, loader, sampler, preview }; +} + +export function verifySavedControlImageInputs(api, output, input, workflowId) { + const route = routes[workflowId]; + assert.ok(route, 'No reviewed saved control-image route.'); + const { path, source, canny, loader, sampler, preview } = owners(api, route); + const receipt = output.resolvedExecutionInputs; + assert.equal(receipt.schemaVersion, 1); + assert.equal(receipt.source, 'backend-execution'); + assert.equal(receipt.taskId, output.taskId); + assert.equal(receipt.nodeId, preview); + assert.equal(receipt.attemptIndex, 0); + assert.equal(receipt.truncated, false); + assert.deepEqual(receipt.mediaEvidenceStatus, { schemaVersion: 1, truncated: false }); + assert.deepEqual(receipt.unavailableFields, []); + assert.deepEqual(receipt.uncapturedNodeIds, []); + assert.deepEqual(receipt.nodes.map(({ nodeId }) => nodeId).sort(), [...path].sort()); + const record = (id) => { + const row = receipt.nodes.find(({ nodeId }) => nodeId === id); + assert.equal(row.module, api.nodes[id].module); + assert.equal(row.action, api.nodes[id].action); + assert.deepEqual(row.omittedFields, {}); + return row; + }; + const { sourceFile, decodedImage } = verifyNativeLoadedImage(api.nodes[source], record(source), 'RGB'); + assert.deepEqual(sourceFile, { + sourceValue: input.sourceValue, + sha256: input.file.sha256, + byteSize: input.file.bytes, + }); + const params = api.nodes[sampler].params; + assert.deepEqual(params.pipeline, connected(loader, 'pipeline')); + assert.deepEqual(params.control_image, connected(canny ?? source, canny ? 'output' : 'image')); + assert.deepEqual(api.nodes[preview].params.image, connected(sampler, 'images')); + if (canny) { + assert.deepEqual(api.nodes[canny].params.image, connected(source, 'image')); + assert.deepEqual(record(canny).fields, { device: literal(api.nodes[canny].params.device.value) }); + assert.equal(record(canny).mediaEvidence, undefined); + } + const expected = Object.fromEntries( + [ + 'prompt', + 'negative_prompt', + 'output_type', + 'num_inference_steps', + 'width', + 'height', + 'conditioning_scale', + 'seed', + ].map((field) => [field, params[field].value]), + ); + Object.assign(expected, { + executed_task: 'control_image', + strength: null, + guidance_scale: route.trueCfg ? null : params.guidance_scale.value, + max_sequence_length: route.trueCfg ? params.max_sequence_length.value : null, + control_guidance_start: route.guidanceWindowUnavailable ? null : params.control_guidance_start.value, + control_guidance_end: route.guidanceWindowUnavailable ? null : params.control_guidance_end.value, + ...(route.trueCfg && { true_cfg_scale: params.guidance_scale.value }), + }); + const nativeSampler = record(sampler); + assert.deepEqual( + nativeSampler.fields, + Object.fromEntries(Object.entries(expected).map(([field, value]) => [field, literal(value)])), + 'Saved control sampler fields differ from the graph.', + ); + assert.equal(nativeSampler.mediaEvidence, undefined); + return decodedImage; +} + +export async function readSavedControlImageEvidence({ + clientRoot, + manifest, + graph, + authoring, + artifact, + evidencePath, +}) { + const route = routes[manifest.id]; + assert.ok(route, 'No reviewed saved control-image route.'); + const target = canonicalWorkflowAuthoringContract(manifest, graph, authoring, artifact); + const descriptorBytes = readFileSync(evidencePath); + const evidence = JSON.parse(descriptorBytes); + assert.equal(evidence.format, format); + assert.equal(evidence.schemaVersion, 1); + assert.equal(evidence.workflowId, manifest.id); + const evidenceRoot = realpathSync(dirname(evidencePath)); + const retainedFiles = []; + const read = (ref) => { + const result = readCanonicalEvidenceFile(evidenceRoot, ref, 16 * 1024 * 1024); + retainedFiles.push({ ...ref, absolutePath: result.file }); + return result; + }; + const json = (ref) => JSON.parse(read(ref).bytes); + const creator = json(evidence.creatorPackage); + const outputPackage = json(evidence.outputPackage); + const run = json(evidence.runDetail); + const graphRequest = json(evidence.graphRequest); + const completed = json(evidence.graphCompleted); + const [expected, ...visual] = await exportCanonicalWorkflowGraphs(clientRoot, [ + graph, + creator.graph, + outputPackage.latestOutput.graphSnapshot, + run.workflow_snapshot, + ]); + const canonical = owners(expected, route); + const actual = owners(graphRequest, route); + assert.equal(canonicalGraphIdentity(expected).hash, evidence.originalGraphHash); + const [input] = evidence.inputs; + assert.equal(evidence.inputs.length, 1); + assert.match(input.sourceValue, /^@data\/images\/[\w-]{1,128}\.png$/u); + const fileSlot = expected.nodes[canonical.source].params.file; + assert.deepEqual(fileSlot, { display: 'filebrowser', value: '' }); + fileSlot.value = [input.sourceValue]; + const prompt = graphRequest.nodes[actual.sampler].params.prompt.value; + assert.ok(typeof prompt === 'string' && prompt.length > 0 && prompt.length <= 4096 && prompt === prompt.trim()); + assert.ok(!/[\u0000-\u001f\u007f]/u.test(prompt)); + const promptSlot = expected.nodes[canonical.sampler].params.prompt; + assert.deepEqual(promptSlot, { display: 'textarea', value: '' }); + promptSlot.value = prompt; + const identity = canonicalGraphIdentity(expected); + for (const graphSource of [graphRequest, creator.apiGraph, ...visual]) { + assert.equal( + canonicalGraphIdentity(graphSource).hash, + identity.hash, + 'Saved graph differs outside its prompt and guide.', + ); + } + const validate = route.lateOutput ? validateLateNativeImageVariantRun : validateNativeVariantRun; + const { task, output, hints } = validate({ + target, + outputNodeId: actual.preview, + displayType: 'image', + creator, + outputPackage, + run, + graphCompleted: completed, + graphRequest, + graphAcknowledgment: json(evidence.graphAcknowledgment), + validatePreparation: (value) => validateUnmodifiedExpertPreparation(value, route.pipelineClass), + ...(route.lateOutput && { persistedOutput: json(evidence.persistedOutput).outputs[0] }), + }); + const decodedImage = verifySavedControlImageInputs(graphRequest, output, input, manifest.id); + verifyRetainedPngUpload(json(input.upload), input, decodedImage, read(input.file).bytes); + const source = backendSourceEvidence({ + before: json(evidence.backendSourceBefore).identity, + after: json(evidence.backendSourceAfter).identity, + runtimeFingerprint: task.runtimeFingerprint, + }); + assert.deepEqual(source.blockers, []); + const expectedSource = 'sha256:backend-source-v1:' + route.source; + assert.equal(source.identity.fingerprint, expectedSource); + const replay = json(evidence.registryReplay); + const { bytes: nodeBytes } = read(evidence.nodes); + assert.deepEqual(replay, { + scope: 'Original nodes handler only, with exact source and runtime contract', + modelRuns: 0, + fileCount: source.identity.files.length, + sourceFingerprint: expectedSource, + runtimeContract: replayRuntime, + nodeHash: sha256(nodeBytes), + nodeBytes: nodeBytes.length, + }); + const backendContract = backendContractIdentity(JSON.parse(nodeBytes), identity.canonicalGraph); + assert.ok(backendContract.fingerprint); + const runtime = selectBackendRuntimeFingerprintEvidence([task.runtimeFingerprint]); + const control = verifyConditioningModels({ + loader: graphRequest.nodes[actual.loader].params, + target, + pipelineClass: route.pipelineClass, + componentClass: route.componentClass, + conditioningKind: route.conditioningKind, + componentParameter: route.componentParameter, + completed, + hints, + runtime, + observations: evidence.modelObservations.map(json), + }); + const measurement = task.runtimeMeasurement; + assert.match(runtime.packages.platform, /^Linux-/u); + assert.equal(measurement.backend, 'rocm'); + assert.equal(measurement.device, 'cuda:0'); + assert.equal(measurement.peakMeasurementVersion, 2); + assert.ok(measurement.elapsedSeconds > 0 && measurement.elapsedSeconds <= 7200); + assert.ok(measurement.peakAllocatedBytes > 0 && measurement.peakReservedBytes >= measurement.peakAllocatedBytes); + assert.equal(evidence.outputs.length, 1); + const [outputRef] = evidence.outputs; + const media = read(outputRef.file); + const item = validateNativeVariantOutput({ + output, + outputRef, + task, + bytes: media.bytes, + displayType: 'image', + contentType: 'image/webp', + }); + const decoded = await decodedMediaHash(media.file, 'image'); + const params = graphRequest.nodes[actual.sampler].params; + assert.deepEqual(technicalMediaErrors(decoded, { width: params.width.value, height: params.height.value }), []); + assert.deepEqual([item.width, item.height], [decoded.width, decoded.height]); + for (const ref of retainedFiles) readCanonicalEvidenceFile(evidenceRoot, ref, 16 * 1024 * 1024); + assert.ok(readFileSync(evidencePath).equals(descriptorBytes)); + const receipt = { + schemaVersion: 1, + format: 'modiff.canonical-workflow-run-receipt.v1', + proofKind: 'real_backend_input_bound_model_variant', + ...target, + graphHash: identity.hash, + capturedAt: new Date(task.completed_at * 1000).toISOString(), + taskId: task.task_id, + outputId: output.id, + runtimeFingerprint: normalizeBackendRuntime(runtime).lockFingerprint, + backendSourceFingerprint: source.identity.fingerprint, + backendContractFingerprint: backendContract.fingerprint, + resourceCandidateId: null, + outputHash: item.mediaHash, + executionDurationSeconds: measurement.elapsedSeconds, + peakMemoryBytes: measurement.peakAllocatedBytes, + canonicalDefaultsExecuted: false, + inputBinding: { nodeId: actual.source, field: 'file', sha256: input.file.sha256, decodedImage }, + conditioningModel: control, + promptBinding: { nodeId: actual.sampler, field: 'prompt', sha256: sha256(prompt) }, + decodedOutput: { hash: decoded.hash, width: decoded.width, height: decoded.height }, + observationLimits: { + fullConsumedFieldAccounting: false, + processedControlPixelsObserved: false, + ...(route.pagSettingsUnobserved && { effectivePagSettingsObserved: false }), + physicalPlatformQualification: false, + }, + qualificationClaims: { + publicTemplate: false, + qualityApproved: false, + rightsApproved: false, + hardwareQualified: false, + modelResourceQualified: false, + }, + }; + return { + receipt, + descriptorBytes, + evidence, + evidenceRoot, + retainedFiles, + provenance: { format: 'modiff.input-bound-model-variant-proof.v1', receipt }, + }; +} diff --git a/scripts/saved-control-image-evidence.test.mjs b/scripts/saved-control-image-evidence.test.mjs new file mode 100644 index 00000000..5f9b9411 --- /dev/null +++ b/scripts/saved-control-image-evidence.test.mjs @@ -0,0 +1,89 @@ +import assert from 'node:assert/strict'; +import { dirname, join, resolve } from 'node:path'; +import test from 'node:test'; +import { fileURLToPath } from 'node:url'; +import { verifyConditioningModels } from './control-inpaint-evidence.mjs'; +import { selectBackendRuntimeFingerprintEvidence } from './live-proof-provenance.mjs'; +import { readCanonicalEvidenceFile, readCanonicalWorkflowEvidence } from './release-contract-core.mjs'; +import { verifySavedControlImageInputs } from './saved-control-image-evidence.mjs'; + +const clientRoot = fileURLToPath(new URL('..', import.meta.url)); +const backendRoot = resolve(process.env.MODIFF_BACKEND_DIR ?? join(clientRoot, '../MoDiff')); +const root = process.env.MODIFF_SAVED_CONTROL_EVIDENCE_DIR; +const cases = [ + ['linux-sd15-control-fixed', 'StableDiffusionPipeline:control_image', 'ControlNetModel', 'qa0wL-hE_WwQ'], + [ + 'linux-hunyuan-control-rgb', + 'HunyuanDiTControlNetPipeline:control_image', + 'HunyuanDiT2DControlNetModel', + '9FZlS44JVBae', + ], + ['linux-qwen-control-cabin', 'QwenImageControlNetPipeline:control_image', 'QwenImageControlNetModel', 'G2OjPY6F4u5L'], + ['linux-sd15-pag-control-fixed', 'StableDiffusionPAGPipeline:control_image', 'ControlNetModel', 'npMHx5LR2lWq'], + [ + 'linux-sdxl-controlnet-checked', + 'StableDiffusionXLControlNetPipeline:control_image', + 'ControlNetModel', + 'UlftQtP0nIJk', + ], + ['linux-canny-adapter-fixed', 'StableDiffusionXLAdapterPipeline:control_image', 'T2IAdapter', 'gWs5V9Dz1NY-'], +]; + +for (const [slug, workflowId, componentClass, taskId] of cases) { + test('recovers the historical guide and verified sampler for ' + workflowId, { skip: !root }, async () => { + const evidencePath = resolve(root, slug, 'exact-native-evidence.json'); + const { receipt, evidence } = await readCanonicalWorkflowEvidence({ + clientRoot, + backendRoot, + workflowId, + evidencePath, + }); + assert.equal(receipt.proofKind, 'real_backend_input_bound_model_variant'); + assert.equal(receipt.taskId, taskId); + assert.equal(receipt.observationLimits.processedControlPixelsObserved, false); + assert.equal(receipt.qualificationClaims.rightsApproved, false); + assert.equal(receipt.inputBinding.sha256, evidence.inputs[0].file.sha256); + const read = (ref) => JSON.parse(readCanonicalEvidenceFile(dirname(evidencePath), ref).bytes); + const graph = read(evidence.graphRequest); + const { latestOutput: output } = read(evidence.outputPackage); + const [input] = evidence.inputs; + const sampler = (api) => Object.values(api.nodes).find(({ action }) => action === 'ControlGenerate'); + const disconnected = structuredClone(graph); + sampler(disconnected).params.control_image.sourceKey = 'width'; + assert.throws(() => verifySavedControlImageInputs(disconnected, output, input, workflowId), assert.AssertionError); + + const changedGuide = { ...input, file: { ...input.file, sha256: '0'.repeat(64) } }; + assert.throws(() => verifySavedControlImageInputs(graph, output, changedGuide, workflowId), assert.AssertionError); + + const changedSettings = structuredClone(output); + const fields = changedSettings.resolvedExecutionInputs.nodes.find( + ({ action }) => action === 'ControlGenerate', + ).fields; + const guidance = fields.true_cfg_scale ?? fields.guidance_scale; + guidance.value += 1; + assert.throws( + () => verifySavedControlImageInputs(graph, changedSettings, input, workflowId), + /Saved control sampler fields differ/u, + ); + + const completed = read(evidence.graphCompleted); + completed.runtimeHints.controlledArtifacts[0].componentClass = 'OtherComponent'; + const loader = Object.values(graph.nodes).find(({ action }) => action === 'LoadPipeline').params; + assert.throws( + () => + verifyConditioningModels({ + loader, + target: receipt, + pipelineClass: loader.pipeline_class.value, + componentClass, + conditioningKind: loader.conditioning_kind.value, + componentParameter: componentClass === 'T2IAdapter' ? 'adapter' : 'controlnet', + completed, + hints: output.apiGraphSnapshot.runtimeHints, + runtime: selectBackendRuntimeFingerprintEvidence([read(evidence.runDetail).task.runtimeFingerprint]), + observations: evidence.modelObservations.map(read), + }), + /OtherComponent/u, + ); + }); +} From bc864f5daf8d17151b98b68e1967db9c40649e80 Mon Sep 17 00:00:00 2001 From: Sourav Das Date: Wed, 25 Nov 2026 07:05:18 +0530 Subject: [PATCH 358/440] Verify saved guided edits and captured video workflows --- CONTRIBUTING.md | 17 +- scripts/prompt-variant-evidence.mjs | 148 ++++++++++++++++-- scripts/prompt-variant-evidence.test.mjs | 37 ++++- scripts/release-contract-core.mjs | 3 + scripts/saved-control-image-evidence.mjs | 121 ++++++++++---- scripts/saved-control-image-evidence.test.mjs | 44 ++++-- 6 files changed, 305 insertions(+), 65 deletions(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index fb54131c..d03e9529 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -550,12 +550,17 @@ produced the recorded RGB source and grayscale mask and that those exact pixels and dimensions reached their respective Inpaint ports. Its receipt binds the source and mask separately to the saved Expert execution. -The saved control-image reader verifies the original PNG upload and decoded -source, the guide wire into the sampler, the main and conditioning model -revisions, and the observed sampler settings. An archived node registry can -be replayed from the original source and runtime contract without inference. -The receipt records when the saved run lacks processed guide pixels or -effective PAG settings. +The saved control-image reader verifies the original PNG uploads and decoded +media, each guide, source and mask wire into the applicable sampler ports, the +main and conditioning model revisions, and the observed sampler settings. +An archived node registry can be replayed from the original source and runtime +contract without inference. The receipt records when the saved run lacks +processed guide pixels or effective PAG settings. + +AnimateDiff prompt and source-video receipts bind the base model and motion +adapter revisions. For a saved edit, the original upload and typed video wire +bind the source. The receipt records unavailable sampler observations, such +as the effective PAG controls or normalized source frames. The reviewed Marigold synthetic ramp, SmolLM2 rain-gauge, Spandrel Real-ESRGAN 2×, Whisper Tiny transcription and LCM dawn edit use declarations in diff --git a/scripts/prompt-variant-evidence.mjs b/scripts/prompt-variant-evidence.mjs index 04590e63..b82f7845 100644 --- a/scripts/prompt-variant-evidence.mjs +++ b/scripts/prompt-variant-evidence.mjs @@ -254,6 +254,60 @@ const cogVideoEditRoute = { ], }; +const animateDiffPagRoute = { + ...wanA14BRoute, + format: 'modiff.private.animatediff-pag-video-prompt-variant.v1', + workflowId: 'AnimateDiffPAGPipeline:text_to_video', + modelType: 'AnimateDiffPAGPipeline', + platform: /^Windows-/u, + backend: 'cuda', + previousExpertFamily: 'AudioLDM2Pipeline', + modelRepo: 'stable-diffusion-v1-5/stable-diffusion-v1-5', + modelRevision: '451f4fe16113bff5a5d2269ed5ad43b0592e9a14', + motionAdapter: { + repoId: 'guoyww/animatediff-motion-adapter-v1-5-2', + revision: '6167b88ffe39b4441fdf2113e77b99a6f56b7906', + }, + configuredUnobservedControls: ['pag_scale', 'pag_adaptive_scale'], +}; + +const animateDiffEditRoute = { + ...cogVideoEditRoute, + format: 'modiff.private.animatediff-source-video-variant.v1', + workflowId: 'AnimateDiffVideoToVideoPipeline:video_to_video', + modelType: 'AnimateDiffVideoToVideoPipeline', + platform: animateDiffPagRoute.platform, + backend: animateDiffPagRoute.backend, + modelRepo: animateDiffPagRoute.modelRepo, + modelRevision: animateDiffPagRoute.modelRevision, + motionAdapter: animateDiffPagRoute.motionAdapter, + sourceFingerprint: 'sha256:backend-source-v1:2beaa95aae8558e64cf99f056b011d00c0653dc7d03987cd67c8ed7e774c770e', + replayedRuntimeContract: 'e5d045d5ecf997c0cfe8dba771fd92cfc1fef6d3e10d91791b2b5e747f384b3c', + reviewedSettings: [['generator', 'strength', 0.8, 0.45]], +}; + +const allegroRoute = { + ...wanA14BRoute, + format: 'modiff.private.allegro-video-prompt-variant.v1', + workflowId: 'AllegroPipeline:text_to_video', + modelType: 'AllegroPipeline', + previousExpertFamily: 'AllegroPipeline', + modelRepo: 'rhymes-ai/Allegro', + modelRevision: 'c1b9207bb5cb79e2aa08f3d139c17d26c0de55b6', + sourceFingerprint: 'sha256:backend-source-v1:b29a5b0d317aaa781ae2a5205b46b518eea5a3d68a214eb0968dba4ac0660af7', + bindNegativePrompt: true, + reviewedSettings: [ + ['recipe', 'attention_backend', '_native_math', 'auto'], + ['recipe', 'offload_mode', 'sequential_cpu', 'model_cpu'], + ], + retainedOffloadFallback: 'sequential_cpu', +}; + +const promptModelSet = (profile) => [ + ...(profile.motionAdapter ? [profile.motionAdapter] : []), + { repoId: profile.modelRepo, revision: profile.modelRevision }, +]; + const imagePromptRoute = { outputKind: 'image', displayType: 'image', @@ -332,6 +386,12 @@ export function bindPromptVariant(profile, original, created, output, baselineHa } const baseline = canonicalGraphIdentity(expected); assert.equal(baseline.hash, baselineHash, 'The current authored prompt recipe differs from the original baseline.'); + for (const [role, field, defaultValue, reviewedValue] of profile.reviewedSettings ?? []) { + const param = expectedOwners[role].node.params[field]; + assert.equal(param.value, defaultValue); + assert.ok(!param.sourceId && !param.sourceKey, 'The reviewed setting must be literal.'); + param.value = reviewedValue; + } const expectedInputs = expectedOwners.generator.node.params; if (profile.bindsImage) { assert.match(sourceValue, /^@data\/images\/[a-z0-9_-]{1,120}[.]png$/iu); @@ -361,6 +421,17 @@ export function bindPromptVariant(profile, original, created, output, baselineHa assert.ok(typeof prompt === 'string' && prompt.length <= 4096 && prompt.trim() === prompt && prompt.length > 0); assert.ok(!/[\u0000-\u001f\u007f]/u.test(prompt), 'Prompt exercise contains an unsupported control character.'); promptSlot.value = prompt; + let negativePrompt; + if (profile.bindNegativePrompt) { + const slot = expectedInputs.negative_prompt; + assert.deepEqual(slot, { value: '', display: 'textarea' }); + negativePrompt = submittedOwners.generator.node.params.negative_prompt.value; + assert.ok( + typeof negativePrompt === 'string' && negativePrompt.length <= 4096 && negativePrompt.trim() === negativePrompt, + ); + assert.ok(!/[\u0000-\u001f\u007f]/u.test(negativePrompt)); + slot.value = negativePrompt; + } let seed; if (profile.bindSeed) { const seedSlot = expectedInputs.seed; @@ -379,7 +450,7 @@ export function bindPromptVariant(profile, original, created, output, baselineHa ? 'Prompt variant changed a field or wire outside the bound prompt and seed.' : 'Prompt variant changed a field or wire outside the empty prompt.'; for (const graph of [created, output]) same(canonicalGraphIdentity(graph), identity, mismatch); - return { ...submittedOwners, identity, prompt, expected, seed }; + return { ...submittedOwners, identity, prompt, negativePrompt, expected, seed }; } function validateConsumedPromptVariant(profile, bound, output, suppliedImage) { @@ -401,6 +472,10 @@ function validateConsumedPromptVariant(profile, bound, output, suppliedImage) { // The connected execution recipe wins over this retained loader fallback. assert.equal(bound.loader.node.params.enable_vae_tiling.value, true); same(consumed.ambiguousFields, ['vaeTiling']); + } else if (profile.retainedOffloadFallback) { + assert.equal(bound.loader.node.params.offload_mode.value, profile.retainedOffloadFallback); + assert.equal(bound.recipe.node.params.offload_mode.value, 'model_cpu'); + same(consumed.ambiguousFields, ['offloadMode']); } else same(consumed.ambiguousFields, []); const roles = profile.chain.map(([role]) => bound[role]); same( @@ -462,7 +537,7 @@ function validateConsumedPromptVariant(profile, bound, output, suppliedImage) { return image; } -function validateNativePromptRuntime(profile, bound, task, hints, graphCompleted, observation) { +function validateNativePromptRuntime(profile, bound, task, hints, graphCompleted, observations) { same( graphCompleted.runtimeHints, { ...hints, controlledArtifacts: [], loaderContract: profile.loaderContract }, @@ -480,17 +555,27 @@ function validateNativePromptRuntime(profile, bound, task, hints, graphCompleted assert.ok(Number.isSafeInteger(peakAllocatedBytes)); if (profile.executionDevice === 'cpu:0') assert.equal(peakAllocatedBytes, 0); else assert.ok(peakAllocatedBytes > 0); - assert.equal(observation.error, false); - assert.equal(observation.runtimeFingerprint, runtime.fingerprint); - assert.equal(observation.models.length, 1); - const model = selectInstalledModelIdentity(observation, profile.modelRepo); - const [{ complete, repairRequired }] = observation.models; - assert.equal(complete, true); - assert.equal(repairRequired, false); - assert.equal(model?.selectedRevision, profile.modelRevision); - assert.equal(model?.modelRevision, `${profile.modelRepo}@${profile.modelRevision}`); + for (const { repoId, revision } of promptModelSet(profile)) { + const matching = observations.filter((observation) => selectInstalledModelIdentity(observation, repoId)); + assert.equal(matching.length, 1, 'Expected a single installed identity for ' + repoId); + const [observation] = matching; + assert.equal(observation.error, false); + assert.equal(observation.runtimeFingerprint, runtime.fingerprint); + assert.equal(observation.models.length, 1); + const model = selectInstalledModelIdentity(observation, repoId); + const [{ complete, repairRequired }] = observation.models; + assert.equal(complete, true); + assert.equal(repairRequired, false); + assert.equal(model.selectedRevision, revision); + assert.equal(model.modelRevision, repoId + '@' + revision); + } same(bound.loader.node.params.model_id.value, { source: 'hub', value: profile.modelRepo }); assert.equal(bound.loader.node.params.revision.value, profile.modelRevision); + if (profile.motionAdapter) { + const { motion_adapter_id, motion_adapter_revision } = bound.loader.node.params; + same(motion_adapter_id.value, { source: 'hub', value: profile.motionAdapter.repoId }); + assert.equal(motion_adapter_revision.value, profile.motionAdapter.revision); + } return { runtime, measurement: task.runtimeMeasurement }; } @@ -798,9 +883,13 @@ export async function readPromptVariantEvidence({ clientRoot, manifest, graph, a wanA14BRoute, cogVideoRoute, cogVideoEditRoute, + animateDiffPagRoute, + animateDiffEditRoute, + allegroRoute, ].find(({ workflowId }) => workflowId === target.workflowId); assert.ok(profile, 'Prompt variant route is not reviewed.'); - const generatedVideo = profile === wanA14BRoute || profile === cogVideoRoute || profile === cogVideoEditRoute; + const generatedVideo = + profile.outputKind === 'video' && ['text_to_video', 'video_to_video'].includes(profile.executedTask); const generatedAudio = profile === audioRoute || profile === audioLdmRoute; const requiresOriginalRequest = imageRoute !== undefined || @@ -811,7 +900,7 @@ export async function readPromptVariantEvidence({ clientRoot, manifest, graph, a generatedAudio || generatedVideo; const sampledCpuMemory = profile.executionDevice === 'cpu:0'; - same(target.modelSet, [{ repoId: profile.modelRepo, revision: profile.modelRevision }]); + same(target.modelSet, promptModelSet(profile)); assert.equal(target.outputPlan.minimumAssetCount, 1); assert.ok(target.outputPlan.mediaKinds.includes(profile.outputKind)); const stat = lstatSync(evidencePath); @@ -836,6 +925,7 @@ export async function readPromptVariantEvidence({ clientRoot, manifest, graph, a ...(requiresOriginalRequest ? ['graphRequest', 'graphAcknowledgment'] : []), ...(profile.lateNativeSnapshot ? ['persistedOutputs'] : []), ...(sampledCpuMemory ? ['worker', 'resourceSamples'] : []), + ...(profile.replayedRuntimeContract ? ['registryReplay'] : []), ]); assert.equal(evidence.schemaVersion, 1); assert.equal(evidence.format, profile.format); @@ -844,7 +934,7 @@ export async function readPromptVariantEvidence({ clientRoot, manifest, graph, a assert.equal(evidence.inputs.length, profile.bindsImage || profile.bindsVideoUpload ? 1 : 0); const [suppliedInput] = evidence.inputs; if (suppliedInput) keys(suppliedInput, ['sourceValue', 'file', 'upload']); - assert.equal(evidence.modelObservations.length, 1); + assert.equal(evidence.modelObservations.length, target.modelSet.length); assert.equal(evidence.outputs.length, 1); const [outputRef] = evidence.outputs; keys(outputRef, ['backendPath', 'mediaType', 'file']); @@ -995,7 +1085,19 @@ export async function readPromptVariantEvidence({ clientRoot, manifest, graph, a }, }; } - const nodes = json(evidence.nodes); + const nodeBytes = read(evidence.nodes).bytes; + const nodes = JSON.parse(nodeBytes); + if (profile.replayedRuntimeContract) { + same(json(evidence.registryReplay), { + scope: 'Original nodes handler only, with exact source and runtime contract', + modelRuns: 0, + fileCount: source.identity.files.length, + sourceFingerprint: source.identity.fingerprint, + runtimeContract: profile.replayedRuntimeContract, + nodeHash: digest(nodeBytes), + nodeBytes: nodeBytes.length, + }); + } const backendContract = backendContractIdentity(nodes, bound.identity.canonicalGraph); assert.ok(backendContract.fingerprint, 'Native backend contract fingerprint is missing.'); for (const [role, module, action] of profile.chain) { @@ -1013,7 +1115,7 @@ export async function readPromptVariantEvidence({ clientRoot, manifest, graph, a task, hints, graphCompleted, - json(evidence.modelObservations[0]), + evidence.modelObservations.map(json), ); const peakMemoryBytes = sampledCpuMemory ? validateSampledCpuWorkerMemory( @@ -1105,6 +1207,15 @@ export async function readPromptVariantEvidence({ clientRoot, manifest, graph, a peakMemoryBytes, canonicalDefaultsExecuted: false, promptBinding: { nodeId: bound.generator.id, field: 'prompt', sha256: digest(bound.prompt) }, + ...(profile.bindNegativePrompt + ? { + negativePromptBinding: { + nodeId: bound.generator.id, + field: 'negative_prompt', + sha256: digest(bound.negativePrompt), + }, + } + : {}), ...(inputBinding ? { inputBinding } : {}), ...(accounting ? { seedBinding: { nodeId: bound.generator.id, field: 'seed', value: bound.seed } } : {}), decodedOutput, @@ -1118,6 +1229,11 @@ export async function readPromptVariantEvidence({ clientRoot, manifest, graph, a ...(profile.bindsVideoUpload ? { sourceVideoByteWitness: 'original-upload-and-typed-wire', normalizedConsumerFramesObserved: false } : {}), + ...(profile.motionAdapter ? { motionAdapterBoundByGraph: true } : {}), + ...(profile.configuredUnobservedControls + ? { configuredUnobservedControls: profile.configuredUnobservedControls } + : {}), + ...(profile.retainedOffloadFallback ? { retainedLoaderOffloadFallback: profile.retainedOffloadFallback } : {}), }, qualificationClaims: { publicTemplate: false, diff --git a/scripts/prompt-variant-evidence.test.mjs b/scripts/prompt-variant-evidence.test.mjs index 36b834f1..7d187dee 100644 --- a/scripts/prompt-variant-evidence.test.mjs +++ b/scripts/prompt-variant-evidence.test.mjs @@ -385,7 +385,15 @@ for (const [workflowId, variable, kind, proofKind = 'real_backend_prompt_bound_m ['HuggingFaceTextGenerationModel:text_generation', 'MODIFF_SMOLLM2_PROMPT_EVIDENCE', 'json'], ['ShapEPipeline:text_to_3d', 'MODIFF_SHAPE_PROMPT_EVIDENCE', 'video'], ['Wan22Pipeline:text_to_video', 'MODIFF_WAN_A14B_VIDEO_PROMPT_EVIDENCE', 'video'], + ['AllegroPipeline:text_to_video', 'MODIFF_ALLEGRO_VIDEO_PROMPT_EVIDENCE', 'video'], ['CogVideoXPipeline:text_to_video', 'MODIFF_COGVIDEOX_VIDEO_PROMPT_EVIDENCE', 'video'], + ['AnimateDiffPAGPipeline:text_to_video', 'MODIFF_ANIMATEDIFF_PAG_VIDEO_EVIDENCE', 'video'], + [ + 'AnimateDiffVideoToVideoPipeline:video_to_video', + 'MODIFF_ANIMATEDIFF_EDIT_VIDEO_EVIDENCE', + 'video', + 'real_backend_input_bound_model_variant', + ], [ 'CogVideoXVideoToVideoPipeline:video_to_video', 'MODIFF_COGVIDEOX_EDIT_EVIDENCE', @@ -443,6 +451,33 @@ for (const [workflowId, variable, kind, proofKind = 'real_backend_prompt_bound_m } const changedPath = join(temp, 'evidence.json'); const evidence = JSON.parse(original.descriptorBytes); + if (workflowId === 'AllegroPipeline:text_to_video') { + assert.equal(original.receipt.observationLimits.retainedLoaderOffloadFallback, 'sequential_cpu'); + assert.equal(original.receipt.decodedOutput.frames, 88); + assert.equal(original.receipt.negativePromptBinding.field, 'negative_prompt'); + assert.match(original.receipt.negativePromptBinding.sha256, /^[a-f0-9]{64}$/u); + } + if (workflowId.startsWith('AnimateDiff')) { + assert.equal(original.receipt.modelSet.length, 2); + assert.equal(original.receipt.observationLimits.motionAdapterBoundByGraph, true); + const [first, second] = evidence.modelObservations; + const incomplete = { ...evidence, modelObservations: [first, first] }; + assert.notEqual(first.sha256, second.sha256); + writeFileSync(changedPath, JSON.stringify(incomplete)); + await assert.rejects( + () => readCanonicalWorkflowEvidence({ ...args, evidencePath: changedPath }), + /Expected a single installed identity/u, + ); + if (workflowId === 'AnimateDiffPAGPipeline:text_to_video') { + assert.deepEqual(original.receipt.observationLimits.configuredUnobservedControls, [ + 'pag_scale', + 'pag_adaptive_scale', + ]); + } else { + assert.equal(original.receipt.observationLimits.normalizedConsumerFramesObserved, false); + assert.equal(original.receipt.inputBinding.decodedVideo.frames, 16); + } + } const route = directImagePromptRoutes.find((row) => row.workflowId === workflowId); const cogVideo = workflowId === 'CogVideoXPipeline:text_to_video'; const audioLdm = workflowId === 'AudioLDM2Pipeline:text_to_audio'; @@ -538,7 +573,7 @@ for (const [workflowId, variable, kind, proofKind = 'real_backend_prompt_bound_m writeFileSync(changedPath, JSON.stringify(substituted)); await assert.rejects( () => readCanonicalWorkflowEvidence({ ...args, evidencePath: changedPath }), - workflowId === 'CogVideoXVideoToVideoPipeline:video_to_video' + kind === 'video' ? /Archived video upload differs/u : workflowId === 'HuggingFaceAnyToAnyModel:image_to_text' ? /Caption source bytes differ from the native load|Archived authoring requires the exact original capture/u diff --git a/scripts/release-contract-core.mjs b/scripts/release-contract-core.mjs index 302148e6..e4d3e2cf 100644 --- a/scripts/release-contract-core.mjs +++ b/scripts/release-contract-core.mjs @@ -874,6 +874,9 @@ export async function readCanonicalWorkflowEvidence({ clientRoot, backendRoot, w 'modiff.private.wan-a14b-video-prompt-variant.v1', 'modiff.private.cogvideox-video-prompt-variant.v1', 'modiff.private.cogvideox-source-video-variant.v1', + 'modiff.private.animatediff-pag-video-prompt-variant.v1', + 'modiff.private.animatediff-source-video-variant.v1', + 'modiff.private.allegro-video-prompt-variant.v1', ].includes(evidence.format) || directImagePromptRoutes.some(({ format }) => format === evidence.format) ) { diff --git a/scripts/saved-control-image-evidence.mjs b/scripts/saved-control-image-evidence.mjs index 56dbeae8..839fe8dc 100644 --- a/scripts/saved-control-image-evidence.mjs +++ b/scripts/saved-control-image-evidence.mjs @@ -26,9 +26,19 @@ import { import { decodedMediaHash, technicalMediaErrors } from './template-gallery-harness.mjs'; const format = 'modiff.private.saved-control-image-native-png.v1'; -const replayRuntime = '8cbe038eeeb6d4a4c079783b8d7e4915d9f78faad9495cb8e354504c66925cf5'; +const linuxReplayRuntime = '8cbe038eeeb6d4a4c079783b8d7e4915d9f78faad9495cb8e354504c66925cf5'; +const windowsReplayRuntime = 'e5d045d5ecf997c0cfe8dba771fd92cfc1fef6d3e10d91791b2b5e747f384b3c'; const commonSource = 'e3aea8f8d102572ad10fdd0700f0c42d92061e864ede89777efcd6a3269770a8'; const sdxlSource = '371fd754663a95b1b06900df9a838042048466464b4bd5cfa7033c1b6eebe0e3'; +const sd15Repair = { + action: 'ControlInpaint', + pipelineClass: 'StableDiffusionControlNetInpaintPipeline', + componentClass: 'ControlNetModel', + source: 'fe1a57b8e352eb66a1a26ebbff5865aaafcf5d55326c4bbcbaf2132ec75f54a8', + canny: true, + windows: true, + additionalInputs: ['source', 'mask'], +}; const routes = { 'StableDiffusionPipeline:control_image': { pipelineClass: 'StableDiffusionControlNetPipeline', @@ -74,6 +84,19 @@ const routes = { canny: true, guidanceWindowUnavailable: true, }, + 'StableDiffusionPipeline:control_edit_image': { + ...sd15Repair, + action: 'ControlEdit', + pipelineClass: 'StableDiffusionControlNetImg2ImgPipeline', + source: '3227569ff822090d00a80a3a88213d76d5ca43092d2918cec2494962457865a5', + additionalInputs: ['source'], + }, + 'StableDiffusionPipeline:control_inpaint': sd15Repair, + 'StableDiffusionPAGPipeline:control_inpaint': { + ...sd15Repair, + pipelineClass: 'StableDiffusionControlNetPAGInpaintPipeline', + pagSettingsUnobserved: true, + }, }; const sha256 = (bytes) => createHash('sha256').update(bytes).digest('hex'); const connected = (sourceId, sourceKey) => ({ display: 'input', sourceId, sourceKey }); @@ -89,6 +112,7 @@ function owners(api, route) { 'modules.DiffusersImage.LoadPipeline', ]; const load = 'modules.Image.Load'; + const additionalInputs = route.additionalInputs ?? []; assert.deepEqual( path.map((id) => { const { module, action } = api.nodes[id]; @@ -96,19 +120,22 @@ function owners(api, route) { }), [ ...(route.canny ? [load, 'modules.ImageFilters.Canny', ...setup] : [...setup, load]), - 'modules.DiffusersImage.ControlGenerate', + ...additionalInputs.map(() => load), + 'modules.DiffusersImage.' + (route.action ?? 'ControlGenerate'), 'modules.Image.Preview', ], ); - const [source, canny, loader] = route.canny ? [path[0], path[1], path[4]] : [path[3], null, path[2]]; + const [guide, canny, loader] = route.canny ? [path[0], path[1], path[4]] : [path[3], null, path[2]]; + const inputs = { guide, ...Object.fromEntries(additionalInputs.map((role, index) => [role, path[index + 5]])) }; const [sampler, preview] = path.slice(-2); - return { path, source, canny, loader, sampler, preview }; + return { path, inputs, canny, loader, sampler, preview }; } -export function verifySavedControlImageInputs(api, output, input, workflowId) { +export function verifySavedControlImageInputs(api, output, inputs, workflowId) { const route = routes[workflowId]; assert.ok(route, 'No reviewed saved control-image route.'); - const { path, source, canny, loader, sampler, preview } = owners(api, route); + const { path, inputs: inputOwners, canny, loader, sampler, preview } = owners(api, route); + assert.equal(inputs.length, Object.keys(inputOwners).length); const receipt = output.resolvedExecutionInputs; assert.equal(receipt.schemaVersion, 1); assert.equal(receipt.source, 'backend-execution'); @@ -127,18 +154,32 @@ export function verifySavedControlImageInputs(api, output, input, workflowId) { assert.deepEqual(row.omittedFields, {}); return row; }; - const { sourceFile, decodedImage } = verifyNativeLoadedImage(api.nodes[source], record(source), 'RGB'); - assert.deepEqual(sourceFile, { - sourceValue: input.sourceValue, - sha256: input.file.sha256, - byteSize: input.file.bytes, + const decoded = Object.entries(inputOwners).map(([role, id], index) => { + const input = inputs[index]; + const { sourceFile, decodedImage } = verifyNativeLoadedImage( + api.nodes[id], + record(id), + role === 'mask' ? 'L' : 'RGB', + ); + assert.deepEqual( + sourceFile, + { + sourceValue: input.sourceValue, + sha256: input.file.sha256, + byteSize: input.file.bytes, + }, + 'Saved image bytes differ for ' + role, + ); + return decodedImage; }); const params = api.nodes[sampler].params; assert.deepEqual(params.pipeline, connected(loader, 'pipeline')); - assert.deepEqual(params.control_image, connected(canny ?? source, canny ? 'output' : 'image')); + assert.deepEqual(params.control_image, connected(canny ?? inputOwners.guide, canny ? 'output' : 'image')); + if (inputOwners.source) assert.deepEqual(params.image, connected(inputOwners.source, 'image')); + if (inputOwners.mask) assert.deepEqual(params.mask_image, connected(inputOwners.mask, 'image')); assert.deepEqual(api.nodes[preview].params.image, connected(sampler, 'images')); if (canny) { - assert.deepEqual(api.nodes[canny].params.image, connected(source, 'image')); + assert.deepEqual(api.nodes[canny].params.image, connected(inputOwners.guide, 'image')); assert.deepEqual(record(canny).fields, { device: literal(api.nodes[canny].params.device.value) }); assert.equal(record(canny).mediaEvidence, undefined); } @@ -155,8 +196,8 @@ export function verifySavedControlImageInputs(api, output, input, workflowId) { ].map((field) => [field, params[field].value]), ); Object.assign(expected, { - executed_task: 'control_image', - strength: null, + executed_task: workflowId.split(':')[1], + strength: inputOwners.source ? params.strength.value : null, guidance_scale: route.trueCfg ? null : params.guidance_scale.value, max_sequence_length: route.trueCfg ? params.max_sequence_length.value : null, control_guidance_start: route.guidanceWindowUnavailable ? null : params.control_guidance_start.value, @@ -170,7 +211,7 @@ export function verifySavedControlImageInputs(api, output, input, workflowId) { 'Saved control sampler fields differ from the graph.', ); assert.equal(nativeSampler.mediaEvidence, undefined); - return decodedImage; + return decoded; } export async function readSavedControlImageEvidence({ @@ -211,12 +252,17 @@ export async function readSavedControlImageEvidence({ const canonical = owners(expected, route); const actual = owners(graphRequest, route); assert.equal(canonicalGraphIdentity(expected).hash, evidence.originalGraphHash); - const [input] = evidence.inputs; - assert.equal(evidence.inputs.length, 1); - assert.match(input.sourceValue, /^@data\/images\/[\w-]{1,128}\.png$/u); - const fileSlot = expected.nodes[canonical.source].params.file; - assert.deepEqual(fileSlot, { display: 'filebrowser', value: '' }); - fileSlot.value = [input.sourceValue]; + const inputs = evidence.inputs; + const roles = Object.keys(canonical.inputs); + assert.equal(inputs.length, roles.length); + assert.equal(new Set(inputs.map(({ file }) => file.sha256)).size, roles.length); + for (const [index, role] of roles.entries()) { + const { sourceValue } = inputs[index]; + assert.match(sourceValue, /^@data\/images\/[\w-]{1,128}\.png$/u); + const fileSlot = expected.nodes[canonical.inputs[role]].params.file; + assert.deepEqual(fileSlot, { display: 'filebrowser', value: role === 'source' ? [] : '' }); + fileSlot.value = [sourceValue]; + } const prompt = graphRequest.nodes[actual.sampler].params.prompt.value; assert.ok(typeof prompt === 'string' && prompt.length > 0 && prompt.length <= 4096 && prompt === prompt.trim()); assert.ok(!/[\u0000-\u001f\u007f]/u.test(prompt)); @@ -228,7 +274,7 @@ export async function readSavedControlImageEvidence({ assert.equal( canonicalGraphIdentity(graphSource).hash, identity.hash, - 'Saved graph differs outside its prompt and guide.', + 'Saved graph differs outside its prompt and selected images.', ); } const validate = route.lateOutput ? validateLateNativeImageVariantRun : validateNativeVariantRun; @@ -245,8 +291,15 @@ export async function readSavedControlImageEvidence({ validatePreparation: (value) => validateUnmodifiedExpertPreparation(value, route.pipelineClass), ...(route.lateOutput && { persistedOutput: json(evidence.persistedOutput).outputs[0] }), }); - const decodedImage = verifySavedControlImageInputs(graphRequest, output, input, manifest.id); - verifyRetainedPngUpload(json(input.upload), input, decodedImage, read(input.file).bytes); + const decoded = verifySavedControlImageInputs(graphRequest, output, inputs, manifest.id); + const imageBindings = Object.fromEntries( + roles.map((role, index) => { + const input = inputs[index]; + const decodedImage = decoded[index]; + verifyRetainedPngUpload(json(input.upload), input, decodedImage, read(input.file).bytes); + return [role, { nodeId: actual.inputs[role], field: 'file', sha256: input.file.sha256, decodedImage }]; + }), + ); const source = backendSourceEvidence({ before: json(evidence.backendSourceBefore).identity, after: json(evidence.backendSourceAfter).identity, @@ -262,7 +315,7 @@ export async function readSavedControlImageEvidence({ modelRuns: 0, fileCount: source.identity.files.length, sourceFingerprint: expectedSource, - runtimeContract: replayRuntime, + runtimeContract: route.windows ? windowsReplayRuntime : linuxReplayRuntime, nodeHash: sha256(nodeBytes), nodeBytes: nodeBytes.length, }); @@ -282,8 +335,8 @@ export async function readSavedControlImageEvidence({ observations: evidence.modelObservations.map(json), }); const measurement = task.runtimeMeasurement; - assert.match(runtime.packages.platform, /^Linux-/u); - assert.equal(measurement.backend, 'rocm'); + assert.match(runtime.packages.platform, route.windows ? /^Windows-/u : /^Linux-/u); + assert.equal(measurement.backend, route.windows ? 'cuda' : 'rocm'); assert.equal(measurement.device, 'cuda:0'); assert.equal(measurement.peakMeasurementVersion, 2); assert.ok(measurement.elapsedSeconds > 0 && measurement.elapsedSeconds <= 7200); @@ -299,10 +352,10 @@ export async function readSavedControlImageEvidence({ displayType: 'image', contentType: 'image/webp', }); - const decoded = await decodedMediaHash(media.file, 'image'); + const decodedOutput = await decodedMediaHash(media.file, 'image'); const params = graphRequest.nodes[actual.sampler].params; - assert.deepEqual(technicalMediaErrors(decoded, { width: params.width.value, height: params.height.value }), []); - assert.deepEqual([item.width, item.height], [decoded.width, decoded.height]); + assert.deepEqual(technicalMediaErrors(decodedOutput, { width: params.width.value, height: params.height.value }), []); + assert.deepEqual([item.width, item.height], [decodedOutput.width, decodedOutput.height]); for (const ref of retainedFiles) readCanonicalEvidenceFile(evidenceRoot, ref, 16 * 1024 * 1024); assert.ok(readFileSync(evidencePath).equals(descriptorBytes)); const receipt = { @@ -322,10 +375,12 @@ export async function readSavedControlImageEvidence({ executionDurationSeconds: measurement.elapsedSeconds, peakMemoryBytes: measurement.peakAllocatedBytes, canonicalDefaultsExecuted: false, - inputBinding: { nodeId: actual.source, field: 'file', sha256: input.file.sha256, decodedImage }, + inputBinding: imageBindings.source ?? imageBindings.guide, + ...(imageBindings.source && { guideBinding: imageBindings.guide }), + ...(imageBindings.mask && { maskBinding: imageBindings.mask }), conditioningModel: control, promptBinding: { nodeId: actual.sampler, field: 'prompt', sha256: sha256(prompt) }, - decodedOutput: { hash: decoded.hash, width: decoded.width, height: decoded.height }, + decodedOutput: { hash: decodedOutput.hash, width: decodedOutput.width, height: decodedOutput.height }, observationLimits: { fullConsumedFieldAccounting: false, processedControlPixelsObserved: false, diff --git a/scripts/saved-control-image-evidence.test.mjs b/scripts/saved-control-image-evidence.test.mjs index 5f9b9411..61568bb6 100644 --- a/scripts/saved-control-image-evidence.test.mjs +++ b/scripts/saved-control-image-evidence.test.mjs @@ -27,6 +27,14 @@ const cases = [ 'UlftQtP0nIJk', ], ['linux-canny-adapter-fixed', 'StableDiffusionXLAdapterPipeline:control_image', 'T2IAdapter', 'gWs5V9Dz1NY-'], + ['windows-sd15-control-print', 'StableDiffusionPipeline:control_edit_image', 'ControlNetModel', 'jlVMYFMnS--d'], + ['windows-sd15-control-inpaint-fixed', 'StableDiffusionPipeline:control_inpaint', 'ControlNetModel', '6TOEAhgF-bhi'], + [ + 'windows-sd15-pag-control-inpaint-fixed', + 'StableDiffusionPAGPipeline:control_inpaint', + 'ControlNetModel', + 'Hujzhp32JY-C', + ], ]; for (const [slug, workflowId, componentClass, taskId] of cases) { @@ -42,29 +50,47 @@ for (const [slug, workflowId, componentClass, taskId] of cases) { assert.equal(receipt.taskId, taskId); assert.equal(receipt.observationLimits.processedControlPixelsObserved, false); assert.equal(receipt.qualificationClaims.rightsApproved, false); - assert.equal(receipt.inputBinding.sha256, evidence.inputs[0].file.sha256); + assert.equal((receipt.guideBinding ?? receipt.inputBinding).sha256, evidence.inputs[0].file.sha256); const read = (ref) => JSON.parse(readCanonicalEvidenceFile(dirname(evidencePath), ref).bytes); const graph = read(evidence.graphRequest); const { latestOutput: output } = read(evidence.outputPackage); - const [input] = evidence.inputs; - const sampler = (api) => Object.values(api.nodes).find(({ action }) => action === 'ControlGenerate'); + const inputs = evidence.inputs; + const [input] = inputs; + const sampler = (api) => + Object.values(api.nodes).find(({ action }) => + ['ControlGenerate', 'ControlEdit', 'ControlInpaint'].includes(action), + ); const disconnected = structuredClone(graph); sampler(disconnected).params.control_image.sourceKey = 'width'; - assert.throws(() => verifySavedControlImageInputs(disconnected, output, input, workflowId), assert.AssertionError); + assert.throws(() => verifySavedControlImageInputs(disconnected, output, inputs, workflowId), assert.AssertionError); const changedGuide = { ...input, file: { ...input.file, sha256: '0'.repeat(64) } }; - assert.throws(() => verifySavedControlImageInputs(graph, output, changedGuide, workflowId), assert.AssertionError); + assert.throws( + () => verifySavedControlImageInputs(graph, output, [changedGuide, ...inputs.slice(1)], workflowId), + assert.AssertionError, + ); const changedSettings = structuredClone(output); - const fields = changedSettings.resolvedExecutionInputs.nodes.find( - ({ action }) => action === 'ControlGenerate', - ).fields; + const action = sampler(graph).action; + const fields = changedSettings.resolvedExecutionInputs.nodes.find((row) => row.action === action).fields; const guidance = fields.true_cfg_scale ?? fields.guidance_scale; guidance.value += 1; assert.throws( - () => verifySavedControlImageInputs(graph, changedSettings, input, workflowId), + () => verifySavedControlImageInputs(graph, changedSettings, inputs, workflowId), /Saved control sampler fields differ/u, ); + if (inputs.length > 1) { + const [guide, source, ...other] = inputs; + assert.equal(receipt.inputBinding.sha256, source.file.sha256); + assert.throws( + () => verifySavedControlImageInputs(graph, output, [source, guide, ...other], workflowId), + /Saved image bytes differ for guide/u, + ); + } + if (inputs.length === 3) { + assert.equal(receipt.maskBinding.sha256, inputs[2].file.sha256); + assert.equal(receipt.maskBinding.decodedImage.mode, 'L'); + } const completed = read(evidence.graphCompleted); completed.runtimeHints.controlledArtifacts[0].componentClass = 'OtherComponent'; From 7e867f0419c63ab9532b638eb8c3be7cdefe0e88 Mon Sep 17 00:00:00 2001 From: Sourav Das Date: Wed, 25 Nov 2026 08:00:00 +0530 Subject: [PATCH 359/440] Recover ordered edit sources and retained SANA video receipts --- CONTRIBUTING.md | 8 + scripts/native-image-load-evidence.mjs | 46 ++-- scripts/native-variant-run-evidence.mjs | 3 +- scripts/private-image-edit-evidence.mjs | 228 ++++++++++++++++--- scripts/private-image-edit-evidence.test.mjs | 56 +++++ scripts/prompt-variant-evidence.mjs | 91 +++++++- scripts/prompt-variant-evidence.test.mjs | 26 ++- scripts/release-contract-core.mjs | 77 +++++-- scripts/release-contract.mjs | 65 +++--- scripts/release-contract.test.mjs | 28 +++ 10 files changed, 514 insertions(+), 114 deletions(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index d03e9529..bb8f05d7 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -535,6 +535,8 @@ eligible, promote local review receipts, or change ordinary template recording and Gallery publication policy. The release contract records `missingReleaseEvidence` for each held workflow. +It uses one offline frontend compiler per receipt batch and still validates +every retained graph, model record and output file separately. The release-candidate report exposes that list as `incompleteWorkflowEvidence` and reports standalone execution under `coverage.standaloneExecution`. Its `awaitingReleaseEligibility` count identifies verified standalone workflows that @@ -562,6 +564,12 @@ adapter revisions. For a saved edit, the original upload and typed video wire bind the source. The receipt records unavailable sampler observations, such as the effective PAG controls or normalized source frames. +Saved JoyImage Plus edits retain reference files in Load order, including +the source image before the material reference. The proof binds each upload +and native decode to the typed Edit connection. The archived two-reference +run carries an older Image Edit label in its form. The executable graph and +observed sampler identify the two-reference task. + The reviewed Marigold synthetic ramp, SmolLM2 rain-gauge, Spandrel Real-ESRGAN 2×, Whisper Tiny transcription and LCM dawn edit use declarations in `src/studio/retainedGalleryTemplates.ts`. They share diff --git a/scripts/native-image-load-evidence.mjs b/scripts/native-image-load-evidence.mjs index 6234b3bc..fb8bae3b 100644 --- a/scripts/native-image-load-evidence.mjs +++ b/scripts/native-image-load-evidence.mjs @@ -2,7 +2,7 @@ import assert from 'node:assert/strict'; const literal = (value) => ({ value, source: 'literal' }); -export function verifyNativeLoadedImage(load, loaded, mode) { +export function verifyNativeLoadedImages(load, loaded, modes) { assert.equal(load?.module, 'modules.Image'); assert.equal(load.action, 'Load'); assert.equal(loaded?.module, load.module); @@ -11,25 +11,43 @@ export function verifyNativeLoadedImage(load, loaded, mode) { const media = loaded.mediaEvidence; assert.equal(media?.status, 'complete', 'The native source decode is missing.'); - assert.equal(media.files.file?.length, 1, 'A single native file observation is required.'); - const [file] = media.files.file; - assert.ok(typeof file.sourceValue === 'string' && file.sourceValue && file.byteSize > 0 && !file.converted); + assert.ok(modes.length > 0); + const files = media.files.file; + assert.equal( + files?.length, + modes.length, + modes.length === 1 ? 'A single native file observation is required.' : 'Native file observation count differs.', + ); + for (const file of files) { + assert.ok(typeof file.sourceValue === 'string' && file.sourceValue && file.byteSize > 0 && !file.converted); + } assert.deepEqual( load.params.file, - { display: 'filebrowser', value: [file.sourceValue] }, + { display: 'filebrowser', value: files.map(({ sourceValue }) => sourceValue) }, 'Image.Load file differs from the declared selection.', ); - assert.equal(media.outputs.image?.length, 1, 'A single native decoded image is required.'); - const [{ kind, ...decoded }] = media.outputs.image; - assert.equal(kind, 'image'); - assert.equal(decoded.mode, mode); + assert.equal( + media.outputs.image?.length, + modes.length, + modes.length === 1 ? 'A single native decoded image is required.' : 'Native decoded image count differs.', + ); + const images = media.outputs.image.map(({ kind, ...decodedImage }, index) => { + assert.equal(kind, 'image'); + assert.equal(decodedImage.mode, modes[index]); + return { sourceFile: files[index], decodedImage }; + }); assert.deepEqual(media.controls, { alpha_channel: load.params.alpha_channel.value }); assert.deepEqual(loaded.fields, { alpha_channel: literal(media.controls.alpha_channel), - source_hashes: literal([file.sha256]), - source_widths: literal([decoded.width]), - source_heights: literal([decoded.height]), - source_modes: literal([mode]), + source_hashes: literal(files.map(({ sha256 }) => sha256)), + source_widths: literal(images.map(({ decodedImage }) => decodedImage.width)), + source_heights: literal(images.map(({ decodedImage }) => decodedImage.height)), + source_modes: literal(modes), }); - return { sourceFile: file, decodedImage: decoded }; + return images; +} + +export function verifyNativeLoadedImage(load, loaded, mode) { + const [image] = verifyNativeLoadedImages(load, loaded, [mode]); + return image; } diff --git a/scripts/native-variant-run-evidence.mjs b/scripts/native-variant-run-evidence.mjs index a6fe2400..9b9f5d1d 100644 --- a/scripts/native-variant-run-evidence.mjs +++ b/scripts/native-variant-run-evidence.mjs @@ -48,6 +48,7 @@ export function validateUnmodifiedExpertPreparation(preparation, modelType, prev // readers must separately bind the submitted graph, model and consumed inputs. export function validateNativeVariantRun({ target, + expectedFormMode = target.task, outputNodeId, displayType, creator, @@ -72,7 +73,7 @@ export function validateNativeVariantRun({ same(outputPackage.apiGraph, submitted, 'Original package API graph differs.'); same(outputPackage.graph, output.graphSnapshot, 'Original package visual graph differs.'); same(creator.metadata?.studio, output.formSnapshot, 'Creator form differs from the persisted output.'); - assert.equal(output.formSnapshot.mode, target.task); + assert.equal(output.formSnapshot.mode, expectedFormMode); assert.equal(output.formSnapshot.modelType, target.modelType); assert.equal(output.formSnapshot.resourceMode, 'expert'); assert.equal(task.status, 'completed'); diff --git a/scripts/private-image-edit-evidence.mjs b/scripts/private-image-edit-evidence.mjs index e47e182b..f2fa4522 100644 --- a/scripts/private-image-edit-evidence.mjs +++ b/scripts/private-image-edit-evidence.mjs @@ -3,7 +3,7 @@ import { createHash } from 'node:crypto'; import { lstatSync, readFileSync, realpathSync } from 'node:fs'; import { dirname } from 'node:path'; import { stableJsonValue } from './canonical-json.mjs'; -import { verifyNativeLoadedImage } from './native-image-load-evidence.mjs'; +import { verifyNativeLoadedImages } from './native-image-load-evidence.mjs'; import { backendContractIdentity, backendSourceEvidence, @@ -33,6 +33,42 @@ export const SAVED_PNG_EDIT_FORMAT = 'modiff.private.saved-image-edit-native-png const baseConsumed = ['num_inference_steps', 'output_type', 'prompt', 'seed']; const imageGeometry = ['height', 'max_sequence_length', 'width']; const stableDiffusionEditConsumed = [...baseConsumed, 'negative_prompt', 'guidance_scale', 'strength']; +const retainedImageEdit = { + format: SAVED_PNG_EDIT_FORMAT, + captureFormat: 'modiff.private.direct-image-edit-observation.v1', + consumed: [...baseConsumed, ...imageGeometry, 'negative_prompt', 'guidance_scale'], + inactiveRecorded: ['strength'], + inputPathPrefix: '@data/images/', + nativeSourceMedia: true, + outputGeometryFromSettings: true, +}; +const joyPlusEdit = { + ...retainedImageEdit, + modelRepo: 'jdopensource/JoyAI-Image-Edit-Plus-Diffusers', + modelRevision: 'c2686460c7b64d8aa11bc4d0da423fb316b33f9e', + loaderClass: 'JoyImageEditPlusPipeline', +}; +const qwenPlusEdit = { + ...retainedImageEdit, + modelRepo: 'Qwen/Qwen-Image-Edit-2511', + modelRevision: '6f3ccc0b56e431dc6a0c2b2039706d7d26f22cb9', + loaderClass: 'QwenImageEditPlusPipeline', + sourceFingerprint: 'sha256:backend-source-v1:e3aea8f8d102572ad10fdd0700f0c42d92061e864ede89777efcd6a3269770a8', + runtimeContractDigest: '8cbe038eeeb6d4a4c079783b8d7e4915d9f78faad9495cb8e354504c66925cf5', + fullNativeSnapshot: true, + guidanceObservedAsTrueCfg: true, +}; +const retainedCfgInpaint = { + ...retainedImageEdit, + captureFormat: 'modiff.private.direct-image-inpaint-observation.v1', + consumed: [...retainedImageEdit.consumed, 'strength'], + inactiveRecorded: [], + sourceFingerprint: 'sha256:backend-source-v1:43f2ed10792fc6167b963166287cf7d5a0429afa26029e6455b0418e2123be86', + runtimeContractDigest: qwenPlusEdit.runtimeContractDigest, + fullNativeSnapshot: true, + guidanceObservedAsTrueCfg: true, + masked: true, +}; const editRoutes = new Map([ [ 'LatentConsistencyModelPipeline:edit_image', @@ -211,6 +247,63 @@ const editRoutes = new Map([ outputGeometryFromSettings: true, }, ], + [ + 'JoyImageEditPlusPipeline:edit_image', + { + ...joyPlusEdit, + fullNativeSnapshot: true, + sourceFingerprint: 'sha256:backend-source-v1:d275bc94517015b221a9a8b5aea7572ec68c491060855c7895526e1ba640796d', + originalRegistryHash: '6167f8ae8f746e854b73dfcb66000a54c71d65199c1f4b0b081b7a9ce02d9d28', + }, + ], + [ + 'JoyImageEditPlusPipeline:multi_image_reference_edit', + { + ...joyPlusEdit, + task: 'multi_image_reference_edit', + retainedFormMode: 'edit_image', + orderedReferences: 1, + sourceFingerprint: 'sha256:backend-source-v1:585997dc1146ec6effb20c260272babc01713ecdea4f78a0872c12ef2568ef83', + runtimeContractDigest: '8cbe038eeeb6d4a4c079783b8d7e4915d9f78faad9495cb8e354504c66925cf5', + }, + ], + ['QwenImageEditPlusPipeline:edit_image', qwenPlusEdit], + [ + 'QwenImageEditPipeline:edit_image', + { + ...qwenPlusEdit, + modelRepo: 'Qwen/Qwen-Image-Edit', + modelRevision: 'ac7f9318f633fc4b5778c59367c8128225f1e3de', + loaderClass: 'QwenImageEditPipeline', + }, + ], + [ + 'QwenImageEditPlusPipeline:multi_image_reference_edit', + { + ...qwenPlusEdit, + task: 'multi_image_reference_edit', + retainedFormMode: 'edit_image', + orderedReferences: 1, + }, + ], + [ + 'QwenImageModularPipeline:inpaint', + { + ...retainedCfgInpaint, + modelRepo: 'Qwen/Qwen-Image-2512', + modelRevision: '25468b98e3276ca6700de15c6628e51b7de54a26', + loaderClass: 'QwenImageInpaintPipeline', + }, + ], + [ + 'FluxDevPipeline:inpaint', + { + ...retainedCfgInpaint, + modelRepo: 'black-forest-labs/FLUX.1-dev', + modelRevision: '3de623fc3c33e44ffbe2bad470d0f45bccf2eb21', + loaderClass: 'FluxInpaintPipeline', + }, + ], ]); const lcmRoute = editRoutes.get('LatentConsistencyModelPipeline:edit_image'); @@ -277,6 +370,7 @@ export function bindPrivateImageEditGraph({ submitted, input, maskInput, + references = [], strengthVariant, inputPathPrefix = '', nativePngEvidence = false, @@ -289,17 +383,19 @@ export function bindPrivateImageEditGraph({ const canonicalPrompt = canonical.edit.node.params.prompt; assert.equal(canonicalPrompt.value, ''); const safeBasename = nativePngEvidence ? /^[a-zA-Z0-9_-][\w.-]{0,200}\.png$/u : /^[a-zA-Z0-9_-][\w.-]{0,200}\.webp$/u; - const bindFile = (role, reference) => { + const bindFile = (role, selected) => { const field = canonical[role].node.params.file; assert.deepEqual(field, { value: role === 'mask' ? '' : [], display: 'filebrowser' }); - assert.equal(reference.nodeId, observed[role].id); - assert.equal(reference.field, 'file'); - assert.ok(typeof reference.sourceValue === 'string' && reference.sourceValue.startsWith(inputPathPrefix)); - assert.match(reference.sourceValue.slice(inputPathPrefix.length), safeBasename); - field.value = [reference.sourceValue]; + field.value = selected.map((reference) => { + assert.equal(reference.nodeId, observed[role].id); + assert.equal(reference.field, 'file'); + assert.ok(typeof reference.sourceValue === 'string' && reference.sourceValue.startsWith(inputPathPrefix)); + assert.match(reference.sourceValue.slice(inputPathPrefix.length), safeBasename); + return reference.sourceValue; + }); }; - bindFile('source', input); - if (masked) bindFile('mask', maskInput); + bindFile('source', [input, ...references]); + if (masked) bindFile('mask', [maskInput]); const prompt = observed.edit.node.params.prompt.value; assert.ok(typeof prompt === 'string' && prompt.length > 0 && prompt.length <= 4096 && prompt.trim() === prompt); assert.ok(!/[\u0000-\u001f\u007f]/u.test(prompt)); @@ -466,6 +562,10 @@ function verifySavedEditControls(bound, output, route) { const controls = Object.fromEntries( route.consumed.map((name) => [name, literal(bound.edit.node.params[name].value)]), ); + if (route.guidanceObservedAsTrueCfg) { + controls.true_cfg_scale = controls.guidance_scale; + controls.guidance_scale = literal(null); + } for (const field of [ 'conditioning_scale', 'control_guidance_start', @@ -474,7 +574,7 @@ function verifySavedEditControls(bound, output, route) { ]) { controls[field] = literal(null); } - controls.executed_task = literal(bound.mask ? 'inpaint' : 'edit_image'); + controls.executed_task = literal(route.task ?? (bound.mask ? 'inpaint' : 'edit_image')); same(sampler.fields, controls, 'Saved sampler controls differ.'); const loader = record(bound.loader); for (const [field, value] of Object.entries({ @@ -495,42 +595,62 @@ function verifySavedEditControls(bound, output, route) { return record; } -async function verifySavedPngSource(bound, output, input, maskInput, route, read, json, evidence) { +async function verifySavedPngSource(bound, output, { input, maskInput, references }, route, read, json, evidence) { const record = verifySavedEditControls(bound, output, route); const { decodedMediaHash } = await import('./template-gallery-harness.mjs'); - const verify = async (role, rootImage, upload, port, mode) => { + const verify = async (role, selected, uploads, port, mode) => { const owner = bound[role]; - const { bytes, file } = read(rootImage.file); - const { width, height } = await decodedMediaHash(file, 'image'); - const decodedImage = { width, height, mode }; + assert.equal(uploads.length, selected.length); + const images = await Promise.all( + selected.map(async (entry, index) => { + const { bytes, file } = read(entry.file); + const { width, height } = await decodedMediaHash(file, 'image'); + const decodedImage = { width, height, mode }; + verifyRetainedPngUpload(json(uploads[index]), entry, decodedImage, bytes); + return decodedImage; + }), + ); const row = record(owner); same( row.fields, { alpha_channel: literal(owner.node.params.alpha_channel.value), - source_hashes: literal([rootImage.file.sha256]), - source_widths: literal([width]), - source_heights: literal([height]), - source_modes: literal([mode]), + source_hashes: literal(selected.map(({ file }) => file.sha256)), + source_widths: literal(images.map(({ width }) => width)), + source_heights: literal(images.map(({ height }) => height)), + source_modes: literal(images.map(({ mode }) => mode)), }, `Original ${role} load differs.`, ); same(bound.edit.node.params[port], { display: 'input', sourceId: owner.id, sourceKey: 'image' }); - verifyRetainedPngUpload(json(upload), rootImage, decodedImage, bytes); - if (!route.nativeSourceMedia) return decodedImage; - const native = verifyNativeLoadedImage(owner.node, row, mode); - same(native.sourceFile, { - sourceValue: rootImage.sourceValue, - sha256: rootImage.file.sha256, - byteSize: rootImage.file.bytes, + if (!route.nativeSourceMedia) return images; + const nativeImages = verifyNativeLoadedImages( + owner.node, + row, + images.map(({ mode }) => mode), + ); + return nativeImages.map(({ sourceFile, decodedImage }, index) => { + const entry = selected[index]; + const { width, height } = images[index]; + same(sourceFile, { + sourceValue: entry.sourceValue, + sha256: entry.file.sha256, + byteSize: entry.file.bytes, + }); + same([decodedImage.width, decodedImage.height], [width, height]); + return decodedImage; }); - same([native.decodedImage.width, native.decodedImage.height], [width, height]); - return native.decodedImage; }; - const decodedInput = await verify('source', input, evidence.inputUpload, 'image', 'RGB'); - if (!maskInput) return { decodedInput }; + const [decodedInput, ...decodedReferences] = await verify( + 'source', + [input, ...references], + [evidence.inputUpload, ...(evidence.referenceUploads ?? [])], + 'image', + 'RGB', + ); + if (!maskInput) return { decodedInput, decodedReferences }; assert.notEqual(input.file.sha256, maskInput.file.sha256); - const decodedMask = await verify('mask', maskInput, evidence.maskUpload, 'mask_image', 'L'); + const [decodedMask] = await verify('mask', [maskInput], [evidence.maskUpload], 'mask_image', 'L'); same([decodedInput.width, decodedInput.height], [decodedMask.width, decodedMask.height]); return { decodedInput, mask: { decodedImage: decodedMask } }; } @@ -615,6 +735,8 @@ export async function readPrivateImageEditEvidence({ clientRoot, manifest, graph const evidence = JSON.parse(descriptorBytes); const masked = route.masked === true; const savedPng = route.format === SAVED_PNG_EDIT_FORMAT && evidence.format === SAVED_PNG_EDIT_FORMAT; + const replayedRegistry = savedPng && !route.originalRegistryHash; + const referenceCount = route.orderedReferences ?? 0; const pngFormat = masked ? NATIVE_PNG_INPAINT_FORMAT : NATIVE_PNG_EDIT_FORMAT; const nativePngEvidence = savedPng || (route.nativePngEvidence === true && evidence.format === pngFormat); keys(evidence, [ @@ -627,7 +749,8 @@ export async function readPrivateImageEditEvidence({ clientRoot, manifest, graph 'persistedOutputs', ...(nativePngEvidence ? ['inputUpload'] : ['inputServerBefore', 'inputServerAfter']), ...(masked ? ['maskUpload'] : []), - ...(savedPng ? ['registryReplay'] : []), + ...(replayedRegistry ? ['registryReplay'] : []), + ...(referenceCount ? ['referenceUploads'] : []), ]); assert.equal(evidence.schemaVersion, 1); assert.equal(evidence.format, nativePngEvidence && !savedPng ? pngFormat : route.format); @@ -661,10 +784,16 @@ export async function readPrivateImageEditEvidence({ clientRoot, manifest, graph assert.equal(capture.format, route.captureFormat); assert.equal(capture.workflowId, workflowId); same(capture.qualificationClaims, { releaseEligible: false, technicalVariant: true }); - assert.equal(capture.inputs.length, masked ? 2 : 1); + assert.equal(capture.inputs.length, masked ? 2 : 1 + referenceCount); assert.equal(capture.outputs.length, 1); assert.equal(capture.modelObservations.length, 1); - const [input, maskInput] = capture.inputs; + const [input, ...otherInputs] = capture.inputs; + const maskInput = masked ? otherInputs[0] : undefined; + const references = masked ? [] : otherInputs; + if (referenceCount) { + assert.equal(evidence.referenceUploads.length, referenceCount); + assert.equal(new Set(capture.inputs.map(({ file }) => file.sha256)).size, capture.inputs.length); + } const [outputRef] = capture.outputs; for (const source of capture.inputs) keys(source, ['nodeId', 'field', 'sourceValue', 'file']); keys(outputRef, ['backendPath', 'mediaType', 'file']); @@ -688,6 +817,7 @@ export async function readPrivateImageEditEvidence({ clientRoot, manifest, graph submitted: graphRequest, input, maskInput, + references, strengthVariant: route.strengthVariant, inputPathPrefix: route.inputPathPrefix, nativePngEvidence, @@ -699,6 +829,7 @@ export async function readPrivateImageEditEvidence({ clientRoot, manifest, graph } const runOptions = { target, + expectedFormMode: route.retainedFormMode, outputNodeId: bound.preview.id, displayType: 'image', creator, @@ -721,7 +852,15 @@ export async function readPrivateImageEditEvidence({ clientRoot, manifest, graph same(hints.workflowSnapshot.studioForm, output.formSnapshot); let sourceBinding; if (savedPng) { - sourceBinding = await verifySavedPngSource(bound, output, input, maskInput, route, read, json, evidence); + sourceBinding = await verifySavedPngSource( + bound, + output, + { input, maskInput, references }, + route, + read, + json, + evidence, + ); } else { validatePrivateImageEditFields(bound, output, route.consumed); sourceBinding = await verifySourceBinding(clientRoot, bound, output, input, route); @@ -740,7 +879,7 @@ export async function readPrivateImageEditEvidence({ clientRoot, manifest, graph verifyRetainedPngUpload(json(evidence.maskUpload), maskInput, sourceBinding.mask.decodedImage, maskMedia.bytes); } } - const { decodedInput, mask } = sourceBinding; + const { decodedInput, decodedReferences, mask } = sourceBinding; const media = read(outputRef.file); const item = validateNativeVariantOutput({ output, @@ -772,6 +911,11 @@ export async function readPrivateImageEditEvidence({ clientRoot, manifest, graph same(source.blockers, []); if (savedPng) { assert.equal(source.identity.fingerprint, route.sourceFingerprint); + } + if (route.originalRegistryHash) { + assert.equal(sha256(nodes.bytes), route.originalRegistryHash); + } + if (replayedRegistry) { const replay = json(evidence.registryReplay); assert.equal(replay.scope, 'Original nodes handler only, with exact source and runtime contract'); assert.equal(replay.modelRuns, 0); @@ -809,6 +953,17 @@ export async function readPrivateImageEditEvidence({ clientRoot, manifest, graph peakMemoryBytes: peakAllocatedBytes, canonicalDefaultsExecuted: false, inputBinding: { nodeId: input.nodeId, field: 'file', sha256: input.file.sha256, decodedImage: decodedInput }, + ...(referenceCount + ? { + referenceBindings: references.map((reference, index) => ({ + nodeId: reference.nodeId, + field: 'file', + inputIndex: index + 1, + sha256: reference.file.sha256, + decodedImage: decodedReferences[index], + })), + } + : {}), ...(masked ? { maskBinding: { @@ -831,6 +986,7 @@ export async function readPrivateImageEditEvidence({ clientRoot, manifest, graph ...(masked ? { maskByteWitness: savedPng ? 'native-load-and-upload-with-typed-wire' : 'native-load-consumer-and-upload' } : {}), + ...(route.retainedFormMode ? { retainedStudioFormMode: route.retainedFormMode } : {}), ...(savedPng ? { independentConsumerPixels: false, configuredUnobservedControls: route.unobservedControls ?? [] } : {}), diff --git a/scripts/private-image-edit-evidence.test.mjs b/scripts/private-image-edit-evidence.test.mjs index ec2636ea..bdf8395d 100644 --- a/scripts/private-image-edit-evidence.test.mjs +++ b/scripts/private-image-edit-evidence.test.mjs @@ -445,6 +445,10 @@ for (const [workflowId, variable, hasMask, unobserved] of [ ['pag_scale', 'pag_adaptive_scale'], ], ['ZImageModularPipeline:edit_image', 'MODIFF_SAVED_ZIMAGE_EDIT_EVIDENCE', false, []], + ['QwenImageEditPlusPipeline:edit_image', 'MODIFF_SAVED_QWEN_AMBER_EVIDENCE', false, []], + ['QwenImageEditPipeline:edit_image', 'MODIFF_SAVED_QWEN_SLATE_EVIDENCE', false, []], + ['QwenImageModularPipeline:inpaint', 'MODIFF_SAVED_QWEN_SCRATCH_EVIDENCE', true, []], + ['FluxDevPipeline:inpaint', 'MODIFF_SAVED_FLUX_DEV_REPAIR_EVIDENCE', true, []], ]) { const saved = process.env[variable]; test( @@ -522,3 +526,55 @@ test('retained native PNG upload binds an exact safe path, file bytes and decode }; assert.throws(() => verifyRetainedPngUpload(magicWitness, { sourceValue }, metadata, wrongMagic), /not PNG/u); }); + +for (const [model, task, variable] of [ + ['JoyImageEditPlusPipeline', 'edit_image', 'MODIFF_SAVED_JOY_PLUS_EDIT_EVIDENCE'], + ['JoyImageEditPlusPipeline', 'multi_image_reference_edit', 'MODIFF_SAVED_JOY_PLUS_REFERENCES_EVIDENCE'], + ['QwenImageEditPlusPipeline', 'multi_image_reference_edit', 'MODIFF_SAVED_QWEN_TERRACOTTA_EVIDENCE'], +]) { + const evidencePath = process.env[variable]; + test(`${model} verifies exact references in ${task}`, { skip: !evidencePath }, async () => { + const clientRoot = fileURLToPath(new URL('..', import.meta.url)); + const backendRoot = resolve(process.env.MODIFF_BACKEND_DIR ?? join(clientRoot, '..', 'MoDiff')); + const args = { + clientRoot, + backendRoot, + workflowId: model + ':' + task, + evidencePath: resolve(evidencePath), + }; + const result = await readCanonicalWorkflowEvidence(args); + const { receipt } = result; + assert.equal(receipt.observationLimits.independentConsumerPixels, false); + assert.equal(receipt.inputBinding.decodedImage.mode, 'RGB'); + if (task === 'edit_image') { + assert.equal(receipt.referenceBindings, undefined); + return; + } + assert.equal(receipt.referenceBindings.length, 1); + const [material] = receipt.referenceBindings; + assert.equal(material.inputIndex, 1); + assert.equal(material.nodeId, receipt.inputBinding.nodeId); + assert.notEqual(material.sha256, receipt.inputBinding.sha256); + assert.equal(receipt.observationLimits.retainedStudioFormMode, 'edit_image'); + const root = mkdtempSync(join(tmpdir(), 'modiff-reference-proof-')); + try { + for (const file of result.retainedFiles) { + assert.equal(basename(file.path), file.path); + copyFileSync(file.absolutePath, join(root, file.path)); + } + const descriptor = JSON.parse(result.descriptorBytes); + const [materialUpload] = descriptor.referenceUploads; + descriptor.referenceUploads[0] = descriptor.inputUpload; + descriptor.inputUpload = materialUpload; + const substituted = join(root, 'evidence.json'); + writeFileSync(substituted, JSON.stringify(descriptor)); + await assert.rejects( + readCanonicalWorkflowEvidence({ ...args, evidencePath: substituted }), + assert.AssertionError, + ); + } finally { + assert.equal(dirname(root), resolve(tmpdir())); + rmSync(root, { recursive: true, force: true }); + } + }); +} diff --git a/scripts/prompt-variant-evidence.mjs b/scripts/prompt-variant-evidence.mjs index b82f7845..80c7ef8c 100644 --- a/scripts/prompt-variant-evidence.mjs +++ b/scripts/prompt-variant-evidence.mjs @@ -296,6 +296,7 @@ const allegroRoute = { modelRevision: 'c1b9207bb5cb79e2aa08f3d139c17d26c0de55b6', sourceFingerprint: 'sha256:backend-source-v1:b29a5b0d317aaa781ae2a5205b46b518eea5a3d68a214eb0968dba4ac0660af7', bindNegativePrompt: true, + retainedNativeMathDefault: true, reviewedSettings: [ ['recipe', 'attention_backend', '_native_math', 'auto'], ['recipe', 'offload_mode', 'sequential_cpu', 'model_cpu'], @@ -303,6 +304,32 @@ const allegroRoute = { retainedOffloadFallback: 'sequential_cpu', }; +const sanaVideoRoute = { + ...wanA14BRoute, + format: 'modiff.private.sana-video-prompt-variant.v1', + workflowId: 'SanaVideoPipeline:text_to_video', + modelType: 'SanaVideoPipeline', + previousExpertFamily: 'AllegroPipeline', + modelRepo: 'Efficient-Large-Model/SANA-Video_2B_480p_diffusers', + modelRevision: 'db5f398b13ca086d09a50ce156c20527773841b1', + bindNegativePrompt: true, +}; + +const sanaOpeningImageRoute = { + ...sanaVideoRoute, + format: 'modiff.private.sana-opening-image-variant.v1', + workflowId: 'SanaImageToVideoPipeline:image_to_video', + modelType: 'SanaImageToVideoPipeline', + previousExpertFamily: null, + executedTask: 'image_to_video', + bindsImage: true, + imageInputPort: 'reference_images', + retainedImageLoadFields: true, + retainedNativeMathDefault: true, + reviewedSettings: [['recipe', 'attention_backend', '_native_math', 'auto']], + chain: [['source', 'modules.Image', 'Load', ''], ...sanaVideoRoute.chain], +}; + const promptModelSet = (profile) => [ ...(profile.motionAdapter ? [profile.motionAdapter] : []), { repoId: profile.modelRepo, revision: profile.modelRevision }, @@ -384,6 +411,14 @@ export function bindPromptVariant(profile, original, created, output, baselineHa param.value = cpuValue; } } + if (profile.retainedNativeMathDefault) { + const attention = expectedOwners.recipe.node.params.attention_backend; + assert.ok(['auto', '_native_math'].includes(attention.value)); + assert.ok(!attention.sourceId && !attention.sourceKey); + // Verify the archive's literal pre-change graph identity before applying + // the recorded selection that became the current canonical default. + attention.value = '_native_math'; + } const baseline = canonicalGraphIdentity(expected); assert.equal(baseline.hash, baselineHash, 'The current authored prompt recipe differs from the original baseline.'); for (const [role, field, defaultValue, reviewedValue] of profile.reviewedSettings ?? []) { @@ -398,7 +433,11 @@ export function bindPromptVariant(profile, original, created, output, baselineHa const { params } = expectedOwners.source.node; same(params.file, { display: 'filebrowser', value: [] }); assert.equal(params.alpha_channel.value, 'ignore'); - same(expectedInputs.images, { display: 'input', sourceId: expectedOwners.source.id, sourceKey: 'image' }); + same(expectedInputs[profile.imageInputPort ?? 'images'], { + display: 'input', + sourceId: expectedOwners.source.id, + sourceKey: 'image', + }); params.file.value = [sourceValue]; } if (profile.bindsVideoUpload) { @@ -490,11 +529,38 @@ function validateConsumedPromptVariant(profile, bound, output, suppliedImage) { assert.equal(row.action, node.action); same(row.omittedFields, {}); if (profile.bindsImage && id === bound.source.id) { - const { sourceFile, decodedImage } = verifyNativeLoadedImage(node, row, 'RGB'); - assert.equal(sourceFile.sourceValue, suppliedImage.sourceValue); - assert.equal(sourceFile.sha256, suppliedImage.file.sha256, 'Caption source bytes differ from the native load.'); - assert.equal(sourceFile.byteSize, suppliedImage.file.bytes); - image = { nodeId: id, field: 'file', sha256: sourceFile.sha256, decodedImage }; + let decodedImage; + if (profile.retainedImageLoadFields) { + assert.equal(row.mediaEvidence, undefined); + const [width] = row.fields.source_widths.value; + const [height] = row.fields.source_heights.value; + for (const dimension of [width, height]) assert.ok(Number.isSafeInteger(dimension) && dimension > 0); + same( + row.fields, + Object.fromEntries( + Object.entries({ + alpha_channel: 'ignore', + source_hashes: [suppliedImage.file.sha256], + source_widths: [width], + source_heights: [height], + source_modes: ['RGB'], + }).map(([field, value]) => [field, { value, source: 'literal' }]), + ), + 'Opening image differs from the retained Load fields.', + ); + decodedImage = { width, height, mode: 'RGB' }; + } else { + const native = verifyNativeLoadedImage(node, row, 'RGB'); + assert.equal(native.sourceFile.sourceValue, suppliedImage.sourceValue); + assert.equal( + native.sourceFile.sha256, + suppliedImage.file.sha256, + 'Caption source bytes differ from the native load.', + ); + assert.equal(native.sourceFile.byteSize, suppliedImage.file.bytes); + decodedImage = native.decodedImage; + } + image = { nodeId: id, field: 'file', sha256: suppliedImage.file.sha256, decodedImage }; continue; } const expected = Object.fromEntries( @@ -886,10 +952,13 @@ export async function readPromptVariantEvidence({ clientRoot, manifest, graph, a animateDiffPagRoute, animateDiffEditRoute, allegroRoute, + sanaVideoRoute, + sanaOpeningImageRoute, ].find(({ workflowId }) => workflowId === target.workflowId); assert.ok(profile, 'Prompt variant route is not reviewed.'); const generatedVideo = - profile.outputKind === 'video' && ['text_to_video', 'video_to_video'].includes(profile.executedTask); + profile.outputKind === 'video' && + ['text_to_video', 'image_to_video', 'video_to_video'].includes(profile.executedTask); const generatedAudio = profile === audioRoute || profile === audioLdmRoute; const requiresOriginalRequest = imageRoute !== undefined || @@ -1047,6 +1116,11 @@ export async function readPromptVariantEvidence({ clientRoot, manifest, graph, a }, 'Caption input differs from the original image upload.', ); + if (profile.retainedImageLoadFields) { + const { decodedMediaHash } = await import('./template-gallery-harness.mjs'); + const decoded = await decodedMediaHash(source.file, 'image'); + same([decoded.width, decoded.height], [width, height], 'Opening image dimensions differ from the original file.'); + } } if (profile.bindsVideoUpload) { const { bytes, file } = read(suppliedInput.file); @@ -1234,6 +1308,9 @@ export async function readPromptVariantEvidence({ clientRoot, manifest, graph, a ? { configuredUnobservedControls: profile.configuredUnobservedControls } : {}), ...(profile.retainedOffloadFallback ? { retainedLoaderOffloadFallback: profile.retainedOffloadFallback } : {}), + ...(profile.retainedImageLoadFields + ? { openingImageLoadFieldsObserved: true, samplerInputPixelsObserved: false } + : {}), }, qualificationClaims: { publicTemplate: false, diff --git a/scripts/prompt-variant-evidence.test.mjs b/scripts/prompt-variant-evidence.test.mjs index 7d187dee..99c4312d 100644 --- a/scripts/prompt-variant-evidence.test.mjs +++ b/scripts/prompt-variant-evidence.test.mjs @@ -386,6 +386,13 @@ for (const [workflowId, variable, kind, proofKind = 'real_backend_prompt_bound_m ['ShapEPipeline:text_to_3d', 'MODIFF_SHAPE_PROMPT_EVIDENCE', 'video'], ['Wan22Pipeline:text_to_video', 'MODIFF_WAN_A14B_VIDEO_PROMPT_EVIDENCE', 'video'], ['AllegroPipeline:text_to_video', 'MODIFF_ALLEGRO_VIDEO_PROMPT_EVIDENCE', 'video'], + ['SanaVideoPipeline:text_to_video', 'MODIFF_SANA_VIDEO_PROMPT_EVIDENCE', 'video'], + [ + 'SanaImageToVideoPipeline:image_to_video', + 'MODIFF_SANA_OPENING_IMAGE_EVIDENCE', + 'video', + 'real_backend_input_bound_model_variant', + ], ['CogVideoXPipeline:text_to_video', 'MODIFF_COGVIDEOX_VIDEO_PROMPT_EVIDENCE', 'video'], ['AnimateDiffPAGPipeline:text_to_video', 'MODIFF_ANIMATEDIFF_PAG_VIDEO_EVIDENCE', 'video'], [ @@ -457,6 +464,13 @@ for (const [workflowId, variable, kind, proofKind = 'real_backend_prompt_bound_m assert.equal(original.receipt.negativePromptBinding.field, 'negative_prompt'); assert.match(original.receipt.negativePromptBinding.sha256, /^[a-f0-9]{64}$/u); } + const sanaOpeningImage = workflowId === 'SanaImageToVideoPipeline:image_to_video'; + if (sanaOpeningImage) { + assert.equal(original.receipt.decodedOutput.frames, 81); + assert.equal(original.receipt.negativePromptBinding.field, 'negative_prompt'); + assert.equal(original.receipt.observationLimits.openingImageLoadFieldsObserved, true); + assert.equal(original.receipt.observationLimits.samplerInputPixelsObserved, false); + } if (workflowId.startsWith('AnimateDiff')) { assert.equal(original.receipt.modelSet.length, 2); assert.equal(original.receipt.observationLimits.motionAdapterBoundByGraph, true); @@ -573,11 +587,13 @@ for (const [workflowId, variable, kind, proofKind = 'real_backend_prompt_bound_m writeFileSync(changedPath, JSON.stringify(substituted)); await assert.rejects( () => readCanonicalWorkflowEvidence({ ...args, evidencePath: changedPath }), - kind === 'video' - ? /Archived video upload differs/u - : workflowId === 'HuggingFaceAnyToAnyModel:image_to_text' - ? /Caption source bytes differ from the native load|Archived authoring requires the exact original capture/u - : /Caption source bytes differ from the native load/u, + sanaOpeningImage + ? /Opening image differs from the retained Load fields/u + : kind === 'video' + ? /Archived video upload differs/u + : workflowId === 'HuggingFaceAnyToAnyModel:image_to_text' + ? /Caption source bytes differ from the native load|Archived authoring requires the exact original capture/u + : /Caption source bytes differ from the native load/u, ); writeFileSync(path, originalBytes); } diff --git a/scripts/release-contract-core.mjs b/scripts/release-contract-core.mjs index e4d3e2cf..aa8cf35a 100644 --- a/scripts/release-contract-core.mjs +++ b/scripts/release-contract-core.mjs @@ -1,9 +1,10 @@ import { canonicalJsonHash } from './canonical-json.mjs'; import { assertCanonicalAccountingGraphEnvelope } from './canonical-runtime-hints.mjs'; import assert from 'node:assert/strict'; +import { AsyncLocalStorage } from 'node:async_hooks'; import { createHash } from 'node:crypto'; import { lstatSync, readFileSync, realpathSync } from 'node:fs'; -import { dirname, isAbsolute, join, sep } from 'node:path'; +import { dirname, isAbsolute, join, resolve, sep } from 'node:path'; import retainedGalleryAuthoringArchives from '../config/retained-gallery-authoring-archives.v1.json' with { type: 'json' }; import { backendSourceEvidence, @@ -628,8 +629,7 @@ export function canonicalEvidenceWritePath(root, relativePath) { // Metadata-only export through the exact frontend implementation used by Run. // Ephemeral storage and a rejecting fetch prevent inspection from using a live app. -export async function exportCanonicalWorkflowGraphs(clientRoot, graphs) { - const { createServer } = await import('vite'); +function withGraphExportEnvironment(callback) { const prior = new Map( ['window', 'localStorage', 'fetch'].map((key) => [key, Object.getOwnPropertyDescriptor(globalThis, key)]), ); @@ -647,32 +647,67 @@ export async function exportCanonicalWorkflowGraphs(clientRoot, graphs) { globalThis.fetch = () => { throw new Error('Canonical qualification export cannot access the network.'); }; + const restore = () => { + for (const [key, descriptor] of prior) { + if (descriptor) Object.defineProperty(globalThis, key, descriptor); + else delete globalThis[key]; + } + }; + let deferred = false; + try { + const result = callback(); + if (result instanceof Promise) { + deferred = true; + return result.finally(restore); + } + return result; + } finally { + if (!deferred) restore(); + } +} + +const canonicalGraphExport = new AsyncLocalStorage(); + +// A receipt batch uses the same frontend compiler for every graph. Each export +// still gets a cloned input, fixed seeds and its own offline environment. +export async function withCanonicalWorkflowGraphExporter(clientRoot, callback) { + const { createServer } = await import('vite'); let server; try { - server = await createServer({ - root: clientRoot, - configFile: false, - logLevel: 'silent', - optimizeDeps: { entries: [], noDiscovery: true }, - server: { middlewareMode: true, hmr: false, watch: null }, - appType: 'custom', + const { useFlowStore } = await withGraphExportEnvironment(async () => { + server = await createServer({ + root: clientRoot, + configFile: false, + logLevel: 'silent', + optimizeDeps: { entries: [], noDiscovery: true }, + server: { middlewareMode: true, hmr: false, watch: null }, + appType: 'custom', + }); + return server.ssrLoadModule('/src/stores/useFlowStore.ts'); }); - const { useFlowStore } = await server.ssrLoadModule('/src/stores/useFlowStore.ts'); - return graphs.map((graph) => - useFlowStore.getState().exportGraph('canonical-qualification', undefined, { - sourceGraph: structuredClone(graph), - randomizeSeeds: false, - }), + const exportGraphs = (graphs) => + withGraphExportEnvironment(() => + graphs.map((graph) => + useFlowStore.getState().exportGraph('canonical-qualification', undefined, { + sourceGraph: structuredClone(graph), + randomizeSeeds: false, + }), + ), + ); + return await canonicalGraphExport.run({ clientRoot: resolve(clientRoot), exportGraphs }, () => + callback(exportGraphs), ); } finally { await server?.close(); - for (const [key, descriptor] of prior) { - if (descriptor) Object.defineProperty(globalThis, key, descriptor); - else delete globalThis[key]; - } } } +export async function exportCanonicalWorkflowGraphs(clientRoot, graphs) { + const active = canonicalGraphExport.getStore(); + if (active?.clientRoot === resolve(clientRoot)) return active.exportGraphs(graphs); + return withCanonicalWorkflowGraphExporter(clientRoot, (exportGraphs) => exportGraphs(graphs)); +} + // Publication moves these authoring rows out of the hidden-candidate // ledger. Revalidate the original evidence against its exact archived // authoring row. A new or edited standalone capture cannot use that baseline. @@ -877,6 +912,8 @@ export async function readCanonicalWorkflowEvidence({ clientRoot, backendRoot, w 'modiff.private.animatediff-pag-video-prompt-variant.v1', 'modiff.private.animatediff-source-video-variant.v1', 'modiff.private.allegro-video-prompt-variant.v1', + 'modiff.private.sana-video-prompt-variant.v1', + 'modiff.private.sana-opening-image-variant.v1', ].includes(evidence.format) || directImagePromptRoutes.some(({ format }) => format === evidence.format) ) { diff --git a/scripts/release-contract.mjs b/scripts/release-contract.mjs index 0cd091a6..e6effb74 100644 --- a/scripts/release-contract.mjs +++ b/scripts/release-contract.mjs @@ -17,6 +17,7 @@ import { assessWorkflowReleaseEvidence, readCanonicalEvidenceFile, readCanonicalWorkflowEvidence, + withCanonicalWorkflowGraphExporter, } from './release-contract-core.mjs'; import { findGalleryEvidencePath } from './release-evidence-paths.mjs'; import { selectReviewedExperimentalWorkflows } from './workflow-library-manifest-state.mjs'; @@ -365,39 +366,41 @@ if (existsSync(canonicalRegistryPath)) { ) { throw new Error('Canonical workflow receipt registry has an invalid schema.'); } - for (const stored of registry.receipts) { - const descriptor = readCanonicalEvidenceFile( - BACKEND_ROOT, - { path: stored.evidencePath, bytes: stored.evidenceBytes, sha256: stored.evidenceSha256 }, - 65536, - ); - const derived = await readCanonicalWorkflowEvidence({ - clientRoot: CLIENT_ROOT, - backendRoot: BACKEND_ROOT, - workflowId: stored.workflowId, - evidencePath: descriptor.file, - }); - const body = { ...stored }; - delete body.evidencePath; - delete body.evidenceSha256; - delete body.evidenceBytes; - if (JSON.stringify(stable(body)) !== JSON.stringify(stable(derived.receipt))) { - throw new Error(`Canonical workflow receipt differs from original task evidence: ${stored.workflowId}`); - } - if ( - derived.receipt.inputBinding || - derived.receipt.promptBinding || - stored.workflowId === 'DDIMPipeline:unconditional_image' - ) { - if (retainedNativeBySha.has(stored.evidenceSha256)) { - throw new Error(`Original bound workflow evidence is duplicated: ${stored.workflowId}`); + await withCanonicalWorkflowGraphExporter(CLIENT_ROOT, async () => { + for (const stored of registry.receipts) { + const descriptor = readCanonicalEvidenceFile( + BACKEND_ROOT, + { path: stored.evidencePath, bytes: stored.evidenceBytes, sha256: stored.evidenceSha256 }, + 65536, + ); + const derived = await readCanonicalWorkflowEvidence({ + clientRoot: CLIENT_ROOT, + backendRoot: BACKEND_ROOT, + workflowId: stored.workflowId, + evidencePath: descriptor.file, + }); + const body = { ...stored }; + delete body.evidencePath; + delete body.evidenceSha256; + delete body.evidenceBytes; + if (JSON.stringify(stable(body)) !== JSON.stringify(stable(derived.receipt))) { + throw new Error(`Canonical workflow receipt differs from original task evidence: ${stored.workflowId}`); + } + if ( + derived.receipt.inputBinding || + derived.receipt.promptBinding || + stored.workflowId === 'DDIMPipeline:unconditional_image' + ) { + if (retainedNativeBySha.has(stored.evidenceSha256)) { + throw new Error(`Original bound workflow evidence is duplicated: ${stored.workflowId}`); + } + retainedNativeBySha.set(stored.evidenceSha256, { ...derived, registeredReceipt: stored }); } - retainedNativeBySha.set(stored.evidenceSha256, { ...derived, registeredReceipt: stored }); + const previous = canonicalReceiptsByWorkflow.get(stored.workflowId); + if (!previous || String(previous.capturedAt).localeCompare(stored.capturedAt) < 0) + canonicalReceiptsByWorkflow.set(stored.workflowId, stored); } - const previous = canonicalReceiptsByWorkflow.get(stored.workflowId); - if (!previous || String(previous.capturedAt).localeCompare(stored.capturedAt) < 0) - canonicalReceiptsByWorkflow.set(stored.workflowId, stored); - } + }); } const vite = await createServer({ root: CLIENT_ROOT, diff --git a/scripts/release-contract.test.mjs b/scripts/release-contract.test.mjs index 8aacaa55..3329a7d9 100644 --- a/scripts/release-contract.test.mjs +++ b/scripts/release-contract.test.mjs @@ -13,6 +13,7 @@ import { selectCurrentHistoricalEvidence, canonicalWorkflowContract, exportCanonicalWorkflowGraphs, + withCanonicalWorkflowGraphExporter, readCanonicalWorkflowEvidence, findCanonicalWorkflowRecord, templateResourceExecutionModelType, @@ -34,6 +35,33 @@ import { selectReviewedExperimentalWorkflows, } from './workflow-library-manifest-state.mjs'; +test('a batch compiler preserves exact graph exports and releases its offline scope', async () => { + const clientRoot = resolve('.'); + const backendRoot = resolve(process.env.MODIFF_BACKEND_DIR ?? '../MoDiff'); + const read = (name) => JSON.parse(readFileSync(join(backendRoot, 'data', name), 'utf8')); + const entries = read('workflow-library-manifest.json').workflows.filter( + ({ modelType }) => modelType === 'BuiltinDataOperation', + ); + assert.ok(entries.length >= 2); + const graphs = entries.slice(0, 2).map(({ graphPath }) => read(join('graphs', graphPath))); + const expected = await exportCanonicalWorkflowGraphs(clientRoot, graphs); + const prior = globalThis.fetch; + await assert.rejects( + withCanonicalWorkflowGraphExporter(clientRoot, async () => { + const [last, first] = await Promise.all([ + exportCanonicalWorkflowGraphs(clientRoot, [graphs[1]]), + exportCanonicalWorkflowGraphs(clientRoot, [graphs[0]]), + ]); + assert.deepEqual([first[0], last[0]], expected); + assert.equal(globalThis.fetch, prior); + throw new Error('stop the test batch'); + }), + /stop the test batch/u, + ); + assert.equal(globalThis.fetch, prior); + assert.deepEqual(await exportCanonicalWorkflowGraphs(clientRoot, [graphs[0]]), [expected[0]]); +}); + test('verified standalone model execution remains distinct from a reviewed exact template recipe', () => { const workflow = { modelType: 'ExamplePipeline', exactModelRevision: `example/base@${'a'.repeat(40)}` }; assert.deepEqual(assessWorkflowReleaseEvidence({ modelType: workflow.modelType }), { From 3ea69f02f15dc698d72b89abca3dc1be32418975 Mon Sep 17 00:00:00 2001 From: Sourav Das Date: Wed, 25 Nov 2026 08:24:41 +0530 Subject: [PATCH 360/440] Verify retained CPU edits and guided video evidence --- CONTRIBUTING.md | 11 ++ scripts/native-variant-run-evidence.mjs | 17 +++ scripts/private-image-edit-evidence.mjs | 129 +++++++++++++---- scripts/private-image-edit-evidence.test.mjs | 38 +++++ scripts/prompt-variant-evidence.mjs | 139 ++++++++++++++----- scripts/prompt-variant-evidence.test.mjs | 43 +++++- scripts/release-contract-core.mjs | 4 + 7 files changed, 319 insertions(+), 62 deletions(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index bb8f05d7..b8194f75 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -570,6 +570,17 @@ and native decode to the typed Edit connection. The archived two-reference run carries an older Image Edit label in its form. The executable graph and observed sampler identify the two-reference task. +Older AnimateDiff guided runs retain the exact original guide clip and its +path through normalization and edge preparation. A guided edit also binds +its independently uploaded source video. The original recorder identifies +the installed ControlNet checkpoint and the executed task. The processed +frames and applied-weight evidence remain unavailable. + +Retained edits use their exact source encoding. The LongCat example binds +its native WebP upload. The Kandinsky example preserves its FP32 CPU +recipe and measures memory from samples of the original worker during +the task. Mochi's short video retains its explicit Auto attention choice. + The reviewed Marigold synthetic ramp, SmolLM2 rain-gauge, Spandrel Real-ESRGAN 2×, Whisper Tiny transcription and LCM dawn edit use declarations in `src/studio/retainedGalleryTemplates.ts`. They share diff --git a/scripts/native-variant-run-evidence.mjs b/scripts/native-variant-run-evidence.mjs index 9b9f5d1d..32b5a6ee 100644 --- a/scripts/native-variant-run-evidence.mjs +++ b/scripts/native-variant-run-evidence.mjs @@ -1,4 +1,21 @@ import assert from 'node:assert/strict'; + +export function bindRetainedCpuFloat32Recipe({ quantization, recipe, loader }) { + for (const [owner, field, baseline, observed] of [ + [loader, 'auto_offload', true, false], + [loader, 'device', 'cuda:0', 'cpu:0'], + [loader, 'dtype', 'float16', 'float32'], + [loader, 'offload_mode', 'model_cpu', 'none'], + [quantization, 'dtype', 'float16', 'float32'], + [recipe, 'device', 'cuda:0', 'cpu:0'], + [recipe, 'offload_mode', 'model_cpu', 'none'], + ]) { + const param = owner.node.params[field]; + assert.equal(param.value, baseline); + assert.ok(!param.sourceId && !param.sourceKey, 'A CPU variant requires literal resource controls.'); + param.value = observed; + } +} import { stableStringify } from './live-proof-provenance.mjs'; const same = (a, b, message) => assert.equal(stableStringify(a), stableStringify(b), message); diff --git a/scripts/private-image-edit-evidence.mjs b/scripts/private-image-edit-evidence.mjs index f2fa4522..e9e4c1a1 100644 --- a/scripts/private-image-edit-evidence.mjs +++ b/scripts/private-image-edit-evidence.mjs @@ -14,6 +14,7 @@ import { stableStringify, } from './live-proof-provenance.mjs'; import { + bindRetainedCpuFloat32Recipe, validateLateNativeImageVariantRun, validateNativeVariantOutput, validateNativeVariantRun, @@ -24,12 +25,14 @@ import { exportCanonicalWorkflowGraphs, readCanonicalEvidenceFile, } from './release-contract-core.mjs'; +import { validateSampledCpuWorkerMemory } from './prompt-variant-evidence.mjs'; export const PRIVATE_IMAGE_EDIT_FORMAT = 'modiff.private.lcm-source-bound-edit.v1'; export const DIRECT_IMAGE_EDIT_FORMAT = 'modiff.private.direct-image-edit-source-bound.v1'; export const NATIVE_PNG_EDIT_FORMAT = 'modiff.private.direct-image-edit-native-png.v1'; export const NATIVE_PNG_INPAINT_FORMAT = 'modiff.private.direct-image-inpaint-native-png.v1'; export const SAVED_PNG_EDIT_FORMAT = 'modiff.private.saved-image-edit-native-png.v1'; +const SAVED_WEBP_EDIT_FORMAT = 'modiff.private.saved-image-edit-native-webp.v1'; const baseConsumed = ['num_inference_steps', 'output_type', 'prompt', 'seed']; const imageGeometry = ['height', 'max_sequence_length', 'width']; const stableDiffusionEditConsumed = [...baseConsumed, 'negative_prompt', 'guidance_scale', 'strength']; @@ -70,6 +73,35 @@ const retainedCfgInpaint = { masked: true, }; const editRoutes = new Map([ + [ + 'Kandinsky3Pipeline:edit_image', + { + ...retainedImageEdit, + modelRepo: 'kandinsky-community/kandinsky-3', + modelRevision: 'bf79e6c219da8a94abb50235fdc4567eb8fb4632', + loaderClass: 'Kandinsky3Img2ImgPipeline', + consumed: stableDiffusionEditConsumed, + inactiveRecorded: imageGeometry, + sourceFingerprint: 'sha256:backend-source-v1:175112f2430928958bd90dc5ae78b50ce0a54403e42e28cfc68096945d05fbe6', + originalRegistryHash: 'c4e6cbddbff684ac03dfb6625a04048f484d0ed38d58bb14daf072e629458d69', + cpuExecution: true, + }, + ], + [ + 'LongCatImageEditPipeline:edit_image', + { + ...retainedImageEdit, + format: SAVED_WEBP_EDIT_FORMAT, + modelRepo: 'meituan-longcat/LongCat-Image-Edit', + modelRevision: '7b54ef423aa7854be7861600024be5c56ab7875a', + loaderClass: 'LongCatImageEditPipeline', + consumed: [...baseConsumed, 'negative_prompt', 'guidance_scale'], + inactiveRecorded: [...imageGeometry, 'strength'], + sourceFingerprint: retainedCfgInpaint.sourceFingerprint, + runtimeContractDigest: retainedCfgInpaint.runtimeContractDigest, + fullNativeSnapshot: true, + }, + ], [ 'LatentConsistencyModelPipeline:edit_image', { @@ -375,6 +407,7 @@ export function bindPrivateImageEditGraph({ inputPathPrefix = '', nativePngEvidence = false, residentRecipe = false, + cpuExecution = false, }) { const bound = structuredClone(expected); const masked = maskInput !== undefined; @@ -400,6 +433,7 @@ export function bindPrivateImageEditGraph({ assert.ok(typeof prompt === 'string' && prompt.length > 0 && prompt.length <= 4096 && prompt.trim() === prompt); assert.ok(!/[\u0000-\u001f\u007f]/u.test(prompt)); canonicalPrompt.value = prompt; + if (cpuExecution) bindRetainedCpuFloat32Recipe(canonical); if (strengthVariant) { assert.equal(canonical.edit.node.params.strength.value, strengthVariant.original); canonical.edit.node.params.strength.value = strengthVariant.retained; @@ -547,7 +581,7 @@ function verifySavedEditControls(bound, output, route) { same(receipt.unavailableFields, []); same(receipt.uncapturedNodeIds, []); const ambiguous = bound.mask ? ['device', 'imageAlphaChannel', 'imageSourceHashes', 'imageSourceModes'] : ['device']; - same(receipt.ambiguousFields, route.residentRecipe ? ['offloadMode'] : ambiguous); + same(receipt.ambiguousFields, route.cpuExecution ? [] : route.residentRecipe ? ['offloadMode'] : ambiguous); const owners = (bound.mask ? inpaintOwners : ownerOrder).map(([role]) => bound[role]); same(receipt.nodes.map(({ nodeId }) => nodeId).sort(), owners.map(({ id }) => id).sort()); const record = ({ id, node }) => { @@ -592,10 +626,17 @@ function verifySavedEditControls(bound, output, route) { assert.equal(recipe.fieldAccounting.fields.offload_mode.disposition, 'consumed'); assert.equal(loader.fieldAccounting.fields.offload_mode.disposition, 'superseded'); assert.equal(loader.fieldAccounting.fields.offload_mode.reason, 'connected-recipe'); + if (route.cpuExecution) { + same(recipe.fields.device, literal('cpu:0')); + same(loader.fields.device, literal('cpu:0')); + same(loader.fields.dtype, literal('float32')); + same(loader.fields.auto_offload, literal(false)); + assert.equal(offload, 'none'); + } return record; } -async function verifySavedPngSource(bound, output, { input, maskInput, references }, route, read, json, evidence) { +async function verifySavedImageSource(bound, output, { input, maskInput, references }, route, read, json, evidence) { const record = verifySavedEditControls(bound, output, route); const { decodedMediaHash } = await import('./template-gallery-harness.mjs'); const verify = async (role, selected, uploads, port, mode) => { @@ -606,7 +647,13 @@ async function verifySavedPngSource(bound, output, { input, maskInput, reference const { bytes, file } = read(entry.file); const { width, height } = await decodedMediaHash(file, 'image'); const decodedImage = { width, height, mode }; - verifyRetainedPngUpload(json(uploads[index]), entry, decodedImage, bytes); + verifyRetainedImageUpload( + json(uploads[index]), + entry, + decodedImage, + bytes, + route.format === SAVED_WEBP_EDIT_FORMAT ? 'webp' : 'png', + ); return decodedImage; }), ); @@ -662,7 +709,7 @@ function validateRuntime( observation, bound, workflowId, - { modelRepo, modelRevision, loaderClass }, + { modelRepo, modelRevision, loaderClass, cpuExecution }, ) { same( completion.runtimeHints, @@ -680,7 +727,9 @@ function validateRuntime( const { elapsedSeconds, peakAllocatedBytes, peakReservedBytes, peakMeasurementVersion } = task.runtimeMeasurement; assert.equal(peakMeasurementVersion, 2); assert.ok(Number.isFinite(elapsedSeconds) && elapsedSeconds > 0 && elapsedSeconds <= 7200); - assert.ok(Number.isSafeInteger(peakAllocatedBytes) && peakAllocatedBytes > 0); + assert.ok( + Number.isSafeInteger(peakAllocatedBytes) && (cpuExecution ? peakAllocatedBytes === 0 : peakAllocatedBytes > 0), + ); assert.ok(Number.isSafeInteger(peakReservedBytes) && peakReservedBytes >= peakAllocatedBytes); assert.equal(observation.error, false); assert.equal(observation.runtimeFingerprint, runtime.fingerprint); @@ -698,26 +747,40 @@ function validateRuntime( } export function verifyRetainedPngUpload(upload, input, decoded, bytes) { + verifyRetainedImageUpload(upload, input, decoded, bytes, 'png'); +} + +function verifyRetainedImageUpload(upload, input, decoded, bytes, encoding) { + const png = encoding === 'png'; keys(upload, ['error', 'path', 'media']); assert.equal(upload.error, false); assert.equal(upload.path, input.sourceValue); - assert.match(input.sourceValue, /^@data\/images\/[a-zA-Z0-9_-][\w.-]{0,200}\.png$/u); + assert.match( + input.sourceValue, + png ? /^@data\/images\/[a-zA-Z0-9_-][\w.-]{0,200}\.png$/u : /^@data\/images\/[a-zA-Z0-9_-][\w.-]{0,200}\.webp$/u, + ); same( upload.media, { filename: input.sourceValue.split('/').at(-1), - extension: '.png', + extension: '.' + encoding, sizeBytes: bytes.length, sha256: sha256(bytes), kind: 'image', - mimeType: 'image/png', + mimeType: 'image/' + encoding, width: decoded.width, height: decoded.height, frames: 1, }, - 'The retained source upload differs from the exact native PNG input.', + `The retained source upload differs from the exact native ${encoding.toUpperCase()} input.`, ); - assert.equal(bytes.subarray(0, 8).toString('hex'), '89504e470d0a1a0a', 'The retained source is not PNG.'); + if (png) { + assert.equal(bytes.subarray(0, 8).toString('hex'), '89504e470d0a1a0a', 'The retained source is not PNG.'); + } else { + assert.equal(bytes.subarray(0, 4).toString('ascii'), 'RIFF', 'The retained source is not WebP.'); + assert.equal(bytes.subarray(8, 12).toString('ascii'), 'WEBP', 'The retained source is not WebP.'); + assert.equal(bytes.readUInt32LE(4), bytes.length - 8, 'The retained WebP container size differs.'); + } } export async function readPrivateImageEditEvidence({ clientRoot, manifest, graph, authoring, artifact, evidencePath }) { @@ -734,11 +797,12 @@ export async function readPrivateImageEditEvidence({ clientRoot, manifest, graph const descriptorBytes = readFileSync(evidencePath); const evidence = JSON.parse(descriptorBytes); const masked = route.masked === true; - const savedPng = route.format === SAVED_PNG_EDIT_FORMAT && evidence.format === SAVED_PNG_EDIT_FORMAT; - const replayedRegistry = savedPng && !route.originalRegistryHash; + const savedImage = + [SAVED_PNG_EDIT_FORMAT, SAVED_WEBP_EDIT_FORMAT].includes(route.format) && evidence.format === route.format; + const replayedRegistry = savedImage && !route.originalRegistryHash; const referenceCount = route.orderedReferences ?? 0; const pngFormat = masked ? NATIVE_PNG_INPAINT_FORMAT : NATIVE_PNG_EDIT_FORMAT; - const nativePngEvidence = savedPng || (route.nativePngEvidence === true && evidence.format === pngFormat); + const nativeUpload = savedImage || (route.nativePngEvidence === true && evidence.format === pngFormat); keys(evidence, [ 'schemaVersion', 'format', @@ -747,13 +811,14 @@ export async function readPrivateImageEditEvidence({ clientRoot, manifest, graph 'graphRequest', 'graphAcknowledgment', 'persistedOutputs', - ...(nativePngEvidence ? ['inputUpload'] : ['inputServerBefore', 'inputServerAfter']), + ...(nativeUpload ? ['inputUpload'] : ['inputServerBefore', 'inputServerAfter']), ...(masked ? ['maskUpload'] : []), ...(replayedRegistry ? ['registryReplay'] : []), ...(referenceCount ? ['referenceUploads'] : []), + ...(route.cpuExecution ? ['resourceSamples', 'worker'] : []), ]); assert.equal(evidence.schemaVersion, 1); - assert.equal(evidence.format, nativePngEvidence && !savedPng ? pngFormat : route.format); + assert.equal(evidence.format, nativeUpload && !savedImage ? pngFormat : route.format); assert.equal(evidence.workflowId, workflowId); const evidenceRoot = realpathSync(dirname(evidencePath)); const retainedFiles = []; @@ -820,8 +885,9 @@ export async function readPrivateImageEditEvidence({ clientRoot, manifest, graph references, strengthVariant: route.strengthVariant, inputPathPrefix: route.inputPathPrefix, - nativePngEvidence, + nativePngEvidence: nativeUpload && route.format !== SAVED_WEBP_EDIT_FORMAT, residentRecipe: route.residentRecipe, + cpuExecution: route.cpuExecution, }); for (const api of [creator.apiGraph, ...visualExports]) { directOwners(api, false, masked); @@ -851,8 +917,8 @@ export async function readPrivateImageEditEvidence({ clientRoot, manifest, graph const { task, output, hints } = validateRun(runOptions); same(hints.workflowSnapshot.studioForm, output.formSnapshot); let sourceBinding; - if (savedPng) { - sourceBinding = await verifySavedPngSource( + if (savedImage) { + sourceBinding = await verifySavedImageSource( bound, output, { input, maskInput, references }, @@ -865,7 +931,7 @@ export async function readPrivateImageEditEvidence({ clientRoot, manifest, graph validatePrivateImageEditFields(bound, output, route.consumed); sourceBinding = await verifySourceBinding(clientRoot, bound, output, input, route); const inputMedia = read(input.file); - if (nativePngEvidence) { + if (nativeUpload) { verifyRetainedPngUpload(json(evidence.inputUpload), input, sourceBinding.decodedInput, inputMedia.bytes); } else { for (const ref of [evidence.inputServerBefore, evidence.inputServerAfter]) { @@ -909,7 +975,7 @@ export async function readPrivateImageEditEvidence({ clientRoot, manifest, graph runtimeFingerprint: task.runtimeFingerprint, }); same(source.blockers, []); - if (savedPng) { + if (savedImage) { assert.equal(source.identity.fingerprint, route.sourceFingerprint); } if (route.originalRegistryHash) { @@ -934,6 +1000,14 @@ export async function readPrivateImageEditEvidence({ clientRoot, manifest, graph workflowId, route, ); + const peakMemoryBytes = route.cpuExecution + ? validateSampledCpuWorkerMemory( + read(evidence.resourceSamples, 1024 * 1024).bytes, + json(evidence.worker), + source.identity, + task, + ) + : peakAllocatedBytes; for (const ref of retainedFiles) readCanonicalEvidenceFile(evidenceRoot, ref, 16 * 1024 * 1024); assert.ok(readFileSync(evidencePath).equals(descriptorBytes), 'Evidence descriptor changed during validation.'); const receipt = { @@ -950,7 +1024,7 @@ export async function readPrivateImageEditEvidence({ clientRoot, manifest, graph backendSourceFingerprint: source.identity.fingerprint, backendContractFingerprint: backendContract.fingerprint, executionDurationSeconds: elapsedSeconds, - peakMemoryBytes: peakAllocatedBytes, + peakMemoryBytes, canonicalDefaultsExecuted: false, inputBinding: { nodeId: input.nodeId, field: 'file', sha256: input.file.sha256, decodedImage: decodedInput }, ...(referenceCount @@ -980,16 +1054,21 @@ export async function readPrivateImageEditEvidence({ clientRoot, manifest, graph fullConsumedFieldAccounting: false, editConsumerControlsObserved: true, sourceGeometryQualified: false, - ...(nativePngEvidence - ? { sourceByteWitness: savedPng ? 'native-load-and-upload-with-typed-wire' : 'native-load-consumer-and-upload' } + ...(nativeUpload + ? { + sourceByteWitness: savedImage + ? 'native-load-and-upload-with-typed-wire' + : 'native-load-consumer-and-upload', + } : {}), ...(masked - ? { maskByteWitness: savedPng ? 'native-load-and-upload-with-typed-wire' : 'native-load-consumer-and-upload' } + ? { maskByteWitness: savedImage ? 'native-load-and-upload-with-typed-wire' : 'native-load-consumer-and-upload' } : {}), ...(route.retainedFormMode ? { retainedStudioFormMode: route.retainedFormMode } : {}), - ...(savedPng + ...(savedImage ? { independentConsumerPixels: false, configuredUnobservedControls: route.unobservedControls ?? [] } : {}), + ...(route.cpuExecution ? { executionDevice: 'cpu:0', peakMemorySource: 'sampled-worker-rss' } : {}), physicalPlatformQualification: false, }, qualificationClaims: { diff --git a/scripts/private-image-edit-evidence.test.mjs b/scripts/private-image-edit-evidence.test.mjs index bdf8395d..e153998b 100644 --- a/scripts/private-image-edit-evidence.test.mjs +++ b/scripts/private-image-edit-evidence.test.mjs @@ -449,6 +449,7 @@ for (const [workflowId, variable, hasMask, unobserved] of [ ['QwenImageEditPipeline:edit_image', 'MODIFF_SAVED_QWEN_SLATE_EVIDENCE', false, []], ['QwenImageModularPipeline:inpaint', 'MODIFF_SAVED_QWEN_SCRATCH_EVIDENCE', true, []], ['FluxDevPipeline:inpaint', 'MODIFF_SAVED_FLUX_DEV_REPAIR_EVIDENCE', true, []], + ['LongCatImageEditPipeline:edit_image', 'MODIFF_SAVED_LONGCAT_EDIT_EVIDENCE', false, []], ]) { const saved = process.env[variable]; test( @@ -488,6 +489,43 @@ for (const [workflowId, variable, hasMask, unobserved] of [ ); } +const retainedCpuEdit = process.env.MODIFF_SAVED_KANDINSKY_CPU_EDIT_EVIDENCE; +test('Kandinsky CPU edit joins archived pixels and sampled worker memory', { skip: !retainedCpuEdit }, async () => { + const clientRoot = fileURLToPath(new URL('..', import.meta.url)); + const backendRoot = resolve(process.env.MODIFF_BACKEND_DIR ?? join(clientRoot, '..', 'MoDiff')); + const args = { + clientRoot, + backendRoot, + workflowId: 'Kandinsky3Pipeline:edit_image', + evidencePath: resolve(retainedCpuEdit), + }; + const original = await readCanonicalWorkflowEvidence(args); + assert.equal(original.receipt.observationLimits.executionDevice, 'cpu:0'); + assert.equal(original.receipt.observationLimits.peakMemorySource, 'sampled-worker-rss'); + assert.equal(original.receipt.peakMemoryBytes, 62254313472); + assert.equal(original.receipt.qualificationClaims.hardwareQualified, false); + const root = mkdtempSync(join(tmpdir(), 'modiff-retained-cpu-edit-')); + try { + for (const file of original.retainedFiles) { + assert.equal(basename(file.path), file.path); + copyFileSync(file.absolutePath, join(root, file.path)); + } + const descriptor = JSON.parse(original.descriptorBytes); + const ref = descriptor.resourceSamples; + const samples = readFileSync(join(root, ref.path), 'utf8').trim().split(/\r?\n/u); + const reduced = samples.map((line) => JSON.stringify({ ...JSON.parse(line), workerRss: 1 })); + const bytes = Buffer.from(reduced.join('\n') + '\n'); + Object.assign(ref, { bytes: bytes.length, sha256: createHash('sha256').update(bytes).digest('hex') }); + writeFileSync(join(root, ref.path), bytes); + const changed = join(root, 'evidence.json'); + writeFileSync(changed, JSON.stringify(descriptor)); + await assert.rejects(readCanonicalWorkflowEvidence({ ...args, evidencePath: changed }), /peak >=/u); + } finally { + assert.equal(dirname(root), resolve(tmpdir())); + rmSync(root, { recursive: true, force: true }); + } +}); + test('retained native PNG upload binds an exact safe path, file bytes and decoded dimensions', () => { const bytes = Buffer.from( 'iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mP8/x8AAwMCAO+a0AMAAAAASUVORK5CYII=', diff --git a/scripts/prompt-variant-evidence.mjs b/scripts/prompt-variant-evidence.mjs index 80c7ef8c..e7e2e874 100644 --- a/scripts/prompt-variant-evidence.mjs +++ b/scripts/prompt-variant-evidence.mjs @@ -16,6 +16,7 @@ import { stableStringify, } from './live-proof-provenance.mjs'; import { + bindRetainedCpuFloat32Recipe, validateLateNativeImageVariantRun, validateNativeVariantOutput, validateNativeVariantRun, @@ -286,6 +287,40 @@ const animateDiffEditRoute = { reviewedSettings: [['generator', 'strength', 0.8, 0.45]], }; +const animateDiffGuideChain = [ + ['guide', 'modules.Video', 'Load', ''], + ['normalizeGuide', 'modules.VideoConditioning', 'Normalize', 'height num_frames width'], + ['edges', 'modules.VideoConditioning', 'EdgePreprocessor', ''], +]; + +const animateDiffGuideRoute = { + ...animateDiffEditRoute, + format: 'modiff.private.animatediff-guide-video-variant.v1', + workflowId: 'AnimateDiffControlNetPipeline:control_to_video', + modelType: 'AnimateDiffControlNetPipeline', + executedTask: 'control_to_video', + bindsVideoUpload: false, + bindsVideoGuide: true, + sourceFingerprint: 'sha256:backend-source-v1:a107f0838ce3b1be98034123eb3bf3393928a09c5ad7e3c133687d5a7c58be57', + reviewedSettings: [], + controlAdapter: { + repoId: 'lllyasviel/control_v11p_sd15_canny', + revision: '115a470d547982438f70198e353a921996e2e819', + }, + chain: [...animateDiffGuideChain, ...wanA14BRoute.chain], +}; + +const animateDiffGuidedEditRoute = { + ...animateDiffGuideRoute, + format: 'modiff.private.animatediff-source-and-guide-video-variant.v1', + workflowId: 'AnimateDiffVideoToVideoControlNetPipeline:control_video_to_video', + modelType: 'AnimateDiffVideoToVideoControlNetPipeline', + executedTask: 'control_video_to_video', + bindsVideoUpload: true, + sourceFingerprint: 'sha256:backend-source-v1:b4a707d462a5f13dae1660c1665ed5195f45ed4ffbfcd7d80de879cd881aea86', + chain: [...animateDiffGuideChain, ...animateDiffEditRoute.chain], +}; + const allegroRoute = { ...wanA14BRoute, format: 'modiff.private.allegro-video-prompt-variant.v1', @@ -330,8 +365,23 @@ const sanaOpeningImageRoute = { chain: [['source', 'modules.Image', 'Load', ''], ...sanaVideoRoute.chain], }; +const mochiVideoRoute = { + ...wanA14BRoute, + format: 'modiff.private.mochi-video-prompt-variant.v1', + workflowId: 'MochiPipeline:text_to_video', + modelType: 'MochiPipeline', + modelRepo: 'genmo/mochi-1-preview', + modelRevision: '14be5fcea23095ed330cb214647916a451e38b6e', + previousExpertFamily: 'SanaImageToVideoPipeline', + sourceFingerprint: 'sha256:backend-source-v1:b29a5b0d317aaa781ae2a5205b46b518eea5a3d68a214eb0968dba4ac0660af7', + bindNegativePrompt: true, + retainedNativeMathDefault: true, + reviewedSettings: [['recipe', 'attention_backend', '_native_math', 'auto']], +}; + const promptModelSet = (profile) => [ ...(profile.motionAdapter ? [profile.motionAdapter] : []), + ...(profile.controlAdapter ? [profile.controlAdapter] : []), { repoId: profile.modelRepo, revision: profile.modelRevision }, ]; @@ -360,6 +410,10 @@ const graphEnvelope = (graph, hinted = false) => 'Unreviewed prompt variant graph envelope.', ); +const hasFileInput = (profile, role) => + (role === 'source' && (profile.bindsImage || profile.bindsVideoUpload)) || + (role === 'guide' && profile.bindsVideoGuide); + function owners(profile, api) { const [path] = api.paths; assert.equal(api.paths.length, 1, 'Expected one prompt variant execution path.'); @@ -377,13 +431,13 @@ function owners(profile, api) { assert.equal(node.module, module); assert.equal(node.action, action); const fileFields = Object.keys(node.params).filter((name) => node.params[name].display === 'filebrowser'); - same(fileFields, role === 'source' && (profile.bindsImage || profile.bindsVideoUpload) ? ['file'] : []); + same(fileFields, hasFileInput(profile, role) ? ['file'] : []); return [role, { id, node, capturedFields: capturedFields ? capturedFields.split(' ') : [] }]; }), ); } -export function bindPromptVariant(profile, original, created, output, baselineHash, sourceValue) { +export function bindPromptVariant(profile, original, created, output, baselineHash, sourceValue, guideValue) { graphEnvelope(original); graphEnvelope(created); graphEnvelope(output, true); @@ -394,23 +448,7 @@ export function bindPromptVariant(profile, original, created, output, baselineHa same(tiling, { value: false }, 'CogVideoX tiling default changed.'); tiling.value = true; } - if (profile.executionDevice === 'cpu:0') { - const cpuChanges = [ - [expectedOwners.loader, 'auto_offload', true, false], - [expectedOwners.loader, 'device', 'cuda:0', 'cpu:0'], - [expectedOwners.loader, 'dtype', 'float16', 'float32'], - [expectedOwners.loader, 'offload_mode', 'model_cpu', 'none'], - [expectedOwners.quantization, 'dtype', 'float16', 'float32'], - [expectedOwners.recipe, 'device', 'cuda:0', 'cpu:0'], - [expectedOwners.recipe, 'offload_mode', 'model_cpu', 'none'], - ]; - for (const [owner, field, originalValue, cpuValue] of cpuChanges) { - const param = owner.node.params[field]; - assert.equal(param.value, originalValue); - assert.ok(!param.sourceId && !param.sourceKey, 'A CPU variant requires literal resource controls.'); - param.value = cpuValue; - } - } + if (profile.executionDevice === 'cpu:0') bindRetainedCpuFloat32Recipe(expectedOwners); if (profile.retainedNativeMathDefault) { const attention = expectedOwners.recipe.node.params.attention_backend; assert.ok(['auto', '_native_math'].includes(attention.value)); @@ -448,6 +486,16 @@ export function bindPromptVariant(profile, original, created, output, baselineHa same(expectedInputs.video, { display: 'input', sourceId: normalize.id, sourceKey: 'output' }); source.node.params.file.value = [sourceValue]; } + if (profile.bindsVideoGuide) { + assert.match(guideValue, /^@data\/videos\/[a-z0-9_-]{1,120}[.]mp4$/iu); + assert.notEqual(guideValue, sourceValue, 'Guide and source must be distinct video selections.'); + const { guide, normalizeGuide, edges } = expectedOwners; + same(guide.node.params.file, { display: 'filebrowser', value: '' }); + same(normalizeGuide.node.params.video, { display: 'input', sourceId: guide.id, sourceKey: 'video' }); + same(edges.node.params.video, { display: 'input', sourceId: normalizeGuide.id, sourceKey: 'output' }); + same(expectedInputs.control_video, { display: 'input', sourceId: edges.id, sourceKey: 'output' }); + guide.node.params.file.value = [guideValue]; + } const promptSlot = expectedInputs.prompt; assert.equal( promptSlot.value, @@ -951,14 +999,17 @@ export async function readPromptVariantEvidence({ clientRoot, manifest, graph, a cogVideoEditRoute, animateDiffPagRoute, animateDiffEditRoute, + animateDiffGuideRoute, + animateDiffGuidedEditRoute, allegroRoute, sanaVideoRoute, sanaOpeningImageRoute, + mochiVideoRoute, ].find(({ workflowId }) => workflowId === target.workflowId); assert.ok(profile, 'Prompt variant route is not reviewed.'); const generatedVideo = profile.outputKind === 'video' && - ['text_to_video', 'image_to_video', 'video_to_video'].includes(profile.executedTask); + (['text_to_video', 'image_to_video', 'video_to_video'].includes(profile.executedTask) || profile.bindsVideoGuide); const generatedAudio = profile === audioRoute || profile === audioLdmRoute; const requiresOriginalRequest = imageRoute !== undefined || @@ -1000,9 +1051,12 @@ export async function readPromptVariantEvidence({ clientRoot, manifest, graph, a assert.equal(evidence.format, profile.format); assert.equal(evidence.workflowId, profile.workflowId); assert.ok(Array.isArray(evidence.inputs)); - assert.equal(evidence.inputs.length, profile.bindsImage || profile.bindsVideoUpload ? 1 : 0); - const [suppliedInput] = evidence.inputs; - if (suppliedInput) keys(suppliedInput, ['sourceValue', 'file', 'upload']); + const hasSourceInput = profile.bindsImage || profile.bindsVideoUpload; + assert.equal(evidence.inputs.length, Number(Boolean(hasSourceInput)) + Number(Boolean(profile.bindsVideoGuide))); + const suppliedInput = hasSourceInput ? evidence.inputs[0] : undefined; + const suppliedGuide = profile.bindsVideoGuide ? evidence.inputs.at(-1) : undefined; + for (const input of evidence.inputs) keys(input, ['sourceValue', 'file', 'upload']); + if (suppliedInput && suppliedGuide) assert.notEqual(suppliedInput.file.sha256, suppliedGuide.file.sha256); assert.equal(evidence.modelObservations.length, target.modelSet.length); assert.equal(evidence.outputs.length, 1); const [outputRef] = evidence.outputs; @@ -1033,6 +1087,7 @@ export async function readPromptVariantEvidence({ clientRoot, manifest, graph, a submitted, evidence.originalGraphHash, suppliedInput?.sourceValue, + suppliedGuide?.sourceValue, ); for (const api of [creatorApi, outputApi, runApi]) { graphEnvelope(api); @@ -1122,17 +1177,17 @@ export async function readPromptVariantEvidence({ clientRoot, manifest, graph, a same([decoded.width, decoded.height], [width, height], 'Opening image dimensions differ from the original file.'); } } - if (profile.bindsVideoUpload) { - const { bytes, file } = read(suppliedInput.file); - const upload = json(suppliedInput.upload); + const bindRetainedVideo = async (input, load, normalize) => { + const { bytes, file } = read(input.file); + const upload = json(input.upload); const { decodedMediaHash } = await import('./template-gallery-harness.mjs'); const decoded = await decodedMediaHash(file, 'video'); assert.equal(upload.error, false); - assert.equal(upload.path, suppliedInput.sourceValue); + assert.equal(upload.path, input.sourceValue); same( upload.media, { - filename: suppliedInput.sourceValue.split('/').at(-1), + filename: input.sourceValue.split('/').at(-1), extension: '.mp4', sizeBytes: bytes.length, sha256: digest(bytes), @@ -1144,10 +1199,10 @@ export async function readPromptVariantEvidence({ clientRoot, manifest, graph, a }, 'Archived video upload differs from the retained bytes.', ); - assert.equal(decoded.frames, bound.normalize.node.params.num_frames.value); + assert.equal(decoded.frames, normalize.node.params.num_frames.value); assert.equal(decoded.hasAudio, false); - inputBinding = { - nodeId: bound.source.id, + return { + nodeId: load.id, field: 'file', sha256: digest(bytes), decodedVideo: { @@ -1158,12 +1213,21 @@ export async function readPromptVariantEvidence({ clientRoot, manifest, graph, a hash: decoded.hash, }, }; + }; + if (profile.bindsVideoUpload) { + inputBinding = await bindRetainedVideo(suppliedInput, bound.source, bound.normalize); } + const guideBinding = profile.bindsVideoGuide + ? await bindRetainedVideo(suppliedGuide, bound.guide, bound.normalizeGuide) + : undefined; + if (!inputBinding) inputBinding = guideBinding; const nodeBytes = read(evidence.nodes).bytes; const nodes = JSON.parse(nodeBytes); if (profile.replayedRuntimeContract) { same(json(evidence.registryReplay), { - scope: 'Original nodes handler only, with exact source and runtime contract', + scope: profile.bindsVideoGuide + ? 'metadata-only replay from exact source and runtime contract' + : 'Original nodes handler only, with exact source and runtime contract', modelRuns: 0, fileCount: source.identity.files.length, sourceFingerprint: source.identity.fingerprint, @@ -1180,7 +1244,7 @@ export async function readPromptVariantEvidence({ clientRoot, manifest, graph, a assert.equal(contract.action, action); same( Object.keys(contract.params).filter((name) => contract.params[name].display === 'filebrowser'), - role === 'source' && (profile.bindsImage || profile.bindsVideoUpload) ? ['file'] : [], + hasFileInput(profile, role) ? ['file'] : [], ); } const { runtime, measurement } = validateNativePromptRuntime( @@ -1291,6 +1355,7 @@ export async function readPromptVariantEvidence({ clientRoot, manifest, graph, a } : {}), ...(inputBinding ? { inputBinding } : {}), + ...(guideBinding ? { guideBinding } : {}), ...(accounting ? { seedBinding: { nodeId: bound.generator.id, field: 'seed', value: bound.seed } } : {}), decodedOutput, observationLimits: { @@ -1304,6 +1369,14 @@ export async function readPromptVariantEvidence({ clientRoot, manifest, graph, a ? { sourceVideoByteWitness: 'original-upload-and-typed-wire', normalizedConsumerFramesObserved: false } : {}), ...(profile.motionAdapter ? { motionAdapterBoundByGraph: true } : {}), + ...(profile.bindsVideoGuide + ? { + guideVideoByteWitness: 'original-upload-normalize-and-edge-wire', + normalizedGuideFramesObserved: false, + controlAdapterObservedAsInstalled: true, + controlAdapterAppliedObserved: false, + } + : {}), ...(profile.configuredUnobservedControls ? { configuredUnobservedControls: profile.configuredUnobservedControls } : {}), diff --git a/scripts/prompt-variant-evidence.test.mjs b/scripts/prompt-variant-evidence.test.mjs index 99c4312d..07450097 100644 --- a/scripts/prompt-variant-evidence.test.mjs +++ b/scripts/prompt-variant-evidence.test.mjs @@ -386,6 +386,7 @@ for (const [workflowId, variable, kind, proofKind = 'real_backend_prompt_bound_m ['ShapEPipeline:text_to_3d', 'MODIFF_SHAPE_PROMPT_EVIDENCE', 'video'], ['Wan22Pipeline:text_to_video', 'MODIFF_WAN_A14B_VIDEO_PROMPT_EVIDENCE', 'video'], ['AllegroPipeline:text_to_video', 'MODIFF_ALLEGRO_VIDEO_PROMPT_EVIDENCE', 'video'], + ['MochiPipeline:text_to_video', 'MODIFF_MOCHI_VIDEO_PROMPT_EVIDENCE', 'video'], ['SanaVideoPipeline:text_to_video', 'MODIFF_SANA_VIDEO_PROMPT_EVIDENCE', 'video'], [ 'SanaImageToVideoPipeline:image_to_video', @@ -401,6 +402,18 @@ for (const [workflowId, variable, kind, proofKind = 'real_backend_prompt_bound_m 'video', 'real_backend_input_bound_model_variant', ], + [ + 'AnimateDiffControlNetPipeline:control_to_video', + 'MODIFF_ANIMATEDIFF_GUIDE_VIDEO_EVIDENCE', + 'video', + 'real_backend_input_bound_model_variant', + ], + [ + 'AnimateDiffVideoToVideoControlNetPipeline:control_video_to_video', + 'MODIFF_ANIMATEDIFF_DUAL_VIDEO_EVIDENCE', + 'video', + 'real_backend_input_bound_model_variant', + ], [ 'CogVideoXVideoToVideoPipeline:video_to_video', 'MODIFF_COGVIDEOX_EDIT_EVIDENCE', @@ -464,6 +477,12 @@ for (const [workflowId, variable, kind, proofKind = 'real_backend_prompt_bound_m assert.equal(original.receipt.negativePromptBinding.field, 'negative_prompt'); assert.match(original.receipt.negativePromptBinding.sha256, /^[a-f0-9]{64}$/u); } + if (workflowId === 'MochiPipeline:text_to_video') { + assert.equal(original.receipt.decodedOutput.frames, 31); + assert.equal(original.receipt.decodedOutput.fps, 30); + assert.equal(original.receipt.decodedOutput.width, 848); + assert.equal(original.receipt.negativePromptBinding.field, 'negative_prompt'); + } const sanaOpeningImage = workflowId === 'SanaImageToVideoPipeline:image_to_video'; if (sanaOpeningImage) { assert.equal(original.receipt.decodedOutput.frames, 81); @@ -472,17 +491,33 @@ for (const [workflowId, variable, kind, proofKind = 'real_backend_prompt_bound_m assert.equal(original.receipt.observationLimits.samplerInputPixelsObserved, false); } if (workflowId.startsWith('AnimateDiff')) { - assert.equal(original.receipt.modelSet.length, 2); + const guide = original.receipt.guideBinding; + assert.equal(original.receipt.modelSet.length, guide ? 3 : 2); assert.equal(original.receipt.observationLimits.motionAdapterBoundByGraph, true); - const [first, second] = evidence.modelObservations; - const incomplete = { ...evidence, modelObservations: [first, first] }; + const [first, second, ...rest] = evidence.modelObservations; + const incomplete = { ...evidence, modelObservations: [first, first, ...rest] }; assert.notEqual(first.sha256, second.sha256); writeFileSync(changedPath, JSON.stringify(incomplete)); await assert.rejects( () => readCanonicalWorkflowEvidence({ ...args, evidencePath: changedPath }), /Expected a single installed identity/u, ); - if (workflowId === 'AnimateDiffPAGPipeline:text_to_video') { + if (guide) { + assert.equal(original.receipt.observationLimits.normalizedGuideFramesObserved, false); + assert.equal(original.receipt.observationLimits.controlAdapterAppliedObserved, false); + assert.equal(guide.decodedVideo.frames, 16); + if (evidence.inputs.length === 2) { + assert.notEqual(guide.sha256, original.receipt.inputBinding.sha256); + const swapped = { ...evidence, inputs: [...evidence.inputs].reverse() }; + writeFileSync(changedPath, JSON.stringify(swapped)); + await assert.rejects( + () => readCanonicalWorkflowEvidence({ ...args, evidencePath: changedPath }), + /outside the bound prompt and seed/u, + ); + } else { + assert.deepEqual(original.receipt.inputBinding, guide); + } + } else if (workflowId === 'AnimateDiffPAGPipeline:text_to_video') { assert.deepEqual(original.receipt.observationLimits.configuredUnobservedControls, [ 'pag_scale', 'pag_adaptive_scale', diff --git a/scripts/release-contract-core.mjs b/scripts/release-contract-core.mjs index aa8cf35a..b615354e 100644 --- a/scripts/release-contract-core.mjs +++ b/scripts/release-contract-core.mjs @@ -859,6 +859,7 @@ export async function readCanonicalWorkflowEvidence({ clientRoot, backendRoot, w 'modiff.private.direct-image-edit-native-png.v1', 'modiff.private.direct-image-inpaint-native-png.v1', 'modiff.private.saved-image-edit-native-png.v1', + 'modiff.private.saved-image-edit-native-webp.v1', ].includes(evidence.format) ) { const { readPrivateImageEditEvidence } = await import('./private-image-edit-evidence.mjs'); @@ -911,9 +912,12 @@ export async function readCanonicalWorkflowEvidence({ clientRoot, backendRoot, w 'modiff.private.cogvideox-source-video-variant.v1', 'modiff.private.animatediff-pag-video-prompt-variant.v1', 'modiff.private.animatediff-source-video-variant.v1', + 'modiff.private.animatediff-guide-video-variant.v1', + 'modiff.private.animatediff-source-and-guide-video-variant.v1', 'modiff.private.allegro-video-prompt-variant.v1', 'modiff.private.sana-video-prompt-variant.v1', 'modiff.private.sana-opening-image-variant.v1', + 'modiff.private.mochi-video-prompt-variant.v1', ].includes(evidence.format) || directImagePromptRoutes.some(({ format }) => format === evidence.format) ) { From f3c9551f655047b7cf14347908b5826813e6e5a6 Mon Sep 17 00:00:00 2001 From: Sourav Das Date: Wed, 25 Nov 2026 09:00:32 +0530 Subject: [PATCH 361/440] Verify saved OmniGen, Z-Image, and guided video evidence --- CONTRIBUTING.md | 9 ++ scripts/native-variant-run-evidence.mjs | 25 +++- scripts/private-image-edit-evidence.mjs | 67 +++++++-- scripts/private-image-edit-evidence.test.mjs | 39 +++++ scripts/prompt-variant-evidence.mjs | 134 +++++++++++++++--- scripts/prompt-variant-evidence.test.mjs | 36 ++++- scripts/release-contract-core.mjs | 9 +- scripts/saved-control-image-evidence.mjs | 7 + scripts/saved-control-image-evidence.test.mjs | 1 + 9 files changed, 294 insertions(+), 33 deletions(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index b8194f75..e5ef6dce 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -564,6 +564,15 @@ adapter revisions. For a saved edit, the original upload and typed video wire bind the source. The receipt records unavailable sampler observations, such as the effective PAG controls or normalized source frames. +The retained Wan VACE puddle recipe also binds the exact Spandrel checkpoint +to its upscale action and verifies delivery at the reviewed output size. This +named recipe uses a pinned secondary artifact alongside the primary model. + +The saved OmniGen wall edit uses the original graph request and acknowledgement, +completion event, and backend-retained output and run record. The receipt +records the missing client API snapshot and unobserved image guidance. This +path requires the exact native records and original image bytes. + Saved JoyImage Plus edits retain reference files in Load order, including the source image before the material reference. The proof binds each upload and native decode to the typed Edit connection. The archived two-reference diff --git a/scripts/native-variant-run-evidence.mjs b/scripts/native-variant-run-evidence.mjs index 32b5a6ee..c09a31fe 100644 --- a/scripts/native-variant-run-evidence.mjs +++ b/scripts/native-variant-run-evidence.mjs @@ -70,6 +70,7 @@ export function validateNativeVariantRun({ displayType, creator, outputPackage, + retainedServerOutput, run, graphCompleted, graphRequest, @@ -77,18 +78,28 @@ export function validateNativeVariantRun({ validatePreparation = (preparation) => assert.equal(preparation, null), }) { assert.equal(creator?.manifest?.packageType, 'modiff-workflow-share'); - assert.equal(outputPackage?.manifest?.packageType, 'modiff-output-package'); - const output = outputPackage.latestOutput; + const serverOnly = retainedServerOutput !== undefined; + if (serverOnly) { + assert.equal(outputPackage, undefined); + assert.equal(displayType, 'image'); + assert.ok(graphRequest && graphAcknowledgment, 'A server-retained image requires the original Run exchange.'); + assert.ok(retainedServerOutput.apiGraphSnapshot == null, 'Unexpected client API snapshot on server-only output.'); + } else { + assert.equal(outputPackage?.manifest?.packageType, 'modiff-output-package'); + } + const output = serverOnly ? retainedServerOutput : outputPackage.latestOutput; const task = run.task; - const submitted = output.apiGraphSnapshot; + const submitted = serverOnly ? graphRequest : output.apiGraphSnapshot; const hints = submitted.runtimeHints; recordKeys( hints, ['clientRunId', 'runInputHash', 'workflowTabId', 'workflowCanvasEpoch', 'workflowTitle', 'workflowSnapshot'], 'Unexpected submission runtime hints.', ); - same(outputPackage.apiGraph, submitted, 'Original package API graph differs.'); - same(outputPackage.graph, output.graphSnapshot, 'Original package visual graph differs.'); + if (!serverOnly) { + same(outputPackage.apiGraph, submitted, 'Original package API graph differs.'); + same(outputPackage.graph, output.graphSnapshot, 'Original package visual graph differs.'); + } same(creator.metadata?.studio, output.formSnapshot, 'Creator form differs from the persisted output.'); assert.equal(output.formSnapshot.mode, expectedFormMode); assert.equal(output.formSnapshot.modelType, target.modelType); @@ -137,6 +148,10 @@ export function validateNativeVariantRun({ assert.equal(run.outputs.length, 1, 'A single native output is required.'); const nativeOutput = run.outputs[0]; for (const field of nativeOutputFields) { + if (serverOnly && field === 'apiGraphSnapshot') { + assert.ok(nativeOutput[field] == null, 'Unexpected client API snapshot on native task output.'); + continue; + } assert.notEqual(output[field], undefined, `Original output is missing ${field}.`); same(output[field], nativeOutput[field], `Original native output ${field} differs.`); } diff --git a/scripts/private-image-edit-evidence.mjs b/scripts/private-image-edit-evidence.mjs index e9e4c1a1..8b38bc50 100644 --- a/scripts/private-image-edit-evidence.mjs +++ b/scripts/private-image-edit-evidence.mjs @@ -25,7 +25,7 @@ import { exportCanonicalWorkflowGraphs, readCanonicalEvidenceFile, } from './release-contract-core.mjs'; -import { validateSampledCpuWorkerMemory } from './prompt-variant-evidence.mjs'; +import { validateImagePromptPreparation, validateSampledCpuWorkerMemory } from './prompt-variant-evidence.mjs'; export const PRIVATE_IMAGE_EDIT_FORMAT = 'modiff.private.lcm-source-bound-edit.v1'; export const DIRECT_IMAGE_EDIT_FORMAT = 'modiff.private.direct-image-edit-source-bound.v1'; @@ -33,6 +33,7 @@ export const NATIVE_PNG_EDIT_FORMAT = 'modiff.private.direct-image-edit-native-p export const NATIVE_PNG_INPAINT_FORMAT = 'modiff.private.direct-image-inpaint-native-png.v1'; export const SAVED_PNG_EDIT_FORMAT = 'modiff.private.saved-image-edit-native-png.v1'; const SAVED_WEBP_EDIT_FORMAT = 'modiff.private.saved-image-edit-native-webp.v1'; +const RETAINED_SERVER_EDIT_FORMAT = 'modiff.private.server-retained-image-edit-native-png.v1'; const baseConsumed = ['num_inference_steps', 'output_type', 'prompt', 'seed']; const imageGeometry = ['height', 'max_sequence_length', 'width']; const stableDiffusionEditConsumed = [...baseConsumed, 'negative_prompt', 'guidance_scale', 'strength']; @@ -73,6 +74,35 @@ const retainedCfgInpaint = { masked: true, }; const editRoutes = new Map([ + [ + 'ZImageInpaintPipeline:inpaint', + { + ...retainedCfgInpaint, + modelRepo: 'Tongyi-MAI/Z-Image-Turbo', + modelRevision: 'f332072aa78be7aecdf3ee76d5c247082da564a6', + loaderClass: 'ZImageInpaintPipeline', + sourceFingerprint: qwenPlusEdit.sourceFingerprint, + guidanceObservedAsTrueCfg: false, + }, + ], + [ + 'OmniGenPipeline:edit_image', + { + ...retainedImageEdit, + format: RETAINED_SERVER_EDIT_FORMAT, + modelRepo: 'Shitao/OmniGen-v1-diffusers', + modelRevision: '016e2f61d12a98303f6bbdf122687694d7984268', + loaderClass: 'OmniGenPipeline', + consumed: [...baseConsumed, 'width', 'height', 'guidance_scale'], + inactiveRecorded: ['negative_prompt', 'max_sequence_length', 'strength'], + inputImagePromptPrefix: '<|image_1|> ', + unobservedControls: ['image_guidance_scale'], + sourceFingerprint: 'sha256:backend-source-v1:b29a5b0d317aaa781ae2a5205b46b518eea5a3d68a214eb0968dba4ac0660af7', + originalRegistryHash: 'c4e99d780fef75bce44f4c5e7414d99840a794999355308f69f03176bd573193', + serverRetainedOutput: true, + previousExpertFamily: 'ChromaImg2ImgPipeline', + }, + ], [ 'Kandinsky3Pipeline:edit_image', { @@ -600,6 +630,10 @@ function verifySavedEditControls(bound, output, route) { controls.true_cfg_scale = controls.guidance_scale; controls.guidance_scale = literal(null); } + if (route.inputImagePromptPrefix) { + assert.ok(['', '', '<|image_'].every((token) => !bound.prompt.includes(token))); + controls.prompt = literal(route.inputImagePromptPrefix + bound.prompt); + } for (const field of [ 'conditioning_scale', 'control_guidance_start', @@ -798,7 +832,8 @@ export async function readPrivateImageEditEvidence({ clientRoot, manifest, graph const evidence = JSON.parse(descriptorBytes); const masked = route.masked === true; const savedImage = - [SAVED_PNG_EDIT_FORMAT, SAVED_WEBP_EDIT_FORMAT].includes(route.format) && evidence.format === route.format; + [SAVED_PNG_EDIT_FORMAT, SAVED_WEBP_EDIT_FORMAT, RETAINED_SERVER_EDIT_FORMAT].includes(route.format) && + evidence.format === route.format; const replayedRegistry = savedImage && !route.originalRegistryHash; const referenceCount = route.orderedReferences ?? 0; const pngFormat = masked ? NATIVE_PNG_INPAINT_FORMAT : NATIVE_PNG_EDIT_FORMAT; @@ -835,7 +870,7 @@ export async function readPrivateImageEditEvidence({ clientRoot, manifest, graph 'workflowId', 'qualificationClaims', 'creatorPackage', - 'outputPackage', + ...(route.serverRetainedOutput ? [] : ['outputPackage']), 'runDetail', 'nodes', 'backendSourceBefore', @@ -863,18 +898,22 @@ export async function readPrivateImageEditEvidence({ clientRoot, manifest, graph for (const source of capture.inputs) keys(source, ['nodeId', 'field', 'sourceValue', 'file']); keys(outputRef, ['backendPath', 'mediaType', 'file']); const creator = json(capture.creatorPackage); - const outputPackage = json(capture.outputPackage); + const outputPackage = route.serverRetainedOutput ? undefined : json(capture.outputPackage); const run = json(capture.runDetail); const graphCompleted = json(capture.graphCompleted); const graphRequest = json(evidence.graphRequest); const graphAcknowledgment = json(evidence.graphAcknowledgment); const store = json(evidence.persistedOutputs); - assert.equal(store.outputs.length, 1); - const [persistedOutput] = store.outputs; + const exactStoredOutputs = route.serverRetainedOutput + ? store.outputs.filter(({ taskId }) => taskId === run.task.task_id) + : store.outputs; + assert.equal(exactStoredOutputs.length, 1); + const [persistedOutput] = exactStoredOutputs; + const retainedVisual = outputPackage?.latestOutput.graphSnapshot ?? persistedOutput.graphSnapshot; const [expected, ...visualExports] = await exportCanonicalWorkflowGraphs(clientRoot, [ graph, creator.graph, - outputPackage.latestOutput.graphSnapshot, + retainedVisual, run.workflow_snapshot, ]); const bound = bindPrivateImageEditGraph({ @@ -900,12 +939,19 @@ export async function readPrivateImageEditEvidence({ clientRoot, manifest, graph displayType: 'image', creator, outputPackage, + ...(route.serverRetainedOutput ? { retainedServerOutput: persistedOutput } : {}), run, graphCompleted, graphRequest, graphAcknowledgment, persistedOutput, - validatePreparation: (preparation) => validateUnmodifiedExpertPreparation(preparation, loaderClass), + validatePreparation: (preparation) => + route.serverRetainedOutput + ? validateImagePromptPreparation(preparation, { + modelType: loaderClass, + previousExpertFamily: route.previousExpertFamily, + }) + : validateUnmodifiedExpertPreparation(preparation, loaderClass), }; const hasNativeSnapshot = route.fullNativeSnapshot || (route.fullOrLateNativeSnapshot && run.outputs[0]?.apiGraphSnapshot !== undefined); @@ -913,7 +959,8 @@ export async function readPrivateImageEditEvidence({ clientRoot, manifest, graph assert.equal(run.outputs.length, 1); same(run.outputs[0], persistedOutput, 'Saved native output differs from the at-close output store.'); } - const validateRun = hasNativeSnapshot ? validateNativeVariantRun : validateLateNativeImageVariantRun; + const validateRun = + hasNativeSnapshot || route.serverRetainedOutput ? validateNativeVariantRun : validateLateNativeImageVariantRun; const { task, output, hints } = validateRun(runOptions); same(hints.workflowSnapshot.studioForm, output.formSnapshot); let sourceBinding; @@ -1069,6 +1116,8 @@ export async function readPrivateImageEditEvidence({ clientRoot, manifest, graph ? { independentConsumerPixels: false, configuredUnobservedControls: route.unobservedControls ?? [] } : {}), ...(route.cpuExecution ? { executionDevice: 'cpu:0', peakMemorySource: 'sampled-worker-rss' } : {}), + ...(route.serverRetainedOutput ? { clientApiSnapshotObserved: false, serverOutputStoreMatched: true } : {}), + ...(route.inputImagePromptPrefix ? { nativeInputMarkerBound: true } : {}), physicalPlatformQualification: false, }, qualificationClaims: { diff --git a/scripts/private-image-edit-evidence.test.mjs b/scripts/private-image-edit-evidence.test.mjs index e153998b..6075a296 100644 --- a/scripts/private-image-edit-evidence.test.mjs +++ b/scripts/private-image-edit-evidence.test.mjs @@ -132,6 +132,27 @@ test('strict output verification accepts a separately joined late native image s assert.deepEqual(options, before); }); +test('server-retained images require the original Run exchange and matching backend records', () => { + const options = archivedImage(); + const retainedServerOutput = structuredClone(options.run.outputs[0]); + const retained = { ...options, outputPackage: undefined, retainedServerOutput }; + assert.deepEqual(validateNativeVariantRun(retained).output, retainedServerOutput); + assert.throws( + () => validateNativeVariantRun({ ...retained, graphRequest: undefined }), + /requires the original Run exchange/u, + ); + assert.throws( + () => + validateNativeVariantRun({ + ...retained, + graphAcknowledgment: { ...retained.graphAcknowledgment, task_id: 'stale' }, + }), + assert.AssertionError, + ); + options.run.outputs[0].mediaHash = 'unrelated-output'; + assert.throws(() => validateNativeVariantRun(retained), /Original native output mediaHash differs/u); +}); + test('the late native image join rejects a changed task, capture, graph or output', () => { const scenarios = [ [ @@ -450,6 +471,7 @@ for (const [workflowId, variable, hasMask, unobserved] of [ ['QwenImageModularPipeline:inpaint', 'MODIFF_SAVED_QWEN_SCRATCH_EVIDENCE', true, []], ['FluxDevPipeline:inpaint', 'MODIFF_SAVED_FLUX_DEV_REPAIR_EVIDENCE', true, []], ['LongCatImageEditPipeline:edit_image', 'MODIFF_SAVED_LONGCAT_EDIT_EVIDENCE', false, []], + ['ZImageInpaintPipeline:inpaint', 'MODIFF_SAVED_ZIMAGE_REPAIR_EVIDENCE', true, []], ]) { const saved = process.env[variable]; test( @@ -526,6 +548,23 @@ test('Kandinsky CPU edit joins archived pixels and sampled worker memory', { ski } }); +const serverRetainedEdit = process.env.MODIFF_SERVER_RETAINED_OMNIGEN_EDIT_EVIDENCE; +test('saved OmniGen joins the server capture and one original input', { skip: !serverRetainedEdit }, async () => { + const clientRoot = fileURLToPath(new URL('..', import.meta.url)); + const backendRoot = resolve(process.env.MODIFF_BACKEND_DIR ?? join(clientRoot, '..', 'MoDiff')); + const result = await readCanonicalWorkflowEvidence({ + clientRoot, + backendRoot, + workflowId: 'OmniGenPipeline:edit_image', + evidencePath: resolve(serverRetainedEdit), + }); + assert.equal(result.receipt.observationLimits.serverOutputStoreMatched, true); + assert.equal(result.receipt.observationLimits.clientApiSnapshotObserved, false); + assert.equal(result.receipt.observationLimits.nativeInputMarkerBound, true); + assert.deepEqual(result.receipt.observationLimits.configuredUnobservedControls, ['image_guidance_scale']); + assert.equal(result.receipt.qualificationClaims.hardwareQualified, false); +}); + test('retained native PNG upload binds an exact safe path, file bytes and decoded dimensions', () => { const bytes = Buffer.from( 'iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mP8/x8AAwMCAO+a0AMAAAAASUVORK5CYII=', diff --git a/scripts/prompt-variant-evidence.mjs b/scripts/prompt-variant-evidence.mjs index e7e2e874..0d3bbc3f 100644 --- a/scripts/prompt-variant-evidence.mjs +++ b/scripts/prompt-variant-evidence.mjs @@ -379,11 +379,76 @@ const mochiVideoRoute = { reviewedSettings: [['recipe', 'attention_backend', '_native_math', 'auto']], }; -const promptModelSet = (profile) => [ - ...(profile.motionAdapter ? [profile.motionAdapter] : []), - ...(profile.controlAdapter ? [profile.controlAdapter] : []), - { repoId: profile.modelRepo, revision: profile.modelRevision }, -]; +const animateDiffVideoRoute = { + ...animateDiffPagRoute, + format: 'modiff.private.animatediff-video-prompt-variant.v1', + workflowId: 'AnimateDiffPipeline:text_to_video', + modelType: 'AnimateDiffPipeline', + previousExpertFamily: 'AnimateLCMPipeline', + sourceFingerprint: 'sha256:backend-source-v1:2faeaaa03b7902a03df5cd0cea38129b7419f6d844125c0ca7e29ccfaf635290', + configuredUnobservedControls: undefined, +}; + +const animateLcmVideoRoute = { + ...animateDiffVideoRoute, + format: 'modiff.private.animatelcm-video-prompt-variant.v1', + workflowId: 'AnimateLCMPipeline:text_to_video', + modelType: 'AnimateLCMPipeline', + motionAdapter: { repoId: 'wangfuyun/AnimateLCM', revision: '3d4d00fc113225e1040f4d3bec504b6ec750c10c' }, +}; + +const latteVideoRoute = { + ...wanA14BRoute, + format: 'modiff.private.latte-video-prompt-variant.v1', + workflowId: 'LattePipeline:text_to_video', + modelType: 'LattePipeline', + modelRepo: 'maxin-cn/Latte-1', + modelRevision: '0653024365272f061fc44d1078134df22842b687', + previousExpertFamily: null, + sourceFingerprint: mochiVideoRoute.sourceFingerprint, + bindNegativePrompt: true, +}; + +const wanVaceVideoRoute = { + ...wanA14BRoute, + format: 'modiff.private.wan-vace-video-prompt-variant.v1', + workflowId: 'WanVACEPipeline:text_to_video', + modelType: 'WanVACEPipeline', + modelRepo: 'Wan-AI/Wan2.1-VACE-1.3B-diffusers', + modelRevision: 'ec4d2cb062b548996b179d493fdd05340de702a1', + previousExpertFamily: 'WanVACEPipeline', + sourceFingerprint: mochiVideoRoute.sourceFingerprint, + baselinePromptHash: '156339977073854795a350225015284e3676c45a49a30bff4d8120389e841848', + baselineNegativePromptHash: '767ef620d530158fb8c7a406c8b7f5f968b617d70b4d9eaf1796b4b5ffa57c98', + bindNegativePrompt: true, + videoUpscaler: { + repoId: 'nateraw/real-esrgan', + file: { + source: 'hub', + value: 'nateraw/real-esrgan/RealESRGAN_x2plus.pth', + revision: '42efb9c3eeed1f5c0c8a626cf5f7f4481dfbb094', + byteSize: 67061725, + sha256: '49fafd45f8fd7aa8d31ab2a22d14d91b536c34494a5cfe31eb5d89c2fa266abb', + license: 'bsd-3-clause', + }, + scale: 2, + }, + chain: [ + ...wanA14BRoute.chain.slice(0, -1), + ['upscaler', 'modules.Spandrel', 'Upscaler', 'device model_id'], + wanA14BRoute.chain.at(-1), + ], +}; + +const promptModelSet = (profile) => + [ + ...(profile.motionAdapter ? [profile.motionAdapter] : []), + ...(profile.controlAdapter ? [profile.controlAdapter] : []), + { repoId: profile.modelRepo, revision: profile.modelRevision }, + ...(profile.videoUpscaler + ? [{ repoId: profile.videoUpscaler.file.value, revision: profile.videoUpscaler.file.revision }] + : []), + ].sort((left, right) => (left.repoId === right.repoId ? 0 : left.repoId < right.repoId ? -1 : 1)); const imagePromptRoute = { outputKind: 'image', @@ -498,8 +563,8 @@ export function bindPromptVariant(profile, original, created, output, baselineHa } const promptSlot = expectedInputs.prompt; assert.equal( - promptSlot.value, - profile.baselinePrompt ?? '', + profile.baselinePromptHash ? digest(promptSlot.value) : promptSlot.value, + profile.baselinePromptHash ?? profile.baselinePrompt ?? '', 'The authored prompt differs from the reviewed default.', ); assert.ok(!promptSlot.sourceId, 'The authored prompt must be an unconnected literal.'); @@ -511,7 +576,11 @@ export function bindPromptVariant(profile, original, created, output, baselineHa let negativePrompt; if (profile.bindNegativePrompt) { const slot = expectedInputs.negative_prompt; - assert.deepEqual(slot, { value: '', display: 'textarea' }); + const baselineValue = profile.baselineNegativePromptHash ? slot.value : ''; + assert.deepEqual(slot, { value: baselineValue, display: 'textarea' }); + if (profile.baselineNegativePromptHash) { + assert.equal(digest(slot.value), profile.baselineNegativePromptHash); + } negativePrompt = submittedOwners.generator.node.params.negative_prompt.value; assert.ok( typeof negativePrompt === 'string' && negativePrompt.length <= 4096 && negativePrompt.trim() === negativePrompt, @@ -563,7 +632,11 @@ function validateConsumedPromptVariant(profile, bound, output, suppliedImage) { assert.equal(bound.loader.node.params.offload_mode.value, profile.retainedOffloadFallback); assert.equal(bound.recipe.node.params.offload_mode.value, 'model_cpu'); same(consumed.ambiguousFields, ['offloadMode']); - } else same(consumed.ambiguousFields, []); + } else { + // The loader and reviewed upscaler each supply a repository. Their + // typed records below independently bind the two selector values. + same(consumed.ambiguousFields, profile.videoUpscaler ? ['repo'] : []); + } const roles = profile.chain.map(([role]) => bound[role]); same( consumed.nodes.map(({ nodeId }) => nodeId).sort(), @@ -652,9 +725,30 @@ function validateConsumedPromptVariant(profile, bound, output, suppliedImage) { } function validateNativePromptRuntime(profile, bound, task, hints, graphCompleted, observations) { + const controlledArtifacts = []; + if (profile.videoUpscaler) { + const { file, repoId: repository } = profile.videoUpscaler; + const { module, action, params } = bound.upscaler.node; + same(params.model_id.value, file); + assert.ok(file.value.startsWith(repository + '/')); + const payload = { + schemaVersion: 1, + kind: 'spandrel_upscaler', + module, + action, + artifact: { + source: file.source, + repository, + revision: file.revision, + weightName: file.value.slice(repository.length + 1), + sha256: file.sha256, + }, + }; + controlledArtifacts.push({ ...payload, descriptorSha256: digest(stableStringify(payload)) }); + } same( graphCompleted.runtimeHints, - { ...hints, controlledArtifacts: [], loaderContract: profile.loaderContract }, + { ...hints, controlledArtifacts, loaderContract: profile.loaderContract }, 'Native completion has unreviewed runtime authority.', ); assert.match(task.runtimeFingerprint.packages.platform, profile.platform); @@ -670,18 +764,19 @@ function validateNativePromptRuntime(profile, bound, task, hints, graphCompleted if (profile.executionDevice === 'cpu:0') assert.equal(peakAllocatedBytes, 0); else assert.ok(peakAllocatedBytes > 0); for (const { repoId, revision } of promptModelSet(profile)) { - const matching = observations.filter((observation) => selectInstalledModelIdentity(observation, repoId)); - assert.equal(matching.length, 1, 'Expected a single installed identity for ' + repoId); + const installedRepo = repoId === profile.videoUpscaler?.file.value ? profile.videoUpscaler.repoId : repoId; + const matching = observations.filter((observation) => selectInstalledModelIdentity(observation, installedRepo)); + assert.equal(matching.length, 1, 'Expected a single installed identity for ' + installedRepo); const [observation] = matching; assert.equal(observation.error, false); assert.equal(observation.runtimeFingerprint, runtime.fingerprint); assert.equal(observation.models.length, 1); - const model = selectInstalledModelIdentity(observation, repoId); + const model = selectInstalledModelIdentity(observation, installedRepo); const [{ complete, repairRequired }] = observation.models; assert.equal(complete, true); assert.equal(repairRequired, false); assert.equal(model.selectedRevision, revision); - assert.equal(model.modelRevision, repoId + '@' + revision); + assert.equal(model.modelRevision, installedRepo + '@' + revision); } same(bound.loader.node.params.model_id.value, { source: 'hub', value: profile.modelRepo }); assert.equal(bound.loader.node.params.revision.value, profile.modelRevision); @@ -729,7 +824,7 @@ export function validateSampledCpuWorkerMemory(bytes, worker, source, task) { return peak; } -function validateImagePromptPreparation(preparation, { modelType, previousExpertFamily }) { +export function validateImagePromptPreparation(preparation, { modelType, previousExpertFamily }) { const previous = preparation?.previousModelFamily ?? null; assert.ok(previous === null || previous === previousExpertFamily, 'Unreviewed previous Expert model family.'); if (preparation?.performed !== true) { @@ -1005,6 +1100,10 @@ export async function readPromptVariantEvidence({ clientRoot, manifest, graph, a sanaVideoRoute, sanaOpeningImageRoute, mochiVideoRoute, + animateDiffVideoRoute, + animateLcmVideoRoute, + latteVideoRoute, + wanVaceVideoRoute, ].find(({ workflowId }) => workflowId === target.workflowId); assert.ok(profile, 'Prompt variant route is not reviewed.'); const generatedVideo = @@ -1288,9 +1387,10 @@ export async function readPromptVariantEvidence({ clientRoot, manifest, graph, a const decoded = await decodedMediaHash(media.file, 'video'); if (generatedVideo) { const { width, height, num_frames } = bound.generator.node.params; + const scale = profile.videoUpscaler?.scale ?? 1; decodedOutput = validateNativeVideoDelivery(decoded, item, { - width: width.value, - height: height.value, + width: width.value * scale, + height: height.value * scale, frames: num_frames.value, fps: bound.preview.node.params.fps.value, }); diff --git a/scripts/prompt-variant-evidence.test.mjs b/scripts/prompt-variant-evidence.test.mjs index 07450097..15a3b3c1 100644 --- a/scripts/prompt-variant-evidence.test.mjs +++ b/scripts/prompt-variant-evidence.test.mjs @@ -387,6 +387,10 @@ for (const [workflowId, variable, kind, proofKind = 'real_backend_prompt_bound_m ['Wan22Pipeline:text_to_video', 'MODIFF_WAN_A14B_VIDEO_PROMPT_EVIDENCE', 'video'], ['AllegroPipeline:text_to_video', 'MODIFF_ALLEGRO_VIDEO_PROMPT_EVIDENCE', 'video'], ['MochiPipeline:text_to_video', 'MODIFF_MOCHI_VIDEO_PROMPT_EVIDENCE', 'video'], + ['LattePipeline:text_to_video', 'MODIFF_LATTE_VIDEO_PROMPT_EVIDENCE', 'video'], + ['AnimateDiffPipeline:text_to_video', 'MODIFF_ANIMATEDIFF_VIDEO_PROMPT_EVIDENCE', 'video'], + ['AnimateLCMPipeline:text_to_video', 'MODIFF_ANIMATELCM_VIDEO_PROMPT_EVIDENCE', 'video'], + ['WanVACEPipeline:text_to_video', 'MODIFF_WAN_VACE_VIDEO_PROMPT_EVIDENCE', 'video'], ['SanaVideoPipeline:text_to_video', 'MODIFF_SANA_VIDEO_PROMPT_EVIDENCE', 'video'], [ 'SanaImageToVideoPipeline:image_to_video', @@ -483,6 +487,36 @@ for (const [workflowId, variable, kind, proofKind = 'real_backend_prompt_bound_m assert.equal(original.receipt.decodedOutput.width, 848); assert.equal(original.receipt.negativePromptBinding.field, 'negative_prompt'); } + if (workflowId === 'WanVACEPipeline:text_to_video') { + assert.equal(original.receipt.sourceTemplateId, 'wan_vace_direct_text_to_video'); + assert.deepEqual( + original.receipt.modelSet.map(({ repoId }) => repoId), + ['Wan-AI/Wan2.1-VACE-1.3B-diffusers', 'nateraw/real-esrgan/RealESRGAN_x2plus.pth'], + ); + assert.equal(original.receipt.decodedOutput.frames, 81); + assert.equal(original.receipt.decodedOutput.width, 1664); + assert.equal(original.receipt.decodedOutput.height, 960); + const completionPath = join(temp, evidence.graphCompleted.path); + const savedCompletion = readFileSync(completionPath); + const completion = JSON.parse(savedCompletion); + completion.runtimeHints.controlledArtifacts = []; + const bytes = Buffer.from(JSON.stringify(completion)); + const substituted = { + ...evidence, + graphCompleted: { ...evidence.graphCompleted, bytes: bytes.length, sha256: digest(bytes) }, + }; + writeFileSync(completionPath, bytes); + writeFileSync(changedPath, JSON.stringify(substituted)); + await assert.rejects( + () => readCanonicalWorkflowEvidence({ ...args, evidencePath: changedPath }), + /unreviewed runtime authority/u, + ); + writeFileSync(completionPath, savedCompletion); + } + if (workflowId === 'AnimateLCMPipeline:text_to_video') { + assert.equal(original.receipt.modelSet[1].repoId, 'wangfuyun/AnimateLCM'); + assert.equal(original.receipt.decodedOutput.frames, 16); + } const sanaOpeningImage = workflowId === 'SanaImageToVideoPipeline:image_to_video'; if (sanaOpeningImage) { assert.equal(original.receipt.decodedOutput.frames, 81); @@ -522,7 +556,7 @@ for (const [workflowId, variable, kind, proofKind = 'real_backend_prompt_bound_m 'pag_scale', 'pag_adaptive_scale', ]); - } else { + } else if (workflowId === 'AnimateDiffVideoToVideoPipeline:video_to_video') { assert.equal(original.receipt.observationLimits.normalizedConsumerFramesObserved, false); assert.equal(original.receipt.inputBinding.decodedVideo.frames, 16); } diff --git a/scripts/release-contract-core.mjs b/scripts/release-contract-core.mjs index b615354e..775e43dc 100644 --- a/scripts/release-contract-core.mjs +++ b/scripts/release-contract-core.mjs @@ -220,8 +220,10 @@ export { canonicalAccountingExecutionPlan } from './live-proof-provenance.mjs'; // template, a model entitlement, or permission to change canonical defaults. export function canonicalWorkflowAuthoringContract(manifest, graph, authoring, artifact = null) { const canonical = canonicalWorkflowContract(manifest, graph); + const reviewedVaceSource = + manifest.id === 'WanVACEPipeline:text_to_video' && manifest.sourceTemplateId === 'wan_vace_direct_text_to_video'; assert.ok( - manifest.sourceTemplateId?.startsWith('task-template:'), + manifest.sourceTemplateId?.startsWith('task-template:') || reviewedVaceSource, 'Only standalone canonical workflows use this recorder.', ); assert.ok(authoring && authoring.canonicalWorkflowId === manifest.id, 'Exact canonical authoring record is missing.'); @@ -860,6 +862,7 @@ export async function readCanonicalWorkflowEvidence({ clientRoot, backendRoot, w 'modiff.private.direct-image-inpaint-native-png.v1', 'modiff.private.saved-image-edit-native-png.v1', 'modiff.private.saved-image-edit-native-webp.v1', + 'modiff.private.server-retained-image-edit-native-png.v1', ].includes(evidence.format) ) { const { readPrivateImageEditEvidence } = await import('./private-image-edit-evidence.mjs'); @@ -918,6 +921,10 @@ export async function readCanonicalWorkflowEvidence({ clientRoot, backendRoot, w 'modiff.private.sana-video-prompt-variant.v1', 'modiff.private.sana-opening-image-variant.v1', 'modiff.private.mochi-video-prompt-variant.v1', + 'modiff.private.animatediff-video-prompt-variant.v1', + 'modiff.private.animatelcm-video-prompt-variant.v1', + 'modiff.private.latte-video-prompt-variant.v1', + 'modiff.private.wan-vace-video-prompt-variant.v1', ].includes(evidence.format) || directImagePromptRoutes.some(({ format }) => format === evidence.format) ) { diff --git a/scripts/saved-control-image-evidence.mjs b/scripts/saved-control-image-evidence.mjs index 839fe8dc..6a056ecb 100644 --- a/scripts/saved-control-image-evidence.mjs +++ b/scripts/saved-control-image-evidence.mjs @@ -75,6 +75,13 @@ const routes = { source: sdxlSource, canny: true, }, + 'StableDiffusionXLPAGPipeline:control_image': { + pipelineClass: 'StableDiffusionXLControlNetPAGPipeline', + componentClass: 'ControlNetModel', + source: commonSource, + canny: true, + pagSettingsUnobserved: true, + }, 'StableDiffusionXLAdapterPipeline:control_image': { pipelineClass: 'StableDiffusionXLAdapterPipeline', componentClass: 'T2IAdapter', diff --git a/scripts/saved-control-image-evidence.test.mjs b/scripts/saved-control-image-evidence.test.mjs index 61568bb6..160f0c31 100644 --- a/scripts/saved-control-image-evidence.test.mjs +++ b/scripts/saved-control-image-evidence.test.mjs @@ -26,6 +26,7 @@ const cases = [ 'ControlNetModel', 'UlftQtP0nIJk', ], + ['linux-sdxl-pag-cabin-verified', 'StableDiffusionXLPAGPipeline:control_image', 'ControlNetModel', 'MVsWymJP8z5O'], ['linux-canny-adapter-fixed', 'StableDiffusionXLAdapterPipeline:control_image', 'T2IAdapter', 'gWs5V9Dz1NY-'], ['windows-sd15-control-print', 'StableDiffusionPipeline:control_edit_image', 'ControlNetModel', 'jlVMYFMnS--d'], ['windows-sd15-control-inpaint-fixed', 'StableDiffusionPipeline:control_inpaint', 'ControlNetModel', '6TOEAhgF-bhi'], From 4ce1a3226c7d1dc9b2b86ed04f3b031396b27c41 Mon Sep 17 00:00:00 2001 From: Sourav Das Date: Wed, 25 Nov 2026 09:26:56 +0530 Subject: [PATCH 362/440] Bind the retained Wan opening clip and image editing recipes --- CONTRIBUTING.md | 6 + scripts/private-image-edit-evidence.mjs | 135 +++++++++++++++++-- scripts/private-image-edit-evidence.test.mjs | 57 +++++++- scripts/prompt-variant-evidence.mjs | 27 +++- scripts/prompt-variant-evidence.test.mjs | 20 ++- scripts/release-contract-core.mjs | 16 ++- scripts/release-contract.mjs | 25 ++-- scripts/release-contract.test.mjs | 21 +++ 8 files changed, 275 insertions(+), 32 deletions(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index e5ef6dce..7c716ba3 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -573,6 +573,12 @@ completion event, and backend-retained output and run record. The receipt records the missing client API snapshot and unobserved image guidance. This path requires the exact native records and original image bytes. +The Wan A14B opening-video replacement records its own exact opening frame, +prompt, model, and video. The older kitchen template keeps its own review +and release status. Saved FLUX Klein and Z-Image panoramas bind the original +source through canvas preparation and the typed image and mask wires. Their +records verify expanded geometry and disclose the missing derived pixels. + Saved JoyImage Plus edits retain reference files in Load order, including the source image before the material reference. The proof binds each upload and native decode to the typed Edit connection. The archived two-reference diff --git a/scripts/private-image-edit-evidence.mjs b/scripts/private-image-edit-evidence.mjs index 8b38bc50..4812dfa4 100644 --- a/scripts/private-image-edit-evidence.mjs +++ b/scripts/private-image-edit-evidence.mjs @@ -73,7 +73,90 @@ const retainedCfgInpaint = { guidanceObservedAsTrueCfg: true, masked: true, }; +const retainedOutpaint = { + ...retainedCfgInpaint, + masked: false, + captureFormat: retainedImageEdit.captureFormat, + sourceFingerprint: qwenPlusEdit.sourceFingerprint, + guidanceObservedAsTrueCfg: false, + task: 'outpaint', + canvasVariant: [ + ['overlap', 24, 80], + ['feather', 8, 28], + ], + unobservedControls: ['left', 'right', 'top', 'bottom', 'overlap', 'feather', 'fill_color'], +}; const editRoutes = new Map([ + [ + 'QwenImageModularPipeline:edit_image', + { + ...retainedImageEdit, + format: SAVED_WEBP_EDIT_FORMAT, + modelRepo: 'Qwen/Qwen-Image-2512', + modelRevision: '25468b98e3276ca6700de15c6628e51b7de54a26', + loaderClass: 'QwenImageImg2ImgPipeline', + consumed: [...retainedImageEdit.consumed, 'strength'], + inactiveRecorded: [], + guidanceObservedAsTrueCfg: true, + sourceFingerprint: 'sha256:backend-source-v1:b29a5b0d317aaa781ae2a5205b46b518eea5a3d68a214eb0968dba4ac0660af7', + originalRegistryHash: 'c4e99d780fef75bce44f4c5e7414d99840a794999355308f69f03176bd573193', + fullNativeSnapshot: true, + previousExpertFamily: 'OmniGenPipeline', + }, + ], + [ + 'Flux2KleinInpaintPipeline:outpaint', + { + ...retainedOutpaint, + modelRepo: 'black-forest-labs/FLUX.2-klein-4B', + modelRevision: 'e7b7dc27f91deacad38e78976d1f2b499d76a294', + loaderClass: 'Flux2KleinInpaintPipeline', + consumed: [...baseConsumed, ...imageGeometry, 'guidance_scale', 'strength'], + inactiveRecorded: ['negative_prompt'], + strengthVariant: { original: 0.85, retained: 1 }, + }, + ], + [ + 'ZImageInpaintPipeline:outpaint', + { + ...retainedOutpaint, + modelRepo: 'Tongyi-MAI/Z-Image-Turbo', + modelRevision: 'f332072aa78be7aecdf3ee76d5c247082da564a6', + loaderClass: 'ZImageInpaintPipeline', + fullNativeSnapshot: false, + }, + ], + [ + 'StableDiffusionXLPAGPipeline:inpaint', + { + ...retainedCfgInpaint, + modelRepo: 'stabilityai/stable-diffusion-xl-base-1.0', + modelRevision: '462165984030d82259a11f4367a4eed129e94a7b', + loaderClass: 'StableDiffusionXLPAGInpaintPipeline', + consumed: [...stableDiffusionEditConsumed, 'width', 'height'], + inactiveRecorded: ['max_sequence_length'], + sourceFingerprint: 'sha256:backend-source-v1:2faeaaa03b7902a03df5cd0cea38129b7419f6d844125c0ca7e29ccfaf635290', + originalRegistryHash: 'fd66c8907b4a7969c1a87757f4d9e629d62395c55b8b74f730432cf1ce47d13e', + guidanceObservedAsTrueCfg: false, + windowsCudaRuntime: true, + previousExpertFamily: 'AnimateDiffPipeline', + strengthVariant: { original: 0.8, retained: 1 }, + unobservedControls: ['pag_scale', 'pag_adaptive_scale'], + }, + ], + [ + 'Flux2KleinInpaintPipeline:inpaint', + { + ...retainedCfgInpaint, + modelRepo: 'black-forest-labs/FLUX.2-klein-4B', + modelRevision: 'e7b7dc27f91deacad38e78976d1f2b499d76a294', + loaderClass: 'Flux2KleinInpaintPipeline', + consumed: [...baseConsumed, ...imageGeometry, 'guidance_scale', 'strength'], + inactiveRecorded: ['negative_prompt'], + sourceFingerprint: qwenPlusEdit.sourceFingerprint, + guidanceObservedAsTrueCfg: false, + }, + ], [ 'ZImageInpaintPipeline:inpaint', { @@ -383,6 +466,11 @@ const inpaintOwners = [ ['edit', 'modules.DiffusersImage', 'Inpaint'], ownerOrder.at(-1), ]; +const outpaintOwners = [ + ...ownerOrder.slice(0, 4), + ['canvas', 'modules.DiffusersImage', 'OutpaintCanvas'], + ...inpaintOwners.slice(-2), +]; const editableFields = [ ...baseConsumed, ...imageGeometry, @@ -407,9 +495,9 @@ const same = (a, b, message) => assert.equal(stableStringify(a), stableStringify const keys = (row, expected) => same(Object.keys(row ?? {}).sort(), [...expected].sort(), 'Unexpected evidence fields.'); -function directOwners(api, hinted = false, masked = false) { +function directOwners(api, hinted = false, masked = false, outpaint = false) { keys(api, ['sid', 'nodes', 'paths', ...(hinted ? ['runtimeHints'] : [])]); - const owners = masked ? inpaintOwners : ownerOrder; + const owners = outpaint ? outpaintOwners : masked ? inpaintOwners : ownerOrder; assert.equal(Object.keys(api.nodes).length, owners.length); assert.equal(api.paths.length, 1); const route = api.paths[0]; @@ -434,6 +522,7 @@ export function bindPrivateImageEditGraph({ maskInput, references = [], strengthVariant, + canvasVariant, inputPathPrefix = '', nativePngEvidence = false, residentRecipe = false, @@ -441,8 +530,8 @@ export function bindPrivateImageEditGraph({ }) { const bound = structuredClone(expected); const masked = maskInput !== undefined; - const canonical = directOwners(bound, false, masked); - const observed = directOwners(submitted, Object.hasOwn(submitted, 'runtimeHints'), masked); + const canonical = directOwners(bound, false, masked, Boolean(canvasVariant)); + const observed = directOwners(submitted, Object.hasOwn(submitted, 'runtimeHints'), masked, Boolean(canvasVariant)); const canonicalPrompt = canonical.edit.node.params.prompt; assert.equal(canonicalPrompt.value, ''); const safeBasename = nativePngEvidence ? /^[a-zA-Z0-9_-][\w.-]{0,200}\.png$/u : /^[a-zA-Z0-9_-][\w.-]{0,200}\.webp$/u; @@ -468,6 +557,11 @@ export function bindPrivateImageEditGraph({ assert.equal(canonical.edit.node.params.strength.value, strengthVariant.original); canonical.edit.node.params.strength.value = strengthVariant.retained; } + for (const [field, original, retained] of canvasVariant ?? []) { + const setting = canonical.canvas.node.params[field]; + same(setting, { value: original }); + setting.value = retained; + } if (residentRecipe) { const offload = canonical.recipe.node.params.offload_mode; same(offload, { value: 'model_cpu' }); @@ -612,7 +706,7 @@ function verifySavedEditControls(bound, output, route) { same(receipt.uncapturedNodeIds, []); const ambiguous = bound.mask ? ['device', 'imageAlphaChannel', 'imageSourceHashes', 'imageSourceModes'] : ['device']; same(receipt.ambiguousFields, route.cpuExecution ? [] : route.residentRecipe ? ['offloadMode'] : ambiguous); - const owners = (bound.mask ? inpaintOwners : ownerOrder).map(([role]) => bound[role]); + const owners = (bound.canvas ? outpaintOwners : bound.mask ? inpaintOwners : ownerOrder).map(([role]) => bound[role]); same(receipt.nodes.map(({ nodeId }) => nodeId).sort(), owners.map(({ id }) => id).sort()); const record = ({ id, node }) => { const row = receipt.nodes.find(({ nodeId }) => nodeId === id); @@ -703,7 +797,8 @@ async function verifySavedImageSource(bound, output, { input, maskInput, referen }, `Original ${role} load differs.`, ); - same(bound.edit.node.params[port], { display: 'input', sourceId: owner.id, sourceKey: 'image' }); + const destination = bound.canvas ?? bound.edit; + same(destination.node.params[port], { display: 'input', sourceId: owner.id, sourceKey: 'image' }); if (!route.nativeSourceMedia) return images; const nativeImages = verifyNativeLoadedImages( owner.node, @@ -729,6 +824,20 @@ async function verifySavedImageSource(bound, output, { input, maskInput, referen 'image', 'RGB', ); + if (bound.canvas) { + const { params } = bound.canvas.node; + const width = decodedInput.width + params.left.value + params.right.value; + const height = decodedInput.height + params.top.value + params.bottom.value; + same([width, height], [params.width.value, params.height.value]); + same([width, height], [bound.edit.node.params.width.value, bound.edit.node.params.height.value]); + same(record(bound.canvas).fields, { width: literal(width), height: literal(height) }); + for (const [port, sourceKey] of [ + ['image', 'canvas'], + ['mask_image', 'mask_image'], + ]) { + same(bound.edit.node.params[port], { display: 'input', sourceId: bound.canvas.id, sourceKey }); + } + } if (!maskInput) return { decodedInput, decodedReferences }; assert.notEqual(input.file.sha256, maskInput.file.sha256); const [decodedMask] = await verify('mask', [maskInput], [evidence.maskUpload], 'mask_image', 'L'); @@ -904,10 +1013,8 @@ export async function readPrivateImageEditEvidence({ clientRoot, manifest, graph const graphRequest = json(evidence.graphRequest); const graphAcknowledgment = json(evidence.graphAcknowledgment); const store = json(evidence.persistedOutputs); - const exactStoredOutputs = route.serverRetainedOutput - ? store.outputs.filter(({ taskId }) => taskId === run.task.task_id) - : store.outputs; - assert.equal(exactStoredOutputs.length, 1); + const exactStoredOutputs = store.outputs.filter(({ taskId }) => taskId === run.task.task_id); + assert.equal(exactStoredOutputs.length, 1, 'The saved output store must contain exactly one result for the task.'); const [persistedOutput] = exactStoredOutputs; const retainedVisual = outputPackage?.latestOutput.graphSnapshot ?? persistedOutput.graphSnapshot; const [expected, ...visualExports] = await exportCanonicalWorkflowGraphs(clientRoot, [ @@ -923,13 +1030,14 @@ export async function readPrivateImageEditEvidence({ clientRoot, manifest, graph maskInput, references, strengthVariant: route.strengthVariant, + canvasVariant: route.canvasVariant, inputPathPrefix: route.inputPathPrefix, nativePngEvidence: nativeUpload && route.format !== SAVED_WEBP_EDIT_FORMAT, residentRecipe: route.residentRecipe, cpuExecution: route.cpuExecution, }); for (const api of [creator.apiGraph, ...visualExports]) { - directOwners(api, false, masked); + directOwners(api, false, masked, Boolean(route.canvasVariant)); same(canonicalGraphIdentity(api), bound.identity, 'A saved visual owner graph differs from the original Run.'); } const runOptions = { @@ -946,7 +1054,7 @@ export async function readPrivateImageEditEvidence({ clientRoot, manifest, graph graphAcknowledgment, persistedOutput, validatePreparation: (preparation) => - route.serverRetainedOutput + route.previousExpertFamily ? validateImagePromptPreparation(preparation, { modelType: loaderClass, previousExpertFamily: route.previousExpertFamily, @@ -1108,6 +1216,9 @@ export async function readPrivateImageEditEvidence({ clientRoot, manifest, graph : 'native-load-consumer-and-upload', } : {}), + ...(bound.canvas + ? { canvasSizeObserved: true, canvasPixelsObserved: false, derivedMaskPixelsObserved: false } + : {}), ...(masked ? { maskByteWitness: savedImage ? 'native-load-and-upload-with-typed-wire' : 'native-load-consumer-and-upload' } : {}), diff --git a/scripts/private-image-edit-evidence.test.mjs b/scripts/private-image-edit-evidence.test.mjs index 6075a296..0cda43d0 100644 --- a/scripts/private-image-edit-evidence.test.mjs +++ b/scripts/private-image-edit-evidence.test.mjs @@ -471,7 +471,27 @@ for (const [workflowId, variable, hasMask, unobserved] of [ ['QwenImageModularPipeline:inpaint', 'MODIFF_SAVED_QWEN_SCRATCH_EVIDENCE', true, []], ['FluxDevPipeline:inpaint', 'MODIFF_SAVED_FLUX_DEV_REPAIR_EVIDENCE', true, []], ['LongCatImageEditPipeline:edit_image', 'MODIFF_SAVED_LONGCAT_EDIT_EVIDENCE', false, []], + ['QwenImageModularPipeline:edit_image', 'MODIFF_QWEN_BOOKSHOP_EDIT_EVIDENCE', false, []], ['ZImageInpaintPipeline:inpaint', 'MODIFF_SAVED_ZIMAGE_REPAIR_EVIDENCE', true, []], + ['Flux2KleinInpaintPipeline:inpaint', 'MODIFF_SAVED_FLUX_KLEIN_REPAIR_EVIDENCE', true, []], + [ + 'Flux2KleinInpaintPipeline:outpaint', + 'MODIFF_SAVED_FLUX_KLEIN_OUTPAINT_EVIDENCE', + false, + ['left', 'right', 'top', 'bottom', 'overlap', 'feather', 'fill_color'], + ], + [ + 'ZImageInpaintPipeline:outpaint', + 'MODIFF_SAVED_ZIMAGE_OUTPAINT_EVIDENCE', + false, + ['left', 'right', 'top', 'bottom', 'overlap', 'feather', 'fill_color'], + ], + [ + 'StableDiffusionXLPAGPipeline:inpaint', + 'MODIFF_SAVED_SDXL_PAG_REPAIR_EVIDENCE', + true, + ['pag_scale', 'pag_adaptive_scale'], + ], ]) { const saved = process.env[variable]; test( @@ -495,15 +515,44 @@ for (const [workflowId, variable, hasMask, unobserved] of [ copyFileSync(file.absolutePath, join(root, file.path)); } const descriptor = JSON.parse(original.descriptorBytes); - const ref = descriptor.registryReplay; + const changedPath = join(root, 'evidence.json'); + if (workflowId.endsWith(':outpaint')) { + assert.equal(receipt.observationLimits.canvasSizeObserved, true); + assert.equal(receipt.observationLimits.canvasPixelsObserved, false); + assert.equal(receipt.observationLimits.derivedMaskPixelsObserved, false); + assert.deepEqual([receipt.decodedOutput.width, receipt.decodedOutput.height], [1344, 768]); + const altered = structuredClone(descriptor); + const path = join(root, altered.graphRequest.path); + const originalRequest = readFileSync(path); + const graph = JSON.parse(originalRequest); + const inpaint = Object.values(graph.nodes).find(({ action }) => action === 'Inpaint'); + inpaint.params.mask_image.sourceKey = 'canvas'; + const bytes = Buffer.from(JSON.stringify(graph)); + Object.assign(altered.graphRequest, { + bytes: bytes.length, + sha256: createHash('sha256').update(bytes).digest('hex'), + }); + writeFileSync(path, bytes); + writeFileSync(changedPath, JSON.stringify(altered)); + await assert.rejects(readCanonicalWorkflowEvidence({ ...args, evidencePath: changedPath }), /declared file/u); + writeFileSync(path, originalRequest); + } + const ref = descriptor.registryReplay ?? descriptor.persistedOutputs; const proof = JSON.parse(readFileSync(join(root, ref.path))); - proof.nodeHash = 'a'.repeat(64); + if (descriptor.registryReplay) { + proof.nodeHash = 'a'.repeat(64); + } else { + assert.ok(proof.outputs.some(({ taskId }) => taskId !== receipt.taskId)); + proof.outputs.push(proof.outputs.find(({ taskId }) => taskId === receipt.taskId)); + } const bytes = Buffer.from(JSON.stringify(proof)); Object.assign(ref, { bytes: bytes.length, sha256: createHash('sha256').update(bytes).digest('hex') }); writeFileSync(join(root, ref.path), bytes); - const changedPath = join(root, 'evidence.json'); writeFileSync(changedPath, JSON.stringify(descriptor)); - await assert.rejects(readCanonicalWorkflowEvidence({ ...args, evidencePath: changedPath }), /strictly equal/u); + await assert.rejects( + readCanonicalWorkflowEvidence({ ...args, evidencePath: changedPath }), + descriptor.registryReplay ? /strictly equal/u : /exactly one result for the task/u, + ); } finally { rmSync(root, { recursive: true, force: true }); } diff --git a/scripts/prompt-variant-evidence.mjs b/scripts/prompt-variant-evidence.mjs index 0d3bbc3f..0c438bd3 100644 --- a/scripts/prompt-variant-evidence.mjs +++ b/scripts/prompt-variant-evidence.mjs @@ -228,6 +228,25 @@ const wanA14BRoute = { ], }; +const wanA14BOpeningRoute = { + ...wanA14BRoute, + format: 'modiff.private.wan-a14b-opening-image-variant.v1', + workflowId: 'WanImageToVideoPipeline:image_to_video', + modelType: 'WanImageToVideoPipeline', + previousExpertFamily: 'QwenImageLayeredPipeline', + modelRepo: 'Wan-AI/Wan2.2-I2V-A14B-Diffusers', + modelRevision: '596658fd9ca6b7b71d5057529bbf319ecbc61d74', + sourceFingerprint: 'sha256:backend-source-v1:ce7ac712b4620d0e8efb35022a558a551e2d4ae6ef20b844744c4d674527b0b3', + executedTask: 'image_to_video', + bindsImage: true, + imageInputPort: 'reference_images', + bindSeed: false, + bindNegativePrompt: true, + baselinePromptHash: '9d8fe468ce8939dd73a197fa8ee97d01363a709cf34df18397fe589a4064d6b7', + baselineNegativePromptHash: '7a8923279a40a635424ada051ad177b63dab90cf78a7d60f9b9b9d5bf1cd2134', + chain: [['source', 'modules.Image', 'Load', ''], ...wanA14BRoute.chain], +}; + const cogVideoRoute = { ...wanA14BRoute, format: 'modiff.private.cogvideox-video-prompt-variant.v1', @@ -601,7 +620,7 @@ export function bindPromptVariant(profile, original, created, output, baselineHa } const identity = canonicalGraphIdentity(expected); const mismatch = profile.bindsImage - ? 'Caption variant changed the canonical graph outside its bound source and prompt.' + ? 'Image-bound variant changed the canonical graph outside its reviewed input and controls.' : profile.bindSeed ? 'Prompt variant changed a field or wire outside the bound prompt and seed.' : 'Prompt variant changed a field or wire outside the empty prompt.'; @@ -676,7 +695,7 @@ function validateConsumedPromptVariant(profile, bound, output, suppliedImage) { assert.equal( native.sourceFile.sha256, suppliedImage.file.sha256, - 'Caption source bytes differ from the native load.', + 'Source bytes differ from the native image load.', ); assert.equal(native.sourceFile.byteSize, suppliedImage.file.bytes); decodedImage = native.decodedImage; @@ -1090,6 +1109,7 @@ export async function readPromptVariantEvidence({ clientRoot, manifest, graph, a audioRoute, audioLdmRoute, wanA14BRoute, + wanA14BOpeningRoute, cogVideoRoute, cogVideoEditRoute, animateDiffPagRoute, @@ -1484,6 +1504,9 @@ export async function readPromptVariantEvidence({ clientRoot, manifest, graph, a ...(profile.retainedImageLoadFields ? { openingImageLoadFieldsObserved: true, samplerInputPixelsObserved: false } : {}), + ...(profile === wanA14BOpeningRoute + ? { openingImageByteWitness: 'native-load-and-upload-with-typed-wire', samplerInputPixelsObserved: false } + : {}), }, qualificationClaims: { publicTemplate: false, diff --git a/scripts/prompt-variant-evidence.test.mjs b/scripts/prompt-variant-evidence.test.mjs index 15a3b3c1..fa8f2a91 100644 --- a/scripts/prompt-variant-evidence.test.mjs +++ b/scripts/prompt-variant-evidence.test.mjs @@ -385,6 +385,12 @@ for (const [workflowId, variable, kind, proofKind = 'real_backend_prompt_bound_m ['HuggingFaceTextGenerationModel:text_generation', 'MODIFF_SMOLLM2_PROMPT_EVIDENCE', 'json'], ['ShapEPipeline:text_to_3d', 'MODIFF_SHAPE_PROMPT_EVIDENCE', 'video'], ['Wan22Pipeline:text_to_video', 'MODIFF_WAN_A14B_VIDEO_PROMPT_EVIDENCE', 'video'], + [ + 'WanImageToVideoPipeline:image_to_video', + 'MODIFF_WAN_A14B_OPENING_IMAGE_EVIDENCE', + 'video', + 'real_backend_input_bound_model_variant', + ], ['AllegroPipeline:text_to_video', 'MODIFF_ALLEGRO_VIDEO_PROMPT_EVIDENCE', 'video'], ['MochiPipeline:text_to_video', 'MODIFF_MOCHI_VIDEO_PROMPT_EVIDENCE', 'video'], ['LattePipeline:text_to_video', 'MODIFF_LATTE_VIDEO_PROMPT_EVIDENCE', 'video'], @@ -487,6 +493,14 @@ for (const [workflowId, variable, kind, proofKind = 'real_backend_prompt_bound_m assert.equal(original.receipt.decodedOutput.width, 848); assert.equal(original.receipt.negativePromptBinding.field, 'negative_prompt'); } + if (workflowId === 'WanImageToVideoPipeline:image_to_video') { + assert.equal(original.receipt.sourceTemplateId, 'wan_22_i2v_seed_vault'); + assert.equal(original.receipt.inputBinding.sha256, evidence.inputs[0].file.sha256); + assert.equal(original.receipt.observationLimits.samplerInputPixelsObserved, false); + assert.equal(original.receipt.negativePromptBinding.field, 'negative_prompt'); + assert.equal(original.receipt.decodedOutput.frames, 81); + assert.equal(original.receipt.decodedOutput.fps, 16); + } if (workflowId === 'WanVACEPipeline:text_to_video') { assert.equal(original.receipt.sourceTemplateId, 'wan_vace_direct_text_to_video'); assert.deepEqual( @@ -658,11 +672,11 @@ for (const [workflowId, variable, kind, proofKind = 'real_backend_prompt_bound_m () => readCanonicalWorkflowEvidence({ ...args, evidencePath: changedPath }), sanaOpeningImage ? /Opening image differs from the retained Load fields/u - : kind === 'video' + : input.sourceValue.startsWith('@data/videos/') ? /Archived video upload differs/u : workflowId === 'HuggingFaceAnyToAnyModel:image_to_text' - ? /Caption source bytes differ from the native load|Archived authoring requires the exact original capture/u - : /Caption source bytes differ from the native load/u, + ? /Source bytes differ from the native image load|Archived authoring requires the exact original capture/u + : /Source bytes differ from the native image load/u, ); writeFileSync(path, originalBytes); } diff --git a/scripts/release-contract-core.mjs b/scripts/release-contract-core.mjs index 775e43dc..5cb4fdd3 100644 --- a/scripts/release-contract-core.mjs +++ b/scripts/release-contract-core.mjs @@ -216,6 +216,15 @@ const immutableRevision = (value) => typeof value === 'string' && /^[a-f0-9]{40, export { canonicalAccountingExecutionPlan } from './live-proof-provenance.mjs'; +export function isReviewedReplacementSource(manifest, authoring) { + return ( + manifest.id === 'WanImageToVideoPipeline:image_to_video' && + manifest.sourceTemplateId === 'wan_22_i2v_seed_vault' && + authoring?.canonicalWorkflowId === manifest.id && + authoring.replacementSourceTemplateId === manifest.sourceTemplateId + ); +} + // This describes a real non-public authoring record. It is never a Studio // template, a model entitlement, or permission to change canonical defaults. export function canonicalWorkflowAuthoringContract(manifest, graph, authoring, artifact = null) { @@ -223,8 +232,10 @@ export function canonicalWorkflowAuthoringContract(manifest, graph, authoring, a const reviewedVaceSource = manifest.id === 'WanVACEPipeline:text_to_video' && manifest.sourceTemplateId === 'wan_vace_direct_text_to_video'; assert.ok( - manifest.sourceTemplateId?.startsWith('task-template:') || reviewedVaceSource, - 'Only standalone canonical workflows use this recorder.', + manifest.sourceTemplateId?.startsWith('task-template:') || + reviewedVaceSource || + isReviewedReplacementSource(manifest, authoring), + 'Only standalone canonical workflows and reviewed recipe replacements use this recorder.', ); assert.ok(authoring && authoring.canonicalWorkflowId === manifest.id, 'Exact canonical authoring record is missing.'); assert.equal(authoring.modelType, manifest.modelType, 'Authoring model identity differs.'); @@ -911,6 +922,7 @@ export async function readCanonicalWorkflowEvidence({ clientRoot, backendRoot, w 'modiff.private.longcat-audio-prompt-variant.v1', 'modiff.private.audioldm2-prompt-variant.v1', 'modiff.private.wan-a14b-video-prompt-variant.v1', + 'modiff.private.wan-a14b-opening-image-variant.v1', 'modiff.private.cogvideox-video-prompt-variant.v1', 'modiff.private.cogvideox-source-video-variant.v1', 'modiff.private.animatediff-pag-video-prompt-variant.v1', diff --git a/scripts/release-contract.mjs b/scripts/release-contract.mjs index e6effb74..1d46f0b9 100644 --- a/scripts/release-contract.mjs +++ b/scripts/release-contract.mjs @@ -11,6 +11,7 @@ import { canonicalWorkflowContract, canonicalWorkflowDeclaredModelRevision, findCanonicalWorkflowRecord, + isReviewedReplacementSource, templateResourceExecutionModelType, qualificationModelArtifacts, assessGalleryReleaseApproval, @@ -582,19 +583,25 @@ try { .map(({ manifest, graph }) => { const artifact = artifactByModel.get(manifest.modelType); const retainedRecipe = retainedRecipesByWorkflow.get(manifest.id); - const sourceTemplate = templates.find( + const authoring = canonicalAuthoring.find((row) => row.canonicalWorkflowId === manifest.id); + const namedTemplate = templates.find((template) => template.id === manifest.sourceTemplateId); + const retainedSource = templates.find( (template) => - template.id === manifest.sourceTemplateId || - (retainedRecipe && - template.id === retainedRecipe.template.id && - template.canonicalWorkflowId === manifest.id && - retainedRecipe.sourceTaskTemplateId === manifest.sourceTemplateId), + retainedRecipe && + template.id === retainedRecipe.template.id && + template.canonicalWorkflowId === manifest.id && + retainedRecipe.sourceTaskTemplateId === manifest.sourceTemplateId, ); - const canonicalReceipt = !sourceTemplate || retainedRecipe ? canonicalReceiptsByWorkflow.get(manifest.id) : null; + const sourceTemplate = + retainedSource?.releaseEligible || !namedTemplate?.releaseEligible + ? (retainedSource ?? namedTemplate) + : namedTemplate; + const showCanonicalEvidence = + !sourceTemplate || retainedRecipe || isReviewedReplacementSource(manifest, authoring); + const canonicalReceipt = showCanonicalEvidence ? canonicalReceiptsByWorkflow.get(manifest.id) : null; const reviewedRetainedTemplate = retainedTemplateAssociations.get(manifest.id); const catalogRevision = artifact?.baseRepo && artifact?.baseRevision ? `${artifact.baseRepo}@${artifact.baseRevision}` : null; - const authoring = canonicalAuthoring.find((row) => row.canonicalWorkflowId === manifest.id); const authoredRevision = !sourceTemplate && !catalogRevision && authoring && !manifest.modelType.startsWith('Builtin') ? canonicalWorkflowDeclaredModelRevision(manifest, graph, authoring, artifact) @@ -639,7 +646,7 @@ try { resourceRecipes: sourceTemplate?.resourceRecipes ?? null, outputContract: sourceTemplate?.outputContract ?? { mediaKinds: [manifest.mediaKind] }, lastSuccessfulRealRun: sourceTemplate?.lastSuccessfulRealRun ?? canonicalReceipt ?? null, - ...(!sourceTemplate || retainedRecipe + ...(showCanonicalEvidence ? { canonicalExecutionEvidence: { status: canonicalReceipt diff --git a/scripts/release-contract.test.mjs b/scripts/release-contract.test.mjs index 3329a7d9..289bd661 100644 --- a/scripts/release-contract.test.mjs +++ b/scripts/release-contract.test.mjs @@ -16,6 +16,7 @@ import { withCanonicalWorkflowGraphExporter, readCanonicalWorkflowEvidence, findCanonicalWorkflowRecord, + isReviewedReplacementSource, templateResourceExecutionModelType, qualificationModelArtifacts, assessGalleryReleaseApproval, @@ -86,6 +87,26 @@ test('verified standalone model execution remains distinct from a reviewed exact } }); +test('the reviewed opening-video replacement exposes its receipt without qualifying its historical template', () => { + const id = 'WanImageToVideoPipeline:image_to_video'; + const sourceTemplateId = 'wan_22_i2v_seed_vault'; + const manifest = { id, sourceTemplateId }; + const authoring = { canonicalWorkflowId: id, replacementSourceTemplateId: sourceTemplateId }; + assert.equal(isReviewedReplacementSource(manifest, authoring), true); + assert.equal(isReviewedReplacementSource(manifest, null), false); + assert.equal(isReviewedReplacementSource(manifest, { ...authoring, replacementSourceTemplateId: 'other' }), false); + assert.equal(isReviewedReplacementSource({ ...manifest, id: 'OtherPipeline:image_to_video' }, authoring), false); + assert.deepEqual( + assessWorkflowReleaseEvidence({ + modelType: 'WanImageToVideoPipeline', + exactModelRevision: 'exact-model', + sourceTemplate: { releaseEligible: false, missingReleaseEvidence: ['approved_gallery_example'] }, + canonicalReceipt: { proofKind: 'real_backend_input_bound_model_variant', canonicalDefaultsExecuted: false }, + }), + { releaseEligible: false, missingReleaseEvidence: ['approved_gallery_example'] }, + ); +}); + test('template-backed workflows inherit their exact template release gaps and require a revision', () => { const workflow = { modelType: 'ExamplePipeline', exactModelRevision: `example/base@${'a'.repeat(40)}` }; const releaseGaps = ['exact_model_revision', 'successful_real_run_receipt', 'approved_gallery_example']; From 3eecd7b90611ea9f682dbfdb0e8033dc9494cc80 Mon Sep 17 00:00:00 2001 From: Sourav Das Date: Wed, 25 Nov 2026 09:47:55 +0530 Subject: [PATCH 363/440] Verify retained character guides and saved image editing variants --- CONTRIBUTING.md | 5 + scripts/private-image-edit-evidence.mjs | 83 +++++++++++++- scripts/private-image-edit-evidence.test.mjs | 29 ++++- scripts/prompt-variant-evidence.mjs | 107 +++++++++++++++++-- scripts/prompt-variant-evidence.test.mjs | 31 +++++- scripts/release-contract-core.mjs | 2 + 6 files changed, 242 insertions(+), 15 deletions(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 7c716ba3..5883679e 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -579,6 +579,11 @@ and release status. Saved FLUX Klein and Z-Image panoramas bind the original source through canvas preparation and the typed image and mask wires. Their records verify expanded geometry and disclose the missing derived pixels. +Wan Animate receipts bind the original reference image and each original +video to its specific role. Character replacement also checks the background +and mask as distinct uploads. The saved receipts disclose that the frames +consumed after preprocessing were unavailable. + Saved JoyImage Plus edits retain reference files in Load order, including the source image before the material reference. The proof binds each upload and native decode to the typed Edit connection. The archived two-reference diff --git a/scripts/private-image-edit-evidence.mjs b/scripts/private-image-edit-evidence.mjs index 4812dfa4..7ce0f109 100644 --- a/scripts/private-image-edit-evidence.mjs +++ b/scripts/private-image-edit-evidence.mjs @@ -87,6 +87,80 @@ const retainedOutpaint = { unobservedControls: ['left', 'right', 'top', 'bottom', 'overlap', 'feather', 'fill_color'], }; const editRoutes = new Map([ + [ + 'ChromaImg2ImgPipeline:edit_image', + { + ...retainedImageEdit, + modelRepo: 'lodestones/Chroma1-HD', + modelRevision: '0e0c60ece1e82b17cb7f77342d765ba5024c40c0', + loaderClass: 'ChromaImg2ImgPipeline', + consumed: [...retainedImageEdit.consumed, 'strength'], + inactiveRecorded: [], + sourceFingerprint: 'sha256:backend-source-v1:b29a5b0d317aaa781ae2a5205b46b518eea5a3d68a214eb0968dba4ac0660af7', + originalRegistryHash: 'c4e99d780fef75bce44f4c5e7414d99840a794999355308f69f03176bd573193', + fullNativeSnapshot: true, + previousExpertFamily: 'QwenImageImg2ImgPipeline', + }, + ], + [ + 'FluxKontextInpaintPipeline:outpaint', + { + ...retainedOutpaint, + modelRepo: 'black-forest-labs/FLUX.1-Kontext-dev', + modelRevision: '24e9dedc4ef646698dc8eb4e18ae2cec3c9fea0d', + loaderClass: 'FluxKontextInpaintPipeline', + sourceFingerprint: 'sha256:backend-source-v1:272116bf77447dfb20b0899666ae417b68401993dd97ca438db63d91ff79cab6', + originalRegistryHash: '33be3a472703c43591f907916a3c4b8901af522c24d1930eb88f75c8033f4cec', + fullNativeSnapshot: false, + guidanceObservedAsTrueCfg: true, + canvasVariant: [ + ['overlap', 24, 72], + ['feather', 8, 28], + ], + strengthVariant: { original: 0.85, retained: 1 }, + }, + ], + [ + 'FluxKontextInpaintPipeline:inpaint', + { + ...retainedCfgInpaint, + format: SAVED_WEBP_EDIT_FORMAT, + modelRepo: 'black-forest-labs/FLUX.1-Kontext-dev', + modelRevision: '24e9dedc4ef646698dc8eb4e18ae2cec3c9fea0d', + loaderClass: 'FluxKontextInpaintPipeline', + originalRegistryHash: '4a6a3ee6a0ba2f07d6e2f66daf085d4d43b70e0180a4b277b44b0b25f7a4c06c', + fullNativeSnapshot: false, + }, + ], + [ + 'ChromaInpaintPipeline:outpaint', + { + ...retainedOutpaint, + modelRepo: 'lodestones/Chroma1-HD', + modelRevision: '0e0c60ece1e82b17cb7f77342d765ba5024c40c0', + loaderClass: 'ChromaInpaintPipeline', + sourceFingerprint: 'sha256:backend-source-v1:70bc1ff7fe61307be52cfda86b38c6400f2156cbc8240a489b62ff19a93d58dc', + originalRegistryHash: '67979c2308c670f70d5d4fd38672be0a3ccd3cae7f083d1c7e7ae2e2169f90e8', + canvasVariant: [], + }, + ], + [ + 'StableDiffusionXLPAGPipeline:edit_image', + { + ...retainedImageEdit, + modelRepo: 'stabilityai/stable-diffusion-xl-base-1.0', + modelRevision: '462165984030d82259a11f4367a4eed129e94a7b', + loaderClass: 'StableDiffusionXLPAGImg2ImgPipeline', + consumed: stableDiffusionEditConsumed, + inactiveRecorded: ['width', 'height', 'max_sequence_length'], + sourceFingerprint: 'sha256:backend-source-v1:2faeaaa03b7902a03df5cd0cea38129b7419f6d844125c0ca7e29ccfaf635290', + originalRegistryHash: 'fd66c8907b4a7969c1a87757f4d9e629d62395c55b8b74f730432cf1ce47d13e', + fullNativeSnapshot: true, + windowsCudaRuntime: true, + previousUnmodifiedModelFamily: 'StableDiffusionXLPAGInpaintPipeline', + unobservedControls: ['pag_scale', 'pag_adaptive_scale'], + }, + ], [ 'QwenImageModularPipeline:edit_image', { @@ -542,7 +616,10 @@ export function bindPrivateImageEditGraph({ assert.equal(reference.nodeId, observed[role].id); assert.equal(reference.field, 'file'); assert.ok(typeof reference.sourceValue === 'string' && reference.sourceValue.startsWith(inputPathPrefix)); - assert.match(reference.sourceValue.slice(inputPathPrefix.length), safeBasename); + assert.match( + reference.sourceValue.slice(inputPathPrefix.length), + role === 'mask' ? /^[a-zA-Z0-9_-][\w.-]{0,200}\.png$/u : safeBasename, + ); return reference.sourceValue; }); }; @@ -780,7 +857,7 @@ async function verifySavedImageSource(bound, output, { input, maskInput, referen entry, decodedImage, bytes, - route.format === SAVED_WEBP_EDIT_FORMAT ? 'webp' : 'png', + role !== 'mask' && route.format === SAVED_WEBP_EDIT_FORMAT ? 'webp' : 'png', ); return decodedImage; }), @@ -1059,7 +1136,7 @@ export async function readPrivateImageEditEvidence({ clientRoot, manifest, graph modelType: loaderClass, previousExpertFamily: route.previousExpertFamily, }) - : validateUnmodifiedExpertPreparation(preparation, loaderClass), + : validateUnmodifiedExpertPreparation(preparation, loaderClass, route.previousUnmodifiedModelFamily), }; const hasNativeSnapshot = route.fullNativeSnapshot || (route.fullOrLateNativeSnapshot && run.outputs[0]?.apiGraphSnapshot !== undefined); diff --git a/scripts/private-image-edit-evidence.test.mjs b/scripts/private-image-edit-evidence.test.mjs index 0cda43d0..0c043024 100644 --- a/scripts/private-image-edit-evidence.test.mjs +++ b/scripts/private-image-edit-evidence.test.mjs @@ -472,6 +472,26 @@ for (const [workflowId, variable, hasMask, unobserved] of [ ['FluxDevPipeline:inpaint', 'MODIFF_SAVED_FLUX_DEV_REPAIR_EVIDENCE', true, []], ['LongCatImageEditPipeline:edit_image', 'MODIFF_SAVED_LONGCAT_EDIT_EVIDENCE', false, []], ['QwenImageModularPipeline:edit_image', 'MODIFF_QWEN_BOOKSHOP_EDIT_EVIDENCE', false, []], + ['ChromaImg2ImgPipeline:edit_image', 'MODIFF_CHROMA_LARCH_EDIT_EVIDENCE', false, []], + ['FluxKontextInpaintPipeline:inpaint', 'MODIFF_SAVED_KONTEXT_WINDOW_EVIDENCE', true, []], + [ + 'FluxKontextInpaintPipeline:outpaint', + 'MODIFF_SAVED_KONTEXT_PANORAMA_EVIDENCE', + false, + ['left', 'right', 'top', 'bottom', 'overlap', 'feather', 'fill_color'], + ], + [ + 'ChromaInpaintPipeline:outpaint', + 'MODIFF_SAVED_CHROMA_PANORAMA_EVIDENCE', + false, + ['left', 'right', 'top', 'bottom', 'overlap', 'feather', 'fill_color'], + ], + [ + 'StableDiffusionXLPAGPipeline:edit_image', + 'MODIFF_SAVED_SDXL_PAG_AMBER_EDIT_EVIDENCE', + false, + ['pag_scale', 'pag_adaptive_scale'], + ], ['ZImageInpaintPipeline:inpaint', 'MODIFF_SAVED_ZIMAGE_REPAIR_EVIDENCE', true, []], ['Flux2KleinInpaintPipeline:inpaint', 'MODIFF_SAVED_FLUX_KLEIN_REPAIR_EVIDENCE', true, []], [ @@ -520,7 +540,10 @@ for (const [workflowId, variable, hasMask, unobserved] of [ assert.equal(receipt.observationLimits.canvasSizeObserved, true); assert.equal(receipt.observationLimits.canvasPixelsObserved, false); assert.equal(receipt.observationLimits.derivedMaskPixelsObserved, false); - assert.deepEqual([receipt.decodedOutput.width, receipt.decodedOutput.height], [1344, 768]); + assert.deepEqual( + [receipt.decodedOutput.width, receipt.decodedOutput.height], + [workflowId === 'ChromaInpaintPipeline:outpaint' ? 1024 : 1344, 768], + ); const altered = structuredClone(descriptor); const path = join(root, altered.graphRequest.path); const originalRequest = readFileSync(path); @@ -542,7 +565,9 @@ for (const [workflowId, variable, hasMask, unobserved] of [ if (descriptor.registryReplay) { proof.nodeHash = 'a'.repeat(64); } else { - assert.ok(proof.outputs.some(({ taskId }) => taskId !== receipt.taskId)); + if (workflowId === 'StableDiffusionXLPAGPipeline:inpaint') { + assert.ok(proof.outputs.some(({ taskId }) => taskId !== receipt.taskId)); + } proof.outputs.push(proof.outputs.find(({ taskId }) => taskId === receipt.taskId)); } const bytes = Buffer.from(JSON.stringify(proof)); diff --git a/scripts/prompt-variant-evidence.mjs b/scripts/prompt-variant-evidence.mjs index 0c438bd3..f9d7e6ac 100644 --- a/scripts/prompt-variant-evidence.mjs +++ b/scripts/prompt-variant-evidence.mjs @@ -247,6 +247,47 @@ const wanA14BOpeningRoute = { chain: [['source', 'modules.Image', 'Load', ''], ...wanA14BRoute.chain], }; +const wanAnimateFiles = [ + ['face', 'face_video', 256, 256], + ['pose', 'pose_video', 768, 512], +]; +const wanAnimateRoute = { + ...wanA14BRoute, + format: 'modiff.private.wan-character-animate-inputs.v1', + workflowId: 'WanAnimatePipeline:character_animate', + modelType: 'WanAnimatePipeline', + previousExpertFamily: 'LattePipeline', + modelRepo: 'Wan-AI/Wan2.2-Animate-14B-Diffusers', + modelRevision: '6f4df10861c758af86ac3c979aacc1bf5c03eff0', + sourceFingerprint: 'sha256:backend-source-v1:b29a5b0d317aaa781ae2a5205b46b518eea5a3d68a214eb0968dba4ac0660af7', + executedTask: 'character_animate', + bindsImage: true, + imageInputPort: 'reference_images', + retainedImageLoadFields: true, + bindSeed: false, + videoConditioners: wanAnimateFiles, + chain: [ + ['face', 'modules.Video', 'Load', ''], + ['source', 'modules.Image', 'Load', ''], + ['pose', 'modules.Video', 'Load', ''], + ...wanA14BRoute.chain, + ], +}; +const wanReplaceRoute = { + ...wanAnimateRoute, + format: 'modiff.private.wan-character-replace-inputs.v1', + workflowId: 'WanAnimatePipeline:character_replace', + previousExpertFamily: 'WanAnimatePipeline', + executedTask: 'character_replace', + videoConditioners: [...wanAnimateFiles, ['background', 'background_video', 768, 512], ['mask', 'mask', 768, 512]], + chain: [ + ['background', 'modules.Video', 'Load', ''], + ...wanAnimateRoute.chain.slice(0, 2), + ['mask', 'modules.Video', 'Load', ''], + ...wanAnimateRoute.chain.slice(2), + ], +}; + const cogVideoRoute = { ...wanA14BRoute, format: 'modiff.private.cogvideox-video-prompt-variant.v1', @@ -496,7 +537,8 @@ const graphEnvelope = (graph, hinted = false) => const hasFileInput = (profile, role) => (role === 'source' && (profile.bindsImage || profile.bindsVideoUpload)) || - (role === 'guide' && profile.bindsVideoGuide); + (role === 'guide' && profile.bindsVideoGuide) || + profile.videoConditioners?.some(([name]) => name === role); function owners(profile, api) { const [path] = api.paths; @@ -521,7 +563,16 @@ function owners(profile, api) { ); } -export function bindPromptVariant(profile, original, created, output, baselineHash, sourceValue, guideValue) { +export function bindPromptVariant( + profile, + original, + created, + output, + baselineHash, + sourceValue, + guideValue, + videos = [], +) { graphEnvelope(original); graphEnvelope(created); graphEnvelope(output, true); @@ -580,6 +631,14 @@ export function bindPromptVariant(profile, original, created, output, baselineHa same(expectedInputs.control_video, { display: 'input', sourceId: edges.id, sourceKey: 'output' }); guide.node.params.file.value = [guideValue]; } + for (const [role, port] of profile.videoConditioners ?? []) { + const { sourceValue } = videos.find((input) => input.role === role); + assert.match(sourceValue, /^@data\/videos\/[a-z0-9_-]{1,120}[.]mp4$/iu); + const owner = expectedOwners[role]; + same(owner.node.params.file, { display: 'filebrowser', value: '' }); + same(expectedInputs[port], { display: 'input', sourceId: owner.id, sourceKey: 'video' }); + owner.node.params.file.value = [sourceValue]; + } const promptSlot = expectedInputs.prompt; assert.equal( profile.baselinePromptHash ? digest(promptSlot.value) : promptSlot.value, @@ -1110,6 +1169,8 @@ export async function readPromptVariantEvidence({ clientRoot, manifest, graph, a audioLdmRoute, wanA14BRoute, wanA14BOpeningRoute, + wanAnimateRoute, + wanReplaceRoute, cogVideoRoute, cogVideoEditRoute, animateDiffPagRoute, @@ -1128,7 +1189,9 @@ export async function readPromptVariantEvidence({ clientRoot, manifest, graph, a assert.ok(profile, 'Prompt variant route is not reviewed.'); const generatedVideo = profile.outputKind === 'video' && - (['text_to_video', 'image_to_video', 'video_to_video'].includes(profile.executedTask) || profile.bindsVideoGuide); + (['text_to_video', 'image_to_video', 'video_to_video'].includes(profile.executedTask) || + profile.bindsVideoGuide || + Boolean(profile.videoConditioners)); const generatedAudio = profile === audioRoute || profile === audioLdmRoute; const requiresOriginalRequest = imageRoute !== undefined || @@ -1171,10 +1234,23 @@ export async function readPromptVariantEvidence({ clientRoot, manifest, graph, a assert.equal(evidence.workflowId, profile.workflowId); assert.ok(Array.isArray(evidence.inputs)); const hasSourceInput = profile.bindsImage || profile.bindsVideoUpload; - assert.equal(evidence.inputs.length, Number(Boolean(hasSourceInput)) + Number(Boolean(profile.bindsVideoGuide))); + const videoConditioners = profile.videoConditioners ?? []; + assert.equal( + evidence.inputs.length, + Number(Boolean(hasSourceInput)) + Number(Boolean(profile.bindsVideoGuide)) + videoConditioners.length, + ); const suppliedInput = hasSourceInput ? evidence.inputs[0] : undefined; const suppliedGuide = profile.bindsVideoGuide ? evidence.inputs.at(-1) : undefined; - for (const input of evidence.inputs) keys(input, ['sourceValue', 'file', 'upload']); + const suppliedVideos = videoConditioners.length ? evidence.inputs.slice(1) : []; + for (const input of evidence.inputs) { + keys(input, ['sourceValue', 'file', 'upload', ...(suppliedVideos.includes(input) ? ['role'] : [])]); + } + same( + suppliedVideos.map(({ role }) => role), + videoConditioners.map(([role]) => role), + 'The motion input roles differ from the exact recipe.', + ); + assert.equal(new Set(evidence.inputs.map(({ file }) => file.sha256)).size, evidence.inputs.length); if (suppliedInput && suppliedGuide) assert.notEqual(suppliedInput.file.sha256, suppliedGuide.file.sha256); assert.equal(evidence.modelObservations.length, target.modelSet.length); assert.equal(evidence.outputs.length, 1); @@ -1207,6 +1283,7 @@ export async function readPromptVariantEvidence({ clientRoot, manifest, graph, a evidence.originalGraphHash, suppliedInput?.sourceValue, suppliedGuide?.sourceValue, + suppliedVideos, ); for (const api of [creatorApi, outputApi, runApi]) { graphEnvelope(api); @@ -1296,7 +1373,7 @@ export async function readPromptVariantEvidence({ clientRoot, manifest, graph, a same([decoded.width, decoded.height], [width, height], 'Opening image dimensions differ from the original file.'); } } - const bindRetainedVideo = async (input, load, normalize) => { + const bindRetainedVideo = async (input, load, frames) => { const { bytes, file } = read(input.file); const upload = json(input.upload); const { decodedMediaHash } = await import('./template-gallery-harness.mjs'); @@ -1318,7 +1395,7 @@ export async function readPromptVariantEvidence({ clientRoot, manifest, graph, a }, 'Archived video upload differs from the retained bytes.', ); - assert.equal(decoded.frames, normalize.node.params.num_frames.value); + assert.equal(decoded.frames, frames); assert.equal(decoded.hasAudio, false); return { nodeId: load.id, @@ -1334,11 +1411,19 @@ export async function readPromptVariantEvidence({ clientRoot, manifest, graph, a }; }; if (profile.bindsVideoUpload) { - inputBinding = await bindRetainedVideo(suppliedInput, bound.source, bound.normalize); + inputBinding = await bindRetainedVideo(suppliedInput, bound.source, bound.normalize.node.params.num_frames.value); } const guideBinding = profile.bindsVideoGuide - ? await bindRetainedVideo(suppliedGuide, bound.guide, bound.normalizeGuide) + ? await bindRetainedVideo(suppliedGuide, bound.guide, bound.normalizeGuide.node.params.num_frames.value) : undefined; + const boundVideos = []; + for (const [index, [role, consumerPort, width, height]] of videoConditioners.entries()) { + const frames = bound.generator.node.params.num_frames.value; + const binding = await bindRetainedVideo(suppliedVideos[index], bound[role], frames); + same([binding.decodedVideo.width, binding.decodedVideo.height], [width, height]); + assert.equal(binding.decodedVideo.fps, bound.preview.node.params.fps.value); + boundVideos.push({ role, consumerPort, ...binding }); + } if (!inputBinding) inputBinding = guideBinding; const nodeBytes = read(evidence.nodes).bytes; const nodes = JSON.parse(nodeBytes); @@ -1476,6 +1561,7 @@ export async function readPromptVariantEvidence({ clientRoot, manifest, graph, a : {}), ...(inputBinding ? { inputBinding } : {}), ...(guideBinding ? { guideBinding } : {}), + ...(boundVideos.length ? { videoConditionBindings: boundVideos } : {}), ...(accounting ? { seedBinding: { nodeId: bound.generator.id, field: 'seed', value: bound.seed } } : {}), decodedOutput, observationLimits: { @@ -1504,6 +1590,9 @@ export async function readPromptVariantEvidence({ clientRoot, manifest, graph, a ...(profile.retainedImageLoadFields ? { openingImageLoadFieldsObserved: true, samplerInputPixelsObserved: false } : {}), + ...(boundVideos.length + ? { motionVideoBytesWitnessed: 'original-uploads-and-typed-wires', consumedMotionFramesObserved: false } + : {}), ...(profile === wanA14BOpeningRoute ? { openingImageByteWitness: 'native-load-and-upload-with-typed-wire', samplerInputPixelsObserved: false } : {}), diff --git a/scripts/prompt-variant-evidence.test.mjs b/scripts/prompt-variant-evidence.test.mjs index fa8f2a91..3e8e6598 100644 --- a/scripts/prompt-variant-evidence.test.mjs +++ b/scripts/prompt-variant-evidence.test.mjs @@ -391,6 +391,18 @@ for (const [workflowId, variable, kind, proofKind = 'real_backend_prompt_bound_m 'video', 'real_backend_input_bound_model_variant', ], + [ + 'WanAnimatePipeline:character_animate', + 'MODIFF_WAN_CHARACTER_ANIMATE_EVIDENCE', + 'video', + 'real_backend_input_bound_model_variant', + ], + [ + 'WanAnimatePipeline:character_replace', + 'MODIFF_WAN_CHARACTER_REPLACE_EVIDENCE', + 'video', + 'real_backend_input_bound_model_variant', + ], ['AllegroPipeline:text_to_video', 'MODIFF_ALLEGRO_VIDEO_PROMPT_EVIDENCE', 'video'], ['MochiPipeline:text_to_video', 'MODIFF_MOCHI_VIDEO_PROMPT_EVIDENCE', 'video'], ['LattePipeline:text_to_video', 'MODIFF_LATTE_VIDEO_PROMPT_EVIDENCE', 'video'], @@ -501,6 +513,23 @@ for (const [workflowId, variable, kind, proofKind = 'real_backend_prompt_bound_m assert.equal(original.receipt.decodedOutput.frames, 81); assert.equal(original.receipt.decodedOutput.fps, 16); } + if (workflowId.startsWith('WanAnimatePipeline:')) { + const expected = ['face', 'pose', ...(workflowId.endsWith(':character_replace') ? ['background', 'mask'] : [])]; + assert.deepEqual( + original.receipt.videoConditionBindings.map(({ role, sha256 }) => [role, sha256]), + expected.map((role, index) => [role, evidence.inputs[index + 1].file.sha256]), + ); + assert.equal(original.receipt.observationLimits.consumedMotionFramesObserved, false); + assert.equal(original.receipt.decodedOutput.frames, 81); + assert.equal(original.receipt.decodedOutput.fps, 24); + const swapped = structuredClone(evidence); + [swapped.inputs[1], swapped.inputs[2]] = [swapped.inputs[2], swapped.inputs[1]]; + writeFileSync(changedPath, JSON.stringify(swapped)); + await assert.rejects( + () => readCanonicalWorkflowEvidence({ ...args, evidencePath: changedPath }), + /motion input roles differ/u, + ); + } if (workflowId === 'WanVACEPipeline:text_to_video') { assert.equal(original.receipt.sourceTemplateId, 'wan_vace_direct_text_to_video'); assert.deepEqual( @@ -670,7 +699,7 @@ for (const [workflowId, variable, kind, proofKind = 'real_backend_prompt_bound_m writeFileSync(changedPath, JSON.stringify(substituted)); await assert.rejects( () => readCanonicalWorkflowEvidence({ ...args, evidencePath: changedPath }), - sanaOpeningImage + original.receipt.observationLimits.openingImageLoadFieldsObserved ? /Opening image differs from the retained Load fields/u : input.sourceValue.startsWith('@data/videos/') ? /Archived video upload differs/u diff --git a/scripts/release-contract-core.mjs b/scripts/release-contract-core.mjs index 5cb4fdd3..06e6137f 100644 --- a/scripts/release-contract-core.mjs +++ b/scripts/release-contract-core.mjs @@ -923,6 +923,8 @@ export async function readCanonicalWorkflowEvidence({ clientRoot, backendRoot, w 'modiff.private.audioldm2-prompt-variant.v1', 'modiff.private.wan-a14b-video-prompt-variant.v1', 'modiff.private.wan-a14b-opening-image-variant.v1', + 'modiff.private.wan-character-animate-inputs.v1', + 'modiff.private.wan-character-replace-inputs.v1', 'modiff.private.cogvideox-video-prompt-variant.v1', 'modiff.private.cogvideox-source-video-variant.v1', 'modiff.private.animatediff-pag-video-prompt-variant.v1', From bf2aaa4fe6805fa161a40e68f2c3fd707bce20b1 Mon Sep 17 00:00:00 2001 From: Sourav Das Date: Wed, 25 Nov 2026 10:06:28 +0530 Subject: [PATCH 364/440] Verify saved integrated control and original image inputs --- scripts/live-proof-provenance.mjs | 25 ++++ scripts/native-image-load-evidence.mjs | 12 ++ scripts/private-image-edit-evidence.mjs | 63 +++++++--- scripts/private-image-edit-evidence.test.mjs | 29 ++++- scripts/prompt-variant-evidence.test.mjs | 1 + scripts/release-contract-core.mjs | 7 +- scripts/saved-control-image-evidence.mjs | 113 +++++++++++++++--- scripts/saved-control-image-evidence.test.mjs | 60 ++++++++++ 8 files changed, 279 insertions(+), 31 deletions(-) diff --git a/scripts/live-proof-provenance.mjs b/scripts/live-proof-provenance.mjs index e4a0b9a3..8815f461 100644 --- a/scripts/live-proof-provenance.mjs +++ b/scripts/live-proof-provenance.mjs @@ -2213,6 +2213,31 @@ const plainImageInactive = const plainImageLegacyNull = ['control_guidance_start', 'conditioning_scale', 'strength', 'control_guidance_end']; const pagScalars = ['pag_scale', 'pag_adaptive_scale']; export const directImagePromptRoutes = [ + { + format: 'modiff.private.pixart-sigma-text-to-image-prompt-variant.v1', + workflowId: 'PixArtSigmaPipeline:text_to_image', + modelType: 'PixArtSigmaPipeline', + modelRepo: 'PixArt-alpha/PixArt-Sigma-XL-2-1024-MS', + modelRevision: 'e102b3591cc82e97071b8b4cb90d834d0c487207', + active: [...plainImageActive, 'negative_prompt', 'max_sequence_length'], + inactive: plainImageInactive, + legacyNull: plainImageLegacyNull, + platform: /^Linux-/u, + backend: 'rocm', + dtype: 'float32', + offload: 'model_cpu', + deviceMap: 'none', + replayedRuntimeContract: '8cbe038eeeb6d4a4c079783b8d7e4915d9f78faad9495cb8e354504c66925cf5', + generation: { + width: 1024, + height: 1024, + num_inference_steps: 20, + guidance_scale: 4.5, + max_sequence_length: 300, + seed: 42, + negative_prompt: '', + }, + }, { format: 'modiff.private.lumina2-prompt-variant.v1', workflowId: 'Lumina2Pipeline:text_to_image', diff --git a/scripts/native-image-load-evidence.mjs b/scripts/native-image-load-evidence.mjs index fb8bae3b..4d977f3b 100644 --- a/scripts/native-image-load-evidence.mjs +++ b/scripts/native-image-load-evidence.mjs @@ -1,5 +1,17 @@ import assert from 'node:assert/strict'; +export function verifyRetainedHostImageFiles(observation, { taskId, persistedOutputSha256, inputs }) { + assert.deepEqual(Object.keys(observation).sort(), ['files', 'persistedOutputSha256', 'taskId']); + assert.equal(observation.taskId, taskId); + assert.equal(observation.persistedOutputSha256, persistedOutputSha256); + const bySource = (items) => [...items].sort((left, right) => left.sourceValue.localeCompare(right.sourceValue)); + assert.deepEqual( + bySource(observation.files), + bySource(inputs.map(({ sourceValue, file }) => ({ sourceValue, byteSize: file.bytes, sha256: file.sha256 }))), + 'Original host inputs differ from the saved media.', + ); +} + const literal = (value) => ({ value, source: 'literal' }); export function verifyNativeLoadedImages(load, loaded, modes) { diff --git a/scripts/private-image-edit-evidence.mjs b/scripts/private-image-edit-evidence.mjs index 7ce0f109..72c41eea 100644 --- a/scripts/private-image-edit-evidence.mjs +++ b/scripts/private-image-edit-evidence.mjs @@ -3,7 +3,7 @@ import { createHash } from 'node:crypto'; import { lstatSync, readFileSync, realpathSync } from 'node:fs'; import { dirname } from 'node:path'; import { stableJsonValue } from './canonical-json.mjs'; -import { verifyNativeLoadedImages } from './native-image-load-evidence.mjs'; +import { verifyNativeLoadedImages, verifyRetainedHostImageFiles } from './native-image-load-evidence.mjs'; import { backendContractIdentity, backendSourceEvidence, @@ -33,6 +33,7 @@ export const NATIVE_PNG_EDIT_FORMAT = 'modiff.private.direct-image-edit-native-p export const NATIVE_PNG_INPAINT_FORMAT = 'modiff.private.direct-image-inpaint-native-png.v1'; export const SAVED_PNG_EDIT_FORMAT = 'modiff.private.saved-image-edit-native-png.v1'; const SAVED_WEBP_EDIT_FORMAT = 'modiff.private.saved-image-edit-native-webp.v1'; +const SAVED_HOST_FILE_EDIT_FORMAT = 'modiff.private.saved-image-edit-native-host-file.v1'; const RETAINED_SERVER_EDIT_FORMAT = 'modiff.private.server-retained-image-edit-native-png.v1'; const baseConsumed = ['num_inference_steps', 'output_type', 'prompt', 'seed']; const imageGeometry = ['height', 'max_sequence_length', 'width']; @@ -486,6 +487,19 @@ const editRoutes = new Map([ runtimeContractDigest: '8cbe038eeeb6d4a4c079783b8d7e4915d9f78faad9495cb8e354504c66925cf5', }, ], + [ + 'JoyImageEditPipeline:edit_image', + { + ...retainedImageEdit, + format: SAVED_HOST_FILE_EDIT_FORMAT, + modelRepo: 'jdopensource/JoyAI-Image-Edit-Diffusers', + modelRevision: '4b41fb25d961f37668750178ccbb380da326201c', + loaderClass: 'JoyImageEditPipeline', + sourceFingerprint: 'sha256:backend-source-v1:585997dc1146ec6effb20c260272babc01713ecdea4f78a0872c12ef2568ef83', + runtimeContractDigest: qwenPlusEdit.runtimeContractDigest, + fullNativeSnapshot: true, + }, + ], ['QwenImageEditPlusPipeline:edit_image', qwenPlusEdit], [ 'QwenImageEditPipeline:edit_image', @@ -844,6 +858,7 @@ function verifySavedEditControls(bound, output, route) { async function verifySavedImageSource(bound, output, { input, maskInput, references }, route, read, json, evidence) { const record = verifySavedEditControls(bound, output, route); const { decodedMediaHash } = await import('./template-gallery-harness.mjs'); + const hostFileWitness = route.format === SAVED_HOST_FILE_EDIT_FORMAT; const verify = async (role, selected, uploads, port, mode) => { const owner = bound[role]; assert.equal(uploads.length, selected.length); @@ -852,13 +867,17 @@ async function verifySavedImageSource(bound, output, { input, maskInput, referen const { bytes, file } = read(entry.file); const { width, height } = await decodedMediaHash(file, 'image'); const decodedImage = { width, height, mode }; - verifyRetainedImageUpload( - json(uploads[index]), - entry, - decodedImage, - bytes, - role !== 'mask' && route.format === SAVED_WEBP_EDIT_FORMAT ? 'webp' : 'png', - ); + if (hostFileWitness) { + assert.equal(bytes.subarray(0, 8).toString('hex'), '89504e470d0a1a0a', 'The saved host source is not PNG.'); + } else { + verifyRetainedImageUpload( + json(uploads[index]), + entry, + decodedImage, + bytes, + role !== 'mask' && route.format === SAVED_WEBP_EDIT_FORMAT ? 'webp' : 'png', + ); + } return decodedImage; }), ); @@ -1017,9 +1036,11 @@ export async function readPrivateImageEditEvidence({ clientRoot, manifest, graph const descriptorBytes = readFileSync(evidencePath); const evidence = JSON.parse(descriptorBytes); const masked = route.masked === true; + const hostFileWitness = evidence.format === SAVED_HOST_FILE_EDIT_FORMAT && evidence.format === route.format; const savedImage = - [SAVED_PNG_EDIT_FORMAT, SAVED_WEBP_EDIT_FORMAT, RETAINED_SERVER_EDIT_FORMAT].includes(route.format) && - evidence.format === route.format; + hostFileWitness || + ([SAVED_PNG_EDIT_FORMAT, SAVED_WEBP_EDIT_FORMAT, RETAINED_SERVER_EDIT_FORMAT].includes(route.format) && + evidence.format === route.format); const replayedRegistry = savedImage && !route.originalRegistryHash; const referenceCount = route.orderedReferences ?? 0; const pngFormat = masked ? NATIVE_PNG_INPAINT_FORMAT : NATIVE_PNG_EDIT_FORMAT; @@ -1032,7 +1053,11 @@ export async function readPrivateImageEditEvidence({ clientRoot, manifest, graph 'graphRequest', 'graphAcknowledgment', 'persistedOutputs', - ...(nativeUpload ? ['inputUpload'] : ['inputServerBefore', 'inputServerAfter']), + ...(hostFileWitness + ? ['hostInputFiles'] + : nativeUpload + ? ['inputUpload'] + : ['inputServerBefore', 'inputServerAfter']), ...(masked ? ['maskUpload'] : []), ...(replayedRegistry ? ['registryReplay'] : []), ...(referenceCount ? ['referenceUploads'] : []), @@ -1090,6 +1115,13 @@ export async function readPrivateImageEditEvidence({ clientRoot, manifest, graph const graphRequest = json(evidence.graphRequest); const graphAcknowledgment = json(evidence.graphAcknowledgment); const store = json(evidence.persistedOutputs); + if (hostFileWitness) { + verifyRetainedHostImageFiles(json(evidence.hostInputFiles), { + taskId: run.task.task_id, + persistedOutputSha256: evidence.persistedOutputs.sha256, + inputs: capture.inputs, + }); + } const exactStoredOutputs = store.outputs.filter(({ taskId }) => taskId === run.task.task_id); assert.equal(exactStoredOutputs.length, 1, 'The saved output store must contain exactly one result for the task.'); const [persistedOutput] = exactStoredOutputs; @@ -1288,9 +1320,11 @@ export async function readPrivateImageEditEvidence({ clientRoot, manifest, graph sourceGeometryQualified: false, ...(nativeUpload ? { - sourceByteWitness: savedImage - ? 'native-load-and-upload-with-typed-wire' - : 'native-load-consumer-and-upload', + sourceByteWitness: hostFileWitness + ? 'retained-host-file-with-native-load-and-typed-wire' + : savedImage + ? 'native-load-and-upload-with-typed-wire' + : 'native-load-consumer-and-upload', } : {}), ...(bound.canvas @@ -1303,6 +1337,7 @@ export async function readPrivateImageEditEvidence({ clientRoot, manifest, graph ...(savedImage ? { independentConsumerPixels: false, configuredUnobservedControls: route.unobservedControls ?? [] } : {}), + ...(hostFileWitness ? { originalUploadResponseObserved: false } : {}), ...(route.cpuExecution ? { executionDevice: 'cpu:0', peakMemorySource: 'sampled-worker-rss' } : {}), ...(route.serverRetainedOutput ? { clientApiSnapshotObserved: false, serverOutputStoreMatched: true } : {}), ...(route.inputImagePromptPrefix ? { nativeInputMarkerBound: true } : {}), diff --git a/scripts/private-image-edit-evidence.test.mjs b/scripts/private-image-edit-evidence.test.mjs index 0c043024..1360cad5 100644 --- a/scripts/private-image-edit-evidence.test.mjs +++ b/scripts/private-image-edit-evidence.test.mjs @@ -473,6 +473,7 @@ for (const [workflowId, variable, hasMask, unobserved] of [ ['LongCatImageEditPipeline:edit_image', 'MODIFF_SAVED_LONGCAT_EDIT_EVIDENCE', false, []], ['QwenImageModularPipeline:edit_image', 'MODIFF_QWEN_BOOKSHOP_EDIT_EVIDENCE', false, []], ['ChromaImg2ImgPipeline:edit_image', 'MODIFF_CHROMA_LARCH_EDIT_EVIDENCE', false, []], + ['JoyImageEditPipeline:edit_image', 'MODIFF_SAVED_JOY_BASE_EDIT_EVIDENCE', false, []], ['FluxKontextInpaintPipeline:inpaint', 'MODIFF_SAVED_KONTEXT_WINDOW_EVIDENCE', true, []], [ 'FluxKontextInpaintPipeline:outpaint', @@ -525,7 +526,14 @@ for (const [workflowId, variable, hasMask, unobserved] of [ const original = await readCanonicalWorkflowEvidence(args); const { receipt } = original; assert.equal(receipt.observationLimits.independentConsumerPixels, false); - assert.equal(receipt.observationLimits.sourceByteWitness, 'native-load-and-upload-with-typed-wire'); + const hostFileWitness = workflowId === 'JoyImageEditPipeline:edit_image'; + assert.equal( + receipt.observationLimits.sourceByteWitness, + hostFileWitness + ? 'retained-host-file-with-native-load-and-typed-wire' + : 'native-load-and-upload-with-typed-wire', + ); + if (hostFileWitness) assert.equal(receipt.observationLimits.originalUploadResponseObserved, false); assert.deepEqual(receipt.observationLimits.configuredUnobservedControls, unobserved); assert.equal(Boolean(receipt.maskBinding), hasMask); const root = mkdtempSync(join(tmpdir(), 'modiff-retained-edit-')); @@ -536,6 +544,25 @@ for (const [workflowId, variable, hasMask, unobserved] of [ } const descriptor = JSON.parse(original.descriptorBytes); const changedPath = join(root, 'evidence.json'); + if (hostFileWitness) { + const changed = structuredClone(descriptor); + const path = join(root, changed.hostInputFiles.path); + const originalBytes = readFileSync(path); + const witness = JSON.parse(originalBytes); + witness.files[0].sha256 = 'a'.repeat(64); + const bytes = Buffer.from(JSON.stringify(witness)); + Object.assign(changed.hostInputFiles, { + bytes: bytes.length, + sha256: createHash('sha256').update(bytes).digest('hex'), + }); + writeFileSync(path, bytes); + writeFileSync(changedPath, JSON.stringify(changed)); + await assert.rejects( + readCanonicalWorkflowEvidence({ ...args, evidencePath: changedPath }), + /Original host inputs differ/u, + ); + writeFileSync(path, originalBytes); + } if (workflowId.endsWith(':outpaint')) { assert.equal(receipt.observationLimits.canvasSizeObserved, true); assert.equal(receipt.observationLimits.canvasPixelsObserved, false); diff --git a/scripts/prompt-variant-evidence.test.mjs b/scripts/prompt-variant-evidence.test.mjs index 3e8e6598..d3dc45ad 100644 --- a/scripts/prompt-variant-evidence.test.mjs +++ b/scripts/prompt-variant-evidence.test.mjs @@ -457,6 +457,7 @@ for (const [workflowId, variable, kind, proofKind = 'real_backend_prompt_bound_m ['OmniGenPipeline:text_to_image', 'MODIFF_OMNIGEN_SAVED_PROMPT_EVIDENCE', 'image'], ['SanaSprintPipeline:text_to_image', 'MODIFF_SANA_SPRINT_IMAGE_PROMPT_EVIDENCE', 'image'], ['StableDiffusionXLPAGPipeline:text_to_image', 'MODIFF_SDXL_PAG_PROMPT_EVIDENCE', 'image'], + ['PixArtSigmaPipeline:text_to_image', 'MODIFF_SAVED_PIXART_SIGMA_PROMPT_EVIDENCE', 'image'], ]) { const saved = process.env[variable]; test(`${workflowId} retained ${kind} prompt variant verifies without new execution`, { skip: !saved }, async () => { diff --git a/scripts/release-contract-core.mjs b/scripts/release-contract-core.mjs index 06e6137f..b3c292b1 100644 --- a/scripts/release-contract-core.mjs +++ b/scripts/release-contract-core.mjs @@ -873,6 +873,7 @@ export async function readCanonicalWorkflowEvidence({ clientRoot, backendRoot, w 'modiff.private.direct-image-inpaint-native-png.v1', 'modiff.private.saved-image-edit-native-png.v1', 'modiff.private.saved-image-edit-native-webp.v1', + 'modiff.private.saved-image-edit-native-host-file.v1', 'modiff.private.server-retained-image-edit-native-png.v1', ].includes(evidence.format) ) { @@ -956,7 +957,11 @@ export async function readCanonicalWorkflowEvidence({ clientRoot, backendRoot, w const { readControlInpaintEvidence } = await import('./control-inpaint-evidence.mjs'); return readControlInpaintEvidence({ clientRoot, manifest, graph, authoring, artifact, evidencePath }); } - if (evidence.format === 'modiff.private.saved-control-image-native-png.v1') { + if ( + ['modiff.private.saved-control-image-native-png.v1', 'modiff.private.saved-control-image-native-files.v1'].includes( + evidence.format, + ) + ) { const { readSavedControlImageEvidence } = await import('./saved-control-image-evidence.mjs'); return readSavedControlImageEvidence({ clientRoot, manifest, graph, authoring, artifact, evidencePath }); } diff --git a/scripts/saved-control-image-evidence.mjs b/scripts/saved-control-image-evidence.mjs index 6a056ecb..651837f5 100644 --- a/scripts/saved-control-image-evidence.mjs +++ b/scripts/saved-control-image-evidence.mjs @@ -9,8 +9,9 @@ import { canonicalGraphIdentity, normalizeBackendRuntime, selectBackendRuntimeFingerprintEvidence, + selectInstalledModelIdentity, } from './live-proof-provenance.mjs'; -import { verifyNativeLoadedImage } from './native-image-load-evidence.mjs'; +import { verifyNativeLoadedImage, verifyRetainedHostImageFiles } from './native-image-load-evidence.mjs'; import { validateLateNativeImageVariantRun, validateNativeVariantOutput, @@ -26,6 +27,7 @@ import { import { decodedMediaHash, technicalMediaErrors } from './template-gallery-harness.mjs'; const format = 'modiff.private.saved-control-image-native-png.v1'; +const retainedHostFormat = 'modiff.private.saved-control-image-native-files.v1'; const linuxReplayRuntime = '8cbe038eeeb6d4a4c079783b8d7e4915d9f78faad9495cb8e354504c66925cf5'; const windowsReplayRuntime = 'e5d045d5ecf997c0cfe8dba771fd92cfc1fef6d3e10d91791b2b5e747f384b3c'; const commonSource = 'e3aea8f8d102572ad10fdd0700f0c42d92061e864ede89777efcd6a3269770a8'; @@ -39,7 +41,24 @@ const sd15Repair = { windows: true, additionalInputs: ['source', 'mask'], }; +const fluxControl = { + action: 'ControlEdit', + pipelineClass: 'FluxControlImg2ImgPipeline', + source: '585997dc1146ec6effb20c260272babc01713ecdea4f78a0872c12ef2568ef83', + integratedControl: true, + additionalInputs: ['source'], +}; +const fluxControlInpaint = { + ...fluxControl, + action: 'ControlInpaint', + pipelineClass: 'FluxControlInpaintPipeline', + additionalInputs: ['source', 'mask'], +}; const routes = { + 'FluxCannyPipeline:control_edit_image': { ...fluxControl, lateOutput: true }, + 'FluxCannyPipeline:control_inpaint': { ...fluxControlInpaint, lateOutput: true }, + 'FluxDepthPipeline:control_edit_image': fluxControl, + 'FluxDepthPipeline:control_inpaint': fluxControlInpaint, 'StableDiffusionPipeline:control_image': { pipelineClass: 'StableDiffusionControlNetPipeline', componentClass: 'ControlNetModel', @@ -133,7 +152,11 @@ function owners(api, route) { ], ); const [guide, canny, loader] = route.canny ? [path[0], path[1], path[4]] : [path[3], null, path[2]]; - const inputs = { guide, ...Object.fromEntries(additionalInputs.map((role, index) => [role, path[index + 5]])) }; + const afterInputs = route.canny ? 5 : 4; + const inputs = { + guide, + ...Object.fromEntries(additionalInputs.map((role, index) => [role, path[index + afterInputs]])), + }; const [sampler, preview] = path.slice(-2); return { path, inputs, canny, loader, sampler, preview }; } @@ -206,10 +229,13 @@ export function verifySavedControlImageInputs(api, output, inputs, workflowId) { executed_task: workflowId.split(':')[1], strength: inputOwners.source ? params.strength.value : null, guidance_scale: route.trueCfg ? null : params.guidance_scale.value, - max_sequence_length: route.trueCfg ? params.max_sequence_length.value : null, - control_guidance_start: route.guidanceWindowUnavailable ? null : params.control_guidance_start.value, - control_guidance_end: route.guidanceWindowUnavailable ? null : params.control_guidance_end.value, + max_sequence_length: route.trueCfg || route.integratedControl ? params.max_sequence_length.value : null, + control_guidance_start: + route.guidanceWindowUnavailable || route.integratedControl ? null : params.control_guidance_start.value, + control_guidance_end: + route.guidanceWindowUnavailable || route.integratedControl ? null : params.control_guidance_end.value, ...(route.trueCfg && { true_cfg_scale: params.guidance_scale.value }), + ...(route.integratedControl && { conditioning_scale: null, negative_prompt: null }), }); const nativeSampler = record(sampler); assert.deepEqual( @@ -221,6 +247,32 @@ export function verifySavedControlImageInputs(api, output, inputs, workflowId) { return decoded; } +function verifyIntegratedControlCheckpoint({ loader, target, pipelineClass, completed, hints, runtime, observations }) { + assert.equal(target.modelSet.length, 1); + assert.equal(observations.length, 1); + const [{ repoId, revision }] = target.modelSet; + const [observation] = observations; + assert.equal(observation.error, false); + assert.equal(observation.runtimeFingerprint, runtime.fingerprint); + assert.equal(observation.models.length, 1); + const [record] = observation.models; + assert.equal(record.complete, true); + assert.equal(record.repairRequired, false); + const installed = selectInstalledModelIdentity(observation, repoId); + assert.equal(installed.selectedRevision, revision); + assert.equal(installed.modelRevision, repoId + '@' + revision); + assert.deepEqual(loader.model_id.value, { source: 'hub', value: repoId }); + assert.equal(loader.revision.value, revision); + assert.equal(loader.pipeline_class.value, pipelineClass); + assert.equal(loader.conditioning_kind.value, 'none'); + assert.deepEqual(completed.runtimeHints, { + ...hints, + controlledArtifacts: [], + loaderContract: ['modules.DiffusersImage.LoadPipeline'], + }); + return { repoId, revision, source: 'integrated_checkpoint' }; +} + export async function readSavedControlImageEvidence({ clientRoot, manifest, @@ -234,7 +286,7 @@ export async function readSavedControlImageEvidence({ const target = canonicalWorkflowAuthoringContract(manifest, graph, authoring, artifact); const descriptorBytes = readFileSync(evidencePath); const evidence = JSON.parse(descriptorBytes); - assert.equal(evidence.format, format); + assert.equal(evidence.format, route.integratedControl ? retainedHostFormat : format); assert.equal(evidence.schemaVersion, 1); assert.equal(evidence.workflowId, manifest.id); const evidenceRoot = realpathSync(dirname(evidencePath)); @@ -265,7 +317,11 @@ export async function readSavedControlImageEvidence({ assert.equal(new Set(inputs.map(({ file }) => file.sha256)).size, roles.length); for (const [index, role] of roles.entries()) { const { sourceValue } = inputs[index]; - assert.match(sourceValue, /^@data\/images\/[\w-]{1,128}\.png$/u); + const sourcePattern = + route.integratedControl && role === 'source' + ? /^@data\/images\/[\w-]{1,128}\.(?:png|webp)$/u + : /^@data\/images\/[\w-]{1,128}\.png$/u; + assert.match(sourceValue, sourcePattern); const fileSlot = expected.nodes[canonical.inputs[role]].params.file; assert.deepEqual(fileSlot, { display: 'filebrowser', value: role === 'source' ? [] : '' }); fileSlot.value = [sourceValue]; @@ -284,6 +340,9 @@ export async function readSavedControlImageEvidence({ 'Saved graph differs outside its prompt and selected images.', ); } + const nativeStore = route.integratedControl ? read(evidence.persistedOutput) : undefined; + const stored = nativeStore ? JSON.parse(nativeStore.bytes).outputs : undefined; + if (stored) assert.equal(stored.length, 1); const validate = route.lateOutput ? validateLateNativeImageVariantRun : validateNativeVariantRun; const { task, output, hints } = validate({ target, @@ -296,16 +355,35 @@ export async function readSavedControlImageEvidence({ graphRequest, graphAcknowledgment: json(evidence.graphAcknowledgment), validatePreparation: (value) => validateUnmodifiedExpertPreparation(value, route.pipelineClass), - ...(route.lateOutput && { persistedOutput: json(evidence.persistedOutput).outputs[0] }), + ...(route.lateOutput && { persistedOutput: (stored ?? json(evidence.persistedOutput).outputs)[0] }), }); + if (stored) { + assert.equal(stored[0].taskId, task.task_id); + assert.equal(stored[0].mediaHash, output.mediaHash); + assert.deepEqual(stored[0].apiGraphSnapshot, output.apiGraphSnapshot); + assert.deepEqual(stored[0].resolvedExecutionInputs, output.resolvedExecutionInputs); + verifyRetainedHostImageFiles(json(evidence.hostInputFiles), { + taskId: task.task_id, + persistedOutputSha256: sha256(nativeStore.bytes), + inputs, + }); + } const decoded = verifySavedControlImageInputs(graphRequest, output, inputs, manifest.id); const imageBindings = Object.fromEntries( - roles.map((role, index) => { - const input = inputs[index]; - const decodedImage = decoded[index]; - verifyRetainedPngUpload(json(input.upload), input, decodedImage, read(input.file).bytes); - return [role, { nodeId: actual.inputs[role], field: 'file', sha256: input.file.sha256, decodedImage }]; - }), + await Promise.all( + roles.map(async (role, index) => { + const input = inputs[index]; + const decodedImage = decoded[index]; + const file = read(input.file); + if (route.integratedControl) { + const dimensions = await decodedMediaHash(file.file, 'image'); + assert.deepEqual([dimensions.width, dimensions.height], [decodedImage.width, decodedImage.height]); + } else { + verifyRetainedPngUpload(json(input.upload), input, decodedImage, file.bytes); + } + return [role, { nodeId: actual.inputs[role], field: 'file', sha256: input.file.sha256, decodedImage }]; + }), + ), ); const source = backendSourceEvidence({ before: json(evidence.backendSourceBefore).identity, @@ -329,7 +407,8 @@ export async function readSavedControlImageEvidence({ const backendContract = backendContractIdentity(JSON.parse(nodeBytes), identity.canonicalGraph); assert.ok(backendContract.fingerprint); const runtime = selectBackendRuntimeFingerprintEvidence([task.runtimeFingerprint]); - const control = verifyConditioningModels({ + const verifyModels = route.integratedControl ? verifyIntegratedControlCheckpoint : verifyConditioningModels; + const control = verifyModels({ loader: graphRequest.nodes[actual.loader].params, target, pipelineClass: route.pipelineClass, @@ -391,6 +470,10 @@ export async function readSavedControlImageEvidence({ observationLimits: { fullConsumedFieldAccounting: false, processedControlPixelsObserved: false, + ...(route.integratedControl && { + originalUploadResponsesObserved: false, + hostFilesMatchedNativeLoads: true, + }), ...(route.pagSettingsUnobserved && { effectivePagSettingsObserved: false }), physicalPlatformQualification: false, }, diff --git a/scripts/saved-control-image-evidence.test.mjs b/scripts/saved-control-image-evidence.test.mjs index 160f0c31..60d8a774 100644 --- a/scripts/saved-control-image-evidence.test.mjs +++ b/scripts/saved-control-image-evidence.test.mjs @@ -4,12 +4,14 @@ import test from 'node:test'; import { fileURLToPath } from 'node:url'; import { verifyConditioningModels } from './control-inpaint-evidence.mjs'; import { selectBackendRuntimeFingerprintEvidence } from './live-proof-provenance.mjs'; +import { verifyRetainedHostImageFiles } from './native-image-load-evidence.mjs'; import { readCanonicalEvidenceFile, readCanonicalWorkflowEvidence } from './release-contract-core.mjs'; import { verifySavedControlImageInputs } from './saved-control-image-evidence.mjs'; const clientRoot = fileURLToPath(new URL('..', import.meta.url)); const backendRoot = resolve(process.env.MODIFF_BACKEND_DIR ?? join(clientRoot, '../MoDiff')); const root = process.env.MODIFF_SAVED_CONTROL_EVIDENCE_DIR; +const integratedRoot = process.env.MODIFF_SAVED_INTEGRATED_CONTROL_EVIDENCE_DIR; const cases = [ ['linux-sd15-control-fixed', 'StableDiffusionPipeline:control_image', 'ControlNetModel', 'qa0wL-hE_WwQ'], [ @@ -38,6 +40,64 @@ const cases = [ ], ]; +test('the retained native host input witness is scoped to the task, output store and exact source files', () => { + const sourceValue = '@data/images/guide.png'; + const sha256 = 'd'.repeat(64); + const inputs = [{ sourceValue, file: { bytes: 41, sha256 } }]; + const task = { taskId: 'closed-task', persistedOutputSha256: '8'.repeat(64) }; + const witness = { ...task, files: [{ sourceValue, byteSize: 41, sha256 }] }; + verifyRetainedHostImageFiles(witness, { ...task, inputs }); + assert.throws( + () => verifyRetainedHostImageFiles({ ...witness, taskId: 'wrong' }, { ...task, inputs }), + assert.AssertionError, + ); + assert.throws( + () => verifyRetainedHostImageFiles({ ...witness, persistedOutputSha256: '0'.repeat(64) }, { ...task, inputs }), + assert.AssertionError, + ); + assert.throws( + () => + verifyRetainedHostImageFiles({ ...witness, files: [{ ...witness.files[0], byteSize: 42 }] }, { ...task, inputs }), + /Original host inputs differ/u, + ); +}); + +for (const [slug, workflowId, taskId] of [ + ['linux-flux-canny-backdrop-mask-math', 'FluxCannyPipeline:control_inpaint', '6jBwgHT1CJzd'], + ['linux-flux-depth-boat-patch-math', 'FluxDepthPipeline:control_inpaint', 'fzHPC9ZCZoH-'], + ['linux-flux-canny-ink-cube-math', 'FluxCannyPipeline:control_edit_image', 'NSXOcA60DY5Q'], + ['linux-flux-depth-boat-paint-math', 'FluxDepthPipeline:control_edit_image', 'uJXjYkrtPtwr'], +]) { + test('recovers the original integrated control run for ' + workflowId, { skip: !integratedRoot }, async () => { + const evidencePath = resolve(integratedRoot, slug, 'exact-native-evidence.json'); + const { receipt, evidence } = await readCanonicalWorkflowEvidence({ + clientRoot, + backendRoot, + workflowId, + evidencePath, + }); + assert.equal(receipt.taskId, taskId); + assert.equal(receipt.conditioningModel.source, 'integrated_checkpoint'); + assert.equal(receipt.observationLimits.originalUploadResponsesObserved, false); + assert.equal(receipt.observationLimits.hostFilesMatchedNativeLoads, true); + assert.equal(receipt.observationLimits.processedControlPixelsObserved, false); + assert.equal(receipt.qualificationClaims.rightsApproved, false); + const [guide, source, mask] = evidence.inputs; + assert.equal(receipt.guideBinding.sha256, guide.file.sha256); + assert.equal(receipt.inputBinding.sha256, source.file.sha256); + assert.equal(receipt.maskBinding?.sha256, mask?.file.sha256); + const read = (ref) => JSON.parse(readCanonicalEvidenceFile(dirname(evidencePath), ref).bytes); + const graph = read(evidence.graphRequest); + const { latestOutput: output } = read(evidence.outputPackage); + const sampler = Object.values(graph.nodes).find(({ action }) => /^Control(?:Edit|Inpaint)$/u.test(action)); + sampler.params.control_image.sourceId = sampler.params.image.sourceId; + assert.throws( + () => verifySavedControlImageInputs(graph, output, evidence.inputs, workflowId), + assert.AssertionError, + ); + }); +} + for (const [slug, workflowId, componentClass, taskId] of cases) { test('recovers the historical guide and verified sampler for ' + workflowId, { skip: !root }, async () => { const evidencePath = resolve(root, slug, 'exact-native-evidence.json'); From 6774c053aeba73a7466d7608fd2a76c583eb8b77 Mon Sep 17 00:00:00 2001 From: Sourav Das Date: Wed, 25 Nov 2026 10:57:00 +0530 Subject: [PATCH 365/440] Preserve workflow branch tasks and verify retained native evidence --- docs/cluster-engineering-lessons.md | 3 + scripts/control-inpaint-evidence.mjs | 19 +---- scripts/live-proof-provenance.mjs | 81 +++++++++++++++++++ scripts/native-image-load-evidence.mjs | 25 ++++++ scripts/private-image-edit-evidence.mjs | 68 +++++++++++++--- scripts/private-image-edit-evidence.test.mjs | 25 +++++- scripts/prompt-variant-evidence.mjs | 59 ++++++++++++-- scripts/prompt-variant-evidence.test.mjs | 17 ++++ scripts/release-contract-core.mjs | 1 + scripts/saved-control-image-evidence.mjs | 65 ++++++++++++--- scripts/saved-control-image-evidence.test.mjs | 33 ++++++++ scripts/video-stage-groups.test.mjs | 7 ++ ...workflow-library-canonical-export.test.mjs | 31 ++++++- scripts/workflow-library-generator.mjs | 36 ++++----- 14 files changed, 405 insertions(+), 65 deletions(-) diff --git a/docs/cluster-engineering-lessons.md b/docs/cluster-engineering-lessons.md index 22b3640a..c14dece8 100644 --- a/docs/cluster-engineering-lessons.md +++ b/docs/cluster-engineering-lessons.md @@ -35,6 +35,9 @@ unreasonable user expectations. The corrective obligations are: Fold internal operations only under the same owner with no independent consumer of the intermediate result. Reserve new Blocks for a meaningful typed boundary, such as a complete shot, reusable composition or loop. +- Keep each model stage's task with its own execution owner. When an export + combines video with a separately generated soundtrack, test the published + graph and confirm that the audio loader retains its declared audio mode. - Present one editor for a connected setting and retain the saved fallback. When selecting the default for similar stages, verify the fresh Creator path and the corresponding saved workflow, including the precise ordered diff --git a/scripts/control-inpaint-evidence.mjs b/scripts/control-inpaint-evidence.mjs index 3c07b846..c3a3ca40 100644 --- a/scripts/control-inpaint-evidence.mjs +++ b/scripts/control-inpaint-evidence.mjs @@ -10,7 +10,7 @@ import { selectBackendRuntimeFingerprintEvidence, selectInstalledModelIdentity, } from './live-proof-provenance.mjs'; -import { verifyNativeLoadedImage } from './native-image-load-evidence.mjs'; +import { verifyNativeCanny, verifyNativeLoadedImage } from './native-image-load-evidence.mjs'; import { verifyRetainedPngUpload } from './private-image-edit-evidence.mjs'; import { validateNativeVariantOutput, @@ -144,20 +144,7 @@ export function verifyControlInpaintMedia(api, output, inputs, owner = owners(ap }), ); const image = (role) => [{ kind: 'image', ...decoded[role] }]; - const canny = record(owner.canny).mediaEvidence; - const settings = api.nodes[owner.canny].params; - const thresholds = [settings.low_threshold.value, settings.high_threshold.value]; - const outputMode = settings.output_mode?.value ?? 'L'; - assert.deepEqual(canny.controls, { - low_threshold: Math.min(...thresholds), - high_threshold: Math.max(...thresholds), - output_mode: outputMode, - device: settings.device.value, - }); - assert.deepEqual(canny.inputs, { image: image('guide') }, 'Canny did not consume the selected guide.'); - assert.equal(canny.outputs.output.length, 1); - assert.equal(canny.outputs.output[0].kind, 'image'); - assert.equal(canny.outputs.output[0].mode, outputMode); + const edgeMap = verifyNativeCanny(api.nodes[owner.canny].params, record(owner.canny).mediaEvidence, decoded.guide); const sampler = record(owner.sampler); const params = api.nodes[owner.sampler].params; @@ -183,7 +170,7 @@ export function verifyControlInpaintMedia(api, output, inputs, owner = owners(ap { image: image('source'), mask_image: image('mask'), - control_image: canny.outputs.output, + control_image: edgeMap, }, 'Control Inpaint did not consume the selected source, mask and Canny output.', ); diff --git a/scripts/live-proof-provenance.mjs b/scripts/live-proof-provenance.mjs index 8815f461..334ee078 100644 --- a/scripts/live-proof-provenance.mjs +++ b/scripts/live-proof-provenance.mjs @@ -2213,6 +2213,87 @@ const plainImageInactive = const plainImageLegacyNull = ['control_guidance_start', 'conditioning_scale', 'strength', 'control_guidance_end']; const pagScalars = ['pag_scale', 'pag_adaptive_scale']; export const directImagePromptRoutes = [ + { + format: 'modiff.private.dreamlite-base-prompt-variant.v1', + workflowId: 'DreamLitePipeline:text_to_image', + modelType: 'DreamLitePipeline', + modelRepo: 'carlofkl/DreamLite-base', + modelRevision: '751cb8dbb9072a8c8ffd8684e0f254b50f20531b', + active: [...plainImageActive, 'negative_prompt', 'max_sequence_length', 'image_guidance_scale'], + inactive: plainImageInactive.filter((field) => field !== 'image_guidance_scale'), + typedOnly: ['image_guidance_scale'], + legacyNull: plainImageLegacyNull, + platform: /^Linux-/u, + backend: 'rocm', + dtype: 'bfloat16', + offload: 'model_cpu', + deviceMap: 'none', + replayedRuntimeContract: '8cbe038eeeb6d4a4c079783b8d7e4915d9f78faad9495cb8e354504c66925cf5', + generation: { + width: 1024, + height: 1024, + num_inference_steps: 28, + guidance_scale: 3.5, + max_sequence_length: 200, + image_guidance_scale: 1.5, + seed: 42, + negative_prompt: '', + }, + }, + { + format: 'modiff.private.joyimage-base-prompt-variant.v1', + workflowId: 'JoyImageEditPipeline:text_to_image', + modelType: 'JoyImageEditPipeline', + modelRepo: 'jdopensource/JoyAI-Image-Edit-Diffusers', + modelRevision: '4b41fb25d961f37668750178ccbb380da326201c', + previousExpertFamily: 'ChromaImg2ImgPipeline', + sourceFingerprint: 'sha256:backend-source-v1:b29a5b0d317aaa781ae2a5205b46b518eea5a3d68a214eb0968dba4ac0660af7', + active: [...plainImageActive, 'negative_prompt', 'max_sequence_length'], + inactive: plainImageInactive, + legacyNull: plainImageLegacyNull, + platform: /^Linux-/u, + backend: 'rocm', + dtype: 'bfloat16', + offload: 'model_cpu', + deviceMap: 'none', + generation: { + width: 1024, + height: 1024, + num_inference_steps: 40, + guidance_scale: 4, + max_sequence_length: 2048, + seed: 42, + negative_prompt: '', + }, + }, + { + format: 'modiff.private.longcat-image-florist-prompt-variant.v1', + workflowId: 'LongCatImagePipeline:text_to_image', + modelType: 'LongCatImagePipeline', + modelRepo: 'meituan-longcat/LongCat-Image', + modelRevision: 'd2ea50b79a930074c37b9b97ce45e3b2ea8cf4d8', + previousExpertFamily: 'JoyImageEditPipeline', + retainedObservationSource: + 'sha256:backend-source-v1:b29a5b0d317aaa781ae2a5205b46b518eea5a3d68a214eb0968dba4ac0660af7', + active: [...plainImageActive, 'negative_prompt', 'max_sequence_length'], + inactive: plainImageInactive, + typedOnly: ['max_sequence_length'], + legacyNull: [...plainImageLegacyNull, 'max_sequence_length'], + platform: /^Linux-/u, + backend: 'rocm', + dtype: 'bfloat16', + offload: 'model_cpu', + deviceMap: 'none', + generation: { + width: 1024, + height: 1024, + num_inference_steps: 50, + guidance_scale: 4, + max_sequence_length: 512, + seed: 42, + negative_prompt: '', + }, + }, { format: 'modiff.private.pixart-sigma-text-to-image-prompt-variant.v1', workflowId: 'PixArtSigmaPipeline:text_to_image', diff --git a/scripts/native-image-load-evidence.mjs b/scripts/native-image-load-evidence.mjs index 4d977f3b..0398be31 100644 --- a/scripts/native-image-load-evidence.mjs +++ b/scripts/native-image-load-evidence.mjs @@ -63,3 +63,28 @@ export function verifyNativeLoadedImage(load, loaded, mode) { const [image] = verifyNativeLoadedImages(load, loaded, [mode]); return image; } + +export function verifyNativeCanny(settings, evidence, decodedGuide) { + assert.equal(evidence?.schemaVersion, 1); + assert.equal(evidence.source, 'native-builtin-media-v1'); + assert.equal(evidence.status, 'complete'); + const thresholds = [settings.low_threshold.value, settings.high_threshold.value]; + const outputMode = settings.output_mode?.value ?? 'L'; + assert.deepEqual(evidence.controls, { + low_threshold: Math.min(...thresholds), + high_threshold: Math.max(...thresholds), + output_mode: outputMode, + device: settings.device.value, + }); + assert.deepEqual(evidence.inputs, { image: [{ kind: 'image', ...decodedGuide }] }, 'Canny guide bytes differ.'); + assert.deepEqual(evidence.files, {}); + assert.deepEqual(Object.keys(evidence.outputs), ['output']); + assert.equal(evidence.outputs.output.length, 1); + const [edgeImage] = evidence.outputs.output; + assert.equal(edgeImage.kind, 'image'); + assert.equal(edgeImage.mode, outputMode); + assert.deepEqual([edgeImage.width, edgeImage.height], [decodedGuide.width, decodedGuide.height]); + assert.match(edgeImage.sha256, /^[a-f0-9]{64}$/u); + assert.ok(edgeImage.byteSize > 0); + return evidence.outputs.output; +} diff --git a/scripts/private-image-edit-evidence.mjs b/scripts/private-image-edit-evidence.mjs index 72c41eea..18f08ffe 100644 --- a/scripts/private-image-edit-evidence.mjs +++ b/scripts/private-image-edit-evidence.mjs @@ -88,6 +88,34 @@ const retainedOutpaint = { unobservedControls: ['left', 'right', 'top', 'bottom', 'overlap', 'feather', 'fill_color'], }; const editRoutes = new Map([ + [ + 'DreamLiteMobilePipeline:edit_image', + { + modelRepo: 'carlofkl/DreamLite-mobile', + modelRevision: '6695c3f4be230f0493fa5dbf78be3bc4d3bb2ab4', + loaderClass: 'DreamLiteMobilePipeline', + format: DIRECT_IMAGE_EDIT_FORMAT, + captureFormat: 'modiff.private.direct-image-edit-observation.v1', + consumed: [...baseConsumed, ...imageGeometry], + fullNativeSnapshot: true, + }, + ], + [ + 'FluxDevPipeline:edit_image', + { + ...retainedImageEdit, + format: SAVED_WEBP_EDIT_FORMAT, + modelRepo: 'black-forest-labs/FLUX.1-dev', + modelRevision: '3de623fc3c33e44ffbe2bad470d0f45bccf2eb21', + loaderClass: 'FluxImg2ImgPipeline', + consumed: [...retainedImageEdit.consumed, 'strength'], + inactiveRecorded: [], + sourceFingerprint: retainedCfgInpaint.sourceFingerprint, + runtimeContractDigest: retainedCfgInpaint.runtimeContractDigest, + fullNativeSnapshot: true, + guidanceObservedAsTrueCfg: true, + }, + ], [ 'ChromaImg2ImgPipeline:edit_image', { @@ -357,6 +385,17 @@ const editRoutes = new Map([ fullOrLateNativeSnapshot: true, inputPathPrefix: '@data/images/', nativePngEvidence: true, + savedNativeRecipe: { + ...retainedImageEdit, + consumed: stableDiffusionEditConsumed, + outputGeometryFromSettings: false, + samplerSourceProjection: true, + sourceFingerprint: 'sha256:backend-source-v1:2faeaaa03b7902a03df5cd0cea38129b7419f6d844125c0ca7e29ccfaf635290', + originalRegistryHash: 'fd66c8907b4a7969c1a87757f4d9e629d62395c55b8b74f730432cf1ce47d13e', + windowsCudaRuntime: true, + fullNativeSnapshot: true, + previousExpertFamily: 'StableDiffusionXLPAGImg2ImgPipeline', + }, }, ], [ @@ -774,9 +813,15 @@ async function verifySourceBinding(clientRoot, bound, output, input, route) { } } -export function validatePrivateImageEditRuntimePlatform(workflowId, platform, backend) { +function reviewedEditRoute(workflowId, format) { const route = editRoutes.get(workflowId); assert.ok(route, 'Unknown private image-edit evidence route.'); + const saved = route.savedNativeRecipe; + return saved && saved.format === format ? { ...route, ...saved } : route; +} + +export function validatePrivateImageEditRuntimePlatform(workflowId, platform, backend, format) { + const route = reviewedEditRoute(workflowId, format); if (route.windowsCudaRuntime && /^Windows-/iu.test(platform)) { assert.equal(backend, 'cuda'); } else { @@ -948,7 +993,7 @@ function validateRuntime( observation, bound, workflowId, - { modelRepo, modelRevision, loaderClass, cpuExecution }, + { modelRepo, modelRevision, loaderClass, cpuExecution, format }, ) { same( completion.runtimeHints, @@ -960,7 +1005,12 @@ function validateRuntime( 'Native completion runtime envelope differs.', ); const runtime = selectBackendRuntimeFingerprintEvidence([task.runtimeFingerprint]); - validatePrivateImageEditRuntimePlatform(workflowId, runtime.packages.platform, task.runtimeMeasurement.backend); + validatePrivateImageEditRuntimePlatform( + workflowId, + runtime.packages.platform, + task.runtimeMeasurement.backend, + format, + ); assert.equal(runtime.torch.cuda_available, true); assert.equal(task.runtimeMeasurement.device, 'cuda:0'); const { elapsedSeconds, peakAllocatedBytes, peakReservedBytes, peakMeasurementVersion } = task.runtimeMeasurement; @@ -1024,9 +1074,7 @@ function verifyRetainedImageUpload(upload, input, decoded, bytes, encoding) { export async function readPrivateImageEditEvidence({ clientRoot, manifest, graph, authoring, artifact, evidencePath }) { const workflowId = manifest.id; - const route = editRoutes.get(workflowId); - assert.ok(route, 'Unknown private image-edit evidence route.'); - const { modelRepo, modelRevision, loaderClass } = route; + const { modelRepo, modelRevision, loaderClass } = reviewedEditRoute(workflowId); const target = canonicalWorkflowAuthoringContract(manifest, graph, authoring, artifact); same(target.modelSet, [{ repoId: modelRepo, revision: modelRevision }], 'Private edit model pin differs.'); same(target.outputPlan.mediaKinds, ['image']); @@ -1035,6 +1083,7 @@ export async function readPrivateImageEditEvidence({ clientRoot, manifest, graph assert.ok(stat.isFile() && !stat.isSymbolicLink() && stat.size > 0 && stat.size <= 65_536); const descriptorBytes = readFileSync(evidencePath); const evidence = JSON.parse(descriptorBytes); + const route = reviewedEditRoute(workflowId, evidence.format); const masked = route.masked === true; const hostFileWitness = evidence.format === SAVED_HOST_FILE_EDIT_FORMAT && evidence.format === route.format; const savedImage = @@ -1180,8 +1229,9 @@ export async function readPrivateImageEditEvidence({ clientRoot, manifest, graph hasNativeSnapshot || route.serverRetainedOutput ? validateNativeVariantRun : validateLateNativeImageVariantRun; const { task, output, hints } = validateRun(runOptions); same(hints.workflowSnapshot.studioForm, output.formSnapshot); + const sourceProjection = !savedImage || route.samplerSourceProjection === true; let sourceBinding; - if (savedImage) { + if (!sourceProjection) { sourceBinding = await verifySavedImageSource( bound, output, @@ -1322,7 +1372,7 @@ export async function readPrivateImageEditEvidence({ clientRoot, manifest, graph ? { sourceByteWitness: hostFileWitness ? 'retained-host-file-with-native-load-and-typed-wire' - : savedImage + : !sourceProjection ? 'native-load-and-upload-with-typed-wire' : 'native-load-consumer-and-upload', } @@ -1335,7 +1385,7 @@ export async function readPrivateImageEditEvidence({ clientRoot, manifest, graph : {}), ...(route.retainedFormMode ? { retainedStudioFormMode: route.retainedFormMode } : {}), ...(savedImage - ? { independentConsumerPixels: false, configuredUnobservedControls: route.unobservedControls ?? [] } + ? { independentConsumerPixels: sourceProjection, configuredUnobservedControls: route.unobservedControls ?? [] } : {}), ...(hostFileWitness ? { originalUploadResponseObserved: false } : {}), ...(route.cpuExecution ? { executionDevice: 'cpu:0', peakMemorySource: 'sampled-worker-rss' } : {}), diff --git a/scripts/private-image-edit-evidence.test.mjs b/scripts/private-image-edit-evidence.test.mjs index 1360cad5..bd9e705e 100644 --- a/scripts/private-image-edit-evidence.test.mjs +++ b/scripts/private-image-edit-evidence.test.mjs @@ -410,6 +410,22 @@ test( ); const retainedMaskEvidence = process.env.MODIFF_SD15_INPAINT_EVIDENCE; +const retainedDreamLiteEdit = process.env.MODIFF_DREAMLITE_MOBILE_PRIVATE_EVIDENCE; + +test('DreamLite Mobile verifies its private saved edit and input bytes', { skip: !retainedDreamLiteEdit }, async () => { + const clientRoot = fileURLToPath(new URL('..', import.meta.url)); + const backendRoot = resolve(process.env.MODIFF_BACKEND_DIR ?? join(clientRoot, '..', 'MoDiff')); + const { receipt } = await readCanonicalWorkflowEvidence({ + clientRoot, + backendRoot, + workflowId: 'DreamLiteMobilePipeline:edit_image', + evidencePath: resolve(retainedDreamLiteEdit), + }); + assert.equal(receipt.taskId, 'UkIOy4hkWvBa'); + assert.equal(receipt.inputBinding.sha256, 'b0c9f07333c2fc9a5de03f2b8f28d07bfaff162e38920d2f3bc70806be4be309'); + assert.ok(Object.values(receipt.qualificationClaims).every((value) => value === false)); +}); + test( 'saved Inpaint evidence binds two original PNG uploads to their distinct consumed ports', { @@ -474,6 +490,8 @@ for (const [workflowId, variable, hasMask, unobserved] of [ ['QwenImageModularPipeline:edit_image', 'MODIFF_QWEN_BOOKSHOP_EDIT_EVIDENCE', false, []], ['ChromaImg2ImgPipeline:edit_image', 'MODIFF_CHROMA_LARCH_EDIT_EVIDENCE', false, []], ['JoyImageEditPipeline:edit_image', 'MODIFF_SAVED_JOY_BASE_EDIT_EVIDENCE', false, []], + ['StableDiffusionXLPipeline:edit_image', 'MODIFF_SDXL_LINEN_EDIT_EVIDENCE', false, []], + ['FluxDevPipeline:edit_image', 'MODIFF_SAVED_FLUX_DEV_TEAPOT_EVIDENCE', false, []], ['FluxKontextInpaintPipeline:inpaint', 'MODIFF_SAVED_KONTEXT_WINDOW_EVIDENCE', true, []], [ 'FluxKontextInpaintPipeline:outpaint', @@ -525,13 +543,16 @@ for (const [workflowId, variable, hasMask, unobserved] of [ const args = { clientRoot, backendRoot, workflowId, evidencePath }; const original = await readCanonicalWorkflowEvidence(args); const { receipt } = original; - assert.equal(receipt.observationLimits.independentConsumerPixels, false); const hostFileWitness = workflowId === 'JoyImageEditPipeline:edit_image'; + const samplerSourceProjection = workflowId === 'StableDiffusionXLPipeline:edit_image'; + assert.equal(receipt.observationLimits.independentConsumerPixels, samplerSourceProjection); assert.equal( receipt.observationLimits.sourceByteWitness, hostFileWitness ? 'retained-host-file-with-native-load-and-typed-wire' - : 'native-load-and-upload-with-typed-wire', + : samplerSourceProjection + ? 'native-load-consumer-and-upload' + : 'native-load-and-upload-with-typed-wire', ); if (hostFileWitness) assert.equal(receipt.observationLimits.originalUploadResponseObserved, false); assert.deepEqual(receipt.observationLimits.configuredUnobservedControls, unobserved); diff --git a/scripts/prompt-variant-evidence.mjs b/scripts/prompt-variant-evidence.mjs index f9d7e6ac..21db6015 100644 --- a/scripts/prompt-variant-evidence.mjs +++ b/scripts/prompt-variant-evidence.mjs @@ -247,6 +247,47 @@ const wanA14BOpeningRoute = { chain: [['source', 'modules.Image', 'Load', ''], ...wanA14BRoute.chain], }; +const ltxScheduledRoute = { + ...wanA14BRoute, + format: 'modiff.private.ltx-long-scheduled-image-variant.v1', + workflowId: 'LTXI2VLongMultiPromptPipeline:image_to_video', + modelType: 'LTXI2VLongMultiPromptPipeline', + modelRepo: 'Lightricks/LTX-Video-0.9.8-13B-distilled', + modelRevision: '7c64400e1861cc0d7b98d570a1926d5408ec60cd', + sourceFingerprint: 'sha256:backend-source-v1:70bc1ff7fe61307be52cfda86b38c6400f2156cbc8240a489b62ff19a93d58dc', + executedTask: 'image_to_video', + bindsImage: true, + imageInputPort: 'reference_images', + bindSeed: false, + chain: [['source', 'modules.Image', 'Load', ''], ...wanA14BRoute.chain], + retainedBaselineSettings: [ + ['generator', 'num_frames', 81, 129], + [ + 'generator', + 'prompt_segments_json', + '', + JSON.stringify([ + { + start_window: 0, + end_window: 0, + text: 'Wide eye-level shot from a fixed tripod at a rainy tram stop at blue hour. One red umbrella shelters a seated passenger. Fine rain falls and the warm shelter light reflects on the wet tracks and pavement.', + }, + { + start_window: 1, + end_window: 1, + text: 'Continue the same uncut fixed view. A distant pair of warm tram headlights approaches along the left tracks. Their reflections lengthen across the wet rails. The seated passenger and red umbrella stay beneath the same shelter.', + }, + ]), + ], + ], + configuredUnobservedControls: [ + 'prompt_segments_json', + 'segment_frame_length', + 'temporal_overlap', + 'temporal_overlap_condition_strength', + ], +}; + const wanAnimateFiles = [ ['face', 'face_video', 256, 256], ['pose', 'pose_video', 768, 512], @@ -563,6 +604,15 @@ function owners(profile, api) { ); } +function bindReviewedSettings(owners, settings = []) { + for (const [role, field, defaultValue, reviewedValue] of settings) { + const param = owners[role].node.params[field]; + assert.equal(param.value, defaultValue); + assert.ok(!param.sourceId && !param.sourceKey, 'The reviewed setting must be literal.'); + param.value = reviewedValue; + } +} + export function bindPromptVariant( profile, original, @@ -592,14 +642,10 @@ export function bindPromptVariant( // the recorded selection that became the current canonical default. attention.value = '_native_math'; } + bindReviewedSettings(expectedOwners, profile.retainedBaselineSettings); const baseline = canonicalGraphIdentity(expected); assert.equal(baseline.hash, baselineHash, 'The current authored prompt recipe differs from the original baseline.'); - for (const [role, field, defaultValue, reviewedValue] of profile.reviewedSettings ?? []) { - const param = expectedOwners[role].node.params[field]; - assert.equal(param.value, defaultValue); - assert.ok(!param.sourceId && !param.sourceKey, 'The reviewed setting must be literal.'); - param.value = reviewedValue; - } + bindReviewedSettings(expectedOwners, profile.reviewedSettings); const expectedInputs = expectedOwners.generator.node.params; if (profile.bindsImage) { assert.match(sourceValue, /^@data\/images\/[a-z0-9_-]{1,120}[.]png$/iu); @@ -1169,6 +1215,7 @@ export async function readPromptVariantEvidence({ clientRoot, manifest, graph, a audioLdmRoute, wanA14BRoute, wanA14BOpeningRoute, + ltxScheduledRoute, wanAnimateRoute, wanReplaceRoute, cogVideoRoute, diff --git a/scripts/prompt-variant-evidence.test.mjs b/scripts/prompt-variant-evidence.test.mjs index d3dc45ad..45bdfd1d 100644 --- a/scripts/prompt-variant-evidence.test.mjs +++ b/scripts/prompt-variant-evidence.test.mjs @@ -458,6 +458,15 @@ for (const [workflowId, variable, kind, proofKind = 'real_backend_prompt_bound_m ['SanaSprintPipeline:text_to_image', 'MODIFF_SANA_SPRINT_IMAGE_PROMPT_EVIDENCE', 'image'], ['StableDiffusionXLPAGPipeline:text_to_image', 'MODIFF_SDXL_PAG_PROMPT_EVIDENCE', 'image'], ['PixArtSigmaPipeline:text_to_image', 'MODIFF_SAVED_PIXART_SIGMA_PROMPT_EVIDENCE', 'image'], + ['DreamLitePipeline:text_to_image', 'MODIFF_DREAMLITE_BASE_PRIVATE_EVIDENCE', 'image'], + ['JoyImageEditPipeline:text_to_image', 'MODIFF_JOY_HERBARIUM_PROMPT_EVIDENCE', 'image'], + ['LongCatImagePipeline:text_to_image', 'MODIFF_LONGCAT_FLORIST_PROMPT_EVIDENCE', 'image'], + [ + 'LTXI2VLongMultiPromptPipeline:image_to_video', + 'MODIFF_LTX_SCHEDULED_TRAM_EVIDENCE', + 'video', + 'real_backend_input_bound_model_variant', + ], ]) { const saved = process.env[variable]; test(`${workflowId} retained ${kind} prompt variant verifies without new execution`, { skip: !saved }, async () => { @@ -468,6 +477,14 @@ for (const [workflowId, variable, kind, proofKind = 'real_backend_prompt_bound_m assert.equal(original.receipt.canonicalDefaultsExecuted, false); assert.equal(original.receipt.decodedOutput.kind, kind); assert.ok(Object.values(original.receipt.qualificationClaims).every((claim) => claim === false)); + if (workflowId === 'LongCatImagePipeline:text_to_image') { + assert.equal(original.receipt.observationLimits.fullConsumedFieldAccounting, false); + assert.deepEqual(original.receipt.observationLimits.configuredUnobservedControls, ['max_sequence_length']); + } + if (workflowId === 'LTXI2VLongMultiPromptPipeline:image_to_video') { + assert.equal(original.receipt.decodedOutput.frames, 129); + assert.ok(original.receipt.observationLimits.configuredUnobservedControls.includes('prompt_segments_json')); + } if (workflowId === 'HuggingFaceImageTextToTextModel:image_to_text') { const [{ file }] = original.evidence.outputs; const transportBytes = readCanonicalEvidenceFile(dirname(evidencePath), file).bytes; diff --git a/scripts/release-contract-core.mjs b/scripts/release-contract-core.mjs index b3c292b1..55ac0b90 100644 --- a/scripts/release-contract-core.mjs +++ b/scripts/release-contract-core.mjs @@ -924,6 +924,7 @@ export async function readCanonicalWorkflowEvidence({ clientRoot, backendRoot, w 'modiff.private.audioldm2-prompt-variant.v1', 'modiff.private.wan-a14b-video-prompt-variant.v1', 'modiff.private.wan-a14b-opening-image-variant.v1', + 'modiff.private.ltx-long-scheduled-image-variant.v1', 'modiff.private.wan-character-animate-inputs.v1', 'modiff.private.wan-character-replace-inputs.v1', 'modiff.private.cogvideox-video-prompt-variant.v1', diff --git a/scripts/saved-control-image-evidence.mjs b/scripts/saved-control-image-evidence.mjs index 651837f5..ee92a5de 100644 --- a/scripts/saved-control-image-evidence.mjs +++ b/scripts/saved-control-image-evidence.mjs @@ -11,7 +11,11 @@ import { selectBackendRuntimeFingerprintEvidence, selectInstalledModelIdentity, } from './live-proof-provenance.mjs'; -import { verifyNativeLoadedImage, verifyRetainedHostImageFiles } from './native-image-load-evidence.mjs'; +import { + verifyNativeCanny, + verifyNativeLoadedImage, + verifyRetainedHostImageFiles, +} from './native-image-load-evidence.mjs'; import { validateLateNativeImageVariantRun, validateNativeVariantOutput, @@ -19,6 +23,7 @@ import { validateUnmodifiedExpertPreparation, } from './native-variant-run-evidence.mjs'; import { verifyRetainedPngUpload } from './private-image-edit-evidence.mjs'; +import { validateImagePromptPreparation } from './prompt-variant-evidence.mjs'; import { canonicalWorkflowAuthoringContract, exportCanonicalWorkflowGraphs, @@ -54,6 +59,18 @@ const fluxControlInpaint = { pipelineClass: 'FluxControlInpaintPipeline', additionalInputs: ['source', 'mask'], }; +const sdxlWindowsControlEdit = { + action: 'ControlEdit', + pipelineClass: 'StableDiffusionXLControlNetImg2ImgPipeline', + componentClass: 'ControlNetModel', + source: '2faeaaa03b7902a03df5cd0cea38129b7419f6d844125c0ca7e29ccfaf635290', + originalRegistryHash: 'fd66c8907b4a7969c1a87757f4d9e629d62395c55b8b74f730432cf1ce47d13e', + canny: true, + cannyMediaWitness: true, + windows: true, + additionalInputs: ['source'], + previousExpertFamily: 'StableDiffusionXLImg2ImgPipeline', +}; const routes = { 'FluxCannyPipeline:control_edit_image': { ...fluxControl, lateOutput: true }, 'FluxCannyPipeline:control_inpaint': { ...fluxControlInpaint, lateOutput: true }, @@ -94,6 +111,13 @@ const routes = { source: sdxlSource, canny: true, }, + 'StableDiffusionXLControlNetPipeline:control_edit_image': sdxlWindowsControlEdit, + 'StableDiffusionXLPAGPipeline:control_edit_image': { + ...sdxlWindowsControlEdit, + pipelineClass: 'StableDiffusionXLControlNetPAGImg2ImgPipeline', + previousExpertFamily: 'StableDiffusionXLControlNetImg2ImgPipeline', + pagSettingsUnobserved: true, + }, 'StableDiffusionXLPAGPipeline:control_image': { pipelineClass: 'StableDiffusionXLControlNetPAGPipeline', componentClass: 'ControlNetModel', @@ -211,7 +235,11 @@ export function verifySavedControlImageInputs(api, output, inputs, workflowId) { if (canny) { assert.deepEqual(api.nodes[canny].params.image, connected(inputOwners.guide, 'image')); assert.deepEqual(record(canny).fields, { device: literal(api.nodes[canny].params.device.value) }); - assert.equal(record(canny).mediaEvidence, undefined); + if (route.cannyMediaWitness) { + verifyNativeCanny(api.nodes[canny].params, record(canny).mediaEvidence, decoded[0]); + } else { + assert.equal(record(canny).mediaEvidence, undefined); + } } const expected = Object.fromEntries( [ @@ -354,7 +382,13 @@ export async function readSavedControlImageEvidence({ graphCompleted: completed, graphRequest, graphAcknowledgment: json(evidence.graphAcknowledgment), - validatePreparation: (value) => validateUnmodifiedExpertPreparation(value, route.pipelineClass), + validatePreparation: (value) => + route.previousExpertFamily + ? validateImagePromptPreparation(value, { + modelType: route.pipelineClass, + previousExpertFamily: route.previousExpertFamily, + }) + : validateUnmodifiedExpertPreparation(value, route.pipelineClass), ...(route.lateOutput && { persistedOutput: (stored ?? json(evidence.persistedOutput).outputs)[0] }), }); if (stored) { @@ -393,17 +427,21 @@ export async function readSavedControlImageEvidence({ assert.deepEqual(source.blockers, []); const expectedSource = 'sha256:backend-source-v1:' + route.source; assert.equal(source.identity.fingerprint, expectedSource); - const replay = json(evidence.registryReplay); const { bytes: nodeBytes } = read(evidence.nodes); - assert.deepEqual(replay, { - scope: 'Original nodes handler only, with exact source and runtime contract', - modelRuns: 0, - fileCount: source.identity.files.length, - sourceFingerprint: expectedSource, - runtimeContract: route.windows ? windowsReplayRuntime : linuxReplayRuntime, - nodeHash: sha256(nodeBytes), - nodeBytes: nodeBytes.length, - }); + if (route.originalRegistryHash) { + assert.equal(evidence.registryReplay, undefined); + assert.equal(sha256(nodeBytes), route.originalRegistryHash); + } else { + assert.deepEqual(json(evidence.registryReplay), { + scope: 'Original nodes handler only, with exact source and runtime contract', + modelRuns: 0, + fileCount: source.identity.files.length, + sourceFingerprint: expectedSource, + runtimeContract: route.windows ? windowsReplayRuntime : linuxReplayRuntime, + nodeHash: sha256(nodeBytes), + nodeBytes: nodeBytes.length, + }); + } const backendContract = backendContractIdentity(JSON.parse(nodeBytes), identity.canonicalGraph); assert.ok(backendContract.fingerprint); const runtime = selectBackendRuntimeFingerprintEvidence([task.runtimeFingerprint]); @@ -470,6 +508,7 @@ export async function readSavedControlImageEvidence({ observationLimits: { fullConsumedFieldAccounting: false, processedControlPixelsObserved: false, + ...(route.cannyMediaWitness && { nativeEdgeMapObserved: true }), ...(route.integratedControl && { originalUploadResponsesObserved: false, hostFilesMatchedNativeLoads: true, diff --git a/scripts/saved-control-image-evidence.test.mjs b/scripts/saved-control-image-evidence.test.mjs index 60d8a774..2f09518a 100644 --- a/scripts/saved-control-image-evidence.test.mjs +++ b/scripts/saved-control-image-evidence.test.mjs @@ -62,6 +62,39 @@ test('the retained native host input witness is scoped to the task, output store ); }); +for (const [workflowId, variable] of [ + ['StableDiffusionXLControlNetPipeline:control_edit_image', 'MODIFF_SDXL_CONTROL_BOATHOUSE_EVIDENCE'], + ['StableDiffusionXLPAGPipeline:control_edit_image', 'MODIFF_SDXL_PAG_PORT_HOLE_EVIDENCE'], +]) { + const fixture = process.env[variable]; + test(workflowId + ' binds its source, guide and native edge preparation', { skip: !fixture }, async () => { + const evidencePath = resolve(fixture); + const { receipt, evidence } = await readCanonicalWorkflowEvidence({ + clientRoot, + backendRoot, + workflowId, + evidencePath, + }); + const [guide, source] = evidence.inputs; + assert.equal(receipt.inputBinding.sha256, source.file.sha256); + assert.equal(receipt.guideBinding.sha256, guide.file.sha256); + assert.equal(receipt.observationLimits.nativeEdgeMapObserved, true); + assert.equal(receipt.observationLimits.processedControlPixelsObserved, false); + if (workflowId.startsWith('StableDiffusionXLPAG')) { + assert.equal(receipt.observationLimits.effectivePagSettingsObserved, false); + } + const read = (ref) => JSON.parse(readCanonicalEvidenceFile(dirname(evidencePath), ref).bytes); + const graph = read(evidence.graphRequest); + const { latestOutput: output } = read(evidence.outputPackage); + const canny = output.resolvedExecutionInputs.nodes.find(({ action }) => action === 'Canny'); + canny.mediaEvidence.inputs.image[0].sha256 = 'b'.repeat(64); + assert.throws( + () => verifySavedControlImageInputs(graph, output, evidence.inputs, workflowId), + /Canny guide bytes differ/u, + ); + }); +} + for (const [slug, workflowId, taskId] of [ ['linux-flux-canny-backdrop-mask-math', 'FluxCannyPipeline:control_inpaint', '6jBwgHT1CJzd'], ['linux-flux-depth-boat-patch-math', 'FluxDepthPipeline:control_inpaint', 'fzHPC9ZCZoH-'], diff --git a/scripts/video-stage-groups.test.mjs b/scripts/video-stage-groups.test.mjs index 4a0fa767..88723828 100644 --- a/scripts/video-stage-groups.test.mjs +++ b/scripts/video-stage-groups.test.mjs @@ -609,6 +609,13 @@ test('soundtrack secondary owner receives the same Model Setup grouping as stand ]); const flattened = groups.unpackVisualOperationGroups(graph).graph; assert.equal(flattened.nodes.filter((node) => node.data.action === 'LoadPipeline').length, 2); + const compiled = exporter.useFlowStore + .getState() + .exportGraph('video-stage-contract', undefined, { sourceGraph: graph, randomizeSeeds: false }); + const soundtrackOwner = Object.values(compiled.nodes).find( + ({ module, action }) => module === 'modules.DiffusersAudio' && action === 'LoadPipeline', + ); + assert.equal(soundtrackOwner?.params.mode.value, 'text_to_audio'); assert.equal(flattened.nodes.filter((node) => node.data.action === 'FitDuration').length, 1); assert.equal(flattened.nodes.filter((node) => node.data.action === 'ExportWithAudio').length, 1); }); diff --git a/scripts/workflow-library-canonical-export.test.mjs b/scripts/workflow-library-canonical-export.test.mjs index 5f4a7212..a2b810e4 100644 --- a/scripts/workflow-library-canonical-export.test.mjs +++ b/scripts/workflow-library-canonical-export.test.mjs @@ -4,11 +4,40 @@ import { readFileSync } from 'node:fs'; import path from 'node:path'; import { after, before, test } from 'node:test'; import { createServer } from 'vite'; -import { sanitizeCanonicalWorkflowGraph, canonicalizeGraphIds } from './workflow-library-generator.mjs'; +import { + applyPortableContracts, + sanitizeCanonicalWorkflowGraph, + canonicalizeGraphIds, +} from './workflow-library-generator.mjs'; import { retainExistingCanonicalDeviceDefaults } from './workflow-library-contract.mjs'; import { canonicalGraphIdentity } from './live-proof-provenance.mjs'; import { selectReviewedExperimentalWorkflows } from './workflow-library-manifest-state.mjs'; +test('portable workflow export preserves the independent tasks of model stages', () => { + const stage = (module, action, value) => ({ + data: { module, action, params: value ? { mode: { value } } : {} }, + }); + const graph = { + nodes: [ + stage('modules.DiffusersAudio', 'LoadPipeline', 'text_to_audio'), + stage('modules.DiffusersVideo', 'Generate', 'text_to_video'), + stage('modules.DiffusersVideo', 'Generate', 'image_to_video'), + stage('modules.DiffusersVideo', 'GenerateVideoAudio'), + ], + }; + const output = applyPortableContracts(graph, 'text_to_video'); + assert.deepEqual( + output.nodes.map(({ data }) => data.params.mode.value), + ['text_to_audio', 'text_to_video', 'image_to_video', 'text_to_video'], + ); + const soundtrack = stage('modules.DiffusersAudio', 'LoadPipeline'); + soundtrack.data.params.mode = { default: 'text_to_audio', options: ['text_to_audio', 'audio_variation'] }; + applyPortableContracts({ nodes: [soundtrack] }, 'text_to_video'); + assert.equal(soundtrack.data.params.mode.value, 'text_to_audio'); + soundtrack.data.params.mode.value = 'text_to_video'; + assert.throws(() => applyPortableContracts({ nodes: [soundtrack] }, 'text_to_video'), /Invalid portable task/u); +}); + test('repeated shot processors retain only unanimous fallback defaults with unchanged multiplicity', () => { const make = (id, fallback) => ({ id, diff --git a/scripts/workflow-library-generator.mjs b/scripts/workflow-library-generator.mjs index 263639c6..721327e4 100644 --- a/scripts/workflow-library-generator.mjs +++ b/scripts/workflow-library-generator.mjs @@ -136,23 +136,23 @@ function sanitize(value, key = '', ancestors = []) { function applyPortableContracts(graph, mode) { for (const node of graph?.nodes ?? []) { normalizePortableWorkflowNodeOffload(node); - if (node?.data?.module === 'modules.DiffusersImage' && node?.data?.action === 'LoadPipeline') { - node.data.params = node.data.params ?? {}; - node.data.params.mode = { ...(node.data.params.mode ?? {}), value: mode }; - } - if ( - ['modules.DiffusersAudio', 'modules.DiffusersThreeD'].includes(node?.data?.module) && - node?.data?.action === 'LoadPipeline' - ) { - node.data.params = node.data.params ?? {}; - node.data.params.mode = { ...(node.data.params.mode ?? {}), value: mode }; - } - if ( - node?.data?.module === 'modules.DiffusersVideo' && - ['Generate', 'GenerateVideoAudio'].includes(node?.data?.action) - ) { - node.data.params = node.data.params ?? {}; - node.data.params.mode = { ...(node.data.params.mode ?? {}), value: mode }; + const { module, action } = node?.data ?? {}; + const ownsMode = + (['modules.DiffusersImage', 'modules.DiffusersAudio', 'modules.DiffusersThreeD'].includes(module) && + action === 'LoadPipeline') || + (module === 'modules.DiffusersVideo' && ['Generate', 'GenerateVideoAudio'].includes(action)); + if (ownsMode) { + const params = (node.data.params ??= {}); + const field = params.mode ?? {}; + const choices = Array.isArray(field.options) ? field.options.map((option) => option?.value ?? option) : []; + // A secondary stage, such as the soundtrack in a video workflow, owns + // its own task. The workflow task is a fallback for unset fields only. + const fallback = choices.length && !choices.includes(mode) ? field.default : mode; + const value = field.value || fallback; + if (typeof value !== 'string' || !value || (choices.length && !choices.includes(value))) { + throw new Error(`Invalid portable task ${String(value)} for ${module}.${action}.`); + } + params.mode = { ...field, value }; } if ( node?.data?.module === 'modules.DiffusersRuntime' && @@ -744,7 +744,7 @@ async function main() { } } -export { sanitize as sanitizeCanonicalWorkflowGraph, canonicalizeGraphIds }; +export { applyPortableContracts, sanitize as sanitizeCanonicalWorkflowGraph, canonicalizeGraphIds }; if (process.argv[1] && import.meta.url === pathToFileURL(resolve(process.argv[1])).href) { if (process.argv.includes('--help') || process.argv.includes('-h')) { From a4a7d21ae9924b81e7e8de09a9a27b4b2fa50acd Mon Sep 17 00:00:00 2001 From: Sourav Das Date: Wed, 25 Nov 2026 11:29:43 +0530 Subject: [PATCH 366/440] Bind saved soundtrack and ordered-reference workflow evidence --- scripts/canonical-image-accounting.test.mjs | 34 ++++++- scripts/live-proof-provenance.mjs | 45 ++++++-- scripts/private-image-edit-evidence.mjs | 33 ++++++ scripts/private-image-edit-evidence.test.mjs | 2 + scripts/prompt-variant-evidence.mjs | 102 ++++++++++++++++++- scripts/prompt-variant-evidence.test.mjs | 19 +++- scripts/release-contract-core.mjs | 12 ++- 7 files changed, 232 insertions(+), 15 deletions(-) diff --git a/scripts/canonical-image-accounting.test.mjs b/scripts/canonical-image-accounting.test.mjs index e345cbd4..a1a3979f 100644 --- a/scripts/canonical-image-accounting.test.mjs +++ b/scripts/canonical-image-accounting.test.mjs @@ -1,7 +1,7 @@ import assert from 'node:assert/strict'; import { createHash } from 'node:crypto'; import { readFileSync } from 'node:fs'; -import { join } from 'node:path'; +import { dirname, join } from 'node:path'; import { fileURLToPath } from 'node:url'; import { before, test } from 'node:test'; import { protocolFactoryArguments } from './canonical-provenance-fixtures.mjs'; @@ -17,6 +17,38 @@ import { exportCanonicalWorkflowGraphs, readCanonicalWorkflowEvidence } from './ const clientRoot = fileURLToPath(new URL('../', import.meta.url)); const backendRoot = fileURLToPath(new URL('../../MoDiff/', import.meta.url)); +const dreamLiteMobileDefaults = process.env.MODIFF_DREAMLITE_MOBILE_DEFAULTS_EVIDENCE; +test( + 'the retained DreamLite Mobile default validates the original blank prompt without claiming full accounting', + { + skip: !dreamLiteMobileDefaults, + }, + async () => { + const workflowId = 'DreamLiteMobilePipeline:text_to_image'; + const { receipt, evidence } = await readCanonicalWorkflowEvidence({ + clientRoot, + backendRoot, + workflowId, + evidencePath: dreamLiteMobileDefaults, + }); + assert.equal(receipt.proofKind, 'real_backend_weights'); + assert.equal(receipt.observationLimits.fullConsumedFieldAccounting, false); + assert.ok(Object.values(receipt.qualificationClaims).every((value) => value === false)); + const read = (ref) => JSON.parse(readFileSync(join(dirname(dreamLiteMobileDefaults), ref.path), 'utf8')); + const run = read(evidence.runDetail); + const output = run.outputs[0]; + const completed = read(evidence.graphCompleted); + const apiGraph = output.apiGraphSnapshot; + const consumed = output.resolvedExecutionInputs; + const expectedApiGraph = { sid: apiGraph.sid, nodes: apiGraph.nodes, paths: apiGraph.paths }; + const runtimeEvidence = { run, output, graphCompleted: completed }; + const args = { expectedApiGraph, apiGraph, consumed, target: receipt, runtimeEvidence }; + assert.equal(canonicalAccountingExecutionPlan(args).retainedGenerator, true); + run.task.runtimeFingerprint.backendSource.fingerprint = 'sha256:backend-source-v1:' + '0'.repeat(64); + assert.throws(() => canonicalAccountingExecutionPlan(args), /Retained image source differs/u); + }, +); + const retainedProfiles = [ { modelType: 'DDPMPipeline', diff --git a/scripts/live-proof-provenance.mjs b/scripts/live-proof-provenance.mjs index 334ee078..9de66766 100644 --- a/scripts/live-proof-provenance.mjs +++ b/scripts/live-proof-provenance.mjs @@ -2212,6 +2212,29 @@ const plainImageInactive = ); const plainImageLegacyNull = ['control_guidance_start', 'conditioning_scale', 'strength', 'control_guidance_end']; const pagScalars = ['pag_scale', 'pag_adaptive_scale']; +const retainedDreamLiteMobileDefaults = { + workflowId: 'DreamLiteMobilePipeline:text_to_image', + modelType: 'DreamLiteMobilePipeline', + modelRepo: 'carlofkl/DreamLite-mobile', + modelRevision: '6695c3f4be230f0493fa5dbf78be3bc4d3bb2ab4', + retainedDefaultPrompt: '', + active: [...plainImageActive.filter((field) => field !== 'guidance_scale'), 'max_sequence_length'], + inactive: [...plainImageInactive, 'guidance_scale', 'negative_prompt'], + legacyNull: [...plainImageLegacyNull, 'guidance_scale', 'negative_prompt'], + savedGenerateBlock: true, + retainedObservationSource: + 'sha256:backend-source-v1:fd16f3acc76e08525b28215b603104d281e8ab26169b03076a112edbb7d100bb', + dtype: 'bfloat16', + offload: 'model_cpu', + deviceMap: 'none', + generation: { + width: 1024, + height: 1024, + num_inference_steps: 4, + max_sequence_length: 200, + seed: 42, + }, +}; export const directImagePromptRoutes = [ { format: 'modiff.private.dreamlite-base-prompt-variant.v1', @@ -3002,7 +3025,12 @@ function accountingDigest(kind, value) { * Native acceptance remains separate; the default factory path stays unchanged. */ export function canonicalAccountingExecutionPlan({ expectedApiGraph, apiGraph, consumed, target, runtimeEvidence }) { - return imageAccountingExecutionPlan({ expectedApiGraph, apiGraph, consumed, target, runtimeEvidence }); + const retainedDefaults = + target.workflowId === retainedDreamLiteMobileDefaults.workflowId ? retainedDreamLiteMobileDefaults : undefined; + return imageAccountingExecutionPlan( + { expectedApiGraph, apiGraph, consumed, target, runtimeEvidence }, + retainedDefaults, + ); } export function directImagePromptAccountingExecutionPlan(args) { @@ -3053,7 +3081,9 @@ function imageAccountingExecutionPlan( ); if (retainedGenerator) { assert.equal( - runtimeEvidence?.sourceFingerprint, + promptVariant.retainedDefaultPrompt === undefined + ? runtimeEvidence?.sourceFingerprint + : runtimeEvidence?.run?.task?.runtimeFingerprint?.backendSource?.fingerprint, promptVariant.retainedObservationSource, 'Retained image source differs from the reviewed adapter.', ); @@ -3462,10 +3492,13 @@ function imageAccountingExecutionPlan( ); } if (promptVariant) { - assert.ok( - typeof value(generate, 'prompt') === 'string' && value(generate, 'prompt').trim(), - 'Direct image accounting needs the authored prompt.', - ); + const prompt = value(generate, 'prompt'); + if (promptVariant.retainedDefaultPrompt !== undefined) { + assert.ok(retainedGenerator, 'The historical default route requires its retained sampler record.'); + assert.equal(prompt, promptVariant.retainedDefaultPrompt, 'The retained default prompt differs.'); + } else { + assert.ok(typeof prompt === 'string' && prompt.trim(), 'Direct image accounting needs the authored prompt.'); + } accountingKeys( generate.row.fields, [ diff --git a/scripts/private-image-edit-evidence.mjs b/scripts/private-image-edit-evidence.mjs index 18f08ffe..190d7739 100644 --- a/scripts/private-image-edit-evidence.mjs +++ b/scripts/private-image-edit-evidence.mjs @@ -88,6 +88,19 @@ const retainedOutpaint = { unobservedControls: ['left', 'right', 'top', 'bottom', 'overlap', 'feather', 'fill_color'], }; const editRoutes = new Map([ + [ + 'DreamLitePipeline:edit_image', + { + ...retainedImageEdit, + format: SAVED_WEBP_EDIT_FORMAT, + modelRepo: 'carlofkl/DreamLite-base', + modelRevision: '751cb8dbb9072a8c8ffd8684e0f254b50f20531b', + loaderClass: 'DreamLitePipeline', + sourceFingerprint: 'sha256:backend-source-v1:6c9e4842b9ebdfd2427b449dd490bef2b22ff3346d7c440bf4a90b2365184385', + originalRegistryHash: '946f902f4cd1c1e65f9b3b0413393278670905fd755e5bd9e5f506e2e72bc5e0', + fullNativeSnapshot: true, + }, + ], [ 'DreamLiteMobilePipeline:edit_image', { @@ -289,6 +302,26 @@ const editRoutes = new Map([ previousExpertFamily: 'ChromaImg2ImgPipeline', }, ], + [ + 'OmniGenPipeline:multi_image_reference_edit', + { + ...retainedImageEdit, + modelRepo: 'Shitao/OmniGen-v1-diffusers', + modelRevision: '016e2f61d12a98303f6bbdf122687694d7984268', + loaderClass: 'OmniGenPipeline', + consumed: [...baseConsumed, 'width', 'height', 'guidance_scale'], + inactiveRecorded: ['negative_prompt', 'max_sequence_length', 'strength'], + orderedReferences: 1, + task: 'multi_image_reference_edit', + retainedFormMode: 'edit_image', + inputImagePromptPrefix: '<|image_1|> <|image_2|> ', + unobservedControls: ['image_guidance_scale'], + sourceFingerprint: 'sha256:backend-source-v1:b29a5b0d317aaa781ae2a5205b46b518eea5a3d68a214eb0968dba4ac0660af7', + originalRegistryHash: 'c4e99d780fef75bce44f4c5e7414d99840a794999355308f69f03176bd573193', + fullNativeSnapshot: true, + previousExpertFamily: 'LongCatImagePipeline', + }, + ], [ 'Kandinsky3Pipeline:edit_image', { diff --git a/scripts/private-image-edit-evidence.test.mjs b/scripts/private-image-edit-evidence.test.mjs index bd9e705e..5c99558b 100644 --- a/scripts/private-image-edit-evidence.test.mjs +++ b/scripts/private-image-edit-evidence.test.mjs @@ -489,6 +489,7 @@ for (const [workflowId, variable, hasMask, unobserved] of [ ['LongCatImageEditPipeline:edit_image', 'MODIFF_SAVED_LONGCAT_EDIT_EVIDENCE', false, []], ['QwenImageModularPipeline:edit_image', 'MODIFF_QWEN_BOOKSHOP_EDIT_EVIDENCE', false, []], ['ChromaImg2ImgPipeline:edit_image', 'MODIFF_CHROMA_LARCH_EDIT_EVIDENCE', false, []], + ['DreamLitePipeline:edit_image', 'MODIFF_SAVED_DREAMLITE_COPPER_EDIT_EVIDENCE', false, []], ['JoyImageEditPipeline:edit_image', 'MODIFF_SAVED_JOY_BASE_EDIT_EVIDENCE', false, []], ['StableDiffusionXLPipeline:edit_image', 'MODIFF_SDXL_LINEN_EDIT_EVIDENCE', false, []], ['FluxDevPipeline:edit_image', 'MODIFF_SAVED_FLUX_DEV_TEAPOT_EVIDENCE', false, []], @@ -730,6 +731,7 @@ for (const [model, task, variable] of [ ['JoyImageEditPlusPipeline', 'edit_image', 'MODIFF_SAVED_JOY_PLUS_EDIT_EVIDENCE'], ['JoyImageEditPlusPipeline', 'multi_image_reference_edit', 'MODIFF_SAVED_JOY_PLUS_REFERENCES_EVIDENCE'], ['QwenImageEditPlusPipeline', 'multi_image_reference_edit', 'MODIFF_SAVED_QWEN_TERRACOTTA_EVIDENCE'], + ['OmniGenPipeline', 'multi_image_reference_edit', 'MODIFF_SAVED_OMNIGEN_ORDERED_REFERENCES_EVIDENCE'], ]) { const evidencePath = process.env[variable]; test(`${model} verifies exact references in ${task}`, { skip: !evidencePath }, async () => { diff --git a/scripts/prompt-variant-evidence.mjs b/scripts/prompt-variant-evidence.mjs index 21db6015..73786859 100644 --- a/scripts/prompt-variant-evidence.mjs +++ b/scripts/prompt-variant-evidence.mjs @@ -247,6 +247,45 @@ const wanA14BOpeningRoute = { chain: [['source', 'modules.Image', 'Load', ''], ...wanA14BRoute.chain], }; +const subwaySoundtrack = { + repoId: 'ACE-Step/acestep-v15-xl-turbo-diffusers', + revision: '200ba991ae448051e14b0183157e35c2d27c9fb0', + modelType: 'AceStepPipeline', +}; +const wanSubwayRoute = { + ...wanA14BRoute, + format: 'modiff.private.wan-subway-soundtrack-variant.v1', + workflowId: 'WanTI2VPipeline:text_to_video', + modelType: 'WanTI2VPipeline', + modelRepo: 'Wan-AI/Wan2.2-TI2V-5B-Diffusers', + modelRevision: 'b8fff7315c768468a5333511427288870b2e9635', + sourceFingerprint: 'sha256:backend-source-v1:b29a5b0d317aaa781ae2a5205b46b518eea5a3d68a214eb0968dba4ac0660af7', + retainedRegistryHash: '1c3c2335c07fde65bfddcdea34b2c9a51b91648c9afb04e0266e3fcbe1102b49', + baselinePromptHash: '893f3cf9925d3ddbd7c8ff60a052c5f4378ccb7731f907071b5936c19de33e22', + bindSeed: false, + soundtrack: subwaySoundtrack, + loaderContract: ['modules.DiffusersAudio.LoadPipeline', 'modules.DiffusersVideo.LoadPipeline'], + chain: [ + ['audioQuantization', ...wanA14BRoute.chain[0].slice(1)], + ['audioRecipe', ...wanA14BRoute.chain[1].slice(1)], + [ + 'audioLoader', + 'modules.DiffusersAudio', + 'LoadPipeline', + 'auto_offload device dtype enable_vae_tiling model_id offload_mode pipeline_class revision', + ], + [ + 'audioGenerator', + 'modules.DiffusersAudio', + 'Generate', + 'prompt lyrics audio_duration vocal_language num_inference_steps guidance_scale shift task_type keyscale timesignature bpm seed sample_rate', + ], + ['audioFit', 'modules.Audio', 'FitDuration', ''], + ...wanA14BRoute.chain.slice(0, -1), + ['preview', 'modules.Video', 'ExportWithAudio', 'fps'], + ], +}; + const ltxScheduledRoute = { ...wanA14BRoute, format: 'modiff.private.ltx-long-scheduled-image-variant.v1', @@ -545,6 +584,7 @@ const promptModelSet = (profile) => [ ...(profile.motionAdapter ? [profile.motionAdapter] : []), ...(profile.controlAdapter ? [profile.controlAdapter] : []), + ...(profile.soundtrack ? [{ repoId: profile.soundtrack.repoId, revision: profile.soundtrack.revision }] : []), { repoId: profile.modelRepo, revision: profile.modelRevision }, ...(profile.videoUpscaler ? [{ repoId: profile.videoUpscaler.file.value, revision: profile.videoUpscaler.file.revision }] @@ -752,6 +792,18 @@ function validateConsumedPromptVariant(profile, bound, output, suppliedImage) { // The connected execution recipe wins over this retained loader fallback. assert.equal(bound.loader.node.params.enable_vae_tiling.value, true); same(consumed.ambiguousFields, ['vaeTiling']); + } else if (profile.soundtrack) { + same(consumed.ambiguousFields, [ + 'attentionBackend', + 'guidanceScale', + 'modelType', + 'outputType', + 'prompt', + 'repo', + 'revision', + 'seed', + 'steps', + ]); } else if (profile.retainedOffloadFallback) { assert.equal(bound.loader.node.params.offload_mode.value, profile.retainedOffloadFallback); assert.equal(bound.recipe.node.params.offload_mode.value, 'model_cpu'); @@ -819,6 +871,9 @@ function validateConsumedPromptVariant(profile, bound, output, suppliedImage) { if (profile.executedTask && id === bound.generator.id) { expected.executed_task = { value: profile.executedTask, source: 'literal' }; } + if (profile.soundtrack && id === bound.audioGenerator.id) { + expected.output_type = { value: 'pt', source: 'literal' }; + } if (profile === audioRoute && id === bound.generator.id) { assert.equal(node.params.negative_prompt.value, ''); assert.equal(node.params.stable_audio_steps.value, 16); @@ -850,6 +905,27 @@ function validateConsumedPromptVariant(profile, bound, output, suppliedImage) { function validateNativePromptRuntime(profile, bound, task, hints, graphCompleted, observations) { const controlledArtifacts = []; + if (profile.soundtrack) { + const { repoId, revision, modelType } = profile.soundtrack; + for (const [loader, repository, pin, pipelineClass] of [ + [bound.audioLoader, repoId, revision, modelType], + [bound.loader, profile.modelRepo, profile.modelRevision, profile.modelType], + ]) { + const { module, action, params } = loader.node; + same(params.model_id.value, { source: 'hub', value: repository }); + assert.equal(params.revision.value, pin); + assert.equal(params.pipeline_class.value, pipelineClass); + const payload = { + schemaVersion: 1, + kind: 'diffusers_pipeline', + module, + action, + artifact: { source: 'hub', repository, revision: pin }, + pipelineClass, + }; + controlledArtifacts.push({ ...payload, descriptorSha256: digest(stableStringify(payload)) }); + } + } if (profile.videoUpscaler) { const { file, repoId: repository } = profile.videoUpscaler; const { module, action, params } = bound.upscaler.node; @@ -1171,7 +1247,7 @@ export function validatePromptVariantVideo(decoded, item, bound) { return validateNativeVideoDelivery(decoded, item, { width: frameSize, height: frameSize, fps, frames: 20 }); } -export function validateNativeVideoDelivery(decoded, item, { width, height, fps, frames }) { +export function validateNativeVideoDelivery(decoded, item, { width, height, fps, frames, soundtrack = false }) { const native = item.mediaMetadata; assert.equal(native.source, 'encoded-file'); assert.equal(native.width, width); @@ -1186,8 +1262,16 @@ export function validateNativeVideoDelivery(decoded, item, { width, height, fps, ); assert.ok(Math.abs(decoded.durationSeconds - native.duration_seconds) <= 0.02); assert.equal(decoded.codecName, 'h264'); - assert.equal(decoded.hasAudio, false); + assert.equal(decoded.hasAudio, soundtrack); assert.equal(decoded.uniqueFrameRatio, 1); + const audio = decoded.embeddedAudio; + if (soundtrack) { + assert.equal(audio?.sourceSampleRate, 48000); + assert.equal(audio.channels, 2); + assert.equal(audio.clippedSampleRatio, 0); + assert.ok(audio.peakAmplitude > 0.05 && audio.silenceRatio < 0.75); + assert.match(audio.hash, /^sha256:decoded-audio-pcm-s16le-48000-stereo:[a-f0-9]{64}$/u); + } return { kind: 'video', width: decoded.width, @@ -1196,6 +1280,7 @@ export function validateNativeVideoDelivery(decoded, item, { width, height, fps, frames: decoded.frames, durationSeconds: decoded.durationSeconds, hash: decoded.hash, + ...(soundtrack ? { audio } : {}), }; } @@ -1215,6 +1300,7 @@ export async function readPromptVariantEvidence({ clientRoot, manifest, graph, a audioLdmRoute, wanA14BRoute, wanA14BOpeningRoute, + wanSubwayRoute, ltxScheduledRoute, wanAnimateRoute, wanReplaceRoute, @@ -1354,7 +1440,7 @@ export async function readPromptVariantEvidence({ clientRoot, manifest, graph, a graphAcknowledgment: json(evidence.graphAcknowledgment), } : {}), - ...(imageRoute || generatedVideo || profile === audioLdmRoute + ...(imageRoute || (generatedVideo && !profile.soundtrack) || profile === audioLdmRoute ? { validatePreparation: (preparation) => validateImagePromptPreparation(preparation, profile) } : {}), ...(profile === videoRoute || profile === audioRoute @@ -1473,6 +1559,7 @@ export async function readPromptVariantEvidence({ clientRoot, manifest, graph, a } if (!inputBinding) inputBinding = guideBinding; const nodeBytes = read(evidence.nodes).bytes; + if (profile.retainedRegistryHash) assert.equal(digest(nodeBytes), profile.retainedRegistryHash); const nodes = JSON.parse(nodeBytes); if (profile.replayedRuntimeContract) { same(json(evidence.registryReplay), { @@ -1514,7 +1601,8 @@ export async function readPromptVariantEvidence({ clientRoot, manifest, graph, a task, ) : measurement.peakAllocatedBytes; - const media = read(outputRef.file, 2 * 1024 * 1024); + const mediaLimit = (profile.soundtrack ? 64 : 2) * 1024 * 1024; + const media = read(outputRef.file, mediaLimit); const item = validateNativeVariantOutput({ output, outputRef, @@ -1545,6 +1633,7 @@ export async function readPromptVariantEvidence({ clientRoot, manifest, graph, a height: height.value * scale, frames: num_frames.value, fps: bound.preview.node.params.fps.value, + soundtrack: Boolean(profile.soundtrack), }); } else decodedOutput = validatePromptVariantVideo(decoded, item, bound); } else if (generatedAudio) { @@ -1577,7 +1666,9 @@ export async function readPromptVariantEvidence({ clientRoot, manifest, graph, a } decodedOutput = { kind: 'image', hash: decoded.hash, width: decoded.width, height: decoded.height }; } - for (const ref of retainedFiles) readCanonicalEvidenceFile(root, ref, 16 * 1024 * 1024); + for (const ref of retainedFiles) { + readCanonicalEvidenceFile(root, ref, ref.path === outputRef.file.path ? mediaLimit : 16 * 1024 * 1024); + } assert.ok(readFileSync(evidencePath).equals(descriptorBytes), 'Prompt variant descriptor changed during validation.'); const receipt = { schemaVersion: 1, @@ -1614,6 +1705,7 @@ export async function readPromptVariantEvidence({ clientRoot, manifest, graph, a observationLimits: { fullConsumedFieldAccounting: Boolean(accounting && !accounting.retainedGenerator), physicalPlatformQualification: false, + ...(profile.soundtrack ? { configuredAudioFitObserved: false, audiovisualSynchronizationReviewed: false } : {}), ...(accounting?.retainedGenerator && imageRoute.typedOnly?.length ? { configuredUnobservedControls: [...imageRoute.typedOnly] } : {}), diff --git a/scripts/prompt-variant-evidence.test.mjs b/scripts/prompt-variant-evidence.test.mjs index 45bdfd1d..5b992d0c 100644 --- a/scripts/prompt-variant-evidence.test.mjs +++ b/scripts/prompt-variant-evidence.test.mjs @@ -385,6 +385,7 @@ for (const [workflowId, variable, kind, proofKind = 'real_backend_prompt_bound_m ['HuggingFaceTextGenerationModel:text_generation', 'MODIFF_SMOLLM2_PROMPT_EVIDENCE', 'json'], ['ShapEPipeline:text_to_3d', 'MODIFF_SHAPE_PROMPT_EVIDENCE', 'video'], ['Wan22Pipeline:text_to_video', 'MODIFF_WAN_A14B_VIDEO_PROMPT_EVIDENCE', 'video'], + ['WanTI2VPipeline:text_to_video', 'MODIFF_WAN_SUBWAY_SOUNDTRACK_EVIDENCE', 'video'], [ 'WanImageToVideoPipeline:image_to_video', 'MODIFF_WAN_A14B_OPENING_IMAGE_EVIDENCE', @@ -506,7 +507,11 @@ for (const [workflowId, variable, kind, proofKind = 'real_backend_prompt_bound_m const refs = original.retainedFiles; for (const ref of refs) { assert.match(ref.path, /^[a-z0-9.-]+$/iu); - const archived = readCanonicalEvidenceFile(dirname(evidencePath), ref); + const archiveLimit = + workflowId === 'WanTI2VPipeline:text_to_video' && ref.path === original.evidence.outputs[0].file.path + ? 64 * 1024 * 1024 + : undefined; + const archived = readCanonicalEvidenceFile(dirname(evidencePath), ref, archiveLimit); writeFileSync(join(temp, ref.path), archived.bytes); } const changedPath = join(temp, 'evidence.json'); @@ -622,6 +627,18 @@ for (const [workflowId, variable, kind, proofKind = 'real_backend_prompt_bound_m assert.equal(original.receipt.inputBinding.decodedVideo.frames, 16); } } + if (workflowId === 'WanTI2VPipeline:text_to_video') { + assert.equal(original.receipt.modelSet.length, 2); + assert.equal(original.receipt.decodedOutput.audio.sourceSampleRate, 48000); + assert.equal(original.receipt.decodedOutput.audio.channels, 2); + assert.equal(original.receipt.observationLimits.audiovisualSynchronizationReviewed, false); + const [videoIdentity] = evidence.modelObservations; + writeFileSync(changedPath, JSON.stringify({ ...evidence, modelObservations: [videoIdentity, videoIdentity] })); + await assert.rejects( + () => readCanonicalWorkflowEvidence({ ...args, evidencePath: changedPath }), + /Expected a single installed identity/u, + ); + } const route = directImagePromptRoutes.find((row) => row.workflowId === workflowId); const cogVideo = workflowId === 'CogVideoXPipeline:text_to_video'; const audioLdm = workflowId === 'AudioLDM2Pipeline:text_to_audio'; diff --git a/scripts/release-contract-core.mjs b/scripts/release-contract-core.mjs index 55ac0b90..b095ef0b 100644 --- a/scripts/release-contract-core.mjs +++ b/scripts/release-contract-core.mjs @@ -216,10 +216,16 @@ const immutableRevision = (value) => typeof value === 'string' && /^[a-f0-9]{40, export { canonicalAccountingExecutionPlan } from './live-proof-provenance.mjs'; +const reviewedReplacementSources = new Map([ + ['WanImageToVideoPipeline:image_to_video', 'wan_22_i2v_seed_vault'], + ['WanTI2VPipeline:text_to_video', 'wan_22_ti2v_5b_seed_vault'], +]); + export function isReviewedReplacementSource(manifest, authoring) { + const reviewedSource = reviewedReplacementSources.get(manifest.id); return ( - manifest.id === 'WanImageToVideoPipeline:image_to_video' && - manifest.sourceTemplateId === 'wan_22_i2v_seed_vault' && + reviewedSource !== undefined && + manifest.sourceTemplateId === reviewedSource && authoring?.canonicalWorkflowId === manifest.id && authoring.replacementSourceTemplateId === manifest.sourceTemplateId ); @@ -578,6 +584,7 @@ export function validateCanonicalWorkflowEvidence({ outputHash: provenance.output.collectionHash, executionDurationSeconds: provenance.execution.elapsedSeconds, peakMemoryBytes: provenance.execution.peakMemoryBytes, + ...(plan.retainedGenerator ? { observationLimits: { fullConsumedFieldAccounting: false } } : {}), qualificationClaims: { publicTemplate: false, qualityApproved: false, @@ -924,6 +931,7 @@ export async function readCanonicalWorkflowEvidence({ clientRoot, backendRoot, w 'modiff.private.audioldm2-prompt-variant.v1', 'modiff.private.wan-a14b-video-prompt-variant.v1', 'modiff.private.wan-a14b-opening-image-variant.v1', + 'modiff.private.wan-subway-soundtrack-variant.v1', 'modiff.private.ltx-long-scheduled-image-variant.v1', 'modiff.private.wan-character-animate-inputs.v1', 'modiff.private.wan-character-replace-inputs.v1', From 9c208929f2350a8ec4ebe1a0f1ed1c3973a47243 Mon Sep 17 00:00:00 2001 From: Sourav Das Date: Wed, 25 Nov 2026 11:35:09 +0530 Subject: [PATCH 367/440] Register ten approved saved image workflows --- .../retained-gallery-approved-batch.v1.json | 140 + ...etained-gallery-authoring-archives.v1.json | 50 + config/template-asset-rights.v1.json | 2680 ++++++++++++++--- config/template-assets.v1.json | 557 +++- public/template-gallery/manifest.json | 317 ++ src/studio/retainedGalleryApprovedBatch.ts | 919 ++++++ src/studio/templateAssetSource.json | 6 +- src/studio/types.ts | 16 +- 8 files changed, 4268 insertions(+), 417 deletions(-) diff --git a/config/retained-gallery-approved-batch.v1.json b/config/retained-gallery-approved-batch.v1.json index 36918e4b..ea9c8e33 100644 --- a/config/retained-gallery-approved-batch.v1.json +++ b/config/retained-gallery-approved-batch.v1.json @@ -318,5 +318,145 @@ "width": 1024, "height": 1024 } + }, + "chroma_terracotta_and_blue": { + "associationSha256": "10fc52e4c1d91ff42b95bb15f906811b389358a1339a5f3dda2d5aac027ef623", + "backendSourceFingerprint": "sha256:backend-source-v1:b29a5b0d317aaa781ae2a5205b46b518eea5a3d68a214eb0968dba4ac0660af7", + "backendContractFingerprint": "sha256:backend-contract-v1:300f2fb801e65ef8a0355d217f3f89e59d11e38f976af5a86ba41212d30216fd", + "templateRevisionHash": "5221fc5d744cbdcf1aa29d1fa9b27cddc0fcbd75983c24061e6218d41621617d", + "capturedAt": "2026-11-24T22:50:29.995Z", + "outputExtension": "webp", + "outputSize": { + "width": 1024, + "height": 1024 + } + }, + "lumina2_larch_on_glacial_pond": { + "associationSha256": "044a0926d4d470bf68094ef94e300daae045c80682fd038cb355d53da8579a61", + "backendSourceFingerprint": "sha256:backend-source-v1:057b165c6ef6225461649a47077562dffad098a2d37d639a13bf0e73088d79ab", + "backendContractFingerprint": "sha256:backend-contract-v1:300f2fb801e65ef8a0355d217f3f89e59d11e38f976af5a86ba41212d30216fd", + "templateRevisionHash": "c1fecc495b278628b9539fb84079b73b70db420165a7e151def065731920853e", + "capturedAt": "2026-11-23T14:40:20.880Z", + "outputExtension": "webp", + "outputSize": { + "width": 1024, + "height": 1024 + } + }, + "hunyuan_dit_coastal_lighthouse": { + "associationSha256": "0a517d585070188fbf5a3ddfb83e18bf1090b6724d5bcad57687925f5e365dc6", + "backendSourceFingerprint": "sha256:backend-source-v1:371fd754663a95b1b06900df9a838042048466464b4bd5cfa7033c1b6eebe0e3", + "backendContractFingerprint": "sha256:backend-contract-v1:300f2fb801e65ef8a0355d217f3f89e59d11e38f976af5a86ba41212d30216fd", + "templateRevisionHash": "59e80838a60338b27351f10a7cc8478dbe1ae81e04d5d7718ee37aa556585788", + "capturedAt": "2026-11-23T15:09:01.447Z", + "outputExtension": "webp", + "outputSize": { + "width": 1024, + "height": 1024 + } + }, + "omnigen_tulips_after_rain": { + "associationSha256": "10f3e3764210089f2a3f43281d45fb24e965f8b035e8dc993d720ceceff9e9a6", + "backendSourceFingerprint": "sha256:backend-source-v1:371fd754663a95b1b06900df9a838042048466464b4bd5cfa7033c1b6eebe0e3", + "backendContractFingerprint": "sha256:backend-contract-v1:300f2fb801e65ef8a0355d217f3f89e59d11e38f976af5a86ba41212d30216fd", + "templateRevisionHash": "e3ceb2dc096775601a6e65b7ab61f5ccc64658d2a69586f3c6a13f2efe1a973c", + "capturedAt": "2026-11-23T15:17:38.630Z", + "outputExtension": "webp", + "outputSize": { + "width": 1024, + "height": 1024 + } + }, + "hunyuan_pag_burgundy_knight": { + "associationSha256": "44e66b22cd75a7de53b8f673fc9c91020d54828113d6ccf926080e3ac0ca2309", + "backendSourceFingerprint": "sha256:backend-source-v1:371fd754663a95b1b06900df9a838042048466464b4bd5cfa7033c1b6eebe0e3", + "backendContractFingerprint": "sha256:backend-contract-v1:300f2fb801e65ef8a0355d217f3f89e59d11e38f976af5a86ba41212d30216fd", + "templateRevisionHash": "ff4d1b75e172f8fdb8a45199626ed40a07fe634669e03d1591091a10c176edfe", + "capturedAt": "2026-11-23T15:11:08.624Z", + "outputExtension": "webp", + "outputSize": { + "width": 1024, + "height": 1024 + } + }, + "chroma_restored_cobalt_backdrop": { + "associationSha256": "c4f821d7b34dfea02133ac9f9239b52c403d3a03422c82b0b1795a4fe8e92b9d", + "backendSourceFingerprint": "sha256:backend-source-v1:43f2ed10792fc6167b963166287cf7d5a0429afa26029e6455b0418e2123be86", + "backendContractFingerprint": "sha256:backend-contract-v1:e7a7aa3acbdedd686fa7e7a9d4bcc39c1709ba1fec38f047d63ff83558a85c18", + "templateRevisionHash": "d3c99f24317aaf93b0f25f2681bdc56f456d69554e47a522c0c04487602149f2", + "capturedAt": "2026-11-23T22:32:10.177Z", + "outputExtension": "webp", + "outputSize": { + "width": 1024, + "height": 1024 + }, + "inputSize": { + "width": 1024, + "height": 1024 + } + }, + "sdxl_pix2pix_pale_amber_glass": { + "associationSha256": "e0d2d7d05a9109a8ae527c819ebaffca93dec272c54efcfb0b05e41a144d7bfb", + "backendSourceFingerprint": "sha256:backend-source-v1:55da4a68212923ee8a67e70754f46193288e210bce08ab4ae8c06834a7a76995", + "backendContractFingerprint": "sha256:backend-contract-v1:bd364fcd29020d51bb61f5f9bf320cf0bf562e718c645c21ffac8ed5a47b740d", + "templateRevisionHash": "897fb59d568ceba3ef8d85cf1141f79002522b111dbc6ffa67ad51a9acf88495", + "capturedAt": "2026-11-23T16:05:26.964Z", + "outputExtension": "webp", + "outputSize": { + "width": 768, + "height": 768 + }, + "inputSize": { + "width": 768, + "height": 768 + } + }, + "sd15_pag_mountain_lake_watercolor": { + "associationSha256": "fbe3707bb87008593c1bc4ec367915fa2d558aa9ba9581f94dca839dabe5117b", + "backendSourceFingerprint": "sha256:backend-source-v1:3b073e3f6f5e9489e06116f277ee4a9e878b8f0c6258efc93c60be9a04513cb5", + "backendContractFingerprint": "sha256:backend-contract-v1:bd364fcd29020d51bb61f5f9bf320cf0bf562e718c645c21ffac8ed5a47b740d", + "templateRevisionHash": "6de709bbcfb3ed6e061541584be28f5b7ed05e1170dcdaa69e2deb4fee822154", + "capturedAt": "2026-11-23T20:28:31.760Z", + "outputExtension": "webp", + "outputSize": { + "width": 1024, + "height": 1024 + }, + "inputSize": { + "width": 1024, + "height": 1024 + } + }, + "sd15_pag_cobalt_studio_repair": { + "associationSha256": "395e41a6da16e9f1a31323b91390e4578428f3d0ea12054b59378709d32a9c52", + "backendSourceFingerprint": "sha256:backend-source-v1:1f2f7e00ce4a500ba52d5b729f43d4321af6f931125a3f266f307cf80038c12e", + "backendContractFingerprint": "sha256:backend-contract-v1:61201b43ea68d3fd347fbc374e292b5839be28f908b473bcb69f5ec1f8b87736", + "templateRevisionHash": "8373d87ab42e130142a163e3c60733f3f2511b7a77ffad1d9129607bcfba2562", + "capturedAt": "2026-11-23T14:32:05.292Z", + "outputExtension": "webp", + "outputSize": { + "width": 512, + "height": 512 + }, + "inputSize": { + "width": 512, + "height": 512 + } + }, + "zimage_golden_amber_glass": { + "associationSha256": "238b088d3b9aaad1955b07a3291cf8875a928136444b9642114527b3d803bc38", + "backendSourceFingerprint": "sha256:backend-source-v1:e3aea8f8d102572ad10fdd0700f0c42d92061e864ede89777efcd6a3269770a8", + "backendContractFingerprint": "sha256:backend-contract-v1:315617df789a8a5f57426692318e197c13786098718305edd1927471b5b9c194", + "templateRevisionHash": "303a0b1b64a2e1234aeca85941a07eea2157707c8436442a5cf00aedd68c6d97", + "capturedAt": "2026-11-23T17:46:24.489Z", + "outputExtension": "webp", + "outputSize": { + "width": 640, + "height": 640 + }, + "inputSize": { + "width": 768, + "height": 768 + } } } diff --git a/config/retained-gallery-authoring-archives.v1.json b/config/retained-gallery-authoring-archives.v1.json index 99d4070e..4131a12c 100644 --- a/config/retained-gallery-authoring-archives.v1.json +++ b/config/retained-gallery-authoring-archives.v1.json @@ -4,6 +4,16 @@ "bytes": 4108, "sha256": "945515d6dee658ed3cf4503b674b33d73149a091f98ecb438a01970c5c08d820" }, + "ChromaInpaintPipeline:inpaint": { + "descriptorSha256": "a85451bc142a3f5ef44cc5e8cdb1fcc0f000872241efe5bda751638d36215919", + "bytes": 5060, + "sha256": "466c485a4ad317122c23b4da06c89566d8a4015fd8d6dad379eab318b98219f0" + }, + "ChromaPipeline:text_to_image": { + "descriptorSha256": "bad53850d48ffdaffa0896ec019e295c349577ee86d169e1ea1da8752324a215", + "bytes": 4049, + "sha256": "7fd3187b78e4f1c730522dd5743e91503e17bd62e03bb133b76b4d636213ac3f" + }, "CogView3PlusPipeline:text_to_image": { "descriptorSha256": "19c1e125e259b8b0e22a5bf5c03ab7c105a8302fc69b7e63c61796d7b7496744", "bytes": 4135, @@ -54,6 +64,16 @@ "bytes": 3869, "sha256": "9fa0b0086341bdb652c97b70521b5647977e1922b7bc0858c7b803e90ea8c4a7" }, + "HunyuanDiTPAGPipeline:text_to_image": { + "descriptorSha256": "aa6b64f4a942adbb11c83cbaba89940fd03ed7dbf83175e8e1d17d32291454d3", + "bytes": 4127, + "sha256": "a16cf339667b330edaa3aa5931d9bbd1937971e0d2a1ca3de5f16ad942ed06ea" + }, + "HunyuanDiTPipeline:text_to_image": { + "descriptorSha256": "9e8d30a1d20d721f8aeab6b9172f7f50403b1e8e855d83af17e6430fe97d9650", + "bytes": 4161, + "sha256": "5a9d07fe3092ac35356d661488b4169d98799f55c17a69753572480375557629" + }, "Kandinsky3Pipeline:text_to_image": { "descriptorSha256": "41b3b13c0f66711ffa3ac065f7a990bee824fc52db69940b8f75e0f7f79bdd38", "bytes": 4089, @@ -64,6 +84,11 @@ "bytes": 4229, "sha256": "a5cb8dddeaf3f82f84025ceeded8a59c186a33e20f8cff733cbd32624e9e3a59" }, + "Lumina2Pipeline:text_to_image": { + "descriptorSha256": "68ec9070dfda6f4bcf5990d404e3032b9c9d0add8965753e0a162bfdd67c09f7", + "bytes": 4071, + "sha256": "68fae68c75bf2615c9a76150f0c1a5869f021377de096191021f426948a67d4e" + }, "LuminaPipeline:text_to_image": { "descriptorSha256": "cbb5826ba9e44f9608ef88d6c52757cbd040c9bcb611f88e5892a2e93c79c8d3", "bytes": 4167, @@ -74,6 +99,11 @@ "bytes": 4121, "sha256": "9dc242dd86b1a286c5822328a3c0a05dd0f077fdefc17990a5cf086de9e53f3d" }, + "OmniGenPipeline:text_to_image": { + "descriptorSha256": "c78e90591a491385de1f96d89b6aed18dee1367eae36bfcb0b27ee3cecaf8deb", + "bytes": 3854, + "sha256": "4278dc11e860850b1c03d37c253c0d65e9be2bf71ba90c25e974fef1f63a9b4a" + }, "OvisImagePipeline:text_to_image": { "descriptorSha256": "37580a349097d0a2e201a6daa48f3cc541c62260306e4153c4995e2d0615a72c", "bytes": 4103, @@ -94,6 +124,16 @@ "bytes": 4134, "sha256": "6c40aefc3fd65ed6bf87626873bb0377e7fba8ff4fbdbc5c0d3e4e0e3531968a" }, + "StableDiffusionPAGPipeline:edit_image": { + "descriptorSha256": "b4929658c32ef7bad47e50f647abec0e6159c54374a1baea1e05d3f93b66effb", + "bytes": 4590, + "sha256": "4d640d981f4a674d4ca388956a7f89044148f071a8c65e4b280e4ccb0a45f73d" + }, + "StableDiffusionPAGPipeline:inpaint": { + "descriptorSha256": "101e965b702766dd0949054f6189d20ca2895fdd05559626eb270f8e12e65069", + "bytes": 5258, + "sha256": "93cb60c1cc69b6e6632e771f39e01750f60637ba8eeaf3b6c710cde3384ab522" + }, "StableDiffusionPAGPipeline:text_to_image": { "descriptorSha256": "ad23b58153c3301fd0125a0a66e9e110a61a16e0c8833563cd3ca51109fe5056", "bytes": 4433, @@ -114,6 +154,11 @@ "bytes": 4194, "sha256": "642ccf45dd15946ead72c9666b394a9932d92d0dca64f13dfae0284edc55b9c5" }, + "StableDiffusionXLInstructPix2PixPipeline:edit_image": { + "descriptorSha256": "4655ea8f1f9b86921f07658644599ebe08034ffbe93e081eb19fd08faa214b61", + "bytes": 4878, + "sha256": "9ac80428595d712acd5eff6fac00c4958f5901ce54d067857616736e8cee29bd" + }, "StableDiffusionXLPAGPipeline:text_to_image": { "descriptorSha256": "e5bcc2b64bfddcadc334c20f0c125fdcae68760cde1ff60ec10d1a22ce81a997", "bytes": 4412, @@ -133,5 +178,10 @@ "descriptorSha256": "c530e10728c8c3871c1f6d6e58589996b8e926729d7c57e43fa36d020660e3dd", "bytes": 4169, "sha256": "b5dfc591a73c4d04d8f540c4617c0f7820a4d8553a31ef9dd030837fb72325b2" + }, + "ZImageModularPipeline:edit_image": { + "descriptorSha256": "449bc094096e644f4070a681e382650d133c0854ec6770cfbb736f0299e04179", + "bytes": 4729, + "sha256": "e523fa1d31a2bb0c2ccbd2525ac0cce68fe57adc77332446239ddf62683f8a05" } } diff --git a/config/template-asset-rights.v1.json b/config/template-asset-rights.v1.json index 2b241684..9995035d 100644 --- a/config/template-asset-rights.v1.json +++ b/config/template-asset-rights.v1.json @@ -1,6 +1,6 @@ { "schemaVersion": 1, - "assetSetId": "sha256:canonical-json:690ea1522e3b4ffd3d72bc5911f02763c842fa3d23428ef123db0dbe0dca3a91", + "assetSetId": "sha256:canonical-json:a5449a1ff8625c700e811308f7c16caf8888d379889895381ee4934d485c2cd6", "records": [ { "path": "template-gallery/ace_step_audio_continuation.wav", @@ -17,7 +17,9 @@ ], "aiGenerated": true, "humanLikenessConsent": "synthetic", - "marks": ["MoDiff project name in the project-authored lyrics"], + "marks": [ + "MoDiff project name in the project-authored lyrics" + ], "requiredAttribution": [], "assetLicense": "Apache-2.0", "reviewedBy": "SOURAV DAS", @@ -137,7 +139,9 @@ ], "aiGenerated": true, "humanLikenessConsent": "synthetic", - "marks": ["Singer-style and training-song rights require upstream confirmation"], + "marks": [ + "Singer-style and training-song rights require upstream confirmation" + ], "requiredAttribution": [], "assetLicense": "upstream-terms-only", "reviewedBy": null, @@ -160,7 +164,9 @@ ], "aiGenerated": true, "humanLikenessConsent": "synthetic", - "marks": ["Singer-style and training-song rights require upstream confirmation"], + "marks": [ + "Singer-style and training-song rights require upstream confirmation" + ], "requiredAttribution": [], "assetLicense": "upstream-terms-only", "reviewedBy": null, @@ -358,7 +364,9 @@ ], "aiGenerated": true, "humanLikenessConsent": "synthetic", - "marks": ["MoDiff project name in the project-authored lyrics"], + "marks": [ + "MoDiff project name in the project-authored lyrics" + ], "requiredAttribution": [], "assetLicense": "Apache-2.0", "reviewedBy": "SOURAV DAS", @@ -474,6 +482,60 @@ "acceptedOutputSHA256": "c7da13667186b8303eab34103e3e2394e590166cc14a0f5c2c769af8942f035d", "humanApprovalPacketSHA256": "95893cb17e10b15ae6b23d8b31b57b0e14b9af96f822d75edbc6b68971afb11d" }, + { + "path": "template-gallery/chroma_restored_cobalt_backdrop.webp", + "sha256": "sha256:bytes:66e00fa95a61ab9d0f77bce099476dd8ffc569697fe59fb509e8c589402dad9b", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Exact approved file captured from a saved MoDiff workflow", + "sourceUrl": "https://huggingface.co/lodestones/Chroma1-HD/tree/0e0c60ece1e82b17cb7f77342d765ba5024c40c0", + "sourceRevision": "lodestones/Chroma1-HD@0e0c60ece1e82b17cb7f77342d765ba5024c40c0", + "sourceLicense": "Maintainer-authorized file with publisher terms retained", + "modelTerms": [ + "Publisher model terms at https://huggingface.co/lodestones/Chroma1-HD/tree/0e0c60ece1e82b17cb7f77342d765ba5024c40c0" + ], + "aiGenerated": true, + "humanLikenessConsent": "synthetic", + "marks": [], + "requiredAttribution": [ + "lodestones/Chroma1-HD@0e0c60ece1e82b17cb7f77342d765ba5024c40c0 https://huggingface.co/lodestones/Chroma1-HD/tree/0e0c60ece1e82b17cb7f77342d765ba5024c40c0" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "c2df9edb92f8ff905b6c9a138a285e67c621f3d2dfa3232f859aaf963b725aca", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "chroma_restored_cobalt_backdrop" + }, + { + "path": "template-gallery/chroma_terracotta_and_blue.webp", + "sha256": "sha256:bytes:e8dc514cf845631e498cbcb1ed841d25fe5e62ede712e2e216faba3ec9155df3", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Exact approved file captured from a saved MoDiff workflow", + "sourceUrl": "https://huggingface.co/lodestones/Chroma1-HD/tree/0e0c60ece1e82b17cb7f77342d765ba5024c40c0", + "sourceRevision": "lodestones/Chroma1-HD@0e0c60ece1e82b17cb7f77342d765ba5024c40c0", + "sourceLicense": "Maintainer-authorized file with publisher terms retained", + "modelTerms": [ + "https://huggingface.co/lodestones/Chroma1-HD/blob/0e0c60ece1e82b17cb7f77342d765ba5024c40c0/README.md" + ], + "aiGenerated": true, + "humanLikenessConsent": "synthetic", + "marks": [], + "requiredAttribution": [ + "lodestones/Chroma1-HD@0e0c60ece1e82b17cb7f77342d765ba5024c40c0 https://huggingface.co/lodestones/Chroma1-HD/tree/0e0c60ece1e82b17cb7f77342d765ba5024c40c0" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "c2df9edb92f8ff905b6c9a138a285e67c621f3d2dfa3232f859aaf963b725aca", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "chroma_terracotta_and_blue" + }, { "path": "template-gallery/cobalt_jug_and_lemons.webp", "sha256": "sha256:bytes:a8f9d05f34a6bbf631bccbb3eadf1d18824a772f5f1e038248db7bfdc8c0dbba", @@ -729,7 +791,9 @@ "aiGenerated": true, "humanLikenessConsent": "synthetic", "marks": [], - "requiredAttribution": ["sourav-das"], + "requiredAttribution": [ + "sourav-das" + ], "assetLicense": "CC-BY-4.0", "reviewedBy": "sourav-das", "reviewedAt": "2026-10-31", @@ -754,7 +818,9 @@ "aiGenerated": true, "humanLikenessConsent": "synthetic", "marks": [], - "requiredAttribution": ["sourav-das"], + "requiredAttribution": [ + "sourav-das" + ], "assetLicense": "CC-BY-4.0", "reviewedBy": "sourav-das", "reviewedAt": "2026-10-31", @@ -779,7 +845,9 @@ "aiGenerated": true, "humanLikenessConsent": "synthetic", "marks": [], - "requiredAttribution": ["sourav-das"], + "requiredAttribution": [ + "sourav-das" + ], "assetLicense": "CC-BY-4.0", "reviewedBy": "sourav-das", "reviewedAt": "2026-10-31", @@ -804,7 +872,9 @@ "aiGenerated": true, "humanLikenessConsent": "synthetic", "marks": [], - "requiredAttribution": ["sourav-das"], + "requiredAttribution": [ + "sourav-das" + ], "assetLicense": "CC-BY-4.0", "reviewedBy": "sourav-das", "reviewedAt": "2026-10-31", @@ -829,7 +899,9 @@ "aiGenerated": true, "humanLikenessConsent": "synthetic", "marks": [], - "requiredAttribution": ["sourav-das"], + "requiredAttribution": [ + "sourav-das" + ], "assetLicense": "CC-BY-4.0", "reviewedBy": "sourav-das", "reviewedAt": "2026-10-31", @@ -856,7 +928,9 @@ "aiGenerated": true, "humanLikenessConsent": "synthetic", "marks": [], - "requiredAttribution": ["sourav-das"], + "requiredAttribution": [ + "sourav-das" + ], "assetLicense": "CC-BY-4.0", "reviewedBy": "sourav-das", "reviewedAt": "2026-10-31", @@ -881,7 +955,9 @@ "aiGenerated": true, "humanLikenessConsent": "synthetic", "marks": [], - "requiredAttribution": ["sourav-das"], + "requiredAttribution": [ + "sourav-das" + ], "assetLicense": "CC-BY-4.0", "reviewedBy": "sourav-das", "reviewedAt": "2026-10-31", @@ -906,7 +982,9 @@ "aiGenerated": true, "humanLikenessConsent": "synthetic", "marks": [], - "requiredAttribution": ["sourav-das"], + "requiredAttribution": [ + "sourav-das" + ], "assetLicense": "CC-BY-4.0", "reviewedBy": "sourav-das", "reviewedAt": "2026-10-31", @@ -931,7 +1009,9 @@ "aiGenerated": true, "humanLikenessConsent": "synthetic", "marks": [], - "requiredAttribution": ["sourav-das"], + "requiredAttribution": [ + "sourav-das" + ], "assetLicense": "CC-BY-4.0", "reviewedBy": "sourav-das", "reviewedAt": "2026-10-31", @@ -956,7 +1036,9 @@ "aiGenerated": true, "humanLikenessConsent": "synthetic", "marks": [], - "requiredAttribution": ["sourav-das"], + "requiredAttribution": [ + "sourav-das" + ], "assetLicense": "CC-BY-4.0", "reviewedBy": "sourav-das", "reviewedAt": "2026-10-31", @@ -1125,7 +1207,9 @@ ], "aiGenerated": true, "humanLikenessConsent": "not-applicable", - "marks": ["Fictional ASTERMIST / LAVENDER SLEEP SPRAY product label"], + "marks": [ + "Fictional ASTERMIST / LAVENDER SLEEP SPRAY product label" + ], "requiredAttribution": [], "publicationBasis": "Existing maintainer publication authorization and current explicit instruction to register these three accepted assets; no new ownership or rights quotation is fabricated.", "path": "template-gallery/flux_kontext_edit.webp", @@ -1150,7 +1234,9 @@ ], "aiGenerated": true, "humanLikenessConsent": "not-applicable", - "marks": ["Fictional ASTERMIST / LAVENDER SLEEP SPRAY product label"], + "marks": [ + "Fictional ASTERMIST / LAVENDER SLEEP SPRAY product label" + ], "requiredAttribution": [], "publicationBasis": "Existing maintainer publication authorization and current explicit instruction to register these three accepted assets; no new ownership or rights quotation is fabricated.", "path": "template-gallery/flux_kontext_multi_reference.webp", @@ -1306,7 +1392,9 @@ ], "aiGenerated": true, "humanLikenessConsent": "synthetic", - "marks": ["Studio Ghibli style reference; no franchise character requested"], + "marks": [ + "Studio Ghibli style reference; no franchise character requested" + ], "requiredAttribution": [], "assetLicense": "upstream-terms-only", "reviewedBy": null, @@ -1330,7 +1418,9 @@ ], "aiGenerated": true, "humanLikenessConsent": "synthetic", - "marks": ["Studio Ghibli style reference; no franchise character requested"], + "marks": [ + "Studio Ghibli style reference; no franchise character requested" + ], "requiredAttribution": [], "assetLicense": "upstream-terms-only", "reviewedBy": null, @@ -1677,7 +1767,9 @@ "sourceUrl": "https://huggingface.co/zai-org/GLM-Image/tree/2c433cc0cbc293bde2ac8ca9624f279b5d23fcf4", "sourceRevision": "zai-org/GLM-Image@2c433cc0cbc293bde2ac8ca9624f279b5d23fcf4", "sourceLicense": "Maintainer-authorized file with publisher terms retained", - "modelTerms": ["mit. https://huggingface.co/zai-org/GLM-Image/tree/2c433cc0cbc293bde2ac8ca9624f279b5d23fcf4"], + "modelTerms": [ + "mit. https://huggingface.co/zai-org/GLM-Image/tree/2c433cc0cbc293bde2ac8ca9624f279b5d23fcf4" + ], "aiGenerated": true, "humanLikenessConsent": "synthetic", "marks": [], @@ -1996,7 +2088,9 @@ "reviewedAt": "2026-11-13", "reviewClass": "per-file-maintainer-accepted-native-six-registration", "provenanceTemplateId": "flux_redux_edit", - "consumingTemplateIds": ["flux_redux_edit"], + "consumingTemplateIds": [ + "flux_redux_edit" + ], "retainedOriginalPath": "template-gallery/inputs/flux_redux_edit.before.webp", "humanApprovalPacketSHA256": "03b66b4631afb15032d62a1705331b56f6b12c4882c23945175ec92cc45a506f", "publicationBasis": "Register the six approved assets now while Moonflower runs on Linux. Use Windows in parallel wherever possible, and keep the longer workflows separate for AMD cloud." @@ -2149,7 +2243,9 @@ "reviewedAt": "2026-11-15", "reviewClass": "per-file-maintainer-accepted-native-two-registration", "provenanceTemplateId": "flux_redux_multi_reference", - "consumingTemplateIds": ["flux_redux_multi_reference"], + "consumingTemplateIds": [ + "flux_redux_multi_reference" + ], "retainedOriginalPath": "template-gallery/inputs/flux_redux_multi_reference.before.webp", "humanApprovalPacketSHA256": "c3c5e06d05771cf28f823e1dee31a9e7e3765d2f84038823aaadc505ee8290f5", "publicationBasis": "you can register these two as well" @@ -2531,7 +2627,9 @@ "reviewedAt": "2026-11-13", "reviewClass": "per-file-maintainer-accepted-native-six-registration", "provenanceTemplateId": "ltx_video_video_to_video", - "consumingTemplateIds": ["ltx_video_video_to_video"], + "consumingTemplateIds": [ + "ltx_video_video_to_video" + ], "retainedOriginalPath": "template-gallery/inputs/ltx_video_video_to_video.before.mp4", "humanApprovalPacketSHA256": "03b66b4631afb15032d62a1705331b56f6b12c4882c23945175ec92cc45a506f", "publicationBasis": "Register the six approved assets now while Moonflower runs on Linux. Use Windows in parallel wherever possible, and keep the longer workflows separate for AMD cloud." @@ -2869,7 +2967,9 @@ "reviewedAt": "2026-11-15", "reviewClass": "per-file-maintainer-accepted-native-seven-registration", "provenanceTemplateId": "wan_vace_grayscale_control", - "consumingTemplateIds": ["wan_vace_grayscale_control"], + "consumingTemplateIds": [ + "wan_vace_grayscale_control" + ], "retainedOriginalPath": "template-gallery/inputs/wan_vace_grayscale_control.before.mp4", "humanApprovalPacketSHA256": "95c7c2ed080c3d618db1701b066724660595337460c46df8305b50810783eaa3", "publicationBasis": "these are approved, you can register them" @@ -3049,7 +3149,9 @@ "reviewedAt": "2026-11-15", "reviewClass": "per-file-maintainer-accepted-native-seven-registration", "provenanceTemplateId": "wan_vace_outpaint_reframe", - "consumingTemplateIds": ["wan_vace_outpaint_reframe"], + "consumingTemplateIds": [ + "wan_vace_outpaint_reframe" + ], "retainedOriginalPath": "template-gallery/inputs/wan_vace_outpaint_reframe.before.mp4", "humanApprovalPacketSHA256": "95c7c2ed080c3d618db1701b066724660595337460c46df8305b50810783eaa3", "publicationBasis": "these are approved, you can register them" @@ -3229,7 +3331,9 @@ "reviewedAt": "2026-11-15", "reviewClass": "per-file-maintainer-accepted-native-seven-registration", "provenanceTemplateId": "wan_vace_video_color_grade", - "consumingTemplateIds": ["wan_vace_video_color_grade"], + "consumingTemplateIds": [ + "wan_vace_video_color_grade" + ], "retainedOriginalPath": "template-gallery/inputs/wan_vace_video_color_grade.before.mp4", "humanApprovalPacketSHA256": "95c7c2ed080c3d618db1701b066724660595337460c46df8305b50810783eaa3", "publicationBasis": "these are approved, you can register them" @@ -3409,7 +3513,9 @@ "reviewedAt": "2026-11-15", "reviewClass": "per-file-maintainer-accepted-native-seven-registration", "provenanceTemplateId": "wan_vace_video_to_video", - "consumingTemplateIds": ["wan_vace_video_to_video"], + "consumingTemplateIds": [ + "wan_vace_video_to_video" + ], "retainedOriginalPath": "template-gallery/inputs/wan_vace_video_to_video.before.mp4", "humanApprovalPacketSHA256": "95c7c2ed080c3d618db1701b066724660595337460c46df8305b50810783eaa3", "publicationBasis": "these are approved, you can register them" @@ -3543,6 +3649,60 @@ "humanApprovalPacketSHA256": "95c7c2ed080c3d618db1701b066724660595337460c46df8305b50810783eaa3", "publicationBasis": "these are approved, you can register them" }, + { + "path": "template-gallery/hunyuan_dit_coastal_lighthouse.webp", + "sha256": "sha256:bytes:849fc3d47db9a23dcea0ec788e336d75e1a5a802e50795e76da3aeb11f8188ef", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Exact approved file captured from a saved MoDiff workflow", + "sourceUrl": "https://huggingface.co/Tencent-Hunyuan/HunyuanDiT-v1.2-Diffusers-Distilled/tree/ba991d1546d8c50936c4c16398ed0a87b9b99fb1", + "sourceRevision": "Tencent-Hunyuan/HunyuanDiT-v1.2-Diffusers-Distilled@ba991d1546d8c50936c4c16398ed0a87b9b99fb1", + "sourceLicense": "Maintainer-authorized file with publisher terms retained", + "modelTerms": [ + "Publisher model terms at https://huggingface.co/Tencent-Hunyuan/HunyuanDiT-v1.2-Diffusers-Distilled/tree/ba991d1546d8c50936c4c16398ed0a87b9b99fb1" + ], + "aiGenerated": true, + "humanLikenessConsent": "synthetic", + "marks": [], + "requiredAttribution": [ + "Tencent-Hunyuan/HunyuanDiT-v1.2-Diffusers-Distilled@ba991d1546d8c50936c4c16398ed0a87b9b99fb1 https://huggingface.co/Tencent-Hunyuan/HunyuanDiT-v1.2-Diffusers-Distilled/tree/ba991d1546d8c50936c4c16398ed0a87b9b99fb1" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "c2df9edb92f8ff905b6c9a138a285e67c621f3d2dfa3232f859aaf963b725aca", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "hunyuan_dit_coastal_lighthouse" + }, + { + "path": "template-gallery/hunyuan_pag_burgundy_knight.webp", + "sha256": "sha256:bytes:9f1c23651fccd748c6caa912c81e5e3983d311374ba2781ee2d27d2b3cf7ae0c", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Exact approved file captured from a saved MoDiff workflow", + "sourceUrl": "https://huggingface.co/Tencent-Hunyuan/HunyuanDiT-v1.2-Diffusers-Distilled/tree/ba991d1546d8c50936c4c16398ed0a87b9b99fb1", + "sourceRevision": "Tencent-Hunyuan/HunyuanDiT-v1.2-Diffusers-Distilled@ba991d1546d8c50936c4c16398ed0a87b9b99fb1", + "sourceLicense": "Maintainer-authorized file with publisher terms retained", + "modelTerms": [ + "Publisher model terms at https://huggingface.co/Tencent-Hunyuan/HunyuanDiT-v1.2-Diffusers-Distilled/tree/ba991d1546d8c50936c4c16398ed0a87b9b99fb1" + ], + "aiGenerated": true, + "humanLikenessConsent": "synthetic", + "marks": [], + "requiredAttribution": [ + "Tencent-Hunyuan/HunyuanDiT-v1.2-Diffusers-Distilled@ba991d1546d8c50936c4c16398ed0a87b9b99fb1 https://huggingface.co/Tencent-Hunyuan/HunyuanDiT-v1.2-Diffusers-Distilled/tree/ba991d1546d8c50936c4c16398ed0a87b9b99fb1" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "c2df9edb92f8ff905b6c9a138a285e67c621f3d2dfa3232f859aaf963b725aca", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "hunyuan_pag_burgundy_knight" + }, { "path": "template-gallery/inputs/ace_step_audio_variation.before.wav", "sha256": "sha256:bytes:e07d05a658d361b6d28af62bcccfaeba9254507467dae1c5839efd546fed96a7", @@ -3564,7 +3724,10 @@ "reviewedBy": "SOURAV DAS", "reviewedAt": "2026-11-13", "reviewClass": "per-file-maintainer-accepted-native-six-registration", - "consumingTemplateIds": ["ace_step_audio_repaint", "ace_step_audio_variation"], + "consumingTemplateIds": [ + "ace_step_audio_repaint", + "ace_step_audio_variation" + ], "humanApprovalPacketSHA256": "03b66b4631afb15032d62a1705331b56f6b12c4882c23945175ec92cc45a506f", "publicationBasis": "Register the six approved assets now while Moonflower runs on Linux. Use Windows in parallel wherever possible, and keep the longer workflows separate for AMD cloud.", "provenanceTemplateId": "ace_step_audio_variation" @@ -3619,7 +3782,63 @@ "reviewedAt": "2026-08-03", "reviewClass": "standard-human-attestation", "provenanceTemplateId": "character_edit", - "consumingTemplateIds": ["character_edit"] + "consumingTemplateIds": [ + "character_edit" + ] + }, + { + "path": "template-gallery/inputs/chroma_restored_cobalt_backdrop.before.png", + "sha256": "sha256:bytes:e75c20f0e8a74e283b996bf526e6ea74535ed24125ad97c2d92508d3435d7a87", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Exact approved file captured from a saved MoDiff workflow", + "sourceUrl": "https://huggingface.co/lodestones/Chroma1-HD/tree/0e0c60ece1e82b17cb7f77342d765ba5024c40c0", + "sourceRevision": "lodestones/Chroma1-HD@0e0c60ece1e82b17cb7f77342d765ba5024c40c0", + "sourceLicense": "Maintainer-authorized file with publisher terms retained", + "modelTerms": [ + "Publisher model terms at https://huggingface.co/lodestones/Chroma1-HD/tree/0e0c60ece1e82b17cb7f77342d765ba5024c40c0" + ], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "lodestones/Chroma1-HD@0e0c60ece1e82b17cb7f77342d765ba5024c40c0 https://huggingface.co/lodestones/Chroma1-HD/tree/0e0c60ece1e82b17cb7f77342d765ba5024c40c0" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "c2df9edb92f8ff905b6c9a138a285e67c621f3d2dfa3232f859aaf963b725aca", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "chroma_restored_cobalt_backdrop" + }, + { + "path": "template-gallery/inputs/chroma_restored_cobalt_backdrop.mask.png", + "sha256": "sha256:bytes:1f48775f2826f84e0c5b55f16f3475bdc80ecad8b931d6b0279598610e9a828d", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Exact approved file captured from a saved MoDiff workflow", + "sourceUrl": "https://huggingface.co/lodestones/Chroma1-HD/tree/0e0c60ece1e82b17cb7f77342d765ba5024c40c0", + "sourceRevision": "lodestones/Chroma1-HD@0e0c60ece1e82b17cb7f77342d765ba5024c40c0", + "sourceLicense": "Maintainer-authorized file with publisher terms retained", + "modelTerms": [ + "Publisher model terms at https://huggingface.co/lodestones/Chroma1-HD/tree/0e0c60ece1e82b17cb7f77342d765ba5024c40c0" + ], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "lodestones/Chroma1-HD@0e0c60ece1e82b17cb7f77342d765ba5024c40c0 https://huggingface.co/lodestones/Chroma1-HD/tree/0e0c60ece1e82b17cb7f77342d765ba5024c40c0" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "c2df9edb92f8ff905b6c9a138a285e67c621f3d2dfa3232f859aaf963b725aca", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "chroma_restored_cobalt_backdrop" }, { "path": "template-gallery/inputs/flux2_klein_edit.before.png", @@ -3673,7 +3892,9 @@ "reviewedAt": "2026-08-03", "reviewClass": "standard-human-attestation", "provenanceTemplateId": "flux2_klein_multi_reference", - "consumingTemplateIds": ["flux2_klein_multi_reference"] + "consumingTemplateIds": [ + "flux2_klein_multi_reference" + ] }, { "path": "template-gallery/inputs/flux3-packaging-protected-photo-mask-v1.png", @@ -3689,7 +3910,9 @@ "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], - "requiredAttribution": ["sourav-das"], + "requiredAttribution": [ + "sourav-das" + ], "assetLicense": "CC-BY-4.0", "reviewedBy": "sourav-das", "reviewedAt": "2026-10-31", @@ -3827,7 +4050,9 @@ "reviewedAt": "2026-08-03", "reviewClass": "standard-human-attestation", "provenanceTemplateId": "flux_control_canny", - "consumingTemplateIds": ["flux_control_canny"] + "consumingTemplateIds": [ + "flux_control_canny" + ] }, { "path": "template-gallery/inputs/flux_depth_control.before.png", @@ -3851,7 +4076,9 @@ "reviewedAt": "2026-08-03", "reviewClass": "standard-human-attestation", "provenanceTemplateId": "flux_depth_control", - "consumingTemplateIds": ["flux_depth_control"] + "consumingTemplateIds": [ + "flux_depth_control" + ] }, { "path": "template-gallery/inputs/flux_fill_inpaint.before.webp", @@ -3875,7 +4102,9 @@ "reviewedAt": "2026-08-03", "reviewClass": "standard-human-attestation", "provenanceTemplateId": "flux_fill_inpaint", - "consumingTemplateIds": ["flux_fill_inpaint"] + "consumingTemplateIds": [ + "flux_fill_inpaint" + ] }, { "path": "template-gallery/inputs/flux_fill_outpaint.before.png", @@ -3899,7 +4128,9 @@ "reviewedAt": "2026-08-03", "reviewClass": "standard-human-attestation", "provenanceTemplateId": "flux_fill_outpaint", - "consumingTemplateIds": ["flux_fill_outpaint"] + "consumingTemplateIds": [ + "flux_fill_outpaint" + ] }, { "path": "template-gallery/inputs/flux_kontext_edit.before.webp", @@ -3923,7 +4154,9 @@ "reviewedAt": "2026-08-03", "reviewClass": "standard-human-attestation", "provenanceTemplateId": "flux_kontext_edit", - "consumingTemplateIds": ["flux_kontext_edit"] + "consumingTemplateIds": [ + "flux_kontext_edit" + ] }, { "path": "template-gallery/inputs/flux_kontext_multi_reference.before.webp", @@ -3947,7 +4180,9 @@ "reviewedAt": "2026-08-03", "reviewClass": "standard-human-attestation", "provenanceTemplateId": "flux_kontext_multi_reference", - "consumingTemplateIds": ["flux_kontext_multi_reference"] + "consumingTemplateIds": [ + "flux_kontext_multi_reference" + ] }, { "path": "template-gallery/inputs/flux_kontext_multi_reference.material-strip.v2.png", @@ -3970,7 +4205,9 @@ "reviewedBy": "maintainer (current user)", "reviewedAt": "2026-11-12", "reviewClass": "per-file-maintainer-accepted-native-three-registration", - "consumingTemplateIds": ["flux_kontext_multi_reference"], + "consumingTemplateIds": [ + "flux_kontext_multi_reference" + ], "derivedFromContentHash": "sha256:bytes:9f421cdc0fa80b3aae368bd3b20a8f6f05942ec461f88541f01aec5390468897", "publicationBasis": "Existing maintainer publication authorization and current explicit instruction to register these three accepted assets; no new ownership or rights quotation is fabricated.", "humanApprovalPacketSHA256": "69c6b3d9b0ea2fcca16ee538f6e75b414b7141658b74f10578758e61360f63fd" @@ -3998,7 +4235,9 @@ "reviewedAt": "2026-08-03", "reviewClass": "standard-human-attestation", "provenanceTemplateId": "flux_redux_edit", - "consumingTemplateIds": ["flux_redux_edit"] + "consumingTemplateIds": [ + "flux_redux_edit" + ] }, { "path": "template-gallery/inputs/flux_redux_multi_reference.before.webp", @@ -4023,7 +4262,9 @@ "reviewedAt": "2026-08-03", "reviewClass": "standard-human-attestation", "provenanceTemplateId": "flux_redux_multi_reference", - "consumingTemplateIds": ["flux_redux_multi_reference"] + "consumingTemplateIds": [ + "flux_redux_multi_reference" + ] }, { "path": "template-gallery/inputs/lcm_dawn_alpine_lake.before.webp", @@ -4122,7 +4363,9 @@ "reviewedAt": "2026-08-03", "reviewClass": "standard-human-attestation", "provenanceTemplateId": "ltx_video_image_to_video", - "consumingTemplateIds": ["ltx_video_image_to_video"] + "consumingTemplateIds": [ + "ltx_video_image_to_video" + ] }, { "path": "template-gallery/inputs/ltx_video_multi_reference.before.webp", @@ -4147,7 +4390,9 @@ "reviewedAt": "2026-08-03", "reviewClass": "standard-human-attestation", "provenanceTemplateId": "ltx_video_multi_reference", - "consumingTemplateIds": ["ltx_video_multi_reference"] + "consumingTemplateIds": [ + "ltx_video_multi_reference" + ] }, { "path": "template-gallery/inputs/ltx_video_video_to_video.before.mp4", @@ -4174,7 +4419,9 @@ "reviewedAt": "2026-08-03", "reviewClass": "standard-human-attestation", "provenanceTemplateId": "ltx_video_video_to_video", - "consumingTemplateIds": ["ltx_video_video_to_video"] + "consumingTemplateIds": [ + "ltx_video_video_to_video" + ] }, { "path": "template-gallery/inputs/marigold_depth_synthetic_ramp.before.png", @@ -4243,7 +4490,9 @@ "reviewedAt": "2026-08-03", "reviewClass": "standard-human-attestation", "provenanceTemplateId": "qwen_character_angles", - "consumingTemplateIds": ["qwen_character_angles"] + "consumingTemplateIds": [ + "qwen_character_angles" + ] }, { "path": "template-gallery/inputs/qwen_control_image_layout.before.png", @@ -4296,7 +4545,9 @@ "reviewedAt": "2026-08-03", "reviewClass": "standard-human-attestation", "provenanceTemplateId": "qwen_edit_plus_single_image", - "consumingTemplateIds": ["qwen_edit_plus_single_image"] + "consumingTemplateIds": [ + "qwen_edit_plus_single_image" + ] }, { "path": "template-gallery/inputs/qwen_edit_strength_sweep.before.webp", @@ -4320,7 +4571,9 @@ "reviewedAt": "2026-08-03", "reviewClass": "standard-human-attestation", "provenanceTemplateId": "qwen_edit_strength_sweep", - "consumingTemplateIds": ["qwen_edit_strength_sweep"] + "consumingTemplateIds": [ + "qwen_edit_strength_sweep" + ] }, { "path": "template-gallery/inputs/qwen_inpaint_mask_draft.before.webp", @@ -4344,7 +4597,9 @@ "reviewedAt": "2026-08-03", "reviewClass": "standard-human-attestation", "provenanceTemplateId": "qwen_inpaint_mask_draft", - "consumingTemplateIds": ["qwen_inpaint_mask_draft"] + "consumingTemplateIds": [ + "qwen_inpaint_mask_draft" + ] }, { "path": "template-gallery/inputs/qwen_inpaint_object_replace.before.webp", @@ -4368,7 +4623,9 @@ "reviewedAt": "2026-08-03", "reviewClass": "standard-human-attestation", "provenanceTemplateId": "qwen_inpaint_object_replace", - "consumingTemplateIds": ["qwen_inpaint_object_replace"] + "consumingTemplateIds": [ + "qwen_inpaint_object_replace" + ] }, { "creatorOrRightsholder": "MoDiff project maintainers, subject to previously approved synthetic source rights and recorded model terms", @@ -4418,7 +4675,9 @@ "reviewedAt": "2026-08-03", "reviewClass": "standard-human-attestation", "provenanceTemplateId": "qwen_logo_texture", - "consumingTemplateIds": ["qwen_logo_texture"] + "consumingTemplateIds": [ + "qwen_logo_texture" + ] }, { "path": "template-gallery/inputs/qwen_multi_reference_product.before.webp", @@ -4443,7 +4702,9 @@ "reviewedAt": "2026-08-03", "reviewClass": "standard-human-attestation", "provenanceTemplateId": "qwen_multi_reference_product", - "consumingTemplateIds": ["qwen_multi_reference_product"] + "consumingTemplateIds": [ + "qwen_multi_reference_product" + ] }, { "path": "template-gallery/inputs/qwen_outpaint_aspect_template.before.webp", @@ -4467,7 +4728,9 @@ "reviewedAt": "2026-08-03", "reviewClass": "standard-human-attestation", "provenanceTemplateId": "qwen_outpaint_aspect_template", - "consumingTemplateIds": ["qwen_outpaint_aspect_template"] + "consumingTemplateIds": [ + "qwen_outpaint_aspect_template" + ] }, { "path": "template-gallery/inputs/qwen_outpaint_draft.before.webp", @@ -4491,7 +4754,9 @@ "reviewedAt": "2026-08-03", "reviewClass": "standard-human-attestation", "provenanceTemplateId": "qwen_outpaint_draft", - "consumingTemplateIds": ["qwen_outpaint_draft"] + "consumingTemplateIds": [ + "qwen_outpaint_draft" + ] }, { "path": "template-gallery/inputs/qwen_packaging_dieline.before.png", @@ -4516,7 +4781,9 @@ "reviewedAt": "2026-08-03", "reviewClass": "standard-human-attestation", "provenanceTemplateId": "qwen_packaging_dieline", - "consumingTemplateIds": ["qwen_packaging_dieline"] + "consumingTemplateIds": [ + "qwen_packaging_dieline" + ] }, { "path": "template-gallery/inputs/qwen_product_ad_composite.before.webp", @@ -4541,7 +4808,9 @@ "reviewedAt": "2026-08-03", "reviewClass": "standard-human-attestation", "provenanceTemplateId": "qwen_product_ad_composite", - "consumingTemplateIds": ["qwen_product_ad_composite"] + "consumingTemplateIds": [ + "qwen_product_ad_composite" + ] }, { "path": "template-gallery/inputs/qwen_product_relight.before.webp", @@ -4566,7 +4835,9 @@ "reviewedAt": "2026-08-03", "reviewClass": "standard-human-attestation", "provenanceTemplateId": "qwen_product_relight", - "consumingTemplateIds": ["qwen_product_relight"] + "consumingTemplateIds": [ + "qwen_product_relight" + ] }, { "path": "template-gallery/inputs/qwen_tile_extract.before.webp", @@ -4590,7 +4861,9 @@ "reviewedAt": "2026-08-03", "reviewClass": "standard-human-attestation", "provenanceTemplateId": "qwen_tile_extract", - "consumingTemplateIds": ["qwen_tile_extract"] + "consumingTemplateIds": [ + "qwen_tile_extract" + ] }, { "creatorOrRightsholder": "MoDiff project maintainers, with exact-file rights explicitly attested by the maintainer", @@ -4641,7 +4914,9 @@ "reviewedAt": "2026-08-03", "reviewClass": "standard-human-attestation", "provenanceTemplateId": "reference_fusion", - "consumingTemplateIds": ["reference_fusion"] + "consumingTemplateIds": [ + "reference_fusion" + ] }, { "path": "template-gallery/inputs/restoring_the_studio_backdrop.before.png", @@ -4653,7 +4928,9 @@ "sourceUrl": "https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14", "sourceRevision": "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14", "sourceLicense": "Maintainer-authorized file with publisher terms retained", - "modelTerms": ["CreativeML Open RAIL-M at the pinned Stable Diffusion v1.5 revision."], + "modelTerms": [ + "CreativeML Open RAIL-M at the pinned Stable Diffusion v1.5 revision." + ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], @@ -4678,7 +4955,9 @@ "sourceUrl": "https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14", "sourceRevision": "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14", "sourceLicense": "Maintainer-authorized file with publisher terms retained", - "modelTerms": ["CreativeML Open RAIL-M at the pinned Stable Diffusion v1.5 revision."], + "modelTerms": [ + "CreativeML Open RAIL-M at the pinned Stable Diffusion v1.5 revision." + ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], @@ -4723,59 +5002,167 @@ "provenanceTemplateId": "sana_sprint_monochrome_tiger" }, { - "path": "template-gallery/inputs/sdxl_clear_cobalt_backdrop.before.png", - "sha256": "sha256:bytes:e75c20f0e8a74e283b996bf526e6ea74535ed24125ad97c2d92508d3435d7a87", + "path": "template-gallery/inputs/sd15_pag_cobalt_studio_repair.before.png", + "sha256": "sha256:bytes:d143c4922ad498b9bd436d06df424bbff50baf023b93735b53ee401e19e4cbf1", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Exact approved file captured from a saved MoDiff workflow", - "sourceUrl": "https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b", - "sourceRevision": "stabilityai/stable-diffusion-xl-base-1.0@462165984030d82259a11f4367a4eed129e94a7b", + "sourceUrl": "https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14", + "sourceRevision": "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14", "sourceLicense": "Maintainer-authorized file with publisher terms retained", "modelTerms": [ - "Publisher model terms at https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b" + "Publisher model terms at https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14" ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "stabilityai/stable-diffusion-xl-base-1.0@462165984030d82259a11f4367a4eed129e94a7b https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b" + "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14 https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", - "reviewedAt": "2026-11-24", + "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "d216f065bdc316366c6183592f657bcfbbd7cb05acd0e510c6b3877fe56bcec2", - "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped six saved cases with model terms retained.", - "provenanceTemplateId": "sdxl_clear_cobalt_backdrop" + "humanApprovalPacketSHA256": "c2df9edb92f8ff905b6c9a138a285e67c621f3d2dfa3232f859aaf963b725aca", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "sd15_pag_cobalt_studio_repair" }, { - "path": "template-gallery/inputs/sdxl_clear_cobalt_backdrop.mask.png", - "sha256": "sha256:bytes:1f48775f2826f84e0c5b55f16f3475bdc80ecad8b931d6b0279598610e9a828d", + "path": "template-gallery/inputs/sd15_pag_cobalt_studio_repair.mask.png", + "sha256": "sha256:bytes:71817f4823a73712c8e76e7d832ec382c29ec0a0bf5a472e09639448c082da01", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Exact approved file captured from a saved MoDiff workflow", - "sourceUrl": "https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b", - "sourceRevision": "stabilityai/stable-diffusion-xl-base-1.0@462165984030d82259a11f4367a4eed129e94a7b", + "sourceUrl": "https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14", + "sourceRevision": "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14", "sourceLicense": "Maintainer-authorized file with publisher terms retained", "modelTerms": [ - "Publisher model terms at https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b" + "Publisher model terms at https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14" ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "stabilityai/stable-diffusion-xl-base-1.0@462165984030d82259a11f4367a4eed129e94a7b https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b" + "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14 https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", - "reviewedAt": "2026-11-24", + "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "d216f065bdc316366c6183592f657bcfbbd7cb05acd0e510c6b3877fe56bcec2", - "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped six saved cases with model terms retained.", + "humanApprovalPacketSHA256": "c2df9edb92f8ff905b6c9a138a285e67c621f3d2dfa3232f859aaf963b725aca", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "sd15_pag_cobalt_studio_repair" + }, + { + "path": "template-gallery/inputs/sd15_pag_mountain_lake_watercolor.before.png", + "sha256": "sha256:bytes:88290a96bc8d52f11f2d1e3c0c0e04c2027661816e54b57d7d4739d731ca1e75", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Exact approved file captured from a saved MoDiff workflow", + "sourceUrl": "https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14", + "sourceRevision": "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14", + "sourceLicense": "Maintainer-authorized file with publisher terms retained", + "modelTerms": [ + "Publisher model terms at https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14" + ], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14 https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "c2df9edb92f8ff905b6c9a138a285e67c621f3d2dfa3232f859aaf963b725aca", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "sd15_pag_mountain_lake_watercolor" + }, + { + "path": "template-gallery/inputs/sdxl_clear_cobalt_backdrop.before.png", + "sha256": "sha256:bytes:e75c20f0e8a74e283b996bf526e6ea74535ed24125ad97c2d92508d3435d7a87", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Exact approved file captured from a saved MoDiff workflow", + "sourceUrl": "https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b", + "sourceRevision": "stabilityai/stable-diffusion-xl-base-1.0@462165984030d82259a11f4367a4eed129e94a7b", + "sourceLicense": "Maintainer-authorized file with publisher terms retained", + "modelTerms": [ + "Publisher model terms at https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b" + ], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "stabilityai/stable-diffusion-xl-base-1.0@462165984030d82259a11f4367a4eed129e94a7b https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-24", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "d216f065bdc316366c6183592f657bcfbbd7cb05acd0e510c6b3877fe56bcec2", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped six saved cases with model terms retained.", + "provenanceTemplateId": "sdxl_clear_cobalt_backdrop" + }, + { + "path": "template-gallery/inputs/sdxl_clear_cobalt_backdrop.mask.png", + "sha256": "sha256:bytes:1f48775f2826f84e0c5b55f16f3475bdc80ecad8b931d6b0279598610e9a828d", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Exact approved file captured from a saved MoDiff workflow", + "sourceUrl": "https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b", + "sourceRevision": "stabilityai/stable-diffusion-xl-base-1.0@462165984030d82259a11f4367a4eed129e94a7b", + "sourceLicense": "Maintainer-authorized file with publisher terms retained", + "modelTerms": [ + "Publisher model terms at https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b" + ], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "stabilityai/stable-diffusion-xl-base-1.0@462165984030d82259a11f4367a4eed129e94a7b https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-24", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "d216f065bdc316366c6183592f657bcfbbd7cb05acd0e510c6b3877fe56bcec2", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped six saved cases with model terms retained.", "provenanceTemplateId": "sdxl_clear_cobalt_backdrop" }, + { + "path": "template-gallery/inputs/sdxl_pix2pix_pale_amber_glass.before.png", + "sha256": "sha256:bytes:ebaca95f96d1573e4292ffc65c78eb0dcf8ff9cc8b5a7e11ec81face61b160fb", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Exact approved file captured from a saved MoDiff workflow", + "sourceUrl": "https://huggingface.co/diffusers/sdxl-instructpix2pix-768/tree/06653d47f8d22f2c2205a5884d6a24c5e76d2ca7", + "sourceRevision": "diffusers/sdxl-instructpix2pix-768@06653d47f8d22f2c2205a5884d6a24c5e76d2ca7", + "sourceLicense": "Maintainer-authorized file with publisher terms retained", + "modelTerms": [ + "Publisher model terms at https://huggingface.co/diffusers/sdxl-instructpix2pix-768/tree/06653d47f8d22f2c2205a5884d6a24c5e76d2ca7" + ], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "diffusers/sdxl-instructpix2pix-768@06653d47f8d22f2c2205a5884d6a24c5e76d2ca7 https://huggingface.co/diffusers/sdxl-instructpix2pix-768/tree/06653d47f8d22f2c2205a5884d6a24c5e76d2ca7" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "c2df9edb92f8ff905b6c9a138a285e67c621f3d2dfa3232f859aaf963b725aca", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "sdxl_pix2pix_pale_amber_glass" + }, { "path": "template-gallery/inputs/spandrel_x2_synthetic_gradient.before.png", "sha256": "sha256:bytes:626815c78eaad46cad849732d1598b45b91700ce046c1ee3f4e2444db80aa32a", @@ -4822,7 +5209,9 @@ "reviewedAt": "2026-08-03", "reviewClass": "standard-human-attestation", "provenanceTemplateId": "wan_vace_grayscale_control", - "consumingTemplateIds": ["wan_vace_grayscale_control"] + "consumingTemplateIds": [ + "wan_vace_grayscale_control" + ] }, { "path": "template-gallery/inputs/wan_vace_outpaint_reframe.before.mp4", @@ -4847,7 +5236,9 @@ "reviewedAt": "2026-08-03", "reviewClass": "standard-human-attestation", "provenanceTemplateId": "wan_vace_outpaint_reframe", - "consumingTemplateIds": ["wan_vace_outpaint_reframe"] + "consumingTemplateIds": [ + "wan_vace_outpaint_reframe" + ] }, { "path": "template-gallery/inputs/wan_vace_video_color_grade.before.mp4", @@ -4872,7 +5263,9 @@ "reviewedAt": "2026-08-03", "reviewClass": "standard-human-attestation", "provenanceTemplateId": "wan_vace_video_color_grade", - "consumingTemplateIds": ["wan_vace_video_color_grade"] + "consumingTemplateIds": [ + "wan_vace_video_color_grade" + ] }, { "path": "template-gallery/inputs/wan_vace_video_to_video.before.mp4", @@ -4897,7 +5290,36 @@ "reviewedAt": "2026-08-03", "reviewClass": "standard-human-attestation", "provenanceTemplateId": "wan_vace_video_to_video", - "consumingTemplateIds": ["wan_vace_video_to_video"] + "consumingTemplateIds": [ + "wan_vace_video_to_video" + ] + }, + { + "path": "template-gallery/inputs/zimage_golden_amber_glass.before.png", + "sha256": "sha256:bytes:ebaca95f96d1573e4292ffc65c78eb0dcf8ff9cc8b5a7e11ec81face61b160fb", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Exact approved file captured from a saved MoDiff workflow", + "sourceUrl": "https://huggingface.co/Tongyi-MAI/Z-Image-Turbo/tree/f332072aa78be7aecdf3ee76d5c247082da564a6", + "sourceRevision": "Tongyi-MAI/Z-Image-Turbo@f332072aa78be7aecdf3ee76d5c247082da564a6", + "sourceLicense": "Maintainer-authorized file with publisher terms retained", + "modelTerms": [ + "Publisher model terms at https://huggingface.co/Tongyi-MAI/Z-Image-Turbo/tree/f332072aa78be7aecdf3ee76d5c247082da564a6" + ], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "Tongyi-MAI/Z-Image-Turbo@f332072aa78be7aecdf3ee76d5c247082da564a6 https://huggingface.co/Tongyi-MAI/Z-Image-Turbo/tree/f332072aa78be7aecdf3ee76d5c247082da564a6" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "c2df9edb92f8ff905b6c9a138a285e67c621f3d2dfa3232f859aaf963b725aca", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "zimage_golden_amber_glass" }, { "path": "template-gallery/janus_red_enamel_teapot.webp", @@ -4909,7 +5331,9 @@ "sourceUrl": "https://huggingface.co/deepseek-community/Janus-Pro-1B/tree/1655280bb75959cc1cb85529a2a8b26e7016072e", "sourceRevision": "deepseek-community/Janus-Pro-1B@1655280bb75959cc1cb85529a2a8b26e7016072e", "sourceLicense": "Maintainer-authorized file with publisher terms retained", - "modelTerms": ["https://github.com/deepseek-ai/Janus/blob/main/LICENSE-MODEL"], + "modelTerms": [ + "https://github.com/deepseek-ai/Janus/blob/main/LICENSE-MODEL" + ], "aiGenerated": true, "humanLikenessConsent": "synthetic", "marks": [], @@ -4934,7 +5358,9 @@ "sourceUrl": "https://huggingface.co/deepseek-community/Janus-Pro-1B/tree/1655280bb75959cc1cb85529a2a8b26e7016072e", "sourceRevision": "deepseek-community/Janus-Pro-1B@1655280bb75959cc1cb85529a2a8b26e7016072e", "sourceLicense": "Maintainer-authorized file with publisher terms retained", - "modelTerms": ["https://github.com/deepseek-ai/Janus/blob/main/LICENSE-MODEL"], + "modelTerms": [ + "https://github.com/deepseek-ai/Janus/blob/main/LICENSE-MODEL" + ], "aiGenerated": true, "humanLikenessConsent": "synthetic", "marks": [], @@ -4959,7 +5385,9 @@ "sourceUrl": "https://huggingface.co/deepseek-community/Janus-Pro-1B/tree/1655280bb75959cc1cb85529a2a8b26e7016072e", "sourceRevision": "deepseek-community/Janus-Pro-1B@1655280bb75959cc1cb85529a2a8b26e7016072e", "sourceLicense": "Maintainer-authorized file with publisher terms retained", - "modelTerms": ["https://github.com/deepseek-ai/Janus/blob/main/LICENSE-MODEL"], + "modelTerms": [ + "https://github.com/deepseek-ai/Janus/blob/main/LICENSE-MODEL" + ], "aiGenerated": true, "humanLikenessConsent": "synthetic", "marks": [], @@ -5809,6 +6237,33 @@ "publicationBasis": "Register the six approved assets now while Moonflower runs on Linux. Use Windows in parallel wherever possible, and keep the longer workflows separate for AMD cloud.", "provenanceTemplateId": "ltx_video_video_to_video" }, + { + "path": "template-gallery/lumina2_larch_on_glacial_pond.webp", + "sha256": "sha256:bytes:06491642cdf97ed7676ad237353957a42aa121a11d3f2423c1a4ac4dd6a53ee5", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Exact approved file captured from a saved MoDiff workflow", + "sourceUrl": "https://huggingface.co/Alpha-VLLM/Lumina-Image-2.0/tree/53504abd8178b30685b6c4c7a4cd181ff78b73e9", + "sourceRevision": "Alpha-VLLM/Lumina-Image-2.0@53504abd8178b30685b6c4c7a4cd181ff78b73e9", + "sourceLicense": "Maintainer-authorized file with publisher terms retained", + "modelTerms": [ + "Publisher model terms at https://huggingface.co/Alpha-VLLM/Lumina-Image-2.0/tree/53504abd8178b30685b6c4c7a4cd181ff78b73e9" + ], + "aiGenerated": true, + "humanLikenessConsent": "synthetic", + "marks": [], + "requiredAttribution": [ + "Alpha-VLLM/Lumina-Image-2.0@53504abd8178b30685b6c4c7a4cd181ff78b73e9 https://huggingface.co/Alpha-VLLM/Lumina-Image-2.0/tree/53504abd8178b30685b6c4c7a4cd181ff78b73e9" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "c2df9edb92f8ff905b6c9a138a285e67c621f3d2dfa3232f859aaf963b725aca", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "lumina2_larch_on_glacial_pond" + }, { "path": "template-gallery/lumina_opal_pendant_in_limestone.webp", "sha256": "sha256:bytes:3ff57e957b7db5ad20c9c37789a0536437846cdc8eb4737482cb7f026f25fb8e", @@ -5838,7 +6293,7 @@ }, { "path": "template-gallery/manifest.json", - "sha256": "sha256:bytes:e754f588addecb7b9d0a35ea3310c591907ab34785115f1bf653f2d92d65c42d", + "sha256": "sha256:bytes:ffa3e887c65d7eb2fe860611ac5eb042cd0645bcb2999b48552d6dd1d5a1eafa", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", @@ -5853,10 +6308,10 @@ "requiredAttribution": [], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", - "reviewedAt": "2026-11-24", + "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "d216f065bdc316366c6183592f657bcfbbd7cb05acd0e510c6b3877fe56bcec2", - "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped six saved cases with model terms retained." + "humanApprovalPacketSHA256": "c2df9edb92f8ff905b6c9a138a285e67c621f3d2dfa3232f859aaf963b725aca", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained." }, { "path": "template-gallery/marigold_depth_synthetic_ramp.webp", @@ -5897,7 +6352,9 @@ "aiGenerated": true, "humanLikenessConsent": "synthetic", "marks": [], - "requiredAttribution": ["AI-generated music — MiniMax-Music3"], + "requiredAttribution": [ + "AI-generated music — MiniMax-Music3" + ], "assetLicense": "Apache-2.0", "publisherLicenseUrl": "https://huggingface.co/MiniMaxAI/MiniMax-Music3/blob/fbdf52fbaaca799592917417eb05f1899f1255ec/LICENSE", "path": "template-gallery/minimax_music3_chamber_pop.wav", @@ -5938,6 +6395,33 @@ "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", "provenanceTemplateId": "ochre_paper_pavilion" }, + { + "path": "template-gallery/omnigen_tulips_after_rain.webp", + "sha256": "sha256:bytes:57d5f196f4abad78099482deeb23f37810075e6d708e289ca8eb4617acdbdde7", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Exact approved file captured from a saved MoDiff workflow", + "sourceUrl": "https://huggingface.co/Shitao/OmniGen-v1-diffusers/tree/016e2f61d12a98303f6bbdf122687694d7984268", + "sourceRevision": "Shitao/OmniGen-v1-diffusers@016e2f61d12a98303f6bbdf122687694d7984268", + "sourceLicense": "Maintainer-authorized file with publisher terms retained", + "modelTerms": [ + "Publisher model terms at https://huggingface.co/Shitao/OmniGen-v1-diffusers/tree/016e2f61d12a98303f6bbdf122687694d7984268" + ], + "aiGenerated": true, + "humanLikenessConsent": "synthetic", + "marks": [], + "requiredAttribution": [ + "Shitao/OmniGen-v1-diffusers@016e2f61d12a98303f6bbdf122687694d7984268 https://huggingface.co/Shitao/OmniGen-v1-diffusers/tree/016e2f61d12a98303f6bbdf122687694d7984268" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "c2df9edb92f8ff905b6c9a138a285e67c621f3d2dfa3232f859aaf963b725aca", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "omnigen_tulips_after_rain" + }, { "path": "template-gallery/persimmon_glaze.webp", "sha256": "sha256:bytes:0a8f757232720068dbf3ad94fa81e525c7e9d7260853680328019c43ded30279", @@ -6292,7 +6776,9 @@ ], "aiGenerated": true, "humanLikenessConsent": "synthetic", - "marks": ["TIDELINE: fictional cinema and event"], + "marks": [ + "TIDELINE: fictional cinema and event" + ], "requiredAttribution": [], "sourceRightsAttestation": "I hold the rights or permissions needed to publish this exact generated TIDELINE cinema image and its redacted technical/review records under Apache-2.0. The film event and cinema are fictional; no external image inputs or real-person likenesses were used.", "path": "template-gallery/qwen_low_vram_poster_layout.webp", @@ -6317,7 +6803,9 @@ ], "aiGenerated": true, "humanLikenessConsent": "synthetic", - "marks": ["MICA DROP: fictional product name"], + "marks": [ + "MICA DROP: fictional product name" + ], "requiredAttribution": [], "sourceRightsAttestation": "I approve this exact image as a reviewed concept with the stated design limitations and incomplete independent resource monitoring, without a fully guarded or hardware-qualification claim. I hold the rights or permissions needed to publish this generated MICA DROP image and its redacted technical/review metadata under Apache-2.0. The product is fictional in this example; no external image input or real-person likeness was used.", "path": "template-gallery/qwen_low_vram_product_concept.webp", @@ -6342,7 +6830,9 @@ ], "aiGenerated": true, "humanLikenessConsent": "synthetic", - "marks": ["KITE & ANVIL: fictional stationery brand"], + "marks": [ + "KITE & ANVIL: fictional stationery brand" + ], "requiredAttribution": [], "sourceRightsAttestation": "I hold the rights or permissions needed to publish this exact generated KITE & ANVIL stationery image and its redacted technical/review metadata under Apache-2.0. The stationery brand is fictional in this example; no external image inputs or real-person likenesses were used.", "path": "template-gallery/qwen_low_vram_text_rendering.webp", @@ -6471,7 +6961,9 @@ ], "aiGenerated": true, "humanLikenessConsent": "synthetic", - "marks": ["MATERIAL CULTURE: fictional exhibition title"], + "marks": [ + "MATERIAL CULTURE: fictional exhibition title" + ], "requiredAttribution": [], "sourceRightsAttestation": "I hold the rights or permissions needed to publish this exact generated MATERIAL CULTURE exhibition poster and its redacted technical/review metadata under Apache-2.0. The exhibition is fictional in this example; no external image inputs or real-person likenesses were used.", "path": "template-gallery/qwen_poster_logo_text.webp", @@ -6577,7 +7069,9 @@ ], "aiGenerated": true, "humanLikenessConsent": "synthetic", - "marks": ["VERDA 03: fictional product name in this generated example"], + "marks": [ + "VERDA 03: fictional product name in this generated example" + ], "requiredAttribution": [], "sourceRightsAttestation": "I hold the rights or permissions needed to publicly redistribute this exact generated VERDA 03 poster and its redacted technical and quality metadata under Apache-2.0. VERDA 03 is a fictional product name in this example; no external image inputs or real-person likenesses were used.", "path": "template-gallery/qwen_text_rendering.webp", @@ -7163,7 +7657,9 @@ "sourceUrl": "https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14", "sourceRevision": "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14", "sourceLicense": "Maintainer-authorized file with publisher terms retained", - "modelTerms": ["CreativeML Open RAIL-M at the pinned Stable Diffusion v1.5 revision."], + "modelTerms": [ + "CreativeML Open RAIL-M at the pinned Stable Diffusion v1.5 revision." + ], "aiGenerated": true, "humanLikenessConsent": "synthetic", "marks": [], @@ -7767,224 +8263,440 @@ "humanApprovalPacketSHA256": "95893cb17e10b15ae6b23d8b31b57b0e14b9af96f822d75edbc6b68971afb11d" }, { - "path": "template-gallery/reviews/cobalt_jug_and_lemons.original-provenance.json", - "sha256": "sha256:bytes:c9b80942080368a5e13eef6d01a31691034655d618c40ef89ab9bd1b0ade0c7e", + "path": "template-gallery/reviews/chroma_restored_cobalt_backdrop.original-provenance.json", + "sha256": "sha256:bytes:f87d18b81ff559f1298f0c780db0f5eb89e9f8219b4f4aff80c224bc3ef47ce4", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14", - "sourceRevision": "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14", + "sourceUrl": "https://huggingface.co/lodestones/Chroma1-HD/tree/0e0c60ece1e82b17cb7f77342d765ba5024c40c0", + "sourceRevision": "lodestones/Chroma1-HD@0e0c60ece1e82b17cb7f77342d765ba5024c40c0", "sourceLicense": "MoDiff-authored Gallery metadata", "modelTerms": [ - "creativeml-openrail-m. https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14" + "Publisher model terms at https://huggingface.co/lodestones/Chroma1-HD/tree/0e0c60ece1e82b17cb7f77342d765ba5024c40c0" ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14 https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14" + "lodestones/Chroma1-HD@0e0c60ece1e82b17cb7f77342d765ba5024c40c0 https://huggingface.co/lodestones/Chroma1-HD/tree/0e0c60ece1e82b17cb7f77342d765ba5024c40c0" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", - "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", - "provenanceTemplateId": "cobalt_jug_and_lemons" + "humanApprovalPacketSHA256": "c2df9edb92f8ff905b6c9a138a285e67c621f3d2dfa3232f859aaf963b725aca", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "chroma_restored_cobalt_backdrop" }, { - "path": "template-gallery/reviews/cobalt_jug_and_lemons.original-review.json", - "sha256": "sha256:bytes:f55b66df26013db2e002b925f1aceececec95ebd311a306bb082258f292751f1", + "path": "template-gallery/reviews/chroma_restored_cobalt_backdrop.original-review.json", + "sha256": "sha256:bytes:88d1fbfadc2e1d3456f492214f7e51da6bdfd253eb00343fb93990e16c9ba2b9", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14", - "sourceRevision": "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14", + "sourceUrl": "https://huggingface.co/lodestones/Chroma1-HD/tree/0e0c60ece1e82b17cb7f77342d765ba5024c40c0", + "sourceRevision": "lodestones/Chroma1-HD@0e0c60ece1e82b17cb7f77342d765ba5024c40c0", "sourceLicense": "MoDiff-authored Gallery metadata", "modelTerms": [ - "creativeml-openrail-m. https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14" + "Publisher model terms at https://huggingface.co/lodestones/Chroma1-HD/tree/0e0c60ece1e82b17cb7f77342d765ba5024c40c0" ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14 https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14" + "lodestones/Chroma1-HD@0e0c60ece1e82b17cb7f77342d765ba5024c40c0 https://huggingface.co/lodestones/Chroma1-HD/tree/0e0c60ece1e82b17cb7f77342d765ba5024c40c0" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", - "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", - "provenanceTemplateId": "cobalt_jug_and_lemons" + "humanApprovalPacketSHA256": "c2df9edb92f8ff905b6c9a138a285e67c621f3d2dfa3232f859aaf963b725aca", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "chroma_restored_cobalt_backdrop" }, { - "path": "template-gallery/reviews/cobalt_jug_and_lemons.quality-review.json", - "sha256": "sha256:bytes:da64a4e035bbe030a037ddfaf23a16946114d0e680c842f37976cc50ff8d6970", + "path": "template-gallery/reviews/chroma_restored_cobalt_backdrop.quality-review.json", + "sha256": "sha256:bytes:803c31f4eb055884cbe955856e99f9846f9259ae58ad6c883d686de581c0dd09", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14", - "sourceRevision": "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14", + "sourceUrl": "https://huggingface.co/lodestones/Chroma1-HD/tree/0e0c60ece1e82b17cb7f77342d765ba5024c40c0", + "sourceRevision": "lodestones/Chroma1-HD@0e0c60ece1e82b17cb7f77342d765ba5024c40c0", "sourceLicense": "MoDiff-authored Gallery metadata", "modelTerms": [ - "creativeml-openrail-m. https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14" + "Publisher model terms at https://huggingface.co/lodestones/Chroma1-HD/tree/0e0c60ece1e82b17cb7f77342d765ba5024c40c0" ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14 https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14" + "lodestones/Chroma1-HD@0e0c60ece1e82b17cb7f77342d765ba5024c40c0 https://huggingface.co/lodestones/Chroma1-HD/tree/0e0c60ece1e82b17cb7f77342d765ba5024c40c0" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", - "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", - "provenanceTemplateId": "cobalt_jug_and_lemons" + "humanApprovalPacketSHA256": "c2df9edb92f8ff905b6c9a138a285e67c621f3d2dfa3232f859aaf963b725aca", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "chroma_restored_cobalt_backdrop" }, { - "path": "template-gallery/reviews/cobalt_jug_and_lemons.retained-template-provenance.json", - "sha256": "sha256:bytes:066fee762cae8b5f92625cc71f4002422828b06115024c3ce11affd68f34544e", + "path": "template-gallery/reviews/chroma_restored_cobalt_backdrop.retained-template-provenance.json", + "sha256": "sha256:bytes:5232b12615a38293b0d86378fdde3003a61a8f5834de95f395a9364e12dd8fd4", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14", - "sourceRevision": "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14", + "sourceUrl": "https://huggingface.co/lodestones/Chroma1-HD/tree/0e0c60ece1e82b17cb7f77342d765ba5024c40c0", + "sourceRevision": "lodestones/Chroma1-HD@0e0c60ece1e82b17cb7f77342d765ba5024c40c0", "sourceLicense": "MoDiff-authored Gallery metadata", "modelTerms": [ - "creativeml-openrail-m. https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14" + "Publisher model terms at https://huggingface.co/lodestones/Chroma1-HD/tree/0e0c60ece1e82b17cb7f77342d765ba5024c40c0" ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14 https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14" + "lodestones/Chroma1-HD@0e0c60ece1e82b17cb7f77342d765ba5024c40c0 https://huggingface.co/lodestones/Chroma1-HD/tree/0e0c60ece1e82b17cb7f77342d765ba5024c40c0" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", - "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", - "provenanceTemplateId": "cobalt_jug_and_lemons" + "humanApprovalPacketSHA256": "c2df9edb92f8ff905b6c9a138a285e67c621f3d2dfa3232f859aaf963b725aca", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "chroma_restored_cobalt_backdrop" }, { - "path": "template-gallery/reviews/copper_hour_dunes.original-provenance.json", - "sha256": "sha256:bytes:6223329bd7a1a962703aefba1379c33dae7f57daa40a09aa8e77c1cdd05b099c", + "path": "template-gallery/reviews/chroma_terracotta_and_blue.original-provenance.json", + "sha256": "sha256:bytes:92a7762ec200afa64405b665dbd19d630b846f55bdb170fc08bfb5c588b1d258", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/Photoroom/prx-512-t2i-sft/tree/2996423bc26e8eaca48774fac1797484214dfea0", - "sourceRevision": "Photoroom/prx-512-t2i-sft@2996423bc26e8eaca48774fac1797484214dfea0", + "sourceUrl": "https://huggingface.co/lodestones/Chroma1-HD/tree/0e0c60ece1e82b17cb7f77342d765ba5024c40c0", + "sourceRevision": "lodestones/Chroma1-HD@0e0c60ece1e82b17cb7f77342d765ba5024c40c0", "sourceLicense": "MoDiff-authored Gallery metadata", "modelTerms": [ - "apache-2.0. https://huggingface.co/Photoroom/prx-512-t2i-sft/tree/2996423bc26e8eaca48774fac1797484214dfea0" + "https://huggingface.co/lodestones/Chroma1-HD/blob/0e0c60ece1e82b17cb7f77342d765ba5024c40c0/README.md" ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "Photoroom/prx-512-t2i-sft@2996423bc26e8eaca48774fac1797484214dfea0 https://huggingface.co/Photoroom/prx-512-t2i-sft/tree/2996423bc26e8eaca48774fac1797484214dfea0" + "lodestones/Chroma1-HD@0e0c60ece1e82b17cb7f77342d765ba5024c40c0 https://huggingface.co/lodestones/Chroma1-HD/tree/0e0c60ece1e82b17cb7f77342d765ba5024c40c0" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", - "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", - "provenanceTemplateId": "copper_hour_dunes" + "humanApprovalPacketSHA256": "c2df9edb92f8ff905b6c9a138a285e67c621f3d2dfa3232f859aaf963b725aca", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "chroma_terracotta_and_blue" }, { - "path": "template-gallery/reviews/copper_hour_dunes.original-review.json", - "sha256": "sha256:bytes:1da7406a3792d864c6aa0e010203a15d608a2f85372e530aabdeabfd7dc7e529", + "path": "template-gallery/reviews/chroma_terracotta_and_blue.original-review.json", + "sha256": "sha256:bytes:d935f45b897cc717315684e2b180097b2e3892d275b4c38e96f2a9ec930ae24f", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/Photoroom/prx-512-t2i-sft/tree/2996423bc26e8eaca48774fac1797484214dfea0", - "sourceRevision": "Photoroom/prx-512-t2i-sft@2996423bc26e8eaca48774fac1797484214dfea0", + "sourceUrl": "https://huggingface.co/lodestones/Chroma1-HD/tree/0e0c60ece1e82b17cb7f77342d765ba5024c40c0", + "sourceRevision": "lodestones/Chroma1-HD@0e0c60ece1e82b17cb7f77342d765ba5024c40c0", "sourceLicense": "MoDiff-authored Gallery metadata", "modelTerms": [ - "apache-2.0. https://huggingface.co/Photoroom/prx-512-t2i-sft/tree/2996423bc26e8eaca48774fac1797484214dfea0" + "https://huggingface.co/lodestones/Chroma1-HD/blob/0e0c60ece1e82b17cb7f77342d765ba5024c40c0/README.md" ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "Photoroom/prx-512-t2i-sft@2996423bc26e8eaca48774fac1797484214dfea0 https://huggingface.co/Photoroom/prx-512-t2i-sft/tree/2996423bc26e8eaca48774fac1797484214dfea0" + "lodestones/Chroma1-HD@0e0c60ece1e82b17cb7f77342d765ba5024c40c0 https://huggingface.co/lodestones/Chroma1-HD/tree/0e0c60ece1e82b17cb7f77342d765ba5024c40c0" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", - "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", - "provenanceTemplateId": "copper_hour_dunes" + "humanApprovalPacketSHA256": "c2df9edb92f8ff905b6c9a138a285e67c621f3d2dfa3232f859aaf963b725aca", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "chroma_terracotta_and_blue" }, { - "path": "template-gallery/reviews/copper_hour_dunes.quality-review.json", - "sha256": "sha256:bytes:bc0ce5cb8d1e26c9b3491f5d1653365ca11b5305b25cd32647b08398bf889e8f", + "path": "template-gallery/reviews/chroma_terracotta_and_blue.quality-review.json", + "sha256": "sha256:bytes:2435a255e05519ab5b750b4728217d7f938631213ffeeb6da882dcb184e9fa7b", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/Photoroom/prx-512-t2i-sft/tree/2996423bc26e8eaca48774fac1797484214dfea0", - "sourceRevision": "Photoroom/prx-512-t2i-sft@2996423bc26e8eaca48774fac1797484214dfea0", + "sourceUrl": "https://huggingface.co/lodestones/Chroma1-HD/tree/0e0c60ece1e82b17cb7f77342d765ba5024c40c0", + "sourceRevision": "lodestones/Chroma1-HD@0e0c60ece1e82b17cb7f77342d765ba5024c40c0", "sourceLicense": "MoDiff-authored Gallery metadata", "modelTerms": [ - "apache-2.0. https://huggingface.co/Photoroom/prx-512-t2i-sft/tree/2996423bc26e8eaca48774fac1797484214dfea0" + "https://huggingface.co/lodestones/Chroma1-HD/blob/0e0c60ece1e82b17cb7f77342d765ba5024c40c0/README.md" ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "Photoroom/prx-512-t2i-sft@2996423bc26e8eaca48774fac1797484214dfea0 https://huggingface.co/Photoroom/prx-512-t2i-sft/tree/2996423bc26e8eaca48774fac1797484214dfea0" + "lodestones/Chroma1-HD@0e0c60ece1e82b17cb7f77342d765ba5024c40c0 https://huggingface.co/lodestones/Chroma1-HD/tree/0e0c60ece1e82b17cb7f77342d765ba5024c40c0" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", - "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", - "provenanceTemplateId": "copper_hour_dunes" + "humanApprovalPacketSHA256": "c2df9edb92f8ff905b6c9a138a285e67c621f3d2dfa3232f859aaf963b725aca", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "chroma_terracotta_and_blue" }, { - "path": "template-gallery/reviews/copper_hour_dunes.retained-template-provenance.json", - "sha256": "sha256:bytes:b1d27bc198b128e1085d6b920a62dff73ed1684735c0d9b7eefbd28ab52d7e5b", + "path": "template-gallery/reviews/chroma_terracotta_and_blue.retained-template-provenance.json", + "sha256": "sha256:bytes:95d0a67308f0dd2b8024a39cacca3fcfd82611a03d01f76a38a429dd1c4c2077", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/Photoroom/prx-512-t2i-sft/tree/2996423bc26e8eaca48774fac1797484214dfea0", - "sourceRevision": "Photoroom/prx-512-t2i-sft@2996423bc26e8eaca48774fac1797484214dfea0", + "sourceUrl": "https://huggingface.co/lodestones/Chroma1-HD/tree/0e0c60ece1e82b17cb7f77342d765ba5024c40c0", + "sourceRevision": "lodestones/Chroma1-HD@0e0c60ece1e82b17cb7f77342d765ba5024c40c0", "sourceLicense": "MoDiff-authored Gallery metadata", "modelTerms": [ - "apache-2.0. https://huggingface.co/Photoroom/prx-512-t2i-sft/tree/2996423bc26e8eaca48774fac1797484214dfea0" + "https://huggingface.co/lodestones/Chroma1-HD/blob/0e0c60ece1e82b17cb7f77342d765ba5024c40c0/README.md" ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "Photoroom/prx-512-t2i-sft@2996423bc26e8eaca48774fac1797484214dfea0 https://huggingface.co/Photoroom/prx-512-t2i-sft/tree/2996423bc26e8eaca48774fac1797484214dfea0" + "lodestones/Chroma1-HD@0e0c60ece1e82b17cb7f77342d765ba5024c40c0 https://huggingface.co/lodestones/Chroma1-HD/tree/0e0c60ece1e82b17cb7f77342d765ba5024c40c0" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", - "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", - "provenanceTemplateId": "copper_hour_dunes" + "humanApprovalPacketSHA256": "c2df9edb92f8ff905b6c9a138a285e67c621f3d2dfa3232f859aaf963b725aca", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "chroma_terracotta_and_blue" }, { - "path": "template-gallery/reviews/ddim_cifar10_preview.original-provenance.json", - "sha256": "sha256:bytes:8fc838dd4bc701aa0c65e6b2630cc749d05736d23623591e3d1ac5af3d6b93d9", + "path": "template-gallery/reviews/cobalt_jug_and_lemons.original-provenance.json", + "sha256": "sha256:bytes:c9b80942080368a5e13eef6d01a31691034655d618c40ef89ab9bd1b0ade0c7e", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14", + "sourceRevision": "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "creativeml-openrail-m. https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14" + ], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14 https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", + "provenanceTemplateId": "cobalt_jug_and_lemons" + }, + { + "path": "template-gallery/reviews/cobalt_jug_and_lemons.original-review.json", + "sha256": "sha256:bytes:f55b66df26013db2e002b925f1aceececec95ebd311a306bb082258f292751f1", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14", + "sourceRevision": "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "creativeml-openrail-m. https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14" + ], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14 https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", + "provenanceTemplateId": "cobalt_jug_and_lemons" + }, + { + "path": "template-gallery/reviews/cobalt_jug_and_lemons.quality-review.json", + "sha256": "sha256:bytes:da64a4e035bbe030a037ddfaf23a16946114d0e680c842f37976cc50ff8d6970", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14", + "sourceRevision": "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "creativeml-openrail-m. https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14" + ], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14 https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", + "provenanceTemplateId": "cobalt_jug_and_lemons" + }, + { + "path": "template-gallery/reviews/cobalt_jug_and_lemons.retained-template-provenance.json", + "sha256": "sha256:bytes:066fee762cae8b5f92625cc71f4002422828b06115024c3ce11affd68f34544e", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14", + "sourceRevision": "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "creativeml-openrail-m. https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14" + ], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14 https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", + "provenanceTemplateId": "cobalt_jug_and_lemons" + }, + { + "path": "template-gallery/reviews/copper_hour_dunes.original-provenance.json", + "sha256": "sha256:bytes:6223329bd7a1a962703aefba1379c33dae7f57daa40a09aa8e77c1cdd05b099c", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/Photoroom/prx-512-t2i-sft/tree/2996423bc26e8eaca48774fac1797484214dfea0", + "sourceRevision": "Photoroom/prx-512-t2i-sft@2996423bc26e8eaca48774fac1797484214dfea0", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "apache-2.0. https://huggingface.co/Photoroom/prx-512-t2i-sft/tree/2996423bc26e8eaca48774fac1797484214dfea0" + ], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "Photoroom/prx-512-t2i-sft@2996423bc26e8eaca48774fac1797484214dfea0 https://huggingface.co/Photoroom/prx-512-t2i-sft/tree/2996423bc26e8eaca48774fac1797484214dfea0" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", + "provenanceTemplateId": "copper_hour_dunes" + }, + { + "path": "template-gallery/reviews/copper_hour_dunes.original-review.json", + "sha256": "sha256:bytes:1da7406a3792d864c6aa0e010203a15d608a2f85372e530aabdeabfd7dc7e529", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/Photoroom/prx-512-t2i-sft/tree/2996423bc26e8eaca48774fac1797484214dfea0", + "sourceRevision": "Photoroom/prx-512-t2i-sft@2996423bc26e8eaca48774fac1797484214dfea0", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "apache-2.0. https://huggingface.co/Photoroom/prx-512-t2i-sft/tree/2996423bc26e8eaca48774fac1797484214dfea0" + ], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "Photoroom/prx-512-t2i-sft@2996423bc26e8eaca48774fac1797484214dfea0 https://huggingface.co/Photoroom/prx-512-t2i-sft/tree/2996423bc26e8eaca48774fac1797484214dfea0" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", + "provenanceTemplateId": "copper_hour_dunes" + }, + { + "path": "template-gallery/reviews/copper_hour_dunes.quality-review.json", + "sha256": "sha256:bytes:bc0ce5cb8d1e26c9b3491f5d1653365ca11b5305b25cd32647b08398bf889e8f", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/Photoroom/prx-512-t2i-sft/tree/2996423bc26e8eaca48774fac1797484214dfea0", + "sourceRevision": "Photoroom/prx-512-t2i-sft@2996423bc26e8eaca48774fac1797484214dfea0", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "apache-2.0. https://huggingface.co/Photoroom/prx-512-t2i-sft/tree/2996423bc26e8eaca48774fac1797484214dfea0" + ], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "Photoroom/prx-512-t2i-sft@2996423bc26e8eaca48774fac1797484214dfea0 https://huggingface.co/Photoroom/prx-512-t2i-sft/tree/2996423bc26e8eaca48774fac1797484214dfea0" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", + "provenanceTemplateId": "copper_hour_dunes" + }, + { + "path": "template-gallery/reviews/copper_hour_dunes.retained-template-provenance.json", + "sha256": "sha256:bytes:b1d27bc198b128e1085d6b920a62dff73ed1684735c0d9b7eefbd28ab52d7e5b", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/Photoroom/prx-512-t2i-sft/tree/2996423bc26e8eaca48774fac1797484214dfea0", + "sourceRevision": "Photoroom/prx-512-t2i-sft@2996423bc26e8eaca48774fac1797484214dfea0", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "apache-2.0. https://huggingface.co/Photoroom/prx-512-t2i-sft/tree/2996423bc26e8eaca48774fac1797484214dfea0" + ], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "Photoroom/prx-512-t2i-sft@2996423bc26e8eaca48774fac1797484214dfea0 https://huggingface.co/Photoroom/prx-512-t2i-sft/tree/2996423bc26e8eaca48774fac1797484214dfea0" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", + "provenanceTemplateId": "copper_hour_dunes" + }, + { + "path": "template-gallery/reviews/ddim_cifar10_preview.original-provenance.json", + "sha256": "sha256:bytes:8fc838dd4bc701aa0c65e6b2630cc749d05736d23623591e3d1ac5af3d6b93d9", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", @@ -9687,7 +10399,9 @@ "sourceUrl": "https://huggingface.co/zai-org/GLM-Image/tree/2c433cc0cbc293bde2ac8ca9624f279b5d23fcf4", "sourceRevision": "zai-org/GLM-Image@2c433cc0cbc293bde2ac8ca9624f279b5d23fcf4", "sourceLicense": "MoDiff-authored Gallery metadata", - "modelTerms": ["mit. https://huggingface.co/zai-org/GLM-Image/tree/2c433cc0cbc293bde2ac8ca9624f279b5d23fcf4"], + "modelTerms": [ + "mit. https://huggingface.co/zai-org/GLM-Image/tree/2c433cc0cbc293bde2ac8ca9624f279b5d23fcf4" + ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], @@ -9712,7 +10426,9 @@ "sourceUrl": "https://huggingface.co/zai-org/GLM-Image/tree/2c433cc0cbc293bde2ac8ca9624f279b5d23fcf4", "sourceRevision": "zai-org/GLM-Image@2c433cc0cbc293bde2ac8ca9624f279b5d23fcf4", "sourceLicense": "MoDiff-authored Gallery metadata", - "modelTerms": ["mit. https://huggingface.co/zai-org/GLM-Image/tree/2c433cc0cbc293bde2ac8ca9624f279b5d23fcf4"], + "modelTerms": [ + "mit. https://huggingface.co/zai-org/GLM-Image/tree/2c433cc0cbc293bde2ac8ca9624f279b5d23fcf4" + ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], @@ -9737,7 +10453,9 @@ "sourceUrl": "https://huggingface.co/zai-org/GLM-Image/tree/2c433cc0cbc293bde2ac8ca9624f279b5d23fcf4", "sourceRevision": "zai-org/GLM-Image@2c433cc0cbc293bde2ac8ca9624f279b5d23fcf4", "sourceLicense": "MoDiff-authored Gallery metadata", - "modelTerms": ["mit. https://huggingface.co/zai-org/GLM-Image/tree/2c433cc0cbc293bde2ac8ca9624f279b5d23fcf4"], + "modelTerms": [ + "mit. https://huggingface.co/zai-org/GLM-Image/tree/2c433cc0cbc293bde2ac8ca9624f279b5d23fcf4" + ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], @@ -9762,7 +10480,9 @@ "sourceUrl": "https://huggingface.co/zai-org/GLM-Image/tree/2c433cc0cbc293bde2ac8ca9624f279b5d23fcf4", "sourceRevision": "zai-org/GLM-Image@2c433cc0cbc293bde2ac8ca9624f279b5d23fcf4", "sourceLicense": "MoDiff-authored Gallery metadata", - "modelTerms": ["mit. https://huggingface.co/zai-org/GLM-Image/tree/2c433cc0cbc293bde2ac8ca9624f279b5d23fcf4"], + "modelTerms": [ + "mit. https://huggingface.co/zai-org/GLM-Image/tree/2c433cc0cbc293bde2ac8ca9624f279b5d23fcf4" + ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], @@ -9930,83 +10650,224 @@ "humanApprovalPacketSHA256": "dcea9bcff1de179dad3357926933fe869b99c063cee0f4dc1764833e3cf3ea53" }, { - "path": "template-gallery/reviews/janus_red_enamel_teapot.original-provenance.json", - "sha256": "sha256:bytes:170501bd8a025aa58341bc17322a6c9f8448be401b7263fdc9c5e9b449d1cb87", + "path": "template-gallery/reviews/hunyuan_dit_coastal_lighthouse.original-provenance.json", + "sha256": "sha256:bytes:cc5c37061625ef1e2bebb027601e368286272e22d4c68cbe63ea690cfe5871ae", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/deepseek-community/Janus-Pro-1B/tree/1655280bb75959cc1cb85529a2a8b26e7016072e", - "sourceRevision": "deepseek-community/Janus-Pro-1B@1655280bb75959cc1cb85529a2a8b26e7016072e", + "sourceUrl": "https://huggingface.co/Tencent-Hunyuan/HunyuanDiT-v1.2-Diffusers-Distilled/tree/ba991d1546d8c50936c4c16398ed0a87b9b99fb1", + "sourceRevision": "Tencent-Hunyuan/HunyuanDiT-v1.2-Diffusers-Distilled@ba991d1546d8c50936c4c16398ed0a87b9b99fb1", "sourceLicense": "MoDiff-authored Gallery metadata", - "modelTerms": ["https://github.com/deepseek-ai/Janus/blob/main/LICENSE-MODEL"], + "modelTerms": [ + "Publisher model terms at https://huggingface.co/Tencent-Hunyuan/HunyuanDiT-v1.2-Diffusers-Distilled/tree/ba991d1546d8c50936c4c16398ed0a87b9b99fb1" + ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "deepseek-community/Janus-Pro-1B@1655280bb75959cc1cb85529a2a8b26e7016072e https://huggingface.co/deepseek-community/Janus-Pro-1B/tree/1655280bb75959cc1cb85529a2a8b26e7016072e" + "Tencent-Hunyuan/HunyuanDiT-v1.2-Diffusers-Distilled@ba991d1546d8c50936c4c16398ed0a87b9b99fb1 https://huggingface.co/Tencent-Hunyuan/HunyuanDiT-v1.2-Diffusers-Distilled/tree/ba991d1546d8c50936c4c16398ed0a87b9b99fb1" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", - "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", - "provenanceTemplateId": "janus_red_enamel_teapot" + "humanApprovalPacketSHA256": "c2df9edb92f8ff905b6c9a138a285e67c621f3d2dfa3232f859aaf963b725aca", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "hunyuan_dit_coastal_lighthouse" }, { - "path": "template-gallery/reviews/janus_red_enamel_teapot.original-review.json", - "sha256": "sha256:bytes:05d63ee8fe6f5ef33cb0ea16988861ffbbd99e0f7317b039b01c41a67eb4f5f8", + "path": "template-gallery/reviews/hunyuan_dit_coastal_lighthouse.original-review.json", + "sha256": "sha256:bytes:ce4389778a7088b592491f31f36d88e5ea83a438d937a9b4c4cb61facc98c0ee", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/deepseek-community/Janus-Pro-1B/tree/1655280bb75959cc1cb85529a2a8b26e7016072e", - "sourceRevision": "deepseek-community/Janus-Pro-1B@1655280bb75959cc1cb85529a2a8b26e7016072e", + "sourceUrl": "https://huggingface.co/Tencent-Hunyuan/HunyuanDiT-v1.2-Diffusers-Distilled/tree/ba991d1546d8c50936c4c16398ed0a87b9b99fb1", + "sourceRevision": "Tencent-Hunyuan/HunyuanDiT-v1.2-Diffusers-Distilled@ba991d1546d8c50936c4c16398ed0a87b9b99fb1", "sourceLicense": "MoDiff-authored Gallery metadata", - "modelTerms": ["https://github.com/deepseek-ai/Janus/blob/main/LICENSE-MODEL"], + "modelTerms": [ + "Publisher model terms at https://huggingface.co/Tencent-Hunyuan/HunyuanDiT-v1.2-Diffusers-Distilled/tree/ba991d1546d8c50936c4c16398ed0a87b9b99fb1" + ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "deepseek-community/Janus-Pro-1B@1655280bb75959cc1cb85529a2a8b26e7016072e https://huggingface.co/deepseek-community/Janus-Pro-1B/tree/1655280bb75959cc1cb85529a2a8b26e7016072e" + "Tencent-Hunyuan/HunyuanDiT-v1.2-Diffusers-Distilled@ba991d1546d8c50936c4c16398ed0a87b9b99fb1 https://huggingface.co/Tencent-Hunyuan/HunyuanDiT-v1.2-Diffusers-Distilled/tree/ba991d1546d8c50936c4c16398ed0a87b9b99fb1" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", - "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", - "provenanceTemplateId": "janus_red_enamel_teapot" + "humanApprovalPacketSHA256": "c2df9edb92f8ff905b6c9a138a285e67c621f3d2dfa3232f859aaf963b725aca", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "hunyuan_dit_coastal_lighthouse" }, { - "path": "template-gallery/reviews/janus_red_enamel_teapot.quality-review.json", - "sha256": "sha256:bytes:b9d911046c3faff978d22cb397ee2a95d23608240d18674dc68fb5b957783f90", + "path": "template-gallery/reviews/hunyuan_dit_coastal_lighthouse.quality-review.json", + "sha256": "sha256:bytes:1954559ecbd9de2986fffc2134ea20628a05ada4a85bf2db8a40137a02bedee6", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/deepseek-community/Janus-Pro-1B/tree/1655280bb75959cc1cb85529a2a8b26e7016072e", - "sourceRevision": "deepseek-community/Janus-Pro-1B@1655280bb75959cc1cb85529a2a8b26e7016072e", + "sourceUrl": "https://huggingface.co/Tencent-Hunyuan/HunyuanDiT-v1.2-Diffusers-Distilled/tree/ba991d1546d8c50936c4c16398ed0a87b9b99fb1", + "sourceRevision": "Tencent-Hunyuan/HunyuanDiT-v1.2-Diffusers-Distilled@ba991d1546d8c50936c4c16398ed0a87b9b99fb1", "sourceLicense": "MoDiff-authored Gallery metadata", - "modelTerms": ["https://github.com/deepseek-ai/Janus/blob/main/LICENSE-MODEL"], + "modelTerms": [ + "Publisher model terms at https://huggingface.co/Tencent-Hunyuan/HunyuanDiT-v1.2-Diffusers-Distilled/tree/ba991d1546d8c50936c4c16398ed0a87b9b99fb1" + ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "deepseek-community/Janus-Pro-1B@1655280bb75959cc1cb85529a2a8b26e7016072e https://huggingface.co/deepseek-community/Janus-Pro-1B/tree/1655280bb75959cc1cb85529a2a8b26e7016072e" + "Tencent-Hunyuan/HunyuanDiT-v1.2-Diffusers-Distilled@ba991d1546d8c50936c4c16398ed0a87b9b99fb1 https://huggingface.co/Tencent-Hunyuan/HunyuanDiT-v1.2-Diffusers-Distilled/tree/ba991d1546d8c50936c4c16398ed0a87b9b99fb1" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", - "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", - "provenanceTemplateId": "janus_red_enamel_teapot" + "humanApprovalPacketSHA256": "c2df9edb92f8ff905b6c9a138a285e67c621f3d2dfa3232f859aaf963b725aca", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "hunyuan_dit_coastal_lighthouse" }, { - "path": "template-gallery/reviews/janus_red_enamel_teapot.retained-template-provenance.json", - "sha256": "sha256:bytes:7fc41c79f10344c5621f2184f7086b4b33daf929d83e37e099e9c0e3fc16aa2d", + "path": "template-gallery/reviews/hunyuan_dit_coastal_lighthouse.retained-template-provenance.json", + "sha256": "sha256:bytes:abcd8ff508cca890cb7be179f5e85d5d0f6eed116e47ec2faad168a174d0d9e0", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/Tencent-Hunyuan/HunyuanDiT-v1.2-Diffusers-Distilled/tree/ba991d1546d8c50936c4c16398ed0a87b9b99fb1", + "sourceRevision": "Tencent-Hunyuan/HunyuanDiT-v1.2-Diffusers-Distilled@ba991d1546d8c50936c4c16398ed0a87b9b99fb1", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "Publisher model terms at https://huggingface.co/Tencent-Hunyuan/HunyuanDiT-v1.2-Diffusers-Distilled/tree/ba991d1546d8c50936c4c16398ed0a87b9b99fb1" + ], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "Tencent-Hunyuan/HunyuanDiT-v1.2-Diffusers-Distilled@ba991d1546d8c50936c4c16398ed0a87b9b99fb1 https://huggingface.co/Tencent-Hunyuan/HunyuanDiT-v1.2-Diffusers-Distilled/tree/ba991d1546d8c50936c4c16398ed0a87b9b99fb1" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "c2df9edb92f8ff905b6c9a138a285e67c621f3d2dfa3232f859aaf963b725aca", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "hunyuan_dit_coastal_lighthouse" + }, + { + "path": "template-gallery/reviews/hunyuan_pag_burgundy_knight.original-provenance.json", + "sha256": "sha256:bytes:c2c30ee01a229dc1a2eafbc42f8e22d19626533c158ebeb4211ddc64f1ac9a9c", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/Tencent-Hunyuan/HunyuanDiT-v1.2-Diffusers-Distilled/tree/ba991d1546d8c50936c4c16398ed0a87b9b99fb1", + "sourceRevision": "Tencent-Hunyuan/HunyuanDiT-v1.2-Diffusers-Distilled@ba991d1546d8c50936c4c16398ed0a87b9b99fb1", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "Publisher model terms at https://huggingface.co/Tencent-Hunyuan/HunyuanDiT-v1.2-Diffusers-Distilled/tree/ba991d1546d8c50936c4c16398ed0a87b9b99fb1" + ], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "Tencent-Hunyuan/HunyuanDiT-v1.2-Diffusers-Distilled@ba991d1546d8c50936c4c16398ed0a87b9b99fb1 https://huggingface.co/Tencent-Hunyuan/HunyuanDiT-v1.2-Diffusers-Distilled/tree/ba991d1546d8c50936c4c16398ed0a87b9b99fb1" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "c2df9edb92f8ff905b6c9a138a285e67c621f3d2dfa3232f859aaf963b725aca", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "hunyuan_pag_burgundy_knight" + }, + { + "path": "template-gallery/reviews/hunyuan_pag_burgundy_knight.original-review.json", + "sha256": "sha256:bytes:b472ba6d082486f25d5c17cf3da66d6d376e9add58924f6d0acbee2e21552588", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/Tencent-Hunyuan/HunyuanDiT-v1.2-Diffusers-Distilled/tree/ba991d1546d8c50936c4c16398ed0a87b9b99fb1", + "sourceRevision": "Tencent-Hunyuan/HunyuanDiT-v1.2-Diffusers-Distilled@ba991d1546d8c50936c4c16398ed0a87b9b99fb1", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "Publisher model terms at https://huggingface.co/Tencent-Hunyuan/HunyuanDiT-v1.2-Diffusers-Distilled/tree/ba991d1546d8c50936c4c16398ed0a87b9b99fb1" + ], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "Tencent-Hunyuan/HunyuanDiT-v1.2-Diffusers-Distilled@ba991d1546d8c50936c4c16398ed0a87b9b99fb1 https://huggingface.co/Tencent-Hunyuan/HunyuanDiT-v1.2-Diffusers-Distilled/tree/ba991d1546d8c50936c4c16398ed0a87b9b99fb1" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "c2df9edb92f8ff905b6c9a138a285e67c621f3d2dfa3232f859aaf963b725aca", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "hunyuan_pag_burgundy_knight" + }, + { + "path": "template-gallery/reviews/hunyuan_pag_burgundy_knight.quality-review.json", + "sha256": "sha256:bytes:f771127b2e2c8e93148f34e1ab5901488a5c7129f3e8608dcf5a9951f3e12645", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/Tencent-Hunyuan/HunyuanDiT-v1.2-Diffusers-Distilled/tree/ba991d1546d8c50936c4c16398ed0a87b9b99fb1", + "sourceRevision": "Tencent-Hunyuan/HunyuanDiT-v1.2-Diffusers-Distilled@ba991d1546d8c50936c4c16398ed0a87b9b99fb1", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "Publisher model terms at https://huggingface.co/Tencent-Hunyuan/HunyuanDiT-v1.2-Diffusers-Distilled/tree/ba991d1546d8c50936c4c16398ed0a87b9b99fb1" + ], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "Tencent-Hunyuan/HunyuanDiT-v1.2-Diffusers-Distilled@ba991d1546d8c50936c4c16398ed0a87b9b99fb1 https://huggingface.co/Tencent-Hunyuan/HunyuanDiT-v1.2-Diffusers-Distilled/tree/ba991d1546d8c50936c4c16398ed0a87b9b99fb1" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "c2df9edb92f8ff905b6c9a138a285e67c621f3d2dfa3232f859aaf963b725aca", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "hunyuan_pag_burgundy_knight" + }, + { + "path": "template-gallery/reviews/hunyuan_pag_burgundy_knight.retained-template-provenance.json", + "sha256": "sha256:bytes:dbbb8bbab6db6dd38ae97f532ed1a4c865d0a706c64ea02c4dbafa18b4ce1fea", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/Tencent-Hunyuan/HunyuanDiT-v1.2-Diffusers-Distilled/tree/ba991d1546d8c50936c4c16398ed0a87b9b99fb1", + "sourceRevision": "Tencent-Hunyuan/HunyuanDiT-v1.2-Diffusers-Distilled@ba991d1546d8c50936c4c16398ed0a87b9b99fb1", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "Publisher model terms at https://huggingface.co/Tencent-Hunyuan/HunyuanDiT-v1.2-Diffusers-Distilled/tree/ba991d1546d8c50936c4c16398ed0a87b9b99fb1" + ], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "Tencent-Hunyuan/HunyuanDiT-v1.2-Diffusers-Distilled@ba991d1546d8c50936c4c16398ed0a87b9b99fb1 https://huggingface.co/Tencent-Hunyuan/HunyuanDiT-v1.2-Diffusers-Distilled/tree/ba991d1546d8c50936c4c16398ed0a87b9b99fb1" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "c2df9edb92f8ff905b6c9a138a285e67c621f3d2dfa3232f859aaf963b725aca", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "hunyuan_pag_burgundy_knight" + }, + { + "path": "template-gallery/reviews/janus_red_enamel_teapot.original-provenance.json", + "sha256": "sha256:bytes:170501bd8a025aa58341bc17322a6c9f8448be401b7263fdc9c5e9b449d1cb87", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", @@ -10014,7 +10875,90 @@ "sourceUrl": "https://huggingface.co/deepseek-community/Janus-Pro-1B/tree/1655280bb75959cc1cb85529a2a8b26e7016072e", "sourceRevision": "deepseek-community/Janus-Pro-1B@1655280bb75959cc1cb85529a2a8b26e7016072e", "sourceLicense": "MoDiff-authored Gallery metadata", - "modelTerms": ["https://github.com/deepseek-ai/Janus/blob/main/LICENSE-MODEL"], + "modelTerms": [ + "https://github.com/deepseek-ai/Janus/blob/main/LICENSE-MODEL" + ], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "deepseek-community/Janus-Pro-1B@1655280bb75959cc1cb85529a2a8b26e7016072e https://huggingface.co/deepseek-community/Janus-Pro-1B/tree/1655280bb75959cc1cb85529a2a8b26e7016072e" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", + "provenanceTemplateId": "janus_red_enamel_teapot" + }, + { + "path": "template-gallery/reviews/janus_red_enamel_teapot.original-review.json", + "sha256": "sha256:bytes:05d63ee8fe6f5ef33cb0ea16988861ffbbd99e0f7317b039b01c41a67eb4f5f8", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/deepseek-community/Janus-Pro-1B/tree/1655280bb75959cc1cb85529a2a8b26e7016072e", + "sourceRevision": "deepseek-community/Janus-Pro-1B@1655280bb75959cc1cb85529a2a8b26e7016072e", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "https://github.com/deepseek-ai/Janus/blob/main/LICENSE-MODEL" + ], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "deepseek-community/Janus-Pro-1B@1655280bb75959cc1cb85529a2a8b26e7016072e https://huggingface.co/deepseek-community/Janus-Pro-1B/tree/1655280bb75959cc1cb85529a2a8b26e7016072e" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", + "provenanceTemplateId": "janus_red_enamel_teapot" + }, + { + "path": "template-gallery/reviews/janus_red_enamel_teapot.quality-review.json", + "sha256": "sha256:bytes:b9d911046c3faff978d22cb397ee2a95d23608240d18674dc68fb5b957783f90", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/deepseek-community/Janus-Pro-1B/tree/1655280bb75959cc1cb85529a2a8b26e7016072e", + "sourceRevision": "deepseek-community/Janus-Pro-1B@1655280bb75959cc1cb85529a2a8b26e7016072e", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "https://github.com/deepseek-ai/Janus/blob/main/LICENSE-MODEL" + ], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "deepseek-community/Janus-Pro-1B@1655280bb75959cc1cb85529a2a8b26e7016072e https://huggingface.co/deepseek-community/Janus-Pro-1B/tree/1655280bb75959cc1cb85529a2a8b26e7016072e" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", + "provenanceTemplateId": "janus_red_enamel_teapot" + }, + { + "path": "template-gallery/reviews/janus_red_enamel_teapot.retained-template-provenance.json", + "sha256": "sha256:bytes:7fc41c79f10344c5621f2184f7086b4b33daf929d83e37e099e9c0e3fc16aa2d", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/deepseek-community/Janus-Pro-1B/tree/1655280bb75959cc1cb85529a2a8b26e7016072e", + "sourceRevision": "deepseek-community/Janus-Pro-1B@1655280bb75959cc1cb85529a2a8b26e7016072e", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "https://github.com/deepseek-ai/Janus/blob/main/LICENSE-MODEL" + ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], @@ -10039,7 +10983,9 @@ "sourceUrl": "https://huggingface.co/deepseek-community/Janus-Pro-1B/tree/1655280bb75959cc1cb85529a2a8b26e7016072e", "sourceRevision": "deepseek-community/Janus-Pro-1B@1655280bb75959cc1cb85529a2a8b26e7016072e", "sourceLicense": "MoDiff-authored Gallery metadata", - "modelTerms": ["https://github.com/deepseek-ai/Janus/blob/main/LICENSE-MODEL"], + "modelTerms": [ + "https://github.com/deepseek-ai/Janus/blob/main/LICENSE-MODEL" + ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], @@ -10064,7 +11010,9 @@ "sourceUrl": "https://huggingface.co/deepseek-community/Janus-Pro-1B/tree/1655280bb75959cc1cb85529a2a8b26e7016072e", "sourceRevision": "deepseek-community/Janus-Pro-1B@1655280bb75959cc1cb85529a2a8b26e7016072e", "sourceLicense": "MoDiff-authored Gallery metadata", - "modelTerms": ["https://github.com/deepseek-ai/Janus/blob/main/LICENSE-MODEL"], + "modelTerms": [ + "https://github.com/deepseek-ai/Janus/blob/main/LICENSE-MODEL" + ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], @@ -10089,7 +11037,9 @@ "sourceUrl": "https://huggingface.co/deepseek-community/Janus-Pro-1B/tree/1655280bb75959cc1cb85529a2a8b26e7016072e", "sourceRevision": "deepseek-community/Janus-Pro-1B@1655280bb75959cc1cb85529a2a8b26e7016072e", "sourceLicense": "MoDiff-authored Gallery metadata", - "modelTerms": ["https://github.com/deepseek-ai/Janus/blob/main/LICENSE-MODEL"], + "modelTerms": [ + "https://github.com/deepseek-ai/Janus/blob/main/LICENSE-MODEL" + ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], @@ -10114,7 +11064,9 @@ "sourceUrl": "https://huggingface.co/deepseek-community/Janus-Pro-1B/tree/1655280bb75959cc1cb85529a2a8b26e7016072e", "sourceRevision": "deepseek-community/Janus-Pro-1B@1655280bb75959cc1cb85529a2a8b26e7016072e", "sourceLicense": "MoDiff-authored Gallery metadata", - "modelTerms": ["https://github.com/deepseek-ai/Janus/blob/main/LICENSE-MODEL"], + "modelTerms": [ + "https://github.com/deepseek-ai/Janus/blob/main/LICENSE-MODEL" + ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], @@ -10139,7 +11091,9 @@ "sourceUrl": "https://huggingface.co/deepseek-community/Janus-Pro-1B/tree/1655280bb75959cc1cb85529a2a8b26e7016072e", "sourceRevision": "deepseek-community/Janus-Pro-1B@1655280bb75959cc1cb85529a2a8b26e7016072e", "sourceLicense": "MoDiff-authored Gallery metadata", - "modelTerms": ["https://github.com/deepseek-ai/Janus/blob/main/LICENSE-MODEL"], + "modelTerms": [ + "https://github.com/deepseek-ai/Janus/blob/main/LICENSE-MODEL" + ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], @@ -10164,7 +11118,9 @@ "sourceUrl": "https://huggingface.co/deepseek-community/Janus-Pro-1B/tree/1655280bb75959cc1cb85529a2a8b26e7016072e", "sourceRevision": "deepseek-community/Janus-Pro-1B@1655280bb75959cc1cb85529a2a8b26e7016072e", "sourceLicense": "MoDiff-authored Gallery metadata", - "modelTerms": ["https://github.com/deepseek-ai/Janus/blob/main/LICENSE-MODEL"], + "modelTerms": [ + "https://github.com/deepseek-ai/Janus/blob/main/LICENSE-MODEL" + ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], @@ -10189,7 +11145,9 @@ "sourceUrl": "https://huggingface.co/deepseek-community/Janus-Pro-1B/tree/1655280bb75959cc1cb85529a2a8b26e7016072e", "sourceRevision": "deepseek-community/Janus-Pro-1B@1655280bb75959cc1cb85529a2a8b26e7016072e", "sourceLicense": "MoDiff-authored Gallery metadata", - "modelTerms": ["https://github.com/deepseek-ai/Janus/blob/main/LICENSE-MODEL"], + "modelTerms": [ + "https://github.com/deepseek-ai/Janus/blob/main/LICENSE-MODEL" + ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], @@ -10214,7 +11172,9 @@ "sourceUrl": "https://huggingface.co/deepseek-community/Janus-Pro-1B/tree/1655280bb75959cc1cb85529a2a8b26e7016072e", "sourceRevision": "deepseek-community/Janus-Pro-1B@1655280bb75959cc1cb85529a2a8b26e7016072e", "sourceLicense": "MoDiff-authored Gallery metadata", - "modelTerms": ["https://github.com/deepseek-ai/Janus/blob/main/LICENSE-MODEL"], + "modelTerms": [ + "https://github.com/deepseek-ai/Janus/blob/main/LICENSE-MODEL" + ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], @@ -10697,6 +11657,114 @@ "publicationBasis": "Register the six approved assets now while Moonflower runs on Linux. Use Windows in parallel wherever possible, and keep the longer workflows separate for AMD cloud.", "provenanceTemplateId": "ltx_video_video_to_video" }, + { + "path": "template-gallery/reviews/lumina2_larch_on_glacial_pond.original-provenance.json", + "sha256": "sha256:bytes:16e6a8baf35baec6d9e1be13523eaa5606174123b3a61274a257d5fbd14977f3", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/Alpha-VLLM/Lumina-Image-2.0/tree/53504abd8178b30685b6c4c7a4cd181ff78b73e9", + "sourceRevision": "Alpha-VLLM/Lumina-Image-2.0@53504abd8178b30685b6c4c7a4cd181ff78b73e9", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "Publisher model terms at https://huggingface.co/Alpha-VLLM/Lumina-Image-2.0/tree/53504abd8178b30685b6c4c7a4cd181ff78b73e9" + ], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "Alpha-VLLM/Lumina-Image-2.0@53504abd8178b30685b6c4c7a4cd181ff78b73e9 https://huggingface.co/Alpha-VLLM/Lumina-Image-2.0/tree/53504abd8178b30685b6c4c7a4cd181ff78b73e9" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "c2df9edb92f8ff905b6c9a138a285e67c621f3d2dfa3232f859aaf963b725aca", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "lumina2_larch_on_glacial_pond" + }, + { + "path": "template-gallery/reviews/lumina2_larch_on_glacial_pond.original-review.json", + "sha256": "sha256:bytes:3fa1cbf6c53ed5ce65f8d116779ff9dea32a9c52c8a0877fbb87f77f17237695", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/Alpha-VLLM/Lumina-Image-2.0/tree/53504abd8178b30685b6c4c7a4cd181ff78b73e9", + "sourceRevision": "Alpha-VLLM/Lumina-Image-2.0@53504abd8178b30685b6c4c7a4cd181ff78b73e9", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "Publisher model terms at https://huggingface.co/Alpha-VLLM/Lumina-Image-2.0/tree/53504abd8178b30685b6c4c7a4cd181ff78b73e9" + ], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "Alpha-VLLM/Lumina-Image-2.0@53504abd8178b30685b6c4c7a4cd181ff78b73e9 https://huggingface.co/Alpha-VLLM/Lumina-Image-2.0/tree/53504abd8178b30685b6c4c7a4cd181ff78b73e9" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "c2df9edb92f8ff905b6c9a138a285e67c621f3d2dfa3232f859aaf963b725aca", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "lumina2_larch_on_glacial_pond" + }, + { + "path": "template-gallery/reviews/lumina2_larch_on_glacial_pond.quality-review.json", + "sha256": "sha256:bytes:527cf3a6d6a7820e09450d4a6d533e5d875a914bd2c8771c2060a513f712544e", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/Alpha-VLLM/Lumina-Image-2.0/tree/53504abd8178b30685b6c4c7a4cd181ff78b73e9", + "sourceRevision": "Alpha-VLLM/Lumina-Image-2.0@53504abd8178b30685b6c4c7a4cd181ff78b73e9", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "Publisher model terms at https://huggingface.co/Alpha-VLLM/Lumina-Image-2.0/tree/53504abd8178b30685b6c4c7a4cd181ff78b73e9" + ], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "Alpha-VLLM/Lumina-Image-2.0@53504abd8178b30685b6c4c7a4cd181ff78b73e9 https://huggingface.co/Alpha-VLLM/Lumina-Image-2.0/tree/53504abd8178b30685b6c4c7a4cd181ff78b73e9" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "c2df9edb92f8ff905b6c9a138a285e67c621f3d2dfa3232f859aaf963b725aca", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "lumina2_larch_on_glacial_pond" + }, + { + "path": "template-gallery/reviews/lumina2_larch_on_glacial_pond.retained-template-provenance.json", + "sha256": "sha256:bytes:d62e4d0a6e3739b95089003b3095611e419f62bcdc39befbb67aeba846aec0c8", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/Alpha-VLLM/Lumina-Image-2.0/tree/53504abd8178b30685b6c4c7a4cd181ff78b73e9", + "sourceRevision": "Alpha-VLLM/Lumina-Image-2.0@53504abd8178b30685b6c4c7a4cd181ff78b73e9", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "Publisher model terms at https://huggingface.co/Alpha-VLLM/Lumina-Image-2.0/tree/53504abd8178b30685b6c4c7a4cd181ff78b73e9" + ], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "Alpha-VLLM/Lumina-Image-2.0@53504abd8178b30685b6c4c7a4cd181ff78b73e9 https://huggingface.co/Alpha-VLLM/Lumina-Image-2.0/tree/53504abd8178b30685b6c4c7a4cd181ff78b73e9" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "c2df9edb92f8ff905b6c9a138a285e67c621f3d2dfa3232f859aaf963b725aca", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "lumina2_larch_on_glacial_pond" + }, { "path": "template-gallery/reviews/lumina_opal_pendant_in_limestone.original-provenance.json", "sha256": "sha256:bytes:1759ed2ceb7e564e568eced6f47a017c647dd549c2ebdf6e414310d8445a4fd4", @@ -10973,85 +12041,193 @@ "provenanceTemplateId": "ochre_paper_pavilion" }, { - "path": "template-gallery/reviews/ochre_paper_pavilion.original-review.json", - "sha256": "sha256:bytes:6e31d3ec89e61e8b5722fb93db8f7bb7ea8328bf1c055028ba44c18affacf058", + "path": "template-gallery/reviews/ochre_paper_pavilion.original-review.json", + "sha256": "sha256:bytes:6e31d3ec89e61e8b5722fb93db8f7bb7ea8328bf1c055028ba44c18affacf058", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/zai-org/CogView3-Plus-3B/tree/5d70e40732ac0efac98524c51a7fa9c82707f1e5", + "sourceRevision": "zai-org/CogView3-Plus-3B@5d70e40732ac0efac98524c51a7fa9c82707f1e5", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "apache-2.0. https://huggingface.co/zai-org/CogView3-Plus-3B/tree/5d70e40732ac0efac98524c51a7fa9c82707f1e5" + ], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "zai-org/CogView3-Plus-3B@5d70e40732ac0efac98524c51a7fa9c82707f1e5 https://huggingface.co/zai-org/CogView3-Plus-3B/tree/5d70e40732ac0efac98524c51a7fa9c82707f1e5" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", + "provenanceTemplateId": "ochre_paper_pavilion" + }, + { + "path": "template-gallery/reviews/ochre_paper_pavilion.quality-review.json", + "sha256": "sha256:bytes:a635772ae5b26758629581843258dea266c7e85934eb222d4884b9a2522a93c1", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/zai-org/CogView3-Plus-3B/tree/5d70e40732ac0efac98524c51a7fa9c82707f1e5", + "sourceRevision": "zai-org/CogView3-Plus-3B@5d70e40732ac0efac98524c51a7fa9c82707f1e5", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "apache-2.0. https://huggingface.co/zai-org/CogView3-Plus-3B/tree/5d70e40732ac0efac98524c51a7fa9c82707f1e5" + ], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "zai-org/CogView3-Plus-3B@5d70e40732ac0efac98524c51a7fa9c82707f1e5 https://huggingface.co/zai-org/CogView3-Plus-3B/tree/5d70e40732ac0efac98524c51a7fa9c82707f1e5" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", + "provenanceTemplateId": "ochre_paper_pavilion" + }, + { + "path": "template-gallery/reviews/ochre_paper_pavilion.retained-template-provenance.json", + "sha256": "sha256:bytes:9bd899fe903bcc05057c1ae452c641700d9c36b5001b499dadba6a6a07e36e80", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/zai-org/CogView3-Plus-3B/tree/5d70e40732ac0efac98524c51a7fa9c82707f1e5", + "sourceRevision": "zai-org/CogView3-Plus-3B@5d70e40732ac0efac98524c51a7fa9c82707f1e5", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "apache-2.0. https://huggingface.co/zai-org/CogView3-Plus-3B/tree/5d70e40732ac0efac98524c51a7fa9c82707f1e5" + ], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "zai-org/CogView3-Plus-3B@5d70e40732ac0efac98524c51a7fa9c82707f1e5 https://huggingface.co/zai-org/CogView3-Plus-3B/tree/5d70e40732ac0efac98524c51a7fa9c82707f1e5" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", + "provenanceTemplateId": "ochre_paper_pavilion" + }, + { + "path": "template-gallery/reviews/omnigen_tulips_after_rain.original-provenance.json", + "sha256": "sha256:bytes:cd37ada4ad60fccb5fece5fe6ef03dd62ba7a8a66eb141579f8fa424b6265d71", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/Shitao/OmniGen-v1-diffusers/tree/016e2f61d12a98303f6bbdf122687694d7984268", + "sourceRevision": "Shitao/OmniGen-v1-diffusers@016e2f61d12a98303f6bbdf122687694d7984268", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "Publisher model terms at https://huggingface.co/Shitao/OmniGen-v1-diffusers/tree/016e2f61d12a98303f6bbdf122687694d7984268" + ], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "Shitao/OmniGen-v1-diffusers@016e2f61d12a98303f6bbdf122687694d7984268 https://huggingface.co/Shitao/OmniGen-v1-diffusers/tree/016e2f61d12a98303f6bbdf122687694d7984268" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "c2df9edb92f8ff905b6c9a138a285e67c621f3d2dfa3232f859aaf963b725aca", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "omnigen_tulips_after_rain" + }, + { + "path": "template-gallery/reviews/omnigen_tulips_after_rain.original-review.json", + "sha256": "sha256:bytes:3353e7fabebfddfc0b47f2ebdd668c0ae01f426d9280d1e4ac03d307582b8cc3", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/zai-org/CogView3-Plus-3B/tree/5d70e40732ac0efac98524c51a7fa9c82707f1e5", - "sourceRevision": "zai-org/CogView3-Plus-3B@5d70e40732ac0efac98524c51a7fa9c82707f1e5", + "sourceUrl": "https://huggingface.co/Shitao/OmniGen-v1-diffusers/tree/016e2f61d12a98303f6bbdf122687694d7984268", + "sourceRevision": "Shitao/OmniGen-v1-diffusers@016e2f61d12a98303f6bbdf122687694d7984268", "sourceLicense": "MoDiff-authored Gallery metadata", "modelTerms": [ - "apache-2.0. https://huggingface.co/zai-org/CogView3-Plus-3B/tree/5d70e40732ac0efac98524c51a7fa9c82707f1e5" + "Publisher model terms at https://huggingface.co/Shitao/OmniGen-v1-diffusers/tree/016e2f61d12a98303f6bbdf122687694d7984268" ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "zai-org/CogView3-Plus-3B@5d70e40732ac0efac98524c51a7fa9c82707f1e5 https://huggingface.co/zai-org/CogView3-Plus-3B/tree/5d70e40732ac0efac98524c51a7fa9c82707f1e5" + "Shitao/OmniGen-v1-diffusers@016e2f61d12a98303f6bbdf122687694d7984268 https://huggingface.co/Shitao/OmniGen-v1-diffusers/tree/016e2f61d12a98303f6bbdf122687694d7984268" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", - "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", - "provenanceTemplateId": "ochre_paper_pavilion" + "humanApprovalPacketSHA256": "c2df9edb92f8ff905b6c9a138a285e67c621f3d2dfa3232f859aaf963b725aca", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "omnigen_tulips_after_rain" }, { - "path": "template-gallery/reviews/ochre_paper_pavilion.quality-review.json", - "sha256": "sha256:bytes:a635772ae5b26758629581843258dea266c7e85934eb222d4884b9a2522a93c1", + "path": "template-gallery/reviews/omnigen_tulips_after_rain.quality-review.json", + "sha256": "sha256:bytes:333fbf9b662ef072cf2621b37b814052af11c4e219a6640376ba53a2ee4c154f", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/zai-org/CogView3-Plus-3B/tree/5d70e40732ac0efac98524c51a7fa9c82707f1e5", - "sourceRevision": "zai-org/CogView3-Plus-3B@5d70e40732ac0efac98524c51a7fa9c82707f1e5", + "sourceUrl": "https://huggingface.co/Shitao/OmniGen-v1-diffusers/tree/016e2f61d12a98303f6bbdf122687694d7984268", + "sourceRevision": "Shitao/OmniGen-v1-diffusers@016e2f61d12a98303f6bbdf122687694d7984268", "sourceLicense": "MoDiff-authored Gallery metadata", "modelTerms": [ - "apache-2.0. https://huggingface.co/zai-org/CogView3-Plus-3B/tree/5d70e40732ac0efac98524c51a7fa9c82707f1e5" + "Publisher model terms at https://huggingface.co/Shitao/OmniGen-v1-diffusers/tree/016e2f61d12a98303f6bbdf122687694d7984268" ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "zai-org/CogView3-Plus-3B@5d70e40732ac0efac98524c51a7fa9c82707f1e5 https://huggingface.co/zai-org/CogView3-Plus-3B/tree/5d70e40732ac0efac98524c51a7fa9c82707f1e5" + "Shitao/OmniGen-v1-diffusers@016e2f61d12a98303f6bbdf122687694d7984268 https://huggingface.co/Shitao/OmniGen-v1-diffusers/tree/016e2f61d12a98303f6bbdf122687694d7984268" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", - "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", - "provenanceTemplateId": "ochre_paper_pavilion" + "humanApprovalPacketSHA256": "c2df9edb92f8ff905b6c9a138a285e67c621f3d2dfa3232f859aaf963b725aca", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "omnigen_tulips_after_rain" }, { - "path": "template-gallery/reviews/ochre_paper_pavilion.retained-template-provenance.json", - "sha256": "sha256:bytes:9bd899fe903bcc05057c1ae452c641700d9c36b5001b499dadba6a6a07e36e80", + "path": "template-gallery/reviews/omnigen_tulips_after_rain.retained-template-provenance.json", + "sha256": "sha256:bytes:143b1e03664e187b0815b81948843d05bf9bf2bc664f9c92b7cd78c3b7755245", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/zai-org/CogView3-Plus-3B/tree/5d70e40732ac0efac98524c51a7fa9c82707f1e5", - "sourceRevision": "zai-org/CogView3-Plus-3B@5d70e40732ac0efac98524c51a7fa9c82707f1e5", + "sourceUrl": "https://huggingface.co/Shitao/OmniGen-v1-diffusers/tree/016e2f61d12a98303f6bbdf122687694d7984268", + "sourceRevision": "Shitao/OmniGen-v1-diffusers@016e2f61d12a98303f6bbdf122687694d7984268", "sourceLicense": "MoDiff-authored Gallery metadata", "modelTerms": [ - "apache-2.0. https://huggingface.co/zai-org/CogView3-Plus-3B/tree/5d70e40732ac0efac98524c51a7fa9c82707f1e5" + "Publisher model terms at https://huggingface.co/Shitao/OmniGen-v1-diffusers/tree/016e2f61d12a98303f6bbdf122687694d7984268" ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "zai-org/CogView3-Plus-3B@5d70e40732ac0efac98524c51a7fa9c82707f1e5 https://huggingface.co/zai-org/CogView3-Plus-3B/tree/5d70e40732ac0efac98524c51a7fa9c82707f1e5" + "Shitao/OmniGen-v1-diffusers@016e2f61d12a98303f6bbdf122687694d7984268 https://huggingface.co/Shitao/OmniGen-v1-diffusers/tree/016e2f61d12a98303f6bbdf122687694d7984268" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", - "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", - "provenanceTemplateId": "ochre_paper_pavilion" + "humanApprovalPacketSHA256": "c2df9edb92f8ff905b6c9a138a285e67c621f3d2dfa3232f859aaf963b725aca", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "omnigen_tulips_after_rain" }, { "path": "template-gallery/reviews/persimmon_glaze.original-provenance.json", @@ -12622,7 +13798,9 @@ "sourceUrl": "https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14", "sourceRevision": "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14", "sourceLicense": "MoDiff-authored Gallery metadata", - "modelTerms": ["CreativeML Open RAIL-M at the pinned Stable Diffusion v1.5 revision."], + "modelTerms": [ + "CreativeML Open RAIL-M at the pinned Stable Diffusion v1.5 revision." + ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], @@ -12647,7 +13825,9 @@ "sourceUrl": "https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14", "sourceRevision": "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14", "sourceLicense": "MoDiff-authored Gallery metadata", - "modelTerms": ["CreativeML Open RAIL-M at the pinned Stable Diffusion v1.5 revision."], + "modelTerms": [ + "CreativeML Open RAIL-M at the pinned Stable Diffusion v1.5 revision." + ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], @@ -12672,7 +13852,36 @@ "sourceUrl": "https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14", "sourceRevision": "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14", "sourceLicense": "MoDiff-authored Gallery metadata", - "modelTerms": ["CreativeML Open RAIL-M at the pinned Stable Diffusion v1.5 revision."], + "modelTerms": [ + "CreativeML Open RAIL-M at the pinned Stable Diffusion v1.5 revision." + ], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14 https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", + "provenanceTemplateId": "restoring_the_studio_backdrop" + }, + { + "path": "template-gallery/reviews/restoring_the_studio_backdrop.retained-template-provenance.json", + "sha256": "sha256:bytes:6a6538a8278e1f94de68eb9b2928131809e5b3163a7157ff7db17d053635fa46", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14", + "sourceRevision": "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "CreativeML Open RAIL-M at the pinned Stable Diffusion v1.5 revision." + ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], @@ -12688,8 +13897,216 @@ "provenanceTemplateId": "restoring_the_studio_backdrop" }, { - "path": "template-gallery/reviews/restoring_the_studio_backdrop.retained-template-provenance.json", - "sha256": "sha256:bytes:6a6538a8278e1f94de68eb9b2928131809e5b3163a7157ff7db17d053635fa46", + "path": "template-gallery/reviews/salt_marsh_from_above.original-provenance.json", + "sha256": "sha256:bytes:a126541afded7807e2f7c48f7695571cd00edb4c237e257829dea8025548fdc4", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/fal/AuraFlow-v0.3/tree/2cd8588f04c886002be4571697d84654a50e3af3", + "sourceRevision": "fal/AuraFlow-v0.3@2cd8588f04c886002be4571697d84654a50e3af3", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "apache-2.0. https://huggingface.co/fal/AuraFlow-v0.3/tree/2cd8588f04c886002be4571697d84654a50e3af3" + ], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "fal/AuraFlow-v0.3@2cd8588f04c886002be4571697d84654a50e3af3 https://huggingface.co/fal/AuraFlow-v0.3/tree/2cd8588f04c886002be4571697d84654a50e3af3" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", + "provenanceTemplateId": "salt_marsh_from_above" + }, + { + "path": "template-gallery/reviews/salt_marsh_from_above.original-review.json", + "sha256": "sha256:bytes:890b1c2f2a76d781d9c1062a1e4ec1e637a5d7de161e8ec21fb4860bfba68365", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/fal/AuraFlow-v0.3/tree/2cd8588f04c886002be4571697d84654a50e3af3", + "sourceRevision": "fal/AuraFlow-v0.3@2cd8588f04c886002be4571697d84654a50e3af3", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "apache-2.0. https://huggingface.co/fal/AuraFlow-v0.3/tree/2cd8588f04c886002be4571697d84654a50e3af3" + ], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "fal/AuraFlow-v0.3@2cd8588f04c886002be4571697d84654a50e3af3 https://huggingface.co/fal/AuraFlow-v0.3/tree/2cd8588f04c886002be4571697d84654a50e3af3" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", + "provenanceTemplateId": "salt_marsh_from_above" + }, + { + "path": "template-gallery/reviews/salt_marsh_from_above.quality-review.json", + "sha256": "sha256:bytes:deb996a0c76f064ba87fcbde7750b4297dedd4f470a70246be5ce550f88b52d3", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/fal/AuraFlow-v0.3/tree/2cd8588f04c886002be4571697d84654a50e3af3", + "sourceRevision": "fal/AuraFlow-v0.3@2cd8588f04c886002be4571697d84654a50e3af3", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "apache-2.0. https://huggingface.co/fal/AuraFlow-v0.3/tree/2cd8588f04c886002be4571697d84654a50e3af3" + ], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "fal/AuraFlow-v0.3@2cd8588f04c886002be4571697d84654a50e3af3 https://huggingface.co/fal/AuraFlow-v0.3/tree/2cd8588f04c886002be4571697d84654a50e3af3" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", + "provenanceTemplateId": "salt_marsh_from_above" + }, + { + "path": "template-gallery/reviews/salt_marsh_from_above.retained-template-provenance.json", + "sha256": "sha256:bytes:9a904012bac7d429111212a1e17e1b5b08a754a6354230233a6c81b8f1a2cfe2", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/fal/AuraFlow-v0.3/tree/2cd8588f04c886002be4571697d84654a50e3af3", + "sourceRevision": "fal/AuraFlow-v0.3@2cd8588f04c886002be4571697d84654a50e3af3", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "apache-2.0. https://huggingface.co/fal/AuraFlow-v0.3/tree/2cd8588f04c886002be4571697d84654a50e3af3" + ], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "fal/AuraFlow-v0.3@2cd8588f04c886002be4571697d84654a50e3af3 https://huggingface.co/fal/AuraFlow-v0.3/tree/2cd8588f04c886002be4571697d84654a50e3af3" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", + "provenanceTemplateId": "salt_marsh_from_above" + }, + { + "path": "template-gallery/reviews/sana_sprint_monochrome_tiger.quality-review.json", + "sha256": "sha256:bytes:daad196fff80a6e8d2543deeb911b5cd94a027a746e8d7cc0a011dc687f8c50e", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "humanLikenessConsent": "not-applicable", + "marks": [], + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-20", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "40060ba701188a6d287df07e0852c6497d109885495e6fc85a19e8371ef73906", + "publicationBasis": "Maintainer approved both exact Sana Sprint images and redistribution of the redacted review and recipe records.", + "creationMethod": "Project-authored redacted retained Gallery review, provenance or registration metadata", + "sourceUrl": null, + "sourceRevision": null, + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [], + "aiGenerated": false, + "requiredAttribution": [], + "assetLicense": "Apache-2.0", + "provenanceTemplateId": "sana_sprint_monochrome_tiger" + }, + { + "path": "template-gallery/reviews/sana_sprint_monochrome_tiger.retained-template-provenance.json", + "sha256": "sha256:bytes:9da7a90fdc337893b768009a2d6c619c730606e2544c335f4c4d02d14137d1a9", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "humanLikenessConsent": "not-applicable", + "marks": [], + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-20", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "40060ba701188a6d287df07e0852c6497d109885495e6fc85a19e8371ef73906", + "publicationBasis": "Maintainer approved both exact Sana Sprint images and redistribution of the redacted review and recipe records.", + "creationMethod": "Project-authored redacted retained Gallery review, provenance or registration metadata", + "sourceUrl": null, + "sourceRevision": null, + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [], + "aiGenerated": false, + "requiredAttribution": [], + "assetLicense": "Apache-2.0", + "provenanceTemplateId": "sana_sprint_monochrome_tiger" + }, + { + "path": "template-gallery/reviews/sd15_pag_cobalt_studio_repair.original-provenance.json", + "sha256": "sha256:bytes:b3a227ef5f8f0ea481c446854ce4be387bfe434ff252d9a5d34887ddb2b69b55", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14", + "sourceRevision": "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "Publisher model terms at https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14" + ], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14 https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "c2df9edb92f8ff905b6c9a138a285e67c621f3d2dfa3232f859aaf963b725aca", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "sd15_pag_cobalt_studio_repair" + }, + { + "path": "template-gallery/reviews/sd15_pag_cobalt_studio_repair.original-review.json", + "sha256": "sha256:bytes:dcbaa8d96f77097c5e763de7dd3602e62e4dc4d1302b2d4e7a426ae606b94de3", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14", + "sourceRevision": "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "Publisher model terms at https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14" + ], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14 https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "c2df9edb92f8ff905b6c9a138a285e67c621f3d2dfa3232f859aaf963b725aca", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "sd15_pag_cobalt_studio_repair" + }, + { + "path": "template-gallery/reviews/sd15_pag_cobalt_studio_repair.quality-review.json", + "sha256": "sha256:bytes:ddfa89f8e656c4790a14c0e9dcfffa24a1a034cab5c1bb62390307bfa70bc9fc", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", @@ -12697,7 +14114,9 @@ "sourceUrl": "https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14", "sourceRevision": "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14", "sourceLicense": "MoDiff-authored Gallery metadata", - "modelTerms": ["CreativeML Open RAIL-M at the pinned Stable Diffusion v1.5 revision."], + "modelTerms": [ + "Publisher model terms at https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14" + ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], @@ -12708,163 +14127,144 @@ "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", - "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", - "provenanceTemplateId": "restoring_the_studio_backdrop" + "humanApprovalPacketSHA256": "c2df9edb92f8ff905b6c9a138a285e67c621f3d2dfa3232f859aaf963b725aca", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "sd15_pag_cobalt_studio_repair" }, { - "path": "template-gallery/reviews/salt_marsh_from_above.original-provenance.json", - "sha256": "sha256:bytes:a126541afded7807e2f7c48f7695571cd00edb4c237e257829dea8025548fdc4", + "path": "template-gallery/reviews/sd15_pag_cobalt_studio_repair.retained-template-provenance.json", + "sha256": "sha256:bytes:e2aade8abc03d27c9f342023c60f27dcbb77f28a94d7605522ae0e862672eeed", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/fal/AuraFlow-v0.3/tree/2cd8588f04c886002be4571697d84654a50e3af3", - "sourceRevision": "fal/AuraFlow-v0.3@2cd8588f04c886002be4571697d84654a50e3af3", + "sourceUrl": "https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14", + "sourceRevision": "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14", "sourceLicense": "MoDiff-authored Gallery metadata", "modelTerms": [ - "apache-2.0. https://huggingface.co/fal/AuraFlow-v0.3/tree/2cd8588f04c886002be4571697d84654a50e3af3" + "Publisher model terms at https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14" ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "fal/AuraFlow-v0.3@2cd8588f04c886002be4571697d84654a50e3af3 https://huggingface.co/fal/AuraFlow-v0.3/tree/2cd8588f04c886002be4571697d84654a50e3af3" + "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14 https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", - "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", - "provenanceTemplateId": "salt_marsh_from_above" + "humanApprovalPacketSHA256": "c2df9edb92f8ff905b6c9a138a285e67c621f3d2dfa3232f859aaf963b725aca", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "sd15_pag_cobalt_studio_repair" }, { - "path": "template-gallery/reviews/salt_marsh_from_above.original-review.json", - "sha256": "sha256:bytes:890b1c2f2a76d781d9c1062a1e4ec1e637a5d7de161e8ec21fb4860bfba68365", + "path": "template-gallery/reviews/sd15_pag_mountain_lake_watercolor.original-provenance.json", + "sha256": "sha256:bytes:53be917cea31e259033fb99bb4ff99b1b975abc7cad671b8eb2511794545082e", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/fal/AuraFlow-v0.3/tree/2cd8588f04c886002be4571697d84654a50e3af3", - "sourceRevision": "fal/AuraFlow-v0.3@2cd8588f04c886002be4571697d84654a50e3af3", + "sourceUrl": "https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14", + "sourceRevision": "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14", "sourceLicense": "MoDiff-authored Gallery metadata", "modelTerms": [ - "apache-2.0. https://huggingface.co/fal/AuraFlow-v0.3/tree/2cd8588f04c886002be4571697d84654a50e3af3" + "Publisher model terms at https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14" ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "fal/AuraFlow-v0.3@2cd8588f04c886002be4571697d84654a50e3af3 https://huggingface.co/fal/AuraFlow-v0.3/tree/2cd8588f04c886002be4571697d84654a50e3af3" + "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14 https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", - "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", - "provenanceTemplateId": "salt_marsh_from_above" + "humanApprovalPacketSHA256": "c2df9edb92f8ff905b6c9a138a285e67c621f3d2dfa3232f859aaf963b725aca", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "sd15_pag_mountain_lake_watercolor" }, { - "path": "template-gallery/reviews/salt_marsh_from_above.quality-review.json", - "sha256": "sha256:bytes:deb996a0c76f064ba87fcbde7750b4297dedd4f470a70246be5ce550f88b52d3", + "path": "template-gallery/reviews/sd15_pag_mountain_lake_watercolor.original-review.json", + "sha256": "sha256:bytes:e7226c4664a027c20670f6aa367d4c2751efbe4fc0569afe6cb137349a8f5406", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/fal/AuraFlow-v0.3/tree/2cd8588f04c886002be4571697d84654a50e3af3", - "sourceRevision": "fal/AuraFlow-v0.3@2cd8588f04c886002be4571697d84654a50e3af3", + "sourceUrl": "https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14", + "sourceRevision": "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14", "sourceLicense": "MoDiff-authored Gallery metadata", "modelTerms": [ - "apache-2.0. https://huggingface.co/fal/AuraFlow-v0.3/tree/2cd8588f04c886002be4571697d84654a50e3af3" + "Publisher model terms at https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14" ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "fal/AuraFlow-v0.3@2cd8588f04c886002be4571697d84654a50e3af3 https://huggingface.co/fal/AuraFlow-v0.3/tree/2cd8588f04c886002be4571697d84654a50e3af3" + "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14 https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", - "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", - "provenanceTemplateId": "salt_marsh_from_above" + "humanApprovalPacketSHA256": "c2df9edb92f8ff905b6c9a138a285e67c621f3d2dfa3232f859aaf963b725aca", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "sd15_pag_mountain_lake_watercolor" }, { - "path": "template-gallery/reviews/salt_marsh_from_above.retained-template-provenance.json", - "sha256": "sha256:bytes:9a904012bac7d429111212a1e17e1b5b08a754a6354230233a6c81b8f1a2cfe2", + "path": "template-gallery/reviews/sd15_pag_mountain_lake_watercolor.quality-review.json", + "sha256": "sha256:bytes:a76c9a2fbcb169ecc2498d87ebc3f17f640cd49c4ca906ffc117a281f885d2af", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/fal/AuraFlow-v0.3/tree/2cd8588f04c886002be4571697d84654a50e3af3", - "sourceRevision": "fal/AuraFlow-v0.3@2cd8588f04c886002be4571697d84654a50e3af3", + "sourceUrl": "https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14", + "sourceRevision": "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14", "sourceLicense": "MoDiff-authored Gallery metadata", "modelTerms": [ - "apache-2.0. https://huggingface.co/fal/AuraFlow-v0.3/tree/2cd8588f04c886002be4571697d84654a50e3af3" + "Publisher model terms at https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14" ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "fal/AuraFlow-v0.3@2cd8588f04c886002be4571697d84654a50e3af3 https://huggingface.co/fal/AuraFlow-v0.3/tree/2cd8588f04c886002be4571697d84654a50e3af3" + "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14 https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", - "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", - "provenanceTemplateId": "salt_marsh_from_above" + "humanApprovalPacketSHA256": "c2df9edb92f8ff905b6c9a138a285e67c621f3d2dfa3232f859aaf963b725aca", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "sd15_pag_mountain_lake_watercolor" }, { - "path": "template-gallery/reviews/sana_sprint_monochrome_tiger.quality-review.json", - "sha256": "sha256:bytes:daad196fff80a6e8d2543deeb911b5cd94a027a746e8d7cc0a011dc687f8c50e", + "path": "template-gallery/reviews/sd15_pag_mountain_lake_watercolor.retained-template-provenance.json", + "sha256": "sha256:bytes:f2e571509ee047bbf0f2b7381ba505ec3204898db1f9d4bcf567ad1d661c1c75", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", - "humanLikenessConsent": "not-applicable", - "marks": [], - "reviewedBy": "MoDiff workspace maintainer", - "reviewedAt": "2026-11-20", - "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "40060ba701188a6d287df07e0852c6497d109885495e6fc85a19e8371ef73906", - "publicationBasis": "Maintainer approved both exact Sana Sprint images and redistribution of the redacted review and recipe records.", - "creationMethod": "Project-authored redacted retained Gallery review, provenance or registration metadata", - "sourceUrl": null, - "sourceRevision": null, + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14", + "sourceRevision": "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14", "sourceLicense": "MoDiff-authored Gallery metadata", - "modelTerms": [], + "modelTerms": [ + "Publisher model terms at https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14" + ], "aiGenerated": false, - "requiredAttribution": [], - "assetLicense": "Apache-2.0", - "provenanceTemplateId": "sana_sprint_monochrome_tiger" - }, - { - "path": "template-gallery/reviews/sana_sprint_monochrome_tiger.retained-template-provenance.json", - "sha256": "sha256:bytes:9da7a90fdc337893b768009a2d6c619c730606e2544c335f4c4d02d14137d1a9", - "publishDecision": "approved", - "holdReason": null, - "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "humanLikenessConsent": "not-applicable", "marks": [], + "requiredAttribution": [ + "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14 https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14" + ], + "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", - "reviewedAt": "2026-11-20", + "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "40060ba701188a6d287df07e0852c6497d109885495e6fc85a19e8371ef73906", - "publicationBasis": "Maintainer approved both exact Sana Sprint images and redistribution of the redacted review and recipe records.", - "creationMethod": "Project-authored redacted retained Gallery review, provenance or registration metadata", - "sourceUrl": null, - "sourceRevision": null, - "sourceLicense": "MoDiff-authored Gallery metadata", - "modelTerms": [], - "aiGenerated": false, - "requiredAttribution": [], - "assetLicense": "Apache-2.0", - "provenanceTemplateId": "sana_sprint_monochrome_tiger" + "humanApprovalPacketSHA256": "c2df9edb92f8ff905b6c9a138a285e67c621f3d2dfa3232f859aaf963b725aca", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "sd15_pag_mountain_lake_watercolor" }, { "path": "template-gallery/reviews/sdxl_clear_cobalt_backdrop.original-provenance.json", @@ -12974,6 +14374,114 @@ "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped six saved cases with model terms retained.", "provenanceTemplateId": "sdxl_clear_cobalt_backdrop" }, + { + "path": "template-gallery/reviews/sdxl_pix2pix_pale_amber_glass.original-provenance.json", + "sha256": "sha256:bytes:173457c9a8b1562e8268041daa277812a04739145a537765cdcb49278cabce33", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/diffusers/sdxl-instructpix2pix-768/tree/06653d47f8d22f2c2205a5884d6a24c5e76d2ca7", + "sourceRevision": "diffusers/sdxl-instructpix2pix-768@06653d47f8d22f2c2205a5884d6a24c5e76d2ca7", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "Publisher model terms at https://huggingface.co/diffusers/sdxl-instructpix2pix-768/tree/06653d47f8d22f2c2205a5884d6a24c5e76d2ca7" + ], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "diffusers/sdxl-instructpix2pix-768@06653d47f8d22f2c2205a5884d6a24c5e76d2ca7 https://huggingface.co/diffusers/sdxl-instructpix2pix-768/tree/06653d47f8d22f2c2205a5884d6a24c5e76d2ca7" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "c2df9edb92f8ff905b6c9a138a285e67c621f3d2dfa3232f859aaf963b725aca", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "sdxl_pix2pix_pale_amber_glass" + }, + { + "path": "template-gallery/reviews/sdxl_pix2pix_pale_amber_glass.original-review.json", + "sha256": "sha256:bytes:8f6ce6ee6887bc2d878b762faa054f5a26d6853c11fadc6ca32b0f71fb4ad080", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/diffusers/sdxl-instructpix2pix-768/tree/06653d47f8d22f2c2205a5884d6a24c5e76d2ca7", + "sourceRevision": "diffusers/sdxl-instructpix2pix-768@06653d47f8d22f2c2205a5884d6a24c5e76d2ca7", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "Publisher model terms at https://huggingface.co/diffusers/sdxl-instructpix2pix-768/tree/06653d47f8d22f2c2205a5884d6a24c5e76d2ca7" + ], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "diffusers/sdxl-instructpix2pix-768@06653d47f8d22f2c2205a5884d6a24c5e76d2ca7 https://huggingface.co/diffusers/sdxl-instructpix2pix-768/tree/06653d47f8d22f2c2205a5884d6a24c5e76d2ca7" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "c2df9edb92f8ff905b6c9a138a285e67c621f3d2dfa3232f859aaf963b725aca", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "sdxl_pix2pix_pale_amber_glass" + }, + { + "path": "template-gallery/reviews/sdxl_pix2pix_pale_amber_glass.quality-review.json", + "sha256": "sha256:bytes:214f457d0759bb55820c36572a44b2cf144ac11d6b87180326a1dd72ec903e12", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/diffusers/sdxl-instructpix2pix-768/tree/06653d47f8d22f2c2205a5884d6a24c5e76d2ca7", + "sourceRevision": "diffusers/sdxl-instructpix2pix-768@06653d47f8d22f2c2205a5884d6a24c5e76d2ca7", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "Publisher model terms at https://huggingface.co/diffusers/sdxl-instructpix2pix-768/tree/06653d47f8d22f2c2205a5884d6a24c5e76d2ca7" + ], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "diffusers/sdxl-instructpix2pix-768@06653d47f8d22f2c2205a5884d6a24c5e76d2ca7 https://huggingface.co/diffusers/sdxl-instructpix2pix-768/tree/06653d47f8d22f2c2205a5884d6a24c5e76d2ca7" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "c2df9edb92f8ff905b6c9a138a285e67c621f3d2dfa3232f859aaf963b725aca", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "sdxl_pix2pix_pale_amber_glass" + }, + { + "path": "template-gallery/reviews/sdxl_pix2pix_pale_amber_glass.retained-template-provenance.json", + "sha256": "sha256:bytes:571dbef32e64cbea069c54c9a71408eb47cbf6854dbbb10e9060dfe04758cf99", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/diffusers/sdxl-instructpix2pix-768/tree/06653d47f8d22f2c2205a5884d6a24c5e76d2ca7", + "sourceRevision": "diffusers/sdxl-instructpix2pix-768@06653d47f8d22f2c2205a5884d6a24c5e76d2ca7", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "Publisher model terms at https://huggingface.co/diffusers/sdxl-instructpix2pix-768/tree/06653d47f8d22f2c2205a5884d6a24c5e76d2ca7" + ], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "diffusers/sdxl-instructpix2pix-768@06653d47f8d22f2c2205a5884d6a24c5e76d2ca7 https://huggingface.co/diffusers/sdxl-instructpix2pix-768/tree/06653d47f8d22f2c2205a5884d6a24c5e76d2ca7" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "c2df9edb92f8ff905b6c9a138a285e67c621f3d2dfa3232f859aaf963b725aca", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "sdxl_pix2pix_pale_amber_glass" + }, { "path": "template-gallery/reviews/sdxl_turbo_orange_caps.original-provenance.json", "sha256": "sha256:bytes:38ebec1786b4ca93369a6e08f61c7fa24ed755f1a11804d2f0378d0b5b4c0f74", @@ -14096,36 +15604,144 @@ "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], - "requiredAttribution": [], + "requiredAttribution": [], + "assetLicense": "Apache-2.0", + "reviewedBy": "SOURAV DAS", + "reviewedAt": "2026-11-09", + "reviewClass": "per-file-human-approved-six-z-registration", + "provenanceTemplateId": "z_image_quick_concept", + "humanApprovalPacketSHA256": "9b728a5f8535fc1ba3c03d2e2759d7ac795a586fafab51beb1509379ed388934" + }, + { + "path": "template-gallery/reviews/z_image_quick_concept.reviewed-provenance.json", + "sha256": "sha256:bytes:c31016b24e0b3935d7963b97d0fca05e9e8d208d2c9ae872ee5602d40173e8ec", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers", + "creationMethod": "MoDiff-authored technical provenance or quality metadata from the explicitly approved six-image source packet", + "sourceUrl": null, + "sourceRevision": null, + "sourceLicense": "Apache-2.0 project-authored metadata; generated-media terms remain in their exact per-file records", + "modelTerms": [], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [], + "assetLicense": "Apache-2.0", + "reviewedBy": "SOURAV DAS", + "reviewedAt": "2026-11-09", + "reviewClass": "per-file-human-approved-six-z-registration", + "humanApprovalPacketSHA256": "9b728a5f8535fc1ba3c03d2e2759d7ac795a586fafab51beb1509379ed388934", + "humanApprovalScope": "The maintainer explicitly approved the proposed 4/5 quality rubric and scores, known limits, exact six Z-image outputs and their project-authored redacted provenance/review records. This packet includes no source photographs, authored masks or unrelated assets.", + "provenanceTemplateId": "z_image_quick_concept" + }, + { + "path": "template-gallery/reviews/zimage_golden_amber_glass.original-provenance.json", + "sha256": "sha256:bytes:38001f1b676cbc30bb15e344e3dcb30102e11f204aa09a81002f6eb9d973b8a3", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/Tongyi-MAI/Z-Image-Turbo/tree/f332072aa78be7aecdf3ee76d5c247082da564a6", + "sourceRevision": "Tongyi-MAI/Z-Image-Turbo@f332072aa78be7aecdf3ee76d5c247082da564a6", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "Publisher model terms at https://huggingface.co/Tongyi-MAI/Z-Image-Turbo/tree/f332072aa78be7aecdf3ee76d5c247082da564a6" + ], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "Tongyi-MAI/Z-Image-Turbo@f332072aa78be7aecdf3ee76d5c247082da564a6 https://huggingface.co/Tongyi-MAI/Z-Image-Turbo/tree/f332072aa78be7aecdf3ee76d5c247082da564a6" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "c2df9edb92f8ff905b6c9a138a285e67c621f3d2dfa3232f859aaf963b725aca", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "zimage_golden_amber_glass" + }, + { + "path": "template-gallery/reviews/zimage_golden_amber_glass.original-review.json", + "sha256": "sha256:bytes:1ada33599f214a4d4a2cb3076823b66328fd5d17f1bb816259dcf37b6c474dd1", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/Tongyi-MAI/Z-Image-Turbo/tree/f332072aa78be7aecdf3ee76d5c247082da564a6", + "sourceRevision": "Tongyi-MAI/Z-Image-Turbo@f332072aa78be7aecdf3ee76d5c247082da564a6", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "Publisher model terms at https://huggingface.co/Tongyi-MAI/Z-Image-Turbo/tree/f332072aa78be7aecdf3ee76d5c247082da564a6" + ], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "Tongyi-MAI/Z-Image-Turbo@f332072aa78be7aecdf3ee76d5c247082da564a6 https://huggingface.co/Tongyi-MAI/Z-Image-Turbo/tree/f332072aa78be7aecdf3ee76d5c247082da564a6" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "c2df9edb92f8ff905b6c9a138a285e67c621f3d2dfa3232f859aaf963b725aca", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "zimage_golden_amber_glass" + }, + { + "path": "template-gallery/reviews/zimage_golden_amber_glass.quality-review.json", + "sha256": "sha256:bytes:9eccd9055e341b7ef305b74e6103d70458bece7336d79ce64f2dd3f1bf7cdb1d", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/Tongyi-MAI/Z-Image-Turbo/tree/f332072aa78be7aecdf3ee76d5c247082da564a6", + "sourceRevision": "Tongyi-MAI/Z-Image-Turbo@f332072aa78be7aecdf3ee76d5c247082da564a6", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "Publisher model terms at https://huggingface.co/Tongyi-MAI/Z-Image-Turbo/tree/f332072aa78be7aecdf3ee76d5c247082da564a6" + ], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "Tongyi-MAI/Z-Image-Turbo@f332072aa78be7aecdf3ee76d5c247082da564a6 https://huggingface.co/Tongyi-MAI/Z-Image-Turbo/tree/f332072aa78be7aecdf3ee76d5c247082da564a6" + ], "assetLicense": "Apache-2.0", - "reviewedBy": "SOURAV DAS", - "reviewedAt": "2026-11-09", - "reviewClass": "per-file-human-approved-six-z-registration", - "provenanceTemplateId": "z_image_quick_concept", - "humanApprovalPacketSHA256": "9b728a5f8535fc1ba3c03d2e2759d7ac795a586fafab51beb1509379ed388934" + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "c2df9edb92f8ff905b6c9a138a285e67c621f3d2dfa3232f859aaf963b725aca", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "zimage_golden_amber_glass" }, { - "path": "template-gallery/reviews/z_image_quick_concept.reviewed-provenance.json", - "sha256": "sha256:bytes:c31016b24e0b3935d7963b97d0fca05e9e8d208d2c9ae872ee5602d40173e8ec", + "path": "template-gallery/reviews/zimage_golden_amber_glass.retained-template-provenance.json", + "sha256": "sha256:bytes:b7b4cc1441995324830d2c34d883b4bcb86b62faf445afbc15ea77b7855d024a", "publishDecision": "approved", "holdReason": null, - "creatorOrRightsholder": "MoDiff project maintainers", - "creationMethod": "MoDiff-authored technical provenance or quality metadata from the explicitly approved six-image source packet", - "sourceUrl": null, - "sourceRevision": null, - "sourceLicense": "Apache-2.0 project-authored metadata; generated-media terms remain in their exact per-file records", - "modelTerms": [], + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/Tongyi-MAI/Z-Image-Turbo/tree/f332072aa78be7aecdf3ee76d5c247082da564a6", + "sourceRevision": "Tongyi-MAI/Z-Image-Turbo@f332072aa78be7aecdf3ee76d5c247082da564a6", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "Publisher model terms at https://huggingface.co/Tongyi-MAI/Z-Image-Turbo/tree/f332072aa78be7aecdf3ee76d5c247082da564a6" + ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], - "requiredAttribution": [], + "requiredAttribution": [ + "Tongyi-MAI/Z-Image-Turbo@f332072aa78be7aecdf3ee76d5c247082da564a6 https://huggingface.co/Tongyi-MAI/Z-Image-Turbo/tree/f332072aa78be7aecdf3ee76d5c247082da564a6" + ], "assetLicense": "Apache-2.0", - "reviewedBy": "SOURAV DAS", - "reviewedAt": "2026-11-09", - "reviewClass": "per-file-human-approved-six-z-registration", - "humanApprovalPacketSHA256": "9b728a5f8535fc1ba3c03d2e2759d7ac795a586fafab51beb1509379ed388934", - "humanApprovalScope": "The maintainer explicitly approved the proposed 4/5 quality rubric and scores, known limits, exact six Z-image outputs and their project-authored redacted provenance/review records. This packet includes no source photographs, authored masks or unrelated assets.", - "provenanceTemplateId": "z_image_quick_concept" + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "c2df9edb92f8ff905b6c9a138a285e67c621f3d2dfa3232f859aaf963b725aca", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "zimage_golden_amber_glass" }, { "creatorOrRightsholder": "MoDiff project maintainers, subject to original synthetic source terms", @@ -14174,7 +15790,9 @@ "reviewedBy": "SOURAV DAS", "reviewedAt": "2026-08-03", "reviewClass": "standard-human-attestation", - "consumingTemplateIds": ["wan_vace_outpaint_reframe"] + "consumingTemplateIds": [ + "wan_vace_outpaint_reframe" + ] }, { "path": "template-gallery/runtime-inputs/assets/124415536a8071baccf8821232ad79a0a8ceec30ae62617c91a8d7a0b59d0a8c.webp", @@ -14197,7 +15815,9 @@ "reviewedBy": "SOURAV DAS", "reviewedAt": "2026-08-03", "reviewClass": "standard-human-attestation", - "consumingTemplateIds": ["qwen_logo_texture"] + "consumingTemplateIds": [ + "qwen_logo_texture" + ] }, { "path": "template-gallery/runtime-inputs/assets/16f6ea27b5d7cfaed106e2e694572bbe92b7c7e2a43835b3f4313a748f510f74.png", @@ -14220,7 +15840,9 @@ "reviewedBy": "SOURAV DAS", "reviewedAt": "2026-08-03", "reviewClass": "standard-human-attestation", - "consumingTemplateIds": ["flux_fill_inpaint"] + "consumingTemplateIds": [ + "flux_fill_inpaint" + ] }, { "path": "template-gallery/runtime-inputs/assets/1d993540e914f0e2d230f1133b57ae14bb837829237a53c89613fcdef6699995.webp", @@ -14243,7 +15865,9 @@ "reviewedBy": "SOURAV DAS", "reviewedAt": "2026-08-03", "reviewClass": "standard-human-attestation", - "consumingTemplateIds": ["flux2_klein_multi_reference"] + "consumingTemplateIds": [ + "flux2_klein_multi_reference" + ] }, { "path": "template-gallery/runtime-inputs/assets/218d83e0706fec201097582a6e5e00dc79f2d7d1ecb0badba2214c5ecaae1866.mp4", @@ -14266,7 +15890,9 @@ "reviewedBy": "SOURAV DAS", "reviewedAt": "2026-08-03", "reviewClass": "standard-human-attestation", - "consumingTemplateIds": ["wan_vace_video_to_video"] + "consumingTemplateIds": [ + "wan_vace_video_to_video" + ] }, { "path": "template-gallery/runtime-inputs/assets/233d1b3a123fceb4f3b68d2d3a9f5b4129627073b8235fe7248ae6ebdeecb554.mp4", @@ -14292,7 +15918,9 @@ "reviewedBy": "SOURAV DAS", "reviewedAt": "2026-08-03", "reviewClass": "standard-human-attestation", - "consumingTemplateIds": ["ltx_video_video_to_video"] + "consumingTemplateIds": [ + "ltx_video_video_to_video" + ] }, { "path": "template-gallery/runtime-inputs/assets/283b1cfb32b15fe6b31a29dce1f2b96026c1ad0826bf3f24aebebf4b6f9a4f07.webp", @@ -14315,7 +15943,9 @@ "reviewedBy": "SOURAV DAS", "reviewedAt": "2026-08-03", "reviewClass": "standard-human-attestation", - "consumingTemplateIds": ["reference_fusion"] + "consumingTemplateIds": [ + "reference_fusion" + ] }, { "path": "template-gallery/runtime-inputs/assets/29722ed072feec11cd36adce7b6cb48483bff3f05776048b93f960b5554ab533.png", @@ -14338,7 +15968,9 @@ "reviewedBy": "SOURAV DAS", "reviewedAt": "2026-08-03", "reviewClass": "standard-human-attestation", - "consumingTemplateIds": ["qwen_inpaint_mask_draft"] + "consumingTemplateIds": [ + "qwen_inpaint_mask_draft" + ] }, { "path": "template-gallery/runtime-inputs/assets/2e0ec8892660785e322468d0153fd2dadf7a4d920fce2d7d4a0b686a8fe8515d.webp", @@ -14361,7 +15993,9 @@ "reviewedBy": "SOURAV DAS", "reviewedAt": "2026-08-03", "reviewClass": "standard-human-attestation", - "consumingTemplateIds": ["flux_redux_edit"] + "consumingTemplateIds": [ + "flux_redux_edit" + ] }, { "path": "template-gallery/runtime-inputs/assets/2e202069a584ee5ada91e2deaea6bf7b92a94f4816e669e695d7cb64d5a1cb0e.png", @@ -14384,7 +16018,9 @@ "reviewedBy": "SOURAV DAS", "reviewedAt": "2026-08-03", "reviewClass": "standard-human-attestation", - "consumingTemplateIds": ["flux_depth_control"] + "consumingTemplateIds": [ + "flux_depth_control" + ] }, { "creatorOrRightsholder": "MoDiff project maintainers, subject to original synthetic source terms", @@ -14433,7 +16069,9 @@ "reviewedBy": "SOURAV DAS", "reviewedAt": "2026-08-03", "reviewClass": "standard-human-attestation", - "consumingTemplateIds": ["ace_step_audio_continuation"] + "consumingTemplateIds": [ + "ace_step_audio_continuation" + ] }, { "path": "template-gallery/runtime-inputs/assets/38a6f334f89048effe579fc473d6fb38437eb579f324ac399d1ec0f6509f74d9.webp", @@ -14456,7 +16094,9 @@ "reviewedBy": "SOURAV DAS", "reviewedAt": "2026-08-03", "reviewClass": "standard-human-attestation", - "consumingTemplateIds": ["ltx_video_long_showcase"] + "consumingTemplateIds": [ + "ltx_video_long_showcase" + ] }, { "path": "template-gallery/runtime-inputs/assets/39428f00f67b49fc6d624617df2964c9f869de21e7e188ef5b231ae04c4aeacc.webp", @@ -14479,7 +16119,10 @@ "reviewedBy": "SOURAV DAS", "reviewedAt": "2026-08-03", "reviewClass": "standard-human-attestation", - "consumingTemplateIds": ["qwen_multi_reference_product", "reference_fusion"] + "consumingTemplateIds": [ + "qwen_multi_reference_product", + "reference_fusion" + ] }, { "path": "template-gallery/runtime-inputs/assets/3c4d3a7a58a7be7f8d8920106dcfea30e28b4af115ce406bcf5b16cec4b4297a.mp4", @@ -14502,7 +16145,9 @@ "reviewedBy": "SOURAV DAS", "reviewedAt": "2026-08-03", "reviewClass": "standard-human-attestation", - "consumingTemplateIds": ["wan_vace_outpaint_reframe"] + "consumingTemplateIds": [ + "wan_vace_outpaint_reframe" + ] }, { "creatorOrRightsholder": "MoDiff project maintainers, subject to original synthetic source terms", @@ -14551,7 +16196,9 @@ "reviewedBy": "SOURAV DAS", "reviewedAt": "2026-08-03", "reviewClass": "standard-human-attestation", - "consumingTemplateIds": ["flux_control_canny"] + "consumingTemplateIds": [ + "flux_control_canny" + ] }, { "creatorOrRightsholder": "MoDiff project maintainers, subject to original synthetic source terms", @@ -14600,7 +16247,9 @@ "reviewedBy": "SOURAV DAS", "reviewedAt": "2026-08-03", "reviewClass": "standard-human-attestation", - "consumingTemplateIds": ["qwen_multi_reference_product"] + "consumingTemplateIds": [ + "qwen_multi_reference_product" + ] }, { "path": "template-gallery/runtime-inputs/assets/4b1b8d9e351abd437f2ffff90cc6a958160a87863ba4d8e85a0aa80a37e7a10e.webp", @@ -14623,7 +16272,9 @@ "reviewedBy": "SOURAV DAS", "reviewedAt": "2026-08-03", "reviewClass": "standard-human-attestation", - "consumingTemplateIds": ["qwen_character_angles"] + "consumingTemplateIds": [ + "qwen_character_angles" + ] }, { "path": "template-gallery/runtime-inputs/assets/4b800b6a362c9ad7755858a3ec2affbda8706c5a71578ced35b80432fd234741.webp", @@ -14646,7 +16297,9 @@ "reviewedBy": "SOURAV DAS", "reviewedAt": "2026-08-03", "reviewClass": "standard-human-attestation", - "consumingTemplateIds": ["flux_redux_multi_reference"] + "consumingTemplateIds": [ + "flux_redux_multi_reference" + ] }, { "creatorOrRightsholder": "MoDiff project maintainers, subject to original synthetic source terms", @@ -14695,7 +16348,9 @@ "reviewedBy": "SOURAV DAS", "reviewedAt": "2026-08-03", "reviewClass": "standard-human-attestation", - "consumingTemplateIds": ["ltx_video_multi_reference"] + "consumingTemplateIds": [ + "ltx_video_multi_reference" + ] }, { "path": "template-gallery/runtime-inputs/assets/6224e9ee47765858f2ec0c33679140d020cf3ad6e4fa2fa4557ef50f811aef0e.webp", @@ -14718,7 +16373,9 @@ "reviewedBy": "SOURAV DAS", "reviewedAt": "2026-08-03", "reviewClass": "standard-human-attestation", - "consumingTemplateIds": ["qwen_tile_extract"] + "consumingTemplateIds": [ + "qwen_tile_extract" + ] }, { "path": "template-gallery/runtime-inputs/assets/70c74691e2bcd7cdb352b7e64e5af5a1a7f01d77112d32a8edadc0060a95ef34.png", @@ -14741,7 +16398,9 @@ "reviewedBy": "maintainer (current user)", "reviewedAt": "2026-11-12", "reviewClass": "per-file-maintainer-accepted-native-three-registration", - "consumingTemplateIds": ["flux_kontext_multi_reference"], + "consumingTemplateIds": [ + "flux_kontext_multi_reference" + ], "derivedFromContentHash": "sha256:bytes:9f421cdc0fa80b3aae368bd3b20a8f6f05942ec461f88541f01aec5390468897", "publicationBasis": "Existing maintainer publication authorization and current explicit instruction to register these three accepted assets; no new ownership or rights quotation is fabricated.", "humanApprovalPacketSHA256": "69c6b3d9b0ea2fcca16ee538f6e75b414b7141658b74f10578758e61360f63fd" @@ -14767,7 +16426,9 @@ "reviewedBy": "SOURAV DAS", "reviewedAt": "2026-08-03", "reviewClass": "standard-human-attestation", - "consumingTemplateIds": ["ltx_video_multi_reference"] + "consumingTemplateIds": [ + "ltx_video_multi_reference" + ] }, { "path": "template-gallery/runtime-inputs/assets/799d82b016a108d4b6902500b4226afd5d2391f4a7b0693af75255425c943a5e.png", @@ -14790,7 +16451,9 @@ "reviewedBy": "SOURAV DAS", "reviewedAt": "2026-08-03", "reviewClass": "standard-human-attestation", - "consumingTemplateIds": ["flux_fill_outpaint"] + "consumingTemplateIds": [ + "flux_fill_outpaint" + ] }, { "path": "template-gallery/runtime-inputs/assets/7f1ea58485fa7802765b9fbbf0e6957e8607261c91669fdcc44cbed80c6fb309.webp", @@ -14813,7 +16476,9 @@ "reviewedBy": "SOURAV DAS", "reviewedAt": "2026-08-03", "reviewClass": "standard-human-attestation", - "consumingTemplateIds": ["flux_redux_multi_reference"] + "consumingTemplateIds": [ + "flux_redux_multi_reference" + ] }, { "path": "template-gallery/runtime-inputs/assets/862e292caa1759156fffde5cfccda8b97ec622514258f81986188cf63a836ea9.webp", @@ -14836,7 +16501,9 @@ "reviewedBy": "SOURAV DAS", "reviewedAt": "2026-08-03", "reviewClass": "standard-human-attestation", - "consumingTemplateIds": ["qwen_outpaint_draft"] + "consumingTemplateIds": [ + "qwen_outpaint_draft" + ] }, { "path": "template-gallery/runtime-inputs/assets/88a7ada5cb91a6ef86de0ff7c26c6b4683df25cc0baa18382371ce0748cd0bd6.webp", @@ -14859,7 +16526,9 @@ "reviewedBy": "SOURAV DAS", "reviewedAt": "2026-08-03", "reviewClass": "standard-human-attestation", - "consumingTemplateIds": ["ltx_video_long_showcase"] + "consumingTemplateIds": [ + "ltx_video_long_showcase" + ] }, { "creatorOrRightsholder": "MoDiff project maintainers, subject to original synthetic source terms", @@ -14908,7 +16577,10 @@ "reviewedBy": "SOURAV DAS", "reviewedAt": "2026-08-03", "reviewClass": "standard-human-attestation", - "consumingTemplateIds": ["ltx_video_image_to_video", "ltx_video_long_showcase"] + "consumingTemplateIds": [ + "ltx_video_image_to_video", + "ltx_video_long_showcase" + ] }, { "path": "template-gallery/runtime-inputs/assets/9328061557396ef591a9f4a6242abf1cdd61082846518726c3114f746ccedd63.webp", @@ -14931,7 +16603,9 @@ "reviewedBy": "SOURAV DAS", "reviewedAt": "2026-08-03", "reviewClass": "standard-human-attestation", - "consumingTemplateIds": ["qwen_logo_texture"] + "consumingTemplateIds": [ + "qwen_logo_texture" + ] }, { "path": "template-gallery/runtime-inputs/assets/965240cf250a9074a7adab394c76070674cf517bed42b6c4647112d17dec84de.webp", @@ -14954,7 +16628,9 @@ "reviewedBy": "SOURAV DAS", "reviewedAt": "2026-08-03", "reviewClass": "standard-human-attestation", - "consumingTemplateIds": ["qwen_layered_portrait"] + "consumingTemplateIds": [ + "qwen_layered_portrait" + ] }, { "path": "template-gallery/runtime-inputs/assets/9f9f9685db5e9f8e1c162a0515151b03912c84777727b38682b65839db501ae6.webp", @@ -14977,7 +16653,9 @@ "reviewedBy": "SOURAV DAS", "reviewedAt": "2026-08-03", "reviewClass": "standard-human-attestation", - "consumingTemplateIds": ["qwen_inpaint_object_replace"] + "consumingTemplateIds": [ + "qwen_inpaint_object_replace" + ] }, { "path": "template-gallery/runtime-inputs/assets/a2f8ac6f5937d6e618b48ce9947153b8233ff7a82dcf67f28766d20b9917d730.webp", @@ -15000,7 +16678,9 @@ "reviewedBy": "SOURAV DAS", "reviewedAt": "2026-08-03", "reviewClass": "standard-human-attestation", - "consumingTemplateIds": ["qwen_inpaint_mask_draft"] + "consumingTemplateIds": [ + "qwen_inpaint_mask_draft" + ] }, { "path": "template-gallery/runtime-inputs/assets/a6d165bd87e2c57ab8cf71fa15de9d8724fccf5782c16c34c25dc77934751676.webp", @@ -15023,7 +16703,9 @@ "reviewedBy": "SOURAV DAS", "reviewedAt": "2026-08-03", "reviewClass": "standard-human-attestation", - "consumingTemplateIds": ["qwen_edit_strength_sweep"] + "consumingTemplateIds": [ + "qwen_edit_strength_sweep" + ] }, { "path": "template-gallery/runtime-inputs/assets/a7b61f36043354596eb01e702474300b222cb32e304bcf259506cad03917ce9b.webp", @@ -15074,7 +16756,10 @@ "reviewedBy": "SOURAV DAS", "reviewedAt": "2026-08-03", "reviewClass": "standard-human-attestation", - "consumingTemplateIds": ["qwen_control_image_layout", "qwen_packaging_dieline"] + "consumingTemplateIds": [ + "qwen_control_image_layout", + "qwen_packaging_dieline" + ] }, { "path": "template-gallery/runtime-inputs/assets/b7c221b367738177e32fece56067d743df96282a6ccb2afd040ee89ea0a8f678.webp", @@ -15097,7 +16782,9 @@ "reviewedBy": "SOURAV DAS", "reviewedAt": "2026-08-03", "reviewClass": "standard-human-attestation", - "consumingTemplateIds": ["flux_fill_inpaint"] + "consumingTemplateIds": [ + "flux_fill_inpaint" + ] }, { "path": "template-gallery/runtime-inputs/assets/b9909f4cbff8af6e97be6d1e4923c67687eee41dbd64b051a018866781da12ab.webp", @@ -15120,7 +16807,9 @@ "reviewedBy": "SOURAV DAS", "reviewedAt": "2026-08-03", "reviewClass": "standard-human-attestation", - "consumingTemplateIds": ["character_edit"] + "consumingTemplateIds": [ + "character_edit" + ] }, { "path": "template-gallery/runtime-inputs/assets/bf4dbaa55b83b19ca56c691e9d1a10d3b838ff2fec926aaea6b526561c68f8e6.png", @@ -15143,7 +16832,9 @@ "reviewedBy": "SOURAV DAS", "reviewedAt": "2026-08-03", "reviewClass": "standard-human-attestation", - "consumingTemplateIds": ["flux_fill_outpaint"] + "consumingTemplateIds": [ + "flux_fill_outpaint" + ] }, { "path": "template-gallery/runtime-inputs/assets/c810699838c636767d2a5b25fb457df94a4b76a70da9a77e77009681779acbf2.webp", @@ -15166,7 +16857,9 @@ "reviewedBy": "SOURAV DAS", "reviewedAt": "2026-08-03", "reviewClass": "standard-human-attestation", - "consumingTemplateIds": ["ltx_video_long_showcase"] + "consumingTemplateIds": [ + "ltx_video_long_showcase" + ] }, { "path": "template-gallery/runtime-inputs/assets/d49908e24c58d144f4264f4028cb0f7f2e72fb02b315443fd021715ebed1e737.webp", @@ -15189,7 +16882,9 @@ "reviewedBy": "SOURAV DAS", "reviewedAt": "2026-08-03", "reviewClass": "standard-human-attestation", - "consumingTemplateIds": ["ltx_video_long_showcase"] + "consumingTemplateIds": [ + "ltx_video_long_showcase" + ] }, { "path": "template-gallery/runtime-inputs/assets/d5ba3943d6c0a264860ba0cde18d87e2d9554a3f7328308f4d771e082a9e0c24.png", @@ -15212,7 +16907,9 @@ "reviewedBy": "SOURAV DAS", "reviewedAt": "2026-08-03", "reviewClass": "standard-human-attestation", - "consumingTemplateIds": ["flux2_klein_edit"] + "consumingTemplateIds": [ + "flux2_klein_edit" + ] }, { "path": "template-gallery/runtime-inputs/assets/d86b921f1be36360b5b660b8a5b9d0e9165e888be8a06fe2d8f362e87de40429.mp4", @@ -15235,7 +16932,9 @@ "reviewedBy": "SOURAV DAS", "reviewedAt": "2026-08-03", "reviewClass": "standard-human-attestation", - "consumingTemplateIds": ["wan_vace_video_color_grade"] + "consumingTemplateIds": [ + "wan_vace_video_color_grade" + ] }, { "path": "template-gallery/runtime-inputs/assets/d898e00f3be4b28e237f71acf8024ad3715a657e1fcf3aeaf57279468dff7a76.webp", @@ -15258,7 +16957,9 @@ "reviewedBy": "SOURAV DAS", "reviewedAt": "2026-08-03", "reviewClass": "standard-human-attestation", - "consumingTemplateIds": ["qwen_outpaint_aspect_template"] + "consumingTemplateIds": [ + "qwen_outpaint_aspect_template" + ] }, { "path": "template-gallery/runtime-inputs/assets/ddaccd06100d51494e5aaaecedab7b27eaeeda5290d453498d3e1cb9460ad474.webp", @@ -15281,7 +16982,9 @@ "reviewedBy": "SOURAV DAS", "reviewedAt": "2026-08-03", "reviewClass": "standard-human-attestation", - "consumingTemplateIds": ["ltx_video_long_showcase"] + "consumingTemplateIds": [ + "ltx_video_long_showcase" + ] }, { "path": "template-gallery/runtime-inputs/assets/e07d05a658d361b6d28af62bcccfaeba9254507467dae1c5839efd546fed96a7.wav", @@ -15304,7 +17007,10 @@ "reviewedBy": "SOURAV DAS", "reviewedAt": "2026-08-03", "reviewClass": "standard-human-attestation", - "consumingTemplateIds": ["ace_step_audio_repaint", "ace_step_audio_variation"] + "consumingTemplateIds": [ + "ace_step_audio_repaint", + "ace_step_audio_variation" + ] }, { "path": "template-gallery/runtime-inputs/assets/e0ab22f77f5d966d7868f8950f79702dc6d156d0eaef3e06205097558d5c5bb2.webp", @@ -15327,7 +17033,9 @@ "reviewedBy": "SOURAV DAS", "reviewedAt": "2026-08-03", "reviewClass": "standard-human-attestation", - "consumingTemplateIds": ["qwen_product_ad_composite"] + "consumingTemplateIds": [ + "qwen_product_ad_composite" + ] }, { "path": "template-gallery/runtime-inputs/assets/e0f19676addbba6fe954711c235878ef43495e8066b84ed70b5c240a8512b026.mp4", @@ -15350,7 +17058,9 @@ "reviewedBy": "SOURAV DAS", "reviewedAt": "2026-08-03", "reviewClass": "standard-human-attestation", - "consumingTemplateIds": ["wan_vace_grayscale_control"] + "consumingTemplateIds": [ + "wan_vace_grayscale_control" + ] }, { "path": "template-gallery/runtime-inputs/assets/e14e0fb4bccace254e3430bbddd49728980e5445b988eff1ae8164f135d1cc8d.png", @@ -15373,7 +17083,9 @@ "reviewedBy": "SOURAV DAS", "reviewedAt": "2026-08-03", "reviewClass": "standard-human-attestation", - "consumingTemplateIds": ["qwen_inpaint_object_replace"] + "consumingTemplateIds": [ + "qwen_inpaint_object_replace" + ] }, { "creatorOrRightsholder": "MoDiff project maintainers, subject to original synthetic source terms", @@ -15422,7 +17134,9 @@ "reviewedBy": "SOURAV DAS", "reviewedAt": "2026-08-03", "reviewClass": "standard-human-attestation", - "consumingTemplateIds": ["qwen_edit_plus_single_image"] + "consumingTemplateIds": [ + "qwen_edit_plus_single_image" + ] }, { "path": "template-gallery/runtime-inputs/assets/f791a809c0df307cd7dafa8c54ae86bbe4c53d73afdacb2183ff8cdbeac994c2.webp", @@ -15445,7 +17159,9 @@ "reviewedBy": "SOURAV DAS", "reviewedAt": "2026-08-03", "reviewClass": "standard-human-attestation", - "consumingTemplateIds": ["qwen_product_relight"] + "consumingTemplateIds": [ + "qwen_product_relight" + ] }, { "creatorOrRightsholder": "MoDiff project maintainers, subject to original synthetic source terms", @@ -15494,7 +17210,9 @@ "reviewedBy": "SOURAV DAS", "reviewedAt": "2026-08-03", "reviewClass": "standard-human-attestation", - "consumingTemplateIds": ["flux2_klein_multi_reference"] + "consumingTemplateIds": [ + "flux2_klein_multi_reference" + ] }, { "creatorOrRightsholder": "MoDiff project maintainers, subject to original synthetic source terms", @@ -15601,6 +17319,60 @@ "assetLicense": "MoDiff-Gallery-Restricted-1.0", "provenanceTemplateId": "sana_sprint_monochrome_tiger" }, + { + "path": "template-gallery/sd15_pag_cobalt_studio_repair.webp", + "sha256": "sha256:bytes:eb511fda2b5d227685893fac25fd214c4b4a25ac7c1f61e0205983ac657f82de", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Exact approved file captured from a saved MoDiff workflow", + "sourceUrl": "https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14", + "sourceRevision": "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14", + "sourceLicense": "Maintainer-authorized file with publisher terms retained", + "modelTerms": [ + "Publisher model terms at https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14" + ], + "aiGenerated": true, + "humanLikenessConsent": "synthetic", + "marks": [], + "requiredAttribution": [ + "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14 https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "c2df9edb92f8ff905b6c9a138a285e67c621f3d2dfa3232f859aaf963b725aca", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "sd15_pag_cobalt_studio_repair" + }, + { + "path": "template-gallery/sd15_pag_mountain_lake_watercolor.webp", + "sha256": "sha256:bytes:d3956b48ecf149f19ce45b003a6216ab7e0ca1771ba0aaec1fa420cac710158f", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Exact approved file captured from a saved MoDiff workflow", + "sourceUrl": "https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14", + "sourceRevision": "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14", + "sourceLicense": "Maintainer-authorized file with publisher terms retained", + "modelTerms": [ + "Publisher model terms at https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14" + ], + "aiGenerated": true, + "humanLikenessConsent": "synthetic", + "marks": [], + "requiredAttribution": [ + "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14 https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "c2df9edb92f8ff905b6c9a138a285e67c621f3d2dfa3232f859aaf963b725aca", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "sd15_pag_mountain_lake_watercolor" + }, { "path": "template-gallery/sdxl_clear_cobalt_backdrop.webp", "sha256": "sha256:bytes:98b57164602d8cfd6b61c689fa26770421f9dce8a7b9c23bc879a49d4def1004", @@ -15628,6 +17400,33 @@ "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped six saved cases with model terms retained.", "provenanceTemplateId": "sdxl_clear_cobalt_backdrop" }, + { + "path": "template-gallery/sdxl_pix2pix_pale_amber_glass.webp", + "sha256": "sha256:bytes:a56a057711364a3b747c202652999f5fcde7ee1b91c0c7a2a92e6ca26c6c3dff", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Exact approved file captured from a saved MoDiff workflow", + "sourceUrl": "https://huggingface.co/diffusers/sdxl-instructpix2pix-768/tree/06653d47f8d22f2c2205a5884d6a24c5e76d2ca7", + "sourceRevision": "diffusers/sdxl-instructpix2pix-768@06653d47f8d22f2c2205a5884d6a24c5e76d2ca7", + "sourceLicense": "Maintainer-authorized file with publisher terms retained", + "modelTerms": [ + "Publisher model terms at https://huggingface.co/diffusers/sdxl-instructpix2pix-768/tree/06653d47f8d22f2c2205a5884d6a24c5e76d2ca7" + ], + "aiGenerated": true, + "humanLikenessConsent": "synthetic", + "marks": [], + "requiredAttribution": [ + "diffusers/sdxl-instructpix2pix-768@06653d47f8d22f2c2205a5884d6a24c5e76d2ca7 https://huggingface.co/diffusers/sdxl-instructpix2pix-768/tree/06653d47f8d22f2c2205a5884d6a24c5e76d2ca7" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "c2df9edb92f8ff905b6c9a138a285e67c621f3d2dfa3232f859aaf963b725aca", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "sdxl_pix2pix_pale_amber_glass" + }, { "path": "template-gallery/sdxl_turbo_orange_caps.webp", "sha256": "sha256:bytes:e69bdc004989467e4e0df8d7d5b3d7e19f95158dff49e3ca649bb6da42f2cf59", @@ -15665,7 +17464,9 @@ "sourceUrl": "https://huggingface.co/black-forest-labs/flux-3-image-klein/tree/8454017f9ebaada30c998fccd9f67a80c7580f68", "sourceRevision": "black-forest-labs/flux-3-image-klein@8454017f9ebaada30c998fccd9f67a80c7580f68", "sourceLicense": "Apache-2.0 project-authored metadata", - "modelTerms": ["black-forest-labs/flux-3-image-klein@8454017f9ebaada30c998fccd9f67a80c7580f68: Apache-2.0"], + "modelTerms": [ + "black-forest-labs/flux-3-image-klein@8454017f9ebaada30c998fccd9f67a80c7580f68: Apache-2.0" + ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], @@ -15686,7 +17487,9 @@ "sourceUrl": "https://huggingface.co/black-forest-labs/flux-3-image-klein/tree/8454017f9ebaada30c998fccd9f67a80c7580f68", "sourceRevision": "black-forest-labs/flux-3-image-klein@8454017f9ebaada30c998fccd9f67a80c7580f68", "sourceLicense": "Original synthetic generation; underlying model terms retained", - "modelTerms": ["black-forest-labs/flux-3-image-klein@8454017f9ebaada30c998fccd9f67a80c7580f68: Apache-2.0"], + "modelTerms": [ + "black-forest-labs/flux-3-image-klein@8454017f9ebaada30c998fccd9f67a80c7580f68: Apache-2.0" + ], "aiGenerated": true, "humanLikenessConsent": "synthetic", "marks": [], @@ -15707,7 +17510,9 @@ "sourceUrl": "https://huggingface.co/black-forest-labs/flux-3-image-klein/tree/8454017f9ebaada30c998fccd9f67a80c7580f68", "sourceRevision": "black-forest-labs/flux-3-image-klein@8454017f9ebaada30c998fccd9f67a80c7580f68", "sourceLicense": "Apache-2.0 project-authored metadata", - "modelTerms": ["black-forest-labs/flux-3-image-klein@8454017f9ebaada30c998fccd9f67a80c7580f68: Apache-2.0"], + "modelTerms": [ + "black-forest-labs/flux-3-image-klein@8454017f9ebaada30c998fccd9f67a80c7580f68: Apache-2.0" + ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], @@ -15728,10 +17533,14 @@ "sourceUrl": "https://huggingface.co/black-forest-labs/flux-3-image-klein/tree/8454017f9ebaada30c998fccd9f67a80c7580f68", "sourceRevision": "black-forest-labs/flux-3-image-klein@8454017f9ebaada30c998fccd9f67a80c7580f68", "sourceLicense": "Original synthetic generation; underlying model terms retained", - "modelTerms": ["black-forest-labs/flux-3-image-klein@8454017f9ebaada30c998fccd9f67a80c7580f68: Apache-2.0"], + "modelTerms": [ + "black-forest-labs/flux-3-image-klein@8454017f9ebaada30c998fccd9f67a80c7580f68: Apache-2.0" + ], "aiGenerated": true, "humanLikenessConsent": "synthetic", - "marks": ["Fictional MATERIAL ATLAS label"], + "marks": [ + "Fictional MATERIAL ATLAS label" + ], "requiredAttribution": [], "assetLicense": "Apache-2.0", "reviewedBy": "SOURAV DAS", @@ -15779,7 +17588,9 @@ ], "aiGenerated": true, "humanLikenessConsent": "synthetic", - "marks": ["Fictional MATERIAL ATLAS label"], + "marks": [ + "Fictional MATERIAL ATLAS label" + ], "requiredAttribution": [], "assetLicense": "Apache-2.0", "reviewedBy": "SOURAV DAS", @@ -15797,7 +17608,9 @@ "sourceUrl": "https://huggingface.co/black-forest-labs/flux-3-image-klein/tree/8454017f9ebaada30c998fccd9f67a80c7580f68", "sourceRevision": "black-forest-labs/flux-3-image-klein@8454017f9ebaada30c998fccd9f67a80c7580f68", "sourceLicense": "Apache-2.0 project-authored metadata", - "modelTerms": ["black-forest-labs/flux-3-image-klein@8454017f9ebaada30c998fccd9f67a80c7580f68: Apache-2.0"], + "modelTerms": [ + "black-forest-labs/flux-3-image-klein@8454017f9ebaada30c998fccd9f67a80c7580f68: Apache-2.0" + ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], @@ -15818,10 +17631,14 @@ "sourceUrl": "https://huggingface.co/black-forest-labs/flux-3-image-klein/tree/8454017f9ebaada30c998fccd9f67a80c7580f68", "sourceRevision": "black-forest-labs/flux-3-image-klein@8454017f9ebaada30c998fccd9f67a80c7580f68", "sourceLicense": "Original synthetic generation; underlying model terms retained", - "modelTerms": ["black-forest-labs/flux-3-image-klein@8454017f9ebaada30c998fccd9f67a80c7580f68: Apache-2.0"], + "modelTerms": [ + "black-forest-labs/flux-3-image-klein@8454017f9ebaada30c998fccd9f67a80c7580f68: Apache-2.0" + ], "aiGenerated": true, "humanLikenessConsent": "synthetic", - "marks": ["Fictional MATERIAL ATLAS label"], + "marks": [ + "Fictional MATERIAL ATLAS label" + ], "requiredAttribution": [], "assetLicense": "Apache-2.0", "reviewedBy": "SOURAV DAS", @@ -15839,7 +17656,9 @@ "sourceUrl": "https://huggingface.co/black-forest-labs/flux-3-image-klein/tree/8454017f9ebaada30c998fccd9f67a80c7580f68", "sourceRevision": "black-forest-labs/flux-3-image-klein@8454017f9ebaada30c998fccd9f67a80c7580f68", "sourceLicense": "Apache-2.0 project-authored metadata", - "modelTerms": ["black-forest-labs/flux-3-image-klein@8454017f9ebaada30c998fccd9f67a80c7580f68: Apache-2.0"], + "modelTerms": [ + "black-forest-labs/flux-3-image-klein@8454017f9ebaada30c998fccd9f67a80c7580f68: Apache-2.0" + ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], @@ -15860,7 +17679,9 @@ "sourceUrl": "https://huggingface.co/black-forest-labs/flux-3-image-klein/tree/8454017f9ebaada30c998fccd9f67a80c7580f68", "sourceRevision": "black-forest-labs/flux-3-image-klein@8454017f9ebaada30c998fccd9f67a80c7580f68", "sourceLicense": "Original synthetic generation; underlying model terms retained", - "modelTerms": ["black-forest-labs/flux-3-image-klein@8454017f9ebaada30c998fccd9f67a80c7580f68: Apache-2.0"], + "modelTerms": [ + "black-forest-labs/flux-3-image-klein@8454017f9ebaada30c998fccd9f67a80c7580f68: Apache-2.0" + ], "aiGenerated": true, "humanLikenessConsent": "synthetic", "marks": [], @@ -15881,7 +17702,9 @@ "sourceUrl": "https://huggingface.co/black-forest-labs/flux-3-image-klein/tree/8454017f9ebaada30c998fccd9f67a80c7580f68", "sourceRevision": "black-forest-labs/flux-3-image-klein@8454017f9ebaada30c998fccd9f67a80c7580f68", "sourceLicense": "Apache-2.0 project-authored metadata", - "modelTerms": ["black-forest-labs/flux-3-image-klein@8454017f9ebaada30c998fccd9f67a80c7580f68: Apache-2.0"], + "modelTerms": [ + "black-forest-labs/flux-3-image-klein@8454017f9ebaada30c998fccd9f67a80c7580f68: Apache-2.0" + ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], @@ -15902,7 +17725,9 @@ "sourceUrl": "https://huggingface.co/black-forest-labs/flux-3-image-klein/tree/8454017f9ebaada30c998fccd9f67a80c7580f68", "sourceRevision": "black-forest-labs/flux-3-image-klein@8454017f9ebaada30c998fccd9f67a80c7580f68", "sourceLicense": "Original synthetic generation; underlying model terms retained", - "modelTerms": ["black-forest-labs/flux-3-image-klein@8454017f9ebaada30c998fccd9f67a80c7580f68: Apache-2.0"], + "modelTerms": [ + "black-forest-labs/flux-3-image-klein@8454017f9ebaada30c998fccd9f67a80c7580f68: Apache-2.0" + ], "aiGenerated": true, "humanLikenessConsent": "synthetic", "marks": [], @@ -16045,7 +17870,9 @@ ], "aiGenerated": true, "humanLikenessConsent": "synthetic", - "marks": ["Fictional MATERIAL ATLAS label"], + "marks": [ + "Fictional MATERIAL ATLAS label" + ], "requiredAttribution": [], "assetLicense": "Apache-2.0", "reviewedBy": "SOURAV DAS", @@ -16183,7 +18010,9 @@ ], "aiGenerated": true, "humanLikenessConsent": "synthetic", - "marks": ["Fictional MATERIAL ATLAS label"], + "marks": [ + "Fictional MATERIAL ATLAS label" + ], "requiredAttribution": [], "assetLicense": "Apache-2.0", "reviewedBy": "SOURAV DAS", @@ -16345,7 +18174,9 @@ "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], - "requiredAttribution": ["AI-generated with Lightricks LTX-2.5 Full. Original edit and Foley by MoDiff."], + "requiredAttribution": [ + "AI-generated with Lightricks LTX-2.5 Full. Original edit and Foley by MoDiff." + ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace owner", "reviewedAt": "2026-11-18", @@ -16368,7 +18199,9 @@ "aiGenerated": true, "humanLikenessConsent": "synthetic", "marks": [], - "requiredAttribution": ["AI-generated with Lightricks LTX-2.5 Full. Original edit and Foley by MoDiff."], + "requiredAttribution": [ + "AI-generated with Lightricks LTX-2.5 Full. Original edit and Foley by MoDiff." + ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace owner", "reviewedAt": "2026-11-18", @@ -16391,7 +18224,9 @@ "aiGenerated": true, "humanLikenessConsent": "synthetic", "marks": [], - "requiredAttribution": ["AI-generated with Lightricks LTX-2.5 Full. Original edit and Foley by MoDiff."], + "requiredAttribution": [ + "AI-generated with Lightricks LTX-2.5 Full. Original edit and Foley by MoDiff." + ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace owner", "reviewedAt": "2026-11-18", @@ -17494,7 +19329,9 @@ ], "aiGenerated": true, "humanLikenessConsent": "synthetic", - "marks": ["LumaPod project-authored concept name/wordmark approved in this packet"], + "marks": [ + "LumaPod project-authored concept name/wordmark approved in this packet" + ], "requiredAttribution": [], "path": "template-gallery/z_image_product_mockup.webp", "sha256": "sha256:bytes:0d9c80e29c95d62835f56c95d666ed6d8b47e6792005ab59aef1d1c9b6de84df", @@ -17530,6 +19367,33 @@ "reviewClass": "per-file-human-approved-six-z-registration", "humanApprovalPacketSHA256": "9b728a5f8535fc1ba3c03d2e2759d7ac795a586fafab51beb1509379ed388934", "provenanceTemplateId": "z_image_quick_concept" + }, + { + "path": "template-gallery/zimage_golden_amber_glass.webp", + "sha256": "sha256:bytes:b4894bf9bead0f509fa4e7ef27eccd341b3d855dfe74fe70be3117d184eef990", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Exact approved file captured from a saved MoDiff workflow", + "sourceUrl": "https://huggingface.co/Tongyi-MAI/Z-Image-Turbo/tree/f332072aa78be7aecdf3ee76d5c247082da564a6", + "sourceRevision": "Tongyi-MAI/Z-Image-Turbo@f332072aa78be7aecdf3ee76d5c247082da564a6", + "sourceLicense": "Maintainer-authorized file with publisher terms retained", + "modelTerms": [ + "Publisher model terms at https://huggingface.co/Tongyi-MAI/Z-Image-Turbo/tree/f332072aa78be7aecdf3ee76d5c247082da564a6" + ], + "aiGenerated": true, + "humanLikenessConsent": "synthetic", + "marks": [], + "requiredAttribution": [ + "Tongyi-MAI/Z-Image-Turbo@f332072aa78be7aecdf3ee76d5c247082da564a6 https://huggingface.co/Tongyi-MAI/Z-Image-Turbo/tree/f332072aa78be7aecdf3ee76d5c247082da564a6" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "c2df9edb92f8ff905b6c9a138a285e67c621f3d2dfa3232f859aaf963b725aca", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "zimage_golden_amber_glass" } ] } diff --git a/config/template-assets.v1.json b/config/template-assets.v1.json index f08d120a..572d580b 100644 --- a/config/template-assets.v1.json +++ b/config/template-assets.v1.json @@ -197,6 +197,28 @@ "width": 1024, "height": 1024 }, + { + "path": "template-gallery/chroma_restored_cobalt_backdrop.webp", + "size": 119420, + "sha256": "sha256:bytes:66e00fa95a61ab9d0f77bce099476dd8ffc569697fe59fb509e8c589402dad9b", + "contentType": "image/webp", + "purposes": [ + "runtime" + ], + "width": 1024, + "height": 1024 + }, + { + "path": "template-gallery/chroma_terracotta_and_blue.webp", + "size": 520308, + "sha256": "sha256:bytes:e8dc514cf845631e498cbcb1ed841d25fe5e62ede712e2e216faba3ec9155df3", + "contentType": "image/webp", + "purposes": [ + "runtime" + ], + "width": 1024, + "height": 1024 + }, { "path": "template-gallery/cobalt_jug_and_lemons.webp", "size": 116500, @@ -1405,6 +1427,28 @@ "width": 1664, "height": 960 }, + { + "path": "template-gallery/hunyuan_dit_coastal_lighthouse.webp", + "size": 514518, + "sha256": "sha256:bytes:849fc3d47db9a23dcea0ec788e336d75e1a5a802e50795e76da3aeb11f8188ef", + "contentType": "image/webp", + "purposes": [ + "runtime" + ], + "width": 1024, + "height": 1024 + }, + { + "path": "template-gallery/hunyuan_pag_burgundy_knight.webp", + "size": 274754, + "sha256": "sha256:bytes:9f1c23651fccd748c6caa912c81e5e3983d311374ba2781ee2d27d2b3cf7ae0c", + "contentType": "image/webp", + "purposes": [ + "runtime" + ], + "width": 1024, + "height": 1024 + }, { "path": "template-gallery/inputs/ace_step_audio_variation.before.wav", "size": 5760044, @@ -1436,6 +1480,28 @@ "width": 1024, "height": 1024 }, + { + "path": "template-gallery/inputs/chroma_restored_cobalt_backdrop.before.png", + "size": 623267, + "sha256": "sha256:bytes:e75c20f0e8a74e283b996bf526e6ea74535ed24125ad97c2d92508d3435d7a87", + "contentType": "image/png", + "purposes": [ + "runtime" + ], + "width": 1024, + "height": 1024 + }, + { + "path": "template-gallery/inputs/chroma_restored_cobalt_backdrop.mask.png", + "size": 1571, + "sha256": "sha256:bytes:1f48775f2826f84e0c5b55f16f3475bdc80ecad8b931d6b0279598610e9a828d", + "contentType": "image/png", + "purposes": [ + "runtime" + ], + "width": 1024, + "height": 1024 + }, { "path": "template-gallery/inputs/flux2_klein_edit.before.png", "size": 266188, @@ -1924,6 +1990,39 @@ "width": 1024, "height": 1024 }, + { + "path": "template-gallery/inputs/sd15_pag_cobalt_studio_repair.before.png", + "size": 271303, + "sha256": "sha256:bytes:d143c4922ad498b9bd436d06df424bbff50baf023b93735b53ee401e19e4cbf1", + "contentType": "image/png", + "purposes": [ + "runtime" + ], + "width": 512, + "height": 512 + }, + { + "path": "template-gallery/inputs/sd15_pag_cobalt_studio_repair.mask.png", + "size": 568, + "sha256": "sha256:bytes:71817f4823a73712c8e76e7d832ec382c29ec0a0bf5a472e09639448c082da01", + "contentType": "image/png", + "purposes": [ + "runtime" + ], + "width": 512, + "height": 512 + }, + { + "path": "template-gallery/inputs/sd15_pag_mountain_lake_watercolor.before.png", + "size": 1509971, + "sha256": "sha256:bytes:88290a96bc8d52f11f2d1e3c0c0e04c2027661816e54b57d7d4739d731ca1e75", + "contentType": "image/png", + "purposes": [ + "runtime" + ], + "width": 1024, + "height": 1024 + }, { "path": "template-gallery/inputs/sdxl_clear_cobalt_backdrop.before.png", "size": 623267, @@ -1946,6 +2045,17 @@ "width": 1024, "height": 1024 }, + { + "path": "template-gallery/inputs/sdxl_pix2pix_pale_amber_glass.before.png", + "size": 494048, + "sha256": "sha256:bytes:ebaca95f96d1573e4292ffc65c78eb0dcf8ff9cc8b5a7e11ec81face61b160fb", + "contentType": "image/png", + "purposes": [ + "runtime" + ], + "width": 768, + "height": 768 + }, { "path": "template-gallery/inputs/spandrel_x2_synthetic_gradient.before.png", "size": 177, @@ -1993,6 +2103,17 @@ "runtime" ] }, + { + "path": "template-gallery/inputs/zimage_golden_amber_glass.before.png", + "size": 494048, + "sha256": "sha256:bytes:ebaca95f96d1573e4292ffc65c78eb0dcf8ff9cc8b5a7e11ec81face61b160fb", + "contentType": "image/png", + "purposes": [ + "runtime" + ], + "width": 768, + "height": 768 + }, { "path": "template-gallery/janus_red_enamel_teapot.webp", "size": 33688, @@ -2350,6 +2471,17 @@ "width": 1536, "height": 1024 }, + { + "path": "template-gallery/lumina2_larch_on_glacial_pond.webp", + "size": 457128, + "sha256": "sha256:bytes:06491642cdf97ed7676ad237353957a42aa121a11d3f2423c1a4ac4dd6a53ee5", + "contentType": "image/webp", + "purposes": [ + "runtime" + ], + "width": 1024, + "height": 1024 + }, { "path": "template-gallery/lumina_opal_pendant_in_limestone.webp", "size": 279270, @@ -2363,8 +2495,8 @@ }, { "path": "template-gallery/manifest.json", - "size": 304414, - "sha256": "sha256:bytes:e754f588addecb7b9d0a35ea3310c591907ab34785115f1bf653f2d92d65c42d", + "size": 329020, + "sha256": "sha256:bytes:ffa3e887c65d7eb2fe860611ac5eb042cd0645bcb2999b48552d6dd1d5a1eafa", "contentType": "application/json", "purposes": [ "runtime", @@ -2402,6 +2534,17 @@ "width": 1024, "height": 1024 }, + { + "path": "template-gallery/omnigen_tulips_after_rain.webp", + "size": 293564, + "sha256": "sha256:bytes:57d5f196f4abad78099482deeb23f37810075e6d708e289ca8eb4617acdbdde7", + "contentType": "image/webp", + "purposes": [ + "runtime" + ], + "width": 1024, + "height": 1024 + }, { "path": "template-gallery/persimmon_glaze.webp", "size": 67650, @@ -3128,6 +3271,78 @@ "runtime" ] }, + { + "path": "template-gallery/reviews/chroma_restored_cobalt_backdrop.original-provenance.json", + "size": 1422, + "sha256": "sha256:bytes:f87d18b81ff559f1298f0c780db0f5eb89e9f8219b4f4aff80c224bc3ef47ce4", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, + { + "path": "template-gallery/reviews/chroma_restored_cobalt_backdrop.original-review.json", + "size": 851, + "sha256": "sha256:bytes:88d1fbfadc2e1d3456f492214f7e51da6bdfd253eb00343fb93990e16c9ba2b9", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, + { + "path": "template-gallery/reviews/chroma_restored_cobalt_backdrop.quality-review.json", + "size": 2325, + "sha256": "sha256:bytes:803c31f4eb055884cbe955856e99f9846f9259ae58ad6c883d686de581c0dd09", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, + { + "path": "template-gallery/reviews/chroma_restored_cobalt_backdrop.retained-template-provenance.json", + "size": 4094, + "sha256": "sha256:bytes:5232b12615a38293b0d86378fdde3003a61a8f5834de95f395a9364e12dd8fd4", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, + { + "path": "template-gallery/reviews/chroma_terracotta_and_blue.original-provenance.json", + "size": 1746, + "sha256": "sha256:bytes:92a7762ec200afa64405b665dbd19d630b846f55bdb170fc08bfb5c588b1d258", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, + { + "path": "template-gallery/reviews/chroma_terracotta_and_blue.original-review.json", + "size": 428, + "sha256": "sha256:bytes:d935f45b897cc717315684e2b180097b2e3892d275b4c38e96f2a9ec930ae24f", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, + { + "path": "template-gallery/reviews/chroma_terracotta_and_blue.quality-review.json", + "size": 2389, + "sha256": "sha256:bytes:2435a255e05519ab5b750b4728217d7f938631213ffeeb6da882dcb184e9fa7b", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, + { + "path": "template-gallery/reviews/chroma_terracotta_and_blue.retained-template-provenance.json", + "size": 3309, + "sha256": "sha256:bytes:95d0a67308f0dd2b8024a39cacca3fcfd82611a03d01f76a38a429dd1c4c2077", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, { "path": "template-gallery/reviews/cobalt_jug_and_lemons.original-provenance.json", "size": 2633, @@ -3958,6 +4173,78 @@ "runtime" ] }, + { + "path": "template-gallery/reviews/hunyuan_dit_coastal_lighthouse.original-provenance.json", + "size": 1640, + "sha256": "sha256:bytes:cc5c37061625ef1e2bebb027601e368286272e22d4c68cbe63ea690cfe5871ae", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, + { + "path": "template-gallery/reviews/hunyuan_dit_coastal_lighthouse.original-review.json", + "size": 383, + "sha256": "sha256:bytes:ce4389778a7088b592491f31f36d88e5ea83a438d937a9b4c4cb61facc98c0ee", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, + { + "path": "template-gallery/reviews/hunyuan_dit_coastal_lighthouse.quality-review.json", + "size": 2318, + "sha256": "sha256:bytes:1954559ecbd9de2986fffc2134ea20628a05ada4a85bf2db8a40137a02bedee6", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, + { + "path": "template-gallery/reviews/hunyuan_dit_coastal_lighthouse.retained-template-provenance.json", + "size": 3374, + "sha256": "sha256:bytes:abcd8ff508cca890cb7be179f5e85d5d0f6eed116e47ec2faad168a174d0d9e0", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, + { + "path": "template-gallery/reviews/hunyuan_pag_burgundy_knight.original-provenance.json", + "size": 1758, + "sha256": "sha256:bytes:c2c30ee01a229dc1a2eafbc42f8e22d19626533c158ebeb4211ddc64f1ac9a9c", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, + { + "path": "template-gallery/reviews/hunyuan_pag_burgundy_knight.original-review.json", + "size": 470, + "sha256": "sha256:bytes:b472ba6d082486f25d5c17cf3da66d6d376e9add58924f6d0acbee2e21552588", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, + { + "path": "template-gallery/reviews/hunyuan_pag_burgundy_knight.quality-review.json", + "size": 2609, + "sha256": "sha256:bytes:f771127b2e2c8e93148f34e1ab5901488a5c7129f3e8608dcf5a9951f3e12645", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, + { + "path": "template-gallery/reviews/hunyuan_pag_burgundy_knight.retained-template-provenance.json", + "size": 3476, + "sha256": "sha256:bytes:dbbb8bbab6db6dd38ae97f532ed1a4c865d0a706c64ea02c4dbafa18b4ce1fea", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, { "path": "template-gallery/reviews/janus_red_enamel_teapot.original-provenance.json", "size": 1699, @@ -4246,6 +4533,42 @@ "runtime" ] }, + { + "path": "template-gallery/reviews/lumina2_larch_on_glacial_pond.original-provenance.json", + "size": 1634, + "sha256": "sha256:bytes:16e6a8baf35baec6d9e1be13523eaa5606174123b3a61274a257d5fbd14977f3", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, + { + "path": "template-gallery/reviews/lumina2_larch_on_glacial_pond.original-review.json", + "size": 410, + "sha256": "sha256:bytes:3fa1cbf6c53ed5ce65f8d116779ff9dea32a9c52c8a0877fbb87f77f17237695", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, + { + "path": "template-gallery/reviews/lumina2_larch_on_glacial_pond.quality-review.json", + "size": 2377, + "sha256": "sha256:bytes:527cf3a6d6a7820e09450d4a6d533e5d875a914bd2c8771c2060a513f712544e", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, + { + "path": "template-gallery/reviews/lumina2_larch_on_glacial_pond.retained-template-provenance.json", + "size": 3324, + "sha256": "sha256:bytes:d62e4d0a6e3739b95089003b3095611e419f62bcdc39befbb67aeba846aec0c8", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, { "path": "template-gallery/reviews/lumina_opal_pendant_in_limestone.original-provenance.json", "size": 2146, @@ -4372,6 +4695,42 @@ "runtime" ] }, + { + "path": "template-gallery/reviews/omnigen_tulips_after_rain.original-provenance.json", + "size": 1602, + "sha256": "sha256:bytes:cd37ada4ad60fccb5fece5fe6ef03dd62ba7a8a66eb141579f8fa424b6265d71", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, + { + "path": "template-gallery/reviews/omnigen_tulips_after_rain.original-review.json", + "size": 381, + "sha256": "sha256:bytes:3353e7fabebfddfc0b47f2ebdd668c0ae01f426d9280d1e4ac03d307582b8cc3", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, + { + "path": "template-gallery/reviews/omnigen_tulips_after_rain.quality-review.json", + "size": 2298, + "sha256": "sha256:bytes:333fbf9b662ef072cf2621b37b814052af11c4e219a6640376ba53a2ee4c154f", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, + { + "path": "template-gallery/reviews/omnigen_tulips_after_rain.retained-template-provenance.json", + "size": 3311, + "sha256": "sha256:bytes:143b1e03664e187b0815b81948843d05bf9bf2bc664f9c92b7cd78c3b7755245", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, { "path": "template-gallery/reviews/persimmon_glaze.original-provenance.json", "size": 2814, @@ -5056,6 +5415,78 @@ "runtime" ] }, + { + "path": "template-gallery/reviews/sd15_pag_cobalt_studio_repair.original-provenance.json", + "size": 1518, + "sha256": "sha256:bytes:b3a227ef5f8f0ea481c446854ce4be387bfe434ff252d9a5d34887ddb2b69b55", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, + { + "path": "template-gallery/reviews/sd15_pag_cobalt_studio_repair.original-review.json", + "size": 961, + "sha256": "sha256:bytes:dcbaa8d96f77097c5e763de7dd3602e62e4dc4d1302b2d4e7a426ae606b94de3", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, + { + "path": "template-gallery/reviews/sd15_pag_cobalt_studio_repair.quality-review.json", + "size": 2492, + "sha256": "sha256:bytes:ddfa89f8e656c4790a14c0e9dcfffa24a1a034cab5c1bb62390307bfa70bc9fc", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, + { + "path": "template-gallery/reviews/sd15_pag_cobalt_studio_repair.retained-template-provenance.json", + "size": 4162, + "sha256": "sha256:bytes:e2aade8abc03d27c9f342023c60f27dcbb77f28a94d7605522ae0e862672eeed", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, + { + "path": "template-gallery/reviews/sd15_pag_mountain_lake_watercolor.original-provenance.json", + "size": 1302, + "sha256": "sha256:bytes:53be917cea31e259033fb99bb4ff99b1b975abc7cad671b8eb2511794545082e", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, + { + "path": "template-gallery/reviews/sd15_pag_mountain_lake_watercolor.original-review.json", + "size": 886, + "sha256": "sha256:bytes:e7226c4664a027c20670f6aa367d4c2751efbe4fc0569afe6cb137349a8f5406", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, + { + "path": "template-gallery/reviews/sd15_pag_mountain_lake_watercolor.quality-review.json", + "size": 2463, + "sha256": "sha256:bytes:a76c9a2fbcb169ecc2498d87ebc3f17f640cd49c4ca906ffc117a281f885d2af", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, + { + "path": "template-gallery/reviews/sd15_pag_mountain_lake_watercolor.retained-template-provenance.json", + "size": 3780, + "sha256": "sha256:bytes:f2e571509ee047bbf0f2b7381ba505ec3204898db1f9d4bcf567ad1d661c1c75", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, { "path": "template-gallery/reviews/sdxl_clear_cobalt_backdrop.original-provenance.json", "size": 1214, @@ -5092,6 +5523,42 @@ "runtime" ] }, + { + "path": "template-gallery/reviews/sdxl_pix2pix_pale_amber_glass.original-provenance.json", + "size": 1287, + "sha256": "sha256:bytes:173457c9a8b1562e8268041daa277812a04739145a537765cdcb49278cabce33", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, + { + "path": "template-gallery/reviews/sdxl_pix2pix_pale_amber_glass.original-review.json", + "size": 834, + "sha256": "sha256:bytes:8f6ce6ee6887bc2d878b762faa054f5a26d6853c11fadc6ca32b0f71fb4ad080", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, + { + "path": "template-gallery/reviews/sdxl_pix2pix_pale_amber_glass.quality-review.json", + "size": 2321, + "sha256": "sha256:bytes:214f457d0759bb55820c36572a44b2cf144ac11d6b87180326a1dd72ec903e12", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, + { + "path": "template-gallery/reviews/sdxl_pix2pix_pale_amber_glass.retained-template-provenance.json", + "size": 3750, + "sha256": "sha256:bytes:571dbef32e64cbea069c54c9a71408eb47cbf6854dbbb10e9060dfe04758cf99", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, { "path": "template-gallery/reviews/sdxl_turbo_orange_caps.original-provenance.json", "size": 997, @@ -5526,6 +5993,42 @@ "runtime" ] }, + { + "path": "template-gallery/reviews/zimage_golden_amber_glass.original-provenance.json", + "size": 1214, + "sha256": "sha256:bytes:38001f1b676cbc30bb15e344e3dcb30102e11f204aa09a81002f6eb9d973b8a3", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, + { + "path": "template-gallery/reviews/zimage_golden_amber_glass.original-review.json", + "size": 795, + "sha256": "sha256:bytes:1ada33599f214a4d4a2cb3076823b66328fd5d17f1bb816259dcf37b6c474dd1", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, + { + "path": "template-gallery/reviews/zimage_golden_amber_glass.quality-review.json", + "size": 2343, + "sha256": "sha256:bytes:9eccd9055e341b7ef305b74e6103d70458bece7336d79ce64f2dd3f1bf7cdb1d", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, + { + "path": "template-gallery/reviews/zimage_golden_amber_glass.retained-template-provenance.json", + "size": 3660, + "sha256": "sha256:bytes:b7b4cc1441995324830d2c34d883b4bcb86b62faf445afbc15ea77b7855d024a", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, { "path": "template-gallery/runtime-inputs/assets/0ea2dd6fd5c75c7b49e5677c3ff74666b6e8b3d3cf7f62ba1ad416253a76f63b.webp", "size": 91186, @@ -6192,6 +6695,28 @@ "width": 1024, "height": 1024 }, + { + "path": "template-gallery/sd15_pag_cobalt_studio_repair.webp", + "size": 45174, + "sha256": "sha256:bytes:eb511fda2b5d227685893fac25fd214c4b4a25ac7c1f61e0205983ac657f82de", + "contentType": "image/webp", + "purposes": [ + "runtime" + ], + "width": 512, + "height": 512 + }, + { + "path": "template-gallery/sd15_pag_mountain_lake_watercolor.webp", + "size": 449078, + "sha256": "sha256:bytes:d3956b48ecf149f19ce45b003a6216ab7e0ca1771ba0aaec1fa420cac710158f", + "contentType": "image/webp", + "purposes": [ + "runtime" + ], + "width": 1024, + "height": 1024 + }, { "path": "template-gallery/sdxl_clear_cobalt_backdrop.webp", "size": 119828, @@ -6203,6 +6728,17 @@ "width": 1024, "height": 1024 }, + { + "path": "template-gallery/sdxl_pix2pix_pale_amber_glass.webp", + "size": 135420, + "sha256": "sha256:bytes:a56a057711364a3b747c202652999f5fcde7ee1b91c0c7a2a92e6ca26c6c3dff", + "contentType": "image/webp", + "purposes": [ + "runtime" + ], + "width": 768, + "height": 768 + }, { "path": "template-gallery/sdxl_turbo_orange_caps.webp", "size": 75822, @@ -7005,11 +7541,22 @@ ], "width": 1024, "height": 1024 + }, + { + "path": "template-gallery/zimage_golden_amber_glass.webp", + "size": 84094, + "sha256": "sha256:bytes:b4894bf9bead0f509fa4e7ef27eccd341b3d855dfe74fe70be3117d184eef990", + "contentType": "image/webp", + "purposes": [ + "runtime" + ], + "width": 640, + "height": 640 } ], - "assetSetId": "sha256:canonical-json:690ea1522e3b4ffd3d72bc5911f02763c842fa3d23428ef123db0dbe0dca3a91", + "assetSetId": "sha256:canonical-json:a5449a1ff8625c700e811308f7c16caf8888d379889895381ee4934d485c2cd6", "status": "ready", - "assetCount": 715, - "totalBytes": 1046033259, + "assetCount": 772, + "totalBytes": 1052427796, "missingAssets": [] } diff --git a/public/template-gallery/manifest.json b/public/template-gallery/manifest.json index 979f48b0..d9dad361 100644 --- a/public/template-gallery/manifest.json +++ b/public/template-gallery/manifest.json @@ -3898,6 +3898,323 @@ "height": 1024, "approvedOriginalReviewPath": "/template-gallery/reviews/kandinsky3_ginkgo_on_slate.original-review.json", "approvedOriginalProvenancePath": "/template-gallery/reviews/kandinsky3_ginkgo_on_slate.original-provenance.json" + }, + { + "templateId": "chroma_terracotta_and_blue", + "templateLockHash": "tpl_9dbc94cc", + "promptSettingsHash": "ps_aaaac429", + "modelRevision": "lodestones/Chroma1-HD@0e0c60ece1e82b17cb7f77342d765ba5024c40c0", + "runtimeFingerprint": "sha256:stable-runtime-v1:de99e7b1729318c3e5b2dde98b51e5feb07ae329310f9b2da76831df1410cae7", + "graphHash": "sha256:canonical-graph-v1:bf170489052eadc150ad0e4149344312741328c5e4e859fb1473be81c3fe63ea", + "proofLockHash": "sha256:retained-template-association-v1:49ead075de62a42b900c916952869c1cafd5bea8a9d2f897dfc4ce4828ac871b", + "backendSourceFingerprint": "sha256:backend-source-v1:b29a5b0d317aaa781ae2a5205b46b518eea5a3d68a214eb0968dba4ac0660af7", + "backendContractFingerprint": "sha256:backend-contract-v1:300f2fb801e65ef8a0355d217f3f89e59d11e38f976af5a86ba41212d30216fd", + "modelCommit": "0e0c60ece1e82b17cb7f77342d765ba5024c40c0", + "templateRevisionHash": "5221fc5d744cbdcf1aa29d1fa9b27cddc0fcbd75983c24061e6218d41621617d", + "provenancePath": "/template-gallery/reviews/chroma_terracotta_and_blue.retained-template-provenance.json", + "provenanceHash": "sha256:canonical-json:6a7f7bda704386fa339685e429c7acf0efb497bdeccbe4018f42a502ab64b319", + "outputPath": "/template-gallery/chroma_terracotta_and_blue.webp", + "thumbnailPath": "/template-gallery/chroma_terracotta_and_blue.webp", + "mediaHash": "sha256:decoded-rgba:8cc5be85de6e2375d3a3083f620ca37e041bb5e0a453f9f0ccfbc45ae8588af4", + "mediaType": "image", + "verificationTimestamp": "2026-11-24T22:50:29.995Z", + "verificationStatus": "reviewed", + "qualityReviewStatus": "approved_reviewed", + "qualityReviewHash": "sha256:canonical-json:dddea0a69b1a3e9400e38878f61519e3f872f4deb11783e1d294070cb49ecb9d", + "qualityReviewPath": "/template-gallery/reviews/chroma_terracotta_and_blue.quality-review.json", + "reviewer": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25T05:51:53.933Z", + "width": 1024, + "height": 1024, + "approvedOriginalReviewPath": "/template-gallery/reviews/chroma_terracotta_and_blue.original-review.json", + "approvedOriginalProvenancePath": "/template-gallery/reviews/chroma_terracotta_and_blue.original-provenance.json" + }, + { + "templateId": "lumina2_larch_on_glacial_pond", + "templateLockHash": "tpl_0c2048ce", + "promptSettingsHash": "ps_e264186c", + "modelRevision": "Alpha-VLLM/Lumina-Image-2.0@53504abd8178b30685b6c4c7a4cd181ff78b73e9", + "runtimeFingerprint": "sha256:stable-runtime-v1:7a3c7e5a198ec52ba992f2445f4149d995c742a327b23a4cf87c008327592509", + "graphHash": "sha256:canonical-graph-v1:b58ba817732e34d2c40f61f7bb7dbdebf32c6f2a2bbb21dcdbb237004edc4cc3", + "proofLockHash": "sha256:retained-template-association-v1:57020c7c3d4fcd4d435d9cb933d57ebf1a573cea01606d98433d925e31cb9b33", + "backendSourceFingerprint": "sha256:backend-source-v1:057b165c6ef6225461649a47077562dffad098a2d37d639a13bf0e73088d79ab", + "backendContractFingerprint": "sha256:backend-contract-v1:300f2fb801e65ef8a0355d217f3f89e59d11e38f976af5a86ba41212d30216fd", + "modelCommit": "53504abd8178b30685b6c4c7a4cd181ff78b73e9", + "templateRevisionHash": "c1fecc495b278628b9539fb84079b73b70db420165a7e151def065731920853e", + "provenancePath": "/template-gallery/reviews/lumina2_larch_on_glacial_pond.retained-template-provenance.json", + "provenanceHash": "sha256:canonical-json:2e32a83fcd44af4cb3ccc489e98b044362dc126c2644bf735ae18135a48d9d09", + "outputPath": "/template-gallery/lumina2_larch_on_glacial_pond.webp", + "thumbnailPath": "/template-gallery/lumina2_larch_on_glacial_pond.webp", + "mediaHash": "sha256:decoded-rgba:d0fc52b8f929fd2f3dc284ed3148f1a82896e1565684edd31b73174ffda6da39", + "mediaType": "image", + "verificationTimestamp": "2026-11-23T14:40:20.880Z", + "verificationStatus": "reviewed", + "qualityReviewStatus": "approved_reviewed", + "qualityReviewHash": "sha256:canonical-json:491b992512b0d889fe57d2838d2a4ef479c7be6103e5f2d30d776902ef363278", + "qualityReviewPath": "/template-gallery/reviews/lumina2_larch_on_glacial_pond.quality-review.json", + "reviewer": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25T05:51:53.933Z", + "width": 1024, + "height": 1024, + "approvedOriginalReviewPath": "/template-gallery/reviews/lumina2_larch_on_glacial_pond.original-review.json", + "approvedOriginalProvenancePath": "/template-gallery/reviews/lumina2_larch_on_glacial_pond.original-provenance.json" + }, + { + "templateId": "hunyuan_dit_coastal_lighthouse", + "templateLockHash": "tpl_ad3b4f77", + "promptSettingsHash": "ps_f38e8fdc", + "modelRevision": "Tencent-Hunyuan/HunyuanDiT-v1.2-Diffusers-Distilled@ba991d1546d8c50936c4c16398ed0a87b9b99fb1", + "runtimeFingerprint": "sha256:stable-runtime-v1:9123e0c95ac5f92f2c5c682cdba420461dfa9c219e93ba54a29a76610d457859", + "graphHash": "sha256:canonical-graph-v1:4d26fca7d33aec5e119da74520c47fd96fa41f9de0b92a3afca76505fb5722aa", + "proofLockHash": "sha256:retained-template-association-v1:3b810694c954132935a48f68c4e3b49ce4e21661d3fb5d31c59e4b4ad05ab740", + "backendSourceFingerprint": "sha256:backend-source-v1:371fd754663a95b1b06900df9a838042048466464b4bd5cfa7033c1b6eebe0e3", + "backendContractFingerprint": "sha256:backend-contract-v1:300f2fb801e65ef8a0355d217f3f89e59d11e38f976af5a86ba41212d30216fd", + "modelCommit": "ba991d1546d8c50936c4c16398ed0a87b9b99fb1", + "templateRevisionHash": "59e80838a60338b27351f10a7cc8478dbe1ae81e04d5d7718ee37aa556585788", + "provenancePath": "/template-gallery/reviews/hunyuan_dit_coastal_lighthouse.retained-template-provenance.json", + "provenanceHash": "sha256:canonical-json:5fd1917f647dbc4a7f731165d805e2d91e8876cb344ad31066a5142083f97158", + "outputPath": "/template-gallery/hunyuan_dit_coastal_lighthouse.webp", + "thumbnailPath": "/template-gallery/hunyuan_dit_coastal_lighthouse.webp", + "mediaHash": "sha256:decoded-rgba:6325bec292a535249787cca0c6186665111cb01ea206e4fdc0849e41d6b2b4a4", + "mediaType": "image", + "verificationTimestamp": "2026-11-23T15:09:01.447Z", + "verificationStatus": "reviewed", + "qualityReviewStatus": "approved_reviewed", + "qualityReviewHash": "sha256:canonical-json:0af573e292bdd7a6d10ddcdaa11d1cb2c75100766aa50d571a320ce5869284f6", + "qualityReviewPath": "/template-gallery/reviews/hunyuan_dit_coastal_lighthouse.quality-review.json", + "reviewer": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25T05:51:53.933Z", + "width": 1024, + "height": 1024, + "approvedOriginalReviewPath": "/template-gallery/reviews/hunyuan_dit_coastal_lighthouse.original-review.json", + "approvedOriginalProvenancePath": "/template-gallery/reviews/hunyuan_dit_coastal_lighthouse.original-provenance.json" + }, + { + "templateId": "omnigen_tulips_after_rain", + "templateLockHash": "tpl_0c5c4bcd", + "promptSettingsHash": "ps_4e4eb7da", + "modelRevision": "Shitao/OmniGen-v1-diffusers@016e2f61d12a98303f6bbdf122687694d7984268", + "runtimeFingerprint": "sha256:stable-runtime-v1:09a3ae16efba82e9a5726ef33d1eecc1d2c2b85ea03c3fd58abacd7a7fee4a08", + "graphHash": "sha256:canonical-graph-v1:38376f1ad21e5c153fb96860a4e566847ff916716637ffd2061dfae350577c93", + "proofLockHash": "sha256:retained-template-association-v1:f435713c96664f012ed048026354f9aadeaaf5769516589eee27120e34f465b8", + "backendSourceFingerprint": "sha256:backend-source-v1:371fd754663a95b1b06900df9a838042048466464b4bd5cfa7033c1b6eebe0e3", + "backendContractFingerprint": "sha256:backend-contract-v1:300f2fb801e65ef8a0355d217f3f89e59d11e38f976af5a86ba41212d30216fd", + "modelCommit": "016e2f61d12a98303f6bbdf122687694d7984268", + "templateRevisionHash": "e3ceb2dc096775601a6e65b7ab61f5ccc64658d2a69586f3c6a13f2efe1a973c", + "provenancePath": "/template-gallery/reviews/omnigen_tulips_after_rain.retained-template-provenance.json", + "provenanceHash": "sha256:canonical-json:973be5d1628a0550593f15d6ad2dc723e343a84add6ec95609642169c4b97a16", + "outputPath": "/template-gallery/omnigen_tulips_after_rain.webp", + "thumbnailPath": "/template-gallery/omnigen_tulips_after_rain.webp", + "mediaHash": "sha256:decoded-rgba:54479e1bf9c402bc25f28fd124e5e696f5ffa329edcacfd455c2c95ef24755a6", + "mediaType": "image", + "verificationTimestamp": "2026-11-23T15:17:38.630Z", + "verificationStatus": "reviewed", + "qualityReviewStatus": "approved_reviewed", + "qualityReviewHash": "sha256:canonical-json:392558e282b7093accde6ac5dba1bbac494dacfb9f111e32cf5b994cb7bd7eae", + "qualityReviewPath": "/template-gallery/reviews/omnigen_tulips_after_rain.quality-review.json", + "reviewer": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25T05:51:53.933Z", + "width": 1024, + "height": 1024, + "approvedOriginalReviewPath": "/template-gallery/reviews/omnigen_tulips_after_rain.original-review.json", + "approvedOriginalProvenancePath": "/template-gallery/reviews/omnigen_tulips_after_rain.original-provenance.json" + }, + { + "templateId": "hunyuan_pag_burgundy_knight", + "templateLockHash": "tpl_00d848b4", + "promptSettingsHash": "ps_60e8ca60", + "modelRevision": "Tencent-Hunyuan/HunyuanDiT-v1.2-Diffusers-Distilled@ba991d1546d8c50936c4c16398ed0a87b9b99fb1", + "runtimeFingerprint": "sha256:stable-runtime-v1:f4367d6b32e698264987811d666e7e3383675266f635faab07cbdcf7bd8812aa", + "graphHash": "sha256:canonical-graph-v1:9ff7bd0050b5c50405728a76530205fcdc54531b7b017cc66e3b821b52413dcd", + "proofLockHash": "sha256:retained-template-association-v1:fd76e7117e715faf4f097f881ce80b04f86b35d8fc4019b54df24d040403aa9e", + "backendSourceFingerprint": "sha256:backend-source-v1:371fd754663a95b1b06900df9a838042048466464b4bd5cfa7033c1b6eebe0e3", + "backendContractFingerprint": "sha256:backend-contract-v1:300f2fb801e65ef8a0355d217f3f89e59d11e38f976af5a86ba41212d30216fd", + "modelCommit": "ba991d1546d8c50936c4c16398ed0a87b9b99fb1", + "templateRevisionHash": "ff4d1b75e172f8fdb8a45199626ed40a07fe634669e03d1591091a10c176edfe", + "provenancePath": "/template-gallery/reviews/hunyuan_pag_burgundy_knight.retained-template-provenance.json", + "provenanceHash": "sha256:canonical-json:bfe43512edfae7d033ecddd5d9b29f63f67a631dce808c7b4b0a1262484b129f", + "outputPath": "/template-gallery/hunyuan_pag_burgundy_knight.webp", + "thumbnailPath": "/template-gallery/hunyuan_pag_burgundy_knight.webp", + "mediaHash": "sha256:decoded-rgba:e4c2f799943a927f9fd6344c30a95b14b4b6bc444dbd5d39d59dd5ed893eb478", + "mediaType": "image", + "verificationTimestamp": "2026-11-23T15:11:08.624Z", + "verificationStatus": "reviewed", + "qualityReviewStatus": "approved_reviewed", + "qualityReviewHash": "sha256:canonical-json:3fe4ad823f2901e00fa3d6b61df704c778b04e36ac540ec9e3077f9e9f4b20d6", + "qualityReviewPath": "/template-gallery/reviews/hunyuan_pag_burgundy_knight.quality-review.json", + "reviewer": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25T05:51:53.933Z", + "width": 1024, + "height": 1024, + "approvedOriginalReviewPath": "/template-gallery/reviews/hunyuan_pag_burgundy_knight.original-review.json", + "approvedOriginalProvenancePath": "/template-gallery/reviews/hunyuan_pag_burgundy_knight.original-provenance.json" + }, + { + "templateId": "chroma_restored_cobalt_backdrop", + "templateLockHash": "tpl_8c282bf7", + "promptSettingsHash": "ps_747e9429", + "modelRevision": "lodestones/Chroma1-HD@0e0c60ece1e82b17cb7f77342d765ba5024c40c0", + "runtimeFingerprint": "sha256:stable-runtime-v1:db748f346e99d9a1c02061feb881ea118dd4498ad796742685a56de041f6aa2b", + "graphHash": "sha256:canonical-graph-v1:d3bfd6322b7b1bd0f34b9faa9f444ebefae32fc43c368d37169f6ebfbc6c53cf", + "proofLockHash": "sha256:retained-template-association-v1:63180318272b33812b5afe58b3aefc0628912089f9e951092a4a18f0d2c152fc", + "backendSourceFingerprint": "sha256:backend-source-v1:43f2ed10792fc6167b963166287cf7d5a0429afa26029e6455b0418e2123be86", + "backendContractFingerprint": "sha256:backend-contract-v1:e7a7aa3acbdedd686fa7e7a9d4bcc39c1709ba1fec38f047d63ff83558a85c18", + "modelCommit": "0e0c60ece1e82b17cb7f77342d765ba5024c40c0", + "templateRevisionHash": "d3c99f24317aaf93b0f25f2681bdc56f456d69554e47a522c0c04487602149f2", + "provenancePath": "/template-gallery/reviews/chroma_restored_cobalt_backdrop.retained-template-provenance.json", + "provenanceHash": "sha256:canonical-json:e747f54405c34df06ce0f82265ee19703272027ed1d6766a2e2999cbe3cded96", + "outputPath": "/template-gallery/chroma_restored_cobalt_backdrop.webp", + "thumbnailPath": "/template-gallery/chroma_restored_cobalt_backdrop.webp", + "mediaHash": "sha256:decoded-rgba:9894171a0c49533cc95f4dbe009fd3377e0ae8b79a1a4901ba6014d33d0136ff", + "mediaType": "image", + "verificationTimestamp": "2026-11-23T22:32:10.177Z", + "verificationStatus": "reviewed", + "qualityReviewStatus": "approved_reviewed", + "qualityReviewHash": "sha256:canonical-json:962eb4e5b53641646657ce9b20922ffd1d03a957b784982eb552f402ebe19fcc", + "qualityReviewPath": "/template-gallery/reviews/chroma_restored_cobalt_backdrop.quality-review.json", + "reviewer": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25T05:51:53.933Z", + "beforePath": "/template-gallery/inputs/chroma_restored_cobalt_backdrop.before.png", + "beforeMediaHash": "sha256:bytes:e75c20f0e8a74e283b996bf526e6ea74535ed24125ad97c2d92508d3435d7a87", + "afterPath": "/template-gallery/chroma_restored_cobalt_backdrop.webp", + "width": 1024, + "height": 1024, + "approvedOriginalReviewPath": "/template-gallery/reviews/chroma_restored_cobalt_backdrop.original-review.json", + "approvedOriginalProvenancePath": "/template-gallery/reviews/chroma_restored_cobalt_backdrop.original-provenance.json", + "approvedMaskPath": "/template-gallery/inputs/chroma_restored_cobalt_backdrop.mask.png" + }, + { + "templateId": "sdxl_pix2pix_pale_amber_glass", + "templateLockHash": "tpl_5a852750", + "promptSettingsHash": "ps_de1bb4fa", + "modelRevision": "diffusers/sdxl-instructpix2pix-768@06653d47f8d22f2c2205a5884d6a24c5e76d2ca7", + "runtimeFingerprint": "sha256:stable-runtime-v1:7ce3ae206bcbdbc025f3dc0bb48603911a18cc1162d5a389191ae58cbd690ab5", + "graphHash": "sha256:canonical-graph-v1:be363defe20343a8ad3dda9b464344a590c931b6908d5f2eb8ee4d1ba4974f95", + "proofLockHash": "sha256:retained-template-association-v1:e946a038dfc18edfc4d3677839274ead38d8cade15ebebdf82f0d3699c1a35c2", + "backendSourceFingerprint": "sha256:backend-source-v1:55da4a68212923ee8a67e70754f46193288e210bce08ab4ae8c06834a7a76995", + "backendContractFingerprint": "sha256:backend-contract-v1:bd364fcd29020d51bb61f5f9bf320cf0bf562e718c645c21ffac8ed5a47b740d", + "modelCommit": "06653d47f8d22f2c2205a5884d6a24c5e76d2ca7", + "templateRevisionHash": "897fb59d568ceba3ef8d85cf1141f79002522b111dbc6ffa67ad51a9acf88495", + "provenancePath": "/template-gallery/reviews/sdxl_pix2pix_pale_amber_glass.retained-template-provenance.json", + "provenanceHash": "sha256:canonical-json:c2af4572994949928bea47bc298f81e6997a95b9b3e95f8feb051be3f653b5b4", + "outputPath": "/template-gallery/sdxl_pix2pix_pale_amber_glass.webp", + "thumbnailPath": "/template-gallery/sdxl_pix2pix_pale_amber_glass.webp", + "mediaHash": "sha256:decoded-rgba:1e53cd15d12494f5bb6b9fb5488bfe3a921ddfba66dfed0f5b63932ee8886102", + "mediaType": "image", + "verificationTimestamp": "2026-11-23T16:05:26.964Z", + "verificationStatus": "reviewed", + "qualityReviewStatus": "approved_reviewed", + "qualityReviewHash": "sha256:canonical-json:1aaf9bda79eacf471498f41ec3a32197ede11cb5700257b91f5763f11ba94e90", + "qualityReviewPath": "/template-gallery/reviews/sdxl_pix2pix_pale_amber_glass.quality-review.json", + "reviewer": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25T05:51:53.933Z", + "beforePath": "/template-gallery/inputs/sdxl_pix2pix_pale_amber_glass.before.png", + "beforeMediaHash": "sha256:bytes:ebaca95f96d1573e4292ffc65c78eb0dcf8ff9cc8b5a7e11ec81face61b160fb", + "afterPath": "/template-gallery/sdxl_pix2pix_pale_amber_glass.webp", + "width": 768, + "height": 768, + "approvedOriginalReviewPath": "/template-gallery/reviews/sdxl_pix2pix_pale_amber_glass.original-review.json", + "approvedOriginalProvenancePath": "/template-gallery/reviews/sdxl_pix2pix_pale_amber_glass.original-provenance.json" + }, + { + "templateId": "sd15_pag_mountain_lake_watercolor", + "templateLockHash": "tpl_055d66e3", + "promptSettingsHash": "ps_70c72f9b", + "modelRevision": "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14", + "runtimeFingerprint": "sha256:stable-runtime-v1:91208e09df6c28f94ad8539df9cc773500070f139616c2834a883b59bb559c86", + "graphHash": "sha256:canonical-graph-v1:48cd547df20763361808da8567bee1e81d2f5656cf700b06ca1d7032e05c9a12", + "proofLockHash": "sha256:retained-template-association-v1:b2cacdb87f7e5ddaf40d4789c810a3208951bc0c599879346cd2e4c9bab02be3", + "backendSourceFingerprint": "sha256:backend-source-v1:3b073e3f6f5e9489e06116f277ee4a9e878b8f0c6258efc93c60be9a04513cb5", + "backendContractFingerprint": "sha256:backend-contract-v1:bd364fcd29020d51bb61f5f9bf320cf0bf562e718c645c21ffac8ed5a47b740d", + "modelCommit": "451f4fe16113bff5a5d2269ed5ad43b0592e9a14", + "templateRevisionHash": "6de709bbcfb3ed6e061541584be28f5b7ed05e1170dcdaa69e2deb4fee822154", + "provenancePath": "/template-gallery/reviews/sd15_pag_mountain_lake_watercolor.retained-template-provenance.json", + "provenanceHash": "sha256:canonical-json:a64dfb3b47d4361c5e1c1cb54410fecf077db21b87ca633de0645c8b13b1b03a", + "outputPath": "/template-gallery/sd15_pag_mountain_lake_watercolor.webp", + "thumbnailPath": "/template-gallery/sd15_pag_mountain_lake_watercolor.webp", + "mediaHash": "sha256:decoded-rgba:803b524315482455a356d1a921934e41b98fe65895c5a60b49201d54145e2218", + "mediaType": "image", + "verificationTimestamp": "2026-11-23T20:28:31.760Z", + "verificationStatus": "reviewed", + "qualityReviewStatus": "approved_reviewed", + "qualityReviewHash": "sha256:canonical-json:523d8f16ac81029766ba00dd0a912b57131f818180ec35b4807d047835fbb583", + "qualityReviewPath": "/template-gallery/reviews/sd15_pag_mountain_lake_watercolor.quality-review.json", + "reviewer": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25T05:51:53.933Z", + "beforePath": "/template-gallery/inputs/sd15_pag_mountain_lake_watercolor.before.png", + "beforeMediaHash": "sha256:bytes:88290a96bc8d52f11f2d1e3c0c0e04c2027661816e54b57d7d4739d731ca1e75", + "afterPath": "/template-gallery/sd15_pag_mountain_lake_watercolor.webp", + "width": 1024, + "height": 1024, + "approvedOriginalReviewPath": "/template-gallery/reviews/sd15_pag_mountain_lake_watercolor.original-review.json", + "approvedOriginalProvenancePath": "/template-gallery/reviews/sd15_pag_mountain_lake_watercolor.original-provenance.json" + }, + { + "templateId": "sd15_pag_cobalt_studio_repair", + "templateLockHash": "tpl_7552fcab", + "promptSettingsHash": "ps_fbb3534b", + "modelRevision": "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14", + "runtimeFingerprint": "sha256:stable-runtime-v1:973fbcf464fe27f216b59ffdcd9e2b908ca4999ba712f6be281205cae16f8125", + "graphHash": "sha256:canonical-graph-v1:0236cd78852886d49d629776dae568ae589c27dfc4f499868ba2f40d4fd4867c", + "proofLockHash": "sha256:retained-template-association-v1:d70ab987bd434f3a4cdadb691c523f1a9b44959d8dd1b25a61a1f3e1972e989a", + "backendSourceFingerprint": "sha256:backend-source-v1:1f2f7e00ce4a500ba52d5b729f43d4321af6f931125a3f266f307cf80038c12e", + "backendContractFingerprint": "sha256:backend-contract-v1:61201b43ea68d3fd347fbc374e292b5839be28f908b473bcb69f5ec1f8b87736", + "modelCommit": "451f4fe16113bff5a5d2269ed5ad43b0592e9a14", + "templateRevisionHash": "8373d87ab42e130142a163e3c60733f3f2511b7a77ffad1d9129607bcfba2562", + "provenancePath": "/template-gallery/reviews/sd15_pag_cobalt_studio_repair.retained-template-provenance.json", + "provenanceHash": "sha256:canonical-json:68a6c311f61f832632c2c4ec9890ef8cbb969b63063ccf26449a0a26c185c7eb", + "outputPath": "/template-gallery/sd15_pag_cobalt_studio_repair.webp", + "thumbnailPath": "/template-gallery/sd15_pag_cobalt_studio_repair.webp", + "mediaHash": "sha256:decoded-rgba:953e38f5a72b85f3e534669713b8dc60ac5c6ab9ecfff280da627726b8cdff4d", + "mediaType": "image", + "verificationTimestamp": "2026-11-23T14:32:05.292Z", + "verificationStatus": "reviewed", + "qualityReviewStatus": "approved_reviewed", + "qualityReviewHash": "sha256:canonical-json:41b27641ac904049d0c4eb11ada98f9ea3a70825247a2e96eada58ba784f2cd9", + "qualityReviewPath": "/template-gallery/reviews/sd15_pag_cobalt_studio_repair.quality-review.json", + "reviewer": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25T05:51:53.933Z", + "beforePath": "/template-gallery/inputs/sd15_pag_cobalt_studio_repair.before.png", + "beforeMediaHash": "sha256:bytes:d143c4922ad498b9bd436d06df424bbff50baf023b93735b53ee401e19e4cbf1", + "afterPath": "/template-gallery/sd15_pag_cobalt_studio_repair.webp", + "width": 512, + "height": 512, + "approvedOriginalReviewPath": "/template-gallery/reviews/sd15_pag_cobalt_studio_repair.original-review.json", + "approvedOriginalProvenancePath": "/template-gallery/reviews/sd15_pag_cobalt_studio_repair.original-provenance.json", + "approvedMaskPath": "/template-gallery/inputs/sd15_pag_cobalt_studio_repair.mask.png" + }, + { + "templateId": "zimage_golden_amber_glass", + "templateLockHash": "tpl_279a009e", + "promptSettingsHash": "ps_41cfc342", + "modelRevision": "Tongyi-MAI/Z-Image-Turbo@f332072aa78be7aecdf3ee76d5c247082da564a6", + "runtimeFingerprint": "sha256:stable-runtime-v1:8be5fe75290e4f9aca107516a6332e06e126e04d5cb65e79be5d748d583774f9", + "graphHash": "sha256:canonical-graph-v1:09397eba135ea69f8c88d29c6eb65297ece35dc10e039c9c5573165503f8488f", + "proofLockHash": "sha256:retained-template-association-v1:8db327cf11ed6e59bdb664e01ed74a9acec6c1a1c5756a2a5ccec310b73a98c6", + "backendSourceFingerprint": "sha256:backend-source-v1:e3aea8f8d102572ad10fdd0700f0c42d92061e864ede89777efcd6a3269770a8", + "backendContractFingerprint": "sha256:backend-contract-v1:315617df789a8a5f57426692318e197c13786098718305edd1927471b5b9c194", + "modelCommit": "f332072aa78be7aecdf3ee76d5c247082da564a6", + "templateRevisionHash": "303a0b1b64a2e1234aeca85941a07eea2157707c8436442a5cf00aedd68c6d97", + "provenancePath": "/template-gallery/reviews/zimage_golden_amber_glass.retained-template-provenance.json", + "provenanceHash": "sha256:canonical-json:7604bb9c908c746ca5f8e1e57387d04ddd1c97682a3d2300d6548540ea4ce6f6", + "outputPath": "/template-gallery/zimage_golden_amber_glass.webp", + "thumbnailPath": "/template-gallery/zimage_golden_amber_glass.webp", + "mediaHash": "sha256:decoded-rgba:10589b67ffff19022a7b7fb7c1f21990550c49ce602cd328ae75157d64809131", + "mediaType": "image", + "verificationTimestamp": "2026-11-23T17:46:24.489Z", + "verificationStatus": "reviewed", + "qualityReviewStatus": "approved_reviewed", + "qualityReviewHash": "sha256:canonical-json:a50da603aa85f882e37963b58856e67a15919c3553f8f3d2973fd26e0220d194", + "qualityReviewPath": "/template-gallery/reviews/zimage_golden_amber_glass.quality-review.json", + "reviewer": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25T05:51:53.933Z", + "beforePath": "/template-gallery/inputs/zimage_golden_amber_glass.before.png", + "beforeMediaHash": "sha256:bytes:ebaca95f96d1573e4292ffc65c78eb0dcf8ff9cc8b5a7e11ec81face61b160fb", + "afterPath": "/template-gallery/zimage_golden_amber_glass.webp", + "width": 640, + "height": 640, + "approvedOriginalReviewPath": "/template-gallery/reviews/zimage_golden_amber_glass.original-review.json", + "approvedOriginalProvenancePath": "/template-gallery/reviews/zimage_golden_amber_glass.original-provenance.json" } ] } diff --git a/src/studio/retainedGalleryApprovedBatch.ts b/src/studio/retainedGalleryApprovedBatch.ts index 5dea73a2..3470509a 100644 --- a/src/studio/retainedGalleryApprovedBatch.ts +++ b/src/studio/retainedGalleryApprovedBatch.ts @@ -2187,4 +2187,923 @@ export const APPROVED_RETAINED_BATCH: RetainedGalleryRecipe[] = [ runtimeReuseKey: 'sha256:canonical-graph-v1:2d805bf9c48d49b9e4c2778136f8c528d8ff82a7f7753ba7a99021cc439b5b3c', }, }, + { + workflowId: 'ChromaPipeline:text_to_image', + sourceTaskTemplateId: 'task-template:chroma1-hd:text-to-image:v1', + retainedGraphHash: 'sha256:canonical-graph-v1:bf170489052eadc150ad0e4149344312741328c5e4e859fb1473be81c3fe63ea', + originalReceiptSha256: 'bad53850d48ffdaffa0896ec019e295c349577ee86d169e1ea1da8752324a215', + reviewedTemplateSha256: '5221fc5d744cbdcf1aa29d1fa9b27cddc0fcbd75983c24061e6218d41621617d', + reviewedCatalogLock: { + templateLockHash: 'tpl_db9b22c3', + galleryTemplateLockHash: 'tpl_9dbc94cc', + promptSettingsHash: 'ps_aaaac429', + }, + promptSha256: 'fc24a34ab87b06b7b32949cbe2c78454bad6f08e19f227023d17def472dfbc6a', + template: { + id: 'chroma_terracotta_and_blue', + label: 'Chroma1-HD 1024px — Text to image: Terracotta and Blue', + mode: 'text_to_image', + modelType: 'ChromaPipeline', + intentGroup: 'generate_image', + category: 'concept', + outputKinds: ['image'], + readinessPolicy: 'runnable', + modelArtifact: { + source: 'hub', + value: 'lodestones/Chroma1-HD', + revision: '0e0c60ece1e82b17cb7f77342d765ba5024c40c0', + }, + description: + 'Reproduce the reviewed Terracotta and Blue example with the saved prompt, settings and model revision.', + prompt: + 'A square editorial architectural photograph of an empty blue-tiled fountain in a sunlit terracotta courtyard. Viewed from a little above at a three-quarter angle. A single broad shadow falls from the left wall across the worn clay paving. Hand-glazed ultramarine tiles reflect diffuse sky light and a dry rattling olive branch hangs above the wall. Two shallow steps and a simple arched niche establish the scale. Restrained color, quiet Mediterranean summer afternoon, tactile materials, composed with room around the entire fountain.', + negativePrompt: '', + example: { + mediaType: 'image', + status: 'unverified', + modelRevision: '0e0c60ece1e82b17cb7f77342d765ba5024c40c0', + lockedSeed: 42, + lockedSettings: { + width: 1024, + height: 1024, + steps: 40, + guidanceScale: 3, + strength: 0.8, + outputType: 'pil', + maxSequenceLength: 512, + pagScale: 3, + pagAdaptiveScale: 0, + dtype: 'bfloat16', + resourceMode: 'expert', + quantizationMode: 'none', + autoOffload: true, + offloadMode: 'model_cpu', + }, + expectedOutput: { + width: 1024, + height: 1024, + }, + runtimeEstimate: '1258.79 seconds in the saved run', + }, + requiredBackendCapabilities: [ + 'modules.DiffusersImage.Generate', + 'modules.DiffusersImage.LoadPipeline', + 'modules.DiffusersRuntime.PipelineQuantizationConfigV2', + 'modules.DiffusersRuntime.DiffusersExecutionRecipe', + 'modules.Image.Preview', + ], + mediaSlots: [ + { + id: 'result', + label: 'Generated image', + kind: 'image', + role: 'output', + placeholder: 'Result pending', + }, + ], + recipeSummary: + 'Reproduce the reviewed Terracotta and Blue example with the saved prompt, settings and model revision.', + runtimeReuseKey: 'sha256:canonical-graph-v1:bf170489052eadc150ad0e4149344312741328c5e4e859fb1473be81c3fe63ea', + }, + }, + { + workflowId: 'Lumina2Pipeline:text_to_image', + sourceTaskTemplateId: 'task-template:lumina2:text-to-image:v1', + retainedGraphHash: 'sha256:canonical-graph-v1:b58ba817732e34d2c40f61f7bb7dbdebf32c6f2a2bbb21dcdbb237004edc4cc3', + originalReceiptSha256: '68ec9070dfda6f4bcf5990d404e3032b9c9d0add8965753e0a162bfdd67c09f7', + reviewedTemplateSha256: 'c1fecc495b278628b9539fb84079b73b70db420165a7e151def065731920853e', + reviewedCatalogLock: { + templateLockHash: 'tpl_a75e5588', + galleryTemplateLockHash: 'tpl_0c2048ce', + promptSettingsHash: 'ps_e264186c', + }, + promptSha256: '5210322404f5ed727bc5dfa782f3da51ed652c32b33f46000ece286969b103bd', + template: { + id: 'lumina2_larch_on_glacial_pond', + label: 'Lumina Image 2.0 2.6B — Text to image: Larch on the Glacial Pond', + mode: 'text_to_image', + modelType: 'Lumina2Pipeline', + intentGroup: 'generate_image', + category: 'concept', + outputKinds: ['image'], + readinessPolicy: 'runnable', + modelArtifact: { + source: 'hub', + value: 'Alpha-VLLM/Lumina-Image-2.0', + revision: '53504abd8178b30685b6c4c7a4cd181ff78b73e9', + }, + description: + 'Reproduce the reviewed Larch on the Glacial Pond example with the saved prompt, settings and model revision.', + prompt: + 'Landscape photograph from the edge of a glacial pond. In the foreground a small islet with one weathered larch reflects in still turquoise water. Behind it, pale granite peaks rise into a clear blue sky. Late afternoon side light, natural colors, finely detailed rocks and trees.', + negativePrompt: '', + example: { + mediaType: 'image', + status: 'unverified', + modelRevision: '53504abd8178b30685b6c4c7a4cd181ff78b73e9', + lockedSeed: 42, + lockedSettings: { + width: 1024, + height: 1024, + steps: 50, + guidanceScale: 4, + strength: 0.8, + outputType: 'pil', + maxSequenceLength: 256, + pagScale: 3, + pagAdaptiveScale: 0, + dtype: 'bfloat16', + resourceMode: 'expert', + quantizationMode: 'none', + autoOffload: true, + offloadMode: 'model_cpu', + }, + expectedOutput: { + width: 1024, + height: 1024, + }, + runtimeEstimate: '93.18 seconds in the saved run', + }, + requiredBackendCapabilities: [ + 'modules.DiffusersImage.Generate', + 'modules.DiffusersImage.LoadPipeline', + 'modules.DiffusersRuntime.PipelineQuantizationConfigV2', + 'modules.DiffusersRuntime.DiffusersExecutionRecipe', + 'modules.Image.Preview', + ], + mediaSlots: [ + { + id: 'result', + label: 'Generated image', + kind: 'image', + role: 'output', + placeholder: 'Result pending', + }, + ], + recipeSummary: + 'Reproduce the reviewed Larch on the Glacial Pond example with the saved prompt, settings and model revision.', + runtimeReuseKey: 'sha256:canonical-graph-v1:b58ba817732e34d2c40f61f7bb7dbdebf32c6f2a2bbb21dcdbb237004edc4cc3', + }, + }, + { + workflowId: 'HunyuanDiTPipeline:text_to_image', + sourceTaskTemplateId: 'task-template:hunyuan-dit-v1-2-distilled:text-to-image:v1', + retainedGraphHash: 'sha256:canonical-graph-v1:4d26fca7d33aec5e119da74520c47fd96fa41f9de0b92a3afca76505fb5722aa', + originalReceiptSha256: '9e8d30a1d20d721f8aeab6b9172f7f50403b1e8e855d83af17e6430fe97d9650', + reviewedTemplateSha256: '59e80838a60338b27351f10a7cc8478dbe1ae81e04d5d7718ee37aa556585788', + reviewedCatalogLock: { + templateLockHash: 'tpl_9f125174', + galleryTemplateLockHash: 'tpl_ad3b4f77', + promptSettingsHash: 'ps_f38e8fdc', + }, + promptSha256: 'c54d404876a0c92e240aaa5cdd2e2fd448b934d2050e459047d23b82c2a65e7b', + template: { + id: 'hunyuan_dit_coastal_lighthouse', + label: 'Hunyuan-DiT v1.2 Distilled — Text to image: Coastal Lighthouse at Dawn', + mode: 'text_to_image', + modelType: 'HunyuanDiTPipeline', + intentGroup: 'generate_image', + category: 'concept', + outputKinds: ['image'], + readinessPolicy: 'runnable', + modelArtifact: { + source: 'hub', + value: 'Tencent-Hunyuan/HunyuanDiT-v1.2-Diffusers-Distilled', + revision: 'ba991d1546d8c50936c4c16398ed0a87b9b99fb1', + }, + description: + 'Reproduce the reviewed Coastal Lighthouse at Dawn example with the saved prompt, settings and model revision.', + prompt: + 'A landscape photograph of a small weathered lighthouse on a rugged coastal headland. Low cloud, soft dawn light, dark slate rock and pale sea foam below. One narrow path cuts through short golden coastal grass toward the lighthouse.', + negativePrompt: '', + example: { + mediaType: 'image', + status: 'unverified', + modelRevision: 'ba991d1546d8c50936c4c16398ed0a87b9b99fb1', + lockedSeed: 42, + lockedSettings: { + width: 1024, + height: 1024, + steps: 25, + guidanceScale: 5, + strength: 0.8, + outputType: 'pil', + maxSequenceLength: 256, + pagScale: 3, + pagAdaptiveScale: 0, + dtype: 'float16', + resourceMode: 'expert', + quantizationMode: 'none', + autoOffload: true, + offloadMode: 'model_cpu', + }, + expectedOutput: { + width: 1024, + height: 1024, + }, + runtimeEstimate: '259.23 seconds in the saved run', + }, + requiredBackendCapabilities: [ + 'modules.DiffusersImage.Generate', + 'modules.DiffusersImage.LoadPipeline', + 'modules.DiffusersRuntime.PipelineQuantizationConfigV2', + 'modules.DiffusersRuntime.DiffusersExecutionRecipe', + 'modules.Image.Preview', + ], + mediaSlots: [ + { + id: 'result', + label: 'Generated image', + kind: 'image', + role: 'output', + placeholder: 'Result pending', + }, + ], + recipeSummary: + 'Reproduce the reviewed Coastal Lighthouse at Dawn example with the saved prompt, settings and model revision.', + runtimeReuseKey: 'sha256:canonical-graph-v1:4d26fca7d33aec5e119da74520c47fd96fa41f9de0b92a3afca76505fb5722aa', + }, + }, + { + workflowId: 'OmniGenPipeline:text_to_image', + sourceTaskTemplateId: 'task-template:omnigen-v1:text-to-image:v1', + retainedGraphHash: 'sha256:canonical-graph-v1:38376f1ad21e5c153fb96860a4e566847ff916716637ffd2061dfae350577c93', + originalReceiptSha256: 'c78e90591a491385de1f96d89b6aed18dee1367eae36bfcb0b27ee3cecaf8deb', + reviewedTemplateSha256: 'e3ceb2dc096775601a6e65b7ab61f5ccc64658d2a69586f3c6a13f2efe1a973c', + reviewedCatalogLock: { + templateLockHash: 'tpl_39e7a513', + galleryTemplateLockHash: 'tpl_0c5c4bcd', + promptSettingsHash: 'ps_4e4eb7da', + }, + promptSha256: 'a95f8ab9a463c7c571c8667695bb3162234828a00547f8b20db0826612e5a71d', + template: { + id: 'omnigen_tulips_after_rain', + label: 'OmniGen v1 — Text to image: Tulips After the Rain', + mode: 'text_to_image', + modelType: 'OmniGenPipeline', + intentGroup: 'generate_image', + category: 'concept', + outputKinds: ['image'], + readinessPolicy: 'runnable', + modelArtifact: { + source: 'hub', + value: 'Shitao/OmniGen-v1-diffusers', + revision: '016e2f61d12a98303f6bbdf122687694d7984268', + }, + description: + 'Reproduce the reviewed Tulips After the Rain example with the saved prompt, settings and model revision.', + prompt: + 'A rainy evening at a tiny neighborhood flower shop, viewed from across a narrow paved lane. A single warm window lights buckets of orange tulips beneath an awning. Mauve clouds and wet reflections, natural materials, cinematic street photography.', + negativePrompt: '', + example: { + mediaType: 'image', + status: 'unverified', + modelRevision: '016e2f61d12a98303f6bbdf122687694d7984268', + lockedSeed: 42, + lockedSettings: { + width: 1024, + height: 1024, + steps: 50, + guidanceScale: 2.5, + strength: 0.8, + outputType: 'pil', + maxSequenceLength: 256, + pagScale: 3, + pagAdaptiveScale: 0, + dtype: 'bfloat16', + resourceMode: 'expert', + quantizationMode: 'none', + autoOffload: true, + offloadMode: 'model_cpu', + }, + expectedOutput: { + width: 1024, + height: 1024, + }, + runtimeEstimate: '366.03 seconds in the saved run', + }, + requiredBackendCapabilities: [ + 'modules.DiffusersImage.Generate', + 'modules.DiffusersImage.LoadPipeline', + 'modules.DiffusersRuntime.PipelineQuantizationConfigV2', + 'modules.DiffusersRuntime.DiffusersExecutionRecipe', + 'modules.Image.Preview', + ], + mediaSlots: [ + { + id: 'result', + label: 'Generated image', + kind: 'image', + role: 'output', + placeholder: 'Result pending', + }, + ], + recipeSummary: + 'Reproduce the reviewed Tulips After the Rain example with the saved prompt, settings and model revision.', + runtimeReuseKey: 'sha256:canonical-graph-v1:38376f1ad21e5c153fb96860a4e566847ff916716637ffd2061dfae350577c93', + }, + }, + { + workflowId: 'HunyuanDiTPAGPipeline:text_to_image', + sourceTaskTemplateId: 'task-template:hunyuan-dit-v1-2-distilled-pag:text-to-image:v1', + retainedGraphHash: 'sha256:canonical-graph-v1:9ff7bd0050b5c50405728a76530205fcdc54531b7b017cc66e3b821b52413dcd', + originalReceiptSha256: 'aa6b64f4a942adbb11c83cbaba89940fd03ed7dbf83175e8e1d17d32291454d3', + reviewedTemplateSha256: 'ff4d1b75e172f8fdb8a45199626ed40a07fe634669e03d1591091a10c176edfe', + reviewedCatalogLock: { + templateLockHash: 'tpl_e2834f89', + galleryTemplateLockHash: 'tpl_00d848b4', + promptSettingsHash: 'ps_60e8ca60', + }, + promptSha256: '1a5dd12ea5c33b33c8e1a2621a4c6543a2d2a8f2ac82fe458eaecc7d9b4d71c0', + template: { + id: 'hunyuan_pag_burgundy_knight', + label: 'Hunyuan-DiT v1.2 Distilled PAG — Text to image: Burgundy Knight', + mode: 'text_to_image', + modelType: 'HunyuanDiTPAGPipeline', + intentGroup: 'generate_image', + category: 'concept', + outputKinds: ['image'], + readinessPolicy: 'runnable', + modelArtifact: { + source: 'hub', + value: 'Tencent-Hunyuan/HunyuanDiT-v1.2-Diffusers-Distilled', + revision: 'ba991d1546d8c50936c4c16398ed0a87b9b99fb1', + }, + description: 'Reproduce the reviewed Burgundy Knight example with the saved prompt, settings and model revision.', + prompt: + 'Studio photograph of a single polished burgundy chess knight on a matte ash wood board. Low eye-line viewpoint, shallow depth of field, soft diagonal sidelight and subtle grain in the carved horse head.', + negativePrompt: '', + example: { + mediaType: 'image', + status: 'unverified', + modelRevision: 'ba991d1546d8c50936c4c16398ed0a87b9b99fb1', + lockedSeed: 42, + lockedSettings: { + width: 1024, + height: 1024, + steps: 25, + guidanceScale: 5, + strength: 0.8, + outputType: 'pil', + maxSequenceLength: 256, + pagScale: 3, + pagAdaptiveScale: 0, + dtype: 'float16', + resourceMode: 'expert', + quantizationMode: 'none', + autoOffload: true, + offloadMode: 'model_cpu', + }, + expectedOutput: { + width: 1024, + height: 1024, + }, + runtimeEstimate: '104.12 seconds in the saved run', + }, + requiredBackendCapabilities: [ + 'modules.DiffusersImage.Generate', + 'modules.DiffusersImage.LoadPipeline', + 'modules.DiffusersRuntime.PipelineQuantizationConfigV2', + 'modules.DiffusersRuntime.DiffusersExecutionRecipe', + 'modules.Image.Preview', + ], + mediaSlots: [ + { + id: 'result', + label: 'Generated image', + kind: 'image', + role: 'output', + placeholder: 'Result pending', + }, + ], + recipeSummary: + 'Reproduce the reviewed Burgundy Knight example with the saved prompt, settings and model revision.', + runtimeReuseKey: 'sha256:canonical-graph-v1:9ff7bd0050b5c50405728a76530205fcdc54531b7b017cc66e3b821b52413dcd', + }, + }, + { + workflowId: 'ChromaInpaintPipeline:inpaint', + sourceTaskTemplateId: 'task-template:chroma1-hd-inpaint:inpaint:v1', + retainedGraphHash: 'sha256:canonical-graph-v1:d3bfd6322b7b1bd0f34b9faa9f444ebefae32fc43c368d37169f6ebfbc6c53cf', + originalReceiptSha256: 'a85451bc142a3f5ef44cc5e8cdb1fcc0f000872241efe5bda751638d36215919', + reviewedTemplateSha256: 'd3c99f24317aaf93b0f25f2681bdc56f456d69554e47a522c0c04487602149f2', + reviewedCatalogLock: { + templateLockHash: 'tpl_0ca22a3e', + galleryTemplateLockHash: 'tpl_8c282bf7', + promptSettingsHash: 'ps_747e9429', + }, + promptSha256: 'cdcd113dd8102aba0f1838ecc02a170532e8b79ab574afc47d30bbdf7aa95d4d', + inputSha256: 'e75c20f0e8a74e283b996bf526e6ea74535ed24125ad97c2d92508d3435d7a87', + inputLocatorSha256: '69ba088466bbd714eba0a70d1dc24984230ca1ac74b00ac0ff1bbcb29675799d', + maskSha256: '1f48775f2826f84e0c5b55f16f3475bdc80ecad8b931d6b0279598610e9a828d', + template: { + id: 'chroma_restored_cobalt_backdrop', + label: 'Chroma1-HD Inpaint (Standard Diffusers) — Inpaint: Restored Cobalt Backdrop', + mode: 'inpaint', + modelType: 'ChromaInpaintPipeline', + intentGroup: 'edit_image', + category: 'inpaint', + inputBindings: [ + { + id: 'source-image', + label: 'Source image', + mediaType: 'image', + field: 'referenceImages', + origin: 'user', + requiredAt: 'workflow_start', + count: 1, + }, + { + id: 'mask-image', + label: 'Mask image', + mediaType: 'image', + field: 'maskImage', + origin: 'user', + requiredAt: 'workflow_start', + count: 1, + }, + ], + outputKinds: ['image'], + readinessPolicy: 'requires_input', + modelArtifact: { + source: 'hub', + value: 'lodestones/Chroma1-HD', + revision: '0e0c60ece1e82b17cb7f77342d765ba5024c40c0', + }, + description: + 'Reproduce the reviewed Restored Cobalt Backdrop example with the saved prompt, settings and model revision.', + prompt: + 'Restore the pale matte studio background and smooth clear backdrop in the marked area. Continue the existing subtle gray gradient and soft reflection. Preserve the blue cube, all three edges and the plinth.', + negativePrompt: '', + example: { + mediaType: 'image', + status: 'unverified', + modelRevision: '0e0c60ece1e82b17cb7f77342d765ba5024c40c0', + lockedSeed: 42, + lockedSettings: { + width: 1024, + height: 1024, + steps: 28, + guidanceScale: 7, + strength: 0.8, + outputType: 'pil', + maxSequenceLength: 512, + pagScale: 3, + pagAdaptiveScale: 0, + dtype: 'bfloat16', + resourceMode: 'expert', + quantizationMode: 'none', + autoOffload: true, + offloadMode: 'model_cpu', + }, + expectedOutput: { + width: 1024, + height: 1024, + }, + runtimeEstimate: '244.69 seconds in the saved run', + }, + requiredBackendCapabilities: [ + 'modules.DiffusersImage.Inpaint', + 'modules.DiffusersImage.LoadPipeline', + 'modules.DiffusersRuntime.PipelineQuantizationConfigV2', + 'modules.DiffusersRuntime.DiffusersExecutionRecipe', + 'modules.Image.Load', + 'modules.Image.Preview', + ], + mediaSlots: [ + { + id: 'before', + label: 'Source image', + kind: 'comparison_before', + role: 'before', + placeholder: 'Source pending', + }, + { + id: 'after', + label: 'Generated image', + kind: 'comparison_after', + role: 'after', + placeholder: 'Preview pending', + }, + ], + thumbnailVariant: 'compareSlider', + recipeSummary: + 'Reproduce the reviewed Restored Cobalt Backdrop example with the saved prompt, settings and model revision.', + runtimeReuseKey: 'sha256:canonical-graph-v1:d3bfd6322b7b1bd0f34b9faa9f444ebefae32fc43c368d37169f6ebfbc6c53cf', + }, + }, + { + workflowId: 'StableDiffusionXLInstructPix2PixPipeline:edit_image', + sourceTaskTemplateId: 'task-template:sdxl-instruct-pix2pix:edit-image:v1', + retainedGraphHash: 'sha256:canonical-graph-v1:be363defe20343a8ad3dda9b464344a590c931b6908d5f2eb8ee4d1ba4974f95', + originalReceiptSha256: '4655ea8f1f9b86921f07658644599ebe08034ffbe93e081eb19fd08faa214b61', + reviewedTemplateSha256: '897fb59d568ceba3ef8d85cf1141f79002522b111dbc6ffa67ad51a9acf88495', + reviewedCatalogLock: { + templateLockHash: 'tpl_e055e288', + galleryTemplateLockHash: 'tpl_5a852750', + promptSettingsHash: 'ps_de1bb4fa', + }, + promptSha256: '609bfd6392cbca4e4c80a5835e0f013349d84c017387ff69445c9168939b4b1b', + inputSha256: 'ebaca95f96d1573e4292ffc65c78eb0dcf8ff9cc8b5a7e11ec81face61b160fb', + inputLocatorSha256: '349b8845e5d606d1439af02fa63b2edc09c504d15bf71f58954791ed6d983232', + template: { + id: 'sdxl_pix2pix_pale_amber_glass', + label: 'Stable Diffusion XL InstructPix2Pix — Edit image: Pale Amber Glass Edit', + mode: 'edit_image', + modelType: 'StableDiffusionXLInstructPix2PixPipeline', + intentGroup: 'edit_image', + category: 'edit', + inputBindings: [ + { + id: 'source-image', + label: 'Source image', + mediaType: 'image', + field: 'referenceImages', + origin: 'user', + requiredAt: 'workflow_start', + count: 1, + }, + ], + outputKinds: ['image'], + readinessPolicy: 'requires_input', + modelArtifact: { + source: 'hub', + value: 'diffusers/sdxl-instructpix2pix-768', + revision: '06653d47f8d22f2c2205a5884d6a24c5e76d2ca7', + }, + description: + 'Reproduce the reviewed Pale Amber Glass Edit example with the saved prompt, settings and model revision.', + prompt: + 'Change the cobalt blue glass cube to transparent honey-amber glass. Keep the camera angle, cube shape, pale stone slab and soft studio lighting.', + negativePrompt: '', + example: { + mediaType: 'image', + status: 'unverified', + modelRevision: '06653d47f8d22f2c2205a5884d6a24c5e76d2ca7', + lockedSeed: 42, + lockedSettings: { + width: 768, + height: 768, + steps: 30, + guidanceScale: 3, + strength: 0.8, + outputType: 'pil', + maxSequenceLength: 512, + pagScale: 3, + pagAdaptiveScale: 0, + dtype: 'float16', + resourceMode: 'expert', + quantizationMode: 'none', + autoOffload: true, + offloadMode: 'model_cpu', + }, + expectedOutput: { + width: 768, + height: 768, + }, + runtimeEstimate: '18.13 seconds in the saved run', + }, + requiredBackendCapabilities: [ + 'modules.DiffusersImage.Edit', + 'modules.DiffusersImage.LoadPipeline', + 'modules.DiffusersRuntime.PipelineQuantizationConfigV2', + 'modules.DiffusersRuntime.DiffusersExecutionRecipe', + 'modules.Image.Load', + 'modules.Image.Preview', + ], + mediaSlots: [ + { + id: 'before', + label: 'Source image', + kind: 'comparison_before', + role: 'before', + placeholder: 'Source pending', + }, + { + id: 'after', + label: 'Generated image', + kind: 'comparison_after', + role: 'after', + placeholder: 'Preview pending', + }, + ], + thumbnailVariant: 'compareSlider', + recipeSummary: + 'Reproduce the reviewed Pale Amber Glass Edit example with the saved prompt, settings and model revision.', + runtimeReuseKey: 'sha256:canonical-graph-v1:be363defe20343a8ad3dda9b464344a590c931b6908d5f2eb8ee4d1ba4974f95', + }, + }, + { + workflowId: 'StableDiffusionPAGPipeline:edit_image', + sourceTaskTemplateId: 'task-template:sd15-pag:edit-image:v1', + retainedGraphHash: 'sha256:canonical-graph-v1:48cd547df20763361808da8567bee1e81d2f5656cf700b06ca1d7032e05c9a12', + originalReceiptSha256: 'b4929658c32ef7bad47e50f647abec0e6159c54374a1baea1e05d3f93b66effb', + reviewedTemplateSha256: '6de709bbcfb3ed6e061541584be28f5b7ed05e1170dcdaa69e2deb4fee822154', + reviewedCatalogLock: { + templateLockHash: 'tpl_de24cda0', + galleryTemplateLockHash: 'tpl_055d66e3', + promptSettingsHash: 'ps_70c72f9b', + }, + promptSha256: 'd05178536094430b2076eb9bbbc38b76f6590185f85ee128b9aad0c910e214d3', + inputSha256: '88290a96bc8d52f11f2d1e3c0c0e04c2027661816e54b57d7d4739d731ca1e75', + inputLocatorSha256: 'b7e9b68e47a60f438c82f778b960f66d58d319de50749d453a9aa0c30c4df45a', + template: { + id: 'sd15_pag_mountain_lake_watercolor', + label: 'Stable Diffusion 1.5 PAG — Edit image: Mountain Lake in Watercolor', + mode: 'edit_image', + modelType: 'StableDiffusionPAGPipeline', + intentGroup: 'edit_image', + category: 'edit', + inputBindings: [ + { + id: 'source-image', + label: 'Source image', + mediaType: 'image', + field: 'referenceImages', + origin: 'user', + requiredAt: 'workflow_start', + count: 1, + }, + ], + outputKinds: ['image'], + readinessPolicy: 'requires_input', + modelArtifact: { + source: 'hub', + value: 'stable-diffusion-v1-5/stable-diffusion-v1-5', + revision: '451f4fe16113bff5a5d2269ed5ad43b0592e9a14', + }, + description: + 'Reproduce the reviewed Mountain Lake in Watercolor example with the saved prompt, settings and model revision.', + prompt: + 'Loose transparent watercolor landscape on cold-pressed paper, visibly hand painted with broad pale blue and sage green washes, irregular soft wet-on-wet edges and white paper showing through. Keep one dark pine on the small central rock island, the layered mountain ridge behind it, and the quiet glacial lake and reflection below. Light cobalt wash in the sky, slate-blue slopes and muted jade water. Spare, airy, flat watercolor illustration, no writing.', + negativePrompt: '', + example: { + mediaType: 'image', + status: 'unverified', + modelRevision: '451f4fe16113bff5a5d2269ed5ad43b0592e9a14', + lockedSeed: 42, + lockedSettings: { + width: 1024, + height: 1024, + steps: 30, + guidanceScale: 7.5, + strength: 0.8, + outputType: 'pil', + maxSequenceLength: 256, + pagScale: 3, + pagAdaptiveScale: 0, + dtype: 'float32', + resourceMode: 'expert', + quantizationMode: 'none', + autoOffload: false, + offloadMode: 'none', + }, + expectedOutput: { + width: 1024, + height: 1024, + }, + runtimeEstimate: '38.14 seconds in the saved run', + }, + requiredBackendCapabilities: [ + 'modules.DiffusersImage.Edit', + 'modules.DiffusersImage.LoadPipeline', + 'modules.DiffusersRuntime.PipelineQuantizationConfigV2', + 'modules.DiffusersRuntime.DiffusersExecutionRecipe', + 'modules.Image.Load', + 'modules.Image.Preview', + ], + mediaSlots: [ + { + id: 'before', + label: 'Source image', + kind: 'comparison_before', + role: 'before', + placeholder: 'Source pending', + }, + { + id: 'after', + label: 'Generated image', + kind: 'comparison_after', + role: 'after', + placeholder: 'Preview pending', + }, + ], + thumbnailVariant: 'compareSlider', + recipeSummary: + 'Reproduce the reviewed Mountain Lake in Watercolor example with the saved prompt, settings and model revision.', + runtimeReuseKey: 'sha256:canonical-graph-v1:48cd547df20763361808da8567bee1e81d2f5656cf700b06ca1d7032e05c9a12', + }, + }, + { + workflowId: 'StableDiffusionPAGPipeline:inpaint', + sourceTaskTemplateId: 'task-template:sd15-pag:inpaint:v1', + retainedGraphHash: 'sha256:canonical-graph-v1:0236cd78852886d49d629776dae568ae589c27dfc4f499868ba2f40d4fd4867c', + originalReceiptSha256: '101e965b702766dd0949054f6189d20ca2895fdd05559626eb270f8e12e65069', + reviewedTemplateSha256: '8373d87ab42e130142a163e3c60733f3f2511b7a77ffad1d9129607bcfba2562', + reviewedCatalogLock: { + templateLockHash: 'tpl_ab9c14d4', + galleryTemplateLockHash: 'tpl_7552fcab', + promptSettingsHash: 'ps_fbb3534b', + }, + promptSha256: '92548914e5a66fd80ffeeeae3ee1c86bfd46bd9a53d17bd73f35c0f651615ad3', + inputSha256: 'd143c4922ad498b9bd436d06df424bbff50baf023b93735b53ee401e19e4cbf1', + inputLocatorSha256: 'efcb2b3b9ced784bb620763301bb33ea3b2f6ac2561624a4a60c7a735049cfb1', + maskSha256: '71817f4823a73712c8e76e7d832ec382c29ec0a0bf5a472e09639448c082da01', + template: { + id: 'sd15_pag_cobalt_studio_repair', + label: 'Stable Diffusion 1.5 PAG — Inpaint: Cobalt Studio Repair with PAG', + mode: 'inpaint', + modelType: 'StableDiffusionPAGPipeline', + intentGroup: 'edit_image', + category: 'inpaint', + inputBindings: [ + { + id: 'source-image', + label: 'Source image', + mediaType: 'image', + field: 'referenceImages', + origin: 'user', + requiredAt: 'workflow_start', + count: 1, + }, + { + id: 'mask-image', + label: 'Mask image', + mediaType: 'image', + field: 'maskImage', + origin: 'user', + requiredAt: 'workflow_start', + count: 1, + }, + ], + outputKinds: ['image'], + readinessPolicy: 'requires_input', + modelArtifact: { + source: 'hub', + value: 'stable-diffusion-v1-5/stable-diffusion-v1-5', + revision: '451f4fe16113bff5a5d2269ed5ad43b0592e9a14', + }, + description: + 'Reproduce the reviewed Cobalt Studio Repair with PAG example with the saved prompt, settings and model revision.', + prompt: + 'Smooth pale gray studio backdrop with a soft window-light gradient. A plain, clean matte wall with an even tone.', + negativePrompt: '', + example: { + mediaType: 'image', + status: 'unverified', + modelRevision: '451f4fe16113bff5a5d2269ed5ad43b0592e9a14', + lockedSeed: 42, + lockedSettings: { + width: 512, + height: 512, + steps: 30, + guidanceScale: 7.5, + strength: 0.8, + outputType: 'pil', + maxSequenceLength: 256, + pagScale: 3, + pagAdaptiveScale: 0, + dtype: 'float32', + resourceMode: 'expert', + quantizationMode: 'none', + autoOffload: false, + offloadMode: 'none', + }, + expectedOutput: { + width: 512, + height: 512, + }, + runtimeEstimate: '12.67 seconds in the saved run', + }, + requiredBackendCapabilities: [ + 'modules.DiffusersImage.Inpaint', + 'modules.DiffusersImage.LoadPipeline', + 'modules.DiffusersRuntime.PipelineQuantizationConfigV2', + 'modules.DiffusersRuntime.DiffusersExecutionRecipe', + 'modules.Image.Load', + 'modules.Image.Preview', + ], + mediaSlots: [ + { + id: 'before', + label: 'Source image', + kind: 'comparison_before', + role: 'before', + placeholder: 'Source pending', + }, + { + id: 'after', + label: 'Generated image', + kind: 'comparison_after', + role: 'after', + placeholder: 'Preview pending', + }, + ], + thumbnailVariant: 'compareSlider', + recipeSummary: + 'Reproduce the reviewed Cobalt Studio Repair with PAG example with the saved prompt, settings and model revision.', + runtimeReuseKey: 'sha256:canonical-graph-v1:0236cd78852886d49d629776dae568ae589c27dfc4f499868ba2f40d4fd4867c', + }, + }, + { + workflowId: 'ZImageModularPipeline:edit_image', + sourceTaskTemplateId: 'task-template:z-image:edit-image:v1', + retainedGraphHash: 'sha256:canonical-graph-v1:09397eba135ea69f8c88d29c6eb65297ece35dc10e039c9c5573165503f8488f', + originalReceiptSha256: '449bc094096e644f4070a681e382650d133c0854ec6770cfbb736f0299e04179', + reviewedTemplateSha256: '303a0b1b64a2e1234aeca85941a07eea2157707c8436442a5cf00aedd68c6d97', + reviewedCatalogLock: { + templateLockHash: 'tpl_50ad3c10', + galleryTemplateLockHash: 'tpl_279a009e', + promptSettingsHash: 'ps_41cfc342', + }, + promptSha256: 'cc55ff0b6d87c11924010d873152025e9ddb936b56140d2f23d291696a65f7ea', + inputSha256: 'ebaca95f96d1573e4292ffc65c78eb0dcf8ff9cc8b5a7e11ec81face61b160fb', + inputLocatorSha256: '349b8845e5d606d1439af02fa63b2edc09c504d15bf71f58954791ed6d983232', + template: { + id: 'zimage_golden_amber_glass', + label: 'Z-Image Turbo — Edit image: Golden Amber Glass Edit', + mode: 'edit_image', + modelType: 'ZImageModularPipeline', + intentGroup: 'edit_image', + category: 'edit', + inputBindings: [ + { + id: 'source-image', + label: 'Source image', + mediaType: 'image', + field: 'referenceImages', + origin: 'user', + requiredAt: 'workflow_start', + count: 1, + }, + ], + outputKinds: ['image'], + readinessPolicy: 'requires_input', + modelArtifact: { + source: 'hub', + value: 'Tongyi-MAI/Z-Image-Turbo', + revision: 'f332072aa78be7aecdf3ee76d5c247082da564a6', + }, + description: + 'Reproduce the reviewed Golden Amber Glass Edit example with the saved prompt, settings and model revision.', + prompt: + 'A single thick, translucent golden amber glass cube on a pale stone plinth. Precisely square edges, same camera angle, uncluttered warm gray wall and soft daylight from the right. The glass remains a solid cube with flat faces.', + negativePrompt: '', + example: { + mediaType: 'image', + status: 'unverified', + modelRevision: 'f332072aa78be7aecdf3ee76d5c247082da564a6', + lockedSeed: 42, + lockedSettings: { + width: 640, + height: 640, + steps: 8, + guidanceScale: 1, + strength: 0.8, + outputType: 'pil', + maxSequenceLength: 512, + pagScale: 3, + pagAdaptiveScale: 0, + dtype: 'bfloat16', + resourceMode: 'expert', + quantizationMode: 'none', + autoOffload: true, + offloadMode: 'model_cpu', + }, + expectedOutput: { + width: 640, + height: 640, + }, + runtimeEstimate: '751.58 seconds in the saved run', + }, + requiredBackendCapabilities: [ + 'modules.DiffusersImage.Edit', + 'modules.DiffusersImage.LoadPipeline', + 'modules.DiffusersRuntime.PipelineQuantizationConfigV2', + 'modules.DiffusersRuntime.DiffusersExecutionRecipe', + 'modules.Image.Load', + 'modules.Image.Preview', + ], + mediaSlots: [ + { + id: 'before', + label: 'Source image', + kind: 'comparison_before', + role: 'before', + placeholder: 'Source pending', + }, + { + id: 'after', + label: 'Generated image', + kind: 'comparison_after', + role: 'after', + placeholder: 'Preview pending', + }, + ], + thumbnailVariant: 'compareSlider', + recipeSummary: + 'Reproduce the reviewed Golden Amber Glass Edit example with the saved prompt, settings and model revision.', + runtimeReuseKey: 'sha256:canonical-graph-v1:09397eba135ea69f8c88d29c6eb65297ece35dc10e039c9c5573165503f8488f', + }, + }, ]; diff --git a/src/studio/templateAssetSource.json b/src/studio/templateAssetSource.json index db3da35d..6e216ab3 100644 --- a/src/studio/templateAssetSource.json +++ b/src/studio/templateAssetSource.json @@ -4,11 +4,11 @@ "localBasePath": "/template-gallery", "repoType": "dataset", "repoId": "sourav-das/modiff-template-gallery", - "revision": "7a5c7bd80df3c9179762bece6adc28dd62e1ab9e", + "revision": "fa444d27600f5792e80757bff74b640630274832", "pathPrefix": "template-gallery", "assetManifestPath": "_modiff/template-assets.v1.json", - "assetSetId": "sha256:canonical-json:f101d2602b1d61f6b963af6db70d67b45d0b8af2b95a6a2f2020974b4540c21b", - "completeAssetSetId": "sha256:canonical-json:690ea1522e3b4ffd3d72bc5911f02763c842fa3d23428ef123db0dbe0dca3a91", + "assetSetId": "sha256:canonical-json:17f8940a80e78691b3a8165b4f149d787ff0da7b851682f6401715d68a367f18", + "completeAssetSetId": "sha256:canonical-json:a5449a1ff8625c700e811308f7c16caf8888d379889895381ee4934d485c2cd6", "unavailableAssets": [ "template-gallery/ace_step_chinese_new_year_lora.card-poster.png", "template-gallery/ace_step_chinese_new_year_lora.wav", diff --git a/src/studio/types.ts b/src/studio/types.ts index c9b0cc24..d535f613 100644 --- a/src/studio/types.ts +++ b/src/studio/types.ts @@ -259,6 +259,16 @@ export type StudioTemplateId = | 'whisper_small_an_open_door' | 'smolvlm_red_triangle' | 'kandinsky3_ginkgo_on_slate' + | 'chroma_terracotta_and_blue' + | 'lumina2_larch_on_glacial_pond' + | 'hunyuan_dit_coastal_lighthouse' + | 'omnigen_tulips_after_rain' + | 'hunyuan_pag_burgundy_knight' + | 'chroma_restored_cobalt_backdrop' + | 'sdxl_pix2pix_pale_amber_glass' + | 'sd15_pag_mountain_lake_watercolor' + | 'sd15_pag_cobalt_studio_repair' + | 'zimage_golden_amber_glass' | 'bookshop_at_blue_hour' | 'flowers_after_rain' | 'forest_ferns' @@ -1645,7 +1655,11 @@ export type StudioTemplateExample = { mediaType: TemplateMediaType; status: TemplateExactnessStatus; lockedSeed: number; - lockedSettings?: Partial>; + // Retained catalog records may preserve PAG form values alongside their + // verified executable settings. Their recipes use the model's PAG defaults. + lockedSettings?: Partial< + StudioTemplateLockedSettings & Pick + >; /** Contract for each primary runtime output emitted by the graph. */ expectedOutput?: TemplateExpectedOutput; /** Optional derived gallery-media override, such as a review contact sheet. */ From dbddf3501c48953bbdc63d1f16faed0e4e11d6d3 Mon Sep 17 00:00:00 2001 From: Sourav Das Date: Wed, 25 Nov 2026 11:43:53 +0530 Subject: [PATCH 368/440] Register seven approved guided image workflows --- .../retained-gallery-approved-batch.v1.json | 119 ++ ...etained-gallery-authoring-archives.v1.json | 35 + config/template-asset-rights.v1.json | 1330 ++++++++++++++++- config/template-assets.v1.json | 438 +++++- public/template-gallery/manifest.json | 233 +++ scripts/retained-gallery-provenance.mjs | 4 +- scripts/retained-gallery-release.mjs | 2 + scripts/retained-gallery-templates.test.mjs | 40 +- src/studio/retainedGalleryApprovedBatch.ts | 740 +++++++++ src/studio/retainedGalleryTemplates.ts | 1 + src/studio/templateAssetSource.json | 6 +- src/studio/types.ts | 7 + 12 files changed, 2867 insertions(+), 88 deletions(-) diff --git a/config/retained-gallery-approved-batch.v1.json b/config/retained-gallery-approved-batch.v1.json index ea9c8e33..c132c8da 100644 --- a/config/retained-gallery-approved-batch.v1.json +++ b/config/retained-gallery-approved-batch.v1.json @@ -458,5 +458,124 @@ "width": 768, "height": 768 } + }, + "sdxl_control_inpaint_warm_plaster": { + "associationSha256": "a164aa1acb01ff7bb77ec43565bd17ed7c822f8331eeb24516fa58095cd3ecbd", + "backendSourceFingerprint": "sha256:backend-source-v1:2faeaaa03b7902a03df5cd0cea38129b7419f6d844125c0ca7e29ccfaf635290", + "backendContractFingerprint": "sha256:backend-contract-v1:7271d6dfcd46a677217edf40c568c3f5e9ae300200f76976e0cf18fd9b9f2508", + "templateRevisionHash": "7d840698c480d52e5a864d50fcdbe6528680a9d0453e5dc501d76ac89c0991ef", + "primaryModelRepo": "stabilityai/stable-diffusion-xl-base-1.0", + "capturedAt": "2026-11-25T00:04:32.014Z", + "outputExtension": "webp", + "outputSize": { + "width": 1024, + "height": 1024 + }, + "inputSize": { + "width": 1024, + "height": 1024 + } + }, + "sd15_canny_guided_green_glass": { + "associationSha256": "37b256588e8ffe492a2ac09c77eff98cf0b7adedafb95d434346b94c74a5e728", + "backendSourceFingerprint": "sha256:backend-source-v1:e3aea8f8d102572ad10fdd0700f0c42d92061e864ede89777efcd6a3269770a8", + "backendContractFingerprint": "sha256:backend-contract-v1:ad16452bc59ad56fa75df0e9f2f3b913f28233c906d4e37c4518fbc978d47953", + "templateRevisionHash": "783d03619e47df52cf8b17262e42d07bdaacf9165314c26bce9dc3fc9478e55d", + "primaryModelRepo": "stable-diffusion-v1-5/stable-diffusion-v1-5", + "capturedAt": "2026-11-23T16:04:58.708Z", + "outputExtension": "webp", + "outputSize": { + "width": 512, + "height": 512 + }, + "inputSize": { + "width": 512, + "height": 512 + } + }, + "hunyuan_dit_green_glass_study": { + "associationSha256": "a4c37eed14bb2859393511f0c539ea5a4255852cec45141a470abbcfa6bfdaac", + "backendSourceFingerprint": "sha256:backend-source-v1:1aae04a8ad2e66aeb3eaacc065f2e111280bd8a64e7e6cb95cc927fed95d6b39", + "backendContractFingerprint": "sha256:backend-contract-v1:ad16452bc59ad56fa75df0e9f2f3b913f28233c906d4e37c4518fbc978d47953", + "templateRevisionHash": "a132dd6cd433bd0595f962173926edd930ea38cbf44d175d5499234f600d21f2", + "primaryModelRepo": "Tencent-Hunyuan/HunyuanDiT-v1.2-Diffusers-Distilled", + "capturedAt": "2026-11-23T17:50:53.075Z", + "outputExtension": "webp", + "outputSize": { + "width": 1024, + "height": 1024 + }, + "inputSize": { + "width": 1024, + "height": 1024 + } + }, + "qwen_control_winter_cabin_blue_hour": { + "associationSha256": "49e4dd97a963a91ec488a6e53586bc55bd0bcac93e2591d9d51f759cdcfb6ce6", + "backendSourceFingerprint": "sha256:backend-source-v1:e3aea8f8d102572ad10fdd0700f0c42d92061e864ede89777efcd6a3269770a8", + "backendContractFingerprint": "sha256:backend-contract-v1:311f615e2b52ae3247c353b495df7708d560006e6909191e1e104b1e24b04587", + "templateRevisionHash": "eb65cb98a365c056f3a2a7bd5d44515bb16f518f7ec00797a496fe90a25ce07d", + "primaryModelRepo": "Qwen/Qwen-Image-2512", + "capturedAt": "2026-11-23T22:16:34.633Z", + "outputExtension": "webp", + "outputSize": { + "width": 1024, + "height": 1024 + }, + "inputSize": { + "width": 1024, + "height": 1024 + } + }, + "sd15_pag_canny_guided_glass": { + "associationSha256": "5f2c1f81107eec8d214f6f9fa7bb517d0298a6fdfd1d31ed0c4c440ed19e359d", + "backendSourceFingerprint": "sha256:backend-source-v1:e3aea8f8d102572ad10fdd0700f0c42d92061e864ede89777efcd6a3269770a8", + "backendContractFingerprint": "sha256:backend-contract-v1:ad16452bc59ad56fa75df0e9f2f3b913f28233c906d4e37c4518fbc978d47953", + "templateRevisionHash": "23fc8dfe4150096c38d946116a9839a314a7581d52c9397e9d8e1ad42716624c", + "primaryModelRepo": "stable-diffusion-v1-5/stable-diffusion-v1-5", + "capturedAt": "2026-11-23T16:06:50.173Z", + "outputExtension": "webp", + "outputSize": { + "width": 512, + "height": 512 + }, + "inputSize": { + "width": 512, + "height": 512 + } + }, + "sdxl_controlnet_glass_study_on_slate": { + "associationSha256": "290aae18b88e53f187a4818898017c3e685032471209ea970ee9f9e675f198bb", + "backendSourceFingerprint": "sha256:backend-source-v1:371fd754663a95b1b06900df9a838042048466464b4bd5cfa7033c1b6eebe0e3", + "backendContractFingerprint": "sha256:backend-contract-v1:ad16452bc59ad56fa75df0e9f2f3b913f28233c906d4e37c4518fbc978d47953", + "templateRevisionHash": "3075b68d97eea65616a9a8fe2519154041e24ced2cd916b395c4849d26c31b71", + "primaryModelRepo": "stabilityai/stable-diffusion-xl-base-1.0", + "capturedAt": "2026-11-23T15:20:10.146Z", + "outputExtension": "webp", + "outputSize": { + "width": 1024, + "height": 1024 + }, + "inputSize": { + "width": 1024, + "height": 1024 + } + }, + "sdxl_canny_adapter_glass_study": { + "associationSha256": "f05c0bb40aaad59d8bafc8f3efe1de4be8e3ebc1cec9b0607dde8902a78c4123", + "backendSourceFingerprint": "sha256:backend-source-v1:371fd754663a95b1b06900df9a838042048466464b4bd5cfa7033c1b6eebe0e3", + "backendContractFingerprint": "sha256:backend-contract-v1:ad16452bc59ad56fa75df0e9f2f3b913f28233c906d4e37c4518fbc978d47953", + "templateRevisionHash": "eef6570d0a2241aa0a9ff68b200c59591fc6497f43885fba151138ae56517968", + "primaryModelRepo": "stabilityai/stable-diffusion-xl-base-1.0", + "capturedAt": "2026-11-23T14:45:54.554Z", + "outputExtension": "webp", + "outputSize": { + "width": 1024, + "height": 1024 + }, + "inputSize": { + "width": 1024, + "height": 1024 + } } } diff --git a/config/retained-gallery-authoring-archives.v1.json b/config/retained-gallery-authoring-archives.v1.json index 4131a12c..66e2a319 100644 --- a/config/retained-gallery-authoring-archives.v1.json +++ b/config/retained-gallery-authoring-archives.v1.json @@ -64,6 +64,11 @@ "bytes": 3869, "sha256": "9fa0b0086341bdb652c97b70521b5647977e1922b7bc0858c7b803e90ea8c4a7" }, + "HunyuanDiTControlNetPipeline:control_image": { + "descriptorSha256": "88ca5ccb6b4500e438bd84d42321a2cb61d0f7322e5c3bdaa8343735b8f08648", + "bytes": 5246, + "sha256": "7426bf3a8120bb575184e3b93c8fb0b5d294dfbcef9f8e4d3119c1e9b65b66f6" + }, "HunyuanDiTPAGPipeline:text_to_image": { "descriptorSha256": "aa6b64f4a942adbb11c83cbaba89940fd03ed7dbf83175e8e1d17d32291454d3", "bytes": 4127, @@ -114,6 +119,11 @@ "bytes": 4027, "sha256": "912dc80ea1fbd712358db93e1b4808850bbe6659ea6adcd3f9c9205d5cf2f188" }, + "QwenImageControlNetPipeline:control_image": { + "descriptorSha256": "e9d03118cfe3e55fb78b42dec749d367bf72d6676aae59e70fd1b3be19ade4c0", + "bytes": 5155, + "sha256": "53558f2a325dab64cfe573ea363e3d0fd8c74a1aeae8b1019dc7112f7aaa8464" + }, "SanaPAGPipeline:text_to_image": { "descriptorSha256": "2e80e952039cfbc7b42f7f1b5689f30fb8b8f83646e0f4c2f6cb8e3a68b8d784", "bytes": 4223, @@ -124,6 +134,11 @@ "bytes": 4134, "sha256": "6c40aefc3fd65ed6bf87626873bb0377e7fba8ff4fbdbc5c0d3e4e0e3531968a" }, + "StableDiffusionPAGPipeline:control_image": { + "descriptorSha256": "9bb9602d6c79fd442b5f197809ed32dd1651524f4f5d730c28e1971c7325fc1d", + "bytes": 5428, + "sha256": "062b9b7343d9a8f8a3ebeb218b7f580295ee991e6ae436114ad3fdbe5305b75f" + }, "StableDiffusionPAGPipeline:edit_image": { "descriptorSha256": "b4929658c32ef7bad47e50f647abec0e6159c54374a1baea1e05d3f93b66effb", "bytes": 4590, @@ -139,6 +154,11 @@ "bytes": 4433, "sha256": "419397857a211d1ba3812d32cc47678a00883b5d70114a80079d8415176d09ed" }, + "StableDiffusionPipeline:control_image": { + "descriptorSha256": "4947a5a7b0a87481e1795185f91486717d6950c0f0f3ae79fc979c46c55ad443", + "bytes": 5181, + "sha256": "955cd49c1120a171b81a6445b75af50e0b180ff2e962053eaf556d28b5942b06" + }, "StableDiffusionPipeline:edit_image": { "descriptorSha256": "ce72fd7e5d5f263f68f94ae15778a596a3161c38c0f4092531f0c719b78667d8", "bytes": 4799, @@ -154,6 +174,21 @@ "bytes": 4194, "sha256": "642ccf45dd15946ead72c9666b394a9932d92d0dca64f13dfae0284edc55b9c5" }, + "StableDiffusionXLAdapterPipeline:control_image": { + "descriptorSha256": "5a911626f9d33032fb2dcdc80cede5ffad9506abc0fb0077dc4ba39947b33a36", + "bytes": 5234, + "sha256": "1a82490dad0b9ed6b3867c70d1640e80d30f8bd8958545c0fa014a6d500961d0" + }, + "StableDiffusionXLControlNetPipeline:control_image": { + "descriptorSha256": "f57b41443261612d95d3e80df2d638617f62526970313989ca69e0652bb4c390", + "bytes": 5241, + "sha256": "bb299311c58976cfd79bcf10eadc42f676d3dcf696eec4e7f42e46086e7b1720" + }, + "StableDiffusionXLControlNetPipeline:control_inpaint": { + "descriptorSha256": "ccf8f19d4018fd24d47fa5001209e36f9cec3a36a56e539f87759a99a7ac5fab", + "bytes": 6485, + "sha256": "b35a7bc3ceb494992fbad720db28faa4b242a34d109fd4b6c635cf127aca21c3" + }, "StableDiffusionXLInstructPix2PixPipeline:edit_image": { "descriptorSha256": "4655ea8f1f9b86921f07658644599ebe08034ffbe93e081eb19fd08faa214b61", "bytes": 4878, diff --git a/config/template-asset-rights.v1.json b/config/template-asset-rights.v1.json index 9995035d..96d33200 100644 --- a/config/template-asset-rights.v1.json +++ b/config/template-asset-rights.v1.json @@ -1,6 +1,6 @@ { "schemaVersion": 1, - "assetSetId": "sha256:canonical-json:a5449a1ff8625c700e811308f7c16caf8888d379889895381ee4934d485c2cd6", + "assetSetId": "sha256:canonical-json:42a99213cc747732b46d350cf1e908d2388ae363fdb0d6fb1200d084ca3971f2", "records": [ { "path": "template-gallery/ace_step_audio_continuation.wav", @@ -3676,6 +3676,33 @@ "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", "provenanceTemplateId": "hunyuan_dit_coastal_lighthouse" }, + { + "path": "template-gallery/hunyuan_dit_green_glass_study.webp", + "sha256": "sha256:bytes:a8e7cfbff764d792497daf6a8239591e7f1963008946a8593721b931f2cfb41e", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Exact approved file captured from a saved MoDiff workflow", + "sourceUrl": "https://huggingface.co/Tencent-Hunyuan/HunyuanDiT-v1.2-Diffusers-Distilled/tree/ba991d1546d8c50936c4c16398ed0a87b9b99fb1", + "sourceRevision": "Tencent-Hunyuan/HunyuanDiT-v1.2-Diffusers-Distilled@ba991d1546d8c50936c4c16398ed0a87b9b99fb1", + "sourceLicense": "Maintainer-authorized file with publisher terms retained", + "modelTerms": [ + "Publisher model terms at https://huggingface.co/Tencent-Hunyuan/HunyuanDiT-v1.2-Diffusers-Distilled/tree/ba991d1546d8c50936c4c16398ed0a87b9b99fb1" + ], + "aiGenerated": true, + "humanLikenessConsent": "synthetic", + "marks": [], + "requiredAttribution": [ + "Tencent-Hunyuan/HunyuanDiT-v1.2-Diffusers-Distilled@ba991d1546d8c50936c4c16398ed0a87b9b99fb1 https://huggingface.co/Tencent-Hunyuan/HunyuanDiT-v1.2-Diffusers-Distilled/tree/ba991d1546d8c50936c4c16398ed0a87b9b99fb1" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "3968c7cbe37a94789a9f839d8e83a9e0f102629b797d5f7baacf0304a8d18153", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "hunyuan_dit_green_glass_study" + }, { "path": "template-gallery/hunyuan_pag_burgundy_knight.webp", "sha256": "sha256:bytes:9f1c23651fccd748c6caa912c81e5e3983d311374ba2781ee2d27d2b3cf7ae0c", @@ -4266,6 +4293,33 @@ "flux_redux_multi_reference" ] }, + { + "path": "template-gallery/inputs/hunyuan_dit_green_glass_study.before.png", + "sha256": "sha256:bytes:6bd07628a37c087178e9de58a98c6c5879468163f1a2376a581511a42503e2e2", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Exact approved file captured from a saved MoDiff workflow", + "sourceUrl": "https://huggingface.co/Tencent-Hunyuan/HunyuanDiT-v1.2-Diffusers-Distilled/tree/ba991d1546d8c50936c4c16398ed0a87b9b99fb1", + "sourceRevision": "Tencent-Hunyuan/HunyuanDiT-v1.2-Diffusers-Distilled@ba991d1546d8c50936c4c16398ed0a87b9b99fb1", + "sourceLicense": "Maintainer-authorized file with publisher terms retained", + "modelTerms": [ + "Publisher model terms at https://huggingface.co/Tencent-Hunyuan/HunyuanDiT-v1.2-Diffusers-Distilled/tree/ba991d1546d8c50936c4c16398ed0a87b9b99fb1" + ], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "Tencent-Hunyuan/HunyuanDiT-v1.2-Diffusers-Distilled@ba991d1546d8c50936c4c16398ed0a87b9b99fb1 https://huggingface.co/Tencent-Hunyuan/HunyuanDiT-v1.2-Diffusers-Distilled/tree/ba991d1546d8c50936c4c16398ed0a87b9b99fb1" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "3968c7cbe37a94789a9f839d8e83a9e0f102629b797d5f7baacf0304a8d18153", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "hunyuan_dit_green_glass_study" + }, { "path": "template-gallery/inputs/lcm_dawn_alpine_lake.before.webp", "sha256": "sha256:bytes:25fe06d8e93645bc6ff29928556a0cd654aa6d70178d435268b3d17e9188feaa", @@ -4523,6 +4577,33 @@ "qwen_control_image_layout" ] }, + { + "path": "template-gallery/inputs/qwen_control_winter_cabin_blue_hour.before.png", + "sha256": "sha256:bytes:ca250462efc77625134ebe305b2ee67281a1dcf8919e45299c648f0fdacf919a", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Exact approved file captured from a saved MoDiff workflow", + "sourceUrl": "https://huggingface.co/Qwen/Qwen-Image-2512/tree/25468b98e3276ca6700de15c6628e51b7de54a26", + "sourceRevision": "Qwen/Qwen-Image-2512@25468b98e3276ca6700de15c6628e51b7de54a26", + "sourceLicense": "Maintainer-authorized file with publisher terms retained", + "modelTerms": [ + "Publisher model terms at https://huggingface.co/Qwen/Qwen-Image-2512/tree/25468b98e3276ca6700de15c6628e51b7de54a26" + ], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "Qwen/Qwen-Image-2512@25468b98e3276ca6700de15c6628e51b7de54a26 https://huggingface.co/Qwen/Qwen-Image-2512/tree/25468b98e3276ca6700de15c6628e51b7de54a26" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "3968c7cbe37a94789a9f839d8e83a9e0f102629b797d5f7baacf0304a8d18153", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "qwen_control_winter_cabin_blue_hour" + }, { "path": "template-gallery/inputs/qwen_edit_plus_single_image.before.webp", "sha256": "sha256:bytes:e90e99e27cdd9b6ab7478a05199df2fdf7dce650d700ef2ceb55da7fb206b715", @@ -5001,6 +5082,60 @@ "assetLicense": "MoDiff-Gallery-Restricted-1.0", "provenanceTemplateId": "sana_sprint_monochrome_tiger" }, + { + "path": "template-gallery/inputs/sd15_canny_guided_green_glass.before.png", + "sha256": "sha256:bytes:6d47a2f07006b98f9e5cfc8ee925914c4dbfa39fd38b0b61770be56d12ed04e8", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Exact approved file captured from a saved MoDiff workflow", + "sourceUrl": "https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14", + "sourceRevision": "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14", + "sourceLicense": "Maintainer-authorized file with publisher terms retained", + "modelTerms": [ + "Publisher model terms at https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14" + ], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14 https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "3968c7cbe37a94789a9f839d8e83a9e0f102629b797d5f7baacf0304a8d18153", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "sd15_canny_guided_green_glass" + }, + { + "path": "template-gallery/inputs/sd15_pag_canny_guided_glass.before.png", + "sha256": "sha256:bytes:6d47a2f07006b98f9e5cfc8ee925914c4dbfa39fd38b0b61770be56d12ed04e8", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Exact approved file captured from a saved MoDiff workflow", + "sourceUrl": "https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14", + "sourceRevision": "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14", + "sourceLicense": "Maintainer-authorized file with publisher terms retained", + "modelTerms": [ + "Publisher model terms at https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14" + ], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14 https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "3968c7cbe37a94789a9f839d8e83a9e0f102629b797d5f7baacf0304a8d18153", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "sd15_pag_canny_guided_glass" + }, { "path": "template-gallery/inputs/sd15_pag_cobalt_studio_repair.before.png", "sha256": "sha256:bytes:d143c4922ad498b9bd436d06df424bbff50baf023b93735b53ee401e19e4cbf1", @@ -5082,6 +5217,33 @@ "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", "provenanceTemplateId": "sd15_pag_mountain_lake_watercolor" }, + { + "path": "template-gallery/inputs/sdxl_canny_adapter_glass_study.before.png", + "sha256": "sha256:bytes:6bd07628a37c087178e9de58a98c6c5879468163f1a2376a581511a42503e2e2", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Exact approved file captured from a saved MoDiff workflow", + "sourceUrl": "https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b", + "sourceRevision": "stabilityai/stable-diffusion-xl-base-1.0@462165984030d82259a11f4367a4eed129e94a7b", + "sourceLicense": "Maintainer-authorized file with publisher terms retained", + "modelTerms": [ + "Publisher model terms at https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b" + ], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "stabilityai/stable-diffusion-xl-base-1.0@462165984030d82259a11f4367a4eed129e94a7b https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "3968c7cbe37a94789a9f839d8e83a9e0f102629b797d5f7baacf0304a8d18153", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "sdxl_canny_adapter_glass_study" + }, { "path": "template-gallery/inputs/sdxl_clear_cobalt_backdrop.before.png", "sha256": "sha256:bytes:e75c20f0e8a74e283b996bf526e6ea74535ed24125ad97c2d92508d3435d7a87", @@ -5136,6 +5298,114 @@ "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped six saved cases with model terms retained.", "provenanceTemplateId": "sdxl_clear_cobalt_backdrop" }, + { + "path": "template-gallery/inputs/sdxl_control_inpaint_warm_plaster.before.png", + "sha256": "sha256:bytes:e75c20f0e8a74e283b996bf526e6ea74535ed24125ad97c2d92508d3435d7a87", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Exact approved file captured from a saved MoDiff workflow", + "sourceUrl": "https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b", + "sourceRevision": "stabilityai/stable-diffusion-xl-base-1.0@462165984030d82259a11f4367a4eed129e94a7b", + "sourceLicense": "Maintainer-authorized file with publisher terms retained", + "modelTerms": [ + "Publisher model terms at https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b" + ], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "stabilityai/stable-diffusion-xl-base-1.0@462165984030d82259a11f4367a4eed129e94a7b https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "3968c7cbe37a94789a9f839d8e83a9e0f102629b797d5f7baacf0304a8d18153", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "sdxl_control_inpaint_warm_plaster" + }, + { + "path": "template-gallery/inputs/sdxl_control_inpaint_warm_plaster.guide.png", + "sha256": "sha256:bytes:0a41a9c56b98945e60c96ef796660c35b2cab7bf0b36d5e84ab0d97ef97f0a5a", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Exact approved file captured from a saved MoDiff workflow", + "sourceUrl": "https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b", + "sourceRevision": "stabilityai/stable-diffusion-xl-base-1.0@462165984030d82259a11f4367a4eed129e94a7b", + "sourceLicense": "Maintainer-authorized file with publisher terms retained", + "modelTerms": [ + "Publisher model terms at https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b" + ], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "stabilityai/stable-diffusion-xl-base-1.0@462165984030d82259a11f4367a4eed129e94a7b https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "3968c7cbe37a94789a9f839d8e83a9e0f102629b797d5f7baacf0304a8d18153", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "sdxl_control_inpaint_warm_plaster" + }, + { + "path": "template-gallery/inputs/sdxl_control_inpaint_warm_plaster.mask.png", + "sha256": "sha256:bytes:1f48775f2826f84e0c5b55f16f3475bdc80ecad8b931d6b0279598610e9a828d", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Exact approved file captured from a saved MoDiff workflow", + "sourceUrl": "https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b", + "sourceRevision": "stabilityai/stable-diffusion-xl-base-1.0@462165984030d82259a11f4367a4eed129e94a7b", + "sourceLicense": "Maintainer-authorized file with publisher terms retained", + "modelTerms": [ + "Publisher model terms at https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b" + ], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "stabilityai/stable-diffusion-xl-base-1.0@462165984030d82259a11f4367a4eed129e94a7b https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "3968c7cbe37a94789a9f839d8e83a9e0f102629b797d5f7baacf0304a8d18153", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "sdxl_control_inpaint_warm_plaster" + }, + { + "path": "template-gallery/inputs/sdxl_controlnet_glass_study_on_slate.before.png", + "sha256": "sha256:bytes:6bd07628a37c087178e9de58a98c6c5879468163f1a2376a581511a42503e2e2", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Exact approved file captured from a saved MoDiff workflow", + "sourceUrl": "https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b", + "sourceRevision": "stabilityai/stable-diffusion-xl-base-1.0@462165984030d82259a11f4367a4eed129e94a7b", + "sourceLicense": "Maintainer-authorized file with publisher terms retained", + "modelTerms": [ + "Publisher model terms at https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b" + ], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "stabilityai/stable-diffusion-xl-base-1.0@462165984030d82259a11f4367a4eed129e94a7b https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "3968c7cbe37a94789a9f839d8e83a9e0f102629b797d5f7baacf0304a8d18153", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "sdxl_controlnet_glass_study_on_slate" + }, { "path": "template-gallery/inputs/sdxl_pix2pix_pale_amber_glass.before.png", "sha256": "sha256:bytes:ebaca95f96d1573e4292ffc65c78eb0dcf8ff9cc8b5a7e11ec81face61b160fb", @@ -6293,7 +6563,7 @@ }, { "path": "template-gallery/manifest.json", - "sha256": "sha256:bytes:ffa3e887c65d7eb2fe860611ac5eb042cd0645bcb2999b48552d6dd1d5a1eafa", + "sha256": "sha256:bytes:5270a2956e09da1470a48cad222156db9ed6951b21e14178a111fbaede1bb75f", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", @@ -6310,7 +6580,7 @@ "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "c2df9edb92f8ff905b6c9a138a285e67c621f3d2dfa3232f859aaf963b725aca", + "humanApprovalPacketSHA256": "3968c7cbe37a94789a9f839d8e83a9e0f102629b797d5f7baacf0304a8d18153", "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained." }, { @@ -6609,6 +6879,33 @@ "acceptedOutputSHA256": "8aea21cd03849912745c7bbc1a2ceabad27cf3649947c6fb08fd86a7eec16c17", "humanApprovalPacketSHA256": "73ddf9ea7fc27eccc6b93817809421a008ce0fd2fb3080ffbdc5831a09205304" }, + { + "path": "template-gallery/qwen_control_winter_cabin_blue_hour.webp", + "sha256": "sha256:bytes:d54f6087af42a8af4f676f49b7c25cfa93df29343ab5cb151d2dc95e5ecd2039", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Exact approved file captured from a saved MoDiff workflow", + "sourceUrl": "https://huggingface.co/Qwen/Qwen-Image-2512/tree/25468b98e3276ca6700de15c6628e51b7de54a26", + "sourceRevision": "Qwen/Qwen-Image-2512@25468b98e3276ca6700de15c6628e51b7de54a26", + "sourceLicense": "Maintainer-authorized file with publisher terms retained", + "modelTerms": [ + "Publisher model terms at https://huggingface.co/Qwen/Qwen-Image-2512/tree/25468b98e3276ca6700de15c6628e51b7de54a26" + ], + "aiGenerated": true, + "humanLikenessConsent": "synthetic", + "marks": [], + "requiredAttribution": [ + "Qwen/Qwen-Image-2512@25468b98e3276ca6700de15c6628e51b7de54a26 https://huggingface.co/Qwen/Qwen-Image-2512/tree/25468b98e3276ca6700de15c6628e51b7de54a26" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "3968c7cbe37a94789a9f839d8e83a9e0f102629b797d5f7baacf0304a8d18153", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "qwen_control_winter_cabin_blue_hour" + }, { "path": "template-gallery/qwen_edit_plus_single_image.webp", "sha256": "sha256:bytes:be3f439416a3a4fe5647f032961908a3a4ac98c228cab0f7e13931e21d90e7de", @@ -10758,8 +11055,8 @@ "provenanceTemplateId": "hunyuan_dit_coastal_lighthouse" }, { - "path": "template-gallery/reviews/hunyuan_pag_burgundy_knight.original-provenance.json", - "sha256": "sha256:bytes:c2c30ee01a229dc1a2eafbc42f8e22d19626533c158ebeb4211ddc64f1ac9a9c", + "path": "template-gallery/reviews/hunyuan_dit_green_glass_study.original-provenance.json", + "sha256": "sha256:bytes:293d3b5128a5dec99d0371bc1402731b1264231127d73a9c85759048daee7bdb", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", @@ -10780,9 +11077,117 @@ "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "c2df9edb92f8ff905b6c9a138a285e67c621f3d2dfa3232f859aaf963b725aca", + "humanApprovalPacketSHA256": "3968c7cbe37a94789a9f839d8e83a9e0f102629b797d5f7baacf0304a8d18153", "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", - "provenanceTemplateId": "hunyuan_pag_burgundy_knight" + "provenanceTemplateId": "hunyuan_dit_green_glass_study" + }, + { + "path": "template-gallery/reviews/hunyuan_dit_green_glass_study.original-review.json", + "sha256": "sha256:bytes:40f0a76223a6da7fd9be445ca991c684ca1efdd45ef86e695b1f27d493b3a1f0", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/Tencent-Hunyuan/HunyuanDiT-v1.2-Diffusers-Distilled/tree/ba991d1546d8c50936c4c16398ed0a87b9b99fb1", + "sourceRevision": "Tencent-Hunyuan/HunyuanDiT-v1.2-Diffusers-Distilled@ba991d1546d8c50936c4c16398ed0a87b9b99fb1", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "Publisher model terms at https://huggingface.co/Tencent-Hunyuan/HunyuanDiT-v1.2-Diffusers-Distilled/tree/ba991d1546d8c50936c4c16398ed0a87b9b99fb1" + ], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "Tencent-Hunyuan/HunyuanDiT-v1.2-Diffusers-Distilled@ba991d1546d8c50936c4c16398ed0a87b9b99fb1 https://huggingface.co/Tencent-Hunyuan/HunyuanDiT-v1.2-Diffusers-Distilled/tree/ba991d1546d8c50936c4c16398ed0a87b9b99fb1" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "3968c7cbe37a94789a9f839d8e83a9e0f102629b797d5f7baacf0304a8d18153", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "hunyuan_dit_green_glass_study" + }, + { + "path": "template-gallery/reviews/hunyuan_dit_green_glass_study.quality-review.json", + "sha256": "sha256:bytes:c0da5754ab4ed0b3106fc0ac394cc83d47ae24431669a6e50014dbe5ac2dbdc3", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/Tencent-Hunyuan/HunyuanDiT-v1.2-Diffusers-Distilled/tree/ba991d1546d8c50936c4c16398ed0a87b9b99fb1", + "sourceRevision": "Tencent-Hunyuan/HunyuanDiT-v1.2-Diffusers-Distilled@ba991d1546d8c50936c4c16398ed0a87b9b99fb1", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "Publisher model terms at https://huggingface.co/Tencent-Hunyuan/HunyuanDiT-v1.2-Diffusers-Distilled/tree/ba991d1546d8c50936c4c16398ed0a87b9b99fb1" + ], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "Tencent-Hunyuan/HunyuanDiT-v1.2-Diffusers-Distilled@ba991d1546d8c50936c4c16398ed0a87b9b99fb1 https://huggingface.co/Tencent-Hunyuan/HunyuanDiT-v1.2-Diffusers-Distilled/tree/ba991d1546d8c50936c4c16398ed0a87b9b99fb1" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "3968c7cbe37a94789a9f839d8e83a9e0f102629b797d5f7baacf0304a8d18153", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "hunyuan_dit_green_glass_study" + }, + { + "path": "template-gallery/reviews/hunyuan_dit_green_glass_study.retained-template-provenance.json", + "sha256": "sha256:bytes:db66437531e3bdeb92c4d409db6dcea15a834b1c2e5a05a4d93b5442db6568cc", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/Tencent-Hunyuan/HunyuanDiT-v1.2-Diffusers-Distilled/tree/ba991d1546d8c50936c4c16398ed0a87b9b99fb1", + "sourceRevision": "Tencent-Hunyuan/HunyuanDiT-v1.2-Diffusers-Distilled@ba991d1546d8c50936c4c16398ed0a87b9b99fb1", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "Publisher model terms at https://huggingface.co/Tencent-Hunyuan/HunyuanDiT-v1.2-Diffusers-Distilled/tree/ba991d1546d8c50936c4c16398ed0a87b9b99fb1" + ], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "Tencent-Hunyuan/HunyuanDiT-v1.2-Diffusers-Distilled@ba991d1546d8c50936c4c16398ed0a87b9b99fb1 https://huggingface.co/Tencent-Hunyuan/HunyuanDiT-v1.2-Diffusers-Distilled/tree/ba991d1546d8c50936c4c16398ed0a87b9b99fb1" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "3968c7cbe37a94789a9f839d8e83a9e0f102629b797d5f7baacf0304a8d18153", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "hunyuan_dit_green_glass_study" + }, + { + "path": "template-gallery/reviews/hunyuan_pag_burgundy_knight.original-provenance.json", + "sha256": "sha256:bytes:c2c30ee01a229dc1a2eafbc42f8e22d19626533c158ebeb4211ddc64f1ac9a9c", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/Tencent-Hunyuan/HunyuanDiT-v1.2-Diffusers-Distilled/tree/ba991d1546d8c50936c4c16398ed0a87b9b99fb1", + "sourceRevision": "Tencent-Hunyuan/HunyuanDiT-v1.2-Diffusers-Distilled@ba991d1546d8c50936c4c16398ed0a87b9b99fb1", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "Publisher model terms at https://huggingface.co/Tencent-Hunyuan/HunyuanDiT-v1.2-Diffusers-Distilled/tree/ba991d1546d8c50936c4c16398ed0a87b9b99fb1" + ], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "Tencent-Hunyuan/HunyuanDiT-v1.2-Diffusers-Distilled@ba991d1546d8c50936c4c16398ed0a87b9b99fb1 https://huggingface.co/Tencent-Hunyuan/HunyuanDiT-v1.2-Diffusers-Distilled/tree/ba991d1546d8c50936c4c16398ed0a87b9b99fb1" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "c2df9edb92f8ff905b6c9a138a285e67c621f3d2dfa3232f859aaf963b725aca", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "hunyuan_pag_burgundy_knight" }, { "path": "template-gallery/reviews/hunyuan_pag_burgundy_knight.original-review.json", @@ -12858,6 +13263,114 @@ "humanApprovalScope": "The maintainer explicitly approved the proposed 4/5 scores, known limits, exact retained Klein two-reference derivative output, its redacted technical/quality metadata, and permission to make and redistribute this derivative under Apache-2.0. Existing source images and their mixed license records remain unchanged; no other assets or held cases are newly approved.", "provenanceTemplateId": "qwen_control_image_layout" }, + { + "path": "template-gallery/reviews/qwen_control_winter_cabin_blue_hour.original-provenance.json", + "sha256": "sha256:bytes:a58317e01fd2bffeb6a261279a595539d058304a8c5965c89e43ef6680273fc4", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/Qwen/Qwen-Image-2512/tree/25468b98e3276ca6700de15c6628e51b7de54a26", + "sourceRevision": "Qwen/Qwen-Image-2512@25468b98e3276ca6700de15c6628e51b7de54a26", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "Publisher model terms at https://huggingface.co/Qwen/Qwen-Image-2512/tree/25468b98e3276ca6700de15c6628e51b7de54a26" + ], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "Qwen/Qwen-Image-2512@25468b98e3276ca6700de15c6628e51b7de54a26 https://huggingface.co/Qwen/Qwen-Image-2512/tree/25468b98e3276ca6700de15c6628e51b7de54a26" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "3968c7cbe37a94789a9f839d8e83a9e0f102629b797d5f7baacf0304a8d18153", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "qwen_control_winter_cabin_blue_hour" + }, + { + "path": "template-gallery/reviews/qwen_control_winter_cabin_blue_hour.original-review.json", + "sha256": "sha256:bytes:b01f4a91833a2f141f512cb5caee5eeff76481a829590260f823b500824bab24", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/Qwen/Qwen-Image-2512/tree/25468b98e3276ca6700de15c6628e51b7de54a26", + "sourceRevision": "Qwen/Qwen-Image-2512@25468b98e3276ca6700de15c6628e51b7de54a26", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "Publisher model terms at https://huggingface.co/Qwen/Qwen-Image-2512/tree/25468b98e3276ca6700de15c6628e51b7de54a26" + ], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "Qwen/Qwen-Image-2512@25468b98e3276ca6700de15c6628e51b7de54a26 https://huggingface.co/Qwen/Qwen-Image-2512/tree/25468b98e3276ca6700de15c6628e51b7de54a26" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "3968c7cbe37a94789a9f839d8e83a9e0f102629b797d5f7baacf0304a8d18153", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "qwen_control_winter_cabin_blue_hour" + }, + { + "path": "template-gallery/reviews/qwen_control_winter_cabin_blue_hour.quality-review.json", + "sha256": "sha256:bytes:b83d8bef8d87dbd5e4587904a947f82d9a2353224781b1581dae0684b86eab65", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/Qwen/Qwen-Image-2512/tree/25468b98e3276ca6700de15c6628e51b7de54a26", + "sourceRevision": "Qwen/Qwen-Image-2512@25468b98e3276ca6700de15c6628e51b7de54a26", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "Publisher model terms at https://huggingface.co/Qwen/Qwen-Image-2512/tree/25468b98e3276ca6700de15c6628e51b7de54a26" + ], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "Qwen/Qwen-Image-2512@25468b98e3276ca6700de15c6628e51b7de54a26 https://huggingface.co/Qwen/Qwen-Image-2512/tree/25468b98e3276ca6700de15c6628e51b7de54a26" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "3968c7cbe37a94789a9f839d8e83a9e0f102629b797d5f7baacf0304a8d18153", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "qwen_control_winter_cabin_blue_hour" + }, + { + "path": "template-gallery/reviews/qwen_control_winter_cabin_blue_hour.retained-template-provenance.json", + "sha256": "sha256:bytes:6c21a60f83581753a9e54647ce49a82c877f23a30ea2161be13e675e26eeb0db", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/Qwen/Qwen-Image-2512/tree/25468b98e3276ca6700de15c6628e51b7de54a26", + "sourceRevision": "Qwen/Qwen-Image-2512@25468b98e3276ca6700de15c6628e51b7de54a26", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "Publisher model terms at https://huggingface.co/Qwen/Qwen-Image-2512/tree/25468b98e3276ca6700de15c6628e51b7de54a26" + ], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "Qwen/Qwen-Image-2512@25468b98e3276ca6700de15c6628e51b7de54a26 https://huggingface.co/Qwen/Qwen-Image-2512/tree/25468b98e3276ca6700de15c6628e51b7de54a26" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "3968c7cbe37a94789a9f839d8e83a9e0f102629b797d5f7baacf0304a8d18153", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "qwen_control_winter_cabin_blue_hour" + }, { "path": "template-gallery/reviews/qwen_edit_plus_single_image.quality-review.json", "sha256": "sha256:bytes:bd2066932a1749ee87c340450d232ed2d8f919648ae9e1e64b9ea30f531d73d7", @@ -14051,8 +14564,8 @@ "provenanceTemplateId": "sana_sprint_monochrome_tiger" }, { - "path": "template-gallery/reviews/sd15_pag_cobalt_studio_repair.original-provenance.json", - "sha256": "sha256:bytes:b3a227ef5f8f0ea481c446854ce4be387bfe434ff252d9a5d34887ddb2b69b55", + "path": "template-gallery/reviews/sd15_canny_guided_green_glass.original-provenance.json", + "sha256": "sha256:bytes:4819d64b35e84d822483b4edf58c0d2a82ca612989a5f283763eff90e1c3dcc4", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", @@ -14073,13 +14586,13 @@ "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "c2df9edb92f8ff905b6c9a138a285e67c621f3d2dfa3232f859aaf963b725aca", + "humanApprovalPacketSHA256": "3968c7cbe37a94789a9f839d8e83a9e0f102629b797d5f7baacf0304a8d18153", "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", - "provenanceTemplateId": "sd15_pag_cobalt_studio_repair" + "provenanceTemplateId": "sd15_canny_guided_green_glass" }, { - "path": "template-gallery/reviews/sd15_pag_cobalt_studio_repair.original-review.json", - "sha256": "sha256:bytes:dcbaa8d96f77097c5e763de7dd3602e62e4dc4d1302b2d4e7a426ae606b94de3", + "path": "template-gallery/reviews/sd15_canny_guided_green_glass.original-review.json", + "sha256": "sha256:bytes:702ca8e77651aeb71cddfb6daa67ca584309cc1639d3ad81cbe783e65c14ac14", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", @@ -14100,13 +14613,13 @@ "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "c2df9edb92f8ff905b6c9a138a285e67c621f3d2dfa3232f859aaf963b725aca", + "humanApprovalPacketSHA256": "3968c7cbe37a94789a9f839d8e83a9e0f102629b797d5f7baacf0304a8d18153", "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", - "provenanceTemplateId": "sd15_pag_cobalt_studio_repair" + "provenanceTemplateId": "sd15_canny_guided_green_glass" }, { - "path": "template-gallery/reviews/sd15_pag_cobalt_studio_repair.quality-review.json", - "sha256": "sha256:bytes:ddfa89f8e656c4790a14c0e9dcfffa24a1a034cab5c1bb62390307bfa70bc9fc", + "path": "template-gallery/reviews/sd15_canny_guided_green_glass.quality-review.json", + "sha256": "sha256:bytes:6b4eb4c2e53322bd651c6da7802034a81a968a063f4d68099d18a47b798b6a2a", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", @@ -14127,13 +14640,13 @@ "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "c2df9edb92f8ff905b6c9a138a285e67c621f3d2dfa3232f859aaf963b725aca", + "humanApprovalPacketSHA256": "3968c7cbe37a94789a9f839d8e83a9e0f102629b797d5f7baacf0304a8d18153", "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", - "provenanceTemplateId": "sd15_pag_cobalt_studio_repair" + "provenanceTemplateId": "sd15_canny_guided_green_glass" }, { - "path": "template-gallery/reviews/sd15_pag_cobalt_studio_repair.retained-template-provenance.json", - "sha256": "sha256:bytes:e2aade8abc03d27c9f342023c60f27dcbb77f28a94d7605522ae0e862672eeed", + "path": "template-gallery/reviews/sd15_canny_guided_green_glass.retained-template-provenance.json", + "sha256": "sha256:bytes:402d8a04c798edda4ccf43f0b2716520eb7b4e3e268b111ac029ce1ef95865bc", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", @@ -14154,13 +14667,13 @@ "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "c2df9edb92f8ff905b6c9a138a285e67c621f3d2dfa3232f859aaf963b725aca", + "humanApprovalPacketSHA256": "3968c7cbe37a94789a9f839d8e83a9e0f102629b797d5f7baacf0304a8d18153", "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", - "provenanceTemplateId": "sd15_pag_cobalt_studio_repair" + "provenanceTemplateId": "sd15_canny_guided_green_glass" }, { - "path": "template-gallery/reviews/sd15_pag_mountain_lake_watercolor.original-provenance.json", - "sha256": "sha256:bytes:53be917cea31e259033fb99bb4ff99b1b975abc7cad671b8eb2511794545082e", + "path": "template-gallery/reviews/sd15_pag_canny_guided_glass.original-provenance.json", + "sha256": "sha256:bytes:9c932db7355340ac4e8adf44b0d465192ee66096c6e811fd917ab7d0d6858881", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", @@ -14181,13 +14694,13 @@ "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "c2df9edb92f8ff905b6c9a138a285e67c621f3d2dfa3232f859aaf963b725aca", + "humanApprovalPacketSHA256": "3968c7cbe37a94789a9f839d8e83a9e0f102629b797d5f7baacf0304a8d18153", "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", - "provenanceTemplateId": "sd15_pag_mountain_lake_watercolor" + "provenanceTemplateId": "sd15_pag_canny_guided_glass" }, { - "path": "template-gallery/reviews/sd15_pag_mountain_lake_watercolor.original-review.json", - "sha256": "sha256:bytes:e7226c4664a027c20670f6aa367d4c2751efbe4fc0569afe6cb137349a8f5406", + "path": "template-gallery/reviews/sd15_pag_canny_guided_glass.original-review.json", + "sha256": "sha256:bytes:71b3e8d9324b3a359982cc2544d97acaa55ad8fd919bba1c9638e337c2029b64", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", @@ -14208,13 +14721,13 @@ "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "c2df9edb92f8ff905b6c9a138a285e67c621f3d2dfa3232f859aaf963b725aca", + "humanApprovalPacketSHA256": "3968c7cbe37a94789a9f839d8e83a9e0f102629b797d5f7baacf0304a8d18153", "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", - "provenanceTemplateId": "sd15_pag_mountain_lake_watercolor" + "provenanceTemplateId": "sd15_pag_canny_guided_glass" }, { - "path": "template-gallery/reviews/sd15_pag_mountain_lake_watercolor.quality-review.json", - "sha256": "sha256:bytes:a76c9a2fbcb169ecc2498d87ebc3f17f640cd49c4ca906ffc117a281f885d2af", + "path": "template-gallery/reviews/sd15_pag_canny_guided_glass.quality-review.json", + "sha256": "sha256:bytes:17e907b2f792b6f5d3a67cdb23e21cd610731baec7b7bd3914170fb801f4c807", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", @@ -14235,13 +14748,13 @@ "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "c2df9edb92f8ff905b6c9a138a285e67c621f3d2dfa3232f859aaf963b725aca", + "humanApprovalPacketSHA256": "3968c7cbe37a94789a9f839d8e83a9e0f102629b797d5f7baacf0304a8d18153", "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", - "provenanceTemplateId": "sd15_pag_mountain_lake_watercolor" + "provenanceTemplateId": "sd15_pag_canny_guided_glass" }, { - "path": "template-gallery/reviews/sd15_pag_mountain_lake_watercolor.retained-template-provenance.json", - "sha256": "sha256:bytes:f2e571509ee047bbf0f2b7381ba505ec3204898db1f9d4bcf567ad1d661c1c75", + "path": "template-gallery/reviews/sd15_pag_canny_guided_glass.retained-template-provenance.json", + "sha256": "sha256:bytes:7f00b5906e8f7b8b9f25ab10145851637e469edfb455660c72f08be72bee8b7b", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", @@ -14262,67 +14775,472 @@ "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "c2df9edb92f8ff905b6c9a138a285e67c621f3d2dfa3232f859aaf963b725aca", + "humanApprovalPacketSHA256": "3968c7cbe37a94789a9f839d8e83a9e0f102629b797d5f7baacf0304a8d18153", "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", - "provenanceTemplateId": "sd15_pag_mountain_lake_watercolor" + "provenanceTemplateId": "sd15_pag_canny_guided_glass" }, { - "path": "template-gallery/reviews/sdxl_clear_cobalt_backdrop.original-provenance.json", - "sha256": "sha256:bytes:7361ac84e232f55f7f8e19fae39c5abff4e4df36ac1d1c754ca4d9716d60b1df", + "path": "template-gallery/reviews/sd15_pag_cobalt_studio_repair.original-provenance.json", + "sha256": "sha256:bytes:b3a227ef5f8f0ea481c446854ce4be387bfe434ff252d9a5d34887ddb2b69b55", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b", - "sourceRevision": "stabilityai/stable-diffusion-xl-base-1.0@462165984030d82259a11f4367a4eed129e94a7b", + "sourceUrl": "https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14", + "sourceRevision": "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14", "sourceLicense": "MoDiff-authored Gallery metadata", "modelTerms": [ - "Publisher model terms at https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b" + "Publisher model terms at https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14" ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "stabilityai/stable-diffusion-xl-base-1.0@462165984030d82259a11f4367a4eed129e94a7b https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b" + "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14 https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", - "reviewedAt": "2026-11-24", + "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "d216f065bdc316366c6183592f657bcfbbd7cb05acd0e510c6b3877fe56bcec2", - "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped six saved cases with model terms retained.", - "provenanceTemplateId": "sdxl_clear_cobalt_backdrop" + "humanApprovalPacketSHA256": "c2df9edb92f8ff905b6c9a138a285e67c621f3d2dfa3232f859aaf963b725aca", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "sd15_pag_cobalt_studio_repair" }, { - "path": "template-gallery/reviews/sdxl_clear_cobalt_backdrop.original-review.json", - "sha256": "sha256:bytes:d7edf6240c066f9d48ab24fd45c77556b2afa52e145f530428c93620496ddf15", + "path": "template-gallery/reviews/sd15_pag_cobalt_studio_repair.original-review.json", + "sha256": "sha256:bytes:dcbaa8d96f77097c5e763de7dd3602e62e4dc4d1302b2d4e7a426ae606b94de3", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b", - "sourceRevision": "stabilityai/stable-diffusion-xl-base-1.0@462165984030d82259a11f4367a4eed129e94a7b", + "sourceUrl": "https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14", + "sourceRevision": "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14", "sourceLicense": "MoDiff-authored Gallery metadata", "modelTerms": [ - "Publisher model terms at https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b" + "Publisher model terms at https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14" ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "stabilityai/stable-diffusion-xl-base-1.0@462165984030d82259a11f4367a4eed129e94a7b https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b" + "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14 https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", - "reviewedAt": "2026-11-24", + "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "d216f065bdc316366c6183592f657bcfbbd7cb05acd0e510c6b3877fe56bcec2", - "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped six saved cases with model terms retained.", - "provenanceTemplateId": "sdxl_clear_cobalt_backdrop" + "humanApprovalPacketSHA256": "c2df9edb92f8ff905b6c9a138a285e67c621f3d2dfa3232f859aaf963b725aca", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "sd15_pag_cobalt_studio_repair" }, { - "path": "template-gallery/reviews/sdxl_clear_cobalt_backdrop.quality-review.json", - "sha256": "sha256:bytes:c5853176bee61c270f06f94714ff9e968eb466ab7198d26d78a1d9dc4482cb41", + "path": "template-gallery/reviews/sd15_pag_cobalt_studio_repair.quality-review.json", + "sha256": "sha256:bytes:ddfa89f8e656c4790a14c0e9dcfffa24a1a034cab5c1bb62390307bfa70bc9fc", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14", + "sourceRevision": "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "Publisher model terms at https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14" + ], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14 https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "c2df9edb92f8ff905b6c9a138a285e67c621f3d2dfa3232f859aaf963b725aca", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "sd15_pag_cobalt_studio_repair" + }, + { + "path": "template-gallery/reviews/sd15_pag_cobalt_studio_repair.retained-template-provenance.json", + "sha256": "sha256:bytes:e2aade8abc03d27c9f342023c60f27dcbb77f28a94d7605522ae0e862672eeed", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14", + "sourceRevision": "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "Publisher model terms at https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14" + ], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14 https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "c2df9edb92f8ff905b6c9a138a285e67c621f3d2dfa3232f859aaf963b725aca", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "sd15_pag_cobalt_studio_repair" + }, + { + "path": "template-gallery/reviews/sd15_pag_mountain_lake_watercolor.original-provenance.json", + "sha256": "sha256:bytes:53be917cea31e259033fb99bb4ff99b1b975abc7cad671b8eb2511794545082e", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14", + "sourceRevision": "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "Publisher model terms at https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14" + ], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14 https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "c2df9edb92f8ff905b6c9a138a285e67c621f3d2dfa3232f859aaf963b725aca", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "sd15_pag_mountain_lake_watercolor" + }, + { + "path": "template-gallery/reviews/sd15_pag_mountain_lake_watercolor.original-review.json", + "sha256": "sha256:bytes:e7226c4664a027c20670f6aa367d4c2751efbe4fc0569afe6cb137349a8f5406", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14", + "sourceRevision": "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "Publisher model terms at https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14" + ], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14 https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "c2df9edb92f8ff905b6c9a138a285e67c621f3d2dfa3232f859aaf963b725aca", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "sd15_pag_mountain_lake_watercolor" + }, + { + "path": "template-gallery/reviews/sd15_pag_mountain_lake_watercolor.quality-review.json", + "sha256": "sha256:bytes:a76c9a2fbcb169ecc2498d87ebc3f17f640cd49c4ca906ffc117a281f885d2af", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14", + "sourceRevision": "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "Publisher model terms at https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14" + ], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14 https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "c2df9edb92f8ff905b6c9a138a285e67c621f3d2dfa3232f859aaf963b725aca", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "sd15_pag_mountain_lake_watercolor" + }, + { + "path": "template-gallery/reviews/sd15_pag_mountain_lake_watercolor.retained-template-provenance.json", + "sha256": "sha256:bytes:f2e571509ee047bbf0f2b7381ba505ec3204898db1f9d4bcf567ad1d661c1c75", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14", + "sourceRevision": "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "Publisher model terms at https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14" + ], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14 https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "c2df9edb92f8ff905b6c9a138a285e67c621f3d2dfa3232f859aaf963b725aca", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "sd15_pag_mountain_lake_watercolor" + }, + { + "path": "template-gallery/reviews/sdxl_canny_adapter_glass_study.original-provenance.json", + "sha256": "sha256:bytes:daf26190a849032e45d97c519a2d0a943ea9cab99937916d7f2f9b88b29a69a0", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b", + "sourceRevision": "stabilityai/stable-diffusion-xl-base-1.0@462165984030d82259a11f4367a4eed129e94a7b", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "Publisher model terms at https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b" + ], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "stabilityai/stable-diffusion-xl-base-1.0@462165984030d82259a11f4367a4eed129e94a7b https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "3968c7cbe37a94789a9f839d8e83a9e0f102629b797d5f7baacf0304a8d18153", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "sdxl_canny_adapter_glass_study" + }, + { + "path": "template-gallery/reviews/sdxl_canny_adapter_glass_study.original-review.json", + "sha256": "sha256:bytes:305618170534dc7808c62234e6bc2a428e49d6eb5ed766aabb4aad4cc48f6e07", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b", + "sourceRevision": "stabilityai/stable-diffusion-xl-base-1.0@462165984030d82259a11f4367a4eed129e94a7b", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "Publisher model terms at https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b" + ], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "stabilityai/stable-diffusion-xl-base-1.0@462165984030d82259a11f4367a4eed129e94a7b https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "3968c7cbe37a94789a9f839d8e83a9e0f102629b797d5f7baacf0304a8d18153", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "sdxl_canny_adapter_glass_study" + }, + { + "path": "template-gallery/reviews/sdxl_canny_adapter_glass_study.quality-review.json", + "sha256": "sha256:bytes:f4766cc262cf8d06f5e643b7e4b11bf31ddb550de66b2274727948738550ab7b", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b", + "sourceRevision": "stabilityai/stable-diffusion-xl-base-1.0@462165984030d82259a11f4367a4eed129e94a7b", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "Publisher model terms at https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b" + ], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "stabilityai/stable-diffusion-xl-base-1.0@462165984030d82259a11f4367a4eed129e94a7b https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "3968c7cbe37a94789a9f839d8e83a9e0f102629b797d5f7baacf0304a8d18153", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "sdxl_canny_adapter_glass_study" + }, + { + "path": "template-gallery/reviews/sdxl_canny_adapter_glass_study.retained-template-provenance.json", + "sha256": "sha256:bytes:3a6c1a9a6ce7a31c19275f7049b062f62739c7517e13e2ad5c512c805a5a68ef", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b", + "sourceRevision": "stabilityai/stable-diffusion-xl-base-1.0@462165984030d82259a11f4367a4eed129e94a7b", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "Publisher model terms at https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b" + ], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "stabilityai/stable-diffusion-xl-base-1.0@462165984030d82259a11f4367a4eed129e94a7b https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "3968c7cbe37a94789a9f839d8e83a9e0f102629b797d5f7baacf0304a8d18153", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "sdxl_canny_adapter_glass_study" + }, + { + "path": "template-gallery/reviews/sdxl_clear_cobalt_backdrop.original-provenance.json", + "sha256": "sha256:bytes:7361ac84e232f55f7f8e19fae39c5abff4e4df36ac1d1c754ca4d9716d60b1df", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b", + "sourceRevision": "stabilityai/stable-diffusion-xl-base-1.0@462165984030d82259a11f4367a4eed129e94a7b", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "Publisher model terms at https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b" + ], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "stabilityai/stable-diffusion-xl-base-1.0@462165984030d82259a11f4367a4eed129e94a7b https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-24", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "d216f065bdc316366c6183592f657bcfbbd7cb05acd0e510c6b3877fe56bcec2", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped six saved cases with model terms retained.", + "provenanceTemplateId": "sdxl_clear_cobalt_backdrop" + }, + { + "path": "template-gallery/reviews/sdxl_clear_cobalt_backdrop.original-review.json", + "sha256": "sha256:bytes:d7edf6240c066f9d48ab24fd45c77556b2afa52e145f530428c93620496ddf15", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b", + "sourceRevision": "stabilityai/stable-diffusion-xl-base-1.0@462165984030d82259a11f4367a4eed129e94a7b", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "Publisher model terms at https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b" + ], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "stabilityai/stable-diffusion-xl-base-1.0@462165984030d82259a11f4367a4eed129e94a7b https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-24", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "d216f065bdc316366c6183592f657bcfbbd7cb05acd0e510c6b3877fe56bcec2", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped six saved cases with model terms retained.", + "provenanceTemplateId": "sdxl_clear_cobalt_backdrop" + }, + { + "path": "template-gallery/reviews/sdxl_clear_cobalt_backdrop.quality-review.json", + "sha256": "sha256:bytes:c5853176bee61c270f06f94714ff9e968eb466ab7198d26d78a1d9dc4482cb41", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b", + "sourceRevision": "stabilityai/stable-diffusion-xl-base-1.0@462165984030d82259a11f4367a4eed129e94a7b", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "Publisher model terms at https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b" + ], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "stabilityai/stable-diffusion-xl-base-1.0@462165984030d82259a11f4367a4eed129e94a7b https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-24", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "d216f065bdc316366c6183592f657bcfbbd7cb05acd0e510c6b3877fe56bcec2", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped six saved cases with model terms retained.", + "provenanceTemplateId": "sdxl_clear_cobalt_backdrop" + }, + { + "path": "template-gallery/reviews/sdxl_clear_cobalt_backdrop.retained-template-provenance.json", + "sha256": "sha256:bytes:b680690954be3c7784aed2b97110d50706dc3ebb56df9e61611b203150a90b39", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b", + "sourceRevision": "stabilityai/stable-diffusion-xl-base-1.0@462165984030d82259a11f4367a4eed129e94a7b", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "Publisher model terms at https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b" + ], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "stabilityai/stable-diffusion-xl-base-1.0@462165984030d82259a11f4367a4eed129e94a7b https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-24", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "d216f065bdc316366c6183592f657bcfbbd7cb05acd0e510c6b3877fe56bcec2", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped six saved cases with model terms retained.", + "provenanceTemplateId": "sdxl_clear_cobalt_backdrop" + }, + { + "path": "template-gallery/reviews/sdxl_control_inpaint_warm_plaster.original-provenance.json", + "sha256": "sha256:bytes:661ddabb9dd317859660c6d6c56737672f0969c2637153b2aa3a14b1422cac0b", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b", + "sourceRevision": "stabilityai/stable-diffusion-xl-base-1.0@462165984030d82259a11f4367a4eed129e94a7b", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "Publisher model terms at https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b" + ], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "stabilityai/stable-diffusion-xl-base-1.0@462165984030d82259a11f4367a4eed129e94a7b https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "3968c7cbe37a94789a9f839d8e83a9e0f102629b797d5f7baacf0304a8d18153", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "sdxl_control_inpaint_warm_plaster" + }, + { + "path": "template-gallery/reviews/sdxl_control_inpaint_warm_plaster.original-review.json", + "sha256": "sha256:bytes:9ec0f8ff6cc645c9c9c9c9102965753af931061398629edb65727f99d2cb7faa", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", @@ -14341,15 +15259,15 @@ ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", - "reviewedAt": "2026-11-24", + "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "d216f065bdc316366c6183592f657bcfbbd7cb05acd0e510c6b3877fe56bcec2", - "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped six saved cases with model terms retained.", - "provenanceTemplateId": "sdxl_clear_cobalt_backdrop" + "humanApprovalPacketSHA256": "3968c7cbe37a94789a9f839d8e83a9e0f102629b797d5f7baacf0304a8d18153", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "sdxl_control_inpaint_warm_plaster" }, { - "path": "template-gallery/reviews/sdxl_clear_cobalt_backdrop.retained-template-provenance.json", - "sha256": "sha256:bytes:b680690954be3c7784aed2b97110d50706dc3ebb56df9e61611b203150a90b39", + "path": "template-gallery/reviews/sdxl_control_inpaint_warm_plaster.quality-review.json", + "sha256": "sha256:bytes:4e3e6d321e3c4b7b17ba5ff675c610bd6c0a86779bda8e1c2fa0b3c25754d15e", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", @@ -14368,11 +15286,146 @@ ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", - "reviewedAt": "2026-11-24", + "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "d216f065bdc316366c6183592f657bcfbbd7cb05acd0e510c6b3877fe56bcec2", - "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped six saved cases with model terms retained.", - "provenanceTemplateId": "sdxl_clear_cobalt_backdrop" + "humanApprovalPacketSHA256": "3968c7cbe37a94789a9f839d8e83a9e0f102629b797d5f7baacf0304a8d18153", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "sdxl_control_inpaint_warm_plaster" + }, + { + "path": "template-gallery/reviews/sdxl_control_inpaint_warm_plaster.retained-template-provenance.json", + "sha256": "sha256:bytes:b55fbe6ba9d7b2243d12fe0227026b502eb8674412f4da62cc0ef72b57a91370", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b", + "sourceRevision": "stabilityai/stable-diffusion-xl-base-1.0@462165984030d82259a11f4367a4eed129e94a7b", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "Publisher model terms at https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b" + ], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "stabilityai/stable-diffusion-xl-base-1.0@462165984030d82259a11f4367a4eed129e94a7b https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "3968c7cbe37a94789a9f839d8e83a9e0f102629b797d5f7baacf0304a8d18153", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "sdxl_control_inpaint_warm_plaster" + }, + { + "path": "template-gallery/reviews/sdxl_controlnet_glass_study_on_slate.original-provenance.json", + "sha256": "sha256:bytes:5eff28279014893ed1b626866eef574cb72798d376da8faef83766c89e3e8223", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b", + "sourceRevision": "stabilityai/stable-diffusion-xl-base-1.0@462165984030d82259a11f4367a4eed129e94a7b", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "Publisher model terms at https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b" + ], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "stabilityai/stable-diffusion-xl-base-1.0@462165984030d82259a11f4367a4eed129e94a7b https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "3968c7cbe37a94789a9f839d8e83a9e0f102629b797d5f7baacf0304a8d18153", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "sdxl_controlnet_glass_study_on_slate" + }, + { + "path": "template-gallery/reviews/sdxl_controlnet_glass_study_on_slate.original-review.json", + "sha256": "sha256:bytes:42676c7dd7b9bd9c2062dd771f1d63f7507670609ba6ef543b066877c6f86de1", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b", + "sourceRevision": "stabilityai/stable-diffusion-xl-base-1.0@462165984030d82259a11f4367a4eed129e94a7b", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "Publisher model terms at https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b" + ], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "stabilityai/stable-diffusion-xl-base-1.0@462165984030d82259a11f4367a4eed129e94a7b https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "3968c7cbe37a94789a9f839d8e83a9e0f102629b797d5f7baacf0304a8d18153", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "sdxl_controlnet_glass_study_on_slate" + }, + { + "path": "template-gallery/reviews/sdxl_controlnet_glass_study_on_slate.quality-review.json", + "sha256": "sha256:bytes:3ad7e229aa4536d60a0337200d22d47e753f7770edbce0528a7dd89f3f7f0895", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b", + "sourceRevision": "stabilityai/stable-diffusion-xl-base-1.0@462165984030d82259a11f4367a4eed129e94a7b", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "Publisher model terms at https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b" + ], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "stabilityai/stable-diffusion-xl-base-1.0@462165984030d82259a11f4367a4eed129e94a7b https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "3968c7cbe37a94789a9f839d8e83a9e0f102629b797d5f7baacf0304a8d18153", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "sdxl_controlnet_glass_study_on_slate" + }, + { + "path": "template-gallery/reviews/sdxl_controlnet_glass_study_on_slate.retained-template-provenance.json", + "sha256": "sha256:bytes:564bd43c3c23f41f40e46ee762ad2a3c61e63ca7a5600f8af0fdf92b263856fe", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b", + "sourceRevision": "stabilityai/stable-diffusion-xl-base-1.0@462165984030d82259a11f4367a4eed129e94a7b", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "Publisher model terms at https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b" + ], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "stabilityai/stable-diffusion-xl-base-1.0@462165984030d82259a11f4367a4eed129e94a7b https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "3968c7cbe37a94789a9f839d8e83a9e0f102629b797d5f7baacf0304a8d18153", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "sdxl_controlnet_glass_study_on_slate" }, { "path": "template-gallery/reviews/sdxl_pix2pix_pale_amber_glass.original-provenance.json", @@ -17319,6 +18372,60 @@ "assetLicense": "MoDiff-Gallery-Restricted-1.0", "provenanceTemplateId": "sana_sprint_monochrome_tiger" }, + { + "path": "template-gallery/sd15_canny_guided_green_glass.webp", + "sha256": "sha256:bytes:d564a03d8e7b1a96083bd314b3700e828da2575b2b355cc574ebbcb17dd7a2d5", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Exact approved file captured from a saved MoDiff workflow", + "sourceUrl": "https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14", + "sourceRevision": "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14", + "sourceLicense": "Maintainer-authorized file with publisher terms retained", + "modelTerms": [ + "Publisher model terms at https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14" + ], + "aiGenerated": true, + "humanLikenessConsent": "synthetic", + "marks": [], + "requiredAttribution": [ + "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14 https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "3968c7cbe37a94789a9f839d8e83a9e0f102629b797d5f7baacf0304a8d18153", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "sd15_canny_guided_green_glass" + }, + { + "path": "template-gallery/sd15_pag_canny_guided_glass.webp", + "sha256": "sha256:bytes:3458a6d0acea5261f8f829121eabb8d1dc77a2f057e62d18485e34f097f1da6b", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Exact approved file captured from a saved MoDiff workflow", + "sourceUrl": "https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14", + "sourceRevision": "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14", + "sourceLicense": "Maintainer-authorized file with publisher terms retained", + "modelTerms": [ + "Publisher model terms at https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14" + ], + "aiGenerated": true, + "humanLikenessConsent": "synthetic", + "marks": [], + "requiredAttribution": [ + "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14 https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "3968c7cbe37a94789a9f839d8e83a9e0f102629b797d5f7baacf0304a8d18153", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "sd15_pag_canny_guided_glass" + }, { "path": "template-gallery/sd15_pag_cobalt_studio_repair.webp", "sha256": "sha256:bytes:eb511fda2b5d227685893fac25fd214c4b4a25ac7c1f61e0205983ac657f82de", @@ -17373,6 +18480,33 @@ "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", "provenanceTemplateId": "sd15_pag_mountain_lake_watercolor" }, + { + "path": "template-gallery/sdxl_canny_adapter_glass_study.webp", + "sha256": "sha256:bytes:a3cc3458190184277baebd012898e3eef8504570f6ce52a64228a78f68400eef", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Exact approved file captured from a saved MoDiff workflow", + "sourceUrl": "https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b", + "sourceRevision": "stabilityai/stable-diffusion-xl-base-1.0@462165984030d82259a11f4367a4eed129e94a7b", + "sourceLicense": "Maintainer-authorized file with publisher terms retained", + "modelTerms": [ + "Publisher model terms at https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b" + ], + "aiGenerated": true, + "humanLikenessConsent": "synthetic", + "marks": [], + "requiredAttribution": [ + "stabilityai/stable-diffusion-xl-base-1.0@462165984030d82259a11f4367a4eed129e94a7b https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "3968c7cbe37a94789a9f839d8e83a9e0f102629b797d5f7baacf0304a8d18153", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "sdxl_canny_adapter_glass_study" + }, { "path": "template-gallery/sdxl_clear_cobalt_backdrop.webp", "sha256": "sha256:bytes:98b57164602d8cfd6b61c689fa26770421f9dce8a7b9c23bc879a49d4def1004", @@ -17400,6 +18534,60 @@ "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped six saved cases with model terms retained.", "provenanceTemplateId": "sdxl_clear_cobalt_backdrop" }, + { + "path": "template-gallery/sdxl_control_inpaint_warm_plaster.webp", + "sha256": "sha256:bytes:843d44d49afe20f03301931466a5578f2924c089bf33a8e6121f4346c33780f4", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Exact approved file captured from a saved MoDiff workflow", + "sourceUrl": "https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b", + "sourceRevision": "stabilityai/stable-diffusion-xl-base-1.0@462165984030d82259a11f4367a4eed129e94a7b", + "sourceLicense": "Maintainer-authorized file with publisher terms retained", + "modelTerms": [ + "Publisher model terms at https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b" + ], + "aiGenerated": true, + "humanLikenessConsent": "synthetic", + "marks": [], + "requiredAttribution": [ + "stabilityai/stable-diffusion-xl-base-1.0@462165984030d82259a11f4367a4eed129e94a7b https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "3968c7cbe37a94789a9f839d8e83a9e0f102629b797d5f7baacf0304a8d18153", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "sdxl_control_inpaint_warm_plaster" + }, + { + "path": "template-gallery/sdxl_controlnet_glass_study_on_slate.webp", + "sha256": "sha256:bytes:a900fb44cec09e91eb4d6237dc5a81aa9dfa0a92deea9ccfa3c5f84b2c7dc4e5", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Exact approved file captured from a saved MoDiff workflow", + "sourceUrl": "https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b", + "sourceRevision": "stabilityai/stable-diffusion-xl-base-1.0@462165984030d82259a11f4367a4eed129e94a7b", + "sourceLicense": "Maintainer-authorized file with publisher terms retained", + "modelTerms": [ + "Publisher model terms at https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b" + ], + "aiGenerated": true, + "humanLikenessConsent": "synthetic", + "marks": [], + "requiredAttribution": [ + "stabilityai/stable-diffusion-xl-base-1.0@462165984030d82259a11f4367a4eed129e94a7b https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "3968c7cbe37a94789a9f839d8e83a9e0f102629b797d5f7baacf0304a8d18153", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "sdxl_controlnet_glass_study_on_slate" + }, { "path": "template-gallery/sdxl_pix2pix_pale_amber_glass.webp", "sha256": "sha256:bytes:a56a057711364a3b747c202652999f5fcde7ee1b91c0c7a2a92e6ca26c6c3dff", diff --git a/config/template-assets.v1.json b/config/template-assets.v1.json index 572d580b..a92543bb 100644 --- a/config/template-assets.v1.json +++ b/config/template-assets.v1.json @@ -1438,6 +1438,17 @@ "width": 1024, "height": 1024 }, + { + "path": "template-gallery/hunyuan_dit_green_glass_study.webp", + "size": 428092, + "sha256": "sha256:bytes:a8e7cfbff764d792497daf6a8239591e7f1963008946a8593721b931f2cfb41e", + "contentType": "image/webp", + "purposes": [ + "runtime" + ], + "width": 1024, + "height": 1024 + }, { "path": "template-gallery/hunyuan_pag_burgundy_knight.webp", "size": 274754, @@ -1681,6 +1692,17 @@ "width": 1024, "height": 1024 }, + { + "path": "template-gallery/inputs/hunyuan_dit_green_glass_study.before.png", + "size": 7281, + "sha256": "sha256:bytes:6bd07628a37c087178e9de58a98c6c5879468163f1a2376a581511a42503e2e2", + "contentType": "image/png", + "purposes": [ + "runtime" + ], + "width": 1024, + "height": 1024 + }, { "path": "template-gallery/inputs/lcm_dawn_alpine_lake.before.webp", "size": 164148, @@ -1791,6 +1813,17 @@ "width": 1024, "height": 1024 }, + { + "path": "template-gallery/inputs/qwen_control_winter_cabin_blue_hour.before.png", + "size": 8404, + "sha256": "sha256:bytes:ca250462efc77625134ebe305b2ee67281a1dcf8919e45299c648f0fdacf919a", + "contentType": "image/png", + "purposes": [ + "runtime" + ], + "width": 1024, + "height": 1024 + }, { "path": "template-gallery/inputs/qwen_edit_plus_single_image.before.webp", "size": 32852, @@ -1990,6 +2023,28 @@ "width": 1024, "height": 1024 }, + { + "path": "template-gallery/inputs/sd15_canny_guided_green_glass.before.png", + "size": 9470, + "sha256": "sha256:bytes:6d47a2f07006b98f9e5cfc8ee925914c4dbfa39fd38b0b61770be56d12ed04e8", + "contentType": "image/png", + "purposes": [ + "runtime" + ], + "width": 512, + "height": 512 + }, + { + "path": "template-gallery/inputs/sd15_pag_canny_guided_glass.before.png", + "size": 9470, + "sha256": "sha256:bytes:6d47a2f07006b98f9e5cfc8ee925914c4dbfa39fd38b0b61770be56d12ed04e8", + "contentType": "image/png", + "purposes": [ + "runtime" + ], + "width": 512, + "height": 512 + }, { "path": "template-gallery/inputs/sd15_pag_cobalt_studio_repair.before.png", "size": 271303, @@ -2023,6 +2078,17 @@ "width": 1024, "height": 1024 }, + { + "path": "template-gallery/inputs/sdxl_canny_adapter_glass_study.before.png", + "size": 7281, + "sha256": "sha256:bytes:6bd07628a37c087178e9de58a98c6c5879468163f1a2376a581511a42503e2e2", + "contentType": "image/png", + "purposes": [ + "runtime" + ], + "width": 1024, + "height": 1024 + }, { "path": "template-gallery/inputs/sdxl_clear_cobalt_backdrop.before.png", "size": 623267, @@ -2045,6 +2111,50 @@ "width": 1024, "height": 1024 }, + { + "path": "template-gallery/inputs/sdxl_control_inpaint_warm_plaster.before.png", + "size": 623267, + "sha256": "sha256:bytes:e75c20f0e8a74e283b996bf526e6ea74535ed24125ad97c2d92508d3435d7a87", + "contentType": "image/png", + "purposes": [ + "runtime" + ], + "width": 1024, + "height": 1024 + }, + { + "path": "template-gallery/inputs/sdxl_control_inpaint_warm_plaster.guide.png", + "size": 624887, + "sha256": "sha256:bytes:0a41a9c56b98945e60c96ef796660c35b2cab7bf0b36d5e84ab0d97ef97f0a5a", + "contentType": "image/png", + "purposes": [ + "runtime" + ], + "width": 1024, + "height": 1024 + }, + { + "path": "template-gallery/inputs/sdxl_control_inpaint_warm_plaster.mask.png", + "size": 1571, + "sha256": "sha256:bytes:1f48775f2826f84e0c5b55f16f3475bdc80ecad8b931d6b0279598610e9a828d", + "contentType": "image/png", + "purposes": [ + "runtime" + ], + "width": 1024, + "height": 1024 + }, + { + "path": "template-gallery/inputs/sdxl_controlnet_glass_study_on_slate.before.png", + "size": 7281, + "sha256": "sha256:bytes:6bd07628a37c087178e9de58a98c6c5879468163f1a2376a581511a42503e2e2", + "contentType": "image/png", + "purposes": [ + "runtime" + ], + "width": 1024, + "height": 1024 + }, { "path": "template-gallery/inputs/sdxl_pix2pix_pale_amber_glass.before.png", "size": 494048, @@ -2495,8 +2605,8 @@ }, { "path": "template-gallery/manifest.json", - "size": 329020, - "sha256": "sha256:bytes:ffa3e887c65d7eb2fe860611ac5eb042cd0645bcb2999b48552d6dd1d5a1eafa", + "size": 347462, + "sha256": "sha256:bytes:5270a2956e09da1470a48cad222156db9ed6951b21e14178a111fbaede1bb75f", "contentType": "application/json", "purposes": [ "runtime", @@ -2622,6 +2732,17 @@ "width": 768, "height": 768 }, + { + "path": "template-gallery/qwen_control_winter_cabin_blue_hour.webp", + "size": 398200, + "sha256": "sha256:bytes:d54f6087af42a8af4f676f49b7c25cfa93df29343ab5cb151d2dc95e5ecd2039", + "contentType": "image/webp", + "purposes": [ + "runtime" + ], + "width": 1024, + "height": 1024 + }, { "path": "template-gallery/qwen_edit_plus_single_image.webp", "size": 165018, @@ -4209,6 +4330,42 @@ "runtime" ] }, + { + "path": "template-gallery/reviews/hunyuan_dit_green_glass_study.original-provenance.json", + "size": 1236, + "sha256": "sha256:bytes:293d3b5128a5dec99d0371bc1402731b1264231127d73a9c85759048daee7bdb", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, + { + "path": "template-gallery/reviews/hunyuan_dit_green_glass_study.original-review.json", + "size": 652, + "sha256": "sha256:bytes:40f0a76223a6da7fd9be445ca991c684ca1efdd45ef86e695b1f27d493b3a1f0", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, + { + "path": "template-gallery/reviews/hunyuan_dit_green_glass_study.quality-review.json", + "size": 2476, + "sha256": "sha256:bytes:c0da5754ab4ed0b3106fc0ac394cc83d47ae24431669a6e50014dbe5ac2dbdc3", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, + { + "path": "template-gallery/reviews/hunyuan_dit_green_glass_study.retained-template-provenance.json", + "size": 3712, + "sha256": "sha256:bytes:db66437531e3bdeb92c4d409db6dcea15a834b1c2e5a05a4d93b5442db6568cc", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, { "path": "template-gallery/reviews/hunyuan_pag_burgundy_knight.original-provenance.json", "size": 1758, @@ -4947,6 +5104,42 @@ "runtime" ] }, + { + "path": "template-gallery/reviews/qwen_control_winter_cabin_blue_hour.original-provenance.json", + "size": 1192, + "sha256": "sha256:bytes:a58317e01fd2bffeb6a261279a595539d058304a8c5965c89e43ef6680273fc4", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, + { + "path": "template-gallery/reviews/qwen_control_winter_cabin_blue_hour.original-review.json", + "size": 704, + "sha256": "sha256:bytes:b01f4a91833a2f141f512cb5caee5eeff76481a829590260f823b500824bab24", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, + { + "path": "template-gallery/reviews/qwen_control_winter_cabin_blue_hour.quality-review.json", + "size": 2586, + "sha256": "sha256:bytes:b83d8bef8d87dbd5e4587904a947f82d9a2353224781b1581dae0684b86eab65", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, + { + "path": "template-gallery/reviews/qwen_control_winter_cabin_blue_hour.retained-template-provenance.json", + "size": 3679, + "sha256": "sha256:bytes:6c21a60f83581753a9e54647ce49a82c877f23a30ea2161be13e675e26eeb0db", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, { "path": "template-gallery/reviews/qwen_edit_plus_single_image.quality-review.json", "size": 3415, @@ -5415,6 +5608,78 @@ "runtime" ] }, + { + "path": "template-gallery/reviews/sd15_canny_guided_green_glass.original-provenance.json", + "size": 1208, + "sha256": "sha256:bytes:4819d64b35e84d822483b4edf58c0d2a82ca612989a5f283763eff90e1c3dcc4", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, + { + "path": "template-gallery/reviews/sd15_canny_guided_green_glass.original-review.json", + "size": 607, + "sha256": "sha256:bytes:702ca8e77651aeb71cddfb6daa67ca584309cc1639d3ad81cbe783e65c14ac14", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, + { + "path": "template-gallery/reviews/sd15_canny_guided_green_glass.quality-review.json", + "size": 2327, + "sha256": "sha256:bytes:6b4eb4c2e53322bd651c6da7802034a81a968a063f4d68099d18a47b798b6a2a", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, + { + "path": "template-gallery/reviews/sd15_canny_guided_green_glass.retained-template-provenance.json", + "size": 3662, + "sha256": "sha256:bytes:402d8a04c798edda4ccf43f0b2716520eb7b4e3e268b111ac029ce1ef95865bc", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, + { + "path": "template-gallery/reviews/sd15_pag_canny_guided_glass.original-provenance.json", + "size": 1257, + "sha256": "sha256:bytes:9c932db7355340ac4e8adf44b0d465192ee66096c6e811fd917ab7d0d6858881", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, + { + "path": "template-gallery/reviews/sd15_pag_canny_guided_glass.original-review.json", + "size": 663, + "sha256": "sha256:bytes:71b3e8d9324b3a359982cc2544d97acaa55ad8fd919bba1c9638e337c2029b64", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, + { + "path": "template-gallery/reviews/sd15_pag_canny_guided_glass.quality-review.json", + "size": 2346, + "sha256": "sha256:bytes:17e907b2f792b6f5d3a67cdb23e21cd610731baec7b7bd3914170fb801f4c807", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, + { + "path": "template-gallery/reviews/sd15_pag_canny_guided_glass.retained-template-provenance.json", + "size": 3708, + "sha256": "sha256:bytes:7f00b5906e8f7b8b9f25ab10145851637e469edfb455660c72f08be72bee8b7b", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, { "path": "template-gallery/reviews/sd15_pag_cobalt_studio_repair.original-provenance.json", "size": 1518, @@ -5487,6 +5752,42 @@ "runtime" ] }, + { + "path": "template-gallery/reviews/sdxl_canny_adapter_glass_study.original-provenance.json", + "size": 1220, + "sha256": "sha256:bytes:daf26190a849032e45d97c519a2d0a943ea9cab99937916d7f2f9b88b29a69a0", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, + { + "path": "template-gallery/reviews/sdxl_canny_adapter_glass_study.original-review.json", + "size": 684, + "sha256": "sha256:bytes:305618170534dc7808c62234e6bc2a428e49d6eb5ed766aabb4aad4cc48f6e07", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, + { + "path": "template-gallery/reviews/sdxl_canny_adapter_glass_study.quality-review.json", + "size": 2526, + "sha256": "sha256:bytes:f4766cc262cf8d06f5e643b7e4b11bf31ddb550de66b2274727948738550ab7b", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, + { + "path": "template-gallery/reviews/sdxl_canny_adapter_glass_study.retained-template-provenance.json", + "size": 3678, + "sha256": "sha256:bytes:3a6c1a9a6ce7a31c19275f7049b062f62739c7517e13e2ad5c512c805a5a68ef", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, { "path": "template-gallery/reviews/sdxl_clear_cobalt_backdrop.original-provenance.json", "size": 1214, @@ -5523,6 +5824,78 @@ "runtime" ] }, + { + "path": "template-gallery/reviews/sdxl_control_inpaint_warm_plaster.original-provenance.json", + "size": 1498, + "sha256": "sha256:bytes:661ddabb9dd317859660c6d6c56737672f0969c2637153b2aa3a14b1422cac0b", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, + { + "path": "template-gallery/reviews/sdxl_control_inpaint_warm_plaster.original-review.json", + "size": 570, + "sha256": "sha256:bytes:9ec0f8ff6cc645c9c9c9c9102965753af931061398629edb65727f99d2cb7faa", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, + { + "path": "template-gallery/reviews/sdxl_control_inpaint_warm_plaster.quality-review.json", + "size": 2463, + "sha256": "sha256:bytes:4e3e6d321e3c4b7b17ba5ff675c610bd6c0a86779bda8e1c2fa0b3c25754d15e", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, + { + "path": "template-gallery/reviews/sdxl_control_inpaint_warm_plaster.retained-template-provenance.json", + "size": 4261, + "sha256": "sha256:bytes:b55fbe6ba9d7b2243d12fe0227026b502eb8674412f4da62cc0ef72b57a91370", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, + { + "path": "template-gallery/reviews/sdxl_controlnet_glass_study_on_slate.original-provenance.json", + "size": 1214, + "sha256": "sha256:bytes:5eff28279014893ed1b626866eef574cb72798d376da8faef83766c89e3e8223", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, + { + "path": "template-gallery/reviews/sdxl_controlnet_glass_study_on_slate.original-review.json", + "size": 595, + "sha256": "sha256:bytes:42676c7dd7b9bd9c2062dd771f1d63f7507670609ba6ef543b066877c6f86de1", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, + { + "path": "template-gallery/reviews/sdxl_controlnet_glass_study_on_slate.quality-review.json", + "size": 2271, + "sha256": "sha256:bytes:3ad7e229aa4536d60a0337200d22d47e753f7770edbce0528a7dd89f3f7f0895", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, + { + "path": "template-gallery/reviews/sdxl_controlnet_glass_study_on_slate.retained-template-provenance.json", + "size": 3701, + "sha256": "sha256:bytes:564bd43c3c23f41f40e46ee762ad2a3c61e63ca7a5600f8af0fdf92b263856fe", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, { "path": "template-gallery/reviews/sdxl_pix2pix_pale_amber_glass.original-provenance.json", "size": 1287, @@ -6695,6 +7068,28 @@ "width": 1024, "height": 1024 }, + { + "path": "template-gallery/sd15_canny_guided_green_glass.webp", + "size": 53292, + "sha256": "sha256:bytes:d564a03d8e7b1a96083bd314b3700e828da2575b2b355cc574ebbcb17dd7a2d5", + "contentType": "image/webp", + "purposes": [ + "runtime" + ], + "width": 512, + "height": 512 + }, + { + "path": "template-gallery/sd15_pag_canny_guided_glass.webp", + "size": 80516, + "sha256": "sha256:bytes:3458a6d0acea5261f8f829121eabb8d1dc77a2f057e62d18485e34f097f1da6b", + "contentType": "image/webp", + "purposes": [ + "runtime" + ], + "width": 512, + "height": 512 + }, { "path": "template-gallery/sd15_pag_cobalt_studio_repair.webp", "size": 45174, @@ -6717,6 +7112,17 @@ "width": 1024, "height": 1024 }, + { + "path": "template-gallery/sdxl_canny_adapter_glass_study.webp", + "size": 140860, + "sha256": "sha256:bytes:a3cc3458190184277baebd012898e3eef8504570f6ce52a64228a78f68400eef", + "contentType": "image/webp", + "purposes": [ + "runtime" + ], + "width": 1024, + "height": 1024 + }, { "path": "template-gallery/sdxl_clear_cobalt_backdrop.webp", "size": 119828, @@ -6728,6 +7134,28 @@ "width": 1024, "height": 1024 }, + { + "path": "template-gallery/sdxl_control_inpaint_warm_plaster.webp", + "size": 119380, + "sha256": "sha256:bytes:843d44d49afe20f03301931466a5578f2924c089bf33a8e6121f4346c33780f4", + "contentType": "image/webp", + "purposes": [ + "runtime" + ], + "width": 1024, + "height": 1024 + }, + { + "path": "template-gallery/sdxl_controlnet_glass_study_on_slate.webp", + "size": 171678, + "sha256": "sha256:bytes:a900fb44cec09e91eb4d6237dc5a81aa9dfa0a92deea9ccfa3c5f84b2c7dc4e5", + "contentType": "image/webp", + "purposes": [ + "runtime" + ], + "width": 1024, + "height": 1024 + }, { "path": "template-gallery/sdxl_pix2pix_pale_amber_glass.webp", "size": 135420, @@ -7554,9 +7982,9 @@ "height": 640 } ], - "assetSetId": "sha256:canonical-json:a5449a1ff8625c700e811308f7c16caf8888d379889895381ee4934d485c2cd6", + "assetSetId": "sha256:canonical-json:42a99213cc747732b46d350cf1e908d2388ae363fdb0d6fb1200d084ca3971f2", "status": "ready", - "assetCount": 772, - "totalBytes": 1052427796, + "assetCount": 816, + "totalBytes": 1055193864, "missingAssets": [] } diff --git a/public/template-gallery/manifest.json b/public/template-gallery/manifest.json index d9dad361..bd4bbb10 100644 --- a/public/template-gallery/manifest.json +++ b/public/template-gallery/manifest.json @@ -4215,6 +4215,239 @@ "height": 640, "approvedOriginalReviewPath": "/template-gallery/reviews/zimage_golden_amber_glass.original-review.json", "approvedOriginalProvenancePath": "/template-gallery/reviews/zimage_golden_amber_glass.original-provenance.json" + }, + { + "templateId": "sdxl_control_inpaint_warm_plaster", + "templateLockHash": "tpl_ad048189", + "promptSettingsHash": "ps_a9571e3b", + "modelRevision": "stabilityai/stable-diffusion-xl-base-1.0@462165984030d82259a11f4367a4eed129e94a7b", + "runtimeFingerprint": "sha256:stable-runtime-v1:c2642af585975d6b55b551bcdfb8606edb2fab4b37a05875aa3a8024270b6eab", + "graphHash": "sha256:canonical-graph-v1:188e60e1e4b295563d9e227a6a5f4b6e856781519579dbe9bc830d6ded6b0807", + "proofLockHash": "sha256:retained-template-association-v1:5e1c56cefd48fd88ae1b398ef7949bd7002d79c2af6667606c653b0cb828b4a0", + "backendSourceFingerprint": "sha256:backend-source-v1:2faeaaa03b7902a03df5cd0cea38129b7419f6d844125c0ca7e29ccfaf635290", + "backendContractFingerprint": "sha256:backend-contract-v1:7271d6dfcd46a677217edf40c568c3f5e9ae300200f76976e0cf18fd9b9f2508", + "modelCommit": "462165984030d82259a11f4367a4eed129e94a7b", + "templateRevisionHash": "7d840698c480d52e5a864d50fcdbe6528680a9d0453e5dc501d76ac89c0991ef", + "provenancePath": "/template-gallery/reviews/sdxl_control_inpaint_warm_plaster.retained-template-provenance.json", + "provenanceHash": "sha256:canonical-json:9b70a358386df15083aee9ef803e88f3631c9a8548de65611ddb687a9d6a78dc", + "outputPath": "/template-gallery/sdxl_control_inpaint_warm_plaster.webp", + "thumbnailPath": "/template-gallery/sdxl_control_inpaint_warm_plaster.webp", + "mediaHash": "sha256:decoded-rgba:e73fb6bfcae102b88072ef31980ce64e2eeed0847a41c96d525d2056447c7be1", + "mediaType": "image", + "verificationTimestamp": "2026-11-25T00:04:32.014Z", + "verificationStatus": "reviewed", + "qualityReviewStatus": "approved_reviewed", + "qualityReviewHash": "sha256:canonical-json:81075d8e69c0ba4991fd938c1c317414d12a397e9fecb8f2a5c33c65ef50ce7e", + "qualityReviewPath": "/template-gallery/reviews/sdxl_control_inpaint_warm_plaster.quality-review.json", + "reviewer": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25T05:51:53.933Z", + "beforePath": "/template-gallery/inputs/sdxl_control_inpaint_warm_plaster.before.png", + "beforeMediaHash": "sha256:bytes:e75c20f0e8a74e283b996bf526e6ea74535ed24125ad97c2d92508d3435d7a87", + "afterPath": "/template-gallery/sdxl_control_inpaint_warm_plaster.webp", + "width": 1024, + "height": 1024, + "approvedOriginalReviewPath": "/template-gallery/reviews/sdxl_control_inpaint_warm_plaster.original-review.json", + "approvedOriginalProvenancePath": "/template-gallery/reviews/sdxl_control_inpaint_warm_plaster.original-provenance.json", + "approvedGuidePath": "/template-gallery/inputs/sdxl_control_inpaint_warm_plaster.guide.png", + "approvedMaskPath": "/template-gallery/inputs/sdxl_control_inpaint_warm_plaster.mask.png" + }, + { + "templateId": "sd15_canny_guided_green_glass", + "templateLockHash": "tpl_1ec33e6c", + "promptSettingsHash": "ps_2fb986e2", + "modelRevision": "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14", + "runtimeFingerprint": "sha256:stable-runtime-v1:bd1025f02831f13a9f263105243bc75fd051326e5bbd4fa133196f90b6edfb6d", + "graphHash": "sha256:canonical-graph-v1:b0e98f0bb1e20a8d46f1ac67a426e6b0a55fcd817c51b6f60a79d97ab92d6514", + "proofLockHash": "sha256:retained-template-association-v1:7a686b3000b03f0e84107d4da632846c0048d4c4cb15f1ea85d4812ae12baccb", + "backendSourceFingerprint": "sha256:backend-source-v1:e3aea8f8d102572ad10fdd0700f0c42d92061e864ede89777efcd6a3269770a8", + "backendContractFingerprint": "sha256:backend-contract-v1:ad16452bc59ad56fa75df0e9f2f3b913f28233c906d4e37c4518fbc978d47953", + "modelCommit": "451f4fe16113bff5a5d2269ed5ad43b0592e9a14", + "templateRevisionHash": "783d03619e47df52cf8b17262e42d07bdaacf9165314c26bce9dc3fc9478e55d", + "provenancePath": "/template-gallery/reviews/sd15_canny_guided_green_glass.retained-template-provenance.json", + "provenanceHash": "sha256:canonical-json:ae277eed9d332b5e1ee0d030e1b209db75aed2c8351738c85af6c0a194ddf09d", + "outputPath": "/template-gallery/sd15_canny_guided_green_glass.webp", + "thumbnailPath": "/template-gallery/sd15_canny_guided_green_glass.webp", + "mediaHash": "sha256:decoded-rgba:f7f9a1a64d4f1bd7a556c8033829f6e4c059e4410d5f1d821ba5556833b24091", + "mediaType": "image", + "verificationTimestamp": "2026-11-23T16:04:58.708Z", + "verificationStatus": "reviewed", + "qualityReviewStatus": "approved_reviewed", + "qualityReviewHash": "sha256:canonical-json:1e1ad8884d15359c921c35ee6e11e31309ccc250195a4b88fef234122d9efc3b", + "qualityReviewPath": "/template-gallery/reviews/sd15_canny_guided_green_glass.quality-review.json", + "reviewer": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25T05:51:53.933Z", + "beforePath": "/template-gallery/inputs/sd15_canny_guided_green_glass.before.png", + "beforeMediaHash": "sha256:bytes:6d47a2f07006b98f9e5cfc8ee925914c4dbfa39fd38b0b61770be56d12ed04e8", + "afterPath": "/template-gallery/sd15_canny_guided_green_glass.webp", + "width": 512, + "height": 512, + "approvedOriginalReviewPath": "/template-gallery/reviews/sd15_canny_guided_green_glass.original-review.json", + "approvedOriginalProvenancePath": "/template-gallery/reviews/sd15_canny_guided_green_glass.original-provenance.json" + }, + { + "templateId": "hunyuan_dit_green_glass_study", + "templateLockHash": "tpl_ad56a37f", + "promptSettingsHash": "ps_6990e9b6", + "modelRevision": "Tencent-Hunyuan/HunyuanDiT-v1.2-Diffusers-Distilled@ba991d1546d8c50936c4c16398ed0a87b9b99fb1", + "runtimeFingerprint": "sha256:stable-runtime-v1:0e62e64f80848060ae33b531002c0117801a950a466bb77b6a93e0902b71902e", + "graphHash": "sha256:canonical-graph-v1:20f676957f2cca0389d876c1b462e6b947e7d366154f125dd19c262027b9cbbb", + "proofLockHash": "sha256:retained-template-association-v1:9eb0b5c00dd7e04c82d675a6abbd3af47b5cf2e108071e5f55747c5950cef7f4", + "backendSourceFingerprint": "sha256:backend-source-v1:1aae04a8ad2e66aeb3eaacc065f2e111280bd8a64e7e6cb95cc927fed95d6b39", + "backendContractFingerprint": "sha256:backend-contract-v1:ad16452bc59ad56fa75df0e9f2f3b913f28233c906d4e37c4518fbc978d47953", + "modelCommit": "ba991d1546d8c50936c4c16398ed0a87b9b99fb1", + "templateRevisionHash": "a132dd6cd433bd0595f962173926edd930ea38cbf44d175d5499234f600d21f2", + "provenancePath": "/template-gallery/reviews/hunyuan_dit_green_glass_study.retained-template-provenance.json", + "provenanceHash": "sha256:canonical-json:a570dcd023997ecf6cd0f13327a835ef5f0eac1b23d8d7dcd16e055bde2d81d6", + "outputPath": "/template-gallery/hunyuan_dit_green_glass_study.webp", + "thumbnailPath": "/template-gallery/hunyuan_dit_green_glass_study.webp", + "mediaHash": "sha256:decoded-rgba:d6e68cd181fca6d24e221180fd9f0264dc0a2a13092b2fffb2c17a85ee8f7f71", + "mediaType": "image", + "verificationTimestamp": "2026-11-23T17:50:53.075Z", + "verificationStatus": "reviewed", + "qualityReviewStatus": "approved_reviewed", + "qualityReviewHash": "sha256:canonical-json:3f81ff350647db04f75e6de647d5520d7a3eeeeca73233b961db30aba3be3e3b", + "qualityReviewPath": "/template-gallery/reviews/hunyuan_dit_green_glass_study.quality-review.json", + "reviewer": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25T05:51:53.933Z", + "beforePath": "/template-gallery/inputs/hunyuan_dit_green_glass_study.before.png", + "beforeMediaHash": "sha256:bytes:6bd07628a37c087178e9de58a98c6c5879468163f1a2376a581511a42503e2e2", + "afterPath": "/template-gallery/hunyuan_dit_green_glass_study.webp", + "width": 1024, + "height": 1024, + "approvedOriginalReviewPath": "/template-gallery/reviews/hunyuan_dit_green_glass_study.original-review.json", + "approvedOriginalProvenancePath": "/template-gallery/reviews/hunyuan_dit_green_glass_study.original-provenance.json" + }, + { + "templateId": "qwen_control_winter_cabin_blue_hour", + "templateLockHash": "tpl_c38a2571", + "promptSettingsHash": "ps_508a465e", + "modelRevision": "Qwen/Qwen-Image-2512@25468b98e3276ca6700de15c6628e51b7de54a26", + "runtimeFingerprint": "sha256:stable-runtime-v1:4f5b990cf13ecbe3ef1949647650f781cae99bbea6d5e74465683c8a5a3d2d80", + "graphHash": "sha256:canonical-graph-v1:9f21216fd545a1b8d30b5bec044f217749bedecfc1f7377237b944abf9a7bb7d", + "proofLockHash": "sha256:retained-template-association-v1:08ac2c7535761cc145bcd94b6263ab81a35cda20d0727759006ae8b29ca46028", + "backendSourceFingerprint": "sha256:backend-source-v1:e3aea8f8d102572ad10fdd0700f0c42d92061e864ede89777efcd6a3269770a8", + "backendContractFingerprint": "sha256:backend-contract-v1:311f615e2b52ae3247c353b495df7708d560006e6909191e1e104b1e24b04587", + "modelCommit": "25468b98e3276ca6700de15c6628e51b7de54a26", + "templateRevisionHash": "eb65cb98a365c056f3a2a7bd5d44515bb16f518f7ec00797a496fe90a25ce07d", + "provenancePath": "/template-gallery/reviews/qwen_control_winter_cabin_blue_hour.retained-template-provenance.json", + "provenanceHash": "sha256:canonical-json:406513941cf63351105fe9dc510ba0dc21a54a2fa40e2b34e536a8e09145ef02", + "outputPath": "/template-gallery/qwen_control_winter_cabin_blue_hour.webp", + "thumbnailPath": "/template-gallery/qwen_control_winter_cabin_blue_hour.webp", + "mediaHash": "sha256:decoded-rgba:ceea23bd2b450591834a7b5be76af1ced1679f7848c982c636592ef78e63f8a0", + "mediaType": "image", + "verificationTimestamp": "2026-11-23T22:16:34.633Z", + "verificationStatus": "reviewed", + "qualityReviewStatus": "approved_reviewed", + "qualityReviewHash": "sha256:canonical-json:be6b954a2e19b39fff61842dba3927e7e8a797642e911faaee05d79d8b9660af", + "qualityReviewPath": "/template-gallery/reviews/qwen_control_winter_cabin_blue_hour.quality-review.json", + "reviewer": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25T05:51:53.933Z", + "beforePath": "/template-gallery/inputs/qwen_control_winter_cabin_blue_hour.before.png", + "beforeMediaHash": "sha256:bytes:ca250462efc77625134ebe305b2ee67281a1dcf8919e45299c648f0fdacf919a", + "afterPath": "/template-gallery/qwen_control_winter_cabin_blue_hour.webp", + "width": 1024, + "height": 1024, + "approvedOriginalReviewPath": "/template-gallery/reviews/qwen_control_winter_cabin_blue_hour.original-review.json", + "approvedOriginalProvenancePath": "/template-gallery/reviews/qwen_control_winter_cabin_blue_hour.original-provenance.json" + }, + { + "templateId": "sd15_pag_canny_guided_glass", + "templateLockHash": "tpl_dff4bb5e", + "promptSettingsHash": "ps_d149242b", + "modelRevision": "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14", + "runtimeFingerprint": "sha256:stable-runtime-v1:c2f61cbcfdd0e4a914c56edbd1ee5dc4755c0330d0a9a89dd385bca51ce52edf", + "graphHash": "sha256:canonical-graph-v1:cc03628ea649924bfeca24fd9e93c8aa47c28b4805a0b308fb4adeb9fbb5c0b2", + "proofLockHash": "sha256:retained-template-association-v1:876c2861b696ab82d4fb4cee53bd4a0986d3d1723a3574ae4b3cd79e1dced7cc", + "backendSourceFingerprint": "sha256:backend-source-v1:e3aea8f8d102572ad10fdd0700f0c42d92061e864ede89777efcd6a3269770a8", + "backendContractFingerprint": "sha256:backend-contract-v1:ad16452bc59ad56fa75df0e9f2f3b913f28233c906d4e37c4518fbc978d47953", + "modelCommit": "451f4fe16113bff5a5d2269ed5ad43b0592e9a14", + "templateRevisionHash": "23fc8dfe4150096c38d946116a9839a314a7581d52c9397e9d8e1ad42716624c", + "provenancePath": "/template-gallery/reviews/sd15_pag_canny_guided_glass.retained-template-provenance.json", + "provenanceHash": "sha256:canonical-json:d6d2ebb0a65c8d872aac5b766b7c926115c5bd48d022ec6c77bd4aabc4ea22bf", + "outputPath": "/template-gallery/sd15_pag_canny_guided_glass.webp", + "thumbnailPath": "/template-gallery/sd15_pag_canny_guided_glass.webp", + "mediaHash": "sha256:decoded-rgba:b30b191a17869884f6b50173c339fe8d01e9f0f98055afe16a22008856a19404", + "mediaType": "image", + "verificationTimestamp": "2026-11-23T16:06:50.173Z", + "verificationStatus": "reviewed", + "qualityReviewStatus": "approved_reviewed", + "qualityReviewHash": "sha256:canonical-json:b9b66570d64f750900b7104ec2c3ba0f1482f153325dfb36ef5202a27954bd32", + "qualityReviewPath": "/template-gallery/reviews/sd15_pag_canny_guided_glass.quality-review.json", + "reviewer": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25T05:51:53.933Z", + "beforePath": "/template-gallery/inputs/sd15_pag_canny_guided_glass.before.png", + "beforeMediaHash": "sha256:bytes:6d47a2f07006b98f9e5cfc8ee925914c4dbfa39fd38b0b61770be56d12ed04e8", + "afterPath": "/template-gallery/sd15_pag_canny_guided_glass.webp", + "width": 512, + "height": 512, + "approvedOriginalReviewPath": "/template-gallery/reviews/sd15_pag_canny_guided_glass.original-review.json", + "approvedOriginalProvenancePath": "/template-gallery/reviews/sd15_pag_canny_guided_glass.original-provenance.json" + }, + { + "templateId": "sdxl_controlnet_glass_study_on_slate", + "templateLockHash": "tpl_45e1f06a", + "promptSettingsHash": "ps_e42996a8", + "modelRevision": "stabilityai/stable-diffusion-xl-base-1.0@462165984030d82259a11f4367a4eed129e94a7b", + "runtimeFingerprint": "sha256:stable-runtime-v1:a945b1156373a4e8789a3fe285c2f1ba810c1bbacd3821cedd5b74200c656d77", + "graphHash": "sha256:canonical-graph-v1:cd4d26987f6eb195f91493d431e659db42ef4a531b29e26d7eedb08799769c16", + "proofLockHash": "sha256:retained-template-association-v1:719e7444749a4b2381b3b3a64d53548715418751fb3654e1bd25974beeb6c5ac", + "backendSourceFingerprint": "sha256:backend-source-v1:371fd754663a95b1b06900df9a838042048466464b4bd5cfa7033c1b6eebe0e3", + "backendContractFingerprint": "sha256:backend-contract-v1:ad16452bc59ad56fa75df0e9f2f3b913f28233c906d4e37c4518fbc978d47953", + "modelCommit": "462165984030d82259a11f4367a4eed129e94a7b", + "templateRevisionHash": "3075b68d97eea65616a9a8fe2519154041e24ced2cd916b395c4849d26c31b71", + "provenancePath": "/template-gallery/reviews/sdxl_controlnet_glass_study_on_slate.retained-template-provenance.json", + "provenanceHash": "sha256:canonical-json:3e808701efc1a97ad0069a3bf4d553ba92c6558adc59a2049c90808817d1c676", + "outputPath": "/template-gallery/sdxl_controlnet_glass_study_on_slate.webp", + "thumbnailPath": "/template-gallery/sdxl_controlnet_glass_study_on_slate.webp", + "mediaHash": "sha256:decoded-rgba:5d224cc9ac8943cdcc0b9666e4a896871c7a6e5b7ed4222fb5cf6bd0a2c81e86", + "mediaType": "image", + "verificationTimestamp": "2026-11-23T15:20:10.146Z", + "verificationStatus": "reviewed", + "qualityReviewStatus": "approved_reviewed", + "qualityReviewHash": "sha256:canonical-json:a571e7342086952b667754480728049ee756412b2339dfeb71fedc1d8a76c446", + "qualityReviewPath": "/template-gallery/reviews/sdxl_controlnet_glass_study_on_slate.quality-review.json", + "reviewer": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25T05:51:53.933Z", + "beforePath": "/template-gallery/inputs/sdxl_controlnet_glass_study_on_slate.before.png", + "beforeMediaHash": "sha256:bytes:6bd07628a37c087178e9de58a98c6c5879468163f1a2376a581511a42503e2e2", + "afterPath": "/template-gallery/sdxl_controlnet_glass_study_on_slate.webp", + "width": 1024, + "height": 1024, + "approvedOriginalReviewPath": "/template-gallery/reviews/sdxl_controlnet_glass_study_on_slate.original-review.json", + "approvedOriginalProvenancePath": "/template-gallery/reviews/sdxl_controlnet_glass_study_on_slate.original-provenance.json" + }, + { + "templateId": "sdxl_canny_adapter_glass_study", + "templateLockHash": "tpl_768c7bb4", + "promptSettingsHash": "ps_63d6342f", + "modelRevision": "stabilityai/stable-diffusion-xl-base-1.0@462165984030d82259a11f4367a4eed129e94a7b", + "runtimeFingerprint": "sha256:stable-runtime-v1:d35491fc9269528a91b826327a3cdbbd33824ffb96d9277e7b1f595a70c669d5", + "graphHash": "sha256:canonical-graph-v1:9012c51eebe966a595a2fc5b93f9645e23a2fd6cc194e28ae0218f87b2495565", + "proofLockHash": "sha256:retained-template-association-v1:fd92c79f7979fa6023fc8c51ed54dbc485138fbb654c28723173bc9d6975d99c", + "backendSourceFingerprint": "sha256:backend-source-v1:371fd754663a95b1b06900df9a838042048466464b4bd5cfa7033c1b6eebe0e3", + "backendContractFingerprint": "sha256:backend-contract-v1:ad16452bc59ad56fa75df0e9f2f3b913f28233c906d4e37c4518fbc978d47953", + "modelCommit": "462165984030d82259a11f4367a4eed129e94a7b", + "templateRevisionHash": "eef6570d0a2241aa0a9ff68b200c59591fc6497f43885fba151138ae56517968", + "provenancePath": "/template-gallery/reviews/sdxl_canny_adapter_glass_study.retained-template-provenance.json", + "provenanceHash": "sha256:canonical-json:ee74ff8962a5094b3d5029239edd5846a1f10a9396abd4a9c7dec003a6d4a2f8", + "outputPath": "/template-gallery/sdxl_canny_adapter_glass_study.webp", + "thumbnailPath": "/template-gallery/sdxl_canny_adapter_glass_study.webp", + "mediaHash": "sha256:decoded-rgba:ba751b7fc6550a54a7466675a7aeb17d1a47cc5d47756d3bb6076c8f4ad60c09", + "mediaType": "image", + "verificationTimestamp": "2026-11-23T14:45:54.554Z", + "verificationStatus": "reviewed", + "qualityReviewStatus": "approved_reviewed", + "qualityReviewHash": "sha256:canonical-json:e4d495991ff5ec680b46fe1a10e40dd31cd717a91f1ac832cf2f15f881e2da1f", + "qualityReviewPath": "/template-gallery/reviews/sdxl_canny_adapter_glass_study.quality-review.json", + "reviewer": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25T05:51:53.933Z", + "beforePath": "/template-gallery/inputs/sdxl_canny_adapter_glass_study.before.png", + "beforeMediaHash": "sha256:bytes:6bd07628a37c087178e9de58a98c6c5879468163f1a2376a581511a42503e2e2", + "afterPath": "/template-gallery/sdxl_canny_adapter_glass_study.webp", + "width": 1024, + "height": 1024, + "approvedOriginalReviewPath": "/template-gallery/reviews/sdxl_canny_adapter_glass_study.original-review.json", + "approvedOriginalProvenancePath": "/template-gallery/reviews/sdxl_canny_adapter_glass_study.original-provenance.json" } ] } diff --git a/scripts/retained-gallery-provenance.mjs b/scripts/retained-gallery-provenance.mjs index 6a720b08..3ca22803 100644 --- a/scripts/retained-gallery-provenance.mjs +++ b/scripts/retained-gallery-provenance.mjs @@ -150,7 +150,9 @@ export function validateRetainedGalleryProvenance(bundle, entry, { templateRevis } const association = bundle.association; const { output, observedExecution } = association; - const [model] = observedExecution.modelSet; + const models = observedExecution.modelSet; + const model = pins.primaryModelRepo ? models.find(({ repoId }) => repoId === pins.primaryModelRepo) : models[0]; + if (!model) return ['retained Gallery primary model is missing from the approved execution']; const base = '/template-gallery/'; const stem = entry.templateId; const outputPath = base + stem + '.' + pins.outputExtension; diff --git a/scripts/retained-gallery-release.mjs b/scripts/retained-gallery-release.mjs index dc4e1ccd..12dee7e2 100644 --- a/scripts/retained-gallery-release.mjs +++ b/scripts/retained-gallery-release.mjs @@ -67,6 +67,7 @@ function assertRetainedBatchEvidence({ association.output.inputEncodedSha256?.replace(/^sha256:bytes:/u, '') ?? association.privateSourceSha256; assert.equal(inputHash, recipe.inputSha256); assert.equal(association.approvedFiles.approvedMaskPath?.sha256, recipe.maskSha256); + assert.equal(association.approvedFiles.approvedGuidePath?.sha256, recipe.guideSha256); assert.equal( association.output.maskEncodedSha256, recipe.maskSha256 ? 'sha256:bytes:' + recipe.maskSha256 : undefined, @@ -106,6 +107,7 @@ function assertRetainedBatchEvidence({ assert.equal(nativeReceipt.promptBinding.sha256, recipe.promptSha256, label); assert.equal(nativeReceipt.inputBinding?.sha256, recipe.inputSha256, label); assert.equal(nativeReceipt.maskBinding?.sha256, recipe.maskSha256, label); + assert.equal(nativeReceipt.guideBinding?.sha256, recipe.guideSha256, label); if (association.output.mediaType === 'image') { assert.equal(nativeReceipt.decodedOutput.hash, association.output.decodedMediaHash, label); } diff --git a/scripts/retained-gallery-templates.test.mjs b/scripts/retained-gallery-templates.test.mjs index f9ecd0b7..ceaa33b3 100644 --- a/scripts/retained-gallery-templates.test.mjs +++ b/scripts/retained-gallery-templates.test.mjs @@ -181,8 +181,10 @@ test('retained Gallery recipes preserve the native graph identities and standalo }); assert.equal(canonicalGraphIdentity(api).hash, recipe.retainedGraphHash, template.id); assert.deepEqual( - capture.inputs.map(({ file }) => file.sha256), - [recipe.inputSha256, recipe.maskSha256].filter(Boolean), + Object.values(capture.inputs) + .map(({ file }) => file.sha256) + .sort(), + [recipe.inputSha256, recipe.maskSha256, recipe.guideSha256].filter(Boolean).sort(), ); } } else if (recipe.inputLocatorSha256) { @@ -238,7 +240,17 @@ test('fresh Expert recipes prepare with current backend specs and without a gene flow.getState().setParam(payload.node, 'pipeline', { direction: 'output', value: contract }, 'signal'); } else { assert.equal(payload.fn, 'update_image_contract'); - assert.ok(['PredictMap', 'Edit', 'Generate', 'Inpaint', 'UnconditionalGenerate'].includes(payload.action)); + assert.ok( + [ + 'PredictMap', + 'Edit', + 'Generate', + 'Inpaint', + 'ControlGenerate', + 'ControlInpaint', + 'UnconditionalGenerate', + ].includes(payload.action), + ); assert.deepEqual(payload.values.image_contract, contract); } return Response.json({ error: false, nodes: [] }); @@ -255,16 +267,22 @@ test('fresh Expert recipes prepare with current backend specs and without a gene contract = imageContract; const inputBinding = template.inputBindings?.[0]; const audio = inputBinding?.mediaType === 'audio'; - const input = recipe.inputSha256 - ? [recipe.inputFileName ?? (audio ? authorsAudioFixture : 'review-source-image.png')] - : []; + const guide = template.inputBindings?.some(({ field }) => field === 'controlImage') + ? 'review-control-image.png' + : undefined; + const input = + recipe.inputSha256 && inputBinding?.field !== 'controlImage' + ? [recipe.inputFileName ?? (audio ? authorsAudioFixture : 'review-source-image.png')] + : []; const mask = recipe.maskSha256 ? 'review-mask-image.png' : undefined; const tabId = studio.getState().createWorkflowTab(template.label, undefined, 'template', template.id); studio .getState() .applyTemplate( template, - audio ? { sourceAudio: input[0] } : { referenceImages: input, ...(mask && { maskImage: mask }) }, + audio + ? { sourceAudio: input[0] } + : { referenceImages: input, ...(mask && { maskImage: mask }), ...(guide && { controlImage: guide }) }, ); const form = studio.getState().form; assert.equal(form.device, template.example.lockedSettings.device ?? 'cuda:0'); @@ -316,6 +334,8 @@ test('fresh Expert recipes prepare with current backend specs and without a gene 'Generate', 'Edit', 'Inpaint', + 'ControlGenerate', + 'ControlInpaint', 'GenerateAnyToAny', 'GenerateImageVideoText', 'UnconditionalGenerate', @@ -342,9 +362,13 @@ test('fresh Expert recipes prepare with current backend specs and without a gene assert.equal(loader.params.quantization_mode.value, 'none'); } const sources = actions.filter(({ module, action }) => module === 'modules.Image' && action === 'Load'); - assert.equal(sources.length, input.length + Number(Boolean(mask))); + assert.equal(sources.length, input.length + Number(Boolean(mask)) + Number(Boolean(guide))); if (input.length) assert.ok(sources.some(({ params }) => params.file.value?.includes(input[0]))); if (mask) assert.ok(sources.some(({ params }) => params.file.value?.includes(mask))); + if (guide) { + assert.ok(sources.some(({ params }) => params.file.value?.includes(guide))); + assert.equal(generation.params.conditioning_scale.value, locked.conditioningScale); + } continue; } if (audio) { diff --git a/src/studio/retainedGalleryApprovedBatch.ts b/src/studio/retainedGalleryApprovedBatch.ts index 3470509a..321d5a52 100644 --- a/src/studio/retainedGalleryApprovedBatch.ts +++ b/src/studio/retainedGalleryApprovedBatch.ts @@ -3106,4 +3106,744 @@ export const APPROVED_RETAINED_BATCH: RetainedGalleryRecipe[] = [ runtimeReuseKey: 'sha256:canonical-graph-v1:09397eba135ea69f8c88d29c6eb65297ece35dc10e039c9c5573165503f8488f', }, }, + { + workflowId: 'StableDiffusionXLControlNetPipeline:control_inpaint', + sourceTaskTemplateId: 'task-template:sdxl-controlnet-canny:control-inpaint:v1', + retainedGraphHash: 'sha256:canonical-graph-v1:188e60e1e4b295563d9e227a6a5f4b6e856781519579dbe9bc830d6ded6b0807', + originalReceiptSha256: 'ccf8f19d4018fd24d47fa5001209e36f9cec3a36a56e539f87759a99a7ac5fab', + reviewedTemplateSha256: '7d840698c480d52e5a864d50fcdbe6528680a9d0453e5dc501d76ac89c0991ef', + reviewedCatalogLock: { + templateLockHash: 'tpl_0ee86d25', + galleryTemplateLockHash: 'tpl_ad048189', + promptSettingsHash: 'ps_a9571e3b', + }, + promptSha256: 'b12a7fc59f32e9bbc795791ac45875649f91220fa32b3f3b74953e5ccc92d30d', + inputSha256: 'e75c20f0e8a74e283b996bf526e6ea74535ed24125ad97c2d92508d3435d7a87', + inputLocatorSha256: '69ba088466bbd714eba0a70d1dc24984230ca1ac74b00ac0ff1bbcb29675799d', + maskSha256: '1f48775f2826f84e0c5b55f16f3475bdc80ecad8b931d6b0279598610e9a828d', + guideSha256: '0a41a9c56b98945e60c96ef796660c35b2cab7bf0b36d5e84ab0d97ef97f0a5a', + template: { + id: 'sdxl_control_inpaint_warm_plaster', + label: 'Stable Diffusion XL ControlNet — Control inpaint: Cobalt on Warm Plaster', + mode: 'control_inpaint', + modelType: 'StableDiffusionXLControlNetPipeline', + intentGroup: 'edit_image', + category: 'inpaint', + inputBindings: [ + { + id: 'source-image', + label: 'Source Image', + mediaType: 'image', + field: 'referenceImages', + origin: 'user', + requiredAt: 'workflow_start', + count: 1, + }, + { + id: 'mask-image', + label: 'Mask Image', + mediaType: 'image', + field: 'maskImage', + origin: 'user', + requiredAt: 'workflow_start', + count: 1, + }, + { + id: 'control-guide', + label: 'Control Image', + mediaType: 'image', + field: 'controlImage', + origin: 'user', + requiredAt: 'workflow_start', + count: 1, + }, + ], + outputKinds: ['image'], + readinessPolicy: 'requires_input', + modelArtifact: { + source: 'hub', + value: 'stabilityai/stable-diffusion-xl-base-1.0', + revision: '462165984030d82259a11f4367a4eed129e94a7b', + }, + description: + 'Reproduce the reviewed Cobalt on Warm Plaster example with the saved prompt, settings and model revision.', + prompt: + 'Retouch only the masked wall behind this cobalt-blue glass block. Replace the damaged plaster inside the mask with a continuous warm ivory plaster finish, lit by the same soft daylight. Preserve the glass cube, sharp corners, blue reflections, pale stone slab, camera framing and existing cast shadow. Subtle plaster texture and natural color, a clean quiet product studio scene.', + negativePrompt: '', + example: { + mediaType: 'image', + status: 'unverified', + modelRevision: '462165984030d82259a11f4367a4eed129e94a7b', + lockedSeed: 42, + lockedSettings: { + width: 1024, + height: 1024, + steps: 50, + guidanceScale: 5, + strength: 0.8, + outputType: 'pil', + maxSequenceLength: 512, + conditioningScale: 0.5, + pagScale: 3, + pagAdaptiveScale: 0, + dtype: 'float16', + resourceMode: 'expert', + quantizationMode: 'none', + autoOffload: true, + offloadMode: 'model_cpu', + }, + expectedOutput: { + width: 1024, + height: 1024, + }, + runtimeEstimate: '29.45 seconds in the saved run', + }, + requiredBackendCapabilities: [ + 'modules.ImageFilters.Canny', + 'modules.DiffusersImage.ControlInpaint', + 'modules.DiffusersImage.LoadPipeline', + 'modules.DiffusersRuntime.PipelineQuantizationConfigV2', + 'modules.DiffusersRuntime.DiffusersExecutionRecipe', + 'modules.Image.Load', + 'modules.Image.Preview', + ], + mediaSlots: [ + { + id: 'before', + label: 'Source image', + kind: 'comparison_before', + role: 'before', + placeholder: 'Source pending', + }, + { + id: 'after', + label: 'Generated image', + kind: 'comparison_after', + role: 'after', + placeholder: 'Preview pending', + }, + ], + thumbnailVariant: 'compareSlider', + recipeSummary: + 'Reproduce the reviewed Cobalt on Warm Plaster example with the saved prompt, settings and model revision.', + runtimeReuseKey: 'sha256:canonical-graph-v1:188e60e1e4b295563d9e227a6a5f4b6e856781519579dbe9bc830d6ded6b0807', + }, + }, + { + workflowId: 'StableDiffusionPipeline:control_image', + sourceTaskTemplateId: 'task-template:sd15-controlnet-canny:control-image:v1', + retainedGraphHash: 'sha256:canonical-graph-v1:b0e98f0bb1e20a8d46f1ac67a426e6b0a55fcd817c51b6f60a79d97ab92d6514', + originalReceiptSha256: '4947a5a7b0a87481e1795185f91486717d6950c0f0f3ae79fc979c46c55ad443', + reviewedTemplateSha256: '783d03619e47df52cf8b17262e42d07bdaacf9165314c26bce9dc3fc9478e55d', + reviewedCatalogLock: { + templateLockHash: 'tpl_f24bec27', + galleryTemplateLockHash: 'tpl_1ec33e6c', + promptSettingsHash: 'ps_2fb986e2', + }, + promptSha256: '26d98191ed235643dc50604bcc3065c35b47e26601b929c86bd3383cab884e69', + inputSha256: '6d47a2f07006b98f9e5cfc8ee925914c4dbfa39fd38b0b61770be56d12ed04e8', + inputLocatorSha256: '36f9c290c26da075d212f483d4abbc2aba1520b60c5d135f823768f4966c286c', + template: { + id: 'sd15_canny_guided_green_glass', + label: 'Stable Diffusion 1.5 — Control image: Canny-Guided Green Glass', + mode: 'control_image', + modelType: 'StableDiffusionPipeline', + intentGroup: 'generate_image', + category: 'control', + inputBindings: [ + { + id: 'control-guide', + label: 'Control Image', + mediaType: 'image', + field: 'controlImage', + origin: 'user', + requiredAt: 'workflow_start', + count: 1, + }, + ], + outputKinds: ['image'], + readinessPolicy: 'requires_input', + modelArtifact: { + source: 'hub', + value: 'stable-diffusion-v1-5/stable-diffusion-v1-5', + revision: '451f4fe16113bff5a5d2269ed5ad43b0592e9a14', + }, + description: + 'Reproduce the reviewed Canny-Guided Green Glass example with the saved prompt, settings and model revision.', + prompt: + 'One translucent green glass cube, a pale slate surface and light beige wall. Sharp silhouette with three planes, simple studio photo, soft left light.', + negativePrompt: '', + example: { + mediaType: 'image', + status: 'unverified', + modelRevision: '451f4fe16113bff5a5d2269ed5ad43b0592e9a14', + lockedSeed: 42, + lockedSettings: { + width: 512, + height: 512, + steps: 30, + guidanceScale: 7.5, + strength: 0.8, + outputType: 'pil', + maxSequenceLength: 512, + conditioningScale: 1, + pagScale: 3, + pagAdaptiveScale: 0, + dtype: 'float32', + resourceMode: 'expert', + quantizationMode: 'none', + autoOffload: false, + offloadMode: 'none', + }, + expectedOutput: { + width: 512, + height: 512, + }, + runtimeEstimate: '24.84 seconds in the saved run', + }, + requiredBackendCapabilities: [ + 'modules.ImageFilters.Canny', + 'modules.DiffusersImage.ControlGenerate', + 'modules.DiffusersImage.LoadPipeline', + 'modules.DiffusersRuntime.PipelineQuantizationConfigV2', + 'modules.DiffusersRuntime.DiffusersExecutionRecipe', + 'modules.Image.Load', + 'modules.Image.Preview', + ], + mediaSlots: [ + { + id: 'before', + label: 'Control guide', + kind: 'comparison_before', + role: 'before', + placeholder: 'Source pending', + }, + { + id: 'after', + label: 'Generated image', + kind: 'comparison_after', + role: 'after', + placeholder: 'Preview pending', + }, + ], + thumbnailVariant: 'compareSlider', + recipeSummary: + 'Reproduce the reviewed Canny-Guided Green Glass example with the saved prompt, settings and model revision.', + runtimeReuseKey: 'sha256:canonical-graph-v1:b0e98f0bb1e20a8d46f1ac67a426e6b0a55fcd817c51b6f60a79d97ab92d6514', + }, + }, + { + workflowId: 'HunyuanDiTControlNetPipeline:control_image', + sourceTaskTemplateId: 'task-template:hunyuan-dit-v1-2-controlnet-canny:control-image:v1', + retainedGraphHash: 'sha256:canonical-graph-v1:20f676957f2cca0389d876c1b462e6b947e7d366154f125dd19c262027b9cbbb', + originalReceiptSha256: '88ca5ccb6b4500e438bd84d42321a2cb61d0f7322e5c3bdaa8343735b8f08648', + reviewedTemplateSha256: 'a132dd6cd433bd0595f962173926edd930ea38cbf44d175d5499234f600d21f2', + reviewedCatalogLock: { + templateLockHash: 'tpl_ce472b92', + galleryTemplateLockHash: 'tpl_ad56a37f', + promptSettingsHash: 'ps_6990e9b6', + }, + promptSha256: '15c242632d932ffb74e7c107f2610ce42d94aa7480ee711aa26ef66ff4610dc0', + inputSha256: '6bd07628a37c087178e9de58a98c6c5879468163f1a2376a581511a42503e2e2', + inputLocatorSha256: '59660f6454720ae76fa64a1baf2fad2e551e349070cea802c6614fc9864c86dc', + template: { + id: 'hunyuan_dit_green_glass_study', + label: 'Hunyuan-DiT Canny — Control image: Green Glass Study', + mode: 'control_image', + modelType: 'HunyuanDiTControlNetPipeline', + intentGroup: 'generate_image', + category: 'control', + inputBindings: [ + { + id: 'control-guide', + label: 'Control Image', + mediaType: 'image', + field: 'controlImage', + origin: 'user', + requiredAt: 'workflow_start', + count: 1, + }, + ], + outputKinds: ['image'], + readinessPolicy: 'requires_input', + modelArtifact: { + source: 'hub', + value: 'Tencent-Hunyuan/HunyuanDiT-v1.2-Diffusers-Distilled', + revision: 'ba991d1546d8c50936c4c16398ed0a87b9b99fb1', + }, + description: + 'Reproduce the reviewed Green Glass Study example with the saved prompt, settings and model revision.', + prompt: + 'One deep emerald green solid glass cube on a pale stone plinth, with three flat planes, straight corners and soft right window light. A quiet studio product photograph.', + negativePrompt: '', + example: { + mediaType: 'image', + status: 'unverified', + modelRevision: 'ba991d1546d8c50936c4c16398ed0a87b9b99fb1', + lockedSeed: 42, + lockedSettings: { + width: 1024, + height: 1024, + steps: 50, + guidanceScale: 6, + strength: 0.8, + outputType: 'pil', + maxSequenceLength: 256, + conditioningScale: 1, + pagScale: 3, + pagAdaptiveScale: 0, + dtype: 'float16', + resourceMode: 'expert', + quantizationMode: 'none', + autoOffload: true, + offloadMode: 'model_cpu', + }, + expectedOutput: { + width: 1024, + height: 1024, + }, + runtimeEstimate: '242.88 seconds in the saved run', + }, + requiredBackendCapabilities: [ + 'modules.ImageFilters.Canny', + 'modules.DiffusersImage.ControlGenerate', + 'modules.DiffusersImage.LoadPipeline', + 'modules.DiffusersRuntime.PipelineQuantizationConfigV2', + 'modules.DiffusersRuntime.DiffusersExecutionRecipe', + 'modules.Image.Load', + 'modules.Image.Preview', + ], + mediaSlots: [ + { + id: 'before', + label: 'Control guide', + kind: 'comparison_before', + role: 'before', + placeholder: 'Source pending', + }, + { + id: 'after', + label: 'Generated image', + kind: 'comparison_after', + role: 'after', + placeholder: 'Preview pending', + }, + ], + thumbnailVariant: 'compareSlider', + recipeSummary: + 'Reproduce the reviewed Green Glass Study example with the saved prompt, settings and model revision.', + runtimeReuseKey: 'sha256:canonical-graph-v1:20f676957f2cca0389d876c1b462e6b947e7d366154f125dd19c262027b9cbbb', + }, + }, + { + workflowId: 'QwenImageControlNetPipeline:control_image', + sourceTaskTemplateId: 'task-template:qwen-image-controlnet-direct:control-image:v1', + retainedGraphHash: 'sha256:canonical-graph-v1:9f21216fd545a1b8d30b5bec044f217749bedecfc1f7377237b944abf9a7bb7d', + originalReceiptSha256: 'e9d03118cfe3e55fb78b42dec749d367bf72d6676aae59e70fd1b3be19ade4c0', + reviewedTemplateSha256: 'eb65cb98a365c056f3a2a7bd5d44515bb16f518f7ec00797a496fe90a25ce07d', + reviewedCatalogLock: { + templateLockHash: 'tpl_301009d7', + galleryTemplateLockHash: 'tpl_c38a2571', + promptSettingsHash: 'ps_508a465e', + }, + promptSha256: '5728c894889366a9648c6b78109b8ebaa608fdd22f0bb7a470849b7353a9bcc6', + inputSha256: 'ca250462efc77625134ebe305b2ee67281a1dcf8919e45299c648f0fdacf919a', + inputLocatorSha256: '5c41a25a1747974eb20ae701984d2e13c2979cd0069944f7ef21429677d4c046', + template: { + id: 'qwen_control_winter_cabin_blue_hour', + label: 'Qwen Image ControlNet (Standard Diffusers) — Control image: Winter Cabin in Blue Hour', + mode: 'control_image', + modelType: 'QwenImageControlNetPipeline', + intentGroup: 'generate_image', + category: 'control', + inputBindings: [ + { + id: 'control-guide', + label: 'Control Image', + mediaType: 'image', + field: 'controlImage', + origin: 'user', + requiredAt: 'workflow_start', + count: 1, + }, + ], + outputKinds: ['image'], + readinessPolicy: 'requires_input', + modelArtifact: { + source: 'hub', + value: 'Qwen/Qwen-Image-2512', + revision: '25468b98e3276ca6700de15c6628e51b7de54a26', + }, + description: + 'Reproduce the reviewed Winter Cabin in Blue Hour example with the saved prompt, settings and model revision.', + prompt: + 'Straight-on architectural photograph of one dark blue painted wooden cabin at the edge of a snowy spruce forest just after sunset. Follow the silhouette and openings of the guide precisely: one steep gabled roof, one square four-pane window on the left, and one single front door on the right. Bright warm amber light shines from behind all four panes, with a subtle gold reflection on the snow directly below the window. Keep the door solid dark timber. Crisp frosted pine branches, natural snow texture, soft blue twilight and a calm coherent single facade.', + negativePrompt: '', + example: { + mediaType: 'image', + status: 'unverified', + modelRevision: '25468b98e3276ca6700de15c6628e51b7de54a26', + lockedSeed: 42, + lockedSettings: { + width: 1024, + height: 1024, + steps: 50, + guidanceScale: 4.5, + strength: 0.8, + outputType: 'pil', + maxSequenceLength: 512, + conditioningScale: 1, + pagScale: 3, + pagAdaptiveScale: 0, + dtype: 'bfloat16', + resourceMode: 'expert', + quantizationMode: 'none', + autoOffload: true, + offloadMode: 'model_cpu', + }, + expectedOutput: { + width: 1024, + height: 1024, + }, + runtimeEstimate: '422.65 seconds in the saved run', + }, + requiredBackendCapabilities: [ + 'modules.DiffusersImage.ControlGenerate', + 'modules.DiffusersImage.LoadPipeline', + 'modules.DiffusersRuntime.PipelineQuantizationConfigV2', + 'modules.DiffusersRuntime.DiffusersExecutionRecipe', + 'modules.Image.Load', + 'modules.Image.Preview', + ], + mediaSlots: [ + { + id: 'before', + label: 'Control guide', + kind: 'comparison_before', + role: 'before', + placeholder: 'Source pending', + }, + { + id: 'after', + label: 'Generated image', + kind: 'comparison_after', + role: 'after', + placeholder: 'Preview pending', + }, + ], + thumbnailVariant: 'compareSlider', + recipeSummary: + 'Reproduce the reviewed Winter Cabin in Blue Hour example with the saved prompt, settings and model revision.', + runtimeReuseKey: 'sha256:canonical-graph-v1:9f21216fd545a1b8d30b5bec044f217749bedecfc1f7377237b944abf9a7bb7d', + }, + }, + { + workflowId: 'StableDiffusionPAGPipeline:control_image', + sourceTaskTemplateId: 'task-template:sd15-pag-controlnet-canny:control-image:v1', + retainedGraphHash: 'sha256:canonical-graph-v1:cc03628ea649924bfeca24fd9e93c8aa47c28b4805a0b308fb4adeb9fbb5c0b2', + originalReceiptSha256: '9bb9602d6c79fd442b5f197809ed32dd1651524f4f5d730c28e1971c7325fc1d', + reviewedTemplateSha256: '23fc8dfe4150096c38d946116a9839a314a7581d52c9397e9d8e1ad42716624c', + reviewedCatalogLock: { + templateLockHash: 'tpl_0a0b30c1', + galleryTemplateLockHash: 'tpl_dff4bb5e', + promptSettingsHash: 'ps_d149242b', + }, + promptSha256: '3195f7028bc2fc48271a962d96f24cfd11cd9d8dc44032a2163ea62a511f8140', + inputSha256: '6d47a2f07006b98f9e5cfc8ee925914c4dbfa39fd38b0b61770be56d12ed04e8', + inputLocatorSha256: '36f9c290c26da075d212f483d4abbc2aba1520b60c5d135f823768f4966c286c', + template: { + id: 'sd15_pag_canny_guided_glass', + label: 'Stable Diffusion 1.5 PAG — Control image: Canny-Guided Glass with PAG', + mode: 'control_image', + modelType: 'StableDiffusionPAGPipeline', + intentGroup: 'generate_image', + category: 'control', + inputBindings: [ + { + id: 'control-guide', + label: 'Control Image', + mediaType: 'image', + field: 'controlImage', + origin: 'user', + requiredAt: 'workflow_start', + count: 1, + }, + ], + outputKinds: ['image'], + readinessPolicy: 'requires_input', + modelArtifact: { + source: 'hub', + value: 'stable-diffusion-v1-5/stable-diffusion-v1-5', + revision: '451f4fe16113bff5a5d2269ed5ad43b0592e9a14', + }, + description: + 'Reproduce the reviewed Canny-Guided Glass with PAG example with the saved prompt, settings and model revision.', + prompt: + 'A single amber glass cube on pale limestone, neutral gray studio background, clean three-quarter view, realistic specular reflections and crisp edges.', + negativePrompt: '', + example: { + mediaType: 'image', + status: 'unverified', + modelRevision: '451f4fe16113bff5a5d2269ed5ad43b0592e9a14', + lockedSeed: 42, + lockedSettings: { + width: 512, + height: 512, + steps: 30, + guidanceScale: 7.5, + strength: 0.8, + outputType: 'pil', + maxSequenceLength: 512, + conditioningScale: 1, + pagScale: 3, + pagAdaptiveScale: 0, + dtype: 'float32', + resourceMode: 'expert', + quantizationMode: 'none', + autoOffload: false, + offloadMode: 'none', + }, + expectedOutput: { + width: 512, + height: 512, + }, + runtimeEstimate: '87.39 seconds in the saved run', + }, + requiredBackendCapabilities: [ + 'modules.ImageFilters.Canny', + 'modules.DiffusersImage.ControlGenerate', + 'modules.DiffusersImage.LoadPipeline', + 'modules.DiffusersRuntime.PipelineQuantizationConfigV2', + 'modules.DiffusersRuntime.DiffusersExecutionRecipe', + 'modules.Image.Load', + 'modules.Image.Preview', + ], + mediaSlots: [ + { + id: 'before', + label: 'Control guide', + kind: 'comparison_before', + role: 'before', + placeholder: 'Source pending', + }, + { + id: 'after', + label: 'Generated image', + kind: 'comparison_after', + role: 'after', + placeholder: 'Preview pending', + }, + ], + thumbnailVariant: 'compareSlider', + recipeSummary: + 'Reproduce the reviewed Canny-Guided Glass with PAG example with the saved prompt, settings and model revision.', + runtimeReuseKey: 'sha256:canonical-graph-v1:cc03628ea649924bfeca24fd9e93c8aa47c28b4805a0b308fb4adeb9fbb5c0b2', + }, + }, + { + workflowId: 'StableDiffusionXLControlNetPipeline:control_image', + sourceTaskTemplateId: 'task-template:sdxl-controlnet-canny:control-image:v1', + retainedGraphHash: 'sha256:canonical-graph-v1:cd4d26987f6eb195f91493d431e659db42ef4a531b29e26d7eedb08799769c16', + originalReceiptSha256: 'f57b41443261612d95d3e80df2d638617f62526970313989ca69e0652bb4c390', + reviewedTemplateSha256: '3075b68d97eea65616a9a8fe2519154041e24ced2cd916b395c4849d26c31b71', + reviewedCatalogLock: { + templateLockHash: 'tpl_380083cc', + galleryTemplateLockHash: 'tpl_45e1f06a', + promptSettingsHash: 'ps_e42996a8', + }, + promptSha256: 'd20a107a17c31f20a4e9d409be51c0e55ca8e58747bb5dfbd6169500a4da21d6', + inputSha256: '6bd07628a37c087178e9de58a98c6c5879468163f1a2376a581511a42503e2e2', + inputLocatorSha256: '59660f6454720ae76fa64a1baf2fad2e551e349070cea802c6614fc9864c86dc', + template: { + id: 'sdxl_controlnet_glass_study_on_slate', + label: 'Stable Diffusion XL ControlNet — Control image: Glass Study on Slate', + mode: 'control_image', + modelType: 'StableDiffusionXLControlNetPipeline', + intentGroup: 'generate_image', + category: 'control', + inputBindings: [ + { + id: 'control-guide', + label: 'Control Image', + mediaType: 'image', + field: 'controlImage', + origin: 'user', + requiredAt: 'workflow_start', + count: 1, + }, + ], + outputKinds: ['image'], + readinessPolicy: 'requires_input', + modelArtifact: { + source: 'hub', + value: 'stabilityai/stable-diffusion-xl-base-1.0', + revision: '462165984030d82259a11f4367a4eed129e94a7b', + }, + description: + 'Reproduce the reviewed Glass Study on Slate example with the saved prompt, settings and model revision.', + prompt: + 'A single violet translucent glass cube on a slate tabletop against a warm ivory wall. Three visible faces, crisp straight edges, soft window light, studio product photography.', + negativePrompt: '', + example: { + mediaType: 'image', + status: 'unverified', + modelRevision: '462165984030d82259a11f4367a4eed129e94a7b', + lockedSeed: 42, + lockedSettings: { + width: 1024, + height: 1024, + steps: 50, + guidanceScale: 5, + strength: 0.8, + outputType: 'pil', + maxSequenceLength: 512, + conditioningScale: 0.5, + pagScale: 3, + pagAdaptiveScale: 0, + dtype: 'float16', + resourceMode: 'expert', + quantizationMode: 'none', + autoOffload: true, + offloadMode: 'model_cpu', + }, + expectedOutput: { + width: 1024, + height: 1024, + }, + runtimeEstimate: '69.33 seconds in the saved run', + }, + requiredBackendCapabilities: [ + 'modules.ImageFilters.Canny', + 'modules.DiffusersImage.ControlGenerate', + 'modules.DiffusersImage.LoadPipeline', + 'modules.DiffusersRuntime.PipelineQuantizationConfigV2', + 'modules.DiffusersRuntime.DiffusersExecutionRecipe', + 'modules.Image.Load', + 'modules.Image.Preview', + ], + mediaSlots: [ + { + id: 'before', + label: 'Control guide', + kind: 'comparison_before', + role: 'before', + placeholder: 'Source pending', + }, + { + id: 'after', + label: 'Generated image', + kind: 'comparison_after', + role: 'after', + placeholder: 'Preview pending', + }, + ], + thumbnailVariant: 'compareSlider', + recipeSummary: + 'Reproduce the reviewed Glass Study on Slate example with the saved prompt, settings and model revision.', + runtimeReuseKey: 'sha256:canonical-graph-v1:cd4d26987f6eb195f91493d431e659db42ef4a531b29e26d7eedb08799769c16', + }, + }, + { + workflowId: 'StableDiffusionXLAdapterPipeline:control_image', + sourceTaskTemplateId: 'task-template:sdxl-t2i-adapter-canny:control-image:v1', + retainedGraphHash: 'sha256:canonical-graph-v1:9012c51eebe966a595a2fc5b93f9645e23a2fd6cc194e28ae0218f87b2495565', + originalReceiptSha256: '5a911626f9d33032fb2dcdc80cede5ffad9506abc0fb0077dc4ba39947b33a36', + reviewedTemplateSha256: 'eef6570d0a2241aa0a9ff68b200c59591fc6497f43885fba151138ae56517968', + reviewedCatalogLock: { + templateLockHash: 'tpl_76024be8', + galleryTemplateLockHash: 'tpl_768c7bb4', + promptSettingsHash: 'ps_63d6342f', + }, + promptSha256: 'ec5b7d8ce937a4f50bde17dfddda9d217733d09cf02ca1b7bc944f1bcf231577', + inputSha256: '6bd07628a37c087178e9de58a98c6c5879468163f1a2376a581511a42503e2e2', + inputLocatorSha256: '59660f6454720ae76fa64a1baf2fad2e551e349070cea802c6614fc9864c86dc', + template: { + id: 'sdxl_canny_adapter_glass_study', + label: 'Stable Diffusion XL T2I Adapter — Control image: Canny Adapter Glass Study', + mode: 'control_image', + modelType: 'StableDiffusionXLAdapterPipeline', + intentGroup: 'generate_image', + category: 'control', + inputBindings: [ + { + id: 'control-guide', + label: 'Control Image', + mediaType: 'image', + field: 'controlImage', + origin: 'user', + requiredAt: 'workflow_start', + count: 1, + }, + ], + outputKinds: ['image'], + readinessPolicy: 'requires_input', + modelArtifact: { + source: 'hub', + value: 'stabilityai/stable-diffusion-xl-base-1.0', + revision: '462165984030d82259a11f4367a4eed129e94a7b', + }, + description: + 'Reproduce the reviewed Canny Adapter Glass Study example with the saved prompt, settings and model revision.', + prompt: + 'Product photograph of a single violet translucent glass cube on a charcoal slate tabletop, against a warm ivory wall. Three visible faces and crisp straight edges. Soft window light, polished reflections and clean studio composition.', + negativePrompt: '', + example: { + mediaType: 'image', + status: 'unverified', + modelRevision: '462165984030d82259a11f4367a4eed129e94a7b', + lockedSeed: 42, + lockedSettings: { + width: 1024, + height: 1024, + steps: 30, + guidanceScale: 7.5, + strength: 0.8, + outputType: 'pil', + maxSequenceLength: 512, + conditioningScale: 0.8, + pagScale: 3, + pagAdaptiveScale: 0, + dtype: 'float16', + resourceMode: 'expert', + quantizationMode: 'none', + autoOffload: true, + offloadMode: 'model_cpu', + }, + expectedOutput: { + width: 1024, + height: 1024, + }, + runtimeEstimate: '153.11 seconds in the saved run', + }, + requiredBackendCapabilities: [ + 'modules.ImageFilters.Canny', + 'modules.DiffusersImage.ControlGenerate', + 'modules.DiffusersImage.LoadPipeline', + 'modules.DiffusersRuntime.PipelineQuantizationConfigV2', + 'modules.DiffusersRuntime.DiffusersExecutionRecipe', + 'modules.Image.Load', + 'modules.Image.Preview', + ], + mediaSlots: [ + { + id: 'before', + label: 'Control guide', + kind: 'comparison_before', + role: 'before', + placeholder: 'Source pending', + }, + { + id: 'after', + label: 'Generated image', + kind: 'comparison_after', + role: 'after', + placeholder: 'Preview pending', + }, + ], + thumbnailVariant: 'compareSlider', + recipeSummary: + 'Reproduce the reviewed Canny Adapter Glass Study example with the saved prompt, settings and model revision.', + runtimeReuseKey: 'sha256:canonical-graph-v1:9012c51eebe966a595a2fc5b93f9645e23a2fd6cc194e28ae0218f87b2495565', + }, + }, ]; diff --git a/src/studio/retainedGalleryTemplates.ts b/src/studio/retainedGalleryTemplates.ts index 22d515e8..38c47905 100644 --- a/src/studio/retainedGalleryTemplates.ts +++ b/src/studio/retainedGalleryTemplates.ts @@ -9,6 +9,7 @@ export type RetainedGalleryRecipe = { readonly originalReceiptSha256: string; readonly reviewedTemplateSha256: string; readonly maskSha256?: string; + readonly guideSha256?: string; readonly reviewedCatalogLock: { readonly templateLockHash: string; readonly galleryTemplateLockHash: string; diff --git a/src/studio/templateAssetSource.json b/src/studio/templateAssetSource.json index 6e216ab3..27a4ed96 100644 --- a/src/studio/templateAssetSource.json +++ b/src/studio/templateAssetSource.json @@ -4,11 +4,11 @@ "localBasePath": "/template-gallery", "repoType": "dataset", "repoId": "sourav-das/modiff-template-gallery", - "revision": "fa444d27600f5792e80757bff74b640630274832", + "revision": "355bbec3f3e191f856bc0081f88102771e61379f", "pathPrefix": "template-gallery", "assetManifestPath": "_modiff/template-assets.v1.json", - "assetSetId": "sha256:canonical-json:17f8940a80e78691b3a8165b4f149d787ff0da7b851682f6401715d68a367f18", - "completeAssetSetId": "sha256:canonical-json:a5449a1ff8625c700e811308f7c16caf8888d379889895381ee4934d485c2cd6", + "assetSetId": "sha256:canonical-json:0bc9e6aa5bcf9013cd277abd3c24b774798df702bee98d3c6f2c71db6552596b", + "completeAssetSetId": "sha256:canonical-json:42a99213cc747732b46d350cf1e908d2388ae363fdb0d6fb1200d084ca3971f2", "unavailableAssets": [ "template-gallery/ace_step_chinese_new_year_lora.card-poster.png", "template-gallery/ace_step_chinese_new_year_lora.wav", diff --git a/src/studio/types.ts b/src/studio/types.ts index d535f613..fd83668b 100644 --- a/src/studio/types.ts +++ b/src/studio/types.ts @@ -269,6 +269,13 @@ export type StudioTemplateId = | 'sd15_pag_mountain_lake_watercolor' | 'sd15_pag_cobalt_studio_repair' | 'zimage_golden_amber_glass' + | 'sdxl_control_inpaint_warm_plaster' + | 'sd15_canny_guided_green_glass' + | 'hunyuan_dit_green_glass_study' + | 'qwen_control_winter_cabin_blue_hour' + | 'sd15_pag_canny_guided_glass' + | 'sdxl_controlnet_glass_study_on_slate' + | 'sdxl_canny_adapter_glass_study' | 'bookshop_at_blue_hour' | 'flowers_after_rain' | 'forest_ferns' From 4b2cf225611bda28f9d36125ae3fc111c663da2d Mon Sep 17 00:00:00 2001 From: Sourav Das Date: Wed, 25 Nov 2026 12:01:12 +0530 Subject: [PATCH 369/440] Register the approved native LongCat audio recipe --- .../retained-gallery-approved-batch.v1.json | 8 + ...etained-gallery-authoring-archives.v1.json | 5 + config/template-asset-rights.v1.json | 141 +++++++++++++++++- config/template-assets.v1.json | 55 ++++++- public/template-gallery/manifest.json | 28 ++++ scripts/retained-gallery-release.mjs | 9 ++ scripts/retained-gallery-templates.test.mjs | 41 ++++- scripts/template-operation-fixtures.py | 5 + src/studio/retainedGalleryApprovedBatch.ts | 77 ++++++++++ src/studio/templateAssetSource.json | 6 +- src/studio/types.ts | 1 + 11 files changed, 364 insertions(+), 12 deletions(-) diff --git a/config/retained-gallery-approved-batch.v1.json b/config/retained-gallery-approved-batch.v1.json index c132c8da..4d6b2f65 100644 --- a/config/retained-gallery-approved-batch.v1.json +++ b/config/retained-gallery-approved-batch.v1.json @@ -577,5 +577,13 @@ "width": 1024, "height": 1024 } + }, + "longcat_last_tram_at_dusk": { + "associationSha256": "71e08a2d99e32542e3494718c24ba864ee1c24a5dded029f757272e78bf47b37", + "backendSourceFingerprint": "sha256:backend-source-v1:b29a5b0d317aaa781ae2a5205b46b518eea5a3d68a214eb0968dba4ac0660af7", + "backendContractFingerprint": "sha256:backend-contract-v1:9ddcba2a3da4634780919a6872ed9a6586f7a765f16243cee9763b776d02b356", + "templateRevisionHash": "9d0f7b50afd87f366ecf6c0d66352d87dd2bdf0b4ae9a50f818619d6254d6b92", + "capturedAt": "2026-11-24T22:39:17.259Z", + "outputExtension": "wav" } } diff --git a/config/retained-gallery-authoring-archives.v1.json b/config/retained-gallery-authoring-archives.v1.json index 66e2a319..65636e0a 100644 --- a/config/retained-gallery-authoring-archives.v1.json +++ b/config/retained-gallery-authoring-archives.v1.json @@ -218,5 +218,10 @@ "descriptorSha256": "449bc094096e644f4070a681e382650d133c0854ec6770cfbb736f0299e04179", "bytes": 4729, "sha256": "e523fa1d31a2bb0c2ccbd2525ac0cce68fe57adc77332446239ddf62683f8a05" + }, + "LongCatAudioDiTPipeline:text_to_audio": { + "descriptorSha256": "8019b9dbf5af0e8ba5c8eeed7132ec5578968ee0607309dd65327d69599a5c5d", + "bytes": 3894, + "sha256": "7512d2ef931525302161e9662c172403df5b608a374214a4a39b5bd71e014562" } } diff --git a/config/template-asset-rights.v1.json b/config/template-asset-rights.v1.json index 96d33200..af8a7a18 100644 --- a/config/template-asset-rights.v1.json +++ b/config/template-asset-rights.v1.json @@ -1,6 +1,6 @@ { "schemaVersion": 1, - "assetSetId": "sha256:canonical-json:42a99213cc747732b46d350cf1e908d2388ae363fdb0d6fb1200d084ca3971f2", + "assetSetId": "sha256:canonical-json:590bbae6d7144864057e6c8e48842d8f113fca303aaebedbb685222da06f3ece", "records": [ { "path": "template-gallery/ace_step_audio_continuation.wav", @@ -5884,6 +5884,33 @@ "assetLicense": "MoDiff-Gallery-Restricted-1.0", "provenanceTemplateId": "lcm_dawn_alpine_lake" }, + { + "path": "template-gallery/longcat_last_tram_at_dusk.wav", + "sha256": "sha256:bytes:6d7e8a05a49b111c59cda0fe69dfb7c5f92fb8e560ae468cf96a16bbd068a78b", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Exact approved file captured from a saved MoDiff workflow", + "sourceUrl": "https://huggingface.co/ruixiangma/LongCat-AudioDiT-1B-Diffusers/tree/f4c063ea37f262ba5e6129ebd80095a6d6a9de4d", + "sourceRevision": "ruixiangma/LongCat-AudioDiT-1B-Diffusers@f4c063ea37f262ba5e6129ebd80095a6d6a9de4d", + "sourceLicense": "Maintainer-authorized file with publisher terms retained", + "modelTerms": [ + "Publisher model terms at https://huggingface.co/ruixiangma/LongCat-AudioDiT-1B-Diffusers/tree/f4c063ea37f262ba5e6129ebd80095a6d6a9de4d" + ], + "aiGenerated": true, + "humanLikenessConsent": "synthetic", + "marks": [], + "requiredAttribution": [ + "ruixiangma/LongCat-AudioDiT-1B-Diffusers@f4c063ea37f262ba5e6129ebd80095a6d6a9de4d https://huggingface.co/ruixiangma/LongCat-AudioDiT-1B-Diffusers/tree/f4c063ea37f262ba5e6129ebd80095a6d6a9de4d" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "15c604ae5df3abed63c95046a78859adb870f415f45c06a99f58ad652fc0dea2", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "longcat_last_tram_at_dusk" + }, { "creatorOrRightsholder": "MoDiff project maintainers, subject to source/model terms", "creationMethod": "AI-generated original text-to-image Gallery example", @@ -6563,7 +6590,7 @@ }, { "path": "template-gallery/manifest.json", - "sha256": "sha256:bytes:5270a2956e09da1470a48cad222156db9ed6951b21e14178a111fbaede1bb75f", + "sha256": "sha256:bytes:2f8c5d5a64412ebbd688cc81deb6d6d89fc9a5a1d8dccfcd6813b82a9e49740e", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", @@ -6580,7 +6607,7 @@ "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "3968c7cbe37a94789a9f839d8e83a9e0f102629b797d5f7baacf0304a8d18153", + "humanApprovalPacketSHA256": "15c604ae5df3abed63c95046a78859adb870f415f45c06a99f58ad652fc0dea2", "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained." }, { @@ -11748,6 +11775,114 @@ "publishDecision": "approved", "holdReason": null }, + { + "path": "template-gallery/reviews/longcat_last_tram_at_dusk.original-provenance.json", + "sha256": "sha256:bytes:34b322e643eacf47f4c02019564cb85720cb3b9b8334d524e47226d60c4faa60", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/ruixiangma/LongCat-AudioDiT-1B-Diffusers/tree/f4c063ea37f262ba5e6129ebd80095a6d6a9de4d", + "sourceRevision": "ruixiangma/LongCat-AudioDiT-1B-Diffusers@f4c063ea37f262ba5e6129ebd80095a6d6a9de4d", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "Publisher model terms at https://huggingface.co/ruixiangma/LongCat-AudioDiT-1B-Diffusers/tree/f4c063ea37f262ba5e6129ebd80095a6d6a9de4d" + ], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "ruixiangma/LongCat-AudioDiT-1B-Diffusers@f4c063ea37f262ba5e6129ebd80095a6d6a9de4d https://huggingface.co/ruixiangma/LongCat-AudioDiT-1B-Diffusers/tree/f4c063ea37f262ba5e6129ebd80095a6d6a9de4d" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "15c604ae5df3abed63c95046a78859adb870f415f45c06a99f58ad652fc0dea2", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "longcat_last_tram_at_dusk" + }, + { + "path": "template-gallery/reviews/longcat_last_tram_at_dusk.original-review.json", + "sha256": "sha256:bytes:7ee2f38d8dd9199e6a754312dba9e962007389ba4527f0aebb96272b454394a5", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/ruixiangma/LongCat-AudioDiT-1B-Diffusers/tree/f4c063ea37f262ba5e6129ebd80095a6d6a9de4d", + "sourceRevision": "ruixiangma/LongCat-AudioDiT-1B-Diffusers@f4c063ea37f262ba5e6129ebd80095a6d6a9de4d", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "Publisher model terms at https://huggingface.co/ruixiangma/LongCat-AudioDiT-1B-Diffusers/tree/f4c063ea37f262ba5e6129ebd80095a6d6a9de4d" + ], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "ruixiangma/LongCat-AudioDiT-1B-Diffusers@f4c063ea37f262ba5e6129ebd80095a6d6a9de4d https://huggingface.co/ruixiangma/LongCat-AudioDiT-1B-Diffusers/tree/f4c063ea37f262ba5e6129ebd80095a6d6a9de4d" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "15c604ae5df3abed63c95046a78859adb870f415f45c06a99f58ad652fc0dea2", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "longcat_last_tram_at_dusk" + }, + { + "path": "template-gallery/reviews/longcat_last_tram_at_dusk.quality-review.json", + "sha256": "sha256:bytes:f2883c589ff0313062b4c0c995b35ce08d837f02efb4f6f097d004961b8d298f", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/ruixiangma/LongCat-AudioDiT-1B-Diffusers/tree/f4c063ea37f262ba5e6129ebd80095a6d6a9de4d", + "sourceRevision": "ruixiangma/LongCat-AudioDiT-1B-Diffusers@f4c063ea37f262ba5e6129ebd80095a6d6a9de4d", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "Publisher model terms at https://huggingface.co/ruixiangma/LongCat-AudioDiT-1B-Diffusers/tree/f4c063ea37f262ba5e6129ebd80095a6d6a9de4d" + ], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "ruixiangma/LongCat-AudioDiT-1B-Diffusers@f4c063ea37f262ba5e6129ebd80095a6d6a9de4d https://huggingface.co/ruixiangma/LongCat-AudioDiT-1B-Diffusers/tree/f4c063ea37f262ba5e6129ebd80095a6d6a9de4d" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "15c604ae5df3abed63c95046a78859adb870f415f45c06a99f58ad652fc0dea2", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "longcat_last_tram_at_dusk" + }, + { + "path": "template-gallery/reviews/longcat_last_tram_at_dusk.retained-template-provenance.json", + "sha256": "sha256:bytes:071240681910f119ab723f580b68bc1037896a28132a51fbb338e61bf9f8a0bf", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/ruixiangma/LongCat-AudioDiT-1B-Diffusers/tree/f4c063ea37f262ba5e6129ebd80095a6d6a9de4d", + "sourceRevision": "ruixiangma/LongCat-AudioDiT-1B-Diffusers@f4c063ea37f262ba5e6129ebd80095a6d6a9de4d", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "Publisher model terms at https://huggingface.co/ruixiangma/LongCat-AudioDiT-1B-Diffusers/tree/f4c063ea37f262ba5e6129ebd80095a6d6a9de4d" + ], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "ruixiangma/LongCat-AudioDiT-1B-Diffusers@f4c063ea37f262ba5e6129ebd80095a6d6a9de4d https://huggingface.co/ruixiangma/LongCat-AudioDiT-1B-Diffusers/tree/f4c063ea37f262ba5e6129ebd80095a6d6a9de4d" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "15c604ae5df3abed63c95046a78859adb870f415f45c06a99f58ad652fc0dea2", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "longcat_last_tram_at_dusk" + }, { "path": "template-gallery/reviews/low_vram.quality-review.json", "sha256": "sha256:bytes:53b25669d880814ac612e803b0c6f2abbcdd8853e7ea4ca6e1e6d0b97fa23352", diff --git a/config/template-assets.v1.json b/config/template-assets.v1.json index a92543bb..6a2f5847 100644 --- a/config/template-assets.v1.json +++ b/config/template-assets.v1.json @@ -2341,6 +2341,15 @@ "width": 512, "height": 512 }, + { + "path": "template-gallery/longcat_last_tram_at_dusk.wav", + "size": 237612, + "sha256": "sha256:bytes:6d7e8a05a49b111c59cda0fe69dfb7c5f92fb8e560ae468cf96a16bbd068a78b", + "contentType": "audio/x-wav", + "purposes": [ + "runtime" + ] + }, { "path": "template-gallery/low_vram.webp", "size": 230540, @@ -2605,8 +2614,8 @@ }, { "path": "template-gallery/manifest.json", - "size": 347462, - "sha256": "sha256:bytes:5270a2956e09da1470a48cad222156db9ed6951b21e14178a111fbaede1bb75f", + "size": 349730, + "sha256": "sha256:bytes:2f8c5d5a64412ebbd688cc81deb6d6d89fc9a5a1d8dccfcd6813b82a9e49740e", "contentType": "application/json", "purposes": [ "runtime", @@ -4564,6 +4573,42 @@ "runtime" ] }, + { + "path": "template-gallery/reviews/longcat_last_tram_at_dusk.original-provenance.json", + "size": 1251, + "sha256": "sha256:bytes:34b322e643eacf47f4c02019564cb85720cb3b9b8334d524e47226d60c4faa60", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, + { + "path": "template-gallery/reviews/longcat_last_tram_at_dusk.original-review.json", + "size": 541, + "sha256": "sha256:bytes:7ee2f38d8dd9199e6a754312dba9e962007389ba4527f0aebb96272b454394a5", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, + { + "path": "template-gallery/reviews/longcat_last_tram_at_dusk.quality-review.json", + "size": 2332, + "sha256": "sha256:bytes:f2883c589ff0313062b4c0c995b35ce08d837f02efb4f6f097d004961b8d298f", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, + { + "path": "template-gallery/reviews/longcat_last_tram_at_dusk.retained-template-provenance.json", + "size": 3457, + "sha256": "sha256:bytes:071240681910f119ab723f580b68bc1037896a28132a51fbb338e61bf9f8a0bf", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, { "path": "template-gallery/reviews/low_vram.quality-review.json", "size": 2522, @@ -7982,9 +8027,9 @@ "height": 640 } ], - "assetSetId": "sha256:canonical-json:42a99213cc747732b46d350cf1e908d2388ae363fdb0d6fb1200d084ca3971f2", + "assetSetId": "sha256:canonical-json:590bbae6d7144864057e6c8e48842d8f113fca303aaebedbb685222da06f3ece", "status": "ready", - "assetCount": 816, - "totalBytes": 1055193864, + "assetCount": 821, + "totalBytes": 1055441325, "missingAssets": [] } diff --git a/public/template-gallery/manifest.json b/public/template-gallery/manifest.json index bd4bbb10..342d9b39 100644 --- a/public/template-gallery/manifest.json +++ b/public/template-gallery/manifest.json @@ -4448,6 +4448,34 @@ "height": 1024, "approvedOriginalReviewPath": "/template-gallery/reviews/sdxl_canny_adapter_glass_study.original-review.json", "approvedOriginalProvenancePath": "/template-gallery/reviews/sdxl_canny_adapter_glass_study.original-provenance.json" + }, + { + "templateId": "longcat_last_tram_at_dusk", + "templateLockHash": "tpl_e6bfed44", + "promptSettingsHash": "ps_11aa3e00", + "modelRevision": "ruixiangma/LongCat-AudioDiT-1B-Diffusers@f4c063ea37f262ba5e6129ebd80095a6d6a9de4d", + "runtimeFingerprint": "sha256:stable-runtime-v1:880a46e4923ce13be6f24b148b864a2d7abbfcb7aa6cf894905f3fff79fabaf9", + "graphHash": "sha256:canonical-graph-v1:2d149a078f6469b473a083b6116ef47452ae4ccc8a1ca0fc7b0ea416f5257515", + "proofLockHash": "sha256:retained-template-association-v1:95ffea69c60d414a0bd23077ca61f5ddd50586f06b4808e4b8dac121ebd75e85", + "backendSourceFingerprint": "sha256:backend-source-v1:b29a5b0d317aaa781ae2a5205b46b518eea5a3d68a214eb0968dba4ac0660af7", + "backendContractFingerprint": "sha256:backend-contract-v1:9ddcba2a3da4634780919a6872ed9a6586f7a765f16243cee9763b776d02b356", + "modelCommit": "f4c063ea37f262ba5e6129ebd80095a6d6a9de4d", + "templateRevisionHash": "9d0f7b50afd87f366ecf6c0d66352d87dd2bdf0b4ae9a50f818619d6254d6b92", + "provenancePath": "/template-gallery/reviews/longcat_last_tram_at_dusk.retained-template-provenance.json", + "provenanceHash": "sha256:canonical-json:1842dacf80fa8b0d1fb3e355e7f07ea6c8c9c01d9d75cb7406537b6c66b6409a", + "outputPath": "/template-gallery/longcat_last_tram_at_dusk.wav", + "thumbnailPath": "/template-gallery/longcat_last_tram_at_dusk.wav", + "mediaHash": "sha256:decoded-audio-pcm-s16le-48000-stereo:776d0f13f0503cb46377d0121e83c0a871b5de2344a97c8de2cfd87abcd93040", + "mediaType": "audio", + "verificationTimestamp": "2026-11-24T22:39:17.259Z", + "verificationStatus": "reviewed", + "qualityReviewStatus": "approved_reviewed", + "qualityReviewHash": "sha256:canonical-json:c3329564cd8b05d18e1b3e91a3656290b0a0b1c735eee45082b78b1098ea8e41", + "qualityReviewPath": "/template-gallery/reviews/longcat_last_tram_at_dusk.quality-review.json", + "reviewer": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25T05:51:53.933Z", + "approvedOriginalReviewPath": "/template-gallery/reviews/longcat_last_tram_at_dusk.original-review.json", + "approvedOriginalProvenancePath": "/template-gallery/reviews/longcat_last_tram_at_dusk.original-provenance.json" } ] } diff --git a/scripts/retained-gallery-release.mjs b/scripts/retained-gallery-release.mjs index 12dee7e2..875ee88f 100644 --- a/scripts/retained-gallery-release.mjs +++ b/scripts/retained-gallery-release.mjs @@ -111,6 +111,15 @@ function assertRetainedBatchEvidence({ if (association.output.mediaType === 'image') { assert.equal(nativeReceipt.decodedOutput.hash, association.output.decodedMediaHash, label); } + if (association.output.mediaType === 'audio') { + const { decodedMediaHash, durationSeconds, sampleRate, channels, outputEncodedSha256 } = association.output; + same( + nativeReceipt.decodedOutput, + { kind: 'audio', hash: decodedMediaHash, durationSeconds, sampleRate, channels }, + label, + ); + assert.equal(outputEncodedSha256, nativeReceipt.outputHash, label); + } } function assertRetainedSpandrelEvidence({ recipe, sourceWorkflow, association, entry, nativeReceipt }) { diff --git a/scripts/retained-gallery-templates.test.mjs b/scripts/retained-gallery-templates.test.mjs index ceaa33b3..0e9809de 100644 --- a/scripts/retained-gallery-templates.test.mjs +++ b/scripts/retained-gallery-templates.test.mjs @@ -221,6 +221,7 @@ test('fresh Expert recipes prepare with current backend specs and without a gene const previousFlow = flow.getState(); const previousNodes = nodeStore.getState(); let contract; + let audioContract; const fieldActions = []; try { globalThis.WebSocket = undefined; @@ -231,6 +232,26 @@ test('fresh Expert recipes prepare with current backend specs and without a gene ); const payload = JSON.parse(options.body); fieldActions.push(payload.fn); + if (payload.module === 'modules.DiffusersAudio') { + assert.equal(payload.fn, 'update_audio_contract'); + assert.ok(audioContract); + if (payload.action === 'LoadPipeline') { + assert.equal(payload.values.pipeline_class, audioContract.pipelineClass); + assert.equal(payload.values.mode, audioContract.mode); + flow.getState().setParam( + payload.node, + 'pipeline', + { direction: 'output', origin: 'audio_contract', value: audioContract }, + 'signal', + ); + } else { + assert.equal(payload.action, 'Generate'); + if (payload.values.audio_contract !== audioContract.pipelineClass) { + assert.deepEqual(payload.values.audio_contract, audioContract); + } + } + return Response.json({ error: false, nodes: [] }); + } assert.equal(payload.module, 'modules.DiffusersImage'); assert.ok(contract); if (payload.fn === 'update_pipeline_contract') { @@ -263,8 +284,13 @@ test('fresh Expert recipes prepare with current backend specs and without a gene }); for (const recipe of recipes) { const { template } = recipe; - const { spec, imageContract } = fixture.recipes.find((item) => item.id === template.id); + const { + spec, + imageContract, + audioContract: nextAudioContract, + } = fixture.recipes.find((item) => item.id === template.id); contract = imageContract; + audioContract = nextAudioContract; const inputBinding = template.inputBindings?.[0]; const audio = inputBinding?.mediaType === 'audio'; const guide = template.inputBindings?.some(({ field }) => field === 'controlImage') @@ -327,6 +353,19 @@ test('fresh Expert recipes prepare with current backend specs and without a gene assert.equal(loader.params.revision.value, template.modelArtifact.revision); assert.equal(loader.params.dtype.value, template.example.lockedSettings.dtype ?? 'float32'); assert.equal(loader.params.device.value, form.device); + if (template.id === 'longcat_last_tram_at_dusk') { + const generation = api.nodes[binding.nodes.audioGenerate].params; + const output = api.nodes[binding.nodes.audioExport].params; + const locked = template.example.lockedSettings; + assert.equal(generation.prompt.value, template.prompt); + assert.equal(generation.stable_audio_steps.value, locked.steps); + assert.equal(generation.stable_audio_guidance.value, locked.guidanceScale); + assert.equal(generation.audio_duration.value, locked.audioDuration); + assert.equal(Number(generation.seed.value), template.example.lockedSeed); + assert.equal(generation.pipeline.sourceId, binding.nodes.audioPipeline); + assert.equal(output.audio.sourceId, binding.nodes.audioGenerate); + continue; + } if (approvedBatchIds.has(template.id) && !audio) { const actions = Object.values(api.nodes); const generation = actions.find(({ action }) => diff --git a/scripts/template-operation-fixtures.py b/scripts/template-operation-fixtures.py index d916c367..12452122 100644 --- a/scripts/template-operation-fixtures.py +++ b/scripts/template-operation-fixtures.py @@ -92,6 +92,11 @@ def describe(key): row["imageContract"] = image_pipeline_contract( get_image_pipeline_adapter(spec["pipelineClass"]), spec["mode"] ) + if any(key == "modules.DiffusersAudio.LoadPipeline" for _, key, _, _ in spec["roles"]): + from modules.DiffusersAudio.main import _audio_contract_signal, get_audio_pipeline_adapter + + adapter = get_audio_pipeline_adapter(spec["pipelineClass"]) + row["audioContract"] = _audio_contract_signal(adapter, spec["mode"], adapter.default_repo) rows.append(row) continue starter = resolve_operation_starter(MODULE_MAP, contracts, { diff --git a/src/studio/retainedGalleryApprovedBatch.ts b/src/studio/retainedGalleryApprovedBatch.ts index 321d5a52..7d9be714 100644 --- a/src/studio/retainedGalleryApprovedBatch.ts +++ b/src/studio/retainedGalleryApprovedBatch.ts @@ -3846,4 +3846,81 @@ export const APPROVED_RETAINED_BATCH: RetainedGalleryRecipe[] = [ runtimeReuseKey: 'sha256:canonical-graph-v1:9012c51eebe966a595a2fc5b93f9645e23a2fd6cc194e28ae0218f87b2495565', }, }, +{ + "workflowId": "LongCatAudioDiTPipeline:text_to_audio", + "sourceTaskTemplateId": "task-template:longcat-audio-dit-1b:text-to-audio:v1", + "retainedGraphHash": "sha256:canonical-graph-v1:2d149a078f6469b473a083b6116ef47452ae4ccc8a1ca0fc7b0ea416f5257515", + "originalReceiptSha256": "8019b9dbf5af0e8ba5c8eeed7132ec5578968ee0607309dd65327d69599a5c5d", + "reviewedTemplateSha256": "9d0f7b50afd87f366ecf6c0d66352d87dd2bdf0b4ae9a50f818619d6254d6b92", + "reviewedCatalogLock": { + "templateLockHash": "tpl_0738853e", + "galleryTemplateLockHash": "tpl_e6bfed44", + "promptSettingsHash": "ps_11aa3e00" + }, + "promptSha256": "47545a310a3cffc0c8a458241c77dca330e10fe92fbc796239efb689bfb40949", + "template": { + "id": "longcat_last_tram_at_dusk", + "label": "LongCat AudioDiT 1B — Text to audio: Last Tram at Dusk", + "mode": "text_to_audio", + "modelType": "LongCatAudioDiTPipeline", + "intentGroup": "audio", + "thumbnailVariant": "audio", + "category": "audio_generation", + "outputKinds": [ + "audio" + ], + "readinessPolicy": "runnable", + "modelArtifact": { + "source": "hub", + "value": "ruixiangma/LongCat-AudioDiT-1B-Diffusers", + "revision": "f4c063ea37f262ba5e6129ebd80095a6d6a9de4d" + }, + "description": "Reproduce the reviewed Last Tram at Dusk example with the saved prompt, settings and model revision.", + "prompt": "The last tram leaves at dusk, so we will walk home beside the river.", + "negativePrompt": "", + "example": { + "mediaType": "audio", + "status": "unverified", + "modelRevision": "f4c063ea37f262ba5e6129ebd80095a6d6a9de4d", + "lockedSeed": 42, + "lockedSettings": { + "steps": 16, + "guidanceScale": 4, + "strength": 0.8, + "maxSequenceLength": 512, + "pagScale": 0, + "pagAdaptiveScale": 0, + "dtype": "bfloat16", + "resourceMode": "expert", + "quantizationMode": "none", + "autoOffload": true, + "offloadMode": "model_cpu", + "audioDuration": 5 + }, + "expectedOutput": { + "durationSeconds": 4.949333333333334, + "sampleRate": 24000 + }, + "runtimeEstimate": "9.73 seconds in the saved run" + }, + "requiredBackendCapabilities": [ + "modules.Audio.Export", + "modules.DiffusersAudio.Generate", + "modules.DiffusersAudio.LoadPipeline", + "modules.DiffusersRuntime.PipelineQuantizationConfigV2", + "modules.DiffusersRuntime.DiffusersExecutionRecipe" + ], + "mediaSlots": [ + { + "id": "result", + "label": "Generated audio", + "kind": "audio", + "role": "output", + "placeholder": "Result pending" + } + ], + "recipeSummary": "Reproduce the reviewed Last Tram at Dusk example with the saved prompt, settings and model revision.", + "runtimeReuseKey": "sha256:canonical-graph-v1:2d149a078f6469b473a083b6116ef47452ae4ccc8a1ca0fc7b0ea416f5257515" + } +}, ]; diff --git a/src/studio/templateAssetSource.json b/src/studio/templateAssetSource.json index 27a4ed96..176738ec 100644 --- a/src/studio/templateAssetSource.json +++ b/src/studio/templateAssetSource.json @@ -4,11 +4,11 @@ "localBasePath": "/template-gallery", "repoType": "dataset", "repoId": "sourav-das/modiff-template-gallery", - "revision": "355bbec3f3e191f856bc0081f88102771e61379f", + "revision": "197f94730a1c8978453177069ce902eee640fb04", "pathPrefix": "template-gallery", "assetManifestPath": "_modiff/template-assets.v1.json", - "assetSetId": "sha256:canonical-json:0bc9e6aa5bcf9013cd277abd3c24b774798df702bee98d3c6f2c71db6552596b", - "completeAssetSetId": "sha256:canonical-json:42a99213cc747732b46d350cf1e908d2388ae363fdb0d6fb1200d084ca3971f2", + "assetSetId": "sha256:canonical-json:302e5a29aad9f0e18f1825b6b2de74bdb640323eaeab792b202e96e4f34c7a45", + "completeAssetSetId": "sha256:canonical-json:590bbae6d7144864057e6c8e48842d8f113fca303aaebedbb685222da06f3ece", "unavailableAssets": [ "template-gallery/ace_step_chinese_new_year_lora.card-poster.png", "template-gallery/ace_step_chinese_new_year_lora.wav", diff --git a/src/studio/types.ts b/src/studio/types.ts index fd83668b..b8db00e6 100644 --- a/src/studio/types.ts +++ b/src/studio/types.ts @@ -260,6 +260,7 @@ export type StudioTemplateId = | 'smolvlm_red_triangle' | 'kandinsky3_ginkgo_on_slate' | 'chroma_terracotta_and_blue' + | 'longcat_last_tram_at_dusk' | 'lumina2_larch_on_glacial_pond' | 'hunyuan_dit_coastal_lighthouse' | 'omnigen_tulips_after_rain' From c24d6b356ad5ac09f1d63926242dc74a615dbcf5 Mon Sep 17 00:00:00 2001 From: Sourav Das Date: Wed, 25 Nov 2026 12:06:13 +0530 Subject: [PATCH 370/440] Register the exact approved Qwen layered output --- .../retained-gallery-approved-batch.v1.json | 12 + ...etained-gallery-authoring-archives.v1.json | 5 + config/template-asset-rights.v1.json | 276 +++++++++++++++++- config/template-assets.v1.json | 112 ++++++- public/template-gallery/manifest.json | 35 +++ scripts/retained-gallery-release.mjs | 17 +- scripts/retained-gallery-templates.test.mjs | 9 +- src/studio/retainedGalleryApprovedBatch.ts | 99 +++++++ src/studio/templateAssetSource.json | 6 +- src/studio/types.ts | 1 + 10 files changed, 558 insertions(+), 14 deletions(-) diff --git a/config/retained-gallery-approved-batch.v1.json b/config/retained-gallery-approved-batch.v1.json index 4d6b2f65..7ee2e511 100644 --- a/config/retained-gallery-approved-batch.v1.json +++ b/config/retained-gallery-approved-batch.v1.json @@ -585,5 +585,17 @@ "templateRevisionHash": "9d0f7b50afd87f366ecf6c0d66352d87dd2bdf0b4ae9a50f818619d6254d6b92", "capturedAt": "2026-11-24T22:39:17.259Z", "outputExtension": "wav" + }, + "qwen_layered_sunset_and_peaks": { + "associationSha256": "6f803d49ff9c2e4add5ec1bdd552de9e92b4d887b988c27f298d532c6cf2b2d3", + "backendSourceFingerprint": "sha256:backend-source-v1:ce7ac712b4620d0e8efb35022a558a551e2d4ae6ef20b844744c4d674527b0b3", + "backendContractFingerprint": "sha256:backend-contract-v1:7661a86f3aebb5f170346fc6078e665e006b56b7ff5bc4810db8692adf607dac", + "templateRevisionHash": "4ee3847d935f7b245f5c9d9e156da8fe5d97dcb382ad890c59163e573a6c73c9", + "capturedAt": "2026-11-24T23:35:50.453Z", + "outputExtension": "png", + "outputSize": { + "width": 960, + "height": 710 + } } } diff --git a/config/retained-gallery-authoring-archives.v1.json b/config/retained-gallery-authoring-archives.v1.json index 65636e0a..a762d14e 100644 --- a/config/retained-gallery-authoring-archives.v1.json +++ b/config/retained-gallery-authoring-archives.v1.json @@ -223,5 +223,10 @@ "descriptorSha256": "8019b9dbf5af0e8ba5c8eeed7132ec5578968ee0607309dd65327d69599a5c5d", "bytes": 3894, "sha256": "7512d2ef931525302161e9662c172403df5b608a374214a4a39b5bd71e014562" + }, + "QwenImageLayeredPipeline:layer_decomposition": { + "descriptorSha256": "826d487fed6b6f0ae2679d2eb842ad65208a9b5929b66722ad1d8e1c0242079e", + "bytes": 4857, + "sha256": "49728a179b50f3b708d1baacdaa3863a1e9c6c3ef281e4a4d9efdc0a3fffd44d" } } diff --git a/config/template-asset-rights.v1.json b/config/template-asset-rights.v1.json index af8a7a18..32a94456 100644 --- a/config/template-asset-rights.v1.json +++ b/config/template-asset-rights.v1.json @@ -1,6 +1,6 @@ { "schemaVersion": 1, - "assetSetId": "sha256:canonical-json:590bbae6d7144864057e6c8e48842d8f113fca303aaebedbb685222da06f3ece", + "assetSetId": "sha256:canonical-json:d03def6ad163d7c88ee848138c806e5182df1f9d05589569aa0c504aca63960f", "records": [ { "path": "template-gallery/ace_step_audio_continuation.wav", @@ -4733,6 +4733,33 @@ "humanApprovalPacketSHA256": "69c6b3d9b0ea2fcca16ee538f6e75b414b7141658b74f10578758e61360f63fd", "provenanceTemplateId": "qwen_layered_portrait" }, + { + "path": "template-gallery/inputs/qwen_layered_sunset_and_peaks.source.png", + "sha256": "sha256:bytes:67835db7f30072a35b1650c0a84e7f241c0b01fcf2c324964ddcd5f8424008b3", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Exact approved file captured from a saved MoDiff workflow", + "sourceUrl": "https://huggingface.co/Qwen/Qwen-Image-Layered/tree/8f0ca708dfff6ba1dd5f2d85d78f8c108a040bcf", + "sourceRevision": "Qwen/Qwen-Image-Layered@8f0ca708dfff6ba1dd5f2d85d78f8c108a040bcf", + "sourceLicense": "Maintainer-authorized file with publisher terms retained", + "modelTerms": [ + "https://huggingface.co/Qwen/Qwen-Image-Layered/blob/8f0ca708dfff6ba1dd5f2d85d78f8c108a040bcf/README.md" + ], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "Qwen/Qwen-Image-Layered@8f0ca708dfff6ba1dd5f2d85d78f8c108a040bcf https://huggingface.co/Qwen/Qwen-Image-Layered/tree/8f0ca708dfff6ba1dd5f2d85d78f8c108a040bcf" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "b16dfc2b7c1c32272b8f79bc1bffbb60376e63f8cf1ab9d0bdf9aea07cccf5cd", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "qwen_layered_sunset_and_peaks" + }, { "path": "template-gallery/inputs/qwen_logo_texture.before.webp", "sha256": "sha256:bytes:124415536a8071baccf8821232ad79a0a8ceec30ae62617c91a8d7a0b59d0a8c", @@ -5849,6 +5876,114 @@ "humanApprovalPacketSHA256": "69c6b3d9b0ea2fcca16ee538f6e75b414b7141658b74f10578758e61360f63fd", "provenanceTemplateId": "qwen_layered_portrait" }, + { + "path": "template-gallery/layers/qwen_layered_sunset_and_peaks.layer-1.webp", + "sha256": "sha256:bytes:16ffd9f4a965c95164e51c9ee9d72295bc618972d3c67fb837c2df259187682c", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Exact approved file captured from a saved MoDiff workflow", + "sourceUrl": "https://huggingface.co/Qwen/Qwen-Image-Layered/tree/8f0ca708dfff6ba1dd5f2d85d78f8c108a040bcf", + "sourceRevision": "Qwen/Qwen-Image-Layered@8f0ca708dfff6ba1dd5f2d85d78f8c108a040bcf", + "sourceLicense": "Maintainer-authorized file with publisher terms retained", + "modelTerms": [ + "https://huggingface.co/Qwen/Qwen-Image-Layered/blob/8f0ca708dfff6ba1dd5f2d85d78f8c108a040bcf/README.md" + ], + "aiGenerated": true, + "humanLikenessConsent": "synthetic", + "marks": [], + "requiredAttribution": [ + "Qwen/Qwen-Image-Layered@8f0ca708dfff6ba1dd5f2d85d78f8c108a040bcf https://huggingface.co/Qwen/Qwen-Image-Layered/tree/8f0ca708dfff6ba1dd5f2d85d78f8c108a040bcf" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "b16dfc2b7c1c32272b8f79bc1bffbb60376e63f8cf1ab9d0bdf9aea07cccf5cd", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "qwen_layered_sunset_and_peaks" + }, + { + "path": "template-gallery/layers/qwen_layered_sunset_and_peaks.layer-2.webp", + "sha256": "sha256:bytes:866609c2307a1f016cac7eefc56401491f58a2e2d57abf0c20b6bdb0f9da057f", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Exact approved file captured from a saved MoDiff workflow", + "sourceUrl": "https://huggingface.co/Qwen/Qwen-Image-Layered/tree/8f0ca708dfff6ba1dd5f2d85d78f8c108a040bcf", + "sourceRevision": "Qwen/Qwen-Image-Layered@8f0ca708dfff6ba1dd5f2d85d78f8c108a040bcf", + "sourceLicense": "Maintainer-authorized file with publisher terms retained", + "modelTerms": [ + "https://huggingface.co/Qwen/Qwen-Image-Layered/blob/8f0ca708dfff6ba1dd5f2d85d78f8c108a040bcf/README.md" + ], + "aiGenerated": true, + "humanLikenessConsent": "synthetic", + "marks": [], + "requiredAttribution": [ + "Qwen/Qwen-Image-Layered@8f0ca708dfff6ba1dd5f2d85d78f8c108a040bcf https://huggingface.co/Qwen/Qwen-Image-Layered/tree/8f0ca708dfff6ba1dd5f2d85d78f8c108a040bcf" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "b16dfc2b7c1c32272b8f79bc1bffbb60376e63f8cf1ab9d0bdf9aea07cccf5cd", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "qwen_layered_sunset_and_peaks" + }, + { + "path": "template-gallery/layers/qwen_layered_sunset_and_peaks.layer-3.webp", + "sha256": "sha256:bytes:01b27cacca10c2ed53a8b9368d42697c2b13239113790d8291e20ccdb939a896", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Exact approved file captured from a saved MoDiff workflow", + "sourceUrl": "https://huggingface.co/Qwen/Qwen-Image-Layered/tree/8f0ca708dfff6ba1dd5f2d85d78f8c108a040bcf", + "sourceRevision": "Qwen/Qwen-Image-Layered@8f0ca708dfff6ba1dd5f2d85d78f8c108a040bcf", + "sourceLicense": "Maintainer-authorized file with publisher terms retained", + "modelTerms": [ + "https://huggingface.co/Qwen/Qwen-Image-Layered/blob/8f0ca708dfff6ba1dd5f2d85d78f8c108a040bcf/README.md" + ], + "aiGenerated": true, + "humanLikenessConsent": "synthetic", + "marks": [], + "requiredAttribution": [ + "Qwen/Qwen-Image-Layered@8f0ca708dfff6ba1dd5f2d85d78f8c108a040bcf https://huggingface.co/Qwen/Qwen-Image-Layered/tree/8f0ca708dfff6ba1dd5f2d85d78f8c108a040bcf" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "b16dfc2b7c1c32272b8f79bc1bffbb60376e63f8cf1ab9d0bdf9aea07cccf5cd", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "qwen_layered_sunset_and_peaks" + }, + { + "path": "template-gallery/layers/qwen_layered_sunset_and_peaks.layer-4.webp", + "sha256": "sha256:bytes:186040c0eb257ec0de53821e6f3b03a7720ab2fe03b54a1d0b71290c2e0eda5c", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Exact approved file captured from a saved MoDiff workflow", + "sourceUrl": "https://huggingface.co/Qwen/Qwen-Image-Layered/tree/8f0ca708dfff6ba1dd5f2d85d78f8c108a040bcf", + "sourceRevision": "Qwen/Qwen-Image-Layered@8f0ca708dfff6ba1dd5f2d85d78f8c108a040bcf", + "sourceLicense": "Maintainer-authorized file with publisher terms retained", + "modelTerms": [ + "https://huggingface.co/Qwen/Qwen-Image-Layered/blob/8f0ca708dfff6ba1dd5f2d85d78f8c108a040bcf/README.md" + ], + "aiGenerated": true, + "humanLikenessConsent": "synthetic", + "marks": [], + "requiredAttribution": [ + "Qwen/Qwen-Image-Layered@8f0ca708dfff6ba1dd5f2d85d78f8c108a040bcf https://huggingface.co/Qwen/Qwen-Image-Layered/tree/8f0ca708dfff6ba1dd5f2d85d78f8c108a040bcf" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "b16dfc2b7c1c32272b8f79bc1bffbb60376e63f8cf1ab9d0bdf9aea07cccf5cd", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "qwen_layered_sunset_and_peaks" + }, { "path": "template-gallery/lcm_dawn_alpine_lake.webp", "sha256": "sha256:bytes:6da406d5e24cb7b9e62c1ee617ff8bca851b0f5da3cc7aef2b2e88ac73bfc8d0", @@ -6590,7 +6725,7 @@ }, { "path": "template-gallery/manifest.json", - "sha256": "sha256:bytes:2f8c5d5a64412ebbd688cc81deb6d6d89fc9a5a1d8dccfcd6813b82a9e49740e", + "sha256": "sha256:bytes:828e7ee86bee6fae816fae7a00da1a7da8544b3429d44769fa888fd8732614c9", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", @@ -6607,7 +6742,7 @@ "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "15c604ae5df3abed63c95046a78859adb870f415f45c06a99f58ad652fc0dea2", + "humanApprovalPacketSHA256": "b16dfc2b7c1c32272b8f79bc1bffbb60376e63f8cf1ab9d0bdf9aea07cccf5cd", "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained." }, { @@ -7062,6 +7197,33 @@ "humanApprovalPacketSHA256": "69c6b3d9b0ea2fcca16ee538f6e75b414b7141658b74f10578758e61360f63fd", "provenanceTemplateId": "qwen_layered_portrait" }, + { + "path": "template-gallery/qwen_layered_sunset_and_peaks.png", + "sha256": "sha256:bytes:5ccb86b18bc5f8a1c18376c72a0236ba9235a4904fef1a9e4f459ac31e2ede2d", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Exact approved file captured from a saved MoDiff workflow", + "sourceUrl": "https://huggingface.co/Qwen/Qwen-Image-Layered/tree/8f0ca708dfff6ba1dd5f2d85d78f8c108a040bcf", + "sourceRevision": "Qwen/Qwen-Image-Layered@8f0ca708dfff6ba1dd5f2d85d78f8c108a040bcf", + "sourceLicense": "Maintainer-authorized file with publisher terms retained", + "modelTerms": [ + "https://huggingface.co/Qwen/Qwen-Image-Layered/blob/8f0ca708dfff6ba1dd5f2d85d78f8c108a040bcf/README.md" + ], + "aiGenerated": true, + "humanLikenessConsent": "synthetic", + "marks": [], + "requiredAttribution": [ + "Qwen/Qwen-Image-Layered@8f0ca708dfff6ba1dd5f2d85d78f8c108a040bcf https://huggingface.co/Qwen/Qwen-Image-Layered/tree/8f0ca708dfff6ba1dd5f2d85d78f8c108a040bcf" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "b16dfc2b7c1c32272b8f79bc1bffbb60376e63f8cf1ab9d0bdf9aea07cccf5cd", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "qwen_layered_sunset_and_peaks" + }, { "path": "template-gallery/qwen_logo_texture.webp", "sha256": "sha256:bytes:c4afc3f779e03437a122845ee9f19d149e5a049f0cce7b076047a69f964bc416", @@ -13727,6 +13889,114 @@ "provenanceTemplateId": "qwen_layered_portrait", "humanApprovalPacketSHA256": "69c6b3d9b0ea2fcca16ee538f6e75b414b7141658b74f10578758e61360f63fd" }, + { + "path": "template-gallery/reviews/qwen_layered_sunset_and_peaks.original-provenance.json", + "sha256": "sha256:bytes:9a4c058f2ba7bd3dace465219c32bd818493431063688b00741a9a9c4fb01794", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/Qwen/Qwen-Image-Layered/tree/8f0ca708dfff6ba1dd5f2d85d78f8c108a040bcf", + "sourceRevision": "Qwen/Qwen-Image-Layered@8f0ca708dfff6ba1dd5f2d85d78f8c108a040bcf", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "https://huggingface.co/Qwen/Qwen-Image-Layered/blob/8f0ca708dfff6ba1dd5f2d85d78f8c108a040bcf/README.md" + ], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "Qwen/Qwen-Image-Layered@8f0ca708dfff6ba1dd5f2d85d78f8c108a040bcf https://huggingface.co/Qwen/Qwen-Image-Layered/tree/8f0ca708dfff6ba1dd5f2d85d78f8c108a040bcf" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "b16dfc2b7c1c32272b8f79bc1bffbb60376e63f8cf1ab9d0bdf9aea07cccf5cd", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "qwen_layered_sunset_and_peaks" + }, + { + "path": "template-gallery/reviews/qwen_layered_sunset_and_peaks.original-review.json", + "sha256": "sha256:bytes:faf0adb0a9c40691caf3ef8f96765406b3b5058aa9618cca5431ae83529a1bcb", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/Qwen/Qwen-Image-Layered/tree/8f0ca708dfff6ba1dd5f2d85d78f8c108a040bcf", + "sourceRevision": "Qwen/Qwen-Image-Layered@8f0ca708dfff6ba1dd5f2d85d78f8c108a040bcf", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "https://huggingface.co/Qwen/Qwen-Image-Layered/blob/8f0ca708dfff6ba1dd5f2d85d78f8c108a040bcf/README.md" + ], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "Qwen/Qwen-Image-Layered@8f0ca708dfff6ba1dd5f2d85d78f8c108a040bcf https://huggingface.co/Qwen/Qwen-Image-Layered/tree/8f0ca708dfff6ba1dd5f2d85d78f8c108a040bcf" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "b16dfc2b7c1c32272b8f79bc1bffbb60376e63f8cf1ab9d0bdf9aea07cccf5cd", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "qwen_layered_sunset_and_peaks" + }, + { + "path": "template-gallery/reviews/qwen_layered_sunset_and_peaks.quality-review.json", + "sha256": "sha256:bytes:326553aed7aab67e3eed777d7919e21fe02ff9ab837edd7f39bd7a2abece77f0", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/Qwen/Qwen-Image-Layered/tree/8f0ca708dfff6ba1dd5f2d85d78f8c108a040bcf", + "sourceRevision": "Qwen/Qwen-Image-Layered@8f0ca708dfff6ba1dd5f2d85d78f8c108a040bcf", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "https://huggingface.co/Qwen/Qwen-Image-Layered/blob/8f0ca708dfff6ba1dd5f2d85d78f8c108a040bcf/README.md" + ], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "Qwen/Qwen-Image-Layered@8f0ca708dfff6ba1dd5f2d85d78f8c108a040bcf https://huggingface.co/Qwen/Qwen-Image-Layered/tree/8f0ca708dfff6ba1dd5f2d85d78f8c108a040bcf" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "b16dfc2b7c1c32272b8f79bc1bffbb60376e63f8cf1ab9d0bdf9aea07cccf5cd", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "qwen_layered_sunset_and_peaks" + }, + { + "path": "template-gallery/reviews/qwen_layered_sunset_and_peaks.retained-template-provenance.json", + "sha256": "sha256:bytes:d6aaa0a0d9b84d10864e8a783ac82ac167b487f71d185bacd99cc035f8e22105", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/Qwen/Qwen-Image-Layered/tree/8f0ca708dfff6ba1dd5f2d85d78f8c108a040bcf", + "sourceRevision": "Qwen/Qwen-Image-Layered@8f0ca708dfff6ba1dd5f2d85d78f8c108a040bcf", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "https://huggingface.co/Qwen/Qwen-Image-Layered/blob/8f0ca708dfff6ba1dd5f2d85d78f8c108a040bcf/README.md" + ], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "Qwen/Qwen-Image-Layered@8f0ca708dfff6ba1dd5f2d85d78f8c108a040bcf https://huggingface.co/Qwen/Qwen-Image-Layered/tree/8f0ca708dfff6ba1dd5f2d85d78f8c108a040bcf" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "b16dfc2b7c1c32272b8f79bc1bffbb60376e63f8cf1ab9d0bdf9aea07cccf5cd", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "qwen_layered_sunset_and_peaks" + }, { "path": "template-gallery/reviews/qwen_logo_texture.quality-review.json", "sha256": "sha256:bytes:27383d10d65bf5bcf81efb5a197751c3ad29476fd23f72cd8a937dc432e6f555", diff --git a/config/template-assets.v1.json b/config/template-assets.v1.json index 6a2f5847..ea195bbf 100644 --- a/config/template-assets.v1.json +++ b/config/template-assets.v1.json @@ -1880,6 +1880,17 @@ "width": 1024, "height": 1024 }, + { + "path": "template-gallery/inputs/qwen_layered_sunset_and_peaks.source.png", + "size": 11061, + "sha256": "sha256:bytes:67835db7f30072a35b1650c0a84e7f241c0b01fcf2c324964ddcd5f8424008b3", + "contentType": "image/png", + "purposes": [ + "runtime" + ], + "width": 1024, + "height": 1024 + }, { "path": "template-gallery/inputs/qwen_logo_texture.before.webp", "size": 57604, @@ -2330,6 +2341,50 @@ "width": 640, "height": 640 }, + { + "path": "template-gallery/layers/qwen_layered_sunset_and_peaks.layer-1.webp", + "size": 36622, + "sha256": "sha256:bytes:16ffd9f4a965c95164e51c9ee9d72295bc618972d3c67fb837c2df259187682c", + "contentType": "image/webp", + "purposes": [ + "runtime" + ], + "width": 1024, + "height": 1024 + }, + { + "path": "template-gallery/layers/qwen_layered_sunset_and_peaks.layer-2.webp", + "size": 257204, + "sha256": "sha256:bytes:866609c2307a1f016cac7eefc56401491f58a2e2d57abf0c20b6bdb0f9da057f", + "contentType": "image/webp", + "purposes": [ + "runtime" + ], + "width": 1024, + "height": 1024 + }, + { + "path": "template-gallery/layers/qwen_layered_sunset_and_peaks.layer-3.webp", + "size": 194496, + "sha256": "sha256:bytes:01b27cacca10c2ed53a8b9368d42697c2b13239113790d8291e20ccdb939a896", + "contentType": "image/webp", + "purposes": [ + "runtime" + ], + "width": 1024, + "height": 1024 + }, + { + "path": "template-gallery/layers/qwen_layered_sunset_and_peaks.layer-4.webp", + "size": 253762, + "sha256": "sha256:bytes:186040c0eb257ec0de53821e6f3b03a7720ab2fe03b54a1d0b71290c2e0eda5c", + "contentType": "image/webp", + "purposes": [ + "runtime" + ], + "width": 1024, + "height": 1024 + }, { "path": "template-gallery/lcm_dawn_alpine_lake.webp", "size": 119274, @@ -2614,8 +2669,8 @@ }, { "path": "template-gallery/manifest.json", - "size": 349730, - "sha256": "sha256:bytes:2f8c5d5a64412ebbd688cc81deb6d6d89fc9a5a1d8dccfcd6813b82a9e49740e", + "size": 352519, + "sha256": "sha256:bytes:828e7ee86bee6fae816fae7a00da1a7da8544b3429d44769fa888fd8732614c9", "contentType": "application/json", "purposes": [ "runtime", @@ -2807,6 +2862,17 @@ "width": 1536, "height": 1108 }, + { + "path": "template-gallery/qwen_layered_sunset_and_peaks.png", + "size": 322406, + "sha256": "sha256:bytes:5ccb86b18bc5f8a1c18376c72a0236ba9235a4904fef1a9e4f459ac31e2ede2d", + "contentType": "image/png", + "purposes": [ + "runtime" + ], + "width": 960, + "height": 710 + }, { "path": "template-gallery/qwen_logo_texture.webp", "size": 256582, @@ -5275,6 +5341,42 @@ "runtime" ] }, + { + "path": "template-gallery/reviews/qwen_layered_sunset_and_peaks.original-provenance.json", + "size": 2264, + "sha256": "sha256:bytes:9a4c058f2ba7bd3dace465219c32bd818493431063688b00741a9a9c4fb01794", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, + { + "path": "template-gallery/reviews/qwen_layered_sunset_and_peaks.original-review.json", + "size": 614, + "sha256": "sha256:bytes:faf0adb0a9c40691caf3ef8f96765406b3b5058aa9618cca5431ae83529a1bcb", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, + { + "path": "template-gallery/reviews/qwen_layered_sunset_and_peaks.quality-review.json", + "size": 2562, + "sha256": "sha256:bytes:326553aed7aab67e3eed777d7919e21fe02ff9ab837edd7f39bd7a2abece77f0", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, + { + "path": "template-gallery/reviews/qwen_layered_sunset_and_peaks.retained-template-provenance.json", + "size": 5700, + "sha256": "sha256:bytes:d6aaa0a0d9b84d10864e8a783ac82ac167b487f71d185bacd99cc035f8e22105", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, { "path": "template-gallery/reviews/qwen_logo_texture.quality-review.json", "size": 3936, @@ -8027,9 +8129,9 @@ "height": 640 } ], - "assetSetId": "sha256:canonical-json:590bbae6d7144864057e6c8e48842d8f113fca303aaebedbb685222da06f3ece", + "assetSetId": "sha256:canonical-json:d03def6ad163d7c88ee848138c806e5182df1f9d05589569aa0c504aca63960f", "status": "ready", - "assetCount": 821, - "totalBytes": 1055441325, + "assetCount": 831, + "totalBytes": 1056530805, "missingAssets": [] } diff --git a/public/template-gallery/manifest.json b/public/template-gallery/manifest.json index 342d9b39..9f21006d 100644 --- a/public/template-gallery/manifest.json +++ b/public/template-gallery/manifest.json @@ -4476,6 +4476,41 @@ "reviewedAt": "2026-11-25T05:51:53.933Z", "approvedOriginalReviewPath": "/template-gallery/reviews/longcat_last_tram_at_dusk.original-review.json", "approvedOriginalProvenancePath": "/template-gallery/reviews/longcat_last_tram_at_dusk.original-provenance.json" + }, + { + "templateId": "qwen_layered_sunset_and_peaks", + "templateLockHash": "tpl_831d4207", + "promptSettingsHash": "ps_9236bec4", + "modelRevision": "Qwen/Qwen-Image-Layered@8f0ca708dfff6ba1dd5f2d85d78f8c108a040bcf", + "runtimeFingerprint": "sha256:stable-runtime-v1:4ce7875bb2c87a85c7d597c5a3128bef36a1516ba9c40de1b222fd864cdbc4ed", + "graphHash": "sha256:canonical-graph-v1:25bb2ac3d10b3d0f539204d2c4d3181764f192882a9c8442efb5ce54b7d8de43", + "proofLockHash": "sha256:retained-template-association-v1:2d3503c2a33256e8c75f62ada660bac72093a6697145ef60e53ca6650ceec78b", + "backendSourceFingerprint": "sha256:backend-source-v1:ce7ac712b4620d0e8efb35022a558a551e2d4ae6ef20b844744c4d674527b0b3", + "backendContractFingerprint": "sha256:backend-contract-v1:7661a86f3aebb5f170346fc6078e665e006b56b7ff5bc4810db8692adf607dac", + "modelCommit": "8f0ca708dfff6ba1dd5f2d85d78f8c108a040bcf", + "templateRevisionHash": "4ee3847d935f7b245f5c9d9e156da8fe5d97dcb382ad890c59163e573a6c73c9", + "provenancePath": "/template-gallery/reviews/qwen_layered_sunset_and_peaks.retained-template-provenance.json", + "provenanceHash": "sha256:canonical-json:347496445e8609e7bbfd320b76750e94ff39dc105b8778f8e87de1bd96a787db", + "outputPath": "/template-gallery/qwen_layered_sunset_and_peaks.png", + "thumbnailPath": "/template-gallery/qwen_layered_sunset_and_peaks.png", + "mediaHash": "sha256:decoded-rgba:2d26a3448b81171cd9e5cf6ee3686c0bb53a84680f5cc1ac7b992b58b1a56c05", + "mediaType": "image", + "verificationTimestamp": "2026-11-24T23:35:50.453Z", + "verificationStatus": "reviewed", + "qualityReviewStatus": "approved_reviewed", + "qualityReviewHash": "sha256:canonical-json:a982010025cf6033321f04353c456cac70a351439015e4068757ef9a976f2063", + "qualityReviewPath": "/template-gallery/reviews/qwen_layered_sunset_and_peaks.quality-review.json", + "reviewer": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25T05:51:53.933Z", + "width": 960, + "height": 710, + "approvedOriginalReviewPath": "/template-gallery/reviews/qwen_layered_sunset_and_peaks.original-review.json", + "approvedOriginalProvenancePath": "/template-gallery/reviews/qwen_layered_sunset_and_peaks.original-provenance.json", + "approvedSourcePath": "/template-gallery/inputs/qwen_layered_sunset_and_peaks.source.png", + "approvedLayer1Path": "/template-gallery/layers/qwen_layered_sunset_and_peaks.layer-1.webp", + "approvedLayer2Path": "/template-gallery/layers/qwen_layered_sunset_and_peaks.layer-2.webp", + "approvedLayer3Path": "/template-gallery/layers/qwen_layered_sunset_and_peaks.layer-3.webp", + "approvedLayer4Path": "/template-gallery/layers/qwen_layered_sunset_and_peaks.layer-4.webp" } ] } diff --git a/scripts/retained-gallery-release.mjs b/scripts/retained-gallery-release.mjs index 875ee88f..6ebebbb6 100644 --- a/scripts/retained-gallery-release.mjs +++ b/scripts/retained-gallery-release.mjs @@ -64,7 +64,9 @@ function assertRetainedBatchEvidence({ association.review.draftProvenanceSha256, ); const inputHash = - association.output.inputEncodedSha256?.replace(/^sha256:bytes:/u, '') ?? association.privateSourceSha256; + association.output.inputEncodedSha256?.replace(/^sha256:bytes:/u, '') ?? + association.approvedFiles.approvedSourcePath?.sha256 ?? + association.privateSourceSha256; assert.equal(inputHash, recipe.inputSha256); assert.equal(association.approvedFiles.approvedMaskPath?.sha256, recipe.maskSha256); assert.equal(association.approvedFiles.approvedGuidePath?.sha256, recipe.guideSha256); @@ -108,7 +110,18 @@ function assertRetainedBatchEvidence({ assert.equal(nativeReceipt.inputBinding?.sha256, recipe.inputSha256, label); assert.equal(nativeReceipt.maskBinding?.sha256, recipe.maskSha256, label); assert.equal(nativeReceipt.guideBinding?.sha256, recipe.guideSha256, label); - if (association.output.mediaType === 'image') { + if (recipe.workflowId === 'QwenImageLayeredPipeline:layer_decomposition') { + const { orderedLayerItems } = association.output; + same(nativeReceipt.decodedOutput, { kind: 'image_collection', items: orderedLayerItems }, label); + assert.equal(orderedLayerItems.length, recipe.template.example.lockedSettings.layers, label); + for (const [index, layer] of orderedLayerItems.entries()) { + assert.equal( + association.approvedFiles[`approvedLayer${index + 1}Path`]?.sha256, + layer.encodedSha256, + label, + ); + } + } else if (association.output.mediaType === 'image') { assert.equal(nativeReceipt.decodedOutput.hash, association.output.decodedMediaHash, label); } if (association.output.mediaType === 'audio') { diff --git a/scripts/retained-gallery-templates.test.mjs b/scripts/retained-gallery-templates.test.mjs index 0e9809de..08f6bc0b 100644 --- a/scripts/retained-gallery-templates.test.mjs +++ b/scripts/retained-gallery-templates.test.mjs @@ -181,7 +181,7 @@ test('retained Gallery recipes preserve the native graph identities and standalo }); assert.equal(canonicalGraphIdentity(api).hash, recipe.retainedGraphHash, template.id); assert.deepEqual( - Object.values(capture.inputs) + Object.values(capture.inputs ?? [capture.input]) .map(({ file }) => file.sha256) .sort(), [recipe.inputSha256, recipe.maskSha256, recipe.guideSha256].filter(Boolean).sort(), @@ -269,6 +269,7 @@ test('fresh Expert recipes prepare with current backend specs and without a gene 'Inpaint', 'ControlGenerate', 'ControlInpaint', + 'LayerDecompose', 'UnconditionalGenerate', ].includes(payload.action), ); @@ -375,6 +376,7 @@ test('fresh Expert recipes prepare with current backend specs and without a gene 'Inpaint', 'ControlGenerate', 'ControlInpaint', + 'LayerDecompose', 'GenerateAnyToAny', 'GenerateImageVideoText', 'UnconditionalGenerate', @@ -382,6 +384,11 @@ test('fresh Expert recipes prepare with current backend specs and without a gene ); assert.equal(generation.params.prompt?.value ?? '', template.prompt); const locked = template.example.lockedSettings; + if (generation.action === 'LayerDecompose') { + assert.equal(generation.params.layers.value, locked.layers); + assert.equal(generation.params.cfg_normalize.value, false); + assert.equal(generation.params.use_en_prompt.value, false); + } if (generation.action === 'UnconditionalGenerate') { assert.equal(generation.params.num_inference_steps.value, locked.steps); assert.equal(Number(generation.params.seed.value), template.example.lockedSeed); diff --git a/src/studio/retainedGalleryApprovedBatch.ts b/src/studio/retainedGalleryApprovedBatch.ts index 7d9be714..33b157a2 100644 --- a/src/studio/retainedGalleryApprovedBatch.ts +++ b/src/studio/retainedGalleryApprovedBatch.ts @@ -3923,4 +3923,103 @@ export const APPROVED_RETAINED_BATCH: RetainedGalleryRecipe[] = [ "runtimeReuseKey": "sha256:canonical-graph-v1:2d149a078f6469b473a083b6116ef47452ae4ccc8a1ca0fc7b0ea416f5257515" } }, +{ + "workflowId": "QwenImageLayeredPipeline:layer_decomposition", + "sourceTaskTemplateId": "task-template:qwen-image-layered-direct:layer-decomposition:v1", + "retainedGraphHash": "sha256:canonical-graph-v1:25bb2ac3d10b3d0f539204d2c4d3181764f192882a9c8442efb5ce54b7d8de43", + "originalReceiptSha256": "826d487fed6b6f0ae2679d2eb842ad65208a9b5929b66722ad1d8e1c0242079e", + "reviewedTemplateSha256": "4ee3847d935f7b245f5c9d9e156da8fe5d97dcb382ad890c59163e573a6c73c9", + "reviewedCatalogLock": { + "templateLockHash": "tpl_54972ded", + "galleryTemplateLockHash": "tpl_831d4207", + "promptSettingsHash": "ps_9236bec4" + }, + "promptSha256": "10e30e8fbc0bcc8c1748851145c9b32a4d27da19cecd06da4d044f565cd2d745", + "inputSha256": "67835db7f30072a35b1650c0a84e7f241c0b01fcf2c324964ddcd5f8424008b3", + "inputLocatorSha256": "1584ce002870000a86ce56d7b6132b4e4920237e6b1c35f2269af9bbcc716aaf", + "template": { + "id": "qwen_layered_sunset_and_peaks", + "label": "Qwen Image Layered (Standard Diffusers) — Layer decomposition: Sunset and Peaks", + "mode": "layer_decomposition", + "modelType": "QwenImageLayeredPipeline", + "intentGroup": "reference_control", + "thumbnailVariant": "contactSheet", + "category": "layers", + "inputBindings": [ + { + "id": "source-image", + "label": "Source image", + "mediaType": "image", + "field": "referenceImages", + "origin": "user", + "requiredAt": "workflow_start", + "count": 1 + } + ], + "outputKinds": [ + "image", + "json" + ], + "readinessPolicy": "requires_input", + "modelArtifact": { + "source": "hub", + "value": "Qwen/Qwen-Image-Layered", + "revision": "8f0ca708dfff6ba1dd5f2d85d78f8c108a040bcf" + }, + "description": "Reproduce the reviewed Sunset and Peaks example with the saved prompt, settings and model revision.", + "prompt": "A bold vintage screen print with a burnt orange sun behind teal mountain silhouettes, a deep blue lake, and two dark foreground rocks. Crisp overlapping vector shapes, flat paper colors, square composition.", + "negativePrompt": "", + "example": { + "mediaType": "image", + "status": "unverified", + "modelRevision": "8f0ca708dfff6ba1dd5f2d85d78f8c108a040bcf", + "lockedSeed": 42, + "lockedSettings": { + "width": 1024, + "height": 1024, + "steps": 50, + "guidanceScale": 4, + "strength": 0.8, + "outputType": "pil", + "maxSequenceLength": 512, + "pagScale": 3, + "pagAdaptiveScale": 0, + "dtype": "bfloat16", + "resourceMode": "expert", + "quantizationMode": "none", + "autoOffload": true, + "offloadMode": "model_cpu", + "layers": 4 + }, + "expectedOutput": { + "width": 1024, + "height": 1024 + }, + "galleryExpectedOutput": { + "width": 960, + "height": 710 + }, + "runtimeEstimate": "300.12 seconds in the saved run" + }, + "requiredBackendCapabilities": [ + "modules.DiffusersImage.LayerDecompose", + "modules.DiffusersImage.LoadPipeline", + "modules.DiffusersRuntime.PipelineQuantizationConfigV2", + "modules.DiffusersRuntime.DiffusersExecutionRecipe", + "modules.Image.Load", + "modules.Image.Preview" + ], + "mediaSlots": [ + { + "id": "result", + "label": "Source and four ordered layers", + "kind": "image", + "role": "output", + "placeholder": "Result pending" + } + ], + "recipeSummary": "Reproduce the reviewed Sunset and Peaks example with the saved prompt, settings and model revision.", + "runtimeReuseKey": "sha256:canonical-graph-v1:25bb2ac3d10b3d0f539204d2c4d3181764f192882a9c8442efb5ce54b7d8de43" + } +}, ]; diff --git a/src/studio/templateAssetSource.json b/src/studio/templateAssetSource.json index 176738ec..0203ccb8 100644 --- a/src/studio/templateAssetSource.json +++ b/src/studio/templateAssetSource.json @@ -4,11 +4,11 @@ "localBasePath": "/template-gallery", "repoType": "dataset", "repoId": "sourav-das/modiff-template-gallery", - "revision": "197f94730a1c8978453177069ce902eee640fb04", + "revision": "632acebbc3b2f639f0bab3e6449d641c39e577f8", "pathPrefix": "template-gallery", "assetManifestPath": "_modiff/template-assets.v1.json", - "assetSetId": "sha256:canonical-json:302e5a29aad9f0e18f1825b6b2de74bdb640323eaeab792b202e96e4f34c7a45", - "completeAssetSetId": "sha256:canonical-json:590bbae6d7144864057e6c8e48842d8f113fca303aaebedbb685222da06f3ece", + "assetSetId": "sha256:canonical-json:b900f8baa2ce910e0c905d1a7d505727d7014fd1dc2be9709116cacf8a65b852", + "completeAssetSetId": "sha256:canonical-json:d03def6ad163d7c88ee848138c806e5182df1f9d05589569aa0c504aca63960f", "unavailableAssets": [ "template-gallery/ace_step_chinese_new_year_lora.card-poster.png", "template-gallery/ace_step_chinese_new_year_lora.wav", diff --git a/src/studio/types.ts b/src/studio/types.ts index b8db00e6..3fce13ad 100644 --- a/src/studio/types.ts +++ b/src/studio/types.ts @@ -261,6 +261,7 @@ export type StudioTemplateId = | 'kandinsky3_ginkgo_on_slate' | 'chroma_terracotta_and_blue' | 'longcat_last_tram_at_dusk' + | 'qwen_layered_sunset_and_peaks' | 'lumina2_larch_on_glacial_pond' | 'hunyuan_dit_coastal_lighthouse' | 'omnigen_tulips_after_rain' From baf27acb42f83504c22c79a04cee6ba7eac46272 Mon Sep 17 00:00:00 2001 From: Sourav Das Date: Wed, 25 Nov 2026 12:24:48 +0530 Subject: [PATCH 371/440] Register four approved native video previews --- .../retained-gallery-approved-batch.v1.json | 53 ++ ...etained-gallery-authoring-archives.v1.json | 20 + config/template-asset-rights.v1.json | 654 +++++++++++++++++- config/template-assets.v1.json | 232 ++++++- public/template-gallery/manifest.json | 135 ++++ scripts/retained-gallery-provenance.mjs | 10 +- scripts/retained-gallery-release.mjs | 9 + scripts/retained-gallery-templates.test.mjs | 54 +- scripts/source-video-timing.test.mjs | 23 + scripts/template-gallery-harness.mjs | 19 +- scripts/template-gallery-harness.test.mjs | 9 +- scripts/template-operation-fixtures.py | 4 + src/components/TemplateBrowserDialog.tsx | 10 +- src/studio/retainedGalleryApprovedBatch.ts | 407 +++++++++++ src/studio/retainedGalleryTemplates.ts | 1 + src/studio/retainedVideoPreview.ts | 40 ++ src/studio/templateAssetSource.json | 6 +- src/studio/templateExactness.ts | 31 +- src/studio/types.ts | 6 + .../live-backend/visual-stage-groups.spec.ts | 30 + 20 files changed, 1721 insertions(+), 32 deletions(-) create mode 100644 src/studio/retainedVideoPreview.ts diff --git a/config/retained-gallery-approved-batch.v1.json b/config/retained-gallery-approved-batch.v1.json index 7ee2e511..b8e1c242 100644 --- a/config/retained-gallery-approved-batch.v1.json +++ b/config/retained-gallery-approved-batch.v1.json @@ -597,5 +597,58 @@ "width": 960, "height": 710 } + }, + "cogvideox_mossy_mountain_stream": { + "associationSha256": "3f977ded1b8f4969d28fe1eaf21418c75d37b62dcfcc19c3b4c842433f25956e", + "backendSourceFingerprint": "sha256:backend-source-v1:70bc1ff7fe61307be52cfda86b38c6400f2156cbc8240a489b62ff19a93d58dc", + "backendContractFingerprint": "sha256:backend-contract-v1:40a4eb8d6275c83725f57c4d3499b8d12c00f8cf6caffc2d07006e74d24ab820", + "templateRevisionHash": "c77c843d9555524c9f9ce04c53af16c2ee6570d7ff9b72d90fba98fd1fc3d9cc", + "capturedAt": "2026-11-24T04:17:26.141Z", + "outputExtension": "mp4", + "outputSize": { + "width": 720, + "height": 480 + } + }, + "cogvideox_red_tram_model_railway": { + "associationSha256": "aa0c4b4cf84ee5f4b637092acd8a8e60db8360d4076a146d6388c97cb259a673", + "backendSourceFingerprint": "sha256:backend-source-v1:43f2ed10792fc6167b963166287cf7d5a0429afa26029e6455b0418e2123be86", + "backendContractFingerprint": "sha256:backend-contract-v1:33b2d430a6b544125220ee6627441eb2121c00e6cfb3aa7c2d54b08b7b2f1f09", + "templateRevisionHash": "d74131d9a94ae6422f0824a9948e9ee157fb765058f8d45e515fda25a93c25c6", + "capturedAt": "2026-11-24T02:42:22.051Z", + "outputExtension": "mp4", + "outputSize": { + "width": 720, + "height": 480 + }, + "inputSize": { + "width": 720, + "height": 480 + }, + "beforeExtension": "mp4" + }, + "wan_a14b_cloudbreak_over_the_ridges": { + "associationSha256": "2fdbcaf34bd1e2a3d31edf4196c3cf67c590053f1ba99eb75a2e001bd73d6384", + "backendSourceFingerprint": "sha256:backend-source-v1:b29a5b0d317aaa781ae2a5205b46b518eea5a3d68a214eb0968dba4ac0660af7", + "backendContractFingerprint": "sha256:backend-contract-v1:40a4eb8d6275c83725f57c4d3499b8d12c00f8cf6caffc2d07006e74d24ab820", + "templateRevisionHash": "2fe28c05a3adcb92031d2e5a369cf6be41990463644f08e5440bb998b32bc1fd", + "capturedAt": "2026-11-24T23:06:15.432Z", + "outputExtension": "mp4", + "outputSize": { + "width": 768, + "height": 512 + } + }, + "wan_flf_blue_hour_at_the_tram_shelter": { + "associationSha256": "386e6871df161c57a2ea8c632cb3d58873a0a450e8eac14d3fa27a2974aae9ab", + "backendSourceFingerprint": "sha256:backend-source-v1:b29a5b0d317aaa781ae2a5205b46b518eea5a3d68a214eb0968dba4ac0660af7", + "backendContractFingerprint": "sha256:backend-contract-v1:288f2abd0b142ec1f2081bf6d3dbf71ba988833662040e7e81688c4524cf0516", + "templateRevisionHash": "719322718cef9254b24004759f2eac08a4302ea27c86cbe538782207d29389f6", + "capturedAt": "2026-11-24T21:03:04.380Z", + "outputExtension": "mp4", + "outputSize": { + "width": 768, + "height": 512 + } } } diff --git a/config/retained-gallery-authoring-archives.v1.json b/config/retained-gallery-authoring-archives.v1.json index a762d14e..07049141 100644 --- a/config/retained-gallery-authoring-archives.v1.json +++ b/config/retained-gallery-authoring-archives.v1.json @@ -228,5 +228,25 @@ "descriptorSha256": "826d487fed6b6f0ae2679d2eb842ad65208a9b5929b66722ad1d8e1c0242079e", "bytes": 4857, "sha256": "49728a179b50f3b708d1baacdaa3863a1e9c6c3ef281e4a4d9efdc0a3fffd44d" + }, + "CogVideoXPipeline:text_to_video": { + "descriptorSha256": "3aab2d19bca49f839f8316f19ea75afbe4b0e401ff5a330c16f35484f43f611a", + "bytes": 4732, + "sha256": "4c24104fd8ecabb12b19fa1b978df2e5308f18fd86eb5e3388e9a39a4e1b36b4" + }, + "CogVideoXVideoToVideoPipeline:video_to_video": { + "descriptorSha256": "c4396b6f2b6b01fcdbcb5d7f370b6284be78d1979e4665a243c1e08193776e08", + "bytes": 5498, + "sha256": "0ea9626727160078f7717560d4e67272e29f5adc544cffcc5e4edde91eff93dc" + }, + "Wan22Pipeline:text_to_video": { + "descriptorSha256": "05008ca915711e27396ac9216f34931f91c5444efa2751e9fb4a26c2761a89c2", + "bytes": 4827, + "sha256": "bd8a43e99fcf4ea3fdebbdd52f0e6fc7c7775ec4b6d0f1707de1be3a354bb79a" + }, + "WanImage2VideoModularPipeline:image_to_video": { + "descriptorSha256": "63d626c3c97cd12016b58a9fba71739eeea0459ad300383d5b4f43aa0775740a", + "bytes": 5726, + "sha256": "37898b78c1e8df5ab9940aa2dbe7e467cd16e582c10e2156eca29ad967b6c8ba" } } diff --git a/config/template-asset-rights.v1.json b/config/template-asset-rights.v1.json index 32a94456..20a0e528 100644 --- a/config/template-asset-rights.v1.json +++ b/config/template-asset-rights.v1.json @@ -1,6 +1,6 @@ { "schemaVersion": 1, - "assetSetId": "sha256:canonical-json:d03def6ad163d7c88ee848138c806e5182df1f9d05589569aa0c504aca63960f", + "assetSetId": "sha256:canonical-json:415c599a910952e3eb8b060e3b04f91e6a85028a6e8dc1d180d5ad5fd11e73f4", "records": [ { "path": "template-gallery/ace_step_audio_continuation.wav", @@ -563,6 +563,60 @@ "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", "provenanceTemplateId": "cobalt_jug_and_lemons" }, + { + "path": "template-gallery/cogvideox_mossy_mountain_stream.mp4", + "sha256": "sha256:bytes:3b5e40ac2bf76236d1f901a7a2522addd7c4a1b2701bd89a33c1506b1523bc38", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Exact approved file captured from a saved MoDiff workflow", + "sourceUrl": "https://huggingface.co/zai-org/CogVideoX-2b/tree/1137dacfc2c9c012bed6a0793f4ecf2ca8e7ba01", + "sourceRevision": "zai-org/CogVideoX-2b@1137dacfc2c9c012bed6a0793f4ecf2ca8e7ba01", + "sourceLicense": "Maintainer-authorized file with publisher terms retained", + "modelTerms": [ + "Publisher model terms at https://huggingface.co/zai-org/CogVideoX-2b/tree/1137dacfc2c9c012bed6a0793f4ecf2ca8e7ba01" + ], + "aiGenerated": true, + "humanLikenessConsent": "synthetic", + "marks": [], + "requiredAttribution": [ + "zai-org/CogVideoX-2b@1137dacfc2c9c012bed6a0793f4ecf2ca8e7ba01 https://huggingface.co/zai-org/CogVideoX-2b/tree/1137dacfc2c9c012bed6a0793f4ecf2ca8e7ba01" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "ffeaa41a5c94b59135d2cdb15a5c7f79f073c15fd78792ce00a157398ab15d59", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "cogvideox_mossy_mountain_stream" + }, + { + "path": "template-gallery/cogvideox_red_tram_model_railway.mp4", + "sha256": "sha256:bytes:483437ccec5394217346dcd88e3bc42a003cba69a6056b1153de4cb5868d7825", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Exact approved file captured from a saved MoDiff workflow", + "sourceUrl": "https://huggingface.co/zai-org/CogVideoX-2b/tree/1137dacfc2c9c012bed6a0793f4ecf2ca8e7ba01", + "sourceRevision": "zai-org/CogVideoX-2b@1137dacfc2c9c012bed6a0793f4ecf2ca8e7ba01", + "sourceLicense": "Maintainer-authorized file with publisher terms retained", + "modelTerms": [ + "Publisher model terms at https://huggingface.co/zai-org/CogVideoX-2b/tree/1137dacfc2c9c012bed6a0793f4ecf2ca8e7ba01" + ], + "aiGenerated": true, + "humanLikenessConsent": "synthetic", + "marks": [], + "requiredAttribution": [ + "zai-org/CogVideoX-2b@1137dacfc2c9c012bed6a0793f4ecf2ca8e7ba01 https://huggingface.co/zai-org/CogVideoX-2b/tree/1137dacfc2c9c012bed6a0793f4ecf2ca8e7ba01" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "ffeaa41a5c94b59135d2cdb15a5c7f79f073c15fd78792ce00a157398ab15d59", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "cogvideox_red_tram_model_railway" + }, { "path": "template-gallery/copper_hour_dunes.webp", "sha256": "sha256:bytes:45eabeca35fe5982441c80158faa69bca6da1d7f2efb3002a81a8b5c03ae4ef2", @@ -3867,6 +3921,33 @@ "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", "provenanceTemplateId": "chroma_restored_cobalt_backdrop" }, + { + "path": "template-gallery/inputs/cogvideox_red_tram_model_railway.before.mp4", + "sha256": "sha256:bytes:0737fe1e6b127fd4f5f66043b8911e5c7e380e60d50eab7e6bc9ba62e830b9dd", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Exact approved file captured from a saved MoDiff workflow", + "sourceUrl": "https://huggingface.co/zai-org/CogVideoX-2b/tree/1137dacfc2c9c012bed6a0793f4ecf2ca8e7ba01", + "sourceRevision": "zai-org/CogVideoX-2b@1137dacfc2c9c012bed6a0793f4ecf2ca8e7ba01", + "sourceLicense": "Maintainer-authorized file with publisher terms retained", + "modelTerms": [ + "Publisher model terms at https://huggingface.co/zai-org/CogVideoX-2b/tree/1137dacfc2c9c012bed6a0793f4ecf2ca8e7ba01" + ], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "zai-org/CogVideoX-2b@1137dacfc2c9c012bed6a0793f4ecf2ca8e7ba01 https://huggingface.co/zai-org/CogVideoX-2b/tree/1137dacfc2c9c012bed6a0793f4ecf2ca8e7ba01" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "ffeaa41a5c94b59135d2cdb15a5c7f79f073c15fd78792ce00a157398ab15d59", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "cogvideox_red_tram_model_railway" + }, { "path": "template-gallery/inputs/flux2_klein_edit.before.png", "sha256": "sha256:bytes:d5ba3943d6c0a264860ba0cde18d87e2d9554a3f7328308f4d771e082a9e0c24", @@ -5483,6 +5564,60 @@ "publicationBasis": "Maintainer approved this exact saved Spandrel 2× technical preview and confirmed redistribution rights.", "provenanceTemplateId": "spandrel_x2_synthetic_gradient" }, + { + "path": "template-gallery/inputs/wan_flf_blue_hour_at_the_tram_shelter.first.png", + "sha256": "sha256:bytes:6d2c561cf33919ae42e773d95a0232799da3f2b92a23a94dad80902cfb73527a", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Exact approved file captured from a saved MoDiff workflow", + "sourceUrl": "https://huggingface.co/Wan-AI/Wan2.1-FLF2V-14B-720P-diffusers/tree/17c30769b1e0b5dcaa1799b117bf20a9c31f59d7", + "sourceRevision": "Wan-AI/Wan2.1-FLF2V-14B-720P-diffusers@17c30769b1e0b5dcaa1799b117bf20a9c31f59d7", + "sourceLicense": "Maintainer-authorized file with publisher terms retained", + "modelTerms": [ + "Publisher model terms at https://huggingface.co/Wan-AI/Wan2.1-FLF2V-14B-720P-diffusers/tree/17c30769b1e0b5dcaa1799b117bf20a9c31f59d7" + ], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "Wan-AI/Wan2.1-FLF2V-14B-720P-diffusers@17c30769b1e0b5dcaa1799b117bf20a9c31f59d7 https://huggingface.co/Wan-AI/Wan2.1-FLF2V-14B-720P-diffusers/tree/17c30769b1e0b5dcaa1799b117bf20a9c31f59d7" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "ffeaa41a5c94b59135d2cdb15a5c7f79f073c15fd78792ce00a157398ab15d59", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "wan_flf_blue_hour_at_the_tram_shelter" + }, + { + "path": "template-gallery/inputs/wan_flf_blue_hour_at_the_tram_shelter.last.png", + "sha256": "sha256:bytes:191b023efb43a42288799877db722b9a2608d2970740246322ef38cc7c68c590", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Exact approved file captured from a saved MoDiff workflow", + "sourceUrl": "https://huggingface.co/Wan-AI/Wan2.1-FLF2V-14B-720P-diffusers/tree/17c30769b1e0b5dcaa1799b117bf20a9c31f59d7", + "sourceRevision": "Wan-AI/Wan2.1-FLF2V-14B-720P-diffusers@17c30769b1e0b5dcaa1799b117bf20a9c31f59d7", + "sourceLicense": "Maintainer-authorized file with publisher terms retained", + "modelTerms": [ + "Publisher model terms at https://huggingface.co/Wan-AI/Wan2.1-FLF2V-14B-720P-diffusers/tree/17c30769b1e0b5dcaa1799b117bf20a9c31f59d7" + ], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "Wan-AI/Wan2.1-FLF2V-14B-720P-diffusers@17c30769b1e0b5dcaa1799b117bf20a9c31f59d7 https://huggingface.co/Wan-AI/Wan2.1-FLF2V-14B-720P-diffusers/tree/17c30769b1e0b5dcaa1799b117bf20a9c31f59d7" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "ffeaa41a5c94b59135d2cdb15a5c7f79f073c15fd78792ce00a157398ab15d59", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "wan_flf_blue_hour_at_the_tram_shelter" + }, { "path": "template-gallery/inputs/wan_vace_grayscale_control.before.mp4", "sha256": "sha256:bytes:748b164fd91bc2eed97f7c1d1125a04496a056f29cc016d7cc0da3734c2303b7", @@ -6725,7 +6860,7 @@ }, { "path": "template-gallery/manifest.json", - "sha256": "sha256:bytes:828e7ee86bee6fae816fae7a00da1a7da8544b3429d44769fa888fd8732614c9", + "sha256": "sha256:bytes:5b8154a4401935520d771e9186a75b29f282369c4cbb6a86d07f333bd4c44490", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", @@ -6742,7 +6877,7 @@ "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "b16dfc2b7c1c32272b8f79bc1bffbb60376e63f8cf1ab9d0bdf9aea07cccf5cd", + "humanApprovalPacketSHA256": "ffeaa41a5c94b59135d2cdb15a5c7f79f073c15fd78792ce00a157398ab15d59", "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained." }, { @@ -6935,6 +7070,33 @@ "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", "provenanceTemplateId": "porcelain_on_slate_linen" }, + { + "path": "template-gallery/posters/wan_a14b_cloudbreak_over_the_ridges.png", + "sha256": "sha256:bytes:c824b505dc5145519de68ecdd4eb3618f214bc8e3aa6a8fd8fada7433b1f509e", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Exact approved file captured from a saved MoDiff workflow", + "sourceUrl": "https://huggingface.co/Wan-AI/Wan2.2-T2V-A14B-Diffusers/tree/5be7df9619b54f4e2667b2755bc6a756675b5cd7", + "sourceRevision": "Wan-AI/Wan2.2-T2V-A14B-Diffusers@5be7df9619b54f4e2667b2755bc6a756675b5cd7", + "sourceLicense": "Maintainer-authorized file with publisher terms retained", + "modelTerms": [ + "Publisher model terms at https://huggingface.co/Wan-AI/Wan2.2-T2V-A14B-Diffusers/tree/5be7df9619b54f4e2667b2755bc6a756675b5cd7" + ], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "Wan-AI/Wan2.2-T2V-A14B-Diffusers@5be7df9619b54f4e2667b2755bc6a756675b5cd7 https://huggingface.co/Wan-AI/Wan2.2-T2V-A14B-Diffusers/tree/5be7df9619b54f4e2667b2755bc6a756675b5cd7" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "ffeaa41a5c94b59135d2cdb15a5c7f79f073c15fd78792ce00a157398ab15d59", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "wan_a14b_cloudbreak_over_the_ridges" + }, { "path": "template-gallery/quiet_current.webp", "sha256": "sha256:bytes:c4db3876adb54a5f2bb9449ab4865601a24c2b486440f5c04d939a42a7f299a4", @@ -9072,6 +9234,222 @@ "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", "provenanceTemplateId": "cobalt_jug_and_lemons" }, + { + "path": "template-gallery/reviews/cogvideox_mossy_mountain_stream.original-provenance.json", + "sha256": "sha256:bytes:33e7bae227d98d35af005ca13238e9adfb288160165643330621b871c48ac32c", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/zai-org/CogVideoX-2b/tree/1137dacfc2c9c012bed6a0793f4ecf2ca8e7ba01", + "sourceRevision": "zai-org/CogVideoX-2b@1137dacfc2c9c012bed6a0793f4ecf2ca8e7ba01", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "Publisher model terms at https://huggingface.co/zai-org/CogVideoX-2b/tree/1137dacfc2c9c012bed6a0793f4ecf2ca8e7ba01" + ], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "zai-org/CogVideoX-2b@1137dacfc2c9c012bed6a0793f4ecf2ca8e7ba01 https://huggingface.co/zai-org/CogVideoX-2b/tree/1137dacfc2c9c012bed6a0793f4ecf2ca8e7ba01" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "ffeaa41a5c94b59135d2cdb15a5c7f79f073c15fd78792ce00a157398ab15d59", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "cogvideox_mossy_mountain_stream" + }, + { + "path": "template-gallery/reviews/cogvideox_mossy_mountain_stream.original-review.json", + "sha256": "sha256:bytes:3678c4a805bb1d6b4205c0d3d97df2f559b65740a7519ba19674456c26d54d13", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/zai-org/CogVideoX-2b/tree/1137dacfc2c9c012bed6a0793f4ecf2ca8e7ba01", + "sourceRevision": "zai-org/CogVideoX-2b@1137dacfc2c9c012bed6a0793f4ecf2ca8e7ba01", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "Publisher model terms at https://huggingface.co/zai-org/CogVideoX-2b/tree/1137dacfc2c9c012bed6a0793f4ecf2ca8e7ba01" + ], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "zai-org/CogVideoX-2b@1137dacfc2c9c012bed6a0793f4ecf2ca8e7ba01 https://huggingface.co/zai-org/CogVideoX-2b/tree/1137dacfc2c9c012bed6a0793f4ecf2ca8e7ba01" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "ffeaa41a5c94b59135d2cdb15a5c7f79f073c15fd78792ce00a157398ab15d59", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "cogvideox_mossy_mountain_stream" + }, + { + "path": "template-gallery/reviews/cogvideox_mossy_mountain_stream.quality-review.json", + "sha256": "sha256:bytes:43fcf40d6bec403f203be3b2386ef27e345752c5dc53882ab2df45537dcbfcd1", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/zai-org/CogVideoX-2b/tree/1137dacfc2c9c012bed6a0793f4ecf2ca8e7ba01", + "sourceRevision": "zai-org/CogVideoX-2b@1137dacfc2c9c012bed6a0793f4ecf2ca8e7ba01", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "Publisher model terms at https://huggingface.co/zai-org/CogVideoX-2b/tree/1137dacfc2c9c012bed6a0793f4ecf2ca8e7ba01" + ], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "zai-org/CogVideoX-2b@1137dacfc2c9c012bed6a0793f4ecf2ca8e7ba01 https://huggingface.co/zai-org/CogVideoX-2b/tree/1137dacfc2c9c012bed6a0793f4ecf2ca8e7ba01" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "ffeaa41a5c94b59135d2cdb15a5c7f79f073c15fd78792ce00a157398ab15d59", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "cogvideox_mossy_mountain_stream" + }, + { + "path": "template-gallery/reviews/cogvideox_mossy_mountain_stream.retained-template-provenance.json", + "sha256": "sha256:bytes:2e96867659142d6f562c4607f0db301aa2f003bfb9c4f29f333751365a5d7b66", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/zai-org/CogVideoX-2b/tree/1137dacfc2c9c012bed6a0793f4ecf2ca8e7ba01", + "sourceRevision": "zai-org/CogVideoX-2b@1137dacfc2c9c012bed6a0793f4ecf2ca8e7ba01", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "Publisher model terms at https://huggingface.co/zai-org/CogVideoX-2b/tree/1137dacfc2c9c012bed6a0793f4ecf2ca8e7ba01" + ], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "zai-org/CogVideoX-2b@1137dacfc2c9c012bed6a0793f4ecf2ca8e7ba01 https://huggingface.co/zai-org/CogVideoX-2b/tree/1137dacfc2c9c012bed6a0793f4ecf2ca8e7ba01" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "ffeaa41a5c94b59135d2cdb15a5c7f79f073c15fd78792ce00a157398ab15d59", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "cogvideox_mossy_mountain_stream" + }, + { + "path": "template-gallery/reviews/cogvideox_red_tram_model_railway.original-provenance.json", + "sha256": "sha256:bytes:b63d433a2ae3627d260abf77dca4bca8ded0798a3449e9fb5b460628c5a2fa08", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/zai-org/CogVideoX-2b/tree/1137dacfc2c9c012bed6a0793f4ecf2ca8e7ba01", + "sourceRevision": "zai-org/CogVideoX-2b@1137dacfc2c9c012bed6a0793f4ecf2ca8e7ba01", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "Publisher model terms at https://huggingface.co/zai-org/CogVideoX-2b/tree/1137dacfc2c9c012bed6a0793f4ecf2ca8e7ba01" + ], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "zai-org/CogVideoX-2b@1137dacfc2c9c012bed6a0793f4ecf2ca8e7ba01 https://huggingface.co/zai-org/CogVideoX-2b/tree/1137dacfc2c9c012bed6a0793f4ecf2ca8e7ba01" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "ffeaa41a5c94b59135d2cdb15a5c7f79f073c15fd78792ce00a157398ab15d59", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "cogvideox_red_tram_model_railway" + }, + { + "path": "template-gallery/reviews/cogvideox_red_tram_model_railway.original-review.json", + "sha256": "sha256:bytes:0b2030e77910993ce5e1947c5378e06ab488e1243b79e67cc6edd44c3cd8d462", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/zai-org/CogVideoX-2b/tree/1137dacfc2c9c012bed6a0793f4ecf2ca8e7ba01", + "sourceRevision": "zai-org/CogVideoX-2b@1137dacfc2c9c012bed6a0793f4ecf2ca8e7ba01", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "Publisher model terms at https://huggingface.co/zai-org/CogVideoX-2b/tree/1137dacfc2c9c012bed6a0793f4ecf2ca8e7ba01" + ], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "zai-org/CogVideoX-2b@1137dacfc2c9c012bed6a0793f4ecf2ca8e7ba01 https://huggingface.co/zai-org/CogVideoX-2b/tree/1137dacfc2c9c012bed6a0793f4ecf2ca8e7ba01" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "ffeaa41a5c94b59135d2cdb15a5c7f79f073c15fd78792ce00a157398ab15d59", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "cogvideox_red_tram_model_railway" + }, + { + "path": "template-gallery/reviews/cogvideox_red_tram_model_railway.quality-review.json", + "sha256": "sha256:bytes:56466f759c750421f135ebf3069202ae9eb0374a9f2ee4327b95b0490ec3a583", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/zai-org/CogVideoX-2b/tree/1137dacfc2c9c012bed6a0793f4ecf2ca8e7ba01", + "sourceRevision": "zai-org/CogVideoX-2b@1137dacfc2c9c012bed6a0793f4ecf2ca8e7ba01", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "Publisher model terms at https://huggingface.co/zai-org/CogVideoX-2b/tree/1137dacfc2c9c012bed6a0793f4ecf2ca8e7ba01" + ], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "zai-org/CogVideoX-2b@1137dacfc2c9c012bed6a0793f4ecf2ca8e7ba01 https://huggingface.co/zai-org/CogVideoX-2b/tree/1137dacfc2c9c012bed6a0793f4ecf2ca8e7ba01" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "ffeaa41a5c94b59135d2cdb15a5c7f79f073c15fd78792ce00a157398ab15d59", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "cogvideox_red_tram_model_railway" + }, + { + "path": "template-gallery/reviews/cogvideox_red_tram_model_railway.retained-template-provenance.json", + "sha256": "sha256:bytes:71ff0983139861b9a21d9b2882974bb5e96d11903563df161578818d795a1290", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/zai-org/CogVideoX-2b/tree/1137dacfc2c9c012bed6a0793f4ecf2ca8e7ba01", + "sourceRevision": "zai-org/CogVideoX-2b@1137dacfc2c9c012bed6a0793f4ecf2ca8e7ba01", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "Publisher model terms at https://huggingface.co/zai-org/CogVideoX-2b/tree/1137dacfc2c9c012bed6a0793f4ecf2ca8e7ba01" + ], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "zai-org/CogVideoX-2b@1137dacfc2c9c012bed6a0793f4ecf2ca8e7ba01 https://huggingface.co/zai-org/CogVideoX-2b/tree/1137dacfc2c9c012bed6a0793f4ecf2ca8e7ba01" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "ffeaa41a5c94b59135d2cdb15a5c7f79f073c15fd78792ce00a157398ab15d59", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "cogvideox_red_tram_model_railway" + }, { "path": "template-gallery/reviews/copper_hour_dunes.original-provenance.json", "sha256": "sha256:bytes:6223329bd7a1a962703aefba1379c33dae7f57daa40a09aa8e77c1cdd05b099c", @@ -16398,6 +16776,222 @@ "reviewClass": "standard-human-attestation", "provenanceTemplateId": "wan_22_ti2v_5b_seed_vault" }, + { + "path": "template-gallery/reviews/wan_a14b_cloudbreak_over_the_ridges.original-provenance.json", + "sha256": "sha256:bytes:865acf7a0ce08eb184068a1dea15a3f7327c627d39056a104856e226f845e312", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/Wan-AI/Wan2.2-T2V-A14B-Diffusers/tree/5be7df9619b54f4e2667b2755bc6a756675b5cd7", + "sourceRevision": "Wan-AI/Wan2.2-T2V-A14B-Diffusers@5be7df9619b54f4e2667b2755bc6a756675b5cd7", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "Publisher model terms at https://huggingface.co/Wan-AI/Wan2.2-T2V-A14B-Diffusers/tree/5be7df9619b54f4e2667b2755bc6a756675b5cd7" + ], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "Wan-AI/Wan2.2-T2V-A14B-Diffusers@5be7df9619b54f4e2667b2755bc6a756675b5cd7 https://huggingface.co/Wan-AI/Wan2.2-T2V-A14B-Diffusers/tree/5be7df9619b54f4e2667b2755bc6a756675b5cd7" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "ffeaa41a5c94b59135d2cdb15a5c7f79f073c15fd78792ce00a157398ab15d59", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "wan_a14b_cloudbreak_over_the_ridges" + }, + { + "path": "template-gallery/reviews/wan_a14b_cloudbreak_over_the_ridges.original-review.json", + "sha256": "sha256:bytes:f34e7a0de89fb4c48b70237f53f6db6f4de06d26ad7c6f582c6f7a6513f780ba", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/Wan-AI/Wan2.2-T2V-A14B-Diffusers/tree/5be7df9619b54f4e2667b2755bc6a756675b5cd7", + "sourceRevision": "Wan-AI/Wan2.2-T2V-A14B-Diffusers@5be7df9619b54f4e2667b2755bc6a756675b5cd7", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "Publisher model terms at https://huggingface.co/Wan-AI/Wan2.2-T2V-A14B-Diffusers/tree/5be7df9619b54f4e2667b2755bc6a756675b5cd7" + ], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "Wan-AI/Wan2.2-T2V-A14B-Diffusers@5be7df9619b54f4e2667b2755bc6a756675b5cd7 https://huggingface.co/Wan-AI/Wan2.2-T2V-A14B-Diffusers/tree/5be7df9619b54f4e2667b2755bc6a756675b5cd7" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "ffeaa41a5c94b59135d2cdb15a5c7f79f073c15fd78792ce00a157398ab15d59", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "wan_a14b_cloudbreak_over_the_ridges" + }, + { + "path": "template-gallery/reviews/wan_a14b_cloudbreak_over_the_ridges.quality-review.json", + "sha256": "sha256:bytes:f6b307987e3779cdf108f2c9832d960e3a3d53087267a6e38446aeb43a05c5b6", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/Wan-AI/Wan2.2-T2V-A14B-Diffusers/tree/5be7df9619b54f4e2667b2755bc6a756675b5cd7", + "sourceRevision": "Wan-AI/Wan2.2-T2V-A14B-Diffusers@5be7df9619b54f4e2667b2755bc6a756675b5cd7", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "Publisher model terms at https://huggingface.co/Wan-AI/Wan2.2-T2V-A14B-Diffusers/tree/5be7df9619b54f4e2667b2755bc6a756675b5cd7" + ], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "Wan-AI/Wan2.2-T2V-A14B-Diffusers@5be7df9619b54f4e2667b2755bc6a756675b5cd7 https://huggingface.co/Wan-AI/Wan2.2-T2V-A14B-Diffusers/tree/5be7df9619b54f4e2667b2755bc6a756675b5cd7" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "ffeaa41a5c94b59135d2cdb15a5c7f79f073c15fd78792ce00a157398ab15d59", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "wan_a14b_cloudbreak_over_the_ridges" + }, + { + "path": "template-gallery/reviews/wan_a14b_cloudbreak_over_the_ridges.retained-template-provenance.json", + "sha256": "sha256:bytes:179c61ab54e5174a0c8504960903d5abf55bb04033116946d8a0fd5c994a7c70", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/Wan-AI/Wan2.2-T2V-A14B-Diffusers/tree/5be7df9619b54f4e2667b2755bc6a756675b5cd7", + "sourceRevision": "Wan-AI/Wan2.2-T2V-A14B-Diffusers@5be7df9619b54f4e2667b2755bc6a756675b5cd7", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "Publisher model terms at https://huggingface.co/Wan-AI/Wan2.2-T2V-A14B-Diffusers/tree/5be7df9619b54f4e2667b2755bc6a756675b5cd7" + ], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "Wan-AI/Wan2.2-T2V-A14B-Diffusers@5be7df9619b54f4e2667b2755bc6a756675b5cd7 https://huggingface.co/Wan-AI/Wan2.2-T2V-A14B-Diffusers/tree/5be7df9619b54f4e2667b2755bc6a756675b5cd7" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "ffeaa41a5c94b59135d2cdb15a5c7f79f073c15fd78792ce00a157398ab15d59", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "wan_a14b_cloudbreak_over_the_ridges" + }, + { + "path": "template-gallery/reviews/wan_flf_blue_hour_at_the_tram_shelter.original-provenance.json", + "sha256": "sha256:bytes:556edbb96784d97900a95f4c3cdf618102ae2f492b2791a67ef5cd9e258f3dfb", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/Wan-AI/Wan2.1-FLF2V-14B-720P-diffusers/tree/17c30769b1e0b5dcaa1799b117bf20a9c31f59d7", + "sourceRevision": "Wan-AI/Wan2.1-FLF2V-14B-720P-diffusers@17c30769b1e0b5dcaa1799b117bf20a9c31f59d7", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "Publisher model terms at https://huggingface.co/Wan-AI/Wan2.1-FLF2V-14B-720P-diffusers/tree/17c30769b1e0b5dcaa1799b117bf20a9c31f59d7" + ], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "Wan-AI/Wan2.1-FLF2V-14B-720P-diffusers@17c30769b1e0b5dcaa1799b117bf20a9c31f59d7 https://huggingface.co/Wan-AI/Wan2.1-FLF2V-14B-720P-diffusers/tree/17c30769b1e0b5dcaa1799b117bf20a9c31f59d7" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "ffeaa41a5c94b59135d2cdb15a5c7f79f073c15fd78792ce00a157398ab15d59", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "wan_flf_blue_hour_at_the_tram_shelter" + }, + { + "path": "template-gallery/reviews/wan_flf_blue_hour_at_the_tram_shelter.original-review.json", + "sha256": "sha256:bytes:70b7a63ed50e5c3ccd8c706fd07917afec3ac8ef088d33b28b8d22d57f800548", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/Wan-AI/Wan2.1-FLF2V-14B-720P-diffusers/tree/17c30769b1e0b5dcaa1799b117bf20a9c31f59d7", + "sourceRevision": "Wan-AI/Wan2.1-FLF2V-14B-720P-diffusers@17c30769b1e0b5dcaa1799b117bf20a9c31f59d7", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "Publisher model terms at https://huggingface.co/Wan-AI/Wan2.1-FLF2V-14B-720P-diffusers/tree/17c30769b1e0b5dcaa1799b117bf20a9c31f59d7" + ], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "Wan-AI/Wan2.1-FLF2V-14B-720P-diffusers@17c30769b1e0b5dcaa1799b117bf20a9c31f59d7 https://huggingface.co/Wan-AI/Wan2.1-FLF2V-14B-720P-diffusers/tree/17c30769b1e0b5dcaa1799b117bf20a9c31f59d7" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "ffeaa41a5c94b59135d2cdb15a5c7f79f073c15fd78792ce00a157398ab15d59", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "wan_flf_blue_hour_at_the_tram_shelter" + }, + { + "path": "template-gallery/reviews/wan_flf_blue_hour_at_the_tram_shelter.quality-review.json", + "sha256": "sha256:bytes:a549ff13492e46da3c707f861fb33fd71411034ffb96a81550d7a16fcd79cf12", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/Wan-AI/Wan2.1-FLF2V-14B-720P-diffusers/tree/17c30769b1e0b5dcaa1799b117bf20a9c31f59d7", + "sourceRevision": "Wan-AI/Wan2.1-FLF2V-14B-720P-diffusers@17c30769b1e0b5dcaa1799b117bf20a9c31f59d7", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "Publisher model terms at https://huggingface.co/Wan-AI/Wan2.1-FLF2V-14B-720P-diffusers/tree/17c30769b1e0b5dcaa1799b117bf20a9c31f59d7" + ], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "Wan-AI/Wan2.1-FLF2V-14B-720P-diffusers@17c30769b1e0b5dcaa1799b117bf20a9c31f59d7 https://huggingface.co/Wan-AI/Wan2.1-FLF2V-14B-720P-diffusers/tree/17c30769b1e0b5dcaa1799b117bf20a9c31f59d7" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "ffeaa41a5c94b59135d2cdb15a5c7f79f073c15fd78792ce00a157398ab15d59", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "wan_flf_blue_hour_at_the_tram_shelter" + }, + { + "path": "template-gallery/reviews/wan_flf_blue_hour_at_the_tram_shelter.retained-template-provenance.json", + "sha256": "sha256:bytes:e4deed2284f9ae122cbb97a82049d7407fdec05f34d332f8225b40fd40b13820", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/Wan-AI/Wan2.1-FLF2V-14B-720P-diffusers/tree/17c30769b1e0b5dcaa1799b117bf20a9c31f59d7", + "sourceRevision": "Wan-AI/Wan2.1-FLF2V-14B-720P-diffusers@17c30769b1e0b5dcaa1799b117bf20a9c31f59d7", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "Publisher model terms at https://huggingface.co/Wan-AI/Wan2.1-FLF2V-14B-720P-diffusers/tree/17c30769b1e0b5dcaa1799b117bf20a9c31f59d7" + ], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "Wan-AI/Wan2.1-FLF2V-14B-720P-diffusers@17c30769b1e0b5dcaa1799b117bf20a9c31f59d7 https://huggingface.co/Wan-AI/Wan2.1-FLF2V-14B-720P-diffusers/tree/17c30769b1e0b5dcaa1799b117bf20a9c31f59d7" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "ffeaa41a5c94b59135d2cdb15a5c7f79f073c15fd78792ce00a157398ab15d59", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "wan_flf_blue_hour_at_the_tram_shelter" + }, { "creatorOrRightsholder": "MoDiff project maintainers", "creationMethod": "Project-authored redacted technical/review records or versioned declarations for seven maintainer-accepted native video replacements", @@ -20076,6 +20670,60 @@ "reviewClass": "standard-human-attestation", "provenanceTemplateId": "wan_22_ti2v_5b_seed_vault" }, + { + "path": "template-gallery/wan_a14b_cloudbreak_over_the_ridges.mp4", + "sha256": "sha256:bytes:fb2da087759066d72082f0b3e9894204f9e8cc448153b43730c06522483c254f", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Exact approved file captured from a saved MoDiff workflow", + "sourceUrl": "https://huggingface.co/Wan-AI/Wan2.2-T2V-A14B-Diffusers/tree/5be7df9619b54f4e2667b2755bc6a756675b5cd7", + "sourceRevision": "Wan-AI/Wan2.2-T2V-A14B-Diffusers@5be7df9619b54f4e2667b2755bc6a756675b5cd7", + "sourceLicense": "Maintainer-authorized file with publisher terms retained", + "modelTerms": [ + "Publisher model terms at https://huggingface.co/Wan-AI/Wan2.2-T2V-A14B-Diffusers/tree/5be7df9619b54f4e2667b2755bc6a756675b5cd7" + ], + "aiGenerated": true, + "humanLikenessConsent": "synthetic", + "marks": [], + "requiredAttribution": [ + "Wan-AI/Wan2.2-T2V-A14B-Diffusers@5be7df9619b54f4e2667b2755bc6a756675b5cd7 https://huggingface.co/Wan-AI/Wan2.2-T2V-A14B-Diffusers/tree/5be7df9619b54f4e2667b2755bc6a756675b5cd7" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "ffeaa41a5c94b59135d2cdb15a5c7f79f073c15fd78792ce00a157398ab15d59", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "wan_a14b_cloudbreak_over_the_ridges" + }, + { + "path": "template-gallery/wan_flf_blue_hour_at_the_tram_shelter.mp4", + "sha256": "sha256:bytes:a356ce3baa0be0556829715ccc72f1a9ccbe99625315cca04e3ee33a4e83f550", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Exact approved file captured from a saved MoDiff workflow", + "sourceUrl": "https://huggingface.co/Wan-AI/Wan2.1-FLF2V-14B-720P-diffusers/tree/17c30769b1e0b5dcaa1799b117bf20a9c31f59d7", + "sourceRevision": "Wan-AI/Wan2.1-FLF2V-14B-720P-diffusers@17c30769b1e0b5dcaa1799b117bf20a9c31f59d7", + "sourceLicense": "Maintainer-authorized file with publisher terms retained", + "modelTerms": [ + "Publisher model terms at https://huggingface.co/Wan-AI/Wan2.1-FLF2V-14B-720P-diffusers/tree/17c30769b1e0b5dcaa1799b117bf20a9c31f59d7" + ], + "aiGenerated": true, + "humanLikenessConsent": "synthetic", + "marks": [], + "requiredAttribution": [ + "Wan-AI/Wan2.1-FLF2V-14B-720P-diffusers@17c30769b1e0b5dcaa1799b117bf20a9c31f59d7 https://huggingface.co/Wan-AI/Wan2.1-FLF2V-14B-720P-diffusers/tree/17c30769b1e0b5dcaa1799b117bf20a9c31f59d7" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "ffeaa41a5c94b59135d2cdb15a5c7f79f073c15fd78792ce00a157398ab15d59", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "wan_flf_blue_hour_at_the_tram_shelter" + }, { "path": "template-gallery/wan_vace_cinematic_text_to_video.card-poster.png", "sha256": "sha256:bytes:50ddf968f99584f43293e02746d3629fc3dd315a238a6aabc29bb680f3609f6e", diff --git a/config/template-assets.v1.json b/config/template-assets.v1.json index ea195bbf..6c00ab66 100644 --- a/config/template-assets.v1.json +++ b/config/template-assets.v1.json @@ -230,6 +230,24 @@ "width": 512, "height": 512 }, + { + "path": "template-gallery/cogvideox_mossy_mountain_stream.mp4", + "size": 579374, + "sha256": "sha256:bytes:3b5e40ac2bf76236d1f901a7a2522addd7c4a1b2701bd89a33c1506b1523bc38", + "contentType": "video/mp4", + "purposes": [ + "runtime" + ] + }, + { + "path": "template-gallery/cogvideox_red_tram_model_railway.mp4", + "size": 105659, + "sha256": "sha256:bytes:483437ccec5394217346dcd88e3bc42a003cba69a6056b1153de4cb5868d7825", + "contentType": "video/mp4", + "purposes": [ + "runtime" + ] + }, { "path": "template-gallery/copper_hour_dunes.webp", "size": 135298, @@ -1513,6 +1531,15 @@ "width": 1024, "height": 1024 }, + { + "path": "template-gallery/inputs/cogvideox_red_tram_model_railway.before.mp4", + "size": 78771, + "sha256": "sha256:bytes:0737fe1e6b127fd4f5f66043b8911e5c7e380e60d50eab7e6bc9ba62e830b9dd", + "contentType": "video/mp4", + "purposes": [ + "runtime" + ] + }, { "path": "template-gallery/inputs/flux2_klein_edit.before.png", "size": 266188, @@ -2188,6 +2215,28 @@ "width": 64, "height": 48 }, + { + "path": "template-gallery/inputs/wan_flf_blue_hour_at_the_tram_shelter.first.png", + "size": 695609, + "sha256": "sha256:bytes:6d2c561cf33919ae42e773d95a0232799da3f2b92a23a94dad80902cfb73527a", + "contentType": "image/png", + "purposes": [ + "runtime" + ], + "width": 768, + "height": 512 + }, + { + "path": "template-gallery/inputs/wan_flf_blue_hour_at_the_tram_shelter.last.png", + "size": 659773, + "sha256": "sha256:bytes:191b023efb43a42288799877db722b9a2608d2970740246322ef38cc7c68c590", + "contentType": "image/png", + "purposes": [ + "runtime" + ], + "width": 768, + "height": 512 + }, { "path": "template-gallery/inputs/wan_vace_grayscale_control.before.mp4", "size": 289576, @@ -2669,8 +2718,8 @@ }, { "path": "template-gallery/manifest.json", - "size": 352519, - "sha256": "sha256:bytes:828e7ee86bee6fae816fae7a00da1a7da8544b3429d44769fa888fd8732614c9", + "size": 362791, + "sha256": "sha256:bytes:5b8154a4401935520d771e9186a75b29f282369c4cbb6a86d07f333bd4c44490", "contentType": "application/json", "purposes": [ "runtime", @@ -2752,6 +2801,17 @@ "width": 512, "height": 512 }, + { + "path": "template-gallery/posters/wan_a14b_cloudbreak_over_the_ridges.png", + "size": 377021, + "sha256": "sha256:bytes:c824b505dc5145519de68ecdd4eb3618f214bc8e3aa6a8fd8fada7433b1f509e", + "contentType": "image/png", + "purposes": [ + "runtime" + ], + "width": 768, + "height": 512 + }, { "path": "template-gallery/quiet_current.webp", "size": 109696, @@ -3575,6 +3635,78 @@ "runtime" ] }, + { + "path": "template-gallery/reviews/cogvideox_mossy_mountain_stream.original-provenance.json", + "size": 1330, + "sha256": "sha256:bytes:33e7bae227d98d35af005ca13238e9adfb288160165643330621b871c48ac32c", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, + { + "path": "template-gallery/reviews/cogvideox_mossy_mountain_stream.original-review.json", + "size": 583, + "sha256": "sha256:bytes:3678c4a805bb1d6b4205c0d3d97df2f559b65740a7519ba19674456c26d54d13", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, + { + "path": "template-gallery/reviews/cogvideox_mossy_mountain_stream.quality-review.json", + "size": 2694, + "sha256": "sha256:bytes:43fcf40d6bec403f203be3b2386ef27e345752c5dc53882ab2df45537dcbfcd1", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, + { + "path": "template-gallery/reviews/cogvideox_mossy_mountain_stream.retained-template-provenance.json", + "size": 3514, + "sha256": "sha256:bytes:2e96867659142d6f562c4607f0db301aa2f003bfb9c4f29f333751365a5d7b66", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, + { + "path": "template-gallery/reviews/cogvideox_red_tram_model_railway.original-provenance.json", + "size": 1239, + "sha256": "sha256:bytes:b63d433a2ae3627d260abf77dca4bca8ded0798a3449e9fb5b460628c5a2fa08", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, + { + "path": "template-gallery/reviews/cogvideox_red_tram_model_railway.original-review.json", + "size": 741, + "sha256": "sha256:bytes:0b2030e77910993ce5e1947c5378e06ab488e1243b79e67cc6edd44c3cd8d462", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, + { + "path": "template-gallery/reviews/cogvideox_red_tram_model_railway.quality-review.json", + "size": 2488, + "sha256": "sha256:bytes:56466f759c750421f135ebf3069202ae9eb0374a9f2ee4327b95b0490ec3a583", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, + { + "path": "template-gallery/reviews/cogvideox_red_tram_model_railway.retained-template-provenance.json", + "size": 3774, + "sha256": "sha256:bytes:71ff0983139861b9a21d9b2882974bb5e96d11903563df161578818d795a1290", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, { "path": "template-gallery/reviews/copper_hour_dunes.original-provenance.json", "size": 3659, @@ -6243,6 +6375,78 @@ "tooling" ] }, + { + "path": "template-gallery/reviews/wan_a14b_cloudbreak_over_the_ridges.original-provenance.json", + "size": 2280, + "sha256": "sha256:bytes:865acf7a0ce08eb184068a1dea15a3f7327c627d39056a104856e226f845e312", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, + { + "path": "template-gallery/reviews/wan_a14b_cloudbreak_over_the_ridges.original-review.json", + "size": 478, + "sha256": "sha256:bytes:f34e7a0de89fb4c48b70237f53f6db6f4de06d26ad7c6f582c6f7a6513f780ba", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, + { + "path": "template-gallery/reviews/wan_a14b_cloudbreak_over_the_ridges.quality-review.json", + "size": 2389, + "sha256": "sha256:bytes:f6b307987e3779cdf108f2c9832d960e3a3d53087267a6e38446aeb43a05c5b6", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, + { + "path": "template-gallery/reviews/wan_a14b_cloudbreak_over_the_ridges.retained-template-provenance.json", + "size": 3763, + "sha256": "sha256:bytes:179c61ab54e5174a0c8504960903d5abf55bb04033116946d8a0fd5c994a7c70", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, + { + "path": "template-gallery/reviews/wan_flf_blue_hour_at_the_tram_shelter.original-provenance.json", + "size": 1322, + "sha256": "sha256:bytes:556edbb96784d97900a95f4c3cdf618102ae2f492b2791a67ef5cd9e258f3dfb", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, + { + "path": "template-gallery/reviews/wan_flf_blue_hour_at_the_tram_shelter.original-review.json", + "size": 652, + "sha256": "sha256:bytes:70b7a63ed50e5c3ccd8c706fd07917afec3ac8ef088d33b28b8d22d57f800548", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, + { + "path": "template-gallery/reviews/wan_flf_blue_hour_at_the_tram_shelter.quality-review.json", + "size": 2433, + "sha256": "sha256:bytes:a549ff13492e46da3c707f861fb33fd71411034ffb96a81550d7a16fcd79cf12", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, + { + "path": "template-gallery/reviews/wan_flf_blue_hour_at_the_tram_shelter.retained-template-provenance.json", + "size": 4102, + "sha256": "sha256:bytes:e4deed2284f9ae122cbb97a82049d7407fdec05f34d332f8225b40fd40b13820", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, { "path": "template-gallery/reviews/wan_vace_cinematic_text_to_video.quality-review.json", "size": 6183, @@ -7759,6 +7963,24 @@ "width": 1280, "height": 704 }, + { + "path": "template-gallery/wan_a14b_cloudbreak_over_the_ridges.mp4", + "size": 126623, + "sha256": "sha256:bytes:fb2da087759066d72082f0b3e9894204f9e8cc448153b43730c06522483c254f", + "contentType": "video/mp4", + "purposes": [ + "runtime" + ] + }, + { + "path": "template-gallery/wan_flf_blue_hour_at_the_tram_shelter.mp4", + "size": 398821, + "sha256": "sha256:bytes:a356ce3baa0be0556829715ccc72f1a9ccbe99625315cca04e3ee33a4e83f550", + "contentType": "video/mp4", + "purposes": [ + "runtime" + ] + }, { "path": "template-gallery/wan_vace_cinematic_text_to_video.card-poster.png", "size": 2220363, @@ -8129,9 +8351,9 @@ "height": 640 } ], - "assetSetId": "sha256:canonical-json:d03def6ad163d7c88ee848138c806e5182df1f9d05589569aa0c504aca63960f", + "assetSetId": "sha256:canonical-json:415c599a910952e3eb8b060e3b04f91e6a85028a6e8dc1d180d5ad5fd11e73f4", "status": "ready", - "assetCount": 831, - "totalBytes": 1056530805, + "assetCount": 855, + "totalBytes": 1059596510, "missingAssets": [] } diff --git a/public/template-gallery/manifest.json b/public/template-gallery/manifest.json index 9f21006d..bc6c8063 100644 --- a/public/template-gallery/manifest.json +++ b/public/template-gallery/manifest.json @@ -4511,6 +4511,141 @@ "approvedLayer2Path": "/template-gallery/layers/qwen_layered_sunset_and_peaks.layer-2.webp", "approvedLayer3Path": "/template-gallery/layers/qwen_layered_sunset_and_peaks.layer-3.webp", "approvedLayer4Path": "/template-gallery/layers/qwen_layered_sunset_and_peaks.layer-4.webp" + }, + { + "templateId": "wan_a14b_cloudbreak_over_the_ridges", + "templateLockHash": "tpl_80961b58", + "promptSettingsHash": "ps_ca81bdb8", + "modelRevision": "Wan-AI/Wan2.2-T2V-A14B-Diffusers@5be7df9619b54f4e2667b2755bc6a756675b5cd7", + "runtimeFingerprint": "sha256:stable-runtime-v1:4d41adc4d8b1fb3a9aed04a4e324121bd1a145d1051955a1493df3b5c6687bde", + "graphHash": "sha256:canonical-graph-v1:6921f430025f6a760f54a790517b949fc5d03c880f3c9e61eac12ae547b23cf2", + "proofLockHash": "sha256:retained-template-association-v1:83f1f7f44b331f402ed89821a589fe6092572b59d99b42ce2a8dbcb4667b81e4", + "backendSourceFingerprint": "sha256:backend-source-v1:b29a5b0d317aaa781ae2a5205b46b518eea5a3d68a214eb0968dba4ac0660af7", + "backendContractFingerprint": "sha256:backend-contract-v1:40a4eb8d6275c83725f57c4d3499b8d12c00f8cf6caffc2d07006e74d24ab820", + "modelCommit": "5be7df9619b54f4e2667b2755bc6a756675b5cd7", + "templateRevisionHash": "2fe28c05a3adcb92031d2e5a369cf6be41990463644f08e5440bb998b32bc1fd", + "provenancePath": "/template-gallery/reviews/wan_a14b_cloudbreak_over_the_ridges.retained-template-provenance.json", + "provenanceHash": "sha256:canonical-json:dc8a585212362451b0f133a2bee954a72a98b67c6cc30e943784ef7aba732984", + "outputPath": "/template-gallery/wan_a14b_cloudbreak_over_the_ridges.mp4", + "thumbnailPath": "/template-gallery/wan_a14b_cloudbreak_over_the_ridges.mp4", + "mediaHash": "sha256:decoded-video-framemd5:d99f2ce3a2ec3fc41fd45765e04c93ca9b8c0263d5972a086693a782fa7a3d54", + "mediaType": "video", + "verificationTimestamp": "2026-11-24T23:06:15.432Z", + "verificationStatus": "reviewed", + "qualityReviewStatus": "approved_reviewed", + "qualityReviewHash": "sha256:canonical-json:4441313beafa72c149d5dd05d05c4ebe7ed2b63204f4a8b00492ef8e06e43c1d", + "qualityReviewPath": "/template-gallery/reviews/wan_a14b_cloudbreak_over_the_ridges.quality-review.json", + "reviewer": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25T05:51:53.933Z", + "width": 768, + "height": 512, + "frames": 81, + "durationSeconds": 3.375, + "posterPath": "/template-gallery/posters/wan_a14b_cloudbreak_over_the_ridges.png", + "approvedOriginalReviewPath": "/template-gallery/reviews/wan_a14b_cloudbreak_over_the_ridges.original-review.json", + "approvedOriginalProvenancePath": "/template-gallery/reviews/wan_a14b_cloudbreak_over_the_ridges.original-provenance.json" + }, + { + "templateId": "cogvideox_mossy_mountain_stream", + "templateLockHash": "tpl_089d3aae", + "promptSettingsHash": "ps_f986f95b", + "modelRevision": "zai-org/CogVideoX-2b@1137dacfc2c9c012bed6a0793f4ecf2ca8e7ba01", + "runtimeFingerprint": "sha256:stable-runtime-v1:d6cb223bdc90f3d3195a6656078578d8395f7a760be93b426b891f61b48b3439", + "graphHash": "sha256:canonical-graph-v1:798aaa4c7c2501de15aca025081efa81d009df7977fd0fe6fb71c17f5895c105", + "proofLockHash": "sha256:retained-template-association-v1:22ad0b3b4dbe71a301f3d29a740c9347ecb874b9b229a95cd5384c6acc486abf", + "backendSourceFingerprint": "sha256:backend-source-v1:70bc1ff7fe61307be52cfda86b38c6400f2156cbc8240a489b62ff19a93d58dc", + "backendContractFingerprint": "sha256:backend-contract-v1:40a4eb8d6275c83725f57c4d3499b8d12c00f8cf6caffc2d07006e74d24ab820", + "modelCommit": "1137dacfc2c9c012bed6a0793f4ecf2ca8e7ba01", + "templateRevisionHash": "c77c843d9555524c9f9ce04c53af16c2ee6570d7ff9b72d90fba98fd1fc3d9cc", + "provenancePath": "/template-gallery/reviews/cogvideox_mossy_mountain_stream.retained-template-provenance.json", + "provenanceHash": "sha256:canonical-json:55c2d13b75ce4c5820f3ba96067987f8923004690bc87790bf5d003b8eb3c4c3", + "outputPath": "/template-gallery/cogvideox_mossy_mountain_stream.mp4", + "thumbnailPath": "/template-gallery/cogvideox_mossy_mountain_stream.mp4", + "mediaHash": "sha256:decoded-video-framemd5:2f769ade82cbcd96481ecdc245befa8059b0f913dc215763efce775753322111", + "mediaType": "video", + "verificationTimestamp": "2026-11-24T04:17:26.141Z", + "verificationStatus": "reviewed", + "qualityReviewStatus": "approved_reviewed", + "qualityReviewHash": "sha256:canonical-json:81a093f8bf994c1036b778b7e9e81a10bb18da72d4117d54b351ec0ef72acd3b", + "qualityReviewPath": "/template-gallery/reviews/cogvideox_mossy_mountain_stream.quality-review.json", + "reviewer": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25T05:51:53.933Z", + "width": 720, + "height": 480, + "frames": 25, + "durationSeconds": 3.125, + "approvedOriginalReviewPath": "/template-gallery/reviews/cogvideox_mossy_mountain_stream.original-review.json", + "approvedOriginalProvenancePath": "/template-gallery/reviews/cogvideox_mossy_mountain_stream.original-provenance.json" + }, + { + "templateId": "wan_flf_blue_hour_at_the_tram_shelter", + "templateLockHash": "tpl_de5816ae", + "promptSettingsHash": "ps_b86813d0", + "modelRevision": "Wan-AI/Wan2.1-FLF2V-14B-720P-diffusers@17c30769b1e0b5dcaa1799b117bf20a9c31f59d7", + "runtimeFingerprint": "sha256:stable-runtime-v1:4d41adc4d8b1fb3a9aed04a4e324121bd1a145d1051955a1493df3b5c6687bde", + "graphHash": "sha256:canonical-graph-v1:f3e6600531ca93b1b326cbfa5e3b0b853b4015ccb5c163302c003b81bc4897a6", + "proofLockHash": "sha256:retained-template-association-v1:bf8553368111f2d8ee23720f357b856fe5adc17f23a92256a962a3a333f39055", + "backendSourceFingerprint": "sha256:backend-source-v1:b29a5b0d317aaa781ae2a5205b46b518eea5a3d68a214eb0968dba4ac0660af7", + "backendContractFingerprint": "sha256:backend-contract-v1:288f2abd0b142ec1f2081bf6d3dbf71ba988833662040e7e81688c4524cf0516", + "modelCommit": "17c30769b1e0b5dcaa1799b117bf20a9c31f59d7", + "templateRevisionHash": "719322718cef9254b24004759f2eac08a4302ea27c86cbe538782207d29389f6", + "provenancePath": "/template-gallery/reviews/wan_flf_blue_hour_at_the_tram_shelter.retained-template-provenance.json", + "provenanceHash": "sha256:canonical-json:1a882b47f451da32ae40f722d5d48125aace11057e979e897a5773f3f1a52344", + "outputPath": "/template-gallery/wan_flf_blue_hour_at_the_tram_shelter.mp4", + "thumbnailPath": "/template-gallery/wan_flf_blue_hour_at_the_tram_shelter.mp4", + "mediaHash": "sha256:decoded-video-framemd5:17db687780a14782084a7d32b484d87c00074ebe1043de65fd6ce046b4f23918", + "mediaType": "video", + "verificationTimestamp": "2026-11-24T21:03:04.380Z", + "verificationStatus": "reviewed", + "qualityReviewStatus": "approved_reviewed", + "qualityReviewHash": "sha256:canonical-json:2bc814697e3ad5ce22846e92490ef14691157f1b7a2d2c84fc867d60f3ae2e44", + "qualityReviewPath": "/template-gallery/reviews/wan_flf_blue_hour_at_the_tram_shelter.quality-review.json", + "reviewer": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25T05:51:53.933Z", + "width": 768, + "height": 512, + "frames": 81, + "durationSeconds": 3.375, + "approvedSourcePath": "/template-gallery/inputs/wan_flf_blue_hour_at_the_tram_shelter.first.png", + "approvedClosingFramePath": "/template-gallery/inputs/wan_flf_blue_hour_at_the_tram_shelter.last.png", + "approvedOriginalReviewPath": "/template-gallery/reviews/wan_flf_blue_hour_at_the_tram_shelter.original-review.json", + "approvedOriginalProvenancePath": "/template-gallery/reviews/wan_flf_blue_hour_at_the_tram_shelter.original-provenance.json" + }, + { + "templateId": "cogvideox_red_tram_model_railway", + "templateLockHash": "tpl_aca915d8", + "promptSettingsHash": "ps_44a08b73", + "modelRevision": "zai-org/CogVideoX-2b@1137dacfc2c9c012bed6a0793f4ecf2ca8e7ba01", + "runtimeFingerprint": "sha256:stable-runtime-v1:a3fa2eec739aa0a83e3b3e009cdd8c2cc81665a11e53ad8c6363311f69a4a46d", + "graphHash": "sha256:canonical-graph-v1:9536733d2657f50f2530e066706a283d282c5dbd7989f70e563942b748489f2d", + "proofLockHash": "sha256:retained-template-association-v1:8f2c3a9fcddc6ae7687afc040b54c7974b06450e2c4c57c7634b0d0c0bdeef05", + "backendSourceFingerprint": "sha256:backend-source-v1:43f2ed10792fc6167b963166287cf7d5a0429afa26029e6455b0418e2123be86", + "backendContractFingerprint": "sha256:backend-contract-v1:33b2d430a6b544125220ee6627441eb2121c00e6cfb3aa7c2d54b08b7b2f1f09", + "modelCommit": "1137dacfc2c9c012bed6a0793f4ecf2ca8e7ba01", + "templateRevisionHash": "d74131d9a94ae6422f0824a9948e9ee157fb765058f8d45e515fda25a93c25c6", + "provenancePath": "/template-gallery/reviews/cogvideox_red_tram_model_railway.retained-template-provenance.json", + "provenanceHash": "sha256:canonical-json:6f0d333914202c04f412ce9f5fa36e1d440f0f97ac2daf53fe0a604bf784d2f4", + "outputPath": "/template-gallery/cogvideox_red_tram_model_railway.mp4", + "thumbnailPath": "/template-gallery/cogvideox_red_tram_model_railway.mp4", + "mediaHash": "sha256:decoded-video-framemd5:a7b338af1009ea404ed9dfac3c907b8e04e25d78fb69c1ceb602ef0ab646b7cd", + "mediaType": "video", + "verificationTimestamp": "2026-11-24T02:42:22.051Z", + "verificationStatus": "reviewed", + "qualityReviewStatus": "approved_reviewed", + "qualityReviewHash": "sha256:canonical-json:7f6006ce9d0fff95b25b292b42e396719d38b91c7225430a11329aca2d6248c2", + "qualityReviewPath": "/template-gallery/reviews/cogvideox_red_tram_model_railway.quality-review.json", + "reviewer": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25T05:51:53.933Z", + "beforePath": "/template-gallery/inputs/cogvideox_red_tram_model_railway.before.mp4", + "beforeMediaHash": "sha256:bytes:0737fe1e6b127fd4f5f66043b8911e5c7e380e60d50eab7e6bc9ba62e830b9dd", + "beforeSourceMediaHash": "sha256:bytes:0737fe1e6b127fd4f5f66043b8911e5c7e380e60d50eab7e6bc9ba62e830b9dd", + "afterPath": "/template-gallery/cogvideox_red_tram_model_railway.mp4", + "width": 720, + "height": 480, + "frames": 25, + "durationSeconds": 3.125, + "approvedOriginalReviewPath": "/template-gallery/reviews/cogvideox_red_tram_model_railway.original-review.json", + "approvedOriginalProvenancePath": "/template-gallery/reviews/cogvideox_red_tram_model_railway.original-provenance.json" } ] } diff --git a/scripts/retained-gallery-provenance.mjs b/scripts/retained-gallery-provenance.mjs index 3ca22803..8fddbd3d 100644 --- a/scripts/retained-gallery-provenance.mjs +++ b/scripts/retained-gallery-provenance.mjs @@ -180,8 +180,11 @@ export function validateRetainedGalleryProvenance(bundle, entry, { templateRevis beforePath: pins.inputSize ? base + 'inputs/' + stem + '.before.' + (pins.beforeExtension ?? 'png') : undefined, afterPath: pins.inputSize ? outputPath : undefined, beforeMediaHash: output.inputEncodedSha256, + beforeSourceMediaHash: pins.beforeExtension === 'mp4' ? output.inputEncodedSha256 : undefined, width: pins.outputSize?.width, height: pins.outputSize?.height, + frames: output.video?.frames, + durationSeconds: output.video && output.video.frames / output.video.fps, ...Object.fromEntries(Object.entries(association.approvedFiles ?? {}).map(([field, ref]) => [field, ref.path])), }; const errors = Object.entries(expected) @@ -201,17 +204,16 @@ export function validateRetainedGalleryProvenance(bundle, entry, { templateRevis 'modelSetHash', 'inputArtifactsHash', 'templateInputContractHash', - 'beforeSourceMediaHash', 'cardPreviewPath', 'cardPreviewSha256', - 'posterPath', 'decodedAudioHash', 'audiovisualMediaHash', - 'durationSeconds', - 'frames', ].some((field) => entry[field] !== undefined) ) { errors.push('retained Gallery entry has unreviewed asset or capture fields'); } + if (entry.posterPath !== association.approvedFiles?.posterPath?.path) { + errors.push('retained Gallery poster differs from the approved artifact'); + } return errors; } diff --git a/scripts/retained-gallery-release.mjs b/scripts/retained-gallery-release.mjs index 6ebebbb6..bb5c4cee 100644 --- a/scripts/retained-gallery-release.mjs +++ b/scripts/retained-gallery-release.mjs @@ -70,6 +70,7 @@ function assertRetainedBatchEvidence({ assert.equal(inputHash, recipe.inputSha256); assert.equal(association.approvedFiles.approvedMaskPath?.sha256, recipe.maskSha256); assert.equal(association.approvedFiles.approvedGuidePath?.sha256, recipe.guideSha256); + assert.equal(association.approvedFiles.approvedClosingFramePath?.sha256, recipe.lastFrameSha256); assert.equal( association.output.maskEncodedSha256, recipe.maskSha256 ? 'sha256:bytes:' + recipe.maskSha256 : undefined, @@ -110,6 +111,7 @@ function assertRetainedBatchEvidence({ assert.equal(nativeReceipt.inputBinding?.sha256, recipe.inputSha256, label); assert.equal(nativeReceipt.maskBinding?.sha256, recipe.maskSha256, label); assert.equal(nativeReceipt.guideBinding?.sha256, recipe.guideSha256, label); + assert.equal(nativeReceipt.lastFrameBinding?.sha256, recipe.lastFrameSha256, label); if (recipe.workflowId === 'QwenImageLayeredPipeline:layer_decomposition') { const { orderedLayerItems } = association.output; same(nativeReceipt.decodedOutput, { kind: 'image_collection', items: orderedLayerItems }, label); @@ -133,6 +135,13 @@ function assertRetainedBatchEvidence({ ); assert.equal(outputEncodedSha256, nativeReceipt.outputHash, label); } + if (association.output.mediaType === 'video') { + const { decodedMediaHash, outputEncodedSha256, video } = association.output; + const { hasAudio, ...videoMetadata } = video; + assert.equal(hasAudio, false, label); + same(nativeReceipt.decodedOutput, { kind: 'video', hash: decodedMediaHash, ...videoMetadata }, label); + assert.equal(outputEncodedSha256, nativeReceipt.outputHash, label); + } } function assertRetainedSpandrelEvidence({ recipe, sourceWorkflow, association, entry, nativeReceipt }) { diff --git a/scripts/retained-gallery-templates.test.mjs b/scripts/retained-gallery-templates.test.mjs index 08f6bc0b..f1e4269c 100644 --- a/scripts/retained-gallery-templates.test.mjs +++ b/scripts/retained-gallery-templates.test.mjs @@ -184,7 +184,9 @@ test('retained Gallery recipes preserve the native graph identities and standalo Object.values(capture.inputs ?? [capture.input]) .map(({ file }) => file.sha256) .sort(), - [recipe.inputSha256, recipe.maskSha256, recipe.guideSha256].filter(Boolean).sort(), + [recipe.inputSha256, recipe.maskSha256, recipe.guideSha256, recipe.lastFrameSha256] + .filter(Boolean) + .sort(), ); } } else if (recipe.inputLocatorSha256) { @@ -222,6 +224,7 @@ test('fresh Expert recipes prepare with current backend specs and without a gene const previousNodes = nodeStore.getState(); let contract; let audioContract; + let videoContract; const fieldActions = []; try { globalThis.WebSocket = undefined; @@ -252,6 +255,19 @@ test('fresh Expert recipes prepare with current backend specs and without a gene } return Response.json({ error: false, nodes: [] }); } + if (payload.module === 'modules.DiffusersVideo') { + assert.ok(videoContract); + if (payload.action === 'LoadPipeline') { + assert.equal(payload.fn, 'select_adapter'); + assert.equal(payload.values.pipeline_class, videoContract.pipelineClass); + flow.getState().setParam(payload.node, 'pipeline', { direction: 'output', value: videoContract }, 'signal'); + } else { + assert.equal(payload.action, 'Generate'); + assert.equal(payload.fn, 'update_adapter_modes'); + assert.deepEqual(payload.values.video_contract, videoContract); + } + return Response.json({ error: false, nodes: [] }); + } assert.equal(payload.module, 'modules.DiffusersImage'); assert.ok(contract); if (payload.fn === 'update_pipeline_contract') { @@ -285,15 +301,21 @@ test('fresh Expert recipes prepare with current backend specs and without a gene }); for (const recipe of recipes) { const { template } = recipe; + // FLF metadata changes the runtime ports. Exercise that transition with + // the real backend in the retained first/last-frame browser test. + if (recipe.lastFrameSha256) continue; const { spec, imageContract, audioContract: nextAudioContract, + videoContract: nextVideoContract, } = fixture.recipes.find((item) => item.id === template.id); contract = imageContract; audioContract = nextAudioContract; + videoContract = nextVideoContract; const inputBinding = template.inputBindings?.[0]; const audio = inputBinding?.mediaType === 'audio'; + const sourceVideo = inputBinding?.mediaType === 'video'; const guide = template.inputBindings?.some(({ field }) => field === 'controlImage') ? 'review-control-image.png' : undefined; @@ -309,7 +331,13 @@ test('fresh Expert recipes prepare with current backend specs and without a gene template, audio ? { sourceAudio: input[0] } - : { referenceImages: input, ...(mask && { maskImage: mask }), ...(guide && { controlImage: guide }) }, + : sourceVideo + ? { sourceVideo: 'review-source-video.mp4' } + : { + referenceImages: input, + ...(mask && { maskImage: mask }), + ...(guide && { controlImage: guide }), + }, ); const form = studio.getState().form; assert.equal(form.device, template.example.lockedSettings.device ?? 'cuda:0'); @@ -350,6 +378,28 @@ test('fresh Expert recipes prepare with current backend specs and without a gene continue; } const loader = api.nodes[binding.nodes[spec.roles.find(([, key]) => key.endsWith('.' + spec.loaderAction))[0]]]; + if (template.example.retainedVideoPreview) { + const { lockedSettings, lockedSeed } = template.example; + const generation = api.nodes[binding.nodes.wanGenerate]; + assert.equal(generation.params.num_inference_steps.value, lockedSettings.steps); + assert.equal(generation.params.guidance_scale.value, lockedSettings.guidanceScale); + assert.equal(Number(generation.params.seed.value), lockedSeed); + assert.equal(generation.params.num_frames?.value, lockedSettings.numFrames); + assert.equal(generation.params.prompt.value, template.prompt); + assert.equal(loader.params.model_id.value.value, template.modelArtifact.value); + assert.equal(loader.params.revision.value, template.modelArtifact.revision); + if (sourceVideo) { + const source = api.nodes[binding.nodes.loadVideo]; + assert.equal(source.params.file.value, 'review-source-video.mp4'); + assert.equal(generation.params.video.sourceId, binding.nodes.normalizeVideo); + const normalized = api.nodes[binding.nodes.normalizeVideo]; + assert.equal(normalized.module, 'modules.VideoConditioning'); + assert.equal(normalized.action, 'Normalize'); + assert.equal(normalized.params.video.sourceId, binding.nodes.loadVideo); + assert.equal(normalized.params.video.sourceKey, 'video'); + } + continue; + } assert.deepEqual(loader.params.model_id.value, { source: 'hub', value: template.modelArtifact.value }); assert.equal(loader.params.revision.value, template.modelArtifact.revision); assert.equal(loader.params.dtype.value, template.example.lockedSettings.dtype ?? 'float32'); diff --git a/scripts/source-video-timing.test.mjs b/scripts/source-video-timing.test.mjs index 75abcce8..e2e98157 100644 --- a/scripts/source-video-timing.test.mjs +++ b/scripts/source-video-timing.test.mjs @@ -53,6 +53,29 @@ test('audio delivery rate comes from the source stream, independently of normali assert.deepEqual(technicalMediaErrors({ ...audio, sourceSampleRate: undefined }, { sampleRate: 48000 }, 'audio'), []); }); +test('a reviewed native preview preserves its exact short clip and browser-safe playback', () => { + const hash = 'sha256:decoded-video-framemd5:' + 'b'.repeat(64); + const preview = { mediaHash: hash, frames: 25, fps: 8, width: 720, height: 480 }; + const decoded = { + ...preview, + hash, + durationSeconds: 3.13, + codecName: 'h264', + pixelFormat: 'yuv420p', + hasAudio: false, + nearBlackRatio: 0, + lumaStdDev: 20, + uniqueFrameRatio: 1, + }; + assert.deepEqual(technicalMediaErrors(decoded, {}, 'video', preview), []); + for (const change of [{ frames: 24 }, { width: 700 }, { fps: 7 }, { hash: 'different' }]) { + assert(technicalMediaErrors({ ...decoded, ...change }, {}, 'video', preview).some((x) => x.includes('at least 5 seconds'))); + } + assert(technicalMediaErrors(decoded, {}, 'video').some((x) => x.includes('at least 5 seconds'))); + assert(technicalMediaErrors({ ...decoded, hasAudio: true }, {}, 'video', preview).some((x) => x.includes('audio stream'))); + assert(technicalMediaErrors({ ...decoded, codecName: 'vp9' }, {}, 'video', preview).some((x) => x.includes('codec'))); +}); + test('qualitative acceptance keeps absent scores absent and requires an exact maintainer binding', () => { const expected = { templateId: 'ace_step_audio_variation', diff --git a/scripts/template-gallery-harness.mjs b/scripts/template-gallery-harness.mjs index f068d524..f29a6ece 100644 --- a/scripts/template-gallery-harness.mjs +++ b/scripts/template-gallery-harness.mjs @@ -22,6 +22,7 @@ import { } from './retained-gallery-provenance.mjs'; import { validateTemplateAssetRelease, validateTemplateAssetSource } from './template-asset-source-contract.ts'; import { sourceVideoTimingMatches } from '../src/studio/sourceVideoTiming.ts'; +import { retainedVideoPreviewMatches } from '../src/studio/retainedVideoPreview.ts'; const ROOT = resolve(dirname(fileURLToPath(import.meta.url)), '..'); const PUBLIC_GALLERY_DIR = join(ROOT, 'public', 'template-gallery'); @@ -1340,6 +1341,7 @@ export async function loadTemplateRuntime(root = ROOT, { includePlanning = false }, findManifestEntry: exactnessModule.findManifestEntry, findHistoricalTemplateRecipe: exactnessModule.findHistoricalTemplateRecipe, + isRetainedVideoPreview: exactnessModule.isRetainedVideoPreview, }; } finally { await server.close(); @@ -1815,7 +1817,7 @@ export function beforePreviewContractErrors(decoded, contract = templateGalleryC return errors; } -export function technicalMediaErrors(decoded, expected = {}, mediaType = 'image') { +export function technicalMediaErrors(decoded, expected = {}, mediaType = 'image', retainedVideoPreview) { const errors = []; for (const field of ['width', 'height', 'frames', 'sampleRate']) { const measured = @@ -1839,6 +1841,10 @@ export function technicalMediaErrors(decoded, expected = {}, mediaType = 'image' if (Number(decoded.lumaStdDev ?? 0) < 0.75) errors.push('decoded media has near-zero visual variance'); } if (mediaType === 'video') { + const retainedClip = retainedVideoPreviewMatches(retainedVideoPreview, { + ...decoded, + mediaHash: decodedMediaHashMatches(decoded, retainedVideoPreview?.mediaHash) ? retainedVideoPreview.mediaHash : decoded.hash, + }); const requestedMotionProfile = expected.motionReviewProfile ?? DEFAULT_MOTION_REVIEW_PROFILE; const hasKnownMotionProfile = Object.hasOwn(MOTION_REVIEW_PROFILES, requestedMotionProfile); if (!hasKnownMotionProfile) { @@ -1874,18 +1880,20 @@ export function technicalMediaErrors(decoded, expected = {}, mediaType = 'image' } if ( Number(decoded.durationSeconds ?? 0) < MINIMUM_TEMPLATE_VIDEO_SECONDS && + !retainedClip && !sourceVideoTimingMatches(expected.sourceTiming, decoded) ) { errors.push(`video duration must be at least ${MINIMUM_TEMPLATE_VIDEO_SECONDS} seconds`); } const shortEdge = Math.min(Number(decoded.width ?? 0), Number(decoded.height ?? 0)); const longEdge = Math.max(Number(decoded.width ?? 0), Number(decoded.height ?? 0)); - if (shortEdge < MINIMUM_TEMPLATE_VIDEO_SHORT_EDGE || longEdge < MINIMUM_TEMPLATE_VIDEO_LONG_EDGE) { + if (!retainedClip && (shortEdge < MINIMUM_TEMPLATE_VIDEO_SHORT_EDGE || longEdge < MINIMUM_TEMPLATE_VIDEO_LONG_EDGE)) { errors.push( `video delivery resolution must be at least ${MINIMUM_TEMPLATE_VIDEO_LONG_EDGE}x${MINIMUM_TEMPLATE_VIDEO_SHORT_EDGE}`, ); } if (Number(decoded.uniqueFrameRatio ?? 0) < 0.1) errors.push('video has fewer than 10% unique decoded frames'); + if (retainedClip) errors.push(...beforePreviewContractErrors(decoded)); if (Number(decoded.isolatedLumaFlashRatio ?? 0) > 0) { errors.push('video contains one or more isolated full-frame luminance flashes'); } @@ -2646,7 +2654,10 @@ export async function verifyGallery( entry.mediaType === 'video' ? runtime.findManifestEntry(template, { ...manifest, examples: [entry] }, { requireCardPreview: false }) : undefined; - if (currentVideoEntry && (!entry.cardPreviewPath || !entry.cardPreviewSha256)) { + const retainedPreview = runtime.isRetainedVideoPreview?.(template, currentVideoEntry) + ? template.example.retainedVideoPreview + : undefined; + if (currentVideoEntry && !retainedPreview && (!entry.cardPreviewPath || !entry.cardPreviewSha256)) { errors.push(`${entry.templateId} current video entry requires cardPreviewPath and cardPreviewSha256`); } const currentPromptSettingsHash = runtime.promptSettingsHash(template); @@ -2663,7 +2674,7 @@ export async function verifyGallery( } errors.push( ...(decoded - ? technicalMediaErrors(decoded, galleryExpectedOutput(template), entry.mediaType ?? 'image') + ? technicalMediaErrors(decoded, galleryExpectedOutput(template), entry.mediaType ?? 'image', retainedPreview) : [] ).map((error) => `${entry.templateId} technical media gate: ${error}`), ); diff --git a/scripts/template-gallery-harness.test.mjs b/scripts/template-gallery-harness.test.mjs index 53f717fe..5a2352f5 100644 --- a/scripts/template-gallery-harness.test.mjs +++ b/scripts/template-gallery-harness.test.mjs @@ -1110,9 +1110,14 @@ test('public provenance redacts removable Linux mounts while retaining public an }); test('gallery harness loads all Studio templates from the TypeScript runtime', () => { - assert.equal(runtime.templates.length, 125); + const retained = JSON.parse( + readFileSync(new URL('../config/retained-gallery-approved-batch.v1.json', import.meta.url), 'utf8'), + ); + const expectedCount = 98 + Object.keys(retained).length; + assert.equal(runtime.templates.length, expectedCount); const ids = new Set(runtime.templates.map((template) => template.id)); - assert.equal(ids.size, 125); + assert.equal(ids.size, expectedCount); + for (const id of Object.keys(retained)) assert.ok(ids.has(id), id); assert.ok(ids.has('whisper_tiny_blue_cup_transcription')); assert.ok(ids.has('wav2vec2_station_announcement')); assert.ok(ids.has('lcm_dawn_alpine_lake')); diff --git a/scripts/template-operation-fixtures.py b/scripts/template-operation-fixtures.py index 12452122..834d8f24 100644 --- a/scripts/template-operation-fixtures.py +++ b/scripts/template-operation-fixtures.py @@ -97,6 +97,10 @@ def describe(key): adapter = get_audio_pipeline_adapter(spec["pipelineClass"]) row["audioContract"] = _audio_contract_signal(adapter, spec["mode"], adapter.default_repo) + if any(key == "modules.DiffusersVideo.LoadPipeline" for _, key, _, _ in spec["roles"]): + from modules.DiffusersVideo.main import _adapter_signal, get_video_pipeline_adapter + + row["videoContract"] = _adapter_signal(get_video_pipeline_adapter(spec["pipelineClass"])) rows.append(row) continue starter = resolve_operation_starter(MODULE_MAP, contracts, { diff --git a/src/components/TemplateBrowserDialog.tsx b/src/components/TemplateBrowserDialog.tsx index e4879927..da74c604 100644 --- a/src/components/TemplateBrowserDialog.tsx +++ b/src/components/TemplateBrowserDialog.tsx @@ -40,6 +40,7 @@ import { findHistoricalTemplateManifestEntry, getTemplateCardMedia, getTemplateLockedSettings, + isRetainedVideoPreview, parseTemplateGalleryManifest, templateManifestPath, type TemplateGalleryManifest, @@ -245,8 +246,7 @@ function templateHasPublishedMedia(template: StudioTemplate, manifest: TemplateG if (getTemplateShowcase(template.id)) return true; if (manifest) { const entry = findManifestEntry(template, manifest) ?? findHistoricalTemplateManifestEntry(template, manifest); - if (!entry) return false; - return entry.mediaType !== 'video' || Boolean(entry.cardPreviewPath && entry.cardPreviewSha256); + return Boolean(entry); } const status = template.verificationStatus ?? template.example?.status; if (template.example?.mediaType === 'video' || template.outputKinds?.includes('video')) return false; @@ -1308,13 +1308,17 @@ function TemplateRecipeDetail({ // exactness gate for the result, but resolve the published source separately // so a template detail never drops its valid included example. const sourceEntry = detailManifestEntry ?? templatePublishedSourceEntry(template, manifest); + const retainedPreview = isRetainedVideoPreview(template, detailManifestEntry); + const manifestPoster = retainedPreview + ? detailManifestEntry?.posterPath + : detailManifestEntry?.thumbnailPath ?? detailManifestEntry?.posterPath; const bundledSourcePreview = template.inputBindings ?.filter((binding) => binding.origin === 'template') .flatMap((binding) => binding.defaultAssets) .find((asset) => asset.previewPath)?.previewPath; const thumbnailPath = showcase?.mediaPath ?? - templateManifestPath(detailManifestEntry?.thumbnailPath ?? detailManifestEntry?.posterPath) ?? + templateManifestPath(manifestPoster) ?? templateExampleThumbnailPath(template); const beforePath = showcase ? undefined : templateManifestPath(sourceEntry?.beforePath ?? bundledSourcePreview); const afterPath = diff --git a/src/studio/retainedGalleryApprovedBatch.ts b/src/studio/retainedGalleryApprovedBatch.ts index 33b157a2..ae045ee8 100644 --- a/src/studio/retainedGalleryApprovedBatch.ts +++ b/src/studio/retainedGalleryApprovedBatch.ts @@ -4022,4 +4022,411 @@ export const APPROVED_RETAINED_BATCH: RetainedGalleryRecipe[] = [ "runtimeReuseKey": "sha256:canonical-graph-v1:25bb2ac3d10b3d0f539204d2c4d3181764f192882a9c8442efb5ce54b7d8de43" } }, +{ + "workflowId": "Wan22Pipeline:text_to_video", + "sourceTaskTemplateId": "task-template:wan-22-a14b:text-to-video:v1", + "retainedGraphHash": "sha256:canonical-graph-v1:6921f430025f6a760f54a790517b949fc5d03c880f3c9e61eac12ae547b23cf2", + "originalReceiptSha256": "05008ca915711e27396ac9216f34931f91c5444efa2751e9fb4a26c2761a89c2", + "reviewedTemplateSha256": "2fe28c05a3adcb92031d2e5a369cf6be41990463644f08e5440bb998b32bc1fd", + "reviewedCatalogLock": { + "templateLockHash": "tpl_6e4c3186", + "galleryTemplateLockHash": "tpl_80961b58", + "promptSettingsHash": "ps_ca81bdb8" + }, + "promptSha256": "63b8db49c89bbe4efec541259382b051bce2632aa78fb16a8ef47a70bb130eb3", + "template": { + "id": "wan_a14b_cloudbreak_over_the_ridges", + "label": "Wan 2.2 T2V A14B — Text to video: Cloudbreak Over the Ridges", + "mode": "text_to_video", + "modelType": "Wan22Pipeline", + "intentGroup": "video", + "thumbnailVariant": "video", + "category": "video_generation", + "outputKinds": [ + "video" + ], + "readinessPolicy": "runnable", + "modelArtifact": { + "source": "hub", + "value": "Wan-AI/Wan2.2-T2V-A14B-Diffusers", + "revision": "5be7df9619b54f4e2667b2755bc6a756675b5cd7" + }, + "description": "Reproduce the reviewed Cloudbreak Over the Ridges example with the saved prompt, settings and model revision.", + "prompt": "One continuous cinematic aerial shot over a real-looking highland valley just after sunrise. Dark pine-covered ridges stack into the distance above a river of low cloud. The camera glides slowly forward and slightly to the right at a constant height, with gentle parallax between the close ridge and far mountains. Starting in cool blue shadow, a narrow break in the clouds opens near the top of frame. A single warm shaft of sunlight gradually sweeps onto the middle ridge as the fog drifts left to right. Finish with the ridge crest lit, the distant summits still blue, and the same slow forward movement. Stable horizon and exposure, layered natural haze, uneven tree silhouettes, finely textured clouds, realistic scale. Landscape documentary cinematography, restrained color, no cuts.", + "negativePrompt": "", + "example": { + "mediaType": "video", + "status": "unverified", + "modelRevision": "5be7df9619b54f4e2667b2755bc6a756675b5cd7", + "lockedSeed": 42, + "lockedSettings": { + "width": 768, + "height": 512, + "steps": 30, + "guidanceScale": 3, + "strength": 0.8, + "outputType": "pil", + "maxSequenceLength": 512, + "pagScale": 3, + "pagAdaptiveScale": 0, + "dtype": "bfloat16", + "resourceMode": "expert", + "quantizationMode": "none", + "autoOffload": true, + "offloadMode": "model_cpu", + "numFrames": 81, + "fps": 24, + "guidanceScale2": 0, + "shift": 3 + }, + "retainedVideoPreview": { + "frames": 81, + "fps": 24, + "width": 768, + "height": 512, + "mediaHash": "sha256:decoded-video-framemd5:d99f2ce3a2ec3fc41fd45765e04c93ca9b8c0263d5972a086693a782fa7a3d54" + }, + "expectedOutput": { + "width": 768, + "height": 512, + "frames": 81, + "durationSeconds": 3.375 + }, + "runtimeEstimate": "337.42 seconds in the saved run" + }, + "requiredBackendCapabilities": [ + "modules.DiffusersRuntime.PipelineQuantizationConfigV2", + "modules.DiffusersRuntime.DiffusersExecutionRecipe", + "modules.Video.Export", + "modules.DiffusersVideo.Generate", + "modules.DiffusersVideo.LoadPipeline" + ], + "mediaSlots": [ + { + "id": "result", + "label": "Generated image", + "kind": "video", + "role": "output", + "placeholder": "Result pending" + } + ], + "recipeSummary": "Reproduce the reviewed Cloudbreak Over the Ridges example with the saved prompt, settings and model revision.", + "runtimeReuseKey": "sha256:canonical-graph-v1:6921f430025f6a760f54a790517b949fc5d03c880f3c9e61eac12ae547b23cf2" + } +}, +{ + "workflowId": "CogVideoXPipeline:text_to_video", + "sourceTaskTemplateId": "task-template:cogvideox-2b:text-to-video:v1", + "retainedGraphHash": "sha256:canonical-graph-v1:798aaa4c7c2501de15aca025081efa81d009df7977fd0fe6fb71c17f5895c105", + "originalReceiptSha256": "3aab2d19bca49f839f8316f19ea75afbe4b0e401ff5a330c16f35484f43f611a", + "reviewedTemplateSha256": "c77c843d9555524c9f9ce04c53af16c2ee6570d7ff9b72d90fba98fd1fc3d9cc", + "reviewedCatalogLock": { + "templateLockHash": "tpl_12ff3dab", + "galleryTemplateLockHash": "tpl_089d3aae", + "promptSettingsHash": "ps_f986f95b" + }, + "promptSha256": "08823b5d6cd6d0166e33c94e61aaccab515dece0668fcc9779c6cfb633462821", + "template": { + "id": "cogvideox_mossy_mountain_stream", + "label": "CogVideoX-2B — Text to video: Mossy Mountain Stream", + "mode": "text_to_video", + "modelType": "CogVideoXPipeline", + "intentGroup": "video", + "thumbnailVariant": "video", + "category": "video_generation", + "outputKinds": [ + "video" + ], + "readinessPolicy": "runnable", + "modelArtifact": { + "source": "hub", + "value": "zai-org/CogVideoX-2b", + "revision": "1137dacfc2c9c012bed6a0793f4ecf2ca8e7ba01" + }, + "description": "Reproduce the reviewed Mossy Mountain Stream example with the saved prompt, settings and model revision.", + "prompt": "A continuous low-angle tracking shot along a mossy woodland stream as clear water rushes between two smooth gray stones. The camera moves steadily right, keeping the stones in frame. Green ferns and dappled overcast light. Natural water movement, no cuts.", + "negativePrompt": "", + "example": { + "mediaType": "video", + "status": "unverified", + "modelRevision": "1137dacfc2c9c012bed6a0793f4ecf2ca8e7ba01", + "lockedSeed": 42, + "lockedSettings": { + "width": 720, + "height": 480, + "steps": 25, + "guidanceScale": 6, + "strength": 0.8, + "outputType": "pil", + "maxSequenceLength": 226, + "pagScale": 3, + "pagAdaptiveScale": 0, + "dtype": "float16", + "resourceMode": "expert", + "quantizationMode": "none", + "autoOffload": true, + "offloadMode": "model_cpu", + "numFrames": 25, + "fps": 8, + "guidanceScale2": 0, + "shift": 0 + }, + "retainedVideoPreview": { + "frames": 25, + "fps": 8, + "width": 720, + "height": 480, + "mediaHash": "sha256:decoded-video-framemd5:2f769ade82cbcd96481ecdc245befa8059b0f913dc215763efce775753322111" + }, + "expectedOutput": { + "width": 720, + "height": 480, + "frames": 25, + "durationSeconds": 3.125 + }, + "runtimeEstimate": "184.98 seconds in the saved run" + }, + "requiredBackendCapabilities": [ + "modules.DiffusersRuntime.PipelineQuantizationConfigV2", + "modules.DiffusersRuntime.DiffusersExecutionRecipe", + "modules.Video.Export", + "modules.DiffusersVideo.Generate", + "modules.DiffusersVideo.LoadPipeline" + ], + "mediaSlots": [ + { + "id": "result", + "label": "Generated image", + "kind": "video", + "role": "output", + "placeholder": "Result pending" + } + ], + "recipeSummary": "Reproduce the reviewed Mossy Mountain Stream example with the saved prompt, settings and model revision.", + "runtimeReuseKey": "sha256:canonical-graph-v1:798aaa4c7c2501de15aca025081efa81d009df7977fd0fe6fb71c17f5895c105" + } +}, +{ + "workflowId": "WanImage2VideoModularPipeline:image_to_video", + "sourceTaskTemplateId": "task-template:wan-flf:image-to-video:v1", + "retainedGraphHash": "sha256:canonical-graph-v1:f3e6600531ca93b1b326cbfa5e3b0b853b4015ccb5c163302c003b81bc4897a6", + "originalReceiptSha256": "63d626c3c97cd12016b58a9fba71739eeea0459ad300383d5b4f43aa0775740a", + "reviewedTemplateSha256": "719322718cef9254b24004759f2eac08a4302ea27c86cbe538782207d29389f6", + "reviewedCatalogLock": { + "templateLockHash": "tpl_b13aec66", + "galleryTemplateLockHash": "tpl_de5816ae", + "promptSettingsHash": "ps_b86813d0" + }, + "promptSha256": "d9311581aed6eb088806830eb7dcf320b7d8650e06232f9794d9944acbb0fa1d", + "inputSha256": "6d2c561cf33919ae42e773d95a0232799da3f2b92a23a94dad80902cfb73527a", + "inputLocatorSha256": "160363900dea249d2053d49da2b8bb3c801a34ab264d49f7b16098c5a75938a5", + "lastFrameSha256": "191b023efb43a42288799877db722b9a2608d2970740246322ef38cc7c68c590", + "template": { + "id": "wan_flf_blue_hour_at_the_tram_shelter", + "label": "Wan First/Last Frame — Image to video: Blue Hour at the Tram Shelter", + "mode": "image_to_video", + "modelType": "WanImage2VideoModularPipeline", + "intentGroup": "video", + "thumbnailVariant": "video", + "category": "video_generation", + "inputBindings": [ + { + "id": "ordered-frames", + "label": "First and last frames", + "mediaType": "image", + "field": "referenceImages", + "origin": "user", + "requiredAt": "workflow_start", + "count": 2 + } + ], + "outputKinds": [ + "video" + ], + "readinessPolicy": "requires_input", + "modelArtifact": { + "source": "hub", + "value": "Wan-AI/Wan2.1-FLF2V-14B-720P-diffusers", + "revision": "17c30769b1e0b5dcaa1799b117bf20a9c31f59d7" + }, + "description": "Reproduce the reviewed Blue Hour at the Tram Shelter example with the saved prompt, settings and model revision.", + "prompt": "At blue hour, a seated traveler holds a single red umbrella beneath an amber-lit tram shelter. The camera makes a small smooth forward dolly toward the bench, keeping the umbrella and whole traveler in view. The rails recede to the left and the shelter posts remain upright. Fine drizzle passes through the light, and water glistens on the platform. The traveler keeps a relaxed seated pose and the red umbrella trembles slightly. The shot settles gently on a closer view of the same bench and umbrella.", + "negativePrompt": "letterbox bars, black borders, camera shake, motion blur, jump cuts, abrupt zoom, viewpoint changes, deforming shelter, distorted umbrella, warped hands, extra limbs", + "example": { + "mediaType": "video", + "status": "unverified", + "modelRevision": "17c30769b1e0b5dcaa1799b117bf20a9c31f59d7", + "lockedSeed": 42, + "lockedSettings": { + "width": 768, + "height": 512, + "steps": 30, + "guidanceScale": 5.5, + "strength": 0.8, + "outputType": "pil", + "maxSequenceLength": 512, + "pagScale": 0, + "pagAdaptiveScale": 0, + "dtype": "bfloat16", + "resourceMode": "expert", + "quantizationMode": "none", + "autoOffload": true, + "offloadMode": "model_cpu", + "numFrames": 81, + "fps": 24, + "guidanceScale2": 0, + "shift": 3 + }, + "retainedVideoPreview": { + "frames": 81, + "fps": 24, + "width": 768, + "height": 512, + "mediaHash": "sha256:decoded-video-framemd5:17db687780a14782084a7d32b484d87c00074ebe1043de65fd6ce046b4f23918" + }, + "expectedOutput": { + "width": 768, + "height": 512, + "frames": 81, + "durationSeconds": 3.375 + }, + "runtimeEstimate": "299.82 seconds in the saved run" + }, + "requiredBackendCapabilities": [ + "modules.ModularDiffusers.DecodeLatents", + "modules.ModularDiffusers.Denoise", + "modules.ModularDiffusers.ImageEmbeddings", + "modules.ModularDiffusers.ImageEncode", + "modules.Image.Load", + "modules.ModularDiffusers.ModelsLoader", + "modules.ModularDiffusers.EncodePrompt", + "modules.Video.Export" + ], + "mediaSlots": [ + { + "id": "result", + "label": "Generated image", + "kind": "video", + "role": "output", + "placeholder": "Result pending" + } + ], + "recipeSummary": "Reproduce the reviewed Blue Hour at the Tram Shelter example with the saved prompt, settings and model revision.", + "runtimeReuseKey": "sha256:canonical-graph-v1:f3e6600531ca93b1b326cbfa5e3b0b853b4015ccb5c163302c003b81bc4897a6" + } +}, +{ + "workflowId": "CogVideoXVideoToVideoPipeline:video_to_video", + "sourceTaskTemplateId": "task-template:cogvideox-2b-video-to-video:video-to-video:v1", + "retainedGraphHash": "sha256:canonical-graph-v1:9536733d2657f50f2530e066706a283d282c5dbd7989f70e563942b748489f2d", + "originalReceiptSha256": "c4396b6f2b6b01fcdbcb5d7f370b6284be78d1979e4665a243c1e08193776e08", + "reviewedTemplateSha256": "d74131d9a94ae6422f0824a9948e9ee157fb765058f8d45e515fda25a93c25c6", + "reviewedCatalogLock": { + "templateLockHash": "tpl_305c9ad7", + "galleryTemplateLockHash": "tpl_aca915d8", + "promptSettingsHash": "ps_44a08b73" + }, + "promptSha256": "d6dffbc00ab43ae375ebadab9cb8e7c7da98805ae41099301b26774022d22597", + "inputSha256": "0737fe1e6b127fd4f5f66043b8911e5c7e380e60d50eab7e6bc9ba62e830b9dd", + "inputLocatorSha256": "24cb984db9137c26395f2255fba7bf647016637744b7e301d4e8fe7d8d63bff3", + "template": { + "id": "cogvideox_red_tram_model_railway", + "label": "CogVideoX-2B Video-to-Video — Video to video: Red Tram on the Model Railway", + "mode": "video_to_video", + "modelType": "CogVideoXVideoToVideoPipeline", + "intentGroup": "video", + "thumbnailVariant": "video", + "category": "video_generation", + "inputBindings": [ + { + "id": "source-video", + "label": "Source video", + "mediaType": "video", + "field": "sourceVideo", + "origin": "user", + "requiredAt": "workflow_start", + "count": 1 + } + ], + "outputKinds": [ + "video" + ], + "readinessPolicy": "requires_input", + "modelArtifact": { + "source": "hub", + "value": "zai-org/CogVideoX-2b", + "revision": "1137dacfc2c9c012bed6a0793f4ecf2ca8e7ba01" + }, + "description": "Reproduce the reviewed Red Tram on the Model Railway example with the saved prompt, settings and model revision.", + "prompt": "Side tracking shot of a red hand-painted porcelain tram traveling left to right along the same route as the source clip. Keep one tram, its silhouette, window placement, framing, direction, and even speed. Give the tram a fine glazed ceramic finish with tiny soft reflections. Miniature snow-covered houses and an ivory station platform pass steadily behind it. Long soft late-afternoon light comes from screen left. Consistent color and lighting throughout a single continuous take.", + "negativePrompt": "", + "example": { + "mediaType": "video", + "status": "unverified", + "modelRevision": "1137dacfc2c9c012bed6a0793f4ecf2ca8e7ba01", + "lockedSeed": 42, + "lockedSettings": { + "width": 720, + "height": 480, + "steps": 25, + "guidanceScale": 6, + "strength": 0.8, + "outputType": "pil", + "maxSequenceLength": 226, + "pagScale": 3, + "pagAdaptiveScale": 0, + "dtype": "float16", + "resourceMode": "expert", + "quantizationMode": "none", + "autoOffload": true, + "offloadMode": "model_cpu", + "numFrames": 25, + "fps": 8, + "guidanceScale2": 0, + "shift": 0 + }, + "retainedVideoPreview": { + "frames": 25, + "fps": 8, + "width": 720, + "height": 480, + "mediaHash": "sha256:decoded-video-framemd5:a7b338af1009ea404ed9dfac3c907b8e04e25d78fb69c1ceb602ef0ab646b7cd" + }, + "expectedOutput": { + "width": 720, + "height": 480, + "frames": 25, + "durationSeconds": 3.125 + }, + "runtimeEstimate": "388.11 seconds in the saved run" + }, + "requiredBackendCapabilities": [ + "modules.DiffusersRuntime.PipelineQuantizationConfigV2", + "modules.DiffusersRuntime.DiffusersExecutionRecipe", + "modules.Video.Load", + "modules.VideoConditioning.Normalize", + "modules.Video.Export", + "modules.DiffusersVideo.Generate", + "modules.DiffusersVideo.LoadPipeline" + ], + "mediaSlots": [ + { + "id": "before", + "label": "Source video", + "kind": "comparison_before", + "role": "before", + "placeholder": "Source pending" + }, + { + "id": "after", + "label": "Generated video", + "kind": "comparison_after", + "role": "after", + "placeholder": "Preview pending" + } + ], + "recipeSummary": "Reproduce the reviewed Red Tram on the Model Railway example with the saved prompt, settings and model revision.", + "runtimeReuseKey": "sha256:canonical-graph-v1:9536733d2657f50f2530e066706a283d282c5dbd7989f70e563942b748489f2d" + } +}, ]; diff --git a/src/studio/retainedGalleryTemplates.ts b/src/studio/retainedGalleryTemplates.ts index 38c47905..4e728ea4 100644 --- a/src/studio/retainedGalleryTemplates.ts +++ b/src/studio/retainedGalleryTemplates.ts @@ -10,6 +10,7 @@ export type RetainedGalleryRecipe = { readonly reviewedTemplateSha256: string; readonly maskSha256?: string; readonly guideSha256?: string; + readonly lastFrameSha256?: string; readonly reviewedCatalogLock: { readonly templateLockHash: string; readonly galleryTemplateLockHash: string; diff --git a/src/studio/retainedVideoPreview.ts b/src/studio/retainedVideoPreview.ts new file mode 100644 index 00000000..8a22ad13 --- /dev/null +++ b/src/studio/retainedVideoPreview.ts @@ -0,0 +1,40 @@ +/** A complete, reviewed, silent clip reproduced from a saved native run. */ +export type RetainedVideoPreview = { + mediaHash: string; + width: number; + height: number; + frames: number; + fps: number; +}; + +export function retainedVideoPreviewMatches( + preview: RetainedVideoPreview | undefined, + media: { + mediaHash?: string; + width?: number; + height?: number; + frames?: number; + fps?: number; + durationSeconds?: number; + }, +) { + if (!preview) return false; + return ( + /^sha256:decoded-video-(framemd5|rgba):[a-f0-9]{64}$/u.test(preview.mediaHash) && + preview.mediaHash === media.mediaHash && + preview.width === media.width && + preview.height === media.height && + Number.isSafeInteger(preview.width) && + Number.isSafeInteger(preview.height) && + preview.width >= 480 && + preview.height >= 480 && + Number.isSafeInteger(preview.frames) && + preview.frames >= 2 && + preview.frames === media.frames && + Number.isFinite(preview.fps) && + preview.fps > 0 && + preview.fps <= 120 && + (media.fps === undefined || Math.abs(media.fps - preview.fps) < 0.001) && + Math.abs(Number(media.durationSeconds) - preview.frames / preview.fps) <= 0.005 + ); +} diff --git a/src/studio/templateAssetSource.json b/src/studio/templateAssetSource.json index 0203ccb8..0b10f53e 100644 --- a/src/studio/templateAssetSource.json +++ b/src/studio/templateAssetSource.json @@ -4,11 +4,11 @@ "localBasePath": "/template-gallery", "repoType": "dataset", "repoId": "sourav-das/modiff-template-gallery", - "revision": "632acebbc3b2f639f0bab3e6449d641c39e577f8", + "revision": "ec3a98a8e44714ca4680273c7d056e91f6edca19", "pathPrefix": "template-gallery", "assetManifestPath": "_modiff/template-assets.v1.json", - "assetSetId": "sha256:canonical-json:b900f8baa2ce910e0c905d1a7d505727d7014fd1dc2be9709116cacf8a65b852", - "completeAssetSetId": "sha256:canonical-json:d03def6ad163d7c88ee848138c806e5182df1f9d05589569aa0c504aca63960f", + "assetSetId": "sha256:canonical-json:1792271d51b6fd32bd7976f7a56bda9fb994d48e2435016f16d0faa9a6e9913c", + "completeAssetSetId": "sha256:canonical-json:415c599a910952e3eb8b060e3b04f91e6a85028a6e8dc1d180d5ad5fd11e73f4", "unavailableAssets": [ "template-gallery/ace_step_chinese_new_year_lora.card-poster.png", "template-gallery/ace_step_chinese_new_year_lora.wav", diff --git a/src/studio/templateExactness.ts b/src/studio/templateExactness.ts index 37d964d0..117ef173 100644 --- a/src/studio/templateExactness.ts +++ b/src/studio/templateExactness.ts @@ -1,5 +1,6 @@ import { getFormDefaultsForMode } from './modelProfiles'; import { sourceVideoTimingMatches } from './sourceVideoTiming'; +import { retainedVideoPreviewMatches } from './retainedVideoPreview'; import { coerceStudioTemplateId } from './outputContracts'; import templateGalleryContract from './templateGalleryContract.json'; import { resolveTemplateAssetUrl } from './templateAssets'; @@ -382,6 +383,19 @@ export function isTemplateExactEligible(template: StudioTemplate, form: StudioFo return getTemplateModifiedFields(template, form).length === 0; } +export function isRetainedVideoPreview(template: StudioTemplate, entry: TemplateGalleryManifestEntry | undefined) { + return ( + entry?.mediaType === 'video' && + entry.verificationStatus === 'reviewed' && + entry.qualityReviewStatus === 'approved_reviewed' && + /^sha256:retained-template-association-v1:[a-f0-9]{64}$/u.test(entry.proofLockHash) && + entry.outputPath.endsWith('.mp4') && + !entry.decodedAudioHash && + !entry.audiovisualMediaHash && + retainedVideoPreviewMatches(template.example?.retainedVideoPreview, entry) + ); +} + function matchesTemplateMediaContract(template: StudioTemplate, entry: TemplateGalleryManifestEntry) { if (entry.mediaType !== 'video') return true; @@ -400,11 +414,11 @@ function matchesTemplateMediaContract(template: StudioTemplate, entry: TemplateG template.mode === 'video_to_video' && sourceVideoTimingMatches(expected.sourceTiming, { frames, durationSeconds }) && (entry.beforeSourceMediaHash ?? entry.beforeMediaHash) === expected.sourceTiming?.sourceMediaHash; + const retainedPreview = isRetainedVideoPreview(template, entry); if ( - (!sourceTimingPreserved && durationSeconds < contract.minimumDurationSeconds) || - (!sourceTimingPreserved && frames < contract.minimumFrames) || - shortEdge < contract.minimumShortEdge || - longEdge < contract.minimumLongEdge + (!sourceTimingPreserved && !retainedPreview && durationSeconds < contract.minimumDurationSeconds) || + (!sourceTimingPreserved && !retainedPreview && frames < contract.minimumFrames) || + (!retainedPreview && (shortEdge < contract.minimumShortEdge || longEdge < contract.minimumLongEdge)) ) { return false; } @@ -455,6 +469,7 @@ export function findManifestEntry( matchesTemplateMediaContract(template, entry) && (entry.mediaType !== 'video' || !requireCardPreview || + isRetainedVideoPreview(template, entry) || (Boolean(entry.cardPreviewPath) && Boolean(entry.cardPreviewSha256))), ); } @@ -619,6 +634,7 @@ export function getTemplateCardMedia( ): TemplateCardMedia { const manifestEntry = findManifestEntry(template, manifest) ?? findHistoricalTemplateManifestEntry(template, manifest); + const retainedPreview = isRetainedVideoPreview(template, manifestEntry); const bundledSourcePreview = template.outputKinds?.[0] === 'audio' ? template.inputBindings @@ -626,8 +642,9 @@ export function getTemplateCardMedia( .flatMap((binding) => binding.defaultAssets) .find((asset) => asset.previewPath)?.previewPath : undefined; + const manifestPoster = retainedPreview ? manifestEntry?.posterPath : manifestEntry?.thumbnailPath ?? manifestEntry?.posterPath; const thumbnailPath = - templateManifestPath(manifestEntry?.thumbnailPath ?? manifestEntry?.posterPath) ?? + templateManifestPath(manifestPoster) ?? templateManifestPath(template.example?.thumbnailPath ?? template.example?.outputPath); const selectedAudioExample = template.outputKinds?.[0] === 'audio' ? templateManifestPath(template.example?.outputPath) : undefined; @@ -637,7 +654,9 @@ export function getTemplateCardMedia( return { beforePath: templateManifestPath(manifestEntry?.beforePath ?? bundledSourcePreview), - mediaPath: isVideo ? templateManifestPath(manifestEntry?.cardPreviewPath) : generatedOutputPath, + mediaPath: isVideo + ? templateManifestPath(manifestEntry?.cardPreviewPath ?? (retainedPreview ? manifestEntry?.outputPath : undefined)) + : generatedOutputPath, thumbnailPath, }; } diff --git a/src/studio/types.ts b/src/studio/types.ts index 3fce13ad..2f5655e1 100644 --- a/src/studio/types.ts +++ b/src/studio/types.ts @@ -262,6 +262,10 @@ export type StudioTemplateId = | 'chroma_terracotta_and_blue' | 'longcat_last_tram_at_dusk' | 'qwen_layered_sunset_and_peaks' + | 'wan_a14b_cloudbreak_over_the_ridges' + | 'wan_flf_blue_hour_at_the_tram_shelter' + | 'cogvideox_mossy_mountain_stream' + | 'cogvideox_red_tram_model_railway' | 'lumina2_larch_on_glacial_pond' | 'hunyuan_dit_coastal_lighthouse' | 'omnigen_tulips_after_rain' @@ -1673,6 +1677,8 @@ export type StudioTemplateExample = { expectedOutput?: TemplateExpectedOutput; /** Optional derived gallery-media override, such as a review contact sheet. */ galleryExpectedOutput?: TemplateExpectedOutput; + /** The specific native video accepted for a retained technical preview. */ + retainedVideoPreview?: import('./retainedVideoPreview').RetainedVideoPreview; modelRevision: string; runtimeEstimate: string; outputPath?: string; diff --git a/tests/e2e/live-backend/visual-stage-groups.spec.ts b/tests/e2e/live-backend/visual-stage-groups.spec.ts index 129dd7ad..45b23312 100644 --- a/tests/e2e/live-backend/visual-stage-groups.spec.ts +++ b/tests/e2e/live-backend/visual-stage-groups.spec.ts @@ -40,6 +40,36 @@ async function snapshot(page: Page) { }>; } +test('retained first and last frame recipe opens with two independent image inputs', async ({ page }) => { + let requests = 0; + page.on('request', (request) => { + if (request.method() === 'POST' && new URL(request.url()).pathname === '/graph') requests++; + }); + await page.evaluate(async () => { + await window.__MODIFF_E2E__!.applyTemplate('wan_flf_blue_hour_at_the_tram_shelter', { + referenceImages: ['@data/images/tram-shelter-first.png', '@data/images/tram-shelter-last.png'], + resourceMode: 'expert', + }); + }); + await expect + .poll(async () => { + const api = await page.evaluate(() => window.__MODIFF_E2E__!.exportAuthorizedApiGraph()); + return Object.values(api?.nodes ?? {}).some(({ action }) => action === 'ImageEncode'); + }, { timeout: 60_000 }) + .toBe(true); + const api = await page.evaluate(() => window.__MODIFF_E2E__!.exportAuthorizedApiGraph()); + const encoder = Object.values(api.nodes).find(({ action }) => action === 'ImageEncode')!; + const first = encoder.params.image.sourceId!; + const last = encoder.params.last_image.sourceId!; + expect(first).not.toEqual(last); + expect(api.nodes[first].params.file.value).toEqual(['@data/images/tram-shelter-first.png']); + expect(api.nodes[last].params.file.value).toEqual('@data/images/tram-shelter-last.png'); + const denoise = Object.values(api.nodes).find(({ action }) => action === 'Denoise')!; + expect(denoise.params.guidance_scale.value).toBe(5.5); + expect(denoise.params.num_frames.value).toBe(81); + expect(requests).toBe(0); +}); + async function openExamples(page: Page) { // A lazy library can be selected and open before its buttons mount. Its // temporary absence must not be mistaken for a collapsed panel and toggled shut. From da0e71d60dd1427ed0a28d4a56e3e00fc200dda9 Mon Sep 17 00:00:00 2001 From: Sourav Das Date: Wed, 25 Nov 2026 13:05:39 +0530 Subject: [PATCH 372/440] Register three retained images and verify LTX-2 saved runs --- config/release-showcase-scope.v1.json | 160 +- .../retained-gallery-approved-batch.v1.json | 36 + ...etained-gallery-authoring-archives.v1.json | 15 + ...etained-gallery-batch-recipe-locks.v1.json | 739 ++ ...tained-gallery-legacy-recipe-locks.v1.json | 101 + config/template-asset-rights.v1.json | 1124 +-- config/template-assets.v1.json | 151 +- public/template-gallery/manifest.json | 90 + scripts/bundle-budget.mjs | 5 + ...e-full-native-template-candidates.test.mjs | 2 +- scripts/modiff-template.test.mjs | 8 +- scripts/prompt-variant-evidence.mjs | 81 +- scripts/prompt-variant-evidence.test.mjs | 36 + scripts/release-contract-core.mjs | 1 + scripts/release-contract.mjs | 2 +- scripts/retained-gallery-recipes.ts | 28 + scripts/retained-gallery-release.mjs | 6 +- scripts/retained-gallery-templates.test.mjs | 48 +- scripts/retained-template-association.mjs | 4 +- scripts/source-video-timing.test.mjs | 10 +- scripts/template-card-coverage.mjs | 11 +- scripts/template-card-previews.mjs | 4 + scripts/template-gallery-coverage.mjs | 20 +- scripts/template-gallery-harness.mjs | 9 +- scripts/template-quality.test.mjs | 2 +- scripts/template-stage-coverage.test.mjs | 2 +- scripts/workflow-library-generator.mjs | 2 +- src/components/TemplateBrowserDialog.tsx | 6 +- src/studio/retainedGalleryApprovedBatch.ts | 8082 ++++++++--------- src/studio/retainedGalleryTemplates.ts | 1062 +-- src/studio/templateAssetSource.json | 6 +- src/studio/templateExactness.ts | 8 +- src/studio/templates.ts | 2 +- src/studio/types.ts | 3 + .../live-backend/visual-stage-groups.spec.ts | 11 +- 35 files changed, 6407 insertions(+), 5470 deletions(-) create mode 100644 config/retained-gallery-batch-recipe-locks.v1.json create mode 100644 config/retained-gallery-legacy-recipe-locks.v1.json create mode 100644 scripts/retained-gallery-recipes.ts diff --git a/config/release-showcase-scope.v1.json b/config/release-showcase-scope.v1.json index fec8057d..3e9479b3 100644 --- a/config/release-showcase-scope.v1.json +++ b/config/release-showcase-scope.v1.json @@ -4,7 +4,7 @@ "name": "Registered showcase preview without AMD-cloud backlog", "dataset": { "repository": "sourav-das/modiff-template-gallery", - "revision": "7a5c7bd80df3c9179762bece6adc28dd62e1ab9e" + "revision": "c1313d4630a08fa4735e1b7295b8a45364886cc8" }, "originalCampaign": { "total": 89, @@ -681,7 +681,163 @@ "category": "supplementary-only", "reason": "Published and registered from the approved saved run outside the original campaign selection.", "countedAsComplete": false + }, + { + "id": "chroma_restored_cobalt_backdrop", + "category": "supplementary-only", + "reason": "Published and registered from an approved saved run outside the original campaign selection.", + "countedAsComplete": false + }, + { + "id": "chroma_terracotta_and_blue", + "category": "supplementary-only", + "reason": "Published and registered from an approved saved run outside the original campaign selection.", + "countedAsComplete": false + }, + { + "id": "cogvideox_mossy_mountain_stream", + "category": "supplementary-only", + "reason": "Published and registered from an approved saved run outside the original campaign selection.", + "countedAsComplete": false + }, + { + "id": "cogvideox_red_tram_model_railway", + "category": "supplementary-only", + "reason": "Published and registered from an approved saved run outside the original campaign selection.", + "countedAsComplete": false + }, + { + "id": "hunyuan_dit_coastal_lighthouse", + "category": "supplementary-only", + "reason": "Published and registered from an approved saved run outside the original campaign selection.", + "countedAsComplete": false + }, + { + "id": "hunyuan_dit_green_glass_study", + "category": "supplementary-only", + "reason": "Published and registered from an approved saved run outside the original campaign selection.", + "countedAsComplete": false + }, + { + "id": "hunyuan_pag_burgundy_knight", + "category": "supplementary-only", + "reason": "Published and registered from an approved saved run outside the original campaign selection.", + "countedAsComplete": false + }, + { + "id": "longcat_last_tram_at_dusk", + "category": "supplementary-only", + "reason": "Published and registered from an approved saved run outside the original campaign selection.", + "countedAsComplete": false + }, + { + "id": "lumina2_larch_on_glacial_pond", + "category": "supplementary-only", + "reason": "Published and registered from an approved saved run outside the original campaign selection.", + "countedAsComplete": false + }, + { + "id": "omnigen_tulips_after_rain", + "category": "supplementary-only", + "reason": "Published and registered from an approved saved run outside the original campaign selection.", + "countedAsComplete": false + }, + { + "id": "qwen_control_winter_cabin_blue_hour", + "category": "supplementary-only", + "reason": "Published and registered from an approved saved run outside the original campaign selection.", + "countedAsComplete": false + }, + { + "id": "qwen_layered_sunset_and_peaks", + "category": "supplementary-only", + "reason": "Published and registered from an approved saved run outside the original campaign selection.", + "countedAsComplete": false + }, + { + "id": "sd15_canny_guided_green_glass", + "category": "supplementary-only", + "reason": "Published and registered from an approved saved run outside the original campaign selection.", + "countedAsComplete": false + }, + { + "id": "sd15_pag_canny_guided_glass", + "category": "supplementary-only", + "reason": "Published and registered from an approved saved run outside the original campaign selection.", + "countedAsComplete": false + }, + { + "id": "sd15_pag_cobalt_studio_repair", + "category": "supplementary-only", + "reason": "Published and registered from an approved saved run outside the original campaign selection.", + "countedAsComplete": false + }, + { + "id": "sd15_pag_mountain_lake_watercolor", + "category": "supplementary-only", + "reason": "Published and registered from an approved saved run outside the original campaign selection.", + "countedAsComplete": false + }, + { + "id": "sdxl_canny_adapter_glass_study", + "category": "supplementary-only", + "reason": "Published and registered from an approved saved run outside the original campaign selection.", + "countedAsComplete": false + }, + { + "id": "sdxl_control_inpaint_warm_plaster", + "category": "supplementary-only", + "reason": "Published and registered from an approved saved run outside the original campaign selection.", + "countedAsComplete": false + }, + { + "id": "sdxl_controlnet_glass_study_on_slate", + "category": "supplementary-only", + "reason": "Published and registered from an approved saved run outside the original campaign selection.", + "countedAsComplete": false + }, + { + "id": "sdxl_pix2pix_pale_amber_glass", + "category": "supplementary-only", + "reason": "Published and registered from an approved saved run outside the original campaign selection.", + "countedAsComplete": false + }, + { + "id": "wan_a14b_cloudbreak_over_the_ridges", + "category": "supplementary-only", + "reason": "Published and registered from an approved saved run outside the original campaign selection.", + "countedAsComplete": false + }, + { + "id": "wan_flf_blue_hour_at_the_tram_shelter", + "category": "supplementary-only", + "reason": "Published and registered from an approved saved run outside the original campaign selection.", + "countedAsComplete": false + }, + { + "id": "zimage_golden_amber_glass", + "category": "supplementary-only", + "reason": "Published and registered from an approved saved run outside the original campaign selection.", + "countedAsComplete": false + }, + { + "id": "joyimage_herbarium_rainy_porthole", + "category": "supplementary-only", + "reason": "Published and registered from an approved saved run outside the original campaign selection.", + "countedAsComplete": false + }, + { + "id": "longcat_florist_end_of_lane", + "category": "supplementary-only", + "reason": "Published and registered from an approved saved run outside the original campaign selection.", + "countedAsComplete": false + }, + { + "id": "sana_tidal_pool_on_black_basalt", + "category": "supplementary-only", + "reason": "Published and registered from an approved saved run outside the original campaign selection.", + "countedAsComplete": false } ], - "profileHash": "sha256:canonical-json:4a48c6b4502baaad0573b0bb0f1c1fb4030663fe72cf7aa1c5214c1a724eb778" + "profileHash": "sha256:canonical-json:ef8bad58798dd4bc110738b59ac622482771ebad7d23870625edce6a955e67e5" } diff --git a/config/retained-gallery-approved-batch.v1.json b/config/retained-gallery-approved-batch.v1.json index b8e1c242..b03dcc86 100644 --- a/config/retained-gallery-approved-batch.v1.json +++ b/config/retained-gallery-approved-batch.v1.json @@ -650,5 +650,41 @@ "width": 768, "height": 512 } + }, + "joyimage_herbarium_rainy_porthole": { + "associationSha256": "f0254138cc571fad786388d675b3a686bf1f7cc221aaa157c4ed3e300d7e46b2", + "backendSourceFingerprint": "sha256:backend-source-v1:b29a5b0d317aaa781ae2a5205b46b518eea5a3d68a214eb0968dba4ac0660af7", + "backendContractFingerprint": "sha256:backend-contract-v1:300f2fb801e65ef8a0355d217f3f89e59d11e38f976af5a86ba41212d30216fd", + "templateRevisionHash": "5e0a8441e6f6998745a1b9c9a8244aa5d8e4e8591be5277396f519f41adf7ad4", + "capturedAt": "2026-11-25T04:23:00.358Z", + "outputExtension": "webp", + "outputSize": { + "width": 1024, + "height": 1024 + } + }, + "longcat_florist_end_of_lane": { + "associationSha256": "bbd822df29e973cd3db526d60c6cc1fa76e5a88fcb6eb78712f0ee1a2851ff26", + "backendSourceFingerprint": "sha256:backend-source-v1:b29a5b0d317aaa781ae2a5205b46b518eea5a3d68a214eb0968dba4ac0660af7", + "backendContractFingerprint": "sha256:backend-contract-v1:300f2fb801e65ef8a0355d217f3f89e59d11e38f976af5a86ba41212d30216fd", + "templateRevisionHash": "b90a1a05613457abec04653497adf621e361d94bfc399db6cbd94f093a69421f", + "capturedAt": "2026-11-25T04:36:30.280Z", + "outputExtension": "webp", + "outputSize": { + "width": 1024, + "height": 1024 + } + }, + "sana_tidal_pool_on_black_basalt": { + "associationSha256": "7d892caa8cb7984f4c5abad893b76175dc4bd16600ae563c2fc4b91119e53b38", + "backendSourceFingerprint": "sha256:backend-source-v1:b29a5b0d317aaa781ae2a5205b46b518eea5a3d68a214eb0968dba4ac0660af7", + "backendContractFingerprint": "sha256:backend-contract-v1:300f2fb801e65ef8a0355d217f3f89e59d11e38f976af5a86ba41212d30216fd", + "templateRevisionHash": "31c6fda19fe62a7282c50fe665069354989947ef1454ac63a1384637792d09c6", + "capturedAt": "2026-11-24T21:35:49.709Z", + "outputExtension": "webp", + "outputSize": { + "width": 1024, + "height": 1024 + } } } diff --git a/config/retained-gallery-authoring-archives.v1.json b/config/retained-gallery-authoring-archives.v1.json index 07049141..152e191f 100644 --- a/config/retained-gallery-authoring-archives.v1.json +++ b/config/retained-gallery-authoring-archives.v1.json @@ -248,5 +248,20 @@ "descriptorSha256": "63d626c3c97cd12016b58a9fba71739eeea0459ad300383d5b4f43aa0775740a", "bytes": 5726, "sha256": "37898b78c1e8df5ab9940aa2dbe7e467cd16e582c10e2156eca29ad967b6c8ba" + }, + "JoyImageEditPipeline:text_to_image": { + "descriptorSha256": "655abc48262ac72c9e7cee61c90f7f72430660b5b5102716b97d4ee9730e31fa", + "bytes": 4150, + "sha256": "91f48149a549804d83375b9c26bf0cb8890091e6f8af135b2a225fae3033df75" + }, + "LongCatImagePipeline:text_to_image": { + "descriptorSha256": "8020bb532f9bc0fc6222c2083e81579b3c8dac7c9dd934e8d2534db7b3ae5fe1", + "bytes": 4155, + "sha256": "f2f0a9bdde30f96caf2c200be4ecbae6c3a6eef6c657707a923d13ee2dfaf2c8" + }, + "SanaPipeline:text_to_image": { + "descriptorSha256": "8b9112a10ce799d31f77d03e5f3d757d2510a7019f6bdc9e88d3de208f2bfa72", + "bytes": 4107, + "sha256": "cde74a47d58aa76951872729bedd01dcdc996dc4fd2130adab403fe8fa670835" } } diff --git a/config/retained-gallery-batch-recipe-locks.v1.json b/config/retained-gallery-batch-recipe-locks.v1.json new file mode 100644 index 00000000..b45863e4 --- /dev/null +++ b/config/retained-gallery-batch-recipe-locks.v1.json @@ -0,0 +1,739 @@ +{ + "alpine_lake_in_oils": { + "workflowId": "StableDiffusionPipeline:edit_image", + "sourceTaskTemplateId": "task-template:sd15-base:edit-image:v1", + "retainedGraphHash": "sha256:canonical-graph-v1:e5a47286938233b67cc7bec938b43449fdbf4dd46a028f200cce4471158267e2", + "originalReceiptSha256": "ce72fd7e5d5f263f68f94ae15778a596a3161c38c0f4092531f0c719b78667d8", + "reviewedTemplateSha256": "81ebe61010abc66045694e149989c24310c3a181d46fab2b644ac0a0bafffcae", + "reviewedCatalogLock": { + "templateLockHash": "tpl_8c19d0a7", + "galleryTemplateLockHash": "tpl_0816c26c", + "promptSettingsHash": "ps_9f1fefe2" + }, + "promptSha256": "8aeb1e7983a533609ac97ac6366f042be91fc806047b8e0cfe251abef9accaf1", + "inputSha256": "88290a96bc8d52f11f2d1e3c0c0e04c2027661816e54b57d7d4739d731ca1e75", + "inputLocatorSha256": "b7e9b68e47a60f438c82f778b960f66d58d319de50749d453a9aa0c30c4df45a" + }, + "bookshop_at_blue_hour": { + "workflowId": "ErnieImagePipeline:text_to_image", + "sourceTaskTemplateId": "task-template:ernie-image-turbo:text-to-image:v1", + "retainedGraphHash": "sha256:canonical-graph-v1:f12eab7de9d1be025dee6d2466013865b35a67d145813a1faf68c1e4d0ff034c", + "originalReceiptSha256": "45f9a07cbd540055ad63000eb928be4a1b685c4b622bf46b84c98784e2c61139", + "reviewedTemplateSha256": "160e77d5c28132522b0cbf5f3102b812a4e8be9eff09f321db0c5853905cab5e", + "reviewedCatalogLock": { + "templateLockHash": "tpl_502a4ae7", + "galleryTemplateLockHash": "tpl_14707aaf", + "promptSettingsHash": "ps_cf9a00e5" + }, + "promptSha256": "767ac6934d73853bdb2b07521107727f936eec375361a0eba6dd64dfc5a1b63d" + }, + "flowers_after_rain": { + "workflowId": "OvisImagePipeline:text_to_image", + "sourceTaskTemplateId": "task-template:ovis-image-7b:text-to-image:v1", + "retainedGraphHash": "sha256:canonical-graph-v1:12380dcafddc7153ecd5f02ced0b95c58031228dc7825e3914f22dae90489999", + "originalReceiptSha256": "37580a349097d0a2e201a6daa48f3cc541c62260306e4153c4995e2d0615a72c", + "reviewedTemplateSha256": "a113786c4f56e30b9f8c024d9e71abd7e84419b59bafe097bee8cd40b7074687", + "reviewedCatalogLock": { + "templateLockHash": "tpl_3f0f58ac", + "galleryTemplateLockHash": "tpl_3ba52cb2", + "promptSettingsHash": "ps_1e317563" + }, + "promptSha256": "0250d3ccd73f7db3eabae81abe1590befc673f4bc9e68506c134c84a6a3ff1a8" + }, + "forest_ferns": { + "workflowId": "GlmImagePipeline:text_to_image", + "sourceTaskTemplateId": "task-template:glm-image:text-to-image:v1", + "retainedGraphHash": "sha256:canonical-graph-v1:ff052e8de129d2eef0f849f457336a1dfce83bd0b7443e1dc5802d0608e0781e", + "originalReceiptSha256": "193b411fea187862b1af32edf24623f0cfd75a9f0d856a66b07fe99b1e562833", + "reviewedTemplateSha256": "6a6e34ea5e9b0dec925e0ce13a0422fc00c65754f867c44e3105bfdb9d03c305", + "reviewedCatalogLock": { + "templateLockHash": "tpl_8cbb3432", + "galleryTemplateLockHash": "tpl_be9fadb4", + "promptSettingsHash": "ps_975f83ff" + }, + "promptSha256": "e4e5455d0f55ea6ae1f3061bdb8462de4ddffa2a230462a2010ebd3d443b1f50" + }, + "ochre_paper_pavilion": { + "workflowId": "CogView3PlusPipeline:text_to_image", + "sourceTaskTemplateId": "task-template:cogview3-plus-3b:text-to-image:v1", + "retainedGraphHash": "sha256:canonical-graph-v1:063bf00e554a6d90e9fab896c09f23b976d423fc4c82da89c7471ac21a81eb57", + "originalReceiptSha256": "19c1e125e259b8b0e22a5bf5c03ab7c105a8302fc69b7e63c61796d7b7496744", + "reviewedTemplateSha256": "b5e4c8446f01030c05a206290d9ed0c1e5035cd3110f0fb6a9e6e3c416ad5177", + "reviewedCatalogLock": { + "templateLockHash": "tpl_791ad974", + "galleryTemplateLockHash": "tpl_f93a2d5c", + "promptSettingsHash": "ps_f36e5dd5" + }, + "promptSha256": "2483828af4f90e3e8b07e47b32c754c7970b1f30c4e8cfbd0c4a0e66f6b987f3" + }, + "quiet_current": { + "workflowId": "CogView4Pipeline:text_to_image", + "sourceTaskTemplateId": "task-template:cogview4-6b:text-to-image:v1", + "retainedGraphHash": "sha256:canonical-graph-v1:0870e1b5d6c05b496e120e383bc7c13c4fe1705efc5d918466900b9e906288d8", + "originalReceiptSha256": "7cb177ef1dac774f3cb76c3f58cf246fbdbf7673a78e379ff54e7fba5fa1a85f", + "reviewedTemplateSha256": "c3c7aada8d0fc7bec8c4067c9c88fbb03d5210ee9f6412d1d5984b21879ab886", + "reviewedCatalogLock": { + "templateLockHash": "tpl_13cc85b1", + "galleryTemplateLockHash": "tpl_57a6868c", + "promptSettingsHash": "ps_5d56d1da" + }, + "promptSha256": "18d76f8a51049a51ea77cf436170824bf445ae8fa572893ee930ae11924d49d6" + }, + "persimmon_glaze": { + "workflowId": "SanaPAGPipeline:text_to_image", + "sourceTaskTemplateId": "task-template:sana-600m-pag:text-to-image:v1", + "retainedGraphHash": "sha256:canonical-graph-v1:52c3114e98debe02d6e7a297276e67887d782628952ddb20ae88c499d7c6a356", + "originalReceiptSha256": "2e80e952039cfbc7b42f7f1b5689f30fb8b8f83646e0f4c2f6cb8e3a68b8d784", + "reviewedTemplateSha256": "ddf39e419212cba10df50f7b27b3fae22d57a0cbfc574164bcad08975fa2545b", + "reviewedCatalogLock": { + "templateLockHash": "tpl_fc97bb6a", + "galleryTemplateLockHash": "tpl_ef8db2a5", + "promptSettingsHash": "ps_8a0e2f0d" + }, + "promptSha256": "fb940b41391388f6221f47154824aac67e9c0f828de5581e1afd855ce2ec528d" + }, + "porcelain_on_slate_linen": { + "workflowId": "LatentConsistencyModelPipeline:text_to_image", + "sourceTaskTemplateId": "task-template:lcm-dreamshaper-v7:text-to-image:v1", + "retainedGraphHash": "sha256:canonical-graph-v1:a27f2318675f32fa007ed44f64cc42f78c58f05c896bdba16bcf71cec4383ea5", + "originalReceiptSha256": "b23f6c1d6ea11f928eab1c62422e49a288645e6f46ecf0c4f1b4994e95ad56ea", + "reviewedTemplateSha256": "fe33d74a4694ab6b3d34f483d56575c0c66a5948d424a62c04538c0dd608253a", + "reviewedCatalogLock": { + "templateLockHash": "tpl_64460ff2", + "galleryTemplateLockHash": "tpl_5536c9a7", + "promptSettingsHash": "ps_38a31bbe" + }, + "promptSha256": "1ad3ea7692a0f8ae0bbd025e78774b790e4fee6066ddd349390e80bcff3c0fa9" + }, + "salt_marsh_from_above": { + "workflowId": "AuraFlowPipeline:text_to_image", + "sourceTaskTemplateId": "task-template:auraflow-v0.3:text-to-image:v1", + "retainedGraphHash": "sha256:canonical-graph-v1:956816a0ebe49ffead5c8c8759c3db2becf2d5a46196fba7696e978d0d55b15b", + "originalReceiptSha256": "c4ce21c85cf0412cc1e69ff59009037bbdde9d1692cff19f307d589b84fb5b1f", + "reviewedTemplateSha256": "b09d5bf8c1d2efa3ae62881840125aa474500d658ba7538031dedeaeb79d52d4", + "reviewedCatalogLock": { + "templateLockHash": "tpl_b2dab5aa", + "galleryTemplateLockHash": "tpl_a23dcce5", + "promptSettingsHash": "ps_97c53e0a" + }, + "promptSha256": "1689b205b531ff682a01a0cac00b798a7dc1ec291b1cc72f47cafd7c11c188aa" + }, + "cobalt_jug_and_lemons": { + "workflowId": "StableDiffusionPipeline:text_to_image", + "sourceTaskTemplateId": "task-template:sd15-base:text-to-image:v1", + "retainedGraphHash": "sha256:canonical-graph-v1:27fe077b35b48bbd8edc6589655a5ed7a3788139a0a0ab82b14cf3f0ae839b19", + "originalReceiptSha256": "235118ee94df6adef140079116b17158e2922bf861a5f6d7d23f4f3f988d3927", + "reviewedTemplateSha256": "1c4b2351129fdb61f6ea79abfb8c699ff4db82db0c97e1dc92e9eeeb36a34d12", + "reviewedCatalogLock": { + "templateLockHash": "tpl_514a5205", + "galleryTemplateLockHash": "tpl_61d186ae", + "promptSettingsHash": "ps_82f89ed0" + }, + "promptSha256": "516be575fb3191eafa8dd83a38a09c7e85cb36a6484abb71ea32b7080b21c7b8" + }, + "copper_hour_dunes": { + "workflowId": "PRXPipeline:text_to_image", + "sourceTaskTemplateId": "task-template:prx-512-sft:text-to-image:v1", + "retainedGraphHash": "sha256:canonical-graph-v1:3d2853278333f4c6760e366ae0347794b14b3937ac62422b5f84d6effcd10495", + "originalReceiptSha256": "77d2fb24693cf118ec83aea3c2a53a3c8558b13b78f0bae478458e53896dcabd", + "reviewedTemplateSha256": "4a188876a65d35df1c87da93c5fcae162f3bc8b20934a61fe70e4580b5090249", + "reviewedCatalogLock": { + "templateLockHash": "tpl_b747cf95", + "galleryTemplateLockHash": "tpl_3f17401c", + "promptSettingsHash": "ps_6998df3e" + }, + "promptSha256": "04cb0ceff2138f0fe17267a6c1e68698a7ccb1b2e9075641957b6b7dd59ea8f5" + }, + "glasshouse_rain": { + "workflowId": "StableDiffusionXLPipeline:text_to_image", + "sourceTaskTemplateId": "task-template:sdxl-base:text-to-image:v1", + "retainedGraphHash": "sha256:canonical-graph-v1:8cca9a4269d1339b835a8fba2a380913be348c06c3a628b212a3a17ef2377bb1", + "originalReceiptSha256": "944ff90f533867016d514d9cdd7a35648e711359c55f2ae06fc3bac8e88b63e8", + "reviewedTemplateSha256": "4d32a1778d7cad756e05f14f09de559b9b065f3675b2aef6a289c5299cbd2c24", + "reviewedCatalogLock": { + "templateLockHash": "tpl_b24bef60", + "galleryTemplateLockHash": "tpl_a4b61426", + "promptSettingsHash": "ps_fc327a42" + }, + "promptSha256": "eb5d22de03c2688152fd9f6674b018dcb8770f099e44706affd68deda70e65b2" + }, + "pomegranate_on_blue_linen": { + "workflowId": "StableDiffusionPAGPipeline:text_to_image", + "sourceTaskTemplateId": "task-template:sd15-pag:text-to-image:v1", + "retainedGraphHash": "sha256:canonical-graph-v1:f471ecd5a18b997bf9dc6b61a72cf7e98e0988f9309ef3432ec635838f97c409", + "originalReceiptSha256": "ad23b58153c3301fd0125a0a66e9e110a61a16e0c8833563cd3ca51109fe5056", + "reviewedTemplateSha256": "6642ac1831a788b83981383c33b7ce019692d58fd2b23f3bff9d95e3a59ec27b", + "reviewedCatalogLock": { + "templateLockHash": "tpl_98174f0f", + "galleryTemplateLockHash": "tpl_5dba74f8", + "promptSettingsHash": "ps_2f4c6afa" + }, + "promptSha256": "f0657889fb99878c51b1e31b08806daf0714539faf351abf6efcde2a39024db3" + }, + "canal_lantern_in_warm_light": { + "workflowId": "SanaSprintPipeline:text_to_image", + "sourceTaskTemplateId": "task-template:sana-sprint-600m:text-to-image:v1", + "retainedGraphHash": "sha256:canonical-graph-v1:374726f7f4d26de27f216171d570f84ef9365397555d083767b89eacc2415338", + "originalReceiptSha256": "e6693f3cb5cc81bbac653e0f89c15e2871fdbb67ad37c4f3c63514bbf4e0aa43", + "reviewedTemplateSha256": "0724f395ee3219d2cf878ea1ef914692d9808e83236c4d972322e062dd15b380", + "reviewedCatalogLock": { + "templateLockHash": "tpl_193e94c3", + "galleryTemplateLockHash": "tpl_c72697e6", + "promptSettingsHash": "ps_d411e860" + }, + "promptSha256": "315c32ce4bc4c7352d7eaf6bd8598fdfb67fa3479c4b3a9a14beb33e562a2605" + }, + "the_glasshouse_seed_tray": { + "workflowId": "StableDiffusionXLPAGPipeline:text_to_image", + "sourceTaskTemplateId": "task-template:sdxl-pag:text-to-image:v1", + "retainedGraphHash": "sha256:canonical-graph-v1:084cbe824fed25ab44a940b2319aa37299f80d3fc2e06efb5848d701162902d9", + "originalReceiptSha256": "e5bcc2b64bfddcadc334c20f0c125fdcae68760cde1ff60ec10d1a22ce81a997", + "reviewedTemplateSha256": "f30bccf14d658fa6222cec9c7458ec74fec76940dc1dac07ed87e19d93b3738c", + "reviewedCatalogLock": { + "templateLockHash": "tpl_7e4877bb", + "galleryTemplateLockHash": "tpl_9fd062df", + "promptSettingsHash": "ps_c51df98f" + }, + "promptSha256": "635581fcdcd104401ed65f1733f0cd4c7c700f35455f499f509dad161e799cb3" + }, + "quiet_kiln_at_daybreak": { + "workflowId": "NucleusMoEImagePipeline:text_to_image", + "sourceTaskTemplateId": "task-template:nucleus-image:text-to-image:v1", + "retainedGraphHash": "sha256:canonical-graph-v1:ee3d46849aebf382a67208a5f3c2ee4461deb6bfdab6af3506dfbb5abb6dfec1", + "originalReceiptSha256": "adc6e23f1c2082c72ea9e0697cc87f4e7da5d8cc01540d06f0d6e08acea81a04", + "reviewedTemplateSha256": "82918f24aaddf420da3c1213ac69779af2bf962cd2af50b33814f1eefdf14a3b", + "reviewedCatalogLock": { + "templateLockHash": "tpl_4c4f64e3", + "galleryTemplateLockHash": "tpl_c722e490", + "promptSettingsHash": "ps_b971c379" + }, + "promptSha256": "e1a2c655bd0bf0edee77abe9e13b3e9f1fe06114b20e01047491a379d96b6f6f" + }, + "restoring_the_studio_backdrop": { + "workflowId": "StableDiffusionPipeline:inpaint", + "sourceTaskTemplateId": "task-template:sd15-base:inpaint:v1", + "retainedGraphHash": "sha256:canonical-graph-v1:d46308269e83807cfb33229dc47a0720e765872ff093ae7006857bb9fe382051", + "originalReceiptSha256": "74c30496f6c07b0eceae986254a425b0b919b5e5d91fc668839d31a59783a4a6", + "reviewedTemplateSha256": "26d6762e118bc9217762cc4abeec7817586ee58fb80ef09bc3c98e32a2789472", + "reviewedCatalogLock": { + "templateLockHash": "tpl_46535382", + "galleryTemplateLockHash": "tpl_cab1d671", + "promptSettingsHash": "ps_b010f09b" + }, + "promptSha256": "17cd8e35f8e283ec08936955f6848154024d1a15ca2518e5e91c535e18996924", + "inputSha256": "d143c4922ad498b9bd436d06df424bbff50baf023b93735b53ee401e19e4cbf1", + "inputLocatorSha256": "efcb2b3b9ced784bb620763301bb33ea3b2f6ac2561624a4a60c7a735049cfb1", + "maskSha256": "71817f4823a73712c8e76e7d832ec382c29ec0a0bf5a472e09639448c082da01" + }, + "janus_reykjavik_travel_note": { + "workflowId": "HuggingFaceAnyToAnyModel:text_generation", + "sourceTaskTemplateId": "task-template:janus-pro-1b:text-generation:v1", + "retainedGraphHash": "sha256:canonical-graph-v1:eb58163449468a297887a396fb270e73104cbf0a537b7a4c30a17561087d94eb", + "originalReceiptSha256": "5c9d37ae6894cd6aa04a9bfc4a91beaf7e9eb73bef40e2edc144ddce0215b3e7", + "reviewedTemplateSha256": "cd73585863835d186d076de2bc4f37c36c11138376bdd2939af45290ff2c37af", + "reviewedCatalogLock": { + "templateLockHash": "tpl_f85e0e6f", + "galleryTemplateLockHash": "tpl_ffabdfb5", + "promptSettingsHash": "ps_2eede069" + }, + "promptSha256": "ec9c470f211df567cf09face1047675387ac0bd0191e7962f42eaede605b45b7" + }, + "janus_red_triangle_caption": { + "workflowId": "HuggingFaceAnyToAnyModel:image_to_text", + "sourceTaskTemplateId": "task-template:janus-pro-1b:image-to-text:v1", + "retainedGraphHash": "sha256:canonical-graph-v1:92d1160e0d3e06871c8b32b01497360e199c3a0c5bb1e69d68f81a6c651f795f", + "originalReceiptSha256": "13c313cdf72749eea9789f1cef22fa7e1106d1c46cf6d3a0fb0757c00677c45c", + "reviewedTemplateSha256": "44e68d77baa00812c4b9888835013887d523bfe990c11caec96ac426c8ca87b3", + "reviewedCatalogLock": { + "templateLockHash": "tpl_124461a5", + "galleryTemplateLockHash": "tpl_a56db7ab", + "promptSettingsHash": "ps_28ae7860" + }, + "promptSha256": "cd46be79ad59a1ca92ca16e6910d11f0272c0fdadf1688b1cbf05040e08606d2", + "inputSha256": "42d903217dc0d8addf5bb6b4a91c2fd83f6fec7fbbf165d780308b5efcba8c6f", + "inputLocatorSha256": "ce6e7bdfc88e0f8e6c01d9db3078a2990182e21ac8169460c399a757c1f0c294" + }, + "janus_red_enamel_teapot": { + "workflowId": "HuggingFaceAnyToAnyModel:text_to_image", + "sourceTaskTemplateId": "task-template:janus-pro-1b:text-to-image:v1", + "retainedGraphHash": "sha256:canonical-graph-v1:fc935fef4353febb86244c65ae189e7da6bee8ad266dc6ca0d8f88b7497c4eb1", + "originalReceiptSha256": "5820a7260e3f78175f684b39ee2a28c244bfb7cfaed6318c256c642dce306ecd", + "reviewedTemplateSha256": "335f3fbf1907201be05d98148bff1fb7dc68d540750b71f33812769ddfa55879", + "reviewedCatalogLock": { + "templateLockHash": "tpl_26cd8cd7", + "galleryTemplateLockHash": "tpl_ac9c0bc5", + "promptSettingsHash": "ps_4a949eaa" + }, + "promptSha256": "07b559ce738871099c5f9a2f9a5c61fb9ca71a8bfca500c109449f50a46eb456" + }, + "lumina_opal_pendant_in_limestone": { + "workflowId": "LuminaPipeline:text_to_image", + "sourceTaskTemplateId": "task-template:lumina-next:text-to-image:v1", + "retainedGraphHash": "sha256:canonical-graph-v1:029c04a5a3e933bb710937287da6cab94ef80b85a2b57c93e3002a3b6334d62f", + "originalReceiptSha256": "cbb5826ba9e44f9608ef88d6c52757cbd040c9bcb611f88e5892a2e93c79c8d3", + "reviewedTemplateSha256": "4545f92379bc42dd213572033b19a7d37bfd24a3cf8c5eb90fb510c2e2c4c1e7", + "reviewedCatalogLock": { + "templateLockHash": "tpl_9b863ddd", + "galleryTemplateLockHash": "tpl_f24a6ace", + "promptSettingsHash": "ps_a3742a3f" + }, + "promptSha256": "429f531790d0fb684f2bae38fd64c0519e34a091da09ed608b3f69ac0590bb68" + }, + "ddim_cifar10_preview": { + "workflowId": "DDIMPipeline:unconditional_image", + "sourceTaskTemplateId": "task-template:ddim-cifar10:unconditional-image:v1", + "retainedGraphHash": "sha256:canonical-graph-v1:ef9521d37a186e6b6539068596033f2b921370e3cf3ca8a031f3feaae8716434", + "originalReceiptSha256": "ba8521d8043808cfb8880be8e8f46eadb81e266624aa6fb478c8b0d156bab079", + "reviewedTemplateSha256": "1f41b7d2d7bccb216f46b9ce174a9d4246f0348584e208baeeaa4af92c172c9f", + "reviewedCatalogLock": { + "templateLockHash": "tpl_13b8b56b", + "galleryTemplateLockHash": "tpl_48bbabb3", + "promptSettingsHash": "ps_b456b1ed" + }, + "promptSha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855" + }, + "sdxl_clear_cobalt_backdrop": { + "workflowId": "StableDiffusionXLPipeline:inpaint", + "sourceTaskTemplateId": "task-template:sdxl-base:inpaint:v1", + "retainedGraphHash": "sha256:canonical-graph-v1:46f00547faa02a687a12eafda44d9c94802a76505143f4a95124b6bd44eabfda", + "originalReceiptSha256": "04773f9c39ab30246fca3f87394f504a61772ccfa97630d4b46d1a9530450ee2", + "reviewedTemplateSha256": "5ac53251bbc44c8b3eb62ab06fba702e275ebc7340348f36fb20a055d36b3573", + "reviewedCatalogLock": { + "templateLockHash": "tpl_15f3348b", + "galleryTemplateLockHash": "tpl_72c55f1d", + "promptSettingsHash": "ps_fdf2b4ba" + }, + "promptSha256": "159253308aba23cc8f6955da96e48e550533d368ca286ad70b6caa601d1291e4", + "inputSha256": "e75c20f0e8a74e283b996bf526e6ea74535ed24125ad97c2d92508d3435d7a87", + "inputLocatorSha256": "69ba088466bbd714eba0a70d1dc24984230ca1ac74b00ac0ff1bbcb29675799d", + "maskSha256": "1f48775f2826f84e0c5b55f16f3475bdc80ecad8b931d6b0279598610e9a828d" + }, + "sdxl_turbo_orange_caps": { + "workflowId": "StableDiffusionXLTurboPipeline:text_to_image", + "sourceTaskTemplateId": "task-template:sdxl-turbo:text-to-image:v1", + "retainedGraphHash": "sha256:canonical-graph-v1:40e7ee74d823ffc46f9e096c7cba50ec7f825e36627159674e1e621c33bbe0d3", + "originalReceiptSha256": "c530e10728c8c3871c1f6d6e58589996b8e926729d7c57e43fa36d020660e3dd", + "reviewedTemplateSha256": "a8bae14e8dc50c3969cba99c45be96d5ffbbca1fa12824640f5c3360bcc4427c", + "reviewedCatalogLock": { + "templateLockHash": "tpl_117d90f4", + "galleryTemplateLockHash": "tpl_53f34630", + "promptSettingsHash": "ps_4787eff9" + }, + "promptSha256": "370292f42dec86505ba60a4386671fcf130c10ce047b910063ffbbb0a511e0eb" + }, + "whisper_small_an_open_door": { + "workflowId": "HuggingFaceSpeechRecognitionModel:speech_translation", + "sourceTaskTemplateId": "task-template:whisper-tiny:speech-translation:v1", + "retainedGraphHash": "sha256:canonical-graph-v1:69e261c29aa777da002dada801f01091436e8f116780f1ac7271ce23a3da425c", + "originalReceiptSha256": "9d7ed920f22989d90bddc05fb1976b69025132a87799d43d361f14d671539d1c", + "reviewedTemplateSha256": "cfc95f86cf49288a5b851e7e042558b50bcd091f1a69cfabdf961cb204fde1ac", + "reviewedCatalogLock": { + "templateLockHash": "tpl_d016a22c", + "galleryTemplateLockHash": "tpl_169ef95b", + "promptSettingsHash": "ps_c6fb7372" + }, + "inputSha256": "cbf33b144644e786767fec1d5db416d50533d9846f8347e157ac8c3f54f26f11", + "inputLocatorSha256": "49fcd9605ca47c396030ec76144518411fdbfb9a953cf7ca27717017b010b13b" + }, + "smolvlm_red_triangle": { + "workflowId": "HuggingFaceImageTextToTextModel:image_to_text", + "sourceTaskTemplateId": "task-template:smolvlm-256m-instruct:image-to-text:v1", + "retainedGraphHash": "sha256:canonical-graph-v1:619f187da77a6fda72f90354dcb1768036d2f46b8418f51d674ceac1942c31a6", + "originalReceiptSha256": "daf5d3a9cb638e942a8f3f53df6cc86860e874943bc28fa01175ca2d30e56d5d", + "reviewedTemplateSha256": "7c5cc75ca115a437ec6a7ebab59030ef5c5ea14c74735bae5ca78dff427fb0e2", + "reviewedCatalogLock": { + "templateLockHash": "tpl_7d29caa4", + "galleryTemplateLockHash": "tpl_0912c789", + "promptSettingsHash": "ps_b91c5c35" + }, + "promptSha256": "31d08ea568d869e6cf7c0742d85a54617ba38744b60123dfe25f3c81f9e111aa", + "inputSha256": "42d903217dc0d8addf5bb6b4a91c2fd83f6fec7fbbf165d780308b5efcba8c6f", + "inputLocatorSha256": "ce6e7bdfc88e0f8e6c01d9db3078a2990182e21ac8169460c399a757c1f0c294" + }, + "kandinsky3_ginkgo_on_slate": { + "workflowId": "Kandinsky3Pipeline:text_to_image", + "sourceTaskTemplateId": "task-template:kandinsky3:text-to-image:v1", + "retainedGraphHash": "sha256:canonical-graph-v1:2d805bf9c48d49b9e4c2778136f8c528d8ff82a7f7753ba7a99021cc439b5b3c", + "originalReceiptSha256": "41b3b13c0f66711ffa3ac065f7a990bee824fc52db69940b8f75e0f7f79bdd38", + "reviewedTemplateSha256": "5870090e6b4d12c32d72566b6038e9bcc8bf8d063492a28ecbeb65275d77c8e9", + "reviewedCatalogLock": { + "templateLockHash": "tpl_23ed569e", + "galleryTemplateLockHash": "tpl_44580a03", + "promptSettingsHash": "ps_bf341b46" + }, + "promptSha256": "349928bf9ad6755eb4abb5af47199b1152e32323eb855dca5a9dbcfeb3475730" + }, + "chroma_terracotta_and_blue": { + "workflowId": "ChromaPipeline:text_to_image", + "sourceTaskTemplateId": "task-template:chroma1-hd:text-to-image:v1", + "retainedGraphHash": "sha256:canonical-graph-v1:bf170489052eadc150ad0e4149344312741328c5e4e859fb1473be81c3fe63ea", + "originalReceiptSha256": "bad53850d48ffdaffa0896ec019e295c349577ee86d169e1ea1da8752324a215", + "reviewedTemplateSha256": "5221fc5d744cbdcf1aa29d1fa9b27cddc0fcbd75983c24061e6218d41621617d", + "reviewedCatalogLock": { + "templateLockHash": "tpl_db9b22c3", + "galleryTemplateLockHash": "tpl_9dbc94cc", + "promptSettingsHash": "ps_aaaac429" + }, + "promptSha256": "fc24a34ab87b06b7b32949cbe2c78454bad6f08e19f227023d17def472dfbc6a" + }, + "lumina2_larch_on_glacial_pond": { + "workflowId": "Lumina2Pipeline:text_to_image", + "sourceTaskTemplateId": "task-template:lumina2:text-to-image:v1", + "retainedGraphHash": "sha256:canonical-graph-v1:b58ba817732e34d2c40f61f7bb7dbdebf32c6f2a2bbb21dcdbb237004edc4cc3", + "originalReceiptSha256": "68ec9070dfda6f4bcf5990d404e3032b9c9d0add8965753e0a162bfdd67c09f7", + "reviewedTemplateSha256": "c1fecc495b278628b9539fb84079b73b70db420165a7e151def065731920853e", + "reviewedCatalogLock": { + "templateLockHash": "tpl_a75e5588", + "galleryTemplateLockHash": "tpl_0c2048ce", + "promptSettingsHash": "ps_e264186c" + }, + "promptSha256": "5210322404f5ed727bc5dfa782f3da51ed652c32b33f46000ece286969b103bd" + }, + "hunyuan_dit_coastal_lighthouse": { + "workflowId": "HunyuanDiTPipeline:text_to_image", + "sourceTaskTemplateId": "task-template:hunyuan-dit-v1-2-distilled:text-to-image:v1", + "retainedGraphHash": "sha256:canonical-graph-v1:4d26fca7d33aec5e119da74520c47fd96fa41f9de0b92a3afca76505fb5722aa", + "originalReceiptSha256": "9e8d30a1d20d721f8aeab6b9172f7f50403b1e8e855d83af17e6430fe97d9650", + "reviewedTemplateSha256": "59e80838a60338b27351f10a7cc8478dbe1ae81e04d5d7718ee37aa556585788", + "reviewedCatalogLock": { + "templateLockHash": "tpl_9f125174", + "galleryTemplateLockHash": "tpl_ad3b4f77", + "promptSettingsHash": "ps_f38e8fdc" + }, + "promptSha256": "c54d404876a0c92e240aaa5cdd2e2fd448b934d2050e459047d23b82c2a65e7b" + }, + "omnigen_tulips_after_rain": { + "workflowId": "OmniGenPipeline:text_to_image", + "sourceTaskTemplateId": "task-template:omnigen-v1:text-to-image:v1", + "retainedGraphHash": "sha256:canonical-graph-v1:38376f1ad21e5c153fb96860a4e566847ff916716637ffd2061dfae350577c93", + "originalReceiptSha256": "c78e90591a491385de1f96d89b6aed18dee1367eae36bfcb0b27ee3cecaf8deb", + "reviewedTemplateSha256": "e3ceb2dc096775601a6e65b7ab61f5ccc64658d2a69586f3c6a13f2efe1a973c", + "reviewedCatalogLock": { + "templateLockHash": "tpl_39e7a513", + "galleryTemplateLockHash": "tpl_0c5c4bcd", + "promptSettingsHash": "ps_4e4eb7da" + }, + "promptSha256": "a95f8ab9a463c7c571c8667695bb3162234828a00547f8b20db0826612e5a71d" + }, + "hunyuan_pag_burgundy_knight": { + "workflowId": "HunyuanDiTPAGPipeline:text_to_image", + "sourceTaskTemplateId": "task-template:hunyuan-dit-v1-2-distilled-pag:text-to-image:v1", + "retainedGraphHash": "sha256:canonical-graph-v1:9ff7bd0050b5c50405728a76530205fcdc54531b7b017cc66e3b821b52413dcd", + "originalReceiptSha256": "aa6b64f4a942adbb11c83cbaba89940fd03ed7dbf83175e8e1d17d32291454d3", + "reviewedTemplateSha256": "ff4d1b75e172f8fdb8a45199626ed40a07fe634669e03d1591091a10c176edfe", + "reviewedCatalogLock": { + "templateLockHash": "tpl_e2834f89", + "galleryTemplateLockHash": "tpl_00d848b4", + "promptSettingsHash": "ps_60e8ca60" + }, + "promptSha256": "1a5dd12ea5c33b33c8e1a2621a4c6543a2d2a8f2ac82fe458eaecc7d9b4d71c0" + }, + "chroma_restored_cobalt_backdrop": { + "workflowId": "ChromaInpaintPipeline:inpaint", + "sourceTaskTemplateId": "task-template:chroma1-hd-inpaint:inpaint:v1", + "retainedGraphHash": "sha256:canonical-graph-v1:d3bfd6322b7b1bd0f34b9faa9f444ebefae32fc43c368d37169f6ebfbc6c53cf", + "originalReceiptSha256": "a85451bc142a3f5ef44cc5e8cdb1fcc0f000872241efe5bda751638d36215919", + "reviewedTemplateSha256": "d3c99f24317aaf93b0f25f2681bdc56f456d69554e47a522c0c04487602149f2", + "reviewedCatalogLock": { + "templateLockHash": "tpl_0ca22a3e", + "galleryTemplateLockHash": "tpl_8c282bf7", + "promptSettingsHash": "ps_747e9429" + }, + "promptSha256": "cdcd113dd8102aba0f1838ecc02a170532e8b79ab574afc47d30bbdf7aa95d4d", + "inputSha256": "e75c20f0e8a74e283b996bf526e6ea74535ed24125ad97c2d92508d3435d7a87", + "inputLocatorSha256": "69ba088466bbd714eba0a70d1dc24984230ca1ac74b00ac0ff1bbcb29675799d", + "maskSha256": "1f48775f2826f84e0c5b55f16f3475bdc80ecad8b931d6b0279598610e9a828d" + }, + "sdxl_pix2pix_pale_amber_glass": { + "workflowId": "StableDiffusionXLInstructPix2PixPipeline:edit_image", + "sourceTaskTemplateId": "task-template:sdxl-instruct-pix2pix:edit-image:v1", + "retainedGraphHash": "sha256:canonical-graph-v1:be363defe20343a8ad3dda9b464344a590c931b6908d5f2eb8ee4d1ba4974f95", + "originalReceiptSha256": "4655ea8f1f9b86921f07658644599ebe08034ffbe93e081eb19fd08faa214b61", + "reviewedTemplateSha256": "897fb59d568ceba3ef8d85cf1141f79002522b111dbc6ffa67ad51a9acf88495", + "reviewedCatalogLock": { + "templateLockHash": "tpl_e055e288", + "galleryTemplateLockHash": "tpl_5a852750", + "promptSettingsHash": "ps_de1bb4fa" + }, + "promptSha256": "609bfd6392cbca4e4c80a5835e0f013349d84c017387ff69445c9168939b4b1b", + "inputSha256": "ebaca95f96d1573e4292ffc65c78eb0dcf8ff9cc8b5a7e11ec81face61b160fb", + "inputLocatorSha256": "349b8845e5d606d1439af02fa63b2edc09c504d15bf71f58954791ed6d983232" + }, + "sd15_pag_mountain_lake_watercolor": { + "workflowId": "StableDiffusionPAGPipeline:edit_image", + "sourceTaskTemplateId": "task-template:sd15-pag:edit-image:v1", + "retainedGraphHash": "sha256:canonical-graph-v1:48cd547df20763361808da8567bee1e81d2f5656cf700b06ca1d7032e05c9a12", + "originalReceiptSha256": "b4929658c32ef7bad47e50f647abec0e6159c54374a1baea1e05d3f93b66effb", + "reviewedTemplateSha256": "6de709bbcfb3ed6e061541584be28f5b7ed05e1170dcdaa69e2deb4fee822154", + "reviewedCatalogLock": { + "templateLockHash": "tpl_de24cda0", + "galleryTemplateLockHash": "tpl_055d66e3", + "promptSettingsHash": "ps_70c72f9b" + }, + "promptSha256": "d05178536094430b2076eb9bbbc38b76f6590185f85ee128b9aad0c910e214d3", + "inputSha256": "88290a96bc8d52f11f2d1e3c0c0e04c2027661816e54b57d7d4739d731ca1e75", + "inputLocatorSha256": "b7e9b68e47a60f438c82f778b960f66d58d319de50749d453a9aa0c30c4df45a" + }, + "sd15_pag_cobalt_studio_repair": { + "workflowId": "StableDiffusionPAGPipeline:inpaint", + "sourceTaskTemplateId": "task-template:sd15-pag:inpaint:v1", + "retainedGraphHash": "sha256:canonical-graph-v1:0236cd78852886d49d629776dae568ae589c27dfc4f499868ba2f40d4fd4867c", + "originalReceiptSha256": "101e965b702766dd0949054f6189d20ca2895fdd05559626eb270f8e12e65069", + "reviewedTemplateSha256": "8373d87ab42e130142a163e3c60733f3f2511b7a77ffad1d9129607bcfba2562", + "reviewedCatalogLock": { + "templateLockHash": "tpl_ab9c14d4", + "galleryTemplateLockHash": "tpl_7552fcab", + "promptSettingsHash": "ps_fbb3534b" + }, + "promptSha256": "92548914e5a66fd80ffeeeae3ee1c86bfd46bd9a53d17bd73f35c0f651615ad3", + "inputSha256": "d143c4922ad498b9bd436d06df424bbff50baf023b93735b53ee401e19e4cbf1", + "inputLocatorSha256": "efcb2b3b9ced784bb620763301bb33ea3b2f6ac2561624a4a60c7a735049cfb1", + "maskSha256": "71817f4823a73712c8e76e7d832ec382c29ec0a0bf5a472e09639448c082da01" + }, + "zimage_golden_amber_glass": { + "workflowId": "ZImageModularPipeline:edit_image", + "sourceTaskTemplateId": "task-template:z-image:edit-image:v1", + "retainedGraphHash": "sha256:canonical-graph-v1:09397eba135ea69f8c88d29c6eb65297ece35dc10e039c9c5573165503f8488f", + "originalReceiptSha256": "449bc094096e644f4070a681e382650d133c0854ec6770cfbb736f0299e04179", + "reviewedTemplateSha256": "303a0b1b64a2e1234aeca85941a07eea2157707c8436442a5cf00aedd68c6d97", + "reviewedCatalogLock": { + "templateLockHash": "tpl_50ad3c10", + "galleryTemplateLockHash": "tpl_279a009e", + "promptSettingsHash": "ps_41cfc342" + }, + "promptSha256": "cc55ff0b6d87c11924010d873152025e9ddb936b56140d2f23d291696a65f7ea", + "inputSha256": "ebaca95f96d1573e4292ffc65c78eb0dcf8ff9cc8b5a7e11ec81face61b160fb", + "inputLocatorSha256": "349b8845e5d606d1439af02fa63b2edc09c504d15bf71f58954791ed6d983232" + }, + "sdxl_control_inpaint_warm_plaster": { + "workflowId": "StableDiffusionXLControlNetPipeline:control_inpaint", + "sourceTaskTemplateId": "task-template:sdxl-controlnet-canny:control-inpaint:v1", + "retainedGraphHash": "sha256:canonical-graph-v1:188e60e1e4b295563d9e227a6a5f4b6e856781519579dbe9bc830d6ded6b0807", + "originalReceiptSha256": "ccf8f19d4018fd24d47fa5001209e36f9cec3a36a56e539f87759a99a7ac5fab", + "reviewedTemplateSha256": "7d840698c480d52e5a864d50fcdbe6528680a9d0453e5dc501d76ac89c0991ef", + "reviewedCatalogLock": { + "templateLockHash": "tpl_0ee86d25", + "galleryTemplateLockHash": "tpl_ad048189", + "promptSettingsHash": "ps_a9571e3b" + }, + "promptSha256": "b12a7fc59f32e9bbc795791ac45875649f91220fa32b3f3b74953e5ccc92d30d", + "inputSha256": "e75c20f0e8a74e283b996bf526e6ea74535ed24125ad97c2d92508d3435d7a87", + "inputLocatorSha256": "69ba088466bbd714eba0a70d1dc24984230ca1ac74b00ac0ff1bbcb29675799d", + "maskSha256": "1f48775f2826f84e0c5b55f16f3475bdc80ecad8b931d6b0279598610e9a828d", + "guideSha256": "0a41a9c56b98945e60c96ef796660c35b2cab7bf0b36d5e84ab0d97ef97f0a5a" + }, + "sd15_canny_guided_green_glass": { + "workflowId": "StableDiffusionPipeline:control_image", + "sourceTaskTemplateId": "task-template:sd15-controlnet-canny:control-image:v1", + "retainedGraphHash": "sha256:canonical-graph-v1:b0e98f0bb1e20a8d46f1ac67a426e6b0a55fcd817c51b6f60a79d97ab92d6514", + "originalReceiptSha256": "4947a5a7b0a87481e1795185f91486717d6950c0f0f3ae79fc979c46c55ad443", + "reviewedTemplateSha256": "783d03619e47df52cf8b17262e42d07bdaacf9165314c26bce9dc3fc9478e55d", + "reviewedCatalogLock": { + "templateLockHash": "tpl_f24bec27", + "galleryTemplateLockHash": "tpl_1ec33e6c", + "promptSettingsHash": "ps_2fb986e2" + }, + "promptSha256": "26d98191ed235643dc50604bcc3065c35b47e26601b929c86bd3383cab884e69", + "inputSha256": "6d47a2f07006b98f9e5cfc8ee925914c4dbfa39fd38b0b61770be56d12ed04e8", + "inputLocatorSha256": "36f9c290c26da075d212f483d4abbc2aba1520b60c5d135f823768f4966c286c" + }, + "hunyuan_dit_green_glass_study": { + "workflowId": "HunyuanDiTControlNetPipeline:control_image", + "sourceTaskTemplateId": "task-template:hunyuan-dit-v1-2-controlnet-canny:control-image:v1", + "retainedGraphHash": "sha256:canonical-graph-v1:20f676957f2cca0389d876c1b462e6b947e7d366154f125dd19c262027b9cbbb", + "originalReceiptSha256": "88ca5ccb6b4500e438bd84d42321a2cb61d0f7322e5c3bdaa8343735b8f08648", + "reviewedTemplateSha256": "a132dd6cd433bd0595f962173926edd930ea38cbf44d175d5499234f600d21f2", + "reviewedCatalogLock": { + "templateLockHash": "tpl_ce472b92", + "galleryTemplateLockHash": "tpl_ad56a37f", + "promptSettingsHash": "ps_6990e9b6" + }, + "promptSha256": "15c242632d932ffb74e7c107f2610ce42d94aa7480ee711aa26ef66ff4610dc0", + "inputSha256": "6bd07628a37c087178e9de58a98c6c5879468163f1a2376a581511a42503e2e2", + "inputLocatorSha256": "59660f6454720ae76fa64a1baf2fad2e551e349070cea802c6614fc9864c86dc" + }, + "qwen_control_winter_cabin_blue_hour": { + "workflowId": "QwenImageControlNetPipeline:control_image", + "sourceTaskTemplateId": "task-template:qwen-image-controlnet-direct:control-image:v1", + "retainedGraphHash": "sha256:canonical-graph-v1:9f21216fd545a1b8d30b5bec044f217749bedecfc1f7377237b944abf9a7bb7d", + "originalReceiptSha256": "e9d03118cfe3e55fb78b42dec749d367bf72d6676aae59e70fd1b3be19ade4c0", + "reviewedTemplateSha256": "eb65cb98a365c056f3a2a7bd5d44515bb16f518f7ec00797a496fe90a25ce07d", + "reviewedCatalogLock": { + "templateLockHash": "tpl_301009d7", + "galleryTemplateLockHash": "tpl_c38a2571", + "promptSettingsHash": "ps_508a465e" + }, + "promptSha256": "5728c894889366a9648c6b78109b8ebaa608fdd22f0bb7a470849b7353a9bcc6", + "inputSha256": "ca250462efc77625134ebe305b2ee67281a1dcf8919e45299c648f0fdacf919a", + "inputLocatorSha256": "5c41a25a1747974eb20ae701984d2e13c2979cd0069944f7ef21429677d4c046" + }, + "sd15_pag_canny_guided_glass": { + "workflowId": "StableDiffusionPAGPipeline:control_image", + "sourceTaskTemplateId": "task-template:sd15-pag-controlnet-canny:control-image:v1", + "retainedGraphHash": "sha256:canonical-graph-v1:cc03628ea649924bfeca24fd9e93c8aa47c28b4805a0b308fb4adeb9fbb5c0b2", + "originalReceiptSha256": "9bb9602d6c79fd442b5f197809ed32dd1651524f4f5d730c28e1971c7325fc1d", + "reviewedTemplateSha256": "23fc8dfe4150096c38d946116a9839a314a7581d52c9397e9d8e1ad42716624c", + "reviewedCatalogLock": { + "templateLockHash": "tpl_0a0b30c1", + "galleryTemplateLockHash": "tpl_dff4bb5e", + "promptSettingsHash": "ps_d149242b" + }, + "promptSha256": "3195f7028bc2fc48271a962d96f24cfd11cd9d8dc44032a2163ea62a511f8140", + "inputSha256": "6d47a2f07006b98f9e5cfc8ee925914c4dbfa39fd38b0b61770be56d12ed04e8", + "inputLocatorSha256": "36f9c290c26da075d212f483d4abbc2aba1520b60c5d135f823768f4966c286c" + }, + "sdxl_controlnet_glass_study_on_slate": { + "workflowId": "StableDiffusionXLControlNetPipeline:control_image", + "sourceTaskTemplateId": "task-template:sdxl-controlnet-canny:control-image:v1", + "retainedGraphHash": "sha256:canonical-graph-v1:cd4d26987f6eb195f91493d431e659db42ef4a531b29e26d7eedb08799769c16", + "originalReceiptSha256": "f57b41443261612d95d3e80df2d638617f62526970313989ca69e0652bb4c390", + "reviewedTemplateSha256": "3075b68d97eea65616a9a8fe2519154041e24ced2cd916b395c4849d26c31b71", + "reviewedCatalogLock": { + "templateLockHash": "tpl_380083cc", + "galleryTemplateLockHash": "tpl_45e1f06a", + "promptSettingsHash": "ps_e42996a8" + }, + "promptSha256": "d20a107a17c31f20a4e9d409be51c0e55ca8e58747bb5dfbd6169500a4da21d6", + "inputSha256": "6bd07628a37c087178e9de58a98c6c5879468163f1a2376a581511a42503e2e2", + "inputLocatorSha256": "59660f6454720ae76fa64a1baf2fad2e551e349070cea802c6614fc9864c86dc" + }, + "sdxl_canny_adapter_glass_study": { + "workflowId": "StableDiffusionXLAdapterPipeline:control_image", + "sourceTaskTemplateId": "task-template:sdxl-t2i-adapter-canny:control-image:v1", + "retainedGraphHash": "sha256:canonical-graph-v1:9012c51eebe966a595a2fc5b93f9645e23a2fd6cc194e28ae0218f87b2495565", + "originalReceiptSha256": "5a911626f9d33032fb2dcdc80cede5ffad9506abc0fb0077dc4ba39947b33a36", + "reviewedTemplateSha256": "eef6570d0a2241aa0a9ff68b200c59591fc6497f43885fba151138ae56517968", + "reviewedCatalogLock": { + "templateLockHash": "tpl_76024be8", + "galleryTemplateLockHash": "tpl_768c7bb4", + "promptSettingsHash": "ps_63d6342f" + }, + "promptSha256": "ec5b7d8ce937a4f50bde17dfddda9d217733d09cf02ca1b7bc944f1bcf231577", + "inputSha256": "6bd07628a37c087178e9de58a98c6c5879468163f1a2376a581511a42503e2e2", + "inputLocatorSha256": "59660f6454720ae76fa64a1baf2fad2e551e349070cea802c6614fc9864c86dc" + }, + "longcat_last_tram_at_dusk": { + "workflowId": "LongCatAudioDiTPipeline:text_to_audio", + "sourceTaskTemplateId": "task-template:longcat-audio-dit-1b:text-to-audio:v1", + "retainedGraphHash": "sha256:canonical-graph-v1:2d149a078f6469b473a083b6116ef47452ae4ccc8a1ca0fc7b0ea416f5257515", + "originalReceiptSha256": "8019b9dbf5af0e8ba5c8eeed7132ec5578968ee0607309dd65327d69599a5c5d", + "reviewedTemplateSha256": "9d0f7b50afd87f366ecf6c0d66352d87dd2bdf0b4ae9a50f818619d6254d6b92", + "reviewedCatalogLock": { + "templateLockHash": "tpl_0738853e", + "galleryTemplateLockHash": "tpl_e6bfed44", + "promptSettingsHash": "ps_11aa3e00" + }, + "promptSha256": "47545a310a3cffc0c8a458241c77dca330e10fe92fbc796239efb689bfb40949" + }, + "qwen_layered_sunset_and_peaks": { + "workflowId": "QwenImageLayeredPipeline:layer_decomposition", + "sourceTaskTemplateId": "task-template:qwen-image-layered-direct:layer-decomposition:v1", + "retainedGraphHash": "sha256:canonical-graph-v1:25bb2ac3d10b3d0f539204d2c4d3181764f192882a9c8442efb5ce54b7d8de43", + "originalReceiptSha256": "826d487fed6b6f0ae2679d2eb842ad65208a9b5929b66722ad1d8e1c0242079e", + "reviewedTemplateSha256": "4ee3847d935f7b245f5c9d9e156da8fe5d97dcb382ad890c59163e573a6c73c9", + "reviewedCatalogLock": { + "templateLockHash": "tpl_54972ded", + "galleryTemplateLockHash": "tpl_831d4207", + "promptSettingsHash": "ps_9236bec4" + }, + "promptSha256": "10e30e8fbc0bcc8c1748851145c9b32a4d27da19cecd06da4d044f565cd2d745", + "inputSha256": "67835db7f30072a35b1650c0a84e7f241c0b01fcf2c324964ddcd5f8424008b3", + "inputLocatorSha256": "1584ce002870000a86ce56d7b6132b4e4920237e6b1c35f2269af9bbcc716aaf" + }, + "wan_a14b_cloudbreak_over_the_ridges": { + "workflowId": "Wan22Pipeline:text_to_video", + "sourceTaskTemplateId": "task-template:wan-22-a14b:text-to-video:v1", + "retainedGraphHash": "sha256:canonical-graph-v1:6921f430025f6a760f54a790517b949fc5d03c880f3c9e61eac12ae547b23cf2", + "originalReceiptSha256": "05008ca915711e27396ac9216f34931f91c5444efa2751e9fb4a26c2761a89c2", + "reviewedTemplateSha256": "2fe28c05a3adcb92031d2e5a369cf6be41990463644f08e5440bb998b32bc1fd", + "reviewedCatalogLock": { + "templateLockHash": "tpl_6e4c3186", + "galleryTemplateLockHash": "tpl_80961b58", + "promptSettingsHash": "ps_ca81bdb8" + }, + "promptSha256": "63b8db49c89bbe4efec541259382b051bce2632aa78fb16a8ef47a70bb130eb3" + }, + "cogvideox_mossy_mountain_stream": { + "workflowId": "CogVideoXPipeline:text_to_video", + "sourceTaskTemplateId": "task-template:cogvideox-2b:text-to-video:v1", + "retainedGraphHash": "sha256:canonical-graph-v1:798aaa4c7c2501de15aca025081efa81d009df7977fd0fe6fb71c17f5895c105", + "originalReceiptSha256": "3aab2d19bca49f839f8316f19ea75afbe4b0e401ff5a330c16f35484f43f611a", + "reviewedTemplateSha256": "c77c843d9555524c9f9ce04c53af16c2ee6570d7ff9b72d90fba98fd1fc3d9cc", + "reviewedCatalogLock": { + "templateLockHash": "tpl_12ff3dab", + "galleryTemplateLockHash": "tpl_089d3aae", + "promptSettingsHash": "ps_f986f95b" + }, + "promptSha256": "08823b5d6cd6d0166e33c94e61aaccab515dece0668fcc9779c6cfb633462821" + }, + "wan_flf_blue_hour_at_the_tram_shelter": { + "workflowId": "WanImage2VideoModularPipeline:image_to_video", + "sourceTaskTemplateId": "task-template:wan-flf:image-to-video:v1", + "retainedGraphHash": "sha256:canonical-graph-v1:f3e6600531ca93b1b326cbfa5e3b0b853b4015ccb5c163302c003b81bc4897a6", + "originalReceiptSha256": "63d626c3c97cd12016b58a9fba71739eeea0459ad300383d5b4f43aa0775740a", + "reviewedTemplateSha256": "719322718cef9254b24004759f2eac08a4302ea27c86cbe538782207d29389f6", + "reviewedCatalogLock": { + "templateLockHash": "tpl_b13aec66", + "galleryTemplateLockHash": "tpl_de5816ae", + "promptSettingsHash": "ps_b86813d0" + }, + "promptSha256": "d9311581aed6eb088806830eb7dcf320b7d8650e06232f9794d9944acbb0fa1d", + "inputSha256": "6d2c561cf33919ae42e773d95a0232799da3f2b92a23a94dad80902cfb73527a", + "inputLocatorSha256": "160363900dea249d2053d49da2b8bb3c801a34ab264d49f7b16098c5a75938a5", + "lastFrameSha256": "191b023efb43a42288799877db722b9a2608d2970740246322ef38cc7c68c590" + }, + "cogvideox_red_tram_model_railway": { + "workflowId": "CogVideoXVideoToVideoPipeline:video_to_video", + "sourceTaskTemplateId": "task-template:cogvideox-2b-video-to-video:video-to-video:v1", + "retainedGraphHash": "sha256:canonical-graph-v1:9536733d2657f50f2530e066706a283d282c5dbd7989f70e563942b748489f2d", + "originalReceiptSha256": "c4396b6f2b6b01fcdbcb5d7f370b6284be78d1979e4665a243c1e08193776e08", + "reviewedTemplateSha256": "d74131d9a94ae6422f0824a9948e9ee157fb765058f8d45e515fda25a93c25c6", + "reviewedCatalogLock": { + "templateLockHash": "tpl_305c9ad7", + "galleryTemplateLockHash": "tpl_aca915d8", + "promptSettingsHash": "ps_44a08b73" + }, + "promptSha256": "d6dffbc00ab43ae375ebadab9cb8e7c7da98805ae41099301b26774022d22597", + "inputSha256": "0737fe1e6b127fd4f5f66043b8911e5c7e380e60d50eab7e6bc9ba62e830b9dd", + "inputLocatorSha256": "24cb984db9137c26395f2255fba7bf647016637744b7e301d4e8fe7d8d63bff3" + }, + "sana_tidal_pool_on_black_basalt": { + "workflowId": "SanaPipeline:text_to_image", + "sourceTaskTemplateId": "task-template:sana-600m:text-to-image:v1", + "retainedGraphHash": "sha256:canonical-graph-v1:4c0dd2f1d20300d93bac5d00a84eb057a7ffc5c64cafe9d4727a38d6852b7aab", + "originalReceiptSha256": "8b9112a10ce799d31f77d03e5f3d757d2510a7019f6bdc9e88d3de208f2bfa72", + "reviewedTemplateSha256": "31c6fda19fe62a7282c50fe665069354989947ef1454ac63a1384637792d09c6", + "reviewedCatalogLock": { + "templateLockHash": "tpl_a4797982", + "galleryTemplateLockHash": "tpl_2e1869d7", + "promptSettingsHash": "ps_91375aee" + }, + "promptSha256": "c737a35b3c72ee9af940329b310301855bb8ae6e6f2c3e36cd86a250a0d2d4ac" + }, + "joyimage_herbarium_rainy_porthole": { + "workflowId": "JoyImageEditPipeline:text_to_image", + "sourceTaskTemplateId": "task-template:joyimage-edit:text-to-image:v1", + "retainedGraphHash": "sha256:canonical-graph-v1:764bcfbc5d06837477b63647a4723da8dfce96675828d2f038909bed22b155fd", + "originalReceiptSha256": "655abc48262ac72c9e7cee61c90f7f72430660b5b5102716b97d4ee9730e31fa", + "reviewedTemplateSha256": "5e0a8441e6f6998745a1b9c9a8244aa5d8e4e8591be5277396f519f41adf7ad4", + "reviewedCatalogLock": { + "templateLockHash": "tpl_19b0c1a0", + "galleryTemplateLockHash": "tpl_9e12c4ef", + "promptSettingsHash": "ps_83f27e49" + }, + "promptSha256": "f61ca504d1f282a071ece1bc43cd64b579826005903479fa48b191e4b84112de" + }, + "longcat_florist_end_of_lane": { + "workflowId": "LongCatImagePipeline:text_to_image", + "sourceTaskTemplateId": "task-template:longcat-image:text-to-image:v1", + "retainedGraphHash": "sha256:canonical-graph-v1:b412040d8f6595ffa0093fa82dce6f4993cf6d8db99730610e859ae8badab868", + "originalReceiptSha256": "8020bb532f9bc0fc6222c2083e81579b3c8dac7c9dd934e8d2534db7b3ae5fe1", + "reviewedTemplateSha256": "b90a1a05613457abec04653497adf621e361d94bfc399db6cbd94f093a69421f", + "reviewedCatalogLock": { + "templateLockHash": "tpl_129e0498", + "galleryTemplateLockHash": "tpl_22334457", + "promptSettingsHash": "ps_cbbee99d" + }, + "promptSha256": "301b56ba87f685d46fe7ae0526aab3321afb3b49cef6c8996829e181b574983e" + } +} diff --git a/config/retained-gallery-legacy-recipe-locks.v1.json b/config/retained-gallery-legacy-recipe-locks.v1.json new file mode 100644 index 00000000..d409a10d --- /dev/null +++ b/config/retained-gallery-legacy-recipe-locks.v1.json @@ -0,0 +1,101 @@ +{ + "marigold_depth_synthetic_ramp": { + "workflowId": "MarigoldDepthPipeline:depth_estimation", + "sourceTaskTemplateId": "task-template:marigold-depth-lcm-v1-0:depth-estimation:v1", + "retainedGraphHash": "sha256:canonical-graph-v1:ee35e710ecaf34a8a57d93fbefeea28b6a3795027ea8a3a872178501e852e06a", + "originalReceiptSha256": "1c358ef18df00556b704f826c706674d5ddbd89d8ad091478da862b8ad87c6ea", + "reviewedTemplateSha256": "4e43813ae0e4b664e4982545884644ec097eb0cc25e8f13ff549ac24c2f49ce1", + "reviewedCatalogLock": { + "templateLockHash": "tpl_bf1d929b", + "galleryTemplateLockHash": "tpl_611e9ad6", + "promptSettingsHash": "ps_d0a17851" + }, + "inputSha256": "626815c78eaad46cad849732d1598b45b91700ce046c1ee3f4e2444db80aa32a", + "inputFileName": "marigold-depth-source.png" + }, + "spandrel_x2_synthetic_gradient": { + "workflowId": "SpandrelImageUpscale:image_upscale", + "sourceTaskTemplateId": "task-template:real-esrgan-x2-image-upscale:v1", + "retainedGraphHash": "sha256:canonical-graph-v1:700b85c678b691dee3c8ad1e2ea6d4cc0017d1b12d47704e45e913e17f929451", + "originalReceiptSha256": "49336b0f76e158b3be514275763e8b2c50f00c048852a34cff43167687503f15", + "reviewedTemplateSha256": "8de95b8b13a0636a37a7db672fbced2199e00e6719517c282f68f685bc5fd482", + "reviewedCatalogLock": { + "templateLockHash": "tpl_5d99038b", + "galleryTemplateLockHash": "tpl_43c3b587", + "promptSettingsHash": "ps_e7556958" + }, + "inputSha256": "626815c78eaad46cad849732d1598b45b91700ce046c1ee3f4e2444db80aa32a", + "inputFileName": "real-esrgan-x2-smoke-source.png" + }, + "smollm2_rain_gauge": { + "workflowId": "HuggingFaceTextGenerationModel:text_generation", + "sourceTaskTemplateId": "task-template:smollm2-135m-instruct:text-generation:v1", + "retainedGraphHash": "sha256:canonical-graph-v1:285625f017e8de78e065d8fc32c9ce71ed9561b008cd5fa0e23ce9cda3dabefe", + "originalReceiptSha256": "4d0e3ad2819d02cc04c3f264145ddd384b17b9dfa39e83f4af6e923bce34f3d8", + "reviewedTemplateSha256": "aab7cfcf15db94d4e3d1415e963cabc0cf7e6a4baafd243d4095539b1004545b", + "reviewedCatalogLock": { + "templateLockHash": "tpl_84d96f79", + "galleryTemplateLockHash": "tpl_a845a534", + "promptSettingsHash": "ps_fe288802" + }, + "promptSha256": "47eb5ebb2dbce8f755621e569deba76f6f61f251763aeac5fafd5d09be3869b4" + }, + "whisper_tiny_blue_cup_transcription": { + "workflowId": "HuggingFaceSpeechRecognitionModel:speech_to_text", + "sourceTaskTemplateId": "task-template:whisper-tiny:speech-to-text:v1", + "retainedGraphHash": "sha256:canonical-graph-v1:b377ff0dee17374428c2deb83531bdee0b21eac105ea6e81fe705a41c4f98adb", + "originalReceiptSha256": "7ef2a7611856f6a0c111d5e4ffa248201f88718756aed16f5a6a30487e571faa", + "reviewedTemplateSha256": "f9e6bd0b708cc08d7068555be9f4094f68cc9aa6115639792339f50b38c2e35c", + "reviewedCatalogLock": { + "templateLockHash": "tpl_feef81de", + "galleryTemplateLockHash": "tpl_e533ed76", + "promptSettingsHash": "ps_254ff664" + }, + "inputSha256": "d5a4aebb4bd603192b70b0744e6ac158ed10c4c845d423b7fb7b1ef7de0ed41f", + "inputLocatorSha256": "50e837ad6f7de4f94901d12dd299c89410ff225f23a4bd5eb4ccf5621e0aea26" + }, + "lcm_dawn_alpine_lake": { + "workflowId": "LatentConsistencyModelPipeline:edit_image", + "sourceTaskTemplateId": "task-template:lcm-dreamshaper-v7:edit-image:v1", + "retainedGraphHash": "sha256:canonical-graph-v1:80fc803df0e8e4fe9a90c302a88cadda57fb613ac3e67857f88fcb24ee7f0a8b", + "originalReceiptSha256": "d29515dfafdcde29ecff2332276275247a6feeae5afd36639da87efc552af4f6", + "reviewedTemplateSha256": "79ee258770b00a581d8e006b743cacd78ad992739353bcfcd724a920eb41fc8e", + "reviewedCatalogLock": { + "templateLockHash": "tpl_606d8d50", + "galleryTemplateLockHash": "tpl_03de02cb", + "promptSettingsHash": "ps_614c9651" + }, + "inputFileName": "prx-linux-bf16-native-efficient-alpine-lake.webp", + "inputSha256": "25fe06d8e93645bc6ff29928556a0cd654aa6d70178d435268b3d17e9188feaa", + "promptSha256": "ec2943b08ef8225e661ab5c3f712a6e555eabd481e4bf2e8ba68b34963367e33" + }, + "sana_sprint_monochrome_tiger": { + "workflowId": "SanaSprintPipeline:edit_image", + "sourceTaskTemplateId": "task-template:sana-sprint-600m:edit-image:v1", + "retainedGraphHash": "sha256:canonical-graph-v1:e69d5c8fa5e75c1387b8dae436e44c580d3b1eb31267946c26b98049e2f7132c", + "originalReceiptSha256": "ec340d225ca8eae07996fc5f93e3561cd25c82e80d1229a3adca1f648ea8d20e", + "reviewedTemplateSha256": "7f1ac6b38c8f3fcc701921fe7f500b4717c4f1bfdf5cc2f059e934972923296b", + "reviewedCatalogLock": { + "templateLockHash": "tpl_b6bc5c52", + "galleryTemplateLockHash": "tpl_8be9c59d", + "promptSettingsHash": "ps_6cb5dccc" + }, + "inputFileName": "retained-tiger-source.webp", + "inputSha256": "a99616590d7d8586a51a25bbe9e36b309f705bc80f2abaab04ac84f1e0d948e4", + "promptSha256": "db2c046f8d489387110e3de23a28dfd52f981d796958433e819988b94c8ed853" + }, + "wav2vec2_station_announcement": { + "workflowId": "HuggingFaceCTCSpeechRecognitionModel:speech_to_text", + "sourceTaskTemplateId": "task-template:wav2vec2-base-960h:speech-to-text:v1", + "retainedGraphHash": "sha256:canonical-graph-v1:36c5afc09d6f5f3be0cf44ba472bc514313464e2c61616a1c934a254f137c1c1", + "originalReceiptSha256": "226c35aaf3a811a8077e0caae4b4652daaf332d3c7718a095f238afde982f7ee", + "reviewedTemplateSha256": "fc0cb2cf3751967eb0ab2910d5b17fd0796bdf047cfc48871e5266346d925e37", + "reviewedCatalogLock": { + "templateLockHash": "tpl_a1f95a4a", + "galleryTemplateLockHash": "tpl_51e4cb19", + "promptSettingsHash": "ps_583a0762" + }, + "inputSha256": "534bf47b7a715e5637443eaf7175e0b2e5288504beb8d8a09d25ee6c66c8d4f8", + "inputLocatorSha256": "b5a6579a0125be7bd9aec165e3f22c0c054f598e4aaaf00b9bf53decbd4f6e18" + } +} diff --git a/config/template-asset-rights.v1.json b/config/template-asset-rights.v1.json index 20a0e528..79c87a30 100644 --- a/config/template-asset-rights.v1.json +++ b/config/template-asset-rights.v1.json @@ -1,6 +1,6 @@ { "schemaVersion": 1, - "assetSetId": "sha256:canonical-json:415c599a910952e3eb8b060e3b04f91e6a85028a6e8dc1d180d5ad5fd11e73f4", + "assetSetId": "sha256:canonical-json:1dd39d0a777c1194ca6722527d6b1f8dd1f9f02e89b64fdc2ef056a64748d189", "records": [ { "path": "template-gallery/ace_step_audio_continuation.wav", @@ -17,9 +17,7 @@ ], "aiGenerated": true, "humanLikenessConsent": "synthetic", - "marks": [ - "MoDiff project name in the project-authored lyrics" - ], + "marks": ["MoDiff project name in the project-authored lyrics"], "requiredAttribution": [], "assetLicense": "Apache-2.0", "reviewedBy": "SOURAV DAS", @@ -139,9 +137,7 @@ ], "aiGenerated": true, "humanLikenessConsent": "synthetic", - "marks": [ - "Singer-style and training-song rights require upstream confirmation" - ], + "marks": ["Singer-style and training-song rights require upstream confirmation"], "requiredAttribution": [], "assetLicense": "upstream-terms-only", "reviewedBy": null, @@ -164,9 +160,7 @@ ], "aiGenerated": true, "humanLikenessConsent": "synthetic", - "marks": [ - "Singer-style and training-song rights require upstream confirmation" - ], + "marks": ["Singer-style and training-song rights require upstream confirmation"], "requiredAttribution": [], "assetLicense": "upstream-terms-only", "reviewedBy": null, @@ -364,9 +358,7 @@ ], "aiGenerated": true, "humanLikenessConsent": "synthetic", - "marks": [ - "MoDiff project name in the project-authored lyrics" - ], + "marks": ["MoDiff project name in the project-authored lyrics"], "requiredAttribution": [], "assetLicense": "Apache-2.0", "reviewedBy": "SOURAV DAS", @@ -845,9 +837,7 @@ "aiGenerated": true, "humanLikenessConsent": "synthetic", "marks": [], - "requiredAttribution": [ - "sourav-das" - ], + "requiredAttribution": ["sourav-das"], "assetLicense": "CC-BY-4.0", "reviewedBy": "sourav-das", "reviewedAt": "2026-10-31", @@ -872,9 +862,7 @@ "aiGenerated": true, "humanLikenessConsent": "synthetic", "marks": [], - "requiredAttribution": [ - "sourav-das" - ], + "requiredAttribution": ["sourav-das"], "assetLicense": "CC-BY-4.0", "reviewedBy": "sourav-das", "reviewedAt": "2026-10-31", @@ -899,9 +887,7 @@ "aiGenerated": true, "humanLikenessConsent": "synthetic", "marks": [], - "requiredAttribution": [ - "sourav-das" - ], + "requiredAttribution": ["sourav-das"], "assetLicense": "CC-BY-4.0", "reviewedBy": "sourav-das", "reviewedAt": "2026-10-31", @@ -926,9 +912,7 @@ "aiGenerated": true, "humanLikenessConsent": "synthetic", "marks": [], - "requiredAttribution": [ - "sourav-das" - ], + "requiredAttribution": ["sourav-das"], "assetLicense": "CC-BY-4.0", "reviewedBy": "sourav-das", "reviewedAt": "2026-10-31", @@ -953,9 +937,7 @@ "aiGenerated": true, "humanLikenessConsent": "synthetic", "marks": [], - "requiredAttribution": [ - "sourav-das" - ], + "requiredAttribution": ["sourav-das"], "assetLicense": "CC-BY-4.0", "reviewedBy": "sourav-das", "reviewedAt": "2026-10-31", @@ -982,9 +964,7 @@ "aiGenerated": true, "humanLikenessConsent": "synthetic", "marks": [], - "requiredAttribution": [ - "sourav-das" - ], + "requiredAttribution": ["sourav-das"], "assetLicense": "CC-BY-4.0", "reviewedBy": "sourav-das", "reviewedAt": "2026-10-31", @@ -1009,9 +989,7 @@ "aiGenerated": true, "humanLikenessConsent": "synthetic", "marks": [], - "requiredAttribution": [ - "sourav-das" - ], + "requiredAttribution": ["sourav-das"], "assetLicense": "CC-BY-4.0", "reviewedBy": "sourav-das", "reviewedAt": "2026-10-31", @@ -1036,9 +1014,7 @@ "aiGenerated": true, "humanLikenessConsent": "synthetic", "marks": [], - "requiredAttribution": [ - "sourav-das" - ], + "requiredAttribution": ["sourav-das"], "assetLicense": "CC-BY-4.0", "reviewedBy": "sourav-das", "reviewedAt": "2026-10-31", @@ -1063,9 +1039,7 @@ "aiGenerated": true, "humanLikenessConsent": "synthetic", "marks": [], - "requiredAttribution": [ - "sourav-das" - ], + "requiredAttribution": ["sourav-das"], "assetLicense": "CC-BY-4.0", "reviewedBy": "sourav-das", "reviewedAt": "2026-10-31", @@ -1090,9 +1064,7 @@ "aiGenerated": true, "humanLikenessConsent": "synthetic", "marks": [], - "requiredAttribution": [ - "sourav-das" - ], + "requiredAttribution": ["sourav-das"], "assetLicense": "CC-BY-4.0", "reviewedBy": "sourav-das", "reviewedAt": "2026-10-31", @@ -1261,9 +1233,7 @@ ], "aiGenerated": true, "humanLikenessConsent": "not-applicable", - "marks": [ - "Fictional ASTERMIST / LAVENDER SLEEP SPRAY product label" - ], + "marks": ["Fictional ASTERMIST / LAVENDER SLEEP SPRAY product label"], "requiredAttribution": [], "publicationBasis": "Existing maintainer publication authorization and current explicit instruction to register these three accepted assets; no new ownership or rights quotation is fabricated.", "path": "template-gallery/flux_kontext_edit.webp", @@ -1288,9 +1258,7 @@ ], "aiGenerated": true, "humanLikenessConsent": "not-applicable", - "marks": [ - "Fictional ASTERMIST / LAVENDER SLEEP SPRAY product label" - ], + "marks": ["Fictional ASTERMIST / LAVENDER SLEEP SPRAY product label"], "requiredAttribution": [], "publicationBasis": "Existing maintainer publication authorization and current explicit instruction to register these three accepted assets; no new ownership or rights quotation is fabricated.", "path": "template-gallery/flux_kontext_multi_reference.webp", @@ -1446,9 +1414,7 @@ ], "aiGenerated": true, "humanLikenessConsent": "synthetic", - "marks": [ - "Studio Ghibli style reference; no franchise character requested" - ], + "marks": ["Studio Ghibli style reference; no franchise character requested"], "requiredAttribution": [], "assetLicense": "upstream-terms-only", "reviewedBy": null, @@ -1472,9 +1438,7 @@ ], "aiGenerated": true, "humanLikenessConsent": "synthetic", - "marks": [ - "Studio Ghibli style reference; no franchise character requested" - ], + "marks": ["Studio Ghibli style reference; no franchise character requested"], "requiredAttribution": [], "assetLicense": "upstream-terms-only", "reviewedBy": null, @@ -1821,9 +1785,7 @@ "sourceUrl": "https://huggingface.co/zai-org/GLM-Image/tree/2c433cc0cbc293bde2ac8ca9624f279b5d23fcf4", "sourceRevision": "zai-org/GLM-Image@2c433cc0cbc293bde2ac8ca9624f279b5d23fcf4", "sourceLicense": "Maintainer-authorized file with publisher terms retained", - "modelTerms": [ - "mit. https://huggingface.co/zai-org/GLM-Image/tree/2c433cc0cbc293bde2ac8ca9624f279b5d23fcf4" - ], + "modelTerms": ["mit. https://huggingface.co/zai-org/GLM-Image/tree/2c433cc0cbc293bde2ac8ca9624f279b5d23fcf4"], "aiGenerated": true, "humanLikenessConsent": "synthetic", "marks": [], @@ -2142,9 +2104,7 @@ "reviewedAt": "2026-11-13", "reviewClass": "per-file-maintainer-accepted-native-six-registration", "provenanceTemplateId": "flux_redux_edit", - "consumingTemplateIds": [ - "flux_redux_edit" - ], + "consumingTemplateIds": ["flux_redux_edit"], "retainedOriginalPath": "template-gallery/inputs/flux_redux_edit.before.webp", "humanApprovalPacketSHA256": "03b66b4631afb15032d62a1705331b56f6b12c4882c23945175ec92cc45a506f", "publicationBasis": "Register the six approved assets now while Moonflower runs on Linux. Use Windows in parallel wherever possible, and keep the longer workflows separate for AMD cloud." @@ -2297,9 +2257,7 @@ "reviewedAt": "2026-11-15", "reviewClass": "per-file-maintainer-accepted-native-two-registration", "provenanceTemplateId": "flux_redux_multi_reference", - "consumingTemplateIds": [ - "flux_redux_multi_reference" - ], + "consumingTemplateIds": ["flux_redux_multi_reference"], "retainedOriginalPath": "template-gallery/inputs/flux_redux_multi_reference.before.webp", "humanApprovalPacketSHA256": "c3c5e06d05771cf28f823e1dee31a9e7e3765d2f84038823aaadc505ee8290f5", "publicationBasis": "you can register these two as well" @@ -2681,9 +2639,7 @@ "reviewedAt": "2026-11-13", "reviewClass": "per-file-maintainer-accepted-native-six-registration", "provenanceTemplateId": "ltx_video_video_to_video", - "consumingTemplateIds": [ - "ltx_video_video_to_video" - ], + "consumingTemplateIds": ["ltx_video_video_to_video"], "retainedOriginalPath": "template-gallery/inputs/ltx_video_video_to_video.before.mp4", "humanApprovalPacketSHA256": "03b66b4631afb15032d62a1705331b56f6b12c4882c23945175ec92cc45a506f", "publicationBasis": "Register the six approved assets now while Moonflower runs on Linux. Use Windows in parallel wherever possible, and keep the longer workflows separate for AMD cloud." @@ -3021,9 +2977,7 @@ "reviewedAt": "2026-11-15", "reviewClass": "per-file-maintainer-accepted-native-seven-registration", "provenanceTemplateId": "wan_vace_grayscale_control", - "consumingTemplateIds": [ - "wan_vace_grayscale_control" - ], + "consumingTemplateIds": ["wan_vace_grayscale_control"], "retainedOriginalPath": "template-gallery/inputs/wan_vace_grayscale_control.before.mp4", "humanApprovalPacketSHA256": "95c7c2ed080c3d618db1701b066724660595337460c46df8305b50810783eaa3", "publicationBasis": "these are approved, you can register them" @@ -3203,9 +3157,7 @@ "reviewedAt": "2026-11-15", "reviewClass": "per-file-maintainer-accepted-native-seven-registration", "provenanceTemplateId": "wan_vace_outpaint_reframe", - "consumingTemplateIds": [ - "wan_vace_outpaint_reframe" - ], + "consumingTemplateIds": ["wan_vace_outpaint_reframe"], "retainedOriginalPath": "template-gallery/inputs/wan_vace_outpaint_reframe.before.mp4", "humanApprovalPacketSHA256": "95c7c2ed080c3d618db1701b066724660595337460c46df8305b50810783eaa3", "publicationBasis": "these are approved, you can register them" @@ -3385,9 +3337,7 @@ "reviewedAt": "2026-11-15", "reviewClass": "per-file-maintainer-accepted-native-seven-registration", "provenanceTemplateId": "wan_vace_video_color_grade", - "consumingTemplateIds": [ - "wan_vace_video_color_grade" - ], + "consumingTemplateIds": ["wan_vace_video_color_grade"], "retainedOriginalPath": "template-gallery/inputs/wan_vace_video_color_grade.before.mp4", "humanApprovalPacketSHA256": "95c7c2ed080c3d618db1701b066724660595337460c46df8305b50810783eaa3", "publicationBasis": "these are approved, you can register them" @@ -3567,9 +3517,7 @@ "reviewedAt": "2026-11-15", "reviewClass": "per-file-maintainer-accepted-native-seven-registration", "provenanceTemplateId": "wan_vace_video_to_video", - "consumingTemplateIds": [ - "wan_vace_video_to_video" - ], + "consumingTemplateIds": ["wan_vace_video_to_video"], "retainedOriginalPath": "template-gallery/inputs/wan_vace_video_to_video.before.mp4", "humanApprovalPacketSHA256": "95c7c2ed080c3d618db1701b066724660595337460c46df8305b50810783eaa3", "publicationBasis": "these are approved, you can register them" @@ -3805,10 +3753,7 @@ "reviewedBy": "SOURAV DAS", "reviewedAt": "2026-11-13", "reviewClass": "per-file-maintainer-accepted-native-six-registration", - "consumingTemplateIds": [ - "ace_step_audio_repaint", - "ace_step_audio_variation" - ], + "consumingTemplateIds": ["ace_step_audio_repaint", "ace_step_audio_variation"], "humanApprovalPacketSHA256": "03b66b4631afb15032d62a1705331b56f6b12c4882c23945175ec92cc45a506f", "publicationBasis": "Register the six approved assets now while Moonflower runs on Linux. Use Windows in parallel wherever possible, and keep the longer workflows separate for AMD cloud.", "provenanceTemplateId": "ace_step_audio_variation" @@ -3863,9 +3808,7 @@ "reviewedAt": "2026-08-03", "reviewClass": "standard-human-attestation", "provenanceTemplateId": "character_edit", - "consumingTemplateIds": [ - "character_edit" - ] + "consumingTemplateIds": ["character_edit"] }, { "path": "template-gallery/inputs/chroma_restored_cobalt_backdrop.before.png", @@ -4000,9 +3943,7 @@ "reviewedAt": "2026-08-03", "reviewClass": "standard-human-attestation", "provenanceTemplateId": "flux2_klein_multi_reference", - "consumingTemplateIds": [ - "flux2_klein_multi_reference" - ] + "consumingTemplateIds": ["flux2_klein_multi_reference"] }, { "path": "template-gallery/inputs/flux3-packaging-protected-photo-mask-v1.png", @@ -4018,9 +3959,7 @@ "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], - "requiredAttribution": [ - "sourav-das" - ], + "requiredAttribution": ["sourav-das"], "assetLicense": "CC-BY-4.0", "reviewedBy": "sourav-das", "reviewedAt": "2026-10-31", @@ -4158,9 +4097,7 @@ "reviewedAt": "2026-08-03", "reviewClass": "standard-human-attestation", "provenanceTemplateId": "flux_control_canny", - "consumingTemplateIds": [ - "flux_control_canny" - ] + "consumingTemplateIds": ["flux_control_canny"] }, { "path": "template-gallery/inputs/flux_depth_control.before.png", @@ -4184,9 +4121,7 @@ "reviewedAt": "2026-08-03", "reviewClass": "standard-human-attestation", "provenanceTemplateId": "flux_depth_control", - "consumingTemplateIds": [ - "flux_depth_control" - ] + "consumingTemplateIds": ["flux_depth_control"] }, { "path": "template-gallery/inputs/flux_fill_inpaint.before.webp", @@ -4210,9 +4145,7 @@ "reviewedAt": "2026-08-03", "reviewClass": "standard-human-attestation", "provenanceTemplateId": "flux_fill_inpaint", - "consumingTemplateIds": [ - "flux_fill_inpaint" - ] + "consumingTemplateIds": ["flux_fill_inpaint"] }, { "path": "template-gallery/inputs/flux_fill_outpaint.before.png", @@ -4236,9 +4169,7 @@ "reviewedAt": "2026-08-03", "reviewClass": "standard-human-attestation", "provenanceTemplateId": "flux_fill_outpaint", - "consumingTemplateIds": [ - "flux_fill_outpaint" - ] + "consumingTemplateIds": ["flux_fill_outpaint"] }, { "path": "template-gallery/inputs/flux_kontext_edit.before.webp", @@ -4262,9 +4193,7 @@ "reviewedAt": "2026-08-03", "reviewClass": "standard-human-attestation", "provenanceTemplateId": "flux_kontext_edit", - "consumingTemplateIds": [ - "flux_kontext_edit" - ] + "consumingTemplateIds": ["flux_kontext_edit"] }, { "path": "template-gallery/inputs/flux_kontext_multi_reference.before.webp", @@ -4288,9 +4217,7 @@ "reviewedAt": "2026-08-03", "reviewClass": "standard-human-attestation", "provenanceTemplateId": "flux_kontext_multi_reference", - "consumingTemplateIds": [ - "flux_kontext_multi_reference" - ] + "consumingTemplateIds": ["flux_kontext_multi_reference"] }, { "path": "template-gallery/inputs/flux_kontext_multi_reference.material-strip.v2.png", @@ -4313,9 +4240,7 @@ "reviewedBy": "maintainer (current user)", "reviewedAt": "2026-11-12", "reviewClass": "per-file-maintainer-accepted-native-three-registration", - "consumingTemplateIds": [ - "flux_kontext_multi_reference" - ], + "consumingTemplateIds": ["flux_kontext_multi_reference"], "derivedFromContentHash": "sha256:bytes:9f421cdc0fa80b3aae368bd3b20a8f6f05942ec461f88541f01aec5390468897", "publicationBasis": "Existing maintainer publication authorization and current explicit instruction to register these three accepted assets; no new ownership or rights quotation is fabricated.", "humanApprovalPacketSHA256": "69c6b3d9b0ea2fcca16ee538f6e75b414b7141658b74f10578758e61360f63fd" @@ -4343,9 +4268,7 @@ "reviewedAt": "2026-08-03", "reviewClass": "standard-human-attestation", "provenanceTemplateId": "flux_redux_edit", - "consumingTemplateIds": [ - "flux_redux_edit" - ] + "consumingTemplateIds": ["flux_redux_edit"] }, { "path": "template-gallery/inputs/flux_redux_multi_reference.before.webp", @@ -4370,9 +4293,7 @@ "reviewedAt": "2026-08-03", "reviewClass": "standard-human-attestation", "provenanceTemplateId": "flux_redux_multi_reference", - "consumingTemplateIds": [ - "flux_redux_multi_reference" - ] + "consumingTemplateIds": ["flux_redux_multi_reference"] }, { "path": "template-gallery/inputs/hunyuan_dit_green_glass_study.before.png", @@ -4498,9 +4419,7 @@ "reviewedAt": "2026-08-03", "reviewClass": "standard-human-attestation", "provenanceTemplateId": "ltx_video_image_to_video", - "consumingTemplateIds": [ - "ltx_video_image_to_video" - ] + "consumingTemplateIds": ["ltx_video_image_to_video"] }, { "path": "template-gallery/inputs/ltx_video_multi_reference.before.webp", @@ -4525,9 +4444,7 @@ "reviewedAt": "2026-08-03", "reviewClass": "standard-human-attestation", "provenanceTemplateId": "ltx_video_multi_reference", - "consumingTemplateIds": [ - "ltx_video_multi_reference" - ] + "consumingTemplateIds": ["ltx_video_multi_reference"] }, { "path": "template-gallery/inputs/ltx_video_video_to_video.before.mp4", @@ -4554,9 +4471,7 @@ "reviewedAt": "2026-08-03", "reviewClass": "standard-human-attestation", "provenanceTemplateId": "ltx_video_video_to_video", - "consumingTemplateIds": [ - "ltx_video_video_to_video" - ] + "consumingTemplateIds": ["ltx_video_video_to_video"] }, { "path": "template-gallery/inputs/marigold_depth_synthetic_ramp.before.png", @@ -4625,9 +4540,7 @@ "reviewedAt": "2026-08-03", "reviewClass": "standard-human-attestation", "provenanceTemplateId": "qwen_character_angles", - "consumingTemplateIds": [ - "qwen_character_angles" - ] + "consumingTemplateIds": ["qwen_character_angles"] }, { "path": "template-gallery/inputs/qwen_control_image_layout.before.png", @@ -4707,9 +4620,7 @@ "reviewedAt": "2026-08-03", "reviewClass": "standard-human-attestation", "provenanceTemplateId": "qwen_edit_plus_single_image", - "consumingTemplateIds": [ - "qwen_edit_plus_single_image" - ] + "consumingTemplateIds": ["qwen_edit_plus_single_image"] }, { "path": "template-gallery/inputs/qwen_edit_strength_sweep.before.webp", @@ -4733,9 +4644,7 @@ "reviewedAt": "2026-08-03", "reviewClass": "standard-human-attestation", "provenanceTemplateId": "qwen_edit_strength_sweep", - "consumingTemplateIds": [ - "qwen_edit_strength_sweep" - ] + "consumingTemplateIds": ["qwen_edit_strength_sweep"] }, { "path": "template-gallery/inputs/qwen_inpaint_mask_draft.before.webp", @@ -4759,9 +4668,7 @@ "reviewedAt": "2026-08-03", "reviewClass": "standard-human-attestation", "provenanceTemplateId": "qwen_inpaint_mask_draft", - "consumingTemplateIds": [ - "qwen_inpaint_mask_draft" - ] + "consumingTemplateIds": ["qwen_inpaint_mask_draft"] }, { "path": "template-gallery/inputs/qwen_inpaint_object_replace.before.webp", @@ -4785,9 +4692,7 @@ "reviewedAt": "2026-08-03", "reviewClass": "standard-human-attestation", "provenanceTemplateId": "qwen_inpaint_object_replace", - "consumingTemplateIds": [ - "qwen_inpaint_object_replace" - ] + "consumingTemplateIds": ["qwen_inpaint_object_replace"] }, { "creatorOrRightsholder": "MoDiff project maintainers, subject to previously approved synthetic source rights and recorded model terms", @@ -4864,9 +4769,7 @@ "reviewedAt": "2026-08-03", "reviewClass": "standard-human-attestation", "provenanceTemplateId": "qwen_logo_texture", - "consumingTemplateIds": [ - "qwen_logo_texture" - ] + "consumingTemplateIds": ["qwen_logo_texture"] }, { "path": "template-gallery/inputs/qwen_multi_reference_product.before.webp", @@ -4891,9 +4794,7 @@ "reviewedAt": "2026-08-03", "reviewClass": "standard-human-attestation", "provenanceTemplateId": "qwen_multi_reference_product", - "consumingTemplateIds": [ - "qwen_multi_reference_product" - ] + "consumingTemplateIds": ["qwen_multi_reference_product"] }, { "path": "template-gallery/inputs/qwen_outpaint_aspect_template.before.webp", @@ -4917,9 +4818,7 @@ "reviewedAt": "2026-08-03", "reviewClass": "standard-human-attestation", "provenanceTemplateId": "qwen_outpaint_aspect_template", - "consumingTemplateIds": [ - "qwen_outpaint_aspect_template" - ] + "consumingTemplateIds": ["qwen_outpaint_aspect_template"] }, { "path": "template-gallery/inputs/qwen_outpaint_draft.before.webp", @@ -4943,9 +4842,7 @@ "reviewedAt": "2026-08-03", "reviewClass": "standard-human-attestation", "provenanceTemplateId": "qwen_outpaint_draft", - "consumingTemplateIds": [ - "qwen_outpaint_draft" - ] + "consumingTemplateIds": ["qwen_outpaint_draft"] }, { "path": "template-gallery/inputs/qwen_packaging_dieline.before.png", @@ -4970,9 +4867,7 @@ "reviewedAt": "2026-08-03", "reviewClass": "standard-human-attestation", "provenanceTemplateId": "qwen_packaging_dieline", - "consumingTemplateIds": [ - "qwen_packaging_dieline" - ] + "consumingTemplateIds": ["qwen_packaging_dieline"] }, { "path": "template-gallery/inputs/qwen_product_ad_composite.before.webp", @@ -4997,9 +4892,7 @@ "reviewedAt": "2026-08-03", "reviewClass": "standard-human-attestation", "provenanceTemplateId": "qwen_product_ad_composite", - "consumingTemplateIds": [ - "qwen_product_ad_composite" - ] + "consumingTemplateIds": ["qwen_product_ad_composite"] }, { "path": "template-gallery/inputs/qwen_product_relight.before.webp", @@ -5024,9 +4917,7 @@ "reviewedAt": "2026-08-03", "reviewClass": "standard-human-attestation", "provenanceTemplateId": "qwen_product_relight", - "consumingTemplateIds": [ - "qwen_product_relight" - ] + "consumingTemplateIds": ["qwen_product_relight"] }, { "path": "template-gallery/inputs/qwen_tile_extract.before.webp", @@ -5050,9 +4941,7 @@ "reviewedAt": "2026-08-03", "reviewClass": "standard-human-attestation", "provenanceTemplateId": "qwen_tile_extract", - "consumingTemplateIds": [ - "qwen_tile_extract" - ] + "consumingTemplateIds": ["qwen_tile_extract"] }, { "creatorOrRightsholder": "MoDiff project maintainers, with exact-file rights explicitly attested by the maintainer", @@ -5103,9 +4992,7 @@ "reviewedAt": "2026-08-03", "reviewClass": "standard-human-attestation", "provenanceTemplateId": "reference_fusion", - "consumingTemplateIds": [ - "reference_fusion" - ] + "consumingTemplateIds": ["reference_fusion"] }, { "path": "template-gallery/inputs/restoring_the_studio_backdrop.before.png", @@ -5117,9 +5004,7 @@ "sourceUrl": "https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14", "sourceRevision": "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14", "sourceLicense": "Maintainer-authorized file with publisher terms retained", - "modelTerms": [ - "CreativeML Open RAIL-M at the pinned Stable Diffusion v1.5 revision." - ], + "modelTerms": ["CreativeML Open RAIL-M at the pinned Stable Diffusion v1.5 revision."], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], @@ -5144,9 +5029,7 @@ "sourceUrl": "https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14", "sourceRevision": "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14", "sourceLicense": "Maintainer-authorized file with publisher terms retained", - "modelTerms": [ - "CreativeML Open RAIL-M at the pinned Stable Diffusion v1.5 revision." - ], + "modelTerms": ["CreativeML Open RAIL-M at the pinned Stable Diffusion v1.5 revision."], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], @@ -5641,9 +5524,7 @@ "reviewedAt": "2026-08-03", "reviewClass": "standard-human-attestation", "provenanceTemplateId": "wan_vace_grayscale_control", - "consumingTemplateIds": [ - "wan_vace_grayscale_control" - ] + "consumingTemplateIds": ["wan_vace_grayscale_control"] }, { "path": "template-gallery/inputs/wan_vace_outpaint_reframe.before.mp4", @@ -5668,9 +5549,7 @@ "reviewedAt": "2026-08-03", "reviewClass": "standard-human-attestation", "provenanceTemplateId": "wan_vace_outpaint_reframe", - "consumingTemplateIds": [ - "wan_vace_outpaint_reframe" - ] + "consumingTemplateIds": ["wan_vace_outpaint_reframe"] }, { "path": "template-gallery/inputs/wan_vace_video_color_grade.before.mp4", @@ -5695,9 +5574,7 @@ "reviewedAt": "2026-08-03", "reviewClass": "standard-human-attestation", "provenanceTemplateId": "wan_vace_video_color_grade", - "consumingTemplateIds": [ - "wan_vace_video_color_grade" - ] + "consumingTemplateIds": ["wan_vace_video_color_grade"] }, { "path": "template-gallery/inputs/wan_vace_video_to_video.before.mp4", @@ -5722,9 +5599,7 @@ "reviewedAt": "2026-08-03", "reviewClass": "standard-human-attestation", "provenanceTemplateId": "wan_vace_video_to_video", - "consumingTemplateIds": [ - "wan_vace_video_to_video" - ] + "consumingTemplateIds": ["wan_vace_video_to_video"] }, { "path": "template-gallery/inputs/zimage_golden_amber_glass.before.png", @@ -5763,9 +5638,7 @@ "sourceUrl": "https://huggingface.co/deepseek-community/Janus-Pro-1B/tree/1655280bb75959cc1cb85529a2a8b26e7016072e", "sourceRevision": "deepseek-community/Janus-Pro-1B@1655280bb75959cc1cb85529a2a8b26e7016072e", "sourceLicense": "Maintainer-authorized file with publisher terms retained", - "modelTerms": [ - "https://github.com/deepseek-ai/Janus/blob/main/LICENSE-MODEL" - ], + "modelTerms": ["https://github.com/deepseek-ai/Janus/blob/main/LICENSE-MODEL"], "aiGenerated": true, "humanLikenessConsent": "synthetic", "marks": [], @@ -5790,9 +5663,7 @@ "sourceUrl": "https://huggingface.co/deepseek-community/Janus-Pro-1B/tree/1655280bb75959cc1cb85529a2a8b26e7016072e", "sourceRevision": "deepseek-community/Janus-Pro-1B@1655280bb75959cc1cb85529a2a8b26e7016072e", "sourceLicense": "Maintainer-authorized file with publisher terms retained", - "modelTerms": [ - "https://github.com/deepseek-ai/Janus/blob/main/LICENSE-MODEL" - ], + "modelTerms": ["https://github.com/deepseek-ai/Janus/blob/main/LICENSE-MODEL"], "aiGenerated": true, "humanLikenessConsent": "synthetic", "marks": [], @@ -5817,9 +5688,7 @@ "sourceUrl": "https://huggingface.co/deepseek-community/Janus-Pro-1B/tree/1655280bb75959cc1cb85529a2a8b26e7016072e", "sourceRevision": "deepseek-community/Janus-Pro-1B@1655280bb75959cc1cb85529a2a8b26e7016072e", "sourceLicense": "Maintainer-authorized file with publisher terms retained", - "modelTerms": [ - "https://github.com/deepseek-ai/Janus/blob/main/LICENSE-MODEL" - ], + "modelTerms": ["https://github.com/deepseek-ai/Janus/blob/main/LICENSE-MODEL"], "aiGenerated": true, "humanLikenessConsent": "synthetic", "marks": [], @@ -5834,6 +5703,33 @@ "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", "provenanceTemplateId": "janus_reykjavik_travel_note" }, + { + "path": "template-gallery/joyimage_herbarium_rainy_porthole.webp", + "sha256": "sha256:bytes:50213ff01502af1445d1d72618c3614c444931fd94739a53191bd2c36f36e578", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Exact approved file captured from a saved MoDiff workflow", + "sourceUrl": "https://huggingface.co/jdopensource/JoyAI-Image-Edit-Diffusers/tree/4b41fb25d961f37668750178ccbb380da326201c", + "sourceRevision": "jdopensource/JoyAI-Image-Edit-Diffusers@4b41fb25d961f37668750178ccbb380da326201c", + "sourceLicense": "Maintainer-authorized file with publisher terms retained", + "modelTerms": [ + "Publisher model terms at https://huggingface.co/jdopensource/JoyAI-Image-Edit-Diffusers/tree/4b41fb25d961f37668750178ccbb380da326201c" + ], + "aiGenerated": true, + "humanLikenessConsent": "synthetic", + "marks": [], + "requiredAttribution": [ + "jdopensource/JoyAI-Image-Edit-Diffusers@4b41fb25d961f37668750178ccbb380da326201c https://huggingface.co/jdopensource/JoyAI-Image-Edit-Diffusers/tree/4b41fb25d961f37668750178ccbb380da326201c" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "4fc7c52588176cb1f6ba6d699d08741b2986ea71ea87bac650d261716a10b24c", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "joyimage_herbarium_rainy_porthole" + }, { "path": "template-gallery/kandinsky3_ginkgo_on_slate.webp", "sha256": "sha256:bytes:4b33c6b278e6c9f036ee8f4a11fe6dd4dab58ad385407f844b1f0bb609557ab4", @@ -6154,6 +6050,33 @@ "assetLicense": "MoDiff-Gallery-Restricted-1.0", "provenanceTemplateId": "lcm_dawn_alpine_lake" }, + { + "path": "template-gallery/longcat_florist_end_of_lane.webp", + "sha256": "sha256:bytes:045dec822bcffaf2825dee3118446a536819a518475c78c4573d68dbb498825b", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Exact approved file captured from a saved MoDiff workflow", + "sourceUrl": "https://huggingface.co/meituan-longcat/LongCat-Image/tree/d2ea50b79a930074c37b9b97ce45e3b2ea8cf4d8", + "sourceRevision": "meituan-longcat/LongCat-Image@d2ea50b79a930074c37b9b97ce45e3b2ea8cf4d8", + "sourceLicense": "Maintainer-authorized file with publisher terms retained", + "modelTerms": [ + "Publisher model terms at https://huggingface.co/meituan-longcat/LongCat-Image/tree/d2ea50b79a930074c37b9b97ce45e3b2ea8cf4d8" + ], + "aiGenerated": true, + "humanLikenessConsent": "synthetic", + "marks": [], + "requiredAttribution": [ + "meituan-longcat/LongCat-Image@d2ea50b79a930074c37b9b97ce45e3b2ea8cf4d8 https://huggingface.co/meituan-longcat/LongCat-Image/tree/d2ea50b79a930074c37b9b97ce45e3b2ea8cf4d8" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "4fc7c52588176cb1f6ba6d699d08741b2986ea71ea87bac650d261716a10b24c", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "longcat_florist_end_of_lane" + }, { "path": "template-gallery/longcat_last_tram_at_dusk.wav", "sha256": "sha256:bytes:6d7e8a05a49b111c59cda0fe69dfb7c5f92fb8e560ae468cf96a16bbd068a78b", @@ -6860,7 +6783,7 @@ }, { "path": "template-gallery/manifest.json", - "sha256": "sha256:bytes:5b8154a4401935520d771e9186a75b29f282369c4cbb6a86d07f333bd4c44490", + "sha256": "sha256:bytes:4cdc61e54dab42aa8d528f9fbda584ca594d05fce5016b44d9eac6f373654806", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", @@ -6877,7 +6800,7 @@ "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "ffeaa41a5c94b59135d2cdb15a5c7f79f073c15fd78792ce00a157398ab15d59", + "humanApprovalPacketSHA256": "4fc7c52588176cb1f6ba6d699d08741b2986ea71ea87bac650d261716a10b24c", "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained." }, { @@ -6919,9 +6842,7 @@ "aiGenerated": true, "humanLikenessConsent": "synthetic", "marks": [], - "requiredAttribution": [ - "AI-generated music — MiniMax-Music3" - ], + "requiredAttribution": ["AI-generated music — MiniMax-Music3"], "assetLicense": "Apache-2.0", "publisherLicenseUrl": "https://huggingface.co/MiniMaxAI/MiniMax-Music3/blob/fbdf52fbaaca799592917417eb05f1899f1255ec/LICENSE", "path": "template-gallery/minimax_music3_chamber_pop.wav", @@ -7424,9 +7345,7 @@ ], "aiGenerated": true, "humanLikenessConsent": "synthetic", - "marks": [ - "TIDELINE: fictional cinema and event" - ], + "marks": ["TIDELINE: fictional cinema and event"], "requiredAttribution": [], "sourceRightsAttestation": "I hold the rights or permissions needed to publish this exact generated TIDELINE cinema image and its redacted technical/review records under Apache-2.0. The film event and cinema are fictional; no external image inputs or real-person likenesses were used.", "path": "template-gallery/qwen_low_vram_poster_layout.webp", @@ -7451,9 +7370,7 @@ ], "aiGenerated": true, "humanLikenessConsent": "synthetic", - "marks": [ - "MICA DROP: fictional product name" - ], + "marks": ["MICA DROP: fictional product name"], "requiredAttribution": [], "sourceRightsAttestation": "I approve this exact image as a reviewed concept with the stated design limitations and incomplete independent resource monitoring, without a fully guarded or hardware-qualification claim. I hold the rights or permissions needed to publish this generated MICA DROP image and its redacted technical/review metadata under Apache-2.0. The product is fictional in this example; no external image input or real-person likeness was used.", "path": "template-gallery/qwen_low_vram_product_concept.webp", @@ -7478,9 +7395,7 @@ ], "aiGenerated": true, "humanLikenessConsent": "synthetic", - "marks": [ - "KITE & ANVIL: fictional stationery brand" - ], + "marks": ["KITE & ANVIL: fictional stationery brand"], "requiredAttribution": [], "sourceRightsAttestation": "I hold the rights or permissions needed to publish this exact generated KITE & ANVIL stationery image and its redacted technical/review metadata under Apache-2.0. The stationery brand is fictional in this example; no external image inputs or real-person likenesses were used.", "path": "template-gallery/qwen_low_vram_text_rendering.webp", @@ -7609,9 +7524,7 @@ ], "aiGenerated": true, "humanLikenessConsent": "synthetic", - "marks": [ - "MATERIAL CULTURE: fictional exhibition title" - ], + "marks": ["MATERIAL CULTURE: fictional exhibition title"], "requiredAttribution": [], "sourceRightsAttestation": "I hold the rights or permissions needed to publish this exact generated MATERIAL CULTURE exhibition poster and its redacted technical/review metadata under Apache-2.0. The exhibition is fictional in this example; no external image inputs or real-person likenesses were used.", "path": "template-gallery/qwen_poster_logo_text.webp", @@ -7717,9 +7630,7 @@ ], "aiGenerated": true, "humanLikenessConsent": "synthetic", - "marks": [ - "VERDA 03: fictional product name in this generated example" - ], + "marks": ["VERDA 03: fictional product name in this generated example"], "requiredAttribution": [], "sourceRightsAttestation": "I hold the rights or permissions needed to publicly redistribute this exact generated VERDA 03 poster and its redacted technical and quality metadata under Apache-2.0. VERDA 03 is a fictional product name in this example; no external image inputs or real-person likenesses were used.", "path": "template-gallery/qwen_text_rendering.webp", @@ -8305,9 +8216,7 @@ "sourceUrl": "https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14", "sourceRevision": "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14", "sourceLicense": "Maintainer-authorized file with publisher terms retained", - "modelTerms": [ - "CreativeML Open RAIL-M at the pinned Stable Diffusion v1.5 revision." - ], + "modelTerms": ["CreativeML Open RAIL-M at the pinned Stable Diffusion v1.5 revision."], "aiGenerated": true, "humanLikenessConsent": "synthetic", "marks": [], @@ -11263,9 +11172,7 @@ "sourceUrl": "https://huggingface.co/zai-org/GLM-Image/tree/2c433cc0cbc293bde2ac8ca9624f279b5d23fcf4", "sourceRevision": "zai-org/GLM-Image@2c433cc0cbc293bde2ac8ca9624f279b5d23fcf4", "sourceLicense": "MoDiff-authored Gallery metadata", - "modelTerms": [ - "mit. https://huggingface.co/zai-org/GLM-Image/tree/2c433cc0cbc293bde2ac8ca9624f279b5d23fcf4" - ], + "modelTerms": ["mit. https://huggingface.co/zai-org/GLM-Image/tree/2c433cc0cbc293bde2ac8ca9624f279b5d23fcf4"], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], @@ -11290,9 +11197,7 @@ "sourceUrl": "https://huggingface.co/zai-org/GLM-Image/tree/2c433cc0cbc293bde2ac8ca9624f279b5d23fcf4", "sourceRevision": "zai-org/GLM-Image@2c433cc0cbc293bde2ac8ca9624f279b5d23fcf4", "sourceLicense": "MoDiff-authored Gallery metadata", - "modelTerms": [ - "mit. https://huggingface.co/zai-org/GLM-Image/tree/2c433cc0cbc293bde2ac8ca9624f279b5d23fcf4" - ], + "modelTerms": ["mit. https://huggingface.co/zai-org/GLM-Image/tree/2c433cc0cbc293bde2ac8ca9624f279b5d23fcf4"], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], @@ -11317,9 +11222,7 @@ "sourceUrl": "https://huggingface.co/zai-org/GLM-Image/tree/2c433cc0cbc293bde2ac8ca9624f279b5d23fcf4", "sourceRevision": "zai-org/GLM-Image@2c433cc0cbc293bde2ac8ca9624f279b5d23fcf4", "sourceLicense": "MoDiff-authored Gallery metadata", - "modelTerms": [ - "mit. https://huggingface.co/zai-org/GLM-Image/tree/2c433cc0cbc293bde2ac8ca9624f279b5d23fcf4" - ], + "modelTerms": ["mit. https://huggingface.co/zai-org/GLM-Image/tree/2c433cc0cbc293bde2ac8ca9624f279b5d23fcf4"], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], @@ -11344,9 +11247,7 @@ "sourceUrl": "https://huggingface.co/zai-org/GLM-Image/tree/2c433cc0cbc293bde2ac8ca9624f279b5d23fcf4", "sourceRevision": "zai-org/GLM-Image@2c433cc0cbc293bde2ac8ca9624f279b5d23fcf4", "sourceLicense": "MoDiff-authored Gallery metadata", - "modelTerms": [ - "mit. https://huggingface.co/zai-org/GLM-Image/tree/2c433cc0cbc293bde2ac8ca9624f279b5d23fcf4" - ], + "modelTerms": ["mit. https://huggingface.co/zai-org/GLM-Image/tree/2c433cc0cbc293bde2ac8ca9624f279b5d23fcf4"], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], @@ -11847,9 +11748,7 @@ "sourceUrl": "https://huggingface.co/deepseek-community/Janus-Pro-1B/tree/1655280bb75959cc1cb85529a2a8b26e7016072e", "sourceRevision": "deepseek-community/Janus-Pro-1B@1655280bb75959cc1cb85529a2a8b26e7016072e", "sourceLicense": "MoDiff-authored Gallery metadata", - "modelTerms": [ - "https://github.com/deepseek-ai/Janus/blob/main/LICENSE-MODEL" - ], + "modelTerms": ["https://github.com/deepseek-ai/Janus/blob/main/LICENSE-MODEL"], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], @@ -11874,9 +11773,7 @@ "sourceUrl": "https://huggingface.co/deepseek-community/Janus-Pro-1B/tree/1655280bb75959cc1cb85529a2a8b26e7016072e", "sourceRevision": "deepseek-community/Janus-Pro-1B@1655280bb75959cc1cb85529a2a8b26e7016072e", "sourceLicense": "MoDiff-authored Gallery metadata", - "modelTerms": [ - "https://github.com/deepseek-ai/Janus/blob/main/LICENSE-MODEL" - ], + "modelTerms": ["https://github.com/deepseek-ai/Janus/blob/main/LICENSE-MODEL"], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], @@ -11901,9 +11798,7 @@ "sourceUrl": "https://huggingface.co/deepseek-community/Janus-Pro-1B/tree/1655280bb75959cc1cb85529a2a8b26e7016072e", "sourceRevision": "deepseek-community/Janus-Pro-1B@1655280bb75959cc1cb85529a2a8b26e7016072e", "sourceLicense": "MoDiff-authored Gallery metadata", - "modelTerms": [ - "https://github.com/deepseek-ai/Janus/blob/main/LICENSE-MODEL" - ], + "modelTerms": ["https://github.com/deepseek-ai/Janus/blob/main/LICENSE-MODEL"], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], @@ -11928,9 +11823,7 @@ "sourceUrl": "https://huggingface.co/deepseek-community/Janus-Pro-1B/tree/1655280bb75959cc1cb85529a2a8b26e7016072e", "sourceRevision": "deepseek-community/Janus-Pro-1B@1655280bb75959cc1cb85529a2a8b26e7016072e", "sourceLicense": "MoDiff-authored Gallery metadata", - "modelTerms": [ - "https://github.com/deepseek-ai/Janus/blob/main/LICENSE-MODEL" - ], + "modelTerms": ["https://github.com/deepseek-ai/Janus/blob/main/LICENSE-MODEL"], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], @@ -11955,9 +11848,7 @@ "sourceUrl": "https://huggingface.co/deepseek-community/Janus-Pro-1B/tree/1655280bb75959cc1cb85529a2a8b26e7016072e", "sourceRevision": "deepseek-community/Janus-Pro-1B@1655280bb75959cc1cb85529a2a8b26e7016072e", "sourceLicense": "MoDiff-authored Gallery metadata", - "modelTerms": [ - "https://github.com/deepseek-ai/Janus/blob/main/LICENSE-MODEL" - ], + "modelTerms": ["https://github.com/deepseek-ai/Janus/blob/main/LICENSE-MODEL"], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], @@ -11982,9 +11873,7 @@ "sourceUrl": "https://huggingface.co/deepseek-community/Janus-Pro-1B/tree/1655280bb75959cc1cb85529a2a8b26e7016072e", "sourceRevision": "deepseek-community/Janus-Pro-1B@1655280bb75959cc1cb85529a2a8b26e7016072e", "sourceLicense": "MoDiff-authored Gallery metadata", - "modelTerms": [ - "https://github.com/deepseek-ai/Janus/blob/main/LICENSE-MODEL" - ], + "modelTerms": ["https://github.com/deepseek-ai/Janus/blob/main/LICENSE-MODEL"], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], @@ -12009,9 +11898,7 @@ "sourceUrl": "https://huggingface.co/deepseek-community/Janus-Pro-1B/tree/1655280bb75959cc1cb85529a2a8b26e7016072e", "sourceRevision": "deepseek-community/Janus-Pro-1B@1655280bb75959cc1cb85529a2a8b26e7016072e", "sourceLicense": "MoDiff-authored Gallery metadata", - "modelTerms": [ - "https://github.com/deepseek-ai/Janus/blob/main/LICENSE-MODEL" - ], + "modelTerms": ["https://github.com/deepseek-ai/Janus/blob/main/LICENSE-MODEL"], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], @@ -12036,9 +11923,7 @@ "sourceUrl": "https://huggingface.co/deepseek-community/Janus-Pro-1B/tree/1655280bb75959cc1cb85529a2a8b26e7016072e", "sourceRevision": "deepseek-community/Janus-Pro-1B@1655280bb75959cc1cb85529a2a8b26e7016072e", "sourceLicense": "MoDiff-authored Gallery metadata", - "modelTerms": [ - "https://github.com/deepseek-ai/Janus/blob/main/LICENSE-MODEL" - ], + "modelTerms": ["https://github.com/deepseek-ai/Janus/blob/main/LICENSE-MODEL"], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], @@ -12063,9 +11948,7 @@ "sourceUrl": "https://huggingface.co/deepseek-community/Janus-Pro-1B/tree/1655280bb75959cc1cb85529a2a8b26e7016072e", "sourceRevision": "deepseek-community/Janus-Pro-1B@1655280bb75959cc1cb85529a2a8b26e7016072e", "sourceLicense": "MoDiff-authored Gallery metadata", - "modelTerms": [ - "https://github.com/deepseek-ai/Janus/blob/main/LICENSE-MODEL" - ], + "modelTerms": ["https://github.com/deepseek-ai/Janus/blob/main/LICENSE-MODEL"], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], @@ -12090,9 +11973,7 @@ "sourceUrl": "https://huggingface.co/deepseek-community/Janus-Pro-1B/tree/1655280bb75959cc1cb85529a2a8b26e7016072e", "sourceRevision": "deepseek-community/Janus-Pro-1B@1655280bb75959cc1cb85529a2a8b26e7016072e", "sourceLicense": "MoDiff-authored Gallery metadata", - "modelTerms": [ - "https://github.com/deepseek-ai/Janus/blob/main/LICENSE-MODEL" - ], + "modelTerms": ["https://github.com/deepseek-ai/Janus/blob/main/LICENSE-MODEL"], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], @@ -12117,9 +11998,7 @@ "sourceUrl": "https://huggingface.co/deepseek-community/Janus-Pro-1B/tree/1655280bb75959cc1cb85529a2a8b26e7016072e", "sourceRevision": "deepseek-community/Janus-Pro-1B@1655280bb75959cc1cb85529a2a8b26e7016072e", "sourceLicense": "MoDiff-authored Gallery metadata", - "modelTerms": [ - "https://github.com/deepseek-ai/Janus/blob/main/LICENSE-MODEL" - ], + "modelTerms": ["https://github.com/deepseek-ai/Janus/blob/main/LICENSE-MODEL"], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], @@ -12144,9 +12023,7 @@ "sourceUrl": "https://huggingface.co/deepseek-community/Janus-Pro-1B/tree/1655280bb75959cc1cb85529a2a8b26e7016072e", "sourceRevision": "deepseek-community/Janus-Pro-1B@1655280bb75959cc1cb85529a2a8b26e7016072e", "sourceLicense": "MoDiff-authored Gallery metadata", - "modelTerms": [ - "https://github.com/deepseek-ai/Janus/blob/main/LICENSE-MODEL" - ], + "modelTerms": ["https://github.com/deepseek-ai/Janus/blob/main/LICENSE-MODEL"], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], @@ -12162,95 +12039,203 @@ "provenanceTemplateId": "janus_reykjavik_travel_note" }, { - "path": "template-gallery/reviews/kandinsky3_ginkgo_on_slate.original-provenance.json", - "sha256": "sha256:bytes:31189848b609ec308b9bd427975d0b09d502ff7583321e88a7ba813f5a968db8", + "path": "template-gallery/reviews/joyimage_herbarium_rainy_porthole.original-provenance.json", + "sha256": "sha256:bytes:9d044b889706d4034d96da08aec8f9c6fa2458e2d75b36055a1a707e11140d38", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/kandinsky-community/kandinsky-3/tree/bf79e6c219da8a94abb50235fdc4567eb8fb4632", - "sourceRevision": "kandinsky-community/kandinsky-3@bf79e6c219da8a94abb50235fdc4567eb8fb4632", + "sourceUrl": "https://huggingface.co/jdopensource/JoyAI-Image-Edit-Diffusers/tree/4b41fb25d961f37668750178ccbb380da326201c", + "sourceRevision": "jdopensource/JoyAI-Image-Edit-Diffusers@4b41fb25d961f37668750178ccbb380da326201c", "sourceLicense": "MoDiff-authored Gallery metadata", "modelTerms": [ - "Publisher model terms at https://huggingface.co/kandinsky-community/kandinsky-3/tree/bf79e6c219da8a94abb50235fdc4567eb8fb4632" + "Publisher model terms at https://huggingface.co/jdopensource/JoyAI-Image-Edit-Diffusers/tree/4b41fb25d961f37668750178ccbb380da326201c" ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "kandinsky-community/kandinsky-3@bf79e6c219da8a94abb50235fdc4567eb8fb4632 https://huggingface.co/kandinsky-community/kandinsky-3/tree/bf79e6c219da8a94abb50235fdc4567eb8fb4632" + "jdopensource/JoyAI-Image-Edit-Diffusers@4b41fb25d961f37668750178ccbb380da326201c https://huggingface.co/jdopensource/JoyAI-Image-Edit-Diffusers/tree/4b41fb25d961f37668750178ccbb380da326201c" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", - "reviewedAt": "2026-11-24", + "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "d216f065bdc316366c6183592f657bcfbbd7cb05acd0e510c6b3877fe56bcec2", - "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped six saved cases with model terms retained.", - "provenanceTemplateId": "kandinsky3_ginkgo_on_slate" + "humanApprovalPacketSHA256": "4fc7c52588176cb1f6ba6d699d08741b2986ea71ea87bac650d261716a10b24c", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "joyimage_herbarium_rainy_porthole" }, { - "path": "template-gallery/reviews/kandinsky3_ginkgo_on_slate.original-review.json", - "sha256": "sha256:bytes:3d23527148ae151f8b05b623d2739f79ab4bcd37202db7b331e391bdf7b6bedf", + "path": "template-gallery/reviews/joyimage_herbarium_rainy_porthole.original-review.json", + "sha256": "sha256:bytes:5f1b196d8b9e9b3740a4745304e7fbbe5bbe5c5385237f87d6895748b75c8e07", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/kandinsky-community/kandinsky-3/tree/bf79e6c219da8a94abb50235fdc4567eb8fb4632", - "sourceRevision": "kandinsky-community/kandinsky-3@bf79e6c219da8a94abb50235fdc4567eb8fb4632", + "sourceUrl": "https://huggingface.co/jdopensource/JoyAI-Image-Edit-Diffusers/tree/4b41fb25d961f37668750178ccbb380da326201c", + "sourceRevision": "jdopensource/JoyAI-Image-Edit-Diffusers@4b41fb25d961f37668750178ccbb380da326201c", "sourceLicense": "MoDiff-authored Gallery metadata", "modelTerms": [ - "Publisher model terms at https://huggingface.co/kandinsky-community/kandinsky-3/tree/bf79e6c219da8a94abb50235fdc4567eb8fb4632" + "Publisher model terms at https://huggingface.co/jdopensource/JoyAI-Image-Edit-Diffusers/tree/4b41fb25d961f37668750178ccbb380da326201c" ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "kandinsky-community/kandinsky-3@bf79e6c219da8a94abb50235fdc4567eb8fb4632 https://huggingface.co/kandinsky-community/kandinsky-3/tree/bf79e6c219da8a94abb50235fdc4567eb8fb4632" + "jdopensource/JoyAI-Image-Edit-Diffusers@4b41fb25d961f37668750178ccbb380da326201c https://huggingface.co/jdopensource/JoyAI-Image-Edit-Diffusers/tree/4b41fb25d961f37668750178ccbb380da326201c" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", - "reviewedAt": "2026-11-24", + "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "d216f065bdc316366c6183592f657bcfbbd7cb05acd0e510c6b3877fe56bcec2", - "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped six saved cases with model terms retained.", - "provenanceTemplateId": "kandinsky3_ginkgo_on_slate" + "humanApprovalPacketSHA256": "4fc7c52588176cb1f6ba6d699d08741b2986ea71ea87bac650d261716a10b24c", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "joyimage_herbarium_rainy_porthole" }, { - "path": "template-gallery/reviews/kandinsky3_ginkgo_on_slate.quality-review.json", - "sha256": "sha256:bytes:ce1d21e1a50c1861198590eda8f52dde82afccaceae93500fbaf612e1b1a2426", + "path": "template-gallery/reviews/joyimage_herbarium_rainy_porthole.quality-review.json", + "sha256": "sha256:bytes:ee32c1cb4403abeab273a797da25cfc3d6930f9eac84785b905ed12d07f5b567", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/kandinsky-community/kandinsky-3/tree/bf79e6c219da8a94abb50235fdc4567eb8fb4632", - "sourceRevision": "kandinsky-community/kandinsky-3@bf79e6c219da8a94abb50235fdc4567eb8fb4632", + "sourceUrl": "https://huggingface.co/jdopensource/JoyAI-Image-Edit-Diffusers/tree/4b41fb25d961f37668750178ccbb380da326201c", + "sourceRevision": "jdopensource/JoyAI-Image-Edit-Diffusers@4b41fb25d961f37668750178ccbb380da326201c", "sourceLicense": "MoDiff-authored Gallery metadata", "modelTerms": [ - "Publisher model terms at https://huggingface.co/kandinsky-community/kandinsky-3/tree/bf79e6c219da8a94abb50235fdc4567eb8fb4632" + "Publisher model terms at https://huggingface.co/jdopensource/JoyAI-Image-Edit-Diffusers/tree/4b41fb25d961f37668750178ccbb380da326201c" ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "kandinsky-community/kandinsky-3@bf79e6c219da8a94abb50235fdc4567eb8fb4632 https://huggingface.co/kandinsky-community/kandinsky-3/tree/bf79e6c219da8a94abb50235fdc4567eb8fb4632" + "jdopensource/JoyAI-Image-Edit-Diffusers@4b41fb25d961f37668750178ccbb380da326201c https://huggingface.co/jdopensource/JoyAI-Image-Edit-Diffusers/tree/4b41fb25d961f37668750178ccbb380da326201c" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", - "reviewedAt": "2026-11-24", + "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "d216f065bdc316366c6183592f657bcfbbd7cb05acd0e510c6b3877fe56bcec2", - "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped six saved cases with model terms retained.", - "provenanceTemplateId": "kandinsky3_ginkgo_on_slate" + "humanApprovalPacketSHA256": "4fc7c52588176cb1f6ba6d699d08741b2986ea71ea87bac650d261716a10b24c", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "joyimage_herbarium_rainy_porthole" }, { - "path": "template-gallery/reviews/kandinsky3_ginkgo_on_slate.retained-template-provenance.json", - "sha256": "sha256:bytes:5be139ba899439bf234dee3274572a5062dbfdbb0fbf6ba12f23b64ce47a2fc3", + "path": "template-gallery/reviews/joyimage_herbarium_rainy_porthole.retained-template-provenance.json", + "sha256": "sha256:bytes:9dea78e9b2060e8253be0d3862ab101885f5c8ad55f66d0d2424943e634bcc03", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/kandinsky-community/kandinsky-3/tree/bf79e6c219da8a94abb50235fdc4567eb8fb4632", - "sourceRevision": "kandinsky-community/kandinsky-3@bf79e6c219da8a94abb50235fdc4567eb8fb4632", + "sourceUrl": "https://huggingface.co/jdopensource/JoyAI-Image-Edit-Diffusers/tree/4b41fb25d961f37668750178ccbb380da326201c", + "sourceRevision": "jdopensource/JoyAI-Image-Edit-Diffusers@4b41fb25d961f37668750178ccbb380da326201c", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "Publisher model terms at https://huggingface.co/jdopensource/JoyAI-Image-Edit-Diffusers/tree/4b41fb25d961f37668750178ccbb380da326201c" + ], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "jdopensource/JoyAI-Image-Edit-Diffusers@4b41fb25d961f37668750178ccbb380da326201c https://huggingface.co/jdopensource/JoyAI-Image-Edit-Diffusers/tree/4b41fb25d961f37668750178ccbb380da326201c" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "4fc7c52588176cb1f6ba6d699d08741b2986ea71ea87bac650d261716a10b24c", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "joyimage_herbarium_rainy_porthole" + }, + { + "path": "template-gallery/reviews/kandinsky3_ginkgo_on_slate.original-provenance.json", + "sha256": "sha256:bytes:31189848b609ec308b9bd427975d0b09d502ff7583321e88a7ba813f5a968db8", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/kandinsky-community/kandinsky-3/tree/bf79e6c219da8a94abb50235fdc4567eb8fb4632", + "sourceRevision": "kandinsky-community/kandinsky-3@bf79e6c219da8a94abb50235fdc4567eb8fb4632", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "Publisher model terms at https://huggingface.co/kandinsky-community/kandinsky-3/tree/bf79e6c219da8a94abb50235fdc4567eb8fb4632" + ], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "kandinsky-community/kandinsky-3@bf79e6c219da8a94abb50235fdc4567eb8fb4632 https://huggingface.co/kandinsky-community/kandinsky-3/tree/bf79e6c219da8a94abb50235fdc4567eb8fb4632" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-24", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "d216f065bdc316366c6183592f657bcfbbd7cb05acd0e510c6b3877fe56bcec2", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped six saved cases with model terms retained.", + "provenanceTemplateId": "kandinsky3_ginkgo_on_slate" + }, + { + "path": "template-gallery/reviews/kandinsky3_ginkgo_on_slate.original-review.json", + "sha256": "sha256:bytes:3d23527148ae151f8b05b623d2739f79ab4bcd37202db7b331e391bdf7b6bedf", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/kandinsky-community/kandinsky-3/tree/bf79e6c219da8a94abb50235fdc4567eb8fb4632", + "sourceRevision": "kandinsky-community/kandinsky-3@bf79e6c219da8a94abb50235fdc4567eb8fb4632", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "Publisher model terms at https://huggingface.co/kandinsky-community/kandinsky-3/tree/bf79e6c219da8a94abb50235fdc4567eb8fb4632" + ], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "kandinsky-community/kandinsky-3@bf79e6c219da8a94abb50235fdc4567eb8fb4632 https://huggingface.co/kandinsky-community/kandinsky-3/tree/bf79e6c219da8a94abb50235fdc4567eb8fb4632" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-24", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "d216f065bdc316366c6183592f657bcfbbd7cb05acd0e510c6b3877fe56bcec2", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped six saved cases with model terms retained.", + "provenanceTemplateId": "kandinsky3_ginkgo_on_slate" + }, + { + "path": "template-gallery/reviews/kandinsky3_ginkgo_on_slate.quality-review.json", + "sha256": "sha256:bytes:ce1d21e1a50c1861198590eda8f52dde82afccaceae93500fbaf612e1b1a2426", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/kandinsky-community/kandinsky-3/tree/bf79e6c219da8a94abb50235fdc4567eb8fb4632", + "sourceRevision": "kandinsky-community/kandinsky-3@bf79e6c219da8a94abb50235fdc4567eb8fb4632", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "Publisher model terms at https://huggingface.co/kandinsky-community/kandinsky-3/tree/bf79e6c219da8a94abb50235fdc4567eb8fb4632" + ], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "kandinsky-community/kandinsky-3@bf79e6c219da8a94abb50235fdc4567eb8fb4632 https://huggingface.co/kandinsky-community/kandinsky-3/tree/bf79e6c219da8a94abb50235fdc4567eb8fb4632" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-24", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "d216f065bdc316366c6183592f657bcfbbd7cb05acd0e510c6b3877fe56bcec2", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped six saved cases with model terms retained.", + "provenanceTemplateId": "kandinsky3_ginkgo_on_slate" + }, + { + "path": "template-gallery/reviews/kandinsky3_ginkgo_on_slate.retained-template-provenance.json", + "sha256": "sha256:bytes:5be139ba899439bf234dee3274572a5062dbfdbb0fbf6ba12f23b64ce47a2fc3", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/kandinsky-community/kandinsky-3/tree/bf79e6c219da8a94abb50235fdc4567eb8fb4632", + "sourceRevision": "kandinsky-community/kandinsky-3@bf79e6c219da8a94abb50235fdc4567eb8fb4632", "sourceLicense": "MoDiff-authored Gallery metadata", "modelTerms": [ "Publisher model terms at https://huggingface.co/kandinsky-community/kandinsky-3/tree/bf79e6c219da8a94abb50235fdc4567eb8fb4632" @@ -12315,6 +12300,114 @@ "publishDecision": "approved", "holdReason": null }, + { + "path": "template-gallery/reviews/longcat_florist_end_of_lane.original-provenance.json", + "sha256": "sha256:bytes:31fa3b13f1a585031ab220cb3a1039a9e7c2ed40757801c56cbcc846125ac7b8", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/meituan-longcat/LongCat-Image/tree/d2ea50b79a930074c37b9b97ce45e3b2ea8cf4d8", + "sourceRevision": "meituan-longcat/LongCat-Image@d2ea50b79a930074c37b9b97ce45e3b2ea8cf4d8", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "Publisher model terms at https://huggingface.co/meituan-longcat/LongCat-Image/tree/d2ea50b79a930074c37b9b97ce45e3b2ea8cf4d8" + ], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "meituan-longcat/LongCat-Image@d2ea50b79a930074c37b9b97ce45e3b2ea8cf4d8 https://huggingface.co/meituan-longcat/LongCat-Image/tree/d2ea50b79a930074c37b9b97ce45e3b2ea8cf4d8" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "4fc7c52588176cb1f6ba6d699d08741b2986ea71ea87bac650d261716a10b24c", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "longcat_florist_end_of_lane" + }, + { + "path": "template-gallery/reviews/longcat_florist_end_of_lane.original-review.json", + "sha256": "sha256:bytes:adc8b682f80f09677b97fa57651d336d8b966f7e19586256e6559505f57f9cfc", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/meituan-longcat/LongCat-Image/tree/d2ea50b79a930074c37b9b97ce45e3b2ea8cf4d8", + "sourceRevision": "meituan-longcat/LongCat-Image@d2ea50b79a930074c37b9b97ce45e3b2ea8cf4d8", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "Publisher model terms at https://huggingface.co/meituan-longcat/LongCat-Image/tree/d2ea50b79a930074c37b9b97ce45e3b2ea8cf4d8" + ], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "meituan-longcat/LongCat-Image@d2ea50b79a930074c37b9b97ce45e3b2ea8cf4d8 https://huggingface.co/meituan-longcat/LongCat-Image/tree/d2ea50b79a930074c37b9b97ce45e3b2ea8cf4d8" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "4fc7c52588176cb1f6ba6d699d08741b2986ea71ea87bac650d261716a10b24c", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "longcat_florist_end_of_lane" + }, + { + "path": "template-gallery/reviews/longcat_florist_end_of_lane.quality-review.json", + "sha256": "sha256:bytes:c2b07ec9dccd4ac97f229ff2c836b5215377c240b8455db32a4f72f0313f7a4c", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/meituan-longcat/LongCat-Image/tree/d2ea50b79a930074c37b9b97ce45e3b2ea8cf4d8", + "sourceRevision": "meituan-longcat/LongCat-Image@d2ea50b79a930074c37b9b97ce45e3b2ea8cf4d8", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "Publisher model terms at https://huggingface.co/meituan-longcat/LongCat-Image/tree/d2ea50b79a930074c37b9b97ce45e3b2ea8cf4d8" + ], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "meituan-longcat/LongCat-Image@d2ea50b79a930074c37b9b97ce45e3b2ea8cf4d8 https://huggingface.co/meituan-longcat/LongCat-Image/tree/d2ea50b79a930074c37b9b97ce45e3b2ea8cf4d8" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "4fc7c52588176cb1f6ba6d699d08741b2986ea71ea87bac650d261716a10b24c", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "longcat_florist_end_of_lane" + }, + { + "path": "template-gallery/reviews/longcat_florist_end_of_lane.retained-template-provenance.json", + "sha256": "sha256:bytes:14da3c1cbc2f7ea57b4ec3d84f1a78d72a4e22b62ce0e0d757db78297c3fbed9", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/meituan-longcat/LongCat-Image/tree/d2ea50b79a930074c37b9b97ce45e3b2ea8cf4d8", + "sourceRevision": "meituan-longcat/LongCat-Image@d2ea50b79a930074c37b9b97ce45e3b2ea8cf4d8", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "Publisher model terms at https://huggingface.co/meituan-longcat/LongCat-Image/tree/d2ea50b79a930074c37b9b97ce45e3b2ea8cf4d8" + ], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "meituan-longcat/LongCat-Image@d2ea50b79a930074c37b9b97ce45e3b2ea8cf4d8 https://huggingface.co/meituan-longcat/LongCat-Image/tree/d2ea50b79a930074c37b9b97ce45e3b2ea8cf4d8" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "4fc7c52588176cb1f6ba6d699d08741b2986ea71ea87bac650d261716a10b24c", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "longcat_florist_end_of_lane" + }, { "path": "template-gallery/reviews/longcat_last_tram_at_dusk.original-provenance.json", "sha256": "sha256:bytes:34b322e643eacf47f4c02019564cb85720cb3b9b8334d524e47226d60c4faa60", @@ -15094,9 +15187,7 @@ "sourceUrl": "https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14", "sourceRevision": "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14", "sourceLicense": "MoDiff-authored Gallery metadata", - "modelTerms": [ - "CreativeML Open RAIL-M at the pinned Stable Diffusion v1.5 revision." - ], + "modelTerms": ["CreativeML Open RAIL-M at the pinned Stable Diffusion v1.5 revision."], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], @@ -15121,9 +15212,7 @@ "sourceUrl": "https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14", "sourceRevision": "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14", "sourceLicense": "MoDiff-authored Gallery metadata", - "modelTerms": [ - "CreativeML Open RAIL-M at the pinned Stable Diffusion v1.5 revision." - ], + "modelTerms": ["CreativeML Open RAIL-M at the pinned Stable Diffusion v1.5 revision."], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], @@ -15148,9 +15237,7 @@ "sourceUrl": "https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14", "sourceRevision": "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14", "sourceLicense": "MoDiff-authored Gallery metadata", - "modelTerms": [ - "CreativeML Open RAIL-M at the pinned Stable Diffusion v1.5 revision." - ], + "modelTerms": ["CreativeML Open RAIL-M at the pinned Stable Diffusion v1.5 revision."], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], @@ -15175,9 +15262,7 @@ "sourceUrl": "https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14", "sourceRevision": "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14", "sourceLicense": "MoDiff-authored Gallery metadata", - "modelTerms": [ - "CreativeML Open RAIL-M at the pinned Stable Diffusion v1.5 revision." - ], + "modelTerms": ["CreativeML Open RAIL-M at the pinned Stable Diffusion v1.5 revision."], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], @@ -15346,6 +15431,114 @@ "assetLicense": "Apache-2.0", "provenanceTemplateId": "sana_sprint_monochrome_tiger" }, + { + "path": "template-gallery/reviews/sana_tidal_pool_on_black_basalt.original-provenance.json", + "sha256": "sha256:bytes:464b0cb9e776e21bd3b8dfbefa83c8b984bd76684dee47aec59943ff0e6b335a", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/Efficient-Large-Model/Sana_600M_1024px_diffusers/tree/28f3af7689de15f3883d5863059a2fca0aa9b829", + "sourceRevision": "Efficient-Large-Model/Sana_600M_1024px_diffusers@28f3af7689de15f3883d5863059a2fca0aa9b829", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "https://huggingface.co/Efficient-Large-Model/Sana_600M_1024px_diffusers/tree/28f3af7689de15f3883d5863059a2fca0aa9b829" + ], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "Efficient-Large-Model/Sana_600M_1024px_diffusers@28f3af7689de15f3883d5863059a2fca0aa9b829 https://huggingface.co/Efficient-Large-Model/Sana_600M_1024px_diffusers/tree/28f3af7689de15f3883d5863059a2fca0aa9b829" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "4fc7c52588176cb1f6ba6d699d08741b2986ea71ea87bac650d261716a10b24c", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "sana_tidal_pool_on_black_basalt" + }, + { + "path": "template-gallery/reviews/sana_tidal_pool_on_black_basalt.original-review.json", + "sha256": "sha256:bytes:822c6a8b3d52524742bfe5987264df6c10f357ae3c975d695a89cf0d5b9e762a", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/Efficient-Large-Model/Sana_600M_1024px_diffusers/tree/28f3af7689de15f3883d5863059a2fca0aa9b829", + "sourceRevision": "Efficient-Large-Model/Sana_600M_1024px_diffusers@28f3af7689de15f3883d5863059a2fca0aa9b829", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "https://huggingface.co/Efficient-Large-Model/Sana_600M_1024px_diffusers/tree/28f3af7689de15f3883d5863059a2fca0aa9b829" + ], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "Efficient-Large-Model/Sana_600M_1024px_diffusers@28f3af7689de15f3883d5863059a2fca0aa9b829 https://huggingface.co/Efficient-Large-Model/Sana_600M_1024px_diffusers/tree/28f3af7689de15f3883d5863059a2fca0aa9b829" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "4fc7c52588176cb1f6ba6d699d08741b2986ea71ea87bac650d261716a10b24c", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "sana_tidal_pool_on_black_basalt" + }, + { + "path": "template-gallery/reviews/sana_tidal_pool_on_black_basalt.quality-review.json", + "sha256": "sha256:bytes:1dcfd72e9a8ac1f33c8ce5935e64598e279ddca468c1060e266376a8b7d89552", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/Efficient-Large-Model/Sana_600M_1024px_diffusers/tree/28f3af7689de15f3883d5863059a2fca0aa9b829", + "sourceRevision": "Efficient-Large-Model/Sana_600M_1024px_diffusers@28f3af7689de15f3883d5863059a2fca0aa9b829", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "https://huggingface.co/Efficient-Large-Model/Sana_600M_1024px_diffusers/tree/28f3af7689de15f3883d5863059a2fca0aa9b829" + ], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "Efficient-Large-Model/Sana_600M_1024px_diffusers@28f3af7689de15f3883d5863059a2fca0aa9b829 https://huggingface.co/Efficient-Large-Model/Sana_600M_1024px_diffusers/tree/28f3af7689de15f3883d5863059a2fca0aa9b829" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "4fc7c52588176cb1f6ba6d699d08741b2986ea71ea87bac650d261716a10b24c", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "sana_tidal_pool_on_black_basalt" + }, + { + "path": "template-gallery/reviews/sana_tidal_pool_on_black_basalt.retained-template-provenance.json", + "sha256": "sha256:bytes:66af6aa83b431b3f41da146254ebc0cc75190e50fe626ce635fc20a12f2c7502", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/Efficient-Large-Model/Sana_600M_1024px_diffusers/tree/28f3af7689de15f3883d5863059a2fca0aa9b829", + "sourceRevision": "Efficient-Large-Model/Sana_600M_1024px_diffusers@28f3af7689de15f3883d5863059a2fca0aa9b829", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "https://huggingface.co/Efficient-Large-Model/Sana_600M_1024px_diffusers/tree/28f3af7689de15f3883d5863059a2fca0aa9b829" + ], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "Efficient-Large-Model/Sana_600M_1024px_diffusers@28f3af7689de15f3883d5863059a2fca0aa9b829 https://huggingface.co/Efficient-Large-Model/Sana_600M_1024px_diffusers/tree/28f3af7689de15f3883d5863059a2fca0aa9b829" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "4fc7c52588176cb1f6ba6d699d08741b2986ea71ea87bac650d261716a10b24c", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "sana_tidal_pool_on_black_basalt" + }, { "path": "template-gallery/reviews/sd15_canny_guided_green_glass.original-provenance.json", "sha256": "sha256:bytes:4819d64b35e84d822483b4edf58c0d2a82ca612989a5f283763eff90e1c3dcc4", @@ -17842,9 +18035,7 @@ "reviewedBy": "SOURAV DAS", "reviewedAt": "2026-08-03", "reviewClass": "standard-human-attestation", - "consumingTemplateIds": [ - "wan_vace_outpaint_reframe" - ] + "consumingTemplateIds": ["wan_vace_outpaint_reframe"] }, { "path": "template-gallery/runtime-inputs/assets/124415536a8071baccf8821232ad79a0a8ceec30ae62617c91a8d7a0b59d0a8c.webp", @@ -17867,9 +18058,7 @@ "reviewedBy": "SOURAV DAS", "reviewedAt": "2026-08-03", "reviewClass": "standard-human-attestation", - "consumingTemplateIds": [ - "qwen_logo_texture" - ] + "consumingTemplateIds": ["qwen_logo_texture"] }, { "path": "template-gallery/runtime-inputs/assets/16f6ea27b5d7cfaed106e2e694572bbe92b7c7e2a43835b3f4313a748f510f74.png", @@ -17892,9 +18081,7 @@ "reviewedBy": "SOURAV DAS", "reviewedAt": "2026-08-03", "reviewClass": "standard-human-attestation", - "consumingTemplateIds": [ - "flux_fill_inpaint" - ] + "consumingTemplateIds": ["flux_fill_inpaint"] }, { "path": "template-gallery/runtime-inputs/assets/1d993540e914f0e2d230f1133b57ae14bb837829237a53c89613fcdef6699995.webp", @@ -17917,9 +18104,7 @@ "reviewedBy": "SOURAV DAS", "reviewedAt": "2026-08-03", "reviewClass": "standard-human-attestation", - "consumingTemplateIds": [ - "flux2_klein_multi_reference" - ] + "consumingTemplateIds": ["flux2_klein_multi_reference"] }, { "path": "template-gallery/runtime-inputs/assets/218d83e0706fec201097582a6e5e00dc79f2d7d1ecb0badba2214c5ecaae1866.mp4", @@ -17942,9 +18127,7 @@ "reviewedBy": "SOURAV DAS", "reviewedAt": "2026-08-03", "reviewClass": "standard-human-attestation", - "consumingTemplateIds": [ - "wan_vace_video_to_video" - ] + "consumingTemplateIds": ["wan_vace_video_to_video"] }, { "path": "template-gallery/runtime-inputs/assets/233d1b3a123fceb4f3b68d2d3a9f5b4129627073b8235fe7248ae6ebdeecb554.mp4", @@ -17970,9 +18153,7 @@ "reviewedBy": "SOURAV DAS", "reviewedAt": "2026-08-03", "reviewClass": "standard-human-attestation", - "consumingTemplateIds": [ - "ltx_video_video_to_video" - ] + "consumingTemplateIds": ["ltx_video_video_to_video"] }, { "path": "template-gallery/runtime-inputs/assets/283b1cfb32b15fe6b31a29dce1f2b96026c1ad0826bf3f24aebebf4b6f9a4f07.webp", @@ -17995,9 +18176,7 @@ "reviewedBy": "SOURAV DAS", "reviewedAt": "2026-08-03", "reviewClass": "standard-human-attestation", - "consumingTemplateIds": [ - "reference_fusion" - ] + "consumingTemplateIds": ["reference_fusion"] }, { "path": "template-gallery/runtime-inputs/assets/29722ed072feec11cd36adce7b6cb48483bff3f05776048b93f960b5554ab533.png", @@ -18020,9 +18199,7 @@ "reviewedBy": "SOURAV DAS", "reviewedAt": "2026-08-03", "reviewClass": "standard-human-attestation", - "consumingTemplateIds": [ - "qwen_inpaint_mask_draft" - ] + "consumingTemplateIds": ["qwen_inpaint_mask_draft"] }, { "path": "template-gallery/runtime-inputs/assets/2e0ec8892660785e322468d0153fd2dadf7a4d920fce2d7d4a0b686a8fe8515d.webp", @@ -18045,9 +18222,7 @@ "reviewedBy": "SOURAV DAS", "reviewedAt": "2026-08-03", "reviewClass": "standard-human-attestation", - "consumingTemplateIds": [ - "flux_redux_edit" - ] + "consumingTemplateIds": ["flux_redux_edit"] }, { "path": "template-gallery/runtime-inputs/assets/2e202069a584ee5ada91e2deaea6bf7b92a94f4816e669e695d7cb64d5a1cb0e.png", @@ -18070,9 +18245,7 @@ "reviewedBy": "SOURAV DAS", "reviewedAt": "2026-08-03", "reviewClass": "standard-human-attestation", - "consumingTemplateIds": [ - "flux_depth_control" - ] + "consumingTemplateIds": ["flux_depth_control"] }, { "creatorOrRightsholder": "MoDiff project maintainers, subject to original synthetic source terms", @@ -18121,9 +18294,7 @@ "reviewedBy": "SOURAV DAS", "reviewedAt": "2026-08-03", "reviewClass": "standard-human-attestation", - "consumingTemplateIds": [ - "ace_step_audio_continuation" - ] + "consumingTemplateIds": ["ace_step_audio_continuation"] }, { "path": "template-gallery/runtime-inputs/assets/38a6f334f89048effe579fc473d6fb38437eb579f324ac399d1ec0f6509f74d9.webp", @@ -18146,9 +18317,7 @@ "reviewedBy": "SOURAV DAS", "reviewedAt": "2026-08-03", "reviewClass": "standard-human-attestation", - "consumingTemplateIds": [ - "ltx_video_long_showcase" - ] + "consumingTemplateIds": ["ltx_video_long_showcase"] }, { "path": "template-gallery/runtime-inputs/assets/39428f00f67b49fc6d624617df2964c9f869de21e7e188ef5b231ae04c4aeacc.webp", @@ -18171,10 +18340,7 @@ "reviewedBy": "SOURAV DAS", "reviewedAt": "2026-08-03", "reviewClass": "standard-human-attestation", - "consumingTemplateIds": [ - "qwen_multi_reference_product", - "reference_fusion" - ] + "consumingTemplateIds": ["qwen_multi_reference_product", "reference_fusion"] }, { "path": "template-gallery/runtime-inputs/assets/3c4d3a7a58a7be7f8d8920106dcfea30e28b4af115ce406bcf5b16cec4b4297a.mp4", @@ -18197,9 +18363,7 @@ "reviewedBy": "SOURAV DAS", "reviewedAt": "2026-08-03", "reviewClass": "standard-human-attestation", - "consumingTemplateIds": [ - "wan_vace_outpaint_reframe" - ] + "consumingTemplateIds": ["wan_vace_outpaint_reframe"] }, { "creatorOrRightsholder": "MoDiff project maintainers, subject to original synthetic source terms", @@ -18248,9 +18412,7 @@ "reviewedBy": "SOURAV DAS", "reviewedAt": "2026-08-03", "reviewClass": "standard-human-attestation", - "consumingTemplateIds": [ - "flux_control_canny" - ] + "consumingTemplateIds": ["flux_control_canny"] }, { "creatorOrRightsholder": "MoDiff project maintainers, subject to original synthetic source terms", @@ -18299,9 +18461,7 @@ "reviewedBy": "SOURAV DAS", "reviewedAt": "2026-08-03", "reviewClass": "standard-human-attestation", - "consumingTemplateIds": [ - "qwen_multi_reference_product" - ] + "consumingTemplateIds": ["qwen_multi_reference_product"] }, { "path": "template-gallery/runtime-inputs/assets/4b1b8d9e351abd437f2ffff90cc6a958160a87863ba4d8e85a0aa80a37e7a10e.webp", @@ -18324,9 +18484,7 @@ "reviewedBy": "SOURAV DAS", "reviewedAt": "2026-08-03", "reviewClass": "standard-human-attestation", - "consumingTemplateIds": [ - "qwen_character_angles" - ] + "consumingTemplateIds": ["qwen_character_angles"] }, { "path": "template-gallery/runtime-inputs/assets/4b800b6a362c9ad7755858a3ec2affbda8706c5a71578ced35b80432fd234741.webp", @@ -18349,9 +18507,7 @@ "reviewedBy": "SOURAV DAS", "reviewedAt": "2026-08-03", "reviewClass": "standard-human-attestation", - "consumingTemplateIds": [ - "flux_redux_multi_reference" - ] + "consumingTemplateIds": ["flux_redux_multi_reference"] }, { "creatorOrRightsholder": "MoDiff project maintainers, subject to original synthetic source terms", @@ -18400,9 +18556,7 @@ "reviewedBy": "SOURAV DAS", "reviewedAt": "2026-08-03", "reviewClass": "standard-human-attestation", - "consumingTemplateIds": [ - "ltx_video_multi_reference" - ] + "consumingTemplateIds": ["ltx_video_multi_reference"] }, { "path": "template-gallery/runtime-inputs/assets/6224e9ee47765858f2ec0c33679140d020cf3ad6e4fa2fa4557ef50f811aef0e.webp", @@ -18425,9 +18579,7 @@ "reviewedBy": "SOURAV DAS", "reviewedAt": "2026-08-03", "reviewClass": "standard-human-attestation", - "consumingTemplateIds": [ - "qwen_tile_extract" - ] + "consumingTemplateIds": ["qwen_tile_extract"] }, { "path": "template-gallery/runtime-inputs/assets/70c74691e2bcd7cdb352b7e64e5af5a1a7f01d77112d32a8edadc0060a95ef34.png", @@ -18450,9 +18602,7 @@ "reviewedBy": "maintainer (current user)", "reviewedAt": "2026-11-12", "reviewClass": "per-file-maintainer-accepted-native-three-registration", - "consumingTemplateIds": [ - "flux_kontext_multi_reference" - ], + "consumingTemplateIds": ["flux_kontext_multi_reference"], "derivedFromContentHash": "sha256:bytes:9f421cdc0fa80b3aae368bd3b20a8f6f05942ec461f88541f01aec5390468897", "publicationBasis": "Existing maintainer publication authorization and current explicit instruction to register these three accepted assets; no new ownership or rights quotation is fabricated.", "humanApprovalPacketSHA256": "69c6b3d9b0ea2fcca16ee538f6e75b414b7141658b74f10578758e61360f63fd" @@ -18478,9 +18628,7 @@ "reviewedBy": "SOURAV DAS", "reviewedAt": "2026-08-03", "reviewClass": "standard-human-attestation", - "consumingTemplateIds": [ - "ltx_video_multi_reference" - ] + "consumingTemplateIds": ["ltx_video_multi_reference"] }, { "path": "template-gallery/runtime-inputs/assets/799d82b016a108d4b6902500b4226afd5d2391f4a7b0693af75255425c943a5e.png", @@ -18503,9 +18651,7 @@ "reviewedBy": "SOURAV DAS", "reviewedAt": "2026-08-03", "reviewClass": "standard-human-attestation", - "consumingTemplateIds": [ - "flux_fill_outpaint" - ] + "consumingTemplateIds": ["flux_fill_outpaint"] }, { "path": "template-gallery/runtime-inputs/assets/7f1ea58485fa7802765b9fbbf0e6957e8607261c91669fdcc44cbed80c6fb309.webp", @@ -18528,9 +18674,7 @@ "reviewedBy": "SOURAV DAS", "reviewedAt": "2026-08-03", "reviewClass": "standard-human-attestation", - "consumingTemplateIds": [ - "flux_redux_multi_reference" - ] + "consumingTemplateIds": ["flux_redux_multi_reference"] }, { "path": "template-gallery/runtime-inputs/assets/862e292caa1759156fffde5cfccda8b97ec622514258f81986188cf63a836ea9.webp", @@ -18553,9 +18697,7 @@ "reviewedBy": "SOURAV DAS", "reviewedAt": "2026-08-03", "reviewClass": "standard-human-attestation", - "consumingTemplateIds": [ - "qwen_outpaint_draft" - ] + "consumingTemplateIds": ["qwen_outpaint_draft"] }, { "path": "template-gallery/runtime-inputs/assets/88a7ada5cb91a6ef86de0ff7c26c6b4683df25cc0baa18382371ce0748cd0bd6.webp", @@ -18578,9 +18720,7 @@ "reviewedBy": "SOURAV DAS", "reviewedAt": "2026-08-03", "reviewClass": "standard-human-attestation", - "consumingTemplateIds": [ - "ltx_video_long_showcase" - ] + "consumingTemplateIds": ["ltx_video_long_showcase"] }, { "creatorOrRightsholder": "MoDiff project maintainers, subject to original synthetic source terms", @@ -18629,10 +18769,7 @@ "reviewedBy": "SOURAV DAS", "reviewedAt": "2026-08-03", "reviewClass": "standard-human-attestation", - "consumingTemplateIds": [ - "ltx_video_image_to_video", - "ltx_video_long_showcase" - ] + "consumingTemplateIds": ["ltx_video_image_to_video", "ltx_video_long_showcase"] }, { "path": "template-gallery/runtime-inputs/assets/9328061557396ef591a9f4a6242abf1cdd61082846518726c3114f746ccedd63.webp", @@ -18655,9 +18792,7 @@ "reviewedBy": "SOURAV DAS", "reviewedAt": "2026-08-03", "reviewClass": "standard-human-attestation", - "consumingTemplateIds": [ - "qwen_logo_texture" - ] + "consumingTemplateIds": ["qwen_logo_texture"] }, { "path": "template-gallery/runtime-inputs/assets/965240cf250a9074a7adab394c76070674cf517bed42b6c4647112d17dec84de.webp", @@ -18680,9 +18815,7 @@ "reviewedBy": "SOURAV DAS", "reviewedAt": "2026-08-03", "reviewClass": "standard-human-attestation", - "consumingTemplateIds": [ - "qwen_layered_portrait" - ] + "consumingTemplateIds": ["qwen_layered_portrait"] }, { "path": "template-gallery/runtime-inputs/assets/9f9f9685db5e9f8e1c162a0515151b03912c84777727b38682b65839db501ae6.webp", @@ -18705,9 +18838,7 @@ "reviewedBy": "SOURAV DAS", "reviewedAt": "2026-08-03", "reviewClass": "standard-human-attestation", - "consumingTemplateIds": [ - "qwen_inpaint_object_replace" - ] + "consumingTemplateIds": ["qwen_inpaint_object_replace"] }, { "path": "template-gallery/runtime-inputs/assets/a2f8ac6f5937d6e618b48ce9947153b8233ff7a82dcf67f28766d20b9917d730.webp", @@ -18730,9 +18861,7 @@ "reviewedBy": "SOURAV DAS", "reviewedAt": "2026-08-03", "reviewClass": "standard-human-attestation", - "consumingTemplateIds": [ - "qwen_inpaint_mask_draft" - ] + "consumingTemplateIds": ["qwen_inpaint_mask_draft"] }, { "path": "template-gallery/runtime-inputs/assets/a6d165bd87e2c57ab8cf71fa15de9d8724fccf5782c16c34c25dc77934751676.webp", @@ -18755,9 +18884,7 @@ "reviewedBy": "SOURAV DAS", "reviewedAt": "2026-08-03", "reviewClass": "standard-human-attestation", - "consumingTemplateIds": [ - "qwen_edit_strength_sweep" - ] + "consumingTemplateIds": ["qwen_edit_strength_sweep"] }, { "path": "template-gallery/runtime-inputs/assets/a7b61f36043354596eb01e702474300b222cb32e304bcf259506cad03917ce9b.webp", @@ -18808,10 +18935,7 @@ "reviewedBy": "SOURAV DAS", "reviewedAt": "2026-08-03", "reviewClass": "standard-human-attestation", - "consumingTemplateIds": [ - "qwen_control_image_layout", - "qwen_packaging_dieline" - ] + "consumingTemplateIds": ["qwen_control_image_layout", "qwen_packaging_dieline"] }, { "path": "template-gallery/runtime-inputs/assets/b7c221b367738177e32fece56067d743df96282a6ccb2afd040ee89ea0a8f678.webp", @@ -18834,9 +18958,7 @@ "reviewedBy": "SOURAV DAS", "reviewedAt": "2026-08-03", "reviewClass": "standard-human-attestation", - "consumingTemplateIds": [ - "flux_fill_inpaint" - ] + "consumingTemplateIds": ["flux_fill_inpaint"] }, { "path": "template-gallery/runtime-inputs/assets/b9909f4cbff8af6e97be6d1e4923c67687eee41dbd64b051a018866781da12ab.webp", @@ -18859,9 +18981,7 @@ "reviewedBy": "SOURAV DAS", "reviewedAt": "2026-08-03", "reviewClass": "standard-human-attestation", - "consumingTemplateIds": [ - "character_edit" - ] + "consumingTemplateIds": ["character_edit"] }, { "path": "template-gallery/runtime-inputs/assets/bf4dbaa55b83b19ca56c691e9d1a10d3b838ff2fec926aaea6b526561c68f8e6.png", @@ -18884,9 +19004,7 @@ "reviewedBy": "SOURAV DAS", "reviewedAt": "2026-08-03", "reviewClass": "standard-human-attestation", - "consumingTemplateIds": [ - "flux_fill_outpaint" - ] + "consumingTemplateIds": ["flux_fill_outpaint"] }, { "path": "template-gallery/runtime-inputs/assets/c810699838c636767d2a5b25fb457df94a4b76a70da9a77e77009681779acbf2.webp", @@ -18909,9 +19027,7 @@ "reviewedBy": "SOURAV DAS", "reviewedAt": "2026-08-03", "reviewClass": "standard-human-attestation", - "consumingTemplateIds": [ - "ltx_video_long_showcase" - ] + "consumingTemplateIds": ["ltx_video_long_showcase"] }, { "path": "template-gallery/runtime-inputs/assets/d49908e24c58d144f4264f4028cb0f7f2e72fb02b315443fd021715ebed1e737.webp", @@ -18934,9 +19050,7 @@ "reviewedBy": "SOURAV DAS", "reviewedAt": "2026-08-03", "reviewClass": "standard-human-attestation", - "consumingTemplateIds": [ - "ltx_video_long_showcase" - ] + "consumingTemplateIds": ["ltx_video_long_showcase"] }, { "path": "template-gallery/runtime-inputs/assets/d5ba3943d6c0a264860ba0cde18d87e2d9554a3f7328308f4d771e082a9e0c24.png", @@ -18959,9 +19073,7 @@ "reviewedBy": "SOURAV DAS", "reviewedAt": "2026-08-03", "reviewClass": "standard-human-attestation", - "consumingTemplateIds": [ - "flux2_klein_edit" - ] + "consumingTemplateIds": ["flux2_klein_edit"] }, { "path": "template-gallery/runtime-inputs/assets/d86b921f1be36360b5b660b8a5b9d0e9165e888be8a06fe2d8f362e87de40429.mp4", @@ -18984,9 +19096,7 @@ "reviewedBy": "SOURAV DAS", "reviewedAt": "2026-08-03", "reviewClass": "standard-human-attestation", - "consumingTemplateIds": [ - "wan_vace_video_color_grade" - ] + "consumingTemplateIds": ["wan_vace_video_color_grade"] }, { "path": "template-gallery/runtime-inputs/assets/d898e00f3be4b28e237f71acf8024ad3715a657e1fcf3aeaf57279468dff7a76.webp", @@ -19009,9 +19119,7 @@ "reviewedBy": "SOURAV DAS", "reviewedAt": "2026-08-03", "reviewClass": "standard-human-attestation", - "consumingTemplateIds": [ - "qwen_outpaint_aspect_template" - ] + "consumingTemplateIds": ["qwen_outpaint_aspect_template"] }, { "path": "template-gallery/runtime-inputs/assets/ddaccd06100d51494e5aaaecedab7b27eaeeda5290d453498d3e1cb9460ad474.webp", @@ -19034,9 +19142,7 @@ "reviewedBy": "SOURAV DAS", "reviewedAt": "2026-08-03", "reviewClass": "standard-human-attestation", - "consumingTemplateIds": [ - "ltx_video_long_showcase" - ] + "consumingTemplateIds": ["ltx_video_long_showcase"] }, { "path": "template-gallery/runtime-inputs/assets/e07d05a658d361b6d28af62bcccfaeba9254507467dae1c5839efd546fed96a7.wav", @@ -19059,10 +19165,7 @@ "reviewedBy": "SOURAV DAS", "reviewedAt": "2026-08-03", "reviewClass": "standard-human-attestation", - "consumingTemplateIds": [ - "ace_step_audio_repaint", - "ace_step_audio_variation" - ] + "consumingTemplateIds": ["ace_step_audio_repaint", "ace_step_audio_variation"] }, { "path": "template-gallery/runtime-inputs/assets/e0ab22f77f5d966d7868f8950f79702dc6d156d0eaef3e06205097558d5c5bb2.webp", @@ -19085,9 +19188,7 @@ "reviewedBy": "SOURAV DAS", "reviewedAt": "2026-08-03", "reviewClass": "standard-human-attestation", - "consumingTemplateIds": [ - "qwen_product_ad_composite" - ] + "consumingTemplateIds": ["qwen_product_ad_composite"] }, { "path": "template-gallery/runtime-inputs/assets/e0f19676addbba6fe954711c235878ef43495e8066b84ed70b5c240a8512b026.mp4", @@ -19110,9 +19211,7 @@ "reviewedBy": "SOURAV DAS", "reviewedAt": "2026-08-03", "reviewClass": "standard-human-attestation", - "consumingTemplateIds": [ - "wan_vace_grayscale_control" - ] + "consumingTemplateIds": ["wan_vace_grayscale_control"] }, { "path": "template-gallery/runtime-inputs/assets/e14e0fb4bccace254e3430bbddd49728980e5445b988eff1ae8164f135d1cc8d.png", @@ -19135,9 +19234,7 @@ "reviewedBy": "SOURAV DAS", "reviewedAt": "2026-08-03", "reviewClass": "standard-human-attestation", - "consumingTemplateIds": [ - "qwen_inpaint_object_replace" - ] + "consumingTemplateIds": ["qwen_inpaint_object_replace"] }, { "creatorOrRightsholder": "MoDiff project maintainers, subject to original synthetic source terms", @@ -19186,9 +19283,7 @@ "reviewedBy": "SOURAV DAS", "reviewedAt": "2026-08-03", "reviewClass": "standard-human-attestation", - "consumingTemplateIds": [ - "qwen_edit_plus_single_image" - ] + "consumingTemplateIds": ["qwen_edit_plus_single_image"] }, { "path": "template-gallery/runtime-inputs/assets/f791a809c0df307cd7dafa8c54ae86bbe4c53d73afdacb2183ff8cdbeac994c2.webp", @@ -19211,9 +19306,7 @@ "reviewedBy": "SOURAV DAS", "reviewedAt": "2026-08-03", "reviewClass": "standard-human-attestation", - "consumingTemplateIds": [ - "qwen_product_relight" - ] + "consumingTemplateIds": ["qwen_product_relight"] }, { "creatorOrRightsholder": "MoDiff project maintainers, subject to original synthetic source terms", @@ -19262,9 +19355,7 @@ "reviewedBy": "SOURAV DAS", "reviewedAt": "2026-08-03", "reviewClass": "standard-human-attestation", - "consumingTemplateIds": [ - "flux2_klein_multi_reference" - ] + "consumingTemplateIds": ["flux2_klein_multi_reference"] }, { "creatorOrRightsholder": "MoDiff project maintainers, subject to original synthetic source terms", @@ -19371,6 +19462,33 @@ "assetLicense": "MoDiff-Gallery-Restricted-1.0", "provenanceTemplateId": "sana_sprint_monochrome_tiger" }, + { + "path": "template-gallery/sana_tidal_pool_on_black_basalt.webp", + "sha256": "sha256:bytes:4d7f257b35ebd4a7c0e087257a6320c9c427b5ea174ade60f044f0c4b631ce17", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Exact approved file captured from a saved MoDiff workflow", + "sourceUrl": "https://huggingface.co/Efficient-Large-Model/Sana_600M_1024px_diffusers/tree/28f3af7689de15f3883d5863059a2fca0aa9b829", + "sourceRevision": "Efficient-Large-Model/Sana_600M_1024px_diffusers@28f3af7689de15f3883d5863059a2fca0aa9b829", + "sourceLicense": "Maintainer-authorized file with publisher terms retained", + "modelTerms": [ + "https://huggingface.co/Efficient-Large-Model/Sana_600M_1024px_diffusers/tree/28f3af7689de15f3883d5863059a2fca0aa9b829" + ], + "aiGenerated": true, + "humanLikenessConsent": "synthetic", + "marks": [], + "requiredAttribution": [ + "Efficient-Large-Model/Sana_600M_1024px_diffusers@28f3af7689de15f3883d5863059a2fca0aa9b829 https://huggingface.co/Efficient-Large-Model/Sana_600M_1024px_diffusers/tree/28f3af7689de15f3883d5863059a2fca0aa9b829" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "4fc7c52588176cb1f6ba6d699d08741b2986ea71ea87bac650d261716a10b24c", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "sana_tidal_pool_on_black_basalt" + }, { "path": "template-gallery/sd15_canny_guided_green_glass.webp", "sha256": "sha256:bytes:d564a03d8e7b1a96083bd314b3700e828da2575b2b355cc574ebbcb17dd7a2d5", @@ -19651,9 +19769,7 @@ "sourceUrl": "https://huggingface.co/black-forest-labs/flux-3-image-klein/tree/8454017f9ebaada30c998fccd9f67a80c7580f68", "sourceRevision": "black-forest-labs/flux-3-image-klein@8454017f9ebaada30c998fccd9f67a80c7580f68", "sourceLicense": "Apache-2.0 project-authored metadata", - "modelTerms": [ - "black-forest-labs/flux-3-image-klein@8454017f9ebaada30c998fccd9f67a80c7580f68: Apache-2.0" - ], + "modelTerms": ["black-forest-labs/flux-3-image-klein@8454017f9ebaada30c998fccd9f67a80c7580f68: Apache-2.0"], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], @@ -19674,9 +19790,7 @@ "sourceUrl": "https://huggingface.co/black-forest-labs/flux-3-image-klein/tree/8454017f9ebaada30c998fccd9f67a80c7580f68", "sourceRevision": "black-forest-labs/flux-3-image-klein@8454017f9ebaada30c998fccd9f67a80c7580f68", "sourceLicense": "Original synthetic generation; underlying model terms retained", - "modelTerms": [ - "black-forest-labs/flux-3-image-klein@8454017f9ebaada30c998fccd9f67a80c7580f68: Apache-2.0" - ], + "modelTerms": ["black-forest-labs/flux-3-image-klein@8454017f9ebaada30c998fccd9f67a80c7580f68: Apache-2.0"], "aiGenerated": true, "humanLikenessConsent": "synthetic", "marks": [], @@ -19697,9 +19811,7 @@ "sourceUrl": "https://huggingface.co/black-forest-labs/flux-3-image-klein/tree/8454017f9ebaada30c998fccd9f67a80c7580f68", "sourceRevision": "black-forest-labs/flux-3-image-klein@8454017f9ebaada30c998fccd9f67a80c7580f68", "sourceLicense": "Apache-2.0 project-authored metadata", - "modelTerms": [ - "black-forest-labs/flux-3-image-klein@8454017f9ebaada30c998fccd9f67a80c7580f68: Apache-2.0" - ], + "modelTerms": ["black-forest-labs/flux-3-image-klein@8454017f9ebaada30c998fccd9f67a80c7580f68: Apache-2.0"], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], @@ -19720,14 +19832,10 @@ "sourceUrl": "https://huggingface.co/black-forest-labs/flux-3-image-klein/tree/8454017f9ebaada30c998fccd9f67a80c7580f68", "sourceRevision": "black-forest-labs/flux-3-image-klein@8454017f9ebaada30c998fccd9f67a80c7580f68", "sourceLicense": "Original synthetic generation; underlying model terms retained", - "modelTerms": [ - "black-forest-labs/flux-3-image-klein@8454017f9ebaada30c998fccd9f67a80c7580f68: Apache-2.0" - ], + "modelTerms": ["black-forest-labs/flux-3-image-klein@8454017f9ebaada30c998fccd9f67a80c7580f68: Apache-2.0"], "aiGenerated": true, "humanLikenessConsent": "synthetic", - "marks": [ - "Fictional MATERIAL ATLAS label" - ], + "marks": ["Fictional MATERIAL ATLAS label"], "requiredAttribution": [], "assetLicense": "Apache-2.0", "reviewedBy": "SOURAV DAS", @@ -19775,9 +19883,7 @@ ], "aiGenerated": true, "humanLikenessConsent": "synthetic", - "marks": [ - "Fictional MATERIAL ATLAS label" - ], + "marks": ["Fictional MATERIAL ATLAS label"], "requiredAttribution": [], "assetLicense": "Apache-2.0", "reviewedBy": "SOURAV DAS", @@ -19795,9 +19901,7 @@ "sourceUrl": "https://huggingface.co/black-forest-labs/flux-3-image-klein/tree/8454017f9ebaada30c998fccd9f67a80c7580f68", "sourceRevision": "black-forest-labs/flux-3-image-klein@8454017f9ebaada30c998fccd9f67a80c7580f68", "sourceLicense": "Apache-2.0 project-authored metadata", - "modelTerms": [ - "black-forest-labs/flux-3-image-klein@8454017f9ebaada30c998fccd9f67a80c7580f68: Apache-2.0" - ], + "modelTerms": ["black-forest-labs/flux-3-image-klein@8454017f9ebaada30c998fccd9f67a80c7580f68: Apache-2.0"], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], @@ -19818,14 +19922,10 @@ "sourceUrl": "https://huggingface.co/black-forest-labs/flux-3-image-klein/tree/8454017f9ebaada30c998fccd9f67a80c7580f68", "sourceRevision": "black-forest-labs/flux-3-image-klein@8454017f9ebaada30c998fccd9f67a80c7580f68", "sourceLicense": "Original synthetic generation; underlying model terms retained", - "modelTerms": [ - "black-forest-labs/flux-3-image-klein@8454017f9ebaada30c998fccd9f67a80c7580f68: Apache-2.0" - ], + "modelTerms": ["black-forest-labs/flux-3-image-klein@8454017f9ebaada30c998fccd9f67a80c7580f68: Apache-2.0"], "aiGenerated": true, "humanLikenessConsent": "synthetic", - "marks": [ - "Fictional MATERIAL ATLAS label" - ], + "marks": ["Fictional MATERIAL ATLAS label"], "requiredAttribution": [], "assetLicense": "Apache-2.0", "reviewedBy": "SOURAV DAS", @@ -19843,9 +19943,7 @@ "sourceUrl": "https://huggingface.co/black-forest-labs/flux-3-image-klein/tree/8454017f9ebaada30c998fccd9f67a80c7580f68", "sourceRevision": "black-forest-labs/flux-3-image-klein@8454017f9ebaada30c998fccd9f67a80c7580f68", "sourceLicense": "Apache-2.0 project-authored metadata", - "modelTerms": [ - "black-forest-labs/flux-3-image-klein@8454017f9ebaada30c998fccd9f67a80c7580f68: Apache-2.0" - ], + "modelTerms": ["black-forest-labs/flux-3-image-klein@8454017f9ebaada30c998fccd9f67a80c7580f68: Apache-2.0"], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], @@ -19866,9 +19964,7 @@ "sourceUrl": "https://huggingface.co/black-forest-labs/flux-3-image-klein/tree/8454017f9ebaada30c998fccd9f67a80c7580f68", "sourceRevision": "black-forest-labs/flux-3-image-klein@8454017f9ebaada30c998fccd9f67a80c7580f68", "sourceLicense": "Original synthetic generation; underlying model terms retained", - "modelTerms": [ - "black-forest-labs/flux-3-image-klein@8454017f9ebaada30c998fccd9f67a80c7580f68: Apache-2.0" - ], + "modelTerms": ["black-forest-labs/flux-3-image-klein@8454017f9ebaada30c998fccd9f67a80c7580f68: Apache-2.0"], "aiGenerated": true, "humanLikenessConsent": "synthetic", "marks": [], @@ -19889,9 +19985,7 @@ "sourceUrl": "https://huggingface.co/black-forest-labs/flux-3-image-klein/tree/8454017f9ebaada30c998fccd9f67a80c7580f68", "sourceRevision": "black-forest-labs/flux-3-image-klein@8454017f9ebaada30c998fccd9f67a80c7580f68", "sourceLicense": "Apache-2.0 project-authored metadata", - "modelTerms": [ - "black-forest-labs/flux-3-image-klein@8454017f9ebaada30c998fccd9f67a80c7580f68: Apache-2.0" - ], + "modelTerms": ["black-forest-labs/flux-3-image-klein@8454017f9ebaada30c998fccd9f67a80c7580f68: Apache-2.0"], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], @@ -19912,9 +20006,7 @@ "sourceUrl": "https://huggingface.co/black-forest-labs/flux-3-image-klein/tree/8454017f9ebaada30c998fccd9f67a80c7580f68", "sourceRevision": "black-forest-labs/flux-3-image-klein@8454017f9ebaada30c998fccd9f67a80c7580f68", "sourceLicense": "Original synthetic generation; underlying model terms retained", - "modelTerms": [ - "black-forest-labs/flux-3-image-klein@8454017f9ebaada30c998fccd9f67a80c7580f68: Apache-2.0" - ], + "modelTerms": ["black-forest-labs/flux-3-image-klein@8454017f9ebaada30c998fccd9f67a80c7580f68: Apache-2.0"], "aiGenerated": true, "humanLikenessConsent": "synthetic", "marks": [], @@ -20057,9 +20149,7 @@ ], "aiGenerated": true, "humanLikenessConsent": "synthetic", - "marks": [ - "Fictional MATERIAL ATLAS label" - ], + "marks": ["Fictional MATERIAL ATLAS label"], "requiredAttribution": [], "assetLicense": "Apache-2.0", "reviewedBy": "SOURAV DAS", @@ -20197,9 +20287,7 @@ ], "aiGenerated": true, "humanLikenessConsent": "synthetic", - "marks": [ - "Fictional MATERIAL ATLAS label" - ], + "marks": ["Fictional MATERIAL ATLAS label"], "requiredAttribution": [], "assetLicense": "Apache-2.0", "reviewedBy": "SOURAV DAS", @@ -20361,9 +20449,7 @@ "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], - "requiredAttribution": [ - "AI-generated with Lightricks LTX-2.5 Full. Original edit and Foley by MoDiff." - ], + "requiredAttribution": ["AI-generated with Lightricks LTX-2.5 Full. Original edit and Foley by MoDiff."], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace owner", "reviewedAt": "2026-11-18", @@ -20386,9 +20472,7 @@ "aiGenerated": true, "humanLikenessConsent": "synthetic", "marks": [], - "requiredAttribution": [ - "AI-generated with Lightricks LTX-2.5 Full. Original edit and Foley by MoDiff." - ], + "requiredAttribution": ["AI-generated with Lightricks LTX-2.5 Full. Original edit and Foley by MoDiff."], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace owner", "reviewedAt": "2026-11-18", @@ -20411,9 +20495,7 @@ "aiGenerated": true, "humanLikenessConsent": "synthetic", "marks": [], - "requiredAttribution": [ - "AI-generated with Lightricks LTX-2.5 Full. Original edit and Foley by MoDiff." - ], + "requiredAttribution": ["AI-generated with Lightricks LTX-2.5 Full. Original edit and Foley by MoDiff."], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace owner", "reviewedAt": "2026-11-18", @@ -21570,9 +21652,7 @@ ], "aiGenerated": true, "humanLikenessConsent": "synthetic", - "marks": [ - "LumaPod project-authored concept name/wordmark approved in this packet" - ], + "marks": ["LumaPod project-authored concept name/wordmark approved in this packet"], "requiredAttribution": [], "path": "template-gallery/z_image_product_mockup.webp", "sha256": "sha256:bytes:0d9c80e29c95d62835f56c95d666ed6d8b47e6792005ab59aef1d1c9b6de84df", diff --git a/config/template-assets.v1.json b/config/template-assets.v1.json index 6c00ab66..10f92a4c 100644 --- a/config/template-assets.v1.json +++ b/config/template-assets.v1.json @@ -2313,6 +2313,17 @@ "runtime" ] }, + { + "path": "template-gallery/joyimage_herbarium_rainy_porthole.webp", + "size": 356600, + "sha256": "sha256:bytes:50213ff01502af1445d1d72618c3614c444931fd94739a53191bd2c36f36e578", + "contentType": "image/webp", + "purposes": [ + "runtime" + ], + "width": 1024, + "height": 1024 + }, { "path": "template-gallery/kandinsky3_ginkgo_on_slate.webp", "size": 578858, @@ -2445,6 +2456,17 @@ "width": 512, "height": 512 }, + { + "path": "template-gallery/longcat_florist_end_of_lane.webp", + "size": 423160, + "sha256": "sha256:bytes:045dec822bcffaf2825dee3118446a536819a518475c78c4573d68dbb498825b", + "contentType": "image/webp", + "purposes": [ + "runtime" + ], + "width": 1024, + "height": 1024 + }, { "path": "template-gallery/longcat_last_tram_at_dusk.wav", "size": 237612, @@ -2718,8 +2740,8 @@ }, { "path": "template-gallery/manifest.json", - "size": 362791, - "sha256": "sha256:bytes:5b8154a4401935520d771e9186a75b29f282369c4cbb6a86d07f333bd4c44490", + "size": 369766, + "sha256": "sha256:bytes:4cdc61e54dab42aa8d528f9fbda584ca594d05fce5016b44d9eac6f373654806", "contentType": "application/json", "purposes": [ "runtime", @@ -4717,6 +4739,42 @@ "runtime" ] }, + { + "path": "template-gallery/reviews/joyimage_herbarium_rainy_porthole.original-provenance.json", + "size": 1049, + "sha256": "sha256:bytes:9d044b889706d4034d96da08aec8f9c6fa2458e2d75b36055a1a707e11140d38", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, + { + "path": "template-gallery/reviews/joyimage_herbarium_rainy_porthole.original-review.json", + "size": 613, + "sha256": "sha256:bytes:5f1b196d8b9e9b3740a4745304e7fbbe5bbe5c5385237f87d6895748b75c8e07", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, + { + "path": "template-gallery/reviews/joyimage_herbarium_rainy_porthole.quality-review.json", + "size": 2435, + "sha256": "sha256:bytes:ee32c1cb4403abeab273a797da25cfc3d6930f9eac84785b905ed12d07f5b567", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, + { + "path": "template-gallery/reviews/joyimage_herbarium_rainy_porthole.retained-template-provenance.json", + "size": 3363, + "sha256": "sha256:bytes:9dea78e9b2060e8253be0d3862ab101885f5c8ad55f66d0d2424943e634bcc03", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, { "path": "template-gallery/reviews/kandinsky3_ginkgo_on_slate.original-provenance.json", "size": 1302, @@ -4771,6 +4829,42 @@ "runtime" ] }, + { + "path": "template-gallery/reviews/longcat_florist_end_of_lane.original-provenance.json", + "size": 1109, + "sha256": "sha256:bytes:31fa3b13f1a585031ab220cb3a1039a9e7c2ed40757801c56cbcc846125ac7b8", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, + { + "path": "template-gallery/reviews/longcat_florist_end_of_lane.original-review.json", + "size": 696, + "sha256": "sha256:bytes:adc8b682f80f09677b97fa57651d336d8b966f7e19586256e6559505f57f9cfc", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, + { + "path": "template-gallery/reviews/longcat_florist_end_of_lane.quality-review.json", + "size": 2455, + "sha256": "sha256:bytes:c2b07ec9dccd4ac97f229ff2c836b5215377c240b8455db32a4f72f0313f7a4c", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, + { + "path": "template-gallery/reviews/longcat_florist_end_of_lane.retained-template-provenance.json", + "size": 3415, + "sha256": "sha256:bytes:14da3c1cbc2f7ea57b4ec3d84f1a78d72a4e22b62ce0e0d757db78297c3fbed9", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, { "path": "template-gallery/reviews/longcat_last_tram_at_dusk.original-provenance.json", "size": 1251, @@ -5887,6 +5981,42 @@ "runtime" ] }, + { + "path": "template-gallery/reviews/sana_tidal_pool_on_black_basalt.original-provenance.json", + "size": 1721, + "sha256": "sha256:bytes:464b0cb9e776e21bd3b8dfbefa83c8b984bd76684dee47aec59943ff0e6b335a", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, + { + "path": "template-gallery/reviews/sana_tidal_pool_on_black_basalt.original-review.json", + "size": 435, + "sha256": "sha256:bytes:822c6a8b3d52524742bfe5987264df6c10f357ae3c975d695a89cf0d5b9e762a", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, + { + "path": "template-gallery/reviews/sana_tidal_pool_on_black_basalt.quality-review.json", + "size": 2421, + "sha256": "sha256:bytes:1dcfd72e9a8ac1f33c8ce5935e64598e279ddca468c1060e266376a8b7d89552", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, + { + "path": "template-gallery/reviews/sana_tidal_pool_on_black_basalt.retained-template-provenance.json", + "size": 3352, + "sha256": "sha256:bytes:66af6aa83b431b3f41da146254ebc0cc75190e50fe626ce635fc20a12f2c7502", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, { "path": "template-gallery/reviews/sd15_canny_guided_green_glass.original-provenance.json", "size": 1208, @@ -7419,6 +7549,17 @@ "width": 1024, "height": 1024 }, + { + "path": "template-gallery/sana_tidal_pool_on_black_basalt.webp", + "size": 668670, + "sha256": "sha256:bytes:4d7f257b35ebd4a7c0e087257a6320c9c427b5ea174ade60f044f0c4b631ce17", + "contentType": "image/webp", + "purposes": [ + "runtime" + ], + "width": 1024, + "height": 1024 + }, { "path": "template-gallery/sd15_canny_guided_green_glass.webp", "size": 53292, @@ -8351,9 +8492,9 @@ "height": 640 } ], - "assetSetId": "sha256:canonical-json:415c599a910952e3eb8b060e3b04f91e6a85028a6e8dc1d180d5ad5fd11e73f4", + "assetSetId": "sha256:canonical-json:1dd39d0a777c1194ca6722527d6b1f8dd1f9f02e89b64fdc2ef056a64748d189", "status": "ready", - "assetCount": 855, - "totalBytes": 1059596510, + "assetCount": 870, + "totalBytes": 1061074979, "missingAssets": [] } diff --git a/public/template-gallery/manifest.json b/public/template-gallery/manifest.json index bc6c8063..a07d7894 100644 --- a/public/template-gallery/manifest.json +++ b/public/template-gallery/manifest.json @@ -4646,6 +4646,96 @@ "durationSeconds": 3.125, "approvedOriginalReviewPath": "/template-gallery/reviews/cogvideox_red_tram_model_railway.original-review.json", "approvedOriginalProvenancePath": "/template-gallery/reviews/cogvideox_red_tram_model_railway.original-provenance.json" + }, + { + "templateId": "sana_tidal_pool_on_black_basalt", + "templateLockHash": "tpl_2e1869d7", + "promptSettingsHash": "ps_91375aee", + "modelRevision": "Efficient-Large-Model/Sana_600M_1024px_diffusers@28f3af7689de15f3883d5863059a2fca0aa9b829", + "runtimeFingerprint": "sha256:stable-runtime-v1:de99e7b1729318c3e5b2dde98b51e5feb07ae329310f9b2da76831df1410cae7", + "graphHash": "sha256:canonical-graph-v1:4c0dd2f1d20300d93bac5d00a84eb057a7ffc5c64cafe9d4727a38d6852b7aab", + "proofLockHash": "sha256:retained-template-association-v1:5e15a6d770818c8a1339816bd3e1c93c03b0469068843cc5c8b46119ec622f6a", + "backendSourceFingerprint": "sha256:backend-source-v1:b29a5b0d317aaa781ae2a5205b46b518eea5a3d68a214eb0968dba4ac0660af7", + "backendContractFingerprint": "sha256:backend-contract-v1:300f2fb801e65ef8a0355d217f3f89e59d11e38f976af5a86ba41212d30216fd", + "modelCommit": "28f3af7689de15f3883d5863059a2fca0aa9b829", + "templateRevisionHash": "31c6fda19fe62a7282c50fe665069354989947ef1454ac63a1384637792d09c6", + "provenancePath": "/template-gallery/reviews/sana_tidal_pool_on_black_basalt.retained-template-provenance.json", + "provenanceHash": "sha256:canonical-json:de2a4c7a51c41ddd6c186a18c714a1cf80859ce8339d372288f6237fb2e6f35a", + "outputPath": "/template-gallery/sana_tidal_pool_on_black_basalt.webp", + "thumbnailPath": "/template-gallery/sana_tidal_pool_on_black_basalt.webp", + "mediaHash": "sha256:decoded-rgba:1ae69e7748e42b0ef990ed4bcaa646e08c064443bb1251698fde42b1f345f831", + "mediaType": "image", + "verificationTimestamp": "2026-11-24T21:35:49.709Z", + "verificationStatus": "reviewed", + "qualityReviewStatus": "approved_reviewed", + "qualityReviewHash": "sha256:canonical-json:81f553cb4e0bc643e1685fe646e9ea7d019ee42d55accd5bde9bb80f9e9ba40d", + "qualityReviewPath": "/template-gallery/reviews/sana_tidal_pool_on_black_basalt.quality-review.json", + "reviewer": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25T07:18:34.900Z", + "width": 1024, + "height": 1024, + "approvedOriginalReviewPath": "/template-gallery/reviews/sana_tidal_pool_on_black_basalt.original-review.json", + "approvedOriginalProvenancePath": "/template-gallery/reviews/sana_tidal_pool_on_black_basalt.original-provenance.json" + }, + { + "templateId": "joyimage_herbarium_rainy_porthole", + "templateLockHash": "tpl_9e12c4ef", + "promptSettingsHash": "ps_83f27e49", + "modelRevision": "jdopensource/JoyAI-Image-Edit-Diffusers@4b41fb25d961f37668750178ccbb380da326201c", + "runtimeFingerprint": "sha256:stable-runtime-v1:de99e7b1729318c3e5b2dde98b51e5feb07ae329310f9b2da76831df1410cae7", + "graphHash": "sha256:canonical-graph-v1:764bcfbc5d06837477b63647a4723da8dfce96675828d2f038909bed22b155fd", + "proofLockHash": "sha256:retained-template-association-v1:9a37ae0338d16096b5048b2a5e701c9cbca7a759079df14aced51e1ce7f1a3a5", + "backendSourceFingerprint": "sha256:backend-source-v1:b29a5b0d317aaa781ae2a5205b46b518eea5a3d68a214eb0968dba4ac0660af7", + "backendContractFingerprint": "sha256:backend-contract-v1:300f2fb801e65ef8a0355d217f3f89e59d11e38f976af5a86ba41212d30216fd", + "modelCommit": "4b41fb25d961f37668750178ccbb380da326201c", + "templateRevisionHash": "5e0a8441e6f6998745a1b9c9a8244aa5d8e4e8591be5277396f519f41adf7ad4", + "provenancePath": "/template-gallery/reviews/joyimage_herbarium_rainy_porthole.retained-template-provenance.json", + "provenanceHash": "sha256:canonical-json:6de90413c4d90f0d82b2332b48b3df904169710ce2855f3ad24f674327024566", + "outputPath": "/template-gallery/joyimage_herbarium_rainy_porthole.webp", + "thumbnailPath": "/template-gallery/joyimage_herbarium_rainy_porthole.webp", + "mediaHash": "sha256:decoded-rgba:b7f60e56e90f55c1a496a6c571ea18b68c3c42976ab35b8b2d193638306715fa", + "mediaType": "image", + "verificationTimestamp": "2026-11-25T04:23:00.358Z", + "verificationStatus": "reviewed", + "qualityReviewStatus": "approved_reviewed", + "qualityReviewHash": "sha256:canonical-json:33cbf2406dbc2de8d9d88c412538de063d124448e4d3e6b0328fd3571859bc77", + "qualityReviewPath": "/template-gallery/reviews/joyimage_herbarium_rainy_porthole.quality-review.json", + "reviewer": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25T07:18:34.900Z", + "width": 1024, + "height": 1024, + "approvedOriginalReviewPath": "/template-gallery/reviews/joyimage_herbarium_rainy_porthole.original-review.json", + "approvedOriginalProvenancePath": "/template-gallery/reviews/joyimage_herbarium_rainy_porthole.original-provenance.json" + }, + { + "templateId": "longcat_florist_end_of_lane", + "templateLockHash": "tpl_22334457", + "promptSettingsHash": "ps_cbbee99d", + "modelRevision": "meituan-longcat/LongCat-Image@d2ea50b79a930074c37b9b97ce45e3b2ea8cf4d8", + "runtimeFingerprint": "sha256:stable-runtime-v1:de99e7b1729318c3e5b2dde98b51e5feb07ae329310f9b2da76831df1410cae7", + "graphHash": "sha256:canonical-graph-v1:b412040d8f6595ffa0093fa82dce6f4993cf6d8db99730610e859ae8badab868", + "proofLockHash": "sha256:retained-template-association-v1:158e9782b718ec5c056b471522edf6086ccb8b3aa954894b0266747a7f9caba9", + "backendSourceFingerprint": "sha256:backend-source-v1:b29a5b0d317aaa781ae2a5205b46b518eea5a3d68a214eb0968dba4ac0660af7", + "backendContractFingerprint": "sha256:backend-contract-v1:300f2fb801e65ef8a0355d217f3f89e59d11e38f976af5a86ba41212d30216fd", + "modelCommit": "d2ea50b79a930074c37b9b97ce45e3b2ea8cf4d8", + "templateRevisionHash": "b90a1a05613457abec04653497adf621e361d94bfc399db6cbd94f093a69421f", + "provenancePath": "/template-gallery/reviews/longcat_florist_end_of_lane.retained-template-provenance.json", + "provenanceHash": "sha256:canonical-json:fd26a43c5d78748291b4a7d34651efec23b681f26370d603afb1594bfaf6455e", + "outputPath": "/template-gallery/longcat_florist_end_of_lane.webp", + "thumbnailPath": "/template-gallery/longcat_florist_end_of_lane.webp", + "mediaHash": "sha256:decoded-rgba:1c89f33e7d89275041001545c64f394efc9fd6deaa3c9e7e2d4ee7162e635ce1", + "mediaType": "image", + "verificationTimestamp": "2026-11-25T04:36:30.280Z", + "verificationStatus": "reviewed", + "qualityReviewStatus": "approved_reviewed", + "qualityReviewHash": "sha256:canonical-json:8a2e42ffe6e6f29c5a89c5d5cf4860e7bccbd47a3b394cccb6de1e74617f6821", + "qualityReviewPath": "/template-gallery/reviews/longcat_florist_end_of_lane.quality-review.json", + "reviewer": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25T07:18:34.900Z", + "width": 1024, + "height": 1024, + "approvedOriginalReviewPath": "/template-gallery/reviews/longcat_florist_end_of_lane.original-review.json", + "approvedOriginalProvenancePath": "/template-gallery/reviews/longcat_florist_end_of_lane.original-provenance.json" } ] } diff --git a/scripts/bundle-budget.mjs b/scripts/bundle-budget.mjs index bda8d9a1..1b6cb127 100644 --- a/scripts/bundle-budget.mjs +++ b/scripts/bundle-budget.mjs @@ -493,6 +493,9 @@ const SOURCE_LICENSES = new URL('../public/THIRD_PARTY_LICENSES.txt', import.met // 504492/682980/346033 largest/startup/deferred gzip bytes: the reviewed // migration ceilings below still pass with 8/12/304 bytes of headroom. const MAX_STARTUP_CHUNK_GZIP_BYTES = + // Retained Gallery expansion moves approval-only hashes to build-time metadata. + // The measured startup chunk is 545621 bytes; defer and retain the existing limits for all lazy chunks. + 1104 + // Guided inpainting media evidence adds 54 gzip bytes (544463 to 544517). 54 + // Layer stack evidence adds 127 gzip bytes (544336 to 544463). @@ -792,6 +795,8 @@ const MAX_STARTUP_CHUNK_GZIP_BYTES = // The same build measures 673359 aggregate startup bytes (+45 over the cap). // Keep 19 bytes of headroom; deferred limits and loading boundaries stay fixed. const MAX_STARTUP_GZIP_BYTES = + // The same approved recipes measure 724109 total startup bytes. + 1105 + // The guide receipt scopes add 56 bytes across startup (722946 to 723002). 56 + // The layer stack evidence checks add 124 bytes across startup (722822 to 722946). diff --git a/scripts/image-full-native-template-candidates.test.mjs b/scripts/image-full-native-template-candidates.test.mjs index e42fe67f..4551de85 100644 --- a/scripts/image-full-native-template-candidates.test.mjs +++ b/scripts/image-full-native-template-candidates.test.mjs @@ -63,7 +63,7 @@ before(async () => { }); const module = await server.ssrLoadModule('/src/studio/templates.ts'); publicTemplates = module.STUDIO_TEMPLATES; - const { APPROVED_RETAINED_BATCH } = await server.ssrLoadModule('/src/studio/retainedGalleryApprovedBatch.ts'); + const { APPROVED_RETAINED_BATCH } = await server.ssrLoadModule('/scripts/retained-gallery-recipes.ts'); approvedRetainedImageIds = APPROVED_RETAINED_BATCH.filter( ({ template }) => template.example.mediaType === 'image', ).map(({ template }) => template.id); diff --git a/scripts/modiff-template.test.mjs b/scripts/modiff-template.test.mjs index 384c5fd8..d5b78682 100644 --- a/scripts/modiff-template.test.mjs +++ b/scripts/modiff-template.test.mjs @@ -106,7 +106,7 @@ before(async () => { nodesStoreModule = await server.ssrLoadModule('/src/stores/useNodeStore.ts'); studioStoreModule = await server.ssrLoadModule('/src/stores/useStudioStore.ts'); templateQualityModule = await server.ssrLoadModule('/src/studio/templateQuality.ts'); - const { APPROVED_RETAINED_BATCH } = await server.ssrLoadModule('/src/studio/retainedGalleryApprovedBatch.ts'); + const { APPROVED_RETAINED_BATCH } = await server.ssrLoadModule('/scripts/retained-gallery-recipes.ts'); approvedRetainedPromptById = new Map( APPROVED_RETAINED_BATCH.map(({ template }) => [ template.id, @@ -3526,6 +3526,12 @@ test('Wan VACE execution pins the app-installed immutable model revision', () => test('qualified Wan gallery proofs use native five-second shots without reducing recommended steps', () => { for (const template of [...templatesModule.STUDIO_TEMPLATES, ...templatesModule.PLANNING_STUDIO_TEMPLATES]) { if (!template.id.startsWith('wan_')) continue; + if (template.example?.retainedVideoPreview) { + // The Gallery can replay a reviewed native run with its original prompt. + // All default Wan showcases still use the common negative prompt guard. + assert.match(template.example.retainedVideoPreview.mediaHash, /^sha256:decoded-video-framemd5:[a-f0-9]{64}$/u); + continue; + } assert.match(template.negativePrompt, /deformity/i, `${template.id} includes the shared deformity guard`); } diff --git a/scripts/prompt-variant-evidence.mjs b/scripts/prompt-variant-evidence.mjs index 73786859..24d4698d 100644 --- a/scripts/prompt-variant-evidence.mjs +++ b/scripts/prompt-variant-evidence.mjs @@ -247,6 +247,50 @@ const wanA14BOpeningRoute = { chain: [['source', 'modules.Image', 'Load', ''], ...wanA14BRoute.chain], }; +const ltx2AudioVideoRoutes = [ + ['LTX2Pipeline', 'text_to_video'], + ['LTX2ConditionPipeline', 'text_to_video'], + ['LTX2ConditionPipeline', 'image_to_video'], + ['LTX2ConditionPipeline', 'reference_to_video'], + ['LTX2ConditionPipeline', 'video_to_video'], +].map(([modelType, task]) => { + const bindsImage = ['image_to_video', 'reference_to_video'].includes(task); + const bindsVideoUpload = task === 'video_to_video'; + return { + ...wanA14BRoute, + format: 'modiff.private.ltx2-native-av-variant.v1', + workflowId: modelType + ':' + task, + modelType, + modelRepo: 'Lightricks/LTX-2', + modelRevision: '47da56e2ad66ce4125a9922b4a8826bf407f9d0a', + sourceFingerprint: 'sha256:backend-source-v1:b29a5b0d317aaa781ae2a5205b46b518eea5a3d68a214eb0968dba4ac0660af7', + nativeJointAudio: true, + bindsImage, + imageInputPort: 'reference_images', + bindsVideoUpload, + originalVideoFrames: bindsVideoUpload ? 25 : undefined, + executedTask: task, + previousExpertFamily: undefined, + chain: [ + ...(bindsImage ? [['source', 'modules.Image', 'Load', '']] : []), + ...(bindsVideoUpload + ? [ + ['source', 'modules.Video', 'Load', ''], + ['normalize', 'modules.VideoConditioning', 'Normalize', 'height num_frames width'], + ] + : []), + ...wanA14BRoute.chain.slice(0, 3), + [ + 'generator', + 'modules.DiffusersVideo', + 'GenerateVideoAudio', + 'conditioning_scale frame_rate guidance_scale height max_sequence_length negative_prompt num_frames num_inference_steps output_type prompt seed strength true_cfg_scale width', + ], + ['preview', 'modules.Video', 'ExportWithAudio', 'fps'], + ], + }; +}); + const subwaySoundtrack = { repoId: 'ACE-Step/acestep-v15-xl-turbo-diffusers', revision: '200ba991ae448051e14b0183157e35c2d27c9fb0', @@ -1247,7 +1291,11 @@ export function validatePromptVariantVideo(decoded, item, bound) { return validateNativeVideoDelivery(decoded, item, { width: frameSize, height: frameSize, fps, frames: 20 }); } -export function validateNativeVideoDelivery(decoded, item, { width, height, fps, frames, soundtrack = false }) { +export function validateNativeVideoDelivery( + decoded, + item, + { width, height, fps, frames, soundtrack = false, nativeJointAudio = false }, +) { const native = item.mediaMetadata; assert.equal(native.source, 'encoded-file'); assert.equal(native.width, width); @@ -1262,14 +1310,15 @@ export function validateNativeVideoDelivery(decoded, item, { width, height, fps, ); assert.ok(Math.abs(decoded.durationSeconds - native.duration_seconds) <= 0.02); assert.equal(decoded.codecName, 'h264'); - assert.equal(decoded.hasAudio, soundtrack); + assert.equal(decoded.hasAudio, soundtrack || nativeJointAudio); assert.equal(decoded.uniqueFrameRatio, 1); const audio = decoded.embeddedAudio; - if (soundtrack) { - assert.equal(audio?.sourceSampleRate, 48000); + if (soundtrack || nativeJointAudio) { + assert.equal(audio?.sourceSampleRate, nativeJointAudio ? 24000 : 48000); assert.equal(audio.channels, 2); assert.equal(audio.clippedSampleRatio, 0); - assert.ok(audio.peakAmplitude > 0.05 && audio.silenceRatio < 0.75); + if (soundtrack) assert.ok(audio.peakAmplitude > 0.05 && audio.silenceRatio < 0.75); + else assert.ok(audio.peakAmplitude > 0.001, 'The model did not emit measurable audio.'); assert.match(audio.hash, /^sha256:decoded-audio-pcm-s16le-48000-stereo:[a-f0-9]{64}$/u); } return { @@ -1280,7 +1329,7 @@ export function validateNativeVideoDelivery(decoded, item, { width, height, fps, frames: decoded.frames, durationSeconds: decoded.durationSeconds, hash: decoded.hash, - ...(soundtrack ? { audio } : {}), + ...(soundtrack || nativeJointAudio ? { audio } : {}), }; } @@ -1301,6 +1350,7 @@ export async function readPromptVariantEvidence({ clientRoot, manifest, graph, a wanA14BRoute, wanA14BOpeningRoute, wanSubwayRoute, + ...ltx2AudioVideoRoutes, ltxScheduledRoute, wanAnimateRoute, wanReplaceRoute, @@ -1323,6 +1373,7 @@ export async function readPromptVariantEvidence({ clientRoot, manifest, graph, a const generatedVideo = profile.outputKind === 'video' && (['text_to_video', 'image_to_video', 'video_to_video'].includes(profile.executedTask) || + profile.nativeJointAudio || profile.bindsVideoGuide || Boolean(profile.videoConditioners)); const generatedAudio = profile === audioRoute || profile === audioLdmRoute; @@ -1440,12 +1491,19 @@ export async function readPromptVariantEvidence({ clientRoot, manifest, graph, a graphAcknowledgment: json(evidence.graphAcknowledgment), } : {}), - ...(imageRoute || (generatedVideo && !profile.soundtrack) || profile === audioLdmRoute + ...(imageRoute || (generatedVideo && !profile.soundtrack && !profile.nativeJointAudio) || profile === audioLdmRoute ? { validatePreparation: (preparation) => validateImagePromptPreparation(preparation, profile) } : {}), ...(profile === videoRoute || profile === audioRoute ? { validatePreparation: (preparation) => validateUnmodifiedExpertPreparation(preparation, target.modelType) } : {}), + ...(profile.nativeJointAudio && { + validatePreparation: (preparation) => { + const previous = preparation.previousModelFamily; + assert.ok([null, 'LTX2Pipeline', 'LTX2ConditionPipeline'].includes(previous)); + validateUnmodifiedExpertPreparation(preparation, profile.modelType, previous); + }, + }), }; let validatedRun; let accountingRun = run; @@ -1480,7 +1538,7 @@ export async function readPromptVariantEvidence({ clientRoot, manifest, graph, a : null; let inputBinding = accounting ? undefined : validateConsumedPromptVariant(profile, bound, output, suppliedInput); if (profile.bindsImage) { - const source = read(suppliedInput.file, 2 * 1024 * 1024); + const source = read(suppliedInput.file, (profile.nativeJointAudio ? 8 : 2) * 1024 * 1024); const upload = json(suppliedInput.upload); const { width, height } = inputBinding.decodedImage; assert.equal(upload.error, false); @@ -1544,7 +1602,8 @@ export async function readPromptVariantEvidence({ clientRoot, manifest, graph, a }; }; if (profile.bindsVideoUpload) { - inputBinding = await bindRetainedVideo(suppliedInput, bound.source, bound.normalize.node.params.num_frames.value); + const originalFrames = profile.originalVideoFrames ?? bound.normalize.node.params.num_frames.value; + inputBinding = await bindRetainedVideo(suppliedInput, bound.source, originalFrames); } const guideBinding = profile.bindsVideoGuide ? await bindRetainedVideo(suppliedGuide, bound.guide, bound.normalizeGuide.node.params.num_frames.value) @@ -1601,7 +1660,7 @@ export async function readPromptVariantEvidence({ clientRoot, manifest, graph, a task, ) : measurement.peakAllocatedBytes; - const mediaLimit = (profile.soundtrack ? 64 : 2) * 1024 * 1024; + const mediaLimit = (profile.soundtrack || profile.nativeJointAudio ? 64 : 2) * 1024 * 1024; const media = read(outputRef.file, mediaLimit); const item = validateNativeVariantOutput({ output, @@ -1634,6 +1693,7 @@ export async function readPromptVariantEvidence({ clientRoot, manifest, graph, a frames: num_frames.value, fps: bound.preview.node.params.fps.value, soundtrack: Boolean(profile.soundtrack), + nativeJointAudio: Boolean(profile.nativeJointAudio), }); } else decodedOutput = validatePromptVariantVideo(decoded, item, bound); } else if (generatedAudio) { @@ -1706,6 +1766,7 @@ export async function readPromptVariantEvidence({ clientRoot, manifest, graph, a fullConsumedFieldAccounting: Boolean(accounting && !accounting.retainedGenerator), physicalPlatformQualification: false, ...(profile.soundtrack ? { configuredAudioFitObserved: false, audiovisualSynchronizationReviewed: false } : {}), + ...(profile.nativeJointAudio ? { audiovisualSynchronizationReviewed: false } : {}), ...(accounting?.retainedGenerator && imageRoute.typedOnly?.length ? { configuredUnobservedControls: [...imageRoute.typedOnly] } : {}), diff --git a/scripts/prompt-variant-evidence.test.mjs b/scripts/prompt-variant-evidence.test.mjs index 5b992d0c..9edf2612 100644 --- a/scripts/prompt-variant-evidence.test.mjs +++ b/scripts/prompt-variant-evidence.test.mjs @@ -10,6 +10,7 @@ import { canonicalGraphIdentity, directImagePromptRoutes } from './live-proof-pr import { verifyRetainedStructuredText } from './retained-structured-text-evidence.mjs'; import { bindPromptVariant, + validateNativeVideoDelivery, validatePromptVariantText, validatePromptVariantVideo, validateSampledCpuWorkerMemory, @@ -24,6 +25,41 @@ const clientRoot = fileURLToPath(new URL('..', import.meta.url)); const backendRoot = resolve(process.env.MODIFF_BACKEND_DIR ?? join(clientRoot, '../MoDiff')); const digest = (value) => createHash('sha256').update(value).digest('hex'); +test('joint audio-video evidence keeps native LTX audio separate from the fitted soundtrack contract', () => { + const shape = { width: 768, height: 512, frames: 81, fps: 24 }; + const item = { + mediaMetadata: { + source: 'encoded-file', + width: 768, + height: 512, + frame_count: 81, + fps: 24, + duration_seconds: 3.38, + }, + }; + const decoded = { + ...shape, + durationSeconds: 3.38, + uniqueFrameRatio: 1, + codecName: 'h264', + hasAudio: true, + embeddedAudio: { + sourceSampleRate: 24000, + channels: 2, + clippedSampleRatio: 0, + peakAmplitude: 0.01, + silenceRatio: 0.95, + hash: 'sha256:decoded-audio-pcm-s16le-48000-stereo:' + 'a'.repeat(64), + }, + }; + const joint = { ...shape, nativeJointAudio: true }; + assert.deepEqual(validateNativeVideoDelivery(decoded, item, joint).audio, decoded.embeddedAudio); + assert.throws(() => validateNativeVideoDelivery({ ...decoded, hasAudio: false }, item, joint)); + const wrongRate = { ...decoded, embeddedAudio: { ...decoded.embeddedAudio, sourceSampleRate: 48000 } }; + assert.throws(() => validateNativeVideoDelivery(wrongRate, item, joint)); + assert.throws(() => validateNativeVideoDelivery(wrongRate, item, { ...shape, soundtrack: true })); +}); + test('a CPU capture measures sampled worker memory within its exact original task interval', () => { const source = { fingerprint: 'original', gitCommit: null, files: [{}] }; const worker = { diff --git a/scripts/release-contract-core.mjs b/scripts/release-contract-core.mjs index b095ef0b..ca180ac9 100644 --- a/scripts/release-contract-core.mjs +++ b/scripts/release-contract-core.mjs @@ -933,6 +933,7 @@ export async function readCanonicalWorkflowEvidence({ clientRoot, backendRoot, w 'modiff.private.wan-a14b-opening-image-variant.v1', 'modiff.private.wan-subway-soundtrack-variant.v1', 'modiff.private.ltx-long-scheduled-image-variant.v1', + 'modiff.private.ltx2-native-av-variant.v1', 'modiff.private.wan-character-animate-inputs.v1', 'modiff.private.wan-character-replace-inputs.v1', 'modiff.private.cogvideox-video-prompt-variant.v1', diff --git a/scripts/release-contract.mjs b/scripts/release-contract.mjs index 1d46f0b9..eaeadc17 100644 --- a/scripts/release-contract.mjs +++ b/scripts/release-contract.mjs @@ -414,7 +414,7 @@ const vite = await createServer({ try { const { STUDIO_TEMPLATES } = await vite.ssrLoadModule('/src/studio/templates.ts'); - const { RETAINED_GALLERY_TEMPLATES } = await vite.ssrLoadModule('/src/studio/retainedGalleryTemplates.ts'); + const { RETAINED_GALLERY_TEMPLATES } = await vite.ssrLoadModule('/scripts/retained-gallery-recipes.ts'); const retainedRecipesByTemplate = new Map(RETAINED_GALLERY_TEMPLATES.map((recipe) => [recipe.template.id, recipe])); const retainedRecipesByWorkflow = new Map(RETAINED_GALLERY_TEMPLATES.map((recipe) => [recipe.workflowId, recipe])); const readRetainedGalleryRelease = createRetainedGalleryReleaseReader({ diff --git a/scripts/retained-gallery-recipes.ts b/scripts/retained-gallery-recipes.ts new file mode 100644 index 00000000..496c5746 --- /dev/null +++ b/scripts/retained-gallery-recipes.ts @@ -0,0 +1,28 @@ +import batchLocks from '../config/retained-gallery-batch-recipe-locks.v1.json'; +import legacyLocks from '../config/retained-gallery-legacy-recipe-locks.v1.json'; +import { APPROVED_RETAINED_TEMPLATES } from '../src/studio/retainedGalleryApprovedBatch'; +import { LEGACY_RETAINED_GALLERY_TEMPLATES, type RetainedGalleryRecipe } from '../src/studio/retainedGalleryTemplates'; +import type { StudioTemplate } from '../src/studio/types'; + +type RecipeLock = RetainedGalleryRecipe extends infer Recipe + ? Recipe extends RetainedGalleryRecipe + ? Omit + : never + : never; + +function bindRecipes(templates: readonly StudioTemplate[], locksById: Record) { + if (Object.keys(locksById).length !== templates.length) { + throw new Error('Retained Gallery metadata and the published template catalog differ.'); + } + return templates.map((template) => { + const lock = locksById[template.id]; + if (!lock) throw new Error(`Retained Gallery metadata is missing for ${template.id}.`); + return { ...lock, template }; + }); +} + +export const APPROVED_RETAINED_BATCH = bindRecipes(APPROVED_RETAINED_TEMPLATES, batchLocks); +export const RETAINED_GALLERY_TEMPLATES = [ + ...APPROVED_RETAINED_BATCH, + ...bindRecipes(LEGACY_RETAINED_GALLERY_TEMPLATES, legacyLocks), +]; diff --git a/scripts/retained-gallery-release.mjs b/scripts/retained-gallery-release.mjs index bb5c4cee..bb1ac038 100644 --- a/scripts/retained-gallery-release.mjs +++ b/scripts/retained-gallery-release.mjs @@ -117,11 +117,7 @@ function assertRetainedBatchEvidence({ same(nativeReceipt.decodedOutput, { kind: 'image_collection', items: orderedLayerItems }, label); assert.equal(orderedLayerItems.length, recipe.template.example.lockedSettings.layers, label); for (const [index, layer] of orderedLayerItems.entries()) { - assert.equal( - association.approvedFiles[`approvedLayer${index + 1}Path`]?.sha256, - layer.encodedSha256, - label, - ); + assert.equal(association.approvedFiles[`approvedLayer${index + 1}Path`]?.sha256, layer.encodedSha256, label); } } else if (association.output.mediaType === 'image') { assert.equal(nativeReceipt.decodedOutput.hash, association.output.decodedMediaHash, label); diff --git a/scripts/retained-gallery-templates.test.mjs b/scripts/retained-gallery-templates.test.mjs index f1e4269c..6afbcb5c 100644 --- a/scripts/retained-gallery-templates.test.mjs +++ b/scripts/retained-gallery-templates.test.mjs @@ -38,8 +38,8 @@ before(async () => { server: { middlewareMode: true, hmr: false, watch: null }, appType: 'custom', }); - ({ RETAINED_GALLERY_TEMPLATES: recipes } = await server.ssrLoadModule('/src/studio/retainedGalleryTemplates.ts')); - const { APPROVED_RETAINED_BATCH } = await server.ssrLoadModule('/src/studio/retainedGalleryApprovedBatch.ts'); + ({ RETAINED_GALLERY_TEMPLATES: recipes } = await server.ssrLoadModule('/scripts/retained-gallery-recipes.ts')); + const { APPROVED_RETAINED_BATCH } = await server.ssrLoadModule('/scripts/retained-gallery-recipes.ts'); approvedBatchIds = new Set(APPROVED_RETAINED_BATCH.map(({ template }) => template.id)); ({ STUDIO_TEMPLATES: published } = await server.ssrLoadModule('/src/studio/templates.ts')); exactness = await server.ssrLoadModule('/src/studio/templateExactness.ts'); @@ -184,9 +184,7 @@ test('retained Gallery recipes preserve the native graph identities and standalo Object.values(capture.inputs ?? [capture.input]) .map(({ file }) => file.sha256) .sort(), - [recipe.inputSha256, recipe.maskSha256, recipe.guideSha256, recipe.lastFrameSha256] - .filter(Boolean) - .sort(), + [recipe.inputSha256, recipe.maskSha256, recipe.guideSha256, recipe.lastFrameSha256].filter(Boolean).sort(), ); } } else if (recipe.inputLocatorSha256) { @@ -241,12 +239,14 @@ test('fresh Expert recipes prepare with current backend specs and without a gene if (payload.action === 'LoadPipeline') { assert.equal(payload.values.pipeline_class, audioContract.pipelineClass); assert.equal(payload.values.mode, audioContract.mode); - flow.getState().setParam( - payload.node, - 'pipeline', - { direction: 'output', origin: 'audio_contract', value: audioContract }, - 'signal', - ); + flow + .getState() + .setParam( + payload.node, + 'pipeline', + { direction: 'output', origin: 'audio_contract', value: audioContract }, + 'signal', + ); } else { assert.equal(payload.action, 'Generate'); if (payload.values.audio_contract !== audioContract.pipelineClass) { @@ -325,20 +325,18 @@ test('fresh Expert recipes prepare with current backend specs and without a gene : []; const mask = recipe.maskSha256 ? 'review-mask-image.png' : undefined; const tabId = studio.getState().createWorkflowTab(template.label, undefined, 'template', template.id); - studio - .getState() - .applyTemplate( - template, - audio - ? { sourceAudio: input[0] } - : sourceVideo - ? { sourceVideo: 'review-source-video.mp4' } - : { - referenceImages: input, - ...(mask && { maskImage: mask }), - ...(guide && { controlImage: guide }), - }, - ); + studio.getState().applyTemplate( + template, + audio + ? { sourceAudio: input[0] } + : sourceVideo + ? { sourceVideo: 'review-source-video.mp4' } + : { + referenceImages: input, + ...(mask && { maskImage: mask }), + ...(guide && { controlImage: guide }), + }, + ); const form = studio.getState().form; assert.equal(form.device, template.example.lockedSettings.device ?? 'cuda:0'); assert.equal(form.resourceMode, 'expert'); diff --git a/scripts/retained-template-association.mjs b/scripts/retained-template-association.mjs index b9ea5ae7..bbfb20a0 100644 --- a/scripts/retained-template-association.mjs +++ b/scripts/retained-template-association.mjs @@ -626,7 +626,7 @@ async function readReviewBatch({ approvalRoot, vite, nativeBySha, scopes, approv const indexedFiles = new Map(reviewedScope.value.files.map((item) => [item.path, item])); assert.equal(indexedFiles.size, reviewedScope.value.files.length, 'Review inventory contains duplicate files.'); - const { RETAINED_GALLERY_TEMPLATES } = await vite.ssrLoadModule('/src/studio/retainedGalleryTemplates.ts'); + const { RETAINED_GALLERY_TEMPLATES } = await vite.ssrLoadModule('/scripts/retained-gallery-recipes.ts'); const { getTemplateLockHash, getPromptSettingsHash, getTemplateLockedSettings } = await vite.ssrLoadModule( '/src/studio/templateExactness.ts', ); @@ -762,7 +762,7 @@ export async function readApprovedSanaReview({ approvalRoot, vite, nativeBySha } assert.equal(scopeHash, SANA_REVIEW_SCOPE_SHA256); assert.equal(scope.status, 'pending_review_and_redistribution_rights'); assert.deepEqual(candidate.files, scope.files); - const { RETAINED_GALLERY_TEMPLATES } = await vite.ssrLoadModule('/src/studio/retainedGalleryTemplates.ts'); + const { RETAINED_GALLERY_TEMPLATES } = await vite.ssrLoadModule('/scripts/retained-gallery-recipes.ts'); const { getTemplateLockHash, getPromptSettingsHash, getTemplateLockedSettings } = await vite.ssrLoadModule( '/src/studio/templateExactness.ts', ); diff --git a/scripts/source-video-timing.test.mjs b/scripts/source-video-timing.test.mjs index e2e98157..e1a88765 100644 --- a/scripts/source-video-timing.test.mjs +++ b/scripts/source-video-timing.test.mjs @@ -69,10 +69,16 @@ test('a reviewed native preview preserves its exact short clip and browser-safe }; assert.deepEqual(technicalMediaErrors(decoded, {}, 'video', preview), []); for (const change of [{ frames: 24 }, { width: 700 }, { fps: 7 }, { hash: 'different' }]) { - assert(technicalMediaErrors({ ...decoded, ...change }, {}, 'video', preview).some((x) => x.includes('at least 5 seconds'))); + assert( + technicalMediaErrors({ ...decoded, ...change }, {}, 'video', preview).some((x) => + x.includes('at least 5 seconds'), + ), + ); } assert(technicalMediaErrors(decoded, {}, 'video').some((x) => x.includes('at least 5 seconds'))); - assert(technicalMediaErrors({ ...decoded, hasAudio: true }, {}, 'video', preview).some((x) => x.includes('audio stream'))); + assert( + technicalMediaErrors({ ...decoded, hasAudio: true }, {}, 'video', preview).some((x) => x.includes('audio stream')), + ); assert(technicalMediaErrors({ ...decoded, codecName: 'vp9' }, {}, 'video', preview).some((x) => x.includes('codec'))); }); diff --git a/scripts/template-card-coverage.mjs b/scripts/template-card-coverage.mjs index 731ea222..0511b798 100644 --- a/scripts/template-card-coverage.mjs +++ b/scripts/template-card-coverage.mjs @@ -97,14 +97,17 @@ const posterHashOwners = new Map(); const rows = runtime.templates.map((template) => { const entry = manifestByTemplate.get(template.id); const publishedOutput = resolvePublic(entry?.afterPath ?? entry?.outputPath); - const publishedThumbnail = resolvePublic(entry?.thumbnailPath ?? entry?.posterPath); const needsBefore = ['compareSlider', 'hoverDissolve'].includes(template.thumbnailVariant); const publishedBefore = resolvePublic(entry?.beforePath); const currentEntry = entry ? runtime.findManifestEntry(template, { ...manifest, examples: [entry] }) : undefined; + const nativePreview = runtime.isRetainedVideoPreview(template, currentEntry); + const motionPath = nativePreview ? currentEntry.outputPath : currentEntry?.cardPreviewPath; + const publishedPosterPath = nativePreview ? entry?.posterPath : (entry?.thumbnailPath ?? entry?.posterPath); + const publishedThumbnail = resolvePublic(publishedPosterPath); const motionPreview = template.example?.mediaType !== 'video' && template.outputKinds?.[0] !== 'video' ? true - : Boolean(currentEntry?.cardPreviewPath && resolvePublic(currentEntry.cardPreviewPath)); + : Boolean(motionPath && resolvePublic(motionPath)); const entryMatchesTemplate = Boolean( currentEntry && currentEntry.promptSettingsHash === runtime.promptSettingsHash(template) && @@ -161,10 +164,10 @@ const rows = runtime.templates.map((template) => { previewPath: completePublishedPreview && entry ? template.example?.mediaType === 'video' || template.outputKinds?.[0] === 'video' - ? entry.cardPreviewPath + ? motionPath : (entry.thumbnailPath ?? entry.posterPath ?? entry.afterPath ?? entry.outputPath) : publishedPoster && entry - ? (entry.thumbnailPath ?? entry.posterPath) + ? publishedPosterPath : (posterPath ?? null), errors, }; diff --git a/scripts/template-card-previews.mjs b/scripts/template-card-previews.mjs index f6d3e100..7299fbea 100644 --- a/scripts/template-card-previews.mjs +++ b/scripts/template-card-previews.mjs @@ -74,6 +74,10 @@ for (const entry of manifest.examples ?? []) { }); continue; } + if (runtime.isRetainedVideoPreview(template, currentEntry)) { + skipped.push({ templateId: entry.templateId, reason: 'The approved native clip serves as its own preview.' }); + continue; + } const sourcePath = resolvePublicPath(entry.outputPath); if (!sourcePath) { skipped.push({ templateId: entry.templateId, reason: `Output is missing: ${entry.outputPath}` }); diff --git a/scripts/template-gallery-coverage.mjs b/scripts/template-gallery-coverage.mjs index 4d97b974..e7ba4eed 100644 --- a/scripts/template-gallery-coverage.mjs +++ b/scripts/template-gallery-coverage.mjs @@ -5,6 +5,7 @@ import { fileURLToPath } from 'node:url'; import { decodedMediaHash, + decodedMediaHashMatches, galleryExpectedOutput, loadTemplateRuntime, technicalMediaErrors, @@ -50,13 +51,22 @@ for (const template of runtime.templates) { const currentEvidence = evidence ? runtime.findManifestEntry(template, { ...manifest, examples: [evidence] }) : undefined; + const nativePreview = runtime.isRetainedVideoPreview(template, currentEvidence); let technicalErrors = []; if (template.example?.mediaType === 'video' && currentEvidence?.outputPath) { const outputPath = publicMediaPath(currentEvidence.outputPath); if (outputPath) { try { const decoded = await decodedMediaHash(outputPath, 'video'); - technicalErrors = technicalMediaErrors(decoded, galleryExpectedOutput(template), 'video'); + technicalErrors = technicalMediaErrors( + decoded, + galleryExpectedOutput(template), + 'video', + nativePreview ? template.example.retainedVideoPreview : undefined, + ); + if (nativePreview && !decodedMediaHashMatches(decoded, currentEvidence.mediaHash)) { + technicalErrors.push('The retained preview differs from the approved decoded video.'); + } } catch (error) { technicalErrors = [String(error)]; } @@ -65,9 +75,11 @@ for (const template of runtime.templates) { const motionPreview = template.example?.mediaType !== 'video' || Boolean( - currentEvidence?.cardPreviewPath && - publicMediaExists(currentEvidence.cardPreviewPath) && - currentEvidence.cardPreviewSha256 === publicMediaSha256(currentEvidence.cardPreviewPath), + nativePreview + ? publicMediaExists(currentEvidence.outputPath) + : currentEvidence?.cardPreviewPath && + publicMediaExists(currentEvidence.cardPreviewPath) && + currentEvidence.cardPreviewSha256 === publicMediaSha256(currentEvidence.cardPreviewPath), ); const evidenceChecks = { manifest: Boolean(currentEvidence), diff --git a/scripts/template-gallery-harness.mjs b/scripts/template-gallery-harness.mjs index f29a6ece..783f0f29 100644 --- a/scripts/template-gallery-harness.mjs +++ b/scripts/template-gallery-harness.mjs @@ -1843,7 +1843,9 @@ export function technicalMediaErrors(decoded, expected = {}, mediaType = 'image' if (mediaType === 'video') { const retainedClip = retainedVideoPreviewMatches(retainedVideoPreview, { ...decoded, - mediaHash: decodedMediaHashMatches(decoded, retainedVideoPreview?.mediaHash) ? retainedVideoPreview.mediaHash : decoded.hash, + mediaHash: decodedMediaHashMatches(decoded, retainedVideoPreview?.mediaHash) + ? retainedVideoPreview.mediaHash + : decoded.hash, }); const requestedMotionProfile = expected.motionReviewProfile ?? DEFAULT_MOTION_REVIEW_PROFILE; const hasKnownMotionProfile = Object.hasOwn(MOTION_REVIEW_PROFILES, requestedMotionProfile); @@ -1887,7 +1889,10 @@ export function technicalMediaErrors(decoded, expected = {}, mediaType = 'image' } const shortEdge = Math.min(Number(decoded.width ?? 0), Number(decoded.height ?? 0)); const longEdge = Math.max(Number(decoded.width ?? 0), Number(decoded.height ?? 0)); - if (!retainedClip && (shortEdge < MINIMUM_TEMPLATE_VIDEO_SHORT_EDGE || longEdge < MINIMUM_TEMPLATE_VIDEO_LONG_EDGE)) { + if ( + !retainedClip && + (shortEdge < MINIMUM_TEMPLATE_VIDEO_SHORT_EDGE || longEdge < MINIMUM_TEMPLATE_VIDEO_LONG_EDGE) + ) { errors.push( `video delivery resolution must be at least ${MINIMUM_TEMPLATE_VIDEO_LONG_EDGE}x${MINIMUM_TEMPLATE_VIDEO_SHORT_EDGE}`, ); diff --git a/scripts/template-quality.test.mjs b/scripts/template-quality.test.mjs index ba60415f..d966a4d6 100644 --- a/scripts/template-quality.test.mjs +++ b/scripts/template-quality.test.mjs @@ -25,7 +25,7 @@ before(async () => { }); qualityModule = await server.ssrLoadModule('/src/studio/templateQuality.ts'); templatesModule = await server.ssrLoadModule('/src/studio/templates.ts'); - const { APPROVED_RETAINED_BATCH } = await server.ssrLoadModule('/src/studio/retainedGalleryApprovedBatch.ts'); + const { APPROVED_RETAINED_BATCH } = await server.ssrLoadModule('/scripts/retained-gallery-recipes.ts'); retainedRecipeIds = new Set(APPROVED_RETAINED_BATCH.map(({ template }) => template.id)); }); diff --git a/scripts/template-stage-coverage.test.mjs b/scripts/template-stage-coverage.test.mjs index a6b71a44..8ddfac98 100644 --- a/scripts/template-stage-coverage.test.mjs +++ b/scripts/template-stage-coverage.test.mjs @@ -23,7 +23,7 @@ before(async () => { appType: 'custom', }); ({ STUDIO_TEMPLATES: templates } = await server.ssrLoadModule('/src/studio/templates.ts')); - ({ RETAINED_GALLERY_TEMPLATES: retained } = await server.ssrLoadModule('/src/studio/retainedGalleryTemplates.ts')); + ({ RETAINED_GALLERY_TEMPLATES: retained } = await server.ssrLoadModule('/scripts/retained-gallery-recipes.ts')); selections = await server.ssrLoadModule('/src/studio/templateOperationSelections.ts'); }); after(async () => server?.close()); diff --git a/scripts/workflow-library-generator.mjs b/scripts/workflow-library-generator.mjs index 721327e4..f38f51ea 100644 --- a/scripts/workflow-library-generator.mjs +++ b/scripts/workflow-library-generator.mjs @@ -321,7 +321,7 @@ async function main() { }); let auxiliarySources, remapOperationAuthoring, expandCanonicalBlocks, retainedTemplateIds; try { - const { RETAINED_GALLERY_TEMPLATES } = await parserServer.ssrLoadModule('/src/studio/retainedGalleryTemplates.ts'); + const { RETAINED_GALLERY_TEMPLATES } = await parserServer.ssrLoadModule('/scripts/retained-gallery-recipes.ts'); retainedTemplateIds = new Set(RETAINED_GALLERY_TEMPLATES.map(({ template }) => template.id)); const templates = requestedTemplateId ? (await parserServer.ssrLoadModule('/src/studio/templates.ts')).STUDIO_TEMPLATES diff --git a/src/components/TemplateBrowserDialog.tsx b/src/components/TemplateBrowserDialog.tsx index da74c604..8ba1e870 100644 --- a/src/components/TemplateBrowserDialog.tsx +++ b/src/components/TemplateBrowserDialog.tsx @@ -1311,15 +1311,13 @@ function TemplateRecipeDetail({ const retainedPreview = isRetainedVideoPreview(template, detailManifestEntry); const manifestPoster = retainedPreview ? detailManifestEntry?.posterPath - : detailManifestEntry?.thumbnailPath ?? detailManifestEntry?.posterPath; + : (detailManifestEntry?.thumbnailPath ?? detailManifestEntry?.posterPath); const bundledSourcePreview = template.inputBindings ?.filter((binding) => binding.origin === 'template') .flatMap((binding) => binding.defaultAssets) .find((asset) => asset.previewPath)?.previewPath; const thumbnailPath = - showcase?.mediaPath ?? - templateManifestPath(manifestPoster) ?? - templateExampleThumbnailPath(template); + showcase?.mediaPath ?? templateManifestPath(manifestPoster) ?? templateExampleThumbnailPath(template); const beforePath = showcase ? undefined : templateManifestPath(sourceEntry?.beforePath ?? bundledSourcePreview); const afterPath = showcase?.mediaPath ?? templateManifestPath(detailManifestEntry?.afterPath ?? detailManifestEntry?.outputPath); diff --git a/src/studio/retainedGalleryApprovedBatch.ts b/src/studio/retainedGalleryApprovedBatch.ts index ae045ee8..565e08ef 100644 --- a/src/studio/retainedGalleryApprovedBatch.ts +++ b/src/studio/retainedGalleryApprovedBatch.ts @@ -1,4432 +1,3928 @@ -import type { RetainedGalleryRecipe } from './retainedGalleryTemplates'; +import type { StudioTemplate } from './types'; -export const APPROVED_RETAINED_BATCH: RetainedGalleryRecipe[] = [ +export const APPROVED_RETAINED_TEMPLATES: StudioTemplate[] = [ { - workflowId: 'StableDiffusionPipeline:edit_image', - sourceTaskTemplateId: 'task-template:sd15-base:edit-image:v1', - retainedGraphHash: 'sha256:canonical-graph-v1:e5a47286938233b67cc7bec938b43449fdbf4dd46a028f200cce4471158267e2', - originalReceiptSha256: 'ce72fd7e5d5f263f68f94ae15778a596a3161c38c0f4092531f0c719b78667d8', - reviewedTemplateSha256: '81ebe61010abc66045694e149989c24310c3a181d46fab2b644ac0a0bafffcae', - reviewedCatalogLock: { - templateLockHash: 'tpl_8c19d0a7', - galleryTemplateLockHash: 'tpl_0816c26c', - promptSettingsHash: 'ps_9f1fefe2', - }, - promptSha256: '8aeb1e7983a533609ac97ac6366f042be91fc806047b8e0cfe251abef9accaf1', - inputSha256: '88290a96bc8d52f11f2d1e3c0c0e04c2027661816e54b57d7d4739d731ca1e75', - inputLocatorSha256: 'b7e9b68e47a60f438c82f778b960f66d58d319de50749d453a9aa0c30c4df45a', - template: { - id: 'alpine_lake_in_oils', - label: 'Stable Diffusion 1.5 — Edit image: Alpine Lake in Oils', - mode: 'edit_image', - modelType: 'StableDiffusionPipeline', - intentGroup: 'edit_image', - category: 'edit', - inputBindings: [ - { - id: 'source-image', - label: 'Source image', - mediaType: 'image', - origin: 'user', - requiredAt: 'workflow_start', - field: 'referenceImages', - count: 1, - }, - ], - outputKinds: ['image'], - readinessPolicy: 'requires_input', - modelArtifact: { - source: 'hub', - value: 'stable-diffusion-v1-5/stable-diffusion-v1-5', - revision: '451f4fe16113bff5a5d2269ed5ad43b0592e9a14', - }, - description: - 'Reproduce the reviewed Alpine Lake in Oils example with the saved prompt, settings and model revision.', - prompt: - 'A small hand-painted alpine landscape in thick impasto oil paint, palette-knife strokes and a clearly visible linen canvas texture. A central dark green larch stands on a pale rocky islet, with blue and snowy mountain shapes behind it and a still emerald glacial lake below. Build the scene from broad overlapping patches of cobalt, white and teal, deliberately textured and visibly brush-painted. Noon light, coherent reflection, square fine art study.', - negativePrompt: '', - example: { + id: 'alpine_lake_in_oils', + label: 'Stable Diffusion 1.5 — Edit image: Alpine Lake in Oils', + mode: 'edit_image', + modelType: 'StableDiffusionPipeline', + intentGroup: 'edit_image', + category: 'edit', + inputBindings: [ + { + id: 'source-image', + label: 'Source image', mediaType: 'image', - status: 'unverified', - modelRevision: '451f4fe16113bff5a5d2269ed5ad43b0592e9a14', - lockedSeed: 42, - lockedSettings: { - width: 512, - height: 512, - steps: 30, - guidanceScale: 7.5, - strength: 0.8, - outputType: 'pil', - maxSequenceLength: 512, - dtype: 'float32', - resourceMode: 'expert', - quantizationMode: 'none', - autoOffload: false, - offloadMode: 'none', - }, - expectedOutput: { - width: 1024, - height: 1024, - }, - runtimeEstimate: '30.28 seconds in the saved run', - }, - requiredBackendCapabilities: [ - 'modules.DiffusersImage.Edit', - 'modules.DiffusersImage.LoadPipeline', - 'modules.DiffusersRuntime.PipelineQuantizationConfigV2', - 'modules.DiffusersRuntime.DiffusersExecutionRecipe', - 'modules.Image.Load', - 'modules.Image.Preview', - ], - mediaSlots: [ - { - id: 'before', - label: 'Source image', - kind: 'comparison_before', - role: 'before', - placeholder: 'Source pending', - }, - { - id: 'after', - label: 'Generated image', - kind: 'comparison_after', - role: 'after', - placeholder: 'Preview pending', - }, - ], - thumbnailVariant: 'compareSlider', - recipeSummary: - 'Reproduce the reviewed Alpine Lake in Oils example with the saved prompt, settings and model revision.', - runtimeReuseKey: 'sha256:canonical-graph-v1:e5a47286938233b67cc7bec938b43449fdbf4dd46a028f200cce4471158267e2', - }, + origin: 'user', + requiredAt: 'workflow_start', + field: 'referenceImages', + count: 1, + }, + ], + outputKinds: ['image'], + readinessPolicy: 'requires_input', + modelArtifact: { + source: 'hub', + value: 'stable-diffusion-v1-5/stable-diffusion-v1-5', + revision: '451f4fe16113bff5a5d2269ed5ad43b0592e9a14', + }, + description: + 'Reproduce the reviewed Alpine Lake in Oils example with the saved prompt, settings and model revision.', + prompt: + 'A small hand-painted alpine landscape in thick impasto oil paint, palette-knife strokes and a clearly visible linen canvas texture. A central dark green larch stands on a pale rocky islet, with blue and snowy mountain shapes behind it and a still emerald glacial lake below. Build the scene from broad overlapping patches of cobalt, white and teal, deliberately textured and visibly brush-painted. Noon light, coherent reflection, square fine art study.', + negativePrompt: '', + example: { + mediaType: 'image', + status: 'unverified', + modelRevision: '451f4fe16113bff5a5d2269ed5ad43b0592e9a14', + lockedSeed: 42, + lockedSettings: { + width: 512, + height: 512, + steps: 30, + guidanceScale: 7.5, + strength: 0.8, + outputType: 'pil', + maxSequenceLength: 512, + dtype: 'float32', + resourceMode: 'expert', + quantizationMode: 'none', + autoOffload: false, + offloadMode: 'none', + }, + expectedOutput: { + width: 1024, + height: 1024, + }, + runtimeEstimate: '30.28 seconds in the saved run', + }, + requiredBackendCapabilities: [ + 'modules.DiffusersImage.Edit', + 'modules.DiffusersImage.LoadPipeline', + 'modules.DiffusersRuntime.PipelineQuantizationConfigV2', + 'modules.DiffusersRuntime.DiffusersExecutionRecipe', + 'modules.Image.Load', + 'modules.Image.Preview', + ], + mediaSlots: [ + { + id: 'before', + label: 'Source image', + kind: 'comparison_before', + role: 'before', + placeholder: 'Source pending', + }, + { + id: 'after', + label: 'Generated image', + kind: 'comparison_after', + role: 'after', + placeholder: 'Preview pending', + }, + ], + thumbnailVariant: 'compareSlider', + recipeSummary: + 'Reproduce the reviewed Alpine Lake in Oils example with the saved prompt, settings and model revision.', + runtimeReuseKey: 'sha256:canonical-graph-v1:e5a47286938233b67cc7bec938b43449fdbf4dd46a028f200cce4471158267e2', }, { - workflowId: 'ErnieImagePipeline:text_to_image', - sourceTaskTemplateId: 'task-template:ernie-image-turbo:text-to-image:v1', - retainedGraphHash: 'sha256:canonical-graph-v1:f12eab7de9d1be025dee6d2466013865b35a67d145813a1faf68c1e4d0ff034c', - originalReceiptSha256: '45f9a07cbd540055ad63000eb928be4a1b685c4b622bf46b84c98784e2c61139', - reviewedTemplateSha256: '160e77d5c28132522b0cbf5f3102b812a4e8be9eff09f321db0c5853905cab5e', - reviewedCatalogLock: { - templateLockHash: 'tpl_502a4ae7', - galleryTemplateLockHash: 'tpl_14707aaf', - promptSettingsHash: 'ps_cf9a00e5', - }, - promptSha256: '767ac6934d73853bdb2b07521107727f936eec375361a0eba6dd64dfc5a1b63d', - template: { - id: 'bookshop_at_blue_hour', - label: 'ERNIE Image Turbo — Text to image: Bookshop at Blue Hour', - mode: 'text_to_image', - modelType: 'ErnieImagePipeline', - intentGroup: 'generate_image', - category: 'concept', - inputBindings: [], - outputKinds: ['image'], - readinessPolicy: 'runnable', - modelArtifact: { - source: 'hub', - value: 'baidu/ERNIE-Image-Turbo', - revision: 'bc68c81e2a1730a394d5fc9fae70713dee940140', - }, - description: - 'Reproduce the reviewed Bookshop at Blue Hour example with the saved prompt, settings and model revision.', - prompt: - 'Night photograph of a small independent bookstore on a narrow brick lane. A warm reading lamp glows behind the tall front window. Outside, a burgundy bicycle leans against the wall, two wheels visible in side profile. Rain-dark bricks, old plaster, reflections on cobblestones, clear warm window light against cool night shadows.', - negativePrompt: '', - example: { - mediaType: 'image', - status: 'unverified', - modelRevision: 'bc68c81e2a1730a394d5fc9fae70713dee940140', - lockedSeed: 42, - lockedSettings: { - width: 1024, - height: 1024, - steps: 8, - guidanceScale: 1, - strength: 0.8, - outputType: 'pil', - maxSequenceLength: 2048, - dtype: 'bfloat16', - resourceMode: 'expert', - quantizationMode: 'none', - autoOffload: true, - offloadMode: 'model_cpu', - }, - expectedOutput: { - width: 1024, - height: 1024, - }, - runtimeEstimate: '101.84 seconds in the saved run', - }, - requiredBackendCapabilities: [ - 'modules.DiffusersImage.Generate', - 'modules.DiffusersImage.LoadPipeline', - 'modules.DiffusersRuntime.PipelineQuantizationConfigV2', - 'modules.DiffusersRuntime.DiffusersExecutionRecipe', - 'modules.Image.Preview', - ], - mediaSlots: [ - { - id: 'result', - label: 'Generated image', - kind: 'image', - role: 'output', - placeholder: 'Result pending', - }, - ], - recipeSummary: - 'Reproduce the reviewed Bookshop at Blue Hour example with the saved prompt, settings and model revision.', - runtimeReuseKey: 'sha256:canonical-graph-v1:f12eab7de9d1be025dee6d2466013865b35a67d145813a1faf68c1e4d0ff034c', - }, + id: 'bookshop_at_blue_hour', + label: 'ERNIE Image Turbo — Text to image: Bookshop at Blue Hour', + mode: 'text_to_image', + modelType: 'ErnieImagePipeline', + intentGroup: 'generate_image', + category: 'concept', + inputBindings: [], + outputKinds: ['image'], + readinessPolicy: 'runnable', + modelArtifact: { + source: 'hub', + value: 'baidu/ERNIE-Image-Turbo', + revision: 'bc68c81e2a1730a394d5fc9fae70713dee940140', + }, + description: + 'Reproduce the reviewed Bookshop at Blue Hour example with the saved prompt, settings and model revision.', + prompt: + 'Night photograph of a small independent bookstore on a narrow brick lane. A warm reading lamp glows behind the tall front window. Outside, a burgundy bicycle leans against the wall, two wheels visible in side profile. Rain-dark bricks, old plaster, reflections on cobblestones, clear warm window light against cool night shadows.', + negativePrompt: '', + example: { + mediaType: 'image', + status: 'unverified', + modelRevision: 'bc68c81e2a1730a394d5fc9fae70713dee940140', + lockedSeed: 42, + lockedSettings: { + width: 1024, + height: 1024, + steps: 8, + guidanceScale: 1, + strength: 0.8, + outputType: 'pil', + maxSequenceLength: 2048, + dtype: 'bfloat16', + resourceMode: 'expert', + quantizationMode: 'none', + autoOffload: true, + offloadMode: 'model_cpu', + }, + expectedOutput: { + width: 1024, + height: 1024, + }, + runtimeEstimate: '101.84 seconds in the saved run', + }, + requiredBackendCapabilities: [ + 'modules.DiffusersImage.Generate', + 'modules.DiffusersImage.LoadPipeline', + 'modules.DiffusersRuntime.PipelineQuantizationConfigV2', + 'modules.DiffusersRuntime.DiffusersExecutionRecipe', + 'modules.Image.Preview', + ], + mediaSlots: [ + { + id: 'result', + label: 'Generated image', + kind: 'image', + role: 'output', + placeholder: 'Result pending', + }, + ], + recipeSummary: + 'Reproduce the reviewed Bookshop at Blue Hour example with the saved prompt, settings and model revision.', + runtimeReuseKey: 'sha256:canonical-graph-v1:f12eab7de9d1be025dee6d2466013865b35a67d145813a1faf68c1e4d0ff034c', }, { - workflowId: 'OvisImagePipeline:text_to_image', - sourceTaskTemplateId: 'task-template:ovis-image-7b:text-to-image:v1', - retainedGraphHash: 'sha256:canonical-graph-v1:12380dcafddc7153ecd5f02ced0b95c58031228dc7825e3914f22dae90489999', - originalReceiptSha256: '37580a349097d0a2e201a6daa48f3cc541c62260306e4153c4995e2d0615a72c', - reviewedTemplateSha256: 'a113786c4f56e30b9f8c024d9e71abd7e84419b59bafe097bee8cd40b7074687', - reviewedCatalogLock: { - templateLockHash: 'tpl_3f0f58ac', - galleryTemplateLockHash: 'tpl_3ba52cb2', - promptSettingsHash: 'ps_1e317563', - }, - promptSha256: '0250d3ccd73f7db3eabae81abe1590befc673f4bc9e68506c134c84a6a3ff1a8', - template: { - id: 'flowers_after_rain', - label: 'Ovis Image 7B — Text to image: Flowers After Rain', - mode: 'text_to_image', - modelType: 'OvisImagePipeline', - intentGroup: 'generate_image', - category: 'concept', - inputBindings: [], - outputKinds: ['image'], - readinessPolicy: 'runnable', - modelArtifact: { - source: 'hub', - value: 'ATH-MaaS/Ovis-Image-7B', - revision: '41be1c5821a92c970d63d7eb595a2fd3fe32b22e', - }, - description: - 'Reproduce the reviewed Flowers After Rain example with the saved prompt, settings and model revision.', - prompt: - 'Editorial photograph of a quiet old-town flower stall just after rain, early morning. A single bundle of pale pink tulips in a tall ribbed galvanized bucket beside one short brown ceramic vase with yellow narcissus. Pale blue painted folding shop door behind the flowers, dark wet stone underfoot, reflected blue near the door. Low three-quarter perspective, diffuse window light, realistic petal texture and tiny droplets, crisp front flowers, softly blurred deep alley in the upper corner. Natural hand-crafted setting, no signs or labels.', - negativePrompt: '', - example: { - mediaType: 'image', - status: 'unverified', - modelRevision: '41be1c5821a92c970d63d7eb595a2fd3fe32b22e', - lockedSeed: 42, - lockedSettings: { - width: 1024, - height: 1024, - steps: 50, - guidanceScale: 5, - strength: 0.8, - outputType: 'pil', - maxSequenceLength: 256, - dtype: 'bfloat16', - resourceMode: 'expert', - quantizationMode: 'none', - autoOffload: true, - offloadMode: 'model_cpu', - }, - expectedOutput: { - width: 1024, - height: 1024, - }, - runtimeEstimate: '264.86 seconds in the saved run', - }, - requiredBackendCapabilities: [ - 'modules.DiffusersImage.Generate', - 'modules.DiffusersImage.LoadPipeline', - 'modules.DiffusersRuntime.PipelineQuantizationConfigV2', - 'modules.DiffusersRuntime.DiffusersExecutionRecipe', - 'modules.Image.Preview', - ], - mediaSlots: [ - { - id: 'result', - label: 'Generated image', - kind: 'image', - role: 'output', - placeholder: 'Result pending', - }, - ], - recipeSummary: - 'Reproduce the reviewed Flowers After Rain example with the saved prompt, settings and model revision.', - runtimeReuseKey: 'sha256:canonical-graph-v1:12380dcafddc7153ecd5f02ced0b95c58031228dc7825e3914f22dae90489999', - }, + id: 'flowers_after_rain', + label: 'Ovis Image 7B — Text to image: Flowers After Rain', + mode: 'text_to_image', + modelType: 'OvisImagePipeline', + intentGroup: 'generate_image', + category: 'concept', + inputBindings: [], + outputKinds: ['image'], + readinessPolicy: 'runnable', + modelArtifact: { + source: 'hub', + value: 'ATH-MaaS/Ovis-Image-7B', + revision: '41be1c5821a92c970d63d7eb595a2fd3fe32b22e', + }, + description: + 'Reproduce the reviewed Flowers After Rain example with the saved prompt, settings and model revision.', + prompt: + 'Editorial photograph of a quiet old-town flower stall just after rain, early morning. A single bundle of pale pink tulips in a tall ribbed galvanized bucket beside one short brown ceramic vase with yellow narcissus. Pale blue painted folding shop door behind the flowers, dark wet stone underfoot, reflected blue near the door. Low three-quarter perspective, diffuse window light, realistic petal texture and tiny droplets, crisp front flowers, softly blurred deep alley in the upper corner. Natural hand-crafted setting, no signs or labels.', + negativePrompt: '', + example: { + mediaType: 'image', + status: 'unverified', + modelRevision: '41be1c5821a92c970d63d7eb595a2fd3fe32b22e', + lockedSeed: 42, + lockedSettings: { + width: 1024, + height: 1024, + steps: 50, + guidanceScale: 5, + strength: 0.8, + outputType: 'pil', + maxSequenceLength: 256, + dtype: 'bfloat16', + resourceMode: 'expert', + quantizationMode: 'none', + autoOffload: true, + offloadMode: 'model_cpu', + }, + expectedOutput: { + width: 1024, + height: 1024, + }, + runtimeEstimate: '264.86 seconds in the saved run', + }, + requiredBackendCapabilities: [ + 'modules.DiffusersImage.Generate', + 'modules.DiffusersImage.LoadPipeline', + 'modules.DiffusersRuntime.PipelineQuantizationConfigV2', + 'modules.DiffusersRuntime.DiffusersExecutionRecipe', + 'modules.Image.Preview', + ], + mediaSlots: [ + { + id: 'result', + label: 'Generated image', + kind: 'image', + role: 'output', + placeholder: 'Result pending', + }, + ], + recipeSummary: + 'Reproduce the reviewed Flowers After Rain example with the saved prompt, settings and model revision.', + runtimeReuseKey: 'sha256:canonical-graph-v1:12380dcafddc7153ecd5f02ced0b95c58031228dc7825e3914f22dae90489999', }, { - workflowId: 'GlmImagePipeline:text_to_image', - sourceTaskTemplateId: 'task-template:glm-image:text-to-image:v1', - retainedGraphHash: 'sha256:canonical-graph-v1:ff052e8de129d2eef0f849f457336a1dfce83bd0b7443e1dc5802d0608e0781e', - originalReceiptSha256: '193b411fea187862b1af32edf24623f0cfd75a9f0d856a66b07fe99b1e562833', - reviewedTemplateSha256: '6a6e34ea5e9b0dec925e0ce13a0422fc00c65754f867c44e3105bfdb9d03c305', - reviewedCatalogLock: { - templateLockHash: 'tpl_8cbb3432', - galleryTemplateLockHash: 'tpl_be9fadb4', - promptSettingsHash: 'ps_975f83ff', - }, - promptSha256: 'e4e5455d0f55ea6ae1f3061bdb8462de4ddffa2a230462a2010ebd3d443b1f50', - template: { - id: 'forest_ferns', - label: 'GLM-Image — Text to image: Forest Ferns', - mode: 'text_to_image', - modelType: 'GlmImagePipeline', - intentGroup: 'generate_image', - category: 'concept', - inputBindings: [], - outputKinds: ['image'], - readinessPolicy: 'runnable', - modelArtifact: { - source: 'hub', - value: 'zai-org/GLM-Image', - revision: '2c433cc0cbc293bde2ac8ca9624f279b5d23fcf4', - }, - description: 'Reproduce the reviewed Forest Ferns example with the saved prompt, settings and model revision.', - prompt: - 'A flat, unframed botanical exhibition print on ivory cotton paper, photographed square-on in even light. At the top, one wide line of large dark green block letters reads "FOREST FERNS". This is the sole line of lettering on the print. Beneath it, a centered hand-engraved specimen shows three graceful fern fronds with individual leaflets and curled fiddleheads, printed in a single forest-green ink. The bottom quarter is open ivory paper. There is generous open space between the title and the illustration. Dry letterpress texture and precise natural shapes.', - negativePrompt: '', - example: { - mediaType: 'image', - status: 'unverified', - modelRevision: '2c433cc0cbc293bde2ac8ca9624f279b5d23fcf4', - lockedSeed: 42, - lockedSettings: { - width: 1024, - height: 1024, - steps: 50, - guidanceScale: 1.5, - strength: 0.8, - outputType: 'pil', - maxSequenceLength: 2048, - dtype: 'bfloat16', - resourceMode: 'expert', - quantizationMode: 'none', - autoOffload: true, - offloadMode: 'model_cpu', - }, - expectedOutput: { - width: 1024, - height: 1024, - }, - runtimeEstimate: '512.24 seconds in the saved run', - }, - requiredBackendCapabilities: [ - 'modules.DiffusersImage.Generate', - 'modules.DiffusersImage.LoadPipeline', - 'modules.DiffusersRuntime.PipelineQuantizationConfigV2', - 'modules.DiffusersRuntime.DiffusersExecutionRecipe', - 'modules.Image.Preview', - ], - mediaSlots: [ - { - id: 'result', - label: 'Generated image', - kind: 'image', - role: 'output', - placeholder: 'Result pending', - }, - ], - recipeSummary: 'Reproduce the reviewed Forest Ferns example with the saved prompt, settings and model revision.', - runtimeReuseKey: 'sha256:canonical-graph-v1:ff052e8de129d2eef0f849f457336a1dfce83bd0b7443e1dc5802d0608e0781e', - }, + id: 'forest_ferns', + label: 'GLM-Image — Text to image: Forest Ferns', + mode: 'text_to_image', + modelType: 'GlmImagePipeline', + intentGroup: 'generate_image', + category: 'concept', + inputBindings: [], + outputKinds: ['image'], + readinessPolicy: 'runnable', + modelArtifact: { + source: 'hub', + value: 'zai-org/GLM-Image', + revision: '2c433cc0cbc293bde2ac8ca9624f279b5d23fcf4', + }, + description: 'Reproduce the reviewed Forest Ferns example with the saved prompt, settings and model revision.', + prompt: + 'A flat, unframed botanical exhibition print on ivory cotton paper, photographed square-on in even light. At the top, one wide line of large dark green block letters reads "FOREST FERNS". This is the sole line of lettering on the print. Beneath it, a centered hand-engraved specimen shows three graceful fern fronds with individual leaflets and curled fiddleheads, printed in a single forest-green ink. The bottom quarter is open ivory paper. There is generous open space between the title and the illustration. Dry letterpress texture and precise natural shapes.', + negativePrompt: '', + example: { + mediaType: 'image', + status: 'unverified', + modelRevision: '2c433cc0cbc293bde2ac8ca9624f279b5d23fcf4', + lockedSeed: 42, + lockedSettings: { + width: 1024, + height: 1024, + steps: 50, + guidanceScale: 1.5, + strength: 0.8, + outputType: 'pil', + maxSequenceLength: 2048, + dtype: 'bfloat16', + resourceMode: 'expert', + quantizationMode: 'none', + autoOffload: true, + offloadMode: 'model_cpu', + }, + expectedOutput: { + width: 1024, + height: 1024, + }, + runtimeEstimate: '512.24 seconds in the saved run', + }, + requiredBackendCapabilities: [ + 'modules.DiffusersImage.Generate', + 'modules.DiffusersImage.LoadPipeline', + 'modules.DiffusersRuntime.PipelineQuantizationConfigV2', + 'modules.DiffusersRuntime.DiffusersExecutionRecipe', + 'modules.Image.Preview', + ], + mediaSlots: [ + { + id: 'result', + label: 'Generated image', + kind: 'image', + role: 'output', + placeholder: 'Result pending', + }, + ], + recipeSummary: 'Reproduce the reviewed Forest Ferns example with the saved prompt, settings and model revision.', + runtimeReuseKey: 'sha256:canonical-graph-v1:ff052e8de129d2eef0f849f457336a1dfce83bd0b7443e1dc5802d0608e0781e', }, { - workflowId: 'CogView3PlusPipeline:text_to_image', - sourceTaskTemplateId: 'task-template:cogview3-plus-3b:text-to-image:v1', - retainedGraphHash: 'sha256:canonical-graph-v1:063bf00e554a6d90e9fab896c09f23b976d423fc4c82da89c7471ac21a81eb57', - originalReceiptSha256: '19c1e125e259b8b0e22a5bf5c03ab7c105a8302fc69b7e63c61796d7b7496744', - reviewedTemplateSha256: 'b5e4c8446f01030c05a206290d9ed0c1e5035cd3110f0fb6a9e6e3c416ad5177', - reviewedCatalogLock: { - templateLockHash: 'tpl_791ad974', - galleryTemplateLockHash: 'tpl_f93a2d5c', - promptSettingsHash: 'ps_f36e5dd5', - }, - promptSha256: '2483828af4f90e3e8b07e47b32c754c7970b1f30c4e8cfbd0c4a0e66f6b987f3', - template: { - id: 'ochre_paper_pavilion', - label: 'CogView3 Plus 3B — Text to image: Ochre Paper Pavilion', - mode: 'text_to_image', - modelType: 'CogView3PlusPipeline', - intentGroup: 'generate_image', - category: 'concept', - inputBindings: [], - outputKinds: ['image'], - readinessPolicy: 'runnable', - modelArtifact: { - source: 'hub', - value: 'zai-org/CogView3-Plus-3B', - revision: '5d70e40732ac0efac98524c51a7fa9c82707f1e5', - }, - description: - 'Reproduce the reviewed Ochre Paper Pavilion example with the saved prompt, settings and model revision.', - prompt: - 'A single piece of thick ochre paper folded into a small triangular pavilion, standing on a dark indigo tabletop. The pavilion has two clear sloping paper planes and a simple triangular opening facing the camera. A narrow beam of late afternoon light from the left reveals the matte paper fibres and casts one long crisp shadow to the right. Low three-quarter view, deep indigo background, a finely crafted architectural paper study, one object in a spacious square composition.', - negativePrompt: '', - example: { - mediaType: 'image', - status: 'unverified', - modelRevision: '5d70e40732ac0efac98524c51a7fa9c82707f1e5', - lockedSeed: 42, - lockedSettings: { - width: 1024, - height: 1024, - steps: 50, - guidanceScale: 7, - strength: 0.8, - outputType: 'pil', - maxSequenceLength: 224, - dtype: 'bfloat16', - resourceMode: 'expert', - quantizationMode: 'none', - autoOffload: true, - offloadMode: 'model_cpu', - }, - expectedOutput: { - width: 1024, - height: 1024, - }, - runtimeEstimate: '225.07 seconds in the saved run', - }, - requiredBackendCapabilities: [ - 'modules.DiffusersImage.Generate', - 'modules.DiffusersImage.LoadPipeline', - 'modules.DiffusersRuntime.PipelineQuantizationConfigV2', - 'modules.DiffusersRuntime.DiffusersExecutionRecipe', - 'modules.Image.Preview', - ], - mediaSlots: [ - { - id: 'result', - label: 'Generated image', - kind: 'image', - role: 'output', - placeholder: 'Result pending', - }, - ], - recipeSummary: - 'Reproduce the reviewed Ochre Paper Pavilion example with the saved prompt, settings and model revision.', - runtimeReuseKey: 'sha256:canonical-graph-v1:063bf00e554a6d90e9fab896c09f23b976d423fc4c82da89c7471ac21a81eb57', - }, + id: 'ochre_paper_pavilion', + label: 'CogView3 Plus 3B — Text to image: Ochre Paper Pavilion', + mode: 'text_to_image', + modelType: 'CogView3PlusPipeline', + intentGroup: 'generate_image', + category: 'concept', + inputBindings: [], + outputKinds: ['image'], + readinessPolicy: 'runnable', + modelArtifact: { + source: 'hub', + value: 'zai-org/CogView3-Plus-3B', + revision: '5d70e40732ac0efac98524c51a7fa9c82707f1e5', + }, + description: + 'Reproduce the reviewed Ochre Paper Pavilion example with the saved prompt, settings and model revision.', + prompt: + 'A single piece of thick ochre paper folded into a small triangular pavilion, standing on a dark indigo tabletop. The pavilion has two clear sloping paper planes and a simple triangular opening facing the camera. A narrow beam of late afternoon light from the left reveals the matte paper fibres and casts one long crisp shadow to the right. Low three-quarter view, deep indigo background, a finely crafted architectural paper study, one object in a spacious square composition.', + negativePrompt: '', + example: { + mediaType: 'image', + status: 'unverified', + modelRevision: '5d70e40732ac0efac98524c51a7fa9c82707f1e5', + lockedSeed: 42, + lockedSettings: { + width: 1024, + height: 1024, + steps: 50, + guidanceScale: 7, + strength: 0.8, + outputType: 'pil', + maxSequenceLength: 224, + dtype: 'bfloat16', + resourceMode: 'expert', + quantizationMode: 'none', + autoOffload: true, + offloadMode: 'model_cpu', + }, + expectedOutput: { + width: 1024, + height: 1024, + }, + runtimeEstimate: '225.07 seconds in the saved run', + }, + requiredBackendCapabilities: [ + 'modules.DiffusersImage.Generate', + 'modules.DiffusersImage.LoadPipeline', + 'modules.DiffusersRuntime.PipelineQuantizationConfigV2', + 'modules.DiffusersRuntime.DiffusersExecutionRecipe', + 'modules.Image.Preview', + ], + mediaSlots: [ + { + id: 'result', + label: 'Generated image', + kind: 'image', + role: 'output', + placeholder: 'Result pending', + }, + ], + recipeSummary: + 'Reproduce the reviewed Ochre Paper Pavilion example with the saved prompt, settings and model revision.', + runtimeReuseKey: 'sha256:canonical-graph-v1:063bf00e554a6d90e9fab896c09f23b976d423fc4c82da89c7471ac21a81eb57', }, { - workflowId: 'CogView4Pipeline:text_to_image', - sourceTaskTemplateId: 'task-template:cogview4-6b:text-to-image:v1', - retainedGraphHash: 'sha256:canonical-graph-v1:0870e1b5d6c05b496e120e383bc7c13c4fe1705efc5d918466900b9e906288d8', - originalReceiptSha256: '7cb177ef1dac774f3cb76c3f58cf246fbdbf7673a78e379ff54e7fba5fa1a85f', - reviewedTemplateSha256: 'c3c7aada8d0fc7bec8c4067c9c88fbb03d5210ee9f6412d1d5984b21879ab886', - reviewedCatalogLock: { - templateLockHash: 'tpl_13cc85b1', - galleryTemplateLockHash: 'tpl_57a6868c', - promptSettingsHash: 'ps_5d56d1da', - }, - promptSha256: '18d76f8a51049a51ea77cf436170824bf445ae8fa572893ee930ae11924d49d6', - template: { - id: 'quiet_current', - label: 'CogView4 6B — Text to image: Quiet Current', - mode: 'text_to_image', - modelType: 'CogView4Pipeline', - intentGroup: 'generate_image', - category: 'concept', - inputBindings: [], - outputKinds: ['image'], - readinessPolicy: 'runnable', - modelArtifact: { - source: 'hub', - value: 'zai-org/CogView4-6B', - revision: '63a52b7f6dace7033380cd6da14d0915eab3e6b5', - }, - description: 'Reproduce the reviewed Quiet Current example with the saved prompt, settings and model revision.', - prompt: - 'Front-facing editorial photograph of an original handmade concert poster on warm cream paper. Exact large title "QUIET CURRENT" above simple navy blue wave shapes. Small date "08 MAY" centered below, crisp letterpress, subtle paper fibers, legible dark ink.', - negativePrompt: '', - example: { - mediaType: 'image', - status: 'unverified', - modelRevision: '63a52b7f6dace7033380cd6da14d0915eab3e6b5', - lockedSeed: 42, - lockedSettings: { - width: 1024, - height: 1024, - steps: 50, - guidanceScale: 3.5, - strength: 0.8, - outputType: 'pil', - maxSequenceLength: 1024, - dtype: 'bfloat16', - resourceMode: 'expert', - quantizationMode: 'none', - autoOffload: true, - offloadMode: 'model_cpu', - }, - expectedOutput: { - width: 1024, - height: 1024, - }, - runtimeEstimate: '326.29 seconds in the saved run', - }, - requiredBackendCapabilities: [ - 'modules.DiffusersImage.Generate', - 'modules.DiffusersImage.LoadPipeline', - 'modules.DiffusersRuntime.PipelineQuantizationConfigV2', - 'modules.DiffusersRuntime.DiffusersExecutionRecipe', - 'modules.Image.Preview', - ], - mediaSlots: [ - { - id: 'result', - label: 'Generated image', - kind: 'image', - role: 'output', - placeholder: 'Result pending', - }, - ], - recipeSummary: 'Reproduce the reviewed Quiet Current example with the saved prompt, settings and model revision.', - runtimeReuseKey: 'sha256:canonical-graph-v1:0870e1b5d6c05b496e120e383bc7c13c4fe1705efc5d918466900b9e906288d8', - }, + id: 'quiet_current', + label: 'CogView4 6B — Text to image: Quiet Current', + mode: 'text_to_image', + modelType: 'CogView4Pipeline', + intentGroup: 'generate_image', + category: 'concept', + inputBindings: [], + outputKinds: ['image'], + readinessPolicy: 'runnable', + modelArtifact: { + source: 'hub', + value: 'zai-org/CogView4-6B', + revision: '63a52b7f6dace7033380cd6da14d0915eab3e6b5', + }, + description: 'Reproduce the reviewed Quiet Current example with the saved prompt, settings and model revision.', + prompt: + 'Front-facing editorial photograph of an original handmade concert poster on warm cream paper. Exact large title "QUIET CURRENT" above simple navy blue wave shapes. Small date "08 MAY" centered below, crisp letterpress, subtle paper fibers, legible dark ink.', + negativePrompt: '', + example: { + mediaType: 'image', + status: 'unverified', + modelRevision: '63a52b7f6dace7033380cd6da14d0915eab3e6b5', + lockedSeed: 42, + lockedSettings: { + width: 1024, + height: 1024, + steps: 50, + guidanceScale: 3.5, + strength: 0.8, + outputType: 'pil', + maxSequenceLength: 1024, + dtype: 'bfloat16', + resourceMode: 'expert', + quantizationMode: 'none', + autoOffload: true, + offloadMode: 'model_cpu', + }, + expectedOutput: { + width: 1024, + height: 1024, + }, + runtimeEstimate: '326.29 seconds in the saved run', + }, + requiredBackendCapabilities: [ + 'modules.DiffusersImage.Generate', + 'modules.DiffusersImage.LoadPipeline', + 'modules.DiffusersRuntime.PipelineQuantizationConfigV2', + 'modules.DiffusersRuntime.DiffusersExecutionRecipe', + 'modules.Image.Preview', + ], + mediaSlots: [ + { + id: 'result', + label: 'Generated image', + kind: 'image', + role: 'output', + placeholder: 'Result pending', + }, + ], + recipeSummary: 'Reproduce the reviewed Quiet Current example with the saved prompt, settings and model revision.', + runtimeReuseKey: 'sha256:canonical-graph-v1:0870e1b5d6c05b496e120e383bc7c13c4fe1705efc5d918466900b9e906288d8', }, { - workflowId: 'SanaPAGPipeline:text_to_image', - sourceTaskTemplateId: 'task-template:sana-600m-pag:text-to-image:v1', - retainedGraphHash: 'sha256:canonical-graph-v1:52c3114e98debe02d6e7a297276e67887d782628952ddb20ae88c499d7c6a356', - originalReceiptSha256: '2e80e952039cfbc7b42f7f1b5689f30fb8b8f83646e0f4c2f6cb8e3a68b8d784', - reviewedTemplateSha256: 'ddf39e419212cba10df50f7b27b3fae22d57a0cbfc574164bcad08975fa2545b', - reviewedCatalogLock: { - templateLockHash: 'tpl_fc97bb6a', - galleryTemplateLockHash: 'tpl_ef8db2a5', - promptSettingsHash: 'ps_8a0e2f0d', - }, - promptSha256: 'fb940b41391388f6221f47154824aac67e9c0f828de5581e1afd855ce2ec528d', - template: { - id: 'persimmon_glaze', - label: 'Sana 0.6B PAG — Text to image: Persimmon Glaze', - mode: 'text_to_image', - modelType: 'SanaPAGPipeline', - intentGroup: 'generate_image', - category: 'concept', - inputBindings: [], - outputKinds: ['image'], - readinessPolicy: 'runnable', - modelArtifact: { - source: 'hub', - value: 'Efficient-Large-Model/Sana_600M_1024px_diffusers', - revision: '28f3af7689de15f3883d5863059a2fca0aa9b829', - }, - description: 'Reproduce the reviewed Persimmon Glaze example with the saved prompt, settings and model revision.', - prompt: - 'Editorial photograph of a single glazed persimmon-orange ceramic vase on a low travertine plinth, with one curved eucalyptus branch. Soft light from the left, off-white plaster wall, clean sculptural still life.', - negativePrompt: '', - example: { - mediaType: 'image', - status: 'unverified', - modelRevision: '28f3af7689de15f3883d5863059a2fca0aa9b829', - lockedSeed: 42, - lockedSettings: { - width: 1024, - height: 1024, - steps: 20, - guidanceScale: 4.5, - strength: 0.8, - outputType: 'pil', - maxSequenceLength: 300, - dtype: 'float16', - resourceMode: 'expert', - quantizationMode: 'none', - autoOffload: true, - offloadMode: 'model_cpu', - }, - expectedOutput: { - width: 1024, - height: 1024, - }, - runtimeEstimate: '12.93 seconds in the saved run', - }, - requiredBackendCapabilities: [ - 'modules.DiffusersImage.Generate', - 'modules.DiffusersImage.LoadPipeline', - 'modules.DiffusersRuntime.PipelineQuantizationConfigV2', - 'modules.DiffusersRuntime.DiffusersExecutionRecipe', - 'modules.Image.Preview', - ], - mediaSlots: [ - { - id: 'result', - label: 'Generated image', - kind: 'image', - role: 'output', - placeholder: 'Result pending', - }, - ], - recipeSummary: - 'Reproduce the reviewed Persimmon Glaze example with the saved prompt, settings and model revision.', - runtimeReuseKey: 'sha256:canonical-graph-v1:52c3114e98debe02d6e7a297276e67887d782628952ddb20ae88c499d7c6a356', - }, + id: 'persimmon_glaze', + label: 'Sana 0.6B PAG — Text to image: Persimmon Glaze', + mode: 'text_to_image', + modelType: 'SanaPAGPipeline', + intentGroup: 'generate_image', + category: 'concept', + inputBindings: [], + outputKinds: ['image'], + readinessPolicy: 'runnable', + modelArtifact: { + source: 'hub', + value: 'Efficient-Large-Model/Sana_600M_1024px_diffusers', + revision: '28f3af7689de15f3883d5863059a2fca0aa9b829', + }, + description: 'Reproduce the reviewed Persimmon Glaze example with the saved prompt, settings and model revision.', + prompt: + 'Editorial photograph of a single glazed persimmon-orange ceramic vase on a low travertine plinth, with one curved eucalyptus branch. Soft light from the left, off-white plaster wall, clean sculptural still life.', + negativePrompt: '', + example: { + mediaType: 'image', + status: 'unverified', + modelRevision: '28f3af7689de15f3883d5863059a2fca0aa9b829', + lockedSeed: 42, + lockedSettings: { + width: 1024, + height: 1024, + steps: 20, + guidanceScale: 4.5, + strength: 0.8, + outputType: 'pil', + maxSequenceLength: 300, + dtype: 'float16', + resourceMode: 'expert', + quantizationMode: 'none', + autoOffload: true, + offloadMode: 'model_cpu', + }, + expectedOutput: { + width: 1024, + height: 1024, + }, + runtimeEstimate: '12.93 seconds in the saved run', + }, + requiredBackendCapabilities: [ + 'modules.DiffusersImage.Generate', + 'modules.DiffusersImage.LoadPipeline', + 'modules.DiffusersRuntime.PipelineQuantizationConfigV2', + 'modules.DiffusersRuntime.DiffusersExecutionRecipe', + 'modules.Image.Preview', + ], + mediaSlots: [ + { + id: 'result', + label: 'Generated image', + kind: 'image', + role: 'output', + placeholder: 'Result pending', + }, + ], + recipeSummary: 'Reproduce the reviewed Persimmon Glaze example with the saved prompt, settings and model revision.', + runtimeReuseKey: 'sha256:canonical-graph-v1:52c3114e98debe02d6e7a297276e67887d782628952ddb20ae88c499d7c6a356', }, { - workflowId: 'LatentConsistencyModelPipeline:text_to_image', - sourceTaskTemplateId: 'task-template:lcm-dreamshaper-v7:text-to-image:v1', - retainedGraphHash: 'sha256:canonical-graph-v1:a27f2318675f32fa007ed44f64cc42f78c58f05c896bdba16bcf71cec4383ea5', - originalReceiptSha256: 'b23f6c1d6ea11f928eab1c62422e49a288645e6f46ecf0c4f1b4994e95ad56ea', - reviewedTemplateSha256: 'fe33d74a4694ab6b3d34f483d56575c0c66a5948d424a62c04538c0dd608253a', - reviewedCatalogLock: { - templateLockHash: 'tpl_64460ff2', - galleryTemplateLockHash: 'tpl_5536c9a7', - promptSettingsHash: 'ps_38a31bbe', - }, - promptSha256: '1ad3ea7692a0f8ae0bbd025e78774b790e4fee6066ddd349390e80bcff3c0fa9', - template: { - id: 'porcelain_on_slate_linen', - label: 'LCM DreamShaper v7 — Text to image: Porcelain on Slate Linen', - mode: 'text_to_image', - modelType: 'LatentConsistencyModelPipeline', - intentGroup: 'generate_image', - category: 'concept', - inputBindings: [], - outputKinds: ['image'], - readinessPolicy: 'runnable', - modelArtifact: { - source: 'hub', - value: 'SimianLuo/LCM_Dreamshaper_v7', - revision: 'a85df6a8bd976cdd08b4fd8f3b73f229c9e54df5', - }, - description: - 'Reproduce the reviewed Porcelain on Slate Linen example with the saved prompt, settings and model revision.', - prompt: - 'Studio photograph of one shallow empty ivory porcelain bowl on a flat dark navy linen tablecloth. Simple round rim, natural window light from the left, delicate shadows, close three-quarter view.', - negativePrompt: '', - example: { - mediaType: 'image', - status: 'unverified', - modelRevision: 'a85df6a8bd976cdd08b4fd8f3b73f229c9e54df5', - lockedSeed: 42, - lockedSettings: { - width: 512, - height: 512, - steps: 4, - guidanceScale: 8.5, - strength: 0.8, - outputType: 'pil', - maxSequenceLength: 512, - dtype: 'float32', - resourceMode: 'expert', - quantizationMode: 'none', - autoOffload: false, - offloadMode: 'none', - }, - expectedOutput: { - width: 512, - height: 512, - }, - runtimeEstimate: '11.34 seconds in the saved run', - }, - requiredBackendCapabilities: [ - 'modules.DiffusersImage.Generate', - 'modules.DiffusersImage.LoadPipeline', - 'modules.DiffusersRuntime.PipelineQuantizationConfigV2', - 'modules.DiffusersRuntime.DiffusersExecutionRecipe', - 'modules.Image.Preview', - ], - mediaSlots: [ - { - id: 'result', - label: 'Generated image', - kind: 'image', - role: 'output', - placeholder: 'Result pending', - }, - ], - recipeSummary: - 'Reproduce the reviewed Porcelain on Slate Linen example with the saved prompt, settings and model revision.', - runtimeReuseKey: 'sha256:canonical-graph-v1:a27f2318675f32fa007ed44f64cc42f78c58f05c896bdba16bcf71cec4383ea5', - }, + id: 'porcelain_on_slate_linen', + label: 'LCM DreamShaper v7 — Text to image: Porcelain on Slate Linen', + mode: 'text_to_image', + modelType: 'LatentConsistencyModelPipeline', + intentGroup: 'generate_image', + category: 'concept', + inputBindings: [], + outputKinds: ['image'], + readinessPolicy: 'runnable', + modelArtifact: { + source: 'hub', + value: 'SimianLuo/LCM_Dreamshaper_v7', + revision: 'a85df6a8bd976cdd08b4fd8f3b73f229c9e54df5', + }, + description: + 'Reproduce the reviewed Porcelain on Slate Linen example with the saved prompt, settings and model revision.', + prompt: + 'Studio photograph of one shallow empty ivory porcelain bowl on a flat dark navy linen tablecloth. Simple round rim, natural window light from the left, delicate shadows, close three-quarter view.', + negativePrompt: '', + example: { + mediaType: 'image', + status: 'unverified', + modelRevision: 'a85df6a8bd976cdd08b4fd8f3b73f229c9e54df5', + lockedSeed: 42, + lockedSettings: { + width: 512, + height: 512, + steps: 4, + guidanceScale: 8.5, + strength: 0.8, + outputType: 'pil', + maxSequenceLength: 512, + dtype: 'float32', + resourceMode: 'expert', + quantizationMode: 'none', + autoOffload: false, + offloadMode: 'none', + }, + expectedOutput: { + width: 512, + height: 512, + }, + runtimeEstimate: '11.34 seconds in the saved run', + }, + requiredBackendCapabilities: [ + 'modules.DiffusersImage.Generate', + 'modules.DiffusersImage.LoadPipeline', + 'modules.DiffusersRuntime.PipelineQuantizationConfigV2', + 'modules.DiffusersRuntime.DiffusersExecutionRecipe', + 'modules.Image.Preview', + ], + mediaSlots: [ + { + id: 'result', + label: 'Generated image', + kind: 'image', + role: 'output', + placeholder: 'Result pending', + }, + ], + recipeSummary: + 'Reproduce the reviewed Porcelain on Slate Linen example with the saved prompt, settings and model revision.', + runtimeReuseKey: 'sha256:canonical-graph-v1:a27f2318675f32fa007ed44f64cc42f78c58f05c896bdba16bcf71cec4383ea5', }, { - workflowId: 'AuraFlowPipeline:text_to_image', - sourceTaskTemplateId: 'task-template:auraflow-v0.3:text-to-image:v1', - retainedGraphHash: 'sha256:canonical-graph-v1:956816a0ebe49ffead5c8c8759c3db2becf2d5a46196fba7696e978d0d55b15b', - originalReceiptSha256: 'c4ce21c85cf0412cc1e69ff59009037bbdde9d1692cff19f307d589b84fb5b1f', - reviewedTemplateSha256: 'b09d5bf8c1d2efa3ae62881840125aa474500d658ba7538031dedeaeb79d52d4', - reviewedCatalogLock: { - templateLockHash: 'tpl_b2dab5aa', - galleryTemplateLockHash: 'tpl_a23dcce5', - promptSettingsHash: 'ps_97c53e0a', - }, - promptSha256: '1689b205b531ff682a01a0cac00b798a7dc1ec291b1cc72f47cafd7c11c188aa', - template: { - id: 'salt_marsh_from_above', - label: 'AuraFlow v0.3 1536px — Text to image: Salt Marsh from Above', - mode: 'text_to_image', - modelType: 'AuraFlowPipeline', - intentGroup: 'generate_image', - category: 'concept', - inputBindings: [], - outputKinds: ['image'], - readinessPolicy: 'runnable', - modelArtifact: { - source: 'hub', - value: 'fal/AuraFlow-v0.3', - revision: '2cd8588f04c886002be4571697d84654a50e3af3', - }, - description: - 'Reproduce the reviewed Salt Marsh from Above example with the saved prompt, settings and model revision.', - prompt: - 'Wide aerial landscape photograph of a tidal estuary at low tide. A single deep blue channel curves from the lower left through pale sandbanks and copper-red salt-marsh grass, then opens into a calm sea on the horizon. A small isolated white navigation beacon on a stone causeway gives a clear sense of scale. Late-afternoon light, clean distant horizon, natural variation in the reeds and intricate small branching tidal patterns. Restrained blue and warm sienna colors, crisp photographic detail, no writing.', - negativePrompt: '', - example: { - mediaType: 'image', - status: 'unverified', - modelRevision: '2cd8588f04c886002be4571697d84654a50e3af3', - lockedSeed: 42, - lockedSettings: { - width: 1536, - height: 768, - steps: 50, - guidanceScale: 3.5, - strength: 0.8, - outputType: 'pil', - maxSequenceLength: 256, - dtype: 'float16', - resourceMode: 'expert', - quantizationMode: 'none', - autoOffload: true, - offloadMode: 'model_cpu', - }, - expectedOutput: { - width: 1536, - height: 768, - }, - runtimeEstimate: '760.61 seconds in the saved run', - }, - requiredBackendCapabilities: [ - 'modules.DiffusersImage.Generate', - 'modules.DiffusersImage.LoadPipeline', - 'modules.DiffusersRuntime.PipelineQuantizationConfigV2', - 'modules.DiffusersRuntime.DiffusersExecutionRecipe', - 'modules.Image.Preview', - ], - mediaSlots: [ - { - id: 'result', - label: 'Generated image', - kind: 'image', - role: 'output', - placeholder: 'Result pending', - }, - ], - recipeSummary: - 'Reproduce the reviewed Salt Marsh from Above example with the saved prompt, settings and model revision.', - runtimeReuseKey: 'sha256:canonical-graph-v1:956816a0ebe49ffead5c8c8759c3db2becf2d5a46196fba7696e978d0d55b15b', - }, + id: 'salt_marsh_from_above', + label: 'AuraFlow v0.3 1536px — Text to image: Salt Marsh from Above', + mode: 'text_to_image', + modelType: 'AuraFlowPipeline', + intentGroup: 'generate_image', + category: 'concept', + inputBindings: [], + outputKinds: ['image'], + readinessPolicy: 'runnable', + modelArtifact: { + source: 'hub', + value: 'fal/AuraFlow-v0.3', + revision: '2cd8588f04c886002be4571697d84654a50e3af3', + }, + description: + 'Reproduce the reviewed Salt Marsh from Above example with the saved prompt, settings and model revision.', + prompt: + 'Wide aerial landscape photograph of a tidal estuary at low tide. A single deep blue channel curves from the lower left through pale sandbanks and copper-red salt-marsh grass, then opens into a calm sea on the horizon. A small isolated white navigation beacon on a stone causeway gives a clear sense of scale. Late-afternoon light, clean distant horizon, natural variation in the reeds and intricate small branching tidal patterns. Restrained blue and warm sienna colors, crisp photographic detail, no writing.', + negativePrompt: '', + example: { + mediaType: 'image', + status: 'unverified', + modelRevision: '2cd8588f04c886002be4571697d84654a50e3af3', + lockedSeed: 42, + lockedSettings: { + width: 1536, + height: 768, + steps: 50, + guidanceScale: 3.5, + strength: 0.8, + outputType: 'pil', + maxSequenceLength: 256, + dtype: 'float16', + resourceMode: 'expert', + quantizationMode: 'none', + autoOffload: true, + offloadMode: 'model_cpu', + }, + expectedOutput: { + width: 1536, + height: 768, + }, + runtimeEstimate: '760.61 seconds in the saved run', + }, + requiredBackendCapabilities: [ + 'modules.DiffusersImage.Generate', + 'modules.DiffusersImage.LoadPipeline', + 'modules.DiffusersRuntime.PipelineQuantizationConfigV2', + 'modules.DiffusersRuntime.DiffusersExecutionRecipe', + 'modules.Image.Preview', + ], + mediaSlots: [ + { + id: 'result', + label: 'Generated image', + kind: 'image', + role: 'output', + placeholder: 'Result pending', + }, + ], + recipeSummary: + 'Reproduce the reviewed Salt Marsh from Above example with the saved prompt, settings and model revision.', + runtimeReuseKey: 'sha256:canonical-graph-v1:956816a0ebe49ffead5c8c8759c3db2becf2d5a46196fba7696e978d0d55b15b', }, { - workflowId: 'StableDiffusionPipeline:text_to_image', - sourceTaskTemplateId: 'task-template:sd15-base:text-to-image:v1', - retainedGraphHash: 'sha256:canonical-graph-v1:27fe077b35b48bbd8edc6589655a5ed7a3788139a0a0ab82b14cf3f0ae839b19', - originalReceiptSha256: '235118ee94df6adef140079116b17158e2922bf861a5f6d7d23f4f3f988d3927', - reviewedTemplateSha256: '1c4b2351129fdb61f6ea79abfb8c699ff4db82db0c97e1dc92e9eeeb36a34d12', - reviewedCatalogLock: { - templateLockHash: 'tpl_514a5205', - galleryTemplateLockHash: 'tpl_61d186ae', - promptSettingsHash: 'ps_82f89ed0', - }, - promptSha256: '516be575fb3191eafa8dd83a38a09c7e85cb36a6484abb71ea32b7080b21c7b8', - template: { - id: 'cobalt_jug_and_lemons', - label: 'Stable Diffusion 1.5 — Text to image: Cobalt Jug and Lemons', - mode: 'text_to_image', - modelType: 'StableDiffusionPipeline', - intentGroup: 'generate_image', - category: 'concept', - inputBindings: [], - outputKinds: ['image'], - readinessPolicy: 'runnable', - modelArtifact: { - source: 'hub', - value: 'stable-diffusion-v1-5/stable-diffusion-v1-5', - revision: '451f4fe16113bff5a5d2269ed5ad43b0592e9a14', - }, - description: - 'Reproduce the reviewed Cobalt Jug and Lemons example with the saved prompt, settings and model revision.', - prompt: - 'Fine art still life, a single cobalt blue glazed ceramic jug holding a fresh olive branch, two yellow lemons on undyed linen, worn oak windowsill, warm late afternoon sunlight from the left, palest ochre plaster backdrop, soft grounded shadows, slight brush texture in the finish, carefully composed, muted earthy palette, detailed ceramic glaze and linen weave.', - negativePrompt: '', - example: { - mediaType: 'image', - status: 'unverified', - modelRevision: '451f4fe16113bff5a5d2269ed5ad43b0592e9a14', - lockedSeed: 8319, - lockedSettings: { - width: 512, - height: 512, - steps: 30, - guidanceScale: 7.5, - strength: 0.8, - outputType: 'pil', - maxSequenceLength: 512, - dtype: 'float32', - resourceMode: 'expert', - quantizationMode: 'none', - autoOffload: false, - offloadMode: 'none', - }, - expectedOutput: { - width: 512, - height: 512, - }, - runtimeEstimate: '14.70 seconds in the saved run', - }, - requiredBackendCapabilities: [ - 'modules.DiffusersImage.Generate', - 'modules.DiffusersImage.LoadPipeline', - 'modules.DiffusersRuntime.PipelineQuantizationConfigV2', - 'modules.DiffusersRuntime.DiffusersExecutionRecipe', - 'modules.Image.Preview', - ], - mediaSlots: [ - { - id: 'result', - label: 'Generated image', - kind: 'image', - role: 'output', - placeholder: 'Result pending', - }, - ], - recipeSummary: - 'Reproduce the reviewed Cobalt Jug and Lemons example with the saved prompt, settings and model revision.', - runtimeReuseKey: 'sha256:canonical-graph-v1:27fe077b35b48bbd8edc6589655a5ed7a3788139a0a0ab82b14cf3f0ae839b19', - }, + id: 'cobalt_jug_and_lemons', + label: 'Stable Diffusion 1.5 — Text to image: Cobalt Jug and Lemons', + mode: 'text_to_image', + modelType: 'StableDiffusionPipeline', + intentGroup: 'generate_image', + category: 'concept', + inputBindings: [], + outputKinds: ['image'], + readinessPolicy: 'runnable', + modelArtifact: { + source: 'hub', + value: 'stable-diffusion-v1-5/stable-diffusion-v1-5', + revision: '451f4fe16113bff5a5d2269ed5ad43b0592e9a14', + }, + description: + 'Reproduce the reviewed Cobalt Jug and Lemons example with the saved prompt, settings and model revision.', + prompt: + 'Fine art still life, a single cobalt blue glazed ceramic jug holding a fresh olive branch, two yellow lemons on undyed linen, worn oak windowsill, warm late afternoon sunlight from the left, palest ochre plaster backdrop, soft grounded shadows, slight brush texture in the finish, carefully composed, muted earthy palette, detailed ceramic glaze and linen weave.', + negativePrompt: '', + example: { + mediaType: 'image', + status: 'unverified', + modelRevision: '451f4fe16113bff5a5d2269ed5ad43b0592e9a14', + lockedSeed: 8319, + lockedSettings: { + width: 512, + height: 512, + steps: 30, + guidanceScale: 7.5, + strength: 0.8, + outputType: 'pil', + maxSequenceLength: 512, + dtype: 'float32', + resourceMode: 'expert', + quantizationMode: 'none', + autoOffload: false, + offloadMode: 'none', + }, + expectedOutput: { + width: 512, + height: 512, + }, + runtimeEstimate: '14.70 seconds in the saved run', + }, + requiredBackendCapabilities: [ + 'modules.DiffusersImage.Generate', + 'modules.DiffusersImage.LoadPipeline', + 'modules.DiffusersRuntime.PipelineQuantizationConfigV2', + 'modules.DiffusersRuntime.DiffusersExecutionRecipe', + 'modules.Image.Preview', + ], + mediaSlots: [ + { + id: 'result', + label: 'Generated image', + kind: 'image', + role: 'output', + placeholder: 'Result pending', + }, + ], + recipeSummary: + 'Reproduce the reviewed Cobalt Jug and Lemons example with the saved prompt, settings and model revision.', + runtimeReuseKey: 'sha256:canonical-graph-v1:27fe077b35b48bbd8edc6589655a5ed7a3788139a0a0ab82b14cf3f0ae839b19', }, { - workflowId: 'PRXPipeline:text_to_image', - sourceTaskTemplateId: 'task-template:prx-512-sft:text-to-image:v1', - retainedGraphHash: 'sha256:canonical-graph-v1:3d2853278333f4c6760e366ae0347794b14b3937ac62422b5f84d6effcd10495', - originalReceiptSha256: '77d2fb24693cf118ec83aea3c2a53a3c8558b13b78f0bae478458e53896dcabd', - reviewedTemplateSha256: '4a188876a65d35df1c87da93c5fcae162f3bc8b20934a61fe70e4580b5090249', - reviewedCatalogLock: { - templateLockHash: 'tpl_b747cf95', - galleryTemplateLockHash: 'tpl_3f17401c', - promptSettingsHash: 'ps_6998df3e', - }, - promptSha256: '04cb0ceff2138f0fe17267a6c1e68698a7ccb1b2e9075641957b6b7dd59ea8f5', - template: { - id: 'copper_hour_dunes', - label: 'PRX 512 SFT — Text to image: Copper Hour Dunes', - mode: 'text_to_image', - modelType: 'PRXPipeline', - intentGroup: 'generate_image', - category: 'concept', - inputBindings: [], - outputKinds: ['image'], - readinessPolicy: 'runnable', - modelArtifact: { - source: 'hub', - value: 'Photoroom/prx-512-t2i-sft', - revision: '2996423bc26e8eaca48774fac1797484214dfea0', - }, - description: - 'Reproduce the reviewed Copper Hour Dunes example with the saved prompt, settings and model revision.', - prompt: - 'A wide photographic desert landscape at last light, viewed from the shoulder of a high dune. Fine, continuous wind ripples lead from the sharp foreground sand toward a curved ochre ridge. Warm low sunlight from frame left catches each crest, casting long violet-gray shadows down the slip faces. Successive amber and terracotta ridgelines soften into a dusty blue mountain silhouette on the horizon beneath a clear pale-blue sky. Low horizon haze, tactile sand grains, restrained natural color and atmospheric depth. Compose a square frame with a strong curving ridge through the lower two-thirds and quiet open sky above. The dunes fill the frame edge to edge, with the stillness and depth of a large-format landscape photograph.', - negativePrompt: '', - example: { - mediaType: 'image', - status: 'unverified', - modelRevision: '2996423bc26e8eaca48774fac1797484214dfea0', - lockedSeed: 42, - lockedSettings: { - width: 512, - height: 512, - steps: 28, - guidanceScale: 5, - strength: 0.8, - outputType: 'pil', - maxSequenceLength: 256, - dtype: 'bfloat16', - resourceMode: 'expert', - quantizationMode: 'none', - autoOffload: true, - offloadMode: 'model_cpu', - }, - expectedOutput: { - width: 512, - height: 512, - }, - runtimeEstimate: '10.14 seconds in the saved run', - }, - requiredBackendCapabilities: [ - 'modules.DiffusersImage.Generate', - 'modules.DiffusersImage.LoadPipeline', - 'modules.DiffusersRuntime.PipelineQuantizationConfigV2', - 'modules.DiffusersRuntime.DiffusersExecutionRecipe', - 'modules.Image.Preview', - ], - mediaSlots: [ - { - id: 'result', - label: 'Generated image', - kind: 'image', - role: 'output', - placeholder: 'Result pending', - }, - ], - recipeSummary: - 'Reproduce the reviewed Copper Hour Dunes example with the saved prompt, settings and model revision.', - runtimeReuseKey: 'sha256:canonical-graph-v1:3d2853278333f4c6760e366ae0347794b14b3937ac62422b5f84d6effcd10495', - }, + id: 'copper_hour_dunes', + label: 'PRX 512 SFT — Text to image: Copper Hour Dunes', + mode: 'text_to_image', + modelType: 'PRXPipeline', + intentGroup: 'generate_image', + category: 'concept', + inputBindings: [], + outputKinds: ['image'], + readinessPolicy: 'runnable', + modelArtifact: { + source: 'hub', + value: 'Photoroom/prx-512-t2i-sft', + revision: '2996423bc26e8eaca48774fac1797484214dfea0', + }, + description: 'Reproduce the reviewed Copper Hour Dunes example with the saved prompt, settings and model revision.', + prompt: + 'A wide photographic desert landscape at last light, viewed from the shoulder of a high dune. Fine, continuous wind ripples lead from the sharp foreground sand toward a curved ochre ridge. Warm low sunlight from frame left catches each crest, casting long violet-gray shadows down the slip faces. Successive amber and terracotta ridgelines soften into a dusty blue mountain silhouette on the horizon beneath a clear pale-blue sky. Low horizon haze, tactile sand grains, restrained natural color and atmospheric depth. Compose a square frame with a strong curving ridge through the lower two-thirds and quiet open sky above. The dunes fill the frame edge to edge, with the stillness and depth of a large-format landscape photograph.', + negativePrompt: '', + example: { + mediaType: 'image', + status: 'unverified', + modelRevision: '2996423bc26e8eaca48774fac1797484214dfea0', + lockedSeed: 42, + lockedSettings: { + width: 512, + height: 512, + steps: 28, + guidanceScale: 5, + strength: 0.8, + outputType: 'pil', + maxSequenceLength: 256, + dtype: 'bfloat16', + resourceMode: 'expert', + quantizationMode: 'none', + autoOffload: true, + offloadMode: 'model_cpu', + }, + expectedOutput: { + width: 512, + height: 512, + }, + runtimeEstimate: '10.14 seconds in the saved run', + }, + requiredBackendCapabilities: [ + 'modules.DiffusersImage.Generate', + 'modules.DiffusersImage.LoadPipeline', + 'modules.DiffusersRuntime.PipelineQuantizationConfigV2', + 'modules.DiffusersRuntime.DiffusersExecutionRecipe', + 'modules.Image.Preview', + ], + mediaSlots: [ + { + id: 'result', + label: 'Generated image', + kind: 'image', + role: 'output', + placeholder: 'Result pending', + }, + ], + recipeSummary: + 'Reproduce the reviewed Copper Hour Dunes example with the saved prompt, settings and model revision.', + runtimeReuseKey: 'sha256:canonical-graph-v1:3d2853278333f4c6760e366ae0347794b14b3937ac62422b5f84d6effcd10495', }, { - workflowId: 'StableDiffusionXLPipeline:text_to_image', - sourceTaskTemplateId: 'task-template:sdxl-base:text-to-image:v1', - retainedGraphHash: 'sha256:canonical-graph-v1:8cca9a4269d1339b835a8fba2a380913be348c06c3a628b212a3a17ef2377bb1', - originalReceiptSha256: '944ff90f533867016d514d9cdd7a35648e711359c55f2ae06fc3bac8e88b63e8', - reviewedTemplateSha256: '4d32a1778d7cad756e05f14f09de559b9b065f3675b2aef6a289c5299cbd2c24', - reviewedCatalogLock: { - templateLockHash: 'tpl_b24bef60', - galleryTemplateLockHash: 'tpl_a4b61426', - promptSettingsHash: 'ps_fc327a42', - }, - promptSha256: 'eb5d22de03c2688152fd9f6674b018dcb8770f099e44706affd68deda70e65b2', - template: { - id: 'glasshouse_rain', - label: 'Stable Diffusion XL 1.0 — Text to image: Glasshouse Rain', - mode: 'text_to_image', - modelType: 'StableDiffusionXLPipeline', - intentGroup: 'generate_image', - category: 'concept', - inputBindings: [], - outputKinds: ['image'], - readinessPolicy: 'runnable', - modelArtifact: { - source: 'hub', - value: 'stabilityai/stable-diffusion-xl-base-1.0', - revision: '462165984030d82259a11f4367a4eed129e94a7b', - }, - description: 'Reproduce the reviewed Glasshouse Rain example with the saved prompt, settings and model revision.', - prompt: - 'Architectural photograph from inside an empty Victorian conservatory during a steady rain. The camera looks at eye level down a wet terracotta aisle beneath slender black cast-iron ribs. Dense green ferns spill gently toward the aisle from both sides, and rain beads trace the overhead glass. Cool overcast daylight falls evenly through the panes; a single shaded brass wall light near the far door casts a small amber reflection onto the floor. A clear central vanishing point, natural tones, realistic fine surface texture and a quiet, sheltered atmosphere. Square frame, editorial architecture photography, no lettering or people.', - negativePrompt: '', - example: { - mediaType: 'image', - status: 'unverified', - modelRevision: '462165984030d82259a11f4367a4eed129e94a7b', - lockedSeed: 42, - lockedSettings: { - width: 1024, - height: 1024, - steps: 30, - guidanceScale: 5, - strength: 0.8, - outputType: 'pil', - maxSequenceLength: 512, - dtype: 'bfloat16', - resourceMode: 'expert', - quantizationMode: 'none', - autoOffload: true, - offloadMode: 'model_cpu', - }, - expectedOutput: { - width: 1024, - height: 1024, - }, - runtimeEstimate: '26.90 seconds in the saved run', - }, - requiredBackendCapabilities: [ - 'modules.DiffusersImage.Generate', - 'modules.DiffusersImage.LoadPipeline', - 'modules.DiffusersRuntime.PipelineQuantizationConfigV2', - 'modules.DiffusersRuntime.DiffusersExecutionRecipe', - 'modules.Image.Preview', - ], - mediaSlots: [ - { - id: 'result', - label: 'Generated image', - kind: 'image', - role: 'output', - placeholder: 'Result pending', - }, - ], - recipeSummary: - 'Reproduce the reviewed Glasshouse Rain example with the saved prompt, settings and model revision.', - runtimeReuseKey: 'sha256:canonical-graph-v1:8cca9a4269d1339b835a8fba2a380913be348c06c3a628b212a3a17ef2377bb1', - }, + id: 'glasshouse_rain', + label: 'Stable Diffusion XL 1.0 — Text to image: Glasshouse Rain', + mode: 'text_to_image', + modelType: 'StableDiffusionXLPipeline', + intentGroup: 'generate_image', + category: 'concept', + inputBindings: [], + outputKinds: ['image'], + readinessPolicy: 'runnable', + modelArtifact: { + source: 'hub', + value: 'stabilityai/stable-diffusion-xl-base-1.0', + revision: '462165984030d82259a11f4367a4eed129e94a7b', + }, + description: 'Reproduce the reviewed Glasshouse Rain example with the saved prompt, settings and model revision.', + prompt: + 'Architectural photograph from inside an empty Victorian conservatory during a steady rain. The camera looks at eye level down a wet terracotta aisle beneath slender black cast-iron ribs. Dense green ferns spill gently toward the aisle from both sides, and rain beads trace the overhead glass. Cool overcast daylight falls evenly through the panes; a single shaded brass wall light near the far door casts a small amber reflection onto the floor. A clear central vanishing point, natural tones, realistic fine surface texture and a quiet, sheltered atmosphere. Square frame, editorial architecture photography, no lettering or people.', + negativePrompt: '', + example: { + mediaType: 'image', + status: 'unverified', + modelRevision: '462165984030d82259a11f4367a4eed129e94a7b', + lockedSeed: 42, + lockedSettings: { + width: 1024, + height: 1024, + steps: 30, + guidanceScale: 5, + strength: 0.8, + outputType: 'pil', + maxSequenceLength: 512, + dtype: 'bfloat16', + resourceMode: 'expert', + quantizationMode: 'none', + autoOffload: true, + offloadMode: 'model_cpu', + }, + expectedOutput: { + width: 1024, + height: 1024, + }, + runtimeEstimate: '26.90 seconds in the saved run', + }, + requiredBackendCapabilities: [ + 'modules.DiffusersImage.Generate', + 'modules.DiffusersImage.LoadPipeline', + 'modules.DiffusersRuntime.PipelineQuantizationConfigV2', + 'modules.DiffusersRuntime.DiffusersExecutionRecipe', + 'modules.Image.Preview', + ], + mediaSlots: [ + { + id: 'result', + label: 'Generated image', + kind: 'image', + role: 'output', + placeholder: 'Result pending', + }, + ], + recipeSummary: 'Reproduce the reviewed Glasshouse Rain example with the saved prompt, settings and model revision.', + runtimeReuseKey: 'sha256:canonical-graph-v1:8cca9a4269d1339b835a8fba2a380913be348c06c3a628b212a3a17ef2377bb1', }, { - workflowId: 'StableDiffusionPAGPipeline:text_to_image', - sourceTaskTemplateId: 'task-template:sd15-pag:text-to-image:v1', - retainedGraphHash: 'sha256:canonical-graph-v1:f471ecd5a18b997bf9dc6b61a72cf7e98e0988f9309ef3432ec635838f97c409', - originalReceiptSha256: 'ad23b58153c3301fd0125a0a66e9e110a61a16e0c8833563cd3ca51109fe5056', - reviewedTemplateSha256: '6642ac1831a788b83981383c33b7ce019692d58fd2b23f3bff9d95e3a59ec27b', - reviewedCatalogLock: { - templateLockHash: 'tpl_98174f0f', - galleryTemplateLockHash: 'tpl_5dba74f8', - promptSettingsHash: 'ps_2f4c6afa', - }, - promptSha256: 'f0657889fb99878c51b1e31b08806daf0714539faf351abf6efcde2a39024db3', - template: { - id: 'pomegranate_on_blue_linen', - label: 'Stable Diffusion 1.5 PAG — Text to image: Pomegranate on Blue Linen', - mode: 'text_to_image', - modelType: 'StableDiffusionPAGPipeline', - intentGroup: 'generate_image', - category: 'concept', - inputBindings: [], - outputKinds: ['image'], - readinessPolicy: 'runnable', - modelArtifact: { - source: 'hub', - value: 'stable-diffusion-v1-5/stable-diffusion-v1-5', - revision: '451f4fe16113bff5a5d2269ed5ad43b0592e9a14', - }, - description: - 'Reproduce the reviewed Pomegranate on Blue Linen example with the saved prompt, settings and model revision.', - prompt: - 'Square editorial still life photograph of a single cut pomegranate half resting cut side up on a folded indigo linen napkin. Glossy ruby seeds cluster inside the curved ivory pith. A few loose seeds sit on the weathered pale wood just below the fruit. Soft daylight rakes in from the upper left, revealing linen fibers and the wet seed surfaces. Three-quarter overhead camera, muted navy and pale wood palette, simple composition.', - negativePrompt: '', - example: { - mediaType: 'image', - status: 'unverified', - modelRevision: '451f4fe16113bff5a5d2269ed5ad43b0592e9a14', - lockedSeed: 42, - lockedSettings: { - width: 512, - height: 512, - steps: 30, - guidanceScale: 7.5, - strength: 0.8, - outputType: 'pil', - maxSequenceLength: 512, - dtype: 'float32', - resourceMode: 'expert', - quantizationMode: 'none', - autoOffload: false, - offloadMode: 'none', - }, - expectedOutput: { - width: 512, - height: 512, - }, - runtimeEstimate: '15.64 seconds in the saved run', - }, - requiredBackendCapabilities: [ - 'modules.DiffusersImage.Generate', - 'modules.DiffusersImage.LoadPipeline', - 'modules.DiffusersRuntime.PipelineQuantizationConfigV2', - 'modules.DiffusersRuntime.DiffusersExecutionRecipe', - 'modules.Image.Preview', - ], - mediaSlots: [ - { - id: 'result', - label: 'Generated image', - kind: 'image', - role: 'output', - placeholder: 'Result pending', - }, - ], - recipeSummary: - 'Reproduce the reviewed Pomegranate on Blue Linen example with the saved prompt, settings and model revision.', - runtimeReuseKey: 'sha256:canonical-graph-v1:f471ecd5a18b997bf9dc6b61a72cf7e98e0988f9309ef3432ec635838f97c409', - }, + id: 'pomegranate_on_blue_linen', + label: 'Stable Diffusion 1.5 PAG — Text to image: Pomegranate on Blue Linen', + mode: 'text_to_image', + modelType: 'StableDiffusionPAGPipeline', + intentGroup: 'generate_image', + category: 'concept', + inputBindings: [], + outputKinds: ['image'], + readinessPolicy: 'runnable', + modelArtifact: { + source: 'hub', + value: 'stable-diffusion-v1-5/stable-diffusion-v1-5', + revision: '451f4fe16113bff5a5d2269ed5ad43b0592e9a14', + }, + description: + 'Reproduce the reviewed Pomegranate on Blue Linen example with the saved prompt, settings and model revision.', + prompt: + 'Square editorial still life photograph of a single cut pomegranate half resting cut side up on a folded indigo linen napkin. Glossy ruby seeds cluster inside the curved ivory pith. A few loose seeds sit on the weathered pale wood just below the fruit. Soft daylight rakes in from the upper left, revealing linen fibers and the wet seed surfaces. Three-quarter overhead camera, muted navy and pale wood palette, simple composition.', + negativePrompt: '', + example: { + mediaType: 'image', + status: 'unverified', + modelRevision: '451f4fe16113bff5a5d2269ed5ad43b0592e9a14', + lockedSeed: 42, + lockedSettings: { + width: 512, + height: 512, + steps: 30, + guidanceScale: 7.5, + strength: 0.8, + outputType: 'pil', + maxSequenceLength: 512, + dtype: 'float32', + resourceMode: 'expert', + quantizationMode: 'none', + autoOffload: false, + offloadMode: 'none', + }, + expectedOutput: { + width: 512, + height: 512, + }, + runtimeEstimate: '15.64 seconds in the saved run', + }, + requiredBackendCapabilities: [ + 'modules.DiffusersImage.Generate', + 'modules.DiffusersImage.LoadPipeline', + 'modules.DiffusersRuntime.PipelineQuantizationConfigV2', + 'modules.DiffusersRuntime.DiffusersExecutionRecipe', + 'modules.Image.Preview', + ], + mediaSlots: [ + { + id: 'result', + label: 'Generated image', + kind: 'image', + role: 'output', + placeholder: 'Result pending', + }, + ], + recipeSummary: + 'Reproduce the reviewed Pomegranate on Blue Linen example with the saved prompt, settings and model revision.', + runtimeReuseKey: 'sha256:canonical-graph-v1:f471ecd5a18b997bf9dc6b61a72cf7e98e0988f9309ef3432ec635838f97c409', }, { - workflowId: 'SanaSprintPipeline:text_to_image', - sourceTaskTemplateId: 'task-template:sana-sprint-600m:text-to-image:v1', - retainedGraphHash: 'sha256:canonical-graph-v1:374726f7f4d26de27f216171d570f84ef9365397555d083767b89eacc2415338', - originalReceiptSha256: 'e6693f3cb5cc81bbac653e0f89c15e2871fdbb67ad37c4f3c63514bbf4e0aa43', - reviewedTemplateSha256: '0724f395ee3219d2cf878ea1ef914692d9808e83236c4d972322e062dd15b380', - reviewedCatalogLock: { - templateLockHash: 'tpl_193e94c3', - galleryTemplateLockHash: 'tpl_c72697e6', - promptSettingsHash: 'ps_d411e860', - }, - promptSha256: '315c32ce4bc4c7352d7eaf6bd8598fdfb67fa3479c4b3a9a14beb33e562a2605', - template: { - id: 'canal_lantern_in_warm_light', - label: 'Sana Sprint 0.6B — Text to image: Canal Lantern in Warm Light', - mode: 'text_to_image', - modelType: 'SanaSprintPipeline', - intentGroup: 'generate_image', - category: 'concept', - inputBindings: [], - outputKinds: ['image'], - readinessPolicy: 'runnable', - modelArtifact: { - source: 'hub', - value: 'Efficient-Large-Model/Sana_Sprint_0.6B_1024px_diffusers', - revision: 'aa76e7f4f4928f378716b6716a2130fba3caf5b1', - }, - description: - 'Reproduce the reviewed Canal Lantern in Warm Light example with the saved prompt, settings and model revision.', - prompt: - 'Square editorial product photo from a three-quarter angle. A single art deco copper railway lantern with translucent teal glass and one arched handle sits on a walnut workbench. Warm window light from the left catches the engraved copper edges and the wood grain. Soft blue shadows in a slightly out-of-focus canal workshop.', - negativePrompt: '', - example: { - mediaType: 'image', - status: 'unverified', - modelRevision: 'aa76e7f4f4928f378716b6716a2130fba3caf5b1', - lockedSeed: 42, - lockedSettings: { - width: 1024, - height: 1024, - steps: 2, - guidanceScale: 4.5, - strength: 0.5, - outputType: 'pil', - maxSequenceLength: 300, - dtype: 'bfloat16', - resourceMode: 'expert', - quantizationMode: 'none', - autoOffload: true, - offloadMode: 'model_cpu', - }, - expectedOutput: { - width: 1024, - height: 1024, - }, - runtimeEstimate: '10.74 seconds in the saved run', - }, - requiredBackendCapabilities: [ - 'modules.DiffusersImage.Generate', - 'modules.DiffusersImage.LoadPipeline', - 'modules.DiffusersRuntime.PipelineQuantizationConfigV2', - 'modules.DiffusersRuntime.DiffusersExecutionRecipe', - 'modules.Image.Preview', - ], - mediaSlots: [ - { - id: 'result', - label: 'Generated image', - kind: 'image', - role: 'output', - placeholder: 'Result pending', - }, - ], - recipeSummary: - 'Reproduce the reviewed Canal Lantern in Warm Light example with the saved prompt, settings and model revision.', - runtimeReuseKey: 'sha256:canonical-graph-v1:374726f7f4d26de27f216171d570f84ef9365397555d083767b89eacc2415338', - }, + id: 'canal_lantern_in_warm_light', + label: 'Sana Sprint 0.6B — Text to image: Canal Lantern in Warm Light', + mode: 'text_to_image', + modelType: 'SanaSprintPipeline', + intentGroup: 'generate_image', + category: 'concept', + inputBindings: [], + outputKinds: ['image'], + readinessPolicy: 'runnable', + modelArtifact: { + source: 'hub', + value: 'Efficient-Large-Model/Sana_Sprint_0.6B_1024px_diffusers', + revision: 'aa76e7f4f4928f378716b6716a2130fba3caf5b1', + }, + description: + 'Reproduce the reviewed Canal Lantern in Warm Light example with the saved prompt, settings and model revision.', + prompt: + 'Square editorial product photo from a three-quarter angle. A single art deco copper railway lantern with translucent teal glass and one arched handle sits on a walnut workbench. Warm window light from the left catches the engraved copper edges and the wood grain. Soft blue shadows in a slightly out-of-focus canal workshop.', + negativePrompt: '', + example: { + mediaType: 'image', + status: 'unverified', + modelRevision: 'aa76e7f4f4928f378716b6716a2130fba3caf5b1', + lockedSeed: 42, + lockedSettings: { + width: 1024, + height: 1024, + steps: 2, + guidanceScale: 4.5, + strength: 0.5, + outputType: 'pil', + maxSequenceLength: 300, + dtype: 'bfloat16', + resourceMode: 'expert', + quantizationMode: 'none', + autoOffload: true, + offloadMode: 'model_cpu', + }, + expectedOutput: { + width: 1024, + height: 1024, + }, + runtimeEstimate: '10.74 seconds in the saved run', + }, + requiredBackendCapabilities: [ + 'modules.DiffusersImage.Generate', + 'modules.DiffusersImage.LoadPipeline', + 'modules.DiffusersRuntime.PipelineQuantizationConfigV2', + 'modules.DiffusersRuntime.DiffusersExecutionRecipe', + 'modules.Image.Preview', + ], + mediaSlots: [ + { + id: 'result', + label: 'Generated image', + kind: 'image', + role: 'output', + placeholder: 'Result pending', + }, + ], + recipeSummary: + 'Reproduce the reviewed Canal Lantern in Warm Light example with the saved prompt, settings and model revision.', + runtimeReuseKey: 'sha256:canonical-graph-v1:374726f7f4d26de27f216171d570f84ef9365397555d083767b89eacc2415338', }, { - workflowId: 'StableDiffusionXLPAGPipeline:text_to_image', - sourceTaskTemplateId: 'task-template:sdxl-pag:text-to-image:v1', - retainedGraphHash: 'sha256:canonical-graph-v1:084cbe824fed25ab44a940b2319aa37299f80d3fc2e06efb5848d701162902d9', - originalReceiptSha256: 'e5bcc2b64bfddcadc334c20f0c125fdcae68760cde1ff60ec10d1a22ce81a997', - reviewedTemplateSha256: 'f30bccf14d658fa6222cec9c7458ec74fec76940dc1dac07ed87e19d93b3738c', - reviewedCatalogLock: { - templateLockHash: 'tpl_7e4877bb', - galleryTemplateLockHash: 'tpl_9fd062df', - promptSettingsHash: 'ps_c51df98f', - }, - promptSha256: '635581fcdcd104401ed65f1733f0cd4c7c700f35455f499f509dad161e799cb3', - template: { - id: 'the_glasshouse_seed_tray', - label: 'Stable Diffusion XL PAG — Text to image: The Glasshouse Seed Tray', - mode: 'text_to_image', - modelType: 'StableDiffusionXLPAGPipeline', - intentGroup: 'generate_image', - category: 'concept', - inputBindings: [], - outputKinds: ['image'], - readinessPolicy: 'runnable', - modelArtifact: { - source: 'hub', - value: 'stabilityai/stable-diffusion-xl-base-1.0', - revision: '462165984030d82259a11f4367a4eed129e94a7b', - }, - description: - 'Reproduce the reviewed The Glasshouse Seed Tray example with the saved prompt, settings and model revision.', - prompt: - 'Square editorial photograph, close three-quarter view of a shallow weathered terracotta propagation tray filled with rows of tiny green seedlings on a dark cedar potting bench. A small brushed steel plant mister sits at the far left with a soft reflection. Cool morning light passes through rain-streaked Victorian greenhouse panes behind the bench and brushes water droplets on the leaves. The front row of seedlings and the terracotta texture are crisp. The glass panes and other plants recede gently out of focus. Muted greens, natural warm clay and cool blue window light.', - negativePrompt: '', - example: { - mediaType: 'image', - status: 'unverified', - modelRevision: '462165984030d82259a11f4367a4eed129e94a7b', - lockedSeed: 42, - lockedSettings: { - width: 1024, - height: 1024, - steps: 50, - guidanceScale: 5, - strength: 0.8, - outputType: 'pil', - maxSequenceLength: 512, - dtype: 'float16', - resourceMode: 'expert', - quantizationMode: 'none', - autoOffload: true, - offloadMode: 'model_cpu', - }, - expectedOutput: { - width: 1024, - height: 1024, - }, - runtimeEstimate: '53.86 seconds in the saved run', - }, - requiredBackendCapabilities: [ - 'modules.DiffusersImage.Generate', - 'modules.DiffusersImage.LoadPipeline', - 'modules.DiffusersRuntime.PipelineQuantizationConfigV2', - 'modules.DiffusersRuntime.DiffusersExecutionRecipe', - 'modules.Image.Preview', - ], - mediaSlots: [ - { - id: 'result', - label: 'Generated image', - kind: 'image', - role: 'output', - placeholder: 'Result pending', - }, - ], - recipeSummary: - 'Reproduce the reviewed The Glasshouse Seed Tray example with the saved prompt, settings and model revision.', - runtimeReuseKey: 'sha256:canonical-graph-v1:084cbe824fed25ab44a940b2319aa37299f80d3fc2e06efb5848d701162902d9', - }, + id: 'the_glasshouse_seed_tray', + label: 'Stable Diffusion XL PAG — Text to image: The Glasshouse Seed Tray', + mode: 'text_to_image', + modelType: 'StableDiffusionXLPAGPipeline', + intentGroup: 'generate_image', + category: 'concept', + inputBindings: [], + outputKinds: ['image'], + readinessPolicy: 'runnable', + modelArtifact: { + source: 'hub', + value: 'stabilityai/stable-diffusion-xl-base-1.0', + revision: '462165984030d82259a11f4367a4eed129e94a7b', + }, + description: + 'Reproduce the reviewed The Glasshouse Seed Tray example with the saved prompt, settings and model revision.', + prompt: + 'Square editorial photograph, close three-quarter view of a shallow weathered terracotta propagation tray filled with rows of tiny green seedlings on a dark cedar potting bench. A small brushed steel plant mister sits at the far left with a soft reflection. Cool morning light passes through rain-streaked Victorian greenhouse panes behind the bench and brushes water droplets on the leaves. The front row of seedlings and the terracotta texture are crisp. The glass panes and other plants recede gently out of focus. Muted greens, natural warm clay and cool blue window light.', + negativePrompt: '', + example: { + mediaType: 'image', + status: 'unverified', + modelRevision: '462165984030d82259a11f4367a4eed129e94a7b', + lockedSeed: 42, + lockedSettings: { + width: 1024, + height: 1024, + steps: 50, + guidanceScale: 5, + strength: 0.8, + outputType: 'pil', + maxSequenceLength: 512, + dtype: 'float16', + resourceMode: 'expert', + quantizationMode: 'none', + autoOffload: true, + offloadMode: 'model_cpu', + }, + expectedOutput: { + width: 1024, + height: 1024, + }, + runtimeEstimate: '53.86 seconds in the saved run', + }, + requiredBackendCapabilities: [ + 'modules.DiffusersImage.Generate', + 'modules.DiffusersImage.LoadPipeline', + 'modules.DiffusersRuntime.PipelineQuantizationConfigV2', + 'modules.DiffusersRuntime.DiffusersExecutionRecipe', + 'modules.Image.Preview', + ], + mediaSlots: [ + { + id: 'result', + label: 'Generated image', + kind: 'image', + role: 'output', + placeholder: 'Result pending', + }, + ], + recipeSummary: + 'Reproduce the reviewed The Glasshouse Seed Tray example with the saved prompt, settings and model revision.', + runtimeReuseKey: 'sha256:canonical-graph-v1:084cbe824fed25ab44a940b2319aa37299f80d3fc2e06efb5848d701162902d9', }, { - workflowId: 'NucleusMoEImagePipeline:text_to_image', - sourceTaskTemplateId: 'task-template:nucleus-image:text-to-image:v1', - retainedGraphHash: 'sha256:canonical-graph-v1:ee3d46849aebf382a67208a5f3c2ee4461deb6bfdab6af3506dfbb5abb6dfec1', - originalReceiptSha256: 'adc6e23f1c2082c72ea9e0697cc87f4e7da5d8cc01540d06f0d6e08acea81a04', - reviewedTemplateSha256: '82918f24aaddf420da3c1213ac69779af2bf962cd2af50b33814f1eefdf14a3b', - reviewedCatalogLock: { - templateLockHash: 'tpl_4c4f64e3', - galleryTemplateLockHash: 'tpl_c722e490', - promptSettingsHash: 'ps_b971c379', - }, - promptSha256: 'e1a2c655bd0bf0edee77abe9e13b3e9f1fe06114b20e01047491a379d96b6f6f', - template: { - id: 'quiet_kiln_at_daybreak', - label: 'Nucleus Image 17B MoE — Text to image: Quiet Kiln at Daybreak', - mode: 'text_to_image', - modelType: 'NucleusMoEImagePipeline', - intentGroup: 'generate_image', - category: 'concept', - inputBindings: [], - outputKinds: ['image'], - readinessPolicy: 'runnable', - modelArtifact: { - source: 'hub', - value: 'NucleusAI/Nucleus-Image', - revision: '5e963db4fd0a65c7e4faf53ca2d4eca567c4dcfa', - }, - description: - 'Reproduce the reviewed Quiet Kiln at Daybreak example with the saved prompt, settings and model revision.', - prompt: - 'Square photojournalistic still life of a traditional brick pottery kiln at daybreak. Seen from an open-sided workshop at eye level with a 50 mm lens. A little orange ember bed is visible deep inside the single dark arched firebox. Three separate handmade terracotta pieces rest on a weathered wood shelf in the lower foreground. On the left is a tall narrow-neck bottle, in the center is a shallow open bowl, and on the right is a squat wide-mouthed jar. Each has a distinct silhouette with open space between it and the next. Soft cool blue morning light from the open workshop side, warm reflection on the nearest bricks, detailed tool marks and clay pores, and clear still air in the foreground. A distant grove is softly blurred beyond the workshop.', - negativePrompt: '', - example: { - mediaType: 'image', - status: 'unverified', - modelRevision: '5e963db4fd0a65c7e4faf53ca2d4eca567c4dcfa', - lockedSeed: 42, - lockedSettings: { - width: 1024, - height: 1024, - steps: 50, - guidanceScale: 4, - strength: 0.8, - outputType: 'pil', - maxSequenceLength: 1024, - dtype: 'bfloat16', - resourceMode: 'expert', - quantizationMode: 'none', - autoOffload: true, - offloadMode: 'model_cpu', - }, - expectedOutput: { - width: 1024, - height: 1024, - }, - runtimeEstimate: '264.24 seconds in the saved run', - }, - requiredBackendCapabilities: [ - 'modules.DiffusersImage.Generate', - 'modules.DiffusersImage.LoadPipeline', - 'modules.DiffusersRuntime.PipelineQuantizationConfigV2', - 'modules.DiffusersRuntime.DiffusersExecutionRecipe', - 'modules.Image.Preview', - ], - mediaSlots: [ - { - id: 'result', - label: 'Generated image', - kind: 'image', - role: 'output', - placeholder: 'Result pending', - }, - ], - recipeSummary: - 'Reproduce the reviewed Quiet Kiln at Daybreak example with the saved prompt, settings and model revision.', - runtimeReuseKey: 'sha256:canonical-graph-v1:ee3d46849aebf382a67208a5f3c2ee4461deb6bfdab6af3506dfbb5abb6dfec1', - }, + id: 'quiet_kiln_at_daybreak', + label: 'Nucleus Image 17B MoE — Text to image: Quiet Kiln at Daybreak', + mode: 'text_to_image', + modelType: 'NucleusMoEImagePipeline', + intentGroup: 'generate_image', + category: 'concept', + inputBindings: [], + outputKinds: ['image'], + readinessPolicy: 'runnable', + modelArtifact: { + source: 'hub', + value: 'NucleusAI/Nucleus-Image', + revision: '5e963db4fd0a65c7e4faf53ca2d4eca567c4dcfa', + }, + description: + 'Reproduce the reviewed Quiet Kiln at Daybreak example with the saved prompt, settings and model revision.', + prompt: + 'Square photojournalistic still life of a traditional brick pottery kiln at daybreak. Seen from an open-sided workshop at eye level with a 50 mm lens. A little orange ember bed is visible deep inside the single dark arched firebox. Three separate handmade terracotta pieces rest on a weathered wood shelf in the lower foreground. On the left is a tall narrow-neck bottle, in the center is a shallow open bowl, and on the right is a squat wide-mouthed jar. Each has a distinct silhouette with open space between it and the next. Soft cool blue morning light from the open workshop side, warm reflection on the nearest bricks, detailed tool marks and clay pores, and clear still air in the foreground. A distant grove is softly blurred beyond the workshop.', + negativePrompt: '', + example: { + mediaType: 'image', + status: 'unverified', + modelRevision: '5e963db4fd0a65c7e4faf53ca2d4eca567c4dcfa', + lockedSeed: 42, + lockedSettings: { + width: 1024, + height: 1024, + steps: 50, + guidanceScale: 4, + strength: 0.8, + outputType: 'pil', + maxSequenceLength: 1024, + dtype: 'bfloat16', + resourceMode: 'expert', + quantizationMode: 'none', + autoOffload: true, + offloadMode: 'model_cpu', + }, + expectedOutput: { + width: 1024, + height: 1024, + }, + runtimeEstimate: '264.24 seconds in the saved run', + }, + requiredBackendCapabilities: [ + 'modules.DiffusersImage.Generate', + 'modules.DiffusersImage.LoadPipeline', + 'modules.DiffusersRuntime.PipelineQuantizationConfigV2', + 'modules.DiffusersRuntime.DiffusersExecutionRecipe', + 'modules.Image.Preview', + ], + mediaSlots: [ + { + id: 'result', + label: 'Generated image', + kind: 'image', + role: 'output', + placeholder: 'Result pending', + }, + ], + recipeSummary: + 'Reproduce the reviewed Quiet Kiln at Daybreak example with the saved prompt, settings and model revision.', + runtimeReuseKey: 'sha256:canonical-graph-v1:ee3d46849aebf382a67208a5f3c2ee4461deb6bfdab6af3506dfbb5abb6dfec1', }, { - workflowId: 'StableDiffusionPipeline:inpaint', - sourceTaskTemplateId: 'task-template:sd15-base:inpaint:v1', - retainedGraphHash: 'sha256:canonical-graph-v1:d46308269e83807cfb33229dc47a0720e765872ff093ae7006857bb9fe382051', - originalReceiptSha256: '74c30496f6c07b0eceae986254a425b0b919b5e5d91fc668839d31a59783a4a6', - reviewedTemplateSha256: '26d6762e118bc9217762cc4abeec7817586ee58fb80ef09bc3c98e32a2789472', - reviewedCatalogLock: { - templateLockHash: 'tpl_46535382', - galleryTemplateLockHash: 'tpl_cab1d671', - promptSettingsHash: 'ps_b010f09b', - }, - promptSha256: '17cd8e35f8e283ec08936955f6848154024d1a15ca2518e5e91c535e18996924', - inputSha256: 'd143c4922ad498b9bd436d06df424bbff50baf023b93735b53ee401e19e4cbf1', - inputLocatorSha256: 'efcb2b3b9ced784bb620763301bb33ea3b2f6ac2561624a4a60c7a735049cfb1', - maskSha256: '71817f4823a73712c8e76e7d832ec382c29ec0a0bf5a472e09639448c082da01', - template: { - id: 'restoring_the_studio_backdrop', - label: 'Stable Diffusion 1.5 — Inpaint: Restoring the Studio Backdrop', - mode: 'inpaint', - modelType: 'StableDiffusionPipeline', - intentGroup: 'edit_image', - category: 'inpaint', - inputBindings: [ - { - id: 'source-image', - label: 'Source image', - mediaType: 'image', - origin: 'user', - requiredAt: 'workflow_start', - field: 'referenceImages', - count: 1, - }, - { - id: 'repair-mask', - label: 'Mask', - mediaType: 'image', - origin: 'user', - requiredAt: 'workflow_start', - field: 'maskImage', - count: 1, - }, - ], - outputKinds: ['image'], - readinessPolicy: 'requires_input', - modelArtifact: { - source: 'hub', - value: 'stable-diffusion-v1-5/stable-diffusion-v1-5', - revision: '451f4fe16113bff5a5d2269ed5ad43b0592e9a14', - }, - description: - 'Reproduce the reviewed Restoring the Studio Backdrop example with the saved prompt, settings and model revision.', - prompt: - 'An uninterrupted smooth warm light-gray studio backdrop with a soft even gradient from window light. Clean plain matte gray wall, subtle even tone, simple studio product photography background.', - negativePrompt: '', - example: { + id: 'restoring_the_studio_backdrop', + label: 'Stable Diffusion 1.5 — Inpaint: Restoring the Studio Backdrop', + mode: 'inpaint', + modelType: 'StableDiffusionPipeline', + intentGroup: 'edit_image', + category: 'inpaint', + inputBindings: [ + { + id: 'source-image', + label: 'Source image', mediaType: 'image', - status: 'unverified', - modelRevision: '451f4fe16113bff5a5d2269ed5ad43b0592e9a14', - lockedSeed: 42, - lockedSettings: { - width: 512, - height: 512, - steps: 30, - guidanceScale: 7.5, - strength: 0.8, - outputType: 'pil', - maxSequenceLength: 512, - dtype: 'float32', - resourceMode: 'expert', - quantizationMode: 'none', - autoOffload: false, - offloadMode: 'none', - }, - expectedOutput: { - width: 512, - height: 512, - }, - runtimeEstimate: '13.86 seconds in the saved run', - }, - requiredBackendCapabilities: [ - 'modules.DiffusersImage.Inpaint', - 'modules.DiffusersImage.LoadPipeline', - 'modules.DiffusersRuntime.PipelineQuantizationConfigV2', - 'modules.DiffusersRuntime.DiffusersExecutionRecipe', - 'modules.Image.Load', - 'modules.Image.Preview', - ], - mediaSlots: [ - { - id: 'before', - label: 'Source image', - kind: 'comparison_before', - role: 'before', - placeholder: 'Source pending', - }, - { - id: 'after', - label: 'Generated image', - kind: 'comparison_after', - role: 'after', - placeholder: 'Preview pending', - }, - ], - thumbnailVariant: 'compareSlider', - recipeSummary: - 'Reproduce the reviewed Restoring the Studio Backdrop example with the saved prompt, settings and model revision.', - runtimeReuseKey: 'sha256:canonical-graph-v1:d46308269e83807cfb33229dc47a0720e765872ff093ae7006857bb9fe382051', - }, - }, - { - workflowId: 'HuggingFaceAnyToAnyModel:text_generation', - sourceTaskTemplateId: 'task-template:janus-pro-1b:text-generation:v1', - retainedGraphHash: 'sha256:canonical-graph-v1:eb58163449468a297887a396fb270e73104cbf0a537b7a4c30a17561087d94eb', - originalReceiptSha256: '5c9d37ae6894cd6aa04a9bfc4a91beaf7e9eb73bef40e2edc144ddce0215b3e7', - reviewedTemplateSha256: 'cd73585863835d186d076de2bc4f37c36c11138376bdd2939af45290ff2c37af', - reviewedCatalogLock: { - templateLockHash: 'tpl_f85e0e6f', - galleryTemplateLockHash: 'tpl_ffabdfb5', - promptSettingsHash: 'ps_2eede069', - }, - promptSha256: 'ec9c470f211df567cf09face1047675387ac0bd0191e7962f42eaede605b45b7', - template: { - id: 'janus_reykjavik_travel_note', - label: 'Janus Pro 1B — Text generation: Reykjavik Travel Note', - modelDisplayName: 'Janus Pro 1B', - modelType: 'HuggingFaceAnyToAnyModel', - mode: 'text_generation', - intentGroup: 'utility', - category: 'text', - difficulty: 'starter', - tags: ['text', 'JSON'], - description: - 'Reproduce the reviewed Reykjavik Travel Note example with the saved prompt, settings and model revision.', - prompt: - 'A travel note needs one complete, accurate sentence of 8 to 16 words. Name the capital city of Iceland and the ocean that surrounds the island. Write the sentence only.', - negativePrompt: '', - modelArtifact: { - source: 'hub', - value: 'deepseek-community/Janus-Pro-1B', - revision: '1655280bb75959cc1cb85529a2a8b26e7016072e', - }, - requiredBackendCapabilities: [ - 'modules.HuggingFaceTransformers.GenerateAnyToAny', - 'modules.HuggingFaceTransformers.LoadAnyToAnyModel', - 'modules.Primitive.DataViewer', - ], - inputBindings: [], - readinessPolicy: 'runnable', - mediaSlots: [ - { - id: 'result', - label: 'Structured response', - kind: 'json', - role: 'output', - placeholder: 'Result pending', - }, - ], - outputKinds: ['json'], - example: { - mediaType: 'json', - status: 'unverified', - modelRevision: '1655280bb75959cc1cb85529a2a8b26e7016072e', - lockedSeed: 42, - lockedSettings: { - dtype: 'bfloat16', - resourceMode: 'expert', - quantizationMode: 'none', - autoOffload: false, - offloadMode: 'none', - }, - notes: 'The answer correctly identifies Reykjavik and the Atlantic Ocean. It exceeds the requested 8–16 words.', - runtimeEstimate: '5.86 seconds in the saved run', - }, - recipeSummary: - 'Reproduce the reviewed Reykjavik Travel Note example with the saved prompt, settings and model revision.', - runtimeReuseKey: 'sha256:canonical-graph-v1:eb58163449468a297887a396fb270e73104cbf0a537b7a4c30a17561087d94eb', - }, + origin: 'user', + requiredAt: 'workflow_start', + field: 'referenceImages', + count: 1, + }, + { + id: 'repair-mask', + label: 'Mask', + mediaType: 'image', + origin: 'user', + requiredAt: 'workflow_start', + field: 'maskImage', + count: 1, + }, + ], + outputKinds: ['image'], + readinessPolicy: 'requires_input', + modelArtifact: { + source: 'hub', + value: 'stable-diffusion-v1-5/stable-diffusion-v1-5', + revision: '451f4fe16113bff5a5d2269ed5ad43b0592e9a14', + }, + description: + 'Reproduce the reviewed Restoring the Studio Backdrop example with the saved prompt, settings and model revision.', + prompt: + 'An uninterrupted smooth warm light-gray studio backdrop with a soft even gradient from window light. Clean plain matte gray wall, subtle even tone, simple studio product photography background.', + negativePrompt: '', + example: { + mediaType: 'image', + status: 'unverified', + modelRevision: '451f4fe16113bff5a5d2269ed5ad43b0592e9a14', + lockedSeed: 42, + lockedSettings: { + width: 512, + height: 512, + steps: 30, + guidanceScale: 7.5, + strength: 0.8, + outputType: 'pil', + maxSequenceLength: 512, + dtype: 'float32', + resourceMode: 'expert', + quantizationMode: 'none', + autoOffload: false, + offloadMode: 'none', + }, + expectedOutput: { + width: 512, + height: 512, + }, + runtimeEstimate: '13.86 seconds in the saved run', + }, + requiredBackendCapabilities: [ + 'modules.DiffusersImage.Inpaint', + 'modules.DiffusersImage.LoadPipeline', + 'modules.DiffusersRuntime.PipelineQuantizationConfigV2', + 'modules.DiffusersRuntime.DiffusersExecutionRecipe', + 'modules.Image.Load', + 'modules.Image.Preview', + ], + mediaSlots: [ + { + id: 'before', + label: 'Source image', + kind: 'comparison_before', + role: 'before', + placeholder: 'Source pending', + }, + { + id: 'after', + label: 'Generated image', + kind: 'comparison_after', + role: 'after', + placeholder: 'Preview pending', + }, + ], + thumbnailVariant: 'compareSlider', + recipeSummary: + 'Reproduce the reviewed Restoring the Studio Backdrop example with the saved prompt, settings and model revision.', + runtimeReuseKey: 'sha256:canonical-graph-v1:d46308269e83807cfb33229dc47a0720e765872ff093ae7006857bb9fe382051', }, { - workflowId: 'HuggingFaceAnyToAnyModel:image_to_text', - sourceTaskTemplateId: 'task-template:janus-pro-1b:image-to-text:v1', - retainedGraphHash: 'sha256:canonical-graph-v1:92d1160e0d3e06871c8b32b01497360e199c3a0c5bb1e69d68f81a6c651f795f', - originalReceiptSha256: '13c313cdf72749eea9789f1cef22fa7e1106d1c46cf6d3a0fb0757c00677c45c', - reviewedTemplateSha256: '44e68d77baa00812c4b9888835013887d523bfe990c11caec96ac426c8ca87b3', - reviewedCatalogLock: { - templateLockHash: 'tpl_124461a5', - galleryTemplateLockHash: 'tpl_a56db7ab', - promptSettingsHash: 'ps_28ae7860', - }, - promptSha256: 'cd46be79ad59a1ca92ca16e6910d11f0272c0fdadf1688b1cbf05040e08606d2', - inputSha256: '42d903217dc0d8addf5bb6b4a91c2fd83f6fec7fbbf165d780308b5efcba8c6f', - inputLocatorSha256: 'ce6e7bdfc88e0f8e6c01d9db3078a2990182e21ac8169460c399a757c1f0c294', - template: { - id: 'janus_red_triangle_caption', - label: 'Janus Pro 1B — Image to text: Red Triangle Caption', - modelDisplayName: 'Janus Pro 1B', - modelType: 'HuggingFaceAnyToAnyModel', - mode: 'image_to_text', - intentGroup: 'utility', - category: 'text', - difficulty: 'starter', - tags: ['text', 'JSON'], - description: - 'Reproduce the reviewed Red Triangle Caption example with the saved prompt, settings and model revision.', - prompt: 'Describe the color, shape, and background of the symbol in one sentence.', - negativePrompt: '', - modelArtifact: { - source: 'hub', - value: 'deepseek-community/Janus-Pro-1B', - revision: '1655280bb75959cc1cb85529a2a8b26e7016072e', - }, - requiredBackendCapabilities: [ - 'modules.Image.Load', - 'modules.HuggingFaceTransformers.GenerateAnyToAny', - 'modules.HuggingFaceTransformers.LoadAnyToAnyModel', - 'modules.Primitive.DataViewer', - ], - inputBindings: [ - { - id: 'source-image', - label: 'Source image', - mediaType: 'image', - field: 'referenceImages', - origin: 'user', - requiredAt: 'workflow_start', - count: 1, - }, - ], - readinessPolicy: 'requires_input', - mediaSlots: [ - { - id: 'result', - label: 'Structured response', - kind: 'json', - role: 'output', - placeholder: 'Result pending', - }, - ], - outputKinds: ['json'], - example: { - mediaType: 'json', - status: 'unverified', - modelRevision: '1655280bb75959cc1cb85529a2a8b26e7016072e', - lockedSeed: 42, - lockedSettings: { - dtype: 'bfloat16', - resourceMode: 'expert', - quantizationMode: 'none', - autoOffload: false, - offloadMode: 'none', - }, - notes: - 'One sentence accurately identifies the red triangle and white background. The source stays private. Attach an image to run the workflow.', - runtimeEstimate: '6.26 seconds in the saved run', - }, - recipeSummary: - 'Reproduce the reviewed Red Triangle Caption example with the saved prompt, settings and model revision.', - runtimeReuseKey: 'sha256:canonical-graph-v1:92d1160e0d3e06871c8b32b01497360e199c3a0c5bb1e69d68f81a6c651f795f', - }, + id: 'janus_reykjavik_travel_note', + label: 'Janus Pro 1B — Text generation: Reykjavik Travel Note', + modelDisplayName: 'Janus Pro 1B', + modelType: 'HuggingFaceAnyToAnyModel', + mode: 'text_generation', + intentGroup: 'utility', + category: 'text', + difficulty: 'starter', + tags: ['text', 'JSON'], + description: + 'Reproduce the reviewed Reykjavik Travel Note example with the saved prompt, settings and model revision.', + prompt: + 'A travel note needs one complete, accurate sentence of 8 to 16 words. Name the capital city of Iceland and the ocean that surrounds the island. Write the sentence only.', + negativePrompt: '', + modelArtifact: { + source: 'hub', + value: 'deepseek-community/Janus-Pro-1B', + revision: '1655280bb75959cc1cb85529a2a8b26e7016072e', + }, + requiredBackendCapabilities: [ + 'modules.HuggingFaceTransformers.GenerateAnyToAny', + 'modules.HuggingFaceTransformers.LoadAnyToAnyModel', + 'modules.Primitive.DataViewer', + ], + inputBindings: [], + readinessPolicy: 'runnable', + mediaSlots: [ + { + id: 'result', + label: 'Structured response', + kind: 'json', + role: 'output', + placeholder: 'Result pending', + }, + ], + outputKinds: ['json'], + example: { + mediaType: 'json', + status: 'unverified', + modelRevision: '1655280bb75959cc1cb85529a2a8b26e7016072e', + lockedSeed: 42, + lockedSettings: { + dtype: 'bfloat16', + resourceMode: 'expert', + quantizationMode: 'none', + autoOffload: false, + offloadMode: 'none', + }, + notes: 'The answer correctly identifies Reykjavik and the Atlantic Ocean. It exceeds the requested 8–16 words.', + runtimeEstimate: '5.86 seconds in the saved run', + }, + recipeSummary: + 'Reproduce the reviewed Reykjavik Travel Note example with the saved prompt, settings and model revision.', + runtimeReuseKey: 'sha256:canonical-graph-v1:eb58163449468a297887a396fb270e73104cbf0a537b7a4c30a17561087d94eb', }, { - workflowId: 'HuggingFaceAnyToAnyModel:text_to_image', - sourceTaskTemplateId: 'task-template:janus-pro-1b:text-to-image:v1', - retainedGraphHash: 'sha256:canonical-graph-v1:fc935fef4353febb86244c65ae189e7da6bee8ad266dc6ca0d8f88b7497c4eb1', - originalReceiptSha256: '5820a7260e3f78175f684b39ee2a28c244bfb7cfaed6318c256c642dce306ecd', - reviewedTemplateSha256: '335f3fbf1907201be05d98148bff1fb7dc68d540750b71f33812769ddfa55879', - reviewedCatalogLock: { - templateLockHash: 'tpl_26cd8cd7', - galleryTemplateLockHash: 'tpl_ac9c0bc5', - promptSettingsHash: 'ps_4a949eaa', - }, - promptSha256: '07b559ce738871099c5f9a2f9a5c61fb9ca71a8bfca500c109449f50a46eb456', - template: { - id: 'janus_red_enamel_teapot', - label: 'Janus Pro 1B — Text to image: Red Enamel Teapot', - modelDisplayName: 'Janus Pro 1B', - modelType: 'HuggingFaceAnyToAnyModel', - mode: 'text_to_image', - intentGroup: 'generate_image', - category: 'product', - difficulty: 'starter', - tags: ['still life', 'product'], - description: - 'Reproduce the reviewed Red Enamel Teapot example with the saved prompt, settings and model revision.', - prompt: - 'A single bright red enamel teapot on a clean pale stone table. Natural window light, quiet still life photography, clearly visible spout and handle.', - negativePrompt: '', - modelArtifact: { - source: 'hub', - value: 'deepseek-community/Janus-Pro-1B', - revision: '1655280bb75959cc1cb85529a2a8b26e7016072e', - }, - requiredBackendCapabilities: [ - 'modules.Image.Preview', - 'modules.HuggingFaceTransformers.GenerateAnyToAny', - 'modules.HuggingFaceTransformers.LoadAnyToAnyModel', - ], - inputBindings: [], - readinessPolicy: 'runnable', - mediaSlots: [ - { - id: 'result', - label: 'Generated image', - kind: 'image', - role: 'output', - placeholder: 'Result pending', - }, - ], - outputKinds: ['image'], - example: { + id: 'janus_red_triangle_caption', + label: 'Janus Pro 1B — Image to text: Red Triangle Caption', + modelDisplayName: 'Janus Pro 1B', + modelType: 'HuggingFaceAnyToAnyModel', + mode: 'image_to_text', + intentGroup: 'utility', + category: 'text', + difficulty: 'starter', + tags: ['text', 'JSON'], + description: + 'Reproduce the reviewed Red Triangle Caption example with the saved prompt, settings and model revision.', + prompt: 'Describe the color, shape, and background of the symbol in one sentence.', + negativePrompt: '', + modelArtifact: { + source: 'hub', + value: 'deepseek-community/Janus-Pro-1B', + revision: '1655280bb75959cc1cb85529a2a8b26e7016072e', + }, + requiredBackendCapabilities: [ + 'modules.Image.Load', + 'modules.HuggingFaceTransformers.GenerateAnyToAny', + 'modules.HuggingFaceTransformers.LoadAnyToAnyModel', + 'modules.Primitive.DataViewer', + ], + inputBindings: [ + { + id: 'source-image', + label: 'Source image', mediaType: 'image', - status: 'unverified', - modelRevision: '1655280bb75959cc1cb85529a2a8b26e7016072e', - lockedSeed: 42, - lockedSettings: { - dtype: 'bfloat16', - resourceMode: 'expert', - quantizationMode: 'none', - autoOffload: false, - offloadMode: 'none', - }, - expectedOutput: { - width: 384, - height: 384, - }, - notes: - 'One clearly recognizable red teapot with an unobstructed spout and handle. The strong window reflection obscures a small patch of enamel. Native 384 × 384 output.', - runtimeEstimate: '17.56 seconds in the saved run', - }, - recipeSummary: - 'Reproduce the reviewed Red Enamel Teapot example with the saved prompt, settings and model revision.', - runtimeReuseKey: 'sha256:canonical-graph-v1:fc935fef4353febb86244c65ae189e7da6bee8ad266dc6ca0d8f88b7497c4eb1', - }, + field: 'referenceImages', + origin: 'user', + requiredAt: 'workflow_start', + count: 1, + }, + ], + readinessPolicy: 'requires_input', + mediaSlots: [ + { + id: 'result', + label: 'Structured response', + kind: 'json', + role: 'output', + placeholder: 'Result pending', + }, + ], + outputKinds: ['json'], + example: { + mediaType: 'json', + status: 'unverified', + modelRevision: '1655280bb75959cc1cb85529a2a8b26e7016072e', + lockedSeed: 42, + lockedSettings: { + dtype: 'bfloat16', + resourceMode: 'expert', + quantizationMode: 'none', + autoOffload: false, + offloadMode: 'none', + }, + notes: + 'One sentence accurately identifies the red triangle and white background. The source stays private. Attach an image to run the workflow.', + runtimeEstimate: '6.26 seconds in the saved run', + }, + recipeSummary: + 'Reproduce the reviewed Red Triangle Caption example with the saved prompt, settings and model revision.', + runtimeReuseKey: 'sha256:canonical-graph-v1:92d1160e0d3e06871c8b32b01497360e199c3a0c5bb1e69d68f81a6c651f795f', }, { - workflowId: 'LuminaPipeline:text_to_image', - sourceTaskTemplateId: 'task-template:lumina-next:text-to-image:v1', - retainedGraphHash: 'sha256:canonical-graph-v1:029c04a5a3e933bb710937287da6cab94ef80b85a2b57c93e3002a3b6334d62f', - originalReceiptSha256: 'cbb5826ba9e44f9608ef88d6c52757cbd040c9bcb611f88e5892a2e93c79c8d3', - reviewedTemplateSha256: '4545f92379bc42dd213572033b19a7d37bfd24a3cf8c5eb90fb510c2e2c4c1e7', - reviewedCatalogLock: { - templateLockHash: 'tpl_9b863ddd', - galleryTemplateLockHash: 'tpl_f24a6ace', - promptSettingsHash: 'ps_a3742a3f', - }, - promptSha256: '429f531790d0fb684f2bae38fd64c0519e34a091da09ed608b3f69ac0590bb68', - template: { - id: 'lumina_opal_pendant_in_limestone', - label: 'Lumina Next — Text to image: Opal Pendant in Limestone', - modelDisplayName: 'Lumina Next', - modelType: 'LuminaPipeline', - mode: 'text_to_image', - intentGroup: 'generate_image', - category: 'product', - difficulty: 'starter', - tags: ['still life', 'product'], - description: - 'Reproduce the reviewed Opal Pendant in Limestone example with the saved prompt, settings and model revision.', - prompt: - 'Architectural product photograph of a single illuminated opal glass globe pendant suspended by one straight aged-brass stem entering the top of the frame. The smooth round sphere is fully visible and centered against a warm textured limestone arch. Soft daylight washes the arch from the left. A subtle warm glow diffuses evenly through the white globe. Simple elegant composition, natural stone grain, convincing brass and glass, restrained palette, closely framed square editorial photograph.', - negativePrompt: '', - modelArtifact: { - source: 'hub', - value: 'Alpha-VLLM/Lumina-Next-SFT-diffusers', - revision: '0ee5ec90043acf5cb41fe96274af36eb7fad8d95', - }, - requiredBackendCapabilities: [ - 'modules.DiffusersImage.Generate', - 'modules.DiffusersImage.LoadPipeline', - 'modules.DiffusersRuntime.PipelineQuantizationConfigV2', - 'modules.DiffusersRuntime.DiffusersExecutionRecipe', - 'modules.Image.Preview', - ], - inputBindings: [], - readinessPolicy: 'runnable', - mediaSlots: [ - { - id: 'result', - label: 'Generated image', - kind: 'image', - role: 'output', - placeholder: 'Result pending', - }, - ], - outputKinds: ['image'], - example: { - mediaType: 'image', - status: 'unverified', - modelRevision: '0ee5ec90043acf5cb41fe96274af36eb7fad8d95', - lockedSeed: 42, - lockedSettings: { - dtype: 'bfloat16', - resourceMode: 'expert', - quantizationMode: 'none', - autoOffload: true, - offloadMode: 'model_cpu', - width: 1024, - height: 1024, - steps: 30, - guidanceScale: 4, - outputType: 'pil', - maxSequenceLength: 256, - }, - expectedOutput: { - width: 1024, - height: 1024, - }, - notes: - 'The globe, aged brass fitting and textured arch are clear. The bulb creates a bright central hotspot where the prompt asked for an even glow. Native 1024 × 1024 output.', - runtimeEstimate: '42.56 seconds in the saved run', - }, - recipeSummary: - 'Reproduce the reviewed Opal Pendant in Limestone example with the saved prompt, settings and model revision.', - runtimeReuseKey: 'sha256:canonical-graph-v1:029c04a5a3e933bb710937287da6cab94ef80b85a2b57c93e3002a3b6334d62f', - }, + id: 'janus_red_enamel_teapot', + label: 'Janus Pro 1B — Text to image: Red Enamel Teapot', + modelDisplayName: 'Janus Pro 1B', + modelType: 'HuggingFaceAnyToAnyModel', + mode: 'text_to_image', + intentGroup: 'generate_image', + category: 'product', + difficulty: 'starter', + tags: ['still life', 'product'], + description: 'Reproduce the reviewed Red Enamel Teapot example with the saved prompt, settings and model revision.', + prompt: + 'A single bright red enamel teapot on a clean pale stone table. Natural window light, quiet still life photography, clearly visible spout and handle.', + negativePrompt: '', + modelArtifact: { + source: 'hub', + value: 'deepseek-community/Janus-Pro-1B', + revision: '1655280bb75959cc1cb85529a2a8b26e7016072e', + }, + requiredBackendCapabilities: [ + 'modules.Image.Preview', + 'modules.HuggingFaceTransformers.GenerateAnyToAny', + 'modules.HuggingFaceTransformers.LoadAnyToAnyModel', + ], + inputBindings: [], + readinessPolicy: 'runnable', + mediaSlots: [ + { + id: 'result', + label: 'Generated image', + kind: 'image', + role: 'output', + placeholder: 'Result pending', + }, + ], + outputKinds: ['image'], + example: { + mediaType: 'image', + status: 'unverified', + modelRevision: '1655280bb75959cc1cb85529a2a8b26e7016072e', + lockedSeed: 42, + lockedSettings: { + dtype: 'bfloat16', + resourceMode: 'expert', + quantizationMode: 'none', + autoOffload: false, + offloadMode: 'none', + }, + expectedOutput: { + width: 384, + height: 384, + }, + notes: + 'One clearly recognizable red teapot with an unobstructed spout and handle. The strong window reflection obscures a small patch of enamel. Native 384 × 384 output.', + runtimeEstimate: '17.56 seconds in the saved run', + }, + recipeSummary: + 'Reproduce the reviewed Red Enamel Teapot example with the saved prompt, settings and model revision.', + runtimeReuseKey: 'sha256:canonical-graph-v1:fc935fef4353febb86244c65ae189e7da6bee8ad266dc6ca0d8f88b7497c4eb1', }, { - workflowId: 'DDIMPipeline:unconditional_image', - sourceTaskTemplateId: 'task-template:ddim-cifar10:unconditional-image:v1', - retainedGraphHash: 'sha256:canonical-graph-v1:ef9521d37a186e6b6539068596033f2b921370e3cf3ca8a031f3feaae8716434', - originalReceiptSha256: 'ba8521d8043808cfb8880be8e8f46eadb81e266624aa6fb478c8b0d156bab079', - reviewedTemplateSha256: '1f41b7d2d7bccb216f46b9ce174a9d4246f0348584e208baeeaa4af92c172c9f', - reviewedCatalogLock: { - templateLockHash: 'tpl_13b8b56b', - galleryTemplateLockHash: 'tpl_48bbabb3', - promptSettingsHash: 'ps_b456b1ed', - }, - promptSha256: 'e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855', - template: { - id: 'ddim_cifar10_preview', - label: 'DDIM CIFAR-10 32x32 — Unconditional image: CIFAR-10 Technical Preview', - mode: 'unconditional_image', - modelType: 'DDIMPipeline', - intentGroup: 'generate_image', - category: 'concept', - outputKinds: ['image'], - readinessPolicy: 'runnable', - modelArtifact: { - source: 'hub', - value: 'google/ddpm-cifar10-32', - revision: '267b167dc01f0e4e61923ea244e8b988f84deb80', - }, - description: - 'Reproduce the reviewed CIFAR-10 Technical Preview example with the saved prompt, settings and model revision.', - prompt: '', - negativePrompt: '', - example: { - mediaType: 'image', - status: 'unverified', - modelRevision: '267b167dc01f0e4e61923ea244e8b988f84deb80', - lockedSeed: 42, - lockedSettings: { - width: 32, - height: 32, - steps: 50, - guidanceScale: 0, - strength: 0.8, - outputType: 'pil', - maxSequenceLength: 512, - dtype: 'float32', - resourceMode: 'expert', - quantizationMode: 'none', - autoOffload: false, - offloadMode: 'none', - }, - expectedOutput: { - width: 32, - height: 32, - }, - notes: 'Technical preview at the native 32 by 32 resolution.', - runtimeEstimate: '3.95 seconds in the saved run', - }, - requiredBackendCapabilities: [ - 'modules.DiffusersImage.LoadPipeline', - 'modules.DiffusersRuntime.PipelineQuantizationConfigV2', - 'modules.DiffusersRuntime.DiffusersExecutionRecipe', - 'modules.DiffusersImage.UnconditionalGenerate', - 'modules.Image.Preview', - ], - mediaSlots: [ - { - id: 'result', - label: 'Generated image', - kind: 'image', - role: 'output', - placeholder: 'Result pending', - }, - ], - recipeSummary: - 'Reproduce the reviewed CIFAR-10 Technical Preview example with the saved prompt, settings and model revision.', - runtimeReuseKey: 'sha256:canonical-graph-v1:ef9521d37a186e6b6539068596033f2b921370e3cf3ca8a031f3feaae8716434', - }, + id: 'lumina_opal_pendant_in_limestone', + label: 'Lumina Next — Text to image: Opal Pendant in Limestone', + modelDisplayName: 'Lumina Next', + modelType: 'LuminaPipeline', + mode: 'text_to_image', + intentGroup: 'generate_image', + category: 'product', + difficulty: 'starter', + tags: ['still life', 'product'], + description: + 'Reproduce the reviewed Opal Pendant in Limestone example with the saved prompt, settings and model revision.', + prompt: + 'Architectural product photograph of a single illuminated opal glass globe pendant suspended by one straight aged-brass stem entering the top of the frame. The smooth round sphere is fully visible and centered against a warm textured limestone arch. Soft daylight washes the arch from the left. A subtle warm glow diffuses evenly through the white globe. Simple elegant composition, natural stone grain, convincing brass and glass, restrained palette, closely framed square editorial photograph.', + negativePrompt: '', + modelArtifact: { + source: 'hub', + value: 'Alpha-VLLM/Lumina-Next-SFT-diffusers', + revision: '0ee5ec90043acf5cb41fe96274af36eb7fad8d95', + }, + requiredBackendCapabilities: [ + 'modules.DiffusersImage.Generate', + 'modules.DiffusersImage.LoadPipeline', + 'modules.DiffusersRuntime.PipelineQuantizationConfigV2', + 'modules.DiffusersRuntime.DiffusersExecutionRecipe', + 'modules.Image.Preview', + ], + inputBindings: [], + readinessPolicy: 'runnable', + mediaSlots: [ + { + id: 'result', + label: 'Generated image', + kind: 'image', + role: 'output', + placeholder: 'Result pending', + }, + ], + outputKinds: ['image'], + example: { + mediaType: 'image', + status: 'unverified', + modelRevision: '0ee5ec90043acf5cb41fe96274af36eb7fad8d95', + lockedSeed: 42, + lockedSettings: { + dtype: 'bfloat16', + resourceMode: 'expert', + quantizationMode: 'none', + autoOffload: true, + offloadMode: 'model_cpu', + width: 1024, + height: 1024, + steps: 30, + guidanceScale: 4, + outputType: 'pil', + maxSequenceLength: 256, + }, + expectedOutput: { + width: 1024, + height: 1024, + }, + notes: + 'The globe, aged brass fitting and textured arch are clear. The bulb creates a bright central hotspot where the prompt asked for an even glow. Native 1024 × 1024 output.', + runtimeEstimate: '42.56 seconds in the saved run', + }, + recipeSummary: + 'Reproduce the reviewed Opal Pendant in Limestone example with the saved prompt, settings and model revision.', + runtimeReuseKey: 'sha256:canonical-graph-v1:029c04a5a3e933bb710937287da6cab94ef80b85a2b57c93e3002a3b6334d62f', }, { - workflowId: 'StableDiffusionXLPipeline:inpaint', - sourceTaskTemplateId: 'task-template:sdxl-base:inpaint:v1', - retainedGraphHash: 'sha256:canonical-graph-v1:46f00547faa02a687a12eafda44d9c94802a76505143f4a95124b6bd44eabfda', - originalReceiptSha256: '04773f9c39ab30246fca3f87394f504a61772ccfa97630d4b46d1a9530450ee2', - reviewedTemplateSha256: '5ac53251bbc44c8b3eb62ab06fba702e275ebc7340348f36fb20a055d36b3573', - reviewedCatalogLock: { - templateLockHash: 'tpl_15f3348b', - galleryTemplateLockHash: 'tpl_72c55f1d', - promptSettingsHash: 'ps_fdf2b4ba', - }, - promptSha256: '159253308aba23cc8f6955da96e48e550533d368ca286ad70b6caa601d1291e4', - inputSha256: 'e75c20f0e8a74e283b996bf526e6ea74535ed24125ad97c2d92508d3435d7a87', - inputLocatorSha256: '69ba088466bbd714eba0a70d1dc24984230ca1ac74b00ac0ff1bbcb29675799d', - maskSha256: '1f48775f2826f84e0c5b55f16f3475bdc80ecad8b931d6b0279598610e9a828d', - template: { - id: 'sdxl_clear_cobalt_backdrop', - label: 'Stable Diffusion XL 1.0 — Inpaint: Clear Backdrop for Cobalt Glass', - mode: 'inpaint', - modelType: 'StableDiffusionXLPipeline', - intentGroup: 'edit_image', - category: 'inpaint', - inputBindings: [ - { - id: 'source-image', - label: 'Source image', - mediaType: 'image', - field: 'referenceImages', - origin: 'user', - requiredAt: 'workflow_start', - count: 1, - }, - { - id: 'mask-image', - label: 'Mask image', - mediaType: 'image', - field: 'maskImage', - origin: 'user', - requiredAt: 'workflow_start', - count: 1, - }, - ], - outputKinds: ['image'], - readinessPolicy: 'requires_input', - modelArtifact: { - source: 'hub', - value: 'stabilityai/stable-diffusion-xl-base-1.0', - revision: '462165984030d82259a11f4367a4eed129e94a7b', - }, - description: - 'Reproduce the reviewed Clear Backdrop for Cobalt Glass example with the saved prompt, settings and model revision.', - prompt: - 'Studio product photograph of a cobalt blue glass cube on a pale stone slab against a plain pale-gray wall. The upper right is empty wall, a seamless uninterrupted matte surface with diffuse daylight and a subtle gradient that matches the surrounding studio backdrop.', - negativePrompt: '', - example: { - mediaType: 'image', - status: 'unverified', - modelRevision: '462165984030d82259a11f4367a4eed129e94a7b', - lockedSeed: 42, - lockedSettings: { - width: 1024, - height: 1024, - steps: 30, - guidanceScale: 5, - strength: 0.8, - outputType: 'pil', - maxSequenceLength: 512, - dtype: 'bfloat16', - resourceMode: 'expert', - quantizationMode: 'none', - autoOffload: true, - offloadMode: 'model_cpu', - }, - expectedOutput: { - width: 1024, - height: 1024, - }, - runtimeEstimate: '22.41 seconds in the saved run', - }, - requiredBackendCapabilities: [ - 'modules.DiffusersImage.Inpaint', - 'modules.DiffusersImage.LoadPipeline', - 'modules.DiffusersRuntime.PipelineQuantizationConfigV2', - 'modules.DiffusersRuntime.DiffusersExecutionRecipe', - 'modules.Image.Load', - 'modules.Image.Preview', - ], - mediaSlots: [ - { - id: 'before', - label: 'Source image', - kind: 'comparison_before', - role: 'before', - placeholder: 'Source pending', - }, - { - id: 'after', - label: 'Generated image', - kind: 'comparison_after', - role: 'after', - placeholder: 'Preview pending', - }, - ], - thumbnailVariant: 'compareSlider', - recipeSummary: - 'Reproduce the reviewed Clear Backdrop for Cobalt Glass example with the saved prompt, settings and model revision.', - runtimeReuseKey: 'sha256:canonical-graph-v1:46f00547faa02a687a12eafda44d9c94802a76505143f4a95124b6bd44eabfda', - }, + id: 'ddim_cifar10_preview', + label: 'DDIM CIFAR-10 32x32 — Unconditional image: CIFAR-10 Technical Preview', + mode: 'unconditional_image', + modelType: 'DDIMPipeline', + intentGroup: 'generate_image', + category: 'concept', + outputKinds: ['image'], + readinessPolicy: 'runnable', + modelArtifact: { + source: 'hub', + value: 'google/ddpm-cifar10-32', + revision: '267b167dc01f0e4e61923ea244e8b988f84deb80', + }, + description: + 'Reproduce the reviewed CIFAR-10 Technical Preview example with the saved prompt, settings and model revision.', + prompt: '', + negativePrompt: '', + example: { + mediaType: 'image', + status: 'unverified', + modelRevision: '267b167dc01f0e4e61923ea244e8b988f84deb80', + lockedSeed: 42, + lockedSettings: { + width: 32, + height: 32, + steps: 50, + guidanceScale: 0, + strength: 0.8, + outputType: 'pil', + maxSequenceLength: 512, + dtype: 'float32', + resourceMode: 'expert', + quantizationMode: 'none', + autoOffload: false, + offloadMode: 'none', + }, + expectedOutput: { + width: 32, + height: 32, + }, + notes: 'Technical preview at the native 32 by 32 resolution.', + runtimeEstimate: '3.95 seconds in the saved run', + }, + requiredBackendCapabilities: [ + 'modules.DiffusersImage.LoadPipeline', + 'modules.DiffusersRuntime.PipelineQuantizationConfigV2', + 'modules.DiffusersRuntime.DiffusersExecutionRecipe', + 'modules.DiffusersImage.UnconditionalGenerate', + 'modules.Image.Preview', + ], + mediaSlots: [ + { + id: 'result', + label: 'Generated image', + kind: 'image', + role: 'output', + placeholder: 'Result pending', + }, + ], + recipeSummary: + 'Reproduce the reviewed CIFAR-10 Technical Preview example with the saved prompt, settings and model revision.', + runtimeReuseKey: 'sha256:canonical-graph-v1:ef9521d37a186e6b6539068596033f2b921370e3cf3ca8a031f3feaae8716434', }, { - workflowId: 'StableDiffusionXLTurboPipeline:text_to_image', - sourceTaskTemplateId: 'task-template:sdxl-turbo:text-to-image:v1', - retainedGraphHash: 'sha256:canonical-graph-v1:40e7ee74d823ffc46f9e096c7cba50ec7f825e36627159674e1e621c33bbe0d3', - originalReceiptSha256: 'c530e10728c8c3871c1f6d6e58589996b8e926729d7c57e43fa36d020660e3dd', - reviewedTemplateSha256: 'a8bae14e8dc50c3969cba99c45be96d5ffbbca1fa12824640f5c3360bcc4427c', - reviewedCatalogLock: { - templateLockHash: 'tpl_117d90f4', - galleryTemplateLockHash: 'tpl_53f34630', - promptSettingsHash: 'ps_4787eff9', - }, - promptSha256: '370292f42dec86505ba60a4386671fcf130c10ce047b910063ffbbb0a511e0eb', - template: { - id: 'sdxl_turbo_orange_caps', - label: 'Stable Diffusion XL Turbo — Text to image: Orange Caps on Moss', - mode: 'text_to_image', - modelType: 'StableDiffusionXLTurboPipeline', - intentGroup: 'generate_image', - category: 'concept', - outputKinds: ['image'], - readinessPolicy: 'runnable', - modelArtifact: { - source: 'hub', - value: 'stabilityai/sdxl-turbo', - revision: '71153311d3dbb46851df1931d3ca6e939de83304', - }, - description: - 'Reproduce the reviewed Orange Caps on Moss example with the saved prompt, settings and model revision.', - prompt: - 'Square editorial photograph of orange trumpet mushrooms growing on dark moss beside a fallen birch twig. Rain droplets, soft overcast daylight, shallow depth of field, natural macro detail.', - negativePrompt: '', - example: { + id: 'sdxl_clear_cobalt_backdrop', + label: 'Stable Diffusion XL 1.0 — Inpaint: Clear Backdrop for Cobalt Glass', + mode: 'inpaint', + modelType: 'StableDiffusionXLPipeline', + intentGroup: 'edit_image', + category: 'inpaint', + inputBindings: [ + { + id: 'source-image', + label: 'Source image', mediaType: 'image', - status: 'unverified', - modelRevision: '71153311d3dbb46851df1931d3ca6e939de83304', - lockedSeed: 42, - lockedSettings: { - width: 512, - height: 512, - steps: 1, - guidanceScale: 0, - strength: 0.8, - outputType: 'pil', - maxSequenceLength: 512, - dtype: 'float16', - resourceMode: 'expert', - quantizationMode: 'none', - autoOffload: true, - offloadMode: 'model_cpu', - }, - expectedOutput: { - width: 512, - height: 512, - }, - runtimeEstimate: '7.25 seconds in the saved run', - }, - requiredBackendCapabilities: [ - 'modules.DiffusersImage.Generate', - 'modules.DiffusersImage.LoadPipeline', - 'modules.DiffusersRuntime.PipelineQuantizationConfigV2', - 'modules.DiffusersRuntime.DiffusersExecutionRecipe', - 'modules.Image.Preview', - ], - mediaSlots: [ - { - id: 'result', - label: 'Generated image', - kind: 'image', - role: 'output', - placeholder: 'Result pending', - }, - ], - recipeSummary: - 'Reproduce the reviewed Orange Caps on Moss example with the saved prompt, settings and model revision.', - runtimeReuseKey: 'sha256:canonical-graph-v1:40e7ee74d823ffc46f9e096c7cba50ec7f825e36627159674e1e621c33bbe0d3', - }, + field: 'referenceImages', + origin: 'user', + requiredAt: 'workflow_start', + count: 1, + }, + { + id: 'mask-image', + label: 'Mask image', + mediaType: 'image', + field: 'maskImage', + origin: 'user', + requiredAt: 'workflow_start', + count: 1, + }, + ], + outputKinds: ['image'], + readinessPolicy: 'requires_input', + modelArtifact: { + source: 'hub', + value: 'stabilityai/stable-diffusion-xl-base-1.0', + revision: '462165984030d82259a11f4367a4eed129e94a7b', + }, + description: + 'Reproduce the reviewed Clear Backdrop for Cobalt Glass example with the saved prompt, settings and model revision.', + prompt: + 'Studio product photograph of a cobalt blue glass cube on a pale stone slab against a plain pale-gray wall. The upper right is empty wall, a seamless uninterrupted matte surface with diffuse daylight and a subtle gradient that matches the surrounding studio backdrop.', + negativePrompt: '', + example: { + mediaType: 'image', + status: 'unverified', + modelRevision: '462165984030d82259a11f4367a4eed129e94a7b', + lockedSeed: 42, + lockedSettings: { + width: 1024, + height: 1024, + steps: 30, + guidanceScale: 5, + strength: 0.8, + outputType: 'pil', + maxSequenceLength: 512, + dtype: 'bfloat16', + resourceMode: 'expert', + quantizationMode: 'none', + autoOffload: true, + offloadMode: 'model_cpu', + }, + expectedOutput: { + width: 1024, + height: 1024, + }, + runtimeEstimate: '22.41 seconds in the saved run', + }, + requiredBackendCapabilities: [ + 'modules.DiffusersImage.Inpaint', + 'modules.DiffusersImage.LoadPipeline', + 'modules.DiffusersRuntime.PipelineQuantizationConfigV2', + 'modules.DiffusersRuntime.DiffusersExecutionRecipe', + 'modules.Image.Load', + 'modules.Image.Preview', + ], + mediaSlots: [ + { + id: 'before', + label: 'Source image', + kind: 'comparison_before', + role: 'before', + placeholder: 'Source pending', + }, + { + id: 'after', + label: 'Generated image', + kind: 'comparison_after', + role: 'after', + placeholder: 'Preview pending', + }, + ], + thumbnailVariant: 'compareSlider', + recipeSummary: + 'Reproduce the reviewed Clear Backdrop for Cobalt Glass example with the saved prompt, settings and model revision.', + runtimeReuseKey: 'sha256:canonical-graph-v1:46f00547faa02a687a12eafda44d9c94802a76505143f4a95124b6bd44eabfda', }, { - workflowId: 'HuggingFaceSpeechRecognitionModel:speech_translation', - sourceTaskTemplateId: 'task-template:whisper-tiny:speech-translation:v1', - retainedGraphHash: 'sha256:canonical-graph-v1:69e261c29aa777da002dada801f01091436e8f116780f1ac7271ce23a3da425c', - originalReceiptSha256: '9d7ed920f22989d90bddc05fb1976b69025132a87799d43d361f14d671539d1c', - reviewedTemplateSha256: 'cfc95f86cf49288a5b851e7e042558b50bcd091f1a69cfabdf961cb204fde1ac', - reviewedCatalogLock: { - templateLockHash: 'tpl_d016a22c', - galleryTemplateLockHash: 'tpl_169ef95b', - promptSettingsHash: 'ps_c6fb7372', - }, - inputSha256: 'cbf33b144644e786767fec1d5db416d50533d9846f8347e157ac8c3f54f26f11', - inputLocatorSha256: '49fcd9605ca47c396030ec76144518411fdbfb9a953cf7ca27717017b010b13b', - template: { - id: 'whisper_small_an_open_door', - label: 'Whisper Small — Speech translation: An Open Door', - mode: 'speech_translation', - modelType: 'HuggingFaceSpeechRecognitionModel', - modelDisplayName: 'Whisper Small', - intentGroup: 'utility', - category: 'audio_edit', - inputBindings: [ - { - id: 'source-audio', - label: 'Source audio', - mediaType: 'audio', - field: 'sourceAudio', - origin: 'user', - requiredAt: 'workflow_start', - count: 1, - }, - ], - outputKinds: ['json'], - readinessPolicy: 'requires_input', - modelArtifact: { - source: 'hub', - value: 'openai/whisper-small', - revision: '973afd24965f72e36ca33b3055d56a652f456b4d', - }, - description: 'Reproduce the reviewed An Open Door example with the saved prompt, settings and model revision.', - prompt: '', - negativePrompt: '', - example: { - mediaType: 'json', - status: 'unverified', - modelRevision: '973afd24965f72e36ca33b3055d56a652f456b4d', - lockedSeed: 42, - lockedSettings: { - width: 1, - height: 1, - steps: 1, - guidanceScale: 0, - strength: 0.8, - outputType: 'pil', - maxSequenceLength: 512, - dtype: 'float32', - resourceMode: 'expert', - quantizationMode: 'none', - autoOffload: false, - offloadMode: 'none', - speechLanguage: 'es', - }, - runtimeEstimate: '3.83 seconds in the saved run', - }, - requiredBackendCapabilities: [ - 'modules.Audio.Load', - 'modules.HuggingFaceSpeech.LoadSpeechRecognitionModel', - 'modules.HuggingFaceSpeech.TranscribeAudio', - 'modules.Primitive.DataViewer', - ], - mediaSlots: [ - { - id: 'result', - label: 'Structured response', - kind: 'json', - role: 'output', - placeholder: 'Result pending', - }, - ], - recipeSummary: 'Reproduce the reviewed An Open Door example with the saved prompt, settings and model revision.', - runtimeReuseKey: 'sha256:canonical-graph-v1:69e261c29aa777da002dada801f01091436e8f116780f1ac7271ce23a3da425c', - }, + id: 'sdxl_turbo_orange_caps', + label: 'Stable Diffusion XL Turbo — Text to image: Orange Caps on Moss', + mode: 'text_to_image', + modelType: 'StableDiffusionXLTurboPipeline', + intentGroup: 'generate_image', + category: 'concept', + outputKinds: ['image'], + readinessPolicy: 'runnable', + modelArtifact: { + source: 'hub', + value: 'stabilityai/sdxl-turbo', + revision: '71153311d3dbb46851df1931d3ca6e939de83304', + }, + description: + 'Reproduce the reviewed Orange Caps on Moss example with the saved prompt, settings and model revision.', + prompt: + 'Square editorial photograph of orange trumpet mushrooms growing on dark moss beside a fallen birch twig. Rain droplets, soft overcast daylight, shallow depth of field, natural macro detail.', + negativePrompt: '', + example: { + mediaType: 'image', + status: 'unverified', + modelRevision: '71153311d3dbb46851df1931d3ca6e939de83304', + lockedSeed: 42, + lockedSettings: { + width: 512, + height: 512, + steps: 1, + guidanceScale: 0, + strength: 0.8, + outputType: 'pil', + maxSequenceLength: 512, + dtype: 'float16', + resourceMode: 'expert', + quantizationMode: 'none', + autoOffload: true, + offloadMode: 'model_cpu', + }, + expectedOutput: { + width: 512, + height: 512, + }, + runtimeEstimate: '7.25 seconds in the saved run', + }, + requiredBackendCapabilities: [ + 'modules.DiffusersImage.Generate', + 'modules.DiffusersImage.LoadPipeline', + 'modules.DiffusersRuntime.PipelineQuantizationConfigV2', + 'modules.DiffusersRuntime.DiffusersExecutionRecipe', + 'modules.Image.Preview', + ], + mediaSlots: [ + { + id: 'result', + label: 'Generated image', + kind: 'image', + role: 'output', + placeholder: 'Result pending', + }, + ], + recipeSummary: + 'Reproduce the reviewed Orange Caps on Moss example with the saved prompt, settings and model revision.', + runtimeReuseKey: 'sha256:canonical-graph-v1:40e7ee74d823ffc46f9e096c7cba50ec7f825e36627159674e1e621c33bbe0d3', }, { - workflowId: 'HuggingFaceImageTextToTextModel:image_to_text', - sourceTaskTemplateId: 'task-template:smolvlm-256m-instruct:image-to-text:v1', - retainedGraphHash: 'sha256:canonical-graph-v1:619f187da77a6fda72f90354dcb1768036d2f46b8418f51d674ceac1942c31a6', - originalReceiptSha256: 'daf5d3a9cb638e942a8f3f53df6cc86860e874943bc28fa01175ca2d30e56d5d', - reviewedTemplateSha256: '7c5cc75ca115a437ec6a7ebab59030ef5c5ea14c74735bae5ca78dff427fb0e2', - reviewedCatalogLock: { - templateLockHash: 'tpl_7d29caa4', - galleryTemplateLockHash: 'tpl_0912c789', - promptSettingsHash: 'ps_b91c5c35', - }, - promptSha256: '31d08ea568d869e6cf7c0742d85a54617ba38744b60123dfe25f3c81f9e111aa', - inputSha256: '42d903217dc0d8addf5bb6b4a91c2fd83f6fec7fbbf165d780308b5efcba8c6f', - inputLocatorSha256: 'ce6e7bdfc88e0f8e6c01d9db3078a2990182e21ac8169460c399a757c1f0c294', - template: { - id: 'smolvlm_red_triangle', - label: 'SmolVLM 256M Instruct — Image to text: Red Triangle Identification', - mode: 'image_to_text', - modelType: 'HuggingFaceImageTextToTextModel', - intentGroup: 'edit_image', - category: 'text', - inputBindings: [ - { - id: 'source-image', - label: 'Source image', - mediaType: 'image', - field: 'referenceImages', - origin: 'user', - requiredAt: 'workflow_start', - count: 1, - }, - ], - outputKinds: ['json'], - readinessPolicy: 'requires_input', - modelArtifact: { - source: 'hub', - value: 'HuggingFaceTB/SmolVLM-256M-Instruct', - revision: '7e3e67edbbed1bf9888184d9df282b700a323964', - }, - description: - 'Reproduce the reviewed Red Triangle Identification example with the saved prompt, settings and model revision.', - prompt: 'What is the red object on the white background?', - negativePrompt: '', - example: { - mediaType: 'json', - status: 'unverified', - modelRevision: '7e3e67edbbed1bf9888184d9df282b700a323964', - lockedSeed: 42, - lockedSettings: { - width: 512, - height: 512, - steps: 1, - guidanceScale: 0, - strength: 0.8, - outputType: 'pil', - maxSequenceLength: 512, - dtype: 'float32', - resourceMode: 'expert', - quantizationMode: 'none', - autoOffload: false, - offloadMode: 'none', - }, - runtimeEstimate: '3.11 seconds in the saved run', - }, - requiredBackendCapabilities: [ - 'modules.Image.Load', - 'modules.HuggingFaceTransformers.GenerateImageVideoText', - 'modules.HuggingFaceTransformers.LoadImageTextToTextModel', - 'modules.Primitive.DataViewer', - ], - mediaSlots: [ - { - id: 'result', - label: 'Structured response', - kind: 'json', - role: 'output', - placeholder: 'Result pending', - }, - ], - recipeSummary: - 'Reproduce the reviewed Red Triangle Identification example with the saved prompt, settings and model revision.', - runtimeReuseKey: 'sha256:canonical-graph-v1:619f187da77a6fda72f90354dcb1768036d2f46b8418f51d674ceac1942c31a6', - }, + id: 'whisper_small_an_open_door', + label: 'Whisper Small — Speech translation: An Open Door', + mode: 'speech_translation', + modelType: 'HuggingFaceSpeechRecognitionModel', + modelDisplayName: 'Whisper Small', + intentGroup: 'utility', + category: 'audio_edit', + inputBindings: [ + { + id: 'source-audio', + label: 'Source audio', + mediaType: 'audio', + field: 'sourceAudio', + origin: 'user', + requiredAt: 'workflow_start', + count: 1, + }, + ], + outputKinds: ['json'], + readinessPolicy: 'requires_input', + modelArtifact: { + source: 'hub', + value: 'openai/whisper-small', + revision: '973afd24965f72e36ca33b3055d56a652f456b4d', + }, + description: 'Reproduce the reviewed An Open Door example with the saved prompt, settings and model revision.', + prompt: '', + negativePrompt: '', + example: { + mediaType: 'json', + status: 'unverified', + modelRevision: '973afd24965f72e36ca33b3055d56a652f456b4d', + lockedSeed: 42, + lockedSettings: { + width: 1, + height: 1, + steps: 1, + guidanceScale: 0, + strength: 0.8, + outputType: 'pil', + maxSequenceLength: 512, + dtype: 'float32', + resourceMode: 'expert', + quantizationMode: 'none', + autoOffload: false, + offloadMode: 'none', + speechLanguage: 'es', + }, + runtimeEstimate: '3.83 seconds in the saved run', + }, + requiredBackendCapabilities: [ + 'modules.Audio.Load', + 'modules.HuggingFaceSpeech.LoadSpeechRecognitionModel', + 'modules.HuggingFaceSpeech.TranscribeAudio', + 'modules.Primitive.DataViewer', + ], + mediaSlots: [ + { + id: 'result', + label: 'Structured response', + kind: 'json', + role: 'output', + placeholder: 'Result pending', + }, + ], + recipeSummary: 'Reproduce the reviewed An Open Door example with the saved prompt, settings and model revision.', + runtimeReuseKey: 'sha256:canonical-graph-v1:69e261c29aa777da002dada801f01091436e8f116780f1ac7271ce23a3da425c', }, { - workflowId: 'Kandinsky3Pipeline:text_to_image', - sourceTaskTemplateId: 'task-template:kandinsky3:text-to-image:v1', - retainedGraphHash: 'sha256:canonical-graph-v1:2d805bf9c48d49b9e4c2778136f8c528d8ff82a7f7753ba7a99021cc439b5b3c', - originalReceiptSha256: '41b3b13c0f66711ffa3ac065f7a990bee824fc52db69940b8f75e0f7f79bdd38', - reviewedTemplateSha256: '5870090e6b4d12c32d72566b6038e9bcc8bf8d063492a28ecbeb65275d77c8e9', - reviewedCatalogLock: { - templateLockHash: 'tpl_23ed569e', - galleryTemplateLockHash: 'tpl_44580a03', - promptSettingsHash: 'ps_bf341b46', - }, - promptSha256: '349928bf9ad6755eb4abb5af47199b1152e32323eb855dca5a9dbcfeb3475730', - template: { - id: 'kandinsky3_ginkgo_on_slate', - label: 'Kandinsky 3 — Text to image: Ginkgo on Slate', - mode: 'text_to_image', - modelType: 'Kandinsky3Pipeline', - intentGroup: 'generate_image', - category: 'concept', - outputKinds: ['image'], - readinessPolicy: 'runnable', - modelArtifact: { - source: 'hub', - value: 'kandinsky-community/kandinsky-3', - revision: 'bf79e6c219da8a94abb50235fdc4567eb8fb4632', - }, - description: 'Reproduce the reviewed Ginkgo on Slate example with the saved prompt, settings and model revision.', - prompt: - 'Macro still life photograph of a single fan-shaped ginkgo leaf on a dark weathered stone. The leaf is golden yellow with fine veins and two small droplets. Soft light from the right. Restrained warm gold against charcoal slate, close overhead composition.', - negativePrompt: '', - example: { + id: 'smolvlm_red_triangle', + label: 'SmolVLM 256M Instruct — Image to text: Red Triangle Identification', + mode: 'image_to_text', + modelType: 'HuggingFaceImageTextToTextModel', + intentGroup: 'edit_image', + category: 'text', + inputBindings: [ + { + id: 'source-image', + label: 'Source image', mediaType: 'image', - status: 'unverified', - modelRevision: 'bf79e6c219da8a94abb50235fdc4567eb8fb4632', - lockedSeed: 42, - lockedSettings: { - width: 1024, - height: 1024, - steps: 25, - guidanceScale: 3, - strength: 0.75, - outputType: 'pil', - maxSequenceLength: 128, - dtype: 'float32', - resourceMode: 'expert', - quantizationMode: 'none', - autoOffload: false, - offloadMode: 'none', - device: 'cpu:0', - }, - expectedOutput: { - width: 1024, - height: 1024, - }, - runtimeEstimate: '237.05 seconds in the saved run', - }, - requiredBackendCapabilities: [ - 'modules.DiffusersImage.Generate', - 'modules.DiffusersImage.LoadPipeline', - 'modules.DiffusersRuntime.PipelineQuantizationConfigV2', - 'modules.DiffusersRuntime.DiffusersExecutionRecipe', - 'modules.Image.Preview', - ], - mediaSlots: [ - { - id: 'result', - label: 'Generated image', - kind: 'image', - role: 'output', - placeholder: 'Result pending', - }, - ], - recipeSummary: - 'Reproduce the reviewed Ginkgo on Slate example with the saved prompt, settings and model revision.', - runtimeReuseKey: 'sha256:canonical-graph-v1:2d805bf9c48d49b9e4c2778136f8c528d8ff82a7f7753ba7a99021cc439b5b3c', - }, + field: 'referenceImages', + origin: 'user', + requiredAt: 'workflow_start', + count: 1, + }, + ], + outputKinds: ['json'], + readinessPolicy: 'requires_input', + modelArtifact: { + source: 'hub', + value: 'HuggingFaceTB/SmolVLM-256M-Instruct', + revision: '7e3e67edbbed1bf9888184d9df282b700a323964', + }, + description: + 'Reproduce the reviewed Red Triangle Identification example with the saved prompt, settings and model revision.', + prompt: 'What is the red object on the white background?', + negativePrompt: '', + example: { + mediaType: 'json', + status: 'unverified', + modelRevision: '7e3e67edbbed1bf9888184d9df282b700a323964', + lockedSeed: 42, + lockedSettings: { + width: 512, + height: 512, + steps: 1, + guidanceScale: 0, + strength: 0.8, + outputType: 'pil', + maxSequenceLength: 512, + dtype: 'float32', + resourceMode: 'expert', + quantizationMode: 'none', + autoOffload: false, + offloadMode: 'none', + }, + runtimeEstimate: '3.11 seconds in the saved run', + }, + requiredBackendCapabilities: [ + 'modules.Image.Load', + 'modules.HuggingFaceTransformers.GenerateImageVideoText', + 'modules.HuggingFaceTransformers.LoadImageTextToTextModel', + 'modules.Primitive.DataViewer', + ], + mediaSlots: [ + { + id: 'result', + label: 'Structured response', + kind: 'json', + role: 'output', + placeholder: 'Result pending', + }, + ], + recipeSummary: + 'Reproduce the reviewed Red Triangle Identification example with the saved prompt, settings and model revision.', + runtimeReuseKey: 'sha256:canonical-graph-v1:619f187da77a6fda72f90354dcb1768036d2f46b8418f51d674ceac1942c31a6', }, { - workflowId: 'ChromaPipeline:text_to_image', - sourceTaskTemplateId: 'task-template:chroma1-hd:text-to-image:v1', - retainedGraphHash: 'sha256:canonical-graph-v1:bf170489052eadc150ad0e4149344312741328c5e4e859fb1473be81c3fe63ea', - originalReceiptSha256: 'bad53850d48ffdaffa0896ec019e295c349577ee86d169e1ea1da8752324a215', - reviewedTemplateSha256: '5221fc5d744cbdcf1aa29d1fa9b27cddc0fcbd75983c24061e6218d41621617d', - reviewedCatalogLock: { - templateLockHash: 'tpl_db9b22c3', - galleryTemplateLockHash: 'tpl_9dbc94cc', - promptSettingsHash: 'ps_aaaac429', - }, - promptSha256: 'fc24a34ab87b06b7b32949cbe2c78454bad6f08e19f227023d17def472dfbc6a', - template: { - id: 'chroma_terracotta_and_blue', - label: 'Chroma1-HD 1024px — Text to image: Terracotta and Blue', - mode: 'text_to_image', - modelType: 'ChromaPipeline', - intentGroup: 'generate_image', - category: 'concept', - outputKinds: ['image'], - readinessPolicy: 'runnable', - modelArtifact: { - source: 'hub', - value: 'lodestones/Chroma1-HD', - revision: '0e0c60ece1e82b17cb7f77342d765ba5024c40c0', - }, - description: - 'Reproduce the reviewed Terracotta and Blue example with the saved prompt, settings and model revision.', - prompt: - 'A square editorial architectural photograph of an empty blue-tiled fountain in a sunlit terracotta courtyard. Viewed from a little above at a three-quarter angle. A single broad shadow falls from the left wall across the worn clay paving. Hand-glazed ultramarine tiles reflect diffuse sky light and a dry rattling olive branch hangs above the wall. Two shallow steps and a simple arched niche establish the scale. Restrained color, quiet Mediterranean summer afternoon, tactile materials, composed with room around the entire fountain.', - negativePrompt: '', - example: { - mediaType: 'image', - status: 'unverified', - modelRevision: '0e0c60ece1e82b17cb7f77342d765ba5024c40c0', - lockedSeed: 42, - lockedSettings: { - width: 1024, - height: 1024, - steps: 40, - guidanceScale: 3, - strength: 0.8, - outputType: 'pil', - maxSequenceLength: 512, - pagScale: 3, - pagAdaptiveScale: 0, - dtype: 'bfloat16', - resourceMode: 'expert', - quantizationMode: 'none', - autoOffload: true, - offloadMode: 'model_cpu', - }, - expectedOutput: { - width: 1024, - height: 1024, - }, - runtimeEstimate: '1258.79 seconds in the saved run', - }, - requiredBackendCapabilities: [ - 'modules.DiffusersImage.Generate', - 'modules.DiffusersImage.LoadPipeline', - 'modules.DiffusersRuntime.PipelineQuantizationConfigV2', - 'modules.DiffusersRuntime.DiffusersExecutionRecipe', - 'modules.Image.Preview', - ], - mediaSlots: [ - { - id: 'result', - label: 'Generated image', - kind: 'image', - role: 'output', - placeholder: 'Result pending', - }, - ], - recipeSummary: - 'Reproduce the reviewed Terracotta and Blue example with the saved prompt, settings and model revision.', - runtimeReuseKey: 'sha256:canonical-graph-v1:bf170489052eadc150ad0e4149344312741328c5e4e859fb1473be81c3fe63ea', - }, + id: 'kandinsky3_ginkgo_on_slate', + label: 'Kandinsky 3 — Text to image: Ginkgo on Slate', + mode: 'text_to_image', + modelType: 'Kandinsky3Pipeline', + intentGroup: 'generate_image', + category: 'concept', + outputKinds: ['image'], + readinessPolicy: 'runnable', + modelArtifact: { + source: 'hub', + value: 'kandinsky-community/kandinsky-3', + revision: 'bf79e6c219da8a94abb50235fdc4567eb8fb4632', + }, + description: 'Reproduce the reviewed Ginkgo on Slate example with the saved prompt, settings and model revision.', + prompt: + 'Macro still life photograph of a single fan-shaped ginkgo leaf on a dark weathered stone. The leaf is golden yellow with fine veins and two small droplets. Soft light from the right. Restrained warm gold against charcoal slate, close overhead composition.', + negativePrompt: '', + example: { + mediaType: 'image', + status: 'unverified', + modelRevision: 'bf79e6c219da8a94abb50235fdc4567eb8fb4632', + lockedSeed: 42, + lockedSettings: { + width: 1024, + height: 1024, + steps: 25, + guidanceScale: 3, + strength: 0.75, + outputType: 'pil', + maxSequenceLength: 128, + dtype: 'float32', + resourceMode: 'expert', + quantizationMode: 'none', + autoOffload: false, + offloadMode: 'none', + device: 'cpu:0', + }, + expectedOutput: { + width: 1024, + height: 1024, + }, + runtimeEstimate: '237.05 seconds in the saved run', + }, + requiredBackendCapabilities: [ + 'modules.DiffusersImage.Generate', + 'modules.DiffusersImage.LoadPipeline', + 'modules.DiffusersRuntime.PipelineQuantizationConfigV2', + 'modules.DiffusersRuntime.DiffusersExecutionRecipe', + 'modules.Image.Preview', + ], + mediaSlots: [ + { + id: 'result', + label: 'Generated image', + kind: 'image', + role: 'output', + placeholder: 'Result pending', + }, + ], + recipeSummary: 'Reproduce the reviewed Ginkgo on Slate example with the saved prompt, settings and model revision.', + runtimeReuseKey: 'sha256:canonical-graph-v1:2d805bf9c48d49b9e4c2778136f8c528d8ff82a7f7753ba7a99021cc439b5b3c', }, { - workflowId: 'Lumina2Pipeline:text_to_image', - sourceTaskTemplateId: 'task-template:lumina2:text-to-image:v1', - retainedGraphHash: 'sha256:canonical-graph-v1:b58ba817732e34d2c40f61f7bb7dbdebf32c6f2a2bbb21dcdbb237004edc4cc3', - originalReceiptSha256: '68ec9070dfda6f4bcf5990d404e3032b9c9d0add8965753e0a162bfdd67c09f7', - reviewedTemplateSha256: 'c1fecc495b278628b9539fb84079b73b70db420165a7e151def065731920853e', - reviewedCatalogLock: { - templateLockHash: 'tpl_a75e5588', - galleryTemplateLockHash: 'tpl_0c2048ce', - promptSettingsHash: 'ps_e264186c', - }, - promptSha256: '5210322404f5ed727bc5dfa782f3da51ed652c32b33f46000ece286969b103bd', - template: { - id: 'lumina2_larch_on_glacial_pond', - label: 'Lumina Image 2.0 2.6B — Text to image: Larch on the Glacial Pond', - mode: 'text_to_image', - modelType: 'Lumina2Pipeline', - intentGroup: 'generate_image', - category: 'concept', - outputKinds: ['image'], - readinessPolicy: 'runnable', - modelArtifact: { - source: 'hub', - value: 'Alpha-VLLM/Lumina-Image-2.0', - revision: '53504abd8178b30685b6c4c7a4cd181ff78b73e9', - }, - description: - 'Reproduce the reviewed Larch on the Glacial Pond example with the saved prompt, settings and model revision.', - prompt: - 'Landscape photograph from the edge of a glacial pond. In the foreground a small islet with one weathered larch reflects in still turquoise water. Behind it, pale granite peaks rise into a clear blue sky. Late afternoon side light, natural colors, finely detailed rocks and trees.', - negativePrompt: '', - example: { - mediaType: 'image', - status: 'unverified', - modelRevision: '53504abd8178b30685b6c4c7a4cd181ff78b73e9', - lockedSeed: 42, - lockedSettings: { - width: 1024, - height: 1024, - steps: 50, - guidanceScale: 4, - strength: 0.8, - outputType: 'pil', - maxSequenceLength: 256, - pagScale: 3, - pagAdaptiveScale: 0, - dtype: 'bfloat16', - resourceMode: 'expert', - quantizationMode: 'none', - autoOffload: true, - offloadMode: 'model_cpu', - }, - expectedOutput: { - width: 1024, - height: 1024, - }, - runtimeEstimate: '93.18 seconds in the saved run', - }, - requiredBackendCapabilities: [ - 'modules.DiffusersImage.Generate', - 'modules.DiffusersImage.LoadPipeline', - 'modules.DiffusersRuntime.PipelineQuantizationConfigV2', - 'modules.DiffusersRuntime.DiffusersExecutionRecipe', - 'modules.Image.Preview', - ], - mediaSlots: [ - { - id: 'result', - label: 'Generated image', - kind: 'image', - role: 'output', - placeholder: 'Result pending', - }, - ], - recipeSummary: - 'Reproduce the reviewed Larch on the Glacial Pond example with the saved prompt, settings and model revision.', - runtimeReuseKey: 'sha256:canonical-graph-v1:b58ba817732e34d2c40f61f7bb7dbdebf32c6f2a2bbb21dcdbb237004edc4cc3', - }, + id: 'chroma_terracotta_and_blue', + label: 'Chroma1-HD 1024px — Text to image: Terracotta and Blue', + mode: 'text_to_image', + modelType: 'ChromaPipeline', + intentGroup: 'generate_image', + category: 'concept', + outputKinds: ['image'], + readinessPolicy: 'runnable', + modelArtifact: { + source: 'hub', + value: 'lodestones/Chroma1-HD', + revision: '0e0c60ece1e82b17cb7f77342d765ba5024c40c0', + }, + description: + 'Reproduce the reviewed Terracotta and Blue example with the saved prompt, settings and model revision.', + prompt: + 'A square editorial architectural photograph of an empty blue-tiled fountain in a sunlit terracotta courtyard. Viewed from a little above at a three-quarter angle. A single broad shadow falls from the left wall across the worn clay paving. Hand-glazed ultramarine tiles reflect diffuse sky light and a dry rattling olive branch hangs above the wall. Two shallow steps and a simple arched niche establish the scale. Restrained color, quiet Mediterranean summer afternoon, tactile materials, composed with room around the entire fountain.', + negativePrompt: '', + example: { + mediaType: 'image', + status: 'unverified', + modelRevision: '0e0c60ece1e82b17cb7f77342d765ba5024c40c0', + lockedSeed: 42, + lockedSettings: { + width: 1024, + height: 1024, + steps: 40, + guidanceScale: 3, + strength: 0.8, + outputType: 'pil', + maxSequenceLength: 512, + pagScale: 3, + pagAdaptiveScale: 0, + dtype: 'bfloat16', + resourceMode: 'expert', + quantizationMode: 'none', + autoOffload: true, + offloadMode: 'model_cpu', + }, + expectedOutput: { + width: 1024, + height: 1024, + }, + runtimeEstimate: '1258.79 seconds in the saved run', + }, + requiredBackendCapabilities: [ + 'modules.DiffusersImage.Generate', + 'modules.DiffusersImage.LoadPipeline', + 'modules.DiffusersRuntime.PipelineQuantizationConfigV2', + 'modules.DiffusersRuntime.DiffusersExecutionRecipe', + 'modules.Image.Preview', + ], + mediaSlots: [ + { + id: 'result', + label: 'Generated image', + kind: 'image', + role: 'output', + placeholder: 'Result pending', + }, + ], + recipeSummary: + 'Reproduce the reviewed Terracotta and Blue example with the saved prompt, settings and model revision.', + runtimeReuseKey: 'sha256:canonical-graph-v1:bf170489052eadc150ad0e4149344312741328c5e4e859fb1473be81c3fe63ea', }, { - workflowId: 'HunyuanDiTPipeline:text_to_image', - sourceTaskTemplateId: 'task-template:hunyuan-dit-v1-2-distilled:text-to-image:v1', - retainedGraphHash: 'sha256:canonical-graph-v1:4d26fca7d33aec5e119da74520c47fd96fa41f9de0b92a3afca76505fb5722aa', - originalReceiptSha256: '9e8d30a1d20d721f8aeab6b9172f7f50403b1e8e855d83af17e6430fe97d9650', - reviewedTemplateSha256: '59e80838a60338b27351f10a7cc8478dbe1ae81e04d5d7718ee37aa556585788', - reviewedCatalogLock: { - templateLockHash: 'tpl_9f125174', - galleryTemplateLockHash: 'tpl_ad3b4f77', - promptSettingsHash: 'ps_f38e8fdc', - }, - promptSha256: 'c54d404876a0c92e240aaa5cdd2e2fd448b934d2050e459047d23b82c2a65e7b', - template: { - id: 'hunyuan_dit_coastal_lighthouse', - label: 'Hunyuan-DiT v1.2 Distilled — Text to image: Coastal Lighthouse at Dawn', - mode: 'text_to_image', - modelType: 'HunyuanDiTPipeline', - intentGroup: 'generate_image', - category: 'concept', - outputKinds: ['image'], - readinessPolicy: 'runnable', - modelArtifact: { - source: 'hub', - value: 'Tencent-Hunyuan/HunyuanDiT-v1.2-Diffusers-Distilled', - revision: 'ba991d1546d8c50936c4c16398ed0a87b9b99fb1', - }, - description: - 'Reproduce the reviewed Coastal Lighthouse at Dawn example with the saved prompt, settings and model revision.', - prompt: - 'A landscape photograph of a small weathered lighthouse on a rugged coastal headland. Low cloud, soft dawn light, dark slate rock and pale sea foam below. One narrow path cuts through short golden coastal grass toward the lighthouse.', - negativePrompt: '', - example: { - mediaType: 'image', - status: 'unverified', - modelRevision: 'ba991d1546d8c50936c4c16398ed0a87b9b99fb1', - lockedSeed: 42, - lockedSettings: { - width: 1024, - height: 1024, - steps: 25, - guidanceScale: 5, - strength: 0.8, - outputType: 'pil', - maxSequenceLength: 256, - pagScale: 3, - pagAdaptiveScale: 0, - dtype: 'float16', - resourceMode: 'expert', - quantizationMode: 'none', - autoOffload: true, - offloadMode: 'model_cpu', - }, - expectedOutput: { - width: 1024, - height: 1024, - }, - runtimeEstimate: '259.23 seconds in the saved run', - }, - requiredBackendCapabilities: [ - 'modules.DiffusersImage.Generate', - 'modules.DiffusersImage.LoadPipeline', - 'modules.DiffusersRuntime.PipelineQuantizationConfigV2', - 'modules.DiffusersRuntime.DiffusersExecutionRecipe', - 'modules.Image.Preview', - ], - mediaSlots: [ - { - id: 'result', - label: 'Generated image', - kind: 'image', - role: 'output', - placeholder: 'Result pending', - }, - ], - recipeSummary: - 'Reproduce the reviewed Coastal Lighthouse at Dawn example with the saved prompt, settings and model revision.', - runtimeReuseKey: 'sha256:canonical-graph-v1:4d26fca7d33aec5e119da74520c47fd96fa41f9de0b92a3afca76505fb5722aa', - }, + id: 'lumina2_larch_on_glacial_pond', + label: 'Lumina Image 2.0 2.6B — Text to image: Larch on the Glacial Pond', + mode: 'text_to_image', + modelType: 'Lumina2Pipeline', + intentGroup: 'generate_image', + category: 'concept', + outputKinds: ['image'], + readinessPolicy: 'runnable', + modelArtifact: { + source: 'hub', + value: 'Alpha-VLLM/Lumina-Image-2.0', + revision: '53504abd8178b30685b6c4c7a4cd181ff78b73e9', + }, + description: + 'Reproduce the reviewed Larch on the Glacial Pond example with the saved prompt, settings and model revision.', + prompt: + 'Landscape photograph from the edge of a glacial pond. In the foreground a small islet with one weathered larch reflects in still turquoise water. Behind it, pale granite peaks rise into a clear blue sky. Late afternoon side light, natural colors, finely detailed rocks and trees.', + negativePrompt: '', + example: { + mediaType: 'image', + status: 'unverified', + modelRevision: '53504abd8178b30685b6c4c7a4cd181ff78b73e9', + lockedSeed: 42, + lockedSettings: { + width: 1024, + height: 1024, + steps: 50, + guidanceScale: 4, + strength: 0.8, + outputType: 'pil', + maxSequenceLength: 256, + pagScale: 3, + pagAdaptiveScale: 0, + dtype: 'bfloat16', + resourceMode: 'expert', + quantizationMode: 'none', + autoOffload: true, + offloadMode: 'model_cpu', + }, + expectedOutput: { + width: 1024, + height: 1024, + }, + runtimeEstimate: '93.18 seconds in the saved run', + }, + requiredBackendCapabilities: [ + 'modules.DiffusersImage.Generate', + 'modules.DiffusersImage.LoadPipeline', + 'modules.DiffusersRuntime.PipelineQuantizationConfigV2', + 'modules.DiffusersRuntime.DiffusersExecutionRecipe', + 'modules.Image.Preview', + ], + mediaSlots: [ + { + id: 'result', + label: 'Generated image', + kind: 'image', + role: 'output', + placeholder: 'Result pending', + }, + ], + recipeSummary: + 'Reproduce the reviewed Larch on the Glacial Pond example with the saved prompt, settings and model revision.', + runtimeReuseKey: 'sha256:canonical-graph-v1:b58ba817732e34d2c40f61f7bb7dbdebf32c6f2a2bbb21dcdbb237004edc4cc3', }, { - workflowId: 'OmniGenPipeline:text_to_image', - sourceTaskTemplateId: 'task-template:omnigen-v1:text-to-image:v1', - retainedGraphHash: 'sha256:canonical-graph-v1:38376f1ad21e5c153fb96860a4e566847ff916716637ffd2061dfae350577c93', - originalReceiptSha256: 'c78e90591a491385de1f96d89b6aed18dee1367eae36bfcb0b27ee3cecaf8deb', - reviewedTemplateSha256: 'e3ceb2dc096775601a6e65b7ab61f5ccc64658d2a69586f3c6a13f2efe1a973c', - reviewedCatalogLock: { - templateLockHash: 'tpl_39e7a513', - galleryTemplateLockHash: 'tpl_0c5c4bcd', - promptSettingsHash: 'ps_4e4eb7da', - }, - promptSha256: 'a95f8ab9a463c7c571c8667695bb3162234828a00547f8b20db0826612e5a71d', - template: { - id: 'omnigen_tulips_after_rain', - label: 'OmniGen v1 — Text to image: Tulips After the Rain', - mode: 'text_to_image', - modelType: 'OmniGenPipeline', - intentGroup: 'generate_image', - category: 'concept', - outputKinds: ['image'], - readinessPolicy: 'runnable', - modelArtifact: { - source: 'hub', - value: 'Shitao/OmniGen-v1-diffusers', - revision: '016e2f61d12a98303f6bbdf122687694d7984268', - }, - description: - 'Reproduce the reviewed Tulips After the Rain example with the saved prompt, settings and model revision.', - prompt: - 'A rainy evening at a tiny neighborhood flower shop, viewed from across a narrow paved lane. A single warm window lights buckets of orange tulips beneath an awning. Mauve clouds and wet reflections, natural materials, cinematic street photography.', - negativePrompt: '', - example: { - mediaType: 'image', - status: 'unverified', - modelRevision: '016e2f61d12a98303f6bbdf122687694d7984268', - lockedSeed: 42, - lockedSettings: { - width: 1024, - height: 1024, - steps: 50, - guidanceScale: 2.5, - strength: 0.8, - outputType: 'pil', - maxSequenceLength: 256, - pagScale: 3, - pagAdaptiveScale: 0, - dtype: 'bfloat16', - resourceMode: 'expert', - quantizationMode: 'none', - autoOffload: true, - offloadMode: 'model_cpu', - }, - expectedOutput: { - width: 1024, - height: 1024, - }, - runtimeEstimate: '366.03 seconds in the saved run', - }, - requiredBackendCapabilities: [ - 'modules.DiffusersImage.Generate', - 'modules.DiffusersImage.LoadPipeline', - 'modules.DiffusersRuntime.PipelineQuantizationConfigV2', - 'modules.DiffusersRuntime.DiffusersExecutionRecipe', - 'modules.Image.Preview', - ], - mediaSlots: [ - { - id: 'result', - label: 'Generated image', - kind: 'image', - role: 'output', - placeholder: 'Result pending', - }, - ], - recipeSummary: - 'Reproduce the reviewed Tulips After the Rain example with the saved prompt, settings and model revision.', - runtimeReuseKey: 'sha256:canonical-graph-v1:38376f1ad21e5c153fb96860a4e566847ff916716637ffd2061dfae350577c93', - }, + id: 'hunyuan_dit_coastal_lighthouse', + label: 'Hunyuan-DiT v1.2 Distilled — Text to image: Coastal Lighthouse at Dawn', + mode: 'text_to_image', + modelType: 'HunyuanDiTPipeline', + intentGroup: 'generate_image', + category: 'concept', + outputKinds: ['image'], + readinessPolicy: 'runnable', + modelArtifact: { + source: 'hub', + value: 'Tencent-Hunyuan/HunyuanDiT-v1.2-Diffusers-Distilled', + revision: 'ba991d1546d8c50936c4c16398ed0a87b9b99fb1', + }, + description: + 'Reproduce the reviewed Coastal Lighthouse at Dawn example with the saved prompt, settings and model revision.', + prompt: + 'A landscape photograph of a small weathered lighthouse on a rugged coastal headland. Low cloud, soft dawn light, dark slate rock and pale sea foam below. One narrow path cuts through short golden coastal grass toward the lighthouse.', + negativePrompt: '', + example: { + mediaType: 'image', + status: 'unverified', + modelRevision: 'ba991d1546d8c50936c4c16398ed0a87b9b99fb1', + lockedSeed: 42, + lockedSettings: { + width: 1024, + height: 1024, + steps: 25, + guidanceScale: 5, + strength: 0.8, + outputType: 'pil', + maxSequenceLength: 256, + pagScale: 3, + pagAdaptiveScale: 0, + dtype: 'float16', + resourceMode: 'expert', + quantizationMode: 'none', + autoOffload: true, + offloadMode: 'model_cpu', + }, + expectedOutput: { + width: 1024, + height: 1024, + }, + runtimeEstimate: '259.23 seconds in the saved run', + }, + requiredBackendCapabilities: [ + 'modules.DiffusersImage.Generate', + 'modules.DiffusersImage.LoadPipeline', + 'modules.DiffusersRuntime.PipelineQuantizationConfigV2', + 'modules.DiffusersRuntime.DiffusersExecutionRecipe', + 'modules.Image.Preview', + ], + mediaSlots: [ + { + id: 'result', + label: 'Generated image', + kind: 'image', + role: 'output', + placeholder: 'Result pending', + }, + ], + recipeSummary: + 'Reproduce the reviewed Coastal Lighthouse at Dawn example with the saved prompt, settings and model revision.', + runtimeReuseKey: 'sha256:canonical-graph-v1:4d26fca7d33aec5e119da74520c47fd96fa41f9de0b92a3afca76505fb5722aa', }, { - workflowId: 'HunyuanDiTPAGPipeline:text_to_image', - sourceTaskTemplateId: 'task-template:hunyuan-dit-v1-2-distilled-pag:text-to-image:v1', - retainedGraphHash: 'sha256:canonical-graph-v1:9ff7bd0050b5c50405728a76530205fcdc54531b7b017cc66e3b821b52413dcd', - originalReceiptSha256: 'aa6b64f4a942adbb11c83cbaba89940fd03ed7dbf83175e8e1d17d32291454d3', - reviewedTemplateSha256: 'ff4d1b75e172f8fdb8a45199626ed40a07fe634669e03d1591091a10c176edfe', - reviewedCatalogLock: { - templateLockHash: 'tpl_e2834f89', - galleryTemplateLockHash: 'tpl_00d848b4', - promptSettingsHash: 'ps_60e8ca60', - }, - promptSha256: '1a5dd12ea5c33b33c8e1a2621a4c6543a2d2a8f2ac82fe458eaecc7d9b4d71c0', - template: { - id: 'hunyuan_pag_burgundy_knight', - label: 'Hunyuan-DiT v1.2 Distilled PAG — Text to image: Burgundy Knight', - mode: 'text_to_image', - modelType: 'HunyuanDiTPAGPipeline', - intentGroup: 'generate_image', - category: 'concept', - outputKinds: ['image'], - readinessPolicy: 'runnable', - modelArtifact: { - source: 'hub', - value: 'Tencent-Hunyuan/HunyuanDiT-v1.2-Diffusers-Distilled', - revision: 'ba991d1546d8c50936c4c16398ed0a87b9b99fb1', - }, - description: 'Reproduce the reviewed Burgundy Knight example with the saved prompt, settings and model revision.', - prompt: - 'Studio photograph of a single polished burgundy chess knight on a matte ash wood board. Low eye-line viewpoint, shallow depth of field, soft diagonal sidelight and subtle grain in the carved horse head.', - negativePrompt: '', - example: { - mediaType: 'image', - status: 'unverified', - modelRevision: 'ba991d1546d8c50936c4c16398ed0a87b9b99fb1', - lockedSeed: 42, - lockedSettings: { - width: 1024, - height: 1024, - steps: 25, - guidanceScale: 5, - strength: 0.8, - outputType: 'pil', - maxSequenceLength: 256, - pagScale: 3, - pagAdaptiveScale: 0, - dtype: 'float16', - resourceMode: 'expert', - quantizationMode: 'none', - autoOffload: true, - offloadMode: 'model_cpu', - }, - expectedOutput: { - width: 1024, - height: 1024, - }, - runtimeEstimate: '104.12 seconds in the saved run', - }, - requiredBackendCapabilities: [ - 'modules.DiffusersImage.Generate', - 'modules.DiffusersImage.LoadPipeline', - 'modules.DiffusersRuntime.PipelineQuantizationConfigV2', - 'modules.DiffusersRuntime.DiffusersExecutionRecipe', - 'modules.Image.Preview', - ], - mediaSlots: [ - { - id: 'result', - label: 'Generated image', - kind: 'image', - role: 'output', - placeholder: 'Result pending', - }, - ], - recipeSummary: - 'Reproduce the reviewed Burgundy Knight example with the saved prompt, settings and model revision.', - runtimeReuseKey: 'sha256:canonical-graph-v1:9ff7bd0050b5c50405728a76530205fcdc54531b7b017cc66e3b821b52413dcd', - }, + id: 'omnigen_tulips_after_rain', + label: 'OmniGen v1 — Text to image: Tulips After the Rain', + mode: 'text_to_image', + modelType: 'OmniGenPipeline', + intentGroup: 'generate_image', + category: 'concept', + outputKinds: ['image'], + readinessPolicy: 'runnable', + modelArtifact: { + source: 'hub', + value: 'Shitao/OmniGen-v1-diffusers', + revision: '016e2f61d12a98303f6bbdf122687694d7984268', + }, + description: + 'Reproduce the reviewed Tulips After the Rain example with the saved prompt, settings and model revision.', + prompt: + 'A rainy evening at a tiny neighborhood flower shop, viewed from across a narrow paved lane. A single warm window lights buckets of orange tulips beneath an awning. Mauve clouds and wet reflections, natural materials, cinematic street photography.', + negativePrompt: '', + example: { + mediaType: 'image', + status: 'unverified', + modelRevision: '016e2f61d12a98303f6bbdf122687694d7984268', + lockedSeed: 42, + lockedSettings: { + width: 1024, + height: 1024, + steps: 50, + guidanceScale: 2.5, + strength: 0.8, + outputType: 'pil', + maxSequenceLength: 256, + pagScale: 3, + pagAdaptiveScale: 0, + dtype: 'bfloat16', + resourceMode: 'expert', + quantizationMode: 'none', + autoOffload: true, + offloadMode: 'model_cpu', + }, + expectedOutput: { + width: 1024, + height: 1024, + }, + runtimeEstimate: '366.03 seconds in the saved run', + }, + requiredBackendCapabilities: [ + 'modules.DiffusersImage.Generate', + 'modules.DiffusersImage.LoadPipeline', + 'modules.DiffusersRuntime.PipelineQuantizationConfigV2', + 'modules.DiffusersRuntime.DiffusersExecutionRecipe', + 'modules.Image.Preview', + ], + mediaSlots: [ + { + id: 'result', + label: 'Generated image', + kind: 'image', + role: 'output', + placeholder: 'Result pending', + }, + ], + recipeSummary: + 'Reproduce the reviewed Tulips After the Rain example with the saved prompt, settings and model revision.', + runtimeReuseKey: 'sha256:canonical-graph-v1:38376f1ad21e5c153fb96860a4e566847ff916716637ffd2061dfae350577c93', }, { - workflowId: 'ChromaInpaintPipeline:inpaint', - sourceTaskTemplateId: 'task-template:chroma1-hd-inpaint:inpaint:v1', - retainedGraphHash: 'sha256:canonical-graph-v1:d3bfd6322b7b1bd0f34b9faa9f444ebefae32fc43c368d37169f6ebfbc6c53cf', - originalReceiptSha256: 'a85451bc142a3f5ef44cc5e8cdb1fcc0f000872241efe5bda751638d36215919', - reviewedTemplateSha256: 'd3c99f24317aaf93b0f25f2681bdc56f456d69554e47a522c0c04487602149f2', - reviewedCatalogLock: { - templateLockHash: 'tpl_0ca22a3e', - galleryTemplateLockHash: 'tpl_8c282bf7', - promptSettingsHash: 'ps_747e9429', - }, - promptSha256: 'cdcd113dd8102aba0f1838ecc02a170532e8b79ab574afc47d30bbdf7aa95d4d', - inputSha256: 'e75c20f0e8a74e283b996bf526e6ea74535ed24125ad97c2d92508d3435d7a87', - inputLocatorSha256: '69ba088466bbd714eba0a70d1dc24984230ca1ac74b00ac0ff1bbcb29675799d', - maskSha256: '1f48775f2826f84e0c5b55f16f3475bdc80ecad8b931d6b0279598610e9a828d', - template: { - id: 'chroma_restored_cobalt_backdrop', - label: 'Chroma1-HD Inpaint (Standard Diffusers) — Inpaint: Restored Cobalt Backdrop', - mode: 'inpaint', - modelType: 'ChromaInpaintPipeline', - intentGroup: 'edit_image', - category: 'inpaint', - inputBindings: [ - { - id: 'source-image', - label: 'Source image', - mediaType: 'image', - field: 'referenceImages', - origin: 'user', - requiredAt: 'workflow_start', - count: 1, - }, - { - id: 'mask-image', - label: 'Mask image', - mediaType: 'image', - field: 'maskImage', - origin: 'user', - requiredAt: 'workflow_start', - count: 1, - }, - ], - outputKinds: ['image'], - readinessPolicy: 'requires_input', - modelArtifact: { - source: 'hub', - value: 'lodestones/Chroma1-HD', - revision: '0e0c60ece1e82b17cb7f77342d765ba5024c40c0', - }, - description: - 'Reproduce the reviewed Restored Cobalt Backdrop example with the saved prompt, settings and model revision.', - prompt: - 'Restore the pale matte studio background and smooth clear backdrop in the marked area. Continue the existing subtle gray gradient and soft reflection. Preserve the blue cube, all three edges and the plinth.', - negativePrompt: '', - example: { - mediaType: 'image', - status: 'unverified', - modelRevision: '0e0c60ece1e82b17cb7f77342d765ba5024c40c0', - lockedSeed: 42, - lockedSettings: { - width: 1024, - height: 1024, - steps: 28, - guidanceScale: 7, - strength: 0.8, - outputType: 'pil', - maxSequenceLength: 512, - pagScale: 3, - pagAdaptiveScale: 0, - dtype: 'bfloat16', - resourceMode: 'expert', - quantizationMode: 'none', - autoOffload: true, - offloadMode: 'model_cpu', - }, - expectedOutput: { - width: 1024, - height: 1024, - }, - runtimeEstimate: '244.69 seconds in the saved run', - }, - requiredBackendCapabilities: [ - 'modules.DiffusersImage.Inpaint', - 'modules.DiffusersImage.LoadPipeline', - 'modules.DiffusersRuntime.PipelineQuantizationConfigV2', - 'modules.DiffusersRuntime.DiffusersExecutionRecipe', - 'modules.Image.Load', - 'modules.Image.Preview', - ], - mediaSlots: [ - { - id: 'before', - label: 'Source image', - kind: 'comparison_before', - role: 'before', - placeholder: 'Source pending', - }, - { - id: 'after', - label: 'Generated image', - kind: 'comparison_after', - role: 'after', - placeholder: 'Preview pending', - }, - ], - thumbnailVariant: 'compareSlider', - recipeSummary: - 'Reproduce the reviewed Restored Cobalt Backdrop example with the saved prompt, settings and model revision.', - runtimeReuseKey: 'sha256:canonical-graph-v1:d3bfd6322b7b1bd0f34b9faa9f444ebefae32fc43c368d37169f6ebfbc6c53cf', - }, + id: 'hunyuan_pag_burgundy_knight', + label: 'Hunyuan-DiT v1.2 Distilled PAG — Text to image: Burgundy Knight', + mode: 'text_to_image', + modelType: 'HunyuanDiTPAGPipeline', + intentGroup: 'generate_image', + category: 'concept', + outputKinds: ['image'], + readinessPolicy: 'runnable', + modelArtifact: { + source: 'hub', + value: 'Tencent-Hunyuan/HunyuanDiT-v1.2-Diffusers-Distilled', + revision: 'ba991d1546d8c50936c4c16398ed0a87b9b99fb1', + }, + description: 'Reproduce the reviewed Burgundy Knight example with the saved prompt, settings and model revision.', + prompt: + 'Studio photograph of a single polished burgundy chess knight on a matte ash wood board. Low eye-line viewpoint, shallow depth of field, soft diagonal sidelight and subtle grain in the carved horse head.', + negativePrompt: '', + example: { + mediaType: 'image', + status: 'unverified', + modelRevision: 'ba991d1546d8c50936c4c16398ed0a87b9b99fb1', + lockedSeed: 42, + lockedSettings: { + width: 1024, + height: 1024, + steps: 25, + guidanceScale: 5, + strength: 0.8, + outputType: 'pil', + maxSequenceLength: 256, + pagScale: 3, + pagAdaptiveScale: 0, + dtype: 'float16', + resourceMode: 'expert', + quantizationMode: 'none', + autoOffload: true, + offloadMode: 'model_cpu', + }, + expectedOutput: { + width: 1024, + height: 1024, + }, + runtimeEstimate: '104.12 seconds in the saved run', + }, + requiredBackendCapabilities: [ + 'modules.DiffusersImage.Generate', + 'modules.DiffusersImage.LoadPipeline', + 'modules.DiffusersRuntime.PipelineQuantizationConfigV2', + 'modules.DiffusersRuntime.DiffusersExecutionRecipe', + 'modules.Image.Preview', + ], + mediaSlots: [ + { + id: 'result', + label: 'Generated image', + kind: 'image', + role: 'output', + placeholder: 'Result pending', + }, + ], + recipeSummary: 'Reproduce the reviewed Burgundy Knight example with the saved prompt, settings and model revision.', + runtimeReuseKey: 'sha256:canonical-graph-v1:9ff7bd0050b5c50405728a76530205fcdc54531b7b017cc66e3b821b52413dcd', }, { - workflowId: 'StableDiffusionXLInstructPix2PixPipeline:edit_image', - sourceTaskTemplateId: 'task-template:sdxl-instruct-pix2pix:edit-image:v1', - retainedGraphHash: 'sha256:canonical-graph-v1:be363defe20343a8ad3dda9b464344a590c931b6908d5f2eb8ee4d1ba4974f95', - originalReceiptSha256: '4655ea8f1f9b86921f07658644599ebe08034ffbe93e081eb19fd08faa214b61', - reviewedTemplateSha256: '897fb59d568ceba3ef8d85cf1141f79002522b111dbc6ffa67ad51a9acf88495', - reviewedCatalogLock: { - templateLockHash: 'tpl_e055e288', - galleryTemplateLockHash: 'tpl_5a852750', - promptSettingsHash: 'ps_de1bb4fa', - }, - promptSha256: '609bfd6392cbca4e4c80a5835e0f013349d84c017387ff69445c9168939b4b1b', - inputSha256: 'ebaca95f96d1573e4292ffc65c78eb0dcf8ff9cc8b5a7e11ec81face61b160fb', - inputLocatorSha256: '349b8845e5d606d1439af02fa63b2edc09c504d15bf71f58954791ed6d983232', - template: { - id: 'sdxl_pix2pix_pale_amber_glass', - label: 'Stable Diffusion XL InstructPix2Pix — Edit image: Pale Amber Glass Edit', - mode: 'edit_image', - modelType: 'StableDiffusionXLInstructPix2PixPipeline', - intentGroup: 'edit_image', - category: 'edit', - inputBindings: [ - { - id: 'source-image', - label: 'Source image', - mediaType: 'image', - field: 'referenceImages', - origin: 'user', - requiredAt: 'workflow_start', - count: 1, - }, - ], - outputKinds: ['image'], - readinessPolicy: 'requires_input', - modelArtifact: { - source: 'hub', - value: 'diffusers/sdxl-instructpix2pix-768', - revision: '06653d47f8d22f2c2205a5884d6a24c5e76d2ca7', - }, - description: - 'Reproduce the reviewed Pale Amber Glass Edit example with the saved prompt, settings and model revision.', - prompt: - 'Change the cobalt blue glass cube to transparent honey-amber glass. Keep the camera angle, cube shape, pale stone slab and soft studio lighting.', - negativePrompt: '', - example: { + id: 'chroma_restored_cobalt_backdrop', + label: 'Chroma1-HD Inpaint (Standard Diffusers) — Inpaint: Restored Cobalt Backdrop', + mode: 'inpaint', + modelType: 'ChromaInpaintPipeline', + intentGroup: 'edit_image', + category: 'inpaint', + inputBindings: [ + { + id: 'source-image', + label: 'Source image', mediaType: 'image', - status: 'unverified', - modelRevision: '06653d47f8d22f2c2205a5884d6a24c5e76d2ca7', - lockedSeed: 42, - lockedSettings: { - width: 768, - height: 768, - steps: 30, - guidanceScale: 3, - strength: 0.8, - outputType: 'pil', - maxSequenceLength: 512, - pagScale: 3, - pagAdaptiveScale: 0, - dtype: 'float16', - resourceMode: 'expert', - quantizationMode: 'none', - autoOffload: true, - offloadMode: 'model_cpu', - }, - expectedOutput: { - width: 768, - height: 768, - }, - runtimeEstimate: '18.13 seconds in the saved run', - }, - requiredBackendCapabilities: [ - 'modules.DiffusersImage.Edit', - 'modules.DiffusersImage.LoadPipeline', - 'modules.DiffusersRuntime.PipelineQuantizationConfigV2', - 'modules.DiffusersRuntime.DiffusersExecutionRecipe', - 'modules.Image.Load', - 'modules.Image.Preview', - ], - mediaSlots: [ - { - id: 'before', - label: 'Source image', - kind: 'comparison_before', - role: 'before', - placeholder: 'Source pending', - }, - { - id: 'after', - label: 'Generated image', - kind: 'comparison_after', - role: 'after', - placeholder: 'Preview pending', - }, - ], - thumbnailVariant: 'compareSlider', - recipeSummary: - 'Reproduce the reviewed Pale Amber Glass Edit example with the saved prompt, settings and model revision.', - runtimeReuseKey: 'sha256:canonical-graph-v1:be363defe20343a8ad3dda9b464344a590c931b6908d5f2eb8ee4d1ba4974f95', - }, + field: 'referenceImages', + origin: 'user', + requiredAt: 'workflow_start', + count: 1, + }, + { + id: 'mask-image', + label: 'Mask image', + mediaType: 'image', + field: 'maskImage', + origin: 'user', + requiredAt: 'workflow_start', + count: 1, + }, + ], + outputKinds: ['image'], + readinessPolicy: 'requires_input', + modelArtifact: { + source: 'hub', + value: 'lodestones/Chroma1-HD', + revision: '0e0c60ece1e82b17cb7f77342d765ba5024c40c0', + }, + description: + 'Reproduce the reviewed Restored Cobalt Backdrop example with the saved prompt, settings and model revision.', + prompt: + 'Restore the pale matte studio background and smooth clear backdrop in the marked area. Continue the existing subtle gray gradient and soft reflection. Preserve the blue cube, all three edges and the plinth.', + negativePrompt: '', + example: { + mediaType: 'image', + status: 'unverified', + modelRevision: '0e0c60ece1e82b17cb7f77342d765ba5024c40c0', + lockedSeed: 42, + lockedSettings: { + width: 1024, + height: 1024, + steps: 28, + guidanceScale: 7, + strength: 0.8, + outputType: 'pil', + maxSequenceLength: 512, + pagScale: 3, + pagAdaptiveScale: 0, + dtype: 'bfloat16', + resourceMode: 'expert', + quantizationMode: 'none', + autoOffload: true, + offloadMode: 'model_cpu', + }, + expectedOutput: { + width: 1024, + height: 1024, + }, + runtimeEstimate: '244.69 seconds in the saved run', + }, + requiredBackendCapabilities: [ + 'modules.DiffusersImage.Inpaint', + 'modules.DiffusersImage.LoadPipeline', + 'modules.DiffusersRuntime.PipelineQuantizationConfigV2', + 'modules.DiffusersRuntime.DiffusersExecutionRecipe', + 'modules.Image.Load', + 'modules.Image.Preview', + ], + mediaSlots: [ + { + id: 'before', + label: 'Source image', + kind: 'comparison_before', + role: 'before', + placeholder: 'Source pending', + }, + { + id: 'after', + label: 'Generated image', + kind: 'comparison_after', + role: 'after', + placeholder: 'Preview pending', + }, + ], + thumbnailVariant: 'compareSlider', + recipeSummary: + 'Reproduce the reviewed Restored Cobalt Backdrop example with the saved prompt, settings and model revision.', + runtimeReuseKey: 'sha256:canonical-graph-v1:d3bfd6322b7b1bd0f34b9faa9f444ebefae32fc43c368d37169f6ebfbc6c53cf', }, { - workflowId: 'StableDiffusionPAGPipeline:edit_image', - sourceTaskTemplateId: 'task-template:sd15-pag:edit-image:v1', - retainedGraphHash: 'sha256:canonical-graph-v1:48cd547df20763361808da8567bee1e81d2f5656cf700b06ca1d7032e05c9a12', - originalReceiptSha256: 'b4929658c32ef7bad47e50f647abec0e6159c54374a1baea1e05d3f93b66effb', - reviewedTemplateSha256: '6de709bbcfb3ed6e061541584be28f5b7ed05e1170dcdaa69e2deb4fee822154', - reviewedCatalogLock: { - templateLockHash: 'tpl_de24cda0', - galleryTemplateLockHash: 'tpl_055d66e3', - promptSettingsHash: 'ps_70c72f9b', - }, - promptSha256: 'd05178536094430b2076eb9bbbc38b76f6590185f85ee128b9aad0c910e214d3', - inputSha256: '88290a96bc8d52f11f2d1e3c0c0e04c2027661816e54b57d7d4739d731ca1e75', - inputLocatorSha256: 'b7e9b68e47a60f438c82f778b960f66d58d319de50749d453a9aa0c30c4df45a', - template: { - id: 'sd15_pag_mountain_lake_watercolor', - label: 'Stable Diffusion 1.5 PAG — Edit image: Mountain Lake in Watercolor', - mode: 'edit_image', - modelType: 'StableDiffusionPAGPipeline', - intentGroup: 'edit_image', - category: 'edit', - inputBindings: [ - { - id: 'source-image', - label: 'Source image', - mediaType: 'image', - field: 'referenceImages', - origin: 'user', - requiredAt: 'workflow_start', - count: 1, - }, - ], - outputKinds: ['image'], - readinessPolicy: 'requires_input', - modelArtifact: { - source: 'hub', - value: 'stable-diffusion-v1-5/stable-diffusion-v1-5', - revision: '451f4fe16113bff5a5d2269ed5ad43b0592e9a14', - }, - description: - 'Reproduce the reviewed Mountain Lake in Watercolor example with the saved prompt, settings and model revision.', - prompt: - 'Loose transparent watercolor landscape on cold-pressed paper, visibly hand painted with broad pale blue and sage green washes, irregular soft wet-on-wet edges and white paper showing through. Keep one dark pine on the small central rock island, the layered mountain ridge behind it, and the quiet glacial lake and reflection below. Light cobalt wash in the sky, slate-blue slopes and muted jade water. Spare, airy, flat watercolor illustration, no writing.', - negativePrompt: '', - example: { + id: 'sdxl_pix2pix_pale_amber_glass', + label: 'Stable Diffusion XL InstructPix2Pix — Edit image: Pale Amber Glass Edit', + mode: 'edit_image', + modelType: 'StableDiffusionXLInstructPix2PixPipeline', + intentGroup: 'edit_image', + category: 'edit', + inputBindings: [ + { + id: 'source-image', + label: 'Source image', mediaType: 'image', - status: 'unverified', - modelRevision: '451f4fe16113bff5a5d2269ed5ad43b0592e9a14', - lockedSeed: 42, - lockedSettings: { - width: 1024, - height: 1024, - steps: 30, - guidanceScale: 7.5, - strength: 0.8, - outputType: 'pil', - maxSequenceLength: 256, - pagScale: 3, - pagAdaptiveScale: 0, - dtype: 'float32', - resourceMode: 'expert', - quantizationMode: 'none', - autoOffload: false, - offloadMode: 'none', - }, - expectedOutput: { - width: 1024, - height: 1024, - }, - runtimeEstimate: '38.14 seconds in the saved run', - }, - requiredBackendCapabilities: [ - 'modules.DiffusersImage.Edit', - 'modules.DiffusersImage.LoadPipeline', - 'modules.DiffusersRuntime.PipelineQuantizationConfigV2', - 'modules.DiffusersRuntime.DiffusersExecutionRecipe', - 'modules.Image.Load', - 'modules.Image.Preview', - ], - mediaSlots: [ - { - id: 'before', - label: 'Source image', - kind: 'comparison_before', - role: 'before', - placeholder: 'Source pending', - }, - { - id: 'after', - label: 'Generated image', - kind: 'comparison_after', - role: 'after', - placeholder: 'Preview pending', - }, - ], - thumbnailVariant: 'compareSlider', - recipeSummary: - 'Reproduce the reviewed Mountain Lake in Watercolor example with the saved prompt, settings and model revision.', - runtimeReuseKey: 'sha256:canonical-graph-v1:48cd547df20763361808da8567bee1e81d2f5656cf700b06ca1d7032e05c9a12', - }, + field: 'referenceImages', + origin: 'user', + requiredAt: 'workflow_start', + count: 1, + }, + ], + outputKinds: ['image'], + readinessPolicy: 'requires_input', + modelArtifact: { + source: 'hub', + value: 'diffusers/sdxl-instructpix2pix-768', + revision: '06653d47f8d22f2c2205a5884d6a24c5e76d2ca7', + }, + description: + 'Reproduce the reviewed Pale Amber Glass Edit example with the saved prompt, settings and model revision.', + prompt: + 'Change the cobalt blue glass cube to transparent honey-amber glass. Keep the camera angle, cube shape, pale stone slab and soft studio lighting.', + negativePrompt: '', + example: { + mediaType: 'image', + status: 'unverified', + modelRevision: '06653d47f8d22f2c2205a5884d6a24c5e76d2ca7', + lockedSeed: 42, + lockedSettings: { + width: 768, + height: 768, + steps: 30, + guidanceScale: 3, + strength: 0.8, + outputType: 'pil', + maxSequenceLength: 512, + pagScale: 3, + pagAdaptiveScale: 0, + dtype: 'float16', + resourceMode: 'expert', + quantizationMode: 'none', + autoOffload: true, + offloadMode: 'model_cpu', + }, + expectedOutput: { + width: 768, + height: 768, + }, + runtimeEstimate: '18.13 seconds in the saved run', + }, + requiredBackendCapabilities: [ + 'modules.DiffusersImage.Edit', + 'modules.DiffusersImage.LoadPipeline', + 'modules.DiffusersRuntime.PipelineQuantizationConfigV2', + 'modules.DiffusersRuntime.DiffusersExecutionRecipe', + 'modules.Image.Load', + 'modules.Image.Preview', + ], + mediaSlots: [ + { + id: 'before', + label: 'Source image', + kind: 'comparison_before', + role: 'before', + placeholder: 'Source pending', + }, + { + id: 'after', + label: 'Generated image', + kind: 'comparison_after', + role: 'after', + placeholder: 'Preview pending', + }, + ], + thumbnailVariant: 'compareSlider', + recipeSummary: + 'Reproduce the reviewed Pale Amber Glass Edit example with the saved prompt, settings and model revision.', + runtimeReuseKey: 'sha256:canonical-graph-v1:be363defe20343a8ad3dda9b464344a590c931b6908d5f2eb8ee4d1ba4974f95', }, { - workflowId: 'StableDiffusionPAGPipeline:inpaint', - sourceTaskTemplateId: 'task-template:sd15-pag:inpaint:v1', - retainedGraphHash: 'sha256:canonical-graph-v1:0236cd78852886d49d629776dae568ae589c27dfc4f499868ba2f40d4fd4867c', - originalReceiptSha256: '101e965b702766dd0949054f6189d20ca2895fdd05559626eb270f8e12e65069', - reviewedTemplateSha256: '8373d87ab42e130142a163e3c60733f3f2511b7a77ffad1d9129607bcfba2562', - reviewedCatalogLock: { - templateLockHash: 'tpl_ab9c14d4', - galleryTemplateLockHash: 'tpl_7552fcab', - promptSettingsHash: 'ps_fbb3534b', - }, - promptSha256: '92548914e5a66fd80ffeeeae3ee1c86bfd46bd9a53d17bd73f35c0f651615ad3', - inputSha256: 'd143c4922ad498b9bd436d06df424bbff50baf023b93735b53ee401e19e4cbf1', - inputLocatorSha256: 'efcb2b3b9ced784bb620763301bb33ea3b2f6ac2561624a4a60c7a735049cfb1', - maskSha256: '71817f4823a73712c8e76e7d832ec382c29ec0a0bf5a472e09639448c082da01', - template: { - id: 'sd15_pag_cobalt_studio_repair', - label: 'Stable Diffusion 1.5 PAG — Inpaint: Cobalt Studio Repair with PAG', - mode: 'inpaint', - modelType: 'StableDiffusionPAGPipeline', - intentGroup: 'edit_image', - category: 'inpaint', - inputBindings: [ - { - id: 'source-image', - label: 'Source image', - mediaType: 'image', - field: 'referenceImages', - origin: 'user', - requiredAt: 'workflow_start', - count: 1, - }, - { - id: 'mask-image', - label: 'Mask image', - mediaType: 'image', - field: 'maskImage', - origin: 'user', - requiredAt: 'workflow_start', - count: 1, - }, - ], - outputKinds: ['image'], - readinessPolicy: 'requires_input', - modelArtifact: { - source: 'hub', - value: 'stable-diffusion-v1-5/stable-diffusion-v1-5', - revision: '451f4fe16113bff5a5d2269ed5ad43b0592e9a14', - }, - description: - 'Reproduce the reviewed Cobalt Studio Repair with PAG example with the saved prompt, settings and model revision.', - prompt: - 'Smooth pale gray studio backdrop with a soft window-light gradient. A plain, clean matte wall with an even tone.', - negativePrompt: '', - example: { + id: 'sd15_pag_mountain_lake_watercolor', + label: 'Stable Diffusion 1.5 PAG — Edit image: Mountain Lake in Watercolor', + mode: 'edit_image', + modelType: 'StableDiffusionPAGPipeline', + intentGroup: 'edit_image', + category: 'edit', + inputBindings: [ + { + id: 'source-image', + label: 'Source image', mediaType: 'image', - status: 'unverified', - modelRevision: '451f4fe16113bff5a5d2269ed5ad43b0592e9a14', - lockedSeed: 42, - lockedSettings: { - width: 512, - height: 512, - steps: 30, - guidanceScale: 7.5, - strength: 0.8, - outputType: 'pil', - maxSequenceLength: 256, - pagScale: 3, - pagAdaptiveScale: 0, - dtype: 'float32', - resourceMode: 'expert', - quantizationMode: 'none', - autoOffload: false, - offloadMode: 'none', - }, - expectedOutput: { - width: 512, - height: 512, - }, - runtimeEstimate: '12.67 seconds in the saved run', - }, - requiredBackendCapabilities: [ - 'modules.DiffusersImage.Inpaint', - 'modules.DiffusersImage.LoadPipeline', - 'modules.DiffusersRuntime.PipelineQuantizationConfigV2', - 'modules.DiffusersRuntime.DiffusersExecutionRecipe', - 'modules.Image.Load', - 'modules.Image.Preview', - ], - mediaSlots: [ - { - id: 'before', - label: 'Source image', - kind: 'comparison_before', - role: 'before', - placeholder: 'Source pending', - }, - { - id: 'after', - label: 'Generated image', - kind: 'comparison_after', - role: 'after', - placeholder: 'Preview pending', - }, - ], - thumbnailVariant: 'compareSlider', - recipeSummary: - 'Reproduce the reviewed Cobalt Studio Repair with PAG example with the saved prompt, settings and model revision.', - runtimeReuseKey: 'sha256:canonical-graph-v1:0236cd78852886d49d629776dae568ae589c27dfc4f499868ba2f40d4fd4867c', - }, + field: 'referenceImages', + origin: 'user', + requiredAt: 'workflow_start', + count: 1, + }, + ], + outputKinds: ['image'], + readinessPolicy: 'requires_input', + modelArtifact: { + source: 'hub', + value: 'stable-diffusion-v1-5/stable-diffusion-v1-5', + revision: '451f4fe16113bff5a5d2269ed5ad43b0592e9a14', + }, + description: + 'Reproduce the reviewed Mountain Lake in Watercolor example with the saved prompt, settings and model revision.', + prompt: + 'Loose transparent watercolor landscape on cold-pressed paper, visibly hand painted with broad pale blue and sage green washes, irregular soft wet-on-wet edges and white paper showing through. Keep one dark pine on the small central rock island, the layered mountain ridge behind it, and the quiet glacial lake and reflection below. Light cobalt wash in the sky, slate-blue slopes and muted jade water. Spare, airy, flat watercolor illustration, no writing.', + negativePrompt: '', + example: { + mediaType: 'image', + status: 'unverified', + modelRevision: '451f4fe16113bff5a5d2269ed5ad43b0592e9a14', + lockedSeed: 42, + lockedSettings: { + width: 1024, + height: 1024, + steps: 30, + guidanceScale: 7.5, + strength: 0.8, + outputType: 'pil', + maxSequenceLength: 256, + pagScale: 3, + pagAdaptiveScale: 0, + dtype: 'float32', + resourceMode: 'expert', + quantizationMode: 'none', + autoOffload: false, + offloadMode: 'none', + }, + expectedOutput: { + width: 1024, + height: 1024, + }, + runtimeEstimate: '38.14 seconds in the saved run', + }, + requiredBackendCapabilities: [ + 'modules.DiffusersImage.Edit', + 'modules.DiffusersImage.LoadPipeline', + 'modules.DiffusersRuntime.PipelineQuantizationConfigV2', + 'modules.DiffusersRuntime.DiffusersExecutionRecipe', + 'modules.Image.Load', + 'modules.Image.Preview', + ], + mediaSlots: [ + { + id: 'before', + label: 'Source image', + kind: 'comparison_before', + role: 'before', + placeholder: 'Source pending', + }, + { + id: 'after', + label: 'Generated image', + kind: 'comparison_after', + role: 'after', + placeholder: 'Preview pending', + }, + ], + thumbnailVariant: 'compareSlider', + recipeSummary: + 'Reproduce the reviewed Mountain Lake in Watercolor example with the saved prompt, settings and model revision.', + runtimeReuseKey: 'sha256:canonical-graph-v1:48cd547df20763361808da8567bee1e81d2f5656cf700b06ca1d7032e05c9a12', }, { - workflowId: 'ZImageModularPipeline:edit_image', - sourceTaskTemplateId: 'task-template:z-image:edit-image:v1', - retainedGraphHash: 'sha256:canonical-graph-v1:09397eba135ea69f8c88d29c6eb65297ece35dc10e039c9c5573165503f8488f', - originalReceiptSha256: '449bc094096e644f4070a681e382650d133c0854ec6770cfbb736f0299e04179', - reviewedTemplateSha256: '303a0b1b64a2e1234aeca85941a07eea2157707c8436442a5cf00aedd68c6d97', - reviewedCatalogLock: { - templateLockHash: 'tpl_50ad3c10', - galleryTemplateLockHash: 'tpl_279a009e', - promptSettingsHash: 'ps_41cfc342', - }, - promptSha256: 'cc55ff0b6d87c11924010d873152025e9ddb936b56140d2f23d291696a65f7ea', - inputSha256: 'ebaca95f96d1573e4292ffc65c78eb0dcf8ff9cc8b5a7e11ec81face61b160fb', - inputLocatorSha256: '349b8845e5d606d1439af02fa63b2edc09c504d15bf71f58954791ed6d983232', - template: { - id: 'zimage_golden_amber_glass', - label: 'Z-Image Turbo — Edit image: Golden Amber Glass Edit', - mode: 'edit_image', - modelType: 'ZImageModularPipeline', - intentGroup: 'edit_image', - category: 'edit', - inputBindings: [ - { - id: 'source-image', - label: 'Source image', - mediaType: 'image', - field: 'referenceImages', - origin: 'user', - requiredAt: 'workflow_start', - count: 1, - }, - ], - outputKinds: ['image'], - readinessPolicy: 'requires_input', - modelArtifact: { - source: 'hub', - value: 'Tongyi-MAI/Z-Image-Turbo', - revision: 'f332072aa78be7aecdf3ee76d5c247082da564a6', - }, - description: - 'Reproduce the reviewed Golden Amber Glass Edit example with the saved prompt, settings and model revision.', - prompt: - 'A single thick, translucent golden amber glass cube on a pale stone plinth. Precisely square edges, same camera angle, uncluttered warm gray wall and soft daylight from the right. The glass remains a solid cube with flat faces.', - negativePrompt: '', - example: { + id: 'sd15_pag_cobalt_studio_repair', + label: 'Stable Diffusion 1.5 PAG — Inpaint: Cobalt Studio Repair with PAG', + mode: 'inpaint', + modelType: 'StableDiffusionPAGPipeline', + intentGroup: 'edit_image', + category: 'inpaint', + inputBindings: [ + { + id: 'source-image', + label: 'Source image', mediaType: 'image', - status: 'unverified', - modelRevision: 'f332072aa78be7aecdf3ee76d5c247082da564a6', - lockedSeed: 42, - lockedSettings: { - width: 640, - height: 640, - steps: 8, - guidanceScale: 1, - strength: 0.8, - outputType: 'pil', - maxSequenceLength: 512, - pagScale: 3, - pagAdaptiveScale: 0, - dtype: 'bfloat16', - resourceMode: 'expert', - quantizationMode: 'none', - autoOffload: true, - offloadMode: 'model_cpu', - }, - expectedOutput: { - width: 640, - height: 640, - }, - runtimeEstimate: '751.58 seconds in the saved run', - }, - requiredBackendCapabilities: [ - 'modules.DiffusersImage.Edit', - 'modules.DiffusersImage.LoadPipeline', - 'modules.DiffusersRuntime.PipelineQuantizationConfigV2', - 'modules.DiffusersRuntime.DiffusersExecutionRecipe', - 'modules.Image.Load', - 'modules.Image.Preview', - ], - mediaSlots: [ - { - id: 'before', - label: 'Source image', - kind: 'comparison_before', - role: 'before', - placeholder: 'Source pending', - }, - { - id: 'after', - label: 'Generated image', - kind: 'comparison_after', - role: 'after', - placeholder: 'Preview pending', - }, - ], - thumbnailVariant: 'compareSlider', - recipeSummary: - 'Reproduce the reviewed Golden Amber Glass Edit example with the saved prompt, settings and model revision.', - runtimeReuseKey: 'sha256:canonical-graph-v1:09397eba135ea69f8c88d29c6eb65297ece35dc10e039c9c5573165503f8488f', - }, + field: 'referenceImages', + origin: 'user', + requiredAt: 'workflow_start', + count: 1, + }, + { + id: 'mask-image', + label: 'Mask image', + mediaType: 'image', + field: 'maskImage', + origin: 'user', + requiredAt: 'workflow_start', + count: 1, + }, + ], + outputKinds: ['image'], + readinessPolicy: 'requires_input', + modelArtifact: { + source: 'hub', + value: 'stable-diffusion-v1-5/stable-diffusion-v1-5', + revision: '451f4fe16113bff5a5d2269ed5ad43b0592e9a14', + }, + description: + 'Reproduce the reviewed Cobalt Studio Repair with PAG example with the saved prompt, settings and model revision.', + prompt: + 'Smooth pale gray studio backdrop with a soft window-light gradient. A plain, clean matte wall with an even tone.', + negativePrompt: '', + example: { + mediaType: 'image', + status: 'unverified', + modelRevision: '451f4fe16113bff5a5d2269ed5ad43b0592e9a14', + lockedSeed: 42, + lockedSettings: { + width: 512, + height: 512, + steps: 30, + guidanceScale: 7.5, + strength: 0.8, + outputType: 'pil', + maxSequenceLength: 256, + pagScale: 3, + pagAdaptiveScale: 0, + dtype: 'float32', + resourceMode: 'expert', + quantizationMode: 'none', + autoOffload: false, + offloadMode: 'none', + }, + expectedOutput: { + width: 512, + height: 512, + }, + runtimeEstimate: '12.67 seconds in the saved run', + }, + requiredBackendCapabilities: [ + 'modules.DiffusersImage.Inpaint', + 'modules.DiffusersImage.LoadPipeline', + 'modules.DiffusersRuntime.PipelineQuantizationConfigV2', + 'modules.DiffusersRuntime.DiffusersExecutionRecipe', + 'modules.Image.Load', + 'modules.Image.Preview', + ], + mediaSlots: [ + { + id: 'before', + label: 'Source image', + kind: 'comparison_before', + role: 'before', + placeholder: 'Source pending', + }, + { + id: 'after', + label: 'Generated image', + kind: 'comparison_after', + role: 'after', + placeholder: 'Preview pending', + }, + ], + thumbnailVariant: 'compareSlider', + recipeSummary: + 'Reproduce the reviewed Cobalt Studio Repair with PAG example with the saved prompt, settings and model revision.', + runtimeReuseKey: 'sha256:canonical-graph-v1:0236cd78852886d49d629776dae568ae589c27dfc4f499868ba2f40d4fd4867c', }, { - workflowId: 'StableDiffusionXLControlNetPipeline:control_inpaint', - sourceTaskTemplateId: 'task-template:sdxl-controlnet-canny:control-inpaint:v1', - retainedGraphHash: 'sha256:canonical-graph-v1:188e60e1e4b295563d9e227a6a5f4b6e856781519579dbe9bc830d6ded6b0807', - originalReceiptSha256: 'ccf8f19d4018fd24d47fa5001209e36f9cec3a36a56e539f87759a99a7ac5fab', - reviewedTemplateSha256: '7d840698c480d52e5a864d50fcdbe6528680a9d0453e5dc501d76ac89c0991ef', - reviewedCatalogLock: { - templateLockHash: 'tpl_0ee86d25', - galleryTemplateLockHash: 'tpl_ad048189', - promptSettingsHash: 'ps_a9571e3b', - }, - promptSha256: 'b12a7fc59f32e9bbc795791ac45875649f91220fa32b3f3b74953e5ccc92d30d', - inputSha256: 'e75c20f0e8a74e283b996bf526e6ea74535ed24125ad97c2d92508d3435d7a87', - inputLocatorSha256: '69ba088466bbd714eba0a70d1dc24984230ca1ac74b00ac0ff1bbcb29675799d', - maskSha256: '1f48775f2826f84e0c5b55f16f3475bdc80ecad8b931d6b0279598610e9a828d', - guideSha256: '0a41a9c56b98945e60c96ef796660c35b2cab7bf0b36d5e84ab0d97ef97f0a5a', - template: { - id: 'sdxl_control_inpaint_warm_plaster', - label: 'Stable Diffusion XL ControlNet — Control inpaint: Cobalt on Warm Plaster', - mode: 'control_inpaint', - modelType: 'StableDiffusionXLControlNetPipeline', - intentGroup: 'edit_image', - category: 'inpaint', - inputBindings: [ - { - id: 'source-image', - label: 'Source Image', - mediaType: 'image', - field: 'referenceImages', - origin: 'user', - requiredAt: 'workflow_start', - count: 1, - }, - { - id: 'mask-image', - label: 'Mask Image', - mediaType: 'image', - field: 'maskImage', - origin: 'user', - requiredAt: 'workflow_start', - count: 1, - }, - { - id: 'control-guide', - label: 'Control Image', - mediaType: 'image', - field: 'controlImage', - origin: 'user', - requiredAt: 'workflow_start', - count: 1, - }, - ], - outputKinds: ['image'], - readinessPolicy: 'requires_input', - modelArtifact: { - source: 'hub', - value: 'stabilityai/stable-diffusion-xl-base-1.0', - revision: '462165984030d82259a11f4367a4eed129e94a7b', - }, - description: - 'Reproduce the reviewed Cobalt on Warm Plaster example with the saved prompt, settings and model revision.', - prompt: - 'Retouch only the masked wall behind this cobalt-blue glass block. Replace the damaged plaster inside the mask with a continuous warm ivory plaster finish, lit by the same soft daylight. Preserve the glass cube, sharp corners, blue reflections, pale stone slab, camera framing and existing cast shadow. Subtle plaster texture and natural color, a clean quiet product studio scene.', - negativePrompt: '', - example: { + id: 'zimage_golden_amber_glass', + label: 'Z-Image Turbo — Edit image: Golden Amber Glass Edit', + mode: 'edit_image', + modelType: 'ZImageModularPipeline', + intentGroup: 'edit_image', + category: 'edit', + inputBindings: [ + { + id: 'source-image', + label: 'Source image', mediaType: 'image', - status: 'unverified', - modelRevision: '462165984030d82259a11f4367a4eed129e94a7b', - lockedSeed: 42, - lockedSettings: { - width: 1024, - height: 1024, - steps: 50, - guidanceScale: 5, - strength: 0.8, - outputType: 'pil', - maxSequenceLength: 512, - conditioningScale: 0.5, - pagScale: 3, - pagAdaptiveScale: 0, - dtype: 'float16', - resourceMode: 'expert', - quantizationMode: 'none', - autoOffload: true, - offloadMode: 'model_cpu', - }, - expectedOutput: { - width: 1024, - height: 1024, - }, - runtimeEstimate: '29.45 seconds in the saved run', - }, - requiredBackendCapabilities: [ - 'modules.ImageFilters.Canny', - 'modules.DiffusersImage.ControlInpaint', - 'modules.DiffusersImage.LoadPipeline', - 'modules.DiffusersRuntime.PipelineQuantizationConfigV2', - 'modules.DiffusersRuntime.DiffusersExecutionRecipe', - 'modules.Image.Load', - 'modules.Image.Preview', - ], - mediaSlots: [ - { - id: 'before', - label: 'Source image', - kind: 'comparison_before', - role: 'before', - placeholder: 'Source pending', - }, - { - id: 'after', - label: 'Generated image', - kind: 'comparison_after', - role: 'after', - placeholder: 'Preview pending', - }, - ], - thumbnailVariant: 'compareSlider', - recipeSummary: - 'Reproduce the reviewed Cobalt on Warm Plaster example with the saved prompt, settings and model revision.', - runtimeReuseKey: 'sha256:canonical-graph-v1:188e60e1e4b295563d9e227a6a5f4b6e856781519579dbe9bc830d6ded6b0807', - }, + field: 'referenceImages', + origin: 'user', + requiredAt: 'workflow_start', + count: 1, + }, + ], + outputKinds: ['image'], + readinessPolicy: 'requires_input', + modelArtifact: { + source: 'hub', + value: 'Tongyi-MAI/Z-Image-Turbo', + revision: 'f332072aa78be7aecdf3ee76d5c247082da564a6', + }, + description: + 'Reproduce the reviewed Golden Amber Glass Edit example with the saved prompt, settings and model revision.', + prompt: + 'A single thick, translucent golden amber glass cube on a pale stone plinth. Precisely square edges, same camera angle, uncluttered warm gray wall and soft daylight from the right. The glass remains a solid cube with flat faces.', + negativePrompt: '', + example: { + mediaType: 'image', + status: 'unverified', + modelRevision: 'f332072aa78be7aecdf3ee76d5c247082da564a6', + lockedSeed: 42, + lockedSettings: { + width: 640, + height: 640, + steps: 8, + guidanceScale: 1, + strength: 0.8, + outputType: 'pil', + maxSequenceLength: 512, + pagScale: 3, + pagAdaptiveScale: 0, + dtype: 'bfloat16', + resourceMode: 'expert', + quantizationMode: 'none', + autoOffload: true, + offloadMode: 'model_cpu', + }, + expectedOutput: { + width: 640, + height: 640, + }, + runtimeEstimate: '751.58 seconds in the saved run', + }, + requiredBackendCapabilities: [ + 'modules.DiffusersImage.Edit', + 'modules.DiffusersImage.LoadPipeline', + 'modules.DiffusersRuntime.PipelineQuantizationConfigV2', + 'modules.DiffusersRuntime.DiffusersExecutionRecipe', + 'modules.Image.Load', + 'modules.Image.Preview', + ], + mediaSlots: [ + { + id: 'before', + label: 'Source image', + kind: 'comparison_before', + role: 'before', + placeholder: 'Source pending', + }, + { + id: 'after', + label: 'Generated image', + kind: 'comparison_after', + role: 'after', + placeholder: 'Preview pending', + }, + ], + thumbnailVariant: 'compareSlider', + recipeSummary: + 'Reproduce the reviewed Golden Amber Glass Edit example with the saved prompt, settings and model revision.', + runtimeReuseKey: 'sha256:canonical-graph-v1:09397eba135ea69f8c88d29c6eb65297ece35dc10e039c9c5573165503f8488f', }, { - workflowId: 'StableDiffusionPipeline:control_image', - sourceTaskTemplateId: 'task-template:sd15-controlnet-canny:control-image:v1', - retainedGraphHash: 'sha256:canonical-graph-v1:b0e98f0bb1e20a8d46f1ac67a426e6b0a55fcd817c51b6f60a79d97ab92d6514', - originalReceiptSha256: '4947a5a7b0a87481e1795185f91486717d6950c0f0f3ae79fc979c46c55ad443', - reviewedTemplateSha256: '783d03619e47df52cf8b17262e42d07bdaacf9165314c26bce9dc3fc9478e55d', - reviewedCatalogLock: { - templateLockHash: 'tpl_f24bec27', - galleryTemplateLockHash: 'tpl_1ec33e6c', - promptSettingsHash: 'ps_2fb986e2', - }, - promptSha256: '26d98191ed235643dc50604bcc3065c35b47e26601b929c86bd3383cab884e69', - inputSha256: '6d47a2f07006b98f9e5cfc8ee925914c4dbfa39fd38b0b61770be56d12ed04e8', - inputLocatorSha256: '36f9c290c26da075d212f483d4abbc2aba1520b60c5d135f823768f4966c286c', - template: { - id: 'sd15_canny_guided_green_glass', - label: 'Stable Diffusion 1.5 — Control image: Canny-Guided Green Glass', - mode: 'control_image', - modelType: 'StableDiffusionPipeline', - intentGroup: 'generate_image', - category: 'control', - inputBindings: [ - { - id: 'control-guide', - label: 'Control Image', - mediaType: 'image', - field: 'controlImage', - origin: 'user', - requiredAt: 'workflow_start', - count: 1, - }, - ], - outputKinds: ['image'], - readinessPolicy: 'requires_input', - modelArtifact: { - source: 'hub', - value: 'stable-diffusion-v1-5/stable-diffusion-v1-5', - revision: '451f4fe16113bff5a5d2269ed5ad43b0592e9a14', - }, - description: - 'Reproduce the reviewed Canny-Guided Green Glass example with the saved prompt, settings and model revision.', - prompt: - 'One translucent green glass cube, a pale slate surface and light beige wall. Sharp silhouette with three planes, simple studio photo, soft left light.', - negativePrompt: '', - example: { + id: 'sdxl_control_inpaint_warm_plaster', + label: 'Stable Diffusion XL ControlNet — Control inpaint: Cobalt on Warm Plaster', + mode: 'control_inpaint', + modelType: 'StableDiffusionXLControlNetPipeline', + intentGroup: 'edit_image', + category: 'inpaint', + inputBindings: [ + { + id: 'source-image', + label: 'Source Image', mediaType: 'image', - status: 'unverified', - modelRevision: '451f4fe16113bff5a5d2269ed5ad43b0592e9a14', - lockedSeed: 42, - lockedSettings: { - width: 512, - height: 512, - steps: 30, - guidanceScale: 7.5, - strength: 0.8, - outputType: 'pil', - maxSequenceLength: 512, - conditioningScale: 1, - pagScale: 3, - pagAdaptiveScale: 0, - dtype: 'float32', - resourceMode: 'expert', - quantizationMode: 'none', - autoOffload: false, - offloadMode: 'none', - }, - expectedOutput: { - width: 512, - height: 512, - }, - runtimeEstimate: '24.84 seconds in the saved run', - }, - requiredBackendCapabilities: [ - 'modules.ImageFilters.Canny', - 'modules.DiffusersImage.ControlGenerate', - 'modules.DiffusersImage.LoadPipeline', - 'modules.DiffusersRuntime.PipelineQuantizationConfigV2', - 'modules.DiffusersRuntime.DiffusersExecutionRecipe', - 'modules.Image.Load', - 'modules.Image.Preview', - ], - mediaSlots: [ - { - id: 'before', - label: 'Control guide', - kind: 'comparison_before', - role: 'before', - placeholder: 'Source pending', - }, - { - id: 'after', - label: 'Generated image', - kind: 'comparison_after', - role: 'after', - placeholder: 'Preview pending', - }, - ], - thumbnailVariant: 'compareSlider', - recipeSummary: - 'Reproduce the reviewed Canny-Guided Green Glass example with the saved prompt, settings and model revision.', - runtimeReuseKey: 'sha256:canonical-graph-v1:b0e98f0bb1e20a8d46f1ac67a426e6b0a55fcd817c51b6f60a79d97ab92d6514', - }, + field: 'referenceImages', + origin: 'user', + requiredAt: 'workflow_start', + count: 1, + }, + { + id: 'mask-image', + label: 'Mask Image', + mediaType: 'image', + field: 'maskImage', + origin: 'user', + requiredAt: 'workflow_start', + count: 1, + }, + { + id: 'control-guide', + label: 'Control Image', + mediaType: 'image', + field: 'controlImage', + origin: 'user', + requiredAt: 'workflow_start', + count: 1, + }, + ], + outputKinds: ['image'], + readinessPolicy: 'requires_input', + modelArtifact: { + source: 'hub', + value: 'stabilityai/stable-diffusion-xl-base-1.0', + revision: '462165984030d82259a11f4367a4eed129e94a7b', + }, + description: + 'Reproduce the reviewed Cobalt on Warm Plaster example with the saved prompt, settings and model revision.', + prompt: + 'Retouch only the masked wall behind this cobalt-blue glass block. Replace the damaged plaster inside the mask with a continuous warm ivory plaster finish, lit by the same soft daylight. Preserve the glass cube, sharp corners, blue reflections, pale stone slab, camera framing and existing cast shadow. Subtle plaster texture and natural color, a clean quiet product studio scene.', + negativePrompt: '', + example: { + mediaType: 'image', + status: 'unverified', + modelRevision: '462165984030d82259a11f4367a4eed129e94a7b', + lockedSeed: 42, + lockedSettings: { + width: 1024, + height: 1024, + steps: 50, + guidanceScale: 5, + strength: 0.8, + outputType: 'pil', + maxSequenceLength: 512, + conditioningScale: 0.5, + pagScale: 3, + pagAdaptiveScale: 0, + dtype: 'float16', + resourceMode: 'expert', + quantizationMode: 'none', + autoOffload: true, + offloadMode: 'model_cpu', + }, + expectedOutput: { + width: 1024, + height: 1024, + }, + runtimeEstimate: '29.45 seconds in the saved run', + }, + requiredBackendCapabilities: [ + 'modules.ImageFilters.Canny', + 'modules.DiffusersImage.ControlInpaint', + 'modules.DiffusersImage.LoadPipeline', + 'modules.DiffusersRuntime.PipelineQuantizationConfigV2', + 'modules.DiffusersRuntime.DiffusersExecutionRecipe', + 'modules.Image.Load', + 'modules.Image.Preview', + ], + mediaSlots: [ + { + id: 'before', + label: 'Source image', + kind: 'comparison_before', + role: 'before', + placeholder: 'Source pending', + }, + { + id: 'after', + label: 'Generated image', + kind: 'comparison_after', + role: 'after', + placeholder: 'Preview pending', + }, + ], + thumbnailVariant: 'compareSlider', + recipeSummary: + 'Reproduce the reviewed Cobalt on Warm Plaster example with the saved prompt, settings and model revision.', + runtimeReuseKey: 'sha256:canonical-graph-v1:188e60e1e4b295563d9e227a6a5f4b6e856781519579dbe9bc830d6ded6b0807', }, { - workflowId: 'HunyuanDiTControlNetPipeline:control_image', - sourceTaskTemplateId: 'task-template:hunyuan-dit-v1-2-controlnet-canny:control-image:v1', - retainedGraphHash: 'sha256:canonical-graph-v1:20f676957f2cca0389d876c1b462e6b947e7d366154f125dd19c262027b9cbbb', - originalReceiptSha256: '88ca5ccb6b4500e438bd84d42321a2cb61d0f7322e5c3bdaa8343735b8f08648', - reviewedTemplateSha256: 'a132dd6cd433bd0595f962173926edd930ea38cbf44d175d5499234f600d21f2', - reviewedCatalogLock: { - templateLockHash: 'tpl_ce472b92', - galleryTemplateLockHash: 'tpl_ad56a37f', - promptSettingsHash: 'ps_6990e9b6', - }, - promptSha256: '15c242632d932ffb74e7c107f2610ce42d94aa7480ee711aa26ef66ff4610dc0', - inputSha256: '6bd07628a37c087178e9de58a98c6c5879468163f1a2376a581511a42503e2e2', - inputLocatorSha256: '59660f6454720ae76fa64a1baf2fad2e551e349070cea802c6614fc9864c86dc', - template: { - id: 'hunyuan_dit_green_glass_study', - label: 'Hunyuan-DiT Canny — Control image: Green Glass Study', - mode: 'control_image', - modelType: 'HunyuanDiTControlNetPipeline', - intentGroup: 'generate_image', - category: 'control', - inputBindings: [ - { - id: 'control-guide', - label: 'Control Image', - mediaType: 'image', - field: 'controlImage', - origin: 'user', - requiredAt: 'workflow_start', - count: 1, - }, - ], - outputKinds: ['image'], - readinessPolicy: 'requires_input', - modelArtifact: { - source: 'hub', - value: 'Tencent-Hunyuan/HunyuanDiT-v1.2-Diffusers-Distilled', - revision: 'ba991d1546d8c50936c4c16398ed0a87b9b99fb1', - }, - description: - 'Reproduce the reviewed Green Glass Study example with the saved prompt, settings and model revision.', - prompt: - 'One deep emerald green solid glass cube on a pale stone plinth, with three flat planes, straight corners and soft right window light. A quiet studio product photograph.', - negativePrompt: '', - example: { + id: 'sd15_canny_guided_green_glass', + label: 'Stable Diffusion 1.5 — Control image: Canny-Guided Green Glass', + mode: 'control_image', + modelType: 'StableDiffusionPipeline', + intentGroup: 'generate_image', + category: 'control', + inputBindings: [ + { + id: 'control-guide', + label: 'Control Image', mediaType: 'image', - status: 'unverified', - modelRevision: 'ba991d1546d8c50936c4c16398ed0a87b9b99fb1', - lockedSeed: 42, - lockedSettings: { - width: 1024, - height: 1024, - steps: 50, - guidanceScale: 6, - strength: 0.8, - outputType: 'pil', - maxSequenceLength: 256, - conditioningScale: 1, - pagScale: 3, - pagAdaptiveScale: 0, - dtype: 'float16', - resourceMode: 'expert', - quantizationMode: 'none', - autoOffload: true, - offloadMode: 'model_cpu', - }, - expectedOutput: { - width: 1024, - height: 1024, - }, - runtimeEstimate: '242.88 seconds in the saved run', - }, - requiredBackendCapabilities: [ - 'modules.ImageFilters.Canny', - 'modules.DiffusersImage.ControlGenerate', - 'modules.DiffusersImage.LoadPipeline', - 'modules.DiffusersRuntime.PipelineQuantizationConfigV2', - 'modules.DiffusersRuntime.DiffusersExecutionRecipe', - 'modules.Image.Load', - 'modules.Image.Preview', - ], - mediaSlots: [ - { - id: 'before', - label: 'Control guide', - kind: 'comparison_before', - role: 'before', - placeholder: 'Source pending', - }, - { - id: 'after', - label: 'Generated image', - kind: 'comparison_after', - role: 'after', - placeholder: 'Preview pending', - }, - ], - thumbnailVariant: 'compareSlider', - recipeSummary: - 'Reproduce the reviewed Green Glass Study example with the saved prompt, settings and model revision.', - runtimeReuseKey: 'sha256:canonical-graph-v1:20f676957f2cca0389d876c1b462e6b947e7d366154f125dd19c262027b9cbbb', - }, + field: 'controlImage', + origin: 'user', + requiredAt: 'workflow_start', + count: 1, + }, + ], + outputKinds: ['image'], + readinessPolicy: 'requires_input', + modelArtifact: { + source: 'hub', + value: 'stable-diffusion-v1-5/stable-diffusion-v1-5', + revision: '451f4fe16113bff5a5d2269ed5ad43b0592e9a14', + }, + description: + 'Reproduce the reviewed Canny-Guided Green Glass example with the saved prompt, settings and model revision.', + prompt: + 'One translucent green glass cube, a pale slate surface and light beige wall. Sharp silhouette with three planes, simple studio photo, soft left light.', + negativePrompt: '', + example: { + mediaType: 'image', + status: 'unverified', + modelRevision: '451f4fe16113bff5a5d2269ed5ad43b0592e9a14', + lockedSeed: 42, + lockedSettings: { + width: 512, + height: 512, + steps: 30, + guidanceScale: 7.5, + strength: 0.8, + outputType: 'pil', + maxSequenceLength: 512, + conditioningScale: 1, + pagScale: 3, + pagAdaptiveScale: 0, + dtype: 'float32', + resourceMode: 'expert', + quantizationMode: 'none', + autoOffload: false, + offloadMode: 'none', + }, + expectedOutput: { + width: 512, + height: 512, + }, + runtimeEstimate: '24.84 seconds in the saved run', + }, + requiredBackendCapabilities: [ + 'modules.ImageFilters.Canny', + 'modules.DiffusersImage.ControlGenerate', + 'modules.DiffusersImage.LoadPipeline', + 'modules.DiffusersRuntime.PipelineQuantizationConfigV2', + 'modules.DiffusersRuntime.DiffusersExecutionRecipe', + 'modules.Image.Load', + 'modules.Image.Preview', + ], + mediaSlots: [ + { + id: 'before', + label: 'Control guide', + kind: 'comparison_before', + role: 'before', + placeholder: 'Source pending', + }, + { + id: 'after', + label: 'Generated image', + kind: 'comparison_after', + role: 'after', + placeholder: 'Preview pending', + }, + ], + thumbnailVariant: 'compareSlider', + recipeSummary: + 'Reproduce the reviewed Canny-Guided Green Glass example with the saved prompt, settings and model revision.', + runtimeReuseKey: 'sha256:canonical-graph-v1:b0e98f0bb1e20a8d46f1ac67a426e6b0a55fcd817c51b6f60a79d97ab92d6514', }, { - workflowId: 'QwenImageControlNetPipeline:control_image', - sourceTaskTemplateId: 'task-template:qwen-image-controlnet-direct:control-image:v1', - retainedGraphHash: 'sha256:canonical-graph-v1:9f21216fd545a1b8d30b5bec044f217749bedecfc1f7377237b944abf9a7bb7d', - originalReceiptSha256: 'e9d03118cfe3e55fb78b42dec749d367bf72d6676aae59e70fd1b3be19ade4c0', - reviewedTemplateSha256: 'eb65cb98a365c056f3a2a7bd5d44515bb16f518f7ec00797a496fe90a25ce07d', - reviewedCatalogLock: { - templateLockHash: 'tpl_301009d7', - galleryTemplateLockHash: 'tpl_c38a2571', - promptSettingsHash: 'ps_508a465e', - }, - promptSha256: '5728c894889366a9648c6b78109b8ebaa608fdd22f0bb7a470849b7353a9bcc6', - inputSha256: 'ca250462efc77625134ebe305b2ee67281a1dcf8919e45299c648f0fdacf919a', - inputLocatorSha256: '5c41a25a1747974eb20ae701984d2e13c2979cd0069944f7ef21429677d4c046', - template: { - id: 'qwen_control_winter_cabin_blue_hour', - label: 'Qwen Image ControlNet (Standard Diffusers) — Control image: Winter Cabin in Blue Hour', - mode: 'control_image', - modelType: 'QwenImageControlNetPipeline', - intentGroup: 'generate_image', - category: 'control', - inputBindings: [ - { - id: 'control-guide', - label: 'Control Image', - mediaType: 'image', - field: 'controlImage', - origin: 'user', - requiredAt: 'workflow_start', - count: 1, - }, - ], - outputKinds: ['image'], - readinessPolicy: 'requires_input', - modelArtifact: { - source: 'hub', - value: 'Qwen/Qwen-Image-2512', - revision: '25468b98e3276ca6700de15c6628e51b7de54a26', - }, - description: - 'Reproduce the reviewed Winter Cabin in Blue Hour example with the saved prompt, settings and model revision.', - prompt: - 'Straight-on architectural photograph of one dark blue painted wooden cabin at the edge of a snowy spruce forest just after sunset. Follow the silhouette and openings of the guide precisely: one steep gabled roof, one square four-pane window on the left, and one single front door on the right. Bright warm amber light shines from behind all four panes, with a subtle gold reflection on the snow directly below the window. Keep the door solid dark timber. Crisp frosted pine branches, natural snow texture, soft blue twilight and a calm coherent single facade.', - negativePrompt: '', - example: { + id: 'hunyuan_dit_green_glass_study', + label: 'Hunyuan-DiT Canny — Control image: Green Glass Study', + mode: 'control_image', + modelType: 'HunyuanDiTControlNetPipeline', + intentGroup: 'generate_image', + category: 'control', + inputBindings: [ + { + id: 'control-guide', + label: 'Control Image', mediaType: 'image', - status: 'unverified', - modelRevision: '25468b98e3276ca6700de15c6628e51b7de54a26', - lockedSeed: 42, - lockedSettings: { - width: 1024, - height: 1024, - steps: 50, - guidanceScale: 4.5, - strength: 0.8, - outputType: 'pil', - maxSequenceLength: 512, - conditioningScale: 1, - pagScale: 3, - pagAdaptiveScale: 0, - dtype: 'bfloat16', - resourceMode: 'expert', - quantizationMode: 'none', - autoOffload: true, - offloadMode: 'model_cpu', - }, - expectedOutput: { - width: 1024, - height: 1024, - }, - runtimeEstimate: '422.65 seconds in the saved run', - }, - requiredBackendCapabilities: [ - 'modules.DiffusersImage.ControlGenerate', - 'modules.DiffusersImage.LoadPipeline', - 'modules.DiffusersRuntime.PipelineQuantizationConfigV2', - 'modules.DiffusersRuntime.DiffusersExecutionRecipe', - 'modules.Image.Load', - 'modules.Image.Preview', - ], - mediaSlots: [ - { - id: 'before', - label: 'Control guide', - kind: 'comparison_before', - role: 'before', - placeholder: 'Source pending', - }, - { - id: 'after', - label: 'Generated image', - kind: 'comparison_after', - role: 'after', - placeholder: 'Preview pending', - }, - ], - thumbnailVariant: 'compareSlider', - recipeSummary: - 'Reproduce the reviewed Winter Cabin in Blue Hour example with the saved prompt, settings and model revision.', - runtimeReuseKey: 'sha256:canonical-graph-v1:9f21216fd545a1b8d30b5bec044f217749bedecfc1f7377237b944abf9a7bb7d', - }, + field: 'controlImage', + origin: 'user', + requiredAt: 'workflow_start', + count: 1, + }, + ], + outputKinds: ['image'], + readinessPolicy: 'requires_input', + modelArtifact: { + source: 'hub', + value: 'Tencent-Hunyuan/HunyuanDiT-v1.2-Diffusers-Distilled', + revision: 'ba991d1546d8c50936c4c16398ed0a87b9b99fb1', + }, + description: 'Reproduce the reviewed Green Glass Study example with the saved prompt, settings and model revision.', + prompt: + 'One deep emerald green solid glass cube on a pale stone plinth, with three flat planes, straight corners and soft right window light. A quiet studio product photograph.', + negativePrompt: '', + example: { + mediaType: 'image', + status: 'unverified', + modelRevision: 'ba991d1546d8c50936c4c16398ed0a87b9b99fb1', + lockedSeed: 42, + lockedSettings: { + width: 1024, + height: 1024, + steps: 50, + guidanceScale: 6, + strength: 0.8, + outputType: 'pil', + maxSequenceLength: 256, + conditioningScale: 1, + pagScale: 3, + pagAdaptiveScale: 0, + dtype: 'float16', + resourceMode: 'expert', + quantizationMode: 'none', + autoOffload: true, + offloadMode: 'model_cpu', + }, + expectedOutput: { + width: 1024, + height: 1024, + }, + runtimeEstimate: '242.88 seconds in the saved run', + }, + requiredBackendCapabilities: [ + 'modules.ImageFilters.Canny', + 'modules.DiffusersImage.ControlGenerate', + 'modules.DiffusersImage.LoadPipeline', + 'modules.DiffusersRuntime.PipelineQuantizationConfigV2', + 'modules.DiffusersRuntime.DiffusersExecutionRecipe', + 'modules.Image.Load', + 'modules.Image.Preview', + ], + mediaSlots: [ + { + id: 'before', + label: 'Control guide', + kind: 'comparison_before', + role: 'before', + placeholder: 'Source pending', + }, + { + id: 'after', + label: 'Generated image', + kind: 'comparison_after', + role: 'after', + placeholder: 'Preview pending', + }, + ], + thumbnailVariant: 'compareSlider', + recipeSummary: + 'Reproduce the reviewed Green Glass Study example with the saved prompt, settings and model revision.', + runtimeReuseKey: 'sha256:canonical-graph-v1:20f676957f2cca0389d876c1b462e6b947e7d366154f125dd19c262027b9cbbb', }, { - workflowId: 'StableDiffusionPAGPipeline:control_image', - sourceTaskTemplateId: 'task-template:sd15-pag-controlnet-canny:control-image:v1', - retainedGraphHash: 'sha256:canonical-graph-v1:cc03628ea649924bfeca24fd9e93c8aa47c28b4805a0b308fb4adeb9fbb5c0b2', - originalReceiptSha256: '9bb9602d6c79fd442b5f197809ed32dd1651524f4f5d730c28e1971c7325fc1d', - reviewedTemplateSha256: '23fc8dfe4150096c38d946116a9839a314a7581d52c9397e9d8e1ad42716624c', - reviewedCatalogLock: { - templateLockHash: 'tpl_0a0b30c1', - galleryTemplateLockHash: 'tpl_dff4bb5e', - promptSettingsHash: 'ps_d149242b', - }, - promptSha256: '3195f7028bc2fc48271a962d96f24cfd11cd9d8dc44032a2163ea62a511f8140', - inputSha256: '6d47a2f07006b98f9e5cfc8ee925914c4dbfa39fd38b0b61770be56d12ed04e8', - inputLocatorSha256: '36f9c290c26da075d212f483d4abbc2aba1520b60c5d135f823768f4966c286c', - template: { - id: 'sd15_pag_canny_guided_glass', - label: 'Stable Diffusion 1.5 PAG — Control image: Canny-Guided Glass with PAG', - mode: 'control_image', - modelType: 'StableDiffusionPAGPipeline', - intentGroup: 'generate_image', - category: 'control', - inputBindings: [ - { - id: 'control-guide', - label: 'Control Image', - mediaType: 'image', - field: 'controlImage', - origin: 'user', - requiredAt: 'workflow_start', - count: 1, - }, - ], - outputKinds: ['image'], - readinessPolicy: 'requires_input', - modelArtifact: { - source: 'hub', - value: 'stable-diffusion-v1-5/stable-diffusion-v1-5', - revision: '451f4fe16113bff5a5d2269ed5ad43b0592e9a14', - }, - description: - 'Reproduce the reviewed Canny-Guided Glass with PAG example with the saved prompt, settings and model revision.', - prompt: - 'A single amber glass cube on pale limestone, neutral gray studio background, clean three-quarter view, realistic specular reflections and crisp edges.', - negativePrompt: '', - example: { + id: 'qwen_control_winter_cabin_blue_hour', + label: 'Qwen Image ControlNet (Standard Diffusers) — Control image: Winter Cabin in Blue Hour', + mode: 'control_image', + modelType: 'QwenImageControlNetPipeline', + intentGroup: 'generate_image', + category: 'control', + inputBindings: [ + { + id: 'control-guide', + label: 'Control Image', mediaType: 'image', - status: 'unverified', - modelRevision: '451f4fe16113bff5a5d2269ed5ad43b0592e9a14', - lockedSeed: 42, - lockedSettings: { - width: 512, - height: 512, - steps: 30, - guidanceScale: 7.5, - strength: 0.8, - outputType: 'pil', - maxSequenceLength: 512, - conditioningScale: 1, - pagScale: 3, - pagAdaptiveScale: 0, - dtype: 'float32', - resourceMode: 'expert', - quantizationMode: 'none', - autoOffload: false, - offloadMode: 'none', - }, - expectedOutput: { - width: 512, - height: 512, - }, - runtimeEstimate: '87.39 seconds in the saved run', - }, - requiredBackendCapabilities: [ - 'modules.ImageFilters.Canny', - 'modules.DiffusersImage.ControlGenerate', - 'modules.DiffusersImage.LoadPipeline', - 'modules.DiffusersRuntime.PipelineQuantizationConfigV2', - 'modules.DiffusersRuntime.DiffusersExecutionRecipe', - 'modules.Image.Load', - 'modules.Image.Preview', - ], - mediaSlots: [ - { - id: 'before', - label: 'Control guide', - kind: 'comparison_before', - role: 'before', - placeholder: 'Source pending', - }, - { - id: 'after', - label: 'Generated image', - kind: 'comparison_after', - role: 'after', - placeholder: 'Preview pending', - }, - ], - thumbnailVariant: 'compareSlider', - recipeSummary: - 'Reproduce the reviewed Canny-Guided Glass with PAG example with the saved prompt, settings and model revision.', - runtimeReuseKey: 'sha256:canonical-graph-v1:cc03628ea649924bfeca24fd9e93c8aa47c28b4805a0b308fb4adeb9fbb5c0b2', - }, + field: 'controlImage', + origin: 'user', + requiredAt: 'workflow_start', + count: 1, + }, + ], + outputKinds: ['image'], + readinessPolicy: 'requires_input', + modelArtifact: { + source: 'hub', + value: 'Qwen/Qwen-Image-2512', + revision: '25468b98e3276ca6700de15c6628e51b7de54a26', + }, + description: + 'Reproduce the reviewed Winter Cabin in Blue Hour example with the saved prompt, settings and model revision.', + prompt: + 'Straight-on architectural photograph of one dark blue painted wooden cabin at the edge of a snowy spruce forest just after sunset. Follow the silhouette and openings of the guide precisely: one steep gabled roof, one square four-pane window on the left, and one single front door on the right. Bright warm amber light shines from behind all four panes, with a subtle gold reflection on the snow directly below the window. Keep the door solid dark timber. Crisp frosted pine branches, natural snow texture, soft blue twilight and a calm coherent single facade.', + negativePrompt: '', + example: { + mediaType: 'image', + status: 'unverified', + modelRevision: '25468b98e3276ca6700de15c6628e51b7de54a26', + lockedSeed: 42, + lockedSettings: { + width: 1024, + height: 1024, + steps: 50, + guidanceScale: 4.5, + strength: 0.8, + outputType: 'pil', + maxSequenceLength: 512, + conditioningScale: 1, + pagScale: 3, + pagAdaptiveScale: 0, + dtype: 'bfloat16', + resourceMode: 'expert', + quantizationMode: 'none', + autoOffload: true, + offloadMode: 'model_cpu', + }, + expectedOutput: { + width: 1024, + height: 1024, + }, + runtimeEstimate: '422.65 seconds in the saved run', + }, + requiredBackendCapabilities: [ + 'modules.DiffusersImage.ControlGenerate', + 'modules.DiffusersImage.LoadPipeline', + 'modules.DiffusersRuntime.PipelineQuantizationConfigV2', + 'modules.DiffusersRuntime.DiffusersExecutionRecipe', + 'modules.Image.Load', + 'modules.Image.Preview', + ], + mediaSlots: [ + { + id: 'before', + label: 'Control guide', + kind: 'comparison_before', + role: 'before', + placeholder: 'Source pending', + }, + { + id: 'after', + label: 'Generated image', + kind: 'comparison_after', + role: 'after', + placeholder: 'Preview pending', + }, + ], + thumbnailVariant: 'compareSlider', + recipeSummary: + 'Reproduce the reviewed Winter Cabin in Blue Hour example with the saved prompt, settings and model revision.', + runtimeReuseKey: 'sha256:canonical-graph-v1:9f21216fd545a1b8d30b5bec044f217749bedecfc1f7377237b944abf9a7bb7d', }, { - workflowId: 'StableDiffusionXLControlNetPipeline:control_image', - sourceTaskTemplateId: 'task-template:sdxl-controlnet-canny:control-image:v1', - retainedGraphHash: 'sha256:canonical-graph-v1:cd4d26987f6eb195f91493d431e659db42ef4a531b29e26d7eedb08799769c16', - originalReceiptSha256: 'f57b41443261612d95d3e80df2d638617f62526970313989ca69e0652bb4c390', - reviewedTemplateSha256: '3075b68d97eea65616a9a8fe2519154041e24ced2cd916b395c4849d26c31b71', - reviewedCatalogLock: { - templateLockHash: 'tpl_380083cc', - galleryTemplateLockHash: 'tpl_45e1f06a', - promptSettingsHash: 'ps_e42996a8', - }, - promptSha256: 'd20a107a17c31f20a4e9d409be51c0e55ca8e58747bb5dfbd6169500a4da21d6', - inputSha256: '6bd07628a37c087178e9de58a98c6c5879468163f1a2376a581511a42503e2e2', - inputLocatorSha256: '59660f6454720ae76fa64a1baf2fad2e551e349070cea802c6614fc9864c86dc', - template: { - id: 'sdxl_controlnet_glass_study_on_slate', - label: 'Stable Diffusion XL ControlNet — Control image: Glass Study on Slate', - mode: 'control_image', - modelType: 'StableDiffusionXLControlNetPipeline', - intentGroup: 'generate_image', - category: 'control', - inputBindings: [ - { - id: 'control-guide', - label: 'Control Image', - mediaType: 'image', - field: 'controlImage', - origin: 'user', - requiredAt: 'workflow_start', - count: 1, - }, - ], - outputKinds: ['image'], - readinessPolicy: 'requires_input', - modelArtifact: { - source: 'hub', - value: 'stabilityai/stable-diffusion-xl-base-1.0', - revision: '462165984030d82259a11f4367a4eed129e94a7b', - }, - description: - 'Reproduce the reviewed Glass Study on Slate example with the saved prompt, settings and model revision.', - prompt: - 'A single violet translucent glass cube on a slate tabletop against a warm ivory wall. Three visible faces, crisp straight edges, soft window light, studio product photography.', - negativePrompt: '', - example: { + id: 'sd15_pag_canny_guided_glass', + label: 'Stable Diffusion 1.5 PAG — Control image: Canny-Guided Glass with PAG', + mode: 'control_image', + modelType: 'StableDiffusionPAGPipeline', + intentGroup: 'generate_image', + category: 'control', + inputBindings: [ + { + id: 'control-guide', + label: 'Control Image', mediaType: 'image', - status: 'unverified', - modelRevision: '462165984030d82259a11f4367a4eed129e94a7b', - lockedSeed: 42, - lockedSettings: { - width: 1024, - height: 1024, - steps: 50, - guidanceScale: 5, - strength: 0.8, - outputType: 'pil', - maxSequenceLength: 512, - conditioningScale: 0.5, - pagScale: 3, - pagAdaptiveScale: 0, - dtype: 'float16', - resourceMode: 'expert', - quantizationMode: 'none', - autoOffload: true, - offloadMode: 'model_cpu', - }, - expectedOutput: { - width: 1024, - height: 1024, - }, - runtimeEstimate: '69.33 seconds in the saved run', - }, - requiredBackendCapabilities: [ - 'modules.ImageFilters.Canny', - 'modules.DiffusersImage.ControlGenerate', - 'modules.DiffusersImage.LoadPipeline', - 'modules.DiffusersRuntime.PipelineQuantizationConfigV2', - 'modules.DiffusersRuntime.DiffusersExecutionRecipe', - 'modules.Image.Load', - 'modules.Image.Preview', - ], - mediaSlots: [ - { - id: 'before', - label: 'Control guide', - kind: 'comparison_before', - role: 'before', - placeholder: 'Source pending', - }, - { - id: 'after', - label: 'Generated image', - kind: 'comparison_after', - role: 'after', - placeholder: 'Preview pending', - }, - ], - thumbnailVariant: 'compareSlider', - recipeSummary: - 'Reproduce the reviewed Glass Study on Slate example with the saved prompt, settings and model revision.', - runtimeReuseKey: 'sha256:canonical-graph-v1:cd4d26987f6eb195f91493d431e659db42ef4a531b29e26d7eedb08799769c16', - }, + field: 'controlImage', + origin: 'user', + requiredAt: 'workflow_start', + count: 1, + }, + ], + outputKinds: ['image'], + readinessPolicy: 'requires_input', + modelArtifact: { + source: 'hub', + value: 'stable-diffusion-v1-5/stable-diffusion-v1-5', + revision: '451f4fe16113bff5a5d2269ed5ad43b0592e9a14', + }, + description: + 'Reproduce the reviewed Canny-Guided Glass with PAG example with the saved prompt, settings and model revision.', + prompt: + 'A single amber glass cube on pale limestone, neutral gray studio background, clean three-quarter view, realistic specular reflections and crisp edges.', + negativePrompt: '', + example: { + mediaType: 'image', + status: 'unverified', + modelRevision: '451f4fe16113bff5a5d2269ed5ad43b0592e9a14', + lockedSeed: 42, + lockedSettings: { + width: 512, + height: 512, + steps: 30, + guidanceScale: 7.5, + strength: 0.8, + outputType: 'pil', + maxSequenceLength: 512, + conditioningScale: 1, + pagScale: 3, + pagAdaptiveScale: 0, + dtype: 'float32', + resourceMode: 'expert', + quantizationMode: 'none', + autoOffload: false, + offloadMode: 'none', + }, + expectedOutput: { + width: 512, + height: 512, + }, + runtimeEstimate: '87.39 seconds in the saved run', + }, + requiredBackendCapabilities: [ + 'modules.ImageFilters.Canny', + 'modules.DiffusersImage.ControlGenerate', + 'modules.DiffusersImage.LoadPipeline', + 'modules.DiffusersRuntime.PipelineQuantizationConfigV2', + 'modules.DiffusersRuntime.DiffusersExecutionRecipe', + 'modules.Image.Load', + 'modules.Image.Preview', + ], + mediaSlots: [ + { + id: 'before', + label: 'Control guide', + kind: 'comparison_before', + role: 'before', + placeholder: 'Source pending', + }, + { + id: 'after', + label: 'Generated image', + kind: 'comparison_after', + role: 'after', + placeholder: 'Preview pending', + }, + ], + thumbnailVariant: 'compareSlider', + recipeSummary: + 'Reproduce the reviewed Canny-Guided Glass with PAG example with the saved prompt, settings and model revision.', + runtimeReuseKey: 'sha256:canonical-graph-v1:cc03628ea649924bfeca24fd9e93c8aa47c28b4805a0b308fb4adeb9fbb5c0b2', }, { - workflowId: 'StableDiffusionXLAdapterPipeline:control_image', - sourceTaskTemplateId: 'task-template:sdxl-t2i-adapter-canny:control-image:v1', - retainedGraphHash: 'sha256:canonical-graph-v1:9012c51eebe966a595a2fc5b93f9645e23a2fd6cc194e28ae0218f87b2495565', - originalReceiptSha256: '5a911626f9d33032fb2dcdc80cede5ffad9506abc0fb0077dc4ba39947b33a36', - reviewedTemplateSha256: 'eef6570d0a2241aa0a9ff68b200c59591fc6497f43885fba151138ae56517968', - reviewedCatalogLock: { - templateLockHash: 'tpl_76024be8', - galleryTemplateLockHash: 'tpl_768c7bb4', - promptSettingsHash: 'ps_63d6342f', - }, - promptSha256: 'ec5b7d8ce937a4f50bde17dfddda9d217733d09cf02ca1b7bc944f1bcf231577', - inputSha256: '6bd07628a37c087178e9de58a98c6c5879468163f1a2376a581511a42503e2e2', - inputLocatorSha256: '59660f6454720ae76fa64a1baf2fad2e551e349070cea802c6614fc9864c86dc', - template: { - id: 'sdxl_canny_adapter_glass_study', - label: 'Stable Diffusion XL T2I Adapter — Control image: Canny Adapter Glass Study', - mode: 'control_image', - modelType: 'StableDiffusionXLAdapterPipeline', - intentGroup: 'generate_image', - category: 'control', - inputBindings: [ - { - id: 'control-guide', - label: 'Control Image', - mediaType: 'image', - field: 'controlImage', - origin: 'user', - requiredAt: 'workflow_start', - count: 1, - }, - ], - outputKinds: ['image'], - readinessPolicy: 'requires_input', - modelArtifact: { - source: 'hub', - value: 'stabilityai/stable-diffusion-xl-base-1.0', - revision: '462165984030d82259a11f4367a4eed129e94a7b', - }, - description: - 'Reproduce the reviewed Canny Adapter Glass Study example with the saved prompt, settings and model revision.', - prompt: - 'Product photograph of a single violet translucent glass cube on a charcoal slate tabletop, against a warm ivory wall. Three visible faces and crisp straight edges. Soft window light, polished reflections and clean studio composition.', - negativePrompt: '', - example: { + id: 'sdxl_controlnet_glass_study_on_slate', + label: 'Stable Diffusion XL ControlNet — Control image: Glass Study on Slate', + mode: 'control_image', + modelType: 'StableDiffusionXLControlNetPipeline', + intentGroup: 'generate_image', + category: 'control', + inputBindings: [ + { + id: 'control-guide', + label: 'Control Image', mediaType: 'image', - status: 'unverified', - modelRevision: '462165984030d82259a11f4367a4eed129e94a7b', - lockedSeed: 42, - lockedSettings: { - width: 1024, - height: 1024, - steps: 30, - guidanceScale: 7.5, - strength: 0.8, - outputType: 'pil', - maxSequenceLength: 512, - conditioningScale: 0.8, - pagScale: 3, - pagAdaptiveScale: 0, - dtype: 'float16', - resourceMode: 'expert', - quantizationMode: 'none', - autoOffload: true, - offloadMode: 'model_cpu', - }, - expectedOutput: { - width: 1024, - height: 1024, - }, - runtimeEstimate: '153.11 seconds in the saved run', - }, - requiredBackendCapabilities: [ - 'modules.ImageFilters.Canny', - 'modules.DiffusersImage.ControlGenerate', - 'modules.DiffusersImage.LoadPipeline', - 'modules.DiffusersRuntime.PipelineQuantizationConfigV2', - 'modules.DiffusersRuntime.DiffusersExecutionRecipe', - 'modules.Image.Load', - 'modules.Image.Preview', - ], - mediaSlots: [ - { - id: 'before', - label: 'Control guide', - kind: 'comparison_before', - role: 'before', - placeholder: 'Source pending', - }, - { - id: 'after', - label: 'Generated image', - kind: 'comparison_after', - role: 'after', - placeholder: 'Preview pending', - }, - ], - thumbnailVariant: 'compareSlider', - recipeSummary: - 'Reproduce the reviewed Canny Adapter Glass Study example with the saved prompt, settings and model revision.', - runtimeReuseKey: 'sha256:canonical-graph-v1:9012c51eebe966a595a2fc5b93f9645e23a2fd6cc194e28ae0218f87b2495565', - }, - }, -{ - "workflowId": "LongCatAudioDiTPipeline:text_to_audio", - "sourceTaskTemplateId": "task-template:longcat-audio-dit-1b:text-to-audio:v1", - "retainedGraphHash": "sha256:canonical-graph-v1:2d149a078f6469b473a083b6116ef47452ae4ccc8a1ca0fc7b0ea416f5257515", - "originalReceiptSha256": "8019b9dbf5af0e8ba5c8eeed7132ec5578968ee0607309dd65327d69599a5c5d", - "reviewedTemplateSha256": "9d0f7b50afd87f366ecf6c0d66352d87dd2bdf0b4ae9a50f818619d6254d6b92", - "reviewedCatalogLock": { - "templateLockHash": "tpl_0738853e", - "galleryTemplateLockHash": "tpl_e6bfed44", - "promptSettingsHash": "ps_11aa3e00" - }, - "promptSha256": "47545a310a3cffc0c8a458241c77dca330e10fe92fbc796239efb689bfb40949", - "template": { - "id": "longcat_last_tram_at_dusk", - "label": "LongCat AudioDiT 1B — Text to audio: Last Tram at Dusk", - "mode": "text_to_audio", - "modelType": "LongCatAudioDiTPipeline", - "intentGroup": "audio", - "thumbnailVariant": "audio", - "category": "audio_generation", - "outputKinds": [ - "audio" + field: 'controlImage', + origin: 'user', + requiredAt: 'workflow_start', + count: 1, + }, ], - "readinessPolicy": "runnable", - "modelArtifact": { - "source": "hub", - "value": "ruixiangma/LongCat-AudioDiT-1B-Diffusers", - "revision": "f4c063ea37f262ba5e6129ebd80095a6d6a9de4d" - }, - "description": "Reproduce the reviewed Last Tram at Dusk example with the saved prompt, settings and model revision.", - "prompt": "The last tram leaves at dusk, so we will walk home beside the river.", - "negativePrompt": "", - "example": { - "mediaType": "audio", - "status": "unverified", - "modelRevision": "f4c063ea37f262ba5e6129ebd80095a6d6a9de4d", - "lockedSeed": 42, - "lockedSettings": { - "steps": 16, - "guidanceScale": 4, - "strength": 0.8, - "maxSequenceLength": 512, - "pagScale": 0, - "pagAdaptiveScale": 0, - "dtype": "bfloat16", - "resourceMode": "expert", - "quantizationMode": "none", - "autoOffload": true, - "offloadMode": "model_cpu", - "audioDuration": 5 - }, - "expectedOutput": { - "durationSeconds": 4.949333333333334, - "sampleRate": 24000 - }, - "runtimeEstimate": "9.73 seconds in the saved run" - }, - "requiredBackendCapabilities": [ - "modules.Audio.Export", - "modules.DiffusersAudio.Generate", - "modules.DiffusersAudio.LoadPipeline", - "modules.DiffusersRuntime.PipelineQuantizationConfigV2", - "modules.DiffusersRuntime.DiffusersExecutionRecipe" + outputKinds: ['image'], + readinessPolicy: 'requires_input', + modelArtifact: { + source: 'hub', + value: 'stabilityai/stable-diffusion-xl-base-1.0', + revision: '462165984030d82259a11f4367a4eed129e94a7b', + }, + description: + 'Reproduce the reviewed Glass Study on Slate example with the saved prompt, settings and model revision.', + prompt: + 'A single violet translucent glass cube on a slate tabletop against a warm ivory wall. Three visible faces, crisp straight edges, soft window light, studio product photography.', + negativePrompt: '', + example: { + mediaType: 'image', + status: 'unverified', + modelRevision: '462165984030d82259a11f4367a4eed129e94a7b', + lockedSeed: 42, + lockedSettings: { + width: 1024, + height: 1024, + steps: 50, + guidanceScale: 5, + strength: 0.8, + outputType: 'pil', + maxSequenceLength: 512, + conditioningScale: 0.5, + pagScale: 3, + pagAdaptiveScale: 0, + dtype: 'float16', + resourceMode: 'expert', + quantizationMode: 'none', + autoOffload: true, + offloadMode: 'model_cpu', + }, + expectedOutput: { + width: 1024, + height: 1024, + }, + runtimeEstimate: '69.33 seconds in the saved run', + }, + requiredBackendCapabilities: [ + 'modules.ImageFilters.Canny', + 'modules.DiffusersImage.ControlGenerate', + 'modules.DiffusersImage.LoadPipeline', + 'modules.DiffusersRuntime.PipelineQuantizationConfigV2', + 'modules.DiffusersRuntime.DiffusersExecutionRecipe', + 'modules.Image.Load', + 'modules.Image.Preview', ], - "mediaSlots": [ + mediaSlots: [ { - "id": "result", - "label": "Generated audio", - "kind": "audio", - "role": "output", - "placeholder": "Result pending" - } + id: 'before', + label: 'Control guide', + kind: 'comparison_before', + role: 'before', + placeholder: 'Source pending', + }, + { + id: 'after', + label: 'Generated image', + kind: 'comparison_after', + role: 'after', + placeholder: 'Preview pending', + }, ], - "recipeSummary": "Reproduce the reviewed Last Tram at Dusk example with the saved prompt, settings and model revision.", - "runtimeReuseKey": "sha256:canonical-graph-v1:2d149a078f6469b473a083b6116ef47452ae4ccc8a1ca0fc7b0ea416f5257515" - } -}, -{ - "workflowId": "QwenImageLayeredPipeline:layer_decomposition", - "sourceTaskTemplateId": "task-template:qwen-image-layered-direct:layer-decomposition:v1", - "retainedGraphHash": "sha256:canonical-graph-v1:25bb2ac3d10b3d0f539204d2c4d3181764f192882a9c8442efb5ce54b7d8de43", - "originalReceiptSha256": "826d487fed6b6f0ae2679d2eb842ad65208a9b5929b66722ad1d8e1c0242079e", - "reviewedTemplateSha256": "4ee3847d935f7b245f5c9d9e156da8fe5d97dcb382ad890c59163e573a6c73c9", - "reviewedCatalogLock": { - "templateLockHash": "tpl_54972ded", - "galleryTemplateLockHash": "tpl_831d4207", - "promptSettingsHash": "ps_9236bec4" + thumbnailVariant: 'compareSlider', + recipeSummary: + 'Reproduce the reviewed Glass Study on Slate example with the saved prompt, settings and model revision.', + runtimeReuseKey: 'sha256:canonical-graph-v1:cd4d26987f6eb195f91493d431e659db42ef4a531b29e26d7eedb08799769c16', }, - "promptSha256": "10e30e8fbc0bcc8c1748851145c9b32a4d27da19cecd06da4d044f565cd2d745", - "inputSha256": "67835db7f30072a35b1650c0a84e7f241c0b01fcf2c324964ddcd5f8424008b3", - "inputLocatorSha256": "1584ce002870000a86ce56d7b6132b4e4920237e6b1c35f2269af9bbcc716aaf", - "template": { - "id": "qwen_layered_sunset_and_peaks", - "label": "Qwen Image Layered (Standard Diffusers) — Layer decomposition: Sunset and Peaks", - "mode": "layer_decomposition", - "modelType": "QwenImageLayeredPipeline", - "intentGroup": "reference_control", - "thumbnailVariant": "contactSheet", - "category": "layers", - "inputBindings": [ + { + id: 'sdxl_canny_adapter_glass_study', + label: 'Stable Diffusion XL T2I Adapter — Control image: Canny Adapter Glass Study', + mode: 'control_image', + modelType: 'StableDiffusionXLAdapterPipeline', + intentGroup: 'generate_image', + category: 'control', + inputBindings: [ { - "id": "source-image", - "label": "Source image", - "mediaType": "image", - "field": "referenceImages", - "origin": "user", - "requiredAt": "workflow_start", - "count": 1 - } + id: 'control-guide', + label: 'Control Image', + mediaType: 'image', + field: 'controlImage', + origin: 'user', + requiredAt: 'workflow_start', + count: 1, + }, ], - "outputKinds": [ - "image", - "json" + outputKinds: ['image'], + readinessPolicy: 'requires_input', + modelArtifact: { + source: 'hub', + value: 'stabilityai/stable-diffusion-xl-base-1.0', + revision: '462165984030d82259a11f4367a4eed129e94a7b', + }, + description: + 'Reproduce the reviewed Canny Adapter Glass Study example with the saved prompt, settings and model revision.', + prompt: + 'Product photograph of a single violet translucent glass cube on a charcoal slate tabletop, against a warm ivory wall. Three visible faces and crisp straight edges. Soft window light, polished reflections and clean studio composition.', + negativePrompt: '', + example: { + mediaType: 'image', + status: 'unverified', + modelRevision: '462165984030d82259a11f4367a4eed129e94a7b', + lockedSeed: 42, + lockedSettings: { + width: 1024, + height: 1024, + steps: 30, + guidanceScale: 7.5, + strength: 0.8, + outputType: 'pil', + maxSequenceLength: 512, + conditioningScale: 0.8, + pagScale: 3, + pagAdaptiveScale: 0, + dtype: 'float16', + resourceMode: 'expert', + quantizationMode: 'none', + autoOffload: true, + offloadMode: 'model_cpu', + }, + expectedOutput: { + width: 1024, + height: 1024, + }, + runtimeEstimate: '153.11 seconds in the saved run', + }, + requiredBackendCapabilities: [ + 'modules.ImageFilters.Canny', + 'modules.DiffusersImage.ControlGenerate', + 'modules.DiffusersImage.LoadPipeline', + 'modules.DiffusersRuntime.PipelineQuantizationConfigV2', + 'modules.DiffusersRuntime.DiffusersExecutionRecipe', + 'modules.Image.Load', + 'modules.Image.Preview', ], - "readinessPolicy": "requires_input", - "modelArtifact": { - "source": "hub", - "value": "Qwen/Qwen-Image-Layered", - "revision": "8f0ca708dfff6ba1dd5f2d85d78f8c108a040bcf" - }, - "description": "Reproduce the reviewed Sunset and Peaks example with the saved prompt, settings and model revision.", - "prompt": "A bold vintage screen print with a burnt orange sun behind teal mountain silhouettes, a deep blue lake, and two dark foreground rocks. Crisp overlapping vector shapes, flat paper colors, square composition.", - "negativePrompt": "", - "example": { - "mediaType": "image", - "status": "unverified", - "modelRevision": "8f0ca708dfff6ba1dd5f2d85d78f8c108a040bcf", - "lockedSeed": 42, - "lockedSettings": { - "width": 1024, - "height": 1024, - "steps": 50, - "guidanceScale": 4, - "strength": 0.8, - "outputType": "pil", - "maxSequenceLength": 512, - "pagScale": 3, - "pagAdaptiveScale": 0, - "dtype": "bfloat16", - "resourceMode": "expert", - "quantizationMode": "none", - "autoOffload": true, - "offloadMode": "model_cpu", - "layers": 4 - }, - "expectedOutput": { - "width": 1024, - "height": 1024 - }, - "galleryExpectedOutput": { - "width": 960, - "height": 710 - }, - "runtimeEstimate": "300.12 seconds in the saved run" - }, - "requiredBackendCapabilities": [ - "modules.DiffusersImage.LayerDecompose", - "modules.DiffusersImage.LoadPipeline", - "modules.DiffusersRuntime.PipelineQuantizationConfigV2", - "modules.DiffusersRuntime.DiffusersExecutionRecipe", - "modules.Image.Load", - "modules.Image.Preview" + mediaSlots: [ + { + id: 'before', + label: 'Control guide', + kind: 'comparison_before', + role: 'before', + placeholder: 'Source pending', + }, + { + id: 'after', + label: 'Generated image', + kind: 'comparison_after', + role: 'after', + placeholder: 'Preview pending', + }, + ], + thumbnailVariant: 'compareSlider', + recipeSummary: + 'Reproduce the reviewed Canny Adapter Glass Study example with the saved prompt, settings and model revision.', + runtimeReuseKey: 'sha256:canonical-graph-v1:9012c51eebe966a595a2fc5b93f9645e23a2fd6cc194e28ae0218f87b2495565', + }, + { + id: 'longcat_last_tram_at_dusk', + label: 'LongCat AudioDiT 1B — Text to audio: Last Tram at Dusk', + mode: 'text_to_audio', + modelType: 'LongCatAudioDiTPipeline', + intentGroup: 'audio', + thumbnailVariant: 'audio', + category: 'audio_generation', + outputKinds: ['audio'], + readinessPolicy: 'runnable', + modelArtifact: { + source: 'hub', + value: 'ruixiangma/LongCat-AudioDiT-1B-Diffusers', + revision: 'f4c063ea37f262ba5e6129ebd80095a6d6a9de4d', + }, + description: 'Reproduce the reviewed Last Tram at Dusk example with the saved prompt, settings and model revision.', + prompt: 'The last tram leaves at dusk, so we will walk home beside the river.', + negativePrompt: '', + example: { + mediaType: 'audio', + status: 'unverified', + modelRevision: 'f4c063ea37f262ba5e6129ebd80095a6d6a9de4d', + lockedSeed: 42, + lockedSettings: { + steps: 16, + guidanceScale: 4, + strength: 0.8, + maxSequenceLength: 512, + pagScale: 0, + pagAdaptiveScale: 0, + dtype: 'bfloat16', + resourceMode: 'expert', + quantizationMode: 'none', + autoOffload: true, + offloadMode: 'model_cpu', + audioDuration: 5, + }, + expectedOutput: { + durationSeconds: 4.949333333333334, + sampleRate: 24000, + }, + runtimeEstimate: '9.73 seconds in the saved run', + }, + requiredBackendCapabilities: [ + 'modules.Audio.Export', + 'modules.DiffusersAudio.Generate', + 'modules.DiffusersAudio.LoadPipeline', + 'modules.DiffusersRuntime.PipelineQuantizationConfigV2', + 'modules.DiffusersRuntime.DiffusersExecutionRecipe', ], - "mediaSlots": [ + mediaSlots: [ { - "id": "result", - "label": "Source and four ordered layers", - "kind": "image", - "role": "output", - "placeholder": "Result pending" - } + id: 'result', + label: 'Generated audio', + kind: 'audio', + role: 'output', + placeholder: 'Result pending', + }, ], - "recipeSummary": "Reproduce the reviewed Sunset and Peaks example with the saved prompt, settings and model revision.", - "runtimeReuseKey": "sha256:canonical-graph-v1:25bb2ac3d10b3d0f539204d2c4d3181764f192882a9c8442efb5ce54b7d8de43" - } -}, -{ - "workflowId": "Wan22Pipeline:text_to_video", - "sourceTaskTemplateId": "task-template:wan-22-a14b:text-to-video:v1", - "retainedGraphHash": "sha256:canonical-graph-v1:6921f430025f6a760f54a790517b949fc5d03c880f3c9e61eac12ae547b23cf2", - "originalReceiptSha256": "05008ca915711e27396ac9216f34931f91c5444efa2751e9fb4a26c2761a89c2", - "reviewedTemplateSha256": "2fe28c05a3adcb92031d2e5a369cf6be41990463644f08e5440bb998b32bc1fd", - "reviewedCatalogLock": { - "templateLockHash": "tpl_6e4c3186", - "galleryTemplateLockHash": "tpl_80961b58", - "promptSettingsHash": "ps_ca81bdb8" + recipeSummary: + 'Reproduce the reviewed Last Tram at Dusk example with the saved prompt, settings and model revision.', + runtimeReuseKey: 'sha256:canonical-graph-v1:2d149a078f6469b473a083b6116ef47452ae4ccc8a1ca0fc7b0ea416f5257515', }, - "promptSha256": "63b8db49c89bbe4efec541259382b051bce2632aa78fb16a8ef47a70bb130eb3", - "template": { - "id": "wan_a14b_cloudbreak_over_the_ridges", - "label": "Wan 2.2 T2V A14B — Text to video: Cloudbreak Over the Ridges", - "mode": "text_to_video", - "modelType": "Wan22Pipeline", - "intentGroup": "video", - "thumbnailVariant": "video", - "category": "video_generation", - "outputKinds": [ - "video" + { + id: 'qwen_layered_sunset_and_peaks', + label: 'Qwen Image Layered (Standard Diffusers) — Layer decomposition: Sunset and Peaks', + mode: 'layer_decomposition', + modelType: 'QwenImageLayeredPipeline', + intentGroup: 'reference_control', + thumbnailVariant: 'contactSheet', + category: 'layers', + inputBindings: [ + { + id: 'source-image', + label: 'Source image', + mediaType: 'image', + field: 'referenceImages', + origin: 'user', + requiredAt: 'workflow_start', + count: 1, + }, ], - "readinessPolicy": "runnable", - "modelArtifact": { - "source": "hub", - "value": "Wan-AI/Wan2.2-T2V-A14B-Diffusers", - "revision": "5be7df9619b54f4e2667b2755bc6a756675b5cd7" - }, - "description": "Reproduce the reviewed Cloudbreak Over the Ridges example with the saved prompt, settings and model revision.", - "prompt": "One continuous cinematic aerial shot over a real-looking highland valley just after sunrise. Dark pine-covered ridges stack into the distance above a river of low cloud. The camera glides slowly forward and slightly to the right at a constant height, with gentle parallax between the close ridge and far mountains. Starting in cool blue shadow, a narrow break in the clouds opens near the top of frame. A single warm shaft of sunlight gradually sweeps onto the middle ridge as the fog drifts left to right. Finish with the ridge crest lit, the distant summits still blue, and the same slow forward movement. Stable horizon and exposure, layered natural haze, uneven tree silhouettes, finely textured clouds, realistic scale. Landscape documentary cinematography, restrained color, no cuts.", - "negativePrompt": "", - "example": { - "mediaType": "video", - "status": "unverified", - "modelRevision": "5be7df9619b54f4e2667b2755bc6a756675b5cd7", - "lockedSeed": 42, - "lockedSettings": { - "width": 768, - "height": 512, - "steps": 30, - "guidanceScale": 3, - "strength": 0.8, - "outputType": "pil", - "maxSequenceLength": 512, - "pagScale": 3, - "pagAdaptiveScale": 0, - "dtype": "bfloat16", - "resourceMode": "expert", - "quantizationMode": "none", - "autoOffload": true, - "offloadMode": "model_cpu", - "numFrames": 81, - "fps": 24, - "guidanceScale2": 0, - "shift": 3 - }, - "retainedVideoPreview": { - "frames": 81, - "fps": 24, - "width": 768, - "height": 512, - "mediaHash": "sha256:decoded-video-framemd5:d99f2ce3a2ec3fc41fd45765e04c93ca9b8c0263d5972a086693a782fa7a3d54" - }, - "expectedOutput": { - "width": 768, - "height": 512, - "frames": 81, - "durationSeconds": 3.375 - }, - "runtimeEstimate": "337.42 seconds in the saved run" - }, - "requiredBackendCapabilities": [ - "modules.DiffusersRuntime.PipelineQuantizationConfigV2", - "modules.DiffusersRuntime.DiffusersExecutionRecipe", - "modules.Video.Export", - "modules.DiffusersVideo.Generate", - "modules.DiffusersVideo.LoadPipeline" + outputKinds: ['image', 'json'], + readinessPolicy: 'requires_input', + modelArtifact: { + source: 'hub', + value: 'Qwen/Qwen-Image-Layered', + revision: '8f0ca708dfff6ba1dd5f2d85d78f8c108a040bcf', + }, + description: 'Reproduce the reviewed Sunset and Peaks example with the saved prompt, settings and model revision.', + prompt: + 'A bold vintage screen print with a burnt orange sun behind teal mountain silhouettes, a deep blue lake, and two dark foreground rocks. Crisp overlapping vector shapes, flat paper colors, square composition.', + negativePrompt: '', + example: { + mediaType: 'image', + status: 'unverified', + modelRevision: '8f0ca708dfff6ba1dd5f2d85d78f8c108a040bcf', + lockedSeed: 42, + lockedSettings: { + width: 1024, + height: 1024, + steps: 50, + guidanceScale: 4, + strength: 0.8, + outputType: 'pil', + maxSequenceLength: 512, + pagScale: 3, + pagAdaptiveScale: 0, + dtype: 'bfloat16', + resourceMode: 'expert', + quantizationMode: 'none', + autoOffload: true, + offloadMode: 'model_cpu', + layers: 4, + }, + expectedOutput: { + width: 1024, + height: 1024, + }, + galleryExpectedOutput: { + width: 960, + height: 710, + }, + runtimeEstimate: '300.12 seconds in the saved run', + }, + requiredBackendCapabilities: [ + 'modules.DiffusersImage.LayerDecompose', + 'modules.DiffusersImage.LoadPipeline', + 'modules.DiffusersRuntime.PipelineQuantizationConfigV2', + 'modules.DiffusersRuntime.DiffusersExecutionRecipe', + 'modules.Image.Load', + 'modules.Image.Preview', ], - "mediaSlots": [ + mediaSlots: [ { - "id": "result", - "label": "Generated image", - "kind": "video", - "role": "output", - "placeholder": "Result pending" - } + id: 'result', + label: 'Source and four ordered layers', + kind: 'image', + role: 'output', + placeholder: 'Result pending', + }, ], - "recipeSummary": "Reproduce the reviewed Cloudbreak Over the Ridges example with the saved prompt, settings and model revision.", - "runtimeReuseKey": "sha256:canonical-graph-v1:6921f430025f6a760f54a790517b949fc5d03c880f3c9e61eac12ae547b23cf2" - } -}, -{ - "workflowId": "CogVideoXPipeline:text_to_video", - "sourceTaskTemplateId": "task-template:cogvideox-2b:text-to-video:v1", - "retainedGraphHash": "sha256:canonical-graph-v1:798aaa4c7c2501de15aca025081efa81d009df7977fd0fe6fb71c17f5895c105", - "originalReceiptSha256": "3aab2d19bca49f839f8316f19ea75afbe4b0e401ff5a330c16f35484f43f611a", - "reviewedTemplateSha256": "c77c843d9555524c9f9ce04c53af16c2ee6570d7ff9b72d90fba98fd1fc3d9cc", - "reviewedCatalogLock": { - "templateLockHash": "tpl_12ff3dab", - "galleryTemplateLockHash": "tpl_089d3aae", - "promptSettingsHash": "ps_f986f95b" + recipeSummary: + 'Reproduce the reviewed Sunset and Peaks example with the saved prompt, settings and model revision.', + runtimeReuseKey: 'sha256:canonical-graph-v1:25bb2ac3d10b3d0f539204d2c4d3181764f192882a9c8442efb5ce54b7d8de43', }, - "promptSha256": "08823b5d6cd6d0166e33c94e61aaccab515dece0668fcc9779c6cfb633462821", - "template": { - "id": "cogvideox_mossy_mountain_stream", - "label": "CogVideoX-2B — Text to video: Mossy Mountain Stream", - "mode": "text_to_video", - "modelType": "CogVideoXPipeline", - "intentGroup": "video", - "thumbnailVariant": "video", - "category": "video_generation", - "outputKinds": [ - "video" - ], - "readinessPolicy": "runnable", - "modelArtifact": { - "source": "hub", - "value": "zai-org/CogVideoX-2b", - "revision": "1137dacfc2c9c012bed6a0793f4ecf2ca8e7ba01" - }, - "description": "Reproduce the reviewed Mossy Mountain Stream example with the saved prompt, settings and model revision.", - "prompt": "A continuous low-angle tracking shot along a mossy woodland stream as clear water rushes between two smooth gray stones. The camera moves steadily right, keeping the stones in frame. Green ferns and dappled overcast light. Natural water movement, no cuts.", - "negativePrompt": "", - "example": { - "mediaType": "video", - "status": "unverified", - "modelRevision": "1137dacfc2c9c012bed6a0793f4ecf2ca8e7ba01", - "lockedSeed": 42, - "lockedSettings": { - "width": 720, - "height": 480, - "steps": 25, - "guidanceScale": 6, - "strength": 0.8, - "outputType": "pil", - "maxSequenceLength": 226, - "pagScale": 3, - "pagAdaptiveScale": 0, - "dtype": "float16", - "resourceMode": "expert", - "quantizationMode": "none", - "autoOffload": true, - "offloadMode": "model_cpu", - "numFrames": 25, - "fps": 8, - "guidanceScale2": 0, - "shift": 0 - }, - "retainedVideoPreview": { - "frames": 25, - "fps": 8, - "width": 720, - "height": 480, - "mediaHash": "sha256:decoded-video-framemd5:2f769ade82cbcd96481ecdc245befa8059b0f913dc215763efce775753322111" - }, - "expectedOutput": { - "width": 720, - "height": 480, - "frames": 25, - "durationSeconds": 3.125 - }, - "runtimeEstimate": "184.98 seconds in the saved run" - }, - "requiredBackendCapabilities": [ - "modules.DiffusersRuntime.PipelineQuantizationConfigV2", - "modules.DiffusersRuntime.DiffusersExecutionRecipe", - "modules.Video.Export", - "modules.DiffusersVideo.Generate", - "modules.DiffusersVideo.LoadPipeline" + { + id: 'wan_a14b_cloudbreak_over_the_ridges', + label: 'Wan 2.2 T2V A14B — Text to video: Cloudbreak Over the Ridges', + mode: 'text_to_video', + modelType: 'Wan22Pipeline', + intentGroup: 'video', + thumbnailVariant: 'video', + category: 'video_generation', + outputKinds: ['video'], + readinessPolicy: 'runnable', + modelArtifact: { + source: 'hub', + value: 'Wan-AI/Wan2.2-T2V-A14B-Diffusers', + revision: '5be7df9619b54f4e2667b2755bc6a756675b5cd7', + }, + description: + 'Reproduce the reviewed Cloudbreak Over the Ridges example with the saved prompt, settings and model revision.', + prompt: + 'One continuous cinematic aerial shot over a real-looking highland valley just after sunrise. Dark pine-covered ridges stack into the distance above a river of low cloud. The camera glides slowly forward and slightly to the right at a constant height, with gentle parallax between the close ridge and far mountains. Starting in cool blue shadow, a narrow break in the clouds opens near the top of frame. A single warm shaft of sunlight gradually sweeps onto the middle ridge as the fog drifts left to right. Finish with the ridge crest lit, the distant summits still blue, and the same slow forward movement. Stable horizon and exposure, layered natural haze, uneven tree silhouettes, finely textured clouds, realistic scale. Landscape documentary cinematography, restrained color, no cuts.', + negativePrompt: '', + example: { + mediaType: 'video', + status: 'unverified', + modelRevision: '5be7df9619b54f4e2667b2755bc6a756675b5cd7', + lockedSeed: 42, + lockedSettings: { + width: 768, + height: 512, + steps: 30, + guidanceScale: 3, + strength: 0.8, + outputType: 'pil', + maxSequenceLength: 512, + pagScale: 3, + pagAdaptiveScale: 0, + dtype: 'bfloat16', + resourceMode: 'expert', + quantizationMode: 'none', + autoOffload: true, + offloadMode: 'model_cpu', + numFrames: 81, + fps: 24, + guidanceScale2: 0, + shift: 3, + }, + retainedVideoPreview: { + frames: 81, + fps: 24, + width: 768, + height: 512, + mediaHash: 'sha256:decoded-video-framemd5:d99f2ce3a2ec3fc41fd45765e04c93ca9b8c0263d5972a086693a782fa7a3d54', + }, + expectedOutput: { + width: 768, + height: 512, + frames: 81, + durationSeconds: 3.375, + }, + runtimeEstimate: '337.42 seconds in the saved run', + }, + requiredBackendCapabilities: [ + 'modules.DiffusersRuntime.PipelineQuantizationConfigV2', + 'modules.DiffusersRuntime.DiffusersExecutionRecipe', + 'modules.Video.Export', + 'modules.DiffusersVideo.Generate', + 'modules.DiffusersVideo.LoadPipeline', ], - "mediaSlots": [ + mediaSlots: [ { - "id": "result", - "label": "Generated image", - "kind": "video", - "role": "output", - "placeholder": "Result pending" - } + id: 'result', + label: 'Generated image', + kind: 'video', + role: 'output', + placeholder: 'Result pending', + }, ], - "recipeSummary": "Reproduce the reviewed Mossy Mountain Stream example with the saved prompt, settings and model revision.", - "runtimeReuseKey": "sha256:canonical-graph-v1:798aaa4c7c2501de15aca025081efa81d009df7977fd0fe6fb71c17f5895c105" - } -}, -{ - "workflowId": "WanImage2VideoModularPipeline:image_to_video", - "sourceTaskTemplateId": "task-template:wan-flf:image-to-video:v1", - "retainedGraphHash": "sha256:canonical-graph-v1:f3e6600531ca93b1b326cbfa5e3b0b853b4015ccb5c163302c003b81bc4897a6", - "originalReceiptSha256": "63d626c3c97cd12016b58a9fba71739eeea0459ad300383d5b4f43aa0775740a", - "reviewedTemplateSha256": "719322718cef9254b24004759f2eac08a4302ea27c86cbe538782207d29389f6", - "reviewedCatalogLock": { - "templateLockHash": "tpl_b13aec66", - "galleryTemplateLockHash": "tpl_de5816ae", - "promptSettingsHash": "ps_b86813d0" + recipeSummary: + 'Reproduce the reviewed Cloudbreak Over the Ridges example with the saved prompt, settings and model revision.', + runtimeReuseKey: 'sha256:canonical-graph-v1:6921f430025f6a760f54a790517b949fc5d03c880f3c9e61eac12ae547b23cf2', }, - "promptSha256": "d9311581aed6eb088806830eb7dcf320b7d8650e06232f9794d9944acbb0fa1d", - "inputSha256": "6d2c561cf33919ae42e773d95a0232799da3f2b92a23a94dad80902cfb73527a", - "inputLocatorSha256": "160363900dea249d2053d49da2b8bb3c801a34ab264d49f7b16098c5a75938a5", - "lastFrameSha256": "191b023efb43a42288799877db722b9a2608d2970740246322ef38cc7c68c590", - "template": { - "id": "wan_flf_blue_hour_at_the_tram_shelter", - "label": "Wan First/Last Frame — Image to video: Blue Hour at the Tram Shelter", - "mode": "image_to_video", - "modelType": "WanImage2VideoModularPipeline", - "intentGroup": "video", - "thumbnailVariant": "video", - "category": "video_generation", - "inputBindings": [ + { + id: 'cogvideox_mossy_mountain_stream', + label: 'CogVideoX-2B — Text to video: Mossy Mountain Stream', + mode: 'text_to_video', + modelType: 'CogVideoXPipeline', + intentGroup: 'video', + thumbnailVariant: 'video', + category: 'video_generation', + outputKinds: ['video'], + readinessPolicy: 'runnable', + modelArtifact: { + source: 'hub', + value: 'zai-org/CogVideoX-2b', + revision: '1137dacfc2c9c012bed6a0793f4ecf2ca8e7ba01', + }, + description: + 'Reproduce the reviewed Mossy Mountain Stream example with the saved prompt, settings and model revision.', + prompt: + 'A continuous low-angle tracking shot along a mossy woodland stream as clear water rushes between two smooth gray stones. The camera moves steadily right, keeping the stones in frame. Green ferns and dappled overcast light. Natural water movement, no cuts.', + negativePrompt: '', + example: { + mediaType: 'video', + status: 'unverified', + modelRevision: '1137dacfc2c9c012bed6a0793f4ecf2ca8e7ba01', + lockedSeed: 42, + lockedSettings: { + width: 720, + height: 480, + steps: 25, + guidanceScale: 6, + strength: 0.8, + outputType: 'pil', + maxSequenceLength: 226, + pagScale: 3, + pagAdaptiveScale: 0, + dtype: 'float16', + resourceMode: 'expert', + quantizationMode: 'none', + autoOffload: true, + offloadMode: 'model_cpu', + numFrames: 25, + fps: 8, + guidanceScale2: 0, + shift: 0, + }, + retainedVideoPreview: { + frames: 25, + fps: 8, + width: 720, + height: 480, + mediaHash: 'sha256:decoded-video-framemd5:2f769ade82cbcd96481ecdc245befa8059b0f913dc215763efce775753322111', + }, + expectedOutput: { + width: 720, + height: 480, + frames: 25, + durationSeconds: 3.125, + }, + runtimeEstimate: '184.98 seconds in the saved run', + }, + requiredBackendCapabilities: [ + 'modules.DiffusersRuntime.PipelineQuantizationConfigV2', + 'modules.DiffusersRuntime.DiffusersExecutionRecipe', + 'modules.Video.Export', + 'modules.DiffusersVideo.Generate', + 'modules.DiffusersVideo.LoadPipeline', + ], + mediaSlots: [ { - "id": "ordered-frames", - "label": "First and last frames", - "mediaType": "image", - "field": "referenceImages", - "origin": "user", - "requiredAt": "workflow_start", - "count": 2 - } + id: 'result', + label: 'Generated image', + kind: 'video', + role: 'output', + placeholder: 'Result pending', + }, ], - "outputKinds": [ - "video" + recipeSummary: + 'Reproduce the reviewed Mossy Mountain Stream example with the saved prompt, settings and model revision.', + runtimeReuseKey: 'sha256:canonical-graph-v1:798aaa4c7c2501de15aca025081efa81d009df7977fd0fe6fb71c17f5895c105', + }, + { + id: 'wan_flf_blue_hour_at_the_tram_shelter', + label: 'Wan First/Last Frame — Image to video: Blue Hour at the Tram Shelter', + mode: 'image_to_video', + modelType: 'WanImage2VideoModularPipeline', + intentGroup: 'video', + thumbnailVariant: 'video', + category: 'video_generation', + inputBindings: [ + { + id: 'ordered-frames', + label: 'First and last frames', + mediaType: 'image', + field: 'referenceImages', + origin: 'user', + requiredAt: 'workflow_start', + count: 2, + }, ], - "readinessPolicy": "requires_input", - "modelArtifact": { - "source": "hub", - "value": "Wan-AI/Wan2.1-FLF2V-14B-720P-diffusers", - "revision": "17c30769b1e0b5dcaa1799b117bf20a9c31f59d7" - }, - "description": "Reproduce the reviewed Blue Hour at the Tram Shelter example with the saved prompt, settings and model revision.", - "prompt": "At blue hour, a seated traveler holds a single red umbrella beneath an amber-lit tram shelter. The camera makes a small smooth forward dolly toward the bench, keeping the umbrella and whole traveler in view. The rails recede to the left and the shelter posts remain upright. Fine drizzle passes through the light, and water glistens on the platform. The traveler keeps a relaxed seated pose and the red umbrella trembles slightly. The shot settles gently on a closer view of the same bench and umbrella.", - "negativePrompt": "letterbox bars, black borders, camera shake, motion blur, jump cuts, abrupt zoom, viewpoint changes, deforming shelter, distorted umbrella, warped hands, extra limbs", - "example": { - "mediaType": "video", - "status": "unverified", - "modelRevision": "17c30769b1e0b5dcaa1799b117bf20a9c31f59d7", - "lockedSeed": 42, - "lockedSettings": { - "width": 768, - "height": 512, - "steps": 30, - "guidanceScale": 5.5, - "strength": 0.8, - "outputType": "pil", - "maxSequenceLength": 512, - "pagScale": 0, - "pagAdaptiveScale": 0, - "dtype": "bfloat16", - "resourceMode": "expert", - "quantizationMode": "none", - "autoOffload": true, - "offloadMode": "model_cpu", - "numFrames": 81, - "fps": 24, - "guidanceScale2": 0, - "shift": 3 - }, - "retainedVideoPreview": { - "frames": 81, - "fps": 24, - "width": 768, - "height": 512, - "mediaHash": "sha256:decoded-video-framemd5:17db687780a14782084a7d32b484d87c00074ebe1043de65fd6ce046b4f23918" - }, - "expectedOutput": { - "width": 768, - "height": 512, - "frames": 81, - "durationSeconds": 3.375 - }, - "runtimeEstimate": "299.82 seconds in the saved run" - }, - "requiredBackendCapabilities": [ - "modules.ModularDiffusers.DecodeLatents", - "modules.ModularDiffusers.Denoise", - "modules.ModularDiffusers.ImageEmbeddings", - "modules.ModularDiffusers.ImageEncode", - "modules.Image.Load", - "modules.ModularDiffusers.ModelsLoader", - "modules.ModularDiffusers.EncodePrompt", - "modules.Video.Export" + outputKinds: ['video'], + readinessPolicy: 'requires_input', + modelArtifact: { + source: 'hub', + value: 'Wan-AI/Wan2.1-FLF2V-14B-720P-diffusers', + revision: '17c30769b1e0b5dcaa1799b117bf20a9c31f59d7', + }, + description: + 'Reproduce the reviewed Blue Hour at the Tram Shelter example with the saved prompt, settings and model revision.', + prompt: + 'At blue hour, a seated traveler holds a single red umbrella beneath an amber-lit tram shelter. The camera makes a small smooth forward dolly toward the bench, keeping the umbrella and whole traveler in view. The rails recede to the left and the shelter posts remain upright. Fine drizzle passes through the light, and water glistens on the platform. The traveler keeps a relaxed seated pose and the red umbrella trembles slightly. The shot settles gently on a closer view of the same bench and umbrella.', + negativePrompt: + 'letterbox bars, black borders, camera shake, motion blur, jump cuts, abrupt zoom, viewpoint changes, deforming shelter, distorted umbrella, warped hands, extra limbs', + example: { + mediaType: 'video', + status: 'unverified', + modelRevision: '17c30769b1e0b5dcaa1799b117bf20a9c31f59d7', + lockedSeed: 42, + lockedSettings: { + width: 768, + height: 512, + steps: 30, + guidanceScale: 5.5, + strength: 0.8, + outputType: 'pil', + maxSequenceLength: 512, + pagScale: 0, + pagAdaptiveScale: 0, + dtype: 'bfloat16', + resourceMode: 'expert', + quantizationMode: 'none', + autoOffload: true, + offloadMode: 'model_cpu', + numFrames: 81, + fps: 24, + guidanceScale2: 0, + shift: 3, + }, + retainedVideoPreview: { + frames: 81, + fps: 24, + width: 768, + height: 512, + mediaHash: 'sha256:decoded-video-framemd5:17db687780a14782084a7d32b484d87c00074ebe1043de65fd6ce046b4f23918', + }, + expectedOutput: { + width: 768, + height: 512, + frames: 81, + durationSeconds: 3.375, + }, + runtimeEstimate: '299.82 seconds in the saved run', + }, + requiredBackendCapabilities: [ + 'modules.ModularDiffusers.DecodeLatents', + 'modules.ModularDiffusers.Denoise', + 'modules.ModularDiffusers.ImageEmbeddings', + 'modules.ModularDiffusers.ImageEncode', + 'modules.Image.Load', + 'modules.ModularDiffusers.ModelsLoader', + 'modules.ModularDiffusers.EncodePrompt', + 'modules.Video.Export', ], - "mediaSlots": [ + mediaSlots: [ { - "id": "result", - "label": "Generated image", - "kind": "video", - "role": "output", - "placeholder": "Result pending" - } + id: 'result', + label: 'Generated image', + kind: 'video', + role: 'output', + placeholder: 'Result pending', + }, ], - "recipeSummary": "Reproduce the reviewed Blue Hour at the Tram Shelter example with the saved prompt, settings and model revision.", - "runtimeReuseKey": "sha256:canonical-graph-v1:f3e6600531ca93b1b326cbfa5e3b0b853b4015ccb5c163302c003b81bc4897a6" - } -}, -{ - "workflowId": "CogVideoXVideoToVideoPipeline:video_to_video", - "sourceTaskTemplateId": "task-template:cogvideox-2b-video-to-video:video-to-video:v1", - "retainedGraphHash": "sha256:canonical-graph-v1:9536733d2657f50f2530e066706a283d282c5dbd7989f70e563942b748489f2d", - "originalReceiptSha256": "c4396b6f2b6b01fcdbcb5d7f370b6284be78d1979e4665a243c1e08193776e08", - "reviewedTemplateSha256": "d74131d9a94ae6422f0824a9948e9ee157fb765058f8d45e515fda25a93c25c6", - "reviewedCatalogLock": { - "templateLockHash": "tpl_305c9ad7", - "galleryTemplateLockHash": "tpl_aca915d8", - "promptSettingsHash": "ps_44a08b73" + recipeSummary: + 'Reproduce the reviewed Blue Hour at the Tram Shelter example with the saved prompt, settings and model revision.', + runtimeReuseKey: 'sha256:canonical-graph-v1:f3e6600531ca93b1b326cbfa5e3b0b853b4015ccb5c163302c003b81bc4897a6', }, - "promptSha256": "d6dffbc00ab43ae375ebadab9cb8e7c7da98805ae41099301b26774022d22597", - "inputSha256": "0737fe1e6b127fd4f5f66043b8911e5c7e380e60d50eab7e6bc9ba62e830b9dd", - "inputLocatorSha256": "24cb984db9137c26395f2255fba7bf647016637744b7e301d4e8fe7d8d63bff3", - "template": { - "id": "cogvideox_red_tram_model_railway", - "label": "CogVideoX-2B Video-to-Video — Video to video: Red Tram on the Model Railway", - "mode": "video_to_video", - "modelType": "CogVideoXVideoToVideoPipeline", - "intentGroup": "video", - "thumbnailVariant": "video", - "category": "video_generation", - "inputBindings": [ + { + id: 'cogvideox_red_tram_model_railway', + label: 'CogVideoX-2B Video-to-Video — Video to video: Red Tram on the Model Railway', + mode: 'video_to_video', + modelType: 'CogVideoXVideoToVideoPipeline', + intentGroup: 'video', + thumbnailVariant: 'video', + category: 'video_generation', + inputBindings: [ { - "id": "source-video", - "label": "Source video", - "mediaType": "video", - "field": "sourceVideo", - "origin": "user", - "requiredAt": "workflow_start", - "count": 1 - } + id: 'source-video', + label: 'Source video', + mediaType: 'video', + field: 'sourceVideo', + origin: 'user', + requiredAt: 'workflow_start', + count: 1, + }, ], - "outputKinds": [ - "video" + outputKinds: ['video'], + readinessPolicy: 'requires_input', + modelArtifact: { + source: 'hub', + value: 'zai-org/CogVideoX-2b', + revision: '1137dacfc2c9c012bed6a0793f4ecf2ca8e7ba01', + }, + description: + 'Reproduce the reviewed Red Tram on the Model Railway example with the saved prompt, settings and model revision.', + prompt: + 'Side tracking shot of a red hand-painted porcelain tram traveling left to right along the same route as the source clip. Keep one tram, its silhouette, window placement, framing, direction, and even speed. Give the tram a fine glazed ceramic finish with tiny soft reflections. Miniature snow-covered houses and an ivory station platform pass steadily behind it. Long soft late-afternoon light comes from screen left. Consistent color and lighting throughout a single continuous take.', + negativePrompt: '', + example: { + mediaType: 'video', + status: 'unverified', + modelRevision: '1137dacfc2c9c012bed6a0793f4ecf2ca8e7ba01', + lockedSeed: 42, + lockedSettings: { + width: 720, + height: 480, + steps: 25, + guidanceScale: 6, + strength: 0.8, + outputType: 'pil', + maxSequenceLength: 226, + pagScale: 3, + pagAdaptiveScale: 0, + dtype: 'float16', + resourceMode: 'expert', + quantizationMode: 'none', + autoOffload: true, + offloadMode: 'model_cpu', + numFrames: 25, + fps: 8, + guidanceScale2: 0, + shift: 0, + }, + retainedVideoPreview: { + frames: 25, + fps: 8, + width: 720, + height: 480, + mediaHash: 'sha256:decoded-video-framemd5:a7b338af1009ea404ed9dfac3c907b8e04e25d78fb69c1ceb602ef0ab646b7cd', + }, + expectedOutput: { + width: 720, + height: 480, + frames: 25, + durationSeconds: 3.125, + }, + runtimeEstimate: '388.11 seconds in the saved run', + }, + requiredBackendCapabilities: [ + 'modules.DiffusersRuntime.PipelineQuantizationConfigV2', + 'modules.DiffusersRuntime.DiffusersExecutionRecipe', + 'modules.Video.Load', + 'modules.VideoConditioning.Normalize', + 'modules.Video.Export', + 'modules.DiffusersVideo.Generate', + 'modules.DiffusersVideo.LoadPipeline', ], - "readinessPolicy": "requires_input", - "modelArtifact": { - "source": "hub", - "value": "zai-org/CogVideoX-2b", - "revision": "1137dacfc2c9c012bed6a0793f4ecf2ca8e7ba01" - }, - "description": "Reproduce the reviewed Red Tram on the Model Railway example with the saved prompt, settings and model revision.", - "prompt": "Side tracking shot of a red hand-painted porcelain tram traveling left to right along the same route as the source clip. Keep one tram, its silhouette, window placement, framing, direction, and even speed. Give the tram a fine glazed ceramic finish with tiny soft reflections. Miniature snow-covered houses and an ivory station platform pass steadily behind it. Long soft late-afternoon light comes from screen left. Consistent color and lighting throughout a single continuous take.", - "negativePrompt": "", - "example": { - "mediaType": "video", - "status": "unverified", - "modelRevision": "1137dacfc2c9c012bed6a0793f4ecf2ca8e7ba01", - "lockedSeed": 42, - "lockedSettings": { - "width": 720, - "height": 480, - "steps": 25, - "guidanceScale": 6, - "strength": 0.8, - "outputType": "pil", - "maxSequenceLength": 226, - "pagScale": 3, - "pagAdaptiveScale": 0, - "dtype": "float16", - "resourceMode": "expert", - "quantizationMode": "none", - "autoOffload": true, - "offloadMode": "model_cpu", - "numFrames": 25, - "fps": 8, - "guidanceScale2": 0, - "shift": 0 - }, - "retainedVideoPreview": { - "frames": 25, - "fps": 8, - "width": 720, - "height": 480, - "mediaHash": "sha256:decoded-video-framemd5:a7b338af1009ea404ed9dfac3c907b8e04e25d78fb69c1ceb602ef0ab646b7cd" - }, - "expectedOutput": { - "width": 720, - "height": 480, - "frames": 25, - "durationSeconds": 3.125 - }, - "runtimeEstimate": "388.11 seconds in the saved run" - }, - "requiredBackendCapabilities": [ - "modules.DiffusersRuntime.PipelineQuantizationConfigV2", - "modules.DiffusersRuntime.DiffusersExecutionRecipe", - "modules.Video.Load", - "modules.VideoConditioning.Normalize", - "modules.Video.Export", - "modules.DiffusersVideo.Generate", - "modules.DiffusersVideo.LoadPipeline" + mediaSlots: [ + { + id: 'before', + label: 'Source video', + kind: 'comparison_before', + role: 'before', + placeholder: 'Source pending', + }, + { + id: 'after', + label: 'Generated video', + kind: 'comparison_after', + role: 'after', + placeholder: 'Preview pending', + }, ], - "mediaSlots": [ + recipeSummary: + 'Reproduce the reviewed Red Tram on the Model Railway example with the saved prompt, settings and model revision.', + runtimeReuseKey: 'sha256:canonical-graph-v1:9536733d2657f50f2530e066706a283d282c5dbd7989f70e563942b748489f2d', + }, + { + id: 'sana_tidal_pool_on_black_basalt', + label: 'Sana 0.6B — Text to image: Tidal Pool on Black Basalt', + mode: 'text_to_image', + modelType: 'SanaPipeline', + intentGroup: 'generate_image', + category: 'concept', + outputKinds: ['image'], + readinessPolicy: 'runnable', + modelArtifact: { + source: 'hub', + value: 'Efficient-Large-Model/Sana_600M_1024px_diffusers', + revision: '28f3af7689de15f3883d5863059a2fca0aa9b829', + }, + description: + 'Reproduce the reviewed Tidal Pool on Black Basalt example with the saved prompt, settings and model revision.', + prompt: + 'Fine-art aerial photograph looking straight down at a secluded round turquoise tidal pool carved into a black basalt shore. A single slender white ribbon of sea foam follows the rock lip on one side. Weathered charcoal hexagonal rock texture frames the clear water, with a shallow amber rock shelf visible beneath it. The shore fills the square image edge to edge. Soft early morning light and restrained natural color. Crisp photograph from a low flying drone.', + negativePrompt: '', + example: { + mediaType: 'image', + status: 'unverified', + modelRevision: '28f3af7689de15f3883d5863059a2fca0aa9b829', + lockedSeed: 42, + lockedSettings: { + width: 1024, + height: 1024, + steps: 20, + guidanceScale: 4.5, + strength: 0.8, + outputType: 'pil', + maxSequenceLength: 300, + pagScale: 3, + pagAdaptiveScale: 0, + dtype: 'float16', + resourceMode: 'expert', + quantizationMode: 'none', + autoOffload: true, + offloadMode: 'model_cpu', + }, + expectedOutput: { + width: 1024, + height: 1024, + }, + runtimeEstimate: '14.62 seconds in the saved run', + }, + requiredBackendCapabilities: [ + 'modules.DiffusersImage.Generate', + 'modules.DiffusersImage.LoadPipeline', + 'modules.DiffusersRuntime.PipelineQuantizationConfigV2', + 'modules.DiffusersRuntime.DiffusersExecutionRecipe', + 'modules.Image.Preview', + ], + mediaSlots: [ { - "id": "before", - "label": "Source video", - "kind": "comparison_before", - "role": "before", - "placeholder": "Source pending" + id: 'result', + label: 'Generated image', + kind: 'image', + role: 'output', + placeholder: 'Result pending', }, + ], + recipeSummary: + 'Reproduce the reviewed Tidal Pool on Black Basalt example with the saved prompt, settings and model revision.', + runtimeReuseKey: 'sha256:canonical-graph-v1:4c0dd2f1d20300d93bac5d00a84eb057a7ffc5c64cafe9d4727a38d6852b7aab', + }, + { + id: 'joyimage_herbarium_rainy_porthole', + label: 'JoyAI Image Edit — Text to image: Herbarium beside a Rainy Porthole', + mode: 'text_to_image', + modelType: 'JoyImageEditPipeline', + intentGroup: 'generate_image', + category: 'concept', + outputKinds: ['image'], + readinessPolicy: 'runnable', + modelArtifact: { + source: 'hub', + value: 'jdopensource/JoyAI-Image-Edit-Diffusers', + revision: '4b41fb25d961f37668750178ccbb380da326201c', + }, + description: + 'Reproduce the reviewed Herbarium beside a Rainy Porthole example with the saved prompt, settings and model revision.', + prompt: + 'Editorial still life inside a coastal botanical archive at dusk. A round brass porthole with rain beading on the glass occupies the upper left. On a dark walnut workbench in the foreground, an open cream-paper herbarium book displays two delicate pressed fern fronds with fine branching veins, held by thin linen strips. Stacked paper folders and a convex magnifying lens sit to the right. A small rectangular brass label on the book reads exactly HERBARIUM 07. Cool blue rain light falls from the porthole and a warm shaded task lamp pools on the paper. Three-quarter eye-level composition, realistic optical glass, ink marks and paper texture, sharp focal detail and calm subtle depth of field.', + negativePrompt: '', + example: { + mediaType: 'image', + status: 'unverified', + modelRevision: '4b41fb25d961f37668750178ccbb380da326201c', + lockedSeed: 42, + lockedSettings: { + width: 1024, + height: 1024, + steps: 40, + guidanceScale: 4, + strength: 0.8, + outputType: 'pil', + maxSequenceLength: 2048, + pagScale: 3, + pagAdaptiveScale: 0, + dtype: 'bfloat16', + resourceMode: 'expert', + quantizationMode: 'none', + autoOffload: true, + offloadMode: 'model_cpu', + }, + expectedOutput: { + width: 1024, + height: 1024, + }, + runtimeEstimate: '1288.83 seconds in the saved run', + }, + requiredBackendCapabilities: [ + 'modules.DiffusersImage.Generate', + 'modules.DiffusersImage.LoadPipeline', + 'modules.DiffusersRuntime.PipelineQuantizationConfigV2', + 'modules.DiffusersRuntime.DiffusersExecutionRecipe', + 'modules.Image.Preview', + ], + mediaSlots: [ { - "id": "after", - "label": "Generated video", - "kind": "comparison_after", - "role": "after", - "placeholder": "Preview pending" - } + id: 'result', + label: 'Generated image', + kind: 'image', + role: 'output', + placeholder: 'Result pending', + }, ], - "recipeSummary": "Reproduce the reviewed Red Tram on the Model Railway example with the saved prompt, settings and model revision.", - "runtimeReuseKey": "sha256:canonical-graph-v1:9536733d2657f50f2530e066706a283d282c5dbd7989f70e563942b748489f2d" - } -}, + recipeSummary: + 'Reproduce the reviewed Herbarium beside a Rainy Porthole example with the saved prompt, settings and model revision.', + runtimeReuseKey: 'sha256:canonical-graph-v1:764bcfbc5d06837477b63647a4723da8dfce96675828d2f038909bed22b155fd', + }, + { + id: 'longcat_florist_end_of_lane', + label: 'LongCat Image 6B — Text to image: Florist at the End of the Lane', + mode: 'text_to_image', + modelType: 'LongCatImagePipeline', + intentGroup: 'generate_image', + category: 'concept', + outputKinds: ['image'], + readinessPolicy: 'runnable', + modelArtifact: { + source: 'hub', + value: 'meituan-longcat/LongCat-Image', + revision: 'd2ea50b79a930074c37b9b97ce45e3b2ea8cf4d8', + }, + description: + 'Reproduce the reviewed Florist at the End of the Lane example with the saved prompt, settings and model revision.', + prompt: + 'Editorial photograph of a florist closing a tiny flower shop on a rain-washed old-town lane just after sunset. In the right half, a woman in a forest-green apron works at the open counter, both hands naturally arranging one small wrapped bouquet. On a dry stone step in the left foreground sits one ginger tabby cat with two clearly visible front paws and a relaxed tail curled around its side. Behind them the narrow cobbled lane has warm shop windows, weathered plaster, flower buckets and one softly blurred pedestrian in the far distance. The shop interior is warm amber and the shaded lane is soft blue. Eye-level three-quarter framing, moderate depth of field, believable anatomy, natural posture, tactile silk paper, realistic wet cobbles and clean highlights.', + negativePrompt: '', + example: { + mediaType: 'image', + status: 'unverified', + modelRevision: 'd2ea50b79a930074c37b9b97ce45e3b2ea8cf4d8', + lockedSeed: 42, + lockedSettings: { + width: 1024, + height: 1024, + steps: 50, + guidanceScale: 4, + strength: 0.8, + outputType: 'pil', + maxSequenceLength: 512, + pagScale: 3, + pagAdaptiveScale: 0, + dtype: 'bfloat16', + resourceMode: 'expert', + quantizationMode: 'none', + autoOffload: true, + offloadMode: 'model_cpu', + }, + expectedOutput: { + width: 1024, + height: 1024, + }, + runtimeEstimate: '798.59 seconds in the saved run', + }, + requiredBackendCapabilities: [ + 'modules.DiffusersImage.Generate', + 'modules.DiffusersImage.LoadPipeline', + 'modules.DiffusersRuntime.PipelineQuantizationConfigV2', + 'modules.DiffusersRuntime.DiffusersExecutionRecipe', + 'modules.Image.Preview', + ], + mediaSlots: [ + { + id: 'result', + label: 'Generated image', + kind: 'image', + role: 'output', + placeholder: 'Result pending', + }, + ], + recipeSummary: + 'Reproduce the reviewed Florist at the End of the Lane example with the saved prompt, settings and model revision.', + runtimeReuseKey: 'sha256:canonical-graph-v1:b412040d8f6595ffa0093fa82dce6f4993cf6d8db99730610e859ae8badab868', + }, ]; diff --git a/src/studio/retainedGalleryTemplates.ts b/src/studio/retainedGalleryTemplates.ts index 4e728ea4..6755266f 100644 --- a/src/studio/retainedGalleryTemplates.ts +++ b/src/studio/retainedGalleryTemplates.ts @@ -1,5 +1,5 @@ import type { StudioTemplate } from './types'; -import { APPROVED_RETAINED_BATCH } from './retainedGalleryApprovedBatch'; +import { APPROVED_RETAINED_TEMPLATES } from './retainedGalleryApprovedBatch'; export type RetainedGalleryRecipe = { readonly workflowId: string; @@ -22,614 +22,528 @@ export type RetainedGalleryRecipe = { | { readonly promptSha256: string } ); -const syntheticGradientSha256 = '626815c78eaad46cad849732d1598b45b91700ce046c1ee3f4e2444db80aa32a'; -const marigoldRevision = '04a73502f7fd8fc5e59947b9df3b2266d71d6849'; -const smollm2Revision = '12fd25f77366fa6b3b4b768ec3050bf629380bac'; -const spandrelRevision = '42efb9c3eeed1f5c0c8a626cf5f7f4481dfbb094'; - -/** - * Reviewed catalog recipes tied to saved runs. Canonical workflow generation - * continues to seed their task contracts with the standalone defaults. - */ -export const RETAINED_GALLERY_TEMPLATES = [ - ...APPROVED_RETAINED_BATCH, +export const LEGACY_RETAINED_GALLERY_TEMPLATES: StudioTemplate[] = [ { - workflowId: 'MarigoldDepthPipeline:depth_estimation', - sourceTaskTemplateId: 'task-template:marigold-depth-lcm-v1-0:depth-estimation:v1', - retainedGraphHash: 'sha256:canonical-graph-v1:ee35e710ecaf34a8a57d93fbefeea28b6a3795027ea8a3a872178501e852e06a', - originalReceiptSha256: '1c358ef18df00556b704f826c706674d5ddbd89d8ad091478da862b8ad87c6ea', - reviewedTemplateSha256: '4e43813ae0e4b664e4982545884644ec097eb0cc25e8f13ff549ac24c2f49ce1', - reviewedCatalogLock: { - templateLockHash: 'tpl_bf1d929b', - galleryTemplateLockHash: 'tpl_611e9ad6', - promptSettingsHash: 'ps_d0a17851', - }, - inputSha256: syntheticGradientSha256, - inputFileName: 'marigold-depth-source.png', - template: { - id: 'marigold_depth_synthetic_ramp', - label: 'Marigold Depth LCM — Synthetic Ramp', - modelDisplayName: 'Marigold Depth LCM', - mode: 'depth_estimation', - modelType: 'MarigoldDepthPipeline', - intentGroup: 'utility', - category: 'reference', - tags: ['depth', 'technical preview'], - difficulty: 'starter', - readinessPolicy: 'requires_input', - outputKinds: ['image'], - thumbnailVariant: 'compareSlider', - inputBindings: [ - { - id: 'synthetic-ramp', - label: 'Synthetic ramp', - mediaType: 'image', - origin: 'user', - requiredAt: 'workflow_start', - field: 'referenceImages', - count: 1, - }, - ], - mediaSlots: [ - { - id: 'before', - label: 'Source ramp', - kind: 'comparison_before', - role: 'before', - placeholder: 'Source pending', - }, - { - id: 'after', - label: 'Depth preview', - kind: 'comparison_after', - role: 'after', - placeholder: 'Preview pending', - }, - ], - requiredBackendCapabilities: [ - 'modules.DiffusersRuntime.PipelineQuantizationConfigV2', - 'modules.DiffusersRuntime.DiffusersExecutionRecipe', - 'modules.DiffusersImage.LoadPipeline', - 'modules.Image.Load', - 'modules.DiffusersImage.PredictMap', - 'modules.Image.Preview', - ], - modelArtifact: { source: 'hub', value: 'prs-eth/marigold-depth-lcm-v1-0', revision: marigoldRevision }, - runtimeReuseKey: 'MarigoldDepthPipeline:float32:none:resident:none', - description: 'Run one-step relative depth estimation and compare the input ramp with its grayscale preview.', - recipeSummary: 'Compare a source image with a one-step relative-depth preview.', - prompt: '', - example: { + id: 'marigold_depth_synthetic_ramp', + label: 'Marigold Depth LCM — Synthetic Ramp', + modelDisplayName: 'Marigold Depth LCM', + mode: 'depth_estimation', + modelType: 'MarigoldDepthPipeline', + intentGroup: 'utility', + category: 'reference', + tags: ['depth', 'technical preview'], + difficulty: 'starter', + readinessPolicy: 'requires_input', + outputKinds: ['image'], + thumbnailVariant: 'compareSlider', + inputBindings: [ + { + id: 'synthetic-ramp', + label: 'Synthetic ramp', mediaType: 'image', - status: 'unverified', - modelRevision: marigoldRevision, - lockedSeed: 42, - lockedSettings: { - width: 768, - height: 768, - steps: 1, - guidanceScale: 0, - dtype: 'float32', - resourceMode: 'expert', - quantizationMode: 'none', - autoOffload: false, - offloadMode: 'none', - }, - expectedOutput: { width: 64, height: 48 }, - runtimeEstimate: '11.73 seconds in the retained Windows CUDA run', - notes: 'The synthetic ramp demonstrates delivery of the preview. Depth accuracy remains unmeasured.', + origin: 'user', + requiredAt: 'workflow_start', + field: 'referenceImages', + count: 1, + }, + ], + mediaSlots: [ + { + id: 'before', + label: 'Source ramp', + kind: 'comparison_before', + role: 'before', + placeholder: 'Source pending', + }, + { + id: 'after', + label: 'Depth preview', + kind: 'comparison_after', + role: 'after', + placeholder: 'Preview pending', }, + ], + requiredBackendCapabilities: [ + 'modules.DiffusersRuntime.PipelineQuantizationConfigV2', + 'modules.DiffusersRuntime.DiffusersExecutionRecipe', + 'modules.DiffusersImage.LoadPipeline', + 'modules.Image.Load', + 'modules.DiffusersImage.PredictMap', + 'modules.Image.Preview', + ], + modelArtifact: { + source: 'hub', + value: 'prs-eth/marigold-depth-lcm-v1-0', + revision: '04a73502f7fd8fc5e59947b9df3b2266d71d6849', + }, + runtimeReuseKey: 'MarigoldDepthPipeline:float32:none:resident:none', + description: 'Run one-step relative depth estimation and compare the input ramp with its grayscale preview.', + recipeSummary: 'Compare a source image with a one-step relative-depth preview.', + prompt: '', + example: { + mediaType: 'image', + status: 'unverified', + modelRevision: '04a73502f7fd8fc5e59947b9df3b2266d71d6849', + lockedSeed: 42, + lockedSettings: { + width: 768, + height: 768, + steps: 1, + guidanceScale: 0, + dtype: 'float32', + resourceMode: 'expert', + quantizationMode: 'none', + autoOffload: false, + offloadMode: 'none', + }, + expectedOutput: { + width: 64, + height: 48, + }, + runtimeEstimate: '11.73 seconds in the retained Windows CUDA run', + notes: 'The synthetic ramp demonstrates delivery of the preview. Depth accuracy remains unmeasured.', }, }, { - workflowId: 'SpandrelImageUpscale:image_upscale', - sourceTaskTemplateId: 'task-template:real-esrgan-x2-image-upscale:v1', - retainedGraphHash: 'sha256:canonical-graph-v1:700b85c678b691dee3c8ad1e2ea6d4cc0017d1b12d47704e45e913e17f929451', - originalReceiptSha256: '49336b0f76e158b3be514275763e8b2c50f00c048852a34cff43167687503f15', - reviewedTemplateSha256: '8de95b8b13a0636a37a7db672fbced2199e00e6719517c282f68f685bc5fd482', - reviewedCatalogLock: { - templateLockHash: 'tpl_5d99038b', - galleryTemplateLockHash: 'tpl_43c3b587', - promptSettingsHash: 'ps_e7556958', + id: 'spandrel_x2_synthetic_gradient', + label: 'Spandrel Real-ESRGAN 2× — Synthetic Gradient', + modelDisplayName: 'Real-ESRGAN 2×', + mode: 'image_upscale', + modelType: 'SpandrelImageUpscale', + intentGroup: 'utility', + category: 'upscale', + tags: ['image upscale', 'technical preview'], + difficulty: 'starter', + readinessPolicy: 'requires_input', + outputKinds: ['image'], + thumbnailVariant: 'compareSlider', + inputBindings: [ + { + id: 'source-image', + label: 'Source image', + mediaType: 'image', + origin: 'user', + requiredAt: 'workflow_start', + field: 'referenceImages', + count: 1, + }, + ], + mediaSlots: [ + { + id: 'before', + label: 'Source gradient', + kind: 'comparison_before', + role: 'before', + placeholder: 'Source pending', + }, + { + id: 'after', + label: 'Upscaled gradient', + kind: 'comparison_after', + role: 'after', + placeholder: 'Preview pending', + }, + ], + requiredBackendCapabilities: ['modules.Image.Load', 'modules.Spandrel.Upscaler', 'modules.Image.Preview'], + modelArtifact: { + source: 'hub', + value: 'nateraw/real-esrgan', + revision: '42efb9c3eeed1f5c0c8a626cf5f7f4481dfbb094', + sha256: '49fafd45f8fd7aa8d31ab2a22d14d91b536c34494a5cfe31eb5d89c2fa266abb', + byteSize: 67061725, + license: 'bsd-3-clause', }, - inputSha256: syntheticGradientSha256, - inputFileName: 'real-esrgan-x2-smoke-source.png', - template: { - id: 'spandrel_x2_synthetic_gradient', - label: 'Spandrel Real-ESRGAN 2× — Synthetic Gradient', - modelDisplayName: 'Real-ESRGAN 2×', - mode: 'image_upscale', - modelType: 'SpandrelImageUpscale', - intentGroup: 'utility', - category: 'upscale', - tags: ['image upscale', 'technical preview'], - difficulty: 'starter', - readinessPolicy: 'requires_input', - outputKinds: ['image'], - thumbnailVariant: 'compareSlider', - inputBindings: [ - { - id: 'source-image', - label: 'Source image', - mediaType: 'image', - origin: 'user', - requiredAt: 'workflow_start', - field: 'referenceImages', - count: 1, - }, - ], - mediaSlots: [ - { - id: 'before', - label: 'Source gradient', - kind: 'comparison_before', - role: 'before', - placeholder: 'Source pending', - }, - { - id: 'after', - label: 'Upscaled gradient', - kind: 'comparison_after', - role: 'after', - placeholder: 'Preview pending', - }, - ], - requiredBackendCapabilities: ['modules.Image.Load', 'modules.Spandrel.Upscaler', 'modules.Image.Preview'], - modelArtifact: { - source: 'hub', - value: 'nateraw/real-esrgan', - revision: spandrelRevision, - sha256: '49fafd45f8fd7aa8d31ab2a22d14d91b536c34494a5cfe31eb5d89c2fa266abb', - byteSize: 67061725, - license: 'bsd-3-clause', + description: 'Double the source image dimensions with tiled Real-ESRGAN upscaling.', + recipeSummary: 'Compare the source gradient with its 2× output.', + prompt: '', + example: { + mediaType: 'image', + status: 'unverified', + modelRevision: '42efb9c3eeed1f5c0c8a626cf5f7f4481dfbb094', + lockedSeed: 42, + lockedSettings: { + width: 128, + height: 96, + steps: 1, + guidanceScale: 0, + dtype: 'float32', + resourceMode: 'expert', + quantizationMode: 'none', + autoOffload: false, + offloadMode: 'none', }, - description: 'Double the source image dimensions with tiled Real-ESRGAN upscaling.', - recipeSummary: 'Compare the source gradient with its 2× output.', - prompt: '', - example: { - mediaType: 'image', - status: 'unverified', - modelRevision: spandrelRevision, - // Spandrel has no seed input. The generic template form retains a fixed seed. - lockedSeed: 42, - lockedSettings: { - width: 128, - height: 96, - steps: 1, - guidanceScale: 0, - dtype: 'float32', - resourceMode: 'expert', - quantizationMode: 'none', - autoOffload: false, - offloadMode: 'none', - }, - expectedOutput: { width: 128, height: 96 }, - runtimeEstimate: '5.80 seconds in the retained Windows CUDA run', - notes: - 'Minor edge-region grain and colour drift. The synthetic gradient does not test restoration of fine detail.', + expectedOutput: { + width: 128, + height: 96, }, + runtimeEstimate: '5.80 seconds in the retained Windows CUDA run', + notes: + 'Minor edge-region grain and colour drift. The synthetic gradient does not test restoration of fine detail.', }, }, { - workflowId: 'HuggingFaceTextGenerationModel:text_generation', - sourceTaskTemplateId: 'task-template:smollm2-135m-instruct:text-generation:v1', - retainedGraphHash: 'sha256:canonical-graph-v1:285625f017e8de78e065d8fc32c9ce71ed9561b008cd5fa0e23ce9cda3dabefe', - originalReceiptSha256: '4d0e3ad2819d02cc04c3f264145ddd384b17b9dfa39e83f4af6e923bce34f3d8', - reviewedTemplateSha256: 'aab7cfcf15db94d4e3d1415e963cabc0cf7e6a4baafd243d4095539b1004545b', - reviewedCatalogLock: { - templateLockHash: 'tpl_84d96f79', - galleryTemplateLockHash: 'tpl_a845a534', - promptSettingsHash: 'ps_fe288802', + id: 'smollm2_rain_gauge', + label: 'SmolLM2 135M Instruct — Rain Gauge Answer', + modelDisplayName: 'SmolLM2 135M Instruct', + mode: 'text_generation', + modelType: 'HuggingFaceTextGenerationModel', + intentGroup: 'utility', + category: 'text', + tags: ['text generation', 'JSON'], + difficulty: 'starter', + readinessPolicy: 'runnable', + outputKinds: ['json'], + mediaSlots: [ + { + id: 'result', + label: 'Structured response', + kind: 'json', + role: 'output', + placeholder: 'Result pending', + }, + ], + requiredBackendCapabilities: [ + 'modules.HuggingFaceTransformers.LoadTextGenerationModel', + 'modules.HuggingFaceTransformers.GenerateText', + 'modules.Primitive.DataViewer', + ], + modelArtifact: { + source: 'hub', + value: 'HuggingFaceTB/SmolLM2-135M-Instruct', + revision: '12fd25f77366fa6b3b4b768ec3050bf629380bac', }, - promptSha256: '47eb5ebb2dbce8f755621e569deba76f6f61f251763aeac5fafd5d09be3869b4', - template: { - id: 'smollm2_rain_gauge', - label: 'SmolLM2 135M Instruct — Rain Gauge Answer', - modelDisplayName: 'SmolLM2 135M Instruct', - mode: 'text_generation', - modelType: 'HuggingFaceTextGenerationModel', - intentGroup: 'utility', - category: 'text', - tags: ['text generation', 'JSON'], - difficulty: 'starter', - readinessPolicy: 'runnable', - outputKinds: ['json'], - mediaSlots: [ - { id: 'result', label: 'Structured response', kind: 'json', role: 'output', placeholder: 'Result pending' }, - ], - requiredBackendCapabilities: [ - 'modules.HuggingFaceTransformers.LoadTextGenerationModel', - 'modules.HuggingFaceTransformers.GenerateText', - 'modules.Primitive.DataViewer', - ], - modelArtifact: { source: 'hub', value: 'HuggingFaceTB/SmolLM2-135M-Instruct', revision: smollm2Revision }, - runtimeReuseKey: 'HuggingFaceTextGenerationModel:float32:none:resident:none', - description: 'Answer a short factual question using greedy decoding and inspect the structured result.', - recipeSummary: 'Answer a short question and inspect the text, finish reason, and token counts.', - prompt: 'Reply in one short sentence: What does a rain gauge measure?', - example: { - mediaType: 'json', - status: 'unverified', - modelRevision: smollm2Revision, - // Text generation uses greedy decoding and has no seed input. - lockedSeed: 42, - lockedSettings: { - width: 1, - height: 1, - steps: 1, - guidanceScale: 0, - dtype: 'float32', - resourceMode: 'expert', - quantizationMode: 'none', - autoOffload: false, - offloadMode: 'none', - }, - runtimeEstimate: '1.86 seconds in the retained Windows CUDA run', - notes: 'The retained result demonstrates one factual prompt and reports the finish reason and token counts.', + runtimeReuseKey: 'HuggingFaceTextGenerationModel:float32:none:resident:none', + description: 'Answer a short factual question using greedy decoding and inspect the structured result.', + recipeSummary: 'Answer a short question and inspect the text, finish reason, and token counts.', + prompt: 'Reply in one short sentence: What does a rain gauge measure?', + example: { + mediaType: 'json', + status: 'unverified', + modelRevision: '12fd25f77366fa6b3b4b768ec3050bf629380bac', + lockedSeed: 42, + lockedSettings: { + width: 1, + height: 1, + steps: 1, + guidanceScale: 0, + dtype: 'float32', + resourceMode: 'expert', + quantizationMode: 'none', + autoOffload: false, + offloadMode: 'none', }, + runtimeEstimate: '1.86 seconds in the retained Windows CUDA run', + notes: 'The retained result demonstrates one factual prompt and reports the finish reason and token counts.', }, }, { - workflowId: 'HuggingFaceSpeechRecognitionModel:speech_to_text', - sourceTaskTemplateId: 'task-template:whisper-tiny:speech-to-text:v1', - retainedGraphHash: 'sha256:canonical-graph-v1:b377ff0dee17374428c2deb83531bdee0b21eac105ea6e81fe705a41c4f98adb', - originalReceiptSha256: '7ef2a7611856f6a0c111d5e4ffa248201f88718756aed16f5a6a30487e571faa', - reviewedTemplateSha256: 'f9e6bd0b708cc08d7068555be9f4094f68cc9aa6115639792339f50b38c2e35c', - reviewedCatalogLock: { - templateLockHash: 'tpl_feef81de', - galleryTemplateLockHash: 'tpl_e533ed76', - promptSettingsHash: 'ps_254ff664', - }, - inputSha256: 'd5a4aebb4bd603192b70b0744e6ac158ed10c4c845d423b7fb7b1ef7de0ed41f', - inputLocatorSha256: '50e837ad6f7de4f94901d12dd299c89410ff225f23a4bd5eb4ccf5621e0aea26', - template: { - id: 'whisper_tiny_blue_cup_transcription', - label: 'Whisper Tiny — Short Speech Transcription', - modelDisplayName: 'Whisper Tiny', - mode: 'speech_to_text', - modelType: 'HuggingFaceSpeechRecognitionModel', - intentGroup: 'utility', - category: 'audio_edit', - tags: ['transcription', 'segment timestamps', 'JSON'], - difficulty: 'starter', - readinessPolicy: 'requires_input', - outputKinds: ['json'], - inputBindings: [ - { - id: 'source-audio', - label: 'Source audio', - mediaType: 'audio', - origin: 'user', - requiredAt: 'workflow_start', - field: 'sourceAudio', - count: 1, - }, - ], - mediaSlots: [ - { - id: 'result', - label: 'Transcript and segment timestamps', - kind: 'json', - role: 'output', - placeholder: 'Transcript pending', - }, - ], - requiredBackendCapabilities: [ - 'modules.Audio.Load', - 'modules.HuggingFaceSpeech.LoadSpeechRecognitionModel', - 'modules.HuggingFaceSpeech.TranscribeAudio', - 'modules.Primitive.DataViewer', - ], - modelArtifact: { - source: 'hub', - value: 'openai/whisper-tiny', - revision: '169d4a4341b33bc18d8881c4b69c2e104e1cc0af', + id: 'whisper_tiny_blue_cup_transcription', + label: 'Whisper Tiny — Short Speech Transcription', + modelDisplayName: 'Whisper Tiny', + mode: 'speech_to_text', + modelType: 'HuggingFaceSpeechRecognitionModel', + intentGroup: 'utility', + category: 'audio_edit', + tags: ['transcription', 'segment timestamps', 'JSON'], + difficulty: 'starter', + readinessPolicy: 'requires_input', + outputKinds: ['json'], + inputBindings: [ + { + id: 'source-audio', + label: 'Source audio', + mediaType: 'audio', + origin: 'user', + requiredAt: 'workflow_start', + field: 'sourceAudio', + count: 1, + }, + ], + mediaSlots: [ + { + id: 'result', + label: 'Transcript and segment timestamps', + kind: 'json', + role: 'output', + placeholder: 'Transcript pending', }, - runtimeReuseKey: 'HuggingFaceSpeechRecognitionModel:float32:none:resident:none', - description: 'Transcribe a short audio file and inspect the text and segment timestamps.', - recipeSummary: 'Load audio, transcribe with Whisper Tiny, and inspect the structured result.', - prompt: '', - example: { - mediaType: 'json', - status: 'unverified', - modelRevision: '169d4a4341b33bc18d8881c4b69c2e104e1cc0af', - lockedSeed: 42, - lockedSettings: { - width: 1, - height: 1, - steps: 1, - guidanceScale: 0, - dtype: 'float32', - resourceMode: 'expert', - quantizationMode: 'none', - autoOffload: false, - offloadMode: 'none', - }, - runtimeEstimate: '1.56 seconds in the retained Linux ROCm run', - notes: 'One short synthetic English recording. Segment timestamps were checked for bounds.', + ], + requiredBackendCapabilities: [ + 'modules.Audio.Load', + 'modules.HuggingFaceSpeech.LoadSpeechRecognitionModel', + 'modules.HuggingFaceSpeech.TranscribeAudio', + 'modules.Primitive.DataViewer', + ], + modelArtifact: { + source: 'hub', + value: 'openai/whisper-tiny', + revision: '169d4a4341b33bc18d8881c4b69c2e104e1cc0af', + }, + runtimeReuseKey: 'HuggingFaceSpeechRecognitionModel:float32:none:resident:none', + description: 'Transcribe a short audio file and inspect the text and segment timestamps.', + recipeSummary: 'Load audio, transcribe with Whisper Tiny, and inspect the structured result.', + prompt: '', + example: { + mediaType: 'json', + status: 'unverified', + modelRevision: '169d4a4341b33bc18d8881c4b69c2e104e1cc0af', + lockedSeed: 42, + lockedSettings: { + width: 1, + height: 1, + steps: 1, + guidanceScale: 0, + dtype: 'float32', + resourceMode: 'expert', + quantizationMode: 'none', + autoOffload: false, + offloadMode: 'none', }, + runtimeEstimate: '1.56 seconds in the retained Linux ROCm run', + notes: 'One short synthetic English recording. Segment timestamps were checked for bounds.', }, }, { - workflowId: 'LatentConsistencyModelPipeline:edit_image', - sourceTaskTemplateId: 'task-template:lcm-dreamshaper-v7:edit-image:v1', - retainedGraphHash: 'sha256:canonical-graph-v1:80fc803df0e8e4fe9a90c302a88cadda57fb613ac3e67857f88fcb24ee7f0a8b', - originalReceiptSha256: 'd29515dfafdcde29ecff2332276275247a6feeae5afd36639da87efc552af4f6', - reviewedTemplateSha256: '79ee258770b00a581d8e006b743cacd78ad992739353bcfcd724a920eb41fc8e', - reviewedCatalogLock: { - templateLockHash: 'tpl_606d8d50', - galleryTemplateLockHash: 'tpl_03de02cb', - promptSettingsHash: 'ps_614c9651', + id: 'lcm_dawn_alpine_lake', + label: 'LCM DreamShaper 7 — Alpine Lake at Dawn', + modelDisplayName: 'LCM DreamShaper 7', + mode: 'edit_image', + modelType: 'LatentConsistencyModelPipeline', + intentGroup: 'edit_image', + category: 'edit', + tags: ['image edit', 'landscape', 'dawn'], + difficulty: 'starter', + readinessPolicy: 'requires_input', + outputKinds: ['image'], + thumbnailVariant: 'compareSlider', + inputBindings: [ + { + id: 'alpine-lake-source', + label: 'Source image', + mediaType: 'image', + origin: 'user', + requiredAt: 'workflow_start', + field: 'referenceImages', + count: 1, + }, + ], + mediaSlots: [ + { + id: 'before', + label: 'Daylight source', + kind: 'comparison_before', + role: 'before', + placeholder: 'Source pending', + }, + { + id: 'after', + label: 'Dawn edit', + kind: 'comparison_after', + role: 'after', + placeholder: 'Preview pending', + }, + ], + requiredBackendCapabilities: [ + 'modules.DiffusersRuntime.PipelineQuantizationConfigV2', + 'modules.DiffusersRuntime.DiffusersExecutionRecipe', + 'modules.DiffusersImage.LoadPipeline', + 'modules.Image.Load', + 'modules.DiffusersImage.Edit', + 'modules.Image.Preview', + ], + modelArtifact: { + source: 'hub', + value: 'SimianLuo/LCM_Dreamshaper_v7', + revision: 'a85df6a8bd976cdd08b4fd8f3b73f229c9e54df5', }, - inputFileName: 'prx-linux-bf16-native-efficient-alpine-lake.webp', - inputSha256: '25fe06d8e93645bc6ff29928556a0cd654aa6d70178d435268b3d17e9188feaa', - promptSha256: 'ec2943b08ef8225e661ab5c3f712a6e555eabd481e4bf2e8ba68b34963367e33', - template: { - id: 'lcm_dawn_alpine_lake', - label: 'LCM DreamShaper 7 — Alpine Lake at Dawn', - modelDisplayName: 'LCM DreamShaper 7', - mode: 'edit_image', - modelType: 'LatentConsistencyModelPipeline', - intentGroup: 'edit_image', - category: 'edit', - tags: ['image edit', 'landscape', 'dawn'], - difficulty: 'starter', - readinessPolicy: 'requires_input', - outputKinds: ['image'], - thumbnailVariant: 'compareSlider', - inputBindings: [ - { - id: 'alpine-lake-source', - label: 'Source image', - mediaType: 'image', - origin: 'user', - requiredAt: 'workflow_start', - field: 'referenceImages', - count: 1, - }, - ], - mediaSlots: [ - { - id: 'before', - label: 'Daylight source', - kind: 'comparison_before', - role: 'before', - placeholder: 'Source pending', - }, - { - id: 'after', - label: 'Dawn edit', - kind: 'comparison_after', - role: 'after', - placeholder: 'Preview pending', - }, - ], - requiredBackendCapabilities: [ - 'modules.DiffusersRuntime.PipelineQuantizationConfigV2', - 'modules.DiffusersRuntime.DiffusersExecutionRecipe', - 'modules.DiffusersImage.LoadPipeline', - 'modules.Image.Load', - 'modules.DiffusersImage.Edit', - 'modules.Image.Preview', - ], - modelArtifact: { - source: 'hub', - value: 'SimianLuo/LCM_Dreamshaper_v7', - revision: 'a85df6a8bd976cdd08b4fd8f3b73f229c9e54df5', + runtimeReuseKey: 'LatentConsistencyModelPipeline:float32:none:resident:none', + description: 'Reimagine a daylight alpine lake at dawn with mist over the water and rosy mountain light.', + recipeSummary: 'Compare the original lake scene with a four-step creative image edit.', + prompt: + 'Photograph of this alpine lake at dawn, with a low band of mist over the reflective water and faint rose-colored light on the mountains. Keep the shoreline, rocky foreground and pine forest composition. Natural atmospheric detail.', + negativePrompt: '', + example: { + mediaType: 'image', + status: 'unverified', + modelRevision: 'a85df6a8bd976cdd08b4fd8f3b73f229c9e54df5', + lockedSeed: 42, + lockedSettings: { + width: 1024, + height: 1024, + strength: 0.8, + steps: 4, + guidanceScale: 8.5, + randomSeed: false, + outputType: 'pil', + maxSequenceLength: 256, + dtype: 'float32', + resourceMode: 'expert', + quantizationMode: 'none', + autoOffload: false, + offloadMode: 'none', }, - runtimeReuseKey: 'LatentConsistencyModelPipeline:float32:none:resident:none', - description: 'Reimagine a daylight alpine lake at dawn with mist over the water and rosy mountain light.', - recipeSummary: 'Compare the original lake scene with a four-step creative image edit.', - prompt: - 'Photograph of this alpine lake at dawn, with a low band of mist over the reflective water and faint rose-colored light on the mountains. Keep the shoreline, rocky foreground and pine forest composition. Natural atmospheric detail.', - negativePrompt: '', - example: { - mediaType: 'image', - status: 'unverified', - modelRevision: 'a85df6a8bd976cdd08b4fd8f3b73f229c9e54df5', - lockedSeed: 42, - lockedSettings: { - width: 1024, - height: 1024, - strength: 0.8, - steps: 4, - guidanceScale: 8.5, - randomSeed: false, - outputType: 'pil', - maxSequenceLength: 256, - dtype: 'float32', - resourceMode: 'expert', - quantizationMode: 'none', - autoOffload: false, - offloadMode: 'none', - }, - expectedOutput: { width: 512, height: 512 }, - runtimeEstimate: '23.92 seconds in the retained Linux ROCm run', - notes: 'Landscape structure changes along with the light. The saved 512 × 512 source determined output size.', + expectedOutput: { + width: 512, + height: 512, }, + runtimeEstimate: '23.92 seconds in the retained Linux ROCm run', + notes: 'Landscape structure changes along with the light. The saved 512 × 512 source determined output size.', }, }, { - workflowId: 'SanaSprintPipeline:edit_image', - sourceTaskTemplateId: 'task-template:sana-sprint-600m:edit-image:v1', - retainedGraphHash: 'sha256:canonical-graph-v1:e69d5c8fa5e75c1387b8dae436e44c580d3b1eb31267946c26b98049e2f7132c', - originalReceiptSha256: 'ec340d225ca8eae07996fc5f93e3561cd25c82e80d1229a3adca1f648ea8d20e', - reviewedTemplateSha256: '7f1ac6b38c8f3fcc701921fe7f500b4717c4f1bfdf5cc2f059e934972923296b', - reviewedCatalogLock: { - templateLockHash: 'tpl_b6bc5c52', - galleryTemplateLockHash: 'tpl_8be9c59d', - promptSettingsHash: 'ps_6cb5dccc', + id: 'sana_sprint_monochrome_tiger', + label: 'Sana Sprint — Monochrome Tiger', + modelDisplayName: 'Sana Sprint 0.6B', + mode: 'edit_image', + modelType: 'SanaSprintPipeline', + intentGroup: 'edit_image', + category: 'edit', + tags: ['image edit', 'wildlife', 'monochrome'], + difficulty: 'starter', + readinessPolicy: 'requires_input', + outputKinds: ['image'], + thumbnailVariant: 'compareSlider', + inputBindings: [ + { + id: 'source-image', + label: 'Source image', + mediaType: 'image', + origin: 'user', + requiredAt: 'workflow_start', + field: 'referenceImages', + count: 1, + }, + ], + mediaSlots: [ + { + id: 'before', + label: 'Color tiger source', + kind: 'comparison_before', + role: 'before', + placeholder: 'Source pending', + }, + { + id: 'after', + label: 'Monochrome edit', + kind: 'comparison_after', + role: 'after', + placeholder: 'Preview pending', + }, + ], + requiredBackendCapabilities: [ + 'modules.DiffusersRuntime.PipelineQuantizationConfigV2', + 'modules.DiffusersRuntime.DiffusersExecutionRecipe', + 'modules.DiffusersImage.LoadPipeline', + 'modules.Image.Load', + 'modules.DiffusersImage.Edit', + 'modules.Image.Preview', + ], + modelArtifact: { + source: 'hub', + value: 'Efficient-Large-Model/Sana_Sprint_0.6B_1024px_diffusers', + revision: 'aa76e7f4f4928f378716b6716a2130fba3caf5b1', }, - inputFileName: 'retained-tiger-source.webp', - inputSha256: 'a99616590d7d8586a51a25bbe9e36b309f705bc80f2abaab04ac84f1e0d948e4', - promptSha256: 'db2c046f8d489387110e3de23a28dfd52f981d796958433e819988b94c8ed853', - template: { - id: 'sana_sprint_monochrome_tiger', - label: 'Sana Sprint — Monochrome Tiger', - modelDisplayName: 'Sana Sprint 0.6B', - mode: 'edit_image', - modelType: 'SanaSprintPipeline', - intentGroup: 'edit_image', - category: 'edit', - tags: ['image edit', 'wildlife', 'monochrome'], - difficulty: 'starter', - readinessPolicy: 'requires_input', - outputKinds: ['image'], - thumbnailVariant: 'compareSlider', - inputBindings: [ - { - id: 'source-image', - label: 'Source image', - mediaType: 'image', - origin: 'user', - requiredAt: 'workflow_start', - field: 'referenceImages', - count: 1, - }, - ], - mediaSlots: [ - { - id: 'before', - label: 'Color tiger source', - kind: 'comparison_before', - role: 'before', - placeholder: 'Source pending', - }, - { - id: 'after', - label: 'Monochrome edit', - kind: 'comparison_after', - role: 'after', - placeholder: 'Preview pending', - }, - ], - requiredBackendCapabilities: [ - 'modules.DiffusersRuntime.PipelineQuantizationConfigV2', - 'modules.DiffusersRuntime.DiffusersExecutionRecipe', - 'modules.DiffusersImage.LoadPipeline', - 'modules.Image.Load', - 'modules.DiffusersImage.Edit', - 'modules.Image.Preview', - ], - modelArtifact: { - source: 'hub', - value: 'Efficient-Large-Model/Sana_Sprint_0.6B_1024px_diffusers', - revision: 'aa76e7f4f4928f378716b6716a2130fba3caf5b1', + runtimeReuseKey: 'SanaSprintPipeline:bfloat16:none:model_cpu:none:expert', + description: 'Transform a full-color tiger portrait into a high-contrast monochrome wildlife photograph.', + recipeSummary: 'Compare the source tiger portrait with a two-step creative edit at strength 0.75.', + prompt: + 'Black-and-white wildlife photograph of a front-facing tiger cub against a soft dark-gray forest background, with silver highlights on its whiskers, detailed charcoal stripes, and gentle overcast light. Centered head-and-shoulders framing, direct gaze, natural fur texture.', + negativePrompt: '', + example: { + mediaType: 'image', + status: 'unverified', + modelRevision: 'aa76e7f4f4928f378716b6716a2130fba3caf5b1', + lockedSeed: 42, + lockedSettings: { + width: 1024, + height: 1024, + strength: 0.75, + steps: 2, + guidanceScale: 4.5, + randomSeed: false, + outputType: 'pil', + maxSequenceLength: 300, + dtype: 'bfloat16', + resourceMode: 'expert', + quantizationMode: 'none', + autoOffload: true, + offloadMode: 'model_cpu', }, - runtimeReuseKey: 'SanaSprintPipeline:bfloat16:none:model_cpu:none:expert', - description: 'Transform a full-color tiger portrait into a high-contrast monochrome wildlife photograph.', - recipeSummary: 'Compare the source tiger portrait with a two-step creative edit at strength 0.75.', - prompt: - 'Black-and-white wildlife photograph of a front-facing tiger cub against a soft dark-gray forest background, with silver highlights on its whiskers, detailed charcoal stripes, and gentle overcast light. Centered head-and-shoulders framing, direct gaze, natural fur texture.', - negativePrompt: '', - example: { - mediaType: 'image', - status: 'unverified', - modelRevision: 'aa76e7f4f4928f378716b6716a2130fba3caf5b1', - lockedSeed: 42, - lockedSettings: { - width: 1024, - height: 1024, - strength: 0.75, - steps: 2, - guidanceScale: 4.5, - randomSeed: false, - outputType: 'pil', - maxSequenceLength: 300, - dtype: 'bfloat16', - resourceMode: 'expert', - quantizationMode: 'none', - autoOffload: true, - offloadMode: 'model_cpu', - }, - expectedOutput: { - width: 1024, - height: 1024, - }, - runtimeEstimate: '8.30 seconds in the retained Linux ROCm run', - notes: 'The edit keeps the frontal pose and gaze while altering stripe markings, eye spacing and the crop.', + expectedOutput: { + width: 1024, + height: 1024, }, + runtimeEstimate: '8.30 seconds in the retained Linux ROCm run', + notes: 'The edit keeps the frontal pose and gaze while altering stripe markings, eye spacing and the crop.', }, }, { - workflowId: 'HuggingFaceCTCSpeechRecognitionModel:speech_to_text', - sourceTaskTemplateId: 'task-template:wav2vec2-base-960h:speech-to-text:v1', - retainedGraphHash: 'sha256:canonical-graph-v1:36c5afc09d6f5f3be0cf44ba472bc514313464e2c61616a1c934a254f137c1c1', - originalReceiptSha256: '226c35aaf3a811a8077e0caae4b4652daaf332d3c7718a095f238afde982f7ee', - reviewedTemplateSha256: 'fc0cb2cf3751967eb0ab2910d5b17fd0796bdf047cfc48871e5266346d925e37', - reviewedCatalogLock: { - templateLockHash: 'tpl_a1f95a4a', - galleryTemplateLockHash: 'tpl_51e4cb19', - promptSettingsHash: 'ps_583a0762', - }, - inputSha256: '534bf47b7a715e5637443eaf7175e0b2e5288504beb8d8a09d25ee6c66c8d4f8', - inputLocatorSha256: 'b5a6579a0125be7bd9aec165e3f22c0c054f598e4aaaf00b9bf53decbd4f6e18', - template: { - id: 'wav2vec2_station_announcement', - label: 'Wav2Vec2 — Station Announcement', - modelDisplayName: 'Wav2Vec2 Base 960h', - mode: 'speech_to_text', - modelType: 'HuggingFaceCTCSpeechRecognitionModel', - intentGroup: 'utility', - category: 'audio_edit', - tags: ['transcription', 'word timestamps', 'JSON'], - difficulty: 'starter', - readinessPolicy: 'requires_input', - outputKinds: ['json'], - inputBindings: [ - { - id: 'source-audio', - label: 'Source audio', - mediaType: 'audio', - origin: 'user', - requiredAt: 'workflow_start', - field: 'sourceAudio', - count: 1, - }, - ], - mediaSlots: [ - { - id: 'result', - label: 'Transcript and word timestamps', - kind: 'json', - role: 'output', - placeholder: 'Transcript pending', - }, - ], - requiredBackendCapabilities: [ - 'modules.Audio.Load', - 'modules.HuggingFaceSpeech.LoadCTCSpeechRecognitionModel', - 'modules.HuggingFaceSpeech.TranscribeCTCAudio', - 'modules.Primitive.DataViewer', - ], - modelArtifact: { - source: 'hub', - value: 'facebook/wav2vec2-base-960h', - revision: '22aad52d435eb6dbaf354bdad9b0da84ce7d6156', + id: 'wav2vec2_station_announcement', + label: 'Wav2Vec2 — Station Announcement', + modelDisplayName: 'Wav2Vec2 Base 960h', + mode: 'speech_to_text', + modelType: 'HuggingFaceCTCSpeechRecognitionModel', + intentGroup: 'utility', + category: 'audio_edit', + tags: ['transcription', 'word timestamps', 'JSON'], + difficulty: 'starter', + readinessPolicy: 'requires_input', + outputKinds: ['json'], + inputBindings: [ + { + id: 'source-audio', + label: 'Source audio', + mediaType: 'audio', + origin: 'user', + requiredAt: 'workflow_start', + field: 'sourceAudio', + count: 1, }, - runtimeReuseKey: 'HuggingFaceCTCSpeechRecognitionModel:float32:none:resident:none', - description: 'Transcribe a short English audio file and inspect timestamps for each word.', - recipeSummary: 'Load audio, transcribe with Wav2Vec2, and inspect the structured result.', - prompt: '', - example: { - mediaType: 'json', - status: 'unverified', - modelRevision: '22aad52d435eb6dbaf354bdad9b0da84ce7d6156', - lockedSeed: 42, - lockedSettings: { - width: 1, - height: 1, - steps: 1, - guidanceScale: 0, - dtype: 'float32', - resourceMode: 'expert', - quantizationMode: 'none', - autoOffload: false, - offloadMode: 'none', - }, - runtimeEstimate: '1.95 seconds in the retained Windows CUDA run', - notes: 'One clean synthetic English recording. Word timestamps were checked for order and bounds.', + ], + mediaSlots: [ + { + id: 'result', + label: 'Transcript and word timestamps', + kind: 'json', + role: 'output', + placeholder: 'Transcript pending', }, + ], + requiredBackendCapabilities: [ + 'modules.Audio.Load', + 'modules.HuggingFaceSpeech.LoadCTCSpeechRecognitionModel', + 'modules.HuggingFaceSpeech.TranscribeCTCAudio', + 'modules.Primitive.DataViewer', + ], + modelArtifact: { + source: 'hub', + value: 'facebook/wav2vec2-base-960h', + revision: '22aad52d435eb6dbaf354bdad9b0da84ce7d6156', + }, + runtimeReuseKey: 'HuggingFaceCTCSpeechRecognitionModel:float32:none:resident:none', + description: 'Transcribe a short English audio file and inspect timestamps for each word.', + recipeSummary: 'Load audio, transcribe with Wav2Vec2, and inspect the structured result.', + prompt: '', + example: { + mediaType: 'json', + status: 'unverified', + modelRevision: '22aad52d435eb6dbaf354bdad9b0da84ce7d6156', + lockedSeed: 42, + lockedSettings: { + width: 1, + height: 1, + steps: 1, + guidanceScale: 0, + dtype: 'float32', + resourceMode: 'expert', + quantizationMode: 'none', + autoOffload: false, + offloadMode: 'none', + }, + runtimeEstimate: '1.95 seconds in the retained Windows CUDA run', + notes: 'One clean synthetic English recording. Word timestamps were checked for order and bounds.', }, }, -] as const satisfies readonly RetainedGalleryRecipe[]; +]; + +export const RETAINED_GALLERY_TEMPLATES = [...APPROVED_RETAINED_TEMPLATES, ...LEGACY_RETAINED_GALLERY_TEMPLATES]; diff --git a/src/studio/templateAssetSource.json b/src/studio/templateAssetSource.json index 0b10f53e..3b0c8cc1 100644 --- a/src/studio/templateAssetSource.json +++ b/src/studio/templateAssetSource.json @@ -4,11 +4,11 @@ "localBasePath": "/template-gallery", "repoType": "dataset", "repoId": "sourav-das/modiff-template-gallery", - "revision": "ec3a98a8e44714ca4680273c7d056e91f6edca19", + "revision": "c1313d4630a08fa4735e1b7295b8a45364886cc8", "pathPrefix": "template-gallery", "assetManifestPath": "_modiff/template-assets.v1.json", - "assetSetId": "sha256:canonical-json:1792271d51b6fd32bd7976f7a56bda9fb994d48e2435016f16d0faa9a6e9913c", - "completeAssetSetId": "sha256:canonical-json:415c599a910952e3eb8b060e3b04f91e6a85028a6e8dc1d180d5ad5fd11e73f4", + "assetSetId": "sha256:canonical-json:df727f15a0fd40d0a990ca000913a3e10c9a4028eb66b3d9e6a78e97e6c02467", + "completeAssetSetId": "sha256:canonical-json:1dd39d0a777c1194ca6722527d6b1f8dd1f9f02e89b64fdc2ef056a64748d189", "unavailableAssets": [ "template-gallery/ace_step_chinese_new_year_lora.card-poster.png", "template-gallery/ace_step_chinese_new_year_lora.wav", diff --git a/src/studio/templateExactness.ts b/src/studio/templateExactness.ts index 117ef173..bfd6abc3 100644 --- a/src/studio/templateExactness.ts +++ b/src/studio/templateExactness.ts @@ -642,7 +642,9 @@ export function getTemplateCardMedia( .flatMap((binding) => binding.defaultAssets) .find((asset) => asset.previewPath)?.previewPath : undefined; - const manifestPoster = retainedPreview ? manifestEntry?.posterPath : manifestEntry?.thumbnailPath ?? manifestEntry?.posterPath; + const manifestPoster = retainedPreview + ? manifestEntry?.posterPath + : (manifestEntry?.thumbnailPath ?? manifestEntry?.posterPath); const thumbnailPath = templateManifestPath(manifestPoster) ?? templateManifestPath(template.example?.thumbnailPath ?? template.example?.outputPath); @@ -655,7 +657,9 @@ export function getTemplateCardMedia( return { beforePath: templateManifestPath(manifestEntry?.beforePath ?? bundledSourcePreview), mediaPath: isVideo - ? templateManifestPath(manifestEntry?.cardPreviewPath ?? (retainedPreview ? manifestEntry?.outputPath : undefined)) + ? templateManifestPath( + manifestEntry?.cardPreviewPath ?? (retainedPreview ? manifestEntry?.outputPath : undefined), + ) : generatedOutputPath, thumbnailPath, }; diff --git a/src/studio/templates.ts b/src/studio/templates.ts index 3a8775f2..7ada0313 100644 --- a/src/studio/templates.ts +++ b/src/studio/templates.ts @@ -5260,7 +5260,7 @@ export const PLANNING_STUDIO_TEMPLATES: StudioTemplate[] = NORMALIZED_STUDIO_TEM export const STUDIO_TEMPLATES: StudioTemplate[] = [ ...NORMALIZED_STUDIO_TEMPLATES.filter((template) => template.example?.status !== 'blocked'), - ...RETAINED_GALLERY_TEMPLATES.map(({ template }) => template), + ...RETAINED_GALLERY_TEMPLATES, ]; export function getStudioTemplateLoraBaseModel(templateId: StudioTemplateId | null | undefined) { diff --git a/src/studio/types.ts b/src/studio/types.ts index 2f5655e1..beec2899 100644 --- a/src/studio/types.ts +++ b/src/studio/types.ts @@ -266,6 +266,9 @@ export type StudioTemplateId = | 'wan_flf_blue_hour_at_the_tram_shelter' | 'cogvideox_mossy_mountain_stream' | 'cogvideox_red_tram_model_railway' + | 'sana_tidal_pool_on_black_basalt' + | 'joyimage_herbarium_rainy_porthole' + | 'longcat_florist_end_of_lane' | 'lumina2_larch_on_glacial_pond' | 'hunyuan_dit_coastal_lighthouse' | 'omnigen_tulips_after_rain' diff --git a/tests/e2e/live-backend/visual-stage-groups.spec.ts b/tests/e2e/live-backend/visual-stage-groups.spec.ts index 45b23312..2bf08e40 100644 --- a/tests/e2e/live-backend/visual-stage-groups.spec.ts +++ b/tests/e2e/live-backend/visual-stage-groups.spec.ts @@ -52,10 +52,13 @@ test('retained first and last frame recipe opens with two independent image inpu }); }); await expect - .poll(async () => { - const api = await page.evaluate(() => window.__MODIFF_E2E__!.exportAuthorizedApiGraph()); - return Object.values(api?.nodes ?? {}).some(({ action }) => action === 'ImageEncode'); - }, { timeout: 60_000 }) + .poll( + async () => { + const api = await page.evaluate(() => window.__MODIFF_E2E__!.exportAuthorizedApiGraph()); + return Object.values(api?.nodes ?? {}).some(({ action }) => action === 'ImageEncode'); + }, + { timeout: 60_000 }, + ) .toBe(true); const api = await page.evaluate(() => window.__MODIFF_E2E__!.exportAuthorizedApiGraph()); const encoder = Object.values(api.nodes).find(({ action }) => action === 'ImageEncode')!; From 712208d7fb21fdb2e982ac9eeb6d5158b4959680 Mon Sep 17 00:00:00 2001 From: Sourav Das Date: Wed, 25 Nov 2026 13:13:42 +0530 Subject: [PATCH 373/440] Register eighteen approved source-bound image recipes --- config/release-showcase-scope.v1.json | 112 +- .../retained-gallery-approved-batch.v1.json | 290 + ...etained-gallery-authoring-archives.v1.json | 90 + ...etained-gallery-batch-recipe-locks.v1.json | 275 + config/template-asset-rights.v1.json | 5415 +++++++++++++---- config/template-assets.v1.json | 1115 +++- public/template-gallery/manifest.json | 599 ++ scripts/bundle-budget.mjs | 6 +- src/studio/retainedGalleryApprovedBatch.ts | 1636 +++++ src/studio/templateAssetSource.json | 6 +- src/studio/types.ts | 23 +- 11 files changed, 8370 insertions(+), 1197 deletions(-) diff --git a/config/release-showcase-scope.v1.json b/config/release-showcase-scope.v1.json index 3e9479b3..61e29d74 100644 --- a/config/release-showcase-scope.v1.json +++ b/config/release-showcase-scope.v1.json @@ -4,7 +4,7 @@ "name": "Registered showcase preview without AMD-cloud backlog", "dataset": { "repository": "sourav-das/modiff-template-gallery", - "revision": "c1313d4630a08fa4735e1b7295b8a45364886cc8" + "revision": "3bdae2719d62ea6747de119308ac2b2c3e5c39a8" }, "originalCampaign": { "total": 89, @@ -837,7 +837,115 @@ "category": "supplementary-only", "reason": "Published and registered from an approved saved run outside the original campaign selection.", "countedAsComplete": false + }, + { + "id": "chroma_alpine_block_print", + "category": "supplementary-only", + "reason": "Published and registered from an approved saved run outside the original campaign selection.", + "countedAsComplete": false + }, + { + "id": "flux1_dev_limestone_studio_scratch_repair", + "category": "supplementary-only", + "reason": "Published and registered from an approved saved run outside the original campaign selection.", + "countedAsComplete": false + }, + { + "id": "flux_klein_alpine_lake_panorama", + "category": "supplementary-only", + "reason": "Published and registered from an approved saved run outside the original campaign selection.", + "countedAsComplete": false + }, + { + "id": "flux_klein_open_glacial_lake", + "category": "supplementary-only", + "reason": "Published and registered from an approved saved run outside the original campaign selection.", + "countedAsComplete": false + }, + { + "id": "joy_plus_lavender_on_limestone", + "category": "supplementary-only", + "reason": "Published and registered from an approved saved run outside the original campaign selection.", + "countedAsComplete": false + }, + { + "id": "joyimage_base_cobalt_paper_band", + "category": "supplementary-only", + "reason": "Published and registered from an approved saved run outside the original campaign selection.", + "countedAsComplete": false + }, + { + "id": "kandinsky3_smoked_glass_on_limestone", + "category": "supplementary-only", + "reason": "Published and registered from an approved saved run outside the original campaign selection.", + "countedAsComplete": false + }, + { + "id": "kontext_wide_water_alpine_ridge", + "category": "supplementary-only", + "reason": "Published and registered from an approved saved run outside the original campaign selection.", + "countedAsComplete": false + }, + { + "id": "longcat_clear_glass_at_the_bookshop", + "category": "supplementary-only", + "reason": "Published and registered from an approved saved run outside the original campaign selection.", + "countedAsComplete": false + }, + { + "id": "omnigen_cobalt_against_soft_apricot", + "category": "supplementary-only", + "reason": "Published and registered from an approved saved run outside the original campaign selection.", + "countedAsComplete": false + }, + { + "id": "qwen_2511_pale_amber_on_limestone", + "category": "supplementary-only", + "reason": "Published and registered from an approved saved run outside the original campaign selection.", + "countedAsComplete": false + }, + { + "id": "qwen_2512_cobalt_backdrop_repair", + "category": "supplementary-only", + "reason": "Published and registered from an approved saved run outside the original campaign selection.", + "countedAsComplete": false + }, + { + "id": "qwen_bookshop_gouache", + "category": "supplementary-only", + "reason": "Published and registered from an approved saved run outside the original campaign selection.", + "countedAsComplete": false + }, + { + "id": "qwen_cobalt_on_charcoal_slate", + "category": "supplementary-only", + "reason": "Published and registered from an approved saved run outside the original campaign selection.", + "countedAsComplete": false + }, + { + "id": "sdxl_blue_glass_on_linen", + "category": "supplementary-only", + "reason": "Published and registered from an approved saved run outside the original campaign selection.", + "countedAsComplete": false + }, + { + "id": "sdxl_pag_cobalt_wall", + "category": "supplementary-only", + "reason": "Published and registered from an approved saved run outside the original campaign selection.", + "countedAsComplete": false + }, + { + "id": "zimage_rocky_glacial_shores", + "category": "supplementary-only", + "reason": "Published and registered from an approved saved run outside the original campaign selection.", + "countedAsComplete": false + }, + { + "id": "zimage_seamless_cobalt_backdrop", + "category": "supplementary-only", + "reason": "Published and registered from an approved saved run outside the original campaign selection.", + "countedAsComplete": false } ], - "profileHash": "sha256:canonical-json:ef8bad58798dd4bc110738b59ac622482771ebad7d23870625edce6a955e67e5" + "profileHash": "sha256:canonical-json:76c4067e6c1b5f113362403963a9ffdaac7843f4899cbdbbac88babc026752c6" } diff --git a/config/retained-gallery-approved-batch.v1.json b/config/retained-gallery-approved-batch.v1.json index b03dcc86..ee00ffc6 100644 --- a/config/retained-gallery-approved-batch.v1.json +++ b/config/retained-gallery-approved-batch.v1.json @@ -686,5 +686,295 @@ "width": 1024, "height": 1024 } + }, + "chroma_alpine_block_print": { + "associationSha256": "644f096cb3ce16b11e8aaff442198bc4b0bfeb5d2b559b172f51ad462ad382e5", + "backendSourceFingerprint": "sha256:backend-source-v1:b29a5b0d317aaa781ae2a5205b46b518eea5a3d68a214eb0968dba4ac0660af7", + "backendContractFingerprint": "sha256:backend-contract-v1:315617df789a8a5f57426692318e197c13786098718305edd1927471b5b9c194", + "templateRevisionHash": "fbe83f016a250a5749f63a2b3eaa8e9806fc0d0c4b4f849a91a6f2094425dcb0", + "capturedAt": "2026-11-25T03:58:25.751Z", + "outputExtension": "webp", + "outputSize": { + "width": 1024, + "height": 1024 + }, + "inputSize": { + "width": 1024, + "height": 1024 + } + }, + "flux_klein_alpine_lake_panorama": { + "associationSha256": "97c56686a2055c9f46bb68b8907b88a37b10ab32b7482cb8bf40cb0dd783f9f2", + "backendSourceFingerprint": "sha256:backend-source-v1:e3aea8f8d102572ad10fdd0700f0c42d92061e864ede89777efcd6a3269770a8", + "backendContractFingerprint": "sha256:backend-contract-v1:06f986600338dc08fb5d1e639bfad55384f5b15ca0c97c2aeb7ed42a8c245594", + "templateRevisionHash": "f90f8a8162586ea0e94260bb3b332de2885bb642d0776a0a104b3495a593cc6d", + "capturedAt": "2026-11-23T21:08:09.132Z", + "outputExtension": "webp", + "outputSize": { + "width": 1344, + "height": 768 + }, + "inputSize": { + "width": 832, + "height": 768 + } + }, + "flux_klein_open_glacial_lake": { + "associationSha256": "3154265a969e539f1aea44d337c37e48baf8154ba8f5454f917944a70c9171ce", + "backendSourceFingerprint": "sha256:backend-source-v1:e3aea8f8d102572ad10fdd0700f0c42d92061e864ede89777efcd6a3269770a8", + "backendContractFingerprint": "sha256:backend-contract-v1:e7a7aa3acbdedd686fa7e7a9d4bcc39c1709ba1fec38f047d63ff83558a85c18", + "templateRevisionHash": "e100c45ec42735d37c8eb9c6d442d29822234c41d050ba311b178e38ee14baa5", + "capturedAt": "2026-11-23T17:09:43.722Z", + "outputExtension": "webp", + "outputSize": { + "width": 1024, + "height": 1024 + }, + "inputSize": { + "width": 1024, + "height": 1024 + } + }, + "flux1_dev_limestone_studio_scratch_repair": { + "associationSha256": "d868488370d89eb9b8ed1bdcfa18841042c6846d522c945e330abc7345708315", + "backendSourceFingerprint": "sha256:backend-source-v1:43f2ed10792fc6167b963166287cf7d5a0429afa26029e6455b0418e2123be86", + "backendContractFingerprint": "sha256:backend-contract-v1:e7a7aa3acbdedd686fa7e7a9d4bcc39c1709ba1fec38f047d63ff83558a85c18", + "templateRevisionHash": "fe963e2fc85d8c21f11d606e545a9dcf5d63e5b2abad4b30900cdb64e5a25d36", + "capturedAt": "2026-11-24T02:02:57.362Z", + "outputExtension": "webp", + "outputSize": { + "width": 1024, + "height": 1024 + }, + "inputSize": { + "width": 1024, + "height": 1024 + } + }, + "joy_plus_lavender_on_limestone": { + "associationSha256": "cec28cfa908558c228bebf3c09b1d52036940235d0c70a34374f3e964548d17b", + "backendSourceFingerprint": "sha256:backend-source-v1:d275bc94517015b221a9a8b5aea7572ec68c491060855c7895526e1ba640796d", + "backendContractFingerprint": "sha256:backend-contract-v1:315617df789a8a5f57426692318e197c13786098718305edd1927471b5b9c194", + "templateRevisionHash": "448dbfb62c1255097be44eff481ff2c89ff04c31415faa5fe86f22a72a71fe4f", + "capturedAt": "2026-11-24T04:13:54.287Z", + "outputExtension": "webp", + "outputSize": { + "width": 1024, + "height": 1024 + }, + "inputSize": { + "width": 1024, + "height": 1024 + } + }, + "joyimage_base_cobalt_paper_band": { + "associationSha256": "691b71a4b975f96da6ac7b59772ef0e3a057e8818ea9d2dbd3b9b346f70b7629", + "backendSourceFingerprint": "sha256:backend-source-v1:585997dc1146ec6effb20c260272babc01713ecdea4f78a0872c12ef2568ef83", + "backendContractFingerprint": "sha256:backend-contract-v1:315617df789a8a5f57426692318e197c13786098718305edd1927471b5b9c194", + "templateRevisionHash": "895ec1f44e28507344c4bdabd3a3c07c3fe985d5b0fc0b5373f91ec8ad1f92d0", + "capturedAt": "2026-11-24T12:15:48.363Z", + "outputExtension": "webp", + "outputSize": { + "width": 1024, + "height": 1024 + }, + "inputSize": { + "width": 1024, + "height": 1024 + } + }, + "kandinsky3_smoked_glass_on_limestone": { + "associationSha256": "45c5605c355b6698b1790b51e04f3c7f6639e3a35a440c786d5267ee136af375", + "backendSourceFingerprint": "sha256:backend-source-v1:175112f2430928958bd90dc5ae78b50ce0a54403e42e28cfc68096945d05fbe6", + "backendContractFingerprint": "sha256:backend-contract-v1:315617df789a8a5f57426692318e197c13786098718305edd1927471b5b9c194", + "templateRevisionHash": "196588c637d27503fb83fdcd1b294e9b3e7cad61436214751f92a1c6aaeb7361", + "capturedAt": "2026-11-24T16:10:32.320Z", + "outputExtension": "webp", + "outputSize": { + "width": 1024, + "height": 1024 + }, + "inputSize": { + "width": 1024, + "height": 1024 + } + }, + "kontext_wide_water_alpine_ridge": { + "associationSha256": "d1d65bf6c92fc53e8124e23195b11ec425fa4190dd81aec98879dc30060bceaf", + "backendSourceFingerprint": "sha256:backend-source-v1:272116bf77447dfb20b0899666ae417b68401993dd97ca438db63d91ff79cab6", + "backendContractFingerprint": "sha256:backend-contract-v1:06f986600338dc08fb5d1e639bfad55384f5b15ca0c97c2aeb7ed42a8c245594", + "templateRevisionHash": "8ae90dc2b352689446effd182c4ad144c4e555d5b76fa3adbdb77fa4b767d119", + "capturedAt": "2026-11-24T04:27:52.558Z", + "outputExtension": "webp", + "outputSize": { + "width": 1344, + "height": 768 + }, + "inputSize": { + "width": 832, + "height": 768 + } + }, + "longcat_clear_glass_at_the_bookshop": { + "associationSha256": "607a39a9c803b7fdeec80b6f6396cb3d74a5b85e129fa194f9aa11372e4140aa", + "backendSourceFingerprint": "sha256:backend-source-v1:43f2ed10792fc6167b963166287cf7d5a0429afa26029e6455b0418e2123be86", + "backendContractFingerprint": "sha256:backend-contract-v1:315617df789a8a5f57426692318e197c13786098718305edd1927471b5b9c194", + "templateRevisionHash": "057e11900f267163730bdb1009b1be2118ab05c6d94815d4bf4e5af86da75fbe", + "capturedAt": "2026-11-24T01:37:17.476Z", + "outputExtension": "webp", + "outputSize": { + "width": 1024, + "height": 1024 + }, + "inputSize": { + "width": 1024, + "height": 1024 + }, + "beforeExtension": "webp" + }, + "omnigen_cobalt_against_soft_apricot": { + "associationSha256": "e36849be5816106a00e201062187b8dcc4ae11ebe94611bf8137671532a1dc39", + "backendSourceFingerprint": "sha256:backend-source-v1:b29a5b0d317aaa781ae2a5205b46b518eea5a3d68a214eb0968dba4ac0660af7", + "backendContractFingerprint": "sha256:backend-contract-v1:315617df789a8a5f57426692318e197c13786098718305edd1927471b5b9c194", + "templateRevisionHash": "932ee2726d371c73f19521cf7e50806fb86a95394047d6207a5cee3007e57f00", + "capturedAt": "2026-11-25T02:43:28.002Z", + "outputExtension": "webp", + "outputSize": { + "width": 1024, + "height": 1024 + }, + "inputSize": { + "width": 1024, + "height": 1024 + } + }, + "qwen_2511_pale_amber_on_limestone": { + "associationSha256": "55ae5018e2e9dd25b8693ecc1063a902b5845b2c4467e4a2f7daf2f977e3c17f", + "backendSourceFingerprint": "sha256:backend-source-v1:e3aea8f8d102572ad10fdd0700f0c42d92061e864ede89777efcd6a3269770a8", + "backendContractFingerprint": "sha256:backend-contract-v1:315617df789a8a5f57426692318e197c13786098718305edd1927471b5b9c194", + "templateRevisionHash": "196d20bc8bec725ddcc2674124e4815e019d3b054284f444add226044ed195e5", + "capturedAt": "2026-11-23T18:58:07.960Z", + "outputExtension": "webp", + "outputSize": { + "width": 1024, + "height": 1024 + }, + "inputSize": { + "width": 1024, + "height": 1024 + } + }, + "qwen_2512_cobalt_backdrop_repair": { + "associationSha256": "1474a781dc44dff1bf598b974c0071b0b371311c2971b81f3cd7d68eaf327f25", + "backendSourceFingerprint": "sha256:backend-source-v1:43f2ed10792fc6167b963166287cf7d5a0429afa26029e6455b0418e2123be86", + "backendContractFingerprint": "sha256:backend-contract-v1:e7a7aa3acbdedd686fa7e7a9d4bcc39c1709ba1fec38f047d63ff83558a85c18", + "templateRevisionHash": "9448d9e6aed3bf64c4ada3bf63c282f7cbc03c8e6a5ade076450af1d21a9b800", + "capturedAt": "2026-11-23T23:28:40.451Z", + "outputExtension": "webp", + "outputSize": { + "width": 1328, + "height": 1328 + }, + "inputSize": { + "width": 1328, + "height": 1328 + } + }, + "qwen_bookshop_gouache": { + "associationSha256": "0dd72873432e400ed10ad9e3015bd721314058064f9c2d662b483aee40b65228", + "backendSourceFingerprint": "sha256:backend-source-v1:b29a5b0d317aaa781ae2a5205b46b518eea5a3d68a214eb0968dba4ac0660af7", + "backendContractFingerprint": "sha256:backend-contract-v1:315617df789a8a5f57426692318e197c13786098718305edd1927471b5b9c194", + "templateRevisionHash": "3163da25258525f8cb2c8a71b64a89e5445424ed1ad0a8b44b7321aafceb8175", + "capturedAt": "2026-11-25T03:40:38.530Z", + "outputExtension": "webp", + "outputSize": { + "width": 1328, + "height": 1328 + }, + "inputSize": { + "width": 1024, + "height": 1024 + }, + "beforeExtension": "webp" + }, + "qwen_cobalt_on_charcoal_slate": { + "associationSha256": "ad751a95aed80d67785d09de3fbbd0aeede1cac631dd5b8934e106a90a145450", + "backendSourceFingerprint": "sha256:backend-source-v1:e3aea8f8d102572ad10fdd0700f0c42d92061e864ede89777efcd6a3269770a8", + "backendContractFingerprint": "sha256:backend-contract-v1:315617df789a8a5f57426692318e197c13786098718305edd1927471b5b9c194", + "templateRevisionHash": "335c41c4fab432f8ee590dc902ae7d63de98f46464642e1533a3479d339348df", + "capturedAt": "2026-11-23T21:05:09.116Z", + "outputExtension": "webp", + "outputSize": { + "width": 1024, + "height": 1024 + }, + "inputSize": { + "width": 1024, + "height": 1024 + } + }, + "sdxl_blue_glass_on_linen": { + "associationSha256": "53d59ef7f6e74198efb92db50afda44e8b1435e83a8a12bad07719997a77201e", + "backendSourceFingerprint": "sha256:backend-source-v1:2faeaaa03b7902a03df5cd0cea38129b7419f6d844125c0ca7e29ccfaf635290", + "backendContractFingerprint": "sha256:backend-contract-v1:bd364fcd29020d51bb61f5f9bf320cf0bf562e718c645c21ffac8ed5a47b740d", + "templateRevisionHash": "c54124fc0e1c94b88c70853b0102ad94e7cbbe4d5761528d8c699f2ecd0d6be2", + "capturedAt": "2026-11-25T04:29:19.529Z", + "outputExtension": "webp", + "outputSize": { + "width": 1024, + "height": 1024 + }, + "inputSize": { + "width": 1024, + "height": 1024 + } + }, + "sdxl_pag_cobalt_wall": { + "associationSha256": "f16545643b3604b92e3e40e2d6de39f1df72ef08e1aa17e41249fde90c6c2c83", + "backendSourceFingerprint": "sha256:backend-source-v1:2faeaaa03b7902a03df5cd0cea38129b7419f6d844125c0ca7e29ccfaf635290", + "backendContractFingerprint": "sha256:backend-contract-v1:61201b43ea68d3fd347fbc374e292b5839be28f908b473bcb69f5ec1f8b87736", + "templateRevisionHash": "b95bd1828ace6db13d5ea54c01f8e9449bfcd73552ae371dcb52ce1838ecad8d", + "capturedAt": "2026-11-25T03:24:43.819Z", + "outputExtension": "webp", + "outputSize": { + "width": 1024, + "height": 1024 + }, + "inputSize": { + "width": 1024, + "height": 1024 + } + }, + "zimage_rocky_glacial_shores": { + "associationSha256": "a2a9a5fe3791f89f3f06c40d7ebd79266840566dc1967e90e7244fc7675f89ce", + "backendSourceFingerprint": "sha256:backend-source-v1:e3aea8f8d102572ad10fdd0700f0c42d92061e864ede89777efcd6a3269770a8", + "backendContractFingerprint": "sha256:backend-contract-v1:06f986600338dc08fb5d1e639bfad55384f5b15ca0c97c2aeb7ed42a8c245594", + "templateRevisionHash": "67bc5216f976bce75a6793c5eb33181b777828c34fb7e0573d31073d2ad42bc9", + "capturedAt": "2026-11-23T20:16:17.605Z", + "outputExtension": "webp", + "outputSize": { + "width": 1344, + "height": 768 + }, + "inputSize": { + "width": 832, + "height": 768 + } + }, + "zimage_seamless_cobalt_backdrop": { + "associationSha256": "d218b50b2de79767fb1980054d7cd2be953e2cc59936c73eebd725b0a69312ea", + "backendSourceFingerprint": "sha256:backend-source-v1:e3aea8f8d102572ad10fdd0700f0c42d92061e864ede89777efcd6a3269770a8", + "backendContractFingerprint": "sha256:backend-contract-v1:e7a7aa3acbdedd686fa7e7a9d4bcc39c1709ba1fec38f047d63ff83558a85c18", + "templateRevisionHash": "2a72cfcaddfa6e69098ca7feceef620a98bc50441abfa93f509c0a18711de478", + "capturedAt": "2026-11-23T18:07:24.639Z", + "outputExtension": "webp", + "outputSize": { + "width": 1024, + "height": 1024 + }, + "inputSize": { + "width": 1024, + "height": 1024 + } } } diff --git a/config/retained-gallery-authoring-archives.v1.json b/config/retained-gallery-authoring-archives.v1.json index 152e191f..b231b1a5 100644 --- a/config/retained-gallery-authoring-archives.v1.json +++ b/config/retained-gallery-authoring-archives.v1.json @@ -263,5 +263,95 @@ "descriptorSha256": "8b9112a10ce799d31f77d03e5f3d757d2510a7019f6bdc9e88d3de208f2bfa72", "bytes": 4107, "sha256": "cde74a47d58aa76951872729bedd01dcdc996dc4fd2130adab403fe8fa670835" + }, + "ChromaImg2ImgPipeline:edit_image": { + "descriptorSha256": "dd23974fab77ebe91e46ed5734e61a75638f10cc0ace0e54240f6afaf233c72b", + "bytes": 4609, + "sha256": "75b36f5f95e4509d3adcf65651a9b188eda71a5efe87d5a5b620dec77b6e1abe" + }, + "Flux2KleinInpaintPipeline:inpaint": { + "descriptorSha256": "fdc033422ec6517632bed64a97b54322e17e329956edc239716e4fd599f2c4cd", + "bytes": 5104, + "sha256": "cea6084bec425454e3b8bd81165b83d653c56fdd362491bed9f74bec2951d175" + }, + "Flux2KleinInpaintPipeline:outpaint": { + "descriptorSha256": "b24c85edd5c183f82ce9510a6623981ef8d9ea2699ca46bc4d3917180d8294e5", + "bytes": 5530, + "sha256": "836bdca357990b56c7379e9bba751bdc6bb9616e799a11dac5eb1b1b329058c3" + }, + "FluxDevPipeline:inpaint": { + "descriptorSha256": "f3a931273edeb2e41d23016dfd13d6568222cd92e21a4a52280afa814d59f384", + "bytes": 5171, + "sha256": "f764fcad0f1b501b845864674be35ca0556cd4d1c11f07ca9faefb3dc597afde" + }, + "FluxKontextInpaintPipeline:outpaint": { + "descriptorSha256": "fabdf2609cbf5d838834845a08c6d12d08401d670edfc34d67a370efbf40414c", + "bytes": 5540, + "sha256": "271717782ff8d2294176173579080bf539a0ea44006c159604ba1dfe3f68bbac" + }, + "JoyImageEditPipeline:edit_image": { + "descriptorSha256": "71b096416a43857e71643677e3288af3e75aa96312cbc24673f26ce8824ce46d", + "bytes": 4755, + "sha256": "a340892a5a3c7371b61b875dff2855751de8411913317c5565010d29621e7174" + }, + "JoyImageEditPlusPipeline:edit_image": { + "descriptorSha256": "ec18a41cfd9d91e09bb4339e69b0669faec4a2ac968aef9d90c1a1d3b674d0e7", + "bytes": 4781, + "sha256": "ae1afab09dd44378b5274a8473c5ccef3e13f9270e7d24f12545da95416235c2" + }, + "Kandinsky3Pipeline:edit_image": { + "descriptorSha256": "441798bee62a4e76037a9bf34cb5fe4c95d3682f2144c6f2e32810aa50ad3c4b", + "bytes": 4729, + "sha256": "88d20a4d739dc85ac3079a8ed98b093b297c5379d01a9beda77fe2f3b595379f" + }, + "LongCatImageEditPipeline:edit_image": { + "descriptorSha256": "b9f3dd382864d47e950c38650e6ec31d0e51b2453ed302c04955bfb0340785db", + "bytes": 4778, + "sha256": "288531a30b6f8d0e60a6319b69dfa3fd04d14a8bb078eb4475df09386faef9d4" + }, + "OmniGenPipeline:edit_image": { + "descriptorSha256": "aba148df3940a0700894f8f934e5d800be77f665b85d6796e4afe027debc5a43", + "bytes": 4481, + "sha256": "07ef8b0fd376687249c23fe457eb5536e40c6b277fa50e013898c60bdcb019f3" + }, + "QwenImageEditPipeline:edit_image": { + "descriptorSha256": "f3bf7c16a7aa0008f3cad3df96ff4293889439815a27d7a01dff1b4796ba171a", + "bytes": 4511, + "sha256": "7165d2e08668e02af04f75a7a988a0c0fd4a78a70d25cb319bcf55cb6e6ea755" + }, + "QwenImageEditPlusPipeline:edit_image": { + "descriptorSha256": "c701a2eb5a7fe48519e48dffd10ed7bb6b3e25c34353b208224d16d6400c6fcb", + "bytes": 4537, + "sha256": "2128837ba8b8c0a8408375059000d6c81bc6f013d3cbd6d726fba7d5ffb41ae3" + }, + "QwenImageModularPipeline:edit_image": { + "descriptorSha256": "47e7d688d1f45209de2600fe1f87a5c6d683a55e4b5acb113cc26d1087df31d5", + "bytes": 4752, + "sha256": "7b2786f5f3411d136c0611d7bb816c5b9051c8ad7bcb391cc2cd700c107d58bf" + }, + "QwenImageModularPipeline:inpaint": { + "descriptorSha256": "060b1b3de7cb4a05fe61363c8e6ae58cddddad647f8299a85feb6d8759bf5fb8", + "bytes": 5207, + "sha256": "b785c5afe4d18ce772e72843ca8ab7690d9bc14453b13b6a0be3d882482475b7" + }, + "StableDiffusionXLPAGPipeline:inpaint": { + "descriptorSha256": "9380533f675c9491fe99d896740d7366ab9471ea617ab743d8af35af722f321c", + "bytes": 5505, + "sha256": "7d993051fdcce55a01b3a78cec68adcf170e8080831f0a058826b172417302e4" + }, + "StableDiffusionXLPipeline:edit_image": { + "descriptorSha256": "511a0b135e417c10f9a3e9e04b6b35b5aa391ab3b084ec3df25fc66bf6d8d6e3", + "bytes": 4804, + "sha256": "0d63feb236cf755551373fac91985e2b9b75e394ee10998bda88d70a7bea6d62" + }, + "ZImageInpaintPipeline:inpaint": { + "descriptorSha256": "00f04c60e1fc37087db0c90144a1b5c27b1e211e88b1ef8ec567c0ff3eb9853c", + "bytes": 5066, + "sha256": "0637d67544f3501de6660270734be105179bb7f478bce1df689419f4c493d40e" + }, + "ZImageInpaintPipeline:outpaint": { + "descriptorSha256": "ba2d0fcc7d6327ad5b24538e4a07c69ef92a5bebd5534f143d5637194a328e1c", + "bytes": 5489, + "sha256": "6db62cbef82c733667d7c91eaabbcda257fc5e141bf8fb5caff3ad96af3c1865" } } diff --git a/config/retained-gallery-batch-recipe-locks.v1.json b/config/retained-gallery-batch-recipe-locks.v1.json index b45863e4..30006cce 100644 --- a/config/retained-gallery-batch-recipe-locks.v1.json +++ b/config/retained-gallery-batch-recipe-locks.v1.json @@ -735,5 +735,280 @@ "promptSettingsHash": "ps_cbbee99d" }, "promptSha256": "301b56ba87f685d46fe7ae0526aab3321afb3b49cef6c8996829e181b574983e" + }, + "kandinsky3_smoked_glass_on_limestone": { + "workflowId": "Kandinsky3Pipeline:edit_image", + "sourceTaskTemplateId": "task-template:kandinsky3:edit-image:v1", + "retainedGraphHash": "sha256:canonical-graph-v1:afdbaf12db152f0df94876cdcf5ffc96e5ba2ccbabc71331981e05f9259ae8be", + "originalReceiptSha256": "441798bee62a4e76037a9bf34cb5fe4c95d3682f2144c6f2e32810aa50ad3c4b", + "reviewedTemplateSha256": "196588c637d27503fb83fdcd1b294e9b3e7cad61436214751f92a1c6aaeb7361", + "reviewedCatalogLock": { + "templateLockHash": "tpl_2eb7c636", + "galleryTemplateLockHash": "tpl_1223236b", + "promptSettingsHash": "ps_d94df476" + }, + "promptSha256": "efa4b00d4d6fe890959aa326fe1be0f5296b1b84f92d1e5050cd793697553786", + "inputSha256": "0a41a9c56b98945e60c96ef796660c35b2cab7bf0b36d5e84ab0d97ef97f0a5a", + "inputLocatorSha256": "e6b781cc8a8fc7ccbd32136c83882dbfb6e034ca9770ab5fba37138841d3772a" + }, + "longcat_clear_glass_at_the_bookshop": { + "workflowId": "LongCatImageEditPipeline:edit_image", + "sourceTaskTemplateId": "task-template:longcat-image-edit:edit-image:v1", + "retainedGraphHash": "sha256:canonical-graph-v1:9eb6f51ba74d17909236f695506b2b08feb1855e4c217a6d79b70f30543380c5", + "originalReceiptSha256": "b9f3dd382864d47e950c38650e6ec31d0e51b2453ed302c04955bfb0340785db", + "reviewedTemplateSha256": "057e11900f267163730bdb1009b1be2118ab05c6d94815d4bf4e5af86da75fbe", + "reviewedCatalogLock": { + "templateLockHash": "tpl_7fbfbb02", + "galleryTemplateLockHash": "tpl_cae3d7ea", + "promptSettingsHash": "ps_1052bdee" + }, + "promptSha256": "f0a2850c1d874f17ba2e353339af0ebe7023490cbd24c4cd058e14a6ce6aaf30", + "inputSha256": "ff045be510a0e88cbab69bbe8c3794dd26bd19036bdec26a63a5b6ea5a11bc66", + "inputLocatorSha256": "ba62f91337905681e60c207cb7c94b5674841dbf814c026e6780f76bca2e8c52" + }, + "qwen_2511_pale_amber_on_limestone": { + "workflowId": "QwenImageEditPlusPipeline:edit_image", + "sourceTaskTemplateId": "task-template:qwen-image-edit-plus-direct:edit-image:v1", + "retainedGraphHash": "sha256:canonical-graph-v1:487c0e08495ef2eb93b734132375a8ad84ae45d6941454325daa94b03d1e5205", + "originalReceiptSha256": "c701a2eb5a7fe48519e48dffd10ed7bb6b3e25c34353b208224d16d6400c6fcb", + "reviewedTemplateSha256": "196d20bc8bec725ddcc2674124e4815e019d3b054284f444add226044ed195e5", + "reviewedCatalogLock": { + "templateLockHash": "tpl_4d6c4310", + "galleryTemplateLockHash": "tpl_46b7f4fe", + "promptSettingsHash": "ps_5dd80333" + }, + "promptSha256": "d6b5a63423062dee27603a2980982297bdc958d6134e4e4c45d81f3c63cdcb35", + "inputSha256": "0a41a9c56b98945e60c96ef796660c35b2cab7bf0b36d5e84ab0d97ef97f0a5a", + "inputLocatorSha256": "e6b781cc8a8fc7ccbd32136c83882dbfb6e034ca9770ab5fba37138841d3772a" + }, + "qwen_cobalt_on_charcoal_slate": { + "workflowId": "QwenImageEditPipeline:edit_image", + "sourceTaskTemplateId": "task-template:qwen-image-edit-direct:edit-image:v1", + "retainedGraphHash": "sha256:canonical-graph-v1:289e7be3760372b115a67ff25d933895d02e06659182553071b50baebf039160", + "originalReceiptSha256": "f3bf7c16a7aa0008f3cad3df96ff4293889439815a27d7a01dff1b4796ba171a", + "reviewedTemplateSha256": "335c41c4fab432f8ee590dc902ae7d63de98f46464642e1533a3479d339348df", + "reviewedCatalogLock": { + "templateLockHash": "tpl_3bc1bc6b", + "galleryTemplateLockHash": "tpl_3acb8169", + "promptSettingsHash": "ps_94f59a29" + }, + "promptSha256": "a339129e8aa3d96eae7e18eaea4d245271e3773dc040b09d63d1c0c7dc421774", + "inputSha256": "0a41a9c56b98945e60c96ef796660c35b2cab7bf0b36d5e84ab0d97ef97f0a5a", + "inputLocatorSha256": "e6b781cc8a8fc7ccbd32136c83882dbfb6e034ca9770ab5fba37138841d3772a" + }, + "joy_plus_lavender_on_limestone": { + "workflowId": "JoyImageEditPlusPipeline:edit_image", + "sourceTaskTemplateId": "task-template:joyimage-edit-plus:edit-image:v1", + "retainedGraphHash": "sha256:canonical-graph-v1:1f09b68538b0723b1bea8f991a74c94eebbfffd3db4ecf3be5fdee198c7db694", + "originalReceiptSha256": "ec18a41cfd9d91e09bb4339e69b0669faec4a2ac968aef9d90c1a1d3b674d0e7", + "reviewedTemplateSha256": "448dbfb62c1255097be44eff481ff2c89ff04c31415faa5fe86f22a72a71fe4f", + "reviewedCatalogLock": { + "templateLockHash": "tpl_dfad870a", + "galleryTemplateLockHash": "tpl_5fc91f78", + "promptSettingsHash": "ps_5dff34eb" + }, + "promptSha256": "7d0d51afc5f07b38d4a0226946e2e1c7dcc35192807a7b0cb2ef913a96798f21", + "inputSha256": "0a41a9c56b98945e60c96ef796660c35b2cab7bf0b36d5e84ab0d97ef97f0a5a", + "inputLocatorSha256": "e6b781cc8a8fc7ccbd32136c83882dbfb6e034ca9770ab5fba37138841d3772a" + }, + "omnigen_cobalt_against_soft_apricot": { + "workflowId": "OmniGenPipeline:edit_image", + "sourceTaskTemplateId": "task-template:omnigen-v1:edit-image:v1", + "retainedGraphHash": "sha256:canonical-graph-v1:6603d5410b5cd5b8b8fee5d4c54f0fa27be81a6e0989fa470a07fa94f1ac7e0a", + "originalReceiptSha256": "aba148df3940a0700894f8f934e5d800be77f665b85d6796e4afe027debc5a43", + "reviewedTemplateSha256": "932ee2726d371c73f19521cf7e50806fb86a95394047d6207a5cee3007e57f00", + "reviewedCatalogLock": { + "templateLockHash": "tpl_c7941f7a", + "galleryTemplateLockHash": "tpl_843ac3b0", + "promptSettingsHash": "ps_5ed41c97" + }, + "promptSha256": "fc3c89081581d6ab447d53aa73581c879533724d25d02b709e1328c4c4f3ceba", + "inputSha256": "0a41a9c56b98945e60c96ef796660c35b2cab7bf0b36d5e84ab0d97ef97f0a5a", + "inputLocatorSha256": "1d67ca3bc38832e5f5e10237b6e5449bc61e335b86116736d941eff502817ad8" + }, + "flux_klein_alpine_lake_panorama": { + "workflowId": "Flux2KleinInpaintPipeline:outpaint", + "sourceTaskTemplateId": "task-template:flux2-klein-inpaint-direct:outpaint:v1", + "retainedGraphHash": "sha256:canonical-graph-v1:2989815bea79d34490a6f78257eac8c818445145dbd6adaceb2b5ad86a6fcf4a", + "originalReceiptSha256": "b24c85edd5c183f82ce9510a6623981ef8d9ea2699ca46bc4d3917180d8294e5", + "reviewedTemplateSha256": "f90f8a8162586ea0e94260bb3b332de2885bb642d0776a0a104b3495a593cc6d", + "reviewedCatalogLock": { + "templateLockHash": "tpl_82a46ff5", + "galleryTemplateLockHash": "tpl_044f3f0c", + "promptSettingsHash": "ps_21d55461" + }, + "promptSha256": "58a529a3aed7d1f22d7d29a7c7995135d6d14488caf9785fec647136763b1f97", + "inputSha256": "50270382b4b730b87f79b775accaeeb81f3ff8885cd3d2cea94830206fbc181b", + "inputLocatorSha256": "27d164af0dd37aaced849fc5243e4d05e95e8a5f75a1b9a3c6b0942df95b540a" + }, + "zimage_rocky_glacial_shores": { + "workflowId": "ZImageInpaintPipeline:outpaint", + "sourceTaskTemplateId": "task-template:z-image-inpaint-direct:outpaint:v1", + "retainedGraphHash": "sha256:canonical-graph-v1:f7b725ec789f566f496f4afe4414288f55289d3180b2722f47f855b0cf2c2a39", + "originalReceiptSha256": "ba2d0fcc7d6327ad5b24538e4a07c69ef92a5bebd5534f143d5637194a328e1c", + "reviewedTemplateSha256": "67bc5216f976bce75a6793c5eb33181b777828c34fb7e0573d31073d2ad42bc9", + "reviewedCatalogLock": { + "templateLockHash": "tpl_70253a97", + "galleryTemplateLockHash": "tpl_c88fe575", + "promptSettingsHash": "ps_6b582e00" + }, + "promptSha256": "58a529a3aed7d1f22d7d29a7c7995135d6d14488caf9785fec647136763b1f97", + "inputSha256": "50270382b4b730b87f79b775accaeeb81f3ff8885cd3d2cea94830206fbc181b", + "inputLocatorSha256": "27d164af0dd37aaced849fc5243e4d05e95e8a5f75a1b9a3c6b0942df95b540a" + }, + "qwen_bookshop_gouache": { + "workflowId": "QwenImageModularPipeline:edit_image", + "sourceTaskTemplateId": "task-template:qwen-image-2512:edit-image:v1", + "retainedGraphHash": "sha256:canonical-graph-v1:7c05a757728207dbd039194383498c67578647f594c51042bd041297584d99c5", + "originalReceiptSha256": "47e7d688d1f45209de2600fe1f87a5c6d683a55e4b5acb113cc26d1087df31d5", + "reviewedTemplateSha256": "3163da25258525f8cb2c8a71b64a89e5445424ed1ad0a8b44b7321aafceb8175", + "reviewedCatalogLock": { + "templateLockHash": "tpl_a9dd9a74", + "galleryTemplateLockHash": "tpl_bb0efb52", + "promptSettingsHash": "ps_f2c73a20" + }, + "promptSha256": "376a3128d40baffc4a7f7bb8e6afd3c89910458a9bdb31a66bae3c1c9da06b0a", + "inputSha256": "ff045be510a0e88cbab69bbe8c3794dd26bd19036bdec26a63a5b6ea5a11bc66", + "inputLocatorSha256": "14627dfda9752049b179aa2139fb528a313026b5a223de7cd613157d11f2442f" + }, + "kontext_wide_water_alpine_ridge": { + "workflowId": "FluxKontextInpaintPipeline:outpaint", + "sourceTaskTemplateId": "task-template:flux-kontext-inpaint-direct:outpaint:v1", + "retainedGraphHash": "sha256:canonical-graph-v1:991400ad01692ea30254b9cacabc637b1f13b2156533cc4ccd05d1bd2df9a53c", + "originalReceiptSha256": "fabdf2609cbf5d838834845a08c6d12d08401d670edfc34d67a370efbf40414c", + "reviewedTemplateSha256": "8ae90dc2b352689446effd182c4ad144c4e555d5b76fa3adbdb77fa4b767d119", + "reviewedCatalogLock": { + "templateLockHash": "tpl_7b0786de", + "galleryTemplateLockHash": "tpl_1b8d91bd", + "promptSettingsHash": "ps_781a8232" + }, + "promptSha256": "239d6f0f8936a4f70eb01b4b26d1e07fffe766d3fde6d5635e85ffb7d3bd6a57", + "inputSha256": "50270382b4b730b87f79b775accaeeb81f3ff8885cd3d2cea94830206fbc181b", + "inputLocatorSha256": "27d164af0dd37aaced849fc5243e4d05e95e8a5f75a1b9a3c6b0942df95b540a" + }, + "chroma_alpine_block_print": { + "workflowId": "ChromaImg2ImgPipeline:edit_image", + "sourceTaskTemplateId": "task-template:chroma1-hd-img2img:edit-image:v1", + "retainedGraphHash": "sha256:canonical-graph-v1:3f23ca4ba74ed0ec547deb55013ac0d0335dba063505c3721c4aa6447caf31b6", + "originalReceiptSha256": "dd23974fab77ebe91e46ed5734e61a75638f10cc0ace0e54240f6afaf233c72b", + "reviewedTemplateSha256": "fbe83f016a250a5749f63a2b3eaa8e9806fc0d0c4b4f849a91a6f2094425dcb0", + "reviewedCatalogLock": { + "templateLockHash": "tpl_89dabcbe", + "galleryTemplateLockHash": "tpl_cda267e7", + "promptSettingsHash": "ps_b12d1fc3" + }, + "promptSha256": "16e06292815a5e4830f50ee7e6ea8f3d6e1e119cbab1223ae8ad9e63f15629f8", + "inputSha256": "88290a96bc8d52f11f2d1e3c0c0e04c2027661816e54b57d7d4739d731ca1e75", + "inputLocatorSha256": "ea52f8405f1f8a16665d592b97911cefd882fa19f3eeaea1598162a41817dc36" + }, + "joyimage_base_cobalt_paper_band": { + "workflowId": "JoyImageEditPipeline:edit_image", + "sourceTaskTemplateId": "task-template:joyimage-edit:edit-image:v1", + "retainedGraphHash": "sha256:canonical-graph-v1:f888affd299d0162c7dc01ff45d61ef3d3476ed7625141d8f6d2b4d8c4e6cdf7", + "originalReceiptSha256": "71b096416a43857e71643677e3288af3e75aa96312cbc24673f26ce8824ce46d", + "reviewedTemplateSha256": "895ec1f44e28507344c4bdabd3a3c07c3fe985d5b0fc0b5373f91ec8ad1f92d0", + "reviewedCatalogLock": { + "templateLockHash": "tpl_483e619b", + "galleryTemplateLockHash": "tpl_ef76cf20", + "promptSettingsHash": "ps_5d13f8f9" + }, + "promptSha256": "cdd8bb0acd8defd0a5defb64a19fa3f12f74d54f40a2b1e405f5b5c1bd005797", + "inputSha256": "0a41a9c56b98945e60c96ef796660c35b2cab7bf0b36d5e84ab0d97ef97f0a5a", + "inputLocatorSha256": "e6b781cc8a8fc7ccbd32136c83882dbfb6e034ca9770ab5fba37138841d3772a" + }, + "sdxl_blue_glass_on_linen": { + "workflowId": "StableDiffusionXLPipeline:edit_image", + "sourceTaskTemplateId": "task-template:sdxl-base:edit-image:v1", + "retainedGraphHash": "sha256:canonical-graph-v1:b2fb94a00ca2033f808f3824262500fbad51b761bfa8e7b93079350f26a961ae", + "originalReceiptSha256": "511a0b135e417c10f9a3e9e04b6b35b5aa391ab3b084ec3df25fc66bf6d8d6e3", + "reviewedTemplateSha256": "c54124fc0e1c94b88c70853b0102ad94e7cbbe4d5761528d8c699f2ecd0d6be2", + "reviewedCatalogLock": { + "templateLockHash": "tpl_7afc46a9", + "galleryTemplateLockHash": "tpl_bc28f7ef", + "promptSettingsHash": "ps_1be10bde" + }, + "promptSha256": "ea8e397aa5a60394715dc6a474f681cb63fe9d3a4b4cb40b7d21c86b6f65bfab", + "inputSha256": "0a41a9c56b98945e60c96ef796660c35b2cab7bf0b36d5e84ab0d97ef97f0a5a", + "inputLocatorSha256": "230a008162b81fcefb15b439dff526362781a3298a297d428469ebc47f7ae9c8" + }, + "qwen_2512_cobalt_backdrop_repair": { + "workflowId": "QwenImageModularPipeline:inpaint", + "sourceTaskTemplateId": "task-template:qwen-image-2512:inpaint:v1", + "retainedGraphHash": "sha256:canonical-graph-v1:5480e0491b621010f2530b034c25a8457f3a3be63b1bb20359b39ab68356be7a", + "originalReceiptSha256": "060b1b3de7cb4a05fe61363c8e6ae58cddddad647f8299a85feb6d8759bf5fb8", + "reviewedTemplateSha256": "9448d9e6aed3bf64c4ada3bf63c282f7cbc03c8e6a5ade076450af1d21a9b800", + "reviewedCatalogLock": { + "templateLockHash": "tpl_5970cf80", + "galleryTemplateLockHash": "tpl_05825928", + "promptSettingsHash": "ps_499eb957" + }, + "promptSha256": "acbac448403136a5043aeadaed0bf7e7638ab0c2c29b41ae6f58d73a12f033ee", + "inputSha256": "f5db354dc97ea11898d868898c5cc8ef454bb75ffe098b00bb2f06bc89f85885", + "inputLocatorSha256": "6202347afddec09dd0c3801941f6d173882dfd06148eb2defc95d71551f4a7ce", + "maskSha256": "75ce495cdb65e3cb92cbd1c2ed94546d3f946e86642095d08334be13fd8a8b8f" + }, + "flux1_dev_limestone_studio_scratch_repair": { + "workflowId": "FluxDevPipeline:inpaint", + "sourceTaskTemplateId": "task-template:flux-dev:inpaint:v1", + "retainedGraphHash": "sha256:canonical-graph-v1:3ca6c83955149d17954a830a5e2f1200d06bedfae40b693d620157b1606184b5", + "originalReceiptSha256": "f3a931273edeb2e41d23016dfd13d6568222cd92e21a4a52280afa814d59f384", + "reviewedTemplateSha256": "fe963e2fc85d8c21f11d606e545a9dcf5d63e5b2abad4b30900cdb64e5a25d36", + "reviewedCatalogLock": { + "templateLockHash": "tpl_d40951ce", + "galleryTemplateLockHash": "tpl_eaa910f1", + "promptSettingsHash": "ps_c7610cad" + }, + "promptSha256": "cdcd113dd8102aba0f1838ecc02a170532e8b79ab574afc47d30bbdf7aa95d4d", + "inputSha256": "e75c20f0e8a74e283b996bf526e6ea74535ed24125ad97c2d92508d3435d7a87", + "inputLocatorSha256": "69ba088466bbd714eba0a70d1dc24984230ca1ac74b00ac0ff1bbcb29675799d", + "maskSha256": "1f48775f2826f84e0c5b55f16f3475bdc80ecad8b931d6b0279598610e9a828d" + }, + "zimage_seamless_cobalt_backdrop": { + "workflowId": "ZImageInpaintPipeline:inpaint", + "sourceTaskTemplateId": "task-template:z-image-inpaint-direct:inpaint:v1", + "retainedGraphHash": "sha256:canonical-graph-v1:262959c3db75dc58cc10c7ba5efafd540dac6a33ad4bd095cfe264ec83ad5dde", + "originalReceiptSha256": "00f04c60e1fc37087db0c90144a1b5c27b1e211e88b1ef8ec567c0ff3eb9853c", + "reviewedTemplateSha256": "2a72cfcaddfa6e69098ca7feceef620a98bc50441abfa93f509c0a18711de478", + "reviewedCatalogLock": { + "templateLockHash": "tpl_8bce11b8", + "galleryTemplateLockHash": "tpl_fc6e804a", + "promptSettingsHash": "ps_06840c42" + }, + "promptSha256": "5185e39c6185fb373d310edd7d1dd7253037a2ee70206591de4f28e7dd9ad700", + "inputSha256": "e75c20f0e8a74e283b996bf526e6ea74535ed24125ad97c2d92508d3435d7a87", + "inputLocatorSha256": "69ba088466bbd714eba0a70d1dc24984230ca1ac74b00ac0ff1bbcb29675799d", + "maskSha256": "1f48775f2826f84e0c5b55f16f3475bdc80ecad8b931d6b0279598610e9a828d" + }, + "sdxl_pag_cobalt_wall": { + "workflowId": "StableDiffusionXLPAGPipeline:inpaint", + "sourceTaskTemplateId": "task-template:sdxl-pag:inpaint:v1", + "retainedGraphHash": "sha256:canonical-graph-v1:9a0b6bef1c8170f91b03876c7b3b0de283e4e5494f6349f2e52759470dd7922b", + "originalReceiptSha256": "9380533f675c9491fe99d896740d7366ab9471ea617ab743d8af35af722f321c", + "reviewedTemplateSha256": "b95bd1828ace6db13d5ea54c01f8e9449bfcd73552ae371dcb52ce1838ecad8d", + "reviewedCatalogLock": { + "templateLockHash": "tpl_c39dfda4", + "galleryTemplateLockHash": "tpl_ceafa1fa", + "promptSettingsHash": "ps_52a8b07a" + }, + "promptSha256": "159253308aba23cc8f6955da96e48e550533d368ca286ad70b6caa601d1291e4", + "inputSha256": "e75c20f0e8a74e283b996bf526e6ea74535ed24125ad97c2d92508d3435d7a87", + "inputLocatorSha256": "69ba088466bbd714eba0a70d1dc24984230ca1ac74b00ac0ff1bbcb29675799d", + "maskSha256": "1f48775f2826f84e0c5b55f16f3475bdc80ecad8b931d6b0279598610e9a828d" + }, + "flux_klein_open_glacial_lake": { + "workflowId": "Flux2KleinInpaintPipeline:inpaint", + "sourceTaskTemplateId": "task-template:flux2-klein-inpaint-direct:inpaint:v1", + "retainedGraphHash": "sha256:canonical-graph-v1:e243008b76ef57a46997f5a6b9e12c84dd7dee5ae863392b8a1a6116869a6e9a", + "originalReceiptSha256": "fdc033422ec6517632bed64a97b54322e17e329956edc239716e4fd599f2c4cd", + "reviewedTemplateSha256": "e100c45ec42735d37c8eb9c6d442d29822234c41d050ba311b178e38ee14baa5", + "reviewedCatalogLock": { + "templateLockHash": "tpl_9e39e3c0", + "galleryTemplateLockHash": "tpl_23b2c7db", + "promptSettingsHash": "ps_cafe7c6f" + }, + "promptSha256": "5add93d6165a7d3670d71c04b2d50bdf45e061ca914038396869d70df78efee4", + "inputSha256": "88290a96bc8d52f11f2d1e3c0c0e04c2027661816e54b57d7d4739d731ca1e75", + "inputLocatorSha256": "b7e9b68e47a60f438c82f778b960f66d58d319de50749d453a9aa0c30c4df45a", + "maskSha256": "877d3c4e0e976d3885419f3f327d8974394d69aca35667e5479b944880d84e04" } } diff --git a/config/template-asset-rights.v1.json b/config/template-asset-rights.v1.json index 79c87a30..43ddd5ba 100644 --- a/config/template-asset-rights.v1.json +++ b/config/template-asset-rights.v1.json @@ -1,6 +1,6 @@ { "schemaVersion": 1, - "assetSetId": "sha256:canonical-json:1dd39d0a777c1194ca6722527d6b1f8dd1f9f02e89b64fdc2ef056a64748d189", + "assetSetId": "sha256:canonical-json:649f3cf808a22d61c582c6c78e4f62b70fd4854f19d78a8d0fd442d7986fdb30", "records": [ { "path": "template-gallery/ace_step_audio_continuation.wav", @@ -474,6 +474,33 @@ "acceptedOutputSHA256": "c7da13667186b8303eab34103e3e2394e590166cc14a0f5c2c769af8942f035d", "humanApprovalPacketSHA256": "95893cb17e10b15ae6b23d8b31b57b0e14b9af96f822d75edbc6b68971afb11d" }, + { + "path": "template-gallery/chroma_alpine_block_print.webp", + "sha256": "sha256:bytes:c8c30a11f94c3100910bd565e04097ebc36fad1c412f7adaa8496092ef55a804", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Exact approved file captured from a saved MoDiff workflow", + "sourceUrl": "https://huggingface.co/lodestones/Chroma1-HD/tree/0e0c60ece1e82b17cb7f77342d765ba5024c40c0", + "sourceRevision": "lodestones/Chroma1-HD@0e0c60ece1e82b17cb7f77342d765ba5024c40c0", + "sourceLicense": "Maintainer-authorized file with publisher terms retained", + "modelTerms": [ + "Publisher model terms at https://huggingface.co/lodestones/Chroma1-HD/tree/0e0c60ece1e82b17cb7f77342d765ba5024c40c0" + ], + "aiGenerated": true, + "humanLikenessConsent": "synthetic", + "marks": [], + "requiredAttribution": [ + "lodestones/Chroma1-HD@0e0c60ece1e82b17cb7f77342d765ba5024c40c0 https://huggingface.co/lodestones/Chroma1-HD/tree/0e0c60ece1e82b17cb7f77342d765ba5024c40c0" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "60b01498a2df5f4e4622cdc2f9a43c83d187820780d2425a19718c13707db501", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "chroma_alpine_block_print" + }, { "path": "template-gallery/chroma_restored_cobalt_backdrop.webp", "sha256": "sha256:bytes:66e00fa95a61ab9d0f77bce099476dd8ffc569697fe59fb509e8c589402dad9b", @@ -739,6 +766,33 @@ "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", "provenanceTemplateId": "flowers_after_rain" }, + { + "path": "template-gallery/flux1_dev_limestone_studio_scratch_repair.webp", + "sha256": "sha256:bytes:b5fe5ad2e6acf82a7fb6cc2730cac9fb9c588a8e0263736e4a16dc2e77442f49", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Exact approved file captured from a saved MoDiff workflow", + "sourceUrl": "https://huggingface.co/black-forest-labs/FLUX.1-dev/tree/3de623fc3c33e44ffbe2bad470d0f45bccf2eb21", + "sourceRevision": "black-forest-labs/FLUX.1-dev@3de623fc3c33e44ffbe2bad470d0f45bccf2eb21", + "sourceLicense": "Maintainer-authorized file with publisher terms retained", + "modelTerms": [ + "Publisher model terms at https://huggingface.co/black-forest-labs/FLUX.1-dev/tree/3de623fc3c33e44ffbe2bad470d0f45bccf2eb21" + ], + "aiGenerated": true, + "humanLikenessConsent": "synthetic", + "marks": [], + "requiredAttribution": [ + "black-forest-labs/FLUX.1-dev@3de623fc3c33e44ffbe2bad470d0f45bccf2eb21 https://huggingface.co/black-forest-labs/FLUX.1-dev/tree/3de623fc3c33e44ffbe2bad470d0f45bccf2eb21" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "60b01498a2df5f4e4622cdc2f9a43c83d187820780d2425a19718c13707db501", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "flux1_dev_limestone_studio_scratch_repair" + }, { "creatorOrRightsholder": "MoDiff project maintainers, with exact-file rights explicitly attested by the maintainer", "creationMethod": "AI-generated native FLUX.2 Klein image; the edit preserves the declared approved synthetic cube input", @@ -1222,6 +1276,60 @@ "humanApprovalPacketSHA256": "351d122936dc8df9c3fb6217005641dd2cc2ecddc39cd7cd7fadc2939def70b3", "provenanceTemplateId": "flux_fill_outpaint" }, + { + "path": "template-gallery/flux_klein_alpine_lake_panorama.webp", + "sha256": "sha256:bytes:3f2435f483779b1b27d9dad2347c055dc8855373d90aad6442174be9d341d059", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Exact approved file captured from a saved MoDiff workflow", + "sourceUrl": "https://huggingface.co/black-forest-labs/FLUX.2-klein-4B/tree/e7b7dc27f91deacad38e78976d1f2b499d76a294", + "sourceRevision": "black-forest-labs/FLUX.2-klein-4B@e7b7dc27f91deacad38e78976d1f2b499d76a294", + "sourceLicense": "Maintainer-authorized file with publisher terms retained", + "modelTerms": [ + "Publisher model terms at https://huggingface.co/black-forest-labs/FLUX.2-klein-4B/tree/e7b7dc27f91deacad38e78976d1f2b499d76a294" + ], + "aiGenerated": true, + "humanLikenessConsent": "synthetic", + "marks": [], + "requiredAttribution": [ + "black-forest-labs/FLUX.2-klein-4B@e7b7dc27f91deacad38e78976d1f2b499d76a294 https://huggingface.co/black-forest-labs/FLUX.2-klein-4B/tree/e7b7dc27f91deacad38e78976d1f2b499d76a294" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "60b01498a2df5f4e4622cdc2f9a43c83d187820780d2425a19718c13707db501", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "flux_klein_alpine_lake_panorama" + }, + { + "path": "template-gallery/flux_klein_open_glacial_lake.webp", + "sha256": "sha256:bytes:32041e979ea1b3c51030e7d64eb3edee675d5c4cdc7abb596817b4e0769ce65b", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Exact approved file captured from a saved MoDiff workflow", + "sourceUrl": "https://huggingface.co/black-forest-labs/FLUX.2-klein-4B/tree/e7b7dc27f91deacad38e78976d1f2b499d76a294", + "sourceRevision": "black-forest-labs/FLUX.2-klein-4B@e7b7dc27f91deacad38e78976d1f2b499d76a294", + "sourceLicense": "Maintainer-authorized file with publisher terms retained", + "modelTerms": [ + "Publisher model terms at https://huggingface.co/black-forest-labs/FLUX.2-klein-4B/tree/e7b7dc27f91deacad38e78976d1f2b499d76a294" + ], + "aiGenerated": true, + "humanLikenessConsent": "synthetic", + "marks": [], + "requiredAttribution": [ + "black-forest-labs/FLUX.2-klein-4B@e7b7dc27f91deacad38e78976d1f2b499d76a294 https://huggingface.co/black-forest-labs/FLUX.2-klein-4B/tree/e7b7dc27f91deacad38e78976d1f2b499d76a294" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "60b01498a2df5f4e4622cdc2f9a43c83d187820780d2425a19718c13707db501", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "flux_klein_open_glacial_lake" + }, { "creatorOrRightsholder": "MoDiff project maintainers, subject to previously approved synthetic source rights and recorded model terms", "creationMethod": "Native local AI-generated output or exact deterministic layer-sheet derivative; original approved bytes retained", @@ -3810,6 +3918,33 @@ "provenanceTemplateId": "character_edit", "consumingTemplateIds": ["character_edit"] }, + { + "path": "template-gallery/inputs/chroma_alpine_block_print.before.png", + "sha256": "sha256:bytes:88290a96bc8d52f11f2d1e3c0c0e04c2027661816e54b57d7d4739d731ca1e75", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Exact approved file captured from a saved MoDiff workflow", + "sourceUrl": "https://huggingface.co/lodestones/Chroma1-HD/tree/0e0c60ece1e82b17cb7f77342d765ba5024c40c0", + "sourceRevision": "lodestones/Chroma1-HD@0e0c60ece1e82b17cb7f77342d765ba5024c40c0", + "sourceLicense": "Maintainer-authorized file with publisher terms retained", + "modelTerms": [ + "Publisher model terms at https://huggingface.co/lodestones/Chroma1-HD/tree/0e0c60ece1e82b17cb7f77342d765ba5024c40c0" + ], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "lodestones/Chroma1-HD@0e0c60ece1e82b17cb7f77342d765ba5024c40c0 https://huggingface.co/lodestones/Chroma1-HD/tree/0e0c60ece1e82b17cb7f77342d765ba5024c40c0" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "60b01498a2df5f4e4622cdc2f9a43c83d187820780d2425a19718c13707db501", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "chroma_alpine_block_print" + }, { "path": "template-gallery/inputs/chroma_restored_cobalt_backdrop.before.png", "sha256": "sha256:bytes:e75c20f0e8a74e283b996bf526e6ea74535ed24125ad97c2d92508d3435d7a87", @@ -3891,6 +4026,60 @@ "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", "provenanceTemplateId": "cogvideox_red_tram_model_railway" }, + { + "path": "template-gallery/inputs/flux1_dev_limestone_studio_scratch_repair.before.png", + "sha256": "sha256:bytes:e75c20f0e8a74e283b996bf526e6ea74535ed24125ad97c2d92508d3435d7a87", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Exact approved file captured from a saved MoDiff workflow", + "sourceUrl": "https://huggingface.co/black-forest-labs/FLUX.1-dev/tree/3de623fc3c33e44ffbe2bad470d0f45bccf2eb21", + "sourceRevision": "black-forest-labs/FLUX.1-dev@3de623fc3c33e44ffbe2bad470d0f45bccf2eb21", + "sourceLicense": "Maintainer-authorized file with publisher terms retained", + "modelTerms": [ + "Publisher model terms at https://huggingface.co/black-forest-labs/FLUX.1-dev/tree/3de623fc3c33e44ffbe2bad470d0f45bccf2eb21" + ], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "black-forest-labs/FLUX.1-dev@3de623fc3c33e44ffbe2bad470d0f45bccf2eb21 https://huggingface.co/black-forest-labs/FLUX.1-dev/tree/3de623fc3c33e44ffbe2bad470d0f45bccf2eb21" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "60b01498a2df5f4e4622cdc2f9a43c83d187820780d2425a19718c13707db501", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "flux1_dev_limestone_studio_scratch_repair" + }, + { + "path": "template-gallery/inputs/flux1_dev_limestone_studio_scratch_repair.mask.png", + "sha256": "sha256:bytes:1f48775f2826f84e0c5b55f16f3475bdc80ecad8b931d6b0279598610e9a828d", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Exact approved file captured from a saved MoDiff workflow", + "sourceUrl": "https://huggingface.co/black-forest-labs/FLUX.1-dev/tree/3de623fc3c33e44ffbe2bad470d0f45bccf2eb21", + "sourceRevision": "black-forest-labs/FLUX.1-dev@3de623fc3c33e44ffbe2bad470d0f45bccf2eb21", + "sourceLicense": "Maintainer-authorized file with publisher terms retained", + "modelTerms": [ + "Publisher model terms at https://huggingface.co/black-forest-labs/FLUX.1-dev/tree/3de623fc3c33e44ffbe2bad470d0f45bccf2eb21" + ], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "black-forest-labs/FLUX.1-dev@3de623fc3c33e44ffbe2bad470d0f45bccf2eb21 https://huggingface.co/black-forest-labs/FLUX.1-dev/tree/3de623fc3c33e44ffbe2bad470d0f45bccf2eb21" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "60b01498a2df5f4e4622cdc2f9a43c83d187820780d2425a19718c13707db501", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "flux1_dev_limestone_studio_scratch_repair" + }, { "path": "template-gallery/inputs/flux2_klein_edit.before.png", "sha256": "sha256:bytes:d5ba3943d6c0a264860ba0cde18d87e2d9554a3f7328308f4d771e082a9e0c24", @@ -4171,6 +4360,87 @@ "provenanceTemplateId": "flux_fill_outpaint", "consumingTemplateIds": ["flux_fill_outpaint"] }, + { + "path": "template-gallery/inputs/flux_klein_alpine_lake_panorama.before.png", + "sha256": "sha256:bytes:50270382b4b730b87f79b775accaeeb81f3ff8885cd3d2cea94830206fbc181b", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Exact approved file captured from a saved MoDiff workflow", + "sourceUrl": "https://huggingface.co/black-forest-labs/FLUX.2-klein-4B/tree/e7b7dc27f91deacad38e78976d1f2b499d76a294", + "sourceRevision": "black-forest-labs/FLUX.2-klein-4B@e7b7dc27f91deacad38e78976d1f2b499d76a294", + "sourceLicense": "Maintainer-authorized file with publisher terms retained", + "modelTerms": [ + "Publisher model terms at https://huggingface.co/black-forest-labs/FLUX.2-klein-4B/tree/e7b7dc27f91deacad38e78976d1f2b499d76a294" + ], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "black-forest-labs/FLUX.2-klein-4B@e7b7dc27f91deacad38e78976d1f2b499d76a294 https://huggingface.co/black-forest-labs/FLUX.2-klein-4B/tree/e7b7dc27f91deacad38e78976d1f2b499d76a294" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "60b01498a2df5f4e4622cdc2f9a43c83d187820780d2425a19718c13707db501", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "flux_klein_alpine_lake_panorama" + }, + { + "path": "template-gallery/inputs/flux_klein_open_glacial_lake.before.png", + "sha256": "sha256:bytes:88290a96bc8d52f11f2d1e3c0c0e04c2027661816e54b57d7d4739d731ca1e75", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Exact approved file captured from a saved MoDiff workflow", + "sourceUrl": "https://huggingface.co/black-forest-labs/FLUX.2-klein-4B/tree/e7b7dc27f91deacad38e78976d1f2b499d76a294", + "sourceRevision": "black-forest-labs/FLUX.2-klein-4B@e7b7dc27f91deacad38e78976d1f2b499d76a294", + "sourceLicense": "Maintainer-authorized file with publisher terms retained", + "modelTerms": [ + "Publisher model terms at https://huggingface.co/black-forest-labs/FLUX.2-klein-4B/tree/e7b7dc27f91deacad38e78976d1f2b499d76a294" + ], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "black-forest-labs/FLUX.2-klein-4B@e7b7dc27f91deacad38e78976d1f2b499d76a294 https://huggingface.co/black-forest-labs/FLUX.2-klein-4B/tree/e7b7dc27f91deacad38e78976d1f2b499d76a294" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "60b01498a2df5f4e4622cdc2f9a43c83d187820780d2425a19718c13707db501", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "flux_klein_open_glacial_lake" + }, + { + "path": "template-gallery/inputs/flux_klein_open_glacial_lake.mask.png", + "sha256": "sha256:bytes:877d3c4e0e976d3885419f3f327d8974394d69aca35667e5479b944880d84e04", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Exact approved file captured from a saved MoDiff workflow", + "sourceUrl": "https://huggingface.co/black-forest-labs/FLUX.2-klein-4B/tree/e7b7dc27f91deacad38e78976d1f2b499d76a294", + "sourceRevision": "black-forest-labs/FLUX.2-klein-4B@e7b7dc27f91deacad38e78976d1f2b499d76a294", + "sourceLicense": "Maintainer-authorized file with publisher terms retained", + "modelTerms": [ + "Publisher model terms at https://huggingface.co/black-forest-labs/FLUX.2-klein-4B/tree/e7b7dc27f91deacad38e78976d1f2b499d76a294" + ], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "black-forest-labs/FLUX.2-klein-4B@e7b7dc27f91deacad38e78976d1f2b499d76a294 https://huggingface.co/black-forest-labs/FLUX.2-klein-4B/tree/e7b7dc27f91deacad38e78976d1f2b499d76a294" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "60b01498a2df5f4e4622cdc2f9a43c83d187820780d2425a19718c13707db501", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "flux_klein_open_glacial_lake" + }, { "path": "template-gallery/inputs/flux_kontext_edit.before.webp", "sha256": "sha256:bytes:a7b61f36043354596eb01e702474300b222cb32e304bcf259506cad03917ce9b", @@ -4323,43 +4593,178 @@ "provenanceTemplateId": "hunyuan_dit_green_glass_study" }, { - "path": "template-gallery/inputs/lcm_dawn_alpine_lake.before.webp", - "sha256": "sha256:bytes:25fe06d8e93645bc6ff29928556a0cd654aa6d70178d435268b3d17e9188feaa", + "path": "template-gallery/inputs/joy_plus_lavender_on_limestone.before.png", + "sha256": "sha256:bytes:0a41a9c56b98945e60c96ef796660c35b2cab7bf0b36d5e84ab0d97ef97f0a5a", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", - "humanLikenessConsent": "not-applicable", - "marks": [], - "reviewedBy": "MoDiff workspace maintainer", - "reviewedAt": "2026-11-20", - "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "ba369c5fff89e379be66714d3ecbf1a0e3a9555e2b5ffbc9cb54210d862ec30b", - "publicationBasis": "Maintainer approved the exact Whisper JSON and both exact LCM images, accepted the disclosed LCM changes, and authorized publication of the associated redacted Gallery records.", - "creationMethod": "Exact retained PRX text-generated synthetic daylight lake image used as the LCM Edit source", - "sourceUrl": "https://huggingface.co/Photoroom/prx-512-t2i-sft/resolve/2996423bc26e8eaca48774fac1797484214dfea0/README.md", - "sourceRevision": "Photoroom/prx-512-t2i-sft@2996423bc26e8eaca48774fac1797484214dfea0", - "sourceLicense": "Project-authored synthetic content processed by recorded model(s), subject to their applicable terms", + "creationMethod": "Exact approved file captured from a saved MoDiff workflow", + "sourceUrl": "https://huggingface.co/jdopensource/JoyAI-Image-Edit-Plus-Diffusers/tree/c2686460c7b64d8aa11bc4d0da423fb316b33f9e", + "sourceRevision": "jdopensource/JoyAI-Image-Edit-Plus-Diffusers@c2686460c7b64d8aa11bc4d0da423fb316b33f9e", + "sourceLicense": "Maintainer-authorized file with publisher terms retained", "modelTerms": [ - "Photoroom/prx-512-t2i-sft@2996423bc26e8eaca48774fac1797484214dfea0 — Apache-2.0 declaration and Gemma use restrictions. https://huggingface.co/Photoroom/prx-512-t2i-sft/resolve/2996423bc26e8eaca48774fac1797484214dfea0/README.md", - "Pinned Photoroom notice names Google T5Gemma 2B-2B UL2 under the Gemma Terms and FLUX.1 Schnell VAE under Apache-2.0. https://huggingface.co/Photoroom/prx-512-t2i-sft/resolve/2996423bc26e8eaca48774fac1797484214dfea0/NOTICE", - "Gemma Terms and use policy. https://ai.google.dev/gemma/terms · https://gemma.ai/resources/prohibited-use/" + "Publisher model terms at https://huggingface.co/jdopensource/JoyAI-Image-Edit-Plus-Diffusers/tree/c2686460c7b64d8aa11bc4d0da423fb316b33f9e" ], - "aiGenerated": true, + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], "requiredAttribution": [ - "Photoroom Inc., PRX 512 SFT. https://huggingface.co/Photoroom/prx-512-t2i-sft/resolve/2996423bc26e8eaca48774fac1797484214dfea0/README.md", - "Google T5Gemma and Black Forest Labs FLUX.1 Schnell VAE component notices. https://huggingface.co/Photoroom/prx-512-t2i-sft/resolve/2996423bc26e8eaca48774fac1797484214dfea0/NOTICE" + "jdopensource/JoyAI-Image-Edit-Plus-Diffusers@c2686460c7b64d8aa11bc4d0da423fb316b33f9e https://huggingface.co/jdopensource/JoyAI-Image-Edit-Plus-Diffusers/tree/c2686460c7b64d8aa11bc4d0da423fb316b33f9e" ], - "assetLicense": "MoDiff-Gallery-Restricted-1.0", - "provenanceTemplateId": "lcm_dawn_alpine_lake" + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "60b01498a2df5f4e4622cdc2f9a43c83d187820780d2425a19718c13707db501", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "joy_plus_lavender_on_limestone" }, { - "path": "template-gallery/inputs/ltx_boardwalk_tracking.end.webp", - "sha256": "sha256:bytes:52ea89c0cdec3142162156be07af12a06a14ad623b68c9700ccbc82bf889100d", + "path": "template-gallery/inputs/joyimage_base_cobalt_paper_band.before.png", + "sha256": "sha256:bytes:0a41a9c56b98945e60c96ef796660c35b2cab7bf0b36d5e84ab0d97ef97f0a5a", "publishDecision": "approved", "holdReason": null, - "creatorOrRightsholder": "MoDiff project maintainers, subject to the recorded source and model terms", - "creationMethod": "AI-generated Gallery media or deterministic derivative", - "sourceUrl": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Exact approved file captured from a saved MoDiff workflow", + "sourceUrl": "https://huggingface.co/jdopensource/JoyAI-Image-Edit-Diffusers/tree/4b41fb25d961f37668750178ccbb380da326201c", + "sourceRevision": "jdopensource/JoyAI-Image-Edit-Diffusers@4b41fb25d961f37668750178ccbb380da326201c", + "sourceLicense": "Maintainer-authorized file with publisher terms retained", + "modelTerms": [ + "Publisher model terms at https://huggingface.co/jdopensource/JoyAI-Image-Edit-Diffusers/tree/4b41fb25d961f37668750178ccbb380da326201c" + ], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "jdopensource/JoyAI-Image-Edit-Diffusers@4b41fb25d961f37668750178ccbb380da326201c https://huggingface.co/jdopensource/JoyAI-Image-Edit-Diffusers/tree/4b41fb25d961f37668750178ccbb380da326201c" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "60b01498a2df5f4e4622cdc2f9a43c83d187820780d2425a19718c13707db501", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "joyimage_base_cobalt_paper_band" + }, + { + "path": "template-gallery/inputs/kandinsky3_smoked_glass_on_limestone.before.png", + "sha256": "sha256:bytes:0a41a9c56b98945e60c96ef796660c35b2cab7bf0b36d5e84ab0d97ef97f0a5a", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Exact approved file captured from a saved MoDiff workflow", + "sourceUrl": "https://huggingface.co/kandinsky-community/kandinsky-3/tree/bf79e6c219da8a94abb50235fdc4567eb8fb4632", + "sourceRevision": "kandinsky-community/kandinsky-3@bf79e6c219da8a94abb50235fdc4567eb8fb4632", + "sourceLicense": "Maintainer-authorized file with publisher terms retained", + "modelTerms": [ + "Publisher model terms at https://huggingface.co/kandinsky-community/kandinsky-3/tree/bf79e6c219da8a94abb50235fdc4567eb8fb4632" + ], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "kandinsky-community/kandinsky-3@bf79e6c219da8a94abb50235fdc4567eb8fb4632 https://huggingface.co/kandinsky-community/kandinsky-3/tree/bf79e6c219da8a94abb50235fdc4567eb8fb4632" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "60b01498a2df5f4e4622cdc2f9a43c83d187820780d2425a19718c13707db501", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "kandinsky3_smoked_glass_on_limestone" + }, + { + "path": "template-gallery/inputs/kontext_wide_water_alpine_ridge.before.png", + "sha256": "sha256:bytes:50270382b4b730b87f79b775accaeeb81f3ff8885cd3d2cea94830206fbc181b", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Exact approved file captured from a saved MoDiff workflow", + "sourceUrl": "https://huggingface.co/black-forest-labs/FLUX.1-Kontext-dev/tree/24e9dedc4ef646698dc8eb4e18ae2cec3c9fea0d", + "sourceRevision": "black-forest-labs/FLUX.1-Kontext-dev@24e9dedc4ef646698dc8eb4e18ae2cec3c9fea0d", + "sourceLicense": "Maintainer-authorized file with publisher terms retained", + "modelTerms": [ + "Publisher model terms at https://huggingface.co/black-forest-labs/FLUX.1-Kontext-dev/tree/24e9dedc4ef646698dc8eb4e18ae2cec3c9fea0d" + ], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "black-forest-labs/FLUX.1-Kontext-dev@24e9dedc4ef646698dc8eb4e18ae2cec3c9fea0d https://huggingface.co/black-forest-labs/FLUX.1-Kontext-dev/tree/24e9dedc4ef646698dc8eb4e18ae2cec3c9fea0d" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "60b01498a2df5f4e4622cdc2f9a43c83d187820780d2425a19718c13707db501", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "kontext_wide_water_alpine_ridge" + }, + { + "path": "template-gallery/inputs/lcm_dawn_alpine_lake.before.webp", + "sha256": "sha256:bytes:25fe06d8e93645bc6ff29928556a0cd654aa6d70178d435268b3d17e9188feaa", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "humanLikenessConsent": "not-applicable", + "marks": [], + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-20", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "ba369c5fff89e379be66714d3ecbf1a0e3a9555e2b5ffbc9cb54210d862ec30b", + "publicationBasis": "Maintainer approved the exact Whisper JSON and both exact LCM images, accepted the disclosed LCM changes, and authorized publication of the associated redacted Gallery records.", + "creationMethod": "Exact retained PRX text-generated synthetic daylight lake image used as the LCM Edit source", + "sourceUrl": "https://huggingface.co/Photoroom/prx-512-t2i-sft/resolve/2996423bc26e8eaca48774fac1797484214dfea0/README.md", + "sourceRevision": "Photoroom/prx-512-t2i-sft@2996423bc26e8eaca48774fac1797484214dfea0", + "sourceLicense": "Project-authored synthetic content processed by recorded model(s), subject to their applicable terms", + "modelTerms": [ + "Photoroom/prx-512-t2i-sft@2996423bc26e8eaca48774fac1797484214dfea0 — Apache-2.0 declaration and Gemma use restrictions. https://huggingface.co/Photoroom/prx-512-t2i-sft/resolve/2996423bc26e8eaca48774fac1797484214dfea0/README.md", + "Pinned Photoroom notice names Google T5Gemma 2B-2B UL2 under the Gemma Terms and FLUX.1 Schnell VAE under Apache-2.0. https://huggingface.co/Photoroom/prx-512-t2i-sft/resolve/2996423bc26e8eaca48774fac1797484214dfea0/NOTICE", + "Gemma Terms and use policy. https://ai.google.dev/gemma/terms · https://gemma.ai/resources/prohibited-use/" + ], + "aiGenerated": true, + "requiredAttribution": [ + "Photoroom Inc., PRX 512 SFT. https://huggingface.co/Photoroom/prx-512-t2i-sft/resolve/2996423bc26e8eaca48774fac1797484214dfea0/README.md", + "Google T5Gemma and Black Forest Labs FLUX.1 Schnell VAE component notices. https://huggingface.co/Photoroom/prx-512-t2i-sft/resolve/2996423bc26e8eaca48774fac1797484214dfea0/NOTICE" + ], + "assetLicense": "MoDiff-Gallery-Restricted-1.0", + "provenanceTemplateId": "lcm_dawn_alpine_lake" + }, + { + "path": "template-gallery/inputs/longcat_clear_glass_at_the_bookshop.before.webp", + "sha256": "sha256:bytes:ff045be510a0e88cbab69bbe8c3794dd26bd19036bdec26a63a5b6ea5a11bc66", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Exact approved file captured from a saved MoDiff workflow", + "sourceUrl": "https://huggingface.co/meituan-longcat/LongCat-Image-Edit/tree/7b54ef423aa7854be7861600024be5c56ab7875a", + "sourceRevision": "meituan-longcat/LongCat-Image-Edit@7b54ef423aa7854be7861600024be5c56ab7875a", + "sourceLicense": "Maintainer-authorized file with publisher terms retained", + "modelTerms": [ + "Publisher model terms at https://huggingface.co/meituan-longcat/LongCat-Image-Edit/tree/7b54ef423aa7854be7861600024be5c56ab7875a" + ], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "meituan-longcat/LongCat-Image-Edit@7b54ef423aa7854be7861600024be5c56ab7875a https://huggingface.co/meituan-longcat/LongCat-Image-Edit/tree/7b54ef423aa7854be7861600024be5c56ab7875a" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "60b01498a2df5f4e4622cdc2f9a43c83d187820780d2425a19718c13707db501", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "longcat_clear_glass_at_the_bookshop" + }, + { + "path": "template-gallery/inputs/ltx_boardwalk_tracking.end.webp", + "sha256": "sha256:bytes:52ea89c0cdec3142162156be07af12a06a14ad623b68c9700ccbc82bf889100d", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, subject to the recorded source and model terms", + "creationMethod": "AI-generated Gallery media or deterministic derivative", + "sourceUrl": null, "sourceRevision": null, "sourceLicense": "Original generation or recorded workflow input; see modelTerms", "modelTerms": [ @@ -4496,6 +4901,33 @@ "publicationBasis": "Activate and publish the two approved Gallery candidates using their retained native runs.", "provenanceTemplateId": "marigold_depth_synthetic_ramp" }, + { + "path": "template-gallery/inputs/omnigen_cobalt_against_soft_apricot.before.png", + "sha256": "sha256:bytes:0a41a9c56b98945e60c96ef796660c35b2cab7bf0b36d5e84ab0d97ef97f0a5a", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Exact approved file captured from a saved MoDiff workflow", + "sourceUrl": "https://huggingface.co/Shitao/OmniGen-v1-diffusers/tree/016e2f61d12a98303f6bbdf122687694d7984268", + "sourceRevision": "Shitao/OmniGen-v1-diffusers@016e2f61d12a98303f6bbdf122687694d7984268", + "sourceLicense": "Maintainer-authorized file with publisher terms retained", + "modelTerms": [ + "Publisher model terms at https://huggingface.co/Shitao/OmniGen-v1-diffusers/tree/016e2f61d12a98303f6bbdf122687694d7984268" + ], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "Shitao/OmniGen-v1-diffusers@016e2f61d12a98303f6bbdf122687694d7984268 https://huggingface.co/Shitao/OmniGen-v1-diffusers/tree/016e2f61d12a98303f6bbdf122687694d7984268" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "60b01498a2df5f4e4622cdc2f9a43c83d187820780d2425a19718c13707db501", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "omnigen_cobalt_against_soft_apricot" + }, { "path": "template-gallery/inputs/qwen-carton-layout-control.png", "sha256": "sha256:bytes:b748201353f02543c2a48920bb514c2741366151df45bf6c4904aeb0f32f1a67", @@ -4519,61 +4951,62 @@ "reviewClass": "standard-human-attestation" }, { - "path": "template-gallery/inputs/qwen_character_angles.before.webp", - "sha256": "sha256:bytes:4b1b8d9e351abd437f2ffff90cc6a958160a87863ba4d8e85a0aa80a37e7a10e", + "path": "template-gallery/inputs/qwen_2511_pale_amber_on_limestone.before.png", + "sha256": "sha256:bytes:0a41a9c56b98945e60c96ef796660c35b2cab7bf0b36d5e84ab0d97ef97f0a5a", "publishDecision": "approved", "holdReason": null, - "creatorOrRightsholder": "MoDiff project maintainers, subject to the recorded source and model terms", - "creationMethod": "AI-generated Gallery media or deterministic derivative", - "sourceUrl": "https://huggingface.co/Qwen/Qwen-Image-Edit/tree/ac7f9318f633fc4b5778c59367c8128225f1e3de", - "sourceRevision": "Qwen/Qwen-Image-Edit@ac7f9318f633fc4b5778c59367c8128225f1e3de", - "sourceLicense": "Original generation or recorded workflow input; see modelTerms", + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Exact approved file captured from a saved MoDiff workflow", + "sourceUrl": "https://huggingface.co/Qwen/Qwen-Image-Edit-2511/tree/6f3ccc0b56e431dc6a0c2b2039706d7d26f22cb9", + "sourceRevision": "Qwen/Qwen-Image-Edit-2511@6f3ccc0b56e431dc6a0c2b2039706d7d26f22cb9", + "sourceLicense": "Maintainer-authorized file with publisher terms retained", "modelTerms": [ - "Qwen/Qwen-Image-Edit: Apache-2.0; https://huggingface.co/Qwen/Qwen-Image-Edit/tree/ac7f9318f633fc4b5778c59367c8128225f1e3de" + "Publisher model terms at https://huggingface.co/Qwen/Qwen-Image-Edit-2511/tree/6f3ccc0b56e431dc6a0c2b2039706d7d26f22cb9" ], - "aiGenerated": true, - "humanLikenessConsent": "synthetic", + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", "marks": [], - "requiredAttribution": [], + "requiredAttribution": [ + "Qwen/Qwen-Image-Edit-2511@6f3ccc0b56e431dc6a0c2b2039706d7d26f22cb9 https://huggingface.co/Qwen/Qwen-Image-Edit-2511/tree/6f3ccc0b56e431dc6a0c2b2039706d7d26f22cb9" + ], "assetLicense": "Apache-2.0", - "reviewedBy": "SOURAV DAS", - "reviewedAt": "2026-08-03", - "reviewClass": "standard-human-attestation", - "provenanceTemplateId": "qwen_character_angles", - "consumingTemplateIds": ["qwen_character_angles"] + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "60b01498a2df5f4e4622cdc2f9a43c83d187820780d2425a19718c13707db501", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "qwen_2511_pale_amber_on_limestone" }, { - "path": "template-gallery/inputs/qwen_control_image_layout.before.png", - "sha256": "sha256:bytes:b748201353f02543c2a48920bb514c2741366151df45bf6c4904aeb0f32f1a67", + "path": "template-gallery/inputs/qwen_2512_cobalt_backdrop_repair.before.png", + "sha256": "sha256:bytes:f5db354dc97ea11898d868898c5cc8ef454bb75ffe098b00bb2f06bc89f85885", "publishDecision": "approved", "holdReason": null, - "creatorOrRightsholder": "MoDiff project maintainers, subject to the recorded source and model terms", - "creationMethod": "AI-generated Gallery media or deterministic derivative", - "sourceUrl": "https://huggingface.co/InstantX/Qwen-Image-ControlNet-Union/tree/b13036f066d6dee7c20513e263d3d673055e9de8", - "sourceRevision": "InstantX/Qwen-Image-ControlNet-Union@b13036f066d6dee7c20513e263d3d673055e9de8 | Qwen/Qwen-Image-2512@25468b98e3276ca6700de15c6628e51b7de54a26", - "sourceLicense": "Original generation or recorded workflow input; see modelTerms", + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Exact approved file captured from a saved MoDiff workflow", + "sourceUrl": "https://huggingface.co/Qwen/Qwen-Image-2512/tree/25468b98e3276ca6700de15c6628e51b7de54a26", + "sourceRevision": "Qwen/Qwen-Image-2512@25468b98e3276ca6700de15c6628e51b7de54a26", + "sourceLicense": "Maintainer-authorized file with publisher terms retained", "modelTerms": [ - "InstantX/Qwen-Image-ControlNet-Union: Apache-2.0; https://huggingface.co/InstantX/Qwen-Image-ControlNet-Union/tree/b13036f066d6dee7c20513e263d3d673055e9de8", - "Qwen/Qwen-Image-2512: Apache-2.0; https://huggingface.co/Qwen/Qwen-Image-2512/tree/25468b98e3276ca6700de15c6628e51b7de54a26" + "Publisher model terms at https://huggingface.co/Qwen/Qwen-Image-2512/tree/25468b98e3276ca6700de15c6628e51b7de54a26" ], - "aiGenerated": true, - "humanLikenessConsent": "synthetic", + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", "marks": [], - "requiredAttribution": [], + "requiredAttribution": [ + "Qwen/Qwen-Image-2512@25468b98e3276ca6700de15c6628e51b7de54a26 https://huggingface.co/Qwen/Qwen-Image-2512/tree/25468b98e3276ca6700de15c6628e51b7de54a26" + ], "assetLicense": "Apache-2.0", - "reviewedBy": "SOURAV DAS", - "reviewedAt": "2026-08-03", - "reviewClass": "standard-human-attestation", - "provenanceTemplateId": "qwen_control_image_layout", - "consumingTemplateIds": [ - "flux3_klein_base_fp8r512_multi_reference_edit", - "flux3_klein_fp8r512_multi_reference_edit", - "qwen_control_image_layout" - ] + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "60b01498a2df5f4e4622cdc2f9a43c83d187820780d2425a19718c13707db501", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "qwen_2512_cobalt_backdrop_repair" }, { - "path": "template-gallery/inputs/qwen_control_winter_cabin_blue_hour.before.png", - "sha256": "sha256:bytes:ca250462efc77625134ebe305b2ee67281a1dcf8919e45299c648f0fdacf919a", + "path": "template-gallery/inputs/qwen_2512_cobalt_backdrop_repair.mask.png", + "sha256": "sha256:bytes:75ce495cdb65e3cb92cbd1c2ed94546d3f946e86642095d08334be13fd8a8b8f", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", @@ -4594,37 +5027,40 @@ "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "3968c7cbe37a94789a9f839d8e83a9e0f102629b797d5f7baacf0304a8d18153", + "humanApprovalPacketSHA256": "60b01498a2df5f4e4622cdc2f9a43c83d187820780d2425a19718c13707db501", "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", - "provenanceTemplateId": "qwen_control_winter_cabin_blue_hour" + "provenanceTemplateId": "qwen_2512_cobalt_backdrop_repair" }, { - "path": "template-gallery/inputs/qwen_edit_plus_single_image.before.webp", - "sha256": "sha256:bytes:e90e99e27cdd9b6ab7478a05199df2fdf7dce650d700ef2ceb55da7fb206b715", + "path": "template-gallery/inputs/qwen_bookshop_gouache.before.webp", + "sha256": "sha256:bytes:ff045be510a0e88cbab69bbe8c3794dd26bd19036bdec26a63a5b6ea5a11bc66", "publishDecision": "approved", "holdReason": null, - "creatorOrRightsholder": "MoDiff project maintainers, subject to the recorded source and model terms", - "creationMethod": "AI-generated Gallery media or deterministic derivative", - "sourceUrl": "https://huggingface.co/Qwen/Qwen-Image-Edit-2511/tree/6f3ccc0b56e431dc6a0c2b2039706d7d26f22cb9", - "sourceRevision": "Qwen/Qwen-Image-Edit-2511@6f3ccc0b56e431dc6a0c2b2039706d7d26f22cb9", - "sourceLicense": "Original generation or recorded workflow input; see modelTerms", + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Exact approved file captured from a saved MoDiff workflow", + "sourceUrl": "https://huggingface.co/Qwen/Qwen-Image-2512/tree/25468b98e3276ca6700de15c6628e51b7de54a26", + "sourceRevision": "Qwen/Qwen-Image-2512@25468b98e3276ca6700de15c6628e51b7de54a26", + "sourceLicense": "Maintainer-authorized file with publisher terms retained", "modelTerms": [ - "Qwen/Qwen-Image-Edit-2511: Apache-2.0; https://huggingface.co/Qwen/Qwen-Image-Edit-2511/tree/6f3ccc0b56e431dc6a0c2b2039706d7d26f22cb9" + "Publisher model terms at https://huggingface.co/Qwen/Qwen-Image-2512/tree/25468b98e3276ca6700de15c6628e51b7de54a26" ], - "aiGenerated": true, - "humanLikenessConsent": "synthetic", + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", "marks": [], - "requiredAttribution": [], + "requiredAttribution": [ + "Qwen/Qwen-Image-2512@25468b98e3276ca6700de15c6628e51b7de54a26 https://huggingface.co/Qwen/Qwen-Image-2512/tree/25468b98e3276ca6700de15c6628e51b7de54a26" + ], "assetLicense": "Apache-2.0", - "reviewedBy": "SOURAV DAS", - "reviewedAt": "2026-08-03", - "reviewClass": "standard-human-attestation", - "provenanceTemplateId": "qwen_edit_plus_single_image", - "consumingTemplateIds": ["qwen_edit_plus_single_image"] + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "60b01498a2df5f4e4622cdc2f9a43c83d187820780d2425a19718c13707db501", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "qwen_bookshop_gouache" }, { - "path": "template-gallery/inputs/qwen_edit_strength_sweep.before.webp", - "sha256": "sha256:bytes:a6d165bd87e2c57ab8cf71fa15de9d8724fccf5782c16c34c25dc77934751676", + "path": "template-gallery/inputs/qwen_character_angles.before.webp", + "sha256": "sha256:bytes:4b1b8d9e351abd437f2ffff90cc6a958160a87863ba4d8e85a0aa80a37e7a10e", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, subject to the recorded source and model terms", @@ -4643,9 +5079,140 @@ "reviewedBy": "SOURAV DAS", "reviewedAt": "2026-08-03", "reviewClass": "standard-human-attestation", - "provenanceTemplateId": "qwen_edit_strength_sweep", - "consumingTemplateIds": ["qwen_edit_strength_sweep"] - }, + "provenanceTemplateId": "qwen_character_angles", + "consumingTemplateIds": ["qwen_character_angles"] + }, + { + "path": "template-gallery/inputs/qwen_cobalt_on_charcoal_slate.before.png", + "sha256": "sha256:bytes:0a41a9c56b98945e60c96ef796660c35b2cab7bf0b36d5e84ab0d97ef97f0a5a", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Exact approved file captured from a saved MoDiff workflow", + "sourceUrl": "https://huggingface.co/Qwen/Qwen-Image-Edit/tree/ac7f9318f633fc4b5778c59367c8128225f1e3de", + "sourceRevision": "Qwen/Qwen-Image-Edit@ac7f9318f633fc4b5778c59367c8128225f1e3de", + "sourceLicense": "Maintainer-authorized file with publisher terms retained", + "modelTerms": [ + "Publisher model terms at https://huggingface.co/Qwen/Qwen-Image-Edit/tree/ac7f9318f633fc4b5778c59367c8128225f1e3de" + ], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "Qwen/Qwen-Image-Edit@ac7f9318f633fc4b5778c59367c8128225f1e3de https://huggingface.co/Qwen/Qwen-Image-Edit/tree/ac7f9318f633fc4b5778c59367c8128225f1e3de" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "60b01498a2df5f4e4622cdc2f9a43c83d187820780d2425a19718c13707db501", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "qwen_cobalt_on_charcoal_slate" + }, + { + "path": "template-gallery/inputs/qwen_control_image_layout.before.png", + "sha256": "sha256:bytes:b748201353f02543c2a48920bb514c2741366151df45bf6c4904aeb0f32f1a67", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, subject to the recorded source and model terms", + "creationMethod": "AI-generated Gallery media or deterministic derivative", + "sourceUrl": "https://huggingface.co/InstantX/Qwen-Image-ControlNet-Union/tree/b13036f066d6dee7c20513e263d3d673055e9de8", + "sourceRevision": "InstantX/Qwen-Image-ControlNet-Union@b13036f066d6dee7c20513e263d3d673055e9de8 | Qwen/Qwen-Image-2512@25468b98e3276ca6700de15c6628e51b7de54a26", + "sourceLicense": "Original generation or recorded workflow input; see modelTerms", + "modelTerms": [ + "InstantX/Qwen-Image-ControlNet-Union: Apache-2.0; https://huggingface.co/InstantX/Qwen-Image-ControlNet-Union/tree/b13036f066d6dee7c20513e263d3d673055e9de8", + "Qwen/Qwen-Image-2512: Apache-2.0; https://huggingface.co/Qwen/Qwen-Image-2512/tree/25468b98e3276ca6700de15c6628e51b7de54a26" + ], + "aiGenerated": true, + "humanLikenessConsent": "synthetic", + "marks": [], + "requiredAttribution": [], + "assetLicense": "Apache-2.0", + "reviewedBy": "SOURAV DAS", + "reviewedAt": "2026-08-03", + "reviewClass": "standard-human-attestation", + "provenanceTemplateId": "qwen_control_image_layout", + "consumingTemplateIds": [ + "flux3_klein_base_fp8r512_multi_reference_edit", + "flux3_klein_fp8r512_multi_reference_edit", + "qwen_control_image_layout" + ] + }, + { + "path": "template-gallery/inputs/qwen_control_winter_cabin_blue_hour.before.png", + "sha256": "sha256:bytes:ca250462efc77625134ebe305b2ee67281a1dcf8919e45299c648f0fdacf919a", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Exact approved file captured from a saved MoDiff workflow", + "sourceUrl": "https://huggingface.co/Qwen/Qwen-Image-2512/tree/25468b98e3276ca6700de15c6628e51b7de54a26", + "sourceRevision": "Qwen/Qwen-Image-2512@25468b98e3276ca6700de15c6628e51b7de54a26", + "sourceLicense": "Maintainer-authorized file with publisher terms retained", + "modelTerms": [ + "Publisher model terms at https://huggingface.co/Qwen/Qwen-Image-2512/tree/25468b98e3276ca6700de15c6628e51b7de54a26" + ], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "Qwen/Qwen-Image-2512@25468b98e3276ca6700de15c6628e51b7de54a26 https://huggingface.co/Qwen/Qwen-Image-2512/tree/25468b98e3276ca6700de15c6628e51b7de54a26" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "3968c7cbe37a94789a9f839d8e83a9e0f102629b797d5f7baacf0304a8d18153", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "qwen_control_winter_cabin_blue_hour" + }, + { + "path": "template-gallery/inputs/qwen_edit_plus_single_image.before.webp", + "sha256": "sha256:bytes:e90e99e27cdd9b6ab7478a05199df2fdf7dce650d700ef2ceb55da7fb206b715", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, subject to the recorded source and model terms", + "creationMethod": "AI-generated Gallery media or deterministic derivative", + "sourceUrl": "https://huggingface.co/Qwen/Qwen-Image-Edit-2511/tree/6f3ccc0b56e431dc6a0c2b2039706d7d26f22cb9", + "sourceRevision": "Qwen/Qwen-Image-Edit-2511@6f3ccc0b56e431dc6a0c2b2039706d7d26f22cb9", + "sourceLicense": "Original generation or recorded workflow input; see modelTerms", + "modelTerms": [ + "Qwen/Qwen-Image-Edit-2511: Apache-2.0; https://huggingface.co/Qwen/Qwen-Image-Edit-2511/tree/6f3ccc0b56e431dc6a0c2b2039706d7d26f22cb9" + ], + "aiGenerated": true, + "humanLikenessConsent": "synthetic", + "marks": [], + "requiredAttribution": [], + "assetLicense": "Apache-2.0", + "reviewedBy": "SOURAV DAS", + "reviewedAt": "2026-08-03", + "reviewClass": "standard-human-attestation", + "provenanceTemplateId": "qwen_edit_plus_single_image", + "consumingTemplateIds": ["qwen_edit_plus_single_image"] + }, + { + "path": "template-gallery/inputs/qwen_edit_strength_sweep.before.webp", + "sha256": "sha256:bytes:a6d165bd87e2c57ab8cf71fa15de9d8724fccf5782c16c34c25dc77934751676", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, subject to the recorded source and model terms", + "creationMethod": "AI-generated Gallery media or deterministic derivative", + "sourceUrl": "https://huggingface.co/Qwen/Qwen-Image-Edit/tree/ac7f9318f633fc4b5778c59367c8128225f1e3de", + "sourceRevision": "Qwen/Qwen-Image-Edit@ac7f9318f633fc4b5778c59367c8128225f1e3de", + "sourceLicense": "Original generation or recorded workflow input; see modelTerms", + "modelTerms": [ + "Qwen/Qwen-Image-Edit: Apache-2.0; https://huggingface.co/Qwen/Qwen-Image-Edit/tree/ac7f9318f633fc4b5778c59367c8128225f1e3de" + ], + "aiGenerated": true, + "humanLikenessConsent": "synthetic", + "marks": [], + "requiredAttribution": [], + "assetLicense": "Apache-2.0", + "reviewedBy": "SOURAV DAS", + "reviewedAt": "2026-08-03", + "reviewClass": "standard-human-attestation", + "provenanceTemplateId": "qwen_edit_strength_sweep", + "consumingTemplateIds": ["qwen_edit_strength_sweep"] + }, { "path": "template-gallery/inputs/qwen_inpaint_mask_draft.before.webp", "sha256": "sha256:bytes:a2f8ac6f5937d6e618b48ce9947153b8233ff7a82dcf67f28766d20b9917d730", @@ -5208,6 +5775,33 @@ "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", "provenanceTemplateId": "sd15_pag_mountain_lake_watercolor" }, + { + "path": "template-gallery/inputs/sdxl_blue_glass_on_linen.before.png", + "sha256": "sha256:bytes:0a41a9c56b98945e60c96ef796660c35b2cab7bf0b36d5e84ab0d97ef97f0a5a", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Exact approved file captured from a saved MoDiff workflow", + "sourceUrl": "https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b", + "sourceRevision": "stabilityai/stable-diffusion-xl-base-1.0@462165984030d82259a11f4367a4eed129e94a7b", + "sourceLicense": "Maintainer-authorized file with publisher terms retained", + "modelTerms": [ + "Publisher model terms at https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b" + ], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "stabilityai/stable-diffusion-xl-base-1.0@462165984030d82259a11f4367a4eed129e94a7b https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "60b01498a2df5f4e4622cdc2f9a43c83d187820780d2425a19718c13707db501", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "sdxl_blue_glass_on_linen" + }, { "path": "template-gallery/inputs/sdxl_canny_adapter_glass_study.before.png", "sha256": "sha256:bytes:6bd07628a37c087178e9de58a98c6c5879468163f1a2376a581511a42503e2e2", @@ -5397,6 +5991,60 @@ "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", "provenanceTemplateId": "sdxl_controlnet_glass_study_on_slate" }, + { + "path": "template-gallery/inputs/sdxl_pag_cobalt_wall.before.png", + "sha256": "sha256:bytes:e75c20f0e8a74e283b996bf526e6ea74535ed24125ad97c2d92508d3435d7a87", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Exact approved file captured from a saved MoDiff workflow", + "sourceUrl": "https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b", + "sourceRevision": "stabilityai/stable-diffusion-xl-base-1.0@462165984030d82259a11f4367a4eed129e94a7b", + "sourceLicense": "Maintainer-authorized file with publisher terms retained", + "modelTerms": [ + "Publisher model terms at https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b" + ], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "stabilityai/stable-diffusion-xl-base-1.0@462165984030d82259a11f4367a4eed129e94a7b https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "60b01498a2df5f4e4622cdc2f9a43c83d187820780d2425a19718c13707db501", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "sdxl_pag_cobalt_wall" + }, + { + "path": "template-gallery/inputs/sdxl_pag_cobalt_wall.mask.png", + "sha256": "sha256:bytes:1f48775f2826f84e0c5b55f16f3475bdc80ecad8b931d6b0279598610e9a828d", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Exact approved file captured from a saved MoDiff workflow", + "sourceUrl": "https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b", + "sourceRevision": "stabilityai/stable-diffusion-xl-base-1.0@462165984030d82259a11f4367a4eed129e94a7b", + "sourceLicense": "Maintainer-authorized file with publisher terms retained", + "modelTerms": [ + "Publisher model terms at https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b" + ], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "stabilityai/stable-diffusion-xl-base-1.0@462165984030d82259a11f4367a4eed129e94a7b https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "60b01498a2df5f4e4622cdc2f9a43c83d187820780d2425a19718c13707db501", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "sdxl_pag_cobalt_wall" + }, { "path": "template-gallery/inputs/sdxl_pix2pix_pale_amber_glass.before.png", "sha256": "sha256:bytes:ebaca95f96d1573e4292ffc65c78eb0dcf8ff9cc8b5a7e11ec81face61b160fb", @@ -5629,72 +6277,153 @@ "provenanceTemplateId": "zimage_golden_amber_glass" }, { - "path": "template-gallery/janus_red_enamel_teapot.webp", - "sha256": "sha256:bytes:c2cc1b06535dae0816a255e5a08bb20372a4cbd2c4b895f51273140dba4615eb", + "path": "template-gallery/inputs/zimage_rocky_glacial_shores.before.png", + "sha256": "sha256:bytes:50270382b4b730b87f79b775accaeeb81f3ff8885cd3d2cea94830206fbc181b", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Exact approved file captured from a saved MoDiff workflow", - "sourceUrl": "https://huggingface.co/deepseek-community/Janus-Pro-1B/tree/1655280bb75959cc1cb85529a2a8b26e7016072e", - "sourceRevision": "deepseek-community/Janus-Pro-1B@1655280bb75959cc1cb85529a2a8b26e7016072e", + "sourceUrl": "https://huggingface.co/Tongyi-MAI/Z-Image-Turbo/tree/f332072aa78be7aecdf3ee76d5c247082da564a6", + "sourceRevision": "Tongyi-MAI/Z-Image-Turbo@f332072aa78be7aecdf3ee76d5c247082da564a6", "sourceLicense": "Maintainer-authorized file with publisher terms retained", - "modelTerms": ["https://github.com/deepseek-ai/Janus/blob/main/LICENSE-MODEL"], - "aiGenerated": true, - "humanLikenessConsent": "synthetic", + "modelTerms": [ + "Publisher model terms at https://huggingface.co/Tongyi-MAI/Z-Image-Turbo/tree/f332072aa78be7aecdf3ee76d5c247082da564a6" + ], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "deepseek-community/Janus-Pro-1B@1655280bb75959cc1cb85529a2a8b26e7016072e https://huggingface.co/deepseek-community/Janus-Pro-1B/tree/1655280bb75959cc1cb85529a2a8b26e7016072e" + "Tongyi-MAI/Z-Image-Turbo@f332072aa78be7aecdf3ee76d5c247082da564a6 https://huggingface.co/Tongyi-MAI/Z-Image-Turbo/tree/f332072aa78be7aecdf3ee76d5c247082da564a6" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", - "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", - "provenanceTemplateId": "janus_red_enamel_teapot" + "humanApprovalPacketSHA256": "60b01498a2df5f4e4622cdc2f9a43c83d187820780d2425a19718c13707db501", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "zimage_rocky_glacial_shores" }, { - "path": "template-gallery/janus_red_triangle_caption.json", - "sha256": "sha256:bytes:1fec185a203f16541cf13a02afff3c4333b83ff6c593a88fc59fa108801e6d44", + "path": "template-gallery/inputs/zimage_seamless_cobalt_backdrop.before.png", + "sha256": "sha256:bytes:e75c20f0e8a74e283b996bf526e6ea74535ed24125ad97c2d92508d3435d7a87", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Exact approved file captured from a saved MoDiff workflow", - "sourceUrl": "https://huggingface.co/deepseek-community/Janus-Pro-1B/tree/1655280bb75959cc1cb85529a2a8b26e7016072e", - "sourceRevision": "deepseek-community/Janus-Pro-1B@1655280bb75959cc1cb85529a2a8b26e7016072e", + "sourceUrl": "https://huggingface.co/Tongyi-MAI/Z-Image-Turbo/tree/f332072aa78be7aecdf3ee76d5c247082da564a6", + "sourceRevision": "Tongyi-MAI/Z-Image-Turbo@f332072aa78be7aecdf3ee76d5c247082da564a6", "sourceLicense": "Maintainer-authorized file with publisher terms retained", - "modelTerms": ["https://github.com/deepseek-ai/Janus/blob/main/LICENSE-MODEL"], - "aiGenerated": true, - "humanLikenessConsent": "synthetic", + "modelTerms": [ + "Publisher model terms at https://huggingface.co/Tongyi-MAI/Z-Image-Turbo/tree/f332072aa78be7aecdf3ee76d5c247082da564a6" + ], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "deepseek-community/Janus-Pro-1B@1655280bb75959cc1cb85529a2a8b26e7016072e https://huggingface.co/deepseek-community/Janus-Pro-1B/tree/1655280bb75959cc1cb85529a2a8b26e7016072e" + "Tongyi-MAI/Z-Image-Turbo@f332072aa78be7aecdf3ee76d5c247082da564a6 https://huggingface.co/Tongyi-MAI/Z-Image-Turbo/tree/f332072aa78be7aecdf3ee76d5c247082da564a6" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", - "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", - "provenanceTemplateId": "janus_red_triangle_caption" + "humanApprovalPacketSHA256": "60b01498a2df5f4e4622cdc2f9a43c83d187820780d2425a19718c13707db501", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "zimage_seamless_cobalt_backdrop" }, { - "path": "template-gallery/janus_reykjavik_travel_note.json", - "sha256": "sha256:bytes:c7fb7a09d2480a8cffde6212e6686a5be04ccb01ec7811c7109281634d7c4daa", + "path": "template-gallery/inputs/zimage_seamless_cobalt_backdrop.mask.png", + "sha256": "sha256:bytes:1f48775f2826f84e0c5b55f16f3475bdc80ecad8b931d6b0279598610e9a828d", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Exact approved file captured from a saved MoDiff workflow", - "sourceUrl": "https://huggingface.co/deepseek-community/Janus-Pro-1B/tree/1655280bb75959cc1cb85529a2a8b26e7016072e", - "sourceRevision": "deepseek-community/Janus-Pro-1B@1655280bb75959cc1cb85529a2a8b26e7016072e", + "sourceUrl": "https://huggingface.co/Tongyi-MAI/Z-Image-Turbo/tree/f332072aa78be7aecdf3ee76d5c247082da564a6", + "sourceRevision": "Tongyi-MAI/Z-Image-Turbo@f332072aa78be7aecdf3ee76d5c247082da564a6", "sourceLicense": "Maintainer-authorized file with publisher terms retained", - "modelTerms": ["https://github.com/deepseek-ai/Janus/blob/main/LICENSE-MODEL"], - "aiGenerated": true, - "humanLikenessConsent": "synthetic", - "marks": [], - "requiredAttribution": [ - "deepseek-community/Janus-Pro-1B@1655280bb75959cc1cb85529a2a8b26e7016072e https://huggingface.co/deepseek-community/Janus-Pro-1B/tree/1655280bb75959cc1cb85529a2a8b26e7016072e" - ], + "modelTerms": [ + "Publisher model terms at https://huggingface.co/Tongyi-MAI/Z-Image-Turbo/tree/f332072aa78be7aecdf3ee76d5c247082da564a6" + ], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "Tongyi-MAI/Z-Image-Turbo@f332072aa78be7aecdf3ee76d5c247082da564a6 https://huggingface.co/Tongyi-MAI/Z-Image-Turbo/tree/f332072aa78be7aecdf3ee76d5c247082da564a6" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "60b01498a2df5f4e4622cdc2f9a43c83d187820780d2425a19718c13707db501", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "zimage_seamless_cobalt_backdrop" + }, + { + "path": "template-gallery/janus_red_enamel_teapot.webp", + "sha256": "sha256:bytes:c2cc1b06535dae0816a255e5a08bb20372a4cbd2c4b895f51273140dba4615eb", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Exact approved file captured from a saved MoDiff workflow", + "sourceUrl": "https://huggingface.co/deepseek-community/Janus-Pro-1B/tree/1655280bb75959cc1cb85529a2a8b26e7016072e", + "sourceRevision": "deepseek-community/Janus-Pro-1B@1655280bb75959cc1cb85529a2a8b26e7016072e", + "sourceLicense": "Maintainer-authorized file with publisher terms retained", + "modelTerms": ["https://github.com/deepseek-ai/Janus/blob/main/LICENSE-MODEL"], + "aiGenerated": true, + "humanLikenessConsent": "synthetic", + "marks": [], + "requiredAttribution": [ + "deepseek-community/Janus-Pro-1B@1655280bb75959cc1cb85529a2a8b26e7016072e https://huggingface.co/deepseek-community/Janus-Pro-1B/tree/1655280bb75959cc1cb85529a2a8b26e7016072e" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", + "provenanceTemplateId": "janus_red_enamel_teapot" + }, + { + "path": "template-gallery/janus_red_triangle_caption.json", + "sha256": "sha256:bytes:1fec185a203f16541cf13a02afff3c4333b83ff6c593a88fc59fa108801e6d44", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Exact approved file captured from a saved MoDiff workflow", + "sourceUrl": "https://huggingface.co/deepseek-community/Janus-Pro-1B/tree/1655280bb75959cc1cb85529a2a8b26e7016072e", + "sourceRevision": "deepseek-community/Janus-Pro-1B@1655280bb75959cc1cb85529a2a8b26e7016072e", + "sourceLicense": "Maintainer-authorized file with publisher terms retained", + "modelTerms": ["https://github.com/deepseek-ai/Janus/blob/main/LICENSE-MODEL"], + "aiGenerated": true, + "humanLikenessConsent": "synthetic", + "marks": [], + "requiredAttribution": [ + "deepseek-community/Janus-Pro-1B@1655280bb75959cc1cb85529a2a8b26e7016072e https://huggingface.co/deepseek-community/Janus-Pro-1B/tree/1655280bb75959cc1cb85529a2a8b26e7016072e" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", + "provenanceTemplateId": "janus_red_triangle_caption" + }, + { + "path": "template-gallery/janus_reykjavik_travel_note.json", + "sha256": "sha256:bytes:c7fb7a09d2480a8cffde6212e6686a5be04ccb01ec7811c7109281634d7c4daa", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Exact approved file captured from a saved MoDiff workflow", + "sourceUrl": "https://huggingface.co/deepseek-community/Janus-Pro-1B/tree/1655280bb75959cc1cb85529a2a8b26e7016072e", + "sourceRevision": "deepseek-community/Janus-Pro-1B@1655280bb75959cc1cb85529a2a8b26e7016072e", + "sourceLicense": "Maintainer-authorized file with publisher terms retained", + "modelTerms": ["https://github.com/deepseek-ai/Janus/blob/main/LICENSE-MODEL"], + "aiGenerated": true, + "humanLikenessConsent": "synthetic", + "marks": [], + "requiredAttribution": [ + "deepseek-community/Janus-Pro-1B@1655280bb75959cc1cb85529a2a8b26e7016072e https://huggingface.co/deepseek-community/Janus-Pro-1B/tree/1655280bb75959cc1cb85529a2a8b26e7016072e" + ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", @@ -5703,6 +6432,60 @@ "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", "provenanceTemplateId": "janus_reykjavik_travel_note" }, + { + "path": "template-gallery/joy_plus_lavender_on_limestone.webp", + "sha256": "sha256:bytes:6c1f36ca4b6eb78cc6ce314e60534f4496fae9a972b3f03ce2254257aa9737a3", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Exact approved file captured from a saved MoDiff workflow", + "sourceUrl": "https://huggingface.co/jdopensource/JoyAI-Image-Edit-Plus-Diffusers/tree/c2686460c7b64d8aa11bc4d0da423fb316b33f9e", + "sourceRevision": "jdopensource/JoyAI-Image-Edit-Plus-Diffusers@c2686460c7b64d8aa11bc4d0da423fb316b33f9e", + "sourceLicense": "Maintainer-authorized file with publisher terms retained", + "modelTerms": [ + "Publisher model terms at https://huggingface.co/jdopensource/JoyAI-Image-Edit-Plus-Diffusers/tree/c2686460c7b64d8aa11bc4d0da423fb316b33f9e" + ], + "aiGenerated": true, + "humanLikenessConsent": "synthetic", + "marks": [], + "requiredAttribution": [ + "jdopensource/JoyAI-Image-Edit-Plus-Diffusers@c2686460c7b64d8aa11bc4d0da423fb316b33f9e https://huggingface.co/jdopensource/JoyAI-Image-Edit-Plus-Diffusers/tree/c2686460c7b64d8aa11bc4d0da423fb316b33f9e" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "60b01498a2df5f4e4622cdc2f9a43c83d187820780d2425a19718c13707db501", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "joy_plus_lavender_on_limestone" + }, + { + "path": "template-gallery/joyimage_base_cobalt_paper_band.webp", + "sha256": "sha256:bytes:99fabcac42e8698eb652089bf52698690648937552975d54a68141be9a66b307", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Exact approved file captured from a saved MoDiff workflow", + "sourceUrl": "https://huggingface.co/jdopensource/JoyAI-Image-Edit-Diffusers/tree/4b41fb25d961f37668750178ccbb380da326201c", + "sourceRevision": "jdopensource/JoyAI-Image-Edit-Diffusers@4b41fb25d961f37668750178ccbb380da326201c", + "sourceLicense": "Maintainer-authorized file with publisher terms retained", + "modelTerms": [ + "Publisher model terms at https://huggingface.co/jdopensource/JoyAI-Image-Edit-Diffusers/tree/4b41fb25d961f37668750178ccbb380da326201c" + ], + "aiGenerated": true, + "humanLikenessConsent": "synthetic", + "marks": [], + "requiredAttribution": [ + "jdopensource/JoyAI-Image-Edit-Diffusers@4b41fb25d961f37668750178ccbb380da326201c https://huggingface.co/jdopensource/JoyAI-Image-Edit-Diffusers/tree/4b41fb25d961f37668750178ccbb380da326201c" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "60b01498a2df5f4e4622cdc2f9a43c83d187820780d2425a19718c13707db501", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "joyimage_base_cobalt_paper_band" + }, { "path": "template-gallery/joyimage_herbarium_rainy_porthole.webp", "sha256": "sha256:bytes:50213ff01502af1445d1d72618c3614c444931fd94739a53191bd2c36f36e578", @@ -5757,6 +6540,60 @@ "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped six saved cases with model terms retained.", "provenanceTemplateId": "kandinsky3_ginkgo_on_slate" }, + { + "path": "template-gallery/kandinsky3_smoked_glass_on_limestone.webp", + "sha256": "sha256:bytes:77d55b454e684b69306ae806b31911750ae496888e58c85c1d896a5f222b71dd", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Exact approved file captured from a saved MoDiff workflow", + "sourceUrl": "https://huggingface.co/kandinsky-community/kandinsky-3/tree/bf79e6c219da8a94abb50235fdc4567eb8fb4632", + "sourceRevision": "kandinsky-community/kandinsky-3@bf79e6c219da8a94abb50235fdc4567eb8fb4632", + "sourceLicense": "Maintainer-authorized file with publisher terms retained", + "modelTerms": [ + "Publisher model terms at https://huggingface.co/kandinsky-community/kandinsky-3/tree/bf79e6c219da8a94abb50235fdc4567eb8fb4632" + ], + "aiGenerated": true, + "humanLikenessConsent": "synthetic", + "marks": [], + "requiredAttribution": [ + "kandinsky-community/kandinsky-3@bf79e6c219da8a94abb50235fdc4567eb8fb4632 https://huggingface.co/kandinsky-community/kandinsky-3/tree/bf79e6c219da8a94abb50235fdc4567eb8fb4632" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "60b01498a2df5f4e4622cdc2f9a43c83d187820780d2425a19718c13707db501", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "kandinsky3_smoked_glass_on_limestone" + }, + { + "path": "template-gallery/kontext_wide_water_alpine_ridge.webp", + "sha256": "sha256:bytes:18090bf07900510b2d99c7c4ab38b9e38dc680fe437def20b2ce7297265db4b8", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Exact approved file captured from a saved MoDiff workflow", + "sourceUrl": "https://huggingface.co/black-forest-labs/FLUX.1-Kontext-dev/tree/24e9dedc4ef646698dc8eb4e18ae2cec3c9fea0d", + "sourceRevision": "black-forest-labs/FLUX.1-Kontext-dev@24e9dedc4ef646698dc8eb4e18ae2cec3c9fea0d", + "sourceLicense": "Maintainer-authorized file with publisher terms retained", + "modelTerms": [ + "Publisher model terms at https://huggingface.co/black-forest-labs/FLUX.1-Kontext-dev/tree/24e9dedc4ef646698dc8eb4e18ae2cec3c9fea0d" + ], + "aiGenerated": true, + "humanLikenessConsent": "synthetic", + "marks": [], + "requiredAttribution": [ + "black-forest-labs/FLUX.1-Kontext-dev@24e9dedc4ef646698dc8eb4e18ae2cec3c9fea0d https://huggingface.co/black-forest-labs/FLUX.1-Kontext-dev/tree/24e9dedc4ef646698dc8eb4e18ae2cec3c9fea0d" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "60b01498a2df5f4e4622cdc2f9a43c83d187820780d2425a19718c13707db501", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "kontext_wide_water_alpine_ridge" + }, { "creatorOrRightsholder": "MoDiff project maintainers, subject to previously approved synthetic source rights and recorded model terms", "creationMethod": "Native local AI-generated output or exact deterministic layer-sheet derivative; original approved bytes retained", @@ -6050,6 +6887,33 @@ "assetLicense": "MoDiff-Gallery-Restricted-1.0", "provenanceTemplateId": "lcm_dawn_alpine_lake" }, + { + "path": "template-gallery/longcat_clear_glass_at_the_bookshop.webp", + "sha256": "sha256:bytes:a29ccb40ac98bbda8401abaa2b25b9d61722505188056468ae18e66887f89338", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Exact approved file captured from a saved MoDiff workflow", + "sourceUrl": "https://huggingface.co/meituan-longcat/LongCat-Image-Edit/tree/7b54ef423aa7854be7861600024be5c56ab7875a", + "sourceRevision": "meituan-longcat/LongCat-Image-Edit@7b54ef423aa7854be7861600024be5c56ab7875a", + "sourceLicense": "Maintainer-authorized file with publisher terms retained", + "modelTerms": [ + "Publisher model terms at https://huggingface.co/meituan-longcat/LongCat-Image-Edit/tree/7b54ef423aa7854be7861600024be5c56ab7875a" + ], + "aiGenerated": true, + "humanLikenessConsent": "synthetic", + "marks": [], + "requiredAttribution": [ + "meituan-longcat/LongCat-Image-Edit@7b54ef423aa7854be7861600024be5c56ab7875a https://huggingface.co/meituan-longcat/LongCat-Image-Edit/tree/7b54ef423aa7854be7861600024be5c56ab7875a" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "60b01498a2df5f4e4622cdc2f9a43c83d187820780d2425a19718c13707db501", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "longcat_clear_glass_at_the_bookshop" + }, { "path": "template-gallery/longcat_florist_end_of_lane.webp", "sha256": "sha256:bytes:045dec822bcffaf2825dee3118446a536819a518475c78c4573d68dbb498825b", @@ -6783,7 +7647,7 @@ }, { "path": "template-gallery/manifest.json", - "sha256": "sha256:bytes:4cdc61e54dab42aa8d528f9fbda584ca594d05fce5016b44d9eac6f373654806", + "sha256": "sha256:bytes:f560bf35f17e3c3f5f117c90f84d4bcedbc53e7eb536f462cbdbac96069b67f5", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", @@ -6800,7 +7664,7 @@ "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "4fc7c52588176cb1f6ba6d699d08741b2986ea71ea87bac650d261716a10b24c", + "humanApprovalPacketSHA256": "60b01498a2df5f4e4622cdc2f9a43c83d187820780d2425a19718c13707db501", "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained." }, { @@ -6883,6 +7747,33 @@ "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", "provenanceTemplateId": "ochre_paper_pavilion" }, + { + "path": "template-gallery/omnigen_cobalt_against_soft_apricot.webp", + "sha256": "sha256:bytes:305c3d2b35bc57b3151a332bc6084cbdf962337572c5e15ae3d7d546a07a1ead", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Exact approved file captured from a saved MoDiff workflow", + "sourceUrl": "https://huggingface.co/Shitao/OmniGen-v1-diffusers/tree/016e2f61d12a98303f6bbdf122687694d7984268", + "sourceRevision": "Shitao/OmniGen-v1-diffusers@016e2f61d12a98303f6bbdf122687694d7984268", + "sourceLicense": "Maintainer-authorized file with publisher terms retained", + "modelTerms": [ + "Publisher model terms at https://huggingface.co/Shitao/OmniGen-v1-diffusers/tree/016e2f61d12a98303f6bbdf122687694d7984268" + ], + "aiGenerated": true, + "humanLikenessConsent": "synthetic", + "marks": [], + "requiredAttribution": [ + "Shitao/OmniGen-v1-diffusers@016e2f61d12a98303f6bbdf122687694d7984268 https://huggingface.co/Shitao/OmniGen-v1-diffusers/tree/016e2f61d12a98303f6bbdf122687694d7984268" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "60b01498a2df5f4e4622cdc2f9a43c83d187820780d2425a19718c13707db501", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "omnigen_cobalt_against_soft_apricot" + }, { "path": "template-gallery/omnigen_tulips_after_rain.webp", "sha256": "sha256:bytes:57d5f196f4abad78099482deeb23f37810075e6d708e289ca8eb4617acdbdde7", @@ -7073,43 +7964,151 @@ "provenanceTemplateId": "quiet_kiln_at_daybreak" }, { - "creatorOrRightsholder": "MoDiff project maintainers, with exact-file rights explicitly attested by the maintainer", - "creationMethod": "AI-generated native Qwen Edit character sheet using the existing approved synthetic portrait", - "sourceUrl": "https://huggingface.co/Qwen/Qwen-Image-Edit/tree/ac7f9318f633fc4b5778c59367c8128225f1e3de", - "sourceRevision": "Qwen/Qwen-Image-Edit@ac7f9318f633fc4b5778c59367c8128225f1e3de", - "sourceLicense": "Original generated image; exact-file redistribution rights explicitly attested; see pinned model terms", + "path": "template-gallery/qwen_2511_pale_amber_on_limestone.webp", + "sha256": "sha256:bytes:126660eff58b75eed79a942adc24e76f731decd65f83db098e72298141531772", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Exact approved file captured from a saved MoDiff workflow", + "sourceUrl": "https://huggingface.co/Qwen/Qwen-Image-Edit-2511/tree/6f3ccc0b56e431dc6a0c2b2039706d7d26f22cb9", + "sourceRevision": "Qwen/Qwen-Image-Edit-2511@6f3ccc0b56e431dc6a0c2b2039706d7d26f22cb9", + "sourceLicense": "Maintainer-authorized file with publisher terms retained", "modelTerms": [ - "Qwen/Qwen-Image-Edit: Apache-2.0; https://huggingface.co/Qwen/Qwen-Image-Edit/tree/ac7f9318f633fc4b5778c59367c8128225f1e3de" + "Publisher model terms at https://huggingface.co/Qwen/Qwen-Image-Edit-2511/tree/6f3ccc0b56e431dc6a0c2b2039706d7d26f22cb9" ], "aiGenerated": true, "humanLikenessConsent": "synthetic", "marks": [], - "requiredAttribution": [], - "sourceRightsAttestation": "I hold the rights needed to publish this exact generated angle sheet and its redacted technical/review records under Apache-2.0 in the existing MoDiff Gallery Dataset. The input is the existing approved synthetic character image; no external image inputs or real-person likeness references were used. The pinned Qwen model terms are retained.", - "path": "template-gallery/qwen_character_angles.webp", - "sha256": "sha256:bytes:4a3a001c82fb171de587b505ad269b493eceefa2c243b9c1b4d1a7205777c354", - "publishDecision": "approved", - "holdReason": null, + "requiredAttribution": [ + "Qwen/Qwen-Image-Edit-2511@6f3ccc0b56e431dc6a0c2b2039706d7d26f22cb9 https://huggingface.co/Qwen/Qwen-Image-Edit-2511/tree/6f3ccc0b56e431dc6a0c2b2039706d7d26f22cb9" + ], "assetLicense": "Apache-2.0", - "reviewedBy": "SOURAV DAS", - "reviewedAt": "2026-11-10", - "reviewClass": "per-file-human-approved-qwen-angle-native-image-registration", - "humanApprovalPacketSHA256": "9ca0bb197dbad8a2a27b25cef64aff67875aa6ea6f69fcb3bff581aae35b43d5", - "provenanceTemplateId": "qwen_character_angles" + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "60b01498a2df5f4e4622cdc2f9a43c83d187820780d2425a19718c13707db501", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "qwen_2511_pale_amber_on_limestone" }, { - "path": "template-gallery/qwen_control_image_layout.webp", - "sha256": "sha256:bytes:8aea21cd03849912745c7bbc1a2ceabad27cf3649947c6fb08fd86a7eec16c17", + "path": "template-gallery/qwen_2512_cobalt_backdrop_repair.webp", + "sha256": "sha256:bytes:6b3a9c583a930c462ec1d484b71d26d97346862c2d4e4a25aa35c2062e3dfefe", "publishDecision": "approved", "holdReason": null, - "creatorOrRightsholder": "MoDiff project maintainers", - "creationMethod": "Maintainer-accepted native MoDiff output or its deterministic Gallery preview", - "sourceUrl": "https://huggingface.co/InstantX/Qwen-Image-ControlNet-Union/tree/b13036f066d6dee7c20513e263d3d673055e9de8", - "sourceRevision": "InstantX/Qwen-Image-ControlNet-Union@b13036f066d6dee7c20513e263d3d673055e9de8 | Qwen/Qwen-Image-2512@25468b98e3276ca6700de15c6628e51b7de54a26", - "sourceLicense": "Original generation or recorded workflow input; see modelTerms", + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Exact approved file captured from a saved MoDiff workflow", + "sourceUrl": "https://huggingface.co/Qwen/Qwen-Image-2512/tree/25468b98e3276ca6700de15c6628e51b7de54a26", + "sourceRevision": "Qwen/Qwen-Image-2512@25468b98e3276ca6700de15c6628e51b7de54a26", + "sourceLicense": "Maintainer-authorized file with publisher terms retained", "modelTerms": [ - "InstantX/Qwen-Image-ControlNet-Union: Apache-2.0; https://huggingface.co/InstantX/Qwen-Image-ControlNet-Union/tree/b13036f066d6dee7c20513e263d3d673055e9de8", - "Qwen/Qwen-Image-2512: Apache-2.0; https://huggingface.co/Qwen/Qwen-Image-2512/tree/25468b98e3276ca6700de15c6628e51b7de54a26" + "Publisher model terms at https://huggingface.co/Qwen/Qwen-Image-2512/tree/25468b98e3276ca6700de15c6628e51b7de54a26" + ], + "aiGenerated": true, + "humanLikenessConsent": "synthetic", + "marks": [], + "requiredAttribution": [ + "Qwen/Qwen-Image-2512@25468b98e3276ca6700de15c6628e51b7de54a26 https://huggingface.co/Qwen/Qwen-Image-2512/tree/25468b98e3276ca6700de15c6628e51b7de54a26" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "60b01498a2df5f4e4622cdc2f9a43c83d187820780d2425a19718c13707db501", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "qwen_2512_cobalt_backdrop_repair" + }, + { + "path": "template-gallery/qwen_bookshop_gouache.webp", + "sha256": "sha256:bytes:555bab08051dc3a0381747c207ed241be3afd54c5c6113a8b4abf04010960201", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Exact approved file captured from a saved MoDiff workflow", + "sourceUrl": "https://huggingface.co/Qwen/Qwen-Image-2512/tree/25468b98e3276ca6700de15c6628e51b7de54a26", + "sourceRevision": "Qwen/Qwen-Image-2512@25468b98e3276ca6700de15c6628e51b7de54a26", + "sourceLicense": "Maintainer-authorized file with publisher terms retained", + "modelTerms": [ + "Publisher model terms at https://huggingface.co/Qwen/Qwen-Image-2512/tree/25468b98e3276ca6700de15c6628e51b7de54a26" + ], + "aiGenerated": true, + "humanLikenessConsent": "synthetic", + "marks": [], + "requiredAttribution": [ + "Qwen/Qwen-Image-2512@25468b98e3276ca6700de15c6628e51b7de54a26 https://huggingface.co/Qwen/Qwen-Image-2512/tree/25468b98e3276ca6700de15c6628e51b7de54a26" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "60b01498a2df5f4e4622cdc2f9a43c83d187820780d2425a19718c13707db501", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "qwen_bookshop_gouache" + }, + { + "creatorOrRightsholder": "MoDiff project maintainers, with exact-file rights explicitly attested by the maintainer", + "creationMethod": "AI-generated native Qwen Edit character sheet using the existing approved synthetic portrait", + "sourceUrl": "https://huggingface.co/Qwen/Qwen-Image-Edit/tree/ac7f9318f633fc4b5778c59367c8128225f1e3de", + "sourceRevision": "Qwen/Qwen-Image-Edit@ac7f9318f633fc4b5778c59367c8128225f1e3de", + "sourceLicense": "Original generated image; exact-file redistribution rights explicitly attested; see pinned model terms", + "modelTerms": [ + "Qwen/Qwen-Image-Edit: Apache-2.0; https://huggingface.co/Qwen/Qwen-Image-Edit/tree/ac7f9318f633fc4b5778c59367c8128225f1e3de" + ], + "aiGenerated": true, + "humanLikenessConsent": "synthetic", + "marks": [], + "requiredAttribution": [], + "sourceRightsAttestation": "I hold the rights needed to publish this exact generated angle sheet and its redacted technical/review records under Apache-2.0 in the existing MoDiff Gallery Dataset. The input is the existing approved synthetic character image; no external image inputs or real-person likeness references were used. The pinned Qwen model terms are retained.", + "path": "template-gallery/qwen_character_angles.webp", + "sha256": "sha256:bytes:4a3a001c82fb171de587b505ad269b493eceefa2c243b9c1b4d1a7205777c354", + "publishDecision": "approved", + "holdReason": null, + "assetLicense": "Apache-2.0", + "reviewedBy": "SOURAV DAS", + "reviewedAt": "2026-11-10", + "reviewClass": "per-file-human-approved-qwen-angle-native-image-registration", + "humanApprovalPacketSHA256": "9ca0bb197dbad8a2a27b25cef64aff67875aa6ea6f69fcb3bff581aae35b43d5", + "provenanceTemplateId": "qwen_character_angles" + }, + { + "path": "template-gallery/qwen_cobalt_on_charcoal_slate.webp", + "sha256": "sha256:bytes:3cf9cea1b23834ec9dd589b37335250885be163eb4257155d8e76a08583dade2", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Exact approved file captured from a saved MoDiff workflow", + "sourceUrl": "https://huggingface.co/Qwen/Qwen-Image-Edit/tree/ac7f9318f633fc4b5778c59367c8128225f1e3de", + "sourceRevision": "Qwen/Qwen-Image-Edit@ac7f9318f633fc4b5778c59367c8128225f1e3de", + "sourceLicense": "Maintainer-authorized file with publisher terms retained", + "modelTerms": [ + "Publisher model terms at https://huggingface.co/Qwen/Qwen-Image-Edit/tree/ac7f9318f633fc4b5778c59367c8128225f1e3de" + ], + "aiGenerated": true, + "humanLikenessConsent": "synthetic", + "marks": [], + "requiredAttribution": [ + "Qwen/Qwen-Image-Edit@ac7f9318f633fc4b5778c59367c8128225f1e3de https://huggingface.co/Qwen/Qwen-Image-Edit/tree/ac7f9318f633fc4b5778c59367c8128225f1e3de" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "60b01498a2df5f4e4622cdc2f9a43c83d187820780d2425a19718c13707db501", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "qwen_cobalt_on_charcoal_slate" + }, + { + "path": "template-gallery/qwen_control_image_layout.webp", + "sha256": "sha256:bytes:8aea21cd03849912745c7bbc1a2ceabad27cf3649947c6fb08fd86a7eec16c17", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers", + "creationMethod": "Maintainer-accepted native MoDiff output or its deterministic Gallery preview", + "sourceUrl": "https://huggingface.co/InstantX/Qwen-Image-ControlNet-Union/tree/b13036f066d6dee7c20513e263d3d673055e9de8", + "sourceRevision": "InstantX/Qwen-Image-ControlNet-Union@b13036f066d6dee7c20513e263d3d673055e9de8 | Qwen/Qwen-Image-2512@25468b98e3276ca6700de15c6628e51b7de54a26", + "sourceLicense": "Original generation or recorded workflow input; see modelTerms", + "modelTerms": [ + "InstantX/Qwen-Image-ControlNet-Union: Apache-2.0; https://huggingface.co/InstantX/Qwen-Image-ControlNet-Union/tree/b13036f066d6dee7c20513e263d3d673055e9de8", + "Qwen/Qwen-Image-2512: Apache-2.0; https://huggingface.co/Qwen/Qwen-Image-2512/tree/25468b98e3276ca6700de15c6628e51b7de54a26" ], "aiGenerated": true, "humanLikenessConsent": "synthetic", @@ -8819,6 +9818,114 @@ "provenanceTemplateId": "character_edit", "humanApprovalPacketSHA256": "95893cb17e10b15ae6b23d8b31b57b0e14b9af96f822d75edbc6b68971afb11d" }, + { + "path": "template-gallery/reviews/chroma_alpine_block_print.original-provenance.json", + "sha256": "sha256:bytes:f17d6523a55fcf5bd0c147d9a46dee5b6e7fc6363f6a08685ba8a65459f73cf2", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/lodestones/Chroma1-HD/tree/0e0c60ece1e82b17cb7f77342d765ba5024c40c0", + "sourceRevision": "lodestones/Chroma1-HD@0e0c60ece1e82b17cb7f77342d765ba5024c40c0", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "Publisher model terms at https://huggingface.co/lodestones/Chroma1-HD/tree/0e0c60ece1e82b17cb7f77342d765ba5024c40c0" + ], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "lodestones/Chroma1-HD@0e0c60ece1e82b17cb7f77342d765ba5024c40c0 https://huggingface.co/lodestones/Chroma1-HD/tree/0e0c60ece1e82b17cb7f77342d765ba5024c40c0" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "60b01498a2df5f4e4622cdc2f9a43c83d187820780d2425a19718c13707db501", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "chroma_alpine_block_print" + }, + { + "path": "template-gallery/reviews/chroma_alpine_block_print.original-review.json", + "sha256": "sha256:bytes:a7ba022616f2a41b3046a7ac3ca7779a6f4efc5692bc02c21dc52701354f8a01", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/lodestones/Chroma1-HD/tree/0e0c60ece1e82b17cb7f77342d765ba5024c40c0", + "sourceRevision": "lodestones/Chroma1-HD@0e0c60ece1e82b17cb7f77342d765ba5024c40c0", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "Publisher model terms at https://huggingface.co/lodestones/Chroma1-HD/tree/0e0c60ece1e82b17cb7f77342d765ba5024c40c0" + ], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "lodestones/Chroma1-HD@0e0c60ece1e82b17cb7f77342d765ba5024c40c0 https://huggingface.co/lodestones/Chroma1-HD/tree/0e0c60ece1e82b17cb7f77342d765ba5024c40c0" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "60b01498a2df5f4e4622cdc2f9a43c83d187820780d2425a19718c13707db501", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "chroma_alpine_block_print" + }, + { + "path": "template-gallery/reviews/chroma_alpine_block_print.quality-review.json", + "sha256": "sha256:bytes:bb7979a051f9839fdee168737f18bf99c630f5e7edba7ab59f8e7471315d9413", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/lodestones/Chroma1-HD/tree/0e0c60ece1e82b17cb7f77342d765ba5024c40c0", + "sourceRevision": "lodestones/Chroma1-HD@0e0c60ece1e82b17cb7f77342d765ba5024c40c0", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "Publisher model terms at https://huggingface.co/lodestones/Chroma1-HD/tree/0e0c60ece1e82b17cb7f77342d765ba5024c40c0" + ], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "lodestones/Chroma1-HD@0e0c60ece1e82b17cb7f77342d765ba5024c40c0 https://huggingface.co/lodestones/Chroma1-HD/tree/0e0c60ece1e82b17cb7f77342d765ba5024c40c0" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "60b01498a2df5f4e4622cdc2f9a43c83d187820780d2425a19718c13707db501", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "chroma_alpine_block_print" + }, + { + "path": "template-gallery/reviews/chroma_alpine_block_print.retained-template-provenance.json", + "sha256": "sha256:bytes:d8643c8c82d299a62068afd7b38de0d24fcfd6882585370e73fbe63402726e4a", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/lodestones/Chroma1-HD/tree/0e0c60ece1e82b17cb7f77342d765ba5024c40c0", + "sourceRevision": "lodestones/Chroma1-HD@0e0c60ece1e82b17cb7f77342d765ba5024c40c0", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "Publisher model terms at https://huggingface.co/lodestones/Chroma1-HD/tree/0e0c60ece1e82b17cb7f77342d765ba5024c40c0" + ], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "lodestones/Chroma1-HD@0e0c60ece1e82b17cb7f77342d765ba5024c40c0 https://huggingface.co/lodestones/Chroma1-HD/tree/0e0c60ece1e82b17cb7f77342d765ba5024c40c0" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "60b01498a2df5f4e4622cdc2f9a43c83d187820780d2425a19718c13707db501", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "chroma_alpine_block_print" + }, { "path": "template-gallery/reviews/chroma_restored_cobalt_backdrop.original-provenance.json", "sha256": "sha256:bytes:f87d18b81ff559f1298f0c780db0f5eb89e9f8219b4f4aff80c224bc3ef47ce4", @@ -9728,67 +10835,175 @@ "provenanceTemplateId": "flowers_after_rain" }, { - "path": "template-gallery/reviews/flux2_klein_edit.quality-review.json", - "sha256": "sha256:bytes:9fb22201199f326234b60ad2b1162dd14d3e94cf6e2bd4d00507c26d240aeebe", + "path": "template-gallery/reviews/flux1_dev_limestone_studio_scratch_repair.original-provenance.json", + "sha256": "sha256:bytes:876f2fb80e0352d1c5d25648da72ec9324d03e46bad65e42cd487c415d952626", "publishDecision": "approved", "holdReason": null, - "creatorOrRightsholder": "MoDiff project maintainers", - "creationMethod": "MoDiff-authored technical provenance, Gallery manifest or quality review for the two explicitly approved native Windows FLUX.2 Klein images", - "sourceUrl": null, - "sourceRevision": null, - "sourceLicense": "Apache-2.0 project-authored metadata; generated-media terms remain in their exact per-file record", - "modelTerms": [], + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/black-forest-labs/FLUX.1-dev/tree/3de623fc3c33e44ffbe2bad470d0f45bccf2eb21", + "sourceRevision": "black-forest-labs/FLUX.1-dev@3de623fc3c33e44ffbe2bad470d0f45bccf2eb21", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "Publisher model terms at https://huggingface.co/black-forest-labs/FLUX.1-dev/tree/3de623fc3c33e44ffbe2bad470d0f45bccf2eb21" + ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], - "requiredAttribution": [], + "requiredAttribution": [ + "black-forest-labs/FLUX.1-dev@3de623fc3c33e44ffbe2bad470d0f45bccf2eb21 https://huggingface.co/black-forest-labs/FLUX.1-dev/tree/3de623fc3c33e44ffbe2bad470d0f45bccf2eb21" + ], "assetLicense": "Apache-2.0", - "reviewedBy": "SOURAV DAS", - "reviewedAt": "2026-11-10", - "reviewClass": "per-file-human-approved-windows-klein-native-image-registration", - "provenanceTemplateId": "flux2_klein_edit", - "humanApprovalPacketSHA256": "2862dea890936a224953749fccb20cbba222471c43abad480dad091e8437f45a" + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "60b01498a2df5f4e4622cdc2f9a43c83d187820780d2425a19718c13707db501", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "flux1_dev_limestone_studio_scratch_repair" }, { - "path": "template-gallery/reviews/flux2_klein_edit.reviewed-provenance.json", - "sha256": "sha256:bytes:780517219787eafdce5362cfd9f8cab52f848397edde41b5b91ed9bb3c904462", + "path": "template-gallery/reviews/flux1_dev_limestone_studio_scratch_repair.original-review.json", + "sha256": "sha256:bytes:9c6d1ea38c006fe11dd5e65d5c82d040e20844d8d38c680b1d45ea189b9e2282", "publishDecision": "approved", "holdReason": null, - "creatorOrRightsholder": "MoDiff project maintainers", - "creationMethod": "MoDiff-authored technical provenance, Gallery manifest or quality review for the two explicitly approved native Windows FLUX.2 Klein images", - "sourceUrl": null, - "sourceRevision": null, - "sourceLicense": "Apache-2.0 project-authored metadata; generated-media terms remain in their exact per-file record", - "modelTerms": [], + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/black-forest-labs/FLUX.1-dev/tree/3de623fc3c33e44ffbe2bad470d0f45bccf2eb21", + "sourceRevision": "black-forest-labs/FLUX.1-dev@3de623fc3c33e44ffbe2bad470d0f45bccf2eb21", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "Publisher model terms at https://huggingface.co/black-forest-labs/FLUX.1-dev/tree/3de623fc3c33e44ffbe2bad470d0f45bccf2eb21" + ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], - "requiredAttribution": [], + "requiredAttribution": [ + "black-forest-labs/FLUX.1-dev@3de623fc3c33e44ffbe2bad470d0f45bccf2eb21 https://huggingface.co/black-forest-labs/FLUX.1-dev/tree/3de623fc3c33e44ffbe2bad470d0f45bccf2eb21" + ], "assetLicense": "Apache-2.0", - "reviewedBy": "SOURAV DAS", - "reviewedAt": "2026-11-10", - "reviewClass": "per-file-human-approved-windows-klein-native-image-registration", - "humanApprovalPacketSHA256": "2862dea890936a224953749fccb20cbba222471c43abad480dad091e8437f45a", - "humanApprovalScope": "The maintainer explicitly approved the proposed 4/5 scores, known limits, exact retained Klein two-reference derivative output, its redacted technical/quality metadata, and permission to make and redistribute this derivative under Apache-2.0. Existing source images and their mixed license records remain unchanged; no other assets or held cases are newly approved.", - "provenanceTemplateId": "flux2_klein_edit" + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "60b01498a2df5f4e4622cdc2f9a43c83d187820780d2425a19718c13707db501", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "flux1_dev_limestone_studio_scratch_repair" }, { - "path": "template-gallery/reviews/flux2_klein_multi_reference.quality-review.json", - "sha256": "sha256:bytes:7f6d97ce71b303302117236ae3c8f3cd047801026a8f808916c69c9008c6c5c5", + "path": "template-gallery/reviews/flux1_dev_limestone_studio_scratch_repair.quality-review.json", + "sha256": "sha256:bytes:1233ae9bdb89e3599b691f2bc14408f1f9dd762c3db734bb8fd828fce1f040b0", "publishDecision": "approved", "holdReason": null, - "creatorOrRightsholder": "MoDiff project maintainers", - "creationMethod": "MoDiff-authored technical provenance or quality metadata from the explicitly approved retained Klein two-reference source packet", - "sourceUrl": null, - "sourceRevision": null, - "sourceLicense": "Apache-2.0 project-authored metadata; generated-media terms remain in their exact per-file records", - "modelTerms": [], - "aiGenerated": false, - "humanLikenessConsent": "not-applicable", - "marks": [], - "requiredAttribution": [], - "assetLicense": "Apache-2.0", - "reviewedBy": "SOURAV DAS", + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/black-forest-labs/FLUX.1-dev/tree/3de623fc3c33e44ffbe2bad470d0f45bccf2eb21", + "sourceRevision": "black-forest-labs/FLUX.1-dev@3de623fc3c33e44ffbe2bad470d0f45bccf2eb21", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "Publisher model terms at https://huggingface.co/black-forest-labs/FLUX.1-dev/tree/3de623fc3c33e44ffbe2bad470d0f45bccf2eb21" + ], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "black-forest-labs/FLUX.1-dev@3de623fc3c33e44ffbe2bad470d0f45bccf2eb21 https://huggingface.co/black-forest-labs/FLUX.1-dev/tree/3de623fc3c33e44ffbe2bad470d0f45bccf2eb21" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "60b01498a2df5f4e4622cdc2f9a43c83d187820780d2425a19718c13707db501", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "flux1_dev_limestone_studio_scratch_repair" + }, + { + "path": "template-gallery/reviews/flux1_dev_limestone_studio_scratch_repair.retained-template-provenance.json", + "sha256": "sha256:bytes:61e8601aaefcc918f03d5f110d57e8f26cb2149d6034c22fb9c13915ddb70324", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/black-forest-labs/FLUX.1-dev/tree/3de623fc3c33e44ffbe2bad470d0f45bccf2eb21", + "sourceRevision": "black-forest-labs/FLUX.1-dev@3de623fc3c33e44ffbe2bad470d0f45bccf2eb21", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "Publisher model terms at https://huggingface.co/black-forest-labs/FLUX.1-dev/tree/3de623fc3c33e44ffbe2bad470d0f45bccf2eb21" + ], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "black-forest-labs/FLUX.1-dev@3de623fc3c33e44ffbe2bad470d0f45bccf2eb21 https://huggingface.co/black-forest-labs/FLUX.1-dev/tree/3de623fc3c33e44ffbe2bad470d0f45bccf2eb21" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "60b01498a2df5f4e4622cdc2f9a43c83d187820780d2425a19718c13707db501", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "flux1_dev_limestone_studio_scratch_repair" + }, + { + "path": "template-gallery/reviews/flux2_klein_edit.quality-review.json", + "sha256": "sha256:bytes:9fb22201199f326234b60ad2b1162dd14d3e94cf6e2bd4d00507c26d240aeebe", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers", + "creationMethod": "MoDiff-authored technical provenance, Gallery manifest or quality review for the two explicitly approved native Windows FLUX.2 Klein images", + "sourceUrl": null, + "sourceRevision": null, + "sourceLicense": "Apache-2.0 project-authored metadata; generated-media terms remain in their exact per-file record", + "modelTerms": [], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [], + "assetLicense": "Apache-2.0", + "reviewedBy": "SOURAV DAS", + "reviewedAt": "2026-11-10", + "reviewClass": "per-file-human-approved-windows-klein-native-image-registration", + "provenanceTemplateId": "flux2_klein_edit", + "humanApprovalPacketSHA256": "2862dea890936a224953749fccb20cbba222471c43abad480dad091e8437f45a" + }, + { + "path": "template-gallery/reviews/flux2_klein_edit.reviewed-provenance.json", + "sha256": "sha256:bytes:780517219787eafdce5362cfd9f8cab52f848397edde41b5b91ed9bb3c904462", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers", + "creationMethod": "MoDiff-authored technical provenance, Gallery manifest or quality review for the two explicitly approved native Windows FLUX.2 Klein images", + "sourceUrl": null, + "sourceRevision": null, + "sourceLicense": "Apache-2.0 project-authored metadata; generated-media terms remain in their exact per-file record", + "modelTerms": [], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [], + "assetLicense": "Apache-2.0", + "reviewedBy": "SOURAV DAS", + "reviewedAt": "2026-11-10", + "reviewClass": "per-file-human-approved-windows-klein-native-image-registration", + "humanApprovalPacketSHA256": "2862dea890936a224953749fccb20cbba222471c43abad480dad091e8437f45a", + "humanApprovalScope": "The maintainer explicitly approved the proposed 4/5 scores, known limits, exact retained Klein two-reference derivative output, its redacted technical/quality metadata, and permission to make and redistribute this derivative under Apache-2.0. Existing source images and their mixed license records remain unchanged; no other assets or held cases are newly approved.", + "provenanceTemplateId": "flux2_klein_edit" + }, + { + "path": "template-gallery/reviews/flux2_klein_multi_reference.quality-review.json", + "sha256": "sha256:bytes:7f6d97ce71b303302117236ae3c8f3cd047801026a8f808916c69c9008c6c5c5", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers", + "creationMethod": "MoDiff-authored technical provenance or quality metadata from the explicitly approved retained Klein two-reference source packet", + "sourceUrl": null, + "sourceRevision": null, + "sourceLicense": "Apache-2.0 project-authored metadata; generated-media terms remain in their exact per-file records", + "modelTerms": [], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [], + "assetLicense": "Apache-2.0", + "reviewedBy": "SOURAV DAS", "reviewedAt": "2026-11-09", "reviewClass": "per-file-human-approved-klein-derivative-registration", "provenanceTemplateId": "flux2_klein_multi_reference", @@ -10543,133 +11758,349 @@ "humanApprovalPacketSHA256": "351d122936dc8df9c3fb6217005641dd2cc2ecddc39cd7cd7fadc2939def70b3" }, { - "path": "template-gallery/reviews/flux_kontext_edit.quality-review.json", - "sha256": "sha256:bytes:b4ecdefeee42100d34df1f4a1d05c944c3c950e586a7d644496d36961e66c593", + "path": "template-gallery/reviews/flux_klein_alpine_lake_panorama.original-provenance.json", + "sha256": "sha256:bytes:82e163fa04890d8549972f17c4d863ba445dd9f2f1088199737d534b807c9e97", "publishDecision": "approved", "holdReason": null, - "creatorOrRightsholder": "MoDiff project maintainers", - "creationMethod": "MoDiff-authored technical, review, input-binding or retained recipe metadata for three maintainer-accepted assets", - "sourceUrl": null, - "sourceRevision": null, - "sourceLicense": "Apache-2.0 project-authored metadata; generated-media model terms are retained separately", - "modelTerms": [], + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/black-forest-labs/FLUX.2-klein-4B/tree/e7b7dc27f91deacad38e78976d1f2b499d76a294", + "sourceRevision": "black-forest-labs/FLUX.2-klein-4B@e7b7dc27f91deacad38e78976d1f2b499d76a294", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "Publisher model terms at https://huggingface.co/black-forest-labs/FLUX.2-klein-4B/tree/e7b7dc27f91deacad38e78976d1f2b499d76a294" + ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], - "requiredAttribution": [], + "requiredAttribution": [ + "black-forest-labs/FLUX.2-klein-4B@e7b7dc27f91deacad38e78976d1f2b499d76a294 https://huggingface.co/black-forest-labs/FLUX.2-klein-4B/tree/e7b7dc27f91deacad38e78976d1f2b499d76a294" + ], "assetLicense": "Apache-2.0", - "reviewedBy": "maintainer (current user)", - "reviewedAt": "2026-11-12", - "reviewClass": "per-file-maintainer-accepted-native-three-registration", - "provenanceTemplateId": "flux_kontext_edit", - "humanApprovalPacketSHA256": "69c6b3d9b0ea2fcca16ee538f6e75b414b7141658b74f10578758e61360f63fd" + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "60b01498a2df5f4e4622cdc2f9a43c83d187820780d2425a19718c13707db501", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "flux_klein_alpine_lake_panorama" }, { - "path": "template-gallery/reviews/flux_kontext_edit.reviewed-provenance.json", - "sha256": "sha256:bytes:a1d3b7605879400b4675dbb92e52b510648d331cbdc715026695b951a4f9970f", + "path": "template-gallery/reviews/flux_klein_alpine_lake_panorama.original-review.json", + "sha256": "sha256:bytes:0af53835f9eb84a14dbbd91c1c6527b27d7e2ef05682c5c5a8b9a120599220c7", "publishDecision": "approved", "holdReason": null, - "creatorOrRightsholder": "MoDiff project maintainers", - "creationMethod": "MoDiff-authored technical, review, input-binding or retained recipe metadata for three maintainer-accepted assets", - "sourceUrl": null, - "sourceRevision": null, - "sourceLicense": "Apache-2.0 project-authored metadata; generated-media model terms are retained separately", - "modelTerms": [], + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/black-forest-labs/FLUX.2-klein-4B/tree/e7b7dc27f91deacad38e78976d1f2b499d76a294", + "sourceRevision": "black-forest-labs/FLUX.2-klein-4B@e7b7dc27f91deacad38e78976d1f2b499d76a294", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "Publisher model terms at https://huggingface.co/black-forest-labs/FLUX.2-klein-4B/tree/e7b7dc27f91deacad38e78976d1f2b499d76a294" + ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], - "requiredAttribution": [], + "requiredAttribution": [ + "black-forest-labs/FLUX.2-klein-4B@e7b7dc27f91deacad38e78976d1f2b499d76a294 https://huggingface.co/black-forest-labs/FLUX.2-klein-4B/tree/e7b7dc27f91deacad38e78976d1f2b499d76a294" + ], "assetLicense": "Apache-2.0", - "reviewedBy": "maintainer (current user)", - "reviewedAt": "2026-11-12", - "reviewClass": "per-file-maintainer-accepted-native-three-registration", - "provenanceTemplateId": "flux_kontext_edit", - "humanApprovalPacketSHA256": "69c6b3d9b0ea2fcca16ee538f6e75b414b7141658b74f10578758e61360f63fd" + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "60b01498a2df5f4e4622cdc2f9a43c83d187820780d2425a19718c13707db501", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "flux_klein_alpine_lake_panorama" }, { - "path": "template-gallery/reviews/flux_kontext_multi_reference.quality-review.json", - "sha256": "sha256:bytes:e81c8ef5da7e3e2a0d6b511c093052c6edcc5dff6c5ca59db393450ed2a1cb06", + "path": "template-gallery/reviews/flux_klein_alpine_lake_panorama.quality-review.json", + "sha256": "sha256:bytes:6903b5b197080a67979212e174d52cf4e68a85773c6b6011f8c8d0b2eb5d0271", "publishDecision": "approved", "holdReason": null, - "creatorOrRightsholder": "MoDiff project maintainers", - "creationMethod": "MoDiff-authored technical, review, input-binding or retained recipe metadata for three maintainer-accepted assets", - "sourceUrl": null, - "sourceRevision": null, - "sourceLicense": "Apache-2.0 project-authored metadata; generated-media model terms are retained separately", - "modelTerms": [], + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/black-forest-labs/FLUX.2-klein-4B/tree/e7b7dc27f91deacad38e78976d1f2b499d76a294", + "sourceRevision": "black-forest-labs/FLUX.2-klein-4B@e7b7dc27f91deacad38e78976d1f2b499d76a294", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "Publisher model terms at https://huggingface.co/black-forest-labs/FLUX.2-klein-4B/tree/e7b7dc27f91deacad38e78976d1f2b499d76a294" + ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], - "requiredAttribution": [], + "requiredAttribution": [ + "black-forest-labs/FLUX.2-klein-4B@e7b7dc27f91deacad38e78976d1f2b499d76a294 https://huggingface.co/black-forest-labs/FLUX.2-klein-4B/tree/e7b7dc27f91deacad38e78976d1f2b499d76a294" + ], "assetLicense": "Apache-2.0", - "reviewedBy": "maintainer (current user)", - "reviewedAt": "2026-11-12", - "reviewClass": "per-file-maintainer-accepted-native-three-registration", - "provenanceTemplateId": "flux_kontext_multi_reference", - "humanApprovalPacketSHA256": "69c6b3d9b0ea2fcca16ee538f6e75b414b7141658b74f10578758e61360f63fd" + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "60b01498a2df5f4e4622cdc2f9a43c83d187820780d2425a19718c13707db501", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "flux_klein_alpine_lake_panorama" }, { - "path": "template-gallery/reviews/flux_kontext_multi_reference.reviewed-provenance.json", - "sha256": "sha256:bytes:14db077ec2ae9cbc640bab2585a5105d2b129eafded32e7ea7be2464b412bb25", + "path": "template-gallery/reviews/flux_klein_alpine_lake_panorama.retained-template-provenance.json", + "sha256": "sha256:bytes:0d74c14cd0dde401464e43f75a8c126b881bbbeb05bf145297ad33d575022aeb", "publishDecision": "approved", "holdReason": null, - "creatorOrRightsholder": "MoDiff project maintainers", - "creationMethod": "MoDiff-authored technical, review, input-binding or retained recipe metadata for three maintainer-accepted assets", - "sourceUrl": null, - "sourceRevision": null, - "sourceLicense": "Apache-2.0 project-authored metadata; generated-media model terms are retained separately", - "modelTerms": [], + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/black-forest-labs/FLUX.2-klein-4B/tree/e7b7dc27f91deacad38e78976d1f2b499d76a294", + "sourceRevision": "black-forest-labs/FLUX.2-klein-4B@e7b7dc27f91deacad38e78976d1f2b499d76a294", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "Publisher model terms at https://huggingface.co/black-forest-labs/FLUX.2-klein-4B/tree/e7b7dc27f91deacad38e78976d1f2b499d76a294" + ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], - "requiredAttribution": [], + "requiredAttribution": [ + "black-forest-labs/FLUX.2-klein-4B@e7b7dc27f91deacad38e78976d1f2b499d76a294 https://huggingface.co/black-forest-labs/FLUX.2-klein-4B/tree/e7b7dc27f91deacad38e78976d1f2b499d76a294" + ], "assetLicense": "Apache-2.0", - "reviewedBy": "maintainer (current user)", - "reviewedAt": "2026-11-12", - "reviewClass": "per-file-maintainer-accepted-native-three-registration", - "provenanceTemplateId": "flux_kontext_multi_reference", - "humanApprovalPacketSHA256": "69c6b3d9b0ea2fcca16ee538f6e75b414b7141658b74f10578758e61360f63fd" + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "60b01498a2df5f4e4622cdc2f9a43c83d187820780d2425a19718c13707db501", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "flux_klein_alpine_lake_panorama" }, { - "path": "template-gallery/reviews/flux_krea_text_to_image.quality-review.json", - "sha256": "sha256:bytes:e60051b4da6abcd87c5c1356a2ff3dae280d92fbe25f9a95360f6d54bad93c45", + "path": "template-gallery/reviews/flux_klein_open_glacial_lake.original-provenance.json", + "sha256": "sha256:bytes:5b7df305704e076244a7d1fbd4e64589e7825ee96a116c0a9a6ef4c16a3231e5", "publishDecision": "approved", "holdReason": null, - "creatorOrRightsholder": "MoDiff project maintainers", - "creationMethod": "MoDiff-authored Gallery manifest, reviewed provenance or quality review for the accepted morning batch", - "sourceUrl": null, - "sourceRevision": null, - "sourceLicense": "Apache-2.0 project-authored metadata; generated-media terms remain in their exact per-file record", - "modelTerms": [], + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/black-forest-labs/FLUX.2-klein-4B/tree/e7b7dc27f91deacad38e78976d1f2b499d76a294", + "sourceRevision": "black-forest-labs/FLUX.2-klein-4B@e7b7dc27f91deacad38e78976d1f2b499d76a294", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "Publisher model terms at https://huggingface.co/black-forest-labs/FLUX.2-klein-4B/tree/e7b7dc27f91deacad38e78976d1f2b499d76a294" + ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], - "requiredAttribution": [], + "requiredAttribution": [ + "black-forest-labs/FLUX.2-klein-4B@e7b7dc27f91deacad38e78976d1f2b499d76a294 https://huggingface.co/black-forest-labs/FLUX.2-klein-4B/tree/e7b7dc27f91deacad38e78976d1f2b499d76a294" + ], "assetLicense": "Apache-2.0", - "reviewedBy": "SOURAV DAS", - "reviewedAt": "2026-11-10", - "reviewClass": "per-file-maintainer-approved-gallery-registration", - "provenanceTemplateId": "flux_krea_text_to_image", - "humanApprovalPacketSHA256": "351d122936dc8df9c3fb6217005641dd2cc2ecddc39cd7cd7fadc2939def70b3" + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "60b01498a2df5f4e4622cdc2f9a43c83d187820780d2425a19718c13707db501", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "flux_klein_open_glacial_lake" }, { - "path": "template-gallery/reviews/flux_krea_text_to_image.reviewed-provenance.json", - "sha256": "sha256:bytes:6cc4951f1e036aa80a7e92f80be0c40d37336f0f76ca7fe3dc118679f3cd08f3", + "path": "template-gallery/reviews/flux_klein_open_glacial_lake.original-review.json", + "sha256": "sha256:bytes:127d7ce73ad054114252277de338834612bed27d675c1e48dc377bedb84fb237", "publishDecision": "approved", "holdReason": null, - "creatorOrRightsholder": "MoDiff project maintainers", - "creationMethod": "MoDiff-authored Gallery manifest, reviewed provenance or quality review for the accepted morning batch", - "sourceUrl": null, - "sourceRevision": null, - "sourceLicense": "Apache-2.0 project-authored metadata; generated-media terms remain in their exact per-file record", - "modelTerms": [], + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/black-forest-labs/FLUX.2-klein-4B/tree/e7b7dc27f91deacad38e78976d1f2b499d76a294", + "sourceRevision": "black-forest-labs/FLUX.2-klein-4B@e7b7dc27f91deacad38e78976d1f2b499d76a294", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "Publisher model terms at https://huggingface.co/black-forest-labs/FLUX.2-klein-4B/tree/e7b7dc27f91deacad38e78976d1f2b499d76a294" + ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], - "requiredAttribution": [], + "requiredAttribution": [ + "black-forest-labs/FLUX.2-klein-4B@e7b7dc27f91deacad38e78976d1f2b499d76a294 https://huggingface.co/black-forest-labs/FLUX.2-klein-4B/tree/e7b7dc27f91deacad38e78976d1f2b499d76a294" + ], "assetLicense": "Apache-2.0", - "reviewedBy": "SOURAV DAS", - "reviewedAt": "2026-11-10", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "60b01498a2df5f4e4622cdc2f9a43c83d187820780d2425a19718c13707db501", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "flux_klein_open_glacial_lake" + }, + { + "path": "template-gallery/reviews/flux_klein_open_glacial_lake.quality-review.json", + "sha256": "sha256:bytes:8fbb74c11639cba4c5ab3fab926e29d8e3c703ba5830fe9305352119e962dd60", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/black-forest-labs/FLUX.2-klein-4B/tree/e7b7dc27f91deacad38e78976d1f2b499d76a294", + "sourceRevision": "black-forest-labs/FLUX.2-klein-4B@e7b7dc27f91deacad38e78976d1f2b499d76a294", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "Publisher model terms at https://huggingface.co/black-forest-labs/FLUX.2-klein-4B/tree/e7b7dc27f91deacad38e78976d1f2b499d76a294" + ], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "black-forest-labs/FLUX.2-klein-4B@e7b7dc27f91deacad38e78976d1f2b499d76a294 https://huggingface.co/black-forest-labs/FLUX.2-klein-4B/tree/e7b7dc27f91deacad38e78976d1f2b499d76a294" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "60b01498a2df5f4e4622cdc2f9a43c83d187820780d2425a19718c13707db501", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "flux_klein_open_glacial_lake" + }, + { + "path": "template-gallery/reviews/flux_klein_open_glacial_lake.retained-template-provenance.json", + "sha256": "sha256:bytes:cce6957687fe79ea590c44ce56f1ac0c594f6df854c4e367e88c4509c0b880c2", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/black-forest-labs/FLUX.2-klein-4B/tree/e7b7dc27f91deacad38e78976d1f2b499d76a294", + "sourceRevision": "black-forest-labs/FLUX.2-klein-4B@e7b7dc27f91deacad38e78976d1f2b499d76a294", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "Publisher model terms at https://huggingface.co/black-forest-labs/FLUX.2-klein-4B/tree/e7b7dc27f91deacad38e78976d1f2b499d76a294" + ], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "black-forest-labs/FLUX.2-klein-4B@e7b7dc27f91deacad38e78976d1f2b499d76a294 https://huggingface.co/black-forest-labs/FLUX.2-klein-4B/tree/e7b7dc27f91deacad38e78976d1f2b499d76a294" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "60b01498a2df5f4e4622cdc2f9a43c83d187820780d2425a19718c13707db501", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "flux_klein_open_glacial_lake" + }, + { + "path": "template-gallery/reviews/flux_kontext_edit.quality-review.json", + "sha256": "sha256:bytes:b4ecdefeee42100d34df1f4a1d05c944c3c950e586a7d644496d36961e66c593", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers", + "creationMethod": "MoDiff-authored technical, review, input-binding or retained recipe metadata for three maintainer-accepted assets", + "sourceUrl": null, + "sourceRevision": null, + "sourceLicense": "Apache-2.0 project-authored metadata; generated-media model terms are retained separately", + "modelTerms": [], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [], + "assetLicense": "Apache-2.0", + "reviewedBy": "maintainer (current user)", + "reviewedAt": "2026-11-12", + "reviewClass": "per-file-maintainer-accepted-native-three-registration", + "provenanceTemplateId": "flux_kontext_edit", + "humanApprovalPacketSHA256": "69c6b3d9b0ea2fcca16ee538f6e75b414b7141658b74f10578758e61360f63fd" + }, + { + "path": "template-gallery/reviews/flux_kontext_edit.reviewed-provenance.json", + "sha256": "sha256:bytes:a1d3b7605879400b4675dbb92e52b510648d331cbdc715026695b951a4f9970f", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers", + "creationMethod": "MoDiff-authored technical, review, input-binding or retained recipe metadata for three maintainer-accepted assets", + "sourceUrl": null, + "sourceRevision": null, + "sourceLicense": "Apache-2.0 project-authored metadata; generated-media model terms are retained separately", + "modelTerms": [], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [], + "assetLicense": "Apache-2.0", + "reviewedBy": "maintainer (current user)", + "reviewedAt": "2026-11-12", + "reviewClass": "per-file-maintainer-accepted-native-three-registration", + "provenanceTemplateId": "flux_kontext_edit", + "humanApprovalPacketSHA256": "69c6b3d9b0ea2fcca16ee538f6e75b414b7141658b74f10578758e61360f63fd" + }, + { + "path": "template-gallery/reviews/flux_kontext_multi_reference.quality-review.json", + "sha256": "sha256:bytes:e81c8ef5da7e3e2a0d6b511c093052c6edcc5dff6c5ca59db393450ed2a1cb06", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers", + "creationMethod": "MoDiff-authored technical, review, input-binding or retained recipe metadata for three maintainer-accepted assets", + "sourceUrl": null, + "sourceRevision": null, + "sourceLicense": "Apache-2.0 project-authored metadata; generated-media model terms are retained separately", + "modelTerms": [], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [], + "assetLicense": "Apache-2.0", + "reviewedBy": "maintainer (current user)", + "reviewedAt": "2026-11-12", + "reviewClass": "per-file-maintainer-accepted-native-three-registration", + "provenanceTemplateId": "flux_kontext_multi_reference", + "humanApprovalPacketSHA256": "69c6b3d9b0ea2fcca16ee538f6e75b414b7141658b74f10578758e61360f63fd" + }, + { + "path": "template-gallery/reviews/flux_kontext_multi_reference.reviewed-provenance.json", + "sha256": "sha256:bytes:14db077ec2ae9cbc640bab2585a5105d2b129eafded32e7ea7be2464b412bb25", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers", + "creationMethod": "MoDiff-authored technical, review, input-binding or retained recipe metadata for three maintainer-accepted assets", + "sourceUrl": null, + "sourceRevision": null, + "sourceLicense": "Apache-2.0 project-authored metadata; generated-media model terms are retained separately", + "modelTerms": [], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [], + "assetLicense": "Apache-2.0", + "reviewedBy": "maintainer (current user)", + "reviewedAt": "2026-11-12", + "reviewClass": "per-file-maintainer-accepted-native-three-registration", + "provenanceTemplateId": "flux_kontext_multi_reference", + "humanApprovalPacketSHA256": "69c6b3d9b0ea2fcca16ee538f6e75b414b7141658b74f10578758e61360f63fd" + }, + { + "path": "template-gallery/reviews/flux_krea_text_to_image.quality-review.json", + "sha256": "sha256:bytes:e60051b4da6abcd87c5c1356a2ff3dae280d92fbe25f9a95360f6d54bad93c45", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers", + "creationMethod": "MoDiff-authored Gallery manifest, reviewed provenance or quality review for the accepted morning batch", + "sourceUrl": null, + "sourceRevision": null, + "sourceLicense": "Apache-2.0 project-authored metadata; generated-media terms remain in their exact per-file record", + "modelTerms": [], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [], + "assetLicense": "Apache-2.0", + "reviewedBy": "SOURAV DAS", + "reviewedAt": "2026-11-10", + "reviewClass": "per-file-maintainer-approved-gallery-registration", + "provenanceTemplateId": "flux_krea_text_to_image", + "humanApprovalPacketSHA256": "351d122936dc8df9c3fb6217005641dd2cc2ecddc39cd7cd7fadc2939def70b3" + }, + { + "path": "template-gallery/reviews/flux_krea_text_to_image.reviewed-provenance.json", + "sha256": "sha256:bytes:6cc4951f1e036aa80a7e92f80be0c40d37336f0f76ca7fe3dc118679f3cd08f3", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers", + "creationMethod": "MoDiff-authored Gallery manifest, reviewed provenance or quality review for the accepted morning batch", + "sourceUrl": null, + "sourceRevision": null, + "sourceLicense": "Apache-2.0 project-authored metadata; generated-media terms remain in their exact per-file record", + "modelTerms": [], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [], + "assetLicense": "Apache-2.0", + "reviewedBy": "SOURAV DAS", + "reviewedAt": "2026-11-10", "reviewClass": "per-file-maintainer-approved-gallery-registration", "provenanceTemplateId": "flux_krea_text_to_image", "humanApprovalPacketSHA256": "351d122936dc8df9c3fb6217005641dd2cc2ecddc39cd7cd7fadc2939def70b3" @@ -12039,285 +13470,266 @@ "provenanceTemplateId": "janus_reykjavik_travel_note" }, { - "path": "template-gallery/reviews/joyimage_herbarium_rainy_porthole.original-provenance.json", - "sha256": "sha256:bytes:9d044b889706d4034d96da08aec8f9c6fa2458e2d75b36055a1a707e11140d38", + "path": "template-gallery/reviews/joy_plus_lavender_on_limestone.original-provenance.json", + "sha256": "sha256:bytes:1d38c6f1a9b8c9f496cfb0905e6b4e2c8dd25129110ebf28c86e1070178c1237", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/jdopensource/JoyAI-Image-Edit-Diffusers/tree/4b41fb25d961f37668750178ccbb380da326201c", - "sourceRevision": "jdopensource/JoyAI-Image-Edit-Diffusers@4b41fb25d961f37668750178ccbb380da326201c", + "sourceUrl": "https://huggingface.co/jdopensource/JoyAI-Image-Edit-Plus-Diffusers/tree/c2686460c7b64d8aa11bc4d0da423fb316b33f9e", + "sourceRevision": "jdopensource/JoyAI-Image-Edit-Plus-Diffusers@c2686460c7b64d8aa11bc4d0da423fb316b33f9e", "sourceLicense": "MoDiff-authored Gallery metadata", "modelTerms": [ - "Publisher model terms at https://huggingface.co/jdopensource/JoyAI-Image-Edit-Diffusers/tree/4b41fb25d961f37668750178ccbb380da326201c" + "Publisher model terms at https://huggingface.co/jdopensource/JoyAI-Image-Edit-Plus-Diffusers/tree/c2686460c7b64d8aa11bc4d0da423fb316b33f9e" ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "jdopensource/JoyAI-Image-Edit-Diffusers@4b41fb25d961f37668750178ccbb380da326201c https://huggingface.co/jdopensource/JoyAI-Image-Edit-Diffusers/tree/4b41fb25d961f37668750178ccbb380da326201c" + "jdopensource/JoyAI-Image-Edit-Plus-Diffusers@c2686460c7b64d8aa11bc4d0da423fb316b33f9e https://huggingface.co/jdopensource/JoyAI-Image-Edit-Plus-Diffusers/tree/c2686460c7b64d8aa11bc4d0da423fb316b33f9e" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "4fc7c52588176cb1f6ba6d699d08741b2986ea71ea87bac650d261716a10b24c", + "humanApprovalPacketSHA256": "60b01498a2df5f4e4622cdc2f9a43c83d187820780d2425a19718c13707db501", "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", - "provenanceTemplateId": "joyimage_herbarium_rainy_porthole" + "provenanceTemplateId": "joy_plus_lavender_on_limestone" }, { - "path": "template-gallery/reviews/joyimage_herbarium_rainy_porthole.original-review.json", - "sha256": "sha256:bytes:5f1b196d8b9e9b3740a4745304e7fbbe5bbe5c5385237f87d6895748b75c8e07", + "path": "template-gallery/reviews/joy_plus_lavender_on_limestone.original-review.json", + "sha256": "sha256:bytes:01efaac50374f321864b496b45ee9d133b3d67a9a30ba61eddf81fd23d7204bb", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/jdopensource/JoyAI-Image-Edit-Diffusers/tree/4b41fb25d961f37668750178ccbb380da326201c", - "sourceRevision": "jdopensource/JoyAI-Image-Edit-Diffusers@4b41fb25d961f37668750178ccbb380da326201c", + "sourceUrl": "https://huggingface.co/jdopensource/JoyAI-Image-Edit-Plus-Diffusers/tree/c2686460c7b64d8aa11bc4d0da423fb316b33f9e", + "sourceRevision": "jdopensource/JoyAI-Image-Edit-Plus-Diffusers@c2686460c7b64d8aa11bc4d0da423fb316b33f9e", "sourceLicense": "MoDiff-authored Gallery metadata", "modelTerms": [ - "Publisher model terms at https://huggingface.co/jdopensource/JoyAI-Image-Edit-Diffusers/tree/4b41fb25d961f37668750178ccbb380da326201c" + "Publisher model terms at https://huggingface.co/jdopensource/JoyAI-Image-Edit-Plus-Diffusers/tree/c2686460c7b64d8aa11bc4d0da423fb316b33f9e" ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "jdopensource/JoyAI-Image-Edit-Diffusers@4b41fb25d961f37668750178ccbb380da326201c https://huggingface.co/jdopensource/JoyAI-Image-Edit-Diffusers/tree/4b41fb25d961f37668750178ccbb380da326201c" + "jdopensource/JoyAI-Image-Edit-Plus-Diffusers@c2686460c7b64d8aa11bc4d0da423fb316b33f9e https://huggingface.co/jdopensource/JoyAI-Image-Edit-Plus-Diffusers/tree/c2686460c7b64d8aa11bc4d0da423fb316b33f9e" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "4fc7c52588176cb1f6ba6d699d08741b2986ea71ea87bac650d261716a10b24c", + "humanApprovalPacketSHA256": "60b01498a2df5f4e4622cdc2f9a43c83d187820780d2425a19718c13707db501", "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", - "provenanceTemplateId": "joyimage_herbarium_rainy_porthole" + "provenanceTemplateId": "joy_plus_lavender_on_limestone" }, { - "path": "template-gallery/reviews/joyimage_herbarium_rainy_porthole.quality-review.json", - "sha256": "sha256:bytes:ee32c1cb4403abeab273a797da25cfc3d6930f9eac84785b905ed12d07f5b567", + "path": "template-gallery/reviews/joy_plus_lavender_on_limestone.quality-review.json", + "sha256": "sha256:bytes:8bf5fa341804d3de8c849d40c5ac8518f954def1ba5eae8e56da820eb86d148c", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/jdopensource/JoyAI-Image-Edit-Diffusers/tree/4b41fb25d961f37668750178ccbb380da326201c", - "sourceRevision": "jdopensource/JoyAI-Image-Edit-Diffusers@4b41fb25d961f37668750178ccbb380da326201c", + "sourceUrl": "https://huggingface.co/jdopensource/JoyAI-Image-Edit-Plus-Diffusers/tree/c2686460c7b64d8aa11bc4d0da423fb316b33f9e", + "sourceRevision": "jdopensource/JoyAI-Image-Edit-Plus-Diffusers@c2686460c7b64d8aa11bc4d0da423fb316b33f9e", "sourceLicense": "MoDiff-authored Gallery metadata", "modelTerms": [ - "Publisher model terms at https://huggingface.co/jdopensource/JoyAI-Image-Edit-Diffusers/tree/4b41fb25d961f37668750178ccbb380da326201c" + "Publisher model terms at https://huggingface.co/jdopensource/JoyAI-Image-Edit-Plus-Diffusers/tree/c2686460c7b64d8aa11bc4d0da423fb316b33f9e" ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "jdopensource/JoyAI-Image-Edit-Diffusers@4b41fb25d961f37668750178ccbb380da326201c https://huggingface.co/jdopensource/JoyAI-Image-Edit-Diffusers/tree/4b41fb25d961f37668750178ccbb380da326201c" + "jdopensource/JoyAI-Image-Edit-Plus-Diffusers@c2686460c7b64d8aa11bc4d0da423fb316b33f9e https://huggingface.co/jdopensource/JoyAI-Image-Edit-Plus-Diffusers/tree/c2686460c7b64d8aa11bc4d0da423fb316b33f9e" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "4fc7c52588176cb1f6ba6d699d08741b2986ea71ea87bac650d261716a10b24c", + "humanApprovalPacketSHA256": "60b01498a2df5f4e4622cdc2f9a43c83d187820780d2425a19718c13707db501", "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", - "provenanceTemplateId": "joyimage_herbarium_rainy_porthole" + "provenanceTemplateId": "joy_plus_lavender_on_limestone" }, { - "path": "template-gallery/reviews/joyimage_herbarium_rainy_porthole.retained-template-provenance.json", - "sha256": "sha256:bytes:9dea78e9b2060e8253be0d3862ab101885f5c8ad55f66d0d2424943e634bcc03", + "path": "template-gallery/reviews/joy_plus_lavender_on_limestone.retained-template-provenance.json", + "sha256": "sha256:bytes:9d769bc0f109f129a0a74b77d642cd0029204a037d3bb9e0ab17c322b31e4892", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/jdopensource/JoyAI-Image-Edit-Diffusers/tree/4b41fb25d961f37668750178ccbb380da326201c", - "sourceRevision": "jdopensource/JoyAI-Image-Edit-Diffusers@4b41fb25d961f37668750178ccbb380da326201c", + "sourceUrl": "https://huggingface.co/jdopensource/JoyAI-Image-Edit-Plus-Diffusers/tree/c2686460c7b64d8aa11bc4d0da423fb316b33f9e", + "sourceRevision": "jdopensource/JoyAI-Image-Edit-Plus-Diffusers@c2686460c7b64d8aa11bc4d0da423fb316b33f9e", "sourceLicense": "MoDiff-authored Gallery metadata", "modelTerms": [ - "Publisher model terms at https://huggingface.co/jdopensource/JoyAI-Image-Edit-Diffusers/tree/4b41fb25d961f37668750178ccbb380da326201c" + "Publisher model terms at https://huggingface.co/jdopensource/JoyAI-Image-Edit-Plus-Diffusers/tree/c2686460c7b64d8aa11bc4d0da423fb316b33f9e" ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "jdopensource/JoyAI-Image-Edit-Diffusers@4b41fb25d961f37668750178ccbb380da326201c https://huggingface.co/jdopensource/JoyAI-Image-Edit-Diffusers/tree/4b41fb25d961f37668750178ccbb380da326201c" + "jdopensource/JoyAI-Image-Edit-Plus-Diffusers@c2686460c7b64d8aa11bc4d0da423fb316b33f9e https://huggingface.co/jdopensource/JoyAI-Image-Edit-Plus-Diffusers/tree/c2686460c7b64d8aa11bc4d0da423fb316b33f9e" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "4fc7c52588176cb1f6ba6d699d08741b2986ea71ea87bac650d261716a10b24c", + "humanApprovalPacketSHA256": "60b01498a2df5f4e4622cdc2f9a43c83d187820780d2425a19718c13707db501", "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", - "provenanceTemplateId": "joyimage_herbarium_rainy_porthole" + "provenanceTemplateId": "joy_plus_lavender_on_limestone" }, { - "path": "template-gallery/reviews/kandinsky3_ginkgo_on_slate.original-provenance.json", - "sha256": "sha256:bytes:31189848b609ec308b9bd427975d0b09d502ff7583321e88a7ba813f5a968db8", + "path": "template-gallery/reviews/joyimage_base_cobalt_paper_band.original-provenance.json", + "sha256": "sha256:bytes:e8cbdf5d79e8c91cc1f85575b2a5a29fcd3a1b2b470bd08137514d71b4e157ef", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/kandinsky-community/kandinsky-3/tree/bf79e6c219da8a94abb50235fdc4567eb8fb4632", - "sourceRevision": "kandinsky-community/kandinsky-3@bf79e6c219da8a94abb50235fdc4567eb8fb4632", + "sourceUrl": "https://huggingface.co/jdopensource/JoyAI-Image-Edit-Diffusers/tree/4b41fb25d961f37668750178ccbb380da326201c", + "sourceRevision": "jdopensource/JoyAI-Image-Edit-Diffusers@4b41fb25d961f37668750178ccbb380da326201c", "sourceLicense": "MoDiff-authored Gallery metadata", "modelTerms": [ - "Publisher model terms at https://huggingface.co/kandinsky-community/kandinsky-3/tree/bf79e6c219da8a94abb50235fdc4567eb8fb4632" + "Publisher model terms at https://huggingface.co/jdopensource/JoyAI-Image-Edit-Diffusers/tree/4b41fb25d961f37668750178ccbb380da326201c" ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "kandinsky-community/kandinsky-3@bf79e6c219da8a94abb50235fdc4567eb8fb4632 https://huggingface.co/kandinsky-community/kandinsky-3/tree/bf79e6c219da8a94abb50235fdc4567eb8fb4632" + "jdopensource/JoyAI-Image-Edit-Diffusers@4b41fb25d961f37668750178ccbb380da326201c https://huggingface.co/jdopensource/JoyAI-Image-Edit-Diffusers/tree/4b41fb25d961f37668750178ccbb380da326201c" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", - "reviewedAt": "2026-11-24", + "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "d216f065bdc316366c6183592f657bcfbbd7cb05acd0e510c6b3877fe56bcec2", - "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped six saved cases with model terms retained.", - "provenanceTemplateId": "kandinsky3_ginkgo_on_slate" + "humanApprovalPacketSHA256": "60b01498a2df5f4e4622cdc2f9a43c83d187820780d2425a19718c13707db501", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "joyimage_base_cobalt_paper_band" }, { - "path": "template-gallery/reviews/kandinsky3_ginkgo_on_slate.original-review.json", - "sha256": "sha256:bytes:3d23527148ae151f8b05b623d2739f79ab4bcd37202db7b331e391bdf7b6bedf", + "path": "template-gallery/reviews/joyimage_base_cobalt_paper_band.original-review.json", + "sha256": "sha256:bytes:7d27c8cfdbcb51dba2f6b724268469f067e1a2f85320ac168ee4415ac0446ab9", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/kandinsky-community/kandinsky-3/tree/bf79e6c219da8a94abb50235fdc4567eb8fb4632", - "sourceRevision": "kandinsky-community/kandinsky-3@bf79e6c219da8a94abb50235fdc4567eb8fb4632", + "sourceUrl": "https://huggingface.co/jdopensource/JoyAI-Image-Edit-Diffusers/tree/4b41fb25d961f37668750178ccbb380da326201c", + "sourceRevision": "jdopensource/JoyAI-Image-Edit-Diffusers@4b41fb25d961f37668750178ccbb380da326201c", "sourceLicense": "MoDiff-authored Gallery metadata", "modelTerms": [ - "Publisher model terms at https://huggingface.co/kandinsky-community/kandinsky-3/tree/bf79e6c219da8a94abb50235fdc4567eb8fb4632" + "Publisher model terms at https://huggingface.co/jdopensource/JoyAI-Image-Edit-Diffusers/tree/4b41fb25d961f37668750178ccbb380da326201c" ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "kandinsky-community/kandinsky-3@bf79e6c219da8a94abb50235fdc4567eb8fb4632 https://huggingface.co/kandinsky-community/kandinsky-3/tree/bf79e6c219da8a94abb50235fdc4567eb8fb4632" + "jdopensource/JoyAI-Image-Edit-Diffusers@4b41fb25d961f37668750178ccbb380da326201c https://huggingface.co/jdopensource/JoyAI-Image-Edit-Diffusers/tree/4b41fb25d961f37668750178ccbb380da326201c" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", - "reviewedAt": "2026-11-24", + "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "d216f065bdc316366c6183592f657bcfbbd7cb05acd0e510c6b3877fe56bcec2", - "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped six saved cases with model terms retained.", - "provenanceTemplateId": "kandinsky3_ginkgo_on_slate" + "humanApprovalPacketSHA256": "60b01498a2df5f4e4622cdc2f9a43c83d187820780d2425a19718c13707db501", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "joyimage_base_cobalt_paper_band" }, { - "path": "template-gallery/reviews/kandinsky3_ginkgo_on_slate.quality-review.json", - "sha256": "sha256:bytes:ce1d21e1a50c1861198590eda8f52dde82afccaceae93500fbaf612e1b1a2426", + "path": "template-gallery/reviews/joyimage_base_cobalt_paper_band.quality-review.json", + "sha256": "sha256:bytes:d2cd9b10d5095d45599db6987b5c8d43beae50b388dae281602eae6a5dd70ddb", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/kandinsky-community/kandinsky-3/tree/bf79e6c219da8a94abb50235fdc4567eb8fb4632", - "sourceRevision": "kandinsky-community/kandinsky-3@bf79e6c219da8a94abb50235fdc4567eb8fb4632", + "sourceUrl": "https://huggingface.co/jdopensource/JoyAI-Image-Edit-Diffusers/tree/4b41fb25d961f37668750178ccbb380da326201c", + "sourceRevision": "jdopensource/JoyAI-Image-Edit-Diffusers@4b41fb25d961f37668750178ccbb380da326201c", "sourceLicense": "MoDiff-authored Gallery metadata", "modelTerms": [ - "Publisher model terms at https://huggingface.co/kandinsky-community/kandinsky-3/tree/bf79e6c219da8a94abb50235fdc4567eb8fb4632" + "Publisher model terms at https://huggingface.co/jdopensource/JoyAI-Image-Edit-Diffusers/tree/4b41fb25d961f37668750178ccbb380da326201c" ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "kandinsky-community/kandinsky-3@bf79e6c219da8a94abb50235fdc4567eb8fb4632 https://huggingface.co/kandinsky-community/kandinsky-3/tree/bf79e6c219da8a94abb50235fdc4567eb8fb4632" + "jdopensource/JoyAI-Image-Edit-Diffusers@4b41fb25d961f37668750178ccbb380da326201c https://huggingface.co/jdopensource/JoyAI-Image-Edit-Diffusers/tree/4b41fb25d961f37668750178ccbb380da326201c" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", - "reviewedAt": "2026-11-24", + "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "d216f065bdc316366c6183592f657bcfbbd7cb05acd0e510c6b3877fe56bcec2", - "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped six saved cases with model terms retained.", - "provenanceTemplateId": "kandinsky3_ginkgo_on_slate" + "humanApprovalPacketSHA256": "60b01498a2df5f4e4622cdc2f9a43c83d187820780d2425a19718c13707db501", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "joyimage_base_cobalt_paper_band" }, { - "path": "template-gallery/reviews/kandinsky3_ginkgo_on_slate.retained-template-provenance.json", - "sha256": "sha256:bytes:5be139ba899439bf234dee3274572a5062dbfdbb0fbf6ba12f23b64ce47a2fc3", + "path": "template-gallery/reviews/joyimage_base_cobalt_paper_band.retained-template-provenance.json", + "sha256": "sha256:bytes:e82f59c601357c4dd42e4c4a6ea7d5f71f87afbef7d4ed254e7dc724e1555319", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/kandinsky-community/kandinsky-3/tree/bf79e6c219da8a94abb50235fdc4567eb8fb4632", - "sourceRevision": "kandinsky-community/kandinsky-3@bf79e6c219da8a94abb50235fdc4567eb8fb4632", + "sourceUrl": "https://huggingface.co/jdopensource/JoyAI-Image-Edit-Diffusers/tree/4b41fb25d961f37668750178ccbb380da326201c", + "sourceRevision": "jdopensource/JoyAI-Image-Edit-Diffusers@4b41fb25d961f37668750178ccbb380da326201c", "sourceLicense": "MoDiff-authored Gallery metadata", "modelTerms": [ - "Publisher model terms at https://huggingface.co/kandinsky-community/kandinsky-3/tree/bf79e6c219da8a94abb50235fdc4567eb8fb4632" + "Publisher model terms at https://huggingface.co/jdopensource/JoyAI-Image-Edit-Diffusers/tree/4b41fb25d961f37668750178ccbb380da326201c" ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "kandinsky-community/kandinsky-3@bf79e6c219da8a94abb50235fdc4567eb8fb4632 https://huggingface.co/kandinsky-community/kandinsky-3/tree/bf79e6c219da8a94abb50235fdc4567eb8fb4632" + "jdopensource/JoyAI-Image-Edit-Diffusers@4b41fb25d961f37668750178ccbb380da326201c https://huggingface.co/jdopensource/JoyAI-Image-Edit-Diffusers/tree/4b41fb25d961f37668750178ccbb380da326201c" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", - "reviewedAt": "2026-11-24", + "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "d216f065bdc316366c6183592f657bcfbbd7cb05acd0e510c6b3877fe56bcec2", - "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped six saved cases with model terms retained.", - "provenanceTemplateId": "kandinsky3_ginkgo_on_slate" + "humanApprovalPacketSHA256": "60b01498a2df5f4e4622cdc2f9a43c83d187820780d2425a19718c13707db501", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "joyimage_base_cobalt_paper_band" }, { - "path": "template-gallery/reviews/lcm_dawn_alpine_lake.quality-review.json", + "path": "template-gallery/reviews/joyimage_herbarium_rainy_porthole.original-provenance.json", + "sha256": "sha256:bytes:9d044b889706d4034d96da08aec8f9c6fa2458e2d75b36055a1a707e11140d38", + "publishDecision": "approved", + "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", - "humanLikenessConsent": "not-applicable", - "marks": [], - "reviewedBy": "MoDiff workspace maintainer", - "reviewedAt": "2026-11-20", - "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "ba369c5fff89e379be66714d3ecbf1a0e3a9555e2b5ffbc9cb54210d862ec30b", - "publicationBasis": "Maintainer approved the exact Whisper JSON and both exact LCM images, accepted the disclosed LCM changes, and authorized publication of the associated redacted Gallery records.", - "creationMethod": "Project-authored redacted retained Gallery review, provenance or registration metadata", - "sourceUrl": null, - "sourceRevision": null, + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/jdopensource/JoyAI-Image-Edit-Diffusers/tree/4b41fb25d961f37668750178ccbb380da326201c", + "sourceRevision": "jdopensource/JoyAI-Image-Edit-Diffusers@4b41fb25d961f37668750178ccbb380da326201c", "sourceLicense": "MoDiff-authored Gallery metadata", - "modelTerms": [], + "modelTerms": [ + "Publisher model terms at https://huggingface.co/jdopensource/JoyAI-Image-Edit-Diffusers/tree/4b41fb25d961f37668750178ccbb380da326201c" + ], "aiGenerated": false, - "requiredAttribution": [], - "assetLicense": "Apache-2.0", - "provenanceTemplateId": "lcm_dawn_alpine_lake", - "sha256": "sha256:bytes:e5c590a6287147faad9d5eab5676b8d2bb8224a8581a2043cf78c8dd50dcb0b9", - "publishDecision": "approved", - "holdReason": null - }, - { - "path": "template-gallery/reviews/lcm_dawn_alpine_lake.retained-template-provenance.json", - "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "humanLikenessConsent": "not-applicable", "marks": [], + "requiredAttribution": [ + "jdopensource/JoyAI-Image-Edit-Diffusers@4b41fb25d961f37668750178ccbb380da326201c https://huggingface.co/jdopensource/JoyAI-Image-Edit-Diffusers/tree/4b41fb25d961f37668750178ccbb380da326201c" + ], + "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", - "reviewedAt": "2026-11-20", + "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "ba369c5fff89e379be66714d3ecbf1a0e3a9555e2b5ffbc9cb54210d862ec30b", - "publicationBasis": "Maintainer approved the exact Whisper JSON and both exact LCM images, accepted the disclosed LCM changes, and authorized publication of the associated redacted Gallery records.", - "creationMethod": "Project-authored redacted retained Gallery review, provenance or registration metadata", - "sourceUrl": null, - "sourceRevision": null, - "sourceLicense": "MoDiff-authored Gallery metadata", - "modelTerms": [], - "aiGenerated": false, - "requiredAttribution": [], - "assetLicense": "Apache-2.0", - "provenanceTemplateId": "lcm_dawn_alpine_lake", - "sha256": "sha256:bytes:767b8d794460fca5a3e1c79a89aeaa2b1dcdb815d47702e1063ed35d07163247", - "publishDecision": "approved", - "holdReason": null + "humanApprovalPacketSHA256": "4fc7c52588176cb1f6ba6d699d08741b2986ea71ea87bac650d261716a10b24c", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "joyimage_herbarium_rainy_porthole" }, { - "path": "template-gallery/reviews/longcat_florist_end_of_lane.original-provenance.json", - "sha256": "sha256:bytes:31fa3b13f1a585031ab220cb3a1039a9e7c2ed40757801c56cbcc846125ac7b8", + "path": "template-gallery/reviews/joyimage_herbarium_rainy_porthole.original-review.json", + "sha256": "sha256:bytes:5f1b196d8b9e9b3740a4745304e7fbbe5bbe5c5385237f87d6895748b75c8e07", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/meituan-longcat/LongCat-Image/tree/d2ea50b79a930074c37b9b97ce45e3b2ea8cf4d8", - "sourceRevision": "meituan-longcat/LongCat-Image@d2ea50b79a930074c37b9b97ce45e3b2ea8cf4d8", + "sourceUrl": "https://huggingface.co/jdopensource/JoyAI-Image-Edit-Diffusers/tree/4b41fb25d961f37668750178ccbb380da326201c", + "sourceRevision": "jdopensource/JoyAI-Image-Edit-Diffusers@4b41fb25d961f37668750178ccbb380da326201c", "sourceLicense": "MoDiff-authored Gallery metadata", "modelTerms": [ - "Publisher model terms at https://huggingface.co/meituan-longcat/LongCat-Image/tree/d2ea50b79a930074c37b9b97ce45e3b2ea8cf4d8" + "Publisher model terms at https://huggingface.co/jdopensource/JoyAI-Image-Edit-Diffusers/tree/4b41fb25d961f37668750178ccbb380da326201c" ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "meituan-longcat/LongCat-Image@d2ea50b79a930074c37b9b97ce45e3b2ea8cf4d8 https://huggingface.co/meituan-longcat/LongCat-Image/tree/d2ea50b79a930074c37b9b97ce45e3b2ea8cf4d8" + "jdopensource/JoyAI-Image-Edit-Diffusers@4b41fb25d961f37668750178ccbb380da326201c https://huggingface.co/jdopensource/JoyAI-Image-Edit-Diffusers/tree/4b41fb25d961f37668750178ccbb380da326201c" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", @@ -12325,26 +13737,26 @@ "reviewClass": "per-file-maintainer-accepted-retained-registration", "humanApprovalPacketSHA256": "4fc7c52588176cb1f6ba6d699d08741b2986ea71ea87bac650d261716a10b24c", "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", - "provenanceTemplateId": "longcat_florist_end_of_lane" + "provenanceTemplateId": "joyimage_herbarium_rainy_porthole" }, { - "path": "template-gallery/reviews/longcat_florist_end_of_lane.original-review.json", - "sha256": "sha256:bytes:adc8b682f80f09677b97fa57651d336d8b966f7e19586256e6559505f57f9cfc", + "path": "template-gallery/reviews/joyimage_herbarium_rainy_porthole.quality-review.json", + "sha256": "sha256:bytes:ee32c1cb4403abeab273a797da25cfc3d6930f9eac84785b905ed12d07f5b567", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/meituan-longcat/LongCat-Image/tree/d2ea50b79a930074c37b9b97ce45e3b2ea8cf4d8", - "sourceRevision": "meituan-longcat/LongCat-Image@d2ea50b79a930074c37b9b97ce45e3b2ea8cf4d8", + "sourceUrl": "https://huggingface.co/jdopensource/JoyAI-Image-Edit-Diffusers/tree/4b41fb25d961f37668750178ccbb380da326201c", + "sourceRevision": "jdopensource/JoyAI-Image-Edit-Diffusers@4b41fb25d961f37668750178ccbb380da326201c", "sourceLicense": "MoDiff-authored Gallery metadata", "modelTerms": [ - "Publisher model terms at https://huggingface.co/meituan-longcat/LongCat-Image/tree/d2ea50b79a930074c37b9b97ce45e3b2ea8cf4d8" + "Publisher model terms at https://huggingface.co/jdopensource/JoyAI-Image-Edit-Diffusers/tree/4b41fb25d961f37668750178ccbb380da326201c" ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "meituan-longcat/LongCat-Image@d2ea50b79a930074c37b9b97ce45e3b2ea8cf4d8 https://huggingface.co/meituan-longcat/LongCat-Image/tree/d2ea50b79a930074c37b9b97ce45e3b2ea8cf4d8" + "jdopensource/JoyAI-Image-Edit-Diffusers@4b41fb25d961f37668750178ccbb380da326201c https://huggingface.co/jdopensource/JoyAI-Image-Edit-Diffusers/tree/4b41fb25d961f37668750178ccbb380da326201c" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", @@ -12352,26 +13764,26 @@ "reviewClass": "per-file-maintainer-accepted-retained-registration", "humanApprovalPacketSHA256": "4fc7c52588176cb1f6ba6d699d08741b2986ea71ea87bac650d261716a10b24c", "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", - "provenanceTemplateId": "longcat_florist_end_of_lane" + "provenanceTemplateId": "joyimage_herbarium_rainy_porthole" }, { - "path": "template-gallery/reviews/longcat_florist_end_of_lane.quality-review.json", - "sha256": "sha256:bytes:c2b07ec9dccd4ac97f229ff2c836b5215377c240b8455db32a4f72f0313f7a4c", + "path": "template-gallery/reviews/joyimage_herbarium_rainy_porthole.retained-template-provenance.json", + "sha256": "sha256:bytes:9dea78e9b2060e8253be0d3862ab101885f5c8ad55f66d0d2424943e634bcc03", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/meituan-longcat/LongCat-Image/tree/d2ea50b79a930074c37b9b97ce45e3b2ea8cf4d8", - "sourceRevision": "meituan-longcat/LongCat-Image@d2ea50b79a930074c37b9b97ce45e3b2ea8cf4d8", + "sourceUrl": "https://huggingface.co/jdopensource/JoyAI-Image-Edit-Diffusers/tree/4b41fb25d961f37668750178ccbb380da326201c", + "sourceRevision": "jdopensource/JoyAI-Image-Edit-Diffusers@4b41fb25d961f37668750178ccbb380da326201c", "sourceLicense": "MoDiff-authored Gallery metadata", "modelTerms": [ - "Publisher model terms at https://huggingface.co/meituan-longcat/LongCat-Image/tree/d2ea50b79a930074c37b9b97ce45e3b2ea8cf4d8" + "Publisher model terms at https://huggingface.co/jdopensource/JoyAI-Image-Edit-Diffusers/tree/4b41fb25d961f37668750178ccbb380da326201c" ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "meituan-longcat/LongCat-Image@d2ea50b79a930074c37b9b97ce45e3b2ea8cf4d8 https://huggingface.co/meituan-longcat/LongCat-Image/tree/d2ea50b79a930074c37b9b97ce45e3b2ea8cf4d8" + "jdopensource/JoyAI-Image-Edit-Diffusers@4b41fb25d961f37668750178ccbb380da326201c https://huggingface.co/jdopensource/JoyAI-Image-Edit-Diffusers/tree/4b41fb25d961f37668750178ccbb380da326201c" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", @@ -12379,280 +13791,1329 @@ "reviewClass": "per-file-maintainer-accepted-retained-registration", "humanApprovalPacketSHA256": "4fc7c52588176cb1f6ba6d699d08741b2986ea71ea87bac650d261716a10b24c", "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", - "provenanceTemplateId": "longcat_florist_end_of_lane" + "provenanceTemplateId": "joyimage_herbarium_rainy_porthole" }, { - "path": "template-gallery/reviews/longcat_florist_end_of_lane.retained-template-provenance.json", - "sha256": "sha256:bytes:14da3c1cbc2f7ea57b4ec3d84f1a78d72a4e22b62ce0e0d757db78297c3fbed9", + "path": "template-gallery/reviews/kandinsky3_ginkgo_on_slate.original-provenance.json", + "sha256": "sha256:bytes:31189848b609ec308b9bd427975d0b09d502ff7583321e88a7ba813f5a968db8", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/meituan-longcat/LongCat-Image/tree/d2ea50b79a930074c37b9b97ce45e3b2ea8cf4d8", - "sourceRevision": "meituan-longcat/LongCat-Image@d2ea50b79a930074c37b9b97ce45e3b2ea8cf4d8", + "sourceUrl": "https://huggingface.co/kandinsky-community/kandinsky-3/tree/bf79e6c219da8a94abb50235fdc4567eb8fb4632", + "sourceRevision": "kandinsky-community/kandinsky-3@bf79e6c219da8a94abb50235fdc4567eb8fb4632", "sourceLicense": "MoDiff-authored Gallery metadata", "modelTerms": [ - "Publisher model terms at https://huggingface.co/meituan-longcat/LongCat-Image/tree/d2ea50b79a930074c37b9b97ce45e3b2ea8cf4d8" + "Publisher model terms at https://huggingface.co/kandinsky-community/kandinsky-3/tree/bf79e6c219da8a94abb50235fdc4567eb8fb4632" ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "meituan-longcat/LongCat-Image@d2ea50b79a930074c37b9b97ce45e3b2ea8cf4d8 https://huggingface.co/meituan-longcat/LongCat-Image/tree/d2ea50b79a930074c37b9b97ce45e3b2ea8cf4d8" + "kandinsky-community/kandinsky-3@bf79e6c219da8a94abb50235fdc4567eb8fb4632 https://huggingface.co/kandinsky-community/kandinsky-3/tree/bf79e6c219da8a94abb50235fdc4567eb8fb4632" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", - "reviewedAt": "2026-11-25", + "reviewedAt": "2026-11-24", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "4fc7c52588176cb1f6ba6d699d08741b2986ea71ea87bac650d261716a10b24c", - "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", - "provenanceTemplateId": "longcat_florist_end_of_lane" + "humanApprovalPacketSHA256": "d216f065bdc316366c6183592f657bcfbbd7cb05acd0e510c6b3877fe56bcec2", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped six saved cases with model terms retained.", + "provenanceTemplateId": "kandinsky3_ginkgo_on_slate" }, { - "path": "template-gallery/reviews/longcat_last_tram_at_dusk.original-provenance.json", - "sha256": "sha256:bytes:34b322e643eacf47f4c02019564cb85720cb3b9b8334d524e47226d60c4faa60", + "path": "template-gallery/reviews/kandinsky3_ginkgo_on_slate.original-review.json", + "sha256": "sha256:bytes:3d23527148ae151f8b05b623d2739f79ab4bcd37202db7b331e391bdf7b6bedf", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/ruixiangma/LongCat-AudioDiT-1B-Diffusers/tree/f4c063ea37f262ba5e6129ebd80095a6d6a9de4d", - "sourceRevision": "ruixiangma/LongCat-AudioDiT-1B-Diffusers@f4c063ea37f262ba5e6129ebd80095a6d6a9de4d", + "sourceUrl": "https://huggingface.co/kandinsky-community/kandinsky-3/tree/bf79e6c219da8a94abb50235fdc4567eb8fb4632", + "sourceRevision": "kandinsky-community/kandinsky-3@bf79e6c219da8a94abb50235fdc4567eb8fb4632", "sourceLicense": "MoDiff-authored Gallery metadata", "modelTerms": [ - "Publisher model terms at https://huggingface.co/ruixiangma/LongCat-AudioDiT-1B-Diffusers/tree/f4c063ea37f262ba5e6129ebd80095a6d6a9de4d" + "Publisher model terms at https://huggingface.co/kandinsky-community/kandinsky-3/tree/bf79e6c219da8a94abb50235fdc4567eb8fb4632" ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "ruixiangma/LongCat-AudioDiT-1B-Diffusers@f4c063ea37f262ba5e6129ebd80095a6d6a9de4d https://huggingface.co/ruixiangma/LongCat-AudioDiT-1B-Diffusers/tree/f4c063ea37f262ba5e6129ebd80095a6d6a9de4d" + "kandinsky-community/kandinsky-3@bf79e6c219da8a94abb50235fdc4567eb8fb4632 https://huggingface.co/kandinsky-community/kandinsky-3/tree/bf79e6c219da8a94abb50235fdc4567eb8fb4632" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", - "reviewedAt": "2026-11-25", + "reviewedAt": "2026-11-24", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "15c604ae5df3abed63c95046a78859adb870f415f45c06a99f58ad652fc0dea2", - "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", - "provenanceTemplateId": "longcat_last_tram_at_dusk" + "humanApprovalPacketSHA256": "d216f065bdc316366c6183592f657bcfbbd7cb05acd0e510c6b3877fe56bcec2", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped six saved cases with model terms retained.", + "provenanceTemplateId": "kandinsky3_ginkgo_on_slate" }, { - "path": "template-gallery/reviews/longcat_last_tram_at_dusk.original-review.json", - "sha256": "sha256:bytes:7ee2f38d8dd9199e6a754312dba9e962007389ba4527f0aebb96272b454394a5", + "path": "template-gallery/reviews/kandinsky3_ginkgo_on_slate.quality-review.json", + "sha256": "sha256:bytes:ce1d21e1a50c1861198590eda8f52dde82afccaceae93500fbaf612e1b1a2426", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/ruixiangma/LongCat-AudioDiT-1B-Diffusers/tree/f4c063ea37f262ba5e6129ebd80095a6d6a9de4d", - "sourceRevision": "ruixiangma/LongCat-AudioDiT-1B-Diffusers@f4c063ea37f262ba5e6129ebd80095a6d6a9de4d", + "sourceUrl": "https://huggingface.co/kandinsky-community/kandinsky-3/tree/bf79e6c219da8a94abb50235fdc4567eb8fb4632", + "sourceRevision": "kandinsky-community/kandinsky-3@bf79e6c219da8a94abb50235fdc4567eb8fb4632", "sourceLicense": "MoDiff-authored Gallery metadata", "modelTerms": [ - "Publisher model terms at https://huggingface.co/ruixiangma/LongCat-AudioDiT-1B-Diffusers/tree/f4c063ea37f262ba5e6129ebd80095a6d6a9de4d" + "Publisher model terms at https://huggingface.co/kandinsky-community/kandinsky-3/tree/bf79e6c219da8a94abb50235fdc4567eb8fb4632" ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "ruixiangma/LongCat-AudioDiT-1B-Diffusers@f4c063ea37f262ba5e6129ebd80095a6d6a9de4d https://huggingface.co/ruixiangma/LongCat-AudioDiT-1B-Diffusers/tree/f4c063ea37f262ba5e6129ebd80095a6d6a9de4d" + "kandinsky-community/kandinsky-3@bf79e6c219da8a94abb50235fdc4567eb8fb4632 https://huggingface.co/kandinsky-community/kandinsky-3/tree/bf79e6c219da8a94abb50235fdc4567eb8fb4632" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", - "reviewedAt": "2026-11-25", + "reviewedAt": "2026-11-24", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "15c604ae5df3abed63c95046a78859adb870f415f45c06a99f58ad652fc0dea2", - "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", - "provenanceTemplateId": "longcat_last_tram_at_dusk" + "humanApprovalPacketSHA256": "d216f065bdc316366c6183592f657bcfbbd7cb05acd0e510c6b3877fe56bcec2", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped six saved cases with model terms retained.", + "provenanceTemplateId": "kandinsky3_ginkgo_on_slate" }, { - "path": "template-gallery/reviews/longcat_last_tram_at_dusk.quality-review.json", - "sha256": "sha256:bytes:f2883c589ff0313062b4c0c995b35ce08d837f02efb4f6f097d004961b8d298f", + "path": "template-gallery/reviews/kandinsky3_ginkgo_on_slate.retained-template-provenance.json", + "sha256": "sha256:bytes:5be139ba899439bf234dee3274572a5062dbfdbb0fbf6ba12f23b64ce47a2fc3", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/ruixiangma/LongCat-AudioDiT-1B-Diffusers/tree/f4c063ea37f262ba5e6129ebd80095a6d6a9de4d", - "sourceRevision": "ruixiangma/LongCat-AudioDiT-1B-Diffusers@f4c063ea37f262ba5e6129ebd80095a6d6a9de4d", + "sourceUrl": "https://huggingface.co/kandinsky-community/kandinsky-3/tree/bf79e6c219da8a94abb50235fdc4567eb8fb4632", + "sourceRevision": "kandinsky-community/kandinsky-3@bf79e6c219da8a94abb50235fdc4567eb8fb4632", "sourceLicense": "MoDiff-authored Gallery metadata", "modelTerms": [ - "Publisher model terms at https://huggingface.co/ruixiangma/LongCat-AudioDiT-1B-Diffusers/tree/f4c063ea37f262ba5e6129ebd80095a6d6a9de4d" + "Publisher model terms at https://huggingface.co/kandinsky-community/kandinsky-3/tree/bf79e6c219da8a94abb50235fdc4567eb8fb4632" ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "ruixiangma/LongCat-AudioDiT-1B-Diffusers@f4c063ea37f262ba5e6129ebd80095a6d6a9de4d https://huggingface.co/ruixiangma/LongCat-AudioDiT-1B-Diffusers/tree/f4c063ea37f262ba5e6129ebd80095a6d6a9de4d" + "kandinsky-community/kandinsky-3@bf79e6c219da8a94abb50235fdc4567eb8fb4632 https://huggingface.co/kandinsky-community/kandinsky-3/tree/bf79e6c219da8a94abb50235fdc4567eb8fb4632" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", - "reviewedAt": "2026-11-25", + "reviewedAt": "2026-11-24", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "15c604ae5df3abed63c95046a78859adb870f415f45c06a99f58ad652fc0dea2", - "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", - "provenanceTemplateId": "longcat_last_tram_at_dusk" + "humanApprovalPacketSHA256": "d216f065bdc316366c6183592f657bcfbbd7cb05acd0e510c6b3877fe56bcec2", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped six saved cases with model terms retained.", + "provenanceTemplateId": "kandinsky3_ginkgo_on_slate" }, { - "path": "template-gallery/reviews/longcat_last_tram_at_dusk.retained-template-provenance.json", - "sha256": "sha256:bytes:071240681910f119ab723f580b68bc1037896a28132a51fbb338e61bf9f8a0bf", + "path": "template-gallery/reviews/kandinsky3_smoked_glass_on_limestone.original-provenance.json", + "sha256": "sha256:bytes:e62c78c152e7273c32f506b361d4cece5e2a61939ab8763078fb04111795a098", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/ruixiangma/LongCat-AudioDiT-1B-Diffusers/tree/f4c063ea37f262ba5e6129ebd80095a6d6a9de4d", - "sourceRevision": "ruixiangma/LongCat-AudioDiT-1B-Diffusers@f4c063ea37f262ba5e6129ebd80095a6d6a9de4d", + "sourceUrl": "https://huggingface.co/kandinsky-community/kandinsky-3/tree/bf79e6c219da8a94abb50235fdc4567eb8fb4632", + "sourceRevision": "kandinsky-community/kandinsky-3@bf79e6c219da8a94abb50235fdc4567eb8fb4632", "sourceLicense": "MoDiff-authored Gallery metadata", "modelTerms": [ - "Publisher model terms at https://huggingface.co/ruixiangma/LongCat-AudioDiT-1B-Diffusers/tree/f4c063ea37f262ba5e6129ebd80095a6d6a9de4d" + "Publisher model terms at https://huggingface.co/kandinsky-community/kandinsky-3/tree/bf79e6c219da8a94abb50235fdc4567eb8fb4632" ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "ruixiangma/LongCat-AudioDiT-1B-Diffusers@f4c063ea37f262ba5e6129ebd80095a6d6a9de4d https://huggingface.co/ruixiangma/LongCat-AudioDiT-1B-Diffusers/tree/f4c063ea37f262ba5e6129ebd80095a6d6a9de4d" + "kandinsky-community/kandinsky-3@bf79e6c219da8a94abb50235fdc4567eb8fb4632 https://huggingface.co/kandinsky-community/kandinsky-3/tree/bf79e6c219da8a94abb50235fdc4567eb8fb4632" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "15c604ae5df3abed63c95046a78859adb870f415f45c06a99f58ad652fc0dea2", + "humanApprovalPacketSHA256": "60b01498a2df5f4e4622cdc2f9a43c83d187820780d2425a19718c13707db501", "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", - "provenanceTemplateId": "longcat_last_tram_at_dusk" + "provenanceTemplateId": "kandinsky3_smoked_glass_on_limestone" }, { - "path": "template-gallery/reviews/low_vram.quality-review.json", - "sha256": "sha256:bytes:53b25669d880814ac612e803b0c6f2abbcdd8853e7ea4ca6e1e6d0b97fa23352", + "path": "template-gallery/reviews/kandinsky3_smoked_glass_on_limestone.original-review.json", + "sha256": "sha256:bytes:307daef8829faa1835d0d7092e594aa8bf1b703c51157a8cc7581aaf1e84d437", "publishDecision": "approved", "holdReason": null, - "creatorOrRightsholder": "MoDiff project maintainers", - "creationMethod": "MoDiff-authored technical provenance or quality metadata from the explicitly approved six-image source packet", - "sourceUrl": null, - "sourceRevision": null, - "sourceLicense": "Apache-2.0 project-authored metadata; generated-media terms remain in their exact per-file records", - "modelTerms": [], + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/kandinsky-community/kandinsky-3/tree/bf79e6c219da8a94abb50235fdc4567eb8fb4632", + "sourceRevision": "kandinsky-community/kandinsky-3@bf79e6c219da8a94abb50235fdc4567eb8fb4632", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "Publisher model terms at https://huggingface.co/kandinsky-community/kandinsky-3/tree/bf79e6c219da8a94abb50235fdc4567eb8fb4632" + ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], - "requiredAttribution": [], + "requiredAttribution": [ + "kandinsky-community/kandinsky-3@bf79e6c219da8a94abb50235fdc4567eb8fb4632 https://huggingface.co/kandinsky-community/kandinsky-3/tree/bf79e6c219da8a94abb50235fdc4567eb8fb4632" + ], "assetLicense": "Apache-2.0", - "reviewedBy": "SOURAV DAS", - "reviewedAt": "2026-11-09", - "reviewClass": "per-file-human-approved-six-z-registration", - "provenanceTemplateId": "low_vram", - "humanApprovalPacketSHA256": "9b728a5f8535fc1ba3c03d2e2759d7ac795a586fafab51beb1509379ed388934" + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "60b01498a2df5f4e4622cdc2f9a43c83d187820780d2425a19718c13707db501", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "kandinsky3_smoked_glass_on_limestone" }, { - "path": "template-gallery/reviews/low_vram.reviewed-provenance.json", - "sha256": "sha256:bytes:a07f1942cb39c873d7ccd1b99dbece3c203d73296712aa0168a3edf4054b8076", + "path": "template-gallery/reviews/kandinsky3_smoked_glass_on_limestone.quality-review.json", + "sha256": "sha256:bytes:e6d9b0e253b694fab331fe62247c0adf47c2947d841ba8da08629522a37613ef", "publishDecision": "approved", "holdReason": null, - "creatorOrRightsholder": "MoDiff project maintainers", - "creationMethod": "MoDiff-authored technical provenance or quality metadata from the explicitly approved six-image source packet", - "sourceUrl": null, - "sourceRevision": null, - "sourceLicense": "Apache-2.0 project-authored metadata; generated-media terms remain in their exact per-file records", - "modelTerms": [], + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/kandinsky-community/kandinsky-3/tree/bf79e6c219da8a94abb50235fdc4567eb8fb4632", + "sourceRevision": "kandinsky-community/kandinsky-3@bf79e6c219da8a94abb50235fdc4567eb8fb4632", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "Publisher model terms at https://huggingface.co/kandinsky-community/kandinsky-3/tree/bf79e6c219da8a94abb50235fdc4567eb8fb4632" + ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], - "requiredAttribution": [], + "requiredAttribution": [ + "kandinsky-community/kandinsky-3@bf79e6c219da8a94abb50235fdc4567eb8fb4632 https://huggingface.co/kandinsky-community/kandinsky-3/tree/bf79e6c219da8a94abb50235fdc4567eb8fb4632" + ], "assetLicense": "Apache-2.0", - "reviewedBy": "SOURAV DAS", - "reviewedAt": "2026-11-09", - "reviewClass": "per-file-human-approved-six-z-registration", - "provenanceTemplateId": "low_vram", - "humanApprovalPacketSHA256": "9b728a5f8535fc1ba3c03d2e2759d7ac795a586fafab51beb1509379ed388934" + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "60b01498a2df5f4e4622cdc2f9a43c83d187820780d2425a19718c13707db501", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "kandinsky3_smoked_glass_on_limestone" }, { - "creatorOrRightsholder": "MoDiff project maintainers", - "creationMethod": "Project-authored redacted technical/review records or versioned declarations for seven maintainer-accepted native video replacements", + "path": "template-gallery/reviews/kandinsky3_smoked_glass_on_limestone.retained-template-provenance.json", + "sha256": "sha256:bytes:5dbf90cd4b0f214fdae6e49c20ec03e38fc8552275d07e900ae737af469ea66a", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/kandinsky-community/kandinsky-3/tree/bf79e6c219da8a94abb50235fdc4567eb8fb4632", + "sourceRevision": "kandinsky-community/kandinsky-3@bf79e6c219da8a94abb50235fdc4567eb8fb4632", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "Publisher model terms at https://huggingface.co/kandinsky-community/kandinsky-3/tree/bf79e6c219da8a94abb50235fdc4567eb8fb4632" + ], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "kandinsky-community/kandinsky-3@bf79e6c219da8a94abb50235fdc4567eb8fb4632 https://huggingface.co/kandinsky-community/kandinsky-3/tree/bf79e6c219da8a94abb50235fdc4567eb8fb4632" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "60b01498a2df5f4e4622cdc2f9a43c83d187820780d2425a19718c13707db501", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "kandinsky3_smoked_glass_on_limestone" + }, + { + "path": "template-gallery/reviews/kontext_wide_water_alpine_ridge.original-provenance.json", + "sha256": "sha256:bytes:8f93f5553eeb580705586eda046026ac8ed8742b09defff688fd67892e131d90", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/black-forest-labs/FLUX.1-Kontext-dev/tree/24e9dedc4ef646698dc8eb4e18ae2cec3c9fea0d", + "sourceRevision": "black-forest-labs/FLUX.1-Kontext-dev@24e9dedc4ef646698dc8eb4e18ae2cec3c9fea0d", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "Publisher model terms at https://huggingface.co/black-forest-labs/FLUX.1-Kontext-dev/tree/24e9dedc4ef646698dc8eb4e18ae2cec3c9fea0d" + ], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "black-forest-labs/FLUX.1-Kontext-dev@24e9dedc4ef646698dc8eb4e18ae2cec3c9fea0d https://huggingface.co/black-forest-labs/FLUX.1-Kontext-dev/tree/24e9dedc4ef646698dc8eb4e18ae2cec3c9fea0d" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "60b01498a2df5f4e4622cdc2f9a43c83d187820780d2425a19718c13707db501", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "kontext_wide_water_alpine_ridge" + }, + { + "path": "template-gallery/reviews/kontext_wide_water_alpine_ridge.original-review.json", + "sha256": "sha256:bytes:f54561af3e759232c7e01a2515d98b66c38d56d7fe8ece573ce2f83bfcbbf3f8", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/black-forest-labs/FLUX.1-Kontext-dev/tree/24e9dedc4ef646698dc8eb4e18ae2cec3c9fea0d", + "sourceRevision": "black-forest-labs/FLUX.1-Kontext-dev@24e9dedc4ef646698dc8eb4e18ae2cec3c9fea0d", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "Publisher model terms at https://huggingface.co/black-forest-labs/FLUX.1-Kontext-dev/tree/24e9dedc4ef646698dc8eb4e18ae2cec3c9fea0d" + ], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "black-forest-labs/FLUX.1-Kontext-dev@24e9dedc4ef646698dc8eb4e18ae2cec3c9fea0d https://huggingface.co/black-forest-labs/FLUX.1-Kontext-dev/tree/24e9dedc4ef646698dc8eb4e18ae2cec3c9fea0d" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "60b01498a2df5f4e4622cdc2f9a43c83d187820780d2425a19718c13707db501", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "kontext_wide_water_alpine_ridge" + }, + { + "path": "template-gallery/reviews/kontext_wide_water_alpine_ridge.quality-review.json", + "sha256": "sha256:bytes:2dcf22dab88c45ead8d951f9443f61657d37eb30d07add1183a3633dbffcfe98", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/black-forest-labs/FLUX.1-Kontext-dev/tree/24e9dedc4ef646698dc8eb4e18ae2cec3c9fea0d", + "sourceRevision": "black-forest-labs/FLUX.1-Kontext-dev@24e9dedc4ef646698dc8eb4e18ae2cec3c9fea0d", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "Publisher model terms at https://huggingface.co/black-forest-labs/FLUX.1-Kontext-dev/tree/24e9dedc4ef646698dc8eb4e18ae2cec3c9fea0d" + ], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "black-forest-labs/FLUX.1-Kontext-dev@24e9dedc4ef646698dc8eb4e18ae2cec3c9fea0d https://huggingface.co/black-forest-labs/FLUX.1-Kontext-dev/tree/24e9dedc4ef646698dc8eb4e18ae2cec3c9fea0d" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "60b01498a2df5f4e4622cdc2f9a43c83d187820780d2425a19718c13707db501", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "kontext_wide_water_alpine_ridge" + }, + { + "path": "template-gallery/reviews/kontext_wide_water_alpine_ridge.retained-template-provenance.json", + "sha256": "sha256:bytes:97059d8dd67e7e5a82c9c458b4c992c680235cae0fc205fde6ae3915f43f3ff7", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/black-forest-labs/FLUX.1-Kontext-dev/tree/24e9dedc4ef646698dc8eb4e18ae2cec3c9fea0d", + "sourceRevision": "black-forest-labs/FLUX.1-Kontext-dev@24e9dedc4ef646698dc8eb4e18ae2cec3c9fea0d", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "Publisher model terms at https://huggingface.co/black-forest-labs/FLUX.1-Kontext-dev/tree/24e9dedc4ef646698dc8eb4e18ae2cec3c9fea0d" + ], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "black-forest-labs/FLUX.1-Kontext-dev@24e9dedc4ef646698dc8eb4e18ae2cec3c9fea0d https://huggingface.co/black-forest-labs/FLUX.1-Kontext-dev/tree/24e9dedc4ef646698dc8eb4e18ae2cec3c9fea0d" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "60b01498a2df5f4e4622cdc2f9a43c83d187820780d2425a19718c13707db501", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "kontext_wide_water_alpine_ridge" + }, + { + "path": "template-gallery/reviews/lcm_dawn_alpine_lake.quality-review.json", + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "humanLikenessConsent": "not-applicable", + "marks": [], + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-20", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "ba369c5fff89e379be66714d3ecbf1a0e3a9555e2b5ffbc9cb54210d862ec30b", + "publicationBasis": "Maintainer approved the exact Whisper JSON and both exact LCM images, accepted the disclosed LCM changes, and authorized publication of the associated redacted Gallery records.", + "creationMethod": "Project-authored redacted retained Gallery review, provenance or registration metadata", "sourceUrl": null, "sourceRevision": null, - "sourceLicense": "Apache-2.0 project-authored metadata; media and model terms remain separate", + "sourceLicense": "MoDiff-authored Gallery metadata", "modelTerms": [], "aiGenerated": false, + "requiredAttribution": [], + "assetLicense": "Apache-2.0", + "provenanceTemplateId": "lcm_dawn_alpine_lake", + "sha256": "sha256:bytes:e5c590a6287147faad9d5eab5676b8d2bb8224a8581a2043cf78c8dd50dcb0b9", + "publishDecision": "approved", + "holdReason": null + }, + { + "path": "template-gallery/reviews/lcm_dawn_alpine_lake.retained-template-provenance.json", + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "humanLikenessConsent": "not-applicable", "marks": [], + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-20", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "ba369c5fff89e379be66714d3ecbf1a0e3a9555e2b5ffbc9cb54210d862ec30b", + "publicationBasis": "Maintainer approved the exact Whisper JSON and both exact LCM images, accepted the disclosed LCM changes, and authorized publication of the associated redacted Gallery records.", + "creationMethod": "Project-authored redacted retained Gallery review, provenance or registration metadata", + "sourceUrl": null, + "sourceRevision": null, + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [], + "aiGenerated": false, "requiredAttribution": [], "assetLicense": "Apache-2.0", - "path": "template-gallery/reviews/ltx_video_animated_story.quality-review.json", - "sha256": "sha256:bytes:1ec83b229ba5c7995c8ada2629c448334965939304ffddc7a70161c8b7e1b7f1", + "provenanceTemplateId": "lcm_dawn_alpine_lake", + "sha256": "sha256:bytes:767b8d794460fca5a3e1c79a89aeaa2b1dcdb815d47702e1063ed35d07163247", + "publishDecision": "approved", + "holdReason": null + }, + { + "path": "template-gallery/reviews/longcat_clear_glass_at_the_bookshop.original-provenance.json", + "sha256": "sha256:bytes:055c3ff5cf5493c80e675b8cd97de5c448856204330c1434522cc0c91482b522", "publishDecision": "approved", "holdReason": null, - "reviewedBy": "SOURAV DAS", - "reviewedAt": "2026-11-15", - "reviewClass": "per-file-maintainer-accepted-native-seven-registration", - "humanApprovalPacketSHA256": "95c7c2ed080c3d618db1701b066724660595337460c46df8305b50810783eaa3", - "publicationBasis": "these are approved, you can register them", - "provenanceTemplateId": "ltx_video_animated_story" + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/meituan-longcat/LongCat-Image-Edit/tree/7b54ef423aa7854be7861600024be5c56ab7875a", + "sourceRevision": "meituan-longcat/LongCat-Image-Edit@7b54ef423aa7854be7861600024be5c56ab7875a", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "Publisher model terms at https://huggingface.co/meituan-longcat/LongCat-Image-Edit/tree/7b54ef423aa7854be7861600024be5c56ab7875a" + ], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "meituan-longcat/LongCat-Image-Edit@7b54ef423aa7854be7861600024be5c56ab7875a https://huggingface.co/meituan-longcat/LongCat-Image-Edit/tree/7b54ef423aa7854be7861600024be5c56ab7875a" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "60b01498a2df5f4e4622cdc2f9a43c83d187820780d2425a19718c13707db501", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "longcat_clear_glass_at_the_bookshop" }, { - "creatorOrRightsholder": "MoDiff project maintainers", - "creationMethod": "Project-authored redacted technical/review records or versioned declarations for seven maintainer-accepted native video replacements", + "path": "template-gallery/reviews/longcat_clear_glass_at_the_bookshop.original-review.json", + "sha256": "sha256:bytes:dabecbb61888f492a4e7d8f45e368097c7f286df24c163c8b5e753ce4553d0ff", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/meituan-longcat/LongCat-Image-Edit/tree/7b54ef423aa7854be7861600024be5c56ab7875a", + "sourceRevision": "meituan-longcat/LongCat-Image-Edit@7b54ef423aa7854be7861600024be5c56ab7875a", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "Publisher model terms at https://huggingface.co/meituan-longcat/LongCat-Image-Edit/tree/7b54ef423aa7854be7861600024be5c56ab7875a" + ], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "meituan-longcat/LongCat-Image-Edit@7b54ef423aa7854be7861600024be5c56ab7875a https://huggingface.co/meituan-longcat/LongCat-Image-Edit/tree/7b54ef423aa7854be7861600024be5c56ab7875a" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "60b01498a2df5f4e4622cdc2f9a43c83d187820780d2425a19718c13707db501", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "longcat_clear_glass_at_the_bookshop" + }, + { + "path": "template-gallery/reviews/longcat_clear_glass_at_the_bookshop.quality-review.json", + "sha256": "sha256:bytes:03185586cf4d78ccfa2aae9dcb3962e82b611d03bb5fefc03bdf34851d50a9ed", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/meituan-longcat/LongCat-Image-Edit/tree/7b54ef423aa7854be7861600024be5c56ab7875a", + "sourceRevision": "meituan-longcat/LongCat-Image-Edit@7b54ef423aa7854be7861600024be5c56ab7875a", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "Publisher model terms at https://huggingface.co/meituan-longcat/LongCat-Image-Edit/tree/7b54ef423aa7854be7861600024be5c56ab7875a" + ], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "meituan-longcat/LongCat-Image-Edit@7b54ef423aa7854be7861600024be5c56ab7875a https://huggingface.co/meituan-longcat/LongCat-Image-Edit/tree/7b54ef423aa7854be7861600024be5c56ab7875a" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "60b01498a2df5f4e4622cdc2f9a43c83d187820780d2425a19718c13707db501", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "longcat_clear_glass_at_the_bookshop" + }, + { + "path": "template-gallery/reviews/longcat_clear_glass_at_the_bookshop.retained-template-provenance.json", + "sha256": "sha256:bytes:8df85b747c9a5b0fe11bb20d81d64b1df7bccb96ec505aa99855adbcf9dd6e51", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/meituan-longcat/LongCat-Image-Edit/tree/7b54ef423aa7854be7861600024be5c56ab7875a", + "sourceRevision": "meituan-longcat/LongCat-Image-Edit@7b54ef423aa7854be7861600024be5c56ab7875a", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "Publisher model terms at https://huggingface.co/meituan-longcat/LongCat-Image-Edit/tree/7b54ef423aa7854be7861600024be5c56ab7875a" + ], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "meituan-longcat/LongCat-Image-Edit@7b54ef423aa7854be7861600024be5c56ab7875a https://huggingface.co/meituan-longcat/LongCat-Image-Edit/tree/7b54ef423aa7854be7861600024be5c56ab7875a" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "60b01498a2df5f4e4622cdc2f9a43c83d187820780d2425a19718c13707db501", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "longcat_clear_glass_at_the_bookshop" + }, + { + "path": "template-gallery/reviews/longcat_florist_end_of_lane.original-provenance.json", + "sha256": "sha256:bytes:31fa3b13f1a585031ab220cb3a1039a9e7c2ed40757801c56cbcc846125ac7b8", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/meituan-longcat/LongCat-Image/tree/d2ea50b79a930074c37b9b97ce45e3b2ea8cf4d8", + "sourceRevision": "meituan-longcat/LongCat-Image@d2ea50b79a930074c37b9b97ce45e3b2ea8cf4d8", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "Publisher model terms at https://huggingface.co/meituan-longcat/LongCat-Image/tree/d2ea50b79a930074c37b9b97ce45e3b2ea8cf4d8" + ], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "meituan-longcat/LongCat-Image@d2ea50b79a930074c37b9b97ce45e3b2ea8cf4d8 https://huggingface.co/meituan-longcat/LongCat-Image/tree/d2ea50b79a930074c37b9b97ce45e3b2ea8cf4d8" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "4fc7c52588176cb1f6ba6d699d08741b2986ea71ea87bac650d261716a10b24c", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "longcat_florist_end_of_lane" + }, + { + "path": "template-gallery/reviews/longcat_florist_end_of_lane.original-review.json", + "sha256": "sha256:bytes:adc8b682f80f09677b97fa57651d336d8b966f7e19586256e6559505f57f9cfc", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/meituan-longcat/LongCat-Image/tree/d2ea50b79a930074c37b9b97ce45e3b2ea8cf4d8", + "sourceRevision": "meituan-longcat/LongCat-Image@d2ea50b79a930074c37b9b97ce45e3b2ea8cf4d8", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "Publisher model terms at https://huggingface.co/meituan-longcat/LongCat-Image/tree/d2ea50b79a930074c37b9b97ce45e3b2ea8cf4d8" + ], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "meituan-longcat/LongCat-Image@d2ea50b79a930074c37b9b97ce45e3b2ea8cf4d8 https://huggingface.co/meituan-longcat/LongCat-Image/tree/d2ea50b79a930074c37b9b97ce45e3b2ea8cf4d8" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "4fc7c52588176cb1f6ba6d699d08741b2986ea71ea87bac650d261716a10b24c", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "longcat_florist_end_of_lane" + }, + { + "path": "template-gallery/reviews/longcat_florist_end_of_lane.quality-review.json", + "sha256": "sha256:bytes:c2b07ec9dccd4ac97f229ff2c836b5215377c240b8455db32a4f72f0313f7a4c", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/meituan-longcat/LongCat-Image/tree/d2ea50b79a930074c37b9b97ce45e3b2ea8cf4d8", + "sourceRevision": "meituan-longcat/LongCat-Image@d2ea50b79a930074c37b9b97ce45e3b2ea8cf4d8", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "Publisher model terms at https://huggingface.co/meituan-longcat/LongCat-Image/tree/d2ea50b79a930074c37b9b97ce45e3b2ea8cf4d8" + ], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "meituan-longcat/LongCat-Image@d2ea50b79a930074c37b9b97ce45e3b2ea8cf4d8 https://huggingface.co/meituan-longcat/LongCat-Image/tree/d2ea50b79a930074c37b9b97ce45e3b2ea8cf4d8" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "4fc7c52588176cb1f6ba6d699d08741b2986ea71ea87bac650d261716a10b24c", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "longcat_florist_end_of_lane" + }, + { + "path": "template-gallery/reviews/longcat_florist_end_of_lane.retained-template-provenance.json", + "sha256": "sha256:bytes:14da3c1cbc2f7ea57b4ec3d84f1a78d72a4e22b62ce0e0d757db78297c3fbed9", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/meituan-longcat/LongCat-Image/tree/d2ea50b79a930074c37b9b97ce45e3b2ea8cf4d8", + "sourceRevision": "meituan-longcat/LongCat-Image@d2ea50b79a930074c37b9b97ce45e3b2ea8cf4d8", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "Publisher model terms at https://huggingface.co/meituan-longcat/LongCat-Image/tree/d2ea50b79a930074c37b9b97ce45e3b2ea8cf4d8" + ], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "meituan-longcat/LongCat-Image@d2ea50b79a930074c37b9b97ce45e3b2ea8cf4d8 https://huggingface.co/meituan-longcat/LongCat-Image/tree/d2ea50b79a930074c37b9b97ce45e3b2ea8cf4d8" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "4fc7c52588176cb1f6ba6d699d08741b2986ea71ea87bac650d261716a10b24c", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "longcat_florist_end_of_lane" + }, + { + "path": "template-gallery/reviews/longcat_last_tram_at_dusk.original-provenance.json", + "sha256": "sha256:bytes:34b322e643eacf47f4c02019564cb85720cb3b9b8334d524e47226d60c4faa60", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/ruixiangma/LongCat-AudioDiT-1B-Diffusers/tree/f4c063ea37f262ba5e6129ebd80095a6d6a9de4d", + "sourceRevision": "ruixiangma/LongCat-AudioDiT-1B-Diffusers@f4c063ea37f262ba5e6129ebd80095a6d6a9de4d", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "Publisher model terms at https://huggingface.co/ruixiangma/LongCat-AudioDiT-1B-Diffusers/tree/f4c063ea37f262ba5e6129ebd80095a6d6a9de4d" + ], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "ruixiangma/LongCat-AudioDiT-1B-Diffusers@f4c063ea37f262ba5e6129ebd80095a6d6a9de4d https://huggingface.co/ruixiangma/LongCat-AudioDiT-1B-Diffusers/tree/f4c063ea37f262ba5e6129ebd80095a6d6a9de4d" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "15c604ae5df3abed63c95046a78859adb870f415f45c06a99f58ad652fc0dea2", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "longcat_last_tram_at_dusk" + }, + { + "path": "template-gallery/reviews/longcat_last_tram_at_dusk.original-review.json", + "sha256": "sha256:bytes:7ee2f38d8dd9199e6a754312dba9e962007389ba4527f0aebb96272b454394a5", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/ruixiangma/LongCat-AudioDiT-1B-Diffusers/tree/f4c063ea37f262ba5e6129ebd80095a6d6a9de4d", + "sourceRevision": "ruixiangma/LongCat-AudioDiT-1B-Diffusers@f4c063ea37f262ba5e6129ebd80095a6d6a9de4d", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "Publisher model terms at https://huggingface.co/ruixiangma/LongCat-AudioDiT-1B-Diffusers/tree/f4c063ea37f262ba5e6129ebd80095a6d6a9de4d" + ], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "ruixiangma/LongCat-AudioDiT-1B-Diffusers@f4c063ea37f262ba5e6129ebd80095a6d6a9de4d https://huggingface.co/ruixiangma/LongCat-AudioDiT-1B-Diffusers/tree/f4c063ea37f262ba5e6129ebd80095a6d6a9de4d" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "15c604ae5df3abed63c95046a78859adb870f415f45c06a99f58ad652fc0dea2", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "longcat_last_tram_at_dusk" + }, + { + "path": "template-gallery/reviews/longcat_last_tram_at_dusk.quality-review.json", + "sha256": "sha256:bytes:f2883c589ff0313062b4c0c995b35ce08d837f02efb4f6f097d004961b8d298f", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/ruixiangma/LongCat-AudioDiT-1B-Diffusers/tree/f4c063ea37f262ba5e6129ebd80095a6d6a9de4d", + "sourceRevision": "ruixiangma/LongCat-AudioDiT-1B-Diffusers@f4c063ea37f262ba5e6129ebd80095a6d6a9de4d", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "Publisher model terms at https://huggingface.co/ruixiangma/LongCat-AudioDiT-1B-Diffusers/tree/f4c063ea37f262ba5e6129ebd80095a6d6a9de4d" + ], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "ruixiangma/LongCat-AudioDiT-1B-Diffusers@f4c063ea37f262ba5e6129ebd80095a6d6a9de4d https://huggingface.co/ruixiangma/LongCat-AudioDiT-1B-Diffusers/tree/f4c063ea37f262ba5e6129ebd80095a6d6a9de4d" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "15c604ae5df3abed63c95046a78859adb870f415f45c06a99f58ad652fc0dea2", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "longcat_last_tram_at_dusk" + }, + { + "path": "template-gallery/reviews/longcat_last_tram_at_dusk.retained-template-provenance.json", + "sha256": "sha256:bytes:071240681910f119ab723f580b68bc1037896a28132a51fbb338e61bf9f8a0bf", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/ruixiangma/LongCat-AudioDiT-1B-Diffusers/tree/f4c063ea37f262ba5e6129ebd80095a6d6a9de4d", + "sourceRevision": "ruixiangma/LongCat-AudioDiT-1B-Diffusers@f4c063ea37f262ba5e6129ebd80095a6d6a9de4d", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "Publisher model terms at https://huggingface.co/ruixiangma/LongCat-AudioDiT-1B-Diffusers/tree/f4c063ea37f262ba5e6129ebd80095a6d6a9de4d" + ], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "ruixiangma/LongCat-AudioDiT-1B-Diffusers@f4c063ea37f262ba5e6129ebd80095a6d6a9de4d https://huggingface.co/ruixiangma/LongCat-AudioDiT-1B-Diffusers/tree/f4c063ea37f262ba5e6129ebd80095a6d6a9de4d" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "15c604ae5df3abed63c95046a78859adb870f415f45c06a99f58ad652fc0dea2", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "longcat_last_tram_at_dusk" + }, + { + "path": "template-gallery/reviews/low_vram.quality-review.json", + "sha256": "sha256:bytes:53b25669d880814ac612e803b0c6f2abbcdd8853e7ea4ca6e1e6d0b97fa23352", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers", + "creationMethod": "MoDiff-authored technical provenance or quality metadata from the explicitly approved six-image source packet", + "sourceUrl": null, + "sourceRevision": null, + "sourceLicense": "Apache-2.0 project-authored metadata; generated-media terms remain in their exact per-file records", + "modelTerms": [], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [], + "assetLicense": "Apache-2.0", + "reviewedBy": "SOURAV DAS", + "reviewedAt": "2026-11-09", + "reviewClass": "per-file-human-approved-six-z-registration", + "provenanceTemplateId": "low_vram", + "humanApprovalPacketSHA256": "9b728a5f8535fc1ba3c03d2e2759d7ac795a586fafab51beb1509379ed388934" + }, + { + "path": "template-gallery/reviews/low_vram.reviewed-provenance.json", + "sha256": "sha256:bytes:a07f1942cb39c873d7ccd1b99dbece3c203d73296712aa0168a3edf4054b8076", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers", + "creationMethod": "MoDiff-authored technical provenance or quality metadata from the explicitly approved six-image source packet", + "sourceUrl": null, + "sourceRevision": null, + "sourceLicense": "Apache-2.0 project-authored metadata; generated-media terms remain in their exact per-file records", + "modelTerms": [], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [], + "assetLicense": "Apache-2.0", + "reviewedBy": "SOURAV DAS", + "reviewedAt": "2026-11-09", + "reviewClass": "per-file-human-approved-six-z-registration", + "provenanceTemplateId": "low_vram", + "humanApprovalPacketSHA256": "9b728a5f8535fc1ba3c03d2e2759d7ac795a586fafab51beb1509379ed388934" + }, + { + "creatorOrRightsholder": "MoDiff project maintainers", + "creationMethod": "Project-authored redacted technical/review records or versioned declarations for seven maintainer-accepted native video replacements", + "sourceUrl": null, + "sourceRevision": null, + "sourceLicense": "Apache-2.0 project-authored metadata; media and model terms remain separate", + "modelTerms": [], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [], + "assetLicense": "Apache-2.0", + "path": "template-gallery/reviews/ltx_video_animated_story.quality-review.json", + "sha256": "sha256:bytes:1ec83b229ba5c7995c8ada2629c448334965939304ffddc7a70161c8b7e1b7f1", + "publishDecision": "approved", + "holdReason": null, + "reviewedBy": "SOURAV DAS", + "reviewedAt": "2026-11-15", + "reviewClass": "per-file-maintainer-accepted-native-seven-registration", + "humanApprovalPacketSHA256": "95c7c2ed080c3d618db1701b066724660595337460c46df8305b50810783eaa3", + "publicationBasis": "these are approved, you can register them", + "provenanceTemplateId": "ltx_video_animated_story" + }, + { + "creatorOrRightsholder": "MoDiff project maintainers", + "creationMethod": "Project-authored redacted technical/review records or versioned declarations for seven maintainer-accepted native video replacements", + "sourceUrl": null, + "sourceRevision": null, + "sourceLicense": "Apache-2.0 project-authored metadata; media and model terms remain separate", + "modelTerms": [], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [], + "assetLicense": "Apache-2.0", + "path": "template-gallery/reviews/ltx_video_animated_story.reviewed-provenance.json", + "sha256": "sha256:bytes:3910ae6f164eb978e38b16e1eab92d73fe7f55dac543b681416ba0b8c43b440d", + "publishDecision": "approved", + "holdReason": null, + "reviewedBy": "SOURAV DAS", + "reviewedAt": "2026-11-15", + "reviewClass": "per-file-maintainer-accepted-native-seven-registration", + "humanApprovalPacketSHA256": "95c7c2ed080c3d618db1701b066724660595337460c46df8305b50810783eaa3", + "publicationBasis": "these are approved, you can register them", + "provenanceTemplateId": "ltx_video_animated_story" + }, + { + "path": "template-gallery/reviews/ltx_video_image_to_video.quality-review.json", + "sha256": "sha256:bytes:6c31e71b0b9e6a6a1c46f55e058dd208b7b2f510f6eeb332648575da388f9431", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers", + "creationMethod": "Project-authored Gallery manifest, native provenance or accepted quality review", + "sourceUrl": null, + "sourceRevision": null, + "sourceLicense": "Apache-2.0 project-authored metadata", + "modelTerms": [], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [], + "assetLicense": "Apache-2.0", + "reviewedBy": "SOURAV DAS", + "reviewedAt": "2026-11-10", + "reviewClass": "per-file-maintainer-accepted-native-gallery-registration", + "provenanceTemplateId": "ltx_video_image_to_video", + "humanApprovalPacketSHA256": "73ddf9ea7fc27eccc6b93817809421a008ce0fd2fb3080ffbdc5831a09205304" + }, + { + "path": "template-gallery/reviews/ltx_video_image_to_video.reviewed-provenance.json", + "sha256": "sha256:bytes:ff18a19dd44e03eb76e3879a7e49f1732cc9e6dba6affadcf370feafcc6cf06b", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers", + "creationMethod": "Project-authored Gallery manifest, native provenance or accepted quality review", + "sourceUrl": null, + "sourceRevision": null, + "sourceLicense": "Apache-2.0 project-authored metadata", + "modelTerms": [], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [], + "assetLicense": "Apache-2.0", + "reviewedBy": "SOURAV DAS", + "reviewedAt": "2026-11-10", + "reviewClass": "per-file-maintainer-accepted-native-gallery-registration", + "provenanceTemplateId": "ltx_video_image_to_video", + "humanApprovalPacketSHA256": "73ddf9ea7fc27eccc6b93817809421a008ce0fd2fb3080ffbdc5831a09205304" + }, + { + "creatorOrRightsholder": "MoDiff project maintainers", + "creationMethod": "Project-authored redacted technical/review records or versioned declarations for seven maintainer-accepted native video replacements", + "sourceUrl": null, + "sourceRevision": null, + "sourceLicense": "Apache-2.0 project-authored metadata; media and model terms remain separate", + "modelTerms": [], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [], + "assetLicense": "Apache-2.0", + "path": "template-gallery/reviews/ltx_video_long_showcase.quality-review.json", + "sha256": "sha256:bytes:60cbabfbf56d499a45000cdbabc3c4d64733de27638c1e8b127ba067f1918b9c", + "publishDecision": "approved", + "holdReason": null, + "reviewedBy": "SOURAV DAS", + "reviewedAt": "2026-11-15", + "reviewClass": "per-file-maintainer-accepted-native-seven-registration", + "humanApprovalPacketSHA256": "95c7c2ed080c3d618db1701b066724660595337460c46df8305b50810783eaa3", + "publicationBasis": "these are approved, you can register them", + "provenanceTemplateId": "ltx_video_long_showcase" + }, + { + "creatorOrRightsholder": "MoDiff project maintainers", + "creationMethod": "Project-authored redacted technical/review records or versioned declarations for seven maintainer-accepted native video replacements", + "sourceUrl": null, + "sourceRevision": null, + "sourceLicense": "Apache-2.0 project-authored metadata; media and model terms remain separate", + "modelTerms": [], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [], + "assetLicense": "Apache-2.0", + "path": "template-gallery/reviews/ltx_video_long_showcase.reviewed-provenance.json", + "sha256": "sha256:bytes:c2566ed4233b850092727e2bfc805d1be849c2b11cd9424e42283ff9e19b15d0", + "publishDecision": "approved", + "holdReason": null, + "reviewedBy": "SOURAV DAS", + "reviewedAt": "2026-11-15", + "reviewClass": "per-file-maintainer-accepted-native-seven-registration", + "humanApprovalPacketSHA256": "95c7c2ed080c3d618db1701b066724660595337460c46df8305b50810783eaa3", + "publicationBasis": "these are approved, you can register them", + "provenanceTemplateId": "ltx_video_long_showcase" + }, + { + "path": "template-gallery/reviews/ltx_video_multi_reference.quality-review.json", + "sha256": "sha256:bytes:ccb132c3ffd2e929acca88d871c2f04ba9d0cd69d54750f303b58953a8b9bc93", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers", + "creationMethod": "Project-authored Gallery manifest, native provenance or accepted quality review", + "sourceUrl": null, + "sourceRevision": null, + "sourceLicense": "Apache-2.0 project-authored metadata", + "modelTerms": [], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [], + "assetLicense": "Apache-2.0", + "reviewedBy": "SOURAV DAS", + "reviewedAt": "2026-11-10", + "reviewClass": "per-file-maintainer-accepted-native-gallery-registration", + "provenanceTemplateId": "ltx_video_multi_reference", + "humanApprovalPacketSHA256": "73ddf9ea7fc27eccc6b93817809421a008ce0fd2fb3080ffbdc5831a09205304" + }, + { + "path": "template-gallery/reviews/ltx_video_multi_reference.reviewed-provenance.json", + "sha256": "sha256:bytes:9bdf09de275841af2f1f63ce0011dfc1eeaa703e2deeb2ebf678090abad80203", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers", + "creationMethod": "Project-authored Gallery manifest, native provenance or accepted quality review", + "sourceUrl": null, + "sourceRevision": null, + "sourceLicense": "Apache-2.0 project-authored metadata", + "modelTerms": [], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [], + "assetLicense": "Apache-2.0", + "reviewedBy": "SOURAV DAS", + "reviewedAt": "2026-11-10", + "reviewClass": "per-file-maintainer-accepted-native-gallery-registration", + "provenanceTemplateId": "ltx_video_multi_reference", + "humanApprovalPacketSHA256": "73ddf9ea7fc27eccc6b93817809421a008ce0fd2fb3080ffbdc5831a09205304" + }, + { + "path": "template-gallery/reviews/ltx_video_text_to_video.quality-review.json", + "sha256": "sha256:bytes:37f6a5c00110c6f9e306447a53691521c77db1ecf3cedf8210dd1e7ed10ea99d", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers", + "creationMethod": "Project-authored Gallery manifest, native provenance or accepted quality review", + "sourceUrl": null, + "sourceRevision": null, + "sourceLicense": "Apache-2.0 project-authored metadata", + "modelTerms": [], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [], + "assetLicense": "Apache-2.0", + "reviewedBy": "SOURAV DAS", + "reviewedAt": "2026-11-10", + "reviewClass": "per-file-maintainer-accepted-native-gallery-registration", + "provenanceTemplateId": "ltx_video_text_to_video", + "humanApprovalPacketSHA256": "73ddf9ea7fc27eccc6b93817809421a008ce0fd2fb3080ffbdc5831a09205304" + }, + { + "path": "template-gallery/reviews/ltx_video_text_to_video.reviewed-provenance.json", + "sha256": "sha256:bytes:58bfc0b841177bc73dbde13effbf5eebcf9e8d618d3aa90aa8b19afc3a6e5132", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers", + "creationMethod": "Project-authored Gallery manifest, native provenance or accepted quality review", + "sourceUrl": null, + "sourceRevision": null, + "sourceLicense": "Apache-2.0 project-authored metadata", + "modelTerms": [], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [], + "assetLicense": "Apache-2.0", + "reviewedBy": "SOURAV DAS", + "reviewedAt": "2026-11-10", + "reviewClass": "per-file-maintainer-accepted-native-gallery-registration", + "provenanceTemplateId": "ltx_video_text_to_video", + "humanApprovalPacketSHA256": "73ddf9ea7fc27eccc6b93817809421a008ce0fd2fb3080ffbdc5831a09205304" + }, + { + "creatorOrRightsholder": "MoDiff project maintainers", + "creationMethod": "Project-authored redacted technical/review records or versioned declarations for six maintainer-accepted native results", + "sourceUrl": null, + "sourceRevision": null, + "sourceLicense": "Apache-2.0 project-authored metadata; media and model terms remain separate", + "modelTerms": [], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [], + "assetLicense": "Apache-2.0", + "path": "template-gallery/reviews/ltx_video_video_to_video.quality-review.json", + "sha256": "sha256:bytes:819fd6d872b8e86bbb091980a435bd363216d069223dd694f65d7942aeb05178", + "publishDecision": "approved", + "holdReason": null, + "reviewedBy": "SOURAV DAS", + "reviewedAt": "2026-11-13", + "reviewClass": "per-file-maintainer-accepted-native-six-registration", + "humanApprovalPacketSHA256": "03b66b4631afb15032d62a1705331b56f6b12c4882c23945175ec92cc45a506f", + "publicationBasis": "Register the six approved assets now while Moonflower runs on Linux. Use Windows in parallel wherever possible, and keep the longer workflows separate for AMD cloud.", + "provenanceTemplateId": "ltx_video_video_to_video" + }, + { + "creatorOrRightsholder": "MoDiff project maintainers", + "creationMethod": "Project-authored redacted technical/review records or versioned declarations for six maintainer-accepted native results", + "sourceUrl": null, + "sourceRevision": null, + "sourceLicense": "Apache-2.0 project-authored metadata; media and model terms remain separate", + "modelTerms": [], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [], + "assetLicense": "Apache-2.0", + "path": "template-gallery/reviews/ltx_video_video_to_video.reviewed-provenance.json", + "sha256": "sha256:bytes:9de3b2659acc8383ab86923bc7c9c87be3e53f3d894a06c77af8a16a155795a4", + "publishDecision": "approved", + "holdReason": null, + "reviewedBy": "SOURAV DAS", + "reviewedAt": "2026-11-13", + "reviewClass": "per-file-maintainer-accepted-native-six-registration", + "humanApprovalPacketSHA256": "03b66b4631afb15032d62a1705331b56f6b12c4882c23945175ec92cc45a506f", + "publicationBasis": "Register the six approved assets now while Moonflower runs on Linux. Use Windows in parallel wherever possible, and keep the longer workflows separate for AMD cloud.", + "provenanceTemplateId": "ltx_video_video_to_video" + }, + { + "path": "template-gallery/reviews/lumina2_larch_on_glacial_pond.original-provenance.json", + "sha256": "sha256:bytes:16e6a8baf35baec6d9e1be13523eaa5606174123b3a61274a257d5fbd14977f3", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/Alpha-VLLM/Lumina-Image-2.0/tree/53504abd8178b30685b6c4c7a4cd181ff78b73e9", + "sourceRevision": "Alpha-VLLM/Lumina-Image-2.0@53504abd8178b30685b6c4c7a4cd181ff78b73e9", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "Publisher model terms at https://huggingface.co/Alpha-VLLM/Lumina-Image-2.0/tree/53504abd8178b30685b6c4c7a4cd181ff78b73e9" + ], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "Alpha-VLLM/Lumina-Image-2.0@53504abd8178b30685b6c4c7a4cd181ff78b73e9 https://huggingface.co/Alpha-VLLM/Lumina-Image-2.0/tree/53504abd8178b30685b6c4c7a4cd181ff78b73e9" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "c2df9edb92f8ff905b6c9a138a285e67c621f3d2dfa3232f859aaf963b725aca", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "lumina2_larch_on_glacial_pond" + }, + { + "path": "template-gallery/reviews/lumina2_larch_on_glacial_pond.original-review.json", + "sha256": "sha256:bytes:3fa1cbf6c53ed5ce65f8d116779ff9dea32a9c52c8a0877fbb87f77f17237695", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/Alpha-VLLM/Lumina-Image-2.0/tree/53504abd8178b30685b6c4c7a4cd181ff78b73e9", + "sourceRevision": "Alpha-VLLM/Lumina-Image-2.0@53504abd8178b30685b6c4c7a4cd181ff78b73e9", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "Publisher model terms at https://huggingface.co/Alpha-VLLM/Lumina-Image-2.0/tree/53504abd8178b30685b6c4c7a4cd181ff78b73e9" + ], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "Alpha-VLLM/Lumina-Image-2.0@53504abd8178b30685b6c4c7a4cd181ff78b73e9 https://huggingface.co/Alpha-VLLM/Lumina-Image-2.0/tree/53504abd8178b30685b6c4c7a4cd181ff78b73e9" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "c2df9edb92f8ff905b6c9a138a285e67c621f3d2dfa3232f859aaf963b725aca", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "lumina2_larch_on_glacial_pond" + }, + { + "path": "template-gallery/reviews/lumina2_larch_on_glacial_pond.quality-review.json", + "sha256": "sha256:bytes:527cf3a6d6a7820e09450d4a6d533e5d875a914bd2c8771c2060a513f712544e", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/Alpha-VLLM/Lumina-Image-2.0/tree/53504abd8178b30685b6c4c7a4cd181ff78b73e9", + "sourceRevision": "Alpha-VLLM/Lumina-Image-2.0@53504abd8178b30685b6c4c7a4cd181ff78b73e9", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "Publisher model terms at https://huggingface.co/Alpha-VLLM/Lumina-Image-2.0/tree/53504abd8178b30685b6c4c7a4cd181ff78b73e9" + ], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "Alpha-VLLM/Lumina-Image-2.0@53504abd8178b30685b6c4c7a4cd181ff78b73e9 https://huggingface.co/Alpha-VLLM/Lumina-Image-2.0/tree/53504abd8178b30685b6c4c7a4cd181ff78b73e9" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "c2df9edb92f8ff905b6c9a138a285e67c621f3d2dfa3232f859aaf963b725aca", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "lumina2_larch_on_glacial_pond" + }, + { + "path": "template-gallery/reviews/lumina2_larch_on_glacial_pond.retained-template-provenance.json", + "sha256": "sha256:bytes:d62e4d0a6e3739b95089003b3095611e419f62bcdc39befbb67aeba846aec0c8", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/Alpha-VLLM/Lumina-Image-2.0/tree/53504abd8178b30685b6c4c7a4cd181ff78b73e9", + "sourceRevision": "Alpha-VLLM/Lumina-Image-2.0@53504abd8178b30685b6c4c7a4cd181ff78b73e9", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "Publisher model terms at https://huggingface.co/Alpha-VLLM/Lumina-Image-2.0/tree/53504abd8178b30685b6c4c7a4cd181ff78b73e9" + ], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "Alpha-VLLM/Lumina-Image-2.0@53504abd8178b30685b6c4c7a4cd181ff78b73e9 https://huggingface.co/Alpha-VLLM/Lumina-Image-2.0/tree/53504abd8178b30685b6c4c7a4cd181ff78b73e9" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "c2df9edb92f8ff905b6c9a138a285e67c621f3d2dfa3232f859aaf963b725aca", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "lumina2_larch_on_glacial_pond" + }, + { + "path": "template-gallery/reviews/lumina_opal_pendant_in_limestone.original-provenance.json", + "sha256": "sha256:bytes:1759ed2ceb7e564e568eced6f47a017c647dd549c2ebdf6e414310d8445a4fd4", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/Alpha-VLLM/Lumina-Next-SFT-diffusers/tree/0ee5ec90043acf5cb41fe96274af36eb7fad8d95", + "sourceRevision": "Alpha-VLLM/Lumina-Next-SFT-diffusers@0ee5ec90043acf5cb41fe96274af36eb7fad8d95", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "https://huggingface.co/Alpha-VLLM/Lumina-Next-SFT-diffusers/blob/0ee5ec90043acf5cb41fe96274af36eb7fad8d95/README.md" + ], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "Alpha-VLLM/Lumina-Next-SFT-diffusers@0ee5ec90043acf5cb41fe96274af36eb7fad8d95 https://huggingface.co/Alpha-VLLM/Lumina-Next-SFT-diffusers/tree/0ee5ec90043acf5cb41fe96274af36eb7fad8d95" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", + "provenanceTemplateId": "lumina_opal_pendant_in_limestone" + }, + { + "path": "template-gallery/reviews/lumina_opal_pendant_in_limestone.original-review.json", + "sha256": "sha256:bytes:11b0b3259e607f479a30ccb2c6f530ff41cb6367245961c43f56ccad21babfb7", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/Alpha-VLLM/Lumina-Next-SFT-diffusers/tree/0ee5ec90043acf5cb41fe96274af36eb7fad8d95", + "sourceRevision": "Alpha-VLLM/Lumina-Next-SFT-diffusers@0ee5ec90043acf5cb41fe96274af36eb7fad8d95", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "https://huggingface.co/Alpha-VLLM/Lumina-Next-SFT-diffusers/blob/0ee5ec90043acf5cb41fe96274af36eb7fad8d95/README.md" + ], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "Alpha-VLLM/Lumina-Next-SFT-diffusers@0ee5ec90043acf5cb41fe96274af36eb7fad8d95 https://huggingface.co/Alpha-VLLM/Lumina-Next-SFT-diffusers/tree/0ee5ec90043acf5cb41fe96274af36eb7fad8d95" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", + "provenanceTemplateId": "lumina_opal_pendant_in_limestone" + }, + { + "path": "template-gallery/reviews/lumina_opal_pendant_in_limestone.quality-review.json", + "sha256": "sha256:bytes:4566c14128c7a9a7b32d92d927cff0c2ca12bb392328bd692272130e0c5fe387", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/Alpha-VLLM/Lumina-Next-SFT-diffusers/tree/0ee5ec90043acf5cb41fe96274af36eb7fad8d95", + "sourceRevision": "Alpha-VLLM/Lumina-Next-SFT-diffusers@0ee5ec90043acf5cb41fe96274af36eb7fad8d95", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "https://huggingface.co/Alpha-VLLM/Lumina-Next-SFT-diffusers/blob/0ee5ec90043acf5cb41fe96274af36eb7fad8d95/README.md" + ], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "Alpha-VLLM/Lumina-Next-SFT-diffusers@0ee5ec90043acf5cb41fe96274af36eb7fad8d95 https://huggingface.co/Alpha-VLLM/Lumina-Next-SFT-diffusers/tree/0ee5ec90043acf5cb41fe96274af36eb7fad8d95" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", + "provenanceTemplateId": "lumina_opal_pendant_in_limestone" + }, + { + "path": "template-gallery/reviews/lumina_opal_pendant_in_limestone.retained-template-provenance.json", + "sha256": "sha256:bytes:a4e3e7b9be7fdd489f3876e63e7d0e9ed65508e84eabb0a673719251d3d46e0e", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/Alpha-VLLM/Lumina-Next-SFT-diffusers/tree/0ee5ec90043acf5cb41fe96274af36eb7fad8d95", + "sourceRevision": "Alpha-VLLM/Lumina-Next-SFT-diffusers@0ee5ec90043acf5cb41fe96274af36eb7fad8d95", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "https://huggingface.co/Alpha-VLLM/Lumina-Next-SFT-diffusers/blob/0ee5ec90043acf5cb41fe96274af36eb7fad8d95/README.md" + ], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "Alpha-VLLM/Lumina-Next-SFT-diffusers@0ee5ec90043acf5cb41fe96274af36eb7fad8d95 https://huggingface.co/Alpha-VLLM/Lumina-Next-SFT-diffusers/tree/0ee5ec90043acf5cb41fe96274af36eb7fad8d95" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", + "provenanceTemplateId": "lumina_opal_pendant_in_limestone" + }, + { + "path": "template-gallery/reviews/marigold_depth_synthetic_ramp.quality-review.json", + "sha256": "sha256:bytes:17c3bbb2da127558c468e58ccc2bb08a9b78d4f07f901d483cfe8092732ebb42", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted retained Gallery provenance, review, or registration metadata", + "sourceUrl": null, + "sourceRevision": null, + "sourceLicense": "MoDiff-authored exact fixture or Gallery metadata", + "modelTerms": [], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-19", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "e604b0284a57b65b20343c7776511ae15bef922c7e104c09f0f6931eec610d2d", + "publicationBasis": "Activate and publish the two approved Gallery candidates using their retained native runs.", + "provenanceTemplateId": "marigold_depth_synthetic_ramp" + }, + { + "path": "template-gallery/reviews/marigold_depth_synthetic_ramp.retained-template-provenance.json", + "sha256": "sha256:bytes:57b1487ecee6f44016512e1e1ce5c8135e963add06b1519b7e6007cb83184ae0", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted retained Gallery provenance, review, or registration metadata", "sourceUrl": null, "sourceRevision": null, - "sourceLicense": "Apache-2.0 project-authored metadata; media and model terms remain separate", + "sourceLicense": "MoDiff-authored exact fixture or Gallery metadata", "modelTerms": [], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [], "assetLicense": "Apache-2.0", - "path": "template-gallery/reviews/ltx_video_animated_story.reviewed-provenance.json", - "sha256": "sha256:bytes:3910ae6f164eb978e38b16e1eab92d73fe7f55dac543b681416ba0b8c43b440d", - "publishDecision": "approved", - "holdReason": null, - "reviewedBy": "SOURAV DAS", - "reviewedAt": "2026-11-15", - "reviewClass": "per-file-maintainer-accepted-native-seven-registration", - "humanApprovalPacketSHA256": "95c7c2ed080c3d618db1701b066724660595337460c46df8305b50810783eaa3", - "publicationBasis": "these are approved, you can register them", - "provenanceTemplateId": "ltx_video_animated_story" + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-19", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "e604b0284a57b65b20343c7776511ae15bef922c7e104c09f0f6931eec610d2d", + "publicationBasis": "Activate and publish the two approved Gallery candidates using their retained native runs.", + "provenanceTemplateId": "marigold_depth_synthetic_ramp" }, { - "path": "template-gallery/reviews/ltx_video_image_to_video.quality-review.json", - "sha256": "sha256:bytes:6c31e71b0b9e6a6a1c46f55e058dd208b7b2f510f6eeb332648575da388f9431", + "path": "template-gallery/reviews/minimax_h3_image_old_town_cat.quality-review.json", + "sha256": "sha256:bytes:ce9fc2a0edaaf3eef1f3db03024d3e64108523e93fc2797fee7cbe7364e7ce97", "publishDecision": "approved", "holdReason": null, - "creatorOrRightsholder": "MoDiff project maintainers", - "creationMethod": "Project-authored Gallery manifest, native provenance or accepted quality review", - "sourceUrl": null, - "sourceRevision": null, + "creatorOrRightsholder": "MoDiff project maintainers, subject to the recorded model terms", + "creationMethod": "Project-authored current-recipe review or redacted provenance for the saved image", + "sourceUrl": "https://huggingface.co/MiniMaxAI/MiniMax-H3-Image/tree/492fd8c4eca666f1085f57e30738c1e0d86b3439", + "sourceRevision": "MiniMaxAI/MiniMax-H3-Image@492fd8c4eca666f1085f57e30738c1e0d86b3439", "sourceLicense": "Apache-2.0 project-authored metadata", - "modelTerms": [], + "modelTerms": [ + "MiniMaxAI/MiniMax-H3-Image@492fd8c4eca666f1085f57e30738c1e0d86b3439: MiniMax H3 Image Community License Agreement" + ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [], "assetLicense": "Apache-2.0", - "reviewedBy": "SOURAV DAS", - "reviewedAt": "2026-11-10", - "reviewClass": "per-file-maintainer-accepted-native-gallery-registration", - "provenanceTemplateId": "ltx_video_image_to_video", - "humanApprovalPacketSHA256": "73ddf9ea7fc27eccc6b93817809421a008ce0fd2fb3080ffbdc5831a09205304" + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-19", + "reviewClass": "per-file-maintainer-accepted-current-recipe", + "humanApprovalPacketSHA256": "97cf1d2ce0a8500d5b3b67ff4efb20a2e91c44a6f1e22d3eafd7b408babc31a2", + "provenanceTemplateId": "minimax_h3_image_old_town_cat" }, { - "path": "template-gallery/reviews/ltx_video_image_to_video.reviewed-provenance.json", - "sha256": "sha256:bytes:ff18a19dd44e03eb76e3879a7e49f1732cc9e6dba6affadcf370feafcc6cf06b", + "path": "template-gallery/reviews/minimax_h3_image_old_town_cat.reviewed-provenance.json", + "sha256": "sha256:bytes:9d5792710da6b60188994c51bfa1ac49047121433d83961cd58d22b9caf6030c", "publishDecision": "approved", "holdReason": null, - "creatorOrRightsholder": "MoDiff project maintainers", - "creationMethod": "Project-authored Gallery manifest, native provenance or accepted quality review", - "sourceUrl": null, - "sourceRevision": null, + "creatorOrRightsholder": "MoDiff project maintainers, subject to the recorded model terms", + "creationMethod": "Project-authored current-recipe review or redacted provenance for the saved image", + "sourceUrl": "https://huggingface.co/MiniMaxAI/MiniMax-H3-Image/tree/492fd8c4eca666f1085f57e30738c1e0d86b3439", + "sourceRevision": "MiniMaxAI/MiniMax-H3-Image@492fd8c4eca666f1085f57e30738c1e0d86b3439", "sourceLicense": "Apache-2.0 project-authored metadata", - "modelTerms": [], + "modelTerms": [ + "MiniMaxAI/MiniMax-H3-Image@492fd8c4eca666f1085f57e30738c1e0d86b3439: MiniMax H3 Image Community License Agreement" + ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [], "assetLicense": "Apache-2.0", - "reviewedBy": "SOURAV DAS", - "reviewedAt": "2026-11-10", - "reviewClass": "per-file-maintainer-accepted-native-gallery-registration", - "provenanceTemplateId": "ltx_video_image_to_video", - "humanApprovalPacketSHA256": "73ddf9ea7fc27eccc6b93817809421a008ce0fd2fb3080ffbdc5831a09205304" + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-19", + "reviewClass": "per-file-maintainer-accepted-current-recipe", + "humanApprovalPacketSHA256": "97cf1d2ce0a8500d5b3b67ff4efb20a2e91c44a6f1e22d3eafd7b408babc31a2", + "provenanceTemplateId": "minimax_h3_image_old_town_cat" }, { "creatorOrRightsholder": "MoDiff project maintainers", - "creationMethod": "Project-authored redacted technical/review records or versioned declarations for seven maintainer-accepted native video replacements", + "creationMethod": "Project-authored redacted technical/review records or versioned declarations for six maintainer-accepted native results", "sourceUrl": null, "sourceRevision": null, "sourceLicense": "Apache-2.0 project-authored metadata; media and model terms remain separate", @@ -12662,20 +15123,20 @@ "marks": [], "requiredAttribution": [], "assetLicense": "Apache-2.0", - "path": "template-gallery/reviews/ltx_video_long_showcase.quality-review.json", - "sha256": "sha256:bytes:60cbabfbf56d499a45000cdbabc3c4d64733de27638c1e8b127ba067f1918b9c", + "path": "template-gallery/reviews/minimax_music3_chamber_pop.quality-review.json", + "sha256": "sha256:bytes:cd83b77fc2ccb4b11263406c12dc9d0d222af582e52dc47b77c18a4243462502", "publishDecision": "approved", "holdReason": null, "reviewedBy": "SOURAV DAS", - "reviewedAt": "2026-11-15", - "reviewClass": "per-file-maintainer-accepted-native-seven-registration", - "humanApprovalPacketSHA256": "95c7c2ed080c3d618db1701b066724660595337460c46df8305b50810783eaa3", - "publicationBasis": "these are approved, you can register them", - "provenanceTemplateId": "ltx_video_long_showcase" + "reviewedAt": "2026-11-13", + "reviewClass": "per-file-maintainer-accepted-native-six-registration", + "humanApprovalPacketSHA256": "03b66b4631afb15032d62a1705331b56f6b12c4882c23945175ec92cc45a506f", + "publicationBasis": "Register the six approved assets now while Moonflower runs on Linux. Use Windows in parallel wherever possible, and keep the longer workflows separate for AMD cloud.", + "provenanceTemplateId": "minimax_music3_chamber_pop" }, { "creatorOrRightsholder": "MoDiff project maintainers", - "creationMethod": "Project-authored redacted technical/review records or versioned declarations for seven maintainer-accepted native video replacements", + "creationMethod": "Project-authored redacted technical/review records or versioned declarations for six maintainer-accepted native results", "sourceUrl": null, "sourceRevision": null, "sourceLicense": "Apache-2.0 project-authored metadata; media and model terms remain separate", @@ -12685,250 +15146,251 @@ "marks": [], "requiredAttribution": [], "assetLicense": "Apache-2.0", - "path": "template-gallery/reviews/ltx_video_long_showcase.reviewed-provenance.json", - "sha256": "sha256:bytes:c2566ed4233b850092727e2bfc805d1be849c2b11cd9424e42283ff9e19b15d0", - "publishDecision": "approved", - "holdReason": null, - "reviewedBy": "SOURAV DAS", - "reviewedAt": "2026-11-15", - "reviewClass": "per-file-maintainer-accepted-native-seven-registration", - "humanApprovalPacketSHA256": "95c7c2ed080c3d618db1701b066724660595337460c46df8305b50810783eaa3", - "publicationBasis": "these are approved, you can register them", - "provenanceTemplateId": "ltx_video_long_showcase" - }, - { - "path": "template-gallery/reviews/ltx_video_multi_reference.quality-review.json", - "sha256": "sha256:bytes:ccb132c3ffd2e929acca88d871c2f04ba9d0cd69d54750f303b58953a8b9bc93", + "path": "template-gallery/reviews/minimax_music3_chamber_pop.reviewed-provenance.json", + "sha256": "sha256:bytes:1b2c91a45c40a7d6621bee54083d3e02d9b843d1034c06e3284ff8f1a2e44270", "publishDecision": "approved", "holdReason": null, - "creatorOrRightsholder": "MoDiff project maintainers", - "creationMethod": "Project-authored Gallery manifest, native provenance or accepted quality review", - "sourceUrl": null, - "sourceRevision": null, - "sourceLicense": "Apache-2.0 project-authored metadata", - "modelTerms": [], - "aiGenerated": false, - "humanLikenessConsent": "not-applicable", - "marks": [], - "requiredAttribution": [], - "assetLicense": "Apache-2.0", "reviewedBy": "SOURAV DAS", - "reviewedAt": "2026-11-10", - "reviewClass": "per-file-maintainer-accepted-native-gallery-registration", - "provenanceTemplateId": "ltx_video_multi_reference", - "humanApprovalPacketSHA256": "73ddf9ea7fc27eccc6b93817809421a008ce0fd2fb3080ffbdc5831a09205304" + "reviewedAt": "2026-11-13", + "reviewClass": "per-file-maintainer-accepted-native-six-registration", + "humanApprovalPacketSHA256": "03b66b4631afb15032d62a1705331b56f6b12c4882c23945175ec92cc45a506f", + "publicationBasis": "Register the six approved assets now while Moonflower runs on Linux. Use Windows in parallel wherever possible, and keep the longer workflows separate for AMD cloud.", + "provenanceTemplateId": "minimax_music3_chamber_pop" }, { - "path": "template-gallery/reviews/ltx_video_multi_reference.reviewed-provenance.json", - "sha256": "sha256:bytes:9bdf09de275841af2f1f63ce0011dfc1eeaa703e2deeb2ebf678090abad80203", + "path": "template-gallery/reviews/ochre_paper_pavilion.original-provenance.json", + "sha256": "sha256:bytes:5fab665db87b17f2c4cea8e3903ac6df84232912fc2abaabee3bf3107542dc96", "publishDecision": "approved", "holdReason": null, - "creatorOrRightsholder": "MoDiff project maintainers", - "creationMethod": "Project-authored Gallery manifest, native provenance or accepted quality review", - "sourceUrl": null, - "sourceRevision": null, - "sourceLicense": "Apache-2.0 project-authored metadata", - "modelTerms": [], + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/zai-org/CogView3-Plus-3B/tree/5d70e40732ac0efac98524c51a7fa9c82707f1e5", + "sourceRevision": "zai-org/CogView3-Plus-3B@5d70e40732ac0efac98524c51a7fa9c82707f1e5", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "apache-2.0. https://huggingface.co/zai-org/CogView3-Plus-3B/tree/5d70e40732ac0efac98524c51a7fa9c82707f1e5" + ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], - "requiredAttribution": [], + "requiredAttribution": [ + "zai-org/CogView3-Plus-3B@5d70e40732ac0efac98524c51a7fa9c82707f1e5 https://huggingface.co/zai-org/CogView3-Plus-3B/tree/5d70e40732ac0efac98524c51a7fa9c82707f1e5" + ], "assetLicense": "Apache-2.0", - "reviewedBy": "SOURAV DAS", - "reviewedAt": "2026-11-10", - "reviewClass": "per-file-maintainer-accepted-native-gallery-registration", - "provenanceTemplateId": "ltx_video_multi_reference", - "humanApprovalPacketSHA256": "73ddf9ea7fc27eccc6b93817809421a008ce0fd2fb3080ffbdc5831a09205304" + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", + "provenanceTemplateId": "ochre_paper_pavilion" }, { - "path": "template-gallery/reviews/ltx_video_text_to_video.quality-review.json", - "sha256": "sha256:bytes:37f6a5c00110c6f9e306447a53691521c77db1ecf3cedf8210dd1e7ed10ea99d", + "path": "template-gallery/reviews/ochre_paper_pavilion.original-review.json", + "sha256": "sha256:bytes:6e31d3ec89e61e8b5722fb93db8f7bb7ea8328bf1c055028ba44c18affacf058", "publishDecision": "approved", "holdReason": null, - "creatorOrRightsholder": "MoDiff project maintainers", - "creationMethod": "Project-authored Gallery manifest, native provenance or accepted quality review", - "sourceUrl": null, - "sourceRevision": null, - "sourceLicense": "Apache-2.0 project-authored metadata", - "modelTerms": [], + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/zai-org/CogView3-Plus-3B/tree/5d70e40732ac0efac98524c51a7fa9c82707f1e5", + "sourceRevision": "zai-org/CogView3-Plus-3B@5d70e40732ac0efac98524c51a7fa9c82707f1e5", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "apache-2.0. https://huggingface.co/zai-org/CogView3-Plus-3B/tree/5d70e40732ac0efac98524c51a7fa9c82707f1e5" + ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], - "requiredAttribution": [], + "requiredAttribution": [ + "zai-org/CogView3-Plus-3B@5d70e40732ac0efac98524c51a7fa9c82707f1e5 https://huggingface.co/zai-org/CogView3-Plus-3B/tree/5d70e40732ac0efac98524c51a7fa9c82707f1e5" + ], "assetLicense": "Apache-2.0", - "reviewedBy": "SOURAV DAS", - "reviewedAt": "2026-11-10", - "reviewClass": "per-file-maintainer-accepted-native-gallery-registration", - "provenanceTemplateId": "ltx_video_text_to_video", - "humanApprovalPacketSHA256": "73ddf9ea7fc27eccc6b93817809421a008ce0fd2fb3080ffbdc5831a09205304" + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", + "provenanceTemplateId": "ochre_paper_pavilion" }, { - "path": "template-gallery/reviews/ltx_video_text_to_video.reviewed-provenance.json", - "sha256": "sha256:bytes:58bfc0b841177bc73dbde13effbf5eebcf9e8d618d3aa90aa8b19afc3a6e5132", + "path": "template-gallery/reviews/ochre_paper_pavilion.quality-review.json", + "sha256": "sha256:bytes:a635772ae5b26758629581843258dea266c7e85934eb222d4884b9a2522a93c1", "publishDecision": "approved", "holdReason": null, - "creatorOrRightsholder": "MoDiff project maintainers", - "creationMethod": "Project-authored Gallery manifest, native provenance or accepted quality review", - "sourceUrl": null, - "sourceRevision": null, - "sourceLicense": "Apache-2.0 project-authored metadata", - "modelTerms": [], + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/zai-org/CogView3-Plus-3B/tree/5d70e40732ac0efac98524c51a7fa9c82707f1e5", + "sourceRevision": "zai-org/CogView3-Plus-3B@5d70e40732ac0efac98524c51a7fa9c82707f1e5", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "apache-2.0. https://huggingface.co/zai-org/CogView3-Plus-3B/tree/5d70e40732ac0efac98524c51a7fa9c82707f1e5" + ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], - "requiredAttribution": [], + "requiredAttribution": [ + "zai-org/CogView3-Plus-3B@5d70e40732ac0efac98524c51a7fa9c82707f1e5 https://huggingface.co/zai-org/CogView3-Plus-3B/tree/5d70e40732ac0efac98524c51a7fa9c82707f1e5" + ], "assetLicense": "Apache-2.0", - "reviewedBy": "SOURAV DAS", - "reviewedAt": "2026-11-10", - "reviewClass": "per-file-maintainer-accepted-native-gallery-registration", - "provenanceTemplateId": "ltx_video_text_to_video", - "humanApprovalPacketSHA256": "73ddf9ea7fc27eccc6b93817809421a008ce0fd2fb3080ffbdc5831a09205304" + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", + "provenanceTemplateId": "ochre_paper_pavilion" }, { - "creatorOrRightsholder": "MoDiff project maintainers", - "creationMethod": "Project-authored redacted technical/review records or versioned declarations for six maintainer-accepted native results", - "sourceUrl": null, - "sourceRevision": null, - "sourceLicense": "Apache-2.0 project-authored metadata; media and model terms remain separate", - "modelTerms": [], - "aiGenerated": false, - "humanLikenessConsent": "not-applicable", - "marks": [], - "requiredAttribution": [], - "assetLicense": "Apache-2.0", - "path": "template-gallery/reviews/ltx_video_video_to_video.quality-review.json", - "sha256": "sha256:bytes:819fd6d872b8e86bbb091980a435bd363216d069223dd694f65d7942aeb05178", + "path": "template-gallery/reviews/ochre_paper_pavilion.retained-template-provenance.json", + "sha256": "sha256:bytes:9bd899fe903bcc05057c1ae452c641700d9c36b5001b499dadba6a6a07e36e80", "publishDecision": "approved", "holdReason": null, - "reviewedBy": "SOURAV DAS", - "reviewedAt": "2026-11-13", - "reviewClass": "per-file-maintainer-accepted-native-six-registration", - "humanApprovalPacketSHA256": "03b66b4631afb15032d62a1705331b56f6b12c4882c23945175ec92cc45a506f", - "publicationBasis": "Register the six approved assets now while Moonflower runs on Linux. Use Windows in parallel wherever possible, and keep the longer workflows separate for AMD cloud.", - "provenanceTemplateId": "ltx_video_video_to_video" - }, - { - "creatorOrRightsholder": "MoDiff project maintainers", - "creationMethod": "Project-authored redacted technical/review records or versioned declarations for six maintainer-accepted native results", - "sourceUrl": null, - "sourceRevision": null, - "sourceLicense": "Apache-2.0 project-authored metadata; media and model terms remain separate", - "modelTerms": [], + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/zai-org/CogView3-Plus-3B/tree/5d70e40732ac0efac98524c51a7fa9c82707f1e5", + "sourceRevision": "zai-org/CogView3-Plus-3B@5d70e40732ac0efac98524c51a7fa9c82707f1e5", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "apache-2.0. https://huggingface.co/zai-org/CogView3-Plus-3B/tree/5d70e40732ac0efac98524c51a7fa9c82707f1e5" + ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], - "requiredAttribution": [], + "requiredAttribution": [ + "zai-org/CogView3-Plus-3B@5d70e40732ac0efac98524c51a7fa9c82707f1e5 https://huggingface.co/zai-org/CogView3-Plus-3B/tree/5d70e40732ac0efac98524c51a7fa9c82707f1e5" + ], "assetLicense": "Apache-2.0", - "path": "template-gallery/reviews/ltx_video_video_to_video.reviewed-provenance.json", - "sha256": "sha256:bytes:9de3b2659acc8383ab86923bc7c9c87be3e53f3d894a06c77af8a16a155795a4", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", + "provenanceTemplateId": "ochre_paper_pavilion" + }, + { + "path": "template-gallery/reviews/omnigen_cobalt_against_soft_apricot.original-provenance.json", + "sha256": "sha256:bytes:88ee6e3f6d910a68983aedb6b0cb553cad2341ca72627f2d6c578ecfefe1d760", "publishDecision": "approved", "holdReason": null, - "reviewedBy": "SOURAV DAS", - "reviewedAt": "2026-11-13", - "reviewClass": "per-file-maintainer-accepted-native-six-registration", - "humanApprovalPacketSHA256": "03b66b4631afb15032d62a1705331b56f6b12c4882c23945175ec92cc45a506f", - "publicationBasis": "Register the six approved assets now while Moonflower runs on Linux. Use Windows in parallel wherever possible, and keep the longer workflows separate for AMD cloud.", - "provenanceTemplateId": "ltx_video_video_to_video" + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/Shitao/OmniGen-v1-diffusers/tree/016e2f61d12a98303f6bbdf122687694d7984268", + "sourceRevision": "Shitao/OmniGen-v1-diffusers@016e2f61d12a98303f6bbdf122687694d7984268", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "Publisher model terms at https://huggingface.co/Shitao/OmniGen-v1-diffusers/tree/016e2f61d12a98303f6bbdf122687694d7984268" + ], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "Shitao/OmniGen-v1-diffusers@016e2f61d12a98303f6bbdf122687694d7984268 https://huggingface.co/Shitao/OmniGen-v1-diffusers/tree/016e2f61d12a98303f6bbdf122687694d7984268" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "60b01498a2df5f4e4622cdc2f9a43c83d187820780d2425a19718c13707db501", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "omnigen_cobalt_against_soft_apricot" }, { - "path": "template-gallery/reviews/lumina2_larch_on_glacial_pond.original-provenance.json", - "sha256": "sha256:bytes:16e6a8baf35baec6d9e1be13523eaa5606174123b3a61274a257d5fbd14977f3", + "path": "template-gallery/reviews/omnigen_cobalt_against_soft_apricot.original-review.json", + "sha256": "sha256:bytes:ae25cda076716b4dfe73095b1bcaa75418984db19fda3592f60335da9194e3e2", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/Alpha-VLLM/Lumina-Image-2.0/tree/53504abd8178b30685b6c4c7a4cd181ff78b73e9", - "sourceRevision": "Alpha-VLLM/Lumina-Image-2.0@53504abd8178b30685b6c4c7a4cd181ff78b73e9", + "sourceUrl": "https://huggingface.co/Shitao/OmniGen-v1-diffusers/tree/016e2f61d12a98303f6bbdf122687694d7984268", + "sourceRevision": "Shitao/OmniGen-v1-diffusers@016e2f61d12a98303f6bbdf122687694d7984268", "sourceLicense": "MoDiff-authored Gallery metadata", "modelTerms": [ - "Publisher model terms at https://huggingface.co/Alpha-VLLM/Lumina-Image-2.0/tree/53504abd8178b30685b6c4c7a4cd181ff78b73e9" + "Publisher model terms at https://huggingface.co/Shitao/OmniGen-v1-diffusers/tree/016e2f61d12a98303f6bbdf122687694d7984268" ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "Alpha-VLLM/Lumina-Image-2.0@53504abd8178b30685b6c4c7a4cd181ff78b73e9 https://huggingface.co/Alpha-VLLM/Lumina-Image-2.0/tree/53504abd8178b30685b6c4c7a4cd181ff78b73e9" + "Shitao/OmniGen-v1-diffusers@016e2f61d12a98303f6bbdf122687694d7984268 https://huggingface.co/Shitao/OmniGen-v1-diffusers/tree/016e2f61d12a98303f6bbdf122687694d7984268" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "c2df9edb92f8ff905b6c9a138a285e67c621f3d2dfa3232f859aaf963b725aca", + "humanApprovalPacketSHA256": "60b01498a2df5f4e4622cdc2f9a43c83d187820780d2425a19718c13707db501", "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", - "provenanceTemplateId": "lumina2_larch_on_glacial_pond" + "provenanceTemplateId": "omnigen_cobalt_against_soft_apricot" }, { - "path": "template-gallery/reviews/lumina2_larch_on_glacial_pond.original-review.json", - "sha256": "sha256:bytes:3fa1cbf6c53ed5ce65f8d116779ff9dea32a9c52c8a0877fbb87f77f17237695", + "path": "template-gallery/reviews/omnigen_cobalt_against_soft_apricot.quality-review.json", + "sha256": "sha256:bytes:f81904cbc14984f2916d4d26b20a38d7e90f46aa967bead471d642c0196ad273", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/Alpha-VLLM/Lumina-Image-2.0/tree/53504abd8178b30685b6c4c7a4cd181ff78b73e9", - "sourceRevision": "Alpha-VLLM/Lumina-Image-2.0@53504abd8178b30685b6c4c7a4cd181ff78b73e9", + "sourceUrl": "https://huggingface.co/Shitao/OmniGen-v1-diffusers/tree/016e2f61d12a98303f6bbdf122687694d7984268", + "sourceRevision": "Shitao/OmniGen-v1-diffusers@016e2f61d12a98303f6bbdf122687694d7984268", "sourceLicense": "MoDiff-authored Gallery metadata", "modelTerms": [ - "Publisher model terms at https://huggingface.co/Alpha-VLLM/Lumina-Image-2.0/tree/53504abd8178b30685b6c4c7a4cd181ff78b73e9" + "Publisher model terms at https://huggingface.co/Shitao/OmniGen-v1-diffusers/tree/016e2f61d12a98303f6bbdf122687694d7984268" ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "Alpha-VLLM/Lumina-Image-2.0@53504abd8178b30685b6c4c7a4cd181ff78b73e9 https://huggingface.co/Alpha-VLLM/Lumina-Image-2.0/tree/53504abd8178b30685b6c4c7a4cd181ff78b73e9" + "Shitao/OmniGen-v1-diffusers@016e2f61d12a98303f6bbdf122687694d7984268 https://huggingface.co/Shitao/OmniGen-v1-diffusers/tree/016e2f61d12a98303f6bbdf122687694d7984268" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "c2df9edb92f8ff905b6c9a138a285e67c621f3d2dfa3232f859aaf963b725aca", + "humanApprovalPacketSHA256": "60b01498a2df5f4e4622cdc2f9a43c83d187820780d2425a19718c13707db501", "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", - "provenanceTemplateId": "lumina2_larch_on_glacial_pond" + "provenanceTemplateId": "omnigen_cobalt_against_soft_apricot" }, { - "path": "template-gallery/reviews/lumina2_larch_on_glacial_pond.quality-review.json", - "sha256": "sha256:bytes:527cf3a6d6a7820e09450d4a6d533e5d875a914bd2c8771c2060a513f712544e", + "path": "template-gallery/reviews/omnigen_cobalt_against_soft_apricot.retained-template-provenance.json", + "sha256": "sha256:bytes:1ac31719c0a2fcf0c59ebf8c1f6fbcff2be9847aa23b748c1bb43a706b8f14fd", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/Alpha-VLLM/Lumina-Image-2.0/tree/53504abd8178b30685b6c4c7a4cd181ff78b73e9", - "sourceRevision": "Alpha-VLLM/Lumina-Image-2.0@53504abd8178b30685b6c4c7a4cd181ff78b73e9", + "sourceUrl": "https://huggingface.co/Shitao/OmniGen-v1-diffusers/tree/016e2f61d12a98303f6bbdf122687694d7984268", + "sourceRevision": "Shitao/OmniGen-v1-diffusers@016e2f61d12a98303f6bbdf122687694d7984268", "sourceLicense": "MoDiff-authored Gallery metadata", "modelTerms": [ - "Publisher model terms at https://huggingface.co/Alpha-VLLM/Lumina-Image-2.0/tree/53504abd8178b30685b6c4c7a4cd181ff78b73e9" + "Publisher model terms at https://huggingface.co/Shitao/OmniGen-v1-diffusers/tree/016e2f61d12a98303f6bbdf122687694d7984268" ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "Alpha-VLLM/Lumina-Image-2.0@53504abd8178b30685b6c4c7a4cd181ff78b73e9 https://huggingface.co/Alpha-VLLM/Lumina-Image-2.0/tree/53504abd8178b30685b6c4c7a4cd181ff78b73e9" + "Shitao/OmniGen-v1-diffusers@016e2f61d12a98303f6bbdf122687694d7984268 https://huggingface.co/Shitao/OmniGen-v1-diffusers/tree/016e2f61d12a98303f6bbdf122687694d7984268" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "c2df9edb92f8ff905b6c9a138a285e67c621f3d2dfa3232f859aaf963b725aca", + "humanApprovalPacketSHA256": "60b01498a2df5f4e4622cdc2f9a43c83d187820780d2425a19718c13707db501", "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", - "provenanceTemplateId": "lumina2_larch_on_glacial_pond" + "provenanceTemplateId": "omnigen_cobalt_against_soft_apricot" }, { - "path": "template-gallery/reviews/lumina2_larch_on_glacial_pond.retained-template-provenance.json", - "sha256": "sha256:bytes:d62e4d0a6e3739b95089003b3095611e419f62bcdc39befbb67aeba846aec0c8", + "path": "template-gallery/reviews/omnigen_tulips_after_rain.original-provenance.json", + "sha256": "sha256:bytes:cd37ada4ad60fccb5fece5fe6ef03dd62ba7a8a66eb141579f8fa424b6265d71", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/Alpha-VLLM/Lumina-Image-2.0/tree/53504abd8178b30685b6c4c7a4cd181ff78b73e9", - "sourceRevision": "Alpha-VLLM/Lumina-Image-2.0@53504abd8178b30685b6c4c7a4cd181ff78b73e9", + "sourceUrl": "https://huggingface.co/Shitao/OmniGen-v1-diffusers/tree/016e2f61d12a98303f6bbdf122687694d7984268", + "sourceRevision": "Shitao/OmniGen-v1-diffusers@016e2f61d12a98303f6bbdf122687694d7984268", "sourceLicense": "MoDiff-authored Gallery metadata", "modelTerms": [ - "Publisher model terms at https://huggingface.co/Alpha-VLLM/Lumina-Image-2.0/tree/53504abd8178b30685b6c4c7a4cd181ff78b73e9" + "Publisher model terms at https://huggingface.co/Shitao/OmniGen-v1-diffusers/tree/016e2f61d12a98303f6bbdf122687694d7984268" ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "Alpha-VLLM/Lumina-Image-2.0@53504abd8178b30685b6c4c7a4cd181ff78b73e9 https://huggingface.co/Alpha-VLLM/Lumina-Image-2.0/tree/53504abd8178b30685b6c4c7a4cd181ff78b73e9" + "Shitao/OmniGen-v1-diffusers@016e2f61d12a98303f6bbdf122687694d7984268 https://huggingface.co/Shitao/OmniGen-v1-diffusers/tree/016e2f61d12a98303f6bbdf122687694d7984268" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", @@ -12936,107 +15398,107 @@ "reviewClass": "per-file-maintainer-accepted-retained-registration", "humanApprovalPacketSHA256": "c2df9edb92f8ff905b6c9a138a285e67c621f3d2dfa3232f859aaf963b725aca", "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", - "provenanceTemplateId": "lumina2_larch_on_glacial_pond" + "provenanceTemplateId": "omnigen_tulips_after_rain" }, { - "path": "template-gallery/reviews/lumina_opal_pendant_in_limestone.original-provenance.json", - "sha256": "sha256:bytes:1759ed2ceb7e564e568eced6f47a017c647dd549c2ebdf6e414310d8445a4fd4", + "path": "template-gallery/reviews/omnigen_tulips_after_rain.original-review.json", + "sha256": "sha256:bytes:3353e7fabebfddfc0b47f2ebdd668c0ae01f426d9280d1e4ac03d307582b8cc3", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/Alpha-VLLM/Lumina-Next-SFT-diffusers/tree/0ee5ec90043acf5cb41fe96274af36eb7fad8d95", - "sourceRevision": "Alpha-VLLM/Lumina-Next-SFT-diffusers@0ee5ec90043acf5cb41fe96274af36eb7fad8d95", + "sourceUrl": "https://huggingface.co/Shitao/OmniGen-v1-diffusers/tree/016e2f61d12a98303f6bbdf122687694d7984268", + "sourceRevision": "Shitao/OmniGen-v1-diffusers@016e2f61d12a98303f6bbdf122687694d7984268", "sourceLicense": "MoDiff-authored Gallery metadata", "modelTerms": [ - "https://huggingface.co/Alpha-VLLM/Lumina-Next-SFT-diffusers/blob/0ee5ec90043acf5cb41fe96274af36eb7fad8d95/README.md" + "Publisher model terms at https://huggingface.co/Shitao/OmniGen-v1-diffusers/tree/016e2f61d12a98303f6bbdf122687694d7984268" ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "Alpha-VLLM/Lumina-Next-SFT-diffusers@0ee5ec90043acf5cb41fe96274af36eb7fad8d95 https://huggingface.co/Alpha-VLLM/Lumina-Next-SFT-diffusers/tree/0ee5ec90043acf5cb41fe96274af36eb7fad8d95" + "Shitao/OmniGen-v1-diffusers@016e2f61d12a98303f6bbdf122687694d7984268 https://huggingface.co/Shitao/OmniGen-v1-diffusers/tree/016e2f61d12a98303f6bbdf122687694d7984268" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", - "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", - "provenanceTemplateId": "lumina_opal_pendant_in_limestone" + "humanApprovalPacketSHA256": "c2df9edb92f8ff905b6c9a138a285e67c621f3d2dfa3232f859aaf963b725aca", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "omnigen_tulips_after_rain" }, { - "path": "template-gallery/reviews/lumina_opal_pendant_in_limestone.original-review.json", - "sha256": "sha256:bytes:11b0b3259e607f479a30ccb2c6f530ff41cb6367245961c43f56ccad21babfb7", + "path": "template-gallery/reviews/omnigen_tulips_after_rain.quality-review.json", + "sha256": "sha256:bytes:333fbf9b662ef072cf2621b37b814052af11c4e219a6640376ba53a2ee4c154f", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/Alpha-VLLM/Lumina-Next-SFT-diffusers/tree/0ee5ec90043acf5cb41fe96274af36eb7fad8d95", - "sourceRevision": "Alpha-VLLM/Lumina-Next-SFT-diffusers@0ee5ec90043acf5cb41fe96274af36eb7fad8d95", + "sourceUrl": "https://huggingface.co/Shitao/OmniGen-v1-diffusers/tree/016e2f61d12a98303f6bbdf122687694d7984268", + "sourceRevision": "Shitao/OmniGen-v1-diffusers@016e2f61d12a98303f6bbdf122687694d7984268", "sourceLicense": "MoDiff-authored Gallery metadata", "modelTerms": [ - "https://huggingface.co/Alpha-VLLM/Lumina-Next-SFT-diffusers/blob/0ee5ec90043acf5cb41fe96274af36eb7fad8d95/README.md" + "Publisher model terms at https://huggingface.co/Shitao/OmniGen-v1-diffusers/tree/016e2f61d12a98303f6bbdf122687694d7984268" ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "Alpha-VLLM/Lumina-Next-SFT-diffusers@0ee5ec90043acf5cb41fe96274af36eb7fad8d95 https://huggingface.co/Alpha-VLLM/Lumina-Next-SFT-diffusers/tree/0ee5ec90043acf5cb41fe96274af36eb7fad8d95" + "Shitao/OmniGen-v1-diffusers@016e2f61d12a98303f6bbdf122687694d7984268 https://huggingface.co/Shitao/OmniGen-v1-diffusers/tree/016e2f61d12a98303f6bbdf122687694d7984268" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", - "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", - "provenanceTemplateId": "lumina_opal_pendant_in_limestone" + "humanApprovalPacketSHA256": "c2df9edb92f8ff905b6c9a138a285e67c621f3d2dfa3232f859aaf963b725aca", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "omnigen_tulips_after_rain" }, { - "path": "template-gallery/reviews/lumina_opal_pendant_in_limestone.quality-review.json", - "sha256": "sha256:bytes:4566c14128c7a9a7b32d92d927cff0c2ca12bb392328bd692272130e0c5fe387", + "path": "template-gallery/reviews/omnigen_tulips_after_rain.retained-template-provenance.json", + "sha256": "sha256:bytes:143b1e03664e187b0815b81948843d05bf9bf2bc664f9c92b7cd78c3b7755245", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/Alpha-VLLM/Lumina-Next-SFT-diffusers/tree/0ee5ec90043acf5cb41fe96274af36eb7fad8d95", - "sourceRevision": "Alpha-VLLM/Lumina-Next-SFT-diffusers@0ee5ec90043acf5cb41fe96274af36eb7fad8d95", + "sourceUrl": "https://huggingface.co/Shitao/OmniGen-v1-diffusers/tree/016e2f61d12a98303f6bbdf122687694d7984268", + "sourceRevision": "Shitao/OmniGen-v1-diffusers@016e2f61d12a98303f6bbdf122687694d7984268", "sourceLicense": "MoDiff-authored Gallery metadata", "modelTerms": [ - "https://huggingface.co/Alpha-VLLM/Lumina-Next-SFT-diffusers/blob/0ee5ec90043acf5cb41fe96274af36eb7fad8d95/README.md" + "Publisher model terms at https://huggingface.co/Shitao/OmniGen-v1-diffusers/tree/016e2f61d12a98303f6bbdf122687694d7984268" ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "Alpha-VLLM/Lumina-Next-SFT-diffusers@0ee5ec90043acf5cb41fe96274af36eb7fad8d95 https://huggingface.co/Alpha-VLLM/Lumina-Next-SFT-diffusers/tree/0ee5ec90043acf5cb41fe96274af36eb7fad8d95" + "Shitao/OmniGen-v1-diffusers@016e2f61d12a98303f6bbdf122687694d7984268 https://huggingface.co/Shitao/OmniGen-v1-diffusers/tree/016e2f61d12a98303f6bbdf122687694d7984268" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", - "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", - "provenanceTemplateId": "lumina_opal_pendant_in_limestone" + "humanApprovalPacketSHA256": "c2df9edb92f8ff905b6c9a138a285e67c621f3d2dfa3232f859aaf963b725aca", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "omnigen_tulips_after_rain" }, { - "path": "template-gallery/reviews/lumina_opal_pendant_in_limestone.retained-template-provenance.json", - "sha256": "sha256:bytes:a4e3e7b9be7fdd489f3876e63e7d0e9ed65508e84eabb0a673719251d3d46e0e", + "path": "template-gallery/reviews/persimmon_glaze.original-provenance.json", + "sha256": "sha256:bytes:dece98191d7fdcae395409a4ca8fb0f7eb215bc095660a8251d668f1dabd0054", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/Alpha-VLLM/Lumina-Next-SFT-diffusers/tree/0ee5ec90043acf5cb41fe96274af36eb7fad8d95", - "sourceRevision": "Alpha-VLLM/Lumina-Next-SFT-diffusers@0ee5ec90043acf5cb41fe96274af36eb7fad8d95", + "sourceUrl": "https://huggingface.co/Efficient-Large-Model/Sana_600M_1024px_diffusers/tree/28f3af7689de15f3883d5863059a2fca0aa9b829", + "sourceRevision": "Efficient-Large-Model/Sana_600M_1024px_diffusers@28f3af7689de15f3883d5863059a2fca0aa9b829", "sourceLicense": "MoDiff-authored Gallery metadata", "modelTerms": [ - "https://huggingface.co/Alpha-VLLM/Lumina-Next-SFT-diffusers/blob/0ee5ec90043acf5cb41fe96274af36eb7fad8d95/README.md" + "apache-2.0. https://huggingface.co/Efficient-Large-Model/Sana_600M_1024px_diffusers/tree/28f3af7689de15f3883d5863059a2fca0aa9b829" ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "Alpha-VLLM/Lumina-Next-SFT-diffusers@0ee5ec90043acf5cb41fe96274af36eb7fad8d95 https://huggingface.co/Alpha-VLLM/Lumina-Next-SFT-diffusers/tree/0ee5ec90043acf5cb41fe96274af36eb7fad8d95" + "Efficient-Large-Model/Sana_600M_1024px_diffusers@28f3af7689de15f3883d5863059a2fca0aa9b829 https://huggingface.co/Efficient-Large-Model/Sana_600M_1024px_diffusers/tree/28f3af7689de15f3883d5863059a2fca0aa9b829" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", @@ -13044,166 +15506,161 @@ "reviewClass": "per-file-maintainer-accepted-retained-registration", "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", - "provenanceTemplateId": "lumina_opal_pendant_in_limestone" + "provenanceTemplateId": "persimmon_glaze" }, { - "path": "template-gallery/reviews/marigold_depth_synthetic_ramp.quality-review.json", - "sha256": "sha256:bytes:17c3bbb2da127558c468e58ccc2bb08a9b78d4f07f901d483cfe8092732ebb42", + "path": "template-gallery/reviews/persimmon_glaze.original-review.json", + "sha256": "sha256:bytes:3c97652cd91cc4af5660429652241efbe6675b20ec59c7abc73c3f1c185b491a", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", - "creationMethod": "Project-authored redacted retained Gallery provenance, review, or registration metadata", - "sourceUrl": null, - "sourceRevision": null, - "sourceLicense": "MoDiff-authored exact fixture or Gallery metadata", - "modelTerms": [], + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/Efficient-Large-Model/Sana_600M_1024px_diffusers/tree/28f3af7689de15f3883d5863059a2fca0aa9b829", + "sourceRevision": "Efficient-Large-Model/Sana_600M_1024px_diffusers@28f3af7689de15f3883d5863059a2fca0aa9b829", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "apache-2.0. https://huggingface.co/Efficient-Large-Model/Sana_600M_1024px_diffusers/tree/28f3af7689de15f3883d5863059a2fca0aa9b829" + ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], - "requiredAttribution": [], + "requiredAttribution": [ + "Efficient-Large-Model/Sana_600M_1024px_diffusers@28f3af7689de15f3883d5863059a2fca0aa9b829 https://huggingface.co/Efficient-Large-Model/Sana_600M_1024px_diffusers/tree/28f3af7689de15f3883d5863059a2fca0aa9b829" + ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", - "reviewedAt": "2026-11-19", + "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "e604b0284a57b65b20343c7776511ae15bef922c7e104c09f0f6931eec610d2d", - "publicationBasis": "Activate and publish the two approved Gallery candidates using their retained native runs.", - "provenanceTemplateId": "marigold_depth_synthetic_ramp" + "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", + "provenanceTemplateId": "persimmon_glaze" }, { - "path": "template-gallery/reviews/marigold_depth_synthetic_ramp.retained-template-provenance.json", - "sha256": "sha256:bytes:57b1487ecee6f44016512e1e1ce5c8135e963add06b1519b7e6007cb83184ae0", + "path": "template-gallery/reviews/persimmon_glaze.quality-review.json", + "sha256": "sha256:bytes:9c9afc7223597ea8ee65889581c40f1e9f6a63a2bab6d7827b6af207353909ad", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", - "creationMethod": "Project-authored redacted retained Gallery provenance, review, or registration metadata", - "sourceUrl": null, - "sourceRevision": null, - "sourceLicense": "MoDiff-authored exact fixture or Gallery metadata", - "modelTerms": [], + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/Efficient-Large-Model/Sana_600M_1024px_diffusers/tree/28f3af7689de15f3883d5863059a2fca0aa9b829", + "sourceRevision": "Efficient-Large-Model/Sana_600M_1024px_diffusers@28f3af7689de15f3883d5863059a2fca0aa9b829", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "apache-2.0. https://huggingface.co/Efficient-Large-Model/Sana_600M_1024px_diffusers/tree/28f3af7689de15f3883d5863059a2fca0aa9b829" + ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], - "requiredAttribution": [], + "requiredAttribution": [ + "Efficient-Large-Model/Sana_600M_1024px_diffusers@28f3af7689de15f3883d5863059a2fca0aa9b829 https://huggingface.co/Efficient-Large-Model/Sana_600M_1024px_diffusers/tree/28f3af7689de15f3883d5863059a2fca0aa9b829" + ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", - "reviewedAt": "2026-11-19", + "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "e604b0284a57b65b20343c7776511ae15bef922c7e104c09f0f6931eec610d2d", - "publicationBasis": "Activate and publish the two approved Gallery candidates using their retained native runs.", - "provenanceTemplateId": "marigold_depth_synthetic_ramp" + "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", + "provenanceTemplateId": "persimmon_glaze" }, { - "path": "template-gallery/reviews/minimax_h3_image_old_town_cat.quality-review.json", - "sha256": "sha256:bytes:ce9fc2a0edaaf3eef1f3db03024d3e64108523e93fc2797fee7cbe7364e7ce97", + "path": "template-gallery/reviews/persimmon_glaze.retained-template-provenance.json", + "sha256": "sha256:bytes:4813f96f9332d04d4b8b0fc8d30d51e110ab8d157a1aef7c6172474f09bb490f", "publishDecision": "approved", "holdReason": null, - "creatorOrRightsholder": "MoDiff project maintainers, subject to the recorded model terms", - "creationMethod": "Project-authored current-recipe review or redacted provenance for the saved image", - "sourceUrl": "https://huggingface.co/MiniMaxAI/MiniMax-H3-Image/tree/492fd8c4eca666f1085f57e30738c1e0d86b3439", - "sourceRevision": "MiniMaxAI/MiniMax-H3-Image@492fd8c4eca666f1085f57e30738c1e0d86b3439", - "sourceLicense": "Apache-2.0 project-authored metadata", + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/Efficient-Large-Model/Sana_600M_1024px_diffusers/tree/28f3af7689de15f3883d5863059a2fca0aa9b829", + "sourceRevision": "Efficient-Large-Model/Sana_600M_1024px_diffusers@28f3af7689de15f3883d5863059a2fca0aa9b829", + "sourceLicense": "MoDiff-authored Gallery metadata", "modelTerms": [ - "MiniMaxAI/MiniMax-H3-Image@492fd8c4eca666f1085f57e30738c1e0d86b3439: MiniMax H3 Image Community License Agreement" + "apache-2.0. https://huggingface.co/Efficient-Large-Model/Sana_600M_1024px_diffusers/tree/28f3af7689de15f3883d5863059a2fca0aa9b829" ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], - "requiredAttribution": [], + "requiredAttribution": [ + "Efficient-Large-Model/Sana_600M_1024px_diffusers@28f3af7689de15f3883d5863059a2fca0aa9b829 https://huggingface.co/Efficient-Large-Model/Sana_600M_1024px_diffusers/tree/28f3af7689de15f3883d5863059a2fca0aa9b829" + ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", - "reviewedAt": "2026-11-19", - "reviewClass": "per-file-maintainer-accepted-current-recipe", - "humanApprovalPacketSHA256": "97cf1d2ce0a8500d5b3b67ff4efb20a2e91c44a6f1e22d3eafd7b408babc31a2", - "provenanceTemplateId": "minimax_h3_image_old_town_cat" + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", + "provenanceTemplateId": "persimmon_glaze" }, { - "path": "template-gallery/reviews/minimax_h3_image_old_town_cat.reviewed-provenance.json", - "sha256": "sha256:bytes:9d5792710da6b60188994c51bfa1ac49047121433d83961cd58d22b9caf6030c", + "path": "template-gallery/reviews/pomegranate_on_blue_linen.original-provenance.json", + "sha256": "sha256:bytes:b9cecf2139bc5a0e5d6a3db462caf017c4d54482267592bf220f5015f7ae690b", "publishDecision": "approved", "holdReason": null, - "creatorOrRightsholder": "MoDiff project maintainers, subject to the recorded model terms", - "creationMethod": "Project-authored current-recipe review or redacted provenance for the saved image", - "sourceUrl": "https://huggingface.co/MiniMaxAI/MiniMax-H3-Image/tree/492fd8c4eca666f1085f57e30738c1e0d86b3439", - "sourceRevision": "MiniMaxAI/MiniMax-H3-Image@492fd8c4eca666f1085f57e30738c1e0d86b3439", - "sourceLicense": "Apache-2.0 project-authored metadata", + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14", + "sourceRevision": "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14", + "sourceLicense": "MoDiff-authored Gallery metadata", "modelTerms": [ - "MiniMaxAI/MiniMax-H3-Image@492fd8c4eca666f1085f57e30738c1e0d86b3439: MiniMax H3 Image Community License Agreement" + "creativeml-openrail-m. https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14" ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], - "requiredAttribution": [], + "requiredAttribution": [ + "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14 https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14" + ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", - "reviewedAt": "2026-11-19", - "reviewClass": "per-file-maintainer-accepted-current-recipe", - "humanApprovalPacketSHA256": "97cf1d2ce0a8500d5b3b67ff4efb20a2e91c44a6f1e22d3eafd7b408babc31a2", - "provenanceTemplateId": "minimax_h3_image_old_town_cat" + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", + "provenanceTemplateId": "pomegranate_on_blue_linen" }, { - "creatorOrRightsholder": "MoDiff project maintainers", - "creationMethod": "Project-authored redacted technical/review records or versioned declarations for six maintainer-accepted native results", - "sourceUrl": null, - "sourceRevision": null, - "sourceLicense": "Apache-2.0 project-authored metadata; media and model terms remain separate", - "modelTerms": [], - "aiGenerated": false, - "humanLikenessConsent": "not-applicable", - "marks": [], - "requiredAttribution": [], - "assetLicense": "Apache-2.0", - "path": "template-gallery/reviews/minimax_music3_chamber_pop.quality-review.json", - "sha256": "sha256:bytes:cd83b77fc2ccb4b11263406c12dc9d0d222af582e52dc47b77c18a4243462502", + "path": "template-gallery/reviews/pomegranate_on_blue_linen.original-review.json", + "sha256": "sha256:bytes:752b7cc115a3794d1066785e887b73e3eed5f3bb6735ef5ec89c45035b20d7e4", "publishDecision": "approved", "holdReason": null, - "reviewedBy": "SOURAV DAS", - "reviewedAt": "2026-11-13", - "reviewClass": "per-file-maintainer-accepted-native-six-registration", - "humanApprovalPacketSHA256": "03b66b4631afb15032d62a1705331b56f6b12c4882c23945175ec92cc45a506f", - "publicationBasis": "Register the six approved assets now while Moonflower runs on Linux. Use Windows in parallel wherever possible, and keep the longer workflows separate for AMD cloud.", - "provenanceTemplateId": "minimax_music3_chamber_pop" - }, - { - "creatorOrRightsholder": "MoDiff project maintainers", - "creationMethod": "Project-authored redacted technical/review records or versioned declarations for six maintainer-accepted native results", - "sourceUrl": null, - "sourceRevision": null, - "sourceLicense": "Apache-2.0 project-authored metadata; media and model terms remain separate", - "modelTerms": [], + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14", + "sourceRevision": "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "creativeml-openrail-m. https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14" + ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], - "requiredAttribution": [], + "requiredAttribution": [ + "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14 https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14" + ], "assetLicense": "Apache-2.0", - "path": "template-gallery/reviews/minimax_music3_chamber_pop.reviewed-provenance.json", - "sha256": "sha256:bytes:1b2c91a45c40a7d6621bee54083d3e02d9b843d1034c06e3284ff8f1a2e44270", - "publishDecision": "approved", - "holdReason": null, - "reviewedBy": "SOURAV DAS", - "reviewedAt": "2026-11-13", - "reviewClass": "per-file-maintainer-accepted-native-six-registration", - "humanApprovalPacketSHA256": "03b66b4631afb15032d62a1705331b56f6b12c4882c23945175ec92cc45a506f", - "publicationBasis": "Register the six approved assets now while Moonflower runs on Linux. Use Windows in parallel wherever possible, and keep the longer workflows separate for AMD cloud.", - "provenanceTemplateId": "minimax_music3_chamber_pop" + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", + "provenanceTemplateId": "pomegranate_on_blue_linen" }, { - "path": "template-gallery/reviews/ochre_paper_pavilion.original-provenance.json", - "sha256": "sha256:bytes:5fab665db87b17f2c4cea8e3903ac6df84232912fc2abaabee3bf3107542dc96", + "path": "template-gallery/reviews/pomegranate_on_blue_linen.quality-review.json", + "sha256": "sha256:bytes:412a9940d2e86768a91a54c8d1282d46ff638f86d94d6582e81738f32c2749ab", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/zai-org/CogView3-Plus-3B/tree/5d70e40732ac0efac98524c51a7fa9c82707f1e5", - "sourceRevision": "zai-org/CogView3-Plus-3B@5d70e40732ac0efac98524c51a7fa9c82707f1e5", + "sourceUrl": "https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14", + "sourceRevision": "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14", "sourceLicense": "MoDiff-authored Gallery metadata", "modelTerms": [ - "apache-2.0. https://huggingface.co/zai-org/CogView3-Plus-3B/tree/5d70e40732ac0efac98524c51a7fa9c82707f1e5" + "creativeml-openrail-m. https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14" ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "zai-org/CogView3-Plus-3B@5d70e40732ac0efac98524c51a7fa9c82707f1e5 https://huggingface.co/zai-org/CogView3-Plus-3B/tree/5d70e40732ac0efac98524c51a7fa9c82707f1e5" + "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14 https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", @@ -13211,26 +15668,26 @@ "reviewClass": "per-file-maintainer-accepted-retained-registration", "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", - "provenanceTemplateId": "ochre_paper_pavilion" + "provenanceTemplateId": "pomegranate_on_blue_linen" }, { - "path": "template-gallery/reviews/ochre_paper_pavilion.original-review.json", - "sha256": "sha256:bytes:6e31d3ec89e61e8b5722fb93db8f7bb7ea8328bf1c055028ba44c18affacf058", + "path": "template-gallery/reviews/pomegranate_on_blue_linen.retained-template-provenance.json", + "sha256": "sha256:bytes:15ad50f1686ae7dca486dba01974ad9155dbfc694b97b824314c257e316c185e", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/zai-org/CogView3-Plus-3B/tree/5d70e40732ac0efac98524c51a7fa9c82707f1e5", - "sourceRevision": "zai-org/CogView3-Plus-3B@5d70e40732ac0efac98524c51a7fa9c82707f1e5", + "sourceUrl": "https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14", + "sourceRevision": "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14", "sourceLicense": "MoDiff-authored Gallery metadata", "modelTerms": [ - "apache-2.0. https://huggingface.co/zai-org/CogView3-Plus-3B/tree/5d70e40732ac0efac98524c51a7fa9c82707f1e5" + "creativeml-openrail-m. https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14" ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "zai-org/CogView3-Plus-3B@5d70e40732ac0efac98524c51a7fa9c82707f1e5 https://huggingface.co/zai-org/CogView3-Plus-3B/tree/5d70e40732ac0efac98524c51a7fa9c82707f1e5" + "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14 https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", @@ -13238,26 +15695,26 @@ "reviewClass": "per-file-maintainer-accepted-retained-registration", "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", - "provenanceTemplateId": "ochre_paper_pavilion" + "provenanceTemplateId": "pomegranate_on_blue_linen" }, { - "path": "template-gallery/reviews/ochre_paper_pavilion.quality-review.json", - "sha256": "sha256:bytes:a635772ae5b26758629581843258dea266c7e85934eb222d4884b9a2522a93c1", + "path": "template-gallery/reviews/porcelain_on_slate_linen.original-provenance.json", + "sha256": "sha256:bytes:a20717be541cf1ac1dc84a8b7fdfd82f0dfedd5ec322ec1e257654a978ab1842", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/zai-org/CogView3-Plus-3B/tree/5d70e40732ac0efac98524c51a7fa9c82707f1e5", - "sourceRevision": "zai-org/CogView3-Plus-3B@5d70e40732ac0efac98524c51a7fa9c82707f1e5", + "sourceUrl": "https://huggingface.co/SimianLuo/LCM_Dreamshaper_v7/tree/a85df6a8bd976cdd08b4fd8f3b73f229c9e54df5", + "sourceRevision": "SimianLuo/LCM_Dreamshaper_v7@a85df6a8bd976cdd08b4fd8f3b73f229c9e54df5", "sourceLicense": "MoDiff-authored Gallery metadata", "modelTerms": [ - "apache-2.0. https://huggingface.co/zai-org/CogView3-Plus-3B/tree/5d70e40732ac0efac98524c51a7fa9c82707f1e5" + "mit. https://huggingface.co/SimianLuo/LCM_Dreamshaper_v7/tree/a85df6a8bd976cdd08b4fd8f3b73f229c9e54df5" ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "zai-org/CogView3-Plus-3B@5d70e40732ac0efac98524c51a7fa9c82707f1e5 https://huggingface.co/zai-org/CogView3-Plus-3B/tree/5d70e40732ac0efac98524c51a7fa9c82707f1e5" + "SimianLuo/LCM_Dreamshaper_v7@a85df6a8bd976cdd08b4fd8f3b73f229c9e54df5 https://huggingface.co/SimianLuo/LCM_Dreamshaper_v7/tree/a85df6a8bd976cdd08b4fd8f3b73f229c9e54df5" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", @@ -13265,26 +15722,26 @@ "reviewClass": "per-file-maintainer-accepted-retained-registration", "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", - "provenanceTemplateId": "ochre_paper_pavilion" + "provenanceTemplateId": "porcelain_on_slate_linen" }, { - "path": "template-gallery/reviews/ochre_paper_pavilion.retained-template-provenance.json", - "sha256": "sha256:bytes:9bd899fe903bcc05057c1ae452c641700d9c36b5001b499dadba6a6a07e36e80", + "path": "template-gallery/reviews/porcelain_on_slate_linen.original-review.json", + "sha256": "sha256:bytes:8f6972bd24388616958f18d53ba39b7a9626fd23ef2470a96e888d01599ee303", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/zai-org/CogView3-Plus-3B/tree/5d70e40732ac0efac98524c51a7fa9c82707f1e5", - "sourceRevision": "zai-org/CogView3-Plus-3B@5d70e40732ac0efac98524c51a7fa9c82707f1e5", + "sourceUrl": "https://huggingface.co/SimianLuo/LCM_Dreamshaper_v7/tree/a85df6a8bd976cdd08b4fd8f3b73f229c9e54df5", + "sourceRevision": "SimianLuo/LCM_Dreamshaper_v7@a85df6a8bd976cdd08b4fd8f3b73f229c9e54df5", "sourceLicense": "MoDiff-authored Gallery metadata", "modelTerms": [ - "apache-2.0. https://huggingface.co/zai-org/CogView3-Plus-3B/tree/5d70e40732ac0efac98524c51a7fa9c82707f1e5" + "mit. https://huggingface.co/SimianLuo/LCM_Dreamshaper_v7/tree/a85df6a8bd976cdd08b4fd8f3b73f229c9e54df5" ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "zai-org/CogView3-Plus-3B@5d70e40732ac0efac98524c51a7fa9c82707f1e5 https://huggingface.co/zai-org/CogView3-Plus-3B/tree/5d70e40732ac0efac98524c51a7fa9c82707f1e5" + "SimianLuo/LCM_Dreamshaper_v7@a85df6a8bd976cdd08b4fd8f3b73f229c9e54df5 https://huggingface.co/SimianLuo/LCM_Dreamshaper_v7/tree/a85df6a8bd976cdd08b4fd8f3b73f229c9e54df5" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", @@ -13292,134 +15749,134 @@ "reviewClass": "per-file-maintainer-accepted-retained-registration", "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", - "provenanceTemplateId": "ochre_paper_pavilion" + "provenanceTemplateId": "porcelain_on_slate_linen" }, { - "path": "template-gallery/reviews/omnigen_tulips_after_rain.original-provenance.json", - "sha256": "sha256:bytes:cd37ada4ad60fccb5fece5fe6ef03dd62ba7a8a66eb141579f8fa424b6265d71", + "path": "template-gallery/reviews/porcelain_on_slate_linen.quality-review.json", + "sha256": "sha256:bytes:aa85f397af28e1ca7da538dae08a96d1ff3452c5542f72419447fa5635a2aab3", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/Shitao/OmniGen-v1-diffusers/tree/016e2f61d12a98303f6bbdf122687694d7984268", - "sourceRevision": "Shitao/OmniGen-v1-diffusers@016e2f61d12a98303f6bbdf122687694d7984268", + "sourceUrl": "https://huggingface.co/SimianLuo/LCM_Dreamshaper_v7/tree/a85df6a8bd976cdd08b4fd8f3b73f229c9e54df5", + "sourceRevision": "SimianLuo/LCM_Dreamshaper_v7@a85df6a8bd976cdd08b4fd8f3b73f229c9e54df5", "sourceLicense": "MoDiff-authored Gallery metadata", "modelTerms": [ - "Publisher model terms at https://huggingface.co/Shitao/OmniGen-v1-diffusers/tree/016e2f61d12a98303f6bbdf122687694d7984268" + "mit. https://huggingface.co/SimianLuo/LCM_Dreamshaper_v7/tree/a85df6a8bd976cdd08b4fd8f3b73f229c9e54df5" ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "Shitao/OmniGen-v1-diffusers@016e2f61d12a98303f6bbdf122687694d7984268 https://huggingface.co/Shitao/OmniGen-v1-diffusers/tree/016e2f61d12a98303f6bbdf122687694d7984268" + "SimianLuo/LCM_Dreamshaper_v7@a85df6a8bd976cdd08b4fd8f3b73f229c9e54df5 https://huggingface.co/SimianLuo/LCM_Dreamshaper_v7/tree/a85df6a8bd976cdd08b4fd8f3b73f229c9e54df5" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "c2df9edb92f8ff905b6c9a138a285e67c621f3d2dfa3232f859aaf963b725aca", - "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", - "provenanceTemplateId": "omnigen_tulips_after_rain" + "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", + "provenanceTemplateId": "porcelain_on_slate_linen" }, { - "path": "template-gallery/reviews/omnigen_tulips_after_rain.original-review.json", - "sha256": "sha256:bytes:3353e7fabebfddfc0b47f2ebdd668c0ae01f426d9280d1e4ac03d307582b8cc3", + "path": "template-gallery/reviews/porcelain_on_slate_linen.retained-template-provenance.json", + "sha256": "sha256:bytes:e1d8fb3b54f1fc0c1d4e3560d9a7d829aaf81d22f3cd543809051b38b598a396", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/Shitao/OmniGen-v1-diffusers/tree/016e2f61d12a98303f6bbdf122687694d7984268", - "sourceRevision": "Shitao/OmniGen-v1-diffusers@016e2f61d12a98303f6bbdf122687694d7984268", + "sourceUrl": "https://huggingface.co/SimianLuo/LCM_Dreamshaper_v7/tree/a85df6a8bd976cdd08b4fd8f3b73f229c9e54df5", + "sourceRevision": "SimianLuo/LCM_Dreamshaper_v7@a85df6a8bd976cdd08b4fd8f3b73f229c9e54df5", "sourceLicense": "MoDiff-authored Gallery metadata", "modelTerms": [ - "Publisher model terms at https://huggingface.co/Shitao/OmniGen-v1-diffusers/tree/016e2f61d12a98303f6bbdf122687694d7984268" + "mit. https://huggingface.co/SimianLuo/LCM_Dreamshaper_v7/tree/a85df6a8bd976cdd08b4fd8f3b73f229c9e54df5" ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "Shitao/OmniGen-v1-diffusers@016e2f61d12a98303f6bbdf122687694d7984268 https://huggingface.co/Shitao/OmniGen-v1-diffusers/tree/016e2f61d12a98303f6bbdf122687694d7984268" + "SimianLuo/LCM_Dreamshaper_v7@a85df6a8bd976cdd08b4fd8f3b73f229c9e54df5 https://huggingface.co/SimianLuo/LCM_Dreamshaper_v7/tree/a85df6a8bd976cdd08b4fd8f3b73f229c9e54df5" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "c2df9edb92f8ff905b6c9a138a285e67c621f3d2dfa3232f859aaf963b725aca", - "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", - "provenanceTemplateId": "omnigen_tulips_after_rain" + "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", + "provenanceTemplateId": "porcelain_on_slate_linen" }, { - "path": "template-gallery/reviews/omnigen_tulips_after_rain.quality-review.json", - "sha256": "sha256:bytes:333fbf9b662ef072cf2621b37b814052af11c4e219a6640376ba53a2ee4c154f", + "path": "template-gallery/reviews/quiet_current.original-provenance.json", + "sha256": "sha256:bytes:6831c3577cf90fa0a6606497bd13844a9b25d4371f1b402efe9b099e8a58d42c", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/Shitao/OmniGen-v1-diffusers/tree/016e2f61d12a98303f6bbdf122687694d7984268", - "sourceRevision": "Shitao/OmniGen-v1-diffusers@016e2f61d12a98303f6bbdf122687694d7984268", + "sourceUrl": "https://huggingface.co/zai-org/CogView4-6B/tree/63a52b7f6dace7033380cd6da14d0915eab3e6b5", + "sourceRevision": "zai-org/CogView4-6B@63a52b7f6dace7033380cd6da14d0915eab3e6b5", "sourceLicense": "MoDiff-authored Gallery metadata", "modelTerms": [ - "Publisher model terms at https://huggingface.co/Shitao/OmniGen-v1-diffusers/tree/016e2f61d12a98303f6bbdf122687694d7984268" + "apache-2.0. https://huggingface.co/zai-org/CogView4-6B/tree/63a52b7f6dace7033380cd6da14d0915eab3e6b5" ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "Shitao/OmniGen-v1-diffusers@016e2f61d12a98303f6bbdf122687694d7984268 https://huggingface.co/Shitao/OmniGen-v1-diffusers/tree/016e2f61d12a98303f6bbdf122687694d7984268" + "zai-org/CogView4-6B@63a52b7f6dace7033380cd6da14d0915eab3e6b5 https://huggingface.co/zai-org/CogView4-6B/tree/63a52b7f6dace7033380cd6da14d0915eab3e6b5" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "c2df9edb92f8ff905b6c9a138a285e67c621f3d2dfa3232f859aaf963b725aca", - "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", - "provenanceTemplateId": "omnigen_tulips_after_rain" + "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", + "provenanceTemplateId": "quiet_current" }, { - "path": "template-gallery/reviews/omnigen_tulips_after_rain.retained-template-provenance.json", - "sha256": "sha256:bytes:143b1e03664e187b0815b81948843d05bf9bf2bc664f9c92b7cd78c3b7755245", + "path": "template-gallery/reviews/quiet_current.original-review.json", + "sha256": "sha256:bytes:c1596743b2612f0bfcda8cf8d21b3e6bec1c570710c73e19e82d7d6aaea9b61c", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/Shitao/OmniGen-v1-diffusers/tree/016e2f61d12a98303f6bbdf122687694d7984268", - "sourceRevision": "Shitao/OmniGen-v1-diffusers@016e2f61d12a98303f6bbdf122687694d7984268", + "sourceUrl": "https://huggingface.co/zai-org/CogView4-6B/tree/63a52b7f6dace7033380cd6da14d0915eab3e6b5", + "sourceRevision": "zai-org/CogView4-6B@63a52b7f6dace7033380cd6da14d0915eab3e6b5", "sourceLicense": "MoDiff-authored Gallery metadata", "modelTerms": [ - "Publisher model terms at https://huggingface.co/Shitao/OmniGen-v1-diffusers/tree/016e2f61d12a98303f6bbdf122687694d7984268" + "apache-2.0. https://huggingface.co/zai-org/CogView4-6B/tree/63a52b7f6dace7033380cd6da14d0915eab3e6b5" ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "Shitao/OmniGen-v1-diffusers@016e2f61d12a98303f6bbdf122687694d7984268 https://huggingface.co/Shitao/OmniGen-v1-diffusers/tree/016e2f61d12a98303f6bbdf122687694d7984268" + "zai-org/CogView4-6B@63a52b7f6dace7033380cd6da14d0915eab3e6b5 https://huggingface.co/zai-org/CogView4-6B/tree/63a52b7f6dace7033380cd6da14d0915eab3e6b5" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "c2df9edb92f8ff905b6c9a138a285e67c621f3d2dfa3232f859aaf963b725aca", - "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", - "provenanceTemplateId": "omnigen_tulips_after_rain" + "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", + "provenanceTemplateId": "quiet_current" }, { - "path": "template-gallery/reviews/persimmon_glaze.original-provenance.json", - "sha256": "sha256:bytes:dece98191d7fdcae395409a4ca8fb0f7eb215bc095660a8251d668f1dabd0054", + "path": "template-gallery/reviews/quiet_current.quality-review.json", + "sha256": "sha256:bytes:2387a8febca71a20ea416bb6db610de9c442c584f64bd913eb66cf3688d84773", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/Efficient-Large-Model/Sana_600M_1024px_diffusers/tree/28f3af7689de15f3883d5863059a2fca0aa9b829", - "sourceRevision": "Efficient-Large-Model/Sana_600M_1024px_diffusers@28f3af7689de15f3883d5863059a2fca0aa9b829", + "sourceUrl": "https://huggingface.co/zai-org/CogView4-6B/tree/63a52b7f6dace7033380cd6da14d0915eab3e6b5", + "sourceRevision": "zai-org/CogView4-6B@63a52b7f6dace7033380cd6da14d0915eab3e6b5", "sourceLicense": "MoDiff-authored Gallery metadata", "modelTerms": [ - "apache-2.0. https://huggingface.co/Efficient-Large-Model/Sana_600M_1024px_diffusers/tree/28f3af7689de15f3883d5863059a2fca0aa9b829" + "apache-2.0. https://huggingface.co/zai-org/CogView4-6B/tree/63a52b7f6dace7033380cd6da14d0915eab3e6b5" ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "Efficient-Large-Model/Sana_600M_1024px_diffusers@28f3af7689de15f3883d5863059a2fca0aa9b829 https://huggingface.co/Efficient-Large-Model/Sana_600M_1024px_diffusers/tree/28f3af7689de15f3883d5863059a2fca0aa9b829" + "zai-org/CogView4-6B@63a52b7f6dace7033380cd6da14d0915eab3e6b5 https://huggingface.co/zai-org/CogView4-6B/tree/63a52b7f6dace7033380cd6da14d0915eab3e6b5" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", @@ -13427,26 +15884,26 @@ "reviewClass": "per-file-maintainer-accepted-retained-registration", "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", - "provenanceTemplateId": "persimmon_glaze" + "provenanceTemplateId": "quiet_current" }, { - "path": "template-gallery/reviews/persimmon_glaze.original-review.json", - "sha256": "sha256:bytes:3c97652cd91cc4af5660429652241efbe6675b20ec59c7abc73c3f1c185b491a", + "path": "template-gallery/reviews/quiet_current.retained-template-provenance.json", + "sha256": "sha256:bytes:888aecdcb91637d93c268a9ad7b615ca545e7b73e2f1caf064c12bf4a0681655", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/Efficient-Large-Model/Sana_600M_1024px_diffusers/tree/28f3af7689de15f3883d5863059a2fca0aa9b829", - "sourceRevision": "Efficient-Large-Model/Sana_600M_1024px_diffusers@28f3af7689de15f3883d5863059a2fca0aa9b829", + "sourceUrl": "https://huggingface.co/zai-org/CogView4-6B/tree/63a52b7f6dace7033380cd6da14d0915eab3e6b5", + "sourceRevision": "zai-org/CogView4-6B@63a52b7f6dace7033380cd6da14d0915eab3e6b5", "sourceLicense": "MoDiff-authored Gallery metadata", "modelTerms": [ - "apache-2.0. https://huggingface.co/Efficient-Large-Model/Sana_600M_1024px_diffusers/tree/28f3af7689de15f3883d5863059a2fca0aa9b829" + "apache-2.0. https://huggingface.co/zai-org/CogView4-6B/tree/63a52b7f6dace7033380cd6da14d0915eab3e6b5" ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "Efficient-Large-Model/Sana_600M_1024px_diffusers@28f3af7689de15f3883d5863059a2fca0aa9b829 https://huggingface.co/Efficient-Large-Model/Sana_600M_1024px_diffusers/tree/28f3af7689de15f3883d5863059a2fca0aa9b829" + "zai-org/CogView4-6B@63a52b7f6dace7033380cd6da14d0915eab3e6b5 https://huggingface.co/zai-org/CogView4-6B/tree/63a52b7f6dace7033380cd6da14d0915eab3e6b5" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", @@ -13454,26 +15911,26 @@ "reviewClass": "per-file-maintainer-accepted-retained-registration", "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", - "provenanceTemplateId": "persimmon_glaze" + "provenanceTemplateId": "quiet_current" }, { - "path": "template-gallery/reviews/persimmon_glaze.quality-review.json", - "sha256": "sha256:bytes:9c9afc7223597ea8ee65889581c40f1e9f6a63a2bab6d7827b6af207353909ad", + "path": "template-gallery/reviews/quiet_kiln_at_daybreak.original-provenance.json", + "sha256": "sha256:bytes:a4b6c9950b2f2f6d185eb574ad4acddec21e2015fcf8d50bd14195ed24dcee97", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/Efficient-Large-Model/Sana_600M_1024px_diffusers/tree/28f3af7689de15f3883d5863059a2fca0aa9b829", - "sourceRevision": "Efficient-Large-Model/Sana_600M_1024px_diffusers@28f3af7689de15f3883d5863059a2fca0aa9b829", + "sourceUrl": "https://huggingface.co/NucleusAI/Nucleus-Image/tree/5e963db4fd0a65c7e4faf53ca2d4eca567c4dcfa", + "sourceRevision": "NucleusAI/Nucleus-Image@5e963db4fd0a65c7e4faf53ca2d4eca567c4dcfa", "sourceLicense": "MoDiff-authored Gallery metadata", "modelTerms": [ - "apache-2.0. https://huggingface.co/Efficient-Large-Model/Sana_600M_1024px_diffusers/tree/28f3af7689de15f3883d5863059a2fca0aa9b829" + "Apache-2.0 per the publisher at this revision. https://huggingface.co/NucleusAI/Nucleus-Image/tree/5e963db4fd0a65c7e4faf53ca2d4eca567c4dcfa" ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "Efficient-Large-Model/Sana_600M_1024px_diffusers@28f3af7689de15f3883d5863059a2fca0aa9b829 https://huggingface.co/Efficient-Large-Model/Sana_600M_1024px_diffusers/tree/28f3af7689de15f3883d5863059a2fca0aa9b829" + "NucleusAI/Nucleus-Image@5e963db4fd0a65c7e4faf53ca2d4eca567c4dcfa https://huggingface.co/NucleusAI/Nucleus-Image/tree/5e963db4fd0a65c7e4faf53ca2d4eca567c4dcfa" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", @@ -13481,26 +15938,26 @@ "reviewClass": "per-file-maintainer-accepted-retained-registration", "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", - "provenanceTemplateId": "persimmon_glaze" + "provenanceTemplateId": "quiet_kiln_at_daybreak" }, { - "path": "template-gallery/reviews/persimmon_glaze.retained-template-provenance.json", - "sha256": "sha256:bytes:4813f96f9332d04d4b8b0fc8d30d51e110ab8d157a1aef7c6172474f09bb490f", + "path": "template-gallery/reviews/quiet_kiln_at_daybreak.original-review.json", + "sha256": "sha256:bytes:b76ab6d15da10b9d6fb9ddfd83af0abf2f56ca962aac6ab65c78ae231a74d2bd", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/Efficient-Large-Model/Sana_600M_1024px_diffusers/tree/28f3af7689de15f3883d5863059a2fca0aa9b829", - "sourceRevision": "Efficient-Large-Model/Sana_600M_1024px_diffusers@28f3af7689de15f3883d5863059a2fca0aa9b829", + "sourceUrl": "https://huggingface.co/NucleusAI/Nucleus-Image/tree/5e963db4fd0a65c7e4faf53ca2d4eca567c4dcfa", + "sourceRevision": "NucleusAI/Nucleus-Image@5e963db4fd0a65c7e4faf53ca2d4eca567c4dcfa", "sourceLicense": "MoDiff-authored Gallery metadata", "modelTerms": [ - "apache-2.0. https://huggingface.co/Efficient-Large-Model/Sana_600M_1024px_diffusers/tree/28f3af7689de15f3883d5863059a2fca0aa9b829" + "Apache-2.0 per the publisher at this revision. https://huggingface.co/NucleusAI/Nucleus-Image/tree/5e963db4fd0a65c7e4faf53ca2d4eca567c4dcfa" ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "Efficient-Large-Model/Sana_600M_1024px_diffusers@28f3af7689de15f3883d5863059a2fca0aa9b829 https://huggingface.co/Efficient-Large-Model/Sana_600M_1024px_diffusers/tree/28f3af7689de15f3883d5863059a2fca0aa9b829" + "NucleusAI/Nucleus-Image@5e963db4fd0a65c7e4faf53ca2d4eca567c4dcfa https://huggingface.co/NucleusAI/Nucleus-Image/tree/5e963db4fd0a65c7e4faf53ca2d4eca567c4dcfa" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", @@ -13508,26 +15965,26 @@ "reviewClass": "per-file-maintainer-accepted-retained-registration", "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", - "provenanceTemplateId": "persimmon_glaze" + "provenanceTemplateId": "quiet_kiln_at_daybreak" }, { - "path": "template-gallery/reviews/pomegranate_on_blue_linen.original-provenance.json", - "sha256": "sha256:bytes:b9cecf2139bc5a0e5d6a3db462caf017c4d54482267592bf220f5015f7ae690b", + "path": "template-gallery/reviews/quiet_kiln_at_daybreak.quality-review.json", + "sha256": "sha256:bytes:b0118affa79b69e333c6a7977aa8c47328d570dd374aa212f0a371ec5a4a353b", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14", - "sourceRevision": "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14", + "sourceUrl": "https://huggingface.co/NucleusAI/Nucleus-Image/tree/5e963db4fd0a65c7e4faf53ca2d4eca567c4dcfa", + "sourceRevision": "NucleusAI/Nucleus-Image@5e963db4fd0a65c7e4faf53ca2d4eca567c4dcfa", "sourceLicense": "MoDiff-authored Gallery metadata", "modelTerms": [ - "creativeml-openrail-m. https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14" + "Apache-2.0 per the publisher at this revision. https://huggingface.co/NucleusAI/Nucleus-Image/tree/5e963db4fd0a65c7e4faf53ca2d4eca567c4dcfa" ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14 https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14" + "NucleusAI/Nucleus-Image@5e963db4fd0a65c7e4faf53ca2d4eca567c4dcfa https://huggingface.co/NucleusAI/Nucleus-Image/tree/5e963db4fd0a65c7e4faf53ca2d4eca567c4dcfa" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", @@ -13535,26 +15992,26 @@ "reviewClass": "per-file-maintainer-accepted-retained-registration", "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", - "provenanceTemplateId": "pomegranate_on_blue_linen" + "provenanceTemplateId": "quiet_kiln_at_daybreak" }, { - "path": "template-gallery/reviews/pomegranate_on_blue_linen.original-review.json", - "sha256": "sha256:bytes:752b7cc115a3794d1066785e887b73e3eed5f3bb6735ef5ec89c45035b20d7e4", + "path": "template-gallery/reviews/quiet_kiln_at_daybreak.retained-template-provenance.json", + "sha256": "sha256:bytes:ae5db3f69f0a3ae1ad178ca986819e1b8cb1ccdf50c9b3850d5ec2e7d745ba8d", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14", - "sourceRevision": "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14", + "sourceUrl": "https://huggingface.co/NucleusAI/Nucleus-Image/tree/5e963db4fd0a65c7e4faf53ca2d4eca567c4dcfa", + "sourceRevision": "NucleusAI/Nucleus-Image@5e963db4fd0a65c7e4faf53ca2d4eca567c4dcfa", "sourceLicense": "MoDiff-authored Gallery metadata", "modelTerms": [ - "creativeml-openrail-m. https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14" + "Apache-2.0 per the publisher at this revision. https://huggingface.co/NucleusAI/Nucleus-Image/tree/5e963db4fd0a65c7e4faf53ca2d4eca567c4dcfa" ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14 https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14" + "NucleusAI/Nucleus-Image@5e963db4fd0a65c7e4faf53ca2d4eca567c4dcfa https://huggingface.co/NucleusAI/Nucleus-Image/tree/5e963db4fd0a65c7e4faf53ca2d4eca567c4dcfa" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", @@ -13562,429 +16019,483 @@ "reviewClass": "per-file-maintainer-accepted-retained-registration", "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", - "provenanceTemplateId": "pomegranate_on_blue_linen" + "provenanceTemplateId": "quiet_kiln_at_daybreak" }, { - "path": "template-gallery/reviews/pomegranate_on_blue_linen.quality-review.json", - "sha256": "sha256:bytes:412a9940d2e86768a91a54c8d1282d46ff638f86d94d6582e81738f32c2749ab", + "path": "template-gallery/reviews/qwen_2511_pale_amber_on_limestone.original-provenance.json", + "sha256": "sha256:bytes:92184da315494eafd5ffb5f97e0b6b16b9adc7e2900cfe2159a74eb95f2c664d", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14", - "sourceRevision": "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14", + "sourceUrl": "https://huggingface.co/Qwen/Qwen-Image-Edit-2511/tree/6f3ccc0b56e431dc6a0c2b2039706d7d26f22cb9", + "sourceRevision": "Qwen/Qwen-Image-Edit-2511@6f3ccc0b56e431dc6a0c2b2039706d7d26f22cb9", "sourceLicense": "MoDiff-authored Gallery metadata", "modelTerms": [ - "creativeml-openrail-m. https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14" + "Publisher model terms at https://huggingface.co/Qwen/Qwen-Image-Edit-2511/tree/6f3ccc0b56e431dc6a0c2b2039706d7d26f22cb9" ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14 https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14" + "Qwen/Qwen-Image-Edit-2511@6f3ccc0b56e431dc6a0c2b2039706d7d26f22cb9 https://huggingface.co/Qwen/Qwen-Image-Edit-2511/tree/6f3ccc0b56e431dc6a0c2b2039706d7d26f22cb9" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", - "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", - "provenanceTemplateId": "pomegranate_on_blue_linen" + "humanApprovalPacketSHA256": "60b01498a2df5f4e4622cdc2f9a43c83d187820780d2425a19718c13707db501", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "qwen_2511_pale_amber_on_limestone" }, { - "path": "template-gallery/reviews/pomegranate_on_blue_linen.retained-template-provenance.json", - "sha256": "sha256:bytes:15ad50f1686ae7dca486dba01974ad9155dbfc694b97b824314c257e316c185e", + "path": "template-gallery/reviews/qwen_2511_pale_amber_on_limestone.original-review.json", + "sha256": "sha256:bytes:c927ac13e8f20facd97ba72db03ae4fc658d5b2b5120a9473d2bcd280e01356c", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14", - "sourceRevision": "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14", + "sourceUrl": "https://huggingface.co/Qwen/Qwen-Image-Edit-2511/tree/6f3ccc0b56e431dc6a0c2b2039706d7d26f22cb9", + "sourceRevision": "Qwen/Qwen-Image-Edit-2511@6f3ccc0b56e431dc6a0c2b2039706d7d26f22cb9", "sourceLicense": "MoDiff-authored Gallery metadata", "modelTerms": [ - "creativeml-openrail-m. https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14" + "Publisher model terms at https://huggingface.co/Qwen/Qwen-Image-Edit-2511/tree/6f3ccc0b56e431dc6a0c2b2039706d7d26f22cb9" ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14 https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14" + "Qwen/Qwen-Image-Edit-2511@6f3ccc0b56e431dc6a0c2b2039706d7d26f22cb9 https://huggingface.co/Qwen/Qwen-Image-Edit-2511/tree/6f3ccc0b56e431dc6a0c2b2039706d7d26f22cb9" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", - "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", - "provenanceTemplateId": "pomegranate_on_blue_linen" + "humanApprovalPacketSHA256": "60b01498a2df5f4e4622cdc2f9a43c83d187820780d2425a19718c13707db501", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "qwen_2511_pale_amber_on_limestone" }, { - "path": "template-gallery/reviews/porcelain_on_slate_linen.original-provenance.json", - "sha256": "sha256:bytes:a20717be541cf1ac1dc84a8b7fdfd82f0dfedd5ec322ec1e257654a978ab1842", + "path": "template-gallery/reviews/qwen_2511_pale_amber_on_limestone.quality-review.json", + "sha256": "sha256:bytes:1448c1f4aeddd0ca2238d62a91db71644d723172bad44eee0f62618f89580160", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/SimianLuo/LCM_Dreamshaper_v7/tree/a85df6a8bd976cdd08b4fd8f3b73f229c9e54df5", - "sourceRevision": "SimianLuo/LCM_Dreamshaper_v7@a85df6a8bd976cdd08b4fd8f3b73f229c9e54df5", + "sourceUrl": "https://huggingface.co/Qwen/Qwen-Image-Edit-2511/tree/6f3ccc0b56e431dc6a0c2b2039706d7d26f22cb9", + "sourceRevision": "Qwen/Qwen-Image-Edit-2511@6f3ccc0b56e431dc6a0c2b2039706d7d26f22cb9", "sourceLicense": "MoDiff-authored Gallery metadata", "modelTerms": [ - "mit. https://huggingface.co/SimianLuo/LCM_Dreamshaper_v7/tree/a85df6a8bd976cdd08b4fd8f3b73f229c9e54df5" + "Publisher model terms at https://huggingface.co/Qwen/Qwen-Image-Edit-2511/tree/6f3ccc0b56e431dc6a0c2b2039706d7d26f22cb9" ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "SimianLuo/LCM_Dreamshaper_v7@a85df6a8bd976cdd08b4fd8f3b73f229c9e54df5 https://huggingface.co/SimianLuo/LCM_Dreamshaper_v7/tree/a85df6a8bd976cdd08b4fd8f3b73f229c9e54df5" + "Qwen/Qwen-Image-Edit-2511@6f3ccc0b56e431dc6a0c2b2039706d7d26f22cb9 https://huggingface.co/Qwen/Qwen-Image-Edit-2511/tree/6f3ccc0b56e431dc6a0c2b2039706d7d26f22cb9" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", - "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", - "provenanceTemplateId": "porcelain_on_slate_linen" + "humanApprovalPacketSHA256": "60b01498a2df5f4e4622cdc2f9a43c83d187820780d2425a19718c13707db501", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "qwen_2511_pale_amber_on_limestone" }, { - "path": "template-gallery/reviews/porcelain_on_slate_linen.original-review.json", - "sha256": "sha256:bytes:8f6972bd24388616958f18d53ba39b7a9626fd23ef2470a96e888d01599ee303", + "path": "template-gallery/reviews/qwen_2511_pale_amber_on_limestone.retained-template-provenance.json", + "sha256": "sha256:bytes:0d91cc6e5417f0defc5ef7615cc85f19de32bf6732e01e75d6051b94be8df0d8", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/SimianLuo/LCM_Dreamshaper_v7/tree/a85df6a8bd976cdd08b4fd8f3b73f229c9e54df5", - "sourceRevision": "SimianLuo/LCM_Dreamshaper_v7@a85df6a8bd976cdd08b4fd8f3b73f229c9e54df5", + "sourceUrl": "https://huggingface.co/Qwen/Qwen-Image-Edit-2511/tree/6f3ccc0b56e431dc6a0c2b2039706d7d26f22cb9", + "sourceRevision": "Qwen/Qwen-Image-Edit-2511@6f3ccc0b56e431dc6a0c2b2039706d7d26f22cb9", "sourceLicense": "MoDiff-authored Gallery metadata", "modelTerms": [ - "mit. https://huggingface.co/SimianLuo/LCM_Dreamshaper_v7/tree/a85df6a8bd976cdd08b4fd8f3b73f229c9e54df5" + "Publisher model terms at https://huggingface.co/Qwen/Qwen-Image-Edit-2511/tree/6f3ccc0b56e431dc6a0c2b2039706d7d26f22cb9" ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "SimianLuo/LCM_Dreamshaper_v7@a85df6a8bd976cdd08b4fd8f3b73f229c9e54df5 https://huggingface.co/SimianLuo/LCM_Dreamshaper_v7/tree/a85df6a8bd976cdd08b4fd8f3b73f229c9e54df5" + "Qwen/Qwen-Image-Edit-2511@6f3ccc0b56e431dc6a0c2b2039706d7d26f22cb9 https://huggingface.co/Qwen/Qwen-Image-Edit-2511/tree/6f3ccc0b56e431dc6a0c2b2039706d7d26f22cb9" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", - "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", - "provenanceTemplateId": "porcelain_on_slate_linen" + "humanApprovalPacketSHA256": "60b01498a2df5f4e4622cdc2f9a43c83d187820780d2425a19718c13707db501", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "qwen_2511_pale_amber_on_limestone" }, { - "path": "template-gallery/reviews/porcelain_on_slate_linen.quality-review.json", - "sha256": "sha256:bytes:aa85f397af28e1ca7da538dae08a96d1ff3452c5542f72419447fa5635a2aab3", + "path": "template-gallery/reviews/qwen_2512_cobalt_backdrop_repair.original-provenance.json", + "sha256": "sha256:bytes:aff76ebb3392dc74718791d4d3e964e12ed333818e3e3004c2b00efdb1065cda", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/SimianLuo/LCM_Dreamshaper_v7/tree/a85df6a8bd976cdd08b4fd8f3b73f229c9e54df5", - "sourceRevision": "SimianLuo/LCM_Dreamshaper_v7@a85df6a8bd976cdd08b4fd8f3b73f229c9e54df5", + "sourceUrl": "https://huggingface.co/Qwen/Qwen-Image-2512/tree/25468b98e3276ca6700de15c6628e51b7de54a26", + "sourceRevision": "Qwen/Qwen-Image-2512@25468b98e3276ca6700de15c6628e51b7de54a26", "sourceLicense": "MoDiff-authored Gallery metadata", "modelTerms": [ - "mit. https://huggingface.co/SimianLuo/LCM_Dreamshaper_v7/tree/a85df6a8bd976cdd08b4fd8f3b73f229c9e54df5" + "Publisher model terms at https://huggingface.co/Qwen/Qwen-Image-2512/tree/25468b98e3276ca6700de15c6628e51b7de54a26" ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "SimianLuo/LCM_Dreamshaper_v7@a85df6a8bd976cdd08b4fd8f3b73f229c9e54df5 https://huggingface.co/SimianLuo/LCM_Dreamshaper_v7/tree/a85df6a8bd976cdd08b4fd8f3b73f229c9e54df5" + "Qwen/Qwen-Image-2512@25468b98e3276ca6700de15c6628e51b7de54a26 https://huggingface.co/Qwen/Qwen-Image-2512/tree/25468b98e3276ca6700de15c6628e51b7de54a26" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", - "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", - "provenanceTemplateId": "porcelain_on_slate_linen" + "humanApprovalPacketSHA256": "60b01498a2df5f4e4622cdc2f9a43c83d187820780d2425a19718c13707db501", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "qwen_2512_cobalt_backdrop_repair" }, { - "path": "template-gallery/reviews/porcelain_on_slate_linen.retained-template-provenance.json", - "sha256": "sha256:bytes:e1d8fb3b54f1fc0c1d4e3560d9a7d829aaf81d22f3cd543809051b38b598a396", + "path": "template-gallery/reviews/qwen_2512_cobalt_backdrop_repair.original-review.json", + "sha256": "sha256:bytes:87b770beaa2fa2fbbc469450467e7ba7fd0c1f79e227cc24ba1e226e8b4af900", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/SimianLuo/LCM_Dreamshaper_v7/tree/a85df6a8bd976cdd08b4fd8f3b73f229c9e54df5", - "sourceRevision": "SimianLuo/LCM_Dreamshaper_v7@a85df6a8bd976cdd08b4fd8f3b73f229c9e54df5", + "sourceUrl": "https://huggingface.co/Qwen/Qwen-Image-2512/tree/25468b98e3276ca6700de15c6628e51b7de54a26", + "sourceRevision": "Qwen/Qwen-Image-2512@25468b98e3276ca6700de15c6628e51b7de54a26", "sourceLicense": "MoDiff-authored Gallery metadata", "modelTerms": [ - "mit. https://huggingface.co/SimianLuo/LCM_Dreamshaper_v7/tree/a85df6a8bd976cdd08b4fd8f3b73f229c9e54df5" + "Publisher model terms at https://huggingface.co/Qwen/Qwen-Image-2512/tree/25468b98e3276ca6700de15c6628e51b7de54a26" ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "SimianLuo/LCM_Dreamshaper_v7@a85df6a8bd976cdd08b4fd8f3b73f229c9e54df5 https://huggingface.co/SimianLuo/LCM_Dreamshaper_v7/tree/a85df6a8bd976cdd08b4fd8f3b73f229c9e54df5" + "Qwen/Qwen-Image-2512@25468b98e3276ca6700de15c6628e51b7de54a26 https://huggingface.co/Qwen/Qwen-Image-2512/tree/25468b98e3276ca6700de15c6628e51b7de54a26" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", - "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", - "provenanceTemplateId": "porcelain_on_slate_linen" + "humanApprovalPacketSHA256": "60b01498a2df5f4e4622cdc2f9a43c83d187820780d2425a19718c13707db501", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "qwen_2512_cobalt_backdrop_repair" }, { - "path": "template-gallery/reviews/quiet_current.original-provenance.json", - "sha256": "sha256:bytes:6831c3577cf90fa0a6606497bd13844a9b25d4371f1b402efe9b099e8a58d42c", + "path": "template-gallery/reviews/qwen_2512_cobalt_backdrop_repair.quality-review.json", + "sha256": "sha256:bytes:cfe7231165788dcb08f50c7d45ab5f0953fd96c92da8d1ecd428af7d0a20cbce", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/zai-org/CogView4-6B/tree/63a52b7f6dace7033380cd6da14d0915eab3e6b5", - "sourceRevision": "zai-org/CogView4-6B@63a52b7f6dace7033380cd6da14d0915eab3e6b5", + "sourceUrl": "https://huggingface.co/Qwen/Qwen-Image-2512/tree/25468b98e3276ca6700de15c6628e51b7de54a26", + "sourceRevision": "Qwen/Qwen-Image-2512@25468b98e3276ca6700de15c6628e51b7de54a26", "sourceLicense": "MoDiff-authored Gallery metadata", "modelTerms": [ - "apache-2.0. https://huggingface.co/zai-org/CogView4-6B/tree/63a52b7f6dace7033380cd6da14d0915eab3e6b5" + "Publisher model terms at https://huggingface.co/Qwen/Qwen-Image-2512/tree/25468b98e3276ca6700de15c6628e51b7de54a26" ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "zai-org/CogView4-6B@63a52b7f6dace7033380cd6da14d0915eab3e6b5 https://huggingface.co/zai-org/CogView4-6B/tree/63a52b7f6dace7033380cd6da14d0915eab3e6b5" + "Qwen/Qwen-Image-2512@25468b98e3276ca6700de15c6628e51b7de54a26 https://huggingface.co/Qwen/Qwen-Image-2512/tree/25468b98e3276ca6700de15c6628e51b7de54a26" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", - "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", - "provenanceTemplateId": "quiet_current" + "humanApprovalPacketSHA256": "60b01498a2df5f4e4622cdc2f9a43c83d187820780d2425a19718c13707db501", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "qwen_2512_cobalt_backdrop_repair" }, { - "path": "template-gallery/reviews/quiet_current.original-review.json", - "sha256": "sha256:bytes:c1596743b2612f0bfcda8cf8d21b3e6bec1c570710c73e19e82d7d6aaea9b61c", + "path": "template-gallery/reviews/qwen_2512_cobalt_backdrop_repair.retained-template-provenance.json", + "sha256": "sha256:bytes:7303db8a55bb4bfb9947f5d501be2907de1da8ebe0e8972578567e04d33ad336", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/zai-org/CogView4-6B/tree/63a52b7f6dace7033380cd6da14d0915eab3e6b5", - "sourceRevision": "zai-org/CogView4-6B@63a52b7f6dace7033380cd6da14d0915eab3e6b5", + "sourceUrl": "https://huggingface.co/Qwen/Qwen-Image-2512/tree/25468b98e3276ca6700de15c6628e51b7de54a26", + "sourceRevision": "Qwen/Qwen-Image-2512@25468b98e3276ca6700de15c6628e51b7de54a26", "sourceLicense": "MoDiff-authored Gallery metadata", "modelTerms": [ - "apache-2.0. https://huggingface.co/zai-org/CogView4-6B/tree/63a52b7f6dace7033380cd6da14d0915eab3e6b5" + "Publisher model terms at https://huggingface.co/Qwen/Qwen-Image-2512/tree/25468b98e3276ca6700de15c6628e51b7de54a26" ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "zai-org/CogView4-6B@63a52b7f6dace7033380cd6da14d0915eab3e6b5 https://huggingface.co/zai-org/CogView4-6B/tree/63a52b7f6dace7033380cd6da14d0915eab3e6b5" + "Qwen/Qwen-Image-2512@25468b98e3276ca6700de15c6628e51b7de54a26 https://huggingface.co/Qwen/Qwen-Image-2512/tree/25468b98e3276ca6700de15c6628e51b7de54a26" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", - "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", - "provenanceTemplateId": "quiet_current" + "humanApprovalPacketSHA256": "60b01498a2df5f4e4622cdc2f9a43c83d187820780d2425a19718c13707db501", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "qwen_2512_cobalt_backdrop_repair" }, { - "path": "template-gallery/reviews/quiet_current.quality-review.json", - "sha256": "sha256:bytes:2387a8febca71a20ea416bb6db610de9c442c584f64bd913eb66cf3688d84773", + "path": "template-gallery/reviews/qwen_bookshop_gouache.original-provenance.json", + "sha256": "sha256:bytes:4af138819ecda66dc7754a8ea6886ca1bb324540a235b73b14c3d2bb547e58de", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/zai-org/CogView4-6B/tree/63a52b7f6dace7033380cd6da14d0915eab3e6b5", - "sourceRevision": "zai-org/CogView4-6B@63a52b7f6dace7033380cd6da14d0915eab3e6b5", + "sourceUrl": "https://huggingface.co/Qwen/Qwen-Image-2512/tree/25468b98e3276ca6700de15c6628e51b7de54a26", + "sourceRevision": "Qwen/Qwen-Image-2512@25468b98e3276ca6700de15c6628e51b7de54a26", "sourceLicense": "MoDiff-authored Gallery metadata", "modelTerms": [ - "apache-2.0. https://huggingface.co/zai-org/CogView4-6B/tree/63a52b7f6dace7033380cd6da14d0915eab3e6b5" + "Publisher model terms at https://huggingface.co/Qwen/Qwen-Image-2512/tree/25468b98e3276ca6700de15c6628e51b7de54a26" ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "zai-org/CogView4-6B@63a52b7f6dace7033380cd6da14d0915eab3e6b5 https://huggingface.co/zai-org/CogView4-6B/tree/63a52b7f6dace7033380cd6da14d0915eab3e6b5" + "Qwen/Qwen-Image-2512@25468b98e3276ca6700de15c6628e51b7de54a26 https://huggingface.co/Qwen/Qwen-Image-2512/tree/25468b98e3276ca6700de15c6628e51b7de54a26" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", - "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", - "provenanceTemplateId": "quiet_current" + "humanApprovalPacketSHA256": "60b01498a2df5f4e4622cdc2f9a43c83d187820780d2425a19718c13707db501", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "qwen_bookshop_gouache" }, { - "path": "template-gallery/reviews/quiet_current.retained-template-provenance.json", - "sha256": "sha256:bytes:888aecdcb91637d93c268a9ad7b615ca545e7b73e2f1caf064c12bf4a0681655", + "path": "template-gallery/reviews/qwen_bookshop_gouache.original-review.json", + "sha256": "sha256:bytes:3b34b326d7200df17d7e8ef42964bf5398dd8216fef84e09ec974c7007101271", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/zai-org/CogView4-6B/tree/63a52b7f6dace7033380cd6da14d0915eab3e6b5", - "sourceRevision": "zai-org/CogView4-6B@63a52b7f6dace7033380cd6da14d0915eab3e6b5", + "sourceUrl": "https://huggingface.co/Qwen/Qwen-Image-2512/tree/25468b98e3276ca6700de15c6628e51b7de54a26", + "sourceRevision": "Qwen/Qwen-Image-2512@25468b98e3276ca6700de15c6628e51b7de54a26", "sourceLicense": "MoDiff-authored Gallery metadata", "modelTerms": [ - "apache-2.0. https://huggingface.co/zai-org/CogView4-6B/tree/63a52b7f6dace7033380cd6da14d0915eab3e6b5" + "Publisher model terms at https://huggingface.co/Qwen/Qwen-Image-2512/tree/25468b98e3276ca6700de15c6628e51b7de54a26" ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "zai-org/CogView4-6B@63a52b7f6dace7033380cd6da14d0915eab3e6b5 https://huggingface.co/zai-org/CogView4-6B/tree/63a52b7f6dace7033380cd6da14d0915eab3e6b5" + "Qwen/Qwen-Image-2512@25468b98e3276ca6700de15c6628e51b7de54a26 https://huggingface.co/Qwen/Qwen-Image-2512/tree/25468b98e3276ca6700de15c6628e51b7de54a26" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", - "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", - "provenanceTemplateId": "quiet_current" + "humanApprovalPacketSHA256": "60b01498a2df5f4e4622cdc2f9a43c83d187820780d2425a19718c13707db501", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "qwen_bookshop_gouache" }, { - "path": "template-gallery/reviews/quiet_kiln_at_daybreak.original-provenance.json", - "sha256": "sha256:bytes:a4b6c9950b2f2f6d185eb574ad4acddec21e2015fcf8d50bd14195ed24dcee97", + "path": "template-gallery/reviews/qwen_bookshop_gouache.quality-review.json", + "sha256": "sha256:bytes:94fe1a1dd8188e3f6860c7154e414c605cc8f94e79524fa5dc6f0bb557f23a98", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/NucleusAI/Nucleus-Image/tree/5e963db4fd0a65c7e4faf53ca2d4eca567c4dcfa", - "sourceRevision": "NucleusAI/Nucleus-Image@5e963db4fd0a65c7e4faf53ca2d4eca567c4dcfa", + "sourceUrl": "https://huggingface.co/Qwen/Qwen-Image-2512/tree/25468b98e3276ca6700de15c6628e51b7de54a26", + "sourceRevision": "Qwen/Qwen-Image-2512@25468b98e3276ca6700de15c6628e51b7de54a26", "sourceLicense": "MoDiff-authored Gallery metadata", "modelTerms": [ - "Apache-2.0 per the publisher at this revision. https://huggingface.co/NucleusAI/Nucleus-Image/tree/5e963db4fd0a65c7e4faf53ca2d4eca567c4dcfa" + "Publisher model terms at https://huggingface.co/Qwen/Qwen-Image-2512/tree/25468b98e3276ca6700de15c6628e51b7de54a26" ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "NucleusAI/Nucleus-Image@5e963db4fd0a65c7e4faf53ca2d4eca567c4dcfa https://huggingface.co/NucleusAI/Nucleus-Image/tree/5e963db4fd0a65c7e4faf53ca2d4eca567c4dcfa" + "Qwen/Qwen-Image-2512@25468b98e3276ca6700de15c6628e51b7de54a26 https://huggingface.co/Qwen/Qwen-Image-2512/tree/25468b98e3276ca6700de15c6628e51b7de54a26" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", - "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", - "provenanceTemplateId": "quiet_kiln_at_daybreak" + "humanApprovalPacketSHA256": "60b01498a2df5f4e4622cdc2f9a43c83d187820780d2425a19718c13707db501", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "qwen_bookshop_gouache" }, { - "path": "template-gallery/reviews/quiet_kiln_at_daybreak.original-review.json", - "sha256": "sha256:bytes:b76ab6d15da10b9d6fb9ddfd83af0abf2f56ca962aac6ab65c78ae231a74d2bd", + "path": "template-gallery/reviews/qwen_bookshop_gouache.retained-template-provenance.json", + "sha256": "sha256:bytes:7b9356ca691735f772c1a0e914393459401f84cd012e782e4f0d940fac255648", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/NucleusAI/Nucleus-Image/tree/5e963db4fd0a65c7e4faf53ca2d4eca567c4dcfa", - "sourceRevision": "NucleusAI/Nucleus-Image@5e963db4fd0a65c7e4faf53ca2d4eca567c4dcfa", + "sourceUrl": "https://huggingface.co/Qwen/Qwen-Image-2512/tree/25468b98e3276ca6700de15c6628e51b7de54a26", + "sourceRevision": "Qwen/Qwen-Image-2512@25468b98e3276ca6700de15c6628e51b7de54a26", "sourceLicense": "MoDiff-authored Gallery metadata", "modelTerms": [ - "Apache-2.0 per the publisher at this revision. https://huggingface.co/NucleusAI/Nucleus-Image/tree/5e963db4fd0a65c7e4faf53ca2d4eca567c4dcfa" + "Publisher model terms at https://huggingface.co/Qwen/Qwen-Image-2512/tree/25468b98e3276ca6700de15c6628e51b7de54a26" ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "NucleusAI/Nucleus-Image@5e963db4fd0a65c7e4faf53ca2d4eca567c4dcfa https://huggingface.co/NucleusAI/Nucleus-Image/tree/5e963db4fd0a65c7e4faf53ca2d4eca567c4dcfa" + "Qwen/Qwen-Image-2512@25468b98e3276ca6700de15c6628e51b7de54a26 https://huggingface.co/Qwen/Qwen-Image-2512/tree/25468b98e3276ca6700de15c6628e51b7de54a26" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", - "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", - "provenanceTemplateId": "quiet_kiln_at_daybreak" + "humanApprovalPacketSHA256": "60b01498a2df5f4e4622cdc2f9a43c83d187820780d2425a19718c13707db501", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "qwen_bookshop_gouache" }, { - "path": "template-gallery/reviews/quiet_kiln_at_daybreak.quality-review.json", - "sha256": "sha256:bytes:b0118affa79b69e333c6a7977aa8c47328d570dd374aa212f0a371ec5a4a353b", + "path": "template-gallery/reviews/qwen_character_angles.quality-review.json", + "sha256": "sha256:bytes:748fb8b3839911be02f80185d329b5b028456c78916da6ad07349e0086b0f106", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers", + "creationMethod": "MoDiff-authored technical provenance, Gallery manifest or quality review for the explicitly approved native Linux Qwen character angle sheet", + "sourceUrl": null, + "sourceRevision": null, + "sourceLicense": "Apache-2.0 project-authored metadata; generated-media terms remain in their exact per-file record", + "modelTerms": [], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [], + "assetLicense": "Apache-2.0", + "reviewedBy": "SOURAV DAS", + "reviewedAt": "2026-11-10", + "reviewClass": "per-file-human-approved-qwen-angle-native-image-registration", + "provenanceTemplateId": "qwen_character_angles", + "humanApprovalPacketSHA256": "9ca0bb197dbad8a2a27b25cef64aff67875aa6ea6f69fcb3bff581aae35b43d5" + }, + { + "path": "template-gallery/reviews/qwen_character_angles.reviewed-provenance.json", + "sha256": "sha256:bytes:a4d880bcad84c21fe3787001fceb2f9b2f4042fe83e1e2c6733d0f578a586c66", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers", + "creationMethod": "MoDiff-authored technical provenance, Gallery manifest or quality review for the explicitly approved native Linux Qwen character angle sheet", + "sourceUrl": null, + "sourceRevision": null, + "sourceLicense": "Apache-2.0 project-authored metadata; generated-media terms remain in their exact per-file record", + "modelTerms": [], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [], + "assetLicense": "Apache-2.0", + "reviewedBy": "SOURAV DAS", + "reviewedAt": "2026-11-10", + "reviewClass": "per-file-human-approved-qwen-angle-native-image-registration", + "provenanceTemplateId": "qwen_character_angles", + "humanApprovalPacketSHA256": "9ca0bb197dbad8a2a27b25cef64aff67875aa6ea6f69fcb3bff581aae35b43d5" + }, + { + "path": "template-gallery/reviews/qwen_cobalt_on_charcoal_slate.original-provenance.json", + "sha256": "sha256:bytes:e792e4d45eff40be63575b5d1b983d59aabdecf004890c98e828f6b58a1d549b", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/NucleusAI/Nucleus-Image/tree/5e963db4fd0a65c7e4faf53ca2d4eca567c4dcfa", - "sourceRevision": "NucleusAI/Nucleus-Image@5e963db4fd0a65c7e4faf53ca2d4eca567c4dcfa", + "sourceUrl": "https://huggingface.co/Qwen/Qwen-Image-Edit/tree/ac7f9318f633fc4b5778c59367c8128225f1e3de", + "sourceRevision": "Qwen/Qwen-Image-Edit@ac7f9318f633fc4b5778c59367c8128225f1e3de", "sourceLicense": "MoDiff-authored Gallery metadata", "modelTerms": [ - "Apache-2.0 per the publisher at this revision. https://huggingface.co/NucleusAI/Nucleus-Image/tree/5e963db4fd0a65c7e4faf53ca2d4eca567c4dcfa" + "Publisher model terms at https://huggingface.co/Qwen/Qwen-Image-Edit/tree/ac7f9318f633fc4b5778c59367c8128225f1e3de" ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "NucleusAI/Nucleus-Image@5e963db4fd0a65c7e4faf53ca2d4eca567c4dcfa https://huggingface.co/NucleusAI/Nucleus-Image/tree/5e963db4fd0a65c7e4faf53ca2d4eca567c4dcfa" + "Qwen/Qwen-Image-Edit@ac7f9318f633fc4b5778c59367c8128225f1e3de https://huggingface.co/Qwen/Qwen-Image-Edit/tree/ac7f9318f633fc4b5778c59367c8128225f1e3de" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", - "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", - "provenanceTemplateId": "quiet_kiln_at_daybreak" + "humanApprovalPacketSHA256": "60b01498a2df5f4e4622cdc2f9a43c83d187820780d2425a19718c13707db501", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "qwen_cobalt_on_charcoal_slate" }, { - "path": "template-gallery/reviews/quiet_kiln_at_daybreak.retained-template-provenance.json", - "sha256": "sha256:bytes:ae5db3f69f0a3ae1ad178ca986819e1b8cb1ccdf50c9b3850d5ec2e7d745ba8d", + "path": "template-gallery/reviews/qwen_cobalt_on_charcoal_slate.original-review.json", + "sha256": "sha256:bytes:d2caf52b07dff116307a43afe1f087fe17cb98f2daa8549ec5e5c2331e0fac2f", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/NucleusAI/Nucleus-Image/tree/5e963db4fd0a65c7e4faf53ca2d4eca567c4dcfa", - "sourceRevision": "NucleusAI/Nucleus-Image@5e963db4fd0a65c7e4faf53ca2d4eca567c4dcfa", + "sourceUrl": "https://huggingface.co/Qwen/Qwen-Image-Edit/tree/ac7f9318f633fc4b5778c59367c8128225f1e3de", + "sourceRevision": "Qwen/Qwen-Image-Edit@ac7f9318f633fc4b5778c59367c8128225f1e3de", "sourceLicense": "MoDiff-authored Gallery metadata", "modelTerms": [ - "Apache-2.0 per the publisher at this revision. https://huggingface.co/NucleusAI/Nucleus-Image/tree/5e963db4fd0a65c7e4faf53ca2d4eca567c4dcfa" + "Publisher model terms at https://huggingface.co/Qwen/Qwen-Image-Edit/tree/ac7f9318f633fc4b5778c59367c8128225f1e3de" ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "NucleusAI/Nucleus-Image@5e963db4fd0a65c7e4faf53ca2d4eca567c4dcfa https://huggingface.co/NucleusAI/Nucleus-Image/tree/5e963db4fd0a65c7e4faf53ca2d4eca567c4dcfa" + "Qwen/Qwen-Image-Edit@ac7f9318f633fc4b5778c59367c8128225f1e3de https://huggingface.co/Qwen/Qwen-Image-Edit/tree/ac7f9318f633fc4b5778c59367c8128225f1e3de" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", - "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", - "provenanceTemplateId": "quiet_kiln_at_daybreak" + "humanApprovalPacketSHA256": "60b01498a2df5f4e4622cdc2f9a43c83d187820780d2425a19718c13707db501", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "qwen_cobalt_on_charcoal_slate" }, { - "path": "template-gallery/reviews/qwen_character_angles.quality-review.json", - "sha256": "sha256:bytes:748fb8b3839911be02f80185d329b5b028456c78916da6ad07349e0086b0f106", + "path": "template-gallery/reviews/qwen_cobalt_on_charcoal_slate.quality-review.json", + "sha256": "sha256:bytes:492e8a71b24369a4f96ae8e7781fe6926274d5871066c2ae371165026bb585fc", "publishDecision": "approved", "holdReason": null, - "creatorOrRightsholder": "MoDiff project maintainers", - "creationMethod": "MoDiff-authored technical provenance, Gallery manifest or quality review for the explicitly approved native Linux Qwen character angle sheet", - "sourceUrl": null, - "sourceRevision": null, - "sourceLicense": "Apache-2.0 project-authored metadata; generated-media terms remain in their exact per-file record", - "modelTerms": [], + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/Qwen/Qwen-Image-Edit/tree/ac7f9318f633fc4b5778c59367c8128225f1e3de", + "sourceRevision": "Qwen/Qwen-Image-Edit@ac7f9318f633fc4b5778c59367c8128225f1e3de", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "Publisher model terms at https://huggingface.co/Qwen/Qwen-Image-Edit/tree/ac7f9318f633fc4b5778c59367c8128225f1e3de" + ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], - "requiredAttribution": [], + "requiredAttribution": [ + "Qwen/Qwen-Image-Edit@ac7f9318f633fc4b5778c59367c8128225f1e3de https://huggingface.co/Qwen/Qwen-Image-Edit/tree/ac7f9318f633fc4b5778c59367c8128225f1e3de" + ], "assetLicense": "Apache-2.0", - "reviewedBy": "SOURAV DAS", - "reviewedAt": "2026-11-10", - "reviewClass": "per-file-human-approved-qwen-angle-native-image-registration", - "provenanceTemplateId": "qwen_character_angles", - "humanApprovalPacketSHA256": "9ca0bb197dbad8a2a27b25cef64aff67875aa6ea6f69fcb3bff581aae35b43d5" + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "60b01498a2df5f4e4622cdc2f9a43c83d187820780d2425a19718c13707db501", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "qwen_cobalt_on_charcoal_slate" }, { - "path": "template-gallery/reviews/qwen_character_angles.reviewed-provenance.json", - "sha256": "sha256:bytes:a4d880bcad84c21fe3787001fceb2f9b2f4042fe83e1e2c6733d0f578a586c66", + "path": "template-gallery/reviews/qwen_cobalt_on_charcoal_slate.retained-template-provenance.json", + "sha256": "sha256:bytes:416a58ebfb2db64e9d1e75995cd8b6e8151b60a60600c9bfe33a472b2c31d8bb", "publishDecision": "approved", "holdReason": null, - "creatorOrRightsholder": "MoDiff project maintainers", - "creationMethod": "MoDiff-authored technical provenance, Gallery manifest or quality review for the explicitly approved native Linux Qwen character angle sheet", - "sourceUrl": null, - "sourceRevision": null, - "sourceLicense": "Apache-2.0 project-authored metadata; generated-media terms remain in their exact per-file record", - "modelTerms": [], + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/Qwen/Qwen-Image-Edit/tree/ac7f9318f633fc4b5778c59367c8128225f1e3de", + "sourceRevision": "Qwen/Qwen-Image-Edit@ac7f9318f633fc4b5778c59367c8128225f1e3de", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "Publisher model terms at https://huggingface.co/Qwen/Qwen-Image-Edit/tree/ac7f9318f633fc4b5778c59367c8128225f1e3de" + ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], - "requiredAttribution": [], + "requiredAttribution": [ + "Qwen/Qwen-Image-Edit@ac7f9318f633fc4b5778c59367c8128225f1e3de https://huggingface.co/Qwen/Qwen-Image-Edit/tree/ac7f9318f633fc4b5778c59367c8128225f1e3de" + ], "assetLicense": "Apache-2.0", - "reviewedBy": "SOURAV DAS", - "reviewedAt": "2026-11-10", - "reviewClass": "per-file-human-approved-qwen-angle-native-image-registration", - "provenanceTemplateId": "qwen_character_angles", - "humanApprovalPacketSHA256": "9ca0bb197dbad8a2a27b25cef64aff67875aa6ea6f69fcb3bff581aae35b43d5" + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "60b01498a2df5f4e4622cdc2f9a43c83d187820780d2425a19718c13707db501", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "qwen_cobalt_on_charcoal_slate" }, { "path": "template-gallery/reviews/qwen_control_image_layout.quality-review.json", @@ -15971,6 +18482,114 @@ "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", "provenanceTemplateId": "sd15_pag_mountain_lake_watercolor" }, + { + "path": "template-gallery/reviews/sdxl_blue_glass_on_linen.original-provenance.json", + "sha256": "sha256:bytes:27a97a45a77e030c923d8bdd21038de3f89a94132da92d6313179f752949ac89", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b", + "sourceRevision": "stabilityai/stable-diffusion-xl-base-1.0@462165984030d82259a11f4367a4eed129e94a7b", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "Publisher model terms at https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b" + ], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "stabilityai/stable-diffusion-xl-base-1.0@462165984030d82259a11f4367a4eed129e94a7b https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "60b01498a2df5f4e4622cdc2f9a43c83d187820780d2425a19718c13707db501", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "sdxl_blue_glass_on_linen" + }, + { + "path": "template-gallery/reviews/sdxl_blue_glass_on_linen.original-review.json", + "sha256": "sha256:bytes:fabaeafe1e26297e9f1601776a60ecb99aff54d8bcd793f59efcdbb24aff75ca", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b", + "sourceRevision": "stabilityai/stable-diffusion-xl-base-1.0@462165984030d82259a11f4367a4eed129e94a7b", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "Publisher model terms at https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b" + ], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "stabilityai/stable-diffusion-xl-base-1.0@462165984030d82259a11f4367a4eed129e94a7b https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "60b01498a2df5f4e4622cdc2f9a43c83d187820780d2425a19718c13707db501", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "sdxl_blue_glass_on_linen" + }, + { + "path": "template-gallery/reviews/sdxl_blue_glass_on_linen.quality-review.json", + "sha256": "sha256:bytes:ac2ad3f014c2418214a1f5c0d24da1c6e0f854b5f465b5f73fc86a49f691e690", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b", + "sourceRevision": "stabilityai/stable-diffusion-xl-base-1.0@462165984030d82259a11f4367a4eed129e94a7b", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "Publisher model terms at https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b" + ], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "stabilityai/stable-diffusion-xl-base-1.0@462165984030d82259a11f4367a4eed129e94a7b https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "60b01498a2df5f4e4622cdc2f9a43c83d187820780d2425a19718c13707db501", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "sdxl_blue_glass_on_linen" + }, + { + "path": "template-gallery/reviews/sdxl_blue_glass_on_linen.retained-template-provenance.json", + "sha256": "sha256:bytes:bc7bc5349f88639d71d68f5fbd560c09bae488e4240cd5c53c9731904f655896", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b", + "sourceRevision": "stabilityai/stable-diffusion-xl-base-1.0@462165984030d82259a11f4367a4eed129e94a7b", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "Publisher model terms at https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b" + ], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "stabilityai/stable-diffusion-xl-base-1.0@462165984030d82259a11f4367a4eed129e94a7b https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "60b01498a2df5f4e4622cdc2f9a43c83d187820780d2425a19718c13707db501", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "sdxl_blue_glass_on_linen" + }, { "path": "template-gallery/reviews/sdxl_canny_adapter_glass_study.original-provenance.json", "sha256": "sha256:bytes:daf26190a849032e45d97c519a2d0a943ea9cab99937916d7f2f9b88b29a69a0", @@ -16154,15 +18773,123 @@ ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", - "reviewedAt": "2026-11-24", + "reviewedAt": "2026-11-24", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "d216f065bdc316366c6183592f657bcfbbd7cb05acd0e510c6b3877fe56bcec2", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped six saved cases with model terms retained.", + "provenanceTemplateId": "sdxl_clear_cobalt_backdrop" + }, + { + "path": "template-gallery/reviews/sdxl_clear_cobalt_backdrop.retained-template-provenance.json", + "sha256": "sha256:bytes:b680690954be3c7784aed2b97110d50706dc3ebb56df9e61611b203150a90b39", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b", + "sourceRevision": "stabilityai/stable-diffusion-xl-base-1.0@462165984030d82259a11f4367a4eed129e94a7b", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "Publisher model terms at https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b" + ], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "stabilityai/stable-diffusion-xl-base-1.0@462165984030d82259a11f4367a4eed129e94a7b https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-24", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "d216f065bdc316366c6183592f657bcfbbd7cb05acd0e510c6b3877fe56bcec2", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped six saved cases with model terms retained.", + "provenanceTemplateId": "sdxl_clear_cobalt_backdrop" + }, + { + "path": "template-gallery/reviews/sdxl_control_inpaint_warm_plaster.original-provenance.json", + "sha256": "sha256:bytes:661ddabb9dd317859660c6d6c56737672f0969c2637153b2aa3a14b1422cac0b", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b", + "sourceRevision": "stabilityai/stable-diffusion-xl-base-1.0@462165984030d82259a11f4367a4eed129e94a7b", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "Publisher model terms at https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b" + ], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "stabilityai/stable-diffusion-xl-base-1.0@462165984030d82259a11f4367a4eed129e94a7b https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "3968c7cbe37a94789a9f839d8e83a9e0f102629b797d5f7baacf0304a8d18153", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "sdxl_control_inpaint_warm_plaster" + }, + { + "path": "template-gallery/reviews/sdxl_control_inpaint_warm_plaster.original-review.json", + "sha256": "sha256:bytes:9ec0f8ff6cc645c9c9c9c9102965753af931061398629edb65727f99d2cb7faa", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b", + "sourceRevision": "stabilityai/stable-diffusion-xl-base-1.0@462165984030d82259a11f4367a4eed129e94a7b", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "Publisher model terms at https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b" + ], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "stabilityai/stable-diffusion-xl-base-1.0@462165984030d82259a11f4367a4eed129e94a7b https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "3968c7cbe37a94789a9f839d8e83a9e0f102629b797d5f7baacf0304a8d18153", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "sdxl_control_inpaint_warm_plaster" + }, + { + "path": "template-gallery/reviews/sdxl_control_inpaint_warm_plaster.quality-review.json", + "sha256": "sha256:bytes:4e3e6d321e3c4b7b17ba5ff675c610bd6c0a86779bda8e1c2fa0b3c25754d15e", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b", + "sourceRevision": "stabilityai/stable-diffusion-xl-base-1.0@462165984030d82259a11f4367a4eed129e94a7b", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "Publisher model terms at https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b" + ], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "stabilityai/stable-diffusion-xl-base-1.0@462165984030d82259a11f4367a4eed129e94a7b https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "d216f065bdc316366c6183592f657bcfbbd7cb05acd0e510c6b3877fe56bcec2", - "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped six saved cases with model terms retained.", - "provenanceTemplateId": "sdxl_clear_cobalt_backdrop" + "humanApprovalPacketSHA256": "3968c7cbe37a94789a9f839d8e83a9e0f102629b797d5f7baacf0304a8d18153", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "sdxl_control_inpaint_warm_plaster" }, { - "path": "template-gallery/reviews/sdxl_clear_cobalt_backdrop.retained-template-provenance.json", - "sha256": "sha256:bytes:b680690954be3c7784aed2b97110d50706dc3ebb56df9e61611b203150a90b39", + "path": "template-gallery/reviews/sdxl_control_inpaint_warm_plaster.retained-template-provenance.json", + "sha256": "sha256:bytes:b55fbe6ba9d7b2243d12fe0227026b502eb8674412f4da62cc0ef72b57a91370", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", @@ -16181,15 +18908,15 @@ ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", - "reviewedAt": "2026-11-24", + "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "d216f065bdc316366c6183592f657bcfbbd7cb05acd0e510c6b3877fe56bcec2", - "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped six saved cases with model terms retained.", - "provenanceTemplateId": "sdxl_clear_cobalt_backdrop" + "humanApprovalPacketSHA256": "3968c7cbe37a94789a9f839d8e83a9e0f102629b797d5f7baacf0304a8d18153", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "sdxl_control_inpaint_warm_plaster" }, { - "path": "template-gallery/reviews/sdxl_control_inpaint_warm_plaster.original-provenance.json", - "sha256": "sha256:bytes:661ddabb9dd317859660c6d6c56737672f0969c2637153b2aa3a14b1422cac0b", + "path": "template-gallery/reviews/sdxl_controlnet_glass_study_on_slate.original-provenance.json", + "sha256": "sha256:bytes:5eff28279014893ed1b626866eef574cb72798d376da8faef83766c89e3e8223", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", @@ -16212,11 +18939,11 @@ "reviewClass": "per-file-maintainer-accepted-retained-registration", "humanApprovalPacketSHA256": "3968c7cbe37a94789a9f839d8e83a9e0f102629b797d5f7baacf0304a8d18153", "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", - "provenanceTemplateId": "sdxl_control_inpaint_warm_plaster" + "provenanceTemplateId": "sdxl_controlnet_glass_study_on_slate" }, { - "path": "template-gallery/reviews/sdxl_control_inpaint_warm_plaster.original-review.json", - "sha256": "sha256:bytes:9ec0f8ff6cc645c9c9c9c9102965753af931061398629edb65727f99d2cb7faa", + "path": "template-gallery/reviews/sdxl_controlnet_glass_study_on_slate.original-review.json", + "sha256": "sha256:bytes:42676c7dd7b9bd9c2062dd771f1d63f7507670609ba6ef543b066877c6f86de1", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", @@ -16239,11 +18966,11 @@ "reviewClass": "per-file-maintainer-accepted-retained-registration", "humanApprovalPacketSHA256": "3968c7cbe37a94789a9f839d8e83a9e0f102629b797d5f7baacf0304a8d18153", "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", - "provenanceTemplateId": "sdxl_control_inpaint_warm_plaster" + "provenanceTemplateId": "sdxl_controlnet_glass_study_on_slate" }, { - "path": "template-gallery/reviews/sdxl_control_inpaint_warm_plaster.quality-review.json", - "sha256": "sha256:bytes:4e3e6d321e3c4b7b17ba5ff675c610bd6c0a86779bda8e1c2fa0b3c25754d15e", + "path": "template-gallery/reviews/sdxl_controlnet_glass_study_on_slate.quality-review.json", + "sha256": "sha256:bytes:3ad7e229aa4536d60a0337200d22d47e753f7770edbce0528a7dd89f3f7f0895", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", @@ -16266,11 +18993,11 @@ "reviewClass": "per-file-maintainer-accepted-retained-registration", "humanApprovalPacketSHA256": "3968c7cbe37a94789a9f839d8e83a9e0f102629b797d5f7baacf0304a8d18153", "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", - "provenanceTemplateId": "sdxl_control_inpaint_warm_plaster" + "provenanceTemplateId": "sdxl_controlnet_glass_study_on_slate" }, { - "path": "template-gallery/reviews/sdxl_control_inpaint_warm_plaster.retained-template-provenance.json", - "sha256": "sha256:bytes:b55fbe6ba9d7b2243d12fe0227026b502eb8674412f4da62cc0ef72b57a91370", + "path": "template-gallery/reviews/sdxl_controlnet_glass_study_on_slate.retained-template-provenance.json", + "sha256": "sha256:bytes:564bd43c3c23f41f40e46ee762ad2a3c61e63ca7a5600f8af0fdf92b263856fe", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", @@ -16293,11 +19020,11 @@ "reviewClass": "per-file-maintainer-accepted-retained-registration", "humanApprovalPacketSHA256": "3968c7cbe37a94789a9f839d8e83a9e0f102629b797d5f7baacf0304a8d18153", "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", - "provenanceTemplateId": "sdxl_control_inpaint_warm_plaster" + "provenanceTemplateId": "sdxl_controlnet_glass_study_on_slate" }, { - "path": "template-gallery/reviews/sdxl_controlnet_glass_study_on_slate.original-provenance.json", - "sha256": "sha256:bytes:5eff28279014893ed1b626866eef574cb72798d376da8faef83766c89e3e8223", + "path": "template-gallery/reviews/sdxl_pag_cobalt_wall.original-provenance.json", + "sha256": "sha256:bytes:73001e41f7161d3d7f501d8901c64ea75b69926342d874f517161846bbc2c65e", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", @@ -16318,13 +19045,13 @@ "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "3968c7cbe37a94789a9f839d8e83a9e0f102629b797d5f7baacf0304a8d18153", + "humanApprovalPacketSHA256": "60b01498a2df5f4e4622cdc2f9a43c83d187820780d2425a19718c13707db501", "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", - "provenanceTemplateId": "sdxl_controlnet_glass_study_on_slate" + "provenanceTemplateId": "sdxl_pag_cobalt_wall" }, { - "path": "template-gallery/reviews/sdxl_controlnet_glass_study_on_slate.original-review.json", - "sha256": "sha256:bytes:42676c7dd7b9bd9c2062dd771f1d63f7507670609ba6ef543b066877c6f86de1", + "path": "template-gallery/reviews/sdxl_pag_cobalt_wall.original-review.json", + "sha256": "sha256:bytes:9c33914daf546f076a1cd4248d62bca41f48046bbf32641336a61e6af8ce5ae6", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", @@ -16345,13 +19072,13 @@ "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "3968c7cbe37a94789a9f839d8e83a9e0f102629b797d5f7baacf0304a8d18153", + "humanApprovalPacketSHA256": "60b01498a2df5f4e4622cdc2f9a43c83d187820780d2425a19718c13707db501", "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", - "provenanceTemplateId": "sdxl_controlnet_glass_study_on_slate" + "provenanceTemplateId": "sdxl_pag_cobalt_wall" }, { - "path": "template-gallery/reviews/sdxl_controlnet_glass_study_on_slate.quality-review.json", - "sha256": "sha256:bytes:3ad7e229aa4536d60a0337200d22d47e753f7770edbce0528a7dd89f3f7f0895", + "path": "template-gallery/reviews/sdxl_pag_cobalt_wall.quality-review.json", + "sha256": "sha256:bytes:792bcb8050a146a925e0a3459c499e41ca08f710496292775ed7a85acf4e1ddf", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", @@ -16372,13 +19099,13 @@ "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "3968c7cbe37a94789a9f839d8e83a9e0f102629b797d5f7baacf0304a8d18153", + "humanApprovalPacketSHA256": "60b01498a2df5f4e4622cdc2f9a43c83d187820780d2425a19718c13707db501", "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", - "provenanceTemplateId": "sdxl_controlnet_glass_study_on_slate" + "provenanceTemplateId": "sdxl_pag_cobalt_wall" }, { - "path": "template-gallery/reviews/sdxl_controlnet_glass_study_on_slate.retained-template-provenance.json", - "sha256": "sha256:bytes:564bd43c3c23f41f40e46ee762ad2a3c61e63ca7a5600f8af0fdf92b263856fe", + "path": "template-gallery/reviews/sdxl_pag_cobalt_wall.retained-template-provenance.json", + "sha256": "sha256:bytes:69442605e67b4da6af5ab3971559219066b7c569139088412a65945487509612", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", @@ -16399,9 +19126,9 @@ "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "3968c7cbe37a94789a9f839d8e83a9e0f102629b797d5f7baacf0304a8d18153", + "humanApprovalPacketSHA256": "60b01498a2df5f4e4622cdc2f9a43c83d187820780d2425a19718c13707db501", "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", - "provenanceTemplateId": "sdxl_controlnet_glass_study_on_slate" + "provenanceTemplateId": "sdxl_pag_cobalt_wall" }, { "path": "template-gallery/reviews/sdxl_pix2pix_pale_amber_glass.original-provenance.json", @@ -17772,117 +20499,333 @@ "sha256": "sha256:bytes:8898724b99b9f2ed4b16609ef0bfa23d4573a4f992b6602ecb9d50877212c62d", "publishDecision": "approved", "holdReason": null, - "creatorOrRightsholder": "MoDiff project maintainers", - "creationMethod": "MoDiff-authored technical provenance or quality metadata from the explicitly approved six-image source packet", - "sourceUrl": null, - "sourceRevision": null, - "sourceLicense": "Apache-2.0 project-authored metadata; generated-media terms remain in their exact per-file records", - "modelTerms": [], + "creatorOrRightsholder": "MoDiff project maintainers", + "creationMethod": "MoDiff-authored technical provenance or quality metadata from the explicitly approved six-image source packet", + "sourceUrl": null, + "sourceRevision": null, + "sourceLicense": "Apache-2.0 project-authored metadata; generated-media terms remain in their exact per-file records", + "modelTerms": [], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [], + "assetLicense": "Apache-2.0", + "reviewedBy": "SOURAV DAS", + "reviewedAt": "2026-11-09", + "reviewClass": "per-file-human-approved-six-z-registration", + "humanApprovalPacketSHA256": "9b728a5f8535fc1ba3c03d2e2759d7ac795a586fafab51beb1509379ed388934", + "humanApprovalScope": "The maintainer explicitly approved the proposed 4/5 quality rubric and scores, known limits, exact six Z-image outputs and their project-authored redacted provenance/review records. This packet includes no source photographs, authored masks or unrelated assets.", + "provenanceTemplateId": "z_image_poster" + }, + { + "path": "template-gallery/reviews/z_image_product_mockup.quality-review.json", + "sha256": "sha256:bytes:a536521d8c5fd5ebb6ef5cf95b33663378ede471a94e3acc1fc1852079b4cb11", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers", + "creationMethod": "MoDiff-authored technical provenance or quality metadata from the explicitly approved six-image source packet", + "sourceUrl": null, + "sourceRevision": null, + "sourceLicense": "Apache-2.0 project-authored metadata; generated-media terms remain in their exact per-file records", + "modelTerms": [], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [], + "assetLicense": "Apache-2.0", + "reviewedBy": "SOURAV DAS", + "reviewedAt": "2026-11-09", + "reviewClass": "per-file-human-approved-six-z-registration", + "provenanceTemplateId": "z_image_product_mockup", + "humanApprovalPacketSHA256": "9b728a5f8535fc1ba3c03d2e2759d7ac795a586fafab51beb1509379ed388934" + }, + { + "path": "template-gallery/reviews/z_image_product_mockup.reviewed-provenance.json", + "sha256": "sha256:bytes:0dff7e19b43d2347dfec2dd6e2bb9e88470880fe6b949e9c1cddd998d30bf146", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers", + "creationMethod": "MoDiff-authored technical provenance or quality metadata from the explicitly approved six-image source packet", + "sourceUrl": null, + "sourceRevision": null, + "sourceLicense": "Apache-2.0 project-authored metadata; generated-media terms remain in their exact per-file records", + "modelTerms": [], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [], + "assetLicense": "Apache-2.0", + "reviewedBy": "SOURAV DAS", + "reviewedAt": "2026-11-09", + "reviewClass": "per-file-human-approved-six-z-registration", + "humanApprovalPacketSHA256": "9b728a5f8535fc1ba3c03d2e2759d7ac795a586fafab51beb1509379ed388934", + "humanApprovalScope": "The maintainer explicitly approved the proposed 4/5 quality rubric and scores, known limits, exact six Z-image outputs and their project-authored redacted provenance/review records. This packet includes no source photographs, authored masks or unrelated assets.", + "provenanceTemplateId": "z_image_product_mockup" + }, + { + "path": "template-gallery/reviews/z_image_quick_concept.quality-review.json", + "sha256": "sha256:bytes:3c965eb4fea2465d300093425187452e07c305808bee30f671b32674a7fd5411", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers", + "creationMethod": "MoDiff-authored technical provenance or quality metadata from the explicitly approved six-image source packet", + "sourceUrl": null, + "sourceRevision": null, + "sourceLicense": "Apache-2.0 project-authored metadata; generated-media terms remain in their exact per-file records", + "modelTerms": [], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [], + "assetLicense": "Apache-2.0", + "reviewedBy": "SOURAV DAS", + "reviewedAt": "2026-11-09", + "reviewClass": "per-file-human-approved-six-z-registration", + "provenanceTemplateId": "z_image_quick_concept", + "humanApprovalPacketSHA256": "9b728a5f8535fc1ba3c03d2e2759d7ac795a586fafab51beb1509379ed388934" + }, + { + "path": "template-gallery/reviews/z_image_quick_concept.reviewed-provenance.json", + "sha256": "sha256:bytes:c31016b24e0b3935d7963b97d0fca05e9e8d208d2c9ae872ee5602d40173e8ec", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers", + "creationMethod": "MoDiff-authored technical provenance or quality metadata from the explicitly approved six-image source packet", + "sourceUrl": null, + "sourceRevision": null, + "sourceLicense": "Apache-2.0 project-authored metadata; generated-media terms remain in their exact per-file records", + "modelTerms": [], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [], + "assetLicense": "Apache-2.0", + "reviewedBy": "SOURAV DAS", + "reviewedAt": "2026-11-09", + "reviewClass": "per-file-human-approved-six-z-registration", + "humanApprovalPacketSHA256": "9b728a5f8535fc1ba3c03d2e2759d7ac795a586fafab51beb1509379ed388934", + "humanApprovalScope": "The maintainer explicitly approved the proposed 4/5 quality rubric and scores, known limits, exact six Z-image outputs and their project-authored redacted provenance/review records. This packet includes no source photographs, authored masks or unrelated assets.", + "provenanceTemplateId": "z_image_quick_concept" + }, + { + "path": "template-gallery/reviews/zimage_golden_amber_glass.original-provenance.json", + "sha256": "sha256:bytes:38001f1b676cbc30bb15e344e3dcb30102e11f204aa09a81002f6eb9d973b8a3", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/Tongyi-MAI/Z-Image-Turbo/tree/f332072aa78be7aecdf3ee76d5c247082da564a6", + "sourceRevision": "Tongyi-MAI/Z-Image-Turbo@f332072aa78be7aecdf3ee76d5c247082da564a6", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "Publisher model terms at https://huggingface.co/Tongyi-MAI/Z-Image-Turbo/tree/f332072aa78be7aecdf3ee76d5c247082da564a6" + ], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "Tongyi-MAI/Z-Image-Turbo@f332072aa78be7aecdf3ee76d5c247082da564a6 https://huggingface.co/Tongyi-MAI/Z-Image-Turbo/tree/f332072aa78be7aecdf3ee76d5c247082da564a6" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "c2df9edb92f8ff905b6c9a138a285e67c621f3d2dfa3232f859aaf963b725aca", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "zimage_golden_amber_glass" + }, + { + "path": "template-gallery/reviews/zimage_golden_amber_glass.original-review.json", + "sha256": "sha256:bytes:1ada33599f214a4d4a2cb3076823b66328fd5d17f1bb816259dcf37b6c474dd1", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/Tongyi-MAI/Z-Image-Turbo/tree/f332072aa78be7aecdf3ee76d5c247082da564a6", + "sourceRevision": "Tongyi-MAI/Z-Image-Turbo@f332072aa78be7aecdf3ee76d5c247082da564a6", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "Publisher model terms at https://huggingface.co/Tongyi-MAI/Z-Image-Turbo/tree/f332072aa78be7aecdf3ee76d5c247082da564a6" + ], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "Tongyi-MAI/Z-Image-Turbo@f332072aa78be7aecdf3ee76d5c247082da564a6 https://huggingface.co/Tongyi-MAI/Z-Image-Turbo/tree/f332072aa78be7aecdf3ee76d5c247082da564a6" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "c2df9edb92f8ff905b6c9a138a285e67c621f3d2dfa3232f859aaf963b725aca", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "zimage_golden_amber_glass" + }, + { + "path": "template-gallery/reviews/zimage_golden_amber_glass.quality-review.json", + "sha256": "sha256:bytes:9eccd9055e341b7ef305b74e6103d70458bece7336d79ce64f2dd3f1bf7cdb1d", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/Tongyi-MAI/Z-Image-Turbo/tree/f332072aa78be7aecdf3ee76d5c247082da564a6", + "sourceRevision": "Tongyi-MAI/Z-Image-Turbo@f332072aa78be7aecdf3ee76d5c247082da564a6", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "Publisher model terms at https://huggingface.co/Tongyi-MAI/Z-Image-Turbo/tree/f332072aa78be7aecdf3ee76d5c247082da564a6" + ], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "Tongyi-MAI/Z-Image-Turbo@f332072aa78be7aecdf3ee76d5c247082da564a6 https://huggingface.co/Tongyi-MAI/Z-Image-Turbo/tree/f332072aa78be7aecdf3ee76d5c247082da564a6" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "c2df9edb92f8ff905b6c9a138a285e67c621f3d2dfa3232f859aaf963b725aca", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "zimage_golden_amber_glass" + }, + { + "path": "template-gallery/reviews/zimage_golden_amber_glass.retained-template-provenance.json", + "sha256": "sha256:bytes:b7b4cc1441995324830d2c34d883b4bcb86b62faf445afbc15ea77b7855d024a", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/Tongyi-MAI/Z-Image-Turbo/tree/f332072aa78be7aecdf3ee76d5c247082da564a6", + "sourceRevision": "Tongyi-MAI/Z-Image-Turbo@f332072aa78be7aecdf3ee76d5c247082da564a6", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "Publisher model terms at https://huggingface.co/Tongyi-MAI/Z-Image-Turbo/tree/f332072aa78be7aecdf3ee76d5c247082da564a6" + ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], - "requiredAttribution": [], + "requiredAttribution": [ + "Tongyi-MAI/Z-Image-Turbo@f332072aa78be7aecdf3ee76d5c247082da564a6 https://huggingface.co/Tongyi-MAI/Z-Image-Turbo/tree/f332072aa78be7aecdf3ee76d5c247082da564a6" + ], "assetLicense": "Apache-2.0", - "reviewedBy": "SOURAV DAS", - "reviewedAt": "2026-11-09", - "reviewClass": "per-file-human-approved-six-z-registration", - "humanApprovalPacketSHA256": "9b728a5f8535fc1ba3c03d2e2759d7ac795a586fafab51beb1509379ed388934", - "humanApprovalScope": "The maintainer explicitly approved the proposed 4/5 quality rubric and scores, known limits, exact six Z-image outputs and their project-authored redacted provenance/review records. This packet includes no source photographs, authored masks or unrelated assets.", - "provenanceTemplateId": "z_image_poster" + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "c2df9edb92f8ff905b6c9a138a285e67c621f3d2dfa3232f859aaf963b725aca", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "zimage_golden_amber_glass" }, { - "path": "template-gallery/reviews/z_image_product_mockup.quality-review.json", - "sha256": "sha256:bytes:a536521d8c5fd5ebb6ef5cf95b33663378ede471a94e3acc1fc1852079b4cb11", + "path": "template-gallery/reviews/zimage_rocky_glacial_shores.original-provenance.json", + "sha256": "sha256:bytes:f6f52781f50d76e5f47500b56a32d904ad2fe1c05ffc3db32232b0c3b1811aa7", "publishDecision": "approved", "holdReason": null, - "creatorOrRightsholder": "MoDiff project maintainers", - "creationMethod": "MoDiff-authored technical provenance or quality metadata from the explicitly approved six-image source packet", - "sourceUrl": null, - "sourceRevision": null, - "sourceLicense": "Apache-2.0 project-authored metadata; generated-media terms remain in their exact per-file records", - "modelTerms": [], + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/Tongyi-MAI/Z-Image-Turbo/tree/f332072aa78be7aecdf3ee76d5c247082da564a6", + "sourceRevision": "Tongyi-MAI/Z-Image-Turbo@f332072aa78be7aecdf3ee76d5c247082da564a6", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "Publisher model terms at https://huggingface.co/Tongyi-MAI/Z-Image-Turbo/tree/f332072aa78be7aecdf3ee76d5c247082da564a6" + ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], - "requiredAttribution": [], + "requiredAttribution": [ + "Tongyi-MAI/Z-Image-Turbo@f332072aa78be7aecdf3ee76d5c247082da564a6 https://huggingface.co/Tongyi-MAI/Z-Image-Turbo/tree/f332072aa78be7aecdf3ee76d5c247082da564a6" + ], "assetLicense": "Apache-2.0", - "reviewedBy": "SOURAV DAS", - "reviewedAt": "2026-11-09", - "reviewClass": "per-file-human-approved-six-z-registration", - "provenanceTemplateId": "z_image_product_mockup", - "humanApprovalPacketSHA256": "9b728a5f8535fc1ba3c03d2e2759d7ac795a586fafab51beb1509379ed388934" + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "60b01498a2df5f4e4622cdc2f9a43c83d187820780d2425a19718c13707db501", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "zimage_rocky_glacial_shores" }, { - "path": "template-gallery/reviews/z_image_product_mockup.reviewed-provenance.json", - "sha256": "sha256:bytes:0dff7e19b43d2347dfec2dd6e2bb9e88470880fe6b949e9c1cddd998d30bf146", + "path": "template-gallery/reviews/zimage_rocky_glacial_shores.original-review.json", + "sha256": "sha256:bytes:3b2e791eb5191adbb9deb87721e44a602c3078e85930124f8b0de631ff6752a0", "publishDecision": "approved", "holdReason": null, - "creatorOrRightsholder": "MoDiff project maintainers", - "creationMethod": "MoDiff-authored technical provenance or quality metadata from the explicitly approved six-image source packet", - "sourceUrl": null, - "sourceRevision": null, - "sourceLicense": "Apache-2.0 project-authored metadata; generated-media terms remain in their exact per-file records", - "modelTerms": [], + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/Tongyi-MAI/Z-Image-Turbo/tree/f332072aa78be7aecdf3ee76d5c247082da564a6", + "sourceRevision": "Tongyi-MAI/Z-Image-Turbo@f332072aa78be7aecdf3ee76d5c247082da564a6", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "Publisher model terms at https://huggingface.co/Tongyi-MAI/Z-Image-Turbo/tree/f332072aa78be7aecdf3ee76d5c247082da564a6" + ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], - "requiredAttribution": [], + "requiredAttribution": [ + "Tongyi-MAI/Z-Image-Turbo@f332072aa78be7aecdf3ee76d5c247082da564a6 https://huggingface.co/Tongyi-MAI/Z-Image-Turbo/tree/f332072aa78be7aecdf3ee76d5c247082da564a6" + ], "assetLicense": "Apache-2.0", - "reviewedBy": "SOURAV DAS", - "reviewedAt": "2026-11-09", - "reviewClass": "per-file-human-approved-six-z-registration", - "humanApprovalPacketSHA256": "9b728a5f8535fc1ba3c03d2e2759d7ac795a586fafab51beb1509379ed388934", - "humanApprovalScope": "The maintainer explicitly approved the proposed 4/5 quality rubric and scores, known limits, exact six Z-image outputs and their project-authored redacted provenance/review records. This packet includes no source photographs, authored masks or unrelated assets.", - "provenanceTemplateId": "z_image_product_mockup" + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "60b01498a2df5f4e4622cdc2f9a43c83d187820780d2425a19718c13707db501", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "zimage_rocky_glacial_shores" }, { - "path": "template-gallery/reviews/z_image_quick_concept.quality-review.json", - "sha256": "sha256:bytes:3c965eb4fea2465d300093425187452e07c305808bee30f671b32674a7fd5411", + "path": "template-gallery/reviews/zimage_rocky_glacial_shores.quality-review.json", + "sha256": "sha256:bytes:9017baf79260e6a9ae4b85b8663ef71de2ccff3edad73c1275562af14d3b8750", "publishDecision": "approved", "holdReason": null, - "creatorOrRightsholder": "MoDiff project maintainers", - "creationMethod": "MoDiff-authored technical provenance or quality metadata from the explicitly approved six-image source packet", - "sourceUrl": null, - "sourceRevision": null, - "sourceLicense": "Apache-2.0 project-authored metadata; generated-media terms remain in their exact per-file records", - "modelTerms": [], + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/Tongyi-MAI/Z-Image-Turbo/tree/f332072aa78be7aecdf3ee76d5c247082da564a6", + "sourceRevision": "Tongyi-MAI/Z-Image-Turbo@f332072aa78be7aecdf3ee76d5c247082da564a6", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "Publisher model terms at https://huggingface.co/Tongyi-MAI/Z-Image-Turbo/tree/f332072aa78be7aecdf3ee76d5c247082da564a6" + ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], - "requiredAttribution": [], + "requiredAttribution": [ + "Tongyi-MAI/Z-Image-Turbo@f332072aa78be7aecdf3ee76d5c247082da564a6 https://huggingface.co/Tongyi-MAI/Z-Image-Turbo/tree/f332072aa78be7aecdf3ee76d5c247082da564a6" + ], "assetLicense": "Apache-2.0", - "reviewedBy": "SOURAV DAS", - "reviewedAt": "2026-11-09", - "reviewClass": "per-file-human-approved-six-z-registration", - "provenanceTemplateId": "z_image_quick_concept", - "humanApprovalPacketSHA256": "9b728a5f8535fc1ba3c03d2e2759d7ac795a586fafab51beb1509379ed388934" + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "60b01498a2df5f4e4622cdc2f9a43c83d187820780d2425a19718c13707db501", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "zimage_rocky_glacial_shores" }, { - "path": "template-gallery/reviews/z_image_quick_concept.reviewed-provenance.json", - "sha256": "sha256:bytes:c31016b24e0b3935d7963b97d0fca05e9e8d208d2c9ae872ee5602d40173e8ec", + "path": "template-gallery/reviews/zimage_rocky_glacial_shores.retained-template-provenance.json", + "sha256": "sha256:bytes:625f42767a68845e1dd2e09a4760d7938138c8c8a8b8a196d3748184b0bfa44d", "publishDecision": "approved", "holdReason": null, - "creatorOrRightsholder": "MoDiff project maintainers", - "creationMethod": "MoDiff-authored technical provenance or quality metadata from the explicitly approved six-image source packet", - "sourceUrl": null, - "sourceRevision": null, - "sourceLicense": "Apache-2.0 project-authored metadata; generated-media terms remain in their exact per-file records", - "modelTerms": [], + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/Tongyi-MAI/Z-Image-Turbo/tree/f332072aa78be7aecdf3ee76d5c247082da564a6", + "sourceRevision": "Tongyi-MAI/Z-Image-Turbo@f332072aa78be7aecdf3ee76d5c247082da564a6", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "Publisher model terms at https://huggingface.co/Tongyi-MAI/Z-Image-Turbo/tree/f332072aa78be7aecdf3ee76d5c247082da564a6" + ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], - "requiredAttribution": [], + "requiredAttribution": [ + "Tongyi-MAI/Z-Image-Turbo@f332072aa78be7aecdf3ee76d5c247082da564a6 https://huggingface.co/Tongyi-MAI/Z-Image-Turbo/tree/f332072aa78be7aecdf3ee76d5c247082da564a6" + ], "assetLicense": "Apache-2.0", - "reviewedBy": "SOURAV DAS", - "reviewedAt": "2026-11-09", - "reviewClass": "per-file-human-approved-six-z-registration", - "humanApprovalPacketSHA256": "9b728a5f8535fc1ba3c03d2e2759d7ac795a586fafab51beb1509379ed388934", - "humanApprovalScope": "The maintainer explicitly approved the proposed 4/5 quality rubric and scores, known limits, exact six Z-image outputs and their project-authored redacted provenance/review records. This packet includes no source photographs, authored masks or unrelated assets.", - "provenanceTemplateId": "z_image_quick_concept" + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "60b01498a2df5f4e4622cdc2f9a43c83d187820780d2425a19718c13707db501", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "zimage_rocky_glacial_shores" }, { - "path": "template-gallery/reviews/zimage_golden_amber_glass.original-provenance.json", - "sha256": "sha256:bytes:38001f1b676cbc30bb15e344e3dcb30102e11f204aa09a81002f6eb9d973b8a3", + "path": "template-gallery/reviews/zimage_seamless_cobalt_backdrop.original-provenance.json", + "sha256": "sha256:bytes:d4a52b23af4248329ef8232b4058b8fcf3c877ddfcfc9b20c4e27a3aacadfa9f", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", @@ -17903,13 +20846,13 @@ "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "c2df9edb92f8ff905b6c9a138a285e67c621f3d2dfa3232f859aaf963b725aca", + "humanApprovalPacketSHA256": "60b01498a2df5f4e4622cdc2f9a43c83d187820780d2425a19718c13707db501", "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", - "provenanceTemplateId": "zimage_golden_amber_glass" + "provenanceTemplateId": "zimage_seamless_cobalt_backdrop" }, { - "path": "template-gallery/reviews/zimage_golden_amber_glass.original-review.json", - "sha256": "sha256:bytes:1ada33599f214a4d4a2cb3076823b66328fd5d17f1bb816259dcf37b6c474dd1", + "path": "template-gallery/reviews/zimage_seamless_cobalt_backdrop.original-review.json", + "sha256": "sha256:bytes:b112c13caaa7ec635f2dfc8a4dc8fd2304778d1bc7aa5f1dab5c6c430ed48704", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", @@ -17930,13 +20873,13 @@ "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "c2df9edb92f8ff905b6c9a138a285e67c621f3d2dfa3232f859aaf963b725aca", + "humanApprovalPacketSHA256": "60b01498a2df5f4e4622cdc2f9a43c83d187820780d2425a19718c13707db501", "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", - "provenanceTemplateId": "zimage_golden_amber_glass" + "provenanceTemplateId": "zimage_seamless_cobalt_backdrop" }, { - "path": "template-gallery/reviews/zimage_golden_amber_glass.quality-review.json", - "sha256": "sha256:bytes:9eccd9055e341b7ef305b74e6103d70458bece7336d79ce64f2dd3f1bf7cdb1d", + "path": "template-gallery/reviews/zimage_seamless_cobalt_backdrop.quality-review.json", + "sha256": "sha256:bytes:0d1d91ea0c9d9c165f2ab152c8a6405e6bb43ad26dc886a844367c051ea3ea8c", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", @@ -17957,13 +20900,13 @@ "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "c2df9edb92f8ff905b6c9a138a285e67c621f3d2dfa3232f859aaf963b725aca", + "humanApprovalPacketSHA256": "60b01498a2df5f4e4622cdc2f9a43c83d187820780d2425a19718c13707db501", "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", - "provenanceTemplateId": "zimage_golden_amber_glass" + "provenanceTemplateId": "zimage_seamless_cobalt_backdrop" }, { - "path": "template-gallery/reviews/zimage_golden_amber_glass.retained-template-provenance.json", - "sha256": "sha256:bytes:b7b4cc1441995324830d2c34d883b4bcb86b62faf445afbc15ea77b7855d024a", + "path": "template-gallery/reviews/zimage_seamless_cobalt_backdrop.retained-template-provenance.json", + "sha256": "sha256:bytes:dc64773a27bdd47d79712c11274cbdf9b3bde35a576d2e96be1ef1dc12972361", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", @@ -17984,9 +20927,9 @@ "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "c2df9edb92f8ff905b6c9a138a285e67c621f3d2dfa3232f859aaf963b725aca", + "humanApprovalPacketSHA256": "60b01498a2df5f4e4622cdc2f9a43c83d187820780d2425a19718c13707db501", "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", - "provenanceTemplateId": "zimage_golden_amber_glass" + "provenanceTemplateId": "zimage_seamless_cobalt_backdrop" }, { "creatorOrRightsholder": "MoDiff project maintainers, subject to original synthetic source terms", @@ -19597,6 +22540,33 @@ "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", "provenanceTemplateId": "sd15_pag_mountain_lake_watercolor" }, + { + "path": "template-gallery/sdxl_blue_glass_on_linen.webp", + "sha256": "sha256:bytes:a6a5af6e608dfc8de66c3ad394aaf39c0b82692cf89619979f6a3997a7fbec62", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Exact approved file captured from a saved MoDiff workflow", + "sourceUrl": "https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b", + "sourceRevision": "stabilityai/stable-diffusion-xl-base-1.0@462165984030d82259a11f4367a4eed129e94a7b", + "sourceLicense": "Maintainer-authorized file with publisher terms retained", + "modelTerms": [ + "Publisher model terms at https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b" + ], + "aiGenerated": true, + "humanLikenessConsent": "synthetic", + "marks": [], + "requiredAttribution": [ + "stabilityai/stable-diffusion-xl-base-1.0@462165984030d82259a11f4367a4eed129e94a7b https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "60b01498a2df5f4e4622cdc2f9a43c83d187820780d2425a19718c13707db501", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "sdxl_blue_glass_on_linen" + }, { "path": "template-gallery/sdxl_canny_adapter_glass_study.webp", "sha256": "sha256:bytes:a3cc3458190184277baebd012898e3eef8504570f6ce52a64228a78f68400eef", @@ -19705,6 +22675,33 @@ "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", "provenanceTemplateId": "sdxl_controlnet_glass_study_on_slate" }, + { + "path": "template-gallery/sdxl_pag_cobalt_wall.webp", + "sha256": "sha256:bytes:dc976b97d1919d526a84c397596fbb4b440edf3cf53fad156f07fba46810e8de", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Exact approved file captured from a saved MoDiff workflow", + "sourceUrl": "https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b", + "sourceRevision": "stabilityai/stable-diffusion-xl-base-1.0@462165984030d82259a11f4367a4eed129e94a7b", + "sourceLicense": "Maintainer-authorized file with publisher terms retained", + "modelTerms": [ + "Publisher model terms at https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b" + ], + "aiGenerated": true, + "humanLikenessConsent": "synthetic", + "marks": [], + "requiredAttribution": [ + "stabilityai/stable-diffusion-xl-base-1.0@462165984030d82259a11f4367a4eed129e94a7b https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "60b01498a2df5f4e4622cdc2f9a43c83d187820780d2425a19718c13707db501", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "sdxl_pag_cobalt_wall" + }, { "path": "template-gallery/sdxl_pix2pix_pale_amber_glass.webp", "sha256": "sha256:bytes:a56a057711364a3b747c202652999f5fcde7ee1b91c0c7a2a92e6ca26c6c3dff", @@ -21715,6 +24712,60 @@ "humanApprovalPacketSHA256": "c2df9edb92f8ff905b6c9a138a285e67c621f3d2dfa3232f859aaf963b725aca", "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", "provenanceTemplateId": "zimage_golden_amber_glass" + }, + { + "path": "template-gallery/zimage_rocky_glacial_shores.webp", + "sha256": "sha256:bytes:7a94fbad28ad8901a49b53de126a2bd9e34077ad7402efa15caeaa7b970a0cae", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Exact approved file captured from a saved MoDiff workflow", + "sourceUrl": "https://huggingface.co/Tongyi-MAI/Z-Image-Turbo/tree/f332072aa78be7aecdf3ee76d5c247082da564a6", + "sourceRevision": "Tongyi-MAI/Z-Image-Turbo@f332072aa78be7aecdf3ee76d5c247082da564a6", + "sourceLicense": "Maintainer-authorized file with publisher terms retained", + "modelTerms": [ + "Publisher model terms at https://huggingface.co/Tongyi-MAI/Z-Image-Turbo/tree/f332072aa78be7aecdf3ee76d5c247082da564a6" + ], + "aiGenerated": true, + "humanLikenessConsent": "synthetic", + "marks": [], + "requiredAttribution": [ + "Tongyi-MAI/Z-Image-Turbo@f332072aa78be7aecdf3ee76d5c247082da564a6 https://huggingface.co/Tongyi-MAI/Z-Image-Turbo/tree/f332072aa78be7aecdf3ee76d5c247082da564a6" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "60b01498a2df5f4e4622cdc2f9a43c83d187820780d2425a19718c13707db501", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "zimage_rocky_glacial_shores" + }, + { + "path": "template-gallery/zimage_seamless_cobalt_backdrop.webp", + "sha256": "sha256:bytes:8149300a89e8cc784540a3fa663e83ca708d68d250a57710266f8a1e126fd4b5", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Exact approved file captured from a saved MoDiff workflow", + "sourceUrl": "https://huggingface.co/Tongyi-MAI/Z-Image-Turbo/tree/f332072aa78be7aecdf3ee76d5c247082da564a6", + "sourceRevision": "Tongyi-MAI/Z-Image-Turbo@f332072aa78be7aecdf3ee76d5c247082da564a6", + "sourceLicense": "Maintainer-authorized file with publisher terms retained", + "modelTerms": [ + "Publisher model terms at https://huggingface.co/Tongyi-MAI/Z-Image-Turbo/tree/f332072aa78be7aecdf3ee76d5c247082da564a6" + ], + "aiGenerated": true, + "humanLikenessConsent": "synthetic", + "marks": [], + "requiredAttribution": [ + "Tongyi-MAI/Z-Image-Turbo@f332072aa78be7aecdf3ee76d5c247082da564a6 https://huggingface.co/Tongyi-MAI/Z-Image-Turbo/tree/f332072aa78be7aecdf3ee76d5c247082da564a6" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "60b01498a2df5f4e4622cdc2f9a43c83d187820780d2425a19718c13707db501", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "zimage_seamless_cobalt_backdrop" } ] } diff --git a/config/template-assets.v1.json b/config/template-assets.v1.json index 10f92a4c..8b103d51 100644 --- a/config/template-assets.v1.json +++ b/config/template-assets.v1.json @@ -197,6 +197,17 @@ "width": 1024, "height": 1024 }, + { + "path": "template-gallery/chroma_alpine_block_print.webp", + "size": 374366, + "sha256": "sha256:bytes:c8c30a11f94c3100910bd565e04097ebc36fad1c412f7adaa8496092ef55a804", + "contentType": "image/webp", + "purposes": [ + "runtime" + ], + "width": 1024, + "height": 1024 + }, { "path": "template-gallery/chroma_restored_cobalt_backdrop.webp", "size": 119420, @@ -303,6 +314,17 @@ "width": 1024, "height": 1024 }, + { + "path": "template-gallery/flux1_dev_limestone_studio_scratch_repair.webp", + "size": 119092, + "sha256": "sha256:bytes:b5fe5ad2e6acf82a7fb6cc2730cac9fb9c588a8e0263736e4a16dc2e77442f49", + "contentType": "image/webp", + "purposes": [ + "runtime" + ], + "width": 1024, + "height": 1024 + }, { "path": "template-gallery/flux2_klein_edit.webp", "size": 163900, @@ -512,6 +534,28 @@ "width": 1536, "height": 1024 }, + { + "path": "template-gallery/flux_klein_alpine_lake_panorama.webp", + "size": 579614, + "sha256": "sha256:bytes:3f2435f483779b1b27d9dad2347c055dc8855373d90aad6442174be9d341d059", + "contentType": "image/webp", + "purposes": [ + "runtime" + ], + "width": 1344, + "height": 768 + }, + { + "path": "template-gallery/flux_klein_open_glacial_lake.webp", + "size": 420904, + "sha256": "sha256:bytes:32041e979ea1b3c51030e7d64eb3edee675d5c4cdc7abb596817b4e0769ce65b", + "contentType": "image/webp", + "purposes": [ + "runtime" + ], + "width": 1024, + "height": 1024 + }, { "path": "template-gallery/flux_kontext_edit.webp", "size": 211874, @@ -1509,6 +1553,17 @@ "width": 1024, "height": 1024 }, + { + "path": "template-gallery/inputs/chroma_alpine_block_print.before.png", + "size": 1509971, + "sha256": "sha256:bytes:88290a96bc8d52f11f2d1e3c0c0e04c2027661816e54b57d7d4739d731ca1e75", + "contentType": "image/png", + "purposes": [ + "runtime" + ], + "width": 1024, + "height": 1024 + }, { "path": "template-gallery/inputs/chroma_restored_cobalt_backdrop.before.png", "size": 623267, @@ -1540,6 +1595,28 @@ "runtime" ] }, + { + "path": "template-gallery/inputs/flux1_dev_limestone_studio_scratch_repair.before.png", + "size": 623267, + "sha256": "sha256:bytes:e75c20f0e8a74e283b996bf526e6ea74535ed24125ad97c2d92508d3435d7a87", + "contentType": "image/png", + "purposes": [ + "runtime" + ], + "width": 1024, + "height": 1024 + }, + { + "path": "template-gallery/inputs/flux1_dev_limestone_studio_scratch_repair.mask.png", + "size": 1571, + "sha256": "sha256:bytes:1f48775f2826f84e0c5b55f16f3475bdc80ecad8b931d6b0279598610e9a828d", + "contentType": "image/png", + "purposes": [ + "runtime" + ], + "width": 1024, + "height": 1024 + }, { "path": "template-gallery/inputs/flux2_klein_edit.before.png", "size": 266188, @@ -1662,6 +1739,39 @@ "width": 1536, "height": 1024 }, + { + "path": "template-gallery/inputs/flux_klein_alpine_lake_panorama.before.png", + "size": 1003084, + "sha256": "sha256:bytes:50270382b4b730b87f79b775accaeeb81f3ff8885cd3d2cea94830206fbc181b", + "contentType": "image/png", + "purposes": [ + "runtime" + ], + "width": 832, + "height": 768 + }, + { + "path": "template-gallery/inputs/flux_klein_open_glacial_lake.before.png", + "size": 1509971, + "sha256": "sha256:bytes:88290a96bc8d52f11f2d1e3c0c0e04c2027661816e54b57d7d4739d731ca1e75", + "contentType": "image/png", + "purposes": [ + "runtime" + ], + "width": 1024, + "height": 1024 + }, + { + "path": "template-gallery/inputs/flux_klein_open_glacial_lake.mask.png", + "size": 4475, + "sha256": "sha256:bytes:877d3c4e0e976d3885419f3f327d8974394d69aca35667e5479b944880d84e04", + "contentType": "image/png", + "purposes": [ + "runtime" + ], + "width": 1024, + "height": 1024 + }, { "path": "template-gallery/inputs/flux_kontext_edit.before.webp", "size": 196402, @@ -1730,6 +1840,50 @@ "width": 1024, "height": 1024 }, + { + "path": "template-gallery/inputs/joy_plus_lavender_on_limestone.before.png", + "size": 624887, + "sha256": "sha256:bytes:0a41a9c56b98945e60c96ef796660c35b2cab7bf0b36d5e84ab0d97ef97f0a5a", + "contentType": "image/png", + "purposes": [ + "runtime" + ], + "width": 1024, + "height": 1024 + }, + { + "path": "template-gallery/inputs/joyimage_base_cobalt_paper_band.before.png", + "size": 624887, + "sha256": "sha256:bytes:0a41a9c56b98945e60c96ef796660c35b2cab7bf0b36d5e84ab0d97ef97f0a5a", + "contentType": "image/png", + "purposes": [ + "runtime" + ], + "width": 1024, + "height": 1024 + }, + { + "path": "template-gallery/inputs/kandinsky3_smoked_glass_on_limestone.before.png", + "size": 624887, + "sha256": "sha256:bytes:0a41a9c56b98945e60c96ef796660c35b2cab7bf0b36d5e84ab0d97ef97f0a5a", + "contentType": "image/png", + "purposes": [ + "runtime" + ], + "width": 1024, + "height": 1024 + }, + { + "path": "template-gallery/inputs/kontext_wide_water_alpine_ridge.before.png", + "size": 1003084, + "sha256": "sha256:bytes:50270382b4b730b87f79b775accaeeb81f3ff8885cd3d2cea94830206fbc181b", + "contentType": "image/png", + "purposes": [ + "runtime" + ], + "width": 832, + "height": 768 + }, { "path": "template-gallery/inputs/lcm_dawn_alpine_lake.before.webp", "size": 164148, @@ -1741,6 +1895,17 @@ "width": 512, "height": 512 }, + { + "path": "template-gallery/inputs/longcat_clear_glass_at_the_bookshop.before.webp", + "size": 569776, + "sha256": "sha256:bytes:ff045be510a0e88cbab69bbe8c3794dd26bd19036bdec26a63a5b6ea5a11bc66", + "contentType": "image/webp", + "purposes": [ + "runtime" + ], + "width": 1024, + "height": 1024 + }, { "path": "template-gallery/inputs/ltx_boardwalk_tracking.end.webp", "size": 62370, @@ -1806,6 +1971,17 @@ "width": 64, "height": 48 }, + { + "path": "template-gallery/inputs/omnigen_cobalt_against_soft_apricot.before.png", + "size": 624887, + "sha256": "sha256:bytes:0a41a9c56b98945e60c96ef796660c35b2cab7bf0b36d5e84ab0d97ef97f0a5a", + "contentType": "image/png", + "purposes": [ + "runtime" + ], + "width": 1024, + "height": 1024 + }, { "path": "template-gallery/inputs/qwen-carton-layout-control.png", "size": 11137, @@ -1817,6 +1993,50 @@ "width": 1024, "height": 1024 }, + { + "path": "template-gallery/inputs/qwen_2511_pale_amber_on_limestone.before.png", + "size": 624887, + "sha256": "sha256:bytes:0a41a9c56b98945e60c96ef796660c35b2cab7bf0b36d5e84ab0d97ef97f0a5a", + "contentType": "image/png", + "purposes": [ + "runtime" + ], + "width": 1024, + "height": 1024 + }, + { + "path": "template-gallery/inputs/qwen_2512_cobalt_backdrop_repair.before.png", + "size": 891109, + "sha256": "sha256:bytes:f5db354dc97ea11898d868898c5cc8ef454bb75ffe098b00bb2f06bc89f85885", + "contentType": "image/png", + "purposes": [ + "runtime" + ], + "width": 1328, + "height": 1328 + }, + { + "path": "template-gallery/inputs/qwen_2512_cobalt_backdrop_repair.mask.png", + "size": 2405, + "sha256": "sha256:bytes:75ce495cdb65e3cb92cbd1c2ed94546d3f946e86642095d08334be13fd8a8b8f", + "contentType": "image/png", + "purposes": [ + "runtime" + ], + "width": 1328, + "height": 1328 + }, + { + "path": "template-gallery/inputs/qwen_bookshop_gouache.before.webp", + "size": 569776, + "sha256": "sha256:bytes:ff045be510a0e88cbab69bbe8c3794dd26bd19036bdec26a63a5b6ea5a11bc66", + "contentType": "image/webp", + "purposes": [ + "runtime" + ], + "width": 1024, + "height": 1024 + }, { "path": "template-gallery/inputs/qwen_character_angles.before.webp", "size": 388454, @@ -1829,6 +2049,17 @@ "width": 1024, "height": 1024 }, + { + "path": "template-gallery/inputs/qwen_cobalt_on_charcoal_slate.before.png", + "size": 624887, + "sha256": "sha256:bytes:0a41a9c56b98945e60c96ef796660c35b2cab7bf0b36d5e84ab0d97ef97f0a5a", + "contentType": "image/png", + "purposes": [ + "runtime" + ], + "width": 1024, + "height": 1024 + }, { "path": "template-gallery/inputs/qwen_control_image_layout.before.png", "size": 11137, @@ -2116,6 +2347,17 @@ "width": 1024, "height": 1024 }, + { + "path": "template-gallery/inputs/sdxl_blue_glass_on_linen.before.png", + "size": 624887, + "sha256": "sha256:bytes:0a41a9c56b98945e60c96ef796660c35b2cab7bf0b36d5e84ab0d97ef97f0a5a", + "contentType": "image/png", + "purposes": [ + "runtime" + ], + "width": 1024, + "height": 1024 + }, { "path": "template-gallery/inputs/sdxl_canny_adapter_glass_study.before.png", "size": 7281, @@ -2193,6 +2435,28 @@ "width": 1024, "height": 1024 }, + { + "path": "template-gallery/inputs/sdxl_pag_cobalt_wall.before.png", + "size": 623267, + "sha256": "sha256:bytes:e75c20f0e8a74e283b996bf526e6ea74535ed24125ad97c2d92508d3435d7a87", + "contentType": "image/png", + "purposes": [ + "runtime" + ], + "width": 1024, + "height": 1024 + }, + { + "path": "template-gallery/inputs/sdxl_pag_cobalt_wall.mask.png", + "size": 1571, + "sha256": "sha256:bytes:1f48775f2826f84e0c5b55f16f3475bdc80ecad8b931d6b0279598610e9a828d", + "contentType": "image/png", + "purposes": [ + "runtime" + ], + "width": 1024, + "height": 1024 + }, { "path": "template-gallery/inputs/sdxl_pix2pix_pale_amber_glass.before.png", "size": 494048, @@ -2284,6 +2548,39 @@ "width": 768, "height": 768 }, + { + "path": "template-gallery/inputs/zimage_rocky_glacial_shores.before.png", + "size": 1003084, + "sha256": "sha256:bytes:50270382b4b730b87f79b775accaeeb81f3ff8885cd3d2cea94830206fbc181b", + "contentType": "image/png", + "purposes": [ + "runtime" + ], + "width": 832, + "height": 768 + }, + { + "path": "template-gallery/inputs/zimage_seamless_cobalt_backdrop.before.png", + "size": 623267, + "sha256": "sha256:bytes:e75c20f0e8a74e283b996bf526e6ea74535ed24125ad97c2d92508d3435d7a87", + "contentType": "image/png", + "purposes": [ + "runtime" + ], + "width": 1024, + "height": 1024 + }, + { + "path": "template-gallery/inputs/zimage_seamless_cobalt_backdrop.mask.png", + "size": 1571, + "sha256": "sha256:bytes:1f48775f2826f84e0c5b55f16f3475bdc80ecad8b931d6b0279598610e9a828d", + "contentType": "image/png", + "purposes": [ + "runtime" + ], + "width": 1024, + "height": 1024 + }, { "path": "template-gallery/janus_red_enamel_teapot.webp", "size": 33688, @@ -2313,6 +2610,28 @@ "runtime" ] }, + { + "path": "template-gallery/joy_plus_lavender_on_limestone.webp", + "size": 115464, + "sha256": "sha256:bytes:6c1f36ca4b6eb78cc6ce314e60534f4496fae9a972b3f03ce2254257aa9737a3", + "contentType": "image/webp", + "purposes": [ + "runtime" + ], + "width": 1024, + "height": 1024 + }, + { + "path": "template-gallery/joyimage_base_cobalt_paper_band.webp", + "size": 121610, + "sha256": "sha256:bytes:99fabcac42e8698eb652089bf52698690648937552975d54a68141be9a66b307", + "contentType": "image/webp", + "purposes": [ + "runtime" + ], + "width": 1024, + "height": 1024 + }, { "path": "template-gallery/joyimage_herbarium_rainy_porthole.webp", "size": 356600, @@ -2335,6 +2654,28 @@ "width": 1024, "height": 1024 }, + { + "path": "template-gallery/kandinsky3_smoked_glass_on_limestone.webp", + "size": 84442, + "sha256": "sha256:bytes:77d55b454e684b69306ae806b31911750ae496888e58c85c1d896a5f222b71dd", + "contentType": "image/webp", + "purposes": [ + "runtime" + ], + "width": 1024, + "height": 1024 + }, + { + "path": "template-gallery/kontext_wide_water_alpine_ridge.webp", + "size": 457222, + "sha256": "sha256:bytes:18090bf07900510b2d99c7c4ab38b9e38dc680fe437def20b2ce7297265db4b8", + "contentType": "image/webp", + "purposes": [ + "runtime" + ], + "width": 1344, + "height": 768 + }, { "path": "template-gallery/layers/qwen_layered_portrait.native-layer-00.webp", "size": 103484, @@ -2456,6 +2797,17 @@ "width": 512, "height": 512 }, + { + "path": "template-gallery/longcat_clear_glass_at_the_bookshop.webp", + "size": 481278, + "sha256": "sha256:bytes:a29ccb40ac98bbda8401abaa2b25b9d61722505188056468ae18e66887f89338", + "contentType": "image/webp", + "purposes": [ + "runtime" + ], + "width": 1024, + "height": 1024 + }, { "path": "template-gallery/longcat_florist_end_of_lane.webp", "size": 423160, @@ -2740,8 +3092,8 @@ }, { "path": "template-gallery/manifest.json", - "size": 369766, - "sha256": "sha256:bytes:4cdc61e54dab42aa8d528f9fbda584ca594d05fce5016b44d9eac6f373654806", + "size": 416784, + "sha256": "sha256:bytes:f560bf35f17e3c3f5f117c90f84d4bcedbc53e7eb536f462cbdbac96069b67f5", "contentType": "application/json", "purposes": [ "runtime", @@ -2779,6 +3131,17 @@ "width": 1024, "height": 1024 }, + { + "path": "template-gallery/omnigen_cobalt_against_soft_apricot.webp", + "size": 66642, + "sha256": "sha256:bytes:305c3d2b35bc57b3151a332bc6084cbdf962337572c5e15ae3d7d546a07a1ead", + "contentType": "image/webp", + "purposes": [ + "runtime" + ], + "width": 1024, + "height": 1024 + }, { "path": "template-gallery/omnigen_tulips_after_rain.webp", "size": 293564, @@ -2856,6 +3219,39 @@ "width": 1024, "height": 1024 }, + { + "path": "template-gallery/qwen_2511_pale_amber_on_limestone.webp", + "size": 133998, + "sha256": "sha256:bytes:126660eff58b75eed79a942adc24e76f731decd65f83db098e72298141531772", + "contentType": "image/webp", + "purposes": [ + "runtime" + ], + "width": 1024, + "height": 1024 + }, + { + "path": "template-gallery/qwen_2512_cobalt_backdrop_repair.webp", + "size": 168926, + "sha256": "sha256:bytes:6b3a9c583a930c462ec1d484b71d26d97346862c2d4e4a25aa35c2062e3dfefe", + "contentType": "image/webp", + "purposes": [ + "runtime" + ], + "width": 1328, + "height": 1328 + }, + { + "path": "template-gallery/qwen_bookshop_gouache.webp", + "size": 787262, + "sha256": "sha256:bytes:555bab08051dc3a0381747c207ed241be3afd54c5c6113a8b4abf04010960201", + "contentType": "image/webp", + "purposes": [ + "runtime" + ], + "width": 1328, + "height": 1328 + }, { "path": "template-gallery/qwen_character_angles.webp", "size": 200648, @@ -2867,6 +3263,17 @@ "width": 1024, "height": 1024 }, + { + "path": "template-gallery/qwen_cobalt_on_charcoal_slate.webp", + "size": 128874, + "sha256": "sha256:bytes:3cf9cea1b23834ec9dd589b37335250885be163eb4257155d8e76a08583dade2", + "contentType": "image/webp", + "purposes": [ + "runtime" + ], + "width": 1024, + "height": 1024 + }, { "path": "template-gallery/qwen_control_image_layout.webp", "size": 100258, @@ -3549,6 +3956,42 @@ "runtime" ] }, + { + "path": "template-gallery/reviews/chroma_alpine_block_print.original-provenance.json", + "size": 1270, + "sha256": "sha256:bytes:f17d6523a55fcf5bd0c147d9a46dee5b6e7fc6363f6a08685ba8a65459f73cf2", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, + { + "path": "template-gallery/reviews/chroma_alpine_block_print.original-review.json", + "size": 882, + "sha256": "sha256:bytes:a7ba022616f2a41b3046a7ac3ca7779a6f4efc5692bc02c21dc52701354f8a01", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, + { + "path": "template-gallery/reviews/chroma_alpine_block_print.quality-review.json", + "size": 2565, + "sha256": "sha256:bytes:bb7979a051f9839fdee168737f18bf99c630f5e7edba7ab59f8e7471315d9413", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, + { + "path": "template-gallery/reviews/chroma_alpine_block_print.retained-template-provenance.json", + "size": 3669, + "sha256": "sha256:bytes:d8643c8c82d299a62068afd7b38de0d24fcfd6882585370e73fbe63402726e4a", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, { "path": "template-gallery/reviews/chroma_restored_cobalt_backdrop.original-provenance.json", "size": 1422, @@ -3855,6 +4298,42 @@ "runtime" ] }, + { + "path": "template-gallery/reviews/flux1_dev_limestone_studio_scratch_repair.original-provenance.json", + "size": 1674, + "sha256": "sha256:bytes:876f2fb80e0352d1c5d25648da72ec9324d03e46bad65e42cd487c415d952626", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, + { + "path": "template-gallery/reviews/flux1_dev_limestone_studio_scratch_repair.original-review.json", + "size": 1023, + "sha256": "sha256:bytes:9c6d1ea38c006fe11dd5e65d5c82d040e20844d8d38c680b1d45ea189b9e2282", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, + { + "path": "template-gallery/reviews/flux1_dev_limestone_studio_scratch_repair.quality-review.json", + "size": 2852, + "sha256": "sha256:bytes:1233ae9bdb89e3599b691f2bc14408f1f9dd762c3db734bb8fd828fce1f040b0", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, + { + "path": "template-gallery/reviews/flux1_dev_limestone_studio_scratch_repair.retained-template-provenance.json", + "size": 4137, + "sha256": "sha256:bytes:61e8601aaefcc918f03d5f110d57e8f26cb2149d6034c22fb9c13915ddb70324", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, { "path": "template-gallery/reviews/flux2_klein_edit.quality-review.json", "size": 4024, @@ -4179,6 +4658,78 @@ "runtime" ] }, + { + "path": "template-gallery/reviews/flux_klein_alpine_lake_panorama.original-provenance.json", + "size": 1582, + "sha256": "sha256:bytes:82e163fa04890d8549972f17c4d863ba445dd9f2f1088199737d534b807c9e97", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, + { + "path": "template-gallery/reviews/flux_klein_alpine_lake_panorama.original-review.json", + "size": 1110, + "sha256": "sha256:bytes:0af53835f9eb84a14dbbd91c1c6527b27d7e2ef05682c5c5a8b9a120599220c7", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, + { + "path": "template-gallery/reviews/flux_klein_alpine_lake_panorama.quality-review.json", + "size": 2610, + "sha256": "sha256:bytes:6903b5b197080a67979212e174d52cf4e68a85773c6b6011f8c8d0b2eb5d0271", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, + { + "path": "template-gallery/reviews/flux_klein_alpine_lake_panorama.retained-template-provenance.json", + "size": 3982, + "sha256": "sha256:bytes:0d74c14cd0dde401464e43f75a8c126b881bbbeb05bf145297ad33d575022aeb", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, + { + "path": "template-gallery/reviews/flux_klein_open_glacial_lake.original-provenance.json", + "size": 1489, + "sha256": "sha256:bytes:5b7df305704e076244a7d1fbd4e64589e7825ee96a116c0a9a6ef4c16a3231e5", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, + { + "path": "template-gallery/reviews/flux_klein_open_glacial_lake.original-review.json", + "size": 890, + "sha256": "sha256:bytes:127d7ce73ad054114252277de338834612bed27d675c1e48dc377bedb84fb237", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, + { + "path": "template-gallery/reviews/flux_klein_open_glacial_lake.quality-review.json", + "size": 2409, + "sha256": "sha256:bytes:8fbb74c11639cba4c5ab3fab926e29d8e3c703ba5830fe9305352119e962dd60", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, + { + "path": "template-gallery/reviews/flux_klein_open_glacial_lake.retained-template-provenance.json", + "size": 4104, + "sha256": "sha256:bytes:cce6957687fe79ea590c44ce56f1ac0c594f6df854c4e367e88c4509c0b880c2", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, { "path": "template-gallery/reviews/flux_kontext_edit.quality-review.json", "size": 4081, @@ -4739,6 +5290,78 @@ "runtime" ] }, + { + "path": "template-gallery/reviews/joy_plus_lavender_on_limestone.original-provenance.json", + "size": 1437, + "sha256": "sha256:bytes:1d38c6f1a9b8c9f496cfb0905e6b4e2c8dd25129110ebf28c86e1070178c1237", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, + { + "path": "template-gallery/reviews/joy_plus_lavender_on_limestone.original-review.json", + "size": 889, + "sha256": "sha256:bytes:01efaac50374f321864b496b45ee9d133b3d67a9a30ba61eddf81fd23d7204bb", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, + { + "path": "template-gallery/reviews/joy_plus_lavender_on_limestone.quality-review.json", + "size": 2644, + "sha256": "sha256:bytes:8bf5fa341804d3de8c849d40c5ac8518f954def1ba5eae8e56da820eb86d148c", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, + { + "path": "template-gallery/reviews/joy_plus_lavender_on_limestone.retained-template-provenance.json", + "size": 3715, + "sha256": "sha256:bytes:9d769bc0f109f129a0a74b77d642cd0029204a037d3bb9e0ab17c322b31e4892", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, + { + "path": "template-gallery/reviews/joyimage_base_cobalt_paper_band.original-provenance.json", + "size": 1429, + "sha256": "sha256:bytes:e8cbdf5d79e8c91cc1f85575b2a5a29fcd3a1b2b470bd08137514d71b4e157ef", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, + { + "path": "template-gallery/reviews/joyimage_base_cobalt_paper_band.original-review.json", + "size": 840, + "sha256": "sha256:bytes:7d27c8cfdbcb51dba2f6b724268469f067e1a2f85320ac168ee4415ac0446ab9", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, + { + "path": "template-gallery/reviews/joyimage_base_cobalt_paper_band.quality-review.json", + "size": 2256, + "sha256": "sha256:bytes:d2cd9b10d5095d45599db6987b5c8d43beae50b388dae281602eae6a5dd70ddb", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, + { + "path": "template-gallery/reviews/joyimage_base_cobalt_paper_band.retained-template-provenance.json", + "size": 3767, + "sha256": "sha256:bytes:e82f59c601357c4dd42e4c4a6ea7d5f71f87afbef7d4ed254e7dc724e1555319", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, { "path": "template-gallery/reviews/joyimage_herbarium_rainy_porthole.original-provenance.json", "size": 1049, @@ -4811,6 +5434,78 @@ "runtime" ] }, + { + "path": "template-gallery/reviews/kandinsky3_smoked_glass_on_limestone.original-provenance.json", + "size": 1538, + "sha256": "sha256:bytes:e62c78c152e7273c32f506b361d4cece5e2a61939ab8763078fb04111795a098", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, + { + "path": "template-gallery/reviews/kandinsky3_smoked_glass_on_limestone.original-review.json", + "size": 968, + "sha256": "sha256:bytes:307daef8829faa1835d0d7092e594aa8bf1b703c51157a8cc7581aaf1e84d437", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, + { + "path": "template-gallery/reviews/kandinsky3_smoked_glass_on_limestone.quality-review.json", + "size": 2646, + "sha256": "sha256:bytes:e6d9b0e253b694fab331fe62247c0adf47c2947d841ba8da08629522a37613ef", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, + { + "path": "template-gallery/reviews/kandinsky3_smoked_glass_on_limestone.retained-template-provenance.json", + "size": 3797, + "sha256": "sha256:bytes:5dbf90cd4b0f214fdae6e49c20ec03e38fc8552275d07e900ae737af469ea66a", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, + { + "path": "template-gallery/reviews/kontext_wide_water_alpine_ridge.original-provenance.json", + "size": 1549, + "sha256": "sha256:bytes:8f93f5553eeb580705586eda046026ac8ed8742b09defff688fd67892e131d90", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, + { + "path": "template-gallery/reviews/kontext_wide_water_alpine_ridge.original-review.json", + "size": 1047, + "sha256": "sha256:bytes:f54561af3e759232c7e01a2515d98b66c38d56d7fe8ece573ce2f83bfcbbf3f8", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, + { + "path": "template-gallery/reviews/kontext_wide_water_alpine_ridge.quality-review.json", + "size": 2400, + "sha256": "sha256:bytes:2dcf22dab88c45ead8d951f9443f61657d37eb30d07add1183a3633dbffcfe98", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, + { + "path": "template-gallery/reviews/kontext_wide_water_alpine_ridge.retained-template-provenance.json", + "size": 3986, + "sha256": "sha256:bytes:97059d8dd67e7e5a82c9c458b4c992c680235cae0fc205fde6ae3915f43f3ff7", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, { "path": "template-gallery/reviews/lcm_dawn_alpine_lake.quality-review.json", "size": 2982, @@ -4821,9 +5516,45 @@ ] }, { - "path": "template-gallery/reviews/lcm_dawn_alpine_lake.retained-template-provenance.json", - "size": 5757, - "sha256": "sha256:bytes:767b8d794460fca5a3e1c79a89aeaa2b1dcdb815d47702e1063ed35d07163247", + "path": "template-gallery/reviews/lcm_dawn_alpine_lake.retained-template-provenance.json", + "size": 5757, + "sha256": "sha256:bytes:767b8d794460fca5a3e1c79a89aeaa2b1dcdb815d47702e1063ed35d07163247", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, + { + "path": "template-gallery/reviews/longcat_clear_glass_at_the_bookshop.original-provenance.json", + "size": 1396, + "sha256": "sha256:bytes:055c3ff5cf5493c80e675b8cd97de5c448856204330c1434522cc0c91482b522", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, + { + "path": "template-gallery/reviews/longcat_clear_glass_at_the_bookshop.original-review.json", + "size": 899, + "sha256": "sha256:bytes:dabecbb61888f492a4e7d8f45e368097c7f286df24c163c8b5e753ce4553d0ff", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, + { + "path": "template-gallery/reviews/longcat_clear_glass_at_the_bookshop.quality-review.json", + "size": 2651, + "sha256": "sha256:bytes:03185586cf4d78ccfa2aae9dcb3962e82b611d03bb5fefc03bdf34851d50a9ed", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, + { + "path": "template-gallery/reviews/longcat_clear_glass_at_the_bookshop.retained-template-provenance.json", + "size": 3725, + "sha256": "sha256:bytes:8df85b747c9a5b0fe11bb20d81d64b1df7bccb96ec505aa99855adbcf9dd6e51", "contentType": "application/json", "purposes": [ "runtime" @@ -5189,6 +5920,42 @@ "runtime" ] }, + { + "path": "template-gallery/reviews/omnigen_cobalt_against_soft_apricot.original-provenance.json", + "size": 1525, + "sha256": "sha256:bytes:88ee6e3f6d910a68983aedb6b0cb553cad2341ca72627f2d6c578ecfefe1d760", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, + { + "path": "template-gallery/reviews/omnigen_cobalt_against_soft_apricot.original-review.json", + "size": 1043, + "sha256": "sha256:bytes:ae25cda076716b4dfe73095b1bcaa75418984db19fda3592f60335da9194e3e2", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, + { + "path": "template-gallery/reviews/omnigen_cobalt_against_soft_apricot.quality-review.json", + "size": 2659, + "sha256": "sha256:bytes:f81904cbc14984f2916d4d26b20a38d7e90f46aa967bead471d642c0196ad273", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, + { + "path": "template-gallery/reviews/omnigen_cobalt_against_soft_apricot.retained-template-provenance.json", + "size": 3869, + "sha256": "sha256:bytes:1ac31719c0a2fcf0c59ebf8c1f6fbcff2be9847aa23b748c1bb43a706b8f14fd", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, { "path": "template-gallery/reviews/omnigen_tulips_after_rain.original-provenance.json", "size": 1602, @@ -5405,6 +6172,114 @@ "runtime" ] }, + { + "path": "template-gallery/reviews/qwen_2511_pale_amber_on_limestone.original-provenance.json", + "size": 1390, + "sha256": "sha256:bytes:92184da315494eafd5ffb5f97e0b6b16b9adc7e2900cfe2159a74eb95f2c664d", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, + { + "path": "template-gallery/reviews/qwen_2511_pale_amber_on_limestone.original-review.json", + "size": 884, + "sha256": "sha256:bytes:c927ac13e8f20facd97ba72db03ae4fc658d5b2b5120a9473d2bcd280e01356c", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, + { + "path": "template-gallery/reviews/qwen_2511_pale_amber_on_limestone.quality-review.json", + "size": 2604, + "sha256": "sha256:bytes:1448c1f4aeddd0ca2238d62a91db71644d723172bad44eee0f62618f89580160", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, + { + "path": "template-gallery/reviews/qwen_2511_pale_amber_on_limestone.retained-template-provenance.json", + "size": 3718, + "sha256": "sha256:bytes:0d91cc6e5417f0defc5ef7615cc85f19de32bf6732e01e75d6051b94be8df0d8", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, + { + "path": "template-gallery/reviews/qwen_2512_cobalt_backdrop_repair.original-provenance.json", + "size": 1644, + "sha256": "sha256:bytes:aff76ebb3392dc74718791d4d3e964e12ed333818e3e3004c2b00efdb1065cda", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, + { + "path": "template-gallery/reviews/qwen_2512_cobalt_backdrop_repair.original-review.json", + "size": 960, + "sha256": "sha256:bytes:87b770beaa2fa2fbbc469450467e7ba7fd0c1f79e227cc24ba1e226e8b4af900", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, + { + "path": "template-gallery/reviews/qwen_2512_cobalt_backdrop_repair.quality-review.json", + "size": 2646, + "sha256": "sha256:bytes:cfe7231165788dcb08f50c7d45ab5f0953fd96c92da8d1ecd428af7d0a20cbce", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, + { + "path": "template-gallery/reviews/qwen_2512_cobalt_backdrop_repair.retained-template-provenance.json", + "size": 4098, + "sha256": "sha256:bytes:7303db8a55bb4bfb9947f5d501be2907de1da8ebe0e8972578567e04d33ad336", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, + { + "path": "template-gallery/reviews/qwen_bookshop_gouache.original-provenance.json", + "size": 1272, + "sha256": "sha256:bytes:4af138819ecda66dc7754a8ea6886ca1bb324540a235b73b14c3d2bb547e58de", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, + { + "path": "template-gallery/reviews/qwen_bookshop_gouache.original-review.json", + "size": 839, + "sha256": "sha256:bytes:3b34b326d7200df17d7e8ef42964bf5398dd8216fef84e09ec974c7007101271", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, + { + "path": "template-gallery/reviews/qwen_bookshop_gouache.quality-review.json", + "size": 2431, + "sha256": "sha256:bytes:94fe1a1dd8188e3f6860c7154e414c605cc8f94e79524fa5dc6f0bb557f23a98", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, + { + "path": "template-gallery/reviews/qwen_bookshop_gouache.retained-template-provenance.json", + "size": 3653, + "sha256": "sha256:bytes:7b9356ca691735f772c1a0e914393459401f84cd012e782e4f0d940fac255648", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, { "path": "template-gallery/reviews/qwen_character_angles.quality-review.json", "size": 4382, @@ -5423,6 +6298,42 @@ "runtime" ] }, + { + "path": "template-gallery/reviews/qwen_cobalt_on_charcoal_slate.original-provenance.json", + "size": 1377, + "sha256": "sha256:bytes:e792e4d45eff40be63575b5d1b983d59aabdecf004890c98e828f6b58a1d549b", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, + { + "path": "template-gallery/reviews/qwen_cobalt_on_charcoal_slate.original-review.json", + "size": 894, + "sha256": "sha256:bytes:d2caf52b07dff116307a43afe1f087fe17cb98f2daa8549ec5e5c2331e0fac2f", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, + { + "path": "template-gallery/reviews/qwen_cobalt_on_charcoal_slate.quality-review.json", + "size": 2634, + "sha256": "sha256:bytes:492e8a71b24369a4f96ae8e7781fe6926274d5871066c2ae371165026bb585fc", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, + { + "path": "template-gallery/reviews/qwen_cobalt_on_charcoal_slate.retained-template-provenance.json", + "size": 3688, + "sha256": "sha256:bytes:416a58ebfb2db64e9d1e75995cd8b6e8151b60a60600c9bfe33a472b2c31d8bb", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, { "path": "template-gallery/reviews/qwen_control_image_layout.quality-review.json", "size": 3645, @@ -6161,6 +7072,42 @@ "runtime" ] }, + { + "path": "template-gallery/reviews/sdxl_blue_glass_on_linen.original-provenance.json", + "size": 1408, + "sha256": "sha256:bytes:27a97a45a77e030c923d8bdd21038de3f89a94132da92d6313179f752949ac89", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, + { + "path": "template-gallery/reviews/sdxl_blue_glass_on_linen.original-review.json", + "size": 807, + "sha256": "sha256:bytes:fabaeafe1e26297e9f1601776a60ecb99aff54d8bcd793f59efcdbb24aff75ca", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, + { + "path": "template-gallery/reviews/sdxl_blue_glass_on_linen.quality-review.json", + "size": 2364, + "sha256": "sha256:bytes:ac2ad3f014c2418214a1f5c0d24da1c6e0f854b5f465b5f73fc86a49f691e690", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, + { + "path": "template-gallery/reviews/sdxl_blue_glass_on_linen.retained-template-provenance.json", + "size": 3671, + "sha256": "sha256:bytes:bc7bc5349f88639d71d68f5fbd560c09bae488e4240cd5c53c9731904f655896", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, { "path": "template-gallery/reviews/sdxl_canny_adapter_glass_study.original-provenance.json", "size": 1220, @@ -6305,6 +7252,42 @@ "runtime" ] }, + { + "path": "template-gallery/reviews/sdxl_pag_cobalt_wall.original-provenance.json", + "size": 1601, + "sha256": "sha256:bytes:73001e41f7161d3d7f501d8901c64ea75b69926342d874f517161846bbc2c65e", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, + { + "path": "template-gallery/reviews/sdxl_pag_cobalt_wall.original-review.json", + "size": 1074, + "sha256": "sha256:bytes:9c33914daf546f076a1cd4248d62bca41f48046bbf32641336a61e6af8ce5ae6", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, + { + "path": "template-gallery/reviews/sdxl_pag_cobalt_wall.quality-review.json", + "size": 2807, + "sha256": "sha256:bytes:792bcb8050a146a925e0a3459c499e41ca08f710496292775ed7a85acf4e1ddf", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, + { + "path": "template-gallery/reviews/sdxl_pag_cobalt_wall.retained-template-provenance.json", + "size": 4118, + "sha256": "sha256:bytes:69442605e67b4da6af5ab3971559219066b7c569139088412a65945487509612", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, { "path": "template-gallery/reviews/sdxl_pix2pix_pale_amber_glass.original-provenance.json", "size": 1287, @@ -6883,6 +7866,78 @@ "runtime" ] }, + { + "path": "template-gallery/reviews/zimage_rocky_glacial_shores.original-provenance.json", + "size": 1571, + "sha256": "sha256:bytes:f6f52781f50d76e5f47500b56a32d904ad2fe1c05ffc3db32232b0c3b1811aa7", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, + { + "path": "template-gallery/reviews/zimage_rocky_glacial_shores.original-review.json", + "size": 1090, + "sha256": "sha256:bytes:3b2e791eb5191adbb9deb87721e44a602c3078e85930124f8b0de631ff6752a0", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, + { + "path": "template-gallery/reviews/zimage_rocky_glacial_shores.quality-review.json", + "size": 2543, + "sha256": "sha256:bytes:9017baf79260e6a9ae4b85b8663ef71de2ccff3edad73c1275562af14d3b8750", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, + { + "path": "template-gallery/reviews/zimage_rocky_glacial_shores.retained-template-provenance.json", + "size": 3949, + "sha256": "sha256:bytes:625f42767a68845e1dd2e09a4760d7938138c8c8a8b8a196d3748184b0bfa44d", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, + { + "path": "template-gallery/reviews/zimage_seamless_cobalt_backdrop.original-provenance.json", + "size": 1582, + "sha256": "sha256:bytes:d4a52b23af4248329ef8232b4058b8fcf3c877ddfcfc9b20c4e27a3aacadfa9f", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, + { + "path": "template-gallery/reviews/zimage_seamless_cobalt_backdrop.original-review.json", + "size": 940, + "sha256": "sha256:bytes:b112c13caaa7ec635f2dfc8a4dc8fd2304778d1bc7aa5f1dab5c6c430ed48704", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, + { + "path": "template-gallery/reviews/zimage_seamless_cobalt_backdrop.quality-review.json", + "size": 2592, + "sha256": "sha256:bytes:0d1d91ea0c9d9c165f2ab152c8a6405e6bb43ad26dc886a844367c051ea3ea8c", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, + { + "path": "template-gallery/reviews/zimage_seamless_cobalt_backdrop.retained-template-provenance.json", + "size": 4101, + "sha256": "sha256:bytes:dc64773a27bdd47d79712c11274cbdf9b3bde35a576d2e96be1ef1dc12972361", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, { "path": "template-gallery/runtime-inputs/assets/0ea2dd6fd5c75c7b49e5677c3ff74666b6e8b3d3cf7f62ba1ad416253a76f63b.webp", "size": 91186, @@ -7604,6 +8659,17 @@ "width": 1024, "height": 1024 }, + { + "path": "template-gallery/sdxl_blue_glass_on_linen.webp", + "size": 154298, + "sha256": "sha256:bytes:a6a5af6e608dfc8de66c3ad394aaf39c0b82692cf89619979f6a3997a7fbec62", + "contentType": "image/webp", + "purposes": [ + "runtime" + ], + "width": 1024, + "height": 1024 + }, { "path": "template-gallery/sdxl_canny_adapter_glass_study.webp", "size": 140860, @@ -7648,6 +8714,17 @@ "width": 1024, "height": 1024 }, + { + "path": "template-gallery/sdxl_pag_cobalt_wall.webp", + "size": 119358, + "sha256": "sha256:bytes:dc976b97d1919d526a84c397596fbb4b440edf3cf53fad156f07fba46810e8de", + "contentType": "image/webp", + "purposes": [ + "runtime" + ], + "width": 1024, + "height": 1024 + }, { "path": "template-gallery/sdxl_pix2pix_pale_amber_glass.webp", "size": 135420, @@ -8490,11 +9567,33 @@ ], "width": 640, "height": 640 + }, + { + "path": "template-gallery/zimage_rocky_glacial_shores.webp", + "size": 532258, + "sha256": "sha256:bytes:7a94fbad28ad8901a49b53de126a2bd9e34077ad7402efa15caeaa7b970a0cae", + "contentType": "image/webp", + "purposes": [ + "runtime" + ], + "width": 1344, + "height": 768 + }, + { + "path": "template-gallery/zimage_seamless_cobalt_backdrop.webp", + "size": 119866, + "sha256": "sha256:bytes:8149300a89e8cc784540a3fa663e83ca708d68d250a57710266f8a1e126fd4b5", + "contentType": "image/webp", + "purposes": [ + "runtime" + ], + "width": 1024, + "height": 1024 } ], - "assetSetId": "sha256:canonical-json:1dd39d0a777c1194ca6722527d6b1f8dd1f9f02e89b64fdc2ef056a64748d189", + "assetSetId": "sha256:canonical-json:649f3cf808a22d61c582c6c78e4f62b70fd4854f19d78a8d0fd442d7986fdb30", "status": "ready", - "assetCount": 870, - "totalBytes": 1061074979, + "assetCount": 983, + "totalBytes": 1080562802, "missingAssets": [] } diff --git a/public/template-gallery/manifest.json b/public/template-gallery/manifest.json index a07d7894..76796c27 100644 --- a/public/template-gallery/manifest.json +++ b/public/template-gallery/manifest.json @@ -4736,6 +4736,605 @@ "height": 1024, "approvedOriginalReviewPath": "/template-gallery/reviews/longcat_florist_end_of_lane.original-review.json", "approvedOriginalProvenancePath": "/template-gallery/reviews/longcat_florist_end_of_lane.original-provenance.json" + }, + { + "templateId": "kandinsky3_smoked_glass_on_limestone", + "templateLockHash": "tpl_1223236b", + "promptSettingsHash": "ps_d94df476", + "modelRevision": "kandinsky-community/kandinsky-3@bf79e6c219da8a94abb50235fdc4567eb8fb4632", + "runtimeFingerprint": "sha256:stable-runtime-v1:23c530c26adc3d75893644906dbad799a8f964739e2cbb5538d522a6135e9e82", + "graphHash": "sha256:canonical-graph-v1:afdbaf12db152f0df94876cdcf5ffc96e5ba2ccbabc71331981e05f9259ae8be", + "proofLockHash": "sha256:retained-template-association-v1:b75c7d8106b451211c6f16b6261633884cd0f66f186e37dcf51e59f030eaa801", + "backendSourceFingerprint": "sha256:backend-source-v1:175112f2430928958bd90dc5ae78b50ce0a54403e42e28cfc68096945d05fbe6", + "backendContractFingerprint": "sha256:backend-contract-v1:315617df789a8a5f57426692318e197c13786098718305edd1927471b5b9c194", + "modelCommit": "bf79e6c219da8a94abb50235fdc4567eb8fb4632", + "templateRevisionHash": "196588c637d27503fb83fdcd1b294e9b3e7cad61436214751f92a1c6aaeb7361", + "provenancePath": "/template-gallery/reviews/kandinsky3_smoked_glass_on_limestone.retained-template-provenance.json", + "provenanceHash": "sha256:canonical-json:91cb953e5fd879a601a3f097288c2987e4049b6b63c8d02ef098bfb79336f6b8", + "outputPath": "/template-gallery/kandinsky3_smoked_glass_on_limestone.webp", + "thumbnailPath": "/template-gallery/kandinsky3_smoked_glass_on_limestone.webp", + "mediaHash": "sha256:decoded-rgba:4f3c91a23235ecc34602400098a1bd93b6c214fb63f4c06e25a91d3794687515", + "mediaType": "image", + "verificationTimestamp": "2026-11-24T16:10:32.320Z", + "verificationStatus": "reviewed", + "qualityReviewStatus": "approved_reviewed", + "qualityReviewHash": "sha256:canonical-json:b20193cbe8ad4c80d0d3fa6aa139c349894bc7e783734fd32710c734057410ba", + "qualityReviewPath": "/template-gallery/reviews/kandinsky3_smoked_glass_on_limestone.quality-review.json", + "reviewer": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25T07:18:34.900Z", + "beforePath": "/template-gallery/inputs/kandinsky3_smoked_glass_on_limestone.before.png", + "beforeMediaHash": "sha256:bytes:0a41a9c56b98945e60c96ef796660c35b2cab7bf0b36d5e84ab0d97ef97f0a5a", + "afterPath": "/template-gallery/kandinsky3_smoked_glass_on_limestone.webp", + "width": 1024, + "height": 1024, + "approvedOriginalReviewPath": "/template-gallery/reviews/kandinsky3_smoked_glass_on_limestone.original-review.json", + "approvedOriginalProvenancePath": "/template-gallery/reviews/kandinsky3_smoked_glass_on_limestone.original-provenance.json" + }, + { + "templateId": "longcat_clear_glass_at_the_bookshop", + "templateLockHash": "tpl_cae3d7ea", + "promptSettingsHash": "ps_1052bdee", + "modelRevision": "meituan-longcat/LongCat-Image-Edit@7b54ef423aa7854be7861600024be5c56ab7875a", + "runtimeFingerprint": "sha256:stable-runtime-v1:09299da9928e8a806b807da3711f9008e79b20b15e939dc6e3448811565b1db1", + "graphHash": "sha256:canonical-graph-v1:9eb6f51ba74d17909236f695506b2b08feb1855e4c217a6d79b70f30543380c5", + "proofLockHash": "sha256:retained-template-association-v1:b2f4cfecc339abd61ec0671f0a5e295f57c4359871a9c94923d3eaae0cba9386", + "backendSourceFingerprint": "sha256:backend-source-v1:43f2ed10792fc6167b963166287cf7d5a0429afa26029e6455b0418e2123be86", + "backendContractFingerprint": "sha256:backend-contract-v1:315617df789a8a5f57426692318e197c13786098718305edd1927471b5b9c194", + "modelCommit": "7b54ef423aa7854be7861600024be5c56ab7875a", + "templateRevisionHash": "057e11900f267163730bdb1009b1be2118ab05c6d94815d4bf4e5af86da75fbe", + "provenancePath": "/template-gallery/reviews/longcat_clear_glass_at_the_bookshop.retained-template-provenance.json", + "provenanceHash": "sha256:canonical-json:76845cb101ea201150ef82b9820b8c4a9273f07fcaf85ab476208707863930ac", + "outputPath": "/template-gallery/longcat_clear_glass_at_the_bookshop.webp", + "thumbnailPath": "/template-gallery/longcat_clear_glass_at_the_bookshop.webp", + "mediaHash": "sha256:decoded-rgba:3a17fb1c00700226f728e5083bd3faf3ed020037e3843df373ae21cd21fa1203", + "mediaType": "image", + "verificationTimestamp": "2026-11-24T01:37:17.476Z", + "verificationStatus": "reviewed", + "qualityReviewStatus": "approved_reviewed", + "qualityReviewHash": "sha256:canonical-json:073263bd1639666277122b5106ec10c21d28d380bb7ff5433061f50222112fdf", + "qualityReviewPath": "/template-gallery/reviews/longcat_clear_glass_at_the_bookshop.quality-review.json", + "reviewer": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25T07:18:34.900Z", + "beforePath": "/template-gallery/inputs/longcat_clear_glass_at_the_bookshop.before.webp", + "beforeMediaHash": "sha256:bytes:ff045be510a0e88cbab69bbe8c3794dd26bd19036bdec26a63a5b6ea5a11bc66", + "afterPath": "/template-gallery/longcat_clear_glass_at_the_bookshop.webp", + "width": 1024, + "height": 1024, + "approvedOriginalReviewPath": "/template-gallery/reviews/longcat_clear_glass_at_the_bookshop.original-review.json", + "approvedOriginalProvenancePath": "/template-gallery/reviews/longcat_clear_glass_at_the_bookshop.original-provenance.json" + }, + { + "templateId": "qwen_2511_pale_amber_on_limestone", + "templateLockHash": "tpl_46b7f4fe", + "promptSettingsHash": "ps_5dd80333", + "modelRevision": "Qwen/Qwen-Image-Edit-2511@6f3ccc0b56e431dc6a0c2b2039706d7d26f22cb9", + "runtimeFingerprint": "sha256:stable-runtime-v1:b4f7ac42e91d1017298bdaaf84898cb4920620d09413be1e5114f89f0b4ba8a6", + "graphHash": "sha256:canonical-graph-v1:487c0e08495ef2eb93b734132375a8ad84ae45d6941454325daa94b03d1e5205", + "proofLockHash": "sha256:retained-template-association-v1:3a879d17a38700eb8b1421ea22252722e5dba02535ea16655111e65f393b0271", + "backendSourceFingerprint": "sha256:backend-source-v1:e3aea8f8d102572ad10fdd0700f0c42d92061e864ede89777efcd6a3269770a8", + "backendContractFingerprint": "sha256:backend-contract-v1:315617df789a8a5f57426692318e197c13786098718305edd1927471b5b9c194", + "modelCommit": "6f3ccc0b56e431dc6a0c2b2039706d7d26f22cb9", + "templateRevisionHash": "196d20bc8bec725ddcc2674124e4815e019d3b054284f444add226044ed195e5", + "provenancePath": "/template-gallery/reviews/qwen_2511_pale_amber_on_limestone.retained-template-provenance.json", + "provenanceHash": "sha256:canonical-json:6ccd42b3d31a4a7ce2c74746fbba86e240c1753ca732535700ee0ccc395501ef", + "outputPath": "/template-gallery/qwen_2511_pale_amber_on_limestone.webp", + "thumbnailPath": "/template-gallery/qwen_2511_pale_amber_on_limestone.webp", + "mediaHash": "sha256:decoded-rgba:586793ea06566035d41c61425f00e5973d0a09bc543ea2ab012d3372b3d3d6a8", + "mediaType": "image", + "verificationTimestamp": "2026-11-23T18:58:07.960Z", + "verificationStatus": "reviewed", + "qualityReviewStatus": "approved_reviewed", + "qualityReviewHash": "sha256:canonical-json:0c3557091b038900f33498cc641f10c0ab1b65f4a29f89f2e69542c9f81f89ec", + "qualityReviewPath": "/template-gallery/reviews/qwen_2511_pale_amber_on_limestone.quality-review.json", + "reviewer": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25T07:18:34.900Z", + "beforePath": "/template-gallery/inputs/qwen_2511_pale_amber_on_limestone.before.png", + "beforeMediaHash": "sha256:bytes:0a41a9c56b98945e60c96ef796660c35b2cab7bf0b36d5e84ab0d97ef97f0a5a", + "afterPath": "/template-gallery/qwen_2511_pale_amber_on_limestone.webp", + "width": 1024, + "height": 1024, + "approvedOriginalReviewPath": "/template-gallery/reviews/qwen_2511_pale_amber_on_limestone.original-review.json", + "approvedOriginalProvenancePath": "/template-gallery/reviews/qwen_2511_pale_amber_on_limestone.original-provenance.json" + }, + { + "templateId": "qwen_cobalt_on_charcoal_slate", + "templateLockHash": "tpl_3acb8169", + "promptSettingsHash": "ps_94f59a29", + "modelRevision": "Qwen/Qwen-Image-Edit@ac7f9318f633fc4b5778c59367c8128225f1e3de", + "runtimeFingerprint": "sha256:stable-runtime-v1:bb89a9c621046bbcbfa9115275c6bf2e9d6594b9bf53c57885e51db2ec8f0fff", + "graphHash": "sha256:canonical-graph-v1:289e7be3760372b115a67ff25d933895d02e06659182553071b50baebf039160", + "proofLockHash": "sha256:retained-template-association-v1:4d87f88ecac26848165a85ea1c079b32c3fdf39538b2cd76af0a6d5f7cc70252", + "backendSourceFingerprint": "sha256:backend-source-v1:e3aea8f8d102572ad10fdd0700f0c42d92061e864ede89777efcd6a3269770a8", + "backendContractFingerprint": "sha256:backend-contract-v1:315617df789a8a5f57426692318e197c13786098718305edd1927471b5b9c194", + "modelCommit": "ac7f9318f633fc4b5778c59367c8128225f1e3de", + "templateRevisionHash": "335c41c4fab432f8ee590dc902ae7d63de98f46464642e1533a3479d339348df", + "provenancePath": "/template-gallery/reviews/qwen_cobalt_on_charcoal_slate.retained-template-provenance.json", + "provenanceHash": "sha256:canonical-json:3cae98c4ad01e19432bf41924dddbbc2465455b760019ae7f9d8e54a7dce4318", + "outputPath": "/template-gallery/qwen_cobalt_on_charcoal_slate.webp", + "thumbnailPath": "/template-gallery/qwen_cobalt_on_charcoal_slate.webp", + "mediaHash": "sha256:decoded-rgba:c655a712b696cbc10cf8b8a019a9f4a252d3f23d8443a922ec082fa79a391844", + "mediaType": "image", + "verificationTimestamp": "2026-11-23T21:05:09.116Z", + "verificationStatus": "reviewed", + "qualityReviewStatus": "approved_reviewed", + "qualityReviewHash": "sha256:canonical-json:d10391c4def9be43d1c23aa9415f09d0a75fe08167decb0354bb7aa0b59df3a4", + "qualityReviewPath": "/template-gallery/reviews/qwen_cobalt_on_charcoal_slate.quality-review.json", + "reviewer": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25T07:18:34.900Z", + "beforePath": "/template-gallery/inputs/qwen_cobalt_on_charcoal_slate.before.png", + "beforeMediaHash": "sha256:bytes:0a41a9c56b98945e60c96ef796660c35b2cab7bf0b36d5e84ab0d97ef97f0a5a", + "afterPath": "/template-gallery/qwen_cobalt_on_charcoal_slate.webp", + "width": 1024, + "height": 1024, + "approvedOriginalReviewPath": "/template-gallery/reviews/qwen_cobalt_on_charcoal_slate.original-review.json", + "approvedOriginalProvenancePath": "/template-gallery/reviews/qwen_cobalt_on_charcoal_slate.original-provenance.json" + }, + { + "templateId": "joy_plus_lavender_on_limestone", + "templateLockHash": "tpl_5fc91f78", + "promptSettingsHash": "ps_5dff34eb", + "modelRevision": "jdopensource/JoyAI-Image-Edit-Plus-Diffusers@c2686460c7b64d8aa11bc4d0da423fb316b33f9e", + "runtimeFingerprint": "sha256:stable-runtime-v1:72817a55bd6287e5eb6b44a7e6b57ede1f5df18540aa3b9df74a75ec2253a912", + "graphHash": "sha256:canonical-graph-v1:1f09b68538b0723b1bea8f991a74c94eebbfffd3db4ecf3be5fdee198c7db694", + "proofLockHash": "sha256:retained-template-association-v1:209f8ae6d365d455d56a4356b01ee0416999816467fba730c7fc3f85bed5ae5e", + "backendSourceFingerprint": "sha256:backend-source-v1:d275bc94517015b221a9a8b5aea7572ec68c491060855c7895526e1ba640796d", + "backendContractFingerprint": "sha256:backend-contract-v1:315617df789a8a5f57426692318e197c13786098718305edd1927471b5b9c194", + "modelCommit": "c2686460c7b64d8aa11bc4d0da423fb316b33f9e", + "templateRevisionHash": "448dbfb62c1255097be44eff481ff2c89ff04c31415faa5fe86f22a72a71fe4f", + "provenancePath": "/template-gallery/reviews/joy_plus_lavender_on_limestone.retained-template-provenance.json", + "provenanceHash": "sha256:canonical-json:966b971f3be8c3919cfdafa6cadbe230294a8f8a96ec1121ef25db16bd4891ce", + "outputPath": "/template-gallery/joy_plus_lavender_on_limestone.webp", + "thumbnailPath": "/template-gallery/joy_plus_lavender_on_limestone.webp", + "mediaHash": "sha256:decoded-rgba:3e7d208ea83a0e64b2219f8dc79e15949e831a279084a38b77ec4b86e82acb3b", + "mediaType": "image", + "verificationTimestamp": "2026-11-24T04:13:54.287Z", + "verificationStatus": "reviewed", + "qualityReviewStatus": "approved_reviewed", + "qualityReviewHash": "sha256:canonical-json:bc52b4543f8f29bdff96e1a815028b1bdd6db3143b566a997614517413955b0a", + "qualityReviewPath": "/template-gallery/reviews/joy_plus_lavender_on_limestone.quality-review.json", + "reviewer": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25T07:18:34.900Z", + "beforePath": "/template-gallery/inputs/joy_plus_lavender_on_limestone.before.png", + "beforeMediaHash": "sha256:bytes:0a41a9c56b98945e60c96ef796660c35b2cab7bf0b36d5e84ab0d97ef97f0a5a", + "afterPath": "/template-gallery/joy_plus_lavender_on_limestone.webp", + "width": 1024, + "height": 1024, + "approvedOriginalReviewPath": "/template-gallery/reviews/joy_plus_lavender_on_limestone.original-review.json", + "approvedOriginalProvenancePath": "/template-gallery/reviews/joy_plus_lavender_on_limestone.original-provenance.json" + }, + { + "templateId": "omnigen_cobalt_against_soft_apricot", + "templateLockHash": "tpl_843ac3b0", + "promptSettingsHash": "ps_5ed41c97", + "modelRevision": "Shitao/OmniGen-v1-diffusers@016e2f61d12a98303f6bbdf122687694d7984268", + "runtimeFingerprint": "sha256:stable-runtime-v1:de99e7b1729318c3e5b2dde98b51e5feb07ae329310f9b2da76831df1410cae7", + "graphHash": "sha256:canonical-graph-v1:6603d5410b5cd5b8b8fee5d4c54f0fa27be81a6e0989fa470a07fa94f1ac7e0a", + "proofLockHash": "sha256:retained-template-association-v1:9d7cd58492177356cc467a3aae5a9e0131c1c7ef70c02d5caac07ec9d651b805", + "backendSourceFingerprint": "sha256:backend-source-v1:b29a5b0d317aaa781ae2a5205b46b518eea5a3d68a214eb0968dba4ac0660af7", + "backendContractFingerprint": "sha256:backend-contract-v1:315617df789a8a5f57426692318e197c13786098718305edd1927471b5b9c194", + "modelCommit": "016e2f61d12a98303f6bbdf122687694d7984268", + "templateRevisionHash": "932ee2726d371c73f19521cf7e50806fb86a95394047d6207a5cee3007e57f00", + "provenancePath": "/template-gallery/reviews/omnigen_cobalt_against_soft_apricot.retained-template-provenance.json", + "provenanceHash": "sha256:canonical-json:8a62b99be196b227aadc83c30d17fda95773e47f3b25e16764754f9f01875e29", + "outputPath": "/template-gallery/omnigen_cobalt_against_soft_apricot.webp", + "thumbnailPath": "/template-gallery/omnigen_cobalt_against_soft_apricot.webp", + "mediaHash": "sha256:decoded-rgba:eae6a55a86a2ea12612f845d9e95158dbeee60b9a735a6b5b2ba3f2cf2c41f40", + "mediaType": "image", + "verificationTimestamp": "2026-11-25T02:43:28.002Z", + "verificationStatus": "reviewed", + "qualityReviewStatus": "approved_reviewed", + "qualityReviewHash": "sha256:canonical-json:36592cbd9bd4143d41ed230ead20b9aee1acff35c9d503f35cb465d3fc569cce", + "qualityReviewPath": "/template-gallery/reviews/omnigen_cobalt_against_soft_apricot.quality-review.json", + "reviewer": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25T07:18:34.900Z", + "beforePath": "/template-gallery/inputs/omnigen_cobalt_against_soft_apricot.before.png", + "beforeMediaHash": "sha256:bytes:0a41a9c56b98945e60c96ef796660c35b2cab7bf0b36d5e84ab0d97ef97f0a5a", + "afterPath": "/template-gallery/omnigen_cobalt_against_soft_apricot.webp", + "width": 1024, + "height": 1024, + "approvedOriginalReviewPath": "/template-gallery/reviews/omnigen_cobalt_against_soft_apricot.original-review.json", + "approvedOriginalProvenancePath": "/template-gallery/reviews/omnigen_cobalt_against_soft_apricot.original-provenance.json" + }, + { + "templateId": "flux_klein_alpine_lake_panorama", + "templateLockHash": "tpl_044f3f0c", + "promptSettingsHash": "ps_21d55461", + "modelRevision": "black-forest-labs/FLUX.2-klein-4B@e7b7dc27f91deacad38e78976d1f2b499d76a294", + "runtimeFingerprint": "sha256:stable-runtime-v1:68373e32096bddb5698b4ba7e98ffad928aa0c82a73b4199795ebb05cc45ecc6", + "graphHash": "sha256:canonical-graph-v1:2989815bea79d34490a6f78257eac8c818445145dbd6adaceb2b5ad86a6fcf4a", + "proofLockHash": "sha256:retained-template-association-v1:ffaf5f17796236720c19f5d02cdcb7989c2bb2b058effdd29cc2dd1592574964", + "backendSourceFingerprint": "sha256:backend-source-v1:e3aea8f8d102572ad10fdd0700f0c42d92061e864ede89777efcd6a3269770a8", + "backendContractFingerprint": "sha256:backend-contract-v1:06f986600338dc08fb5d1e639bfad55384f5b15ca0c97c2aeb7ed42a8c245594", + "modelCommit": "e7b7dc27f91deacad38e78976d1f2b499d76a294", + "templateRevisionHash": "f90f8a8162586ea0e94260bb3b332de2885bb642d0776a0a104b3495a593cc6d", + "provenancePath": "/template-gallery/reviews/flux_klein_alpine_lake_panorama.retained-template-provenance.json", + "provenanceHash": "sha256:canonical-json:9a89ac469a4015d30e99c27de6ea9faff9be67610f5ad0ac3c592af5ed1eea27", + "outputPath": "/template-gallery/flux_klein_alpine_lake_panorama.webp", + "thumbnailPath": "/template-gallery/flux_klein_alpine_lake_panorama.webp", + "mediaHash": "sha256:decoded-rgba:6c5b5383c328ec744a440296d811a4f3c1c49470319ba9093cee2a12364c9ea1", + "mediaType": "image", + "verificationTimestamp": "2026-11-23T21:08:09.132Z", + "verificationStatus": "reviewed", + "qualityReviewStatus": "approved_reviewed", + "qualityReviewHash": "sha256:canonical-json:303762606e606e0746284c5a396dbf6eca4ca94e658936e33804dcce7b019c93", + "qualityReviewPath": "/template-gallery/reviews/flux_klein_alpine_lake_panorama.quality-review.json", + "reviewer": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25T07:18:34.900Z", + "beforePath": "/template-gallery/inputs/flux_klein_alpine_lake_panorama.before.png", + "beforeMediaHash": "sha256:bytes:50270382b4b730b87f79b775accaeeb81f3ff8885cd3d2cea94830206fbc181b", + "afterPath": "/template-gallery/flux_klein_alpine_lake_panorama.webp", + "width": 1344, + "height": 768, + "approvedOriginalReviewPath": "/template-gallery/reviews/flux_klein_alpine_lake_panorama.original-review.json", + "approvedOriginalProvenancePath": "/template-gallery/reviews/flux_klein_alpine_lake_panorama.original-provenance.json" + }, + { + "templateId": "zimage_rocky_glacial_shores", + "templateLockHash": "tpl_c88fe575", + "promptSettingsHash": "ps_6b582e00", + "modelRevision": "Tongyi-MAI/Z-Image-Turbo@f332072aa78be7aecdf3ee76d5c247082da564a6", + "runtimeFingerprint": "sha256:stable-runtime-v1:eedc99a4c3b763613ba8b59b8567915152fa71aea3b24edc4c6168b8769551d2", + "graphHash": "sha256:canonical-graph-v1:f7b725ec789f566f496f4afe4414288f55289d3180b2722f47f855b0cf2c2a39", + "proofLockHash": "sha256:retained-template-association-v1:dfb4afb6161542ae2520be79838bce585d2cac138e0acb0afaac389a67f5c7b4", + "backendSourceFingerprint": "sha256:backend-source-v1:e3aea8f8d102572ad10fdd0700f0c42d92061e864ede89777efcd6a3269770a8", + "backendContractFingerprint": "sha256:backend-contract-v1:06f986600338dc08fb5d1e639bfad55384f5b15ca0c97c2aeb7ed42a8c245594", + "modelCommit": "f332072aa78be7aecdf3ee76d5c247082da564a6", + "templateRevisionHash": "67bc5216f976bce75a6793c5eb33181b777828c34fb7e0573d31073d2ad42bc9", + "provenancePath": "/template-gallery/reviews/zimage_rocky_glacial_shores.retained-template-provenance.json", + "provenanceHash": "sha256:canonical-json:c9c0033619e279d6eaeaf125753800ea9bf1545931a162d42b165f1f2889aa03", + "outputPath": "/template-gallery/zimage_rocky_glacial_shores.webp", + "thumbnailPath": "/template-gallery/zimage_rocky_glacial_shores.webp", + "mediaHash": "sha256:decoded-rgba:8b384157a9e6f44ef941216d17dd54e53ffb20a242727ec36d0ad7bf5cbf4be3", + "mediaType": "image", + "verificationTimestamp": "2026-11-23T20:16:17.605Z", + "verificationStatus": "reviewed", + "qualityReviewStatus": "approved_reviewed", + "qualityReviewHash": "sha256:canonical-json:b1d91e2e19bc68f5cb1633b8b3116d686eaed5ba8833090e1ae077d76649cc1d", + "qualityReviewPath": "/template-gallery/reviews/zimage_rocky_glacial_shores.quality-review.json", + "reviewer": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25T07:18:34.900Z", + "beforePath": "/template-gallery/inputs/zimage_rocky_glacial_shores.before.png", + "beforeMediaHash": "sha256:bytes:50270382b4b730b87f79b775accaeeb81f3ff8885cd3d2cea94830206fbc181b", + "afterPath": "/template-gallery/zimage_rocky_glacial_shores.webp", + "width": 1344, + "height": 768, + "approvedOriginalReviewPath": "/template-gallery/reviews/zimage_rocky_glacial_shores.original-review.json", + "approvedOriginalProvenancePath": "/template-gallery/reviews/zimage_rocky_glacial_shores.original-provenance.json" + }, + { + "templateId": "qwen_bookshop_gouache", + "templateLockHash": "tpl_bb0efb52", + "promptSettingsHash": "ps_f2c73a20", + "modelRevision": "Qwen/Qwen-Image-2512@25468b98e3276ca6700de15c6628e51b7de54a26", + "runtimeFingerprint": "sha256:stable-runtime-v1:de99e7b1729318c3e5b2dde98b51e5feb07ae329310f9b2da76831df1410cae7", + "graphHash": "sha256:canonical-graph-v1:7c05a757728207dbd039194383498c67578647f594c51042bd041297584d99c5", + "proofLockHash": "sha256:retained-template-association-v1:598a0e97c2455c0fd838f615a9647b9602065d049670a06a803bf1e2183eddf2", + "backendSourceFingerprint": "sha256:backend-source-v1:b29a5b0d317aaa781ae2a5205b46b518eea5a3d68a214eb0968dba4ac0660af7", + "backendContractFingerprint": "sha256:backend-contract-v1:315617df789a8a5f57426692318e197c13786098718305edd1927471b5b9c194", + "modelCommit": "25468b98e3276ca6700de15c6628e51b7de54a26", + "templateRevisionHash": "3163da25258525f8cb2c8a71b64a89e5445424ed1ad0a8b44b7321aafceb8175", + "provenancePath": "/template-gallery/reviews/qwen_bookshop_gouache.retained-template-provenance.json", + "provenanceHash": "sha256:canonical-json:7944a03f5e15d47853275a8a773fa670b23fe5aa358fce8109aca8f44fa22e35", + "outputPath": "/template-gallery/qwen_bookshop_gouache.webp", + "thumbnailPath": "/template-gallery/qwen_bookshop_gouache.webp", + "mediaHash": "sha256:decoded-rgba:852b2c40951fb9c027fc86987c2f0fa4946bc16ebc1dd67d42c533d89a29b776", + "mediaType": "image", + "verificationTimestamp": "2026-11-25T03:40:38.530Z", + "verificationStatus": "reviewed", + "qualityReviewStatus": "approved_reviewed", + "qualityReviewHash": "sha256:canonical-json:82618a6f05227b9bbf45ee54f273ed2ceb85aae779eb13e0e21daa87b5685f7c", + "qualityReviewPath": "/template-gallery/reviews/qwen_bookshop_gouache.quality-review.json", + "reviewer": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25T07:18:34.900Z", + "beforePath": "/template-gallery/inputs/qwen_bookshop_gouache.before.webp", + "beforeMediaHash": "sha256:bytes:ff045be510a0e88cbab69bbe8c3794dd26bd19036bdec26a63a5b6ea5a11bc66", + "afterPath": "/template-gallery/qwen_bookshop_gouache.webp", + "width": 1328, + "height": 1328, + "approvedOriginalReviewPath": "/template-gallery/reviews/qwen_bookshop_gouache.original-review.json", + "approvedOriginalProvenancePath": "/template-gallery/reviews/qwen_bookshop_gouache.original-provenance.json" + }, + { + "templateId": "kontext_wide_water_alpine_ridge", + "templateLockHash": "tpl_1b8d91bd", + "promptSettingsHash": "ps_781a8232", + "modelRevision": "black-forest-labs/FLUX.1-Kontext-dev@24e9dedc4ef646698dc8eb4e18ae2cec3c9fea0d", + "runtimeFingerprint": "sha256:stable-runtime-v1:48985e1ca14efd9017e24dce955551b44aa18242fd37011a5bc77bba96edba59", + "graphHash": "sha256:canonical-graph-v1:991400ad01692ea30254b9cacabc637b1f13b2156533cc4ccd05d1bd2df9a53c", + "proofLockHash": "sha256:retained-template-association-v1:9d08cad6453783a399115e800927ba2530b853a73de6871bb21c23e5f5ad71d0", + "backendSourceFingerprint": "sha256:backend-source-v1:272116bf77447dfb20b0899666ae417b68401993dd97ca438db63d91ff79cab6", + "backendContractFingerprint": "sha256:backend-contract-v1:06f986600338dc08fb5d1e639bfad55384f5b15ca0c97c2aeb7ed42a8c245594", + "modelCommit": "24e9dedc4ef646698dc8eb4e18ae2cec3c9fea0d", + "templateRevisionHash": "8ae90dc2b352689446effd182c4ad144c4e555d5b76fa3adbdb77fa4b767d119", + "provenancePath": "/template-gallery/reviews/kontext_wide_water_alpine_ridge.retained-template-provenance.json", + "provenanceHash": "sha256:canonical-json:7dc6ce3e7e4e2cf17d30f6153babdf23366479868b69a1cde5d5df89bcfd82f2", + "outputPath": "/template-gallery/kontext_wide_water_alpine_ridge.webp", + "thumbnailPath": "/template-gallery/kontext_wide_water_alpine_ridge.webp", + "mediaHash": "sha256:decoded-rgba:82bd1a22a1119fb3d5a4c84fceed93f5017a6d5e601280d8f766c8e88d114c4e", + "mediaType": "image", + "verificationTimestamp": "2026-11-24T04:27:52.558Z", + "verificationStatus": "reviewed", + "qualityReviewStatus": "approved_reviewed", + "qualityReviewHash": "sha256:canonical-json:a6d526245add42b534bc44924a136c91e8a67b90787de8c225ced841d17e284e", + "qualityReviewPath": "/template-gallery/reviews/kontext_wide_water_alpine_ridge.quality-review.json", + "reviewer": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25T07:18:34.900Z", + "beforePath": "/template-gallery/inputs/kontext_wide_water_alpine_ridge.before.png", + "beforeMediaHash": "sha256:bytes:50270382b4b730b87f79b775accaeeb81f3ff8885cd3d2cea94830206fbc181b", + "afterPath": "/template-gallery/kontext_wide_water_alpine_ridge.webp", + "width": 1344, + "height": 768, + "approvedOriginalReviewPath": "/template-gallery/reviews/kontext_wide_water_alpine_ridge.original-review.json", + "approvedOriginalProvenancePath": "/template-gallery/reviews/kontext_wide_water_alpine_ridge.original-provenance.json" + }, + { + "templateId": "chroma_alpine_block_print", + "templateLockHash": "tpl_cda267e7", + "promptSettingsHash": "ps_b12d1fc3", + "modelRevision": "lodestones/Chroma1-HD@0e0c60ece1e82b17cb7f77342d765ba5024c40c0", + "runtimeFingerprint": "sha256:stable-runtime-v1:de99e7b1729318c3e5b2dde98b51e5feb07ae329310f9b2da76831df1410cae7", + "graphHash": "sha256:canonical-graph-v1:3f23ca4ba74ed0ec547deb55013ac0d0335dba063505c3721c4aa6447caf31b6", + "proofLockHash": "sha256:retained-template-association-v1:daa61c8276f8152d0eeb14c0bb982b760968dd13d9c58ca334d22bebf235a34c", + "backendSourceFingerprint": "sha256:backend-source-v1:b29a5b0d317aaa781ae2a5205b46b518eea5a3d68a214eb0968dba4ac0660af7", + "backendContractFingerprint": "sha256:backend-contract-v1:315617df789a8a5f57426692318e197c13786098718305edd1927471b5b9c194", + "modelCommit": "0e0c60ece1e82b17cb7f77342d765ba5024c40c0", + "templateRevisionHash": "fbe83f016a250a5749f63a2b3eaa8e9806fc0d0c4b4f849a91a6f2094425dcb0", + "provenancePath": "/template-gallery/reviews/chroma_alpine_block_print.retained-template-provenance.json", + "provenanceHash": "sha256:canonical-json:5597dc8e3b9755333dfd0554e74b3c5d765ed31a3fbcb0d1dee717952d8f6d61", + "outputPath": "/template-gallery/chroma_alpine_block_print.webp", + "thumbnailPath": "/template-gallery/chroma_alpine_block_print.webp", + "mediaHash": "sha256:decoded-rgba:19de67ceadb3aeb6d9a18a36b3ed47438409f15727da349c7d4d0988eece272b", + "mediaType": "image", + "verificationTimestamp": "2026-11-25T03:58:25.751Z", + "verificationStatus": "reviewed", + "qualityReviewStatus": "approved_reviewed", + "qualityReviewHash": "sha256:canonical-json:29cdc4900e8335a94be15fcd0e8957c949c660f3b3f0032a73ea79474cb9f9f6", + "qualityReviewPath": "/template-gallery/reviews/chroma_alpine_block_print.quality-review.json", + "reviewer": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25T07:18:34.900Z", + "beforePath": "/template-gallery/inputs/chroma_alpine_block_print.before.png", + "beforeMediaHash": "sha256:bytes:88290a96bc8d52f11f2d1e3c0c0e04c2027661816e54b57d7d4739d731ca1e75", + "afterPath": "/template-gallery/chroma_alpine_block_print.webp", + "width": 1024, + "height": 1024, + "approvedOriginalReviewPath": "/template-gallery/reviews/chroma_alpine_block_print.original-review.json", + "approvedOriginalProvenancePath": "/template-gallery/reviews/chroma_alpine_block_print.original-provenance.json" + }, + { + "templateId": "joyimage_base_cobalt_paper_band", + "templateLockHash": "tpl_ef76cf20", + "promptSettingsHash": "ps_5d13f8f9", + "modelRevision": "jdopensource/JoyAI-Image-Edit-Diffusers@4b41fb25d961f37668750178ccbb380da326201c", + "runtimeFingerprint": "sha256:stable-runtime-v1:eb827b0ec37117a097e5aa9ebc1d0f92d03fedaef405389b27d8ed13b4d1bd6f", + "graphHash": "sha256:canonical-graph-v1:f888affd299d0162c7dc01ff45d61ef3d3476ed7625141d8f6d2b4d8c4e6cdf7", + "proofLockHash": "sha256:retained-template-association-v1:99134954ce43676e13c6f8734f3ec9e1d99ac2e9ff769abe90c27ac0d53d499f", + "backendSourceFingerprint": "sha256:backend-source-v1:585997dc1146ec6effb20c260272babc01713ecdea4f78a0872c12ef2568ef83", + "backendContractFingerprint": "sha256:backend-contract-v1:315617df789a8a5f57426692318e197c13786098718305edd1927471b5b9c194", + "modelCommit": "4b41fb25d961f37668750178ccbb380da326201c", + "templateRevisionHash": "895ec1f44e28507344c4bdabd3a3c07c3fe985d5b0fc0b5373f91ec8ad1f92d0", + "provenancePath": "/template-gallery/reviews/joyimage_base_cobalt_paper_band.retained-template-provenance.json", + "provenanceHash": "sha256:canonical-json:bff2a0c125d46a241d6b512d3a18b0fdedde716cff427f9eb517f8ec42f719a8", + "outputPath": "/template-gallery/joyimage_base_cobalt_paper_band.webp", + "thumbnailPath": "/template-gallery/joyimage_base_cobalt_paper_band.webp", + "mediaHash": "sha256:decoded-rgba:afc30d4a73891c476c70e89d9a01cac8cc35d658edf143ae5ce4dadfe45b0506", + "mediaType": "image", + "verificationTimestamp": "2026-11-24T12:15:48.363Z", + "verificationStatus": "reviewed", + "qualityReviewStatus": "approved_reviewed", + "qualityReviewHash": "sha256:canonical-json:ccdddedff8d15d9ca38e8ea36a3263a33ee308228cdb3ca8243391ffe452eb63", + "qualityReviewPath": "/template-gallery/reviews/joyimage_base_cobalt_paper_band.quality-review.json", + "reviewer": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25T07:18:34.900Z", + "beforePath": "/template-gallery/inputs/joyimage_base_cobalt_paper_band.before.png", + "beforeMediaHash": "sha256:bytes:0a41a9c56b98945e60c96ef796660c35b2cab7bf0b36d5e84ab0d97ef97f0a5a", + "afterPath": "/template-gallery/joyimage_base_cobalt_paper_band.webp", + "width": 1024, + "height": 1024, + "approvedOriginalReviewPath": "/template-gallery/reviews/joyimage_base_cobalt_paper_band.original-review.json", + "approvedOriginalProvenancePath": "/template-gallery/reviews/joyimage_base_cobalt_paper_band.original-provenance.json" + }, + { + "templateId": "sdxl_blue_glass_on_linen", + "templateLockHash": "tpl_bc28f7ef", + "promptSettingsHash": "ps_1be10bde", + "modelRevision": "stabilityai/stable-diffusion-xl-base-1.0@462165984030d82259a11f4367a4eed129e94a7b", + "runtimeFingerprint": "sha256:stable-runtime-v1:c2642af585975d6b55b551bcdfb8606edb2fab4b37a05875aa3a8024270b6eab", + "graphHash": "sha256:canonical-graph-v1:b2fb94a00ca2033f808f3824262500fbad51b761bfa8e7b93079350f26a961ae", + "proofLockHash": "sha256:retained-template-association-v1:b200b8345243f183c2c5e6046f8155b03b16bbfff6ef991a31ba5e187dbc0f9d", + "backendSourceFingerprint": "sha256:backend-source-v1:2faeaaa03b7902a03df5cd0cea38129b7419f6d844125c0ca7e29ccfaf635290", + "backendContractFingerprint": "sha256:backend-contract-v1:bd364fcd29020d51bb61f5f9bf320cf0bf562e718c645c21ffac8ed5a47b740d", + "modelCommit": "462165984030d82259a11f4367a4eed129e94a7b", + "templateRevisionHash": "c54124fc0e1c94b88c70853b0102ad94e7cbbe4d5761528d8c699f2ecd0d6be2", + "provenancePath": "/template-gallery/reviews/sdxl_blue_glass_on_linen.retained-template-provenance.json", + "provenanceHash": "sha256:canonical-json:cac7bb44e52b3df4485d968796b8837922e6b8a63ef972afe0934771b03d808b", + "outputPath": "/template-gallery/sdxl_blue_glass_on_linen.webp", + "thumbnailPath": "/template-gallery/sdxl_blue_glass_on_linen.webp", + "mediaHash": "sha256:decoded-rgba:085d7b56fe985a2a3345b721e46b041723e55abde9c57ba4e511b8e28301bf01", + "mediaType": "image", + "verificationTimestamp": "2026-11-25T04:29:19.529Z", + "verificationStatus": "reviewed", + "qualityReviewStatus": "approved_reviewed", + "qualityReviewHash": "sha256:canonical-json:92e4bfed4c7ff0db1961231e48978e9c8607b59a0f7a4156cae21a9f8e137dd4", + "qualityReviewPath": "/template-gallery/reviews/sdxl_blue_glass_on_linen.quality-review.json", + "reviewer": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25T07:18:34.900Z", + "beforePath": "/template-gallery/inputs/sdxl_blue_glass_on_linen.before.png", + "beforeMediaHash": "sha256:bytes:0a41a9c56b98945e60c96ef796660c35b2cab7bf0b36d5e84ab0d97ef97f0a5a", + "afterPath": "/template-gallery/sdxl_blue_glass_on_linen.webp", + "width": 1024, + "height": 1024, + "approvedOriginalReviewPath": "/template-gallery/reviews/sdxl_blue_glass_on_linen.original-review.json", + "approvedOriginalProvenancePath": "/template-gallery/reviews/sdxl_blue_glass_on_linen.original-provenance.json" + }, + { + "templateId": "qwen_2512_cobalt_backdrop_repair", + "templateLockHash": "tpl_05825928", + "promptSettingsHash": "ps_499eb957", + "modelRevision": "Qwen/Qwen-Image-2512@25468b98e3276ca6700de15c6628e51b7de54a26", + "runtimeFingerprint": "sha256:stable-runtime-v1:f526854e6a90147cead402f27c3a110ea4a529b709bd10a855bc0bd6d5028c5d", + "graphHash": "sha256:canonical-graph-v1:5480e0491b621010f2530b034c25a8457f3a3be63b1bb20359b39ab68356be7a", + "proofLockHash": "sha256:retained-template-association-v1:776ba84e142544ffcb27bf0d52c47ccffda7c86de38574291ccfc4b4edb32c0e", + "backendSourceFingerprint": "sha256:backend-source-v1:43f2ed10792fc6167b963166287cf7d5a0429afa26029e6455b0418e2123be86", + "backendContractFingerprint": "sha256:backend-contract-v1:e7a7aa3acbdedd686fa7e7a9d4bcc39c1709ba1fec38f047d63ff83558a85c18", + "modelCommit": "25468b98e3276ca6700de15c6628e51b7de54a26", + "templateRevisionHash": "9448d9e6aed3bf64c4ada3bf63c282f7cbc03c8e6a5ade076450af1d21a9b800", + "provenancePath": "/template-gallery/reviews/qwen_2512_cobalt_backdrop_repair.retained-template-provenance.json", + "provenanceHash": "sha256:canonical-json:33bb2b05f7ffa5af28e0a588e6db3dd4d15b47254b5d40dd8a9237036fe2701e", + "outputPath": "/template-gallery/qwen_2512_cobalt_backdrop_repair.webp", + "thumbnailPath": "/template-gallery/qwen_2512_cobalt_backdrop_repair.webp", + "mediaHash": "sha256:decoded-rgba:49bbf6165a11e0967fad933ed4826ecfe6bca46e1173291513c945ffa621a266", + "mediaType": "image", + "verificationTimestamp": "2026-11-23T23:28:40.451Z", + "verificationStatus": "reviewed", + "qualityReviewStatus": "approved_reviewed", + "qualityReviewHash": "sha256:canonical-json:f1b9ddad7ec09aca95ee6e0201cc3e35ba8b3163e20b280e2807aaaff2e2b219", + "qualityReviewPath": "/template-gallery/reviews/qwen_2512_cobalt_backdrop_repair.quality-review.json", + "reviewer": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25T07:18:34.900Z", + "beforePath": "/template-gallery/inputs/qwen_2512_cobalt_backdrop_repair.before.png", + "beforeMediaHash": "sha256:bytes:f5db354dc97ea11898d868898c5cc8ef454bb75ffe098b00bb2f06bc89f85885", + "afterPath": "/template-gallery/qwen_2512_cobalt_backdrop_repair.webp", + "width": 1328, + "height": 1328, + "approvedOriginalReviewPath": "/template-gallery/reviews/qwen_2512_cobalt_backdrop_repair.original-review.json", + "approvedOriginalProvenancePath": "/template-gallery/reviews/qwen_2512_cobalt_backdrop_repair.original-provenance.json", + "approvedMaskPath": "/template-gallery/inputs/qwen_2512_cobalt_backdrop_repair.mask.png" + }, + { + "templateId": "flux1_dev_limestone_studio_scratch_repair", + "templateLockHash": "tpl_eaa910f1", + "promptSettingsHash": "ps_c7610cad", + "modelRevision": "black-forest-labs/FLUX.1-dev@3de623fc3c33e44ffbe2bad470d0f45bccf2eb21", + "runtimeFingerprint": "sha256:stable-runtime-v1:b7914900095fea47e498858679857a6fab69ea8775126a1d1aedbf5a20584e83", + "graphHash": "sha256:canonical-graph-v1:3ca6c83955149d17954a830a5e2f1200d06bedfae40b693d620157b1606184b5", + "proofLockHash": "sha256:retained-template-association-v1:d46563ab96a3903f2f77ebb8efc1847d400619e1f160de2aa9089624581f0263", + "backendSourceFingerprint": "sha256:backend-source-v1:43f2ed10792fc6167b963166287cf7d5a0429afa26029e6455b0418e2123be86", + "backendContractFingerprint": "sha256:backend-contract-v1:e7a7aa3acbdedd686fa7e7a9d4bcc39c1709ba1fec38f047d63ff83558a85c18", + "modelCommit": "3de623fc3c33e44ffbe2bad470d0f45bccf2eb21", + "templateRevisionHash": "fe963e2fc85d8c21f11d606e545a9dcf5d63e5b2abad4b30900cdb64e5a25d36", + "provenancePath": "/template-gallery/reviews/flux1_dev_limestone_studio_scratch_repair.retained-template-provenance.json", + "provenanceHash": "sha256:canonical-json:35f7e8e524aa152d2a18f714ff80c41027d705bfb2ff5c43049a9d05dafad577", + "outputPath": "/template-gallery/flux1_dev_limestone_studio_scratch_repair.webp", + "thumbnailPath": "/template-gallery/flux1_dev_limestone_studio_scratch_repair.webp", + "mediaHash": "sha256:decoded-rgba:5b021541d89d099bd7fd3c5ab2bf5555c78af20e8ec8c4dbbe18879325c709df", + "mediaType": "image", + "verificationTimestamp": "2026-11-24T02:02:57.362Z", + "verificationStatus": "reviewed", + "qualityReviewStatus": "approved_reviewed", + "qualityReviewHash": "sha256:canonical-json:1e60639d4723b16ed10a1e0d12e842c922182a215a25527f13189e090da7012f", + "qualityReviewPath": "/template-gallery/reviews/flux1_dev_limestone_studio_scratch_repair.quality-review.json", + "reviewer": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25T07:18:34.900Z", + "beforePath": "/template-gallery/inputs/flux1_dev_limestone_studio_scratch_repair.before.png", + "beforeMediaHash": "sha256:bytes:e75c20f0e8a74e283b996bf526e6ea74535ed24125ad97c2d92508d3435d7a87", + "afterPath": "/template-gallery/flux1_dev_limestone_studio_scratch_repair.webp", + "width": 1024, + "height": 1024, + "approvedOriginalReviewPath": "/template-gallery/reviews/flux1_dev_limestone_studio_scratch_repair.original-review.json", + "approvedOriginalProvenancePath": "/template-gallery/reviews/flux1_dev_limestone_studio_scratch_repair.original-provenance.json", + "approvedMaskPath": "/template-gallery/inputs/flux1_dev_limestone_studio_scratch_repair.mask.png" + }, + { + "templateId": "zimage_seamless_cobalt_backdrop", + "templateLockHash": "tpl_fc6e804a", + "promptSettingsHash": "ps_06840c42", + "modelRevision": "Tongyi-MAI/Z-Image-Turbo@f332072aa78be7aecdf3ee76d5c247082da564a6", + "runtimeFingerprint": "sha256:stable-runtime-v1:874b422e75064031270ac2a5ce0526a30cc96205f7b95dd886a72b7b5cba5240", + "graphHash": "sha256:canonical-graph-v1:262959c3db75dc58cc10c7ba5efafd540dac6a33ad4bd095cfe264ec83ad5dde", + "proofLockHash": "sha256:retained-template-association-v1:4f6f478c006a765fd0c199a4a9acf2437eb116a681170b9839bf8cca73734760", + "backendSourceFingerprint": "sha256:backend-source-v1:e3aea8f8d102572ad10fdd0700f0c42d92061e864ede89777efcd6a3269770a8", + "backendContractFingerprint": "sha256:backend-contract-v1:e7a7aa3acbdedd686fa7e7a9d4bcc39c1709ba1fec38f047d63ff83558a85c18", + "modelCommit": "f332072aa78be7aecdf3ee76d5c247082da564a6", + "templateRevisionHash": "2a72cfcaddfa6e69098ca7feceef620a98bc50441abfa93f509c0a18711de478", + "provenancePath": "/template-gallery/reviews/zimage_seamless_cobalt_backdrop.retained-template-provenance.json", + "provenanceHash": "sha256:canonical-json:f8e01efe196000b248a22e5fad8b9ab5bf1f7115b6efc4298923ef5a412787f0", + "outputPath": "/template-gallery/zimage_seamless_cobalt_backdrop.webp", + "thumbnailPath": "/template-gallery/zimage_seamless_cobalt_backdrop.webp", + "mediaHash": "sha256:decoded-rgba:346751415bc7eff0c44a6a582c8b5ee43ecc0d102abe13b171f5374f9f54c5d6", + "mediaType": "image", + "verificationTimestamp": "2026-11-23T18:07:24.639Z", + "verificationStatus": "reviewed", + "qualityReviewStatus": "approved_reviewed", + "qualityReviewHash": "sha256:canonical-json:c4d91e49871db98da5a51a6c7de4fcd3cb16766b910f0f3f7909162aad8d1c47", + "qualityReviewPath": "/template-gallery/reviews/zimage_seamless_cobalt_backdrop.quality-review.json", + "reviewer": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25T07:18:34.900Z", + "beforePath": "/template-gallery/inputs/zimage_seamless_cobalt_backdrop.before.png", + "beforeMediaHash": "sha256:bytes:e75c20f0e8a74e283b996bf526e6ea74535ed24125ad97c2d92508d3435d7a87", + "afterPath": "/template-gallery/zimage_seamless_cobalt_backdrop.webp", + "width": 1024, + "height": 1024, + "approvedOriginalReviewPath": "/template-gallery/reviews/zimage_seamless_cobalt_backdrop.original-review.json", + "approvedOriginalProvenancePath": "/template-gallery/reviews/zimage_seamless_cobalt_backdrop.original-provenance.json", + "approvedMaskPath": "/template-gallery/inputs/zimage_seamless_cobalt_backdrop.mask.png" + }, + { + "templateId": "sdxl_pag_cobalt_wall", + "templateLockHash": "tpl_ceafa1fa", + "promptSettingsHash": "ps_52a8b07a", + "modelRevision": "stabilityai/stable-diffusion-xl-base-1.0@462165984030d82259a11f4367a4eed129e94a7b", + "runtimeFingerprint": "sha256:stable-runtime-v1:c2642af585975d6b55b551bcdfb8606edb2fab4b37a05875aa3a8024270b6eab", + "graphHash": "sha256:canonical-graph-v1:9a0b6bef1c8170f91b03876c7b3b0de283e4e5494f6349f2e52759470dd7922b", + "proofLockHash": "sha256:retained-template-association-v1:2065ecc9793ffc7471df85e721cc798431f6fdedfa6328eb20e1df3b22772dff", + "backendSourceFingerprint": "sha256:backend-source-v1:2faeaaa03b7902a03df5cd0cea38129b7419f6d844125c0ca7e29ccfaf635290", + "backendContractFingerprint": "sha256:backend-contract-v1:61201b43ea68d3fd347fbc374e292b5839be28f908b473bcb69f5ec1f8b87736", + "modelCommit": "462165984030d82259a11f4367a4eed129e94a7b", + "templateRevisionHash": "b95bd1828ace6db13d5ea54c01f8e9449bfcd73552ae371dcb52ce1838ecad8d", + "provenancePath": "/template-gallery/reviews/sdxl_pag_cobalt_wall.retained-template-provenance.json", + "provenanceHash": "sha256:canonical-json:c9dba7ea8a3129ccf7c4787a317ed5a26b3c719fff1f9e5f3d34f094b9d23708", + "outputPath": "/template-gallery/sdxl_pag_cobalt_wall.webp", + "thumbnailPath": "/template-gallery/sdxl_pag_cobalt_wall.webp", + "mediaHash": "sha256:decoded-rgba:0c7dbc42854f3796761b9260a0a08fa2223d03c1ae1e8b41560cdc391cb9bbdb", + "mediaType": "image", + "verificationTimestamp": "2026-11-25T03:24:43.819Z", + "verificationStatus": "reviewed", + "qualityReviewStatus": "approved_reviewed", + "qualityReviewHash": "sha256:canonical-json:29152a071c9df88b96bbfa5ffb1ce28c0ed0cbd73ff26237251df712c12d3f1f", + "qualityReviewPath": "/template-gallery/reviews/sdxl_pag_cobalt_wall.quality-review.json", + "reviewer": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25T07:18:34.900Z", + "beforePath": "/template-gallery/inputs/sdxl_pag_cobalt_wall.before.png", + "beforeMediaHash": "sha256:bytes:e75c20f0e8a74e283b996bf526e6ea74535ed24125ad97c2d92508d3435d7a87", + "afterPath": "/template-gallery/sdxl_pag_cobalt_wall.webp", + "width": 1024, + "height": 1024, + "approvedOriginalReviewPath": "/template-gallery/reviews/sdxl_pag_cobalt_wall.original-review.json", + "approvedOriginalProvenancePath": "/template-gallery/reviews/sdxl_pag_cobalt_wall.original-provenance.json", + "approvedMaskPath": "/template-gallery/inputs/sdxl_pag_cobalt_wall.mask.png" + }, + { + "templateId": "flux_klein_open_glacial_lake", + "templateLockHash": "tpl_23b2c7db", + "promptSettingsHash": "ps_cafe7c6f", + "modelRevision": "black-forest-labs/FLUX.2-klein-4B@e7b7dc27f91deacad38e78976d1f2b499d76a294", + "runtimeFingerprint": "sha256:stable-runtime-v1:a03f4352dda750ce42446ce3a3520acec08e1209f852b2af1629521522b5a0d2", + "graphHash": "sha256:canonical-graph-v1:e243008b76ef57a46997f5a6b9e12c84dd7dee5ae863392b8a1a6116869a6e9a", + "proofLockHash": "sha256:retained-template-association-v1:9d625f93f1f814584f1488d27003f9d26d08da115e749baba1e7c4e2c92b50d7", + "backendSourceFingerprint": "sha256:backend-source-v1:e3aea8f8d102572ad10fdd0700f0c42d92061e864ede89777efcd6a3269770a8", + "backendContractFingerprint": "sha256:backend-contract-v1:e7a7aa3acbdedd686fa7e7a9d4bcc39c1709ba1fec38f047d63ff83558a85c18", + "modelCommit": "e7b7dc27f91deacad38e78976d1f2b499d76a294", + "templateRevisionHash": "e100c45ec42735d37c8eb9c6d442d29822234c41d050ba311b178e38ee14baa5", + "provenancePath": "/template-gallery/reviews/flux_klein_open_glacial_lake.retained-template-provenance.json", + "provenanceHash": "sha256:canonical-json:3a2017b05e05a29ecb8346b8ffe13ea6a4514442db5f2caf3938c1b678f7dad3", + "outputPath": "/template-gallery/flux_klein_open_glacial_lake.webp", + "thumbnailPath": "/template-gallery/flux_klein_open_glacial_lake.webp", + "mediaHash": "sha256:decoded-rgba:1d1c77e4080bc57bed08e88f9debc6d9157320b274c25bdfc0163885ebe03b02", + "mediaType": "image", + "verificationTimestamp": "2026-11-23T17:09:43.722Z", + "verificationStatus": "reviewed", + "qualityReviewStatus": "approved_reviewed", + "qualityReviewHash": "sha256:canonical-json:dd0b02fa68b57a72495d294cff85dabfd3fae85aec93dd5535deb5f81c613bd4", + "qualityReviewPath": "/template-gallery/reviews/flux_klein_open_glacial_lake.quality-review.json", + "reviewer": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25T07:18:34.900Z", + "beforePath": "/template-gallery/inputs/flux_klein_open_glacial_lake.before.png", + "beforeMediaHash": "sha256:bytes:88290a96bc8d52f11f2d1e3c0c0e04c2027661816e54b57d7d4739d731ca1e75", + "afterPath": "/template-gallery/flux_klein_open_glacial_lake.webp", + "width": 1024, + "height": 1024, + "approvedOriginalReviewPath": "/template-gallery/reviews/flux_klein_open_glacial_lake.original-review.json", + "approvedOriginalProvenancePath": "/template-gallery/reviews/flux_klein_open_glacial_lake.original-provenance.json", + "approvedMaskPath": "/template-gallery/inputs/flux_klein_open_glacial_lake.mask.png" } ] } diff --git a/scripts/bundle-budget.mjs b/scripts/bundle-budget.mjs index 1b6cb127..0cf1cc34 100644 --- a/scripts/bundle-budget.mjs +++ b/scripts/bundle-budget.mjs @@ -493,8 +493,10 @@ const SOURCE_LICENSES = new URL('../public/THIRD_PARTY_LICENSES.txt', import.met // 504492/682980/346033 largest/startup/deferred gzip bytes: the reviewed // migration ceilings below still pass with 8/12/304 bytes of headroom. const MAX_STARTUP_CHUNK_GZIP_BYTES = + // Eighteen saved edit, inpaint and outpaint recipes measure 551848 bytes. + 6227 + // Retained Gallery expansion moves approval-only hashes to build-time metadata. - // The measured startup chunk is 545621 bytes; defer and retain the existing limits for all lazy chunks. + // The measured startup chunk is 545621 bytes. All lazy chunk limits stay fixed. 1104 + // Guided inpainting media evidence adds 54 gzip bytes (544463 to 544517). 54 + @@ -795,6 +797,8 @@ const MAX_STARTUP_CHUNK_GZIP_BYTES = // The same build measures 673359 aggregate startup bytes (+45 over the cap). // Keep 19 bytes of headroom; deferred limits and loading boundaries stay fixed. const MAX_STARTUP_GZIP_BYTES = + // The same source-bound recipes measure 730337 total startup bytes. + 6228 + // The same approved recipes measure 724109 total startup bytes. 1105 + // The guide receipt scopes add 56 bytes across startup (722946 to 723002). diff --git a/src/studio/retainedGalleryApprovedBatch.ts b/src/studio/retainedGalleryApprovedBatch.ts index 565e08ef..7913ef0e 100644 --- a/src/studio/retainedGalleryApprovedBatch.ts +++ b/src/studio/retainedGalleryApprovedBatch.ts @@ -3925,4 +3925,1640 @@ export const APPROVED_RETAINED_TEMPLATES: StudioTemplate[] = [ 'Reproduce the reviewed Florist at the End of the Lane example with the saved prompt, settings and model revision.', runtimeReuseKey: 'sha256:canonical-graph-v1:b412040d8f6595ffa0093fa82dce6f4993cf6d8db99730610e859ae8badab868', }, + { + id: 'kandinsky3_smoked_glass_on_limestone', + label: 'Kandinsky 3 — Edit image: Smoked Glass on Limestone', + mode: 'edit_image', + modelType: 'Kandinsky3Pipeline', + intentGroup: 'edit_image', + category: 'edit', + inputBindings: [ + { + id: 'source-image', + label: 'Source image', + mediaType: 'image', + field: 'referenceImages', + origin: 'user', + requiredAt: 'workflow_start', + count: 1, + }, + ], + outputKinds: ['image'], + readinessPolicy: 'requires_input', + modelArtifact: { + source: 'hub', + value: 'kandinsky-community/kandinsky-3', + revision: 'bf79e6c219da8a94abb50235fdc4567eb8fb4632', + }, + description: + 'Reproduce the reviewed Smoked Glass on Limestone example with the saved prompt, settings and model revision.', + prompt: + 'Black-and-white editorial product photograph of a single transparent smoked-glass cube on the same broad pale limestone plinth. Tonal charcoal glass, clear silver highlights from a large side window, and a soft gray transmitted shadow. Keep the same straight beveled cube edges, three-quarter product angle and quiet matte studio background. Entire photograph in neutral monochrome, restrained contrast and realistic glass reflections.', + negativePrompt: '', + example: { + mediaType: 'image', + status: 'unverified', + modelRevision: 'bf79e6c219da8a94abb50235fdc4567eb8fb4632', + lockedSeed: 42, + lockedSettings: { + width: 1024, + height: 1024, + steps: 25, + guidanceScale: 3, + strength: 0.75, + outputType: 'pil', + maxSequenceLength: 128, + pagScale: 3, + pagAdaptiveScale: 0, + dtype: 'float32', + resourceMode: 'expert', + quantizationMode: 'none', + autoOffload: false, + offloadMode: 'none', + matchInputResolution: true, + device: 'cpu:0', + }, + expectedOutput: { + width: 1024, + height: 1024, + }, + runtimeEstimate: '770.61 seconds in the saved run', + }, + requiredBackendCapabilities: [ + 'modules.DiffusersImage.Edit', + 'modules.DiffusersImage.LoadPipeline', + 'modules.DiffusersRuntime.PipelineQuantizationConfigV2', + 'modules.DiffusersRuntime.DiffusersExecutionRecipe', + 'modules.Image.Load', + 'modules.Image.Preview', + ], + mediaSlots: [ + { + id: 'before', + label: 'Source image', + kind: 'comparison_before', + role: 'before', + placeholder: 'Source pending', + }, + { + id: 'after', + label: 'Generated image', + kind: 'comparison_after', + role: 'after', + placeholder: 'Preview pending', + }, + ], + thumbnailVariant: 'compareSlider', + recipeSummary: + 'Reproduce the reviewed Smoked Glass on Limestone example with the saved prompt, settings and model revision.', + runtimeReuseKey: 'sha256:canonical-graph-v1:afdbaf12db152f0df94876cdcf5ffc96e5ba2ccbabc71331981e05f9259ae8be', + }, + { + id: 'longcat_clear_glass_at_the_bookshop', + label: 'LongCat Image Edit 6B — Edit image: Clear Glass at the Bookshop', + mode: 'edit_image', + modelType: 'LongCatImageEditPipeline', + intentGroup: 'edit_image', + category: 'edit', + inputBindings: [ + { + id: 'source-image', + label: 'Source image', + mediaType: 'image', + field: 'referenceImages', + origin: 'user', + requiredAt: 'workflow_start', + count: 1, + }, + ], + outputKinds: ['image'], + readinessPolicy: 'requires_input', + modelArtifact: { + source: 'hub', + value: 'meituan-longcat/LongCat-Image-Edit', + revision: '7b54ef423aa7854be7861600024be5c56ab7875a', + }, + description: + 'Reproduce the reviewed Clear Glass at the Bookshop example with the saved prompt, settings and model revision.', + prompt: + 'Remove the white opening-hours lettering from the front glass of the bookshop window. It is a clear, continuous pane, showing the same amber-lit bookshelves and little lamp through the area occupied by the lettering. Retain the image framing, dusk lighting, dark wood window frame, wet brick lane, and the same parked burgundy bicycle with its two spoked wheels, basket, and handlebar. Leave the glass blank and keep the rest of the scene in place.', + negativePrompt: '', + example: { + mediaType: 'image', + status: 'unverified', + modelRevision: '7b54ef423aa7854be7861600024be5c56ab7875a', + lockedSeed: 42, + lockedSettings: { + width: 1024, + height: 1024, + steps: 50, + guidanceScale: 4.5, + strength: 0.8, + outputType: 'pil', + maxSequenceLength: 512, + pagScale: 3, + pagAdaptiveScale: 0, + dtype: 'bfloat16', + resourceMode: 'expert', + quantizationMode: 'none', + autoOffload: true, + offloadMode: 'model_cpu', + matchInputResolution: true, + }, + expectedOutput: { + width: 1024, + height: 1024, + }, + runtimeEstimate: '608.77 seconds in the saved run', + }, + requiredBackendCapabilities: [ + 'modules.DiffusersImage.Edit', + 'modules.DiffusersImage.LoadPipeline', + 'modules.DiffusersRuntime.PipelineQuantizationConfigV2', + 'modules.DiffusersRuntime.DiffusersExecutionRecipe', + 'modules.Image.Load', + 'modules.Image.Preview', + ], + mediaSlots: [ + { + id: 'before', + label: 'Source image', + kind: 'comparison_before', + role: 'before', + placeholder: 'Source pending', + }, + { + id: 'after', + label: 'Generated image', + kind: 'comparison_after', + role: 'after', + placeholder: 'Preview pending', + }, + ], + thumbnailVariant: 'compareSlider', + recipeSummary: + 'Reproduce the reviewed Clear Glass at the Bookshop example with the saved prompt, settings and model revision.', + runtimeReuseKey: 'sha256:canonical-graph-v1:9eb6f51ba74d17909236f695506b2b08feb1855e4c217a6d79b70f30543380c5', + }, + { + id: 'qwen_2511_pale_amber_on_limestone', + label: 'Qwen Image Edit Plus (Standard Diffusers) — Edit image: Pale Amber on Limestone', + mode: 'edit_image', + modelType: 'QwenImageEditPlusPipeline', + intentGroup: 'edit_image', + category: 'edit', + inputBindings: [ + { + id: 'source-image', + label: 'Source image', + mediaType: 'image', + field: 'referenceImages', + origin: 'user', + requiredAt: 'workflow_start', + count: 1, + }, + ], + outputKinds: ['image'], + readinessPolicy: 'requires_input', + modelArtifact: { + source: 'hub', + value: 'Qwen/Qwen-Image-Edit-2511', + revision: '6f3ccc0b56e431dc6a0c2b2039706d7d26f22cb9', + }, + description: + 'Reproduce the reviewed Pale Amber on Limestone example with the saved prompt, settings and model revision.', + prompt: + 'Change only the cobalt glass from deep blue to translucent honey amber. Keep the three straight square faces and the exact shape, edges, framing, plinth and background. Match the original highlights and shadow direction.', + negativePrompt: '', + example: { + mediaType: 'image', + status: 'unverified', + modelRevision: '6f3ccc0b56e431dc6a0c2b2039706d7d26f22cb9', + lockedSeed: 42, + lockedSettings: { + width: 1024, + height: 1024, + steps: 40, + guidanceScale: 4, + strength: 0.8, + outputType: 'pil', + maxSequenceLength: 512, + pagScale: 3, + pagAdaptiveScale: 0, + dtype: 'bfloat16', + resourceMode: 'expert', + quantizationMode: 'none', + autoOffload: true, + offloadMode: 'model_cpu', + matchInputResolution: true, + }, + expectedOutput: { + width: 1024, + height: 1024, + }, + runtimeEstimate: '959.84 seconds in the saved run', + }, + requiredBackendCapabilities: [ + 'modules.DiffusersImage.Edit', + 'modules.DiffusersImage.LoadPipeline', + 'modules.DiffusersRuntime.PipelineQuantizationConfigV2', + 'modules.DiffusersRuntime.DiffusersExecutionRecipe', + 'modules.Image.Load', + 'modules.Image.Preview', + ], + mediaSlots: [ + { + id: 'before', + label: 'Source image', + kind: 'comparison_before', + role: 'before', + placeholder: 'Source pending', + }, + { + id: 'after', + label: 'Generated image', + kind: 'comparison_after', + role: 'after', + placeholder: 'Preview pending', + }, + ], + thumbnailVariant: 'compareSlider', + recipeSummary: + 'Reproduce the reviewed Pale Amber on Limestone example with the saved prompt, settings and model revision.', + runtimeReuseKey: 'sha256:canonical-graph-v1:487c0e08495ef2eb93b734132375a8ad84ae45d6941454325daa94b03d1e5205', + }, + { + id: 'qwen_cobalt_on_charcoal_slate', + label: 'Qwen Image Edit (Standard Diffusers) — Edit image: Cobalt on Charcoal Slate', + mode: 'edit_image', + modelType: 'QwenImageEditPipeline', + intentGroup: 'edit_image', + category: 'edit', + inputBindings: [ + { + id: 'source-image', + label: 'Source image', + mediaType: 'image', + field: 'referenceImages', + origin: 'user', + requiredAt: 'workflow_start', + count: 1, + }, + ], + outputKinds: ['image'], + readinessPolicy: 'requires_input', + modelArtifact: { + source: 'hub', + value: 'Qwen/Qwen-Image-Edit', + revision: 'ac7f9318f633fc4b5778c59367c8128225f1e3de', + }, + description: + 'Reproduce the reviewed Cobalt on Charcoal Slate example with the saved prompt, settings and model revision.', + prompt: + 'Replace the pale stone slab beneath the cobalt glass cube with one perfectly flat, thin piece of dark charcoal slate, with a subtly layered beveled edge and a fine matte surface. Preserve the exact cobalt color, the cube and its reflections, the camera framing, the softly lit ivory background and the outline of the original slab.', + negativePrompt: '', + example: { + mediaType: 'image', + status: 'unverified', + modelRevision: 'ac7f9318f633fc4b5778c59367c8128225f1e3de', + lockedSeed: 42, + lockedSettings: { + width: 1024, + height: 1024, + steps: 40, + guidanceScale: 4, + strength: 0.8, + outputType: 'pil', + maxSequenceLength: 512, + pagScale: 3, + pagAdaptiveScale: 0, + dtype: 'bfloat16', + resourceMode: 'expert', + quantizationMode: 'none', + autoOffload: true, + offloadMode: 'model_cpu', + matchInputResolution: true, + }, + expectedOutput: { + width: 1024, + height: 1024, + }, + runtimeEstimate: '965.01 seconds in the saved run', + }, + requiredBackendCapabilities: [ + 'modules.DiffusersImage.Edit', + 'modules.DiffusersImage.LoadPipeline', + 'modules.DiffusersRuntime.PipelineQuantizationConfigV2', + 'modules.DiffusersRuntime.DiffusersExecutionRecipe', + 'modules.Image.Load', + 'modules.Image.Preview', + ], + mediaSlots: [ + { + id: 'before', + label: 'Source image', + kind: 'comparison_before', + role: 'before', + placeholder: 'Source pending', + }, + { + id: 'after', + label: 'Generated image', + kind: 'comparison_after', + role: 'after', + placeholder: 'Preview pending', + }, + ], + thumbnailVariant: 'compareSlider', + recipeSummary: + 'Reproduce the reviewed Cobalt on Charcoal Slate example with the saved prompt, settings and model revision.', + runtimeReuseKey: 'sha256:canonical-graph-v1:289e7be3760372b115a67ff25d933895d02e06659182553071b50baebf039160', + }, + { + id: 'joy_plus_lavender_on_limestone', + label: 'JoyAI Image Edit Plus — Edit image: Lavender on Limestone', + mode: 'edit_image', + modelType: 'JoyImageEditPlusPipeline', + intentGroup: 'edit_image', + category: 'edit', + inputBindings: [ + { + id: 'source-image', + label: 'Source image', + mediaType: 'image', + field: 'referenceImages', + origin: 'user', + requiredAt: 'workflow_start', + count: 1, + }, + ], + outputKinds: ['image'], + readinessPolicy: 'requires_input', + modelArtifact: { + source: 'hub', + value: 'jdopensource/JoyAI-Image-Edit-Plus-Diffusers', + revision: 'c2686460c7b64d8aa11bc4d0da423fb316b33f9e', + }, + description: + 'Reproduce the reviewed Lavender on Limestone example with the saved prompt, settings and model revision.', + prompt: + 'Keep the camera position and exact square glass cube with its three faces, edges and internal reflections. Replace the saturated cobalt color with softly translucent pale lavender glass. Keep the cream limestone slab, cool off-white studio wall, soft side light and contact shadow.', + negativePrompt: '', + example: { + mediaType: 'image', + status: 'unverified', + modelRevision: 'c2686460c7b64d8aa11bc4d0da423fb316b33f9e', + lockedSeed: 42, + lockedSettings: { + width: 1024, + height: 1024, + steps: 30, + guidanceScale: 4, + strength: 0.8, + outputType: 'pil', + maxSequenceLength: 2048, + pagScale: 3, + pagAdaptiveScale: 0, + dtype: 'bfloat16', + resourceMode: 'expert', + quantizationMode: 'none', + autoOffload: true, + offloadMode: 'model_cpu', + matchInputResolution: true, + }, + expectedOutput: { + width: 1024, + height: 1024, + }, + runtimeEstimate: '2820.14 seconds in the saved run', + }, + requiredBackendCapabilities: [ + 'modules.DiffusersImage.Edit', + 'modules.DiffusersImage.LoadPipeline', + 'modules.DiffusersRuntime.PipelineQuantizationConfigV2', + 'modules.DiffusersRuntime.DiffusersExecutionRecipe', + 'modules.Image.Load', + 'modules.Image.Preview', + ], + mediaSlots: [ + { + id: 'before', + label: 'Source image', + kind: 'comparison_before', + role: 'before', + placeholder: 'Source pending', + }, + { + id: 'after', + label: 'Generated image', + kind: 'comparison_after', + role: 'after', + placeholder: 'Preview pending', + }, + ], + thumbnailVariant: 'compareSlider', + recipeSummary: + 'Reproduce the reviewed Lavender on Limestone example with the saved prompt, settings and model revision.', + runtimeReuseKey: 'sha256:canonical-graph-v1:1f09b68538b0723b1bea8f991a74c94eebbfffd3db4ecf3be5fdee198c7db694', + }, + { + id: 'omnigen_cobalt_against_soft_apricot', + label: 'OmniGen v1 — Edit image: Cobalt against Soft Apricot', + mode: 'edit_image', + modelType: 'OmniGenPipeline', + intentGroup: 'edit_image', + category: 'edit', + inputBindings: [ + { + id: 'source-image', + label: 'Source image', + mediaType: 'image', + field: 'referenceImages', + origin: 'user', + requiredAt: 'workflow_start', + count: 1, + }, + ], + outputKinds: ['image'], + readinessPolicy: 'requires_input', + modelArtifact: { + source: 'hub', + value: 'Shitao/OmniGen-v1-diffusers', + revision: '016e2f61d12a98303f6bbdf122687694d7984268', + }, + description: + 'Reproduce the reviewed Cobalt against Soft Apricot example with the saved prompt, settings and model revision.', + prompt: + 'Retouch this exact product photograph. Keep the glass cube the same transparent deep cobalt blue, with the same silhouette, interior reflections, camera angle and position on the rough pale stone. Repaint only the plain wall behind it in a soft matte apricot, like pale warm pink plaster. A clean flat apricot surface fills the entire upper background. Leave the stone neutral light beige and the object clearly translucent. Preserve the directional studio light, realistic cast shadow and tabletop composition.', + negativePrompt: '', + example: { + mediaType: 'image', + status: 'unverified', + modelRevision: '016e2f61d12a98303f6bbdf122687694d7984268', + lockedSeed: 42, + lockedSettings: { + width: 1024, + height: 1024, + steps: 50, + guidanceScale: 2.5, + strength: 0.8, + outputType: 'pil', + maxSequenceLength: 256, + pagScale: 3, + pagAdaptiveScale: 0, + dtype: 'bfloat16', + resourceMode: 'expert', + quantizationMode: 'none', + autoOffload: true, + offloadMode: 'model_cpu', + matchInputResolution: true, + }, + expectedOutput: { + width: 1024, + height: 1024, + }, + runtimeEstimate: '5207.21 seconds in the saved run', + }, + requiredBackendCapabilities: [ + 'modules.DiffusersImage.Edit', + 'modules.DiffusersImage.LoadPipeline', + 'modules.DiffusersRuntime.PipelineQuantizationConfigV2', + 'modules.DiffusersRuntime.DiffusersExecutionRecipe', + 'modules.Image.Load', + 'modules.Image.Preview', + ], + mediaSlots: [ + { + id: 'before', + label: 'Source image', + kind: 'comparison_before', + role: 'before', + placeholder: 'Source pending', + }, + { + id: 'after', + label: 'Generated image', + kind: 'comparison_after', + role: 'after', + placeholder: 'Preview pending', + }, + ], + thumbnailVariant: 'compareSlider', + recipeSummary: + 'Reproduce the reviewed Cobalt against Soft Apricot example with the saved prompt, settings and model revision.', + runtimeReuseKey: 'sha256:canonical-graph-v1:6603d5410b5cd5b8b8fee5d4c54f0fa27be81a6e0989fa470a07fa94f1ac7e0a', + }, + { + id: 'flux_klein_alpine_lake_panorama', + label: 'FLUX.2 Klein Inpaint (Standard Diffusers) — Outpaint: Alpine Lake beyond the Pines', + mode: 'outpaint', + modelType: 'Flux2KleinInpaintPipeline', + intentGroup: 'edit_image', + category: 'outpaint', + inputBindings: [ + { + id: 'source-image', + label: 'Source image', + mediaType: 'image', + field: 'referenceImages', + origin: 'user', + requiredAt: 'workflow_start', + count: 1, + }, + ], + outputKinds: ['image'], + readinessPolicy: 'requires_input', + modelArtifact: { + source: 'hub', + value: 'black-forest-labs/FLUX.2-klein-4B', + revision: 'e7b7dc27f91deacad38e78976d1f2b499d76a294', + }, + description: + 'Reproduce the reviewed Alpine Lake beyond the Pines example with the saved prompt, settings and model revision.', + prompt: + 'Extend the existing high Alpine lake landscape to both sides with a natural continuation of the rocky shoreline, clear glacial water and reflections, distant evergreen larch forest and pale peaks. Preserve the center scene and its lighting. Seamless panoramic photograph with entirely filled borders.', + negativePrompt: '', + example: { + mediaType: 'image', + status: 'unverified', + modelRevision: 'e7b7dc27f91deacad38e78976d1f2b499d76a294', + lockedSeed: 42, + lockedSettings: { + width: 1344, + height: 768, + steps: 32, + guidanceScale: 1, + strength: 0.85, + outputType: 'pil', + maxSequenceLength: 512, + pagScale: 3, + pagAdaptiveScale: 0, + dtype: 'bfloat16', + resourceMode: 'expert', + quantizationMode: 'none', + autoOffload: true, + offloadMode: 'model_cpu', + matchInputResolution: true, + outpaintLeft: 256, + outpaintRight: 256, + outpaintTop: 0, + outpaintBottom: 0, + outpaintOverlap: 24, + outpaintFeather: 8, + outpaintFillColor: 'black', + }, + expectedOutput: { + width: 1344, + height: 768, + }, + runtimeEstimate: '152.82 seconds in the saved run', + }, + requiredBackendCapabilities: [ + 'modules.DiffusersImage.Inpaint', + 'modules.DiffusersImage.LoadPipeline', + 'modules.DiffusersRuntime.PipelineQuantizationConfigV2', + 'modules.DiffusersRuntime.DiffusersExecutionRecipe', + 'modules.Image.Load', + 'modules.DiffusersImage.OutpaintCanvas', + 'modules.Image.Preview', + ], + mediaSlots: [ + { + id: 'before', + label: 'Source image', + kind: 'comparison_before', + role: 'before', + placeholder: 'Source pending', + }, + { + id: 'after', + label: 'Generated image', + kind: 'comparison_after', + role: 'after', + placeholder: 'Preview pending', + }, + ], + thumbnailVariant: 'compareSlider', + recipeSummary: + 'Reproduce the reviewed Alpine Lake beyond the Pines example with the saved prompt, settings and model revision.', + runtimeReuseKey: 'sha256:canonical-graph-v1:2989815bea79d34490a6f78257eac8c818445145dbd6adaceb2b5ad86a6fcf4a', + }, + { + id: 'zimage_rocky_glacial_shores', + label: 'Z-Image Inpaint (Standard Diffusers) — Outpaint: Rocky Shores of a Glacial Lake', + mode: 'outpaint', + modelType: 'ZImageInpaintPipeline', + intentGroup: 'edit_image', + category: 'outpaint', + inputBindings: [ + { + id: 'source-image', + label: 'Source image', + mediaType: 'image', + field: 'referenceImages', + origin: 'user', + requiredAt: 'workflow_start', + count: 1, + }, + ], + outputKinds: ['image'], + readinessPolicy: 'requires_input', + modelArtifact: { + source: 'hub', + value: 'Tongyi-MAI/Z-Image-Turbo', + revision: 'f332072aa78be7aecdf3ee76d5c247082da564a6', + }, + description: + 'Reproduce the reviewed Rocky Shores of a Glacial Lake example with the saved prompt, settings and model revision.', + prompt: + 'Extend the existing high Alpine lake landscape to both sides with a natural continuation of the rocky shoreline, clear glacial water and reflections, distant evergreen larch forest and pale peaks. Preserve the center scene and its lighting. Seamless panoramic photograph with entirely filled borders.', + negativePrompt: '', + example: { + mediaType: 'image', + status: 'unverified', + modelRevision: 'f332072aa78be7aecdf3ee76d5c247082da564a6', + lockedSeed: 42, + lockedSettings: { + width: 1344, + height: 768, + steps: 32, + guidanceScale: 1, + strength: 0.85, + outputType: 'pil', + maxSequenceLength: 512, + pagScale: 3, + pagAdaptiveScale: 0, + dtype: 'bfloat16', + resourceMode: 'expert', + quantizationMode: 'none', + autoOffload: true, + offloadMode: 'model_cpu', + matchInputResolution: true, + outpaintLeft: 256, + outpaintRight: 256, + outpaintTop: 0, + outpaintBottom: 0, + outpaintOverlap: 24, + outpaintFeather: 8, + outpaintFillColor: 'black', + }, + expectedOutput: { + width: 1344, + height: 768, + }, + runtimeEstimate: '286.85 seconds in the saved run', + }, + requiredBackendCapabilities: [ + 'modules.DiffusersImage.Inpaint', + 'modules.DiffusersImage.LoadPipeline', + 'modules.DiffusersRuntime.PipelineQuantizationConfigV2', + 'modules.DiffusersRuntime.DiffusersExecutionRecipe', + 'modules.Image.Load', + 'modules.DiffusersImage.OutpaintCanvas', + 'modules.Image.Preview', + ], + mediaSlots: [ + { + id: 'before', + label: 'Source image', + kind: 'comparison_before', + role: 'before', + placeholder: 'Source pending', + }, + { + id: 'after', + label: 'Generated image', + kind: 'comparison_after', + role: 'after', + placeholder: 'Preview pending', + }, + ], + thumbnailVariant: 'compareSlider', + recipeSummary: + 'Reproduce the reviewed Rocky Shores of a Glacial Lake example with the saved prompt, settings and model revision.', + runtimeReuseKey: 'sha256:canonical-graph-v1:f7b725ec789f566f496f4afe4414288f55289d3180b2722f47f855b0cf2c2a39', + }, + { + id: 'qwen_bookshop_gouache', + label: 'Qwen-Image-2512 — Edit image: Rain at the Bookshop in Gouache', + mode: 'edit_image', + modelType: 'QwenImageModularPipeline', + intentGroup: 'edit_image', + category: 'edit', + inputBindings: [ + { + id: 'source-image', + label: 'Source image', + mediaType: 'image', + field: 'referenceImages', + origin: 'user', + requiredAt: 'workflow_start', + count: 1, + }, + ], + outputKinds: ['image'], + readinessPolicy: 'requires_input', + modelArtifact: { + source: 'hub', + value: 'Qwen/Qwen-Image-2512', + revision: '25468b98e3276ca6700de15c6628e51b7de54a26', + }, + description: + 'Reproduce the reviewed Rain at the Bookshop in Gouache example with the saved prompt, settings and model revision.', + prompt: + 'Repaint this rainy bookshop scene as a finished editorial gouache illustration, with visible matte pigment and economical brush edges. Keep the same composition: a warm bookshop window to the right opening into a deep blue cobbled alley to the left, and one parked burgundy bicycle with exactly two wheels beside the window. Rebuild the light as flat passages of honey yellow, burnt sienna and indigo, with broken strokes suggesting wet cobblestone reflections. Simplify the brickwork and book spines into hand-painted marks. Keep the bicycle frame and lighting geometry coherent, preserve the window size and the direction of the street, and render the original lettering as small readable hand-painted marks.', + negativePrompt: '', + example: { + mediaType: 'image', + status: 'unverified', + modelRevision: '25468b98e3276ca6700de15c6628e51b7de54a26', + lockedSeed: 42, + lockedSettings: { + width: 1328, + height: 1328, + steps: 50, + guidanceScale: 4, + strength: 0.8, + outputType: 'pil', + maxSequenceLength: 512, + pagScale: 3, + pagAdaptiveScale: 0, + dtype: 'bfloat16', + resourceMode: 'expert', + quantizationMode: 'none', + autoOffload: true, + offloadMode: 'model_cpu', + matchInputResolution: true, + }, + expectedOutput: { + width: 1328, + height: 1328, + }, + runtimeEstimate: '3264.37 seconds in the saved run', + }, + requiredBackendCapabilities: [ + 'modules.DiffusersImage.Edit', + 'modules.DiffusersImage.LoadPipeline', + 'modules.DiffusersRuntime.PipelineQuantizationConfigV2', + 'modules.DiffusersRuntime.DiffusersExecutionRecipe', + 'modules.Image.Load', + 'modules.Image.Preview', + ], + mediaSlots: [ + { + id: 'before', + label: 'Source image', + kind: 'comparison_before', + role: 'before', + placeholder: 'Source pending', + }, + { + id: 'after', + label: 'Generated image', + kind: 'comparison_after', + role: 'after', + placeholder: 'Preview pending', + }, + ], + thumbnailVariant: 'compareSlider', + recipeSummary: + 'Reproduce the reviewed Rain at the Bookshop in Gouache example with the saved prompt, settings and model revision.', + runtimeReuseKey: 'sha256:canonical-graph-v1:7c05a757728207dbd039194383498c67578647f594c51042bd041297584d99c5', + }, + { + id: 'kontext_wide_water_alpine_ridge', + label: 'FLUX.1 Kontext Inpaint (Standard Diffusers) — Outpaint: Wide Water beneath the Alpine Ridge', + mode: 'outpaint', + modelType: 'FluxKontextInpaintPipeline', + intentGroup: 'edit_image', + category: 'outpaint', + inputBindings: [ + { + id: 'source-image', + label: 'Source image', + mediaType: 'image', + field: 'referenceImages', + origin: 'user', + requiredAt: 'workflow_start', + count: 1, + }, + ], + outputKinds: ['image'], + readinessPolicy: 'requires_input', + modelArtifact: { + source: 'hub', + value: 'black-forest-labs/FLUX.1-Kontext-dev', + revision: '24e9dedc4ef646698dc8eb4e18ae2cec3c9fea0d', + }, + description: + 'Reproduce the reviewed Wide Water beneath the Alpine Ridge example with the saved prompt, settings and model revision.', + prompt: + 'Widen the blue-sky alpine lake photo naturally to the left and right. Carry the same clear blue sky, distant pale rocky ridge, and waterline straight through the joins. The shores continue with low seasonal alpine shrubs, rounded pale rocks and distant larches. Keep the same scale, blue color and calm mountain reflection, with broad open sky and uninterrupted lake across a wide landscape photograph.', + negativePrompt: '', + example: { + mediaType: 'image', + status: 'unverified', + modelRevision: '24e9dedc4ef646698dc8eb4e18ae2cec3c9fea0d', + lockedSeed: 42, + lockedSettings: { + width: 1344, + height: 768, + steps: 32, + guidanceScale: 3.5, + strength: 1, + outputType: 'pil', + maxSequenceLength: 512, + pagScale: 3, + pagAdaptiveScale: 0, + dtype: 'bfloat16', + resourceMode: 'expert', + quantizationMode: 'none', + autoOffload: true, + offloadMode: 'model_cpu', + matchInputResolution: true, + outpaintLeft: 256, + outpaintRight: 256, + outpaintTop: 0, + outpaintBottom: 0, + outpaintOverlap: 72, + outpaintFeather: 28, + outpaintFillColor: 'black', + }, + expectedOutput: { + width: 1344, + height: 768, + }, + runtimeEstimate: '600.88 seconds in the saved run', + }, + requiredBackendCapabilities: [ + 'modules.DiffusersImage.Inpaint', + 'modules.DiffusersImage.LoadPipeline', + 'modules.DiffusersRuntime.PipelineQuantizationConfigV2', + 'modules.DiffusersRuntime.DiffusersExecutionRecipe', + 'modules.Image.Load', + 'modules.DiffusersImage.OutpaintCanvas', + 'modules.Image.Preview', + ], + mediaSlots: [ + { + id: 'before', + label: 'Source image', + kind: 'comparison_before', + role: 'before', + placeholder: 'Source pending', + }, + { + id: 'after', + label: 'Generated image', + kind: 'comparison_after', + role: 'after', + placeholder: 'Preview pending', + }, + ], + thumbnailVariant: 'compareSlider', + recipeSummary: + 'Reproduce the reviewed Wide Water beneath the Alpine Ridge example with the saved prompt, settings and model revision.', + runtimeReuseKey: 'sha256:canonical-graph-v1:991400ad01692ea30254b9cacabc637b1f13b2156533cc4ccd05d1bd2df9a53c', + }, + { + id: 'chroma_alpine_block_print', + label: 'Chroma Image-to-Image (Standard Diffusers) — Edit image: Alpine Reflection in a Block Print', + mode: 'edit_image', + modelType: 'ChromaImg2ImgPipeline', + intentGroup: 'edit_image', + category: 'edit', + inputBindings: [ + { + id: 'source-image', + label: 'Source image', + mediaType: 'image', + field: 'referenceImages', + origin: 'user', + requiredAt: 'workflow_start', + count: 1, + }, + ], + outputKinds: ['image'], + readinessPolicy: 'requires_input', + modelArtifact: { + source: 'hub', + value: 'lodestones/Chroma1-HD', + revision: '0e0c60ece1e82b17cb7f77342d765ba5024c40c0', + }, + description: + 'Reproduce the reviewed Alpine Reflection in a Block Print example with the saved prompt, settings and model revision.', + prompt: + 'Transform the supplied alpine lake photograph into a hand-printed two-color woodcut on warm ivory rag paper. Use deep indigo ink for the single larch, wooded shoreline and its reflection, and moss green for the foreground ripples and sparse alpine grass. Render the exact same shore, central island and distant angular mountain silhouettes. Snow stays mostly unprinted ivory with fine, deliberate gouge marks. Use broad matte ink shapes and parallel carved lines for water. Keep the horizon, composition and tree position unmistakably the same. The whole image is a flat, handmade relief print with a quiet pale margin.', + negativePrompt: '', + example: { + mediaType: 'image', + status: 'unverified', + modelRevision: '0e0c60ece1e82b17cb7f77342d765ba5024c40c0', + lockedSeed: 42, + lockedSettings: { + width: 1024, + height: 1024, + steps: 35, + guidanceScale: 5, + strength: 0.8, + outputType: 'pil', + maxSequenceLength: 512, + pagScale: 3, + pagAdaptiveScale: 0, + dtype: 'bfloat16', + resourceMode: 'expert', + quantizationMode: 'none', + autoOffload: true, + offloadMode: 'model_cpu', + matchInputResolution: true, + }, + expectedOutput: { + width: 1024, + height: 1024, + }, + runtimeEstimate: '899.37 seconds in the saved run', + }, + requiredBackendCapabilities: [ + 'modules.DiffusersImage.Edit', + 'modules.DiffusersImage.LoadPipeline', + 'modules.DiffusersRuntime.PipelineQuantizationConfigV2', + 'modules.DiffusersRuntime.DiffusersExecutionRecipe', + 'modules.Image.Load', + 'modules.Image.Preview', + ], + mediaSlots: [ + { + id: 'before', + label: 'Source image', + kind: 'comparison_before', + role: 'before', + placeholder: 'Source pending', + }, + { + id: 'after', + label: 'Generated image', + kind: 'comparison_after', + role: 'after', + placeholder: 'Preview pending', + }, + ], + thumbnailVariant: 'compareSlider', + recipeSummary: + 'Reproduce the reviewed Alpine Reflection in a Block Print example with the saved prompt, settings and model revision.', + runtimeReuseKey: 'sha256:canonical-graph-v1:3f23ca4ba74ed0ec547deb55013ac0d0335dba063505c3721c4aa6447caf31b6', + }, + { + id: 'joyimage_base_cobalt_paper_band', + label: 'JoyAI Image Edit — Edit image: Paper Band around Cobalt Glass', + mode: 'edit_image', + modelType: 'JoyImageEditPipeline', + intentGroup: 'edit_image', + category: 'edit', + inputBindings: [ + { + id: 'source-image', + label: 'Source image', + mediaType: 'image', + field: 'referenceImages', + origin: 'user', + requiredAt: 'workflow_start', + count: 1, + }, + ], + outputKinds: ['image'], + readinessPolicy: 'requires_input', + modelArtifact: { + source: 'hub', + value: 'jdopensource/JoyAI-Image-Edit-Diffusers', + revision: '4b41fb25d961f37668750178ccbb380da326201c', + }, + description: + 'Reproduce the reviewed Paper Band around Cobalt Glass example with the saved prompt, settings and model revision.', + prompt: + 'Wrap one narrow band of warm off-white uncoated paper around the horizontal middle of the cobalt glass cube. The plain paper band crosses the two visible upright faces and folds neatly around the front corner. Blue glass remains clearly visible above and below. Preserve the square cube, exact perspective, soft lighting, original stone plinth and neutral backdrop. One cube and one paper band. The paper is blank.', + negativePrompt: '', + example: { + mediaType: 'image', + status: 'unverified', + modelRevision: '4b41fb25d961f37668750178ccbb380da326201c', + lockedSeed: 42, + lockedSettings: { + width: 1024, + height: 1024, + steps: 40, + guidanceScale: 4, + strength: 0.8, + outputType: 'pil', + maxSequenceLength: 2048, + pagScale: 3, + pagAdaptiveScale: 0, + dtype: 'bfloat16', + resourceMode: 'expert', + quantizationMode: 'none', + autoOffload: true, + offloadMode: 'model_cpu', + matchInputResolution: true, + }, + expectedOutput: { + width: 1024, + height: 1024, + }, + runtimeEstimate: '1825.03 seconds in the saved run', + }, + requiredBackendCapabilities: [ + 'modules.DiffusersImage.Edit', + 'modules.DiffusersImage.LoadPipeline', + 'modules.DiffusersRuntime.PipelineQuantizationConfigV2', + 'modules.DiffusersRuntime.DiffusersExecutionRecipe', + 'modules.Image.Load', + 'modules.Image.Preview', + ], + mediaSlots: [ + { + id: 'before', + label: 'Source image', + kind: 'comparison_before', + role: 'before', + placeholder: 'Source pending', + }, + { + id: 'after', + label: 'Generated image', + kind: 'comparison_after', + role: 'after', + placeholder: 'Preview pending', + }, + ], + thumbnailVariant: 'compareSlider', + recipeSummary: + 'Reproduce the reviewed Paper Band around Cobalt Glass example with the saved prompt, settings and model revision.', + runtimeReuseKey: 'sha256:canonical-graph-v1:f888affd299d0162c7dc01ff45d61ef3d3476ed7625141d8f6d2b4d8c4e6cdf7', + }, + { + id: 'sdxl_blue_glass_on_linen', + label: 'Stable Diffusion XL 1.0 — Edit image: Blue Glass on Folded Linen', + mode: 'edit_image', + modelType: 'StableDiffusionXLPipeline', + intentGroup: 'edit_image', + category: 'edit', + inputBindings: [ + { + id: 'source-image', + label: 'Source image', + mediaType: 'image', + field: 'referenceImages', + origin: 'user', + requiredAt: 'workflow_start', + count: 1, + }, + ], + outputKinds: ['image'], + readinessPolicy: 'requires_input', + modelArtifact: { + source: 'hub', + value: 'stabilityai/stable-diffusion-xl-base-1.0', + revision: '462165984030d82259a11f4367a4eed129e94a7b', + }, + description: + 'Reproduce the reviewed Blue Glass on Folded Linen example with the saved prompt, settings and model revision.', + prompt: + 'A close-up product photograph of the same single square cobalt glass paperweight in three-quarter view, resting directly on folded charcoal-gray linen. The linen has a fine visible woven texture and broad soft folds beneath and around the cube. Pale neutral studio wall behind it. Soft daylight from the left reveals vivid cobalt glass, straight square edges, a dark seam down the front corner, and gentle reflected blue in the cloth. Keep the single cube and the same view. The cube rests on the textile itself.', + negativePrompt: '', + example: { + mediaType: 'image', + status: 'unverified', + modelRevision: '462165984030d82259a11f4367a4eed129e94a7b', + lockedSeed: 42, + lockedSettings: { + width: 1024, + height: 1024, + steps: 30, + guidanceScale: 5, + strength: 0.8, + outputType: 'pil', + maxSequenceLength: 512, + pagScale: 3, + pagAdaptiveScale: 0, + dtype: 'bfloat16', + resourceMode: 'expert', + quantizationMode: 'none', + autoOffload: true, + offloadMode: 'model_cpu', + matchInputResolution: true, + }, + expectedOutput: { + width: 1024, + height: 1024, + }, + runtimeEstimate: '23.78 seconds in the saved run', + }, + requiredBackendCapabilities: [ + 'modules.DiffusersImage.Edit', + 'modules.DiffusersImage.LoadPipeline', + 'modules.DiffusersRuntime.PipelineQuantizationConfigV2', + 'modules.DiffusersRuntime.DiffusersExecutionRecipe', + 'modules.Image.Load', + 'modules.Image.Preview', + ], + mediaSlots: [ + { + id: 'before', + label: 'Source image', + kind: 'comparison_before', + role: 'before', + placeholder: 'Source pending', + }, + { + id: 'after', + label: 'Generated image', + kind: 'comparison_after', + role: 'after', + placeholder: 'Preview pending', + }, + ], + thumbnailVariant: 'compareSlider', + recipeSummary: + 'Reproduce the reviewed Blue Glass on Folded Linen example with the saved prompt, settings and model revision.', + runtimeReuseKey: 'sha256:canonical-graph-v1:b2fb94a00ca2033f808f3824262500fbad51b761bfa8e7b93079350f26a961ae', + }, + { + id: 'qwen_2512_cobalt_backdrop_repair', + label: 'Qwen-Image-2512 — Inpaint: Cobalt Backdrop Repair', + mode: 'inpaint', + modelType: 'QwenImageModularPipeline', + intentGroup: 'edit_image', + category: 'inpaint', + inputBindings: [ + { + id: 'source-image', + label: 'Source image', + mediaType: 'image', + field: 'referenceImages', + origin: 'user', + requiredAt: 'workflow_start', + count: 1, + }, + { + id: 'mask-image', + label: 'Mask image', + mediaType: 'image', + field: 'maskImage', + origin: 'user', + requiredAt: 'workflow_start', + count: 1, + }, + ], + outputKinds: ['image'], + readinessPolicy: 'requires_input', + modelArtifact: { + source: 'hub', + value: 'Qwen/Qwen-Image-2512', + revision: '25468b98e3276ca6700de15c6628e51b7de54a26', + }, + description: + 'Reproduce the reviewed Cobalt Backdrop Repair example with the saved prompt, settings and model revision.', + prompt: + 'A clean product photograph of a single transparent cobalt glass cube. Restore the smooth original blue glass where marked. Continue the existing planar blue faces, cut edges and soft highlights precisely through the repaired area. The base, ground shadow, composition and background remain unchanged.', + negativePrompt: '', + example: { + mediaType: 'image', + status: 'unverified', + modelRevision: '25468b98e3276ca6700de15c6628e51b7de54a26', + lockedSeed: 42, + lockedSettings: { + width: 1328, + height: 1328, + steps: 50, + guidanceScale: 4, + strength: 0.8, + outputType: 'pil', + maxSequenceLength: 512, + pagScale: 3, + pagAdaptiveScale: 0, + dtype: 'bfloat16', + resourceMode: 'expert', + quantizationMode: 'none', + autoOffload: true, + offloadMode: 'model_cpu', + matchInputResolution: true, + }, + expectedOutput: { + width: 1328, + height: 1328, + }, + runtimeEstimate: '596.70 seconds in the saved run', + }, + requiredBackendCapabilities: [ + 'modules.DiffusersImage.Inpaint', + 'modules.DiffusersImage.LoadPipeline', + 'modules.DiffusersRuntime.PipelineQuantizationConfigV2', + 'modules.DiffusersRuntime.DiffusersExecutionRecipe', + 'modules.Image.Load', + 'modules.Image.Preview', + ], + mediaSlots: [ + { + id: 'before', + label: 'Source image', + kind: 'comparison_before', + role: 'before', + placeholder: 'Source pending', + }, + { + id: 'after', + label: 'Generated image', + kind: 'comparison_after', + role: 'after', + placeholder: 'Preview pending', + }, + ], + thumbnailVariant: 'compareSlider', + recipeSummary: + 'Reproduce the reviewed Cobalt Backdrop Repair example with the saved prompt, settings and model revision.', + runtimeReuseKey: 'sha256:canonical-graph-v1:5480e0491b621010f2530b034c25a8457f3a3be63b1bb20359b39ab68356be7a', + }, + { + id: 'flux1_dev_limestone_studio_scratch_repair', + label: 'FLUX.1-dev — Inpaint: Limestone Studio Scratch Repair', + mode: 'inpaint', + modelType: 'FluxDevPipeline', + intentGroup: 'edit_image', + category: 'inpaint', + inputBindings: [ + { + id: 'source-image', + label: 'Source image', + mediaType: 'image', + field: 'referenceImages', + origin: 'user', + requiredAt: 'workflow_start', + count: 1, + }, + { + id: 'mask-image', + label: 'Mask image', + mediaType: 'image', + field: 'maskImage', + origin: 'user', + requiredAt: 'workflow_start', + count: 1, + }, + ], + outputKinds: ['image'], + readinessPolicy: 'requires_input', + modelArtifact: { + source: 'hub', + value: 'black-forest-labs/FLUX.1-dev', + revision: '3de623fc3c33e44ffbe2bad470d0f45bccf2eb21', + }, + description: + 'Reproduce the reviewed Limestone Studio Scratch Repair example with the saved prompt, settings and model revision.', + prompt: + 'Restore the pale matte studio background and smooth clear backdrop in the marked area. Continue the existing subtle gray gradient and soft reflection. Preserve the blue cube, all three edges and the plinth.', + negativePrompt: '', + example: { + mediaType: 'image', + status: 'unverified', + modelRevision: '3de623fc3c33e44ffbe2bad470d0f45bccf2eb21', + lockedSeed: 42, + lockedSettings: { + width: 1024, + height: 1024, + steps: 28, + guidanceScale: 3.5, + strength: 0.8, + outputType: 'pil', + maxSequenceLength: 512, + pagScale: 3, + pagAdaptiveScale: 0, + dtype: 'bfloat16', + resourceMode: 'expert', + quantizationMode: 'none', + autoOffload: true, + offloadMode: 'model_cpu', + matchInputResolution: true, + }, + expectedOutput: { + width: 1024, + height: 1024, + }, + runtimeEstimate: '202.59 seconds in the saved run', + }, + requiredBackendCapabilities: [ + 'modules.DiffusersImage.Inpaint', + 'modules.DiffusersImage.LoadPipeline', + 'modules.DiffusersRuntime.PipelineQuantizationConfigV2', + 'modules.DiffusersRuntime.DiffusersExecutionRecipe', + 'modules.Image.Load', + 'modules.Image.Preview', + ], + mediaSlots: [ + { + id: 'before', + label: 'Source image', + kind: 'comparison_before', + role: 'before', + placeholder: 'Source pending', + }, + { + id: 'after', + label: 'Generated image', + kind: 'comparison_after', + role: 'after', + placeholder: 'Preview pending', + }, + ], + thumbnailVariant: 'compareSlider', + recipeSummary: + 'Reproduce the reviewed Limestone Studio Scratch Repair example with the saved prompt, settings and model revision.', + runtimeReuseKey: 'sha256:canonical-graph-v1:3ca6c83955149d17954a830a5e2f1200d06bedfae40b693d620157b1606184b5', + }, + { + id: 'zimage_seamless_cobalt_backdrop', + label: 'Z-Image Inpaint (Standard Diffusers) — Inpaint: Seamless Cobalt Backdrop', + mode: 'inpaint', + modelType: 'ZImageInpaintPipeline', + intentGroup: 'edit_image', + category: 'inpaint', + inputBindings: [ + { + id: 'source-image', + label: 'Source image', + mediaType: 'image', + field: 'referenceImages', + origin: 'user', + requiredAt: 'workflow_start', + count: 1, + }, + { + id: 'mask-image', + label: 'Mask image', + mediaType: 'image', + field: 'maskImage', + origin: 'user', + requiredAt: 'workflow_start', + count: 1, + }, + ], + outputKinds: ['image'], + readinessPolicy: 'requires_input', + modelArtifact: { + source: 'hub', + value: 'Tongyi-MAI/Z-Image-Turbo', + revision: 'f332072aa78be7aecdf3ee76d5c247082da564a6', + }, + description: + 'Reproduce the reviewed Seamless Cobalt Backdrop example with the saved prompt, settings and model revision.', + prompt: + 'Pristine smooth cobalt blue glass, seamless continuation of the existing planar blue faces and soft highlights. Clean cut edges and glass reflection, intact studio background.', + negativePrompt: '', + example: { + mediaType: 'image', + status: 'unverified', + modelRevision: 'f332072aa78be7aecdf3ee76d5c247082da564a6', + lockedSeed: 42, + lockedSettings: { + width: 1024, + height: 1024, + steps: 8, + guidanceScale: 1, + strength: 0.8, + outputType: 'pil', + maxSequenceLength: 512, + pagScale: 3, + pagAdaptiveScale: 0, + dtype: 'bfloat16', + resourceMode: 'expert', + quantizationMode: 'none', + autoOffload: true, + offloadMode: 'model_cpu', + matchInputResolution: true, + }, + expectedOutput: { + width: 1024, + height: 1024, + }, + runtimeEstimate: '679.20 seconds in the saved run', + }, + requiredBackendCapabilities: [ + 'modules.DiffusersImage.Inpaint', + 'modules.DiffusersImage.LoadPipeline', + 'modules.DiffusersRuntime.PipelineQuantizationConfigV2', + 'modules.DiffusersRuntime.DiffusersExecutionRecipe', + 'modules.Image.Load', + 'modules.Image.Preview', + ], + mediaSlots: [ + { + id: 'before', + label: 'Source image', + kind: 'comparison_before', + role: 'before', + placeholder: 'Source pending', + }, + { + id: 'after', + label: 'Generated image', + kind: 'comparison_after', + role: 'after', + placeholder: 'Preview pending', + }, + ], + thumbnailVariant: 'compareSlider', + recipeSummary: + 'Reproduce the reviewed Seamless Cobalt Backdrop example with the saved prompt, settings and model revision.', + runtimeReuseKey: 'sha256:canonical-graph-v1:262959c3db75dc58cc10c7ba5efafd540dac6a33ad4bd095cfe264ec83ad5dde', + }, + { + id: 'sdxl_pag_cobalt_wall', + label: 'Stable Diffusion XL PAG — Inpaint: Clean Wall behind Cobalt Glass', + mode: 'inpaint', + modelType: 'StableDiffusionXLPAGPipeline', + intentGroup: 'edit_image', + category: 'inpaint', + inputBindings: [ + { + id: 'source-image', + label: 'Source image', + mediaType: 'image', + field: 'referenceImages', + origin: 'user', + requiredAt: 'workflow_start', + count: 1, + }, + { + id: 'mask-image', + label: 'Mask image', + mediaType: 'image', + field: 'maskImage', + origin: 'user', + requiredAt: 'workflow_start', + count: 1, + }, + ], + outputKinds: ['image'], + readinessPolicy: 'requires_input', + modelArtifact: { + source: 'hub', + value: 'stabilityai/stable-diffusion-xl-base-1.0', + revision: '462165984030d82259a11f4367a4eed129e94a7b', + }, + description: + 'Reproduce the reviewed Clean Wall behind Cobalt Glass example with the saved prompt, settings and model revision.', + prompt: + 'Studio product photograph of a cobalt blue glass cube on a pale stone slab against a plain pale-gray wall. The upper right is empty wall, a seamless uninterrupted matte surface with diffuse daylight and a subtle gradient that matches the surrounding studio backdrop.', + negativePrompt: '', + example: { + mediaType: 'image', + status: 'unverified', + modelRevision: '462165984030d82259a11f4367a4eed129e94a7b', + lockedSeed: 42, + lockedSettings: { + width: 1024, + height: 1024, + steps: 50, + guidanceScale: 5, + strength: 0.8, + outputType: 'pil', + maxSequenceLength: 512, + pagScale: 3, + pagAdaptiveScale: 0, + dtype: 'float16', + resourceMode: 'expert', + quantizationMode: 'none', + autoOffload: true, + offloadMode: 'model_cpu', + matchInputResolution: true, + }, + expectedOutput: { + width: 1024, + height: 1024, + }, + runtimeEstimate: '34.72 seconds in the saved run', + }, + requiredBackendCapabilities: [ + 'modules.DiffusersImage.Inpaint', + 'modules.DiffusersImage.LoadPipeline', + 'modules.DiffusersRuntime.PipelineQuantizationConfigV2', + 'modules.DiffusersRuntime.DiffusersExecutionRecipe', + 'modules.Image.Load', + 'modules.Image.Preview', + ], + mediaSlots: [ + { + id: 'before', + label: 'Source image', + kind: 'comparison_before', + role: 'before', + placeholder: 'Source pending', + }, + { + id: 'after', + label: 'Generated image', + kind: 'comparison_after', + role: 'after', + placeholder: 'Preview pending', + }, + ], + thumbnailVariant: 'compareSlider', + recipeSummary: + 'Reproduce the reviewed Clean Wall behind Cobalt Glass example with the saved prompt, settings and model revision.', + runtimeReuseKey: 'sha256:canonical-graph-v1:9a0b6bef1c8170f91b03876c7b3b0de283e4e5494f6349f2e52759470dd7922b', + }, + { + id: 'flux_klein_open_glacial_lake', + label: 'FLUX.2 Klein Inpaint (Standard Diffusers) — Inpaint: Open View across the Glacial Lake', + mode: 'inpaint', + modelType: 'Flux2KleinInpaintPipeline', + intentGroup: 'edit_image', + category: 'inpaint', + inputBindings: [ + { + id: 'source-image', + label: 'Source image', + mediaType: 'image', + field: 'referenceImages', + origin: 'user', + requiredAt: 'workflow_start', + count: 1, + }, + { + id: 'mask-image', + label: 'Mask image', + mediaType: 'image', + field: 'maskImage', + origin: 'user', + requiredAt: 'workflow_start', + count: 1, + }, + ], + outputKinds: ['image'], + readinessPolicy: 'requires_input', + modelArtifact: { + source: 'hub', + value: 'black-forest-labs/FLUX.2-klein-4B', + revision: 'e7b7dc27f91deacad38e78976d1f2b499d76a294', + }, + description: + 'Reproduce the reviewed Open View across the Glacial Lake example with the saved prompt, settings and model revision.', + prompt: + 'Continue the pale mountain, blue sky and clear lake through the masked tree and its reflection. Keep the rock islet and low grass, with no tall tree at the center.', + negativePrompt: '', + example: { + mediaType: 'image', + status: 'unverified', + modelRevision: 'e7b7dc27f91deacad38e78976d1f2b499d76a294', + lockedSeed: 42, + lockedSettings: { + width: 1024, + height: 1024, + steps: 4, + guidanceScale: 1, + strength: 0.8, + outputType: 'pil', + maxSequenceLength: 512, + pagScale: 3, + pagAdaptiveScale: 0, + dtype: 'bfloat16', + resourceMode: 'expert', + quantizationMode: 'none', + autoOffload: true, + offloadMode: 'model_cpu', + matchInputResolution: true, + }, + expectedOutput: { + width: 1024, + height: 1024, + }, + runtimeEstimate: '31.20 seconds in the saved run', + }, + requiredBackendCapabilities: [ + 'modules.DiffusersImage.Inpaint', + 'modules.DiffusersImage.LoadPipeline', + 'modules.DiffusersRuntime.PipelineQuantizationConfigV2', + 'modules.DiffusersRuntime.DiffusersExecutionRecipe', + 'modules.Image.Load', + 'modules.Image.Preview', + ], + mediaSlots: [ + { + id: 'before', + label: 'Source image', + kind: 'comparison_before', + role: 'before', + placeholder: 'Source pending', + }, + { + id: 'after', + label: 'Generated image', + kind: 'comparison_after', + role: 'after', + placeholder: 'Preview pending', + }, + ], + thumbnailVariant: 'compareSlider', + recipeSummary: + 'Reproduce the reviewed Open View across the Glacial Lake example with the saved prompt, settings and model revision.', + runtimeReuseKey: 'sha256:canonical-graph-v1:e243008b76ef57a46997f5a6b9e12c84dd7dee5ae863392b8a1a6116869a6e9a', + }, ]; diff --git a/src/studio/templateAssetSource.json b/src/studio/templateAssetSource.json index 3b0c8cc1..bbf1853b 100644 --- a/src/studio/templateAssetSource.json +++ b/src/studio/templateAssetSource.json @@ -4,11 +4,11 @@ "localBasePath": "/template-gallery", "repoType": "dataset", "repoId": "sourav-das/modiff-template-gallery", - "revision": "c1313d4630a08fa4735e1b7295b8a45364886cc8", + "revision": "3bdae2719d62ea6747de119308ac2b2c3e5c39a8", "pathPrefix": "template-gallery", "assetManifestPath": "_modiff/template-assets.v1.json", - "assetSetId": "sha256:canonical-json:df727f15a0fd40d0a990ca000913a3e10c9a4028eb66b3d9e6a78e97e6c02467", - "completeAssetSetId": "sha256:canonical-json:1dd39d0a777c1194ca6722527d6b1f8dd1f9f02e89b64fdc2ef056a64748d189", + "assetSetId": "sha256:canonical-json:7ba4ce769399cffb369d817687fc69bde20ce0ac719b0acc0039f81d782d7fb2", + "completeAssetSetId": "sha256:canonical-json:649f3cf808a22d61c582c6c78e4f62b70fd4854f19d78a8d0fd442d7986fdb30", "unavailableAssets": [ "template-gallery/ace_step_chinese_new_year_lora.card-poster.png", "template-gallery/ace_step_chinese_new_year_lora.wav", diff --git a/src/studio/types.ts b/src/studio/types.ts index beec2899..79af12cb 100644 --- a/src/studio/types.ts +++ b/src/studio/types.ts @@ -269,6 +269,24 @@ export type StudioTemplateId = | 'sana_tidal_pool_on_black_basalt' | 'joyimage_herbarium_rainy_porthole' | 'longcat_florist_end_of_lane' + | 'kandinsky3_smoked_glass_on_limestone' + | 'longcat_clear_glass_at_the_bookshop' + | 'qwen_2511_pale_amber_on_limestone' + | 'qwen_cobalt_on_charcoal_slate' + | 'joy_plus_lavender_on_limestone' + | 'omnigen_cobalt_against_soft_apricot' + | 'flux_klein_alpine_lake_panorama' + | 'zimage_rocky_glacial_shores' + | 'qwen_bookshop_gouache' + | 'kontext_wide_water_alpine_ridge' + | 'chroma_alpine_block_print' + | 'joyimage_base_cobalt_paper_band' + | 'sdxl_blue_glass_on_linen' + | 'qwen_2512_cobalt_backdrop_repair' + | 'flux1_dev_limestone_studio_scratch_repair' + | 'zimage_seamless_cobalt_backdrop' + | 'sdxl_pag_cobalt_wall' + | 'flux_klein_open_glacial_lake' | 'lumina2_larch_on_glacial_pond' | 'hunyuan_dit_coastal_lighthouse' | 'omnigen_tulips_after_rain' @@ -1675,7 +1693,10 @@ export type StudioTemplateExample = { // verified executable settings. Their recipes use the model's PAG defaults. lockedSettings?: Partial< StudioTemplateLockedSettings & Pick - >; + > & { + // The source-bound retained recipes record the shared input resolution default. + matchInputResolution?: true; + }; /** Contract for each primary runtime output emitted by the graph. */ expectedOutput?: TemplateExpectedOutput; /** Optional derived gallery-media override, such as a review contact sheet. */ From ad8931c5b47b040c49d7dac28fc63af7e4aca5b0 Mon Sep 17 00:00:00 2001 From: Sourav Das Date: Wed, 25 Nov 2026 13:21:20 +0530 Subject: [PATCH 374/440] Register ten guided and ordered-reference Gallery recipes --- config/release-showcase-scope.v1.json | 64 +- .../retained-gallery-approved-batch.v1.json | 168 + ...etained-gallery-authoring-archives.v1.json | 50 + ...etained-gallery-batch-recipe-locks.v1.json | 163 + config/template-asset-rights.v1.json | 13443 +++++++++------- config/template-assets.v1.json | 763 +- public/template-gallery/manifest.json | 343 + scripts/bundle-budget.mjs | 4 + scripts/retained-gallery-provenance.mjs | 6 + scripts/retained-gallery-release.mjs | 25 +- scripts/retained-gallery-templates.test.mjs | 31 +- scripts/template-gallery-harness.mjs | 8 +- src/studio/graphBridge.ts | 8 + src/studio/retainedGalleryApprovedBatch.ts | 964 ++ src/studio/retainedGalleryTemplates.ts | 1 + src/studio/templateAssetSource.json | 6 +- src/studio/types.ts | 10 + 17 files changed, 10287 insertions(+), 5770 deletions(-) diff --git a/config/release-showcase-scope.v1.json b/config/release-showcase-scope.v1.json index 61e29d74..8f296244 100644 --- a/config/release-showcase-scope.v1.json +++ b/config/release-showcase-scope.v1.json @@ -4,7 +4,7 @@ "name": "Registered showcase preview without AMD-cloud backlog", "dataset": { "repository": "sourav-das/modiff-template-gallery", - "revision": "3bdae2719d62ea6747de119308ac2b2c3e5c39a8" + "revision": "ac106fa66b2d32fdfa7e6fb0212c2cde30f59c80" }, "originalCampaign": { "total": 89, @@ -945,7 +945,67 @@ "category": "supplementary-only", "reason": "Published and registered from an approved saved run outside the original campaign selection.", "countedAsComplete": false + }, + { + "id": "flux_canny_clean_backdrop", + "category": "supplementary-only", + "reason": "Published and registered from an approved saved run outside the original campaign selection.", + "countedAsComplete": false + }, + { + "id": "flux_depth_marine_bow_repair", + "category": "supplementary-only", + "reason": "Published and registered from an approved saved run outside the original campaign selection.", + "countedAsComplete": false + }, + { + "id": "joy_plus_terracotta_on_limestone", + "category": "supplementary-only", + "reason": "Published and registered from an approved saved run outside the original campaign selection.", + "countedAsComplete": false + }, + { + "id": "omnigen_red_enamel_folded_linen", + "category": "supplementary-only", + "reason": "Published and registered from an approved saved run outside the original campaign selection.", + "countedAsComplete": false + }, + { + "id": "qwen_2511_terracotta_material_transfer", + "category": "supplementary-only", + "reason": "Published and registered from an approved saved run outside the original campaign selection.", + "countedAsComplete": false + }, + { + "id": "sd15_control_cobalt_handmade_paper", + "category": "supplementary-only", + "reason": "Published and registered from an approved saved run outside the original campaign selection.", + "countedAsComplete": false + }, + { + "id": "sd15_control_cobalt_studio_wall_repair", + "category": "supplementary-only", + "reason": "Published and registered from an approved saved run outside the original campaign selection.", + "countedAsComplete": false + }, + { + "id": "sd15_pag_control_wall_repair", + "category": "supplementary-only", + "reason": "Published and registered from an approved saved run outside the original campaign selection.", + "countedAsComplete": false + }, + { + "id": "sdxl_control_golden_boathouse", + "category": "supplementary-only", + "reason": "Published and registered from an approved saved run outside the original campaign selection.", + "countedAsComplete": false + }, + { + "id": "sdxl_pag_snow_cabin", + "category": "supplementary-only", + "reason": "Published and registered from an approved saved run outside the original campaign selection.", + "countedAsComplete": false } ], - "profileHash": "sha256:canonical-json:76c4067e6c1b5f113362403963a9ffdaac7843f4899cbdbbac88babc026752c6" + "profileHash": "sha256:canonical-json:f86733a3e445ac54f4950625dd1c689c1f3c6b833d3215f03df6e4be310d0965" } diff --git a/config/retained-gallery-approved-batch.v1.json b/config/retained-gallery-approved-batch.v1.json index ee00ffc6..c217d55f 100644 --- a/config/retained-gallery-approved-batch.v1.json +++ b/config/retained-gallery-approved-batch.v1.json @@ -976,5 +976,173 @@ "width": 1024, "height": 1024 } + }, + "flux_canny_clean_backdrop": { + "associationSha256": "9f9e09e1d0032216f1b497f611226193b6a567b03e139d3f86ff019c089d3e0e", + "backendSourceFingerprint": "sha256:backend-source-v1:585997dc1146ec6effb20c260272babc01713ecdea4f78a0872c12ef2568ef83", + "backendContractFingerprint": "sha256:backend-contract-v1:d6613341ff1a983e0a3c6d3c8f0efef39c5c1ec3e109197f6466cfd72a3f6f6e", + "templateRevisionHash": "ddec004faf0dea8ab0683f015a22350f6086d28d6b41ecc57f2c0abf81ca1755", + "primaryModelRepo": "black-forest-labs/FLUX.1-Canny-dev", + "capturedAt": "2026-11-24T14:06:06.057Z", + "outputExtension": "webp", + "outputSize": { + "width": 1024, + "height": 1024 + }, + "inputSize": { + "width": 1024, + "height": 1024 + } + }, + "flux_depth_marine_bow_repair": { + "associationSha256": "7dd77337f388b8353d6186bc76e39affbe954d4cef4f563285ec0d1a95c606f5", + "backendSourceFingerprint": "sha256:backend-source-v1:585997dc1146ec6effb20c260272babc01713ecdea4f78a0872c12ef2568ef83", + "backendContractFingerprint": "sha256:backend-contract-v1:d6613341ff1a983e0a3c6d3c8f0efef39c5c1ec3e109197f6466cfd72a3f6f6e", + "templateRevisionHash": "c36171bcdbd3076f271fb33743708207b8aeb0f4bfb68be30f7ee7a0239b0869", + "primaryModelRepo": "black-forest-labs/FLUX.1-Depth-dev", + "capturedAt": "2026-11-24T14:25:47.349Z", + "outputExtension": "webp", + "outputSize": { + "width": 1024, + "height": 1024 + }, + "inputSize": { + "width": 1024, + "height": 1024 + }, + "beforeExtension": "webp" + }, + "joy_plus_terracotta_on_limestone": { + "associationSha256": "c965dba84f8d3714ea44c11469455a5fbcdf11bbae44717a0e5a20b322ed67d9", + "backendSourceFingerprint": "sha256:backend-source-v1:585997dc1146ec6effb20c260272babc01713ecdea4f78a0872c12ef2568ef83", + "backendContractFingerprint": "sha256:backend-contract-v1:315617df789a8a5f57426692318e197c13786098718305edd1927471b5b9c194", + "templateRevisionHash": "2250434e38d29a0c2d27808d6f713bf75965dc3f5ade4a033a11d194ecd687b9", + "capturedAt": "2026-11-24T05:23:27.411Z", + "outputExtension": "webp", + "outputSize": { + "width": 1024, + "height": 1024 + }, + "inputSize": { + "width": 1024, + "height": 1024 + } + }, + "omnigen_red_enamel_folded_linen": { + "associationSha256": "f707f2507cbcc624334064fa63248f6a8b730e72778ca9faa5736dd52f1f52d5", + "backendSourceFingerprint": "sha256:backend-source-v1:b29a5b0d317aaa781ae2a5205b46b518eea5a3d68a214eb0968dba4ac0660af7", + "backendContractFingerprint": "sha256:backend-contract-v1:315617df789a8a5f57426692318e197c13786098718305edd1927471b5b9c194", + "templateRevisionHash": "595a3209f4bfb41d4930f0368e75bab6a19602ad0eae4d44dc535efd0a059652", + "capturedAt": "2026-11-25T05:12:08.254Z", + "outputExtension": "webp", + "outputSize": { + "width": 1024, + "height": 1024 + }, + "inputSize": { + "width": 384, + "height": 384 + } + }, + "qwen_2511_terracotta_material_transfer": { + "associationSha256": "b55dc0109b93fcc6b1af82016d5e61d0de0c968c9aead54e3699e9b6d3d2e275", + "backendSourceFingerprint": "sha256:backend-source-v1:e3aea8f8d102572ad10fdd0700f0c42d92061e864ede89777efcd6a3269770a8", + "backendContractFingerprint": "sha256:backend-contract-v1:315617df789a8a5f57426692318e197c13786098718305edd1927471b5b9c194", + "templateRevisionHash": "46a74671317b1b01f4ee5c7531e4d9fa32b8ba386bc9ba3321632f0168515b13", + "capturedAt": "2026-11-23T20:47:31.989Z", + "outputExtension": "webp", + "outputSize": { + "width": 1024, + "height": 1024 + }, + "inputSize": { + "width": 1024, + "height": 1024 + } + }, + "sd15_control_cobalt_handmade_paper": { + "associationSha256": "f08c694ec651b0c38518cf435ce5140627d14b39074551df6ab190fd8e576961", + "backendSourceFingerprint": "sha256:backend-source-v1:3227569ff822090d00a80a3a88213d76d5ca43092d2918cec2494962457865a5", + "backendContractFingerprint": "sha256:backend-contract-v1:b5b17d569852e051bdac1d2b3e08b4753392cadd39a1277f893bdf34f19490c5", + "templateRevisionHash": "fee63ff957b7394a6472d76a9f662abd1d86193d12ee6c0ab2cf6c77cf1e2b50", + "primaryModelRepo": "stable-diffusion-v1-5/stable-diffusion-v1-5", + "capturedAt": "2026-11-23T18:36:20.247Z", + "outputExtension": "webp", + "outputSize": { + "width": 512, + "height": 512 + }, + "inputSize": { + "width": 512, + "height": 512 + } + }, + "sd15_control_cobalt_studio_wall_repair": { + "associationSha256": "a25d434141bad5cc3deda9b08cb19a5954e772c32cf5f3a87517cd8142c61e89", + "backendSourceFingerprint": "sha256:backend-source-v1:fe1a57b8e352eb66a1a26ebbff5865aaafcf5d55326c4bbcbaf2132ec75f54a8", + "backendContractFingerprint": "sha256:backend-contract-v1:7271d6dfcd46a677217edf40c568c3f5e9ae300200f76976e0cf18fd9b9f2508", + "templateRevisionHash": "871cffe6c8b434f4d3afa1f65009582862b565313d180b56d5a61eedd5fd1aa8", + "primaryModelRepo": "stable-diffusion-v1-5/stable-diffusion-v1-5", + "capturedAt": "2026-11-23T15:27:55.645Z", + "outputExtension": "webp", + "outputSize": { + "width": 512, + "height": 512 + }, + "inputSize": { + "width": 512, + "height": 512 + } + }, + "sd15_pag_control_wall_repair": { + "associationSha256": "c685ec23f4be771c0746d40831f6b768525d7f12f3805282bb8e6d1fe32a3ba3", + "backendSourceFingerprint": "sha256:backend-source-v1:fe1a57b8e352eb66a1a26ebbff5865aaafcf5d55326c4bbcbaf2132ec75f54a8", + "backendContractFingerprint": "sha256:backend-contract-v1:7271d6dfcd46a677217edf40c568c3f5e9ae300200f76976e0cf18fd9b9f2508", + "templateRevisionHash": "155adb3c21e9aacbf62ac042d0e2d3b5ba9987331edd79dcff446b6053438a98", + "primaryModelRepo": "stable-diffusion-v1-5/stable-diffusion-v1-5", + "capturedAt": "2026-11-23T15:28:49.418Z", + "outputExtension": "webp", + "outputSize": { + "width": 512, + "height": 512 + }, + "inputSize": { + "width": 512, + "height": 512 + } + }, + "sdxl_control_golden_boathouse": { + "associationSha256": "3eb5289566ee4910568ed91a92fa2aced83d4a2eeef6089225287e1c8a97d672", + "backendSourceFingerprint": "sha256:backend-source-v1:2faeaaa03b7902a03df5cd0cea38129b7419f6d844125c0ca7e29ccfaf635290", + "backendContractFingerprint": "sha256:backend-contract-v1:b5b17d569852e051bdac1d2b3e08b4753392cadd39a1277f893bdf34f19490c5", + "templateRevisionHash": "94724166ff9512b26bca310deb3e9d2a16f88116cc157e42694d1a459bfc06cd", + "primaryModelRepo": "stabilityai/stable-diffusion-xl-base-1.0", + "capturedAt": "2026-11-25T04:34:53.900Z", + "outputExtension": "webp", + "outputSize": { + "width": 1024, + "height": 1024 + }, + "inputSize": { + "width": 1024, + "height": 1024 + } + }, + "sdxl_pag_snow_cabin": { + "associationSha256": "fff0a575997fa3709d36a1f008b335d9f0c716a99dcdaeebd0831b8e1ef7d37f", + "backendSourceFingerprint": "sha256:backend-source-v1:e3aea8f8d102572ad10fdd0700f0c42d92061e864ede89777efcd6a3269770a8", + "backendContractFingerprint": "sha256:backend-contract-v1:ad16452bc59ad56fa75df0e9f2f3b913f28233c906d4e37c4518fbc978d47953", + "templateRevisionHash": "1c302242a6a0e304537b15c53c8cb94dcffae8955039b0cbf3759331122864e1", + "primaryModelRepo": "stabilityai/stable-diffusion-xl-base-1.0", + "capturedAt": "2026-11-23T20:11:04.963Z", + "outputExtension": "webp", + "outputSize": { + "width": 1024, + "height": 1024 + }, + "inputSize": { + "width": 1024, + "height": 1024 + } } } diff --git a/config/retained-gallery-authoring-archives.v1.json b/config/retained-gallery-authoring-archives.v1.json index b231b1a5..34e1a42c 100644 --- a/config/retained-gallery-authoring-archives.v1.json +++ b/config/retained-gallery-authoring-archives.v1.json @@ -353,5 +353,55 @@ "descriptorSha256": "ba2d0fcc7d6327ad5b24538e4a07c69ef92a5bebd5534f143d5637194a328e1c", "bytes": 5489, "sha256": "6db62cbef82c733667d7c91eaabbcda257fc5e141bf8fb5caff3ad96af3c1865" + }, + "FluxCannyPipeline:control_inpaint": { + "descriptorSha256": "1960eca0824640f40d86820463d58beabf4421cb9262a3f3abf93eaa2f07aaa7", + "bytes": 5690, + "sha256": "c14e618968f0b6009b27192c5a526cedf459d86a1ffbd7daf170e8cc02d6d65d" + }, + "FluxDepthPipeline:control_inpaint": { + "descriptorSha256": "568eba4ce2c06b085b22ca13a69a6651d27ba404760ea5f6fb621e14ced5df44", + "bytes": 5690, + "sha256": "3842994d2b102543f510af88fa278a455203411137e8b710e2c3c1923ac08f6d" + }, + "JoyImageEditPlusPipeline:multi_image_reference_edit": { + "descriptorSha256": "7a419e8264420f38abdc18d4bf76d8ff9ec7ac21c736bf9c768477249b601d73", + "bytes": 4839, + "sha256": "024ead128a7b32c2d9c4b3e1e2d819f5aac55433c60c960e056d358ac68cf0d3" + }, + "OmniGenPipeline:multi_image_reference_edit": { + "descriptorSha256": "a460aeafd20c87b39c7464442ed13322da7e80a4dd8c4977db7f2d52d6c141a7", + "bytes": 4539, + "sha256": "6fee91234286325b38d12144267a539173ccd54d3c9ac89283fe3279b5d86405" + }, + "QwenImageEditPlusPipeline:multi_image_reference_edit": { + "descriptorSha256": "6400d5376ef83a864dd01e7afbcbabc7a33494b2f658f05c17891860f3fecded", + "bytes": 4595, + "sha256": "222cf61fe2637f6e387e7059239d0d97f668fd974aa88ed307ef0a09ab5be4da" + }, + "StableDiffusionPAGPipeline:control_inpaint": { + "descriptorSha256": "2a4f209aa2f96d0c76efd48dd8c9656547cbb6609e72d4b90864df1c9ad0f589", + "bytes": 6686, + "sha256": "e4c72cde6ea07b4b6775cdaa7bbb04434554625725be8dc43d42c314c9d9502d" + }, + "StableDiffusionPipeline:control_edit_image": { + "descriptorSha256": "a5828d189ae4e195b01c88ccc1b9d65af720dcf823b64b4509e228a53edabd29", + "bytes": 5924, + "sha256": "ce56546562622c8758fcb1932bb15495587df7ae3394357fac8e51cc698dc6c4" + }, + "StableDiffusionPipeline:control_inpaint": { + "descriptorSha256": "f46add4e31c93701f24c78093985cdbeac9aa043e94ab595d5314591f00b56b1", + "bytes": 6425, + "sha256": "25a36322d131f1f75d802a1ed917437efd9a27f89d95ac9239dcb9791f30b421" + }, + "StableDiffusionXLControlNetPipeline:control_edit_image": { + "descriptorSha256": "b72a583d7d31a2ba0d5f5cb2ff6b1414f36e4b9c4e41d8d861ce2a586ff843d7", + "bytes": 5984, + "sha256": "da10e07ff8bf72e72341c698acde798b4c9b5f270316db0201631243b31cb46f" + }, + "StableDiffusionXLPAGPipeline:control_image": { + "descriptorSha256": "038d2fc8fa5c8079d7d7abed56804816e29ac8032e5a7cdff2c62036060e9349", + "bytes": 5433, + "sha256": "17caaef1e18c850a32489b11a4eeae8e1b3ae349e7b037423a6e54aa7820a055" } } diff --git a/config/retained-gallery-batch-recipe-locks.v1.json b/config/retained-gallery-batch-recipe-locks.v1.json index 30006cce..984802f1 100644 --- a/config/retained-gallery-batch-recipe-locks.v1.json +++ b/config/retained-gallery-batch-recipe-locks.v1.json @@ -1010,5 +1010,168 @@ "inputSha256": "88290a96bc8d52f11f2d1e3c0c0e04c2027661816e54b57d7d4739d731ca1e75", "inputLocatorSha256": "b7e9b68e47a60f438c82f778b960f66d58d319de50749d453a9aa0c30c4df45a", "maskSha256": "877d3c4e0e976d3885419f3f327d8974394d69aca35667e5479b944880d84e04" + }, + "sd15_control_cobalt_handmade_paper": { + "workflowId": "StableDiffusionPipeline:control_edit_image", + "sourceTaskTemplateId": "task-template:sd15-controlnet-canny:control-edit-image:v1", + "retainedGraphHash": "sha256:canonical-graph-v1:eba7a5b4abc12764de5075d2119130189e161241038b4bcf1f0dce0acb70f176", + "originalReceiptSha256": "a5828d189ae4e195b01c88ccc1b9d65af720dcf823b64b4509e228a53edabd29", + "reviewedTemplateSha256": "fee63ff957b7394a6472d76a9f662abd1d86193d12ee6c0ab2cf6c77cf1e2b50", + "reviewedCatalogLock": { + "templateLockHash": "tpl_e80b75da", + "galleryTemplateLockHash": "tpl_764eeb73", + "promptSettingsHash": "ps_45a62571" + }, + "promptSha256": "9d5fa41d41e060b722f221c85ed57e821031161acbff73f6c0fb25b7b4909494", + "inputSha256": "d143c4922ad498b9bd436d06df424bbff50baf023b93735b53ee401e19e4cbf1", + "inputLocatorSha256": "efcb2b3b9ced784bb620763301bb33ea3b2f6ac2561624a4a60c7a735049cfb1", + "guideSha256": "6d47a2f07006b98f9e5cfc8ee925914c4dbfa39fd38b0b61770be56d12ed04e8" + }, + "sd15_control_cobalt_studio_wall_repair": { + "workflowId": "StableDiffusionPipeline:control_inpaint", + "sourceTaskTemplateId": "task-template:sd15-controlnet-canny:control-inpaint:v1", + "retainedGraphHash": "sha256:canonical-graph-v1:0d2aba098bb0cecaaf59dc601a54f637849a0918166655f546313f69e29aa5ad", + "originalReceiptSha256": "f46add4e31c93701f24c78093985cdbeac9aa043e94ab595d5314591f00b56b1", + "reviewedTemplateSha256": "871cffe6c8b434f4d3afa1f65009582862b565313d180b56d5a61eedd5fd1aa8", + "reviewedCatalogLock": { + "templateLockHash": "tpl_044156de", + "galleryTemplateLockHash": "tpl_8b4c43db", + "promptSettingsHash": "ps_e2e07bdd" + }, + "promptSha256": "6fc14c5f9b0154a38b165fcb9b2cb766e2091f7dddc1975a2247f8008c6eada5", + "inputSha256": "d143c4922ad498b9bd436d06df424bbff50baf023b93735b53ee401e19e4cbf1", + "inputLocatorSha256": "efcb2b3b9ced784bb620763301bb33ea3b2f6ac2561624a4a60c7a735049cfb1", + "maskSha256": "71817f4823a73712c8e76e7d832ec382c29ec0a0bf5a472e09639448c082da01", + "guideSha256": "6d47a2f07006b98f9e5cfc8ee925914c4dbfa39fd38b0b61770be56d12ed04e8" + }, + "sd15_pag_control_wall_repair": { + "workflowId": "StableDiffusionPAGPipeline:control_inpaint", + "sourceTaskTemplateId": "task-template:sd15-pag-controlnet-canny:control-inpaint:v1", + "retainedGraphHash": "sha256:canonical-graph-v1:b69353e3e634e8d228cf19a84c525efa3b227384920e592d2e7729d428622881", + "originalReceiptSha256": "2a4f209aa2f96d0c76efd48dd8c9656547cbb6609e72d4b90864df1c9ad0f589", + "reviewedTemplateSha256": "155adb3c21e9aacbf62ac042d0e2d3b5ba9987331edd79dcff446b6053438a98", + "reviewedCatalogLock": { + "templateLockHash": "tpl_ab690ded", + "galleryTemplateLockHash": "tpl_59e3f364", + "promptSettingsHash": "ps_79b65484" + }, + "promptSha256": "30f0c5c1651311616c5fa4628d40c4ec493db39825cc7c71a4a8bf669a61cf69", + "inputSha256": "d143c4922ad498b9bd436d06df424bbff50baf023b93735b53ee401e19e4cbf1", + "inputLocatorSha256": "efcb2b3b9ced784bb620763301bb33ea3b2f6ac2561624a4a60c7a735049cfb1", + "maskSha256": "71817f4823a73712c8e76e7d832ec382c29ec0a0bf5a472e09639448c082da01", + "guideSha256": "6d47a2f07006b98f9e5cfc8ee925914c4dbfa39fd38b0b61770be56d12ed04e8" + }, + "sdxl_pag_snow_cabin": { + "workflowId": "StableDiffusionXLPAGPipeline:control_image", + "sourceTaskTemplateId": "task-template:sdxl-pag-controlnet-canny:control-image:v1", + "retainedGraphHash": "sha256:canonical-graph-v1:24f301293a57d60503933f0cd2a278f6ee932db5617a339310d0a25c36eaa175", + "originalReceiptSha256": "038d2fc8fa5c8079d7d7abed56804816e29ac8032e5a7cdff2c62036060e9349", + "reviewedTemplateSha256": "1c302242a6a0e304537b15c53c8cb94dcffae8955039b0cbf3759331122864e1", + "reviewedCatalogLock": { + "templateLockHash": "tpl_fc73e8c4", + "galleryTemplateLockHash": "tpl_50666a60", + "promptSettingsHash": "ps_109abbf3" + }, + "promptSha256": "1d7010ebe7625c3d79724c0e436e9b7edd359fd4907a5242acdd8737fb8aeab9", + "inputSha256": "ca250462efc77625134ebe305b2ee67281a1dcf8919e45299c648f0fdacf919a", + "inputLocatorSha256": "5c41a25a1747974eb20ae701984d2e13c2979cd0069944f7ef21429677d4c046" + }, + "flux_canny_clean_backdrop": { + "workflowId": "FluxCannyPipeline:control_inpaint", + "sourceTaskTemplateId": "task-template:flux-canny:control-inpaint:v1", + "retainedGraphHash": "sha256:canonical-graph-v1:567248f43a620bfcfb34690914d010f2aba19a147e132f1ada00aeba9fcde561", + "originalReceiptSha256": "1960eca0824640f40d86820463d58beabf4421cb9262a3f3abf93eaa2f07aaa7", + "reviewedTemplateSha256": "ddec004faf0dea8ab0683f015a22350f6086d28d6b41ecc57f2c0abf81ca1755", + "reviewedCatalogLock": { + "templateLockHash": "tpl_20041805", + "galleryTemplateLockHash": "tpl_c1982b94", + "promptSettingsHash": "ps_491e886d" + }, + "promptSha256": "7f566625fe9a4dc897da22dfbcdcbe51ffc427f7fad6c3b9bf694571992a3593", + "inputSha256": "e75c20f0e8a74e283b996bf526e6ea74535ed24125ad97c2d92508d3435d7a87", + "inputLocatorSha256": "69ba088466bbd714eba0a70d1dc24984230ca1ac74b00ac0ff1bbcb29675799d", + "maskSha256": "1f48775f2826f84e0c5b55f16f3475bdc80ecad8b931d6b0279598610e9a828d", + "guideSha256": "6bd07628a37c087178e9de58a98c6c5879468163f1a2376a581511a42503e2e2" + }, + "flux_depth_marine_bow_repair": { + "workflowId": "FluxDepthPipeline:control_inpaint", + "sourceTaskTemplateId": "task-template:flux-depth:control-inpaint:v1", + "retainedGraphHash": "sha256:canonical-graph-v1:ffd5894d66a9372f95715d365e9698c48b72b1422aebad4d1a0f14932b2f03bd", + "originalReceiptSha256": "568eba4ce2c06b085b22ca13a69a6651d27ba404760ea5f6fb621e14ced5df44", + "reviewedTemplateSha256": "c36171bcdbd3076f271fb33743708207b8aeb0f4bfb68be30f7ee7a0239b0869", + "reviewedCatalogLock": { + "templateLockHash": "tpl_6ec376ac", + "galleryTemplateLockHash": "tpl_d739eca3", + "promptSettingsHash": "ps_e637018a" + }, + "promptSha256": "ae3ca5f0917da122af1d33ebe7e5d72ca40bee819f9f9fd0e156e9fa4018d212", + "inputSha256": "c3d52c29b6a8cae80d2feffb8a978cded8b34509abd09216f665ab3af13f189e", + "inputLocatorSha256": "2ae6a397d6ca024be5a0aa7685d94978f9186f46a1ed0ad84470d923b63b790c", + "maskSha256": "765f215aa6f8c0087a67af872a26149223373d5ab4a8afba6331caad5bc45d4c", + "guideSha256": "2e202069a584ee5ada91e2deaea6bf7b92a94f4816e669e695d7cb64d5a1cb0e" + }, + "sdxl_control_golden_boathouse": { + "workflowId": "StableDiffusionXLControlNetPipeline:control_edit_image", + "sourceTaskTemplateId": "task-template:sdxl-controlnet-canny:control-edit-image:v1", + "retainedGraphHash": "sha256:canonical-graph-v1:6d79e032074b89f72078418c91345d440f5e348f2890a177b8c33c801b0d385f", + "originalReceiptSha256": "b72a583d7d31a2ba0d5f5cb2ff6b1414f36e4b9c4e41d8d861ce2a586ff843d7", + "reviewedTemplateSha256": "94724166ff9512b26bca310deb3e9d2a16f88116cc157e42694d1a459bfc06cd", + "reviewedCatalogLock": { + "templateLockHash": "tpl_863b942f", + "galleryTemplateLockHash": "tpl_249a8d5d", + "promptSettingsHash": "ps_97318fec" + }, + "promptSha256": "80c99a9930755f9e7da1a0c8ccfdd0f06d0ad161b5eaae238b1564766713dbd1", + "inputSha256": "e1d9736125cad717896f0c7d5274a6373676559f250d76cedcc8f8aae9379ec6", + "inputLocatorSha256": "6d770f577a91e91ca4f072444e8dad46d8459da8b0950cbfeab8c15d30abff67", + "guideSha256": "322a9aa511a7d21524758724b1666fc220abf563def5e5d1294630e7e58a3b96" + }, + "qwen_2511_terracotta_material_transfer": { + "workflowId": "QwenImageEditPlusPipeline:multi_image_reference_edit", + "sourceTaskTemplateId": "task-template:qwen-image-edit-plus-direct:multi-image-reference-edit:v1", + "retainedGraphHash": "sha256:canonical-graph-v1:c0d621c2ba7c54d24a8a3a3e3a584bba49979cf3f26ec2fcf30bf335fc15f4fc", + "originalReceiptSha256": "6400d5376ef83a864dd01e7afbcbabc7a33494b2f658f05c17891860f3fecded", + "reviewedTemplateSha256": "46a74671317b1b01f4ee5c7531e4d9fa32b8ba386bc9ba3321632f0168515b13", + "reviewedCatalogLock": { + "templateLockHash": "tpl_34f41c9d", + "galleryTemplateLockHash": "tpl_5f771a9f", + "promptSettingsHash": "ps_4e83ee4e" + }, + "promptSha256": "4dd64cdc760833745fe93afba3a8b1657f7e11dcbb9657402137c0b3296e3267", + "inputSha256": "0a41a9c56b98945e60c96ef796660c35b2cab7bf0b36d5e84ab0d97ef97f0a5a", + "inputLocatorSha256": "e6b781cc8a8fc7ccbd32136c83882dbfb6e034ca9770ab5fba37138841d3772a", + "secondaryReferenceSha256": "056615dd7833d38cfed12d45b30bb0c6e439bf1585f4964da4796ca5b43f20ea" + }, + "joy_plus_terracotta_on_limestone": { + "workflowId": "JoyImageEditPlusPipeline:multi_image_reference_edit", + "sourceTaskTemplateId": "task-template:joyimage-edit-plus:multi-image-reference-edit:v1", + "retainedGraphHash": "sha256:canonical-graph-v1:45c63449a5f682f068eaaad12a3cb73dbae46dad5924c18609cbba30d8937f8f", + "originalReceiptSha256": "7a419e8264420f38abdc18d4bf76d8ff9ec7ac21c736bf9c768477249b601d73", + "reviewedTemplateSha256": "2250434e38d29a0c2d27808d6f713bf75965dc3f5ade4a033a11d194ecd687b9", + "reviewedCatalogLock": { + "templateLockHash": "tpl_2069ce43", + "galleryTemplateLockHash": "tpl_871e0927", + "promptSettingsHash": "ps_79969b6a" + }, + "promptSha256": "4d08d478cc5e3a616dcdc7a84ad7a8675dcba95e78031d8d2f1dae92095381b8", + "inputSha256": "0a41a9c56b98945e60c96ef796660c35b2cab7bf0b36d5e84ab0d97ef97f0a5a", + "inputLocatorSha256": "e6b781cc8a8fc7ccbd32136c83882dbfb6e034ca9770ab5fba37138841d3772a", + "secondaryReferenceSha256": "056615dd7833d38cfed12d45b30bb0c6e439bf1585f4964da4796ca5b43f20ea" + }, + "omnigen_red_enamel_folded_linen": { + "workflowId": "OmniGenPipeline:multi_image_reference_edit", + "sourceTaskTemplateId": "task-template:omnigen-v1:multi-image-reference-edit:v1", + "retainedGraphHash": "sha256:canonical-graph-v1:4d2c6321c55423646e3776f57b41f32a0b7da6ab3d3b74daa49bc81fd17f9793", + "originalReceiptSha256": "a460aeafd20c87b39c7464442ed13322da7e80a4dd8c4977db7f2d52d6c141a7", + "reviewedTemplateSha256": "595a3209f4bfb41d4930f0368e75bab6a19602ad0eae4d44dc535efd0a059652", + "reviewedCatalogLock": { + "templateLockHash": "tpl_4a4099d8", + "galleryTemplateLockHash": "tpl_70aa866a", + "promptSettingsHash": "ps_cb1c21de" + }, + "promptSha256": "c4c716ab31b3f14948aab044849b4b64491d33490e07679a8246077b857511a3", + "inputSha256": "4077a18ad81b7fb6a1e7285777cac6241f6c0109a680945487b81e8561f30d8c", + "inputLocatorSha256": "5a46183214a436513e67baea1b25bb4a8452caf67f66c11c03d3ef404d7459ee", + "secondaryReferenceSha256": "a0b713856d9a2d7956605fe85b26eef641bdede49400583f9c87c25fd3e324ec" } } diff --git a/config/template-asset-rights.v1.json b/config/template-asset-rights.v1.json index 43ddd5ba..c6bf698a 100644 --- a/config/template-asset-rights.v1.json +++ b/config/template-asset-rights.v1.json @@ -1,6 +1,6 @@ { "schemaVersion": 1, - "assetSetId": "sha256:canonical-json:649f3cf808a22d61c582c6c78e4f62b70fd4854f19d78a8d0fd442d7986fdb30", + "assetSetId": "sha256:canonical-json:48da62e1f9fb4bb7ed02c8536ff3e4c37dfedccdb91dca7e24fd2654eb38bdf2", "records": [ { "path": "template-gallery/ace_step_audio_continuation.wav", @@ -1127,6 +1127,33 @@ "modelUseBasis": "Non-commercial use only", "provenanceTemplateId": "flux3_klein_fp8r512_text_to_image" }, + { + "path": "template-gallery/flux_canny_clean_backdrop.webp", + "sha256": "sha256:bytes:7261f62b7730f9bd0ceebf9beb3c768cf81640afaeb6285ba6f7f2cdb1406df2", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Exact approved file captured from a saved MoDiff workflow", + "sourceUrl": "https://huggingface.co/black-forest-labs/FLUX.1-Canny-dev/tree/27c3d8bdc17509b47cf4fd9ba25ab1c7508a69a2", + "sourceRevision": "black-forest-labs/FLUX.1-Canny-dev@27c3d8bdc17509b47cf4fd9ba25ab1c7508a69a2", + "sourceLicense": "Maintainer-authorized file with publisher terms retained", + "modelTerms": [ + "Publisher model terms at https://huggingface.co/black-forest-labs/FLUX.1-Canny-dev/tree/27c3d8bdc17509b47cf4fd9ba25ab1c7508a69a2" + ], + "aiGenerated": true, + "humanLikenessConsent": "synthetic", + "marks": [], + "requiredAttribution": [ + "black-forest-labs/FLUX.1-Canny-dev@27c3d8bdc17509b47cf4fd9ba25ab1c7508a69a2 https://huggingface.co/black-forest-labs/FLUX.1-Canny-dev/tree/27c3d8bdc17509b47cf4fd9ba25ab1c7508a69a2" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "d7e2fd301d16eede3da44cec1811930560ba0d958dfd46d8d0962eb3a22eea63", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "flux_canny_clean_backdrop" + }, { "creatorOrRightsholder": "MoDiff project maintainers", "creationMethod": "Native MoDiff image generation or editing for flux_control_canny", @@ -1177,6 +1204,33 @@ "humanApprovalPacketSHA256": "351d122936dc8df9c3fb6217005641dd2cc2ecddc39cd7cd7fadc2939def70b3", "provenanceTemplateId": "flux_depth_control" }, + { + "path": "template-gallery/flux_depth_marine_bow_repair.webp", + "sha256": "sha256:bytes:05697db755f8deae61615744c651ee81af79c0dded87323841d01e980d87c9cf", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Exact approved file captured from a saved MoDiff workflow", + "sourceUrl": "https://huggingface.co/black-forest-labs/FLUX.1-Depth-dev/tree/fb5e9b1bae41b8c8adcea4ea2a87b74dd298f07a", + "sourceRevision": "black-forest-labs/FLUX.1-Depth-dev@fb5e9b1bae41b8c8adcea4ea2a87b74dd298f07a", + "sourceLicense": "Maintainer-authorized file with publisher terms retained", + "modelTerms": [ + "Publisher model terms at https://huggingface.co/black-forest-labs/FLUX.1-Depth-dev/tree/fb5e9b1bae41b8c8adcea4ea2a87b74dd298f07a" + ], + "aiGenerated": true, + "humanLikenessConsent": "synthetic", + "marks": [], + "requiredAttribution": [ + "black-forest-labs/FLUX.1-Depth-dev@fb5e9b1bae41b8c8adcea4ea2a87b74dd298f07a https://huggingface.co/black-forest-labs/FLUX.1-Depth-dev/tree/fb5e9b1bae41b8c8adcea4ea2a87b74dd298f07a" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "d7e2fd301d16eede3da44cec1811930560ba0d958dfd46d8d0962eb3a22eea63", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "flux_depth_marine_bow_repair" + }, { "path": "template-gallery/flux_dev_expert_text_to_image.card-poster.webp", "sha256": "sha256:bytes:13c815eb6d245685e543d000e499036aad973bea6c0d4fff01c670580db08206", @@ -4264,6 +4318,87 @@ ], "approvalInheritedFromPath": "template-gallery/inputs/flux2_klein_edit.before.png" }, + { + "path": "template-gallery/inputs/flux_canny_clean_backdrop.before.png", + "sha256": "sha256:bytes:e75c20f0e8a74e283b996bf526e6ea74535ed24125ad97c2d92508d3435d7a87", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Exact approved file captured from a saved MoDiff workflow", + "sourceUrl": "https://huggingface.co/black-forest-labs/FLUX.1-Canny-dev/tree/27c3d8bdc17509b47cf4fd9ba25ab1c7508a69a2", + "sourceRevision": "black-forest-labs/FLUX.1-Canny-dev@27c3d8bdc17509b47cf4fd9ba25ab1c7508a69a2", + "sourceLicense": "Maintainer-authorized file with publisher terms retained", + "modelTerms": [ + "Publisher model terms at https://huggingface.co/black-forest-labs/FLUX.1-Canny-dev/tree/27c3d8bdc17509b47cf4fd9ba25ab1c7508a69a2" + ], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "black-forest-labs/FLUX.1-Canny-dev@27c3d8bdc17509b47cf4fd9ba25ab1c7508a69a2 https://huggingface.co/black-forest-labs/FLUX.1-Canny-dev/tree/27c3d8bdc17509b47cf4fd9ba25ab1c7508a69a2" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "d7e2fd301d16eede3da44cec1811930560ba0d958dfd46d8d0962eb3a22eea63", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "flux_canny_clean_backdrop" + }, + { + "path": "template-gallery/inputs/flux_canny_clean_backdrop.guide.png", + "sha256": "sha256:bytes:6bd07628a37c087178e9de58a98c6c5879468163f1a2376a581511a42503e2e2", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Exact approved file captured from a saved MoDiff workflow", + "sourceUrl": "https://huggingface.co/black-forest-labs/FLUX.1-Canny-dev/tree/27c3d8bdc17509b47cf4fd9ba25ab1c7508a69a2", + "sourceRevision": "black-forest-labs/FLUX.1-Canny-dev@27c3d8bdc17509b47cf4fd9ba25ab1c7508a69a2", + "sourceLicense": "Maintainer-authorized file with publisher terms retained", + "modelTerms": [ + "Publisher model terms at https://huggingface.co/black-forest-labs/FLUX.1-Canny-dev/tree/27c3d8bdc17509b47cf4fd9ba25ab1c7508a69a2" + ], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "black-forest-labs/FLUX.1-Canny-dev@27c3d8bdc17509b47cf4fd9ba25ab1c7508a69a2 https://huggingface.co/black-forest-labs/FLUX.1-Canny-dev/tree/27c3d8bdc17509b47cf4fd9ba25ab1c7508a69a2" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "d7e2fd301d16eede3da44cec1811930560ba0d958dfd46d8d0962eb3a22eea63", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "flux_canny_clean_backdrop" + }, + { + "path": "template-gallery/inputs/flux_canny_clean_backdrop.mask.png", + "sha256": "sha256:bytes:1f48775f2826f84e0c5b55f16f3475bdc80ecad8b931d6b0279598610e9a828d", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Exact approved file captured from a saved MoDiff workflow", + "sourceUrl": "https://huggingface.co/black-forest-labs/FLUX.1-Canny-dev/tree/27c3d8bdc17509b47cf4fd9ba25ab1c7508a69a2", + "sourceRevision": "black-forest-labs/FLUX.1-Canny-dev@27c3d8bdc17509b47cf4fd9ba25ab1c7508a69a2", + "sourceLicense": "Maintainer-authorized file with publisher terms retained", + "modelTerms": [ + "Publisher model terms at https://huggingface.co/black-forest-labs/FLUX.1-Canny-dev/tree/27c3d8bdc17509b47cf4fd9ba25ab1c7508a69a2" + ], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "black-forest-labs/FLUX.1-Canny-dev@27c3d8bdc17509b47cf4fd9ba25ab1c7508a69a2 https://huggingface.co/black-forest-labs/FLUX.1-Canny-dev/tree/27c3d8bdc17509b47cf4fd9ba25ab1c7508a69a2" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "d7e2fd301d16eede3da44cec1811930560ba0d958dfd46d8d0962eb3a22eea63", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "flux_canny_clean_backdrop" + }, { "path": "template-gallery/inputs/flux_control_canny.before.png", "sha256": "sha256:bytes:3d03ee22a3d29068f30f18afcb31e86ea455fbfbe1ca5aa172cf633a26f21339", @@ -4312,6 +4447,87 @@ "provenanceTemplateId": "flux_depth_control", "consumingTemplateIds": ["flux_depth_control"] }, + { + "path": "template-gallery/inputs/flux_depth_marine_bow_repair.before.webp", + "sha256": "sha256:bytes:c3d52c29b6a8cae80d2feffb8a978cded8b34509abd09216f665ab3af13f189e", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Exact approved file captured from a saved MoDiff workflow", + "sourceUrl": "https://huggingface.co/black-forest-labs/FLUX.1-Depth-dev/tree/fb5e9b1bae41b8c8adcea4ea2a87b74dd298f07a", + "sourceRevision": "black-forest-labs/FLUX.1-Depth-dev@fb5e9b1bae41b8c8adcea4ea2a87b74dd298f07a", + "sourceLicense": "Maintainer-authorized file with publisher terms retained", + "modelTerms": [ + "Publisher model terms at https://huggingface.co/black-forest-labs/FLUX.1-Depth-dev/tree/fb5e9b1bae41b8c8adcea4ea2a87b74dd298f07a" + ], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "black-forest-labs/FLUX.1-Depth-dev@fb5e9b1bae41b8c8adcea4ea2a87b74dd298f07a https://huggingface.co/black-forest-labs/FLUX.1-Depth-dev/tree/fb5e9b1bae41b8c8adcea4ea2a87b74dd298f07a" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "d7e2fd301d16eede3da44cec1811930560ba0d958dfd46d8d0962eb3a22eea63", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "flux_depth_marine_bow_repair" + }, + { + "path": "template-gallery/inputs/flux_depth_marine_bow_repair.guide.png", + "sha256": "sha256:bytes:2e202069a584ee5ada91e2deaea6bf7b92a94f4816e669e695d7cb64d5a1cb0e", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Exact approved file captured from a saved MoDiff workflow", + "sourceUrl": "https://huggingface.co/black-forest-labs/FLUX.1-Depth-dev/tree/fb5e9b1bae41b8c8adcea4ea2a87b74dd298f07a", + "sourceRevision": "black-forest-labs/FLUX.1-Depth-dev@fb5e9b1bae41b8c8adcea4ea2a87b74dd298f07a", + "sourceLicense": "Maintainer-authorized file with publisher terms retained", + "modelTerms": [ + "Publisher model terms at https://huggingface.co/black-forest-labs/FLUX.1-Depth-dev/tree/fb5e9b1bae41b8c8adcea4ea2a87b74dd298f07a" + ], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "black-forest-labs/FLUX.1-Depth-dev@fb5e9b1bae41b8c8adcea4ea2a87b74dd298f07a https://huggingface.co/black-forest-labs/FLUX.1-Depth-dev/tree/fb5e9b1bae41b8c8adcea4ea2a87b74dd298f07a" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "d7e2fd301d16eede3da44cec1811930560ba0d958dfd46d8d0962eb3a22eea63", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "flux_depth_marine_bow_repair" + }, + { + "path": "template-gallery/inputs/flux_depth_marine_bow_repair.mask.png", + "sha256": "sha256:bytes:765f215aa6f8c0087a67af872a26149223373d5ab4a8afba6331caad5bc45d4c", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Exact approved file captured from a saved MoDiff workflow", + "sourceUrl": "https://huggingface.co/black-forest-labs/FLUX.1-Depth-dev/tree/fb5e9b1bae41b8c8adcea4ea2a87b74dd298f07a", + "sourceRevision": "black-forest-labs/FLUX.1-Depth-dev@fb5e9b1bae41b8c8adcea4ea2a87b74dd298f07a", + "sourceLicense": "Maintainer-authorized file with publisher terms retained", + "modelTerms": [ + "Publisher model terms at https://huggingface.co/black-forest-labs/FLUX.1-Depth-dev/tree/fb5e9b1bae41b8c8adcea4ea2a87b74dd298f07a" + ], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "black-forest-labs/FLUX.1-Depth-dev@fb5e9b1bae41b8c8adcea4ea2a87b74dd298f07a https://huggingface.co/black-forest-labs/FLUX.1-Depth-dev/tree/fb5e9b1bae41b8c8adcea4ea2a87b74dd298f07a" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "d7e2fd301d16eede3da44cec1811930560ba0d958dfd46d8d0962eb3a22eea63", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "flux_depth_marine_bow_repair" + }, { "path": "template-gallery/inputs/flux_fill_inpaint.before.webp", "sha256": "sha256:bytes:b7c221b367738177e32fece56067d743df96282a6ccb2afd040ee89ea0a8f678", @@ -4619,6 +4835,60 @@ "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", "provenanceTemplateId": "joy_plus_lavender_on_limestone" }, + { + "path": "template-gallery/inputs/joy_plus_terracotta_on_limestone.before.png", + "sha256": "sha256:bytes:0a41a9c56b98945e60c96ef796660c35b2cab7bf0b36d5e84ab0d97ef97f0a5a", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Exact approved file captured from a saved MoDiff workflow", + "sourceUrl": "https://huggingface.co/jdopensource/JoyAI-Image-Edit-Plus-Diffusers/tree/c2686460c7b64d8aa11bc4d0da423fb316b33f9e", + "sourceRevision": "jdopensource/JoyAI-Image-Edit-Plus-Diffusers@c2686460c7b64d8aa11bc4d0da423fb316b33f9e", + "sourceLicense": "Maintainer-authorized file with publisher terms retained", + "modelTerms": [ + "Publisher model terms at https://huggingface.co/jdopensource/JoyAI-Image-Edit-Plus-Diffusers/tree/c2686460c7b64d8aa11bc4d0da423fb316b33f9e" + ], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "jdopensource/JoyAI-Image-Edit-Plus-Diffusers@c2686460c7b64d8aa11bc4d0da423fb316b33f9e https://huggingface.co/jdopensource/JoyAI-Image-Edit-Plus-Diffusers/tree/c2686460c7b64d8aa11bc4d0da423fb316b33f9e" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "d7e2fd301d16eede3da44cec1811930560ba0d958dfd46d8d0962eb3a22eea63", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "joy_plus_terracotta_on_limestone" + }, + { + "path": "template-gallery/inputs/joy_plus_terracotta_on_limestone.reference-2.png", + "sha256": "sha256:bytes:056615dd7833d38cfed12d45b30bb0c6e439bf1585f4964da4796ca5b43f20ea", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Exact approved file captured from a saved MoDiff workflow", + "sourceUrl": "https://huggingface.co/jdopensource/JoyAI-Image-Edit-Plus-Diffusers/tree/c2686460c7b64d8aa11bc4d0da423fb316b33f9e", + "sourceRevision": "jdopensource/JoyAI-Image-Edit-Plus-Diffusers@c2686460c7b64d8aa11bc4d0da423fb316b33f9e", + "sourceLicense": "Maintainer-authorized file with publisher terms retained", + "modelTerms": [ + "Publisher model terms at https://huggingface.co/jdopensource/JoyAI-Image-Edit-Plus-Diffusers/tree/c2686460c7b64d8aa11bc4d0da423fb316b33f9e" + ], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "jdopensource/JoyAI-Image-Edit-Plus-Diffusers@c2686460c7b64d8aa11bc4d0da423fb316b33f9e https://huggingface.co/jdopensource/JoyAI-Image-Edit-Plus-Diffusers/tree/c2686460c7b64d8aa11bc4d0da423fb316b33f9e" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "d7e2fd301d16eede3da44cec1811930560ba0d958dfd46d8d0962eb3a22eea63", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "joy_plus_terracotta_on_limestone" + }, { "path": "template-gallery/inputs/joyimage_base_cobalt_paper_band.before.png", "sha256": "sha256:bytes:0a41a9c56b98945e60c96ef796660c35b2cab7bf0b36d5e84ab0d97ef97f0a5a", @@ -4929,57 +5199,165 @@ "provenanceTemplateId": "omnigen_cobalt_against_soft_apricot" }, { - "path": "template-gallery/inputs/qwen-carton-layout-control.png", - "sha256": "sha256:bytes:b748201353f02543c2a48920bb514c2741366151df45bf6c4904aeb0f32f1a67", - "publishDecision": "approved", - "holdReason": null, - "creatorOrRightsholder": "MoDiff project maintainers, subject to the recorded source and model terms", - "creationMethod": "AI-generated Gallery media or deterministic derivative", - "sourceUrl": null, - "sourceRevision": null, - "sourceLicense": "Original generation or recorded workflow input; see modelTerms", - "modelTerms": [ - "Independent Gallery media: exact generation model was not captured in checked provenance; human output-rights attestation required." - ], - "aiGenerated": true, - "humanLikenessConsent": "synthetic", - "marks": [], - "requiredAttribution": [], - "assetLicense": "MoDiff-Gallery-Restricted-1.0", - "reviewedBy": "SOURAV DAS", - "reviewedAt": "2026-08-03", - "reviewClass": "standard-human-attestation" - }, - { - "path": "template-gallery/inputs/qwen_2511_pale_amber_on_limestone.before.png", - "sha256": "sha256:bytes:0a41a9c56b98945e60c96ef796660c35b2cab7bf0b36d5e84ab0d97ef97f0a5a", + "path": "template-gallery/inputs/omnigen_red_enamel_folded_linen.before.png", + "sha256": "sha256:bytes:4077a18ad81b7fb6a1e7285777cac6241f6c0109a680945487b81e8561f30d8c", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Exact approved file captured from a saved MoDiff workflow", - "sourceUrl": "https://huggingface.co/Qwen/Qwen-Image-Edit-2511/tree/6f3ccc0b56e431dc6a0c2b2039706d7d26f22cb9", - "sourceRevision": "Qwen/Qwen-Image-Edit-2511@6f3ccc0b56e431dc6a0c2b2039706d7d26f22cb9", + "sourceUrl": "https://huggingface.co/Shitao/OmniGen-v1-diffusers/tree/016e2f61d12a98303f6bbdf122687694d7984268", + "sourceRevision": "Shitao/OmniGen-v1-diffusers@016e2f61d12a98303f6bbdf122687694d7984268", "sourceLicense": "Maintainer-authorized file with publisher terms retained", "modelTerms": [ - "Publisher model terms at https://huggingface.co/Qwen/Qwen-Image-Edit-2511/tree/6f3ccc0b56e431dc6a0c2b2039706d7d26f22cb9" + "Publisher model terms at https://huggingface.co/Shitao/OmniGen-v1-diffusers/tree/016e2f61d12a98303f6bbdf122687694d7984268" ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "Qwen/Qwen-Image-Edit-2511@6f3ccc0b56e431dc6a0c2b2039706d7d26f22cb9 https://huggingface.co/Qwen/Qwen-Image-Edit-2511/tree/6f3ccc0b56e431dc6a0c2b2039706d7d26f22cb9" + "Shitao/OmniGen-v1-diffusers@016e2f61d12a98303f6bbdf122687694d7984268 https://huggingface.co/Shitao/OmniGen-v1-diffusers/tree/016e2f61d12a98303f6bbdf122687694d7984268" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "60b01498a2df5f4e4622cdc2f9a43c83d187820780d2425a19718c13707db501", + "humanApprovalPacketSHA256": "d7e2fd301d16eede3da44cec1811930560ba0d958dfd46d8d0962eb3a22eea63", "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", - "provenanceTemplateId": "qwen_2511_pale_amber_on_limestone" + "provenanceTemplateId": "omnigen_red_enamel_folded_linen" }, { - "path": "template-gallery/inputs/qwen_2512_cobalt_backdrop_repair.before.png", - "sha256": "sha256:bytes:f5db354dc97ea11898d868898c5cc8ef454bb75ffe098b00bb2f06bc89f85885", + "path": "template-gallery/inputs/omnigen_red_enamel_folded_linen.reference-2.png", + "sha256": "sha256:bytes:a0b713856d9a2d7956605fe85b26eef641bdede49400583f9c87c25fd3e324ec", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Exact approved file captured from a saved MoDiff workflow", + "sourceUrl": "https://huggingface.co/Shitao/OmniGen-v1-diffusers/tree/016e2f61d12a98303f6bbdf122687694d7984268", + "sourceRevision": "Shitao/OmniGen-v1-diffusers@016e2f61d12a98303f6bbdf122687694d7984268", + "sourceLicense": "Maintainer-authorized file with publisher terms retained", + "modelTerms": [ + "Publisher model terms at https://huggingface.co/Shitao/OmniGen-v1-diffusers/tree/016e2f61d12a98303f6bbdf122687694d7984268" + ], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "Shitao/OmniGen-v1-diffusers@016e2f61d12a98303f6bbdf122687694d7984268 https://huggingface.co/Shitao/OmniGen-v1-diffusers/tree/016e2f61d12a98303f6bbdf122687694d7984268" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "d7e2fd301d16eede3da44cec1811930560ba0d958dfd46d8d0962eb3a22eea63", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "omnigen_red_enamel_folded_linen" + }, + { + "path": "template-gallery/inputs/qwen-carton-layout-control.png", + "sha256": "sha256:bytes:b748201353f02543c2a48920bb514c2741366151df45bf6c4904aeb0f32f1a67", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, subject to the recorded source and model terms", + "creationMethod": "AI-generated Gallery media or deterministic derivative", + "sourceUrl": null, + "sourceRevision": null, + "sourceLicense": "Original generation or recorded workflow input; see modelTerms", + "modelTerms": [ + "Independent Gallery media: exact generation model was not captured in checked provenance; human output-rights attestation required." + ], + "aiGenerated": true, + "humanLikenessConsent": "synthetic", + "marks": [], + "requiredAttribution": [], + "assetLicense": "MoDiff-Gallery-Restricted-1.0", + "reviewedBy": "SOURAV DAS", + "reviewedAt": "2026-08-03", + "reviewClass": "standard-human-attestation" + }, + { + "path": "template-gallery/inputs/qwen_2511_pale_amber_on_limestone.before.png", + "sha256": "sha256:bytes:0a41a9c56b98945e60c96ef796660c35b2cab7bf0b36d5e84ab0d97ef97f0a5a", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Exact approved file captured from a saved MoDiff workflow", + "sourceUrl": "https://huggingface.co/Qwen/Qwen-Image-Edit-2511/tree/6f3ccc0b56e431dc6a0c2b2039706d7d26f22cb9", + "sourceRevision": "Qwen/Qwen-Image-Edit-2511@6f3ccc0b56e431dc6a0c2b2039706d7d26f22cb9", + "sourceLicense": "Maintainer-authorized file with publisher terms retained", + "modelTerms": [ + "Publisher model terms at https://huggingface.co/Qwen/Qwen-Image-Edit-2511/tree/6f3ccc0b56e431dc6a0c2b2039706d7d26f22cb9" + ], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "Qwen/Qwen-Image-Edit-2511@6f3ccc0b56e431dc6a0c2b2039706d7d26f22cb9 https://huggingface.co/Qwen/Qwen-Image-Edit-2511/tree/6f3ccc0b56e431dc6a0c2b2039706d7d26f22cb9" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "60b01498a2df5f4e4622cdc2f9a43c83d187820780d2425a19718c13707db501", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "qwen_2511_pale_amber_on_limestone" + }, + { + "path": "template-gallery/inputs/qwen_2511_terracotta_material_transfer.before.png", + "sha256": "sha256:bytes:0a41a9c56b98945e60c96ef796660c35b2cab7bf0b36d5e84ab0d97ef97f0a5a", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Exact approved file captured from a saved MoDiff workflow", + "sourceUrl": "https://huggingface.co/Qwen/Qwen-Image-Edit-2511/tree/6f3ccc0b56e431dc6a0c2b2039706d7d26f22cb9", + "sourceRevision": "Qwen/Qwen-Image-Edit-2511@6f3ccc0b56e431dc6a0c2b2039706d7d26f22cb9", + "sourceLicense": "Maintainer-authorized file with publisher terms retained", + "modelTerms": [ + "Publisher model terms at https://huggingface.co/Qwen/Qwen-Image-Edit-2511/tree/6f3ccc0b56e431dc6a0c2b2039706d7d26f22cb9" + ], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "Qwen/Qwen-Image-Edit-2511@6f3ccc0b56e431dc6a0c2b2039706d7d26f22cb9 https://huggingface.co/Qwen/Qwen-Image-Edit-2511/tree/6f3ccc0b56e431dc6a0c2b2039706d7d26f22cb9" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "d7e2fd301d16eede3da44cec1811930560ba0d958dfd46d8d0962eb3a22eea63", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "qwen_2511_terracotta_material_transfer" + }, + { + "path": "template-gallery/inputs/qwen_2511_terracotta_material_transfer.reference-2.png", + "sha256": "sha256:bytes:056615dd7833d38cfed12d45b30bb0c6e439bf1585f4964da4796ca5b43f20ea", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Exact approved file captured from a saved MoDiff workflow", + "sourceUrl": "https://huggingface.co/Qwen/Qwen-Image-Edit-2511/tree/6f3ccc0b56e431dc6a0c2b2039706d7d26f22cb9", + "sourceRevision": "Qwen/Qwen-Image-Edit-2511@6f3ccc0b56e431dc6a0c2b2039706d7d26f22cb9", + "sourceLicense": "Maintainer-authorized file with publisher terms retained", + "modelTerms": [ + "Publisher model terms at https://huggingface.co/Qwen/Qwen-Image-Edit-2511/tree/6f3ccc0b56e431dc6a0c2b2039706d7d26f22cb9" + ], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "Qwen/Qwen-Image-Edit-2511@6f3ccc0b56e431dc6a0c2b2039706d7d26f22cb9 https://huggingface.co/Qwen/Qwen-Image-Edit-2511/tree/6f3ccc0b56e431dc6a0c2b2039706d7d26f22cb9" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "d7e2fd301d16eede3da44cec1811930560ba0d958dfd46d8d0962eb3a22eea63", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "qwen_2511_terracotta_material_transfer" + }, + { + "path": "template-gallery/inputs/qwen_2512_cobalt_backdrop_repair.before.png", + "sha256": "sha256:bytes:f5db354dc97ea11898d868898c5cc8ef454bb75ffe098b00bb2f06bc89f85885", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", @@ -5668,8 +6046,8 @@ "provenanceTemplateId": "sd15_canny_guided_green_glass" }, { - "path": "template-gallery/inputs/sd15_pag_canny_guided_glass.before.png", - "sha256": "sha256:bytes:6d47a2f07006b98f9e5cfc8ee925914c4dbfa39fd38b0b61770be56d12ed04e8", + "path": "template-gallery/inputs/sd15_control_cobalt_handmade_paper.before.png", + "sha256": "sha256:bytes:d143c4922ad498b9bd436d06df424bbff50baf023b93735b53ee401e19e4cbf1", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", @@ -5690,13 +6068,13 @@ "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "3968c7cbe37a94789a9f839d8e83a9e0f102629b797d5f7baacf0304a8d18153", + "humanApprovalPacketSHA256": "d7e2fd301d16eede3da44cec1811930560ba0d958dfd46d8d0962eb3a22eea63", "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", - "provenanceTemplateId": "sd15_pag_canny_guided_glass" + "provenanceTemplateId": "sd15_control_cobalt_handmade_paper" }, { - "path": "template-gallery/inputs/sd15_pag_cobalt_studio_repair.before.png", - "sha256": "sha256:bytes:d143c4922ad498b9bd436d06df424bbff50baf023b93735b53ee401e19e4cbf1", + "path": "template-gallery/inputs/sd15_control_cobalt_handmade_paper.guide.png", + "sha256": "sha256:bytes:6d47a2f07006b98f9e5cfc8ee925914c4dbfa39fd38b0b61770be56d12ed04e8", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", @@ -5717,13 +6095,13 @@ "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "c2df9edb92f8ff905b6c9a138a285e67c621f3d2dfa3232f859aaf963b725aca", + "humanApprovalPacketSHA256": "d7e2fd301d16eede3da44cec1811930560ba0d958dfd46d8d0962eb3a22eea63", "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", - "provenanceTemplateId": "sd15_pag_cobalt_studio_repair" + "provenanceTemplateId": "sd15_control_cobalt_handmade_paper" }, { - "path": "template-gallery/inputs/sd15_pag_cobalt_studio_repair.mask.png", - "sha256": "sha256:bytes:71817f4823a73712c8e76e7d832ec382c29ec0a0bf5a472e09639448c082da01", + "path": "template-gallery/inputs/sd15_control_cobalt_studio_wall_repair.before.png", + "sha256": "sha256:bytes:d143c4922ad498b9bd436d06df424bbff50baf023b93735b53ee401e19e4cbf1", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", @@ -5744,13 +6122,13 @@ "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "c2df9edb92f8ff905b6c9a138a285e67c621f3d2dfa3232f859aaf963b725aca", + "humanApprovalPacketSHA256": "d7e2fd301d16eede3da44cec1811930560ba0d958dfd46d8d0962eb3a22eea63", "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", - "provenanceTemplateId": "sd15_pag_cobalt_studio_repair" + "provenanceTemplateId": "sd15_control_cobalt_studio_wall_repair" }, { - "path": "template-gallery/inputs/sd15_pag_mountain_lake_watercolor.before.png", - "sha256": "sha256:bytes:88290a96bc8d52f11f2d1e3c0c0e04c2027661816e54b57d7d4739d731ca1e75", + "path": "template-gallery/inputs/sd15_control_cobalt_studio_wall_repair.guide.png", + "sha256": "sha256:bytes:6d47a2f07006b98f9e5cfc8ee925914c4dbfa39fd38b0b61770be56d12ed04e8", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", @@ -5771,55 +6149,55 @@ "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "c2df9edb92f8ff905b6c9a138a285e67c621f3d2dfa3232f859aaf963b725aca", + "humanApprovalPacketSHA256": "d7e2fd301d16eede3da44cec1811930560ba0d958dfd46d8d0962eb3a22eea63", "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", - "provenanceTemplateId": "sd15_pag_mountain_lake_watercolor" + "provenanceTemplateId": "sd15_control_cobalt_studio_wall_repair" }, { - "path": "template-gallery/inputs/sdxl_blue_glass_on_linen.before.png", - "sha256": "sha256:bytes:0a41a9c56b98945e60c96ef796660c35b2cab7bf0b36d5e84ab0d97ef97f0a5a", + "path": "template-gallery/inputs/sd15_control_cobalt_studio_wall_repair.mask.png", + "sha256": "sha256:bytes:71817f4823a73712c8e76e7d832ec382c29ec0a0bf5a472e09639448c082da01", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Exact approved file captured from a saved MoDiff workflow", - "sourceUrl": "https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b", - "sourceRevision": "stabilityai/stable-diffusion-xl-base-1.0@462165984030d82259a11f4367a4eed129e94a7b", + "sourceUrl": "https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14", + "sourceRevision": "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14", "sourceLicense": "Maintainer-authorized file with publisher terms retained", "modelTerms": [ - "Publisher model terms at https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b" + "Publisher model terms at https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14" ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "stabilityai/stable-diffusion-xl-base-1.0@462165984030d82259a11f4367a4eed129e94a7b https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b" + "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14 https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "60b01498a2df5f4e4622cdc2f9a43c83d187820780d2425a19718c13707db501", + "humanApprovalPacketSHA256": "d7e2fd301d16eede3da44cec1811930560ba0d958dfd46d8d0962eb3a22eea63", "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", - "provenanceTemplateId": "sdxl_blue_glass_on_linen" + "provenanceTemplateId": "sd15_control_cobalt_studio_wall_repair" }, { - "path": "template-gallery/inputs/sdxl_canny_adapter_glass_study.before.png", - "sha256": "sha256:bytes:6bd07628a37c087178e9de58a98c6c5879468163f1a2376a581511a42503e2e2", + "path": "template-gallery/inputs/sd15_pag_canny_guided_glass.before.png", + "sha256": "sha256:bytes:6d47a2f07006b98f9e5cfc8ee925914c4dbfa39fd38b0b61770be56d12ed04e8", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Exact approved file captured from a saved MoDiff workflow", - "sourceUrl": "https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b", - "sourceRevision": "stabilityai/stable-diffusion-xl-base-1.0@462165984030d82259a11f4367a4eed129e94a7b", + "sourceUrl": "https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14", + "sourceRevision": "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14", "sourceLicense": "Maintainer-authorized file with publisher terms retained", "modelTerms": [ - "Publisher model terms at https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b" + "Publisher model terms at https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14" ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "stabilityai/stable-diffusion-xl-base-1.0@462165984030d82259a11f4367a4eed129e94a7b https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b" + "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14 https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", @@ -5827,173 +6205,173 @@ "reviewClass": "per-file-maintainer-accepted-retained-registration", "humanApprovalPacketSHA256": "3968c7cbe37a94789a9f839d8e83a9e0f102629b797d5f7baacf0304a8d18153", "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", - "provenanceTemplateId": "sdxl_canny_adapter_glass_study" + "provenanceTemplateId": "sd15_pag_canny_guided_glass" }, { - "path": "template-gallery/inputs/sdxl_clear_cobalt_backdrop.before.png", - "sha256": "sha256:bytes:e75c20f0e8a74e283b996bf526e6ea74535ed24125ad97c2d92508d3435d7a87", + "path": "template-gallery/inputs/sd15_pag_cobalt_studio_repair.before.png", + "sha256": "sha256:bytes:d143c4922ad498b9bd436d06df424bbff50baf023b93735b53ee401e19e4cbf1", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Exact approved file captured from a saved MoDiff workflow", - "sourceUrl": "https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b", - "sourceRevision": "stabilityai/stable-diffusion-xl-base-1.0@462165984030d82259a11f4367a4eed129e94a7b", + "sourceUrl": "https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14", + "sourceRevision": "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14", "sourceLicense": "Maintainer-authorized file with publisher terms retained", "modelTerms": [ - "Publisher model terms at https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b" + "Publisher model terms at https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14" ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "stabilityai/stable-diffusion-xl-base-1.0@462165984030d82259a11f4367a4eed129e94a7b https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b" + "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14 https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", - "reviewedAt": "2026-11-24", + "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "d216f065bdc316366c6183592f657bcfbbd7cb05acd0e510c6b3877fe56bcec2", - "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped six saved cases with model terms retained.", - "provenanceTemplateId": "sdxl_clear_cobalt_backdrop" + "humanApprovalPacketSHA256": "c2df9edb92f8ff905b6c9a138a285e67c621f3d2dfa3232f859aaf963b725aca", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "sd15_pag_cobalt_studio_repair" }, { - "path": "template-gallery/inputs/sdxl_clear_cobalt_backdrop.mask.png", - "sha256": "sha256:bytes:1f48775f2826f84e0c5b55f16f3475bdc80ecad8b931d6b0279598610e9a828d", + "path": "template-gallery/inputs/sd15_pag_cobalt_studio_repair.mask.png", + "sha256": "sha256:bytes:71817f4823a73712c8e76e7d832ec382c29ec0a0bf5a472e09639448c082da01", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Exact approved file captured from a saved MoDiff workflow", - "sourceUrl": "https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b", - "sourceRevision": "stabilityai/stable-diffusion-xl-base-1.0@462165984030d82259a11f4367a4eed129e94a7b", + "sourceUrl": "https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14", + "sourceRevision": "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14", "sourceLicense": "Maintainer-authorized file with publisher terms retained", "modelTerms": [ - "Publisher model terms at https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b" + "Publisher model terms at https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14" ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "stabilityai/stable-diffusion-xl-base-1.0@462165984030d82259a11f4367a4eed129e94a7b https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b" + "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14 https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", - "reviewedAt": "2026-11-24", + "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "d216f065bdc316366c6183592f657bcfbbd7cb05acd0e510c6b3877fe56bcec2", - "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped six saved cases with model terms retained.", - "provenanceTemplateId": "sdxl_clear_cobalt_backdrop" + "humanApprovalPacketSHA256": "c2df9edb92f8ff905b6c9a138a285e67c621f3d2dfa3232f859aaf963b725aca", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "sd15_pag_cobalt_studio_repair" }, { - "path": "template-gallery/inputs/sdxl_control_inpaint_warm_plaster.before.png", - "sha256": "sha256:bytes:e75c20f0e8a74e283b996bf526e6ea74535ed24125ad97c2d92508d3435d7a87", + "path": "template-gallery/inputs/sd15_pag_control_wall_repair.before.png", + "sha256": "sha256:bytes:d143c4922ad498b9bd436d06df424bbff50baf023b93735b53ee401e19e4cbf1", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Exact approved file captured from a saved MoDiff workflow", - "sourceUrl": "https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b", - "sourceRevision": "stabilityai/stable-diffusion-xl-base-1.0@462165984030d82259a11f4367a4eed129e94a7b", + "sourceUrl": "https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14", + "sourceRevision": "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14", "sourceLicense": "Maintainer-authorized file with publisher terms retained", "modelTerms": [ - "Publisher model terms at https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b" + "Publisher model terms at https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14" ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "stabilityai/stable-diffusion-xl-base-1.0@462165984030d82259a11f4367a4eed129e94a7b https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b" + "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14 https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "3968c7cbe37a94789a9f839d8e83a9e0f102629b797d5f7baacf0304a8d18153", + "humanApprovalPacketSHA256": "d7e2fd301d16eede3da44cec1811930560ba0d958dfd46d8d0962eb3a22eea63", "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", - "provenanceTemplateId": "sdxl_control_inpaint_warm_plaster" + "provenanceTemplateId": "sd15_pag_control_wall_repair" }, { - "path": "template-gallery/inputs/sdxl_control_inpaint_warm_plaster.guide.png", - "sha256": "sha256:bytes:0a41a9c56b98945e60c96ef796660c35b2cab7bf0b36d5e84ab0d97ef97f0a5a", + "path": "template-gallery/inputs/sd15_pag_control_wall_repair.guide.png", + "sha256": "sha256:bytes:6d47a2f07006b98f9e5cfc8ee925914c4dbfa39fd38b0b61770be56d12ed04e8", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Exact approved file captured from a saved MoDiff workflow", - "sourceUrl": "https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b", - "sourceRevision": "stabilityai/stable-diffusion-xl-base-1.0@462165984030d82259a11f4367a4eed129e94a7b", + "sourceUrl": "https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14", + "sourceRevision": "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14", "sourceLicense": "Maintainer-authorized file with publisher terms retained", "modelTerms": [ - "Publisher model terms at https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b" + "Publisher model terms at https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14" ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "stabilityai/stable-diffusion-xl-base-1.0@462165984030d82259a11f4367a4eed129e94a7b https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b" + "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14 https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "3968c7cbe37a94789a9f839d8e83a9e0f102629b797d5f7baacf0304a8d18153", + "humanApprovalPacketSHA256": "d7e2fd301d16eede3da44cec1811930560ba0d958dfd46d8d0962eb3a22eea63", "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", - "provenanceTemplateId": "sdxl_control_inpaint_warm_plaster" + "provenanceTemplateId": "sd15_pag_control_wall_repair" }, { - "path": "template-gallery/inputs/sdxl_control_inpaint_warm_plaster.mask.png", - "sha256": "sha256:bytes:1f48775f2826f84e0c5b55f16f3475bdc80ecad8b931d6b0279598610e9a828d", + "path": "template-gallery/inputs/sd15_pag_control_wall_repair.mask.png", + "sha256": "sha256:bytes:71817f4823a73712c8e76e7d832ec382c29ec0a0bf5a472e09639448c082da01", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Exact approved file captured from a saved MoDiff workflow", - "sourceUrl": "https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b", - "sourceRevision": "stabilityai/stable-diffusion-xl-base-1.0@462165984030d82259a11f4367a4eed129e94a7b", + "sourceUrl": "https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14", + "sourceRevision": "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14", "sourceLicense": "Maintainer-authorized file with publisher terms retained", "modelTerms": [ - "Publisher model terms at https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b" + "Publisher model terms at https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14" ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "stabilityai/stable-diffusion-xl-base-1.0@462165984030d82259a11f4367a4eed129e94a7b https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b" + "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14 https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "3968c7cbe37a94789a9f839d8e83a9e0f102629b797d5f7baacf0304a8d18153", + "humanApprovalPacketSHA256": "d7e2fd301d16eede3da44cec1811930560ba0d958dfd46d8d0962eb3a22eea63", "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", - "provenanceTemplateId": "sdxl_control_inpaint_warm_plaster" + "provenanceTemplateId": "sd15_pag_control_wall_repair" }, { - "path": "template-gallery/inputs/sdxl_controlnet_glass_study_on_slate.before.png", - "sha256": "sha256:bytes:6bd07628a37c087178e9de58a98c6c5879468163f1a2376a581511a42503e2e2", + "path": "template-gallery/inputs/sd15_pag_mountain_lake_watercolor.before.png", + "sha256": "sha256:bytes:88290a96bc8d52f11f2d1e3c0c0e04c2027661816e54b57d7d4739d731ca1e75", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Exact approved file captured from a saved MoDiff workflow", - "sourceUrl": "https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b", - "sourceRevision": "stabilityai/stable-diffusion-xl-base-1.0@462165984030d82259a11f4367a4eed129e94a7b", + "sourceUrl": "https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14", + "sourceRevision": "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14", "sourceLicense": "Maintainer-authorized file with publisher terms retained", "modelTerms": [ - "Publisher model terms at https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b" + "Publisher model terms at https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14" ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "stabilityai/stable-diffusion-xl-base-1.0@462165984030d82259a11f4367a4eed129e94a7b https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b" + "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14 https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "3968c7cbe37a94789a9f839d8e83a9e0f102629b797d5f7baacf0304a8d18153", + "humanApprovalPacketSHA256": "c2df9edb92f8ff905b6c9a138a285e67c621f3d2dfa3232f859aaf963b725aca", "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", - "provenanceTemplateId": "sdxl_controlnet_glass_study_on_slate" + "provenanceTemplateId": "sd15_pag_mountain_lake_watercolor" }, { - "path": "template-gallery/inputs/sdxl_pag_cobalt_wall.before.png", - "sha256": "sha256:bytes:e75c20f0e8a74e283b996bf526e6ea74535ed24125ad97c2d92508d3435d7a87", + "path": "template-gallery/inputs/sdxl_blue_glass_on_linen.before.png", + "sha256": "sha256:bytes:0a41a9c56b98945e60c96ef796660c35b2cab7bf0b36d5e84ab0d97ef97f0a5a", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", @@ -6016,11 +6394,11 @@ "reviewClass": "per-file-maintainer-accepted-retained-registration", "humanApprovalPacketSHA256": "60b01498a2df5f4e4622cdc2f9a43c83d187820780d2425a19718c13707db501", "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", - "provenanceTemplateId": "sdxl_pag_cobalt_wall" + "provenanceTemplateId": "sdxl_blue_glass_on_linen" }, { - "path": "template-gallery/inputs/sdxl_pag_cobalt_wall.mask.png", - "sha256": "sha256:bytes:1f48775f2826f84e0c5b55f16f3475bdc80ecad8b931d6b0279598610e9a828d", + "path": "template-gallery/inputs/sdxl_canny_adapter_glass_study.before.png", + "sha256": "sha256:bytes:6bd07628a37c087178e9de58a98c6c5879468163f1a2376a581511a42503e2e2", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", @@ -6041,286 +6419,244 @@ "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "60b01498a2df5f4e4622cdc2f9a43c83d187820780d2425a19718c13707db501", + "humanApprovalPacketSHA256": "3968c7cbe37a94789a9f839d8e83a9e0f102629b797d5f7baacf0304a8d18153", "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", - "provenanceTemplateId": "sdxl_pag_cobalt_wall" + "provenanceTemplateId": "sdxl_canny_adapter_glass_study" }, { - "path": "template-gallery/inputs/sdxl_pix2pix_pale_amber_glass.before.png", - "sha256": "sha256:bytes:ebaca95f96d1573e4292ffc65c78eb0dcf8ff9cc8b5a7e11ec81face61b160fb", + "path": "template-gallery/inputs/sdxl_clear_cobalt_backdrop.before.png", + "sha256": "sha256:bytes:e75c20f0e8a74e283b996bf526e6ea74535ed24125ad97c2d92508d3435d7a87", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Exact approved file captured from a saved MoDiff workflow", - "sourceUrl": "https://huggingface.co/diffusers/sdxl-instructpix2pix-768/tree/06653d47f8d22f2c2205a5884d6a24c5e76d2ca7", - "sourceRevision": "diffusers/sdxl-instructpix2pix-768@06653d47f8d22f2c2205a5884d6a24c5e76d2ca7", + "sourceUrl": "https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b", + "sourceRevision": "stabilityai/stable-diffusion-xl-base-1.0@462165984030d82259a11f4367a4eed129e94a7b", "sourceLicense": "Maintainer-authorized file with publisher terms retained", "modelTerms": [ - "Publisher model terms at https://huggingface.co/diffusers/sdxl-instructpix2pix-768/tree/06653d47f8d22f2c2205a5884d6a24c5e76d2ca7" + "Publisher model terms at https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b" ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "diffusers/sdxl-instructpix2pix-768@06653d47f8d22f2c2205a5884d6a24c5e76d2ca7 https://huggingface.co/diffusers/sdxl-instructpix2pix-768/tree/06653d47f8d22f2c2205a5884d6a24c5e76d2ca7" + "stabilityai/stable-diffusion-xl-base-1.0@462165984030d82259a11f4367a4eed129e94a7b https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", - "reviewedAt": "2026-11-25", + "reviewedAt": "2026-11-24", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "c2df9edb92f8ff905b6c9a138a285e67c621f3d2dfa3232f859aaf963b725aca", - "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", - "provenanceTemplateId": "sdxl_pix2pix_pale_amber_glass" + "humanApprovalPacketSHA256": "d216f065bdc316366c6183592f657bcfbbd7cb05acd0e510c6b3877fe56bcec2", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped six saved cases with model terms retained.", + "provenanceTemplateId": "sdxl_clear_cobalt_backdrop" }, { - "path": "template-gallery/inputs/spandrel_x2_synthetic_gradient.before.png", - "sha256": "sha256:bytes:626815c78eaad46cad849732d1598b45b91700ce046c1ee3f4e2444db80aa32a", + "path": "template-gallery/inputs/sdxl_clear_cobalt_backdrop.mask.png", + "sha256": "sha256:bytes:1f48775f2826f84e0c5b55f16f3475bdc80ecad8b931d6b0279598610e9a828d", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", - "creationMethod": "Original maintainer-approved synthetic gradient fixture", - "sourceUrl": null, - "sourceRevision": null, - "sourceLicense": "MoDiff-authored fixture or Gallery metadata", - "modelTerms": [], + "creationMethod": "Exact approved file captured from a saved MoDiff workflow", + "sourceUrl": "https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b", + "sourceRevision": "stabilityai/stable-diffusion-xl-base-1.0@462165984030d82259a11f4367a4eed129e94a7b", + "sourceLicense": "Maintainer-authorized file with publisher terms retained", + "modelTerms": [ + "Publisher model terms at https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b" + ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], - "requiredAttribution": [], - "assetLicense": "MoDiff-Gallery-Restricted-1.0", + "requiredAttribution": [ + "stabilityai/stable-diffusion-xl-base-1.0@462165984030d82259a11f4367a4eed129e94a7b https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b" + ], + "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", - "reviewedAt": "2026-11-19", + "reviewedAt": "2026-11-24", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "ea2e749b805706828428bd34589bd41263e9c432a9503fe17c3c6a6d7d932176", - "publicationBasis": "Maintainer approved this exact saved Spandrel 2× technical preview and confirmed redistribution rights.", - "provenanceTemplateId": "spandrel_x2_synthetic_gradient" + "humanApprovalPacketSHA256": "d216f065bdc316366c6183592f657bcfbbd7cb05acd0e510c6b3877fe56bcec2", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped six saved cases with model terms retained.", + "provenanceTemplateId": "sdxl_clear_cobalt_backdrop" }, { - "path": "template-gallery/inputs/wan_flf_blue_hour_at_the_tram_shelter.first.png", - "sha256": "sha256:bytes:6d2c561cf33919ae42e773d95a0232799da3f2b92a23a94dad80902cfb73527a", + "path": "template-gallery/inputs/sdxl_control_golden_boathouse.before.png", + "sha256": "sha256:bytes:e1d9736125cad717896f0c7d5274a6373676559f250d76cedcc8f8aae9379ec6", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Exact approved file captured from a saved MoDiff workflow", - "sourceUrl": "https://huggingface.co/Wan-AI/Wan2.1-FLF2V-14B-720P-diffusers/tree/17c30769b1e0b5dcaa1799b117bf20a9c31f59d7", - "sourceRevision": "Wan-AI/Wan2.1-FLF2V-14B-720P-diffusers@17c30769b1e0b5dcaa1799b117bf20a9c31f59d7", + "sourceUrl": "https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b", + "sourceRevision": "stabilityai/stable-diffusion-xl-base-1.0@462165984030d82259a11f4367a4eed129e94a7b", "sourceLicense": "Maintainer-authorized file with publisher terms retained", "modelTerms": [ - "Publisher model terms at https://huggingface.co/Wan-AI/Wan2.1-FLF2V-14B-720P-diffusers/tree/17c30769b1e0b5dcaa1799b117bf20a9c31f59d7" + "Publisher model terms at https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b" ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "Wan-AI/Wan2.1-FLF2V-14B-720P-diffusers@17c30769b1e0b5dcaa1799b117bf20a9c31f59d7 https://huggingface.co/Wan-AI/Wan2.1-FLF2V-14B-720P-diffusers/tree/17c30769b1e0b5dcaa1799b117bf20a9c31f59d7" + "stabilityai/stable-diffusion-xl-base-1.0@462165984030d82259a11f4367a4eed129e94a7b https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "ffeaa41a5c94b59135d2cdb15a5c7f79f073c15fd78792ce00a157398ab15d59", + "humanApprovalPacketSHA256": "d7e2fd301d16eede3da44cec1811930560ba0d958dfd46d8d0962eb3a22eea63", "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", - "provenanceTemplateId": "wan_flf_blue_hour_at_the_tram_shelter" + "provenanceTemplateId": "sdxl_control_golden_boathouse" }, { - "path": "template-gallery/inputs/wan_flf_blue_hour_at_the_tram_shelter.last.png", - "sha256": "sha256:bytes:191b023efb43a42288799877db722b9a2608d2970740246322ef38cc7c68c590", + "path": "template-gallery/inputs/sdxl_control_golden_boathouse.guide.png", + "sha256": "sha256:bytes:322a9aa511a7d21524758724b1666fc220abf563def5e5d1294630e7e58a3b96", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Exact approved file captured from a saved MoDiff workflow", - "sourceUrl": "https://huggingface.co/Wan-AI/Wan2.1-FLF2V-14B-720P-diffusers/tree/17c30769b1e0b5dcaa1799b117bf20a9c31f59d7", - "sourceRevision": "Wan-AI/Wan2.1-FLF2V-14B-720P-diffusers@17c30769b1e0b5dcaa1799b117bf20a9c31f59d7", + "sourceUrl": "https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b", + "sourceRevision": "stabilityai/stable-diffusion-xl-base-1.0@462165984030d82259a11f4367a4eed129e94a7b", "sourceLicense": "Maintainer-authorized file with publisher terms retained", "modelTerms": [ - "Publisher model terms at https://huggingface.co/Wan-AI/Wan2.1-FLF2V-14B-720P-diffusers/tree/17c30769b1e0b5dcaa1799b117bf20a9c31f59d7" + "Publisher model terms at https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b" ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "Wan-AI/Wan2.1-FLF2V-14B-720P-diffusers@17c30769b1e0b5dcaa1799b117bf20a9c31f59d7 https://huggingface.co/Wan-AI/Wan2.1-FLF2V-14B-720P-diffusers/tree/17c30769b1e0b5dcaa1799b117bf20a9c31f59d7" + "stabilityai/stable-diffusion-xl-base-1.0@462165984030d82259a11f4367a4eed129e94a7b https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "ffeaa41a5c94b59135d2cdb15a5c7f79f073c15fd78792ce00a157398ab15d59", + "humanApprovalPacketSHA256": "d7e2fd301d16eede3da44cec1811930560ba0d958dfd46d8d0962eb3a22eea63", "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", - "provenanceTemplateId": "wan_flf_blue_hour_at_the_tram_shelter" + "provenanceTemplateId": "sdxl_control_golden_boathouse" }, { - "path": "template-gallery/inputs/wan_vace_grayscale_control.before.mp4", - "sha256": "sha256:bytes:748b164fd91bc2eed97f7c1d1125a04496a056f29cc016d7cc0da3734c2303b7", + "path": "template-gallery/inputs/sdxl_control_inpaint_warm_plaster.before.png", + "sha256": "sha256:bytes:e75c20f0e8a74e283b996bf526e6ea74535ed24125ad97c2d92508d3435d7a87", "publishDecision": "approved", "holdReason": null, - "creatorOrRightsholder": "MoDiff project maintainers, subject to the recorded source and model terms", - "creationMethod": "AI-generated Gallery media or deterministic derivative", - "sourceUrl": "https://huggingface.co/nateraw/real-esrgan/tree/42efb9c3eeed1f5c0c8a626cf5f7f4481dfbb094", - "sourceRevision": "nateraw/real-esrgan@42efb9c3eeed1f5c0c8a626cf5f7f4481dfbb094 | Wan-AI/Wan2.1-VACE-1.3B-diffusers@ec4d2cb062b548996b179d493fdd05340de702a1", - "sourceLicense": "Original generation or recorded workflow input; see modelTerms", + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Exact approved file captured from a saved MoDiff workflow", + "sourceUrl": "https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b", + "sourceRevision": "stabilityai/stable-diffusion-xl-base-1.0@462165984030d82259a11f4367a4eed129e94a7b", + "sourceLicense": "Maintainer-authorized file with publisher terms retained", "modelTerms": [ - "nateraw/real-esrgan: BSD-3-Clause; https://huggingface.co/nateraw/real-esrgan/tree/42efb9c3eeed1f5c0c8a626cf5f7f4481dfbb094", - "Wan-AI/Wan2.1-VACE-1.3B-diffusers: Apache-2.0; https://huggingface.co/Wan-AI/Wan2.1-VACE-1.3B-diffusers/tree/ec4d2cb062b548996b179d493fdd05340de702a1" + "Publisher model terms at https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b" ], - "aiGenerated": true, - "humanLikenessConsent": "synthetic", + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", "marks": [], - "requiredAttribution": [], - "assetLicense": "Apache-2.0", - "reviewedBy": "SOURAV DAS", - "reviewedAt": "2026-08-03", - "reviewClass": "standard-human-attestation", - "provenanceTemplateId": "wan_vace_grayscale_control", - "consumingTemplateIds": ["wan_vace_grayscale_control"] - }, - { - "path": "template-gallery/inputs/wan_vace_outpaint_reframe.before.mp4", - "sha256": "sha256:bytes:a8f28e04d03c9a6a2ba0b3ba4bf7db08f6ec99c45d962877cbc91aad5f3ad318", - "publishDecision": "approved", - "holdReason": null, - "creatorOrRightsholder": "MoDiff project maintainers, subject to the recorded source and model terms", - "creationMethod": "AI-generated Gallery media or deterministic derivative", - "sourceUrl": "https://huggingface.co/nateraw/real-esrgan/tree/42efb9c3eeed1f5c0c8a626cf5f7f4481dfbb094", - "sourceRevision": "nateraw/real-esrgan@42efb9c3eeed1f5c0c8a626cf5f7f4481dfbb094 | Wan-AI/Wan2.1-VACE-1.3B-diffusers@ec4d2cb062b548996b179d493fdd05340de702a1", - "sourceLicense": "Original generation or recorded workflow input; see modelTerms", - "modelTerms": [ - "nateraw/real-esrgan: BSD-3-Clause; https://huggingface.co/nateraw/real-esrgan/tree/42efb9c3eeed1f5c0c8a626cf5f7f4481dfbb094", - "Wan-AI/Wan2.1-VACE-1.3B-diffusers: Apache-2.0; https://huggingface.co/Wan-AI/Wan2.1-VACE-1.3B-diffusers/tree/ec4d2cb062b548996b179d493fdd05340de702a1" + "requiredAttribution": [ + "stabilityai/stable-diffusion-xl-base-1.0@462165984030d82259a11f4367a4eed129e94a7b https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b" ], - "aiGenerated": true, - "humanLikenessConsent": "synthetic", - "marks": [], - "requiredAttribution": [], "assetLicense": "Apache-2.0", - "reviewedBy": "SOURAV DAS", - "reviewedAt": "2026-08-03", - "reviewClass": "standard-human-attestation", - "provenanceTemplateId": "wan_vace_outpaint_reframe", - "consumingTemplateIds": ["wan_vace_outpaint_reframe"] + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "3968c7cbe37a94789a9f839d8e83a9e0f102629b797d5f7baacf0304a8d18153", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "sdxl_control_inpaint_warm_plaster" }, { - "path": "template-gallery/inputs/wan_vace_video_color_grade.before.mp4", - "sha256": "sha256:bytes:934b4494442c732bfc27f3de1e1a8e99adf0eb96572bd6405f1a9c72da148289", + "path": "template-gallery/inputs/sdxl_control_inpaint_warm_plaster.guide.png", + "sha256": "sha256:bytes:0a41a9c56b98945e60c96ef796660c35b2cab7bf0b36d5e84ab0d97ef97f0a5a", "publishDecision": "approved", "holdReason": null, - "creatorOrRightsholder": "MoDiff project maintainers, subject to the recorded source and model terms", - "creationMethod": "AI-generated Gallery media or deterministic derivative", - "sourceUrl": "https://huggingface.co/nateraw/real-esrgan/tree/42efb9c3eeed1f5c0c8a626cf5f7f4481dfbb094", - "sourceRevision": "nateraw/real-esrgan@42efb9c3eeed1f5c0c8a626cf5f7f4481dfbb094 | Wan-AI/Wan2.1-T2V-1.3B-Diffusers@0fad780a534b6463e45facd96134c9f345acfa5b", - "sourceLicense": "Original generation or recorded workflow input; see modelTerms", + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Exact approved file captured from a saved MoDiff workflow", + "sourceUrl": "https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b", + "sourceRevision": "stabilityai/stable-diffusion-xl-base-1.0@462165984030d82259a11f4367a4eed129e94a7b", + "sourceLicense": "Maintainer-authorized file with publisher terms retained", "modelTerms": [ - "nateraw/real-esrgan: BSD-3-Clause; https://huggingface.co/nateraw/real-esrgan/tree/42efb9c3eeed1f5c0c8a626cf5f7f4481dfbb094", - "Wan-AI/Wan2.1-T2V-1.3B-Diffusers: Apache-2.0; https://huggingface.co/Wan-AI/Wan2.1-T2V-1.3B-Diffusers/tree/0fad780a534b6463e45facd96134c9f345acfa5b" + "Publisher model terms at https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b" ], - "aiGenerated": true, - "humanLikenessConsent": "synthetic", + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", "marks": [], - "requiredAttribution": [], - "assetLicense": "Apache-2.0", - "reviewedBy": "SOURAV DAS", - "reviewedAt": "2026-08-03", - "reviewClass": "standard-human-attestation", - "provenanceTemplateId": "wan_vace_video_color_grade", - "consumingTemplateIds": ["wan_vace_video_color_grade"] - }, - { - "path": "template-gallery/inputs/wan_vace_video_to_video.before.mp4", - "sha256": "sha256:bytes:1f5cd051f787fc878bed50d3c26cce840abe00c942d32e49492e544ac2f88cff", - "publishDecision": "approved", - "holdReason": null, - "creatorOrRightsholder": "MoDiff project maintainers, subject to the recorded source and model terms", - "creationMethod": "AI-generated Gallery media or deterministic derivative", - "sourceUrl": "https://huggingface.co/nateraw/real-esrgan/tree/42efb9c3eeed1f5c0c8a626cf5f7f4481dfbb094", - "sourceRevision": "nateraw/real-esrgan@42efb9c3eeed1f5c0c8a626cf5f7f4481dfbb094 | Wan-AI/Wan2.1-T2V-1.3B-Diffusers@0fad780a534b6463e45facd96134c9f345acfa5b", - "sourceLicense": "Original generation or recorded workflow input; see modelTerms", - "modelTerms": [ - "nateraw/real-esrgan: BSD-3-Clause; https://huggingface.co/nateraw/real-esrgan/tree/42efb9c3eeed1f5c0c8a626cf5f7f4481dfbb094", - "Wan-AI/Wan2.1-T2V-1.3B-Diffusers: Apache-2.0; https://huggingface.co/Wan-AI/Wan2.1-T2V-1.3B-Diffusers/tree/0fad780a534b6463e45facd96134c9f345acfa5b" + "requiredAttribution": [ + "stabilityai/stable-diffusion-xl-base-1.0@462165984030d82259a11f4367a4eed129e94a7b https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b" ], - "aiGenerated": true, - "humanLikenessConsent": "synthetic", - "marks": [], - "requiredAttribution": [], "assetLicense": "Apache-2.0", - "reviewedBy": "SOURAV DAS", - "reviewedAt": "2026-08-03", - "reviewClass": "standard-human-attestation", - "provenanceTemplateId": "wan_vace_video_to_video", - "consumingTemplateIds": ["wan_vace_video_to_video"] + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "3968c7cbe37a94789a9f839d8e83a9e0f102629b797d5f7baacf0304a8d18153", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "sdxl_control_inpaint_warm_plaster" }, { - "path": "template-gallery/inputs/zimage_golden_amber_glass.before.png", - "sha256": "sha256:bytes:ebaca95f96d1573e4292ffc65c78eb0dcf8ff9cc8b5a7e11ec81face61b160fb", + "path": "template-gallery/inputs/sdxl_control_inpaint_warm_plaster.mask.png", + "sha256": "sha256:bytes:1f48775f2826f84e0c5b55f16f3475bdc80ecad8b931d6b0279598610e9a828d", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Exact approved file captured from a saved MoDiff workflow", - "sourceUrl": "https://huggingface.co/Tongyi-MAI/Z-Image-Turbo/tree/f332072aa78be7aecdf3ee76d5c247082da564a6", - "sourceRevision": "Tongyi-MAI/Z-Image-Turbo@f332072aa78be7aecdf3ee76d5c247082da564a6", + "sourceUrl": "https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b", + "sourceRevision": "stabilityai/stable-diffusion-xl-base-1.0@462165984030d82259a11f4367a4eed129e94a7b", "sourceLicense": "Maintainer-authorized file with publisher terms retained", "modelTerms": [ - "Publisher model terms at https://huggingface.co/Tongyi-MAI/Z-Image-Turbo/tree/f332072aa78be7aecdf3ee76d5c247082da564a6" + "Publisher model terms at https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b" ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "Tongyi-MAI/Z-Image-Turbo@f332072aa78be7aecdf3ee76d5c247082da564a6 https://huggingface.co/Tongyi-MAI/Z-Image-Turbo/tree/f332072aa78be7aecdf3ee76d5c247082da564a6" + "stabilityai/stable-diffusion-xl-base-1.0@462165984030d82259a11f4367a4eed129e94a7b https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "c2df9edb92f8ff905b6c9a138a285e67c621f3d2dfa3232f859aaf963b725aca", + "humanApprovalPacketSHA256": "3968c7cbe37a94789a9f839d8e83a9e0f102629b797d5f7baacf0304a8d18153", "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", - "provenanceTemplateId": "zimage_golden_amber_glass" + "provenanceTemplateId": "sdxl_control_inpaint_warm_plaster" }, { - "path": "template-gallery/inputs/zimage_rocky_glacial_shores.before.png", - "sha256": "sha256:bytes:50270382b4b730b87f79b775accaeeb81f3ff8885cd3d2cea94830206fbc181b", + "path": "template-gallery/inputs/sdxl_controlnet_glass_study_on_slate.before.png", + "sha256": "sha256:bytes:6bd07628a37c087178e9de58a98c6c5879468163f1a2376a581511a42503e2e2", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Exact approved file captured from a saved MoDiff workflow", - "sourceUrl": "https://huggingface.co/Tongyi-MAI/Z-Image-Turbo/tree/f332072aa78be7aecdf3ee76d5c247082da564a6", - "sourceRevision": "Tongyi-MAI/Z-Image-Turbo@f332072aa78be7aecdf3ee76d5c247082da564a6", + "sourceUrl": "https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b", + "sourceRevision": "stabilityai/stable-diffusion-xl-base-1.0@462165984030d82259a11f4367a4eed129e94a7b", "sourceLicense": "Maintainer-authorized file with publisher terms retained", "modelTerms": [ - "Publisher model terms at https://huggingface.co/Tongyi-MAI/Z-Image-Turbo/tree/f332072aa78be7aecdf3ee76d5c247082da564a6" + "Publisher model terms at https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b" ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "Tongyi-MAI/Z-Image-Turbo@f332072aa78be7aecdf3ee76d5c247082da564a6 https://huggingface.co/Tongyi-MAI/Z-Image-Turbo/tree/f332072aa78be7aecdf3ee76d5c247082da564a6" + "stabilityai/stable-diffusion-xl-base-1.0@462165984030d82259a11f4367a4eed129e94a7b https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "60b01498a2df5f4e4622cdc2f9a43c83d187820780d2425a19718c13707db501", + "humanApprovalPacketSHA256": "3968c7cbe37a94789a9f839d8e83a9e0f102629b797d5f7baacf0304a8d18153", "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", - "provenanceTemplateId": "zimage_rocky_glacial_shores" + "provenanceTemplateId": "sdxl_controlnet_glass_study_on_slate" }, { - "path": "template-gallery/inputs/zimage_seamless_cobalt_backdrop.before.png", + "path": "template-gallery/inputs/sdxl_pag_cobalt_wall.before.png", "sha256": "sha256:bytes:e75c20f0e8a74e283b996bf526e6ea74535ed24125ad97c2d92508d3435d7a87", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Exact approved file captured from a saved MoDiff workflow", - "sourceUrl": "https://huggingface.co/Tongyi-MAI/Z-Image-Turbo/tree/f332072aa78be7aecdf3ee76d5c247082da564a6", - "sourceRevision": "Tongyi-MAI/Z-Image-Turbo@f332072aa78be7aecdf3ee76d5c247082da564a6", + "sourceUrl": "https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b", + "sourceRevision": "stabilityai/stable-diffusion-xl-base-1.0@462165984030d82259a11f4367a4eed129e94a7b", "sourceLicense": "Maintainer-authorized file with publisher terms retained", "modelTerms": [ - "Publisher model terms at https://huggingface.co/Tongyi-MAI/Z-Image-Turbo/tree/f332072aa78be7aecdf3ee76d5c247082da564a6" + "Publisher model terms at https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b" ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "Tongyi-MAI/Z-Image-Turbo@f332072aa78be7aecdf3ee76d5c247082da564a6 https://huggingface.co/Tongyi-MAI/Z-Image-Turbo/tree/f332072aa78be7aecdf3ee76d5c247082da564a6" + "stabilityai/stable-diffusion-xl-base-1.0@462165984030d82259a11f4367a4eed129e94a7b https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", @@ -6328,26 +6664,26 @@ "reviewClass": "per-file-maintainer-accepted-retained-registration", "humanApprovalPacketSHA256": "60b01498a2df5f4e4622cdc2f9a43c83d187820780d2425a19718c13707db501", "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", - "provenanceTemplateId": "zimage_seamless_cobalt_backdrop" + "provenanceTemplateId": "sdxl_pag_cobalt_wall" }, { - "path": "template-gallery/inputs/zimage_seamless_cobalt_backdrop.mask.png", + "path": "template-gallery/inputs/sdxl_pag_cobalt_wall.mask.png", "sha256": "sha256:bytes:1f48775f2826f84e0c5b55f16f3475bdc80ecad8b931d6b0279598610e9a828d", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Exact approved file captured from a saved MoDiff workflow", - "sourceUrl": "https://huggingface.co/Tongyi-MAI/Z-Image-Turbo/tree/f332072aa78be7aecdf3ee76d5c247082da564a6", - "sourceRevision": "Tongyi-MAI/Z-Image-Turbo@f332072aa78be7aecdf3ee76d5c247082da564a6", + "sourceUrl": "https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b", + "sourceRevision": "stabilityai/stable-diffusion-xl-base-1.0@462165984030d82259a11f4367a4eed129e94a7b", "sourceLicense": "Maintainer-authorized file with publisher terms retained", "modelTerms": [ - "Publisher model terms at https://huggingface.co/Tongyi-MAI/Z-Image-Turbo/tree/f332072aa78be7aecdf3ee76d5c247082da564a6" + "Publisher model terms at https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b" ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "Tongyi-MAI/Z-Image-Turbo@f332072aa78be7aecdf3ee76d5c247082da564a6 https://huggingface.co/Tongyi-MAI/Z-Image-Turbo/tree/f332072aa78be7aecdf3ee76d5c247082da564a6" + "stabilityai/stable-diffusion-xl-base-1.0@462165984030d82259a11f4367a4eed129e94a7b https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", @@ -6355,1036 +6691,1012 @@ "reviewClass": "per-file-maintainer-accepted-retained-registration", "humanApprovalPacketSHA256": "60b01498a2df5f4e4622cdc2f9a43c83d187820780d2425a19718c13707db501", "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", - "provenanceTemplateId": "zimage_seamless_cobalt_backdrop" + "provenanceTemplateId": "sdxl_pag_cobalt_wall" }, { - "path": "template-gallery/janus_red_enamel_teapot.webp", - "sha256": "sha256:bytes:c2cc1b06535dae0816a255e5a08bb20372a4cbd2c4b895f51273140dba4615eb", + "path": "template-gallery/inputs/sdxl_pag_snow_cabin.before.png", + "sha256": "sha256:bytes:ca250462efc77625134ebe305b2ee67281a1dcf8919e45299c648f0fdacf919a", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Exact approved file captured from a saved MoDiff workflow", - "sourceUrl": "https://huggingface.co/deepseek-community/Janus-Pro-1B/tree/1655280bb75959cc1cb85529a2a8b26e7016072e", - "sourceRevision": "deepseek-community/Janus-Pro-1B@1655280bb75959cc1cb85529a2a8b26e7016072e", + "sourceUrl": "https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b", + "sourceRevision": "stabilityai/stable-diffusion-xl-base-1.0@462165984030d82259a11f4367a4eed129e94a7b", "sourceLicense": "Maintainer-authorized file with publisher terms retained", - "modelTerms": ["https://github.com/deepseek-ai/Janus/blob/main/LICENSE-MODEL"], - "aiGenerated": true, - "humanLikenessConsent": "synthetic", + "modelTerms": [ + "Publisher model terms at https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b" + ], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "deepseek-community/Janus-Pro-1B@1655280bb75959cc1cb85529a2a8b26e7016072e https://huggingface.co/deepseek-community/Janus-Pro-1B/tree/1655280bb75959cc1cb85529a2a8b26e7016072e" + "stabilityai/stable-diffusion-xl-base-1.0@462165984030d82259a11f4367a4eed129e94a7b https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", - "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", - "provenanceTemplateId": "janus_red_enamel_teapot" + "humanApprovalPacketSHA256": "d7e2fd301d16eede3da44cec1811930560ba0d958dfd46d8d0962eb3a22eea63", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "sdxl_pag_snow_cabin" }, { - "path": "template-gallery/janus_red_triangle_caption.json", - "sha256": "sha256:bytes:1fec185a203f16541cf13a02afff3c4333b83ff6c593a88fc59fa108801e6d44", + "path": "template-gallery/inputs/sdxl_pix2pix_pale_amber_glass.before.png", + "sha256": "sha256:bytes:ebaca95f96d1573e4292ffc65c78eb0dcf8ff9cc8b5a7e11ec81face61b160fb", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Exact approved file captured from a saved MoDiff workflow", - "sourceUrl": "https://huggingface.co/deepseek-community/Janus-Pro-1B/tree/1655280bb75959cc1cb85529a2a8b26e7016072e", - "sourceRevision": "deepseek-community/Janus-Pro-1B@1655280bb75959cc1cb85529a2a8b26e7016072e", + "sourceUrl": "https://huggingface.co/diffusers/sdxl-instructpix2pix-768/tree/06653d47f8d22f2c2205a5884d6a24c5e76d2ca7", + "sourceRevision": "diffusers/sdxl-instructpix2pix-768@06653d47f8d22f2c2205a5884d6a24c5e76d2ca7", "sourceLicense": "Maintainer-authorized file with publisher terms retained", - "modelTerms": ["https://github.com/deepseek-ai/Janus/blob/main/LICENSE-MODEL"], - "aiGenerated": true, - "humanLikenessConsent": "synthetic", + "modelTerms": [ + "Publisher model terms at https://huggingface.co/diffusers/sdxl-instructpix2pix-768/tree/06653d47f8d22f2c2205a5884d6a24c5e76d2ca7" + ], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "deepseek-community/Janus-Pro-1B@1655280bb75959cc1cb85529a2a8b26e7016072e https://huggingface.co/deepseek-community/Janus-Pro-1B/tree/1655280bb75959cc1cb85529a2a8b26e7016072e" + "diffusers/sdxl-instructpix2pix-768@06653d47f8d22f2c2205a5884d6a24c5e76d2ca7 https://huggingface.co/diffusers/sdxl-instructpix2pix-768/tree/06653d47f8d22f2c2205a5884d6a24c5e76d2ca7" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", - "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", - "provenanceTemplateId": "janus_red_triangle_caption" + "humanApprovalPacketSHA256": "c2df9edb92f8ff905b6c9a138a285e67c621f3d2dfa3232f859aaf963b725aca", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "sdxl_pix2pix_pale_amber_glass" }, { - "path": "template-gallery/janus_reykjavik_travel_note.json", - "sha256": "sha256:bytes:c7fb7a09d2480a8cffde6212e6686a5be04ccb01ec7811c7109281634d7c4daa", + "path": "template-gallery/inputs/spandrel_x2_synthetic_gradient.before.png", + "sha256": "sha256:bytes:626815c78eaad46cad849732d1598b45b91700ce046c1ee3f4e2444db80aa32a", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", - "creationMethod": "Exact approved file captured from a saved MoDiff workflow", - "sourceUrl": "https://huggingface.co/deepseek-community/Janus-Pro-1B/tree/1655280bb75959cc1cb85529a2a8b26e7016072e", - "sourceRevision": "deepseek-community/Janus-Pro-1B@1655280bb75959cc1cb85529a2a8b26e7016072e", - "sourceLicense": "Maintainer-authorized file with publisher terms retained", - "modelTerms": ["https://github.com/deepseek-ai/Janus/blob/main/LICENSE-MODEL"], - "aiGenerated": true, - "humanLikenessConsent": "synthetic", + "creationMethod": "Original maintainer-approved synthetic gradient fixture", + "sourceUrl": null, + "sourceRevision": null, + "sourceLicense": "MoDiff-authored fixture or Gallery metadata", + "modelTerms": [], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", "marks": [], - "requiredAttribution": [ - "deepseek-community/Janus-Pro-1B@1655280bb75959cc1cb85529a2a8b26e7016072e https://huggingface.co/deepseek-community/Janus-Pro-1B/tree/1655280bb75959cc1cb85529a2a8b26e7016072e" - ], - "assetLicense": "Apache-2.0", + "requiredAttribution": [], + "assetLicense": "MoDiff-Gallery-Restricted-1.0", "reviewedBy": "MoDiff workspace maintainer", - "reviewedAt": "2026-11-25", + "reviewedAt": "2026-11-19", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", - "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", - "provenanceTemplateId": "janus_reykjavik_travel_note" + "humanApprovalPacketSHA256": "ea2e749b805706828428bd34589bd41263e9c432a9503fe17c3c6a6d7d932176", + "publicationBasis": "Maintainer approved this exact saved Spandrel 2× technical preview and confirmed redistribution rights.", + "provenanceTemplateId": "spandrel_x2_synthetic_gradient" }, { - "path": "template-gallery/joy_plus_lavender_on_limestone.webp", - "sha256": "sha256:bytes:6c1f36ca4b6eb78cc6ce314e60534f4496fae9a972b3f03ce2254257aa9737a3", + "path": "template-gallery/inputs/wan_flf_blue_hour_at_the_tram_shelter.first.png", + "sha256": "sha256:bytes:6d2c561cf33919ae42e773d95a0232799da3f2b92a23a94dad80902cfb73527a", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Exact approved file captured from a saved MoDiff workflow", - "sourceUrl": "https://huggingface.co/jdopensource/JoyAI-Image-Edit-Plus-Diffusers/tree/c2686460c7b64d8aa11bc4d0da423fb316b33f9e", - "sourceRevision": "jdopensource/JoyAI-Image-Edit-Plus-Diffusers@c2686460c7b64d8aa11bc4d0da423fb316b33f9e", + "sourceUrl": "https://huggingface.co/Wan-AI/Wan2.1-FLF2V-14B-720P-diffusers/tree/17c30769b1e0b5dcaa1799b117bf20a9c31f59d7", + "sourceRevision": "Wan-AI/Wan2.1-FLF2V-14B-720P-diffusers@17c30769b1e0b5dcaa1799b117bf20a9c31f59d7", "sourceLicense": "Maintainer-authorized file with publisher terms retained", "modelTerms": [ - "Publisher model terms at https://huggingface.co/jdopensource/JoyAI-Image-Edit-Plus-Diffusers/tree/c2686460c7b64d8aa11bc4d0da423fb316b33f9e" + "Publisher model terms at https://huggingface.co/Wan-AI/Wan2.1-FLF2V-14B-720P-diffusers/tree/17c30769b1e0b5dcaa1799b117bf20a9c31f59d7" ], - "aiGenerated": true, - "humanLikenessConsent": "synthetic", + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "jdopensource/JoyAI-Image-Edit-Plus-Diffusers@c2686460c7b64d8aa11bc4d0da423fb316b33f9e https://huggingface.co/jdopensource/JoyAI-Image-Edit-Plus-Diffusers/tree/c2686460c7b64d8aa11bc4d0da423fb316b33f9e" + "Wan-AI/Wan2.1-FLF2V-14B-720P-diffusers@17c30769b1e0b5dcaa1799b117bf20a9c31f59d7 https://huggingface.co/Wan-AI/Wan2.1-FLF2V-14B-720P-diffusers/tree/17c30769b1e0b5dcaa1799b117bf20a9c31f59d7" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "60b01498a2df5f4e4622cdc2f9a43c83d187820780d2425a19718c13707db501", + "humanApprovalPacketSHA256": "ffeaa41a5c94b59135d2cdb15a5c7f79f073c15fd78792ce00a157398ab15d59", "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", - "provenanceTemplateId": "joy_plus_lavender_on_limestone" + "provenanceTemplateId": "wan_flf_blue_hour_at_the_tram_shelter" }, { - "path": "template-gallery/joyimage_base_cobalt_paper_band.webp", - "sha256": "sha256:bytes:99fabcac42e8698eb652089bf52698690648937552975d54a68141be9a66b307", + "path": "template-gallery/inputs/wan_flf_blue_hour_at_the_tram_shelter.last.png", + "sha256": "sha256:bytes:191b023efb43a42288799877db722b9a2608d2970740246322ef38cc7c68c590", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Exact approved file captured from a saved MoDiff workflow", - "sourceUrl": "https://huggingface.co/jdopensource/JoyAI-Image-Edit-Diffusers/tree/4b41fb25d961f37668750178ccbb380da326201c", - "sourceRevision": "jdopensource/JoyAI-Image-Edit-Diffusers@4b41fb25d961f37668750178ccbb380da326201c", + "sourceUrl": "https://huggingface.co/Wan-AI/Wan2.1-FLF2V-14B-720P-diffusers/tree/17c30769b1e0b5dcaa1799b117bf20a9c31f59d7", + "sourceRevision": "Wan-AI/Wan2.1-FLF2V-14B-720P-diffusers@17c30769b1e0b5dcaa1799b117bf20a9c31f59d7", "sourceLicense": "Maintainer-authorized file with publisher terms retained", "modelTerms": [ - "Publisher model terms at https://huggingface.co/jdopensource/JoyAI-Image-Edit-Diffusers/tree/4b41fb25d961f37668750178ccbb380da326201c" + "Publisher model terms at https://huggingface.co/Wan-AI/Wan2.1-FLF2V-14B-720P-diffusers/tree/17c30769b1e0b5dcaa1799b117bf20a9c31f59d7" ], - "aiGenerated": true, - "humanLikenessConsent": "synthetic", + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "jdopensource/JoyAI-Image-Edit-Diffusers@4b41fb25d961f37668750178ccbb380da326201c https://huggingface.co/jdopensource/JoyAI-Image-Edit-Diffusers/tree/4b41fb25d961f37668750178ccbb380da326201c" + "Wan-AI/Wan2.1-FLF2V-14B-720P-diffusers@17c30769b1e0b5dcaa1799b117bf20a9c31f59d7 https://huggingface.co/Wan-AI/Wan2.1-FLF2V-14B-720P-diffusers/tree/17c30769b1e0b5dcaa1799b117bf20a9c31f59d7" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "60b01498a2df5f4e4622cdc2f9a43c83d187820780d2425a19718c13707db501", + "humanApprovalPacketSHA256": "ffeaa41a5c94b59135d2cdb15a5c7f79f073c15fd78792ce00a157398ab15d59", "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", - "provenanceTemplateId": "joyimage_base_cobalt_paper_band" + "provenanceTemplateId": "wan_flf_blue_hour_at_the_tram_shelter" }, { - "path": "template-gallery/joyimage_herbarium_rainy_porthole.webp", - "sha256": "sha256:bytes:50213ff01502af1445d1d72618c3614c444931fd94739a53191bd2c36f36e578", + "path": "template-gallery/inputs/wan_vace_grayscale_control.before.mp4", + "sha256": "sha256:bytes:748b164fd91bc2eed97f7c1d1125a04496a056f29cc016d7cc0da3734c2303b7", "publishDecision": "approved", "holdReason": null, - "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", - "creationMethod": "Exact approved file captured from a saved MoDiff workflow", - "sourceUrl": "https://huggingface.co/jdopensource/JoyAI-Image-Edit-Diffusers/tree/4b41fb25d961f37668750178ccbb380da326201c", - "sourceRevision": "jdopensource/JoyAI-Image-Edit-Diffusers@4b41fb25d961f37668750178ccbb380da326201c", - "sourceLicense": "Maintainer-authorized file with publisher terms retained", + "creatorOrRightsholder": "MoDiff project maintainers, subject to the recorded source and model terms", + "creationMethod": "AI-generated Gallery media or deterministic derivative", + "sourceUrl": "https://huggingface.co/nateraw/real-esrgan/tree/42efb9c3eeed1f5c0c8a626cf5f7f4481dfbb094", + "sourceRevision": "nateraw/real-esrgan@42efb9c3eeed1f5c0c8a626cf5f7f4481dfbb094 | Wan-AI/Wan2.1-VACE-1.3B-diffusers@ec4d2cb062b548996b179d493fdd05340de702a1", + "sourceLicense": "Original generation or recorded workflow input; see modelTerms", "modelTerms": [ - "Publisher model terms at https://huggingface.co/jdopensource/JoyAI-Image-Edit-Diffusers/tree/4b41fb25d961f37668750178ccbb380da326201c" + "nateraw/real-esrgan: BSD-3-Clause; https://huggingface.co/nateraw/real-esrgan/tree/42efb9c3eeed1f5c0c8a626cf5f7f4481dfbb094", + "Wan-AI/Wan2.1-VACE-1.3B-diffusers: Apache-2.0; https://huggingface.co/Wan-AI/Wan2.1-VACE-1.3B-diffusers/tree/ec4d2cb062b548996b179d493fdd05340de702a1" ], "aiGenerated": true, "humanLikenessConsent": "synthetic", "marks": [], - "requiredAttribution": [ - "jdopensource/JoyAI-Image-Edit-Diffusers@4b41fb25d961f37668750178ccbb380da326201c https://huggingface.co/jdopensource/JoyAI-Image-Edit-Diffusers/tree/4b41fb25d961f37668750178ccbb380da326201c" - ], + "requiredAttribution": [], "assetLicense": "Apache-2.0", - "reviewedBy": "MoDiff workspace maintainer", - "reviewedAt": "2026-11-25", - "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "4fc7c52588176cb1f6ba6d699d08741b2986ea71ea87bac650d261716a10b24c", - "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", - "provenanceTemplateId": "joyimage_herbarium_rainy_porthole" + "reviewedBy": "SOURAV DAS", + "reviewedAt": "2026-08-03", + "reviewClass": "standard-human-attestation", + "provenanceTemplateId": "wan_vace_grayscale_control", + "consumingTemplateIds": ["wan_vace_grayscale_control"] }, { - "path": "template-gallery/kandinsky3_ginkgo_on_slate.webp", - "sha256": "sha256:bytes:4b33c6b278e6c9f036ee8f4a11fe6dd4dab58ad385407f844b1f0bb609557ab4", + "path": "template-gallery/inputs/wan_vace_outpaint_reframe.before.mp4", + "sha256": "sha256:bytes:a8f28e04d03c9a6a2ba0b3ba4bf7db08f6ec99c45d962877cbc91aad5f3ad318", "publishDecision": "approved", "holdReason": null, - "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", - "creationMethod": "Exact approved file captured from a saved MoDiff workflow", - "sourceUrl": "https://huggingface.co/kandinsky-community/kandinsky-3/tree/bf79e6c219da8a94abb50235fdc4567eb8fb4632", - "sourceRevision": "kandinsky-community/kandinsky-3@bf79e6c219da8a94abb50235fdc4567eb8fb4632", - "sourceLicense": "Maintainer-authorized file with publisher terms retained", + "creatorOrRightsholder": "MoDiff project maintainers, subject to the recorded source and model terms", + "creationMethod": "AI-generated Gallery media or deterministic derivative", + "sourceUrl": "https://huggingface.co/nateraw/real-esrgan/tree/42efb9c3eeed1f5c0c8a626cf5f7f4481dfbb094", + "sourceRevision": "nateraw/real-esrgan@42efb9c3eeed1f5c0c8a626cf5f7f4481dfbb094 | Wan-AI/Wan2.1-VACE-1.3B-diffusers@ec4d2cb062b548996b179d493fdd05340de702a1", + "sourceLicense": "Original generation or recorded workflow input; see modelTerms", "modelTerms": [ - "Publisher model terms at https://huggingface.co/kandinsky-community/kandinsky-3/tree/bf79e6c219da8a94abb50235fdc4567eb8fb4632" + "nateraw/real-esrgan: BSD-3-Clause; https://huggingface.co/nateraw/real-esrgan/tree/42efb9c3eeed1f5c0c8a626cf5f7f4481dfbb094", + "Wan-AI/Wan2.1-VACE-1.3B-diffusers: Apache-2.0; https://huggingface.co/Wan-AI/Wan2.1-VACE-1.3B-diffusers/tree/ec4d2cb062b548996b179d493fdd05340de702a1" ], "aiGenerated": true, "humanLikenessConsent": "synthetic", "marks": [], - "requiredAttribution": [ - "kandinsky-community/kandinsky-3@bf79e6c219da8a94abb50235fdc4567eb8fb4632 https://huggingface.co/kandinsky-community/kandinsky-3/tree/bf79e6c219da8a94abb50235fdc4567eb8fb4632" - ], + "requiredAttribution": [], "assetLicense": "Apache-2.0", - "reviewedBy": "MoDiff workspace maintainer", - "reviewedAt": "2026-11-24", - "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "d216f065bdc316366c6183592f657bcfbbd7cb05acd0e510c6b3877fe56bcec2", - "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped six saved cases with model terms retained.", - "provenanceTemplateId": "kandinsky3_ginkgo_on_slate" + "reviewedBy": "SOURAV DAS", + "reviewedAt": "2026-08-03", + "reviewClass": "standard-human-attestation", + "provenanceTemplateId": "wan_vace_outpaint_reframe", + "consumingTemplateIds": ["wan_vace_outpaint_reframe"] }, { - "path": "template-gallery/kandinsky3_smoked_glass_on_limestone.webp", - "sha256": "sha256:bytes:77d55b454e684b69306ae806b31911750ae496888e58c85c1d896a5f222b71dd", + "path": "template-gallery/inputs/wan_vace_video_color_grade.before.mp4", + "sha256": "sha256:bytes:934b4494442c732bfc27f3de1e1a8e99adf0eb96572bd6405f1a9c72da148289", "publishDecision": "approved", "holdReason": null, - "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", - "creationMethod": "Exact approved file captured from a saved MoDiff workflow", - "sourceUrl": "https://huggingface.co/kandinsky-community/kandinsky-3/tree/bf79e6c219da8a94abb50235fdc4567eb8fb4632", - "sourceRevision": "kandinsky-community/kandinsky-3@bf79e6c219da8a94abb50235fdc4567eb8fb4632", - "sourceLicense": "Maintainer-authorized file with publisher terms retained", + "creatorOrRightsholder": "MoDiff project maintainers, subject to the recorded source and model terms", + "creationMethod": "AI-generated Gallery media or deterministic derivative", + "sourceUrl": "https://huggingface.co/nateraw/real-esrgan/tree/42efb9c3eeed1f5c0c8a626cf5f7f4481dfbb094", + "sourceRevision": "nateraw/real-esrgan@42efb9c3eeed1f5c0c8a626cf5f7f4481dfbb094 | Wan-AI/Wan2.1-T2V-1.3B-Diffusers@0fad780a534b6463e45facd96134c9f345acfa5b", + "sourceLicense": "Original generation or recorded workflow input; see modelTerms", "modelTerms": [ - "Publisher model terms at https://huggingface.co/kandinsky-community/kandinsky-3/tree/bf79e6c219da8a94abb50235fdc4567eb8fb4632" + "nateraw/real-esrgan: BSD-3-Clause; https://huggingface.co/nateraw/real-esrgan/tree/42efb9c3eeed1f5c0c8a626cf5f7f4481dfbb094", + "Wan-AI/Wan2.1-T2V-1.3B-Diffusers: Apache-2.0; https://huggingface.co/Wan-AI/Wan2.1-T2V-1.3B-Diffusers/tree/0fad780a534b6463e45facd96134c9f345acfa5b" ], "aiGenerated": true, "humanLikenessConsent": "synthetic", "marks": [], - "requiredAttribution": [ - "kandinsky-community/kandinsky-3@bf79e6c219da8a94abb50235fdc4567eb8fb4632 https://huggingface.co/kandinsky-community/kandinsky-3/tree/bf79e6c219da8a94abb50235fdc4567eb8fb4632" - ], + "requiredAttribution": [], "assetLicense": "Apache-2.0", - "reviewedBy": "MoDiff workspace maintainer", - "reviewedAt": "2026-11-25", - "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "60b01498a2df5f4e4622cdc2f9a43c83d187820780d2425a19718c13707db501", - "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", - "provenanceTemplateId": "kandinsky3_smoked_glass_on_limestone" + "reviewedBy": "SOURAV DAS", + "reviewedAt": "2026-08-03", + "reviewClass": "standard-human-attestation", + "provenanceTemplateId": "wan_vace_video_color_grade", + "consumingTemplateIds": ["wan_vace_video_color_grade"] }, { - "path": "template-gallery/kontext_wide_water_alpine_ridge.webp", - "sha256": "sha256:bytes:18090bf07900510b2d99c7c4ab38b9e38dc680fe437def20b2ce7297265db4b8", + "path": "template-gallery/inputs/wan_vace_video_to_video.before.mp4", + "sha256": "sha256:bytes:1f5cd051f787fc878bed50d3c26cce840abe00c942d32e49492e544ac2f88cff", "publishDecision": "approved", "holdReason": null, - "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", - "creationMethod": "Exact approved file captured from a saved MoDiff workflow", - "sourceUrl": "https://huggingface.co/black-forest-labs/FLUX.1-Kontext-dev/tree/24e9dedc4ef646698dc8eb4e18ae2cec3c9fea0d", - "sourceRevision": "black-forest-labs/FLUX.1-Kontext-dev@24e9dedc4ef646698dc8eb4e18ae2cec3c9fea0d", - "sourceLicense": "Maintainer-authorized file with publisher terms retained", + "creatorOrRightsholder": "MoDiff project maintainers, subject to the recorded source and model terms", + "creationMethod": "AI-generated Gallery media or deterministic derivative", + "sourceUrl": "https://huggingface.co/nateraw/real-esrgan/tree/42efb9c3eeed1f5c0c8a626cf5f7f4481dfbb094", + "sourceRevision": "nateraw/real-esrgan@42efb9c3eeed1f5c0c8a626cf5f7f4481dfbb094 | Wan-AI/Wan2.1-T2V-1.3B-Diffusers@0fad780a534b6463e45facd96134c9f345acfa5b", + "sourceLicense": "Original generation or recorded workflow input; see modelTerms", "modelTerms": [ - "Publisher model terms at https://huggingface.co/black-forest-labs/FLUX.1-Kontext-dev/tree/24e9dedc4ef646698dc8eb4e18ae2cec3c9fea0d" + "nateraw/real-esrgan: BSD-3-Clause; https://huggingface.co/nateraw/real-esrgan/tree/42efb9c3eeed1f5c0c8a626cf5f7f4481dfbb094", + "Wan-AI/Wan2.1-T2V-1.3B-Diffusers: Apache-2.0; https://huggingface.co/Wan-AI/Wan2.1-T2V-1.3B-Diffusers/tree/0fad780a534b6463e45facd96134c9f345acfa5b" ], "aiGenerated": true, "humanLikenessConsent": "synthetic", "marks": [], - "requiredAttribution": [ - "black-forest-labs/FLUX.1-Kontext-dev@24e9dedc4ef646698dc8eb4e18ae2cec3c9fea0d https://huggingface.co/black-forest-labs/FLUX.1-Kontext-dev/tree/24e9dedc4ef646698dc8eb4e18ae2cec3c9fea0d" - ], + "requiredAttribution": [], "assetLicense": "Apache-2.0", - "reviewedBy": "MoDiff workspace maintainer", - "reviewedAt": "2026-11-25", - "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "60b01498a2df5f4e4622cdc2f9a43c83d187820780d2425a19718c13707db501", - "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", - "provenanceTemplateId": "kontext_wide_water_alpine_ridge" - }, - { - "creatorOrRightsholder": "MoDiff project maintainers, subject to previously approved synthetic source rights and recorded model terms", - "creationMethod": "Native local AI-generated output or exact deterministic layer-sheet derivative; original approved bytes retained", - "sourceUrl": "https://huggingface.co/Qwen/Qwen-Image-Layered/tree/8f0ca708dfff6ba1dd5f2d85d78f8c108a040bcf", - "sourceRevision": "Qwen/Qwen-Image-Layered@8f0ca708dfff6ba1dd5f2d85d78f8c108a040bcf", - "sourceLicense": "Generated output and approved synthetic input; retained model terms apply", - "modelTerms": [ - "Qwen/Qwen-Image-Layered: Apache-2.0; https://huggingface.co/Qwen/Qwen-Image-Layered/tree/8f0ca708dfff6ba1dd5f2d85d78f8c108a040bcf" - ], - "aiGenerated": true, - "humanLikenessConsent": "synthetic", - "marks": [], - "requiredAttribution": [], - "publicationBasis": "Existing maintainer publication authorization and current explicit instruction to register these three accepted assets; no new ownership or rights quotation is fabricated.", - "path": "template-gallery/layers/qwen_layered_portrait.native-layer-00.webp", - "sha256": "sha256:bytes:ba904a37ab5bc2905458dfab79179aba4c268bcf409aa0444549664797eb5dea", - "publishDecision": "approved", - "holdReason": null, - "assetLicense": "Apache-2.0", - "reviewedBy": "maintainer (current user)", - "reviewedAt": "2026-11-12", - "reviewClass": "per-file-maintainer-accepted-native-three-registration", - "humanApprovalPacketSHA256": "69c6b3d9b0ea2fcca16ee538f6e75b414b7141658b74f10578758e61360f63fd", - "provenanceTemplateId": "qwen_layered_portrait" + "reviewedBy": "SOURAV DAS", + "reviewedAt": "2026-08-03", + "reviewClass": "standard-human-attestation", + "provenanceTemplateId": "wan_vace_video_to_video", + "consumingTemplateIds": ["wan_vace_video_to_video"] }, { - "creatorOrRightsholder": "MoDiff project maintainers, subject to previously approved synthetic source rights and recorded model terms", - "creationMethod": "Native local AI-generated output or exact deterministic layer-sheet derivative; original approved bytes retained", - "sourceUrl": "https://huggingface.co/Qwen/Qwen-Image-Layered/tree/8f0ca708dfff6ba1dd5f2d85d78f8c108a040bcf", - "sourceRevision": "Qwen/Qwen-Image-Layered@8f0ca708dfff6ba1dd5f2d85d78f8c108a040bcf", - "sourceLicense": "Generated output and approved synthetic input; retained model terms apply", - "modelTerms": [ - "Qwen/Qwen-Image-Layered: Apache-2.0; https://huggingface.co/Qwen/Qwen-Image-Layered/tree/8f0ca708dfff6ba1dd5f2d85d78f8c108a040bcf" - ], - "aiGenerated": true, - "humanLikenessConsent": "synthetic", - "marks": [], - "requiredAttribution": [], - "publicationBasis": "Existing maintainer publication authorization and current explicit instruction to register these three accepted assets; no new ownership or rights quotation is fabricated.", - "path": "template-gallery/layers/qwen_layered_portrait.native-layer-01.webp", - "sha256": "sha256:bytes:abb3ae59bfd0395c477d2e20c7725ba75e4acef318f030cb0adb98837639e898", + "path": "template-gallery/inputs/zimage_golden_amber_glass.before.png", + "sha256": "sha256:bytes:ebaca95f96d1573e4292ffc65c78eb0dcf8ff9cc8b5a7e11ec81face61b160fb", "publishDecision": "approved", "holdReason": null, - "assetLicense": "Apache-2.0", - "reviewedBy": "maintainer (current user)", - "reviewedAt": "2026-11-12", - "reviewClass": "per-file-maintainer-accepted-native-three-registration", - "humanApprovalPacketSHA256": "69c6b3d9b0ea2fcca16ee538f6e75b414b7141658b74f10578758e61360f63fd", - "provenanceTemplateId": "qwen_layered_portrait" - }, - { - "creatorOrRightsholder": "MoDiff project maintainers, subject to previously approved synthetic source rights and recorded model terms", - "creationMethod": "Native local AI-generated output or exact deterministic layer-sheet derivative; original approved bytes retained", - "sourceUrl": "https://huggingface.co/Qwen/Qwen-Image-Layered/tree/8f0ca708dfff6ba1dd5f2d85d78f8c108a040bcf", - "sourceRevision": "Qwen/Qwen-Image-Layered@8f0ca708dfff6ba1dd5f2d85d78f8c108a040bcf", - "sourceLicense": "Generated output and approved synthetic input; retained model terms apply", + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Exact approved file captured from a saved MoDiff workflow", + "sourceUrl": "https://huggingface.co/Tongyi-MAI/Z-Image-Turbo/tree/f332072aa78be7aecdf3ee76d5c247082da564a6", + "sourceRevision": "Tongyi-MAI/Z-Image-Turbo@f332072aa78be7aecdf3ee76d5c247082da564a6", + "sourceLicense": "Maintainer-authorized file with publisher terms retained", "modelTerms": [ - "Qwen/Qwen-Image-Layered: Apache-2.0; https://huggingface.co/Qwen/Qwen-Image-Layered/tree/8f0ca708dfff6ba1dd5f2d85d78f8c108a040bcf" + "Publisher model terms at https://huggingface.co/Tongyi-MAI/Z-Image-Turbo/tree/f332072aa78be7aecdf3ee76d5c247082da564a6" ], - "aiGenerated": true, - "humanLikenessConsent": "synthetic", + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", "marks": [], - "requiredAttribution": [], - "publicationBasis": "Existing maintainer publication authorization and current explicit instruction to register these three accepted assets; no new ownership or rights quotation is fabricated.", - "path": "template-gallery/layers/qwen_layered_portrait.native-layer-02.webp", - "sha256": "sha256:bytes:4ad39d3025e3421834d92b32ab5e1e49e4a3ce79602acf614758514f78e6db33", - "publishDecision": "approved", - "holdReason": null, - "assetLicense": "Apache-2.0", - "reviewedBy": "maintainer (current user)", - "reviewedAt": "2026-11-12", - "reviewClass": "per-file-maintainer-accepted-native-three-registration", - "humanApprovalPacketSHA256": "69c6b3d9b0ea2fcca16ee538f6e75b414b7141658b74f10578758e61360f63fd", - "provenanceTemplateId": "qwen_layered_portrait" - }, - { - "creatorOrRightsholder": "MoDiff project maintainers, subject to previously approved synthetic source rights and recorded model terms", - "creationMethod": "Native local AI-generated output or exact deterministic layer-sheet derivative; original approved bytes retained", - "sourceUrl": "https://huggingface.co/Qwen/Qwen-Image-Layered/tree/8f0ca708dfff6ba1dd5f2d85d78f8c108a040bcf", - "sourceRevision": "Qwen/Qwen-Image-Layered@8f0ca708dfff6ba1dd5f2d85d78f8c108a040bcf", - "sourceLicense": "Generated output and approved synthetic input; retained model terms apply", - "modelTerms": [ - "Qwen/Qwen-Image-Layered: Apache-2.0; https://huggingface.co/Qwen/Qwen-Image-Layered/tree/8f0ca708dfff6ba1dd5f2d85d78f8c108a040bcf" + "requiredAttribution": [ + "Tongyi-MAI/Z-Image-Turbo@f332072aa78be7aecdf3ee76d5c247082da564a6 https://huggingface.co/Tongyi-MAI/Z-Image-Turbo/tree/f332072aa78be7aecdf3ee76d5c247082da564a6" ], - "aiGenerated": true, - "humanLikenessConsent": "synthetic", - "marks": [], - "requiredAttribution": [], - "publicationBasis": "Existing maintainer publication authorization and current explicit instruction to register these three accepted assets; no new ownership or rights quotation is fabricated.", - "path": "template-gallery/layers/qwen_layered_portrait.preview-layer-00.png", - "sha256": "sha256:bytes:b9decdea3edb455655594b73d42e5c053f961500e7ff7d65367a2ca855692c87", - "publishDecision": "approved", - "holdReason": null, "assetLicense": "Apache-2.0", - "reviewedBy": "maintainer (current user)", - "reviewedAt": "2026-11-12", - "reviewClass": "per-file-maintainer-accepted-native-three-registration", - "humanApprovalPacketSHA256": "69c6b3d9b0ea2fcca16ee538f6e75b414b7141658b74f10578758e61360f63fd", - "provenanceTemplateId": "qwen_layered_portrait" + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "c2df9edb92f8ff905b6c9a138a285e67c621f3d2dfa3232f859aaf963b725aca", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "zimage_golden_amber_glass" }, { - "creatorOrRightsholder": "MoDiff project maintainers, subject to previously approved synthetic source rights and recorded model terms", - "creationMethod": "Native local AI-generated output or exact deterministic layer-sheet derivative; original approved bytes retained", - "sourceUrl": "https://huggingface.co/Qwen/Qwen-Image-Layered/tree/8f0ca708dfff6ba1dd5f2d85d78f8c108a040bcf", - "sourceRevision": "Qwen/Qwen-Image-Layered@8f0ca708dfff6ba1dd5f2d85d78f8c108a040bcf", - "sourceLicense": "Generated output and approved synthetic input; retained model terms apply", - "modelTerms": [ - "Qwen/Qwen-Image-Layered: Apache-2.0; https://huggingface.co/Qwen/Qwen-Image-Layered/tree/8f0ca708dfff6ba1dd5f2d85d78f8c108a040bcf" - ], - "aiGenerated": true, - "humanLikenessConsent": "synthetic", - "marks": [], - "requiredAttribution": [], - "publicationBasis": "Existing maintainer publication authorization and current explicit instruction to register these three accepted assets; no new ownership or rights quotation is fabricated.", - "path": "template-gallery/layers/qwen_layered_portrait.preview-layer-01.png", - "sha256": "sha256:bytes:52756ca48a3b51ccb16dc4859207a89cf7c2e38ccc4c0efc325f77718eaeb645", + "path": "template-gallery/inputs/zimage_rocky_glacial_shores.before.png", + "sha256": "sha256:bytes:50270382b4b730b87f79b775accaeeb81f3ff8885cd3d2cea94830206fbc181b", "publishDecision": "approved", "holdReason": null, - "assetLicense": "Apache-2.0", - "reviewedBy": "maintainer (current user)", - "reviewedAt": "2026-11-12", - "reviewClass": "per-file-maintainer-accepted-native-three-registration", - "humanApprovalPacketSHA256": "69c6b3d9b0ea2fcca16ee538f6e75b414b7141658b74f10578758e61360f63fd", - "provenanceTemplateId": "qwen_layered_portrait" - }, - { - "creatorOrRightsholder": "MoDiff project maintainers, subject to previously approved synthetic source rights and recorded model terms", - "creationMethod": "Native local AI-generated output or exact deterministic layer-sheet derivative; original approved bytes retained", - "sourceUrl": "https://huggingface.co/Qwen/Qwen-Image-Layered/tree/8f0ca708dfff6ba1dd5f2d85d78f8c108a040bcf", - "sourceRevision": "Qwen/Qwen-Image-Layered@8f0ca708dfff6ba1dd5f2d85d78f8c108a040bcf", - "sourceLicense": "Generated output and approved synthetic input; retained model terms apply", + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Exact approved file captured from a saved MoDiff workflow", + "sourceUrl": "https://huggingface.co/Tongyi-MAI/Z-Image-Turbo/tree/f332072aa78be7aecdf3ee76d5c247082da564a6", + "sourceRevision": "Tongyi-MAI/Z-Image-Turbo@f332072aa78be7aecdf3ee76d5c247082da564a6", + "sourceLicense": "Maintainer-authorized file with publisher terms retained", "modelTerms": [ - "Qwen/Qwen-Image-Layered: Apache-2.0; https://huggingface.co/Qwen/Qwen-Image-Layered/tree/8f0ca708dfff6ba1dd5f2d85d78f8c108a040bcf" + "Publisher model terms at https://huggingface.co/Tongyi-MAI/Z-Image-Turbo/tree/f332072aa78be7aecdf3ee76d5c247082da564a6" ], - "aiGenerated": true, - "humanLikenessConsent": "synthetic", + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", "marks": [], - "requiredAttribution": [], - "publicationBasis": "Existing maintainer publication authorization and current explicit instruction to register these three accepted assets; no new ownership or rights quotation is fabricated.", - "path": "template-gallery/layers/qwen_layered_portrait.preview-layer-02.png", - "sha256": "sha256:bytes:58cb19db09e8bfd29a74ce6edb8d7485960abb298659ec8826d4d8ebcc62930a", - "publishDecision": "approved", - "holdReason": null, + "requiredAttribution": [ + "Tongyi-MAI/Z-Image-Turbo@f332072aa78be7aecdf3ee76d5c247082da564a6 https://huggingface.co/Tongyi-MAI/Z-Image-Turbo/tree/f332072aa78be7aecdf3ee76d5c247082da564a6" + ], "assetLicense": "Apache-2.0", - "reviewedBy": "maintainer (current user)", - "reviewedAt": "2026-11-12", - "reviewClass": "per-file-maintainer-accepted-native-three-registration", - "humanApprovalPacketSHA256": "69c6b3d9b0ea2fcca16ee538f6e75b414b7141658b74f10578758e61360f63fd", - "provenanceTemplateId": "qwen_layered_portrait" + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "60b01498a2df5f4e4622cdc2f9a43c83d187820780d2425a19718c13707db501", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "zimage_rocky_glacial_shores" }, { - "path": "template-gallery/layers/qwen_layered_sunset_and_peaks.layer-1.webp", - "sha256": "sha256:bytes:16ffd9f4a965c95164e51c9ee9d72295bc618972d3c67fb837c2df259187682c", + "path": "template-gallery/inputs/zimage_seamless_cobalt_backdrop.before.png", + "sha256": "sha256:bytes:e75c20f0e8a74e283b996bf526e6ea74535ed24125ad97c2d92508d3435d7a87", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Exact approved file captured from a saved MoDiff workflow", - "sourceUrl": "https://huggingface.co/Qwen/Qwen-Image-Layered/tree/8f0ca708dfff6ba1dd5f2d85d78f8c108a040bcf", - "sourceRevision": "Qwen/Qwen-Image-Layered@8f0ca708dfff6ba1dd5f2d85d78f8c108a040bcf", + "sourceUrl": "https://huggingface.co/Tongyi-MAI/Z-Image-Turbo/tree/f332072aa78be7aecdf3ee76d5c247082da564a6", + "sourceRevision": "Tongyi-MAI/Z-Image-Turbo@f332072aa78be7aecdf3ee76d5c247082da564a6", "sourceLicense": "Maintainer-authorized file with publisher terms retained", "modelTerms": [ - "https://huggingface.co/Qwen/Qwen-Image-Layered/blob/8f0ca708dfff6ba1dd5f2d85d78f8c108a040bcf/README.md" + "Publisher model terms at https://huggingface.co/Tongyi-MAI/Z-Image-Turbo/tree/f332072aa78be7aecdf3ee76d5c247082da564a6" ], - "aiGenerated": true, - "humanLikenessConsent": "synthetic", + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "Qwen/Qwen-Image-Layered@8f0ca708dfff6ba1dd5f2d85d78f8c108a040bcf https://huggingface.co/Qwen/Qwen-Image-Layered/tree/8f0ca708dfff6ba1dd5f2d85d78f8c108a040bcf" + "Tongyi-MAI/Z-Image-Turbo@f332072aa78be7aecdf3ee76d5c247082da564a6 https://huggingface.co/Tongyi-MAI/Z-Image-Turbo/tree/f332072aa78be7aecdf3ee76d5c247082da564a6" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "b16dfc2b7c1c32272b8f79bc1bffbb60376e63f8cf1ab9d0bdf9aea07cccf5cd", + "humanApprovalPacketSHA256": "60b01498a2df5f4e4622cdc2f9a43c83d187820780d2425a19718c13707db501", "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", - "provenanceTemplateId": "qwen_layered_sunset_and_peaks" + "provenanceTemplateId": "zimage_seamless_cobalt_backdrop" }, { - "path": "template-gallery/layers/qwen_layered_sunset_and_peaks.layer-2.webp", - "sha256": "sha256:bytes:866609c2307a1f016cac7eefc56401491f58a2e2d57abf0c20b6bdb0f9da057f", + "path": "template-gallery/inputs/zimage_seamless_cobalt_backdrop.mask.png", + "sha256": "sha256:bytes:1f48775f2826f84e0c5b55f16f3475bdc80ecad8b931d6b0279598610e9a828d", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Exact approved file captured from a saved MoDiff workflow", - "sourceUrl": "https://huggingface.co/Qwen/Qwen-Image-Layered/tree/8f0ca708dfff6ba1dd5f2d85d78f8c108a040bcf", - "sourceRevision": "Qwen/Qwen-Image-Layered@8f0ca708dfff6ba1dd5f2d85d78f8c108a040bcf", + "sourceUrl": "https://huggingface.co/Tongyi-MAI/Z-Image-Turbo/tree/f332072aa78be7aecdf3ee76d5c247082da564a6", + "sourceRevision": "Tongyi-MAI/Z-Image-Turbo@f332072aa78be7aecdf3ee76d5c247082da564a6", "sourceLicense": "Maintainer-authorized file with publisher terms retained", "modelTerms": [ - "https://huggingface.co/Qwen/Qwen-Image-Layered/blob/8f0ca708dfff6ba1dd5f2d85d78f8c108a040bcf/README.md" + "Publisher model terms at https://huggingface.co/Tongyi-MAI/Z-Image-Turbo/tree/f332072aa78be7aecdf3ee76d5c247082da564a6" ], - "aiGenerated": true, - "humanLikenessConsent": "synthetic", + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "Qwen/Qwen-Image-Layered@8f0ca708dfff6ba1dd5f2d85d78f8c108a040bcf https://huggingface.co/Qwen/Qwen-Image-Layered/tree/8f0ca708dfff6ba1dd5f2d85d78f8c108a040bcf" + "Tongyi-MAI/Z-Image-Turbo@f332072aa78be7aecdf3ee76d5c247082da564a6 https://huggingface.co/Tongyi-MAI/Z-Image-Turbo/tree/f332072aa78be7aecdf3ee76d5c247082da564a6" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "b16dfc2b7c1c32272b8f79bc1bffbb60376e63f8cf1ab9d0bdf9aea07cccf5cd", + "humanApprovalPacketSHA256": "60b01498a2df5f4e4622cdc2f9a43c83d187820780d2425a19718c13707db501", "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", - "provenanceTemplateId": "qwen_layered_sunset_and_peaks" + "provenanceTemplateId": "zimage_seamless_cobalt_backdrop" }, { - "path": "template-gallery/layers/qwen_layered_sunset_and_peaks.layer-3.webp", - "sha256": "sha256:bytes:01b27cacca10c2ed53a8b9368d42697c2b13239113790d8291e20ccdb939a896", + "path": "template-gallery/janus_red_enamel_teapot.webp", + "sha256": "sha256:bytes:c2cc1b06535dae0816a255e5a08bb20372a4cbd2c4b895f51273140dba4615eb", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Exact approved file captured from a saved MoDiff workflow", - "sourceUrl": "https://huggingface.co/Qwen/Qwen-Image-Layered/tree/8f0ca708dfff6ba1dd5f2d85d78f8c108a040bcf", - "sourceRevision": "Qwen/Qwen-Image-Layered@8f0ca708dfff6ba1dd5f2d85d78f8c108a040bcf", + "sourceUrl": "https://huggingface.co/deepseek-community/Janus-Pro-1B/tree/1655280bb75959cc1cb85529a2a8b26e7016072e", + "sourceRevision": "deepseek-community/Janus-Pro-1B@1655280bb75959cc1cb85529a2a8b26e7016072e", "sourceLicense": "Maintainer-authorized file with publisher terms retained", - "modelTerms": [ - "https://huggingface.co/Qwen/Qwen-Image-Layered/blob/8f0ca708dfff6ba1dd5f2d85d78f8c108a040bcf/README.md" - ], + "modelTerms": ["https://github.com/deepseek-ai/Janus/blob/main/LICENSE-MODEL"], "aiGenerated": true, "humanLikenessConsent": "synthetic", "marks": [], "requiredAttribution": [ - "Qwen/Qwen-Image-Layered@8f0ca708dfff6ba1dd5f2d85d78f8c108a040bcf https://huggingface.co/Qwen/Qwen-Image-Layered/tree/8f0ca708dfff6ba1dd5f2d85d78f8c108a040bcf" + "deepseek-community/Janus-Pro-1B@1655280bb75959cc1cb85529a2a8b26e7016072e https://huggingface.co/deepseek-community/Janus-Pro-1B/tree/1655280bb75959cc1cb85529a2a8b26e7016072e" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "b16dfc2b7c1c32272b8f79bc1bffbb60376e63f8cf1ab9d0bdf9aea07cccf5cd", - "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", - "provenanceTemplateId": "qwen_layered_sunset_and_peaks" + "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", + "provenanceTemplateId": "janus_red_enamel_teapot" }, { - "path": "template-gallery/layers/qwen_layered_sunset_and_peaks.layer-4.webp", - "sha256": "sha256:bytes:186040c0eb257ec0de53821e6f3b03a7720ab2fe03b54a1d0b71290c2e0eda5c", + "path": "template-gallery/janus_red_triangle_caption.json", + "sha256": "sha256:bytes:1fec185a203f16541cf13a02afff3c4333b83ff6c593a88fc59fa108801e6d44", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Exact approved file captured from a saved MoDiff workflow", - "sourceUrl": "https://huggingface.co/Qwen/Qwen-Image-Layered/tree/8f0ca708dfff6ba1dd5f2d85d78f8c108a040bcf", - "sourceRevision": "Qwen/Qwen-Image-Layered@8f0ca708dfff6ba1dd5f2d85d78f8c108a040bcf", + "sourceUrl": "https://huggingface.co/deepseek-community/Janus-Pro-1B/tree/1655280bb75959cc1cb85529a2a8b26e7016072e", + "sourceRevision": "deepseek-community/Janus-Pro-1B@1655280bb75959cc1cb85529a2a8b26e7016072e", "sourceLicense": "Maintainer-authorized file with publisher terms retained", - "modelTerms": [ - "https://huggingface.co/Qwen/Qwen-Image-Layered/blob/8f0ca708dfff6ba1dd5f2d85d78f8c108a040bcf/README.md" - ], + "modelTerms": ["https://github.com/deepseek-ai/Janus/blob/main/LICENSE-MODEL"], "aiGenerated": true, "humanLikenessConsent": "synthetic", "marks": [], "requiredAttribution": [ - "Qwen/Qwen-Image-Layered@8f0ca708dfff6ba1dd5f2d85d78f8c108a040bcf https://huggingface.co/Qwen/Qwen-Image-Layered/tree/8f0ca708dfff6ba1dd5f2d85d78f8c108a040bcf" + "deepseek-community/Janus-Pro-1B@1655280bb75959cc1cb85529a2a8b26e7016072e https://huggingface.co/deepseek-community/Janus-Pro-1B/tree/1655280bb75959cc1cb85529a2a8b26e7016072e" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "b16dfc2b7c1c32272b8f79bc1bffbb60376e63f8cf1ab9d0bdf9aea07cccf5cd", - "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", - "provenanceTemplateId": "qwen_layered_sunset_and_peaks" + "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", + "provenanceTemplateId": "janus_red_triangle_caption" }, { - "path": "template-gallery/lcm_dawn_alpine_lake.webp", - "sha256": "sha256:bytes:6da406d5e24cb7b9e62c1ee617ff8bca851b0f5da3cc7aef2b2e88ac73bfc8d0", + "path": "template-gallery/janus_reykjavik_travel_note.json", + "sha256": "sha256:bytes:c7fb7a09d2480a8cffde6212e6686a5be04ccb01ec7811c7109281634d7c4daa", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", - "humanLikenessConsent": "not-applicable", + "creationMethod": "Exact approved file captured from a saved MoDiff workflow", + "sourceUrl": "https://huggingface.co/deepseek-community/Janus-Pro-1B/tree/1655280bb75959cc1cb85529a2a8b26e7016072e", + "sourceRevision": "deepseek-community/Janus-Pro-1B@1655280bb75959cc1cb85529a2a8b26e7016072e", + "sourceLicense": "Maintainer-authorized file with publisher terms retained", + "modelTerms": ["https://github.com/deepseek-ai/Janus/blob/main/LICENSE-MODEL"], + "aiGenerated": true, + "humanLikenessConsent": "synthetic", "marks": [], + "requiredAttribution": [ + "deepseek-community/Janus-Pro-1B@1655280bb75959cc1cb85529a2a8b26e7016072e https://huggingface.co/deepseek-community/Janus-Pro-1B/tree/1655280bb75959cc1cb85529a2a8b26e7016072e" + ], + "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", - "reviewedAt": "2026-11-20", + "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "ba369c5fff89e379be66714d3ecbf1a0e3a9555e2b5ffbc9cb54210d862ec30b", - "publicationBasis": "Maintainer approved the exact Whisper JSON and both exact LCM images, accepted the disclosed LCM changes, and authorized publication of the associated redacted Gallery records.", - "creationMethod": "Exact retained LCM edit of the specified synthetic PRX lake image", - "sourceUrl": "https://huggingface.co/SimianLuo/LCM_Dreamshaper_v7/blob/a85df6a8bd976cdd08b4fd8f3b73f229c9e54df5/README.md", - "sourceRevision": "SimianLuo/LCM_Dreamshaper_v7@a85df6a8bd976cdd08b4fd8f3b73f229c9e54df5", - "sourceLicense": "Project-authored synthetic content processed by recorded model(s), subject to their applicable terms", + "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", + "provenanceTemplateId": "janus_reykjavik_travel_note" + }, + { + "path": "template-gallery/joy_plus_lavender_on_limestone.webp", + "sha256": "sha256:bytes:6c1f36ca4b6eb78cc6ce314e60534f4496fae9a972b3f03ce2254257aa9737a3", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Exact approved file captured from a saved MoDiff workflow", + "sourceUrl": "https://huggingface.co/jdopensource/JoyAI-Image-Edit-Plus-Diffusers/tree/c2686460c7b64d8aa11bc4d0da423fb316b33f9e", + "sourceRevision": "jdopensource/JoyAI-Image-Edit-Plus-Diffusers@c2686460c7b64d8aa11bc4d0da423fb316b33f9e", + "sourceLicense": "Maintainer-authorized file with publisher terms retained", "modelTerms": [ - "SimianLuo/LCM_Dreamshaper_v7@a85df6a8bd976cdd08b4fd8f3b73f229c9e54df5 — pinned model card MIT declaration. https://huggingface.co/SimianLuo/LCM_Dreamshaper_v7/blob/a85df6a8bd976cdd08b4fd8f3b73f229c9e54df5/README.md", - "LCM card credits DreamShaper 7 and Stable Diffusion v1.5. DreamShaper 7 card declares CreativeML Open RAIL-M. https://huggingface.co/Lykon/dreamshaper-7", - "Stable Diffusion upstream use terms. https://github.com/CompVis/stable-diffusion/blob/main/LICENSE", - "Photoroom/prx-512-t2i-sft@2996423bc26e8eaca48774fac1797484214dfea0 — Apache-2.0 declaration and Gemma use restrictions. https://huggingface.co/Photoroom/prx-512-t2i-sft/resolve/2996423bc26e8eaca48774fac1797484214dfea0/README.md", - "Pinned Photoroom notice names Google T5Gemma 2B-2B UL2 under the Gemma Terms and FLUX.1 Schnell VAE under Apache-2.0. https://huggingface.co/Photoroom/prx-512-t2i-sft/resolve/2996423bc26e8eaca48774fac1797484214dfea0/NOTICE", - "Gemma Terms and use policy. https://ai.google.dev/gemma/terms · https://gemma.ai/resources/prohibited-use/" + "Publisher model terms at https://huggingface.co/jdopensource/JoyAI-Image-Edit-Plus-Diffusers/tree/c2686460c7b64d8aa11bc4d0da423fb316b33f9e" ], "aiGenerated": true, + "humanLikenessConsent": "synthetic", + "marks": [], "requiredAttribution": [ - "LCM DreamShaper v7. https://huggingface.co/SimianLuo/LCM_Dreamshaper_v7/blob/a85df6a8bd976cdd08b4fd8f3b73f229c9e54df5/README.md", - "DreamShaper 7. https://huggingface.co/Lykon/dreamshaper-7", - "Photoroom Inc., PRX 512 SFT. https://huggingface.co/Photoroom/prx-512-t2i-sft/resolve/2996423bc26e8eaca48774fac1797484214dfea0/README.md", - "Google T5Gemma and Black Forest Labs FLUX.1 Schnell VAE component notices. https://huggingface.co/Photoroom/prx-512-t2i-sft/resolve/2996423bc26e8eaca48774fac1797484214dfea0/NOTICE" + "jdopensource/JoyAI-Image-Edit-Plus-Diffusers@c2686460c7b64d8aa11bc4d0da423fb316b33f9e https://huggingface.co/jdopensource/JoyAI-Image-Edit-Plus-Diffusers/tree/c2686460c7b64d8aa11bc4d0da423fb316b33f9e" ], - "assetLicense": "MoDiff-Gallery-Restricted-1.0", - "provenanceTemplateId": "lcm_dawn_alpine_lake" + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "60b01498a2df5f4e4622cdc2f9a43c83d187820780d2425a19718c13707db501", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "joy_plus_lavender_on_limestone" }, { - "path": "template-gallery/longcat_clear_glass_at_the_bookshop.webp", - "sha256": "sha256:bytes:a29ccb40ac98bbda8401abaa2b25b9d61722505188056468ae18e66887f89338", + "path": "template-gallery/joy_plus_terracotta_on_limestone.webp", + "sha256": "sha256:bytes:d5aedb8394ef70b3281ca66760e5f6e693fa4275508010a9fe4d16776ca3baeb", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Exact approved file captured from a saved MoDiff workflow", - "sourceUrl": "https://huggingface.co/meituan-longcat/LongCat-Image-Edit/tree/7b54ef423aa7854be7861600024be5c56ab7875a", - "sourceRevision": "meituan-longcat/LongCat-Image-Edit@7b54ef423aa7854be7861600024be5c56ab7875a", + "sourceUrl": "https://huggingface.co/jdopensource/JoyAI-Image-Edit-Plus-Diffusers/tree/c2686460c7b64d8aa11bc4d0da423fb316b33f9e", + "sourceRevision": "jdopensource/JoyAI-Image-Edit-Plus-Diffusers@c2686460c7b64d8aa11bc4d0da423fb316b33f9e", "sourceLicense": "Maintainer-authorized file with publisher terms retained", "modelTerms": [ - "Publisher model terms at https://huggingface.co/meituan-longcat/LongCat-Image-Edit/tree/7b54ef423aa7854be7861600024be5c56ab7875a" + "Publisher model terms at https://huggingface.co/jdopensource/JoyAI-Image-Edit-Plus-Diffusers/tree/c2686460c7b64d8aa11bc4d0da423fb316b33f9e" ], "aiGenerated": true, "humanLikenessConsent": "synthetic", "marks": [], "requiredAttribution": [ - "meituan-longcat/LongCat-Image-Edit@7b54ef423aa7854be7861600024be5c56ab7875a https://huggingface.co/meituan-longcat/LongCat-Image-Edit/tree/7b54ef423aa7854be7861600024be5c56ab7875a" + "jdopensource/JoyAI-Image-Edit-Plus-Diffusers@c2686460c7b64d8aa11bc4d0da423fb316b33f9e https://huggingface.co/jdopensource/JoyAI-Image-Edit-Plus-Diffusers/tree/c2686460c7b64d8aa11bc4d0da423fb316b33f9e" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "60b01498a2df5f4e4622cdc2f9a43c83d187820780d2425a19718c13707db501", + "humanApprovalPacketSHA256": "d7e2fd301d16eede3da44cec1811930560ba0d958dfd46d8d0962eb3a22eea63", "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", - "provenanceTemplateId": "longcat_clear_glass_at_the_bookshop" + "provenanceTemplateId": "joy_plus_terracotta_on_limestone" }, { - "path": "template-gallery/longcat_florist_end_of_lane.webp", - "sha256": "sha256:bytes:045dec822bcffaf2825dee3118446a536819a518475c78c4573d68dbb498825b", + "path": "template-gallery/joyimage_base_cobalt_paper_band.webp", + "sha256": "sha256:bytes:99fabcac42e8698eb652089bf52698690648937552975d54a68141be9a66b307", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Exact approved file captured from a saved MoDiff workflow", - "sourceUrl": "https://huggingface.co/meituan-longcat/LongCat-Image/tree/d2ea50b79a930074c37b9b97ce45e3b2ea8cf4d8", - "sourceRevision": "meituan-longcat/LongCat-Image@d2ea50b79a930074c37b9b97ce45e3b2ea8cf4d8", + "sourceUrl": "https://huggingface.co/jdopensource/JoyAI-Image-Edit-Diffusers/tree/4b41fb25d961f37668750178ccbb380da326201c", + "sourceRevision": "jdopensource/JoyAI-Image-Edit-Diffusers@4b41fb25d961f37668750178ccbb380da326201c", "sourceLicense": "Maintainer-authorized file with publisher terms retained", "modelTerms": [ - "Publisher model terms at https://huggingface.co/meituan-longcat/LongCat-Image/tree/d2ea50b79a930074c37b9b97ce45e3b2ea8cf4d8" + "Publisher model terms at https://huggingface.co/jdopensource/JoyAI-Image-Edit-Diffusers/tree/4b41fb25d961f37668750178ccbb380da326201c" ], "aiGenerated": true, "humanLikenessConsent": "synthetic", "marks": [], "requiredAttribution": [ - "meituan-longcat/LongCat-Image@d2ea50b79a930074c37b9b97ce45e3b2ea8cf4d8 https://huggingface.co/meituan-longcat/LongCat-Image/tree/d2ea50b79a930074c37b9b97ce45e3b2ea8cf4d8" + "jdopensource/JoyAI-Image-Edit-Diffusers@4b41fb25d961f37668750178ccbb380da326201c https://huggingface.co/jdopensource/JoyAI-Image-Edit-Diffusers/tree/4b41fb25d961f37668750178ccbb380da326201c" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "4fc7c52588176cb1f6ba6d699d08741b2986ea71ea87bac650d261716a10b24c", + "humanApprovalPacketSHA256": "60b01498a2df5f4e4622cdc2f9a43c83d187820780d2425a19718c13707db501", "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", - "provenanceTemplateId": "longcat_florist_end_of_lane" + "provenanceTemplateId": "joyimage_base_cobalt_paper_band" }, { - "path": "template-gallery/longcat_last_tram_at_dusk.wav", - "sha256": "sha256:bytes:6d7e8a05a49b111c59cda0fe69dfb7c5f92fb8e560ae468cf96a16bbd068a78b", + "path": "template-gallery/joyimage_herbarium_rainy_porthole.webp", + "sha256": "sha256:bytes:50213ff01502af1445d1d72618c3614c444931fd94739a53191bd2c36f36e578", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Exact approved file captured from a saved MoDiff workflow", - "sourceUrl": "https://huggingface.co/ruixiangma/LongCat-AudioDiT-1B-Diffusers/tree/f4c063ea37f262ba5e6129ebd80095a6d6a9de4d", - "sourceRevision": "ruixiangma/LongCat-AudioDiT-1B-Diffusers@f4c063ea37f262ba5e6129ebd80095a6d6a9de4d", + "sourceUrl": "https://huggingface.co/jdopensource/JoyAI-Image-Edit-Diffusers/tree/4b41fb25d961f37668750178ccbb380da326201c", + "sourceRevision": "jdopensource/JoyAI-Image-Edit-Diffusers@4b41fb25d961f37668750178ccbb380da326201c", "sourceLicense": "Maintainer-authorized file with publisher terms retained", "modelTerms": [ - "Publisher model terms at https://huggingface.co/ruixiangma/LongCat-AudioDiT-1B-Diffusers/tree/f4c063ea37f262ba5e6129ebd80095a6d6a9de4d" + "Publisher model terms at https://huggingface.co/jdopensource/JoyAI-Image-Edit-Diffusers/tree/4b41fb25d961f37668750178ccbb380da326201c" ], "aiGenerated": true, "humanLikenessConsent": "synthetic", "marks": [], "requiredAttribution": [ - "ruixiangma/LongCat-AudioDiT-1B-Diffusers@f4c063ea37f262ba5e6129ebd80095a6d6a9de4d https://huggingface.co/ruixiangma/LongCat-AudioDiT-1B-Diffusers/tree/f4c063ea37f262ba5e6129ebd80095a6d6a9de4d" + "jdopensource/JoyAI-Image-Edit-Diffusers@4b41fb25d961f37668750178ccbb380da326201c https://huggingface.co/jdopensource/JoyAI-Image-Edit-Diffusers/tree/4b41fb25d961f37668750178ccbb380da326201c" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "15c604ae5df3abed63c95046a78859adb870f415f45c06a99f58ad652fc0dea2", + "humanApprovalPacketSHA256": "4fc7c52588176cb1f6ba6d699d08741b2986ea71ea87bac650d261716a10b24c", "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", - "provenanceTemplateId": "longcat_last_tram_at_dusk" + "provenanceTemplateId": "joyimage_herbarium_rainy_porthole" }, { - "creatorOrRightsholder": "MoDiff project maintainers, subject to source/model terms", - "creationMethod": "AI-generated original text-to-image Gallery example", - "sourceUrl": "https://huggingface.co/Tongyi-MAI/Z-Image-Turbo/tree/f332072aa78be7aecdf3ee76d5c247082da564a6", - "sourceRevision": "Tongyi-MAI/Z-Image-Turbo@f332072aa78be7aecdf3ee76d5c247082da564a6", - "sourceLicense": "Original project generation; see pinned model and adapter terms", + "path": "template-gallery/kandinsky3_ginkgo_on_slate.webp", + "sha256": "sha256:bytes:4b33c6b278e6c9f036ee8f4a11fe6dd4dab58ad385407f844b1f0bb609557ab4", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Exact approved file captured from a saved MoDiff workflow", + "sourceUrl": "https://huggingface.co/kandinsky-community/kandinsky-3/tree/bf79e6c219da8a94abb50235fdc4567eb8fb4632", + "sourceRevision": "kandinsky-community/kandinsky-3@bf79e6c219da8a94abb50235fdc4567eb8fb4632", + "sourceLicense": "Maintainer-authorized file with publisher terms retained", "modelTerms": [ - "Tongyi-MAI/Z-Image-Turbo: Apache-2.0; https://huggingface.co/Tongyi-MAI/Z-Image-Turbo/tree/f332072aa78be7aecdf3ee76d5c247082da564a6" + "Publisher model terms at https://huggingface.co/kandinsky-community/kandinsky-3/tree/bf79e6c219da8a94abb50235fdc4567eb8fb4632" ], "aiGenerated": true, "humanLikenessConsent": "synthetic", "marks": [], - "requiredAttribution": [], - "path": "template-gallery/low_vram.webp", - "sha256": "sha256:bytes:a69d58bfa342f850d807690080ca9aac583ca9fb69115e55904de315f71938e1", - "publishDecision": "approved", - "holdReason": null, + "requiredAttribution": [ + "kandinsky-community/kandinsky-3@bf79e6c219da8a94abb50235fdc4567eb8fb4632 https://huggingface.co/kandinsky-community/kandinsky-3/tree/bf79e6c219da8a94abb50235fdc4567eb8fb4632" + ], "assetLicense": "Apache-2.0", - "reviewedBy": "SOURAV DAS", - "reviewedAt": "2026-11-09", - "reviewClass": "per-file-human-approved-six-z-registration", - "humanApprovalPacketSHA256": "9b728a5f8535fc1ba3c03d2e2759d7ac795a586fafab51beb1509379ed388934", - "provenanceTemplateId": "low_vram" + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-24", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "d216f065bdc316366c6183592f657bcfbbd7cb05acd0e510c6b3877fe56bcec2", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped six saved cases with model terms retained.", + "provenanceTemplateId": "kandinsky3_ginkgo_on_slate" }, { - "path": "template-gallery/ltx_video_animated_story.card-poster.png", - "sha256": "sha256:bytes:fcd07a3c5a3e8df1890f1dd98f72746a67025a7bf3c4f6559026b24a8afa445c", + "path": "template-gallery/kandinsky3_smoked_glass_on_limestone.webp", + "sha256": "sha256:bytes:77d55b454e684b69306ae806b31911750ae496888e58c85c1d896a5f222b71dd", "publishDecision": "approved", "holdReason": null, - "creatorOrRightsholder": "MoDiff project maintainers, subject to the recorded source and model terms", - "creationMethod": "AI-generated Gallery media or deterministic derivative", - "sourceUrl": "https://huggingface.co/Lightricks/LTX-Video-0.9.8-13B-distilled/tree/7c64400e1861cc0d7b98d570a1926d5408ec60cd", - "sourceRevision": "Lightricks/LTX-Video-0.9.8-13B-distilled@7c64400e1861cc0d7b98d570a1926d5408ec60cd | nateraw/real-esrgan@42efb9c3eeed1f5c0c8a626cf5f7f4481dfbb094", - "sourceLicense": "Original generation or recorded workflow input; see modelTerms", + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Exact approved file captured from a saved MoDiff workflow", + "sourceUrl": "https://huggingface.co/kandinsky-community/kandinsky-3/tree/bf79e6c219da8a94abb50235fdc4567eb8fb4632", + "sourceRevision": "kandinsky-community/kandinsky-3@bf79e6c219da8a94abb50235fdc4567eb8fb4632", + "sourceLicense": "Maintainer-authorized file with publisher terms retained", "modelTerms": [ - "Lightricks/LTX-Video-0.9.8-13B-distilled: LTXV Open Weights License 0.X; https://huggingface.co/Lightricks/LTX-Video-0.9.8-13B-distilled/tree/7c64400e1861cc0d7b98d570a1926d5408ec60cd", - "nateraw/real-esrgan: BSD-3-Clause; https://huggingface.co/nateraw/real-esrgan/tree/42efb9c3eeed1f5c0c8a626cf5f7f4481dfbb094" + "Publisher model terms at https://huggingface.co/kandinsky-community/kandinsky-3/tree/bf79e6c219da8a94abb50235fdc4567eb8fb4632" ], "aiGenerated": true, "humanLikenessConsent": "synthetic", "marks": [], - "requiredAttribution": [], - "assetLicense": "MoDiff-Gallery-Restricted-1.0", - "reviewedBy": "SOURAV DAS", - "reviewedAt": "2026-08-03", - "reviewClass": "standard-human-attestation", - "provenanceTemplateId": "ltx_video_animated_story" + "requiredAttribution": [ + "kandinsky-community/kandinsky-3@bf79e6c219da8a94abb50235fdc4567eb8fb4632 https://huggingface.co/kandinsky-community/kandinsky-3/tree/bf79e6c219da8a94abb50235fdc4567eb8fb4632" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "60b01498a2df5f4e4622cdc2f9a43c83d187820780d2425a19718c13707db501", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "kandinsky3_smoked_glass_on_limestone" }, { - "creatorOrRightsholder": "MoDiff project maintainers, subject to the approved synthetic source and recorded model terms", - "creationMethod": "Maintainer-accepted native local AI-generated output or deterministic poster/card derivative; original full media is unchanged", - "sourceUrl": "https://huggingface.co/Lightricks/LTX-Video-0.9.8-13B-distilled/tree/7c64400e1861cc0d7b98d570a1926d5408ec60cd", - "sourceRevision": "Lightricks/LTX-Video-0.9.8-13B-distilled@7c64400e1861cc0d7b98d570a1926d5408ec60cd | nateraw/real-esrgan@42efb9c3eeed1f5c0c8a626cf5f7f4481dfbb094", - "sourceLicense": "Generated media; retained model and output terms apply", + "path": "template-gallery/kontext_wide_water_alpine_ridge.webp", + "sha256": "sha256:bytes:18090bf07900510b2d99c7c4ab38b9e38dc680fe437def20b2ce7297265db4b8", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Exact approved file captured from a saved MoDiff workflow", + "sourceUrl": "https://huggingface.co/black-forest-labs/FLUX.1-Kontext-dev/tree/24e9dedc4ef646698dc8eb4e18ae2cec3c9fea0d", + "sourceRevision": "black-forest-labs/FLUX.1-Kontext-dev@24e9dedc4ef646698dc8eb4e18ae2cec3c9fea0d", + "sourceLicense": "Maintainer-authorized file with publisher terms retained", "modelTerms": [ - "Lightricks/LTX-Video-0.9.8-13B-distilled: LTX-Video Open Weights License and output provisions; https://huggingface.co/Lightricks/LTX-Video-0.9.8-13B-distilled/tree/7c64400e1861cc0d7b98d570a1926d5408ec60cd", - "nateraw/real-esrgan: BSD-3-Clause model terms; https://huggingface.co/nateraw/real-esrgan/tree/42efb9c3eeed1f5c0c8a626cf5f7f4481dfbb094" + "Publisher model terms at https://huggingface.co/black-forest-labs/FLUX.1-Kontext-dev/tree/24e9dedc4ef646698dc8eb4e18ae2cec3c9fea0d" ], "aiGenerated": true, - "humanLikenessConsent": "not-applicable", + "humanLikenessConsent": "synthetic", "marks": [], - "requiredAttribution": [], + "requiredAttribution": [ + "black-forest-labs/FLUX.1-Kontext-dev@24e9dedc4ef646698dc8eb4e18ae2cec3c9fea0d https://huggingface.co/black-forest-labs/FLUX.1-Kontext-dev/tree/24e9dedc4ef646698dc8eb4e18ae2cec3c9fea0d" + ], "assetLicense": "Apache-2.0", - "path": "template-gallery/ltx_video_animated_story.card-preview.mp4", - "sha256": "sha256:bytes:54935c2d3e0db8f926e05f7aacc8bc025f2c1d589951533d5aa32aab1a5e6f1d", - "publishDecision": "approved", - "holdReason": null, - "reviewedBy": "SOURAV DAS", - "reviewedAt": "2026-11-15", - "reviewClass": "per-file-maintainer-accepted-native-seven-registration", - "humanApprovalPacketSHA256": "95c7c2ed080c3d618db1701b066724660595337460c46df8305b50810783eaa3", - "publicationBasis": "these are approved, you can register them", - "provenanceTemplateId": "ltx_video_animated_story" + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "60b01498a2df5f4e4622cdc2f9a43c83d187820780d2425a19718c13707db501", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "kontext_wide_water_alpine_ridge" }, { - "creatorOrRightsholder": "MoDiff project maintainers, subject to the approved synthetic source and recorded model terms", - "creationMethod": "Maintainer-accepted native local AI-generated output or deterministic poster/card derivative; original full media is unchanged", - "sourceUrl": "https://huggingface.co/Lightricks/LTX-Video-0.9.8-13B-distilled/tree/7c64400e1861cc0d7b98d570a1926d5408ec60cd", - "sourceRevision": "Lightricks/LTX-Video-0.9.8-13B-distilled@7c64400e1861cc0d7b98d570a1926d5408ec60cd | nateraw/real-esrgan@42efb9c3eeed1f5c0c8a626cf5f7f4481dfbb094", - "sourceLicense": "Generated media; retained model and output terms apply", + "creatorOrRightsholder": "MoDiff project maintainers, subject to previously approved synthetic source rights and recorded model terms", + "creationMethod": "Native local AI-generated output or exact deterministic layer-sheet derivative; original approved bytes retained", + "sourceUrl": "https://huggingface.co/Qwen/Qwen-Image-Layered/tree/8f0ca708dfff6ba1dd5f2d85d78f8c108a040bcf", + "sourceRevision": "Qwen/Qwen-Image-Layered@8f0ca708dfff6ba1dd5f2d85d78f8c108a040bcf", + "sourceLicense": "Generated output and approved synthetic input; retained model terms apply", "modelTerms": [ - "Lightricks/LTX-Video-0.9.8-13B-distilled: LTX-Video Open Weights License and output provisions; https://huggingface.co/Lightricks/LTX-Video-0.9.8-13B-distilled/tree/7c64400e1861cc0d7b98d570a1926d5408ec60cd", - "nateraw/real-esrgan: BSD-3-Clause model terms; https://huggingface.co/nateraw/real-esrgan/tree/42efb9c3eeed1f5c0c8a626cf5f7f4481dfbb094" + "Qwen/Qwen-Image-Layered: Apache-2.0; https://huggingface.co/Qwen/Qwen-Image-Layered/tree/8f0ca708dfff6ba1dd5f2d85d78f8c108a040bcf" ], "aiGenerated": true, - "humanLikenessConsent": "not-applicable", + "humanLikenessConsent": "synthetic", "marks": [], "requiredAttribution": [], - "assetLicense": "Apache-2.0", - "path": "template-gallery/ltx_video_animated_story.mp4", - "sha256": "sha256:bytes:ca548363a0a64ea2011eb0e63e3fd65383c3e8fbbb6fa32126044c13720246f7", + "publicationBasis": "Existing maintainer publication authorization and current explicit instruction to register these three accepted assets; no new ownership or rights quotation is fabricated.", + "path": "template-gallery/layers/qwen_layered_portrait.native-layer-00.webp", + "sha256": "sha256:bytes:ba904a37ab5bc2905458dfab79179aba4c268bcf409aa0444549664797eb5dea", "publishDecision": "approved", "holdReason": null, - "reviewedBy": "SOURAV DAS", - "reviewedAt": "2026-11-15", - "reviewClass": "per-file-maintainer-accepted-native-seven-registration", - "humanApprovalPacketSHA256": "95c7c2ed080c3d618db1701b066724660595337460c46df8305b50810783eaa3", - "publicationBasis": "these are approved, you can register them", - "provenanceTemplateId": "ltx_video_animated_story" + "assetLicense": "Apache-2.0", + "reviewedBy": "maintainer (current user)", + "reviewedAt": "2026-11-12", + "reviewClass": "per-file-maintainer-accepted-native-three-registration", + "humanApprovalPacketSHA256": "69c6b3d9b0ea2fcca16ee538f6e75b414b7141658b74f10578758e61360f63fd", + "provenanceTemplateId": "qwen_layered_portrait" }, { - "creatorOrRightsholder": "MoDiff project maintainers, subject to the approved synthetic source and recorded model terms", - "creationMethod": "Maintainer-accepted native local AI-generated output or deterministic poster/card derivative; original full media is unchanged", - "sourceUrl": "https://huggingface.co/Lightricks/LTX-Video-0.9.8-13B-distilled/tree/7c64400e1861cc0d7b98d570a1926d5408ec60cd", - "sourceRevision": "Lightricks/LTX-Video-0.9.8-13B-distilled@7c64400e1861cc0d7b98d570a1926d5408ec60cd | nateraw/real-esrgan@42efb9c3eeed1f5c0c8a626cf5f7f4481dfbb094", - "sourceLicense": "Generated media; retained model and output terms apply", + "creatorOrRightsholder": "MoDiff project maintainers, subject to previously approved synthetic source rights and recorded model terms", + "creationMethod": "Native local AI-generated output or exact deterministic layer-sheet derivative; original approved bytes retained", + "sourceUrl": "https://huggingface.co/Qwen/Qwen-Image-Layered/tree/8f0ca708dfff6ba1dd5f2d85d78f8c108a040bcf", + "sourceRevision": "Qwen/Qwen-Image-Layered@8f0ca708dfff6ba1dd5f2d85d78f8c108a040bcf", + "sourceLicense": "Generated output and approved synthetic input; retained model terms apply", "modelTerms": [ - "Lightricks/LTX-Video-0.9.8-13B-distilled: LTX-Video Open Weights License and output provisions; https://huggingface.co/Lightricks/LTX-Video-0.9.8-13B-distilled/tree/7c64400e1861cc0d7b98d570a1926d5408ec60cd", - "nateraw/real-esrgan: BSD-3-Clause model terms; https://huggingface.co/nateraw/real-esrgan/tree/42efb9c3eeed1f5c0c8a626cf5f7f4481dfbb094" + "Qwen/Qwen-Image-Layered: Apache-2.0; https://huggingface.co/Qwen/Qwen-Image-Layered/tree/8f0ca708dfff6ba1dd5f2d85d78f8c108a040bcf" ], "aiGenerated": true, - "humanLikenessConsent": "not-applicable", + "humanLikenessConsent": "synthetic", "marks": [], "requiredAttribution": [], - "assetLicense": "Apache-2.0", - "path": "template-gallery/ltx_video_animated_story.poster.png", - "sha256": "sha256:bytes:969f826c9943ba6c4e07507995d12566e9d31d7e32e47e1498f8d4697cb9a223", + "publicationBasis": "Existing maintainer publication authorization and current explicit instruction to register these three accepted assets; no new ownership or rights quotation is fabricated.", + "path": "template-gallery/layers/qwen_layered_portrait.native-layer-01.webp", + "sha256": "sha256:bytes:abb3ae59bfd0395c477d2e20c7725ba75e4acef318f030cb0adb98837639e898", "publishDecision": "approved", "holdReason": null, - "reviewedBy": "SOURAV DAS", - "reviewedAt": "2026-11-15", - "reviewClass": "per-file-maintainer-accepted-native-seven-registration", - "humanApprovalPacketSHA256": "95c7c2ed080c3d618db1701b066724660595337460c46df8305b50810783eaa3", - "publicationBasis": "these are approved, you can register them", - "provenanceTemplateId": "ltx_video_animated_story" + "assetLicense": "Apache-2.0", + "reviewedBy": "maintainer (current user)", + "reviewedAt": "2026-11-12", + "reviewClass": "per-file-maintainer-accepted-native-three-registration", + "humanApprovalPacketSHA256": "69c6b3d9b0ea2fcca16ee538f6e75b414b7141658b74f10578758e61360f63fd", + "provenanceTemplateId": "qwen_layered_portrait" }, { - "path": "template-gallery/ltx_video_image_to_video.card-preview.mp4", - "sha256": "sha256:bytes:2effe668f4ad43f9b4780400581d282aee66714d8450eb999787a1c29338aea0", - "publishDecision": "approved", - "holdReason": null, - "creatorOrRightsholder": "MoDiff project maintainers", - "creationMethod": "Maintainer-accepted native MoDiff output or its deterministic Gallery preview", - "sourceUrl": "https://huggingface.co/Lightricks/LTX-Video-0.9.8-13B-distilled/tree/7c64400e1861cc0d7b98d570a1926d5408ec60cd", - "sourceRevision": "Lightricks/LTX-Video-0.9.8-13B-distilled@7c64400e1861cc0d7b98d570a1926d5408ec60cd | nateraw/real-esrgan@42efb9c3eeed1f5c0c8a626cf5f7f4481dfbb094", - "sourceLicense": "Original generation or recorded workflow input; see modelTerms", + "creatorOrRightsholder": "MoDiff project maintainers, subject to previously approved synthetic source rights and recorded model terms", + "creationMethod": "Native local AI-generated output or exact deterministic layer-sheet derivative; original approved bytes retained", + "sourceUrl": "https://huggingface.co/Qwen/Qwen-Image-Layered/tree/8f0ca708dfff6ba1dd5f2d85d78f8c108a040bcf", + "sourceRevision": "Qwen/Qwen-Image-Layered@8f0ca708dfff6ba1dd5f2d85d78f8c108a040bcf", + "sourceLicense": "Generated output and approved synthetic input; retained model terms apply", "modelTerms": [ - "Lightricks/LTX-Video-0.9.8-13B-distilled: LTXV Open Weights License 0.X; https://huggingface.co/Lightricks/LTX-Video-0.9.8-13B-distilled/tree/7c64400e1861cc0d7b98d570a1926d5408ec60cd", - "nateraw/real-esrgan: BSD-3-Clause; https://huggingface.co/nateraw/real-esrgan/tree/42efb9c3eeed1f5c0c8a626cf5f7f4481dfbb094" + "Qwen/Qwen-Image-Layered: Apache-2.0; https://huggingface.co/Qwen/Qwen-Image-Layered/tree/8f0ca708dfff6ba1dd5f2d85d78f8c108a040bcf" ], "aiGenerated": true, "humanLikenessConsent": "synthetic", "marks": [], "requiredAttribution": [], + "publicationBasis": "Existing maintainer publication authorization and current explicit instruction to register these three accepted assets; no new ownership or rights quotation is fabricated.", + "path": "template-gallery/layers/qwen_layered_portrait.native-layer-02.webp", + "sha256": "sha256:bytes:4ad39d3025e3421834d92b32ab5e1e49e4a3ce79602acf614758514f78e6db33", + "publishDecision": "approved", + "holdReason": null, "assetLicense": "Apache-2.0", - "reviewedBy": "SOURAV DAS", - "reviewedAt": "2026-11-10", - "reviewClass": "per-file-maintainer-accepted-native-gallery-registration", - "provenanceTemplateId": "ltx_video_image_to_video", - "sourceRightsAttestation": "The maintainer accepted the exact review-gallery asset and expressly requested its registration.", - "acceptedOutputSHA256": "e8804713f41d641d6be227d6d2a2603a1ad17f33164e4a10fa1877101dbe4056", - "humanApprovalPacketSHA256": "73ddf9ea7fc27eccc6b93817809421a008ce0fd2fb3080ffbdc5831a09205304" + "reviewedBy": "maintainer (current user)", + "reviewedAt": "2026-11-12", + "reviewClass": "per-file-maintainer-accepted-native-three-registration", + "humanApprovalPacketSHA256": "69c6b3d9b0ea2fcca16ee538f6e75b414b7141658b74f10578758e61360f63fd", + "provenanceTemplateId": "qwen_layered_portrait" }, { - "path": "template-gallery/ltx_video_image_to_video.mp4", - "sha256": "sha256:bytes:e8804713f41d641d6be227d6d2a2603a1ad17f33164e4a10fa1877101dbe4056", - "publishDecision": "approved", - "holdReason": null, - "creatorOrRightsholder": "MoDiff project maintainers", - "creationMethod": "Maintainer-accepted native MoDiff output or its deterministic Gallery preview", - "sourceUrl": "https://huggingface.co/Lightricks/LTX-Video-0.9.8-13B-distilled/tree/7c64400e1861cc0d7b98d570a1926d5408ec60cd", - "sourceRevision": "Lightricks/LTX-Video-0.9.8-13B-distilled@7c64400e1861cc0d7b98d570a1926d5408ec60cd | nateraw/real-esrgan@42efb9c3eeed1f5c0c8a626cf5f7f4481dfbb094", - "sourceLicense": "Original generation or recorded workflow input; see modelTerms", + "creatorOrRightsholder": "MoDiff project maintainers, subject to previously approved synthetic source rights and recorded model terms", + "creationMethod": "Native local AI-generated output or exact deterministic layer-sheet derivative; original approved bytes retained", + "sourceUrl": "https://huggingface.co/Qwen/Qwen-Image-Layered/tree/8f0ca708dfff6ba1dd5f2d85d78f8c108a040bcf", + "sourceRevision": "Qwen/Qwen-Image-Layered@8f0ca708dfff6ba1dd5f2d85d78f8c108a040bcf", + "sourceLicense": "Generated output and approved synthetic input; retained model terms apply", "modelTerms": [ - "Lightricks/LTX-Video-0.9.8-13B-distilled: LTXV Open Weights License 0.X; https://huggingface.co/Lightricks/LTX-Video-0.9.8-13B-distilled/tree/7c64400e1861cc0d7b98d570a1926d5408ec60cd", - "nateraw/real-esrgan: BSD-3-Clause; https://huggingface.co/nateraw/real-esrgan/tree/42efb9c3eeed1f5c0c8a626cf5f7f4481dfbb094" + "Qwen/Qwen-Image-Layered: Apache-2.0; https://huggingface.co/Qwen/Qwen-Image-Layered/tree/8f0ca708dfff6ba1dd5f2d85d78f8c108a040bcf" ], "aiGenerated": true, "humanLikenessConsent": "synthetic", "marks": [], "requiredAttribution": [], + "publicationBasis": "Existing maintainer publication authorization and current explicit instruction to register these three accepted assets; no new ownership or rights quotation is fabricated.", + "path": "template-gallery/layers/qwen_layered_portrait.preview-layer-00.png", + "sha256": "sha256:bytes:b9decdea3edb455655594b73d42e5c053f961500e7ff7d65367a2ca855692c87", + "publishDecision": "approved", + "holdReason": null, "assetLicense": "Apache-2.0", - "reviewedBy": "SOURAV DAS", - "reviewedAt": "2026-11-10", - "reviewClass": "per-file-maintainer-accepted-native-gallery-registration", - "provenanceTemplateId": "ltx_video_image_to_video", - "sourceRightsAttestation": "The maintainer accepted the exact review-gallery asset and expressly requested its registration.", - "acceptedOutputSHA256": "e8804713f41d641d6be227d6d2a2603a1ad17f33164e4a10fa1877101dbe4056", - "humanApprovalPacketSHA256": "73ddf9ea7fc27eccc6b93817809421a008ce0fd2fb3080ffbdc5831a09205304" + "reviewedBy": "maintainer (current user)", + "reviewedAt": "2026-11-12", + "reviewClass": "per-file-maintainer-accepted-native-three-registration", + "humanApprovalPacketSHA256": "69c6b3d9b0ea2fcca16ee538f6e75b414b7141658b74f10578758e61360f63fd", + "provenanceTemplateId": "qwen_layered_portrait" }, { - "path": "template-gallery/ltx_video_image_to_video.poster.png", - "sha256": "sha256:bytes:eb63789359a844687ed56687ed0ead528c0845bf98631117d8cac28af0c58ad0", - "publishDecision": "approved", - "holdReason": null, - "creatorOrRightsholder": "MoDiff project maintainers", - "creationMethod": "Maintainer-accepted native MoDiff output or its deterministic Gallery preview", - "sourceUrl": "https://huggingface.co/Lightricks/LTX-Video-0.9.8-13B-distilled/tree/7c64400e1861cc0d7b98d570a1926d5408ec60cd", - "sourceRevision": "Lightricks/LTX-Video-0.9.8-13B-distilled@7c64400e1861cc0d7b98d570a1926d5408ec60cd | nateraw/real-esrgan@42efb9c3eeed1f5c0c8a626cf5f7f4481dfbb094", - "sourceLicense": "Original generation or recorded workflow input; see modelTerms", + "creatorOrRightsholder": "MoDiff project maintainers, subject to previously approved synthetic source rights and recorded model terms", + "creationMethod": "Native local AI-generated output or exact deterministic layer-sheet derivative; original approved bytes retained", + "sourceUrl": "https://huggingface.co/Qwen/Qwen-Image-Layered/tree/8f0ca708dfff6ba1dd5f2d85d78f8c108a040bcf", + "sourceRevision": "Qwen/Qwen-Image-Layered@8f0ca708dfff6ba1dd5f2d85d78f8c108a040bcf", + "sourceLicense": "Generated output and approved synthetic input; retained model terms apply", "modelTerms": [ - "Lightricks/LTX-Video-0.9.8-13B-distilled: LTXV Open Weights License 0.X; https://huggingface.co/Lightricks/LTX-Video-0.9.8-13B-distilled/tree/7c64400e1861cc0d7b98d570a1926d5408ec60cd", - "nateraw/real-esrgan: BSD-3-Clause; https://huggingface.co/nateraw/real-esrgan/tree/42efb9c3eeed1f5c0c8a626cf5f7f4481dfbb094" + "Qwen/Qwen-Image-Layered: Apache-2.0; https://huggingface.co/Qwen/Qwen-Image-Layered/tree/8f0ca708dfff6ba1dd5f2d85d78f8c108a040bcf" ], "aiGenerated": true, "humanLikenessConsent": "synthetic", "marks": [], "requiredAttribution": [], + "publicationBasis": "Existing maintainer publication authorization and current explicit instruction to register these three accepted assets; no new ownership or rights quotation is fabricated.", + "path": "template-gallery/layers/qwen_layered_portrait.preview-layer-01.png", + "sha256": "sha256:bytes:52756ca48a3b51ccb16dc4859207a89cf7c2e38ccc4c0efc325f77718eaeb645", + "publishDecision": "approved", + "holdReason": null, "assetLicense": "Apache-2.0", - "reviewedBy": "SOURAV DAS", - "reviewedAt": "2026-11-10", - "reviewClass": "per-file-maintainer-accepted-native-gallery-registration", - "provenanceTemplateId": "ltx_video_image_to_video", - "sourceRightsAttestation": "The maintainer accepted the exact review-gallery asset and expressly requested its registration.", - "acceptedOutputSHA256": "e8804713f41d641d6be227d6d2a2603a1ad17f33164e4a10fa1877101dbe4056", - "humanApprovalPacketSHA256": "73ddf9ea7fc27eccc6b93817809421a008ce0fd2fb3080ffbdc5831a09205304" + "reviewedBy": "maintainer (current user)", + "reviewedAt": "2026-11-12", + "reviewClass": "per-file-maintainer-accepted-native-three-registration", + "humanApprovalPacketSHA256": "69c6b3d9b0ea2fcca16ee538f6e75b414b7141658b74f10578758e61360f63fd", + "provenanceTemplateId": "qwen_layered_portrait" }, { - "path": "template-gallery/ltx_video_long_showcase.card-poster.png", - "sha256": "sha256:bytes:a0b0f93ebf1558f7a8b7c96bb2024bdb55909a54c1362d9d1027ccc24614bdd5", - "publishDecision": "approved", - "holdReason": null, - "creatorOrRightsholder": "MoDiff project maintainers, subject to the recorded source and model terms", - "creationMethod": "AI-generated Gallery media or deterministic derivative", - "sourceUrl": "https://huggingface.co/Lightricks/LTX-Video-0.9.8-13B-distilled/tree/7c64400e1861cc0d7b98d570a1926d5408ec60cd", - "sourceRevision": "Lightricks/LTX-Video-0.9.8-13B-distilled@7c64400e1861cc0d7b98d570a1926d5408ec60cd | nateraw/real-esrgan@42efb9c3eeed1f5c0c8a626cf5f7f4481dfbb094", - "sourceLicense": "Original generation or recorded workflow input; see modelTerms", + "creatorOrRightsholder": "MoDiff project maintainers, subject to previously approved synthetic source rights and recorded model terms", + "creationMethod": "Native local AI-generated output or exact deterministic layer-sheet derivative; original approved bytes retained", + "sourceUrl": "https://huggingface.co/Qwen/Qwen-Image-Layered/tree/8f0ca708dfff6ba1dd5f2d85d78f8c108a040bcf", + "sourceRevision": "Qwen/Qwen-Image-Layered@8f0ca708dfff6ba1dd5f2d85d78f8c108a040bcf", + "sourceLicense": "Generated output and approved synthetic input; retained model terms apply", "modelTerms": [ - "Lightricks/LTX-Video-0.9.8-13B-distilled: LTXV Open Weights License 0.X; https://huggingface.co/Lightricks/LTX-Video-0.9.8-13B-distilled/tree/7c64400e1861cc0d7b98d570a1926d5408ec60cd", - "nateraw/real-esrgan: BSD-3-Clause; https://huggingface.co/nateraw/real-esrgan/tree/42efb9c3eeed1f5c0c8a626cf5f7f4481dfbb094" + "Qwen/Qwen-Image-Layered: Apache-2.0; https://huggingface.co/Qwen/Qwen-Image-Layered/tree/8f0ca708dfff6ba1dd5f2d85d78f8c108a040bcf" ], "aiGenerated": true, "humanLikenessConsent": "synthetic", "marks": [], "requiredAttribution": [], - "assetLicense": "MoDiff-Gallery-Restricted-1.0", - "reviewedBy": "SOURAV DAS", - "reviewedAt": "2026-08-03", - "reviewClass": "standard-human-attestation", - "provenanceTemplateId": "ltx_video_long_showcase" + "publicationBasis": "Existing maintainer publication authorization and current explicit instruction to register these three accepted assets; no new ownership or rights quotation is fabricated.", + "path": "template-gallery/layers/qwen_layered_portrait.preview-layer-02.png", + "sha256": "sha256:bytes:58cb19db09e8bfd29a74ce6edb8d7485960abb298659ec8826d4d8ebcc62930a", + "publishDecision": "approved", + "holdReason": null, + "assetLicense": "Apache-2.0", + "reviewedBy": "maintainer (current user)", + "reviewedAt": "2026-11-12", + "reviewClass": "per-file-maintainer-accepted-native-three-registration", + "humanApprovalPacketSHA256": "69c6b3d9b0ea2fcca16ee538f6e75b414b7141658b74f10578758e61360f63fd", + "provenanceTemplateId": "qwen_layered_portrait" }, { - "creatorOrRightsholder": "MoDiff project maintainers, subject to the approved synthetic source and recorded model terms", - "creationMethod": "Maintainer-accepted native local AI-generated output or deterministic poster/card derivative; original full media is unchanged", - "sourceUrl": "https://huggingface.co/Lightricks/LTX-Video-0.9.8-13B-distilled/tree/7c64400e1861cc0d7b98d570a1926d5408ec60cd", - "sourceRevision": "Lightricks/LTX-Video-0.9.8-13B-distilled@7c64400e1861cc0d7b98d570a1926d5408ec60cd | nateraw/real-esrgan@42efb9c3eeed1f5c0c8a626cf5f7f4481dfbb094", - "sourceLicense": "Generated media; retained model and output terms apply", + "path": "template-gallery/layers/qwen_layered_sunset_and_peaks.layer-1.webp", + "sha256": "sha256:bytes:16ffd9f4a965c95164e51c9ee9d72295bc618972d3c67fb837c2df259187682c", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Exact approved file captured from a saved MoDiff workflow", + "sourceUrl": "https://huggingface.co/Qwen/Qwen-Image-Layered/tree/8f0ca708dfff6ba1dd5f2d85d78f8c108a040bcf", + "sourceRevision": "Qwen/Qwen-Image-Layered@8f0ca708dfff6ba1dd5f2d85d78f8c108a040bcf", + "sourceLicense": "Maintainer-authorized file with publisher terms retained", "modelTerms": [ - "Lightricks/LTX-Video-0.9.8-13B-distilled: LTX-Video Open Weights License and output provisions; https://huggingface.co/Lightricks/LTX-Video-0.9.8-13B-distilled/tree/7c64400e1861cc0d7b98d570a1926d5408ec60cd", - "nateraw/real-esrgan: BSD-3-Clause model terms; https://huggingface.co/nateraw/real-esrgan/tree/42efb9c3eeed1f5c0c8a626cf5f7f4481dfbb094" + "https://huggingface.co/Qwen/Qwen-Image-Layered/blob/8f0ca708dfff6ba1dd5f2d85d78f8c108a040bcf/README.md" ], "aiGenerated": true, - "humanLikenessConsent": "not-applicable", + "humanLikenessConsent": "synthetic", "marks": [], - "requiredAttribution": [], + "requiredAttribution": [ + "Qwen/Qwen-Image-Layered@8f0ca708dfff6ba1dd5f2d85d78f8c108a040bcf https://huggingface.co/Qwen/Qwen-Image-Layered/tree/8f0ca708dfff6ba1dd5f2d85d78f8c108a040bcf" + ], "assetLicense": "Apache-2.0", - "path": "template-gallery/ltx_video_long_showcase.card-preview.mp4", - "sha256": "sha256:bytes:0dc4052d30ff6e11c31ba7ee869d14570739462e01426b6830d9e62c8e5379c7", - "publishDecision": "approved", - "holdReason": null, - "reviewedBy": "SOURAV DAS", - "reviewedAt": "2026-11-15", - "reviewClass": "per-file-maintainer-accepted-native-seven-registration", - "humanApprovalPacketSHA256": "95c7c2ed080c3d618db1701b066724660595337460c46df8305b50810783eaa3", - "publicationBasis": "these are approved, you can register them", - "provenanceTemplateId": "ltx_video_long_showcase" + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "b16dfc2b7c1c32272b8f79bc1bffbb60376e63f8cf1ab9d0bdf9aea07cccf5cd", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "qwen_layered_sunset_and_peaks" }, { - "creatorOrRightsholder": "MoDiff project maintainers, subject to the approved synthetic source and recorded model terms", - "creationMethod": "Maintainer-accepted native local AI-generated output or deterministic poster/card derivative; original full media is unchanged", - "sourceUrl": "https://huggingface.co/Lightricks/LTX-Video-0.9.8-13B-distilled/tree/7c64400e1861cc0d7b98d570a1926d5408ec60cd", - "sourceRevision": "Lightricks/LTX-Video-0.9.8-13B-distilled@7c64400e1861cc0d7b98d570a1926d5408ec60cd | nateraw/real-esrgan@42efb9c3eeed1f5c0c8a626cf5f7f4481dfbb094", - "sourceLicense": "Generated media; retained model and output terms apply", + "path": "template-gallery/layers/qwen_layered_sunset_and_peaks.layer-2.webp", + "sha256": "sha256:bytes:866609c2307a1f016cac7eefc56401491f58a2e2d57abf0c20b6bdb0f9da057f", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Exact approved file captured from a saved MoDiff workflow", + "sourceUrl": "https://huggingface.co/Qwen/Qwen-Image-Layered/tree/8f0ca708dfff6ba1dd5f2d85d78f8c108a040bcf", + "sourceRevision": "Qwen/Qwen-Image-Layered@8f0ca708dfff6ba1dd5f2d85d78f8c108a040bcf", + "sourceLicense": "Maintainer-authorized file with publisher terms retained", "modelTerms": [ - "Lightricks/LTX-Video-0.9.8-13B-distilled: LTX-Video Open Weights License and output provisions; https://huggingface.co/Lightricks/LTX-Video-0.9.8-13B-distilled/tree/7c64400e1861cc0d7b98d570a1926d5408ec60cd", - "nateraw/real-esrgan: BSD-3-Clause model terms; https://huggingface.co/nateraw/real-esrgan/tree/42efb9c3eeed1f5c0c8a626cf5f7f4481dfbb094" + "https://huggingface.co/Qwen/Qwen-Image-Layered/blob/8f0ca708dfff6ba1dd5f2d85d78f8c108a040bcf/README.md" ], "aiGenerated": true, - "humanLikenessConsent": "not-applicable", + "humanLikenessConsent": "synthetic", "marks": [], - "requiredAttribution": [], + "requiredAttribution": [ + "Qwen/Qwen-Image-Layered@8f0ca708dfff6ba1dd5f2d85d78f8c108a040bcf https://huggingface.co/Qwen/Qwen-Image-Layered/tree/8f0ca708dfff6ba1dd5f2d85d78f8c108a040bcf" + ], "assetLicense": "Apache-2.0", - "path": "template-gallery/ltx_video_long_showcase.mp4", - "sha256": "sha256:bytes:ba1614fa9b86accd706d8fbc6c92818c43c058f9343cd97431711a47d9bef609", - "publishDecision": "approved", - "holdReason": null, - "reviewedBy": "SOURAV DAS", - "reviewedAt": "2026-11-15", - "reviewClass": "per-file-maintainer-accepted-native-seven-registration", - "humanApprovalPacketSHA256": "95c7c2ed080c3d618db1701b066724660595337460c46df8305b50810783eaa3", - "publicationBasis": "these are approved, you can register them", - "provenanceTemplateId": "ltx_video_long_showcase" + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "b16dfc2b7c1c32272b8f79bc1bffbb60376e63f8cf1ab9d0bdf9aea07cccf5cd", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "qwen_layered_sunset_and_peaks" }, { - "creatorOrRightsholder": "MoDiff project maintainers, subject to the approved synthetic source and recorded model terms", - "creationMethod": "Maintainer-accepted native local AI-generated output or deterministic poster/card derivative; original full media is unchanged", - "sourceUrl": "https://huggingface.co/Lightricks/LTX-Video-0.9.8-13B-distilled/tree/7c64400e1861cc0d7b98d570a1926d5408ec60cd", - "sourceRevision": "Lightricks/LTX-Video-0.9.8-13B-distilled@7c64400e1861cc0d7b98d570a1926d5408ec60cd | nateraw/real-esrgan@42efb9c3eeed1f5c0c8a626cf5f7f4481dfbb094", - "sourceLicense": "Generated media; retained model and output terms apply", + "path": "template-gallery/layers/qwen_layered_sunset_and_peaks.layer-3.webp", + "sha256": "sha256:bytes:01b27cacca10c2ed53a8b9368d42697c2b13239113790d8291e20ccdb939a896", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Exact approved file captured from a saved MoDiff workflow", + "sourceUrl": "https://huggingface.co/Qwen/Qwen-Image-Layered/tree/8f0ca708dfff6ba1dd5f2d85d78f8c108a040bcf", + "sourceRevision": "Qwen/Qwen-Image-Layered@8f0ca708dfff6ba1dd5f2d85d78f8c108a040bcf", + "sourceLicense": "Maintainer-authorized file with publisher terms retained", "modelTerms": [ - "Lightricks/LTX-Video-0.9.8-13B-distilled: LTX-Video Open Weights License and output provisions; https://huggingface.co/Lightricks/LTX-Video-0.9.8-13B-distilled/tree/7c64400e1861cc0d7b98d570a1926d5408ec60cd", - "nateraw/real-esrgan: BSD-3-Clause model terms; https://huggingface.co/nateraw/real-esrgan/tree/42efb9c3eeed1f5c0c8a626cf5f7f4481dfbb094" + "https://huggingface.co/Qwen/Qwen-Image-Layered/blob/8f0ca708dfff6ba1dd5f2d85d78f8c108a040bcf/README.md" ], "aiGenerated": true, - "humanLikenessConsent": "not-applicable", + "humanLikenessConsent": "synthetic", "marks": [], - "requiredAttribution": [], + "requiredAttribution": [ + "Qwen/Qwen-Image-Layered@8f0ca708dfff6ba1dd5f2d85d78f8c108a040bcf https://huggingface.co/Qwen/Qwen-Image-Layered/tree/8f0ca708dfff6ba1dd5f2d85d78f8c108a040bcf" + ], "assetLicense": "Apache-2.0", - "path": "template-gallery/ltx_video_long_showcase.poster.png", - "sha256": "sha256:bytes:729b368a30f479ebfa304116f4f60d00881b7935886a3683701f159cc2f51588", - "publishDecision": "approved", - "holdReason": null, - "reviewedBy": "SOURAV DAS", - "reviewedAt": "2026-11-15", - "reviewClass": "per-file-maintainer-accepted-native-seven-registration", - "humanApprovalPacketSHA256": "95c7c2ed080c3d618db1701b066724660595337460c46df8305b50810783eaa3", - "publicationBasis": "these are approved, you can register them", - "provenanceTemplateId": "ltx_video_long_showcase" + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "b16dfc2b7c1c32272b8f79bc1bffbb60376e63f8cf1ab9d0bdf9aea07cccf5cd", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "qwen_layered_sunset_and_peaks" }, { - "path": "template-gallery/ltx_video_multi_reference.card-poster.png", - "sha256": "sha256:bytes:95a7196b97f24cc113918a0d989a5b88ed4b29cb551a799c00a83f9b91acf8af", + "path": "template-gallery/layers/qwen_layered_sunset_and_peaks.layer-4.webp", + "sha256": "sha256:bytes:186040c0eb257ec0de53821e6f3b03a7720ab2fe03b54a1d0b71290c2e0eda5c", "publishDecision": "approved", "holdReason": null, - "creatorOrRightsholder": "MoDiff project maintainers, subject to the recorded source and model terms", - "creationMethod": "AI-generated Gallery media or deterministic derivative", - "sourceUrl": "https://huggingface.co/Lightricks/LTX-Video-0.9.8-13B-distilled/tree/7c64400e1861cc0d7b98d570a1926d5408ec60cd", - "sourceRevision": "Lightricks/LTX-Video-0.9.8-13B-distilled@7c64400e1861cc0d7b98d570a1926d5408ec60cd | nateraw/real-esrgan@42efb9c3eeed1f5c0c8a626cf5f7f4481dfbb094", - "sourceLicense": "Original generation or recorded workflow input; see modelTerms", + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Exact approved file captured from a saved MoDiff workflow", + "sourceUrl": "https://huggingface.co/Qwen/Qwen-Image-Layered/tree/8f0ca708dfff6ba1dd5f2d85d78f8c108a040bcf", + "sourceRevision": "Qwen/Qwen-Image-Layered@8f0ca708dfff6ba1dd5f2d85d78f8c108a040bcf", + "sourceLicense": "Maintainer-authorized file with publisher terms retained", "modelTerms": [ - "Lightricks/LTX-Video-0.9.8-13B-distilled: LTXV Open Weights License 0.X; https://huggingface.co/Lightricks/LTX-Video-0.9.8-13B-distilled/tree/7c64400e1861cc0d7b98d570a1926d5408ec60cd", - "nateraw/real-esrgan: BSD-3-Clause; https://huggingface.co/nateraw/real-esrgan/tree/42efb9c3eeed1f5c0c8a626cf5f7f4481dfbb094" + "https://huggingface.co/Qwen/Qwen-Image-Layered/blob/8f0ca708dfff6ba1dd5f2d85d78f8c108a040bcf/README.md" ], "aiGenerated": true, "humanLikenessConsent": "synthetic", "marks": [], - "requiredAttribution": [], + "requiredAttribution": [ + "Qwen/Qwen-Image-Layered@8f0ca708dfff6ba1dd5f2d85d78f8c108a040bcf https://huggingface.co/Qwen/Qwen-Image-Layered/tree/8f0ca708dfff6ba1dd5f2d85d78f8c108a040bcf" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "b16dfc2b7c1c32272b8f79bc1bffbb60376e63f8cf1ab9d0bdf9aea07cccf5cd", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "qwen_layered_sunset_and_peaks" + }, + { + "path": "template-gallery/lcm_dawn_alpine_lake.webp", + "sha256": "sha256:bytes:6da406d5e24cb7b9e62c1ee617ff8bca851b0f5da3cc7aef2b2e88ac73bfc8d0", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "humanLikenessConsent": "not-applicable", + "marks": [], + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-20", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "ba369c5fff89e379be66714d3ecbf1a0e3a9555e2b5ffbc9cb54210d862ec30b", + "publicationBasis": "Maintainer approved the exact Whisper JSON and both exact LCM images, accepted the disclosed LCM changes, and authorized publication of the associated redacted Gallery records.", + "creationMethod": "Exact retained LCM edit of the specified synthetic PRX lake image", + "sourceUrl": "https://huggingface.co/SimianLuo/LCM_Dreamshaper_v7/blob/a85df6a8bd976cdd08b4fd8f3b73f229c9e54df5/README.md", + "sourceRevision": "SimianLuo/LCM_Dreamshaper_v7@a85df6a8bd976cdd08b4fd8f3b73f229c9e54df5", + "sourceLicense": "Project-authored synthetic content processed by recorded model(s), subject to their applicable terms", + "modelTerms": [ + "SimianLuo/LCM_Dreamshaper_v7@a85df6a8bd976cdd08b4fd8f3b73f229c9e54df5 — pinned model card MIT declaration. https://huggingface.co/SimianLuo/LCM_Dreamshaper_v7/blob/a85df6a8bd976cdd08b4fd8f3b73f229c9e54df5/README.md", + "LCM card credits DreamShaper 7 and Stable Diffusion v1.5. DreamShaper 7 card declares CreativeML Open RAIL-M. https://huggingface.co/Lykon/dreamshaper-7", + "Stable Diffusion upstream use terms. https://github.com/CompVis/stable-diffusion/blob/main/LICENSE", + "Photoroom/prx-512-t2i-sft@2996423bc26e8eaca48774fac1797484214dfea0 — Apache-2.0 declaration and Gemma use restrictions. https://huggingface.co/Photoroom/prx-512-t2i-sft/resolve/2996423bc26e8eaca48774fac1797484214dfea0/README.md", + "Pinned Photoroom notice names Google T5Gemma 2B-2B UL2 under the Gemma Terms and FLUX.1 Schnell VAE under Apache-2.0. https://huggingface.co/Photoroom/prx-512-t2i-sft/resolve/2996423bc26e8eaca48774fac1797484214dfea0/NOTICE", + "Gemma Terms and use policy. https://ai.google.dev/gemma/terms · https://gemma.ai/resources/prohibited-use/" + ], + "aiGenerated": true, + "requiredAttribution": [ + "LCM DreamShaper v7. https://huggingface.co/SimianLuo/LCM_Dreamshaper_v7/blob/a85df6a8bd976cdd08b4fd8f3b73f229c9e54df5/README.md", + "DreamShaper 7. https://huggingface.co/Lykon/dreamshaper-7", + "Photoroom Inc., PRX 512 SFT. https://huggingface.co/Photoroom/prx-512-t2i-sft/resolve/2996423bc26e8eaca48774fac1797484214dfea0/README.md", + "Google T5Gemma and Black Forest Labs FLUX.1 Schnell VAE component notices. https://huggingface.co/Photoroom/prx-512-t2i-sft/resolve/2996423bc26e8eaca48774fac1797484214dfea0/NOTICE" + ], "assetLicense": "MoDiff-Gallery-Restricted-1.0", - "reviewedBy": "SOURAV DAS", - "reviewedAt": "2026-08-03", - "reviewClass": "standard-human-attestation", - "provenanceTemplateId": "ltx_video_multi_reference" + "provenanceTemplateId": "lcm_dawn_alpine_lake" }, { - "path": "template-gallery/ltx_video_multi_reference.card-preview.mp4", - "sha256": "sha256:bytes:c88c7624b05258ec757e1f543b64f2b42aa94eb02333708c4e5231c902046e55", + "path": "template-gallery/longcat_clear_glass_at_the_bookshop.webp", + "sha256": "sha256:bytes:a29ccb40ac98bbda8401abaa2b25b9d61722505188056468ae18e66887f89338", "publishDecision": "approved", "holdReason": null, - "creatorOrRightsholder": "MoDiff project maintainers", - "creationMethod": "Maintainer-accepted native MoDiff output or its deterministic Gallery preview", - "sourceUrl": "https://huggingface.co/Lightricks/LTX-Video-0.9.8-13B-distilled/tree/7c64400e1861cc0d7b98d570a1926d5408ec60cd", - "sourceRevision": "Lightricks/LTX-Video-0.9.8-13B-distilled@7c64400e1861cc0d7b98d570a1926d5408ec60cd | nateraw/real-esrgan@42efb9c3eeed1f5c0c8a626cf5f7f4481dfbb094", - "sourceLicense": "Original generation or recorded workflow input; see modelTerms", + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Exact approved file captured from a saved MoDiff workflow", + "sourceUrl": "https://huggingface.co/meituan-longcat/LongCat-Image-Edit/tree/7b54ef423aa7854be7861600024be5c56ab7875a", + "sourceRevision": "meituan-longcat/LongCat-Image-Edit@7b54ef423aa7854be7861600024be5c56ab7875a", + "sourceLicense": "Maintainer-authorized file with publisher terms retained", "modelTerms": [ - "Lightricks/LTX-Video-0.9.8-13B-distilled: LTXV Open Weights License 0.X; https://huggingface.co/Lightricks/LTX-Video-0.9.8-13B-distilled/tree/7c64400e1861cc0d7b98d570a1926d5408ec60cd", - "nateraw/real-esrgan: BSD-3-Clause; https://huggingface.co/nateraw/real-esrgan/tree/42efb9c3eeed1f5c0c8a626cf5f7f4481dfbb094" + "Publisher model terms at https://huggingface.co/meituan-longcat/LongCat-Image-Edit/tree/7b54ef423aa7854be7861600024be5c56ab7875a" ], "aiGenerated": true, "humanLikenessConsent": "synthetic", "marks": [], - "requiredAttribution": [], + "requiredAttribution": [ + "meituan-longcat/LongCat-Image-Edit@7b54ef423aa7854be7861600024be5c56ab7875a https://huggingface.co/meituan-longcat/LongCat-Image-Edit/tree/7b54ef423aa7854be7861600024be5c56ab7875a" + ], "assetLicense": "Apache-2.0", - "reviewedBy": "SOURAV DAS", - "reviewedAt": "2026-11-10", - "reviewClass": "per-file-maintainer-accepted-native-gallery-registration", - "provenanceTemplateId": "ltx_video_multi_reference", - "sourceRightsAttestation": "The maintainer accepted the exact review-gallery asset and expressly requested its registration.", - "acceptedOutputSHA256": "debfbe7ec1d1afbba34d05c208762f472fc251434d347ef6021e8476539d7644", - "humanApprovalPacketSHA256": "73ddf9ea7fc27eccc6b93817809421a008ce0fd2fb3080ffbdc5831a09205304" + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "60b01498a2df5f4e4622cdc2f9a43c83d187820780d2425a19718c13707db501", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "longcat_clear_glass_at_the_bookshop" }, { - "path": "template-gallery/ltx_video_multi_reference.mp4", - "sha256": "sha256:bytes:debfbe7ec1d1afbba34d05c208762f472fc251434d347ef6021e8476539d7644", + "path": "template-gallery/longcat_florist_end_of_lane.webp", + "sha256": "sha256:bytes:045dec822bcffaf2825dee3118446a536819a518475c78c4573d68dbb498825b", "publishDecision": "approved", "holdReason": null, - "creatorOrRightsholder": "MoDiff project maintainers", - "creationMethod": "Maintainer-accepted native MoDiff output or its deterministic Gallery preview", - "sourceUrl": "https://huggingface.co/Lightricks/LTX-Video-0.9.8-13B-distilled/tree/7c64400e1861cc0d7b98d570a1926d5408ec60cd", - "sourceRevision": "Lightricks/LTX-Video-0.9.8-13B-distilled@7c64400e1861cc0d7b98d570a1926d5408ec60cd | nateraw/real-esrgan@42efb9c3eeed1f5c0c8a626cf5f7f4481dfbb094", - "sourceLicense": "Original generation or recorded workflow input; see modelTerms", + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Exact approved file captured from a saved MoDiff workflow", + "sourceUrl": "https://huggingface.co/meituan-longcat/LongCat-Image/tree/d2ea50b79a930074c37b9b97ce45e3b2ea8cf4d8", + "sourceRevision": "meituan-longcat/LongCat-Image@d2ea50b79a930074c37b9b97ce45e3b2ea8cf4d8", + "sourceLicense": "Maintainer-authorized file with publisher terms retained", "modelTerms": [ - "Lightricks/LTX-Video-0.9.8-13B-distilled: LTXV Open Weights License 0.X; https://huggingface.co/Lightricks/LTX-Video-0.9.8-13B-distilled/tree/7c64400e1861cc0d7b98d570a1926d5408ec60cd", - "nateraw/real-esrgan: BSD-3-Clause; https://huggingface.co/nateraw/real-esrgan/tree/42efb9c3eeed1f5c0c8a626cf5f7f4481dfbb094" + "Publisher model terms at https://huggingface.co/meituan-longcat/LongCat-Image/tree/d2ea50b79a930074c37b9b97ce45e3b2ea8cf4d8" ], "aiGenerated": true, "humanLikenessConsent": "synthetic", "marks": [], - "requiredAttribution": [], + "requiredAttribution": [ + "meituan-longcat/LongCat-Image@d2ea50b79a930074c37b9b97ce45e3b2ea8cf4d8 https://huggingface.co/meituan-longcat/LongCat-Image/tree/d2ea50b79a930074c37b9b97ce45e3b2ea8cf4d8" + ], "assetLicense": "Apache-2.0", - "reviewedBy": "SOURAV DAS", - "reviewedAt": "2026-11-10", - "reviewClass": "per-file-maintainer-accepted-native-gallery-registration", - "provenanceTemplateId": "ltx_video_multi_reference", - "sourceRightsAttestation": "The maintainer accepted the exact review-gallery asset and expressly requested its registration.", - "acceptedOutputSHA256": "debfbe7ec1d1afbba34d05c208762f472fc251434d347ef6021e8476539d7644", - "humanApprovalPacketSHA256": "73ddf9ea7fc27eccc6b93817809421a008ce0fd2fb3080ffbdc5831a09205304" + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "4fc7c52588176cb1f6ba6d699d08741b2986ea71ea87bac650d261716a10b24c", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "longcat_florist_end_of_lane" }, { - "path": "template-gallery/ltx_video_multi_reference.poster.png", - "sha256": "sha256:bytes:0f4968be6c8acdd441197f8f3024e48ae103255925869531903af37bb347d859", + "path": "template-gallery/longcat_last_tram_at_dusk.wav", + "sha256": "sha256:bytes:6d7e8a05a49b111c59cda0fe69dfb7c5f92fb8e560ae468cf96a16bbd068a78b", "publishDecision": "approved", "holdReason": null, - "creatorOrRightsholder": "MoDiff project maintainers", - "creationMethod": "Maintainer-accepted native MoDiff output or its deterministic Gallery preview", - "sourceUrl": "https://huggingface.co/Lightricks/LTX-Video-0.9.8-13B-distilled/tree/7c64400e1861cc0d7b98d570a1926d5408ec60cd", - "sourceRevision": "Lightricks/LTX-Video-0.9.8-13B-distilled@7c64400e1861cc0d7b98d570a1926d5408ec60cd | nateraw/real-esrgan@42efb9c3eeed1f5c0c8a626cf5f7f4481dfbb094", - "sourceLicense": "Original generation or recorded workflow input; see modelTerms", + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Exact approved file captured from a saved MoDiff workflow", + "sourceUrl": "https://huggingface.co/ruixiangma/LongCat-AudioDiT-1B-Diffusers/tree/f4c063ea37f262ba5e6129ebd80095a6d6a9de4d", + "sourceRevision": "ruixiangma/LongCat-AudioDiT-1B-Diffusers@f4c063ea37f262ba5e6129ebd80095a6d6a9de4d", + "sourceLicense": "Maintainer-authorized file with publisher terms retained", "modelTerms": [ - "Lightricks/LTX-Video-0.9.8-13B-distilled: LTXV Open Weights License 0.X; https://huggingface.co/Lightricks/LTX-Video-0.9.8-13B-distilled/tree/7c64400e1861cc0d7b98d570a1926d5408ec60cd", - "nateraw/real-esrgan: BSD-3-Clause; https://huggingface.co/nateraw/real-esrgan/tree/42efb9c3eeed1f5c0c8a626cf5f7f4481dfbb094" + "Publisher model terms at https://huggingface.co/ruixiangma/LongCat-AudioDiT-1B-Diffusers/tree/f4c063ea37f262ba5e6129ebd80095a6d6a9de4d" + ], + "aiGenerated": true, + "humanLikenessConsent": "synthetic", + "marks": [], + "requiredAttribution": [ + "ruixiangma/LongCat-AudioDiT-1B-Diffusers@f4c063ea37f262ba5e6129ebd80095a6d6a9de4d https://huggingface.co/ruixiangma/LongCat-AudioDiT-1B-Diffusers/tree/f4c063ea37f262ba5e6129ebd80095a6d6a9de4d" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "15c604ae5df3abed63c95046a78859adb870f415f45c06a99f58ad652fc0dea2", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "longcat_last_tram_at_dusk" + }, + { + "creatorOrRightsholder": "MoDiff project maintainers, subject to source/model terms", + "creationMethod": "AI-generated original text-to-image Gallery example", + "sourceUrl": "https://huggingface.co/Tongyi-MAI/Z-Image-Turbo/tree/f332072aa78be7aecdf3ee76d5c247082da564a6", + "sourceRevision": "Tongyi-MAI/Z-Image-Turbo@f332072aa78be7aecdf3ee76d5c247082da564a6", + "sourceLicense": "Original project generation; see pinned model and adapter terms", + "modelTerms": [ + "Tongyi-MAI/Z-Image-Turbo: Apache-2.0; https://huggingface.co/Tongyi-MAI/Z-Image-Turbo/tree/f332072aa78be7aecdf3ee76d5c247082da564a6" ], "aiGenerated": true, "humanLikenessConsent": "synthetic", "marks": [], "requiredAttribution": [], + "path": "template-gallery/low_vram.webp", + "sha256": "sha256:bytes:a69d58bfa342f850d807690080ca9aac583ca9fb69115e55904de315f71938e1", + "publishDecision": "approved", + "holdReason": null, "assetLicense": "Apache-2.0", "reviewedBy": "SOURAV DAS", - "reviewedAt": "2026-11-10", - "reviewClass": "per-file-maintainer-accepted-native-gallery-registration", - "provenanceTemplateId": "ltx_video_multi_reference", - "sourceRightsAttestation": "The maintainer accepted the exact review-gallery asset and expressly requested its registration.", - "acceptedOutputSHA256": "debfbe7ec1d1afbba34d05c208762f472fc251434d347ef6021e8476539d7644", - "humanApprovalPacketSHA256": "73ddf9ea7fc27eccc6b93817809421a008ce0fd2fb3080ffbdc5831a09205304" + "reviewedAt": "2026-11-09", + "reviewClass": "per-file-human-approved-six-z-registration", + "humanApprovalPacketSHA256": "9b728a5f8535fc1ba3c03d2e2759d7ac795a586fafab51beb1509379ed388934", + "provenanceTemplateId": "low_vram" }, { - "path": "template-gallery/ltx_video_text_to_video.card-poster.png", - "sha256": "sha256:bytes:e131e2f676e04382117e77deeede145851fff469819d173073354cc5033b116d", + "path": "template-gallery/ltx_video_animated_story.card-poster.png", + "sha256": "sha256:bytes:fcd07a3c5a3e8df1890f1dd98f72746a67025a7bf3c4f6559026b24a8afa445c", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, subject to the recorded source and model terms", @@ -7404,65 +7716,116 @@ "reviewedBy": "SOURAV DAS", "reviewedAt": "2026-08-03", "reviewClass": "standard-human-attestation", - "provenanceTemplateId": "ltx_video_text_to_video" + "provenanceTemplateId": "ltx_video_animated_story" }, { - "path": "template-gallery/ltx_video_text_to_video.card-preview.mp4", - "sha256": "sha256:bytes:9b8defe3284dcc8bdb9e83485c93c73b65e8c5ade41afe5a383235b04d81b265", - "publishDecision": "approved", - "holdReason": null, - "creatorOrRightsholder": "MoDiff project maintainers", - "creationMethod": "Maintainer-accepted native MoDiff output or its deterministic Gallery preview", + "creatorOrRightsholder": "MoDiff project maintainers, subject to the approved synthetic source and recorded model terms", + "creationMethod": "Maintainer-accepted native local AI-generated output or deterministic poster/card derivative; original full media is unchanged", "sourceUrl": "https://huggingface.co/Lightricks/LTX-Video-0.9.8-13B-distilled/tree/7c64400e1861cc0d7b98d570a1926d5408ec60cd", "sourceRevision": "Lightricks/LTX-Video-0.9.8-13B-distilled@7c64400e1861cc0d7b98d570a1926d5408ec60cd | nateraw/real-esrgan@42efb9c3eeed1f5c0c8a626cf5f7f4481dfbb094", - "sourceLicense": "Original generation or recorded workflow input; see modelTerms", + "sourceLicense": "Generated media; retained model and output terms apply", "modelTerms": [ - "Lightricks/LTX-Video-0.9.8-13B-distilled: LTXV Open Weights License 0.X; https://huggingface.co/Lightricks/LTX-Video-0.9.8-13B-distilled/tree/7c64400e1861cc0d7b98d570a1926d5408ec60cd", - "nateraw/real-esrgan: BSD-3-Clause; https://huggingface.co/nateraw/real-esrgan/tree/42efb9c3eeed1f5c0c8a626cf5f7f4481dfbb094" + "Lightricks/LTX-Video-0.9.8-13B-distilled: LTX-Video Open Weights License and output provisions; https://huggingface.co/Lightricks/LTX-Video-0.9.8-13B-distilled/tree/7c64400e1861cc0d7b98d570a1926d5408ec60cd", + "nateraw/real-esrgan: BSD-3-Clause model terms; https://huggingface.co/nateraw/real-esrgan/tree/42efb9c3eeed1f5c0c8a626cf5f7f4481dfbb094" ], "aiGenerated": true, - "humanLikenessConsent": "synthetic", + "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [], "assetLicense": "Apache-2.0", + "path": "template-gallery/ltx_video_animated_story.card-preview.mp4", + "sha256": "sha256:bytes:54935c2d3e0db8f926e05f7aacc8bc025f2c1d589951533d5aa32aab1a5e6f1d", + "publishDecision": "approved", + "holdReason": null, "reviewedBy": "SOURAV DAS", - "reviewedAt": "2026-11-10", - "reviewClass": "per-file-maintainer-accepted-native-gallery-registration", - "provenanceTemplateId": "ltx_video_text_to_video", - "sourceRightsAttestation": "The maintainer accepted the exact review-gallery asset and expressly requested its registration.", - "acceptedOutputSHA256": "9b2b976acb65a6c4a9c2255e50d2b7a65a42bb54146d6d2a39625dfdd0b0fe14", - "humanApprovalPacketSHA256": "73ddf9ea7fc27eccc6b93817809421a008ce0fd2fb3080ffbdc5831a09205304" + "reviewedAt": "2026-11-15", + "reviewClass": "per-file-maintainer-accepted-native-seven-registration", + "humanApprovalPacketSHA256": "95c7c2ed080c3d618db1701b066724660595337460c46df8305b50810783eaa3", + "publicationBasis": "these are approved, you can register them", + "provenanceTemplateId": "ltx_video_animated_story" }, { - "path": "template-gallery/ltx_video_text_to_video.mp4", - "sha256": "sha256:bytes:9b2b976acb65a6c4a9c2255e50d2b7a65a42bb54146d6d2a39625dfdd0b0fe14", - "publishDecision": "approved", - "holdReason": null, - "creatorOrRightsholder": "MoDiff project maintainers", - "creationMethod": "Maintainer-accepted native MoDiff output or its deterministic Gallery preview", + "creatorOrRightsholder": "MoDiff project maintainers, subject to the approved synthetic source and recorded model terms", + "creationMethod": "Maintainer-accepted native local AI-generated output or deterministic poster/card derivative; original full media is unchanged", "sourceUrl": "https://huggingface.co/Lightricks/LTX-Video-0.9.8-13B-distilled/tree/7c64400e1861cc0d7b98d570a1926d5408ec60cd", "sourceRevision": "Lightricks/LTX-Video-0.9.8-13B-distilled@7c64400e1861cc0d7b98d570a1926d5408ec60cd | nateraw/real-esrgan@42efb9c3eeed1f5c0c8a626cf5f7f4481dfbb094", - "sourceLicense": "Original generation or recorded workflow input; see modelTerms", + "sourceLicense": "Generated media; retained model and output terms apply", "modelTerms": [ - "Lightricks/LTX-Video-0.9.8-13B-distilled: LTXV Open Weights License 0.X; https://huggingface.co/Lightricks/LTX-Video-0.9.8-13B-distilled/tree/7c64400e1861cc0d7b98d570a1926d5408ec60cd", - "nateraw/real-esrgan: BSD-3-Clause; https://huggingface.co/nateraw/real-esrgan/tree/42efb9c3eeed1f5c0c8a626cf5f7f4481dfbb094" + "Lightricks/LTX-Video-0.9.8-13B-distilled: LTX-Video Open Weights License and output provisions; https://huggingface.co/Lightricks/LTX-Video-0.9.8-13B-distilled/tree/7c64400e1861cc0d7b98d570a1926d5408ec60cd", + "nateraw/real-esrgan: BSD-3-Clause model terms; https://huggingface.co/nateraw/real-esrgan/tree/42efb9c3eeed1f5c0c8a626cf5f7f4481dfbb094" ], "aiGenerated": true, - "humanLikenessConsent": "synthetic", + "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [], "assetLicense": "Apache-2.0", - "reviewedBy": "SOURAV DAS", + "path": "template-gallery/ltx_video_animated_story.mp4", + "sha256": "sha256:bytes:ca548363a0a64ea2011eb0e63e3fd65383c3e8fbbb6fa32126044c13720246f7", + "publishDecision": "approved", + "holdReason": null, + "reviewedBy": "SOURAV DAS", + "reviewedAt": "2026-11-15", + "reviewClass": "per-file-maintainer-accepted-native-seven-registration", + "humanApprovalPacketSHA256": "95c7c2ed080c3d618db1701b066724660595337460c46df8305b50810783eaa3", + "publicationBasis": "these are approved, you can register them", + "provenanceTemplateId": "ltx_video_animated_story" + }, + { + "creatorOrRightsholder": "MoDiff project maintainers, subject to the approved synthetic source and recorded model terms", + "creationMethod": "Maintainer-accepted native local AI-generated output or deterministic poster/card derivative; original full media is unchanged", + "sourceUrl": "https://huggingface.co/Lightricks/LTX-Video-0.9.8-13B-distilled/tree/7c64400e1861cc0d7b98d570a1926d5408ec60cd", + "sourceRevision": "Lightricks/LTX-Video-0.9.8-13B-distilled@7c64400e1861cc0d7b98d570a1926d5408ec60cd | nateraw/real-esrgan@42efb9c3eeed1f5c0c8a626cf5f7f4481dfbb094", + "sourceLicense": "Generated media; retained model and output terms apply", + "modelTerms": [ + "Lightricks/LTX-Video-0.9.8-13B-distilled: LTX-Video Open Weights License and output provisions; https://huggingface.co/Lightricks/LTX-Video-0.9.8-13B-distilled/tree/7c64400e1861cc0d7b98d570a1926d5408ec60cd", + "nateraw/real-esrgan: BSD-3-Clause model terms; https://huggingface.co/nateraw/real-esrgan/tree/42efb9c3eeed1f5c0c8a626cf5f7f4481dfbb094" + ], + "aiGenerated": true, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [], + "assetLicense": "Apache-2.0", + "path": "template-gallery/ltx_video_animated_story.poster.png", + "sha256": "sha256:bytes:969f826c9943ba6c4e07507995d12566e9d31d7e32e47e1498f8d4697cb9a223", + "publishDecision": "approved", + "holdReason": null, + "reviewedBy": "SOURAV DAS", + "reviewedAt": "2026-11-15", + "reviewClass": "per-file-maintainer-accepted-native-seven-registration", + "humanApprovalPacketSHA256": "95c7c2ed080c3d618db1701b066724660595337460c46df8305b50810783eaa3", + "publicationBasis": "these are approved, you can register them", + "provenanceTemplateId": "ltx_video_animated_story" + }, + { + "path": "template-gallery/ltx_video_image_to_video.card-preview.mp4", + "sha256": "sha256:bytes:2effe668f4ad43f9b4780400581d282aee66714d8450eb999787a1c29338aea0", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers", + "creationMethod": "Maintainer-accepted native MoDiff output or its deterministic Gallery preview", + "sourceUrl": "https://huggingface.co/Lightricks/LTX-Video-0.9.8-13B-distilled/tree/7c64400e1861cc0d7b98d570a1926d5408ec60cd", + "sourceRevision": "Lightricks/LTX-Video-0.9.8-13B-distilled@7c64400e1861cc0d7b98d570a1926d5408ec60cd | nateraw/real-esrgan@42efb9c3eeed1f5c0c8a626cf5f7f4481dfbb094", + "sourceLicense": "Original generation or recorded workflow input; see modelTerms", + "modelTerms": [ + "Lightricks/LTX-Video-0.9.8-13B-distilled: LTXV Open Weights License 0.X; https://huggingface.co/Lightricks/LTX-Video-0.9.8-13B-distilled/tree/7c64400e1861cc0d7b98d570a1926d5408ec60cd", + "nateraw/real-esrgan: BSD-3-Clause; https://huggingface.co/nateraw/real-esrgan/tree/42efb9c3eeed1f5c0c8a626cf5f7f4481dfbb094" + ], + "aiGenerated": true, + "humanLikenessConsent": "synthetic", + "marks": [], + "requiredAttribution": [], + "assetLicense": "Apache-2.0", + "reviewedBy": "SOURAV DAS", "reviewedAt": "2026-11-10", "reviewClass": "per-file-maintainer-accepted-native-gallery-registration", - "provenanceTemplateId": "ltx_video_text_to_video", + "provenanceTemplateId": "ltx_video_image_to_video", "sourceRightsAttestation": "The maintainer accepted the exact review-gallery asset and expressly requested its registration.", - "acceptedOutputSHA256": "9b2b976acb65a6c4a9c2255e50d2b7a65a42bb54146d6d2a39625dfdd0b0fe14", + "acceptedOutputSHA256": "e8804713f41d641d6be227d6d2a2603a1ad17f33164e4a10fa1877101dbe4056", "humanApprovalPacketSHA256": "73ddf9ea7fc27eccc6b93817809421a008ce0fd2fb3080ffbdc5831a09205304" }, { - "path": "template-gallery/ltx_video_text_to_video.poster.png", - "sha256": "sha256:bytes:c1626d18f12d4cb226de81cca46c0ef9c57628707246efb237f12c30214292fd", + "path": "template-gallery/ltx_video_image_to_video.mp4", + "sha256": "sha256:bytes:e8804713f41d641d6be227d6d2a2603a1ad17f33164e4a10fa1877101dbe4056", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers", @@ -7482,21 +7845,48 @@ "reviewedBy": "SOURAV DAS", "reviewedAt": "2026-11-10", "reviewClass": "per-file-maintainer-accepted-native-gallery-registration", - "provenanceTemplateId": "ltx_video_text_to_video", + "provenanceTemplateId": "ltx_video_image_to_video", "sourceRightsAttestation": "The maintainer accepted the exact review-gallery asset and expressly requested its registration.", - "acceptedOutputSHA256": "9b2b976acb65a6c4a9c2255e50d2b7a65a42bb54146d6d2a39625dfdd0b0fe14", + "acceptedOutputSHA256": "e8804713f41d641d6be227d6d2a2603a1ad17f33164e4a10fa1877101dbe4056", "humanApprovalPacketSHA256": "73ddf9ea7fc27eccc6b93817809421a008ce0fd2fb3080ffbdc5831a09205304" }, { - "path": "template-gallery/ltx_video_video_to_video.card-poster.png", - "sha256": "sha256:bytes:e5a259b5ab8a0b21b31cb8ba23ae7c0d45a7c9de193e76c1b2608c5709d0fe8c", + "path": "template-gallery/ltx_video_image_to_video.poster.png", + "sha256": "sha256:bytes:eb63789359a844687ed56687ed0ead528c0845bf98631117d8cac28af0c58ad0", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers", + "creationMethod": "Maintainer-accepted native MoDiff output or its deterministic Gallery preview", + "sourceUrl": "https://huggingface.co/Lightricks/LTX-Video-0.9.8-13B-distilled/tree/7c64400e1861cc0d7b98d570a1926d5408ec60cd", + "sourceRevision": "Lightricks/LTX-Video-0.9.8-13B-distilled@7c64400e1861cc0d7b98d570a1926d5408ec60cd | nateraw/real-esrgan@42efb9c3eeed1f5c0c8a626cf5f7f4481dfbb094", + "sourceLicense": "Original generation or recorded workflow input; see modelTerms", + "modelTerms": [ + "Lightricks/LTX-Video-0.9.8-13B-distilled: LTXV Open Weights License 0.X; https://huggingface.co/Lightricks/LTX-Video-0.9.8-13B-distilled/tree/7c64400e1861cc0d7b98d570a1926d5408ec60cd", + "nateraw/real-esrgan: BSD-3-Clause; https://huggingface.co/nateraw/real-esrgan/tree/42efb9c3eeed1f5c0c8a626cf5f7f4481dfbb094" + ], + "aiGenerated": true, + "humanLikenessConsent": "synthetic", + "marks": [], + "requiredAttribution": [], + "assetLicense": "Apache-2.0", + "reviewedBy": "SOURAV DAS", + "reviewedAt": "2026-11-10", + "reviewClass": "per-file-maintainer-accepted-native-gallery-registration", + "provenanceTemplateId": "ltx_video_image_to_video", + "sourceRightsAttestation": "The maintainer accepted the exact review-gallery asset and expressly requested its registration.", + "acceptedOutputSHA256": "e8804713f41d641d6be227d6d2a2603a1ad17f33164e4a10fa1877101dbe4056", + "humanApprovalPacketSHA256": "73ddf9ea7fc27eccc6b93817809421a008ce0fd2fb3080ffbdc5831a09205304" + }, + { + "path": "template-gallery/ltx_video_long_showcase.card-poster.png", + "sha256": "sha256:bytes:a0b0f93ebf1558f7a8b7c96bb2024bdb55909a54c1362d9d1027ccc24614bdd5", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, subject to the recorded source and model terms", "creationMethod": "AI-generated Gallery media or deterministic derivative", - "sourceUrl": "https://huggingface.co/datasets/huggingface/documentation-images", + "sourceUrl": "https://huggingface.co/Lightricks/LTX-Video-0.9.8-13B-distilled/tree/7c64400e1861cc0d7b98d570a1926d5408ec60cd", "sourceRevision": "Lightricks/LTX-Video-0.9.8-13B-distilled@7c64400e1861cc0d7b98d570a1926d5408ec60cd | nateraw/real-esrgan@42efb9c3eeed1f5c0c8a626cf5f7f4481dfbb094", - "sourceLicense": "CC-BY-NC-SA-4.0", + "sourceLicense": "Original generation or recorded workflow input; see modelTerms", "modelTerms": [ "Lightricks/LTX-Video-0.9.8-13B-distilled: LTXV Open Weights License 0.X; https://huggingface.co/Lightricks/LTX-Video-0.9.8-13B-distilled/tree/7c64400e1861cc0d7b98d570a1926d5408ec60cd", "nateraw/real-esrgan: BSD-3-Clause; https://huggingface.co/nateraw/real-esrgan/tree/42efb9c3eeed1f5c0c8a626cf5f7f4481dfbb094" @@ -7504,14 +7894,12 @@ "aiGenerated": true, "humanLikenessConsent": "synthetic", "marks": [], - "requiredAttribution": [ - "Source: Hugging Face documentation-images Dataset, CC BY-NC-SA 4.0; modified by the MoDiff LTX workflow." - ], - "assetLicense": "CC-BY-NC-SA-4.0", + "requiredAttribution": [], + "assetLicense": "MoDiff-Gallery-Restricted-1.0", "reviewedBy": "SOURAV DAS", "reviewedAt": "2026-08-03", "reviewClass": "standard-human-attestation", - "provenanceTemplateId": "ltx_video_video_to_video" + "provenanceTemplateId": "ltx_video_long_showcase" }, { "creatorOrRightsholder": "MoDiff project maintainers, subject to the approved synthetic source and recorded model terms", @@ -7528,16 +7916,16 @@ "marks": [], "requiredAttribution": [], "assetLicense": "Apache-2.0", - "path": "template-gallery/ltx_video_video_to_video.card-preview.mp4", - "sha256": "sha256:bytes:f414aaca530e5c7cf7792647a2a0c0efce2792de518e776f9efc3632f0d99306", + "path": "template-gallery/ltx_video_long_showcase.card-preview.mp4", + "sha256": "sha256:bytes:0dc4052d30ff6e11c31ba7ee869d14570739462e01426b6830d9e62c8e5379c7", "publishDecision": "approved", "holdReason": null, "reviewedBy": "SOURAV DAS", - "reviewedAt": "2026-11-13", - "reviewClass": "per-file-maintainer-accepted-native-six-registration", - "humanApprovalPacketSHA256": "03b66b4631afb15032d62a1705331b56f6b12c4882c23945175ec92cc45a506f", - "publicationBasis": "Register the six approved assets now while Moonflower runs on Linux. Use Windows in parallel wherever possible, and keep the longer workflows separate for AMD cloud.", - "provenanceTemplateId": "ltx_video_video_to_video" + "reviewedAt": "2026-11-15", + "reviewClass": "per-file-maintainer-accepted-native-seven-registration", + "humanApprovalPacketSHA256": "95c7c2ed080c3d618db1701b066724660595337460c46df8305b50810783eaa3", + "publicationBasis": "these are approved, you can register them", + "provenanceTemplateId": "ltx_video_long_showcase" }, { "creatorOrRightsholder": "MoDiff project maintainers, subject to the approved synthetic source and recorded model terms", @@ -7554,16 +7942,16 @@ "marks": [], "requiredAttribution": [], "assetLicense": "Apache-2.0", - "path": "template-gallery/ltx_video_video_to_video.mp4", - "sha256": "sha256:bytes:7ecb7be76078fd602869629b2eba4534382afff58e779e0c70287041e0934b44", + "path": "template-gallery/ltx_video_long_showcase.mp4", + "sha256": "sha256:bytes:ba1614fa9b86accd706d8fbc6c92818c43c058f9343cd97431711a47d9bef609", "publishDecision": "approved", "holdReason": null, "reviewedBy": "SOURAV DAS", - "reviewedAt": "2026-11-13", - "reviewClass": "per-file-maintainer-accepted-native-six-registration", - "humanApprovalPacketSHA256": "03b66b4631afb15032d62a1705331b56f6b12c4882c23945175ec92cc45a506f", - "publicationBasis": "Register the six approved assets now while Moonflower runs on Linux. Use Windows in parallel wherever possible, and keep the longer workflows separate for AMD cloud.", - "provenanceTemplateId": "ltx_video_video_to_video" + "reviewedAt": "2026-11-15", + "reviewClass": "per-file-maintainer-accepted-native-seven-registration", + "humanApprovalPacketSHA256": "95c7c2ed080c3d618db1701b066724660595337460c46df8305b50810783eaa3", + "publicationBasis": "these are approved, you can register them", + "provenanceTemplateId": "ltx_video_long_showcase" }, { "creatorOrRightsholder": "MoDiff project maintainers, subject to the approved synthetic source and recorded model terms", @@ -7580,380 +7968,376 @@ "marks": [], "requiredAttribution": [], "assetLicense": "Apache-2.0", - "path": "template-gallery/ltx_video_video_to_video.poster.png", - "sha256": "sha256:bytes:a51e109af8d0f913b6577a9a3f069629db849a895878c893c7c57b2a2292e033", + "path": "template-gallery/ltx_video_long_showcase.poster.png", + "sha256": "sha256:bytes:729b368a30f479ebfa304116f4f60d00881b7935886a3683701f159cc2f51588", "publishDecision": "approved", "holdReason": null, "reviewedBy": "SOURAV DAS", - "reviewedAt": "2026-11-13", - "reviewClass": "per-file-maintainer-accepted-native-six-registration", - "humanApprovalPacketSHA256": "03b66b4631afb15032d62a1705331b56f6b12c4882c23945175ec92cc45a506f", - "publicationBasis": "Register the six approved assets now while Moonflower runs on Linux. Use Windows in parallel wherever possible, and keep the longer workflows separate for AMD cloud.", - "provenanceTemplateId": "ltx_video_video_to_video" + "reviewedAt": "2026-11-15", + "reviewClass": "per-file-maintainer-accepted-native-seven-registration", + "humanApprovalPacketSHA256": "95c7c2ed080c3d618db1701b066724660595337460c46df8305b50810783eaa3", + "publicationBasis": "these are approved, you can register them", + "provenanceTemplateId": "ltx_video_long_showcase" }, { - "path": "template-gallery/lumina2_larch_on_glacial_pond.webp", - "sha256": "sha256:bytes:06491642cdf97ed7676ad237353957a42aa121a11d3f2423c1a4ac4dd6a53ee5", + "path": "template-gallery/ltx_video_multi_reference.card-poster.png", + "sha256": "sha256:bytes:95a7196b97f24cc113918a0d989a5b88ed4b29cb551a799c00a83f9b91acf8af", "publishDecision": "approved", "holdReason": null, - "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", - "creationMethod": "Exact approved file captured from a saved MoDiff workflow", - "sourceUrl": "https://huggingface.co/Alpha-VLLM/Lumina-Image-2.0/tree/53504abd8178b30685b6c4c7a4cd181ff78b73e9", - "sourceRevision": "Alpha-VLLM/Lumina-Image-2.0@53504abd8178b30685b6c4c7a4cd181ff78b73e9", - "sourceLicense": "Maintainer-authorized file with publisher terms retained", + "creatorOrRightsholder": "MoDiff project maintainers, subject to the recorded source and model terms", + "creationMethod": "AI-generated Gallery media or deterministic derivative", + "sourceUrl": "https://huggingface.co/Lightricks/LTX-Video-0.9.8-13B-distilled/tree/7c64400e1861cc0d7b98d570a1926d5408ec60cd", + "sourceRevision": "Lightricks/LTX-Video-0.9.8-13B-distilled@7c64400e1861cc0d7b98d570a1926d5408ec60cd | nateraw/real-esrgan@42efb9c3eeed1f5c0c8a626cf5f7f4481dfbb094", + "sourceLicense": "Original generation or recorded workflow input; see modelTerms", "modelTerms": [ - "Publisher model terms at https://huggingface.co/Alpha-VLLM/Lumina-Image-2.0/tree/53504abd8178b30685b6c4c7a4cd181ff78b73e9" + "Lightricks/LTX-Video-0.9.8-13B-distilled: LTXV Open Weights License 0.X; https://huggingface.co/Lightricks/LTX-Video-0.9.8-13B-distilled/tree/7c64400e1861cc0d7b98d570a1926d5408ec60cd", + "nateraw/real-esrgan: BSD-3-Clause; https://huggingface.co/nateraw/real-esrgan/tree/42efb9c3eeed1f5c0c8a626cf5f7f4481dfbb094" ], "aiGenerated": true, "humanLikenessConsent": "synthetic", "marks": [], - "requiredAttribution": [ - "Alpha-VLLM/Lumina-Image-2.0@53504abd8178b30685b6c4c7a4cd181ff78b73e9 https://huggingface.co/Alpha-VLLM/Lumina-Image-2.0/tree/53504abd8178b30685b6c4c7a4cd181ff78b73e9" - ], - "assetLicense": "Apache-2.0", - "reviewedBy": "MoDiff workspace maintainer", - "reviewedAt": "2026-11-25", - "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "c2df9edb92f8ff905b6c9a138a285e67c621f3d2dfa3232f859aaf963b725aca", - "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", - "provenanceTemplateId": "lumina2_larch_on_glacial_pond" + "requiredAttribution": [], + "assetLicense": "MoDiff-Gallery-Restricted-1.0", + "reviewedBy": "SOURAV DAS", + "reviewedAt": "2026-08-03", + "reviewClass": "standard-human-attestation", + "provenanceTemplateId": "ltx_video_multi_reference" }, { - "path": "template-gallery/lumina_opal_pendant_in_limestone.webp", - "sha256": "sha256:bytes:3ff57e957b7db5ad20c9c37789a0536437846cdc8eb4737482cb7f026f25fb8e", + "path": "template-gallery/ltx_video_multi_reference.card-preview.mp4", + "sha256": "sha256:bytes:c88c7624b05258ec757e1f543b64f2b42aa94eb02333708c4e5231c902046e55", "publishDecision": "approved", "holdReason": null, - "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", - "creationMethod": "Exact approved file captured from a saved MoDiff workflow", - "sourceUrl": "https://huggingface.co/Alpha-VLLM/Lumina-Next-SFT-diffusers/tree/0ee5ec90043acf5cb41fe96274af36eb7fad8d95", - "sourceRevision": "Alpha-VLLM/Lumina-Next-SFT-diffusers@0ee5ec90043acf5cb41fe96274af36eb7fad8d95", - "sourceLicense": "Maintainer-authorized file with publisher terms retained", + "creatorOrRightsholder": "MoDiff project maintainers", + "creationMethod": "Maintainer-accepted native MoDiff output or its deterministic Gallery preview", + "sourceUrl": "https://huggingface.co/Lightricks/LTX-Video-0.9.8-13B-distilled/tree/7c64400e1861cc0d7b98d570a1926d5408ec60cd", + "sourceRevision": "Lightricks/LTX-Video-0.9.8-13B-distilled@7c64400e1861cc0d7b98d570a1926d5408ec60cd | nateraw/real-esrgan@42efb9c3eeed1f5c0c8a626cf5f7f4481dfbb094", + "sourceLicense": "Original generation or recorded workflow input; see modelTerms", "modelTerms": [ - "https://huggingface.co/Alpha-VLLM/Lumina-Next-SFT-diffusers/blob/0ee5ec90043acf5cb41fe96274af36eb7fad8d95/README.md" + "Lightricks/LTX-Video-0.9.8-13B-distilled: LTXV Open Weights License 0.X; https://huggingface.co/Lightricks/LTX-Video-0.9.8-13B-distilled/tree/7c64400e1861cc0d7b98d570a1926d5408ec60cd", + "nateraw/real-esrgan: BSD-3-Clause; https://huggingface.co/nateraw/real-esrgan/tree/42efb9c3eeed1f5c0c8a626cf5f7f4481dfbb094" ], "aiGenerated": true, "humanLikenessConsent": "synthetic", "marks": [], - "requiredAttribution": [ - "Alpha-VLLM/Lumina-Next-SFT-diffusers@0ee5ec90043acf5cb41fe96274af36eb7fad8d95 https://huggingface.co/Alpha-VLLM/Lumina-Next-SFT-diffusers/tree/0ee5ec90043acf5cb41fe96274af36eb7fad8d95" - ], + "requiredAttribution": [], "assetLicense": "Apache-2.0", - "reviewedBy": "MoDiff workspace maintainer", - "reviewedAt": "2026-11-25", - "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", - "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", - "provenanceTemplateId": "lumina_opal_pendant_in_limestone" + "reviewedBy": "SOURAV DAS", + "reviewedAt": "2026-11-10", + "reviewClass": "per-file-maintainer-accepted-native-gallery-registration", + "provenanceTemplateId": "ltx_video_multi_reference", + "sourceRightsAttestation": "The maintainer accepted the exact review-gallery asset and expressly requested its registration.", + "acceptedOutputSHA256": "debfbe7ec1d1afbba34d05c208762f472fc251434d347ef6021e8476539d7644", + "humanApprovalPacketSHA256": "73ddf9ea7fc27eccc6b93817809421a008ce0fd2fb3080ffbdc5831a09205304" }, { - "path": "template-gallery/manifest.json", - "sha256": "sha256:bytes:f560bf35f17e3c3f5f117c90f84d4bcedbc53e7eb536f462cbdbac96069b67f5", + "path": "template-gallery/ltx_video_multi_reference.mp4", + "sha256": "sha256:bytes:debfbe7ec1d1afbba34d05c208762f472fc251434d347ef6021e8476539d7644", "publishDecision": "approved", "holdReason": null, - "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", - "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": null, - "sourceRevision": null, - "sourceLicense": "MoDiff-authored Gallery metadata", - "modelTerms": [], - "aiGenerated": false, - "humanLikenessConsent": "not-applicable", + "creatorOrRightsholder": "MoDiff project maintainers", + "creationMethod": "Maintainer-accepted native MoDiff output or its deterministic Gallery preview", + "sourceUrl": "https://huggingface.co/Lightricks/LTX-Video-0.9.8-13B-distilled/tree/7c64400e1861cc0d7b98d570a1926d5408ec60cd", + "sourceRevision": "Lightricks/LTX-Video-0.9.8-13B-distilled@7c64400e1861cc0d7b98d570a1926d5408ec60cd | nateraw/real-esrgan@42efb9c3eeed1f5c0c8a626cf5f7f4481dfbb094", + "sourceLicense": "Original generation or recorded workflow input; see modelTerms", + "modelTerms": [ + "Lightricks/LTX-Video-0.9.8-13B-distilled: LTXV Open Weights License 0.X; https://huggingface.co/Lightricks/LTX-Video-0.9.8-13B-distilled/tree/7c64400e1861cc0d7b98d570a1926d5408ec60cd", + "nateraw/real-esrgan: BSD-3-Clause; https://huggingface.co/nateraw/real-esrgan/tree/42efb9c3eeed1f5c0c8a626cf5f7f4481dfbb094" + ], + "aiGenerated": true, + "humanLikenessConsent": "synthetic", "marks": [], "requiredAttribution": [], "assetLicense": "Apache-2.0", - "reviewedBy": "MoDiff workspace maintainer", - "reviewedAt": "2026-11-25", - "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "60b01498a2df5f4e4622cdc2f9a43c83d187820780d2425a19718c13707db501", - "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained." + "reviewedBy": "SOURAV DAS", + "reviewedAt": "2026-11-10", + "reviewClass": "per-file-maintainer-accepted-native-gallery-registration", + "provenanceTemplateId": "ltx_video_multi_reference", + "sourceRightsAttestation": "The maintainer accepted the exact review-gallery asset and expressly requested its registration.", + "acceptedOutputSHA256": "debfbe7ec1d1afbba34d05c208762f472fc251434d347ef6021e8476539d7644", + "humanApprovalPacketSHA256": "73ddf9ea7fc27eccc6b93817809421a008ce0fd2fb3080ffbdc5831a09205304" }, { - "path": "template-gallery/marigold_depth_synthetic_ramp.webp", - "sha256": "sha256:bytes:129d4b01ca70f532e672214e85be073482aed461465b863467f0c871bf7c94db", + "path": "template-gallery/ltx_video_multi_reference.poster.png", + "sha256": "sha256:bytes:0f4968be6c8acdd441197f8f3024e48ae103255925869531903af37bb347d859", "publishDecision": "approved", "holdReason": null, - "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", - "creationMethod": "Maintainer-approved exact retained model output", - "sourceUrl": "https://huggingface.co/prs-eth/marigold-depth-lcm-v1-0/tree/04a73502f7fd8fc5e59947b9df3b2266d71d6849", - "sourceRevision": "prs-eth/marigold-depth-lcm-v1-0@04a73502f7fd8fc5e59947b9df3b2266d71d6849", - "sourceLicense": "Generated output subject to recorded model terms", - "modelTerms": [ - "prs-eth/marigold-depth-lcm-v1-0@04a73502f7fd8fc5e59947b9df3b2266d71d6849: Apache-2.0 publisher model declaration; https://huggingface.co/prs-eth/marigold-depth-lcm-v1-0/tree/04a73502f7fd8fc5e59947b9df3b2266d71d6849" - ], - "aiGenerated": true, - "humanLikenessConsent": "not-applicable", - "marks": [], - "requiredAttribution": [ - "prs-eth/marigold-depth-lcm-v1-0@04a73502f7fd8fc5e59947b9df3b2266d71d6849 — https://huggingface.co/prs-eth/marigold-depth-lcm-v1-0/tree/04a73502f7fd8fc5e59947b9df3b2266d71d6849" - ], - "assetLicense": "MoDiff-Gallery-Restricted-1.0", - "reviewedBy": "MoDiff workspace maintainer", - "reviewedAt": "2026-11-19", - "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "e604b0284a57b65b20343c7776511ae15bef922c7e104c09f0f6931eec610d2d", - "publicationBasis": "Activate and publish the two approved Gallery candidates using their retained native runs.", - "provenanceTemplateId": "marigold_depth_synthetic_ramp" - }, - { - "creatorOrRightsholder": "MoDiff project maintainers, subject to the approved synthetic source and recorded model terms", - "creationMethod": "Maintainer-accepted native local AI-generated output or deterministic poster/card derivative; original full media is unchanged", - "sourceUrl": "https://huggingface.co/MiniMaxAI/MiniMax-Music3/tree/fbdf52fbaaca799592917417eb05f1899f1255ec", - "sourceRevision": "MiniMaxAI/MiniMax-Music3@fbdf52fbaaca799592917417eb05f1899f1255ec", - "sourceLicense": "Generated media; retained model and output terms apply", + "creatorOrRightsholder": "MoDiff project maintainers", + "creationMethod": "Maintainer-accepted native MoDiff output or its deterministic Gallery preview", + "sourceUrl": "https://huggingface.co/Lightricks/LTX-Video-0.9.8-13B-distilled/tree/7c64400e1861cc0d7b98d570a1926d5408ec60cd", + "sourceRevision": "Lightricks/LTX-Video-0.9.8-13B-distilled@7c64400e1861cc0d7b98d570a1926d5408ec60cd | nateraw/real-esrgan@42efb9c3eeed1f5c0c8a626cf5f7f4481dfbb094", + "sourceLicense": "Original generation or recorded workflow input; see modelTerms", "modelTerms": [ - "MiniMaxAI/MiniMax-Music3: MiniMax-Music3 Community License and Acceptable Use Policy; https://huggingface.co/MiniMaxAI/MiniMax-Music3/tree/fbdf52fbaaca799592917417eb05f1899f1255ec" + "Lightricks/LTX-Video-0.9.8-13B-distilled: LTXV Open Weights License 0.X; https://huggingface.co/Lightricks/LTX-Video-0.9.8-13B-distilled/tree/7c64400e1861cc0d7b98d570a1926d5408ec60cd", + "nateraw/real-esrgan: BSD-3-Clause; https://huggingface.co/nateraw/real-esrgan/tree/42efb9c3eeed1f5c0c8a626cf5f7f4481dfbb094" ], "aiGenerated": true, "humanLikenessConsent": "synthetic", "marks": [], - "requiredAttribution": ["AI-generated music — MiniMax-Music3"], + "requiredAttribution": [], "assetLicense": "Apache-2.0", - "publisherLicenseUrl": "https://huggingface.co/MiniMaxAI/MiniMax-Music3/blob/fbdf52fbaaca799592917417eb05f1899f1255ec/LICENSE", - "path": "template-gallery/minimax_music3_chamber_pop.wav", - "sha256": "sha256:bytes:f98a748584966f463bbac263c2b3a00769c70e074e26b2f91567e76381b7fd6b", - "publishDecision": "approved", - "holdReason": null, "reviewedBy": "SOURAV DAS", - "reviewedAt": "2026-11-13", - "reviewClass": "per-file-maintainer-accepted-native-six-registration", - "humanApprovalPacketSHA256": "03b66b4631afb15032d62a1705331b56f6b12c4882c23945175ec92cc45a506f", - "publicationBasis": "Register the six approved assets now while Moonflower runs on Linux. Use Windows in parallel wherever possible, and keep the longer workflows separate for AMD cloud.", - "provenanceTemplateId": "minimax_music3_chamber_pop" + "reviewedAt": "2026-11-10", + "reviewClass": "per-file-maintainer-accepted-native-gallery-registration", + "provenanceTemplateId": "ltx_video_multi_reference", + "sourceRightsAttestation": "The maintainer accepted the exact review-gallery asset and expressly requested its registration.", + "acceptedOutputSHA256": "debfbe7ec1d1afbba34d05c208762f472fc251434d347ef6021e8476539d7644", + "humanApprovalPacketSHA256": "73ddf9ea7fc27eccc6b93817809421a008ce0fd2fb3080ffbdc5831a09205304" }, { - "path": "template-gallery/ochre_paper_pavilion.webp", - "sha256": "sha256:bytes:6fd64eda0cd96aca0f5c9d860fec6fed090426ff1c5cd5c9434a639755c06c1e", + "path": "template-gallery/ltx_video_text_to_video.card-poster.png", + "sha256": "sha256:bytes:e131e2f676e04382117e77deeede145851fff469819d173073354cc5033b116d", "publishDecision": "approved", "holdReason": null, - "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", - "creationMethod": "Exact approved file captured from a saved MoDiff workflow", - "sourceUrl": "https://huggingface.co/zai-org/CogView3-Plus-3B/tree/5d70e40732ac0efac98524c51a7fa9c82707f1e5", - "sourceRevision": "zai-org/CogView3-Plus-3B@5d70e40732ac0efac98524c51a7fa9c82707f1e5", - "sourceLicense": "Maintainer-authorized file with publisher terms retained", + "creatorOrRightsholder": "MoDiff project maintainers, subject to the recorded source and model terms", + "creationMethod": "AI-generated Gallery media or deterministic derivative", + "sourceUrl": "https://huggingface.co/Lightricks/LTX-Video-0.9.8-13B-distilled/tree/7c64400e1861cc0d7b98d570a1926d5408ec60cd", + "sourceRevision": "Lightricks/LTX-Video-0.9.8-13B-distilled@7c64400e1861cc0d7b98d570a1926d5408ec60cd | nateraw/real-esrgan@42efb9c3eeed1f5c0c8a626cf5f7f4481dfbb094", + "sourceLicense": "Original generation or recorded workflow input; see modelTerms", "modelTerms": [ - "apache-2.0. https://huggingface.co/zai-org/CogView3-Plus-3B/tree/5d70e40732ac0efac98524c51a7fa9c82707f1e5" + "Lightricks/LTX-Video-0.9.8-13B-distilled: LTXV Open Weights License 0.X; https://huggingface.co/Lightricks/LTX-Video-0.9.8-13B-distilled/tree/7c64400e1861cc0d7b98d570a1926d5408ec60cd", + "nateraw/real-esrgan: BSD-3-Clause; https://huggingface.co/nateraw/real-esrgan/tree/42efb9c3eeed1f5c0c8a626cf5f7f4481dfbb094" ], "aiGenerated": true, "humanLikenessConsent": "synthetic", "marks": [], - "requiredAttribution": [ - "zai-org/CogView3-Plus-3B@5d70e40732ac0efac98524c51a7fa9c82707f1e5 https://huggingface.co/zai-org/CogView3-Plus-3B/tree/5d70e40732ac0efac98524c51a7fa9c82707f1e5" - ], - "assetLicense": "Apache-2.0", - "reviewedBy": "MoDiff workspace maintainer", - "reviewedAt": "2026-11-25", - "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", - "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", - "provenanceTemplateId": "ochre_paper_pavilion" + "requiredAttribution": [], + "assetLicense": "MoDiff-Gallery-Restricted-1.0", + "reviewedBy": "SOURAV DAS", + "reviewedAt": "2026-08-03", + "reviewClass": "standard-human-attestation", + "provenanceTemplateId": "ltx_video_text_to_video" }, { - "path": "template-gallery/omnigen_cobalt_against_soft_apricot.webp", - "sha256": "sha256:bytes:305c3d2b35bc57b3151a332bc6084cbdf962337572c5e15ae3d7d546a07a1ead", + "path": "template-gallery/ltx_video_text_to_video.card-preview.mp4", + "sha256": "sha256:bytes:9b8defe3284dcc8bdb9e83485c93c73b65e8c5ade41afe5a383235b04d81b265", "publishDecision": "approved", "holdReason": null, - "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", - "creationMethod": "Exact approved file captured from a saved MoDiff workflow", - "sourceUrl": "https://huggingface.co/Shitao/OmniGen-v1-diffusers/tree/016e2f61d12a98303f6bbdf122687694d7984268", - "sourceRevision": "Shitao/OmniGen-v1-diffusers@016e2f61d12a98303f6bbdf122687694d7984268", - "sourceLicense": "Maintainer-authorized file with publisher terms retained", + "creatorOrRightsholder": "MoDiff project maintainers", + "creationMethod": "Maintainer-accepted native MoDiff output or its deterministic Gallery preview", + "sourceUrl": "https://huggingface.co/Lightricks/LTX-Video-0.9.8-13B-distilled/tree/7c64400e1861cc0d7b98d570a1926d5408ec60cd", + "sourceRevision": "Lightricks/LTX-Video-0.9.8-13B-distilled@7c64400e1861cc0d7b98d570a1926d5408ec60cd | nateraw/real-esrgan@42efb9c3eeed1f5c0c8a626cf5f7f4481dfbb094", + "sourceLicense": "Original generation or recorded workflow input; see modelTerms", "modelTerms": [ - "Publisher model terms at https://huggingface.co/Shitao/OmniGen-v1-diffusers/tree/016e2f61d12a98303f6bbdf122687694d7984268" + "Lightricks/LTX-Video-0.9.8-13B-distilled: LTXV Open Weights License 0.X; https://huggingface.co/Lightricks/LTX-Video-0.9.8-13B-distilled/tree/7c64400e1861cc0d7b98d570a1926d5408ec60cd", + "nateraw/real-esrgan: BSD-3-Clause; https://huggingface.co/nateraw/real-esrgan/tree/42efb9c3eeed1f5c0c8a626cf5f7f4481dfbb094" ], "aiGenerated": true, "humanLikenessConsent": "synthetic", "marks": [], - "requiredAttribution": [ - "Shitao/OmniGen-v1-diffusers@016e2f61d12a98303f6bbdf122687694d7984268 https://huggingface.co/Shitao/OmniGen-v1-diffusers/tree/016e2f61d12a98303f6bbdf122687694d7984268" - ], + "requiredAttribution": [], "assetLicense": "Apache-2.0", - "reviewedBy": "MoDiff workspace maintainer", - "reviewedAt": "2026-11-25", - "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "60b01498a2df5f4e4622cdc2f9a43c83d187820780d2425a19718c13707db501", - "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", - "provenanceTemplateId": "omnigen_cobalt_against_soft_apricot" + "reviewedBy": "SOURAV DAS", + "reviewedAt": "2026-11-10", + "reviewClass": "per-file-maintainer-accepted-native-gallery-registration", + "provenanceTemplateId": "ltx_video_text_to_video", + "sourceRightsAttestation": "The maintainer accepted the exact review-gallery asset and expressly requested its registration.", + "acceptedOutputSHA256": "9b2b976acb65a6c4a9c2255e50d2b7a65a42bb54146d6d2a39625dfdd0b0fe14", + "humanApprovalPacketSHA256": "73ddf9ea7fc27eccc6b93817809421a008ce0fd2fb3080ffbdc5831a09205304" }, { - "path": "template-gallery/omnigen_tulips_after_rain.webp", - "sha256": "sha256:bytes:57d5f196f4abad78099482deeb23f37810075e6d708e289ca8eb4617acdbdde7", + "path": "template-gallery/ltx_video_text_to_video.mp4", + "sha256": "sha256:bytes:9b2b976acb65a6c4a9c2255e50d2b7a65a42bb54146d6d2a39625dfdd0b0fe14", "publishDecision": "approved", "holdReason": null, - "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", - "creationMethod": "Exact approved file captured from a saved MoDiff workflow", - "sourceUrl": "https://huggingface.co/Shitao/OmniGen-v1-diffusers/tree/016e2f61d12a98303f6bbdf122687694d7984268", - "sourceRevision": "Shitao/OmniGen-v1-diffusers@016e2f61d12a98303f6bbdf122687694d7984268", - "sourceLicense": "Maintainer-authorized file with publisher terms retained", + "creatorOrRightsholder": "MoDiff project maintainers", + "creationMethod": "Maintainer-accepted native MoDiff output or its deterministic Gallery preview", + "sourceUrl": "https://huggingface.co/Lightricks/LTX-Video-0.9.8-13B-distilled/tree/7c64400e1861cc0d7b98d570a1926d5408ec60cd", + "sourceRevision": "Lightricks/LTX-Video-0.9.8-13B-distilled@7c64400e1861cc0d7b98d570a1926d5408ec60cd | nateraw/real-esrgan@42efb9c3eeed1f5c0c8a626cf5f7f4481dfbb094", + "sourceLicense": "Original generation or recorded workflow input; see modelTerms", "modelTerms": [ - "Publisher model terms at https://huggingface.co/Shitao/OmniGen-v1-diffusers/tree/016e2f61d12a98303f6bbdf122687694d7984268" + "Lightricks/LTX-Video-0.9.8-13B-distilled: LTXV Open Weights License 0.X; https://huggingface.co/Lightricks/LTX-Video-0.9.8-13B-distilled/tree/7c64400e1861cc0d7b98d570a1926d5408ec60cd", + "nateraw/real-esrgan: BSD-3-Clause; https://huggingface.co/nateraw/real-esrgan/tree/42efb9c3eeed1f5c0c8a626cf5f7f4481dfbb094" ], "aiGenerated": true, "humanLikenessConsent": "synthetic", "marks": [], - "requiredAttribution": [ - "Shitao/OmniGen-v1-diffusers@016e2f61d12a98303f6bbdf122687694d7984268 https://huggingface.co/Shitao/OmniGen-v1-diffusers/tree/016e2f61d12a98303f6bbdf122687694d7984268" - ], + "requiredAttribution": [], "assetLicense": "Apache-2.0", - "reviewedBy": "MoDiff workspace maintainer", - "reviewedAt": "2026-11-25", - "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "c2df9edb92f8ff905b6c9a138a285e67c621f3d2dfa3232f859aaf963b725aca", - "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", - "provenanceTemplateId": "omnigen_tulips_after_rain" + "reviewedBy": "SOURAV DAS", + "reviewedAt": "2026-11-10", + "reviewClass": "per-file-maintainer-accepted-native-gallery-registration", + "provenanceTemplateId": "ltx_video_text_to_video", + "sourceRightsAttestation": "The maintainer accepted the exact review-gallery asset and expressly requested its registration.", + "acceptedOutputSHA256": "9b2b976acb65a6c4a9c2255e50d2b7a65a42bb54146d6d2a39625dfdd0b0fe14", + "humanApprovalPacketSHA256": "73ddf9ea7fc27eccc6b93817809421a008ce0fd2fb3080ffbdc5831a09205304" }, { - "path": "template-gallery/persimmon_glaze.webp", - "sha256": "sha256:bytes:0a8f757232720068dbf3ad94fa81e525c7e9d7260853680328019c43ded30279", + "path": "template-gallery/ltx_video_text_to_video.poster.png", + "sha256": "sha256:bytes:c1626d18f12d4cb226de81cca46c0ef9c57628707246efb237f12c30214292fd", "publishDecision": "approved", "holdReason": null, - "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", - "creationMethod": "Exact approved file captured from a saved MoDiff workflow", - "sourceUrl": "https://huggingface.co/Efficient-Large-Model/Sana_600M_1024px_diffusers/tree/28f3af7689de15f3883d5863059a2fca0aa9b829", - "sourceRevision": "Efficient-Large-Model/Sana_600M_1024px_diffusers@28f3af7689de15f3883d5863059a2fca0aa9b829", - "sourceLicense": "Maintainer-authorized file with publisher terms retained", + "creatorOrRightsholder": "MoDiff project maintainers", + "creationMethod": "Maintainer-accepted native MoDiff output or its deterministic Gallery preview", + "sourceUrl": "https://huggingface.co/Lightricks/LTX-Video-0.9.8-13B-distilled/tree/7c64400e1861cc0d7b98d570a1926d5408ec60cd", + "sourceRevision": "Lightricks/LTX-Video-0.9.8-13B-distilled@7c64400e1861cc0d7b98d570a1926d5408ec60cd | nateraw/real-esrgan@42efb9c3eeed1f5c0c8a626cf5f7f4481dfbb094", + "sourceLicense": "Original generation or recorded workflow input; see modelTerms", "modelTerms": [ - "apache-2.0. https://huggingface.co/Efficient-Large-Model/Sana_600M_1024px_diffusers/tree/28f3af7689de15f3883d5863059a2fca0aa9b829" + "Lightricks/LTX-Video-0.9.8-13B-distilled: LTXV Open Weights License 0.X; https://huggingface.co/Lightricks/LTX-Video-0.9.8-13B-distilled/tree/7c64400e1861cc0d7b98d570a1926d5408ec60cd", + "nateraw/real-esrgan: BSD-3-Clause; https://huggingface.co/nateraw/real-esrgan/tree/42efb9c3eeed1f5c0c8a626cf5f7f4481dfbb094" ], "aiGenerated": true, "humanLikenessConsent": "synthetic", "marks": [], - "requiredAttribution": [ - "Efficient-Large-Model/Sana_600M_1024px_diffusers@28f3af7689de15f3883d5863059a2fca0aa9b829 https://huggingface.co/Efficient-Large-Model/Sana_600M_1024px_diffusers/tree/28f3af7689de15f3883d5863059a2fca0aa9b829" - ], + "requiredAttribution": [], "assetLicense": "Apache-2.0", - "reviewedBy": "MoDiff workspace maintainer", - "reviewedAt": "2026-11-25", - "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", - "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", - "provenanceTemplateId": "persimmon_glaze" + "reviewedBy": "SOURAV DAS", + "reviewedAt": "2026-11-10", + "reviewClass": "per-file-maintainer-accepted-native-gallery-registration", + "provenanceTemplateId": "ltx_video_text_to_video", + "sourceRightsAttestation": "The maintainer accepted the exact review-gallery asset and expressly requested its registration.", + "acceptedOutputSHA256": "9b2b976acb65a6c4a9c2255e50d2b7a65a42bb54146d6d2a39625dfdd0b0fe14", + "humanApprovalPacketSHA256": "73ddf9ea7fc27eccc6b93817809421a008ce0fd2fb3080ffbdc5831a09205304" }, { - "path": "template-gallery/pomegranate_on_blue_linen.webp", - "sha256": "sha256:bytes:ec62b729d1e4b37f37bd7fd8838b831ab10bd82662adc3a359a371cc7e756861", + "path": "template-gallery/ltx_video_video_to_video.card-poster.png", + "sha256": "sha256:bytes:e5a259b5ab8a0b21b31cb8ba23ae7c0d45a7c9de193e76c1b2608c5709d0fe8c", "publishDecision": "approved", "holdReason": null, - "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", - "creationMethod": "Exact approved file captured from a saved MoDiff workflow", - "sourceUrl": "https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14", - "sourceRevision": "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14", - "sourceLicense": "Maintainer-authorized file with publisher terms retained", + "creatorOrRightsholder": "MoDiff project maintainers, subject to the recorded source and model terms", + "creationMethod": "AI-generated Gallery media or deterministic derivative", + "sourceUrl": "https://huggingface.co/datasets/huggingface/documentation-images", + "sourceRevision": "Lightricks/LTX-Video-0.9.8-13B-distilled@7c64400e1861cc0d7b98d570a1926d5408ec60cd | nateraw/real-esrgan@42efb9c3eeed1f5c0c8a626cf5f7f4481dfbb094", + "sourceLicense": "CC-BY-NC-SA-4.0", "modelTerms": [ - "creativeml-openrail-m. https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14" + "Lightricks/LTX-Video-0.9.8-13B-distilled: LTXV Open Weights License 0.X; https://huggingface.co/Lightricks/LTX-Video-0.9.8-13B-distilled/tree/7c64400e1861cc0d7b98d570a1926d5408ec60cd", + "nateraw/real-esrgan: BSD-3-Clause; https://huggingface.co/nateraw/real-esrgan/tree/42efb9c3eeed1f5c0c8a626cf5f7f4481dfbb094" ], "aiGenerated": true, "humanLikenessConsent": "synthetic", "marks": [], "requiredAttribution": [ - "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14 https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14" + "Source: Hugging Face documentation-images Dataset, CC BY-NC-SA 4.0; modified by the MoDiff LTX workflow." ], - "assetLicense": "Apache-2.0", - "reviewedBy": "MoDiff workspace maintainer", - "reviewedAt": "2026-11-25", - "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", - "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", - "provenanceTemplateId": "pomegranate_on_blue_linen" + "assetLicense": "CC-BY-NC-SA-4.0", + "reviewedBy": "SOURAV DAS", + "reviewedAt": "2026-08-03", + "reviewClass": "standard-human-attestation", + "provenanceTemplateId": "ltx_video_video_to_video" }, { - "path": "template-gallery/porcelain_on_slate_linen.webp", - "sha256": "sha256:bytes:78a0954f82ae30dcc721d9087a54f62063d8b9ded7204838864b1d981a1e763d", - "publishDecision": "approved", - "holdReason": null, - "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", - "creationMethod": "Exact approved file captured from a saved MoDiff workflow", - "sourceUrl": "https://huggingface.co/SimianLuo/LCM_Dreamshaper_v7/tree/a85df6a8bd976cdd08b4fd8f3b73f229c9e54df5", - "sourceRevision": "SimianLuo/LCM_Dreamshaper_v7@a85df6a8bd976cdd08b4fd8f3b73f229c9e54df5", - "sourceLicense": "Maintainer-authorized file with publisher terms retained", + "creatorOrRightsholder": "MoDiff project maintainers, subject to the approved synthetic source and recorded model terms", + "creationMethod": "Maintainer-accepted native local AI-generated output or deterministic poster/card derivative; original full media is unchanged", + "sourceUrl": "https://huggingface.co/Lightricks/LTX-Video-0.9.8-13B-distilled/tree/7c64400e1861cc0d7b98d570a1926d5408ec60cd", + "sourceRevision": "Lightricks/LTX-Video-0.9.8-13B-distilled@7c64400e1861cc0d7b98d570a1926d5408ec60cd | nateraw/real-esrgan@42efb9c3eeed1f5c0c8a626cf5f7f4481dfbb094", + "sourceLicense": "Generated media; retained model and output terms apply", "modelTerms": [ - "mit. https://huggingface.co/SimianLuo/LCM_Dreamshaper_v7/tree/a85df6a8bd976cdd08b4fd8f3b73f229c9e54df5" + "Lightricks/LTX-Video-0.9.8-13B-distilled: LTX-Video Open Weights License and output provisions; https://huggingface.co/Lightricks/LTX-Video-0.9.8-13B-distilled/tree/7c64400e1861cc0d7b98d570a1926d5408ec60cd", + "nateraw/real-esrgan: BSD-3-Clause model terms; https://huggingface.co/nateraw/real-esrgan/tree/42efb9c3eeed1f5c0c8a626cf5f7f4481dfbb094" ], "aiGenerated": true, - "humanLikenessConsent": "synthetic", + "humanLikenessConsent": "not-applicable", "marks": [], - "requiredAttribution": [ - "SimianLuo/LCM_Dreamshaper_v7@a85df6a8bd976cdd08b4fd8f3b73f229c9e54df5 https://huggingface.co/SimianLuo/LCM_Dreamshaper_v7/tree/a85df6a8bd976cdd08b4fd8f3b73f229c9e54df5" - ], + "requiredAttribution": [], "assetLicense": "Apache-2.0", - "reviewedBy": "MoDiff workspace maintainer", - "reviewedAt": "2026-11-25", - "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", - "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", - "provenanceTemplateId": "porcelain_on_slate_linen" - }, - { - "path": "template-gallery/posters/wan_a14b_cloudbreak_over_the_ridges.png", - "sha256": "sha256:bytes:c824b505dc5145519de68ecdd4eb3618f214bc8e3aa6a8fd8fada7433b1f509e", + "path": "template-gallery/ltx_video_video_to_video.card-preview.mp4", + "sha256": "sha256:bytes:f414aaca530e5c7cf7792647a2a0c0efce2792de518e776f9efc3632f0d99306", "publishDecision": "approved", "holdReason": null, - "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", - "creationMethod": "Exact approved file captured from a saved MoDiff workflow", - "sourceUrl": "https://huggingface.co/Wan-AI/Wan2.2-T2V-A14B-Diffusers/tree/5be7df9619b54f4e2667b2755bc6a756675b5cd7", - "sourceRevision": "Wan-AI/Wan2.2-T2V-A14B-Diffusers@5be7df9619b54f4e2667b2755bc6a756675b5cd7", - "sourceLicense": "Maintainer-authorized file with publisher terms retained", + "reviewedBy": "SOURAV DAS", + "reviewedAt": "2026-11-13", + "reviewClass": "per-file-maintainer-accepted-native-six-registration", + "humanApprovalPacketSHA256": "03b66b4631afb15032d62a1705331b56f6b12c4882c23945175ec92cc45a506f", + "publicationBasis": "Register the six approved assets now while Moonflower runs on Linux. Use Windows in parallel wherever possible, and keep the longer workflows separate for AMD cloud.", + "provenanceTemplateId": "ltx_video_video_to_video" + }, + { + "creatorOrRightsholder": "MoDiff project maintainers, subject to the approved synthetic source and recorded model terms", + "creationMethod": "Maintainer-accepted native local AI-generated output or deterministic poster/card derivative; original full media is unchanged", + "sourceUrl": "https://huggingface.co/Lightricks/LTX-Video-0.9.8-13B-distilled/tree/7c64400e1861cc0d7b98d570a1926d5408ec60cd", + "sourceRevision": "Lightricks/LTX-Video-0.9.8-13B-distilled@7c64400e1861cc0d7b98d570a1926d5408ec60cd | nateraw/real-esrgan@42efb9c3eeed1f5c0c8a626cf5f7f4481dfbb094", + "sourceLicense": "Generated media; retained model and output terms apply", "modelTerms": [ - "Publisher model terms at https://huggingface.co/Wan-AI/Wan2.2-T2V-A14B-Diffusers/tree/5be7df9619b54f4e2667b2755bc6a756675b5cd7" + "Lightricks/LTX-Video-0.9.8-13B-distilled: LTX-Video Open Weights License and output provisions; https://huggingface.co/Lightricks/LTX-Video-0.9.8-13B-distilled/tree/7c64400e1861cc0d7b98d570a1926d5408ec60cd", + "nateraw/real-esrgan: BSD-3-Clause model terms; https://huggingface.co/nateraw/real-esrgan/tree/42efb9c3eeed1f5c0c8a626cf5f7f4481dfbb094" ], - "aiGenerated": false, + "aiGenerated": true, "humanLikenessConsent": "not-applicable", "marks": [], - "requiredAttribution": [ - "Wan-AI/Wan2.2-T2V-A14B-Diffusers@5be7df9619b54f4e2667b2755bc6a756675b5cd7 https://huggingface.co/Wan-AI/Wan2.2-T2V-A14B-Diffusers/tree/5be7df9619b54f4e2667b2755bc6a756675b5cd7" + "requiredAttribution": [], + "assetLicense": "Apache-2.0", + "path": "template-gallery/ltx_video_video_to_video.mp4", + "sha256": "sha256:bytes:7ecb7be76078fd602869629b2eba4534382afff58e779e0c70287041e0934b44", + "publishDecision": "approved", + "holdReason": null, + "reviewedBy": "SOURAV DAS", + "reviewedAt": "2026-11-13", + "reviewClass": "per-file-maintainer-accepted-native-six-registration", + "humanApprovalPacketSHA256": "03b66b4631afb15032d62a1705331b56f6b12c4882c23945175ec92cc45a506f", + "publicationBasis": "Register the six approved assets now while Moonflower runs on Linux. Use Windows in parallel wherever possible, and keep the longer workflows separate for AMD cloud.", + "provenanceTemplateId": "ltx_video_video_to_video" + }, + { + "creatorOrRightsholder": "MoDiff project maintainers, subject to the approved synthetic source and recorded model terms", + "creationMethod": "Maintainer-accepted native local AI-generated output or deterministic poster/card derivative; original full media is unchanged", + "sourceUrl": "https://huggingface.co/Lightricks/LTX-Video-0.9.8-13B-distilled/tree/7c64400e1861cc0d7b98d570a1926d5408ec60cd", + "sourceRevision": "Lightricks/LTX-Video-0.9.8-13B-distilled@7c64400e1861cc0d7b98d570a1926d5408ec60cd | nateraw/real-esrgan@42efb9c3eeed1f5c0c8a626cf5f7f4481dfbb094", + "sourceLicense": "Generated media; retained model and output terms apply", + "modelTerms": [ + "Lightricks/LTX-Video-0.9.8-13B-distilled: LTX-Video Open Weights License and output provisions; https://huggingface.co/Lightricks/LTX-Video-0.9.8-13B-distilled/tree/7c64400e1861cc0d7b98d570a1926d5408ec60cd", + "nateraw/real-esrgan: BSD-3-Clause model terms; https://huggingface.co/nateraw/real-esrgan/tree/42efb9c3eeed1f5c0c8a626cf5f7f4481dfbb094" ], + "aiGenerated": true, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [], "assetLicense": "Apache-2.0", - "reviewedBy": "MoDiff workspace maintainer", - "reviewedAt": "2026-11-25", - "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "ffeaa41a5c94b59135d2cdb15a5c7f79f073c15fd78792ce00a157398ab15d59", - "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", - "provenanceTemplateId": "wan_a14b_cloudbreak_over_the_ridges" + "path": "template-gallery/ltx_video_video_to_video.poster.png", + "sha256": "sha256:bytes:a51e109af8d0f913b6577a9a3f069629db849a895878c893c7c57b2a2292e033", + "publishDecision": "approved", + "holdReason": null, + "reviewedBy": "SOURAV DAS", + "reviewedAt": "2026-11-13", + "reviewClass": "per-file-maintainer-accepted-native-six-registration", + "humanApprovalPacketSHA256": "03b66b4631afb15032d62a1705331b56f6b12c4882c23945175ec92cc45a506f", + "publicationBasis": "Register the six approved assets now while Moonflower runs on Linux. Use Windows in parallel wherever possible, and keep the longer workflows separate for AMD cloud.", + "provenanceTemplateId": "ltx_video_video_to_video" }, { - "path": "template-gallery/quiet_current.webp", - "sha256": "sha256:bytes:c4db3876adb54a5f2bb9449ab4865601a24c2b486440f5c04d939a42a7f299a4", + "path": "template-gallery/lumina2_larch_on_glacial_pond.webp", + "sha256": "sha256:bytes:06491642cdf97ed7676ad237353957a42aa121a11d3f2423c1a4ac4dd6a53ee5", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Exact approved file captured from a saved MoDiff workflow", - "sourceUrl": "https://huggingface.co/zai-org/CogView4-6B/tree/63a52b7f6dace7033380cd6da14d0915eab3e6b5", - "sourceRevision": "zai-org/CogView4-6B@63a52b7f6dace7033380cd6da14d0915eab3e6b5", + "sourceUrl": "https://huggingface.co/Alpha-VLLM/Lumina-Image-2.0/tree/53504abd8178b30685b6c4c7a4cd181ff78b73e9", + "sourceRevision": "Alpha-VLLM/Lumina-Image-2.0@53504abd8178b30685b6c4c7a4cd181ff78b73e9", "sourceLicense": "Maintainer-authorized file with publisher terms retained", "modelTerms": [ - "apache-2.0. https://huggingface.co/zai-org/CogView4-6B/tree/63a52b7f6dace7033380cd6da14d0915eab3e6b5" + "Publisher model terms at https://huggingface.co/Alpha-VLLM/Lumina-Image-2.0/tree/53504abd8178b30685b6c4c7a4cd181ff78b73e9" ], "aiGenerated": true, "humanLikenessConsent": "synthetic", "marks": [], "requiredAttribution": [ - "zai-org/CogView4-6B@63a52b7f6dace7033380cd6da14d0915eab3e6b5 https://huggingface.co/zai-org/CogView4-6B/tree/63a52b7f6dace7033380cd6da14d0915eab3e6b5" + "Alpha-VLLM/Lumina-Image-2.0@53504abd8178b30685b6c4c7a4cd181ff78b73e9 https://huggingface.co/Alpha-VLLM/Lumina-Image-2.0/tree/53504abd8178b30685b6c4c7a4cd181ff78b73e9" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", - "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", - "provenanceTemplateId": "quiet_current" + "humanApprovalPacketSHA256": "c2df9edb92f8ff905b6c9a138a285e67c621f3d2dfa3232f859aaf963b725aca", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "lumina2_larch_on_glacial_pond" }, { - "path": "template-gallery/quiet_kiln_at_daybreak.webp", - "sha256": "sha256:bytes:3cbbe1b912086f3d97cbfd3e8ba4c077166d355b6ba0cf25a07441f2826aa6ab", + "path": "template-gallery/lumina_opal_pendant_in_limestone.webp", + "sha256": "sha256:bytes:3ff57e957b7db5ad20c9c37789a0536437846cdc8eb4737482cb7f026f25fb8e", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Exact approved file captured from a saved MoDiff workflow", - "sourceUrl": "https://huggingface.co/NucleusAI/Nucleus-Image/tree/5e963db4fd0a65c7e4faf53ca2d4eca567c4dcfa", - "sourceRevision": "NucleusAI/Nucleus-Image@5e963db4fd0a65c7e4faf53ca2d4eca567c4dcfa", + "sourceUrl": "https://huggingface.co/Alpha-VLLM/Lumina-Next-SFT-diffusers/tree/0ee5ec90043acf5cb41fe96274af36eb7fad8d95", + "sourceRevision": "Alpha-VLLM/Lumina-Next-SFT-diffusers@0ee5ec90043acf5cb41fe96274af36eb7fad8d95", "sourceLicense": "Maintainer-authorized file with publisher terms retained", "modelTerms": [ - "Apache-2.0 per the publisher at this revision. https://huggingface.co/NucleusAI/Nucleus-Image/tree/5e963db4fd0a65c7e4faf53ca2d4eca567c4dcfa" + "https://huggingface.co/Alpha-VLLM/Lumina-Next-SFT-diffusers/blob/0ee5ec90043acf5cb41fe96274af36eb7fad8d95/README.md" ], "aiGenerated": true, "humanLikenessConsent": "synthetic", "marks": [], "requiredAttribution": [ - "NucleusAI/Nucleus-Image@5e963db4fd0a65c7e4faf53ca2d4eca567c4dcfa https://huggingface.co/NucleusAI/Nucleus-Image/tree/5e963db4fd0a65c7e4faf53ca2d4eca567c4dcfa" + "Alpha-VLLM/Lumina-Next-SFT-diffusers@0ee5ec90043acf5cb41fe96274af36eb7fad8d95 https://huggingface.co/Alpha-VLLM/Lumina-Next-SFT-diffusers/tree/0ee5ec90043acf5cb41fe96274af36eb7fad8d95" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", @@ -7961,80 +8345,128 @@ "reviewClass": "per-file-maintainer-accepted-retained-registration", "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", - "provenanceTemplateId": "quiet_kiln_at_daybreak" + "provenanceTemplateId": "lumina_opal_pendant_in_limestone" }, { - "path": "template-gallery/qwen_2511_pale_amber_on_limestone.webp", - "sha256": "sha256:bytes:126660eff58b75eed79a942adc24e76f731decd65f83db098e72298141531772", + "path": "template-gallery/manifest.json", + "sha256": "sha256:bytes:858aa2f3d3d4340a820e48603cc1f82cd7a6d8f508b3ec2fb04c663218b42ca9", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", - "creationMethod": "Exact approved file captured from a saved MoDiff workflow", - "sourceUrl": "https://huggingface.co/Qwen/Qwen-Image-Edit-2511/tree/6f3ccc0b56e431dc6a0c2b2039706d7d26f22cb9", - "sourceRevision": "Qwen/Qwen-Image-Edit-2511@6f3ccc0b56e431dc6a0c2b2039706d7d26f22cb9", - "sourceLicense": "Maintainer-authorized file with publisher terms retained", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": null, + "sourceRevision": null, + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "d7e2fd301d16eede3da44cec1811930560ba0d958dfd46d8d0962eb3a22eea63", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained." + }, + { + "path": "template-gallery/marigold_depth_synthetic_ramp.webp", + "sha256": "sha256:bytes:129d4b01ca70f532e672214e85be073482aed461465b863467f0c871bf7c94db", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Maintainer-approved exact retained model output", + "sourceUrl": "https://huggingface.co/prs-eth/marigold-depth-lcm-v1-0/tree/04a73502f7fd8fc5e59947b9df3b2266d71d6849", + "sourceRevision": "prs-eth/marigold-depth-lcm-v1-0@04a73502f7fd8fc5e59947b9df3b2266d71d6849", + "sourceLicense": "Generated output subject to recorded model terms", "modelTerms": [ - "Publisher model terms at https://huggingface.co/Qwen/Qwen-Image-Edit-2511/tree/6f3ccc0b56e431dc6a0c2b2039706d7d26f22cb9" + "prs-eth/marigold-depth-lcm-v1-0@04a73502f7fd8fc5e59947b9df3b2266d71d6849: Apache-2.0 publisher model declaration; https://huggingface.co/prs-eth/marigold-depth-lcm-v1-0/tree/04a73502f7fd8fc5e59947b9df3b2266d71d6849" ], "aiGenerated": true, - "humanLikenessConsent": "synthetic", + "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "Qwen/Qwen-Image-Edit-2511@6f3ccc0b56e431dc6a0c2b2039706d7d26f22cb9 https://huggingface.co/Qwen/Qwen-Image-Edit-2511/tree/6f3ccc0b56e431dc6a0c2b2039706d7d26f22cb9" + "prs-eth/marigold-depth-lcm-v1-0@04a73502f7fd8fc5e59947b9df3b2266d71d6849 — https://huggingface.co/prs-eth/marigold-depth-lcm-v1-0/tree/04a73502f7fd8fc5e59947b9df3b2266d71d6849" ], - "assetLicense": "Apache-2.0", + "assetLicense": "MoDiff-Gallery-Restricted-1.0", "reviewedBy": "MoDiff workspace maintainer", - "reviewedAt": "2026-11-25", + "reviewedAt": "2026-11-19", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "60b01498a2df5f4e4622cdc2f9a43c83d187820780d2425a19718c13707db501", - "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", - "provenanceTemplateId": "qwen_2511_pale_amber_on_limestone" + "humanApprovalPacketSHA256": "e604b0284a57b65b20343c7776511ae15bef922c7e104c09f0f6931eec610d2d", + "publicationBasis": "Activate and publish the two approved Gallery candidates using their retained native runs.", + "provenanceTemplateId": "marigold_depth_synthetic_ramp" }, { - "path": "template-gallery/qwen_2512_cobalt_backdrop_repair.webp", - "sha256": "sha256:bytes:6b3a9c583a930c462ec1d484b71d26d97346862c2d4e4a25aa35c2062e3dfefe", + "creatorOrRightsholder": "MoDiff project maintainers, subject to the approved synthetic source and recorded model terms", + "creationMethod": "Maintainer-accepted native local AI-generated output or deterministic poster/card derivative; original full media is unchanged", + "sourceUrl": "https://huggingface.co/MiniMaxAI/MiniMax-Music3/tree/fbdf52fbaaca799592917417eb05f1899f1255ec", + "sourceRevision": "MiniMaxAI/MiniMax-Music3@fbdf52fbaaca799592917417eb05f1899f1255ec", + "sourceLicense": "Generated media; retained model and output terms apply", + "modelTerms": [ + "MiniMaxAI/MiniMax-Music3: MiniMax-Music3 Community License and Acceptable Use Policy; https://huggingface.co/MiniMaxAI/MiniMax-Music3/tree/fbdf52fbaaca799592917417eb05f1899f1255ec" + ], + "aiGenerated": true, + "humanLikenessConsent": "synthetic", + "marks": [], + "requiredAttribution": ["AI-generated music — MiniMax-Music3"], + "assetLicense": "Apache-2.0", + "publisherLicenseUrl": "https://huggingface.co/MiniMaxAI/MiniMax-Music3/blob/fbdf52fbaaca799592917417eb05f1899f1255ec/LICENSE", + "path": "template-gallery/minimax_music3_chamber_pop.wav", + "sha256": "sha256:bytes:f98a748584966f463bbac263c2b3a00769c70e074e26b2f91567e76381b7fd6b", + "publishDecision": "approved", + "holdReason": null, + "reviewedBy": "SOURAV DAS", + "reviewedAt": "2026-11-13", + "reviewClass": "per-file-maintainer-accepted-native-six-registration", + "humanApprovalPacketSHA256": "03b66b4631afb15032d62a1705331b56f6b12c4882c23945175ec92cc45a506f", + "publicationBasis": "Register the six approved assets now while Moonflower runs on Linux. Use Windows in parallel wherever possible, and keep the longer workflows separate for AMD cloud.", + "provenanceTemplateId": "minimax_music3_chamber_pop" + }, + { + "path": "template-gallery/ochre_paper_pavilion.webp", + "sha256": "sha256:bytes:6fd64eda0cd96aca0f5c9d860fec6fed090426ff1c5cd5c9434a639755c06c1e", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Exact approved file captured from a saved MoDiff workflow", - "sourceUrl": "https://huggingface.co/Qwen/Qwen-Image-2512/tree/25468b98e3276ca6700de15c6628e51b7de54a26", - "sourceRevision": "Qwen/Qwen-Image-2512@25468b98e3276ca6700de15c6628e51b7de54a26", + "sourceUrl": "https://huggingface.co/zai-org/CogView3-Plus-3B/tree/5d70e40732ac0efac98524c51a7fa9c82707f1e5", + "sourceRevision": "zai-org/CogView3-Plus-3B@5d70e40732ac0efac98524c51a7fa9c82707f1e5", "sourceLicense": "Maintainer-authorized file with publisher terms retained", "modelTerms": [ - "Publisher model terms at https://huggingface.co/Qwen/Qwen-Image-2512/tree/25468b98e3276ca6700de15c6628e51b7de54a26" + "apache-2.0. https://huggingface.co/zai-org/CogView3-Plus-3B/tree/5d70e40732ac0efac98524c51a7fa9c82707f1e5" ], "aiGenerated": true, "humanLikenessConsent": "synthetic", "marks": [], "requiredAttribution": [ - "Qwen/Qwen-Image-2512@25468b98e3276ca6700de15c6628e51b7de54a26 https://huggingface.co/Qwen/Qwen-Image-2512/tree/25468b98e3276ca6700de15c6628e51b7de54a26" + "zai-org/CogView3-Plus-3B@5d70e40732ac0efac98524c51a7fa9c82707f1e5 https://huggingface.co/zai-org/CogView3-Plus-3B/tree/5d70e40732ac0efac98524c51a7fa9c82707f1e5" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "60b01498a2df5f4e4622cdc2f9a43c83d187820780d2425a19718c13707db501", - "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", - "provenanceTemplateId": "qwen_2512_cobalt_backdrop_repair" + "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", + "provenanceTemplateId": "ochre_paper_pavilion" }, { - "path": "template-gallery/qwen_bookshop_gouache.webp", - "sha256": "sha256:bytes:555bab08051dc3a0381747c207ed241be3afd54c5c6113a8b4abf04010960201", + "path": "template-gallery/omnigen_cobalt_against_soft_apricot.webp", + "sha256": "sha256:bytes:305c3d2b35bc57b3151a332bc6084cbdf962337572c5e15ae3d7d546a07a1ead", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Exact approved file captured from a saved MoDiff workflow", - "sourceUrl": "https://huggingface.co/Qwen/Qwen-Image-2512/tree/25468b98e3276ca6700de15c6628e51b7de54a26", - "sourceRevision": "Qwen/Qwen-Image-2512@25468b98e3276ca6700de15c6628e51b7de54a26", + "sourceUrl": "https://huggingface.co/Shitao/OmniGen-v1-diffusers/tree/016e2f61d12a98303f6bbdf122687694d7984268", + "sourceRevision": "Shitao/OmniGen-v1-diffusers@016e2f61d12a98303f6bbdf122687694d7984268", "sourceLicense": "Maintainer-authorized file with publisher terms retained", "modelTerms": [ - "Publisher model terms at https://huggingface.co/Qwen/Qwen-Image-2512/tree/25468b98e3276ca6700de15c6628e51b7de54a26" + "Publisher model terms at https://huggingface.co/Shitao/OmniGen-v1-diffusers/tree/016e2f61d12a98303f6bbdf122687694d7984268" ], "aiGenerated": true, "humanLikenessConsent": "synthetic", "marks": [], "requiredAttribution": [ - "Qwen/Qwen-Image-2512@25468b98e3276ca6700de15c6628e51b7de54a26 https://huggingface.co/Qwen/Qwen-Image-2512/tree/25468b98e3276ca6700de15c6628e51b7de54a26" + "Shitao/OmniGen-v1-diffusers@016e2f61d12a98303f6bbdf122687694d7984268 https://huggingface.co/Shitao/OmniGen-v1-diffusers/tree/016e2f61d12a98303f6bbdf122687694d7984268" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", @@ -8042,385 +8474,397 @@ "reviewClass": "per-file-maintainer-accepted-retained-registration", "humanApprovalPacketSHA256": "60b01498a2df5f4e4622cdc2f9a43c83d187820780d2425a19718c13707db501", "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", - "provenanceTemplateId": "qwen_bookshop_gouache" + "provenanceTemplateId": "omnigen_cobalt_against_soft_apricot" }, { - "creatorOrRightsholder": "MoDiff project maintainers, with exact-file rights explicitly attested by the maintainer", - "creationMethod": "AI-generated native Qwen Edit character sheet using the existing approved synthetic portrait", - "sourceUrl": "https://huggingface.co/Qwen/Qwen-Image-Edit/tree/ac7f9318f633fc4b5778c59367c8128225f1e3de", - "sourceRevision": "Qwen/Qwen-Image-Edit@ac7f9318f633fc4b5778c59367c8128225f1e3de", - "sourceLicense": "Original generated image; exact-file redistribution rights explicitly attested; see pinned model terms", + "path": "template-gallery/omnigen_red_enamel_folded_linen.webp", + "sha256": "sha256:bytes:443062a26e22e3542e284f50d0274b7c70b881b3cce76568eb8eb22ce4c396d6", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Exact approved file captured from a saved MoDiff workflow", + "sourceUrl": "https://huggingface.co/Shitao/OmniGen-v1-diffusers/tree/016e2f61d12a98303f6bbdf122687694d7984268", + "sourceRevision": "Shitao/OmniGen-v1-diffusers@016e2f61d12a98303f6bbdf122687694d7984268", + "sourceLicense": "Maintainer-authorized file with publisher terms retained", "modelTerms": [ - "Qwen/Qwen-Image-Edit: Apache-2.0; https://huggingface.co/Qwen/Qwen-Image-Edit/tree/ac7f9318f633fc4b5778c59367c8128225f1e3de" + "Publisher model terms at https://huggingface.co/Shitao/OmniGen-v1-diffusers/tree/016e2f61d12a98303f6bbdf122687694d7984268" ], "aiGenerated": true, "humanLikenessConsent": "synthetic", "marks": [], - "requiredAttribution": [], - "sourceRightsAttestation": "I hold the rights needed to publish this exact generated angle sheet and its redacted technical/review records under Apache-2.0 in the existing MoDiff Gallery Dataset. The input is the existing approved synthetic character image; no external image inputs or real-person likeness references were used. The pinned Qwen model terms are retained.", - "path": "template-gallery/qwen_character_angles.webp", - "sha256": "sha256:bytes:4a3a001c82fb171de587b505ad269b493eceefa2c243b9c1b4d1a7205777c354", - "publishDecision": "approved", - "holdReason": null, + "requiredAttribution": [ + "Shitao/OmniGen-v1-diffusers@016e2f61d12a98303f6bbdf122687694d7984268 https://huggingface.co/Shitao/OmniGen-v1-diffusers/tree/016e2f61d12a98303f6bbdf122687694d7984268" + ], "assetLicense": "Apache-2.0", - "reviewedBy": "SOURAV DAS", - "reviewedAt": "2026-11-10", - "reviewClass": "per-file-human-approved-qwen-angle-native-image-registration", - "humanApprovalPacketSHA256": "9ca0bb197dbad8a2a27b25cef64aff67875aa6ea6f69fcb3bff581aae35b43d5", - "provenanceTemplateId": "qwen_character_angles" + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "d7e2fd301d16eede3da44cec1811930560ba0d958dfd46d8d0962eb3a22eea63", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "omnigen_red_enamel_folded_linen" }, { - "path": "template-gallery/qwen_cobalt_on_charcoal_slate.webp", - "sha256": "sha256:bytes:3cf9cea1b23834ec9dd589b37335250885be163eb4257155d8e76a08583dade2", + "path": "template-gallery/omnigen_tulips_after_rain.webp", + "sha256": "sha256:bytes:57d5f196f4abad78099482deeb23f37810075e6d708e289ca8eb4617acdbdde7", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Exact approved file captured from a saved MoDiff workflow", - "sourceUrl": "https://huggingface.co/Qwen/Qwen-Image-Edit/tree/ac7f9318f633fc4b5778c59367c8128225f1e3de", - "sourceRevision": "Qwen/Qwen-Image-Edit@ac7f9318f633fc4b5778c59367c8128225f1e3de", + "sourceUrl": "https://huggingface.co/Shitao/OmniGen-v1-diffusers/tree/016e2f61d12a98303f6bbdf122687694d7984268", + "sourceRevision": "Shitao/OmniGen-v1-diffusers@016e2f61d12a98303f6bbdf122687694d7984268", "sourceLicense": "Maintainer-authorized file with publisher terms retained", "modelTerms": [ - "Publisher model terms at https://huggingface.co/Qwen/Qwen-Image-Edit/tree/ac7f9318f633fc4b5778c59367c8128225f1e3de" + "Publisher model terms at https://huggingface.co/Shitao/OmniGen-v1-diffusers/tree/016e2f61d12a98303f6bbdf122687694d7984268" ], "aiGenerated": true, "humanLikenessConsent": "synthetic", "marks": [], "requiredAttribution": [ - "Qwen/Qwen-Image-Edit@ac7f9318f633fc4b5778c59367c8128225f1e3de https://huggingface.co/Qwen/Qwen-Image-Edit/tree/ac7f9318f633fc4b5778c59367c8128225f1e3de" + "Shitao/OmniGen-v1-diffusers@016e2f61d12a98303f6bbdf122687694d7984268 https://huggingface.co/Shitao/OmniGen-v1-diffusers/tree/016e2f61d12a98303f6bbdf122687694d7984268" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "60b01498a2df5f4e4622cdc2f9a43c83d187820780d2425a19718c13707db501", + "humanApprovalPacketSHA256": "c2df9edb92f8ff905b6c9a138a285e67c621f3d2dfa3232f859aaf963b725aca", "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", - "provenanceTemplateId": "qwen_cobalt_on_charcoal_slate" + "provenanceTemplateId": "omnigen_tulips_after_rain" }, { - "path": "template-gallery/qwen_control_image_layout.webp", - "sha256": "sha256:bytes:8aea21cd03849912745c7bbc1a2ceabad27cf3649947c6fb08fd86a7eec16c17", + "path": "template-gallery/persimmon_glaze.webp", + "sha256": "sha256:bytes:0a8f757232720068dbf3ad94fa81e525c7e9d7260853680328019c43ded30279", "publishDecision": "approved", "holdReason": null, - "creatorOrRightsholder": "MoDiff project maintainers", - "creationMethod": "Maintainer-accepted native MoDiff output or its deterministic Gallery preview", - "sourceUrl": "https://huggingface.co/InstantX/Qwen-Image-ControlNet-Union/tree/b13036f066d6dee7c20513e263d3d673055e9de8", - "sourceRevision": "InstantX/Qwen-Image-ControlNet-Union@b13036f066d6dee7c20513e263d3d673055e9de8 | Qwen/Qwen-Image-2512@25468b98e3276ca6700de15c6628e51b7de54a26", - "sourceLicense": "Original generation or recorded workflow input; see modelTerms", + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Exact approved file captured from a saved MoDiff workflow", + "sourceUrl": "https://huggingface.co/Efficient-Large-Model/Sana_600M_1024px_diffusers/tree/28f3af7689de15f3883d5863059a2fca0aa9b829", + "sourceRevision": "Efficient-Large-Model/Sana_600M_1024px_diffusers@28f3af7689de15f3883d5863059a2fca0aa9b829", + "sourceLicense": "Maintainer-authorized file with publisher terms retained", "modelTerms": [ - "InstantX/Qwen-Image-ControlNet-Union: Apache-2.0; https://huggingface.co/InstantX/Qwen-Image-ControlNet-Union/tree/b13036f066d6dee7c20513e263d3d673055e9de8", - "Qwen/Qwen-Image-2512: Apache-2.0; https://huggingface.co/Qwen/Qwen-Image-2512/tree/25468b98e3276ca6700de15c6628e51b7de54a26" + "apache-2.0. https://huggingface.co/Efficient-Large-Model/Sana_600M_1024px_diffusers/tree/28f3af7689de15f3883d5863059a2fca0aa9b829" ], "aiGenerated": true, "humanLikenessConsent": "synthetic", "marks": [], - "requiredAttribution": [], + "requiredAttribution": [ + "Efficient-Large-Model/Sana_600M_1024px_diffusers@28f3af7689de15f3883d5863059a2fca0aa9b829 https://huggingface.co/Efficient-Large-Model/Sana_600M_1024px_diffusers/tree/28f3af7689de15f3883d5863059a2fca0aa9b829" + ], "assetLicense": "Apache-2.0", - "reviewedBy": "SOURAV DAS", - "reviewedAt": "2026-11-10", - "reviewClass": "per-file-maintainer-accepted-native-gallery-registration", - "provenanceTemplateId": "qwen_control_image_layout", - "sourceRightsAttestation": "The maintainer accepted the exact review-gallery asset and expressly requested its registration.", - "acceptedOutputSHA256": "8aea21cd03849912745c7bbc1a2ceabad27cf3649947c6fb08fd86a7eec16c17", - "humanApprovalPacketSHA256": "73ddf9ea7fc27eccc6b93817809421a008ce0fd2fb3080ffbdc5831a09205304" + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", + "provenanceTemplateId": "persimmon_glaze" }, { - "path": "template-gallery/qwen_control_winter_cabin_blue_hour.webp", - "sha256": "sha256:bytes:d54f6087af42a8af4f676f49b7c25cfa93df29343ab5cb151d2dc95e5ecd2039", + "path": "template-gallery/pomegranate_on_blue_linen.webp", + "sha256": "sha256:bytes:ec62b729d1e4b37f37bd7fd8838b831ab10bd82662adc3a359a371cc7e756861", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Exact approved file captured from a saved MoDiff workflow", - "sourceUrl": "https://huggingface.co/Qwen/Qwen-Image-2512/tree/25468b98e3276ca6700de15c6628e51b7de54a26", - "sourceRevision": "Qwen/Qwen-Image-2512@25468b98e3276ca6700de15c6628e51b7de54a26", + "sourceUrl": "https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14", + "sourceRevision": "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14", "sourceLicense": "Maintainer-authorized file with publisher terms retained", "modelTerms": [ - "Publisher model terms at https://huggingface.co/Qwen/Qwen-Image-2512/tree/25468b98e3276ca6700de15c6628e51b7de54a26" + "creativeml-openrail-m. https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14" ], "aiGenerated": true, "humanLikenessConsent": "synthetic", "marks": [], "requiredAttribution": [ - "Qwen/Qwen-Image-2512@25468b98e3276ca6700de15c6628e51b7de54a26 https://huggingface.co/Qwen/Qwen-Image-2512/tree/25468b98e3276ca6700de15c6628e51b7de54a26" + "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14 https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "3968c7cbe37a94789a9f839d8e83a9e0f102629b797d5f7baacf0304a8d18153", - "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", - "provenanceTemplateId": "qwen_control_winter_cabin_blue_hour" + "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", + "provenanceTemplateId": "pomegranate_on_blue_linen" }, { - "path": "template-gallery/qwen_edit_plus_single_image.webp", - "sha256": "sha256:bytes:be3f439416a3a4fe5647f032961908a3a4ac98c228cab0f7e13931e21d90e7de", + "path": "template-gallery/porcelain_on_slate_linen.webp", + "sha256": "sha256:bytes:78a0954f82ae30dcc721d9087a54f62063d8b9ded7204838864b1d981a1e763d", "publishDecision": "approved", "holdReason": null, - "creatorOrRightsholder": "MoDiff project maintainers", - "creationMethod": "Maintainer-accepted native MoDiff output or its deterministic Gallery preview", - "sourceUrl": "https://huggingface.co/Qwen/Qwen-Image-Edit-2511/tree/6f3ccc0b56e431dc6a0c2b2039706d7d26f22cb9", - "sourceRevision": "Qwen/Qwen-Image-Edit-2511@6f3ccc0b56e431dc6a0c2b2039706d7d26f22cb9", - "sourceLicense": "Original generation or recorded workflow input; see modelTerms", + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Exact approved file captured from a saved MoDiff workflow", + "sourceUrl": "https://huggingface.co/SimianLuo/LCM_Dreamshaper_v7/tree/a85df6a8bd976cdd08b4fd8f3b73f229c9e54df5", + "sourceRevision": "SimianLuo/LCM_Dreamshaper_v7@a85df6a8bd976cdd08b4fd8f3b73f229c9e54df5", + "sourceLicense": "Maintainer-authorized file with publisher terms retained", "modelTerms": [ - "Qwen/Qwen-Image-Edit-2511: Apache-2.0; https://huggingface.co/Qwen/Qwen-Image-Edit-2511/tree/6f3ccc0b56e431dc6a0c2b2039706d7d26f22cb9" + "mit. https://huggingface.co/SimianLuo/LCM_Dreamshaper_v7/tree/a85df6a8bd976cdd08b4fd8f3b73f229c9e54df5" ], "aiGenerated": true, "humanLikenessConsent": "synthetic", "marks": [], - "requiredAttribution": [], + "requiredAttribution": [ + "SimianLuo/LCM_Dreamshaper_v7@a85df6a8bd976cdd08b4fd8f3b73f229c9e54df5 https://huggingface.co/SimianLuo/LCM_Dreamshaper_v7/tree/a85df6a8bd976cdd08b4fd8f3b73f229c9e54df5" + ], "assetLicense": "Apache-2.0", - "reviewedBy": "SOURAV DAS", - "reviewedAt": "2026-11-10", - "reviewClass": "per-file-maintainer-accepted-native-gallery-registration", - "provenanceTemplateId": "qwen_edit_plus_single_image", - "sourceRightsAttestation": "The maintainer accepted the exact review-gallery asset and expressly requested its registration.", - "acceptedOutputSHA256": "be3f439416a3a4fe5647f032961908a3a4ac98c228cab0f7e13931e21d90e7de", - "humanApprovalPacketSHA256": "95893cb17e10b15ae6b23d8b31b57b0e14b9af96f822d75edbc6b68971afb11d" + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", + "provenanceTemplateId": "porcelain_on_slate_linen" }, { - "path": "template-gallery/qwen_edit_strength_sweep.webp", - "sha256": "sha256:bytes:964eb0865b5f5e07434e604b427aa1d25f77e606eb6c6ea104c730e7e7d3ac62", + "path": "template-gallery/posters/wan_a14b_cloudbreak_over_the_ridges.png", + "sha256": "sha256:bytes:c824b505dc5145519de68ecdd4eb3618f214bc8e3aa6a8fd8fada7433b1f509e", "publishDecision": "approved", "holdReason": null, - "creatorOrRightsholder": "MoDiff project maintainers", - "creationMethod": "Maintainer-accepted native MoDiff output or its deterministic Gallery preview", - "sourceUrl": "https://huggingface.co/Qwen/Qwen-Image-Edit/tree/ac7f9318f633fc4b5778c59367c8128225f1e3de", - "sourceRevision": "Qwen/Qwen-Image-Edit@ac7f9318f633fc4b5778c59367c8128225f1e3de", - "sourceLicense": "Original generation or recorded workflow input; see modelTerms", + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Exact approved file captured from a saved MoDiff workflow", + "sourceUrl": "https://huggingface.co/Wan-AI/Wan2.2-T2V-A14B-Diffusers/tree/5be7df9619b54f4e2667b2755bc6a756675b5cd7", + "sourceRevision": "Wan-AI/Wan2.2-T2V-A14B-Diffusers@5be7df9619b54f4e2667b2755bc6a756675b5cd7", + "sourceLicense": "Maintainer-authorized file with publisher terms retained", "modelTerms": [ - "Qwen/Qwen-Image-Edit: Apache-2.0; https://huggingface.co/Qwen/Qwen-Image-Edit/tree/ac7f9318f633fc4b5778c59367c8128225f1e3de" + "Publisher model terms at https://huggingface.co/Wan-AI/Wan2.2-T2V-A14B-Diffusers/tree/5be7df9619b54f4e2667b2755bc6a756675b5cd7" ], - "aiGenerated": true, - "humanLikenessConsent": "synthetic", + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", "marks": [], - "requiredAttribution": [], + "requiredAttribution": [ + "Wan-AI/Wan2.2-T2V-A14B-Diffusers@5be7df9619b54f4e2667b2755bc6a756675b5cd7 https://huggingface.co/Wan-AI/Wan2.2-T2V-A14B-Diffusers/tree/5be7df9619b54f4e2667b2755bc6a756675b5cd7" + ], "assetLicense": "Apache-2.0", - "reviewedBy": "SOURAV DAS", - "reviewedAt": "2026-11-10", - "reviewClass": "per-file-maintainer-accepted-native-gallery-registration", - "provenanceTemplateId": "qwen_edit_strength_sweep", - "sourceRightsAttestation": "The maintainer accepted the exact review-gallery asset and expressly requested its registration.", - "acceptedOutputSHA256": "964eb0865b5f5e07434e604b427aa1d25f77e606eb6c6ea104c730e7e7d3ac62", - "humanApprovalPacketSHA256": "95893cb17e10b15ae6b23d8b31b57b0e14b9af96f822d75edbc6b68971afb11d" + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "ffeaa41a5c94b59135d2cdb15a5c7f79f073c15fd78792ce00a157398ab15d59", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "wan_a14b_cloudbreak_over_the_ridges" }, { - "path": "template-gallery/qwen_inpaint_mask_draft.webp", - "sha256": "sha256:bytes:fede5f1cd0f1b8a319eb5dee67377a989413ac7bf122df8dabd96415c7030908", + "path": "template-gallery/quiet_current.webp", + "sha256": "sha256:bytes:c4db3876adb54a5f2bb9449ab4865601a24c2b486440f5c04d939a42a7f299a4", "publishDecision": "approved", "holdReason": null, - "creatorOrRightsholder": "MoDiff project maintainers", - "creationMethod": "Maintainer-accepted native MoDiff output or its deterministic Gallery preview", - "sourceUrl": "https://huggingface.co/Qwen/Qwen-Image-Edit/tree/ac7f9318f633fc4b5778c59367c8128225f1e3de", - "sourceRevision": "Qwen/Qwen-Image-Edit@ac7f9318f633fc4b5778c59367c8128225f1e3de", - "sourceLicense": "Original generation or recorded workflow input; see modelTerms", + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Exact approved file captured from a saved MoDiff workflow", + "sourceUrl": "https://huggingface.co/zai-org/CogView4-6B/tree/63a52b7f6dace7033380cd6da14d0915eab3e6b5", + "sourceRevision": "zai-org/CogView4-6B@63a52b7f6dace7033380cd6da14d0915eab3e6b5", + "sourceLicense": "Maintainer-authorized file with publisher terms retained", "modelTerms": [ - "Qwen/Qwen-Image-Edit: Apache-2.0; https://huggingface.co/Qwen/Qwen-Image-Edit/tree/ac7f9318f633fc4b5778c59367c8128225f1e3de" + "apache-2.0. https://huggingface.co/zai-org/CogView4-6B/tree/63a52b7f6dace7033380cd6da14d0915eab3e6b5" ], "aiGenerated": true, "humanLikenessConsent": "synthetic", "marks": [], - "requiredAttribution": [], + "requiredAttribution": [ + "zai-org/CogView4-6B@63a52b7f6dace7033380cd6da14d0915eab3e6b5 https://huggingface.co/zai-org/CogView4-6B/tree/63a52b7f6dace7033380cd6da14d0915eab3e6b5" + ], "assetLicense": "Apache-2.0", - "reviewedBy": "SOURAV DAS", - "reviewedAt": "2026-11-10", - "reviewClass": "per-file-maintainer-accepted-native-gallery-registration", - "provenanceTemplateId": "qwen_inpaint_mask_draft", - "sourceRightsAttestation": "The maintainer accepted the exact review-gallery asset and expressly requested its registration.", - "acceptedOutputSHA256": "fede5f1cd0f1b8a319eb5dee67377a989413ac7bf122df8dabd96415c7030908", - "humanApprovalPacketSHA256": "73ddf9ea7fc27eccc6b93817809421a008ce0fd2fb3080ffbdc5831a09205304" + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", + "provenanceTemplateId": "quiet_current" }, { - "path": "template-gallery/qwen_inpaint_object_replace.webp", - "sha256": "sha256:bytes:4537acd74aac196bbc1fdf2804ee273605c6d1d44cf08f62e7ecc2f5cf892e39", + "path": "template-gallery/quiet_kiln_at_daybreak.webp", + "sha256": "sha256:bytes:3cbbe1b912086f3d97cbfd3e8ba4c077166d355b6ba0cf25a07441f2826aa6ab", "publishDecision": "approved", "holdReason": null, - "creatorOrRightsholder": "MoDiff project maintainers", - "creationMethod": "Maintainer-accepted native MoDiff output or its deterministic Gallery preview", - "sourceUrl": "https://huggingface.co/Qwen/Qwen-Image-Edit/tree/ac7f9318f633fc4b5778c59367c8128225f1e3de", - "sourceRevision": "Qwen/Qwen-Image-Edit@ac7f9318f633fc4b5778c59367c8128225f1e3de", - "sourceLicense": "Original generation or recorded workflow input; see modelTerms", + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Exact approved file captured from a saved MoDiff workflow", + "sourceUrl": "https://huggingface.co/NucleusAI/Nucleus-Image/tree/5e963db4fd0a65c7e4faf53ca2d4eca567c4dcfa", + "sourceRevision": "NucleusAI/Nucleus-Image@5e963db4fd0a65c7e4faf53ca2d4eca567c4dcfa", + "sourceLicense": "Maintainer-authorized file with publisher terms retained", "modelTerms": [ - "Qwen/Qwen-Image-Edit: Apache-2.0; https://huggingface.co/Qwen/Qwen-Image-Edit/tree/ac7f9318f633fc4b5778c59367c8128225f1e3de" + "Apache-2.0 per the publisher at this revision. https://huggingface.co/NucleusAI/Nucleus-Image/tree/5e963db4fd0a65c7e4faf53ca2d4eca567c4dcfa" ], "aiGenerated": true, "humanLikenessConsent": "synthetic", "marks": [], - "requiredAttribution": [], + "requiredAttribution": [ + "NucleusAI/Nucleus-Image@5e963db4fd0a65c7e4faf53ca2d4eca567c4dcfa https://huggingface.co/NucleusAI/Nucleus-Image/tree/5e963db4fd0a65c7e4faf53ca2d4eca567c4dcfa" + ], "assetLicense": "Apache-2.0", - "reviewedBy": "SOURAV DAS", - "reviewedAt": "2026-11-10", - "reviewClass": "per-file-maintainer-accepted-native-gallery-registration", - "provenanceTemplateId": "qwen_inpaint_object_replace", - "sourceRightsAttestation": "The maintainer accepted the exact review-gallery asset and expressly requested its registration.", - "acceptedOutputSHA256": "4537acd74aac196bbc1fdf2804ee273605c6d1d44cf08f62e7ecc2f5cf892e39", - "humanApprovalPacketSHA256": "95893cb17e10b15ae6b23d8b31b57b0e14b9af96f822d75edbc6b68971afb11d" + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", + "provenanceTemplateId": "quiet_kiln_at_daybreak" }, { - "creatorOrRightsholder": "MoDiff project maintainers, subject to previously approved synthetic source rights and recorded model terms", - "creationMethod": "Native local AI-generated output or exact deterministic layer-sheet derivative; original approved bytes retained", - "sourceUrl": "https://huggingface.co/Qwen/Qwen-Image-Layered/tree/8f0ca708dfff6ba1dd5f2d85d78f8c108a040bcf", - "sourceRevision": "Qwen/Qwen-Image-Layered@8f0ca708dfff6ba1dd5f2d85d78f8c108a040bcf", - "sourceLicense": "Generated output and approved synthetic input; retained model terms apply", + "path": "template-gallery/qwen_2511_pale_amber_on_limestone.webp", + "sha256": "sha256:bytes:126660eff58b75eed79a942adc24e76f731decd65f83db098e72298141531772", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Exact approved file captured from a saved MoDiff workflow", + "sourceUrl": "https://huggingface.co/Qwen/Qwen-Image-Edit-2511/tree/6f3ccc0b56e431dc6a0c2b2039706d7d26f22cb9", + "sourceRevision": "Qwen/Qwen-Image-Edit-2511@6f3ccc0b56e431dc6a0c2b2039706d7d26f22cb9", + "sourceLicense": "Maintainer-authorized file with publisher terms retained", "modelTerms": [ - "Qwen/Qwen-Image-Layered: Apache-2.0; https://huggingface.co/Qwen/Qwen-Image-Layered/tree/8f0ca708dfff6ba1dd5f2d85d78f8c108a040bcf" + "Publisher model terms at https://huggingface.co/Qwen/Qwen-Image-Edit-2511/tree/6f3ccc0b56e431dc6a0c2b2039706d7d26f22cb9" ], "aiGenerated": true, "humanLikenessConsent": "synthetic", "marks": [], - "requiredAttribution": [], - "publicationBasis": "Existing maintainer publication authorization and current explicit instruction to register these three accepted assets; no new ownership or rights quotation is fabricated.", - "path": "template-gallery/qwen_layered_portrait.png", - "sha256": "sha256:bytes:bcad98e6acbe9ea500f722977a33b72953c3991170ce346bff1f3455803ab4d8", - "publishDecision": "approved", - "holdReason": null, + "requiredAttribution": [ + "Qwen/Qwen-Image-Edit-2511@6f3ccc0b56e431dc6a0c2b2039706d7d26f22cb9 https://huggingface.co/Qwen/Qwen-Image-Edit-2511/tree/6f3ccc0b56e431dc6a0c2b2039706d7d26f22cb9" + ], "assetLicense": "Apache-2.0", - "reviewedBy": "maintainer (current user)", - "reviewedAt": "2026-11-12", - "reviewClass": "per-file-maintainer-accepted-native-three-registration", - "humanApprovalPacketSHA256": "69c6b3d9b0ea2fcca16ee538f6e75b414b7141658b74f10578758e61360f63fd", - "provenanceTemplateId": "qwen_layered_portrait" + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "60b01498a2df5f4e4622cdc2f9a43c83d187820780d2425a19718c13707db501", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "qwen_2511_pale_amber_on_limestone" }, { - "path": "template-gallery/qwen_layered_sunset_and_peaks.png", - "sha256": "sha256:bytes:5ccb86b18bc5f8a1c18376c72a0236ba9235a4904fef1a9e4f459ac31e2ede2d", + "path": "template-gallery/qwen_2511_terracotta_material_transfer.webp", + "sha256": "sha256:bytes:5bd01cc1777cf575cc9824f801059f5426960920dc8a2b0da03c0b8f0cbca51d", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Exact approved file captured from a saved MoDiff workflow", - "sourceUrl": "https://huggingface.co/Qwen/Qwen-Image-Layered/tree/8f0ca708dfff6ba1dd5f2d85d78f8c108a040bcf", - "sourceRevision": "Qwen/Qwen-Image-Layered@8f0ca708dfff6ba1dd5f2d85d78f8c108a040bcf", + "sourceUrl": "https://huggingface.co/Qwen/Qwen-Image-Edit-2511/tree/6f3ccc0b56e431dc6a0c2b2039706d7d26f22cb9", + "sourceRevision": "Qwen/Qwen-Image-Edit-2511@6f3ccc0b56e431dc6a0c2b2039706d7d26f22cb9", "sourceLicense": "Maintainer-authorized file with publisher terms retained", "modelTerms": [ - "https://huggingface.co/Qwen/Qwen-Image-Layered/blob/8f0ca708dfff6ba1dd5f2d85d78f8c108a040bcf/README.md" + "Publisher model terms at https://huggingface.co/Qwen/Qwen-Image-Edit-2511/tree/6f3ccc0b56e431dc6a0c2b2039706d7d26f22cb9" ], "aiGenerated": true, "humanLikenessConsent": "synthetic", "marks": [], "requiredAttribution": [ - "Qwen/Qwen-Image-Layered@8f0ca708dfff6ba1dd5f2d85d78f8c108a040bcf https://huggingface.co/Qwen/Qwen-Image-Layered/tree/8f0ca708dfff6ba1dd5f2d85d78f8c108a040bcf" + "Qwen/Qwen-Image-Edit-2511@6f3ccc0b56e431dc6a0c2b2039706d7d26f22cb9 https://huggingface.co/Qwen/Qwen-Image-Edit-2511/tree/6f3ccc0b56e431dc6a0c2b2039706d7d26f22cb9" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "b16dfc2b7c1c32272b8f79bc1bffbb60376e63f8cf1ab9d0bdf9aea07cccf5cd", + "humanApprovalPacketSHA256": "d7e2fd301d16eede3da44cec1811930560ba0d958dfd46d8d0962eb3a22eea63", "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", - "provenanceTemplateId": "qwen_layered_sunset_and_peaks" + "provenanceTemplateId": "qwen_2511_terracotta_material_transfer" }, { - "path": "template-gallery/qwen_logo_texture.webp", - "sha256": "sha256:bytes:c4afc3f779e03437a122845ee9f19d149e5a049f0cce7b076047a69f964bc416", + "path": "template-gallery/qwen_2512_cobalt_backdrop_repair.webp", + "sha256": "sha256:bytes:6b3a9c583a930c462ec1d484b71d26d97346862c2d4e4a25aa35c2062e3dfefe", "publishDecision": "approved", "holdReason": null, - "creatorOrRightsholder": "MoDiff project maintainers", - "creationMethod": "Maintainer-accepted native MoDiff output or its deterministic Gallery preview", - "sourceUrl": "https://huggingface.co/lightx2v/Qwen-Image-Edit-2511-Lightning/tree/d74eba145674fd7e31b949324e148e21e7118abd", - "sourceRevision": "lightx2v/Qwen-Image-Edit-2511-Lightning@d74eba145674fd7e31b949324e148e21e7118abd | Qwen/Qwen-Image-Edit-2511@6f3ccc0b56e431dc6a0c2b2039706d7d26f22cb9", - "sourceLicense": "Original generation or recorded workflow input; see modelTerms", + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Exact approved file captured from a saved MoDiff workflow", + "sourceUrl": "https://huggingface.co/Qwen/Qwen-Image-2512/tree/25468b98e3276ca6700de15c6628e51b7de54a26", + "sourceRevision": "Qwen/Qwen-Image-2512@25468b98e3276ca6700de15c6628e51b7de54a26", + "sourceLicense": "Maintainer-authorized file with publisher terms retained", "modelTerms": [ - "lightx2v/Qwen-Image-Edit-2511-Lightning: Apache-2.0; https://huggingface.co/lightx2v/Qwen-Image-Edit-2511-Lightning/tree/d74eba145674fd7e31b949324e148e21e7118abd", - "Qwen/Qwen-Image-Edit-2511: Apache-2.0; https://huggingface.co/Qwen/Qwen-Image-Edit-2511/tree/6f3ccc0b56e431dc6a0c2b2039706d7d26f22cb9" + "Publisher model terms at https://huggingface.co/Qwen/Qwen-Image-2512/tree/25468b98e3276ca6700de15c6628e51b7de54a26" ], "aiGenerated": true, "humanLikenessConsent": "synthetic", "marks": [], - "requiredAttribution": [], + "requiredAttribution": [ + "Qwen/Qwen-Image-2512@25468b98e3276ca6700de15c6628e51b7de54a26 https://huggingface.co/Qwen/Qwen-Image-2512/tree/25468b98e3276ca6700de15c6628e51b7de54a26" + ], "assetLicense": "Apache-2.0", - "reviewedBy": "SOURAV DAS", - "reviewedAt": "2026-11-10", - "reviewClass": "per-file-maintainer-accepted-native-gallery-registration", - "provenanceTemplateId": "qwen_logo_texture", - "sourceRightsAttestation": "The maintainer accepted the exact review-gallery asset and expressly requested its registration.", - "acceptedOutputSHA256": "c4afc3f779e03437a122845ee9f19d149e5a049f0cce7b076047a69f964bc416", - "humanApprovalPacketSHA256": "95893cb17e10b15ae6b23d8b31b57b0e14b9af96f822d75edbc6b68971afb11d" + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "60b01498a2df5f4e4622cdc2f9a43c83d187820780d2425a19718c13707db501", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "qwen_2512_cobalt_backdrop_repair" }, { - "creatorOrRightsholder": "MoDiff project maintainers, with exact-file rights explicitly attested by the maintainer", - "creationMethod": "AI-generated prompt-only native Qwen-Image-2512 image", + "path": "template-gallery/qwen_bookshop_gouache.webp", + "sha256": "sha256:bytes:555bab08051dc3a0381747c207ed241be3afd54c5c6113a8b4abf04010960201", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Exact approved file captured from a saved MoDiff workflow", "sourceUrl": "https://huggingface.co/Qwen/Qwen-Image-2512/tree/25468b98e3276ca6700de15c6628e51b7de54a26", "sourceRevision": "Qwen/Qwen-Image-2512@25468b98e3276ca6700de15c6628e51b7de54a26", - "sourceLicense": "Original prompt-only generation; exact-file redistribution rights explicitly attested; see pinned model terms", + "sourceLicense": "Maintainer-authorized file with publisher terms retained", "modelTerms": [ - "Qwen/Qwen-Image-2512: Apache-2.0; https://huggingface.co/Qwen/Qwen-Image-2512/tree/25468b98e3276ca6700de15c6628e51b7de54a26" + "Publisher model terms at https://huggingface.co/Qwen/Qwen-Image-2512/tree/25468b98e3276ca6700de15c6628e51b7de54a26" ], "aiGenerated": true, "humanLikenessConsent": "synthetic", - "marks": ["TIDELINE: fictional cinema and event"], - "requiredAttribution": [], - "sourceRightsAttestation": "I hold the rights or permissions needed to publish this exact generated TIDELINE cinema image and its redacted technical/review records under Apache-2.0. The film event and cinema are fictional; no external image inputs or real-person likenesses were used.", - "path": "template-gallery/qwen_low_vram_poster_layout.webp", - "sha256": "sha256:bytes:65721301c3819ef40a48281f42c2f56c8ba129bb23545b3f20958d784be13e34", - "publishDecision": "approved", - "holdReason": null, + "marks": [], + "requiredAttribution": [ + "Qwen/Qwen-Image-2512@25468b98e3276ca6700de15c6628e51b7de54a26 https://huggingface.co/Qwen/Qwen-Image-2512/tree/25468b98e3276ca6700de15c6628e51b7de54a26" + ], "assetLicense": "Apache-2.0", - "reviewedBy": "SOURAV DAS", - "reviewedAt": "2026-11-10", - "reviewClass": "per-file-human-approved-qwen-native-image-registration", - "humanApprovalPacketSHA256": "13cb57389a33fb689324c40827376b3ddfe0ade1dd033ffc8a0c51e749e44487", - "provenanceTemplateId": "qwen_low_vram_poster_layout" + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "60b01498a2df5f4e4622cdc2f9a43c83d187820780d2425a19718c13707db501", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "qwen_bookshop_gouache" }, { "creatorOrRightsholder": "MoDiff project maintainers, with exact-file rights explicitly attested by the maintainer", - "creationMethod": "AI-generated prompt-only native Qwen-Image-2512 image", - "sourceUrl": "https://huggingface.co/Qwen/Qwen-Image-2512/tree/25468b98e3276ca6700de15c6628e51b7de54a26", - "sourceRevision": "Qwen/Qwen-Image-2512@25468b98e3276ca6700de15c6628e51b7de54a26", - "sourceLicense": "Original prompt-only generation; exact-file redistribution rights explicitly attested; see pinned model terms", + "creationMethod": "AI-generated native Qwen Edit character sheet using the existing approved synthetic portrait", + "sourceUrl": "https://huggingface.co/Qwen/Qwen-Image-Edit/tree/ac7f9318f633fc4b5778c59367c8128225f1e3de", + "sourceRevision": "Qwen/Qwen-Image-Edit@ac7f9318f633fc4b5778c59367c8128225f1e3de", + "sourceLicense": "Original generated image; exact-file redistribution rights explicitly attested; see pinned model terms", "modelTerms": [ - "Qwen/Qwen-Image-2512: Apache-2.0; https://huggingface.co/Qwen/Qwen-Image-2512/tree/25468b98e3276ca6700de15c6628e51b7de54a26" + "Qwen/Qwen-Image-Edit: Apache-2.0; https://huggingface.co/Qwen/Qwen-Image-Edit/tree/ac7f9318f633fc4b5778c59367c8128225f1e3de" ], "aiGenerated": true, "humanLikenessConsent": "synthetic", - "marks": ["MICA DROP: fictional product name"], + "marks": [], "requiredAttribution": [], - "sourceRightsAttestation": "I approve this exact image as a reviewed concept with the stated design limitations and incomplete independent resource monitoring, without a fully guarded or hardware-qualification claim. I hold the rights or permissions needed to publish this generated MICA DROP image and its redacted technical/review metadata under Apache-2.0. The product is fictional in this example; no external image input or real-person likeness was used.", - "path": "template-gallery/qwen_low_vram_product_concept.webp", - "sha256": "sha256:bytes:6e8f94cdb1e1323607300f6c60d76dc467900a2d520db117cfc34a02c5beb4cf", + "sourceRightsAttestation": "I hold the rights needed to publish this exact generated angle sheet and its redacted technical/review records under Apache-2.0 in the existing MoDiff Gallery Dataset. The input is the existing approved synthetic character image; no external image inputs or real-person likeness references were used. The pinned Qwen model terms are retained.", + "path": "template-gallery/qwen_character_angles.webp", + "sha256": "sha256:bytes:4a3a001c82fb171de587b505ad269b493eceefa2c243b9c1b4d1a7205777c354", "publishDecision": "approved", "holdReason": null, "assetLicense": "Apache-2.0", "reviewedBy": "SOURAV DAS", "reviewedAt": "2026-11-10", - "reviewClass": "per-file-human-approved-qwen-native-image-registration", - "humanApprovalPacketSHA256": "3193ab9ed5834bddfafc5c6922bd0eaa60e27e5963ca52c740af7540c2847834", - "provenanceTemplateId": "qwen_low_vram_product_concept" + "reviewClass": "per-file-human-approved-qwen-angle-native-image-registration", + "humanApprovalPacketSHA256": "9ca0bb197dbad8a2a27b25cef64aff67875aa6ea6f69fcb3bff581aae35b43d5", + "provenanceTemplateId": "qwen_character_angles" }, { - "creatorOrRightsholder": "MoDiff project maintainers, with exact-file rights explicitly attested by the maintainer", - "creationMethod": "AI-generated prompt-only native Qwen-Image-2512 image", - "sourceUrl": "https://huggingface.co/Qwen/Qwen-Image-2512/tree/25468b98e3276ca6700de15c6628e51b7de54a26", - "sourceRevision": "Qwen/Qwen-Image-2512@25468b98e3276ca6700de15c6628e51b7de54a26", - "sourceLicense": "Original prompt-only generation; exact-file redistribution rights explicitly attested; see pinned model terms", + "path": "template-gallery/qwen_cobalt_on_charcoal_slate.webp", + "sha256": "sha256:bytes:3cf9cea1b23834ec9dd589b37335250885be163eb4257155d8e76a08583dade2", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Exact approved file captured from a saved MoDiff workflow", + "sourceUrl": "https://huggingface.co/Qwen/Qwen-Image-Edit/tree/ac7f9318f633fc4b5778c59367c8128225f1e3de", + "sourceRevision": "Qwen/Qwen-Image-Edit@ac7f9318f633fc4b5778c59367c8128225f1e3de", + "sourceLicense": "Maintainer-authorized file with publisher terms retained", "modelTerms": [ - "Qwen/Qwen-Image-2512: Apache-2.0; https://huggingface.co/Qwen/Qwen-Image-2512/tree/25468b98e3276ca6700de15c6628e51b7de54a26" + "Publisher model terms at https://huggingface.co/Qwen/Qwen-Image-Edit/tree/ac7f9318f633fc4b5778c59367c8128225f1e3de" ], "aiGenerated": true, "humanLikenessConsent": "synthetic", - "marks": ["KITE & ANVIL: fictional stationery brand"], - "requiredAttribution": [], - "sourceRightsAttestation": "I hold the rights or permissions needed to publish this exact generated KITE & ANVIL stationery image and its redacted technical/review metadata under Apache-2.0. The stationery brand is fictional in this example; no external image inputs or real-person likenesses were used.", - "path": "template-gallery/qwen_low_vram_text_rendering.webp", - "sha256": "sha256:bytes:884e21aefe6fecfe7015de8382d8dfac06ce5f92ce53c317c596e544d8f4edd4", - "publishDecision": "approved", - "holdReason": null, + "marks": [], + "requiredAttribution": [ + "Qwen/Qwen-Image-Edit@ac7f9318f633fc4b5778c59367c8128225f1e3de https://huggingface.co/Qwen/Qwen-Image-Edit/tree/ac7f9318f633fc4b5778c59367c8128225f1e3de" + ], "assetLicense": "Apache-2.0", - "reviewedBy": "SOURAV DAS", - "reviewedAt": "2026-11-10", - "reviewClass": "per-file-human-approved-qwen-native-image-registration", - "humanApprovalPacketSHA256": "3193ab9ed5834bddfafc5c6922bd0eaa60e27e5963ca52c740af7540c2847834", - "provenanceTemplateId": "qwen_low_vram_text_rendering" + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "60b01498a2df5f4e4622cdc2f9a43c83d187820780d2425a19718c13707db501", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "qwen_cobalt_on_charcoal_slate" }, { - "path": "template-gallery/qwen_multi_reference_product.webp", - "sha256": "sha256:bytes:c0377035121c03214e54df360f380f531a700efdf17a9e2f3d732dc18244e846", + "path": "template-gallery/qwen_control_image_layout.webp", + "sha256": "sha256:bytes:8aea21cd03849912745c7bbc1a2ceabad27cf3649947c6fb08fd86a7eec16c17", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers", "creationMethod": "Maintainer-accepted native MoDiff output or its deterministic Gallery preview", - "sourceUrl": "https://huggingface.co/lightx2v/Qwen-Image-Edit-2511-Lightning/tree/d74eba145674fd7e31b949324e148e21e7118abd", - "sourceRevision": "lightx2v/Qwen-Image-Edit-2511-Lightning@d74eba145674fd7e31b949324e148e21e7118abd | Qwen/Qwen-Image-Edit-2511@6f3ccc0b56e431dc6a0c2b2039706d7d26f22cb9", + "sourceUrl": "https://huggingface.co/InstantX/Qwen-Image-ControlNet-Union/tree/b13036f066d6dee7c20513e263d3d673055e9de8", + "sourceRevision": "InstantX/Qwen-Image-ControlNet-Union@b13036f066d6dee7c20513e263d3d673055e9de8 | Qwen/Qwen-Image-2512@25468b98e3276ca6700de15c6628e51b7de54a26", "sourceLicense": "Original generation or recorded workflow input; see modelTerms", "modelTerms": [ - "lightx2v/Qwen-Image-Edit-2511-Lightning: Apache-2.0; https://huggingface.co/lightx2v/Qwen-Image-Edit-2511-Lightning/tree/d74eba145674fd7e31b949324e148e21e7118abd", - "Qwen/Qwen-Image-Edit-2511: Apache-2.0; https://huggingface.co/Qwen/Qwen-Image-Edit-2511/tree/6f3ccc0b56e431dc6a0c2b2039706d7d26f22cb9" + "InstantX/Qwen-Image-ControlNet-Union: Apache-2.0; https://huggingface.co/InstantX/Qwen-Image-ControlNet-Union/tree/b13036f066d6dee7c20513e263d3d673055e9de8", + "Qwen/Qwen-Image-2512: Apache-2.0; https://huggingface.co/Qwen/Qwen-Image-2512/tree/25468b98e3276ca6700de15c6628e51b7de54a26" ], "aiGenerated": true, "humanLikenessConsent": "synthetic", @@ -8430,74 +8874,76 @@ "reviewedBy": "SOURAV DAS", "reviewedAt": "2026-11-10", "reviewClass": "per-file-maintainer-accepted-native-gallery-registration", - "provenanceTemplateId": "qwen_multi_reference_product", + "provenanceTemplateId": "qwen_control_image_layout", "sourceRightsAttestation": "The maintainer accepted the exact review-gallery asset and expressly requested its registration.", - "acceptedOutputSHA256": "c0377035121c03214e54df360f380f531a700efdf17a9e2f3d732dc18244e846", - "humanApprovalPacketSHA256": "95893cb17e10b15ae6b23d8b31b57b0e14b9af96f822d75edbc6b68971afb11d" + "acceptedOutputSHA256": "8aea21cd03849912745c7bbc1a2ceabad27cf3649947c6fb08fd86a7eec16c17", + "humanApprovalPacketSHA256": "73ddf9ea7fc27eccc6b93817809421a008ce0fd2fb3080ffbdc5831a09205304" }, { - "creatorOrRightsholder": "MoDiff project maintainers", - "creationMethod": "Native MoDiff image generation or editing for qwen_outpaint_aspect_template", - "sourceUrl": "https://huggingface.co/Qwen/Qwen-Image-Edit/tree/ac7f9318f633fc4b5778c59367c8128225f1e3de", - "sourceRevision": "Qwen/Qwen-Image-Edit@ac7f9318f633fc4b5778c59367c8128225f1e3de", - "sourceLicense": "Maintainer-approved generated output. The selected models and adapters have separate pinned terms.", + "path": "template-gallery/qwen_control_winter_cabin_blue_hour.webp", + "sha256": "sha256:bytes:d54f6087af42a8af4f676f49b7c25cfa93df29343ab5cb151d2dc95e5ecd2039", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Exact approved file captured from a saved MoDiff workflow", + "sourceUrl": "https://huggingface.co/Qwen/Qwen-Image-2512/tree/25468b98e3276ca6700de15c6628e51b7de54a26", + "sourceRevision": "Qwen/Qwen-Image-2512@25468b98e3276ca6700de15c6628e51b7de54a26", + "sourceLicense": "Maintainer-authorized file with publisher terms retained", "modelTerms": [ - "Apache-2.0 as declared in the pinned model card · https://huggingface.co/Qwen/Qwen-Image-Edit/tree/ac7f9318f633fc4b5778c59367c8128225f1e3de" + "Publisher model terms at https://huggingface.co/Qwen/Qwen-Image-2512/tree/25468b98e3276ca6700de15c6628e51b7de54a26" ], "aiGenerated": true, "humanLikenessConsent": "synthetic", "marks": [], - "requiredAttribution": [], - "sourceRightsAttestation": "The maintainer approved the exact reviewed asset in the Gallery review and requested its registration.", - "path": "template-gallery/qwen_outpaint_aspect_template.webp", - "sha256": "sha256:bytes:d9ccf1960420a487ce16258167a88c7f4eb103fb24444ea0ad997487d1061554", - "publishDecision": "approved", - "holdReason": null, + "requiredAttribution": [ + "Qwen/Qwen-Image-2512@25468b98e3276ca6700de15c6628e51b7de54a26 https://huggingface.co/Qwen/Qwen-Image-2512/tree/25468b98e3276ca6700de15c6628e51b7de54a26" + ], "assetLicense": "Apache-2.0", - "reviewedBy": "SOURAV DAS", - "reviewedAt": "2026-11-10", - "reviewClass": "per-file-maintainer-approved-gallery-registration", - "humanApprovalPacketSHA256": "351d122936dc8df9c3fb6217005641dd2cc2ecddc39cd7cd7fadc2939def70b3", - "provenanceTemplateId": "qwen_outpaint_aspect_template" + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "3968c7cbe37a94789a9f839d8e83a9e0f102629b797d5f7baacf0304a8d18153", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "qwen_control_winter_cabin_blue_hour" }, { + "path": "template-gallery/qwen_edit_plus_single_image.webp", + "sha256": "sha256:bytes:be3f439416a3a4fe5647f032961908a3a4ac98c228cab0f7e13931e21d90e7de", + "publishDecision": "approved", + "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers", - "creationMethod": "Native MoDiff image generation or editing for qwen_outpaint_draft", - "sourceUrl": "https://huggingface.co/Qwen/Qwen-Image-Edit/tree/ac7f9318f633fc4b5778c59367c8128225f1e3de", - "sourceRevision": "Qwen/Qwen-Image-Edit@ac7f9318f633fc4b5778c59367c8128225f1e3de", - "sourceLicense": "Maintainer-approved generated output. The selected models and adapters have separate pinned terms.", + "creationMethod": "Maintainer-accepted native MoDiff output or its deterministic Gallery preview", + "sourceUrl": "https://huggingface.co/Qwen/Qwen-Image-Edit-2511/tree/6f3ccc0b56e431dc6a0c2b2039706d7d26f22cb9", + "sourceRevision": "Qwen/Qwen-Image-Edit-2511@6f3ccc0b56e431dc6a0c2b2039706d7d26f22cb9", + "sourceLicense": "Original generation or recorded workflow input; see modelTerms", "modelTerms": [ - "Apache-2.0 as declared in the pinned model card · https://huggingface.co/Qwen/Qwen-Image-Edit/tree/ac7f9318f633fc4b5778c59367c8128225f1e3de" + "Qwen/Qwen-Image-Edit-2511: Apache-2.0; https://huggingface.co/Qwen/Qwen-Image-Edit-2511/tree/6f3ccc0b56e431dc6a0c2b2039706d7d26f22cb9" ], "aiGenerated": true, "humanLikenessConsent": "synthetic", "marks": [], "requiredAttribution": [], - "sourceRightsAttestation": "The maintainer approved the exact reviewed asset in the Gallery review and requested its registration.", - "path": "template-gallery/qwen_outpaint_draft.webp", - "sha256": "sha256:bytes:dfa97dd6b2acbe53b05814a1d6d525ca3fdddb2d1dbe000b3dab7fa1ed5feb6a", - "publishDecision": "approved", - "holdReason": null, "assetLicense": "Apache-2.0", "reviewedBy": "SOURAV DAS", "reviewedAt": "2026-11-10", - "reviewClass": "per-file-maintainer-approved-gallery-registration", - "humanApprovalPacketSHA256": "351d122936dc8df9c3fb6217005641dd2cc2ecddc39cd7cd7fadc2939def70b3", - "provenanceTemplateId": "qwen_outpaint_draft" + "reviewClass": "per-file-maintainer-accepted-native-gallery-registration", + "provenanceTemplateId": "qwen_edit_plus_single_image", + "sourceRightsAttestation": "The maintainer accepted the exact review-gallery asset and expressly requested its registration.", + "acceptedOutputSHA256": "be3f439416a3a4fe5647f032961908a3a4ac98c228cab0f7e13931e21d90e7de", + "humanApprovalPacketSHA256": "95893cb17e10b15ae6b23d8b31b57b0e14b9af96f822d75edbc6b68971afb11d" }, { - "path": "template-gallery/qwen_packaging_dieline.webp", - "sha256": "sha256:bytes:1418c030b8efa5c033b3da9e07a62cc93446b6793c92ea7a707a8dac44820b6d", + "path": "template-gallery/qwen_edit_strength_sweep.webp", + "sha256": "sha256:bytes:964eb0865b5f5e07434e604b427aa1d25f77e606eb6c6ea104c730e7e7d3ac62", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers", "creationMethod": "Maintainer-accepted native MoDiff output or its deterministic Gallery preview", - "sourceUrl": "https://huggingface.co/InstantX/Qwen-Image-ControlNet-Union/tree/b13036f066d6dee7c20513e263d3d673055e9de8", - "sourceRevision": "InstantX/Qwen-Image-ControlNet-Union@b13036f066d6dee7c20513e263d3d673055e9de8 | Qwen/Qwen-Image-2512@25468b98e3276ca6700de15c6628e51b7de54a26", + "sourceUrl": "https://huggingface.co/Qwen/Qwen-Image-Edit/tree/ac7f9318f633fc4b5778c59367c8128225f1e3de", + "sourceRevision": "Qwen/Qwen-Image-Edit@ac7f9318f633fc4b5778c59367c8128225f1e3de", "sourceLicense": "Original generation or recorded workflow input; see modelTerms", "modelTerms": [ - "InstantX/Qwen-Image-ControlNet-Union: Apache-2.0; https://huggingface.co/InstantX/Qwen-Image-ControlNet-Union/tree/b13036f066d6dee7c20513e263d3d673055e9de8", - "Qwen/Qwen-Image-2512: Apache-2.0; https://huggingface.co/Qwen/Qwen-Image-2512/tree/25468b98e3276ca6700de15c6628e51b7de54a26" + "Qwen/Qwen-Image-Edit: Apache-2.0; https://huggingface.co/Qwen/Qwen-Image-Edit/tree/ac7f9318f633fc4b5778c59367c8128225f1e3de" ], "aiGenerated": true, "humanLikenessConsent": "synthetic", @@ -8507,49 +8953,49 @@ "reviewedBy": "SOURAV DAS", "reviewedAt": "2026-11-10", "reviewClass": "per-file-maintainer-accepted-native-gallery-registration", - "provenanceTemplateId": "qwen_packaging_dieline", + "provenanceTemplateId": "qwen_edit_strength_sweep", "sourceRightsAttestation": "The maintainer accepted the exact review-gallery asset and expressly requested its registration.", - "acceptedOutputSHA256": "1418c030b8efa5c033b3da9e07a62cc93446b6793c92ea7a707a8dac44820b6d", - "humanApprovalPacketSHA256": "73ddf9ea7fc27eccc6b93817809421a008ce0fd2fb3080ffbdc5831a09205304" + "acceptedOutputSHA256": "964eb0865b5f5e07434e604b427aa1d25f77e606eb6c6ea104c730e7e7d3ac62", + "humanApprovalPacketSHA256": "95893cb17e10b15ae6b23d8b31b57b0e14b9af96f822d75edbc6b68971afb11d" }, { - "creatorOrRightsholder": "MoDiff project maintainers, with exact-file rights explicitly attested by the maintainer", - "creationMethod": "AI-generated prompt-only native Qwen-Image-2512 image", - "sourceUrl": "https://huggingface.co/Qwen/Qwen-Image-2512/tree/25468b98e3276ca6700de15c6628e51b7de54a26", - "sourceRevision": "Qwen/Qwen-Image-2512@25468b98e3276ca6700de15c6628e51b7de54a26", - "sourceLicense": "Original prompt-only generation; exact-file redistribution rights explicitly attested; see pinned model terms", + "path": "template-gallery/qwen_inpaint_mask_draft.webp", + "sha256": "sha256:bytes:fede5f1cd0f1b8a319eb5dee67377a989413ac7bf122df8dabd96415c7030908", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers", + "creationMethod": "Maintainer-accepted native MoDiff output or its deterministic Gallery preview", + "sourceUrl": "https://huggingface.co/Qwen/Qwen-Image-Edit/tree/ac7f9318f633fc4b5778c59367c8128225f1e3de", + "sourceRevision": "Qwen/Qwen-Image-Edit@ac7f9318f633fc4b5778c59367c8128225f1e3de", + "sourceLicense": "Original generation or recorded workflow input; see modelTerms", "modelTerms": [ - "Qwen/Qwen-Image-2512: Apache-2.0; https://huggingface.co/Qwen/Qwen-Image-2512/tree/25468b98e3276ca6700de15c6628e51b7de54a26" + "Qwen/Qwen-Image-Edit: Apache-2.0; https://huggingface.co/Qwen/Qwen-Image-Edit/tree/ac7f9318f633fc4b5778c59367c8128225f1e3de" ], "aiGenerated": true, "humanLikenessConsent": "synthetic", - "marks": ["MATERIAL CULTURE: fictional exhibition title"], + "marks": [], "requiredAttribution": [], - "sourceRightsAttestation": "I hold the rights or permissions needed to publish this exact generated MATERIAL CULTURE exhibition poster and its redacted technical/review metadata under Apache-2.0. The exhibition is fictional in this example; no external image inputs or real-person likenesses were used.", - "path": "template-gallery/qwen_poster_logo_text.webp", - "sha256": "sha256:bytes:0224a184cf3ea0338e4dc51a16b867d39ee84936471cd13c0deeb0f53cfd59b0", - "publishDecision": "approved", - "holdReason": null, "assetLicense": "Apache-2.0", "reviewedBy": "SOURAV DAS", - "reviewedAt": "2026-11-09", - "reviewClass": "per-file-human-approved-qwen-native-image-registration", - "humanApprovalPacketSHA256": "fb90296fc1789e995652389997b3295a3b6d7424f449251539c63546c081e108", - "provenanceTemplateId": "qwen_poster_logo_text" + "reviewedAt": "2026-11-10", + "reviewClass": "per-file-maintainer-accepted-native-gallery-registration", + "provenanceTemplateId": "qwen_inpaint_mask_draft", + "sourceRightsAttestation": "The maintainer accepted the exact review-gallery asset and expressly requested its registration.", + "acceptedOutputSHA256": "fede5f1cd0f1b8a319eb5dee67377a989413ac7bf122df8dabd96415c7030908", + "humanApprovalPacketSHA256": "73ddf9ea7fc27eccc6b93817809421a008ce0fd2fb3080ffbdc5831a09205304" }, { - "path": "template-gallery/qwen_product_ad_composite.webp", - "sha256": "sha256:bytes:0bc45b6953d46b6553f549a01c39f8ce15d92472d0c855d60e52a8c74dfd4f5e", + "path": "template-gallery/qwen_inpaint_object_replace.webp", + "sha256": "sha256:bytes:4537acd74aac196bbc1fdf2804ee273605c6d1d44cf08f62e7ecc2f5cf892e39", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers", "creationMethod": "Maintainer-accepted native MoDiff output or its deterministic Gallery preview", - "sourceUrl": "https://huggingface.co/lightx2v/Qwen-Image-Edit-2511-Lightning/tree/d74eba145674fd7e31b949324e148e21e7118abd", - "sourceRevision": "lightx2v/Qwen-Image-Edit-2511-Lightning@d74eba145674fd7e31b949324e148e21e7118abd | Qwen/Qwen-Image-Edit-2511@6f3ccc0b56e431dc6a0c2b2039706d7d26f22cb9", + "sourceUrl": "https://huggingface.co/Qwen/Qwen-Image-Edit/tree/ac7f9318f633fc4b5778c59367c8128225f1e3de", + "sourceRevision": "Qwen/Qwen-Image-Edit@ac7f9318f633fc4b5778c59367c8128225f1e3de", "sourceLicense": "Original generation or recorded workflow input; see modelTerms", "modelTerms": [ - "lightx2v/Qwen-Image-Edit-2511-Lightning: Apache-2.0; https://huggingface.co/lightx2v/Qwen-Image-Edit-2511-Lightning/tree/d74eba145674fd7e31b949324e148e21e7118abd", - "Qwen/Qwen-Image-Edit-2511: Apache-2.0; https://huggingface.co/Qwen/Qwen-Image-Edit-2511/tree/6f3ccc0b56e431dc6a0c2b2039706d7d26f22cb9" + "Qwen/Qwen-Image-Edit: Apache-2.0; https://huggingface.co/Qwen/Qwen-Image-Edit/tree/ac7f9318f633fc4b5778c59367c8128225f1e3de" ], "aiGenerated": true, "humanLikenessConsent": "synthetic", @@ -8559,41 +9005,66 @@ "reviewedBy": "SOURAV DAS", "reviewedAt": "2026-11-10", "reviewClass": "per-file-maintainer-accepted-native-gallery-registration", - "provenanceTemplateId": "qwen_product_ad_composite", + "provenanceTemplateId": "qwen_inpaint_object_replace", "sourceRightsAttestation": "The maintainer accepted the exact review-gallery asset and expressly requested its registration.", - "acceptedOutputSHA256": "0bc45b6953d46b6553f549a01c39f8ce15d92472d0c855d60e52a8c74dfd4f5e", + "acceptedOutputSHA256": "4537acd74aac196bbc1fdf2804ee273605c6d1d44cf08f62e7ecc2f5cf892e39", "humanApprovalPacketSHA256": "95893cb17e10b15ae6b23d8b31b57b0e14b9af96f822d75edbc6b68971afb11d" }, { - "creatorOrRightsholder": "MoDiff project maintainers, with exact-file rights explicitly attested by the maintainer", - "creationMethod": "AI-generated prompt-only native Qwen-Image-2512 image", - "sourceUrl": "https://huggingface.co/Qwen/Qwen-Image-2512/tree/25468b98e3276ca6700de15c6628e51b7de54a26", - "sourceRevision": "Qwen/Qwen-Image-2512@25468b98e3276ca6700de15c6628e51b7de54a26", - "sourceLicense": "Original prompt-only generation; exact-file redistribution rights explicitly attested; see pinned model terms", + "creatorOrRightsholder": "MoDiff project maintainers, subject to previously approved synthetic source rights and recorded model terms", + "creationMethod": "Native local AI-generated output or exact deterministic layer-sheet derivative; original approved bytes retained", + "sourceUrl": "https://huggingface.co/Qwen/Qwen-Image-Layered/tree/8f0ca708dfff6ba1dd5f2d85d78f8c108a040bcf", + "sourceRevision": "Qwen/Qwen-Image-Layered@8f0ca708dfff6ba1dd5f2d85d78f8c108a040bcf", + "sourceLicense": "Generated output and approved synthetic input; retained model terms apply", "modelTerms": [ - "Qwen/Qwen-Image-2512: Apache-2.0; https://huggingface.co/Qwen/Qwen-Image-2512/tree/25468b98e3276ca6700de15c6628e51b7de54a26" + "Qwen/Qwen-Image-Layered: Apache-2.0; https://huggingface.co/Qwen/Qwen-Image-Layered/tree/8f0ca708dfff6ba1dd5f2d85d78f8c108a040bcf" ], "aiGenerated": true, "humanLikenessConsent": "synthetic", - "marks": [ - "ASTERMIST: fictional product name; generated registered symbol does not establish trademark registration" - ], + "marks": [], "requiredAttribution": [], - "sourceRightsAttestation": "I hold the rights or permissions needed to publish this exact generated ASTERMIST spray image, including its model-invented registered symbol, and its redacted technical/review metadata under Apache-2.0. ASTERMIST is fictional in this example; no registration, external image inputs or real-person likenesses are claimed.", - "path": "template-gallery/qwen_product_mockup.webp", - "sha256": "sha256:bytes:e0b112ee6bfec8be80815aac40618440d9b08d707e11446aeafc11d1b2b3c1c8", + "publicationBasis": "Existing maintainer publication authorization and current explicit instruction to register these three accepted assets; no new ownership or rights quotation is fabricated.", + "path": "template-gallery/qwen_layered_portrait.png", + "sha256": "sha256:bytes:bcad98e6acbe9ea500f722977a33b72953c3991170ce346bff1f3455803ab4d8", "publishDecision": "approved", "holdReason": null, "assetLicense": "Apache-2.0", - "reviewedBy": "SOURAV DAS", - "reviewedAt": "2026-11-09", - "reviewClass": "per-file-human-approved-qwen-native-image-registration", - "humanApprovalPacketSHA256": "fb90296fc1789e995652389997b3295a3b6d7424f449251539c63546c081e108", - "provenanceTemplateId": "qwen_product_mockup" + "reviewedBy": "maintainer (current user)", + "reviewedAt": "2026-11-12", + "reviewClass": "per-file-maintainer-accepted-native-three-registration", + "humanApprovalPacketSHA256": "69c6b3d9b0ea2fcca16ee538f6e75b414b7141658b74f10578758e61360f63fd", + "provenanceTemplateId": "qwen_layered_portrait" }, { - "path": "template-gallery/qwen_product_relight.webp", - "sha256": "sha256:bytes:927824741931202a42d711f671723ee5b44353afb8741ed4f279dc7ee2e5dc5c", + "path": "template-gallery/qwen_layered_sunset_and_peaks.png", + "sha256": "sha256:bytes:5ccb86b18bc5f8a1c18376c72a0236ba9235a4904fef1a9e4f459ac31e2ede2d", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Exact approved file captured from a saved MoDiff workflow", + "sourceUrl": "https://huggingface.co/Qwen/Qwen-Image-Layered/tree/8f0ca708dfff6ba1dd5f2d85d78f8c108a040bcf", + "sourceRevision": "Qwen/Qwen-Image-Layered@8f0ca708dfff6ba1dd5f2d85d78f8c108a040bcf", + "sourceLicense": "Maintainer-authorized file with publisher terms retained", + "modelTerms": [ + "https://huggingface.co/Qwen/Qwen-Image-Layered/blob/8f0ca708dfff6ba1dd5f2d85d78f8c108a040bcf/README.md" + ], + "aiGenerated": true, + "humanLikenessConsent": "synthetic", + "marks": [], + "requiredAttribution": [ + "Qwen/Qwen-Image-Layered@8f0ca708dfff6ba1dd5f2d85d78f8c108a040bcf https://huggingface.co/Qwen/Qwen-Image-Layered/tree/8f0ca708dfff6ba1dd5f2d85d78f8c108a040bcf" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "b16dfc2b7c1c32272b8f79bc1bffbb60376e63f8cf1ab9d0bdf9aea07cccf5cd", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "qwen_layered_sunset_and_peaks" + }, + { + "path": "template-gallery/qwen_logo_texture.webp", + "sha256": "sha256:bytes:c4afc3f779e03437a122845ee9f19d149e5a049f0cce7b076047a69f964bc416", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers", @@ -8613,14 +9084,14 @@ "reviewedBy": "SOURAV DAS", "reviewedAt": "2026-11-10", "reviewClass": "per-file-maintainer-accepted-native-gallery-registration", - "provenanceTemplateId": "qwen_product_relight", + "provenanceTemplateId": "qwen_logo_texture", "sourceRightsAttestation": "The maintainer accepted the exact review-gallery asset and expressly requested its registration.", - "acceptedOutputSHA256": "927824741931202a42d711f671723ee5b44353afb8741ed4f279dc7ee2e5dc5c", + "acceptedOutputSHA256": "c4afc3f779e03437a122845ee9f19d149e5a049f0cce7b076047a69f964bc416", "humanApprovalPacketSHA256": "95893cb17e10b15ae6b23d8b31b57b0e14b9af96f822d75edbc6b68971afb11d" }, { "creatorOrRightsholder": "MoDiff project maintainers, with exact-file rights explicitly attested by the maintainer", - "creationMethod": "AI-generated prompt-only native Qwen-Image-2512 exact-text poster", + "creationMethod": "AI-generated prompt-only native Qwen-Image-2512 image", "sourceUrl": "https://huggingface.co/Qwen/Qwen-Image-2512/tree/25468b98e3276ca6700de15c6628e51b7de54a26", "sourceRevision": "Qwen/Qwen-Image-2512@25468b98e3276ca6700de15c6628e51b7de54a26", "sourceLicense": "Original prompt-only generation; exact-file redistribution rights explicitly attested; see pinned model terms", @@ -8629,232 +9100,356 @@ ], "aiGenerated": true, "humanLikenessConsent": "synthetic", - "marks": ["VERDA 03: fictional product name in this generated example"], + "marks": ["TIDELINE: fictional cinema and event"], "requiredAttribution": [], - "sourceRightsAttestation": "I hold the rights or permissions needed to publicly redistribute this exact generated VERDA 03 poster and its redacted technical and quality metadata under Apache-2.0. VERDA 03 is a fictional product name in this example; no external image inputs or real-person likenesses were used.", - "path": "template-gallery/qwen_text_rendering.webp", - "sha256": "sha256:bytes:3ea86ebec84418b15a11c7ba0ee3a9e8ef1c0053e62ebdab5c9bb3beb7bae873", + "sourceRightsAttestation": "I hold the rights or permissions needed to publish this exact generated TIDELINE cinema image and its redacted technical/review records under Apache-2.0. The film event and cinema are fictional; no external image inputs or real-person likenesses were used.", + "path": "template-gallery/qwen_low_vram_poster_layout.webp", + "sha256": "sha256:bytes:65721301c3819ef40a48281f42c2f56c8ba129bb23545b3f20958d784be13e34", "publishDecision": "approved", "holdReason": null, "assetLicense": "Apache-2.0", "reviewedBy": "SOURAV DAS", - "reviewedAt": "2026-11-09", - "reviewClass": "per-file-human-approved-qwen-exact-text-registration", - "humanApprovalPacketSHA256": "a000a897c1a4ae5980d2f50e5e88a2affb992e403dbd6df9d3ebbd5de5db4891", - "provenanceTemplateId": "qwen_text_rendering" + "reviewedAt": "2026-11-10", + "reviewClass": "per-file-human-approved-qwen-native-image-registration", + "humanApprovalPacketSHA256": "13cb57389a33fb689324c40827376b3ddfe0ade1dd033ffc8a0c51e749e44487", + "provenanceTemplateId": "qwen_low_vram_poster_layout" }, { - "path": "template-gallery/qwen_tile_extract.webp", - "sha256": "sha256:bytes:1b6523e040e6895af885ff53a1033a3caeeb18a4615788ed385a8f061eef6465", - "publishDecision": "approved", - "holdReason": null, - "creatorOrRightsholder": "MoDiff project maintainers", - "creationMethod": "Maintainer-accepted native MoDiff output or its deterministic Gallery preview", - "sourceUrl": "https://huggingface.co/Qwen/Qwen-Image-Edit/tree/ac7f9318f633fc4b5778c59367c8128225f1e3de", - "sourceRevision": "Qwen/Qwen-Image-Edit@ac7f9318f633fc4b5778c59367c8128225f1e3de", - "sourceLicense": "Original generation or recorded workflow input; see modelTerms", + "creatorOrRightsholder": "MoDiff project maintainers, with exact-file rights explicitly attested by the maintainer", + "creationMethod": "AI-generated prompt-only native Qwen-Image-2512 image", + "sourceUrl": "https://huggingface.co/Qwen/Qwen-Image-2512/tree/25468b98e3276ca6700de15c6628e51b7de54a26", + "sourceRevision": "Qwen/Qwen-Image-2512@25468b98e3276ca6700de15c6628e51b7de54a26", + "sourceLicense": "Original prompt-only generation; exact-file redistribution rights explicitly attested; see pinned model terms", "modelTerms": [ - "Qwen/Qwen-Image-Edit: Apache-2.0; https://huggingface.co/Qwen/Qwen-Image-Edit/tree/ac7f9318f633fc4b5778c59367c8128225f1e3de" + "Qwen/Qwen-Image-2512: Apache-2.0; https://huggingface.co/Qwen/Qwen-Image-2512/tree/25468b98e3276ca6700de15c6628e51b7de54a26" ], "aiGenerated": true, "humanLikenessConsent": "synthetic", - "marks": [], + "marks": ["MICA DROP: fictional product name"], "requiredAttribution": [], + "sourceRightsAttestation": "I approve this exact image as a reviewed concept with the stated design limitations and incomplete independent resource monitoring, without a fully guarded or hardware-qualification claim. I hold the rights or permissions needed to publish this generated MICA DROP image and its redacted technical/review metadata under Apache-2.0. The product is fictional in this example; no external image input or real-person likeness was used.", + "path": "template-gallery/qwen_low_vram_product_concept.webp", + "sha256": "sha256:bytes:6e8f94cdb1e1323607300f6c60d76dc467900a2d520db117cfc34a02c5beb4cf", + "publishDecision": "approved", + "holdReason": null, "assetLicense": "Apache-2.0", "reviewedBy": "SOURAV DAS", "reviewedAt": "2026-11-10", - "reviewClass": "per-file-maintainer-accepted-native-gallery-registration", - "provenanceTemplateId": "qwen_tile_extract", - "sourceRightsAttestation": "The maintainer accepted the exact review-gallery asset and expressly requested its registration.", - "acceptedOutputSHA256": "1b6523e040e6895af885ff53a1033a3caeeb18a4615788ed385a8f061eef6465", - "humanApprovalPacketSHA256": "95893cb17e10b15ae6b23d8b31b57b0e14b9af96f822d75edbc6b68971afb11d" + "reviewClass": "per-file-human-approved-qwen-native-image-registration", + "humanApprovalPacketSHA256": "3193ab9ed5834bddfafc5c6922bd0eaa60e27e5963ca52c740af7540c2847834", + "provenanceTemplateId": "qwen_low_vram_product_concept" }, { "creatorOrRightsholder": "MoDiff project maintainers, with exact-file rights explicitly attested by the maintainer", - "creationMethod": "AI-generated native Qwen image; the final image uses the pinned Spandrel RealESRGAN upscale and the comparison is the genuine same-task base export", + "creationMethod": "AI-generated prompt-only native Qwen-Image-2512 image", "sourceUrl": "https://huggingface.co/Qwen/Qwen-Image-2512/tree/25468b98e3276ca6700de15c6628e51b7de54a26", "sourceRevision": "Qwen/Qwen-Image-2512@25468b98e3276ca6700de15c6628e51b7de54a26", - "sourceLicense": "Original generated image; exact-file redistribution rights explicitly attested; see pinned model terms", + "sourceLicense": "Original prompt-only generation; exact-file redistribution rights explicitly attested; see pinned model terms", "modelTerms": [ - "Qwen/Qwen-Image-2512: Apache-2.0; https://huggingface.co/Qwen/Qwen-Image-2512/tree/25468b98e3276ca6700de15c6628e51b7de54a26", - "amd/realesrgan-x4plus: BSD-3-Clause; https://huggingface.co/amd/realesrgan-x4plus/tree/bda69abcaf525425b371622349e975245ae090c2" + "Qwen/Qwen-Image-2512: Apache-2.0; https://huggingface.co/Qwen/Qwen-Image-2512/tree/25468b98e3276ca6700de15c6628e51b7de54a26" ], "aiGenerated": true, "humanLikenessConsent": "synthetic", - "marks": [], + "marks": ["KITE & ANVIL: fictional stationery brand"], "requiredAttribution": [], - "sourceRightsAttestation": "I hold the rights needed to publish this exact final 2048 image, its genuine 1024 before-upscale image, and redacted technical/review records under Apache-2.0 in the existing MoDiff Gallery Dataset. No external image inputs or real-person likeness references were used; pinned Qwen Apache-2.0 and RealESRGAN BSD-3-Clause model terms are retained.", - "path": "template-gallery/qwen_upscale_finish.webp", - "sha256": "sha256:bytes:44fcaf1af605d6db76060cc2c6511b9a3a1e9cc2e0b8875f5aed295e5b1db6da", + "sourceRightsAttestation": "I hold the rights or permissions needed to publish this exact generated KITE & ANVIL stationery image and its redacted technical/review metadata under Apache-2.0. The stationery brand is fictional in this example; no external image inputs or real-person likenesses were used.", + "path": "template-gallery/qwen_low_vram_text_rendering.webp", + "sha256": "sha256:bytes:884e21aefe6fecfe7015de8382d8dfac06ce5f92ce53c317c596e544d8f4edd4", "publishDecision": "approved", "holdReason": null, "assetLicense": "Apache-2.0", "reviewedBy": "SOURAV DAS", "reviewedAt": "2026-11-10", - "reviewClass": "per-file-human-approved-qwen-expert-upscale-registration", - "humanApprovalPacketSHA256": "f0167419381c0d2a1a1bcd43d2465a0ad728c294a2d91bbe1c6b090a915c2c98", - "provenanceTemplateId": "qwen_upscale_finish" + "reviewClass": "per-file-human-approved-qwen-native-image-registration", + "humanApprovalPacketSHA256": "3193ab9ed5834bddfafc5c6922bd0eaa60e27e5963ca52c740af7540c2847834", + "provenanceTemplateId": "qwen_low_vram_text_rendering" }, { - "creatorOrRightsholder": "MoDiff project maintainers", - "creationMethod": "Project-authored redacted technical/review records or versioned declarations for six maintainer-accepted native results", - "sourceUrl": null, - "sourceRevision": null, - "sourceLicense": "Apache-2.0 project-authored metadata; media and model terms remain separate", - "modelTerms": [], - "aiGenerated": false, - "humanLikenessConsent": "not-applicable", - "marks": [], - "requiredAttribution": [], - "assetLicense": "Apache-2.0", - "path": "template-gallery/recipes/ace_step_audio_variation.v1.json", - "sha256": "sha256:bytes:f6e8868f1b1990ae8f45c336edd77d47b837e9e4b313232f166628f6b0e4acb0", + "path": "template-gallery/qwen_multi_reference_product.webp", + "sha256": "sha256:bytes:c0377035121c03214e54df360f380f531a700efdf17a9e2f3d732dc18244e846", "publishDecision": "approved", "holdReason": null, - "reviewedBy": "SOURAV DAS", - "reviewedAt": "2026-11-13", - "reviewClass": "per-file-maintainer-accepted-native-six-registration", - "humanApprovalPacketSHA256": "03b66b4631afb15032d62a1705331b56f6b12c4882c23945175ec92cc45a506f", - "publicationBasis": "Register the six approved assets now while Moonflower runs on Linux. Use Windows in parallel wherever possible, and keep the longer workflows separate for AMD cloud.", - "provenanceTemplateId": "ace_step_audio_variation" - }, - { "creatorOrRightsholder": "MoDiff project maintainers", - "creationMethod": "Project-authored redacted technical/review records or versioned declarations for six maintainer-accepted native results", - "sourceUrl": null, - "sourceRevision": null, - "sourceLicense": "Apache-2.0 project-authored metadata; media and model terms remain separate", - "modelTerms": [], - "aiGenerated": false, - "humanLikenessConsent": "not-applicable", + "creationMethod": "Maintainer-accepted native MoDiff output or its deterministic Gallery preview", + "sourceUrl": "https://huggingface.co/lightx2v/Qwen-Image-Edit-2511-Lightning/tree/d74eba145674fd7e31b949324e148e21e7118abd", + "sourceRevision": "lightx2v/Qwen-Image-Edit-2511-Lightning@d74eba145674fd7e31b949324e148e21e7118abd | Qwen/Qwen-Image-Edit-2511@6f3ccc0b56e431dc6a0c2b2039706d7d26f22cb9", + "sourceLicense": "Original generation or recorded workflow input; see modelTerms", + "modelTerms": [ + "lightx2v/Qwen-Image-Edit-2511-Lightning: Apache-2.0; https://huggingface.co/lightx2v/Qwen-Image-Edit-2511-Lightning/tree/d74eba145674fd7e31b949324e148e21e7118abd", + "Qwen/Qwen-Image-Edit-2511: Apache-2.0; https://huggingface.co/Qwen/Qwen-Image-Edit-2511/tree/6f3ccc0b56e431dc6a0c2b2039706d7d26f22cb9" + ], + "aiGenerated": true, + "humanLikenessConsent": "synthetic", "marks": [], "requiredAttribution": [], "assetLicense": "Apache-2.0", - "path": "template-gallery/recipes/ace_step_audio_variation.v2.json", - "sha256": "sha256:bytes:f3edd6c987c5ded9cfb03e713a12ea38f4981d15dadc94d8db4c63d25c427f3a", - "publishDecision": "approved", - "holdReason": null, "reviewedBy": "SOURAV DAS", - "reviewedAt": "2026-11-13", - "reviewClass": "per-file-maintainer-accepted-native-six-registration", - "humanApprovalPacketSHA256": "03b66b4631afb15032d62a1705331b56f6b12c4882c23945175ec92cc45a506f", - "publicationBasis": "Register the six approved assets now while Moonflower runs on Linux. Use Windows in parallel wherever possible, and keep the longer workflows separate for AMD cloud.", - "provenanceTemplateId": "ace_step_audio_variation" + "reviewedAt": "2026-11-10", + "reviewClass": "per-file-maintainer-accepted-native-gallery-registration", + "provenanceTemplateId": "qwen_multi_reference_product", + "sourceRightsAttestation": "The maintainer accepted the exact review-gallery asset and expressly requested its registration.", + "acceptedOutputSHA256": "c0377035121c03214e54df360f380f531a700efdf17a9e2f3d732dc18244e846", + "humanApprovalPacketSHA256": "95893cb17e10b15ae6b23d8b31b57b0e14b9af96f822d75edbc6b68971afb11d" }, { "creatorOrRightsholder": "MoDiff project maintainers", - "creationMethod": "Project-authored redacted technical/review records or versioned declarations for two maintainer-accepted native replacements", - "sourceUrl": null, - "sourceRevision": null, - "sourceLicense": "Apache-2.0 project-authored metadata; media and model terms remain separate", - "modelTerms": [], - "aiGenerated": false, - "humanLikenessConsent": "not-applicable", + "creationMethod": "Native MoDiff image generation or editing for qwen_outpaint_aspect_template", + "sourceUrl": "https://huggingface.co/Qwen/Qwen-Image-Edit/tree/ac7f9318f633fc4b5778c59367c8128225f1e3de", + "sourceRevision": "Qwen/Qwen-Image-Edit@ac7f9318f633fc4b5778c59367c8128225f1e3de", + "sourceLicense": "Maintainer-approved generated output. The selected models and adapters have separate pinned terms.", + "modelTerms": [ + "Apache-2.0 as declared in the pinned model card · https://huggingface.co/Qwen/Qwen-Image-Edit/tree/ac7f9318f633fc4b5778c59367c8128225f1e3de" + ], + "aiGenerated": true, + "humanLikenessConsent": "synthetic", "marks": [], "requiredAttribution": [], - "assetLicense": "Apache-2.0", - "path": "template-gallery/recipes/ace_step_lyric_music_video.accepted-20261115.json", - "sha256": "sha256:bytes:6764457ab58b9b8c2a289a3912f336f01b10f5bfca1bd11d9bea27ec507bc667", + "sourceRightsAttestation": "The maintainer approved the exact reviewed asset in the Gallery review and requested its registration.", + "path": "template-gallery/qwen_outpaint_aspect_template.webp", + "sha256": "sha256:bytes:d9ccf1960420a487ce16258167a88c7f4eb103fb24444ea0ad997487d1061554", "publishDecision": "approved", "holdReason": null, + "assetLicense": "Apache-2.0", "reviewedBy": "SOURAV DAS", - "reviewedAt": "2026-11-15", - "reviewClass": "per-file-maintainer-accepted-native-two-registration", - "humanApprovalPacketSHA256": "c3c5e06d05771cf28f823e1dee31a9e7e3765d2f84038823aaadc505ee8290f5", - "publicationBasis": "you can register these two as well", - "provenanceTemplateId": "ace_step_lyric_music_video" + "reviewedAt": "2026-11-10", + "reviewClass": "per-file-maintainer-approved-gallery-registration", + "humanApprovalPacketSHA256": "351d122936dc8df9c3fb6217005641dd2cc2ecddc39cd7cd7fadc2939def70b3", + "provenanceTemplateId": "qwen_outpaint_aspect_template" }, { "creatorOrRightsholder": "MoDiff project maintainers", - "creationMethod": "Project-authored redacted technical/review records or versioned declarations for two maintainer-accepted native replacements", - "sourceUrl": null, - "sourceRevision": null, - "sourceLicense": "Apache-2.0 project-authored metadata; media and model terms remain separate", - "modelTerms": [], - "aiGenerated": false, - "humanLikenessConsent": "not-applicable", + "creationMethod": "Native MoDiff image generation or editing for qwen_outpaint_draft", + "sourceUrl": "https://huggingface.co/Qwen/Qwen-Image-Edit/tree/ac7f9318f633fc4b5778c59367c8128225f1e3de", + "sourceRevision": "Qwen/Qwen-Image-Edit@ac7f9318f633fc4b5778c59367c8128225f1e3de", + "sourceLicense": "Maintainer-approved generated output. The selected models and adapters have separate pinned terms.", + "modelTerms": [ + "Apache-2.0 as declared in the pinned model card · https://huggingface.co/Qwen/Qwen-Image-Edit/tree/ac7f9318f633fc4b5778c59367c8128225f1e3de" + ], + "aiGenerated": true, + "humanLikenessConsent": "synthetic", "marks": [], "requiredAttribution": [], - "assetLicense": "Apache-2.0", - "path": "template-gallery/recipes/ace_step_lyric_music_video.inputs-20261115.json", - "sha256": "sha256:bytes:5bd98a0e2e48c331efb732fac1140d47c6f4272419999b6d0e0ee78a5fa99bbb", + "sourceRightsAttestation": "The maintainer approved the exact reviewed asset in the Gallery review and requested its registration.", + "path": "template-gallery/qwen_outpaint_draft.webp", + "sha256": "sha256:bytes:dfa97dd6b2acbe53b05814a1d6d525ca3fdddb2d1dbe000b3dab7fa1ed5feb6a", "publishDecision": "approved", "holdReason": null, + "assetLicense": "Apache-2.0", "reviewedBy": "SOURAV DAS", - "reviewedAt": "2026-11-15", - "reviewClass": "per-file-maintainer-accepted-native-two-registration", - "humanApprovalPacketSHA256": "c3c5e06d05771cf28f823e1dee31a9e7e3765d2f84038823aaadc505ee8290f5", - "publicationBasis": "you can register these two as well", - "provenanceTemplateId": "ace_step_lyric_music_video" + "reviewedAt": "2026-11-10", + "reviewClass": "per-file-maintainer-approved-gallery-registration", + "humanApprovalPacketSHA256": "351d122936dc8df9c3fb6217005641dd2cc2ecddc39cd7cd7fadc2939def70b3", + "provenanceTemplateId": "qwen_outpaint_draft" }, { - "path": "template-gallery/recipes/flux_kontext_multi_reference.v1.json", - "sha256": "sha256:bytes:38697d00973bb332113175f8671f8a4dfb3ee08ff2c498f83968a35c518fcf09", + "path": "template-gallery/qwen_packaging_dieline.webp", + "sha256": "sha256:bytes:1418c030b8efa5c033b3da9e07a62cc93446b6793c92ea7a707a8dac44820b6d", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers", - "creationMethod": "MoDiff-authored technical, review, input-binding or retained recipe metadata for three maintainer-accepted assets", - "sourceUrl": null, - "sourceRevision": null, - "sourceLicense": "Apache-2.0 project-authored metadata; generated-media model terms are retained separately", - "modelTerms": [], - "aiGenerated": false, - "humanLikenessConsent": "not-applicable", + "creationMethod": "Maintainer-accepted native MoDiff output or its deterministic Gallery preview", + "sourceUrl": "https://huggingface.co/InstantX/Qwen-Image-ControlNet-Union/tree/b13036f066d6dee7c20513e263d3d673055e9de8", + "sourceRevision": "InstantX/Qwen-Image-ControlNet-Union@b13036f066d6dee7c20513e263d3d673055e9de8 | Qwen/Qwen-Image-2512@25468b98e3276ca6700de15c6628e51b7de54a26", + "sourceLicense": "Original generation or recorded workflow input; see modelTerms", + "modelTerms": [ + "InstantX/Qwen-Image-ControlNet-Union: Apache-2.0; https://huggingface.co/InstantX/Qwen-Image-ControlNet-Union/tree/b13036f066d6dee7c20513e263d3d673055e9de8", + "Qwen/Qwen-Image-2512: Apache-2.0; https://huggingface.co/Qwen/Qwen-Image-2512/tree/25468b98e3276ca6700de15c6628e51b7de54a26" + ], + "aiGenerated": true, + "humanLikenessConsent": "synthetic", "marks": [], "requiredAttribution": [], "assetLicense": "Apache-2.0", - "reviewedBy": "maintainer (current user)", - "reviewedAt": "2026-11-12", - "reviewClass": "per-file-maintainer-accepted-native-three-registration", - "humanApprovalPacketSHA256": "69c6b3d9b0ea2fcca16ee538f6e75b414b7141658b74f10578758e61360f63fd", - "humanApprovalScope": "The maintainer explicitly approved the proposed 4/5 scores, known limits, exact retained Klein two-reference derivative output, its redacted technical/quality metadata, and permission to make and redistribute this derivative under Apache-2.0. Existing source images and their mixed license records remain unchanged; no other assets or held cases are newly approved.", - "provenanceTemplateId": "flux_kontext_multi_reference" + "reviewedBy": "SOURAV DAS", + "reviewedAt": "2026-11-10", + "reviewClass": "per-file-maintainer-accepted-native-gallery-registration", + "provenanceTemplateId": "qwen_packaging_dieline", + "sourceRightsAttestation": "The maintainer accepted the exact review-gallery asset and expressly requested its registration.", + "acceptedOutputSHA256": "1418c030b8efa5c033b3da9e07a62cc93446b6793c92ea7a707a8dac44820b6d", + "humanApprovalPacketSHA256": "73ddf9ea7fc27eccc6b93817809421a008ce0fd2fb3080ffbdc5831a09205304" }, { - "path": "template-gallery/recipes/flux_kontext_multi_reference.v2.json", - "sha256": "sha256:bytes:44eb1ccfef00a503e210d2ec908ba4156900f973cf79097d9d089b7508e5b937", + "creatorOrRightsholder": "MoDiff project maintainers, with exact-file rights explicitly attested by the maintainer", + "creationMethod": "AI-generated prompt-only native Qwen-Image-2512 image", + "sourceUrl": "https://huggingface.co/Qwen/Qwen-Image-2512/tree/25468b98e3276ca6700de15c6628e51b7de54a26", + "sourceRevision": "Qwen/Qwen-Image-2512@25468b98e3276ca6700de15c6628e51b7de54a26", + "sourceLicense": "Original prompt-only generation; exact-file redistribution rights explicitly attested; see pinned model terms", + "modelTerms": [ + "Qwen/Qwen-Image-2512: Apache-2.0; https://huggingface.co/Qwen/Qwen-Image-2512/tree/25468b98e3276ca6700de15c6628e51b7de54a26" + ], + "aiGenerated": true, + "humanLikenessConsent": "synthetic", + "marks": ["MATERIAL CULTURE: fictional exhibition title"], + "requiredAttribution": [], + "sourceRightsAttestation": "I hold the rights or permissions needed to publish this exact generated MATERIAL CULTURE exhibition poster and its redacted technical/review metadata under Apache-2.0. The exhibition is fictional in this example; no external image inputs or real-person likenesses were used.", + "path": "template-gallery/qwen_poster_logo_text.webp", + "sha256": "sha256:bytes:0224a184cf3ea0338e4dc51a16b867d39ee84936471cd13c0deeb0f53cfd59b0", + "publishDecision": "approved", + "holdReason": null, + "assetLicense": "Apache-2.0", + "reviewedBy": "SOURAV DAS", + "reviewedAt": "2026-11-09", + "reviewClass": "per-file-human-approved-qwen-native-image-registration", + "humanApprovalPacketSHA256": "fb90296fc1789e995652389997b3295a3b6d7424f449251539c63546c081e108", + "provenanceTemplateId": "qwen_poster_logo_text" + }, + { + "path": "template-gallery/qwen_product_ad_composite.webp", + "sha256": "sha256:bytes:0bc45b6953d46b6553f549a01c39f8ce15d92472d0c855d60e52a8c74dfd4f5e", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers", - "creationMethod": "MoDiff-authored technical, review, input-binding or retained recipe metadata for three maintainer-accepted assets", - "sourceUrl": null, - "sourceRevision": null, - "sourceLicense": "Apache-2.0 project-authored metadata; generated-media model terms are retained separately", - "modelTerms": [], - "aiGenerated": false, - "humanLikenessConsent": "not-applicable", + "creationMethod": "Maintainer-accepted native MoDiff output or its deterministic Gallery preview", + "sourceUrl": "https://huggingface.co/lightx2v/Qwen-Image-Edit-2511-Lightning/tree/d74eba145674fd7e31b949324e148e21e7118abd", + "sourceRevision": "lightx2v/Qwen-Image-Edit-2511-Lightning@d74eba145674fd7e31b949324e148e21e7118abd | Qwen/Qwen-Image-Edit-2511@6f3ccc0b56e431dc6a0c2b2039706d7d26f22cb9", + "sourceLicense": "Original generation or recorded workflow input; see modelTerms", + "modelTerms": [ + "lightx2v/Qwen-Image-Edit-2511-Lightning: Apache-2.0; https://huggingface.co/lightx2v/Qwen-Image-Edit-2511-Lightning/tree/d74eba145674fd7e31b949324e148e21e7118abd", + "Qwen/Qwen-Image-Edit-2511: Apache-2.0; https://huggingface.co/Qwen/Qwen-Image-Edit-2511/tree/6f3ccc0b56e431dc6a0c2b2039706d7d26f22cb9" + ], + "aiGenerated": true, + "humanLikenessConsent": "synthetic", "marks": [], "requiredAttribution": [], "assetLicense": "Apache-2.0", - "reviewedBy": "maintainer (current user)", - "reviewedAt": "2026-11-12", - "reviewClass": "per-file-maintainer-accepted-native-three-registration", - "humanApprovalPacketSHA256": "69c6b3d9b0ea2fcca16ee538f6e75b414b7141658b74f10578758e61360f63fd", - "humanApprovalScope": "The maintainer explicitly approved the proposed 4/5 scores, known limits, exact retained Klein two-reference derivative output, its redacted technical/quality metadata, and permission to make and redistribute this derivative under Apache-2.0. Existing source images and their mixed license records remain unchanged; no other assets or held cases are newly approved.", - "provenanceTemplateId": "flux_kontext_multi_reference" + "reviewedBy": "SOURAV DAS", + "reviewedAt": "2026-11-10", + "reviewClass": "per-file-maintainer-accepted-native-gallery-registration", + "provenanceTemplateId": "qwen_product_ad_composite", + "sourceRightsAttestation": "The maintainer accepted the exact review-gallery asset and expressly requested its registration.", + "acceptedOutputSHA256": "0bc45b6953d46b6553f549a01c39f8ce15d92472d0c855d60e52a8c74dfd4f5e", + "humanApprovalPacketSHA256": "95893cb17e10b15ae6b23d8b31b57b0e14b9af96f822d75edbc6b68971afb11d" + }, + { + "creatorOrRightsholder": "MoDiff project maintainers, with exact-file rights explicitly attested by the maintainer", + "creationMethod": "AI-generated prompt-only native Qwen-Image-2512 image", + "sourceUrl": "https://huggingface.co/Qwen/Qwen-Image-2512/tree/25468b98e3276ca6700de15c6628e51b7de54a26", + "sourceRevision": "Qwen/Qwen-Image-2512@25468b98e3276ca6700de15c6628e51b7de54a26", + "sourceLicense": "Original prompt-only generation; exact-file redistribution rights explicitly attested; see pinned model terms", + "modelTerms": [ + "Qwen/Qwen-Image-2512: Apache-2.0; https://huggingface.co/Qwen/Qwen-Image-2512/tree/25468b98e3276ca6700de15c6628e51b7de54a26" + ], + "aiGenerated": true, + "humanLikenessConsent": "synthetic", + "marks": [ + "ASTERMIST: fictional product name; generated registered symbol does not establish trademark registration" + ], + "requiredAttribution": [], + "sourceRightsAttestation": "I hold the rights or permissions needed to publish this exact generated ASTERMIST spray image, including its model-invented registered symbol, and its redacted technical/review metadata under Apache-2.0. ASTERMIST is fictional in this example; no registration, external image inputs or real-person likenesses are claimed.", + "path": "template-gallery/qwen_product_mockup.webp", + "sha256": "sha256:bytes:e0b112ee6bfec8be80815aac40618440d9b08d707e11446aeafc11d1b2b3c1c8", + "publishDecision": "approved", + "holdReason": null, + "assetLicense": "Apache-2.0", + "reviewedBy": "SOURAV DAS", + "reviewedAt": "2026-11-09", + "reviewClass": "per-file-human-approved-qwen-native-image-registration", + "humanApprovalPacketSHA256": "fb90296fc1789e995652389997b3295a3b6d7424f449251539c63546c081e108", + "provenanceTemplateId": "qwen_product_mockup" }, { + "path": "template-gallery/qwen_product_relight.webp", + "sha256": "sha256:bytes:927824741931202a42d711f671723ee5b44353afb8741ed4f279dc7ee2e5dc5c", + "publishDecision": "approved", + "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers", - "creationMethod": "Project-authored redacted technical/review records or versioned declarations for six maintainer-accepted native results", - "sourceUrl": null, - "sourceRevision": null, - "sourceLicense": "Apache-2.0 project-authored metadata; media and model terms remain separate", - "modelTerms": [], - "aiGenerated": false, - "humanLikenessConsent": "not-applicable", + "creationMethod": "Maintainer-accepted native MoDiff output or its deterministic Gallery preview", + "sourceUrl": "https://huggingface.co/lightx2v/Qwen-Image-Edit-2511-Lightning/tree/d74eba145674fd7e31b949324e148e21e7118abd", + "sourceRevision": "lightx2v/Qwen-Image-Edit-2511-Lightning@d74eba145674fd7e31b949324e148e21e7118abd | Qwen/Qwen-Image-Edit-2511@6f3ccc0b56e431dc6a0c2b2039706d7d26f22cb9", + "sourceLicense": "Original generation or recorded workflow input; see modelTerms", + "modelTerms": [ + "lightx2v/Qwen-Image-Edit-2511-Lightning: Apache-2.0; https://huggingface.co/lightx2v/Qwen-Image-Edit-2511-Lightning/tree/d74eba145674fd7e31b949324e148e21e7118abd", + "Qwen/Qwen-Image-Edit-2511: Apache-2.0; https://huggingface.co/Qwen/Qwen-Image-Edit-2511/tree/6f3ccc0b56e431dc6a0c2b2039706d7d26f22cb9" + ], + "aiGenerated": true, + "humanLikenessConsent": "synthetic", "marks": [], "requiredAttribution": [], "assetLicense": "Apache-2.0", - "path": "template-gallery/recipes/flux_lora_cinematic_octane_3d.v2.json", - "sha256": "sha256:bytes:3a351220f925b9bd2651f944804cb3758057d88ae6262e8435793ff1b3f2dec8", + "reviewedBy": "SOURAV DAS", + "reviewedAt": "2026-11-10", + "reviewClass": "per-file-maintainer-accepted-native-gallery-registration", + "provenanceTemplateId": "qwen_product_relight", + "sourceRightsAttestation": "The maintainer accepted the exact review-gallery asset and expressly requested its registration.", + "acceptedOutputSHA256": "927824741931202a42d711f671723ee5b44353afb8741ed4f279dc7ee2e5dc5c", + "humanApprovalPacketSHA256": "95893cb17e10b15ae6b23d8b31b57b0e14b9af96f822d75edbc6b68971afb11d" + }, + { + "creatorOrRightsholder": "MoDiff project maintainers, with exact-file rights explicitly attested by the maintainer", + "creationMethod": "AI-generated prompt-only native Qwen-Image-2512 exact-text poster", + "sourceUrl": "https://huggingface.co/Qwen/Qwen-Image-2512/tree/25468b98e3276ca6700de15c6628e51b7de54a26", + "sourceRevision": "Qwen/Qwen-Image-2512@25468b98e3276ca6700de15c6628e51b7de54a26", + "sourceLicense": "Original prompt-only generation; exact-file redistribution rights explicitly attested; see pinned model terms", + "modelTerms": [ + "Qwen/Qwen-Image-2512: Apache-2.0; https://huggingface.co/Qwen/Qwen-Image-2512/tree/25468b98e3276ca6700de15c6628e51b7de54a26" + ], + "aiGenerated": true, + "humanLikenessConsent": "synthetic", + "marks": ["VERDA 03: fictional product name in this generated example"], + "requiredAttribution": [], + "sourceRightsAttestation": "I hold the rights or permissions needed to publicly redistribute this exact generated VERDA 03 poster and its redacted technical and quality metadata under Apache-2.0. VERDA 03 is a fictional product name in this example; no external image inputs or real-person likenesses were used.", + "path": "template-gallery/qwen_text_rendering.webp", + "sha256": "sha256:bytes:3ea86ebec84418b15a11c7ba0ee3a9e8ef1c0053e62ebdab5c9bb3beb7bae873", "publishDecision": "approved", "holdReason": null, + "assetLicense": "Apache-2.0", "reviewedBy": "SOURAV DAS", - "reviewedAt": "2026-11-13", - "reviewClass": "per-file-maintainer-accepted-native-six-registration", - "humanApprovalPacketSHA256": "03b66b4631afb15032d62a1705331b56f6b12c4882c23945175ec92cc45a506f", - "publicationBasis": "Register the six approved assets now while Moonflower runs on Linux. Use Windows in parallel wherever possible, and keep the longer workflows separate for AMD cloud.", - "provenanceTemplateId": "flux_lora_cinematic_octane_3d" + "reviewedAt": "2026-11-09", + "reviewClass": "per-file-human-approved-qwen-exact-text-registration", + "humanApprovalPacketSHA256": "a000a897c1a4ae5980d2f50e5e88a2affb992e403dbd6df9d3ebbd5de5db4891", + "provenanceTemplateId": "qwen_text_rendering" + }, + { + "path": "template-gallery/qwen_tile_extract.webp", + "sha256": "sha256:bytes:1b6523e040e6895af885ff53a1033a3caeeb18a4615788ed385a8f061eef6465", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers", + "creationMethod": "Maintainer-accepted native MoDiff output or its deterministic Gallery preview", + "sourceUrl": "https://huggingface.co/Qwen/Qwen-Image-Edit/tree/ac7f9318f633fc4b5778c59367c8128225f1e3de", + "sourceRevision": "Qwen/Qwen-Image-Edit@ac7f9318f633fc4b5778c59367c8128225f1e3de", + "sourceLicense": "Original generation or recorded workflow input; see modelTerms", + "modelTerms": [ + "Qwen/Qwen-Image-Edit: Apache-2.0; https://huggingface.co/Qwen/Qwen-Image-Edit/tree/ac7f9318f633fc4b5778c59367c8128225f1e3de" + ], + "aiGenerated": true, + "humanLikenessConsent": "synthetic", + "marks": [], + "requiredAttribution": [], + "assetLicense": "Apache-2.0", + "reviewedBy": "SOURAV DAS", + "reviewedAt": "2026-11-10", + "reviewClass": "per-file-maintainer-accepted-native-gallery-registration", + "provenanceTemplateId": "qwen_tile_extract", + "sourceRightsAttestation": "The maintainer accepted the exact review-gallery asset and expressly requested its registration.", + "acceptedOutputSHA256": "1b6523e040e6895af885ff53a1033a3caeeb18a4615788ed385a8f061eef6465", + "humanApprovalPacketSHA256": "95893cb17e10b15ae6b23d8b31b57b0e14b9af96f822d75edbc6b68971afb11d" + }, + { + "creatorOrRightsholder": "MoDiff project maintainers, with exact-file rights explicitly attested by the maintainer", + "creationMethod": "AI-generated native Qwen image; the final image uses the pinned Spandrel RealESRGAN upscale and the comparison is the genuine same-task base export", + "sourceUrl": "https://huggingface.co/Qwen/Qwen-Image-2512/tree/25468b98e3276ca6700de15c6628e51b7de54a26", + "sourceRevision": "Qwen/Qwen-Image-2512@25468b98e3276ca6700de15c6628e51b7de54a26", + "sourceLicense": "Original generated image; exact-file redistribution rights explicitly attested; see pinned model terms", + "modelTerms": [ + "Qwen/Qwen-Image-2512: Apache-2.0; https://huggingface.co/Qwen/Qwen-Image-2512/tree/25468b98e3276ca6700de15c6628e51b7de54a26", + "amd/realesrgan-x4plus: BSD-3-Clause; https://huggingface.co/amd/realesrgan-x4plus/tree/bda69abcaf525425b371622349e975245ae090c2" + ], + "aiGenerated": true, + "humanLikenessConsent": "synthetic", + "marks": [], + "requiredAttribution": [], + "sourceRightsAttestation": "I hold the rights needed to publish this exact final 2048 image, its genuine 1024 before-upscale image, and redacted technical/review records under Apache-2.0 in the existing MoDiff Gallery Dataset. No external image inputs or real-person likeness references were used; pinned Qwen Apache-2.0 and RealESRGAN BSD-3-Clause model terms are retained.", + "path": "template-gallery/qwen_upscale_finish.webp", + "sha256": "sha256:bytes:44fcaf1af605d6db76060cc2c6511b9a3a1e9cc2e0b8875f5aed295e5b1db6da", + "publishDecision": "approved", + "holdReason": null, + "assetLicense": "Apache-2.0", + "reviewedBy": "SOURAV DAS", + "reviewedAt": "2026-11-10", + "reviewClass": "per-file-human-approved-qwen-expert-upscale-registration", + "humanApprovalPacketSHA256": "f0167419381c0d2a1a1bcd43d2465a0ad728c294a2d91bbe1c6b090a915c2c98", + "provenanceTemplateId": "qwen_upscale_finish" }, { "creatorOrRightsholder": "MoDiff project maintainers", @@ -8868,8 +9463,8 @@ "marks": [], "requiredAttribution": [], "assetLicense": "Apache-2.0", - "path": "template-gallery/recipes/flux_redux_edit.v1.json", - "sha256": "sha256:bytes:bf1c6726baec3572b2cbbddc9c09f4bd84d13476209db5e2ee638848e122b673", + "path": "template-gallery/recipes/ace_step_audio_variation.v1.json", + "sha256": "sha256:bytes:f6e8868f1b1990ae8f45c336edd77d47b837e9e4b313232f166628f6b0e4acb0", "publishDecision": "approved", "holdReason": null, "reviewedBy": "SOURAV DAS", @@ -8877,7 +9472,7 @@ "reviewClass": "per-file-maintainer-accepted-native-six-registration", "humanApprovalPacketSHA256": "03b66b4631afb15032d62a1705331b56f6b12c4882c23945175ec92cc45a506f", "publicationBasis": "Register the six approved assets now while Moonflower runs on Linux. Use Windows in parallel wherever possible, and keep the longer workflows separate for AMD cloud.", - "provenanceTemplateId": "flux_redux_edit" + "provenanceTemplateId": "ace_step_audio_variation" }, { "creatorOrRightsholder": "MoDiff project maintainers", @@ -8891,8 +9486,8 @@ "marks": [], "requiredAttribution": [], "assetLicense": "Apache-2.0", - "path": "template-gallery/recipes/flux_redux_edit.v2.json", - "sha256": "sha256:bytes:f7abf4561990b1d1fa83c65253eee8752dd7b9b8e9439cfe8f7912891429f263", + "path": "template-gallery/recipes/ace_step_audio_variation.v2.json", + "sha256": "sha256:bytes:f3edd6c987c5ded9cfb03e713a12ea38f4981d15dadc94d8db4c63d25c427f3a", "publishDecision": "approved", "holdReason": null, "reviewedBy": "SOURAV DAS", @@ -8900,7 +9495,7 @@ "reviewClass": "per-file-maintainer-accepted-native-six-registration", "humanApprovalPacketSHA256": "03b66b4631afb15032d62a1705331b56f6b12c4882c23945175ec92cc45a506f", "publicationBasis": "Register the six approved assets now while Moonflower runs on Linux. Use Windows in parallel wherever possible, and keep the longer workflows separate for AMD cloud.", - "provenanceTemplateId": "flux_redux_edit" + "provenanceTemplateId": "ace_step_audio_variation" }, { "creatorOrRightsholder": "MoDiff project maintainers", @@ -8914,8 +9509,8 @@ "marks": [], "requiredAttribution": [], "assetLicense": "Apache-2.0", - "path": "template-gallery/recipes/flux_redux_multi_reference.accepted-20261115.json", - "sha256": "sha256:bytes:bf59cee1809a664b6b8c94dc47c21ef3c43b2562d6857d5a1786845ad3071dbe", + "path": "template-gallery/recipes/ace_step_lyric_music_video.accepted-20261115.json", + "sha256": "sha256:bytes:6764457ab58b9b8c2a289a3912f336f01b10f5bfca1bd11d9bea27ec507bc667", "publishDecision": "approved", "holdReason": null, "reviewedBy": "SOURAV DAS", @@ -8923,11 +9518,11 @@ "reviewClass": "per-file-maintainer-accepted-native-two-registration", "humanApprovalPacketSHA256": "c3c5e06d05771cf28f823e1dee31a9e7e3765d2f84038823aaadc505ee8290f5", "publicationBasis": "you can register these two as well", - "provenanceTemplateId": "flux_redux_multi_reference" + "provenanceTemplateId": "ace_step_lyric_music_video" }, { "creatorOrRightsholder": "MoDiff project maintainers", - "creationMethod": "Project-authored redacted technical/review records or versioned declarations for seven maintainer-accepted native video replacements", + "creationMethod": "Project-authored redacted technical/review records or versioned declarations for two maintainer-accepted native replacements", "sourceUrl": null, "sourceRevision": null, "sourceLicense": "Apache-2.0 project-authored metadata; media and model terms remain separate", @@ -8937,16 +9532,177 @@ "marks": [], "requiredAttribution": [], "assetLicense": "Apache-2.0", - "path": "template-gallery/recipes/ltx_video_animated_story.native-20261115.json", - "sha256": "sha256:bytes:a9b841a1a155441e2d9e224fc7cd09c27840702f7dfc9c9f8655df46e200dd0f", + "path": "template-gallery/recipes/ace_step_lyric_music_video.inputs-20261115.json", + "sha256": "sha256:bytes:5bd98a0e2e48c331efb732fac1140d47c6f4272419999b6d0e0ee78a5fa99bbb", "publishDecision": "approved", "holdReason": null, "reviewedBy": "SOURAV DAS", "reviewedAt": "2026-11-15", - "reviewClass": "per-file-maintainer-accepted-native-seven-registration", - "humanApprovalPacketSHA256": "95c7c2ed080c3d618db1701b066724660595337460c46df8305b50810783eaa3", - "publicationBasis": "these are approved, you can register them", - "provenanceTemplateId": "ltx_video_animated_story" + "reviewClass": "per-file-maintainer-accepted-native-two-registration", + "humanApprovalPacketSHA256": "c3c5e06d05771cf28f823e1dee31a9e7e3765d2f84038823aaadc505ee8290f5", + "publicationBasis": "you can register these two as well", + "provenanceTemplateId": "ace_step_lyric_music_video" + }, + { + "path": "template-gallery/recipes/flux_kontext_multi_reference.v1.json", + "sha256": "sha256:bytes:38697d00973bb332113175f8671f8a4dfb3ee08ff2c498f83968a35c518fcf09", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers", + "creationMethod": "MoDiff-authored technical, review, input-binding or retained recipe metadata for three maintainer-accepted assets", + "sourceUrl": null, + "sourceRevision": null, + "sourceLicense": "Apache-2.0 project-authored metadata; generated-media model terms are retained separately", + "modelTerms": [], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [], + "assetLicense": "Apache-2.0", + "reviewedBy": "maintainer (current user)", + "reviewedAt": "2026-11-12", + "reviewClass": "per-file-maintainer-accepted-native-three-registration", + "humanApprovalPacketSHA256": "69c6b3d9b0ea2fcca16ee538f6e75b414b7141658b74f10578758e61360f63fd", + "humanApprovalScope": "The maintainer explicitly approved the proposed 4/5 scores, known limits, exact retained Klein two-reference derivative output, its redacted technical/quality metadata, and permission to make and redistribute this derivative under Apache-2.0. Existing source images and their mixed license records remain unchanged; no other assets or held cases are newly approved.", + "provenanceTemplateId": "flux_kontext_multi_reference" + }, + { + "path": "template-gallery/recipes/flux_kontext_multi_reference.v2.json", + "sha256": "sha256:bytes:44eb1ccfef00a503e210d2ec908ba4156900f973cf79097d9d089b7508e5b937", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers", + "creationMethod": "MoDiff-authored technical, review, input-binding or retained recipe metadata for three maintainer-accepted assets", + "sourceUrl": null, + "sourceRevision": null, + "sourceLicense": "Apache-2.0 project-authored metadata; generated-media model terms are retained separately", + "modelTerms": [], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [], + "assetLicense": "Apache-2.0", + "reviewedBy": "maintainer (current user)", + "reviewedAt": "2026-11-12", + "reviewClass": "per-file-maintainer-accepted-native-three-registration", + "humanApprovalPacketSHA256": "69c6b3d9b0ea2fcca16ee538f6e75b414b7141658b74f10578758e61360f63fd", + "humanApprovalScope": "The maintainer explicitly approved the proposed 4/5 scores, known limits, exact retained Klein two-reference derivative output, its redacted technical/quality metadata, and permission to make and redistribute this derivative under Apache-2.0. Existing source images and their mixed license records remain unchanged; no other assets or held cases are newly approved.", + "provenanceTemplateId": "flux_kontext_multi_reference" + }, + { + "creatorOrRightsholder": "MoDiff project maintainers", + "creationMethod": "Project-authored redacted technical/review records or versioned declarations for six maintainer-accepted native results", + "sourceUrl": null, + "sourceRevision": null, + "sourceLicense": "Apache-2.0 project-authored metadata; media and model terms remain separate", + "modelTerms": [], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [], + "assetLicense": "Apache-2.0", + "path": "template-gallery/recipes/flux_lora_cinematic_octane_3d.v2.json", + "sha256": "sha256:bytes:3a351220f925b9bd2651f944804cb3758057d88ae6262e8435793ff1b3f2dec8", + "publishDecision": "approved", + "holdReason": null, + "reviewedBy": "SOURAV DAS", + "reviewedAt": "2026-11-13", + "reviewClass": "per-file-maintainer-accepted-native-six-registration", + "humanApprovalPacketSHA256": "03b66b4631afb15032d62a1705331b56f6b12c4882c23945175ec92cc45a506f", + "publicationBasis": "Register the six approved assets now while Moonflower runs on Linux. Use Windows in parallel wherever possible, and keep the longer workflows separate for AMD cloud.", + "provenanceTemplateId": "flux_lora_cinematic_octane_3d" + }, + { + "creatorOrRightsholder": "MoDiff project maintainers", + "creationMethod": "Project-authored redacted technical/review records or versioned declarations for six maintainer-accepted native results", + "sourceUrl": null, + "sourceRevision": null, + "sourceLicense": "Apache-2.0 project-authored metadata; media and model terms remain separate", + "modelTerms": [], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [], + "assetLicense": "Apache-2.0", + "path": "template-gallery/recipes/flux_redux_edit.v1.json", + "sha256": "sha256:bytes:bf1c6726baec3572b2cbbddc9c09f4bd84d13476209db5e2ee638848e122b673", + "publishDecision": "approved", + "holdReason": null, + "reviewedBy": "SOURAV DAS", + "reviewedAt": "2026-11-13", + "reviewClass": "per-file-maintainer-accepted-native-six-registration", + "humanApprovalPacketSHA256": "03b66b4631afb15032d62a1705331b56f6b12c4882c23945175ec92cc45a506f", + "publicationBasis": "Register the six approved assets now while Moonflower runs on Linux. Use Windows in parallel wherever possible, and keep the longer workflows separate for AMD cloud.", + "provenanceTemplateId": "flux_redux_edit" + }, + { + "creatorOrRightsholder": "MoDiff project maintainers", + "creationMethod": "Project-authored redacted technical/review records or versioned declarations for six maintainer-accepted native results", + "sourceUrl": null, + "sourceRevision": null, + "sourceLicense": "Apache-2.0 project-authored metadata; media and model terms remain separate", + "modelTerms": [], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [], + "assetLicense": "Apache-2.0", + "path": "template-gallery/recipes/flux_redux_edit.v2.json", + "sha256": "sha256:bytes:f7abf4561990b1d1fa83c65253eee8752dd7b9b8e9439cfe8f7912891429f263", + "publishDecision": "approved", + "holdReason": null, + "reviewedBy": "SOURAV DAS", + "reviewedAt": "2026-11-13", + "reviewClass": "per-file-maintainer-accepted-native-six-registration", + "humanApprovalPacketSHA256": "03b66b4631afb15032d62a1705331b56f6b12c4882c23945175ec92cc45a506f", + "publicationBasis": "Register the six approved assets now while Moonflower runs on Linux. Use Windows in parallel wherever possible, and keep the longer workflows separate for AMD cloud.", + "provenanceTemplateId": "flux_redux_edit" + }, + { + "creatorOrRightsholder": "MoDiff project maintainers", + "creationMethod": "Project-authored redacted technical/review records or versioned declarations for two maintainer-accepted native replacements", + "sourceUrl": null, + "sourceRevision": null, + "sourceLicense": "Apache-2.0 project-authored metadata; media and model terms remain separate", + "modelTerms": [], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [], + "assetLicense": "Apache-2.0", + "path": "template-gallery/recipes/flux_redux_multi_reference.accepted-20261115.json", + "sha256": "sha256:bytes:bf59cee1809a664b6b8c94dc47c21ef3c43b2562d6857d5a1786845ad3071dbe", + "publishDecision": "approved", + "holdReason": null, + "reviewedBy": "SOURAV DAS", + "reviewedAt": "2026-11-15", + "reviewClass": "per-file-maintainer-accepted-native-two-registration", + "humanApprovalPacketSHA256": "c3c5e06d05771cf28f823e1dee31a9e7e3765d2f84038823aaadc505ee8290f5", + "publicationBasis": "you can register these two as well", + "provenanceTemplateId": "flux_redux_multi_reference" + }, + { + "creatorOrRightsholder": "MoDiff project maintainers", + "creationMethod": "Project-authored redacted technical/review records or versioned declarations for seven maintainer-accepted native video replacements", + "sourceUrl": null, + "sourceRevision": null, + "sourceLicense": "Apache-2.0 project-authored metadata; media and model terms remain separate", + "modelTerms": [], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [], + "assetLicense": "Apache-2.0", + "path": "template-gallery/recipes/ltx_video_animated_story.native-20261115.json", + "sha256": "sha256:bytes:a9b841a1a155441e2d9e224fc7cd09c27840702f7dfc9c9f8655df46e200dd0f", + "publishDecision": "approved", + "holdReason": null, + "reviewedBy": "SOURAV DAS", + "reviewedAt": "2026-11-15", + "reviewClass": "per-file-maintainer-accepted-native-seven-registration", + "humanApprovalPacketSHA256": "95c7c2ed080c3d618db1701b066724660595337460c46df8305b50810783eaa3", + "publicationBasis": "these are approved, you can register them", + "provenanceTemplateId": "ltx_video_animated_story" }, { "creatorOrRightsholder": "MoDiff project maintainers", @@ -9413,46 +10169,738 @@ "sha256": "sha256:bytes:5e226af4594ba376023fbc2768f6b019cd846e0ac7fd51015d2c54c0dc723b6b", "publishDecision": "approved", "holdReason": null, - "creatorOrRightsholder": "MoDiff project maintainers", - "creationMethod": "MoDiff-authored technical metadata or review record", - "sourceUrl": null, - "sourceRevision": null, - "sourceLicense": "Apache-2.0", - "modelTerms": [], + "creatorOrRightsholder": "MoDiff project maintainers", + "creationMethod": "MoDiff-authored technical metadata or review record", + "sourceUrl": null, + "sourceRevision": null, + "sourceLicense": "Apache-2.0", + "modelTerms": [], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [], + "assetLicense": "Apache-2.0", + "reviewedBy": "SOURAV DAS", + "reviewedAt": "2026-11-09", + "reviewClass": "per-file-human-approved-accepted-registration", + "provenanceTemplateId": "ace_step_text_to_audio" + }, + { + "path": "template-gallery/reviews/ace_step_text_to_audio.reviewed-provenance.json", + "sha256": "sha256:bytes:4b79e1e6ff29b9d54de6b4e8731e5d9dd268f67b0a5180fa39029cb5cb71826f", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers", + "creationMethod": "MoDiff-authored technical metadata or review record", + "sourceUrl": null, + "sourceRevision": null, + "sourceLicense": "Apache-2.0", + "modelTerms": [], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [], + "assetLicense": "Apache-2.0", + "reviewedBy": "SOURAV DAS", + "reviewedAt": "2026-11-09", + "reviewClass": "per-file-human-approved-accepted-registration", + "provenanceTemplateId": "ace_step_text_to_audio" + }, + { + "path": "template-gallery/reviews/alpine_lake_in_oils.original-provenance.json", + "sha256": "sha256:bytes:9c9ff8e4bae92b7e4564fdc203a36a2cb625489c7b0ca9474ce9979f7bd2d519", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14", + "sourceRevision": "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "creativeml-openrail-m. https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14" + ], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14 https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", + "provenanceTemplateId": "alpine_lake_in_oils" + }, + { + "path": "template-gallery/reviews/alpine_lake_in_oils.original-review.json", + "sha256": "sha256:bytes:9535ffb383b57c57805ca9ad24a1df06ec87fe005d821448727de9c04709a2bd", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14", + "sourceRevision": "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "creativeml-openrail-m. https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14" + ], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14 https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", + "provenanceTemplateId": "alpine_lake_in_oils" + }, + { + "path": "template-gallery/reviews/alpine_lake_in_oils.quality-review.json", + "sha256": "sha256:bytes:ca7c2fd6b10e3f100c7aff867aceb300f4fc93c5d4c3c93919fdf810fdf077b3", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14", + "sourceRevision": "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "creativeml-openrail-m. https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14" + ], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14 https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", + "provenanceTemplateId": "alpine_lake_in_oils" + }, + { + "path": "template-gallery/reviews/alpine_lake_in_oils.retained-template-provenance.json", + "sha256": "sha256:bytes:c268ddbea9ba90fcf556ac9afdcc6b290e103883c5c7e9b5b91a1312f0c4eacb", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14", + "sourceRevision": "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "creativeml-openrail-m. https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14" + ], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14 https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", + "provenanceTemplateId": "alpine_lake_in_oils" + }, + { + "path": "template-gallery/reviews/bookshop_at_blue_hour.original-provenance.json", + "sha256": "sha256:bytes:3f3e4056350e5a1ee59d46aea727b87563ae6fc5fe11a491257e2af7d412f0bf", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/baidu/ERNIE-Image-Turbo/tree/bc68c81e2a1730a394d5fc9fae70713dee940140", + "sourceRevision": "baidu/ERNIE-Image-Turbo@bc68c81e2a1730a394d5fc9fae70713dee940140", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "apache-2.0. https://huggingface.co/baidu/ERNIE-Image-Turbo/tree/bc68c81e2a1730a394d5fc9fae70713dee940140" + ], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "baidu/ERNIE-Image-Turbo@bc68c81e2a1730a394d5fc9fae70713dee940140 https://huggingface.co/baidu/ERNIE-Image-Turbo/tree/bc68c81e2a1730a394d5fc9fae70713dee940140" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", + "provenanceTemplateId": "bookshop_at_blue_hour" + }, + { + "path": "template-gallery/reviews/bookshop_at_blue_hour.original-review.json", + "sha256": "sha256:bytes:26882cd197ba823799f50be6ea1c01098038ad3cee926a71edf7aa47038d7226", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/baidu/ERNIE-Image-Turbo/tree/bc68c81e2a1730a394d5fc9fae70713dee940140", + "sourceRevision": "baidu/ERNIE-Image-Turbo@bc68c81e2a1730a394d5fc9fae70713dee940140", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "apache-2.0. https://huggingface.co/baidu/ERNIE-Image-Turbo/tree/bc68c81e2a1730a394d5fc9fae70713dee940140" + ], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "baidu/ERNIE-Image-Turbo@bc68c81e2a1730a394d5fc9fae70713dee940140 https://huggingface.co/baidu/ERNIE-Image-Turbo/tree/bc68c81e2a1730a394d5fc9fae70713dee940140" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", + "provenanceTemplateId": "bookshop_at_blue_hour" + }, + { + "path": "template-gallery/reviews/bookshop_at_blue_hour.quality-review.json", + "sha256": "sha256:bytes:345c8dfefaa685385a016fcf545a50bf4d7554b07cee8c04f76efa270d830e4d", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/baidu/ERNIE-Image-Turbo/tree/bc68c81e2a1730a394d5fc9fae70713dee940140", + "sourceRevision": "baidu/ERNIE-Image-Turbo@bc68c81e2a1730a394d5fc9fae70713dee940140", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "apache-2.0. https://huggingface.co/baidu/ERNIE-Image-Turbo/tree/bc68c81e2a1730a394d5fc9fae70713dee940140" + ], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "baidu/ERNIE-Image-Turbo@bc68c81e2a1730a394d5fc9fae70713dee940140 https://huggingface.co/baidu/ERNIE-Image-Turbo/tree/bc68c81e2a1730a394d5fc9fae70713dee940140" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", + "provenanceTemplateId": "bookshop_at_blue_hour" + }, + { + "path": "template-gallery/reviews/bookshop_at_blue_hour.retained-template-provenance.json", + "sha256": "sha256:bytes:47f8649c5c8bdf345ef71157478da39f55cccda4ef5e6a726bb4738c560de7d7", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/baidu/ERNIE-Image-Turbo/tree/bc68c81e2a1730a394d5fc9fae70713dee940140", + "sourceRevision": "baidu/ERNIE-Image-Turbo@bc68c81e2a1730a394d5fc9fae70713dee940140", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "apache-2.0. https://huggingface.co/baidu/ERNIE-Image-Turbo/tree/bc68c81e2a1730a394d5fc9fae70713dee940140" + ], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "baidu/ERNIE-Image-Turbo@bc68c81e2a1730a394d5fc9fae70713dee940140 https://huggingface.co/baidu/ERNIE-Image-Turbo/tree/bc68c81e2a1730a394d5fc9fae70713dee940140" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", + "provenanceTemplateId": "bookshop_at_blue_hour" + }, + { + "path": "template-gallery/reviews/canal_lantern_in_warm_light.original-provenance.json", + "sha256": "sha256:bytes:3a802a1d1961ab209994af944eb3889cc6d675e3f9a409414c0504d344b38d7b", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/Efficient-Large-Model/Sana_Sprint_0.6B_1024px_diffusers/tree/aa76e7f4f4928f378716b6716a2130fba3caf5b1", + "sourceRevision": "Efficient-Large-Model/Sana_Sprint_0.6B_1024px_diffusers@aa76e7f4f4928f378716b6716a2130fba3caf5b1", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "apache-2.0. https://huggingface.co/Efficient-Large-Model/Sana_Sprint_0.6B_1024px_diffusers/tree/aa76e7f4f4928f378716b6716a2130fba3caf5b1" + ], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "Efficient-Large-Model/Sana_Sprint_0.6B_1024px_diffusers@aa76e7f4f4928f378716b6716a2130fba3caf5b1 https://huggingface.co/Efficient-Large-Model/Sana_Sprint_0.6B_1024px_diffusers/tree/aa76e7f4f4928f378716b6716a2130fba3caf5b1" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", + "provenanceTemplateId": "canal_lantern_in_warm_light" + }, + { + "path": "template-gallery/reviews/canal_lantern_in_warm_light.original-review.json", + "sha256": "sha256:bytes:fdfac320256dd1dd7bcaa77ef449fe39a537e871db6ea579500579148bffea23", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/Efficient-Large-Model/Sana_Sprint_0.6B_1024px_diffusers/tree/aa76e7f4f4928f378716b6716a2130fba3caf5b1", + "sourceRevision": "Efficient-Large-Model/Sana_Sprint_0.6B_1024px_diffusers@aa76e7f4f4928f378716b6716a2130fba3caf5b1", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "apache-2.0. https://huggingface.co/Efficient-Large-Model/Sana_Sprint_0.6B_1024px_diffusers/tree/aa76e7f4f4928f378716b6716a2130fba3caf5b1" + ], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "Efficient-Large-Model/Sana_Sprint_0.6B_1024px_diffusers@aa76e7f4f4928f378716b6716a2130fba3caf5b1 https://huggingface.co/Efficient-Large-Model/Sana_Sprint_0.6B_1024px_diffusers/tree/aa76e7f4f4928f378716b6716a2130fba3caf5b1" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", + "provenanceTemplateId": "canal_lantern_in_warm_light" + }, + { + "path": "template-gallery/reviews/canal_lantern_in_warm_light.quality-review.json", + "sha256": "sha256:bytes:721e6e325451df2320c2813bedce2b5c4b37d92d30ac974ca95b4f3edba6b316", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/Efficient-Large-Model/Sana_Sprint_0.6B_1024px_diffusers/tree/aa76e7f4f4928f378716b6716a2130fba3caf5b1", + "sourceRevision": "Efficient-Large-Model/Sana_Sprint_0.6B_1024px_diffusers@aa76e7f4f4928f378716b6716a2130fba3caf5b1", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "apache-2.0. https://huggingface.co/Efficient-Large-Model/Sana_Sprint_0.6B_1024px_diffusers/tree/aa76e7f4f4928f378716b6716a2130fba3caf5b1" + ], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "Efficient-Large-Model/Sana_Sprint_0.6B_1024px_diffusers@aa76e7f4f4928f378716b6716a2130fba3caf5b1 https://huggingface.co/Efficient-Large-Model/Sana_Sprint_0.6B_1024px_diffusers/tree/aa76e7f4f4928f378716b6716a2130fba3caf5b1" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", + "provenanceTemplateId": "canal_lantern_in_warm_light" + }, + { + "path": "template-gallery/reviews/canal_lantern_in_warm_light.retained-template-provenance.json", + "sha256": "sha256:bytes:5027304dcbef05cecb1baff1771c2f7f96671fee8d3fac34f9fece5f730c3885", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/Efficient-Large-Model/Sana_Sprint_0.6B_1024px_diffusers/tree/aa76e7f4f4928f378716b6716a2130fba3caf5b1", + "sourceRevision": "Efficient-Large-Model/Sana_Sprint_0.6B_1024px_diffusers@aa76e7f4f4928f378716b6716a2130fba3caf5b1", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "apache-2.0. https://huggingface.co/Efficient-Large-Model/Sana_Sprint_0.6B_1024px_diffusers/tree/aa76e7f4f4928f378716b6716a2130fba3caf5b1" + ], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "Efficient-Large-Model/Sana_Sprint_0.6B_1024px_diffusers@aa76e7f4f4928f378716b6716a2130fba3caf5b1 https://huggingface.co/Efficient-Large-Model/Sana_Sprint_0.6B_1024px_diffusers/tree/aa76e7f4f4928f378716b6716a2130fba3caf5b1" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", + "provenanceTemplateId": "canal_lantern_in_warm_light" + }, + { + "path": "template-gallery/reviews/character_edit.quality-review.json", + "sha256": "sha256:bytes:89cca4e7b8e466c614d973925b4775e18cec8c39e14e639a9d48b89918e7ae7f", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers", + "creationMethod": "Project-authored Gallery manifest, native provenance or accepted quality review", + "sourceUrl": null, + "sourceRevision": null, + "sourceLicense": "Apache-2.0 project-authored metadata", + "modelTerms": [], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [], + "assetLicense": "Apache-2.0", + "reviewedBy": "SOURAV DAS", + "reviewedAt": "2026-11-10", + "reviewClass": "per-file-maintainer-accepted-native-gallery-registration", + "provenanceTemplateId": "character_edit", + "humanApprovalPacketSHA256": "95893cb17e10b15ae6b23d8b31b57b0e14b9af96f822d75edbc6b68971afb11d" + }, + { + "path": "template-gallery/reviews/character_edit.reviewed-provenance.json", + "sha256": "sha256:bytes:fee8045c51a38c8c73f668af5e3f513d7f0cbbf6978122fe73d2487ab746e110", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers", + "creationMethod": "Project-authored Gallery manifest, native provenance or accepted quality review", + "sourceUrl": null, + "sourceRevision": null, + "sourceLicense": "Apache-2.0 project-authored metadata", + "modelTerms": [], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [], + "assetLicense": "Apache-2.0", + "reviewedBy": "SOURAV DAS", + "reviewedAt": "2026-11-10", + "reviewClass": "per-file-maintainer-accepted-native-gallery-registration", + "provenanceTemplateId": "character_edit", + "humanApprovalPacketSHA256": "95893cb17e10b15ae6b23d8b31b57b0e14b9af96f822d75edbc6b68971afb11d" + }, + { + "path": "template-gallery/reviews/chroma_alpine_block_print.original-provenance.json", + "sha256": "sha256:bytes:f17d6523a55fcf5bd0c147d9a46dee5b6e7fc6363f6a08685ba8a65459f73cf2", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/lodestones/Chroma1-HD/tree/0e0c60ece1e82b17cb7f77342d765ba5024c40c0", + "sourceRevision": "lodestones/Chroma1-HD@0e0c60ece1e82b17cb7f77342d765ba5024c40c0", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "Publisher model terms at https://huggingface.co/lodestones/Chroma1-HD/tree/0e0c60ece1e82b17cb7f77342d765ba5024c40c0" + ], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "lodestones/Chroma1-HD@0e0c60ece1e82b17cb7f77342d765ba5024c40c0 https://huggingface.co/lodestones/Chroma1-HD/tree/0e0c60ece1e82b17cb7f77342d765ba5024c40c0" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "60b01498a2df5f4e4622cdc2f9a43c83d187820780d2425a19718c13707db501", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "chroma_alpine_block_print" + }, + { + "path": "template-gallery/reviews/chroma_alpine_block_print.original-review.json", + "sha256": "sha256:bytes:a7ba022616f2a41b3046a7ac3ca7779a6f4efc5692bc02c21dc52701354f8a01", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/lodestones/Chroma1-HD/tree/0e0c60ece1e82b17cb7f77342d765ba5024c40c0", + "sourceRevision": "lodestones/Chroma1-HD@0e0c60ece1e82b17cb7f77342d765ba5024c40c0", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "Publisher model terms at https://huggingface.co/lodestones/Chroma1-HD/tree/0e0c60ece1e82b17cb7f77342d765ba5024c40c0" + ], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "lodestones/Chroma1-HD@0e0c60ece1e82b17cb7f77342d765ba5024c40c0 https://huggingface.co/lodestones/Chroma1-HD/tree/0e0c60ece1e82b17cb7f77342d765ba5024c40c0" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "60b01498a2df5f4e4622cdc2f9a43c83d187820780d2425a19718c13707db501", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "chroma_alpine_block_print" + }, + { + "path": "template-gallery/reviews/chroma_alpine_block_print.quality-review.json", + "sha256": "sha256:bytes:bb7979a051f9839fdee168737f18bf99c630f5e7edba7ab59f8e7471315d9413", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/lodestones/Chroma1-HD/tree/0e0c60ece1e82b17cb7f77342d765ba5024c40c0", + "sourceRevision": "lodestones/Chroma1-HD@0e0c60ece1e82b17cb7f77342d765ba5024c40c0", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "Publisher model terms at https://huggingface.co/lodestones/Chroma1-HD/tree/0e0c60ece1e82b17cb7f77342d765ba5024c40c0" + ], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "lodestones/Chroma1-HD@0e0c60ece1e82b17cb7f77342d765ba5024c40c0 https://huggingface.co/lodestones/Chroma1-HD/tree/0e0c60ece1e82b17cb7f77342d765ba5024c40c0" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "60b01498a2df5f4e4622cdc2f9a43c83d187820780d2425a19718c13707db501", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "chroma_alpine_block_print" + }, + { + "path": "template-gallery/reviews/chroma_alpine_block_print.retained-template-provenance.json", + "sha256": "sha256:bytes:d8643c8c82d299a62068afd7b38de0d24fcfd6882585370e73fbe63402726e4a", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/lodestones/Chroma1-HD/tree/0e0c60ece1e82b17cb7f77342d765ba5024c40c0", + "sourceRevision": "lodestones/Chroma1-HD@0e0c60ece1e82b17cb7f77342d765ba5024c40c0", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "Publisher model terms at https://huggingface.co/lodestones/Chroma1-HD/tree/0e0c60ece1e82b17cb7f77342d765ba5024c40c0" + ], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "lodestones/Chroma1-HD@0e0c60ece1e82b17cb7f77342d765ba5024c40c0 https://huggingface.co/lodestones/Chroma1-HD/tree/0e0c60ece1e82b17cb7f77342d765ba5024c40c0" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "60b01498a2df5f4e4622cdc2f9a43c83d187820780d2425a19718c13707db501", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "chroma_alpine_block_print" + }, + { + "path": "template-gallery/reviews/chroma_restored_cobalt_backdrop.original-provenance.json", + "sha256": "sha256:bytes:f87d18b81ff559f1298f0c780db0f5eb89e9f8219b4f4aff80c224bc3ef47ce4", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/lodestones/Chroma1-HD/tree/0e0c60ece1e82b17cb7f77342d765ba5024c40c0", + "sourceRevision": "lodestones/Chroma1-HD@0e0c60ece1e82b17cb7f77342d765ba5024c40c0", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "Publisher model terms at https://huggingface.co/lodestones/Chroma1-HD/tree/0e0c60ece1e82b17cb7f77342d765ba5024c40c0" + ], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "lodestones/Chroma1-HD@0e0c60ece1e82b17cb7f77342d765ba5024c40c0 https://huggingface.co/lodestones/Chroma1-HD/tree/0e0c60ece1e82b17cb7f77342d765ba5024c40c0" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "c2df9edb92f8ff905b6c9a138a285e67c621f3d2dfa3232f859aaf963b725aca", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "chroma_restored_cobalt_backdrop" + }, + { + "path": "template-gallery/reviews/chroma_restored_cobalt_backdrop.original-review.json", + "sha256": "sha256:bytes:88d1fbfadc2e1d3456f492214f7e51da6bdfd253eb00343fb93990e16c9ba2b9", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/lodestones/Chroma1-HD/tree/0e0c60ece1e82b17cb7f77342d765ba5024c40c0", + "sourceRevision": "lodestones/Chroma1-HD@0e0c60ece1e82b17cb7f77342d765ba5024c40c0", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "Publisher model terms at https://huggingface.co/lodestones/Chroma1-HD/tree/0e0c60ece1e82b17cb7f77342d765ba5024c40c0" + ], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "lodestones/Chroma1-HD@0e0c60ece1e82b17cb7f77342d765ba5024c40c0 https://huggingface.co/lodestones/Chroma1-HD/tree/0e0c60ece1e82b17cb7f77342d765ba5024c40c0" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "c2df9edb92f8ff905b6c9a138a285e67c621f3d2dfa3232f859aaf963b725aca", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "chroma_restored_cobalt_backdrop" + }, + { + "path": "template-gallery/reviews/chroma_restored_cobalt_backdrop.quality-review.json", + "sha256": "sha256:bytes:803c31f4eb055884cbe955856e99f9846f9259ae58ad6c883d686de581c0dd09", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/lodestones/Chroma1-HD/tree/0e0c60ece1e82b17cb7f77342d765ba5024c40c0", + "sourceRevision": "lodestones/Chroma1-HD@0e0c60ece1e82b17cb7f77342d765ba5024c40c0", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "Publisher model terms at https://huggingface.co/lodestones/Chroma1-HD/tree/0e0c60ece1e82b17cb7f77342d765ba5024c40c0" + ], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "lodestones/Chroma1-HD@0e0c60ece1e82b17cb7f77342d765ba5024c40c0 https://huggingface.co/lodestones/Chroma1-HD/tree/0e0c60ece1e82b17cb7f77342d765ba5024c40c0" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "c2df9edb92f8ff905b6c9a138a285e67c621f3d2dfa3232f859aaf963b725aca", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "chroma_restored_cobalt_backdrop" + }, + { + "path": "template-gallery/reviews/chroma_restored_cobalt_backdrop.retained-template-provenance.json", + "sha256": "sha256:bytes:5232b12615a38293b0d86378fdde3003a61a8f5834de95f395a9364e12dd8fd4", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/lodestones/Chroma1-HD/tree/0e0c60ece1e82b17cb7f77342d765ba5024c40c0", + "sourceRevision": "lodestones/Chroma1-HD@0e0c60ece1e82b17cb7f77342d765ba5024c40c0", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "Publisher model terms at https://huggingface.co/lodestones/Chroma1-HD/tree/0e0c60ece1e82b17cb7f77342d765ba5024c40c0" + ], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "lodestones/Chroma1-HD@0e0c60ece1e82b17cb7f77342d765ba5024c40c0 https://huggingface.co/lodestones/Chroma1-HD/tree/0e0c60ece1e82b17cb7f77342d765ba5024c40c0" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "c2df9edb92f8ff905b6c9a138a285e67c621f3d2dfa3232f859aaf963b725aca", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "chroma_restored_cobalt_backdrop" + }, + { + "path": "template-gallery/reviews/chroma_terracotta_and_blue.original-provenance.json", + "sha256": "sha256:bytes:92a7762ec200afa64405b665dbd19d630b846f55bdb170fc08bfb5c588b1d258", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/lodestones/Chroma1-HD/tree/0e0c60ece1e82b17cb7f77342d765ba5024c40c0", + "sourceRevision": "lodestones/Chroma1-HD@0e0c60ece1e82b17cb7f77342d765ba5024c40c0", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "https://huggingface.co/lodestones/Chroma1-HD/blob/0e0c60ece1e82b17cb7f77342d765ba5024c40c0/README.md" + ], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "lodestones/Chroma1-HD@0e0c60ece1e82b17cb7f77342d765ba5024c40c0 https://huggingface.co/lodestones/Chroma1-HD/tree/0e0c60ece1e82b17cb7f77342d765ba5024c40c0" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "c2df9edb92f8ff905b6c9a138a285e67c621f3d2dfa3232f859aaf963b725aca", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "chroma_terracotta_and_blue" + }, + { + "path": "template-gallery/reviews/chroma_terracotta_and_blue.original-review.json", + "sha256": "sha256:bytes:d935f45b897cc717315684e2b180097b2e3892d275b4c38e96f2a9ec930ae24f", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/lodestones/Chroma1-HD/tree/0e0c60ece1e82b17cb7f77342d765ba5024c40c0", + "sourceRevision": "lodestones/Chroma1-HD@0e0c60ece1e82b17cb7f77342d765ba5024c40c0", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "https://huggingface.co/lodestones/Chroma1-HD/blob/0e0c60ece1e82b17cb7f77342d765ba5024c40c0/README.md" + ], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "lodestones/Chroma1-HD@0e0c60ece1e82b17cb7f77342d765ba5024c40c0 https://huggingface.co/lodestones/Chroma1-HD/tree/0e0c60ece1e82b17cb7f77342d765ba5024c40c0" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "c2df9edb92f8ff905b6c9a138a285e67c621f3d2dfa3232f859aaf963b725aca", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "chroma_terracotta_and_blue" + }, + { + "path": "template-gallery/reviews/chroma_terracotta_and_blue.quality-review.json", + "sha256": "sha256:bytes:2435a255e05519ab5b750b4728217d7f938631213ffeeb6da882dcb184e9fa7b", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/lodestones/Chroma1-HD/tree/0e0c60ece1e82b17cb7f77342d765ba5024c40c0", + "sourceRevision": "lodestones/Chroma1-HD@0e0c60ece1e82b17cb7f77342d765ba5024c40c0", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "https://huggingface.co/lodestones/Chroma1-HD/blob/0e0c60ece1e82b17cb7f77342d765ba5024c40c0/README.md" + ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], - "requiredAttribution": [], + "requiredAttribution": [ + "lodestones/Chroma1-HD@0e0c60ece1e82b17cb7f77342d765ba5024c40c0 https://huggingface.co/lodestones/Chroma1-HD/tree/0e0c60ece1e82b17cb7f77342d765ba5024c40c0" + ], "assetLicense": "Apache-2.0", - "reviewedBy": "SOURAV DAS", - "reviewedAt": "2026-11-09", - "reviewClass": "per-file-human-approved-accepted-registration", - "provenanceTemplateId": "ace_step_text_to_audio" + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "c2df9edb92f8ff905b6c9a138a285e67c621f3d2dfa3232f859aaf963b725aca", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "chroma_terracotta_and_blue" }, { - "path": "template-gallery/reviews/ace_step_text_to_audio.reviewed-provenance.json", - "sha256": "sha256:bytes:4b79e1e6ff29b9d54de6b4e8731e5d9dd268f67b0a5180fa39029cb5cb71826f", + "path": "template-gallery/reviews/chroma_terracotta_and_blue.retained-template-provenance.json", + "sha256": "sha256:bytes:95d0a67308f0dd2b8024a39cacca3fcfd82611a03d01f76a38a429dd1c4c2077", "publishDecision": "approved", "holdReason": null, - "creatorOrRightsholder": "MoDiff project maintainers", - "creationMethod": "MoDiff-authored technical metadata or review record", - "sourceUrl": null, - "sourceRevision": null, - "sourceLicense": "Apache-2.0", - "modelTerms": [], + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/lodestones/Chroma1-HD/tree/0e0c60ece1e82b17cb7f77342d765ba5024c40c0", + "sourceRevision": "lodestones/Chroma1-HD@0e0c60ece1e82b17cb7f77342d765ba5024c40c0", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "https://huggingface.co/lodestones/Chroma1-HD/blob/0e0c60ece1e82b17cb7f77342d765ba5024c40c0/README.md" + ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], - "requiredAttribution": [], + "requiredAttribution": [ + "lodestones/Chroma1-HD@0e0c60ece1e82b17cb7f77342d765ba5024c40c0 https://huggingface.co/lodestones/Chroma1-HD/tree/0e0c60ece1e82b17cb7f77342d765ba5024c40c0" + ], "assetLicense": "Apache-2.0", - "reviewedBy": "SOURAV DAS", - "reviewedAt": "2026-11-09", - "reviewClass": "per-file-human-approved-accepted-registration", - "provenanceTemplateId": "ace_step_text_to_audio" + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "c2df9edb92f8ff905b6c9a138a285e67c621f3d2dfa3232f859aaf963b725aca", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "chroma_terracotta_and_blue" }, { - "path": "template-gallery/reviews/alpine_lake_in_oils.original-provenance.json", - "sha256": "sha256:bytes:9c9ff8e4bae92b7e4564fdc203a36a2cb625489c7b0ca9474ce9979f7bd2d519", + "path": "template-gallery/reviews/cobalt_jug_and_lemons.original-provenance.json", + "sha256": "sha256:bytes:c9b80942080368a5e13eef6d01a31691034655d618c40ef89ab9bd1b0ade0c7e", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", @@ -9475,11 +10923,11 @@ "reviewClass": "per-file-maintainer-accepted-retained-registration", "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", - "provenanceTemplateId": "alpine_lake_in_oils" + "provenanceTemplateId": "cobalt_jug_and_lemons" }, { - "path": "template-gallery/reviews/alpine_lake_in_oils.original-review.json", - "sha256": "sha256:bytes:9535ffb383b57c57805ca9ad24a1df06ec87fe005d821448727de9c04709a2bd", + "path": "template-gallery/reviews/cobalt_jug_and_lemons.original-review.json", + "sha256": "sha256:bytes:f55b66df26013db2e002b925f1aceececec95ebd311a306bb082258f292751f1", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", @@ -9502,11 +10950,11 @@ "reviewClass": "per-file-maintainer-accepted-retained-registration", "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", - "provenanceTemplateId": "alpine_lake_in_oils" + "provenanceTemplateId": "cobalt_jug_and_lemons" }, { - "path": "template-gallery/reviews/alpine_lake_in_oils.quality-review.json", - "sha256": "sha256:bytes:ca7c2fd6b10e3f100c7aff867aceb300f4fc93c5d4c3c93919fdf810fdf077b3", + "path": "template-gallery/reviews/cobalt_jug_and_lemons.quality-review.json", + "sha256": "sha256:bytes:da64a4e035bbe030a037ddfaf23a16946114d0e680c842f37976cc50ff8d6970", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", @@ -9529,11 +10977,11 @@ "reviewClass": "per-file-maintainer-accepted-retained-registration", "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", - "provenanceTemplateId": "alpine_lake_in_oils" + "provenanceTemplateId": "cobalt_jug_and_lemons" }, { - "path": "template-gallery/reviews/alpine_lake_in_oils.retained-template-provenance.json", - "sha256": "sha256:bytes:c268ddbea9ba90fcf556ac9afdcc6b290e103883c5c7e9b5b91a1312f0c4eacb", + "path": "template-gallery/reviews/cobalt_jug_and_lemons.retained-template-provenance.json", + "sha256": "sha256:bytes:066fee762cae8b5f92625cc71f4002422828b06115024c3ce11affd68f34544e", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", @@ -9556,134 +11004,242 @@ "reviewClass": "per-file-maintainer-accepted-retained-registration", "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", - "provenanceTemplateId": "alpine_lake_in_oils" + "provenanceTemplateId": "cobalt_jug_and_lemons" }, { - "path": "template-gallery/reviews/bookshop_at_blue_hour.original-provenance.json", - "sha256": "sha256:bytes:3f3e4056350e5a1ee59d46aea727b87563ae6fc5fe11a491257e2af7d412f0bf", + "path": "template-gallery/reviews/cogvideox_mossy_mountain_stream.original-provenance.json", + "sha256": "sha256:bytes:33e7bae227d98d35af005ca13238e9adfb288160165643330621b871c48ac32c", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/baidu/ERNIE-Image-Turbo/tree/bc68c81e2a1730a394d5fc9fae70713dee940140", - "sourceRevision": "baidu/ERNIE-Image-Turbo@bc68c81e2a1730a394d5fc9fae70713dee940140", + "sourceUrl": "https://huggingface.co/zai-org/CogVideoX-2b/tree/1137dacfc2c9c012bed6a0793f4ecf2ca8e7ba01", + "sourceRevision": "zai-org/CogVideoX-2b@1137dacfc2c9c012bed6a0793f4ecf2ca8e7ba01", "sourceLicense": "MoDiff-authored Gallery metadata", "modelTerms": [ - "apache-2.0. https://huggingface.co/baidu/ERNIE-Image-Turbo/tree/bc68c81e2a1730a394d5fc9fae70713dee940140" + "Publisher model terms at https://huggingface.co/zai-org/CogVideoX-2b/tree/1137dacfc2c9c012bed6a0793f4ecf2ca8e7ba01" ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "baidu/ERNIE-Image-Turbo@bc68c81e2a1730a394d5fc9fae70713dee940140 https://huggingface.co/baidu/ERNIE-Image-Turbo/tree/bc68c81e2a1730a394d5fc9fae70713dee940140" + "zai-org/CogVideoX-2b@1137dacfc2c9c012bed6a0793f4ecf2ca8e7ba01 https://huggingface.co/zai-org/CogVideoX-2b/tree/1137dacfc2c9c012bed6a0793f4ecf2ca8e7ba01" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", - "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", - "provenanceTemplateId": "bookshop_at_blue_hour" + "humanApprovalPacketSHA256": "ffeaa41a5c94b59135d2cdb15a5c7f79f073c15fd78792ce00a157398ab15d59", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "cogvideox_mossy_mountain_stream" }, { - "path": "template-gallery/reviews/bookshop_at_blue_hour.original-review.json", - "sha256": "sha256:bytes:26882cd197ba823799f50be6ea1c01098038ad3cee926a71edf7aa47038d7226", + "path": "template-gallery/reviews/cogvideox_mossy_mountain_stream.original-review.json", + "sha256": "sha256:bytes:3678c4a805bb1d6b4205c0d3d97df2f559b65740a7519ba19674456c26d54d13", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/baidu/ERNIE-Image-Turbo/tree/bc68c81e2a1730a394d5fc9fae70713dee940140", - "sourceRevision": "baidu/ERNIE-Image-Turbo@bc68c81e2a1730a394d5fc9fae70713dee940140", + "sourceUrl": "https://huggingface.co/zai-org/CogVideoX-2b/tree/1137dacfc2c9c012bed6a0793f4ecf2ca8e7ba01", + "sourceRevision": "zai-org/CogVideoX-2b@1137dacfc2c9c012bed6a0793f4ecf2ca8e7ba01", "sourceLicense": "MoDiff-authored Gallery metadata", "modelTerms": [ - "apache-2.0. https://huggingface.co/baidu/ERNIE-Image-Turbo/tree/bc68c81e2a1730a394d5fc9fae70713dee940140" + "Publisher model terms at https://huggingface.co/zai-org/CogVideoX-2b/tree/1137dacfc2c9c012bed6a0793f4ecf2ca8e7ba01" ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "baidu/ERNIE-Image-Turbo@bc68c81e2a1730a394d5fc9fae70713dee940140 https://huggingface.co/baidu/ERNIE-Image-Turbo/tree/bc68c81e2a1730a394d5fc9fae70713dee940140" + "zai-org/CogVideoX-2b@1137dacfc2c9c012bed6a0793f4ecf2ca8e7ba01 https://huggingface.co/zai-org/CogVideoX-2b/tree/1137dacfc2c9c012bed6a0793f4ecf2ca8e7ba01" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", - "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", - "provenanceTemplateId": "bookshop_at_blue_hour" + "humanApprovalPacketSHA256": "ffeaa41a5c94b59135d2cdb15a5c7f79f073c15fd78792ce00a157398ab15d59", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "cogvideox_mossy_mountain_stream" }, { - "path": "template-gallery/reviews/bookshop_at_blue_hour.quality-review.json", - "sha256": "sha256:bytes:345c8dfefaa685385a016fcf545a50bf4d7554b07cee8c04f76efa270d830e4d", + "path": "template-gallery/reviews/cogvideox_mossy_mountain_stream.quality-review.json", + "sha256": "sha256:bytes:43fcf40d6bec403f203be3b2386ef27e345752c5dc53882ab2df45537dcbfcd1", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/baidu/ERNIE-Image-Turbo/tree/bc68c81e2a1730a394d5fc9fae70713dee940140", - "sourceRevision": "baidu/ERNIE-Image-Turbo@bc68c81e2a1730a394d5fc9fae70713dee940140", + "sourceUrl": "https://huggingface.co/zai-org/CogVideoX-2b/tree/1137dacfc2c9c012bed6a0793f4ecf2ca8e7ba01", + "sourceRevision": "zai-org/CogVideoX-2b@1137dacfc2c9c012bed6a0793f4ecf2ca8e7ba01", "sourceLicense": "MoDiff-authored Gallery metadata", "modelTerms": [ - "apache-2.0. https://huggingface.co/baidu/ERNIE-Image-Turbo/tree/bc68c81e2a1730a394d5fc9fae70713dee940140" + "Publisher model terms at https://huggingface.co/zai-org/CogVideoX-2b/tree/1137dacfc2c9c012bed6a0793f4ecf2ca8e7ba01" ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "baidu/ERNIE-Image-Turbo@bc68c81e2a1730a394d5fc9fae70713dee940140 https://huggingface.co/baidu/ERNIE-Image-Turbo/tree/bc68c81e2a1730a394d5fc9fae70713dee940140" + "zai-org/CogVideoX-2b@1137dacfc2c9c012bed6a0793f4ecf2ca8e7ba01 https://huggingface.co/zai-org/CogVideoX-2b/tree/1137dacfc2c9c012bed6a0793f4ecf2ca8e7ba01" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", - "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", - "provenanceTemplateId": "bookshop_at_blue_hour" + "humanApprovalPacketSHA256": "ffeaa41a5c94b59135d2cdb15a5c7f79f073c15fd78792ce00a157398ab15d59", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "cogvideox_mossy_mountain_stream" }, { - "path": "template-gallery/reviews/bookshop_at_blue_hour.retained-template-provenance.json", - "sha256": "sha256:bytes:47f8649c5c8bdf345ef71157478da39f55cccda4ef5e6a726bb4738c560de7d7", + "path": "template-gallery/reviews/cogvideox_mossy_mountain_stream.retained-template-provenance.json", + "sha256": "sha256:bytes:2e96867659142d6f562c4607f0db301aa2f003bfb9c4f29f333751365a5d7b66", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/baidu/ERNIE-Image-Turbo/tree/bc68c81e2a1730a394d5fc9fae70713dee940140", - "sourceRevision": "baidu/ERNIE-Image-Turbo@bc68c81e2a1730a394d5fc9fae70713dee940140", + "sourceUrl": "https://huggingface.co/zai-org/CogVideoX-2b/tree/1137dacfc2c9c012bed6a0793f4ecf2ca8e7ba01", + "sourceRevision": "zai-org/CogVideoX-2b@1137dacfc2c9c012bed6a0793f4ecf2ca8e7ba01", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "Publisher model terms at https://huggingface.co/zai-org/CogVideoX-2b/tree/1137dacfc2c9c012bed6a0793f4ecf2ca8e7ba01" + ], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "zai-org/CogVideoX-2b@1137dacfc2c9c012bed6a0793f4ecf2ca8e7ba01 https://huggingface.co/zai-org/CogVideoX-2b/tree/1137dacfc2c9c012bed6a0793f4ecf2ca8e7ba01" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "ffeaa41a5c94b59135d2cdb15a5c7f79f073c15fd78792ce00a157398ab15d59", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "cogvideox_mossy_mountain_stream" + }, + { + "path": "template-gallery/reviews/cogvideox_red_tram_model_railway.original-provenance.json", + "sha256": "sha256:bytes:b63d433a2ae3627d260abf77dca4bca8ded0798a3449e9fb5b460628c5a2fa08", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/zai-org/CogVideoX-2b/tree/1137dacfc2c9c012bed6a0793f4ecf2ca8e7ba01", + "sourceRevision": "zai-org/CogVideoX-2b@1137dacfc2c9c012bed6a0793f4ecf2ca8e7ba01", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "Publisher model terms at https://huggingface.co/zai-org/CogVideoX-2b/tree/1137dacfc2c9c012bed6a0793f4ecf2ca8e7ba01" + ], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "zai-org/CogVideoX-2b@1137dacfc2c9c012bed6a0793f4ecf2ca8e7ba01 https://huggingface.co/zai-org/CogVideoX-2b/tree/1137dacfc2c9c012bed6a0793f4ecf2ca8e7ba01" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "ffeaa41a5c94b59135d2cdb15a5c7f79f073c15fd78792ce00a157398ab15d59", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "cogvideox_red_tram_model_railway" + }, + { + "path": "template-gallery/reviews/cogvideox_red_tram_model_railway.original-review.json", + "sha256": "sha256:bytes:0b2030e77910993ce5e1947c5378e06ab488e1243b79e67cc6edd44c3cd8d462", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/zai-org/CogVideoX-2b/tree/1137dacfc2c9c012bed6a0793f4ecf2ca8e7ba01", + "sourceRevision": "zai-org/CogVideoX-2b@1137dacfc2c9c012bed6a0793f4ecf2ca8e7ba01", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "Publisher model terms at https://huggingface.co/zai-org/CogVideoX-2b/tree/1137dacfc2c9c012bed6a0793f4ecf2ca8e7ba01" + ], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "zai-org/CogVideoX-2b@1137dacfc2c9c012bed6a0793f4ecf2ca8e7ba01 https://huggingface.co/zai-org/CogVideoX-2b/tree/1137dacfc2c9c012bed6a0793f4ecf2ca8e7ba01" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "ffeaa41a5c94b59135d2cdb15a5c7f79f073c15fd78792ce00a157398ab15d59", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "cogvideox_red_tram_model_railway" + }, + { + "path": "template-gallery/reviews/cogvideox_red_tram_model_railway.quality-review.json", + "sha256": "sha256:bytes:56466f759c750421f135ebf3069202ae9eb0374a9f2ee4327b95b0490ec3a583", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/zai-org/CogVideoX-2b/tree/1137dacfc2c9c012bed6a0793f4ecf2ca8e7ba01", + "sourceRevision": "zai-org/CogVideoX-2b@1137dacfc2c9c012bed6a0793f4ecf2ca8e7ba01", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "Publisher model terms at https://huggingface.co/zai-org/CogVideoX-2b/tree/1137dacfc2c9c012bed6a0793f4ecf2ca8e7ba01" + ], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "zai-org/CogVideoX-2b@1137dacfc2c9c012bed6a0793f4ecf2ca8e7ba01 https://huggingface.co/zai-org/CogVideoX-2b/tree/1137dacfc2c9c012bed6a0793f4ecf2ca8e7ba01" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "ffeaa41a5c94b59135d2cdb15a5c7f79f073c15fd78792ce00a157398ab15d59", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "cogvideox_red_tram_model_railway" + }, + { + "path": "template-gallery/reviews/cogvideox_red_tram_model_railway.retained-template-provenance.json", + "sha256": "sha256:bytes:71ff0983139861b9a21d9b2882974bb5e96d11903563df161578818d795a1290", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/zai-org/CogVideoX-2b/tree/1137dacfc2c9c012bed6a0793f4ecf2ca8e7ba01", + "sourceRevision": "zai-org/CogVideoX-2b@1137dacfc2c9c012bed6a0793f4ecf2ca8e7ba01", "sourceLicense": "MoDiff-authored Gallery metadata", "modelTerms": [ - "apache-2.0. https://huggingface.co/baidu/ERNIE-Image-Turbo/tree/bc68c81e2a1730a394d5fc9fae70713dee940140" + "Publisher model terms at https://huggingface.co/zai-org/CogVideoX-2b/tree/1137dacfc2c9c012bed6a0793f4ecf2ca8e7ba01" ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "baidu/ERNIE-Image-Turbo@bc68c81e2a1730a394d5fc9fae70713dee940140 https://huggingface.co/baidu/ERNIE-Image-Turbo/tree/bc68c81e2a1730a394d5fc9fae70713dee940140" + "zai-org/CogVideoX-2b@1137dacfc2c9c012bed6a0793f4ecf2ca8e7ba01 https://huggingface.co/zai-org/CogVideoX-2b/tree/1137dacfc2c9c012bed6a0793f4ecf2ca8e7ba01" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", - "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", - "provenanceTemplateId": "bookshop_at_blue_hour" + "humanApprovalPacketSHA256": "ffeaa41a5c94b59135d2cdb15a5c7f79f073c15fd78792ce00a157398ab15d59", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "cogvideox_red_tram_model_railway" }, { - "path": "template-gallery/reviews/canal_lantern_in_warm_light.original-provenance.json", - "sha256": "sha256:bytes:3a802a1d1961ab209994af944eb3889cc6d675e3f9a409414c0504d344b38d7b", + "path": "template-gallery/reviews/copper_hour_dunes.original-provenance.json", + "sha256": "sha256:bytes:6223329bd7a1a962703aefba1379c33dae7f57daa40a09aa8e77c1cdd05b099c", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/Efficient-Large-Model/Sana_Sprint_0.6B_1024px_diffusers/tree/aa76e7f4f4928f378716b6716a2130fba3caf5b1", - "sourceRevision": "Efficient-Large-Model/Sana_Sprint_0.6B_1024px_diffusers@aa76e7f4f4928f378716b6716a2130fba3caf5b1", + "sourceUrl": "https://huggingface.co/Photoroom/prx-512-t2i-sft/tree/2996423bc26e8eaca48774fac1797484214dfea0", + "sourceRevision": "Photoroom/prx-512-t2i-sft@2996423bc26e8eaca48774fac1797484214dfea0", "sourceLicense": "MoDiff-authored Gallery metadata", "modelTerms": [ - "apache-2.0. https://huggingface.co/Efficient-Large-Model/Sana_Sprint_0.6B_1024px_diffusers/tree/aa76e7f4f4928f378716b6716a2130fba3caf5b1" + "apache-2.0. https://huggingface.co/Photoroom/prx-512-t2i-sft/tree/2996423bc26e8eaca48774fac1797484214dfea0" ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "Efficient-Large-Model/Sana_Sprint_0.6B_1024px_diffusers@aa76e7f4f4928f378716b6716a2130fba3caf5b1 https://huggingface.co/Efficient-Large-Model/Sana_Sprint_0.6B_1024px_diffusers/tree/aa76e7f4f4928f378716b6716a2130fba3caf5b1" + "Photoroom/prx-512-t2i-sft@2996423bc26e8eaca48774fac1797484214dfea0 https://huggingface.co/Photoroom/prx-512-t2i-sft/tree/2996423bc26e8eaca48774fac1797484214dfea0" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", @@ -9691,26 +11247,26 @@ "reviewClass": "per-file-maintainer-accepted-retained-registration", "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", - "provenanceTemplateId": "canal_lantern_in_warm_light" + "provenanceTemplateId": "copper_hour_dunes" }, { - "path": "template-gallery/reviews/canal_lantern_in_warm_light.original-review.json", - "sha256": "sha256:bytes:fdfac320256dd1dd7bcaa77ef449fe39a537e871db6ea579500579148bffea23", + "path": "template-gallery/reviews/copper_hour_dunes.original-review.json", + "sha256": "sha256:bytes:1da7406a3792d864c6aa0e010203a15d608a2f85372e530aabdeabfd7dc7e529", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/Efficient-Large-Model/Sana_Sprint_0.6B_1024px_diffusers/tree/aa76e7f4f4928f378716b6716a2130fba3caf5b1", - "sourceRevision": "Efficient-Large-Model/Sana_Sprint_0.6B_1024px_diffusers@aa76e7f4f4928f378716b6716a2130fba3caf5b1", + "sourceUrl": "https://huggingface.co/Photoroom/prx-512-t2i-sft/tree/2996423bc26e8eaca48774fac1797484214dfea0", + "sourceRevision": "Photoroom/prx-512-t2i-sft@2996423bc26e8eaca48774fac1797484214dfea0", "sourceLicense": "MoDiff-authored Gallery metadata", "modelTerms": [ - "apache-2.0. https://huggingface.co/Efficient-Large-Model/Sana_Sprint_0.6B_1024px_diffusers/tree/aa76e7f4f4928f378716b6716a2130fba3caf5b1" + "apache-2.0. https://huggingface.co/Photoroom/prx-512-t2i-sft/tree/2996423bc26e8eaca48774fac1797484214dfea0" ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "Efficient-Large-Model/Sana_Sprint_0.6B_1024px_diffusers@aa76e7f4f4928f378716b6716a2130fba3caf5b1 https://huggingface.co/Efficient-Large-Model/Sana_Sprint_0.6B_1024px_diffusers/tree/aa76e7f4f4928f378716b6716a2130fba3caf5b1" + "Photoroom/prx-512-t2i-sft@2996423bc26e8eaca48774fac1797484214dfea0 https://huggingface.co/Photoroom/prx-512-t2i-sft/tree/2996423bc26e8eaca48774fac1797484214dfea0" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", @@ -9718,26 +11274,26 @@ "reviewClass": "per-file-maintainer-accepted-retained-registration", "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", - "provenanceTemplateId": "canal_lantern_in_warm_light" + "provenanceTemplateId": "copper_hour_dunes" }, { - "path": "template-gallery/reviews/canal_lantern_in_warm_light.quality-review.json", - "sha256": "sha256:bytes:721e6e325451df2320c2813bedce2b5c4b37d92d30ac974ca95b4f3edba6b316", + "path": "template-gallery/reviews/copper_hour_dunes.quality-review.json", + "sha256": "sha256:bytes:bc0ce5cb8d1e26c9b3491f5d1653365ca11b5305b25cd32647b08398bf889e8f", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/Efficient-Large-Model/Sana_Sprint_0.6B_1024px_diffusers/tree/aa76e7f4f4928f378716b6716a2130fba3caf5b1", - "sourceRevision": "Efficient-Large-Model/Sana_Sprint_0.6B_1024px_diffusers@aa76e7f4f4928f378716b6716a2130fba3caf5b1", + "sourceUrl": "https://huggingface.co/Photoroom/prx-512-t2i-sft/tree/2996423bc26e8eaca48774fac1797484214dfea0", + "sourceRevision": "Photoroom/prx-512-t2i-sft@2996423bc26e8eaca48774fac1797484214dfea0", "sourceLicense": "MoDiff-authored Gallery metadata", "modelTerms": [ - "apache-2.0. https://huggingface.co/Efficient-Large-Model/Sana_Sprint_0.6B_1024px_diffusers/tree/aa76e7f4f4928f378716b6716a2130fba3caf5b1" + "apache-2.0. https://huggingface.co/Photoroom/prx-512-t2i-sft/tree/2996423bc26e8eaca48774fac1797484214dfea0" ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "Efficient-Large-Model/Sana_Sprint_0.6B_1024px_diffusers@aa76e7f4f4928f378716b6716a2130fba3caf5b1 https://huggingface.co/Efficient-Large-Model/Sana_Sprint_0.6B_1024px_diffusers/tree/aa76e7f4f4928f378716b6716a2130fba3caf5b1" + "Photoroom/prx-512-t2i-sft@2996423bc26e8eaca48774fac1797484214dfea0 https://huggingface.co/Photoroom/prx-512-t2i-sft/tree/2996423bc26e8eaca48774fac1797484214dfea0" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", @@ -9745,26 +11301,26 @@ "reviewClass": "per-file-maintainer-accepted-retained-registration", "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", - "provenanceTemplateId": "canal_lantern_in_warm_light" + "provenanceTemplateId": "copper_hour_dunes" }, { - "path": "template-gallery/reviews/canal_lantern_in_warm_light.retained-template-provenance.json", - "sha256": "sha256:bytes:5027304dcbef05cecb1baff1771c2f7f96671fee8d3fac34f9fece5f730c3885", + "path": "template-gallery/reviews/copper_hour_dunes.retained-template-provenance.json", + "sha256": "sha256:bytes:b1d27bc198b128e1085d6b920a62dff73ed1684735c0d9b7eefbd28ab52d7e5b", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/Efficient-Large-Model/Sana_Sprint_0.6B_1024px_diffusers/tree/aa76e7f4f4928f378716b6716a2130fba3caf5b1", - "sourceRevision": "Efficient-Large-Model/Sana_Sprint_0.6B_1024px_diffusers@aa76e7f4f4928f378716b6716a2130fba3caf5b1", + "sourceUrl": "https://huggingface.co/Photoroom/prx-512-t2i-sft/tree/2996423bc26e8eaca48774fac1797484214dfea0", + "sourceRevision": "Photoroom/prx-512-t2i-sft@2996423bc26e8eaca48774fac1797484214dfea0", "sourceLicense": "MoDiff-authored Gallery metadata", "modelTerms": [ - "apache-2.0. https://huggingface.co/Efficient-Large-Model/Sana_Sprint_0.6B_1024px_diffusers/tree/aa76e7f4f4928f378716b6716a2130fba3caf5b1" + "apache-2.0. https://huggingface.co/Photoroom/prx-512-t2i-sft/tree/2996423bc26e8eaca48774fac1797484214dfea0" ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "Efficient-Large-Model/Sana_Sprint_0.6B_1024px_diffusers@aa76e7f4f4928f378716b6716a2130fba3caf5b1 https://huggingface.co/Efficient-Large-Model/Sana_Sprint_0.6B_1024px_diffusers/tree/aa76e7f4f4928f378716b6716a2130fba3caf5b1" + "Photoroom/prx-512-t2i-sft@2996423bc26e8eaca48774fac1797484214dfea0 https://huggingface.co/Photoroom/prx-512-t2i-sft/tree/2996423bc26e8eaca48774fac1797484214dfea0" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", @@ -9772,1205 +11328,1086 @@ "reviewClass": "per-file-maintainer-accepted-retained-registration", "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", - "provenanceTemplateId": "canal_lantern_in_warm_light" - }, - { - "path": "template-gallery/reviews/character_edit.quality-review.json", - "sha256": "sha256:bytes:89cca4e7b8e466c614d973925b4775e18cec8c39e14e639a9d48b89918e7ae7f", - "publishDecision": "approved", - "holdReason": null, - "creatorOrRightsholder": "MoDiff project maintainers", - "creationMethod": "Project-authored Gallery manifest, native provenance or accepted quality review", - "sourceUrl": null, - "sourceRevision": null, - "sourceLicense": "Apache-2.0 project-authored metadata", - "modelTerms": [], - "aiGenerated": false, - "humanLikenessConsent": "not-applicable", - "marks": [], - "requiredAttribution": [], - "assetLicense": "Apache-2.0", - "reviewedBy": "SOURAV DAS", - "reviewedAt": "2026-11-10", - "reviewClass": "per-file-maintainer-accepted-native-gallery-registration", - "provenanceTemplateId": "character_edit", - "humanApprovalPacketSHA256": "95893cb17e10b15ae6b23d8b31b57b0e14b9af96f822d75edbc6b68971afb11d" - }, - { - "path": "template-gallery/reviews/character_edit.reviewed-provenance.json", - "sha256": "sha256:bytes:fee8045c51a38c8c73f668af5e3f513d7f0cbbf6978122fe73d2487ab746e110", - "publishDecision": "approved", - "holdReason": null, - "creatorOrRightsholder": "MoDiff project maintainers", - "creationMethod": "Project-authored Gallery manifest, native provenance or accepted quality review", - "sourceUrl": null, - "sourceRevision": null, - "sourceLicense": "Apache-2.0 project-authored metadata", - "modelTerms": [], - "aiGenerated": false, - "humanLikenessConsent": "not-applicable", - "marks": [], - "requiredAttribution": [], - "assetLicense": "Apache-2.0", - "reviewedBy": "SOURAV DAS", - "reviewedAt": "2026-11-10", - "reviewClass": "per-file-maintainer-accepted-native-gallery-registration", - "provenanceTemplateId": "character_edit", - "humanApprovalPacketSHA256": "95893cb17e10b15ae6b23d8b31b57b0e14b9af96f822d75edbc6b68971afb11d" + "provenanceTemplateId": "copper_hour_dunes" }, { - "path": "template-gallery/reviews/chroma_alpine_block_print.original-provenance.json", - "sha256": "sha256:bytes:f17d6523a55fcf5bd0c147d9a46dee5b6e7fc6363f6a08685ba8a65459f73cf2", + "path": "template-gallery/reviews/ddim_cifar10_preview.original-provenance.json", + "sha256": "sha256:bytes:8fc838dd4bc701aa0c65e6b2630cc749d05736d23623591e3d1ac5af3d6b93d9", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/lodestones/Chroma1-HD/tree/0e0c60ece1e82b17cb7f77342d765ba5024c40c0", - "sourceRevision": "lodestones/Chroma1-HD@0e0c60ece1e82b17cb7f77342d765ba5024c40c0", + "sourceUrl": "https://huggingface.co/google/ddpm-cifar10-32/tree/267b167dc01f0e4e61923ea244e8b988f84deb80", + "sourceRevision": "google/ddpm-cifar10-32@267b167dc01f0e4e61923ea244e8b988f84deb80", "sourceLicense": "MoDiff-authored Gallery metadata", "modelTerms": [ - "Publisher model terms at https://huggingface.co/lodestones/Chroma1-HD/tree/0e0c60ece1e82b17cb7f77342d765ba5024c40c0" + "Publisher model terms at https://huggingface.co/google/ddpm-cifar10-32/tree/267b167dc01f0e4e61923ea244e8b988f84deb80" ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "lodestones/Chroma1-HD@0e0c60ece1e82b17cb7f77342d765ba5024c40c0 https://huggingface.co/lodestones/Chroma1-HD/tree/0e0c60ece1e82b17cb7f77342d765ba5024c40c0" + "google/ddpm-cifar10-32@267b167dc01f0e4e61923ea244e8b988f84deb80 https://huggingface.co/google/ddpm-cifar10-32/tree/267b167dc01f0e4e61923ea244e8b988f84deb80" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", - "reviewedAt": "2026-11-25", + "reviewedAt": "2026-11-24", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "60b01498a2df5f4e4622cdc2f9a43c83d187820780d2425a19718c13707db501", - "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", - "provenanceTemplateId": "chroma_alpine_block_print" + "humanApprovalPacketSHA256": "d216f065bdc316366c6183592f657bcfbbd7cb05acd0e510c6b3877fe56bcec2", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped six saved cases with model terms retained.", + "provenanceTemplateId": "ddim_cifar10_preview" }, { - "path": "template-gallery/reviews/chroma_alpine_block_print.original-review.json", - "sha256": "sha256:bytes:a7ba022616f2a41b3046a7ac3ca7779a6f4efc5692bc02c21dc52701354f8a01", + "path": "template-gallery/reviews/ddim_cifar10_preview.original-review.json", + "sha256": "sha256:bytes:5a793d20a7b28f16f07648dce956a5cf5d2ecf8b50d85ca9005f965196102391", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/lodestones/Chroma1-HD/tree/0e0c60ece1e82b17cb7f77342d765ba5024c40c0", - "sourceRevision": "lodestones/Chroma1-HD@0e0c60ece1e82b17cb7f77342d765ba5024c40c0", + "sourceUrl": "https://huggingface.co/google/ddpm-cifar10-32/tree/267b167dc01f0e4e61923ea244e8b988f84deb80", + "sourceRevision": "google/ddpm-cifar10-32@267b167dc01f0e4e61923ea244e8b988f84deb80", "sourceLicense": "MoDiff-authored Gallery metadata", "modelTerms": [ - "Publisher model terms at https://huggingface.co/lodestones/Chroma1-HD/tree/0e0c60ece1e82b17cb7f77342d765ba5024c40c0" + "Publisher model terms at https://huggingface.co/google/ddpm-cifar10-32/tree/267b167dc01f0e4e61923ea244e8b988f84deb80" ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "lodestones/Chroma1-HD@0e0c60ece1e82b17cb7f77342d765ba5024c40c0 https://huggingface.co/lodestones/Chroma1-HD/tree/0e0c60ece1e82b17cb7f77342d765ba5024c40c0" + "google/ddpm-cifar10-32@267b167dc01f0e4e61923ea244e8b988f84deb80 https://huggingface.co/google/ddpm-cifar10-32/tree/267b167dc01f0e4e61923ea244e8b988f84deb80" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", - "reviewedAt": "2026-11-25", + "reviewedAt": "2026-11-24", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "60b01498a2df5f4e4622cdc2f9a43c83d187820780d2425a19718c13707db501", - "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", - "provenanceTemplateId": "chroma_alpine_block_print" + "humanApprovalPacketSHA256": "d216f065bdc316366c6183592f657bcfbbd7cb05acd0e510c6b3877fe56bcec2", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped six saved cases with model terms retained.", + "provenanceTemplateId": "ddim_cifar10_preview" }, { - "path": "template-gallery/reviews/chroma_alpine_block_print.quality-review.json", - "sha256": "sha256:bytes:bb7979a051f9839fdee168737f18bf99c630f5e7edba7ab59f8e7471315d9413", + "path": "template-gallery/reviews/ddim_cifar10_preview.quality-review.json", + "sha256": "sha256:bytes:24698d674171ad14c31fba20652e694b1e845214fe802d32cb7d0e42611cb7c2", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/lodestones/Chroma1-HD/tree/0e0c60ece1e82b17cb7f77342d765ba5024c40c0", - "sourceRevision": "lodestones/Chroma1-HD@0e0c60ece1e82b17cb7f77342d765ba5024c40c0", + "sourceUrl": "https://huggingface.co/google/ddpm-cifar10-32/tree/267b167dc01f0e4e61923ea244e8b988f84deb80", + "sourceRevision": "google/ddpm-cifar10-32@267b167dc01f0e4e61923ea244e8b988f84deb80", "sourceLicense": "MoDiff-authored Gallery metadata", "modelTerms": [ - "Publisher model terms at https://huggingface.co/lodestones/Chroma1-HD/tree/0e0c60ece1e82b17cb7f77342d765ba5024c40c0" + "Publisher model terms at https://huggingface.co/google/ddpm-cifar10-32/tree/267b167dc01f0e4e61923ea244e8b988f84deb80" ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "lodestones/Chroma1-HD@0e0c60ece1e82b17cb7f77342d765ba5024c40c0 https://huggingface.co/lodestones/Chroma1-HD/tree/0e0c60ece1e82b17cb7f77342d765ba5024c40c0" + "google/ddpm-cifar10-32@267b167dc01f0e4e61923ea244e8b988f84deb80 https://huggingface.co/google/ddpm-cifar10-32/tree/267b167dc01f0e4e61923ea244e8b988f84deb80" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", - "reviewedAt": "2026-11-25", + "reviewedAt": "2026-11-24", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "60b01498a2df5f4e4622cdc2f9a43c83d187820780d2425a19718c13707db501", - "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", - "provenanceTemplateId": "chroma_alpine_block_print" + "humanApprovalPacketSHA256": "d216f065bdc316366c6183592f657bcfbbd7cb05acd0e510c6b3877fe56bcec2", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped six saved cases with model terms retained.", + "provenanceTemplateId": "ddim_cifar10_preview" }, { - "path": "template-gallery/reviews/chroma_alpine_block_print.retained-template-provenance.json", - "sha256": "sha256:bytes:d8643c8c82d299a62068afd7b38de0d24fcfd6882585370e73fbe63402726e4a", + "path": "template-gallery/reviews/ddim_cifar10_preview.retained-template-provenance.json", + "sha256": "sha256:bytes:8f2075aff72c4a31ca3e247ce7b1c1c6ebaa8b8f29d7ad7e124555543b7ddfbd", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/lodestones/Chroma1-HD/tree/0e0c60ece1e82b17cb7f77342d765ba5024c40c0", - "sourceRevision": "lodestones/Chroma1-HD@0e0c60ece1e82b17cb7f77342d765ba5024c40c0", + "sourceUrl": "https://huggingface.co/google/ddpm-cifar10-32/tree/267b167dc01f0e4e61923ea244e8b988f84deb80", + "sourceRevision": "google/ddpm-cifar10-32@267b167dc01f0e4e61923ea244e8b988f84deb80", "sourceLicense": "MoDiff-authored Gallery metadata", "modelTerms": [ - "Publisher model terms at https://huggingface.co/lodestones/Chroma1-HD/tree/0e0c60ece1e82b17cb7f77342d765ba5024c40c0" + "Publisher model terms at https://huggingface.co/google/ddpm-cifar10-32/tree/267b167dc01f0e4e61923ea244e8b988f84deb80" ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "lodestones/Chroma1-HD@0e0c60ece1e82b17cb7f77342d765ba5024c40c0 https://huggingface.co/lodestones/Chroma1-HD/tree/0e0c60ece1e82b17cb7f77342d765ba5024c40c0" + "google/ddpm-cifar10-32@267b167dc01f0e4e61923ea244e8b988f84deb80 https://huggingface.co/google/ddpm-cifar10-32/tree/267b167dc01f0e4e61923ea244e8b988f84deb80" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", - "reviewedAt": "2026-11-25", + "reviewedAt": "2026-11-24", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "60b01498a2df5f4e4622cdc2f9a43c83d187820780d2425a19718c13707db501", - "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", - "provenanceTemplateId": "chroma_alpine_block_print" + "humanApprovalPacketSHA256": "d216f065bdc316366c6183592f657bcfbbd7cb05acd0e510c6b3877fe56bcec2", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped six saved cases with model terms retained.", + "provenanceTemplateId": "ddim_cifar10_preview" }, { - "path": "template-gallery/reviews/chroma_restored_cobalt_backdrop.original-provenance.json", - "sha256": "sha256:bytes:f87d18b81ff559f1298f0c780db0f5eb89e9f8219b4f4aff80c224bc3ef47ce4", + "path": "template-gallery/reviews/fast_lora.quality-review.json", + "sha256": "sha256:bytes:96079ed2226e86a0a0686283402a8c4f567809c73d67138afb4d58fc46936a15", "publishDecision": "approved", "holdReason": null, - "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", - "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/lodestones/Chroma1-HD/tree/0e0c60ece1e82b17cb7f77342d765ba5024c40c0", - "sourceRevision": "lodestones/Chroma1-HD@0e0c60ece1e82b17cb7f77342d765ba5024c40c0", - "sourceLicense": "MoDiff-authored Gallery metadata", - "modelTerms": [ - "Publisher model terms at https://huggingface.co/lodestones/Chroma1-HD/tree/0e0c60ece1e82b17cb7f77342d765ba5024c40c0" - ], + "creatorOrRightsholder": "MoDiff project maintainers", + "creationMethod": "MoDiff-authored technical provenance or quality metadata from the explicitly approved six-image source packet", + "sourceUrl": null, + "sourceRevision": null, + "sourceLicense": "Apache-2.0 project-authored metadata; generated-media terms remain in their exact per-file records", + "modelTerms": [], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], - "requiredAttribution": [ - "lodestones/Chroma1-HD@0e0c60ece1e82b17cb7f77342d765ba5024c40c0 https://huggingface.co/lodestones/Chroma1-HD/tree/0e0c60ece1e82b17cb7f77342d765ba5024c40c0" - ], + "requiredAttribution": [], "assetLicense": "Apache-2.0", - "reviewedBy": "MoDiff workspace maintainer", - "reviewedAt": "2026-11-25", - "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "c2df9edb92f8ff905b6c9a138a285e67c621f3d2dfa3232f859aaf963b725aca", - "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", - "provenanceTemplateId": "chroma_restored_cobalt_backdrop" + "reviewedBy": "SOURAV DAS", + "reviewedAt": "2026-11-09", + "reviewClass": "per-file-human-approved-six-z-registration", + "provenanceTemplateId": "fast_lora", + "humanApprovalPacketSHA256": "9b728a5f8535fc1ba3c03d2e2759d7ac795a586fafab51beb1509379ed388934" }, { - "path": "template-gallery/reviews/chroma_restored_cobalt_backdrop.original-review.json", - "sha256": "sha256:bytes:88d1fbfadc2e1d3456f492214f7e51da6bdfd253eb00343fb93990e16c9ba2b9", + "path": "template-gallery/reviews/fast_lora.reviewed-provenance.json", + "sha256": "sha256:bytes:7a3e3ac94845ad37f5f374c1e808a5ff449b0e5776be72a1891bb2c106fdd722", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers", + "creationMethod": "MoDiff-authored technical provenance or quality metadata from the explicitly approved six-image source packet", + "sourceUrl": null, + "sourceRevision": null, + "sourceLicense": "Apache-2.0 project-authored metadata; generated-media terms remain in their exact per-file records", + "modelTerms": [], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [], + "assetLicense": "Apache-2.0", + "reviewedBy": "SOURAV DAS", + "reviewedAt": "2026-11-09", + "reviewClass": "per-file-human-approved-six-z-registration", + "provenanceTemplateId": "fast_lora", + "humanApprovalPacketSHA256": "9b728a5f8535fc1ba3c03d2e2759d7ac795a586fafab51beb1509379ed388934" + }, + { + "path": "template-gallery/reviews/flowers_after_rain.original-provenance.json", + "sha256": "sha256:bytes:4368cd0ed92243d2cc6b5b628ffabba5e64339eeec153282832b253d68efaa87", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/lodestones/Chroma1-HD/tree/0e0c60ece1e82b17cb7f77342d765ba5024c40c0", - "sourceRevision": "lodestones/Chroma1-HD@0e0c60ece1e82b17cb7f77342d765ba5024c40c0", + "sourceUrl": "https://huggingface.co/ATH-MaaS/Ovis-Image-7B/tree/41be1c5821a92c970d63d7eb595a2fd3fe32b22e", + "sourceRevision": "ATH-MaaS/Ovis-Image-7B@41be1c5821a92c970d63d7eb595a2fd3fe32b22e", "sourceLicense": "MoDiff-authored Gallery metadata", "modelTerms": [ - "Publisher model terms at https://huggingface.co/lodestones/Chroma1-HD/tree/0e0c60ece1e82b17cb7f77342d765ba5024c40c0" + "apache-2.0. https://huggingface.co/ATH-MaaS/Ovis-Image-7B/tree/41be1c5821a92c970d63d7eb595a2fd3fe32b22e" ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "lodestones/Chroma1-HD@0e0c60ece1e82b17cb7f77342d765ba5024c40c0 https://huggingface.co/lodestones/Chroma1-HD/tree/0e0c60ece1e82b17cb7f77342d765ba5024c40c0" + "ATH-MaaS/Ovis-Image-7B@41be1c5821a92c970d63d7eb595a2fd3fe32b22e https://huggingface.co/ATH-MaaS/Ovis-Image-7B/tree/41be1c5821a92c970d63d7eb595a2fd3fe32b22e" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "c2df9edb92f8ff905b6c9a138a285e67c621f3d2dfa3232f859aaf963b725aca", - "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", - "provenanceTemplateId": "chroma_restored_cobalt_backdrop" + "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", + "provenanceTemplateId": "flowers_after_rain" }, { - "path": "template-gallery/reviews/chroma_restored_cobalt_backdrop.quality-review.json", - "sha256": "sha256:bytes:803c31f4eb055884cbe955856e99f9846f9259ae58ad6c883d686de581c0dd09", + "path": "template-gallery/reviews/flowers_after_rain.original-review.json", + "sha256": "sha256:bytes:0dadd907604fdde95baa31bcc981dd87cab836c1b167fc852542982163bbc455", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/lodestones/Chroma1-HD/tree/0e0c60ece1e82b17cb7f77342d765ba5024c40c0", - "sourceRevision": "lodestones/Chroma1-HD@0e0c60ece1e82b17cb7f77342d765ba5024c40c0", + "sourceUrl": "https://huggingface.co/ATH-MaaS/Ovis-Image-7B/tree/41be1c5821a92c970d63d7eb595a2fd3fe32b22e", + "sourceRevision": "ATH-MaaS/Ovis-Image-7B@41be1c5821a92c970d63d7eb595a2fd3fe32b22e", "sourceLicense": "MoDiff-authored Gallery metadata", "modelTerms": [ - "Publisher model terms at https://huggingface.co/lodestones/Chroma1-HD/tree/0e0c60ece1e82b17cb7f77342d765ba5024c40c0" + "apache-2.0. https://huggingface.co/ATH-MaaS/Ovis-Image-7B/tree/41be1c5821a92c970d63d7eb595a2fd3fe32b22e" ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "lodestones/Chroma1-HD@0e0c60ece1e82b17cb7f77342d765ba5024c40c0 https://huggingface.co/lodestones/Chroma1-HD/tree/0e0c60ece1e82b17cb7f77342d765ba5024c40c0" + "ATH-MaaS/Ovis-Image-7B@41be1c5821a92c970d63d7eb595a2fd3fe32b22e https://huggingface.co/ATH-MaaS/Ovis-Image-7B/tree/41be1c5821a92c970d63d7eb595a2fd3fe32b22e" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "c2df9edb92f8ff905b6c9a138a285e67c621f3d2dfa3232f859aaf963b725aca", - "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", - "provenanceTemplateId": "chroma_restored_cobalt_backdrop" + "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", + "provenanceTemplateId": "flowers_after_rain" }, { - "path": "template-gallery/reviews/chroma_restored_cobalt_backdrop.retained-template-provenance.json", - "sha256": "sha256:bytes:5232b12615a38293b0d86378fdde3003a61a8f5834de95f395a9364e12dd8fd4", + "path": "template-gallery/reviews/flowers_after_rain.quality-review.json", + "sha256": "sha256:bytes:4dc4ac8e4aa12dc1a9f0d685a3416d1039866c8b52d8d2560a8d3b0364cd5121", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/lodestones/Chroma1-HD/tree/0e0c60ece1e82b17cb7f77342d765ba5024c40c0", - "sourceRevision": "lodestones/Chroma1-HD@0e0c60ece1e82b17cb7f77342d765ba5024c40c0", + "sourceUrl": "https://huggingface.co/ATH-MaaS/Ovis-Image-7B/tree/41be1c5821a92c970d63d7eb595a2fd3fe32b22e", + "sourceRevision": "ATH-MaaS/Ovis-Image-7B@41be1c5821a92c970d63d7eb595a2fd3fe32b22e", "sourceLicense": "MoDiff-authored Gallery metadata", "modelTerms": [ - "Publisher model terms at https://huggingface.co/lodestones/Chroma1-HD/tree/0e0c60ece1e82b17cb7f77342d765ba5024c40c0" + "apache-2.0. https://huggingface.co/ATH-MaaS/Ovis-Image-7B/tree/41be1c5821a92c970d63d7eb595a2fd3fe32b22e" ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "lodestones/Chroma1-HD@0e0c60ece1e82b17cb7f77342d765ba5024c40c0 https://huggingface.co/lodestones/Chroma1-HD/tree/0e0c60ece1e82b17cb7f77342d765ba5024c40c0" + "ATH-MaaS/Ovis-Image-7B@41be1c5821a92c970d63d7eb595a2fd3fe32b22e https://huggingface.co/ATH-MaaS/Ovis-Image-7B/tree/41be1c5821a92c970d63d7eb595a2fd3fe32b22e" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "c2df9edb92f8ff905b6c9a138a285e67c621f3d2dfa3232f859aaf963b725aca", - "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", - "provenanceTemplateId": "chroma_restored_cobalt_backdrop" + "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", + "provenanceTemplateId": "flowers_after_rain" }, { - "path": "template-gallery/reviews/chroma_terracotta_and_blue.original-provenance.json", - "sha256": "sha256:bytes:92a7762ec200afa64405b665dbd19d630b846f55bdb170fc08bfb5c588b1d258", + "path": "template-gallery/reviews/flowers_after_rain.retained-template-provenance.json", + "sha256": "sha256:bytes:5251193aa4454f936e7677ee44b91d30938885e46645007effb8b1de8ea61f4a", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/lodestones/Chroma1-HD/tree/0e0c60ece1e82b17cb7f77342d765ba5024c40c0", - "sourceRevision": "lodestones/Chroma1-HD@0e0c60ece1e82b17cb7f77342d765ba5024c40c0", + "sourceUrl": "https://huggingface.co/ATH-MaaS/Ovis-Image-7B/tree/41be1c5821a92c970d63d7eb595a2fd3fe32b22e", + "sourceRevision": "ATH-MaaS/Ovis-Image-7B@41be1c5821a92c970d63d7eb595a2fd3fe32b22e", "sourceLicense": "MoDiff-authored Gallery metadata", "modelTerms": [ - "https://huggingface.co/lodestones/Chroma1-HD/blob/0e0c60ece1e82b17cb7f77342d765ba5024c40c0/README.md" + "apache-2.0. https://huggingface.co/ATH-MaaS/Ovis-Image-7B/tree/41be1c5821a92c970d63d7eb595a2fd3fe32b22e" ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "lodestones/Chroma1-HD@0e0c60ece1e82b17cb7f77342d765ba5024c40c0 https://huggingface.co/lodestones/Chroma1-HD/tree/0e0c60ece1e82b17cb7f77342d765ba5024c40c0" + "ATH-MaaS/Ovis-Image-7B@41be1c5821a92c970d63d7eb595a2fd3fe32b22e https://huggingface.co/ATH-MaaS/Ovis-Image-7B/tree/41be1c5821a92c970d63d7eb595a2fd3fe32b22e" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "c2df9edb92f8ff905b6c9a138a285e67c621f3d2dfa3232f859aaf963b725aca", - "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", - "provenanceTemplateId": "chroma_terracotta_and_blue" + "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", + "provenanceTemplateId": "flowers_after_rain" }, { - "path": "template-gallery/reviews/chroma_terracotta_and_blue.original-review.json", - "sha256": "sha256:bytes:d935f45b897cc717315684e2b180097b2e3892d275b4c38e96f2a9ec930ae24f", + "path": "template-gallery/reviews/flux1_dev_limestone_studio_scratch_repair.original-provenance.json", + "sha256": "sha256:bytes:876f2fb80e0352d1c5d25648da72ec9324d03e46bad65e42cd487c415d952626", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/lodestones/Chroma1-HD/tree/0e0c60ece1e82b17cb7f77342d765ba5024c40c0", - "sourceRevision": "lodestones/Chroma1-HD@0e0c60ece1e82b17cb7f77342d765ba5024c40c0", + "sourceUrl": "https://huggingface.co/black-forest-labs/FLUX.1-dev/tree/3de623fc3c33e44ffbe2bad470d0f45bccf2eb21", + "sourceRevision": "black-forest-labs/FLUX.1-dev@3de623fc3c33e44ffbe2bad470d0f45bccf2eb21", "sourceLicense": "MoDiff-authored Gallery metadata", "modelTerms": [ - "https://huggingface.co/lodestones/Chroma1-HD/blob/0e0c60ece1e82b17cb7f77342d765ba5024c40c0/README.md" + "Publisher model terms at https://huggingface.co/black-forest-labs/FLUX.1-dev/tree/3de623fc3c33e44ffbe2bad470d0f45bccf2eb21" ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "lodestones/Chroma1-HD@0e0c60ece1e82b17cb7f77342d765ba5024c40c0 https://huggingface.co/lodestones/Chroma1-HD/tree/0e0c60ece1e82b17cb7f77342d765ba5024c40c0" + "black-forest-labs/FLUX.1-dev@3de623fc3c33e44ffbe2bad470d0f45bccf2eb21 https://huggingface.co/black-forest-labs/FLUX.1-dev/tree/3de623fc3c33e44ffbe2bad470d0f45bccf2eb21" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "c2df9edb92f8ff905b6c9a138a285e67c621f3d2dfa3232f859aaf963b725aca", + "humanApprovalPacketSHA256": "60b01498a2df5f4e4622cdc2f9a43c83d187820780d2425a19718c13707db501", "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", - "provenanceTemplateId": "chroma_terracotta_and_blue" + "provenanceTemplateId": "flux1_dev_limestone_studio_scratch_repair" }, { - "path": "template-gallery/reviews/chroma_terracotta_and_blue.quality-review.json", - "sha256": "sha256:bytes:2435a255e05519ab5b750b4728217d7f938631213ffeeb6da882dcb184e9fa7b", + "path": "template-gallery/reviews/flux1_dev_limestone_studio_scratch_repair.original-review.json", + "sha256": "sha256:bytes:9c6d1ea38c006fe11dd5e65d5c82d040e20844d8d38c680b1d45ea189b9e2282", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/lodestones/Chroma1-HD/tree/0e0c60ece1e82b17cb7f77342d765ba5024c40c0", - "sourceRevision": "lodestones/Chroma1-HD@0e0c60ece1e82b17cb7f77342d765ba5024c40c0", + "sourceUrl": "https://huggingface.co/black-forest-labs/FLUX.1-dev/tree/3de623fc3c33e44ffbe2bad470d0f45bccf2eb21", + "sourceRevision": "black-forest-labs/FLUX.1-dev@3de623fc3c33e44ffbe2bad470d0f45bccf2eb21", "sourceLicense": "MoDiff-authored Gallery metadata", "modelTerms": [ - "https://huggingface.co/lodestones/Chroma1-HD/blob/0e0c60ece1e82b17cb7f77342d765ba5024c40c0/README.md" + "Publisher model terms at https://huggingface.co/black-forest-labs/FLUX.1-dev/tree/3de623fc3c33e44ffbe2bad470d0f45bccf2eb21" ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "lodestones/Chroma1-HD@0e0c60ece1e82b17cb7f77342d765ba5024c40c0 https://huggingface.co/lodestones/Chroma1-HD/tree/0e0c60ece1e82b17cb7f77342d765ba5024c40c0" + "black-forest-labs/FLUX.1-dev@3de623fc3c33e44ffbe2bad470d0f45bccf2eb21 https://huggingface.co/black-forest-labs/FLUX.1-dev/tree/3de623fc3c33e44ffbe2bad470d0f45bccf2eb21" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "c2df9edb92f8ff905b6c9a138a285e67c621f3d2dfa3232f859aaf963b725aca", + "humanApprovalPacketSHA256": "60b01498a2df5f4e4622cdc2f9a43c83d187820780d2425a19718c13707db501", "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", - "provenanceTemplateId": "chroma_terracotta_and_blue" + "provenanceTemplateId": "flux1_dev_limestone_studio_scratch_repair" }, { - "path": "template-gallery/reviews/chroma_terracotta_and_blue.retained-template-provenance.json", - "sha256": "sha256:bytes:95d0a67308f0dd2b8024a39cacca3fcfd82611a03d01f76a38a429dd1c4c2077", + "path": "template-gallery/reviews/flux1_dev_limestone_studio_scratch_repair.quality-review.json", + "sha256": "sha256:bytes:1233ae9bdb89e3599b691f2bc14408f1f9dd762c3db734bb8fd828fce1f040b0", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/lodestones/Chroma1-HD/tree/0e0c60ece1e82b17cb7f77342d765ba5024c40c0", - "sourceRevision": "lodestones/Chroma1-HD@0e0c60ece1e82b17cb7f77342d765ba5024c40c0", + "sourceUrl": "https://huggingface.co/black-forest-labs/FLUX.1-dev/tree/3de623fc3c33e44ffbe2bad470d0f45bccf2eb21", + "sourceRevision": "black-forest-labs/FLUX.1-dev@3de623fc3c33e44ffbe2bad470d0f45bccf2eb21", "sourceLicense": "MoDiff-authored Gallery metadata", "modelTerms": [ - "https://huggingface.co/lodestones/Chroma1-HD/blob/0e0c60ece1e82b17cb7f77342d765ba5024c40c0/README.md" + "Publisher model terms at https://huggingface.co/black-forest-labs/FLUX.1-dev/tree/3de623fc3c33e44ffbe2bad470d0f45bccf2eb21" ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "lodestones/Chroma1-HD@0e0c60ece1e82b17cb7f77342d765ba5024c40c0 https://huggingface.co/lodestones/Chroma1-HD/tree/0e0c60ece1e82b17cb7f77342d765ba5024c40c0" + "black-forest-labs/FLUX.1-dev@3de623fc3c33e44ffbe2bad470d0f45bccf2eb21 https://huggingface.co/black-forest-labs/FLUX.1-dev/tree/3de623fc3c33e44ffbe2bad470d0f45bccf2eb21" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "c2df9edb92f8ff905b6c9a138a285e67c621f3d2dfa3232f859aaf963b725aca", + "humanApprovalPacketSHA256": "60b01498a2df5f4e4622cdc2f9a43c83d187820780d2425a19718c13707db501", "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", - "provenanceTemplateId": "chroma_terracotta_and_blue" + "provenanceTemplateId": "flux1_dev_limestone_studio_scratch_repair" }, { - "path": "template-gallery/reviews/cobalt_jug_and_lemons.original-provenance.json", - "sha256": "sha256:bytes:c9b80942080368a5e13eef6d01a31691034655d618c40ef89ab9bd1b0ade0c7e", + "path": "template-gallery/reviews/flux1_dev_limestone_studio_scratch_repair.retained-template-provenance.json", + "sha256": "sha256:bytes:61e8601aaefcc918f03d5f110d57e8f26cb2149d6034c22fb9c13915ddb70324", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14", - "sourceRevision": "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14", + "sourceUrl": "https://huggingface.co/black-forest-labs/FLUX.1-dev/tree/3de623fc3c33e44ffbe2bad470d0f45bccf2eb21", + "sourceRevision": "black-forest-labs/FLUX.1-dev@3de623fc3c33e44ffbe2bad470d0f45bccf2eb21", "sourceLicense": "MoDiff-authored Gallery metadata", "modelTerms": [ - "creativeml-openrail-m. https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14" + "Publisher model terms at https://huggingface.co/black-forest-labs/FLUX.1-dev/tree/3de623fc3c33e44ffbe2bad470d0f45bccf2eb21" ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14 https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14" + "black-forest-labs/FLUX.1-dev@3de623fc3c33e44ffbe2bad470d0f45bccf2eb21 https://huggingface.co/black-forest-labs/FLUX.1-dev/tree/3de623fc3c33e44ffbe2bad470d0f45bccf2eb21" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", - "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", - "provenanceTemplateId": "cobalt_jug_and_lemons" + "humanApprovalPacketSHA256": "60b01498a2df5f4e4622cdc2f9a43c83d187820780d2425a19718c13707db501", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "flux1_dev_limestone_studio_scratch_repair" }, { - "path": "template-gallery/reviews/cobalt_jug_and_lemons.original-review.json", - "sha256": "sha256:bytes:f55b66df26013db2e002b925f1aceececec95ebd311a306bb082258f292751f1", + "path": "template-gallery/reviews/flux2_klein_edit.quality-review.json", + "sha256": "sha256:bytes:9fb22201199f326234b60ad2b1162dd14d3e94cf6e2bd4d00507c26d240aeebe", "publishDecision": "approved", "holdReason": null, - "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", - "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14", - "sourceRevision": "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14", - "sourceLicense": "MoDiff-authored Gallery metadata", - "modelTerms": [ - "creativeml-openrail-m. https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14" - ], + "creatorOrRightsholder": "MoDiff project maintainers", + "creationMethod": "MoDiff-authored technical provenance, Gallery manifest or quality review for the two explicitly approved native Windows FLUX.2 Klein images", + "sourceUrl": null, + "sourceRevision": null, + "sourceLicense": "Apache-2.0 project-authored metadata; generated-media terms remain in their exact per-file record", + "modelTerms": [], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], - "requiredAttribution": [ - "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14 https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14" - ], + "requiredAttribution": [], "assetLicense": "Apache-2.0", - "reviewedBy": "MoDiff workspace maintainer", - "reviewedAt": "2026-11-25", - "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", - "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", - "provenanceTemplateId": "cobalt_jug_and_lemons" + "reviewedBy": "SOURAV DAS", + "reviewedAt": "2026-11-10", + "reviewClass": "per-file-human-approved-windows-klein-native-image-registration", + "provenanceTemplateId": "flux2_klein_edit", + "humanApprovalPacketSHA256": "2862dea890936a224953749fccb20cbba222471c43abad480dad091e8437f45a" }, { - "path": "template-gallery/reviews/cobalt_jug_and_lemons.quality-review.json", - "sha256": "sha256:bytes:da64a4e035bbe030a037ddfaf23a16946114d0e680c842f37976cc50ff8d6970", + "path": "template-gallery/reviews/flux2_klein_edit.reviewed-provenance.json", + "sha256": "sha256:bytes:780517219787eafdce5362cfd9f8cab52f848397edde41b5b91ed9bb3c904462", "publishDecision": "approved", "holdReason": null, - "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", - "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14", - "sourceRevision": "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14", - "sourceLicense": "MoDiff-authored Gallery metadata", - "modelTerms": [ - "creativeml-openrail-m. https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14" - ], + "creatorOrRightsholder": "MoDiff project maintainers", + "creationMethod": "MoDiff-authored technical provenance, Gallery manifest or quality review for the two explicitly approved native Windows FLUX.2 Klein images", + "sourceUrl": null, + "sourceRevision": null, + "sourceLicense": "Apache-2.0 project-authored metadata; generated-media terms remain in their exact per-file record", + "modelTerms": [], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], - "requiredAttribution": [ - "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14 https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14" - ], + "requiredAttribution": [], "assetLicense": "Apache-2.0", - "reviewedBy": "MoDiff workspace maintainer", - "reviewedAt": "2026-11-25", - "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", - "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", - "provenanceTemplateId": "cobalt_jug_and_lemons" + "reviewedBy": "SOURAV DAS", + "reviewedAt": "2026-11-10", + "reviewClass": "per-file-human-approved-windows-klein-native-image-registration", + "humanApprovalPacketSHA256": "2862dea890936a224953749fccb20cbba222471c43abad480dad091e8437f45a", + "humanApprovalScope": "The maintainer explicitly approved the proposed 4/5 scores, known limits, exact retained Klein two-reference derivative output, its redacted technical/quality metadata, and permission to make and redistribute this derivative under Apache-2.0. Existing source images and their mixed license records remain unchanged; no other assets or held cases are newly approved.", + "provenanceTemplateId": "flux2_klein_edit" }, { - "path": "template-gallery/reviews/cobalt_jug_and_lemons.retained-template-provenance.json", - "sha256": "sha256:bytes:066fee762cae8b5f92625cc71f4002422828b06115024c3ce11affd68f34544e", + "path": "template-gallery/reviews/flux2_klein_multi_reference.quality-review.json", + "sha256": "sha256:bytes:7f6d97ce71b303302117236ae3c8f3cd047801026a8f808916c69c9008c6c5c5", "publishDecision": "approved", "holdReason": null, - "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", - "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14", - "sourceRevision": "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14", - "sourceLicense": "MoDiff-authored Gallery metadata", - "modelTerms": [ - "creativeml-openrail-m. https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14" - ], + "creatorOrRightsholder": "MoDiff project maintainers", + "creationMethod": "MoDiff-authored technical provenance or quality metadata from the explicitly approved retained Klein two-reference source packet", + "sourceUrl": null, + "sourceRevision": null, + "sourceLicense": "Apache-2.0 project-authored metadata; generated-media terms remain in their exact per-file records", + "modelTerms": [], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], - "requiredAttribution": [ - "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14 https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14" - ], + "requiredAttribution": [], "assetLicense": "Apache-2.0", - "reviewedBy": "MoDiff workspace maintainer", - "reviewedAt": "2026-11-25", - "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", - "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", - "provenanceTemplateId": "cobalt_jug_and_lemons" + "reviewedBy": "SOURAV DAS", + "reviewedAt": "2026-11-09", + "reviewClass": "per-file-human-approved-klein-derivative-registration", + "provenanceTemplateId": "flux2_klein_multi_reference", + "humanApprovalPacketSHA256": "6110699f001f269b75ee943b96c82d2c0c37cb33ba4c10fdd1a9cd15d4d48042", + "humanApprovalScope": "The maintainer explicitly approved the proposed 4/5 scores, known limits, exact retained Klein two-reference derivative output, its redacted technical/quality metadata, and permission to make and redistribute this derivative under Apache-2.0. Existing source images and their mixed license records remain unchanged; no other assets or held cases are newly approved." }, { - "path": "template-gallery/reviews/cogvideox_mossy_mountain_stream.original-provenance.json", - "sha256": "sha256:bytes:33e7bae227d98d35af005ca13238e9adfb288160165643330621b871c48ac32c", + "path": "template-gallery/reviews/flux2_klein_multi_reference.reviewed-provenance.json", + "sha256": "sha256:bytes:dd9601157dcff562c822db19d08d7c7f7720a1e069945563609e87c7fc52cf77", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers", + "creationMethod": "MoDiff-authored technical provenance or quality metadata from the explicitly approved retained Klein two-reference source packet", + "sourceUrl": null, + "sourceRevision": null, + "sourceLicense": "Apache-2.0 project-authored metadata; generated-media terms remain in their exact per-file records", + "modelTerms": [], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [], + "assetLicense": "Apache-2.0", + "reviewedBy": "SOURAV DAS", + "reviewedAt": "2026-11-09", + "reviewClass": "per-file-human-approved-klein-derivative-registration", + "provenanceTemplateId": "flux2_klein_multi_reference", + "humanApprovalPacketSHA256": "6110699f001f269b75ee943b96c82d2c0c37cb33ba4c10fdd1a9cd15d4d48042", + "humanApprovalScope": "The maintainer explicitly approved the proposed 4/5 scores, known limits, exact retained Klein two-reference derivative output, its redacted technical/quality metadata, and permission to make and redistribute this derivative under Apache-2.0. Existing source images and their mixed license records remain unchanged; no other assets or held cases are newly approved." + }, + { + "path": "template-gallery/reviews/flux2_klein_text_to_image.quality-review.json", + "sha256": "sha256:bytes:2a2f12b34c26df960805a7fcac925e8f36894326f271f20920f720e3b72499ac", "publishDecision": "approved", "holdReason": null, - "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", - "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/zai-org/CogVideoX-2b/tree/1137dacfc2c9c012bed6a0793f4ecf2ca8e7ba01", - "sourceRevision": "zai-org/CogVideoX-2b@1137dacfc2c9c012bed6a0793f4ecf2ca8e7ba01", - "sourceLicense": "MoDiff-authored Gallery metadata", - "modelTerms": [ - "Publisher model terms at https://huggingface.co/zai-org/CogVideoX-2b/tree/1137dacfc2c9c012bed6a0793f4ecf2ca8e7ba01" - ], + "creatorOrRightsholder": "MoDiff project maintainers", + "creationMethod": "MoDiff-authored technical provenance, Gallery manifest or quality review for the two explicitly approved native Windows FLUX.2 Klein images", + "sourceUrl": null, + "sourceRevision": null, + "sourceLicense": "Apache-2.0 project-authored metadata; generated-media terms remain in their exact per-file record", + "modelTerms": [], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], - "requiredAttribution": [ - "zai-org/CogVideoX-2b@1137dacfc2c9c012bed6a0793f4ecf2ca8e7ba01 https://huggingface.co/zai-org/CogVideoX-2b/tree/1137dacfc2c9c012bed6a0793f4ecf2ca8e7ba01" - ], + "requiredAttribution": [], "assetLicense": "Apache-2.0", - "reviewedBy": "MoDiff workspace maintainer", - "reviewedAt": "2026-11-25", - "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "ffeaa41a5c94b59135d2cdb15a5c7f79f073c15fd78792ce00a157398ab15d59", - "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", - "provenanceTemplateId": "cogvideox_mossy_mountain_stream" + "reviewedBy": "SOURAV DAS", + "reviewedAt": "2026-11-10", + "reviewClass": "per-file-human-approved-windows-klein-native-image-registration", + "provenanceTemplateId": "flux2_klein_text_to_image", + "humanApprovalPacketSHA256": "2862dea890936a224953749fccb20cbba222471c43abad480dad091e8437f45a" }, { - "path": "template-gallery/reviews/cogvideox_mossy_mountain_stream.original-review.json", - "sha256": "sha256:bytes:3678c4a805bb1d6b4205c0d3d97df2f559b65740a7519ba19674456c26d54d13", + "path": "template-gallery/reviews/flux2_klein_text_to_image.reviewed-provenance.json", + "sha256": "sha256:bytes:e24076267505e368ca3f117c3147640dd731493d23ab2cdb32e9581c27b6c366", "publishDecision": "approved", "holdReason": null, - "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", - "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/zai-org/CogVideoX-2b/tree/1137dacfc2c9c012bed6a0793f4ecf2ca8e7ba01", - "sourceRevision": "zai-org/CogVideoX-2b@1137dacfc2c9c012bed6a0793f4ecf2ca8e7ba01", - "sourceLicense": "MoDiff-authored Gallery metadata", - "modelTerms": [ - "Publisher model terms at https://huggingface.co/zai-org/CogVideoX-2b/tree/1137dacfc2c9c012bed6a0793f4ecf2ca8e7ba01" - ], + "creatorOrRightsholder": "MoDiff project maintainers", + "creationMethod": "MoDiff-authored technical provenance, Gallery manifest or quality review for the two explicitly approved native Windows FLUX.2 Klein images", + "sourceUrl": null, + "sourceRevision": null, + "sourceLicense": "Apache-2.0 project-authored metadata; generated-media terms remain in their exact per-file record", + "modelTerms": [], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], - "requiredAttribution": [ - "zai-org/CogVideoX-2b@1137dacfc2c9c012bed6a0793f4ecf2ca8e7ba01 https://huggingface.co/zai-org/CogVideoX-2b/tree/1137dacfc2c9c012bed6a0793f4ecf2ca8e7ba01" - ], + "requiredAttribution": [], "assetLicense": "Apache-2.0", - "reviewedBy": "MoDiff workspace maintainer", - "reviewedAt": "2026-11-25", - "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "ffeaa41a5c94b59135d2cdb15a5c7f79f073c15fd78792ce00a157398ab15d59", - "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", - "provenanceTemplateId": "cogvideox_mossy_mountain_stream" + "reviewedBy": "SOURAV DAS", + "reviewedAt": "2026-11-10", + "reviewClass": "per-file-human-approved-windows-klein-native-image-registration", + "provenanceTemplateId": "flux2_klein_text_to_image", + "humanApprovalPacketSHA256": "2862dea890936a224953749fccb20cbba222471c43abad480dad091e8437f45a" }, { - "path": "template-gallery/reviews/cogvideox_mossy_mountain_stream.quality-review.json", - "sha256": "sha256:bytes:43fcf40d6bec403f203be3b2386ef27e345752c5dc53882ab2df45537dcbfcd1", + "path": "template-gallery/reviews/flux3_klein_base_fp8r512_lora_style.quality-review.json", + "sha256": "sha256:bytes:6ecaa3d253c60a36cfa0129575fda00de91b7259d6d5d7aaf7a1eafc1c1539fb", "publishDecision": "approved", "holdReason": null, - "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", - "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/zai-org/CogVideoX-2b/tree/1137dacfc2c9c012bed6a0793f4ecf2ca8e7ba01", - "sourceRevision": "zai-org/CogVideoX-2b@1137dacfc2c9c012bed6a0793f4ecf2ca8e7ba01", - "sourceLicense": "MoDiff-authored Gallery metadata", + "creatorOrRightsholder": "sourav-das / MoDiff project maintainers", + "creationMethod": "MoDiff-authored technical provenance or quality metadata derived from the explicitly approved source-media packet", + "sourceUrl": null, + "sourceRevision": null, + "sourceLicense": "Apache-2.0 project-authored metadata; image/model terms remain in their own per-file records", "modelTerms": [ - "Publisher model terms at https://huggingface.co/zai-org/CogVideoX-2b/tree/1137dacfc2c9c012bed6a0793f4ecf2ca8e7ba01" + "AI-assisted technical quality assessment authored in Codex for this project; no model weights or additional generated media are included." ], - "aiGenerated": false, + "aiGenerated": true, "humanLikenessConsent": "not-applicable", "marks": [], - "requiredAttribution": [ - "zai-org/CogVideoX-2b@1137dacfc2c9c012bed6a0793f4ecf2ca8e7ba01 https://huggingface.co/zai-org/CogVideoX-2b/tree/1137dacfc2c9c012bed6a0793f4ecf2ca8e7ba01" - ], + "requiredAttribution": [], "assetLicense": "Apache-2.0", - "reviewedBy": "MoDiff workspace maintainer", - "reviewedAt": "2026-11-25", - "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "ffeaa41a5c94b59135d2cdb15a5c7f79f073c15fd78792ce00a157398ab15d59", - "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", - "provenanceTemplateId": "cogvideox_mossy_mountain_stream" + "reviewedBy": "Codex (technical metadata); sourav-das (underlying exact-file rights and publication approval)", + "reviewedAt": "2026-10-31", + "reviewClass": "technical-derivation-of-human-approved-media", + "humanApprovalPacketSHA256": "a55745498d9c767d581d947b90b12ad4308e5f95b870224ef67107d5894f2499", + "humanApprovalScope": "Exact source images, authored mask and SHA-bound review packet. Numeric quality scores are the AI assessment, not human-supplied scores. The metadata is project-authored; it introduces no new third-party media rights." }, { - "path": "template-gallery/reviews/cogvideox_mossy_mountain_stream.retained-template-provenance.json", - "sha256": "sha256:bytes:2e96867659142d6f562c4607f0db301aa2f003bfb9c4f29f333751365a5d7b66", + "path": "template-gallery/reviews/flux3_klein_base_fp8r512_lora_style.reviewed-provenance.json", + "sha256": "sha256:bytes:bf2a88219068ec3c78bf3ab9f847f2c80d7e78035d574dbccc8d48c9c979bdc6", "publishDecision": "approved", "holdReason": null, - "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", - "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/zai-org/CogVideoX-2b/tree/1137dacfc2c9c012bed6a0793f4ecf2ca8e7ba01", - "sourceRevision": "zai-org/CogVideoX-2b@1137dacfc2c9c012bed6a0793f4ecf2ca8e7ba01", - "sourceLicense": "MoDiff-authored Gallery metadata", - "modelTerms": [ - "Publisher model terms at https://huggingface.co/zai-org/CogVideoX-2b/tree/1137dacfc2c9c012bed6a0793f4ecf2ca8e7ba01" - ], + "creatorOrRightsholder": "sourav-das / MoDiff project maintainers", + "creationMethod": "MoDiff-authored technical provenance or quality metadata derived from the explicitly approved source-media packet", + "sourceUrl": null, + "sourceRevision": null, + "sourceLicense": "Apache-2.0 project-authored metadata; image/model terms remain in their own per-file records", + "modelTerms": [], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], - "requiredAttribution": [ - "zai-org/CogVideoX-2b@1137dacfc2c9c012bed6a0793f4ecf2ca8e7ba01 https://huggingface.co/zai-org/CogVideoX-2b/tree/1137dacfc2c9c012bed6a0793f4ecf2ca8e7ba01" - ], + "requiredAttribution": [], "assetLicense": "Apache-2.0", - "reviewedBy": "MoDiff workspace maintainer", - "reviewedAt": "2026-11-25", - "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "ffeaa41a5c94b59135d2cdb15a5c7f79f073c15fd78792ce00a157398ab15d59", - "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", - "provenanceTemplateId": "cogvideox_mossy_mountain_stream" + "reviewedBy": "Codex (technical metadata); sourav-das (underlying exact-file rights and publication approval)", + "reviewedAt": "2026-10-31", + "reviewClass": "technical-derivation-of-human-approved-media", + "humanApprovalPacketSHA256": "a55745498d9c767d581d947b90b12ad4308e5f95b870224ef67107d5894f2499", + "humanApprovalScope": "Exact source images, authored mask and SHA-bound review packet. Numeric quality scores are the AI assessment, not human-supplied scores. The metadata is project-authored; it introduces no new third-party media rights." }, { - "path": "template-gallery/reviews/cogvideox_red_tram_model_railway.original-provenance.json", - "sha256": "sha256:bytes:b63d433a2ae3627d260abf77dca4bca8ded0798a3449e9fb5b460628c5a2fa08", + "path": "template-gallery/reviews/flux3_klein_base_fp8r512_multi_reference_edit.quality-review.json", + "sha256": "sha256:bytes:0666e990cc08d4014f2f913674e9637a86e4f62fee681de1287c949a6a7dcb5a", "publishDecision": "approved", "holdReason": null, - "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", - "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/zai-org/CogVideoX-2b/tree/1137dacfc2c9c012bed6a0793f4ecf2ca8e7ba01", - "sourceRevision": "zai-org/CogVideoX-2b@1137dacfc2c9c012bed6a0793f4ecf2ca8e7ba01", - "sourceLicense": "MoDiff-authored Gallery metadata", + "creatorOrRightsholder": "sourav-das / MoDiff project maintainers", + "creationMethod": "MoDiff-authored technical provenance or quality metadata derived from the explicitly approved source-media packet", + "sourceUrl": null, + "sourceRevision": null, + "sourceLicense": "Apache-2.0 project-authored metadata; image/model terms remain in their own per-file records", "modelTerms": [ - "Publisher model terms at https://huggingface.co/zai-org/CogVideoX-2b/tree/1137dacfc2c9c012bed6a0793f4ecf2ca8e7ba01" + "AI-assisted technical quality assessment authored in Codex for this project; no model weights or additional generated media are included." ], - "aiGenerated": false, + "aiGenerated": true, "humanLikenessConsent": "not-applicable", "marks": [], - "requiredAttribution": [ - "zai-org/CogVideoX-2b@1137dacfc2c9c012bed6a0793f4ecf2ca8e7ba01 https://huggingface.co/zai-org/CogVideoX-2b/tree/1137dacfc2c9c012bed6a0793f4ecf2ca8e7ba01" - ], + "requiredAttribution": [], "assetLicense": "Apache-2.0", - "reviewedBy": "MoDiff workspace maintainer", - "reviewedAt": "2026-11-25", - "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "ffeaa41a5c94b59135d2cdb15a5c7f79f073c15fd78792ce00a157398ab15d59", - "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", - "provenanceTemplateId": "cogvideox_red_tram_model_railway" + "reviewedBy": "Codex (technical metadata); sourav-das (underlying exact-file rights and publication approval)", + "reviewedAt": "2026-10-31", + "reviewClass": "technical-derivation-of-human-approved-media", + "humanApprovalPacketSHA256": "a55745498d9c767d581d947b90b12ad4308e5f95b870224ef67107d5894f2499", + "humanApprovalScope": "Exact source images, authored mask and SHA-bound review packet. Numeric quality scores are the AI assessment, not human-supplied scores. The metadata is project-authored; it introduces no new third-party media rights." }, { - "path": "template-gallery/reviews/cogvideox_red_tram_model_railway.original-review.json", - "sha256": "sha256:bytes:0b2030e77910993ce5e1947c5378e06ab488e1243b79e67cc6edd44c3cd8d462", + "path": "template-gallery/reviews/flux3_klein_base_fp8r512_multi_reference_edit.reviewed-provenance.json", + "sha256": "sha256:bytes:df83c15df43ca7b2739db3032671014c3dea0cb0bd1cd4acb15df5dcccf443bd", "publishDecision": "approved", "holdReason": null, - "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", - "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/zai-org/CogVideoX-2b/tree/1137dacfc2c9c012bed6a0793f4ecf2ca8e7ba01", - "sourceRevision": "zai-org/CogVideoX-2b@1137dacfc2c9c012bed6a0793f4ecf2ca8e7ba01", - "sourceLicense": "MoDiff-authored Gallery metadata", - "modelTerms": [ - "Publisher model terms at https://huggingface.co/zai-org/CogVideoX-2b/tree/1137dacfc2c9c012bed6a0793f4ecf2ca8e7ba01" - ], + "creatorOrRightsholder": "sourav-das / MoDiff project maintainers", + "creationMethod": "MoDiff-authored technical provenance or quality metadata derived from the explicitly approved source-media packet", + "sourceUrl": null, + "sourceRevision": null, + "sourceLicense": "Apache-2.0 project-authored metadata; image/model terms remain in their own per-file records", + "modelTerms": [], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], - "requiredAttribution": [ - "zai-org/CogVideoX-2b@1137dacfc2c9c012bed6a0793f4ecf2ca8e7ba01 https://huggingface.co/zai-org/CogVideoX-2b/tree/1137dacfc2c9c012bed6a0793f4ecf2ca8e7ba01" - ], + "requiredAttribution": [], "assetLicense": "Apache-2.0", - "reviewedBy": "MoDiff workspace maintainer", - "reviewedAt": "2026-11-25", - "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "ffeaa41a5c94b59135d2cdb15a5c7f79f073c15fd78792ce00a157398ab15d59", - "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", - "provenanceTemplateId": "cogvideox_red_tram_model_railway" + "reviewedBy": "Codex (technical metadata); sourav-das (underlying exact-file rights and publication approval)", + "reviewedAt": "2026-10-31", + "reviewClass": "technical-derivation-of-human-approved-media", + "humanApprovalPacketSHA256": "a55745498d9c767d581d947b90b12ad4308e5f95b870224ef67107d5894f2499", + "humanApprovalScope": "Exact source images, authored mask and SHA-bound review packet. Numeric quality scores are the AI assessment, not human-supplied scores. The metadata is project-authored; it introduces no new third-party media rights." }, { - "path": "template-gallery/reviews/cogvideox_red_tram_model_railway.quality-review.json", - "sha256": "sha256:bytes:56466f759c750421f135ebf3069202ae9eb0374a9f2ee4327b95b0490ec3a583", + "path": "template-gallery/reviews/flux3_klein_base_fp8r512_raw_coordinate_prompt.quality-review.json", + "sha256": "sha256:bytes:5a40f1c4b7c13f8678de7fdd41bf090c39071fc884c2e4dfed6c1f03e0ecb09c", "publishDecision": "approved", "holdReason": null, - "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", - "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/zai-org/CogVideoX-2b/tree/1137dacfc2c9c012bed6a0793f4ecf2ca8e7ba01", - "sourceRevision": "zai-org/CogVideoX-2b@1137dacfc2c9c012bed6a0793f4ecf2ca8e7ba01", - "sourceLicense": "MoDiff-authored Gallery metadata", + "creatorOrRightsholder": "sourav-das / MoDiff project maintainers", + "creationMethod": "MoDiff-authored technical provenance or quality metadata derived from the explicitly approved source-media packet", + "sourceUrl": null, + "sourceRevision": null, + "sourceLicense": "Apache-2.0 project-authored metadata; image/model terms remain in their own per-file records", "modelTerms": [ - "Publisher model terms at https://huggingface.co/zai-org/CogVideoX-2b/tree/1137dacfc2c9c012bed6a0793f4ecf2ca8e7ba01" + "AI-assisted technical quality assessment authored in Codex for this project; no model weights or additional generated media are included." ], - "aiGenerated": false, + "aiGenerated": true, "humanLikenessConsent": "not-applicable", "marks": [], - "requiredAttribution": [ - "zai-org/CogVideoX-2b@1137dacfc2c9c012bed6a0793f4ecf2ca8e7ba01 https://huggingface.co/zai-org/CogVideoX-2b/tree/1137dacfc2c9c012bed6a0793f4ecf2ca8e7ba01" - ], + "requiredAttribution": [], "assetLicense": "Apache-2.0", - "reviewedBy": "MoDiff workspace maintainer", - "reviewedAt": "2026-11-25", - "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "ffeaa41a5c94b59135d2cdb15a5c7f79f073c15fd78792ce00a157398ab15d59", - "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", - "provenanceTemplateId": "cogvideox_red_tram_model_railway" + "reviewedBy": "Codex (technical metadata); sourav-das (underlying exact-file rights and publication approval)", + "reviewedAt": "2026-10-31", + "reviewClass": "technical-derivation-of-human-approved-media", + "humanApprovalPacketSHA256": "a55745498d9c767d581d947b90b12ad4308e5f95b870224ef67107d5894f2499", + "humanApprovalScope": "Exact source images, authored mask and SHA-bound review packet. Numeric quality scores are the AI assessment, not human-supplied scores. The metadata is project-authored; it introduces no new third-party media rights." }, { - "path": "template-gallery/reviews/cogvideox_red_tram_model_railway.retained-template-provenance.json", - "sha256": "sha256:bytes:71ff0983139861b9a21d9b2882974bb5e96d11903563df161578818d795a1290", + "path": "template-gallery/reviews/flux3_klein_base_fp8r512_raw_coordinate_prompt.reviewed-provenance.json", + "sha256": "sha256:bytes:e5684e876125a01c342b522b2a0d8350ae978f6543ccdfcaf56ec2011ccebb5f", "publishDecision": "approved", "holdReason": null, - "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", - "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/zai-org/CogVideoX-2b/tree/1137dacfc2c9c012bed6a0793f4ecf2ca8e7ba01", - "sourceRevision": "zai-org/CogVideoX-2b@1137dacfc2c9c012bed6a0793f4ecf2ca8e7ba01", - "sourceLicense": "MoDiff-authored Gallery metadata", - "modelTerms": [ - "Publisher model terms at https://huggingface.co/zai-org/CogVideoX-2b/tree/1137dacfc2c9c012bed6a0793f4ecf2ca8e7ba01" - ], + "creatorOrRightsholder": "sourav-das / MoDiff project maintainers", + "creationMethod": "MoDiff-authored technical provenance or quality metadata derived from the explicitly approved source-media packet", + "sourceUrl": null, + "sourceRevision": null, + "sourceLicense": "Apache-2.0 project-authored metadata; image/model terms remain in their own per-file records", + "modelTerms": [], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], - "requiredAttribution": [ - "zai-org/CogVideoX-2b@1137dacfc2c9c012bed6a0793f4ecf2ca8e7ba01 https://huggingface.co/zai-org/CogVideoX-2b/tree/1137dacfc2c9c012bed6a0793f4ecf2ca8e7ba01" - ], + "requiredAttribution": [], "assetLicense": "Apache-2.0", - "reviewedBy": "MoDiff workspace maintainer", - "reviewedAt": "2026-11-25", - "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "ffeaa41a5c94b59135d2cdb15a5c7f79f073c15fd78792ce00a157398ab15d59", - "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", - "provenanceTemplateId": "cogvideox_red_tram_model_railway" + "reviewedBy": "Codex (technical metadata); sourav-das (underlying exact-file rights and publication approval)", + "reviewedAt": "2026-10-31", + "reviewClass": "technical-derivation-of-human-approved-media", + "humanApprovalPacketSHA256": "a55745498d9c767d581d947b90b12ad4308e5f95b870224ef67107d5894f2499", + "humanApprovalScope": "Exact source images, authored mask and SHA-bound review packet. Numeric quality scores are the AI assessment, not human-supplied scores. The metadata is project-authored; it introduces no new third-party media rights." }, { - "path": "template-gallery/reviews/copper_hour_dunes.original-provenance.json", - "sha256": "sha256:bytes:6223329bd7a1a962703aefba1379c33dae7f57daa40a09aa8e77c1cdd05b099c", + "path": "template-gallery/reviews/flux3_klein_base_fp8r512_single_reference_edit.quality-review.json", + "sha256": "sha256:bytes:f81ca736173a93bb214088dda9879efd933675799244f363506770202ffc80e0", "publishDecision": "approved", "holdReason": null, - "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", - "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/Photoroom/prx-512-t2i-sft/tree/2996423bc26e8eaca48774fac1797484214dfea0", - "sourceRevision": "Photoroom/prx-512-t2i-sft@2996423bc26e8eaca48774fac1797484214dfea0", - "sourceLicense": "MoDiff-authored Gallery metadata", + "creatorOrRightsholder": "sourav-das / MoDiff project maintainers", + "creationMethod": "MoDiff-authored technical provenance or quality metadata derived from the explicitly approved source-media packet", + "sourceUrl": null, + "sourceRevision": null, + "sourceLicense": "Apache-2.0 project-authored metadata; image/model terms remain in their own per-file records", "modelTerms": [ - "apache-2.0. https://huggingface.co/Photoroom/prx-512-t2i-sft/tree/2996423bc26e8eaca48774fac1797484214dfea0" + "AI-assisted technical quality assessment authored in Codex for this project; no model weights or additional generated media are included." ], - "aiGenerated": false, + "aiGenerated": true, "humanLikenessConsent": "not-applicable", "marks": [], - "requiredAttribution": [ - "Photoroom/prx-512-t2i-sft@2996423bc26e8eaca48774fac1797484214dfea0 https://huggingface.co/Photoroom/prx-512-t2i-sft/tree/2996423bc26e8eaca48774fac1797484214dfea0" - ], + "requiredAttribution": [], "assetLicense": "Apache-2.0", - "reviewedBy": "MoDiff workspace maintainer", - "reviewedAt": "2026-11-25", - "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", - "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", - "provenanceTemplateId": "copper_hour_dunes" + "reviewedBy": "Codex (technical metadata); sourav-das (underlying exact-file rights and publication approval)", + "reviewedAt": "2026-10-31", + "reviewClass": "technical-derivation-of-human-approved-media", + "humanApprovalPacketSHA256": "a55745498d9c767d581d947b90b12ad4308e5f95b870224ef67107d5894f2499", + "humanApprovalScope": "Exact source images, authored mask and SHA-bound review packet. Numeric quality scores are the AI assessment, not human-supplied scores. The metadata is project-authored; it introduces no new third-party media rights." }, { - "path": "template-gallery/reviews/copper_hour_dunes.original-review.json", - "sha256": "sha256:bytes:1da7406a3792d864c6aa0e010203a15d608a2f85372e530aabdeabfd7dc7e529", + "path": "template-gallery/reviews/flux3_klein_base_fp8r512_single_reference_edit.reviewed-provenance.json", + "sha256": "sha256:bytes:145688ff7654e0f2b058caf1e3cdc7f4621cd160bc57967529fbfc6deba3e55f", "publishDecision": "approved", "holdReason": null, - "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", - "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/Photoroom/prx-512-t2i-sft/tree/2996423bc26e8eaca48774fac1797484214dfea0", - "sourceRevision": "Photoroom/prx-512-t2i-sft@2996423bc26e8eaca48774fac1797484214dfea0", - "sourceLicense": "MoDiff-authored Gallery metadata", - "modelTerms": [ - "apache-2.0. https://huggingface.co/Photoroom/prx-512-t2i-sft/tree/2996423bc26e8eaca48774fac1797484214dfea0" - ], + "creatorOrRightsholder": "sourav-das / MoDiff project maintainers", + "creationMethod": "MoDiff-authored technical provenance or quality metadata derived from the explicitly approved source-media packet", + "sourceUrl": null, + "sourceRevision": null, + "sourceLicense": "Apache-2.0 project-authored metadata; image/model terms remain in their own per-file records", + "modelTerms": [], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], - "requiredAttribution": [ - "Photoroom/prx-512-t2i-sft@2996423bc26e8eaca48774fac1797484214dfea0 https://huggingface.co/Photoroom/prx-512-t2i-sft/tree/2996423bc26e8eaca48774fac1797484214dfea0" - ], + "requiredAttribution": [], "assetLicense": "Apache-2.0", - "reviewedBy": "MoDiff workspace maintainer", - "reviewedAt": "2026-11-25", - "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", - "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", - "provenanceTemplateId": "copper_hour_dunes" + "reviewedBy": "Codex (technical metadata); sourav-das (underlying exact-file rights and publication approval)", + "reviewedAt": "2026-10-31", + "reviewClass": "technical-derivation-of-human-approved-media", + "humanApprovalPacketSHA256": "a55745498d9c767d581d947b90b12ad4308e5f95b870224ef67107d5894f2499", + "humanApprovalScope": "Exact source images, authored mask and SHA-bound review packet. Numeric quality scores are the AI assessment, not human-supplied scores. The metadata is project-authored; it introduces no new third-party media rights." }, { - "path": "template-gallery/reviews/copper_hour_dunes.quality-review.json", - "sha256": "sha256:bytes:bc0ce5cb8d1e26c9b3491f5d1653365ca11b5305b25cd32647b08398bf889e8f", + "path": "template-gallery/reviews/flux3_klein_base_fp8r512_text_to_image.quality-review.json", + "sha256": "sha256:bytes:e4db5a6f68664c24496139808737c35843ad013a84ed8c647cb7bda822b3ab55", "publishDecision": "approved", "holdReason": null, - "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", - "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/Photoroom/prx-512-t2i-sft/tree/2996423bc26e8eaca48774fac1797484214dfea0", - "sourceRevision": "Photoroom/prx-512-t2i-sft@2996423bc26e8eaca48774fac1797484214dfea0", - "sourceLicense": "MoDiff-authored Gallery metadata", + "creatorOrRightsholder": "sourav-das / MoDiff project maintainers", + "creationMethod": "MoDiff-authored technical provenance or quality metadata derived from the explicitly approved source-media packet", + "sourceUrl": null, + "sourceRevision": null, + "sourceLicense": "Apache-2.0 project-authored metadata; image/model terms remain in their own per-file records", "modelTerms": [ - "apache-2.0. https://huggingface.co/Photoroom/prx-512-t2i-sft/tree/2996423bc26e8eaca48774fac1797484214dfea0" + "AI-assisted technical quality assessment authored in Codex for this project; no model weights or additional generated media are included." ], - "aiGenerated": false, + "aiGenerated": true, "humanLikenessConsent": "not-applicable", "marks": [], - "requiredAttribution": [ - "Photoroom/prx-512-t2i-sft@2996423bc26e8eaca48774fac1797484214dfea0 https://huggingface.co/Photoroom/prx-512-t2i-sft/tree/2996423bc26e8eaca48774fac1797484214dfea0" - ], + "requiredAttribution": [], "assetLicense": "Apache-2.0", - "reviewedBy": "MoDiff workspace maintainer", - "reviewedAt": "2026-11-25", - "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", - "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", - "provenanceTemplateId": "copper_hour_dunes" + "reviewedBy": "Codex (technical metadata); sourav-das (underlying exact-file rights and publication approval)", + "reviewedAt": "2026-10-31", + "reviewClass": "technical-derivation-of-human-approved-media", + "humanApprovalPacketSHA256": "a55745498d9c767d581d947b90b12ad4308e5f95b870224ef67107d5894f2499", + "humanApprovalScope": "Exact source images, authored mask and SHA-bound review packet. Numeric quality scores are the AI assessment, not human-supplied scores. The metadata is project-authored; it introduces no new third-party media rights." }, { - "path": "template-gallery/reviews/copper_hour_dunes.retained-template-provenance.json", - "sha256": "sha256:bytes:b1d27bc198b128e1085d6b920a62dff73ed1684735c0d9b7eefbd28ab52d7e5b", + "path": "template-gallery/reviews/flux3_klein_base_fp8r512_text_to_image.reviewed-provenance.json", + "sha256": "sha256:bytes:2db502f5981665759b16abab179f12ae0093312c5bc99fcc33bb346bc6d3ff05", "publishDecision": "approved", "holdReason": null, - "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", - "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/Photoroom/prx-512-t2i-sft/tree/2996423bc26e8eaca48774fac1797484214dfea0", - "sourceRevision": "Photoroom/prx-512-t2i-sft@2996423bc26e8eaca48774fac1797484214dfea0", - "sourceLicense": "MoDiff-authored Gallery metadata", - "modelTerms": [ - "apache-2.0. https://huggingface.co/Photoroom/prx-512-t2i-sft/tree/2996423bc26e8eaca48774fac1797484214dfea0" - ], + "creatorOrRightsholder": "sourav-das / MoDiff project maintainers", + "creationMethod": "MoDiff-authored technical provenance or quality metadata derived from the explicitly approved source-media packet", + "sourceUrl": null, + "sourceRevision": null, + "sourceLicense": "Apache-2.0 project-authored metadata; image/model terms remain in their own per-file records", + "modelTerms": [], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], - "requiredAttribution": [ - "Photoroom/prx-512-t2i-sft@2996423bc26e8eaca48774fac1797484214dfea0 https://huggingface.co/Photoroom/prx-512-t2i-sft/tree/2996423bc26e8eaca48774fac1797484214dfea0" - ], + "requiredAttribution": [], "assetLicense": "Apache-2.0", - "reviewedBy": "MoDiff workspace maintainer", - "reviewedAt": "2026-11-25", - "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", - "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", - "provenanceTemplateId": "copper_hour_dunes" + "reviewedBy": "Codex (technical metadata); sourav-das (underlying exact-file rights and publication approval)", + "reviewedAt": "2026-10-31", + "reviewClass": "technical-derivation-of-human-approved-media", + "humanApprovalPacketSHA256": "a55745498d9c767d581d947b90b12ad4308e5f95b870224ef67107d5894f2499", + "humanApprovalScope": "Exact source images, authored mask and SHA-bound review packet. Numeric quality scores are the AI assessment, not human-supplied scores. The metadata is project-authored; it introduces no new third-party media rights." }, { - "path": "template-gallery/reviews/ddim_cifar10_preview.original-provenance.json", - "sha256": "sha256:bytes:8fc838dd4bc701aa0c65e6b2630cc749d05736d23623591e3d1ac5af3d6b93d9", + "path": "template-gallery/reviews/flux3_klein_fp8r512_lora_style.quality-review.json", + "sha256": "sha256:bytes:563cf20531167d3661cecb5e6897bae7d8a1485eff49e7f16c8cd7fef6486f10", "publishDecision": "approved", "holdReason": null, - "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", - "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/google/ddpm-cifar10-32/tree/267b167dc01f0e4e61923ea244e8b988f84deb80", - "sourceRevision": "google/ddpm-cifar10-32@267b167dc01f0e4e61923ea244e8b988f84deb80", - "sourceLicense": "MoDiff-authored Gallery metadata", + "creatorOrRightsholder": "sourav-das / MoDiff project maintainers", + "creationMethod": "MoDiff-authored technical provenance or quality metadata derived from the explicitly approved source-media packet", + "sourceUrl": null, + "sourceRevision": null, + "sourceLicense": "Apache-2.0 project-authored metadata; image/model terms remain in their own per-file records", "modelTerms": [ - "Publisher model terms at https://huggingface.co/google/ddpm-cifar10-32/tree/267b167dc01f0e4e61923ea244e8b988f84deb80" + "AI-assisted technical quality assessment authored in Codex for this project; no model weights or additional generated media are included." ], - "aiGenerated": false, + "aiGenerated": true, "humanLikenessConsent": "not-applicable", "marks": [], - "requiredAttribution": [ - "google/ddpm-cifar10-32@267b167dc01f0e4e61923ea244e8b988f84deb80 https://huggingface.co/google/ddpm-cifar10-32/tree/267b167dc01f0e4e61923ea244e8b988f84deb80" - ], + "requiredAttribution": [], "assetLicense": "Apache-2.0", - "reviewedBy": "MoDiff workspace maintainer", - "reviewedAt": "2026-11-24", - "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "d216f065bdc316366c6183592f657bcfbbd7cb05acd0e510c6b3877fe56bcec2", - "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped six saved cases with model terms retained.", - "provenanceTemplateId": "ddim_cifar10_preview" + "reviewedBy": "Codex (technical metadata); sourav-das (underlying exact-file rights and publication approval)", + "reviewedAt": "2026-10-31", + "reviewClass": "technical-derivation-of-human-approved-media", + "humanApprovalPacketSHA256": "a55745498d9c767d581d947b90b12ad4308e5f95b870224ef67107d5894f2499", + "humanApprovalScope": "Exact source images, authored mask and SHA-bound review packet. Numeric quality scores are the AI assessment, not human-supplied scores. The metadata is project-authored; it introduces no new third-party media rights." }, { - "path": "template-gallery/reviews/ddim_cifar10_preview.original-review.json", - "sha256": "sha256:bytes:5a793d20a7b28f16f07648dce956a5cf5d2ecf8b50d85ca9005f965196102391", + "path": "template-gallery/reviews/flux3_klein_fp8r512_lora_style.reviewed-provenance.json", + "sha256": "sha256:bytes:945f99e2d8c924809a4e9d6f91056ec417715b7db5e06b2ec0d51a016bdc219b", "publishDecision": "approved", "holdReason": null, - "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", - "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/google/ddpm-cifar10-32/tree/267b167dc01f0e4e61923ea244e8b988f84deb80", - "sourceRevision": "google/ddpm-cifar10-32@267b167dc01f0e4e61923ea244e8b988f84deb80", - "sourceLicense": "MoDiff-authored Gallery metadata", - "modelTerms": [ - "Publisher model terms at https://huggingface.co/google/ddpm-cifar10-32/tree/267b167dc01f0e4e61923ea244e8b988f84deb80" - ], + "creatorOrRightsholder": "sourav-das / MoDiff project maintainers", + "creationMethod": "MoDiff-authored technical provenance or quality metadata derived from the explicitly approved source-media packet", + "sourceUrl": null, + "sourceRevision": null, + "sourceLicense": "Apache-2.0 project-authored metadata; image/model terms remain in their own per-file records", + "modelTerms": [], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], - "requiredAttribution": [ - "google/ddpm-cifar10-32@267b167dc01f0e4e61923ea244e8b988f84deb80 https://huggingface.co/google/ddpm-cifar10-32/tree/267b167dc01f0e4e61923ea244e8b988f84deb80" - ], + "requiredAttribution": [], "assetLicense": "Apache-2.0", - "reviewedBy": "MoDiff workspace maintainer", - "reviewedAt": "2026-11-24", - "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "d216f065bdc316366c6183592f657bcfbbd7cb05acd0e510c6b3877fe56bcec2", - "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped six saved cases with model terms retained.", - "provenanceTemplateId": "ddim_cifar10_preview" + "reviewedBy": "Codex (technical metadata); sourav-das (underlying exact-file rights and publication approval)", + "reviewedAt": "2026-10-31", + "reviewClass": "technical-derivation-of-human-approved-media", + "humanApprovalPacketSHA256": "a55745498d9c767d581d947b90b12ad4308e5f95b870224ef67107d5894f2499", + "humanApprovalScope": "Exact source images, authored mask and SHA-bound review packet. Numeric quality scores are the AI assessment, not human-supplied scores. The metadata is project-authored; it introduces no new third-party media rights." }, { - "path": "template-gallery/reviews/ddim_cifar10_preview.quality-review.json", - "sha256": "sha256:bytes:24698d674171ad14c31fba20652e694b1e845214fe802d32cb7d0e42611cb7c2", + "path": "template-gallery/reviews/flux3_klein_fp8r512_multi_reference_edit.quality-review.json", + "sha256": "sha256:bytes:ba9c380fe4ccea2f731999d6aa7d116e4ebf4078c8ddb29ea88f2fee8d37dec9", "publishDecision": "approved", "holdReason": null, - "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", - "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/google/ddpm-cifar10-32/tree/267b167dc01f0e4e61923ea244e8b988f84deb80", - "sourceRevision": "google/ddpm-cifar10-32@267b167dc01f0e4e61923ea244e8b988f84deb80", - "sourceLicense": "MoDiff-authored Gallery metadata", + "creatorOrRightsholder": "sourav-das / MoDiff project maintainers", + "creationMethod": "MoDiff-authored technical provenance or quality metadata derived from the explicitly approved source-media packet", + "sourceUrl": null, + "sourceRevision": null, + "sourceLicense": "Apache-2.0 project-authored metadata; image/model terms remain in their own per-file records", "modelTerms": [ - "Publisher model terms at https://huggingface.co/google/ddpm-cifar10-32/tree/267b167dc01f0e4e61923ea244e8b988f84deb80" + "AI-assisted technical quality assessment authored in Codex for this project; no model weights or additional generated media are included." ], - "aiGenerated": false, + "aiGenerated": true, "humanLikenessConsent": "not-applicable", "marks": [], - "requiredAttribution": [ - "google/ddpm-cifar10-32@267b167dc01f0e4e61923ea244e8b988f84deb80 https://huggingface.co/google/ddpm-cifar10-32/tree/267b167dc01f0e4e61923ea244e8b988f84deb80" - ], + "requiredAttribution": [], "assetLicense": "Apache-2.0", - "reviewedBy": "MoDiff workspace maintainer", - "reviewedAt": "2026-11-24", - "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "d216f065bdc316366c6183592f657bcfbbd7cb05acd0e510c6b3877fe56bcec2", - "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped six saved cases with model terms retained.", - "provenanceTemplateId": "ddim_cifar10_preview" + "reviewedBy": "Codex (technical metadata); sourav-das (underlying exact-file rights and publication approval)", + "reviewedAt": "2026-10-31", + "reviewClass": "technical-derivation-of-human-approved-media", + "humanApprovalPacketSHA256": "a55745498d9c767d581d947b90b12ad4308e5f95b870224ef67107d5894f2499", + "humanApprovalScope": "Exact source images, authored mask and SHA-bound review packet. Numeric quality scores are the AI assessment, not human-supplied scores. The metadata is project-authored; it introduces no new third-party media rights." }, { - "path": "template-gallery/reviews/ddim_cifar10_preview.retained-template-provenance.json", - "sha256": "sha256:bytes:8f2075aff72c4a31ca3e247ce7b1c1c6ebaa8b8f29d7ad7e124555543b7ddfbd", + "path": "template-gallery/reviews/flux3_klein_fp8r512_multi_reference_edit.reviewed-provenance.json", + "sha256": "sha256:bytes:d89ef493877766cc1eb753cc6bdfd9e44dd6a71f33c8969287b4e70b33544f31", "publishDecision": "approved", "holdReason": null, - "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", - "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/google/ddpm-cifar10-32/tree/267b167dc01f0e4e61923ea244e8b988f84deb80", - "sourceRevision": "google/ddpm-cifar10-32@267b167dc01f0e4e61923ea244e8b988f84deb80", - "sourceLicense": "MoDiff-authored Gallery metadata", - "modelTerms": [ - "Publisher model terms at https://huggingface.co/google/ddpm-cifar10-32/tree/267b167dc01f0e4e61923ea244e8b988f84deb80" - ], + "creatorOrRightsholder": "sourav-das / MoDiff project maintainers", + "creationMethod": "MoDiff-authored technical provenance or quality metadata derived from the explicitly approved source-media packet", + "sourceUrl": null, + "sourceRevision": null, + "sourceLicense": "Apache-2.0 project-authored metadata; image/model terms remain in their own per-file records", + "modelTerms": [], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], - "requiredAttribution": [ - "google/ddpm-cifar10-32@267b167dc01f0e4e61923ea244e8b988f84deb80 https://huggingface.co/google/ddpm-cifar10-32/tree/267b167dc01f0e4e61923ea244e8b988f84deb80" - ], + "requiredAttribution": [], "assetLicense": "Apache-2.0", - "reviewedBy": "MoDiff workspace maintainer", - "reviewedAt": "2026-11-24", - "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "d216f065bdc316366c6183592f657bcfbbd7cb05acd0e510c6b3877fe56bcec2", - "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped six saved cases with model terms retained.", - "provenanceTemplateId": "ddim_cifar10_preview" + "reviewedBy": "Codex (technical metadata); sourav-das (underlying exact-file rights and publication approval)", + "reviewedAt": "2026-10-31", + "reviewClass": "technical-derivation-of-human-approved-media", + "humanApprovalPacketSHA256": "a55745498d9c767d581d947b90b12ad4308e5f95b870224ef67107d5894f2499", + "humanApprovalScope": "Exact source images, authored mask and SHA-bound review packet. Numeric quality scores are the AI assessment, not human-supplied scores. The metadata is project-authored; it introduces no new third-party media rights." }, { - "path": "template-gallery/reviews/fast_lora.quality-review.json", - "sha256": "sha256:bytes:96079ed2226e86a0a0686283402a8c4f567809c73d67138afb4d58fc46936a15", + "path": "template-gallery/reviews/flux3_klein_fp8r512_raw_coordinate_prompt.quality-review.json", + "sha256": "sha256:bytes:5b8429b8102aba95b1fc76e8ff0b3ee823a489ae1ae771c5f10b2c92f583ddf5", "publishDecision": "approved", "holdReason": null, - "creatorOrRightsholder": "MoDiff project maintainers", - "creationMethod": "MoDiff-authored technical provenance or quality metadata from the explicitly approved six-image source packet", + "creatorOrRightsholder": "sourav-das / MoDiff project maintainers", + "creationMethod": "MoDiff-authored technical provenance or quality metadata derived from the explicitly approved source-media packet", "sourceUrl": null, "sourceRevision": null, - "sourceLicense": "Apache-2.0 project-authored metadata; generated-media terms remain in their exact per-file records", - "modelTerms": [], - "aiGenerated": false, + "sourceLicense": "Apache-2.0 project-authored metadata; image/model terms remain in their own per-file records", + "modelTerms": [ + "AI-assisted technical quality assessment authored in Codex for this project; no model weights or additional generated media are included." + ], + "aiGenerated": true, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [], "assetLicense": "Apache-2.0", - "reviewedBy": "SOURAV DAS", - "reviewedAt": "2026-11-09", - "reviewClass": "per-file-human-approved-six-z-registration", - "provenanceTemplateId": "fast_lora", - "humanApprovalPacketSHA256": "9b728a5f8535fc1ba3c03d2e2759d7ac795a586fafab51beb1509379ed388934" + "reviewedBy": "Codex (technical metadata); sourav-das (underlying exact-file rights and publication approval)", + "reviewedAt": "2026-10-31", + "reviewClass": "technical-derivation-of-human-approved-media", + "humanApprovalPacketSHA256": "a55745498d9c767d581d947b90b12ad4308e5f95b870224ef67107d5894f2499", + "humanApprovalScope": "Exact source images, authored mask and SHA-bound review packet. Numeric quality scores are the AI assessment, not human-supplied scores. The metadata is project-authored; it introduces no new third-party media rights." }, { - "path": "template-gallery/reviews/fast_lora.reviewed-provenance.json", - "sha256": "sha256:bytes:7a3e3ac94845ad37f5f374c1e808a5ff449b0e5776be72a1891bb2c106fdd722", + "path": "template-gallery/reviews/flux3_klein_fp8r512_raw_coordinate_prompt.reviewed-provenance.json", + "sha256": "sha256:bytes:27ec68baa354642081ee764d33632cafcfeb8477ef05ec6ce1e7ec9d2925d410", "publishDecision": "approved", "holdReason": null, - "creatorOrRightsholder": "MoDiff project maintainers", - "creationMethod": "MoDiff-authored technical provenance or quality metadata from the explicitly approved six-image source packet", + "creatorOrRightsholder": "sourav-das / MoDiff project maintainers", + "creationMethod": "MoDiff-authored technical provenance or quality metadata derived from the explicitly approved source-media packet", "sourceUrl": null, "sourceRevision": null, - "sourceLicense": "Apache-2.0 project-authored metadata; generated-media terms remain in their exact per-file records", + "sourceLicense": "Apache-2.0 project-authored metadata; image/model terms remain in their own per-file records", "modelTerms": [], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [], "assetLicense": "Apache-2.0", - "reviewedBy": "SOURAV DAS", - "reviewedAt": "2026-11-09", - "reviewClass": "per-file-human-approved-six-z-registration", - "provenanceTemplateId": "fast_lora", - "humanApprovalPacketSHA256": "9b728a5f8535fc1ba3c03d2e2759d7ac795a586fafab51beb1509379ed388934" + "reviewedBy": "Codex (technical metadata); sourav-das (underlying exact-file rights and publication approval)", + "reviewedAt": "2026-10-31", + "reviewClass": "technical-derivation-of-human-approved-media", + "humanApprovalPacketSHA256": "a55745498d9c767d581d947b90b12ad4308e5f95b870224ef67107d5894f2499", + "humanApprovalScope": "Exact source images, authored mask and SHA-bound review packet. Numeric quality scores are the AI assessment, not human-supplied scores. The metadata is project-authored; it introduces no new third-party media rights." }, { - "path": "template-gallery/reviews/flowers_after_rain.original-provenance.json", - "sha256": "sha256:bytes:4368cd0ed92243d2cc6b5b628ffabba5e64339eeec153282832b253d68efaa87", + "path": "template-gallery/reviews/flux3_klein_fp8r512_single_reference_edit.quality-review.json", + "sha256": "sha256:bytes:d3af7d89f63eabfd9313ca12b8ec6b644ae14379265e83ecf75aab453c2df4af", "publishDecision": "approved", "holdReason": null, - "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", - "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/ATH-MaaS/Ovis-Image-7B/tree/41be1c5821a92c970d63d7eb595a2fd3fe32b22e", - "sourceRevision": "ATH-MaaS/Ovis-Image-7B@41be1c5821a92c970d63d7eb595a2fd3fe32b22e", - "sourceLicense": "MoDiff-authored Gallery metadata", + "creatorOrRightsholder": "sourav-das / MoDiff project maintainers", + "creationMethod": "MoDiff-authored technical provenance or quality metadata derived from the explicitly approved source-media packet", + "sourceUrl": null, + "sourceRevision": null, + "sourceLicense": "Apache-2.0 project-authored metadata; image/model terms remain in their own per-file records", "modelTerms": [ - "apache-2.0. https://huggingface.co/ATH-MaaS/Ovis-Image-7B/tree/41be1c5821a92c970d63d7eb595a2fd3fe32b22e" + "AI-assisted technical quality assessment authored in Codex for this project; no model weights or additional generated media are included." ], - "aiGenerated": false, + "aiGenerated": true, "humanLikenessConsent": "not-applicable", "marks": [], - "requiredAttribution": [ - "ATH-MaaS/Ovis-Image-7B@41be1c5821a92c970d63d7eb595a2fd3fe32b22e https://huggingface.co/ATH-MaaS/Ovis-Image-7B/tree/41be1c5821a92c970d63d7eb595a2fd3fe32b22e" - ], + "requiredAttribution": [], "assetLicense": "Apache-2.0", - "reviewedBy": "MoDiff workspace maintainer", - "reviewedAt": "2026-11-25", - "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", - "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", - "provenanceTemplateId": "flowers_after_rain" + "reviewedBy": "Codex (technical metadata); sourav-das (underlying exact-file rights and publication approval)", + "reviewedAt": "2026-10-31", + "reviewClass": "technical-derivation-of-human-approved-media", + "humanApprovalPacketSHA256": "a55745498d9c767d581d947b90b12ad4308e5f95b870224ef67107d5894f2499", + "humanApprovalScope": "Exact source images, authored mask and SHA-bound review packet. Numeric quality scores are the AI assessment, not human-supplied scores. The metadata is project-authored; it introduces no new third-party media rights." }, { - "path": "template-gallery/reviews/flowers_after_rain.original-review.json", - "sha256": "sha256:bytes:0dadd907604fdde95baa31bcc981dd87cab836c1b167fc852542982163bbc455", + "path": "template-gallery/reviews/flux3_klein_fp8r512_single_reference_edit.reviewed-provenance.json", + "sha256": "sha256:bytes:bf0f06495f4d9793ebf0f8bc8c4467e6aead1b935bbb5e319b59b92dac3e1b78", "publishDecision": "approved", "holdReason": null, - "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", - "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/ATH-MaaS/Ovis-Image-7B/tree/41be1c5821a92c970d63d7eb595a2fd3fe32b22e", - "sourceRevision": "ATH-MaaS/Ovis-Image-7B@41be1c5821a92c970d63d7eb595a2fd3fe32b22e", - "sourceLicense": "MoDiff-authored Gallery metadata", - "modelTerms": [ - "apache-2.0. https://huggingface.co/ATH-MaaS/Ovis-Image-7B/tree/41be1c5821a92c970d63d7eb595a2fd3fe32b22e" - ], + "creatorOrRightsholder": "sourav-das / MoDiff project maintainers", + "creationMethod": "MoDiff-authored technical provenance or quality metadata derived from the explicitly approved source-media packet", + "sourceUrl": null, + "sourceRevision": null, + "sourceLicense": "Apache-2.0 project-authored metadata; image/model terms remain in their own per-file records", + "modelTerms": [], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], - "requiredAttribution": [ - "ATH-MaaS/Ovis-Image-7B@41be1c5821a92c970d63d7eb595a2fd3fe32b22e https://huggingface.co/ATH-MaaS/Ovis-Image-7B/tree/41be1c5821a92c970d63d7eb595a2fd3fe32b22e" - ], + "requiredAttribution": [], "assetLicense": "Apache-2.0", - "reviewedBy": "MoDiff workspace maintainer", - "reviewedAt": "2026-11-25", - "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", - "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", - "provenanceTemplateId": "flowers_after_rain" + "reviewedBy": "Codex (technical metadata); sourav-das (underlying exact-file rights and publication approval)", + "reviewedAt": "2026-10-31", + "reviewClass": "technical-derivation-of-human-approved-media", + "humanApprovalPacketSHA256": "a55745498d9c767d581d947b90b12ad4308e5f95b870224ef67107d5894f2499", + "humanApprovalScope": "Exact source images, authored mask and SHA-bound review packet. Numeric quality scores are the AI assessment, not human-supplied scores. The metadata is project-authored; it introduces no new third-party media rights." }, { - "path": "template-gallery/reviews/flowers_after_rain.quality-review.json", - "sha256": "sha256:bytes:4dc4ac8e4aa12dc1a9f0d685a3416d1039866c8b52d8d2560a8d3b0364cd5121", + "path": "template-gallery/reviews/flux3_klein_fp8r512_text_to_image.quality-review.json", + "sha256": "sha256:bytes:9c42b9b5987079824364e4749eaee7e9846949c8a8f9142092ac716447bbf063", "publishDecision": "approved", "holdReason": null, - "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", - "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/ATH-MaaS/Ovis-Image-7B/tree/41be1c5821a92c970d63d7eb595a2fd3fe32b22e", - "sourceRevision": "ATH-MaaS/Ovis-Image-7B@41be1c5821a92c970d63d7eb595a2fd3fe32b22e", - "sourceLicense": "MoDiff-authored Gallery metadata", + "creatorOrRightsholder": "sourav-das / MoDiff project maintainers", + "creationMethod": "MoDiff-authored technical provenance or quality metadata derived from the explicitly approved source-media packet", + "sourceUrl": null, + "sourceRevision": null, + "sourceLicense": "Apache-2.0 project-authored metadata; image/model terms remain in their own per-file records", "modelTerms": [ - "apache-2.0. https://huggingface.co/ATH-MaaS/Ovis-Image-7B/tree/41be1c5821a92c970d63d7eb595a2fd3fe32b22e" + "AI-assisted technical quality assessment authored in Codex for this project; no model weights or additional generated media are included." ], - "aiGenerated": false, + "aiGenerated": true, "humanLikenessConsent": "not-applicable", "marks": [], - "requiredAttribution": [ - "ATH-MaaS/Ovis-Image-7B@41be1c5821a92c970d63d7eb595a2fd3fe32b22e https://huggingface.co/ATH-MaaS/Ovis-Image-7B/tree/41be1c5821a92c970d63d7eb595a2fd3fe32b22e" - ], + "requiredAttribution": [], "assetLicense": "Apache-2.0", - "reviewedBy": "MoDiff workspace maintainer", - "reviewedAt": "2026-11-25", - "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", - "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", - "provenanceTemplateId": "flowers_after_rain" + "reviewedBy": "Codex (technical metadata); sourav-das (underlying exact-file rights and publication approval)", + "reviewedAt": "2026-10-31", + "reviewClass": "technical-derivation-of-human-approved-media", + "humanApprovalPacketSHA256": "a55745498d9c767d581d947b90b12ad4308e5f95b870224ef67107d5894f2499", + "humanApprovalScope": "Exact source images, authored mask and SHA-bound review packet. Numeric quality scores are the AI assessment, not human-supplied scores. The metadata is project-authored; it introduces no new third-party media rights." }, { - "path": "template-gallery/reviews/flowers_after_rain.retained-template-provenance.json", - "sha256": "sha256:bytes:5251193aa4454f936e7677ee44b91d30938885e46645007effb8b1de8ea61f4a", + "path": "template-gallery/reviews/flux3_klein_fp8r512_text_to_image.reviewed-provenance.json", + "sha256": "sha256:bytes:bb4186fd1e2fdb16f03bbda92673cbbad1169c0c20a13987775eac45ffcca1d2", "publishDecision": "approved", "holdReason": null, - "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", - "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/ATH-MaaS/Ovis-Image-7B/tree/41be1c5821a92c970d63d7eb595a2fd3fe32b22e", - "sourceRevision": "ATH-MaaS/Ovis-Image-7B@41be1c5821a92c970d63d7eb595a2fd3fe32b22e", - "sourceLicense": "MoDiff-authored Gallery metadata", - "modelTerms": [ - "apache-2.0. https://huggingface.co/ATH-MaaS/Ovis-Image-7B/tree/41be1c5821a92c970d63d7eb595a2fd3fe32b22e" - ], + "creatorOrRightsholder": "sourav-das / MoDiff project maintainers", + "creationMethod": "MoDiff-authored technical provenance or quality metadata derived from the explicitly approved source-media packet", + "sourceUrl": null, + "sourceRevision": null, + "sourceLicense": "Apache-2.0 project-authored metadata; image/model terms remain in their own per-file records", + "modelTerms": [], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], - "requiredAttribution": [ - "ATH-MaaS/Ovis-Image-7B@41be1c5821a92c970d63d7eb595a2fd3fe32b22e https://huggingface.co/ATH-MaaS/Ovis-Image-7B/tree/41be1c5821a92c970d63d7eb595a2fd3fe32b22e" - ], + "requiredAttribution": [], "assetLicense": "Apache-2.0", - "reviewedBy": "MoDiff workspace maintainer", - "reviewedAt": "2026-11-25", - "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", - "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", - "provenanceTemplateId": "flowers_after_rain" + "reviewedBy": "Codex (technical metadata); sourav-das (underlying exact-file rights and publication approval)", + "reviewedAt": "2026-10-31", + "reviewClass": "technical-derivation-of-human-approved-media", + "humanApprovalPacketSHA256": "a55745498d9c767d581d947b90b12ad4308e5f95b870224ef67107d5894f2499", + "humanApprovalScope": "Exact source images, authored mask and SHA-bound review packet. Numeric quality scores are the AI assessment, not human-supplied scores. The metadata is project-authored; it introduces no new third-party media rights." }, { - "path": "template-gallery/reviews/flux1_dev_limestone_studio_scratch_repair.original-provenance.json", - "sha256": "sha256:bytes:876f2fb80e0352d1c5d25648da72ec9324d03e46bad65e42cd487c415d952626", + "path": "template-gallery/reviews/flux_canny_clean_backdrop.original-provenance.json", + "sha256": "sha256:bytes:7936bae847ef1c4e92911b3bede96023c8f2e13a67a43775eea3de2b73715f1d", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/black-forest-labs/FLUX.1-dev/tree/3de623fc3c33e44ffbe2bad470d0f45bccf2eb21", - "sourceRevision": "black-forest-labs/FLUX.1-dev@3de623fc3c33e44ffbe2bad470d0f45bccf2eb21", + "sourceUrl": "https://huggingface.co/black-forest-labs/FLUX.1-Canny-dev/tree/27c3d8bdc17509b47cf4fd9ba25ab1c7508a69a2", + "sourceRevision": "black-forest-labs/FLUX.1-Canny-dev@27c3d8bdc17509b47cf4fd9ba25ab1c7508a69a2", "sourceLicense": "MoDiff-authored Gallery metadata", "modelTerms": [ - "Publisher model terms at https://huggingface.co/black-forest-labs/FLUX.1-dev/tree/3de623fc3c33e44ffbe2bad470d0f45bccf2eb21" + "Publisher model terms at https://huggingface.co/black-forest-labs/FLUX.1-Canny-dev/tree/27c3d8bdc17509b47cf4fd9ba25ab1c7508a69a2" ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "black-forest-labs/FLUX.1-dev@3de623fc3c33e44ffbe2bad470d0f45bccf2eb21 https://huggingface.co/black-forest-labs/FLUX.1-dev/tree/3de623fc3c33e44ffbe2bad470d0f45bccf2eb21" + "black-forest-labs/FLUX.1-Canny-dev@27c3d8bdc17509b47cf4fd9ba25ab1c7508a69a2 https://huggingface.co/black-forest-labs/FLUX.1-Canny-dev/tree/27c3d8bdc17509b47cf4fd9ba25ab1c7508a69a2" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "60b01498a2df5f4e4622cdc2f9a43c83d187820780d2425a19718c13707db501", + "humanApprovalPacketSHA256": "d7e2fd301d16eede3da44cec1811930560ba0d958dfd46d8d0962eb3a22eea63", "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", - "provenanceTemplateId": "flux1_dev_limestone_studio_scratch_repair" + "provenanceTemplateId": "flux_canny_clean_backdrop" }, { - "path": "template-gallery/reviews/flux1_dev_limestone_studio_scratch_repair.original-review.json", - "sha256": "sha256:bytes:9c6d1ea38c006fe11dd5e65d5c82d040e20844d8d38c680b1d45ea189b9e2282", + "path": "template-gallery/reviews/flux_canny_clean_backdrop.original-review.json", + "sha256": "sha256:bytes:d45aba0a147f85b027af25e241062e1ff06bb4036eb8d89d5b2b276c4d1368cd", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/black-forest-labs/FLUX.1-dev/tree/3de623fc3c33e44ffbe2bad470d0f45bccf2eb21", - "sourceRevision": "black-forest-labs/FLUX.1-dev@3de623fc3c33e44ffbe2bad470d0f45bccf2eb21", + "sourceUrl": "https://huggingface.co/black-forest-labs/FLUX.1-Canny-dev/tree/27c3d8bdc17509b47cf4fd9ba25ab1c7508a69a2", + "sourceRevision": "black-forest-labs/FLUX.1-Canny-dev@27c3d8bdc17509b47cf4fd9ba25ab1c7508a69a2", "sourceLicense": "MoDiff-authored Gallery metadata", "modelTerms": [ - "Publisher model terms at https://huggingface.co/black-forest-labs/FLUX.1-dev/tree/3de623fc3c33e44ffbe2bad470d0f45bccf2eb21" + "Publisher model terms at https://huggingface.co/black-forest-labs/FLUX.1-Canny-dev/tree/27c3d8bdc17509b47cf4fd9ba25ab1c7508a69a2" ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "black-forest-labs/FLUX.1-dev@3de623fc3c33e44ffbe2bad470d0f45bccf2eb21 https://huggingface.co/black-forest-labs/FLUX.1-dev/tree/3de623fc3c33e44ffbe2bad470d0f45bccf2eb21" + "black-forest-labs/FLUX.1-Canny-dev@27c3d8bdc17509b47cf4fd9ba25ab1c7508a69a2 https://huggingface.co/black-forest-labs/FLUX.1-Canny-dev/tree/27c3d8bdc17509b47cf4fd9ba25ab1c7508a69a2" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "60b01498a2df5f4e4622cdc2f9a43c83d187820780d2425a19718c13707db501", + "humanApprovalPacketSHA256": "d7e2fd301d16eede3da44cec1811930560ba0d958dfd46d8d0962eb3a22eea63", "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", - "provenanceTemplateId": "flux1_dev_limestone_studio_scratch_repair" + "provenanceTemplateId": "flux_canny_clean_backdrop" }, { - "path": "template-gallery/reviews/flux1_dev_limestone_studio_scratch_repair.quality-review.json", - "sha256": "sha256:bytes:1233ae9bdb89e3599b691f2bc14408f1f9dd762c3db734bb8fd828fce1f040b0", + "path": "template-gallery/reviews/flux_canny_clean_backdrop.quality-review.json", + "sha256": "sha256:bytes:f14973c5ea5b0c681d9b268c6af7cf6e99b703e3496bea6396217366a2834fe9", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/black-forest-labs/FLUX.1-dev/tree/3de623fc3c33e44ffbe2bad470d0f45bccf2eb21", - "sourceRevision": "black-forest-labs/FLUX.1-dev@3de623fc3c33e44ffbe2bad470d0f45bccf2eb21", + "sourceUrl": "https://huggingface.co/black-forest-labs/FLUX.1-Canny-dev/tree/27c3d8bdc17509b47cf4fd9ba25ab1c7508a69a2", + "sourceRevision": "black-forest-labs/FLUX.1-Canny-dev@27c3d8bdc17509b47cf4fd9ba25ab1c7508a69a2", "sourceLicense": "MoDiff-authored Gallery metadata", "modelTerms": [ - "Publisher model terms at https://huggingface.co/black-forest-labs/FLUX.1-dev/tree/3de623fc3c33e44ffbe2bad470d0f45bccf2eb21" + "Publisher model terms at https://huggingface.co/black-forest-labs/FLUX.1-Canny-dev/tree/27c3d8bdc17509b47cf4fd9ba25ab1c7508a69a2" ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "black-forest-labs/FLUX.1-dev@3de623fc3c33e44ffbe2bad470d0f45bccf2eb21 https://huggingface.co/black-forest-labs/FLUX.1-dev/tree/3de623fc3c33e44ffbe2bad470d0f45bccf2eb21" + "black-forest-labs/FLUX.1-Canny-dev@27c3d8bdc17509b47cf4fd9ba25ab1c7508a69a2 https://huggingface.co/black-forest-labs/FLUX.1-Canny-dev/tree/27c3d8bdc17509b47cf4fd9ba25ab1c7508a69a2" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "60b01498a2df5f4e4622cdc2f9a43c83d187820780d2425a19718c13707db501", + "humanApprovalPacketSHA256": "d7e2fd301d16eede3da44cec1811930560ba0d958dfd46d8d0962eb3a22eea63", "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", - "provenanceTemplateId": "flux1_dev_limestone_studio_scratch_repair" + "provenanceTemplateId": "flux_canny_clean_backdrop" }, { - "path": "template-gallery/reviews/flux1_dev_limestone_studio_scratch_repair.retained-template-provenance.json", - "sha256": "sha256:bytes:61e8601aaefcc918f03d5f110d57e8f26cb2149d6034c22fb9c13915ddb70324", + "path": "template-gallery/reviews/flux_canny_clean_backdrop.retained-template-provenance.json", + "sha256": "sha256:bytes:9ddd33a59bfbaa565d73d420d0bb94178a94d1ca498018146307ee223e899a0e", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/black-forest-labs/FLUX.1-dev/tree/3de623fc3c33e44ffbe2bad470d0f45bccf2eb21", - "sourceRevision": "black-forest-labs/FLUX.1-dev@3de623fc3c33e44ffbe2bad470d0f45bccf2eb21", + "sourceUrl": "https://huggingface.co/black-forest-labs/FLUX.1-Canny-dev/tree/27c3d8bdc17509b47cf4fd9ba25ab1c7508a69a2", + "sourceRevision": "black-forest-labs/FLUX.1-Canny-dev@27c3d8bdc17509b47cf4fd9ba25ab1c7508a69a2", "sourceLicense": "MoDiff-authored Gallery metadata", "modelTerms": [ - "Publisher model terms at https://huggingface.co/black-forest-labs/FLUX.1-dev/tree/3de623fc3c33e44ffbe2bad470d0f45bccf2eb21" + "Publisher model terms at https://huggingface.co/black-forest-labs/FLUX.1-Canny-dev/tree/27c3d8bdc17509b47cf4fd9ba25ab1c7508a69a2" ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "black-forest-labs/FLUX.1-dev@3de623fc3c33e44ffbe2bad470d0f45bccf2eb21 https://huggingface.co/black-forest-labs/FLUX.1-dev/tree/3de623fc3c33e44ffbe2bad470d0f45bccf2eb21" + "black-forest-labs/FLUX.1-Canny-dev@27c3d8bdc17509b47cf4fd9ba25ab1c7508a69a2 https://huggingface.co/black-forest-labs/FLUX.1-Canny-dev/tree/27c3d8bdc17509b47cf4fd9ba25ab1c7508a69a2" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "60b01498a2df5f4e4622cdc2f9a43c83d187820780d2425a19718c13707db501", + "humanApprovalPacketSHA256": "d7e2fd301d16eede3da44cec1811930560ba0d958dfd46d8d0962eb3a22eea63", "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", - "provenanceTemplateId": "flux1_dev_limestone_studio_scratch_repair" - }, - { - "path": "template-gallery/reviews/flux2_klein_edit.quality-review.json", - "sha256": "sha256:bytes:9fb22201199f326234b60ad2b1162dd14d3e94cf6e2bd4d00507c26d240aeebe", - "publishDecision": "approved", - "holdReason": null, - "creatorOrRightsholder": "MoDiff project maintainers", - "creationMethod": "MoDiff-authored technical provenance, Gallery manifest or quality review for the two explicitly approved native Windows FLUX.2 Klein images", - "sourceUrl": null, - "sourceRevision": null, - "sourceLicense": "Apache-2.0 project-authored metadata; generated-media terms remain in their exact per-file record", - "modelTerms": [], - "aiGenerated": false, - "humanLikenessConsent": "not-applicable", - "marks": [], - "requiredAttribution": [], - "assetLicense": "Apache-2.0", - "reviewedBy": "SOURAV DAS", - "reviewedAt": "2026-11-10", - "reviewClass": "per-file-human-approved-windows-klein-native-image-registration", - "provenanceTemplateId": "flux2_klein_edit", - "humanApprovalPacketSHA256": "2862dea890936a224953749fccb20cbba222471c43abad480dad091e8437f45a" + "provenanceTemplateId": "flux_canny_clean_backdrop" }, { - "path": "template-gallery/reviews/flux2_klein_edit.reviewed-provenance.json", - "sha256": "sha256:bytes:780517219787eafdce5362cfd9f8cab52f848397edde41b5b91ed9bb3c904462", + "path": "template-gallery/reviews/flux_control_canny.quality-review.json", + "sha256": "sha256:bytes:18fe010ceca23f0e99deb1d854905d52d805c45931b4ab523c364ac36ae594ab", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers", - "creationMethod": "MoDiff-authored technical provenance, Gallery manifest or quality review for the two explicitly approved native Windows FLUX.2 Klein images", + "creationMethod": "MoDiff-authored Gallery manifest, reviewed provenance or quality review for the accepted morning batch", "sourceUrl": null, "sourceRevision": null, "sourceLicense": "Apache-2.0 project-authored metadata; generated-media terms remain in their exact per-file record", @@ -10982,21 +12419,20 @@ "assetLicense": "Apache-2.0", "reviewedBy": "SOURAV DAS", "reviewedAt": "2026-11-10", - "reviewClass": "per-file-human-approved-windows-klein-native-image-registration", - "humanApprovalPacketSHA256": "2862dea890936a224953749fccb20cbba222471c43abad480dad091e8437f45a", - "humanApprovalScope": "The maintainer explicitly approved the proposed 4/5 scores, known limits, exact retained Klein two-reference derivative output, its redacted technical/quality metadata, and permission to make and redistribute this derivative under Apache-2.0. Existing source images and their mixed license records remain unchanged; no other assets or held cases are newly approved.", - "provenanceTemplateId": "flux2_klein_edit" + "reviewClass": "per-file-maintainer-approved-gallery-registration", + "provenanceTemplateId": "flux_control_canny", + "humanApprovalPacketSHA256": "351d122936dc8df9c3fb6217005641dd2cc2ecddc39cd7cd7fadc2939def70b3" }, { - "path": "template-gallery/reviews/flux2_klein_multi_reference.quality-review.json", - "sha256": "sha256:bytes:7f6d97ce71b303302117236ae3c8f3cd047801026a8f808916c69c9008c6c5c5", + "path": "template-gallery/reviews/flux_control_canny.reviewed-provenance.json", + "sha256": "sha256:bytes:de3e003b083c9ecbf1dfae92a5c9a225c963943be0820aba88e24723aecc70b0", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers", - "creationMethod": "MoDiff-authored technical provenance or quality metadata from the explicitly approved retained Klein two-reference source packet", + "creationMethod": "MoDiff-authored Gallery manifest, reviewed provenance or quality review for the accepted morning batch", "sourceUrl": null, "sourceRevision": null, - "sourceLicense": "Apache-2.0 project-authored metadata; generated-media terms remain in their exact per-file records", + "sourceLicense": "Apache-2.0 project-authored metadata; generated-media terms remain in their exact per-file record", "modelTerms": [], "aiGenerated": false, "humanLikenessConsent": "not-applicable", @@ -11004,22 +12440,21 @@ "requiredAttribution": [], "assetLicense": "Apache-2.0", "reviewedBy": "SOURAV DAS", - "reviewedAt": "2026-11-09", - "reviewClass": "per-file-human-approved-klein-derivative-registration", - "provenanceTemplateId": "flux2_klein_multi_reference", - "humanApprovalPacketSHA256": "6110699f001f269b75ee943b96c82d2c0c37cb33ba4c10fdd1a9cd15d4d48042", - "humanApprovalScope": "The maintainer explicitly approved the proposed 4/5 scores, known limits, exact retained Klein two-reference derivative output, its redacted technical/quality metadata, and permission to make and redistribute this derivative under Apache-2.0. Existing source images and their mixed license records remain unchanged; no other assets or held cases are newly approved." + "reviewedAt": "2026-11-10", + "reviewClass": "per-file-maintainer-approved-gallery-registration", + "provenanceTemplateId": "flux_control_canny", + "humanApprovalPacketSHA256": "351d122936dc8df9c3fb6217005641dd2cc2ecddc39cd7cd7fadc2939def70b3" }, { - "path": "template-gallery/reviews/flux2_klein_multi_reference.reviewed-provenance.json", - "sha256": "sha256:bytes:dd9601157dcff562c822db19d08d7c7f7720a1e069945563609e87c7fc52cf77", + "path": "template-gallery/reviews/flux_depth_control.quality-review.json", + "sha256": "sha256:bytes:cfa61450e6b63ad91cdba6b5d17c8ee316db1ce6005b19569595e173c9800daf", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers", - "creationMethod": "MoDiff-authored technical provenance or quality metadata from the explicitly approved retained Klein two-reference source packet", + "creationMethod": "MoDiff-authored Gallery manifest, reviewed provenance or quality review for the accepted morning batch", "sourceUrl": null, "sourceRevision": null, - "sourceLicense": "Apache-2.0 project-authored metadata; generated-media terms remain in their exact per-file records", + "sourceLicense": "Apache-2.0 project-authored metadata; generated-media terms remain in their exact per-file record", "modelTerms": [], "aiGenerated": false, "humanLikenessConsent": "not-applicable", @@ -11027,19 +12462,18 @@ "requiredAttribution": [], "assetLicense": "Apache-2.0", "reviewedBy": "SOURAV DAS", - "reviewedAt": "2026-11-09", - "reviewClass": "per-file-human-approved-klein-derivative-registration", - "provenanceTemplateId": "flux2_klein_multi_reference", - "humanApprovalPacketSHA256": "6110699f001f269b75ee943b96c82d2c0c37cb33ba4c10fdd1a9cd15d4d48042", - "humanApprovalScope": "The maintainer explicitly approved the proposed 4/5 scores, known limits, exact retained Klein two-reference derivative output, its redacted technical/quality metadata, and permission to make and redistribute this derivative under Apache-2.0. Existing source images and their mixed license records remain unchanged; no other assets or held cases are newly approved." + "reviewedAt": "2026-11-10", + "reviewClass": "per-file-maintainer-approved-gallery-registration", + "provenanceTemplateId": "flux_depth_control", + "humanApprovalPacketSHA256": "351d122936dc8df9c3fb6217005641dd2cc2ecddc39cd7cd7fadc2939def70b3" }, { - "path": "template-gallery/reviews/flux2_klein_text_to_image.quality-review.json", - "sha256": "sha256:bytes:2a2f12b34c26df960805a7fcac925e8f36894326f271f20920f720e3b72499ac", + "path": "template-gallery/reviews/flux_depth_control.reviewed-provenance.json", + "sha256": "sha256:bytes:845284bdb0898bb02ddd178e1de0c4b24e2281ae8f84c15eb09de2798abfcf79", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers", - "creationMethod": "MoDiff-authored technical provenance, Gallery manifest or quality review for the two explicitly approved native Windows FLUX.2 Klein images", + "creationMethod": "MoDiff-authored Gallery manifest, reviewed provenance or quality review for the accepted morning batch", "sourceUrl": null, "sourceRevision": null, "sourceLicense": "Apache-2.0 project-authored metadata; generated-media terms remain in their exact per-file record", @@ -11051,495 +12485,579 @@ "assetLicense": "Apache-2.0", "reviewedBy": "SOURAV DAS", "reviewedAt": "2026-11-10", - "reviewClass": "per-file-human-approved-windows-klein-native-image-registration", - "provenanceTemplateId": "flux2_klein_text_to_image", - "humanApprovalPacketSHA256": "2862dea890936a224953749fccb20cbba222471c43abad480dad091e8437f45a" + "reviewClass": "per-file-maintainer-approved-gallery-registration", + "provenanceTemplateId": "flux_depth_control", + "humanApprovalPacketSHA256": "351d122936dc8df9c3fb6217005641dd2cc2ecddc39cd7cd7fadc2939def70b3" }, { - "path": "template-gallery/reviews/flux2_klein_text_to_image.reviewed-provenance.json", - "sha256": "sha256:bytes:e24076267505e368ca3f117c3147640dd731493d23ab2cdb32e9581c27b6c366", + "path": "template-gallery/reviews/flux_depth_marine_bow_repair.original-provenance.json", + "sha256": "sha256:bytes:6f4297f6c64a1fad1390983a37e4015f055f1c9b57b3027b7a5d8f5f21548d21", "publishDecision": "approved", "holdReason": null, - "creatorOrRightsholder": "MoDiff project maintainers", - "creationMethod": "MoDiff-authored technical provenance, Gallery manifest or quality review for the two explicitly approved native Windows FLUX.2 Klein images", - "sourceUrl": null, - "sourceRevision": null, - "sourceLicense": "Apache-2.0 project-authored metadata; generated-media terms remain in their exact per-file record", - "modelTerms": [], + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/black-forest-labs/FLUX.1-Depth-dev/tree/fb5e9b1bae41b8c8adcea4ea2a87b74dd298f07a", + "sourceRevision": "black-forest-labs/FLUX.1-Depth-dev@fb5e9b1bae41b8c8adcea4ea2a87b74dd298f07a", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "Publisher model terms at https://huggingface.co/black-forest-labs/FLUX.1-Depth-dev/tree/fb5e9b1bae41b8c8adcea4ea2a87b74dd298f07a" + ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], - "requiredAttribution": [], + "requiredAttribution": [ + "black-forest-labs/FLUX.1-Depth-dev@fb5e9b1bae41b8c8adcea4ea2a87b74dd298f07a https://huggingface.co/black-forest-labs/FLUX.1-Depth-dev/tree/fb5e9b1bae41b8c8adcea4ea2a87b74dd298f07a" + ], "assetLicense": "Apache-2.0", - "reviewedBy": "SOURAV DAS", - "reviewedAt": "2026-11-10", - "reviewClass": "per-file-human-approved-windows-klein-native-image-registration", - "provenanceTemplateId": "flux2_klein_text_to_image", - "humanApprovalPacketSHA256": "2862dea890936a224953749fccb20cbba222471c43abad480dad091e8437f45a" + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "d7e2fd301d16eede3da44cec1811930560ba0d958dfd46d8d0962eb3a22eea63", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "flux_depth_marine_bow_repair" }, { - "path": "template-gallery/reviews/flux3_klein_base_fp8r512_lora_style.quality-review.json", - "sha256": "sha256:bytes:6ecaa3d253c60a36cfa0129575fda00de91b7259d6d5d7aaf7a1eafc1c1539fb", + "path": "template-gallery/reviews/flux_depth_marine_bow_repair.original-review.json", + "sha256": "sha256:bytes:2bc453fab2b78d2814c146229b2983eb25f462f0aa7f0c887a69be55d36d0849", "publishDecision": "approved", "holdReason": null, - "creatorOrRightsholder": "sourav-das / MoDiff project maintainers", - "creationMethod": "MoDiff-authored technical provenance or quality metadata derived from the explicitly approved source-media packet", - "sourceUrl": null, - "sourceRevision": null, - "sourceLicense": "Apache-2.0 project-authored metadata; image/model terms remain in their own per-file records", + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/black-forest-labs/FLUX.1-Depth-dev/tree/fb5e9b1bae41b8c8adcea4ea2a87b74dd298f07a", + "sourceRevision": "black-forest-labs/FLUX.1-Depth-dev@fb5e9b1bae41b8c8adcea4ea2a87b74dd298f07a", + "sourceLicense": "MoDiff-authored Gallery metadata", "modelTerms": [ - "AI-assisted technical quality assessment authored in Codex for this project; no model weights or additional generated media are included." + "Publisher model terms at https://huggingface.co/black-forest-labs/FLUX.1-Depth-dev/tree/fb5e9b1bae41b8c8adcea4ea2a87b74dd298f07a" ], - "aiGenerated": true, + "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], - "requiredAttribution": [], + "requiredAttribution": [ + "black-forest-labs/FLUX.1-Depth-dev@fb5e9b1bae41b8c8adcea4ea2a87b74dd298f07a https://huggingface.co/black-forest-labs/FLUX.1-Depth-dev/tree/fb5e9b1bae41b8c8adcea4ea2a87b74dd298f07a" + ], "assetLicense": "Apache-2.0", - "reviewedBy": "Codex (technical metadata); sourav-das (underlying exact-file rights and publication approval)", - "reviewedAt": "2026-10-31", - "reviewClass": "technical-derivation-of-human-approved-media", - "humanApprovalPacketSHA256": "a55745498d9c767d581d947b90b12ad4308e5f95b870224ef67107d5894f2499", - "humanApprovalScope": "Exact source images, authored mask and SHA-bound review packet. Numeric quality scores are the AI assessment, not human-supplied scores. The metadata is project-authored; it introduces no new third-party media rights." + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "d7e2fd301d16eede3da44cec1811930560ba0d958dfd46d8d0962eb3a22eea63", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "flux_depth_marine_bow_repair" }, { - "path": "template-gallery/reviews/flux3_klein_base_fp8r512_lora_style.reviewed-provenance.json", - "sha256": "sha256:bytes:bf2a88219068ec3c78bf3ab9f847f2c80d7e78035d574dbccc8d48c9c979bdc6", + "path": "template-gallery/reviews/flux_depth_marine_bow_repair.quality-review.json", + "sha256": "sha256:bytes:191b266ccc8742d66c753b8cae2dfefd06dd007aad43591dc5fc544711be9a3e", "publishDecision": "approved", "holdReason": null, - "creatorOrRightsholder": "sourav-das / MoDiff project maintainers", - "creationMethod": "MoDiff-authored technical provenance or quality metadata derived from the explicitly approved source-media packet", - "sourceUrl": null, - "sourceRevision": null, - "sourceLicense": "Apache-2.0 project-authored metadata; image/model terms remain in their own per-file records", - "modelTerms": [], + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/black-forest-labs/FLUX.1-Depth-dev/tree/fb5e9b1bae41b8c8adcea4ea2a87b74dd298f07a", + "sourceRevision": "black-forest-labs/FLUX.1-Depth-dev@fb5e9b1bae41b8c8adcea4ea2a87b74dd298f07a", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "Publisher model terms at https://huggingface.co/black-forest-labs/FLUX.1-Depth-dev/tree/fb5e9b1bae41b8c8adcea4ea2a87b74dd298f07a" + ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], - "requiredAttribution": [], + "requiredAttribution": [ + "black-forest-labs/FLUX.1-Depth-dev@fb5e9b1bae41b8c8adcea4ea2a87b74dd298f07a https://huggingface.co/black-forest-labs/FLUX.1-Depth-dev/tree/fb5e9b1bae41b8c8adcea4ea2a87b74dd298f07a" + ], "assetLicense": "Apache-2.0", - "reviewedBy": "Codex (technical metadata); sourav-das (underlying exact-file rights and publication approval)", - "reviewedAt": "2026-10-31", - "reviewClass": "technical-derivation-of-human-approved-media", - "humanApprovalPacketSHA256": "a55745498d9c767d581d947b90b12ad4308e5f95b870224ef67107d5894f2499", - "humanApprovalScope": "Exact source images, authored mask and SHA-bound review packet. Numeric quality scores are the AI assessment, not human-supplied scores. The metadata is project-authored; it introduces no new third-party media rights." + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "d7e2fd301d16eede3da44cec1811930560ba0d958dfd46d8d0962eb3a22eea63", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "flux_depth_marine_bow_repair" }, { - "path": "template-gallery/reviews/flux3_klein_base_fp8r512_multi_reference_edit.quality-review.json", - "sha256": "sha256:bytes:0666e990cc08d4014f2f913674e9637a86e4f62fee681de1287c949a6a7dcb5a", + "path": "template-gallery/reviews/flux_depth_marine_bow_repair.retained-template-provenance.json", + "sha256": "sha256:bytes:93addd088b5f77d730cd7791c03326143216fe0f59ab07b81f5a5ec8b4ca7799", "publishDecision": "approved", "holdReason": null, - "creatorOrRightsholder": "sourav-das / MoDiff project maintainers", - "creationMethod": "MoDiff-authored technical provenance or quality metadata derived from the explicitly approved source-media packet", - "sourceUrl": null, - "sourceRevision": null, - "sourceLicense": "Apache-2.0 project-authored metadata; image/model terms remain in their own per-file records", + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/black-forest-labs/FLUX.1-Depth-dev/tree/fb5e9b1bae41b8c8adcea4ea2a87b74dd298f07a", + "sourceRevision": "black-forest-labs/FLUX.1-Depth-dev@fb5e9b1bae41b8c8adcea4ea2a87b74dd298f07a", + "sourceLicense": "MoDiff-authored Gallery metadata", "modelTerms": [ - "AI-assisted technical quality assessment authored in Codex for this project; no model weights or additional generated media are included." + "Publisher model terms at https://huggingface.co/black-forest-labs/FLUX.1-Depth-dev/tree/fb5e9b1bae41b8c8adcea4ea2a87b74dd298f07a" ], - "aiGenerated": true, + "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], - "requiredAttribution": [], + "requiredAttribution": [ + "black-forest-labs/FLUX.1-Depth-dev@fb5e9b1bae41b8c8adcea4ea2a87b74dd298f07a https://huggingface.co/black-forest-labs/FLUX.1-Depth-dev/tree/fb5e9b1bae41b8c8adcea4ea2a87b74dd298f07a" + ], "assetLicense": "Apache-2.0", - "reviewedBy": "Codex (technical metadata); sourav-das (underlying exact-file rights and publication approval)", - "reviewedAt": "2026-10-31", - "reviewClass": "technical-derivation-of-human-approved-media", - "humanApprovalPacketSHA256": "a55745498d9c767d581d947b90b12ad4308e5f95b870224ef67107d5894f2499", - "humanApprovalScope": "Exact source images, authored mask and SHA-bound review packet. Numeric quality scores are the AI assessment, not human-supplied scores. The metadata is project-authored; it introduces no new third-party media rights." + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "d7e2fd301d16eede3da44cec1811930560ba0d958dfd46d8d0962eb3a22eea63", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "flux_depth_marine_bow_repair" }, { - "path": "template-gallery/reviews/flux3_klein_base_fp8r512_multi_reference_edit.reviewed-provenance.json", - "sha256": "sha256:bytes:df83c15df43ca7b2739db3032671014c3dea0cb0bd1cd4acb15df5dcccf443bd", + "path": "template-gallery/reviews/flux_dev_expert_text_to_image.quality-review.json", + "sha256": "sha256:bytes:4b7d81b2a342e898519cfef4ea3ada3325831a7a0c93b0966a42d59f74999715", "publishDecision": "approved", "holdReason": null, - "creatorOrRightsholder": "sourav-das / MoDiff project maintainers", - "creationMethod": "MoDiff-authored technical provenance or quality metadata derived from the explicitly approved source-media packet", + "creatorOrRightsholder": "MoDiff project maintainers", + "creationMethod": "MoDiff-authored Gallery manifest, reviewed provenance or quality review for the accepted morning batch", "sourceUrl": null, "sourceRevision": null, - "sourceLicense": "Apache-2.0 project-authored metadata; image/model terms remain in their own per-file records", + "sourceLicense": "Apache-2.0 project-authored metadata; generated-media terms remain in their exact per-file record", "modelTerms": [], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [], "assetLicense": "Apache-2.0", - "reviewedBy": "Codex (technical metadata); sourav-das (underlying exact-file rights and publication approval)", - "reviewedAt": "2026-10-31", - "reviewClass": "technical-derivation-of-human-approved-media", - "humanApprovalPacketSHA256": "a55745498d9c767d581d947b90b12ad4308e5f95b870224ef67107d5894f2499", - "humanApprovalScope": "Exact source images, authored mask and SHA-bound review packet. Numeric quality scores are the AI assessment, not human-supplied scores. The metadata is project-authored; it introduces no new third-party media rights." + "reviewedBy": "SOURAV DAS", + "reviewedAt": "2026-11-10", + "reviewClass": "per-file-maintainer-approved-gallery-registration", + "provenanceTemplateId": "flux_dev_expert_text_to_image", + "humanApprovalPacketSHA256": "351d122936dc8df9c3fb6217005641dd2cc2ecddc39cd7cd7fadc2939def70b3" }, { - "path": "template-gallery/reviews/flux3_klein_base_fp8r512_raw_coordinate_prompt.quality-review.json", - "sha256": "sha256:bytes:5a40f1c4b7c13f8678de7fdd41bf090c39071fc884c2e4dfed6c1f03e0ecb09c", + "path": "template-gallery/reviews/flux_dev_expert_text_to_image.reviewed-provenance.json", + "sha256": "sha256:bytes:56dd0d53dd62f58ff085722eb7266a7c4e10e591b0a78a9408c3b2061e656182", "publishDecision": "approved", "holdReason": null, - "creatorOrRightsholder": "sourav-das / MoDiff project maintainers", - "creationMethod": "MoDiff-authored technical provenance or quality metadata derived from the explicitly approved source-media packet", + "creatorOrRightsholder": "MoDiff project maintainers", + "creationMethod": "MoDiff-authored Gallery manifest, reviewed provenance or quality review for the accepted morning batch", "sourceUrl": null, "sourceRevision": null, - "sourceLicense": "Apache-2.0 project-authored metadata; image/model terms remain in their own per-file records", - "modelTerms": [ - "AI-assisted technical quality assessment authored in Codex for this project; no model weights or additional generated media are included." - ], - "aiGenerated": true, + "sourceLicense": "Apache-2.0 project-authored metadata; generated-media terms remain in their exact per-file record", + "modelTerms": [], + "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [], "assetLicense": "Apache-2.0", - "reviewedBy": "Codex (technical metadata); sourav-das (underlying exact-file rights and publication approval)", - "reviewedAt": "2026-10-31", - "reviewClass": "technical-derivation-of-human-approved-media", - "humanApprovalPacketSHA256": "a55745498d9c767d581d947b90b12ad4308e5f95b870224ef67107d5894f2499", - "humanApprovalScope": "Exact source images, authored mask and SHA-bound review packet. Numeric quality scores are the AI assessment, not human-supplied scores. The metadata is project-authored; it introduces no new third-party media rights." + "reviewedBy": "SOURAV DAS", + "reviewedAt": "2026-11-10", + "reviewClass": "per-file-maintainer-approved-gallery-registration", + "provenanceTemplateId": "flux_dev_expert_text_to_image", + "humanApprovalPacketSHA256": "351d122936dc8df9c3fb6217005641dd2cc2ecddc39cd7cd7fadc2939def70b3" }, { - "path": "template-gallery/reviews/flux3_klein_base_fp8r512_raw_coordinate_prompt.reviewed-provenance.json", - "sha256": "sha256:bytes:e5684e876125a01c342b522b2a0d8350ae978f6543ccdfcaf56ec2011ccebb5f", + "path": "template-gallery/reviews/flux_fill_inpaint.quality-review.json", + "sha256": "sha256:bytes:118df046dca340d5130af71eefea56e4d0182c2beb9b01ac4de9da102fb002ff", "publishDecision": "approved", "holdReason": null, - "creatorOrRightsholder": "sourav-das / MoDiff project maintainers", - "creationMethod": "MoDiff-authored technical provenance or quality metadata derived from the explicitly approved source-media packet", + "creatorOrRightsholder": "MoDiff project maintainers", + "creationMethod": "Project-authored Gallery manifest, native provenance or accepted quality review", "sourceUrl": null, "sourceRevision": null, - "sourceLicense": "Apache-2.0 project-authored metadata; image/model terms remain in their own per-file records", + "sourceLicense": "Apache-2.0 project-authored metadata", "modelTerms": [], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [], "assetLicense": "Apache-2.0", - "reviewedBy": "Codex (technical metadata); sourav-das (underlying exact-file rights and publication approval)", - "reviewedAt": "2026-10-31", - "reviewClass": "technical-derivation-of-human-approved-media", - "humanApprovalPacketSHA256": "a55745498d9c767d581d947b90b12ad4308e5f95b870224ef67107d5894f2499", - "humanApprovalScope": "Exact source images, authored mask and SHA-bound review packet. Numeric quality scores are the AI assessment, not human-supplied scores. The metadata is project-authored; it introduces no new third-party media rights." + "reviewedBy": "SOURAV DAS", + "reviewedAt": "2026-11-10", + "reviewClass": "per-file-maintainer-accepted-native-gallery-registration", + "provenanceTemplateId": "flux_fill_inpaint", + "humanApprovalPacketSHA256": "73ddf9ea7fc27eccc6b93817809421a008ce0fd2fb3080ffbdc5831a09205304" }, { - "path": "template-gallery/reviews/flux3_klein_base_fp8r512_single_reference_edit.quality-review.json", - "sha256": "sha256:bytes:f81ca736173a93bb214088dda9879efd933675799244f363506770202ffc80e0", + "path": "template-gallery/reviews/flux_fill_inpaint.reviewed-provenance.json", + "sha256": "sha256:bytes:43b64ed1f67a2e36e9d7646eae58bc0aad9b1d49925425f5ebb98a0607577c3d", "publishDecision": "approved", "holdReason": null, - "creatorOrRightsholder": "sourav-das / MoDiff project maintainers", - "creationMethod": "MoDiff-authored technical provenance or quality metadata derived from the explicitly approved source-media packet", + "creatorOrRightsholder": "MoDiff project maintainers", + "creationMethod": "Project-authored Gallery manifest, native provenance or accepted quality review", + "sourceUrl": null, + "sourceRevision": null, + "sourceLicense": "Apache-2.0 project-authored metadata", + "modelTerms": [], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [], + "assetLicense": "Apache-2.0", + "reviewedBy": "SOURAV DAS", + "reviewedAt": "2026-11-10", + "reviewClass": "per-file-maintainer-accepted-native-gallery-registration", + "provenanceTemplateId": "flux_fill_inpaint", + "humanApprovalPacketSHA256": "73ddf9ea7fc27eccc6b93817809421a008ce0fd2fb3080ffbdc5831a09205304" + }, + { + "path": "template-gallery/reviews/flux_fill_outpaint.quality-review.json", + "sha256": "sha256:bytes:cf7d2d52d6d95733fd75be94e96fac1b331e8ad8996d615640123e95d3604edf", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers", + "creationMethod": "MoDiff-authored Gallery manifest, reviewed provenance or quality review for the accepted morning batch", "sourceUrl": null, "sourceRevision": null, - "sourceLicense": "Apache-2.0 project-authored metadata; image/model terms remain in their own per-file records", - "modelTerms": [ - "AI-assisted technical quality assessment authored in Codex for this project; no model weights or additional generated media are included." - ], - "aiGenerated": true, + "sourceLicense": "Apache-2.0 project-authored metadata; generated-media terms remain in their exact per-file record", + "modelTerms": [], + "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [], "assetLicense": "Apache-2.0", - "reviewedBy": "Codex (technical metadata); sourav-das (underlying exact-file rights and publication approval)", - "reviewedAt": "2026-10-31", - "reviewClass": "technical-derivation-of-human-approved-media", - "humanApprovalPacketSHA256": "a55745498d9c767d581d947b90b12ad4308e5f95b870224ef67107d5894f2499", - "humanApprovalScope": "Exact source images, authored mask and SHA-bound review packet. Numeric quality scores are the AI assessment, not human-supplied scores. The metadata is project-authored; it introduces no new third-party media rights." + "reviewedBy": "SOURAV DAS", + "reviewedAt": "2026-11-10", + "reviewClass": "per-file-maintainer-approved-gallery-registration", + "provenanceTemplateId": "flux_fill_outpaint", + "humanApprovalPacketSHA256": "351d122936dc8df9c3fb6217005641dd2cc2ecddc39cd7cd7fadc2939def70b3" }, { - "path": "template-gallery/reviews/flux3_klein_base_fp8r512_single_reference_edit.reviewed-provenance.json", - "sha256": "sha256:bytes:145688ff7654e0f2b058caf1e3cdc7f4621cd160bc57967529fbfc6deba3e55f", + "path": "template-gallery/reviews/flux_fill_outpaint.reviewed-provenance.json", + "sha256": "sha256:bytes:83bd50a5df98a04d55a86ca75b3f39a5d87d11221910a8f2d1cc570dc5cc423c", "publishDecision": "approved", "holdReason": null, - "creatorOrRightsholder": "sourav-das / MoDiff project maintainers", - "creationMethod": "MoDiff-authored technical provenance or quality metadata derived from the explicitly approved source-media packet", + "creatorOrRightsholder": "MoDiff project maintainers", + "creationMethod": "MoDiff-authored Gallery manifest, reviewed provenance or quality review for the accepted morning batch", "sourceUrl": null, "sourceRevision": null, - "sourceLicense": "Apache-2.0 project-authored metadata; image/model terms remain in their own per-file records", + "sourceLicense": "Apache-2.0 project-authored metadata; generated-media terms remain in their exact per-file record", "modelTerms": [], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [], "assetLicense": "Apache-2.0", - "reviewedBy": "Codex (technical metadata); sourav-das (underlying exact-file rights and publication approval)", - "reviewedAt": "2026-10-31", - "reviewClass": "technical-derivation-of-human-approved-media", - "humanApprovalPacketSHA256": "a55745498d9c767d581d947b90b12ad4308e5f95b870224ef67107d5894f2499", - "humanApprovalScope": "Exact source images, authored mask and SHA-bound review packet. Numeric quality scores are the AI assessment, not human-supplied scores. The metadata is project-authored; it introduces no new third-party media rights." + "reviewedBy": "SOURAV DAS", + "reviewedAt": "2026-11-10", + "reviewClass": "per-file-maintainer-approved-gallery-registration", + "provenanceTemplateId": "flux_fill_outpaint", + "humanApprovalPacketSHA256": "351d122936dc8df9c3fb6217005641dd2cc2ecddc39cd7cd7fadc2939def70b3" }, { - "path": "template-gallery/reviews/flux3_klein_base_fp8r512_text_to_image.quality-review.json", - "sha256": "sha256:bytes:e4db5a6f68664c24496139808737c35843ad013a84ed8c647cb7bda822b3ab55", + "path": "template-gallery/reviews/flux_klein_alpine_lake_panorama.original-provenance.json", + "sha256": "sha256:bytes:82e163fa04890d8549972f17c4d863ba445dd9f2f1088199737d534b807c9e97", "publishDecision": "approved", "holdReason": null, - "creatorOrRightsholder": "sourav-das / MoDiff project maintainers", - "creationMethod": "MoDiff-authored technical provenance or quality metadata derived from the explicitly approved source-media packet", - "sourceUrl": null, - "sourceRevision": null, - "sourceLicense": "Apache-2.0 project-authored metadata; image/model terms remain in their own per-file records", + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/black-forest-labs/FLUX.2-klein-4B/tree/e7b7dc27f91deacad38e78976d1f2b499d76a294", + "sourceRevision": "black-forest-labs/FLUX.2-klein-4B@e7b7dc27f91deacad38e78976d1f2b499d76a294", + "sourceLicense": "MoDiff-authored Gallery metadata", "modelTerms": [ - "AI-assisted technical quality assessment authored in Codex for this project; no model weights or additional generated media are included." + "Publisher model terms at https://huggingface.co/black-forest-labs/FLUX.2-klein-4B/tree/e7b7dc27f91deacad38e78976d1f2b499d76a294" ], - "aiGenerated": true, + "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], - "requiredAttribution": [], + "requiredAttribution": [ + "black-forest-labs/FLUX.2-klein-4B@e7b7dc27f91deacad38e78976d1f2b499d76a294 https://huggingface.co/black-forest-labs/FLUX.2-klein-4B/tree/e7b7dc27f91deacad38e78976d1f2b499d76a294" + ], "assetLicense": "Apache-2.0", - "reviewedBy": "Codex (technical metadata); sourav-das (underlying exact-file rights and publication approval)", - "reviewedAt": "2026-10-31", - "reviewClass": "technical-derivation-of-human-approved-media", - "humanApprovalPacketSHA256": "a55745498d9c767d581d947b90b12ad4308e5f95b870224ef67107d5894f2499", - "humanApprovalScope": "Exact source images, authored mask and SHA-bound review packet. Numeric quality scores are the AI assessment, not human-supplied scores. The metadata is project-authored; it introduces no new third-party media rights." + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "60b01498a2df5f4e4622cdc2f9a43c83d187820780d2425a19718c13707db501", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "flux_klein_alpine_lake_panorama" }, { - "path": "template-gallery/reviews/flux3_klein_base_fp8r512_text_to_image.reviewed-provenance.json", - "sha256": "sha256:bytes:2db502f5981665759b16abab179f12ae0093312c5bc99fcc33bb346bc6d3ff05", + "path": "template-gallery/reviews/flux_klein_alpine_lake_panorama.original-review.json", + "sha256": "sha256:bytes:0af53835f9eb84a14dbbd91c1c6527b27d7e2ef05682c5c5a8b9a120599220c7", "publishDecision": "approved", "holdReason": null, - "creatorOrRightsholder": "sourav-das / MoDiff project maintainers", - "creationMethod": "MoDiff-authored technical provenance or quality metadata derived from the explicitly approved source-media packet", - "sourceUrl": null, - "sourceRevision": null, - "sourceLicense": "Apache-2.0 project-authored metadata; image/model terms remain in their own per-file records", - "modelTerms": [], + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/black-forest-labs/FLUX.2-klein-4B/tree/e7b7dc27f91deacad38e78976d1f2b499d76a294", + "sourceRevision": "black-forest-labs/FLUX.2-klein-4B@e7b7dc27f91deacad38e78976d1f2b499d76a294", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "Publisher model terms at https://huggingface.co/black-forest-labs/FLUX.2-klein-4B/tree/e7b7dc27f91deacad38e78976d1f2b499d76a294" + ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], - "requiredAttribution": [], + "requiredAttribution": [ + "black-forest-labs/FLUX.2-klein-4B@e7b7dc27f91deacad38e78976d1f2b499d76a294 https://huggingface.co/black-forest-labs/FLUX.2-klein-4B/tree/e7b7dc27f91deacad38e78976d1f2b499d76a294" + ], "assetLicense": "Apache-2.0", - "reviewedBy": "Codex (technical metadata); sourav-das (underlying exact-file rights and publication approval)", - "reviewedAt": "2026-10-31", - "reviewClass": "technical-derivation-of-human-approved-media", - "humanApprovalPacketSHA256": "a55745498d9c767d581d947b90b12ad4308e5f95b870224ef67107d5894f2499", - "humanApprovalScope": "Exact source images, authored mask and SHA-bound review packet. Numeric quality scores are the AI assessment, not human-supplied scores. The metadata is project-authored; it introduces no new third-party media rights." + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "60b01498a2df5f4e4622cdc2f9a43c83d187820780d2425a19718c13707db501", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "flux_klein_alpine_lake_panorama" }, { - "path": "template-gallery/reviews/flux3_klein_fp8r512_lora_style.quality-review.json", - "sha256": "sha256:bytes:563cf20531167d3661cecb5e6897bae7d8a1485eff49e7f16c8cd7fef6486f10", + "path": "template-gallery/reviews/flux_klein_alpine_lake_panorama.quality-review.json", + "sha256": "sha256:bytes:6903b5b197080a67979212e174d52cf4e68a85773c6b6011f8c8d0b2eb5d0271", "publishDecision": "approved", "holdReason": null, - "creatorOrRightsholder": "sourav-das / MoDiff project maintainers", - "creationMethod": "MoDiff-authored technical provenance or quality metadata derived from the explicitly approved source-media packet", - "sourceUrl": null, - "sourceRevision": null, - "sourceLicense": "Apache-2.0 project-authored metadata; image/model terms remain in their own per-file records", + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/black-forest-labs/FLUX.2-klein-4B/tree/e7b7dc27f91deacad38e78976d1f2b499d76a294", + "sourceRevision": "black-forest-labs/FLUX.2-klein-4B@e7b7dc27f91deacad38e78976d1f2b499d76a294", + "sourceLicense": "MoDiff-authored Gallery metadata", "modelTerms": [ - "AI-assisted technical quality assessment authored in Codex for this project; no model weights or additional generated media are included." + "Publisher model terms at https://huggingface.co/black-forest-labs/FLUX.2-klein-4B/tree/e7b7dc27f91deacad38e78976d1f2b499d76a294" ], - "aiGenerated": true, + "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], - "requiredAttribution": [], + "requiredAttribution": [ + "black-forest-labs/FLUX.2-klein-4B@e7b7dc27f91deacad38e78976d1f2b499d76a294 https://huggingface.co/black-forest-labs/FLUX.2-klein-4B/tree/e7b7dc27f91deacad38e78976d1f2b499d76a294" + ], "assetLicense": "Apache-2.0", - "reviewedBy": "Codex (technical metadata); sourav-das (underlying exact-file rights and publication approval)", - "reviewedAt": "2026-10-31", - "reviewClass": "technical-derivation-of-human-approved-media", - "humanApprovalPacketSHA256": "a55745498d9c767d581d947b90b12ad4308e5f95b870224ef67107d5894f2499", - "humanApprovalScope": "Exact source images, authored mask and SHA-bound review packet. Numeric quality scores are the AI assessment, not human-supplied scores. The metadata is project-authored; it introduces no new third-party media rights." + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "60b01498a2df5f4e4622cdc2f9a43c83d187820780d2425a19718c13707db501", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "flux_klein_alpine_lake_panorama" }, { - "path": "template-gallery/reviews/flux3_klein_fp8r512_lora_style.reviewed-provenance.json", - "sha256": "sha256:bytes:945f99e2d8c924809a4e9d6f91056ec417715b7db5e06b2ec0d51a016bdc219b", + "path": "template-gallery/reviews/flux_klein_alpine_lake_panorama.retained-template-provenance.json", + "sha256": "sha256:bytes:0d74c14cd0dde401464e43f75a8c126b881bbbeb05bf145297ad33d575022aeb", "publishDecision": "approved", "holdReason": null, - "creatorOrRightsholder": "sourav-das / MoDiff project maintainers", - "creationMethod": "MoDiff-authored technical provenance or quality metadata derived from the explicitly approved source-media packet", - "sourceUrl": null, - "sourceRevision": null, - "sourceLicense": "Apache-2.0 project-authored metadata; image/model terms remain in their own per-file records", - "modelTerms": [], + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/black-forest-labs/FLUX.2-klein-4B/tree/e7b7dc27f91deacad38e78976d1f2b499d76a294", + "sourceRevision": "black-forest-labs/FLUX.2-klein-4B@e7b7dc27f91deacad38e78976d1f2b499d76a294", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "Publisher model terms at https://huggingface.co/black-forest-labs/FLUX.2-klein-4B/tree/e7b7dc27f91deacad38e78976d1f2b499d76a294" + ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], - "requiredAttribution": [], + "requiredAttribution": [ + "black-forest-labs/FLUX.2-klein-4B@e7b7dc27f91deacad38e78976d1f2b499d76a294 https://huggingface.co/black-forest-labs/FLUX.2-klein-4B/tree/e7b7dc27f91deacad38e78976d1f2b499d76a294" + ], "assetLicense": "Apache-2.0", - "reviewedBy": "Codex (technical metadata); sourav-das (underlying exact-file rights and publication approval)", - "reviewedAt": "2026-10-31", - "reviewClass": "technical-derivation-of-human-approved-media", - "humanApprovalPacketSHA256": "a55745498d9c767d581d947b90b12ad4308e5f95b870224ef67107d5894f2499", - "humanApprovalScope": "Exact source images, authored mask and SHA-bound review packet. Numeric quality scores are the AI assessment, not human-supplied scores. The metadata is project-authored; it introduces no new third-party media rights." + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "60b01498a2df5f4e4622cdc2f9a43c83d187820780d2425a19718c13707db501", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "flux_klein_alpine_lake_panorama" }, { - "path": "template-gallery/reviews/flux3_klein_fp8r512_multi_reference_edit.quality-review.json", - "sha256": "sha256:bytes:ba9c380fe4ccea2f731999d6aa7d116e4ebf4078c8ddb29ea88f2fee8d37dec9", + "path": "template-gallery/reviews/flux_klein_open_glacial_lake.original-provenance.json", + "sha256": "sha256:bytes:5b7df305704e076244a7d1fbd4e64589e7825ee96a116c0a9a6ef4c16a3231e5", "publishDecision": "approved", "holdReason": null, - "creatorOrRightsholder": "sourav-das / MoDiff project maintainers", - "creationMethod": "MoDiff-authored technical provenance or quality metadata derived from the explicitly approved source-media packet", - "sourceUrl": null, - "sourceRevision": null, - "sourceLicense": "Apache-2.0 project-authored metadata; image/model terms remain in their own per-file records", + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/black-forest-labs/FLUX.2-klein-4B/tree/e7b7dc27f91deacad38e78976d1f2b499d76a294", + "sourceRevision": "black-forest-labs/FLUX.2-klein-4B@e7b7dc27f91deacad38e78976d1f2b499d76a294", + "sourceLicense": "MoDiff-authored Gallery metadata", "modelTerms": [ - "AI-assisted technical quality assessment authored in Codex for this project; no model weights or additional generated media are included." + "Publisher model terms at https://huggingface.co/black-forest-labs/FLUX.2-klein-4B/tree/e7b7dc27f91deacad38e78976d1f2b499d76a294" ], - "aiGenerated": true, + "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], - "requiredAttribution": [], + "requiredAttribution": [ + "black-forest-labs/FLUX.2-klein-4B@e7b7dc27f91deacad38e78976d1f2b499d76a294 https://huggingface.co/black-forest-labs/FLUX.2-klein-4B/tree/e7b7dc27f91deacad38e78976d1f2b499d76a294" + ], "assetLicense": "Apache-2.0", - "reviewedBy": "Codex (technical metadata); sourav-das (underlying exact-file rights and publication approval)", - "reviewedAt": "2026-10-31", - "reviewClass": "technical-derivation-of-human-approved-media", - "humanApprovalPacketSHA256": "a55745498d9c767d581d947b90b12ad4308e5f95b870224ef67107d5894f2499", - "humanApprovalScope": "Exact source images, authored mask and SHA-bound review packet. Numeric quality scores are the AI assessment, not human-supplied scores. The metadata is project-authored; it introduces no new third-party media rights." + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "60b01498a2df5f4e4622cdc2f9a43c83d187820780d2425a19718c13707db501", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "flux_klein_open_glacial_lake" }, { - "path": "template-gallery/reviews/flux3_klein_fp8r512_multi_reference_edit.reviewed-provenance.json", - "sha256": "sha256:bytes:d89ef493877766cc1eb753cc6bdfd9e44dd6a71f33c8969287b4e70b33544f31", + "path": "template-gallery/reviews/flux_klein_open_glacial_lake.original-review.json", + "sha256": "sha256:bytes:127d7ce73ad054114252277de338834612bed27d675c1e48dc377bedb84fb237", "publishDecision": "approved", "holdReason": null, - "creatorOrRightsholder": "sourav-das / MoDiff project maintainers", - "creationMethod": "MoDiff-authored technical provenance or quality metadata derived from the explicitly approved source-media packet", - "sourceUrl": null, - "sourceRevision": null, - "sourceLicense": "Apache-2.0 project-authored metadata; image/model terms remain in their own per-file records", - "modelTerms": [], + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/black-forest-labs/FLUX.2-klein-4B/tree/e7b7dc27f91deacad38e78976d1f2b499d76a294", + "sourceRevision": "black-forest-labs/FLUX.2-klein-4B@e7b7dc27f91deacad38e78976d1f2b499d76a294", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "Publisher model terms at https://huggingface.co/black-forest-labs/FLUX.2-klein-4B/tree/e7b7dc27f91deacad38e78976d1f2b499d76a294" + ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], - "requiredAttribution": [], + "requiredAttribution": [ + "black-forest-labs/FLUX.2-klein-4B@e7b7dc27f91deacad38e78976d1f2b499d76a294 https://huggingface.co/black-forest-labs/FLUX.2-klein-4B/tree/e7b7dc27f91deacad38e78976d1f2b499d76a294" + ], "assetLicense": "Apache-2.0", - "reviewedBy": "Codex (technical metadata); sourav-das (underlying exact-file rights and publication approval)", - "reviewedAt": "2026-10-31", - "reviewClass": "technical-derivation-of-human-approved-media", - "humanApprovalPacketSHA256": "a55745498d9c767d581d947b90b12ad4308e5f95b870224ef67107d5894f2499", - "humanApprovalScope": "Exact source images, authored mask and SHA-bound review packet. Numeric quality scores are the AI assessment, not human-supplied scores. The metadata is project-authored; it introduces no new third-party media rights." + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "60b01498a2df5f4e4622cdc2f9a43c83d187820780d2425a19718c13707db501", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "flux_klein_open_glacial_lake" + }, + { + "path": "template-gallery/reviews/flux_klein_open_glacial_lake.quality-review.json", + "sha256": "sha256:bytes:8fbb74c11639cba4c5ab3fab926e29d8e3c703ba5830fe9305352119e962dd60", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/black-forest-labs/FLUX.2-klein-4B/tree/e7b7dc27f91deacad38e78976d1f2b499d76a294", + "sourceRevision": "black-forest-labs/FLUX.2-klein-4B@e7b7dc27f91deacad38e78976d1f2b499d76a294", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "Publisher model terms at https://huggingface.co/black-forest-labs/FLUX.2-klein-4B/tree/e7b7dc27f91deacad38e78976d1f2b499d76a294" + ], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "black-forest-labs/FLUX.2-klein-4B@e7b7dc27f91deacad38e78976d1f2b499d76a294 https://huggingface.co/black-forest-labs/FLUX.2-klein-4B/tree/e7b7dc27f91deacad38e78976d1f2b499d76a294" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "60b01498a2df5f4e4622cdc2f9a43c83d187820780d2425a19718c13707db501", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "flux_klein_open_glacial_lake" }, { - "path": "template-gallery/reviews/flux3_klein_fp8r512_raw_coordinate_prompt.quality-review.json", - "sha256": "sha256:bytes:5b8429b8102aba95b1fc76e8ff0b3ee823a489ae1ae771c5f10b2c92f583ddf5", + "path": "template-gallery/reviews/flux_klein_open_glacial_lake.retained-template-provenance.json", + "sha256": "sha256:bytes:cce6957687fe79ea590c44ce56f1ac0c594f6df854c4e367e88c4509c0b880c2", "publishDecision": "approved", "holdReason": null, - "creatorOrRightsholder": "sourav-das / MoDiff project maintainers", - "creationMethod": "MoDiff-authored technical provenance or quality metadata derived from the explicitly approved source-media packet", - "sourceUrl": null, - "sourceRevision": null, - "sourceLicense": "Apache-2.0 project-authored metadata; image/model terms remain in their own per-file records", + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/black-forest-labs/FLUX.2-klein-4B/tree/e7b7dc27f91deacad38e78976d1f2b499d76a294", + "sourceRevision": "black-forest-labs/FLUX.2-klein-4B@e7b7dc27f91deacad38e78976d1f2b499d76a294", + "sourceLicense": "MoDiff-authored Gallery metadata", "modelTerms": [ - "AI-assisted technical quality assessment authored in Codex for this project; no model weights or additional generated media are included." + "Publisher model terms at https://huggingface.co/black-forest-labs/FLUX.2-klein-4B/tree/e7b7dc27f91deacad38e78976d1f2b499d76a294" ], - "aiGenerated": true, + "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], - "requiredAttribution": [], + "requiredAttribution": [ + "black-forest-labs/FLUX.2-klein-4B@e7b7dc27f91deacad38e78976d1f2b499d76a294 https://huggingface.co/black-forest-labs/FLUX.2-klein-4B/tree/e7b7dc27f91deacad38e78976d1f2b499d76a294" + ], "assetLicense": "Apache-2.0", - "reviewedBy": "Codex (technical metadata); sourav-das (underlying exact-file rights and publication approval)", - "reviewedAt": "2026-10-31", - "reviewClass": "technical-derivation-of-human-approved-media", - "humanApprovalPacketSHA256": "a55745498d9c767d581d947b90b12ad4308e5f95b870224ef67107d5894f2499", - "humanApprovalScope": "Exact source images, authored mask and SHA-bound review packet. Numeric quality scores are the AI assessment, not human-supplied scores. The metadata is project-authored; it introduces no new third-party media rights." + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "60b01498a2df5f4e4622cdc2f9a43c83d187820780d2425a19718c13707db501", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "flux_klein_open_glacial_lake" }, { - "path": "template-gallery/reviews/flux3_klein_fp8r512_raw_coordinate_prompt.reviewed-provenance.json", - "sha256": "sha256:bytes:27ec68baa354642081ee764d33632cafcfeb8477ef05ec6ce1e7ec9d2925d410", + "path": "template-gallery/reviews/flux_kontext_edit.quality-review.json", + "sha256": "sha256:bytes:b4ecdefeee42100d34df1f4a1d05c944c3c950e586a7d644496d36961e66c593", "publishDecision": "approved", "holdReason": null, - "creatorOrRightsholder": "sourav-das / MoDiff project maintainers", - "creationMethod": "MoDiff-authored technical provenance or quality metadata derived from the explicitly approved source-media packet", + "creatorOrRightsholder": "MoDiff project maintainers", + "creationMethod": "MoDiff-authored technical, review, input-binding or retained recipe metadata for three maintainer-accepted assets", "sourceUrl": null, "sourceRevision": null, - "sourceLicense": "Apache-2.0 project-authored metadata; image/model terms remain in their own per-file records", + "sourceLicense": "Apache-2.0 project-authored metadata; generated-media model terms are retained separately", "modelTerms": [], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [], "assetLicense": "Apache-2.0", - "reviewedBy": "Codex (technical metadata); sourav-das (underlying exact-file rights and publication approval)", - "reviewedAt": "2026-10-31", - "reviewClass": "technical-derivation-of-human-approved-media", - "humanApprovalPacketSHA256": "a55745498d9c767d581d947b90b12ad4308e5f95b870224ef67107d5894f2499", - "humanApprovalScope": "Exact source images, authored mask and SHA-bound review packet. Numeric quality scores are the AI assessment, not human-supplied scores. The metadata is project-authored; it introduces no new third-party media rights." + "reviewedBy": "maintainer (current user)", + "reviewedAt": "2026-11-12", + "reviewClass": "per-file-maintainer-accepted-native-three-registration", + "provenanceTemplateId": "flux_kontext_edit", + "humanApprovalPacketSHA256": "69c6b3d9b0ea2fcca16ee538f6e75b414b7141658b74f10578758e61360f63fd" }, { - "path": "template-gallery/reviews/flux3_klein_fp8r512_single_reference_edit.quality-review.json", - "sha256": "sha256:bytes:d3af7d89f63eabfd9313ca12b8ec6b644ae14379265e83ecf75aab453c2df4af", + "path": "template-gallery/reviews/flux_kontext_edit.reviewed-provenance.json", + "sha256": "sha256:bytes:a1d3b7605879400b4675dbb92e52b510648d331cbdc715026695b951a4f9970f", "publishDecision": "approved", "holdReason": null, - "creatorOrRightsholder": "sourav-das / MoDiff project maintainers", - "creationMethod": "MoDiff-authored technical provenance or quality metadata derived from the explicitly approved source-media packet", + "creatorOrRightsholder": "MoDiff project maintainers", + "creationMethod": "MoDiff-authored technical, review, input-binding or retained recipe metadata for three maintainer-accepted assets", "sourceUrl": null, "sourceRevision": null, - "sourceLicense": "Apache-2.0 project-authored metadata; image/model terms remain in their own per-file records", - "modelTerms": [ - "AI-assisted technical quality assessment authored in Codex for this project; no model weights or additional generated media are included." - ], - "aiGenerated": true, + "sourceLicense": "Apache-2.0 project-authored metadata; generated-media model terms are retained separately", + "modelTerms": [], + "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [], "assetLicense": "Apache-2.0", - "reviewedBy": "Codex (technical metadata); sourav-das (underlying exact-file rights and publication approval)", - "reviewedAt": "2026-10-31", - "reviewClass": "technical-derivation-of-human-approved-media", - "humanApprovalPacketSHA256": "a55745498d9c767d581d947b90b12ad4308e5f95b870224ef67107d5894f2499", - "humanApprovalScope": "Exact source images, authored mask and SHA-bound review packet. Numeric quality scores are the AI assessment, not human-supplied scores. The metadata is project-authored; it introduces no new third-party media rights." + "reviewedBy": "maintainer (current user)", + "reviewedAt": "2026-11-12", + "reviewClass": "per-file-maintainer-accepted-native-three-registration", + "provenanceTemplateId": "flux_kontext_edit", + "humanApprovalPacketSHA256": "69c6b3d9b0ea2fcca16ee538f6e75b414b7141658b74f10578758e61360f63fd" }, { - "path": "template-gallery/reviews/flux3_klein_fp8r512_single_reference_edit.reviewed-provenance.json", - "sha256": "sha256:bytes:bf0f06495f4d9793ebf0f8bc8c4467e6aead1b935bbb5e319b59b92dac3e1b78", + "path": "template-gallery/reviews/flux_kontext_multi_reference.quality-review.json", + "sha256": "sha256:bytes:e81c8ef5da7e3e2a0d6b511c093052c6edcc5dff6c5ca59db393450ed2a1cb06", "publishDecision": "approved", "holdReason": null, - "creatorOrRightsholder": "sourav-das / MoDiff project maintainers", - "creationMethod": "MoDiff-authored technical provenance or quality metadata derived from the explicitly approved source-media packet", + "creatorOrRightsholder": "MoDiff project maintainers", + "creationMethod": "MoDiff-authored technical, review, input-binding or retained recipe metadata for three maintainer-accepted assets", "sourceUrl": null, "sourceRevision": null, - "sourceLicense": "Apache-2.0 project-authored metadata; image/model terms remain in their own per-file records", + "sourceLicense": "Apache-2.0 project-authored metadata; generated-media model terms are retained separately", "modelTerms": [], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [], "assetLicense": "Apache-2.0", - "reviewedBy": "Codex (technical metadata); sourav-das (underlying exact-file rights and publication approval)", - "reviewedAt": "2026-10-31", - "reviewClass": "technical-derivation-of-human-approved-media", - "humanApprovalPacketSHA256": "a55745498d9c767d581d947b90b12ad4308e5f95b870224ef67107d5894f2499", - "humanApprovalScope": "Exact source images, authored mask and SHA-bound review packet. Numeric quality scores are the AI assessment, not human-supplied scores. The metadata is project-authored; it introduces no new third-party media rights." + "reviewedBy": "maintainer (current user)", + "reviewedAt": "2026-11-12", + "reviewClass": "per-file-maintainer-accepted-native-three-registration", + "provenanceTemplateId": "flux_kontext_multi_reference", + "humanApprovalPacketSHA256": "69c6b3d9b0ea2fcca16ee538f6e75b414b7141658b74f10578758e61360f63fd" }, { - "path": "template-gallery/reviews/flux3_klein_fp8r512_text_to_image.quality-review.json", - "sha256": "sha256:bytes:9c42b9b5987079824364e4749eaee7e9846949c8a8f9142092ac716447bbf063", + "path": "template-gallery/reviews/flux_kontext_multi_reference.reviewed-provenance.json", + "sha256": "sha256:bytes:14db077ec2ae9cbc640bab2585a5105d2b129eafded32e7ea7be2464b412bb25", "publishDecision": "approved", "holdReason": null, - "creatorOrRightsholder": "sourav-das / MoDiff project maintainers", - "creationMethod": "MoDiff-authored technical provenance or quality metadata derived from the explicitly approved source-media packet", + "creatorOrRightsholder": "MoDiff project maintainers", + "creationMethod": "MoDiff-authored technical, review, input-binding or retained recipe metadata for three maintainer-accepted assets", "sourceUrl": null, "sourceRevision": null, - "sourceLicense": "Apache-2.0 project-authored metadata; image/model terms remain in their own per-file records", - "modelTerms": [ - "AI-assisted technical quality assessment authored in Codex for this project; no model weights or additional generated media are included." - ], - "aiGenerated": true, + "sourceLicense": "Apache-2.0 project-authored metadata; generated-media model terms are retained separately", + "modelTerms": [], + "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [], "assetLicense": "Apache-2.0", - "reviewedBy": "Codex (technical metadata); sourav-das (underlying exact-file rights and publication approval)", - "reviewedAt": "2026-10-31", - "reviewClass": "technical-derivation-of-human-approved-media", - "humanApprovalPacketSHA256": "a55745498d9c767d581d947b90b12ad4308e5f95b870224ef67107d5894f2499", - "humanApprovalScope": "Exact source images, authored mask and SHA-bound review packet. Numeric quality scores are the AI assessment, not human-supplied scores. The metadata is project-authored; it introduces no new third-party media rights." + "reviewedBy": "maintainer (current user)", + "reviewedAt": "2026-11-12", + "reviewClass": "per-file-maintainer-accepted-native-three-registration", + "provenanceTemplateId": "flux_kontext_multi_reference", + "humanApprovalPacketSHA256": "69c6b3d9b0ea2fcca16ee538f6e75b414b7141658b74f10578758e61360f63fd" }, { - "path": "template-gallery/reviews/flux3_klein_fp8r512_text_to_image.reviewed-provenance.json", - "sha256": "sha256:bytes:bb4186fd1e2fdb16f03bbda92673cbbad1169c0c20a13987775eac45ffcca1d2", + "path": "template-gallery/reviews/flux_krea_text_to_image.quality-review.json", + "sha256": "sha256:bytes:e60051b4da6abcd87c5c1356a2ff3dae280d92fbe25f9a95360f6d54bad93c45", "publishDecision": "approved", "holdReason": null, - "creatorOrRightsholder": "sourav-das / MoDiff project maintainers", - "creationMethod": "MoDiff-authored technical provenance or quality metadata derived from the explicitly approved source-media packet", + "creatorOrRightsholder": "MoDiff project maintainers", + "creationMethod": "MoDiff-authored Gallery manifest, reviewed provenance or quality review for the accepted morning batch", "sourceUrl": null, "sourceRevision": null, - "sourceLicense": "Apache-2.0 project-authored metadata; image/model terms remain in their own per-file records", + "sourceLicense": "Apache-2.0 project-authored metadata; generated-media terms remain in their exact per-file record", "modelTerms": [], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [], "assetLicense": "Apache-2.0", - "reviewedBy": "Codex (technical metadata); sourav-das (underlying exact-file rights and publication approval)", - "reviewedAt": "2026-10-31", - "reviewClass": "technical-derivation-of-human-approved-media", - "humanApprovalPacketSHA256": "a55745498d9c767d581d947b90b12ad4308e5f95b870224ef67107d5894f2499", - "humanApprovalScope": "Exact source images, authored mask and SHA-bound review packet. Numeric quality scores are the AI assessment, not human-supplied scores. The metadata is project-authored; it introduces no new third-party media rights." + "reviewedBy": "SOURAV DAS", + "reviewedAt": "2026-11-10", + "reviewClass": "per-file-maintainer-approved-gallery-registration", + "provenanceTemplateId": "flux_krea_text_to_image", + "humanApprovalPacketSHA256": "351d122936dc8df9c3fb6217005641dd2cc2ecddc39cd7cd7fadc2939def70b3" }, { - "path": "template-gallery/reviews/flux_control_canny.quality-review.json", - "sha256": "sha256:bytes:18fe010ceca23f0e99deb1d854905d52d805c45931b4ab523c364ac36ae594ab", + "path": "template-gallery/reviews/flux_krea_text_to_image.reviewed-provenance.json", + "sha256": "sha256:bytes:6cc4951f1e036aa80a7e92f80be0c40d37336f0f76ca7fe3dc118679f3cd08f3", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers", @@ -11556,41 +13074,65 @@ "reviewedBy": "SOURAV DAS", "reviewedAt": "2026-11-10", "reviewClass": "per-file-maintainer-approved-gallery-registration", - "provenanceTemplateId": "flux_control_canny", + "provenanceTemplateId": "flux_krea_text_to_image", "humanApprovalPacketSHA256": "351d122936dc8df9c3fb6217005641dd2cc2ecddc39cd7cd7fadc2939def70b3" }, { - "path": "template-gallery/reviews/flux_control_canny.reviewed-provenance.json", - "sha256": "sha256:bytes:de3e003b083c9ecbf1dfae92a5c9a225c963943be0820aba88e24723aecc70b0", + "creatorOrRightsholder": "MoDiff project maintainers", + "creationMethod": "Project-authored redacted technical/review records or versioned declarations for six maintainer-accepted native results", + "sourceUrl": null, + "sourceRevision": null, + "sourceLicense": "Apache-2.0 project-authored metadata; media and model terms remain separate", + "modelTerms": [], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [], + "assetLicense": "Apache-2.0", + "path": "template-gallery/reviews/flux_lora_cinematic_octane_3d.quality-review.json", + "sha256": "sha256:bytes:b145a9798d1ac5c44516f02308008140a08bb99ae35a014dd381a650cb30c7f9", "publishDecision": "approved", "holdReason": null, + "reviewedBy": "SOURAV DAS", + "reviewedAt": "2026-11-13", + "reviewClass": "per-file-maintainer-accepted-native-six-registration", + "humanApprovalPacketSHA256": "03b66b4631afb15032d62a1705331b56f6b12c4882c23945175ec92cc45a506f", + "publicationBasis": "Register the six approved assets now while Moonflower runs on Linux. Use Windows in parallel wherever possible, and keep the longer workflows separate for AMD cloud.", + "provenanceTemplateId": "flux_lora_cinematic_octane_3d" + }, + { "creatorOrRightsholder": "MoDiff project maintainers", - "creationMethod": "MoDiff-authored Gallery manifest, reviewed provenance or quality review for the accepted morning batch", + "creationMethod": "Project-authored redacted technical/review records or versioned declarations for six maintainer-accepted native results", "sourceUrl": null, "sourceRevision": null, - "sourceLicense": "Apache-2.0 project-authored metadata; generated-media terms remain in their exact per-file record", + "sourceLicense": "Apache-2.0 project-authored metadata; media and model terms remain separate", "modelTerms": [], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [], "assetLicense": "Apache-2.0", + "path": "template-gallery/reviews/flux_lora_cinematic_octane_3d.reviewed-provenance.json", + "sha256": "sha256:bytes:62bf8f0c28985cd8be0da00e7c74548a63dc0daa2893e1aaef7bb7a370b6aa35", + "publishDecision": "approved", + "holdReason": null, "reviewedBy": "SOURAV DAS", - "reviewedAt": "2026-11-10", - "reviewClass": "per-file-maintainer-approved-gallery-registration", - "provenanceTemplateId": "flux_control_canny", - "humanApprovalPacketSHA256": "351d122936dc8df9c3fb6217005641dd2cc2ecddc39cd7cd7fadc2939def70b3" + "reviewedAt": "2026-11-13", + "reviewClass": "per-file-maintainer-accepted-native-six-registration", + "humanApprovalPacketSHA256": "03b66b4631afb15032d62a1705331b56f6b12c4882c23945175ec92cc45a506f", + "publicationBasis": "Register the six approved assets now while Moonflower runs on Linux. Use Windows in parallel wherever possible, and keep the longer workflows separate for AMD cloud.", + "provenanceTemplateId": "flux_lora_cinematic_octane_3d" }, { - "path": "template-gallery/reviews/flux_depth_control.quality-review.json", - "sha256": "sha256:bytes:cfa61450e6b63ad91cdba6b5d17c8ee316db1ce6005b19569595e173c9800daf", + "path": "template-gallery/reviews/flux_lora_film_noir.quality-review.json", + "sha256": "sha256:bytes:d3cf61a480ef2d55e4371d70806b1b70ecd2f97b038906767f36046f7211c1d4", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers", - "creationMethod": "MoDiff-authored Gallery manifest, reviewed provenance or quality review for the accepted morning batch", + "creationMethod": "Project-authored Gallery manifest, native provenance or accepted quality review", "sourceUrl": null, "sourceRevision": null, - "sourceLicense": "Apache-2.0 project-authored metadata; generated-media terms remain in their exact per-file record", + "sourceLicense": "Apache-2.0 project-authored metadata", "modelTerms": [], "aiGenerated": false, "humanLikenessConsent": "not-applicable", @@ -11599,20 +13141,20 @@ "assetLicense": "Apache-2.0", "reviewedBy": "SOURAV DAS", "reviewedAt": "2026-11-10", - "reviewClass": "per-file-maintainer-approved-gallery-registration", - "provenanceTemplateId": "flux_depth_control", - "humanApprovalPacketSHA256": "351d122936dc8df9c3fb6217005641dd2cc2ecddc39cd7cd7fadc2939def70b3" + "reviewClass": "per-file-maintainer-accepted-native-gallery-registration", + "provenanceTemplateId": "flux_lora_film_noir", + "humanApprovalPacketSHA256": "73ddf9ea7fc27eccc6b93817809421a008ce0fd2fb3080ffbdc5831a09205304" }, { - "path": "template-gallery/reviews/flux_depth_control.reviewed-provenance.json", - "sha256": "sha256:bytes:845284bdb0898bb02ddd178e1de0c4b24e2281ae8f84c15eb09de2798abfcf79", + "path": "template-gallery/reviews/flux_lora_film_noir.reviewed-provenance.json", + "sha256": "sha256:bytes:063c3b4d37ec01f694e47ca06bce70c54bc9e0abc682fb0b22f914be868a2e18", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers", - "creationMethod": "MoDiff-authored Gallery manifest, reviewed provenance or quality review for the accepted morning batch", + "creationMethod": "Project-authored Gallery manifest, native provenance or accepted quality review", "sourceUrl": null, "sourceRevision": null, - "sourceLicense": "Apache-2.0 project-authored metadata; generated-media terms remain in their exact per-file record", + "sourceLicense": "Apache-2.0 project-authored metadata", "modelTerms": [], "aiGenerated": false, "humanLikenessConsent": "not-applicable", @@ -11621,20 +13163,20 @@ "assetLicense": "Apache-2.0", "reviewedBy": "SOURAV DAS", "reviewedAt": "2026-11-10", - "reviewClass": "per-file-maintainer-approved-gallery-registration", - "provenanceTemplateId": "flux_depth_control", - "humanApprovalPacketSHA256": "351d122936dc8df9c3fb6217005641dd2cc2ecddc39cd7cd7fadc2939def70b3" + "reviewClass": "per-file-maintainer-accepted-native-gallery-registration", + "provenanceTemplateId": "flux_lora_film_noir", + "humanApprovalPacketSHA256": "73ddf9ea7fc27eccc6b93817809421a008ce0fd2fb3080ffbdc5831a09205304" }, { - "path": "template-gallery/reviews/flux_dev_expert_text_to_image.quality-review.json", - "sha256": "sha256:bytes:4b7d81b2a342e898519cfef4ea3ada3325831a7a0c93b0966a42d59f74999715", + "path": "template-gallery/reviews/flux_lora_ghibli_story.quality-review.json", + "sha256": "sha256:bytes:6009868ad3e76b584a12eb4193daf7680a0f224224bcda917c2ebbe8f543d1a5", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers", - "creationMethod": "MoDiff-authored Gallery manifest, reviewed provenance or quality review for the accepted morning batch", + "creationMethod": "MoDiff-authored technical metadata or review record", "sourceUrl": null, "sourceRevision": null, - "sourceLicense": "Apache-2.0 project-authored metadata; generated-media terms remain in their exact per-file record", + "sourceLicense": "Apache-2.0", "modelTerms": [], "aiGenerated": false, "humanLikenessConsent": "not-applicable", @@ -11642,21 +13184,20 @@ "requiredAttribution": [], "assetLicense": "Apache-2.0", "reviewedBy": "SOURAV DAS", - "reviewedAt": "2026-11-10", - "reviewClass": "per-file-maintainer-approved-gallery-registration", - "provenanceTemplateId": "flux_dev_expert_text_to_image", - "humanApprovalPacketSHA256": "351d122936dc8df9c3fb6217005641dd2cc2ecddc39cd7cd7fadc2939def70b3" + "reviewedAt": "2026-08-03", + "reviewClass": "standard-human-attestation", + "provenanceTemplateId": "flux_lora_ghibli_story" }, { - "path": "template-gallery/reviews/flux_dev_expert_text_to_image.reviewed-provenance.json", - "sha256": "sha256:bytes:56dd0d53dd62f58ff085722eb7266a7c4e10e591b0a78a9408c3b2061e656182", + "path": "template-gallery/reviews/flux_lora_ghibli_story.reviewed-provenance.json", + "sha256": "sha256:bytes:f87545939eb878e8655640f7563f6ddb93b355ba72c716959fb61c39806fa8a3", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers", - "creationMethod": "MoDiff-authored Gallery manifest, reviewed provenance or quality review for the accepted morning batch", + "creationMethod": "MoDiff-authored technical metadata or review record", "sourceUrl": null, "sourceRevision": null, - "sourceLicense": "Apache-2.0 project-authored metadata; generated-media terms remain in their exact per-file record", + "sourceLicense": "Apache-2.0", "modelTerms": [], "aiGenerated": false, "humanLikenessConsent": "not-applicable", @@ -11664,14 +13205,13 @@ "requiredAttribution": [], "assetLicense": "Apache-2.0", "reviewedBy": "SOURAV DAS", - "reviewedAt": "2026-11-10", - "reviewClass": "per-file-maintainer-approved-gallery-registration", - "provenanceTemplateId": "flux_dev_expert_text_to_image", - "humanApprovalPacketSHA256": "351d122936dc8df9c3fb6217005641dd2cc2ecddc39cd7cd7fadc2939def70b3" + "reviewedAt": "2026-08-03", + "reviewClass": "standard-human-attestation", + "provenanceTemplateId": "flux_lora_ghibli_story" }, { - "path": "template-gallery/reviews/flux_fill_inpaint.quality-review.json", - "sha256": "sha256:bytes:118df046dca340d5130af71eefea56e4d0182c2beb9b01ac4de9da102fb002ff", + "path": "template-gallery/reviews/flux_lora_oil_painting.quality-review.json", + "sha256": "sha256:bytes:a081914ac871d3d02e47263f1807eb1dc112b861e517221a71ac6987df5611ee", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers", @@ -11688,12 +13228,12 @@ "reviewedBy": "SOURAV DAS", "reviewedAt": "2026-11-10", "reviewClass": "per-file-maintainer-accepted-native-gallery-registration", - "provenanceTemplateId": "flux_fill_inpaint", + "provenanceTemplateId": "flux_lora_oil_painting", "humanApprovalPacketSHA256": "73ddf9ea7fc27eccc6b93817809421a008ce0fd2fb3080ffbdc5831a09205304" }, { - "path": "template-gallery/reviews/flux_fill_inpaint.reviewed-provenance.json", - "sha256": "sha256:bytes:43b64ed1f67a2e36e9d7646eae58bc0aad9b1d49925425f5ebb98a0607577c3d", + "path": "template-gallery/reviews/flux_lora_oil_painting.reviewed-provenance.json", + "sha256": "sha256:bytes:04e8530313e3bfcdf2c09550c17ffbe43aed0b4a28eaccf8b8153d217c2aa35f", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers", @@ -11710,19 +13250,19 @@ "reviewedBy": "SOURAV DAS", "reviewedAt": "2026-11-10", "reviewClass": "per-file-maintainer-accepted-native-gallery-registration", - "provenanceTemplateId": "flux_fill_inpaint", + "provenanceTemplateId": "flux_lora_oil_painting", "humanApprovalPacketSHA256": "73ddf9ea7fc27eccc6b93817809421a008ce0fd2fb3080ffbdc5831a09205304" }, { - "path": "template-gallery/reviews/flux_fill_outpaint.quality-review.json", - "sha256": "sha256:bytes:cf7d2d52d6d95733fd75be94e96fac1b331e8ad8996d615640123e95d3604edf", + "path": "template-gallery/reviews/flux_lora_paper_cutout.quality-review.json", + "sha256": "sha256:bytes:badbd8d5727387a36c3a65bf2780ea931578ea3c6f1dc50421fcce0352cbb45f", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers", - "creationMethod": "MoDiff-authored Gallery manifest, reviewed provenance or quality review for the accepted morning batch", + "creationMethod": "Project-authored Gallery manifest, native provenance or accepted quality review", "sourceUrl": null, "sourceRevision": null, - "sourceLicense": "Apache-2.0 project-authored metadata; generated-media terms remain in their exact per-file record", + "sourceLicense": "Apache-2.0 project-authored metadata", "modelTerms": [], "aiGenerated": false, "humanLikenessConsent": "not-applicable", @@ -11731,20 +13271,20 @@ "assetLicense": "Apache-2.0", "reviewedBy": "SOURAV DAS", "reviewedAt": "2026-11-10", - "reviewClass": "per-file-maintainer-approved-gallery-registration", - "provenanceTemplateId": "flux_fill_outpaint", - "humanApprovalPacketSHA256": "351d122936dc8df9c3fb6217005641dd2cc2ecddc39cd7cd7fadc2939def70b3" + "reviewClass": "per-file-maintainer-accepted-native-gallery-registration", + "provenanceTemplateId": "flux_lora_paper_cutout", + "humanApprovalPacketSHA256": "73ddf9ea7fc27eccc6b93817809421a008ce0fd2fb3080ffbdc5831a09205304" }, { - "path": "template-gallery/reviews/flux_fill_outpaint.reviewed-provenance.json", - "sha256": "sha256:bytes:83bd50a5df98a04d55a86ca75b3f39a5d87d11221910a8f2d1cc570dc5cc423c", + "path": "template-gallery/reviews/flux_lora_paper_cutout.reviewed-provenance.json", + "sha256": "sha256:bytes:0824474e69c3917b7cecea1fa9830e9a473b5b6f1a11bb3f3293bb8237f30f7e", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers", - "creationMethod": "MoDiff-authored Gallery manifest, reviewed provenance or quality review for the accepted morning batch", + "creationMethod": "Project-authored Gallery manifest, native provenance or accepted quality review", "sourceUrl": null, "sourceRevision": null, - "sourceLicense": "Apache-2.0 project-authored metadata; generated-media terms remain in their exact per-file record", + "sourceLicense": "Apache-2.0 project-authored metadata", "modelTerms": [], "aiGenerated": false, "humanLikenessConsent": "not-applicable", @@ -11753,317 +13293,101 @@ "assetLicense": "Apache-2.0", "reviewedBy": "SOURAV DAS", "reviewedAt": "2026-11-10", - "reviewClass": "per-file-maintainer-approved-gallery-registration", - "provenanceTemplateId": "flux_fill_outpaint", - "humanApprovalPacketSHA256": "351d122936dc8df9c3fb6217005641dd2cc2ecddc39cd7cd7fadc2939def70b3" - }, - { - "path": "template-gallery/reviews/flux_klein_alpine_lake_panorama.original-provenance.json", - "sha256": "sha256:bytes:82e163fa04890d8549972f17c4d863ba445dd9f2f1088199737d534b807c9e97", - "publishDecision": "approved", - "holdReason": null, - "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", - "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/black-forest-labs/FLUX.2-klein-4B/tree/e7b7dc27f91deacad38e78976d1f2b499d76a294", - "sourceRevision": "black-forest-labs/FLUX.2-klein-4B@e7b7dc27f91deacad38e78976d1f2b499d76a294", - "sourceLicense": "MoDiff-authored Gallery metadata", - "modelTerms": [ - "Publisher model terms at https://huggingface.co/black-forest-labs/FLUX.2-klein-4B/tree/e7b7dc27f91deacad38e78976d1f2b499d76a294" - ], - "aiGenerated": false, - "humanLikenessConsent": "not-applicable", - "marks": [], - "requiredAttribution": [ - "black-forest-labs/FLUX.2-klein-4B@e7b7dc27f91deacad38e78976d1f2b499d76a294 https://huggingface.co/black-forest-labs/FLUX.2-klein-4B/tree/e7b7dc27f91deacad38e78976d1f2b499d76a294" - ], - "assetLicense": "Apache-2.0", - "reviewedBy": "MoDiff workspace maintainer", - "reviewedAt": "2026-11-25", - "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "60b01498a2df5f4e4622cdc2f9a43c83d187820780d2425a19718c13707db501", - "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", - "provenanceTemplateId": "flux_klein_alpine_lake_panorama" - }, - { - "path": "template-gallery/reviews/flux_klein_alpine_lake_panorama.original-review.json", - "sha256": "sha256:bytes:0af53835f9eb84a14dbbd91c1c6527b27d7e2ef05682c5c5a8b9a120599220c7", - "publishDecision": "approved", - "holdReason": null, - "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", - "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/black-forest-labs/FLUX.2-klein-4B/tree/e7b7dc27f91deacad38e78976d1f2b499d76a294", - "sourceRevision": "black-forest-labs/FLUX.2-klein-4B@e7b7dc27f91deacad38e78976d1f2b499d76a294", - "sourceLicense": "MoDiff-authored Gallery metadata", - "modelTerms": [ - "Publisher model terms at https://huggingface.co/black-forest-labs/FLUX.2-klein-4B/tree/e7b7dc27f91deacad38e78976d1f2b499d76a294" - ], - "aiGenerated": false, - "humanLikenessConsent": "not-applicable", - "marks": [], - "requiredAttribution": [ - "black-forest-labs/FLUX.2-klein-4B@e7b7dc27f91deacad38e78976d1f2b499d76a294 https://huggingface.co/black-forest-labs/FLUX.2-klein-4B/tree/e7b7dc27f91deacad38e78976d1f2b499d76a294" - ], - "assetLicense": "Apache-2.0", - "reviewedBy": "MoDiff workspace maintainer", - "reviewedAt": "2026-11-25", - "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "60b01498a2df5f4e4622cdc2f9a43c83d187820780d2425a19718c13707db501", - "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", - "provenanceTemplateId": "flux_klein_alpine_lake_panorama" - }, - { - "path": "template-gallery/reviews/flux_klein_alpine_lake_panorama.quality-review.json", - "sha256": "sha256:bytes:6903b5b197080a67979212e174d52cf4e68a85773c6b6011f8c8d0b2eb5d0271", - "publishDecision": "approved", - "holdReason": null, - "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", - "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/black-forest-labs/FLUX.2-klein-4B/tree/e7b7dc27f91deacad38e78976d1f2b499d76a294", - "sourceRevision": "black-forest-labs/FLUX.2-klein-4B@e7b7dc27f91deacad38e78976d1f2b499d76a294", - "sourceLicense": "MoDiff-authored Gallery metadata", - "modelTerms": [ - "Publisher model terms at https://huggingface.co/black-forest-labs/FLUX.2-klein-4B/tree/e7b7dc27f91deacad38e78976d1f2b499d76a294" - ], - "aiGenerated": false, - "humanLikenessConsent": "not-applicable", - "marks": [], - "requiredAttribution": [ - "black-forest-labs/FLUX.2-klein-4B@e7b7dc27f91deacad38e78976d1f2b499d76a294 https://huggingface.co/black-forest-labs/FLUX.2-klein-4B/tree/e7b7dc27f91deacad38e78976d1f2b499d76a294" - ], - "assetLicense": "Apache-2.0", - "reviewedBy": "MoDiff workspace maintainer", - "reviewedAt": "2026-11-25", - "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "60b01498a2df5f4e4622cdc2f9a43c83d187820780d2425a19718c13707db501", - "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", - "provenanceTemplateId": "flux_klein_alpine_lake_panorama" - }, - { - "path": "template-gallery/reviews/flux_klein_alpine_lake_panorama.retained-template-provenance.json", - "sha256": "sha256:bytes:0d74c14cd0dde401464e43f75a8c126b881bbbeb05bf145297ad33d575022aeb", - "publishDecision": "approved", - "holdReason": null, - "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", - "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/black-forest-labs/FLUX.2-klein-4B/tree/e7b7dc27f91deacad38e78976d1f2b499d76a294", - "sourceRevision": "black-forest-labs/FLUX.2-klein-4B@e7b7dc27f91deacad38e78976d1f2b499d76a294", - "sourceLicense": "MoDiff-authored Gallery metadata", - "modelTerms": [ - "Publisher model terms at https://huggingface.co/black-forest-labs/FLUX.2-klein-4B/tree/e7b7dc27f91deacad38e78976d1f2b499d76a294" - ], - "aiGenerated": false, - "humanLikenessConsent": "not-applicable", - "marks": [], - "requiredAttribution": [ - "black-forest-labs/FLUX.2-klein-4B@e7b7dc27f91deacad38e78976d1f2b499d76a294 https://huggingface.co/black-forest-labs/FLUX.2-klein-4B/tree/e7b7dc27f91deacad38e78976d1f2b499d76a294" - ], - "assetLicense": "Apache-2.0", - "reviewedBy": "MoDiff workspace maintainer", - "reviewedAt": "2026-11-25", - "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "60b01498a2df5f4e4622cdc2f9a43c83d187820780d2425a19718c13707db501", - "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", - "provenanceTemplateId": "flux_klein_alpine_lake_panorama" - }, - { - "path": "template-gallery/reviews/flux_klein_open_glacial_lake.original-provenance.json", - "sha256": "sha256:bytes:5b7df305704e076244a7d1fbd4e64589e7825ee96a116c0a9a6ef4c16a3231e5", - "publishDecision": "approved", - "holdReason": null, - "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", - "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/black-forest-labs/FLUX.2-klein-4B/tree/e7b7dc27f91deacad38e78976d1f2b499d76a294", - "sourceRevision": "black-forest-labs/FLUX.2-klein-4B@e7b7dc27f91deacad38e78976d1f2b499d76a294", - "sourceLicense": "MoDiff-authored Gallery metadata", - "modelTerms": [ - "Publisher model terms at https://huggingface.co/black-forest-labs/FLUX.2-klein-4B/tree/e7b7dc27f91deacad38e78976d1f2b499d76a294" - ], - "aiGenerated": false, - "humanLikenessConsent": "not-applicable", - "marks": [], - "requiredAttribution": [ - "black-forest-labs/FLUX.2-klein-4B@e7b7dc27f91deacad38e78976d1f2b499d76a294 https://huggingface.co/black-forest-labs/FLUX.2-klein-4B/tree/e7b7dc27f91deacad38e78976d1f2b499d76a294" - ], - "assetLicense": "Apache-2.0", - "reviewedBy": "MoDiff workspace maintainer", - "reviewedAt": "2026-11-25", - "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "60b01498a2df5f4e4622cdc2f9a43c83d187820780d2425a19718c13707db501", - "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", - "provenanceTemplateId": "flux_klein_open_glacial_lake" - }, - { - "path": "template-gallery/reviews/flux_klein_open_glacial_lake.original-review.json", - "sha256": "sha256:bytes:127d7ce73ad054114252277de338834612bed27d675c1e48dc377bedb84fb237", - "publishDecision": "approved", - "holdReason": null, - "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", - "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/black-forest-labs/FLUX.2-klein-4B/tree/e7b7dc27f91deacad38e78976d1f2b499d76a294", - "sourceRevision": "black-forest-labs/FLUX.2-klein-4B@e7b7dc27f91deacad38e78976d1f2b499d76a294", - "sourceLicense": "MoDiff-authored Gallery metadata", - "modelTerms": [ - "Publisher model terms at https://huggingface.co/black-forest-labs/FLUX.2-klein-4B/tree/e7b7dc27f91deacad38e78976d1f2b499d76a294" - ], - "aiGenerated": false, - "humanLikenessConsent": "not-applicable", - "marks": [], - "requiredAttribution": [ - "black-forest-labs/FLUX.2-klein-4B@e7b7dc27f91deacad38e78976d1f2b499d76a294 https://huggingface.co/black-forest-labs/FLUX.2-klein-4B/tree/e7b7dc27f91deacad38e78976d1f2b499d76a294" - ], - "assetLicense": "Apache-2.0", - "reviewedBy": "MoDiff workspace maintainer", - "reviewedAt": "2026-11-25", - "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "60b01498a2df5f4e4622cdc2f9a43c83d187820780d2425a19718c13707db501", - "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", - "provenanceTemplateId": "flux_klein_open_glacial_lake" - }, - { - "path": "template-gallery/reviews/flux_klein_open_glacial_lake.quality-review.json", - "sha256": "sha256:bytes:8fbb74c11639cba4c5ab3fab926e29d8e3c703ba5830fe9305352119e962dd60", - "publishDecision": "approved", - "holdReason": null, - "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", - "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/black-forest-labs/FLUX.2-klein-4B/tree/e7b7dc27f91deacad38e78976d1f2b499d76a294", - "sourceRevision": "black-forest-labs/FLUX.2-klein-4B@e7b7dc27f91deacad38e78976d1f2b499d76a294", - "sourceLicense": "MoDiff-authored Gallery metadata", - "modelTerms": [ - "Publisher model terms at https://huggingface.co/black-forest-labs/FLUX.2-klein-4B/tree/e7b7dc27f91deacad38e78976d1f2b499d76a294" - ], - "aiGenerated": false, - "humanLikenessConsent": "not-applicable", - "marks": [], - "requiredAttribution": [ - "black-forest-labs/FLUX.2-klein-4B@e7b7dc27f91deacad38e78976d1f2b499d76a294 https://huggingface.co/black-forest-labs/FLUX.2-klein-4B/tree/e7b7dc27f91deacad38e78976d1f2b499d76a294" - ], - "assetLicense": "Apache-2.0", - "reviewedBy": "MoDiff workspace maintainer", - "reviewedAt": "2026-11-25", - "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "60b01498a2df5f4e4622cdc2f9a43c83d187820780d2425a19718c13707db501", - "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", - "provenanceTemplateId": "flux_klein_open_glacial_lake" - }, - { - "path": "template-gallery/reviews/flux_klein_open_glacial_lake.retained-template-provenance.json", - "sha256": "sha256:bytes:cce6957687fe79ea590c44ce56f1ac0c594f6df854c4e367e88c4509c0b880c2", - "publishDecision": "approved", - "holdReason": null, - "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", - "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/black-forest-labs/FLUX.2-klein-4B/tree/e7b7dc27f91deacad38e78976d1f2b499d76a294", - "sourceRevision": "black-forest-labs/FLUX.2-klein-4B@e7b7dc27f91deacad38e78976d1f2b499d76a294", - "sourceLicense": "MoDiff-authored Gallery metadata", - "modelTerms": [ - "Publisher model terms at https://huggingface.co/black-forest-labs/FLUX.2-klein-4B/tree/e7b7dc27f91deacad38e78976d1f2b499d76a294" - ], - "aiGenerated": false, - "humanLikenessConsent": "not-applicable", - "marks": [], - "requiredAttribution": [ - "black-forest-labs/FLUX.2-klein-4B@e7b7dc27f91deacad38e78976d1f2b499d76a294 https://huggingface.co/black-forest-labs/FLUX.2-klein-4B/tree/e7b7dc27f91deacad38e78976d1f2b499d76a294" - ], - "assetLicense": "Apache-2.0", - "reviewedBy": "MoDiff workspace maintainer", - "reviewedAt": "2026-11-25", - "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "60b01498a2df5f4e4622cdc2f9a43c83d187820780d2425a19718c13707db501", - "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", - "provenanceTemplateId": "flux_klein_open_glacial_lake" + "reviewClass": "per-file-maintainer-accepted-native-gallery-registration", + "provenanceTemplateId": "flux_lora_paper_cutout", + "humanApprovalPacketSHA256": "73ddf9ea7fc27eccc6b93817809421a008ce0fd2fb3080ffbdc5831a09205304" }, { - "path": "template-gallery/reviews/flux_kontext_edit.quality-review.json", - "sha256": "sha256:bytes:b4ecdefeee42100d34df1f4a1d05c944c3c950e586a7d644496d36961e66c593", + "path": "template-gallery/reviews/flux_lora_photoreal_documentary.quality-review.json", + "sha256": "sha256:bytes:36a405950da3e180bdea7d6912da7ec2d19ca8382e3f4a26bd9bb9e79cc5f6d6", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers", - "creationMethod": "MoDiff-authored technical, review, input-binding or retained recipe metadata for three maintainer-accepted assets", + "creationMethod": "MoDiff-authored Gallery manifest, reviewed provenance or quality review for the accepted morning batch", "sourceUrl": null, "sourceRevision": null, - "sourceLicense": "Apache-2.0 project-authored metadata; generated-media model terms are retained separately", + "sourceLicense": "Apache-2.0 project-authored metadata; generated-media terms remain in their exact per-file record", "modelTerms": [], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [], "assetLicense": "Apache-2.0", - "reviewedBy": "maintainer (current user)", - "reviewedAt": "2026-11-12", - "reviewClass": "per-file-maintainer-accepted-native-three-registration", - "provenanceTemplateId": "flux_kontext_edit", - "humanApprovalPacketSHA256": "69c6b3d9b0ea2fcca16ee538f6e75b414b7141658b74f10578758e61360f63fd" + "reviewedBy": "SOURAV DAS", + "reviewedAt": "2026-11-10", + "reviewClass": "per-file-maintainer-approved-gallery-registration", + "provenanceTemplateId": "flux_lora_photoreal_documentary", + "humanApprovalPacketSHA256": "351d122936dc8df9c3fb6217005641dd2cc2ecddc39cd7cd7fadc2939def70b3" }, { - "path": "template-gallery/reviews/flux_kontext_edit.reviewed-provenance.json", - "sha256": "sha256:bytes:a1d3b7605879400b4675dbb92e52b510648d331cbdc715026695b951a4f9970f", + "path": "template-gallery/reviews/flux_lora_photoreal_documentary.reviewed-provenance.json", + "sha256": "sha256:bytes:80b8756cfa9e3cc14716d82a93f7322b08d2f53901b913ab119258891fc4dffb", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers", - "creationMethod": "MoDiff-authored technical, review, input-binding or retained recipe metadata for three maintainer-accepted assets", + "creationMethod": "MoDiff-authored Gallery manifest, reviewed provenance or quality review for the accepted morning batch", "sourceUrl": null, "sourceRevision": null, - "sourceLicense": "Apache-2.0 project-authored metadata; generated-media model terms are retained separately", + "sourceLicense": "Apache-2.0 project-authored metadata; generated-media terms remain in their exact per-file record", "modelTerms": [], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [], "assetLicense": "Apache-2.0", - "reviewedBy": "maintainer (current user)", - "reviewedAt": "2026-11-12", - "reviewClass": "per-file-maintainer-accepted-native-three-registration", - "provenanceTemplateId": "flux_kontext_edit", - "humanApprovalPacketSHA256": "69c6b3d9b0ea2fcca16ee538f6e75b414b7141658b74f10578758e61360f63fd" + "reviewedBy": "SOURAV DAS", + "reviewedAt": "2026-11-10", + "reviewClass": "per-file-maintainer-approved-gallery-registration", + "provenanceTemplateId": "flux_lora_photoreal_documentary", + "humanApprovalPacketSHA256": "351d122936dc8df9c3fb6217005641dd2cc2ecddc39cd7cd7fadc2939def70b3" }, { - "path": "template-gallery/reviews/flux_kontext_multi_reference.quality-review.json", - "sha256": "sha256:bytes:e81c8ef5da7e3e2a0d6b511c093052c6edcc5dff6c5ca59db393450ed2a1cb06", + "path": "template-gallery/reviews/flux_lora_retro_comic.quality-review.json", + "sha256": "sha256:bytes:4436655b45348e57831e147e268e80be4759cd5aec0e6e0eb8d6f1530de06435", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers", - "creationMethod": "MoDiff-authored technical, review, input-binding or retained recipe metadata for three maintainer-accepted assets", + "creationMethod": "MoDiff-authored Gallery manifest, reviewed provenance or quality review for the accepted morning batch", "sourceUrl": null, "sourceRevision": null, - "sourceLicense": "Apache-2.0 project-authored metadata; generated-media model terms are retained separately", + "sourceLicense": "Apache-2.0 project-authored metadata; generated-media terms remain in their exact per-file record", "modelTerms": [], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [], "assetLicense": "Apache-2.0", - "reviewedBy": "maintainer (current user)", - "reviewedAt": "2026-11-12", - "reviewClass": "per-file-maintainer-accepted-native-three-registration", - "provenanceTemplateId": "flux_kontext_multi_reference", - "humanApprovalPacketSHA256": "69c6b3d9b0ea2fcca16ee538f6e75b414b7141658b74f10578758e61360f63fd" + "reviewedBy": "SOURAV DAS", + "reviewedAt": "2026-11-10", + "reviewClass": "per-file-maintainer-approved-gallery-registration", + "provenanceTemplateId": "flux_lora_retro_comic", + "humanApprovalPacketSHA256": "351d122936dc8df9c3fb6217005641dd2cc2ecddc39cd7cd7fadc2939def70b3" }, { - "path": "template-gallery/reviews/flux_kontext_multi_reference.reviewed-provenance.json", - "sha256": "sha256:bytes:14db077ec2ae9cbc640bab2585a5105d2b129eafded32e7ea7be2464b412bb25", + "path": "template-gallery/reviews/flux_lora_retro_comic.reviewed-provenance.json", + "sha256": "sha256:bytes:3e44966400c118ba7ea67c8c511dcd0aad51a7e59d64bf1d4a0b96566a96f3e2", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers", - "creationMethod": "MoDiff-authored technical, review, input-binding or retained recipe metadata for three maintainer-accepted assets", + "creationMethod": "MoDiff-authored Gallery manifest, reviewed provenance or quality review for the accepted morning batch", "sourceUrl": null, "sourceRevision": null, - "sourceLicense": "Apache-2.0 project-authored metadata; generated-media model terms are retained separately", + "sourceLicense": "Apache-2.0 project-authored metadata; generated-media terms remain in their exact per-file record", "modelTerms": [], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [], "assetLicense": "Apache-2.0", - "reviewedBy": "maintainer (current user)", - "reviewedAt": "2026-11-12", - "reviewClass": "per-file-maintainer-accepted-native-three-registration", - "provenanceTemplateId": "flux_kontext_multi_reference", - "humanApprovalPacketSHA256": "69c6b3d9b0ea2fcca16ee538f6e75b414b7141658b74f10578758e61360f63fd" + "reviewedBy": "SOURAV DAS", + "reviewedAt": "2026-11-10", + "reviewClass": "per-file-maintainer-approved-gallery-registration", + "provenanceTemplateId": "flux_lora_retro_comic", + "humanApprovalPacketSHA256": "351d122936dc8df9c3fb6217005641dd2cc2ecddc39cd7cd7fadc2939def70b3" }, { - "path": "template-gallery/reviews/flux_krea_text_to_image.quality-review.json", - "sha256": "sha256:bytes:e60051b4da6abcd87c5c1356a2ff3dae280d92fbe25f9a95360f6d54bad93c45", + "path": "template-gallery/reviews/flux_lora_watercolor.quality-review.json", + "sha256": "sha256:bytes:3454f88eecab20d70370fe23bbd9248d6e6e3255d0fbfc557a2f1103c94e7ef4", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers", @@ -12080,12 +13404,12 @@ "reviewedBy": "SOURAV DAS", "reviewedAt": "2026-11-10", "reviewClass": "per-file-maintainer-approved-gallery-registration", - "provenanceTemplateId": "flux_krea_text_to_image", + "provenanceTemplateId": "flux_lora_watercolor", "humanApprovalPacketSHA256": "351d122936dc8df9c3fb6217005641dd2cc2ecddc39cd7cd7fadc2939def70b3" }, { - "path": "template-gallery/reviews/flux_krea_text_to_image.reviewed-provenance.json", - "sha256": "sha256:bytes:6cc4951f1e036aa80a7e92f80be0c40d37336f0f76ca7fe3dc118679f3cd08f3", + "path": "template-gallery/reviews/flux_lora_watercolor.reviewed-provenance.json", + "sha256": "sha256:bytes:c51b9dfb5471d1f0f704852672152a09f0c01aeeaee7f5dd0b324e5652fe8b6f", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers", @@ -12102,7 +13426,7 @@ "reviewedBy": "SOURAV DAS", "reviewedAt": "2026-11-10", "reviewClass": "per-file-maintainer-approved-gallery-registration", - "provenanceTemplateId": "flux_krea_text_to_image", + "provenanceTemplateId": "flux_lora_watercolor", "humanApprovalPacketSHA256": "351d122936dc8df9c3fb6217005641dd2cc2ecddc39cd7cd7fadc2939def70b3" }, { @@ -12117,8 +13441,8 @@ "marks": [], "requiredAttribution": [], "assetLicense": "Apache-2.0", - "path": "template-gallery/reviews/flux_lora_cinematic_octane_3d.quality-review.json", - "sha256": "sha256:bytes:b145a9798d1ac5c44516f02308008140a08bb99ae35a014dd381a650cb30c7f9", + "path": "template-gallery/reviews/flux_redux_edit.quality-review.json", + "sha256": "sha256:bytes:10afc2e145791fb240bdcce1bcfbcee80280f5bec4cd15afe64985da51129788", "publishDecision": "approved", "holdReason": null, "reviewedBy": "SOURAV DAS", @@ -12126,7 +13450,7 @@ "reviewClass": "per-file-maintainer-accepted-native-six-registration", "humanApprovalPacketSHA256": "03b66b4631afb15032d62a1705331b56f6b12c4882c23945175ec92cc45a506f", "publicationBasis": "Register the six approved assets now while Moonflower runs on Linux. Use Windows in parallel wherever possible, and keep the longer workflows separate for AMD cloud.", - "provenanceTemplateId": "flux_lora_cinematic_octane_3d" + "provenanceTemplateId": "flux_redux_edit" }, { "creatorOrRightsholder": "MoDiff project maintainers", @@ -12140,8 +13464,8 @@ "marks": [], "requiredAttribution": [], "assetLicense": "Apache-2.0", - "path": "template-gallery/reviews/flux_lora_cinematic_octane_3d.reviewed-provenance.json", - "sha256": "sha256:bytes:62bf8f0c28985cd8be0da00e7c74548a63dc0daa2893e1aaef7bb7a370b6aa35", + "path": "template-gallery/reviews/flux_redux_edit.reviewed-provenance.json", + "sha256": "sha256:bytes:88dc41a06a6fa368953d24f0d20c0700a375465b6c49591653c5471754690c00", "publishDecision": "approved", "holdReason": null, "reviewedBy": "SOURAV DAS", @@ -12149,62 +13473,64 @@ "reviewClass": "per-file-maintainer-accepted-native-six-registration", "humanApprovalPacketSHA256": "03b66b4631afb15032d62a1705331b56f6b12c4882c23945175ec92cc45a506f", "publicationBasis": "Register the six approved assets now while Moonflower runs on Linux. Use Windows in parallel wherever possible, and keep the longer workflows separate for AMD cloud.", - "provenanceTemplateId": "flux_lora_cinematic_octane_3d" + "provenanceTemplateId": "flux_redux_edit" }, { - "path": "template-gallery/reviews/flux_lora_film_noir.quality-review.json", - "sha256": "sha256:bytes:d3cf61a480ef2d55e4371d70806b1b70ecd2f97b038906767f36046f7211c1d4", - "publishDecision": "approved", - "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers", - "creationMethod": "Project-authored Gallery manifest, native provenance or accepted quality review", + "creationMethod": "Project-authored redacted technical/review records or versioned declarations for two maintainer-accepted native replacements", "sourceUrl": null, "sourceRevision": null, - "sourceLicense": "Apache-2.0 project-authored metadata", + "sourceLicense": "Apache-2.0 project-authored metadata; media and model terms remain separate", "modelTerms": [], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [], "assetLicense": "Apache-2.0", + "path": "template-gallery/reviews/flux_redux_multi_reference.quality-review.json", + "sha256": "sha256:bytes:1e4c83b2db81df7e43b8e79a9a01cc8eadfd2de6c826c218d0c31b50d95b7441", + "publishDecision": "approved", + "holdReason": null, "reviewedBy": "SOURAV DAS", - "reviewedAt": "2026-11-10", - "reviewClass": "per-file-maintainer-accepted-native-gallery-registration", - "provenanceTemplateId": "flux_lora_film_noir", - "humanApprovalPacketSHA256": "73ddf9ea7fc27eccc6b93817809421a008ce0fd2fb3080ffbdc5831a09205304" + "reviewedAt": "2026-11-15", + "reviewClass": "per-file-maintainer-accepted-native-two-registration", + "humanApprovalPacketSHA256": "c3c5e06d05771cf28f823e1dee31a9e7e3765d2f84038823aaadc505ee8290f5", + "publicationBasis": "you can register these two as well", + "provenanceTemplateId": "flux_redux_multi_reference" }, { - "path": "template-gallery/reviews/flux_lora_film_noir.reviewed-provenance.json", - "sha256": "sha256:bytes:063c3b4d37ec01f694e47ca06bce70c54bc9e0abc682fb0b22f914be868a2e18", - "publishDecision": "approved", - "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers", - "creationMethod": "Project-authored Gallery manifest, native provenance or accepted quality review", + "creationMethod": "Project-authored redacted technical/review records or versioned declarations for two maintainer-accepted native replacements", "sourceUrl": null, "sourceRevision": null, - "sourceLicense": "Apache-2.0 project-authored metadata", + "sourceLicense": "Apache-2.0 project-authored metadata; media and model terms remain separate", "modelTerms": [], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [], "assetLicense": "Apache-2.0", + "path": "template-gallery/reviews/flux_redux_multi_reference.reviewed-provenance.json", + "sha256": "sha256:bytes:dd1ea7815bc1bc51589ef774cc1f412b3f8bc2f16a7204a8efe56469913d8179", + "publishDecision": "approved", + "holdReason": null, "reviewedBy": "SOURAV DAS", - "reviewedAt": "2026-11-10", - "reviewClass": "per-file-maintainer-accepted-native-gallery-registration", - "provenanceTemplateId": "flux_lora_film_noir", - "humanApprovalPacketSHA256": "73ddf9ea7fc27eccc6b93817809421a008ce0fd2fb3080ffbdc5831a09205304" + "reviewedAt": "2026-11-15", + "reviewClass": "per-file-maintainer-accepted-native-two-registration", + "humanApprovalPacketSHA256": "c3c5e06d05771cf28f823e1dee31a9e7e3765d2f84038823aaadc505ee8290f5", + "publicationBasis": "you can register these two as well", + "provenanceTemplateId": "flux_redux_multi_reference" }, { - "path": "template-gallery/reviews/flux_lora_ghibli_story.quality-review.json", - "sha256": "sha256:bytes:6009868ad3e76b584a12eb4193daf7680a0f224224bcda917c2ebbe8f543d1a5", + "path": "template-gallery/reviews/flux_schnell_text_to_image.quality-review.json", + "sha256": "sha256:bytes:5eeda44bb0b251f27d30973ad62659d2d247f1ab620eb4b48af154385958530e", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers", - "creationMethod": "MoDiff-authored technical metadata or review record", + "creationMethod": "MoDiff-authored technical provenance, Gallery manifest or quality review for the explicitly approved retained native Linux FLUX.1 Schnell image", "sourceUrl": null, "sourceRevision": null, - "sourceLicense": "Apache-2.0", + "sourceLicense": "Apache-2.0 project-authored metadata; generated-media terms remain in their exact per-file record", "modelTerms": [], "aiGenerated": false, "humanLikenessConsent": "not-applicable", @@ -12212,20 +13538,21 @@ "requiredAttribution": [], "assetLicense": "Apache-2.0", "reviewedBy": "SOURAV DAS", - "reviewedAt": "2026-08-03", - "reviewClass": "standard-human-attestation", - "provenanceTemplateId": "flux_lora_ghibli_story" + "reviewedAt": "2026-11-10", + "reviewClass": "per-file-human-approved-retained-schnell-limited-image-registration", + "provenanceTemplateId": "flux_schnell_text_to_image", + "humanApprovalPacketSHA256": "488dc05971842cc9ed2b31c5995de204015d8b6a975ebc917329dfe3eac71d2c" }, { - "path": "template-gallery/reviews/flux_lora_ghibli_story.reviewed-provenance.json", - "sha256": "sha256:bytes:f87545939eb878e8655640f7563f6ddb93b355ba72c716959fb61c39806fa8a3", + "path": "template-gallery/reviews/flux_schnell_text_to_image.reviewed-provenance.json", + "sha256": "sha256:bytes:ccf1ec3ab127ce8c01008df4a8a323bac0548e83679281d58c7d77a964ae07a9", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers", - "creationMethod": "MoDiff-authored technical metadata or review record", + "creationMethod": "MoDiff-authored technical provenance, Gallery manifest or quality review for the explicitly approved retained native Linux FLUX.1 Schnell image", "sourceUrl": null, "sourceRevision": null, - "sourceLicense": "Apache-2.0", + "sourceLicense": "Apache-2.0 project-authored metadata; generated-media terms remain in their exact per-file record", "modelTerms": [], "aiGenerated": false, "humanLikenessConsent": "not-applicable", @@ -12233,127 +13560,226 @@ "requiredAttribution": [], "assetLicense": "Apache-2.0", "reviewedBy": "SOURAV DAS", - "reviewedAt": "2026-08-03", - "reviewClass": "standard-human-attestation", - "provenanceTemplateId": "flux_lora_ghibli_story" + "reviewedAt": "2026-11-10", + "reviewClass": "per-file-human-approved-retained-schnell-limited-image-registration", + "provenanceTemplateId": "flux_schnell_text_to_image", + "humanApprovalPacketSHA256": "488dc05971842cc9ed2b31c5995de204015d8b6a975ebc917329dfe3eac71d2c" }, { - "path": "template-gallery/reviews/flux_lora_oil_painting.quality-review.json", - "sha256": "sha256:bytes:a081914ac871d3d02e47263f1807eb1dc112b861e517221a71ac6987df5611ee", + "path": "template-gallery/reviews/forest_ferns.original-provenance.json", + "sha256": "sha256:bytes:9f3dbdc8c7c6c2bbd65792b2d1b958cc21e1aeb44489af772f6e1d8e14b1932b", "publishDecision": "approved", "holdReason": null, - "creatorOrRightsholder": "MoDiff project maintainers", - "creationMethod": "Project-authored Gallery manifest, native provenance or accepted quality review", - "sourceUrl": null, - "sourceRevision": null, - "sourceLicense": "Apache-2.0 project-authored metadata", - "modelTerms": [], + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/zai-org/GLM-Image/tree/2c433cc0cbc293bde2ac8ca9624f279b5d23fcf4", + "sourceRevision": "zai-org/GLM-Image@2c433cc0cbc293bde2ac8ca9624f279b5d23fcf4", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": ["mit. https://huggingface.co/zai-org/GLM-Image/tree/2c433cc0cbc293bde2ac8ca9624f279b5d23fcf4"], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "zai-org/GLM-Image@2c433cc0cbc293bde2ac8ca9624f279b5d23fcf4 https://huggingface.co/zai-org/GLM-Image/tree/2c433cc0cbc293bde2ac8ca9624f279b5d23fcf4" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", + "provenanceTemplateId": "forest_ferns" + }, + { + "path": "template-gallery/reviews/forest_ferns.original-review.json", + "sha256": "sha256:bytes:c736e68088c4a94fcec6574242c08e840dea34559d3802d63de6f2114f514f1c", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/zai-org/GLM-Image/tree/2c433cc0cbc293bde2ac8ca9624f279b5d23fcf4", + "sourceRevision": "zai-org/GLM-Image@2c433cc0cbc293bde2ac8ca9624f279b5d23fcf4", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": ["mit. https://huggingface.co/zai-org/GLM-Image/tree/2c433cc0cbc293bde2ac8ca9624f279b5d23fcf4"], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "zai-org/GLM-Image@2c433cc0cbc293bde2ac8ca9624f279b5d23fcf4 https://huggingface.co/zai-org/GLM-Image/tree/2c433cc0cbc293bde2ac8ca9624f279b5d23fcf4" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", + "provenanceTemplateId": "forest_ferns" + }, + { + "path": "template-gallery/reviews/forest_ferns.quality-review.json", + "sha256": "sha256:bytes:8d789319fd8de535f0e638a1fecdc2e65db93e1ff95104c7c63939437994529b", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/zai-org/GLM-Image/tree/2c433cc0cbc293bde2ac8ca9624f279b5d23fcf4", + "sourceRevision": "zai-org/GLM-Image@2c433cc0cbc293bde2ac8ca9624f279b5d23fcf4", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": ["mit. https://huggingface.co/zai-org/GLM-Image/tree/2c433cc0cbc293bde2ac8ca9624f279b5d23fcf4"], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "zai-org/GLM-Image@2c433cc0cbc293bde2ac8ca9624f279b5d23fcf4 https://huggingface.co/zai-org/GLM-Image/tree/2c433cc0cbc293bde2ac8ca9624f279b5d23fcf4" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", + "provenanceTemplateId": "forest_ferns" + }, + { + "path": "template-gallery/reviews/forest_ferns.retained-template-provenance.json", + "sha256": "sha256:bytes:8776590ac1201f5606eab7521d2ef8283f85cc48038acafdb3cbe60a11f91a82", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/zai-org/GLM-Image/tree/2c433cc0cbc293bde2ac8ca9624f279b5d23fcf4", + "sourceRevision": "zai-org/GLM-Image@2c433cc0cbc293bde2ac8ca9624f279b5d23fcf4", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": ["mit. https://huggingface.co/zai-org/GLM-Image/tree/2c433cc0cbc293bde2ac8ca9624f279b5d23fcf4"], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], - "requiredAttribution": [], + "requiredAttribution": [ + "zai-org/GLM-Image@2c433cc0cbc293bde2ac8ca9624f279b5d23fcf4 https://huggingface.co/zai-org/GLM-Image/tree/2c433cc0cbc293bde2ac8ca9624f279b5d23fcf4" + ], "assetLicense": "Apache-2.0", - "reviewedBy": "SOURAV DAS", - "reviewedAt": "2026-11-10", - "reviewClass": "per-file-maintainer-accepted-native-gallery-registration", - "provenanceTemplateId": "flux_lora_oil_painting", - "humanApprovalPacketSHA256": "73ddf9ea7fc27eccc6b93817809421a008ce0fd2fb3080ffbdc5831a09205304" + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", + "provenanceTemplateId": "forest_ferns" }, { - "path": "template-gallery/reviews/flux_lora_oil_painting.reviewed-provenance.json", - "sha256": "sha256:bytes:04e8530313e3bfcdf2c09550c17ffbe43aed0b4a28eaccf8b8153d217c2aa35f", + "path": "template-gallery/reviews/glasshouse_rain.original-provenance.json", + "sha256": "sha256:bytes:0dad28d294233db5c72915ddb9559f8eb2e4fba77cd8ebd8510a254ae0434083", "publishDecision": "approved", "holdReason": null, - "creatorOrRightsholder": "MoDiff project maintainers", - "creationMethod": "Project-authored Gallery manifest, native provenance or accepted quality review", - "sourceUrl": null, - "sourceRevision": null, - "sourceLicense": "Apache-2.0 project-authored metadata", - "modelTerms": [], + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b", + "sourceRevision": "stabilityai/stable-diffusion-xl-base-1.0@462165984030d82259a11f4367a4eed129e94a7b", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "CreativeML Open RAIL++-M. https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b" + ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], - "requiredAttribution": [], + "requiredAttribution": [ + "stabilityai/stable-diffusion-xl-base-1.0@462165984030d82259a11f4367a4eed129e94a7b https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b" + ], "assetLicense": "Apache-2.0", - "reviewedBy": "SOURAV DAS", - "reviewedAt": "2026-11-10", - "reviewClass": "per-file-maintainer-accepted-native-gallery-registration", - "provenanceTemplateId": "flux_lora_oil_painting", - "humanApprovalPacketSHA256": "73ddf9ea7fc27eccc6b93817809421a008ce0fd2fb3080ffbdc5831a09205304" + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", + "provenanceTemplateId": "glasshouse_rain" }, { - "path": "template-gallery/reviews/flux_lora_paper_cutout.quality-review.json", - "sha256": "sha256:bytes:badbd8d5727387a36c3a65bf2780ea931578ea3c6f1dc50421fcce0352cbb45f", + "path": "template-gallery/reviews/glasshouse_rain.original-review.json", + "sha256": "sha256:bytes:41b3e9a683bb5af2655b9e2874464a97a79eecdf987b93672f1ea3d142bed370", "publishDecision": "approved", "holdReason": null, - "creatorOrRightsholder": "MoDiff project maintainers", - "creationMethod": "Project-authored Gallery manifest, native provenance or accepted quality review", - "sourceUrl": null, - "sourceRevision": null, - "sourceLicense": "Apache-2.0 project-authored metadata", - "modelTerms": [], + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b", + "sourceRevision": "stabilityai/stable-diffusion-xl-base-1.0@462165984030d82259a11f4367a4eed129e94a7b", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "CreativeML Open RAIL++-M. https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b" + ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], - "requiredAttribution": [], + "requiredAttribution": [ + "stabilityai/stable-diffusion-xl-base-1.0@462165984030d82259a11f4367a4eed129e94a7b https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b" + ], "assetLicense": "Apache-2.0", - "reviewedBy": "SOURAV DAS", - "reviewedAt": "2026-11-10", - "reviewClass": "per-file-maintainer-accepted-native-gallery-registration", - "provenanceTemplateId": "flux_lora_paper_cutout", - "humanApprovalPacketSHA256": "73ddf9ea7fc27eccc6b93817809421a008ce0fd2fb3080ffbdc5831a09205304" + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", + "provenanceTemplateId": "glasshouse_rain" }, { - "path": "template-gallery/reviews/flux_lora_paper_cutout.reviewed-provenance.json", - "sha256": "sha256:bytes:0824474e69c3917b7cecea1fa9830e9a473b5b6f1a11bb3f3293bb8237f30f7e", + "path": "template-gallery/reviews/glasshouse_rain.quality-review.json", + "sha256": "sha256:bytes:da3cb94631be949ba21fcdf842135099dbc6992bfbf37cc9b30710d1fb997ca4", "publishDecision": "approved", "holdReason": null, - "creatorOrRightsholder": "MoDiff project maintainers", - "creationMethod": "Project-authored Gallery manifest, native provenance or accepted quality review", - "sourceUrl": null, - "sourceRevision": null, - "sourceLicense": "Apache-2.0 project-authored metadata", - "modelTerms": [], + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b", + "sourceRevision": "stabilityai/stable-diffusion-xl-base-1.0@462165984030d82259a11f4367a4eed129e94a7b", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "CreativeML Open RAIL++-M. https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b" + ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], - "requiredAttribution": [], + "requiredAttribution": [ + "stabilityai/stable-diffusion-xl-base-1.0@462165984030d82259a11f4367a4eed129e94a7b https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b" + ], "assetLicense": "Apache-2.0", - "reviewedBy": "SOURAV DAS", - "reviewedAt": "2026-11-10", - "reviewClass": "per-file-maintainer-accepted-native-gallery-registration", - "provenanceTemplateId": "flux_lora_paper_cutout", - "humanApprovalPacketSHA256": "73ddf9ea7fc27eccc6b93817809421a008ce0fd2fb3080ffbdc5831a09205304" + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", + "provenanceTemplateId": "glasshouse_rain" }, { - "path": "template-gallery/reviews/flux_lora_photoreal_documentary.quality-review.json", - "sha256": "sha256:bytes:36a405950da3e180bdea7d6912da7ec2d19ca8382e3f4a26bd9bb9e79cc5f6d6", + "path": "template-gallery/reviews/glasshouse_rain.retained-template-provenance.json", + "sha256": "sha256:bytes:fdd2f0c10865bfc619852978699d6ab58346d8a4d435b6ad24b706bf2aad4b88", "publishDecision": "approved", "holdReason": null, - "creatorOrRightsholder": "MoDiff project maintainers", - "creationMethod": "MoDiff-authored Gallery manifest, reviewed provenance or quality review for the accepted morning batch", - "sourceUrl": null, - "sourceRevision": null, - "sourceLicense": "Apache-2.0 project-authored metadata; generated-media terms remain in their exact per-file record", - "modelTerms": [], + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b", + "sourceRevision": "stabilityai/stable-diffusion-xl-base-1.0@462165984030d82259a11f4367a4eed129e94a7b", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "CreativeML Open RAIL++-M. https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b" + ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], - "requiredAttribution": [], + "requiredAttribution": [ + "stabilityai/stable-diffusion-xl-base-1.0@462165984030d82259a11f4367a4eed129e94a7b https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b" + ], "assetLicense": "Apache-2.0", - "reviewedBy": "SOURAV DAS", - "reviewedAt": "2026-11-10", - "reviewClass": "per-file-maintainer-approved-gallery-registration", - "provenanceTemplateId": "flux_lora_photoreal_documentary", - "humanApprovalPacketSHA256": "351d122936dc8df9c3fb6217005641dd2cc2ecddc39cd7cd7fadc2939def70b3" + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", + "provenanceTemplateId": "glasshouse_rain" }, { - "path": "template-gallery/reviews/flux_lora_photoreal_documentary.reviewed-provenance.json", - "sha256": "sha256:bytes:80b8756cfa9e3cc14716d82a93f7322b08d2f53901b913ab119258891fc4dffb", + "path": "template-gallery/reviews/high_quality.quality-review.json", + "sha256": "sha256:bytes:859a90999ac580d2dfbf45a39d26c475e2af362a6e5a95d72c6ff05626fca54c", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers", - "creationMethod": "MoDiff-authored Gallery manifest, reviewed provenance or quality review for the accepted morning batch", + "creationMethod": "MoDiff-authored technical provenance, Gallery manifest or quality review for the explicitly approved native Qwen bakery image", "sourceUrl": null, "sourceRevision": null, "sourceLicense": "Apache-2.0 project-authored metadata; generated-media terms remain in their exact per-file record", @@ -12365,17 +13791,17 @@ "assetLicense": "Apache-2.0", "reviewedBy": "SOURAV DAS", "reviewedAt": "2026-11-10", - "reviewClass": "per-file-maintainer-approved-gallery-registration", - "provenanceTemplateId": "flux_lora_photoreal_documentary", - "humanApprovalPacketSHA256": "351d122936dc8df9c3fb6217005641dd2cc2ecddc39cd7cd7fadc2939def70b3" + "reviewClass": "per-file-human-approved-qwen-native-image-registration", + "provenanceTemplateId": "high_quality", + "humanApprovalPacketSHA256": "dcea9bcff1de179dad3357926933fe869b99c063cee0f4dc1764833e3cf3ea53" }, { - "path": "template-gallery/reviews/flux_lora_retro_comic.quality-review.json", - "sha256": "sha256:bytes:4436655b45348e57831e147e268e80be4759cd5aec0e6e0eb8d6f1530de06435", + "path": "template-gallery/reviews/high_quality.reviewed-provenance.json", + "sha256": "sha256:bytes:082cd7fc2b3345ff6bf881df607e19dc9e175081e2f029cf01f2abdafcbc17d4", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers", - "creationMethod": "MoDiff-authored Gallery manifest, reviewed provenance or quality review for the accepted morning batch", + "creationMethod": "MoDiff-authored technical provenance, Gallery manifest or quality review for the explicitly approved native Qwen bakery image", "sourceUrl": null, "sourceRevision": null, "sourceLicense": "Apache-2.0 project-authored metadata; generated-media terms remain in their exact per-file record", @@ -12387,303 +13813,350 @@ "assetLicense": "Apache-2.0", "reviewedBy": "SOURAV DAS", "reviewedAt": "2026-11-10", - "reviewClass": "per-file-maintainer-approved-gallery-registration", - "provenanceTemplateId": "flux_lora_retro_comic", - "humanApprovalPacketSHA256": "351d122936dc8df9c3fb6217005641dd2cc2ecddc39cd7cd7fadc2939def70b3" + "reviewClass": "per-file-human-approved-qwen-native-image-registration", + "provenanceTemplateId": "high_quality", + "humanApprovalPacketSHA256": "dcea9bcff1de179dad3357926933fe869b99c063cee0f4dc1764833e3cf3ea53" }, { - "path": "template-gallery/reviews/flux_lora_retro_comic.reviewed-provenance.json", - "sha256": "sha256:bytes:3e44966400c118ba7ea67c8c511dcd0aad51a7e59d64bf1d4a0b96566a96f3e2", + "path": "template-gallery/reviews/hunyuan_dit_coastal_lighthouse.original-provenance.json", + "sha256": "sha256:bytes:cc5c37061625ef1e2bebb027601e368286272e22d4c68cbe63ea690cfe5871ae", "publishDecision": "approved", "holdReason": null, - "creatorOrRightsholder": "MoDiff project maintainers", - "creationMethod": "MoDiff-authored Gallery manifest, reviewed provenance or quality review for the accepted morning batch", - "sourceUrl": null, - "sourceRevision": null, - "sourceLicense": "Apache-2.0 project-authored metadata; generated-media terms remain in their exact per-file record", - "modelTerms": [], + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/Tencent-Hunyuan/HunyuanDiT-v1.2-Diffusers-Distilled/tree/ba991d1546d8c50936c4c16398ed0a87b9b99fb1", + "sourceRevision": "Tencent-Hunyuan/HunyuanDiT-v1.2-Diffusers-Distilled@ba991d1546d8c50936c4c16398ed0a87b9b99fb1", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "Publisher model terms at https://huggingface.co/Tencent-Hunyuan/HunyuanDiT-v1.2-Diffusers-Distilled/tree/ba991d1546d8c50936c4c16398ed0a87b9b99fb1" + ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], - "requiredAttribution": [], + "requiredAttribution": [ + "Tencent-Hunyuan/HunyuanDiT-v1.2-Diffusers-Distilled@ba991d1546d8c50936c4c16398ed0a87b9b99fb1 https://huggingface.co/Tencent-Hunyuan/HunyuanDiT-v1.2-Diffusers-Distilled/tree/ba991d1546d8c50936c4c16398ed0a87b9b99fb1" + ], "assetLicense": "Apache-2.0", - "reviewedBy": "SOURAV DAS", - "reviewedAt": "2026-11-10", - "reviewClass": "per-file-maintainer-approved-gallery-registration", - "provenanceTemplateId": "flux_lora_retro_comic", - "humanApprovalPacketSHA256": "351d122936dc8df9c3fb6217005641dd2cc2ecddc39cd7cd7fadc2939def70b3" + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "c2df9edb92f8ff905b6c9a138a285e67c621f3d2dfa3232f859aaf963b725aca", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "hunyuan_dit_coastal_lighthouse" }, { - "path": "template-gallery/reviews/flux_lora_watercolor.quality-review.json", - "sha256": "sha256:bytes:3454f88eecab20d70370fe23bbd9248d6e6e3255d0fbfc557a2f1103c94e7ef4", + "path": "template-gallery/reviews/hunyuan_dit_coastal_lighthouse.original-review.json", + "sha256": "sha256:bytes:ce4389778a7088b592491f31f36d88e5ea83a438d937a9b4c4cb61facc98c0ee", "publishDecision": "approved", "holdReason": null, - "creatorOrRightsholder": "MoDiff project maintainers", - "creationMethod": "MoDiff-authored Gallery manifest, reviewed provenance or quality review for the accepted morning batch", - "sourceUrl": null, - "sourceRevision": null, - "sourceLicense": "Apache-2.0 project-authored metadata; generated-media terms remain in their exact per-file record", - "modelTerms": [], + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/Tencent-Hunyuan/HunyuanDiT-v1.2-Diffusers-Distilled/tree/ba991d1546d8c50936c4c16398ed0a87b9b99fb1", + "sourceRevision": "Tencent-Hunyuan/HunyuanDiT-v1.2-Diffusers-Distilled@ba991d1546d8c50936c4c16398ed0a87b9b99fb1", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "Publisher model terms at https://huggingface.co/Tencent-Hunyuan/HunyuanDiT-v1.2-Diffusers-Distilled/tree/ba991d1546d8c50936c4c16398ed0a87b9b99fb1" + ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], - "requiredAttribution": [], + "requiredAttribution": [ + "Tencent-Hunyuan/HunyuanDiT-v1.2-Diffusers-Distilled@ba991d1546d8c50936c4c16398ed0a87b9b99fb1 https://huggingface.co/Tencent-Hunyuan/HunyuanDiT-v1.2-Diffusers-Distilled/tree/ba991d1546d8c50936c4c16398ed0a87b9b99fb1" + ], "assetLicense": "Apache-2.0", - "reviewedBy": "SOURAV DAS", - "reviewedAt": "2026-11-10", - "reviewClass": "per-file-maintainer-approved-gallery-registration", - "provenanceTemplateId": "flux_lora_watercolor", - "humanApprovalPacketSHA256": "351d122936dc8df9c3fb6217005641dd2cc2ecddc39cd7cd7fadc2939def70b3" + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "c2df9edb92f8ff905b6c9a138a285e67c621f3d2dfa3232f859aaf963b725aca", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "hunyuan_dit_coastal_lighthouse" }, { - "path": "template-gallery/reviews/flux_lora_watercolor.reviewed-provenance.json", - "sha256": "sha256:bytes:c51b9dfb5471d1f0f704852672152a09f0c01aeeaee7f5dd0b324e5652fe8b6f", + "path": "template-gallery/reviews/hunyuan_dit_coastal_lighthouse.quality-review.json", + "sha256": "sha256:bytes:1954559ecbd9de2986fffc2134ea20628a05ada4a85bf2db8a40137a02bedee6", "publishDecision": "approved", "holdReason": null, - "creatorOrRightsholder": "MoDiff project maintainers", - "creationMethod": "MoDiff-authored Gallery manifest, reviewed provenance or quality review for the accepted morning batch", - "sourceUrl": null, - "sourceRevision": null, - "sourceLicense": "Apache-2.0 project-authored metadata; generated-media terms remain in their exact per-file record", - "modelTerms": [], + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/Tencent-Hunyuan/HunyuanDiT-v1.2-Diffusers-Distilled/tree/ba991d1546d8c50936c4c16398ed0a87b9b99fb1", + "sourceRevision": "Tencent-Hunyuan/HunyuanDiT-v1.2-Diffusers-Distilled@ba991d1546d8c50936c4c16398ed0a87b9b99fb1", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "Publisher model terms at https://huggingface.co/Tencent-Hunyuan/HunyuanDiT-v1.2-Diffusers-Distilled/tree/ba991d1546d8c50936c4c16398ed0a87b9b99fb1" + ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], - "requiredAttribution": [], + "requiredAttribution": [ + "Tencent-Hunyuan/HunyuanDiT-v1.2-Diffusers-Distilled@ba991d1546d8c50936c4c16398ed0a87b9b99fb1 https://huggingface.co/Tencent-Hunyuan/HunyuanDiT-v1.2-Diffusers-Distilled/tree/ba991d1546d8c50936c4c16398ed0a87b9b99fb1" + ], "assetLicense": "Apache-2.0", - "reviewedBy": "SOURAV DAS", - "reviewedAt": "2026-11-10", - "reviewClass": "per-file-maintainer-approved-gallery-registration", - "provenanceTemplateId": "flux_lora_watercolor", - "humanApprovalPacketSHA256": "351d122936dc8df9c3fb6217005641dd2cc2ecddc39cd7cd7fadc2939def70b3" + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "c2df9edb92f8ff905b6c9a138a285e67c621f3d2dfa3232f859aaf963b725aca", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "hunyuan_dit_coastal_lighthouse" }, { - "creatorOrRightsholder": "MoDiff project maintainers", - "creationMethod": "Project-authored redacted technical/review records or versioned declarations for six maintainer-accepted native results", - "sourceUrl": null, - "sourceRevision": null, - "sourceLicense": "Apache-2.0 project-authored metadata; media and model terms remain separate", - "modelTerms": [], + "path": "template-gallery/reviews/hunyuan_dit_coastal_lighthouse.retained-template-provenance.json", + "sha256": "sha256:bytes:abcd8ff508cca890cb7be179f5e85d5d0f6eed116e47ec2faad168a174d0d9e0", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/Tencent-Hunyuan/HunyuanDiT-v1.2-Diffusers-Distilled/tree/ba991d1546d8c50936c4c16398ed0a87b9b99fb1", + "sourceRevision": "Tencent-Hunyuan/HunyuanDiT-v1.2-Diffusers-Distilled@ba991d1546d8c50936c4c16398ed0a87b9b99fb1", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "Publisher model terms at https://huggingface.co/Tencent-Hunyuan/HunyuanDiT-v1.2-Diffusers-Distilled/tree/ba991d1546d8c50936c4c16398ed0a87b9b99fb1" + ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], - "requiredAttribution": [], + "requiredAttribution": [ + "Tencent-Hunyuan/HunyuanDiT-v1.2-Diffusers-Distilled@ba991d1546d8c50936c4c16398ed0a87b9b99fb1 https://huggingface.co/Tencent-Hunyuan/HunyuanDiT-v1.2-Diffusers-Distilled/tree/ba991d1546d8c50936c4c16398ed0a87b9b99fb1" + ], "assetLicense": "Apache-2.0", - "path": "template-gallery/reviews/flux_redux_edit.quality-review.json", - "sha256": "sha256:bytes:10afc2e145791fb240bdcce1bcfbcee80280f5bec4cd15afe64985da51129788", - "publishDecision": "approved", - "holdReason": null, - "reviewedBy": "SOURAV DAS", - "reviewedAt": "2026-11-13", - "reviewClass": "per-file-maintainer-accepted-native-six-registration", - "humanApprovalPacketSHA256": "03b66b4631afb15032d62a1705331b56f6b12c4882c23945175ec92cc45a506f", - "publicationBasis": "Register the six approved assets now while Moonflower runs on Linux. Use Windows in parallel wherever possible, and keep the longer workflows separate for AMD cloud.", - "provenanceTemplateId": "flux_redux_edit" + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "c2df9edb92f8ff905b6c9a138a285e67c621f3d2dfa3232f859aaf963b725aca", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "hunyuan_dit_coastal_lighthouse" }, { - "creatorOrRightsholder": "MoDiff project maintainers", - "creationMethod": "Project-authored redacted technical/review records or versioned declarations for six maintainer-accepted native results", - "sourceUrl": null, - "sourceRevision": null, - "sourceLicense": "Apache-2.0 project-authored metadata; media and model terms remain separate", - "modelTerms": [], + "path": "template-gallery/reviews/hunyuan_dit_green_glass_study.original-provenance.json", + "sha256": "sha256:bytes:293d3b5128a5dec99d0371bc1402731b1264231127d73a9c85759048daee7bdb", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/Tencent-Hunyuan/HunyuanDiT-v1.2-Diffusers-Distilled/tree/ba991d1546d8c50936c4c16398ed0a87b9b99fb1", + "sourceRevision": "Tencent-Hunyuan/HunyuanDiT-v1.2-Diffusers-Distilled@ba991d1546d8c50936c4c16398ed0a87b9b99fb1", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "Publisher model terms at https://huggingface.co/Tencent-Hunyuan/HunyuanDiT-v1.2-Diffusers-Distilled/tree/ba991d1546d8c50936c4c16398ed0a87b9b99fb1" + ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], - "requiredAttribution": [], + "requiredAttribution": [ + "Tencent-Hunyuan/HunyuanDiT-v1.2-Diffusers-Distilled@ba991d1546d8c50936c4c16398ed0a87b9b99fb1 https://huggingface.co/Tencent-Hunyuan/HunyuanDiT-v1.2-Diffusers-Distilled/tree/ba991d1546d8c50936c4c16398ed0a87b9b99fb1" + ], "assetLicense": "Apache-2.0", - "path": "template-gallery/reviews/flux_redux_edit.reviewed-provenance.json", - "sha256": "sha256:bytes:88dc41a06a6fa368953d24f0d20c0700a375465b6c49591653c5471754690c00", - "publishDecision": "approved", - "holdReason": null, - "reviewedBy": "SOURAV DAS", - "reviewedAt": "2026-11-13", - "reviewClass": "per-file-maintainer-accepted-native-six-registration", - "humanApprovalPacketSHA256": "03b66b4631afb15032d62a1705331b56f6b12c4882c23945175ec92cc45a506f", - "publicationBasis": "Register the six approved assets now while Moonflower runs on Linux. Use Windows in parallel wherever possible, and keep the longer workflows separate for AMD cloud.", - "provenanceTemplateId": "flux_redux_edit" + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "3968c7cbe37a94789a9f839d8e83a9e0f102629b797d5f7baacf0304a8d18153", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "hunyuan_dit_green_glass_study" }, { - "creatorOrRightsholder": "MoDiff project maintainers", - "creationMethod": "Project-authored redacted technical/review records or versioned declarations for two maintainer-accepted native replacements", - "sourceUrl": null, - "sourceRevision": null, - "sourceLicense": "Apache-2.0 project-authored metadata; media and model terms remain separate", - "modelTerms": [], + "path": "template-gallery/reviews/hunyuan_dit_green_glass_study.original-review.json", + "sha256": "sha256:bytes:40f0a76223a6da7fd9be445ca991c684ca1efdd45ef86e695b1f27d493b3a1f0", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/Tencent-Hunyuan/HunyuanDiT-v1.2-Diffusers-Distilled/tree/ba991d1546d8c50936c4c16398ed0a87b9b99fb1", + "sourceRevision": "Tencent-Hunyuan/HunyuanDiT-v1.2-Diffusers-Distilled@ba991d1546d8c50936c4c16398ed0a87b9b99fb1", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "Publisher model terms at https://huggingface.co/Tencent-Hunyuan/HunyuanDiT-v1.2-Diffusers-Distilled/tree/ba991d1546d8c50936c4c16398ed0a87b9b99fb1" + ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], - "requiredAttribution": [], + "requiredAttribution": [ + "Tencent-Hunyuan/HunyuanDiT-v1.2-Diffusers-Distilled@ba991d1546d8c50936c4c16398ed0a87b9b99fb1 https://huggingface.co/Tencent-Hunyuan/HunyuanDiT-v1.2-Diffusers-Distilled/tree/ba991d1546d8c50936c4c16398ed0a87b9b99fb1" + ], "assetLicense": "Apache-2.0", - "path": "template-gallery/reviews/flux_redux_multi_reference.quality-review.json", - "sha256": "sha256:bytes:1e4c83b2db81df7e43b8e79a9a01cc8eadfd2de6c826c218d0c31b50d95b7441", - "publishDecision": "approved", - "holdReason": null, - "reviewedBy": "SOURAV DAS", - "reviewedAt": "2026-11-15", - "reviewClass": "per-file-maintainer-accepted-native-two-registration", - "humanApprovalPacketSHA256": "c3c5e06d05771cf28f823e1dee31a9e7e3765d2f84038823aaadc505ee8290f5", - "publicationBasis": "you can register these two as well", - "provenanceTemplateId": "flux_redux_multi_reference" + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "3968c7cbe37a94789a9f839d8e83a9e0f102629b797d5f7baacf0304a8d18153", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "hunyuan_dit_green_glass_study" }, { - "creatorOrRightsholder": "MoDiff project maintainers", - "creationMethod": "Project-authored redacted technical/review records or versioned declarations for two maintainer-accepted native replacements", - "sourceUrl": null, - "sourceRevision": null, - "sourceLicense": "Apache-2.0 project-authored metadata; media and model terms remain separate", - "modelTerms": [], + "path": "template-gallery/reviews/hunyuan_dit_green_glass_study.quality-review.json", + "sha256": "sha256:bytes:c0da5754ab4ed0b3106fc0ac394cc83d47ae24431669a6e50014dbe5ac2dbdc3", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/Tencent-Hunyuan/HunyuanDiT-v1.2-Diffusers-Distilled/tree/ba991d1546d8c50936c4c16398ed0a87b9b99fb1", + "sourceRevision": "Tencent-Hunyuan/HunyuanDiT-v1.2-Diffusers-Distilled@ba991d1546d8c50936c4c16398ed0a87b9b99fb1", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "Publisher model terms at https://huggingface.co/Tencent-Hunyuan/HunyuanDiT-v1.2-Diffusers-Distilled/tree/ba991d1546d8c50936c4c16398ed0a87b9b99fb1" + ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], - "requiredAttribution": [], + "requiredAttribution": [ + "Tencent-Hunyuan/HunyuanDiT-v1.2-Diffusers-Distilled@ba991d1546d8c50936c4c16398ed0a87b9b99fb1 https://huggingface.co/Tencent-Hunyuan/HunyuanDiT-v1.2-Diffusers-Distilled/tree/ba991d1546d8c50936c4c16398ed0a87b9b99fb1" + ], "assetLicense": "Apache-2.0", - "path": "template-gallery/reviews/flux_redux_multi_reference.reviewed-provenance.json", - "sha256": "sha256:bytes:dd1ea7815bc1bc51589ef774cc1f412b3f8bc2f16a7204a8efe56469913d8179", - "publishDecision": "approved", - "holdReason": null, - "reviewedBy": "SOURAV DAS", - "reviewedAt": "2026-11-15", - "reviewClass": "per-file-maintainer-accepted-native-two-registration", - "humanApprovalPacketSHA256": "c3c5e06d05771cf28f823e1dee31a9e7e3765d2f84038823aaadc505ee8290f5", - "publicationBasis": "you can register these two as well", - "provenanceTemplateId": "flux_redux_multi_reference" + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "3968c7cbe37a94789a9f839d8e83a9e0f102629b797d5f7baacf0304a8d18153", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "hunyuan_dit_green_glass_study" }, { - "path": "template-gallery/reviews/flux_schnell_text_to_image.quality-review.json", - "sha256": "sha256:bytes:5eeda44bb0b251f27d30973ad62659d2d247f1ab620eb4b48af154385958530e", + "path": "template-gallery/reviews/hunyuan_dit_green_glass_study.retained-template-provenance.json", + "sha256": "sha256:bytes:db66437531e3bdeb92c4d409db6dcea15a834b1c2e5a05a4d93b5442db6568cc", "publishDecision": "approved", "holdReason": null, - "creatorOrRightsholder": "MoDiff project maintainers", - "creationMethod": "MoDiff-authored technical provenance, Gallery manifest or quality review for the explicitly approved retained native Linux FLUX.1 Schnell image", - "sourceUrl": null, - "sourceRevision": null, - "sourceLicense": "Apache-2.0 project-authored metadata; generated-media terms remain in their exact per-file record", - "modelTerms": [], + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/Tencent-Hunyuan/HunyuanDiT-v1.2-Diffusers-Distilled/tree/ba991d1546d8c50936c4c16398ed0a87b9b99fb1", + "sourceRevision": "Tencent-Hunyuan/HunyuanDiT-v1.2-Diffusers-Distilled@ba991d1546d8c50936c4c16398ed0a87b9b99fb1", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "Publisher model terms at https://huggingface.co/Tencent-Hunyuan/HunyuanDiT-v1.2-Diffusers-Distilled/tree/ba991d1546d8c50936c4c16398ed0a87b9b99fb1" + ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], - "requiredAttribution": [], + "requiredAttribution": [ + "Tencent-Hunyuan/HunyuanDiT-v1.2-Diffusers-Distilled@ba991d1546d8c50936c4c16398ed0a87b9b99fb1 https://huggingface.co/Tencent-Hunyuan/HunyuanDiT-v1.2-Diffusers-Distilled/tree/ba991d1546d8c50936c4c16398ed0a87b9b99fb1" + ], "assetLicense": "Apache-2.0", - "reviewedBy": "SOURAV DAS", - "reviewedAt": "2026-11-10", - "reviewClass": "per-file-human-approved-retained-schnell-limited-image-registration", - "provenanceTemplateId": "flux_schnell_text_to_image", - "humanApprovalPacketSHA256": "488dc05971842cc9ed2b31c5995de204015d8b6a975ebc917329dfe3eac71d2c" + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "3968c7cbe37a94789a9f839d8e83a9e0f102629b797d5f7baacf0304a8d18153", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "hunyuan_dit_green_glass_study" }, { - "path": "template-gallery/reviews/flux_schnell_text_to_image.reviewed-provenance.json", - "sha256": "sha256:bytes:ccf1ec3ab127ce8c01008df4a8a323bac0548e83679281d58c7d77a964ae07a9", + "path": "template-gallery/reviews/hunyuan_pag_burgundy_knight.original-provenance.json", + "sha256": "sha256:bytes:c2c30ee01a229dc1a2eafbc42f8e22d19626533c158ebeb4211ddc64f1ac9a9c", "publishDecision": "approved", "holdReason": null, - "creatorOrRightsholder": "MoDiff project maintainers", - "creationMethod": "MoDiff-authored technical provenance, Gallery manifest or quality review for the explicitly approved retained native Linux FLUX.1 Schnell image", - "sourceUrl": null, - "sourceRevision": null, - "sourceLicense": "Apache-2.0 project-authored metadata; generated-media terms remain in their exact per-file record", - "modelTerms": [], + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/Tencent-Hunyuan/HunyuanDiT-v1.2-Diffusers-Distilled/tree/ba991d1546d8c50936c4c16398ed0a87b9b99fb1", + "sourceRevision": "Tencent-Hunyuan/HunyuanDiT-v1.2-Diffusers-Distilled@ba991d1546d8c50936c4c16398ed0a87b9b99fb1", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "Publisher model terms at https://huggingface.co/Tencent-Hunyuan/HunyuanDiT-v1.2-Diffusers-Distilled/tree/ba991d1546d8c50936c4c16398ed0a87b9b99fb1" + ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], - "requiredAttribution": [], + "requiredAttribution": [ + "Tencent-Hunyuan/HunyuanDiT-v1.2-Diffusers-Distilled@ba991d1546d8c50936c4c16398ed0a87b9b99fb1 https://huggingface.co/Tencent-Hunyuan/HunyuanDiT-v1.2-Diffusers-Distilled/tree/ba991d1546d8c50936c4c16398ed0a87b9b99fb1" + ], "assetLicense": "Apache-2.0", - "reviewedBy": "SOURAV DAS", - "reviewedAt": "2026-11-10", - "reviewClass": "per-file-human-approved-retained-schnell-limited-image-registration", - "provenanceTemplateId": "flux_schnell_text_to_image", - "humanApprovalPacketSHA256": "488dc05971842cc9ed2b31c5995de204015d8b6a975ebc917329dfe3eac71d2c" + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "c2df9edb92f8ff905b6c9a138a285e67c621f3d2dfa3232f859aaf963b725aca", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "hunyuan_pag_burgundy_knight" }, { - "path": "template-gallery/reviews/forest_ferns.original-provenance.json", - "sha256": "sha256:bytes:9f3dbdc8c7c6c2bbd65792b2d1b958cc21e1aeb44489af772f6e1d8e14b1932b", + "path": "template-gallery/reviews/hunyuan_pag_burgundy_knight.original-review.json", + "sha256": "sha256:bytes:b472ba6d082486f25d5c17cf3da66d6d376e9add58924f6d0acbee2e21552588", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/zai-org/GLM-Image/tree/2c433cc0cbc293bde2ac8ca9624f279b5d23fcf4", - "sourceRevision": "zai-org/GLM-Image@2c433cc0cbc293bde2ac8ca9624f279b5d23fcf4", + "sourceUrl": "https://huggingface.co/Tencent-Hunyuan/HunyuanDiT-v1.2-Diffusers-Distilled/tree/ba991d1546d8c50936c4c16398ed0a87b9b99fb1", + "sourceRevision": "Tencent-Hunyuan/HunyuanDiT-v1.2-Diffusers-Distilled@ba991d1546d8c50936c4c16398ed0a87b9b99fb1", "sourceLicense": "MoDiff-authored Gallery metadata", - "modelTerms": ["mit. https://huggingface.co/zai-org/GLM-Image/tree/2c433cc0cbc293bde2ac8ca9624f279b5d23fcf4"], + "modelTerms": [ + "Publisher model terms at https://huggingface.co/Tencent-Hunyuan/HunyuanDiT-v1.2-Diffusers-Distilled/tree/ba991d1546d8c50936c4c16398ed0a87b9b99fb1" + ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "zai-org/GLM-Image@2c433cc0cbc293bde2ac8ca9624f279b5d23fcf4 https://huggingface.co/zai-org/GLM-Image/tree/2c433cc0cbc293bde2ac8ca9624f279b5d23fcf4" + "Tencent-Hunyuan/HunyuanDiT-v1.2-Diffusers-Distilled@ba991d1546d8c50936c4c16398ed0a87b9b99fb1 https://huggingface.co/Tencent-Hunyuan/HunyuanDiT-v1.2-Diffusers-Distilled/tree/ba991d1546d8c50936c4c16398ed0a87b9b99fb1" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", - "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", - "provenanceTemplateId": "forest_ferns" + "humanApprovalPacketSHA256": "c2df9edb92f8ff905b6c9a138a285e67c621f3d2dfa3232f859aaf963b725aca", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "hunyuan_pag_burgundy_knight" }, { - "path": "template-gallery/reviews/forest_ferns.original-review.json", - "sha256": "sha256:bytes:c736e68088c4a94fcec6574242c08e840dea34559d3802d63de6f2114f514f1c", + "path": "template-gallery/reviews/hunyuan_pag_burgundy_knight.quality-review.json", + "sha256": "sha256:bytes:f771127b2e2c8e93148f34e1ab5901488a5c7129f3e8608dcf5a9951f3e12645", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/zai-org/GLM-Image/tree/2c433cc0cbc293bde2ac8ca9624f279b5d23fcf4", - "sourceRevision": "zai-org/GLM-Image@2c433cc0cbc293bde2ac8ca9624f279b5d23fcf4", + "sourceUrl": "https://huggingface.co/Tencent-Hunyuan/HunyuanDiT-v1.2-Diffusers-Distilled/tree/ba991d1546d8c50936c4c16398ed0a87b9b99fb1", + "sourceRevision": "Tencent-Hunyuan/HunyuanDiT-v1.2-Diffusers-Distilled@ba991d1546d8c50936c4c16398ed0a87b9b99fb1", "sourceLicense": "MoDiff-authored Gallery metadata", - "modelTerms": ["mit. https://huggingface.co/zai-org/GLM-Image/tree/2c433cc0cbc293bde2ac8ca9624f279b5d23fcf4"], + "modelTerms": [ + "Publisher model terms at https://huggingface.co/Tencent-Hunyuan/HunyuanDiT-v1.2-Diffusers-Distilled/tree/ba991d1546d8c50936c4c16398ed0a87b9b99fb1" + ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "zai-org/GLM-Image@2c433cc0cbc293bde2ac8ca9624f279b5d23fcf4 https://huggingface.co/zai-org/GLM-Image/tree/2c433cc0cbc293bde2ac8ca9624f279b5d23fcf4" + "Tencent-Hunyuan/HunyuanDiT-v1.2-Diffusers-Distilled@ba991d1546d8c50936c4c16398ed0a87b9b99fb1 https://huggingface.co/Tencent-Hunyuan/HunyuanDiT-v1.2-Diffusers-Distilled/tree/ba991d1546d8c50936c4c16398ed0a87b9b99fb1" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", - "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", - "provenanceTemplateId": "forest_ferns" + "humanApprovalPacketSHA256": "c2df9edb92f8ff905b6c9a138a285e67c621f3d2dfa3232f859aaf963b725aca", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "hunyuan_pag_burgundy_knight" }, { - "path": "template-gallery/reviews/forest_ferns.quality-review.json", - "sha256": "sha256:bytes:8d789319fd8de535f0e638a1fecdc2e65db93e1ff95104c7c63939437994529b", + "path": "template-gallery/reviews/hunyuan_pag_burgundy_knight.retained-template-provenance.json", + "sha256": "sha256:bytes:dbbb8bbab6db6dd38ae97f532ed1a4c865d0a706c64ea02c4dbafa18b4ce1fea", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/zai-org/GLM-Image/tree/2c433cc0cbc293bde2ac8ca9624f279b5d23fcf4", - "sourceRevision": "zai-org/GLM-Image@2c433cc0cbc293bde2ac8ca9624f279b5d23fcf4", + "sourceUrl": "https://huggingface.co/Tencent-Hunyuan/HunyuanDiT-v1.2-Diffusers-Distilled/tree/ba991d1546d8c50936c4c16398ed0a87b9b99fb1", + "sourceRevision": "Tencent-Hunyuan/HunyuanDiT-v1.2-Diffusers-Distilled@ba991d1546d8c50936c4c16398ed0a87b9b99fb1", "sourceLicense": "MoDiff-authored Gallery metadata", - "modelTerms": ["mit. https://huggingface.co/zai-org/GLM-Image/tree/2c433cc0cbc293bde2ac8ca9624f279b5d23fcf4"], + "modelTerms": [ + "Publisher model terms at https://huggingface.co/Tencent-Hunyuan/HunyuanDiT-v1.2-Diffusers-Distilled/tree/ba991d1546d8c50936c4c16398ed0a87b9b99fb1" + ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "zai-org/GLM-Image@2c433cc0cbc293bde2ac8ca9624f279b5d23fcf4 https://huggingface.co/zai-org/GLM-Image/tree/2c433cc0cbc293bde2ac8ca9624f279b5d23fcf4" + "Tencent-Hunyuan/HunyuanDiT-v1.2-Diffusers-Distilled@ba991d1546d8c50936c4c16398ed0a87b9b99fb1 https://huggingface.co/Tencent-Hunyuan/HunyuanDiT-v1.2-Diffusers-Distilled/tree/ba991d1546d8c50936c4c16398ed0a87b9b99fb1" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", - "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", - "provenanceTemplateId": "forest_ferns" + "humanApprovalPacketSHA256": "c2df9edb92f8ff905b6c9a138a285e67c621f3d2dfa3232f859aaf963b725aca", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "hunyuan_pag_burgundy_knight" }, { - "path": "template-gallery/reviews/forest_ferns.retained-template-provenance.json", - "sha256": "sha256:bytes:8776590ac1201f5606eab7521d2ef8283f85cc48038acafdb3cbe60a11f91a82", + "path": "template-gallery/reviews/janus_red_enamel_teapot.original-provenance.json", + "sha256": "sha256:bytes:170501bd8a025aa58341bc17322a6c9f8448be401b7263fdc9c5e9b449d1cb87", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/zai-org/GLM-Image/tree/2c433cc0cbc293bde2ac8ca9624f279b5d23fcf4", - "sourceRevision": "zai-org/GLM-Image@2c433cc0cbc293bde2ac8ca9624f279b5d23fcf4", + "sourceUrl": "https://huggingface.co/deepseek-community/Janus-Pro-1B/tree/1655280bb75959cc1cb85529a2a8b26e7016072e", + "sourceRevision": "deepseek-community/Janus-Pro-1B@1655280bb75959cc1cb85529a2a8b26e7016072e", "sourceLicense": "MoDiff-authored Gallery metadata", - "modelTerms": ["mit. https://huggingface.co/zai-org/GLM-Image/tree/2c433cc0cbc293bde2ac8ca9624f279b5d23fcf4"], + "modelTerms": ["https://github.com/deepseek-ai/Janus/blob/main/LICENSE-MODEL"], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "zai-org/GLM-Image@2c433cc0cbc293bde2ac8ca9624f279b5d23fcf4 https://huggingface.co/zai-org/GLM-Image/tree/2c433cc0cbc293bde2ac8ca9624f279b5d23fcf4" + "deepseek-community/Janus-Pro-1B@1655280bb75959cc1cb85529a2a8b26e7016072e https://huggingface.co/deepseek-community/Janus-Pro-1B/tree/1655280bb75959cc1cb85529a2a8b26e7016072e" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", @@ -12691,26 +14164,24 @@ "reviewClass": "per-file-maintainer-accepted-retained-registration", "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", - "provenanceTemplateId": "forest_ferns" + "provenanceTemplateId": "janus_red_enamel_teapot" }, { - "path": "template-gallery/reviews/glasshouse_rain.original-provenance.json", - "sha256": "sha256:bytes:0dad28d294233db5c72915ddb9559f8eb2e4fba77cd8ebd8510a254ae0434083", + "path": "template-gallery/reviews/janus_red_enamel_teapot.original-review.json", + "sha256": "sha256:bytes:05d63ee8fe6f5ef33cb0ea16988861ffbbd99e0f7317b039b01c41a67eb4f5f8", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b", - "sourceRevision": "stabilityai/stable-diffusion-xl-base-1.0@462165984030d82259a11f4367a4eed129e94a7b", + "sourceUrl": "https://huggingface.co/deepseek-community/Janus-Pro-1B/tree/1655280bb75959cc1cb85529a2a8b26e7016072e", + "sourceRevision": "deepseek-community/Janus-Pro-1B@1655280bb75959cc1cb85529a2a8b26e7016072e", "sourceLicense": "MoDiff-authored Gallery metadata", - "modelTerms": [ - "CreativeML Open RAIL++-M. https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b" - ], + "modelTerms": ["https://github.com/deepseek-ai/Janus/blob/main/LICENSE-MODEL"], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "stabilityai/stable-diffusion-xl-base-1.0@462165984030d82259a11f4367a4eed129e94a7b https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b" + "deepseek-community/Janus-Pro-1B@1655280bb75959cc1cb85529a2a8b26e7016072e https://huggingface.co/deepseek-community/Janus-Pro-1B/tree/1655280bb75959cc1cb85529a2a8b26e7016072e" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", @@ -12718,26 +14189,24 @@ "reviewClass": "per-file-maintainer-accepted-retained-registration", "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", - "provenanceTemplateId": "glasshouse_rain" + "provenanceTemplateId": "janus_red_enamel_teapot" }, { - "path": "template-gallery/reviews/glasshouse_rain.original-review.json", - "sha256": "sha256:bytes:41b3e9a683bb5af2655b9e2874464a97a79eecdf987b93672f1ea3d142bed370", + "path": "template-gallery/reviews/janus_red_enamel_teapot.quality-review.json", + "sha256": "sha256:bytes:b9d911046c3faff978d22cb397ee2a95d23608240d18674dc68fb5b957783f90", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b", - "sourceRevision": "stabilityai/stable-diffusion-xl-base-1.0@462165984030d82259a11f4367a4eed129e94a7b", + "sourceUrl": "https://huggingface.co/deepseek-community/Janus-Pro-1B/tree/1655280bb75959cc1cb85529a2a8b26e7016072e", + "sourceRevision": "deepseek-community/Janus-Pro-1B@1655280bb75959cc1cb85529a2a8b26e7016072e", "sourceLicense": "MoDiff-authored Gallery metadata", - "modelTerms": [ - "CreativeML Open RAIL++-M. https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b" - ], + "modelTerms": ["https://github.com/deepseek-ai/Janus/blob/main/LICENSE-MODEL"], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "stabilityai/stable-diffusion-xl-base-1.0@462165984030d82259a11f4367a4eed129e94a7b https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b" + "deepseek-community/Janus-Pro-1B@1655280bb75959cc1cb85529a2a8b26e7016072e https://huggingface.co/deepseek-community/Janus-Pro-1B/tree/1655280bb75959cc1cb85529a2a8b26e7016072e" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", @@ -12745,26 +14214,24 @@ "reviewClass": "per-file-maintainer-accepted-retained-registration", "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", - "provenanceTemplateId": "glasshouse_rain" + "provenanceTemplateId": "janus_red_enamel_teapot" }, { - "path": "template-gallery/reviews/glasshouse_rain.quality-review.json", - "sha256": "sha256:bytes:da3cb94631be949ba21fcdf842135099dbc6992bfbf37cc9b30710d1fb997ca4", + "path": "template-gallery/reviews/janus_red_enamel_teapot.retained-template-provenance.json", + "sha256": "sha256:bytes:7fc41c79f10344c5621f2184f7086b4b33daf929d83e37e099e9c0e3fc16aa2d", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b", - "sourceRevision": "stabilityai/stable-diffusion-xl-base-1.0@462165984030d82259a11f4367a4eed129e94a7b", + "sourceUrl": "https://huggingface.co/deepseek-community/Janus-Pro-1B/tree/1655280bb75959cc1cb85529a2a8b26e7016072e", + "sourceRevision": "deepseek-community/Janus-Pro-1B@1655280bb75959cc1cb85529a2a8b26e7016072e", "sourceLicense": "MoDiff-authored Gallery metadata", - "modelTerms": [ - "CreativeML Open RAIL++-M. https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b" - ], + "modelTerms": ["https://github.com/deepseek-ai/Janus/blob/main/LICENSE-MODEL"], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "stabilityai/stable-diffusion-xl-base-1.0@462165984030d82259a11f4367a4eed129e94a7b https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b" + "deepseek-community/Janus-Pro-1B@1655280bb75959cc1cb85529a2a8b26e7016072e https://huggingface.co/deepseek-community/Janus-Pro-1B/tree/1655280bb75959cc1cb85529a2a8b26e7016072e" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", @@ -12772,26 +14239,24 @@ "reviewClass": "per-file-maintainer-accepted-retained-registration", "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", - "provenanceTemplateId": "glasshouse_rain" + "provenanceTemplateId": "janus_red_enamel_teapot" }, { - "path": "template-gallery/reviews/glasshouse_rain.retained-template-provenance.json", - "sha256": "sha256:bytes:fdd2f0c10865bfc619852978699d6ab58346d8a4d435b6ad24b706bf2aad4b88", + "path": "template-gallery/reviews/janus_red_triangle_caption.original-provenance.json", + "sha256": "sha256:bytes:3f6648332a0351e6904385e3d670550b1072c8539055ea6d827d3c7d3ee39510", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b", - "sourceRevision": "stabilityai/stable-diffusion-xl-base-1.0@462165984030d82259a11f4367a4eed129e94a7b", + "sourceUrl": "https://huggingface.co/deepseek-community/Janus-Pro-1B/tree/1655280bb75959cc1cb85529a2a8b26e7016072e", + "sourceRevision": "deepseek-community/Janus-Pro-1B@1655280bb75959cc1cb85529a2a8b26e7016072e", "sourceLicense": "MoDiff-authored Gallery metadata", - "modelTerms": [ - "CreativeML Open RAIL++-M. https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b" - ], + "modelTerms": ["https://github.com/deepseek-ai/Janus/blob/main/LICENSE-MODEL"], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "stabilityai/stable-diffusion-xl-base-1.0@462165984030d82259a11f4367a4eed129e94a7b https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b" + "deepseek-community/Janus-Pro-1B@1655280bb75959cc1cb85529a2a8b26e7016072e https://huggingface.co/deepseek-community/Janus-Pro-1B/tree/1655280bb75959cc1cb85529a2a8b26e7016072e" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", @@ -12799,775 +14264,741 @@ "reviewClass": "per-file-maintainer-accepted-retained-registration", "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", - "provenanceTemplateId": "glasshouse_rain" - }, - { - "path": "template-gallery/reviews/high_quality.quality-review.json", - "sha256": "sha256:bytes:859a90999ac580d2dfbf45a39d26c475e2af362a6e5a95d72c6ff05626fca54c", - "publishDecision": "approved", - "holdReason": null, - "creatorOrRightsholder": "MoDiff project maintainers", - "creationMethod": "MoDiff-authored technical provenance, Gallery manifest or quality review for the explicitly approved native Qwen bakery image", - "sourceUrl": null, - "sourceRevision": null, - "sourceLicense": "Apache-2.0 project-authored metadata; generated-media terms remain in their exact per-file record", - "modelTerms": [], - "aiGenerated": false, - "humanLikenessConsent": "not-applicable", - "marks": [], - "requiredAttribution": [], - "assetLicense": "Apache-2.0", - "reviewedBy": "SOURAV DAS", - "reviewedAt": "2026-11-10", - "reviewClass": "per-file-human-approved-qwen-native-image-registration", - "provenanceTemplateId": "high_quality", - "humanApprovalPacketSHA256": "dcea9bcff1de179dad3357926933fe869b99c063cee0f4dc1764833e3cf3ea53" - }, - { - "path": "template-gallery/reviews/high_quality.reviewed-provenance.json", - "sha256": "sha256:bytes:082cd7fc2b3345ff6bf881df607e19dc9e175081e2f029cf01f2abdafcbc17d4", - "publishDecision": "approved", - "holdReason": null, - "creatorOrRightsholder": "MoDiff project maintainers", - "creationMethod": "MoDiff-authored technical provenance, Gallery manifest or quality review for the explicitly approved native Qwen bakery image", - "sourceUrl": null, - "sourceRevision": null, - "sourceLicense": "Apache-2.0 project-authored metadata; generated-media terms remain in their exact per-file record", - "modelTerms": [], - "aiGenerated": false, - "humanLikenessConsent": "not-applicable", - "marks": [], - "requiredAttribution": [], - "assetLicense": "Apache-2.0", - "reviewedBy": "SOURAV DAS", - "reviewedAt": "2026-11-10", - "reviewClass": "per-file-human-approved-qwen-native-image-registration", - "provenanceTemplateId": "high_quality", - "humanApprovalPacketSHA256": "dcea9bcff1de179dad3357926933fe869b99c063cee0f4dc1764833e3cf3ea53" + "provenanceTemplateId": "janus_red_triangle_caption" }, { - "path": "template-gallery/reviews/hunyuan_dit_coastal_lighthouse.original-provenance.json", - "sha256": "sha256:bytes:cc5c37061625ef1e2bebb027601e368286272e22d4c68cbe63ea690cfe5871ae", + "path": "template-gallery/reviews/janus_red_triangle_caption.original-review.json", + "sha256": "sha256:bytes:f7b4652f53f7840da5338cc9e77215884c500ae59aa26e66fb83c84bb6e1ede8", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/Tencent-Hunyuan/HunyuanDiT-v1.2-Diffusers-Distilled/tree/ba991d1546d8c50936c4c16398ed0a87b9b99fb1", - "sourceRevision": "Tencent-Hunyuan/HunyuanDiT-v1.2-Diffusers-Distilled@ba991d1546d8c50936c4c16398ed0a87b9b99fb1", + "sourceUrl": "https://huggingface.co/deepseek-community/Janus-Pro-1B/tree/1655280bb75959cc1cb85529a2a8b26e7016072e", + "sourceRevision": "deepseek-community/Janus-Pro-1B@1655280bb75959cc1cb85529a2a8b26e7016072e", "sourceLicense": "MoDiff-authored Gallery metadata", - "modelTerms": [ - "Publisher model terms at https://huggingface.co/Tencent-Hunyuan/HunyuanDiT-v1.2-Diffusers-Distilled/tree/ba991d1546d8c50936c4c16398ed0a87b9b99fb1" - ], + "modelTerms": ["https://github.com/deepseek-ai/Janus/blob/main/LICENSE-MODEL"], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "Tencent-Hunyuan/HunyuanDiT-v1.2-Diffusers-Distilled@ba991d1546d8c50936c4c16398ed0a87b9b99fb1 https://huggingface.co/Tencent-Hunyuan/HunyuanDiT-v1.2-Diffusers-Distilled/tree/ba991d1546d8c50936c4c16398ed0a87b9b99fb1" + "deepseek-community/Janus-Pro-1B@1655280bb75959cc1cb85529a2a8b26e7016072e https://huggingface.co/deepseek-community/Janus-Pro-1B/tree/1655280bb75959cc1cb85529a2a8b26e7016072e" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "c2df9edb92f8ff905b6c9a138a285e67c621f3d2dfa3232f859aaf963b725aca", - "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", - "provenanceTemplateId": "hunyuan_dit_coastal_lighthouse" + "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", + "provenanceTemplateId": "janus_red_triangle_caption" }, { - "path": "template-gallery/reviews/hunyuan_dit_coastal_lighthouse.original-review.json", - "sha256": "sha256:bytes:ce4389778a7088b592491f31f36d88e5ea83a438d937a9b4c4cb61facc98c0ee", + "path": "template-gallery/reviews/janus_red_triangle_caption.quality-review.json", + "sha256": "sha256:bytes:03dd22b437f3d94f8789eed26ccf9c0de4fd24a2162e1bab3d1e164441077ef5", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/Tencent-Hunyuan/HunyuanDiT-v1.2-Diffusers-Distilled/tree/ba991d1546d8c50936c4c16398ed0a87b9b99fb1", - "sourceRevision": "Tencent-Hunyuan/HunyuanDiT-v1.2-Diffusers-Distilled@ba991d1546d8c50936c4c16398ed0a87b9b99fb1", + "sourceUrl": "https://huggingface.co/deepseek-community/Janus-Pro-1B/tree/1655280bb75959cc1cb85529a2a8b26e7016072e", + "sourceRevision": "deepseek-community/Janus-Pro-1B@1655280bb75959cc1cb85529a2a8b26e7016072e", "sourceLicense": "MoDiff-authored Gallery metadata", - "modelTerms": [ - "Publisher model terms at https://huggingface.co/Tencent-Hunyuan/HunyuanDiT-v1.2-Diffusers-Distilled/tree/ba991d1546d8c50936c4c16398ed0a87b9b99fb1" - ], + "modelTerms": ["https://github.com/deepseek-ai/Janus/blob/main/LICENSE-MODEL"], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "Tencent-Hunyuan/HunyuanDiT-v1.2-Diffusers-Distilled@ba991d1546d8c50936c4c16398ed0a87b9b99fb1 https://huggingface.co/Tencent-Hunyuan/HunyuanDiT-v1.2-Diffusers-Distilled/tree/ba991d1546d8c50936c4c16398ed0a87b9b99fb1" + "deepseek-community/Janus-Pro-1B@1655280bb75959cc1cb85529a2a8b26e7016072e https://huggingface.co/deepseek-community/Janus-Pro-1B/tree/1655280bb75959cc1cb85529a2a8b26e7016072e" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "c2df9edb92f8ff905b6c9a138a285e67c621f3d2dfa3232f859aaf963b725aca", - "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", - "provenanceTemplateId": "hunyuan_dit_coastal_lighthouse" + "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", + "provenanceTemplateId": "janus_red_triangle_caption" }, { - "path": "template-gallery/reviews/hunyuan_dit_coastal_lighthouse.quality-review.json", - "sha256": "sha256:bytes:1954559ecbd9de2986fffc2134ea20628a05ada4a85bf2db8a40137a02bedee6", + "path": "template-gallery/reviews/janus_red_triangle_caption.retained-template-provenance.json", + "sha256": "sha256:bytes:0e5cecab2d1a8c81c1b36c4e3b2fcd0799b327f94a61d9f4c55fac0ce1f16a9b", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/Tencent-Hunyuan/HunyuanDiT-v1.2-Diffusers-Distilled/tree/ba991d1546d8c50936c4c16398ed0a87b9b99fb1", - "sourceRevision": "Tencent-Hunyuan/HunyuanDiT-v1.2-Diffusers-Distilled@ba991d1546d8c50936c4c16398ed0a87b9b99fb1", + "sourceUrl": "https://huggingface.co/deepseek-community/Janus-Pro-1B/tree/1655280bb75959cc1cb85529a2a8b26e7016072e", + "sourceRevision": "deepseek-community/Janus-Pro-1B@1655280bb75959cc1cb85529a2a8b26e7016072e", "sourceLicense": "MoDiff-authored Gallery metadata", - "modelTerms": [ - "Publisher model terms at https://huggingface.co/Tencent-Hunyuan/HunyuanDiT-v1.2-Diffusers-Distilled/tree/ba991d1546d8c50936c4c16398ed0a87b9b99fb1" - ], + "modelTerms": ["https://github.com/deepseek-ai/Janus/blob/main/LICENSE-MODEL"], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "Tencent-Hunyuan/HunyuanDiT-v1.2-Diffusers-Distilled@ba991d1546d8c50936c4c16398ed0a87b9b99fb1 https://huggingface.co/Tencent-Hunyuan/HunyuanDiT-v1.2-Diffusers-Distilled/tree/ba991d1546d8c50936c4c16398ed0a87b9b99fb1" + "deepseek-community/Janus-Pro-1B@1655280bb75959cc1cb85529a2a8b26e7016072e https://huggingface.co/deepseek-community/Janus-Pro-1B/tree/1655280bb75959cc1cb85529a2a8b26e7016072e" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "c2df9edb92f8ff905b6c9a138a285e67c621f3d2dfa3232f859aaf963b725aca", - "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", - "provenanceTemplateId": "hunyuan_dit_coastal_lighthouse" + "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", + "provenanceTemplateId": "janus_red_triangle_caption" }, { - "path": "template-gallery/reviews/hunyuan_dit_coastal_lighthouse.retained-template-provenance.json", - "sha256": "sha256:bytes:abcd8ff508cca890cb7be179f5e85d5d0f6eed116e47ec2faad168a174d0d9e0", + "path": "template-gallery/reviews/janus_reykjavik_travel_note.original-provenance.json", + "sha256": "sha256:bytes:e691c32bc7b7eb4bd1bf7feae5773671d7e083d79e5bc9426ed5e768bc78d899", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/Tencent-Hunyuan/HunyuanDiT-v1.2-Diffusers-Distilled/tree/ba991d1546d8c50936c4c16398ed0a87b9b99fb1", - "sourceRevision": "Tencent-Hunyuan/HunyuanDiT-v1.2-Diffusers-Distilled@ba991d1546d8c50936c4c16398ed0a87b9b99fb1", + "sourceUrl": "https://huggingface.co/deepseek-community/Janus-Pro-1B/tree/1655280bb75959cc1cb85529a2a8b26e7016072e", + "sourceRevision": "deepseek-community/Janus-Pro-1B@1655280bb75959cc1cb85529a2a8b26e7016072e", "sourceLicense": "MoDiff-authored Gallery metadata", - "modelTerms": [ - "Publisher model terms at https://huggingface.co/Tencent-Hunyuan/HunyuanDiT-v1.2-Diffusers-Distilled/tree/ba991d1546d8c50936c4c16398ed0a87b9b99fb1" - ], + "modelTerms": ["https://github.com/deepseek-ai/Janus/blob/main/LICENSE-MODEL"], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "Tencent-Hunyuan/HunyuanDiT-v1.2-Diffusers-Distilled@ba991d1546d8c50936c4c16398ed0a87b9b99fb1 https://huggingface.co/Tencent-Hunyuan/HunyuanDiT-v1.2-Diffusers-Distilled/tree/ba991d1546d8c50936c4c16398ed0a87b9b99fb1" + "deepseek-community/Janus-Pro-1B@1655280bb75959cc1cb85529a2a8b26e7016072e https://huggingface.co/deepseek-community/Janus-Pro-1B/tree/1655280bb75959cc1cb85529a2a8b26e7016072e" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "c2df9edb92f8ff905b6c9a138a285e67c621f3d2dfa3232f859aaf963b725aca", - "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", - "provenanceTemplateId": "hunyuan_dit_coastal_lighthouse" + "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", + "provenanceTemplateId": "janus_reykjavik_travel_note" }, { - "path": "template-gallery/reviews/hunyuan_dit_green_glass_study.original-provenance.json", - "sha256": "sha256:bytes:293d3b5128a5dec99d0371bc1402731b1264231127d73a9c85759048daee7bdb", + "path": "template-gallery/reviews/janus_reykjavik_travel_note.original-review.json", + "sha256": "sha256:bytes:85c17c8b45a8df155a69a5de0e983b32ef5d9cc917cade0115bae566c861b088", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/Tencent-Hunyuan/HunyuanDiT-v1.2-Diffusers-Distilled/tree/ba991d1546d8c50936c4c16398ed0a87b9b99fb1", - "sourceRevision": "Tencent-Hunyuan/HunyuanDiT-v1.2-Diffusers-Distilled@ba991d1546d8c50936c4c16398ed0a87b9b99fb1", - "sourceLicense": "MoDiff-authored Gallery metadata", - "modelTerms": [ - "Publisher model terms at https://huggingface.co/Tencent-Hunyuan/HunyuanDiT-v1.2-Diffusers-Distilled/tree/ba991d1546d8c50936c4c16398ed0a87b9b99fb1" - ], + "sourceUrl": "https://huggingface.co/deepseek-community/Janus-Pro-1B/tree/1655280bb75959cc1cb85529a2a8b26e7016072e", + "sourceRevision": "deepseek-community/Janus-Pro-1B@1655280bb75959cc1cb85529a2a8b26e7016072e", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": ["https://github.com/deepseek-ai/Janus/blob/main/LICENSE-MODEL"], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "Tencent-Hunyuan/HunyuanDiT-v1.2-Diffusers-Distilled@ba991d1546d8c50936c4c16398ed0a87b9b99fb1 https://huggingface.co/Tencent-Hunyuan/HunyuanDiT-v1.2-Diffusers-Distilled/tree/ba991d1546d8c50936c4c16398ed0a87b9b99fb1" + "deepseek-community/Janus-Pro-1B@1655280bb75959cc1cb85529a2a8b26e7016072e https://huggingface.co/deepseek-community/Janus-Pro-1B/tree/1655280bb75959cc1cb85529a2a8b26e7016072e" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "3968c7cbe37a94789a9f839d8e83a9e0f102629b797d5f7baacf0304a8d18153", - "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", - "provenanceTemplateId": "hunyuan_dit_green_glass_study" + "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", + "provenanceTemplateId": "janus_reykjavik_travel_note" }, { - "path": "template-gallery/reviews/hunyuan_dit_green_glass_study.original-review.json", - "sha256": "sha256:bytes:40f0a76223a6da7fd9be445ca991c684ca1efdd45ef86e695b1f27d493b3a1f0", + "path": "template-gallery/reviews/janus_reykjavik_travel_note.quality-review.json", + "sha256": "sha256:bytes:08b83eb62ffdf911938d868f1be875cc895f472e9e48936acfaa93bbed96c709", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/Tencent-Hunyuan/HunyuanDiT-v1.2-Diffusers-Distilled/tree/ba991d1546d8c50936c4c16398ed0a87b9b99fb1", - "sourceRevision": "Tencent-Hunyuan/HunyuanDiT-v1.2-Diffusers-Distilled@ba991d1546d8c50936c4c16398ed0a87b9b99fb1", + "sourceUrl": "https://huggingface.co/deepseek-community/Janus-Pro-1B/tree/1655280bb75959cc1cb85529a2a8b26e7016072e", + "sourceRevision": "deepseek-community/Janus-Pro-1B@1655280bb75959cc1cb85529a2a8b26e7016072e", "sourceLicense": "MoDiff-authored Gallery metadata", - "modelTerms": [ - "Publisher model terms at https://huggingface.co/Tencent-Hunyuan/HunyuanDiT-v1.2-Diffusers-Distilled/tree/ba991d1546d8c50936c4c16398ed0a87b9b99fb1" - ], + "modelTerms": ["https://github.com/deepseek-ai/Janus/blob/main/LICENSE-MODEL"], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "Tencent-Hunyuan/HunyuanDiT-v1.2-Diffusers-Distilled@ba991d1546d8c50936c4c16398ed0a87b9b99fb1 https://huggingface.co/Tencent-Hunyuan/HunyuanDiT-v1.2-Diffusers-Distilled/tree/ba991d1546d8c50936c4c16398ed0a87b9b99fb1" + "deepseek-community/Janus-Pro-1B@1655280bb75959cc1cb85529a2a8b26e7016072e https://huggingface.co/deepseek-community/Janus-Pro-1B/tree/1655280bb75959cc1cb85529a2a8b26e7016072e" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "3968c7cbe37a94789a9f839d8e83a9e0f102629b797d5f7baacf0304a8d18153", - "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", - "provenanceTemplateId": "hunyuan_dit_green_glass_study" + "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", + "provenanceTemplateId": "janus_reykjavik_travel_note" }, { - "path": "template-gallery/reviews/hunyuan_dit_green_glass_study.quality-review.json", - "sha256": "sha256:bytes:c0da5754ab4ed0b3106fc0ac394cc83d47ae24431669a6e50014dbe5ac2dbdc3", + "path": "template-gallery/reviews/janus_reykjavik_travel_note.retained-template-provenance.json", + "sha256": "sha256:bytes:70da97c6adaef6d92f70d91e3aa549503dacb307ea94dd3115047cb3de17945b", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/Tencent-Hunyuan/HunyuanDiT-v1.2-Diffusers-Distilled/tree/ba991d1546d8c50936c4c16398ed0a87b9b99fb1", - "sourceRevision": "Tencent-Hunyuan/HunyuanDiT-v1.2-Diffusers-Distilled@ba991d1546d8c50936c4c16398ed0a87b9b99fb1", + "sourceUrl": "https://huggingface.co/deepseek-community/Janus-Pro-1B/tree/1655280bb75959cc1cb85529a2a8b26e7016072e", + "sourceRevision": "deepseek-community/Janus-Pro-1B@1655280bb75959cc1cb85529a2a8b26e7016072e", "sourceLicense": "MoDiff-authored Gallery metadata", - "modelTerms": [ - "Publisher model terms at https://huggingface.co/Tencent-Hunyuan/HunyuanDiT-v1.2-Diffusers-Distilled/tree/ba991d1546d8c50936c4c16398ed0a87b9b99fb1" - ], + "modelTerms": ["https://github.com/deepseek-ai/Janus/blob/main/LICENSE-MODEL"], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "Tencent-Hunyuan/HunyuanDiT-v1.2-Diffusers-Distilled@ba991d1546d8c50936c4c16398ed0a87b9b99fb1 https://huggingface.co/Tencent-Hunyuan/HunyuanDiT-v1.2-Diffusers-Distilled/tree/ba991d1546d8c50936c4c16398ed0a87b9b99fb1" + "deepseek-community/Janus-Pro-1B@1655280bb75959cc1cb85529a2a8b26e7016072e https://huggingface.co/deepseek-community/Janus-Pro-1B/tree/1655280bb75959cc1cb85529a2a8b26e7016072e" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "3968c7cbe37a94789a9f839d8e83a9e0f102629b797d5f7baacf0304a8d18153", - "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", - "provenanceTemplateId": "hunyuan_dit_green_glass_study" + "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", + "provenanceTemplateId": "janus_reykjavik_travel_note" }, { - "path": "template-gallery/reviews/hunyuan_dit_green_glass_study.retained-template-provenance.json", - "sha256": "sha256:bytes:db66437531e3bdeb92c4d409db6dcea15a834b1c2e5a05a4d93b5442db6568cc", + "path": "template-gallery/reviews/joy_plus_lavender_on_limestone.original-provenance.json", + "sha256": "sha256:bytes:1d38c6f1a9b8c9f496cfb0905e6b4e2c8dd25129110ebf28c86e1070178c1237", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/Tencent-Hunyuan/HunyuanDiT-v1.2-Diffusers-Distilled/tree/ba991d1546d8c50936c4c16398ed0a87b9b99fb1", - "sourceRevision": "Tencent-Hunyuan/HunyuanDiT-v1.2-Diffusers-Distilled@ba991d1546d8c50936c4c16398ed0a87b9b99fb1", + "sourceUrl": "https://huggingface.co/jdopensource/JoyAI-Image-Edit-Plus-Diffusers/tree/c2686460c7b64d8aa11bc4d0da423fb316b33f9e", + "sourceRevision": "jdopensource/JoyAI-Image-Edit-Plus-Diffusers@c2686460c7b64d8aa11bc4d0da423fb316b33f9e", "sourceLicense": "MoDiff-authored Gallery metadata", "modelTerms": [ - "Publisher model terms at https://huggingface.co/Tencent-Hunyuan/HunyuanDiT-v1.2-Diffusers-Distilled/tree/ba991d1546d8c50936c4c16398ed0a87b9b99fb1" + "Publisher model terms at https://huggingface.co/jdopensource/JoyAI-Image-Edit-Plus-Diffusers/tree/c2686460c7b64d8aa11bc4d0da423fb316b33f9e" ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "Tencent-Hunyuan/HunyuanDiT-v1.2-Diffusers-Distilled@ba991d1546d8c50936c4c16398ed0a87b9b99fb1 https://huggingface.co/Tencent-Hunyuan/HunyuanDiT-v1.2-Diffusers-Distilled/tree/ba991d1546d8c50936c4c16398ed0a87b9b99fb1" + "jdopensource/JoyAI-Image-Edit-Plus-Diffusers@c2686460c7b64d8aa11bc4d0da423fb316b33f9e https://huggingface.co/jdopensource/JoyAI-Image-Edit-Plus-Diffusers/tree/c2686460c7b64d8aa11bc4d0da423fb316b33f9e" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "3968c7cbe37a94789a9f839d8e83a9e0f102629b797d5f7baacf0304a8d18153", + "humanApprovalPacketSHA256": "60b01498a2df5f4e4622cdc2f9a43c83d187820780d2425a19718c13707db501", "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", - "provenanceTemplateId": "hunyuan_dit_green_glass_study" + "provenanceTemplateId": "joy_plus_lavender_on_limestone" }, { - "path": "template-gallery/reviews/hunyuan_pag_burgundy_knight.original-provenance.json", - "sha256": "sha256:bytes:c2c30ee01a229dc1a2eafbc42f8e22d19626533c158ebeb4211ddc64f1ac9a9c", + "path": "template-gallery/reviews/joy_plus_lavender_on_limestone.original-review.json", + "sha256": "sha256:bytes:01efaac50374f321864b496b45ee9d133b3d67a9a30ba61eddf81fd23d7204bb", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/Tencent-Hunyuan/HunyuanDiT-v1.2-Diffusers-Distilled/tree/ba991d1546d8c50936c4c16398ed0a87b9b99fb1", - "sourceRevision": "Tencent-Hunyuan/HunyuanDiT-v1.2-Diffusers-Distilled@ba991d1546d8c50936c4c16398ed0a87b9b99fb1", + "sourceUrl": "https://huggingface.co/jdopensource/JoyAI-Image-Edit-Plus-Diffusers/tree/c2686460c7b64d8aa11bc4d0da423fb316b33f9e", + "sourceRevision": "jdopensource/JoyAI-Image-Edit-Plus-Diffusers@c2686460c7b64d8aa11bc4d0da423fb316b33f9e", "sourceLicense": "MoDiff-authored Gallery metadata", "modelTerms": [ - "Publisher model terms at https://huggingface.co/Tencent-Hunyuan/HunyuanDiT-v1.2-Diffusers-Distilled/tree/ba991d1546d8c50936c4c16398ed0a87b9b99fb1" + "Publisher model terms at https://huggingface.co/jdopensource/JoyAI-Image-Edit-Plus-Diffusers/tree/c2686460c7b64d8aa11bc4d0da423fb316b33f9e" ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "Tencent-Hunyuan/HunyuanDiT-v1.2-Diffusers-Distilled@ba991d1546d8c50936c4c16398ed0a87b9b99fb1 https://huggingface.co/Tencent-Hunyuan/HunyuanDiT-v1.2-Diffusers-Distilled/tree/ba991d1546d8c50936c4c16398ed0a87b9b99fb1" + "jdopensource/JoyAI-Image-Edit-Plus-Diffusers@c2686460c7b64d8aa11bc4d0da423fb316b33f9e https://huggingface.co/jdopensource/JoyAI-Image-Edit-Plus-Diffusers/tree/c2686460c7b64d8aa11bc4d0da423fb316b33f9e" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "c2df9edb92f8ff905b6c9a138a285e67c621f3d2dfa3232f859aaf963b725aca", + "humanApprovalPacketSHA256": "60b01498a2df5f4e4622cdc2f9a43c83d187820780d2425a19718c13707db501", "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", - "provenanceTemplateId": "hunyuan_pag_burgundy_knight" + "provenanceTemplateId": "joy_plus_lavender_on_limestone" }, { - "path": "template-gallery/reviews/hunyuan_pag_burgundy_knight.original-review.json", - "sha256": "sha256:bytes:b472ba6d082486f25d5c17cf3da66d6d376e9add58924f6d0acbee2e21552588", + "path": "template-gallery/reviews/joy_plus_lavender_on_limestone.quality-review.json", + "sha256": "sha256:bytes:8bf5fa341804d3de8c849d40c5ac8518f954def1ba5eae8e56da820eb86d148c", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/Tencent-Hunyuan/HunyuanDiT-v1.2-Diffusers-Distilled/tree/ba991d1546d8c50936c4c16398ed0a87b9b99fb1", - "sourceRevision": "Tencent-Hunyuan/HunyuanDiT-v1.2-Diffusers-Distilled@ba991d1546d8c50936c4c16398ed0a87b9b99fb1", + "sourceUrl": "https://huggingface.co/jdopensource/JoyAI-Image-Edit-Plus-Diffusers/tree/c2686460c7b64d8aa11bc4d0da423fb316b33f9e", + "sourceRevision": "jdopensource/JoyAI-Image-Edit-Plus-Diffusers@c2686460c7b64d8aa11bc4d0da423fb316b33f9e", "sourceLicense": "MoDiff-authored Gallery metadata", "modelTerms": [ - "Publisher model terms at https://huggingface.co/Tencent-Hunyuan/HunyuanDiT-v1.2-Diffusers-Distilled/tree/ba991d1546d8c50936c4c16398ed0a87b9b99fb1" + "Publisher model terms at https://huggingface.co/jdopensource/JoyAI-Image-Edit-Plus-Diffusers/tree/c2686460c7b64d8aa11bc4d0da423fb316b33f9e" ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "Tencent-Hunyuan/HunyuanDiT-v1.2-Diffusers-Distilled@ba991d1546d8c50936c4c16398ed0a87b9b99fb1 https://huggingface.co/Tencent-Hunyuan/HunyuanDiT-v1.2-Diffusers-Distilled/tree/ba991d1546d8c50936c4c16398ed0a87b9b99fb1" + "jdopensource/JoyAI-Image-Edit-Plus-Diffusers@c2686460c7b64d8aa11bc4d0da423fb316b33f9e https://huggingface.co/jdopensource/JoyAI-Image-Edit-Plus-Diffusers/tree/c2686460c7b64d8aa11bc4d0da423fb316b33f9e" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "c2df9edb92f8ff905b6c9a138a285e67c621f3d2dfa3232f859aaf963b725aca", + "humanApprovalPacketSHA256": "60b01498a2df5f4e4622cdc2f9a43c83d187820780d2425a19718c13707db501", "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", - "provenanceTemplateId": "hunyuan_pag_burgundy_knight" + "provenanceTemplateId": "joy_plus_lavender_on_limestone" }, { - "path": "template-gallery/reviews/hunyuan_pag_burgundy_knight.quality-review.json", - "sha256": "sha256:bytes:f771127b2e2c8e93148f34e1ab5901488a5c7129f3e8608dcf5a9951f3e12645", + "path": "template-gallery/reviews/joy_plus_lavender_on_limestone.retained-template-provenance.json", + "sha256": "sha256:bytes:9d769bc0f109f129a0a74b77d642cd0029204a037d3bb9e0ab17c322b31e4892", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/Tencent-Hunyuan/HunyuanDiT-v1.2-Diffusers-Distilled/tree/ba991d1546d8c50936c4c16398ed0a87b9b99fb1", - "sourceRevision": "Tencent-Hunyuan/HunyuanDiT-v1.2-Diffusers-Distilled@ba991d1546d8c50936c4c16398ed0a87b9b99fb1", + "sourceUrl": "https://huggingface.co/jdopensource/JoyAI-Image-Edit-Plus-Diffusers/tree/c2686460c7b64d8aa11bc4d0da423fb316b33f9e", + "sourceRevision": "jdopensource/JoyAI-Image-Edit-Plus-Diffusers@c2686460c7b64d8aa11bc4d0da423fb316b33f9e", "sourceLicense": "MoDiff-authored Gallery metadata", "modelTerms": [ - "Publisher model terms at https://huggingface.co/Tencent-Hunyuan/HunyuanDiT-v1.2-Diffusers-Distilled/tree/ba991d1546d8c50936c4c16398ed0a87b9b99fb1" + "Publisher model terms at https://huggingface.co/jdopensource/JoyAI-Image-Edit-Plus-Diffusers/tree/c2686460c7b64d8aa11bc4d0da423fb316b33f9e" ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "Tencent-Hunyuan/HunyuanDiT-v1.2-Diffusers-Distilled@ba991d1546d8c50936c4c16398ed0a87b9b99fb1 https://huggingface.co/Tencent-Hunyuan/HunyuanDiT-v1.2-Diffusers-Distilled/tree/ba991d1546d8c50936c4c16398ed0a87b9b99fb1" + "jdopensource/JoyAI-Image-Edit-Plus-Diffusers@c2686460c7b64d8aa11bc4d0da423fb316b33f9e https://huggingface.co/jdopensource/JoyAI-Image-Edit-Plus-Diffusers/tree/c2686460c7b64d8aa11bc4d0da423fb316b33f9e" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "c2df9edb92f8ff905b6c9a138a285e67c621f3d2dfa3232f859aaf963b725aca", + "humanApprovalPacketSHA256": "60b01498a2df5f4e4622cdc2f9a43c83d187820780d2425a19718c13707db501", "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", - "provenanceTemplateId": "hunyuan_pag_burgundy_knight" + "provenanceTemplateId": "joy_plus_lavender_on_limestone" }, { - "path": "template-gallery/reviews/hunyuan_pag_burgundy_knight.retained-template-provenance.json", - "sha256": "sha256:bytes:dbbb8bbab6db6dd38ae97f532ed1a4c865d0a706c64ea02c4dbafa18b4ce1fea", + "path": "template-gallery/reviews/joy_plus_terracotta_on_limestone.original-provenance.json", + "sha256": "sha256:bytes:fde745107f8dd3d8e87fa149b23617f104a566ee59af33713ca1b3d91b3a3749", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/Tencent-Hunyuan/HunyuanDiT-v1.2-Diffusers-Distilled/tree/ba991d1546d8c50936c4c16398ed0a87b9b99fb1", - "sourceRevision": "Tencent-Hunyuan/HunyuanDiT-v1.2-Diffusers-Distilled@ba991d1546d8c50936c4c16398ed0a87b9b99fb1", + "sourceUrl": "https://huggingface.co/jdopensource/JoyAI-Image-Edit-Plus-Diffusers/tree/c2686460c7b64d8aa11bc4d0da423fb316b33f9e", + "sourceRevision": "jdopensource/JoyAI-Image-Edit-Plus-Diffusers@c2686460c7b64d8aa11bc4d0da423fb316b33f9e", "sourceLicense": "MoDiff-authored Gallery metadata", "modelTerms": [ - "Publisher model terms at https://huggingface.co/Tencent-Hunyuan/HunyuanDiT-v1.2-Diffusers-Distilled/tree/ba991d1546d8c50936c4c16398ed0a87b9b99fb1" + "Publisher model terms at https://huggingface.co/jdopensource/JoyAI-Image-Edit-Plus-Diffusers/tree/c2686460c7b64d8aa11bc4d0da423fb316b33f9e" ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "Tencent-Hunyuan/HunyuanDiT-v1.2-Diffusers-Distilled@ba991d1546d8c50936c4c16398ed0a87b9b99fb1 https://huggingface.co/Tencent-Hunyuan/HunyuanDiT-v1.2-Diffusers-Distilled/tree/ba991d1546d8c50936c4c16398ed0a87b9b99fb1" + "jdopensource/JoyAI-Image-Edit-Plus-Diffusers@c2686460c7b64d8aa11bc4d0da423fb316b33f9e https://huggingface.co/jdopensource/JoyAI-Image-Edit-Plus-Diffusers/tree/c2686460c7b64d8aa11bc4d0da423fb316b33f9e" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "c2df9edb92f8ff905b6c9a138a285e67c621f3d2dfa3232f859aaf963b725aca", + "humanApprovalPacketSHA256": "d7e2fd301d16eede3da44cec1811930560ba0d958dfd46d8d0962eb3a22eea63", "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", - "provenanceTemplateId": "hunyuan_pag_burgundy_knight" + "provenanceTemplateId": "joy_plus_terracotta_on_limestone" }, { - "path": "template-gallery/reviews/janus_red_enamel_teapot.original-provenance.json", - "sha256": "sha256:bytes:170501bd8a025aa58341bc17322a6c9f8448be401b7263fdc9c5e9b449d1cb87", + "path": "template-gallery/reviews/joy_plus_terracotta_on_limestone.original-review.json", + "sha256": "sha256:bytes:719b8565f2c6e58a4bbd2cdf1298ef95a7a0d08edec6f90c566e87eb6b6353ba", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/deepseek-community/Janus-Pro-1B/tree/1655280bb75959cc1cb85529a2a8b26e7016072e", - "sourceRevision": "deepseek-community/Janus-Pro-1B@1655280bb75959cc1cb85529a2a8b26e7016072e", + "sourceUrl": "https://huggingface.co/jdopensource/JoyAI-Image-Edit-Plus-Diffusers/tree/c2686460c7b64d8aa11bc4d0da423fb316b33f9e", + "sourceRevision": "jdopensource/JoyAI-Image-Edit-Plus-Diffusers@c2686460c7b64d8aa11bc4d0da423fb316b33f9e", "sourceLicense": "MoDiff-authored Gallery metadata", - "modelTerms": ["https://github.com/deepseek-ai/Janus/blob/main/LICENSE-MODEL"], + "modelTerms": [ + "Publisher model terms at https://huggingface.co/jdopensource/JoyAI-Image-Edit-Plus-Diffusers/tree/c2686460c7b64d8aa11bc4d0da423fb316b33f9e" + ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "deepseek-community/Janus-Pro-1B@1655280bb75959cc1cb85529a2a8b26e7016072e https://huggingface.co/deepseek-community/Janus-Pro-1B/tree/1655280bb75959cc1cb85529a2a8b26e7016072e" + "jdopensource/JoyAI-Image-Edit-Plus-Diffusers@c2686460c7b64d8aa11bc4d0da423fb316b33f9e https://huggingface.co/jdopensource/JoyAI-Image-Edit-Plus-Diffusers/tree/c2686460c7b64d8aa11bc4d0da423fb316b33f9e" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", - "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", - "provenanceTemplateId": "janus_red_enamel_teapot" + "humanApprovalPacketSHA256": "d7e2fd301d16eede3da44cec1811930560ba0d958dfd46d8d0962eb3a22eea63", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "joy_plus_terracotta_on_limestone" }, { - "path": "template-gallery/reviews/janus_red_enamel_teapot.original-review.json", - "sha256": "sha256:bytes:05d63ee8fe6f5ef33cb0ea16988861ffbbd99e0f7317b039b01c41a67eb4f5f8", + "path": "template-gallery/reviews/joy_plus_terracotta_on_limestone.quality-review.json", + "sha256": "sha256:bytes:2bd0293bdf6802fbcb983cf655f09e8a9b452a5ad1438f1269db06c494558347", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/deepseek-community/Janus-Pro-1B/tree/1655280bb75959cc1cb85529a2a8b26e7016072e", - "sourceRevision": "deepseek-community/Janus-Pro-1B@1655280bb75959cc1cb85529a2a8b26e7016072e", + "sourceUrl": "https://huggingface.co/jdopensource/JoyAI-Image-Edit-Plus-Diffusers/tree/c2686460c7b64d8aa11bc4d0da423fb316b33f9e", + "sourceRevision": "jdopensource/JoyAI-Image-Edit-Plus-Diffusers@c2686460c7b64d8aa11bc4d0da423fb316b33f9e", "sourceLicense": "MoDiff-authored Gallery metadata", - "modelTerms": ["https://github.com/deepseek-ai/Janus/blob/main/LICENSE-MODEL"], + "modelTerms": [ + "Publisher model terms at https://huggingface.co/jdopensource/JoyAI-Image-Edit-Plus-Diffusers/tree/c2686460c7b64d8aa11bc4d0da423fb316b33f9e" + ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "deepseek-community/Janus-Pro-1B@1655280bb75959cc1cb85529a2a8b26e7016072e https://huggingface.co/deepseek-community/Janus-Pro-1B/tree/1655280bb75959cc1cb85529a2a8b26e7016072e" + "jdopensource/JoyAI-Image-Edit-Plus-Diffusers@c2686460c7b64d8aa11bc4d0da423fb316b33f9e https://huggingface.co/jdopensource/JoyAI-Image-Edit-Plus-Diffusers/tree/c2686460c7b64d8aa11bc4d0da423fb316b33f9e" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", - "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", - "provenanceTemplateId": "janus_red_enamel_teapot" + "humanApprovalPacketSHA256": "d7e2fd301d16eede3da44cec1811930560ba0d958dfd46d8d0962eb3a22eea63", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "joy_plus_terracotta_on_limestone" }, { - "path": "template-gallery/reviews/janus_red_enamel_teapot.quality-review.json", - "sha256": "sha256:bytes:b9d911046c3faff978d22cb397ee2a95d23608240d18674dc68fb5b957783f90", + "path": "template-gallery/reviews/joy_plus_terracotta_on_limestone.retained-template-provenance.json", + "sha256": "sha256:bytes:646ee4503fc48d2bc5f22df726a697f82799b9152978f5cf6715d94e7c3036cb", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/deepseek-community/Janus-Pro-1B/tree/1655280bb75959cc1cb85529a2a8b26e7016072e", - "sourceRevision": "deepseek-community/Janus-Pro-1B@1655280bb75959cc1cb85529a2a8b26e7016072e", + "sourceUrl": "https://huggingface.co/jdopensource/JoyAI-Image-Edit-Plus-Diffusers/tree/c2686460c7b64d8aa11bc4d0da423fb316b33f9e", + "sourceRevision": "jdopensource/JoyAI-Image-Edit-Plus-Diffusers@c2686460c7b64d8aa11bc4d0da423fb316b33f9e", "sourceLicense": "MoDiff-authored Gallery metadata", - "modelTerms": ["https://github.com/deepseek-ai/Janus/blob/main/LICENSE-MODEL"], + "modelTerms": [ + "Publisher model terms at https://huggingface.co/jdopensource/JoyAI-Image-Edit-Plus-Diffusers/tree/c2686460c7b64d8aa11bc4d0da423fb316b33f9e" + ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "deepseek-community/Janus-Pro-1B@1655280bb75959cc1cb85529a2a8b26e7016072e https://huggingface.co/deepseek-community/Janus-Pro-1B/tree/1655280bb75959cc1cb85529a2a8b26e7016072e" + "jdopensource/JoyAI-Image-Edit-Plus-Diffusers@c2686460c7b64d8aa11bc4d0da423fb316b33f9e https://huggingface.co/jdopensource/JoyAI-Image-Edit-Plus-Diffusers/tree/c2686460c7b64d8aa11bc4d0da423fb316b33f9e" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", - "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", - "provenanceTemplateId": "janus_red_enamel_teapot" + "humanApprovalPacketSHA256": "d7e2fd301d16eede3da44cec1811930560ba0d958dfd46d8d0962eb3a22eea63", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "joy_plus_terracotta_on_limestone" }, { - "path": "template-gallery/reviews/janus_red_enamel_teapot.retained-template-provenance.json", - "sha256": "sha256:bytes:7fc41c79f10344c5621f2184f7086b4b33daf929d83e37e099e9c0e3fc16aa2d", + "path": "template-gallery/reviews/joyimage_base_cobalt_paper_band.original-provenance.json", + "sha256": "sha256:bytes:e8cbdf5d79e8c91cc1f85575b2a5a29fcd3a1b2b470bd08137514d71b4e157ef", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/deepseek-community/Janus-Pro-1B/tree/1655280bb75959cc1cb85529a2a8b26e7016072e", - "sourceRevision": "deepseek-community/Janus-Pro-1B@1655280bb75959cc1cb85529a2a8b26e7016072e", + "sourceUrl": "https://huggingface.co/jdopensource/JoyAI-Image-Edit-Diffusers/tree/4b41fb25d961f37668750178ccbb380da326201c", + "sourceRevision": "jdopensource/JoyAI-Image-Edit-Diffusers@4b41fb25d961f37668750178ccbb380da326201c", "sourceLicense": "MoDiff-authored Gallery metadata", - "modelTerms": ["https://github.com/deepseek-ai/Janus/blob/main/LICENSE-MODEL"], + "modelTerms": [ + "Publisher model terms at https://huggingface.co/jdopensource/JoyAI-Image-Edit-Diffusers/tree/4b41fb25d961f37668750178ccbb380da326201c" + ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "deepseek-community/Janus-Pro-1B@1655280bb75959cc1cb85529a2a8b26e7016072e https://huggingface.co/deepseek-community/Janus-Pro-1B/tree/1655280bb75959cc1cb85529a2a8b26e7016072e" + "jdopensource/JoyAI-Image-Edit-Diffusers@4b41fb25d961f37668750178ccbb380da326201c https://huggingface.co/jdopensource/JoyAI-Image-Edit-Diffusers/tree/4b41fb25d961f37668750178ccbb380da326201c" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", - "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", - "provenanceTemplateId": "janus_red_enamel_teapot" + "humanApprovalPacketSHA256": "60b01498a2df5f4e4622cdc2f9a43c83d187820780d2425a19718c13707db501", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "joyimage_base_cobalt_paper_band" }, { - "path": "template-gallery/reviews/janus_red_triangle_caption.original-provenance.json", - "sha256": "sha256:bytes:3f6648332a0351e6904385e3d670550b1072c8539055ea6d827d3c7d3ee39510", + "path": "template-gallery/reviews/joyimage_base_cobalt_paper_band.original-review.json", + "sha256": "sha256:bytes:7d27c8cfdbcb51dba2f6b724268469f067e1a2f85320ac168ee4415ac0446ab9", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/deepseek-community/Janus-Pro-1B/tree/1655280bb75959cc1cb85529a2a8b26e7016072e", - "sourceRevision": "deepseek-community/Janus-Pro-1B@1655280bb75959cc1cb85529a2a8b26e7016072e", + "sourceUrl": "https://huggingface.co/jdopensource/JoyAI-Image-Edit-Diffusers/tree/4b41fb25d961f37668750178ccbb380da326201c", + "sourceRevision": "jdopensource/JoyAI-Image-Edit-Diffusers@4b41fb25d961f37668750178ccbb380da326201c", "sourceLicense": "MoDiff-authored Gallery metadata", - "modelTerms": ["https://github.com/deepseek-ai/Janus/blob/main/LICENSE-MODEL"], + "modelTerms": [ + "Publisher model terms at https://huggingface.co/jdopensource/JoyAI-Image-Edit-Diffusers/tree/4b41fb25d961f37668750178ccbb380da326201c" + ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "deepseek-community/Janus-Pro-1B@1655280bb75959cc1cb85529a2a8b26e7016072e https://huggingface.co/deepseek-community/Janus-Pro-1B/tree/1655280bb75959cc1cb85529a2a8b26e7016072e" + "jdopensource/JoyAI-Image-Edit-Diffusers@4b41fb25d961f37668750178ccbb380da326201c https://huggingface.co/jdopensource/JoyAI-Image-Edit-Diffusers/tree/4b41fb25d961f37668750178ccbb380da326201c" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", - "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", - "provenanceTemplateId": "janus_red_triangle_caption" + "humanApprovalPacketSHA256": "60b01498a2df5f4e4622cdc2f9a43c83d187820780d2425a19718c13707db501", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "joyimage_base_cobalt_paper_band" }, { - "path": "template-gallery/reviews/janus_red_triangle_caption.original-review.json", - "sha256": "sha256:bytes:f7b4652f53f7840da5338cc9e77215884c500ae59aa26e66fb83c84bb6e1ede8", + "path": "template-gallery/reviews/joyimage_base_cobalt_paper_band.quality-review.json", + "sha256": "sha256:bytes:d2cd9b10d5095d45599db6987b5c8d43beae50b388dae281602eae6a5dd70ddb", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/deepseek-community/Janus-Pro-1B/tree/1655280bb75959cc1cb85529a2a8b26e7016072e", - "sourceRevision": "deepseek-community/Janus-Pro-1B@1655280bb75959cc1cb85529a2a8b26e7016072e", + "sourceUrl": "https://huggingface.co/jdopensource/JoyAI-Image-Edit-Diffusers/tree/4b41fb25d961f37668750178ccbb380da326201c", + "sourceRevision": "jdopensource/JoyAI-Image-Edit-Diffusers@4b41fb25d961f37668750178ccbb380da326201c", "sourceLicense": "MoDiff-authored Gallery metadata", - "modelTerms": ["https://github.com/deepseek-ai/Janus/blob/main/LICENSE-MODEL"], + "modelTerms": [ + "Publisher model terms at https://huggingface.co/jdopensource/JoyAI-Image-Edit-Diffusers/tree/4b41fb25d961f37668750178ccbb380da326201c" + ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "deepseek-community/Janus-Pro-1B@1655280bb75959cc1cb85529a2a8b26e7016072e https://huggingface.co/deepseek-community/Janus-Pro-1B/tree/1655280bb75959cc1cb85529a2a8b26e7016072e" + "jdopensource/JoyAI-Image-Edit-Diffusers@4b41fb25d961f37668750178ccbb380da326201c https://huggingface.co/jdopensource/JoyAI-Image-Edit-Diffusers/tree/4b41fb25d961f37668750178ccbb380da326201c" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", - "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", - "provenanceTemplateId": "janus_red_triangle_caption" + "humanApprovalPacketSHA256": "60b01498a2df5f4e4622cdc2f9a43c83d187820780d2425a19718c13707db501", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "joyimage_base_cobalt_paper_band" }, { - "path": "template-gallery/reviews/janus_red_triangle_caption.quality-review.json", - "sha256": "sha256:bytes:03dd22b437f3d94f8789eed26ccf9c0de4fd24a2162e1bab3d1e164441077ef5", + "path": "template-gallery/reviews/joyimage_base_cobalt_paper_band.retained-template-provenance.json", + "sha256": "sha256:bytes:e82f59c601357c4dd42e4c4a6ea7d5f71f87afbef7d4ed254e7dc724e1555319", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/deepseek-community/Janus-Pro-1B/tree/1655280bb75959cc1cb85529a2a8b26e7016072e", - "sourceRevision": "deepseek-community/Janus-Pro-1B@1655280bb75959cc1cb85529a2a8b26e7016072e", + "sourceUrl": "https://huggingface.co/jdopensource/JoyAI-Image-Edit-Diffusers/tree/4b41fb25d961f37668750178ccbb380da326201c", + "sourceRevision": "jdopensource/JoyAI-Image-Edit-Diffusers@4b41fb25d961f37668750178ccbb380da326201c", "sourceLicense": "MoDiff-authored Gallery metadata", - "modelTerms": ["https://github.com/deepseek-ai/Janus/blob/main/LICENSE-MODEL"], + "modelTerms": [ + "Publisher model terms at https://huggingface.co/jdopensource/JoyAI-Image-Edit-Diffusers/tree/4b41fb25d961f37668750178ccbb380da326201c" + ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "deepseek-community/Janus-Pro-1B@1655280bb75959cc1cb85529a2a8b26e7016072e https://huggingface.co/deepseek-community/Janus-Pro-1B/tree/1655280bb75959cc1cb85529a2a8b26e7016072e" + "jdopensource/JoyAI-Image-Edit-Diffusers@4b41fb25d961f37668750178ccbb380da326201c https://huggingface.co/jdopensource/JoyAI-Image-Edit-Diffusers/tree/4b41fb25d961f37668750178ccbb380da326201c" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", - "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", - "provenanceTemplateId": "janus_red_triangle_caption" + "humanApprovalPacketSHA256": "60b01498a2df5f4e4622cdc2f9a43c83d187820780d2425a19718c13707db501", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "joyimage_base_cobalt_paper_band" }, { - "path": "template-gallery/reviews/janus_red_triangle_caption.retained-template-provenance.json", - "sha256": "sha256:bytes:0e5cecab2d1a8c81c1b36c4e3b2fcd0799b327f94a61d9f4c55fac0ce1f16a9b", + "path": "template-gallery/reviews/joyimage_herbarium_rainy_porthole.original-provenance.json", + "sha256": "sha256:bytes:9d044b889706d4034d96da08aec8f9c6fa2458e2d75b36055a1a707e11140d38", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/deepseek-community/Janus-Pro-1B/tree/1655280bb75959cc1cb85529a2a8b26e7016072e", - "sourceRevision": "deepseek-community/Janus-Pro-1B@1655280bb75959cc1cb85529a2a8b26e7016072e", + "sourceUrl": "https://huggingface.co/jdopensource/JoyAI-Image-Edit-Diffusers/tree/4b41fb25d961f37668750178ccbb380da326201c", + "sourceRevision": "jdopensource/JoyAI-Image-Edit-Diffusers@4b41fb25d961f37668750178ccbb380da326201c", "sourceLicense": "MoDiff-authored Gallery metadata", - "modelTerms": ["https://github.com/deepseek-ai/Janus/blob/main/LICENSE-MODEL"], + "modelTerms": [ + "Publisher model terms at https://huggingface.co/jdopensource/JoyAI-Image-Edit-Diffusers/tree/4b41fb25d961f37668750178ccbb380da326201c" + ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "deepseek-community/Janus-Pro-1B@1655280bb75959cc1cb85529a2a8b26e7016072e https://huggingface.co/deepseek-community/Janus-Pro-1B/tree/1655280bb75959cc1cb85529a2a8b26e7016072e" + "jdopensource/JoyAI-Image-Edit-Diffusers@4b41fb25d961f37668750178ccbb380da326201c https://huggingface.co/jdopensource/JoyAI-Image-Edit-Diffusers/tree/4b41fb25d961f37668750178ccbb380da326201c" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", - "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", - "provenanceTemplateId": "janus_red_triangle_caption" + "humanApprovalPacketSHA256": "4fc7c52588176cb1f6ba6d699d08741b2986ea71ea87bac650d261716a10b24c", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "joyimage_herbarium_rainy_porthole" }, { - "path": "template-gallery/reviews/janus_reykjavik_travel_note.original-provenance.json", - "sha256": "sha256:bytes:e691c32bc7b7eb4bd1bf7feae5773671d7e083d79e5bc9426ed5e768bc78d899", + "path": "template-gallery/reviews/joyimage_herbarium_rainy_porthole.original-review.json", + "sha256": "sha256:bytes:5f1b196d8b9e9b3740a4745304e7fbbe5bbe5c5385237f87d6895748b75c8e07", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/deepseek-community/Janus-Pro-1B/tree/1655280bb75959cc1cb85529a2a8b26e7016072e", - "sourceRevision": "deepseek-community/Janus-Pro-1B@1655280bb75959cc1cb85529a2a8b26e7016072e", + "sourceUrl": "https://huggingface.co/jdopensource/JoyAI-Image-Edit-Diffusers/tree/4b41fb25d961f37668750178ccbb380da326201c", + "sourceRevision": "jdopensource/JoyAI-Image-Edit-Diffusers@4b41fb25d961f37668750178ccbb380da326201c", "sourceLicense": "MoDiff-authored Gallery metadata", - "modelTerms": ["https://github.com/deepseek-ai/Janus/blob/main/LICENSE-MODEL"], + "modelTerms": [ + "Publisher model terms at https://huggingface.co/jdopensource/JoyAI-Image-Edit-Diffusers/tree/4b41fb25d961f37668750178ccbb380da326201c" + ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "deepseek-community/Janus-Pro-1B@1655280bb75959cc1cb85529a2a8b26e7016072e https://huggingface.co/deepseek-community/Janus-Pro-1B/tree/1655280bb75959cc1cb85529a2a8b26e7016072e" + "jdopensource/JoyAI-Image-Edit-Diffusers@4b41fb25d961f37668750178ccbb380da326201c https://huggingface.co/jdopensource/JoyAI-Image-Edit-Diffusers/tree/4b41fb25d961f37668750178ccbb380da326201c" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", - "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", - "provenanceTemplateId": "janus_reykjavik_travel_note" + "humanApprovalPacketSHA256": "4fc7c52588176cb1f6ba6d699d08741b2986ea71ea87bac650d261716a10b24c", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "joyimage_herbarium_rainy_porthole" }, { - "path": "template-gallery/reviews/janus_reykjavik_travel_note.original-review.json", - "sha256": "sha256:bytes:85c17c8b45a8df155a69a5de0e983b32ef5d9cc917cade0115bae566c861b088", + "path": "template-gallery/reviews/joyimage_herbarium_rainy_porthole.quality-review.json", + "sha256": "sha256:bytes:ee32c1cb4403abeab273a797da25cfc3d6930f9eac84785b905ed12d07f5b567", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/deepseek-community/Janus-Pro-1B/tree/1655280bb75959cc1cb85529a2a8b26e7016072e", - "sourceRevision": "deepseek-community/Janus-Pro-1B@1655280bb75959cc1cb85529a2a8b26e7016072e", + "sourceUrl": "https://huggingface.co/jdopensource/JoyAI-Image-Edit-Diffusers/tree/4b41fb25d961f37668750178ccbb380da326201c", + "sourceRevision": "jdopensource/JoyAI-Image-Edit-Diffusers@4b41fb25d961f37668750178ccbb380da326201c", "sourceLicense": "MoDiff-authored Gallery metadata", - "modelTerms": ["https://github.com/deepseek-ai/Janus/blob/main/LICENSE-MODEL"], + "modelTerms": [ + "Publisher model terms at https://huggingface.co/jdopensource/JoyAI-Image-Edit-Diffusers/tree/4b41fb25d961f37668750178ccbb380da326201c" + ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "deepseek-community/Janus-Pro-1B@1655280bb75959cc1cb85529a2a8b26e7016072e https://huggingface.co/deepseek-community/Janus-Pro-1B/tree/1655280bb75959cc1cb85529a2a8b26e7016072e" + "jdopensource/JoyAI-Image-Edit-Diffusers@4b41fb25d961f37668750178ccbb380da326201c https://huggingface.co/jdopensource/JoyAI-Image-Edit-Diffusers/tree/4b41fb25d961f37668750178ccbb380da326201c" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", - "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", - "provenanceTemplateId": "janus_reykjavik_travel_note" + "humanApprovalPacketSHA256": "4fc7c52588176cb1f6ba6d699d08741b2986ea71ea87bac650d261716a10b24c", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "joyimage_herbarium_rainy_porthole" }, { - "path": "template-gallery/reviews/janus_reykjavik_travel_note.quality-review.json", - "sha256": "sha256:bytes:08b83eb62ffdf911938d868f1be875cc895f472e9e48936acfaa93bbed96c709", + "path": "template-gallery/reviews/joyimage_herbarium_rainy_porthole.retained-template-provenance.json", + "sha256": "sha256:bytes:9dea78e9b2060e8253be0d3862ab101885f5c8ad55f66d0d2424943e634bcc03", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/deepseek-community/Janus-Pro-1B/tree/1655280bb75959cc1cb85529a2a8b26e7016072e", - "sourceRevision": "deepseek-community/Janus-Pro-1B@1655280bb75959cc1cb85529a2a8b26e7016072e", + "sourceUrl": "https://huggingface.co/jdopensource/JoyAI-Image-Edit-Diffusers/tree/4b41fb25d961f37668750178ccbb380da326201c", + "sourceRevision": "jdopensource/JoyAI-Image-Edit-Diffusers@4b41fb25d961f37668750178ccbb380da326201c", "sourceLicense": "MoDiff-authored Gallery metadata", - "modelTerms": ["https://github.com/deepseek-ai/Janus/blob/main/LICENSE-MODEL"], + "modelTerms": [ + "Publisher model terms at https://huggingface.co/jdopensource/JoyAI-Image-Edit-Diffusers/tree/4b41fb25d961f37668750178ccbb380da326201c" + ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "deepseek-community/Janus-Pro-1B@1655280bb75959cc1cb85529a2a8b26e7016072e https://huggingface.co/deepseek-community/Janus-Pro-1B/tree/1655280bb75959cc1cb85529a2a8b26e7016072e" + "jdopensource/JoyAI-Image-Edit-Diffusers@4b41fb25d961f37668750178ccbb380da326201c https://huggingface.co/jdopensource/JoyAI-Image-Edit-Diffusers/tree/4b41fb25d961f37668750178ccbb380da326201c" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", - "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", - "provenanceTemplateId": "janus_reykjavik_travel_note" + "humanApprovalPacketSHA256": "4fc7c52588176cb1f6ba6d699d08741b2986ea71ea87bac650d261716a10b24c", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "joyimage_herbarium_rainy_porthole" }, { - "path": "template-gallery/reviews/janus_reykjavik_travel_note.retained-template-provenance.json", - "sha256": "sha256:bytes:70da97c6adaef6d92f70d91e3aa549503dacb307ea94dd3115047cb3de17945b", + "path": "template-gallery/reviews/kandinsky3_ginkgo_on_slate.original-provenance.json", + "sha256": "sha256:bytes:31189848b609ec308b9bd427975d0b09d502ff7583321e88a7ba813f5a968db8", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/deepseek-community/Janus-Pro-1B/tree/1655280bb75959cc1cb85529a2a8b26e7016072e", - "sourceRevision": "deepseek-community/Janus-Pro-1B@1655280bb75959cc1cb85529a2a8b26e7016072e", + "sourceUrl": "https://huggingface.co/kandinsky-community/kandinsky-3/tree/bf79e6c219da8a94abb50235fdc4567eb8fb4632", + "sourceRevision": "kandinsky-community/kandinsky-3@bf79e6c219da8a94abb50235fdc4567eb8fb4632", "sourceLicense": "MoDiff-authored Gallery metadata", - "modelTerms": ["https://github.com/deepseek-ai/Janus/blob/main/LICENSE-MODEL"], + "modelTerms": [ + "Publisher model terms at https://huggingface.co/kandinsky-community/kandinsky-3/tree/bf79e6c219da8a94abb50235fdc4567eb8fb4632" + ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "deepseek-community/Janus-Pro-1B@1655280bb75959cc1cb85529a2a8b26e7016072e https://huggingface.co/deepseek-community/Janus-Pro-1B/tree/1655280bb75959cc1cb85529a2a8b26e7016072e" + "kandinsky-community/kandinsky-3@bf79e6c219da8a94abb50235fdc4567eb8fb4632 https://huggingface.co/kandinsky-community/kandinsky-3/tree/bf79e6c219da8a94abb50235fdc4567eb8fb4632" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", - "reviewedAt": "2026-11-25", + "reviewedAt": "2026-11-24", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", - "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", - "provenanceTemplateId": "janus_reykjavik_travel_note" + "humanApprovalPacketSHA256": "d216f065bdc316366c6183592f657bcfbbd7cb05acd0e510c6b3877fe56bcec2", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped six saved cases with model terms retained.", + "provenanceTemplateId": "kandinsky3_ginkgo_on_slate" }, { - "path": "template-gallery/reviews/joy_plus_lavender_on_limestone.original-provenance.json", - "sha256": "sha256:bytes:1d38c6f1a9b8c9f496cfb0905e6b4e2c8dd25129110ebf28c86e1070178c1237", + "path": "template-gallery/reviews/kandinsky3_ginkgo_on_slate.original-review.json", + "sha256": "sha256:bytes:3d23527148ae151f8b05b623d2739f79ab4bcd37202db7b331e391bdf7b6bedf", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/jdopensource/JoyAI-Image-Edit-Plus-Diffusers/tree/c2686460c7b64d8aa11bc4d0da423fb316b33f9e", - "sourceRevision": "jdopensource/JoyAI-Image-Edit-Plus-Diffusers@c2686460c7b64d8aa11bc4d0da423fb316b33f9e", + "sourceUrl": "https://huggingface.co/kandinsky-community/kandinsky-3/tree/bf79e6c219da8a94abb50235fdc4567eb8fb4632", + "sourceRevision": "kandinsky-community/kandinsky-3@bf79e6c219da8a94abb50235fdc4567eb8fb4632", "sourceLicense": "MoDiff-authored Gallery metadata", "modelTerms": [ - "Publisher model terms at https://huggingface.co/jdopensource/JoyAI-Image-Edit-Plus-Diffusers/tree/c2686460c7b64d8aa11bc4d0da423fb316b33f9e" + "Publisher model terms at https://huggingface.co/kandinsky-community/kandinsky-3/tree/bf79e6c219da8a94abb50235fdc4567eb8fb4632" ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "jdopensource/JoyAI-Image-Edit-Plus-Diffusers@c2686460c7b64d8aa11bc4d0da423fb316b33f9e https://huggingface.co/jdopensource/JoyAI-Image-Edit-Plus-Diffusers/tree/c2686460c7b64d8aa11bc4d0da423fb316b33f9e" + "kandinsky-community/kandinsky-3@bf79e6c219da8a94abb50235fdc4567eb8fb4632 https://huggingface.co/kandinsky-community/kandinsky-3/tree/bf79e6c219da8a94abb50235fdc4567eb8fb4632" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", - "reviewedAt": "2026-11-25", + "reviewedAt": "2026-11-24", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "60b01498a2df5f4e4622cdc2f9a43c83d187820780d2425a19718c13707db501", - "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", - "provenanceTemplateId": "joy_plus_lavender_on_limestone" + "humanApprovalPacketSHA256": "d216f065bdc316366c6183592f657bcfbbd7cb05acd0e510c6b3877fe56bcec2", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped six saved cases with model terms retained.", + "provenanceTemplateId": "kandinsky3_ginkgo_on_slate" }, { - "path": "template-gallery/reviews/joy_plus_lavender_on_limestone.original-review.json", - "sha256": "sha256:bytes:01efaac50374f321864b496b45ee9d133b3d67a9a30ba61eddf81fd23d7204bb", + "path": "template-gallery/reviews/kandinsky3_ginkgo_on_slate.quality-review.json", + "sha256": "sha256:bytes:ce1d21e1a50c1861198590eda8f52dde82afccaceae93500fbaf612e1b1a2426", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/jdopensource/JoyAI-Image-Edit-Plus-Diffusers/tree/c2686460c7b64d8aa11bc4d0da423fb316b33f9e", - "sourceRevision": "jdopensource/JoyAI-Image-Edit-Plus-Diffusers@c2686460c7b64d8aa11bc4d0da423fb316b33f9e", + "sourceUrl": "https://huggingface.co/kandinsky-community/kandinsky-3/tree/bf79e6c219da8a94abb50235fdc4567eb8fb4632", + "sourceRevision": "kandinsky-community/kandinsky-3@bf79e6c219da8a94abb50235fdc4567eb8fb4632", "sourceLicense": "MoDiff-authored Gallery metadata", "modelTerms": [ - "Publisher model terms at https://huggingface.co/jdopensource/JoyAI-Image-Edit-Plus-Diffusers/tree/c2686460c7b64d8aa11bc4d0da423fb316b33f9e" + "Publisher model terms at https://huggingface.co/kandinsky-community/kandinsky-3/tree/bf79e6c219da8a94abb50235fdc4567eb8fb4632" ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "jdopensource/JoyAI-Image-Edit-Plus-Diffusers@c2686460c7b64d8aa11bc4d0da423fb316b33f9e https://huggingface.co/jdopensource/JoyAI-Image-Edit-Plus-Diffusers/tree/c2686460c7b64d8aa11bc4d0da423fb316b33f9e" + "kandinsky-community/kandinsky-3@bf79e6c219da8a94abb50235fdc4567eb8fb4632 https://huggingface.co/kandinsky-community/kandinsky-3/tree/bf79e6c219da8a94abb50235fdc4567eb8fb4632" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", - "reviewedAt": "2026-11-25", + "reviewedAt": "2026-11-24", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "60b01498a2df5f4e4622cdc2f9a43c83d187820780d2425a19718c13707db501", - "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", - "provenanceTemplateId": "joy_plus_lavender_on_limestone" + "humanApprovalPacketSHA256": "d216f065bdc316366c6183592f657bcfbbd7cb05acd0e510c6b3877fe56bcec2", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped six saved cases with model terms retained.", + "provenanceTemplateId": "kandinsky3_ginkgo_on_slate" }, { - "path": "template-gallery/reviews/joy_plus_lavender_on_limestone.quality-review.json", - "sha256": "sha256:bytes:8bf5fa341804d3de8c849d40c5ac8518f954def1ba5eae8e56da820eb86d148c", + "path": "template-gallery/reviews/kandinsky3_ginkgo_on_slate.retained-template-provenance.json", + "sha256": "sha256:bytes:5be139ba899439bf234dee3274572a5062dbfdbb0fbf6ba12f23b64ce47a2fc3", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/jdopensource/JoyAI-Image-Edit-Plus-Diffusers/tree/c2686460c7b64d8aa11bc4d0da423fb316b33f9e", - "sourceRevision": "jdopensource/JoyAI-Image-Edit-Plus-Diffusers@c2686460c7b64d8aa11bc4d0da423fb316b33f9e", + "sourceUrl": "https://huggingface.co/kandinsky-community/kandinsky-3/tree/bf79e6c219da8a94abb50235fdc4567eb8fb4632", + "sourceRevision": "kandinsky-community/kandinsky-3@bf79e6c219da8a94abb50235fdc4567eb8fb4632", "sourceLicense": "MoDiff-authored Gallery metadata", "modelTerms": [ - "Publisher model terms at https://huggingface.co/jdopensource/JoyAI-Image-Edit-Plus-Diffusers/tree/c2686460c7b64d8aa11bc4d0da423fb316b33f9e" + "Publisher model terms at https://huggingface.co/kandinsky-community/kandinsky-3/tree/bf79e6c219da8a94abb50235fdc4567eb8fb4632" ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "jdopensource/JoyAI-Image-Edit-Plus-Diffusers@c2686460c7b64d8aa11bc4d0da423fb316b33f9e https://huggingface.co/jdopensource/JoyAI-Image-Edit-Plus-Diffusers/tree/c2686460c7b64d8aa11bc4d0da423fb316b33f9e" + "kandinsky-community/kandinsky-3@bf79e6c219da8a94abb50235fdc4567eb8fb4632 https://huggingface.co/kandinsky-community/kandinsky-3/tree/bf79e6c219da8a94abb50235fdc4567eb8fb4632" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", - "reviewedAt": "2026-11-25", + "reviewedAt": "2026-11-24", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "60b01498a2df5f4e4622cdc2f9a43c83d187820780d2425a19718c13707db501", - "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", - "provenanceTemplateId": "joy_plus_lavender_on_limestone" + "humanApprovalPacketSHA256": "d216f065bdc316366c6183592f657bcfbbd7cb05acd0e510c6b3877fe56bcec2", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped six saved cases with model terms retained.", + "provenanceTemplateId": "kandinsky3_ginkgo_on_slate" }, { - "path": "template-gallery/reviews/joy_plus_lavender_on_limestone.retained-template-provenance.json", - "sha256": "sha256:bytes:9d769bc0f109f129a0a74b77d642cd0029204a037d3bb9e0ab17c322b31e4892", + "path": "template-gallery/reviews/kandinsky3_smoked_glass_on_limestone.original-provenance.json", + "sha256": "sha256:bytes:e62c78c152e7273c32f506b361d4cece5e2a61939ab8763078fb04111795a098", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/jdopensource/JoyAI-Image-Edit-Plus-Diffusers/tree/c2686460c7b64d8aa11bc4d0da423fb316b33f9e", - "sourceRevision": "jdopensource/JoyAI-Image-Edit-Plus-Diffusers@c2686460c7b64d8aa11bc4d0da423fb316b33f9e", + "sourceUrl": "https://huggingface.co/kandinsky-community/kandinsky-3/tree/bf79e6c219da8a94abb50235fdc4567eb8fb4632", + "sourceRevision": "kandinsky-community/kandinsky-3@bf79e6c219da8a94abb50235fdc4567eb8fb4632", "sourceLicense": "MoDiff-authored Gallery metadata", "modelTerms": [ - "Publisher model terms at https://huggingface.co/jdopensource/JoyAI-Image-Edit-Plus-Diffusers/tree/c2686460c7b64d8aa11bc4d0da423fb316b33f9e" + "Publisher model terms at https://huggingface.co/kandinsky-community/kandinsky-3/tree/bf79e6c219da8a94abb50235fdc4567eb8fb4632" ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "jdopensource/JoyAI-Image-Edit-Plus-Diffusers@c2686460c7b64d8aa11bc4d0da423fb316b33f9e https://huggingface.co/jdopensource/JoyAI-Image-Edit-Plus-Diffusers/tree/c2686460c7b64d8aa11bc4d0da423fb316b33f9e" + "kandinsky-community/kandinsky-3@bf79e6c219da8a94abb50235fdc4567eb8fb4632 https://huggingface.co/kandinsky-community/kandinsky-3/tree/bf79e6c219da8a94abb50235fdc4567eb8fb4632" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", @@ -13575,26 +15006,26 @@ "reviewClass": "per-file-maintainer-accepted-retained-registration", "humanApprovalPacketSHA256": "60b01498a2df5f4e4622cdc2f9a43c83d187820780d2425a19718c13707db501", "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", - "provenanceTemplateId": "joy_plus_lavender_on_limestone" + "provenanceTemplateId": "kandinsky3_smoked_glass_on_limestone" }, { - "path": "template-gallery/reviews/joyimage_base_cobalt_paper_band.original-provenance.json", - "sha256": "sha256:bytes:e8cbdf5d79e8c91cc1f85575b2a5a29fcd3a1b2b470bd08137514d71b4e157ef", + "path": "template-gallery/reviews/kandinsky3_smoked_glass_on_limestone.original-review.json", + "sha256": "sha256:bytes:307daef8829faa1835d0d7092e594aa8bf1b703c51157a8cc7581aaf1e84d437", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/jdopensource/JoyAI-Image-Edit-Diffusers/tree/4b41fb25d961f37668750178ccbb380da326201c", - "sourceRevision": "jdopensource/JoyAI-Image-Edit-Diffusers@4b41fb25d961f37668750178ccbb380da326201c", + "sourceUrl": "https://huggingface.co/kandinsky-community/kandinsky-3/tree/bf79e6c219da8a94abb50235fdc4567eb8fb4632", + "sourceRevision": "kandinsky-community/kandinsky-3@bf79e6c219da8a94abb50235fdc4567eb8fb4632", "sourceLicense": "MoDiff-authored Gallery metadata", "modelTerms": [ - "Publisher model terms at https://huggingface.co/jdopensource/JoyAI-Image-Edit-Diffusers/tree/4b41fb25d961f37668750178ccbb380da326201c" + "Publisher model terms at https://huggingface.co/kandinsky-community/kandinsky-3/tree/bf79e6c219da8a94abb50235fdc4567eb8fb4632" ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "jdopensource/JoyAI-Image-Edit-Diffusers@4b41fb25d961f37668750178ccbb380da326201c https://huggingface.co/jdopensource/JoyAI-Image-Edit-Diffusers/tree/4b41fb25d961f37668750178ccbb380da326201c" + "kandinsky-community/kandinsky-3@bf79e6c219da8a94abb50235fdc4567eb8fb4632 https://huggingface.co/kandinsky-community/kandinsky-3/tree/bf79e6c219da8a94abb50235fdc4567eb8fb4632" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", @@ -13602,26 +15033,26 @@ "reviewClass": "per-file-maintainer-accepted-retained-registration", "humanApprovalPacketSHA256": "60b01498a2df5f4e4622cdc2f9a43c83d187820780d2425a19718c13707db501", "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", - "provenanceTemplateId": "joyimage_base_cobalt_paper_band" + "provenanceTemplateId": "kandinsky3_smoked_glass_on_limestone" }, { - "path": "template-gallery/reviews/joyimage_base_cobalt_paper_band.original-review.json", - "sha256": "sha256:bytes:7d27c8cfdbcb51dba2f6b724268469f067e1a2f85320ac168ee4415ac0446ab9", + "path": "template-gallery/reviews/kandinsky3_smoked_glass_on_limestone.quality-review.json", + "sha256": "sha256:bytes:e6d9b0e253b694fab331fe62247c0adf47c2947d841ba8da08629522a37613ef", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/jdopensource/JoyAI-Image-Edit-Diffusers/tree/4b41fb25d961f37668750178ccbb380da326201c", - "sourceRevision": "jdopensource/JoyAI-Image-Edit-Diffusers@4b41fb25d961f37668750178ccbb380da326201c", + "sourceUrl": "https://huggingface.co/kandinsky-community/kandinsky-3/tree/bf79e6c219da8a94abb50235fdc4567eb8fb4632", + "sourceRevision": "kandinsky-community/kandinsky-3@bf79e6c219da8a94abb50235fdc4567eb8fb4632", "sourceLicense": "MoDiff-authored Gallery metadata", "modelTerms": [ - "Publisher model terms at https://huggingface.co/jdopensource/JoyAI-Image-Edit-Diffusers/tree/4b41fb25d961f37668750178ccbb380da326201c" + "Publisher model terms at https://huggingface.co/kandinsky-community/kandinsky-3/tree/bf79e6c219da8a94abb50235fdc4567eb8fb4632" ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "jdopensource/JoyAI-Image-Edit-Diffusers@4b41fb25d961f37668750178ccbb380da326201c https://huggingface.co/jdopensource/JoyAI-Image-Edit-Diffusers/tree/4b41fb25d961f37668750178ccbb380da326201c" + "kandinsky-community/kandinsky-3@bf79e6c219da8a94abb50235fdc4567eb8fb4632 https://huggingface.co/kandinsky-community/kandinsky-3/tree/bf79e6c219da8a94abb50235fdc4567eb8fb4632" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", @@ -13629,26 +15060,26 @@ "reviewClass": "per-file-maintainer-accepted-retained-registration", "humanApprovalPacketSHA256": "60b01498a2df5f4e4622cdc2f9a43c83d187820780d2425a19718c13707db501", "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", - "provenanceTemplateId": "joyimage_base_cobalt_paper_band" + "provenanceTemplateId": "kandinsky3_smoked_glass_on_limestone" }, { - "path": "template-gallery/reviews/joyimage_base_cobalt_paper_band.quality-review.json", - "sha256": "sha256:bytes:d2cd9b10d5095d45599db6987b5c8d43beae50b388dae281602eae6a5dd70ddb", + "path": "template-gallery/reviews/kandinsky3_smoked_glass_on_limestone.retained-template-provenance.json", + "sha256": "sha256:bytes:5dbf90cd4b0f214fdae6e49c20ec03e38fc8552275d07e900ae737af469ea66a", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/jdopensource/JoyAI-Image-Edit-Diffusers/tree/4b41fb25d961f37668750178ccbb380da326201c", - "sourceRevision": "jdopensource/JoyAI-Image-Edit-Diffusers@4b41fb25d961f37668750178ccbb380da326201c", + "sourceUrl": "https://huggingface.co/kandinsky-community/kandinsky-3/tree/bf79e6c219da8a94abb50235fdc4567eb8fb4632", + "sourceRevision": "kandinsky-community/kandinsky-3@bf79e6c219da8a94abb50235fdc4567eb8fb4632", "sourceLicense": "MoDiff-authored Gallery metadata", "modelTerms": [ - "Publisher model terms at https://huggingface.co/jdopensource/JoyAI-Image-Edit-Diffusers/tree/4b41fb25d961f37668750178ccbb380da326201c" + "Publisher model terms at https://huggingface.co/kandinsky-community/kandinsky-3/tree/bf79e6c219da8a94abb50235fdc4567eb8fb4632" ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "jdopensource/JoyAI-Image-Edit-Diffusers@4b41fb25d961f37668750178ccbb380da326201c https://huggingface.co/jdopensource/JoyAI-Image-Edit-Diffusers/tree/4b41fb25d961f37668750178ccbb380da326201c" + "kandinsky-community/kandinsky-3@bf79e6c219da8a94abb50235fdc4567eb8fb4632 https://huggingface.co/kandinsky-community/kandinsky-3/tree/bf79e6c219da8a94abb50235fdc4567eb8fb4632" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", @@ -13656,26 +15087,26 @@ "reviewClass": "per-file-maintainer-accepted-retained-registration", "humanApprovalPacketSHA256": "60b01498a2df5f4e4622cdc2f9a43c83d187820780d2425a19718c13707db501", "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", - "provenanceTemplateId": "joyimage_base_cobalt_paper_band" + "provenanceTemplateId": "kandinsky3_smoked_glass_on_limestone" }, { - "path": "template-gallery/reviews/joyimage_base_cobalt_paper_band.retained-template-provenance.json", - "sha256": "sha256:bytes:e82f59c601357c4dd42e4c4a6ea7d5f71f87afbef7d4ed254e7dc724e1555319", + "path": "template-gallery/reviews/kontext_wide_water_alpine_ridge.original-provenance.json", + "sha256": "sha256:bytes:8f93f5553eeb580705586eda046026ac8ed8742b09defff688fd67892e131d90", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/jdopensource/JoyAI-Image-Edit-Diffusers/tree/4b41fb25d961f37668750178ccbb380da326201c", - "sourceRevision": "jdopensource/JoyAI-Image-Edit-Diffusers@4b41fb25d961f37668750178ccbb380da326201c", + "sourceUrl": "https://huggingface.co/black-forest-labs/FLUX.1-Kontext-dev/tree/24e9dedc4ef646698dc8eb4e18ae2cec3c9fea0d", + "sourceRevision": "black-forest-labs/FLUX.1-Kontext-dev@24e9dedc4ef646698dc8eb4e18ae2cec3c9fea0d", "sourceLicense": "MoDiff-authored Gallery metadata", "modelTerms": [ - "Publisher model terms at https://huggingface.co/jdopensource/JoyAI-Image-Edit-Diffusers/tree/4b41fb25d961f37668750178ccbb380da326201c" + "Publisher model terms at https://huggingface.co/black-forest-labs/FLUX.1-Kontext-dev/tree/24e9dedc4ef646698dc8eb4e18ae2cec3c9fea0d" ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "jdopensource/JoyAI-Image-Edit-Diffusers@4b41fb25d961f37668750178ccbb380da326201c https://huggingface.co/jdopensource/JoyAI-Image-Edit-Diffusers/tree/4b41fb25d961f37668750178ccbb380da326201c" + "black-forest-labs/FLUX.1-Kontext-dev@24e9dedc4ef646698dc8eb4e18ae2cec3c9fea0d https://huggingface.co/black-forest-labs/FLUX.1-Kontext-dev/tree/24e9dedc4ef646698dc8eb4e18ae2cec3c9fea0d" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", @@ -13683,947 +15114,1086 @@ "reviewClass": "per-file-maintainer-accepted-retained-registration", "humanApprovalPacketSHA256": "60b01498a2df5f4e4622cdc2f9a43c83d187820780d2425a19718c13707db501", "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", - "provenanceTemplateId": "joyimage_base_cobalt_paper_band" + "provenanceTemplateId": "kontext_wide_water_alpine_ridge" }, { - "path": "template-gallery/reviews/joyimage_herbarium_rainy_porthole.original-provenance.json", - "sha256": "sha256:bytes:9d044b889706d4034d96da08aec8f9c6fa2458e2d75b36055a1a707e11140d38", + "path": "template-gallery/reviews/kontext_wide_water_alpine_ridge.original-review.json", + "sha256": "sha256:bytes:f54561af3e759232c7e01a2515d98b66c38d56d7fe8ece573ce2f83bfcbbf3f8", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/jdopensource/JoyAI-Image-Edit-Diffusers/tree/4b41fb25d961f37668750178ccbb380da326201c", - "sourceRevision": "jdopensource/JoyAI-Image-Edit-Diffusers@4b41fb25d961f37668750178ccbb380da326201c", + "sourceUrl": "https://huggingface.co/black-forest-labs/FLUX.1-Kontext-dev/tree/24e9dedc4ef646698dc8eb4e18ae2cec3c9fea0d", + "sourceRevision": "black-forest-labs/FLUX.1-Kontext-dev@24e9dedc4ef646698dc8eb4e18ae2cec3c9fea0d", "sourceLicense": "MoDiff-authored Gallery metadata", "modelTerms": [ - "Publisher model terms at https://huggingface.co/jdopensource/JoyAI-Image-Edit-Diffusers/tree/4b41fb25d961f37668750178ccbb380da326201c" + "Publisher model terms at https://huggingface.co/black-forest-labs/FLUX.1-Kontext-dev/tree/24e9dedc4ef646698dc8eb4e18ae2cec3c9fea0d" ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "jdopensource/JoyAI-Image-Edit-Diffusers@4b41fb25d961f37668750178ccbb380da326201c https://huggingface.co/jdopensource/JoyAI-Image-Edit-Diffusers/tree/4b41fb25d961f37668750178ccbb380da326201c" + "black-forest-labs/FLUX.1-Kontext-dev@24e9dedc4ef646698dc8eb4e18ae2cec3c9fea0d https://huggingface.co/black-forest-labs/FLUX.1-Kontext-dev/tree/24e9dedc4ef646698dc8eb4e18ae2cec3c9fea0d" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "4fc7c52588176cb1f6ba6d699d08741b2986ea71ea87bac650d261716a10b24c", + "humanApprovalPacketSHA256": "60b01498a2df5f4e4622cdc2f9a43c83d187820780d2425a19718c13707db501", "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", - "provenanceTemplateId": "joyimage_herbarium_rainy_porthole" + "provenanceTemplateId": "kontext_wide_water_alpine_ridge" }, { - "path": "template-gallery/reviews/joyimage_herbarium_rainy_porthole.original-review.json", - "sha256": "sha256:bytes:5f1b196d8b9e9b3740a4745304e7fbbe5bbe5c5385237f87d6895748b75c8e07", + "path": "template-gallery/reviews/kontext_wide_water_alpine_ridge.quality-review.json", + "sha256": "sha256:bytes:2dcf22dab88c45ead8d951f9443f61657d37eb30d07add1183a3633dbffcfe98", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/jdopensource/JoyAI-Image-Edit-Diffusers/tree/4b41fb25d961f37668750178ccbb380da326201c", - "sourceRevision": "jdopensource/JoyAI-Image-Edit-Diffusers@4b41fb25d961f37668750178ccbb380da326201c", + "sourceUrl": "https://huggingface.co/black-forest-labs/FLUX.1-Kontext-dev/tree/24e9dedc4ef646698dc8eb4e18ae2cec3c9fea0d", + "sourceRevision": "black-forest-labs/FLUX.1-Kontext-dev@24e9dedc4ef646698dc8eb4e18ae2cec3c9fea0d", "sourceLicense": "MoDiff-authored Gallery metadata", "modelTerms": [ - "Publisher model terms at https://huggingface.co/jdopensource/JoyAI-Image-Edit-Diffusers/tree/4b41fb25d961f37668750178ccbb380da326201c" + "Publisher model terms at https://huggingface.co/black-forest-labs/FLUX.1-Kontext-dev/tree/24e9dedc4ef646698dc8eb4e18ae2cec3c9fea0d" ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "jdopensource/JoyAI-Image-Edit-Diffusers@4b41fb25d961f37668750178ccbb380da326201c https://huggingface.co/jdopensource/JoyAI-Image-Edit-Diffusers/tree/4b41fb25d961f37668750178ccbb380da326201c" + "black-forest-labs/FLUX.1-Kontext-dev@24e9dedc4ef646698dc8eb4e18ae2cec3c9fea0d https://huggingface.co/black-forest-labs/FLUX.1-Kontext-dev/tree/24e9dedc4ef646698dc8eb4e18ae2cec3c9fea0d" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "4fc7c52588176cb1f6ba6d699d08741b2986ea71ea87bac650d261716a10b24c", + "humanApprovalPacketSHA256": "60b01498a2df5f4e4622cdc2f9a43c83d187820780d2425a19718c13707db501", "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", - "provenanceTemplateId": "joyimage_herbarium_rainy_porthole" + "provenanceTemplateId": "kontext_wide_water_alpine_ridge" }, { - "path": "template-gallery/reviews/joyimage_herbarium_rainy_porthole.quality-review.json", - "sha256": "sha256:bytes:ee32c1cb4403abeab273a797da25cfc3d6930f9eac84785b905ed12d07f5b567", + "path": "template-gallery/reviews/kontext_wide_water_alpine_ridge.retained-template-provenance.json", + "sha256": "sha256:bytes:97059d8dd67e7e5a82c9c458b4c992c680235cae0fc205fde6ae3915f43f3ff7", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/jdopensource/JoyAI-Image-Edit-Diffusers/tree/4b41fb25d961f37668750178ccbb380da326201c", - "sourceRevision": "jdopensource/JoyAI-Image-Edit-Diffusers@4b41fb25d961f37668750178ccbb380da326201c", + "sourceUrl": "https://huggingface.co/black-forest-labs/FLUX.1-Kontext-dev/tree/24e9dedc4ef646698dc8eb4e18ae2cec3c9fea0d", + "sourceRevision": "black-forest-labs/FLUX.1-Kontext-dev@24e9dedc4ef646698dc8eb4e18ae2cec3c9fea0d", "sourceLicense": "MoDiff-authored Gallery metadata", "modelTerms": [ - "Publisher model terms at https://huggingface.co/jdopensource/JoyAI-Image-Edit-Diffusers/tree/4b41fb25d961f37668750178ccbb380da326201c" + "Publisher model terms at https://huggingface.co/black-forest-labs/FLUX.1-Kontext-dev/tree/24e9dedc4ef646698dc8eb4e18ae2cec3c9fea0d" ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "jdopensource/JoyAI-Image-Edit-Diffusers@4b41fb25d961f37668750178ccbb380da326201c https://huggingface.co/jdopensource/JoyAI-Image-Edit-Diffusers/tree/4b41fb25d961f37668750178ccbb380da326201c" + "black-forest-labs/FLUX.1-Kontext-dev@24e9dedc4ef646698dc8eb4e18ae2cec3c9fea0d https://huggingface.co/black-forest-labs/FLUX.1-Kontext-dev/tree/24e9dedc4ef646698dc8eb4e18ae2cec3c9fea0d" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "4fc7c52588176cb1f6ba6d699d08741b2986ea71ea87bac650d261716a10b24c", + "humanApprovalPacketSHA256": "60b01498a2df5f4e4622cdc2f9a43c83d187820780d2425a19718c13707db501", "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", - "provenanceTemplateId": "joyimage_herbarium_rainy_porthole" + "provenanceTemplateId": "kontext_wide_water_alpine_ridge" }, { - "path": "template-gallery/reviews/joyimage_herbarium_rainy_porthole.retained-template-provenance.json", - "sha256": "sha256:bytes:9dea78e9b2060e8253be0d3862ab101885f5c8ad55f66d0d2424943e634bcc03", - "publishDecision": "approved", - "holdReason": null, + "path": "template-gallery/reviews/lcm_dawn_alpine_lake.quality-review.json", "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", - "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/jdopensource/JoyAI-Image-Edit-Diffusers/tree/4b41fb25d961f37668750178ccbb380da326201c", - "sourceRevision": "jdopensource/JoyAI-Image-Edit-Diffusers@4b41fb25d961f37668750178ccbb380da326201c", + "humanLikenessConsent": "not-applicable", + "marks": [], + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-20", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "ba369c5fff89e379be66714d3ecbf1a0e3a9555e2b5ffbc9cb54210d862ec30b", + "publicationBasis": "Maintainer approved the exact Whisper JSON and both exact LCM images, accepted the disclosed LCM changes, and authorized publication of the associated redacted Gallery records.", + "creationMethod": "Project-authored redacted retained Gallery review, provenance or registration metadata", + "sourceUrl": null, + "sourceRevision": null, "sourceLicense": "MoDiff-authored Gallery metadata", - "modelTerms": [ - "Publisher model terms at https://huggingface.co/jdopensource/JoyAI-Image-Edit-Diffusers/tree/4b41fb25d961f37668750178ccbb380da326201c" - ], + "modelTerms": [], "aiGenerated": false, + "requiredAttribution": [], + "assetLicense": "Apache-2.0", + "provenanceTemplateId": "lcm_dawn_alpine_lake", + "sha256": "sha256:bytes:e5c590a6287147faad9d5eab5676b8d2bb8224a8581a2043cf78c8dd50dcb0b9", + "publishDecision": "approved", + "holdReason": null + }, + { + "path": "template-gallery/reviews/lcm_dawn_alpine_lake.retained-template-provenance.json", + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "humanLikenessConsent": "not-applicable", "marks": [], - "requiredAttribution": [ - "jdopensource/JoyAI-Image-Edit-Diffusers@4b41fb25d961f37668750178ccbb380da326201c https://huggingface.co/jdopensource/JoyAI-Image-Edit-Diffusers/tree/4b41fb25d961f37668750178ccbb380da326201c" - ], - "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", - "reviewedAt": "2026-11-25", + "reviewedAt": "2026-11-20", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "4fc7c52588176cb1f6ba6d699d08741b2986ea71ea87bac650d261716a10b24c", - "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", - "provenanceTemplateId": "joyimage_herbarium_rainy_porthole" + "humanApprovalPacketSHA256": "ba369c5fff89e379be66714d3ecbf1a0e3a9555e2b5ffbc9cb54210d862ec30b", + "publicationBasis": "Maintainer approved the exact Whisper JSON and both exact LCM images, accepted the disclosed LCM changes, and authorized publication of the associated redacted Gallery records.", + "creationMethod": "Project-authored redacted retained Gallery review, provenance or registration metadata", + "sourceUrl": null, + "sourceRevision": null, + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [], + "aiGenerated": false, + "requiredAttribution": [], + "assetLicense": "Apache-2.0", + "provenanceTemplateId": "lcm_dawn_alpine_lake", + "sha256": "sha256:bytes:767b8d794460fca5a3e1c79a89aeaa2b1dcdb815d47702e1063ed35d07163247", + "publishDecision": "approved", + "holdReason": null }, { - "path": "template-gallery/reviews/kandinsky3_ginkgo_on_slate.original-provenance.json", - "sha256": "sha256:bytes:31189848b609ec308b9bd427975d0b09d502ff7583321e88a7ba813f5a968db8", + "path": "template-gallery/reviews/longcat_clear_glass_at_the_bookshop.original-provenance.json", + "sha256": "sha256:bytes:055c3ff5cf5493c80e675b8cd97de5c448856204330c1434522cc0c91482b522", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/kandinsky-community/kandinsky-3/tree/bf79e6c219da8a94abb50235fdc4567eb8fb4632", - "sourceRevision": "kandinsky-community/kandinsky-3@bf79e6c219da8a94abb50235fdc4567eb8fb4632", + "sourceUrl": "https://huggingface.co/meituan-longcat/LongCat-Image-Edit/tree/7b54ef423aa7854be7861600024be5c56ab7875a", + "sourceRevision": "meituan-longcat/LongCat-Image-Edit@7b54ef423aa7854be7861600024be5c56ab7875a", "sourceLicense": "MoDiff-authored Gallery metadata", "modelTerms": [ - "Publisher model terms at https://huggingface.co/kandinsky-community/kandinsky-3/tree/bf79e6c219da8a94abb50235fdc4567eb8fb4632" + "Publisher model terms at https://huggingface.co/meituan-longcat/LongCat-Image-Edit/tree/7b54ef423aa7854be7861600024be5c56ab7875a" ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "kandinsky-community/kandinsky-3@bf79e6c219da8a94abb50235fdc4567eb8fb4632 https://huggingface.co/kandinsky-community/kandinsky-3/tree/bf79e6c219da8a94abb50235fdc4567eb8fb4632" + "meituan-longcat/LongCat-Image-Edit@7b54ef423aa7854be7861600024be5c56ab7875a https://huggingface.co/meituan-longcat/LongCat-Image-Edit/tree/7b54ef423aa7854be7861600024be5c56ab7875a" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", - "reviewedAt": "2026-11-24", + "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "d216f065bdc316366c6183592f657bcfbbd7cb05acd0e510c6b3877fe56bcec2", - "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped six saved cases with model terms retained.", - "provenanceTemplateId": "kandinsky3_ginkgo_on_slate" + "humanApprovalPacketSHA256": "60b01498a2df5f4e4622cdc2f9a43c83d187820780d2425a19718c13707db501", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "longcat_clear_glass_at_the_bookshop" }, { - "path": "template-gallery/reviews/kandinsky3_ginkgo_on_slate.original-review.json", - "sha256": "sha256:bytes:3d23527148ae151f8b05b623d2739f79ab4bcd37202db7b331e391bdf7b6bedf", + "path": "template-gallery/reviews/longcat_clear_glass_at_the_bookshop.original-review.json", + "sha256": "sha256:bytes:dabecbb61888f492a4e7d8f45e368097c7f286df24c163c8b5e753ce4553d0ff", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/kandinsky-community/kandinsky-3/tree/bf79e6c219da8a94abb50235fdc4567eb8fb4632", - "sourceRevision": "kandinsky-community/kandinsky-3@bf79e6c219da8a94abb50235fdc4567eb8fb4632", + "sourceUrl": "https://huggingface.co/meituan-longcat/LongCat-Image-Edit/tree/7b54ef423aa7854be7861600024be5c56ab7875a", + "sourceRevision": "meituan-longcat/LongCat-Image-Edit@7b54ef423aa7854be7861600024be5c56ab7875a", "sourceLicense": "MoDiff-authored Gallery metadata", "modelTerms": [ - "Publisher model terms at https://huggingface.co/kandinsky-community/kandinsky-3/tree/bf79e6c219da8a94abb50235fdc4567eb8fb4632" + "Publisher model terms at https://huggingface.co/meituan-longcat/LongCat-Image-Edit/tree/7b54ef423aa7854be7861600024be5c56ab7875a" ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "kandinsky-community/kandinsky-3@bf79e6c219da8a94abb50235fdc4567eb8fb4632 https://huggingface.co/kandinsky-community/kandinsky-3/tree/bf79e6c219da8a94abb50235fdc4567eb8fb4632" + "meituan-longcat/LongCat-Image-Edit@7b54ef423aa7854be7861600024be5c56ab7875a https://huggingface.co/meituan-longcat/LongCat-Image-Edit/tree/7b54ef423aa7854be7861600024be5c56ab7875a" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", - "reviewedAt": "2026-11-24", + "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "d216f065bdc316366c6183592f657bcfbbd7cb05acd0e510c6b3877fe56bcec2", - "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped six saved cases with model terms retained.", - "provenanceTemplateId": "kandinsky3_ginkgo_on_slate" + "humanApprovalPacketSHA256": "60b01498a2df5f4e4622cdc2f9a43c83d187820780d2425a19718c13707db501", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "longcat_clear_glass_at_the_bookshop" }, { - "path": "template-gallery/reviews/kandinsky3_ginkgo_on_slate.quality-review.json", - "sha256": "sha256:bytes:ce1d21e1a50c1861198590eda8f52dde82afccaceae93500fbaf612e1b1a2426", + "path": "template-gallery/reviews/longcat_clear_glass_at_the_bookshop.quality-review.json", + "sha256": "sha256:bytes:03185586cf4d78ccfa2aae9dcb3962e82b611d03bb5fefc03bdf34851d50a9ed", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/kandinsky-community/kandinsky-3/tree/bf79e6c219da8a94abb50235fdc4567eb8fb4632", - "sourceRevision": "kandinsky-community/kandinsky-3@bf79e6c219da8a94abb50235fdc4567eb8fb4632", + "sourceUrl": "https://huggingface.co/meituan-longcat/LongCat-Image-Edit/tree/7b54ef423aa7854be7861600024be5c56ab7875a", + "sourceRevision": "meituan-longcat/LongCat-Image-Edit@7b54ef423aa7854be7861600024be5c56ab7875a", "sourceLicense": "MoDiff-authored Gallery metadata", "modelTerms": [ - "Publisher model terms at https://huggingface.co/kandinsky-community/kandinsky-3/tree/bf79e6c219da8a94abb50235fdc4567eb8fb4632" + "Publisher model terms at https://huggingface.co/meituan-longcat/LongCat-Image-Edit/tree/7b54ef423aa7854be7861600024be5c56ab7875a" ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "kandinsky-community/kandinsky-3@bf79e6c219da8a94abb50235fdc4567eb8fb4632 https://huggingface.co/kandinsky-community/kandinsky-3/tree/bf79e6c219da8a94abb50235fdc4567eb8fb4632" + "meituan-longcat/LongCat-Image-Edit@7b54ef423aa7854be7861600024be5c56ab7875a https://huggingface.co/meituan-longcat/LongCat-Image-Edit/tree/7b54ef423aa7854be7861600024be5c56ab7875a" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", - "reviewedAt": "2026-11-24", + "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "d216f065bdc316366c6183592f657bcfbbd7cb05acd0e510c6b3877fe56bcec2", - "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped six saved cases with model terms retained.", - "provenanceTemplateId": "kandinsky3_ginkgo_on_slate" + "humanApprovalPacketSHA256": "60b01498a2df5f4e4622cdc2f9a43c83d187820780d2425a19718c13707db501", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "longcat_clear_glass_at_the_bookshop" }, { - "path": "template-gallery/reviews/kandinsky3_ginkgo_on_slate.retained-template-provenance.json", - "sha256": "sha256:bytes:5be139ba899439bf234dee3274572a5062dbfdbb0fbf6ba12f23b64ce47a2fc3", + "path": "template-gallery/reviews/longcat_clear_glass_at_the_bookshop.retained-template-provenance.json", + "sha256": "sha256:bytes:8df85b747c9a5b0fe11bb20d81d64b1df7bccb96ec505aa99855adbcf9dd6e51", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/kandinsky-community/kandinsky-3/tree/bf79e6c219da8a94abb50235fdc4567eb8fb4632", - "sourceRevision": "kandinsky-community/kandinsky-3@bf79e6c219da8a94abb50235fdc4567eb8fb4632", + "sourceUrl": "https://huggingface.co/meituan-longcat/LongCat-Image-Edit/tree/7b54ef423aa7854be7861600024be5c56ab7875a", + "sourceRevision": "meituan-longcat/LongCat-Image-Edit@7b54ef423aa7854be7861600024be5c56ab7875a", "sourceLicense": "MoDiff-authored Gallery metadata", "modelTerms": [ - "Publisher model terms at https://huggingface.co/kandinsky-community/kandinsky-3/tree/bf79e6c219da8a94abb50235fdc4567eb8fb4632" + "Publisher model terms at https://huggingface.co/meituan-longcat/LongCat-Image-Edit/tree/7b54ef423aa7854be7861600024be5c56ab7875a" ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "kandinsky-community/kandinsky-3@bf79e6c219da8a94abb50235fdc4567eb8fb4632 https://huggingface.co/kandinsky-community/kandinsky-3/tree/bf79e6c219da8a94abb50235fdc4567eb8fb4632" + "meituan-longcat/LongCat-Image-Edit@7b54ef423aa7854be7861600024be5c56ab7875a https://huggingface.co/meituan-longcat/LongCat-Image-Edit/tree/7b54ef423aa7854be7861600024be5c56ab7875a" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", - "reviewedAt": "2026-11-24", + "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "d216f065bdc316366c6183592f657bcfbbd7cb05acd0e510c6b3877fe56bcec2", - "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped six saved cases with model terms retained.", - "provenanceTemplateId": "kandinsky3_ginkgo_on_slate" + "humanApprovalPacketSHA256": "60b01498a2df5f4e4622cdc2f9a43c83d187820780d2425a19718c13707db501", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "longcat_clear_glass_at_the_bookshop" }, { - "path": "template-gallery/reviews/kandinsky3_smoked_glass_on_limestone.original-provenance.json", - "sha256": "sha256:bytes:e62c78c152e7273c32f506b361d4cece5e2a61939ab8763078fb04111795a098", + "path": "template-gallery/reviews/longcat_florist_end_of_lane.original-provenance.json", + "sha256": "sha256:bytes:31fa3b13f1a585031ab220cb3a1039a9e7c2ed40757801c56cbcc846125ac7b8", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/kandinsky-community/kandinsky-3/tree/bf79e6c219da8a94abb50235fdc4567eb8fb4632", - "sourceRevision": "kandinsky-community/kandinsky-3@bf79e6c219da8a94abb50235fdc4567eb8fb4632", + "sourceUrl": "https://huggingface.co/meituan-longcat/LongCat-Image/tree/d2ea50b79a930074c37b9b97ce45e3b2ea8cf4d8", + "sourceRevision": "meituan-longcat/LongCat-Image@d2ea50b79a930074c37b9b97ce45e3b2ea8cf4d8", "sourceLicense": "MoDiff-authored Gallery metadata", "modelTerms": [ - "Publisher model terms at https://huggingface.co/kandinsky-community/kandinsky-3/tree/bf79e6c219da8a94abb50235fdc4567eb8fb4632" + "Publisher model terms at https://huggingface.co/meituan-longcat/LongCat-Image/tree/d2ea50b79a930074c37b9b97ce45e3b2ea8cf4d8" ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "kandinsky-community/kandinsky-3@bf79e6c219da8a94abb50235fdc4567eb8fb4632 https://huggingface.co/kandinsky-community/kandinsky-3/tree/bf79e6c219da8a94abb50235fdc4567eb8fb4632" + "meituan-longcat/LongCat-Image@d2ea50b79a930074c37b9b97ce45e3b2ea8cf4d8 https://huggingface.co/meituan-longcat/LongCat-Image/tree/d2ea50b79a930074c37b9b97ce45e3b2ea8cf4d8" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "60b01498a2df5f4e4622cdc2f9a43c83d187820780d2425a19718c13707db501", + "humanApprovalPacketSHA256": "4fc7c52588176cb1f6ba6d699d08741b2986ea71ea87bac650d261716a10b24c", "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", - "provenanceTemplateId": "kandinsky3_smoked_glass_on_limestone" + "provenanceTemplateId": "longcat_florist_end_of_lane" }, { - "path": "template-gallery/reviews/kandinsky3_smoked_glass_on_limestone.original-review.json", - "sha256": "sha256:bytes:307daef8829faa1835d0d7092e594aa8bf1b703c51157a8cc7581aaf1e84d437", + "path": "template-gallery/reviews/longcat_florist_end_of_lane.original-review.json", + "sha256": "sha256:bytes:adc8b682f80f09677b97fa57651d336d8b966f7e19586256e6559505f57f9cfc", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/kandinsky-community/kandinsky-3/tree/bf79e6c219da8a94abb50235fdc4567eb8fb4632", - "sourceRevision": "kandinsky-community/kandinsky-3@bf79e6c219da8a94abb50235fdc4567eb8fb4632", + "sourceUrl": "https://huggingface.co/meituan-longcat/LongCat-Image/tree/d2ea50b79a930074c37b9b97ce45e3b2ea8cf4d8", + "sourceRevision": "meituan-longcat/LongCat-Image@d2ea50b79a930074c37b9b97ce45e3b2ea8cf4d8", "sourceLicense": "MoDiff-authored Gallery metadata", "modelTerms": [ - "Publisher model terms at https://huggingface.co/kandinsky-community/kandinsky-3/tree/bf79e6c219da8a94abb50235fdc4567eb8fb4632" + "Publisher model terms at https://huggingface.co/meituan-longcat/LongCat-Image/tree/d2ea50b79a930074c37b9b97ce45e3b2ea8cf4d8" ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "kandinsky-community/kandinsky-3@bf79e6c219da8a94abb50235fdc4567eb8fb4632 https://huggingface.co/kandinsky-community/kandinsky-3/tree/bf79e6c219da8a94abb50235fdc4567eb8fb4632" + "meituan-longcat/LongCat-Image@d2ea50b79a930074c37b9b97ce45e3b2ea8cf4d8 https://huggingface.co/meituan-longcat/LongCat-Image/tree/d2ea50b79a930074c37b9b97ce45e3b2ea8cf4d8" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "60b01498a2df5f4e4622cdc2f9a43c83d187820780d2425a19718c13707db501", + "humanApprovalPacketSHA256": "4fc7c52588176cb1f6ba6d699d08741b2986ea71ea87bac650d261716a10b24c", "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", - "provenanceTemplateId": "kandinsky3_smoked_glass_on_limestone" + "provenanceTemplateId": "longcat_florist_end_of_lane" }, { - "path": "template-gallery/reviews/kandinsky3_smoked_glass_on_limestone.quality-review.json", - "sha256": "sha256:bytes:e6d9b0e253b694fab331fe62247c0adf47c2947d841ba8da08629522a37613ef", + "path": "template-gallery/reviews/longcat_florist_end_of_lane.quality-review.json", + "sha256": "sha256:bytes:c2b07ec9dccd4ac97f229ff2c836b5215377c240b8455db32a4f72f0313f7a4c", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/kandinsky-community/kandinsky-3/tree/bf79e6c219da8a94abb50235fdc4567eb8fb4632", - "sourceRevision": "kandinsky-community/kandinsky-3@bf79e6c219da8a94abb50235fdc4567eb8fb4632", + "sourceUrl": "https://huggingface.co/meituan-longcat/LongCat-Image/tree/d2ea50b79a930074c37b9b97ce45e3b2ea8cf4d8", + "sourceRevision": "meituan-longcat/LongCat-Image@d2ea50b79a930074c37b9b97ce45e3b2ea8cf4d8", "sourceLicense": "MoDiff-authored Gallery metadata", "modelTerms": [ - "Publisher model terms at https://huggingface.co/kandinsky-community/kandinsky-3/tree/bf79e6c219da8a94abb50235fdc4567eb8fb4632" + "Publisher model terms at https://huggingface.co/meituan-longcat/LongCat-Image/tree/d2ea50b79a930074c37b9b97ce45e3b2ea8cf4d8" ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "kandinsky-community/kandinsky-3@bf79e6c219da8a94abb50235fdc4567eb8fb4632 https://huggingface.co/kandinsky-community/kandinsky-3/tree/bf79e6c219da8a94abb50235fdc4567eb8fb4632" + "meituan-longcat/LongCat-Image@d2ea50b79a930074c37b9b97ce45e3b2ea8cf4d8 https://huggingface.co/meituan-longcat/LongCat-Image/tree/d2ea50b79a930074c37b9b97ce45e3b2ea8cf4d8" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "60b01498a2df5f4e4622cdc2f9a43c83d187820780d2425a19718c13707db501", + "humanApprovalPacketSHA256": "4fc7c52588176cb1f6ba6d699d08741b2986ea71ea87bac650d261716a10b24c", "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", - "provenanceTemplateId": "kandinsky3_smoked_glass_on_limestone" + "provenanceTemplateId": "longcat_florist_end_of_lane" }, { - "path": "template-gallery/reviews/kandinsky3_smoked_glass_on_limestone.retained-template-provenance.json", - "sha256": "sha256:bytes:5dbf90cd4b0f214fdae6e49c20ec03e38fc8552275d07e900ae737af469ea66a", + "path": "template-gallery/reviews/longcat_florist_end_of_lane.retained-template-provenance.json", + "sha256": "sha256:bytes:14da3c1cbc2f7ea57b4ec3d84f1a78d72a4e22b62ce0e0d757db78297c3fbed9", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/kandinsky-community/kandinsky-3/tree/bf79e6c219da8a94abb50235fdc4567eb8fb4632", - "sourceRevision": "kandinsky-community/kandinsky-3@bf79e6c219da8a94abb50235fdc4567eb8fb4632", + "sourceUrl": "https://huggingface.co/meituan-longcat/LongCat-Image/tree/d2ea50b79a930074c37b9b97ce45e3b2ea8cf4d8", + "sourceRevision": "meituan-longcat/LongCat-Image@d2ea50b79a930074c37b9b97ce45e3b2ea8cf4d8", "sourceLicense": "MoDiff-authored Gallery metadata", "modelTerms": [ - "Publisher model terms at https://huggingface.co/kandinsky-community/kandinsky-3/tree/bf79e6c219da8a94abb50235fdc4567eb8fb4632" + "Publisher model terms at https://huggingface.co/meituan-longcat/LongCat-Image/tree/d2ea50b79a930074c37b9b97ce45e3b2ea8cf4d8" ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "kandinsky-community/kandinsky-3@bf79e6c219da8a94abb50235fdc4567eb8fb4632 https://huggingface.co/kandinsky-community/kandinsky-3/tree/bf79e6c219da8a94abb50235fdc4567eb8fb4632" + "meituan-longcat/LongCat-Image@d2ea50b79a930074c37b9b97ce45e3b2ea8cf4d8 https://huggingface.co/meituan-longcat/LongCat-Image/tree/d2ea50b79a930074c37b9b97ce45e3b2ea8cf4d8" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "60b01498a2df5f4e4622cdc2f9a43c83d187820780d2425a19718c13707db501", + "humanApprovalPacketSHA256": "4fc7c52588176cb1f6ba6d699d08741b2986ea71ea87bac650d261716a10b24c", "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", - "provenanceTemplateId": "kandinsky3_smoked_glass_on_limestone" + "provenanceTemplateId": "longcat_florist_end_of_lane" }, { - "path": "template-gallery/reviews/kontext_wide_water_alpine_ridge.original-provenance.json", - "sha256": "sha256:bytes:8f93f5553eeb580705586eda046026ac8ed8742b09defff688fd67892e131d90", + "path": "template-gallery/reviews/longcat_last_tram_at_dusk.original-provenance.json", + "sha256": "sha256:bytes:34b322e643eacf47f4c02019564cb85720cb3b9b8334d524e47226d60c4faa60", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/black-forest-labs/FLUX.1-Kontext-dev/tree/24e9dedc4ef646698dc8eb4e18ae2cec3c9fea0d", - "sourceRevision": "black-forest-labs/FLUX.1-Kontext-dev@24e9dedc4ef646698dc8eb4e18ae2cec3c9fea0d", + "sourceUrl": "https://huggingface.co/ruixiangma/LongCat-AudioDiT-1B-Diffusers/tree/f4c063ea37f262ba5e6129ebd80095a6d6a9de4d", + "sourceRevision": "ruixiangma/LongCat-AudioDiT-1B-Diffusers@f4c063ea37f262ba5e6129ebd80095a6d6a9de4d", "sourceLicense": "MoDiff-authored Gallery metadata", "modelTerms": [ - "Publisher model terms at https://huggingface.co/black-forest-labs/FLUX.1-Kontext-dev/tree/24e9dedc4ef646698dc8eb4e18ae2cec3c9fea0d" + "Publisher model terms at https://huggingface.co/ruixiangma/LongCat-AudioDiT-1B-Diffusers/tree/f4c063ea37f262ba5e6129ebd80095a6d6a9de4d" ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "black-forest-labs/FLUX.1-Kontext-dev@24e9dedc4ef646698dc8eb4e18ae2cec3c9fea0d https://huggingface.co/black-forest-labs/FLUX.1-Kontext-dev/tree/24e9dedc4ef646698dc8eb4e18ae2cec3c9fea0d" + "ruixiangma/LongCat-AudioDiT-1B-Diffusers@f4c063ea37f262ba5e6129ebd80095a6d6a9de4d https://huggingface.co/ruixiangma/LongCat-AudioDiT-1B-Diffusers/tree/f4c063ea37f262ba5e6129ebd80095a6d6a9de4d" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "60b01498a2df5f4e4622cdc2f9a43c83d187820780d2425a19718c13707db501", + "humanApprovalPacketSHA256": "15c604ae5df3abed63c95046a78859adb870f415f45c06a99f58ad652fc0dea2", "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", - "provenanceTemplateId": "kontext_wide_water_alpine_ridge" + "provenanceTemplateId": "longcat_last_tram_at_dusk" }, { - "path": "template-gallery/reviews/kontext_wide_water_alpine_ridge.original-review.json", - "sha256": "sha256:bytes:f54561af3e759232c7e01a2515d98b66c38d56d7fe8ece573ce2f83bfcbbf3f8", + "path": "template-gallery/reviews/longcat_last_tram_at_dusk.original-review.json", + "sha256": "sha256:bytes:7ee2f38d8dd9199e6a754312dba9e962007389ba4527f0aebb96272b454394a5", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/black-forest-labs/FLUX.1-Kontext-dev/tree/24e9dedc4ef646698dc8eb4e18ae2cec3c9fea0d", - "sourceRevision": "black-forest-labs/FLUX.1-Kontext-dev@24e9dedc4ef646698dc8eb4e18ae2cec3c9fea0d", + "sourceUrl": "https://huggingface.co/ruixiangma/LongCat-AudioDiT-1B-Diffusers/tree/f4c063ea37f262ba5e6129ebd80095a6d6a9de4d", + "sourceRevision": "ruixiangma/LongCat-AudioDiT-1B-Diffusers@f4c063ea37f262ba5e6129ebd80095a6d6a9de4d", "sourceLicense": "MoDiff-authored Gallery metadata", "modelTerms": [ - "Publisher model terms at https://huggingface.co/black-forest-labs/FLUX.1-Kontext-dev/tree/24e9dedc4ef646698dc8eb4e18ae2cec3c9fea0d" + "Publisher model terms at https://huggingface.co/ruixiangma/LongCat-AudioDiT-1B-Diffusers/tree/f4c063ea37f262ba5e6129ebd80095a6d6a9de4d" ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "black-forest-labs/FLUX.1-Kontext-dev@24e9dedc4ef646698dc8eb4e18ae2cec3c9fea0d https://huggingface.co/black-forest-labs/FLUX.1-Kontext-dev/tree/24e9dedc4ef646698dc8eb4e18ae2cec3c9fea0d" + "ruixiangma/LongCat-AudioDiT-1B-Diffusers@f4c063ea37f262ba5e6129ebd80095a6d6a9de4d https://huggingface.co/ruixiangma/LongCat-AudioDiT-1B-Diffusers/tree/f4c063ea37f262ba5e6129ebd80095a6d6a9de4d" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "60b01498a2df5f4e4622cdc2f9a43c83d187820780d2425a19718c13707db501", + "humanApprovalPacketSHA256": "15c604ae5df3abed63c95046a78859adb870f415f45c06a99f58ad652fc0dea2", "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", - "provenanceTemplateId": "kontext_wide_water_alpine_ridge" + "provenanceTemplateId": "longcat_last_tram_at_dusk" }, - { - "path": "template-gallery/reviews/kontext_wide_water_alpine_ridge.quality-review.json", - "sha256": "sha256:bytes:2dcf22dab88c45ead8d951f9443f61657d37eb30d07add1183a3633dbffcfe98", + { + "path": "template-gallery/reviews/longcat_last_tram_at_dusk.quality-review.json", + "sha256": "sha256:bytes:f2883c589ff0313062b4c0c995b35ce08d837f02efb4f6f097d004961b8d298f", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/black-forest-labs/FLUX.1-Kontext-dev/tree/24e9dedc4ef646698dc8eb4e18ae2cec3c9fea0d", - "sourceRevision": "black-forest-labs/FLUX.1-Kontext-dev@24e9dedc4ef646698dc8eb4e18ae2cec3c9fea0d", + "sourceUrl": "https://huggingface.co/ruixiangma/LongCat-AudioDiT-1B-Diffusers/tree/f4c063ea37f262ba5e6129ebd80095a6d6a9de4d", + "sourceRevision": "ruixiangma/LongCat-AudioDiT-1B-Diffusers@f4c063ea37f262ba5e6129ebd80095a6d6a9de4d", "sourceLicense": "MoDiff-authored Gallery metadata", "modelTerms": [ - "Publisher model terms at https://huggingface.co/black-forest-labs/FLUX.1-Kontext-dev/tree/24e9dedc4ef646698dc8eb4e18ae2cec3c9fea0d" + "Publisher model terms at https://huggingface.co/ruixiangma/LongCat-AudioDiT-1B-Diffusers/tree/f4c063ea37f262ba5e6129ebd80095a6d6a9de4d" ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "black-forest-labs/FLUX.1-Kontext-dev@24e9dedc4ef646698dc8eb4e18ae2cec3c9fea0d https://huggingface.co/black-forest-labs/FLUX.1-Kontext-dev/tree/24e9dedc4ef646698dc8eb4e18ae2cec3c9fea0d" + "ruixiangma/LongCat-AudioDiT-1B-Diffusers@f4c063ea37f262ba5e6129ebd80095a6d6a9de4d https://huggingface.co/ruixiangma/LongCat-AudioDiT-1B-Diffusers/tree/f4c063ea37f262ba5e6129ebd80095a6d6a9de4d" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "60b01498a2df5f4e4622cdc2f9a43c83d187820780d2425a19718c13707db501", + "humanApprovalPacketSHA256": "15c604ae5df3abed63c95046a78859adb870f415f45c06a99f58ad652fc0dea2", "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", - "provenanceTemplateId": "kontext_wide_water_alpine_ridge" + "provenanceTemplateId": "longcat_last_tram_at_dusk" }, { - "path": "template-gallery/reviews/kontext_wide_water_alpine_ridge.retained-template-provenance.json", - "sha256": "sha256:bytes:97059d8dd67e7e5a82c9c458b4c992c680235cae0fc205fde6ae3915f43f3ff7", + "path": "template-gallery/reviews/longcat_last_tram_at_dusk.retained-template-provenance.json", + "sha256": "sha256:bytes:071240681910f119ab723f580b68bc1037896a28132a51fbb338e61bf9f8a0bf", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/black-forest-labs/FLUX.1-Kontext-dev/tree/24e9dedc4ef646698dc8eb4e18ae2cec3c9fea0d", - "sourceRevision": "black-forest-labs/FLUX.1-Kontext-dev@24e9dedc4ef646698dc8eb4e18ae2cec3c9fea0d", + "sourceUrl": "https://huggingface.co/ruixiangma/LongCat-AudioDiT-1B-Diffusers/tree/f4c063ea37f262ba5e6129ebd80095a6d6a9de4d", + "sourceRevision": "ruixiangma/LongCat-AudioDiT-1B-Diffusers@f4c063ea37f262ba5e6129ebd80095a6d6a9de4d", "sourceLicense": "MoDiff-authored Gallery metadata", "modelTerms": [ - "Publisher model terms at https://huggingface.co/black-forest-labs/FLUX.1-Kontext-dev/tree/24e9dedc4ef646698dc8eb4e18ae2cec3c9fea0d" + "Publisher model terms at https://huggingface.co/ruixiangma/LongCat-AudioDiT-1B-Diffusers/tree/f4c063ea37f262ba5e6129ebd80095a6d6a9de4d" ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "black-forest-labs/FLUX.1-Kontext-dev@24e9dedc4ef646698dc8eb4e18ae2cec3c9fea0d https://huggingface.co/black-forest-labs/FLUX.1-Kontext-dev/tree/24e9dedc4ef646698dc8eb4e18ae2cec3c9fea0d" + "ruixiangma/LongCat-AudioDiT-1B-Diffusers@f4c063ea37f262ba5e6129ebd80095a6d6a9de4d https://huggingface.co/ruixiangma/LongCat-AudioDiT-1B-Diffusers/tree/f4c063ea37f262ba5e6129ebd80095a6d6a9de4d" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "60b01498a2df5f4e4622cdc2f9a43c83d187820780d2425a19718c13707db501", + "humanApprovalPacketSHA256": "15c604ae5df3abed63c95046a78859adb870f415f45c06a99f58ad652fc0dea2", "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", - "provenanceTemplateId": "kontext_wide_water_alpine_ridge" + "provenanceTemplateId": "longcat_last_tram_at_dusk" }, { - "path": "template-gallery/reviews/lcm_dawn_alpine_lake.quality-review.json", - "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "path": "template-gallery/reviews/low_vram.quality-review.json", + "sha256": "sha256:bytes:53b25669d880814ac612e803b0c6f2abbcdd8853e7ea4ca6e1e6d0b97fa23352", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers", + "creationMethod": "MoDiff-authored technical provenance or quality metadata from the explicitly approved six-image source packet", + "sourceUrl": null, + "sourceRevision": null, + "sourceLicense": "Apache-2.0 project-authored metadata; generated-media terms remain in their exact per-file records", + "modelTerms": [], + "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], - "reviewedBy": "MoDiff workspace maintainer", - "reviewedAt": "2026-11-20", - "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "ba369c5fff89e379be66714d3ecbf1a0e3a9555e2b5ffbc9cb54210d862ec30b", - "publicationBasis": "Maintainer approved the exact Whisper JSON and both exact LCM images, accepted the disclosed LCM changes, and authorized publication of the associated redacted Gallery records.", - "creationMethod": "Project-authored redacted retained Gallery review, provenance or registration metadata", + "requiredAttribution": [], + "assetLicense": "Apache-2.0", + "reviewedBy": "SOURAV DAS", + "reviewedAt": "2026-11-09", + "reviewClass": "per-file-human-approved-six-z-registration", + "provenanceTemplateId": "low_vram", + "humanApprovalPacketSHA256": "9b728a5f8535fc1ba3c03d2e2759d7ac795a586fafab51beb1509379ed388934" + }, + { + "path": "template-gallery/reviews/low_vram.reviewed-provenance.json", + "sha256": "sha256:bytes:a07f1942cb39c873d7ccd1b99dbece3c203d73296712aa0168a3edf4054b8076", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers", + "creationMethod": "MoDiff-authored technical provenance or quality metadata from the explicitly approved six-image source packet", "sourceUrl": null, "sourceRevision": null, - "sourceLicense": "MoDiff-authored Gallery metadata", + "sourceLicense": "Apache-2.0 project-authored metadata; generated-media terms remain in their exact per-file records", "modelTerms": [], "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], "requiredAttribution": [], "assetLicense": "Apache-2.0", - "provenanceTemplateId": "lcm_dawn_alpine_lake", - "sha256": "sha256:bytes:e5c590a6287147faad9d5eab5676b8d2bb8224a8581a2043cf78c8dd50dcb0b9", + "reviewedBy": "SOURAV DAS", + "reviewedAt": "2026-11-09", + "reviewClass": "per-file-human-approved-six-z-registration", + "provenanceTemplateId": "low_vram", + "humanApprovalPacketSHA256": "9b728a5f8535fc1ba3c03d2e2759d7ac795a586fafab51beb1509379ed388934" + }, + { + "creatorOrRightsholder": "MoDiff project maintainers", + "creationMethod": "Project-authored redacted technical/review records or versioned declarations for seven maintainer-accepted native video replacements", + "sourceUrl": null, + "sourceRevision": null, + "sourceLicense": "Apache-2.0 project-authored metadata; media and model terms remain separate", + "modelTerms": [], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [], + "assetLicense": "Apache-2.0", + "path": "template-gallery/reviews/ltx_video_animated_story.quality-review.json", + "sha256": "sha256:bytes:1ec83b229ba5c7995c8ada2629c448334965939304ffddc7a70161c8b7e1b7f1", "publishDecision": "approved", - "holdReason": null + "holdReason": null, + "reviewedBy": "SOURAV DAS", + "reviewedAt": "2026-11-15", + "reviewClass": "per-file-maintainer-accepted-native-seven-registration", + "humanApprovalPacketSHA256": "95c7c2ed080c3d618db1701b066724660595337460c46df8305b50810783eaa3", + "publicationBasis": "these are approved, you can register them", + "provenanceTemplateId": "ltx_video_animated_story" }, { - "path": "template-gallery/reviews/lcm_dawn_alpine_lake.retained-template-provenance.json", - "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creatorOrRightsholder": "MoDiff project maintainers", + "creationMethod": "Project-authored redacted technical/review records or versioned declarations for seven maintainer-accepted native video replacements", + "sourceUrl": null, + "sourceRevision": null, + "sourceLicense": "Apache-2.0 project-authored metadata; media and model terms remain separate", + "modelTerms": [], + "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], - "reviewedBy": "MoDiff workspace maintainer", - "reviewedAt": "2026-11-20", - "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "ba369c5fff89e379be66714d3ecbf1a0e3a9555e2b5ffbc9cb54210d862ec30b", - "publicationBasis": "Maintainer approved the exact Whisper JSON and both exact LCM images, accepted the disclosed LCM changes, and authorized publication of the associated redacted Gallery records.", - "creationMethod": "Project-authored redacted retained Gallery review, provenance or registration metadata", + "requiredAttribution": [], + "assetLicense": "Apache-2.0", + "path": "template-gallery/reviews/ltx_video_animated_story.reviewed-provenance.json", + "sha256": "sha256:bytes:3910ae6f164eb978e38b16e1eab92d73fe7f55dac543b681416ba0b8c43b440d", + "publishDecision": "approved", + "holdReason": null, + "reviewedBy": "SOURAV DAS", + "reviewedAt": "2026-11-15", + "reviewClass": "per-file-maintainer-accepted-native-seven-registration", + "humanApprovalPacketSHA256": "95c7c2ed080c3d618db1701b066724660595337460c46df8305b50810783eaa3", + "publicationBasis": "these are approved, you can register them", + "provenanceTemplateId": "ltx_video_animated_story" + }, + { + "path": "template-gallery/reviews/ltx_video_image_to_video.quality-review.json", + "sha256": "sha256:bytes:6c31e71b0b9e6a6a1c46f55e058dd208b7b2f510f6eeb332648575da388f9431", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers", + "creationMethod": "Project-authored Gallery manifest, native provenance or accepted quality review", "sourceUrl": null, "sourceRevision": null, - "sourceLicense": "MoDiff-authored Gallery metadata", + "sourceLicense": "Apache-2.0 project-authored metadata", "modelTerms": [], "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], "requiredAttribution": [], "assetLicense": "Apache-2.0", - "provenanceTemplateId": "lcm_dawn_alpine_lake", - "sha256": "sha256:bytes:767b8d794460fca5a3e1c79a89aeaa2b1dcdb815d47702e1063ed35d07163247", + "reviewedBy": "SOURAV DAS", + "reviewedAt": "2026-11-10", + "reviewClass": "per-file-maintainer-accepted-native-gallery-registration", + "provenanceTemplateId": "ltx_video_image_to_video", + "humanApprovalPacketSHA256": "73ddf9ea7fc27eccc6b93817809421a008ce0fd2fb3080ffbdc5831a09205304" + }, + { + "path": "template-gallery/reviews/ltx_video_image_to_video.reviewed-provenance.json", + "sha256": "sha256:bytes:ff18a19dd44e03eb76e3879a7e49f1732cc9e6dba6affadcf370feafcc6cf06b", "publishDecision": "approved", - "holdReason": null + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers", + "creationMethod": "Project-authored Gallery manifest, native provenance or accepted quality review", + "sourceUrl": null, + "sourceRevision": null, + "sourceLicense": "Apache-2.0 project-authored metadata", + "modelTerms": [], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [], + "assetLicense": "Apache-2.0", + "reviewedBy": "SOURAV DAS", + "reviewedAt": "2026-11-10", + "reviewClass": "per-file-maintainer-accepted-native-gallery-registration", + "provenanceTemplateId": "ltx_video_image_to_video", + "humanApprovalPacketSHA256": "73ddf9ea7fc27eccc6b93817809421a008ce0fd2fb3080ffbdc5831a09205304" }, { - "path": "template-gallery/reviews/longcat_clear_glass_at_the_bookshop.original-provenance.json", - "sha256": "sha256:bytes:055c3ff5cf5493c80e675b8cd97de5c448856204330c1434522cc0c91482b522", + "creatorOrRightsholder": "MoDiff project maintainers", + "creationMethod": "Project-authored redacted technical/review records or versioned declarations for seven maintainer-accepted native video replacements", + "sourceUrl": null, + "sourceRevision": null, + "sourceLicense": "Apache-2.0 project-authored metadata; media and model terms remain separate", + "modelTerms": [], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [], + "assetLicense": "Apache-2.0", + "path": "template-gallery/reviews/ltx_video_long_showcase.quality-review.json", + "sha256": "sha256:bytes:60cbabfbf56d499a45000cdbabc3c4d64733de27638c1e8b127ba067f1918b9c", "publishDecision": "approved", "holdReason": null, - "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", - "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/meituan-longcat/LongCat-Image-Edit/tree/7b54ef423aa7854be7861600024be5c56ab7875a", - "sourceRevision": "meituan-longcat/LongCat-Image-Edit@7b54ef423aa7854be7861600024be5c56ab7875a", - "sourceLicense": "MoDiff-authored Gallery metadata", - "modelTerms": [ - "Publisher model terms at https://huggingface.co/meituan-longcat/LongCat-Image-Edit/tree/7b54ef423aa7854be7861600024be5c56ab7875a" - ], + "reviewedBy": "SOURAV DAS", + "reviewedAt": "2026-11-15", + "reviewClass": "per-file-maintainer-accepted-native-seven-registration", + "humanApprovalPacketSHA256": "95c7c2ed080c3d618db1701b066724660595337460c46df8305b50810783eaa3", + "publicationBasis": "these are approved, you can register them", + "provenanceTemplateId": "ltx_video_long_showcase" + }, + { + "creatorOrRightsholder": "MoDiff project maintainers", + "creationMethod": "Project-authored redacted technical/review records or versioned declarations for seven maintainer-accepted native video replacements", + "sourceUrl": null, + "sourceRevision": null, + "sourceLicense": "Apache-2.0 project-authored metadata; media and model terms remain separate", + "modelTerms": [], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], - "requiredAttribution": [ - "meituan-longcat/LongCat-Image-Edit@7b54ef423aa7854be7861600024be5c56ab7875a https://huggingface.co/meituan-longcat/LongCat-Image-Edit/tree/7b54ef423aa7854be7861600024be5c56ab7875a" - ], + "requiredAttribution": [], "assetLicense": "Apache-2.0", - "reviewedBy": "MoDiff workspace maintainer", - "reviewedAt": "2026-11-25", - "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "60b01498a2df5f4e4622cdc2f9a43c83d187820780d2425a19718c13707db501", - "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", - "provenanceTemplateId": "longcat_clear_glass_at_the_bookshop" + "path": "template-gallery/reviews/ltx_video_long_showcase.reviewed-provenance.json", + "sha256": "sha256:bytes:c2566ed4233b850092727e2bfc805d1be849c2b11cd9424e42283ff9e19b15d0", + "publishDecision": "approved", + "holdReason": null, + "reviewedBy": "SOURAV DAS", + "reviewedAt": "2026-11-15", + "reviewClass": "per-file-maintainer-accepted-native-seven-registration", + "humanApprovalPacketSHA256": "95c7c2ed080c3d618db1701b066724660595337460c46df8305b50810783eaa3", + "publicationBasis": "these are approved, you can register them", + "provenanceTemplateId": "ltx_video_long_showcase" }, { - "path": "template-gallery/reviews/longcat_clear_glass_at_the_bookshop.original-review.json", - "sha256": "sha256:bytes:dabecbb61888f492a4e7d8f45e368097c7f286df24c163c8b5e753ce4553d0ff", + "path": "template-gallery/reviews/ltx_video_multi_reference.quality-review.json", + "sha256": "sha256:bytes:ccb132c3ffd2e929acca88d871c2f04ba9d0cd69d54750f303b58953a8b9bc93", "publishDecision": "approved", "holdReason": null, - "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", - "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/meituan-longcat/LongCat-Image-Edit/tree/7b54ef423aa7854be7861600024be5c56ab7875a", - "sourceRevision": "meituan-longcat/LongCat-Image-Edit@7b54ef423aa7854be7861600024be5c56ab7875a", - "sourceLicense": "MoDiff-authored Gallery metadata", - "modelTerms": [ - "Publisher model terms at https://huggingface.co/meituan-longcat/LongCat-Image-Edit/tree/7b54ef423aa7854be7861600024be5c56ab7875a" - ], + "creatorOrRightsholder": "MoDiff project maintainers", + "creationMethod": "Project-authored Gallery manifest, native provenance or accepted quality review", + "sourceUrl": null, + "sourceRevision": null, + "sourceLicense": "Apache-2.0 project-authored metadata", + "modelTerms": [], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [], + "assetLicense": "Apache-2.0", + "reviewedBy": "SOURAV DAS", + "reviewedAt": "2026-11-10", + "reviewClass": "per-file-maintainer-accepted-native-gallery-registration", + "provenanceTemplateId": "ltx_video_multi_reference", + "humanApprovalPacketSHA256": "73ddf9ea7fc27eccc6b93817809421a008ce0fd2fb3080ffbdc5831a09205304" + }, + { + "path": "template-gallery/reviews/ltx_video_multi_reference.reviewed-provenance.json", + "sha256": "sha256:bytes:9bdf09de275841af2f1f63ce0011dfc1eeaa703e2deeb2ebf678090abad80203", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers", + "creationMethod": "Project-authored Gallery manifest, native provenance or accepted quality review", + "sourceUrl": null, + "sourceRevision": null, + "sourceLicense": "Apache-2.0 project-authored metadata", + "modelTerms": [], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], - "requiredAttribution": [ - "meituan-longcat/LongCat-Image-Edit@7b54ef423aa7854be7861600024be5c56ab7875a https://huggingface.co/meituan-longcat/LongCat-Image-Edit/tree/7b54ef423aa7854be7861600024be5c56ab7875a" - ], + "requiredAttribution": [], "assetLicense": "Apache-2.0", - "reviewedBy": "MoDiff workspace maintainer", - "reviewedAt": "2026-11-25", - "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "60b01498a2df5f4e4622cdc2f9a43c83d187820780d2425a19718c13707db501", - "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", - "provenanceTemplateId": "longcat_clear_glass_at_the_bookshop" + "reviewedBy": "SOURAV DAS", + "reviewedAt": "2026-11-10", + "reviewClass": "per-file-maintainer-accepted-native-gallery-registration", + "provenanceTemplateId": "ltx_video_multi_reference", + "humanApprovalPacketSHA256": "73ddf9ea7fc27eccc6b93817809421a008ce0fd2fb3080ffbdc5831a09205304" }, { - "path": "template-gallery/reviews/longcat_clear_glass_at_the_bookshop.quality-review.json", - "sha256": "sha256:bytes:03185586cf4d78ccfa2aae9dcb3962e82b611d03bb5fefc03bdf34851d50a9ed", + "path": "template-gallery/reviews/ltx_video_text_to_video.quality-review.json", + "sha256": "sha256:bytes:37f6a5c00110c6f9e306447a53691521c77db1ecf3cedf8210dd1e7ed10ea99d", "publishDecision": "approved", "holdReason": null, - "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", - "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/meituan-longcat/LongCat-Image-Edit/tree/7b54ef423aa7854be7861600024be5c56ab7875a", - "sourceRevision": "meituan-longcat/LongCat-Image-Edit@7b54ef423aa7854be7861600024be5c56ab7875a", - "sourceLicense": "MoDiff-authored Gallery metadata", - "modelTerms": [ - "Publisher model terms at https://huggingface.co/meituan-longcat/LongCat-Image-Edit/tree/7b54ef423aa7854be7861600024be5c56ab7875a" - ], + "creatorOrRightsholder": "MoDiff project maintainers", + "creationMethod": "Project-authored Gallery manifest, native provenance or accepted quality review", + "sourceUrl": null, + "sourceRevision": null, + "sourceLicense": "Apache-2.0 project-authored metadata", + "modelTerms": [], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], - "requiredAttribution": [ - "meituan-longcat/LongCat-Image-Edit@7b54ef423aa7854be7861600024be5c56ab7875a https://huggingface.co/meituan-longcat/LongCat-Image-Edit/tree/7b54ef423aa7854be7861600024be5c56ab7875a" - ], + "requiredAttribution": [], "assetLicense": "Apache-2.0", - "reviewedBy": "MoDiff workspace maintainer", - "reviewedAt": "2026-11-25", - "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "60b01498a2df5f4e4622cdc2f9a43c83d187820780d2425a19718c13707db501", - "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", - "provenanceTemplateId": "longcat_clear_glass_at_the_bookshop" + "reviewedBy": "SOURAV DAS", + "reviewedAt": "2026-11-10", + "reviewClass": "per-file-maintainer-accepted-native-gallery-registration", + "provenanceTemplateId": "ltx_video_text_to_video", + "humanApprovalPacketSHA256": "73ddf9ea7fc27eccc6b93817809421a008ce0fd2fb3080ffbdc5831a09205304" }, { - "path": "template-gallery/reviews/longcat_clear_glass_at_the_bookshop.retained-template-provenance.json", - "sha256": "sha256:bytes:8df85b747c9a5b0fe11bb20d81d64b1df7bccb96ec505aa99855adbcf9dd6e51", + "path": "template-gallery/reviews/ltx_video_text_to_video.reviewed-provenance.json", + "sha256": "sha256:bytes:58bfc0b841177bc73dbde13effbf5eebcf9e8d618d3aa90aa8b19afc3a6e5132", "publishDecision": "approved", "holdReason": null, - "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", - "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/meituan-longcat/LongCat-Image-Edit/tree/7b54ef423aa7854be7861600024be5c56ab7875a", - "sourceRevision": "meituan-longcat/LongCat-Image-Edit@7b54ef423aa7854be7861600024be5c56ab7875a", - "sourceLicense": "MoDiff-authored Gallery metadata", - "modelTerms": [ - "Publisher model terms at https://huggingface.co/meituan-longcat/LongCat-Image-Edit/tree/7b54ef423aa7854be7861600024be5c56ab7875a" - ], + "creatorOrRightsholder": "MoDiff project maintainers", + "creationMethod": "Project-authored Gallery manifest, native provenance or accepted quality review", + "sourceUrl": null, + "sourceRevision": null, + "sourceLicense": "Apache-2.0 project-authored metadata", + "modelTerms": [], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], - "requiredAttribution": [ - "meituan-longcat/LongCat-Image-Edit@7b54ef423aa7854be7861600024be5c56ab7875a https://huggingface.co/meituan-longcat/LongCat-Image-Edit/tree/7b54ef423aa7854be7861600024be5c56ab7875a" - ], + "requiredAttribution": [], "assetLicense": "Apache-2.0", - "reviewedBy": "MoDiff workspace maintainer", - "reviewedAt": "2026-11-25", - "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "60b01498a2df5f4e4622cdc2f9a43c83d187820780d2425a19718c13707db501", - "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", - "provenanceTemplateId": "longcat_clear_glass_at_the_bookshop" + "reviewedBy": "SOURAV DAS", + "reviewedAt": "2026-11-10", + "reviewClass": "per-file-maintainer-accepted-native-gallery-registration", + "provenanceTemplateId": "ltx_video_text_to_video", + "humanApprovalPacketSHA256": "73ddf9ea7fc27eccc6b93817809421a008ce0fd2fb3080ffbdc5831a09205304" }, { - "path": "template-gallery/reviews/longcat_florist_end_of_lane.original-provenance.json", - "sha256": "sha256:bytes:31fa3b13f1a585031ab220cb3a1039a9e7c2ed40757801c56cbcc846125ac7b8", + "creatorOrRightsholder": "MoDiff project maintainers", + "creationMethod": "Project-authored redacted technical/review records or versioned declarations for six maintainer-accepted native results", + "sourceUrl": null, + "sourceRevision": null, + "sourceLicense": "Apache-2.0 project-authored metadata; media and model terms remain separate", + "modelTerms": [], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [], + "assetLicense": "Apache-2.0", + "path": "template-gallery/reviews/ltx_video_video_to_video.quality-review.json", + "sha256": "sha256:bytes:819fd6d872b8e86bbb091980a435bd363216d069223dd694f65d7942aeb05178", "publishDecision": "approved", "holdReason": null, - "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", - "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/meituan-longcat/LongCat-Image/tree/d2ea50b79a930074c37b9b97ce45e3b2ea8cf4d8", - "sourceRevision": "meituan-longcat/LongCat-Image@d2ea50b79a930074c37b9b97ce45e3b2ea8cf4d8", - "sourceLicense": "MoDiff-authored Gallery metadata", - "modelTerms": [ - "Publisher model terms at https://huggingface.co/meituan-longcat/LongCat-Image/tree/d2ea50b79a930074c37b9b97ce45e3b2ea8cf4d8" - ], + "reviewedBy": "SOURAV DAS", + "reviewedAt": "2026-11-13", + "reviewClass": "per-file-maintainer-accepted-native-six-registration", + "humanApprovalPacketSHA256": "03b66b4631afb15032d62a1705331b56f6b12c4882c23945175ec92cc45a506f", + "publicationBasis": "Register the six approved assets now while Moonflower runs on Linux. Use Windows in parallel wherever possible, and keep the longer workflows separate for AMD cloud.", + "provenanceTemplateId": "ltx_video_video_to_video" + }, + { + "creatorOrRightsholder": "MoDiff project maintainers", + "creationMethod": "Project-authored redacted technical/review records or versioned declarations for six maintainer-accepted native results", + "sourceUrl": null, + "sourceRevision": null, + "sourceLicense": "Apache-2.0 project-authored metadata; media and model terms remain separate", + "modelTerms": [], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], - "requiredAttribution": [ - "meituan-longcat/LongCat-Image@d2ea50b79a930074c37b9b97ce45e3b2ea8cf4d8 https://huggingface.co/meituan-longcat/LongCat-Image/tree/d2ea50b79a930074c37b9b97ce45e3b2ea8cf4d8" - ], + "requiredAttribution": [], "assetLicense": "Apache-2.0", - "reviewedBy": "MoDiff workspace maintainer", - "reviewedAt": "2026-11-25", - "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "4fc7c52588176cb1f6ba6d699d08741b2986ea71ea87bac650d261716a10b24c", - "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", - "provenanceTemplateId": "longcat_florist_end_of_lane" + "path": "template-gallery/reviews/ltx_video_video_to_video.reviewed-provenance.json", + "sha256": "sha256:bytes:9de3b2659acc8383ab86923bc7c9c87be3e53f3d894a06c77af8a16a155795a4", + "publishDecision": "approved", + "holdReason": null, + "reviewedBy": "SOURAV DAS", + "reviewedAt": "2026-11-13", + "reviewClass": "per-file-maintainer-accepted-native-six-registration", + "humanApprovalPacketSHA256": "03b66b4631afb15032d62a1705331b56f6b12c4882c23945175ec92cc45a506f", + "publicationBasis": "Register the six approved assets now while Moonflower runs on Linux. Use Windows in parallel wherever possible, and keep the longer workflows separate for AMD cloud.", + "provenanceTemplateId": "ltx_video_video_to_video" }, { - "path": "template-gallery/reviews/longcat_florist_end_of_lane.original-review.json", - "sha256": "sha256:bytes:adc8b682f80f09677b97fa57651d336d8b966f7e19586256e6559505f57f9cfc", + "path": "template-gallery/reviews/lumina2_larch_on_glacial_pond.original-provenance.json", + "sha256": "sha256:bytes:16e6a8baf35baec6d9e1be13523eaa5606174123b3a61274a257d5fbd14977f3", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/meituan-longcat/LongCat-Image/tree/d2ea50b79a930074c37b9b97ce45e3b2ea8cf4d8", - "sourceRevision": "meituan-longcat/LongCat-Image@d2ea50b79a930074c37b9b97ce45e3b2ea8cf4d8", + "sourceUrl": "https://huggingface.co/Alpha-VLLM/Lumina-Image-2.0/tree/53504abd8178b30685b6c4c7a4cd181ff78b73e9", + "sourceRevision": "Alpha-VLLM/Lumina-Image-2.0@53504abd8178b30685b6c4c7a4cd181ff78b73e9", "sourceLicense": "MoDiff-authored Gallery metadata", "modelTerms": [ - "Publisher model terms at https://huggingface.co/meituan-longcat/LongCat-Image/tree/d2ea50b79a930074c37b9b97ce45e3b2ea8cf4d8" + "Publisher model terms at https://huggingface.co/Alpha-VLLM/Lumina-Image-2.0/tree/53504abd8178b30685b6c4c7a4cd181ff78b73e9" ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "meituan-longcat/LongCat-Image@d2ea50b79a930074c37b9b97ce45e3b2ea8cf4d8 https://huggingface.co/meituan-longcat/LongCat-Image/tree/d2ea50b79a930074c37b9b97ce45e3b2ea8cf4d8" + "Alpha-VLLM/Lumina-Image-2.0@53504abd8178b30685b6c4c7a4cd181ff78b73e9 https://huggingface.co/Alpha-VLLM/Lumina-Image-2.0/tree/53504abd8178b30685b6c4c7a4cd181ff78b73e9" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "4fc7c52588176cb1f6ba6d699d08741b2986ea71ea87bac650d261716a10b24c", + "humanApprovalPacketSHA256": "c2df9edb92f8ff905b6c9a138a285e67c621f3d2dfa3232f859aaf963b725aca", "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", - "provenanceTemplateId": "longcat_florist_end_of_lane" + "provenanceTemplateId": "lumina2_larch_on_glacial_pond" }, { - "path": "template-gallery/reviews/longcat_florist_end_of_lane.quality-review.json", - "sha256": "sha256:bytes:c2b07ec9dccd4ac97f229ff2c836b5215377c240b8455db32a4f72f0313f7a4c", + "path": "template-gallery/reviews/lumina2_larch_on_glacial_pond.original-review.json", + "sha256": "sha256:bytes:3fa1cbf6c53ed5ce65f8d116779ff9dea32a9c52c8a0877fbb87f77f17237695", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/meituan-longcat/LongCat-Image/tree/d2ea50b79a930074c37b9b97ce45e3b2ea8cf4d8", - "sourceRevision": "meituan-longcat/LongCat-Image@d2ea50b79a930074c37b9b97ce45e3b2ea8cf4d8", + "sourceUrl": "https://huggingface.co/Alpha-VLLM/Lumina-Image-2.0/tree/53504abd8178b30685b6c4c7a4cd181ff78b73e9", + "sourceRevision": "Alpha-VLLM/Lumina-Image-2.0@53504abd8178b30685b6c4c7a4cd181ff78b73e9", "sourceLicense": "MoDiff-authored Gallery metadata", "modelTerms": [ - "Publisher model terms at https://huggingface.co/meituan-longcat/LongCat-Image/tree/d2ea50b79a930074c37b9b97ce45e3b2ea8cf4d8" + "Publisher model terms at https://huggingface.co/Alpha-VLLM/Lumina-Image-2.0/tree/53504abd8178b30685b6c4c7a4cd181ff78b73e9" ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "meituan-longcat/LongCat-Image@d2ea50b79a930074c37b9b97ce45e3b2ea8cf4d8 https://huggingface.co/meituan-longcat/LongCat-Image/tree/d2ea50b79a930074c37b9b97ce45e3b2ea8cf4d8" + "Alpha-VLLM/Lumina-Image-2.0@53504abd8178b30685b6c4c7a4cd181ff78b73e9 https://huggingface.co/Alpha-VLLM/Lumina-Image-2.0/tree/53504abd8178b30685b6c4c7a4cd181ff78b73e9" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "4fc7c52588176cb1f6ba6d699d08741b2986ea71ea87bac650d261716a10b24c", + "humanApprovalPacketSHA256": "c2df9edb92f8ff905b6c9a138a285e67c621f3d2dfa3232f859aaf963b725aca", "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", - "provenanceTemplateId": "longcat_florist_end_of_lane" + "provenanceTemplateId": "lumina2_larch_on_glacial_pond" }, { - "path": "template-gallery/reviews/longcat_florist_end_of_lane.retained-template-provenance.json", - "sha256": "sha256:bytes:14da3c1cbc2f7ea57b4ec3d84f1a78d72a4e22b62ce0e0d757db78297c3fbed9", + "path": "template-gallery/reviews/lumina2_larch_on_glacial_pond.quality-review.json", + "sha256": "sha256:bytes:527cf3a6d6a7820e09450d4a6d533e5d875a914bd2c8771c2060a513f712544e", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/meituan-longcat/LongCat-Image/tree/d2ea50b79a930074c37b9b97ce45e3b2ea8cf4d8", - "sourceRevision": "meituan-longcat/LongCat-Image@d2ea50b79a930074c37b9b97ce45e3b2ea8cf4d8", + "sourceUrl": "https://huggingface.co/Alpha-VLLM/Lumina-Image-2.0/tree/53504abd8178b30685b6c4c7a4cd181ff78b73e9", + "sourceRevision": "Alpha-VLLM/Lumina-Image-2.0@53504abd8178b30685b6c4c7a4cd181ff78b73e9", "sourceLicense": "MoDiff-authored Gallery metadata", "modelTerms": [ - "Publisher model terms at https://huggingface.co/meituan-longcat/LongCat-Image/tree/d2ea50b79a930074c37b9b97ce45e3b2ea8cf4d8" + "Publisher model terms at https://huggingface.co/Alpha-VLLM/Lumina-Image-2.0/tree/53504abd8178b30685b6c4c7a4cd181ff78b73e9" ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "meituan-longcat/LongCat-Image@d2ea50b79a930074c37b9b97ce45e3b2ea8cf4d8 https://huggingface.co/meituan-longcat/LongCat-Image/tree/d2ea50b79a930074c37b9b97ce45e3b2ea8cf4d8" + "Alpha-VLLM/Lumina-Image-2.0@53504abd8178b30685b6c4c7a4cd181ff78b73e9 https://huggingface.co/Alpha-VLLM/Lumina-Image-2.0/tree/53504abd8178b30685b6c4c7a4cd181ff78b73e9" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "4fc7c52588176cb1f6ba6d699d08741b2986ea71ea87bac650d261716a10b24c", + "humanApprovalPacketSHA256": "c2df9edb92f8ff905b6c9a138a285e67c621f3d2dfa3232f859aaf963b725aca", "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", - "provenanceTemplateId": "longcat_florist_end_of_lane" + "provenanceTemplateId": "lumina2_larch_on_glacial_pond" }, { - "path": "template-gallery/reviews/longcat_last_tram_at_dusk.original-provenance.json", - "sha256": "sha256:bytes:34b322e643eacf47f4c02019564cb85720cb3b9b8334d524e47226d60c4faa60", + "path": "template-gallery/reviews/lumina2_larch_on_glacial_pond.retained-template-provenance.json", + "sha256": "sha256:bytes:d62e4d0a6e3739b95089003b3095611e419f62bcdc39befbb67aeba846aec0c8", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/ruixiangma/LongCat-AudioDiT-1B-Diffusers/tree/f4c063ea37f262ba5e6129ebd80095a6d6a9de4d", - "sourceRevision": "ruixiangma/LongCat-AudioDiT-1B-Diffusers@f4c063ea37f262ba5e6129ebd80095a6d6a9de4d", + "sourceUrl": "https://huggingface.co/Alpha-VLLM/Lumina-Image-2.0/tree/53504abd8178b30685b6c4c7a4cd181ff78b73e9", + "sourceRevision": "Alpha-VLLM/Lumina-Image-2.0@53504abd8178b30685b6c4c7a4cd181ff78b73e9", "sourceLicense": "MoDiff-authored Gallery metadata", "modelTerms": [ - "Publisher model terms at https://huggingface.co/ruixiangma/LongCat-AudioDiT-1B-Diffusers/tree/f4c063ea37f262ba5e6129ebd80095a6d6a9de4d" + "Publisher model terms at https://huggingface.co/Alpha-VLLM/Lumina-Image-2.0/tree/53504abd8178b30685b6c4c7a4cd181ff78b73e9" ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "ruixiangma/LongCat-AudioDiT-1B-Diffusers@f4c063ea37f262ba5e6129ebd80095a6d6a9de4d https://huggingface.co/ruixiangma/LongCat-AudioDiT-1B-Diffusers/tree/f4c063ea37f262ba5e6129ebd80095a6d6a9de4d" + "Alpha-VLLM/Lumina-Image-2.0@53504abd8178b30685b6c4c7a4cd181ff78b73e9 https://huggingface.co/Alpha-VLLM/Lumina-Image-2.0/tree/53504abd8178b30685b6c4c7a4cd181ff78b73e9" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "15c604ae5df3abed63c95046a78859adb870f415f45c06a99f58ad652fc0dea2", + "humanApprovalPacketSHA256": "c2df9edb92f8ff905b6c9a138a285e67c621f3d2dfa3232f859aaf963b725aca", "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", - "provenanceTemplateId": "longcat_last_tram_at_dusk" + "provenanceTemplateId": "lumina2_larch_on_glacial_pond" }, { - "path": "template-gallery/reviews/longcat_last_tram_at_dusk.original-review.json", - "sha256": "sha256:bytes:7ee2f38d8dd9199e6a754312dba9e962007389ba4527f0aebb96272b454394a5", + "path": "template-gallery/reviews/lumina_opal_pendant_in_limestone.original-provenance.json", + "sha256": "sha256:bytes:1759ed2ceb7e564e568eced6f47a017c647dd549c2ebdf6e414310d8445a4fd4", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/ruixiangma/LongCat-AudioDiT-1B-Diffusers/tree/f4c063ea37f262ba5e6129ebd80095a6d6a9de4d", - "sourceRevision": "ruixiangma/LongCat-AudioDiT-1B-Diffusers@f4c063ea37f262ba5e6129ebd80095a6d6a9de4d", + "sourceUrl": "https://huggingface.co/Alpha-VLLM/Lumina-Next-SFT-diffusers/tree/0ee5ec90043acf5cb41fe96274af36eb7fad8d95", + "sourceRevision": "Alpha-VLLM/Lumina-Next-SFT-diffusers@0ee5ec90043acf5cb41fe96274af36eb7fad8d95", "sourceLicense": "MoDiff-authored Gallery metadata", "modelTerms": [ - "Publisher model terms at https://huggingface.co/ruixiangma/LongCat-AudioDiT-1B-Diffusers/tree/f4c063ea37f262ba5e6129ebd80095a6d6a9de4d" + "https://huggingface.co/Alpha-VLLM/Lumina-Next-SFT-diffusers/blob/0ee5ec90043acf5cb41fe96274af36eb7fad8d95/README.md" ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "ruixiangma/LongCat-AudioDiT-1B-Diffusers@f4c063ea37f262ba5e6129ebd80095a6d6a9de4d https://huggingface.co/ruixiangma/LongCat-AudioDiT-1B-Diffusers/tree/f4c063ea37f262ba5e6129ebd80095a6d6a9de4d" + "Alpha-VLLM/Lumina-Next-SFT-diffusers@0ee5ec90043acf5cb41fe96274af36eb7fad8d95 https://huggingface.co/Alpha-VLLM/Lumina-Next-SFT-diffusers/tree/0ee5ec90043acf5cb41fe96274af36eb7fad8d95" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "15c604ae5df3abed63c95046a78859adb870f415f45c06a99f58ad652fc0dea2", - "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", - "provenanceTemplateId": "longcat_last_tram_at_dusk" + "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", + "provenanceTemplateId": "lumina_opal_pendant_in_limestone" }, { - "path": "template-gallery/reviews/longcat_last_tram_at_dusk.quality-review.json", - "sha256": "sha256:bytes:f2883c589ff0313062b4c0c995b35ce08d837f02efb4f6f097d004961b8d298f", + "path": "template-gallery/reviews/lumina_opal_pendant_in_limestone.original-review.json", + "sha256": "sha256:bytes:11b0b3259e607f479a30ccb2c6f530ff41cb6367245961c43f56ccad21babfb7", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/ruixiangma/LongCat-AudioDiT-1B-Diffusers/tree/f4c063ea37f262ba5e6129ebd80095a6d6a9de4d", - "sourceRevision": "ruixiangma/LongCat-AudioDiT-1B-Diffusers@f4c063ea37f262ba5e6129ebd80095a6d6a9de4d", + "sourceUrl": "https://huggingface.co/Alpha-VLLM/Lumina-Next-SFT-diffusers/tree/0ee5ec90043acf5cb41fe96274af36eb7fad8d95", + "sourceRevision": "Alpha-VLLM/Lumina-Next-SFT-diffusers@0ee5ec90043acf5cb41fe96274af36eb7fad8d95", "sourceLicense": "MoDiff-authored Gallery metadata", "modelTerms": [ - "Publisher model terms at https://huggingface.co/ruixiangma/LongCat-AudioDiT-1B-Diffusers/tree/f4c063ea37f262ba5e6129ebd80095a6d6a9de4d" + "https://huggingface.co/Alpha-VLLM/Lumina-Next-SFT-diffusers/blob/0ee5ec90043acf5cb41fe96274af36eb7fad8d95/README.md" ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "ruixiangma/LongCat-AudioDiT-1B-Diffusers@f4c063ea37f262ba5e6129ebd80095a6d6a9de4d https://huggingface.co/ruixiangma/LongCat-AudioDiT-1B-Diffusers/tree/f4c063ea37f262ba5e6129ebd80095a6d6a9de4d" + "Alpha-VLLM/Lumina-Next-SFT-diffusers@0ee5ec90043acf5cb41fe96274af36eb7fad8d95 https://huggingface.co/Alpha-VLLM/Lumina-Next-SFT-diffusers/tree/0ee5ec90043acf5cb41fe96274af36eb7fad8d95" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "15c604ae5df3abed63c95046a78859adb870f415f45c06a99f58ad652fc0dea2", - "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", - "provenanceTemplateId": "longcat_last_tram_at_dusk" + "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", + "provenanceTemplateId": "lumina_opal_pendant_in_limestone" }, { - "path": "template-gallery/reviews/longcat_last_tram_at_dusk.retained-template-provenance.json", - "sha256": "sha256:bytes:071240681910f119ab723f580b68bc1037896a28132a51fbb338e61bf9f8a0bf", + "path": "template-gallery/reviews/lumina_opal_pendant_in_limestone.quality-review.json", + "sha256": "sha256:bytes:4566c14128c7a9a7b32d92d927cff0c2ca12bb392328bd692272130e0c5fe387", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/ruixiangma/LongCat-AudioDiT-1B-Diffusers/tree/f4c063ea37f262ba5e6129ebd80095a6d6a9de4d", - "sourceRevision": "ruixiangma/LongCat-AudioDiT-1B-Diffusers@f4c063ea37f262ba5e6129ebd80095a6d6a9de4d", + "sourceUrl": "https://huggingface.co/Alpha-VLLM/Lumina-Next-SFT-diffusers/tree/0ee5ec90043acf5cb41fe96274af36eb7fad8d95", + "sourceRevision": "Alpha-VLLM/Lumina-Next-SFT-diffusers@0ee5ec90043acf5cb41fe96274af36eb7fad8d95", "sourceLicense": "MoDiff-authored Gallery metadata", "modelTerms": [ - "Publisher model terms at https://huggingface.co/ruixiangma/LongCat-AudioDiT-1B-Diffusers/tree/f4c063ea37f262ba5e6129ebd80095a6d6a9de4d" + "https://huggingface.co/Alpha-VLLM/Lumina-Next-SFT-diffusers/blob/0ee5ec90043acf5cb41fe96274af36eb7fad8d95/README.md" ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "ruixiangma/LongCat-AudioDiT-1B-Diffusers@f4c063ea37f262ba5e6129ebd80095a6d6a9de4d https://huggingface.co/ruixiangma/LongCat-AudioDiT-1B-Diffusers/tree/f4c063ea37f262ba5e6129ebd80095a6d6a9de4d" + "Alpha-VLLM/Lumina-Next-SFT-diffusers@0ee5ec90043acf5cb41fe96274af36eb7fad8d95 https://huggingface.co/Alpha-VLLM/Lumina-Next-SFT-diffusers/tree/0ee5ec90043acf5cb41fe96274af36eb7fad8d95" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "15c604ae5df3abed63c95046a78859adb870f415f45c06a99f58ad652fc0dea2", - "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", - "provenanceTemplateId": "longcat_last_tram_at_dusk" + "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", + "provenanceTemplateId": "lumina_opal_pendant_in_limestone" }, { - "path": "template-gallery/reviews/low_vram.quality-review.json", - "sha256": "sha256:bytes:53b25669d880814ac612e803b0c6f2abbcdd8853e7ea4ca6e1e6d0b97fa23352", + "path": "template-gallery/reviews/lumina_opal_pendant_in_limestone.retained-template-provenance.json", + "sha256": "sha256:bytes:a4e3e7b9be7fdd489f3876e63e7d0e9ed65508e84eabb0a673719251d3d46e0e", "publishDecision": "approved", "holdReason": null, - "creatorOrRightsholder": "MoDiff project maintainers", - "creationMethod": "MoDiff-authored technical provenance or quality metadata from the explicitly approved six-image source packet", - "sourceUrl": null, - "sourceRevision": null, - "sourceLicense": "Apache-2.0 project-authored metadata; generated-media terms remain in their exact per-file records", - "modelTerms": [], + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/Alpha-VLLM/Lumina-Next-SFT-diffusers/tree/0ee5ec90043acf5cb41fe96274af36eb7fad8d95", + "sourceRevision": "Alpha-VLLM/Lumina-Next-SFT-diffusers@0ee5ec90043acf5cb41fe96274af36eb7fad8d95", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "https://huggingface.co/Alpha-VLLM/Lumina-Next-SFT-diffusers/blob/0ee5ec90043acf5cb41fe96274af36eb7fad8d95/README.md" + ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], - "requiredAttribution": [], + "requiredAttribution": [ + "Alpha-VLLM/Lumina-Next-SFT-diffusers@0ee5ec90043acf5cb41fe96274af36eb7fad8d95 https://huggingface.co/Alpha-VLLM/Lumina-Next-SFT-diffusers/tree/0ee5ec90043acf5cb41fe96274af36eb7fad8d95" + ], "assetLicense": "Apache-2.0", - "reviewedBy": "SOURAV DAS", - "reviewedAt": "2026-11-09", - "reviewClass": "per-file-human-approved-six-z-registration", - "provenanceTemplateId": "low_vram", - "humanApprovalPacketSHA256": "9b728a5f8535fc1ba3c03d2e2759d7ac795a586fafab51beb1509379ed388934" + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", + "provenanceTemplateId": "lumina_opal_pendant_in_limestone" }, { - "path": "template-gallery/reviews/low_vram.reviewed-provenance.json", - "sha256": "sha256:bytes:a07f1942cb39c873d7ccd1b99dbece3c203d73296712aa0168a3edf4054b8076", + "path": "template-gallery/reviews/marigold_depth_synthetic_ramp.quality-review.json", + "sha256": "sha256:bytes:17c3bbb2da127558c468e58ccc2bb08a9b78d4f07f901d483cfe8092732ebb42", "publishDecision": "approved", "holdReason": null, - "creatorOrRightsholder": "MoDiff project maintainers", - "creationMethod": "MoDiff-authored technical provenance or quality metadata from the explicitly approved six-image source packet", + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted retained Gallery provenance, review, or registration metadata", "sourceUrl": null, "sourceRevision": null, - "sourceLicense": "Apache-2.0 project-authored metadata; generated-media terms remain in their exact per-file records", + "sourceLicense": "MoDiff-authored exact fixture or Gallery metadata", "modelTerms": [], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [], "assetLicense": "Apache-2.0", - "reviewedBy": "SOURAV DAS", - "reviewedAt": "2026-11-09", - "reviewClass": "per-file-human-approved-six-z-registration", - "provenanceTemplateId": "low_vram", - "humanApprovalPacketSHA256": "9b728a5f8535fc1ba3c03d2e2759d7ac795a586fafab51beb1509379ed388934" + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-19", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "e604b0284a57b65b20343c7776511ae15bef922c7e104c09f0f6931eec610d2d", + "publicationBasis": "Activate and publish the two approved Gallery candidates using their retained native runs.", + "provenanceTemplateId": "marigold_depth_synthetic_ramp" }, { - "creatorOrRightsholder": "MoDiff project maintainers", - "creationMethod": "Project-authored redacted technical/review records or versioned declarations for seven maintainer-accepted native video replacements", - "sourceUrl": null, - "sourceRevision": null, - "sourceLicense": "Apache-2.0 project-authored metadata; media and model terms remain separate", - "modelTerms": [], - "aiGenerated": false, - "humanLikenessConsent": "not-applicable", - "marks": [], - "requiredAttribution": [], - "assetLicense": "Apache-2.0", - "path": "template-gallery/reviews/ltx_video_animated_story.quality-review.json", - "sha256": "sha256:bytes:1ec83b229ba5c7995c8ada2629c448334965939304ffddc7a70161c8b7e1b7f1", + "path": "template-gallery/reviews/marigold_depth_synthetic_ramp.retained-template-provenance.json", + "sha256": "sha256:bytes:57b1487ecee6f44016512e1e1ce5c8135e963add06b1519b7e6007cb83184ae0", "publishDecision": "approved", "holdReason": null, - "reviewedBy": "SOURAV DAS", - "reviewedAt": "2026-11-15", - "reviewClass": "per-file-maintainer-accepted-native-seven-registration", - "humanApprovalPacketSHA256": "95c7c2ed080c3d618db1701b066724660595337460c46df8305b50810783eaa3", - "publicationBasis": "these are approved, you can register them", - "provenanceTemplateId": "ltx_video_animated_story" - }, - { - "creatorOrRightsholder": "MoDiff project maintainers", - "creationMethod": "Project-authored redacted technical/review records or versioned declarations for seven maintainer-accepted native video replacements", + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted retained Gallery provenance, review, or registration metadata", "sourceUrl": null, "sourceRevision": null, - "sourceLicense": "Apache-2.0 project-authored metadata; media and model terms remain separate", + "sourceLicense": "MoDiff-authored exact fixture or Gallery metadata", "modelTerms": [], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [], "assetLicense": "Apache-2.0", - "path": "template-gallery/reviews/ltx_video_animated_story.reviewed-provenance.json", - "sha256": "sha256:bytes:3910ae6f164eb978e38b16e1eab92d73fe7f55dac543b681416ba0b8c43b440d", - "publishDecision": "approved", - "holdReason": null, - "reviewedBy": "SOURAV DAS", - "reviewedAt": "2026-11-15", - "reviewClass": "per-file-maintainer-accepted-native-seven-registration", - "humanApprovalPacketSHA256": "95c7c2ed080c3d618db1701b066724660595337460c46df8305b50810783eaa3", - "publicationBasis": "these are approved, you can register them", - "provenanceTemplateId": "ltx_video_animated_story" + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-19", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "e604b0284a57b65b20343c7776511ae15bef922c7e104c09f0f6931eec610d2d", + "publicationBasis": "Activate and publish the two approved Gallery candidates using their retained native runs.", + "provenanceTemplateId": "marigold_depth_synthetic_ramp" }, { - "path": "template-gallery/reviews/ltx_video_image_to_video.quality-review.json", - "sha256": "sha256:bytes:6c31e71b0b9e6a6a1c46f55e058dd208b7b2f510f6eeb332648575da388f9431", + "path": "template-gallery/reviews/minimax_h3_image_old_town_cat.quality-review.json", + "sha256": "sha256:bytes:ce9fc2a0edaaf3eef1f3db03024d3e64108523e93fc2797fee7cbe7364e7ce97", "publishDecision": "approved", "holdReason": null, - "creatorOrRightsholder": "MoDiff project maintainers", - "creationMethod": "Project-authored Gallery manifest, native provenance or accepted quality review", - "sourceUrl": null, - "sourceRevision": null, + "creatorOrRightsholder": "MoDiff project maintainers, subject to the recorded model terms", + "creationMethod": "Project-authored current-recipe review or redacted provenance for the saved image", + "sourceUrl": "https://huggingface.co/MiniMaxAI/MiniMax-H3-Image/tree/492fd8c4eca666f1085f57e30738c1e0d86b3439", + "sourceRevision": "MiniMaxAI/MiniMax-H3-Image@492fd8c4eca666f1085f57e30738c1e0d86b3439", "sourceLicense": "Apache-2.0 project-authored metadata", - "modelTerms": [], + "modelTerms": [ + "MiniMaxAI/MiniMax-H3-Image@492fd8c4eca666f1085f57e30738c1e0d86b3439: MiniMax H3 Image Community License Agreement" + ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [], "assetLicense": "Apache-2.0", - "reviewedBy": "SOURAV DAS", - "reviewedAt": "2026-11-10", - "reviewClass": "per-file-maintainer-accepted-native-gallery-registration", - "provenanceTemplateId": "ltx_video_image_to_video", - "humanApprovalPacketSHA256": "73ddf9ea7fc27eccc6b93817809421a008ce0fd2fb3080ffbdc5831a09205304" + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-19", + "reviewClass": "per-file-maintainer-accepted-current-recipe", + "humanApprovalPacketSHA256": "97cf1d2ce0a8500d5b3b67ff4efb20a2e91c44a6f1e22d3eafd7b408babc31a2", + "provenanceTemplateId": "minimax_h3_image_old_town_cat" }, { - "path": "template-gallery/reviews/ltx_video_image_to_video.reviewed-provenance.json", - "sha256": "sha256:bytes:ff18a19dd44e03eb76e3879a7e49f1732cc9e6dba6affadcf370feafcc6cf06b", + "path": "template-gallery/reviews/minimax_h3_image_old_town_cat.reviewed-provenance.json", + "sha256": "sha256:bytes:9d5792710da6b60188994c51bfa1ac49047121433d83961cd58d22b9caf6030c", "publishDecision": "approved", "holdReason": null, - "creatorOrRightsholder": "MoDiff project maintainers", - "creationMethod": "Project-authored Gallery manifest, native provenance or accepted quality review", - "sourceUrl": null, - "sourceRevision": null, + "creatorOrRightsholder": "MoDiff project maintainers, subject to the recorded model terms", + "creationMethod": "Project-authored current-recipe review or redacted provenance for the saved image", + "sourceUrl": "https://huggingface.co/MiniMaxAI/MiniMax-H3-Image/tree/492fd8c4eca666f1085f57e30738c1e0d86b3439", + "sourceRevision": "MiniMaxAI/MiniMax-H3-Image@492fd8c4eca666f1085f57e30738c1e0d86b3439", "sourceLicense": "Apache-2.0 project-authored metadata", - "modelTerms": [], + "modelTerms": [ + "MiniMaxAI/MiniMax-H3-Image@492fd8c4eca666f1085f57e30738c1e0d86b3439: MiniMax H3 Image Community License Agreement" + ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [], "assetLicense": "Apache-2.0", - "reviewedBy": "SOURAV DAS", - "reviewedAt": "2026-11-10", - "reviewClass": "per-file-maintainer-accepted-native-gallery-registration", - "provenanceTemplateId": "ltx_video_image_to_video", - "humanApprovalPacketSHA256": "73ddf9ea7fc27eccc6b93817809421a008ce0fd2fb3080ffbdc5831a09205304" + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-19", + "reviewClass": "per-file-maintainer-accepted-current-recipe", + "humanApprovalPacketSHA256": "97cf1d2ce0a8500d5b3b67ff4efb20a2e91c44a6f1e22d3eafd7b408babc31a2", + "provenanceTemplateId": "minimax_h3_image_old_town_cat" }, { "creatorOrRightsholder": "MoDiff project maintainers", - "creationMethod": "Project-authored redacted technical/review records or versioned declarations for seven maintainer-accepted native video replacements", + "creationMethod": "Project-authored redacted technical/review records or versioned declarations for six maintainer-accepted native results", "sourceUrl": null, "sourceRevision": null, "sourceLicense": "Apache-2.0 project-authored metadata; media and model terms remain separate", @@ -14633,20 +16203,20 @@ "marks": [], "requiredAttribution": [], "assetLicense": "Apache-2.0", - "path": "template-gallery/reviews/ltx_video_long_showcase.quality-review.json", - "sha256": "sha256:bytes:60cbabfbf56d499a45000cdbabc3c4d64733de27638c1e8b127ba067f1918b9c", + "path": "template-gallery/reviews/minimax_music3_chamber_pop.quality-review.json", + "sha256": "sha256:bytes:cd83b77fc2ccb4b11263406c12dc9d0d222af582e52dc47b77c18a4243462502", "publishDecision": "approved", "holdReason": null, "reviewedBy": "SOURAV DAS", - "reviewedAt": "2026-11-15", - "reviewClass": "per-file-maintainer-accepted-native-seven-registration", - "humanApprovalPacketSHA256": "95c7c2ed080c3d618db1701b066724660595337460c46df8305b50810783eaa3", - "publicationBasis": "these are approved, you can register them", - "provenanceTemplateId": "ltx_video_long_showcase" + "reviewedAt": "2026-11-13", + "reviewClass": "per-file-maintainer-accepted-native-six-registration", + "humanApprovalPacketSHA256": "03b66b4631afb15032d62a1705331b56f6b12c4882c23945175ec92cc45a506f", + "publicationBasis": "Register the six approved assets now while Moonflower runs on Linux. Use Windows in parallel wherever possible, and keep the longer workflows separate for AMD cloud.", + "provenanceTemplateId": "minimax_music3_chamber_pop" }, { "creatorOrRightsholder": "MoDiff project maintainers", - "creationMethod": "Project-authored redacted technical/review records or versioned declarations for seven maintainer-accepted native video replacements", + "creationMethod": "Project-authored redacted technical/review records or versioned declarations for six maintainer-accepted native results", "sourceUrl": null, "sourceRevision": null, "sourceLicense": "Apache-2.0 project-authored metadata; media and model terms remain separate", @@ -14656,525 +16226,521 @@ "marks": [], "requiredAttribution": [], "assetLicense": "Apache-2.0", - "path": "template-gallery/reviews/ltx_video_long_showcase.reviewed-provenance.json", - "sha256": "sha256:bytes:c2566ed4233b850092727e2bfc805d1be849c2b11cd9424e42283ff9e19b15d0", - "publishDecision": "approved", - "holdReason": null, - "reviewedBy": "SOURAV DAS", - "reviewedAt": "2026-11-15", - "reviewClass": "per-file-maintainer-accepted-native-seven-registration", - "humanApprovalPacketSHA256": "95c7c2ed080c3d618db1701b066724660595337460c46df8305b50810783eaa3", - "publicationBasis": "these are approved, you can register them", - "provenanceTemplateId": "ltx_video_long_showcase" - }, - { - "path": "template-gallery/reviews/ltx_video_multi_reference.quality-review.json", - "sha256": "sha256:bytes:ccb132c3ffd2e929acca88d871c2f04ba9d0cd69d54750f303b58953a8b9bc93", + "path": "template-gallery/reviews/minimax_music3_chamber_pop.reviewed-provenance.json", + "sha256": "sha256:bytes:1b2c91a45c40a7d6621bee54083d3e02d9b843d1034c06e3284ff8f1a2e44270", "publishDecision": "approved", "holdReason": null, - "creatorOrRightsholder": "MoDiff project maintainers", - "creationMethod": "Project-authored Gallery manifest, native provenance or accepted quality review", - "sourceUrl": null, - "sourceRevision": null, - "sourceLicense": "Apache-2.0 project-authored metadata", - "modelTerms": [], - "aiGenerated": false, - "humanLikenessConsent": "not-applicable", - "marks": [], - "requiredAttribution": [], - "assetLicense": "Apache-2.0", "reviewedBy": "SOURAV DAS", - "reviewedAt": "2026-11-10", - "reviewClass": "per-file-maintainer-accepted-native-gallery-registration", - "provenanceTemplateId": "ltx_video_multi_reference", - "humanApprovalPacketSHA256": "73ddf9ea7fc27eccc6b93817809421a008ce0fd2fb3080ffbdc5831a09205304" + "reviewedAt": "2026-11-13", + "reviewClass": "per-file-maintainer-accepted-native-six-registration", + "humanApprovalPacketSHA256": "03b66b4631afb15032d62a1705331b56f6b12c4882c23945175ec92cc45a506f", + "publicationBasis": "Register the six approved assets now while Moonflower runs on Linux. Use Windows in parallel wherever possible, and keep the longer workflows separate for AMD cloud.", + "provenanceTemplateId": "minimax_music3_chamber_pop" }, { - "path": "template-gallery/reviews/ltx_video_multi_reference.reviewed-provenance.json", - "sha256": "sha256:bytes:9bdf09de275841af2f1f63ce0011dfc1eeaa703e2deeb2ebf678090abad80203", + "path": "template-gallery/reviews/ochre_paper_pavilion.original-provenance.json", + "sha256": "sha256:bytes:5fab665db87b17f2c4cea8e3903ac6df84232912fc2abaabee3bf3107542dc96", "publishDecision": "approved", "holdReason": null, - "creatorOrRightsholder": "MoDiff project maintainers", - "creationMethod": "Project-authored Gallery manifest, native provenance or accepted quality review", - "sourceUrl": null, - "sourceRevision": null, - "sourceLicense": "Apache-2.0 project-authored metadata", - "modelTerms": [], + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/zai-org/CogView3-Plus-3B/tree/5d70e40732ac0efac98524c51a7fa9c82707f1e5", + "sourceRevision": "zai-org/CogView3-Plus-3B@5d70e40732ac0efac98524c51a7fa9c82707f1e5", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "apache-2.0. https://huggingface.co/zai-org/CogView3-Plus-3B/tree/5d70e40732ac0efac98524c51a7fa9c82707f1e5" + ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], - "requiredAttribution": [], + "requiredAttribution": [ + "zai-org/CogView3-Plus-3B@5d70e40732ac0efac98524c51a7fa9c82707f1e5 https://huggingface.co/zai-org/CogView3-Plus-3B/tree/5d70e40732ac0efac98524c51a7fa9c82707f1e5" + ], "assetLicense": "Apache-2.0", - "reviewedBy": "SOURAV DAS", - "reviewedAt": "2026-11-10", - "reviewClass": "per-file-maintainer-accepted-native-gallery-registration", - "provenanceTemplateId": "ltx_video_multi_reference", - "humanApprovalPacketSHA256": "73ddf9ea7fc27eccc6b93817809421a008ce0fd2fb3080ffbdc5831a09205304" + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", + "provenanceTemplateId": "ochre_paper_pavilion" }, { - "path": "template-gallery/reviews/ltx_video_text_to_video.quality-review.json", - "sha256": "sha256:bytes:37f6a5c00110c6f9e306447a53691521c77db1ecf3cedf8210dd1e7ed10ea99d", + "path": "template-gallery/reviews/ochre_paper_pavilion.original-review.json", + "sha256": "sha256:bytes:6e31d3ec89e61e8b5722fb93db8f7bb7ea8328bf1c055028ba44c18affacf058", "publishDecision": "approved", "holdReason": null, - "creatorOrRightsholder": "MoDiff project maintainers", - "creationMethod": "Project-authored Gallery manifest, native provenance or accepted quality review", - "sourceUrl": null, - "sourceRevision": null, - "sourceLicense": "Apache-2.0 project-authored metadata", - "modelTerms": [], + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/zai-org/CogView3-Plus-3B/tree/5d70e40732ac0efac98524c51a7fa9c82707f1e5", + "sourceRevision": "zai-org/CogView3-Plus-3B@5d70e40732ac0efac98524c51a7fa9c82707f1e5", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "apache-2.0. https://huggingface.co/zai-org/CogView3-Plus-3B/tree/5d70e40732ac0efac98524c51a7fa9c82707f1e5" + ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], - "requiredAttribution": [], + "requiredAttribution": [ + "zai-org/CogView3-Plus-3B@5d70e40732ac0efac98524c51a7fa9c82707f1e5 https://huggingface.co/zai-org/CogView3-Plus-3B/tree/5d70e40732ac0efac98524c51a7fa9c82707f1e5" + ], "assetLicense": "Apache-2.0", - "reviewedBy": "SOURAV DAS", - "reviewedAt": "2026-11-10", - "reviewClass": "per-file-maintainer-accepted-native-gallery-registration", - "provenanceTemplateId": "ltx_video_text_to_video", - "humanApprovalPacketSHA256": "73ddf9ea7fc27eccc6b93817809421a008ce0fd2fb3080ffbdc5831a09205304" + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", + "provenanceTemplateId": "ochre_paper_pavilion" }, { - "path": "template-gallery/reviews/ltx_video_text_to_video.reviewed-provenance.json", - "sha256": "sha256:bytes:58bfc0b841177bc73dbde13effbf5eebcf9e8d618d3aa90aa8b19afc3a6e5132", + "path": "template-gallery/reviews/ochre_paper_pavilion.quality-review.json", + "sha256": "sha256:bytes:a635772ae5b26758629581843258dea266c7e85934eb222d4884b9a2522a93c1", "publishDecision": "approved", "holdReason": null, - "creatorOrRightsholder": "MoDiff project maintainers", - "creationMethod": "Project-authored Gallery manifest, native provenance or accepted quality review", - "sourceUrl": null, - "sourceRevision": null, - "sourceLicense": "Apache-2.0 project-authored metadata", - "modelTerms": [], + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/zai-org/CogView3-Plus-3B/tree/5d70e40732ac0efac98524c51a7fa9c82707f1e5", + "sourceRevision": "zai-org/CogView3-Plus-3B@5d70e40732ac0efac98524c51a7fa9c82707f1e5", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "apache-2.0. https://huggingface.co/zai-org/CogView3-Plus-3B/tree/5d70e40732ac0efac98524c51a7fa9c82707f1e5" + ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], - "requiredAttribution": [], + "requiredAttribution": [ + "zai-org/CogView3-Plus-3B@5d70e40732ac0efac98524c51a7fa9c82707f1e5 https://huggingface.co/zai-org/CogView3-Plus-3B/tree/5d70e40732ac0efac98524c51a7fa9c82707f1e5" + ], "assetLicense": "Apache-2.0", - "reviewedBy": "SOURAV DAS", - "reviewedAt": "2026-11-10", - "reviewClass": "per-file-maintainer-accepted-native-gallery-registration", - "provenanceTemplateId": "ltx_video_text_to_video", - "humanApprovalPacketSHA256": "73ddf9ea7fc27eccc6b93817809421a008ce0fd2fb3080ffbdc5831a09205304" + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", + "provenanceTemplateId": "ochre_paper_pavilion" }, { - "creatorOrRightsholder": "MoDiff project maintainers", - "creationMethod": "Project-authored redacted technical/review records or versioned declarations for six maintainer-accepted native results", - "sourceUrl": null, - "sourceRevision": null, - "sourceLicense": "Apache-2.0 project-authored metadata; media and model terms remain separate", - "modelTerms": [], + "path": "template-gallery/reviews/ochre_paper_pavilion.retained-template-provenance.json", + "sha256": "sha256:bytes:9bd899fe903bcc05057c1ae452c641700d9c36b5001b499dadba6a6a07e36e80", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/zai-org/CogView3-Plus-3B/tree/5d70e40732ac0efac98524c51a7fa9c82707f1e5", + "sourceRevision": "zai-org/CogView3-Plus-3B@5d70e40732ac0efac98524c51a7fa9c82707f1e5", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "apache-2.0. https://huggingface.co/zai-org/CogView3-Plus-3B/tree/5d70e40732ac0efac98524c51a7fa9c82707f1e5" + ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], - "requiredAttribution": [], + "requiredAttribution": [ + "zai-org/CogView3-Plus-3B@5d70e40732ac0efac98524c51a7fa9c82707f1e5 https://huggingface.co/zai-org/CogView3-Plus-3B/tree/5d70e40732ac0efac98524c51a7fa9c82707f1e5" + ], "assetLicense": "Apache-2.0", - "path": "template-gallery/reviews/ltx_video_video_to_video.quality-review.json", - "sha256": "sha256:bytes:819fd6d872b8e86bbb091980a435bd363216d069223dd694f65d7942aeb05178", - "publishDecision": "approved", - "holdReason": null, - "reviewedBy": "SOURAV DAS", - "reviewedAt": "2026-11-13", - "reviewClass": "per-file-maintainer-accepted-native-six-registration", - "humanApprovalPacketSHA256": "03b66b4631afb15032d62a1705331b56f6b12c4882c23945175ec92cc45a506f", - "publicationBasis": "Register the six approved assets now while Moonflower runs on Linux. Use Windows in parallel wherever possible, and keep the longer workflows separate for AMD cloud.", - "provenanceTemplateId": "ltx_video_video_to_video" + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", + "provenanceTemplateId": "ochre_paper_pavilion" }, { - "creatorOrRightsholder": "MoDiff project maintainers", - "creationMethod": "Project-authored redacted technical/review records or versioned declarations for six maintainer-accepted native results", - "sourceUrl": null, - "sourceRevision": null, - "sourceLicense": "Apache-2.0 project-authored metadata; media and model terms remain separate", - "modelTerms": [], + "path": "template-gallery/reviews/omnigen_cobalt_against_soft_apricot.original-provenance.json", + "sha256": "sha256:bytes:88ee6e3f6d910a68983aedb6b0cb553cad2341ca72627f2d6c578ecfefe1d760", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/Shitao/OmniGen-v1-diffusers/tree/016e2f61d12a98303f6bbdf122687694d7984268", + "sourceRevision": "Shitao/OmniGen-v1-diffusers@016e2f61d12a98303f6bbdf122687694d7984268", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "Publisher model terms at https://huggingface.co/Shitao/OmniGen-v1-diffusers/tree/016e2f61d12a98303f6bbdf122687694d7984268" + ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], - "requiredAttribution": [], + "requiredAttribution": [ + "Shitao/OmniGen-v1-diffusers@016e2f61d12a98303f6bbdf122687694d7984268 https://huggingface.co/Shitao/OmniGen-v1-diffusers/tree/016e2f61d12a98303f6bbdf122687694d7984268" + ], "assetLicense": "Apache-2.0", - "path": "template-gallery/reviews/ltx_video_video_to_video.reviewed-provenance.json", - "sha256": "sha256:bytes:9de3b2659acc8383ab86923bc7c9c87be3e53f3d894a06c77af8a16a155795a4", - "publishDecision": "approved", - "holdReason": null, - "reviewedBy": "SOURAV DAS", - "reviewedAt": "2026-11-13", - "reviewClass": "per-file-maintainer-accepted-native-six-registration", - "humanApprovalPacketSHA256": "03b66b4631afb15032d62a1705331b56f6b12c4882c23945175ec92cc45a506f", - "publicationBasis": "Register the six approved assets now while Moonflower runs on Linux. Use Windows in parallel wherever possible, and keep the longer workflows separate for AMD cloud.", - "provenanceTemplateId": "ltx_video_video_to_video" + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "60b01498a2df5f4e4622cdc2f9a43c83d187820780d2425a19718c13707db501", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "omnigen_cobalt_against_soft_apricot" }, { - "path": "template-gallery/reviews/lumina2_larch_on_glacial_pond.original-provenance.json", - "sha256": "sha256:bytes:16e6a8baf35baec6d9e1be13523eaa5606174123b3a61274a257d5fbd14977f3", + "path": "template-gallery/reviews/omnigen_cobalt_against_soft_apricot.original-review.json", + "sha256": "sha256:bytes:ae25cda076716b4dfe73095b1bcaa75418984db19fda3592f60335da9194e3e2", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/Alpha-VLLM/Lumina-Image-2.0/tree/53504abd8178b30685b6c4c7a4cd181ff78b73e9", - "sourceRevision": "Alpha-VLLM/Lumina-Image-2.0@53504abd8178b30685b6c4c7a4cd181ff78b73e9", + "sourceUrl": "https://huggingface.co/Shitao/OmniGen-v1-diffusers/tree/016e2f61d12a98303f6bbdf122687694d7984268", + "sourceRevision": "Shitao/OmniGen-v1-diffusers@016e2f61d12a98303f6bbdf122687694d7984268", "sourceLicense": "MoDiff-authored Gallery metadata", "modelTerms": [ - "Publisher model terms at https://huggingface.co/Alpha-VLLM/Lumina-Image-2.0/tree/53504abd8178b30685b6c4c7a4cd181ff78b73e9" + "Publisher model terms at https://huggingface.co/Shitao/OmniGen-v1-diffusers/tree/016e2f61d12a98303f6bbdf122687694d7984268" ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "Alpha-VLLM/Lumina-Image-2.0@53504abd8178b30685b6c4c7a4cd181ff78b73e9 https://huggingface.co/Alpha-VLLM/Lumina-Image-2.0/tree/53504abd8178b30685b6c4c7a4cd181ff78b73e9" + "Shitao/OmniGen-v1-diffusers@016e2f61d12a98303f6bbdf122687694d7984268 https://huggingface.co/Shitao/OmniGen-v1-diffusers/tree/016e2f61d12a98303f6bbdf122687694d7984268" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "c2df9edb92f8ff905b6c9a138a285e67c621f3d2dfa3232f859aaf963b725aca", + "humanApprovalPacketSHA256": "60b01498a2df5f4e4622cdc2f9a43c83d187820780d2425a19718c13707db501", "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", - "provenanceTemplateId": "lumina2_larch_on_glacial_pond" + "provenanceTemplateId": "omnigen_cobalt_against_soft_apricot" }, { - "path": "template-gallery/reviews/lumina2_larch_on_glacial_pond.original-review.json", - "sha256": "sha256:bytes:3fa1cbf6c53ed5ce65f8d116779ff9dea32a9c52c8a0877fbb87f77f17237695", + "path": "template-gallery/reviews/omnigen_cobalt_against_soft_apricot.quality-review.json", + "sha256": "sha256:bytes:f81904cbc14984f2916d4d26b20a38d7e90f46aa967bead471d642c0196ad273", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/Alpha-VLLM/Lumina-Image-2.0/tree/53504abd8178b30685b6c4c7a4cd181ff78b73e9", - "sourceRevision": "Alpha-VLLM/Lumina-Image-2.0@53504abd8178b30685b6c4c7a4cd181ff78b73e9", + "sourceUrl": "https://huggingface.co/Shitao/OmniGen-v1-diffusers/tree/016e2f61d12a98303f6bbdf122687694d7984268", + "sourceRevision": "Shitao/OmniGen-v1-diffusers@016e2f61d12a98303f6bbdf122687694d7984268", "sourceLicense": "MoDiff-authored Gallery metadata", "modelTerms": [ - "Publisher model terms at https://huggingface.co/Alpha-VLLM/Lumina-Image-2.0/tree/53504abd8178b30685b6c4c7a4cd181ff78b73e9" + "Publisher model terms at https://huggingface.co/Shitao/OmniGen-v1-diffusers/tree/016e2f61d12a98303f6bbdf122687694d7984268" ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "Alpha-VLLM/Lumina-Image-2.0@53504abd8178b30685b6c4c7a4cd181ff78b73e9 https://huggingface.co/Alpha-VLLM/Lumina-Image-2.0/tree/53504abd8178b30685b6c4c7a4cd181ff78b73e9" + "Shitao/OmniGen-v1-diffusers@016e2f61d12a98303f6bbdf122687694d7984268 https://huggingface.co/Shitao/OmniGen-v1-diffusers/tree/016e2f61d12a98303f6bbdf122687694d7984268" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "c2df9edb92f8ff905b6c9a138a285e67c621f3d2dfa3232f859aaf963b725aca", + "humanApprovalPacketSHA256": "60b01498a2df5f4e4622cdc2f9a43c83d187820780d2425a19718c13707db501", "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", - "provenanceTemplateId": "lumina2_larch_on_glacial_pond" + "provenanceTemplateId": "omnigen_cobalt_against_soft_apricot" }, { - "path": "template-gallery/reviews/lumina2_larch_on_glacial_pond.quality-review.json", - "sha256": "sha256:bytes:527cf3a6d6a7820e09450d4a6d533e5d875a914bd2c8771c2060a513f712544e", + "path": "template-gallery/reviews/omnigen_cobalt_against_soft_apricot.retained-template-provenance.json", + "sha256": "sha256:bytes:1ac31719c0a2fcf0c59ebf8c1f6fbcff2be9847aa23b748c1bb43a706b8f14fd", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/Alpha-VLLM/Lumina-Image-2.0/tree/53504abd8178b30685b6c4c7a4cd181ff78b73e9", - "sourceRevision": "Alpha-VLLM/Lumina-Image-2.0@53504abd8178b30685b6c4c7a4cd181ff78b73e9", + "sourceUrl": "https://huggingface.co/Shitao/OmniGen-v1-diffusers/tree/016e2f61d12a98303f6bbdf122687694d7984268", + "sourceRevision": "Shitao/OmniGen-v1-diffusers@016e2f61d12a98303f6bbdf122687694d7984268", "sourceLicense": "MoDiff-authored Gallery metadata", "modelTerms": [ - "Publisher model terms at https://huggingface.co/Alpha-VLLM/Lumina-Image-2.0/tree/53504abd8178b30685b6c4c7a4cd181ff78b73e9" + "Publisher model terms at https://huggingface.co/Shitao/OmniGen-v1-diffusers/tree/016e2f61d12a98303f6bbdf122687694d7984268" ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "Alpha-VLLM/Lumina-Image-2.0@53504abd8178b30685b6c4c7a4cd181ff78b73e9 https://huggingface.co/Alpha-VLLM/Lumina-Image-2.0/tree/53504abd8178b30685b6c4c7a4cd181ff78b73e9" + "Shitao/OmniGen-v1-diffusers@016e2f61d12a98303f6bbdf122687694d7984268 https://huggingface.co/Shitao/OmniGen-v1-diffusers/tree/016e2f61d12a98303f6bbdf122687694d7984268" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "c2df9edb92f8ff905b6c9a138a285e67c621f3d2dfa3232f859aaf963b725aca", + "humanApprovalPacketSHA256": "60b01498a2df5f4e4622cdc2f9a43c83d187820780d2425a19718c13707db501", "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", - "provenanceTemplateId": "lumina2_larch_on_glacial_pond" + "provenanceTemplateId": "omnigen_cobalt_against_soft_apricot" }, { - "path": "template-gallery/reviews/lumina2_larch_on_glacial_pond.retained-template-provenance.json", - "sha256": "sha256:bytes:d62e4d0a6e3739b95089003b3095611e419f62bcdc39befbb67aeba846aec0c8", + "path": "template-gallery/reviews/omnigen_red_enamel_folded_linen.original-provenance.json", + "sha256": "sha256:bytes:01821146c4f81aa3eef581cd4bfedfa892d75176804ecf4cc7b3ed859779e087", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/Alpha-VLLM/Lumina-Image-2.0/tree/53504abd8178b30685b6c4c7a4cd181ff78b73e9", - "sourceRevision": "Alpha-VLLM/Lumina-Image-2.0@53504abd8178b30685b6c4c7a4cd181ff78b73e9", + "sourceUrl": "https://huggingface.co/Shitao/OmniGen-v1-diffusers/tree/016e2f61d12a98303f6bbdf122687694d7984268", + "sourceRevision": "Shitao/OmniGen-v1-diffusers@016e2f61d12a98303f6bbdf122687694d7984268", "sourceLicense": "MoDiff-authored Gallery metadata", "modelTerms": [ - "Publisher model terms at https://huggingface.co/Alpha-VLLM/Lumina-Image-2.0/tree/53504abd8178b30685b6c4c7a4cd181ff78b73e9" + "Publisher model terms at https://huggingface.co/Shitao/OmniGen-v1-diffusers/tree/016e2f61d12a98303f6bbdf122687694d7984268" ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "Alpha-VLLM/Lumina-Image-2.0@53504abd8178b30685b6c4c7a4cd181ff78b73e9 https://huggingface.co/Alpha-VLLM/Lumina-Image-2.0/tree/53504abd8178b30685b6c4c7a4cd181ff78b73e9" + "Shitao/OmniGen-v1-diffusers@016e2f61d12a98303f6bbdf122687694d7984268 https://huggingface.co/Shitao/OmniGen-v1-diffusers/tree/016e2f61d12a98303f6bbdf122687694d7984268" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "c2df9edb92f8ff905b6c9a138a285e67c621f3d2dfa3232f859aaf963b725aca", + "humanApprovalPacketSHA256": "d7e2fd301d16eede3da44cec1811930560ba0d958dfd46d8d0962eb3a22eea63", "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", - "provenanceTemplateId": "lumina2_larch_on_glacial_pond" + "provenanceTemplateId": "omnigen_red_enamel_folded_linen" }, { - "path": "template-gallery/reviews/lumina_opal_pendant_in_limestone.original-provenance.json", - "sha256": "sha256:bytes:1759ed2ceb7e564e568eced6f47a017c647dd549c2ebdf6e414310d8445a4fd4", + "path": "template-gallery/reviews/omnigen_red_enamel_folded_linen.original-review.json", + "sha256": "sha256:bytes:9e64209e76a4bbdcefe54ffae53c9d71d6e2166d84fb605a891c9600c0d85ec3", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/Alpha-VLLM/Lumina-Next-SFT-diffusers/tree/0ee5ec90043acf5cb41fe96274af36eb7fad8d95", - "sourceRevision": "Alpha-VLLM/Lumina-Next-SFT-diffusers@0ee5ec90043acf5cb41fe96274af36eb7fad8d95", + "sourceUrl": "https://huggingface.co/Shitao/OmniGen-v1-diffusers/tree/016e2f61d12a98303f6bbdf122687694d7984268", + "sourceRevision": "Shitao/OmniGen-v1-diffusers@016e2f61d12a98303f6bbdf122687694d7984268", "sourceLicense": "MoDiff-authored Gallery metadata", "modelTerms": [ - "https://huggingface.co/Alpha-VLLM/Lumina-Next-SFT-diffusers/blob/0ee5ec90043acf5cb41fe96274af36eb7fad8d95/README.md" + "Publisher model terms at https://huggingface.co/Shitao/OmniGen-v1-diffusers/tree/016e2f61d12a98303f6bbdf122687694d7984268" ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "Alpha-VLLM/Lumina-Next-SFT-diffusers@0ee5ec90043acf5cb41fe96274af36eb7fad8d95 https://huggingface.co/Alpha-VLLM/Lumina-Next-SFT-diffusers/tree/0ee5ec90043acf5cb41fe96274af36eb7fad8d95" + "Shitao/OmniGen-v1-diffusers@016e2f61d12a98303f6bbdf122687694d7984268 https://huggingface.co/Shitao/OmniGen-v1-diffusers/tree/016e2f61d12a98303f6bbdf122687694d7984268" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", - "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", - "provenanceTemplateId": "lumina_opal_pendant_in_limestone" + "humanApprovalPacketSHA256": "d7e2fd301d16eede3da44cec1811930560ba0d958dfd46d8d0962eb3a22eea63", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "omnigen_red_enamel_folded_linen" }, { - "path": "template-gallery/reviews/lumina_opal_pendant_in_limestone.original-review.json", - "sha256": "sha256:bytes:11b0b3259e607f479a30ccb2c6f530ff41cb6367245961c43f56ccad21babfb7", + "path": "template-gallery/reviews/omnigen_red_enamel_folded_linen.quality-review.json", + "sha256": "sha256:bytes:01c77e3b3474145e708ee18122f5c81ed3364019c260e9888624c7e9a6ab784a", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/Alpha-VLLM/Lumina-Next-SFT-diffusers/tree/0ee5ec90043acf5cb41fe96274af36eb7fad8d95", - "sourceRevision": "Alpha-VLLM/Lumina-Next-SFT-diffusers@0ee5ec90043acf5cb41fe96274af36eb7fad8d95", + "sourceUrl": "https://huggingface.co/Shitao/OmniGen-v1-diffusers/tree/016e2f61d12a98303f6bbdf122687694d7984268", + "sourceRevision": "Shitao/OmniGen-v1-diffusers@016e2f61d12a98303f6bbdf122687694d7984268", "sourceLicense": "MoDiff-authored Gallery metadata", "modelTerms": [ - "https://huggingface.co/Alpha-VLLM/Lumina-Next-SFT-diffusers/blob/0ee5ec90043acf5cb41fe96274af36eb7fad8d95/README.md" + "Publisher model terms at https://huggingface.co/Shitao/OmniGen-v1-diffusers/tree/016e2f61d12a98303f6bbdf122687694d7984268" ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "Alpha-VLLM/Lumina-Next-SFT-diffusers@0ee5ec90043acf5cb41fe96274af36eb7fad8d95 https://huggingface.co/Alpha-VLLM/Lumina-Next-SFT-diffusers/tree/0ee5ec90043acf5cb41fe96274af36eb7fad8d95" + "Shitao/OmniGen-v1-diffusers@016e2f61d12a98303f6bbdf122687694d7984268 https://huggingface.co/Shitao/OmniGen-v1-diffusers/tree/016e2f61d12a98303f6bbdf122687694d7984268" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", - "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", - "provenanceTemplateId": "lumina_opal_pendant_in_limestone" + "humanApprovalPacketSHA256": "d7e2fd301d16eede3da44cec1811930560ba0d958dfd46d8d0962eb3a22eea63", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "omnigen_red_enamel_folded_linen" }, { - "path": "template-gallery/reviews/lumina_opal_pendant_in_limestone.quality-review.json", - "sha256": "sha256:bytes:4566c14128c7a9a7b32d92d927cff0c2ca12bb392328bd692272130e0c5fe387", + "path": "template-gallery/reviews/omnigen_red_enamel_folded_linen.retained-template-provenance.json", + "sha256": "sha256:bytes:b066ad2d0e03b2eb348d588e3177a782062d463d50caa7c38bf1801449517e6e", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/Alpha-VLLM/Lumina-Next-SFT-diffusers/tree/0ee5ec90043acf5cb41fe96274af36eb7fad8d95", - "sourceRevision": "Alpha-VLLM/Lumina-Next-SFT-diffusers@0ee5ec90043acf5cb41fe96274af36eb7fad8d95", + "sourceUrl": "https://huggingface.co/Shitao/OmniGen-v1-diffusers/tree/016e2f61d12a98303f6bbdf122687694d7984268", + "sourceRevision": "Shitao/OmniGen-v1-diffusers@016e2f61d12a98303f6bbdf122687694d7984268", "sourceLicense": "MoDiff-authored Gallery metadata", "modelTerms": [ - "https://huggingface.co/Alpha-VLLM/Lumina-Next-SFT-diffusers/blob/0ee5ec90043acf5cb41fe96274af36eb7fad8d95/README.md" + "Publisher model terms at https://huggingface.co/Shitao/OmniGen-v1-diffusers/tree/016e2f61d12a98303f6bbdf122687694d7984268" ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "Alpha-VLLM/Lumina-Next-SFT-diffusers@0ee5ec90043acf5cb41fe96274af36eb7fad8d95 https://huggingface.co/Alpha-VLLM/Lumina-Next-SFT-diffusers/tree/0ee5ec90043acf5cb41fe96274af36eb7fad8d95" + "Shitao/OmniGen-v1-diffusers@016e2f61d12a98303f6bbdf122687694d7984268 https://huggingface.co/Shitao/OmniGen-v1-diffusers/tree/016e2f61d12a98303f6bbdf122687694d7984268" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", - "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", - "provenanceTemplateId": "lumina_opal_pendant_in_limestone" + "humanApprovalPacketSHA256": "d7e2fd301d16eede3da44cec1811930560ba0d958dfd46d8d0962eb3a22eea63", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "omnigen_red_enamel_folded_linen" }, { - "path": "template-gallery/reviews/lumina_opal_pendant_in_limestone.retained-template-provenance.json", - "sha256": "sha256:bytes:a4e3e7b9be7fdd489f3876e63e7d0e9ed65508e84eabb0a673719251d3d46e0e", + "path": "template-gallery/reviews/omnigen_tulips_after_rain.original-provenance.json", + "sha256": "sha256:bytes:cd37ada4ad60fccb5fece5fe6ef03dd62ba7a8a66eb141579f8fa424b6265d71", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/Alpha-VLLM/Lumina-Next-SFT-diffusers/tree/0ee5ec90043acf5cb41fe96274af36eb7fad8d95", - "sourceRevision": "Alpha-VLLM/Lumina-Next-SFT-diffusers@0ee5ec90043acf5cb41fe96274af36eb7fad8d95", + "sourceUrl": "https://huggingface.co/Shitao/OmniGen-v1-diffusers/tree/016e2f61d12a98303f6bbdf122687694d7984268", + "sourceRevision": "Shitao/OmniGen-v1-diffusers@016e2f61d12a98303f6bbdf122687694d7984268", "sourceLicense": "MoDiff-authored Gallery metadata", "modelTerms": [ - "https://huggingface.co/Alpha-VLLM/Lumina-Next-SFT-diffusers/blob/0ee5ec90043acf5cb41fe96274af36eb7fad8d95/README.md" + "Publisher model terms at https://huggingface.co/Shitao/OmniGen-v1-diffusers/tree/016e2f61d12a98303f6bbdf122687694d7984268" ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "Alpha-VLLM/Lumina-Next-SFT-diffusers@0ee5ec90043acf5cb41fe96274af36eb7fad8d95 https://huggingface.co/Alpha-VLLM/Lumina-Next-SFT-diffusers/tree/0ee5ec90043acf5cb41fe96274af36eb7fad8d95" + "Shitao/OmniGen-v1-diffusers@016e2f61d12a98303f6bbdf122687694d7984268 https://huggingface.co/Shitao/OmniGen-v1-diffusers/tree/016e2f61d12a98303f6bbdf122687694d7984268" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", - "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", - "provenanceTemplateId": "lumina_opal_pendant_in_limestone" + "humanApprovalPacketSHA256": "c2df9edb92f8ff905b6c9a138a285e67c621f3d2dfa3232f859aaf963b725aca", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "omnigen_tulips_after_rain" }, { - "path": "template-gallery/reviews/marigold_depth_synthetic_ramp.quality-review.json", - "sha256": "sha256:bytes:17c3bbb2da127558c468e58ccc2bb08a9b78d4f07f901d483cfe8092732ebb42", + "path": "template-gallery/reviews/omnigen_tulips_after_rain.original-review.json", + "sha256": "sha256:bytes:3353e7fabebfddfc0b47f2ebdd668c0ae01f426d9280d1e4ac03d307582b8cc3", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", - "creationMethod": "Project-authored redacted retained Gallery provenance, review, or registration metadata", - "sourceUrl": null, - "sourceRevision": null, - "sourceLicense": "MoDiff-authored exact fixture or Gallery metadata", - "modelTerms": [], + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/Shitao/OmniGen-v1-diffusers/tree/016e2f61d12a98303f6bbdf122687694d7984268", + "sourceRevision": "Shitao/OmniGen-v1-diffusers@016e2f61d12a98303f6bbdf122687694d7984268", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "Publisher model terms at https://huggingface.co/Shitao/OmniGen-v1-diffusers/tree/016e2f61d12a98303f6bbdf122687694d7984268" + ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], - "requiredAttribution": [], + "requiredAttribution": [ + "Shitao/OmniGen-v1-diffusers@016e2f61d12a98303f6bbdf122687694d7984268 https://huggingface.co/Shitao/OmniGen-v1-diffusers/tree/016e2f61d12a98303f6bbdf122687694d7984268" + ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", - "reviewedAt": "2026-11-19", + "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "e604b0284a57b65b20343c7776511ae15bef922c7e104c09f0f6931eec610d2d", - "publicationBasis": "Activate and publish the two approved Gallery candidates using their retained native runs.", - "provenanceTemplateId": "marigold_depth_synthetic_ramp" + "humanApprovalPacketSHA256": "c2df9edb92f8ff905b6c9a138a285e67c621f3d2dfa3232f859aaf963b725aca", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "omnigen_tulips_after_rain" }, { - "path": "template-gallery/reviews/marigold_depth_synthetic_ramp.retained-template-provenance.json", - "sha256": "sha256:bytes:57b1487ecee6f44016512e1e1ce5c8135e963add06b1519b7e6007cb83184ae0", + "path": "template-gallery/reviews/omnigen_tulips_after_rain.quality-review.json", + "sha256": "sha256:bytes:333fbf9b662ef072cf2621b37b814052af11c4e219a6640376ba53a2ee4c154f", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", - "creationMethod": "Project-authored redacted retained Gallery provenance, review, or registration metadata", - "sourceUrl": null, - "sourceRevision": null, - "sourceLicense": "MoDiff-authored exact fixture or Gallery metadata", - "modelTerms": [], + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/Shitao/OmniGen-v1-diffusers/tree/016e2f61d12a98303f6bbdf122687694d7984268", + "sourceRevision": "Shitao/OmniGen-v1-diffusers@016e2f61d12a98303f6bbdf122687694d7984268", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "Publisher model terms at https://huggingface.co/Shitao/OmniGen-v1-diffusers/tree/016e2f61d12a98303f6bbdf122687694d7984268" + ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], - "requiredAttribution": [], + "requiredAttribution": [ + "Shitao/OmniGen-v1-diffusers@016e2f61d12a98303f6bbdf122687694d7984268 https://huggingface.co/Shitao/OmniGen-v1-diffusers/tree/016e2f61d12a98303f6bbdf122687694d7984268" + ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", - "reviewedAt": "2026-11-19", + "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "e604b0284a57b65b20343c7776511ae15bef922c7e104c09f0f6931eec610d2d", - "publicationBasis": "Activate and publish the two approved Gallery candidates using their retained native runs.", - "provenanceTemplateId": "marigold_depth_synthetic_ramp" + "humanApprovalPacketSHA256": "c2df9edb92f8ff905b6c9a138a285e67c621f3d2dfa3232f859aaf963b725aca", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "omnigen_tulips_after_rain" }, { - "path": "template-gallery/reviews/minimax_h3_image_old_town_cat.quality-review.json", - "sha256": "sha256:bytes:ce9fc2a0edaaf3eef1f3db03024d3e64108523e93fc2797fee7cbe7364e7ce97", + "path": "template-gallery/reviews/omnigen_tulips_after_rain.retained-template-provenance.json", + "sha256": "sha256:bytes:143b1e03664e187b0815b81948843d05bf9bf2bc664f9c92b7cd78c3b7755245", "publishDecision": "approved", "holdReason": null, - "creatorOrRightsholder": "MoDiff project maintainers, subject to the recorded model terms", - "creationMethod": "Project-authored current-recipe review or redacted provenance for the saved image", - "sourceUrl": "https://huggingface.co/MiniMaxAI/MiniMax-H3-Image/tree/492fd8c4eca666f1085f57e30738c1e0d86b3439", - "sourceRevision": "MiniMaxAI/MiniMax-H3-Image@492fd8c4eca666f1085f57e30738c1e0d86b3439", - "sourceLicense": "Apache-2.0 project-authored metadata", + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/Shitao/OmniGen-v1-diffusers/tree/016e2f61d12a98303f6bbdf122687694d7984268", + "sourceRevision": "Shitao/OmniGen-v1-diffusers@016e2f61d12a98303f6bbdf122687694d7984268", + "sourceLicense": "MoDiff-authored Gallery metadata", "modelTerms": [ - "MiniMaxAI/MiniMax-H3-Image@492fd8c4eca666f1085f57e30738c1e0d86b3439: MiniMax H3 Image Community License Agreement" + "Publisher model terms at https://huggingface.co/Shitao/OmniGen-v1-diffusers/tree/016e2f61d12a98303f6bbdf122687694d7984268" ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], - "requiredAttribution": [], + "requiredAttribution": [ + "Shitao/OmniGen-v1-diffusers@016e2f61d12a98303f6bbdf122687694d7984268 https://huggingface.co/Shitao/OmniGen-v1-diffusers/tree/016e2f61d12a98303f6bbdf122687694d7984268" + ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", - "reviewedAt": "2026-11-19", - "reviewClass": "per-file-maintainer-accepted-current-recipe", - "humanApprovalPacketSHA256": "97cf1d2ce0a8500d5b3b67ff4efb20a2e91c44a6f1e22d3eafd7b408babc31a2", - "provenanceTemplateId": "minimax_h3_image_old_town_cat" + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "c2df9edb92f8ff905b6c9a138a285e67c621f3d2dfa3232f859aaf963b725aca", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "omnigen_tulips_after_rain" }, { - "path": "template-gallery/reviews/minimax_h3_image_old_town_cat.reviewed-provenance.json", - "sha256": "sha256:bytes:9d5792710da6b60188994c51bfa1ac49047121433d83961cd58d22b9caf6030c", + "path": "template-gallery/reviews/persimmon_glaze.original-provenance.json", + "sha256": "sha256:bytes:dece98191d7fdcae395409a4ca8fb0f7eb215bc095660a8251d668f1dabd0054", "publishDecision": "approved", "holdReason": null, - "creatorOrRightsholder": "MoDiff project maintainers, subject to the recorded model terms", - "creationMethod": "Project-authored current-recipe review or redacted provenance for the saved image", - "sourceUrl": "https://huggingface.co/MiniMaxAI/MiniMax-H3-Image/tree/492fd8c4eca666f1085f57e30738c1e0d86b3439", - "sourceRevision": "MiniMaxAI/MiniMax-H3-Image@492fd8c4eca666f1085f57e30738c1e0d86b3439", - "sourceLicense": "Apache-2.0 project-authored metadata", + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/Efficient-Large-Model/Sana_600M_1024px_diffusers/tree/28f3af7689de15f3883d5863059a2fca0aa9b829", + "sourceRevision": "Efficient-Large-Model/Sana_600M_1024px_diffusers@28f3af7689de15f3883d5863059a2fca0aa9b829", + "sourceLicense": "MoDiff-authored Gallery metadata", "modelTerms": [ - "MiniMaxAI/MiniMax-H3-Image@492fd8c4eca666f1085f57e30738c1e0d86b3439: MiniMax H3 Image Community License Agreement" + "apache-2.0. https://huggingface.co/Efficient-Large-Model/Sana_600M_1024px_diffusers/tree/28f3af7689de15f3883d5863059a2fca0aa9b829" ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], - "requiredAttribution": [], + "requiredAttribution": [ + "Efficient-Large-Model/Sana_600M_1024px_diffusers@28f3af7689de15f3883d5863059a2fca0aa9b829 https://huggingface.co/Efficient-Large-Model/Sana_600M_1024px_diffusers/tree/28f3af7689de15f3883d5863059a2fca0aa9b829" + ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", - "reviewedAt": "2026-11-19", - "reviewClass": "per-file-maintainer-accepted-current-recipe", - "humanApprovalPacketSHA256": "97cf1d2ce0a8500d5b3b67ff4efb20a2e91c44a6f1e22d3eafd7b408babc31a2", - "provenanceTemplateId": "minimax_h3_image_old_town_cat" + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", + "provenanceTemplateId": "persimmon_glaze" }, { - "creatorOrRightsholder": "MoDiff project maintainers", - "creationMethod": "Project-authored redacted technical/review records or versioned declarations for six maintainer-accepted native results", - "sourceUrl": null, - "sourceRevision": null, - "sourceLicense": "Apache-2.0 project-authored metadata; media and model terms remain separate", - "modelTerms": [], - "aiGenerated": false, - "humanLikenessConsent": "not-applicable", - "marks": [], - "requiredAttribution": [], - "assetLicense": "Apache-2.0", - "path": "template-gallery/reviews/minimax_music3_chamber_pop.quality-review.json", - "sha256": "sha256:bytes:cd83b77fc2ccb4b11263406c12dc9d0d222af582e52dc47b77c18a4243462502", + "path": "template-gallery/reviews/persimmon_glaze.original-review.json", + "sha256": "sha256:bytes:3c97652cd91cc4af5660429652241efbe6675b20ec59c7abc73c3f1c185b491a", "publishDecision": "approved", "holdReason": null, - "reviewedBy": "SOURAV DAS", - "reviewedAt": "2026-11-13", - "reviewClass": "per-file-maintainer-accepted-native-six-registration", - "humanApprovalPacketSHA256": "03b66b4631afb15032d62a1705331b56f6b12c4882c23945175ec92cc45a506f", - "publicationBasis": "Register the six approved assets now while Moonflower runs on Linux. Use Windows in parallel wherever possible, and keep the longer workflows separate for AMD cloud.", - "provenanceTemplateId": "minimax_music3_chamber_pop" - }, - { - "creatorOrRightsholder": "MoDiff project maintainers", - "creationMethod": "Project-authored redacted technical/review records or versioned declarations for six maintainer-accepted native results", - "sourceUrl": null, - "sourceRevision": null, - "sourceLicense": "Apache-2.0 project-authored metadata; media and model terms remain separate", - "modelTerms": [], + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/Efficient-Large-Model/Sana_600M_1024px_diffusers/tree/28f3af7689de15f3883d5863059a2fca0aa9b829", + "sourceRevision": "Efficient-Large-Model/Sana_600M_1024px_diffusers@28f3af7689de15f3883d5863059a2fca0aa9b829", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "apache-2.0. https://huggingface.co/Efficient-Large-Model/Sana_600M_1024px_diffusers/tree/28f3af7689de15f3883d5863059a2fca0aa9b829" + ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], - "requiredAttribution": [], + "requiredAttribution": [ + "Efficient-Large-Model/Sana_600M_1024px_diffusers@28f3af7689de15f3883d5863059a2fca0aa9b829 https://huggingface.co/Efficient-Large-Model/Sana_600M_1024px_diffusers/tree/28f3af7689de15f3883d5863059a2fca0aa9b829" + ], "assetLicense": "Apache-2.0", - "path": "template-gallery/reviews/minimax_music3_chamber_pop.reviewed-provenance.json", - "sha256": "sha256:bytes:1b2c91a45c40a7d6621bee54083d3e02d9b843d1034c06e3284ff8f1a2e44270", - "publishDecision": "approved", - "holdReason": null, - "reviewedBy": "SOURAV DAS", - "reviewedAt": "2026-11-13", - "reviewClass": "per-file-maintainer-accepted-native-six-registration", - "humanApprovalPacketSHA256": "03b66b4631afb15032d62a1705331b56f6b12c4882c23945175ec92cc45a506f", - "publicationBasis": "Register the six approved assets now while Moonflower runs on Linux. Use Windows in parallel wherever possible, and keep the longer workflows separate for AMD cloud.", - "provenanceTemplateId": "minimax_music3_chamber_pop" + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", + "provenanceTemplateId": "persimmon_glaze" }, { - "path": "template-gallery/reviews/ochre_paper_pavilion.original-provenance.json", - "sha256": "sha256:bytes:5fab665db87b17f2c4cea8e3903ac6df84232912fc2abaabee3bf3107542dc96", + "path": "template-gallery/reviews/persimmon_glaze.quality-review.json", + "sha256": "sha256:bytes:9c9afc7223597ea8ee65889581c40f1e9f6a63a2bab6d7827b6af207353909ad", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/zai-org/CogView3-Plus-3B/tree/5d70e40732ac0efac98524c51a7fa9c82707f1e5", - "sourceRevision": "zai-org/CogView3-Plus-3B@5d70e40732ac0efac98524c51a7fa9c82707f1e5", + "sourceUrl": "https://huggingface.co/Efficient-Large-Model/Sana_600M_1024px_diffusers/tree/28f3af7689de15f3883d5863059a2fca0aa9b829", + "sourceRevision": "Efficient-Large-Model/Sana_600M_1024px_diffusers@28f3af7689de15f3883d5863059a2fca0aa9b829", "sourceLicense": "MoDiff-authored Gallery metadata", "modelTerms": [ - "apache-2.0. https://huggingface.co/zai-org/CogView3-Plus-3B/tree/5d70e40732ac0efac98524c51a7fa9c82707f1e5" + "apache-2.0. https://huggingface.co/Efficient-Large-Model/Sana_600M_1024px_diffusers/tree/28f3af7689de15f3883d5863059a2fca0aa9b829" ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "zai-org/CogView3-Plus-3B@5d70e40732ac0efac98524c51a7fa9c82707f1e5 https://huggingface.co/zai-org/CogView3-Plus-3B/tree/5d70e40732ac0efac98524c51a7fa9c82707f1e5" + "Efficient-Large-Model/Sana_600M_1024px_diffusers@28f3af7689de15f3883d5863059a2fca0aa9b829 https://huggingface.co/Efficient-Large-Model/Sana_600M_1024px_diffusers/tree/28f3af7689de15f3883d5863059a2fca0aa9b829" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", @@ -15182,26 +16748,26 @@ "reviewClass": "per-file-maintainer-accepted-retained-registration", "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", - "provenanceTemplateId": "ochre_paper_pavilion" + "provenanceTemplateId": "persimmon_glaze" }, { - "path": "template-gallery/reviews/ochre_paper_pavilion.original-review.json", - "sha256": "sha256:bytes:6e31d3ec89e61e8b5722fb93db8f7bb7ea8328bf1c055028ba44c18affacf058", + "path": "template-gallery/reviews/persimmon_glaze.retained-template-provenance.json", + "sha256": "sha256:bytes:4813f96f9332d04d4b8b0fc8d30d51e110ab8d157a1aef7c6172474f09bb490f", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/zai-org/CogView3-Plus-3B/tree/5d70e40732ac0efac98524c51a7fa9c82707f1e5", - "sourceRevision": "zai-org/CogView3-Plus-3B@5d70e40732ac0efac98524c51a7fa9c82707f1e5", + "sourceUrl": "https://huggingface.co/Efficient-Large-Model/Sana_600M_1024px_diffusers/tree/28f3af7689de15f3883d5863059a2fca0aa9b829", + "sourceRevision": "Efficient-Large-Model/Sana_600M_1024px_diffusers@28f3af7689de15f3883d5863059a2fca0aa9b829", "sourceLicense": "MoDiff-authored Gallery metadata", "modelTerms": [ - "apache-2.0. https://huggingface.co/zai-org/CogView3-Plus-3B/tree/5d70e40732ac0efac98524c51a7fa9c82707f1e5" + "apache-2.0. https://huggingface.co/Efficient-Large-Model/Sana_600M_1024px_diffusers/tree/28f3af7689de15f3883d5863059a2fca0aa9b829" ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "zai-org/CogView3-Plus-3B@5d70e40732ac0efac98524c51a7fa9c82707f1e5 https://huggingface.co/zai-org/CogView3-Plus-3B/tree/5d70e40732ac0efac98524c51a7fa9c82707f1e5" + "Efficient-Large-Model/Sana_600M_1024px_diffusers@28f3af7689de15f3883d5863059a2fca0aa9b829 https://huggingface.co/Efficient-Large-Model/Sana_600M_1024px_diffusers/tree/28f3af7689de15f3883d5863059a2fca0aa9b829" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", @@ -15209,26 +16775,26 @@ "reviewClass": "per-file-maintainer-accepted-retained-registration", "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", - "provenanceTemplateId": "ochre_paper_pavilion" + "provenanceTemplateId": "persimmon_glaze" }, { - "path": "template-gallery/reviews/ochre_paper_pavilion.quality-review.json", - "sha256": "sha256:bytes:a635772ae5b26758629581843258dea266c7e85934eb222d4884b9a2522a93c1", + "path": "template-gallery/reviews/pomegranate_on_blue_linen.original-provenance.json", + "sha256": "sha256:bytes:b9cecf2139bc5a0e5d6a3db462caf017c4d54482267592bf220f5015f7ae690b", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/zai-org/CogView3-Plus-3B/tree/5d70e40732ac0efac98524c51a7fa9c82707f1e5", - "sourceRevision": "zai-org/CogView3-Plus-3B@5d70e40732ac0efac98524c51a7fa9c82707f1e5", + "sourceUrl": "https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14", + "sourceRevision": "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14", "sourceLicense": "MoDiff-authored Gallery metadata", "modelTerms": [ - "apache-2.0. https://huggingface.co/zai-org/CogView3-Plus-3B/tree/5d70e40732ac0efac98524c51a7fa9c82707f1e5" + "creativeml-openrail-m. https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14" ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "zai-org/CogView3-Plus-3B@5d70e40732ac0efac98524c51a7fa9c82707f1e5 https://huggingface.co/zai-org/CogView3-Plus-3B/tree/5d70e40732ac0efac98524c51a7fa9c82707f1e5" + "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14 https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", @@ -15236,26 +16802,26 @@ "reviewClass": "per-file-maintainer-accepted-retained-registration", "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", - "provenanceTemplateId": "ochre_paper_pavilion" + "provenanceTemplateId": "pomegranate_on_blue_linen" }, { - "path": "template-gallery/reviews/ochre_paper_pavilion.retained-template-provenance.json", - "sha256": "sha256:bytes:9bd899fe903bcc05057c1ae452c641700d9c36b5001b499dadba6a6a07e36e80", + "path": "template-gallery/reviews/pomegranate_on_blue_linen.original-review.json", + "sha256": "sha256:bytes:752b7cc115a3794d1066785e887b73e3eed5f3bb6735ef5ec89c45035b20d7e4", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/zai-org/CogView3-Plus-3B/tree/5d70e40732ac0efac98524c51a7fa9c82707f1e5", - "sourceRevision": "zai-org/CogView3-Plus-3B@5d70e40732ac0efac98524c51a7fa9c82707f1e5", + "sourceUrl": "https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14", + "sourceRevision": "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14", "sourceLicense": "MoDiff-authored Gallery metadata", "modelTerms": [ - "apache-2.0. https://huggingface.co/zai-org/CogView3-Plus-3B/tree/5d70e40732ac0efac98524c51a7fa9c82707f1e5" + "creativeml-openrail-m. https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14" ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "zai-org/CogView3-Plus-3B@5d70e40732ac0efac98524c51a7fa9c82707f1e5 https://huggingface.co/zai-org/CogView3-Plus-3B/tree/5d70e40732ac0efac98524c51a7fa9c82707f1e5" + "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14 https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", @@ -15263,242 +16829,242 @@ "reviewClass": "per-file-maintainer-accepted-retained-registration", "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", - "provenanceTemplateId": "ochre_paper_pavilion" + "provenanceTemplateId": "pomegranate_on_blue_linen" }, { - "path": "template-gallery/reviews/omnigen_cobalt_against_soft_apricot.original-provenance.json", - "sha256": "sha256:bytes:88ee6e3f6d910a68983aedb6b0cb553cad2341ca72627f2d6c578ecfefe1d760", + "path": "template-gallery/reviews/pomegranate_on_blue_linen.quality-review.json", + "sha256": "sha256:bytes:412a9940d2e86768a91a54c8d1282d46ff638f86d94d6582e81738f32c2749ab", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/Shitao/OmniGen-v1-diffusers/tree/016e2f61d12a98303f6bbdf122687694d7984268", - "sourceRevision": "Shitao/OmniGen-v1-diffusers@016e2f61d12a98303f6bbdf122687694d7984268", + "sourceUrl": "https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14", + "sourceRevision": "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14", "sourceLicense": "MoDiff-authored Gallery metadata", "modelTerms": [ - "Publisher model terms at https://huggingface.co/Shitao/OmniGen-v1-diffusers/tree/016e2f61d12a98303f6bbdf122687694d7984268" + "creativeml-openrail-m. https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14" ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "Shitao/OmniGen-v1-diffusers@016e2f61d12a98303f6bbdf122687694d7984268 https://huggingface.co/Shitao/OmniGen-v1-diffusers/tree/016e2f61d12a98303f6bbdf122687694d7984268" + "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14 https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "60b01498a2df5f4e4622cdc2f9a43c83d187820780d2425a19718c13707db501", - "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", - "provenanceTemplateId": "omnigen_cobalt_against_soft_apricot" + "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", + "provenanceTemplateId": "pomegranate_on_blue_linen" }, { - "path": "template-gallery/reviews/omnigen_cobalt_against_soft_apricot.original-review.json", - "sha256": "sha256:bytes:ae25cda076716b4dfe73095b1bcaa75418984db19fda3592f60335da9194e3e2", + "path": "template-gallery/reviews/pomegranate_on_blue_linen.retained-template-provenance.json", + "sha256": "sha256:bytes:15ad50f1686ae7dca486dba01974ad9155dbfc694b97b824314c257e316c185e", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/Shitao/OmniGen-v1-diffusers/tree/016e2f61d12a98303f6bbdf122687694d7984268", - "sourceRevision": "Shitao/OmniGen-v1-diffusers@016e2f61d12a98303f6bbdf122687694d7984268", + "sourceUrl": "https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14", + "sourceRevision": "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14", "sourceLicense": "MoDiff-authored Gallery metadata", "modelTerms": [ - "Publisher model terms at https://huggingface.co/Shitao/OmniGen-v1-diffusers/tree/016e2f61d12a98303f6bbdf122687694d7984268" + "creativeml-openrail-m. https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14" ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "Shitao/OmniGen-v1-diffusers@016e2f61d12a98303f6bbdf122687694d7984268 https://huggingface.co/Shitao/OmniGen-v1-diffusers/tree/016e2f61d12a98303f6bbdf122687694d7984268" + "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14 https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "60b01498a2df5f4e4622cdc2f9a43c83d187820780d2425a19718c13707db501", - "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", - "provenanceTemplateId": "omnigen_cobalt_against_soft_apricot" + "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", + "provenanceTemplateId": "pomegranate_on_blue_linen" }, { - "path": "template-gallery/reviews/omnigen_cobalt_against_soft_apricot.quality-review.json", - "sha256": "sha256:bytes:f81904cbc14984f2916d4d26b20a38d7e90f46aa967bead471d642c0196ad273", + "path": "template-gallery/reviews/porcelain_on_slate_linen.original-provenance.json", + "sha256": "sha256:bytes:a20717be541cf1ac1dc84a8b7fdfd82f0dfedd5ec322ec1e257654a978ab1842", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/Shitao/OmniGen-v1-diffusers/tree/016e2f61d12a98303f6bbdf122687694d7984268", - "sourceRevision": "Shitao/OmniGen-v1-diffusers@016e2f61d12a98303f6bbdf122687694d7984268", + "sourceUrl": "https://huggingface.co/SimianLuo/LCM_Dreamshaper_v7/tree/a85df6a8bd976cdd08b4fd8f3b73f229c9e54df5", + "sourceRevision": "SimianLuo/LCM_Dreamshaper_v7@a85df6a8bd976cdd08b4fd8f3b73f229c9e54df5", "sourceLicense": "MoDiff-authored Gallery metadata", "modelTerms": [ - "Publisher model terms at https://huggingface.co/Shitao/OmniGen-v1-diffusers/tree/016e2f61d12a98303f6bbdf122687694d7984268" + "mit. https://huggingface.co/SimianLuo/LCM_Dreamshaper_v7/tree/a85df6a8bd976cdd08b4fd8f3b73f229c9e54df5" ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "Shitao/OmniGen-v1-diffusers@016e2f61d12a98303f6bbdf122687694d7984268 https://huggingface.co/Shitao/OmniGen-v1-diffusers/tree/016e2f61d12a98303f6bbdf122687694d7984268" + "SimianLuo/LCM_Dreamshaper_v7@a85df6a8bd976cdd08b4fd8f3b73f229c9e54df5 https://huggingface.co/SimianLuo/LCM_Dreamshaper_v7/tree/a85df6a8bd976cdd08b4fd8f3b73f229c9e54df5" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "60b01498a2df5f4e4622cdc2f9a43c83d187820780d2425a19718c13707db501", - "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", - "provenanceTemplateId": "omnigen_cobalt_against_soft_apricot" + "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", + "provenanceTemplateId": "porcelain_on_slate_linen" }, { - "path": "template-gallery/reviews/omnigen_cobalt_against_soft_apricot.retained-template-provenance.json", - "sha256": "sha256:bytes:1ac31719c0a2fcf0c59ebf8c1f6fbcff2be9847aa23b748c1bb43a706b8f14fd", + "path": "template-gallery/reviews/porcelain_on_slate_linen.original-review.json", + "sha256": "sha256:bytes:8f6972bd24388616958f18d53ba39b7a9626fd23ef2470a96e888d01599ee303", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/Shitao/OmniGen-v1-diffusers/tree/016e2f61d12a98303f6bbdf122687694d7984268", - "sourceRevision": "Shitao/OmniGen-v1-diffusers@016e2f61d12a98303f6bbdf122687694d7984268", + "sourceUrl": "https://huggingface.co/SimianLuo/LCM_Dreamshaper_v7/tree/a85df6a8bd976cdd08b4fd8f3b73f229c9e54df5", + "sourceRevision": "SimianLuo/LCM_Dreamshaper_v7@a85df6a8bd976cdd08b4fd8f3b73f229c9e54df5", "sourceLicense": "MoDiff-authored Gallery metadata", "modelTerms": [ - "Publisher model terms at https://huggingface.co/Shitao/OmniGen-v1-diffusers/tree/016e2f61d12a98303f6bbdf122687694d7984268" + "mit. https://huggingface.co/SimianLuo/LCM_Dreamshaper_v7/tree/a85df6a8bd976cdd08b4fd8f3b73f229c9e54df5" ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "Shitao/OmniGen-v1-diffusers@016e2f61d12a98303f6bbdf122687694d7984268 https://huggingface.co/Shitao/OmniGen-v1-diffusers/tree/016e2f61d12a98303f6bbdf122687694d7984268" + "SimianLuo/LCM_Dreamshaper_v7@a85df6a8bd976cdd08b4fd8f3b73f229c9e54df5 https://huggingface.co/SimianLuo/LCM_Dreamshaper_v7/tree/a85df6a8bd976cdd08b4fd8f3b73f229c9e54df5" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "60b01498a2df5f4e4622cdc2f9a43c83d187820780d2425a19718c13707db501", - "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", - "provenanceTemplateId": "omnigen_cobalt_against_soft_apricot" + "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", + "provenanceTemplateId": "porcelain_on_slate_linen" }, { - "path": "template-gallery/reviews/omnigen_tulips_after_rain.original-provenance.json", - "sha256": "sha256:bytes:cd37ada4ad60fccb5fece5fe6ef03dd62ba7a8a66eb141579f8fa424b6265d71", + "path": "template-gallery/reviews/porcelain_on_slate_linen.quality-review.json", + "sha256": "sha256:bytes:aa85f397af28e1ca7da538dae08a96d1ff3452c5542f72419447fa5635a2aab3", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/Shitao/OmniGen-v1-diffusers/tree/016e2f61d12a98303f6bbdf122687694d7984268", - "sourceRevision": "Shitao/OmniGen-v1-diffusers@016e2f61d12a98303f6bbdf122687694d7984268", + "sourceUrl": "https://huggingface.co/SimianLuo/LCM_Dreamshaper_v7/tree/a85df6a8bd976cdd08b4fd8f3b73f229c9e54df5", + "sourceRevision": "SimianLuo/LCM_Dreamshaper_v7@a85df6a8bd976cdd08b4fd8f3b73f229c9e54df5", "sourceLicense": "MoDiff-authored Gallery metadata", "modelTerms": [ - "Publisher model terms at https://huggingface.co/Shitao/OmniGen-v1-diffusers/tree/016e2f61d12a98303f6bbdf122687694d7984268" + "mit. https://huggingface.co/SimianLuo/LCM_Dreamshaper_v7/tree/a85df6a8bd976cdd08b4fd8f3b73f229c9e54df5" ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "Shitao/OmniGen-v1-diffusers@016e2f61d12a98303f6bbdf122687694d7984268 https://huggingface.co/Shitao/OmniGen-v1-diffusers/tree/016e2f61d12a98303f6bbdf122687694d7984268" + "SimianLuo/LCM_Dreamshaper_v7@a85df6a8bd976cdd08b4fd8f3b73f229c9e54df5 https://huggingface.co/SimianLuo/LCM_Dreamshaper_v7/tree/a85df6a8bd976cdd08b4fd8f3b73f229c9e54df5" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "c2df9edb92f8ff905b6c9a138a285e67c621f3d2dfa3232f859aaf963b725aca", - "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", - "provenanceTemplateId": "omnigen_tulips_after_rain" + "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", + "provenanceTemplateId": "porcelain_on_slate_linen" }, { - "path": "template-gallery/reviews/omnigen_tulips_after_rain.original-review.json", - "sha256": "sha256:bytes:3353e7fabebfddfc0b47f2ebdd668c0ae01f426d9280d1e4ac03d307582b8cc3", + "path": "template-gallery/reviews/porcelain_on_slate_linen.retained-template-provenance.json", + "sha256": "sha256:bytes:e1d8fb3b54f1fc0c1d4e3560d9a7d829aaf81d22f3cd543809051b38b598a396", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/Shitao/OmniGen-v1-diffusers/tree/016e2f61d12a98303f6bbdf122687694d7984268", - "sourceRevision": "Shitao/OmniGen-v1-diffusers@016e2f61d12a98303f6bbdf122687694d7984268", + "sourceUrl": "https://huggingface.co/SimianLuo/LCM_Dreamshaper_v7/tree/a85df6a8bd976cdd08b4fd8f3b73f229c9e54df5", + "sourceRevision": "SimianLuo/LCM_Dreamshaper_v7@a85df6a8bd976cdd08b4fd8f3b73f229c9e54df5", "sourceLicense": "MoDiff-authored Gallery metadata", "modelTerms": [ - "Publisher model terms at https://huggingface.co/Shitao/OmniGen-v1-diffusers/tree/016e2f61d12a98303f6bbdf122687694d7984268" + "mit. https://huggingface.co/SimianLuo/LCM_Dreamshaper_v7/tree/a85df6a8bd976cdd08b4fd8f3b73f229c9e54df5" ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "Shitao/OmniGen-v1-diffusers@016e2f61d12a98303f6bbdf122687694d7984268 https://huggingface.co/Shitao/OmniGen-v1-diffusers/tree/016e2f61d12a98303f6bbdf122687694d7984268" + "SimianLuo/LCM_Dreamshaper_v7@a85df6a8bd976cdd08b4fd8f3b73f229c9e54df5 https://huggingface.co/SimianLuo/LCM_Dreamshaper_v7/tree/a85df6a8bd976cdd08b4fd8f3b73f229c9e54df5" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "c2df9edb92f8ff905b6c9a138a285e67c621f3d2dfa3232f859aaf963b725aca", - "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", - "provenanceTemplateId": "omnigen_tulips_after_rain" + "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", + "provenanceTemplateId": "porcelain_on_slate_linen" }, { - "path": "template-gallery/reviews/omnigen_tulips_after_rain.quality-review.json", - "sha256": "sha256:bytes:333fbf9b662ef072cf2621b37b814052af11c4e219a6640376ba53a2ee4c154f", + "path": "template-gallery/reviews/quiet_current.original-provenance.json", + "sha256": "sha256:bytes:6831c3577cf90fa0a6606497bd13844a9b25d4371f1b402efe9b099e8a58d42c", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/Shitao/OmniGen-v1-diffusers/tree/016e2f61d12a98303f6bbdf122687694d7984268", - "sourceRevision": "Shitao/OmniGen-v1-diffusers@016e2f61d12a98303f6bbdf122687694d7984268", + "sourceUrl": "https://huggingface.co/zai-org/CogView4-6B/tree/63a52b7f6dace7033380cd6da14d0915eab3e6b5", + "sourceRevision": "zai-org/CogView4-6B@63a52b7f6dace7033380cd6da14d0915eab3e6b5", "sourceLicense": "MoDiff-authored Gallery metadata", "modelTerms": [ - "Publisher model terms at https://huggingface.co/Shitao/OmniGen-v1-diffusers/tree/016e2f61d12a98303f6bbdf122687694d7984268" + "apache-2.0. https://huggingface.co/zai-org/CogView4-6B/tree/63a52b7f6dace7033380cd6da14d0915eab3e6b5" ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "Shitao/OmniGen-v1-diffusers@016e2f61d12a98303f6bbdf122687694d7984268 https://huggingface.co/Shitao/OmniGen-v1-diffusers/tree/016e2f61d12a98303f6bbdf122687694d7984268" + "zai-org/CogView4-6B@63a52b7f6dace7033380cd6da14d0915eab3e6b5 https://huggingface.co/zai-org/CogView4-6B/tree/63a52b7f6dace7033380cd6da14d0915eab3e6b5" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "c2df9edb92f8ff905b6c9a138a285e67c621f3d2dfa3232f859aaf963b725aca", - "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", - "provenanceTemplateId": "omnigen_tulips_after_rain" + "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", + "provenanceTemplateId": "quiet_current" }, { - "path": "template-gallery/reviews/omnigen_tulips_after_rain.retained-template-provenance.json", - "sha256": "sha256:bytes:143b1e03664e187b0815b81948843d05bf9bf2bc664f9c92b7cd78c3b7755245", + "path": "template-gallery/reviews/quiet_current.original-review.json", + "sha256": "sha256:bytes:c1596743b2612f0bfcda8cf8d21b3e6bec1c570710c73e19e82d7d6aaea9b61c", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/Shitao/OmniGen-v1-diffusers/tree/016e2f61d12a98303f6bbdf122687694d7984268", - "sourceRevision": "Shitao/OmniGen-v1-diffusers@016e2f61d12a98303f6bbdf122687694d7984268", + "sourceUrl": "https://huggingface.co/zai-org/CogView4-6B/tree/63a52b7f6dace7033380cd6da14d0915eab3e6b5", + "sourceRevision": "zai-org/CogView4-6B@63a52b7f6dace7033380cd6da14d0915eab3e6b5", "sourceLicense": "MoDiff-authored Gallery metadata", "modelTerms": [ - "Publisher model terms at https://huggingface.co/Shitao/OmniGen-v1-diffusers/tree/016e2f61d12a98303f6bbdf122687694d7984268" + "apache-2.0. https://huggingface.co/zai-org/CogView4-6B/tree/63a52b7f6dace7033380cd6da14d0915eab3e6b5" ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "Shitao/OmniGen-v1-diffusers@016e2f61d12a98303f6bbdf122687694d7984268 https://huggingface.co/Shitao/OmniGen-v1-diffusers/tree/016e2f61d12a98303f6bbdf122687694d7984268" + "zai-org/CogView4-6B@63a52b7f6dace7033380cd6da14d0915eab3e6b5 https://huggingface.co/zai-org/CogView4-6B/tree/63a52b7f6dace7033380cd6da14d0915eab3e6b5" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "c2df9edb92f8ff905b6c9a138a285e67c621f3d2dfa3232f859aaf963b725aca", - "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", - "provenanceTemplateId": "omnigen_tulips_after_rain" + "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", + "provenanceTemplateId": "quiet_current" }, { - "path": "template-gallery/reviews/persimmon_glaze.original-provenance.json", - "sha256": "sha256:bytes:dece98191d7fdcae395409a4ca8fb0f7eb215bc095660a8251d668f1dabd0054", + "path": "template-gallery/reviews/quiet_current.quality-review.json", + "sha256": "sha256:bytes:2387a8febca71a20ea416bb6db610de9c442c584f64bd913eb66cf3688d84773", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/Efficient-Large-Model/Sana_600M_1024px_diffusers/tree/28f3af7689de15f3883d5863059a2fca0aa9b829", - "sourceRevision": "Efficient-Large-Model/Sana_600M_1024px_diffusers@28f3af7689de15f3883d5863059a2fca0aa9b829", + "sourceUrl": "https://huggingface.co/zai-org/CogView4-6B/tree/63a52b7f6dace7033380cd6da14d0915eab3e6b5", + "sourceRevision": "zai-org/CogView4-6B@63a52b7f6dace7033380cd6da14d0915eab3e6b5", "sourceLicense": "MoDiff-authored Gallery metadata", "modelTerms": [ - "apache-2.0. https://huggingface.co/Efficient-Large-Model/Sana_600M_1024px_diffusers/tree/28f3af7689de15f3883d5863059a2fca0aa9b829" + "apache-2.0. https://huggingface.co/zai-org/CogView4-6B/tree/63a52b7f6dace7033380cd6da14d0915eab3e6b5" ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "Efficient-Large-Model/Sana_600M_1024px_diffusers@28f3af7689de15f3883d5863059a2fca0aa9b829 https://huggingface.co/Efficient-Large-Model/Sana_600M_1024px_diffusers/tree/28f3af7689de15f3883d5863059a2fca0aa9b829" + "zai-org/CogView4-6B@63a52b7f6dace7033380cd6da14d0915eab3e6b5 https://huggingface.co/zai-org/CogView4-6B/tree/63a52b7f6dace7033380cd6da14d0915eab3e6b5" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", @@ -15506,26 +17072,26 @@ "reviewClass": "per-file-maintainer-accepted-retained-registration", "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", - "provenanceTemplateId": "persimmon_glaze" + "provenanceTemplateId": "quiet_current" }, { - "path": "template-gallery/reviews/persimmon_glaze.original-review.json", - "sha256": "sha256:bytes:3c97652cd91cc4af5660429652241efbe6675b20ec59c7abc73c3f1c185b491a", + "path": "template-gallery/reviews/quiet_current.retained-template-provenance.json", + "sha256": "sha256:bytes:888aecdcb91637d93c268a9ad7b615ca545e7b73e2f1caf064c12bf4a0681655", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/Efficient-Large-Model/Sana_600M_1024px_diffusers/tree/28f3af7689de15f3883d5863059a2fca0aa9b829", - "sourceRevision": "Efficient-Large-Model/Sana_600M_1024px_diffusers@28f3af7689de15f3883d5863059a2fca0aa9b829", + "sourceUrl": "https://huggingface.co/zai-org/CogView4-6B/tree/63a52b7f6dace7033380cd6da14d0915eab3e6b5", + "sourceRevision": "zai-org/CogView4-6B@63a52b7f6dace7033380cd6da14d0915eab3e6b5", "sourceLicense": "MoDiff-authored Gallery metadata", "modelTerms": [ - "apache-2.0. https://huggingface.co/Efficient-Large-Model/Sana_600M_1024px_diffusers/tree/28f3af7689de15f3883d5863059a2fca0aa9b829" + "apache-2.0. https://huggingface.co/zai-org/CogView4-6B/tree/63a52b7f6dace7033380cd6da14d0915eab3e6b5" ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "Efficient-Large-Model/Sana_600M_1024px_diffusers@28f3af7689de15f3883d5863059a2fca0aa9b829 https://huggingface.co/Efficient-Large-Model/Sana_600M_1024px_diffusers/tree/28f3af7689de15f3883d5863059a2fca0aa9b829" + "zai-org/CogView4-6B@63a52b7f6dace7033380cd6da14d0915eab3e6b5 https://huggingface.co/zai-org/CogView4-6B/tree/63a52b7f6dace7033380cd6da14d0915eab3e6b5" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", @@ -15533,26 +17099,26 @@ "reviewClass": "per-file-maintainer-accepted-retained-registration", "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", - "provenanceTemplateId": "persimmon_glaze" + "provenanceTemplateId": "quiet_current" }, { - "path": "template-gallery/reviews/persimmon_glaze.quality-review.json", - "sha256": "sha256:bytes:9c9afc7223597ea8ee65889581c40f1e9f6a63a2bab6d7827b6af207353909ad", + "path": "template-gallery/reviews/quiet_kiln_at_daybreak.original-provenance.json", + "sha256": "sha256:bytes:a4b6c9950b2f2f6d185eb574ad4acddec21e2015fcf8d50bd14195ed24dcee97", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/Efficient-Large-Model/Sana_600M_1024px_diffusers/tree/28f3af7689de15f3883d5863059a2fca0aa9b829", - "sourceRevision": "Efficient-Large-Model/Sana_600M_1024px_diffusers@28f3af7689de15f3883d5863059a2fca0aa9b829", + "sourceUrl": "https://huggingface.co/NucleusAI/Nucleus-Image/tree/5e963db4fd0a65c7e4faf53ca2d4eca567c4dcfa", + "sourceRevision": "NucleusAI/Nucleus-Image@5e963db4fd0a65c7e4faf53ca2d4eca567c4dcfa", "sourceLicense": "MoDiff-authored Gallery metadata", "modelTerms": [ - "apache-2.0. https://huggingface.co/Efficient-Large-Model/Sana_600M_1024px_diffusers/tree/28f3af7689de15f3883d5863059a2fca0aa9b829" + "Apache-2.0 per the publisher at this revision. https://huggingface.co/NucleusAI/Nucleus-Image/tree/5e963db4fd0a65c7e4faf53ca2d4eca567c4dcfa" ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "Efficient-Large-Model/Sana_600M_1024px_diffusers@28f3af7689de15f3883d5863059a2fca0aa9b829 https://huggingface.co/Efficient-Large-Model/Sana_600M_1024px_diffusers/tree/28f3af7689de15f3883d5863059a2fca0aa9b829" + "NucleusAI/Nucleus-Image@5e963db4fd0a65c7e4faf53ca2d4eca567c4dcfa https://huggingface.co/NucleusAI/Nucleus-Image/tree/5e963db4fd0a65c7e4faf53ca2d4eca567c4dcfa" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", @@ -15560,26 +17126,26 @@ "reviewClass": "per-file-maintainer-accepted-retained-registration", "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", - "provenanceTemplateId": "persimmon_glaze" + "provenanceTemplateId": "quiet_kiln_at_daybreak" }, { - "path": "template-gallery/reviews/persimmon_glaze.retained-template-provenance.json", - "sha256": "sha256:bytes:4813f96f9332d04d4b8b0fc8d30d51e110ab8d157a1aef7c6172474f09bb490f", + "path": "template-gallery/reviews/quiet_kiln_at_daybreak.original-review.json", + "sha256": "sha256:bytes:b76ab6d15da10b9d6fb9ddfd83af0abf2f56ca962aac6ab65c78ae231a74d2bd", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/Efficient-Large-Model/Sana_600M_1024px_diffusers/tree/28f3af7689de15f3883d5863059a2fca0aa9b829", - "sourceRevision": "Efficient-Large-Model/Sana_600M_1024px_diffusers@28f3af7689de15f3883d5863059a2fca0aa9b829", + "sourceUrl": "https://huggingface.co/NucleusAI/Nucleus-Image/tree/5e963db4fd0a65c7e4faf53ca2d4eca567c4dcfa", + "sourceRevision": "NucleusAI/Nucleus-Image@5e963db4fd0a65c7e4faf53ca2d4eca567c4dcfa", "sourceLicense": "MoDiff-authored Gallery metadata", "modelTerms": [ - "apache-2.0. https://huggingface.co/Efficient-Large-Model/Sana_600M_1024px_diffusers/tree/28f3af7689de15f3883d5863059a2fca0aa9b829" + "Apache-2.0 per the publisher at this revision. https://huggingface.co/NucleusAI/Nucleus-Image/tree/5e963db4fd0a65c7e4faf53ca2d4eca567c4dcfa" ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "Efficient-Large-Model/Sana_600M_1024px_diffusers@28f3af7689de15f3883d5863059a2fca0aa9b829 https://huggingface.co/Efficient-Large-Model/Sana_600M_1024px_diffusers/tree/28f3af7689de15f3883d5863059a2fca0aa9b829" + "NucleusAI/Nucleus-Image@5e963db4fd0a65c7e4faf53ca2d4eca567c4dcfa https://huggingface.co/NucleusAI/Nucleus-Image/tree/5e963db4fd0a65c7e4faf53ca2d4eca567c4dcfa" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", @@ -15587,26 +17153,26 @@ "reviewClass": "per-file-maintainer-accepted-retained-registration", "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", - "provenanceTemplateId": "persimmon_glaze" + "provenanceTemplateId": "quiet_kiln_at_daybreak" }, { - "path": "template-gallery/reviews/pomegranate_on_blue_linen.original-provenance.json", - "sha256": "sha256:bytes:b9cecf2139bc5a0e5d6a3db462caf017c4d54482267592bf220f5015f7ae690b", + "path": "template-gallery/reviews/quiet_kiln_at_daybreak.quality-review.json", + "sha256": "sha256:bytes:b0118affa79b69e333c6a7977aa8c47328d570dd374aa212f0a371ec5a4a353b", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14", - "sourceRevision": "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14", + "sourceUrl": "https://huggingface.co/NucleusAI/Nucleus-Image/tree/5e963db4fd0a65c7e4faf53ca2d4eca567c4dcfa", + "sourceRevision": "NucleusAI/Nucleus-Image@5e963db4fd0a65c7e4faf53ca2d4eca567c4dcfa", "sourceLicense": "MoDiff-authored Gallery metadata", "modelTerms": [ - "creativeml-openrail-m. https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14" + "Apache-2.0 per the publisher at this revision. https://huggingface.co/NucleusAI/Nucleus-Image/tree/5e963db4fd0a65c7e4faf53ca2d4eca567c4dcfa" ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14 https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14" + "NucleusAI/Nucleus-Image@5e963db4fd0a65c7e4faf53ca2d4eca567c4dcfa https://huggingface.co/NucleusAI/Nucleus-Image/tree/5e963db4fd0a65c7e4faf53ca2d4eca567c4dcfa" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", @@ -15614,26 +17180,26 @@ "reviewClass": "per-file-maintainer-accepted-retained-registration", "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", - "provenanceTemplateId": "pomegranate_on_blue_linen" + "provenanceTemplateId": "quiet_kiln_at_daybreak" }, { - "path": "template-gallery/reviews/pomegranate_on_blue_linen.original-review.json", - "sha256": "sha256:bytes:752b7cc115a3794d1066785e887b73e3eed5f3bb6735ef5ec89c45035b20d7e4", + "path": "template-gallery/reviews/quiet_kiln_at_daybreak.retained-template-provenance.json", + "sha256": "sha256:bytes:ae5db3f69f0a3ae1ad178ca986819e1b8cb1ccdf50c9b3850d5ec2e7d745ba8d", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14", - "sourceRevision": "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14", + "sourceUrl": "https://huggingface.co/NucleusAI/Nucleus-Image/tree/5e963db4fd0a65c7e4faf53ca2d4eca567c4dcfa", + "sourceRevision": "NucleusAI/Nucleus-Image@5e963db4fd0a65c7e4faf53ca2d4eca567c4dcfa", "sourceLicense": "MoDiff-authored Gallery metadata", "modelTerms": [ - "creativeml-openrail-m. https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14" + "Apache-2.0 per the publisher at this revision. https://huggingface.co/NucleusAI/Nucleus-Image/tree/5e963db4fd0a65c7e4faf53ca2d4eca567c4dcfa" ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14 https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14" + "NucleusAI/Nucleus-Image@5e963db4fd0a65c7e4faf53ca2d4eca567c4dcfa https://huggingface.co/NucleusAI/Nucleus-Image/tree/5e963db4fd0a65c7e4faf53ca2d4eca567c4dcfa" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", @@ -15641,404 +17207,404 @@ "reviewClass": "per-file-maintainer-accepted-retained-registration", "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", - "provenanceTemplateId": "pomegranate_on_blue_linen" + "provenanceTemplateId": "quiet_kiln_at_daybreak" }, { - "path": "template-gallery/reviews/pomegranate_on_blue_linen.quality-review.json", - "sha256": "sha256:bytes:412a9940d2e86768a91a54c8d1282d46ff638f86d94d6582e81738f32c2749ab", + "path": "template-gallery/reviews/qwen_2511_pale_amber_on_limestone.original-provenance.json", + "sha256": "sha256:bytes:92184da315494eafd5ffb5f97e0b6b16b9adc7e2900cfe2159a74eb95f2c664d", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14", - "sourceRevision": "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14", + "sourceUrl": "https://huggingface.co/Qwen/Qwen-Image-Edit-2511/tree/6f3ccc0b56e431dc6a0c2b2039706d7d26f22cb9", + "sourceRevision": "Qwen/Qwen-Image-Edit-2511@6f3ccc0b56e431dc6a0c2b2039706d7d26f22cb9", "sourceLicense": "MoDiff-authored Gallery metadata", "modelTerms": [ - "creativeml-openrail-m. https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14" + "Publisher model terms at https://huggingface.co/Qwen/Qwen-Image-Edit-2511/tree/6f3ccc0b56e431dc6a0c2b2039706d7d26f22cb9" ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14 https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14" + "Qwen/Qwen-Image-Edit-2511@6f3ccc0b56e431dc6a0c2b2039706d7d26f22cb9 https://huggingface.co/Qwen/Qwen-Image-Edit-2511/tree/6f3ccc0b56e431dc6a0c2b2039706d7d26f22cb9" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", - "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", - "provenanceTemplateId": "pomegranate_on_blue_linen" + "humanApprovalPacketSHA256": "60b01498a2df5f4e4622cdc2f9a43c83d187820780d2425a19718c13707db501", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "qwen_2511_pale_amber_on_limestone" }, { - "path": "template-gallery/reviews/pomegranate_on_blue_linen.retained-template-provenance.json", - "sha256": "sha256:bytes:15ad50f1686ae7dca486dba01974ad9155dbfc694b97b824314c257e316c185e", + "path": "template-gallery/reviews/qwen_2511_pale_amber_on_limestone.original-review.json", + "sha256": "sha256:bytes:c927ac13e8f20facd97ba72db03ae4fc658d5b2b5120a9473d2bcd280e01356c", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14", - "sourceRevision": "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14", + "sourceUrl": "https://huggingface.co/Qwen/Qwen-Image-Edit-2511/tree/6f3ccc0b56e431dc6a0c2b2039706d7d26f22cb9", + "sourceRevision": "Qwen/Qwen-Image-Edit-2511@6f3ccc0b56e431dc6a0c2b2039706d7d26f22cb9", "sourceLicense": "MoDiff-authored Gallery metadata", "modelTerms": [ - "creativeml-openrail-m. https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14" + "Publisher model terms at https://huggingface.co/Qwen/Qwen-Image-Edit-2511/tree/6f3ccc0b56e431dc6a0c2b2039706d7d26f22cb9" ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14 https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14" + "Qwen/Qwen-Image-Edit-2511@6f3ccc0b56e431dc6a0c2b2039706d7d26f22cb9 https://huggingface.co/Qwen/Qwen-Image-Edit-2511/tree/6f3ccc0b56e431dc6a0c2b2039706d7d26f22cb9" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", - "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", - "provenanceTemplateId": "pomegranate_on_blue_linen" + "humanApprovalPacketSHA256": "60b01498a2df5f4e4622cdc2f9a43c83d187820780d2425a19718c13707db501", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "qwen_2511_pale_amber_on_limestone" }, { - "path": "template-gallery/reviews/porcelain_on_slate_linen.original-provenance.json", - "sha256": "sha256:bytes:a20717be541cf1ac1dc84a8b7fdfd82f0dfedd5ec322ec1e257654a978ab1842", + "path": "template-gallery/reviews/qwen_2511_pale_amber_on_limestone.quality-review.json", + "sha256": "sha256:bytes:1448c1f4aeddd0ca2238d62a91db71644d723172bad44eee0f62618f89580160", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/SimianLuo/LCM_Dreamshaper_v7/tree/a85df6a8bd976cdd08b4fd8f3b73f229c9e54df5", - "sourceRevision": "SimianLuo/LCM_Dreamshaper_v7@a85df6a8bd976cdd08b4fd8f3b73f229c9e54df5", + "sourceUrl": "https://huggingface.co/Qwen/Qwen-Image-Edit-2511/tree/6f3ccc0b56e431dc6a0c2b2039706d7d26f22cb9", + "sourceRevision": "Qwen/Qwen-Image-Edit-2511@6f3ccc0b56e431dc6a0c2b2039706d7d26f22cb9", "sourceLicense": "MoDiff-authored Gallery metadata", "modelTerms": [ - "mit. https://huggingface.co/SimianLuo/LCM_Dreamshaper_v7/tree/a85df6a8bd976cdd08b4fd8f3b73f229c9e54df5" + "Publisher model terms at https://huggingface.co/Qwen/Qwen-Image-Edit-2511/tree/6f3ccc0b56e431dc6a0c2b2039706d7d26f22cb9" ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "SimianLuo/LCM_Dreamshaper_v7@a85df6a8bd976cdd08b4fd8f3b73f229c9e54df5 https://huggingface.co/SimianLuo/LCM_Dreamshaper_v7/tree/a85df6a8bd976cdd08b4fd8f3b73f229c9e54df5" + "Qwen/Qwen-Image-Edit-2511@6f3ccc0b56e431dc6a0c2b2039706d7d26f22cb9 https://huggingface.co/Qwen/Qwen-Image-Edit-2511/tree/6f3ccc0b56e431dc6a0c2b2039706d7d26f22cb9" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", - "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", - "provenanceTemplateId": "porcelain_on_slate_linen" + "humanApprovalPacketSHA256": "60b01498a2df5f4e4622cdc2f9a43c83d187820780d2425a19718c13707db501", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "qwen_2511_pale_amber_on_limestone" }, { - "path": "template-gallery/reviews/porcelain_on_slate_linen.original-review.json", - "sha256": "sha256:bytes:8f6972bd24388616958f18d53ba39b7a9626fd23ef2470a96e888d01599ee303", + "path": "template-gallery/reviews/qwen_2511_pale_amber_on_limestone.retained-template-provenance.json", + "sha256": "sha256:bytes:0d91cc6e5417f0defc5ef7615cc85f19de32bf6732e01e75d6051b94be8df0d8", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", - "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/SimianLuo/LCM_Dreamshaper_v7/tree/a85df6a8bd976cdd08b4fd8f3b73f229c9e54df5", - "sourceRevision": "SimianLuo/LCM_Dreamshaper_v7@a85df6a8bd976cdd08b4fd8f3b73f229c9e54df5", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/Qwen/Qwen-Image-Edit-2511/tree/6f3ccc0b56e431dc6a0c2b2039706d7d26f22cb9", + "sourceRevision": "Qwen/Qwen-Image-Edit-2511@6f3ccc0b56e431dc6a0c2b2039706d7d26f22cb9", "sourceLicense": "MoDiff-authored Gallery metadata", "modelTerms": [ - "mit. https://huggingface.co/SimianLuo/LCM_Dreamshaper_v7/tree/a85df6a8bd976cdd08b4fd8f3b73f229c9e54df5" + "Publisher model terms at https://huggingface.co/Qwen/Qwen-Image-Edit-2511/tree/6f3ccc0b56e431dc6a0c2b2039706d7d26f22cb9" ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "SimianLuo/LCM_Dreamshaper_v7@a85df6a8bd976cdd08b4fd8f3b73f229c9e54df5 https://huggingface.co/SimianLuo/LCM_Dreamshaper_v7/tree/a85df6a8bd976cdd08b4fd8f3b73f229c9e54df5" + "Qwen/Qwen-Image-Edit-2511@6f3ccc0b56e431dc6a0c2b2039706d7d26f22cb9 https://huggingface.co/Qwen/Qwen-Image-Edit-2511/tree/6f3ccc0b56e431dc6a0c2b2039706d7d26f22cb9" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", - "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", - "provenanceTemplateId": "porcelain_on_slate_linen" + "humanApprovalPacketSHA256": "60b01498a2df5f4e4622cdc2f9a43c83d187820780d2425a19718c13707db501", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "qwen_2511_pale_amber_on_limestone" }, { - "path": "template-gallery/reviews/porcelain_on_slate_linen.quality-review.json", - "sha256": "sha256:bytes:aa85f397af28e1ca7da538dae08a96d1ff3452c5542f72419447fa5635a2aab3", + "path": "template-gallery/reviews/qwen_2511_terracotta_material_transfer.original-provenance.json", + "sha256": "sha256:bytes:accd52fe0dc925cda9f3ad31546498422faf762eaae9d5efc1d1c7ab8b2bceb1", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/SimianLuo/LCM_Dreamshaper_v7/tree/a85df6a8bd976cdd08b4fd8f3b73f229c9e54df5", - "sourceRevision": "SimianLuo/LCM_Dreamshaper_v7@a85df6a8bd976cdd08b4fd8f3b73f229c9e54df5", + "sourceUrl": "https://huggingface.co/Qwen/Qwen-Image-Edit-2511/tree/6f3ccc0b56e431dc6a0c2b2039706d7d26f22cb9", + "sourceRevision": "Qwen/Qwen-Image-Edit-2511@6f3ccc0b56e431dc6a0c2b2039706d7d26f22cb9", "sourceLicense": "MoDiff-authored Gallery metadata", "modelTerms": [ - "mit. https://huggingface.co/SimianLuo/LCM_Dreamshaper_v7/tree/a85df6a8bd976cdd08b4fd8f3b73f229c9e54df5" + "Publisher model terms at https://huggingface.co/Qwen/Qwen-Image-Edit-2511/tree/6f3ccc0b56e431dc6a0c2b2039706d7d26f22cb9" ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "SimianLuo/LCM_Dreamshaper_v7@a85df6a8bd976cdd08b4fd8f3b73f229c9e54df5 https://huggingface.co/SimianLuo/LCM_Dreamshaper_v7/tree/a85df6a8bd976cdd08b4fd8f3b73f229c9e54df5" + "Qwen/Qwen-Image-Edit-2511@6f3ccc0b56e431dc6a0c2b2039706d7d26f22cb9 https://huggingface.co/Qwen/Qwen-Image-Edit-2511/tree/6f3ccc0b56e431dc6a0c2b2039706d7d26f22cb9" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", - "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", - "provenanceTemplateId": "porcelain_on_slate_linen" + "humanApprovalPacketSHA256": "d7e2fd301d16eede3da44cec1811930560ba0d958dfd46d8d0962eb3a22eea63", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "qwen_2511_terracotta_material_transfer" }, { - "path": "template-gallery/reviews/porcelain_on_slate_linen.retained-template-provenance.json", - "sha256": "sha256:bytes:e1d8fb3b54f1fc0c1d4e3560d9a7d829aaf81d22f3cd543809051b38b598a396", + "path": "template-gallery/reviews/qwen_2511_terracotta_material_transfer.original-review.json", + "sha256": "sha256:bytes:6fa09481a5e8937cf2afa452c0f6b0da53124a5ff556756d3c970235d22eeb8f", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/SimianLuo/LCM_Dreamshaper_v7/tree/a85df6a8bd976cdd08b4fd8f3b73f229c9e54df5", - "sourceRevision": "SimianLuo/LCM_Dreamshaper_v7@a85df6a8bd976cdd08b4fd8f3b73f229c9e54df5", + "sourceUrl": "https://huggingface.co/Qwen/Qwen-Image-Edit-2511/tree/6f3ccc0b56e431dc6a0c2b2039706d7d26f22cb9", + "sourceRevision": "Qwen/Qwen-Image-Edit-2511@6f3ccc0b56e431dc6a0c2b2039706d7d26f22cb9", "sourceLicense": "MoDiff-authored Gallery metadata", "modelTerms": [ - "mit. https://huggingface.co/SimianLuo/LCM_Dreamshaper_v7/tree/a85df6a8bd976cdd08b4fd8f3b73f229c9e54df5" + "Publisher model terms at https://huggingface.co/Qwen/Qwen-Image-Edit-2511/tree/6f3ccc0b56e431dc6a0c2b2039706d7d26f22cb9" ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "SimianLuo/LCM_Dreamshaper_v7@a85df6a8bd976cdd08b4fd8f3b73f229c9e54df5 https://huggingface.co/SimianLuo/LCM_Dreamshaper_v7/tree/a85df6a8bd976cdd08b4fd8f3b73f229c9e54df5" + "Qwen/Qwen-Image-Edit-2511@6f3ccc0b56e431dc6a0c2b2039706d7d26f22cb9 https://huggingface.co/Qwen/Qwen-Image-Edit-2511/tree/6f3ccc0b56e431dc6a0c2b2039706d7d26f22cb9" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", - "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", - "provenanceTemplateId": "porcelain_on_slate_linen" + "humanApprovalPacketSHA256": "d7e2fd301d16eede3da44cec1811930560ba0d958dfd46d8d0962eb3a22eea63", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "qwen_2511_terracotta_material_transfer" }, { - "path": "template-gallery/reviews/quiet_current.original-provenance.json", - "sha256": "sha256:bytes:6831c3577cf90fa0a6606497bd13844a9b25d4371f1b402efe9b099e8a58d42c", + "path": "template-gallery/reviews/qwen_2511_terracotta_material_transfer.quality-review.json", + "sha256": "sha256:bytes:c069a461b67cb90ade5f906200db6359e17ecda252d305bc8e6bc7fe9df15786", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/zai-org/CogView4-6B/tree/63a52b7f6dace7033380cd6da14d0915eab3e6b5", - "sourceRevision": "zai-org/CogView4-6B@63a52b7f6dace7033380cd6da14d0915eab3e6b5", + "sourceUrl": "https://huggingface.co/Qwen/Qwen-Image-Edit-2511/tree/6f3ccc0b56e431dc6a0c2b2039706d7d26f22cb9", + "sourceRevision": "Qwen/Qwen-Image-Edit-2511@6f3ccc0b56e431dc6a0c2b2039706d7d26f22cb9", "sourceLicense": "MoDiff-authored Gallery metadata", "modelTerms": [ - "apache-2.0. https://huggingface.co/zai-org/CogView4-6B/tree/63a52b7f6dace7033380cd6da14d0915eab3e6b5" + "Publisher model terms at https://huggingface.co/Qwen/Qwen-Image-Edit-2511/tree/6f3ccc0b56e431dc6a0c2b2039706d7d26f22cb9" ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "zai-org/CogView4-6B@63a52b7f6dace7033380cd6da14d0915eab3e6b5 https://huggingface.co/zai-org/CogView4-6B/tree/63a52b7f6dace7033380cd6da14d0915eab3e6b5" + "Qwen/Qwen-Image-Edit-2511@6f3ccc0b56e431dc6a0c2b2039706d7d26f22cb9 https://huggingface.co/Qwen/Qwen-Image-Edit-2511/tree/6f3ccc0b56e431dc6a0c2b2039706d7d26f22cb9" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", - "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", - "provenanceTemplateId": "quiet_current" + "humanApprovalPacketSHA256": "d7e2fd301d16eede3da44cec1811930560ba0d958dfd46d8d0962eb3a22eea63", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "qwen_2511_terracotta_material_transfer" }, { - "path": "template-gallery/reviews/quiet_current.original-review.json", - "sha256": "sha256:bytes:c1596743b2612f0bfcda8cf8d21b3e6bec1c570710c73e19e82d7d6aaea9b61c", + "path": "template-gallery/reviews/qwen_2511_terracotta_material_transfer.retained-template-provenance.json", + "sha256": "sha256:bytes:d4b364f299fcce02bee7cdacad3d915d2c8a916b1b97fb9d77f8fa88146c899f", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/zai-org/CogView4-6B/tree/63a52b7f6dace7033380cd6da14d0915eab3e6b5", - "sourceRevision": "zai-org/CogView4-6B@63a52b7f6dace7033380cd6da14d0915eab3e6b5", + "sourceUrl": "https://huggingface.co/Qwen/Qwen-Image-Edit-2511/tree/6f3ccc0b56e431dc6a0c2b2039706d7d26f22cb9", + "sourceRevision": "Qwen/Qwen-Image-Edit-2511@6f3ccc0b56e431dc6a0c2b2039706d7d26f22cb9", "sourceLicense": "MoDiff-authored Gallery metadata", "modelTerms": [ - "apache-2.0. https://huggingface.co/zai-org/CogView4-6B/tree/63a52b7f6dace7033380cd6da14d0915eab3e6b5" + "Publisher model terms at https://huggingface.co/Qwen/Qwen-Image-Edit-2511/tree/6f3ccc0b56e431dc6a0c2b2039706d7d26f22cb9" ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "zai-org/CogView4-6B@63a52b7f6dace7033380cd6da14d0915eab3e6b5 https://huggingface.co/zai-org/CogView4-6B/tree/63a52b7f6dace7033380cd6da14d0915eab3e6b5" + "Qwen/Qwen-Image-Edit-2511@6f3ccc0b56e431dc6a0c2b2039706d7d26f22cb9 https://huggingface.co/Qwen/Qwen-Image-Edit-2511/tree/6f3ccc0b56e431dc6a0c2b2039706d7d26f22cb9" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", - "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", - "provenanceTemplateId": "quiet_current" + "humanApprovalPacketSHA256": "d7e2fd301d16eede3da44cec1811930560ba0d958dfd46d8d0962eb3a22eea63", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "qwen_2511_terracotta_material_transfer" }, { - "path": "template-gallery/reviews/quiet_current.quality-review.json", - "sha256": "sha256:bytes:2387a8febca71a20ea416bb6db610de9c442c584f64bd913eb66cf3688d84773", + "path": "template-gallery/reviews/qwen_2512_cobalt_backdrop_repair.original-provenance.json", + "sha256": "sha256:bytes:aff76ebb3392dc74718791d4d3e964e12ed333818e3e3004c2b00efdb1065cda", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/zai-org/CogView4-6B/tree/63a52b7f6dace7033380cd6da14d0915eab3e6b5", - "sourceRevision": "zai-org/CogView4-6B@63a52b7f6dace7033380cd6da14d0915eab3e6b5", + "sourceUrl": "https://huggingface.co/Qwen/Qwen-Image-2512/tree/25468b98e3276ca6700de15c6628e51b7de54a26", + "sourceRevision": "Qwen/Qwen-Image-2512@25468b98e3276ca6700de15c6628e51b7de54a26", "sourceLicense": "MoDiff-authored Gallery metadata", "modelTerms": [ - "apache-2.0. https://huggingface.co/zai-org/CogView4-6B/tree/63a52b7f6dace7033380cd6da14d0915eab3e6b5" + "Publisher model terms at https://huggingface.co/Qwen/Qwen-Image-2512/tree/25468b98e3276ca6700de15c6628e51b7de54a26" ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "zai-org/CogView4-6B@63a52b7f6dace7033380cd6da14d0915eab3e6b5 https://huggingface.co/zai-org/CogView4-6B/tree/63a52b7f6dace7033380cd6da14d0915eab3e6b5" + "Qwen/Qwen-Image-2512@25468b98e3276ca6700de15c6628e51b7de54a26 https://huggingface.co/Qwen/Qwen-Image-2512/tree/25468b98e3276ca6700de15c6628e51b7de54a26" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", - "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", - "provenanceTemplateId": "quiet_current" + "humanApprovalPacketSHA256": "60b01498a2df5f4e4622cdc2f9a43c83d187820780d2425a19718c13707db501", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "qwen_2512_cobalt_backdrop_repair" }, { - "path": "template-gallery/reviews/quiet_current.retained-template-provenance.json", - "sha256": "sha256:bytes:888aecdcb91637d93c268a9ad7b615ca545e7b73e2f1caf064c12bf4a0681655", + "path": "template-gallery/reviews/qwen_2512_cobalt_backdrop_repair.original-review.json", + "sha256": "sha256:bytes:87b770beaa2fa2fbbc469450467e7ba7fd0c1f79e227cc24ba1e226e8b4af900", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/zai-org/CogView4-6B/tree/63a52b7f6dace7033380cd6da14d0915eab3e6b5", - "sourceRevision": "zai-org/CogView4-6B@63a52b7f6dace7033380cd6da14d0915eab3e6b5", + "sourceUrl": "https://huggingface.co/Qwen/Qwen-Image-2512/tree/25468b98e3276ca6700de15c6628e51b7de54a26", + "sourceRevision": "Qwen/Qwen-Image-2512@25468b98e3276ca6700de15c6628e51b7de54a26", "sourceLicense": "MoDiff-authored Gallery metadata", "modelTerms": [ - "apache-2.0. https://huggingface.co/zai-org/CogView4-6B/tree/63a52b7f6dace7033380cd6da14d0915eab3e6b5" + "Publisher model terms at https://huggingface.co/Qwen/Qwen-Image-2512/tree/25468b98e3276ca6700de15c6628e51b7de54a26" ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "zai-org/CogView4-6B@63a52b7f6dace7033380cd6da14d0915eab3e6b5 https://huggingface.co/zai-org/CogView4-6B/tree/63a52b7f6dace7033380cd6da14d0915eab3e6b5" + "Qwen/Qwen-Image-2512@25468b98e3276ca6700de15c6628e51b7de54a26 https://huggingface.co/Qwen/Qwen-Image-2512/tree/25468b98e3276ca6700de15c6628e51b7de54a26" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", - "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", - "provenanceTemplateId": "quiet_current" + "humanApprovalPacketSHA256": "60b01498a2df5f4e4622cdc2f9a43c83d187820780d2425a19718c13707db501", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "qwen_2512_cobalt_backdrop_repair" }, { - "path": "template-gallery/reviews/quiet_kiln_at_daybreak.original-provenance.json", - "sha256": "sha256:bytes:a4b6c9950b2f2f6d185eb574ad4acddec21e2015fcf8d50bd14195ed24dcee97", + "path": "template-gallery/reviews/qwen_2512_cobalt_backdrop_repair.quality-review.json", + "sha256": "sha256:bytes:cfe7231165788dcb08f50c7d45ab5f0953fd96c92da8d1ecd428af7d0a20cbce", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/NucleusAI/Nucleus-Image/tree/5e963db4fd0a65c7e4faf53ca2d4eca567c4dcfa", - "sourceRevision": "NucleusAI/Nucleus-Image@5e963db4fd0a65c7e4faf53ca2d4eca567c4dcfa", + "sourceUrl": "https://huggingface.co/Qwen/Qwen-Image-2512/tree/25468b98e3276ca6700de15c6628e51b7de54a26", + "sourceRevision": "Qwen/Qwen-Image-2512@25468b98e3276ca6700de15c6628e51b7de54a26", "sourceLicense": "MoDiff-authored Gallery metadata", "modelTerms": [ - "Apache-2.0 per the publisher at this revision. https://huggingface.co/NucleusAI/Nucleus-Image/tree/5e963db4fd0a65c7e4faf53ca2d4eca567c4dcfa" + "Publisher model terms at https://huggingface.co/Qwen/Qwen-Image-2512/tree/25468b98e3276ca6700de15c6628e51b7de54a26" ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "NucleusAI/Nucleus-Image@5e963db4fd0a65c7e4faf53ca2d4eca567c4dcfa https://huggingface.co/NucleusAI/Nucleus-Image/tree/5e963db4fd0a65c7e4faf53ca2d4eca567c4dcfa" + "Qwen/Qwen-Image-2512@25468b98e3276ca6700de15c6628e51b7de54a26 https://huggingface.co/Qwen/Qwen-Image-2512/tree/25468b98e3276ca6700de15c6628e51b7de54a26" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", - "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", - "provenanceTemplateId": "quiet_kiln_at_daybreak" + "humanApprovalPacketSHA256": "60b01498a2df5f4e4622cdc2f9a43c83d187820780d2425a19718c13707db501", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "qwen_2512_cobalt_backdrop_repair" }, { - "path": "template-gallery/reviews/quiet_kiln_at_daybreak.original-review.json", - "sha256": "sha256:bytes:b76ab6d15da10b9d6fb9ddfd83af0abf2f56ca962aac6ab65c78ae231a74d2bd", + "path": "template-gallery/reviews/qwen_2512_cobalt_backdrop_repair.retained-template-provenance.json", + "sha256": "sha256:bytes:7303db8a55bb4bfb9947f5d501be2907de1da8ebe0e8972578567e04d33ad336", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/NucleusAI/Nucleus-Image/tree/5e963db4fd0a65c7e4faf53ca2d4eca567c4dcfa", - "sourceRevision": "NucleusAI/Nucleus-Image@5e963db4fd0a65c7e4faf53ca2d4eca567c4dcfa", + "sourceUrl": "https://huggingface.co/Qwen/Qwen-Image-2512/tree/25468b98e3276ca6700de15c6628e51b7de54a26", + "sourceRevision": "Qwen/Qwen-Image-2512@25468b98e3276ca6700de15c6628e51b7de54a26", "sourceLicense": "MoDiff-authored Gallery metadata", "modelTerms": [ - "Apache-2.0 per the publisher at this revision. https://huggingface.co/NucleusAI/Nucleus-Image/tree/5e963db4fd0a65c7e4faf53ca2d4eca567c4dcfa" + "Publisher model terms at https://huggingface.co/Qwen/Qwen-Image-2512/tree/25468b98e3276ca6700de15c6628e51b7de54a26" ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "NucleusAI/Nucleus-Image@5e963db4fd0a65c7e4faf53ca2d4eca567c4dcfa https://huggingface.co/NucleusAI/Nucleus-Image/tree/5e963db4fd0a65c7e4faf53ca2d4eca567c4dcfa" + "Qwen/Qwen-Image-2512@25468b98e3276ca6700de15c6628e51b7de54a26 https://huggingface.co/Qwen/Qwen-Image-2512/tree/25468b98e3276ca6700de15c6628e51b7de54a26" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", - "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", - "provenanceTemplateId": "quiet_kiln_at_daybreak" + "humanApprovalPacketSHA256": "60b01498a2df5f4e4622cdc2f9a43c83d187820780d2425a19718c13707db501", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "qwen_2512_cobalt_backdrop_repair" }, { - "path": "template-gallery/reviews/quiet_kiln_at_daybreak.quality-review.json", - "sha256": "sha256:bytes:b0118affa79b69e333c6a7977aa8c47328d570dd374aa212f0a371ec5a4a353b", + "path": "template-gallery/reviews/qwen_bookshop_gouache.original-provenance.json", + "sha256": "sha256:bytes:4af138819ecda66dc7754a8ea6886ca1bb324540a235b73b14c3d2bb547e58de", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/NucleusAI/Nucleus-Image/tree/5e963db4fd0a65c7e4faf53ca2d4eca567c4dcfa", - "sourceRevision": "NucleusAI/Nucleus-Image@5e963db4fd0a65c7e4faf53ca2d4eca567c4dcfa", + "sourceUrl": "https://huggingface.co/Qwen/Qwen-Image-2512/tree/25468b98e3276ca6700de15c6628e51b7de54a26", + "sourceRevision": "Qwen/Qwen-Image-2512@25468b98e3276ca6700de15c6628e51b7de54a26", "sourceLicense": "MoDiff-authored Gallery metadata", "modelTerms": [ - "Apache-2.0 per the publisher at this revision. https://huggingface.co/NucleusAI/Nucleus-Image/tree/5e963db4fd0a65c7e4faf53ca2d4eca567c4dcfa" + "Publisher model terms at https://huggingface.co/Qwen/Qwen-Image-2512/tree/25468b98e3276ca6700de15c6628e51b7de54a26" ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "NucleusAI/Nucleus-Image@5e963db4fd0a65c7e4faf53ca2d4eca567c4dcfa https://huggingface.co/NucleusAI/Nucleus-Image/tree/5e963db4fd0a65c7e4faf53ca2d4eca567c4dcfa" + "Qwen/Qwen-Image-2512@25468b98e3276ca6700de15c6628e51b7de54a26 https://huggingface.co/Qwen/Qwen-Image-2512/tree/25468b98e3276ca6700de15c6628e51b7de54a26" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", - "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", - "provenanceTemplateId": "quiet_kiln_at_daybreak" + "humanApprovalPacketSHA256": "60b01498a2df5f4e4622cdc2f9a43c83d187820780d2425a19718c13707db501", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "qwen_bookshop_gouache" }, { - "path": "template-gallery/reviews/quiet_kiln_at_daybreak.retained-template-provenance.json", - "sha256": "sha256:bytes:ae5db3f69f0a3ae1ad178ca986819e1b8cb1ccdf50c9b3850d5ec2e7d745ba8d", + "path": "template-gallery/reviews/qwen_bookshop_gouache.original-review.json", + "sha256": "sha256:bytes:3b34b326d7200df17d7e8ef42964bf5398dd8216fef84e09ec974c7007101271", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/NucleusAI/Nucleus-Image/tree/5e963db4fd0a65c7e4faf53ca2d4eca567c4dcfa", - "sourceRevision": "NucleusAI/Nucleus-Image@5e963db4fd0a65c7e4faf53ca2d4eca567c4dcfa", + "sourceUrl": "https://huggingface.co/Qwen/Qwen-Image-2512/tree/25468b98e3276ca6700de15c6628e51b7de54a26", + "sourceRevision": "Qwen/Qwen-Image-2512@25468b98e3276ca6700de15c6628e51b7de54a26", "sourceLicense": "MoDiff-authored Gallery metadata", "modelTerms": [ - "Apache-2.0 per the publisher at this revision. https://huggingface.co/NucleusAI/Nucleus-Image/tree/5e963db4fd0a65c7e4faf53ca2d4eca567c4dcfa" + "Publisher model terms at https://huggingface.co/Qwen/Qwen-Image-2512/tree/25468b98e3276ca6700de15c6628e51b7de54a26" ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "NucleusAI/Nucleus-Image@5e963db4fd0a65c7e4faf53ca2d4eca567c4dcfa https://huggingface.co/NucleusAI/Nucleus-Image/tree/5e963db4fd0a65c7e4faf53ca2d4eca567c4dcfa" + "Qwen/Qwen-Image-2512@25468b98e3276ca6700de15c6628e51b7de54a26 https://huggingface.co/Qwen/Qwen-Image-2512/tree/25468b98e3276ca6700de15c6628e51b7de54a26" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", - "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", - "provenanceTemplateId": "quiet_kiln_at_daybreak" + "humanApprovalPacketSHA256": "60b01498a2df5f4e4622cdc2f9a43c83d187820780d2425a19718c13707db501", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "qwen_bookshop_gouache" }, { - "path": "template-gallery/reviews/qwen_2511_pale_amber_on_limestone.original-provenance.json", - "sha256": "sha256:bytes:92184da315494eafd5ffb5f97e0b6b16b9adc7e2900cfe2159a74eb95f2c664d", + "path": "template-gallery/reviews/qwen_bookshop_gouache.quality-review.json", + "sha256": "sha256:bytes:94fe1a1dd8188e3f6860c7154e414c605cc8f94e79524fa5dc6f0bb557f23a98", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/Qwen/Qwen-Image-Edit-2511/tree/6f3ccc0b56e431dc6a0c2b2039706d7d26f22cb9", - "sourceRevision": "Qwen/Qwen-Image-Edit-2511@6f3ccc0b56e431dc6a0c2b2039706d7d26f22cb9", + "sourceUrl": "https://huggingface.co/Qwen/Qwen-Image-2512/tree/25468b98e3276ca6700de15c6628e51b7de54a26", + "sourceRevision": "Qwen/Qwen-Image-2512@25468b98e3276ca6700de15c6628e51b7de54a26", "sourceLicense": "MoDiff-authored Gallery metadata", "modelTerms": [ - "Publisher model terms at https://huggingface.co/Qwen/Qwen-Image-Edit-2511/tree/6f3ccc0b56e431dc6a0c2b2039706d7d26f22cb9" + "Publisher model terms at https://huggingface.co/Qwen/Qwen-Image-2512/tree/25468b98e3276ca6700de15c6628e51b7de54a26" ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "Qwen/Qwen-Image-Edit-2511@6f3ccc0b56e431dc6a0c2b2039706d7d26f22cb9 https://huggingface.co/Qwen/Qwen-Image-Edit-2511/tree/6f3ccc0b56e431dc6a0c2b2039706d7d26f22cb9" + "Qwen/Qwen-Image-2512@25468b98e3276ca6700de15c6628e51b7de54a26 https://huggingface.co/Qwen/Qwen-Image-2512/tree/25468b98e3276ca6700de15c6628e51b7de54a26" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", @@ -16046,26 +17612,26 @@ "reviewClass": "per-file-maintainer-accepted-retained-registration", "humanApprovalPacketSHA256": "60b01498a2df5f4e4622cdc2f9a43c83d187820780d2425a19718c13707db501", "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", - "provenanceTemplateId": "qwen_2511_pale_amber_on_limestone" + "provenanceTemplateId": "qwen_bookshop_gouache" }, { - "path": "template-gallery/reviews/qwen_2511_pale_amber_on_limestone.original-review.json", - "sha256": "sha256:bytes:c927ac13e8f20facd97ba72db03ae4fc658d5b2b5120a9473d2bcd280e01356c", + "path": "template-gallery/reviews/qwen_bookshop_gouache.retained-template-provenance.json", + "sha256": "sha256:bytes:7b9356ca691735f772c1a0e914393459401f84cd012e782e4f0d940fac255648", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/Qwen/Qwen-Image-Edit-2511/tree/6f3ccc0b56e431dc6a0c2b2039706d7d26f22cb9", - "sourceRevision": "Qwen/Qwen-Image-Edit-2511@6f3ccc0b56e431dc6a0c2b2039706d7d26f22cb9", + "sourceUrl": "https://huggingface.co/Qwen/Qwen-Image-2512/tree/25468b98e3276ca6700de15c6628e51b7de54a26", + "sourceRevision": "Qwen/Qwen-Image-2512@25468b98e3276ca6700de15c6628e51b7de54a26", "sourceLicense": "MoDiff-authored Gallery metadata", "modelTerms": [ - "Publisher model terms at https://huggingface.co/Qwen/Qwen-Image-Edit-2511/tree/6f3ccc0b56e431dc6a0c2b2039706d7d26f22cb9" + "Publisher model terms at https://huggingface.co/Qwen/Qwen-Image-2512/tree/25468b98e3276ca6700de15c6628e51b7de54a26" ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "Qwen/Qwen-Image-Edit-2511@6f3ccc0b56e431dc6a0c2b2039706d7d26f22cb9 https://huggingface.co/Qwen/Qwen-Image-Edit-2511/tree/6f3ccc0b56e431dc6a0c2b2039706d7d26f22cb9" + "Qwen/Qwen-Image-2512@25468b98e3276ca6700de15c6628e51b7de54a26 https://huggingface.co/Qwen/Qwen-Image-2512/tree/25468b98e3276ca6700de15c6628e51b7de54a26" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", @@ -16073,26 +17639,70 @@ "reviewClass": "per-file-maintainer-accepted-retained-registration", "humanApprovalPacketSHA256": "60b01498a2df5f4e4622cdc2f9a43c83d187820780d2425a19718c13707db501", "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", - "provenanceTemplateId": "qwen_2511_pale_amber_on_limestone" + "provenanceTemplateId": "qwen_bookshop_gouache" }, { - "path": "template-gallery/reviews/qwen_2511_pale_amber_on_limestone.quality-review.json", - "sha256": "sha256:bytes:1448c1f4aeddd0ca2238d62a91db71644d723172bad44eee0f62618f89580160", + "path": "template-gallery/reviews/qwen_character_angles.quality-review.json", + "sha256": "sha256:bytes:748fb8b3839911be02f80185d329b5b028456c78916da6ad07349e0086b0f106", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers", + "creationMethod": "MoDiff-authored technical provenance, Gallery manifest or quality review for the explicitly approved native Linux Qwen character angle sheet", + "sourceUrl": null, + "sourceRevision": null, + "sourceLicense": "Apache-2.0 project-authored metadata; generated-media terms remain in their exact per-file record", + "modelTerms": [], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [], + "assetLicense": "Apache-2.0", + "reviewedBy": "SOURAV DAS", + "reviewedAt": "2026-11-10", + "reviewClass": "per-file-human-approved-qwen-angle-native-image-registration", + "provenanceTemplateId": "qwen_character_angles", + "humanApprovalPacketSHA256": "9ca0bb197dbad8a2a27b25cef64aff67875aa6ea6f69fcb3bff581aae35b43d5" + }, + { + "path": "template-gallery/reviews/qwen_character_angles.reviewed-provenance.json", + "sha256": "sha256:bytes:a4d880bcad84c21fe3787001fceb2f9b2f4042fe83e1e2c6733d0f578a586c66", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers", + "creationMethod": "MoDiff-authored technical provenance, Gallery manifest or quality review for the explicitly approved native Linux Qwen character angle sheet", + "sourceUrl": null, + "sourceRevision": null, + "sourceLicense": "Apache-2.0 project-authored metadata; generated-media terms remain in their exact per-file record", + "modelTerms": [], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [], + "assetLicense": "Apache-2.0", + "reviewedBy": "SOURAV DAS", + "reviewedAt": "2026-11-10", + "reviewClass": "per-file-human-approved-qwen-angle-native-image-registration", + "provenanceTemplateId": "qwen_character_angles", + "humanApprovalPacketSHA256": "9ca0bb197dbad8a2a27b25cef64aff67875aa6ea6f69fcb3bff581aae35b43d5" + }, + { + "path": "template-gallery/reviews/qwen_cobalt_on_charcoal_slate.original-provenance.json", + "sha256": "sha256:bytes:e792e4d45eff40be63575b5d1b983d59aabdecf004890c98e828f6b58a1d549b", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", - "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/Qwen/Qwen-Image-Edit-2511/tree/6f3ccc0b56e431dc6a0c2b2039706d7d26f22cb9", - "sourceRevision": "Qwen/Qwen-Image-Edit-2511@6f3ccc0b56e431dc6a0c2b2039706d7d26f22cb9", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/Qwen/Qwen-Image-Edit/tree/ac7f9318f633fc4b5778c59367c8128225f1e3de", + "sourceRevision": "Qwen/Qwen-Image-Edit@ac7f9318f633fc4b5778c59367c8128225f1e3de", "sourceLicense": "MoDiff-authored Gallery metadata", "modelTerms": [ - "Publisher model terms at https://huggingface.co/Qwen/Qwen-Image-Edit-2511/tree/6f3ccc0b56e431dc6a0c2b2039706d7d26f22cb9" + "Publisher model terms at https://huggingface.co/Qwen/Qwen-Image-Edit/tree/ac7f9318f633fc4b5778c59367c8128225f1e3de" ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "Qwen/Qwen-Image-Edit-2511@6f3ccc0b56e431dc6a0c2b2039706d7d26f22cb9 https://huggingface.co/Qwen/Qwen-Image-Edit-2511/tree/6f3ccc0b56e431dc6a0c2b2039706d7d26f22cb9" + "Qwen/Qwen-Image-Edit@ac7f9318f633fc4b5778c59367c8128225f1e3de https://huggingface.co/Qwen/Qwen-Image-Edit/tree/ac7f9318f633fc4b5778c59367c8128225f1e3de" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", @@ -16100,26 +17710,26 @@ "reviewClass": "per-file-maintainer-accepted-retained-registration", "humanApprovalPacketSHA256": "60b01498a2df5f4e4622cdc2f9a43c83d187820780d2425a19718c13707db501", "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", - "provenanceTemplateId": "qwen_2511_pale_amber_on_limestone" + "provenanceTemplateId": "qwen_cobalt_on_charcoal_slate" }, { - "path": "template-gallery/reviews/qwen_2511_pale_amber_on_limestone.retained-template-provenance.json", - "sha256": "sha256:bytes:0d91cc6e5417f0defc5ef7615cc85f19de32bf6732e01e75d6051b94be8df0d8", + "path": "template-gallery/reviews/qwen_cobalt_on_charcoal_slate.original-review.json", + "sha256": "sha256:bytes:d2caf52b07dff116307a43afe1f087fe17cb98f2daa8549ec5e5c2331e0fac2f", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/Qwen/Qwen-Image-Edit-2511/tree/6f3ccc0b56e431dc6a0c2b2039706d7d26f22cb9", - "sourceRevision": "Qwen/Qwen-Image-Edit-2511@6f3ccc0b56e431dc6a0c2b2039706d7d26f22cb9", + "sourceUrl": "https://huggingface.co/Qwen/Qwen-Image-Edit/tree/ac7f9318f633fc4b5778c59367c8128225f1e3de", + "sourceRevision": "Qwen/Qwen-Image-Edit@ac7f9318f633fc4b5778c59367c8128225f1e3de", "sourceLicense": "MoDiff-authored Gallery metadata", "modelTerms": [ - "Publisher model terms at https://huggingface.co/Qwen/Qwen-Image-Edit-2511/tree/6f3ccc0b56e431dc6a0c2b2039706d7d26f22cb9" + "Publisher model terms at https://huggingface.co/Qwen/Qwen-Image-Edit/tree/ac7f9318f633fc4b5778c59367c8128225f1e3de" ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "Qwen/Qwen-Image-Edit-2511@6f3ccc0b56e431dc6a0c2b2039706d7d26f22cb9 https://huggingface.co/Qwen/Qwen-Image-Edit-2511/tree/6f3ccc0b56e431dc6a0c2b2039706d7d26f22cb9" + "Qwen/Qwen-Image-Edit@ac7f9318f633fc4b5778c59367c8128225f1e3de https://huggingface.co/Qwen/Qwen-Image-Edit/tree/ac7f9318f633fc4b5778c59367c8128225f1e3de" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", @@ -16127,26 +17737,26 @@ "reviewClass": "per-file-maintainer-accepted-retained-registration", "humanApprovalPacketSHA256": "60b01498a2df5f4e4622cdc2f9a43c83d187820780d2425a19718c13707db501", "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", - "provenanceTemplateId": "qwen_2511_pale_amber_on_limestone" + "provenanceTemplateId": "qwen_cobalt_on_charcoal_slate" }, { - "path": "template-gallery/reviews/qwen_2512_cobalt_backdrop_repair.original-provenance.json", - "sha256": "sha256:bytes:aff76ebb3392dc74718791d4d3e964e12ed333818e3e3004c2b00efdb1065cda", + "path": "template-gallery/reviews/qwen_cobalt_on_charcoal_slate.quality-review.json", + "sha256": "sha256:bytes:492e8a71b24369a4f96ae8e7781fe6926274d5871066c2ae371165026bb585fc", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/Qwen/Qwen-Image-2512/tree/25468b98e3276ca6700de15c6628e51b7de54a26", - "sourceRevision": "Qwen/Qwen-Image-2512@25468b98e3276ca6700de15c6628e51b7de54a26", + "sourceUrl": "https://huggingface.co/Qwen/Qwen-Image-Edit/tree/ac7f9318f633fc4b5778c59367c8128225f1e3de", + "sourceRevision": "Qwen/Qwen-Image-Edit@ac7f9318f633fc4b5778c59367c8128225f1e3de", "sourceLicense": "MoDiff-authored Gallery metadata", "modelTerms": [ - "Publisher model terms at https://huggingface.co/Qwen/Qwen-Image-2512/tree/25468b98e3276ca6700de15c6628e51b7de54a26" + "Publisher model terms at https://huggingface.co/Qwen/Qwen-Image-Edit/tree/ac7f9318f633fc4b5778c59367c8128225f1e3de" ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "Qwen/Qwen-Image-2512@25468b98e3276ca6700de15c6628e51b7de54a26 https://huggingface.co/Qwen/Qwen-Image-2512/tree/25468b98e3276ca6700de15c6628e51b7de54a26" + "Qwen/Qwen-Image-Edit@ac7f9318f633fc4b5778c59367c8128225f1e3de https://huggingface.co/Qwen/Qwen-Image-Edit/tree/ac7f9318f633fc4b5778c59367c8128225f1e3de" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", @@ -16154,26 +17764,26 @@ "reviewClass": "per-file-maintainer-accepted-retained-registration", "humanApprovalPacketSHA256": "60b01498a2df5f4e4622cdc2f9a43c83d187820780d2425a19718c13707db501", "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", - "provenanceTemplateId": "qwen_2512_cobalt_backdrop_repair" + "provenanceTemplateId": "qwen_cobalt_on_charcoal_slate" }, { - "path": "template-gallery/reviews/qwen_2512_cobalt_backdrop_repair.original-review.json", - "sha256": "sha256:bytes:87b770beaa2fa2fbbc469450467e7ba7fd0c1f79e227cc24ba1e226e8b4af900", + "path": "template-gallery/reviews/qwen_cobalt_on_charcoal_slate.retained-template-provenance.json", + "sha256": "sha256:bytes:416a58ebfb2db64e9d1e75995cd8b6e8151b60a60600c9bfe33a472b2c31d8bb", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/Qwen/Qwen-Image-2512/tree/25468b98e3276ca6700de15c6628e51b7de54a26", - "sourceRevision": "Qwen/Qwen-Image-2512@25468b98e3276ca6700de15c6628e51b7de54a26", + "sourceUrl": "https://huggingface.co/Qwen/Qwen-Image-Edit/tree/ac7f9318f633fc4b5778c59367c8128225f1e3de", + "sourceRevision": "Qwen/Qwen-Image-Edit@ac7f9318f633fc4b5778c59367c8128225f1e3de", "sourceLicense": "MoDiff-authored Gallery metadata", "modelTerms": [ - "Publisher model terms at https://huggingface.co/Qwen/Qwen-Image-2512/tree/25468b98e3276ca6700de15c6628e51b7de54a26" + "Publisher model terms at https://huggingface.co/Qwen/Qwen-Image-Edit/tree/ac7f9318f633fc4b5778c59367c8128225f1e3de" ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "Qwen/Qwen-Image-2512@25468b98e3276ca6700de15c6628e51b7de54a26 https://huggingface.co/Qwen/Qwen-Image-2512/tree/25468b98e3276ca6700de15c6628e51b7de54a26" + "Qwen/Qwen-Image-Edit@ac7f9318f633fc4b5778c59367c8128225f1e3de https://huggingface.co/Qwen/Qwen-Image-Edit/tree/ac7f9318f633fc4b5778c59367c8128225f1e3de" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", @@ -16181,11 +17791,56 @@ "reviewClass": "per-file-maintainer-accepted-retained-registration", "humanApprovalPacketSHA256": "60b01498a2df5f4e4622cdc2f9a43c83d187820780d2425a19718c13707db501", "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", - "provenanceTemplateId": "qwen_2512_cobalt_backdrop_repair" + "provenanceTemplateId": "qwen_cobalt_on_charcoal_slate" }, { - "path": "template-gallery/reviews/qwen_2512_cobalt_backdrop_repair.quality-review.json", - "sha256": "sha256:bytes:cfe7231165788dcb08f50c7d45ab5f0953fd96c92da8d1ecd428af7d0a20cbce", + "path": "template-gallery/reviews/qwen_control_image_layout.quality-review.json", + "sha256": "sha256:bytes:96b21e77ef524c853732f9ee920cb0cc6306fae984a78c798aab7cc1314b1c4b", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers", + "creationMethod": "Project-authored Gallery manifest, native provenance or accepted quality review", + "sourceUrl": null, + "sourceRevision": null, + "sourceLicense": "Apache-2.0 project-authored metadata", + "modelTerms": [], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [], + "assetLicense": "Apache-2.0", + "reviewedBy": "SOURAV DAS", + "reviewedAt": "2026-11-10", + "reviewClass": "per-file-maintainer-accepted-native-gallery-registration", + "provenanceTemplateId": "qwen_control_image_layout", + "humanApprovalPacketSHA256": "73ddf9ea7fc27eccc6b93817809421a008ce0fd2fb3080ffbdc5831a09205304" + }, + { + "path": "template-gallery/reviews/qwen_control_image_layout.reviewed-provenance.json", + "sha256": "sha256:bytes:63f6695ce2fd38c8014d2de5216bd4a681c207496d5eaad9ec3906a545ca2820", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers", + "creationMethod": "Project-authored Gallery manifest, native provenance or accepted quality review", + "sourceUrl": null, + "sourceRevision": null, + "sourceLicense": "Apache-2.0 project-authored metadata", + "modelTerms": [], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [], + "assetLicense": "Apache-2.0", + "reviewedBy": "SOURAV DAS", + "reviewedAt": "2026-11-10", + "reviewClass": "per-file-maintainer-accepted-native-gallery-registration", + "humanApprovalPacketSHA256": "73ddf9ea7fc27eccc6b93817809421a008ce0fd2fb3080ffbdc5831a09205304", + "humanApprovalScope": "The maintainer explicitly approved the proposed 4/5 scores, known limits, exact retained Klein two-reference derivative output, its redacted technical/quality metadata, and permission to make and redistribute this derivative under Apache-2.0. Existing source images and their mixed license records remain unchanged; no other assets or held cases are newly approved.", + "provenanceTemplateId": "qwen_control_image_layout" + }, + { + "path": "template-gallery/reviews/qwen_control_winter_cabin_blue_hour.original-provenance.json", + "sha256": "sha256:bytes:a58317e01fd2bffeb6a261279a595539d058304a8c5965c89e43ef6680273fc4", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", @@ -16206,13 +17861,13 @@ "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "60b01498a2df5f4e4622cdc2f9a43c83d187820780d2425a19718c13707db501", + "humanApprovalPacketSHA256": "3968c7cbe37a94789a9f839d8e83a9e0f102629b797d5f7baacf0304a8d18153", "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", - "provenanceTemplateId": "qwen_2512_cobalt_backdrop_repair" + "provenanceTemplateId": "qwen_control_winter_cabin_blue_hour" }, { - "path": "template-gallery/reviews/qwen_2512_cobalt_backdrop_repair.retained-template-provenance.json", - "sha256": "sha256:bytes:7303db8a55bb4bfb9947f5d501be2907de1da8ebe0e8972578567e04d33ad336", + "path": "template-gallery/reviews/qwen_control_winter_cabin_blue_hour.original-review.json", + "sha256": "sha256:bytes:b01f4a91833a2f141f512cb5caee5eeff76481a829590260f823b500824bab24", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", @@ -16233,13 +17888,13 @@ "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "60b01498a2df5f4e4622cdc2f9a43c83d187820780d2425a19718c13707db501", + "humanApprovalPacketSHA256": "3968c7cbe37a94789a9f839d8e83a9e0f102629b797d5f7baacf0304a8d18153", "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", - "provenanceTemplateId": "qwen_2512_cobalt_backdrop_repair" + "provenanceTemplateId": "qwen_control_winter_cabin_blue_hour" }, { - "path": "template-gallery/reviews/qwen_bookshop_gouache.original-provenance.json", - "sha256": "sha256:bytes:4af138819ecda66dc7754a8ea6886ca1bb324540a235b73b14c3d2bb547e58de", + "path": "template-gallery/reviews/qwen_control_winter_cabin_blue_hour.quality-review.json", + "sha256": "sha256:bytes:b83d8bef8d87dbd5e4587904a947f82d9a2353224781b1581dae0684b86eab65", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", @@ -16260,13 +17915,13 @@ "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "60b01498a2df5f4e4622cdc2f9a43c83d187820780d2425a19718c13707db501", + "humanApprovalPacketSHA256": "3968c7cbe37a94789a9f839d8e83a9e0f102629b797d5f7baacf0304a8d18153", "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", - "provenanceTemplateId": "qwen_bookshop_gouache" + "provenanceTemplateId": "qwen_control_winter_cabin_blue_hour" }, { - "path": "template-gallery/reviews/qwen_bookshop_gouache.original-review.json", - "sha256": "sha256:bytes:3b34b326d7200df17d7e8ef42964bf5398dd8216fef84e09ec974c7007101271", + "path": "template-gallery/reviews/qwen_control_winter_cabin_blue_hour.retained-template-provenance.json", + "sha256": "sha256:bytes:6c21a60f83581753a9e54647ce49a82c877f23a30ea2161be13e675e26eeb0db", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", @@ -16287,219 +17942,342 @@ "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "60b01498a2df5f4e4622cdc2f9a43c83d187820780d2425a19718c13707db501", + "humanApprovalPacketSHA256": "3968c7cbe37a94789a9f839d8e83a9e0f102629b797d5f7baacf0304a8d18153", "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", - "provenanceTemplateId": "qwen_bookshop_gouache" + "provenanceTemplateId": "qwen_control_winter_cabin_blue_hour" + }, + { + "path": "template-gallery/reviews/qwen_edit_plus_single_image.quality-review.json", + "sha256": "sha256:bytes:bd2066932a1749ee87c340450d232ed2d8f919648ae9e1e64b9ea30f531d73d7", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers", + "creationMethod": "Project-authored Gallery manifest, native provenance or accepted quality review", + "sourceUrl": null, + "sourceRevision": null, + "sourceLicense": "Apache-2.0 project-authored metadata", + "modelTerms": [], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [], + "assetLicense": "Apache-2.0", + "reviewedBy": "SOURAV DAS", + "reviewedAt": "2026-11-10", + "reviewClass": "per-file-maintainer-accepted-native-gallery-registration", + "provenanceTemplateId": "qwen_edit_plus_single_image", + "humanApprovalPacketSHA256": "95893cb17e10b15ae6b23d8b31b57b0e14b9af96f822d75edbc6b68971afb11d" + }, + { + "path": "template-gallery/reviews/qwen_edit_plus_single_image.reviewed-provenance.json", + "sha256": "sha256:bytes:4b672fc3ddc522c44a41c7065cefda8c82d2d5be5ab7f01375b19cc93e029fe8", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers", + "creationMethod": "Project-authored Gallery manifest, native provenance or accepted quality review", + "sourceUrl": null, + "sourceRevision": null, + "sourceLicense": "Apache-2.0 project-authored metadata", + "modelTerms": [], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [], + "assetLicense": "Apache-2.0", + "reviewedBy": "SOURAV DAS", + "reviewedAt": "2026-11-10", + "reviewClass": "per-file-maintainer-accepted-native-gallery-registration", + "humanApprovalPacketSHA256": "95893cb17e10b15ae6b23d8b31b57b0e14b9af96f822d75edbc6b68971afb11d", + "humanApprovalScope": "The maintainer explicitly approved the proposed 4/5 scores, known limits, exact retained Klein two-reference derivative output, its redacted technical/quality metadata, and permission to make and redistribute this derivative under Apache-2.0. Existing source images and their mixed license records remain unchanged; no other assets or held cases are newly approved.", + "provenanceTemplateId": "qwen_edit_plus_single_image" + }, + { + "path": "template-gallery/reviews/qwen_edit_strength_sweep.quality-review.json", + "sha256": "sha256:bytes:c0632baaea92783a73856fd89295df7ddea9b07712a35311f81fd2c8ca9c0727", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers", + "creationMethod": "Project-authored Gallery manifest, native provenance or accepted quality review", + "sourceUrl": null, + "sourceRevision": null, + "sourceLicense": "Apache-2.0 project-authored metadata", + "modelTerms": [], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [], + "assetLicense": "Apache-2.0", + "reviewedBy": "SOURAV DAS", + "reviewedAt": "2026-11-10", + "reviewClass": "per-file-maintainer-accepted-native-gallery-registration", + "provenanceTemplateId": "qwen_edit_strength_sweep", + "humanApprovalPacketSHA256": "95893cb17e10b15ae6b23d8b31b57b0e14b9af96f822d75edbc6b68971afb11d" + }, + { + "path": "template-gallery/reviews/qwen_edit_strength_sweep.reviewed-provenance.json", + "sha256": "sha256:bytes:021e25f19a4a62f07513e3556ba7865e2ae7631762ead746ef6563e2912b0a4a", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers", + "creationMethod": "Project-authored Gallery manifest, native provenance or accepted quality review", + "sourceUrl": null, + "sourceRevision": null, + "sourceLicense": "Apache-2.0 project-authored metadata", + "modelTerms": [], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [], + "assetLicense": "Apache-2.0", + "reviewedBy": "SOURAV DAS", + "reviewedAt": "2026-11-10", + "reviewClass": "per-file-maintainer-accepted-native-gallery-registration", + "provenanceTemplateId": "qwen_edit_strength_sweep", + "humanApprovalPacketSHA256": "95893cb17e10b15ae6b23d8b31b57b0e14b9af96f822d75edbc6b68971afb11d" + }, + { + "path": "template-gallery/reviews/qwen_inpaint_mask_draft.quality-review.json", + "sha256": "sha256:bytes:aacac275d7f3885f227d431f1a37be7dfcd720cee639e1a34851cdce54719154", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers", + "creationMethod": "Project-authored Gallery manifest, native provenance or accepted quality review", + "sourceUrl": null, + "sourceRevision": null, + "sourceLicense": "Apache-2.0 project-authored metadata", + "modelTerms": [], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [], + "assetLicense": "Apache-2.0", + "reviewedBy": "SOURAV DAS", + "reviewedAt": "2026-11-10", + "reviewClass": "per-file-maintainer-accepted-native-gallery-registration", + "provenanceTemplateId": "qwen_inpaint_mask_draft", + "humanApprovalPacketSHA256": "73ddf9ea7fc27eccc6b93817809421a008ce0fd2fb3080ffbdc5831a09205304" + }, + { + "path": "template-gallery/reviews/qwen_inpaint_mask_draft.reviewed-provenance.json", + "sha256": "sha256:bytes:fd5214c8523c581b8535d0bd77afc4a8451445aeb449bb079ac150de9c3d5727", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers", + "creationMethod": "Project-authored Gallery manifest, native provenance or accepted quality review", + "sourceUrl": null, + "sourceRevision": null, + "sourceLicense": "Apache-2.0 project-authored metadata", + "modelTerms": [], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [], + "assetLicense": "Apache-2.0", + "reviewedBy": "SOURAV DAS", + "reviewedAt": "2026-11-10", + "reviewClass": "per-file-maintainer-accepted-native-gallery-registration", + "provenanceTemplateId": "qwen_inpaint_mask_draft", + "humanApprovalPacketSHA256": "73ddf9ea7fc27eccc6b93817809421a008ce0fd2fb3080ffbdc5831a09205304" }, { - "path": "template-gallery/reviews/qwen_bookshop_gouache.quality-review.json", - "sha256": "sha256:bytes:94fe1a1dd8188e3f6860c7154e414c605cc8f94e79524fa5dc6f0bb557f23a98", + "path": "template-gallery/reviews/qwen_inpaint_object_replace.quality-review.json", + "sha256": "sha256:bytes:cdbd7d549bfef1a9513cd8ed5feef6ba7798f380ffe45830cfa588de789c3cdf", "publishDecision": "approved", "holdReason": null, - "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", - "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/Qwen/Qwen-Image-2512/tree/25468b98e3276ca6700de15c6628e51b7de54a26", - "sourceRevision": "Qwen/Qwen-Image-2512@25468b98e3276ca6700de15c6628e51b7de54a26", - "sourceLicense": "MoDiff-authored Gallery metadata", - "modelTerms": [ - "Publisher model terms at https://huggingface.co/Qwen/Qwen-Image-2512/tree/25468b98e3276ca6700de15c6628e51b7de54a26" - ], + "creatorOrRightsholder": "MoDiff project maintainers", + "creationMethod": "Project-authored Gallery manifest, native provenance or accepted quality review", + "sourceUrl": null, + "sourceRevision": null, + "sourceLicense": "Apache-2.0 project-authored metadata", + "modelTerms": [], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], - "requiredAttribution": [ - "Qwen/Qwen-Image-2512@25468b98e3276ca6700de15c6628e51b7de54a26 https://huggingface.co/Qwen/Qwen-Image-2512/tree/25468b98e3276ca6700de15c6628e51b7de54a26" - ], + "requiredAttribution": [], "assetLicense": "Apache-2.0", - "reviewedBy": "MoDiff workspace maintainer", - "reviewedAt": "2026-11-25", - "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "60b01498a2df5f4e4622cdc2f9a43c83d187820780d2425a19718c13707db501", - "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", - "provenanceTemplateId": "qwen_bookshop_gouache" + "reviewedBy": "SOURAV DAS", + "reviewedAt": "2026-11-10", + "reviewClass": "per-file-maintainer-accepted-native-gallery-registration", + "provenanceTemplateId": "qwen_inpaint_object_replace", + "humanApprovalPacketSHA256": "95893cb17e10b15ae6b23d8b31b57b0e14b9af96f822d75edbc6b68971afb11d" }, { - "path": "template-gallery/reviews/qwen_bookshop_gouache.retained-template-provenance.json", - "sha256": "sha256:bytes:7b9356ca691735f772c1a0e914393459401f84cd012e782e4f0d940fac255648", + "path": "template-gallery/reviews/qwen_inpaint_object_replace.reviewed-provenance.json", + "sha256": "sha256:bytes:9110d6bf939d4c68541767c20ad62684978c590af344a226d76ee02c32b76fef", "publishDecision": "approved", "holdReason": null, - "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", - "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/Qwen/Qwen-Image-2512/tree/25468b98e3276ca6700de15c6628e51b7de54a26", - "sourceRevision": "Qwen/Qwen-Image-2512@25468b98e3276ca6700de15c6628e51b7de54a26", - "sourceLicense": "MoDiff-authored Gallery metadata", - "modelTerms": [ - "Publisher model terms at https://huggingface.co/Qwen/Qwen-Image-2512/tree/25468b98e3276ca6700de15c6628e51b7de54a26" - ], + "creatorOrRightsholder": "MoDiff project maintainers", + "creationMethod": "Project-authored Gallery manifest, native provenance or accepted quality review", + "sourceUrl": null, + "sourceRevision": null, + "sourceLicense": "Apache-2.0 project-authored metadata", + "modelTerms": [], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], - "requiredAttribution": [ - "Qwen/Qwen-Image-2512@25468b98e3276ca6700de15c6628e51b7de54a26 https://huggingface.co/Qwen/Qwen-Image-2512/tree/25468b98e3276ca6700de15c6628e51b7de54a26" - ], + "requiredAttribution": [], "assetLicense": "Apache-2.0", - "reviewedBy": "MoDiff workspace maintainer", - "reviewedAt": "2026-11-25", - "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "60b01498a2df5f4e4622cdc2f9a43c83d187820780d2425a19718c13707db501", - "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", - "provenanceTemplateId": "qwen_bookshop_gouache" + "reviewedBy": "SOURAV DAS", + "reviewedAt": "2026-11-10", + "reviewClass": "per-file-maintainer-accepted-native-gallery-registration", + "provenanceTemplateId": "qwen_inpaint_object_replace", + "humanApprovalPacketSHA256": "95893cb17e10b15ae6b23d8b31b57b0e14b9af96f822d75edbc6b68971afb11d" }, { - "path": "template-gallery/reviews/qwen_character_angles.quality-review.json", - "sha256": "sha256:bytes:748fb8b3839911be02f80185d329b5b028456c78916da6ad07349e0086b0f106", + "path": "template-gallery/reviews/qwen_layered_portrait.quality-review.json", + "sha256": "sha256:bytes:2ef67ce5c77e09b88d8a33d6759edbc3ccbfe910bfad17d638dc5ce99794ea7f", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers", - "creationMethod": "MoDiff-authored technical provenance, Gallery manifest or quality review for the explicitly approved native Linux Qwen character angle sheet", + "creationMethod": "MoDiff-authored technical, review, input-binding or retained recipe metadata for three maintainer-accepted assets", "sourceUrl": null, "sourceRevision": null, - "sourceLicense": "Apache-2.0 project-authored metadata; generated-media terms remain in their exact per-file record", + "sourceLicense": "Apache-2.0 project-authored metadata; generated-media model terms are retained separately", "modelTerms": [], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [], "assetLicense": "Apache-2.0", - "reviewedBy": "SOURAV DAS", - "reviewedAt": "2026-11-10", - "reviewClass": "per-file-human-approved-qwen-angle-native-image-registration", - "provenanceTemplateId": "qwen_character_angles", - "humanApprovalPacketSHA256": "9ca0bb197dbad8a2a27b25cef64aff67875aa6ea6f69fcb3bff581aae35b43d5" + "reviewedBy": "maintainer (current user)", + "reviewedAt": "2026-11-12", + "reviewClass": "per-file-maintainer-accepted-native-three-registration", + "provenanceTemplateId": "qwen_layered_portrait", + "humanApprovalPacketSHA256": "69c6b3d9b0ea2fcca16ee538f6e75b414b7141658b74f10578758e61360f63fd" }, { - "path": "template-gallery/reviews/qwen_character_angles.reviewed-provenance.json", - "sha256": "sha256:bytes:a4d880bcad84c21fe3787001fceb2f9b2f4042fe83e1e2c6733d0f578a586c66", + "path": "template-gallery/reviews/qwen_layered_portrait.reviewed-provenance.json", + "sha256": "sha256:bytes:f1f8f884f1a797e5918e01f9b47d1f93d39cd6a305a7d3ca46c9f9b349d18f01", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers", - "creationMethod": "MoDiff-authored technical provenance, Gallery manifest or quality review for the explicitly approved native Linux Qwen character angle sheet", + "creationMethod": "MoDiff-authored technical, review, input-binding or retained recipe metadata for three maintainer-accepted assets", "sourceUrl": null, "sourceRevision": null, - "sourceLicense": "Apache-2.0 project-authored metadata; generated-media terms remain in their exact per-file record", + "sourceLicense": "Apache-2.0 project-authored metadata; generated-media model terms are retained separately", "modelTerms": [], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [], "assetLicense": "Apache-2.0", - "reviewedBy": "SOURAV DAS", - "reviewedAt": "2026-11-10", - "reviewClass": "per-file-human-approved-qwen-angle-native-image-registration", - "provenanceTemplateId": "qwen_character_angles", - "humanApprovalPacketSHA256": "9ca0bb197dbad8a2a27b25cef64aff67875aa6ea6f69fcb3bff581aae35b43d5" + "reviewedBy": "maintainer (current user)", + "reviewedAt": "2026-11-12", + "reviewClass": "per-file-maintainer-accepted-native-three-registration", + "provenanceTemplateId": "qwen_layered_portrait", + "humanApprovalPacketSHA256": "69c6b3d9b0ea2fcca16ee538f6e75b414b7141658b74f10578758e61360f63fd" }, { - "path": "template-gallery/reviews/qwen_cobalt_on_charcoal_slate.original-provenance.json", - "sha256": "sha256:bytes:e792e4d45eff40be63575b5d1b983d59aabdecf004890c98e828f6b58a1d549b", + "path": "template-gallery/reviews/qwen_layered_sunset_and_peaks.original-provenance.json", + "sha256": "sha256:bytes:9a4c058f2ba7bd3dace465219c32bd818493431063688b00741a9a9c4fb01794", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/Qwen/Qwen-Image-Edit/tree/ac7f9318f633fc4b5778c59367c8128225f1e3de", - "sourceRevision": "Qwen/Qwen-Image-Edit@ac7f9318f633fc4b5778c59367c8128225f1e3de", + "sourceUrl": "https://huggingface.co/Qwen/Qwen-Image-Layered/tree/8f0ca708dfff6ba1dd5f2d85d78f8c108a040bcf", + "sourceRevision": "Qwen/Qwen-Image-Layered@8f0ca708dfff6ba1dd5f2d85d78f8c108a040bcf", "sourceLicense": "MoDiff-authored Gallery metadata", "modelTerms": [ - "Publisher model terms at https://huggingface.co/Qwen/Qwen-Image-Edit/tree/ac7f9318f633fc4b5778c59367c8128225f1e3de" + "https://huggingface.co/Qwen/Qwen-Image-Layered/blob/8f0ca708dfff6ba1dd5f2d85d78f8c108a040bcf/README.md" ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "Qwen/Qwen-Image-Edit@ac7f9318f633fc4b5778c59367c8128225f1e3de https://huggingface.co/Qwen/Qwen-Image-Edit/tree/ac7f9318f633fc4b5778c59367c8128225f1e3de" + "Qwen/Qwen-Image-Layered@8f0ca708dfff6ba1dd5f2d85d78f8c108a040bcf https://huggingface.co/Qwen/Qwen-Image-Layered/tree/8f0ca708dfff6ba1dd5f2d85d78f8c108a040bcf" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "60b01498a2df5f4e4622cdc2f9a43c83d187820780d2425a19718c13707db501", + "humanApprovalPacketSHA256": "b16dfc2b7c1c32272b8f79bc1bffbb60376e63f8cf1ab9d0bdf9aea07cccf5cd", "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", - "provenanceTemplateId": "qwen_cobalt_on_charcoal_slate" + "provenanceTemplateId": "qwen_layered_sunset_and_peaks" }, { - "path": "template-gallery/reviews/qwen_cobalt_on_charcoal_slate.original-review.json", - "sha256": "sha256:bytes:d2caf52b07dff116307a43afe1f087fe17cb98f2daa8549ec5e5c2331e0fac2f", + "path": "template-gallery/reviews/qwen_layered_sunset_and_peaks.original-review.json", + "sha256": "sha256:bytes:faf0adb0a9c40691caf3ef8f96765406b3b5058aa9618cca5431ae83529a1bcb", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/Qwen/Qwen-Image-Edit/tree/ac7f9318f633fc4b5778c59367c8128225f1e3de", - "sourceRevision": "Qwen/Qwen-Image-Edit@ac7f9318f633fc4b5778c59367c8128225f1e3de", + "sourceUrl": "https://huggingface.co/Qwen/Qwen-Image-Layered/tree/8f0ca708dfff6ba1dd5f2d85d78f8c108a040bcf", + "sourceRevision": "Qwen/Qwen-Image-Layered@8f0ca708dfff6ba1dd5f2d85d78f8c108a040bcf", "sourceLicense": "MoDiff-authored Gallery metadata", "modelTerms": [ - "Publisher model terms at https://huggingface.co/Qwen/Qwen-Image-Edit/tree/ac7f9318f633fc4b5778c59367c8128225f1e3de" + "https://huggingface.co/Qwen/Qwen-Image-Layered/blob/8f0ca708dfff6ba1dd5f2d85d78f8c108a040bcf/README.md" ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "Qwen/Qwen-Image-Edit@ac7f9318f633fc4b5778c59367c8128225f1e3de https://huggingface.co/Qwen/Qwen-Image-Edit/tree/ac7f9318f633fc4b5778c59367c8128225f1e3de" + "Qwen/Qwen-Image-Layered@8f0ca708dfff6ba1dd5f2d85d78f8c108a040bcf https://huggingface.co/Qwen/Qwen-Image-Layered/tree/8f0ca708dfff6ba1dd5f2d85d78f8c108a040bcf" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "60b01498a2df5f4e4622cdc2f9a43c83d187820780d2425a19718c13707db501", + "humanApprovalPacketSHA256": "b16dfc2b7c1c32272b8f79bc1bffbb60376e63f8cf1ab9d0bdf9aea07cccf5cd", "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", - "provenanceTemplateId": "qwen_cobalt_on_charcoal_slate" + "provenanceTemplateId": "qwen_layered_sunset_and_peaks" }, { - "path": "template-gallery/reviews/qwen_cobalt_on_charcoal_slate.quality-review.json", - "sha256": "sha256:bytes:492e8a71b24369a4f96ae8e7781fe6926274d5871066c2ae371165026bb585fc", + "path": "template-gallery/reviews/qwen_layered_sunset_and_peaks.quality-review.json", + "sha256": "sha256:bytes:326553aed7aab67e3eed777d7919e21fe02ff9ab837edd7f39bd7a2abece77f0", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/Qwen/Qwen-Image-Edit/tree/ac7f9318f633fc4b5778c59367c8128225f1e3de", - "sourceRevision": "Qwen/Qwen-Image-Edit@ac7f9318f633fc4b5778c59367c8128225f1e3de", + "sourceUrl": "https://huggingface.co/Qwen/Qwen-Image-Layered/tree/8f0ca708dfff6ba1dd5f2d85d78f8c108a040bcf", + "sourceRevision": "Qwen/Qwen-Image-Layered@8f0ca708dfff6ba1dd5f2d85d78f8c108a040bcf", "sourceLicense": "MoDiff-authored Gallery metadata", "modelTerms": [ - "Publisher model terms at https://huggingface.co/Qwen/Qwen-Image-Edit/tree/ac7f9318f633fc4b5778c59367c8128225f1e3de" + "https://huggingface.co/Qwen/Qwen-Image-Layered/blob/8f0ca708dfff6ba1dd5f2d85d78f8c108a040bcf/README.md" ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "Qwen/Qwen-Image-Edit@ac7f9318f633fc4b5778c59367c8128225f1e3de https://huggingface.co/Qwen/Qwen-Image-Edit/tree/ac7f9318f633fc4b5778c59367c8128225f1e3de" + "Qwen/Qwen-Image-Layered@8f0ca708dfff6ba1dd5f2d85d78f8c108a040bcf https://huggingface.co/Qwen/Qwen-Image-Layered/tree/8f0ca708dfff6ba1dd5f2d85d78f8c108a040bcf" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "60b01498a2df5f4e4622cdc2f9a43c83d187820780d2425a19718c13707db501", + "humanApprovalPacketSHA256": "b16dfc2b7c1c32272b8f79bc1bffbb60376e63f8cf1ab9d0bdf9aea07cccf5cd", "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", - "provenanceTemplateId": "qwen_cobalt_on_charcoal_slate" + "provenanceTemplateId": "qwen_layered_sunset_and_peaks" }, { - "path": "template-gallery/reviews/qwen_cobalt_on_charcoal_slate.retained-template-provenance.json", - "sha256": "sha256:bytes:416a58ebfb2db64e9d1e75995cd8b6e8151b60a60600c9bfe33a472b2c31d8bb", + "path": "template-gallery/reviews/qwen_layered_sunset_and_peaks.retained-template-provenance.json", + "sha256": "sha256:bytes:d6aaa0a0d9b84d10864e8a783ac82ac167b487f71d185bacd99cc035f8e22105", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/Qwen/Qwen-Image-Edit/tree/ac7f9318f633fc4b5778c59367c8128225f1e3de", - "sourceRevision": "Qwen/Qwen-Image-Edit@ac7f9318f633fc4b5778c59367c8128225f1e3de", + "sourceUrl": "https://huggingface.co/Qwen/Qwen-Image-Layered/tree/8f0ca708dfff6ba1dd5f2d85d78f8c108a040bcf", + "sourceRevision": "Qwen/Qwen-Image-Layered@8f0ca708dfff6ba1dd5f2d85d78f8c108a040bcf", "sourceLicense": "MoDiff-authored Gallery metadata", "modelTerms": [ - "Publisher model terms at https://huggingface.co/Qwen/Qwen-Image-Edit/tree/ac7f9318f633fc4b5778c59367c8128225f1e3de" + "https://huggingface.co/Qwen/Qwen-Image-Layered/blob/8f0ca708dfff6ba1dd5f2d85d78f8c108a040bcf/README.md" ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "Qwen/Qwen-Image-Edit@ac7f9318f633fc4b5778c59367c8128225f1e3de https://huggingface.co/Qwen/Qwen-Image-Edit/tree/ac7f9318f633fc4b5778c59367c8128225f1e3de" + "Qwen/Qwen-Image-Layered@8f0ca708dfff6ba1dd5f2d85d78f8c108a040bcf https://huggingface.co/Qwen/Qwen-Image-Layered/tree/8f0ca708dfff6ba1dd5f2d85d78f8c108a040bcf" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "60b01498a2df5f4e4622cdc2f9a43c83d187820780d2425a19718c13707db501", + "humanApprovalPacketSHA256": "b16dfc2b7c1c32272b8f79bc1bffbb60376e63f8cf1ab9d0bdf9aea07cccf5cd", "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", - "provenanceTemplateId": "qwen_cobalt_on_charcoal_slate" + "provenanceTemplateId": "qwen_layered_sunset_and_peaks" }, { - "path": "template-gallery/reviews/qwen_control_image_layout.quality-review.json", - "sha256": "sha256:bytes:96b21e77ef524c853732f9ee920cb0cc6306fae984a78c798aab7cc1314b1c4b", + "path": "template-gallery/reviews/qwen_logo_texture.quality-review.json", + "sha256": "sha256:bytes:27383d10d65bf5bcf81efb5a197751c3ad29476fd23f72cd8a937dc432e6f555", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers", @@ -16516,12 +18294,12 @@ "reviewedBy": "SOURAV DAS", "reviewedAt": "2026-11-10", "reviewClass": "per-file-maintainer-accepted-native-gallery-registration", - "provenanceTemplateId": "qwen_control_image_layout", - "humanApprovalPacketSHA256": "73ddf9ea7fc27eccc6b93817809421a008ce0fd2fb3080ffbdc5831a09205304" + "provenanceTemplateId": "qwen_logo_texture", + "humanApprovalPacketSHA256": "95893cb17e10b15ae6b23d8b31b57b0e14b9af96f822d75edbc6b68971afb11d" }, { - "path": "template-gallery/reviews/qwen_control_image_layout.reviewed-provenance.json", - "sha256": "sha256:bytes:63f6695ce2fd38c8014d2de5216bd4a681c207496d5eaad9ec3906a545ca2820", + "path": "template-gallery/reviews/qwen_logo_texture.reviewed-provenance.json", + "sha256": "sha256:bytes:d056004421a13aa28a5f5f67ef52e3647ab07573df5c8cf8d9846aeea8d9a698", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers", @@ -16538,128 +18316,63 @@ "reviewedBy": "SOURAV DAS", "reviewedAt": "2026-11-10", "reviewClass": "per-file-maintainer-accepted-native-gallery-registration", - "humanApprovalPacketSHA256": "73ddf9ea7fc27eccc6b93817809421a008ce0fd2fb3080ffbdc5831a09205304", - "humanApprovalScope": "The maintainer explicitly approved the proposed 4/5 scores, known limits, exact retained Klein two-reference derivative output, its redacted technical/quality metadata, and permission to make and redistribute this derivative under Apache-2.0. Existing source images and their mixed license records remain unchanged; no other assets or held cases are newly approved.", - "provenanceTemplateId": "qwen_control_image_layout" - }, - { - "path": "template-gallery/reviews/qwen_control_winter_cabin_blue_hour.original-provenance.json", - "sha256": "sha256:bytes:a58317e01fd2bffeb6a261279a595539d058304a8c5965c89e43ef6680273fc4", - "publishDecision": "approved", - "holdReason": null, - "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", - "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/Qwen/Qwen-Image-2512/tree/25468b98e3276ca6700de15c6628e51b7de54a26", - "sourceRevision": "Qwen/Qwen-Image-2512@25468b98e3276ca6700de15c6628e51b7de54a26", - "sourceLicense": "MoDiff-authored Gallery metadata", - "modelTerms": [ - "Publisher model terms at https://huggingface.co/Qwen/Qwen-Image-2512/tree/25468b98e3276ca6700de15c6628e51b7de54a26" - ], - "aiGenerated": false, - "humanLikenessConsent": "not-applicable", - "marks": [], - "requiredAttribution": [ - "Qwen/Qwen-Image-2512@25468b98e3276ca6700de15c6628e51b7de54a26 https://huggingface.co/Qwen/Qwen-Image-2512/tree/25468b98e3276ca6700de15c6628e51b7de54a26" - ], - "assetLicense": "Apache-2.0", - "reviewedBy": "MoDiff workspace maintainer", - "reviewedAt": "2026-11-25", - "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "3968c7cbe37a94789a9f839d8e83a9e0f102629b797d5f7baacf0304a8d18153", - "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", - "provenanceTemplateId": "qwen_control_winter_cabin_blue_hour" - }, - { - "path": "template-gallery/reviews/qwen_control_winter_cabin_blue_hour.original-review.json", - "sha256": "sha256:bytes:b01f4a91833a2f141f512cb5caee5eeff76481a829590260f823b500824bab24", - "publishDecision": "approved", - "holdReason": null, - "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", - "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/Qwen/Qwen-Image-2512/tree/25468b98e3276ca6700de15c6628e51b7de54a26", - "sourceRevision": "Qwen/Qwen-Image-2512@25468b98e3276ca6700de15c6628e51b7de54a26", - "sourceLicense": "MoDiff-authored Gallery metadata", - "modelTerms": [ - "Publisher model terms at https://huggingface.co/Qwen/Qwen-Image-2512/tree/25468b98e3276ca6700de15c6628e51b7de54a26" - ], - "aiGenerated": false, - "humanLikenessConsent": "not-applicable", - "marks": [], - "requiredAttribution": [ - "Qwen/Qwen-Image-2512@25468b98e3276ca6700de15c6628e51b7de54a26 https://huggingface.co/Qwen/Qwen-Image-2512/tree/25468b98e3276ca6700de15c6628e51b7de54a26" - ], - "assetLicense": "Apache-2.0", - "reviewedBy": "MoDiff workspace maintainer", - "reviewedAt": "2026-11-25", - "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "3968c7cbe37a94789a9f839d8e83a9e0f102629b797d5f7baacf0304a8d18153", - "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", - "provenanceTemplateId": "qwen_control_winter_cabin_blue_hour" + "provenanceTemplateId": "qwen_logo_texture", + "humanApprovalPacketSHA256": "95893cb17e10b15ae6b23d8b31b57b0e14b9af96f822d75edbc6b68971afb11d" }, { - "path": "template-gallery/reviews/qwen_control_winter_cabin_blue_hour.quality-review.json", - "sha256": "sha256:bytes:b83d8bef8d87dbd5e4587904a947f82d9a2353224781b1581dae0684b86eab65", + "path": "template-gallery/reviews/qwen_low_vram_poster_layout.quality-review.json", + "sha256": "sha256:bytes:c75a68e299dcf548661338cd1aa6f8c4d0bcc9dc3d3d7769f5717a8d09e4a8c3", "publishDecision": "approved", "holdReason": null, - "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", - "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/Qwen/Qwen-Image-2512/tree/25468b98e3276ca6700de15c6628e51b7de54a26", - "sourceRevision": "Qwen/Qwen-Image-2512@25468b98e3276ca6700de15c6628e51b7de54a26", - "sourceLicense": "MoDiff-authored Gallery metadata", - "modelTerms": [ - "Publisher model terms at https://huggingface.co/Qwen/Qwen-Image-2512/tree/25468b98e3276ca6700de15c6628e51b7de54a26" - ], + "creatorOrRightsholder": "MoDiff project maintainers", + "creationMethod": "MoDiff-authored technical provenance, Gallery manifest or quality review for the explicitly approved native Qwen cinema image", + "sourceUrl": null, + "sourceRevision": null, + "sourceLicense": "Apache-2.0 project-authored metadata; generated-media terms remain in their exact per-file record", + "modelTerms": [], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], - "requiredAttribution": [ - "Qwen/Qwen-Image-2512@25468b98e3276ca6700de15c6628e51b7de54a26 https://huggingface.co/Qwen/Qwen-Image-2512/tree/25468b98e3276ca6700de15c6628e51b7de54a26" - ], + "requiredAttribution": [], "assetLicense": "Apache-2.0", - "reviewedBy": "MoDiff workspace maintainer", - "reviewedAt": "2026-11-25", - "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "3968c7cbe37a94789a9f839d8e83a9e0f102629b797d5f7baacf0304a8d18153", - "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", - "provenanceTemplateId": "qwen_control_winter_cabin_blue_hour" + "reviewedBy": "SOURAV DAS", + "reviewedAt": "2026-11-10", + "reviewClass": "per-file-human-approved-qwen-native-image-registration", + "provenanceTemplateId": "qwen_low_vram_poster_layout", + "humanApprovalPacketSHA256": "13cb57389a33fb689324c40827376b3ddfe0ade1dd033ffc8a0c51e749e44487" }, { - "path": "template-gallery/reviews/qwen_control_winter_cabin_blue_hour.retained-template-provenance.json", - "sha256": "sha256:bytes:6c21a60f83581753a9e54647ce49a82c877f23a30ea2161be13e675e26eeb0db", + "path": "template-gallery/reviews/qwen_low_vram_poster_layout.reviewed-provenance.json", + "sha256": "sha256:bytes:16aa46e5009c7b4c05ea3dc5325e63b039c3e2a826b11a2845882c589510f194", "publishDecision": "approved", "holdReason": null, - "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", - "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/Qwen/Qwen-Image-2512/tree/25468b98e3276ca6700de15c6628e51b7de54a26", - "sourceRevision": "Qwen/Qwen-Image-2512@25468b98e3276ca6700de15c6628e51b7de54a26", - "sourceLicense": "MoDiff-authored Gallery metadata", - "modelTerms": [ - "Publisher model terms at https://huggingface.co/Qwen/Qwen-Image-2512/tree/25468b98e3276ca6700de15c6628e51b7de54a26" - ], + "creatorOrRightsholder": "MoDiff project maintainers", + "creationMethod": "MoDiff-authored technical provenance, Gallery manifest or quality review for the explicitly approved native Qwen cinema image", + "sourceUrl": null, + "sourceRevision": null, + "sourceLicense": "Apache-2.0 project-authored metadata; generated-media terms remain in their exact per-file record", + "modelTerms": [], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], - "requiredAttribution": [ - "Qwen/Qwen-Image-2512@25468b98e3276ca6700de15c6628e51b7de54a26 https://huggingface.co/Qwen/Qwen-Image-2512/tree/25468b98e3276ca6700de15c6628e51b7de54a26" - ], + "requiredAttribution": [], "assetLicense": "Apache-2.0", - "reviewedBy": "MoDiff workspace maintainer", - "reviewedAt": "2026-11-25", - "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "3968c7cbe37a94789a9f839d8e83a9e0f102629b797d5f7baacf0304a8d18153", - "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", - "provenanceTemplateId": "qwen_control_winter_cabin_blue_hour" + "reviewedBy": "SOURAV DAS", + "reviewedAt": "2026-11-10", + "reviewClass": "per-file-human-approved-qwen-native-image-registration", + "provenanceTemplateId": "qwen_low_vram_poster_layout", + "humanApprovalPacketSHA256": "13cb57389a33fb689324c40827376b3ddfe0ade1dd033ffc8a0c51e749e44487" }, { - "path": "template-gallery/reviews/qwen_edit_plus_single_image.quality-review.json", - "sha256": "sha256:bytes:bd2066932a1749ee87c340450d232ed2d8f919648ae9e1e64b9ea30f531d73d7", + "path": "template-gallery/reviews/qwen_low_vram_product_concept.quality-review.json", + "sha256": "sha256:bytes:c1bdc89bee06dad85965f564b4bb5c7657859808d333dfce4e741b344dba2ea2", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers", - "creationMethod": "Project-authored Gallery manifest, native provenance or accepted quality review", + "creationMethod": "MoDiff-authored technical provenance, Gallery manifest or quality review for the explicitly approved native Qwen stationery and product concept images", "sourceUrl": null, "sourceRevision": null, - "sourceLicense": "Apache-2.0 project-authored metadata", + "sourceLicense": "Apache-2.0 project-authored metadata; generated-media terms remain in their exact per-file record", "modelTerms": [], "aiGenerated": false, "humanLikenessConsent": "not-applicable", @@ -16668,20 +18381,20 @@ "assetLicense": "Apache-2.0", "reviewedBy": "SOURAV DAS", "reviewedAt": "2026-11-10", - "reviewClass": "per-file-maintainer-accepted-native-gallery-registration", - "provenanceTemplateId": "qwen_edit_plus_single_image", - "humanApprovalPacketSHA256": "95893cb17e10b15ae6b23d8b31b57b0e14b9af96f822d75edbc6b68971afb11d" + "reviewClass": "per-file-human-approved-qwen-native-image-registration", + "provenanceTemplateId": "qwen_low_vram_product_concept", + "humanApprovalPacketSHA256": "3193ab9ed5834bddfafc5c6922bd0eaa60e27e5963ca52c740af7540c2847834" }, { - "path": "template-gallery/reviews/qwen_edit_plus_single_image.reviewed-provenance.json", - "sha256": "sha256:bytes:4b672fc3ddc522c44a41c7065cefda8c82d2d5be5ab7f01375b19cc93e029fe8", + "path": "template-gallery/reviews/qwen_low_vram_product_concept.reviewed-provenance.json", + "sha256": "sha256:bytes:c9ff22165ab722da9056022e703f4ccdd45aa76ef6583170f0662d262a5e39a5", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers", - "creationMethod": "Project-authored Gallery manifest, native provenance or accepted quality review", + "creationMethod": "MoDiff-authored technical provenance, Gallery manifest or quality review for the explicitly approved native Qwen stationery and product concept images", "sourceUrl": null, "sourceRevision": null, - "sourceLicense": "Apache-2.0 project-authored metadata", + "sourceLicense": "Apache-2.0 project-authored metadata; generated-media terms remain in their exact per-file record", "modelTerms": [], "aiGenerated": false, "humanLikenessConsent": "not-applicable", @@ -16690,21 +18403,21 @@ "assetLicense": "Apache-2.0", "reviewedBy": "SOURAV DAS", "reviewedAt": "2026-11-10", - "reviewClass": "per-file-maintainer-accepted-native-gallery-registration", - "humanApprovalPacketSHA256": "95893cb17e10b15ae6b23d8b31b57b0e14b9af96f822d75edbc6b68971afb11d", + "reviewClass": "per-file-human-approved-qwen-native-image-registration", + "humanApprovalPacketSHA256": "3193ab9ed5834bddfafc5c6922bd0eaa60e27e5963ca52c740af7540c2847834", "humanApprovalScope": "The maintainer explicitly approved the proposed 4/5 scores, known limits, exact retained Klein two-reference derivative output, its redacted technical/quality metadata, and permission to make and redistribute this derivative under Apache-2.0. Existing source images and their mixed license records remain unchanged; no other assets or held cases are newly approved.", - "provenanceTemplateId": "qwen_edit_plus_single_image" + "provenanceTemplateId": "qwen_low_vram_product_concept" }, { - "path": "template-gallery/reviews/qwen_edit_strength_sweep.quality-review.json", - "sha256": "sha256:bytes:c0632baaea92783a73856fd89295df7ddea9b07712a35311f81fd2c8ca9c0727", + "path": "template-gallery/reviews/qwen_low_vram_text_rendering.quality-review.json", + "sha256": "sha256:bytes:64d0c05cdb2830d4a533256b6ed78afcbb2b6c8398b92b27087f8056862458a2", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers", - "creationMethod": "Project-authored Gallery manifest, native provenance or accepted quality review", + "creationMethod": "MoDiff-authored technical provenance, Gallery manifest or quality review for the explicitly approved native Qwen stationery and product concept images", "sourceUrl": null, "sourceRevision": null, - "sourceLicense": "Apache-2.0 project-authored metadata", + "sourceLicense": "Apache-2.0 project-authored metadata; generated-media terms remain in their exact per-file record", "modelTerms": [], "aiGenerated": false, "humanLikenessConsent": "not-applicable", @@ -16713,20 +18426,20 @@ "assetLicense": "Apache-2.0", "reviewedBy": "SOURAV DAS", "reviewedAt": "2026-11-10", - "reviewClass": "per-file-maintainer-accepted-native-gallery-registration", - "provenanceTemplateId": "qwen_edit_strength_sweep", - "humanApprovalPacketSHA256": "95893cb17e10b15ae6b23d8b31b57b0e14b9af96f822d75edbc6b68971afb11d" + "reviewClass": "per-file-human-approved-qwen-native-image-registration", + "provenanceTemplateId": "qwen_low_vram_text_rendering", + "humanApprovalPacketSHA256": "3193ab9ed5834bddfafc5c6922bd0eaa60e27e5963ca52c740af7540c2847834" }, { - "path": "template-gallery/reviews/qwen_edit_strength_sweep.reviewed-provenance.json", - "sha256": "sha256:bytes:021e25f19a4a62f07513e3556ba7865e2ae7631762ead746ef6563e2912b0a4a", + "path": "template-gallery/reviews/qwen_low_vram_text_rendering.reviewed-provenance.json", + "sha256": "sha256:bytes:d5e56c96dcc0d1a13aebd648ea2919c23cf26a55083b07c4cd3075fd5eaaa58d", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers", - "creationMethod": "Project-authored Gallery manifest, native provenance or accepted quality review", + "creationMethod": "MoDiff-authored technical provenance, Gallery manifest or quality review for the explicitly approved native Qwen stationery and product concept images", "sourceUrl": null, "sourceRevision": null, - "sourceLicense": "Apache-2.0 project-authored metadata", + "sourceLicense": "Apache-2.0 project-authored metadata; generated-media terms remain in their exact per-file record", "modelTerms": [], "aiGenerated": false, "humanLikenessConsent": "not-applicable", @@ -16735,13 +18448,14 @@ "assetLicense": "Apache-2.0", "reviewedBy": "SOURAV DAS", "reviewedAt": "2026-11-10", - "reviewClass": "per-file-maintainer-accepted-native-gallery-registration", - "provenanceTemplateId": "qwen_edit_strength_sweep", - "humanApprovalPacketSHA256": "95893cb17e10b15ae6b23d8b31b57b0e14b9af96f822d75edbc6b68971afb11d" + "reviewClass": "per-file-human-approved-qwen-native-image-registration", + "humanApprovalPacketSHA256": "3193ab9ed5834bddfafc5c6922bd0eaa60e27e5963ca52c740af7540c2847834", + "humanApprovalScope": "The maintainer explicitly approved the proposed 4/5 scores, known limits, exact retained Klein two-reference derivative output, its redacted technical/quality metadata, and permission to make and redistribute this derivative under Apache-2.0. Existing source images and their mixed license records remain unchanged; no other assets or held cases are newly approved.", + "provenanceTemplateId": "qwen_low_vram_text_rendering" }, { - "path": "template-gallery/reviews/qwen_inpaint_mask_draft.quality-review.json", - "sha256": "sha256:bytes:aacac275d7f3885f227d431f1a37be7dfcd720cee639e1a34851cdce54719154", + "path": "template-gallery/reviews/qwen_multi_reference_product.quality-review.json", + "sha256": "sha256:bytes:f541e013bf476dc05c7bf0815db9fd100925c3ed5e4303e275998940c6d38d31", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers", @@ -16758,12 +18472,12 @@ "reviewedBy": "SOURAV DAS", "reviewedAt": "2026-11-10", "reviewClass": "per-file-maintainer-accepted-native-gallery-registration", - "provenanceTemplateId": "qwen_inpaint_mask_draft", - "humanApprovalPacketSHA256": "73ddf9ea7fc27eccc6b93817809421a008ce0fd2fb3080ffbdc5831a09205304" + "provenanceTemplateId": "qwen_multi_reference_product", + "humanApprovalPacketSHA256": "95893cb17e10b15ae6b23d8b31b57b0e14b9af96f822d75edbc6b68971afb11d" }, { - "path": "template-gallery/reviews/qwen_inpaint_mask_draft.reviewed-provenance.json", - "sha256": "sha256:bytes:fd5214c8523c581b8535d0bd77afc4a8451445aeb449bb079ac150de9c3d5727", + "path": "template-gallery/reviews/qwen_multi_reference_product.reviewed-provenance.json", + "sha256": "sha256:bytes:e3855abb4ed1a82b068269f8a1ce817cb327d9f05abe65b7a22ff4fb87dbf597", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers", @@ -16780,19 +18494,19 @@ "reviewedBy": "SOURAV DAS", "reviewedAt": "2026-11-10", "reviewClass": "per-file-maintainer-accepted-native-gallery-registration", - "provenanceTemplateId": "qwen_inpaint_mask_draft", - "humanApprovalPacketSHA256": "73ddf9ea7fc27eccc6b93817809421a008ce0fd2fb3080ffbdc5831a09205304" + "provenanceTemplateId": "qwen_multi_reference_product", + "humanApprovalPacketSHA256": "95893cb17e10b15ae6b23d8b31b57b0e14b9af96f822d75edbc6b68971afb11d" }, { - "path": "template-gallery/reviews/qwen_inpaint_object_replace.quality-review.json", - "sha256": "sha256:bytes:cdbd7d549bfef1a9513cd8ed5feef6ba7798f380ffe45830cfa588de789c3cdf", + "path": "template-gallery/reviews/qwen_outpaint_aspect_template.quality-review.json", + "sha256": "sha256:bytes:6fa2bc63b9e95cd36614b65c3856ef017b6fd76ed35104ef727e053336b6dee9", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers", - "creationMethod": "Project-authored Gallery manifest, native provenance or accepted quality review", + "creationMethod": "MoDiff-authored Gallery manifest, reviewed provenance or quality review for the accepted morning batch", "sourceUrl": null, "sourceRevision": null, - "sourceLicense": "Apache-2.0 project-authored metadata", + "sourceLicense": "Apache-2.0 project-authored metadata; generated-media terms remain in their exact per-file record", "modelTerms": [], "aiGenerated": false, "humanLikenessConsent": "not-applicable", @@ -16801,20 +18515,20 @@ "assetLicense": "Apache-2.0", "reviewedBy": "SOURAV DAS", "reviewedAt": "2026-11-10", - "reviewClass": "per-file-maintainer-accepted-native-gallery-registration", - "provenanceTemplateId": "qwen_inpaint_object_replace", - "humanApprovalPacketSHA256": "95893cb17e10b15ae6b23d8b31b57b0e14b9af96f822d75edbc6b68971afb11d" + "reviewClass": "per-file-maintainer-approved-gallery-registration", + "provenanceTemplateId": "qwen_outpaint_aspect_template", + "humanApprovalPacketSHA256": "351d122936dc8df9c3fb6217005641dd2cc2ecddc39cd7cd7fadc2939def70b3" }, { - "path": "template-gallery/reviews/qwen_inpaint_object_replace.reviewed-provenance.json", - "sha256": "sha256:bytes:9110d6bf939d4c68541767c20ad62684978c590af344a226d76ee02c32b76fef", + "path": "template-gallery/reviews/qwen_outpaint_aspect_template.reviewed-provenance.json", + "sha256": "sha256:bytes:d0fec0ffe18f3927eef5eac8faa6dc3b7ff8f28b3a79e634bde1a30d886e7390", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers", - "creationMethod": "Project-authored Gallery manifest, native provenance or accepted quality review", + "creationMethod": "MoDiff-authored Gallery manifest, reviewed provenance or quality review for the accepted morning batch", "sourceUrl": null, "sourceRevision": null, - "sourceLicense": "Apache-2.0 project-authored metadata", + "sourceLicense": "Apache-2.0 project-authored metadata; generated-media terms remain in their exact per-file record", "modelTerms": [], "aiGenerated": false, "humanLikenessConsent": "not-applicable", @@ -16823,165 +18537,146 @@ "assetLicense": "Apache-2.0", "reviewedBy": "SOURAV DAS", "reviewedAt": "2026-11-10", - "reviewClass": "per-file-maintainer-accepted-native-gallery-registration", - "provenanceTemplateId": "qwen_inpaint_object_replace", - "humanApprovalPacketSHA256": "95893cb17e10b15ae6b23d8b31b57b0e14b9af96f822d75edbc6b68971afb11d" + "reviewClass": "per-file-maintainer-approved-gallery-registration", + "provenanceTemplateId": "qwen_outpaint_aspect_template", + "humanApprovalPacketSHA256": "351d122936dc8df9c3fb6217005641dd2cc2ecddc39cd7cd7fadc2939def70b3" }, { - "path": "template-gallery/reviews/qwen_layered_portrait.quality-review.json", - "sha256": "sha256:bytes:2ef67ce5c77e09b88d8a33d6759edbc3ccbfe910bfad17d638dc5ce99794ea7f", + "path": "template-gallery/reviews/qwen_outpaint_draft.quality-review.json", + "sha256": "sha256:bytes:edef85b30a3c7aeb5e0b9a911ad571a82cc3faa213616813a290a74f32fe2cd5", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers", - "creationMethod": "MoDiff-authored technical, review, input-binding or retained recipe metadata for three maintainer-accepted assets", + "creationMethod": "MoDiff-authored Gallery manifest, reviewed provenance or quality review for the accepted morning batch", "sourceUrl": null, "sourceRevision": null, - "sourceLicense": "Apache-2.0 project-authored metadata; generated-media model terms are retained separately", + "sourceLicense": "Apache-2.0 project-authored metadata; generated-media terms remain in their exact per-file record", "modelTerms": [], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [], "assetLicense": "Apache-2.0", - "reviewedBy": "maintainer (current user)", - "reviewedAt": "2026-11-12", - "reviewClass": "per-file-maintainer-accepted-native-three-registration", - "provenanceTemplateId": "qwen_layered_portrait", - "humanApprovalPacketSHA256": "69c6b3d9b0ea2fcca16ee538f6e75b414b7141658b74f10578758e61360f63fd" + "reviewedBy": "SOURAV DAS", + "reviewedAt": "2026-11-10", + "reviewClass": "per-file-maintainer-approved-gallery-registration", + "provenanceTemplateId": "qwen_outpaint_draft", + "humanApprovalPacketSHA256": "351d122936dc8df9c3fb6217005641dd2cc2ecddc39cd7cd7fadc2939def70b3" }, { - "path": "template-gallery/reviews/qwen_layered_portrait.reviewed-provenance.json", - "sha256": "sha256:bytes:f1f8f884f1a797e5918e01f9b47d1f93d39cd6a305a7d3ca46c9f9b349d18f01", + "path": "template-gallery/reviews/qwen_outpaint_draft.reviewed-provenance.json", + "sha256": "sha256:bytes:d81e1657ee09184d12a43ddf019c19298b0b4b6ba4f673bf764ac4627a3e1c1b", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers", - "creationMethod": "MoDiff-authored technical, review, input-binding or retained recipe metadata for three maintainer-accepted assets", + "creationMethod": "MoDiff-authored Gallery manifest, reviewed provenance or quality review for the accepted morning batch", "sourceUrl": null, "sourceRevision": null, - "sourceLicense": "Apache-2.0 project-authored metadata; generated-media model terms are retained separately", + "sourceLicense": "Apache-2.0 project-authored metadata; generated-media terms remain in their exact per-file record", "modelTerms": [], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [], "assetLicense": "Apache-2.0", - "reviewedBy": "maintainer (current user)", - "reviewedAt": "2026-11-12", - "reviewClass": "per-file-maintainer-accepted-native-three-registration", - "provenanceTemplateId": "qwen_layered_portrait", - "humanApprovalPacketSHA256": "69c6b3d9b0ea2fcca16ee538f6e75b414b7141658b74f10578758e61360f63fd" + "reviewedBy": "SOURAV DAS", + "reviewedAt": "2026-11-10", + "reviewClass": "per-file-maintainer-approved-gallery-registration", + "provenanceTemplateId": "qwen_outpaint_draft", + "humanApprovalPacketSHA256": "351d122936dc8df9c3fb6217005641dd2cc2ecddc39cd7cd7fadc2939def70b3" }, { - "path": "template-gallery/reviews/qwen_layered_sunset_and_peaks.original-provenance.json", - "sha256": "sha256:bytes:9a4c058f2ba7bd3dace465219c32bd818493431063688b00741a9a9c4fb01794", + "path": "template-gallery/reviews/qwen_packaging_dieline.quality-review.json", + "sha256": "sha256:bytes:dbf5e856ee01a0a2f71fcc96af3c759c08f491dc50c7310b3dfc97b37c7d860a", "publishDecision": "approved", "holdReason": null, - "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", - "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/Qwen/Qwen-Image-Layered/tree/8f0ca708dfff6ba1dd5f2d85d78f8c108a040bcf", - "sourceRevision": "Qwen/Qwen-Image-Layered@8f0ca708dfff6ba1dd5f2d85d78f8c108a040bcf", - "sourceLicense": "MoDiff-authored Gallery metadata", - "modelTerms": [ - "https://huggingface.co/Qwen/Qwen-Image-Layered/blob/8f0ca708dfff6ba1dd5f2d85d78f8c108a040bcf/README.md" - ], + "creatorOrRightsholder": "MoDiff project maintainers", + "creationMethod": "Project-authored Gallery manifest, native provenance or accepted quality review", + "sourceUrl": null, + "sourceRevision": null, + "sourceLicense": "Apache-2.0 project-authored metadata", + "modelTerms": [], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], - "requiredAttribution": [ - "Qwen/Qwen-Image-Layered@8f0ca708dfff6ba1dd5f2d85d78f8c108a040bcf https://huggingface.co/Qwen/Qwen-Image-Layered/tree/8f0ca708dfff6ba1dd5f2d85d78f8c108a040bcf" - ], + "requiredAttribution": [], "assetLicense": "Apache-2.0", - "reviewedBy": "MoDiff workspace maintainer", - "reviewedAt": "2026-11-25", - "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "b16dfc2b7c1c32272b8f79bc1bffbb60376e63f8cf1ab9d0bdf9aea07cccf5cd", - "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", - "provenanceTemplateId": "qwen_layered_sunset_and_peaks" + "reviewedBy": "SOURAV DAS", + "reviewedAt": "2026-11-10", + "reviewClass": "per-file-maintainer-accepted-native-gallery-registration", + "provenanceTemplateId": "qwen_packaging_dieline", + "humanApprovalPacketSHA256": "73ddf9ea7fc27eccc6b93817809421a008ce0fd2fb3080ffbdc5831a09205304" }, { - "path": "template-gallery/reviews/qwen_layered_sunset_and_peaks.original-review.json", - "sha256": "sha256:bytes:faf0adb0a9c40691caf3ef8f96765406b3b5058aa9618cca5431ae83529a1bcb", + "path": "template-gallery/reviews/qwen_packaging_dieline.reviewed-provenance.json", + "sha256": "sha256:bytes:0814dfd3c8a87d3701da63ddc4ab1768eccc971192114a79256e643171166262", "publishDecision": "approved", "holdReason": null, - "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", - "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/Qwen/Qwen-Image-Layered/tree/8f0ca708dfff6ba1dd5f2d85d78f8c108a040bcf", - "sourceRevision": "Qwen/Qwen-Image-Layered@8f0ca708dfff6ba1dd5f2d85d78f8c108a040bcf", - "sourceLicense": "MoDiff-authored Gallery metadata", - "modelTerms": [ - "https://huggingface.co/Qwen/Qwen-Image-Layered/blob/8f0ca708dfff6ba1dd5f2d85d78f8c108a040bcf/README.md" - ], + "creatorOrRightsholder": "MoDiff project maintainers", + "creationMethod": "Project-authored Gallery manifest, native provenance or accepted quality review", + "sourceUrl": null, + "sourceRevision": null, + "sourceLicense": "Apache-2.0 project-authored metadata", + "modelTerms": [], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], - "requiredAttribution": [ - "Qwen/Qwen-Image-Layered@8f0ca708dfff6ba1dd5f2d85d78f8c108a040bcf https://huggingface.co/Qwen/Qwen-Image-Layered/tree/8f0ca708dfff6ba1dd5f2d85d78f8c108a040bcf" - ], + "requiredAttribution": [], "assetLicense": "Apache-2.0", - "reviewedBy": "MoDiff workspace maintainer", - "reviewedAt": "2026-11-25", - "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "b16dfc2b7c1c32272b8f79bc1bffbb60376e63f8cf1ab9d0bdf9aea07cccf5cd", - "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", - "provenanceTemplateId": "qwen_layered_sunset_and_peaks" + "reviewedBy": "SOURAV DAS", + "reviewedAt": "2026-11-10", + "reviewClass": "per-file-maintainer-accepted-native-gallery-registration", + "humanApprovalPacketSHA256": "73ddf9ea7fc27eccc6b93817809421a008ce0fd2fb3080ffbdc5831a09205304", + "humanApprovalScope": "The maintainer explicitly approved the proposed 4/5 scores, known limits, exact retained Klein two-reference derivative output, its redacted technical/quality metadata, and permission to make and redistribute this derivative under Apache-2.0. Existing source images and their mixed license records remain unchanged; no other assets or held cases are newly approved.", + "provenanceTemplateId": "qwen_packaging_dieline" }, { - "path": "template-gallery/reviews/qwen_layered_sunset_and_peaks.quality-review.json", - "sha256": "sha256:bytes:326553aed7aab67e3eed777d7919e21fe02ff9ab837edd7f39bd7a2abece77f0", + "path": "template-gallery/reviews/qwen_poster_logo_text.quality-review.json", + "sha256": "sha256:bytes:0dda4202476ad47c22a1b0958115c2039436fdff54146a6ffe4293b4acecb4f8", "publishDecision": "approved", "holdReason": null, - "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", - "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/Qwen/Qwen-Image-Layered/tree/8f0ca708dfff6ba1dd5f2d85d78f8c108a040bcf", - "sourceRevision": "Qwen/Qwen-Image-Layered@8f0ca708dfff6ba1dd5f2d85d78f8c108a040bcf", - "sourceLicense": "MoDiff-authored Gallery metadata", - "modelTerms": [ - "https://huggingface.co/Qwen/Qwen-Image-Layered/blob/8f0ca708dfff6ba1dd5f2d85d78f8c108a040bcf/README.md" - ], + "creatorOrRightsholder": "MoDiff project maintainers", + "creationMethod": "MoDiff-authored technical provenance, Gallery manifest or quality review for the explicitly approved native Qwen museum and product images", + "sourceUrl": null, + "sourceRevision": null, + "sourceLicense": "Apache-2.0 project-authored metadata; generated-media terms remain in their exact per-file record", + "modelTerms": [], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], - "requiredAttribution": [ - "Qwen/Qwen-Image-Layered@8f0ca708dfff6ba1dd5f2d85d78f8c108a040bcf https://huggingface.co/Qwen/Qwen-Image-Layered/tree/8f0ca708dfff6ba1dd5f2d85d78f8c108a040bcf" - ], + "requiredAttribution": [], "assetLicense": "Apache-2.0", - "reviewedBy": "MoDiff workspace maintainer", - "reviewedAt": "2026-11-25", - "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "b16dfc2b7c1c32272b8f79bc1bffbb60376e63f8cf1ab9d0bdf9aea07cccf5cd", - "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", - "provenanceTemplateId": "qwen_layered_sunset_and_peaks" + "reviewedBy": "SOURAV DAS", + "reviewedAt": "2026-11-09", + "reviewClass": "per-file-human-approved-qwen-native-image-registration", + "provenanceTemplateId": "qwen_poster_logo_text", + "humanApprovalPacketSHA256": "fb90296fc1789e995652389997b3295a3b6d7424f449251539c63546c081e108" }, { - "path": "template-gallery/reviews/qwen_layered_sunset_and_peaks.retained-template-provenance.json", - "sha256": "sha256:bytes:d6aaa0a0d9b84d10864e8a783ac82ac167b487f71d185bacd99cc035f8e22105", + "path": "template-gallery/reviews/qwen_poster_logo_text.reviewed-provenance.json", + "sha256": "sha256:bytes:11bb7ad1c39ca2f942ed46683683368bd2ebb328dee3cca78edf21391ac08a34", "publishDecision": "approved", "holdReason": null, - "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", - "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/Qwen/Qwen-Image-Layered/tree/8f0ca708dfff6ba1dd5f2d85d78f8c108a040bcf", - "sourceRevision": "Qwen/Qwen-Image-Layered@8f0ca708dfff6ba1dd5f2d85d78f8c108a040bcf", - "sourceLicense": "MoDiff-authored Gallery metadata", - "modelTerms": [ - "https://huggingface.co/Qwen/Qwen-Image-Layered/blob/8f0ca708dfff6ba1dd5f2d85d78f8c108a040bcf/README.md" - ], + "creatorOrRightsholder": "MoDiff project maintainers", + "creationMethod": "MoDiff-authored technical provenance, Gallery manifest or quality review for the explicitly approved native Qwen museum and product images", + "sourceUrl": null, + "sourceRevision": null, + "sourceLicense": "Apache-2.0 project-authored metadata; generated-media terms remain in their exact per-file record", + "modelTerms": [], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], - "requiredAttribution": [ - "Qwen/Qwen-Image-Layered@8f0ca708dfff6ba1dd5f2d85d78f8c108a040bcf https://huggingface.co/Qwen/Qwen-Image-Layered/tree/8f0ca708dfff6ba1dd5f2d85d78f8c108a040bcf" - ], + "requiredAttribution": [], "assetLicense": "Apache-2.0", - "reviewedBy": "MoDiff workspace maintainer", - "reviewedAt": "2026-11-25", - "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "b16dfc2b7c1c32272b8f79bc1bffbb60376e63f8cf1ab9d0bdf9aea07cccf5cd", - "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", - "provenanceTemplateId": "qwen_layered_sunset_and_peaks" + "reviewedBy": "SOURAV DAS", + "reviewedAt": "2026-11-09", + "reviewClass": "per-file-human-approved-qwen-native-image-registration", + "provenanceTemplateId": "qwen_poster_logo_text", + "humanApprovalPacketSHA256": "fb90296fc1789e995652389997b3295a3b6d7424f449251539c63546c081e108" }, { - "path": "template-gallery/reviews/qwen_logo_texture.quality-review.json", - "sha256": "sha256:bytes:27383d10d65bf5bcf81efb5a197751c3ad29476fd23f72cd8a937dc432e6f555", + "path": "template-gallery/reviews/qwen_product_ad_composite.quality-review.json", + "sha256": "sha256:bytes:d1fbc94b163a8573d46a2dd47946935ae06ce51ab4f95cd84e64913bd22e377d", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers", @@ -16998,12 +18693,12 @@ "reviewedBy": "SOURAV DAS", "reviewedAt": "2026-11-10", "reviewClass": "per-file-maintainer-accepted-native-gallery-registration", - "provenanceTemplateId": "qwen_logo_texture", + "provenanceTemplateId": "qwen_product_ad_composite", "humanApprovalPacketSHA256": "95893cb17e10b15ae6b23d8b31b57b0e14b9af96f822d75edbc6b68971afb11d" }, { - "path": "template-gallery/reviews/qwen_logo_texture.reviewed-provenance.json", - "sha256": "sha256:bytes:d056004421a13aa28a5f5f67ef52e3647ab07573df5c8cf8d9846aeea8d9a698", + "path": "template-gallery/reviews/qwen_product_ad_composite.reviewed-provenance.json", + "sha256": "sha256:bytes:381e12e3f39be2ae1a7192b918eba815d2029351d68377acb959d31a70eb357b", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers", @@ -17020,16 +18715,16 @@ "reviewedBy": "SOURAV DAS", "reviewedAt": "2026-11-10", "reviewClass": "per-file-maintainer-accepted-native-gallery-registration", - "provenanceTemplateId": "qwen_logo_texture", + "provenanceTemplateId": "qwen_product_ad_composite", "humanApprovalPacketSHA256": "95893cb17e10b15ae6b23d8b31b57b0e14b9af96f822d75edbc6b68971afb11d" }, { - "path": "template-gallery/reviews/qwen_low_vram_poster_layout.quality-review.json", - "sha256": "sha256:bytes:c75a68e299dcf548661338cd1aa6f8c4d0bcc9dc3d3d7769f5717a8d09e4a8c3", + "path": "template-gallery/reviews/qwen_product_mockup.quality-review.json", + "sha256": "sha256:bytes:d864e05cd7069e72a254aca6f8519881013d84b954ddc8d67224e1b7bad6d73d", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers", - "creationMethod": "MoDiff-authored technical provenance, Gallery manifest or quality review for the explicitly approved native Qwen cinema image", + "creationMethod": "MoDiff-authored technical provenance, Gallery manifest or quality review for the explicitly approved native Qwen museum and product images", "sourceUrl": null, "sourceRevision": null, "sourceLicense": "Apache-2.0 project-authored metadata; generated-media terms remain in their exact per-file record", @@ -17040,18 +18735,18 @@ "requiredAttribution": [], "assetLicense": "Apache-2.0", "reviewedBy": "SOURAV DAS", - "reviewedAt": "2026-11-10", + "reviewedAt": "2026-11-09", "reviewClass": "per-file-human-approved-qwen-native-image-registration", - "provenanceTemplateId": "qwen_low_vram_poster_layout", - "humanApprovalPacketSHA256": "13cb57389a33fb689324c40827376b3ddfe0ade1dd033ffc8a0c51e749e44487" + "provenanceTemplateId": "qwen_product_mockup", + "humanApprovalPacketSHA256": "fb90296fc1789e995652389997b3295a3b6d7424f449251539c63546c081e108" }, { - "path": "template-gallery/reviews/qwen_low_vram_poster_layout.reviewed-provenance.json", - "sha256": "sha256:bytes:16aa46e5009c7b4c05ea3dc5325e63b039c3e2a826b11a2845882c589510f194", + "path": "template-gallery/reviews/qwen_product_mockup.reviewed-provenance.json", + "sha256": "sha256:bytes:dd0ef580bcfbf2beda1f7f571fc3b444a9c97d9f7dfd7e786000a3dc6a552888", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers", - "creationMethod": "MoDiff-authored technical provenance, Gallery manifest or quality review for the explicitly approved native Qwen cinema image", + "creationMethod": "MoDiff-authored technical provenance, Gallery manifest or quality review for the explicitly approved native Qwen museum and product images", "sourceUrl": null, "sourceRevision": null, "sourceLicense": "Apache-2.0 project-authored metadata; generated-media terms remain in their exact per-file record", @@ -17062,21 +18757,22 @@ "requiredAttribution": [], "assetLicense": "Apache-2.0", "reviewedBy": "SOURAV DAS", - "reviewedAt": "2026-11-10", + "reviewedAt": "2026-11-09", "reviewClass": "per-file-human-approved-qwen-native-image-registration", - "provenanceTemplateId": "qwen_low_vram_poster_layout", - "humanApprovalPacketSHA256": "13cb57389a33fb689324c40827376b3ddfe0ade1dd033ffc8a0c51e749e44487" + "humanApprovalPacketSHA256": "fb90296fc1789e995652389997b3295a3b6d7424f449251539c63546c081e108", + "humanApprovalScope": "The maintainer explicitly approved the proposed 4/5 scores, known limits, exact retained Klein two-reference derivative output, its redacted technical/quality metadata, and permission to make and redistribute this derivative under Apache-2.0. Existing source images and their mixed license records remain unchanged; no other assets or held cases are newly approved.", + "provenanceTemplateId": "qwen_product_mockup" }, { - "path": "template-gallery/reviews/qwen_low_vram_product_concept.quality-review.json", - "sha256": "sha256:bytes:c1bdc89bee06dad85965f564b4bb5c7657859808d333dfce4e741b344dba2ea2", + "path": "template-gallery/reviews/qwen_product_relight.quality-review.json", + "sha256": "sha256:bytes:b861d8ce095fd338d8d55d9b332d1010511af533986d66664186feebdc61bafc", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers", - "creationMethod": "MoDiff-authored technical provenance, Gallery manifest or quality review for the explicitly approved native Qwen stationery and product concept images", + "creationMethod": "Project-authored Gallery manifest, native provenance or accepted quality review", "sourceUrl": null, "sourceRevision": null, - "sourceLicense": "Apache-2.0 project-authored metadata; generated-media terms remain in their exact per-file record", + "sourceLicense": "Apache-2.0 project-authored metadata", "modelTerms": [], "aiGenerated": false, "humanLikenessConsent": "not-applicable", @@ -17085,20 +18781,20 @@ "assetLicense": "Apache-2.0", "reviewedBy": "SOURAV DAS", "reviewedAt": "2026-11-10", - "reviewClass": "per-file-human-approved-qwen-native-image-registration", - "provenanceTemplateId": "qwen_low_vram_product_concept", - "humanApprovalPacketSHA256": "3193ab9ed5834bddfafc5c6922bd0eaa60e27e5963ca52c740af7540c2847834" + "reviewClass": "per-file-maintainer-accepted-native-gallery-registration", + "provenanceTemplateId": "qwen_product_relight", + "humanApprovalPacketSHA256": "95893cb17e10b15ae6b23d8b31b57b0e14b9af96f822d75edbc6b68971afb11d" }, { - "path": "template-gallery/reviews/qwen_low_vram_product_concept.reviewed-provenance.json", - "sha256": "sha256:bytes:c9ff22165ab722da9056022e703f4ccdd45aa76ef6583170f0662d262a5e39a5", + "path": "template-gallery/reviews/qwen_product_relight.reviewed-provenance.json", + "sha256": "sha256:bytes:27502d691d21995e461135d22847cb0ae821b03f103eca40cab80c4ad8ce230d", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers", - "creationMethod": "MoDiff-authored technical provenance, Gallery manifest or quality review for the explicitly approved native Qwen stationery and product concept images", + "creationMethod": "Project-authored Gallery manifest, native provenance or accepted quality review", "sourceUrl": null, "sourceRevision": null, - "sourceLicense": "Apache-2.0 project-authored metadata; generated-media terms remain in their exact per-file record", + "sourceLicense": "Apache-2.0 project-authored metadata", "modelTerms": [], "aiGenerated": false, "humanLikenessConsent": "not-applicable", @@ -17107,18 +18803,17 @@ "assetLicense": "Apache-2.0", "reviewedBy": "SOURAV DAS", "reviewedAt": "2026-11-10", - "reviewClass": "per-file-human-approved-qwen-native-image-registration", - "humanApprovalPacketSHA256": "3193ab9ed5834bddfafc5c6922bd0eaa60e27e5963ca52c740af7540c2847834", - "humanApprovalScope": "The maintainer explicitly approved the proposed 4/5 scores, known limits, exact retained Klein two-reference derivative output, its redacted technical/quality metadata, and permission to make and redistribute this derivative under Apache-2.0. Existing source images and their mixed license records remain unchanged; no other assets or held cases are newly approved.", - "provenanceTemplateId": "qwen_low_vram_product_concept" + "reviewClass": "per-file-maintainer-accepted-native-gallery-registration", + "provenanceTemplateId": "qwen_product_relight", + "humanApprovalPacketSHA256": "95893cb17e10b15ae6b23d8b31b57b0e14b9af96f822d75edbc6b68971afb11d" }, { - "path": "template-gallery/reviews/qwen_low_vram_text_rendering.quality-review.json", - "sha256": "sha256:bytes:64d0c05cdb2830d4a533256b6ed78afcbb2b6c8398b92b27087f8056862458a2", + "path": "template-gallery/reviews/qwen_text_rendering.quality-review.json", + "sha256": "sha256:bytes:60a57aeded56870fe11bb3778c6d76e02332d07713b1b544e41ffcbd4a0b1bb6", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers", - "creationMethod": "MoDiff-authored technical provenance, Gallery manifest or quality review for the explicitly approved native Qwen stationery and product concept images", + "creationMethod": "MoDiff-authored technical provenance, Gallery manifest or quality review for the explicitly approved native Qwen exact-text poster", "sourceUrl": null, "sourceRevision": null, "sourceLicense": "Apache-2.0 project-authored metadata; generated-media terms remain in their exact per-file record", @@ -17129,18 +18824,18 @@ "requiredAttribution": [], "assetLicense": "Apache-2.0", "reviewedBy": "SOURAV DAS", - "reviewedAt": "2026-11-10", - "reviewClass": "per-file-human-approved-qwen-native-image-registration", - "provenanceTemplateId": "qwen_low_vram_text_rendering", - "humanApprovalPacketSHA256": "3193ab9ed5834bddfafc5c6922bd0eaa60e27e5963ca52c740af7540c2847834" + "reviewedAt": "2026-11-09", + "reviewClass": "per-file-human-approved-qwen-exact-text-registration", + "provenanceTemplateId": "qwen_text_rendering", + "humanApprovalPacketSHA256": "a000a897c1a4ae5980d2f50e5e88a2affb992e403dbd6df9d3ebbd5de5db4891" }, { - "path": "template-gallery/reviews/qwen_low_vram_text_rendering.reviewed-provenance.json", - "sha256": "sha256:bytes:d5e56c96dcc0d1a13aebd648ea2919c23cf26a55083b07c4cd3075fd5eaaa58d", + "path": "template-gallery/reviews/qwen_text_rendering.reviewed-provenance.json", + "sha256": "sha256:bytes:9611134a5092c7ecc267170fd99485f7c7802881ebfc8b2c9c5ea3d088ed1a9e", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers", - "creationMethod": "MoDiff-authored technical provenance, Gallery manifest or quality review for the explicitly approved native Qwen stationery and product concept images", + "creationMethod": "MoDiff-authored technical provenance, Gallery manifest or quality review for the explicitly approved native Qwen exact-text poster", "sourceUrl": null, "sourceRevision": null, "sourceLicense": "Apache-2.0 project-authored metadata; generated-media terms remain in their exact per-file record", @@ -17151,15 +18846,15 @@ "requiredAttribution": [], "assetLicense": "Apache-2.0", "reviewedBy": "SOURAV DAS", - "reviewedAt": "2026-11-10", - "reviewClass": "per-file-human-approved-qwen-native-image-registration", - "humanApprovalPacketSHA256": "3193ab9ed5834bddfafc5c6922bd0eaa60e27e5963ca52c740af7540c2847834", + "reviewedAt": "2026-11-09", + "reviewClass": "per-file-human-approved-qwen-exact-text-registration", + "humanApprovalPacketSHA256": "a000a897c1a4ae5980d2f50e5e88a2affb992e403dbd6df9d3ebbd5de5db4891", "humanApprovalScope": "The maintainer explicitly approved the proposed 4/5 scores, known limits, exact retained Klein two-reference derivative output, its redacted technical/quality metadata, and permission to make and redistribute this derivative under Apache-2.0. Existing source images and their mixed license records remain unchanged; no other assets or held cases are newly approved.", - "provenanceTemplateId": "qwen_low_vram_text_rendering" + "provenanceTemplateId": "qwen_text_rendering" }, { - "path": "template-gallery/reviews/qwen_multi_reference_product.quality-review.json", - "sha256": "sha256:bytes:f541e013bf476dc05c7bf0815db9fd100925c3ed5e4303e275998940c6d38d31", + "path": "template-gallery/reviews/qwen_tile_extract.quality-review.json", + "sha256": "sha256:bytes:09131391c3324338e90a40f57fd1cada2f08e321ec5904fcfc0d6c9920ee6aed", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers", @@ -17176,12 +18871,12 @@ "reviewedBy": "SOURAV DAS", "reviewedAt": "2026-11-10", "reviewClass": "per-file-maintainer-accepted-native-gallery-registration", - "provenanceTemplateId": "qwen_multi_reference_product", + "provenanceTemplateId": "qwen_tile_extract", "humanApprovalPacketSHA256": "95893cb17e10b15ae6b23d8b31b57b0e14b9af96f822d75edbc6b68971afb11d" }, { - "path": "template-gallery/reviews/qwen_multi_reference_product.reviewed-provenance.json", - "sha256": "sha256:bytes:e3855abb4ed1a82b068269f8a1ce817cb327d9f05abe65b7a22ff4fb87dbf597", + "path": "template-gallery/reviews/qwen_tile_extract.reviewed-provenance.json", + "sha256": "sha256:bytes:3b08851c75268f5dd35a5e5f0f4f1e47ecbe95ecfdccde93f1ba08e74f0fc241", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers", @@ -17198,16 +18893,16 @@ "reviewedBy": "SOURAV DAS", "reviewedAt": "2026-11-10", "reviewClass": "per-file-maintainer-accepted-native-gallery-registration", - "provenanceTemplateId": "qwen_multi_reference_product", + "provenanceTemplateId": "qwen_tile_extract", "humanApprovalPacketSHA256": "95893cb17e10b15ae6b23d8b31b57b0e14b9af96f822d75edbc6b68971afb11d" }, { - "path": "template-gallery/reviews/qwen_outpaint_aspect_template.quality-review.json", - "sha256": "sha256:bytes:6fa2bc63b9e95cd36614b65c3856ef017b6fd76ed35104ef727e053336b6dee9", + "path": "template-gallery/reviews/qwen_upscale_finish.quality-review.json", + "sha256": "sha256:bytes:6839f40c63e339e656f88b3933285a54e7a902833f1dc585030356d36a172502", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers", - "creationMethod": "MoDiff-authored Gallery manifest, reviewed provenance or quality review for the accepted morning batch", + "creationMethod": "MoDiff-authored technical provenance, Gallery manifest or quality review for the explicitly approved native Qwen Expert final and genuine before-upscale comparison images", "sourceUrl": null, "sourceRevision": null, "sourceLicense": "Apache-2.0 project-authored metadata; generated-media terms remain in their exact per-file record", @@ -17219,17 +18914,17 @@ "assetLicense": "Apache-2.0", "reviewedBy": "SOURAV DAS", "reviewedAt": "2026-11-10", - "reviewClass": "per-file-maintainer-approved-gallery-registration", - "provenanceTemplateId": "qwen_outpaint_aspect_template", - "humanApprovalPacketSHA256": "351d122936dc8df9c3fb6217005641dd2cc2ecddc39cd7cd7fadc2939def70b3" + "reviewClass": "per-file-human-approved-qwen-expert-upscale-registration", + "provenanceTemplateId": "qwen_upscale_finish", + "humanApprovalPacketSHA256": "f0167419381c0d2a1a1bcd43d2465a0ad728c294a2d91bbe1c6b090a915c2c98" }, { - "path": "template-gallery/reviews/qwen_outpaint_aspect_template.reviewed-provenance.json", - "sha256": "sha256:bytes:d0fec0ffe18f3927eef5eac8faa6dc3b7ff8f28b3a79e634bde1a30d886e7390", + "path": "template-gallery/reviews/qwen_upscale_finish.reviewed-provenance.json", + "sha256": "sha256:bytes:30c664301de44d2be2f3a0110ce4392de6433a1b5a63e60d31a9c7870ce3b04f", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers", - "creationMethod": "MoDiff-authored Gallery manifest, reviewed provenance or quality review for the accepted morning batch", + "creationMethod": "MoDiff-authored technical provenance, Gallery manifest or quality review for the explicitly approved native Qwen Expert final and genuine before-upscale comparison images", "sourceUrl": null, "sourceRevision": null, "sourceLicense": "Apache-2.0 project-authored metadata; generated-media terms remain in their exact per-file record", @@ -17241,20 +18936,20 @@ "assetLicense": "Apache-2.0", "reviewedBy": "SOURAV DAS", "reviewedAt": "2026-11-10", - "reviewClass": "per-file-maintainer-approved-gallery-registration", - "provenanceTemplateId": "qwen_outpaint_aspect_template", - "humanApprovalPacketSHA256": "351d122936dc8df9c3fb6217005641dd2cc2ecddc39cd7cd7fadc2939def70b3" + "reviewClass": "per-file-human-approved-qwen-expert-upscale-registration", + "provenanceTemplateId": "qwen_upscale_finish", + "humanApprovalPacketSHA256": "f0167419381c0d2a1a1bcd43d2465a0ad728c294a2d91bbe1c6b090a915c2c98" }, { - "path": "template-gallery/reviews/qwen_outpaint_draft.quality-review.json", - "sha256": "sha256:bytes:edef85b30a3c7aeb5e0b9a911ad571a82cc3faa213616813a290a74f32fe2cd5", + "path": "template-gallery/reviews/reference_fusion.quality-review.json", + "sha256": "sha256:bytes:0042893cc0ba3eb36438c8af0108de25c620cedc8febc83d14b46accb427f73a", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers", - "creationMethod": "MoDiff-authored Gallery manifest, reviewed provenance or quality review for the accepted morning batch", + "creationMethod": "Project-authored Gallery manifest, native provenance or accepted quality review", "sourceUrl": null, "sourceRevision": null, - "sourceLicense": "Apache-2.0 project-authored metadata; generated-media terms remain in their exact per-file record", + "sourceLicense": "Apache-2.0 project-authored metadata", "modelTerms": [], "aiGenerated": false, "humanLikenessConsent": "not-applicable", @@ -17263,20 +18958,20 @@ "assetLicense": "Apache-2.0", "reviewedBy": "SOURAV DAS", "reviewedAt": "2026-11-10", - "reviewClass": "per-file-maintainer-approved-gallery-registration", - "provenanceTemplateId": "qwen_outpaint_draft", - "humanApprovalPacketSHA256": "351d122936dc8df9c3fb6217005641dd2cc2ecddc39cd7cd7fadc2939def70b3" + "reviewClass": "per-file-maintainer-accepted-native-gallery-registration", + "provenanceTemplateId": "reference_fusion", + "humanApprovalPacketSHA256": "95893cb17e10b15ae6b23d8b31b57b0e14b9af96f822d75edbc6b68971afb11d" }, { - "path": "template-gallery/reviews/qwen_outpaint_draft.reviewed-provenance.json", - "sha256": "sha256:bytes:d81e1657ee09184d12a43ddf019c19298b0b4b6ba4f673bf764ac4627a3e1c1b", + "path": "template-gallery/reviews/reference_fusion.reviewed-provenance.json", + "sha256": "sha256:bytes:e8bb52b4d660c345368dd44a7d9d40edf62b00770a01dc444a5d5e9ec8d8bd87", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers", - "creationMethod": "MoDiff-authored Gallery manifest, reviewed provenance or quality review for the accepted morning batch", + "creationMethod": "Project-authored Gallery manifest, native provenance or accepted quality review", "sourceUrl": null, "sourceRevision": null, - "sourceLicense": "Apache-2.0 project-authored metadata; generated-media terms remain in their exact per-file record", + "sourceLicense": "Apache-2.0 project-authored metadata", "modelTerms": [], "aiGenerated": false, "humanLikenessConsent": "not-applicable", @@ -17285,412 +18980,510 @@ "assetLicense": "Apache-2.0", "reviewedBy": "SOURAV DAS", "reviewedAt": "2026-11-10", - "reviewClass": "per-file-maintainer-approved-gallery-registration", - "provenanceTemplateId": "qwen_outpaint_draft", - "humanApprovalPacketSHA256": "351d122936dc8df9c3fb6217005641dd2cc2ecddc39cd7cd7fadc2939def70b3" + "reviewClass": "per-file-maintainer-accepted-native-gallery-registration", + "provenanceTemplateId": "reference_fusion", + "humanApprovalPacketSHA256": "95893cb17e10b15ae6b23d8b31b57b0e14b9af96f822d75edbc6b68971afb11d" }, { - "path": "template-gallery/reviews/qwen_packaging_dieline.quality-review.json", - "sha256": "sha256:bytes:dbf5e856ee01a0a2f71fcc96af3c759c08f491dc50c7310b3dfc97b37c7d860a", + "path": "template-gallery/reviews/restoring_the_studio_backdrop.original-provenance.json", + "sha256": "sha256:bytes:a8d0febc08556ad204bef84d5c8d35bfab9bf69fe8d28b21f10ad315f962b897", "publishDecision": "approved", "holdReason": null, - "creatorOrRightsholder": "MoDiff project maintainers", - "creationMethod": "Project-authored Gallery manifest, native provenance or accepted quality review", - "sourceUrl": null, - "sourceRevision": null, - "sourceLicense": "Apache-2.0 project-authored metadata", - "modelTerms": [], + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14", + "sourceRevision": "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": ["CreativeML Open RAIL-M at the pinned Stable Diffusion v1.5 revision."], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14 https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", + "provenanceTemplateId": "restoring_the_studio_backdrop" + }, + { + "path": "template-gallery/reviews/restoring_the_studio_backdrop.original-review.json", + "sha256": "sha256:bytes:633f93991afc1d361ac19a79c101f868f5954814f09dc349bcb61f967b821cf6", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14", + "sourceRevision": "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": ["CreativeML Open RAIL-M at the pinned Stable Diffusion v1.5 revision."], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], - "requiredAttribution": [], + "requiredAttribution": [ + "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14 https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14" + ], "assetLicense": "Apache-2.0", - "reviewedBy": "SOURAV DAS", - "reviewedAt": "2026-11-10", - "reviewClass": "per-file-maintainer-accepted-native-gallery-registration", - "provenanceTemplateId": "qwen_packaging_dieline", - "humanApprovalPacketSHA256": "73ddf9ea7fc27eccc6b93817809421a008ce0fd2fb3080ffbdc5831a09205304" + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", + "provenanceTemplateId": "restoring_the_studio_backdrop" }, { - "path": "template-gallery/reviews/qwen_packaging_dieline.reviewed-provenance.json", - "sha256": "sha256:bytes:0814dfd3c8a87d3701da63ddc4ab1768eccc971192114a79256e643171166262", + "path": "template-gallery/reviews/restoring_the_studio_backdrop.quality-review.json", + "sha256": "sha256:bytes:1e0613d7b8b08333cca474aea32b92bd3d6ac680a776e639b93c554a3011b311", "publishDecision": "approved", "holdReason": null, - "creatorOrRightsholder": "MoDiff project maintainers", - "creationMethod": "Project-authored Gallery manifest, native provenance or accepted quality review", - "sourceUrl": null, - "sourceRevision": null, - "sourceLicense": "Apache-2.0 project-authored metadata", - "modelTerms": [], + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14", + "sourceRevision": "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": ["CreativeML Open RAIL-M at the pinned Stable Diffusion v1.5 revision."], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], - "requiredAttribution": [], + "requiredAttribution": [ + "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14 https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14" + ], "assetLicense": "Apache-2.0", - "reviewedBy": "SOURAV DAS", - "reviewedAt": "2026-11-10", - "reviewClass": "per-file-maintainer-accepted-native-gallery-registration", - "humanApprovalPacketSHA256": "73ddf9ea7fc27eccc6b93817809421a008ce0fd2fb3080ffbdc5831a09205304", - "humanApprovalScope": "The maintainer explicitly approved the proposed 4/5 scores, known limits, exact retained Klein two-reference derivative output, its redacted technical/quality metadata, and permission to make and redistribute this derivative under Apache-2.0. Existing source images and their mixed license records remain unchanged; no other assets or held cases are newly approved.", - "provenanceTemplateId": "qwen_packaging_dieline" + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", + "provenanceTemplateId": "restoring_the_studio_backdrop" }, { - "path": "template-gallery/reviews/qwen_poster_logo_text.quality-review.json", - "sha256": "sha256:bytes:0dda4202476ad47c22a1b0958115c2039436fdff54146a6ffe4293b4acecb4f8", + "path": "template-gallery/reviews/restoring_the_studio_backdrop.retained-template-provenance.json", + "sha256": "sha256:bytes:6a6538a8278e1f94de68eb9b2928131809e5b3163a7157ff7db17d053635fa46", "publishDecision": "approved", "holdReason": null, - "creatorOrRightsholder": "MoDiff project maintainers", - "creationMethod": "MoDiff-authored technical provenance, Gallery manifest or quality review for the explicitly approved native Qwen museum and product images", - "sourceUrl": null, - "sourceRevision": null, - "sourceLicense": "Apache-2.0 project-authored metadata; generated-media terms remain in their exact per-file record", - "modelTerms": [], + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14", + "sourceRevision": "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": ["CreativeML Open RAIL-M at the pinned Stable Diffusion v1.5 revision."], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], - "requiredAttribution": [], + "requiredAttribution": [ + "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14 https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14" + ], "assetLicense": "Apache-2.0", - "reviewedBy": "SOURAV DAS", - "reviewedAt": "2026-11-09", - "reviewClass": "per-file-human-approved-qwen-native-image-registration", - "provenanceTemplateId": "qwen_poster_logo_text", - "humanApprovalPacketSHA256": "fb90296fc1789e995652389997b3295a3b6d7424f449251539c63546c081e108" + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", + "provenanceTemplateId": "restoring_the_studio_backdrop" }, { - "path": "template-gallery/reviews/qwen_poster_logo_text.reviewed-provenance.json", - "sha256": "sha256:bytes:11bb7ad1c39ca2f942ed46683683368bd2ebb328dee3cca78edf21391ac08a34", + "path": "template-gallery/reviews/salt_marsh_from_above.original-provenance.json", + "sha256": "sha256:bytes:a126541afded7807e2f7c48f7695571cd00edb4c237e257829dea8025548fdc4", "publishDecision": "approved", "holdReason": null, - "creatorOrRightsholder": "MoDiff project maintainers", - "creationMethod": "MoDiff-authored technical provenance, Gallery manifest or quality review for the explicitly approved native Qwen museum and product images", - "sourceUrl": null, - "sourceRevision": null, - "sourceLicense": "Apache-2.0 project-authored metadata; generated-media terms remain in their exact per-file record", - "modelTerms": [], + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/fal/AuraFlow-v0.3/tree/2cd8588f04c886002be4571697d84654a50e3af3", + "sourceRevision": "fal/AuraFlow-v0.3@2cd8588f04c886002be4571697d84654a50e3af3", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "apache-2.0. https://huggingface.co/fal/AuraFlow-v0.3/tree/2cd8588f04c886002be4571697d84654a50e3af3" + ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], - "requiredAttribution": [], + "requiredAttribution": [ + "fal/AuraFlow-v0.3@2cd8588f04c886002be4571697d84654a50e3af3 https://huggingface.co/fal/AuraFlow-v0.3/tree/2cd8588f04c886002be4571697d84654a50e3af3" + ], "assetLicense": "Apache-2.0", - "reviewedBy": "SOURAV DAS", - "reviewedAt": "2026-11-09", - "reviewClass": "per-file-human-approved-qwen-native-image-registration", - "provenanceTemplateId": "qwen_poster_logo_text", - "humanApprovalPacketSHA256": "fb90296fc1789e995652389997b3295a3b6d7424f449251539c63546c081e108" + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", + "provenanceTemplateId": "salt_marsh_from_above" }, { - "path": "template-gallery/reviews/qwen_product_ad_composite.quality-review.json", - "sha256": "sha256:bytes:d1fbc94b163a8573d46a2dd47946935ae06ce51ab4f95cd84e64913bd22e377d", + "path": "template-gallery/reviews/salt_marsh_from_above.original-review.json", + "sha256": "sha256:bytes:890b1c2f2a76d781d9c1062a1e4ec1e637a5d7de161e8ec21fb4860bfba68365", "publishDecision": "approved", "holdReason": null, - "creatorOrRightsholder": "MoDiff project maintainers", - "creationMethod": "Project-authored Gallery manifest, native provenance or accepted quality review", - "sourceUrl": null, - "sourceRevision": null, - "sourceLicense": "Apache-2.0 project-authored metadata", - "modelTerms": [], + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/fal/AuraFlow-v0.3/tree/2cd8588f04c886002be4571697d84654a50e3af3", + "sourceRevision": "fal/AuraFlow-v0.3@2cd8588f04c886002be4571697d84654a50e3af3", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "apache-2.0. https://huggingface.co/fal/AuraFlow-v0.3/tree/2cd8588f04c886002be4571697d84654a50e3af3" + ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], - "requiredAttribution": [], + "requiredAttribution": [ + "fal/AuraFlow-v0.3@2cd8588f04c886002be4571697d84654a50e3af3 https://huggingface.co/fal/AuraFlow-v0.3/tree/2cd8588f04c886002be4571697d84654a50e3af3" + ], "assetLicense": "Apache-2.0", - "reviewedBy": "SOURAV DAS", - "reviewedAt": "2026-11-10", - "reviewClass": "per-file-maintainer-accepted-native-gallery-registration", - "provenanceTemplateId": "qwen_product_ad_composite", - "humanApprovalPacketSHA256": "95893cb17e10b15ae6b23d8b31b57b0e14b9af96f822d75edbc6b68971afb11d" + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", + "provenanceTemplateId": "salt_marsh_from_above" }, { - "path": "template-gallery/reviews/qwen_product_ad_composite.reviewed-provenance.json", - "sha256": "sha256:bytes:381e12e3f39be2ae1a7192b918eba815d2029351d68377acb959d31a70eb357b", + "path": "template-gallery/reviews/salt_marsh_from_above.quality-review.json", + "sha256": "sha256:bytes:deb996a0c76f064ba87fcbde7750b4297dedd4f470a70246be5ce550f88b52d3", "publishDecision": "approved", "holdReason": null, - "creatorOrRightsholder": "MoDiff project maintainers", - "creationMethod": "Project-authored Gallery manifest, native provenance or accepted quality review", - "sourceUrl": null, - "sourceRevision": null, - "sourceLicense": "Apache-2.0 project-authored metadata", - "modelTerms": [], + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/fal/AuraFlow-v0.3/tree/2cd8588f04c886002be4571697d84654a50e3af3", + "sourceRevision": "fal/AuraFlow-v0.3@2cd8588f04c886002be4571697d84654a50e3af3", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "apache-2.0. https://huggingface.co/fal/AuraFlow-v0.3/tree/2cd8588f04c886002be4571697d84654a50e3af3" + ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], - "requiredAttribution": [], + "requiredAttribution": [ + "fal/AuraFlow-v0.3@2cd8588f04c886002be4571697d84654a50e3af3 https://huggingface.co/fal/AuraFlow-v0.3/tree/2cd8588f04c886002be4571697d84654a50e3af3" + ], "assetLicense": "Apache-2.0", - "reviewedBy": "SOURAV DAS", - "reviewedAt": "2026-11-10", - "reviewClass": "per-file-maintainer-accepted-native-gallery-registration", - "provenanceTemplateId": "qwen_product_ad_composite", - "humanApprovalPacketSHA256": "95893cb17e10b15ae6b23d8b31b57b0e14b9af96f822d75edbc6b68971afb11d" + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", + "provenanceTemplateId": "salt_marsh_from_above" }, { - "path": "template-gallery/reviews/qwen_product_mockup.quality-review.json", - "sha256": "sha256:bytes:d864e05cd7069e72a254aca6f8519881013d84b954ddc8d67224e1b7bad6d73d", + "path": "template-gallery/reviews/salt_marsh_from_above.retained-template-provenance.json", + "sha256": "sha256:bytes:9a904012bac7d429111212a1e17e1b5b08a754a6354230233a6c81b8f1a2cfe2", "publishDecision": "approved", "holdReason": null, - "creatorOrRightsholder": "MoDiff project maintainers", - "creationMethod": "MoDiff-authored technical provenance, Gallery manifest or quality review for the explicitly approved native Qwen museum and product images", - "sourceUrl": null, - "sourceRevision": null, - "sourceLicense": "Apache-2.0 project-authored metadata; generated-media terms remain in their exact per-file record", - "modelTerms": [], + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/fal/AuraFlow-v0.3/tree/2cd8588f04c886002be4571697d84654a50e3af3", + "sourceRevision": "fal/AuraFlow-v0.3@2cd8588f04c886002be4571697d84654a50e3af3", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "apache-2.0. https://huggingface.co/fal/AuraFlow-v0.3/tree/2cd8588f04c886002be4571697d84654a50e3af3" + ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], - "requiredAttribution": [], + "requiredAttribution": [ + "fal/AuraFlow-v0.3@2cd8588f04c886002be4571697d84654a50e3af3 https://huggingface.co/fal/AuraFlow-v0.3/tree/2cd8588f04c886002be4571697d84654a50e3af3" + ], "assetLicense": "Apache-2.0", - "reviewedBy": "SOURAV DAS", - "reviewedAt": "2026-11-09", - "reviewClass": "per-file-human-approved-qwen-native-image-registration", - "provenanceTemplateId": "qwen_product_mockup", - "humanApprovalPacketSHA256": "fb90296fc1789e995652389997b3295a3b6d7424f449251539c63546c081e108" + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", + "provenanceTemplateId": "salt_marsh_from_above" }, { - "path": "template-gallery/reviews/qwen_product_mockup.reviewed-provenance.json", - "sha256": "sha256:bytes:dd0ef580bcfbf2beda1f7f571fc3b444a9c97d9f7dfd7e786000a3dc6a552888", + "path": "template-gallery/reviews/sana_sprint_monochrome_tiger.quality-review.json", + "sha256": "sha256:bytes:daad196fff80a6e8d2543deeb911b5cd94a027a746e8d7cc0a011dc687f8c50e", "publishDecision": "approved", "holdReason": null, - "creatorOrRightsholder": "MoDiff project maintainers", - "creationMethod": "MoDiff-authored technical provenance, Gallery manifest or quality review for the explicitly approved native Qwen museum and product images", + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "humanLikenessConsent": "not-applicable", + "marks": [], + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-20", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "40060ba701188a6d287df07e0852c6497d109885495e6fc85a19e8371ef73906", + "publicationBasis": "Maintainer approved both exact Sana Sprint images and redistribution of the redacted review and recipe records.", + "creationMethod": "Project-authored redacted retained Gallery review, provenance or registration metadata", "sourceUrl": null, "sourceRevision": null, - "sourceLicense": "Apache-2.0 project-authored metadata; generated-media terms remain in their exact per-file record", + "sourceLicense": "MoDiff-authored Gallery metadata", "modelTerms": [], "aiGenerated": false, - "humanLikenessConsent": "not-applicable", - "marks": [], "requiredAttribution": [], "assetLicense": "Apache-2.0", - "reviewedBy": "SOURAV DAS", - "reviewedAt": "2026-11-09", - "reviewClass": "per-file-human-approved-qwen-native-image-registration", - "humanApprovalPacketSHA256": "fb90296fc1789e995652389997b3295a3b6d7424f449251539c63546c081e108", - "humanApprovalScope": "The maintainer explicitly approved the proposed 4/5 scores, known limits, exact retained Klein two-reference derivative output, its redacted technical/quality metadata, and permission to make and redistribute this derivative under Apache-2.0. Existing source images and their mixed license records remain unchanged; no other assets or held cases are newly approved.", - "provenanceTemplateId": "qwen_product_mockup" + "provenanceTemplateId": "sana_sprint_monochrome_tiger" }, { - "path": "template-gallery/reviews/qwen_product_relight.quality-review.json", - "sha256": "sha256:bytes:b861d8ce095fd338d8d55d9b332d1010511af533986d66664186feebdc61bafc", + "path": "template-gallery/reviews/sana_sprint_monochrome_tiger.retained-template-provenance.json", + "sha256": "sha256:bytes:9da7a90fdc337893b768009a2d6c619c730606e2544c335f4c4d02d14137d1a9", "publishDecision": "approved", "holdReason": null, - "creatorOrRightsholder": "MoDiff project maintainers", - "creationMethod": "Project-authored Gallery manifest, native provenance or accepted quality review", + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "humanLikenessConsent": "not-applicable", + "marks": [], + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-20", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "40060ba701188a6d287df07e0852c6497d109885495e6fc85a19e8371ef73906", + "publicationBasis": "Maintainer approved both exact Sana Sprint images and redistribution of the redacted review and recipe records.", + "creationMethod": "Project-authored redacted retained Gallery review, provenance or registration metadata", "sourceUrl": null, "sourceRevision": null, - "sourceLicense": "Apache-2.0 project-authored metadata", + "sourceLicense": "MoDiff-authored Gallery metadata", "modelTerms": [], "aiGenerated": false, - "humanLikenessConsent": "not-applicable", - "marks": [], "requiredAttribution": [], "assetLicense": "Apache-2.0", - "reviewedBy": "SOURAV DAS", - "reviewedAt": "2026-11-10", - "reviewClass": "per-file-maintainer-accepted-native-gallery-registration", - "provenanceTemplateId": "qwen_product_relight", - "humanApprovalPacketSHA256": "95893cb17e10b15ae6b23d8b31b57b0e14b9af96f822d75edbc6b68971afb11d" + "provenanceTemplateId": "sana_sprint_monochrome_tiger" }, { - "path": "template-gallery/reviews/qwen_product_relight.reviewed-provenance.json", - "sha256": "sha256:bytes:27502d691d21995e461135d22847cb0ae821b03f103eca40cab80c4ad8ce230d", + "path": "template-gallery/reviews/sana_tidal_pool_on_black_basalt.original-provenance.json", + "sha256": "sha256:bytes:464b0cb9e776e21bd3b8dfbefa83c8b984bd76684dee47aec59943ff0e6b335a", "publishDecision": "approved", "holdReason": null, - "creatorOrRightsholder": "MoDiff project maintainers", - "creationMethod": "Project-authored Gallery manifest, native provenance or accepted quality review", - "sourceUrl": null, - "sourceRevision": null, - "sourceLicense": "Apache-2.0 project-authored metadata", - "modelTerms": [], + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/Efficient-Large-Model/Sana_600M_1024px_diffusers/tree/28f3af7689de15f3883d5863059a2fca0aa9b829", + "sourceRevision": "Efficient-Large-Model/Sana_600M_1024px_diffusers@28f3af7689de15f3883d5863059a2fca0aa9b829", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "https://huggingface.co/Efficient-Large-Model/Sana_600M_1024px_diffusers/tree/28f3af7689de15f3883d5863059a2fca0aa9b829" + ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], - "requiredAttribution": [], + "requiredAttribution": [ + "Efficient-Large-Model/Sana_600M_1024px_diffusers@28f3af7689de15f3883d5863059a2fca0aa9b829 https://huggingface.co/Efficient-Large-Model/Sana_600M_1024px_diffusers/tree/28f3af7689de15f3883d5863059a2fca0aa9b829" + ], "assetLicense": "Apache-2.0", - "reviewedBy": "SOURAV DAS", - "reviewedAt": "2026-11-10", - "reviewClass": "per-file-maintainer-accepted-native-gallery-registration", - "provenanceTemplateId": "qwen_product_relight", - "humanApprovalPacketSHA256": "95893cb17e10b15ae6b23d8b31b57b0e14b9af96f822d75edbc6b68971afb11d" + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "4fc7c52588176cb1f6ba6d699d08741b2986ea71ea87bac650d261716a10b24c", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "sana_tidal_pool_on_black_basalt" }, { - "path": "template-gallery/reviews/qwen_text_rendering.quality-review.json", - "sha256": "sha256:bytes:60a57aeded56870fe11bb3778c6d76e02332d07713b1b544e41ffcbd4a0b1bb6", + "path": "template-gallery/reviews/sana_tidal_pool_on_black_basalt.original-review.json", + "sha256": "sha256:bytes:822c6a8b3d52524742bfe5987264df6c10f357ae3c975d695a89cf0d5b9e762a", "publishDecision": "approved", "holdReason": null, - "creatorOrRightsholder": "MoDiff project maintainers", - "creationMethod": "MoDiff-authored technical provenance, Gallery manifest or quality review for the explicitly approved native Qwen exact-text poster", - "sourceUrl": null, - "sourceRevision": null, - "sourceLicense": "Apache-2.0 project-authored metadata; generated-media terms remain in their exact per-file record", - "modelTerms": [], + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/Efficient-Large-Model/Sana_600M_1024px_diffusers/tree/28f3af7689de15f3883d5863059a2fca0aa9b829", + "sourceRevision": "Efficient-Large-Model/Sana_600M_1024px_diffusers@28f3af7689de15f3883d5863059a2fca0aa9b829", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "https://huggingface.co/Efficient-Large-Model/Sana_600M_1024px_diffusers/tree/28f3af7689de15f3883d5863059a2fca0aa9b829" + ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], - "requiredAttribution": [], + "requiredAttribution": [ + "Efficient-Large-Model/Sana_600M_1024px_diffusers@28f3af7689de15f3883d5863059a2fca0aa9b829 https://huggingface.co/Efficient-Large-Model/Sana_600M_1024px_diffusers/tree/28f3af7689de15f3883d5863059a2fca0aa9b829" + ], "assetLicense": "Apache-2.0", - "reviewedBy": "SOURAV DAS", - "reviewedAt": "2026-11-09", - "reviewClass": "per-file-human-approved-qwen-exact-text-registration", - "provenanceTemplateId": "qwen_text_rendering", - "humanApprovalPacketSHA256": "a000a897c1a4ae5980d2f50e5e88a2affb992e403dbd6df9d3ebbd5de5db4891" + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "4fc7c52588176cb1f6ba6d699d08741b2986ea71ea87bac650d261716a10b24c", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "sana_tidal_pool_on_black_basalt" }, { - "path": "template-gallery/reviews/qwen_text_rendering.reviewed-provenance.json", - "sha256": "sha256:bytes:9611134a5092c7ecc267170fd99485f7c7802881ebfc8b2c9c5ea3d088ed1a9e", + "path": "template-gallery/reviews/sana_tidal_pool_on_black_basalt.quality-review.json", + "sha256": "sha256:bytes:1dcfd72e9a8ac1f33c8ce5935e64598e279ddca468c1060e266376a8b7d89552", "publishDecision": "approved", "holdReason": null, - "creatorOrRightsholder": "MoDiff project maintainers", - "creationMethod": "MoDiff-authored technical provenance, Gallery manifest or quality review for the explicitly approved native Qwen exact-text poster", - "sourceUrl": null, - "sourceRevision": null, - "sourceLicense": "Apache-2.0 project-authored metadata; generated-media terms remain in their exact per-file record", - "modelTerms": [], + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/Efficient-Large-Model/Sana_600M_1024px_diffusers/tree/28f3af7689de15f3883d5863059a2fca0aa9b829", + "sourceRevision": "Efficient-Large-Model/Sana_600M_1024px_diffusers@28f3af7689de15f3883d5863059a2fca0aa9b829", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "https://huggingface.co/Efficient-Large-Model/Sana_600M_1024px_diffusers/tree/28f3af7689de15f3883d5863059a2fca0aa9b829" + ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], - "requiredAttribution": [], + "requiredAttribution": [ + "Efficient-Large-Model/Sana_600M_1024px_diffusers@28f3af7689de15f3883d5863059a2fca0aa9b829 https://huggingface.co/Efficient-Large-Model/Sana_600M_1024px_diffusers/tree/28f3af7689de15f3883d5863059a2fca0aa9b829" + ], "assetLicense": "Apache-2.0", - "reviewedBy": "SOURAV DAS", - "reviewedAt": "2026-11-09", - "reviewClass": "per-file-human-approved-qwen-exact-text-registration", - "humanApprovalPacketSHA256": "a000a897c1a4ae5980d2f50e5e88a2affb992e403dbd6df9d3ebbd5de5db4891", - "humanApprovalScope": "The maintainer explicitly approved the proposed 4/5 scores, known limits, exact retained Klein two-reference derivative output, its redacted technical/quality metadata, and permission to make and redistribute this derivative under Apache-2.0. Existing source images and their mixed license records remain unchanged; no other assets or held cases are newly approved.", - "provenanceTemplateId": "qwen_text_rendering" + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "4fc7c52588176cb1f6ba6d699d08741b2986ea71ea87bac650d261716a10b24c", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "sana_tidal_pool_on_black_basalt" }, { - "path": "template-gallery/reviews/qwen_tile_extract.quality-review.json", - "sha256": "sha256:bytes:09131391c3324338e90a40f57fd1cada2f08e321ec5904fcfc0d6c9920ee6aed", + "path": "template-gallery/reviews/sana_tidal_pool_on_black_basalt.retained-template-provenance.json", + "sha256": "sha256:bytes:66af6aa83b431b3f41da146254ebc0cc75190e50fe626ce635fc20a12f2c7502", "publishDecision": "approved", "holdReason": null, - "creatorOrRightsholder": "MoDiff project maintainers", - "creationMethod": "Project-authored Gallery manifest, native provenance or accepted quality review", - "sourceUrl": null, - "sourceRevision": null, - "sourceLicense": "Apache-2.0 project-authored metadata", - "modelTerms": [], + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/Efficient-Large-Model/Sana_600M_1024px_diffusers/tree/28f3af7689de15f3883d5863059a2fca0aa9b829", + "sourceRevision": "Efficient-Large-Model/Sana_600M_1024px_diffusers@28f3af7689de15f3883d5863059a2fca0aa9b829", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "https://huggingface.co/Efficient-Large-Model/Sana_600M_1024px_diffusers/tree/28f3af7689de15f3883d5863059a2fca0aa9b829" + ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], - "requiredAttribution": [], + "requiredAttribution": [ + "Efficient-Large-Model/Sana_600M_1024px_diffusers@28f3af7689de15f3883d5863059a2fca0aa9b829 https://huggingface.co/Efficient-Large-Model/Sana_600M_1024px_diffusers/tree/28f3af7689de15f3883d5863059a2fca0aa9b829" + ], "assetLicense": "Apache-2.0", - "reviewedBy": "SOURAV DAS", - "reviewedAt": "2026-11-10", - "reviewClass": "per-file-maintainer-accepted-native-gallery-registration", - "provenanceTemplateId": "qwen_tile_extract", - "humanApprovalPacketSHA256": "95893cb17e10b15ae6b23d8b31b57b0e14b9af96f822d75edbc6b68971afb11d" + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "4fc7c52588176cb1f6ba6d699d08741b2986ea71ea87bac650d261716a10b24c", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "sana_tidal_pool_on_black_basalt" }, { - "path": "template-gallery/reviews/qwen_tile_extract.reviewed-provenance.json", - "sha256": "sha256:bytes:3b08851c75268f5dd35a5e5f0f4f1e47ecbe95ecfdccde93f1ba08e74f0fc241", + "path": "template-gallery/reviews/sd15_canny_guided_green_glass.original-provenance.json", + "sha256": "sha256:bytes:4819d64b35e84d822483b4edf58c0d2a82ca612989a5f283763eff90e1c3dcc4", "publishDecision": "approved", "holdReason": null, - "creatorOrRightsholder": "MoDiff project maintainers", - "creationMethod": "Project-authored Gallery manifest, native provenance or accepted quality review", - "sourceUrl": null, - "sourceRevision": null, - "sourceLicense": "Apache-2.0 project-authored metadata", - "modelTerms": [], + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14", + "sourceRevision": "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "Publisher model terms at https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14" + ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], - "requiredAttribution": [], + "requiredAttribution": [ + "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14 https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14" + ], "assetLicense": "Apache-2.0", - "reviewedBy": "SOURAV DAS", - "reviewedAt": "2026-11-10", - "reviewClass": "per-file-maintainer-accepted-native-gallery-registration", - "provenanceTemplateId": "qwen_tile_extract", - "humanApprovalPacketSHA256": "95893cb17e10b15ae6b23d8b31b57b0e14b9af96f822d75edbc6b68971afb11d" + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "3968c7cbe37a94789a9f839d8e83a9e0f102629b797d5f7baacf0304a8d18153", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "sd15_canny_guided_green_glass" }, { - "path": "template-gallery/reviews/qwen_upscale_finish.quality-review.json", - "sha256": "sha256:bytes:6839f40c63e339e656f88b3933285a54e7a902833f1dc585030356d36a172502", + "path": "template-gallery/reviews/sd15_canny_guided_green_glass.original-review.json", + "sha256": "sha256:bytes:702ca8e77651aeb71cddfb6daa67ca584309cc1639d3ad81cbe783e65c14ac14", "publishDecision": "approved", "holdReason": null, - "creatorOrRightsholder": "MoDiff project maintainers", - "creationMethod": "MoDiff-authored technical provenance, Gallery manifest or quality review for the explicitly approved native Qwen Expert final and genuine before-upscale comparison images", - "sourceUrl": null, - "sourceRevision": null, - "sourceLicense": "Apache-2.0 project-authored metadata; generated-media terms remain in their exact per-file record", - "modelTerms": [], + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14", + "sourceRevision": "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "Publisher model terms at https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14" + ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], - "requiredAttribution": [], + "requiredAttribution": [ + "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14 https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14" + ], "assetLicense": "Apache-2.0", - "reviewedBy": "SOURAV DAS", - "reviewedAt": "2026-11-10", - "reviewClass": "per-file-human-approved-qwen-expert-upscale-registration", - "provenanceTemplateId": "qwen_upscale_finish", - "humanApprovalPacketSHA256": "f0167419381c0d2a1a1bcd43d2465a0ad728c294a2d91bbe1c6b090a915c2c98" + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "3968c7cbe37a94789a9f839d8e83a9e0f102629b797d5f7baacf0304a8d18153", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "sd15_canny_guided_green_glass" }, { - "path": "template-gallery/reviews/qwen_upscale_finish.reviewed-provenance.json", - "sha256": "sha256:bytes:30c664301de44d2be2f3a0110ce4392de6433a1b5a63e60d31a9c7870ce3b04f", + "path": "template-gallery/reviews/sd15_canny_guided_green_glass.quality-review.json", + "sha256": "sha256:bytes:6b4eb4c2e53322bd651c6da7802034a81a968a063f4d68099d18a47b798b6a2a", "publishDecision": "approved", "holdReason": null, - "creatorOrRightsholder": "MoDiff project maintainers", - "creationMethod": "MoDiff-authored technical provenance, Gallery manifest or quality review for the explicitly approved native Qwen Expert final and genuine before-upscale comparison images", - "sourceUrl": null, - "sourceRevision": null, - "sourceLicense": "Apache-2.0 project-authored metadata; generated-media terms remain in their exact per-file record", - "modelTerms": [], + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14", + "sourceRevision": "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "Publisher model terms at https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14" + ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], - "requiredAttribution": [], + "requiredAttribution": [ + "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14 https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14" + ], "assetLicense": "Apache-2.0", - "reviewedBy": "SOURAV DAS", - "reviewedAt": "2026-11-10", - "reviewClass": "per-file-human-approved-qwen-expert-upscale-registration", - "provenanceTemplateId": "qwen_upscale_finish", - "humanApprovalPacketSHA256": "f0167419381c0d2a1a1bcd43d2465a0ad728c294a2d91bbe1c6b090a915c2c98" + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "3968c7cbe37a94789a9f839d8e83a9e0f102629b797d5f7baacf0304a8d18153", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "sd15_canny_guided_green_glass" }, { - "path": "template-gallery/reviews/reference_fusion.quality-review.json", - "sha256": "sha256:bytes:0042893cc0ba3eb36438c8af0108de25c620cedc8febc83d14b46accb427f73a", + "path": "template-gallery/reviews/sd15_canny_guided_green_glass.retained-template-provenance.json", + "sha256": "sha256:bytes:402d8a04c798edda4ccf43f0b2716520eb7b4e3e268b111ac029ce1ef95865bc", "publishDecision": "approved", "holdReason": null, - "creatorOrRightsholder": "MoDiff project maintainers", - "creationMethod": "Project-authored Gallery manifest, native provenance or accepted quality review", - "sourceUrl": null, - "sourceRevision": null, - "sourceLicense": "Apache-2.0 project-authored metadata", - "modelTerms": [], + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14", + "sourceRevision": "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "Publisher model terms at https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14" + ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], - "requiredAttribution": [], + "requiredAttribution": [ + "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14 https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14" + ], "assetLicense": "Apache-2.0", - "reviewedBy": "SOURAV DAS", - "reviewedAt": "2026-11-10", - "reviewClass": "per-file-maintainer-accepted-native-gallery-registration", - "provenanceTemplateId": "reference_fusion", - "humanApprovalPacketSHA256": "95893cb17e10b15ae6b23d8b31b57b0e14b9af96f822d75edbc6b68971afb11d" + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "3968c7cbe37a94789a9f839d8e83a9e0f102629b797d5f7baacf0304a8d18153", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "sd15_canny_guided_green_glass" }, { - "path": "template-gallery/reviews/reference_fusion.reviewed-provenance.json", - "sha256": "sha256:bytes:e8bb52b4d660c345368dd44a7d9d40edf62b00770a01dc444a5d5e9ec8d8bd87", + "path": "template-gallery/reviews/sd15_control_cobalt_handmade_paper.original-provenance.json", + "sha256": "sha256:bytes:da7eebeec6ee06c919bd2a1b06634fdc12a0656ba046561fb0540c165ebdee19", "publishDecision": "approved", "holdReason": null, - "creatorOrRightsholder": "MoDiff project maintainers", - "creationMethod": "Project-authored Gallery manifest, native provenance or accepted quality review", - "sourceUrl": null, - "sourceRevision": null, - "sourceLicense": "Apache-2.0 project-authored metadata", - "modelTerms": [], + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14", + "sourceRevision": "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "Publisher model terms at https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14" + ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], - "requiredAttribution": [], + "requiredAttribution": [ + "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14 https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14" + ], "assetLicense": "Apache-2.0", - "reviewedBy": "SOURAV DAS", - "reviewedAt": "2026-11-10", - "reviewClass": "per-file-maintainer-accepted-native-gallery-registration", - "provenanceTemplateId": "reference_fusion", - "humanApprovalPacketSHA256": "95893cb17e10b15ae6b23d8b31b57b0e14b9af96f822d75edbc6b68971afb11d" + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "d7e2fd301d16eede3da44cec1811930560ba0d958dfd46d8d0962eb3a22eea63", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "sd15_control_cobalt_handmade_paper" }, { - "path": "template-gallery/reviews/restoring_the_studio_backdrop.original-provenance.json", - "sha256": "sha256:bytes:a8d0febc08556ad204bef84d5c8d35bfab9bf69fe8d28b21f10ad315f962b897", + "path": "template-gallery/reviews/sd15_control_cobalt_handmade_paper.original-review.json", + "sha256": "sha256:bytes:5323b4eaa717d668add0b374d57be2cc16458d2dba6a7dab91cef3054e6783e6", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", @@ -17698,7 +19491,9 @@ "sourceUrl": "https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14", "sourceRevision": "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14", "sourceLicense": "MoDiff-authored Gallery metadata", - "modelTerms": ["CreativeML Open RAIL-M at the pinned Stable Diffusion v1.5 revision."], + "modelTerms": [ + "Publisher model terms at https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14" + ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], @@ -17709,13 +19504,13 @@ "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", - "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", - "provenanceTemplateId": "restoring_the_studio_backdrop" + "humanApprovalPacketSHA256": "d7e2fd301d16eede3da44cec1811930560ba0d958dfd46d8d0962eb3a22eea63", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "sd15_control_cobalt_handmade_paper" }, { - "path": "template-gallery/reviews/restoring_the_studio_backdrop.original-review.json", - "sha256": "sha256:bytes:633f93991afc1d361ac19a79c101f868f5954814f09dc349bcb61f967b821cf6", + "path": "template-gallery/reviews/sd15_control_cobalt_handmade_paper.quality-review.json", + "sha256": "sha256:bytes:8d1bd3e6ea993d171004dc6960a2384635596ebb4a212694128b4c0596085a38", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", @@ -17723,7 +19518,9 @@ "sourceUrl": "https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14", "sourceRevision": "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14", "sourceLicense": "MoDiff-authored Gallery metadata", - "modelTerms": ["CreativeML Open RAIL-M at the pinned Stable Diffusion v1.5 revision."], + "modelTerms": [ + "Publisher model terms at https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14" + ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], @@ -17734,13 +19531,13 @@ "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", - "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", - "provenanceTemplateId": "restoring_the_studio_backdrop" + "humanApprovalPacketSHA256": "d7e2fd301d16eede3da44cec1811930560ba0d958dfd46d8d0962eb3a22eea63", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "sd15_control_cobalt_handmade_paper" }, { - "path": "template-gallery/reviews/restoring_the_studio_backdrop.quality-review.json", - "sha256": "sha256:bytes:1e0613d7b8b08333cca474aea32b92bd3d6ac680a776e639b93c554a3011b311", + "path": "template-gallery/reviews/sd15_control_cobalt_handmade_paper.retained-template-provenance.json", + "sha256": "sha256:bytes:9ab42723e81c7cad64ab3e8d5ffedeb21ab76c17a4aaf7e3d6f5e84e82f2133a", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", @@ -17748,7 +19545,9 @@ "sourceUrl": "https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14", "sourceRevision": "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14", "sourceLicense": "MoDiff-authored Gallery metadata", - "modelTerms": ["CreativeML Open RAIL-M at the pinned Stable Diffusion v1.5 revision."], + "modelTerms": [ + "Publisher model terms at https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14" + ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], @@ -17759,13 +19558,13 @@ "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", - "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", - "provenanceTemplateId": "restoring_the_studio_backdrop" + "humanApprovalPacketSHA256": "d7e2fd301d16eede3da44cec1811930560ba0d958dfd46d8d0962eb3a22eea63", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "sd15_control_cobalt_handmade_paper" }, { - "path": "template-gallery/reviews/restoring_the_studio_backdrop.retained-template-provenance.json", - "sha256": "sha256:bytes:6a6538a8278e1f94de68eb9b2928131809e5b3163a7157ff7db17d053635fa46", + "path": "template-gallery/reviews/sd15_control_cobalt_studio_wall_repair.original-provenance.json", + "sha256": "sha256:bytes:19bf85731e13ea963aab7adba6556b86bbcded7d0030b29342738bb6ef165418", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", @@ -17773,7 +19572,9 @@ "sourceUrl": "https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14", "sourceRevision": "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14", "sourceLicense": "MoDiff-authored Gallery metadata", - "modelTerms": ["CreativeML Open RAIL-M at the pinned Stable Diffusion v1.5 revision."], + "modelTerms": [ + "Publisher model terms at https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14" + ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], @@ -17784,275 +19585,283 @@ "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", - "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", - "provenanceTemplateId": "restoring_the_studio_backdrop" + "humanApprovalPacketSHA256": "d7e2fd301d16eede3da44cec1811930560ba0d958dfd46d8d0962eb3a22eea63", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "sd15_control_cobalt_studio_wall_repair" }, { - "path": "template-gallery/reviews/salt_marsh_from_above.original-provenance.json", - "sha256": "sha256:bytes:a126541afded7807e2f7c48f7695571cd00edb4c237e257829dea8025548fdc4", + "path": "template-gallery/reviews/sd15_control_cobalt_studio_wall_repair.original-review.json", + "sha256": "sha256:bytes:972cd4b45f317e79624ad0f9d14361ad56ff661b9e8b5bebf049553317cb5af5", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/fal/AuraFlow-v0.3/tree/2cd8588f04c886002be4571697d84654a50e3af3", - "sourceRevision": "fal/AuraFlow-v0.3@2cd8588f04c886002be4571697d84654a50e3af3", + "sourceUrl": "https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14", + "sourceRevision": "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14", "sourceLicense": "MoDiff-authored Gallery metadata", "modelTerms": [ - "apache-2.0. https://huggingface.co/fal/AuraFlow-v0.3/tree/2cd8588f04c886002be4571697d84654a50e3af3" + "Publisher model terms at https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14" ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "fal/AuraFlow-v0.3@2cd8588f04c886002be4571697d84654a50e3af3 https://huggingface.co/fal/AuraFlow-v0.3/tree/2cd8588f04c886002be4571697d84654a50e3af3" + "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14 https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", - "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", - "provenanceTemplateId": "salt_marsh_from_above" + "humanApprovalPacketSHA256": "d7e2fd301d16eede3da44cec1811930560ba0d958dfd46d8d0962eb3a22eea63", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "sd15_control_cobalt_studio_wall_repair" }, { - "path": "template-gallery/reviews/salt_marsh_from_above.original-review.json", - "sha256": "sha256:bytes:890b1c2f2a76d781d9c1062a1e4ec1e637a5d7de161e8ec21fb4860bfba68365", + "path": "template-gallery/reviews/sd15_control_cobalt_studio_wall_repair.quality-review.json", + "sha256": "sha256:bytes:ed1f8ea25aa626c59572eb6c03d8e6c55eae588e1e6378afef6adc536f1983d7", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/fal/AuraFlow-v0.3/tree/2cd8588f04c886002be4571697d84654a50e3af3", - "sourceRevision": "fal/AuraFlow-v0.3@2cd8588f04c886002be4571697d84654a50e3af3", + "sourceUrl": "https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14", + "sourceRevision": "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14", "sourceLicense": "MoDiff-authored Gallery metadata", "modelTerms": [ - "apache-2.0. https://huggingface.co/fal/AuraFlow-v0.3/tree/2cd8588f04c886002be4571697d84654a50e3af3" + "Publisher model terms at https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14" ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "fal/AuraFlow-v0.3@2cd8588f04c886002be4571697d84654a50e3af3 https://huggingface.co/fal/AuraFlow-v0.3/tree/2cd8588f04c886002be4571697d84654a50e3af3" + "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14 https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", - "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", - "provenanceTemplateId": "salt_marsh_from_above" + "humanApprovalPacketSHA256": "d7e2fd301d16eede3da44cec1811930560ba0d958dfd46d8d0962eb3a22eea63", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "sd15_control_cobalt_studio_wall_repair" }, { - "path": "template-gallery/reviews/salt_marsh_from_above.quality-review.json", - "sha256": "sha256:bytes:deb996a0c76f064ba87fcbde7750b4297dedd4f470a70246be5ce550f88b52d3", + "path": "template-gallery/reviews/sd15_control_cobalt_studio_wall_repair.retained-template-provenance.json", + "sha256": "sha256:bytes:fb2f08438b84f324cd9c37aaff2e4106e02c2302cc21a20e57d2a3ce456d4d12", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/fal/AuraFlow-v0.3/tree/2cd8588f04c886002be4571697d84654a50e3af3", - "sourceRevision": "fal/AuraFlow-v0.3@2cd8588f04c886002be4571697d84654a50e3af3", + "sourceUrl": "https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14", + "sourceRevision": "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14", "sourceLicense": "MoDiff-authored Gallery metadata", "modelTerms": [ - "apache-2.0. https://huggingface.co/fal/AuraFlow-v0.3/tree/2cd8588f04c886002be4571697d84654a50e3af3" + "Publisher model terms at https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14" ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "fal/AuraFlow-v0.3@2cd8588f04c886002be4571697d84654a50e3af3 https://huggingface.co/fal/AuraFlow-v0.3/tree/2cd8588f04c886002be4571697d84654a50e3af3" + "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14 https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", - "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", - "provenanceTemplateId": "salt_marsh_from_above" + "humanApprovalPacketSHA256": "d7e2fd301d16eede3da44cec1811930560ba0d958dfd46d8d0962eb3a22eea63", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "sd15_control_cobalt_studio_wall_repair" }, { - "path": "template-gallery/reviews/salt_marsh_from_above.retained-template-provenance.json", - "sha256": "sha256:bytes:9a904012bac7d429111212a1e17e1b5b08a754a6354230233a6c81b8f1a2cfe2", + "path": "template-gallery/reviews/sd15_pag_canny_guided_glass.original-provenance.json", + "sha256": "sha256:bytes:9c932db7355340ac4e8adf44b0d465192ee66096c6e811fd917ab7d0d6858881", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/fal/AuraFlow-v0.3/tree/2cd8588f04c886002be4571697d84654a50e3af3", - "sourceRevision": "fal/AuraFlow-v0.3@2cd8588f04c886002be4571697d84654a50e3af3", + "sourceUrl": "https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14", + "sourceRevision": "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14", "sourceLicense": "MoDiff-authored Gallery metadata", "modelTerms": [ - "apache-2.0. https://huggingface.co/fal/AuraFlow-v0.3/tree/2cd8588f04c886002be4571697d84654a50e3af3" + "Publisher model terms at https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14" ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "fal/AuraFlow-v0.3@2cd8588f04c886002be4571697d84654a50e3af3 https://huggingface.co/fal/AuraFlow-v0.3/tree/2cd8588f04c886002be4571697d84654a50e3af3" + "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14 https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", - "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", - "provenanceTemplateId": "salt_marsh_from_above" + "humanApprovalPacketSHA256": "3968c7cbe37a94789a9f839d8e83a9e0f102629b797d5f7baacf0304a8d18153", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "sd15_pag_canny_guided_glass" }, { - "path": "template-gallery/reviews/sana_sprint_monochrome_tiger.quality-review.json", - "sha256": "sha256:bytes:daad196fff80a6e8d2543deeb911b5cd94a027a746e8d7cc0a011dc687f8c50e", + "path": "template-gallery/reviews/sd15_pag_canny_guided_glass.original-review.json", + "sha256": "sha256:bytes:71b3e8d9324b3a359982cc2544d97acaa55ad8fd919bba1c9638e337c2029b64", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14", + "sourceRevision": "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "Publisher model terms at https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14" + ], + "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], + "requiredAttribution": [ + "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14 https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14" + ], + "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", - "reviewedAt": "2026-11-20", + "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "40060ba701188a6d287df07e0852c6497d109885495e6fc85a19e8371ef73906", - "publicationBasis": "Maintainer approved both exact Sana Sprint images and redistribution of the redacted review and recipe records.", - "creationMethod": "Project-authored redacted retained Gallery review, provenance or registration metadata", - "sourceUrl": null, - "sourceRevision": null, - "sourceLicense": "MoDiff-authored Gallery metadata", - "modelTerms": [], - "aiGenerated": false, - "requiredAttribution": [], - "assetLicense": "Apache-2.0", - "provenanceTemplateId": "sana_sprint_monochrome_tiger" + "humanApprovalPacketSHA256": "3968c7cbe37a94789a9f839d8e83a9e0f102629b797d5f7baacf0304a8d18153", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "sd15_pag_canny_guided_glass" }, { - "path": "template-gallery/reviews/sana_sprint_monochrome_tiger.retained-template-provenance.json", - "sha256": "sha256:bytes:9da7a90fdc337893b768009a2d6c619c730606e2544c335f4c4d02d14137d1a9", + "path": "template-gallery/reviews/sd15_pag_canny_guided_glass.quality-review.json", + "sha256": "sha256:bytes:17e907b2f792b6f5d3a67cdb23e21cd610731baec7b7bd3914170fb801f4c807", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14", + "sourceRevision": "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "Publisher model terms at https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14" + ], + "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], + "requiredAttribution": [ + "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14 https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14" + ], + "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", - "reviewedAt": "2026-11-20", + "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "40060ba701188a6d287df07e0852c6497d109885495e6fc85a19e8371ef73906", - "publicationBasis": "Maintainer approved both exact Sana Sprint images and redistribution of the redacted review and recipe records.", - "creationMethod": "Project-authored redacted retained Gallery review, provenance or registration metadata", - "sourceUrl": null, - "sourceRevision": null, - "sourceLicense": "MoDiff-authored Gallery metadata", - "modelTerms": [], - "aiGenerated": false, - "requiredAttribution": [], - "assetLicense": "Apache-2.0", - "provenanceTemplateId": "sana_sprint_monochrome_tiger" + "humanApprovalPacketSHA256": "3968c7cbe37a94789a9f839d8e83a9e0f102629b797d5f7baacf0304a8d18153", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "sd15_pag_canny_guided_glass" }, { - "path": "template-gallery/reviews/sana_tidal_pool_on_black_basalt.original-provenance.json", - "sha256": "sha256:bytes:464b0cb9e776e21bd3b8dfbefa83c8b984bd76684dee47aec59943ff0e6b335a", + "path": "template-gallery/reviews/sd15_pag_canny_guided_glass.retained-template-provenance.json", + "sha256": "sha256:bytes:7f00b5906e8f7b8b9f25ab10145851637e469edfb455660c72f08be72bee8b7b", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/Efficient-Large-Model/Sana_600M_1024px_diffusers/tree/28f3af7689de15f3883d5863059a2fca0aa9b829", - "sourceRevision": "Efficient-Large-Model/Sana_600M_1024px_diffusers@28f3af7689de15f3883d5863059a2fca0aa9b829", + "sourceUrl": "https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14", + "sourceRevision": "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14", "sourceLicense": "MoDiff-authored Gallery metadata", "modelTerms": [ - "https://huggingface.co/Efficient-Large-Model/Sana_600M_1024px_diffusers/tree/28f3af7689de15f3883d5863059a2fca0aa9b829" + "Publisher model terms at https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14" ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "Efficient-Large-Model/Sana_600M_1024px_diffusers@28f3af7689de15f3883d5863059a2fca0aa9b829 https://huggingface.co/Efficient-Large-Model/Sana_600M_1024px_diffusers/tree/28f3af7689de15f3883d5863059a2fca0aa9b829" + "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14 https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "4fc7c52588176cb1f6ba6d699d08741b2986ea71ea87bac650d261716a10b24c", + "humanApprovalPacketSHA256": "3968c7cbe37a94789a9f839d8e83a9e0f102629b797d5f7baacf0304a8d18153", "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", - "provenanceTemplateId": "sana_tidal_pool_on_black_basalt" + "provenanceTemplateId": "sd15_pag_canny_guided_glass" }, { - "path": "template-gallery/reviews/sana_tidal_pool_on_black_basalt.original-review.json", - "sha256": "sha256:bytes:822c6a8b3d52524742bfe5987264df6c10f357ae3c975d695a89cf0d5b9e762a", + "path": "template-gallery/reviews/sd15_pag_cobalt_studio_repair.original-provenance.json", + "sha256": "sha256:bytes:b3a227ef5f8f0ea481c446854ce4be387bfe434ff252d9a5d34887ddb2b69b55", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/Efficient-Large-Model/Sana_600M_1024px_diffusers/tree/28f3af7689de15f3883d5863059a2fca0aa9b829", - "sourceRevision": "Efficient-Large-Model/Sana_600M_1024px_diffusers@28f3af7689de15f3883d5863059a2fca0aa9b829", + "sourceUrl": "https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14", + "sourceRevision": "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14", "sourceLicense": "MoDiff-authored Gallery metadata", "modelTerms": [ - "https://huggingface.co/Efficient-Large-Model/Sana_600M_1024px_diffusers/tree/28f3af7689de15f3883d5863059a2fca0aa9b829" + "Publisher model terms at https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14" ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "Efficient-Large-Model/Sana_600M_1024px_diffusers@28f3af7689de15f3883d5863059a2fca0aa9b829 https://huggingface.co/Efficient-Large-Model/Sana_600M_1024px_diffusers/tree/28f3af7689de15f3883d5863059a2fca0aa9b829" + "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14 https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "4fc7c52588176cb1f6ba6d699d08741b2986ea71ea87bac650d261716a10b24c", + "humanApprovalPacketSHA256": "c2df9edb92f8ff905b6c9a138a285e67c621f3d2dfa3232f859aaf963b725aca", "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", - "provenanceTemplateId": "sana_tidal_pool_on_black_basalt" + "provenanceTemplateId": "sd15_pag_cobalt_studio_repair" }, { - "path": "template-gallery/reviews/sana_tidal_pool_on_black_basalt.quality-review.json", - "sha256": "sha256:bytes:1dcfd72e9a8ac1f33c8ce5935e64598e279ddca468c1060e266376a8b7d89552", + "path": "template-gallery/reviews/sd15_pag_cobalt_studio_repair.original-review.json", + "sha256": "sha256:bytes:dcbaa8d96f77097c5e763de7dd3602e62e4dc4d1302b2d4e7a426ae606b94de3", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/Efficient-Large-Model/Sana_600M_1024px_diffusers/tree/28f3af7689de15f3883d5863059a2fca0aa9b829", - "sourceRevision": "Efficient-Large-Model/Sana_600M_1024px_diffusers@28f3af7689de15f3883d5863059a2fca0aa9b829", + "sourceUrl": "https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14", + "sourceRevision": "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14", "sourceLicense": "MoDiff-authored Gallery metadata", "modelTerms": [ - "https://huggingface.co/Efficient-Large-Model/Sana_600M_1024px_diffusers/tree/28f3af7689de15f3883d5863059a2fca0aa9b829" + "Publisher model terms at https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14" ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "Efficient-Large-Model/Sana_600M_1024px_diffusers@28f3af7689de15f3883d5863059a2fca0aa9b829 https://huggingface.co/Efficient-Large-Model/Sana_600M_1024px_diffusers/tree/28f3af7689de15f3883d5863059a2fca0aa9b829" + "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14 https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "4fc7c52588176cb1f6ba6d699d08741b2986ea71ea87bac650d261716a10b24c", + "humanApprovalPacketSHA256": "c2df9edb92f8ff905b6c9a138a285e67c621f3d2dfa3232f859aaf963b725aca", "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", - "provenanceTemplateId": "sana_tidal_pool_on_black_basalt" + "provenanceTemplateId": "sd15_pag_cobalt_studio_repair" }, { - "path": "template-gallery/reviews/sana_tidal_pool_on_black_basalt.retained-template-provenance.json", - "sha256": "sha256:bytes:66af6aa83b431b3f41da146254ebc0cc75190e50fe626ce635fc20a12f2c7502", + "path": "template-gallery/reviews/sd15_pag_cobalt_studio_repair.quality-review.json", + "sha256": "sha256:bytes:ddfa89f8e656c4790a14c0e9dcfffa24a1a034cab5c1bb62390307bfa70bc9fc", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/Efficient-Large-Model/Sana_600M_1024px_diffusers/tree/28f3af7689de15f3883d5863059a2fca0aa9b829", - "sourceRevision": "Efficient-Large-Model/Sana_600M_1024px_diffusers@28f3af7689de15f3883d5863059a2fca0aa9b829", + "sourceUrl": "https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14", + "sourceRevision": "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14", "sourceLicense": "MoDiff-authored Gallery metadata", "modelTerms": [ - "https://huggingface.co/Efficient-Large-Model/Sana_600M_1024px_diffusers/tree/28f3af7689de15f3883d5863059a2fca0aa9b829" + "Publisher model terms at https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14" ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "Efficient-Large-Model/Sana_600M_1024px_diffusers@28f3af7689de15f3883d5863059a2fca0aa9b829 https://huggingface.co/Efficient-Large-Model/Sana_600M_1024px_diffusers/tree/28f3af7689de15f3883d5863059a2fca0aa9b829" + "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14 https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "4fc7c52588176cb1f6ba6d699d08741b2986ea71ea87bac650d261716a10b24c", + "humanApprovalPacketSHA256": "c2df9edb92f8ff905b6c9a138a285e67c621f3d2dfa3232f859aaf963b725aca", "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", - "provenanceTemplateId": "sana_tidal_pool_on_black_basalt" + "provenanceTemplateId": "sd15_pag_cobalt_studio_repair" }, { - "path": "template-gallery/reviews/sd15_canny_guided_green_glass.original-provenance.json", - "sha256": "sha256:bytes:4819d64b35e84d822483b4edf58c0d2a82ca612989a5f283763eff90e1c3dcc4", + "path": "template-gallery/reviews/sd15_pag_cobalt_studio_repair.retained-template-provenance.json", + "sha256": "sha256:bytes:e2aade8abc03d27c9f342023c60f27dcbb77f28a94d7605522ae0e862672eeed", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", @@ -18073,13 +19882,13 @@ "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "3968c7cbe37a94789a9f839d8e83a9e0f102629b797d5f7baacf0304a8d18153", + "humanApprovalPacketSHA256": "c2df9edb92f8ff905b6c9a138a285e67c621f3d2dfa3232f859aaf963b725aca", "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", - "provenanceTemplateId": "sd15_canny_guided_green_glass" + "provenanceTemplateId": "sd15_pag_cobalt_studio_repair" }, { - "path": "template-gallery/reviews/sd15_canny_guided_green_glass.original-review.json", - "sha256": "sha256:bytes:702ca8e77651aeb71cddfb6daa67ca584309cc1639d3ad81cbe783e65c14ac14", + "path": "template-gallery/reviews/sd15_pag_control_wall_repair.original-provenance.json", + "sha256": "sha256:bytes:aa19ad771615c138e20115977179f7a966ea7b8cdb2d08e358ee505d2954c623", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", @@ -18100,13 +19909,13 @@ "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "3968c7cbe37a94789a9f839d8e83a9e0f102629b797d5f7baacf0304a8d18153", + "humanApprovalPacketSHA256": "d7e2fd301d16eede3da44cec1811930560ba0d958dfd46d8d0962eb3a22eea63", "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", - "provenanceTemplateId": "sd15_canny_guided_green_glass" + "provenanceTemplateId": "sd15_pag_control_wall_repair" }, { - "path": "template-gallery/reviews/sd15_canny_guided_green_glass.quality-review.json", - "sha256": "sha256:bytes:6b4eb4c2e53322bd651c6da7802034a81a968a063f4d68099d18a47b798b6a2a", + "path": "template-gallery/reviews/sd15_pag_control_wall_repair.original-review.json", + "sha256": "sha256:bytes:68dd29ac4fc908290c864d1e0d913aec7dd9773e642e226a83fa75425db275d9", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", @@ -18127,13 +19936,13 @@ "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "3968c7cbe37a94789a9f839d8e83a9e0f102629b797d5f7baacf0304a8d18153", + "humanApprovalPacketSHA256": "d7e2fd301d16eede3da44cec1811930560ba0d958dfd46d8d0962eb3a22eea63", "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", - "provenanceTemplateId": "sd15_canny_guided_green_glass" + "provenanceTemplateId": "sd15_pag_control_wall_repair" }, { - "path": "template-gallery/reviews/sd15_canny_guided_green_glass.retained-template-provenance.json", - "sha256": "sha256:bytes:402d8a04c798edda4ccf43f0b2716520eb7b4e3e268b111ac029ce1ef95865bc", + "path": "template-gallery/reviews/sd15_pag_control_wall_repair.quality-review.json", + "sha256": "sha256:bytes:2ebf376b23db382ffeeb0e2297864e4ad5ef7fac59db5a3e96e50c13c91d06e5", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", @@ -18154,13 +19963,13 @@ "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "3968c7cbe37a94789a9f839d8e83a9e0f102629b797d5f7baacf0304a8d18153", + "humanApprovalPacketSHA256": "d7e2fd301d16eede3da44cec1811930560ba0d958dfd46d8d0962eb3a22eea63", "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", - "provenanceTemplateId": "sd15_canny_guided_green_glass" + "provenanceTemplateId": "sd15_pag_control_wall_repair" }, { - "path": "template-gallery/reviews/sd15_pag_canny_guided_glass.original-provenance.json", - "sha256": "sha256:bytes:9c932db7355340ac4e8adf44b0d465192ee66096c6e811fd917ab7d0d6858881", + "path": "template-gallery/reviews/sd15_pag_control_wall_repair.retained-template-provenance.json", + "sha256": "sha256:bytes:c362aab4aae99eddcf68dab637479045ec7c4cc703bf3fb84a90b54293acec01", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", @@ -18181,13 +19990,13 @@ "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "3968c7cbe37a94789a9f839d8e83a9e0f102629b797d5f7baacf0304a8d18153", + "humanApprovalPacketSHA256": "d7e2fd301d16eede3da44cec1811930560ba0d958dfd46d8d0962eb3a22eea63", "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", - "provenanceTemplateId": "sd15_pag_canny_guided_glass" + "provenanceTemplateId": "sd15_pag_control_wall_repair" }, { - "path": "template-gallery/reviews/sd15_pag_canny_guided_glass.original-review.json", - "sha256": "sha256:bytes:71b3e8d9324b3a359982cc2544d97acaa55ad8fd919bba1c9638e337c2029b64", + "path": "template-gallery/reviews/sd15_pag_mountain_lake_watercolor.original-provenance.json", + "sha256": "sha256:bytes:53be917cea31e259033fb99bb4ff99b1b975abc7cad671b8eb2511794545082e", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", @@ -18208,13 +20017,13 @@ "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "3968c7cbe37a94789a9f839d8e83a9e0f102629b797d5f7baacf0304a8d18153", + "humanApprovalPacketSHA256": "c2df9edb92f8ff905b6c9a138a285e67c621f3d2dfa3232f859aaf963b725aca", "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", - "provenanceTemplateId": "sd15_pag_canny_guided_glass" + "provenanceTemplateId": "sd15_pag_mountain_lake_watercolor" }, { - "path": "template-gallery/reviews/sd15_pag_canny_guided_glass.quality-review.json", - "sha256": "sha256:bytes:17e907b2f792b6f5d3a67cdb23e21cd610731baec7b7bd3914170fb801f4c807", + "path": "template-gallery/reviews/sd15_pag_mountain_lake_watercolor.original-review.json", + "sha256": "sha256:bytes:e7226c4664a027c20670f6aa367d4c2751efbe4fc0569afe6cb137349a8f5406", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", @@ -18235,13 +20044,13 @@ "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "3968c7cbe37a94789a9f839d8e83a9e0f102629b797d5f7baacf0304a8d18153", + "humanApprovalPacketSHA256": "c2df9edb92f8ff905b6c9a138a285e67c621f3d2dfa3232f859aaf963b725aca", "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", - "provenanceTemplateId": "sd15_pag_canny_guided_glass" + "provenanceTemplateId": "sd15_pag_mountain_lake_watercolor" }, { - "path": "template-gallery/reviews/sd15_pag_canny_guided_glass.retained-template-provenance.json", - "sha256": "sha256:bytes:7f00b5906e8f7b8b9f25ab10145851637e469edfb455660c72f08be72bee8b7b", + "path": "template-gallery/reviews/sd15_pag_mountain_lake_watercolor.quality-review.json", + "sha256": "sha256:bytes:a76c9a2fbcb169ecc2498d87ebc3f17f640cd49c4ca906ffc117a281f885d2af", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", @@ -18262,13 +20071,13 @@ "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "3968c7cbe37a94789a9f839d8e83a9e0f102629b797d5f7baacf0304a8d18153", + "humanApprovalPacketSHA256": "c2df9edb92f8ff905b6c9a138a285e67c621f3d2dfa3232f859aaf963b725aca", "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", - "provenanceTemplateId": "sd15_pag_canny_guided_glass" + "provenanceTemplateId": "sd15_pag_mountain_lake_watercolor" }, { - "path": "template-gallery/reviews/sd15_pag_cobalt_studio_repair.original-provenance.json", - "sha256": "sha256:bytes:b3a227ef5f8f0ea481c446854ce4be387bfe434ff252d9a5d34887ddb2b69b55", + "path": "template-gallery/reviews/sd15_pag_mountain_lake_watercolor.retained-template-provenance.json", + "sha256": "sha256:bytes:f2e571509ee047bbf0f2b7381ba505ec3204898db1f9d4bcf567ad1d661c1c75", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", @@ -18291,200 +20100,200 @@ "reviewClass": "per-file-maintainer-accepted-retained-registration", "humanApprovalPacketSHA256": "c2df9edb92f8ff905b6c9a138a285e67c621f3d2dfa3232f859aaf963b725aca", "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", - "provenanceTemplateId": "sd15_pag_cobalt_studio_repair" + "provenanceTemplateId": "sd15_pag_mountain_lake_watercolor" }, { - "path": "template-gallery/reviews/sd15_pag_cobalt_studio_repair.original-review.json", - "sha256": "sha256:bytes:dcbaa8d96f77097c5e763de7dd3602e62e4dc4d1302b2d4e7a426ae606b94de3", + "path": "template-gallery/reviews/sdxl_blue_glass_on_linen.original-provenance.json", + "sha256": "sha256:bytes:27a97a45a77e030c923d8bdd21038de3f89a94132da92d6313179f752949ac89", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14", - "sourceRevision": "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14", + "sourceUrl": "https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b", + "sourceRevision": "stabilityai/stable-diffusion-xl-base-1.0@462165984030d82259a11f4367a4eed129e94a7b", "sourceLicense": "MoDiff-authored Gallery metadata", "modelTerms": [ - "Publisher model terms at https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14" + "Publisher model terms at https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b" ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14 https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14" + "stabilityai/stable-diffusion-xl-base-1.0@462165984030d82259a11f4367a4eed129e94a7b https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "c2df9edb92f8ff905b6c9a138a285e67c621f3d2dfa3232f859aaf963b725aca", + "humanApprovalPacketSHA256": "60b01498a2df5f4e4622cdc2f9a43c83d187820780d2425a19718c13707db501", "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", - "provenanceTemplateId": "sd15_pag_cobalt_studio_repair" + "provenanceTemplateId": "sdxl_blue_glass_on_linen" }, { - "path": "template-gallery/reviews/sd15_pag_cobalt_studio_repair.quality-review.json", - "sha256": "sha256:bytes:ddfa89f8e656c4790a14c0e9dcfffa24a1a034cab5c1bb62390307bfa70bc9fc", + "path": "template-gallery/reviews/sdxl_blue_glass_on_linen.original-review.json", + "sha256": "sha256:bytes:fabaeafe1e26297e9f1601776a60ecb99aff54d8bcd793f59efcdbb24aff75ca", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14", - "sourceRevision": "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14", + "sourceUrl": "https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b", + "sourceRevision": "stabilityai/stable-diffusion-xl-base-1.0@462165984030d82259a11f4367a4eed129e94a7b", "sourceLicense": "MoDiff-authored Gallery metadata", "modelTerms": [ - "Publisher model terms at https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14" + "Publisher model terms at https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b" ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14 https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14" + "stabilityai/stable-diffusion-xl-base-1.0@462165984030d82259a11f4367a4eed129e94a7b https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "c2df9edb92f8ff905b6c9a138a285e67c621f3d2dfa3232f859aaf963b725aca", + "humanApprovalPacketSHA256": "60b01498a2df5f4e4622cdc2f9a43c83d187820780d2425a19718c13707db501", "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", - "provenanceTemplateId": "sd15_pag_cobalt_studio_repair" + "provenanceTemplateId": "sdxl_blue_glass_on_linen" }, { - "path": "template-gallery/reviews/sd15_pag_cobalt_studio_repair.retained-template-provenance.json", - "sha256": "sha256:bytes:e2aade8abc03d27c9f342023c60f27dcbb77f28a94d7605522ae0e862672eeed", + "path": "template-gallery/reviews/sdxl_blue_glass_on_linen.quality-review.json", + "sha256": "sha256:bytes:ac2ad3f014c2418214a1f5c0d24da1c6e0f854b5f465b5f73fc86a49f691e690", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14", - "sourceRevision": "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14", + "sourceUrl": "https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b", + "sourceRevision": "stabilityai/stable-diffusion-xl-base-1.0@462165984030d82259a11f4367a4eed129e94a7b", "sourceLicense": "MoDiff-authored Gallery metadata", "modelTerms": [ - "Publisher model terms at https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14" + "Publisher model terms at https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b" ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14 https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14" + "stabilityai/stable-diffusion-xl-base-1.0@462165984030d82259a11f4367a4eed129e94a7b https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "c2df9edb92f8ff905b6c9a138a285e67c621f3d2dfa3232f859aaf963b725aca", + "humanApprovalPacketSHA256": "60b01498a2df5f4e4622cdc2f9a43c83d187820780d2425a19718c13707db501", "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", - "provenanceTemplateId": "sd15_pag_cobalt_studio_repair" + "provenanceTemplateId": "sdxl_blue_glass_on_linen" }, { - "path": "template-gallery/reviews/sd15_pag_mountain_lake_watercolor.original-provenance.json", - "sha256": "sha256:bytes:53be917cea31e259033fb99bb4ff99b1b975abc7cad671b8eb2511794545082e", + "path": "template-gallery/reviews/sdxl_blue_glass_on_linen.retained-template-provenance.json", + "sha256": "sha256:bytes:bc7bc5349f88639d71d68f5fbd560c09bae488e4240cd5c53c9731904f655896", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14", - "sourceRevision": "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14", + "sourceUrl": "https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b", + "sourceRevision": "stabilityai/stable-diffusion-xl-base-1.0@462165984030d82259a11f4367a4eed129e94a7b", "sourceLicense": "MoDiff-authored Gallery metadata", "modelTerms": [ - "Publisher model terms at https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14" + "Publisher model terms at https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b" ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14 https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14" + "stabilityai/stable-diffusion-xl-base-1.0@462165984030d82259a11f4367a4eed129e94a7b https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "c2df9edb92f8ff905b6c9a138a285e67c621f3d2dfa3232f859aaf963b725aca", + "humanApprovalPacketSHA256": "60b01498a2df5f4e4622cdc2f9a43c83d187820780d2425a19718c13707db501", "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", - "provenanceTemplateId": "sd15_pag_mountain_lake_watercolor" + "provenanceTemplateId": "sdxl_blue_glass_on_linen" }, { - "path": "template-gallery/reviews/sd15_pag_mountain_lake_watercolor.original-review.json", - "sha256": "sha256:bytes:e7226c4664a027c20670f6aa367d4c2751efbe4fc0569afe6cb137349a8f5406", + "path": "template-gallery/reviews/sdxl_canny_adapter_glass_study.original-provenance.json", + "sha256": "sha256:bytes:daf26190a849032e45d97c519a2d0a943ea9cab99937916d7f2f9b88b29a69a0", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14", - "sourceRevision": "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14", + "sourceUrl": "https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b", + "sourceRevision": "stabilityai/stable-diffusion-xl-base-1.0@462165984030d82259a11f4367a4eed129e94a7b", "sourceLicense": "MoDiff-authored Gallery metadata", "modelTerms": [ - "Publisher model terms at https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14" + "Publisher model terms at https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b" ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14 https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14" + "stabilityai/stable-diffusion-xl-base-1.0@462165984030d82259a11f4367a4eed129e94a7b https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "c2df9edb92f8ff905b6c9a138a285e67c621f3d2dfa3232f859aaf963b725aca", + "humanApprovalPacketSHA256": "3968c7cbe37a94789a9f839d8e83a9e0f102629b797d5f7baacf0304a8d18153", "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", - "provenanceTemplateId": "sd15_pag_mountain_lake_watercolor" + "provenanceTemplateId": "sdxl_canny_adapter_glass_study" }, { - "path": "template-gallery/reviews/sd15_pag_mountain_lake_watercolor.quality-review.json", - "sha256": "sha256:bytes:a76c9a2fbcb169ecc2498d87ebc3f17f640cd49c4ca906ffc117a281f885d2af", + "path": "template-gallery/reviews/sdxl_canny_adapter_glass_study.original-review.json", + "sha256": "sha256:bytes:305618170534dc7808c62234e6bc2a428e49d6eb5ed766aabb4aad4cc48f6e07", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14", - "sourceRevision": "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14", + "sourceUrl": "https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b", + "sourceRevision": "stabilityai/stable-diffusion-xl-base-1.0@462165984030d82259a11f4367a4eed129e94a7b", "sourceLicense": "MoDiff-authored Gallery metadata", "modelTerms": [ - "Publisher model terms at https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14" + "Publisher model terms at https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b" ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14 https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14" + "stabilityai/stable-diffusion-xl-base-1.0@462165984030d82259a11f4367a4eed129e94a7b https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "c2df9edb92f8ff905b6c9a138a285e67c621f3d2dfa3232f859aaf963b725aca", + "humanApprovalPacketSHA256": "3968c7cbe37a94789a9f839d8e83a9e0f102629b797d5f7baacf0304a8d18153", "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", - "provenanceTemplateId": "sd15_pag_mountain_lake_watercolor" + "provenanceTemplateId": "sdxl_canny_adapter_glass_study" }, { - "path": "template-gallery/reviews/sd15_pag_mountain_lake_watercolor.retained-template-provenance.json", - "sha256": "sha256:bytes:f2e571509ee047bbf0f2b7381ba505ec3204898db1f9d4bcf567ad1d661c1c75", + "path": "template-gallery/reviews/sdxl_canny_adapter_glass_study.quality-review.json", + "sha256": "sha256:bytes:f4766cc262cf8d06f5e643b7e4b11bf31ddb550de66b2274727948738550ab7b", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14", - "sourceRevision": "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14", + "sourceUrl": "https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b", + "sourceRevision": "stabilityai/stable-diffusion-xl-base-1.0@462165984030d82259a11f4367a4eed129e94a7b", "sourceLicense": "MoDiff-authored Gallery metadata", "modelTerms": [ - "Publisher model terms at https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14" + "Publisher model terms at https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b" ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14 https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14" + "stabilityai/stable-diffusion-xl-base-1.0@462165984030d82259a11f4367a4eed129e94a7b https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "c2df9edb92f8ff905b6c9a138a285e67c621f3d2dfa3232f859aaf963b725aca", + "humanApprovalPacketSHA256": "3968c7cbe37a94789a9f839d8e83a9e0f102629b797d5f7baacf0304a8d18153", "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", - "provenanceTemplateId": "sd15_pag_mountain_lake_watercolor" + "provenanceTemplateId": "sdxl_canny_adapter_glass_study" }, { - "path": "template-gallery/reviews/sdxl_blue_glass_on_linen.original-provenance.json", - "sha256": "sha256:bytes:27a97a45a77e030c923d8bdd21038de3f89a94132da92d6313179f752949ac89", + "path": "template-gallery/reviews/sdxl_canny_adapter_glass_study.retained-template-provenance.json", + "sha256": "sha256:bytes:3a6c1a9a6ce7a31c19275f7049b062f62739c7517e13e2ad5c512c805a5a68ef", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", @@ -18505,13 +20314,13 @@ "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "60b01498a2df5f4e4622cdc2f9a43c83d187820780d2425a19718c13707db501", + "humanApprovalPacketSHA256": "3968c7cbe37a94789a9f839d8e83a9e0f102629b797d5f7baacf0304a8d18153", "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", - "provenanceTemplateId": "sdxl_blue_glass_on_linen" + "provenanceTemplateId": "sdxl_canny_adapter_glass_study" }, { - "path": "template-gallery/reviews/sdxl_blue_glass_on_linen.original-review.json", - "sha256": "sha256:bytes:fabaeafe1e26297e9f1601776a60ecb99aff54d8bcd793f59efcdbb24aff75ca", + "path": "template-gallery/reviews/sdxl_clear_cobalt_backdrop.original-provenance.json", + "sha256": "sha256:bytes:7361ac84e232f55f7f8e19fae39c5abff4e4df36ac1d1c754ca4d9716d60b1df", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", @@ -18530,15 +20339,15 @@ ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", - "reviewedAt": "2026-11-25", + "reviewedAt": "2026-11-24", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "60b01498a2df5f4e4622cdc2f9a43c83d187820780d2425a19718c13707db501", - "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", - "provenanceTemplateId": "sdxl_blue_glass_on_linen" + "humanApprovalPacketSHA256": "d216f065bdc316366c6183592f657bcfbbd7cb05acd0e510c6b3877fe56bcec2", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped six saved cases with model terms retained.", + "provenanceTemplateId": "sdxl_clear_cobalt_backdrop" }, { - "path": "template-gallery/reviews/sdxl_blue_glass_on_linen.quality-review.json", - "sha256": "sha256:bytes:ac2ad3f014c2418214a1f5c0d24da1c6e0f854b5f465b5f73fc86a49f691e690", + "path": "template-gallery/reviews/sdxl_clear_cobalt_backdrop.original-review.json", + "sha256": "sha256:bytes:d7edf6240c066f9d48ab24fd45c77556b2afa52e145f530428c93620496ddf15", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", @@ -18557,15 +20366,15 @@ ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", - "reviewedAt": "2026-11-25", + "reviewedAt": "2026-11-24", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "60b01498a2df5f4e4622cdc2f9a43c83d187820780d2425a19718c13707db501", - "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", - "provenanceTemplateId": "sdxl_blue_glass_on_linen" + "humanApprovalPacketSHA256": "d216f065bdc316366c6183592f657bcfbbd7cb05acd0e510c6b3877fe56bcec2", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped six saved cases with model terms retained.", + "provenanceTemplateId": "sdxl_clear_cobalt_backdrop" }, { - "path": "template-gallery/reviews/sdxl_blue_glass_on_linen.retained-template-provenance.json", - "sha256": "sha256:bytes:bc7bc5349f88639d71d68f5fbd560c09bae488e4240cd5c53c9731904f655896", + "path": "template-gallery/reviews/sdxl_clear_cobalt_backdrop.quality-review.json", + "sha256": "sha256:bytes:c5853176bee61c270f06f94714ff9e968eb466ab7198d26d78a1d9dc4482cb41", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", @@ -18584,15 +20393,42 @@ ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", - "reviewedAt": "2026-11-25", + "reviewedAt": "2026-11-24", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "60b01498a2df5f4e4622cdc2f9a43c83d187820780d2425a19718c13707db501", - "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", - "provenanceTemplateId": "sdxl_blue_glass_on_linen" + "humanApprovalPacketSHA256": "d216f065bdc316366c6183592f657bcfbbd7cb05acd0e510c6b3877fe56bcec2", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped six saved cases with model terms retained.", + "provenanceTemplateId": "sdxl_clear_cobalt_backdrop" + }, + { + "path": "template-gallery/reviews/sdxl_clear_cobalt_backdrop.retained-template-provenance.json", + "sha256": "sha256:bytes:b680690954be3c7784aed2b97110d50706dc3ebb56df9e61611b203150a90b39", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b", + "sourceRevision": "stabilityai/stable-diffusion-xl-base-1.0@462165984030d82259a11f4367a4eed129e94a7b", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "Publisher model terms at https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b" + ], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "stabilityai/stable-diffusion-xl-base-1.0@462165984030d82259a11f4367a4eed129e94a7b https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-24", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "d216f065bdc316366c6183592f657bcfbbd7cb05acd0e510c6b3877fe56bcec2", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped six saved cases with model terms retained.", + "provenanceTemplateId": "sdxl_clear_cobalt_backdrop" }, { - "path": "template-gallery/reviews/sdxl_canny_adapter_glass_study.original-provenance.json", - "sha256": "sha256:bytes:daf26190a849032e45d97c519a2d0a943ea9cab99937916d7f2f9b88b29a69a0", + "path": "template-gallery/reviews/sdxl_control_golden_boathouse.original-provenance.json", + "sha256": "sha256:bytes:ecfe216b3884fc1471abf2305a3f4e0216b4b7f2eb05324720e081cbcf945eb1", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", @@ -18613,13 +20449,13 @@ "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "3968c7cbe37a94789a9f839d8e83a9e0f102629b797d5f7baacf0304a8d18153", + "humanApprovalPacketSHA256": "d7e2fd301d16eede3da44cec1811930560ba0d958dfd46d8d0962eb3a22eea63", "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", - "provenanceTemplateId": "sdxl_canny_adapter_glass_study" + "provenanceTemplateId": "sdxl_control_golden_boathouse" }, { - "path": "template-gallery/reviews/sdxl_canny_adapter_glass_study.original-review.json", - "sha256": "sha256:bytes:305618170534dc7808c62234e6bc2a428e49d6eb5ed766aabb4aad4cc48f6e07", + "path": "template-gallery/reviews/sdxl_control_golden_boathouse.original-review.json", + "sha256": "sha256:bytes:c552f8bfe66a6983be2ab31844c4a468a6132e0e43a8a4553e67a497ec70a8ef", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", @@ -18640,13 +20476,13 @@ "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "3968c7cbe37a94789a9f839d8e83a9e0f102629b797d5f7baacf0304a8d18153", + "humanApprovalPacketSHA256": "d7e2fd301d16eede3da44cec1811930560ba0d958dfd46d8d0962eb3a22eea63", "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", - "provenanceTemplateId": "sdxl_canny_adapter_glass_study" + "provenanceTemplateId": "sdxl_control_golden_boathouse" }, { - "path": "template-gallery/reviews/sdxl_canny_adapter_glass_study.quality-review.json", - "sha256": "sha256:bytes:f4766cc262cf8d06f5e643b7e4b11bf31ddb550de66b2274727948738550ab7b", + "path": "template-gallery/reviews/sdxl_control_golden_boathouse.quality-review.json", + "sha256": "sha256:bytes:3fdc382b76e87f894d2a03a5666ce990b33da15e348abf47e7176aaf82fb8f97", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", @@ -18667,13 +20503,13 @@ "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "3968c7cbe37a94789a9f839d8e83a9e0f102629b797d5f7baacf0304a8d18153", + "humanApprovalPacketSHA256": "d7e2fd301d16eede3da44cec1811930560ba0d958dfd46d8d0962eb3a22eea63", "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", - "provenanceTemplateId": "sdxl_canny_adapter_glass_study" + "provenanceTemplateId": "sdxl_control_golden_boathouse" }, { - "path": "template-gallery/reviews/sdxl_canny_adapter_glass_study.retained-template-provenance.json", - "sha256": "sha256:bytes:3a6c1a9a6ce7a31c19275f7049b062f62739c7517e13e2ad5c512c805a5a68ef", + "path": "template-gallery/reviews/sdxl_control_golden_boathouse.retained-template-provenance.json", + "sha256": "sha256:bytes:5d442e9e2219d92d7360b927357bc34f1d8948776601d716369786fcd2a153b9", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", @@ -18694,13 +20530,13 @@ "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "3968c7cbe37a94789a9f839d8e83a9e0f102629b797d5f7baacf0304a8d18153", + "humanApprovalPacketSHA256": "d7e2fd301d16eede3da44cec1811930560ba0d958dfd46d8d0962eb3a22eea63", "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", - "provenanceTemplateId": "sdxl_canny_adapter_glass_study" + "provenanceTemplateId": "sdxl_control_golden_boathouse" }, { - "path": "template-gallery/reviews/sdxl_clear_cobalt_backdrop.original-provenance.json", - "sha256": "sha256:bytes:7361ac84e232f55f7f8e19fae39c5abff4e4df36ac1d1c754ca4d9716d60b1df", + "path": "template-gallery/reviews/sdxl_control_inpaint_warm_plaster.original-provenance.json", + "sha256": "sha256:bytes:661ddabb9dd317859660c6d6c56737672f0969c2637153b2aa3a14b1422cac0b", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", @@ -18719,15 +20555,15 @@ ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", - "reviewedAt": "2026-11-24", + "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "d216f065bdc316366c6183592f657bcfbbd7cb05acd0e510c6b3877fe56bcec2", - "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped six saved cases with model terms retained.", - "provenanceTemplateId": "sdxl_clear_cobalt_backdrop" + "humanApprovalPacketSHA256": "3968c7cbe37a94789a9f839d8e83a9e0f102629b797d5f7baacf0304a8d18153", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "sdxl_control_inpaint_warm_plaster" }, { - "path": "template-gallery/reviews/sdxl_clear_cobalt_backdrop.original-review.json", - "sha256": "sha256:bytes:d7edf6240c066f9d48ab24fd45c77556b2afa52e145f530428c93620496ddf15", + "path": "template-gallery/reviews/sdxl_control_inpaint_warm_plaster.original-review.json", + "sha256": "sha256:bytes:9ec0f8ff6cc645c9c9c9c9102965753af931061398629edb65727f99d2cb7faa", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", @@ -18746,15 +20582,15 @@ ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", - "reviewedAt": "2026-11-24", + "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "d216f065bdc316366c6183592f657bcfbbd7cb05acd0e510c6b3877fe56bcec2", - "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped six saved cases with model terms retained.", - "provenanceTemplateId": "sdxl_clear_cobalt_backdrop" + "humanApprovalPacketSHA256": "3968c7cbe37a94789a9f839d8e83a9e0f102629b797d5f7baacf0304a8d18153", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "sdxl_control_inpaint_warm_plaster" }, { - "path": "template-gallery/reviews/sdxl_clear_cobalt_backdrop.quality-review.json", - "sha256": "sha256:bytes:c5853176bee61c270f06f94714ff9e968eb466ab7198d26d78a1d9dc4482cb41", + "path": "template-gallery/reviews/sdxl_control_inpaint_warm_plaster.quality-review.json", + "sha256": "sha256:bytes:4e3e6d321e3c4b7b17ba5ff675c610bd6c0a86779bda8e1c2fa0b3c25754d15e", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", @@ -18773,15 +20609,15 @@ ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", - "reviewedAt": "2026-11-24", + "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "d216f065bdc316366c6183592f657bcfbbd7cb05acd0e510c6b3877fe56bcec2", - "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped six saved cases with model terms retained.", - "provenanceTemplateId": "sdxl_clear_cobalt_backdrop" + "humanApprovalPacketSHA256": "3968c7cbe37a94789a9f839d8e83a9e0f102629b797d5f7baacf0304a8d18153", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "sdxl_control_inpaint_warm_plaster" }, { - "path": "template-gallery/reviews/sdxl_clear_cobalt_backdrop.retained-template-provenance.json", - "sha256": "sha256:bytes:b680690954be3c7784aed2b97110d50706dc3ebb56df9e61611b203150a90b39", + "path": "template-gallery/reviews/sdxl_control_inpaint_warm_plaster.retained-template-provenance.json", + "sha256": "sha256:bytes:b55fbe6ba9d7b2243d12fe0227026b502eb8674412f4da62cc0ef72b57a91370", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", @@ -18800,15 +20636,15 @@ ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", - "reviewedAt": "2026-11-24", + "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "d216f065bdc316366c6183592f657bcfbbd7cb05acd0e510c6b3877fe56bcec2", - "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped six saved cases with model terms retained.", - "provenanceTemplateId": "sdxl_clear_cobalt_backdrop" + "humanApprovalPacketSHA256": "3968c7cbe37a94789a9f839d8e83a9e0f102629b797d5f7baacf0304a8d18153", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "sdxl_control_inpaint_warm_plaster" }, { - "path": "template-gallery/reviews/sdxl_control_inpaint_warm_plaster.original-provenance.json", - "sha256": "sha256:bytes:661ddabb9dd317859660c6d6c56737672f0969c2637153b2aa3a14b1422cac0b", + "path": "template-gallery/reviews/sdxl_controlnet_glass_study_on_slate.original-provenance.json", + "sha256": "sha256:bytes:5eff28279014893ed1b626866eef574cb72798d376da8faef83766c89e3e8223", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", @@ -18831,11 +20667,11 @@ "reviewClass": "per-file-maintainer-accepted-retained-registration", "humanApprovalPacketSHA256": "3968c7cbe37a94789a9f839d8e83a9e0f102629b797d5f7baacf0304a8d18153", "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", - "provenanceTemplateId": "sdxl_control_inpaint_warm_plaster" + "provenanceTemplateId": "sdxl_controlnet_glass_study_on_slate" }, { - "path": "template-gallery/reviews/sdxl_control_inpaint_warm_plaster.original-review.json", - "sha256": "sha256:bytes:9ec0f8ff6cc645c9c9c9c9102965753af931061398629edb65727f99d2cb7faa", + "path": "template-gallery/reviews/sdxl_controlnet_glass_study_on_slate.original-review.json", + "sha256": "sha256:bytes:42676c7dd7b9bd9c2062dd771f1d63f7507670609ba6ef543b066877c6f86de1", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", @@ -18858,11 +20694,11 @@ "reviewClass": "per-file-maintainer-accepted-retained-registration", "humanApprovalPacketSHA256": "3968c7cbe37a94789a9f839d8e83a9e0f102629b797d5f7baacf0304a8d18153", "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", - "provenanceTemplateId": "sdxl_control_inpaint_warm_plaster" + "provenanceTemplateId": "sdxl_controlnet_glass_study_on_slate" }, { - "path": "template-gallery/reviews/sdxl_control_inpaint_warm_plaster.quality-review.json", - "sha256": "sha256:bytes:4e3e6d321e3c4b7b17ba5ff675c610bd6c0a86779bda8e1c2fa0b3c25754d15e", + "path": "template-gallery/reviews/sdxl_controlnet_glass_study_on_slate.quality-review.json", + "sha256": "sha256:bytes:3ad7e229aa4536d60a0337200d22d47e753f7770edbce0528a7dd89f3f7f0895", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", @@ -18885,11 +20721,11 @@ "reviewClass": "per-file-maintainer-accepted-retained-registration", "humanApprovalPacketSHA256": "3968c7cbe37a94789a9f839d8e83a9e0f102629b797d5f7baacf0304a8d18153", "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", - "provenanceTemplateId": "sdxl_control_inpaint_warm_plaster" + "provenanceTemplateId": "sdxl_controlnet_glass_study_on_slate" }, { - "path": "template-gallery/reviews/sdxl_control_inpaint_warm_plaster.retained-template-provenance.json", - "sha256": "sha256:bytes:b55fbe6ba9d7b2243d12fe0227026b502eb8674412f4da62cc0ef72b57a91370", + "path": "template-gallery/reviews/sdxl_controlnet_glass_study_on_slate.retained-template-provenance.json", + "sha256": "sha256:bytes:564bd43c3c23f41f40e46ee762ad2a3c61e63ca7a5600f8af0fdf92b263856fe", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", @@ -18912,11 +20748,11 @@ "reviewClass": "per-file-maintainer-accepted-retained-registration", "humanApprovalPacketSHA256": "3968c7cbe37a94789a9f839d8e83a9e0f102629b797d5f7baacf0304a8d18153", "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", - "provenanceTemplateId": "sdxl_control_inpaint_warm_plaster" + "provenanceTemplateId": "sdxl_controlnet_glass_study_on_slate" }, { - "path": "template-gallery/reviews/sdxl_controlnet_glass_study_on_slate.original-provenance.json", - "sha256": "sha256:bytes:5eff28279014893ed1b626866eef574cb72798d376da8faef83766c89e3e8223", + "path": "template-gallery/reviews/sdxl_pag_cobalt_wall.original-provenance.json", + "sha256": "sha256:bytes:73001e41f7161d3d7f501d8901c64ea75b69926342d874f517161846bbc2c65e", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", @@ -18937,13 +20773,13 @@ "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "3968c7cbe37a94789a9f839d8e83a9e0f102629b797d5f7baacf0304a8d18153", + "humanApprovalPacketSHA256": "60b01498a2df5f4e4622cdc2f9a43c83d187820780d2425a19718c13707db501", "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", - "provenanceTemplateId": "sdxl_controlnet_glass_study_on_slate" + "provenanceTemplateId": "sdxl_pag_cobalt_wall" }, { - "path": "template-gallery/reviews/sdxl_controlnet_glass_study_on_slate.original-review.json", - "sha256": "sha256:bytes:42676c7dd7b9bd9c2062dd771f1d63f7507670609ba6ef543b066877c6f86de1", + "path": "template-gallery/reviews/sdxl_pag_cobalt_wall.original-review.json", + "sha256": "sha256:bytes:9c33914daf546f076a1cd4248d62bca41f48046bbf32641336a61e6af8ce5ae6", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", @@ -18964,13 +20800,13 @@ "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "3968c7cbe37a94789a9f839d8e83a9e0f102629b797d5f7baacf0304a8d18153", + "humanApprovalPacketSHA256": "60b01498a2df5f4e4622cdc2f9a43c83d187820780d2425a19718c13707db501", "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", - "provenanceTemplateId": "sdxl_controlnet_glass_study_on_slate" + "provenanceTemplateId": "sdxl_pag_cobalt_wall" }, { - "path": "template-gallery/reviews/sdxl_controlnet_glass_study_on_slate.quality-review.json", - "sha256": "sha256:bytes:3ad7e229aa4536d60a0337200d22d47e753f7770edbce0528a7dd89f3f7f0895", + "path": "template-gallery/reviews/sdxl_pag_cobalt_wall.quality-review.json", + "sha256": "sha256:bytes:792bcb8050a146a925e0a3459c499e41ca08f710496292775ed7a85acf4e1ddf", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", @@ -18991,13 +20827,13 @@ "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "3968c7cbe37a94789a9f839d8e83a9e0f102629b797d5f7baacf0304a8d18153", + "humanApprovalPacketSHA256": "60b01498a2df5f4e4622cdc2f9a43c83d187820780d2425a19718c13707db501", "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", - "provenanceTemplateId": "sdxl_controlnet_glass_study_on_slate" + "provenanceTemplateId": "sdxl_pag_cobalt_wall" }, { - "path": "template-gallery/reviews/sdxl_controlnet_glass_study_on_slate.retained-template-provenance.json", - "sha256": "sha256:bytes:564bd43c3c23f41f40e46ee762ad2a3c61e63ca7a5600f8af0fdf92b263856fe", + "path": "template-gallery/reviews/sdxl_pag_cobalt_wall.retained-template-provenance.json", + "sha256": "sha256:bytes:69442605e67b4da6af5ab3971559219066b7c569139088412a65945487509612", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", @@ -19018,13 +20854,13 @@ "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "3968c7cbe37a94789a9f839d8e83a9e0f102629b797d5f7baacf0304a8d18153", + "humanApprovalPacketSHA256": "60b01498a2df5f4e4622cdc2f9a43c83d187820780d2425a19718c13707db501", "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", - "provenanceTemplateId": "sdxl_controlnet_glass_study_on_slate" + "provenanceTemplateId": "sdxl_pag_cobalt_wall" }, { - "path": "template-gallery/reviews/sdxl_pag_cobalt_wall.original-provenance.json", - "sha256": "sha256:bytes:73001e41f7161d3d7f501d8901c64ea75b69926342d874f517161846bbc2c65e", + "path": "template-gallery/reviews/sdxl_pag_snow_cabin.original-provenance.json", + "sha256": "sha256:bytes:9f8fc8e1ec02ce87e641958fdbded7f199cee15cde9e077cbb40b12e0e8d7d93", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", @@ -19045,13 +20881,13 @@ "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "60b01498a2df5f4e4622cdc2f9a43c83d187820780d2425a19718c13707db501", + "humanApprovalPacketSHA256": "d7e2fd301d16eede3da44cec1811930560ba0d958dfd46d8d0962eb3a22eea63", "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", - "provenanceTemplateId": "sdxl_pag_cobalt_wall" + "provenanceTemplateId": "sdxl_pag_snow_cabin" }, { - "path": "template-gallery/reviews/sdxl_pag_cobalt_wall.original-review.json", - "sha256": "sha256:bytes:9c33914daf546f076a1cd4248d62bca41f48046bbf32641336a61e6af8ce5ae6", + "path": "template-gallery/reviews/sdxl_pag_snow_cabin.original-review.json", + "sha256": "sha256:bytes:5b23c67819bad2bb24ccdbd2058df59a33a560077c260097e5711ef9a74746ba", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", @@ -19072,13 +20908,13 @@ "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "60b01498a2df5f4e4622cdc2f9a43c83d187820780d2425a19718c13707db501", + "humanApprovalPacketSHA256": "d7e2fd301d16eede3da44cec1811930560ba0d958dfd46d8d0962eb3a22eea63", "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", - "provenanceTemplateId": "sdxl_pag_cobalt_wall" + "provenanceTemplateId": "sdxl_pag_snow_cabin" }, { - "path": "template-gallery/reviews/sdxl_pag_cobalt_wall.quality-review.json", - "sha256": "sha256:bytes:792bcb8050a146a925e0a3459c499e41ca08f710496292775ed7a85acf4e1ddf", + "path": "template-gallery/reviews/sdxl_pag_snow_cabin.quality-review.json", + "sha256": "sha256:bytes:d29b39aeafcf213fbcfff098372b9aad723d5a08c8fd63970f98162ed64e8ad3", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", @@ -19099,13 +20935,13 @@ "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "60b01498a2df5f4e4622cdc2f9a43c83d187820780d2425a19718c13707db501", + "humanApprovalPacketSHA256": "d7e2fd301d16eede3da44cec1811930560ba0d958dfd46d8d0962eb3a22eea63", "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", - "provenanceTemplateId": "sdxl_pag_cobalt_wall" + "provenanceTemplateId": "sdxl_pag_snow_cabin" }, { - "path": "template-gallery/reviews/sdxl_pag_cobalt_wall.retained-template-provenance.json", - "sha256": "sha256:bytes:69442605e67b4da6af5ab3971559219066b7c569139088412a65945487509612", + "path": "template-gallery/reviews/sdxl_pag_snow_cabin.retained-template-provenance.json", + "sha256": "sha256:bytes:d82c38326bd8b615ed7a934890b979e34f2870f8b0c7aa6f919f0b541d828905", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", @@ -19126,9 +20962,9 @@ "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "60b01498a2df5f4e4622cdc2f9a43c83d187820780d2425a19718c13707db501", + "humanApprovalPacketSHA256": "d7e2fd301d16eede3da44cec1811930560ba0d958dfd46d8d0962eb3a22eea63", "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", - "provenanceTemplateId": "sdxl_pag_cobalt_wall" + "provenanceTemplateId": "sdxl_pag_snow_cabin" }, { "path": "template-gallery/reviews/sdxl_pix2pix_pale_amber_glass.original-provenance.json", @@ -22459,6 +24295,60 @@ "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", "provenanceTemplateId": "sd15_canny_guided_green_glass" }, + { + "path": "template-gallery/sd15_control_cobalt_handmade_paper.webp", + "sha256": "sha256:bytes:bb215a263ec6f735c37ee9a4c1692c77681492dca527b149d3aa98aff5c3a2ed", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Exact approved file captured from a saved MoDiff workflow", + "sourceUrl": "https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14", + "sourceRevision": "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14", + "sourceLicense": "Maintainer-authorized file with publisher terms retained", + "modelTerms": [ + "Publisher model terms at https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14" + ], + "aiGenerated": true, + "humanLikenessConsent": "synthetic", + "marks": [], + "requiredAttribution": [ + "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14 https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "d7e2fd301d16eede3da44cec1811930560ba0d958dfd46d8d0962eb3a22eea63", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "sd15_control_cobalt_handmade_paper" + }, + { + "path": "template-gallery/sd15_control_cobalt_studio_wall_repair.webp", + "sha256": "sha256:bytes:249492d460424c36cd16c3785213eb22da9d18b355075e423a11fe5e0d79e16f", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Exact approved file captured from a saved MoDiff workflow", + "sourceUrl": "https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14", + "sourceRevision": "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14", + "sourceLicense": "Maintainer-authorized file with publisher terms retained", + "modelTerms": [ + "Publisher model terms at https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14" + ], + "aiGenerated": true, + "humanLikenessConsent": "synthetic", + "marks": [], + "requiredAttribution": [ + "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14 https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "d7e2fd301d16eede3da44cec1811930560ba0d958dfd46d8d0962eb3a22eea63", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "sd15_control_cobalt_studio_wall_repair" + }, { "path": "template-gallery/sd15_pag_canny_guided_glass.webp", "sha256": "sha256:bytes:3458a6d0acea5261f8f829121eabb8d1dc77a2f057e62d18485e34f097f1da6b", @@ -22513,6 +24403,33 @@ "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", "provenanceTemplateId": "sd15_pag_cobalt_studio_repair" }, + { + "path": "template-gallery/sd15_pag_control_wall_repair.webp", + "sha256": "sha256:bytes:3e1ed497d90cdb3a9aac8adf5828edb265706430b9482426b5a5cd1531e2594e", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Exact approved file captured from a saved MoDiff workflow", + "sourceUrl": "https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14", + "sourceRevision": "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14", + "sourceLicense": "Maintainer-authorized file with publisher terms retained", + "modelTerms": [ + "Publisher model terms at https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14" + ], + "aiGenerated": true, + "humanLikenessConsent": "synthetic", + "marks": [], + "requiredAttribution": [ + "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14 https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "d7e2fd301d16eede3da44cec1811930560ba0d958dfd46d8d0962eb3a22eea63", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "sd15_pag_control_wall_repair" + }, { "path": "template-gallery/sd15_pag_mountain_lake_watercolor.webp", "sha256": "sha256:bytes:d3956b48ecf149f19ce45b003a6216ab7e0ca1771ba0aaec1fa420cac710158f", @@ -22621,6 +24538,33 @@ "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped six saved cases with model terms retained.", "provenanceTemplateId": "sdxl_clear_cobalt_backdrop" }, + { + "path": "template-gallery/sdxl_control_golden_boathouse.webp", + "sha256": "sha256:bytes:73d25ad408e3db3308743a876e4b6e8b272496ba44ab4f51b7e1a89dba723f8f", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Exact approved file captured from a saved MoDiff workflow", + "sourceUrl": "https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b", + "sourceRevision": "stabilityai/stable-diffusion-xl-base-1.0@462165984030d82259a11f4367a4eed129e94a7b", + "sourceLicense": "Maintainer-authorized file with publisher terms retained", + "modelTerms": [ + "Publisher model terms at https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b" + ], + "aiGenerated": true, + "humanLikenessConsent": "synthetic", + "marks": [], + "requiredAttribution": [ + "stabilityai/stable-diffusion-xl-base-1.0@462165984030d82259a11f4367a4eed129e94a7b https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "d7e2fd301d16eede3da44cec1811930560ba0d958dfd46d8d0962eb3a22eea63", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "sdxl_control_golden_boathouse" + }, { "path": "template-gallery/sdxl_control_inpaint_warm_plaster.webp", "sha256": "sha256:bytes:843d44d49afe20f03301931466a5578f2924c089bf33a8e6121f4346c33780f4", @@ -22702,6 +24646,33 @@ "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", "provenanceTemplateId": "sdxl_pag_cobalt_wall" }, + { + "path": "template-gallery/sdxl_pag_snow_cabin.webp", + "sha256": "sha256:bytes:22b8ba630d466d07025f3d272878330192f5f0fec9bcea03cb13a38ce171d541", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Exact approved file captured from a saved MoDiff workflow", + "sourceUrl": "https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b", + "sourceRevision": "stabilityai/stable-diffusion-xl-base-1.0@462165984030d82259a11f4367a4eed129e94a7b", + "sourceLicense": "Maintainer-authorized file with publisher terms retained", + "modelTerms": [ + "Publisher model terms at https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b" + ], + "aiGenerated": true, + "humanLikenessConsent": "synthetic", + "marks": [], + "requiredAttribution": [ + "stabilityai/stable-diffusion-xl-base-1.0@462165984030d82259a11f4367a4eed129e94a7b https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "d7e2fd301d16eede3da44cec1811930560ba0d958dfd46d8d0962eb3a22eea63", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "sdxl_pag_snow_cabin" + }, { "path": "template-gallery/sdxl_pix2pix_pale_amber_glass.webp", "sha256": "sha256:bytes:a56a057711364a3b747c202652999f5fcde7ee1b91c0c7a2a92e6ca26c6c3dff", diff --git a/config/template-assets.v1.json b/config/template-assets.v1.json index 8b103d51..5c41d7af 100644 --- a/config/template-assets.v1.json +++ b/config/template-assets.v1.json @@ -468,6 +468,17 @@ "width": 512, "height": 512 }, + { + "path": "template-gallery/flux_canny_clean_backdrop.webp", + "size": 119146, + "sha256": "sha256:bytes:7261f62b7730f9bd0ceebf9beb3c768cf81640afaeb6285ba6f7f2cdb1406df2", + "contentType": "image/webp", + "purposes": [ + "runtime" + ], + "width": 1024, + "height": 1024 + }, { "path": "template-gallery/flux_control_canny.webp", "size": 191202, @@ -490,6 +501,17 @@ "width": 1024, "height": 1024 }, + { + "path": "template-gallery/flux_depth_marine_bow_repair.webp", + "size": 535562, + "sha256": "sha256:bytes:05697db755f8deae61615744c651ee81af79c0dded87323841d01e980d87c9cf", + "contentType": "image/webp", + "purposes": [ + "runtime" + ], + "width": 1024, + "height": 1024 + }, { "path": "template-gallery/flux_dev_expert_text_to_image.card-poster.webp", "size": 408558, @@ -1694,6 +1716,39 @@ "width": 512, "height": 512 }, + { + "path": "template-gallery/inputs/flux_canny_clean_backdrop.before.png", + "size": 623267, + "sha256": "sha256:bytes:e75c20f0e8a74e283b996bf526e6ea74535ed24125ad97c2d92508d3435d7a87", + "contentType": "image/png", + "purposes": [ + "runtime" + ], + "width": 1024, + "height": 1024 + }, + { + "path": "template-gallery/inputs/flux_canny_clean_backdrop.guide.png", + "size": 7281, + "sha256": "sha256:bytes:6bd07628a37c087178e9de58a98c6c5879468163f1a2376a581511a42503e2e2", + "contentType": "image/png", + "purposes": [ + "runtime" + ], + "width": 1024, + "height": 1024 + }, + { + "path": "template-gallery/inputs/flux_canny_clean_backdrop.mask.png", + "size": 1571, + "sha256": "sha256:bytes:1f48775f2826f84e0c5b55f16f3475bdc80ecad8b931d6b0279598610e9a828d", + "contentType": "image/png", + "purposes": [ + "runtime" + ], + "width": 1024, + "height": 1024 + }, { "path": "template-gallery/inputs/flux_control_canny.before.png", "size": 22013, @@ -1717,6 +1772,39 @@ "width": 1024, "height": 1024 }, + { + "path": "template-gallery/inputs/flux_depth_marine_bow_repair.before.webp", + "size": 548974, + "sha256": "sha256:bytes:c3d52c29b6a8cae80d2feffb8a978cded8b34509abd09216f665ab3af13f189e", + "contentType": "image/webp", + "purposes": [ + "runtime" + ], + "width": 1024, + "height": 1024 + }, + { + "path": "template-gallery/inputs/flux_depth_marine_bow_repair.guide.png", + "size": 157468, + "sha256": "sha256:bytes:2e202069a584ee5ada91e2deaea6bf7b92a94f4816e669e695d7cb64d5a1cb0e", + "contentType": "image/png", + "purposes": [ + "runtime" + ], + "width": 1024, + "height": 1024 + }, + { + "path": "template-gallery/inputs/flux_depth_marine_bow_repair.mask.png", + "size": 2006, + "sha256": "sha256:bytes:765f215aa6f8c0087a67af872a26149223373d5ab4a8afba6331caad5bc45d4c", + "contentType": "image/png", + "purposes": [ + "runtime" + ], + "width": 1024, + "height": 1024 + }, { "path": "template-gallery/inputs/flux_fill_inpaint.before.webp", "size": 142192, @@ -1851,6 +1939,28 @@ "width": 1024, "height": 1024 }, + { + "path": "template-gallery/inputs/joy_plus_terracotta_on_limestone.before.png", + "size": 624887, + "sha256": "sha256:bytes:0a41a9c56b98945e60c96ef796660c35b2cab7bf0b36d5e84ab0d97ef97f0a5a", + "contentType": "image/png", + "purposes": [ + "runtime" + ], + "width": 1024, + "height": 1024 + }, + { + "path": "template-gallery/inputs/joy_plus_terracotta_on_limestone.reference-2.png", + "size": 103533, + "sha256": "sha256:bytes:056615dd7833d38cfed12d45b30bb0c6e439bf1585f4964da4796ca5b43f20ea", + "contentType": "image/png", + "purposes": [ + "runtime" + ], + "width": 1024, + "height": 1024 + }, { "path": "template-gallery/inputs/joyimage_base_cobalt_paper_band.before.png", "size": 624887, @@ -1982,6 +2092,28 @@ "width": 1024, "height": 1024 }, + { + "path": "template-gallery/inputs/omnigen_red_enamel_folded_linen.before.png", + "size": 173437, + "sha256": "sha256:bytes:4077a18ad81b7fb6a1e7285777cac6241f6c0109a680945487b81e8561f30d8c", + "contentType": "image/png", + "purposes": [ + "runtime" + ], + "width": 384, + "height": 384 + }, + { + "path": "template-gallery/inputs/omnigen_red_enamel_folded_linen.reference-2.png", + "size": 81944, + "sha256": "sha256:bytes:a0b713856d9a2d7956605fe85b26eef641bdede49400583f9c87c25fd3e324ec", + "contentType": "image/png", + "purposes": [ + "runtime" + ], + "width": 512, + "height": 128 + }, { "path": "template-gallery/inputs/qwen-carton-layout-control.png", "size": 11137, @@ -2004,6 +2136,28 @@ "width": 1024, "height": 1024 }, + { + "path": "template-gallery/inputs/qwen_2511_terracotta_material_transfer.before.png", + "size": 624887, + "sha256": "sha256:bytes:0a41a9c56b98945e60c96ef796660c35b2cab7bf0b36d5e84ab0d97ef97f0a5a", + "contentType": "image/png", + "purposes": [ + "runtime" + ], + "width": 1024, + "height": 1024 + }, + { + "path": "template-gallery/inputs/qwen_2511_terracotta_material_transfer.reference-2.png", + "size": 103533, + "sha256": "sha256:bytes:056615dd7833d38cfed12d45b30bb0c6e439bf1585f4964da4796ca5b43f20ea", + "contentType": "image/png", + "purposes": [ + "runtime" + ], + "width": 1024, + "height": 1024 + }, { "path": "template-gallery/inputs/qwen_2512_cobalt_backdrop_repair.before.png", "size": 891109, @@ -2303,6 +2457,61 @@ "width": 512, "height": 512 }, + { + "path": "template-gallery/inputs/sd15_control_cobalt_handmade_paper.before.png", + "size": 271303, + "sha256": "sha256:bytes:d143c4922ad498b9bd436d06df424bbff50baf023b93735b53ee401e19e4cbf1", + "contentType": "image/png", + "purposes": [ + "runtime" + ], + "width": 512, + "height": 512 + }, + { + "path": "template-gallery/inputs/sd15_control_cobalt_handmade_paper.guide.png", + "size": 9470, + "sha256": "sha256:bytes:6d47a2f07006b98f9e5cfc8ee925914c4dbfa39fd38b0b61770be56d12ed04e8", + "contentType": "image/png", + "purposes": [ + "runtime" + ], + "width": 512, + "height": 512 + }, + { + "path": "template-gallery/inputs/sd15_control_cobalt_studio_wall_repair.before.png", + "size": 271303, + "sha256": "sha256:bytes:d143c4922ad498b9bd436d06df424bbff50baf023b93735b53ee401e19e4cbf1", + "contentType": "image/png", + "purposes": [ + "runtime" + ], + "width": 512, + "height": 512 + }, + { + "path": "template-gallery/inputs/sd15_control_cobalt_studio_wall_repair.guide.png", + "size": 9470, + "sha256": "sha256:bytes:6d47a2f07006b98f9e5cfc8ee925914c4dbfa39fd38b0b61770be56d12ed04e8", + "contentType": "image/png", + "purposes": [ + "runtime" + ], + "width": 512, + "height": 512 + }, + { + "path": "template-gallery/inputs/sd15_control_cobalt_studio_wall_repair.mask.png", + "size": 568, + "sha256": "sha256:bytes:71817f4823a73712c8e76e7d832ec382c29ec0a0bf5a472e09639448c082da01", + "contentType": "image/png", + "purposes": [ + "runtime" + ], + "width": 512, + "height": 512 + }, { "path": "template-gallery/inputs/sd15_pag_canny_guided_glass.before.png", "size": 9470, @@ -2336,6 +2545,39 @@ "width": 512, "height": 512 }, + { + "path": "template-gallery/inputs/sd15_pag_control_wall_repair.before.png", + "size": 271303, + "sha256": "sha256:bytes:d143c4922ad498b9bd436d06df424bbff50baf023b93735b53ee401e19e4cbf1", + "contentType": "image/png", + "purposes": [ + "runtime" + ], + "width": 512, + "height": 512 + }, + { + "path": "template-gallery/inputs/sd15_pag_control_wall_repair.guide.png", + "size": 9470, + "sha256": "sha256:bytes:6d47a2f07006b98f9e5cfc8ee925914c4dbfa39fd38b0b61770be56d12ed04e8", + "contentType": "image/png", + "purposes": [ + "runtime" + ], + "width": 512, + "height": 512 + }, + { + "path": "template-gallery/inputs/sd15_pag_control_wall_repair.mask.png", + "size": 568, + "sha256": "sha256:bytes:71817f4823a73712c8e76e7d832ec382c29ec0a0bf5a472e09639448c082da01", + "contentType": "image/png", + "purposes": [ + "runtime" + ], + "width": 512, + "height": 512 + }, { "path": "template-gallery/inputs/sd15_pag_mountain_lake_watercolor.before.png", "size": 1509971, @@ -2391,6 +2633,28 @@ "width": 1024, "height": 1024 }, + { + "path": "template-gallery/inputs/sdxl_control_golden_boathouse.before.png", + "size": 2140271, + "sha256": "sha256:bytes:e1d9736125cad717896f0c7d5274a6373676559f250d76cedcc8f8aae9379ec6", + "contentType": "image/png", + "purposes": [ + "runtime" + ], + "width": 1024, + "height": 1024 + }, + { + "path": "template-gallery/inputs/sdxl_control_golden_boathouse.guide.png", + "size": 1030761, + "sha256": "sha256:bytes:322a9aa511a7d21524758724b1666fc220abf563def5e5d1294630e7e58a3b96", + "contentType": "image/png", + "purposes": [ + "runtime" + ], + "width": 1024, + "height": 1024 + }, { "path": "template-gallery/inputs/sdxl_control_inpaint_warm_plaster.before.png", "size": 623267, @@ -2457,6 +2721,17 @@ "width": 1024, "height": 1024 }, + { + "path": "template-gallery/inputs/sdxl_pag_snow_cabin.before.png", + "size": 8404, + "sha256": "sha256:bytes:ca250462efc77625134ebe305b2ee67281a1dcf8919e45299c648f0fdacf919a", + "contentType": "image/png", + "purposes": [ + "runtime" + ], + "width": 1024, + "height": 1024 + }, { "path": "template-gallery/inputs/sdxl_pix2pix_pale_amber_glass.before.png", "size": 494048, @@ -2621,6 +2896,17 @@ "width": 1024, "height": 1024 }, + { + "path": "template-gallery/joy_plus_terracotta_on_limestone.webp", + "size": 126430, + "sha256": "sha256:bytes:d5aedb8394ef70b3281ca66760e5f6e693fa4275508010a9fe4d16776ca3baeb", + "contentType": "image/webp", + "purposes": [ + "runtime" + ], + "width": 1024, + "height": 1024 + }, { "path": "template-gallery/joyimage_base_cobalt_paper_band.webp", "size": 121610, @@ -3092,8 +3378,8 @@ }, { "path": "template-gallery/manifest.json", - "size": 416784, - "sha256": "sha256:bytes:f560bf35f17e3c3f5f117c90f84d4bcedbc53e7eb536f462cbdbac96069b67f5", + "size": 444039, + "sha256": "sha256:bytes:858aa2f3d3d4340a820e48603cc1f82cd7a6d8f508b3ec2fb04c663218b42ca9", "contentType": "application/json", "purposes": [ "runtime", @@ -3142,6 +3428,17 @@ "width": 1024, "height": 1024 }, + { + "path": "template-gallery/omnigen_red_enamel_folded_linen.webp", + "size": 143918, + "sha256": "sha256:bytes:443062a26e22e3542e284f50d0274b7c70b881b3cce76568eb8eb22ce4c396d6", + "contentType": "image/webp", + "purposes": [ + "runtime" + ], + "width": 1024, + "height": 1024 + }, { "path": "template-gallery/omnigen_tulips_after_rain.webp", "size": 293564, @@ -3230,6 +3527,17 @@ "width": 1024, "height": 1024 }, + { + "path": "template-gallery/qwen_2511_terracotta_material_transfer.webp", + "size": 159564, + "sha256": "sha256:bytes:5bd01cc1777cf575cc9824f801059f5426960920dc8a2b0da03c0b8f0cbca51d", + "contentType": "image/webp", + "purposes": [ + "runtime" + ], + "width": 1024, + "height": 1024 + }, { "path": "template-gallery/qwen_2512_cobalt_backdrop_repair.webp", "size": 168926, @@ -4560,45 +4868,117 @@ ] }, { - "path": "template-gallery/reviews/flux3_klein_fp8r512_text_to_image.reviewed-provenance.json", - "size": 89559, - "sha256": "sha256:bytes:bb4186fd1e2fdb16f03bbda92673cbbad1169c0c20a13987775eac45ffcca1d2", + "path": "template-gallery/reviews/flux3_klein_fp8r512_text_to_image.reviewed-provenance.json", + "size": 89559, + "sha256": "sha256:bytes:bb4186fd1e2fdb16f03bbda92673cbbad1169c0c20a13987775eac45ffcca1d2", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, + { + "path": "template-gallery/reviews/flux_canny_clean_backdrop.original-provenance.json", + "size": 1732, + "sha256": "sha256:bytes:7936bae847ef1c4e92911b3bede96023c8f2e13a67a43775eea3de2b73715f1d", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, + { + "path": "template-gallery/reviews/flux_canny_clean_backdrop.original-review.json", + "size": 697, + "sha256": "sha256:bytes:d45aba0a147f85b027af25e241062e1ff06bb4036eb8d89d5b2b276c4d1368cd", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, + { + "path": "template-gallery/reviews/flux_canny_clean_backdrop.quality-review.json", + "size": 2257, + "sha256": "sha256:bytes:f14973c5ea5b0c681d9b268c6af7cf6e99b703e3496bea6396217366a2834fe9", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, + { + "path": "template-gallery/reviews/flux_canny_clean_backdrop.retained-template-provenance.json", + "size": 4136, + "sha256": "sha256:bytes:9ddd33a59bfbaa565d73d420d0bb94178a94d1ca498018146307ee223e899a0e", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, + { + "path": "template-gallery/reviews/flux_control_canny.quality-review.json", + "size": 4766, + "sha256": "sha256:bytes:18fe010ceca23f0e99deb1d854905d52d805c45931b4ab523c364ac36ae594ab", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, + { + "path": "template-gallery/reviews/flux_control_canny.reviewed-provenance.json", + "size": 163707, + "sha256": "sha256:bytes:de3e003b083c9ecbf1dfae92a5c9a225c963943be0820aba88e24723aecc70b0", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, + { + "path": "template-gallery/reviews/flux_depth_control.quality-review.json", + "size": 4666, + "sha256": "sha256:bytes:cfa61450e6b63ad91cdba6b5d17c8ee316db1ce6005b19569595e173c9800daf", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, + { + "path": "template-gallery/reviews/flux_depth_control.reviewed-provenance.json", + "size": 162839, + "sha256": "sha256:bytes:845284bdb0898bb02ddd178e1de0c4b24e2281ae8f84c15eb09de2798abfcf79", "contentType": "application/json", "purposes": [ "runtime" ] }, { - "path": "template-gallery/reviews/flux_control_canny.quality-review.json", - "size": 4766, - "sha256": "sha256:bytes:18fe010ceca23f0e99deb1d854905d52d805c45931b4ab523c364ac36ae594ab", + "path": "template-gallery/reviews/flux_depth_marine_bow_repair.original-provenance.json", + "size": 1726, + "sha256": "sha256:bytes:6f4297f6c64a1fad1390983a37e4015f055f1c9b57b3027b7a5d8f5f21548d21", "contentType": "application/json", "purposes": [ "runtime" ] }, { - "path": "template-gallery/reviews/flux_control_canny.reviewed-provenance.json", - "size": 163707, - "sha256": "sha256:bytes:de3e003b083c9ecbf1dfae92a5c9a225c963943be0820aba88e24723aecc70b0", + "path": "template-gallery/reviews/flux_depth_marine_bow_repair.original-review.json", + "size": 777, + "sha256": "sha256:bytes:2bc453fab2b78d2814c146229b2983eb25f462f0aa7f0c887a69be55d36d0849", "contentType": "application/json", "purposes": [ "runtime" ] }, { - "path": "template-gallery/reviews/flux_depth_control.quality-review.json", - "size": 4666, - "sha256": "sha256:bytes:cfa61450e6b63ad91cdba6b5d17c8ee316db1ce6005b19569595e173c9800daf", + "path": "template-gallery/reviews/flux_depth_marine_bow_repair.quality-review.json", + "size": 2533, + "sha256": "sha256:bytes:191b266ccc8742d66c753b8cae2dfefd06dd007aad43591dc5fc544711be9a3e", "contentType": "application/json", "purposes": [ "runtime" ] }, { - "path": "template-gallery/reviews/flux_depth_control.reviewed-provenance.json", - "size": 162839, - "sha256": "sha256:bytes:845284bdb0898bb02ddd178e1de0c4b24e2281ae8f84c15eb09de2798abfcf79", + "path": "template-gallery/reviews/flux_depth_marine_bow_repair.retained-template-provenance.json", + "size": 4156, + "sha256": "sha256:bytes:93addd088b5f77d730cd7791c03326143216fe0f59ab07b81f5a5ec8b4ca7799", "contentType": "application/json", "purposes": [ "runtime" @@ -5326,6 +5706,42 @@ "runtime" ] }, + { + "path": "template-gallery/reviews/joy_plus_terracotta_on_limestone.original-provenance.json", + "size": 1666, + "sha256": "sha256:bytes:fde745107f8dd3d8e87fa149b23617f104a566ee59af33713ca1b3d91b3a3749", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, + { + "path": "template-gallery/reviews/joy_plus_terracotta_on_limestone.original-review.json", + "size": 966, + "sha256": "sha256:bytes:719b8565f2c6e58a4bbd2cdf1298ef95a7a0d08edec6f90c566e87eb6b6353ba", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, + { + "path": "template-gallery/reviews/joy_plus_terracotta_on_limestone.quality-review.json", + "size": 2691, + "sha256": "sha256:bytes:2bd0293bdf6802fbcb983cf655f09e8a9b452a5ad1438f1269db06c494558347", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, + { + "path": "template-gallery/reviews/joy_plus_terracotta_on_limestone.retained-template-provenance.json", + "size": 4278, + "sha256": "sha256:bytes:646ee4503fc48d2bc5f22df726a697f82799b9152978f5cf6715d94e7c3036cb", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, { "path": "template-gallery/reviews/joyimage_base_cobalt_paper_band.original-provenance.json", "size": 1429, @@ -5956,6 +6372,42 @@ "runtime" ] }, + { + "path": "template-gallery/reviews/omnigen_red_enamel_folded_linen.original-provenance.json", + "size": 1782, + "sha256": "sha256:bytes:01821146c4f81aa3eef581cd4bfedfa892d75176804ecf4cc7b3ed859779e087", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, + { + "path": "template-gallery/reviews/omnigen_red_enamel_folded_linen.original-review.json", + "size": 951, + "sha256": "sha256:bytes:9e64209e76a4bbdcefe54ffae53c9d71d6e2166d84fb605a891c9600c0d85ec3", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, + { + "path": "template-gallery/reviews/omnigen_red_enamel_folded_linen.quality-review.json", + "size": 2406, + "sha256": "sha256:bytes:01c77e3b3474145e708ee18122f5c81ed3364019c260e9888624c7e9a6ab784a", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, + { + "path": "template-gallery/reviews/omnigen_red_enamel_folded_linen.retained-template-provenance.json", + "size": 4319, + "sha256": "sha256:bytes:b066ad2d0e03b2eb348d588e3177a782062d463d50caa7c38bf1801449517e6e", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, { "path": "template-gallery/reviews/omnigen_tulips_after_rain.original-provenance.json", "size": 1602, @@ -6208,6 +6660,42 @@ "runtime" ] }, + { + "path": "template-gallery/reviews/qwen_2511_terracotta_material_transfer.original-provenance.json", + "size": 1622, + "sha256": "sha256:bytes:accd52fe0dc925cda9f3ad31546498422faf762eaae9d5efc1d1c7ab8b2bceb1", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, + { + "path": "template-gallery/reviews/qwen_2511_terracotta_material_transfer.original-review.json", + "size": 1044, + "sha256": "sha256:bytes:6fa09481a5e8937cf2afa452c0f6b0da53124a5ff556756d3c970235d22eeb8f", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, + { + "path": "template-gallery/reviews/qwen_2511_terracotta_material_transfer.quality-review.json", + "size": 2894, + "sha256": "sha256:bytes:c069a461b67cb90ade5f906200db6359e17ecda252d305bc8e6bc7fe9df15786", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, + { + "path": "template-gallery/reviews/qwen_2511_terracotta_material_transfer.retained-template-provenance.json", + "size": 4296, + "sha256": "sha256:bytes:d4b364f299fcce02bee7cdacad3d915d2c8a916b1b97fb9d77f8fa88146c899f", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, { "path": "template-gallery/reviews/qwen_2512_cobalt_backdrop_repair.original-provenance.json", "size": 1644, @@ -6964,6 +7452,78 @@ "runtime" ] }, + { + "path": "template-gallery/reviews/sd15_control_cobalt_handmade_paper.original-provenance.json", + "size": 1400, + "sha256": "sha256:bytes:da7eebeec6ee06c919bd2a1b06634fdc12a0656ba046561fb0540c165ebdee19", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, + { + "path": "template-gallery/reviews/sd15_control_cobalt_handmade_paper.original-review.json", + "size": 716, + "sha256": "sha256:bytes:5323b4eaa717d668add0b374d57be2cc16458d2dba6a7dab91cef3054e6783e6", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, + { + "path": "template-gallery/reviews/sd15_control_cobalt_handmade_paper.quality-review.json", + "size": 2629, + "sha256": "sha256:bytes:8d1bd3e6ea993d171004dc6960a2384635596ebb4a212694128b4c0596085a38", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, + { + "path": "template-gallery/reviews/sd15_control_cobalt_handmade_paper.retained-template-provenance.json", + "size": 3927, + "sha256": "sha256:bytes:9ab42723e81c7cad64ab3e8d5ffedeb21ab76c17a4aaf7e3d6f5e84e82f2133a", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, + { + "path": "template-gallery/reviews/sd15_control_cobalt_studio_wall_repair.original-provenance.json", + "size": 1552, + "sha256": "sha256:bytes:19bf85731e13ea963aab7adba6556b86bbcded7d0030b29342738bb6ef165418", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, + { + "path": "template-gallery/reviews/sd15_control_cobalt_studio_wall_repair.original-review.json", + "size": 644, + "sha256": "sha256:bytes:972cd4b45f317e79624ad0f9d14361ad56ff661b9e8b5bebf049553317cb5af5", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, + { + "path": "template-gallery/reviews/sd15_control_cobalt_studio_wall_repair.quality-review.json", + "size": 2438, + "sha256": "sha256:bytes:ed1f8ea25aa626c59572eb6c03d8e6c55eae588e1e6378afef6adc536f1983d7", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, + { + "path": "template-gallery/reviews/sd15_control_cobalt_studio_wall_repair.retained-template-provenance.json", + "size": 4285, + "sha256": "sha256:bytes:fb2f08438b84f324cd9c37aaff2e4106e02c2302cc21a20e57d2a3ce456d4d12", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, { "path": "template-gallery/reviews/sd15_pag_canny_guided_glass.original-provenance.json", "size": 1257, @@ -7036,6 +7596,42 @@ "runtime" ] }, + { + "path": "template-gallery/reviews/sd15_pag_control_wall_repair.original-provenance.json", + "size": 1600, + "sha256": "sha256:bytes:aa19ad771615c138e20115977179f7a966ea7b8cdb2d08e358ee505d2954c623", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, + { + "path": "template-gallery/reviews/sd15_pag_control_wall_repair.original-review.json", + "size": 692, + "sha256": "sha256:bytes:68dd29ac4fc908290c864d1e0d913aec7dd9773e642e226a83fa75425db275d9", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, + { + "path": "template-gallery/reviews/sd15_pag_control_wall_repair.quality-review.json", + "size": 2428, + "sha256": "sha256:bytes:2ebf376b23db382ffeeb0e2297864e4ad5ef7fac59db5a3e96e50c13c91d06e5", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, + { + "path": "template-gallery/reviews/sd15_pag_control_wall_repair.retained-template-provenance.json", + "size": 4279, + "sha256": "sha256:bytes:c362aab4aae99eddcf68dab637479045ec7c4cc703bf3fb84a90b54293acec01", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, { "path": "template-gallery/reviews/sd15_pag_mountain_lake_watercolor.original-provenance.json", "size": 1302, @@ -7180,6 +7776,42 @@ "runtime" ] }, + { + "path": "template-gallery/reviews/sdxl_control_golden_boathouse.original-provenance.json", + "size": 1796, + "sha256": "sha256:bytes:ecfe216b3884fc1471abf2305a3f4e0216b4b7f2eb05324720e081cbcf945eb1", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, + { + "path": "template-gallery/reviews/sdxl_control_golden_boathouse.original-review.json", + "size": 769, + "sha256": "sha256:bytes:c552f8bfe66a6983be2ab31844c4a468a6132e0e43a8a4553e67a497ec70a8ef", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, + { + "path": "template-gallery/reviews/sdxl_control_golden_boathouse.quality-review.json", + "size": 2609, + "sha256": "sha256:bytes:3fdc382b76e87f894d2a03a5666ce990b33da15e348abf47e7176aaf82fb8f97", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, + { + "path": "template-gallery/reviews/sdxl_control_golden_boathouse.retained-template-provenance.json", + "size": 3955, + "sha256": "sha256:bytes:5d442e9e2219d92d7360b927357bc34f1d8948776601d716369786fcd2a153b9", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, { "path": "template-gallery/reviews/sdxl_control_inpaint_warm_plaster.original-provenance.json", "size": 1498, @@ -7288,6 +7920,42 @@ "runtime" ] }, + { + "path": "template-gallery/reviews/sdxl_pag_snow_cabin.original-provenance.json", + "size": 1325, + "sha256": "sha256:bytes:9f8fc8e1ec02ce87e641958fdbded7f199cee15cde9e077cbb40b12e0e8d7d93", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, + { + "path": "template-gallery/reviews/sdxl_pag_snow_cabin.original-review.json", + "size": 733, + "sha256": "sha256:bytes:5b23c67819bad2bb24ccdbd2058df59a33a560077c260097e5711ef9a74746ba", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, + { + "path": "template-gallery/reviews/sdxl_pag_snow_cabin.quality-review.json", + "size": 2536, + "sha256": "sha256:bytes:d29b39aeafcf213fbcfff098372b9aad723d5a08c8fd63970f98162ed64e8ad3", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, + { + "path": "template-gallery/reviews/sdxl_pag_snow_cabin.retained-template-provenance.json", + "size": 3678, + "sha256": "sha256:bytes:d82c38326bd8b615ed7a934890b979e34f2870f8b0c7aa6f919f0b541d828905", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, { "path": "template-gallery/reviews/sdxl_pix2pix_pale_amber_glass.original-provenance.json", "size": 1287, @@ -8626,6 +9294,28 @@ "width": 512, "height": 512 }, + { + "path": "template-gallery/sd15_control_cobalt_handmade_paper.webp", + "size": 78398, + "sha256": "sha256:bytes:bb215a263ec6f735c37ee9a4c1692c77681492dca527b149d3aa98aff5c3a2ed", + "contentType": "image/webp", + "purposes": [ + "runtime" + ], + "width": 512, + "height": 512 + }, + { + "path": "template-gallery/sd15_control_cobalt_studio_wall_repair.webp", + "size": 45192, + "sha256": "sha256:bytes:249492d460424c36cd16c3785213eb22da9d18b355075e423a11fe5e0d79e16f", + "contentType": "image/webp", + "purposes": [ + "runtime" + ], + "width": 512, + "height": 512 + }, { "path": "template-gallery/sd15_pag_canny_guided_glass.webp", "size": 80516, @@ -8648,6 +9338,17 @@ "width": 512, "height": 512 }, + { + "path": "template-gallery/sd15_pag_control_wall_repair.webp", + "size": 45136, + "sha256": "sha256:bytes:3e1ed497d90cdb3a9aac8adf5828edb265706430b9482426b5a5cd1531e2594e", + "contentType": "image/webp", + "purposes": [ + "runtime" + ], + "width": 512, + "height": 512 + }, { "path": "template-gallery/sd15_pag_mountain_lake_watercolor.webp", "size": 449078, @@ -8692,6 +9393,17 @@ "width": 1024, "height": 1024 }, + { + "path": "template-gallery/sdxl_control_golden_boathouse.webp", + "size": 433038, + "sha256": "sha256:bytes:73d25ad408e3db3308743a876e4b6e8b272496ba44ab4f51b7e1a89dba723f8f", + "contentType": "image/webp", + "purposes": [ + "runtime" + ], + "width": 1024, + "height": 1024 + }, { "path": "template-gallery/sdxl_control_inpaint_warm_plaster.webp", "size": 119380, @@ -8725,6 +9437,17 @@ "width": 1024, "height": 1024 }, + { + "path": "template-gallery/sdxl_pag_snow_cabin.webp", + "size": 329912, + "sha256": "sha256:bytes:22b8ba630d466d07025f3d272878330192f5f0fec9bcea03cb13a38ce171d541", + "contentType": "image/webp", + "purposes": [ + "runtime" + ], + "width": 1024, + "height": 1024 + }, { "path": "template-gallery/sdxl_pix2pix_pale_amber_glass.webp", "size": 135420, @@ -9591,9 +10314,9 @@ "height": 1024 } ], - "assetSetId": "sha256:canonical-json:649f3cf808a22d61c582c6c78e4f62b70fd4854f19d78a8d0fd442d7986fdb30", + "assetSetId": "sha256:canonical-json:48da62e1f9fb4bb7ed02c8536ff3e4c37dfedccdb91dca7e24fd2654eb38bdf2", "status": "ready", - "assetCount": 983, - "totalBytes": 1080562802, + "assetCount": 1056, + "totalBytes": 1089772952, "missingAssets": [] } diff --git a/public/template-gallery/manifest.json b/public/template-gallery/manifest.json index 76796c27..9dd64f60 100644 --- a/public/template-gallery/manifest.json +++ b/public/template-gallery/manifest.json @@ -5335,6 +5335,349 @@ "approvedOriginalReviewPath": "/template-gallery/reviews/flux_klein_open_glacial_lake.original-review.json", "approvedOriginalProvenancePath": "/template-gallery/reviews/flux_klein_open_glacial_lake.original-provenance.json", "approvedMaskPath": "/template-gallery/inputs/flux_klein_open_glacial_lake.mask.png" + }, + { + "templateId": "sd15_control_cobalt_handmade_paper", + "templateLockHash": "tpl_764eeb73", + "promptSettingsHash": "ps_45a62571", + "modelRevision": "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14", + "runtimeFingerprint": "sha256:stable-runtime-v1:ca59c951b7d774013751aa640d99281a0fadaf6a61a7213c2c922347324d00f3", + "graphHash": "sha256:canonical-graph-v1:eba7a5b4abc12764de5075d2119130189e161241038b4bcf1f0dce0acb70f176", + "proofLockHash": "sha256:retained-template-association-v1:93ea923744bf6c9994dd9fd55b3505e0c238abf9600fdd956e99aac032d08b51", + "backendSourceFingerprint": "sha256:backend-source-v1:3227569ff822090d00a80a3a88213d76d5ca43092d2918cec2494962457865a5", + "backendContractFingerprint": "sha256:backend-contract-v1:b5b17d569852e051bdac1d2b3e08b4753392cadd39a1277f893bdf34f19490c5", + "modelCommit": "451f4fe16113bff5a5d2269ed5ad43b0592e9a14", + "templateRevisionHash": "fee63ff957b7394a6472d76a9f662abd1d86193d12ee6c0ab2cf6c77cf1e2b50", + "provenancePath": "/template-gallery/reviews/sd15_control_cobalt_handmade_paper.retained-template-provenance.json", + "provenanceHash": "sha256:canonical-json:dec51f3aa96b6e363b0a17887676f94ecbf3b4fc2aef1f28a8619a60ab533fb9", + "outputPath": "/template-gallery/sd15_control_cobalt_handmade_paper.webp", + "thumbnailPath": "/template-gallery/sd15_control_cobalt_handmade_paper.webp", + "mediaHash": "sha256:decoded-rgba:e0cac92fbe261afe7f803864aa7d499592f96b38470a522deb842b4e8c72602d", + "mediaType": "image", + "verificationTimestamp": "2026-11-23T18:36:20.247Z", + "verificationStatus": "reviewed", + "qualityReviewStatus": "approved_reviewed", + "qualityReviewHash": "sha256:canonical-json:92f97f5e6a9f13697b96467e24700935f702e0709ae57af825f9372314ced341", + "qualityReviewPath": "/template-gallery/reviews/sd15_control_cobalt_handmade_paper.quality-review.json", + "reviewer": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25T07:18:34.900Z", + "beforePath": "/template-gallery/inputs/sd15_control_cobalt_handmade_paper.before.png", + "beforeMediaHash": "sha256:bytes:d143c4922ad498b9bd436d06df424bbff50baf023b93735b53ee401e19e4cbf1", + "afterPath": "/template-gallery/sd15_control_cobalt_handmade_paper.webp", + "width": 512, + "height": 512, + "approvedOriginalReviewPath": "/template-gallery/reviews/sd15_control_cobalt_handmade_paper.original-review.json", + "approvedOriginalProvenancePath": "/template-gallery/reviews/sd15_control_cobalt_handmade_paper.original-provenance.json", + "approvedGuidePath": "/template-gallery/inputs/sd15_control_cobalt_handmade_paper.guide.png" + }, + { + "templateId": "sd15_control_cobalt_studio_wall_repair", + "templateLockHash": "tpl_8b4c43db", + "promptSettingsHash": "ps_e2e07bdd", + "modelRevision": "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14", + "runtimeFingerprint": "sha256:stable-runtime-v1:77bd0cb9b34be74c8e88b27d3a23ab2a074d38df742974da20ad7d536a82a002", + "graphHash": "sha256:canonical-graph-v1:0d2aba098bb0cecaaf59dc601a54f637849a0918166655f546313f69e29aa5ad", + "proofLockHash": "sha256:retained-template-association-v1:3cdcce1039117a8c90c408c114be93d2f82726fcfff1a950519aa9467689a5ac", + "backendSourceFingerprint": "sha256:backend-source-v1:fe1a57b8e352eb66a1a26ebbff5865aaafcf5d55326c4bbcbaf2132ec75f54a8", + "backendContractFingerprint": "sha256:backend-contract-v1:7271d6dfcd46a677217edf40c568c3f5e9ae300200f76976e0cf18fd9b9f2508", + "modelCommit": "451f4fe16113bff5a5d2269ed5ad43b0592e9a14", + "templateRevisionHash": "871cffe6c8b434f4d3afa1f65009582862b565313d180b56d5a61eedd5fd1aa8", + "provenancePath": "/template-gallery/reviews/sd15_control_cobalt_studio_wall_repair.retained-template-provenance.json", + "provenanceHash": "sha256:canonical-json:6046d8640f709cba238d6134f78e9cfe7fce749ceaa0ba4d1fd758fdc569ff63", + "outputPath": "/template-gallery/sd15_control_cobalt_studio_wall_repair.webp", + "thumbnailPath": "/template-gallery/sd15_control_cobalt_studio_wall_repair.webp", + "mediaHash": "sha256:decoded-rgba:e21c0e2217f64a2a30b12b180a6cf16beceb882c5c82333a6e4398851e5e0f0f", + "mediaType": "image", + "verificationTimestamp": "2026-11-23T15:27:55.645Z", + "verificationStatus": "reviewed", + "qualityReviewStatus": "approved_reviewed", + "qualityReviewHash": "sha256:canonical-json:0d2da86484e48de3ea031098c5a4e00cf1735a26bc3358a89ff482722fa6f892", + "qualityReviewPath": "/template-gallery/reviews/sd15_control_cobalt_studio_wall_repair.quality-review.json", + "reviewer": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25T07:18:34.900Z", + "beforePath": "/template-gallery/inputs/sd15_control_cobalt_studio_wall_repair.before.png", + "beforeMediaHash": "sha256:bytes:d143c4922ad498b9bd436d06df424bbff50baf023b93735b53ee401e19e4cbf1", + "afterPath": "/template-gallery/sd15_control_cobalt_studio_wall_repair.webp", + "width": 512, + "height": 512, + "approvedOriginalReviewPath": "/template-gallery/reviews/sd15_control_cobalt_studio_wall_repair.original-review.json", + "approvedOriginalProvenancePath": "/template-gallery/reviews/sd15_control_cobalt_studio_wall_repair.original-provenance.json", + "approvedGuidePath": "/template-gallery/inputs/sd15_control_cobalt_studio_wall_repair.guide.png", + "approvedMaskPath": "/template-gallery/inputs/sd15_control_cobalt_studio_wall_repair.mask.png" + }, + { + "templateId": "sd15_pag_control_wall_repair", + "templateLockHash": "tpl_59e3f364", + "promptSettingsHash": "ps_79b65484", + "modelRevision": "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14", + "runtimeFingerprint": "sha256:stable-runtime-v1:123466003e16827a0dfd551ae93d58995169b9a2df62f676a1892d2b23fdf3ae", + "graphHash": "sha256:canonical-graph-v1:b69353e3e634e8d228cf19a84c525efa3b227384920e592d2e7729d428622881", + "proofLockHash": "sha256:retained-template-association-v1:85bea9d3bb910cddea21fe9195729060e24a8ac67ece98f2f69929ba04ab054f", + "backendSourceFingerprint": "sha256:backend-source-v1:fe1a57b8e352eb66a1a26ebbff5865aaafcf5d55326c4bbcbaf2132ec75f54a8", + "backendContractFingerprint": "sha256:backend-contract-v1:7271d6dfcd46a677217edf40c568c3f5e9ae300200f76976e0cf18fd9b9f2508", + "modelCommit": "451f4fe16113bff5a5d2269ed5ad43b0592e9a14", + "templateRevisionHash": "155adb3c21e9aacbf62ac042d0e2d3b5ba9987331edd79dcff446b6053438a98", + "provenancePath": "/template-gallery/reviews/sd15_pag_control_wall_repair.retained-template-provenance.json", + "provenanceHash": "sha256:canonical-json:8ac6a03a9480005cec49f8957b6abd5f0cfb300eee0228e94415c7c0ea1f380c", + "outputPath": "/template-gallery/sd15_pag_control_wall_repair.webp", + "thumbnailPath": "/template-gallery/sd15_pag_control_wall_repair.webp", + "mediaHash": "sha256:decoded-rgba:595389e2f928029239fdf335758e56e7dde20d9dcd37b117bdb9b05126a917ad", + "mediaType": "image", + "verificationTimestamp": "2026-11-23T15:28:49.418Z", + "verificationStatus": "reviewed", + "qualityReviewStatus": "approved_reviewed", + "qualityReviewHash": "sha256:canonical-json:3a5b6fc916a2750fa6f4f438dfc316d90860cd3da715ecfe1e168829c88278dd", + "qualityReviewPath": "/template-gallery/reviews/sd15_pag_control_wall_repair.quality-review.json", + "reviewer": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25T07:18:34.900Z", + "beforePath": "/template-gallery/inputs/sd15_pag_control_wall_repair.before.png", + "beforeMediaHash": "sha256:bytes:d143c4922ad498b9bd436d06df424bbff50baf023b93735b53ee401e19e4cbf1", + "afterPath": "/template-gallery/sd15_pag_control_wall_repair.webp", + "width": 512, + "height": 512, + "approvedOriginalReviewPath": "/template-gallery/reviews/sd15_pag_control_wall_repair.original-review.json", + "approvedOriginalProvenancePath": "/template-gallery/reviews/sd15_pag_control_wall_repair.original-provenance.json", + "approvedGuidePath": "/template-gallery/inputs/sd15_pag_control_wall_repair.guide.png", + "approvedMaskPath": "/template-gallery/inputs/sd15_pag_control_wall_repair.mask.png" + }, + { + "templateId": "sdxl_pag_snow_cabin", + "templateLockHash": "tpl_50666a60", + "promptSettingsHash": "ps_109abbf3", + "modelRevision": "stabilityai/stable-diffusion-xl-base-1.0@462165984030d82259a11f4367a4eed129e94a7b", + "runtimeFingerprint": "sha256:stable-runtime-v1:0bbad726140f719e28efb3bd524589277c1ff4de18e2e42875a94bd877d43708", + "graphHash": "sha256:canonical-graph-v1:24f301293a57d60503933f0cd2a278f6ee932db5617a339310d0a25c36eaa175", + "proofLockHash": "sha256:retained-template-association-v1:708e01ec5e440bb36bd1e634948567d4013e1ff236367f290af37f81a4265ee4", + "backendSourceFingerprint": "sha256:backend-source-v1:e3aea8f8d102572ad10fdd0700f0c42d92061e864ede89777efcd6a3269770a8", + "backendContractFingerprint": "sha256:backend-contract-v1:ad16452bc59ad56fa75df0e9f2f3b913f28233c906d4e37c4518fbc978d47953", + "modelCommit": "462165984030d82259a11f4367a4eed129e94a7b", + "templateRevisionHash": "1c302242a6a0e304537b15c53c8cb94dcffae8955039b0cbf3759331122864e1", + "provenancePath": "/template-gallery/reviews/sdxl_pag_snow_cabin.retained-template-provenance.json", + "provenanceHash": "sha256:canonical-json:3df8f0931ff9196096b671f7128fe5a813bd5761da6e9d19df311f108636c1ab", + "outputPath": "/template-gallery/sdxl_pag_snow_cabin.webp", + "thumbnailPath": "/template-gallery/sdxl_pag_snow_cabin.webp", + "mediaHash": "sha256:decoded-rgba:6b0d095a4d2bb23e15727d777670be26b8af346a553959af5a1979f0a43d02b0", + "mediaType": "image", + "verificationTimestamp": "2026-11-23T20:11:04.963Z", + "verificationStatus": "reviewed", + "qualityReviewStatus": "approved_reviewed", + "qualityReviewHash": "sha256:canonical-json:bf974b01a868d0437036451fa223212fec2247a0acb22745cb9ba52dfb5368cf", + "qualityReviewPath": "/template-gallery/reviews/sdxl_pag_snow_cabin.quality-review.json", + "reviewer": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25T07:18:34.900Z", + "beforePath": "/template-gallery/inputs/sdxl_pag_snow_cabin.before.png", + "beforeMediaHash": "sha256:bytes:ca250462efc77625134ebe305b2ee67281a1dcf8919e45299c648f0fdacf919a", + "afterPath": "/template-gallery/sdxl_pag_snow_cabin.webp", + "width": 1024, + "height": 1024, + "approvedOriginalReviewPath": "/template-gallery/reviews/sdxl_pag_snow_cabin.original-review.json", + "approvedOriginalProvenancePath": "/template-gallery/reviews/sdxl_pag_snow_cabin.original-provenance.json" + }, + { + "templateId": "flux_canny_clean_backdrop", + "templateLockHash": "tpl_c1982b94", + "promptSettingsHash": "ps_491e886d", + "modelRevision": "black-forest-labs/FLUX.1-Canny-dev@27c3d8bdc17509b47cf4fd9ba25ab1c7508a69a2", + "runtimeFingerprint": "sha256:stable-runtime-v1:ab1eb4d6c1174fb4f4b67c73b994e46a7f31b02746da61cd3cdfed9bc6d9aa3d", + "graphHash": "sha256:canonical-graph-v1:567248f43a620bfcfb34690914d010f2aba19a147e132f1ada00aeba9fcde561", + "proofLockHash": "sha256:retained-template-association-v1:a542bb49f8875f81571e98230023b9c7196aa23570667f051d66bff824639ed2", + "backendSourceFingerprint": "sha256:backend-source-v1:585997dc1146ec6effb20c260272babc01713ecdea4f78a0872c12ef2568ef83", + "backendContractFingerprint": "sha256:backend-contract-v1:d6613341ff1a983e0a3c6d3c8f0efef39c5c1ec3e109197f6466cfd72a3f6f6e", + "modelCommit": "27c3d8bdc17509b47cf4fd9ba25ab1c7508a69a2", + "templateRevisionHash": "ddec004faf0dea8ab0683f015a22350f6086d28d6b41ecc57f2c0abf81ca1755", + "provenancePath": "/template-gallery/reviews/flux_canny_clean_backdrop.retained-template-provenance.json", + "provenanceHash": "sha256:canonical-json:0a185446e43213c29b93fc2012fd2d44b13491b281d446a688b0efce1af38408", + "outputPath": "/template-gallery/flux_canny_clean_backdrop.webp", + "thumbnailPath": "/template-gallery/flux_canny_clean_backdrop.webp", + "mediaHash": "sha256:decoded-rgba:c537273ac1c469f73878e1148c21345b082444c08669594edfdcf86f2db8fc69", + "mediaType": "image", + "verificationTimestamp": "2026-11-24T14:06:06.057Z", + "verificationStatus": "reviewed", + "qualityReviewStatus": "approved_reviewed", + "qualityReviewHash": "sha256:canonical-json:4876994441f9fcee730eb6cce19e02dc0cc23ae4a3adc87e7743752ee79e678b", + "qualityReviewPath": "/template-gallery/reviews/flux_canny_clean_backdrop.quality-review.json", + "reviewer": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25T07:18:34.900Z", + "beforePath": "/template-gallery/inputs/flux_canny_clean_backdrop.before.png", + "beforeMediaHash": "sha256:bytes:e75c20f0e8a74e283b996bf526e6ea74535ed24125ad97c2d92508d3435d7a87", + "afterPath": "/template-gallery/flux_canny_clean_backdrop.webp", + "width": 1024, + "height": 1024, + "approvedOriginalReviewPath": "/template-gallery/reviews/flux_canny_clean_backdrop.original-review.json", + "approvedOriginalProvenancePath": "/template-gallery/reviews/flux_canny_clean_backdrop.original-provenance.json", + "approvedGuidePath": "/template-gallery/inputs/flux_canny_clean_backdrop.guide.png", + "approvedMaskPath": "/template-gallery/inputs/flux_canny_clean_backdrop.mask.png" + }, + { + "templateId": "flux_depth_marine_bow_repair", + "templateLockHash": "tpl_d739eca3", + "promptSettingsHash": "ps_e637018a", + "modelRevision": "black-forest-labs/FLUX.1-Depth-dev@fb5e9b1bae41b8c8adcea4ea2a87b74dd298f07a", + "runtimeFingerprint": "sha256:stable-runtime-v1:05f50837d817ace549d94de69362af536134a1823e41e570c34fe3083ba1a039", + "graphHash": "sha256:canonical-graph-v1:ffd5894d66a9372f95715d365e9698c48b72b1422aebad4d1a0f14932b2f03bd", + "proofLockHash": "sha256:retained-template-association-v1:102a8c963411353cb08d95c83ce4cddc11bc5e3afde34ae876648ecdfcca2f86", + "backendSourceFingerprint": "sha256:backend-source-v1:585997dc1146ec6effb20c260272babc01713ecdea4f78a0872c12ef2568ef83", + "backendContractFingerprint": "sha256:backend-contract-v1:d6613341ff1a983e0a3c6d3c8f0efef39c5c1ec3e109197f6466cfd72a3f6f6e", + "modelCommit": "fb5e9b1bae41b8c8adcea4ea2a87b74dd298f07a", + "templateRevisionHash": "c36171bcdbd3076f271fb33743708207b8aeb0f4bfb68be30f7ee7a0239b0869", + "provenancePath": "/template-gallery/reviews/flux_depth_marine_bow_repair.retained-template-provenance.json", + "provenanceHash": "sha256:canonical-json:54b39d76bdd56efe6602b172f05d99379388030ad22daa0c723e6c2d2e5e7b1c", + "outputPath": "/template-gallery/flux_depth_marine_bow_repair.webp", + "thumbnailPath": "/template-gallery/flux_depth_marine_bow_repair.webp", + "mediaHash": "sha256:decoded-rgba:d3c15ee2e8898c292fb14523c132516fae6c1cc163bccb64a0b91998278b9bd2", + "mediaType": "image", + "verificationTimestamp": "2026-11-24T14:25:47.349Z", + "verificationStatus": "reviewed", + "qualityReviewStatus": "approved_reviewed", + "qualityReviewHash": "sha256:canonical-json:3e497d5ca27ee71d4958bbe519c4b1919bb4f8f898796fa8218c71ff23c3bcf3", + "qualityReviewPath": "/template-gallery/reviews/flux_depth_marine_bow_repair.quality-review.json", + "reviewer": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25T07:18:34.900Z", + "beforePath": "/template-gallery/inputs/flux_depth_marine_bow_repair.before.webp", + "beforeMediaHash": "sha256:bytes:c3d52c29b6a8cae80d2feffb8a978cded8b34509abd09216f665ab3af13f189e", + "afterPath": "/template-gallery/flux_depth_marine_bow_repair.webp", + "width": 1024, + "height": 1024, + "approvedOriginalReviewPath": "/template-gallery/reviews/flux_depth_marine_bow_repair.original-review.json", + "approvedOriginalProvenancePath": "/template-gallery/reviews/flux_depth_marine_bow_repair.original-provenance.json", + "approvedGuidePath": "/template-gallery/inputs/flux_depth_marine_bow_repair.guide.png", + "approvedMaskPath": "/template-gallery/inputs/flux_depth_marine_bow_repair.mask.png" + }, + { + "templateId": "sdxl_control_golden_boathouse", + "templateLockHash": "tpl_249a8d5d", + "promptSettingsHash": "ps_97318fec", + "modelRevision": "stabilityai/stable-diffusion-xl-base-1.0@462165984030d82259a11f4367a4eed129e94a7b", + "runtimeFingerprint": "sha256:stable-runtime-v1:c2642af585975d6b55b551bcdfb8606edb2fab4b37a05875aa3a8024270b6eab", + "graphHash": "sha256:canonical-graph-v1:6d79e032074b89f72078418c91345d440f5e348f2890a177b8c33c801b0d385f", + "proofLockHash": "sha256:retained-template-association-v1:c4b1867566c0f755a4b3ec0a4c02c98d263b16b3ed6d532b997192256ce66390", + "backendSourceFingerprint": "sha256:backend-source-v1:2faeaaa03b7902a03df5cd0cea38129b7419f6d844125c0ca7e29ccfaf635290", + "backendContractFingerprint": "sha256:backend-contract-v1:b5b17d569852e051bdac1d2b3e08b4753392cadd39a1277f893bdf34f19490c5", + "modelCommit": "462165984030d82259a11f4367a4eed129e94a7b", + "templateRevisionHash": "94724166ff9512b26bca310deb3e9d2a16f88116cc157e42694d1a459bfc06cd", + "provenancePath": "/template-gallery/reviews/sdxl_control_golden_boathouse.retained-template-provenance.json", + "provenanceHash": "sha256:canonical-json:7df85c309b6b7ef4a637ba38326caf5bd239c1027a56ac732005fb47077c8f59", + "outputPath": "/template-gallery/sdxl_control_golden_boathouse.webp", + "thumbnailPath": "/template-gallery/sdxl_control_golden_boathouse.webp", + "mediaHash": "sha256:decoded-rgba:b56fae04919f1f910296af866c6c76dbce9aab94d8e34c1b5043819e33bbaab3", + "mediaType": "image", + "verificationTimestamp": "2026-11-25T04:34:53.900Z", + "verificationStatus": "reviewed", + "qualityReviewStatus": "approved_reviewed", + "qualityReviewHash": "sha256:canonical-json:f7b8eacdb6bee35c03faf7b213b6716a2a585340d892285da8f53bb2af5c4681", + "qualityReviewPath": "/template-gallery/reviews/sdxl_control_golden_boathouse.quality-review.json", + "reviewer": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25T07:18:34.900Z", + "beforePath": "/template-gallery/inputs/sdxl_control_golden_boathouse.before.png", + "beforeMediaHash": "sha256:bytes:e1d9736125cad717896f0c7d5274a6373676559f250d76cedcc8f8aae9379ec6", + "afterPath": "/template-gallery/sdxl_control_golden_boathouse.webp", + "width": 1024, + "height": 1024, + "approvedOriginalReviewPath": "/template-gallery/reviews/sdxl_control_golden_boathouse.original-review.json", + "approvedOriginalProvenancePath": "/template-gallery/reviews/sdxl_control_golden_boathouse.original-provenance.json", + "approvedGuidePath": "/template-gallery/inputs/sdxl_control_golden_boathouse.guide.png" + }, + { + "templateId": "qwen_2511_terracotta_material_transfer", + "templateLockHash": "tpl_5f771a9f", + "promptSettingsHash": "ps_4e83ee4e", + "modelRevision": "Qwen/Qwen-Image-Edit-2511@6f3ccc0b56e431dc6a0c2b2039706d7d26f22cb9", + "runtimeFingerprint": "sha256:stable-runtime-v1:1aa169f604d929518e4774fe3ff943979a21f2d3b7724f6e81782e94d10a8ed1", + "graphHash": "sha256:canonical-graph-v1:c0d621c2ba7c54d24a8a3a3e3a584bba49979cf3f26ec2fcf30bf335fc15f4fc", + "proofLockHash": "sha256:retained-template-association-v1:e2bf330812904727eab1dffb5520822f0d6c3945b7d59da80b327effc7c3b7ff", + "backendSourceFingerprint": "sha256:backend-source-v1:e3aea8f8d102572ad10fdd0700f0c42d92061e864ede89777efcd6a3269770a8", + "backendContractFingerprint": "sha256:backend-contract-v1:315617df789a8a5f57426692318e197c13786098718305edd1927471b5b9c194", + "modelCommit": "6f3ccc0b56e431dc6a0c2b2039706d7d26f22cb9", + "templateRevisionHash": "46a74671317b1b01f4ee5c7531e4d9fa32b8ba386bc9ba3321632f0168515b13", + "provenancePath": "/template-gallery/reviews/qwen_2511_terracotta_material_transfer.retained-template-provenance.json", + "provenanceHash": "sha256:canonical-json:025effaec888409dcf8e47c546c952c46ae7a009923b0c771e4165ba93aa2200", + "outputPath": "/template-gallery/qwen_2511_terracotta_material_transfer.webp", + "thumbnailPath": "/template-gallery/qwen_2511_terracotta_material_transfer.webp", + "mediaHash": "sha256:decoded-rgba:9267078498cd820c114171d61d8edd9c9abf8f3a4a23d491c663f14f931c6e7d", + "mediaType": "image", + "verificationTimestamp": "2026-11-23T20:47:31.989Z", + "verificationStatus": "reviewed", + "qualityReviewStatus": "approved_reviewed", + "qualityReviewHash": "sha256:canonical-json:2f499ba63b214e622476d885cadafed28dfa3876660c4e0191c0b86e7ec7fd3b", + "qualityReviewPath": "/template-gallery/reviews/qwen_2511_terracotta_material_transfer.quality-review.json", + "reviewer": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25T07:18:34.900Z", + "beforePath": "/template-gallery/inputs/qwen_2511_terracotta_material_transfer.before.png", + "beforeMediaHash": "sha256:bytes:0a41a9c56b98945e60c96ef796660c35b2cab7bf0b36d5e84ab0d97ef97f0a5a", + "afterPath": "/template-gallery/qwen_2511_terracotta_material_transfer.webp", + "width": 1024, + "height": 1024, + "approvedOriginalReviewPath": "/template-gallery/reviews/qwen_2511_terracotta_material_transfer.original-review.json", + "approvedOriginalProvenancePath": "/template-gallery/reviews/qwen_2511_terracotta_material_transfer.original-provenance.json", + "approvedSecondaryReferencePath": "/template-gallery/inputs/qwen_2511_terracotta_material_transfer.reference-2.png" + }, + { + "templateId": "joy_plus_terracotta_on_limestone", + "templateLockHash": "tpl_871e0927", + "promptSettingsHash": "ps_79969b6a", + "modelRevision": "jdopensource/JoyAI-Image-Edit-Plus-Diffusers@c2686460c7b64d8aa11bc4d0da423fb316b33f9e", + "runtimeFingerprint": "sha256:stable-runtime-v1:b3164537803a4f2c7646077d7f4002a2ddd581e4bf75a6155f1ac71d45724038", + "graphHash": "sha256:canonical-graph-v1:45c63449a5f682f068eaaad12a3cb73dbae46dad5924c18609cbba30d8937f8f", + "proofLockHash": "sha256:retained-template-association-v1:17707ceedea9ea9275e0cfe01c2e7e68d86e5e2bb2c8de418609de274e62e43b", + "backendSourceFingerprint": "sha256:backend-source-v1:585997dc1146ec6effb20c260272babc01713ecdea4f78a0872c12ef2568ef83", + "backendContractFingerprint": "sha256:backend-contract-v1:315617df789a8a5f57426692318e197c13786098718305edd1927471b5b9c194", + "modelCommit": "c2686460c7b64d8aa11bc4d0da423fb316b33f9e", + "templateRevisionHash": "2250434e38d29a0c2d27808d6f713bf75965dc3f5ade4a033a11d194ecd687b9", + "provenancePath": "/template-gallery/reviews/joy_plus_terracotta_on_limestone.retained-template-provenance.json", + "provenanceHash": "sha256:canonical-json:4a5032adb1b890b3f3969471dbf6879f1a6aa6efb22251451980efa9c4f21a0d", + "outputPath": "/template-gallery/joy_plus_terracotta_on_limestone.webp", + "thumbnailPath": "/template-gallery/joy_plus_terracotta_on_limestone.webp", + "mediaHash": "sha256:decoded-rgba:0946eeac2f43ba5d1f4c97ef53826ef4c4764a7e41021e915195420d60dbe157", + "mediaType": "image", + "verificationTimestamp": "2026-11-24T05:23:27.411Z", + "verificationStatus": "reviewed", + "qualityReviewStatus": "approved_reviewed", + "qualityReviewHash": "sha256:canonical-json:6dbbd0dc64a21ced4d35ec6c75e427a137333d5bb0ec87212865428d851cb7d5", + "qualityReviewPath": "/template-gallery/reviews/joy_plus_terracotta_on_limestone.quality-review.json", + "reviewer": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25T07:18:34.900Z", + "beforePath": "/template-gallery/inputs/joy_plus_terracotta_on_limestone.before.png", + "beforeMediaHash": "sha256:bytes:0a41a9c56b98945e60c96ef796660c35b2cab7bf0b36d5e84ab0d97ef97f0a5a", + "afterPath": "/template-gallery/joy_plus_terracotta_on_limestone.webp", + "width": 1024, + "height": 1024, + "approvedOriginalReviewPath": "/template-gallery/reviews/joy_plus_terracotta_on_limestone.original-review.json", + "approvedOriginalProvenancePath": "/template-gallery/reviews/joy_plus_terracotta_on_limestone.original-provenance.json", + "approvedSecondaryReferencePath": "/template-gallery/inputs/joy_plus_terracotta_on_limestone.reference-2.png" + }, + { + "templateId": "omnigen_red_enamel_folded_linen", + "templateLockHash": "tpl_70aa866a", + "promptSettingsHash": "ps_cb1c21de", + "modelRevision": "Shitao/OmniGen-v1-diffusers@016e2f61d12a98303f6bbdf122687694d7984268", + "runtimeFingerprint": "sha256:stable-runtime-v1:de99e7b1729318c3e5b2dde98b51e5feb07ae329310f9b2da76831df1410cae7", + "graphHash": "sha256:canonical-graph-v1:4d2c6321c55423646e3776f57b41f32a0b7da6ab3d3b74daa49bc81fd17f9793", + "proofLockHash": "sha256:retained-template-association-v1:07d12b8b545b4d6325fde5b0245261d64aca72d4ef18376aca6d18313e2804e6", + "backendSourceFingerprint": "sha256:backend-source-v1:b29a5b0d317aaa781ae2a5205b46b518eea5a3d68a214eb0968dba4ac0660af7", + "backendContractFingerprint": "sha256:backend-contract-v1:315617df789a8a5f57426692318e197c13786098718305edd1927471b5b9c194", + "modelCommit": "016e2f61d12a98303f6bbdf122687694d7984268", + "templateRevisionHash": "595a3209f4bfb41d4930f0368e75bab6a19602ad0eae4d44dc535efd0a059652", + "provenancePath": "/template-gallery/reviews/omnigen_red_enamel_folded_linen.retained-template-provenance.json", + "provenanceHash": "sha256:canonical-json:ff4d5e97a03bd20be2fabd88130e00c2e61493ec3ec7a133e5c1d29c3fb4a0fa", + "outputPath": "/template-gallery/omnigen_red_enamel_folded_linen.webp", + "thumbnailPath": "/template-gallery/omnigen_red_enamel_folded_linen.webp", + "mediaHash": "sha256:decoded-rgba:bb20f33f0366c9b8f1b9b7ccaf62225b9d42c5a7f191586fb7eec98ccfc52494", + "mediaType": "image", + "verificationTimestamp": "2026-11-25T05:12:08.254Z", + "verificationStatus": "reviewed", + "qualityReviewStatus": "approved_reviewed", + "qualityReviewHash": "sha256:canonical-json:75731a1ced2a0521870719bf063dae330cebb1c88dcba611e8f1d919b822ee07", + "qualityReviewPath": "/template-gallery/reviews/omnigen_red_enamel_folded_linen.quality-review.json", + "reviewer": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25T07:18:34.900Z", + "beforePath": "/template-gallery/inputs/omnigen_red_enamel_folded_linen.before.png", + "beforeMediaHash": "sha256:bytes:4077a18ad81b7fb6a1e7285777cac6241f6c0109a680945487b81e8561f30d8c", + "afterPath": "/template-gallery/omnigen_red_enamel_folded_linen.webp", + "width": 1024, + "height": 1024, + "approvedOriginalReviewPath": "/template-gallery/reviews/omnigen_red_enamel_folded_linen.original-review.json", + "approvedOriginalProvenancePath": "/template-gallery/reviews/omnigen_red_enamel_folded_linen.original-provenance.json", + "approvedSecondaryReferencePath": "/template-gallery/inputs/omnigen_red_enamel_folded_linen.reference-2.png" } ] } diff --git a/scripts/bundle-budget.mjs b/scripts/bundle-budget.mjs index 0cf1cc34..0e34f3f0 100644 --- a/scripts/bundle-budget.mjs +++ b/scripts/bundle-budget.mjs @@ -493,6 +493,8 @@ const SOURCE_LICENSES = new URL('../public/THIRD_PARTY_LICENSES.txt', import.met // 504492/682980/346033 largest/startup/deferred gzip bytes: the reviewed // migration ceilings below still pass with 8/12/304 bytes of headroom. const MAX_STARTUP_CHUNK_GZIP_BYTES = + // Guided and ordered-reference recipes with loader revision binding measure 555146 bytes. + 3298 + // Eighteen saved edit, inpaint and outpaint recipes measure 551848 bytes. 6227 + // Retained Gallery expansion moves approval-only hashes to build-time metadata. @@ -797,6 +799,8 @@ const MAX_STARTUP_CHUNK_GZIP_BYTES = // The same build measures 673359 aggregate startup bytes (+45 over the cap). // Keep 19 bytes of headroom; deferred limits and loading boundaries stay fixed. const MAX_STARTUP_GZIP_BYTES = + // Those ten recipes measure 733631 total startup bytes. + 3294 + // The same source-bound recipes measure 730337 total startup bytes. 6228 + // The same approved recipes measure 724109 total startup bytes. diff --git a/scripts/retained-gallery-provenance.mjs b/scripts/retained-gallery-provenance.mjs index 8fddbd3d..67dee6ba 100644 --- a/scripts/retained-gallery-provenance.mjs +++ b/scripts/retained-gallery-provenance.mjs @@ -4,6 +4,12 @@ import { canonicalJsonHash } from './canonical-json.mjs'; export const RETAINED_GALLERY_PROVENANCE_FORMAT = 'modiff.gallery.retained-template-provenance.v1'; +export function retainedGalleryFileLimit(path) { + if (path.endsWith('.mp4')) return 64 * 1024 * 1024; + if (/\.(png|webp)$/u.test(path)) return 8 * 1024 * 1024; + return 2 * 1024 * 1024; +} + // The public copy omits the original task ID and all underlying capture files. // Pin the exact redacted associations that the maintainer reviewed against the // original runs, so a rewritten association cannot approve itself. diff --git a/scripts/retained-gallery-release.mjs b/scripts/retained-gallery-release.mjs index bb1ac038..6191fcb4 100644 --- a/scripts/retained-gallery-release.mjs +++ b/scripts/retained-gallery-release.mjs @@ -6,7 +6,11 @@ import { galleryVerificationScope, validateQualityReview, } from './template-gallery-harness.mjs'; -import { validateRetainedGalleryProvenance, verifyRetainedApprovedFiles } from './retained-gallery-provenance.mjs'; +import { + retainedGalleryFileLimit, + validateRetainedGalleryProvenance, + verifyRetainedApprovedFiles, +} from './retained-gallery-provenance.mjs'; import { verifyRetainedSpeechGalleryEvidence } from './retained-speech-gallery-evidence.mjs'; const same = (actual, expected, label) => assert.deepEqual(actual, expected, label); @@ -71,6 +75,15 @@ function assertRetainedBatchEvidence({ assert.equal(association.approvedFiles.approvedMaskPath?.sha256, recipe.maskSha256); assert.equal(association.approvedFiles.approvedGuidePath?.sha256, recipe.guideSha256); assert.equal(association.approvedFiles.approvedClosingFramePath?.sha256, recipe.lastFrameSha256); + assert.equal(association.approvedFiles.approvedSecondaryReferencePath?.sha256, recipe.secondaryReferenceSha256); + if (recipe.secondaryReferenceSha256) { + assert.equal(recipe.template.mode, 'multi_image_reference_edit'); + same( + association.output.orderedReferenceHashes, + [recipe.inputSha256, recipe.secondaryReferenceSha256].map((hash) => 'sha256:bytes:' + hash), + 'Retained Gallery reference order differs from the template.', + ); + } assert.equal( association.output.maskEncodedSha256, recipe.maskSha256 ? 'sha256:bytes:' + recipe.maskSha256 : undefined, @@ -112,6 +125,14 @@ function assertRetainedBatchEvidence({ assert.equal(nativeReceipt.maskBinding?.sha256, recipe.maskSha256, label); assert.equal(nativeReceipt.guideBinding?.sha256, recipe.guideSha256, label); assert.equal(nativeReceipt.lastFrameBinding?.sha256, recipe.lastFrameSha256, label); + if (recipe.secondaryReferenceSha256) { + same( + nativeReceipt.referenceBindings?.map(({ inputIndex, sha256 }) => ({ inputIndex, sha256 })), + [{ inputIndex: 1, sha256: recipe.secondaryReferenceSha256 }], + label, + ); + assert.equal(nativeReceipt.inputBinding?.nodeId, nativeReceipt.referenceBindings[0].nodeId, label); + } if (recipe.workflowId === 'QwenImageLayeredPipeline:layer_decomposition') { const { orderedLayerItems } = association.output; same(nativeReceipt.decodedOutput, { kind: 'image_collection', items: orderedLayerItems }, label); @@ -235,7 +256,7 @@ export function createRetainedGalleryReleaseReader({ clientRoot, source, registr bytes: asset.size, sha256: asset.sha256.slice('sha256:bytes:'.length), }, - 2 * 1024 * 1024, + retainedGalleryFileLimit(asset.path), ).bytes; }; diff --git a/scripts/retained-gallery-templates.test.mjs b/scripts/retained-gallery-templates.test.mjs index 6afbcb5c..9cc5d51d 100644 --- a/scripts/retained-gallery-templates.test.mjs +++ b/scripts/retained-gallery-templates.test.mjs @@ -184,7 +184,15 @@ test('retained Gallery recipes preserve the native graph identities and standalo Object.values(capture.inputs ?? [capture.input]) .map(({ file }) => file.sha256) .sort(), - [recipe.inputSha256, recipe.maskSha256, recipe.guideSha256, recipe.lastFrameSha256].filter(Boolean).sort(), + [ + recipe.inputSha256, + recipe.maskSha256, + recipe.guideSha256, + recipe.lastFrameSha256, + recipe.secondaryReferenceSha256, + ] + .filter(Boolean) + .sort(), ); } } else if (recipe.inputLocatorSha256) { @@ -284,6 +292,7 @@ test('fresh Expert recipes prepare with current backend specs and without a gene 'Generate', 'Inpaint', 'ControlGenerate', + 'ControlEdit', 'ControlInpaint', 'LayerDecompose', 'UnconditionalGenerate', @@ -321,7 +330,10 @@ test('fresh Expert recipes prepare with current backend specs and without a gene : undefined; const input = recipe.inputSha256 && inputBinding?.field !== 'controlImage' - ? [recipe.inputFileName ?? (audio ? authorsAudioFixture : 'review-source-image.png')] + ? [ + recipe.inputFileName ?? (audio ? authorsAudioFixture : 'review-source-image.png'), + ...(recipe.secondaryReferenceSha256 ? ['review-second-reference.png'] : []), + ] : []; const mask = recipe.maskSha256 ? 'review-mask-image.png' : undefined; const tabId = studio.getState().createWorkflowTab(template.label, undefined, 'template', template.id); @@ -399,7 +411,7 @@ test('fresh Expert recipes prepare with current backend specs and without a gene continue; } assert.deepEqual(loader.params.model_id.value, { source: 'hub', value: template.modelArtifact.value }); - assert.equal(loader.params.revision.value, template.modelArtifact.revision); + assert.equal(loader.params.revision.value, template.modelArtifact.revision, template.id); assert.equal(loader.params.dtype.value, template.example.lockedSettings.dtype ?? 'float32'); assert.equal(loader.params.device.value, form.device); if (template.id === 'longcat_last_tram_at_dusk') { @@ -423,6 +435,7 @@ test('fresh Expert recipes prepare with current backend specs and without a gene 'Edit', 'Inpaint', 'ControlGenerate', + 'ControlEdit', 'ControlInpaint', 'LayerDecompose', 'GenerateAnyToAny', @@ -456,8 +469,16 @@ test('fresh Expert recipes prepare with current backend specs and without a gene assert.equal(loader.params.quantization_mode.value, 'none'); } const sources = actions.filter(({ module, action }) => module === 'modules.Image' && action === 'Load'); - assert.equal(sources.length, input.length + Number(Boolean(mask)) + Number(Boolean(guide))); - if (input.length) assert.ok(sources.some(({ params }) => params.file.value?.includes(input[0]))); + assert.equal(sources.length, Number(input.length > 0) + Number(Boolean(mask)) + Number(Boolean(guide))); + if (input.length) { + assert.ok( + sources.some(({ params }) => { + const files = [params.file.value].flat(); + return files.length === input.length && files.every((file, index) => file === input[index]); + }), + `${template.id} source inputs`, + ); + } if (mask) assert.ok(sources.some(({ params }) => params.file.value?.includes(mask))); if (guide) { assert.ok(sources.some(({ params }) => params.file.value?.includes(guide))); diff --git a/scripts/template-gallery-harness.mjs b/scripts/template-gallery-harness.mjs index 783f0f29..303439aa 100644 --- a/scripts/template-gallery-harness.mjs +++ b/scripts/template-gallery-harness.mjs @@ -18,6 +18,7 @@ import templateGalleryContract from '../src/studio/templateGalleryContract.json' import { canonicalJsonHash as storageJsonHash } from './canonical-json.mjs'; import { RETAINED_GALLERY_PROVENANCE_FORMAT, + retainedGalleryFileLimit, validateRetainedGalleryProvenance, } from './retained-gallery-provenance.mjs'; import { validateTemplateAssetRelease, validateTemplateAssetSource } from './template-asset-source-contract.ts'; @@ -2784,10 +2785,13 @@ export async function verifyGallery( const { runtimeFingerprint: _redactedRuntimeFingerprint, ...publiclyRecomputableBindings } = expectedBindings; if (retainedProvenance) { const retainedBefore = entry.beforePath && join(publicRoot, entry.beforePath.slice(1)); - const readAvailable = (filename, assetPath) => - filename && !isWithheld(assetPath) && existsSync(filename) && lstatSync(filename).size <= 2 * 1024 * 1024 + const readAvailable = (filename, assetPath) => { + if (!filename || isWithheld(assetPath) || !existsSync(filename)) return undefined; + const stat = lstatSync(filename); + return stat.isFile() && stat.size <= retainedGalleryFileLimit(assetPath) ? readFileSync(filename) : undefined; + }; const provenanceErrors = validateRetainedGalleryProvenance(bundle, entry, { templateRevisionHash: template && diff --git a/src/studio/graphBridge.ts b/src/studio/graphBridge.ts index 44db5358..5e86180d 100644 --- a/src/studio/graphBridge.ts +++ b/src/studio/graphBridge.ts @@ -3471,6 +3471,14 @@ function applyExecutionSpecValues(binding: StudioGraphBinding, form: StudioFormS if (source === 'artifact') setModelRepo(nodeId, String(values[source])); else setParamIfPresent(nodeId, [param], values[source]); } + if (pinnedTemplateArtifact && !spec.bindings.some(([, , source]) => source === 'defaultRevision')) { + // Some loaders declare the repository binding without a default revision. + // A reviewed Expert template can still pin that same loader's revision. + const artifactRole = spec.bindings.find(([, , source]) => source === 'artifact')?.[0]; + if (artifactRole) { + setParamIfPresent(binding.nodes[artifactRole], ['revision'], pinnedTemplateArtifact.revision); + } + } if (binding.nodes.qwenQuantization) applyExpertQuantizationConfig(binding, form); } diff --git a/src/studio/retainedGalleryApprovedBatch.ts b/src/studio/retainedGalleryApprovedBatch.ts index 7913ef0e..b70ff739 100644 --- a/src/studio/retainedGalleryApprovedBatch.ts +++ b/src/studio/retainedGalleryApprovedBatch.ts @@ -5561,4 +5561,968 @@ export const APPROVED_RETAINED_TEMPLATES: StudioTemplate[] = [ 'Reproduce the reviewed Open View across the Glacial Lake example with the saved prompt, settings and model revision.', runtimeReuseKey: 'sha256:canonical-graph-v1:e243008b76ef57a46997f5a6b9e12c84dd7dee5ae863392b8a1a6116869a6e9a', }, + { + id: 'sd15_control_cobalt_handmade_paper', + label: 'Stable Diffusion 1.5 — Control edit image: Cobalt Cube on Handmade Paper', + mode: 'control_edit_image', + modelType: 'StableDiffusionPipeline', + intentGroup: 'edit_image', + category: 'edit', + inputBindings: [ + { + id: 'source-image', + label: 'Source Image', + mediaType: 'image', + field: 'referenceImages', + origin: 'user', + requiredAt: 'workflow_start', + count: 1, + }, + { + id: 'control-guide', + label: 'Control Image', + mediaType: 'image', + field: 'controlImage', + origin: 'user', + requiredAt: 'workflow_start', + count: 1, + }, + ], + outputKinds: ['image'], + readinessPolicy: 'requires_input', + modelArtifact: { + source: 'hub', + value: 'stable-diffusion-v1-5/stable-diffusion-v1-5', + revision: '451f4fe16113bff5a5d2269ed5ad43b0592e9a14', + }, + description: + 'Reproduce the reviewed Cobalt Cube on Handmade Paper example with the saved prompt, settings and model revision.', + prompt: + 'A hand-pulled cobalt-blue ink screen print on subtly textured warm off-white paper. An angular three-face cube with clean straight corner lines in the same position and perspective as the supplied outline. Deep blue and dark indigo ink hatching on the sides, simple pale paper highlights, restrained cast shadow, carefully printed tactile texture, no lettering. Replace the photographic background and pedestal with a clean flat paper field.', + negativePrompt: '', + example: { + mediaType: 'image', + status: 'unverified', + modelRevision: '451f4fe16113bff5a5d2269ed5ad43b0592e9a14', + lockedSeed: 42, + lockedSettings: { + width: 512, + height: 512, + steps: 30, + guidanceScale: 7.5, + strength: 0.8, + outputType: 'pil', + maxSequenceLength: 512, + conditioningScale: 1, + pagScale: 3, + pagAdaptiveScale: 0, + dtype: 'float32', + resourceMode: 'expert', + quantizationMode: 'none', + autoOffload: false, + offloadMode: 'none', + }, + expectedOutput: { + width: 512, + height: 512, + }, + runtimeEstimate: '11.48 seconds in the saved run', + }, + requiredBackendCapabilities: [ + 'modules.ImageFilters.Canny', + 'modules.DiffusersImage.ControlEdit', + 'modules.DiffusersImage.LoadPipeline', + 'modules.DiffusersRuntime.PipelineQuantizationConfigV2', + 'modules.DiffusersRuntime.DiffusersExecutionRecipe', + 'modules.Image.Load', + 'modules.Image.Preview', + ], + mediaSlots: [ + { + id: 'before', + label: 'Source image', + kind: 'comparison_before', + role: 'before', + placeholder: 'Source pending', + }, + { + id: 'after', + label: 'Generated image', + kind: 'comparison_after', + role: 'after', + placeholder: 'Preview pending', + }, + ], + thumbnailVariant: 'compareSlider', + recipeSummary: + 'Reproduce the reviewed Cobalt Cube on Handmade Paper example with the saved prompt, settings and model revision.', + runtimeReuseKey: 'sha256:canonical-graph-v1:eba7a5b4abc12764de5075d2119130189e161241038b4bcf1f0dce0acb70f176', + }, + { + id: 'sd15_control_cobalt_studio_wall_repair', + label: 'Stable Diffusion 1.5 — Control inpaint: Cobalt Studio Wall Repair', + mode: 'control_inpaint', + modelType: 'StableDiffusionPipeline', + intentGroup: 'edit_image', + category: 'inpaint', + inputBindings: [ + { + id: 'source-image', + label: 'Source Image', + mediaType: 'image', + field: 'referenceImages', + origin: 'user', + requiredAt: 'workflow_start', + count: 1, + }, + { + id: 'mask-image', + label: 'Mask Image', + mediaType: 'image', + field: 'maskImage', + origin: 'user', + requiredAt: 'workflow_start', + count: 1, + }, + { + id: 'control-guide', + label: 'Control Image', + mediaType: 'image', + field: 'controlImage', + origin: 'user', + requiredAt: 'workflow_start', + count: 1, + }, + ], + outputKinds: ['image'], + readinessPolicy: 'requires_input', + modelArtifact: { + source: 'hub', + value: 'stable-diffusion-v1-5/stable-diffusion-v1-5', + revision: '451f4fe16113bff5a5d2269ed5ad43b0592e9a14', + }, + description: + 'Reproduce the reviewed Cobalt Studio Wall Repair example with the saved prompt, settings and model revision.', + prompt: + 'A clean matte gray studio wall in soft side light, smooth pale plaster without a scratch. Keep the existing cube and the tabletop intact.', + negativePrompt: '', + example: { + mediaType: 'image', + status: 'unverified', + modelRevision: '451f4fe16113bff5a5d2269ed5ad43b0592e9a14', + lockedSeed: 42, + lockedSettings: { + width: 512, + height: 512, + steps: 30, + guidanceScale: 7.5, + strength: 0.8, + outputType: 'pil', + maxSequenceLength: 512, + conditioningScale: 1, + pagScale: 3, + pagAdaptiveScale: 0, + dtype: 'float32', + resourceMode: 'expert', + quantizationMode: 'none', + autoOffload: false, + offloadMode: 'none', + }, + expectedOutput: { + width: 512, + height: 512, + }, + runtimeEstimate: '8.45 seconds in the saved run', + }, + requiredBackendCapabilities: [ + 'modules.ImageFilters.Canny', + 'modules.DiffusersImage.ControlInpaint', + 'modules.DiffusersImage.LoadPipeline', + 'modules.DiffusersRuntime.PipelineQuantizationConfigV2', + 'modules.DiffusersRuntime.DiffusersExecutionRecipe', + 'modules.Image.Load', + 'modules.Image.Preview', + ], + mediaSlots: [ + { + id: 'before', + label: 'Source image', + kind: 'comparison_before', + role: 'before', + placeholder: 'Source pending', + }, + { + id: 'after', + label: 'Generated image', + kind: 'comparison_after', + role: 'after', + placeholder: 'Preview pending', + }, + ], + thumbnailVariant: 'compareSlider', + recipeSummary: + 'Reproduce the reviewed Cobalt Studio Wall Repair example with the saved prompt, settings and model revision.', + runtimeReuseKey: 'sha256:canonical-graph-v1:0d2aba098bb0cecaaf59dc601a54f637849a0918166655f546313f69e29aa5ad', + }, + { + id: 'sd15_pag_control_wall_repair', + label: 'Stable Diffusion 1.5 PAG — Control inpaint: Guided Wall Repair with PAG', + mode: 'control_inpaint', + modelType: 'StableDiffusionPAGPipeline', + intentGroup: 'edit_image', + category: 'inpaint', + inputBindings: [ + { + id: 'source-image', + label: 'Source Image', + mediaType: 'image', + field: 'referenceImages', + origin: 'user', + requiredAt: 'workflow_start', + count: 1, + }, + { + id: 'mask-image', + label: 'Mask Image', + mediaType: 'image', + field: 'maskImage', + origin: 'user', + requiredAt: 'workflow_start', + count: 1, + }, + { + id: 'control-guide', + label: 'Control Image', + mediaType: 'image', + field: 'controlImage', + origin: 'user', + requiredAt: 'workflow_start', + count: 1, + }, + ], + outputKinds: ['image'], + readinessPolicy: 'requires_input', + modelArtifact: { + source: 'hub', + value: 'stable-diffusion-v1-5/stable-diffusion-v1-5', + revision: '451f4fe16113bff5a5d2269ed5ad43b0592e9a14', + }, + description: + 'Reproduce the reviewed Guided Wall Repair with PAG example with the saved prompt, settings and model revision.', + prompt: 'Even pale studio plaster with soft light from the left. Clear and material-accurate product photography.', + negativePrompt: '', + example: { + mediaType: 'image', + status: 'unverified', + modelRevision: '451f4fe16113bff5a5d2269ed5ad43b0592e9a14', + lockedSeed: 42, + lockedSettings: { + width: 512, + height: 512, + steps: 30, + guidanceScale: 7.5, + strength: 0.8, + outputType: 'pil', + maxSequenceLength: 512, + conditioningScale: 1, + pagScale: 3, + pagAdaptiveScale: 0, + dtype: 'float32', + resourceMode: 'expert', + quantizationMode: 'none', + autoOffload: false, + offloadMode: 'none', + }, + expectedOutput: { + width: 512, + height: 512, + }, + runtimeEstimate: '10.34 seconds in the saved run', + }, + requiredBackendCapabilities: [ + 'modules.ImageFilters.Canny', + 'modules.DiffusersImage.ControlInpaint', + 'modules.DiffusersImage.LoadPipeline', + 'modules.DiffusersRuntime.PipelineQuantizationConfigV2', + 'modules.DiffusersRuntime.DiffusersExecutionRecipe', + 'modules.Image.Load', + 'modules.Image.Preview', + ], + mediaSlots: [ + { + id: 'before', + label: 'Source image', + kind: 'comparison_before', + role: 'before', + placeholder: 'Source pending', + }, + { + id: 'after', + label: 'Generated image', + kind: 'comparison_after', + role: 'after', + placeholder: 'Preview pending', + }, + ], + thumbnailVariant: 'compareSlider', + recipeSummary: + 'Reproduce the reviewed Guided Wall Repair with PAG example with the saved prompt, settings and model revision.', + runtimeReuseKey: 'sha256:canonical-graph-v1:b69353e3e634e8d228cf19a84c525efa3b227384920e592d2e7729d428622881', + }, + { + id: 'sdxl_pag_snow_cabin', + label: 'Stable Diffusion XL PAG — Control image: Snow Cabin against Blue Hour', + mode: 'control_image', + modelType: 'StableDiffusionXLPAGPipeline', + intentGroup: 'generate_image', + category: 'control', + inputBindings: [ + { + id: 'control-guide', + label: 'Control Image', + mediaType: 'image', + field: 'controlImage', + origin: 'user', + requiredAt: 'workflow_start', + count: 1, + }, + ], + outputKinds: ['image'], + readinessPolicy: 'requires_input', + modelArtifact: { + source: 'hub', + value: 'stabilityai/stable-diffusion-xl-base-1.0', + revision: '462165984030d82259a11f4367a4eed129e94a7b', + }, + description: + 'Reproduce the reviewed Snow Cabin against Blue Hour example with the saved prompt, settings and model revision.', + prompt: + 'A small single-storey charcoal-stained timber cabin at the edge of a snowy pine forest at blue hour. Use the guide for the steep triangular roof, one four-pane window on the left and the single front door on the right. The window glows warm amber. Frost rims the dark boards, shallow snow sits on the sloped roof and a narrow snowy path leads from the foreground to the door. Still, clear air, distant pines, cool winter light and soft reflected amber on snow. Front view, restrained editorial architectural photography.', + negativePrompt: '', + example: { + mediaType: 'image', + status: 'unverified', + modelRevision: '462165984030d82259a11f4367a4eed129e94a7b', + lockedSeed: 42, + lockedSettings: { + width: 1024, + height: 1024, + steps: 50, + guidanceScale: 5, + strength: 0.8, + outputType: 'pil', + maxSequenceLength: 512, + conditioningScale: 1, + pagScale: 3, + pagAdaptiveScale: 0, + dtype: 'float16', + resourceMode: 'expert', + quantizationMode: 'none', + autoOffload: true, + offloadMode: 'model_cpu', + }, + expectedOutput: { + width: 1024, + height: 1024, + }, + runtimeEstimate: '100.84 seconds in the saved run', + }, + requiredBackendCapabilities: [ + 'modules.ImageFilters.Canny', + 'modules.DiffusersImage.ControlGenerate', + 'modules.DiffusersImage.LoadPipeline', + 'modules.DiffusersRuntime.PipelineQuantizationConfigV2', + 'modules.DiffusersRuntime.DiffusersExecutionRecipe', + 'modules.Image.Load', + 'modules.Image.Preview', + ], + mediaSlots: [ + { + id: 'before', + label: 'Control guide', + kind: 'comparison_before', + role: 'before', + placeholder: 'Source pending', + }, + { + id: 'after', + label: 'Generated image', + kind: 'comparison_after', + role: 'after', + placeholder: 'Preview pending', + }, + ], + thumbnailVariant: 'compareSlider', + recipeSummary: + 'Reproduce the reviewed Snow Cabin against Blue Hour example with the saved prompt, settings and model revision.', + runtimeReuseKey: 'sha256:canonical-graph-v1:24f301293a57d60503933f0cd2a278f6ee932db5617a339310d0a25c36eaa175', + }, + { + id: 'flux_canny_clean_backdrop', + label: 'FLUX.1-Canny-dev — Control inpaint: Clean Backdrop with Edge Guidance', + mode: 'control_inpaint', + modelType: 'FluxCannyPipeline', + intentGroup: 'edit_image', + category: 'inpaint', + inputBindings: [ + { + id: 'source-image', + label: 'Source Image', + mediaType: 'image', + field: 'referenceImages', + origin: 'user', + requiredAt: 'workflow_start', + count: 1, + }, + { + id: 'mask-image', + label: 'Mask Image', + mediaType: 'image', + field: 'maskImage', + origin: 'user', + requiredAt: 'workflow_start', + count: 1, + }, + { + id: 'control-guide', + label: 'Control Image', + mediaType: 'image', + field: 'controlImage', + origin: 'user', + requiredAt: 'workflow_start', + count: 1, + }, + ], + outputKinds: ['image'], + readinessPolicy: 'requires_input', + modelArtifact: { + source: 'hub', + value: 'black-forest-labs/FLUX.1-Canny-dev', + revision: '27c3d8bdc17509b47cf4fd9ba25ab1c7508a69a2', + }, + description: + 'Reproduce the reviewed Clean Backdrop with Edge Guidance example with the saved prompt, settings and model revision.', + prompt: + 'One cobalt glass cube on a pale stone plinth in the same soft product lighting. The empty upper-right wall is an uninterrupted matte pale gray, with only the existing gentle daylight gradient. Preserve the cube, floor and plinth and match the supplied edges.', + negativePrompt: '', + example: { + mediaType: 'image', + status: 'unverified', + modelRevision: '27c3d8bdc17509b47cf4fd9ba25ab1c7508a69a2', + lockedSeed: 42, + lockedSettings: { + width: 1024, + height: 1024, + steps: 50, + guidanceScale: 30, + strength: 0.8, + outputType: 'pil', + maxSequenceLength: 512, + conditioningScale: 1, + pagScale: 3, + pagAdaptiveScale: 0, + dtype: 'bfloat16', + resourceMode: 'expert', + quantizationMode: 'none', + autoOffload: true, + offloadMode: 'model_cpu', + }, + expectedOutput: { + width: 1024, + height: 1024, + }, + runtimeEstimate: '466.70 seconds in the saved run', + }, + requiredBackendCapabilities: [ + 'modules.DiffusersImage.ControlInpaint', + 'modules.DiffusersImage.LoadPipeline', + 'modules.DiffusersRuntime.PipelineQuantizationConfigV2', + 'modules.DiffusersRuntime.DiffusersExecutionRecipe', + 'modules.Image.Load', + 'modules.Image.Preview', + ], + mediaSlots: [ + { + id: 'before', + label: 'Source image', + kind: 'comparison_before', + role: 'before', + placeholder: 'Source pending', + }, + { + id: 'after', + label: 'Generated image', + kind: 'comparison_after', + role: 'after', + placeholder: 'Preview pending', + }, + ], + thumbnailVariant: 'compareSlider', + recipeSummary: + 'Reproduce the reviewed Clean Backdrop with Edge Guidance example with the saved prompt, settings and model revision.', + runtimeReuseKey: 'sha256:canonical-graph-v1:567248f43a620bfcfb34690914d010f2aba19a147e132f1ada00aeba9fcde561', + }, + { + id: 'flux_depth_marine_bow_repair', + label: 'FLUX.1-Depth-dev — Control inpaint: Marine Teal Bow Repair', + mode: 'control_inpaint', + modelType: 'FluxDepthPipeline', + intentGroup: 'edit_image', + category: 'inpaint', + inputBindings: [ + { + id: 'source-image', + label: 'Source Image', + mediaType: 'image', + field: 'referenceImages', + origin: 'user', + requiredAt: 'workflow_start', + count: 1, + }, + { + id: 'mask-image', + label: 'Mask Image', + mediaType: 'image', + field: 'maskImage', + origin: 'user', + requiredAt: 'workflow_start', + count: 1, + }, + { + id: 'control-guide', + label: 'Control Image', + mediaType: 'image', + field: 'controlImage', + origin: 'user', + requiredAt: 'workflow_start', + count: 1, + }, + ], + outputKinds: ['image'], + readinessPolicy: 'requires_input', + modelArtifact: { + source: 'hub', + value: 'black-forest-labs/FLUX.1-Depth-dev', + revision: 'fb5e9b1bae41b8c8adcea4ea2a87b74dd298f07a', + }, + description: + 'Reproduce the reviewed Marine Teal Bow Repair example with the saved prompt, settings and model revision.', + prompt: + 'Same wooden boat and rustic workshop. Add a dark marine-teal satin enamel stripe within the highlighted part of the upper bow, following the same angle, panels and vertical seam. The painted surface follows the shape of the bow and reflects existing side light. Keep the benches, roof, support frame and rest of the hull as in the source.', + negativePrompt: '', + example: { + mediaType: 'image', + status: 'unverified', + modelRevision: 'fb5e9b1bae41b8c8adcea4ea2a87b74dd298f07a', + lockedSeed: 42, + lockedSettings: { + width: 1024, + height: 1024, + steps: 50, + guidanceScale: 30, + strength: 0.8, + outputType: 'pil', + maxSequenceLength: 512, + conditioningScale: 1, + pagScale: 3, + pagAdaptiveScale: 0, + dtype: 'bfloat16', + resourceMode: 'expert', + quantizationMode: 'none', + autoOffload: true, + offloadMode: 'model_cpu', + }, + expectedOutput: { + width: 1024, + height: 1024, + }, + runtimeEstimate: '503.32 seconds in the saved run', + }, + requiredBackendCapabilities: [ + 'modules.DiffusersImage.ControlInpaint', + 'modules.DiffusersImage.LoadPipeline', + 'modules.DiffusersRuntime.PipelineQuantizationConfigV2', + 'modules.DiffusersRuntime.DiffusersExecutionRecipe', + 'modules.Image.Load', + 'modules.Image.Preview', + ], + mediaSlots: [ + { + id: 'before', + label: 'Source image', + kind: 'comparison_before', + role: 'before', + placeholder: 'Source pending', + }, + { + id: 'after', + label: 'Generated image', + kind: 'comparison_after', + role: 'after', + placeholder: 'Preview pending', + }, + ], + thumbnailVariant: 'compareSlider', + recipeSummary: + 'Reproduce the reviewed Marine Teal Bow Repair example with the saved prompt, settings and model revision.', + runtimeReuseKey: 'sha256:canonical-graph-v1:ffd5894d66a9372f95715d365e9698c48b72b1422aebad4d1a0f14932b2f03bd', + }, + { + id: 'sdxl_control_golden_boathouse', + label: 'Stable Diffusion XL ControlNet — Control edit image: Golden Light in the Boathouse', + mode: 'control_edit_image', + modelType: 'StableDiffusionXLControlNetPipeline', + intentGroup: 'edit_image', + category: 'edit', + inputBindings: [ + { + id: 'source-image', + label: 'Source Image', + mediaType: 'image', + field: 'referenceImages', + origin: 'user', + requiredAt: 'workflow_start', + count: 1, + }, + { + id: 'control-guide', + label: 'Control Image', + mediaType: 'image', + field: 'controlImage', + origin: 'user', + requiredAt: 'workflow_start', + count: 1, + }, + ], + outputKinds: ['image'], + readinessPolicy: 'requires_input', + modelArtifact: { + source: 'hub', + value: 'stabilityai/stable-diffusion-xl-base-1.0', + revision: '462165984030d82259a11f4367a4eed129e94a7b', + }, + description: + 'Reproduce the reviewed Golden Light in the Boathouse example with the saved prompt, settings and model revision.', + prompt: + 'Photorealistic wide interior of the same timber boathouse and single wooden boat, seen straight on. Low golden afternoon light streams through the broad left windows and catches faint suspended sawdust in a clear angled shaft. It warms the left bench, rough plank floor and copper-brown lower hull. Soft cooler daylight beyond the open rear doorway. Keep the white upper bow centered, rafters and side worktables in their original positions, with the camera still and the boat facing straight forward. Natural texture and balanced exposure.', + negativePrompt: '', + example: { + mediaType: 'image', + status: 'unverified', + modelRevision: '462165984030d82259a11f4367a4eed129e94a7b', + lockedSeed: 42, + lockedSettings: { + width: 1024, + height: 1024, + steps: 50, + guidanceScale: 5, + strength: 0.8, + outputType: 'pil', + maxSequenceLength: 512, + conditioningScale: 0.5, + pagScale: 3, + pagAdaptiveScale: 0, + dtype: 'float16', + resourceMode: 'expert', + quantizationMode: 'none', + autoOffload: true, + offloadMode: 'model_cpu', + }, + expectedOutput: { + width: 1024, + height: 1024, + }, + runtimeEstimate: '25.36 seconds in the saved run', + }, + requiredBackendCapabilities: [ + 'modules.ImageFilters.Canny', + 'modules.DiffusersImage.ControlEdit', + 'modules.DiffusersImage.LoadPipeline', + 'modules.DiffusersRuntime.PipelineQuantizationConfigV2', + 'modules.DiffusersRuntime.DiffusersExecutionRecipe', + 'modules.Image.Load', + 'modules.Image.Preview', + ], + mediaSlots: [ + { + id: 'before', + label: 'Source image', + kind: 'comparison_before', + role: 'before', + placeholder: 'Source pending', + }, + { + id: 'after', + label: 'Generated image', + kind: 'comparison_after', + role: 'after', + placeholder: 'Preview pending', + }, + ], + thumbnailVariant: 'compareSlider', + recipeSummary: + 'Reproduce the reviewed Golden Light in the Boathouse example with the saved prompt, settings and model revision.', + runtimeReuseKey: 'sha256:canonical-graph-v1:6d79e032074b89f72078418c91345d440f5e348f2890a177b8c33c801b0d385f', + }, + { + id: 'qwen_2511_terracotta_material_transfer', + label: 'Qwen Image Edit Plus (Standard Diffusers) — Multi-image reference edit: Terracotta Material Transfer', + mode: 'multi_image_reference_edit', + modelType: 'QwenImageEditPlusPipeline', + intentGroup: 'edit_image', + category: 'reference', + inputBindings: [ + { + id: 'reference-images', + label: 'Reference images', + mediaType: 'image', + field: 'referenceImages', + origin: 'user', + requiredAt: 'workflow_start', + count: 2, + }, + ], + outputKinds: ['image'], + readinessPolicy: 'requires_input', + modelArtifact: { + source: 'hub', + value: 'Qwen/Qwen-Image-Edit-2511', + revision: '6f3ccc0b56e431dc6a0c2b2039706d7d26f22cb9', + }, + description: + 'Reproduce the reviewed Terracotta Material Transfer example with the saved prompt, settings and model revision.', + prompt: + 'Keep the exact camera framing, plinth and single sharp-cornered cube from image 1. Replace the cube material with the dry, matte, warm terracotta texture from image 2. Preserve the neutral background and show a single cube.', + negativePrompt: '', + example: { + mediaType: 'image', + status: 'unverified', + modelRevision: '6f3ccc0b56e431dc6a0c2b2039706d7d26f22cb9', + lockedSeed: 42, + lockedSettings: { + width: 1024, + height: 1024, + steps: 40, + guidanceScale: 4, + strength: 0.8, + outputType: 'pil', + maxSequenceLength: 512, + pagScale: 3, + pagAdaptiveScale: 0, + dtype: 'bfloat16', + resourceMode: 'expert', + quantizationMode: 'none', + autoOffload: true, + offloadMode: 'model_cpu', + matchInputResolution: true, + }, + expectedOutput: { + width: 1024, + height: 1024, + }, + runtimeEstimate: '1848.63 seconds in the saved run', + }, + requiredBackendCapabilities: [ + 'modules.DiffusersImage.Edit', + 'modules.DiffusersImage.LoadPipeline', + 'modules.DiffusersRuntime.PipelineQuantizationConfigV2', + 'modules.DiffusersRuntime.DiffusersExecutionRecipe', + 'modules.Image.Load', + 'modules.Image.Preview', + ], + mediaSlots: [ + { + id: 'before', + label: 'First reference', + kind: 'comparison_before', + role: 'before', + placeholder: 'Source pending', + }, + { + id: 'after', + label: 'Generated image', + kind: 'comparison_after', + role: 'after', + placeholder: 'Preview pending', + }, + ], + thumbnailVariant: 'compareSlider', + recipeSummary: + 'Reproduce the reviewed Terracotta Material Transfer example with the saved prompt, settings and model revision.', + runtimeReuseKey: 'sha256:canonical-graph-v1:c0d621c2ba7c54d24a8a3a3e3a584bba49979cf3f26ec2fcf30bf335fc15f4fc', + }, + { + id: 'joy_plus_terracotta_on_limestone', + label: 'JoyAI Image Edit Plus — Multi-image reference edit: Terracotta on Limestone', + mode: 'multi_image_reference_edit', + modelType: 'JoyImageEditPlusPipeline', + intentGroup: 'edit_image', + category: 'reference', + inputBindings: [ + { + id: 'reference-images', + label: 'Reference images', + mediaType: 'image', + field: 'referenceImages', + origin: 'user', + requiredAt: 'workflow_start', + count: 2, + }, + ], + outputKinds: ['image'], + readinessPolicy: 'requires_input', + modelArtifact: { + source: 'hub', + value: 'jdopensource/JoyAI-Image-Edit-Plus-Diffusers', + revision: 'c2686460c7b64d8aa11bc4d0da423fb316b33f9e', + }, + description: + 'Reproduce the reviewed Terracotta on Limestone example with the saved prompt, settings and model revision.', + prompt: + 'Use the first reference for the exact square cube, camera angle, limestone slab and soft background. Replace only the glass material with a dry matte clay finish in the muted warm red from the second reference. Fine porous texture, straight edges, consistent lighting and one cube.', + negativePrompt: '', + example: { + mediaType: 'image', + status: 'unverified', + modelRevision: 'c2686460c7b64d8aa11bc4d0da423fb316b33f9e', + lockedSeed: 42, + lockedSettings: { + width: 1024, + height: 1024, + steps: 30, + guidanceScale: 4, + strength: 0.8, + outputType: 'pil', + maxSequenceLength: 2048, + pagScale: 3, + pagAdaptiveScale: 0, + dtype: 'bfloat16', + resourceMode: 'expert', + quantizationMode: 'none', + autoOffload: true, + offloadMode: 'model_cpu', + matchInputResolution: true, + }, + expectedOutput: { + width: 1024, + height: 1024, + }, + runtimeEstimate: '1451.16 seconds in the saved run', + }, + requiredBackendCapabilities: [ + 'modules.DiffusersImage.Edit', + 'modules.DiffusersImage.LoadPipeline', + 'modules.DiffusersRuntime.PipelineQuantizationConfigV2', + 'modules.DiffusersRuntime.DiffusersExecutionRecipe', + 'modules.Image.Load', + 'modules.Image.Preview', + ], + mediaSlots: [ + { + id: 'before', + label: 'First reference', + kind: 'comparison_before', + role: 'before', + placeholder: 'Source pending', + }, + { + id: 'after', + label: 'Generated image', + kind: 'comparison_after', + role: 'after', + placeholder: 'Preview pending', + }, + ], + thumbnailVariant: 'compareSlider', + recipeSummary: + 'Reproduce the reviewed Terracotta on Limestone example with the saved prompt, settings and model revision.', + runtimeReuseKey: 'sha256:canonical-graph-v1:45c63449a5f682f068eaaad12a3cb73dbae46dad5924c18609cbba30d8937f8f', + }, + { + id: 'omnigen_red_enamel_folded_linen', + label: 'OmniGen v1 — Multi-image reference edit: Red Enamel on Folded Linen', + mode: 'multi_image_reference_edit', + modelType: 'OmniGenPipeline', + intentGroup: 'edit_image', + category: 'reference', + inputBindings: [ + { + id: 'reference-images', + label: 'Reference images', + mediaType: 'image', + field: 'referenceImages', + origin: 'user', + requiredAt: 'workflow_start', + count: 2, + }, + ], + outputKinds: ['image'], + readinessPolicy: 'requires_input', + modelArtifact: { + source: 'hub', + value: 'Shitao/OmniGen-v1-diffusers', + revision: '016e2f61d12a98303f6bbdf122687694d7984268', + }, + description: + 'Reproduce the reviewed Red Enamel on Folded Linen example with the saved prompt, settings and model revision.', + prompt: + 'Create a product photograph of the red enamel teapot in the first image, with the same round body, one gently curved spout pointing left, one handle on the right, and the small fitted red lid. Set it on soft folded gray-beige linen with the natural weave of the second image. The red enamel catches a bright soft window highlight. A simple pale wall and a cool morning shadow frame the teapot. Three-quarter angle and medium close-up, one teapot as the only object, fine realistic material detail.', + negativePrompt: '', + example: { + mediaType: 'image', + status: 'unverified', + modelRevision: '016e2f61d12a98303f6bbdf122687694d7984268', + lockedSeed: 42, + lockedSettings: { + width: 1024, + height: 1024, + steps: 50, + guidanceScale: 2.5, + strength: 0.8, + outputType: 'pil', + maxSequenceLength: 256, + pagScale: 3, + pagAdaptiveScale: 0, + dtype: 'bfloat16', + resourceMode: 'expert', + quantizationMode: 'none', + autoOffload: true, + offloadMode: 'model_cpu', + matchInputResolution: true, + }, + expectedOutput: { + width: 1024, + height: 1024, + }, + runtimeEstimate: '1734.80 seconds in the saved run', + }, + requiredBackendCapabilities: [ + 'modules.DiffusersImage.Edit', + 'modules.DiffusersImage.LoadPipeline', + 'modules.DiffusersRuntime.PipelineQuantizationConfigV2', + 'modules.DiffusersRuntime.DiffusersExecutionRecipe', + 'modules.Image.Load', + 'modules.Image.Preview', + ], + mediaSlots: [ + { + id: 'before', + label: 'First reference', + kind: 'comparison_before', + role: 'before', + placeholder: 'Source pending', + }, + { + id: 'after', + label: 'Generated image', + kind: 'comparison_after', + role: 'after', + placeholder: 'Preview pending', + }, + ], + thumbnailVariant: 'compareSlider', + recipeSummary: + 'Reproduce the reviewed Red Enamel on Folded Linen example with the saved prompt, settings and model revision.', + runtimeReuseKey: 'sha256:canonical-graph-v1:4d2c6321c55423646e3776f57b41f32a0b7da6ab3d3b74daa49bc81fd17f9793', + }, ]; diff --git a/src/studio/retainedGalleryTemplates.ts b/src/studio/retainedGalleryTemplates.ts index 6755266f..3ce75bb4 100644 --- a/src/studio/retainedGalleryTemplates.ts +++ b/src/studio/retainedGalleryTemplates.ts @@ -11,6 +11,7 @@ export type RetainedGalleryRecipe = { readonly maskSha256?: string; readonly guideSha256?: string; readonly lastFrameSha256?: string; + readonly secondaryReferenceSha256?: string; readonly reviewedCatalogLock: { readonly templateLockHash: string; readonly galleryTemplateLockHash: string; diff --git a/src/studio/templateAssetSource.json b/src/studio/templateAssetSource.json index bbf1853b..0723a3b3 100644 --- a/src/studio/templateAssetSource.json +++ b/src/studio/templateAssetSource.json @@ -4,11 +4,11 @@ "localBasePath": "/template-gallery", "repoType": "dataset", "repoId": "sourav-das/modiff-template-gallery", - "revision": "3bdae2719d62ea6747de119308ac2b2c3e5c39a8", + "revision": "ac106fa66b2d32fdfa7e6fb0212c2cde30f59c80", "pathPrefix": "template-gallery", "assetManifestPath": "_modiff/template-assets.v1.json", - "assetSetId": "sha256:canonical-json:7ba4ce769399cffb369d817687fc69bde20ce0ac719b0acc0039f81d782d7fb2", - "completeAssetSetId": "sha256:canonical-json:649f3cf808a22d61c582c6c78e4f62b70fd4854f19d78a8d0fd442d7986fdb30", + "assetSetId": "sha256:canonical-json:2b35d19dde5b545df34fba41def9e37cd15c83e9e7836517c6de1a6299138b7e", + "completeAssetSetId": "sha256:canonical-json:48da62e1f9fb4bb7ed02c8536ff3e4c37dfedccdb91dca7e24fd2654eb38bdf2", "unavailableAssets": [ "template-gallery/ace_step_chinese_new_year_lora.card-poster.png", "template-gallery/ace_step_chinese_new_year_lora.wav", diff --git a/src/studio/types.ts b/src/studio/types.ts index 79af12cb..6d824aea 100644 --- a/src/studio/types.ts +++ b/src/studio/types.ts @@ -287,6 +287,16 @@ export type StudioTemplateId = | 'zimage_seamless_cobalt_backdrop' | 'sdxl_pag_cobalt_wall' | 'flux_klein_open_glacial_lake' + | 'sd15_control_cobalt_handmade_paper' + | 'sd15_control_cobalt_studio_wall_repair' + | 'sd15_pag_control_wall_repair' + | 'sdxl_pag_snow_cabin' + | 'flux_canny_clean_backdrop' + | 'flux_depth_marine_bow_repair' + | 'sdxl_control_golden_boathouse' + | 'qwen_2511_terracotta_material_transfer' + | 'joy_plus_terracotta_on_limestone' + | 'omnigen_red_enamel_folded_linen' | 'lumina2_larch_on_glacial_pond' | 'hunyuan_dit_coastal_lighthouse' | 'omnigen_tulips_after_rain' From 5c9068caa213630e4325dccefccf40f0c331fbac Mon Sep 17 00:00:00 2001 From: Sourav Das Date: Wed, 25 Nov 2026 13:35:47 +0530 Subject: [PATCH 375/440] Register eleven native videos and the saved 2x video upscale --- config/release-showcase-scope.v1.json | 76 +- .../retained-gallery-approved-batch.v1.json | 171 + ...etained-gallery-authoring-archives.v1.json | 60 + ...etained-gallery-batch-recipe-locks.v1.json | 169 + config/template-asset-rights.v1.json | 9419 ++++++++++------- config/template-assets.v1.json | 639 +- public/template-gallery/manifest.json | 404 + scripts/bundle-budget.mjs | 4 + scripts/retained-gallery-provenance.mjs | 19 +- scripts/retained-gallery-release.mjs | 33 +- scripts/retained-gallery-templates.test.mjs | 67 +- scripts/source-video-timing.test.mjs | 29 + scripts/template-gallery-harness.mjs | 24 +- src/studio/retainedGalleryApprovedBatch.ts | 1126 ++ src/studio/retainedVideoPreview.ts | 7 +- src/studio/templateAssetSource.json | 6 +- src/studio/templateExactness.ts | 3 +- src/studio/types.ts | 12 + 18 files changed, 8431 insertions(+), 3837 deletions(-) diff --git a/config/release-showcase-scope.v1.json b/config/release-showcase-scope.v1.json index 8f296244..cfee4a3d 100644 --- a/config/release-showcase-scope.v1.json +++ b/config/release-showcase-scope.v1.json @@ -4,7 +4,7 @@ "name": "Registered showcase preview without AMD-cloud backlog", "dataset": { "repository": "sourav-das/modiff-template-gallery", - "revision": "ac106fa66b2d32fdfa7e6fb0212c2cde30f59c80" + "revision": "09bb6cf8c7ac96422f2de34fabe7770c9e1413db" }, "originalCampaign": { "total": 89, @@ -1005,7 +1005,79 @@ "category": "supplementary-only", "reason": "Published and registered from an approved saved run outside the original campaign selection.", "countedAsComplete": false + }, + { + "id": "allegro_basalt_shore_at_dawn", + "category": "supplementary-only", + "reason": "Published and registered from an approved saved run outside the original campaign selection.", + "countedAsComplete": false + }, + { + "id": "animatediff_candlelight_behind_amber_glass", + "category": "supplementary-only", + "reason": "Published and registered from an approved saved run outside the original campaign selection.", + "countedAsComplete": false + }, + { + "id": "animatediff_ivory_balloon_blue_mountains", + "category": "supplementary-only", + "reason": "Published and registered from an approved saved run outside the original campaign selection.", + "countedAsComplete": false + }, + { + "id": "animatediff_red_tram_in_watercolor", + "category": "supplementary-only", + "reason": "Published and registered from an approved saved run outside the original campaign selection.", + "countedAsComplete": false + }, + { + "id": "animatediff_red_tram_through_snow", + "category": "supplementary-only", + "reason": "Published and registered from an approved saved run outside the original campaign selection.", + "countedAsComplete": false + }, + { + "id": "mochi_surf_over_dark_pebbles", + "category": "supplementary-only", + "reason": "Published and registered from an approved saved run outside the original campaign selection.", + "countedAsComplete": false + }, + { + "id": "sana_i2v_blue_hour_above_rice_terraces", + "category": "supplementary-only", + "reason": "Published and registered from an approved saved run outside the original campaign selection.", + "countedAsComplete": false + }, + { + "id": "sana_video_water_terraces_before_sunrise", + "category": "supplementary-only", + "reason": "Published and registered from an approved saved run outside the original campaign selection.", + "countedAsComplete": false + }, + { + "id": "spandrel_tram_shelter_video_2x", + "category": "supplementary-only", + "reason": "Published and registered from an approved saved run outside the original campaign selection.", + "countedAsComplete": false + }, + { + "id": "wan_a14b_wind_across_pond", + "category": "supplementary-only", + "reason": "Published and registered from an approved saved run outside the original campaign selection.", + "countedAsComplete": false + }, + { + "id": "wan_ti2v_subway_musician", + "category": "supplementary-only", + "reason": "Published and registered from an approved saved run outside the original campaign selection.", + "countedAsComplete": false + }, + { + "id": "wan_vace_amber_rings_after_rain", + "category": "supplementary-only", + "reason": "Published and registered from an approved saved run outside the original campaign selection.", + "countedAsComplete": false } ], - "profileHash": "sha256:canonical-json:f86733a3e445ac54f4950625dd1c689c1f3c6b833d3215f03df6e4be310d0965" + "profileHash": "sha256:canonical-json:893f2e3ff088d9bee012024429a9fed35390e6be78e840c19fedcc08b75240d7" } diff --git a/config/retained-gallery-approved-batch.v1.json b/config/retained-gallery-approved-batch.v1.json index c217d55f..a4666f7c 100644 --- a/config/retained-gallery-approved-batch.v1.json +++ b/config/retained-gallery-approved-batch.v1.json @@ -1144,5 +1144,176 @@ "width": 1024, "height": 1024 } + }, + "allegro_basalt_shore_at_dawn": { + "associationSha256": "5e5cda590b1d1145aff88977cb259229935570bdc8f7cbf795897b78dbb67497", + "backendSourceFingerprint": "sha256:backend-source-v1:b29a5b0d317aaa781ae2a5205b46b518eea5a3d68a214eb0968dba4ac0660af7", + "backendContractFingerprint": "sha256:backend-contract-v1:40a4eb8d6275c83725f57c4d3499b8d12c00f8cf6caffc2d07006e74d24ab820", + "templateRevisionHash": "5e7fa20679a68bf73600bf9fcb2bb07fffed7e65d5b01c2cd6276b3d98e8a86d", + "capturedAt": "2026-11-25T01:26:09.329Z", + "outputExtension": "mp4", + "primaryModelRepo": "rhymes-ai/Allegro", + "outputSize": { + "width": 1280, + "height": 720 + } + }, + "animatediff_candlelight_behind_amber_glass": { + "associationSha256": "12d558aee02588ef4df40667de428235453ed0c94dbf4b215d2d5e2de219be1d", + "backendSourceFingerprint": "sha256:backend-source-v1:2faeaaa03b7902a03df5cd0cea38129b7419f6d844125c0ca7e29ccfaf635290", + "backendContractFingerprint": "sha256:backend-contract-v1:32e6e74ce3a29d61ae997904d9d4a77259db5c3bd819dbfc15d312482a356f92", + "templateRevisionHash": "fc3355bbe64d94141436cda1cb7c173be5490cfeeeebacd8609ceee18d5e2109", + "capturedAt": "2026-11-25T02:54:46.523Z", + "outputExtension": "mp4", + "primaryModelRepo": "stable-diffusion-v1-5/stable-diffusion-v1-5", + "outputSize": { + "width": 512, + "height": 512 + } + }, + "animatediff_ivory_balloon_blue_mountains": { + "associationSha256": "4e75c68e43272d1fed65a290aca6b577fbb1fb94d6b04506fc516e550ff710e8", + "backendSourceFingerprint": "sha256:backend-source-v1:a107f0838ce3b1be98034123eb3bf3393928a09c5ad7e3c133687d5a7c58be57", + "backendContractFingerprint": "sha256:backend-contract-v1:03dea74157ff4e06596b9bd35e605c820dfee2fa4b4bac1772cbd948108d8ffd", + "templateRevisionHash": "4b4d081ecba0edc45452b914be1e511106c370500951c08bac57264a08abf8c8", + "capturedAt": "2026-11-24T07:09:23.646Z", + "outputExtension": "mp4", + "primaryModelRepo": "stable-diffusion-v1-5/stable-diffusion-v1-5", + "outputSize": { + "width": 512, + "height": 512 + } + }, + "animatediff_red_tram_in_watercolor": { + "associationSha256": "2bf3ec1e879a42b0619c5b67b57c237c3f3646b8615eae16b71ea16a4db83f9a", + "backendSourceFingerprint": "sha256:backend-source-v1:2beaa95aae8558e64cf99f056b011d00c0653dc7d03987cd67c8ed7e774c770e", + "backendContractFingerprint": "sha256:backend-contract-v1:e1bf29e107307b73ad8153eff36b54b42bdf5622243915dbdd7c94e069726538", + "templateRevisionHash": "79480aa4c678fa413f77fa4c1c063f243438f1e6bd4573f90fc7f45c01e6af45", + "capturedAt": "2026-11-23T23:28:15.943Z", + "outputExtension": "mp4", + "primaryModelRepo": "stable-diffusion-v1-5/stable-diffusion-v1-5", + "outputSize": { + "width": 512, + "height": 512 + }, + "inputSize": { + "width": 512, + "height": 512 + }, + "beforeExtension": "mp4" + }, + "animatediff_red_tram_through_snow": { + "associationSha256": "641ef31c766deed113729f1e3d0fcd589e44986230fa3fe633a461c44a3bddce", + "backendSourceFingerprint": "sha256:backend-source-v1:b4a707d462a5f13dae1660c1665ed5195f45ed4ffbfcd7d80de879cd881aea86", + "backendContractFingerprint": "sha256:backend-contract-v1:d12f2497d460e249e197c1eb12b40f2cfd70311a95e91a943f37a1ffffbcd157", + "templateRevisionHash": "95bf2ea59940c6b96e479bc726ca727255822c37d0dc4ed19b4d3b37622520e7", + "capturedAt": "2026-11-23T21:59:42.414Z", + "outputExtension": "mp4", + "primaryModelRepo": "stable-diffusion-v1-5/stable-diffusion-v1-5", + "outputSize": { + "width": 512, + "height": 512 + }, + "inputSize": { + "width": 512, + "height": 512 + }, + "beforeExtension": "mp4" + }, + "mochi_surf_over_dark_pebbles": { + "associationSha256": "3c227772597bc28d6eb90f63726ecbe3be317f7cb99e85742dc73ce0fc6918fd", + "backendSourceFingerprint": "sha256:backend-source-v1:b29a5b0d317aaa781ae2a5205b46b518eea5a3d68a214eb0968dba4ac0660af7", + "backendContractFingerprint": "sha256:backend-contract-v1:40a4eb8d6275c83725f57c4d3499b8d12c00f8cf6caffc2d07006e74d24ab820", + "templateRevisionHash": "c0a8a85ce8101d4ffcf0a8ab34a46b49b41d38e667a896e8b51f5016bb536b62", + "capturedAt": "2026-11-25T02:21:21.989Z", + "outputExtension": "mp4", + "primaryModelRepo": "genmo/mochi-1-preview", + "outputSize": { + "width": 848, + "height": 480 + } + }, + "sana_i2v_blue_hour_above_rice_terraces": { + "associationSha256": "9adb3ab26d3d8f41cf24b8e1b77dc837fcceff46b1b7a63524717cabc0131901", + "backendSourceFingerprint": "sha256:backend-source-v1:b29a5b0d317aaa781ae2a5205b46b518eea5a3d68a214eb0968dba4ac0660af7", + "backendContractFingerprint": "sha256:backend-contract-v1:d68ff3c7d7b2d190e68d6f148834ae971638c23a9d31086a3848874658f37da2", + "templateRevisionHash": "e6ce9b989e565a3504ccb21781d8522fd3bd3d17715c008ae315b068f7773b1c", + "capturedAt": "2026-11-25T01:58:17.904Z", + "outputExtension": "mp4", + "primaryModelRepo": "Efficient-Large-Model/SANA-Video_2B_480p_diffusers", + "outputSize": { + "width": 832, + "height": 480 + } + }, + "sana_video_water_terraces_before_sunrise": { + "associationSha256": "5b12ebe17da6302823c567e4f35e5dfb93aa2f913099f7bf4bda745b28c5d2de", + "backendSourceFingerprint": "sha256:backend-source-v1:b29a5b0d317aaa781ae2a5205b46b518eea5a3d68a214eb0968dba4ac0660af7", + "backendContractFingerprint": "sha256:backend-contract-v1:40a4eb8d6275c83725f57c4d3499b8d12c00f8cf6caffc2d07006e74d24ab820", + "templateRevisionHash": "e5d7bb4cd5fa1b68f4840fc0746bea2aa963c1d8183be0985a66b0789be9f1d1", + "capturedAt": "2026-11-25T01:39:27.365Z", + "outputExtension": "mp4", + "primaryModelRepo": "Efficient-Large-Model/SANA-Video_2B_480p_diffusers", + "outputSize": { + "width": 832, + "height": 480 + } + }, + "spandrel_tram_shelter_video_2x": { + "associationSha256": "5f057274d8352aa72658f9cd1b3de89f72f11501b132d9f9b608a756b72f6efa", + "backendSourceFingerprint": "sha256:backend-source-v1:8dbad61815340f9a36c0966f227c6aaf8149350329cad36c73928ecb2df4698c", + "backendContractFingerprint": "sha256:backend-contract-v1:7e5cfc2be4665b078b5cda7e27b3c34bd3805652ca16146e86692677ab089da7", + "templateRevisionHash": "7bbb69fe91f85685502578e96bbcdc6c6bfe1bcf44210a0bcb1315e003605ce6", + "capturedAt": "2026-11-24T21:49:57.417Z", + "outputExtension": "mp4", + "primaryModelRepo": "nateraw/real-esrgan", + "outputSize": { + "width": 1024, + "height": 576 + }, + "inputSize": { + "width": 512, + "height": 288 + }, + "beforeExtension": "mp4" + }, + "wan_a14b_wind_across_pond": { + "associationSha256": "d355616574bee93602a920b565517d7d0170cd8112eebc6cbd573d7e9ea4db37", + "backendSourceFingerprint": "sha256:backend-source-v1:ce7ac712b4620d0e8efb35022a558a551e2d4ae6ef20b844744c4d674527b0b3", + "backendContractFingerprint": "sha256:backend-contract-v1:d68ff3c7d7b2d190e68d6f148834ae971638c23a9d31086a3848874658f37da2", + "templateRevisionHash": "fd7249fa8e87be9636e616bb278c88abbabc8920e4b093fc896f58b8a8d5dadd", + "capturedAt": "2026-11-24T23:54:28.989Z", + "outputExtension": "mp4", + "primaryModelRepo": "Wan-AI/Wan2.2-I2V-A14B-Diffusers", + "outputSize": { + "width": 768, + "height": 512 + } + }, + "wan_ti2v_subway_musician": { + "associationSha256": "cba050638b1e9245403a8bc6731b84afa6b38c3d734b9f17572d8835319d1501", + "backendSourceFingerprint": "sha256:backend-source-v1:b29a5b0d317aaa781ae2a5205b46b518eea5a3d68a214eb0968dba4ac0660af7", + "backendContractFingerprint": "sha256:backend-contract-v1:5d062bef6bee536bcebcfc45356a33037785e3101631cffd94461b2f2de4a91b", + "templateRevisionHash": "3d639a689fee74a2857de70668d5d6e7939ee25a62025fb84d4435c2b149b183", + "capturedAt": "2026-11-25T05:16:20.887Z", + "outputExtension": "mp4", + "primaryModelRepo": "Wan-AI/Wan2.2-TI2V-5B-Diffusers", + "outputSize": { + "width": 1280, + "height": 704 + } + }, + "wan_vace_amber_rings_after_rain": { + "associationSha256": "0c54ef3a1f646bad294799d587cb2f1e0dcd9d0bcba7be1aeab4794bf9373b3d", + "backendSourceFingerprint": "sha256:backend-source-v1:b29a5b0d317aaa781ae2a5205b46b518eea5a3d68a214eb0968dba4ac0660af7", + "backendContractFingerprint": "sha256:backend-contract-v1:bf402b162817edb94494bd54801f5b411be4220f43a3e56c4715b1c9128e023b", + "templateRevisionHash": "520b484950dcf0432791f4a00d6ad8c5de4c785849563aefa07d467f36d679d9", + "capturedAt": "2026-11-25T02:44:38.768Z", + "outputExtension": "mp4", + "primaryModelRepo": "Wan-AI/Wan2.1-VACE-1.3B-diffusers", + "outputSize": { + "width": 1664, + "height": 960 + } } } diff --git a/config/retained-gallery-authoring-archives.v1.json b/config/retained-gallery-authoring-archives.v1.json index 34e1a42c..42d4c309 100644 --- a/config/retained-gallery-authoring-archives.v1.json +++ b/config/retained-gallery-authoring-archives.v1.json @@ -403,5 +403,65 @@ "descriptorSha256": "038d2fc8fa5c8079d7d7abed56804816e29ac8032e5a7cdff2c62036060e9349", "bytes": 5433, "sha256": "17caaef1e18c850a32489b11a4eeae8e1b3ae349e7b037423a6e54aa7820a055" + }, + "AllegroPipeline:text_to_video": { + "descriptorSha256": "abbadb877960f2cab04d6555a9a95475ae7db80e22d6120439456c69b098b10f", + "bytes": 4708, + "sha256": "e5a7db6c7945460600eb1f5611952369656e3be62a4f083205f0ce2cd5070aa9" + }, + "AnimateDiffControlNetPipeline:control_to_video": { + "descriptorSha256": "26cefb76bc3b60ebd26d76ccda2ce9aa79a4d2e760023662cf3d1fe868dad7bf", + "bytes": 6389, + "sha256": "2a921703f9444e937b355c4f08116029607143dd2332eb3aedaaa08ff0c5603f" + }, + "AnimateDiffPipeline:text_to_video": { + "descriptorSha256": "8493c1cd300b662ead386632610603cee2531eeff86668b454b314c66e175f0b", + "bytes": 5074, + "sha256": "e101fe940b9ffdf5a7f72e57a00739a687c5c9cb4ac5862d5ef5a68a7c409a5c" + }, + "AnimateDiffVideoToVideoControlNetPipeline:control_video_to_video": { + "descriptorSha256": "4f47a4a1a0244ed4b550c9e8ef4f3cfd8c2076d3f87f5ecbb583d6a8c8987b05", + "bytes": 7237, + "sha256": "b720c1515832c4984d8c8eec6a7e83f525ef9383e2d73708bc311a4619aa8456" + }, + "AnimateDiffVideoToVideoPipeline:video_to_video": { + "descriptorSha256": "b88aa5f2d7c8e012280b1d13cb812b1890dbc93ad7d14953504a7ca2bac45917", + "bytes": 5864, + "sha256": "da693cb57abb7c792b81aa90147ced2e2d127d052c20d4424dce4f9697c08293" + }, + "MochiPipeline:text_to_video": { + "descriptorSha256": "852641887c47d6707131d5cb71780bd5a93bdd5cf8ea32e5c728cafaeb12baa7", + "bytes": 4759, + "sha256": "5cd6acaec354fbff376d802de87d5bce7ac74679790e1449922259c3d29ec8c8" + }, + "SanaImageToVideoPipeline:image_to_video": { + "descriptorSha256": "2aaa21269bbdb611ed68b550a13409221aa56b7d888f379919dc29e147edd0e0", + "bytes": 5330, + "sha256": "79ea7d4bb500b4c112f7d26ee2789628b1a7572c9342f6a392cd02988a8ab94a" + }, + "SanaVideoPipeline:text_to_video": { + "descriptorSha256": "aaea24f57507173bcfce6f0dc24af5af7eb0f0c5da0dbdee1a81b08b17d2fae7", + "bytes": 4822, + "sha256": "bfcb00d1f859d78b6952e5eb8a0b0c064a8697a5381cf289028e61cb4692bcb4" + }, + "SpandrelVideoUpscale:video_upscale": { + "descriptorSha256": "7bfd8efa47be68666198cbec16db4d26b427297f0deeb8299cbcd63b1a1df46c", + "bytes": 3448, + "sha256": "e22a74b87a2de55c55d502fa6c25aa00e1200ddcb7b973c9656d4fbd1c6e129c" + }, + "WanImageToVideoPipeline:image_to_video": { + "descriptorSha256": "ad4a68c5d4cd18b02cbcf57d5eb84a8e6ca48512c8b2405cf0e658942c260de2", + "bytes": 5369, + "sha256": "62b454db54899d8cd87d1a7248731bc0ec14cd937812aac4f902cf6807a0c729" + }, + "WanTI2VPipeline:text_to_video": { + "descriptorSha256": "150e3aea2961acbed6a5fc0ffd8625a0284d64f66c545169b645fdc44927928f", + "bytes": 5943, + "sha256": "39ead775c6c04345908e8aed758ebf2ec1f1266e1e009d8f5c321208c7975d1d" + }, + "WanVACEPipeline:text_to_video": { + "descriptorSha256": "111a1e8352784824dc9d3cb094113e0547b19cd50416b072cff31356c95a0124", + "bytes": 4991, + "sha256": "c91ec7e55964e72702d69979edf84e8714c8e5acb3adda5a6c6bccfce14db5db" } } diff --git a/config/retained-gallery-batch-recipe-locks.v1.json b/config/retained-gallery-batch-recipe-locks.v1.json index 984802f1..ebdc60b2 100644 --- a/config/retained-gallery-batch-recipe-locks.v1.json +++ b/config/retained-gallery-batch-recipe-locks.v1.json @@ -1173,5 +1173,174 @@ "inputSha256": "4077a18ad81b7fb6a1e7285777cac6241f6c0109a680945487b81e8561f30d8c", "inputLocatorSha256": "5a46183214a436513e67baea1b25bb4a8452caf67f66c11c03d3ef404d7459ee", "secondaryReferenceSha256": "a0b713856d9a2d7956605fe85b26eef641bdede49400583f9c87c25fd3e324ec" + }, + "mochi_surf_over_dark_pebbles": { + "workflowId": "MochiPipeline:text_to_video", + "sourceTaskTemplateId": "task-template:mochi:text-to-video:v1", + "retainedGraphHash": "sha256:canonical-graph-v1:bf2b044a50f9b1e7b1813fa51ec77f1e6c1fa910e6aa6236ae7b783eaed6832e", + "originalReceiptSha256": "852641887c47d6707131d5cb71780bd5a93bdd5cf8ea32e5c728cafaeb12baa7", + "reviewedTemplateSha256": "c0a8a85ce8101d4ffcf0a8ab34a46b49b41d38e667a896e8b51f5016bb536b62", + "reviewedCatalogLock": { + "templateLockHash": "tpl_97d94805", + "galleryTemplateLockHash": "tpl_851777f5", + "promptSettingsHash": "ps_0a0165a8" + }, + "promptSha256": "4cd01097ed4ede25efc7d8cb5a340246d78b28e2cc9e7cc560cf34cbd3d4ba3f" + }, + "animatediff_ivory_balloon_blue_mountains": { + "workflowId": "AnimateDiffControlNetPipeline:control_to_video", + "sourceTaskTemplateId": "task-template:animatediff-controlnet:control-to-video:v1", + "retainedGraphHash": "sha256:canonical-graph-v1:c3a0bd75af7f0ef791bda2a2658df375640199d9d8d1be6f589f94900e923bf1", + "originalReceiptSha256": "26cefb76bc3b60ebd26d76ccda2ce9aa79a4d2e760023662cf3d1fe868dad7bf", + "reviewedTemplateSha256": "4b4d081ecba0edc45452b914be1e511106c370500951c08bac57264a08abf8c8", + "reviewedCatalogLock": { + "templateLockHash": "tpl_1fe92e51", + "galleryTemplateLockHash": "tpl_bef14c2c", + "promptSettingsHash": "ps_ecae0ab9" + }, + "promptSha256": "c242a0c1ccca509c6ff59916864c9bb16897539cd6770d540ab1b04f9d42a4c9", + "inputSha256": "fb000903f199391388d25d869aedacaedfe3ffbca67800e3113e1173f56e8108", + "inputLocatorSha256": "c7ca64c85bdfd840a9e3c4ebe9796e07e0e79ec012413142bf2e82754cd37ae3", + "guideSha256": "fb000903f199391388d25d869aedacaedfe3ffbca67800e3113e1173f56e8108" + }, + "animatediff_red_tram_through_snow": { + "workflowId": "AnimateDiffVideoToVideoControlNetPipeline:control_video_to_video", + "sourceTaskTemplateId": "task-template:animatediff-controlnet-video-to-video:control-video-to-video:v1", + "retainedGraphHash": "sha256:canonical-graph-v1:def788f2dd1441b8d6f37e453ce30da5f5fe0f35711fadbb4d3240d2db95f177", + "originalReceiptSha256": "4f47a4a1a0244ed4b550c9e8ef4f3cfd8c2076d3f87f5ecbb583d6a8c8987b05", + "reviewedTemplateSha256": "95bf2ea59940c6b96e479bc726ca727255822c37d0dc4ed19b4d3b37622520e7", + "reviewedCatalogLock": { + "templateLockHash": "tpl_76ad76e0", + "galleryTemplateLockHash": "tpl_713b29bb", + "promptSettingsHash": "ps_3c45e0a7" + }, + "promptSha256": "d2229096be4447b2e06cc2f4d8f7be783f64b35e9262b8891ca384f69685dddd", + "inputSha256": "88b69acee9f0c3572a98e49b23ad0e853dc86e1d15074fca99b47f690dde900f", + "inputLocatorSha256": "32cc3fb9e01e1375293cf66a00f3dc56229e375aeba0094fdd6a0107e682e549", + "guideSha256": "5911e85b2d5ef93e44ba5d76f73ddf77f9d49d6cf3e4e829c30f0e386a0b8d80" + }, + "sana_i2v_blue_hour_above_rice_terraces": { + "workflowId": "SanaImageToVideoPipeline:image_to_video", + "sourceTaskTemplateId": "task-template:sana-video-480p:image-to-video:v1", + "retainedGraphHash": "sha256:canonical-graph-v1:c807f3241ff651858fcd5bd5b6cd96e798c6a65332c1e59fbdb05d4fa588421b", + "originalReceiptSha256": "2aaa21269bbdb611ed68b550a13409221aa56b7d888f379919dc29e147edd0e0", + "reviewedTemplateSha256": "e6ce9b989e565a3504ccb21781d8522fd3bd3d17715c008ae315b068f7773b1c", + "reviewedCatalogLock": { + "templateLockHash": "tpl_8d90e3f3", + "galleryTemplateLockHash": "tpl_d3be4bd4", + "promptSettingsHash": "ps_8dea3f0f" + }, + "promptSha256": "aa62133485f529242a0859631a4859484afed45e2c357e622f52ffad56a79ea1", + "inputSha256": "0644be42f8f1f2a8f9eed3df2cb14a8709d8b681c23749cc4bb69e41d4d0618e", + "inputLocatorSha256": "3ea07eb59e8127a02b6593b0d072a7592ef1a5f44b182c8963ebd545f578f12b" + }, + "sana_video_water_terraces_before_sunrise": { + "workflowId": "SanaVideoPipeline:text_to_video", + "sourceTaskTemplateId": "task-template:sana-video-480p:text-to-video:v1", + "retainedGraphHash": "sha256:canonical-graph-v1:266ff690c34b346935cb27b4e1d26771657ca26bab6094c2b061ba634801bb65", + "originalReceiptSha256": "aaea24f57507173bcfce6f0dc24af5af7eb0f0c5da0dbdee1a81b08b17d2fae7", + "reviewedTemplateSha256": "e5d7bb4cd5fa1b68f4840fc0746bea2aa963c1d8183be0985a66b0789be9f1d1", + "reviewedCatalogLock": { + "templateLockHash": "tpl_1d86546b", + "galleryTemplateLockHash": "tpl_77d9ebc0", + "promptSettingsHash": "ps_85fe160f" + }, + "promptSha256": "867b5dcd7d4c498b66e6151e3ec4ffb29db9cb8928d535f9a3ccaffaaa728547" + }, + "animatediff_red_tram_in_watercolor": { + "workflowId": "AnimateDiffVideoToVideoPipeline:video_to_video", + "sourceTaskTemplateId": "task-template:animatediff-video-to-video:video-to-video:v1", + "retainedGraphHash": "sha256:canonical-graph-v1:9d80fa0a57f924fae58e094e400e4309f79e3050b6e90de2c5c177c0d2d1358f", + "originalReceiptSha256": "b88aa5f2d7c8e012280b1d13cb812b1890dbc93ad7d14953504a7ca2bac45917", + "reviewedTemplateSha256": "79480aa4c678fa413f77fa4c1c063f243438f1e6bd4573f90fc7f45c01e6af45", + "reviewedCatalogLock": { + "templateLockHash": "tpl_0fe18d94", + "galleryTemplateLockHash": "tpl_37c948d9", + "promptSettingsHash": "ps_c4dd153c" + }, + "promptSha256": "5e4114aa6979ee5d8612552887db858fa9a4d883f340b61ce5f02b6b33624af1", + "inputSha256": "88b69acee9f0c3572a98e49b23ad0e853dc86e1d15074fca99b47f690dde900f", + "inputLocatorSha256": "32cc3fb9e01e1375293cf66a00f3dc56229e375aeba0094fdd6a0107e682e549" + }, + "allegro_basalt_shore_at_dawn": { + "workflowId": "AllegroPipeline:text_to_video", + "sourceTaskTemplateId": "task-template:allegro:text-to-video:v1", + "retainedGraphHash": "sha256:canonical-graph-v1:0e0211e72f2b7ecea3abd2ac10ad362852db2995d4a975bc4d064ea6d89dadb6", + "originalReceiptSha256": "abbadb877960f2cab04d6555a9a95475ae7db80e22d6120439456c69b098b10f", + "reviewedTemplateSha256": "5e7fa20679a68bf73600bf9fcb2bb07fffed7e65d5b01c2cd6276b3d98e8a86d", + "reviewedCatalogLock": { + "templateLockHash": "tpl_8138bbc4", + "galleryTemplateLockHash": "tpl_c1f652c2", + "promptSettingsHash": "ps_96a78038" + }, + "promptSha256": "ccfe56e3e636637a793980764510560071ce6d6e88733853861664ca727166c7" + }, + "animatediff_candlelight_behind_amber_glass": { + "workflowId": "AnimateDiffPipeline:text_to_video", + "sourceTaskTemplateId": "task-template:animatediff:text-to-video:v1", + "retainedGraphHash": "sha256:canonical-graph-v1:9387c155d24de33e4d9a5a8115a6baa2818a35613f828908c0d46be3c0ab5c44", + "originalReceiptSha256": "8493c1cd300b662ead386632610603cee2531eeff86668b454b314c66e175f0b", + "reviewedTemplateSha256": "fc3355bbe64d94141436cda1cb7c173be5490cfeeeebacd8609ceee18d5e2109", + "reviewedCatalogLock": { + "templateLockHash": "tpl_64219bac", + "galleryTemplateLockHash": "tpl_6605d595", + "promptSettingsHash": "ps_67c4ef8e" + }, + "promptSha256": "ed5ce7da9120ec8d1bc3c141faa7e191f86bd5417d5e1aab00f6beec22cc5af7" + }, + "wan_vace_amber_rings_after_rain": { + "workflowId": "WanVACEPipeline:text_to_video", + "sourceTaskTemplateId": "wan_vace_direct_text_to_video", + "retainedGraphHash": "sha256:canonical-graph-v1:3eb2a114a3997bf20ad212143012e33fcc59e35c7aebb7a78ad5c04793c5de09", + "originalReceiptSha256": "111a1e8352784824dc9d3cb094113e0547b19cd50416b072cff31356c95a0124", + "reviewedTemplateSha256": "520b484950dcf0432791f4a00d6ad8c5de4c785849563aefa07d467f36d679d9", + "reviewedCatalogLock": { + "templateLockHash": "tpl_33970a36", + "galleryTemplateLockHash": "tpl_f7056e34", + "promptSettingsHash": "ps_2a047df0" + }, + "promptSha256": "b8ed1027e4c9b4278d3959aa5941dd46331765d1ef2a731d4557c605218f9bc3" + }, + "wan_a14b_wind_across_pond": { + "workflowId": "WanImageToVideoPipeline:image_to_video", + "sourceTaskTemplateId": "wan_22_i2v_seed_vault", + "retainedGraphHash": "sha256:canonical-graph-v1:0fe1766aff910661f5d55d4bc72abc0a25bd85157b4b9f29e347c67fcb679140", + "originalReceiptSha256": "ad4a68c5d4cd18b02cbcf57d5eb84a8e6ca48512c8b2405cf0e658942c260de2", + "reviewedTemplateSha256": "fd7249fa8e87be9636e616bb278c88abbabc8920e4b093fc896f58b8a8d5dadd", + "reviewedCatalogLock": { + "templateLockHash": "tpl_ed73d76a", + "galleryTemplateLockHash": "tpl_642b4403", + "promptSettingsHash": "ps_f883a531" + }, + "promptSha256": "58437bcca048bffb472a931e6b353e2a6ce31fa67f9817dfffaaa1339d306d46", + "inputSha256": "cd29e54e208f6040d3f4cbbf8c9f096d537f8c71dffb50d5abae3298cc49deaf", + "inputLocatorSha256": "73a3653bae115630375520f4d33bee113745a109e22b1bee94d06aa695747be7" + }, + "wan_ti2v_subway_musician": { + "workflowId": "WanTI2VPipeline:text_to_video", + "sourceTaskTemplateId": "wan_22_ti2v_5b_seed_vault", + "retainedGraphHash": "sha256:canonical-graph-v1:dc5a3915f6767104be7c308fc55384b2abc349a8881e585d48df140b68ee2591", + "originalReceiptSha256": "150e3aea2961acbed6a5fc0ffd8625a0284d64f66c545169b645fdc44927928f", + "reviewedTemplateSha256": "3d639a689fee74a2857de70668d5d6e7939ee25a62025fb84d4435c2b149b183", + "reviewedCatalogLock": { + "templateLockHash": "tpl_f960f001", + "galleryTemplateLockHash": "tpl_97316ddd", + "promptSettingsHash": "ps_007b6d08" + }, + "promptSha256": "43e2a416e56047bdf5e4db4e725c73caab12d75a40064b2497805d4dd8f697ae" + }, + "spandrel_tram_shelter_video_2x": { + "workflowId": "SpandrelVideoUpscale:video_upscale", + "sourceTaskTemplateId": "task-template:real-esrgan-x2-video-upscale:v1", + "retainedGraphHash": "sha256:canonical-graph-v1:ee3276b1993ebb2ab0d6228468f6b3233d73daf72c758a7f2f93d48f3513837e", + "originalReceiptSha256": "7bfd8efa47be68666198cbec16db4d26b427297f0deeb8299cbcd63b1a1df46c", + "reviewedTemplateSha256": "7bbb69fe91f85685502578e96bbcdc6c6bfe1bcf44210a0bcb1315e003605ce6", + "reviewedCatalogLock": { + "templateLockHash": "tpl_eaa3b6d1", + "galleryTemplateLockHash": "tpl_d84cebd5", + "promptSettingsHash": "ps_a113ad7a" + }, + "inputSha256": "5c24b2b67f893f48e4dbf0d893e0aa4308852592f30f8179b44298cca4ce197e", + "inputLocatorSha256": "f0c6bcf6e2ac02da300d9ea08fff96a335c47e436244ab9b36a3bdd47690cf3b" } } diff --git a/config/template-asset-rights.v1.json b/config/template-asset-rights.v1.json index c6bf698a..174dd70c 100644 --- a/config/template-asset-rights.v1.json +++ b/config/template-asset-rights.v1.json @@ -1,6 +1,6 @@ { "schemaVersion": 1, - "assetSetId": "sha256:canonical-json:48da62e1f9fb4bb7ed02c8536ff3e4c37dfedccdb91dca7e24fd2654eb38bdf2", + "assetSetId": "sha256:canonical-json:1d5ae5e7fa702186eb134bfa4d86f7e4f517faf88720885ddd6960980505fd6b", "records": [ { "path": "template-gallery/ace_step_audio_continuation.wav", @@ -366,6 +366,33 @@ "reviewClass": "per-file-human-approved-accepted-registration", "provenanceTemplateId": "ace_step_text_to_audio" }, + { + "path": "template-gallery/allegro_basalt_shore_at_dawn.mp4", + "sha256": "sha256:bytes:339a491d6a2cf77eca00db90989738b55f1d5641321ba0bd95f7ff4439ca15e1", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Exact approved file captured from a saved MoDiff workflow", + "sourceUrl": "https://huggingface.co/rhymes-ai/Allegro/tree/c1b9207bb5cb79e2aa08f3d139c17d26c0de55b6", + "sourceRevision": "rhymes-ai/Allegro@c1b9207bb5cb79e2aa08f3d139c17d26c0de55b6", + "sourceLicense": "Maintainer-authorized file with publisher terms retained", + "modelTerms": [ + "Publisher model terms at https://huggingface.co/rhymes-ai/Allegro/tree/c1b9207bb5cb79e2aa08f3d139c17d26c0de55b6" + ], + "aiGenerated": true, + "humanLikenessConsent": "synthetic", + "marks": [], + "requiredAttribution": [ + "rhymes-ai/Allegro@c1b9207bb5cb79e2aa08f3d139c17d26c0de55b6 https://huggingface.co/rhymes-ai/Allegro/tree/c1b9207bb5cb79e2aa08f3d139c17d26c0de55b6" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "de8db2f2fa14b59514ea146654439aea279cc6fad5be1dca8cf17e057abe9945", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "allegro_basalt_shore_at_dawn" + }, { "path": "template-gallery/alpine_lake_in_oils.webp", "sha256": "sha256:bytes:734b381cd8bb514a1a3aa4e057aa5675e3cd437381d7e081b7577267fb0222bf", @@ -393,6 +420,114 @@ "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", "provenanceTemplateId": "alpine_lake_in_oils" }, + { + "path": "template-gallery/animatediff_candlelight_behind_amber_glass.mp4", + "sha256": "sha256:bytes:c309175cb9252e11bba17697d8fe18a6e9e27e61b76710ed8fa58b967cbf8539", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Exact approved file captured from a saved MoDiff workflow", + "sourceUrl": "https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14", + "sourceRevision": "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14", + "sourceLicense": "Maintainer-authorized file with publisher terms retained", + "modelTerms": [ + "Publisher model terms at https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14" + ], + "aiGenerated": true, + "humanLikenessConsent": "synthetic", + "marks": [], + "requiredAttribution": [ + "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14 https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "de8db2f2fa14b59514ea146654439aea279cc6fad5be1dca8cf17e057abe9945", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "animatediff_candlelight_behind_amber_glass" + }, + { + "path": "template-gallery/animatediff_ivory_balloon_blue_mountains.mp4", + "sha256": "sha256:bytes:741ea097f00b994dc9b26b2bd7cb2095ddb87d9bd3a7d492bf147fd2bd7be99c", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Exact approved file captured from a saved MoDiff workflow", + "sourceUrl": "https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14", + "sourceRevision": "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14", + "sourceLicense": "Maintainer-authorized file with publisher terms retained", + "modelTerms": [ + "Publisher model terms at https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14" + ], + "aiGenerated": true, + "humanLikenessConsent": "synthetic", + "marks": [], + "requiredAttribution": [ + "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14 https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "de8db2f2fa14b59514ea146654439aea279cc6fad5be1dca8cf17e057abe9945", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "animatediff_ivory_balloon_blue_mountains" + }, + { + "path": "template-gallery/animatediff_red_tram_in_watercolor.mp4", + "sha256": "sha256:bytes:88ddfb68b18872e653bcc7c9c05299f7e84186e3d54ac6f31c33ea9390c1e3be", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Exact approved file captured from a saved MoDiff workflow", + "sourceUrl": "https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14", + "sourceRevision": "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14", + "sourceLicense": "Maintainer-authorized file with publisher terms retained", + "modelTerms": [ + "Publisher model terms at https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14" + ], + "aiGenerated": true, + "humanLikenessConsent": "synthetic", + "marks": [], + "requiredAttribution": [ + "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14 https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "de8db2f2fa14b59514ea146654439aea279cc6fad5be1dca8cf17e057abe9945", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "animatediff_red_tram_in_watercolor" + }, + { + "path": "template-gallery/animatediff_red_tram_through_snow.mp4", + "sha256": "sha256:bytes:3082836cafeb4561f57b53b62da63e83602ad4b61c7af02fe2fc75ff83375cb6", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Exact approved file captured from a saved MoDiff workflow", + "sourceUrl": "https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14", + "sourceRevision": "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14", + "sourceLicense": "Maintainer-authorized file with publisher terms retained", + "modelTerms": [ + "Publisher model terms at https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14" + ], + "aiGenerated": true, + "humanLikenessConsent": "synthetic", + "marks": [], + "requiredAttribution": [ + "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14 https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "de8db2f2fa14b59514ea146654439aea279cc6fad5be1dca8cf17e057abe9945", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "animatediff_red_tram_through_snow" + }, { "path": "template-gallery/bookshop_at_blue_hour.webp", "sha256": "sha256:bytes:ff045be510a0e88cbab69bbe8c3794dd26bd19036bdec26a63a5b6ea5a11bc66", @@ -3947,6 +4082,114 @@ "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", "provenanceTemplateId": "alpine_lake_in_oils" }, + { + "path": "template-gallery/inputs/animatediff_ivory_balloon_blue_mountains.guide.mp4", + "sha256": "sha256:bytes:fb000903f199391388d25d869aedacaedfe3ffbca67800e3113e1173f56e8108", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Exact approved file captured from a saved MoDiff workflow", + "sourceUrl": "https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14", + "sourceRevision": "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14", + "sourceLicense": "Maintainer-authorized file with publisher terms retained", + "modelTerms": [ + "Publisher model terms at https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14" + ], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14 https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "de8db2f2fa14b59514ea146654439aea279cc6fad5be1dca8cf17e057abe9945", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "animatediff_ivory_balloon_blue_mountains" + }, + { + "path": "template-gallery/inputs/animatediff_red_tram_in_watercolor.before.mp4", + "sha256": "sha256:bytes:88b69acee9f0c3572a98e49b23ad0e853dc86e1d15074fca99b47f690dde900f", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Exact approved file captured from a saved MoDiff workflow", + "sourceUrl": "https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14", + "sourceRevision": "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14", + "sourceLicense": "Maintainer-authorized file with publisher terms retained", + "modelTerms": [ + "Publisher model terms at https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14" + ], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14 https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "de8db2f2fa14b59514ea146654439aea279cc6fad5be1dca8cf17e057abe9945", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "animatediff_red_tram_in_watercolor" + }, + { + "path": "template-gallery/inputs/animatediff_red_tram_through_snow.before.mp4", + "sha256": "sha256:bytes:88b69acee9f0c3572a98e49b23ad0e853dc86e1d15074fca99b47f690dde900f", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Exact approved file captured from a saved MoDiff workflow", + "sourceUrl": "https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14", + "sourceRevision": "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14", + "sourceLicense": "Maintainer-authorized file with publisher terms retained", + "modelTerms": [ + "Publisher model terms at https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14" + ], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14 https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "de8db2f2fa14b59514ea146654439aea279cc6fad5be1dca8cf17e057abe9945", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "animatediff_red_tram_through_snow" + }, + { + "path": "template-gallery/inputs/animatediff_red_tram_through_snow.guide.mp4", + "sha256": "sha256:bytes:5911e85b2d5ef93e44ba5d76f73ddf77f9d49d6cf3e4e829c30f0e386a0b8d80", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Exact approved file captured from a saved MoDiff workflow", + "sourceUrl": "https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14", + "sourceRevision": "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14", + "sourceLicense": "Maintainer-authorized file with publisher terms retained", + "modelTerms": [ + "Publisher model terms at https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14" + ], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14 https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "de8db2f2fa14b59514ea146654439aea279cc6fad5be1dca8cf17e057abe9945", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "animatediff_red_tram_through_snow" + }, { "path": "template-gallery/inputs/character_edit.before.webp", "sha256": "sha256:bytes:b9909f4cbff8af6e97be6d1e4923c67687eee41dbd64b051a018866781da12ab", @@ -5989,6 +6232,33 @@ "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", "provenanceTemplateId": "restoring_the_studio_backdrop" }, + { + "path": "template-gallery/inputs/sana_i2v_blue_hour_above_rice_terraces.first.png", + "sha256": "sha256:bytes:0644be42f8f1f2a8f9eed3df2cb14a8709d8b681c23749cc4bb69e41d4d0618e", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Exact approved file captured from a saved MoDiff workflow", + "sourceUrl": "https://huggingface.co/Efficient-Large-Model/SANA-Video_2B_480p_diffusers/tree/db5f398b13ca086d09a50ce156c20527773841b1", + "sourceRevision": "Efficient-Large-Model/SANA-Video_2B_480p_diffusers@db5f398b13ca086d09a50ce156c20527773841b1", + "sourceLicense": "Maintainer-authorized file with publisher terms retained", + "modelTerms": [ + "Publisher model terms at https://huggingface.co/Efficient-Large-Model/SANA-Video_2B_480p_diffusers/tree/db5f398b13ca086d09a50ce156c20527773841b1" + ], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "Efficient-Large-Model/SANA-Video_2B_480p_diffusers@db5f398b13ca086d09a50ce156c20527773841b1 https://huggingface.co/Efficient-Large-Model/SANA-Video_2B_480p_diffusers/tree/db5f398b13ca086d09a50ce156c20527773841b1" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "de8db2f2fa14b59514ea146654439aea279cc6fad5be1dca8cf17e057abe9945", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "sana_i2v_blue_hour_above_rice_terraces" + }, { "path": "template-gallery/inputs/sana_sprint_monochrome_tiger.before.webp", "sha256": "sha256:bytes:a99616590d7d8586a51a25bbe9e36b309f705bc80f2abaab04ac84f1e0d948e4", @@ -6747,6 +7017,33 @@ "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", "provenanceTemplateId": "sdxl_pix2pix_pale_amber_glass" }, + { + "path": "template-gallery/inputs/spandrel_tram_shelter_video_2x.before.mp4", + "sha256": "sha256:bytes:5c24b2b67f893f48e4dbf0d893e0aa4308852592f30f8179b44298cca4ce197e", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Exact approved file captured from a saved MoDiff workflow", + "sourceUrl": "https://huggingface.co/nateraw/real-esrgan/tree/42efb9c3eeed1f5c0c8a626cf5f7f4481dfbb094", + "sourceRevision": "nateraw/real-esrgan@42efb9c3eeed1f5c0c8a626cf5f7f4481dfbb094", + "sourceLicense": "Maintainer-authorized file with publisher terms retained", + "modelTerms": [ + "Publisher model terms at https://huggingface.co/nateraw/real-esrgan/tree/42efb9c3eeed1f5c0c8a626cf5f7f4481dfbb094" + ], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "nateraw/real-esrgan@42efb9c3eeed1f5c0c8a626cf5f7f4481dfbb094 https://huggingface.co/nateraw/real-esrgan/tree/42efb9c3eeed1f5c0c8a626cf5f7f4481dfbb094" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "de8db2f2fa14b59514ea146654439aea279cc6fad5be1dca8cf17e057abe9945", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "spandrel_tram_shelter_video_2x" + }, { "path": "template-gallery/inputs/spandrel_x2_synthetic_gradient.before.png", "sha256": "sha256:bytes:626815c78eaad46cad849732d1598b45b91700ce046c1ee3f4e2444db80aa32a", @@ -6771,35 +7068,35 @@ "provenanceTemplateId": "spandrel_x2_synthetic_gradient" }, { - "path": "template-gallery/inputs/wan_flf_blue_hour_at_the_tram_shelter.first.png", - "sha256": "sha256:bytes:6d2c561cf33919ae42e773d95a0232799da3f2b92a23a94dad80902cfb73527a", + "path": "template-gallery/inputs/wan_a14b_wind_across_pond.first.png", + "sha256": "sha256:bytes:cd29e54e208f6040d3f4cbbf8c9f096d537f8c71dffb50d5abae3298cc49deaf", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Exact approved file captured from a saved MoDiff workflow", - "sourceUrl": "https://huggingface.co/Wan-AI/Wan2.1-FLF2V-14B-720P-diffusers/tree/17c30769b1e0b5dcaa1799b117bf20a9c31f59d7", - "sourceRevision": "Wan-AI/Wan2.1-FLF2V-14B-720P-diffusers@17c30769b1e0b5dcaa1799b117bf20a9c31f59d7", + "sourceUrl": "https://huggingface.co/Wan-AI/Wan2.2-I2V-A14B-Diffusers/tree/596658fd9ca6b7b71d5057529bbf319ecbc61d74", + "sourceRevision": "Wan-AI/Wan2.2-I2V-A14B-Diffusers@596658fd9ca6b7b71d5057529bbf319ecbc61d74", "sourceLicense": "Maintainer-authorized file with publisher terms retained", "modelTerms": [ - "Publisher model terms at https://huggingface.co/Wan-AI/Wan2.1-FLF2V-14B-720P-diffusers/tree/17c30769b1e0b5dcaa1799b117bf20a9c31f59d7" + "Publisher model terms at https://huggingface.co/Wan-AI/Wan2.2-I2V-A14B-Diffusers/tree/596658fd9ca6b7b71d5057529bbf319ecbc61d74" ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "Wan-AI/Wan2.1-FLF2V-14B-720P-diffusers@17c30769b1e0b5dcaa1799b117bf20a9c31f59d7 https://huggingface.co/Wan-AI/Wan2.1-FLF2V-14B-720P-diffusers/tree/17c30769b1e0b5dcaa1799b117bf20a9c31f59d7" + "Wan-AI/Wan2.2-I2V-A14B-Diffusers@596658fd9ca6b7b71d5057529bbf319ecbc61d74 https://huggingface.co/Wan-AI/Wan2.2-I2V-A14B-Diffusers/tree/596658fd9ca6b7b71d5057529bbf319ecbc61d74" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "ffeaa41a5c94b59135d2cdb15a5c7f79f073c15fd78792ce00a157398ab15d59", + "humanApprovalPacketSHA256": "de8db2f2fa14b59514ea146654439aea279cc6fad5be1dca8cf17e057abe9945", "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", - "provenanceTemplateId": "wan_flf_blue_hour_at_the_tram_shelter" + "provenanceTemplateId": "wan_a14b_wind_across_pond" }, { - "path": "template-gallery/inputs/wan_flf_blue_hour_at_the_tram_shelter.last.png", - "sha256": "sha256:bytes:191b023efb43a42288799877db722b9a2608d2970740246322ef38cc7c68c590", + "path": "template-gallery/inputs/wan_flf_blue_hour_at_the_tram_shelter.first.png", + "sha256": "sha256:bytes:6d2c561cf33919ae42e773d95a0232799da3f2b92a23a94dad80902cfb73527a", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", @@ -6825,7 +7122,34 @@ "provenanceTemplateId": "wan_flf_blue_hour_at_the_tram_shelter" }, { - "path": "template-gallery/inputs/wan_vace_grayscale_control.before.mp4", + "path": "template-gallery/inputs/wan_flf_blue_hour_at_the_tram_shelter.last.png", + "sha256": "sha256:bytes:191b023efb43a42288799877db722b9a2608d2970740246322ef38cc7c68c590", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Exact approved file captured from a saved MoDiff workflow", + "sourceUrl": "https://huggingface.co/Wan-AI/Wan2.1-FLF2V-14B-720P-diffusers/tree/17c30769b1e0b5dcaa1799b117bf20a9c31f59d7", + "sourceRevision": "Wan-AI/Wan2.1-FLF2V-14B-720P-diffusers@17c30769b1e0b5dcaa1799b117bf20a9c31f59d7", + "sourceLicense": "Maintainer-authorized file with publisher terms retained", + "modelTerms": [ + "Publisher model terms at https://huggingface.co/Wan-AI/Wan2.1-FLF2V-14B-720P-diffusers/tree/17c30769b1e0b5dcaa1799b117bf20a9c31f59d7" + ], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "Wan-AI/Wan2.1-FLF2V-14B-720P-diffusers@17c30769b1e0b5dcaa1799b117bf20a9c31f59d7 https://huggingface.co/Wan-AI/Wan2.1-FLF2V-14B-720P-diffusers/tree/17c30769b1e0b5dcaa1799b117bf20a9c31f59d7" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "ffeaa41a5c94b59135d2cdb15a5c7f79f073c15fd78792ce00a157398ab15d59", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "wan_flf_blue_hour_at_the_tram_shelter" + }, + { + "path": "template-gallery/inputs/wan_vace_grayscale_control.before.mp4", "sha256": "sha256:bytes:748b164fd91bc2eed97f7c1d1125a04496a056f29cc016d7cc0da3734c2303b7", "publishDecision": "approved", "holdReason": null, @@ -8349,7 +8673,7 @@ }, { "path": "template-gallery/manifest.json", - "sha256": "sha256:bytes:858aa2f3d3d4340a820e48603cc1f82cd7a6d8f508b3ec2fb04c663218b42ca9", + "sha256": "sha256:bytes:76650b43470a6406be046086c8c987b12b24257866783ce4581bf72d5a67970b", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", @@ -8366,7 +8690,7 @@ "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "d7e2fd301d16eede3da44cec1811930560ba0d958dfd46d8d0962eb3a22eea63", + "humanApprovalPacketSHA256": "de8db2f2fa14b59514ea146654439aea279cc6fad5be1dca8cf17e057abe9945", "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained." }, { @@ -8422,6 +8746,33 @@ "publicationBasis": "Register the six approved assets now while Moonflower runs on Linux. Use Windows in parallel wherever possible, and keep the longer workflows separate for AMD cloud.", "provenanceTemplateId": "minimax_music3_chamber_pop" }, + { + "path": "template-gallery/mochi_surf_over_dark_pebbles.mp4", + "sha256": "sha256:bytes:2462a31378c7108fa7c46143a89630798d8450f2d75f6e7ea4aa24f1621f2ce1", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Exact approved file captured from a saved MoDiff workflow", + "sourceUrl": "https://huggingface.co/genmo/mochi-1-preview/tree/14be5fcea23095ed330cb214647916a451e38b6e", + "sourceRevision": "genmo/mochi-1-preview@14be5fcea23095ed330cb214647916a451e38b6e", + "sourceLicense": "Maintainer-authorized file with publisher terms retained", + "modelTerms": [ + "Publisher model terms at https://huggingface.co/genmo/mochi-1-preview/tree/14be5fcea23095ed330cb214647916a451e38b6e" + ], + "aiGenerated": true, + "humanLikenessConsent": "synthetic", + "marks": [], + "requiredAttribution": [ + "genmo/mochi-1-preview@14be5fcea23095ed330cb214647916a451e38b6e https://huggingface.co/genmo/mochi-1-preview/tree/14be5fcea23095ed330cb214647916a451e38b6e" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "de8db2f2fa14b59514ea146654439aea279cc6fad5be1dca8cf17e057abe9945", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "mochi_surf_over_dark_pebbles" + }, { "path": "template-gallery/ochre_paper_pavilion.webp", "sha256": "sha256:bytes:6fd64eda0cd96aca0f5c9d860fec6fed090426ff1c5cd5c9434a639755c06c1e", @@ -8611,6 +8962,33 @@ "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", "provenanceTemplateId": "porcelain_on_slate_linen" }, + { + "path": "template-gallery/posters/spandrel_tram_shelter_video_2x.webp", + "sha256": "sha256:bytes:6ab0a30271cb628a0a9c50c6544c45ef82c9e2e84f436a8f68bd34e9da1c560e", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Exact approved file captured from a saved MoDiff workflow", + "sourceUrl": "https://huggingface.co/nateraw/real-esrgan/tree/42efb9c3eeed1f5c0c8a626cf5f7f4481dfbb094", + "sourceRevision": "nateraw/real-esrgan@42efb9c3eeed1f5c0c8a626cf5f7f4481dfbb094", + "sourceLicense": "Maintainer-authorized file with publisher terms retained", + "modelTerms": [ + "Publisher model terms at https://huggingface.co/nateraw/real-esrgan/tree/42efb9c3eeed1f5c0c8a626cf5f7f4481dfbb094" + ], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "nateraw/real-esrgan@42efb9c3eeed1f5c0c8a626cf5f7f4481dfbb094 https://huggingface.co/nateraw/real-esrgan/tree/42efb9c3eeed1f5c0c8a626cf5f7f4481dfbb094" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "de8db2f2fa14b59514ea146654439aea279cc6fad5be1dca8cf17e057abe9945", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "spandrel_tram_shelter_video_2x" + }, { "path": "template-gallery/posters/wan_a14b_cloudbreak_over_the_ridges.png", "sha256": "sha256:bytes:c824b505dc5145519de68ecdd4eb3618f214bc8e3aa6a8fd8fada7433b1f509e", @@ -8638,6 +9016,33 @@ "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", "provenanceTemplateId": "wan_a14b_cloudbreak_over_the_ridges" }, + { + "path": "template-gallery/posters/wan_ti2v_subway_musician.webp", + "sha256": "sha256:bytes:b035c7d59c603ff5c02ec1f1ea641241cf9e04698231f980903478957bcab40f", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Exact approved file captured from a saved MoDiff workflow", + "sourceUrl": "https://huggingface.co/Wan-AI/Wan2.2-TI2V-5B-Diffusers/tree/b8fff7315c768468a5333511427288870b2e9635", + "sourceRevision": "Wan-AI/Wan2.2-TI2V-5B-Diffusers@b8fff7315c768468a5333511427288870b2e9635", + "sourceLicense": "Maintainer-authorized file with publisher terms retained", + "modelTerms": [ + "Publisher model terms at https://huggingface.co/Wan-AI/Wan2.2-TI2V-5B-Diffusers/tree/b8fff7315c768468a5333511427288870b2e9635" + ], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "Wan-AI/Wan2.2-TI2V-5B-Diffusers@b8fff7315c768468a5333511427288870b2e9635 https://huggingface.co/Wan-AI/Wan2.2-TI2V-5B-Diffusers/tree/b8fff7315c768468a5333511427288870b2e9635" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "de8db2f2fa14b59514ea146654439aea279cc6fad5be1dca8cf17e057abe9945", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "wan_ti2v_subway_musician" + }, { "path": "template-gallery/quiet_current.webp", "sha256": "sha256:bytes:c4db3876adb54a5f2bb9449ab4865601a24c2b486440f5c04d939a42a7f299a4", @@ -10207,89 +10612,116 @@ "provenanceTemplateId": "ace_step_text_to_audio" }, { - "path": "template-gallery/reviews/alpine_lake_in_oils.original-provenance.json", - "sha256": "sha256:bytes:9c9ff8e4bae92b7e4564fdc203a36a2cb625489c7b0ca9474ce9979f7bd2d519", + "path": "template-gallery/reviews/allegro_basalt_shore_at_dawn.original-provenance.json", + "sha256": "sha256:bytes:a2996998d545c63c8b494e783fe57caa254f36dc961a70e708b28e03550bccac", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14", - "sourceRevision": "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14", + "sourceUrl": "https://huggingface.co/rhymes-ai/Allegro/tree/c1b9207bb5cb79e2aa08f3d139c17d26c0de55b6", + "sourceRevision": "rhymes-ai/Allegro@c1b9207bb5cb79e2aa08f3d139c17d26c0de55b6", "sourceLicense": "MoDiff-authored Gallery metadata", "modelTerms": [ - "creativeml-openrail-m. https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14" + "Publisher model terms at https://huggingface.co/rhymes-ai/Allegro/tree/c1b9207bb5cb79e2aa08f3d139c17d26c0de55b6" ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14 https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14" + "rhymes-ai/Allegro@c1b9207bb5cb79e2aa08f3d139c17d26c0de55b6 https://huggingface.co/rhymes-ai/Allegro/tree/c1b9207bb5cb79e2aa08f3d139c17d26c0de55b6" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", - "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", - "provenanceTemplateId": "alpine_lake_in_oils" + "humanApprovalPacketSHA256": "de8db2f2fa14b59514ea146654439aea279cc6fad5be1dca8cf17e057abe9945", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "allegro_basalt_shore_at_dawn" }, { - "path": "template-gallery/reviews/alpine_lake_in_oils.original-review.json", - "sha256": "sha256:bytes:9535ffb383b57c57805ca9ad24a1df06ec87fe005d821448727de9c04709a2bd", + "path": "template-gallery/reviews/allegro_basalt_shore_at_dawn.original-review.json", + "sha256": "sha256:bytes:0b000fdf57c52d56adac605a0f840128da2c78e62aafc58fc3c441800196c747", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14", - "sourceRevision": "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14", + "sourceUrl": "https://huggingface.co/rhymes-ai/Allegro/tree/c1b9207bb5cb79e2aa08f3d139c17d26c0de55b6", + "sourceRevision": "rhymes-ai/Allegro@c1b9207bb5cb79e2aa08f3d139c17d26c0de55b6", "sourceLicense": "MoDiff-authored Gallery metadata", "modelTerms": [ - "creativeml-openrail-m. https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14" + "Publisher model terms at https://huggingface.co/rhymes-ai/Allegro/tree/c1b9207bb5cb79e2aa08f3d139c17d26c0de55b6" ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14 https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14" + "rhymes-ai/Allegro@c1b9207bb5cb79e2aa08f3d139c17d26c0de55b6 https://huggingface.co/rhymes-ai/Allegro/tree/c1b9207bb5cb79e2aa08f3d139c17d26c0de55b6" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", - "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", - "provenanceTemplateId": "alpine_lake_in_oils" + "humanApprovalPacketSHA256": "de8db2f2fa14b59514ea146654439aea279cc6fad5be1dca8cf17e057abe9945", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "allegro_basalt_shore_at_dawn" }, { - "path": "template-gallery/reviews/alpine_lake_in_oils.quality-review.json", - "sha256": "sha256:bytes:ca7c2fd6b10e3f100c7aff867aceb300f4fc93c5d4c3c93919fdf810fdf077b3", + "path": "template-gallery/reviews/allegro_basalt_shore_at_dawn.quality-review.json", + "sha256": "sha256:bytes:e5da20def6cd0d5058ff1088fa23538fc24d20f454aaf8e426550e07ebe1b0fa", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14", - "sourceRevision": "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14", + "sourceUrl": "https://huggingface.co/rhymes-ai/Allegro/tree/c1b9207bb5cb79e2aa08f3d139c17d26c0de55b6", + "sourceRevision": "rhymes-ai/Allegro@c1b9207bb5cb79e2aa08f3d139c17d26c0de55b6", "sourceLicense": "MoDiff-authored Gallery metadata", "modelTerms": [ - "creativeml-openrail-m. https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14" + "Publisher model terms at https://huggingface.co/rhymes-ai/Allegro/tree/c1b9207bb5cb79e2aa08f3d139c17d26c0de55b6" ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14 https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14" + "rhymes-ai/Allegro@c1b9207bb5cb79e2aa08f3d139c17d26c0de55b6 https://huggingface.co/rhymes-ai/Allegro/tree/c1b9207bb5cb79e2aa08f3d139c17d26c0de55b6" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", - "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", - "provenanceTemplateId": "alpine_lake_in_oils" + "humanApprovalPacketSHA256": "de8db2f2fa14b59514ea146654439aea279cc6fad5be1dca8cf17e057abe9945", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "allegro_basalt_shore_at_dawn" }, { - "path": "template-gallery/reviews/alpine_lake_in_oils.retained-template-provenance.json", - "sha256": "sha256:bytes:c268ddbea9ba90fcf556ac9afdcc6b290e103883c5c7e9b5b91a1312f0c4eacb", + "path": "template-gallery/reviews/allegro_basalt_shore_at_dawn.retained-template-provenance.json", + "sha256": "sha256:bytes:6057e4c649904336d8f2062637440260e4cadffe99e84d251d9e72427957f0f5", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/rhymes-ai/Allegro/tree/c1b9207bb5cb79e2aa08f3d139c17d26c0de55b6", + "sourceRevision": "rhymes-ai/Allegro@c1b9207bb5cb79e2aa08f3d139c17d26c0de55b6", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "Publisher model terms at https://huggingface.co/rhymes-ai/Allegro/tree/c1b9207bb5cb79e2aa08f3d139c17d26c0de55b6" + ], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "rhymes-ai/Allegro@c1b9207bb5cb79e2aa08f3d139c17d26c0de55b6 https://huggingface.co/rhymes-ai/Allegro/tree/c1b9207bb5cb79e2aa08f3d139c17d26c0de55b6" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "de8db2f2fa14b59514ea146654439aea279cc6fad5be1dca8cf17e057abe9945", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "allegro_basalt_shore_at_dawn" + }, + { + "path": "template-gallery/reviews/alpine_lake_in_oils.original-provenance.json", + "sha256": "sha256:bytes:9c9ff8e4bae92b7e4564fdc203a36a2cb625489c7b0ca9474ce9979f7bd2d519", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", @@ -10315,23 +10747,23 @@ "provenanceTemplateId": "alpine_lake_in_oils" }, { - "path": "template-gallery/reviews/bookshop_at_blue_hour.original-provenance.json", - "sha256": "sha256:bytes:3f3e4056350e5a1ee59d46aea727b87563ae6fc5fe11a491257e2af7d412f0bf", + "path": "template-gallery/reviews/alpine_lake_in_oils.original-review.json", + "sha256": "sha256:bytes:9535ffb383b57c57805ca9ad24a1df06ec87fe005d821448727de9c04709a2bd", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/baidu/ERNIE-Image-Turbo/tree/bc68c81e2a1730a394d5fc9fae70713dee940140", - "sourceRevision": "baidu/ERNIE-Image-Turbo@bc68c81e2a1730a394d5fc9fae70713dee940140", + "sourceUrl": "https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14", + "sourceRevision": "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14", "sourceLicense": "MoDiff-authored Gallery metadata", "modelTerms": [ - "apache-2.0. https://huggingface.co/baidu/ERNIE-Image-Turbo/tree/bc68c81e2a1730a394d5fc9fae70713dee940140" + "creativeml-openrail-m. https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14" ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "baidu/ERNIE-Image-Turbo@bc68c81e2a1730a394d5fc9fae70713dee940140 https://huggingface.co/baidu/ERNIE-Image-Turbo/tree/bc68c81e2a1730a394d5fc9fae70713dee940140" + "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14 https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", @@ -10339,26 +10771,26 @@ "reviewClass": "per-file-maintainer-accepted-retained-registration", "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", - "provenanceTemplateId": "bookshop_at_blue_hour" + "provenanceTemplateId": "alpine_lake_in_oils" }, { - "path": "template-gallery/reviews/bookshop_at_blue_hour.original-review.json", - "sha256": "sha256:bytes:26882cd197ba823799f50be6ea1c01098038ad3cee926a71edf7aa47038d7226", + "path": "template-gallery/reviews/alpine_lake_in_oils.quality-review.json", + "sha256": "sha256:bytes:ca7c2fd6b10e3f100c7aff867aceb300f4fc93c5d4c3c93919fdf810fdf077b3", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/baidu/ERNIE-Image-Turbo/tree/bc68c81e2a1730a394d5fc9fae70713dee940140", - "sourceRevision": "baidu/ERNIE-Image-Turbo@bc68c81e2a1730a394d5fc9fae70713dee940140", + "sourceUrl": "https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14", + "sourceRevision": "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14", "sourceLicense": "MoDiff-authored Gallery metadata", "modelTerms": [ - "apache-2.0. https://huggingface.co/baidu/ERNIE-Image-Turbo/tree/bc68c81e2a1730a394d5fc9fae70713dee940140" + "creativeml-openrail-m. https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14" ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "baidu/ERNIE-Image-Turbo@bc68c81e2a1730a394d5fc9fae70713dee940140 https://huggingface.co/baidu/ERNIE-Image-Turbo/tree/bc68c81e2a1730a394d5fc9fae70713dee940140" + "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14 https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", @@ -10366,26 +10798,26 @@ "reviewClass": "per-file-maintainer-accepted-retained-registration", "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", - "provenanceTemplateId": "bookshop_at_blue_hour" + "provenanceTemplateId": "alpine_lake_in_oils" }, { - "path": "template-gallery/reviews/bookshop_at_blue_hour.quality-review.json", - "sha256": "sha256:bytes:345c8dfefaa685385a016fcf545a50bf4d7554b07cee8c04f76efa270d830e4d", + "path": "template-gallery/reviews/alpine_lake_in_oils.retained-template-provenance.json", + "sha256": "sha256:bytes:c268ddbea9ba90fcf556ac9afdcc6b290e103883c5c7e9b5b91a1312f0c4eacb", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/baidu/ERNIE-Image-Turbo/tree/bc68c81e2a1730a394d5fc9fae70713dee940140", - "sourceRevision": "baidu/ERNIE-Image-Turbo@bc68c81e2a1730a394d5fc9fae70713dee940140", + "sourceUrl": "https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14", + "sourceRevision": "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14", "sourceLicense": "MoDiff-authored Gallery metadata", "modelTerms": [ - "apache-2.0. https://huggingface.co/baidu/ERNIE-Image-Turbo/tree/bc68c81e2a1730a394d5fc9fae70713dee940140" + "creativeml-openrail-m. https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14" ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "baidu/ERNIE-Image-Turbo@bc68c81e2a1730a394d5fc9fae70713dee940140 https://huggingface.co/baidu/ERNIE-Image-Turbo/tree/bc68c81e2a1730a394d5fc9fae70713dee940140" + "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14 https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", @@ -10393,529 +10825,485 @@ "reviewClass": "per-file-maintainer-accepted-retained-registration", "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", - "provenanceTemplateId": "bookshop_at_blue_hour" + "provenanceTemplateId": "alpine_lake_in_oils" }, { - "path": "template-gallery/reviews/bookshop_at_blue_hour.retained-template-provenance.json", - "sha256": "sha256:bytes:47f8649c5c8bdf345ef71157478da39f55cccda4ef5e6a726bb4738c560de7d7", + "path": "template-gallery/reviews/animatediff_candlelight_behind_amber_glass.original-provenance.json", + "sha256": "sha256:bytes:79862c74ca64222731ff6a86973283b578d12ebc72b6fa1e271177e9dcb814aa", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/baidu/ERNIE-Image-Turbo/tree/bc68c81e2a1730a394d5fc9fae70713dee940140", - "sourceRevision": "baidu/ERNIE-Image-Turbo@bc68c81e2a1730a394d5fc9fae70713dee940140", + "sourceUrl": "https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14", + "sourceRevision": "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14", "sourceLicense": "MoDiff-authored Gallery metadata", "modelTerms": [ - "apache-2.0. https://huggingface.co/baidu/ERNIE-Image-Turbo/tree/bc68c81e2a1730a394d5fc9fae70713dee940140" + "Publisher model terms at https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14" ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "baidu/ERNIE-Image-Turbo@bc68c81e2a1730a394d5fc9fae70713dee940140 https://huggingface.co/baidu/ERNIE-Image-Turbo/tree/bc68c81e2a1730a394d5fc9fae70713dee940140" + "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14 https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", - "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", - "provenanceTemplateId": "bookshop_at_blue_hour" + "humanApprovalPacketSHA256": "de8db2f2fa14b59514ea146654439aea279cc6fad5be1dca8cf17e057abe9945", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "animatediff_candlelight_behind_amber_glass" }, { - "path": "template-gallery/reviews/canal_lantern_in_warm_light.original-provenance.json", - "sha256": "sha256:bytes:3a802a1d1961ab209994af944eb3889cc6d675e3f9a409414c0504d344b38d7b", + "path": "template-gallery/reviews/animatediff_candlelight_behind_amber_glass.original-review.json", + "sha256": "sha256:bytes:2cb4965c1c1a39eb2a1dcfc0609065b4db61c0b2360663744d4d0e600c9d087f", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/Efficient-Large-Model/Sana_Sprint_0.6B_1024px_diffusers/tree/aa76e7f4f4928f378716b6716a2130fba3caf5b1", - "sourceRevision": "Efficient-Large-Model/Sana_Sprint_0.6B_1024px_diffusers@aa76e7f4f4928f378716b6716a2130fba3caf5b1", + "sourceUrl": "https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14", + "sourceRevision": "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14", "sourceLicense": "MoDiff-authored Gallery metadata", "modelTerms": [ - "apache-2.0. https://huggingface.co/Efficient-Large-Model/Sana_Sprint_0.6B_1024px_diffusers/tree/aa76e7f4f4928f378716b6716a2130fba3caf5b1" + "Publisher model terms at https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14" ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "Efficient-Large-Model/Sana_Sprint_0.6B_1024px_diffusers@aa76e7f4f4928f378716b6716a2130fba3caf5b1 https://huggingface.co/Efficient-Large-Model/Sana_Sprint_0.6B_1024px_diffusers/tree/aa76e7f4f4928f378716b6716a2130fba3caf5b1" + "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14 https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", - "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", - "provenanceTemplateId": "canal_lantern_in_warm_light" + "humanApprovalPacketSHA256": "de8db2f2fa14b59514ea146654439aea279cc6fad5be1dca8cf17e057abe9945", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "animatediff_candlelight_behind_amber_glass" }, { - "path": "template-gallery/reviews/canal_lantern_in_warm_light.original-review.json", - "sha256": "sha256:bytes:fdfac320256dd1dd7bcaa77ef449fe39a537e871db6ea579500579148bffea23", + "path": "template-gallery/reviews/animatediff_candlelight_behind_amber_glass.quality-review.json", + "sha256": "sha256:bytes:38711644268110700dffed84439a0ab8e5f35003b9823fc4b34dd1751291d4a1", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/Efficient-Large-Model/Sana_Sprint_0.6B_1024px_diffusers/tree/aa76e7f4f4928f378716b6716a2130fba3caf5b1", - "sourceRevision": "Efficient-Large-Model/Sana_Sprint_0.6B_1024px_diffusers@aa76e7f4f4928f378716b6716a2130fba3caf5b1", + "sourceUrl": "https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14", + "sourceRevision": "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14", "sourceLicense": "MoDiff-authored Gallery metadata", "modelTerms": [ - "apache-2.0. https://huggingface.co/Efficient-Large-Model/Sana_Sprint_0.6B_1024px_diffusers/tree/aa76e7f4f4928f378716b6716a2130fba3caf5b1" + "Publisher model terms at https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14" ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "Efficient-Large-Model/Sana_Sprint_0.6B_1024px_diffusers@aa76e7f4f4928f378716b6716a2130fba3caf5b1 https://huggingface.co/Efficient-Large-Model/Sana_Sprint_0.6B_1024px_diffusers/tree/aa76e7f4f4928f378716b6716a2130fba3caf5b1" + "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14 https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", - "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", - "provenanceTemplateId": "canal_lantern_in_warm_light" + "humanApprovalPacketSHA256": "de8db2f2fa14b59514ea146654439aea279cc6fad5be1dca8cf17e057abe9945", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "animatediff_candlelight_behind_amber_glass" }, { - "path": "template-gallery/reviews/canal_lantern_in_warm_light.quality-review.json", - "sha256": "sha256:bytes:721e6e325451df2320c2813bedce2b5c4b37d92d30ac974ca95b4f3edba6b316", + "path": "template-gallery/reviews/animatediff_candlelight_behind_amber_glass.retained-template-provenance.json", + "sha256": "sha256:bytes:2ddc8e7e5616f8a222d9bebe0fab488e4fce11c1e2be03e9ba40d6153050763b", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/Efficient-Large-Model/Sana_Sprint_0.6B_1024px_diffusers/tree/aa76e7f4f4928f378716b6716a2130fba3caf5b1", - "sourceRevision": "Efficient-Large-Model/Sana_Sprint_0.6B_1024px_diffusers@aa76e7f4f4928f378716b6716a2130fba3caf5b1", + "sourceUrl": "https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14", + "sourceRevision": "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14", "sourceLicense": "MoDiff-authored Gallery metadata", "modelTerms": [ - "apache-2.0. https://huggingface.co/Efficient-Large-Model/Sana_Sprint_0.6B_1024px_diffusers/tree/aa76e7f4f4928f378716b6716a2130fba3caf5b1" + "Publisher model terms at https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14" ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "Efficient-Large-Model/Sana_Sprint_0.6B_1024px_diffusers@aa76e7f4f4928f378716b6716a2130fba3caf5b1 https://huggingface.co/Efficient-Large-Model/Sana_Sprint_0.6B_1024px_diffusers/tree/aa76e7f4f4928f378716b6716a2130fba3caf5b1" + "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14 https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", - "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", - "provenanceTemplateId": "canal_lantern_in_warm_light" + "humanApprovalPacketSHA256": "de8db2f2fa14b59514ea146654439aea279cc6fad5be1dca8cf17e057abe9945", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "animatediff_candlelight_behind_amber_glass" }, { - "path": "template-gallery/reviews/canal_lantern_in_warm_light.retained-template-provenance.json", - "sha256": "sha256:bytes:5027304dcbef05cecb1baff1771c2f7f96671fee8d3fac34f9fece5f730c3885", + "path": "template-gallery/reviews/animatediff_ivory_balloon_blue_mountains.original-provenance.json", + "sha256": "sha256:bytes:714874a82ef9979fbe7ec94fda08ba641db4264fcdfacd4008ec385bfcf30452", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/Efficient-Large-Model/Sana_Sprint_0.6B_1024px_diffusers/tree/aa76e7f4f4928f378716b6716a2130fba3caf5b1", - "sourceRevision": "Efficient-Large-Model/Sana_Sprint_0.6B_1024px_diffusers@aa76e7f4f4928f378716b6716a2130fba3caf5b1", + "sourceUrl": "https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14", + "sourceRevision": "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14", "sourceLicense": "MoDiff-authored Gallery metadata", "modelTerms": [ - "apache-2.0. https://huggingface.co/Efficient-Large-Model/Sana_Sprint_0.6B_1024px_diffusers/tree/aa76e7f4f4928f378716b6716a2130fba3caf5b1" + "Publisher model terms at https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14" ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "Efficient-Large-Model/Sana_Sprint_0.6B_1024px_diffusers@aa76e7f4f4928f378716b6716a2130fba3caf5b1 https://huggingface.co/Efficient-Large-Model/Sana_Sprint_0.6B_1024px_diffusers/tree/aa76e7f4f4928f378716b6716a2130fba3caf5b1" + "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14 https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", - "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", - "provenanceTemplateId": "canal_lantern_in_warm_light" + "humanApprovalPacketSHA256": "de8db2f2fa14b59514ea146654439aea279cc6fad5be1dca8cf17e057abe9945", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "animatediff_ivory_balloon_blue_mountains" }, { - "path": "template-gallery/reviews/character_edit.quality-review.json", - "sha256": "sha256:bytes:89cca4e7b8e466c614d973925b4775e18cec8c39e14e639a9d48b89918e7ae7f", - "publishDecision": "approved", - "holdReason": null, - "creatorOrRightsholder": "MoDiff project maintainers", - "creationMethod": "Project-authored Gallery manifest, native provenance or accepted quality review", - "sourceUrl": null, - "sourceRevision": null, - "sourceLicense": "Apache-2.0 project-authored metadata", - "modelTerms": [], - "aiGenerated": false, - "humanLikenessConsent": "not-applicable", - "marks": [], - "requiredAttribution": [], - "assetLicense": "Apache-2.0", - "reviewedBy": "SOURAV DAS", - "reviewedAt": "2026-11-10", - "reviewClass": "per-file-maintainer-accepted-native-gallery-registration", - "provenanceTemplateId": "character_edit", - "humanApprovalPacketSHA256": "95893cb17e10b15ae6b23d8b31b57b0e14b9af96f822d75edbc6b68971afb11d" - }, - { - "path": "template-gallery/reviews/character_edit.reviewed-provenance.json", - "sha256": "sha256:bytes:fee8045c51a38c8c73f668af5e3f513d7f0cbbf6978122fe73d2487ab746e110", - "publishDecision": "approved", - "holdReason": null, - "creatorOrRightsholder": "MoDiff project maintainers", - "creationMethod": "Project-authored Gallery manifest, native provenance or accepted quality review", - "sourceUrl": null, - "sourceRevision": null, - "sourceLicense": "Apache-2.0 project-authored metadata", - "modelTerms": [], - "aiGenerated": false, - "humanLikenessConsent": "not-applicable", - "marks": [], - "requiredAttribution": [], - "assetLicense": "Apache-2.0", - "reviewedBy": "SOURAV DAS", - "reviewedAt": "2026-11-10", - "reviewClass": "per-file-maintainer-accepted-native-gallery-registration", - "provenanceTemplateId": "character_edit", - "humanApprovalPacketSHA256": "95893cb17e10b15ae6b23d8b31b57b0e14b9af96f822d75edbc6b68971afb11d" - }, - { - "path": "template-gallery/reviews/chroma_alpine_block_print.original-provenance.json", - "sha256": "sha256:bytes:f17d6523a55fcf5bd0c147d9a46dee5b6e7fc6363f6a08685ba8a65459f73cf2", + "path": "template-gallery/reviews/animatediff_ivory_balloon_blue_mountains.original-review.json", + "sha256": "sha256:bytes:68c41e118c91f05d7d44d2f89d17bbe08e4f0081d7b03d4c7c56cb1f61bd117a", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/lodestones/Chroma1-HD/tree/0e0c60ece1e82b17cb7f77342d765ba5024c40c0", - "sourceRevision": "lodestones/Chroma1-HD@0e0c60ece1e82b17cb7f77342d765ba5024c40c0", + "sourceUrl": "https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14", + "sourceRevision": "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14", "sourceLicense": "MoDiff-authored Gallery metadata", "modelTerms": [ - "Publisher model terms at https://huggingface.co/lodestones/Chroma1-HD/tree/0e0c60ece1e82b17cb7f77342d765ba5024c40c0" + "Publisher model terms at https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14" ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "lodestones/Chroma1-HD@0e0c60ece1e82b17cb7f77342d765ba5024c40c0 https://huggingface.co/lodestones/Chroma1-HD/tree/0e0c60ece1e82b17cb7f77342d765ba5024c40c0" + "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14 https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "60b01498a2df5f4e4622cdc2f9a43c83d187820780d2425a19718c13707db501", + "humanApprovalPacketSHA256": "de8db2f2fa14b59514ea146654439aea279cc6fad5be1dca8cf17e057abe9945", "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", - "provenanceTemplateId": "chroma_alpine_block_print" + "provenanceTemplateId": "animatediff_ivory_balloon_blue_mountains" }, { - "path": "template-gallery/reviews/chroma_alpine_block_print.original-review.json", - "sha256": "sha256:bytes:a7ba022616f2a41b3046a7ac3ca7779a6f4efc5692bc02c21dc52701354f8a01", + "path": "template-gallery/reviews/animatediff_ivory_balloon_blue_mountains.quality-review.json", + "sha256": "sha256:bytes:1b02ea17ec15c71c00c0092566a6eca31887f1f0064f59e58041f008a48ed7a4", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/lodestones/Chroma1-HD/tree/0e0c60ece1e82b17cb7f77342d765ba5024c40c0", - "sourceRevision": "lodestones/Chroma1-HD@0e0c60ece1e82b17cb7f77342d765ba5024c40c0", + "sourceUrl": "https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14", + "sourceRevision": "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14", "sourceLicense": "MoDiff-authored Gallery metadata", "modelTerms": [ - "Publisher model terms at https://huggingface.co/lodestones/Chroma1-HD/tree/0e0c60ece1e82b17cb7f77342d765ba5024c40c0" + "Publisher model terms at https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14" ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "lodestones/Chroma1-HD@0e0c60ece1e82b17cb7f77342d765ba5024c40c0 https://huggingface.co/lodestones/Chroma1-HD/tree/0e0c60ece1e82b17cb7f77342d765ba5024c40c0" + "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14 https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "60b01498a2df5f4e4622cdc2f9a43c83d187820780d2425a19718c13707db501", + "humanApprovalPacketSHA256": "de8db2f2fa14b59514ea146654439aea279cc6fad5be1dca8cf17e057abe9945", "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", - "provenanceTemplateId": "chroma_alpine_block_print" + "provenanceTemplateId": "animatediff_ivory_balloon_blue_mountains" }, { - "path": "template-gallery/reviews/chroma_alpine_block_print.quality-review.json", - "sha256": "sha256:bytes:bb7979a051f9839fdee168737f18bf99c630f5e7edba7ab59f8e7471315d9413", + "path": "template-gallery/reviews/animatediff_ivory_balloon_blue_mountains.retained-template-provenance.json", + "sha256": "sha256:bytes:298df24429b6a944e33aa796bf1214547b6ce84f454b4b844c5d0a06492aa042", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/lodestones/Chroma1-HD/tree/0e0c60ece1e82b17cb7f77342d765ba5024c40c0", - "sourceRevision": "lodestones/Chroma1-HD@0e0c60ece1e82b17cb7f77342d765ba5024c40c0", + "sourceUrl": "https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14", + "sourceRevision": "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14", "sourceLicense": "MoDiff-authored Gallery metadata", "modelTerms": [ - "Publisher model terms at https://huggingface.co/lodestones/Chroma1-HD/tree/0e0c60ece1e82b17cb7f77342d765ba5024c40c0" + "Publisher model terms at https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14" ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "lodestones/Chroma1-HD@0e0c60ece1e82b17cb7f77342d765ba5024c40c0 https://huggingface.co/lodestones/Chroma1-HD/tree/0e0c60ece1e82b17cb7f77342d765ba5024c40c0" + "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14 https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "60b01498a2df5f4e4622cdc2f9a43c83d187820780d2425a19718c13707db501", + "humanApprovalPacketSHA256": "de8db2f2fa14b59514ea146654439aea279cc6fad5be1dca8cf17e057abe9945", "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", - "provenanceTemplateId": "chroma_alpine_block_print" + "provenanceTemplateId": "animatediff_ivory_balloon_blue_mountains" }, { - "path": "template-gallery/reviews/chroma_alpine_block_print.retained-template-provenance.json", - "sha256": "sha256:bytes:d8643c8c82d299a62068afd7b38de0d24fcfd6882585370e73fbe63402726e4a", + "path": "template-gallery/reviews/animatediff_red_tram_in_watercolor.original-provenance.json", + "sha256": "sha256:bytes:e7a460bbb4657cda566f0c90b57d820aa0000785df2737e2ad7777296897f8a4", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/lodestones/Chroma1-HD/tree/0e0c60ece1e82b17cb7f77342d765ba5024c40c0", - "sourceRevision": "lodestones/Chroma1-HD@0e0c60ece1e82b17cb7f77342d765ba5024c40c0", + "sourceUrl": "https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14", + "sourceRevision": "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14", "sourceLicense": "MoDiff-authored Gallery metadata", "modelTerms": [ - "Publisher model terms at https://huggingface.co/lodestones/Chroma1-HD/tree/0e0c60ece1e82b17cb7f77342d765ba5024c40c0" + "Publisher model terms at https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14" ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "lodestones/Chroma1-HD@0e0c60ece1e82b17cb7f77342d765ba5024c40c0 https://huggingface.co/lodestones/Chroma1-HD/tree/0e0c60ece1e82b17cb7f77342d765ba5024c40c0" + "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14 https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "60b01498a2df5f4e4622cdc2f9a43c83d187820780d2425a19718c13707db501", + "humanApprovalPacketSHA256": "de8db2f2fa14b59514ea146654439aea279cc6fad5be1dca8cf17e057abe9945", "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", - "provenanceTemplateId": "chroma_alpine_block_print" + "provenanceTemplateId": "animatediff_red_tram_in_watercolor" }, { - "path": "template-gallery/reviews/chroma_restored_cobalt_backdrop.original-provenance.json", - "sha256": "sha256:bytes:f87d18b81ff559f1298f0c780db0f5eb89e9f8219b4f4aff80c224bc3ef47ce4", + "path": "template-gallery/reviews/animatediff_red_tram_in_watercolor.original-review.json", + "sha256": "sha256:bytes:5cc5387ab876b37c77b2f5885b7c2fc8948c048faee40d0a3748d670c7d46d9d", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/lodestones/Chroma1-HD/tree/0e0c60ece1e82b17cb7f77342d765ba5024c40c0", - "sourceRevision": "lodestones/Chroma1-HD@0e0c60ece1e82b17cb7f77342d765ba5024c40c0", + "sourceUrl": "https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14", + "sourceRevision": "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14", "sourceLicense": "MoDiff-authored Gallery metadata", "modelTerms": [ - "Publisher model terms at https://huggingface.co/lodestones/Chroma1-HD/tree/0e0c60ece1e82b17cb7f77342d765ba5024c40c0" + "Publisher model terms at https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14" ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "lodestones/Chroma1-HD@0e0c60ece1e82b17cb7f77342d765ba5024c40c0 https://huggingface.co/lodestones/Chroma1-HD/tree/0e0c60ece1e82b17cb7f77342d765ba5024c40c0" + "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14 https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "c2df9edb92f8ff905b6c9a138a285e67c621f3d2dfa3232f859aaf963b725aca", + "humanApprovalPacketSHA256": "de8db2f2fa14b59514ea146654439aea279cc6fad5be1dca8cf17e057abe9945", "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", - "provenanceTemplateId": "chroma_restored_cobalt_backdrop" + "provenanceTemplateId": "animatediff_red_tram_in_watercolor" }, { - "path": "template-gallery/reviews/chroma_restored_cobalt_backdrop.original-review.json", - "sha256": "sha256:bytes:88d1fbfadc2e1d3456f492214f7e51da6bdfd253eb00343fb93990e16c9ba2b9", + "path": "template-gallery/reviews/animatediff_red_tram_in_watercolor.quality-review.json", + "sha256": "sha256:bytes:3828845174e5702fe4a393a86bc6e7b5847f1c8639b23800d61c6e3633183261", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/lodestones/Chroma1-HD/tree/0e0c60ece1e82b17cb7f77342d765ba5024c40c0", - "sourceRevision": "lodestones/Chroma1-HD@0e0c60ece1e82b17cb7f77342d765ba5024c40c0", + "sourceUrl": "https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14", + "sourceRevision": "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14", "sourceLicense": "MoDiff-authored Gallery metadata", "modelTerms": [ - "Publisher model terms at https://huggingface.co/lodestones/Chroma1-HD/tree/0e0c60ece1e82b17cb7f77342d765ba5024c40c0" + "Publisher model terms at https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14" ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "lodestones/Chroma1-HD@0e0c60ece1e82b17cb7f77342d765ba5024c40c0 https://huggingface.co/lodestones/Chroma1-HD/tree/0e0c60ece1e82b17cb7f77342d765ba5024c40c0" + "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14 https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "c2df9edb92f8ff905b6c9a138a285e67c621f3d2dfa3232f859aaf963b725aca", + "humanApprovalPacketSHA256": "de8db2f2fa14b59514ea146654439aea279cc6fad5be1dca8cf17e057abe9945", "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", - "provenanceTemplateId": "chroma_restored_cobalt_backdrop" + "provenanceTemplateId": "animatediff_red_tram_in_watercolor" }, { - "path": "template-gallery/reviews/chroma_restored_cobalt_backdrop.quality-review.json", - "sha256": "sha256:bytes:803c31f4eb055884cbe955856e99f9846f9259ae58ad6c883d686de581c0dd09", + "path": "template-gallery/reviews/animatediff_red_tram_in_watercolor.retained-template-provenance.json", + "sha256": "sha256:bytes:137902583abc832020f92f256050bc44104f0762360f470138e654746d278b59", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/lodestones/Chroma1-HD/tree/0e0c60ece1e82b17cb7f77342d765ba5024c40c0", - "sourceRevision": "lodestones/Chroma1-HD@0e0c60ece1e82b17cb7f77342d765ba5024c40c0", + "sourceUrl": "https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14", + "sourceRevision": "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14", "sourceLicense": "MoDiff-authored Gallery metadata", "modelTerms": [ - "Publisher model terms at https://huggingface.co/lodestones/Chroma1-HD/tree/0e0c60ece1e82b17cb7f77342d765ba5024c40c0" + "Publisher model terms at https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14" ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "lodestones/Chroma1-HD@0e0c60ece1e82b17cb7f77342d765ba5024c40c0 https://huggingface.co/lodestones/Chroma1-HD/tree/0e0c60ece1e82b17cb7f77342d765ba5024c40c0" + "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14 https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "c2df9edb92f8ff905b6c9a138a285e67c621f3d2dfa3232f859aaf963b725aca", + "humanApprovalPacketSHA256": "de8db2f2fa14b59514ea146654439aea279cc6fad5be1dca8cf17e057abe9945", "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", - "provenanceTemplateId": "chroma_restored_cobalt_backdrop" + "provenanceTemplateId": "animatediff_red_tram_in_watercolor" }, { - "path": "template-gallery/reviews/chroma_restored_cobalt_backdrop.retained-template-provenance.json", - "sha256": "sha256:bytes:5232b12615a38293b0d86378fdde3003a61a8f5834de95f395a9364e12dd8fd4", + "path": "template-gallery/reviews/animatediff_red_tram_through_snow.original-provenance.json", + "sha256": "sha256:bytes:b5198902e667bfa48b915027b301a3150ec994c44b132213c3c855b24e3f08f8", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/lodestones/Chroma1-HD/tree/0e0c60ece1e82b17cb7f77342d765ba5024c40c0", - "sourceRevision": "lodestones/Chroma1-HD@0e0c60ece1e82b17cb7f77342d765ba5024c40c0", + "sourceUrl": "https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14", + "sourceRevision": "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14", "sourceLicense": "MoDiff-authored Gallery metadata", "modelTerms": [ - "Publisher model terms at https://huggingface.co/lodestones/Chroma1-HD/tree/0e0c60ece1e82b17cb7f77342d765ba5024c40c0" + "Publisher model terms at https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14" ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "lodestones/Chroma1-HD@0e0c60ece1e82b17cb7f77342d765ba5024c40c0 https://huggingface.co/lodestones/Chroma1-HD/tree/0e0c60ece1e82b17cb7f77342d765ba5024c40c0" + "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14 https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "c2df9edb92f8ff905b6c9a138a285e67c621f3d2dfa3232f859aaf963b725aca", + "humanApprovalPacketSHA256": "de8db2f2fa14b59514ea146654439aea279cc6fad5be1dca8cf17e057abe9945", "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", - "provenanceTemplateId": "chroma_restored_cobalt_backdrop" + "provenanceTemplateId": "animatediff_red_tram_through_snow" }, { - "path": "template-gallery/reviews/chroma_terracotta_and_blue.original-provenance.json", - "sha256": "sha256:bytes:92a7762ec200afa64405b665dbd19d630b846f55bdb170fc08bfb5c588b1d258", + "path": "template-gallery/reviews/animatediff_red_tram_through_snow.original-review.json", + "sha256": "sha256:bytes:eef73b832d4acfb53ca4d5ededbd580821d8d91ffb372fcdcfb55f5f469f33cc", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/lodestones/Chroma1-HD/tree/0e0c60ece1e82b17cb7f77342d765ba5024c40c0", - "sourceRevision": "lodestones/Chroma1-HD@0e0c60ece1e82b17cb7f77342d765ba5024c40c0", + "sourceUrl": "https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14", + "sourceRevision": "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14", "sourceLicense": "MoDiff-authored Gallery metadata", "modelTerms": [ - "https://huggingface.co/lodestones/Chroma1-HD/blob/0e0c60ece1e82b17cb7f77342d765ba5024c40c0/README.md" + "Publisher model terms at https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14" ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "lodestones/Chroma1-HD@0e0c60ece1e82b17cb7f77342d765ba5024c40c0 https://huggingface.co/lodestones/Chroma1-HD/tree/0e0c60ece1e82b17cb7f77342d765ba5024c40c0" + "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14 https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "c2df9edb92f8ff905b6c9a138a285e67c621f3d2dfa3232f859aaf963b725aca", + "humanApprovalPacketSHA256": "de8db2f2fa14b59514ea146654439aea279cc6fad5be1dca8cf17e057abe9945", "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", - "provenanceTemplateId": "chroma_terracotta_and_blue" + "provenanceTemplateId": "animatediff_red_tram_through_snow" }, { - "path": "template-gallery/reviews/chroma_terracotta_and_blue.original-review.json", - "sha256": "sha256:bytes:d935f45b897cc717315684e2b180097b2e3892d275b4c38e96f2a9ec930ae24f", + "path": "template-gallery/reviews/animatediff_red_tram_through_snow.quality-review.json", + "sha256": "sha256:bytes:c5c55e2d2ac7cbb65ef5ed89611da7b51b57ed5ed52d110fb324fe772eae6a0d", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/lodestones/Chroma1-HD/tree/0e0c60ece1e82b17cb7f77342d765ba5024c40c0", - "sourceRevision": "lodestones/Chroma1-HD@0e0c60ece1e82b17cb7f77342d765ba5024c40c0", + "sourceUrl": "https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14", + "sourceRevision": "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14", "sourceLicense": "MoDiff-authored Gallery metadata", "modelTerms": [ - "https://huggingface.co/lodestones/Chroma1-HD/blob/0e0c60ece1e82b17cb7f77342d765ba5024c40c0/README.md" + "Publisher model terms at https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14" ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "lodestones/Chroma1-HD@0e0c60ece1e82b17cb7f77342d765ba5024c40c0 https://huggingface.co/lodestones/Chroma1-HD/tree/0e0c60ece1e82b17cb7f77342d765ba5024c40c0" + "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14 https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "c2df9edb92f8ff905b6c9a138a285e67c621f3d2dfa3232f859aaf963b725aca", + "humanApprovalPacketSHA256": "de8db2f2fa14b59514ea146654439aea279cc6fad5be1dca8cf17e057abe9945", "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", - "provenanceTemplateId": "chroma_terracotta_and_blue" + "provenanceTemplateId": "animatediff_red_tram_through_snow" }, { - "path": "template-gallery/reviews/chroma_terracotta_and_blue.quality-review.json", - "sha256": "sha256:bytes:2435a255e05519ab5b750b4728217d7f938631213ffeeb6da882dcb184e9fa7b", + "path": "template-gallery/reviews/animatediff_red_tram_through_snow.retained-template-provenance.json", + "sha256": "sha256:bytes:aa34be488b31fd42a12a1db6ff4c0b0ba2ec653439f4a62011698aeb46b71baa", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/lodestones/Chroma1-HD/tree/0e0c60ece1e82b17cb7f77342d765ba5024c40c0", - "sourceRevision": "lodestones/Chroma1-HD@0e0c60ece1e82b17cb7f77342d765ba5024c40c0", + "sourceUrl": "https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14", + "sourceRevision": "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14", "sourceLicense": "MoDiff-authored Gallery metadata", "modelTerms": [ - "https://huggingface.co/lodestones/Chroma1-HD/blob/0e0c60ece1e82b17cb7f77342d765ba5024c40c0/README.md" + "Publisher model terms at https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14" ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "lodestones/Chroma1-HD@0e0c60ece1e82b17cb7f77342d765ba5024c40c0 https://huggingface.co/lodestones/Chroma1-HD/tree/0e0c60ece1e82b17cb7f77342d765ba5024c40c0" + "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14 https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "c2df9edb92f8ff905b6c9a138a285e67c621f3d2dfa3232f859aaf963b725aca", + "humanApprovalPacketSHA256": "de8db2f2fa14b59514ea146654439aea279cc6fad5be1dca8cf17e057abe9945", "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", - "provenanceTemplateId": "chroma_terracotta_and_blue" + "provenanceTemplateId": "animatediff_red_tram_through_snow" }, { - "path": "template-gallery/reviews/chroma_terracotta_and_blue.retained-template-provenance.json", - "sha256": "sha256:bytes:95d0a67308f0dd2b8024a39cacca3fcfd82611a03d01f76a38a429dd1c4c2077", + "path": "template-gallery/reviews/bookshop_at_blue_hour.original-provenance.json", + "sha256": "sha256:bytes:3f3e4056350e5a1ee59d46aea727b87563ae6fc5fe11a491257e2af7d412f0bf", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/lodestones/Chroma1-HD/tree/0e0c60ece1e82b17cb7f77342d765ba5024c40c0", - "sourceRevision": "lodestones/Chroma1-HD@0e0c60ece1e82b17cb7f77342d765ba5024c40c0", + "sourceUrl": "https://huggingface.co/baidu/ERNIE-Image-Turbo/tree/bc68c81e2a1730a394d5fc9fae70713dee940140", + "sourceRevision": "baidu/ERNIE-Image-Turbo@bc68c81e2a1730a394d5fc9fae70713dee940140", "sourceLicense": "MoDiff-authored Gallery metadata", "modelTerms": [ - "https://huggingface.co/lodestones/Chroma1-HD/blob/0e0c60ece1e82b17cb7f77342d765ba5024c40c0/README.md" + "apache-2.0. https://huggingface.co/baidu/ERNIE-Image-Turbo/tree/bc68c81e2a1730a394d5fc9fae70713dee940140" ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "lodestones/Chroma1-HD@0e0c60ece1e82b17cb7f77342d765ba5024c40c0 https://huggingface.co/lodestones/Chroma1-HD/tree/0e0c60ece1e82b17cb7f77342d765ba5024c40c0" + "baidu/ERNIE-Image-Turbo@bc68c81e2a1730a394d5fc9fae70713dee940140 https://huggingface.co/baidu/ERNIE-Image-Turbo/tree/bc68c81e2a1730a394d5fc9fae70713dee940140" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "c2df9edb92f8ff905b6c9a138a285e67c621f3d2dfa3232f859aaf963b725aca", - "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", - "provenanceTemplateId": "chroma_terracotta_and_blue" + "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", + "provenanceTemplateId": "bookshop_at_blue_hour" }, { - "path": "template-gallery/reviews/cobalt_jug_and_lemons.original-provenance.json", - "sha256": "sha256:bytes:c9b80942080368a5e13eef6d01a31691034655d618c40ef89ab9bd1b0ade0c7e", + "path": "template-gallery/reviews/bookshop_at_blue_hour.original-review.json", + "sha256": "sha256:bytes:26882cd197ba823799f50be6ea1c01098038ad3cee926a71edf7aa47038d7226", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14", - "sourceRevision": "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14", + "sourceUrl": "https://huggingface.co/baidu/ERNIE-Image-Turbo/tree/bc68c81e2a1730a394d5fc9fae70713dee940140", + "sourceRevision": "baidu/ERNIE-Image-Turbo@bc68c81e2a1730a394d5fc9fae70713dee940140", "sourceLicense": "MoDiff-authored Gallery metadata", "modelTerms": [ - "creativeml-openrail-m. https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14" + "apache-2.0. https://huggingface.co/baidu/ERNIE-Image-Turbo/tree/bc68c81e2a1730a394d5fc9fae70713dee940140" ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14 https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14" + "baidu/ERNIE-Image-Turbo@bc68c81e2a1730a394d5fc9fae70713dee940140 https://huggingface.co/baidu/ERNIE-Image-Turbo/tree/bc68c81e2a1730a394d5fc9fae70713dee940140" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", @@ -10923,26 +11311,26 @@ "reviewClass": "per-file-maintainer-accepted-retained-registration", "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", - "provenanceTemplateId": "cobalt_jug_and_lemons" + "provenanceTemplateId": "bookshop_at_blue_hour" }, { - "path": "template-gallery/reviews/cobalt_jug_and_lemons.original-review.json", - "sha256": "sha256:bytes:f55b66df26013db2e002b925f1aceececec95ebd311a306bb082258f292751f1", + "path": "template-gallery/reviews/bookshop_at_blue_hour.quality-review.json", + "sha256": "sha256:bytes:345c8dfefaa685385a016fcf545a50bf4d7554b07cee8c04f76efa270d830e4d", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14", - "sourceRevision": "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14", + "sourceUrl": "https://huggingface.co/baidu/ERNIE-Image-Turbo/tree/bc68c81e2a1730a394d5fc9fae70713dee940140", + "sourceRevision": "baidu/ERNIE-Image-Turbo@bc68c81e2a1730a394d5fc9fae70713dee940140", "sourceLicense": "MoDiff-authored Gallery metadata", "modelTerms": [ - "creativeml-openrail-m. https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14" + "apache-2.0. https://huggingface.co/baidu/ERNIE-Image-Turbo/tree/bc68c81e2a1730a394d5fc9fae70713dee940140" ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14 https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14" + "baidu/ERNIE-Image-Turbo@bc68c81e2a1730a394d5fc9fae70713dee940140 https://huggingface.co/baidu/ERNIE-Image-Turbo/tree/bc68c81e2a1730a394d5fc9fae70713dee940140" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", @@ -10950,26 +11338,26 @@ "reviewClass": "per-file-maintainer-accepted-retained-registration", "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", - "provenanceTemplateId": "cobalt_jug_and_lemons" + "provenanceTemplateId": "bookshop_at_blue_hour" }, { - "path": "template-gallery/reviews/cobalt_jug_and_lemons.quality-review.json", - "sha256": "sha256:bytes:da64a4e035bbe030a037ddfaf23a16946114d0e680c842f37976cc50ff8d6970", + "path": "template-gallery/reviews/bookshop_at_blue_hour.retained-template-provenance.json", + "sha256": "sha256:bytes:47f8649c5c8bdf345ef71157478da39f55cccda4ef5e6a726bb4738c560de7d7", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14", - "sourceRevision": "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14", + "sourceUrl": "https://huggingface.co/baidu/ERNIE-Image-Turbo/tree/bc68c81e2a1730a394d5fc9fae70713dee940140", + "sourceRevision": "baidu/ERNIE-Image-Turbo@bc68c81e2a1730a394d5fc9fae70713dee940140", "sourceLicense": "MoDiff-authored Gallery metadata", "modelTerms": [ - "creativeml-openrail-m. https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14" + "apache-2.0. https://huggingface.co/baidu/ERNIE-Image-Turbo/tree/bc68c81e2a1730a394d5fc9fae70713dee940140" ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14 https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14" + "baidu/ERNIE-Image-Turbo@bc68c81e2a1730a394d5fc9fae70713dee940140 https://huggingface.co/baidu/ERNIE-Image-Turbo/tree/bc68c81e2a1730a394d5fc9fae70713dee940140" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", @@ -10977,26 +11365,26 @@ "reviewClass": "per-file-maintainer-accepted-retained-registration", "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", - "provenanceTemplateId": "cobalt_jug_and_lemons" + "provenanceTemplateId": "bookshop_at_blue_hour" }, { - "path": "template-gallery/reviews/cobalt_jug_and_lemons.retained-template-provenance.json", - "sha256": "sha256:bytes:066fee762cae8b5f92625cc71f4002422828b06115024c3ce11affd68f34544e", + "path": "template-gallery/reviews/canal_lantern_in_warm_light.original-provenance.json", + "sha256": "sha256:bytes:3a802a1d1961ab209994af944eb3889cc6d675e3f9a409414c0504d344b38d7b", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14", - "sourceRevision": "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14", + "sourceUrl": "https://huggingface.co/Efficient-Large-Model/Sana_Sprint_0.6B_1024px_diffusers/tree/aa76e7f4f4928f378716b6716a2130fba3caf5b1", + "sourceRevision": "Efficient-Large-Model/Sana_Sprint_0.6B_1024px_diffusers@aa76e7f4f4928f378716b6716a2130fba3caf5b1", "sourceLicense": "MoDiff-authored Gallery metadata", "modelTerms": [ - "creativeml-openrail-m. https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14" + "apache-2.0. https://huggingface.co/Efficient-Large-Model/Sana_Sprint_0.6B_1024px_diffusers/tree/aa76e7f4f4928f378716b6716a2130fba3caf5b1" ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14 https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14" + "Efficient-Large-Model/Sana_Sprint_0.6B_1024px_diffusers@aa76e7f4f4928f378716b6716a2130fba3caf5b1 https://huggingface.co/Efficient-Large-Model/Sana_Sprint_0.6B_1024px_diffusers/tree/aa76e7f4f4928f378716b6716a2130fba3caf5b1" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", @@ -11004,502 +11392,529 @@ "reviewClass": "per-file-maintainer-accepted-retained-registration", "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", - "provenanceTemplateId": "cobalt_jug_and_lemons" + "provenanceTemplateId": "canal_lantern_in_warm_light" }, { - "path": "template-gallery/reviews/cogvideox_mossy_mountain_stream.original-provenance.json", - "sha256": "sha256:bytes:33e7bae227d98d35af005ca13238e9adfb288160165643330621b871c48ac32c", + "path": "template-gallery/reviews/canal_lantern_in_warm_light.original-review.json", + "sha256": "sha256:bytes:fdfac320256dd1dd7bcaa77ef449fe39a537e871db6ea579500579148bffea23", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/zai-org/CogVideoX-2b/tree/1137dacfc2c9c012bed6a0793f4ecf2ca8e7ba01", - "sourceRevision": "zai-org/CogVideoX-2b@1137dacfc2c9c012bed6a0793f4ecf2ca8e7ba01", + "sourceUrl": "https://huggingface.co/Efficient-Large-Model/Sana_Sprint_0.6B_1024px_diffusers/tree/aa76e7f4f4928f378716b6716a2130fba3caf5b1", + "sourceRevision": "Efficient-Large-Model/Sana_Sprint_0.6B_1024px_diffusers@aa76e7f4f4928f378716b6716a2130fba3caf5b1", "sourceLicense": "MoDiff-authored Gallery metadata", "modelTerms": [ - "Publisher model terms at https://huggingface.co/zai-org/CogVideoX-2b/tree/1137dacfc2c9c012bed6a0793f4ecf2ca8e7ba01" + "apache-2.0. https://huggingface.co/Efficient-Large-Model/Sana_Sprint_0.6B_1024px_diffusers/tree/aa76e7f4f4928f378716b6716a2130fba3caf5b1" ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "zai-org/CogVideoX-2b@1137dacfc2c9c012bed6a0793f4ecf2ca8e7ba01 https://huggingface.co/zai-org/CogVideoX-2b/tree/1137dacfc2c9c012bed6a0793f4ecf2ca8e7ba01" + "Efficient-Large-Model/Sana_Sprint_0.6B_1024px_diffusers@aa76e7f4f4928f378716b6716a2130fba3caf5b1 https://huggingface.co/Efficient-Large-Model/Sana_Sprint_0.6B_1024px_diffusers/tree/aa76e7f4f4928f378716b6716a2130fba3caf5b1" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "ffeaa41a5c94b59135d2cdb15a5c7f79f073c15fd78792ce00a157398ab15d59", - "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", - "provenanceTemplateId": "cogvideox_mossy_mountain_stream" + "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", + "provenanceTemplateId": "canal_lantern_in_warm_light" }, { - "path": "template-gallery/reviews/cogvideox_mossy_mountain_stream.original-review.json", - "sha256": "sha256:bytes:3678c4a805bb1d6b4205c0d3d97df2f559b65740a7519ba19674456c26d54d13", + "path": "template-gallery/reviews/canal_lantern_in_warm_light.quality-review.json", + "sha256": "sha256:bytes:721e6e325451df2320c2813bedce2b5c4b37d92d30ac974ca95b4f3edba6b316", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/zai-org/CogVideoX-2b/tree/1137dacfc2c9c012bed6a0793f4ecf2ca8e7ba01", - "sourceRevision": "zai-org/CogVideoX-2b@1137dacfc2c9c012bed6a0793f4ecf2ca8e7ba01", + "sourceUrl": "https://huggingface.co/Efficient-Large-Model/Sana_Sprint_0.6B_1024px_diffusers/tree/aa76e7f4f4928f378716b6716a2130fba3caf5b1", + "sourceRevision": "Efficient-Large-Model/Sana_Sprint_0.6B_1024px_diffusers@aa76e7f4f4928f378716b6716a2130fba3caf5b1", "sourceLicense": "MoDiff-authored Gallery metadata", "modelTerms": [ - "Publisher model terms at https://huggingface.co/zai-org/CogVideoX-2b/tree/1137dacfc2c9c012bed6a0793f4ecf2ca8e7ba01" + "apache-2.0. https://huggingface.co/Efficient-Large-Model/Sana_Sprint_0.6B_1024px_diffusers/tree/aa76e7f4f4928f378716b6716a2130fba3caf5b1" ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "zai-org/CogVideoX-2b@1137dacfc2c9c012bed6a0793f4ecf2ca8e7ba01 https://huggingface.co/zai-org/CogVideoX-2b/tree/1137dacfc2c9c012bed6a0793f4ecf2ca8e7ba01" + "Efficient-Large-Model/Sana_Sprint_0.6B_1024px_diffusers@aa76e7f4f4928f378716b6716a2130fba3caf5b1 https://huggingface.co/Efficient-Large-Model/Sana_Sprint_0.6B_1024px_diffusers/tree/aa76e7f4f4928f378716b6716a2130fba3caf5b1" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "ffeaa41a5c94b59135d2cdb15a5c7f79f073c15fd78792ce00a157398ab15d59", - "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", - "provenanceTemplateId": "cogvideox_mossy_mountain_stream" + "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", + "provenanceTemplateId": "canal_lantern_in_warm_light" }, { - "path": "template-gallery/reviews/cogvideox_mossy_mountain_stream.quality-review.json", - "sha256": "sha256:bytes:43fcf40d6bec403f203be3b2386ef27e345752c5dc53882ab2df45537dcbfcd1", + "path": "template-gallery/reviews/canal_lantern_in_warm_light.retained-template-provenance.json", + "sha256": "sha256:bytes:5027304dcbef05cecb1baff1771c2f7f96671fee8d3fac34f9fece5f730c3885", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/zai-org/CogVideoX-2b/tree/1137dacfc2c9c012bed6a0793f4ecf2ca8e7ba01", - "sourceRevision": "zai-org/CogVideoX-2b@1137dacfc2c9c012bed6a0793f4ecf2ca8e7ba01", + "sourceUrl": "https://huggingface.co/Efficient-Large-Model/Sana_Sprint_0.6B_1024px_diffusers/tree/aa76e7f4f4928f378716b6716a2130fba3caf5b1", + "sourceRevision": "Efficient-Large-Model/Sana_Sprint_0.6B_1024px_diffusers@aa76e7f4f4928f378716b6716a2130fba3caf5b1", "sourceLicense": "MoDiff-authored Gallery metadata", "modelTerms": [ - "Publisher model terms at https://huggingface.co/zai-org/CogVideoX-2b/tree/1137dacfc2c9c012bed6a0793f4ecf2ca8e7ba01" + "apache-2.0. https://huggingface.co/Efficient-Large-Model/Sana_Sprint_0.6B_1024px_diffusers/tree/aa76e7f4f4928f378716b6716a2130fba3caf5b1" ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "zai-org/CogVideoX-2b@1137dacfc2c9c012bed6a0793f4ecf2ca8e7ba01 https://huggingface.co/zai-org/CogVideoX-2b/tree/1137dacfc2c9c012bed6a0793f4ecf2ca8e7ba01" + "Efficient-Large-Model/Sana_Sprint_0.6B_1024px_diffusers@aa76e7f4f4928f378716b6716a2130fba3caf5b1 https://huggingface.co/Efficient-Large-Model/Sana_Sprint_0.6B_1024px_diffusers/tree/aa76e7f4f4928f378716b6716a2130fba3caf5b1" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "ffeaa41a5c94b59135d2cdb15a5c7f79f073c15fd78792ce00a157398ab15d59", - "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", - "provenanceTemplateId": "cogvideox_mossy_mountain_stream" + "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", + "provenanceTemplateId": "canal_lantern_in_warm_light" }, { - "path": "template-gallery/reviews/cogvideox_mossy_mountain_stream.retained-template-provenance.json", - "sha256": "sha256:bytes:2e96867659142d6f562c4607f0db301aa2f003bfb9c4f29f333751365a5d7b66", + "path": "template-gallery/reviews/character_edit.quality-review.json", + "sha256": "sha256:bytes:89cca4e7b8e466c614d973925b4775e18cec8c39e14e639a9d48b89918e7ae7f", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers", + "creationMethod": "Project-authored Gallery manifest, native provenance or accepted quality review", + "sourceUrl": null, + "sourceRevision": null, + "sourceLicense": "Apache-2.0 project-authored metadata", + "modelTerms": [], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [], + "assetLicense": "Apache-2.0", + "reviewedBy": "SOURAV DAS", + "reviewedAt": "2026-11-10", + "reviewClass": "per-file-maintainer-accepted-native-gallery-registration", + "provenanceTemplateId": "character_edit", + "humanApprovalPacketSHA256": "95893cb17e10b15ae6b23d8b31b57b0e14b9af96f822d75edbc6b68971afb11d" + }, + { + "path": "template-gallery/reviews/character_edit.reviewed-provenance.json", + "sha256": "sha256:bytes:fee8045c51a38c8c73f668af5e3f513d7f0cbbf6978122fe73d2487ab746e110", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers", + "creationMethod": "Project-authored Gallery manifest, native provenance or accepted quality review", + "sourceUrl": null, + "sourceRevision": null, + "sourceLicense": "Apache-2.0 project-authored metadata", + "modelTerms": [], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [], + "assetLicense": "Apache-2.0", + "reviewedBy": "SOURAV DAS", + "reviewedAt": "2026-11-10", + "reviewClass": "per-file-maintainer-accepted-native-gallery-registration", + "provenanceTemplateId": "character_edit", + "humanApprovalPacketSHA256": "95893cb17e10b15ae6b23d8b31b57b0e14b9af96f822d75edbc6b68971afb11d" + }, + { + "path": "template-gallery/reviews/chroma_alpine_block_print.original-provenance.json", + "sha256": "sha256:bytes:f17d6523a55fcf5bd0c147d9a46dee5b6e7fc6363f6a08685ba8a65459f73cf2", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/zai-org/CogVideoX-2b/tree/1137dacfc2c9c012bed6a0793f4ecf2ca8e7ba01", - "sourceRevision": "zai-org/CogVideoX-2b@1137dacfc2c9c012bed6a0793f4ecf2ca8e7ba01", + "sourceUrl": "https://huggingface.co/lodestones/Chroma1-HD/tree/0e0c60ece1e82b17cb7f77342d765ba5024c40c0", + "sourceRevision": "lodestones/Chroma1-HD@0e0c60ece1e82b17cb7f77342d765ba5024c40c0", "sourceLicense": "MoDiff-authored Gallery metadata", "modelTerms": [ - "Publisher model terms at https://huggingface.co/zai-org/CogVideoX-2b/tree/1137dacfc2c9c012bed6a0793f4ecf2ca8e7ba01" + "Publisher model terms at https://huggingface.co/lodestones/Chroma1-HD/tree/0e0c60ece1e82b17cb7f77342d765ba5024c40c0" ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "zai-org/CogVideoX-2b@1137dacfc2c9c012bed6a0793f4ecf2ca8e7ba01 https://huggingface.co/zai-org/CogVideoX-2b/tree/1137dacfc2c9c012bed6a0793f4ecf2ca8e7ba01" + "lodestones/Chroma1-HD@0e0c60ece1e82b17cb7f77342d765ba5024c40c0 https://huggingface.co/lodestones/Chroma1-HD/tree/0e0c60ece1e82b17cb7f77342d765ba5024c40c0" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "ffeaa41a5c94b59135d2cdb15a5c7f79f073c15fd78792ce00a157398ab15d59", + "humanApprovalPacketSHA256": "60b01498a2df5f4e4622cdc2f9a43c83d187820780d2425a19718c13707db501", "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", - "provenanceTemplateId": "cogvideox_mossy_mountain_stream" + "provenanceTemplateId": "chroma_alpine_block_print" }, { - "path": "template-gallery/reviews/cogvideox_red_tram_model_railway.original-provenance.json", - "sha256": "sha256:bytes:b63d433a2ae3627d260abf77dca4bca8ded0798a3449e9fb5b460628c5a2fa08", + "path": "template-gallery/reviews/chroma_alpine_block_print.original-review.json", + "sha256": "sha256:bytes:a7ba022616f2a41b3046a7ac3ca7779a6f4efc5692bc02c21dc52701354f8a01", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/zai-org/CogVideoX-2b/tree/1137dacfc2c9c012bed6a0793f4ecf2ca8e7ba01", - "sourceRevision": "zai-org/CogVideoX-2b@1137dacfc2c9c012bed6a0793f4ecf2ca8e7ba01", + "sourceUrl": "https://huggingface.co/lodestones/Chroma1-HD/tree/0e0c60ece1e82b17cb7f77342d765ba5024c40c0", + "sourceRevision": "lodestones/Chroma1-HD@0e0c60ece1e82b17cb7f77342d765ba5024c40c0", "sourceLicense": "MoDiff-authored Gallery metadata", "modelTerms": [ - "Publisher model terms at https://huggingface.co/zai-org/CogVideoX-2b/tree/1137dacfc2c9c012bed6a0793f4ecf2ca8e7ba01" + "Publisher model terms at https://huggingface.co/lodestones/Chroma1-HD/tree/0e0c60ece1e82b17cb7f77342d765ba5024c40c0" ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "zai-org/CogVideoX-2b@1137dacfc2c9c012bed6a0793f4ecf2ca8e7ba01 https://huggingface.co/zai-org/CogVideoX-2b/tree/1137dacfc2c9c012bed6a0793f4ecf2ca8e7ba01" + "lodestones/Chroma1-HD@0e0c60ece1e82b17cb7f77342d765ba5024c40c0 https://huggingface.co/lodestones/Chroma1-HD/tree/0e0c60ece1e82b17cb7f77342d765ba5024c40c0" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "ffeaa41a5c94b59135d2cdb15a5c7f79f073c15fd78792ce00a157398ab15d59", + "humanApprovalPacketSHA256": "60b01498a2df5f4e4622cdc2f9a43c83d187820780d2425a19718c13707db501", "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", - "provenanceTemplateId": "cogvideox_red_tram_model_railway" + "provenanceTemplateId": "chroma_alpine_block_print" }, { - "path": "template-gallery/reviews/cogvideox_red_tram_model_railway.original-review.json", - "sha256": "sha256:bytes:0b2030e77910993ce5e1947c5378e06ab488e1243b79e67cc6edd44c3cd8d462", + "path": "template-gallery/reviews/chroma_alpine_block_print.quality-review.json", + "sha256": "sha256:bytes:bb7979a051f9839fdee168737f18bf99c630f5e7edba7ab59f8e7471315d9413", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/zai-org/CogVideoX-2b/tree/1137dacfc2c9c012bed6a0793f4ecf2ca8e7ba01", - "sourceRevision": "zai-org/CogVideoX-2b@1137dacfc2c9c012bed6a0793f4ecf2ca8e7ba01", + "sourceUrl": "https://huggingface.co/lodestones/Chroma1-HD/tree/0e0c60ece1e82b17cb7f77342d765ba5024c40c0", + "sourceRevision": "lodestones/Chroma1-HD@0e0c60ece1e82b17cb7f77342d765ba5024c40c0", "sourceLicense": "MoDiff-authored Gallery metadata", "modelTerms": [ - "Publisher model terms at https://huggingface.co/zai-org/CogVideoX-2b/tree/1137dacfc2c9c012bed6a0793f4ecf2ca8e7ba01" + "Publisher model terms at https://huggingface.co/lodestones/Chroma1-HD/tree/0e0c60ece1e82b17cb7f77342d765ba5024c40c0" ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "zai-org/CogVideoX-2b@1137dacfc2c9c012bed6a0793f4ecf2ca8e7ba01 https://huggingface.co/zai-org/CogVideoX-2b/tree/1137dacfc2c9c012bed6a0793f4ecf2ca8e7ba01" + "lodestones/Chroma1-HD@0e0c60ece1e82b17cb7f77342d765ba5024c40c0 https://huggingface.co/lodestones/Chroma1-HD/tree/0e0c60ece1e82b17cb7f77342d765ba5024c40c0" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "ffeaa41a5c94b59135d2cdb15a5c7f79f073c15fd78792ce00a157398ab15d59", + "humanApprovalPacketSHA256": "60b01498a2df5f4e4622cdc2f9a43c83d187820780d2425a19718c13707db501", "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", - "provenanceTemplateId": "cogvideox_red_tram_model_railway" + "provenanceTemplateId": "chroma_alpine_block_print" }, { - "path": "template-gallery/reviews/cogvideox_red_tram_model_railway.quality-review.json", - "sha256": "sha256:bytes:56466f759c750421f135ebf3069202ae9eb0374a9f2ee4327b95b0490ec3a583", + "path": "template-gallery/reviews/chroma_alpine_block_print.retained-template-provenance.json", + "sha256": "sha256:bytes:d8643c8c82d299a62068afd7b38de0d24fcfd6882585370e73fbe63402726e4a", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/zai-org/CogVideoX-2b/tree/1137dacfc2c9c012bed6a0793f4ecf2ca8e7ba01", - "sourceRevision": "zai-org/CogVideoX-2b@1137dacfc2c9c012bed6a0793f4ecf2ca8e7ba01", + "sourceUrl": "https://huggingface.co/lodestones/Chroma1-HD/tree/0e0c60ece1e82b17cb7f77342d765ba5024c40c0", + "sourceRevision": "lodestones/Chroma1-HD@0e0c60ece1e82b17cb7f77342d765ba5024c40c0", "sourceLicense": "MoDiff-authored Gallery metadata", "modelTerms": [ - "Publisher model terms at https://huggingface.co/zai-org/CogVideoX-2b/tree/1137dacfc2c9c012bed6a0793f4ecf2ca8e7ba01" + "Publisher model terms at https://huggingface.co/lodestones/Chroma1-HD/tree/0e0c60ece1e82b17cb7f77342d765ba5024c40c0" ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "zai-org/CogVideoX-2b@1137dacfc2c9c012bed6a0793f4ecf2ca8e7ba01 https://huggingface.co/zai-org/CogVideoX-2b/tree/1137dacfc2c9c012bed6a0793f4ecf2ca8e7ba01" + "lodestones/Chroma1-HD@0e0c60ece1e82b17cb7f77342d765ba5024c40c0 https://huggingface.co/lodestones/Chroma1-HD/tree/0e0c60ece1e82b17cb7f77342d765ba5024c40c0" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "ffeaa41a5c94b59135d2cdb15a5c7f79f073c15fd78792ce00a157398ab15d59", + "humanApprovalPacketSHA256": "60b01498a2df5f4e4622cdc2f9a43c83d187820780d2425a19718c13707db501", "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", - "provenanceTemplateId": "cogvideox_red_tram_model_railway" + "provenanceTemplateId": "chroma_alpine_block_print" }, { - "path": "template-gallery/reviews/cogvideox_red_tram_model_railway.retained-template-provenance.json", - "sha256": "sha256:bytes:71ff0983139861b9a21d9b2882974bb5e96d11903563df161578818d795a1290", + "path": "template-gallery/reviews/chroma_restored_cobalt_backdrop.original-provenance.json", + "sha256": "sha256:bytes:f87d18b81ff559f1298f0c780db0f5eb89e9f8219b4f4aff80c224bc3ef47ce4", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/zai-org/CogVideoX-2b/tree/1137dacfc2c9c012bed6a0793f4ecf2ca8e7ba01", - "sourceRevision": "zai-org/CogVideoX-2b@1137dacfc2c9c012bed6a0793f4ecf2ca8e7ba01", + "sourceUrl": "https://huggingface.co/lodestones/Chroma1-HD/tree/0e0c60ece1e82b17cb7f77342d765ba5024c40c0", + "sourceRevision": "lodestones/Chroma1-HD@0e0c60ece1e82b17cb7f77342d765ba5024c40c0", "sourceLicense": "MoDiff-authored Gallery metadata", "modelTerms": [ - "Publisher model terms at https://huggingface.co/zai-org/CogVideoX-2b/tree/1137dacfc2c9c012bed6a0793f4ecf2ca8e7ba01" + "Publisher model terms at https://huggingface.co/lodestones/Chroma1-HD/tree/0e0c60ece1e82b17cb7f77342d765ba5024c40c0" ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "zai-org/CogVideoX-2b@1137dacfc2c9c012bed6a0793f4ecf2ca8e7ba01 https://huggingface.co/zai-org/CogVideoX-2b/tree/1137dacfc2c9c012bed6a0793f4ecf2ca8e7ba01" + "lodestones/Chroma1-HD@0e0c60ece1e82b17cb7f77342d765ba5024c40c0 https://huggingface.co/lodestones/Chroma1-HD/tree/0e0c60ece1e82b17cb7f77342d765ba5024c40c0" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "ffeaa41a5c94b59135d2cdb15a5c7f79f073c15fd78792ce00a157398ab15d59", + "humanApprovalPacketSHA256": "c2df9edb92f8ff905b6c9a138a285e67c621f3d2dfa3232f859aaf963b725aca", "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", - "provenanceTemplateId": "cogvideox_red_tram_model_railway" + "provenanceTemplateId": "chroma_restored_cobalt_backdrop" }, { - "path": "template-gallery/reviews/copper_hour_dunes.original-provenance.json", - "sha256": "sha256:bytes:6223329bd7a1a962703aefba1379c33dae7f57daa40a09aa8e77c1cdd05b099c", + "path": "template-gallery/reviews/chroma_restored_cobalt_backdrop.original-review.json", + "sha256": "sha256:bytes:88d1fbfadc2e1d3456f492214f7e51da6bdfd253eb00343fb93990e16c9ba2b9", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/Photoroom/prx-512-t2i-sft/tree/2996423bc26e8eaca48774fac1797484214dfea0", - "sourceRevision": "Photoroom/prx-512-t2i-sft@2996423bc26e8eaca48774fac1797484214dfea0", + "sourceUrl": "https://huggingface.co/lodestones/Chroma1-HD/tree/0e0c60ece1e82b17cb7f77342d765ba5024c40c0", + "sourceRevision": "lodestones/Chroma1-HD@0e0c60ece1e82b17cb7f77342d765ba5024c40c0", "sourceLicense": "MoDiff-authored Gallery metadata", "modelTerms": [ - "apache-2.0. https://huggingface.co/Photoroom/prx-512-t2i-sft/tree/2996423bc26e8eaca48774fac1797484214dfea0" + "Publisher model terms at https://huggingface.co/lodestones/Chroma1-HD/tree/0e0c60ece1e82b17cb7f77342d765ba5024c40c0" ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "Photoroom/prx-512-t2i-sft@2996423bc26e8eaca48774fac1797484214dfea0 https://huggingface.co/Photoroom/prx-512-t2i-sft/tree/2996423bc26e8eaca48774fac1797484214dfea0" + "lodestones/Chroma1-HD@0e0c60ece1e82b17cb7f77342d765ba5024c40c0 https://huggingface.co/lodestones/Chroma1-HD/tree/0e0c60ece1e82b17cb7f77342d765ba5024c40c0" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", - "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", - "provenanceTemplateId": "copper_hour_dunes" + "humanApprovalPacketSHA256": "c2df9edb92f8ff905b6c9a138a285e67c621f3d2dfa3232f859aaf963b725aca", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "chroma_restored_cobalt_backdrop" }, { - "path": "template-gallery/reviews/copper_hour_dunes.original-review.json", - "sha256": "sha256:bytes:1da7406a3792d864c6aa0e010203a15d608a2f85372e530aabdeabfd7dc7e529", + "path": "template-gallery/reviews/chroma_restored_cobalt_backdrop.quality-review.json", + "sha256": "sha256:bytes:803c31f4eb055884cbe955856e99f9846f9259ae58ad6c883d686de581c0dd09", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/Photoroom/prx-512-t2i-sft/tree/2996423bc26e8eaca48774fac1797484214dfea0", - "sourceRevision": "Photoroom/prx-512-t2i-sft@2996423bc26e8eaca48774fac1797484214dfea0", + "sourceUrl": "https://huggingface.co/lodestones/Chroma1-HD/tree/0e0c60ece1e82b17cb7f77342d765ba5024c40c0", + "sourceRevision": "lodestones/Chroma1-HD@0e0c60ece1e82b17cb7f77342d765ba5024c40c0", "sourceLicense": "MoDiff-authored Gallery metadata", "modelTerms": [ - "apache-2.0. https://huggingface.co/Photoroom/prx-512-t2i-sft/tree/2996423bc26e8eaca48774fac1797484214dfea0" + "Publisher model terms at https://huggingface.co/lodestones/Chroma1-HD/tree/0e0c60ece1e82b17cb7f77342d765ba5024c40c0" ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "Photoroom/prx-512-t2i-sft@2996423bc26e8eaca48774fac1797484214dfea0 https://huggingface.co/Photoroom/prx-512-t2i-sft/tree/2996423bc26e8eaca48774fac1797484214dfea0" + "lodestones/Chroma1-HD@0e0c60ece1e82b17cb7f77342d765ba5024c40c0 https://huggingface.co/lodestones/Chroma1-HD/tree/0e0c60ece1e82b17cb7f77342d765ba5024c40c0" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", - "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", - "provenanceTemplateId": "copper_hour_dunes" + "humanApprovalPacketSHA256": "c2df9edb92f8ff905b6c9a138a285e67c621f3d2dfa3232f859aaf963b725aca", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "chroma_restored_cobalt_backdrop" }, { - "path": "template-gallery/reviews/copper_hour_dunes.quality-review.json", - "sha256": "sha256:bytes:bc0ce5cb8d1e26c9b3491f5d1653365ca11b5305b25cd32647b08398bf889e8f", + "path": "template-gallery/reviews/chroma_restored_cobalt_backdrop.retained-template-provenance.json", + "sha256": "sha256:bytes:5232b12615a38293b0d86378fdde3003a61a8f5834de95f395a9364e12dd8fd4", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/Photoroom/prx-512-t2i-sft/tree/2996423bc26e8eaca48774fac1797484214dfea0", - "sourceRevision": "Photoroom/prx-512-t2i-sft@2996423bc26e8eaca48774fac1797484214dfea0", + "sourceUrl": "https://huggingface.co/lodestones/Chroma1-HD/tree/0e0c60ece1e82b17cb7f77342d765ba5024c40c0", + "sourceRevision": "lodestones/Chroma1-HD@0e0c60ece1e82b17cb7f77342d765ba5024c40c0", "sourceLicense": "MoDiff-authored Gallery metadata", "modelTerms": [ - "apache-2.0. https://huggingface.co/Photoroom/prx-512-t2i-sft/tree/2996423bc26e8eaca48774fac1797484214dfea0" + "Publisher model terms at https://huggingface.co/lodestones/Chroma1-HD/tree/0e0c60ece1e82b17cb7f77342d765ba5024c40c0" ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "Photoroom/prx-512-t2i-sft@2996423bc26e8eaca48774fac1797484214dfea0 https://huggingface.co/Photoroom/prx-512-t2i-sft/tree/2996423bc26e8eaca48774fac1797484214dfea0" + "lodestones/Chroma1-HD@0e0c60ece1e82b17cb7f77342d765ba5024c40c0 https://huggingface.co/lodestones/Chroma1-HD/tree/0e0c60ece1e82b17cb7f77342d765ba5024c40c0" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", - "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", - "provenanceTemplateId": "copper_hour_dunes" + "humanApprovalPacketSHA256": "c2df9edb92f8ff905b6c9a138a285e67c621f3d2dfa3232f859aaf963b725aca", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "chroma_restored_cobalt_backdrop" }, { - "path": "template-gallery/reviews/copper_hour_dunes.retained-template-provenance.json", - "sha256": "sha256:bytes:b1d27bc198b128e1085d6b920a62dff73ed1684735c0d9b7eefbd28ab52d7e5b", + "path": "template-gallery/reviews/chroma_terracotta_and_blue.original-provenance.json", + "sha256": "sha256:bytes:92a7762ec200afa64405b665dbd19d630b846f55bdb170fc08bfb5c588b1d258", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/Photoroom/prx-512-t2i-sft/tree/2996423bc26e8eaca48774fac1797484214dfea0", - "sourceRevision": "Photoroom/prx-512-t2i-sft@2996423bc26e8eaca48774fac1797484214dfea0", + "sourceUrl": "https://huggingface.co/lodestones/Chroma1-HD/tree/0e0c60ece1e82b17cb7f77342d765ba5024c40c0", + "sourceRevision": "lodestones/Chroma1-HD@0e0c60ece1e82b17cb7f77342d765ba5024c40c0", "sourceLicense": "MoDiff-authored Gallery metadata", "modelTerms": [ - "apache-2.0. https://huggingface.co/Photoroom/prx-512-t2i-sft/tree/2996423bc26e8eaca48774fac1797484214dfea0" + "https://huggingface.co/lodestones/Chroma1-HD/blob/0e0c60ece1e82b17cb7f77342d765ba5024c40c0/README.md" ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "Photoroom/prx-512-t2i-sft@2996423bc26e8eaca48774fac1797484214dfea0 https://huggingface.co/Photoroom/prx-512-t2i-sft/tree/2996423bc26e8eaca48774fac1797484214dfea0" + "lodestones/Chroma1-HD@0e0c60ece1e82b17cb7f77342d765ba5024c40c0 https://huggingface.co/lodestones/Chroma1-HD/tree/0e0c60ece1e82b17cb7f77342d765ba5024c40c0" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", - "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", - "provenanceTemplateId": "copper_hour_dunes" + "humanApprovalPacketSHA256": "c2df9edb92f8ff905b6c9a138a285e67c621f3d2dfa3232f859aaf963b725aca", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "chroma_terracotta_and_blue" }, { - "path": "template-gallery/reviews/ddim_cifar10_preview.original-provenance.json", - "sha256": "sha256:bytes:8fc838dd4bc701aa0c65e6b2630cc749d05736d23623591e3d1ac5af3d6b93d9", + "path": "template-gallery/reviews/chroma_terracotta_and_blue.original-review.json", + "sha256": "sha256:bytes:d935f45b897cc717315684e2b180097b2e3892d275b4c38e96f2a9ec930ae24f", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/google/ddpm-cifar10-32/tree/267b167dc01f0e4e61923ea244e8b988f84deb80", - "sourceRevision": "google/ddpm-cifar10-32@267b167dc01f0e4e61923ea244e8b988f84deb80", + "sourceUrl": "https://huggingface.co/lodestones/Chroma1-HD/tree/0e0c60ece1e82b17cb7f77342d765ba5024c40c0", + "sourceRevision": "lodestones/Chroma1-HD@0e0c60ece1e82b17cb7f77342d765ba5024c40c0", "sourceLicense": "MoDiff-authored Gallery metadata", "modelTerms": [ - "Publisher model terms at https://huggingface.co/google/ddpm-cifar10-32/tree/267b167dc01f0e4e61923ea244e8b988f84deb80" + "https://huggingface.co/lodestones/Chroma1-HD/blob/0e0c60ece1e82b17cb7f77342d765ba5024c40c0/README.md" ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "google/ddpm-cifar10-32@267b167dc01f0e4e61923ea244e8b988f84deb80 https://huggingface.co/google/ddpm-cifar10-32/tree/267b167dc01f0e4e61923ea244e8b988f84deb80" + "lodestones/Chroma1-HD@0e0c60ece1e82b17cb7f77342d765ba5024c40c0 https://huggingface.co/lodestones/Chroma1-HD/tree/0e0c60ece1e82b17cb7f77342d765ba5024c40c0" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", - "reviewedAt": "2026-11-24", + "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "d216f065bdc316366c6183592f657bcfbbd7cb05acd0e510c6b3877fe56bcec2", - "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped six saved cases with model terms retained.", - "provenanceTemplateId": "ddim_cifar10_preview" + "humanApprovalPacketSHA256": "c2df9edb92f8ff905b6c9a138a285e67c621f3d2dfa3232f859aaf963b725aca", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "chroma_terracotta_and_blue" }, { - "path": "template-gallery/reviews/ddim_cifar10_preview.original-review.json", - "sha256": "sha256:bytes:5a793d20a7b28f16f07648dce956a5cf5d2ecf8b50d85ca9005f965196102391", + "path": "template-gallery/reviews/chroma_terracotta_and_blue.quality-review.json", + "sha256": "sha256:bytes:2435a255e05519ab5b750b4728217d7f938631213ffeeb6da882dcb184e9fa7b", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/google/ddpm-cifar10-32/tree/267b167dc01f0e4e61923ea244e8b988f84deb80", - "sourceRevision": "google/ddpm-cifar10-32@267b167dc01f0e4e61923ea244e8b988f84deb80", + "sourceUrl": "https://huggingface.co/lodestones/Chroma1-HD/tree/0e0c60ece1e82b17cb7f77342d765ba5024c40c0", + "sourceRevision": "lodestones/Chroma1-HD@0e0c60ece1e82b17cb7f77342d765ba5024c40c0", "sourceLicense": "MoDiff-authored Gallery metadata", "modelTerms": [ - "Publisher model terms at https://huggingface.co/google/ddpm-cifar10-32/tree/267b167dc01f0e4e61923ea244e8b988f84deb80" + "https://huggingface.co/lodestones/Chroma1-HD/blob/0e0c60ece1e82b17cb7f77342d765ba5024c40c0/README.md" ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "google/ddpm-cifar10-32@267b167dc01f0e4e61923ea244e8b988f84deb80 https://huggingface.co/google/ddpm-cifar10-32/tree/267b167dc01f0e4e61923ea244e8b988f84deb80" + "lodestones/Chroma1-HD@0e0c60ece1e82b17cb7f77342d765ba5024c40c0 https://huggingface.co/lodestones/Chroma1-HD/tree/0e0c60ece1e82b17cb7f77342d765ba5024c40c0" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", - "reviewedAt": "2026-11-24", + "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "d216f065bdc316366c6183592f657bcfbbd7cb05acd0e510c6b3877fe56bcec2", - "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped six saved cases with model terms retained.", - "provenanceTemplateId": "ddim_cifar10_preview" + "humanApprovalPacketSHA256": "c2df9edb92f8ff905b6c9a138a285e67c621f3d2dfa3232f859aaf963b725aca", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "chroma_terracotta_and_blue" }, { - "path": "template-gallery/reviews/ddim_cifar10_preview.quality-review.json", - "sha256": "sha256:bytes:24698d674171ad14c31fba20652e694b1e845214fe802d32cb7d0e42611cb7c2", + "path": "template-gallery/reviews/chroma_terracotta_and_blue.retained-template-provenance.json", + "sha256": "sha256:bytes:95d0a67308f0dd2b8024a39cacca3fcfd82611a03d01f76a38a429dd1c4c2077", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/google/ddpm-cifar10-32/tree/267b167dc01f0e4e61923ea244e8b988f84deb80", - "sourceRevision": "google/ddpm-cifar10-32@267b167dc01f0e4e61923ea244e8b988f84deb80", + "sourceUrl": "https://huggingface.co/lodestones/Chroma1-HD/tree/0e0c60ece1e82b17cb7f77342d765ba5024c40c0", + "sourceRevision": "lodestones/Chroma1-HD@0e0c60ece1e82b17cb7f77342d765ba5024c40c0", "sourceLicense": "MoDiff-authored Gallery metadata", "modelTerms": [ - "Publisher model terms at https://huggingface.co/google/ddpm-cifar10-32/tree/267b167dc01f0e4e61923ea244e8b988f84deb80" + "https://huggingface.co/lodestones/Chroma1-HD/blob/0e0c60ece1e82b17cb7f77342d765ba5024c40c0/README.md" ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "google/ddpm-cifar10-32@267b167dc01f0e4e61923ea244e8b988f84deb80 https://huggingface.co/google/ddpm-cifar10-32/tree/267b167dc01f0e4e61923ea244e8b988f84deb80" + "lodestones/Chroma1-HD@0e0c60ece1e82b17cb7f77342d765ba5024c40c0 https://huggingface.co/lodestones/Chroma1-HD/tree/0e0c60ece1e82b17cb7f77342d765ba5024c40c0" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", - "reviewedAt": "2026-11-24", + "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "d216f065bdc316366c6183592f657bcfbbd7cb05acd0e510c6b3877fe56bcec2", - "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped six saved cases with model terms retained.", - "provenanceTemplateId": "ddim_cifar10_preview" + "humanApprovalPacketSHA256": "c2df9edb92f8ff905b6c9a138a285e67c621f3d2dfa3232f859aaf963b725aca", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "chroma_terracotta_and_blue" }, { - "path": "template-gallery/reviews/ddim_cifar10_preview.retained-template-provenance.json", - "sha256": "sha256:bytes:8f2075aff72c4a31ca3e247ce7b1c1c6ebaa8b8f29d7ad7e124555543b7ddfbd", + "path": "template-gallery/reviews/cobalt_jug_and_lemons.original-provenance.json", + "sha256": "sha256:bytes:c9b80942080368a5e13eef6d01a31691034655d618c40ef89ab9bd1b0ade0c7e", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/google/ddpm-cifar10-32/tree/267b167dc01f0e4e61923ea244e8b988f84deb80", - "sourceRevision": "google/ddpm-cifar10-32@267b167dc01f0e4e61923ea244e8b988f84deb80", + "sourceUrl": "https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14", + "sourceRevision": "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14", "sourceLicense": "MoDiff-authored Gallery metadata", "modelTerms": [ - "Publisher model terms at https://huggingface.co/google/ddpm-cifar10-32/tree/267b167dc01f0e4e61923ea244e8b988f84deb80" + "creativeml-openrail-m. https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14" ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "google/ddpm-cifar10-32@267b167dc01f0e4e61923ea244e8b988f84deb80 https://huggingface.co/google/ddpm-cifar10-32/tree/267b167dc01f0e4e61923ea244e8b988f84deb80" + "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14 https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", - "reviewedAt": "2026-11-24", + "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "d216f065bdc316366c6183592f657bcfbbd7cb05acd0e510c6b3877fe56bcec2", - "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped six saved cases with model terms retained.", - "provenanceTemplateId": "ddim_cifar10_preview" - }, - { - "path": "template-gallery/reviews/fast_lora.quality-review.json", - "sha256": "sha256:bytes:96079ed2226e86a0a0686283402a8c4f567809c73d67138afb4d58fc46936a15", - "publishDecision": "approved", - "holdReason": null, - "creatorOrRightsholder": "MoDiff project maintainers", - "creationMethod": "MoDiff-authored technical provenance or quality metadata from the explicitly approved six-image source packet", - "sourceUrl": null, - "sourceRevision": null, - "sourceLicense": "Apache-2.0 project-authored metadata; generated-media terms remain in their exact per-file records", - "modelTerms": [], - "aiGenerated": false, - "humanLikenessConsent": "not-applicable", - "marks": [], - "requiredAttribution": [], - "assetLicense": "Apache-2.0", - "reviewedBy": "SOURAV DAS", - "reviewedAt": "2026-11-09", - "reviewClass": "per-file-human-approved-six-z-registration", - "provenanceTemplateId": "fast_lora", - "humanApprovalPacketSHA256": "9b728a5f8535fc1ba3c03d2e2759d7ac795a586fafab51beb1509379ed388934" + "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", + "provenanceTemplateId": "cobalt_jug_and_lemons" }, { - "path": "template-gallery/reviews/fast_lora.reviewed-provenance.json", - "sha256": "sha256:bytes:7a3e3ac94845ad37f5f374c1e808a5ff449b0e5776be72a1891bb2c106fdd722", + "path": "template-gallery/reviews/cobalt_jug_and_lemons.original-review.json", + "sha256": "sha256:bytes:f55b66df26013db2e002b925f1aceececec95ebd311a306bb082258f292751f1", "publishDecision": "approved", "holdReason": null, - "creatorOrRightsholder": "MoDiff project maintainers", - "creationMethod": "MoDiff-authored technical provenance or quality metadata from the explicitly approved six-image source packet", - "sourceUrl": null, - "sourceRevision": null, - "sourceLicense": "Apache-2.0 project-authored metadata; generated-media terms remain in their exact per-file records", - "modelTerms": [], + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14", + "sourceRevision": "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "creativeml-openrail-m. https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14" + ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], - "requiredAttribution": [], + "requiredAttribution": [ + "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14 https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14" + ], "assetLicense": "Apache-2.0", - "reviewedBy": "SOURAV DAS", - "reviewedAt": "2026-11-09", - "reviewClass": "per-file-human-approved-six-z-registration", - "provenanceTemplateId": "fast_lora", - "humanApprovalPacketSHA256": "9b728a5f8535fc1ba3c03d2e2759d7ac795a586fafab51beb1509379ed388934" + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", + "provenanceTemplateId": "cobalt_jug_and_lemons" }, { - "path": "template-gallery/reviews/flowers_after_rain.original-provenance.json", - "sha256": "sha256:bytes:4368cd0ed92243d2cc6b5b628ffabba5e64339eeec153282832b253d68efaa87", + "path": "template-gallery/reviews/cobalt_jug_and_lemons.quality-review.json", + "sha256": "sha256:bytes:da64a4e035bbe030a037ddfaf23a16946114d0e680c842f37976cc50ff8d6970", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/ATH-MaaS/Ovis-Image-7B/tree/41be1c5821a92c970d63d7eb595a2fd3fe32b22e", - "sourceRevision": "ATH-MaaS/Ovis-Image-7B@41be1c5821a92c970d63d7eb595a2fd3fe32b22e", + "sourceUrl": "https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14", + "sourceRevision": "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14", "sourceLicense": "MoDiff-authored Gallery metadata", "modelTerms": [ - "apache-2.0. https://huggingface.co/ATH-MaaS/Ovis-Image-7B/tree/41be1c5821a92c970d63d7eb595a2fd3fe32b22e" + "creativeml-openrail-m. https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14" ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "ATH-MaaS/Ovis-Image-7B@41be1c5821a92c970d63d7eb595a2fd3fe32b22e https://huggingface.co/ATH-MaaS/Ovis-Image-7B/tree/41be1c5821a92c970d63d7eb595a2fd3fe32b22e" + "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14 https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", @@ -11507,26 +11922,26 @@ "reviewClass": "per-file-maintainer-accepted-retained-registration", "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", - "provenanceTemplateId": "flowers_after_rain" + "provenanceTemplateId": "cobalt_jug_and_lemons" }, { - "path": "template-gallery/reviews/flowers_after_rain.original-review.json", - "sha256": "sha256:bytes:0dadd907604fdde95baa31bcc981dd87cab836c1b167fc852542982163bbc455", + "path": "template-gallery/reviews/cobalt_jug_and_lemons.retained-template-provenance.json", + "sha256": "sha256:bytes:066fee762cae8b5f92625cc71f4002422828b06115024c3ce11affd68f34544e", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/ATH-MaaS/Ovis-Image-7B/tree/41be1c5821a92c970d63d7eb595a2fd3fe32b22e", - "sourceRevision": "ATH-MaaS/Ovis-Image-7B@41be1c5821a92c970d63d7eb595a2fd3fe32b22e", + "sourceUrl": "https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14", + "sourceRevision": "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14", "sourceLicense": "MoDiff-authored Gallery metadata", "modelTerms": [ - "apache-2.0. https://huggingface.co/ATH-MaaS/Ovis-Image-7B/tree/41be1c5821a92c970d63d7eb595a2fd3fe32b22e" + "creativeml-openrail-m. https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14" ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "ATH-MaaS/Ovis-Image-7B@41be1c5821a92c970d63d7eb595a2fd3fe32b22e https://huggingface.co/ATH-MaaS/Ovis-Image-7B/tree/41be1c5821a92c970d63d7eb595a2fd3fe32b22e" + "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14 https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", @@ -11534,179 +11949,709 @@ "reviewClass": "per-file-maintainer-accepted-retained-registration", "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", - "provenanceTemplateId": "flowers_after_rain" + "provenanceTemplateId": "cobalt_jug_and_lemons" }, { - "path": "template-gallery/reviews/flowers_after_rain.quality-review.json", - "sha256": "sha256:bytes:4dc4ac8e4aa12dc1a9f0d685a3416d1039866c8b52d8d2560a8d3b0364cd5121", + "path": "template-gallery/reviews/cogvideox_mossy_mountain_stream.original-provenance.json", + "sha256": "sha256:bytes:33e7bae227d98d35af005ca13238e9adfb288160165643330621b871c48ac32c", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/ATH-MaaS/Ovis-Image-7B/tree/41be1c5821a92c970d63d7eb595a2fd3fe32b22e", - "sourceRevision": "ATH-MaaS/Ovis-Image-7B@41be1c5821a92c970d63d7eb595a2fd3fe32b22e", + "sourceUrl": "https://huggingface.co/zai-org/CogVideoX-2b/tree/1137dacfc2c9c012bed6a0793f4ecf2ca8e7ba01", + "sourceRevision": "zai-org/CogVideoX-2b@1137dacfc2c9c012bed6a0793f4ecf2ca8e7ba01", "sourceLicense": "MoDiff-authored Gallery metadata", "modelTerms": [ - "apache-2.0. https://huggingface.co/ATH-MaaS/Ovis-Image-7B/tree/41be1c5821a92c970d63d7eb595a2fd3fe32b22e" + "Publisher model terms at https://huggingface.co/zai-org/CogVideoX-2b/tree/1137dacfc2c9c012bed6a0793f4ecf2ca8e7ba01" ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "ATH-MaaS/Ovis-Image-7B@41be1c5821a92c970d63d7eb595a2fd3fe32b22e https://huggingface.co/ATH-MaaS/Ovis-Image-7B/tree/41be1c5821a92c970d63d7eb595a2fd3fe32b22e" + "zai-org/CogVideoX-2b@1137dacfc2c9c012bed6a0793f4ecf2ca8e7ba01 https://huggingface.co/zai-org/CogVideoX-2b/tree/1137dacfc2c9c012bed6a0793f4ecf2ca8e7ba01" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", - "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", - "provenanceTemplateId": "flowers_after_rain" + "humanApprovalPacketSHA256": "ffeaa41a5c94b59135d2cdb15a5c7f79f073c15fd78792ce00a157398ab15d59", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "cogvideox_mossy_mountain_stream" }, { - "path": "template-gallery/reviews/flowers_after_rain.retained-template-provenance.json", - "sha256": "sha256:bytes:5251193aa4454f936e7677ee44b91d30938885e46645007effb8b1de8ea61f4a", + "path": "template-gallery/reviews/cogvideox_mossy_mountain_stream.original-review.json", + "sha256": "sha256:bytes:3678c4a805bb1d6b4205c0d3d97df2f559b65740a7519ba19674456c26d54d13", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/ATH-MaaS/Ovis-Image-7B/tree/41be1c5821a92c970d63d7eb595a2fd3fe32b22e", - "sourceRevision": "ATH-MaaS/Ovis-Image-7B@41be1c5821a92c970d63d7eb595a2fd3fe32b22e", + "sourceUrl": "https://huggingface.co/zai-org/CogVideoX-2b/tree/1137dacfc2c9c012bed6a0793f4ecf2ca8e7ba01", + "sourceRevision": "zai-org/CogVideoX-2b@1137dacfc2c9c012bed6a0793f4ecf2ca8e7ba01", "sourceLicense": "MoDiff-authored Gallery metadata", "modelTerms": [ - "apache-2.0. https://huggingface.co/ATH-MaaS/Ovis-Image-7B/tree/41be1c5821a92c970d63d7eb595a2fd3fe32b22e" + "Publisher model terms at https://huggingface.co/zai-org/CogVideoX-2b/tree/1137dacfc2c9c012bed6a0793f4ecf2ca8e7ba01" ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "ATH-MaaS/Ovis-Image-7B@41be1c5821a92c970d63d7eb595a2fd3fe32b22e https://huggingface.co/ATH-MaaS/Ovis-Image-7B/tree/41be1c5821a92c970d63d7eb595a2fd3fe32b22e" + "zai-org/CogVideoX-2b@1137dacfc2c9c012bed6a0793f4ecf2ca8e7ba01 https://huggingface.co/zai-org/CogVideoX-2b/tree/1137dacfc2c9c012bed6a0793f4ecf2ca8e7ba01" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", - "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", - "provenanceTemplateId": "flowers_after_rain" + "humanApprovalPacketSHA256": "ffeaa41a5c94b59135d2cdb15a5c7f79f073c15fd78792ce00a157398ab15d59", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "cogvideox_mossy_mountain_stream" }, { - "path": "template-gallery/reviews/flux1_dev_limestone_studio_scratch_repair.original-provenance.json", - "sha256": "sha256:bytes:876f2fb80e0352d1c5d25648da72ec9324d03e46bad65e42cd487c415d952626", + "path": "template-gallery/reviews/cogvideox_mossy_mountain_stream.quality-review.json", + "sha256": "sha256:bytes:43fcf40d6bec403f203be3b2386ef27e345752c5dc53882ab2df45537dcbfcd1", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/black-forest-labs/FLUX.1-dev/tree/3de623fc3c33e44ffbe2bad470d0f45bccf2eb21", - "sourceRevision": "black-forest-labs/FLUX.1-dev@3de623fc3c33e44ffbe2bad470d0f45bccf2eb21", + "sourceUrl": "https://huggingface.co/zai-org/CogVideoX-2b/tree/1137dacfc2c9c012bed6a0793f4ecf2ca8e7ba01", + "sourceRevision": "zai-org/CogVideoX-2b@1137dacfc2c9c012bed6a0793f4ecf2ca8e7ba01", "sourceLicense": "MoDiff-authored Gallery metadata", "modelTerms": [ - "Publisher model terms at https://huggingface.co/black-forest-labs/FLUX.1-dev/tree/3de623fc3c33e44ffbe2bad470d0f45bccf2eb21" + "Publisher model terms at https://huggingface.co/zai-org/CogVideoX-2b/tree/1137dacfc2c9c012bed6a0793f4ecf2ca8e7ba01" ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "black-forest-labs/FLUX.1-dev@3de623fc3c33e44ffbe2bad470d0f45bccf2eb21 https://huggingface.co/black-forest-labs/FLUX.1-dev/tree/3de623fc3c33e44ffbe2bad470d0f45bccf2eb21" + "zai-org/CogVideoX-2b@1137dacfc2c9c012bed6a0793f4ecf2ca8e7ba01 https://huggingface.co/zai-org/CogVideoX-2b/tree/1137dacfc2c9c012bed6a0793f4ecf2ca8e7ba01" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "60b01498a2df5f4e4622cdc2f9a43c83d187820780d2425a19718c13707db501", + "humanApprovalPacketSHA256": "ffeaa41a5c94b59135d2cdb15a5c7f79f073c15fd78792ce00a157398ab15d59", "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", - "provenanceTemplateId": "flux1_dev_limestone_studio_scratch_repair" + "provenanceTemplateId": "cogvideox_mossy_mountain_stream" }, { - "path": "template-gallery/reviews/flux1_dev_limestone_studio_scratch_repair.original-review.json", - "sha256": "sha256:bytes:9c6d1ea38c006fe11dd5e65d5c82d040e20844d8d38c680b1d45ea189b9e2282", + "path": "template-gallery/reviews/cogvideox_mossy_mountain_stream.retained-template-provenance.json", + "sha256": "sha256:bytes:2e96867659142d6f562c4607f0db301aa2f003bfb9c4f29f333751365a5d7b66", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/black-forest-labs/FLUX.1-dev/tree/3de623fc3c33e44ffbe2bad470d0f45bccf2eb21", - "sourceRevision": "black-forest-labs/FLUX.1-dev@3de623fc3c33e44ffbe2bad470d0f45bccf2eb21", + "sourceUrl": "https://huggingface.co/zai-org/CogVideoX-2b/tree/1137dacfc2c9c012bed6a0793f4ecf2ca8e7ba01", + "sourceRevision": "zai-org/CogVideoX-2b@1137dacfc2c9c012bed6a0793f4ecf2ca8e7ba01", "sourceLicense": "MoDiff-authored Gallery metadata", "modelTerms": [ - "Publisher model terms at https://huggingface.co/black-forest-labs/FLUX.1-dev/tree/3de623fc3c33e44ffbe2bad470d0f45bccf2eb21" + "Publisher model terms at https://huggingface.co/zai-org/CogVideoX-2b/tree/1137dacfc2c9c012bed6a0793f4ecf2ca8e7ba01" ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "black-forest-labs/FLUX.1-dev@3de623fc3c33e44ffbe2bad470d0f45bccf2eb21 https://huggingface.co/black-forest-labs/FLUX.1-dev/tree/3de623fc3c33e44ffbe2bad470d0f45bccf2eb21" + "zai-org/CogVideoX-2b@1137dacfc2c9c012bed6a0793f4ecf2ca8e7ba01 https://huggingface.co/zai-org/CogVideoX-2b/tree/1137dacfc2c9c012bed6a0793f4ecf2ca8e7ba01" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "60b01498a2df5f4e4622cdc2f9a43c83d187820780d2425a19718c13707db501", + "humanApprovalPacketSHA256": "ffeaa41a5c94b59135d2cdb15a5c7f79f073c15fd78792ce00a157398ab15d59", "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", - "provenanceTemplateId": "flux1_dev_limestone_studio_scratch_repair" + "provenanceTemplateId": "cogvideox_mossy_mountain_stream" }, { - "path": "template-gallery/reviews/flux1_dev_limestone_studio_scratch_repair.quality-review.json", - "sha256": "sha256:bytes:1233ae9bdb89e3599b691f2bc14408f1f9dd762c3db734bb8fd828fce1f040b0", + "path": "template-gallery/reviews/cogvideox_red_tram_model_railway.original-provenance.json", + "sha256": "sha256:bytes:b63d433a2ae3627d260abf77dca4bca8ded0798a3449e9fb5b460628c5a2fa08", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/black-forest-labs/FLUX.1-dev/tree/3de623fc3c33e44ffbe2bad470d0f45bccf2eb21", - "sourceRevision": "black-forest-labs/FLUX.1-dev@3de623fc3c33e44ffbe2bad470d0f45bccf2eb21", + "sourceUrl": "https://huggingface.co/zai-org/CogVideoX-2b/tree/1137dacfc2c9c012bed6a0793f4ecf2ca8e7ba01", + "sourceRevision": "zai-org/CogVideoX-2b@1137dacfc2c9c012bed6a0793f4ecf2ca8e7ba01", "sourceLicense": "MoDiff-authored Gallery metadata", "modelTerms": [ - "Publisher model terms at https://huggingface.co/black-forest-labs/FLUX.1-dev/tree/3de623fc3c33e44ffbe2bad470d0f45bccf2eb21" + "Publisher model terms at https://huggingface.co/zai-org/CogVideoX-2b/tree/1137dacfc2c9c012bed6a0793f4ecf2ca8e7ba01" ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "black-forest-labs/FLUX.1-dev@3de623fc3c33e44ffbe2bad470d0f45bccf2eb21 https://huggingface.co/black-forest-labs/FLUX.1-dev/tree/3de623fc3c33e44ffbe2bad470d0f45bccf2eb21" + "zai-org/CogVideoX-2b@1137dacfc2c9c012bed6a0793f4ecf2ca8e7ba01 https://huggingface.co/zai-org/CogVideoX-2b/tree/1137dacfc2c9c012bed6a0793f4ecf2ca8e7ba01" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "60b01498a2df5f4e4622cdc2f9a43c83d187820780d2425a19718c13707db501", + "humanApprovalPacketSHA256": "ffeaa41a5c94b59135d2cdb15a5c7f79f073c15fd78792ce00a157398ab15d59", "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", - "provenanceTemplateId": "flux1_dev_limestone_studio_scratch_repair" + "provenanceTemplateId": "cogvideox_red_tram_model_railway" }, { - "path": "template-gallery/reviews/flux1_dev_limestone_studio_scratch_repair.retained-template-provenance.json", - "sha256": "sha256:bytes:61e8601aaefcc918f03d5f110d57e8f26cb2149d6034c22fb9c13915ddb70324", + "path": "template-gallery/reviews/cogvideox_red_tram_model_railway.original-review.json", + "sha256": "sha256:bytes:0b2030e77910993ce5e1947c5378e06ab488e1243b79e67cc6edd44c3cd8d462", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/black-forest-labs/FLUX.1-dev/tree/3de623fc3c33e44ffbe2bad470d0f45bccf2eb21", - "sourceRevision": "black-forest-labs/FLUX.1-dev@3de623fc3c33e44ffbe2bad470d0f45bccf2eb21", + "sourceUrl": "https://huggingface.co/zai-org/CogVideoX-2b/tree/1137dacfc2c9c012bed6a0793f4ecf2ca8e7ba01", + "sourceRevision": "zai-org/CogVideoX-2b@1137dacfc2c9c012bed6a0793f4ecf2ca8e7ba01", "sourceLicense": "MoDiff-authored Gallery metadata", "modelTerms": [ - "Publisher model terms at https://huggingface.co/black-forest-labs/FLUX.1-dev/tree/3de623fc3c33e44ffbe2bad470d0f45bccf2eb21" + "Publisher model terms at https://huggingface.co/zai-org/CogVideoX-2b/tree/1137dacfc2c9c012bed6a0793f4ecf2ca8e7ba01" ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "black-forest-labs/FLUX.1-dev@3de623fc3c33e44ffbe2bad470d0f45bccf2eb21 https://huggingface.co/black-forest-labs/FLUX.1-dev/tree/3de623fc3c33e44ffbe2bad470d0f45bccf2eb21" + "zai-org/CogVideoX-2b@1137dacfc2c9c012bed6a0793f4ecf2ca8e7ba01 https://huggingface.co/zai-org/CogVideoX-2b/tree/1137dacfc2c9c012bed6a0793f4ecf2ca8e7ba01" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "60b01498a2df5f4e4622cdc2f9a43c83d187820780d2425a19718c13707db501", + "humanApprovalPacketSHA256": "ffeaa41a5c94b59135d2cdb15a5c7f79f073c15fd78792ce00a157398ab15d59", "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", - "provenanceTemplateId": "flux1_dev_limestone_studio_scratch_repair" + "provenanceTemplateId": "cogvideox_red_tram_model_railway" }, { - "path": "template-gallery/reviews/flux2_klein_edit.quality-review.json", - "sha256": "sha256:bytes:9fb22201199f326234b60ad2b1162dd14d3e94cf6e2bd4d00507c26d240aeebe", + "path": "template-gallery/reviews/cogvideox_red_tram_model_railway.quality-review.json", + "sha256": "sha256:bytes:56466f759c750421f135ebf3069202ae9eb0374a9f2ee4327b95b0490ec3a583", "publishDecision": "approved", "holdReason": null, - "creatorOrRightsholder": "MoDiff project maintainers", - "creationMethod": "MoDiff-authored technical provenance, Gallery manifest or quality review for the two explicitly approved native Windows FLUX.2 Klein images", - "sourceUrl": null, - "sourceRevision": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/zai-org/CogVideoX-2b/tree/1137dacfc2c9c012bed6a0793f4ecf2ca8e7ba01", + "sourceRevision": "zai-org/CogVideoX-2b@1137dacfc2c9c012bed6a0793f4ecf2ca8e7ba01", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "Publisher model terms at https://huggingface.co/zai-org/CogVideoX-2b/tree/1137dacfc2c9c012bed6a0793f4ecf2ca8e7ba01" + ], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "zai-org/CogVideoX-2b@1137dacfc2c9c012bed6a0793f4ecf2ca8e7ba01 https://huggingface.co/zai-org/CogVideoX-2b/tree/1137dacfc2c9c012bed6a0793f4ecf2ca8e7ba01" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "ffeaa41a5c94b59135d2cdb15a5c7f79f073c15fd78792ce00a157398ab15d59", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "cogvideox_red_tram_model_railway" + }, + { + "path": "template-gallery/reviews/cogvideox_red_tram_model_railway.retained-template-provenance.json", + "sha256": "sha256:bytes:71ff0983139861b9a21d9b2882974bb5e96d11903563df161578818d795a1290", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/zai-org/CogVideoX-2b/tree/1137dacfc2c9c012bed6a0793f4ecf2ca8e7ba01", + "sourceRevision": "zai-org/CogVideoX-2b@1137dacfc2c9c012bed6a0793f4ecf2ca8e7ba01", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "Publisher model terms at https://huggingface.co/zai-org/CogVideoX-2b/tree/1137dacfc2c9c012bed6a0793f4ecf2ca8e7ba01" + ], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "zai-org/CogVideoX-2b@1137dacfc2c9c012bed6a0793f4ecf2ca8e7ba01 https://huggingface.co/zai-org/CogVideoX-2b/tree/1137dacfc2c9c012bed6a0793f4ecf2ca8e7ba01" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "ffeaa41a5c94b59135d2cdb15a5c7f79f073c15fd78792ce00a157398ab15d59", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "cogvideox_red_tram_model_railway" + }, + { + "path": "template-gallery/reviews/copper_hour_dunes.original-provenance.json", + "sha256": "sha256:bytes:6223329bd7a1a962703aefba1379c33dae7f57daa40a09aa8e77c1cdd05b099c", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/Photoroom/prx-512-t2i-sft/tree/2996423bc26e8eaca48774fac1797484214dfea0", + "sourceRevision": "Photoroom/prx-512-t2i-sft@2996423bc26e8eaca48774fac1797484214dfea0", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "apache-2.0. https://huggingface.co/Photoroom/prx-512-t2i-sft/tree/2996423bc26e8eaca48774fac1797484214dfea0" + ], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "Photoroom/prx-512-t2i-sft@2996423bc26e8eaca48774fac1797484214dfea0 https://huggingface.co/Photoroom/prx-512-t2i-sft/tree/2996423bc26e8eaca48774fac1797484214dfea0" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", + "provenanceTemplateId": "copper_hour_dunes" + }, + { + "path": "template-gallery/reviews/copper_hour_dunes.original-review.json", + "sha256": "sha256:bytes:1da7406a3792d864c6aa0e010203a15d608a2f85372e530aabdeabfd7dc7e529", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/Photoroom/prx-512-t2i-sft/tree/2996423bc26e8eaca48774fac1797484214dfea0", + "sourceRevision": "Photoroom/prx-512-t2i-sft@2996423bc26e8eaca48774fac1797484214dfea0", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "apache-2.0. https://huggingface.co/Photoroom/prx-512-t2i-sft/tree/2996423bc26e8eaca48774fac1797484214dfea0" + ], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "Photoroom/prx-512-t2i-sft@2996423bc26e8eaca48774fac1797484214dfea0 https://huggingface.co/Photoroom/prx-512-t2i-sft/tree/2996423bc26e8eaca48774fac1797484214dfea0" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", + "provenanceTemplateId": "copper_hour_dunes" + }, + { + "path": "template-gallery/reviews/copper_hour_dunes.quality-review.json", + "sha256": "sha256:bytes:bc0ce5cb8d1e26c9b3491f5d1653365ca11b5305b25cd32647b08398bf889e8f", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/Photoroom/prx-512-t2i-sft/tree/2996423bc26e8eaca48774fac1797484214dfea0", + "sourceRevision": "Photoroom/prx-512-t2i-sft@2996423bc26e8eaca48774fac1797484214dfea0", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "apache-2.0. https://huggingface.co/Photoroom/prx-512-t2i-sft/tree/2996423bc26e8eaca48774fac1797484214dfea0" + ], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "Photoroom/prx-512-t2i-sft@2996423bc26e8eaca48774fac1797484214dfea0 https://huggingface.co/Photoroom/prx-512-t2i-sft/tree/2996423bc26e8eaca48774fac1797484214dfea0" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", + "provenanceTemplateId": "copper_hour_dunes" + }, + { + "path": "template-gallery/reviews/copper_hour_dunes.retained-template-provenance.json", + "sha256": "sha256:bytes:b1d27bc198b128e1085d6b920a62dff73ed1684735c0d9b7eefbd28ab52d7e5b", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/Photoroom/prx-512-t2i-sft/tree/2996423bc26e8eaca48774fac1797484214dfea0", + "sourceRevision": "Photoroom/prx-512-t2i-sft@2996423bc26e8eaca48774fac1797484214dfea0", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "apache-2.0. https://huggingface.co/Photoroom/prx-512-t2i-sft/tree/2996423bc26e8eaca48774fac1797484214dfea0" + ], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "Photoroom/prx-512-t2i-sft@2996423bc26e8eaca48774fac1797484214dfea0 https://huggingface.co/Photoroom/prx-512-t2i-sft/tree/2996423bc26e8eaca48774fac1797484214dfea0" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", + "provenanceTemplateId": "copper_hour_dunes" + }, + { + "path": "template-gallery/reviews/ddim_cifar10_preview.original-provenance.json", + "sha256": "sha256:bytes:8fc838dd4bc701aa0c65e6b2630cc749d05736d23623591e3d1ac5af3d6b93d9", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/google/ddpm-cifar10-32/tree/267b167dc01f0e4e61923ea244e8b988f84deb80", + "sourceRevision": "google/ddpm-cifar10-32@267b167dc01f0e4e61923ea244e8b988f84deb80", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "Publisher model terms at https://huggingface.co/google/ddpm-cifar10-32/tree/267b167dc01f0e4e61923ea244e8b988f84deb80" + ], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "google/ddpm-cifar10-32@267b167dc01f0e4e61923ea244e8b988f84deb80 https://huggingface.co/google/ddpm-cifar10-32/tree/267b167dc01f0e4e61923ea244e8b988f84deb80" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-24", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "d216f065bdc316366c6183592f657bcfbbd7cb05acd0e510c6b3877fe56bcec2", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped six saved cases with model terms retained.", + "provenanceTemplateId": "ddim_cifar10_preview" + }, + { + "path": "template-gallery/reviews/ddim_cifar10_preview.original-review.json", + "sha256": "sha256:bytes:5a793d20a7b28f16f07648dce956a5cf5d2ecf8b50d85ca9005f965196102391", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/google/ddpm-cifar10-32/tree/267b167dc01f0e4e61923ea244e8b988f84deb80", + "sourceRevision": "google/ddpm-cifar10-32@267b167dc01f0e4e61923ea244e8b988f84deb80", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "Publisher model terms at https://huggingface.co/google/ddpm-cifar10-32/tree/267b167dc01f0e4e61923ea244e8b988f84deb80" + ], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "google/ddpm-cifar10-32@267b167dc01f0e4e61923ea244e8b988f84deb80 https://huggingface.co/google/ddpm-cifar10-32/tree/267b167dc01f0e4e61923ea244e8b988f84deb80" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-24", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "d216f065bdc316366c6183592f657bcfbbd7cb05acd0e510c6b3877fe56bcec2", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped six saved cases with model terms retained.", + "provenanceTemplateId": "ddim_cifar10_preview" + }, + { + "path": "template-gallery/reviews/ddim_cifar10_preview.quality-review.json", + "sha256": "sha256:bytes:24698d674171ad14c31fba20652e694b1e845214fe802d32cb7d0e42611cb7c2", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/google/ddpm-cifar10-32/tree/267b167dc01f0e4e61923ea244e8b988f84deb80", + "sourceRevision": "google/ddpm-cifar10-32@267b167dc01f0e4e61923ea244e8b988f84deb80", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "Publisher model terms at https://huggingface.co/google/ddpm-cifar10-32/tree/267b167dc01f0e4e61923ea244e8b988f84deb80" + ], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "google/ddpm-cifar10-32@267b167dc01f0e4e61923ea244e8b988f84deb80 https://huggingface.co/google/ddpm-cifar10-32/tree/267b167dc01f0e4e61923ea244e8b988f84deb80" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-24", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "d216f065bdc316366c6183592f657bcfbbd7cb05acd0e510c6b3877fe56bcec2", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped six saved cases with model terms retained.", + "provenanceTemplateId": "ddim_cifar10_preview" + }, + { + "path": "template-gallery/reviews/ddim_cifar10_preview.retained-template-provenance.json", + "sha256": "sha256:bytes:8f2075aff72c4a31ca3e247ce7b1c1c6ebaa8b8f29d7ad7e124555543b7ddfbd", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/google/ddpm-cifar10-32/tree/267b167dc01f0e4e61923ea244e8b988f84deb80", + "sourceRevision": "google/ddpm-cifar10-32@267b167dc01f0e4e61923ea244e8b988f84deb80", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "Publisher model terms at https://huggingface.co/google/ddpm-cifar10-32/tree/267b167dc01f0e4e61923ea244e8b988f84deb80" + ], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "google/ddpm-cifar10-32@267b167dc01f0e4e61923ea244e8b988f84deb80 https://huggingface.co/google/ddpm-cifar10-32/tree/267b167dc01f0e4e61923ea244e8b988f84deb80" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-24", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "d216f065bdc316366c6183592f657bcfbbd7cb05acd0e510c6b3877fe56bcec2", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped six saved cases with model terms retained.", + "provenanceTemplateId": "ddim_cifar10_preview" + }, + { + "path": "template-gallery/reviews/fast_lora.quality-review.json", + "sha256": "sha256:bytes:96079ed2226e86a0a0686283402a8c4f567809c73d67138afb4d58fc46936a15", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers", + "creationMethod": "MoDiff-authored technical provenance or quality metadata from the explicitly approved six-image source packet", + "sourceUrl": null, + "sourceRevision": null, + "sourceLicense": "Apache-2.0 project-authored metadata; generated-media terms remain in their exact per-file records", + "modelTerms": [], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [], + "assetLicense": "Apache-2.0", + "reviewedBy": "SOURAV DAS", + "reviewedAt": "2026-11-09", + "reviewClass": "per-file-human-approved-six-z-registration", + "provenanceTemplateId": "fast_lora", + "humanApprovalPacketSHA256": "9b728a5f8535fc1ba3c03d2e2759d7ac795a586fafab51beb1509379ed388934" + }, + { + "path": "template-gallery/reviews/fast_lora.reviewed-provenance.json", + "sha256": "sha256:bytes:7a3e3ac94845ad37f5f374c1e808a5ff449b0e5776be72a1891bb2c106fdd722", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers", + "creationMethod": "MoDiff-authored technical provenance or quality metadata from the explicitly approved six-image source packet", + "sourceUrl": null, + "sourceRevision": null, + "sourceLicense": "Apache-2.0 project-authored metadata; generated-media terms remain in their exact per-file records", + "modelTerms": [], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [], + "assetLicense": "Apache-2.0", + "reviewedBy": "SOURAV DAS", + "reviewedAt": "2026-11-09", + "reviewClass": "per-file-human-approved-six-z-registration", + "provenanceTemplateId": "fast_lora", + "humanApprovalPacketSHA256": "9b728a5f8535fc1ba3c03d2e2759d7ac795a586fafab51beb1509379ed388934" + }, + { + "path": "template-gallery/reviews/flowers_after_rain.original-provenance.json", + "sha256": "sha256:bytes:4368cd0ed92243d2cc6b5b628ffabba5e64339eeec153282832b253d68efaa87", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/ATH-MaaS/Ovis-Image-7B/tree/41be1c5821a92c970d63d7eb595a2fd3fe32b22e", + "sourceRevision": "ATH-MaaS/Ovis-Image-7B@41be1c5821a92c970d63d7eb595a2fd3fe32b22e", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "apache-2.0. https://huggingface.co/ATH-MaaS/Ovis-Image-7B/tree/41be1c5821a92c970d63d7eb595a2fd3fe32b22e" + ], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "ATH-MaaS/Ovis-Image-7B@41be1c5821a92c970d63d7eb595a2fd3fe32b22e https://huggingface.co/ATH-MaaS/Ovis-Image-7B/tree/41be1c5821a92c970d63d7eb595a2fd3fe32b22e" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", + "provenanceTemplateId": "flowers_after_rain" + }, + { + "path": "template-gallery/reviews/flowers_after_rain.original-review.json", + "sha256": "sha256:bytes:0dadd907604fdde95baa31bcc981dd87cab836c1b167fc852542982163bbc455", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/ATH-MaaS/Ovis-Image-7B/tree/41be1c5821a92c970d63d7eb595a2fd3fe32b22e", + "sourceRevision": "ATH-MaaS/Ovis-Image-7B@41be1c5821a92c970d63d7eb595a2fd3fe32b22e", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "apache-2.0. https://huggingface.co/ATH-MaaS/Ovis-Image-7B/tree/41be1c5821a92c970d63d7eb595a2fd3fe32b22e" + ], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "ATH-MaaS/Ovis-Image-7B@41be1c5821a92c970d63d7eb595a2fd3fe32b22e https://huggingface.co/ATH-MaaS/Ovis-Image-7B/tree/41be1c5821a92c970d63d7eb595a2fd3fe32b22e" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", + "provenanceTemplateId": "flowers_after_rain" + }, + { + "path": "template-gallery/reviews/flowers_after_rain.quality-review.json", + "sha256": "sha256:bytes:4dc4ac8e4aa12dc1a9f0d685a3416d1039866c8b52d8d2560a8d3b0364cd5121", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/ATH-MaaS/Ovis-Image-7B/tree/41be1c5821a92c970d63d7eb595a2fd3fe32b22e", + "sourceRevision": "ATH-MaaS/Ovis-Image-7B@41be1c5821a92c970d63d7eb595a2fd3fe32b22e", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "apache-2.0. https://huggingface.co/ATH-MaaS/Ovis-Image-7B/tree/41be1c5821a92c970d63d7eb595a2fd3fe32b22e" + ], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "ATH-MaaS/Ovis-Image-7B@41be1c5821a92c970d63d7eb595a2fd3fe32b22e https://huggingface.co/ATH-MaaS/Ovis-Image-7B/tree/41be1c5821a92c970d63d7eb595a2fd3fe32b22e" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", + "provenanceTemplateId": "flowers_after_rain" + }, + { + "path": "template-gallery/reviews/flowers_after_rain.retained-template-provenance.json", + "sha256": "sha256:bytes:5251193aa4454f936e7677ee44b91d30938885e46645007effb8b1de8ea61f4a", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/ATH-MaaS/Ovis-Image-7B/tree/41be1c5821a92c970d63d7eb595a2fd3fe32b22e", + "sourceRevision": "ATH-MaaS/Ovis-Image-7B@41be1c5821a92c970d63d7eb595a2fd3fe32b22e", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "apache-2.0. https://huggingface.co/ATH-MaaS/Ovis-Image-7B/tree/41be1c5821a92c970d63d7eb595a2fd3fe32b22e" + ], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "ATH-MaaS/Ovis-Image-7B@41be1c5821a92c970d63d7eb595a2fd3fe32b22e https://huggingface.co/ATH-MaaS/Ovis-Image-7B/tree/41be1c5821a92c970d63d7eb595a2fd3fe32b22e" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", + "provenanceTemplateId": "flowers_after_rain" + }, + { + "path": "template-gallery/reviews/flux1_dev_limestone_studio_scratch_repair.original-provenance.json", + "sha256": "sha256:bytes:876f2fb80e0352d1c5d25648da72ec9324d03e46bad65e42cd487c415d952626", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/black-forest-labs/FLUX.1-dev/tree/3de623fc3c33e44ffbe2bad470d0f45bccf2eb21", + "sourceRevision": "black-forest-labs/FLUX.1-dev@3de623fc3c33e44ffbe2bad470d0f45bccf2eb21", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "Publisher model terms at https://huggingface.co/black-forest-labs/FLUX.1-dev/tree/3de623fc3c33e44ffbe2bad470d0f45bccf2eb21" + ], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "black-forest-labs/FLUX.1-dev@3de623fc3c33e44ffbe2bad470d0f45bccf2eb21 https://huggingface.co/black-forest-labs/FLUX.1-dev/tree/3de623fc3c33e44ffbe2bad470d0f45bccf2eb21" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "60b01498a2df5f4e4622cdc2f9a43c83d187820780d2425a19718c13707db501", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "flux1_dev_limestone_studio_scratch_repair" + }, + { + "path": "template-gallery/reviews/flux1_dev_limestone_studio_scratch_repair.original-review.json", + "sha256": "sha256:bytes:9c6d1ea38c006fe11dd5e65d5c82d040e20844d8d38c680b1d45ea189b9e2282", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/black-forest-labs/FLUX.1-dev/tree/3de623fc3c33e44ffbe2bad470d0f45bccf2eb21", + "sourceRevision": "black-forest-labs/FLUX.1-dev@3de623fc3c33e44ffbe2bad470d0f45bccf2eb21", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "Publisher model terms at https://huggingface.co/black-forest-labs/FLUX.1-dev/tree/3de623fc3c33e44ffbe2bad470d0f45bccf2eb21" + ], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "black-forest-labs/FLUX.1-dev@3de623fc3c33e44ffbe2bad470d0f45bccf2eb21 https://huggingface.co/black-forest-labs/FLUX.1-dev/tree/3de623fc3c33e44ffbe2bad470d0f45bccf2eb21" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "60b01498a2df5f4e4622cdc2f9a43c83d187820780d2425a19718c13707db501", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "flux1_dev_limestone_studio_scratch_repair" + }, + { + "path": "template-gallery/reviews/flux1_dev_limestone_studio_scratch_repair.quality-review.json", + "sha256": "sha256:bytes:1233ae9bdb89e3599b691f2bc14408f1f9dd762c3db734bb8fd828fce1f040b0", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/black-forest-labs/FLUX.1-dev/tree/3de623fc3c33e44ffbe2bad470d0f45bccf2eb21", + "sourceRevision": "black-forest-labs/FLUX.1-dev@3de623fc3c33e44ffbe2bad470d0f45bccf2eb21", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "Publisher model terms at https://huggingface.co/black-forest-labs/FLUX.1-dev/tree/3de623fc3c33e44ffbe2bad470d0f45bccf2eb21" + ], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "black-forest-labs/FLUX.1-dev@3de623fc3c33e44ffbe2bad470d0f45bccf2eb21 https://huggingface.co/black-forest-labs/FLUX.1-dev/tree/3de623fc3c33e44ffbe2bad470d0f45bccf2eb21" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "60b01498a2df5f4e4622cdc2f9a43c83d187820780d2425a19718c13707db501", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "flux1_dev_limestone_studio_scratch_repair" + }, + { + "path": "template-gallery/reviews/flux1_dev_limestone_studio_scratch_repair.retained-template-provenance.json", + "sha256": "sha256:bytes:61e8601aaefcc918f03d5f110d57e8f26cb2149d6034c22fb9c13915ddb70324", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/black-forest-labs/FLUX.1-dev/tree/3de623fc3c33e44ffbe2bad470d0f45bccf2eb21", + "sourceRevision": "black-forest-labs/FLUX.1-dev@3de623fc3c33e44ffbe2bad470d0f45bccf2eb21", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "Publisher model terms at https://huggingface.co/black-forest-labs/FLUX.1-dev/tree/3de623fc3c33e44ffbe2bad470d0f45bccf2eb21" + ], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "black-forest-labs/FLUX.1-dev@3de623fc3c33e44ffbe2bad470d0f45bccf2eb21 https://huggingface.co/black-forest-labs/FLUX.1-dev/tree/3de623fc3c33e44ffbe2bad470d0f45bccf2eb21" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "60b01498a2df5f4e4622cdc2f9a43c83d187820780d2425a19718c13707db501", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "flux1_dev_limestone_studio_scratch_repair" + }, + { + "path": "template-gallery/reviews/flux2_klein_edit.quality-review.json", + "sha256": "sha256:bytes:9fb22201199f326234b60ad2b1162dd14d3e94cf6e2bd4d00507c26d240aeebe", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers", + "creationMethod": "MoDiff-authored technical provenance, Gallery manifest or quality review for the two explicitly approved native Windows FLUX.2 Klein images", + "sourceUrl": null, + "sourceRevision": null, "sourceLicense": "Apache-2.0 project-authored metadata; generated-media terms remain in their exact per-file record", "modelTerms": [], "aiGenerated": false, @@ -13464,70 +14409,322 @@ "marks": [], "requiredAttribution": [], "assetLicense": "Apache-2.0", - "path": "template-gallery/reviews/flux_redux_edit.reviewed-provenance.json", - "sha256": "sha256:bytes:88dc41a06a6fa368953d24f0d20c0700a375465b6c49591653c5471754690c00", - "publishDecision": "approved", - "holdReason": null, - "reviewedBy": "SOURAV DAS", - "reviewedAt": "2026-11-13", - "reviewClass": "per-file-maintainer-accepted-native-six-registration", - "humanApprovalPacketSHA256": "03b66b4631afb15032d62a1705331b56f6b12c4882c23945175ec92cc45a506f", - "publicationBasis": "Register the six approved assets now while Moonflower runs on Linux. Use Windows in parallel wherever possible, and keep the longer workflows separate for AMD cloud.", - "provenanceTemplateId": "flux_redux_edit" + "path": "template-gallery/reviews/flux_redux_edit.reviewed-provenance.json", + "sha256": "sha256:bytes:88dc41a06a6fa368953d24f0d20c0700a375465b6c49591653c5471754690c00", + "publishDecision": "approved", + "holdReason": null, + "reviewedBy": "SOURAV DAS", + "reviewedAt": "2026-11-13", + "reviewClass": "per-file-maintainer-accepted-native-six-registration", + "humanApprovalPacketSHA256": "03b66b4631afb15032d62a1705331b56f6b12c4882c23945175ec92cc45a506f", + "publicationBasis": "Register the six approved assets now while Moonflower runs on Linux. Use Windows in parallel wherever possible, and keep the longer workflows separate for AMD cloud.", + "provenanceTemplateId": "flux_redux_edit" + }, + { + "creatorOrRightsholder": "MoDiff project maintainers", + "creationMethod": "Project-authored redacted technical/review records or versioned declarations for two maintainer-accepted native replacements", + "sourceUrl": null, + "sourceRevision": null, + "sourceLicense": "Apache-2.0 project-authored metadata; media and model terms remain separate", + "modelTerms": [], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [], + "assetLicense": "Apache-2.0", + "path": "template-gallery/reviews/flux_redux_multi_reference.quality-review.json", + "sha256": "sha256:bytes:1e4c83b2db81df7e43b8e79a9a01cc8eadfd2de6c826c218d0c31b50d95b7441", + "publishDecision": "approved", + "holdReason": null, + "reviewedBy": "SOURAV DAS", + "reviewedAt": "2026-11-15", + "reviewClass": "per-file-maintainer-accepted-native-two-registration", + "humanApprovalPacketSHA256": "c3c5e06d05771cf28f823e1dee31a9e7e3765d2f84038823aaadc505ee8290f5", + "publicationBasis": "you can register these two as well", + "provenanceTemplateId": "flux_redux_multi_reference" + }, + { + "creatorOrRightsholder": "MoDiff project maintainers", + "creationMethod": "Project-authored redacted technical/review records or versioned declarations for two maintainer-accepted native replacements", + "sourceUrl": null, + "sourceRevision": null, + "sourceLicense": "Apache-2.0 project-authored metadata; media and model terms remain separate", + "modelTerms": [], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [], + "assetLicense": "Apache-2.0", + "path": "template-gallery/reviews/flux_redux_multi_reference.reviewed-provenance.json", + "sha256": "sha256:bytes:dd1ea7815bc1bc51589ef774cc1f412b3f8bc2f16a7204a8efe56469913d8179", + "publishDecision": "approved", + "holdReason": null, + "reviewedBy": "SOURAV DAS", + "reviewedAt": "2026-11-15", + "reviewClass": "per-file-maintainer-accepted-native-two-registration", + "humanApprovalPacketSHA256": "c3c5e06d05771cf28f823e1dee31a9e7e3765d2f84038823aaadc505ee8290f5", + "publicationBasis": "you can register these two as well", + "provenanceTemplateId": "flux_redux_multi_reference" + }, + { + "path": "template-gallery/reviews/flux_schnell_text_to_image.quality-review.json", + "sha256": "sha256:bytes:5eeda44bb0b251f27d30973ad62659d2d247f1ab620eb4b48af154385958530e", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers", + "creationMethod": "MoDiff-authored technical provenance, Gallery manifest or quality review for the explicitly approved retained native Linux FLUX.1 Schnell image", + "sourceUrl": null, + "sourceRevision": null, + "sourceLicense": "Apache-2.0 project-authored metadata; generated-media terms remain in their exact per-file record", + "modelTerms": [], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [], + "assetLicense": "Apache-2.0", + "reviewedBy": "SOURAV DAS", + "reviewedAt": "2026-11-10", + "reviewClass": "per-file-human-approved-retained-schnell-limited-image-registration", + "provenanceTemplateId": "flux_schnell_text_to_image", + "humanApprovalPacketSHA256": "488dc05971842cc9ed2b31c5995de204015d8b6a975ebc917329dfe3eac71d2c" + }, + { + "path": "template-gallery/reviews/flux_schnell_text_to_image.reviewed-provenance.json", + "sha256": "sha256:bytes:ccf1ec3ab127ce8c01008df4a8a323bac0548e83679281d58c7d77a964ae07a9", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers", + "creationMethod": "MoDiff-authored technical provenance, Gallery manifest or quality review for the explicitly approved retained native Linux FLUX.1 Schnell image", + "sourceUrl": null, + "sourceRevision": null, + "sourceLicense": "Apache-2.0 project-authored metadata; generated-media terms remain in their exact per-file record", + "modelTerms": [], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [], + "assetLicense": "Apache-2.0", + "reviewedBy": "SOURAV DAS", + "reviewedAt": "2026-11-10", + "reviewClass": "per-file-human-approved-retained-schnell-limited-image-registration", + "provenanceTemplateId": "flux_schnell_text_to_image", + "humanApprovalPacketSHA256": "488dc05971842cc9ed2b31c5995de204015d8b6a975ebc917329dfe3eac71d2c" + }, + { + "path": "template-gallery/reviews/forest_ferns.original-provenance.json", + "sha256": "sha256:bytes:9f3dbdc8c7c6c2bbd65792b2d1b958cc21e1aeb44489af772f6e1d8e14b1932b", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/zai-org/GLM-Image/tree/2c433cc0cbc293bde2ac8ca9624f279b5d23fcf4", + "sourceRevision": "zai-org/GLM-Image@2c433cc0cbc293bde2ac8ca9624f279b5d23fcf4", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": ["mit. https://huggingface.co/zai-org/GLM-Image/tree/2c433cc0cbc293bde2ac8ca9624f279b5d23fcf4"], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "zai-org/GLM-Image@2c433cc0cbc293bde2ac8ca9624f279b5d23fcf4 https://huggingface.co/zai-org/GLM-Image/tree/2c433cc0cbc293bde2ac8ca9624f279b5d23fcf4" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", + "provenanceTemplateId": "forest_ferns" + }, + { + "path": "template-gallery/reviews/forest_ferns.original-review.json", + "sha256": "sha256:bytes:c736e68088c4a94fcec6574242c08e840dea34559d3802d63de6f2114f514f1c", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/zai-org/GLM-Image/tree/2c433cc0cbc293bde2ac8ca9624f279b5d23fcf4", + "sourceRevision": "zai-org/GLM-Image@2c433cc0cbc293bde2ac8ca9624f279b5d23fcf4", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": ["mit. https://huggingface.co/zai-org/GLM-Image/tree/2c433cc0cbc293bde2ac8ca9624f279b5d23fcf4"], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "zai-org/GLM-Image@2c433cc0cbc293bde2ac8ca9624f279b5d23fcf4 https://huggingface.co/zai-org/GLM-Image/tree/2c433cc0cbc293bde2ac8ca9624f279b5d23fcf4" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", + "provenanceTemplateId": "forest_ferns" + }, + { + "path": "template-gallery/reviews/forest_ferns.quality-review.json", + "sha256": "sha256:bytes:8d789319fd8de535f0e638a1fecdc2e65db93e1ff95104c7c63939437994529b", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/zai-org/GLM-Image/tree/2c433cc0cbc293bde2ac8ca9624f279b5d23fcf4", + "sourceRevision": "zai-org/GLM-Image@2c433cc0cbc293bde2ac8ca9624f279b5d23fcf4", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": ["mit. https://huggingface.co/zai-org/GLM-Image/tree/2c433cc0cbc293bde2ac8ca9624f279b5d23fcf4"], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "zai-org/GLM-Image@2c433cc0cbc293bde2ac8ca9624f279b5d23fcf4 https://huggingface.co/zai-org/GLM-Image/tree/2c433cc0cbc293bde2ac8ca9624f279b5d23fcf4" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", + "provenanceTemplateId": "forest_ferns" + }, + { + "path": "template-gallery/reviews/forest_ferns.retained-template-provenance.json", + "sha256": "sha256:bytes:8776590ac1201f5606eab7521d2ef8283f85cc48038acafdb3cbe60a11f91a82", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/zai-org/GLM-Image/tree/2c433cc0cbc293bde2ac8ca9624f279b5d23fcf4", + "sourceRevision": "zai-org/GLM-Image@2c433cc0cbc293bde2ac8ca9624f279b5d23fcf4", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": ["mit. https://huggingface.co/zai-org/GLM-Image/tree/2c433cc0cbc293bde2ac8ca9624f279b5d23fcf4"], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "zai-org/GLM-Image@2c433cc0cbc293bde2ac8ca9624f279b5d23fcf4 https://huggingface.co/zai-org/GLM-Image/tree/2c433cc0cbc293bde2ac8ca9624f279b5d23fcf4" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", + "provenanceTemplateId": "forest_ferns" + }, + { + "path": "template-gallery/reviews/glasshouse_rain.original-provenance.json", + "sha256": "sha256:bytes:0dad28d294233db5c72915ddb9559f8eb2e4fba77cd8ebd8510a254ae0434083", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b", + "sourceRevision": "stabilityai/stable-diffusion-xl-base-1.0@462165984030d82259a11f4367a4eed129e94a7b", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "CreativeML Open RAIL++-M. https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b" + ], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "stabilityai/stable-diffusion-xl-base-1.0@462165984030d82259a11f4367a4eed129e94a7b https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", + "provenanceTemplateId": "glasshouse_rain" + }, + { + "path": "template-gallery/reviews/glasshouse_rain.original-review.json", + "sha256": "sha256:bytes:41b3e9a683bb5af2655b9e2874464a97a79eecdf987b93672f1ea3d142bed370", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b", + "sourceRevision": "stabilityai/stable-diffusion-xl-base-1.0@462165984030d82259a11f4367a4eed129e94a7b", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "CreativeML Open RAIL++-M. https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b" + ], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "stabilityai/stable-diffusion-xl-base-1.0@462165984030d82259a11f4367a4eed129e94a7b https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", + "provenanceTemplateId": "glasshouse_rain" }, { - "creatorOrRightsholder": "MoDiff project maintainers", - "creationMethod": "Project-authored redacted technical/review records or versioned declarations for two maintainer-accepted native replacements", - "sourceUrl": null, - "sourceRevision": null, - "sourceLicense": "Apache-2.0 project-authored metadata; media and model terms remain separate", - "modelTerms": [], + "path": "template-gallery/reviews/glasshouse_rain.quality-review.json", + "sha256": "sha256:bytes:da3cb94631be949ba21fcdf842135099dbc6992bfbf37cc9b30710d1fb997ca4", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b", + "sourceRevision": "stabilityai/stable-diffusion-xl-base-1.0@462165984030d82259a11f4367a4eed129e94a7b", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "CreativeML Open RAIL++-M. https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b" + ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], - "requiredAttribution": [], + "requiredAttribution": [ + "stabilityai/stable-diffusion-xl-base-1.0@462165984030d82259a11f4367a4eed129e94a7b https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b" + ], "assetLicense": "Apache-2.0", - "path": "template-gallery/reviews/flux_redux_multi_reference.quality-review.json", - "sha256": "sha256:bytes:1e4c83b2db81df7e43b8e79a9a01cc8eadfd2de6c826c218d0c31b50d95b7441", - "publishDecision": "approved", - "holdReason": null, - "reviewedBy": "SOURAV DAS", - "reviewedAt": "2026-11-15", - "reviewClass": "per-file-maintainer-accepted-native-two-registration", - "humanApprovalPacketSHA256": "c3c5e06d05771cf28f823e1dee31a9e7e3765d2f84038823aaadc505ee8290f5", - "publicationBasis": "you can register these two as well", - "provenanceTemplateId": "flux_redux_multi_reference" + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", + "provenanceTemplateId": "glasshouse_rain" }, { - "creatorOrRightsholder": "MoDiff project maintainers", - "creationMethod": "Project-authored redacted technical/review records or versioned declarations for two maintainer-accepted native replacements", - "sourceUrl": null, - "sourceRevision": null, - "sourceLicense": "Apache-2.0 project-authored metadata; media and model terms remain separate", - "modelTerms": [], + "path": "template-gallery/reviews/glasshouse_rain.retained-template-provenance.json", + "sha256": "sha256:bytes:fdd2f0c10865bfc619852978699d6ab58346d8a4d435b6ad24b706bf2aad4b88", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b", + "sourceRevision": "stabilityai/stable-diffusion-xl-base-1.0@462165984030d82259a11f4367a4eed129e94a7b", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "CreativeML Open RAIL++-M. https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b" + ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], - "requiredAttribution": [], + "requiredAttribution": [ + "stabilityai/stable-diffusion-xl-base-1.0@462165984030d82259a11f4367a4eed129e94a7b https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b" + ], "assetLicense": "Apache-2.0", - "path": "template-gallery/reviews/flux_redux_multi_reference.reviewed-provenance.json", - "sha256": "sha256:bytes:dd1ea7815bc1bc51589ef774cc1f412b3f8bc2f16a7204a8efe56469913d8179", - "publishDecision": "approved", - "holdReason": null, - "reviewedBy": "SOURAV DAS", - "reviewedAt": "2026-11-15", - "reviewClass": "per-file-maintainer-accepted-native-two-registration", - "humanApprovalPacketSHA256": "c3c5e06d05771cf28f823e1dee31a9e7e3765d2f84038823aaadc505ee8290f5", - "publicationBasis": "you can register these two as well", - "provenanceTemplateId": "flux_redux_multi_reference" + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", + "provenanceTemplateId": "glasshouse_rain" }, { - "path": "template-gallery/reviews/flux_schnell_text_to_image.quality-review.json", - "sha256": "sha256:bytes:5eeda44bb0b251f27d30973ad62659d2d247f1ab620eb4b48af154385958530e", + "path": "template-gallery/reviews/high_quality.quality-review.json", + "sha256": "sha256:bytes:859a90999ac580d2dfbf45a39d26c475e2af362a6e5a95d72c6ff05626fca54c", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers", - "creationMethod": "MoDiff-authored technical provenance, Gallery manifest or quality review for the explicitly approved retained native Linux FLUX.1 Schnell image", + "creationMethod": "MoDiff-authored technical provenance, Gallery manifest or quality review for the explicitly approved native Qwen bakery image", "sourceUrl": null, "sourceRevision": null, "sourceLicense": "Apache-2.0 project-authored metadata; generated-media terms remain in their exact per-file record", @@ -13539,17 +14736,17 @@ "assetLicense": "Apache-2.0", "reviewedBy": "SOURAV DAS", "reviewedAt": "2026-11-10", - "reviewClass": "per-file-human-approved-retained-schnell-limited-image-registration", - "provenanceTemplateId": "flux_schnell_text_to_image", - "humanApprovalPacketSHA256": "488dc05971842cc9ed2b31c5995de204015d8b6a975ebc917329dfe3eac71d2c" + "reviewClass": "per-file-human-approved-qwen-native-image-registration", + "provenanceTemplateId": "high_quality", + "humanApprovalPacketSHA256": "dcea9bcff1de179dad3357926933fe869b99c063cee0f4dc1764833e3cf3ea53" }, { - "path": "template-gallery/reviews/flux_schnell_text_to_image.reviewed-provenance.json", - "sha256": "sha256:bytes:ccf1ec3ab127ce8c01008df4a8a323bac0548e83679281d58c7d77a964ae07a9", + "path": "template-gallery/reviews/high_quality.reviewed-provenance.json", + "sha256": "sha256:bytes:082cd7fc2b3345ff6bf881df607e19dc9e175081e2f029cf01f2abdafcbc17d4", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers", - "creationMethod": "MoDiff-authored technical provenance, Gallery manifest or quality review for the explicitly approved retained native Linux FLUX.1 Schnell image", + "creationMethod": "MoDiff-authored technical provenance, Gallery manifest or quality review for the explicitly approved native Qwen bakery image", "sourceUrl": null, "sourceRevision": null, "sourceLicense": "Apache-2.0 project-authored metadata; generated-media terms remain in their exact per-file record", @@ -13561,265 +14758,229 @@ "assetLicense": "Apache-2.0", "reviewedBy": "SOURAV DAS", "reviewedAt": "2026-11-10", - "reviewClass": "per-file-human-approved-retained-schnell-limited-image-registration", - "provenanceTemplateId": "flux_schnell_text_to_image", - "humanApprovalPacketSHA256": "488dc05971842cc9ed2b31c5995de204015d8b6a975ebc917329dfe3eac71d2c" + "reviewClass": "per-file-human-approved-qwen-native-image-registration", + "provenanceTemplateId": "high_quality", + "humanApprovalPacketSHA256": "dcea9bcff1de179dad3357926933fe869b99c063cee0f4dc1764833e3cf3ea53" }, { - "path": "template-gallery/reviews/forest_ferns.original-provenance.json", - "sha256": "sha256:bytes:9f3dbdc8c7c6c2bbd65792b2d1b958cc21e1aeb44489af772f6e1d8e14b1932b", + "path": "template-gallery/reviews/hunyuan_dit_coastal_lighthouse.original-provenance.json", + "sha256": "sha256:bytes:cc5c37061625ef1e2bebb027601e368286272e22d4c68cbe63ea690cfe5871ae", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/zai-org/GLM-Image/tree/2c433cc0cbc293bde2ac8ca9624f279b5d23fcf4", - "sourceRevision": "zai-org/GLM-Image@2c433cc0cbc293bde2ac8ca9624f279b5d23fcf4", + "sourceUrl": "https://huggingface.co/Tencent-Hunyuan/HunyuanDiT-v1.2-Diffusers-Distilled/tree/ba991d1546d8c50936c4c16398ed0a87b9b99fb1", + "sourceRevision": "Tencent-Hunyuan/HunyuanDiT-v1.2-Diffusers-Distilled@ba991d1546d8c50936c4c16398ed0a87b9b99fb1", "sourceLicense": "MoDiff-authored Gallery metadata", - "modelTerms": ["mit. https://huggingface.co/zai-org/GLM-Image/tree/2c433cc0cbc293bde2ac8ca9624f279b5d23fcf4"], + "modelTerms": [ + "Publisher model terms at https://huggingface.co/Tencent-Hunyuan/HunyuanDiT-v1.2-Diffusers-Distilled/tree/ba991d1546d8c50936c4c16398ed0a87b9b99fb1" + ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "zai-org/GLM-Image@2c433cc0cbc293bde2ac8ca9624f279b5d23fcf4 https://huggingface.co/zai-org/GLM-Image/tree/2c433cc0cbc293bde2ac8ca9624f279b5d23fcf4" + "Tencent-Hunyuan/HunyuanDiT-v1.2-Diffusers-Distilled@ba991d1546d8c50936c4c16398ed0a87b9b99fb1 https://huggingface.co/Tencent-Hunyuan/HunyuanDiT-v1.2-Diffusers-Distilled/tree/ba991d1546d8c50936c4c16398ed0a87b9b99fb1" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", - "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", - "provenanceTemplateId": "forest_ferns" + "humanApprovalPacketSHA256": "c2df9edb92f8ff905b6c9a138a285e67c621f3d2dfa3232f859aaf963b725aca", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "hunyuan_dit_coastal_lighthouse" }, { - "path": "template-gallery/reviews/forest_ferns.original-review.json", - "sha256": "sha256:bytes:c736e68088c4a94fcec6574242c08e840dea34559d3802d63de6f2114f514f1c", + "path": "template-gallery/reviews/hunyuan_dit_coastal_lighthouse.original-review.json", + "sha256": "sha256:bytes:ce4389778a7088b592491f31f36d88e5ea83a438d937a9b4c4cb61facc98c0ee", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/zai-org/GLM-Image/tree/2c433cc0cbc293bde2ac8ca9624f279b5d23fcf4", - "sourceRevision": "zai-org/GLM-Image@2c433cc0cbc293bde2ac8ca9624f279b5d23fcf4", + "sourceUrl": "https://huggingface.co/Tencent-Hunyuan/HunyuanDiT-v1.2-Diffusers-Distilled/tree/ba991d1546d8c50936c4c16398ed0a87b9b99fb1", + "sourceRevision": "Tencent-Hunyuan/HunyuanDiT-v1.2-Diffusers-Distilled@ba991d1546d8c50936c4c16398ed0a87b9b99fb1", "sourceLicense": "MoDiff-authored Gallery metadata", - "modelTerms": ["mit. https://huggingface.co/zai-org/GLM-Image/tree/2c433cc0cbc293bde2ac8ca9624f279b5d23fcf4"], + "modelTerms": [ + "Publisher model terms at https://huggingface.co/Tencent-Hunyuan/HunyuanDiT-v1.2-Diffusers-Distilled/tree/ba991d1546d8c50936c4c16398ed0a87b9b99fb1" + ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "zai-org/GLM-Image@2c433cc0cbc293bde2ac8ca9624f279b5d23fcf4 https://huggingface.co/zai-org/GLM-Image/tree/2c433cc0cbc293bde2ac8ca9624f279b5d23fcf4" + "Tencent-Hunyuan/HunyuanDiT-v1.2-Diffusers-Distilled@ba991d1546d8c50936c4c16398ed0a87b9b99fb1 https://huggingface.co/Tencent-Hunyuan/HunyuanDiT-v1.2-Diffusers-Distilled/tree/ba991d1546d8c50936c4c16398ed0a87b9b99fb1" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", - "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", - "provenanceTemplateId": "forest_ferns" + "humanApprovalPacketSHA256": "c2df9edb92f8ff905b6c9a138a285e67c621f3d2dfa3232f859aaf963b725aca", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "hunyuan_dit_coastal_lighthouse" }, { - "path": "template-gallery/reviews/forest_ferns.quality-review.json", - "sha256": "sha256:bytes:8d789319fd8de535f0e638a1fecdc2e65db93e1ff95104c7c63939437994529b", + "path": "template-gallery/reviews/hunyuan_dit_coastal_lighthouse.quality-review.json", + "sha256": "sha256:bytes:1954559ecbd9de2986fffc2134ea20628a05ada4a85bf2db8a40137a02bedee6", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/zai-org/GLM-Image/tree/2c433cc0cbc293bde2ac8ca9624f279b5d23fcf4", - "sourceRevision": "zai-org/GLM-Image@2c433cc0cbc293bde2ac8ca9624f279b5d23fcf4", + "sourceUrl": "https://huggingface.co/Tencent-Hunyuan/HunyuanDiT-v1.2-Diffusers-Distilled/tree/ba991d1546d8c50936c4c16398ed0a87b9b99fb1", + "sourceRevision": "Tencent-Hunyuan/HunyuanDiT-v1.2-Diffusers-Distilled@ba991d1546d8c50936c4c16398ed0a87b9b99fb1", "sourceLicense": "MoDiff-authored Gallery metadata", - "modelTerms": ["mit. https://huggingface.co/zai-org/GLM-Image/tree/2c433cc0cbc293bde2ac8ca9624f279b5d23fcf4"], + "modelTerms": [ + "Publisher model terms at https://huggingface.co/Tencent-Hunyuan/HunyuanDiT-v1.2-Diffusers-Distilled/tree/ba991d1546d8c50936c4c16398ed0a87b9b99fb1" + ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "zai-org/GLM-Image@2c433cc0cbc293bde2ac8ca9624f279b5d23fcf4 https://huggingface.co/zai-org/GLM-Image/tree/2c433cc0cbc293bde2ac8ca9624f279b5d23fcf4" + "Tencent-Hunyuan/HunyuanDiT-v1.2-Diffusers-Distilled@ba991d1546d8c50936c4c16398ed0a87b9b99fb1 https://huggingface.co/Tencent-Hunyuan/HunyuanDiT-v1.2-Diffusers-Distilled/tree/ba991d1546d8c50936c4c16398ed0a87b9b99fb1" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", - "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", - "provenanceTemplateId": "forest_ferns" + "humanApprovalPacketSHA256": "c2df9edb92f8ff905b6c9a138a285e67c621f3d2dfa3232f859aaf963b725aca", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "hunyuan_dit_coastal_lighthouse" }, { - "path": "template-gallery/reviews/forest_ferns.retained-template-provenance.json", - "sha256": "sha256:bytes:8776590ac1201f5606eab7521d2ef8283f85cc48038acafdb3cbe60a11f91a82", + "path": "template-gallery/reviews/hunyuan_dit_coastal_lighthouse.retained-template-provenance.json", + "sha256": "sha256:bytes:abcd8ff508cca890cb7be179f5e85d5d0f6eed116e47ec2faad168a174d0d9e0", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/zai-org/GLM-Image/tree/2c433cc0cbc293bde2ac8ca9624f279b5d23fcf4", - "sourceRevision": "zai-org/GLM-Image@2c433cc0cbc293bde2ac8ca9624f279b5d23fcf4", + "sourceUrl": "https://huggingface.co/Tencent-Hunyuan/HunyuanDiT-v1.2-Diffusers-Distilled/tree/ba991d1546d8c50936c4c16398ed0a87b9b99fb1", + "sourceRevision": "Tencent-Hunyuan/HunyuanDiT-v1.2-Diffusers-Distilled@ba991d1546d8c50936c4c16398ed0a87b9b99fb1", "sourceLicense": "MoDiff-authored Gallery metadata", - "modelTerms": ["mit. https://huggingface.co/zai-org/GLM-Image/tree/2c433cc0cbc293bde2ac8ca9624f279b5d23fcf4"], + "modelTerms": [ + "Publisher model terms at https://huggingface.co/Tencent-Hunyuan/HunyuanDiT-v1.2-Diffusers-Distilled/tree/ba991d1546d8c50936c4c16398ed0a87b9b99fb1" + ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "zai-org/GLM-Image@2c433cc0cbc293bde2ac8ca9624f279b5d23fcf4 https://huggingface.co/zai-org/GLM-Image/tree/2c433cc0cbc293bde2ac8ca9624f279b5d23fcf4" + "Tencent-Hunyuan/HunyuanDiT-v1.2-Diffusers-Distilled@ba991d1546d8c50936c4c16398ed0a87b9b99fb1 https://huggingface.co/Tencent-Hunyuan/HunyuanDiT-v1.2-Diffusers-Distilled/tree/ba991d1546d8c50936c4c16398ed0a87b9b99fb1" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", - "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", - "provenanceTemplateId": "forest_ferns" + "humanApprovalPacketSHA256": "c2df9edb92f8ff905b6c9a138a285e67c621f3d2dfa3232f859aaf963b725aca", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "hunyuan_dit_coastal_lighthouse" }, { - "path": "template-gallery/reviews/glasshouse_rain.original-provenance.json", - "sha256": "sha256:bytes:0dad28d294233db5c72915ddb9559f8eb2e4fba77cd8ebd8510a254ae0434083", + "path": "template-gallery/reviews/hunyuan_dit_green_glass_study.original-provenance.json", + "sha256": "sha256:bytes:293d3b5128a5dec99d0371bc1402731b1264231127d73a9c85759048daee7bdb", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b", - "sourceRevision": "stabilityai/stable-diffusion-xl-base-1.0@462165984030d82259a11f4367a4eed129e94a7b", + "sourceUrl": "https://huggingface.co/Tencent-Hunyuan/HunyuanDiT-v1.2-Diffusers-Distilled/tree/ba991d1546d8c50936c4c16398ed0a87b9b99fb1", + "sourceRevision": "Tencent-Hunyuan/HunyuanDiT-v1.2-Diffusers-Distilled@ba991d1546d8c50936c4c16398ed0a87b9b99fb1", "sourceLicense": "MoDiff-authored Gallery metadata", "modelTerms": [ - "CreativeML Open RAIL++-M. https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b" + "Publisher model terms at https://huggingface.co/Tencent-Hunyuan/HunyuanDiT-v1.2-Diffusers-Distilled/tree/ba991d1546d8c50936c4c16398ed0a87b9b99fb1" ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "stabilityai/stable-diffusion-xl-base-1.0@462165984030d82259a11f4367a4eed129e94a7b https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b" + "Tencent-Hunyuan/HunyuanDiT-v1.2-Diffusers-Distilled@ba991d1546d8c50936c4c16398ed0a87b9b99fb1 https://huggingface.co/Tencent-Hunyuan/HunyuanDiT-v1.2-Diffusers-Distilled/tree/ba991d1546d8c50936c4c16398ed0a87b9b99fb1" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", - "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", - "provenanceTemplateId": "glasshouse_rain" + "humanApprovalPacketSHA256": "3968c7cbe37a94789a9f839d8e83a9e0f102629b797d5f7baacf0304a8d18153", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "hunyuan_dit_green_glass_study" }, { - "path": "template-gallery/reviews/glasshouse_rain.original-review.json", - "sha256": "sha256:bytes:41b3e9a683bb5af2655b9e2874464a97a79eecdf987b93672f1ea3d142bed370", + "path": "template-gallery/reviews/hunyuan_dit_green_glass_study.original-review.json", + "sha256": "sha256:bytes:40f0a76223a6da7fd9be445ca991c684ca1efdd45ef86e695b1f27d493b3a1f0", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b", - "sourceRevision": "stabilityai/stable-diffusion-xl-base-1.0@462165984030d82259a11f4367a4eed129e94a7b", + "sourceUrl": "https://huggingface.co/Tencent-Hunyuan/HunyuanDiT-v1.2-Diffusers-Distilled/tree/ba991d1546d8c50936c4c16398ed0a87b9b99fb1", + "sourceRevision": "Tencent-Hunyuan/HunyuanDiT-v1.2-Diffusers-Distilled@ba991d1546d8c50936c4c16398ed0a87b9b99fb1", "sourceLicense": "MoDiff-authored Gallery metadata", "modelTerms": [ - "CreativeML Open RAIL++-M. https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b" + "Publisher model terms at https://huggingface.co/Tencent-Hunyuan/HunyuanDiT-v1.2-Diffusers-Distilled/tree/ba991d1546d8c50936c4c16398ed0a87b9b99fb1" ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "stabilityai/stable-diffusion-xl-base-1.0@462165984030d82259a11f4367a4eed129e94a7b https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b" + "Tencent-Hunyuan/HunyuanDiT-v1.2-Diffusers-Distilled@ba991d1546d8c50936c4c16398ed0a87b9b99fb1 https://huggingface.co/Tencent-Hunyuan/HunyuanDiT-v1.2-Diffusers-Distilled/tree/ba991d1546d8c50936c4c16398ed0a87b9b99fb1" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", - "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", - "provenanceTemplateId": "glasshouse_rain" + "humanApprovalPacketSHA256": "3968c7cbe37a94789a9f839d8e83a9e0f102629b797d5f7baacf0304a8d18153", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "hunyuan_dit_green_glass_study" }, { - "path": "template-gallery/reviews/glasshouse_rain.quality-review.json", - "sha256": "sha256:bytes:da3cb94631be949ba21fcdf842135099dbc6992bfbf37cc9b30710d1fb997ca4", + "path": "template-gallery/reviews/hunyuan_dit_green_glass_study.quality-review.json", + "sha256": "sha256:bytes:c0da5754ab4ed0b3106fc0ac394cc83d47ae24431669a6e50014dbe5ac2dbdc3", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b", - "sourceRevision": "stabilityai/stable-diffusion-xl-base-1.0@462165984030d82259a11f4367a4eed129e94a7b", + "sourceUrl": "https://huggingface.co/Tencent-Hunyuan/HunyuanDiT-v1.2-Diffusers-Distilled/tree/ba991d1546d8c50936c4c16398ed0a87b9b99fb1", + "sourceRevision": "Tencent-Hunyuan/HunyuanDiT-v1.2-Diffusers-Distilled@ba991d1546d8c50936c4c16398ed0a87b9b99fb1", "sourceLicense": "MoDiff-authored Gallery metadata", "modelTerms": [ - "CreativeML Open RAIL++-M. https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b" + "Publisher model terms at https://huggingface.co/Tencent-Hunyuan/HunyuanDiT-v1.2-Diffusers-Distilled/tree/ba991d1546d8c50936c4c16398ed0a87b9b99fb1" ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "stabilityai/stable-diffusion-xl-base-1.0@462165984030d82259a11f4367a4eed129e94a7b https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b" + "Tencent-Hunyuan/HunyuanDiT-v1.2-Diffusers-Distilled@ba991d1546d8c50936c4c16398ed0a87b9b99fb1 https://huggingface.co/Tencent-Hunyuan/HunyuanDiT-v1.2-Diffusers-Distilled/tree/ba991d1546d8c50936c4c16398ed0a87b9b99fb1" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", - "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", - "provenanceTemplateId": "glasshouse_rain" + "humanApprovalPacketSHA256": "3968c7cbe37a94789a9f839d8e83a9e0f102629b797d5f7baacf0304a8d18153", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "hunyuan_dit_green_glass_study" }, { - "path": "template-gallery/reviews/glasshouse_rain.retained-template-provenance.json", - "sha256": "sha256:bytes:fdd2f0c10865bfc619852978699d6ab58346d8a4d435b6ad24b706bf2aad4b88", + "path": "template-gallery/reviews/hunyuan_dit_green_glass_study.retained-template-provenance.json", + "sha256": "sha256:bytes:db66437531e3bdeb92c4d409db6dcea15a834b1c2e5a05a4d93b5442db6568cc", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b", - "sourceRevision": "stabilityai/stable-diffusion-xl-base-1.0@462165984030d82259a11f4367a4eed129e94a7b", + "sourceUrl": "https://huggingface.co/Tencent-Hunyuan/HunyuanDiT-v1.2-Diffusers-Distilled/tree/ba991d1546d8c50936c4c16398ed0a87b9b99fb1", + "sourceRevision": "Tencent-Hunyuan/HunyuanDiT-v1.2-Diffusers-Distilled@ba991d1546d8c50936c4c16398ed0a87b9b99fb1", "sourceLicense": "MoDiff-authored Gallery metadata", "modelTerms": [ - "CreativeML Open RAIL++-M. https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b" + "Publisher model terms at https://huggingface.co/Tencent-Hunyuan/HunyuanDiT-v1.2-Diffusers-Distilled/tree/ba991d1546d8c50936c4c16398ed0a87b9b99fb1" ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "stabilityai/stable-diffusion-xl-base-1.0@462165984030d82259a11f4367a4eed129e94a7b https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b" + "Tencent-Hunyuan/HunyuanDiT-v1.2-Diffusers-Distilled@ba991d1546d8c50936c4c16398ed0a87b9b99fb1 https://huggingface.co/Tencent-Hunyuan/HunyuanDiT-v1.2-Diffusers-Distilled/tree/ba991d1546d8c50936c4c16398ed0a87b9b99fb1" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", - "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", - "provenanceTemplateId": "glasshouse_rain" - }, - { - "path": "template-gallery/reviews/high_quality.quality-review.json", - "sha256": "sha256:bytes:859a90999ac580d2dfbf45a39d26c475e2af362a6e5a95d72c6ff05626fca54c", - "publishDecision": "approved", - "holdReason": null, - "creatorOrRightsholder": "MoDiff project maintainers", - "creationMethod": "MoDiff-authored technical provenance, Gallery manifest or quality review for the explicitly approved native Qwen bakery image", - "sourceUrl": null, - "sourceRevision": null, - "sourceLicense": "Apache-2.0 project-authored metadata; generated-media terms remain in their exact per-file record", - "modelTerms": [], - "aiGenerated": false, - "humanLikenessConsent": "not-applicable", - "marks": [], - "requiredAttribution": [], - "assetLicense": "Apache-2.0", - "reviewedBy": "SOURAV DAS", - "reviewedAt": "2026-11-10", - "reviewClass": "per-file-human-approved-qwen-native-image-registration", - "provenanceTemplateId": "high_quality", - "humanApprovalPacketSHA256": "dcea9bcff1de179dad3357926933fe869b99c063cee0f4dc1764833e3cf3ea53" - }, - { - "path": "template-gallery/reviews/high_quality.reviewed-provenance.json", - "sha256": "sha256:bytes:082cd7fc2b3345ff6bf881df607e19dc9e175081e2f029cf01f2abdafcbc17d4", - "publishDecision": "approved", - "holdReason": null, - "creatorOrRightsholder": "MoDiff project maintainers", - "creationMethod": "MoDiff-authored technical provenance, Gallery manifest or quality review for the explicitly approved native Qwen bakery image", - "sourceUrl": null, - "sourceRevision": null, - "sourceLicense": "Apache-2.0 project-authored metadata; generated-media terms remain in their exact per-file record", - "modelTerms": [], - "aiGenerated": false, - "humanLikenessConsent": "not-applicable", - "marks": [], - "requiredAttribution": [], - "assetLicense": "Apache-2.0", - "reviewedBy": "SOURAV DAS", - "reviewedAt": "2026-11-10", - "reviewClass": "per-file-human-approved-qwen-native-image-registration", - "provenanceTemplateId": "high_quality", - "humanApprovalPacketSHA256": "dcea9bcff1de179dad3357926933fe869b99c063cee0f4dc1764833e3cf3ea53" + "humanApprovalPacketSHA256": "3968c7cbe37a94789a9f839d8e83a9e0f102629b797d5f7baacf0304a8d18153", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "hunyuan_dit_green_glass_study" }, { - "path": "template-gallery/reviews/hunyuan_dit_coastal_lighthouse.original-provenance.json", - "sha256": "sha256:bytes:cc5c37061625ef1e2bebb027601e368286272e22d4c68cbe63ea690cfe5871ae", + "path": "template-gallery/reviews/hunyuan_pag_burgundy_knight.original-provenance.json", + "sha256": "sha256:bytes:c2c30ee01a229dc1a2eafbc42f8e22d19626533c158ebeb4211ddc64f1ac9a9c", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", @@ -13842,11 +15003,11 @@ "reviewClass": "per-file-maintainer-accepted-retained-registration", "humanApprovalPacketSHA256": "c2df9edb92f8ff905b6c9a138a285e67c621f3d2dfa3232f859aaf963b725aca", "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", - "provenanceTemplateId": "hunyuan_dit_coastal_lighthouse" + "provenanceTemplateId": "hunyuan_pag_burgundy_knight" }, { - "path": "template-gallery/reviews/hunyuan_dit_coastal_lighthouse.original-review.json", - "sha256": "sha256:bytes:ce4389778a7088b592491f31f36d88e5ea83a438d937a9b4c4cb61facc98c0ee", + "path": "template-gallery/reviews/hunyuan_pag_burgundy_knight.original-review.json", + "sha256": "sha256:bytes:b472ba6d082486f25d5c17cf3da66d6d376e9add58924f6d0acbee2e21552588", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", @@ -13869,11 +15030,11 @@ "reviewClass": "per-file-maintainer-accepted-retained-registration", "humanApprovalPacketSHA256": "c2df9edb92f8ff905b6c9a138a285e67c621f3d2dfa3232f859aaf963b725aca", "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", - "provenanceTemplateId": "hunyuan_dit_coastal_lighthouse" + "provenanceTemplateId": "hunyuan_pag_burgundy_knight" }, { - "path": "template-gallery/reviews/hunyuan_dit_coastal_lighthouse.quality-review.json", - "sha256": "sha256:bytes:1954559ecbd9de2986fffc2134ea20628a05ada4a85bf2db8a40137a02bedee6", + "path": "template-gallery/reviews/hunyuan_pag_burgundy_knight.quality-review.json", + "sha256": "sha256:bytes:f771127b2e2c8e93148f34e1ab5901488a5c7129f3e8608dcf5a9951f3e12645", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", @@ -13896,11 +15057,11 @@ "reviewClass": "per-file-maintainer-accepted-retained-registration", "humanApprovalPacketSHA256": "c2df9edb92f8ff905b6c9a138a285e67c621f3d2dfa3232f859aaf963b725aca", "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", - "provenanceTemplateId": "hunyuan_dit_coastal_lighthouse" + "provenanceTemplateId": "hunyuan_pag_burgundy_knight" }, { - "path": "template-gallery/reviews/hunyuan_dit_coastal_lighthouse.retained-template-provenance.json", - "sha256": "sha256:bytes:abcd8ff508cca890cb7be179f5e85d5d0f6eed116e47ec2faad168a174d0d9e0", + "path": "template-gallery/reviews/hunyuan_pag_burgundy_knight.retained-template-provenance.json", + "sha256": "sha256:bytes:dbbb8bbab6db6dd38ae97f532ed1a4c865d0a706c64ea02c4dbafa18b4ce1fea", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", @@ -13923,758 +15084,866 @@ "reviewClass": "per-file-maintainer-accepted-retained-registration", "humanApprovalPacketSHA256": "c2df9edb92f8ff905b6c9a138a285e67c621f3d2dfa3232f859aaf963b725aca", "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", - "provenanceTemplateId": "hunyuan_dit_coastal_lighthouse" + "provenanceTemplateId": "hunyuan_pag_burgundy_knight" }, { - "path": "template-gallery/reviews/hunyuan_dit_green_glass_study.original-provenance.json", - "sha256": "sha256:bytes:293d3b5128a5dec99d0371bc1402731b1264231127d73a9c85759048daee7bdb", + "path": "template-gallery/reviews/janus_red_enamel_teapot.original-provenance.json", + "sha256": "sha256:bytes:170501bd8a025aa58341bc17322a6c9f8448be401b7263fdc9c5e9b449d1cb87", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/Tencent-Hunyuan/HunyuanDiT-v1.2-Diffusers-Distilled/tree/ba991d1546d8c50936c4c16398ed0a87b9b99fb1", - "sourceRevision": "Tencent-Hunyuan/HunyuanDiT-v1.2-Diffusers-Distilled@ba991d1546d8c50936c4c16398ed0a87b9b99fb1", + "sourceUrl": "https://huggingface.co/deepseek-community/Janus-Pro-1B/tree/1655280bb75959cc1cb85529a2a8b26e7016072e", + "sourceRevision": "deepseek-community/Janus-Pro-1B@1655280bb75959cc1cb85529a2a8b26e7016072e", "sourceLicense": "MoDiff-authored Gallery metadata", - "modelTerms": [ - "Publisher model terms at https://huggingface.co/Tencent-Hunyuan/HunyuanDiT-v1.2-Diffusers-Distilled/tree/ba991d1546d8c50936c4c16398ed0a87b9b99fb1" + "modelTerms": ["https://github.com/deepseek-ai/Janus/blob/main/LICENSE-MODEL"], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "deepseek-community/Janus-Pro-1B@1655280bb75959cc1cb85529a2a8b26e7016072e https://huggingface.co/deepseek-community/Janus-Pro-1B/tree/1655280bb75959cc1cb85529a2a8b26e7016072e" ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", + "provenanceTemplateId": "janus_red_enamel_teapot" + }, + { + "path": "template-gallery/reviews/janus_red_enamel_teapot.original-review.json", + "sha256": "sha256:bytes:05d63ee8fe6f5ef33cb0ea16988861ffbbd99e0f7317b039b01c41a67eb4f5f8", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/deepseek-community/Janus-Pro-1B/tree/1655280bb75959cc1cb85529a2a8b26e7016072e", + "sourceRevision": "deepseek-community/Janus-Pro-1B@1655280bb75959cc1cb85529a2a8b26e7016072e", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": ["https://github.com/deepseek-ai/Janus/blob/main/LICENSE-MODEL"], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "Tencent-Hunyuan/HunyuanDiT-v1.2-Diffusers-Distilled@ba991d1546d8c50936c4c16398ed0a87b9b99fb1 https://huggingface.co/Tencent-Hunyuan/HunyuanDiT-v1.2-Diffusers-Distilled/tree/ba991d1546d8c50936c4c16398ed0a87b9b99fb1" + "deepseek-community/Janus-Pro-1B@1655280bb75959cc1cb85529a2a8b26e7016072e https://huggingface.co/deepseek-community/Janus-Pro-1B/tree/1655280bb75959cc1cb85529a2a8b26e7016072e" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "3968c7cbe37a94789a9f839d8e83a9e0f102629b797d5f7baacf0304a8d18153", - "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", - "provenanceTemplateId": "hunyuan_dit_green_glass_study" + "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", + "provenanceTemplateId": "janus_red_enamel_teapot" }, { - "path": "template-gallery/reviews/hunyuan_dit_green_glass_study.original-review.json", - "sha256": "sha256:bytes:40f0a76223a6da7fd9be445ca991c684ca1efdd45ef86e695b1f27d493b3a1f0", + "path": "template-gallery/reviews/janus_red_enamel_teapot.quality-review.json", + "sha256": "sha256:bytes:b9d911046c3faff978d22cb397ee2a95d23608240d18674dc68fb5b957783f90", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/Tencent-Hunyuan/HunyuanDiT-v1.2-Diffusers-Distilled/tree/ba991d1546d8c50936c4c16398ed0a87b9b99fb1", - "sourceRevision": "Tencent-Hunyuan/HunyuanDiT-v1.2-Diffusers-Distilled@ba991d1546d8c50936c4c16398ed0a87b9b99fb1", + "sourceUrl": "https://huggingface.co/deepseek-community/Janus-Pro-1B/tree/1655280bb75959cc1cb85529a2a8b26e7016072e", + "sourceRevision": "deepseek-community/Janus-Pro-1B@1655280bb75959cc1cb85529a2a8b26e7016072e", "sourceLicense": "MoDiff-authored Gallery metadata", - "modelTerms": [ - "Publisher model terms at https://huggingface.co/Tencent-Hunyuan/HunyuanDiT-v1.2-Diffusers-Distilled/tree/ba991d1546d8c50936c4c16398ed0a87b9b99fb1" + "modelTerms": ["https://github.com/deepseek-ai/Janus/blob/main/LICENSE-MODEL"], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "deepseek-community/Janus-Pro-1B@1655280bb75959cc1cb85529a2a8b26e7016072e https://huggingface.co/deepseek-community/Janus-Pro-1B/tree/1655280bb75959cc1cb85529a2a8b26e7016072e" ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", + "provenanceTemplateId": "janus_red_enamel_teapot" + }, + { + "path": "template-gallery/reviews/janus_red_enamel_teapot.retained-template-provenance.json", + "sha256": "sha256:bytes:7fc41c79f10344c5621f2184f7086b4b33daf929d83e37e099e9c0e3fc16aa2d", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/deepseek-community/Janus-Pro-1B/tree/1655280bb75959cc1cb85529a2a8b26e7016072e", + "sourceRevision": "deepseek-community/Janus-Pro-1B@1655280bb75959cc1cb85529a2a8b26e7016072e", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": ["https://github.com/deepseek-ai/Janus/blob/main/LICENSE-MODEL"], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "Tencent-Hunyuan/HunyuanDiT-v1.2-Diffusers-Distilled@ba991d1546d8c50936c4c16398ed0a87b9b99fb1 https://huggingface.co/Tencent-Hunyuan/HunyuanDiT-v1.2-Diffusers-Distilled/tree/ba991d1546d8c50936c4c16398ed0a87b9b99fb1" + "deepseek-community/Janus-Pro-1B@1655280bb75959cc1cb85529a2a8b26e7016072e https://huggingface.co/deepseek-community/Janus-Pro-1B/tree/1655280bb75959cc1cb85529a2a8b26e7016072e" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "3968c7cbe37a94789a9f839d8e83a9e0f102629b797d5f7baacf0304a8d18153", - "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", - "provenanceTemplateId": "hunyuan_dit_green_glass_study" + "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", + "provenanceTemplateId": "janus_red_enamel_teapot" }, { - "path": "template-gallery/reviews/hunyuan_dit_green_glass_study.quality-review.json", - "sha256": "sha256:bytes:c0da5754ab4ed0b3106fc0ac394cc83d47ae24431669a6e50014dbe5ac2dbdc3", + "path": "template-gallery/reviews/janus_red_triangle_caption.original-provenance.json", + "sha256": "sha256:bytes:3f6648332a0351e6904385e3d670550b1072c8539055ea6d827d3c7d3ee39510", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/Tencent-Hunyuan/HunyuanDiT-v1.2-Diffusers-Distilled/tree/ba991d1546d8c50936c4c16398ed0a87b9b99fb1", - "sourceRevision": "Tencent-Hunyuan/HunyuanDiT-v1.2-Diffusers-Distilled@ba991d1546d8c50936c4c16398ed0a87b9b99fb1", + "sourceUrl": "https://huggingface.co/deepseek-community/Janus-Pro-1B/tree/1655280bb75959cc1cb85529a2a8b26e7016072e", + "sourceRevision": "deepseek-community/Janus-Pro-1B@1655280bb75959cc1cb85529a2a8b26e7016072e", "sourceLicense": "MoDiff-authored Gallery metadata", - "modelTerms": [ - "Publisher model terms at https://huggingface.co/Tencent-Hunyuan/HunyuanDiT-v1.2-Diffusers-Distilled/tree/ba991d1546d8c50936c4c16398ed0a87b9b99fb1" + "modelTerms": ["https://github.com/deepseek-ai/Janus/blob/main/LICENSE-MODEL"], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "deepseek-community/Janus-Pro-1B@1655280bb75959cc1cb85529a2a8b26e7016072e https://huggingface.co/deepseek-community/Janus-Pro-1B/tree/1655280bb75959cc1cb85529a2a8b26e7016072e" ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", + "provenanceTemplateId": "janus_red_triangle_caption" + }, + { + "path": "template-gallery/reviews/janus_red_triangle_caption.original-review.json", + "sha256": "sha256:bytes:f7b4652f53f7840da5338cc9e77215884c500ae59aa26e66fb83c84bb6e1ede8", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/deepseek-community/Janus-Pro-1B/tree/1655280bb75959cc1cb85529a2a8b26e7016072e", + "sourceRevision": "deepseek-community/Janus-Pro-1B@1655280bb75959cc1cb85529a2a8b26e7016072e", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": ["https://github.com/deepseek-ai/Janus/blob/main/LICENSE-MODEL"], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "Tencent-Hunyuan/HunyuanDiT-v1.2-Diffusers-Distilled@ba991d1546d8c50936c4c16398ed0a87b9b99fb1 https://huggingface.co/Tencent-Hunyuan/HunyuanDiT-v1.2-Diffusers-Distilled/tree/ba991d1546d8c50936c4c16398ed0a87b9b99fb1" + "deepseek-community/Janus-Pro-1B@1655280bb75959cc1cb85529a2a8b26e7016072e https://huggingface.co/deepseek-community/Janus-Pro-1B/tree/1655280bb75959cc1cb85529a2a8b26e7016072e" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "3968c7cbe37a94789a9f839d8e83a9e0f102629b797d5f7baacf0304a8d18153", - "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", - "provenanceTemplateId": "hunyuan_dit_green_glass_study" + "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", + "provenanceTemplateId": "janus_red_triangle_caption" }, { - "path": "template-gallery/reviews/hunyuan_dit_green_glass_study.retained-template-provenance.json", - "sha256": "sha256:bytes:db66437531e3bdeb92c4d409db6dcea15a834b1c2e5a05a4d93b5442db6568cc", + "path": "template-gallery/reviews/janus_red_triangle_caption.quality-review.json", + "sha256": "sha256:bytes:03dd22b437f3d94f8789eed26ccf9c0de4fd24a2162e1bab3d1e164441077ef5", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/Tencent-Hunyuan/HunyuanDiT-v1.2-Diffusers-Distilled/tree/ba991d1546d8c50936c4c16398ed0a87b9b99fb1", - "sourceRevision": "Tencent-Hunyuan/HunyuanDiT-v1.2-Diffusers-Distilled@ba991d1546d8c50936c4c16398ed0a87b9b99fb1", + "sourceUrl": "https://huggingface.co/deepseek-community/Janus-Pro-1B/tree/1655280bb75959cc1cb85529a2a8b26e7016072e", + "sourceRevision": "deepseek-community/Janus-Pro-1B@1655280bb75959cc1cb85529a2a8b26e7016072e", "sourceLicense": "MoDiff-authored Gallery metadata", - "modelTerms": [ - "Publisher model terms at https://huggingface.co/Tencent-Hunyuan/HunyuanDiT-v1.2-Diffusers-Distilled/tree/ba991d1546d8c50936c4c16398ed0a87b9b99fb1" + "modelTerms": ["https://github.com/deepseek-ai/Janus/blob/main/LICENSE-MODEL"], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "deepseek-community/Janus-Pro-1B@1655280bb75959cc1cb85529a2a8b26e7016072e https://huggingface.co/deepseek-community/Janus-Pro-1B/tree/1655280bb75959cc1cb85529a2a8b26e7016072e" ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", + "provenanceTemplateId": "janus_red_triangle_caption" + }, + { + "path": "template-gallery/reviews/janus_red_triangle_caption.retained-template-provenance.json", + "sha256": "sha256:bytes:0e5cecab2d1a8c81c1b36c4e3b2fcd0799b327f94a61d9f4c55fac0ce1f16a9b", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/deepseek-community/Janus-Pro-1B/tree/1655280bb75959cc1cb85529a2a8b26e7016072e", + "sourceRevision": "deepseek-community/Janus-Pro-1B@1655280bb75959cc1cb85529a2a8b26e7016072e", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": ["https://github.com/deepseek-ai/Janus/blob/main/LICENSE-MODEL"], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "Tencent-Hunyuan/HunyuanDiT-v1.2-Diffusers-Distilled@ba991d1546d8c50936c4c16398ed0a87b9b99fb1 https://huggingface.co/Tencent-Hunyuan/HunyuanDiT-v1.2-Diffusers-Distilled/tree/ba991d1546d8c50936c4c16398ed0a87b9b99fb1" + "deepseek-community/Janus-Pro-1B@1655280bb75959cc1cb85529a2a8b26e7016072e https://huggingface.co/deepseek-community/Janus-Pro-1B/tree/1655280bb75959cc1cb85529a2a8b26e7016072e" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "3968c7cbe37a94789a9f839d8e83a9e0f102629b797d5f7baacf0304a8d18153", - "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", - "provenanceTemplateId": "hunyuan_dit_green_glass_study" + "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", + "provenanceTemplateId": "janus_red_triangle_caption" }, { - "path": "template-gallery/reviews/hunyuan_pag_burgundy_knight.original-provenance.json", - "sha256": "sha256:bytes:c2c30ee01a229dc1a2eafbc42f8e22d19626533c158ebeb4211ddc64f1ac9a9c", + "path": "template-gallery/reviews/janus_reykjavik_travel_note.original-provenance.json", + "sha256": "sha256:bytes:e691c32bc7b7eb4bd1bf7feae5773671d7e083d79e5bc9426ed5e768bc78d899", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/Tencent-Hunyuan/HunyuanDiT-v1.2-Diffusers-Distilled/tree/ba991d1546d8c50936c4c16398ed0a87b9b99fb1", - "sourceRevision": "Tencent-Hunyuan/HunyuanDiT-v1.2-Diffusers-Distilled@ba991d1546d8c50936c4c16398ed0a87b9b99fb1", + "sourceUrl": "https://huggingface.co/deepseek-community/Janus-Pro-1B/tree/1655280bb75959cc1cb85529a2a8b26e7016072e", + "sourceRevision": "deepseek-community/Janus-Pro-1B@1655280bb75959cc1cb85529a2a8b26e7016072e", "sourceLicense": "MoDiff-authored Gallery metadata", - "modelTerms": [ - "Publisher model terms at https://huggingface.co/Tencent-Hunyuan/HunyuanDiT-v1.2-Diffusers-Distilled/tree/ba991d1546d8c50936c4c16398ed0a87b9b99fb1" - ], + "modelTerms": ["https://github.com/deepseek-ai/Janus/blob/main/LICENSE-MODEL"], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "Tencent-Hunyuan/HunyuanDiT-v1.2-Diffusers-Distilled@ba991d1546d8c50936c4c16398ed0a87b9b99fb1 https://huggingface.co/Tencent-Hunyuan/HunyuanDiT-v1.2-Diffusers-Distilled/tree/ba991d1546d8c50936c4c16398ed0a87b9b99fb1" + "deepseek-community/Janus-Pro-1B@1655280bb75959cc1cb85529a2a8b26e7016072e https://huggingface.co/deepseek-community/Janus-Pro-1B/tree/1655280bb75959cc1cb85529a2a8b26e7016072e" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "c2df9edb92f8ff905b6c9a138a285e67c621f3d2dfa3232f859aaf963b725aca", - "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", - "provenanceTemplateId": "hunyuan_pag_burgundy_knight" + "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", + "provenanceTemplateId": "janus_reykjavik_travel_note" }, { - "path": "template-gallery/reviews/hunyuan_pag_burgundy_knight.original-review.json", - "sha256": "sha256:bytes:b472ba6d082486f25d5c17cf3da66d6d376e9add58924f6d0acbee2e21552588", + "path": "template-gallery/reviews/janus_reykjavik_travel_note.original-review.json", + "sha256": "sha256:bytes:85c17c8b45a8df155a69a5de0e983b32ef5d9cc917cade0115bae566c861b088", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/Tencent-Hunyuan/HunyuanDiT-v1.2-Diffusers-Distilled/tree/ba991d1546d8c50936c4c16398ed0a87b9b99fb1", - "sourceRevision": "Tencent-Hunyuan/HunyuanDiT-v1.2-Diffusers-Distilled@ba991d1546d8c50936c4c16398ed0a87b9b99fb1", + "sourceUrl": "https://huggingface.co/deepseek-community/Janus-Pro-1B/tree/1655280bb75959cc1cb85529a2a8b26e7016072e", + "sourceRevision": "deepseek-community/Janus-Pro-1B@1655280bb75959cc1cb85529a2a8b26e7016072e", "sourceLicense": "MoDiff-authored Gallery metadata", - "modelTerms": [ - "Publisher model terms at https://huggingface.co/Tencent-Hunyuan/HunyuanDiT-v1.2-Diffusers-Distilled/tree/ba991d1546d8c50936c4c16398ed0a87b9b99fb1" - ], + "modelTerms": ["https://github.com/deepseek-ai/Janus/blob/main/LICENSE-MODEL"], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "Tencent-Hunyuan/HunyuanDiT-v1.2-Diffusers-Distilled@ba991d1546d8c50936c4c16398ed0a87b9b99fb1 https://huggingface.co/Tencent-Hunyuan/HunyuanDiT-v1.2-Diffusers-Distilled/tree/ba991d1546d8c50936c4c16398ed0a87b9b99fb1" + "deepseek-community/Janus-Pro-1B@1655280bb75959cc1cb85529a2a8b26e7016072e https://huggingface.co/deepseek-community/Janus-Pro-1B/tree/1655280bb75959cc1cb85529a2a8b26e7016072e" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "c2df9edb92f8ff905b6c9a138a285e67c621f3d2dfa3232f859aaf963b725aca", - "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", - "provenanceTemplateId": "hunyuan_pag_burgundy_knight" + "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", + "provenanceTemplateId": "janus_reykjavik_travel_note" }, { - "path": "template-gallery/reviews/hunyuan_pag_burgundy_knight.quality-review.json", - "sha256": "sha256:bytes:f771127b2e2c8e93148f34e1ab5901488a5c7129f3e8608dcf5a9951f3e12645", + "path": "template-gallery/reviews/janus_reykjavik_travel_note.quality-review.json", + "sha256": "sha256:bytes:08b83eb62ffdf911938d868f1be875cc895f472e9e48936acfaa93bbed96c709", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/Tencent-Hunyuan/HunyuanDiT-v1.2-Diffusers-Distilled/tree/ba991d1546d8c50936c4c16398ed0a87b9b99fb1", - "sourceRevision": "Tencent-Hunyuan/HunyuanDiT-v1.2-Diffusers-Distilled@ba991d1546d8c50936c4c16398ed0a87b9b99fb1", + "sourceUrl": "https://huggingface.co/deepseek-community/Janus-Pro-1B/tree/1655280bb75959cc1cb85529a2a8b26e7016072e", + "sourceRevision": "deepseek-community/Janus-Pro-1B@1655280bb75959cc1cb85529a2a8b26e7016072e", "sourceLicense": "MoDiff-authored Gallery metadata", - "modelTerms": [ - "Publisher model terms at https://huggingface.co/Tencent-Hunyuan/HunyuanDiT-v1.2-Diffusers-Distilled/tree/ba991d1546d8c50936c4c16398ed0a87b9b99fb1" - ], + "modelTerms": ["https://github.com/deepseek-ai/Janus/blob/main/LICENSE-MODEL"], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "Tencent-Hunyuan/HunyuanDiT-v1.2-Diffusers-Distilled@ba991d1546d8c50936c4c16398ed0a87b9b99fb1 https://huggingface.co/Tencent-Hunyuan/HunyuanDiT-v1.2-Diffusers-Distilled/tree/ba991d1546d8c50936c4c16398ed0a87b9b99fb1" + "deepseek-community/Janus-Pro-1B@1655280bb75959cc1cb85529a2a8b26e7016072e https://huggingface.co/deepseek-community/Janus-Pro-1B/tree/1655280bb75959cc1cb85529a2a8b26e7016072e" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "c2df9edb92f8ff905b6c9a138a285e67c621f3d2dfa3232f859aaf963b725aca", - "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", - "provenanceTemplateId": "hunyuan_pag_burgundy_knight" + "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", + "provenanceTemplateId": "janus_reykjavik_travel_note" }, { - "path": "template-gallery/reviews/hunyuan_pag_burgundy_knight.retained-template-provenance.json", - "sha256": "sha256:bytes:dbbb8bbab6db6dd38ae97f532ed1a4c865d0a706c64ea02c4dbafa18b4ce1fea", + "path": "template-gallery/reviews/janus_reykjavik_travel_note.retained-template-provenance.json", + "sha256": "sha256:bytes:70da97c6adaef6d92f70d91e3aa549503dacb307ea94dd3115047cb3de17945b", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/Tencent-Hunyuan/HunyuanDiT-v1.2-Diffusers-Distilled/tree/ba991d1546d8c50936c4c16398ed0a87b9b99fb1", - "sourceRevision": "Tencent-Hunyuan/HunyuanDiT-v1.2-Diffusers-Distilled@ba991d1546d8c50936c4c16398ed0a87b9b99fb1", + "sourceUrl": "https://huggingface.co/deepseek-community/Janus-Pro-1B/tree/1655280bb75959cc1cb85529a2a8b26e7016072e", + "sourceRevision": "deepseek-community/Janus-Pro-1B@1655280bb75959cc1cb85529a2a8b26e7016072e", "sourceLicense": "MoDiff-authored Gallery metadata", - "modelTerms": [ - "Publisher model terms at https://huggingface.co/Tencent-Hunyuan/HunyuanDiT-v1.2-Diffusers-Distilled/tree/ba991d1546d8c50936c4c16398ed0a87b9b99fb1" - ], + "modelTerms": ["https://github.com/deepseek-ai/Janus/blob/main/LICENSE-MODEL"], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "Tencent-Hunyuan/HunyuanDiT-v1.2-Diffusers-Distilled@ba991d1546d8c50936c4c16398ed0a87b9b99fb1 https://huggingface.co/Tencent-Hunyuan/HunyuanDiT-v1.2-Diffusers-Distilled/tree/ba991d1546d8c50936c4c16398ed0a87b9b99fb1" + "deepseek-community/Janus-Pro-1B@1655280bb75959cc1cb85529a2a8b26e7016072e https://huggingface.co/deepseek-community/Janus-Pro-1B/tree/1655280bb75959cc1cb85529a2a8b26e7016072e" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "c2df9edb92f8ff905b6c9a138a285e67c621f3d2dfa3232f859aaf963b725aca", - "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", - "provenanceTemplateId": "hunyuan_pag_burgundy_knight" + "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", + "provenanceTemplateId": "janus_reykjavik_travel_note" }, { - "path": "template-gallery/reviews/janus_red_enamel_teapot.original-provenance.json", - "sha256": "sha256:bytes:170501bd8a025aa58341bc17322a6c9f8448be401b7263fdc9c5e9b449d1cb87", + "path": "template-gallery/reviews/joy_plus_lavender_on_limestone.original-provenance.json", + "sha256": "sha256:bytes:1d38c6f1a9b8c9f496cfb0905e6b4e2c8dd25129110ebf28c86e1070178c1237", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/deepseek-community/Janus-Pro-1B/tree/1655280bb75959cc1cb85529a2a8b26e7016072e", - "sourceRevision": "deepseek-community/Janus-Pro-1B@1655280bb75959cc1cb85529a2a8b26e7016072e", + "sourceUrl": "https://huggingface.co/jdopensource/JoyAI-Image-Edit-Plus-Diffusers/tree/c2686460c7b64d8aa11bc4d0da423fb316b33f9e", + "sourceRevision": "jdopensource/JoyAI-Image-Edit-Plus-Diffusers@c2686460c7b64d8aa11bc4d0da423fb316b33f9e", "sourceLicense": "MoDiff-authored Gallery metadata", - "modelTerms": ["https://github.com/deepseek-ai/Janus/blob/main/LICENSE-MODEL"], + "modelTerms": [ + "Publisher model terms at https://huggingface.co/jdopensource/JoyAI-Image-Edit-Plus-Diffusers/tree/c2686460c7b64d8aa11bc4d0da423fb316b33f9e" + ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "deepseek-community/Janus-Pro-1B@1655280bb75959cc1cb85529a2a8b26e7016072e https://huggingface.co/deepseek-community/Janus-Pro-1B/tree/1655280bb75959cc1cb85529a2a8b26e7016072e" + "jdopensource/JoyAI-Image-Edit-Plus-Diffusers@c2686460c7b64d8aa11bc4d0da423fb316b33f9e https://huggingface.co/jdopensource/JoyAI-Image-Edit-Plus-Diffusers/tree/c2686460c7b64d8aa11bc4d0da423fb316b33f9e" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", - "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", - "provenanceTemplateId": "janus_red_enamel_teapot" + "humanApprovalPacketSHA256": "60b01498a2df5f4e4622cdc2f9a43c83d187820780d2425a19718c13707db501", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "joy_plus_lavender_on_limestone" }, { - "path": "template-gallery/reviews/janus_red_enamel_teapot.original-review.json", - "sha256": "sha256:bytes:05d63ee8fe6f5ef33cb0ea16988861ffbbd99e0f7317b039b01c41a67eb4f5f8", + "path": "template-gallery/reviews/joy_plus_lavender_on_limestone.original-review.json", + "sha256": "sha256:bytes:01efaac50374f321864b496b45ee9d133b3d67a9a30ba61eddf81fd23d7204bb", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/deepseek-community/Janus-Pro-1B/tree/1655280bb75959cc1cb85529a2a8b26e7016072e", - "sourceRevision": "deepseek-community/Janus-Pro-1B@1655280bb75959cc1cb85529a2a8b26e7016072e", + "sourceUrl": "https://huggingface.co/jdopensource/JoyAI-Image-Edit-Plus-Diffusers/tree/c2686460c7b64d8aa11bc4d0da423fb316b33f9e", + "sourceRevision": "jdopensource/JoyAI-Image-Edit-Plus-Diffusers@c2686460c7b64d8aa11bc4d0da423fb316b33f9e", "sourceLicense": "MoDiff-authored Gallery metadata", - "modelTerms": ["https://github.com/deepseek-ai/Janus/blob/main/LICENSE-MODEL"], + "modelTerms": [ + "Publisher model terms at https://huggingface.co/jdopensource/JoyAI-Image-Edit-Plus-Diffusers/tree/c2686460c7b64d8aa11bc4d0da423fb316b33f9e" + ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "deepseek-community/Janus-Pro-1B@1655280bb75959cc1cb85529a2a8b26e7016072e https://huggingface.co/deepseek-community/Janus-Pro-1B/tree/1655280bb75959cc1cb85529a2a8b26e7016072e" + "jdopensource/JoyAI-Image-Edit-Plus-Diffusers@c2686460c7b64d8aa11bc4d0da423fb316b33f9e https://huggingface.co/jdopensource/JoyAI-Image-Edit-Plus-Diffusers/tree/c2686460c7b64d8aa11bc4d0da423fb316b33f9e" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", - "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", - "provenanceTemplateId": "janus_red_enamel_teapot" + "humanApprovalPacketSHA256": "60b01498a2df5f4e4622cdc2f9a43c83d187820780d2425a19718c13707db501", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "joy_plus_lavender_on_limestone" }, { - "path": "template-gallery/reviews/janus_red_enamel_teapot.quality-review.json", - "sha256": "sha256:bytes:b9d911046c3faff978d22cb397ee2a95d23608240d18674dc68fb5b957783f90", + "path": "template-gallery/reviews/joy_plus_lavender_on_limestone.quality-review.json", + "sha256": "sha256:bytes:8bf5fa341804d3de8c849d40c5ac8518f954def1ba5eae8e56da820eb86d148c", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/deepseek-community/Janus-Pro-1B/tree/1655280bb75959cc1cb85529a2a8b26e7016072e", - "sourceRevision": "deepseek-community/Janus-Pro-1B@1655280bb75959cc1cb85529a2a8b26e7016072e", + "sourceUrl": "https://huggingface.co/jdopensource/JoyAI-Image-Edit-Plus-Diffusers/tree/c2686460c7b64d8aa11bc4d0da423fb316b33f9e", + "sourceRevision": "jdopensource/JoyAI-Image-Edit-Plus-Diffusers@c2686460c7b64d8aa11bc4d0da423fb316b33f9e", "sourceLicense": "MoDiff-authored Gallery metadata", - "modelTerms": ["https://github.com/deepseek-ai/Janus/blob/main/LICENSE-MODEL"], + "modelTerms": [ + "Publisher model terms at https://huggingface.co/jdopensource/JoyAI-Image-Edit-Plus-Diffusers/tree/c2686460c7b64d8aa11bc4d0da423fb316b33f9e" + ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "deepseek-community/Janus-Pro-1B@1655280bb75959cc1cb85529a2a8b26e7016072e https://huggingface.co/deepseek-community/Janus-Pro-1B/tree/1655280bb75959cc1cb85529a2a8b26e7016072e" + "jdopensource/JoyAI-Image-Edit-Plus-Diffusers@c2686460c7b64d8aa11bc4d0da423fb316b33f9e https://huggingface.co/jdopensource/JoyAI-Image-Edit-Plus-Diffusers/tree/c2686460c7b64d8aa11bc4d0da423fb316b33f9e" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", - "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", - "provenanceTemplateId": "janus_red_enamel_teapot" + "humanApprovalPacketSHA256": "60b01498a2df5f4e4622cdc2f9a43c83d187820780d2425a19718c13707db501", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "joy_plus_lavender_on_limestone" }, { - "path": "template-gallery/reviews/janus_red_enamel_teapot.retained-template-provenance.json", - "sha256": "sha256:bytes:7fc41c79f10344c5621f2184f7086b4b33daf929d83e37e099e9c0e3fc16aa2d", + "path": "template-gallery/reviews/joy_plus_lavender_on_limestone.retained-template-provenance.json", + "sha256": "sha256:bytes:9d769bc0f109f129a0a74b77d642cd0029204a037d3bb9e0ab17c322b31e4892", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/deepseek-community/Janus-Pro-1B/tree/1655280bb75959cc1cb85529a2a8b26e7016072e", - "sourceRevision": "deepseek-community/Janus-Pro-1B@1655280bb75959cc1cb85529a2a8b26e7016072e", + "sourceUrl": "https://huggingface.co/jdopensource/JoyAI-Image-Edit-Plus-Diffusers/tree/c2686460c7b64d8aa11bc4d0da423fb316b33f9e", + "sourceRevision": "jdopensource/JoyAI-Image-Edit-Plus-Diffusers@c2686460c7b64d8aa11bc4d0da423fb316b33f9e", "sourceLicense": "MoDiff-authored Gallery metadata", - "modelTerms": ["https://github.com/deepseek-ai/Janus/blob/main/LICENSE-MODEL"], + "modelTerms": [ + "Publisher model terms at https://huggingface.co/jdopensource/JoyAI-Image-Edit-Plus-Diffusers/tree/c2686460c7b64d8aa11bc4d0da423fb316b33f9e" + ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "deepseek-community/Janus-Pro-1B@1655280bb75959cc1cb85529a2a8b26e7016072e https://huggingface.co/deepseek-community/Janus-Pro-1B/tree/1655280bb75959cc1cb85529a2a8b26e7016072e" + "jdopensource/JoyAI-Image-Edit-Plus-Diffusers@c2686460c7b64d8aa11bc4d0da423fb316b33f9e https://huggingface.co/jdopensource/JoyAI-Image-Edit-Plus-Diffusers/tree/c2686460c7b64d8aa11bc4d0da423fb316b33f9e" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", - "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", - "provenanceTemplateId": "janus_red_enamel_teapot" + "humanApprovalPacketSHA256": "60b01498a2df5f4e4622cdc2f9a43c83d187820780d2425a19718c13707db501", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "joy_plus_lavender_on_limestone" }, { - "path": "template-gallery/reviews/janus_red_triangle_caption.original-provenance.json", - "sha256": "sha256:bytes:3f6648332a0351e6904385e3d670550b1072c8539055ea6d827d3c7d3ee39510", + "path": "template-gallery/reviews/joy_plus_terracotta_on_limestone.original-provenance.json", + "sha256": "sha256:bytes:fde745107f8dd3d8e87fa149b23617f104a566ee59af33713ca1b3d91b3a3749", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/deepseek-community/Janus-Pro-1B/tree/1655280bb75959cc1cb85529a2a8b26e7016072e", - "sourceRevision": "deepseek-community/Janus-Pro-1B@1655280bb75959cc1cb85529a2a8b26e7016072e", + "sourceUrl": "https://huggingface.co/jdopensource/JoyAI-Image-Edit-Plus-Diffusers/tree/c2686460c7b64d8aa11bc4d0da423fb316b33f9e", + "sourceRevision": "jdopensource/JoyAI-Image-Edit-Plus-Diffusers@c2686460c7b64d8aa11bc4d0da423fb316b33f9e", "sourceLicense": "MoDiff-authored Gallery metadata", - "modelTerms": ["https://github.com/deepseek-ai/Janus/blob/main/LICENSE-MODEL"], + "modelTerms": [ + "Publisher model terms at https://huggingface.co/jdopensource/JoyAI-Image-Edit-Plus-Diffusers/tree/c2686460c7b64d8aa11bc4d0da423fb316b33f9e" + ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "deepseek-community/Janus-Pro-1B@1655280bb75959cc1cb85529a2a8b26e7016072e https://huggingface.co/deepseek-community/Janus-Pro-1B/tree/1655280bb75959cc1cb85529a2a8b26e7016072e" + "jdopensource/JoyAI-Image-Edit-Plus-Diffusers@c2686460c7b64d8aa11bc4d0da423fb316b33f9e https://huggingface.co/jdopensource/JoyAI-Image-Edit-Plus-Diffusers/tree/c2686460c7b64d8aa11bc4d0da423fb316b33f9e" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", - "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", - "provenanceTemplateId": "janus_red_triangle_caption" + "humanApprovalPacketSHA256": "d7e2fd301d16eede3da44cec1811930560ba0d958dfd46d8d0962eb3a22eea63", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "joy_plus_terracotta_on_limestone" }, { - "path": "template-gallery/reviews/janus_red_triangle_caption.original-review.json", - "sha256": "sha256:bytes:f7b4652f53f7840da5338cc9e77215884c500ae59aa26e66fb83c84bb6e1ede8", + "path": "template-gallery/reviews/joy_plus_terracotta_on_limestone.original-review.json", + "sha256": "sha256:bytes:719b8565f2c6e58a4bbd2cdf1298ef95a7a0d08edec6f90c566e87eb6b6353ba", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/deepseek-community/Janus-Pro-1B/tree/1655280bb75959cc1cb85529a2a8b26e7016072e", - "sourceRevision": "deepseek-community/Janus-Pro-1B@1655280bb75959cc1cb85529a2a8b26e7016072e", + "sourceUrl": "https://huggingface.co/jdopensource/JoyAI-Image-Edit-Plus-Diffusers/tree/c2686460c7b64d8aa11bc4d0da423fb316b33f9e", + "sourceRevision": "jdopensource/JoyAI-Image-Edit-Plus-Diffusers@c2686460c7b64d8aa11bc4d0da423fb316b33f9e", "sourceLicense": "MoDiff-authored Gallery metadata", - "modelTerms": ["https://github.com/deepseek-ai/Janus/blob/main/LICENSE-MODEL"], + "modelTerms": [ + "Publisher model terms at https://huggingface.co/jdopensource/JoyAI-Image-Edit-Plus-Diffusers/tree/c2686460c7b64d8aa11bc4d0da423fb316b33f9e" + ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "deepseek-community/Janus-Pro-1B@1655280bb75959cc1cb85529a2a8b26e7016072e https://huggingface.co/deepseek-community/Janus-Pro-1B/tree/1655280bb75959cc1cb85529a2a8b26e7016072e" + "jdopensource/JoyAI-Image-Edit-Plus-Diffusers@c2686460c7b64d8aa11bc4d0da423fb316b33f9e https://huggingface.co/jdopensource/JoyAI-Image-Edit-Plus-Diffusers/tree/c2686460c7b64d8aa11bc4d0da423fb316b33f9e" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", - "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", - "provenanceTemplateId": "janus_red_triangle_caption" + "humanApprovalPacketSHA256": "d7e2fd301d16eede3da44cec1811930560ba0d958dfd46d8d0962eb3a22eea63", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "joy_plus_terracotta_on_limestone" }, { - "path": "template-gallery/reviews/janus_red_triangle_caption.quality-review.json", - "sha256": "sha256:bytes:03dd22b437f3d94f8789eed26ccf9c0de4fd24a2162e1bab3d1e164441077ef5", + "path": "template-gallery/reviews/joy_plus_terracotta_on_limestone.quality-review.json", + "sha256": "sha256:bytes:2bd0293bdf6802fbcb983cf655f09e8a9b452a5ad1438f1269db06c494558347", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/deepseek-community/Janus-Pro-1B/tree/1655280bb75959cc1cb85529a2a8b26e7016072e", - "sourceRevision": "deepseek-community/Janus-Pro-1B@1655280bb75959cc1cb85529a2a8b26e7016072e", + "sourceUrl": "https://huggingface.co/jdopensource/JoyAI-Image-Edit-Plus-Diffusers/tree/c2686460c7b64d8aa11bc4d0da423fb316b33f9e", + "sourceRevision": "jdopensource/JoyAI-Image-Edit-Plus-Diffusers@c2686460c7b64d8aa11bc4d0da423fb316b33f9e", "sourceLicense": "MoDiff-authored Gallery metadata", - "modelTerms": ["https://github.com/deepseek-ai/Janus/blob/main/LICENSE-MODEL"], + "modelTerms": [ + "Publisher model terms at https://huggingface.co/jdopensource/JoyAI-Image-Edit-Plus-Diffusers/tree/c2686460c7b64d8aa11bc4d0da423fb316b33f9e" + ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "deepseek-community/Janus-Pro-1B@1655280bb75959cc1cb85529a2a8b26e7016072e https://huggingface.co/deepseek-community/Janus-Pro-1B/tree/1655280bb75959cc1cb85529a2a8b26e7016072e" + "jdopensource/JoyAI-Image-Edit-Plus-Diffusers@c2686460c7b64d8aa11bc4d0da423fb316b33f9e https://huggingface.co/jdopensource/JoyAI-Image-Edit-Plus-Diffusers/tree/c2686460c7b64d8aa11bc4d0da423fb316b33f9e" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", - "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", - "provenanceTemplateId": "janus_red_triangle_caption" + "humanApprovalPacketSHA256": "d7e2fd301d16eede3da44cec1811930560ba0d958dfd46d8d0962eb3a22eea63", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "joy_plus_terracotta_on_limestone" }, { - "path": "template-gallery/reviews/janus_red_triangle_caption.retained-template-provenance.json", - "sha256": "sha256:bytes:0e5cecab2d1a8c81c1b36c4e3b2fcd0799b327f94a61d9f4c55fac0ce1f16a9b", + "path": "template-gallery/reviews/joy_plus_terracotta_on_limestone.retained-template-provenance.json", + "sha256": "sha256:bytes:646ee4503fc48d2bc5f22df726a697f82799b9152978f5cf6715d94e7c3036cb", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/deepseek-community/Janus-Pro-1B/tree/1655280bb75959cc1cb85529a2a8b26e7016072e", - "sourceRevision": "deepseek-community/Janus-Pro-1B@1655280bb75959cc1cb85529a2a8b26e7016072e", + "sourceUrl": "https://huggingface.co/jdopensource/JoyAI-Image-Edit-Plus-Diffusers/tree/c2686460c7b64d8aa11bc4d0da423fb316b33f9e", + "sourceRevision": "jdopensource/JoyAI-Image-Edit-Plus-Diffusers@c2686460c7b64d8aa11bc4d0da423fb316b33f9e", "sourceLicense": "MoDiff-authored Gallery metadata", - "modelTerms": ["https://github.com/deepseek-ai/Janus/blob/main/LICENSE-MODEL"], + "modelTerms": [ + "Publisher model terms at https://huggingface.co/jdopensource/JoyAI-Image-Edit-Plus-Diffusers/tree/c2686460c7b64d8aa11bc4d0da423fb316b33f9e" + ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "deepseek-community/Janus-Pro-1B@1655280bb75959cc1cb85529a2a8b26e7016072e https://huggingface.co/deepseek-community/Janus-Pro-1B/tree/1655280bb75959cc1cb85529a2a8b26e7016072e" + "jdopensource/JoyAI-Image-Edit-Plus-Diffusers@c2686460c7b64d8aa11bc4d0da423fb316b33f9e https://huggingface.co/jdopensource/JoyAI-Image-Edit-Plus-Diffusers/tree/c2686460c7b64d8aa11bc4d0da423fb316b33f9e" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", - "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", - "provenanceTemplateId": "janus_red_triangle_caption" + "humanApprovalPacketSHA256": "d7e2fd301d16eede3da44cec1811930560ba0d958dfd46d8d0962eb3a22eea63", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "joy_plus_terracotta_on_limestone" }, { - "path": "template-gallery/reviews/janus_reykjavik_travel_note.original-provenance.json", - "sha256": "sha256:bytes:e691c32bc7b7eb4bd1bf7feae5773671d7e083d79e5bc9426ed5e768bc78d899", + "path": "template-gallery/reviews/joyimage_base_cobalt_paper_band.original-provenance.json", + "sha256": "sha256:bytes:e8cbdf5d79e8c91cc1f85575b2a5a29fcd3a1b2b470bd08137514d71b4e157ef", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/deepseek-community/Janus-Pro-1B/tree/1655280bb75959cc1cb85529a2a8b26e7016072e", - "sourceRevision": "deepseek-community/Janus-Pro-1B@1655280bb75959cc1cb85529a2a8b26e7016072e", + "sourceUrl": "https://huggingface.co/jdopensource/JoyAI-Image-Edit-Diffusers/tree/4b41fb25d961f37668750178ccbb380da326201c", + "sourceRevision": "jdopensource/JoyAI-Image-Edit-Diffusers@4b41fb25d961f37668750178ccbb380da326201c", "sourceLicense": "MoDiff-authored Gallery metadata", - "modelTerms": ["https://github.com/deepseek-ai/Janus/blob/main/LICENSE-MODEL"], + "modelTerms": [ + "Publisher model terms at https://huggingface.co/jdopensource/JoyAI-Image-Edit-Diffusers/tree/4b41fb25d961f37668750178ccbb380da326201c" + ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "deepseek-community/Janus-Pro-1B@1655280bb75959cc1cb85529a2a8b26e7016072e https://huggingface.co/deepseek-community/Janus-Pro-1B/tree/1655280bb75959cc1cb85529a2a8b26e7016072e" + "jdopensource/JoyAI-Image-Edit-Diffusers@4b41fb25d961f37668750178ccbb380da326201c https://huggingface.co/jdopensource/JoyAI-Image-Edit-Diffusers/tree/4b41fb25d961f37668750178ccbb380da326201c" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", - "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", - "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", - "provenanceTemplateId": "janus_reykjavik_travel_note" + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "60b01498a2df5f4e4622cdc2f9a43c83d187820780d2425a19718c13707db501", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "joyimage_base_cobalt_paper_band" }, { - "path": "template-gallery/reviews/janus_reykjavik_travel_note.original-review.json", - "sha256": "sha256:bytes:85c17c8b45a8df155a69a5de0e983b32ef5d9cc917cade0115bae566c861b088", + "path": "template-gallery/reviews/joyimage_base_cobalt_paper_band.original-review.json", + "sha256": "sha256:bytes:7d27c8cfdbcb51dba2f6b724268469f067e1a2f85320ac168ee4415ac0446ab9", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/deepseek-community/Janus-Pro-1B/tree/1655280bb75959cc1cb85529a2a8b26e7016072e", - "sourceRevision": "deepseek-community/Janus-Pro-1B@1655280bb75959cc1cb85529a2a8b26e7016072e", + "sourceUrl": "https://huggingface.co/jdopensource/JoyAI-Image-Edit-Diffusers/tree/4b41fb25d961f37668750178ccbb380da326201c", + "sourceRevision": "jdopensource/JoyAI-Image-Edit-Diffusers@4b41fb25d961f37668750178ccbb380da326201c", "sourceLicense": "MoDiff-authored Gallery metadata", - "modelTerms": ["https://github.com/deepseek-ai/Janus/blob/main/LICENSE-MODEL"], + "modelTerms": [ + "Publisher model terms at https://huggingface.co/jdopensource/JoyAI-Image-Edit-Diffusers/tree/4b41fb25d961f37668750178ccbb380da326201c" + ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "deepseek-community/Janus-Pro-1B@1655280bb75959cc1cb85529a2a8b26e7016072e https://huggingface.co/deepseek-community/Janus-Pro-1B/tree/1655280bb75959cc1cb85529a2a8b26e7016072e" + "jdopensource/JoyAI-Image-Edit-Diffusers@4b41fb25d961f37668750178ccbb380da326201c https://huggingface.co/jdopensource/JoyAI-Image-Edit-Diffusers/tree/4b41fb25d961f37668750178ccbb380da326201c" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", - "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", - "provenanceTemplateId": "janus_reykjavik_travel_note" + "humanApprovalPacketSHA256": "60b01498a2df5f4e4622cdc2f9a43c83d187820780d2425a19718c13707db501", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "joyimage_base_cobalt_paper_band" }, { - "path": "template-gallery/reviews/janus_reykjavik_travel_note.quality-review.json", - "sha256": "sha256:bytes:08b83eb62ffdf911938d868f1be875cc895f472e9e48936acfaa93bbed96c709", + "path": "template-gallery/reviews/joyimage_base_cobalt_paper_band.quality-review.json", + "sha256": "sha256:bytes:d2cd9b10d5095d45599db6987b5c8d43beae50b388dae281602eae6a5dd70ddb", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/deepseek-community/Janus-Pro-1B/tree/1655280bb75959cc1cb85529a2a8b26e7016072e", - "sourceRevision": "deepseek-community/Janus-Pro-1B@1655280bb75959cc1cb85529a2a8b26e7016072e", + "sourceUrl": "https://huggingface.co/jdopensource/JoyAI-Image-Edit-Diffusers/tree/4b41fb25d961f37668750178ccbb380da326201c", + "sourceRevision": "jdopensource/JoyAI-Image-Edit-Diffusers@4b41fb25d961f37668750178ccbb380da326201c", "sourceLicense": "MoDiff-authored Gallery metadata", - "modelTerms": ["https://github.com/deepseek-ai/Janus/blob/main/LICENSE-MODEL"], + "modelTerms": [ + "Publisher model terms at https://huggingface.co/jdopensource/JoyAI-Image-Edit-Diffusers/tree/4b41fb25d961f37668750178ccbb380da326201c" + ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "deepseek-community/Janus-Pro-1B@1655280bb75959cc1cb85529a2a8b26e7016072e https://huggingface.co/deepseek-community/Janus-Pro-1B/tree/1655280bb75959cc1cb85529a2a8b26e7016072e" + "jdopensource/JoyAI-Image-Edit-Diffusers@4b41fb25d961f37668750178ccbb380da326201c https://huggingface.co/jdopensource/JoyAI-Image-Edit-Diffusers/tree/4b41fb25d961f37668750178ccbb380da326201c" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", - "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", - "provenanceTemplateId": "janus_reykjavik_travel_note" + "humanApprovalPacketSHA256": "60b01498a2df5f4e4622cdc2f9a43c83d187820780d2425a19718c13707db501", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "joyimage_base_cobalt_paper_band" }, { - "path": "template-gallery/reviews/janus_reykjavik_travel_note.retained-template-provenance.json", - "sha256": "sha256:bytes:70da97c6adaef6d92f70d91e3aa549503dacb307ea94dd3115047cb3de17945b", + "path": "template-gallery/reviews/joyimage_base_cobalt_paper_band.retained-template-provenance.json", + "sha256": "sha256:bytes:e82f59c601357c4dd42e4c4a6ea7d5f71f87afbef7d4ed254e7dc724e1555319", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/deepseek-community/Janus-Pro-1B/tree/1655280bb75959cc1cb85529a2a8b26e7016072e", - "sourceRevision": "deepseek-community/Janus-Pro-1B@1655280bb75959cc1cb85529a2a8b26e7016072e", + "sourceUrl": "https://huggingface.co/jdopensource/JoyAI-Image-Edit-Diffusers/tree/4b41fb25d961f37668750178ccbb380da326201c", + "sourceRevision": "jdopensource/JoyAI-Image-Edit-Diffusers@4b41fb25d961f37668750178ccbb380da326201c", "sourceLicense": "MoDiff-authored Gallery metadata", - "modelTerms": ["https://github.com/deepseek-ai/Janus/blob/main/LICENSE-MODEL"], + "modelTerms": [ + "Publisher model terms at https://huggingface.co/jdopensource/JoyAI-Image-Edit-Diffusers/tree/4b41fb25d961f37668750178ccbb380da326201c" + ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "deepseek-community/Janus-Pro-1B@1655280bb75959cc1cb85529a2a8b26e7016072e https://huggingface.co/deepseek-community/Janus-Pro-1B/tree/1655280bb75959cc1cb85529a2a8b26e7016072e" + "jdopensource/JoyAI-Image-Edit-Diffusers@4b41fb25d961f37668750178ccbb380da326201c https://huggingface.co/jdopensource/JoyAI-Image-Edit-Diffusers/tree/4b41fb25d961f37668750178ccbb380da326201c" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", - "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", - "provenanceTemplateId": "janus_reykjavik_travel_note" + "humanApprovalPacketSHA256": "60b01498a2df5f4e4622cdc2f9a43c83d187820780d2425a19718c13707db501", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "joyimage_base_cobalt_paper_band" }, { - "path": "template-gallery/reviews/joy_plus_lavender_on_limestone.original-provenance.json", - "sha256": "sha256:bytes:1d38c6f1a9b8c9f496cfb0905e6b4e2c8dd25129110ebf28c86e1070178c1237", + "path": "template-gallery/reviews/joyimage_herbarium_rainy_porthole.original-provenance.json", + "sha256": "sha256:bytes:9d044b889706d4034d96da08aec8f9c6fa2458e2d75b36055a1a707e11140d38", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/jdopensource/JoyAI-Image-Edit-Plus-Diffusers/tree/c2686460c7b64d8aa11bc4d0da423fb316b33f9e", - "sourceRevision": "jdopensource/JoyAI-Image-Edit-Plus-Diffusers@c2686460c7b64d8aa11bc4d0da423fb316b33f9e", + "sourceUrl": "https://huggingface.co/jdopensource/JoyAI-Image-Edit-Diffusers/tree/4b41fb25d961f37668750178ccbb380da326201c", + "sourceRevision": "jdopensource/JoyAI-Image-Edit-Diffusers@4b41fb25d961f37668750178ccbb380da326201c", "sourceLicense": "MoDiff-authored Gallery metadata", "modelTerms": [ - "Publisher model terms at https://huggingface.co/jdopensource/JoyAI-Image-Edit-Plus-Diffusers/tree/c2686460c7b64d8aa11bc4d0da423fb316b33f9e" + "Publisher model terms at https://huggingface.co/jdopensource/JoyAI-Image-Edit-Diffusers/tree/4b41fb25d961f37668750178ccbb380da326201c" ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "jdopensource/JoyAI-Image-Edit-Plus-Diffusers@c2686460c7b64d8aa11bc4d0da423fb316b33f9e https://huggingface.co/jdopensource/JoyAI-Image-Edit-Plus-Diffusers/tree/c2686460c7b64d8aa11bc4d0da423fb316b33f9e" + "jdopensource/JoyAI-Image-Edit-Diffusers@4b41fb25d961f37668750178ccbb380da326201c https://huggingface.co/jdopensource/JoyAI-Image-Edit-Diffusers/tree/4b41fb25d961f37668750178ccbb380da326201c" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "60b01498a2df5f4e4622cdc2f9a43c83d187820780d2425a19718c13707db501", + "humanApprovalPacketSHA256": "4fc7c52588176cb1f6ba6d699d08741b2986ea71ea87bac650d261716a10b24c", "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", - "provenanceTemplateId": "joy_plus_lavender_on_limestone" + "provenanceTemplateId": "joyimage_herbarium_rainy_porthole" }, { - "path": "template-gallery/reviews/joy_plus_lavender_on_limestone.original-review.json", - "sha256": "sha256:bytes:01efaac50374f321864b496b45ee9d133b3d67a9a30ba61eddf81fd23d7204bb", + "path": "template-gallery/reviews/joyimage_herbarium_rainy_porthole.original-review.json", + "sha256": "sha256:bytes:5f1b196d8b9e9b3740a4745304e7fbbe5bbe5c5385237f87d6895748b75c8e07", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/jdopensource/JoyAI-Image-Edit-Plus-Diffusers/tree/c2686460c7b64d8aa11bc4d0da423fb316b33f9e", - "sourceRevision": "jdopensource/JoyAI-Image-Edit-Plus-Diffusers@c2686460c7b64d8aa11bc4d0da423fb316b33f9e", + "sourceUrl": "https://huggingface.co/jdopensource/JoyAI-Image-Edit-Diffusers/tree/4b41fb25d961f37668750178ccbb380da326201c", + "sourceRevision": "jdopensource/JoyAI-Image-Edit-Diffusers@4b41fb25d961f37668750178ccbb380da326201c", "sourceLicense": "MoDiff-authored Gallery metadata", "modelTerms": [ - "Publisher model terms at https://huggingface.co/jdopensource/JoyAI-Image-Edit-Plus-Diffusers/tree/c2686460c7b64d8aa11bc4d0da423fb316b33f9e" + "Publisher model terms at https://huggingface.co/jdopensource/JoyAI-Image-Edit-Diffusers/tree/4b41fb25d961f37668750178ccbb380da326201c" ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "jdopensource/JoyAI-Image-Edit-Plus-Diffusers@c2686460c7b64d8aa11bc4d0da423fb316b33f9e https://huggingface.co/jdopensource/JoyAI-Image-Edit-Plus-Diffusers/tree/c2686460c7b64d8aa11bc4d0da423fb316b33f9e" + "jdopensource/JoyAI-Image-Edit-Diffusers@4b41fb25d961f37668750178ccbb380da326201c https://huggingface.co/jdopensource/JoyAI-Image-Edit-Diffusers/tree/4b41fb25d961f37668750178ccbb380da326201c" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "60b01498a2df5f4e4622cdc2f9a43c83d187820780d2425a19718c13707db501", + "humanApprovalPacketSHA256": "4fc7c52588176cb1f6ba6d699d08741b2986ea71ea87bac650d261716a10b24c", "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", - "provenanceTemplateId": "joy_plus_lavender_on_limestone" + "provenanceTemplateId": "joyimage_herbarium_rainy_porthole" }, { - "path": "template-gallery/reviews/joy_plus_lavender_on_limestone.quality-review.json", - "sha256": "sha256:bytes:8bf5fa341804d3de8c849d40c5ac8518f954def1ba5eae8e56da820eb86d148c", + "path": "template-gallery/reviews/joyimage_herbarium_rainy_porthole.quality-review.json", + "sha256": "sha256:bytes:ee32c1cb4403abeab273a797da25cfc3d6930f9eac84785b905ed12d07f5b567", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/jdopensource/JoyAI-Image-Edit-Plus-Diffusers/tree/c2686460c7b64d8aa11bc4d0da423fb316b33f9e", - "sourceRevision": "jdopensource/JoyAI-Image-Edit-Plus-Diffusers@c2686460c7b64d8aa11bc4d0da423fb316b33f9e", + "sourceUrl": "https://huggingface.co/jdopensource/JoyAI-Image-Edit-Diffusers/tree/4b41fb25d961f37668750178ccbb380da326201c", + "sourceRevision": "jdopensource/JoyAI-Image-Edit-Diffusers@4b41fb25d961f37668750178ccbb380da326201c", "sourceLicense": "MoDiff-authored Gallery metadata", "modelTerms": [ - "Publisher model terms at https://huggingface.co/jdopensource/JoyAI-Image-Edit-Plus-Diffusers/tree/c2686460c7b64d8aa11bc4d0da423fb316b33f9e" + "Publisher model terms at https://huggingface.co/jdopensource/JoyAI-Image-Edit-Diffusers/tree/4b41fb25d961f37668750178ccbb380da326201c" ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "jdopensource/JoyAI-Image-Edit-Plus-Diffusers@c2686460c7b64d8aa11bc4d0da423fb316b33f9e https://huggingface.co/jdopensource/JoyAI-Image-Edit-Plus-Diffusers/tree/c2686460c7b64d8aa11bc4d0da423fb316b33f9e" + "jdopensource/JoyAI-Image-Edit-Diffusers@4b41fb25d961f37668750178ccbb380da326201c https://huggingface.co/jdopensource/JoyAI-Image-Edit-Diffusers/tree/4b41fb25d961f37668750178ccbb380da326201c" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "60b01498a2df5f4e4622cdc2f9a43c83d187820780d2425a19718c13707db501", + "humanApprovalPacketSHA256": "4fc7c52588176cb1f6ba6d699d08741b2986ea71ea87bac650d261716a10b24c", "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", - "provenanceTemplateId": "joy_plus_lavender_on_limestone" + "provenanceTemplateId": "joyimage_herbarium_rainy_porthole" }, { - "path": "template-gallery/reviews/joy_plus_lavender_on_limestone.retained-template-provenance.json", - "sha256": "sha256:bytes:9d769bc0f109f129a0a74b77d642cd0029204a037d3bb9e0ab17c322b31e4892", + "path": "template-gallery/reviews/joyimage_herbarium_rainy_porthole.retained-template-provenance.json", + "sha256": "sha256:bytes:9dea78e9b2060e8253be0d3862ab101885f5c8ad55f66d0d2424943e634bcc03", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/jdopensource/JoyAI-Image-Edit-Plus-Diffusers/tree/c2686460c7b64d8aa11bc4d0da423fb316b33f9e", - "sourceRevision": "jdopensource/JoyAI-Image-Edit-Plus-Diffusers@c2686460c7b64d8aa11bc4d0da423fb316b33f9e", + "sourceUrl": "https://huggingface.co/jdopensource/JoyAI-Image-Edit-Diffusers/tree/4b41fb25d961f37668750178ccbb380da326201c", + "sourceRevision": "jdopensource/JoyAI-Image-Edit-Diffusers@4b41fb25d961f37668750178ccbb380da326201c", "sourceLicense": "MoDiff-authored Gallery metadata", "modelTerms": [ - "Publisher model terms at https://huggingface.co/jdopensource/JoyAI-Image-Edit-Plus-Diffusers/tree/c2686460c7b64d8aa11bc4d0da423fb316b33f9e" + "Publisher model terms at https://huggingface.co/jdopensource/JoyAI-Image-Edit-Diffusers/tree/4b41fb25d961f37668750178ccbb380da326201c" ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "jdopensource/JoyAI-Image-Edit-Plus-Diffusers@c2686460c7b64d8aa11bc4d0da423fb316b33f9e https://huggingface.co/jdopensource/JoyAI-Image-Edit-Plus-Diffusers/tree/c2686460c7b64d8aa11bc4d0da423fb316b33f9e" + "jdopensource/JoyAI-Image-Edit-Diffusers@4b41fb25d961f37668750178ccbb380da326201c https://huggingface.co/jdopensource/JoyAI-Image-Edit-Diffusers/tree/4b41fb25d961f37668750178ccbb380da326201c" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "60b01498a2df5f4e4622cdc2f9a43c83d187820780d2425a19718c13707db501", + "humanApprovalPacketSHA256": "4fc7c52588176cb1f6ba6d699d08741b2986ea71ea87bac650d261716a10b24c", "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", - "provenanceTemplateId": "joy_plus_lavender_on_limestone" + "provenanceTemplateId": "joyimage_herbarium_rainy_porthole" }, { - "path": "template-gallery/reviews/joy_plus_terracotta_on_limestone.original-provenance.json", - "sha256": "sha256:bytes:fde745107f8dd3d8e87fa149b23617f104a566ee59af33713ca1b3d91b3a3749", + "path": "template-gallery/reviews/kandinsky3_ginkgo_on_slate.original-provenance.json", + "sha256": "sha256:bytes:31189848b609ec308b9bd427975d0b09d502ff7583321e88a7ba813f5a968db8", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/jdopensource/JoyAI-Image-Edit-Plus-Diffusers/tree/c2686460c7b64d8aa11bc4d0da423fb316b33f9e", - "sourceRevision": "jdopensource/JoyAI-Image-Edit-Plus-Diffusers@c2686460c7b64d8aa11bc4d0da423fb316b33f9e", + "sourceUrl": "https://huggingface.co/kandinsky-community/kandinsky-3/tree/bf79e6c219da8a94abb50235fdc4567eb8fb4632", + "sourceRevision": "kandinsky-community/kandinsky-3@bf79e6c219da8a94abb50235fdc4567eb8fb4632", "sourceLicense": "MoDiff-authored Gallery metadata", "modelTerms": [ - "Publisher model terms at https://huggingface.co/jdopensource/JoyAI-Image-Edit-Plus-Diffusers/tree/c2686460c7b64d8aa11bc4d0da423fb316b33f9e" + "Publisher model terms at https://huggingface.co/kandinsky-community/kandinsky-3/tree/bf79e6c219da8a94abb50235fdc4567eb8fb4632" ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "jdopensource/JoyAI-Image-Edit-Plus-Diffusers@c2686460c7b64d8aa11bc4d0da423fb316b33f9e https://huggingface.co/jdopensource/JoyAI-Image-Edit-Plus-Diffusers/tree/c2686460c7b64d8aa11bc4d0da423fb316b33f9e" + "kandinsky-community/kandinsky-3@bf79e6c219da8a94abb50235fdc4567eb8fb4632 https://huggingface.co/kandinsky-community/kandinsky-3/tree/bf79e6c219da8a94abb50235fdc4567eb8fb4632" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", - "reviewedAt": "2026-11-25", + "reviewedAt": "2026-11-24", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "d7e2fd301d16eede3da44cec1811930560ba0d958dfd46d8d0962eb3a22eea63", - "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", - "provenanceTemplateId": "joy_plus_terracotta_on_limestone" + "humanApprovalPacketSHA256": "d216f065bdc316366c6183592f657bcfbbd7cb05acd0e510c6b3877fe56bcec2", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped six saved cases with model terms retained.", + "provenanceTemplateId": "kandinsky3_ginkgo_on_slate" }, { - "path": "template-gallery/reviews/joy_plus_terracotta_on_limestone.original-review.json", - "sha256": "sha256:bytes:719b8565f2c6e58a4bbd2cdf1298ef95a7a0d08edec6f90c566e87eb6b6353ba", + "path": "template-gallery/reviews/kandinsky3_ginkgo_on_slate.original-review.json", + "sha256": "sha256:bytes:3d23527148ae151f8b05b623d2739f79ab4bcd37202db7b331e391bdf7b6bedf", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/jdopensource/JoyAI-Image-Edit-Plus-Diffusers/tree/c2686460c7b64d8aa11bc4d0da423fb316b33f9e", - "sourceRevision": "jdopensource/JoyAI-Image-Edit-Plus-Diffusers@c2686460c7b64d8aa11bc4d0da423fb316b33f9e", + "sourceUrl": "https://huggingface.co/kandinsky-community/kandinsky-3/tree/bf79e6c219da8a94abb50235fdc4567eb8fb4632", + "sourceRevision": "kandinsky-community/kandinsky-3@bf79e6c219da8a94abb50235fdc4567eb8fb4632", "sourceLicense": "MoDiff-authored Gallery metadata", "modelTerms": [ - "Publisher model terms at https://huggingface.co/jdopensource/JoyAI-Image-Edit-Plus-Diffusers/tree/c2686460c7b64d8aa11bc4d0da423fb316b33f9e" + "Publisher model terms at https://huggingface.co/kandinsky-community/kandinsky-3/tree/bf79e6c219da8a94abb50235fdc4567eb8fb4632" ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "jdopensource/JoyAI-Image-Edit-Plus-Diffusers@c2686460c7b64d8aa11bc4d0da423fb316b33f9e https://huggingface.co/jdopensource/JoyAI-Image-Edit-Plus-Diffusers/tree/c2686460c7b64d8aa11bc4d0da423fb316b33f9e" + "kandinsky-community/kandinsky-3@bf79e6c219da8a94abb50235fdc4567eb8fb4632 https://huggingface.co/kandinsky-community/kandinsky-3/tree/bf79e6c219da8a94abb50235fdc4567eb8fb4632" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", - "reviewedAt": "2026-11-25", + "reviewedAt": "2026-11-24", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "d7e2fd301d16eede3da44cec1811930560ba0d958dfd46d8d0962eb3a22eea63", - "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", - "provenanceTemplateId": "joy_plus_terracotta_on_limestone" + "humanApprovalPacketSHA256": "d216f065bdc316366c6183592f657bcfbbd7cb05acd0e510c6b3877fe56bcec2", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped six saved cases with model terms retained.", + "provenanceTemplateId": "kandinsky3_ginkgo_on_slate" }, { - "path": "template-gallery/reviews/joy_plus_terracotta_on_limestone.quality-review.json", - "sha256": "sha256:bytes:2bd0293bdf6802fbcb983cf655f09e8a9b452a5ad1438f1269db06c494558347", + "path": "template-gallery/reviews/kandinsky3_ginkgo_on_slate.quality-review.json", + "sha256": "sha256:bytes:ce1d21e1a50c1861198590eda8f52dde82afccaceae93500fbaf612e1b1a2426", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/jdopensource/JoyAI-Image-Edit-Plus-Diffusers/tree/c2686460c7b64d8aa11bc4d0da423fb316b33f9e", - "sourceRevision": "jdopensource/JoyAI-Image-Edit-Plus-Diffusers@c2686460c7b64d8aa11bc4d0da423fb316b33f9e", + "sourceUrl": "https://huggingface.co/kandinsky-community/kandinsky-3/tree/bf79e6c219da8a94abb50235fdc4567eb8fb4632", + "sourceRevision": "kandinsky-community/kandinsky-3@bf79e6c219da8a94abb50235fdc4567eb8fb4632", "sourceLicense": "MoDiff-authored Gallery metadata", "modelTerms": [ - "Publisher model terms at https://huggingface.co/jdopensource/JoyAI-Image-Edit-Plus-Diffusers/tree/c2686460c7b64d8aa11bc4d0da423fb316b33f9e" + "Publisher model terms at https://huggingface.co/kandinsky-community/kandinsky-3/tree/bf79e6c219da8a94abb50235fdc4567eb8fb4632" ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "jdopensource/JoyAI-Image-Edit-Plus-Diffusers@c2686460c7b64d8aa11bc4d0da423fb316b33f9e https://huggingface.co/jdopensource/JoyAI-Image-Edit-Plus-Diffusers/tree/c2686460c7b64d8aa11bc4d0da423fb316b33f9e" + "kandinsky-community/kandinsky-3@bf79e6c219da8a94abb50235fdc4567eb8fb4632 https://huggingface.co/kandinsky-community/kandinsky-3/tree/bf79e6c219da8a94abb50235fdc4567eb8fb4632" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", - "reviewedAt": "2026-11-25", + "reviewedAt": "2026-11-24", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "d7e2fd301d16eede3da44cec1811930560ba0d958dfd46d8d0962eb3a22eea63", - "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", - "provenanceTemplateId": "joy_plus_terracotta_on_limestone" + "humanApprovalPacketSHA256": "d216f065bdc316366c6183592f657bcfbbd7cb05acd0e510c6b3877fe56bcec2", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped six saved cases with model terms retained.", + "provenanceTemplateId": "kandinsky3_ginkgo_on_slate" }, { - "path": "template-gallery/reviews/joy_plus_terracotta_on_limestone.retained-template-provenance.json", - "sha256": "sha256:bytes:646ee4503fc48d2bc5f22df726a697f82799b9152978f5cf6715d94e7c3036cb", + "path": "template-gallery/reviews/kandinsky3_ginkgo_on_slate.retained-template-provenance.json", + "sha256": "sha256:bytes:5be139ba899439bf234dee3274572a5062dbfdbb0fbf6ba12f23b64ce47a2fc3", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/jdopensource/JoyAI-Image-Edit-Plus-Diffusers/tree/c2686460c7b64d8aa11bc4d0da423fb316b33f9e", - "sourceRevision": "jdopensource/JoyAI-Image-Edit-Plus-Diffusers@c2686460c7b64d8aa11bc4d0da423fb316b33f9e", + "sourceUrl": "https://huggingface.co/kandinsky-community/kandinsky-3/tree/bf79e6c219da8a94abb50235fdc4567eb8fb4632", + "sourceRevision": "kandinsky-community/kandinsky-3@bf79e6c219da8a94abb50235fdc4567eb8fb4632", "sourceLicense": "MoDiff-authored Gallery metadata", "modelTerms": [ - "Publisher model terms at https://huggingface.co/jdopensource/JoyAI-Image-Edit-Plus-Diffusers/tree/c2686460c7b64d8aa11bc4d0da423fb316b33f9e" + "Publisher model terms at https://huggingface.co/kandinsky-community/kandinsky-3/tree/bf79e6c219da8a94abb50235fdc4567eb8fb4632" ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "jdopensource/JoyAI-Image-Edit-Plus-Diffusers@c2686460c7b64d8aa11bc4d0da423fb316b33f9e https://huggingface.co/jdopensource/JoyAI-Image-Edit-Plus-Diffusers/tree/c2686460c7b64d8aa11bc4d0da423fb316b33f9e" + "kandinsky-community/kandinsky-3@bf79e6c219da8a94abb50235fdc4567eb8fb4632 https://huggingface.co/kandinsky-community/kandinsky-3/tree/bf79e6c219da8a94abb50235fdc4567eb8fb4632" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", - "reviewedAt": "2026-11-25", + "reviewedAt": "2026-11-24", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "d7e2fd301d16eede3da44cec1811930560ba0d958dfd46d8d0962eb3a22eea63", - "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", - "provenanceTemplateId": "joy_plus_terracotta_on_limestone" + "humanApprovalPacketSHA256": "d216f065bdc316366c6183592f657bcfbbd7cb05acd0e510c6b3877fe56bcec2", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped six saved cases with model terms retained.", + "provenanceTemplateId": "kandinsky3_ginkgo_on_slate" }, { - "path": "template-gallery/reviews/joyimage_base_cobalt_paper_band.original-provenance.json", - "sha256": "sha256:bytes:e8cbdf5d79e8c91cc1f85575b2a5a29fcd3a1b2b470bd08137514d71b4e157ef", + "path": "template-gallery/reviews/kandinsky3_smoked_glass_on_limestone.original-provenance.json", + "sha256": "sha256:bytes:e62c78c152e7273c32f506b361d4cece5e2a61939ab8763078fb04111795a098", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/jdopensource/JoyAI-Image-Edit-Diffusers/tree/4b41fb25d961f37668750178ccbb380da326201c", - "sourceRevision": "jdopensource/JoyAI-Image-Edit-Diffusers@4b41fb25d961f37668750178ccbb380da326201c", + "sourceUrl": "https://huggingface.co/kandinsky-community/kandinsky-3/tree/bf79e6c219da8a94abb50235fdc4567eb8fb4632", + "sourceRevision": "kandinsky-community/kandinsky-3@bf79e6c219da8a94abb50235fdc4567eb8fb4632", "sourceLicense": "MoDiff-authored Gallery metadata", "modelTerms": [ - "Publisher model terms at https://huggingface.co/jdopensource/JoyAI-Image-Edit-Diffusers/tree/4b41fb25d961f37668750178ccbb380da326201c" + "Publisher model terms at https://huggingface.co/kandinsky-community/kandinsky-3/tree/bf79e6c219da8a94abb50235fdc4567eb8fb4632" ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "jdopensource/JoyAI-Image-Edit-Diffusers@4b41fb25d961f37668750178ccbb380da326201c https://huggingface.co/jdopensource/JoyAI-Image-Edit-Diffusers/tree/4b41fb25d961f37668750178ccbb380da326201c" + "kandinsky-community/kandinsky-3@bf79e6c219da8a94abb50235fdc4567eb8fb4632 https://huggingface.co/kandinsky-community/kandinsky-3/tree/bf79e6c219da8a94abb50235fdc4567eb8fb4632" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", @@ -14682,26 +15951,26 @@ "reviewClass": "per-file-maintainer-accepted-retained-registration", "humanApprovalPacketSHA256": "60b01498a2df5f4e4622cdc2f9a43c83d187820780d2425a19718c13707db501", "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", - "provenanceTemplateId": "joyimage_base_cobalt_paper_band" + "provenanceTemplateId": "kandinsky3_smoked_glass_on_limestone" }, { - "path": "template-gallery/reviews/joyimage_base_cobalt_paper_band.original-review.json", - "sha256": "sha256:bytes:7d27c8cfdbcb51dba2f6b724268469f067e1a2f85320ac168ee4415ac0446ab9", + "path": "template-gallery/reviews/kandinsky3_smoked_glass_on_limestone.original-review.json", + "sha256": "sha256:bytes:307daef8829faa1835d0d7092e594aa8bf1b703c51157a8cc7581aaf1e84d437", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/jdopensource/JoyAI-Image-Edit-Diffusers/tree/4b41fb25d961f37668750178ccbb380da326201c", - "sourceRevision": "jdopensource/JoyAI-Image-Edit-Diffusers@4b41fb25d961f37668750178ccbb380da326201c", + "sourceUrl": "https://huggingface.co/kandinsky-community/kandinsky-3/tree/bf79e6c219da8a94abb50235fdc4567eb8fb4632", + "sourceRevision": "kandinsky-community/kandinsky-3@bf79e6c219da8a94abb50235fdc4567eb8fb4632", "sourceLicense": "MoDiff-authored Gallery metadata", "modelTerms": [ - "Publisher model terms at https://huggingface.co/jdopensource/JoyAI-Image-Edit-Diffusers/tree/4b41fb25d961f37668750178ccbb380da326201c" + "Publisher model terms at https://huggingface.co/kandinsky-community/kandinsky-3/tree/bf79e6c219da8a94abb50235fdc4567eb8fb4632" ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "jdopensource/JoyAI-Image-Edit-Diffusers@4b41fb25d961f37668750178ccbb380da326201c https://huggingface.co/jdopensource/JoyAI-Image-Edit-Diffusers/tree/4b41fb25d961f37668750178ccbb380da326201c" + "kandinsky-community/kandinsky-3@bf79e6c219da8a94abb50235fdc4567eb8fb4632 https://huggingface.co/kandinsky-community/kandinsky-3/tree/bf79e6c219da8a94abb50235fdc4567eb8fb4632" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", @@ -14709,26 +15978,26 @@ "reviewClass": "per-file-maintainer-accepted-retained-registration", "humanApprovalPacketSHA256": "60b01498a2df5f4e4622cdc2f9a43c83d187820780d2425a19718c13707db501", "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", - "provenanceTemplateId": "joyimage_base_cobalt_paper_band" + "provenanceTemplateId": "kandinsky3_smoked_glass_on_limestone" }, { - "path": "template-gallery/reviews/joyimage_base_cobalt_paper_band.quality-review.json", - "sha256": "sha256:bytes:d2cd9b10d5095d45599db6987b5c8d43beae50b388dae281602eae6a5dd70ddb", + "path": "template-gallery/reviews/kandinsky3_smoked_glass_on_limestone.quality-review.json", + "sha256": "sha256:bytes:e6d9b0e253b694fab331fe62247c0adf47c2947d841ba8da08629522a37613ef", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/jdopensource/JoyAI-Image-Edit-Diffusers/tree/4b41fb25d961f37668750178ccbb380da326201c", - "sourceRevision": "jdopensource/JoyAI-Image-Edit-Diffusers@4b41fb25d961f37668750178ccbb380da326201c", + "sourceUrl": "https://huggingface.co/kandinsky-community/kandinsky-3/tree/bf79e6c219da8a94abb50235fdc4567eb8fb4632", + "sourceRevision": "kandinsky-community/kandinsky-3@bf79e6c219da8a94abb50235fdc4567eb8fb4632", "sourceLicense": "MoDiff-authored Gallery metadata", "modelTerms": [ - "Publisher model terms at https://huggingface.co/jdopensource/JoyAI-Image-Edit-Diffusers/tree/4b41fb25d961f37668750178ccbb380da326201c" + "Publisher model terms at https://huggingface.co/kandinsky-community/kandinsky-3/tree/bf79e6c219da8a94abb50235fdc4567eb8fb4632" ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "jdopensource/JoyAI-Image-Edit-Diffusers@4b41fb25d961f37668750178ccbb380da326201c https://huggingface.co/jdopensource/JoyAI-Image-Edit-Diffusers/tree/4b41fb25d961f37668750178ccbb380da326201c" + "kandinsky-community/kandinsky-3@bf79e6c219da8a94abb50235fdc4567eb8fb4632 https://huggingface.co/kandinsky-community/kandinsky-3/tree/bf79e6c219da8a94abb50235fdc4567eb8fb4632" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", @@ -14736,26 +16005,26 @@ "reviewClass": "per-file-maintainer-accepted-retained-registration", "humanApprovalPacketSHA256": "60b01498a2df5f4e4622cdc2f9a43c83d187820780d2425a19718c13707db501", "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", - "provenanceTemplateId": "joyimage_base_cobalt_paper_band" + "provenanceTemplateId": "kandinsky3_smoked_glass_on_limestone" }, { - "path": "template-gallery/reviews/joyimage_base_cobalt_paper_band.retained-template-provenance.json", - "sha256": "sha256:bytes:e82f59c601357c4dd42e4c4a6ea7d5f71f87afbef7d4ed254e7dc724e1555319", + "path": "template-gallery/reviews/kandinsky3_smoked_glass_on_limestone.retained-template-provenance.json", + "sha256": "sha256:bytes:5dbf90cd4b0f214fdae6e49c20ec03e38fc8552275d07e900ae737af469ea66a", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/jdopensource/JoyAI-Image-Edit-Diffusers/tree/4b41fb25d961f37668750178ccbb380da326201c", - "sourceRevision": "jdopensource/JoyAI-Image-Edit-Diffusers@4b41fb25d961f37668750178ccbb380da326201c", + "sourceUrl": "https://huggingface.co/kandinsky-community/kandinsky-3/tree/bf79e6c219da8a94abb50235fdc4567eb8fb4632", + "sourceRevision": "kandinsky-community/kandinsky-3@bf79e6c219da8a94abb50235fdc4567eb8fb4632", "sourceLicense": "MoDiff-authored Gallery metadata", "modelTerms": [ - "Publisher model terms at https://huggingface.co/jdopensource/JoyAI-Image-Edit-Diffusers/tree/4b41fb25d961f37668750178ccbb380da326201c" + "Publisher model terms at https://huggingface.co/kandinsky-community/kandinsky-3/tree/bf79e6c219da8a94abb50235fdc4567eb8fb4632" ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "jdopensource/JoyAI-Image-Edit-Diffusers@4b41fb25d961f37668750178ccbb380da326201c https://huggingface.co/jdopensource/JoyAI-Image-Edit-Diffusers/tree/4b41fb25d961f37668750178ccbb380da326201c" + "kandinsky-community/kandinsky-3@bf79e6c219da8a94abb50235fdc4567eb8fb4632 https://huggingface.co/kandinsky-community/kandinsky-3/tree/bf79e6c219da8a94abb50235fdc4567eb8fb4632" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", @@ -14763,1077 +16032,1109 @@ "reviewClass": "per-file-maintainer-accepted-retained-registration", "humanApprovalPacketSHA256": "60b01498a2df5f4e4622cdc2f9a43c83d187820780d2425a19718c13707db501", "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", - "provenanceTemplateId": "joyimage_base_cobalt_paper_band" + "provenanceTemplateId": "kandinsky3_smoked_glass_on_limestone" }, { - "path": "template-gallery/reviews/joyimage_herbarium_rainy_porthole.original-provenance.json", - "sha256": "sha256:bytes:9d044b889706d4034d96da08aec8f9c6fa2458e2d75b36055a1a707e11140d38", + "path": "template-gallery/reviews/kontext_wide_water_alpine_ridge.original-provenance.json", + "sha256": "sha256:bytes:8f93f5553eeb580705586eda046026ac8ed8742b09defff688fd67892e131d90", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/jdopensource/JoyAI-Image-Edit-Diffusers/tree/4b41fb25d961f37668750178ccbb380da326201c", - "sourceRevision": "jdopensource/JoyAI-Image-Edit-Diffusers@4b41fb25d961f37668750178ccbb380da326201c", + "sourceUrl": "https://huggingface.co/black-forest-labs/FLUX.1-Kontext-dev/tree/24e9dedc4ef646698dc8eb4e18ae2cec3c9fea0d", + "sourceRevision": "black-forest-labs/FLUX.1-Kontext-dev@24e9dedc4ef646698dc8eb4e18ae2cec3c9fea0d", "sourceLicense": "MoDiff-authored Gallery metadata", "modelTerms": [ - "Publisher model terms at https://huggingface.co/jdopensource/JoyAI-Image-Edit-Diffusers/tree/4b41fb25d961f37668750178ccbb380da326201c" + "Publisher model terms at https://huggingface.co/black-forest-labs/FLUX.1-Kontext-dev/tree/24e9dedc4ef646698dc8eb4e18ae2cec3c9fea0d" ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "jdopensource/JoyAI-Image-Edit-Diffusers@4b41fb25d961f37668750178ccbb380da326201c https://huggingface.co/jdopensource/JoyAI-Image-Edit-Diffusers/tree/4b41fb25d961f37668750178ccbb380da326201c" + "black-forest-labs/FLUX.1-Kontext-dev@24e9dedc4ef646698dc8eb4e18ae2cec3c9fea0d https://huggingface.co/black-forest-labs/FLUX.1-Kontext-dev/tree/24e9dedc4ef646698dc8eb4e18ae2cec3c9fea0d" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "4fc7c52588176cb1f6ba6d699d08741b2986ea71ea87bac650d261716a10b24c", + "humanApprovalPacketSHA256": "60b01498a2df5f4e4622cdc2f9a43c83d187820780d2425a19718c13707db501", "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", - "provenanceTemplateId": "joyimage_herbarium_rainy_porthole" + "provenanceTemplateId": "kontext_wide_water_alpine_ridge" }, { - "path": "template-gallery/reviews/joyimage_herbarium_rainy_porthole.original-review.json", - "sha256": "sha256:bytes:5f1b196d8b9e9b3740a4745304e7fbbe5bbe5c5385237f87d6895748b75c8e07", + "path": "template-gallery/reviews/kontext_wide_water_alpine_ridge.original-review.json", + "sha256": "sha256:bytes:f54561af3e759232c7e01a2515d98b66c38d56d7fe8ece573ce2f83bfcbbf3f8", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/jdopensource/JoyAI-Image-Edit-Diffusers/tree/4b41fb25d961f37668750178ccbb380da326201c", - "sourceRevision": "jdopensource/JoyAI-Image-Edit-Diffusers@4b41fb25d961f37668750178ccbb380da326201c", + "sourceUrl": "https://huggingface.co/black-forest-labs/FLUX.1-Kontext-dev/tree/24e9dedc4ef646698dc8eb4e18ae2cec3c9fea0d", + "sourceRevision": "black-forest-labs/FLUX.1-Kontext-dev@24e9dedc4ef646698dc8eb4e18ae2cec3c9fea0d", "sourceLicense": "MoDiff-authored Gallery metadata", "modelTerms": [ - "Publisher model terms at https://huggingface.co/jdopensource/JoyAI-Image-Edit-Diffusers/tree/4b41fb25d961f37668750178ccbb380da326201c" + "Publisher model terms at https://huggingface.co/black-forest-labs/FLUX.1-Kontext-dev/tree/24e9dedc4ef646698dc8eb4e18ae2cec3c9fea0d" ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "jdopensource/JoyAI-Image-Edit-Diffusers@4b41fb25d961f37668750178ccbb380da326201c https://huggingface.co/jdopensource/JoyAI-Image-Edit-Diffusers/tree/4b41fb25d961f37668750178ccbb380da326201c" + "black-forest-labs/FLUX.1-Kontext-dev@24e9dedc4ef646698dc8eb4e18ae2cec3c9fea0d https://huggingface.co/black-forest-labs/FLUX.1-Kontext-dev/tree/24e9dedc4ef646698dc8eb4e18ae2cec3c9fea0d" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "4fc7c52588176cb1f6ba6d699d08741b2986ea71ea87bac650d261716a10b24c", + "humanApprovalPacketSHA256": "60b01498a2df5f4e4622cdc2f9a43c83d187820780d2425a19718c13707db501", "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", - "provenanceTemplateId": "joyimage_herbarium_rainy_porthole" + "provenanceTemplateId": "kontext_wide_water_alpine_ridge" }, { - "path": "template-gallery/reviews/joyimage_herbarium_rainy_porthole.quality-review.json", - "sha256": "sha256:bytes:ee32c1cb4403abeab273a797da25cfc3d6930f9eac84785b905ed12d07f5b567", + "path": "template-gallery/reviews/kontext_wide_water_alpine_ridge.quality-review.json", + "sha256": "sha256:bytes:2dcf22dab88c45ead8d951f9443f61657d37eb30d07add1183a3633dbffcfe98", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/jdopensource/JoyAI-Image-Edit-Diffusers/tree/4b41fb25d961f37668750178ccbb380da326201c", - "sourceRevision": "jdopensource/JoyAI-Image-Edit-Diffusers@4b41fb25d961f37668750178ccbb380da326201c", + "sourceUrl": "https://huggingface.co/black-forest-labs/FLUX.1-Kontext-dev/tree/24e9dedc4ef646698dc8eb4e18ae2cec3c9fea0d", + "sourceRevision": "black-forest-labs/FLUX.1-Kontext-dev@24e9dedc4ef646698dc8eb4e18ae2cec3c9fea0d", "sourceLicense": "MoDiff-authored Gallery metadata", "modelTerms": [ - "Publisher model terms at https://huggingface.co/jdopensource/JoyAI-Image-Edit-Diffusers/tree/4b41fb25d961f37668750178ccbb380da326201c" + "Publisher model terms at https://huggingface.co/black-forest-labs/FLUX.1-Kontext-dev/tree/24e9dedc4ef646698dc8eb4e18ae2cec3c9fea0d" ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "jdopensource/JoyAI-Image-Edit-Diffusers@4b41fb25d961f37668750178ccbb380da326201c https://huggingface.co/jdopensource/JoyAI-Image-Edit-Diffusers/tree/4b41fb25d961f37668750178ccbb380da326201c" + "black-forest-labs/FLUX.1-Kontext-dev@24e9dedc4ef646698dc8eb4e18ae2cec3c9fea0d https://huggingface.co/black-forest-labs/FLUX.1-Kontext-dev/tree/24e9dedc4ef646698dc8eb4e18ae2cec3c9fea0d" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "4fc7c52588176cb1f6ba6d699d08741b2986ea71ea87bac650d261716a10b24c", + "humanApprovalPacketSHA256": "60b01498a2df5f4e4622cdc2f9a43c83d187820780d2425a19718c13707db501", "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", - "provenanceTemplateId": "joyimage_herbarium_rainy_porthole" + "provenanceTemplateId": "kontext_wide_water_alpine_ridge" }, { - "path": "template-gallery/reviews/joyimage_herbarium_rainy_porthole.retained-template-provenance.json", - "sha256": "sha256:bytes:9dea78e9b2060e8253be0d3862ab101885f5c8ad55f66d0d2424943e634bcc03", + "path": "template-gallery/reviews/kontext_wide_water_alpine_ridge.retained-template-provenance.json", + "sha256": "sha256:bytes:97059d8dd67e7e5a82c9c458b4c992c680235cae0fc205fde6ae3915f43f3ff7", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/jdopensource/JoyAI-Image-Edit-Diffusers/tree/4b41fb25d961f37668750178ccbb380da326201c", - "sourceRevision": "jdopensource/JoyAI-Image-Edit-Diffusers@4b41fb25d961f37668750178ccbb380da326201c", + "sourceUrl": "https://huggingface.co/black-forest-labs/FLUX.1-Kontext-dev/tree/24e9dedc4ef646698dc8eb4e18ae2cec3c9fea0d", + "sourceRevision": "black-forest-labs/FLUX.1-Kontext-dev@24e9dedc4ef646698dc8eb4e18ae2cec3c9fea0d", "sourceLicense": "MoDiff-authored Gallery metadata", "modelTerms": [ - "Publisher model terms at https://huggingface.co/jdopensource/JoyAI-Image-Edit-Diffusers/tree/4b41fb25d961f37668750178ccbb380da326201c" + "Publisher model terms at https://huggingface.co/black-forest-labs/FLUX.1-Kontext-dev/tree/24e9dedc4ef646698dc8eb4e18ae2cec3c9fea0d" ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "jdopensource/JoyAI-Image-Edit-Diffusers@4b41fb25d961f37668750178ccbb380da326201c https://huggingface.co/jdopensource/JoyAI-Image-Edit-Diffusers/tree/4b41fb25d961f37668750178ccbb380da326201c" + "black-forest-labs/FLUX.1-Kontext-dev@24e9dedc4ef646698dc8eb4e18ae2cec3c9fea0d https://huggingface.co/black-forest-labs/FLUX.1-Kontext-dev/tree/24e9dedc4ef646698dc8eb4e18ae2cec3c9fea0d" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "4fc7c52588176cb1f6ba6d699d08741b2986ea71ea87bac650d261716a10b24c", + "humanApprovalPacketSHA256": "60b01498a2df5f4e4622cdc2f9a43c83d187820780d2425a19718c13707db501", "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", - "provenanceTemplateId": "joyimage_herbarium_rainy_porthole" + "provenanceTemplateId": "kontext_wide_water_alpine_ridge" }, { - "path": "template-gallery/reviews/kandinsky3_ginkgo_on_slate.original-provenance.json", - "sha256": "sha256:bytes:31189848b609ec308b9bd427975d0b09d502ff7583321e88a7ba813f5a968db8", + "path": "template-gallery/reviews/lcm_dawn_alpine_lake.quality-review.json", + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "humanLikenessConsent": "not-applicable", + "marks": [], + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-20", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "ba369c5fff89e379be66714d3ecbf1a0e3a9555e2b5ffbc9cb54210d862ec30b", + "publicationBasis": "Maintainer approved the exact Whisper JSON and both exact LCM images, accepted the disclosed LCM changes, and authorized publication of the associated redacted Gallery records.", + "creationMethod": "Project-authored redacted retained Gallery review, provenance or registration metadata", + "sourceUrl": null, + "sourceRevision": null, + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [], + "aiGenerated": false, + "requiredAttribution": [], + "assetLicense": "Apache-2.0", + "provenanceTemplateId": "lcm_dawn_alpine_lake", + "sha256": "sha256:bytes:e5c590a6287147faad9d5eab5676b8d2bb8224a8581a2043cf78c8dd50dcb0b9", + "publishDecision": "approved", + "holdReason": null + }, + { + "path": "template-gallery/reviews/lcm_dawn_alpine_lake.retained-template-provenance.json", + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "humanLikenessConsent": "not-applicable", + "marks": [], + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-20", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "ba369c5fff89e379be66714d3ecbf1a0e3a9555e2b5ffbc9cb54210d862ec30b", + "publicationBasis": "Maintainer approved the exact Whisper JSON and both exact LCM images, accepted the disclosed LCM changes, and authorized publication of the associated redacted Gallery records.", + "creationMethod": "Project-authored redacted retained Gallery review, provenance or registration metadata", + "sourceUrl": null, + "sourceRevision": null, + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [], + "aiGenerated": false, + "requiredAttribution": [], + "assetLicense": "Apache-2.0", + "provenanceTemplateId": "lcm_dawn_alpine_lake", + "sha256": "sha256:bytes:767b8d794460fca5a3e1c79a89aeaa2b1dcdb815d47702e1063ed35d07163247", + "publishDecision": "approved", + "holdReason": null + }, + { + "path": "template-gallery/reviews/longcat_clear_glass_at_the_bookshop.original-provenance.json", + "sha256": "sha256:bytes:055c3ff5cf5493c80e675b8cd97de5c448856204330c1434522cc0c91482b522", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/kandinsky-community/kandinsky-3/tree/bf79e6c219da8a94abb50235fdc4567eb8fb4632", - "sourceRevision": "kandinsky-community/kandinsky-3@bf79e6c219da8a94abb50235fdc4567eb8fb4632", + "sourceUrl": "https://huggingface.co/meituan-longcat/LongCat-Image-Edit/tree/7b54ef423aa7854be7861600024be5c56ab7875a", + "sourceRevision": "meituan-longcat/LongCat-Image-Edit@7b54ef423aa7854be7861600024be5c56ab7875a", "sourceLicense": "MoDiff-authored Gallery metadata", "modelTerms": [ - "Publisher model terms at https://huggingface.co/kandinsky-community/kandinsky-3/tree/bf79e6c219da8a94abb50235fdc4567eb8fb4632" + "Publisher model terms at https://huggingface.co/meituan-longcat/LongCat-Image-Edit/tree/7b54ef423aa7854be7861600024be5c56ab7875a" ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "kandinsky-community/kandinsky-3@bf79e6c219da8a94abb50235fdc4567eb8fb4632 https://huggingface.co/kandinsky-community/kandinsky-3/tree/bf79e6c219da8a94abb50235fdc4567eb8fb4632" + "meituan-longcat/LongCat-Image-Edit@7b54ef423aa7854be7861600024be5c56ab7875a https://huggingface.co/meituan-longcat/LongCat-Image-Edit/tree/7b54ef423aa7854be7861600024be5c56ab7875a" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", - "reviewedAt": "2026-11-24", + "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "d216f065bdc316366c6183592f657bcfbbd7cb05acd0e510c6b3877fe56bcec2", - "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped six saved cases with model terms retained.", - "provenanceTemplateId": "kandinsky3_ginkgo_on_slate" + "humanApprovalPacketSHA256": "60b01498a2df5f4e4622cdc2f9a43c83d187820780d2425a19718c13707db501", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "longcat_clear_glass_at_the_bookshop" }, { - "path": "template-gallery/reviews/kandinsky3_ginkgo_on_slate.original-review.json", - "sha256": "sha256:bytes:3d23527148ae151f8b05b623d2739f79ab4bcd37202db7b331e391bdf7b6bedf", + "path": "template-gallery/reviews/longcat_clear_glass_at_the_bookshop.original-review.json", + "sha256": "sha256:bytes:dabecbb61888f492a4e7d8f45e368097c7f286df24c163c8b5e753ce4553d0ff", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/kandinsky-community/kandinsky-3/tree/bf79e6c219da8a94abb50235fdc4567eb8fb4632", - "sourceRevision": "kandinsky-community/kandinsky-3@bf79e6c219da8a94abb50235fdc4567eb8fb4632", + "sourceUrl": "https://huggingface.co/meituan-longcat/LongCat-Image-Edit/tree/7b54ef423aa7854be7861600024be5c56ab7875a", + "sourceRevision": "meituan-longcat/LongCat-Image-Edit@7b54ef423aa7854be7861600024be5c56ab7875a", "sourceLicense": "MoDiff-authored Gallery metadata", "modelTerms": [ - "Publisher model terms at https://huggingface.co/kandinsky-community/kandinsky-3/tree/bf79e6c219da8a94abb50235fdc4567eb8fb4632" + "Publisher model terms at https://huggingface.co/meituan-longcat/LongCat-Image-Edit/tree/7b54ef423aa7854be7861600024be5c56ab7875a" ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "kandinsky-community/kandinsky-3@bf79e6c219da8a94abb50235fdc4567eb8fb4632 https://huggingface.co/kandinsky-community/kandinsky-3/tree/bf79e6c219da8a94abb50235fdc4567eb8fb4632" + "meituan-longcat/LongCat-Image-Edit@7b54ef423aa7854be7861600024be5c56ab7875a https://huggingface.co/meituan-longcat/LongCat-Image-Edit/tree/7b54ef423aa7854be7861600024be5c56ab7875a" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", - "reviewedAt": "2026-11-24", + "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "d216f065bdc316366c6183592f657bcfbbd7cb05acd0e510c6b3877fe56bcec2", - "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped six saved cases with model terms retained.", - "provenanceTemplateId": "kandinsky3_ginkgo_on_slate" + "humanApprovalPacketSHA256": "60b01498a2df5f4e4622cdc2f9a43c83d187820780d2425a19718c13707db501", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "longcat_clear_glass_at_the_bookshop" }, { - "path": "template-gallery/reviews/kandinsky3_ginkgo_on_slate.quality-review.json", - "sha256": "sha256:bytes:ce1d21e1a50c1861198590eda8f52dde82afccaceae93500fbaf612e1b1a2426", + "path": "template-gallery/reviews/longcat_clear_glass_at_the_bookshop.quality-review.json", + "sha256": "sha256:bytes:03185586cf4d78ccfa2aae9dcb3962e82b611d03bb5fefc03bdf34851d50a9ed", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/kandinsky-community/kandinsky-3/tree/bf79e6c219da8a94abb50235fdc4567eb8fb4632", - "sourceRevision": "kandinsky-community/kandinsky-3@bf79e6c219da8a94abb50235fdc4567eb8fb4632", + "sourceUrl": "https://huggingface.co/meituan-longcat/LongCat-Image-Edit/tree/7b54ef423aa7854be7861600024be5c56ab7875a", + "sourceRevision": "meituan-longcat/LongCat-Image-Edit@7b54ef423aa7854be7861600024be5c56ab7875a", "sourceLicense": "MoDiff-authored Gallery metadata", "modelTerms": [ - "Publisher model terms at https://huggingface.co/kandinsky-community/kandinsky-3/tree/bf79e6c219da8a94abb50235fdc4567eb8fb4632" + "Publisher model terms at https://huggingface.co/meituan-longcat/LongCat-Image-Edit/tree/7b54ef423aa7854be7861600024be5c56ab7875a" ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "kandinsky-community/kandinsky-3@bf79e6c219da8a94abb50235fdc4567eb8fb4632 https://huggingface.co/kandinsky-community/kandinsky-3/tree/bf79e6c219da8a94abb50235fdc4567eb8fb4632" + "meituan-longcat/LongCat-Image-Edit@7b54ef423aa7854be7861600024be5c56ab7875a https://huggingface.co/meituan-longcat/LongCat-Image-Edit/tree/7b54ef423aa7854be7861600024be5c56ab7875a" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", - "reviewedAt": "2026-11-24", + "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "d216f065bdc316366c6183592f657bcfbbd7cb05acd0e510c6b3877fe56bcec2", - "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped six saved cases with model terms retained.", - "provenanceTemplateId": "kandinsky3_ginkgo_on_slate" + "humanApprovalPacketSHA256": "60b01498a2df5f4e4622cdc2f9a43c83d187820780d2425a19718c13707db501", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "longcat_clear_glass_at_the_bookshop" }, { - "path": "template-gallery/reviews/kandinsky3_ginkgo_on_slate.retained-template-provenance.json", - "sha256": "sha256:bytes:5be139ba899439bf234dee3274572a5062dbfdbb0fbf6ba12f23b64ce47a2fc3", + "path": "template-gallery/reviews/longcat_clear_glass_at_the_bookshop.retained-template-provenance.json", + "sha256": "sha256:bytes:8df85b747c9a5b0fe11bb20d81d64b1df7bccb96ec505aa99855adbcf9dd6e51", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/kandinsky-community/kandinsky-3/tree/bf79e6c219da8a94abb50235fdc4567eb8fb4632", - "sourceRevision": "kandinsky-community/kandinsky-3@bf79e6c219da8a94abb50235fdc4567eb8fb4632", + "sourceUrl": "https://huggingface.co/meituan-longcat/LongCat-Image-Edit/tree/7b54ef423aa7854be7861600024be5c56ab7875a", + "sourceRevision": "meituan-longcat/LongCat-Image-Edit@7b54ef423aa7854be7861600024be5c56ab7875a", "sourceLicense": "MoDiff-authored Gallery metadata", "modelTerms": [ - "Publisher model terms at https://huggingface.co/kandinsky-community/kandinsky-3/tree/bf79e6c219da8a94abb50235fdc4567eb8fb4632" + "Publisher model terms at https://huggingface.co/meituan-longcat/LongCat-Image-Edit/tree/7b54ef423aa7854be7861600024be5c56ab7875a" ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "kandinsky-community/kandinsky-3@bf79e6c219da8a94abb50235fdc4567eb8fb4632 https://huggingface.co/kandinsky-community/kandinsky-3/tree/bf79e6c219da8a94abb50235fdc4567eb8fb4632" + "meituan-longcat/LongCat-Image-Edit@7b54ef423aa7854be7861600024be5c56ab7875a https://huggingface.co/meituan-longcat/LongCat-Image-Edit/tree/7b54ef423aa7854be7861600024be5c56ab7875a" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", - "reviewedAt": "2026-11-24", + "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "d216f065bdc316366c6183592f657bcfbbd7cb05acd0e510c6b3877fe56bcec2", - "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped six saved cases with model terms retained.", - "provenanceTemplateId": "kandinsky3_ginkgo_on_slate" + "humanApprovalPacketSHA256": "60b01498a2df5f4e4622cdc2f9a43c83d187820780d2425a19718c13707db501", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "longcat_clear_glass_at_the_bookshop" }, { - "path": "template-gallery/reviews/kandinsky3_smoked_glass_on_limestone.original-provenance.json", - "sha256": "sha256:bytes:e62c78c152e7273c32f506b361d4cece5e2a61939ab8763078fb04111795a098", + "path": "template-gallery/reviews/longcat_florist_end_of_lane.original-provenance.json", + "sha256": "sha256:bytes:31fa3b13f1a585031ab220cb3a1039a9e7c2ed40757801c56cbcc846125ac7b8", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/kandinsky-community/kandinsky-3/tree/bf79e6c219da8a94abb50235fdc4567eb8fb4632", - "sourceRevision": "kandinsky-community/kandinsky-3@bf79e6c219da8a94abb50235fdc4567eb8fb4632", + "sourceUrl": "https://huggingface.co/meituan-longcat/LongCat-Image/tree/d2ea50b79a930074c37b9b97ce45e3b2ea8cf4d8", + "sourceRevision": "meituan-longcat/LongCat-Image@d2ea50b79a930074c37b9b97ce45e3b2ea8cf4d8", "sourceLicense": "MoDiff-authored Gallery metadata", "modelTerms": [ - "Publisher model terms at https://huggingface.co/kandinsky-community/kandinsky-3/tree/bf79e6c219da8a94abb50235fdc4567eb8fb4632" + "Publisher model terms at https://huggingface.co/meituan-longcat/LongCat-Image/tree/d2ea50b79a930074c37b9b97ce45e3b2ea8cf4d8" ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "kandinsky-community/kandinsky-3@bf79e6c219da8a94abb50235fdc4567eb8fb4632 https://huggingface.co/kandinsky-community/kandinsky-3/tree/bf79e6c219da8a94abb50235fdc4567eb8fb4632" + "meituan-longcat/LongCat-Image@d2ea50b79a930074c37b9b97ce45e3b2ea8cf4d8 https://huggingface.co/meituan-longcat/LongCat-Image/tree/d2ea50b79a930074c37b9b97ce45e3b2ea8cf4d8" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "60b01498a2df5f4e4622cdc2f9a43c83d187820780d2425a19718c13707db501", + "humanApprovalPacketSHA256": "4fc7c52588176cb1f6ba6d699d08741b2986ea71ea87bac650d261716a10b24c", "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", - "provenanceTemplateId": "kandinsky3_smoked_glass_on_limestone" + "provenanceTemplateId": "longcat_florist_end_of_lane" }, { - "path": "template-gallery/reviews/kandinsky3_smoked_glass_on_limestone.original-review.json", - "sha256": "sha256:bytes:307daef8829faa1835d0d7092e594aa8bf1b703c51157a8cc7581aaf1e84d437", + "path": "template-gallery/reviews/longcat_florist_end_of_lane.original-review.json", + "sha256": "sha256:bytes:adc8b682f80f09677b97fa57651d336d8b966f7e19586256e6559505f57f9cfc", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/kandinsky-community/kandinsky-3/tree/bf79e6c219da8a94abb50235fdc4567eb8fb4632", - "sourceRevision": "kandinsky-community/kandinsky-3@bf79e6c219da8a94abb50235fdc4567eb8fb4632", + "sourceUrl": "https://huggingface.co/meituan-longcat/LongCat-Image/tree/d2ea50b79a930074c37b9b97ce45e3b2ea8cf4d8", + "sourceRevision": "meituan-longcat/LongCat-Image@d2ea50b79a930074c37b9b97ce45e3b2ea8cf4d8", "sourceLicense": "MoDiff-authored Gallery metadata", "modelTerms": [ - "Publisher model terms at https://huggingface.co/kandinsky-community/kandinsky-3/tree/bf79e6c219da8a94abb50235fdc4567eb8fb4632" + "Publisher model terms at https://huggingface.co/meituan-longcat/LongCat-Image/tree/d2ea50b79a930074c37b9b97ce45e3b2ea8cf4d8" ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "kandinsky-community/kandinsky-3@bf79e6c219da8a94abb50235fdc4567eb8fb4632 https://huggingface.co/kandinsky-community/kandinsky-3/tree/bf79e6c219da8a94abb50235fdc4567eb8fb4632" + "meituan-longcat/LongCat-Image@d2ea50b79a930074c37b9b97ce45e3b2ea8cf4d8 https://huggingface.co/meituan-longcat/LongCat-Image/tree/d2ea50b79a930074c37b9b97ce45e3b2ea8cf4d8" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "60b01498a2df5f4e4622cdc2f9a43c83d187820780d2425a19718c13707db501", + "humanApprovalPacketSHA256": "4fc7c52588176cb1f6ba6d699d08741b2986ea71ea87bac650d261716a10b24c", "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", - "provenanceTemplateId": "kandinsky3_smoked_glass_on_limestone" + "provenanceTemplateId": "longcat_florist_end_of_lane" }, { - "path": "template-gallery/reviews/kandinsky3_smoked_glass_on_limestone.quality-review.json", - "sha256": "sha256:bytes:e6d9b0e253b694fab331fe62247c0adf47c2947d841ba8da08629522a37613ef", + "path": "template-gallery/reviews/longcat_florist_end_of_lane.quality-review.json", + "sha256": "sha256:bytes:c2b07ec9dccd4ac97f229ff2c836b5215377c240b8455db32a4f72f0313f7a4c", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/kandinsky-community/kandinsky-3/tree/bf79e6c219da8a94abb50235fdc4567eb8fb4632", - "sourceRevision": "kandinsky-community/kandinsky-3@bf79e6c219da8a94abb50235fdc4567eb8fb4632", + "sourceUrl": "https://huggingface.co/meituan-longcat/LongCat-Image/tree/d2ea50b79a930074c37b9b97ce45e3b2ea8cf4d8", + "sourceRevision": "meituan-longcat/LongCat-Image@d2ea50b79a930074c37b9b97ce45e3b2ea8cf4d8", "sourceLicense": "MoDiff-authored Gallery metadata", "modelTerms": [ - "Publisher model terms at https://huggingface.co/kandinsky-community/kandinsky-3/tree/bf79e6c219da8a94abb50235fdc4567eb8fb4632" + "Publisher model terms at https://huggingface.co/meituan-longcat/LongCat-Image/tree/d2ea50b79a930074c37b9b97ce45e3b2ea8cf4d8" ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "kandinsky-community/kandinsky-3@bf79e6c219da8a94abb50235fdc4567eb8fb4632 https://huggingface.co/kandinsky-community/kandinsky-3/tree/bf79e6c219da8a94abb50235fdc4567eb8fb4632" + "meituan-longcat/LongCat-Image@d2ea50b79a930074c37b9b97ce45e3b2ea8cf4d8 https://huggingface.co/meituan-longcat/LongCat-Image/tree/d2ea50b79a930074c37b9b97ce45e3b2ea8cf4d8" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "60b01498a2df5f4e4622cdc2f9a43c83d187820780d2425a19718c13707db501", + "humanApprovalPacketSHA256": "4fc7c52588176cb1f6ba6d699d08741b2986ea71ea87bac650d261716a10b24c", "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", - "provenanceTemplateId": "kandinsky3_smoked_glass_on_limestone" + "provenanceTemplateId": "longcat_florist_end_of_lane" }, { - "path": "template-gallery/reviews/kandinsky3_smoked_glass_on_limestone.retained-template-provenance.json", - "sha256": "sha256:bytes:5dbf90cd4b0f214fdae6e49c20ec03e38fc8552275d07e900ae737af469ea66a", + "path": "template-gallery/reviews/longcat_florist_end_of_lane.retained-template-provenance.json", + "sha256": "sha256:bytes:14da3c1cbc2f7ea57b4ec3d84f1a78d72a4e22b62ce0e0d757db78297c3fbed9", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/kandinsky-community/kandinsky-3/tree/bf79e6c219da8a94abb50235fdc4567eb8fb4632", - "sourceRevision": "kandinsky-community/kandinsky-3@bf79e6c219da8a94abb50235fdc4567eb8fb4632", + "sourceUrl": "https://huggingface.co/meituan-longcat/LongCat-Image/tree/d2ea50b79a930074c37b9b97ce45e3b2ea8cf4d8", + "sourceRevision": "meituan-longcat/LongCat-Image@d2ea50b79a930074c37b9b97ce45e3b2ea8cf4d8", "sourceLicense": "MoDiff-authored Gallery metadata", "modelTerms": [ - "Publisher model terms at https://huggingface.co/kandinsky-community/kandinsky-3/tree/bf79e6c219da8a94abb50235fdc4567eb8fb4632" + "Publisher model terms at https://huggingface.co/meituan-longcat/LongCat-Image/tree/d2ea50b79a930074c37b9b97ce45e3b2ea8cf4d8" ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "kandinsky-community/kandinsky-3@bf79e6c219da8a94abb50235fdc4567eb8fb4632 https://huggingface.co/kandinsky-community/kandinsky-3/tree/bf79e6c219da8a94abb50235fdc4567eb8fb4632" + "meituan-longcat/LongCat-Image@d2ea50b79a930074c37b9b97ce45e3b2ea8cf4d8 https://huggingface.co/meituan-longcat/LongCat-Image/tree/d2ea50b79a930074c37b9b97ce45e3b2ea8cf4d8" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "60b01498a2df5f4e4622cdc2f9a43c83d187820780d2425a19718c13707db501", + "humanApprovalPacketSHA256": "4fc7c52588176cb1f6ba6d699d08741b2986ea71ea87bac650d261716a10b24c", "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", - "provenanceTemplateId": "kandinsky3_smoked_glass_on_limestone" + "provenanceTemplateId": "longcat_florist_end_of_lane" }, { - "path": "template-gallery/reviews/kontext_wide_water_alpine_ridge.original-provenance.json", - "sha256": "sha256:bytes:8f93f5553eeb580705586eda046026ac8ed8742b09defff688fd67892e131d90", + "path": "template-gallery/reviews/longcat_last_tram_at_dusk.original-provenance.json", + "sha256": "sha256:bytes:34b322e643eacf47f4c02019564cb85720cb3b9b8334d524e47226d60c4faa60", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/black-forest-labs/FLUX.1-Kontext-dev/tree/24e9dedc4ef646698dc8eb4e18ae2cec3c9fea0d", - "sourceRevision": "black-forest-labs/FLUX.1-Kontext-dev@24e9dedc4ef646698dc8eb4e18ae2cec3c9fea0d", + "sourceUrl": "https://huggingface.co/ruixiangma/LongCat-AudioDiT-1B-Diffusers/tree/f4c063ea37f262ba5e6129ebd80095a6d6a9de4d", + "sourceRevision": "ruixiangma/LongCat-AudioDiT-1B-Diffusers@f4c063ea37f262ba5e6129ebd80095a6d6a9de4d", "sourceLicense": "MoDiff-authored Gallery metadata", "modelTerms": [ - "Publisher model terms at https://huggingface.co/black-forest-labs/FLUX.1-Kontext-dev/tree/24e9dedc4ef646698dc8eb4e18ae2cec3c9fea0d" + "Publisher model terms at https://huggingface.co/ruixiangma/LongCat-AudioDiT-1B-Diffusers/tree/f4c063ea37f262ba5e6129ebd80095a6d6a9de4d" ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "black-forest-labs/FLUX.1-Kontext-dev@24e9dedc4ef646698dc8eb4e18ae2cec3c9fea0d https://huggingface.co/black-forest-labs/FLUX.1-Kontext-dev/tree/24e9dedc4ef646698dc8eb4e18ae2cec3c9fea0d" + "ruixiangma/LongCat-AudioDiT-1B-Diffusers@f4c063ea37f262ba5e6129ebd80095a6d6a9de4d https://huggingface.co/ruixiangma/LongCat-AudioDiT-1B-Diffusers/tree/f4c063ea37f262ba5e6129ebd80095a6d6a9de4d" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "60b01498a2df5f4e4622cdc2f9a43c83d187820780d2425a19718c13707db501", + "humanApprovalPacketSHA256": "15c604ae5df3abed63c95046a78859adb870f415f45c06a99f58ad652fc0dea2", "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", - "provenanceTemplateId": "kontext_wide_water_alpine_ridge" + "provenanceTemplateId": "longcat_last_tram_at_dusk" }, { - "path": "template-gallery/reviews/kontext_wide_water_alpine_ridge.original-review.json", - "sha256": "sha256:bytes:f54561af3e759232c7e01a2515d98b66c38d56d7fe8ece573ce2f83bfcbbf3f8", + "path": "template-gallery/reviews/longcat_last_tram_at_dusk.original-review.json", + "sha256": "sha256:bytes:7ee2f38d8dd9199e6a754312dba9e962007389ba4527f0aebb96272b454394a5", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/black-forest-labs/FLUX.1-Kontext-dev/tree/24e9dedc4ef646698dc8eb4e18ae2cec3c9fea0d", - "sourceRevision": "black-forest-labs/FLUX.1-Kontext-dev@24e9dedc4ef646698dc8eb4e18ae2cec3c9fea0d", + "sourceUrl": "https://huggingface.co/ruixiangma/LongCat-AudioDiT-1B-Diffusers/tree/f4c063ea37f262ba5e6129ebd80095a6d6a9de4d", + "sourceRevision": "ruixiangma/LongCat-AudioDiT-1B-Diffusers@f4c063ea37f262ba5e6129ebd80095a6d6a9de4d", "sourceLicense": "MoDiff-authored Gallery metadata", "modelTerms": [ - "Publisher model terms at https://huggingface.co/black-forest-labs/FLUX.1-Kontext-dev/tree/24e9dedc4ef646698dc8eb4e18ae2cec3c9fea0d" + "Publisher model terms at https://huggingface.co/ruixiangma/LongCat-AudioDiT-1B-Diffusers/tree/f4c063ea37f262ba5e6129ebd80095a6d6a9de4d" ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "black-forest-labs/FLUX.1-Kontext-dev@24e9dedc4ef646698dc8eb4e18ae2cec3c9fea0d https://huggingface.co/black-forest-labs/FLUX.1-Kontext-dev/tree/24e9dedc4ef646698dc8eb4e18ae2cec3c9fea0d" + "ruixiangma/LongCat-AudioDiT-1B-Diffusers@f4c063ea37f262ba5e6129ebd80095a6d6a9de4d https://huggingface.co/ruixiangma/LongCat-AudioDiT-1B-Diffusers/tree/f4c063ea37f262ba5e6129ebd80095a6d6a9de4d" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "60b01498a2df5f4e4622cdc2f9a43c83d187820780d2425a19718c13707db501", + "humanApprovalPacketSHA256": "15c604ae5df3abed63c95046a78859adb870f415f45c06a99f58ad652fc0dea2", "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", - "provenanceTemplateId": "kontext_wide_water_alpine_ridge" + "provenanceTemplateId": "longcat_last_tram_at_dusk" }, { - "path": "template-gallery/reviews/kontext_wide_water_alpine_ridge.quality-review.json", - "sha256": "sha256:bytes:2dcf22dab88c45ead8d951f9443f61657d37eb30d07add1183a3633dbffcfe98", + "path": "template-gallery/reviews/longcat_last_tram_at_dusk.quality-review.json", + "sha256": "sha256:bytes:f2883c589ff0313062b4c0c995b35ce08d837f02efb4f6f097d004961b8d298f", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/black-forest-labs/FLUX.1-Kontext-dev/tree/24e9dedc4ef646698dc8eb4e18ae2cec3c9fea0d", - "sourceRevision": "black-forest-labs/FLUX.1-Kontext-dev@24e9dedc4ef646698dc8eb4e18ae2cec3c9fea0d", + "sourceUrl": "https://huggingface.co/ruixiangma/LongCat-AudioDiT-1B-Diffusers/tree/f4c063ea37f262ba5e6129ebd80095a6d6a9de4d", + "sourceRevision": "ruixiangma/LongCat-AudioDiT-1B-Diffusers@f4c063ea37f262ba5e6129ebd80095a6d6a9de4d", "sourceLicense": "MoDiff-authored Gallery metadata", "modelTerms": [ - "Publisher model terms at https://huggingface.co/black-forest-labs/FLUX.1-Kontext-dev/tree/24e9dedc4ef646698dc8eb4e18ae2cec3c9fea0d" + "Publisher model terms at https://huggingface.co/ruixiangma/LongCat-AudioDiT-1B-Diffusers/tree/f4c063ea37f262ba5e6129ebd80095a6d6a9de4d" ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "black-forest-labs/FLUX.1-Kontext-dev@24e9dedc4ef646698dc8eb4e18ae2cec3c9fea0d https://huggingface.co/black-forest-labs/FLUX.1-Kontext-dev/tree/24e9dedc4ef646698dc8eb4e18ae2cec3c9fea0d" + "ruixiangma/LongCat-AudioDiT-1B-Diffusers@f4c063ea37f262ba5e6129ebd80095a6d6a9de4d https://huggingface.co/ruixiangma/LongCat-AudioDiT-1B-Diffusers/tree/f4c063ea37f262ba5e6129ebd80095a6d6a9de4d" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "60b01498a2df5f4e4622cdc2f9a43c83d187820780d2425a19718c13707db501", + "humanApprovalPacketSHA256": "15c604ae5df3abed63c95046a78859adb870f415f45c06a99f58ad652fc0dea2", "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", - "provenanceTemplateId": "kontext_wide_water_alpine_ridge" + "provenanceTemplateId": "longcat_last_tram_at_dusk" }, { - "path": "template-gallery/reviews/kontext_wide_water_alpine_ridge.retained-template-provenance.json", - "sha256": "sha256:bytes:97059d8dd67e7e5a82c9c458b4c992c680235cae0fc205fde6ae3915f43f3ff7", + "path": "template-gallery/reviews/longcat_last_tram_at_dusk.retained-template-provenance.json", + "sha256": "sha256:bytes:071240681910f119ab723f580b68bc1037896a28132a51fbb338e61bf9f8a0bf", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/black-forest-labs/FLUX.1-Kontext-dev/tree/24e9dedc4ef646698dc8eb4e18ae2cec3c9fea0d", - "sourceRevision": "black-forest-labs/FLUX.1-Kontext-dev@24e9dedc4ef646698dc8eb4e18ae2cec3c9fea0d", + "sourceUrl": "https://huggingface.co/ruixiangma/LongCat-AudioDiT-1B-Diffusers/tree/f4c063ea37f262ba5e6129ebd80095a6d6a9de4d", + "sourceRevision": "ruixiangma/LongCat-AudioDiT-1B-Diffusers@f4c063ea37f262ba5e6129ebd80095a6d6a9de4d", "sourceLicense": "MoDiff-authored Gallery metadata", "modelTerms": [ - "Publisher model terms at https://huggingface.co/black-forest-labs/FLUX.1-Kontext-dev/tree/24e9dedc4ef646698dc8eb4e18ae2cec3c9fea0d" + "Publisher model terms at https://huggingface.co/ruixiangma/LongCat-AudioDiT-1B-Diffusers/tree/f4c063ea37f262ba5e6129ebd80095a6d6a9de4d" ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "black-forest-labs/FLUX.1-Kontext-dev@24e9dedc4ef646698dc8eb4e18ae2cec3c9fea0d https://huggingface.co/black-forest-labs/FLUX.1-Kontext-dev/tree/24e9dedc4ef646698dc8eb4e18ae2cec3c9fea0d" + "ruixiangma/LongCat-AudioDiT-1B-Diffusers@f4c063ea37f262ba5e6129ebd80095a6d6a9de4d https://huggingface.co/ruixiangma/LongCat-AudioDiT-1B-Diffusers/tree/f4c063ea37f262ba5e6129ebd80095a6d6a9de4d" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "60b01498a2df5f4e4622cdc2f9a43c83d187820780d2425a19718c13707db501", + "humanApprovalPacketSHA256": "15c604ae5df3abed63c95046a78859adb870f415f45c06a99f58ad652fc0dea2", "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", - "provenanceTemplateId": "kontext_wide_water_alpine_ridge" + "provenanceTemplateId": "longcat_last_tram_at_dusk" }, { - "path": "template-gallery/reviews/lcm_dawn_alpine_lake.quality-review.json", - "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "path": "template-gallery/reviews/low_vram.quality-review.json", + "sha256": "sha256:bytes:53b25669d880814ac612e803b0c6f2abbcdd8853e7ea4ca6e1e6d0b97fa23352", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers", + "creationMethod": "MoDiff-authored technical provenance or quality metadata from the explicitly approved six-image source packet", + "sourceUrl": null, + "sourceRevision": null, + "sourceLicense": "Apache-2.0 project-authored metadata; generated-media terms remain in their exact per-file records", + "modelTerms": [], + "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], - "reviewedBy": "MoDiff workspace maintainer", - "reviewedAt": "2026-11-20", - "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "ba369c5fff89e379be66714d3ecbf1a0e3a9555e2b5ffbc9cb54210d862ec30b", - "publicationBasis": "Maintainer approved the exact Whisper JSON and both exact LCM images, accepted the disclosed LCM changes, and authorized publication of the associated redacted Gallery records.", - "creationMethod": "Project-authored redacted retained Gallery review, provenance or registration metadata", + "requiredAttribution": [], + "assetLicense": "Apache-2.0", + "reviewedBy": "SOURAV DAS", + "reviewedAt": "2026-11-09", + "reviewClass": "per-file-human-approved-six-z-registration", + "provenanceTemplateId": "low_vram", + "humanApprovalPacketSHA256": "9b728a5f8535fc1ba3c03d2e2759d7ac795a586fafab51beb1509379ed388934" + }, + { + "path": "template-gallery/reviews/low_vram.reviewed-provenance.json", + "sha256": "sha256:bytes:a07f1942cb39c873d7ccd1b99dbece3c203d73296712aa0168a3edf4054b8076", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers", + "creationMethod": "MoDiff-authored technical provenance or quality metadata from the explicitly approved six-image source packet", "sourceUrl": null, "sourceRevision": null, - "sourceLicense": "MoDiff-authored Gallery metadata", + "sourceLicense": "Apache-2.0 project-authored metadata; generated-media terms remain in their exact per-file records", "modelTerms": [], "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], "requiredAttribution": [], "assetLicense": "Apache-2.0", - "provenanceTemplateId": "lcm_dawn_alpine_lake", - "sha256": "sha256:bytes:e5c590a6287147faad9d5eab5676b8d2bb8224a8581a2043cf78c8dd50dcb0b9", + "reviewedBy": "SOURAV DAS", + "reviewedAt": "2026-11-09", + "reviewClass": "per-file-human-approved-six-z-registration", + "provenanceTemplateId": "low_vram", + "humanApprovalPacketSHA256": "9b728a5f8535fc1ba3c03d2e2759d7ac795a586fafab51beb1509379ed388934" + }, + { + "creatorOrRightsholder": "MoDiff project maintainers", + "creationMethod": "Project-authored redacted technical/review records or versioned declarations for seven maintainer-accepted native video replacements", + "sourceUrl": null, + "sourceRevision": null, + "sourceLicense": "Apache-2.0 project-authored metadata; media and model terms remain separate", + "modelTerms": [], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [], + "assetLicense": "Apache-2.0", + "path": "template-gallery/reviews/ltx_video_animated_story.quality-review.json", + "sha256": "sha256:bytes:1ec83b229ba5c7995c8ada2629c448334965939304ffddc7a70161c8b7e1b7f1", "publishDecision": "approved", - "holdReason": null + "holdReason": null, + "reviewedBy": "SOURAV DAS", + "reviewedAt": "2026-11-15", + "reviewClass": "per-file-maintainer-accepted-native-seven-registration", + "humanApprovalPacketSHA256": "95c7c2ed080c3d618db1701b066724660595337460c46df8305b50810783eaa3", + "publicationBasis": "these are approved, you can register them", + "provenanceTemplateId": "ltx_video_animated_story" }, { - "path": "template-gallery/reviews/lcm_dawn_alpine_lake.retained-template-provenance.json", - "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creatorOrRightsholder": "MoDiff project maintainers", + "creationMethod": "Project-authored redacted technical/review records or versioned declarations for seven maintainer-accepted native video replacements", + "sourceUrl": null, + "sourceRevision": null, + "sourceLicense": "Apache-2.0 project-authored metadata; media and model terms remain separate", + "modelTerms": [], + "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], - "reviewedBy": "MoDiff workspace maintainer", - "reviewedAt": "2026-11-20", - "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "ba369c5fff89e379be66714d3ecbf1a0e3a9555e2b5ffbc9cb54210d862ec30b", - "publicationBasis": "Maintainer approved the exact Whisper JSON and both exact LCM images, accepted the disclosed LCM changes, and authorized publication of the associated redacted Gallery records.", - "creationMethod": "Project-authored redacted retained Gallery review, provenance or registration metadata", + "requiredAttribution": [], + "assetLicense": "Apache-2.0", + "path": "template-gallery/reviews/ltx_video_animated_story.reviewed-provenance.json", + "sha256": "sha256:bytes:3910ae6f164eb978e38b16e1eab92d73fe7f55dac543b681416ba0b8c43b440d", + "publishDecision": "approved", + "holdReason": null, + "reviewedBy": "SOURAV DAS", + "reviewedAt": "2026-11-15", + "reviewClass": "per-file-maintainer-accepted-native-seven-registration", + "humanApprovalPacketSHA256": "95c7c2ed080c3d618db1701b066724660595337460c46df8305b50810783eaa3", + "publicationBasis": "these are approved, you can register them", + "provenanceTemplateId": "ltx_video_animated_story" + }, + { + "path": "template-gallery/reviews/ltx_video_image_to_video.quality-review.json", + "sha256": "sha256:bytes:6c31e71b0b9e6a6a1c46f55e058dd208b7b2f510f6eeb332648575da388f9431", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers", + "creationMethod": "Project-authored Gallery manifest, native provenance or accepted quality review", "sourceUrl": null, "sourceRevision": null, - "sourceLicense": "MoDiff-authored Gallery metadata", + "sourceLicense": "Apache-2.0 project-authored metadata", "modelTerms": [], "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], "requiredAttribution": [], "assetLicense": "Apache-2.0", - "provenanceTemplateId": "lcm_dawn_alpine_lake", - "sha256": "sha256:bytes:767b8d794460fca5a3e1c79a89aeaa2b1dcdb815d47702e1063ed35d07163247", + "reviewedBy": "SOURAV DAS", + "reviewedAt": "2026-11-10", + "reviewClass": "per-file-maintainer-accepted-native-gallery-registration", + "provenanceTemplateId": "ltx_video_image_to_video", + "humanApprovalPacketSHA256": "73ddf9ea7fc27eccc6b93817809421a008ce0fd2fb3080ffbdc5831a09205304" + }, + { + "path": "template-gallery/reviews/ltx_video_image_to_video.reviewed-provenance.json", + "sha256": "sha256:bytes:ff18a19dd44e03eb76e3879a7e49f1732cc9e6dba6affadcf370feafcc6cf06b", "publishDecision": "approved", - "holdReason": null + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers", + "creationMethod": "Project-authored Gallery manifest, native provenance or accepted quality review", + "sourceUrl": null, + "sourceRevision": null, + "sourceLicense": "Apache-2.0 project-authored metadata", + "modelTerms": [], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [], + "assetLicense": "Apache-2.0", + "reviewedBy": "SOURAV DAS", + "reviewedAt": "2026-11-10", + "reviewClass": "per-file-maintainer-accepted-native-gallery-registration", + "provenanceTemplateId": "ltx_video_image_to_video", + "humanApprovalPacketSHA256": "73ddf9ea7fc27eccc6b93817809421a008ce0fd2fb3080ffbdc5831a09205304" }, { - "path": "template-gallery/reviews/longcat_clear_glass_at_the_bookshop.original-provenance.json", - "sha256": "sha256:bytes:055c3ff5cf5493c80e675b8cd97de5c448856204330c1434522cc0c91482b522", + "creatorOrRightsholder": "MoDiff project maintainers", + "creationMethod": "Project-authored redacted technical/review records or versioned declarations for seven maintainer-accepted native video replacements", + "sourceUrl": null, + "sourceRevision": null, + "sourceLicense": "Apache-2.0 project-authored metadata; media and model terms remain separate", + "modelTerms": [], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [], + "assetLicense": "Apache-2.0", + "path": "template-gallery/reviews/ltx_video_long_showcase.quality-review.json", + "sha256": "sha256:bytes:60cbabfbf56d499a45000cdbabc3c4d64733de27638c1e8b127ba067f1918b9c", + "publishDecision": "approved", + "holdReason": null, + "reviewedBy": "SOURAV DAS", + "reviewedAt": "2026-11-15", + "reviewClass": "per-file-maintainer-accepted-native-seven-registration", + "humanApprovalPacketSHA256": "95c7c2ed080c3d618db1701b066724660595337460c46df8305b50810783eaa3", + "publicationBasis": "these are approved, you can register them", + "provenanceTemplateId": "ltx_video_long_showcase" + }, + { + "creatorOrRightsholder": "MoDiff project maintainers", + "creationMethod": "Project-authored redacted technical/review records or versioned declarations for seven maintainer-accepted native video replacements", + "sourceUrl": null, + "sourceRevision": null, + "sourceLicense": "Apache-2.0 project-authored metadata; media and model terms remain separate", + "modelTerms": [], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [], + "assetLicense": "Apache-2.0", + "path": "template-gallery/reviews/ltx_video_long_showcase.reviewed-provenance.json", + "sha256": "sha256:bytes:c2566ed4233b850092727e2bfc805d1be849c2b11cd9424e42283ff9e19b15d0", + "publishDecision": "approved", + "holdReason": null, + "reviewedBy": "SOURAV DAS", + "reviewedAt": "2026-11-15", + "reviewClass": "per-file-maintainer-accepted-native-seven-registration", + "humanApprovalPacketSHA256": "95c7c2ed080c3d618db1701b066724660595337460c46df8305b50810783eaa3", + "publicationBasis": "these are approved, you can register them", + "provenanceTemplateId": "ltx_video_long_showcase" + }, + { + "path": "template-gallery/reviews/ltx_video_multi_reference.quality-review.json", + "sha256": "sha256:bytes:ccb132c3ffd2e929acca88d871c2f04ba9d0cd69d54750f303b58953a8b9bc93", "publishDecision": "approved", "holdReason": null, - "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", - "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/meituan-longcat/LongCat-Image-Edit/tree/7b54ef423aa7854be7861600024be5c56ab7875a", - "sourceRevision": "meituan-longcat/LongCat-Image-Edit@7b54ef423aa7854be7861600024be5c56ab7875a", - "sourceLicense": "MoDiff-authored Gallery metadata", - "modelTerms": [ - "Publisher model terms at https://huggingface.co/meituan-longcat/LongCat-Image-Edit/tree/7b54ef423aa7854be7861600024be5c56ab7875a" - ], + "creatorOrRightsholder": "MoDiff project maintainers", + "creationMethod": "Project-authored Gallery manifest, native provenance or accepted quality review", + "sourceUrl": null, + "sourceRevision": null, + "sourceLicense": "Apache-2.0 project-authored metadata", + "modelTerms": [], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], - "requiredAttribution": [ - "meituan-longcat/LongCat-Image-Edit@7b54ef423aa7854be7861600024be5c56ab7875a https://huggingface.co/meituan-longcat/LongCat-Image-Edit/tree/7b54ef423aa7854be7861600024be5c56ab7875a" - ], + "requiredAttribution": [], "assetLicense": "Apache-2.0", - "reviewedBy": "MoDiff workspace maintainer", - "reviewedAt": "2026-11-25", - "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "60b01498a2df5f4e4622cdc2f9a43c83d187820780d2425a19718c13707db501", - "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", - "provenanceTemplateId": "longcat_clear_glass_at_the_bookshop" + "reviewedBy": "SOURAV DAS", + "reviewedAt": "2026-11-10", + "reviewClass": "per-file-maintainer-accepted-native-gallery-registration", + "provenanceTemplateId": "ltx_video_multi_reference", + "humanApprovalPacketSHA256": "73ddf9ea7fc27eccc6b93817809421a008ce0fd2fb3080ffbdc5831a09205304" }, { - "path": "template-gallery/reviews/longcat_clear_glass_at_the_bookshop.original-review.json", - "sha256": "sha256:bytes:dabecbb61888f492a4e7d8f45e368097c7f286df24c163c8b5e753ce4553d0ff", + "path": "template-gallery/reviews/ltx_video_multi_reference.reviewed-provenance.json", + "sha256": "sha256:bytes:9bdf09de275841af2f1f63ce0011dfc1eeaa703e2deeb2ebf678090abad80203", "publishDecision": "approved", "holdReason": null, - "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", - "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/meituan-longcat/LongCat-Image-Edit/tree/7b54ef423aa7854be7861600024be5c56ab7875a", - "sourceRevision": "meituan-longcat/LongCat-Image-Edit@7b54ef423aa7854be7861600024be5c56ab7875a", - "sourceLicense": "MoDiff-authored Gallery metadata", - "modelTerms": [ - "Publisher model terms at https://huggingface.co/meituan-longcat/LongCat-Image-Edit/tree/7b54ef423aa7854be7861600024be5c56ab7875a" - ], + "creatorOrRightsholder": "MoDiff project maintainers", + "creationMethod": "Project-authored Gallery manifest, native provenance or accepted quality review", + "sourceUrl": null, + "sourceRevision": null, + "sourceLicense": "Apache-2.0 project-authored metadata", + "modelTerms": [], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], - "requiredAttribution": [ - "meituan-longcat/LongCat-Image-Edit@7b54ef423aa7854be7861600024be5c56ab7875a https://huggingface.co/meituan-longcat/LongCat-Image-Edit/tree/7b54ef423aa7854be7861600024be5c56ab7875a" - ], + "requiredAttribution": [], "assetLicense": "Apache-2.0", - "reviewedBy": "MoDiff workspace maintainer", - "reviewedAt": "2026-11-25", - "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "60b01498a2df5f4e4622cdc2f9a43c83d187820780d2425a19718c13707db501", - "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", - "provenanceTemplateId": "longcat_clear_glass_at_the_bookshop" + "reviewedBy": "SOURAV DAS", + "reviewedAt": "2026-11-10", + "reviewClass": "per-file-maintainer-accepted-native-gallery-registration", + "provenanceTemplateId": "ltx_video_multi_reference", + "humanApprovalPacketSHA256": "73ddf9ea7fc27eccc6b93817809421a008ce0fd2fb3080ffbdc5831a09205304" }, { - "path": "template-gallery/reviews/longcat_clear_glass_at_the_bookshop.quality-review.json", - "sha256": "sha256:bytes:03185586cf4d78ccfa2aae9dcb3962e82b611d03bb5fefc03bdf34851d50a9ed", + "path": "template-gallery/reviews/ltx_video_text_to_video.quality-review.json", + "sha256": "sha256:bytes:37f6a5c00110c6f9e306447a53691521c77db1ecf3cedf8210dd1e7ed10ea99d", "publishDecision": "approved", "holdReason": null, - "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", - "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/meituan-longcat/LongCat-Image-Edit/tree/7b54ef423aa7854be7861600024be5c56ab7875a", - "sourceRevision": "meituan-longcat/LongCat-Image-Edit@7b54ef423aa7854be7861600024be5c56ab7875a", - "sourceLicense": "MoDiff-authored Gallery metadata", - "modelTerms": [ - "Publisher model terms at https://huggingface.co/meituan-longcat/LongCat-Image-Edit/tree/7b54ef423aa7854be7861600024be5c56ab7875a" - ], + "creatorOrRightsholder": "MoDiff project maintainers", + "creationMethod": "Project-authored Gallery manifest, native provenance or accepted quality review", + "sourceUrl": null, + "sourceRevision": null, + "sourceLicense": "Apache-2.0 project-authored metadata", + "modelTerms": [], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], - "requiredAttribution": [ - "meituan-longcat/LongCat-Image-Edit@7b54ef423aa7854be7861600024be5c56ab7875a https://huggingface.co/meituan-longcat/LongCat-Image-Edit/tree/7b54ef423aa7854be7861600024be5c56ab7875a" - ], + "requiredAttribution": [], "assetLicense": "Apache-2.0", - "reviewedBy": "MoDiff workspace maintainer", - "reviewedAt": "2026-11-25", - "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "60b01498a2df5f4e4622cdc2f9a43c83d187820780d2425a19718c13707db501", - "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", - "provenanceTemplateId": "longcat_clear_glass_at_the_bookshop" + "reviewedBy": "SOURAV DAS", + "reviewedAt": "2026-11-10", + "reviewClass": "per-file-maintainer-accepted-native-gallery-registration", + "provenanceTemplateId": "ltx_video_text_to_video", + "humanApprovalPacketSHA256": "73ddf9ea7fc27eccc6b93817809421a008ce0fd2fb3080ffbdc5831a09205304" }, { - "path": "template-gallery/reviews/longcat_clear_glass_at_the_bookshop.retained-template-provenance.json", - "sha256": "sha256:bytes:8df85b747c9a5b0fe11bb20d81d64b1df7bccb96ec505aa99855adbcf9dd6e51", + "path": "template-gallery/reviews/ltx_video_text_to_video.reviewed-provenance.json", + "sha256": "sha256:bytes:58bfc0b841177bc73dbde13effbf5eebcf9e8d618d3aa90aa8b19afc3a6e5132", "publishDecision": "approved", "holdReason": null, - "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", - "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/meituan-longcat/LongCat-Image-Edit/tree/7b54ef423aa7854be7861600024be5c56ab7875a", - "sourceRevision": "meituan-longcat/LongCat-Image-Edit@7b54ef423aa7854be7861600024be5c56ab7875a", - "sourceLicense": "MoDiff-authored Gallery metadata", - "modelTerms": [ - "Publisher model terms at https://huggingface.co/meituan-longcat/LongCat-Image-Edit/tree/7b54ef423aa7854be7861600024be5c56ab7875a" - ], + "creatorOrRightsholder": "MoDiff project maintainers", + "creationMethod": "Project-authored Gallery manifest, native provenance or accepted quality review", + "sourceUrl": null, + "sourceRevision": null, + "sourceLicense": "Apache-2.0 project-authored metadata", + "modelTerms": [], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], - "requiredAttribution": [ - "meituan-longcat/LongCat-Image-Edit@7b54ef423aa7854be7861600024be5c56ab7875a https://huggingface.co/meituan-longcat/LongCat-Image-Edit/tree/7b54ef423aa7854be7861600024be5c56ab7875a" - ], + "requiredAttribution": [], "assetLicense": "Apache-2.0", - "reviewedBy": "MoDiff workspace maintainer", - "reviewedAt": "2026-11-25", - "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "60b01498a2df5f4e4622cdc2f9a43c83d187820780d2425a19718c13707db501", - "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", - "provenanceTemplateId": "longcat_clear_glass_at_the_bookshop" + "reviewedBy": "SOURAV DAS", + "reviewedAt": "2026-11-10", + "reviewClass": "per-file-maintainer-accepted-native-gallery-registration", + "provenanceTemplateId": "ltx_video_text_to_video", + "humanApprovalPacketSHA256": "73ddf9ea7fc27eccc6b93817809421a008ce0fd2fb3080ffbdc5831a09205304" }, { - "path": "template-gallery/reviews/longcat_florist_end_of_lane.original-provenance.json", - "sha256": "sha256:bytes:31fa3b13f1a585031ab220cb3a1039a9e7c2ed40757801c56cbcc846125ac7b8", + "creatorOrRightsholder": "MoDiff project maintainers", + "creationMethod": "Project-authored redacted technical/review records or versioned declarations for six maintainer-accepted native results", + "sourceUrl": null, + "sourceRevision": null, + "sourceLicense": "Apache-2.0 project-authored metadata; media and model terms remain separate", + "modelTerms": [], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [], + "assetLicense": "Apache-2.0", + "path": "template-gallery/reviews/ltx_video_video_to_video.quality-review.json", + "sha256": "sha256:bytes:819fd6d872b8e86bbb091980a435bd363216d069223dd694f65d7942aeb05178", "publishDecision": "approved", "holdReason": null, - "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", - "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/meituan-longcat/LongCat-Image/tree/d2ea50b79a930074c37b9b97ce45e3b2ea8cf4d8", - "sourceRevision": "meituan-longcat/LongCat-Image@d2ea50b79a930074c37b9b97ce45e3b2ea8cf4d8", - "sourceLicense": "MoDiff-authored Gallery metadata", - "modelTerms": [ - "Publisher model terms at https://huggingface.co/meituan-longcat/LongCat-Image/tree/d2ea50b79a930074c37b9b97ce45e3b2ea8cf4d8" - ], + "reviewedBy": "SOURAV DAS", + "reviewedAt": "2026-11-13", + "reviewClass": "per-file-maintainer-accepted-native-six-registration", + "humanApprovalPacketSHA256": "03b66b4631afb15032d62a1705331b56f6b12c4882c23945175ec92cc45a506f", + "publicationBasis": "Register the six approved assets now while Moonflower runs on Linux. Use Windows in parallel wherever possible, and keep the longer workflows separate for AMD cloud.", + "provenanceTemplateId": "ltx_video_video_to_video" + }, + { + "creatorOrRightsholder": "MoDiff project maintainers", + "creationMethod": "Project-authored redacted technical/review records or versioned declarations for six maintainer-accepted native results", + "sourceUrl": null, + "sourceRevision": null, + "sourceLicense": "Apache-2.0 project-authored metadata; media and model terms remain separate", + "modelTerms": [], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], - "requiredAttribution": [ - "meituan-longcat/LongCat-Image@d2ea50b79a930074c37b9b97ce45e3b2ea8cf4d8 https://huggingface.co/meituan-longcat/LongCat-Image/tree/d2ea50b79a930074c37b9b97ce45e3b2ea8cf4d8" - ], + "requiredAttribution": [], "assetLicense": "Apache-2.0", - "reviewedBy": "MoDiff workspace maintainer", - "reviewedAt": "2026-11-25", - "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "4fc7c52588176cb1f6ba6d699d08741b2986ea71ea87bac650d261716a10b24c", - "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", - "provenanceTemplateId": "longcat_florist_end_of_lane" + "path": "template-gallery/reviews/ltx_video_video_to_video.reviewed-provenance.json", + "sha256": "sha256:bytes:9de3b2659acc8383ab86923bc7c9c87be3e53f3d894a06c77af8a16a155795a4", + "publishDecision": "approved", + "holdReason": null, + "reviewedBy": "SOURAV DAS", + "reviewedAt": "2026-11-13", + "reviewClass": "per-file-maintainer-accepted-native-six-registration", + "humanApprovalPacketSHA256": "03b66b4631afb15032d62a1705331b56f6b12c4882c23945175ec92cc45a506f", + "publicationBasis": "Register the six approved assets now while Moonflower runs on Linux. Use Windows in parallel wherever possible, and keep the longer workflows separate for AMD cloud.", + "provenanceTemplateId": "ltx_video_video_to_video" }, { - "path": "template-gallery/reviews/longcat_florist_end_of_lane.original-review.json", - "sha256": "sha256:bytes:adc8b682f80f09677b97fa57651d336d8b966f7e19586256e6559505f57f9cfc", + "path": "template-gallery/reviews/lumina2_larch_on_glacial_pond.original-provenance.json", + "sha256": "sha256:bytes:16e6a8baf35baec6d9e1be13523eaa5606174123b3a61274a257d5fbd14977f3", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/meituan-longcat/LongCat-Image/tree/d2ea50b79a930074c37b9b97ce45e3b2ea8cf4d8", - "sourceRevision": "meituan-longcat/LongCat-Image@d2ea50b79a930074c37b9b97ce45e3b2ea8cf4d8", + "sourceUrl": "https://huggingface.co/Alpha-VLLM/Lumina-Image-2.0/tree/53504abd8178b30685b6c4c7a4cd181ff78b73e9", + "sourceRevision": "Alpha-VLLM/Lumina-Image-2.0@53504abd8178b30685b6c4c7a4cd181ff78b73e9", "sourceLicense": "MoDiff-authored Gallery metadata", "modelTerms": [ - "Publisher model terms at https://huggingface.co/meituan-longcat/LongCat-Image/tree/d2ea50b79a930074c37b9b97ce45e3b2ea8cf4d8" + "Publisher model terms at https://huggingface.co/Alpha-VLLM/Lumina-Image-2.0/tree/53504abd8178b30685b6c4c7a4cd181ff78b73e9" ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "meituan-longcat/LongCat-Image@d2ea50b79a930074c37b9b97ce45e3b2ea8cf4d8 https://huggingface.co/meituan-longcat/LongCat-Image/tree/d2ea50b79a930074c37b9b97ce45e3b2ea8cf4d8" + "Alpha-VLLM/Lumina-Image-2.0@53504abd8178b30685b6c4c7a4cd181ff78b73e9 https://huggingface.co/Alpha-VLLM/Lumina-Image-2.0/tree/53504abd8178b30685b6c4c7a4cd181ff78b73e9" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "4fc7c52588176cb1f6ba6d699d08741b2986ea71ea87bac650d261716a10b24c", + "humanApprovalPacketSHA256": "c2df9edb92f8ff905b6c9a138a285e67c621f3d2dfa3232f859aaf963b725aca", "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", - "provenanceTemplateId": "longcat_florist_end_of_lane" + "provenanceTemplateId": "lumina2_larch_on_glacial_pond" }, { - "path": "template-gallery/reviews/longcat_florist_end_of_lane.quality-review.json", - "sha256": "sha256:bytes:c2b07ec9dccd4ac97f229ff2c836b5215377c240b8455db32a4f72f0313f7a4c", + "path": "template-gallery/reviews/lumina2_larch_on_glacial_pond.original-review.json", + "sha256": "sha256:bytes:3fa1cbf6c53ed5ce65f8d116779ff9dea32a9c52c8a0877fbb87f77f17237695", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/meituan-longcat/LongCat-Image/tree/d2ea50b79a930074c37b9b97ce45e3b2ea8cf4d8", - "sourceRevision": "meituan-longcat/LongCat-Image@d2ea50b79a930074c37b9b97ce45e3b2ea8cf4d8", + "sourceUrl": "https://huggingface.co/Alpha-VLLM/Lumina-Image-2.0/tree/53504abd8178b30685b6c4c7a4cd181ff78b73e9", + "sourceRevision": "Alpha-VLLM/Lumina-Image-2.0@53504abd8178b30685b6c4c7a4cd181ff78b73e9", "sourceLicense": "MoDiff-authored Gallery metadata", "modelTerms": [ - "Publisher model terms at https://huggingface.co/meituan-longcat/LongCat-Image/tree/d2ea50b79a930074c37b9b97ce45e3b2ea8cf4d8" + "Publisher model terms at https://huggingface.co/Alpha-VLLM/Lumina-Image-2.0/tree/53504abd8178b30685b6c4c7a4cd181ff78b73e9" ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "meituan-longcat/LongCat-Image@d2ea50b79a930074c37b9b97ce45e3b2ea8cf4d8 https://huggingface.co/meituan-longcat/LongCat-Image/tree/d2ea50b79a930074c37b9b97ce45e3b2ea8cf4d8" + "Alpha-VLLM/Lumina-Image-2.0@53504abd8178b30685b6c4c7a4cd181ff78b73e9 https://huggingface.co/Alpha-VLLM/Lumina-Image-2.0/tree/53504abd8178b30685b6c4c7a4cd181ff78b73e9" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "4fc7c52588176cb1f6ba6d699d08741b2986ea71ea87bac650d261716a10b24c", + "humanApprovalPacketSHA256": "c2df9edb92f8ff905b6c9a138a285e67c621f3d2dfa3232f859aaf963b725aca", "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", - "provenanceTemplateId": "longcat_florist_end_of_lane" + "provenanceTemplateId": "lumina2_larch_on_glacial_pond" }, { - "path": "template-gallery/reviews/longcat_florist_end_of_lane.retained-template-provenance.json", - "sha256": "sha256:bytes:14da3c1cbc2f7ea57b4ec3d84f1a78d72a4e22b62ce0e0d757db78297c3fbed9", + "path": "template-gallery/reviews/lumina2_larch_on_glacial_pond.quality-review.json", + "sha256": "sha256:bytes:527cf3a6d6a7820e09450d4a6d533e5d875a914bd2c8771c2060a513f712544e", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/meituan-longcat/LongCat-Image/tree/d2ea50b79a930074c37b9b97ce45e3b2ea8cf4d8", - "sourceRevision": "meituan-longcat/LongCat-Image@d2ea50b79a930074c37b9b97ce45e3b2ea8cf4d8", + "sourceUrl": "https://huggingface.co/Alpha-VLLM/Lumina-Image-2.0/tree/53504abd8178b30685b6c4c7a4cd181ff78b73e9", + "sourceRevision": "Alpha-VLLM/Lumina-Image-2.0@53504abd8178b30685b6c4c7a4cd181ff78b73e9", "sourceLicense": "MoDiff-authored Gallery metadata", "modelTerms": [ - "Publisher model terms at https://huggingface.co/meituan-longcat/LongCat-Image/tree/d2ea50b79a930074c37b9b97ce45e3b2ea8cf4d8" + "Publisher model terms at https://huggingface.co/Alpha-VLLM/Lumina-Image-2.0/tree/53504abd8178b30685b6c4c7a4cd181ff78b73e9" ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "meituan-longcat/LongCat-Image@d2ea50b79a930074c37b9b97ce45e3b2ea8cf4d8 https://huggingface.co/meituan-longcat/LongCat-Image/tree/d2ea50b79a930074c37b9b97ce45e3b2ea8cf4d8" + "Alpha-VLLM/Lumina-Image-2.0@53504abd8178b30685b6c4c7a4cd181ff78b73e9 https://huggingface.co/Alpha-VLLM/Lumina-Image-2.0/tree/53504abd8178b30685b6c4c7a4cd181ff78b73e9" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "4fc7c52588176cb1f6ba6d699d08741b2986ea71ea87bac650d261716a10b24c", + "humanApprovalPacketSHA256": "c2df9edb92f8ff905b6c9a138a285e67c621f3d2dfa3232f859aaf963b725aca", "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", - "provenanceTemplateId": "longcat_florist_end_of_lane" + "provenanceTemplateId": "lumina2_larch_on_glacial_pond" }, { - "path": "template-gallery/reviews/longcat_last_tram_at_dusk.original-provenance.json", - "sha256": "sha256:bytes:34b322e643eacf47f4c02019564cb85720cb3b9b8334d524e47226d60c4faa60", + "path": "template-gallery/reviews/lumina2_larch_on_glacial_pond.retained-template-provenance.json", + "sha256": "sha256:bytes:d62e4d0a6e3739b95089003b3095611e419f62bcdc39befbb67aeba846aec0c8", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/ruixiangma/LongCat-AudioDiT-1B-Diffusers/tree/f4c063ea37f262ba5e6129ebd80095a6d6a9de4d", - "sourceRevision": "ruixiangma/LongCat-AudioDiT-1B-Diffusers@f4c063ea37f262ba5e6129ebd80095a6d6a9de4d", + "sourceUrl": "https://huggingface.co/Alpha-VLLM/Lumina-Image-2.0/tree/53504abd8178b30685b6c4c7a4cd181ff78b73e9", + "sourceRevision": "Alpha-VLLM/Lumina-Image-2.0@53504abd8178b30685b6c4c7a4cd181ff78b73e9", "sourceLicense": "MoDiff-authored Gallery metadata", "modelTerms": [ - "Publisher model terms at https://huggingface.co/ruixiangma/LongCat-AudioDiT-1B-Diffusers/tree/f4c063ea37f262ba5e6129ebd80095a6d6a9de4d" + "Publisher model terms at https://huggingface.co/Alpha-VLLM/Lumina-Image-2.0/tree/53504abd8178b30685b6c4c7a4cd181ff78b73e9" ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "ruixiangma/LongCat-AudioDiT-1B-Diffusers@f4c063ea37f262ba5e6129ebd80095a6d6a9de4d https://huggingface.co/ruixiangma/LongCat-AudioDiT-1B-Diffusers/tree/f4c063ea37f262ba5e6129ebd80095a6d6a9de4d" + "Alpha-VLLM/Lumina-Image-2.0@53504abd8178b30685b6c4c7a4cd181ff78b73e9 https://huggingface.co/Alpha-VLLM/Lumina-Image-2.0/tree/53504abd8178b30685b6c4c7a4cd181ff78b73e9" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "15c604ae5df3abed63c95046a78859adb870f415f45c06a99f58ad652fc0dea2", + "humanApprovalPacketSHA256": "c2df9edb92f8ff905b6c9a138a285e67c621f3d2dfa3232f859aaf963b725aca", "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", - "provenanceTemplateId": "longcat_last_tram_at_dusk" + "provenanceTemplateId": "lumina2_larch_on_glacial_pond" }, { - "path": "template-gallery/reviews/longcat_last_tram_at_dusk.original-review.json", - "sha256": "sha256:bytes:7ee2f38d8dd9199e6a754312dba9e962007389ba4527f0aebb96272b454394a5", + "path": "template-gallery/reviews/lumina_opal_pendant_in_limestone.original-provenance.json", + "sha256": "sha256:bytes:1759ed2ceb7e564e568eced6f47a017c647dd549c2ebdf6e414310d8445a4fd4", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/ruixiangma/LongCat-AudioDiT-1B-Diffusers/tree/f4c063ea37f262ba5e6129ebd80095a6d6a9de4d", - "sourceRevision": "ruixiangma/LongCat-AudioDiT-1B-Diffusers@f4c063ea37f262ba5e6129ebd80095a6d6a9de4d", + "sourceUrl": "https://huggingface.co/Alpha-VLLM/Lumina-Next-SFT-diffusers/tree/0ee5ec90043acf5cb41fe96274af36eb7fad8d95", + "sourceRevision": "Alpha-VLLM/Lumina-Next-SFT-diffusers@0ee5ec90043acf5cb41fe96274af36eb7fad8d95", "sourceLicense": "MoDiff-authored Gallery metadata", "modelTerms": [ - "Publisher model terms at https://huggingface.co/ruixiangma/LongCat-AudioDiT-1B-Diffusers/tree/f4c063ea37f262ba5e6129ebd80095a6d6a9de4d" + "https://huggingface.co/Alpha-VLLM/Lumina-Next-SFT-diffusers/blob/0ee5ec90043acf5cb41fe96274af36eb7fad8d95/README.md" ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "ruixiangma/LongCat-AudioDiT-1B-Diffusers@f4c063ea37f262ba5e6129ebd80095a6d6a9de4d https://huggingface.co/ruixiangma/LongCat-AudioDiT-1B-Diffusers/tree/f4c063ea37f262ba5e6129ebd80095a6d6a9de4d" + "Alpha-VLLM/Lumina-Next-SFT-diffusers@0ee5ec90043acf5cb41fe96274af36eb7fad8d95 https://huggingface.co/Alpha-VLLM/Lumina-Next-SFT-diffusers/tree/0ee5ec90043acf5cb41fe96274af36eb7fad8d95" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "15c604ae5df3abed63c95046a78859adb870f415f45c06a99f58ad652fc0dea2", - "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", - "provenanceTemplateId": "longcat_last_tram_at_dusk" + "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", + "provenanceTemplateId": "lumina_opal_pendant_in_limestone" }, { - "path": "template-gallery/reviews/longcat_last_tram_at_dusk.quality-review.json", - "sha256": "sha256:bytes:f2883c589ff0313062b4c0c995b35ce08d837f02efb4f6f097d004961b8d298f", + "path": "template-gallery/reviews/lumina_opal_pendant_in_limestone.original-review.json", + "sha256": "sha256:bytes:11b0b3259e607f479a30ccb2c6f530ff41cb6367245961c43f56ccad21babfb7", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/ruixiangma/LongCat-AudioDiT-1B-Diffusers/tree/f4c063ea37f262ba5e6129ebd80095a6d6a9de4d", - "sourceRevision": "ruixiangma/LongCat-AudioDiT-1B-Diffusers@f4c063ea37f262ba5e6129ebd80095a6d6a9de4d", + "sourceUrl": "https://huggingface.co/Alpha-VLLM/Lumina-Next-SFT-diffusers/tree/0ee5ec90043acf5cb41fe96274af36eb7fad8d95", + "sourceRevision": "Alpha-VLLM/Lumina-Next-SFT-diffusers@0ee5ec90043acf5cb41fe96274af36eb7fad8d95", "sourceLicense": "MoDiff-authored Gallery metadata", "modelTerms": [ - "Publisher model terms at https://huggingface.co/ruixiangma/LongCat-AudioDiT-1B-Diffusers/tree/f4c063ea37f262ba5e6129ebd80095a6d6a9de4d" + "https://huggingface.co/Alpha-VLLM/Lumina-Next-SFT-diffusers/blob/0ee5ec90043acf5cb41fe96274af36eb7fad8d95/README.md" ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "ruixiangma/LongCat-AudioDiT-1B-Diffusers@f4c063ea37f262ba5e6129ebd80095a6d6a9de4d https://huggingface.co/ruixiangma/LongCat-AudioDiT-1B-Diffusers/tree/f4c063ea37f262ba5e6129ebd80095a6d6a9de4d" + "Alpha-VLLM/Lumina-Next-SFT-diffusers@0ee5ec90043acf5cb41fe96274af36eb7fad8d95 https://huggingface.co/Alpha-VLLM/Lumina-Next-SFT-diffusers/tree/0ee5ec90043acf5cb41fe96274af36eb7fad8d95" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "15c604ae5df3abed63c95046a78859adb870f415f45c06a99f58ad652fc0dea2", - "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", - "provenanceTemplateId": "longcat_last_tram_at_dusk" + "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", + "provenanceTemplateId": "lumina_opal_pendant_in_limestone" }, { - "path": "template-gallery/reviews/longcat_last_tram_at_dusk.retained-template-provenance.json", - "sha256": "sha256:bytes:071240681910f119ab723f580b68bc1037896a28132a51fbb338e61bf9f8a0bf", + "path": "template-gallery/reviews/lumina_opal_pendant_in_limestone.quality-review.json", + "sha256": "sha256:bytes:4566c14128c7a9a7b32d92d927cff0c2ca12bb392328bd692272130e0c5fe387", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/ruixiangma/LongCat-AudioDiT-1B-Diffusers/tree/f4c063ea37f262ba5e6129ebd80095a6d6a9de4d", - "sourceRevision": "ruixiangma/LongCat-AudioDiT-1B-Diffusers@f4c063ea37f262ba5e6129ebd80095a6d6a9de4d", + "sourceUrl": "https://huggingface.co/Alpha-VLLM/Lumina-Next-SFT-diffusers/tree/0ee5ec90043acf5cb41fe96274af36eb7fad8d95", + "sourceRevision": "Alpha-VLLM/Lumina-Next-SFT-diffusers@0ee5ec90043acf5cb41fe96274af36eb7fad8d95", "sourceLicense": "MoDiff-authored Gallery metadata", "modelTerms": [ - "Publisher model terms at https://huggingface.co/ruixiangma/LongCat-AudioDiT-1B-Diffusers/tree/f4c063ea37f262ba5e6129ebd80095a6d6a9de4d" + "https://huggingface.co/Alpha-VLLM/Lumina-Next-SFT-diffusers/blob/0ee5ec90043acf5cb41fe96274af36eb7fad8d95/README.md" ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "ruixiangma/LongCat-AudioDiT-1B-Diffusers@f4c063ea37f262ba5e6129ebd80095a6d6a9de4d https://huggingface.co/ruixiangma/LongCat-AudioDiT-1B-Diffusers/tree/f4c063ea37f262ba5e6129ebd80095a6d6a9de4d" + "Alpha-VLLM/Lumina-Next-SFT-diffusers@0ee5ec90043acf5cb41fe96274af36eb7fad8d95 https://huggingface.co/Alpha-VLLM/Lumina-Next-SFT-diffusers/tree/0ee5ec90043acf5cb41fe96274af36eb7fad8d95" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "15c604ae5df3abed63c95046a78859adb870f415f45c06a99f58ad652fc0dea2", - "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", - "provenanceTemplateId": "longcat_last_tram_at_dusk" - }, - { - "path": "template-gallery/reviews/low_vram.quality-review.json", - "sha256": "sha256:bytes:53b25669d880814ac612e803b0c6f2abbcdd8853e7ea4ca6e1e6d0b97fa23352", - "publishDecision": "approved", - "holdReason": null, - "creatorOrRightsholder": "MoDiff project maintainers", - "creationMethod": "MoDiff-authored technical provenance or quality metadata from the explicitly approved six-image source packet", - "sourceUrl": null, - "sourceRevision": null, - "sourceLicense": "Apache-2.0 project-authored metadata; generated-media terms remain in their exact per-file records", - "modelTerms": [], - "aiGenerated": false, - "humanLikenessConsent": "not-applicable", - "marks": [], - "requiredAttribution": [], - "assetLicense": "Apache-2.0", - "reviewedBy": "SOURAV DAS", - "reviewedAt": "2026-11-09", - "reviewClass": "per-file-human-approved-six-z-registration", - "provenanceTemplateId": "low_vram", - "humanApprovalPacketSHA256": "9b728a5f8535fc1ba3c03d2e2759d7ac795a586fafab51beb1509379ed388934" - }, - { - "path": "template-gallery/reviews/low_vram.reviewed-provenance.json", - "sha256": "sha256:bytes:a07f1942cb39c873d7ccd1b99dbece3c203d73296712aa0168a3edf4054b8076", - "publishDecision": "approved", - "holdReason": null, - "creatorOrRightsholder": "MoDiff project maintainers", - "creationMethod": "MoDiff-authored technical provenance or quality metadata from the explicitly approved six-image source packet", - "sourceUrl": null, - "sourceRevision": null, - "sourceLicense": "Apache-2.0 project-authored metadata; generated-media terms remain in their exact per-file records", - "modelTerms": [], - "aiGenerated": false, - "humanLikenessConsent": "not-applicable", - "marks": [], - "requiredAttribution": [], - "assetLicense": "Apache-2.0", - "reviewedBy": "SOURAV DAS", - "reviewedAt": "2026-11-09", - "reviewClass": "per-file-human-approved-six-z-registration", - "provenanceTemplateId": "low_vram", - "humanApprovalPacketSHA256": "9b728a5f8535fc1ba3c03d2e2759d7ac795a586fafab51beb1509379ed388934" - }, - { - "creatorOrRightsholder": "MoDiff project maintainers", - "creationMethod": "Project-authored redacted technical/review records or versioned declarations for seven maintainer-accepted native video replacements", - "sourceUrl": null, - "sourceRevision": null, - "sourceLicense": "Apache-2.0 project-authored metadata; media and model terms remain separate", - "modelTerms": [], - "aiGenerated": false, - "humanLikenessConsent": "not-applicable", - "marks": [], - "requiredAttribution": [], - "assetLicense": "Apache-2.0", - "path": "template-gallery/reviews/ltx_video_animated_story.quality-review.json", - "sha256": "sha256:bytes:1ec83b229ba5c7995c8ada2629c448334965939304ffddc7a70161c8b7e1b7f1", - "publishDecision": "approved", - "holdReason": null, - "reviewedBy": "SOURAV DAS", - "reviewedAt": "2026-11-15", - "reviewClass": "per-file-maintainer-accepted-native-seven-registration", - "humanApprovalPacketSHA256": "95c7c2ed080c3d618db1701b066724660595337460c46df8305b50810783eaa3", - "publicationBasis": "these are approved, you can register them", - "provenanceTemplateId": "ltx_video_animated_story" - }, - { - "creatorOrRightsholder": "MoDiff project maintainers", - "creationMethod": "Project-authored redacted technical/review records or versioned declarations for seven maintainer-accepted native video replacements", - "sourceUrl": null, - "sourceRevision": null, - "sourceLicense": "Apache-2.0 project-authored metadata; media and model terms remain separate", - "modelTerms": [], - "aiGenerated": false, - "humanLikenessConsent": "not-applicable", - "marks": [], - "requiredAttribution": [], - "assetLicense": "Apache-2.0", - "path": "template-gallery/reviews/ltx_video_animated_story.reviewed-provenance.json", - "sha256": "sha256:bytes:3910ae6f164eb978e38b16e1eab92d73fe7f55dac543b681416ba0b8c43b440d", - "publishDecision": "approved", - "holdReason": null, - "reviewedBy": "SOURAV DAS", - "reviewedAt": "2026-11-15", - "reviewClass": "per-file-maintainer-accepted-native-seven-registration", - "humanApprovalPacketSHA256": "95c7c2ed080c3d618db1701b066724660595337460c46df8305b50810783eaa3", - "publicationBasis": "these are approved, you can register them", - "provenanceTemplateId": "ltx_video_animated_story" - }, - { - "path": "template-gallery/reviews/ltx_video_image_to_video.quality-review.json", - "sha256": "sha256:bytes:6c31e71b0b9e6a6a1c46f55e058dd208b7b2f510f6eeb332648575da388f9431", - "publishDecision": "approved", - "holdReason": null, - "creatorOrRightsholder": "MoDiff project maintainers", - "creationMethod": "Project-authored Gallery manifest, native provenance or accepted quality review", - "sourceUrl": null, - "sourceRevision": null, - "sourceLicense": "Apache-2.0 project-authored metadata", - "modelTerms": [], - "aiGenerated": false, - "humanLikenessConsent": "not-applicable", - "marks": [], - "requiredAttribution": [], - "assetLicense": "Apache-2.0", - "reviewedBy": "SOURAV DAS", - "reviewedAt": "2026-11-10", - "reviewClass": "per-file-maintainer-accepted-native-gallery-registration", - "provenanceTemplateId": "ltx_video_image_to_video", - "humanApprovalPacketSHA256": "73ddf9ea7fc27eccc6b93817809421a008ce0fd2fb3080ffbdc5831a09205304" - }, - { - "path": "template-gallery/reviews/ltx_video_image_to_video.reviewed-provenance.json", - "sha256": "sha256:bytes:ff18a19dd44e03eb76e3879a7e49f1732cc9e6dba6affadcf370feafcc6cf06b", - "publishDecision": "approved", - "holdReason": null, - "creatorOrRightsholder": "MoDiff project maintainers", - "creationMethod": "Project-authored Gallery manifest, native provenance or accepted quality review", - "sourceUrl": null, - "sourceRevision": null, - "sourceLicense": "Apache-2.0 project-authored metadata", - "modelTerms": [], - "aiGenerated": false, - "humanLikenessConsent": "not-applicable", - "marks": [], - "requiredAttribution": [], - "assetLicense": "Apache-2.0", - "reviewedBy": "SOURAV DAS", - "reviewedAt": "2026-11-10", - "reviewClass": "per-file-maintainer-accepted-native-gallery-registration", - "provenanceTemplateId": "ltx_video_image_to_video", - "humanApprovalPacketSHA256": "73ddf9ea7fc27eccc6b93817809421a008ce0fd2fb3080ffbdc5831a09205304" + "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", + "provenanceTemplateId": "lumina_opal_pendant_in_limestone" }, { - "creatorOrRightsholder": "MoDiff project maintainers", - "creationMethod": "Project-authored redacted technical/review records or versioned declarations for seven maintainer-accepted native video replacements", - "sourceUrl": null, - "sourceRevision": null, - "sourceLicense": "Apache-2.0 project-authored metadata; media and model terms remain separate", - "modelTerms": [], - "aiGenerated": false, - "humanLikenessConsent": "not-applicable", - "marks": [], - "requiredAttribution": [], - "assetLicense": "Apache-2.0", - "path": "template-gallery/reviews/ltx_video_long_showcase.quality-review.json", - "sha256": "sha256:bytes:60cbabfbf56d499a45000cdbabc3c4d64733de27638c1e8b127ba067f1918b9c", + "path": "template-gallery/reviews/lumina_opal_pendant_in_limestone.retained-template-provenance.json", + "sha256": "sha256:bytes:a4e3e7b9be7fdd489f3876e63e7d0e9ed65508e84eabb0a673719251d3d46e0e", "publishDecision": "approved", "holdReason": null, - "reviewedBy": "SOURAV DAS", - "reviewedAt": "2026-11-15", - "reviewClass": "per-file-maintainer-accepted-native-seven-registration", - "humanApprovalPacketSHA256": "95c7c2ed080c3d618db1701b066724660595337460c46df8305b50810783eaa3", - "publicationBasis": "these are approved, you can register them", - "provenanceTemplateId": "ltx_video_long_showcase" - }, - { - "creatorOrRightsholder": "MoDiff project maintainers", - "creationMethod": "Project-authored redacted technical/review records or versioned declarations for seven maintainer-accepted native video replacements", - "sourceUrl": null, - "sourceRevision": null, - "sourceLicense": "Apache-2.0 project-authored metadata; media and model terms remain separate", - "modelTerms": [], + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/Alpha-VLLM/Lumina-Next-SFT-diffusers/tree/0ee5ec90043acf5cb41fe96274af36eb7fad8d95", + "sourceRevision": "Alpha-VLLM/Lumina-Next-SFT-diffusers@0ee5ec90043acf5cb41fe96274af36eb7fad8d95", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "https://huggingface.co/Alpha-VLLM/Lumina-Next-SFT-diffusers/blob/0ee5ec90043acf5cb41fe96274af36eb7fad8d95/README.md" + ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], - "requiredAttribution": [], + "requiredAttribution": [ + "Alpha-VLLM/Lumina-Next-SFT-diffusers@0ee5ec90043acf5cb41fe96274af36eb7fad8d95 https://huggingface.co/Alpha-VLLM/Lumina-Next-SFT-diffusers/tree/0ee5ec90043acf5cb41fe96274af36eb7fad8d95" + ], "assetLicense": "Apache-2.0", - "path": "template-gallery/reviews/ltx_video_long_showcase.reviewed-provenance.json", - "sha256": "sha256:bytes:c2566ed4233b850092727e2bfc805d1be849c2b11cd9424e42283ff9e19b15d0", - "publishDecision": "approved", - "holdReason": null, - "reviewedBy": "SOURAV DAS", - "reviewedAt": "2026-11-15", - "reviewClass": "per-file-maintainer-accepted-native-seven-registration", - "humanApprovalPacketSHA256": "95c7c2ed080c3d618db1701b066724660595337460c46df8305b50810783eaa3", - "publicationBasis": "these are approved, you can register them", - "provenanceTemplateId": "ltx_video_long_showcase" + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", + "provenanceTemplateId": "lumina_opal_pendant_in_limestone" }, { - "path": "template-gallery/reviews/ltx_video_multi_reference.quality-review.json", - "sha256": "sha256:bytes:ccb132c3ffd2e929acca88d871c2f04ba9d0cd69d54750f303b58953a8b9bc93", + "path": "template-gallery/reviews/marigold_depth_synthetic_ramp.quality-review.json", + "sha256": "sha256:bytes:17c3bbb2da127558c468e58ccc2bb08a9b78d4f07f901d483cfe8092732ebb42", "publishDecision": "approved", "holdReason": null, - "creatorOrRightsholder": "MoDiff project maintainers", - "creationMethod": "Project-authored Gallery manifest, native provenance or accepted quality review", + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted retained Gallery provenance, review, or registration metadata", "sourceUrl": null, "sourceRevision": null, - "sourceLicense": "Apache-2.0 project-authored metadata", + "sourceLicense": "MoDiff-authored exact fixture or Gallery metadata", "modelTerms": [], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [], "assetLicense": "Apache-2.0", - "reviewedBy": "SOURAV DAS", - "reviewedAt": "2026-11-10", - "reviewClass": "per-file-maintainer-accepted-native-gallery-registration", - "provenanceTemplateId": "ltx_video_multi_reference", - "humanApprovalPacketSHA256": "73ddf9ea7fc27eccc6b93817809421a008ce0fd2fb3080ffbdc5831a09205304" + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-19", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "e604b0284a57b65b20343c7776511ae15bef922c7e104c09f0f6931eec610d2d", + "publicationBasis": "Activate and publish the two approved Gallery candidates using their retained native runs.", + "provenanceTemplateId": "marigold_depth_synthetic_ramp" }, { - "path": "template-gallery/reviews/ltx_video_multi_reference.reviewed-provenance.json", - "sha256": "sha256:bytes:9bdf09de275841af2f1f63ce0011dfc1eeaa703e2deeb2ebf678090abad80203", + "path": "template-gallery/reviews/marigold_depth_synthetic_ramp.retained-template-provenance.json", + "sha256": "sha256:bytes:57b1487ecee6f44016512e1e1ce5c8135e963add06b1519b7e6007cb83184ae0", "publishDecision": "approved", "holdReason": null, - "creatorOrRightsholder": "MoDiff project maintainers", - "creationMethod": "Project-authored Gallery manifest, native provenance or accepted quality review", + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted retained Gallery provenance, review, or registration metadata", "sourceUrl": null, "sourceRevision": null, - "sourceLicense": "Apache-2.0 project-authored metadata", + "sourceLicense": "MoDiff-authored exact fixture or Gallery metadata", "modelTerms": [], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [], "assetLicense": "Apache-2.0", - "reviewedBy": "SOURAV DAS", - "reviewedAt": "2026-11-10", - "reviewClass": "per-file-maintainer-accepted-native-gallery-registration", - "provenanceTemplateId": "ltx_video_multi_reference", - "humanApprovalPacketSHA256": "73ddf9ea7fc27eccc6b93817809421a008ce0fd2fb3080ffbdc5831a09205304" + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-19", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "e604b0284a57b65b20343c7776511ae15bef922c7e104c09f0f6931eec610d2d", + "publicationBasis": "Activate and publish the two approved Gallery candidates using their retained native runs.", + "provenanceTemplateId": "marigold_depth_synthetic_ramp" }, { - "path": "template-gallery/reviews/ltx_video_text_to_video.quality-review.json", - "sha256": "sha256:bytes:37f6a5c00110c6f9e306447a53691521c77db1ecf3cedf8210dd1e7ed10ea99d", + "path": "template-gallery/reviews/minimax_h3_image_old_town_cat.quality-review.json", + "sha256": "sha256:bytes:ce9fc2a0edaaf3eef1f3db03024d3e64108523e93fc2797fee7cbe7364e7ce97", "publishDecision": "approved", "holdReason": null, - "creatorOrRightsholder": "MoDiff project maintainers", - "creationMethod": "Project-authored Gallery manifest, native provenance or accepted quality review", - "sourceUrl": null, - "sourceRevision": null, + "creatorOrRightsholder": "MoDiff project maintainers, subject to the recorded model terms", + "creationMethod": "Project-authored current-recipe review or redacted provenance for the saved image", + "sourceUrl": "https://huggingface.co/MiniMaxAI/MiniMax-H3-Image/tree/492fd8c4eca666f1085f57e30738c1e0d86b3439", + "sourceRevision": "MiniMaxAI/MiniMax-H3-Image@492fd8c4eca666f1085f57e30738c1e0d86b3439", "sourceLicense": "Apache-2.0 project-authored metadata", - "modelTerms": [], + "modelTerms": [ + "MiniMaxAI/MiniMax-H3-Image@492fd8c4eca666f1085f57e30738c1e0d86b3439: MiniMax H3 Image Community License Agreement" + ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [], "assetLicense": "Apache-2.0", - "reviewedBy": "SOURAV DAS", - "reviewedAt": "2026-11-10", - "reviewClass": "per-file-maintainer-accepted-native-gallery-registration", - "provenanceTemplateId": "ltx_video_text_to_video", - "humanApprovalPacketSHA256": "73ddf9ea7fc27eccc6b93817809421a008ce0fd2fb3080ffbdc5831a09205304" + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-19", + "reviewClass": "per-file-maintainer-accepted-current-recipe", + "humanApprovalPacketSHA256": "97cf1d2ce0a8500d5b3b67ff4efb20a2e91c44a6f1e22d3eafd7b408babc31a2", + "provenanceTemplateId": "minimax_h3_image_old_town_cat" }, { - "path": "template-gallery/reviews/ltx_video_text_to_video.reviewed-provenance.json", - "sha256": "sha256:bytes:58bfc0b841177bc73dbde13effbf5eebcf9e8d618d3aa90aa8b19afc3a6e5132", + "path": "template-gallery/reviews/minimax_h3_image_old_town_cat.reviewed-provenance.json", + "sha256": "sha256:bytes:9d5792710da6b60188994c51bfa1ac49047121433d83961cd58d22b9caf6030c", "publishDecision": "approved", "holdReason": null, - "creatorOrRightsholder": "MoDiff project maintainers", - "creationMethod": "Project-authored Gallery manifest, native provenance or accepted quality review", - "sourceUrl": null, - "sourceRevision": null, + "creatorOrRightsholder": "MoDiff project maintainers, subject to the recorded model terms", + "creationMethod": "Project-authored current-recipe review or redacted provenance for the saved image", + "sourceUrl": "https://huggingface.co/MiniMaxAI/MiniMax-H3-Image/tree/492fd8c4eca666f1085f57e30738c1e0d86b3439", + "sourceRevision": "MiniMaxAI/MiniMax-H3-Image@492fd8c4eca666f1085f57e30738c1e0d86b3439", "sourceLicense": "Apache-2.0 project-authored metadata", - "modelTerms": [], + "modelTerms": [ + "MiniMaxAI/MiniMax-H3-Image@492fd8c4eca666f1085f57e30738c1e0d86b3439: MiniMax H3 Image Community License Agreement" + ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [], "assetLicense": "Apache-2.0", - "reviewedBy": "SOURAV DAS", - "reviewedAt": "2026-11-10", - "reviewClass": "per-file-maintainer-accepted-native-gallery-registration", - "provenanceTemplateId": "ltx_video_text_to_video", - "humanApprovalPacketSHA256": "73ddf9ea7fc27eccc6b93817809421a008ce0fd2fb3080ffbdc5831a09205304" + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-19", + "reviewClass": "per-file-maintainer-accepted-current-recipe", + "humanApprovalPacketSHA256": "97cf1d2ce0a8500d5b3b67ff4efb20a2e91c44a6f1e22d3eafd7b408babc31a2", + "provenanceTemplateId": "minimax_h3_image_old_town_cat" }, { "creatorOrRightsholder": "MoDiff project maintainers", @@ -15847,8 +17148,8 @@ "marks": [], "requiredAttribution": [], "assetLicense": "Apache-2.0", - "path": "template-gallery/reviews/ltx_video_video_to_video.quality-review.json", - "sha256": "sha256:bytes:819fd6d872b8e86bbb091980a435bd363216d069223dd694f65d7942aeb05178", + "path": "template-gallery/reviews/minimax_music3_chamber_pop.quality-review.json", + "sha256": "sha256:bytes:cd83b77fc2ccb4b11263406c12dc9d0d222af582e52dc47b77c18a4243462502", "publishDecision": "approved", "holdReason": null, "reviewedBy": "SOURAV DAS", @@ -15856,7 +17157,7 @@ "reviewClass": "per-file-maintainer-accepted-native-six-registration", "humanApprovalPacketSHA256": "03b66b4631afb15032d62a1705331b56f6b12c4882c23945175ec92cc45a506f", "publicationBasis": "Register the six approved assets now while Moonflower runs on Linux. Use Windows in parallel wherever possible, and keep the longer workflows separate for AMD cloud.", - "provenanceTemplateId": "ltx_video_video_to_video" + "provenanceTemplateId": "minimax_music3_chamber_pop" }, { "creatorOrRightsholder": "MoDiff project maintainers", @@ -15870,8 +17171,8 @@ "marks": [], "requiredAttribution": [], "assetLicense": "Apache-2.0", - "path": "template-gallery/reviews/ltx_video_video_to_video.reviewed-provenance.json", - "sha256": "sha256:bytes:9de3b2659acc8383ab86923bc7c9c87be3e53f3d894a06c77af8a16a155795a4", + "path": "template-gallery/reviews/minimax_music3_chamber_pop.reviewed-provenance.json", + "sha256": "sha256:bytes:1b2c91a45c40a7d6621bee54083d3e02d9b843d1034c06e3284ff8f1a2e44270", "publishDecision": "approved", "holdReason": null, "reviewedBy": "SOURAV DAS", @@ -15879,134 +17180,134 @@ "reviewClass": "per-file-maintainer-accepted-native-six-registration", "humanApprovalPacketSHA256": "03b66b4631afb15032d62a1705331b56f6b12c4882c23945175ec92cc45a506f", "publicationBasis": "Register the six approved assets now while Moonflower runs on Linux. Use Windows in parallel wherever possible, and keep the longer workflows separate for AMD cloud.", - "provenanceTemplateId": "ltx_video_video_to_video" + "provenanceTemplateId": "minimax_music3_chamber_pop" }, { - "path": "template-gallery/reviews/lumina2_larch_on_glacial_pond.original-provenance.json", - "sha256": "sha256:bytes:16e6a8baf35baec6d9e1be13523eaa5606174123b3a61274a257d5fbd14977f3", + "path": "template-gallery/reviews/mochi_surf_over_dark_pebbles.original-provenance.json", + "sha256": "sha256:bytes:74b784153cf2626a77aee1e9f6ec452261b07350b643e152f23e864e7ef6259f", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/Alpha-VLLM/Lumina-Image-2.0/tree/53504abd8178b30685b6c4c7a4cd181ff78b73e9", - "sourceRevision": "Alpha-VLLM/Lumina-Image-2.0@53504abd8178b30685b6c4c7a4cd181ff78b73e9", + "sourceUrl": "https://huggingface.co/genmo/mochi-1-preview/tree/14be5fcea23095ed330cb214647916a451e38b6e", + "sourceRevision": "genmo/mochi-1-preview@14be5fcea23095ed330cb214647916a451e38b6e", "sourceLicense": "MoDiff-authored Gallery metadata", "modelTerms": [ - "Publisher model terms at https://huggingface.co/Alpha-VLLM/Lumina-Image-2.0/tree/53504abd8178b30685b6c4c7a4cd181ff78b73e9" + "Publisher model terms at https://huggingface.co/genmo/mochi-1-preview/tree/14be5fcea23095ed330cb214647916a451e38b6e" ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "Alpha-VLLM/Lumina-Image-2.0@53504abd8178b30685b6c4c7a4cd181ff78b73e9 https://huggingface.co/Alpha-VLLM/Lumina-Image-2.0/tree/53504abd8178b30685b6c4c7a4cd181ff78b73e9" + "genmo/mochi-1-preview@14be5fcea23095ed330cb214647916a451e38b6e https://huggingface.co/genmo/mochi-1-preview/tree/14be5fcea23095ed330cb214647916a451e38b6e" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "c2df9edb92f8ff905b6c9a138a285e67c621f3d2dfa3232f859aaf963b725aca", + "humanApprovalPacketSHA256": "de8db2f2fa14b59514ea146654439aea279cc6fad5be1dca8cf17e057abe9945", "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", - "provenanceTemplateId": "lumina2_larch_on_glacial_pond" + "provenanceTemplateId": "mochi_surf_over_dark_pebbles" }, { - "path": "template-gallery/reviews/lumina2_larch_on_glacial_pond.original-review.json", - "sha256": "sha256:bytes:3fa1cbf6c53ed5ce65f8d116779ff9dea32a9c52c8a0877fbb87f77f17237695", + "path": "template-gallery/reviews/mochi_surf_over_dark_pebbles.original-review.json", + "sha256": "sha256:bytes:9b8bf5f3fe30fad3bb2bb970e6749a3f7f89ce7946eef3484c840167af3f86f9", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/Alpha-VLLM/Lumina-Image-2.0/tree/53504abd8178b30685b6c4c7a4cd181ff78b73e9", - "sourceRevision": "Alpha-VLLM/Lumina-Image-2.0@53504abd8178b30685b6c4c7a4cd181ff78b73e9", + "sourceUrl": "https://huggingface.co/genmo/mochi-1-preview/tree/14be5fcea23095ed330cb214647916a451e38b6e", + "sourceRevision": "genmo/mochi-1-preview@14be5fcea23095ed330cb214647916a451e38b6e", "sourceLicense": "MoDiff-authored Gallery metadata", "modelTerms": [ - "Publisher model terms at https://huggingface.co/Alpha-VLLM/Lumina-Image-2.0/tree/53504abd8178b30685b6c4c7a4cd181ff78b73e9" + "Publisher model terms at https://huggingface.co/genmo/mochi-1-preview/tree/14be5fcea23095ed330cb214647916a451e38b6e" ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "Alpha-VLLM/Lumina-Image-2.0@53504abd8178b30685b6c4c7a4cd181ff78b73e9 https://huggingface.co/Alpha-VLLM/Lumina-Image-2.0/tree/53504abd8178b30685b6c4c7a4cd181ff78b73e9" + "genmo/mochi-1-preview@14be5fcea23095ed330cb214647916a451e38b6e https://huggingface.co/genmo/mochi-1-preview/tree/14be5fcea23095ed330cb214647916a451e38b6e" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "c2df9edb92f8ff905b6c9a138a285e67c621f3d2dfa3232f859aaf963b725aca", + "humanApprovalPacketSHA256": "de8db2f2fa14b59514ea146654439aea279cc6fad5be1dca8cf17e057abe9945", "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", - "provenanceTemplateId": "lumina2_larch_on_glacial_pond" + "provenanceTemplateId": "mochi_surf_over_dark_pebbles" }, { - "path": "template-gallery/reviews/lumina2_larch_on_glacial_pond.quality-review.json", - "sha256": "sha256:bytes:527cf3a6d6a7820e09450d4a6d533e5d875a914bd2c8771c2060a513f712544e", + "path": "template-gallery/reviews/mochi_surf_over_dark_pebbles.quality-review.json", + "sha256": "sha256:bytes:124e335657f246c8f498b5ebc7d259522bba555c763c9a51fda3596c143690b2", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/Alpha-VLLM/Lumina-Image-2.0/tree/53504abd8178b30685b6c4c7a4cd181ff78b73e9", - "sourceRevision": "Alpha-VLLM/Lumina-Image-2.0@53504abd8178b30685b6c4c7a4cd181ff78b73e9", + "sourceUrl": "https://huggingface.co/genmo/mochi-1-preview/tree/14be5fcea23095ed330cb214647916a451e38b6e", + "sourceRevision": "genmo/mochi-1-preview@14be5fcea23095ed330cb214647916a451e38b6e", "sourceLicense": "MoDiff-authored Gallery metadata", "modelTerms": [ - "Publisher model terms at https://huggingface.co/Alpha-VLLM/Lumina-Image-2.0/tree/53504abd8178b30685b6c4c7a4cd181ff78b73e9" + "Publisher model terms at https://huggingface.co/genmo/mochi-1-preview/tree/14be5fcea23095ed330cb214647916a451e38b6e" ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "Alpha-VLLM/Lumina-Image-2.0@53504abd8178b30685b6c4c7a4cd181ff78b73e9 https://huggingface.co/Alpha-VLLM/Lumina-Image-2.0/tree/53504abd8178b30685b6c4c7a4cd181ff78b73e9" + "genmo/mochi-1-preview@14be5fcea23095ed330cb214647916a451e38b6e https://huggingface.co/genmo/mochi-1-preview/tree/14be5fcea23095ed330cb214647916a451e38b6e" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "c2df9edb92f8ff905b6c9a138a285e67c621f3d2dfa3232f859aaf963b725aca", + "humanApprovalPacketSHA256": "de8db2f2fa14b59514ea146654439aea279cc6fad5be1dca8cf17e057abe9945", "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", - "provenanceTemplateId": "lumina2_larch_on_glacial_pond" + "provenanceTemplateId": "mochi_surf_over_dark_pebbles" }, { - "path": "template-gallery/reviews/lumina2_larch_on_glacial_pond.retained-template-provenance.json", - "sha256": "sha256:bytes:d62e4d0a6e3739b95089003b3095611e419f62bcdc39befbb67aeba846aec0c8", + "path": "template-gallery/reviews/mochi_surf_over_dark_pebbles.retained-template-provenance.json", + "sha256": "sha256:bytes:284c2a0297b7e9f83f84b23ce94062462611273672b580b1f65311455803b45f", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/Alpha-VLLM/Lumina-Image-2.0/tree/53504abd8178b30685b6c4c7a4cd181ff78b73e9", - "sourceRevision": "Alpha-VLLM/Lumina-Image-2.0@53504abd8178b30685b6c4c7a4cd181ff78b73e9", + "sourceUrl": "https://huggingface.co/genmo/mochi-1-preview/tree/14be5fcea23095ed330cb214647916a451e38b6e", + "sourceRevision": "genmo/mochi-1-preview@14be5fcea23095ed330cb214647916a451e38b6e", "sourceLicense": "MoDiff-authored Gallery metadata", "modelTerms": [ - "Publisher model terms at https://huggingface.co/Alpha-VLLM/Lumina-Image-2.0/tree/53504abd8178b30685b6c4c7a4cd181ff78b73e9" + "Publisher model terms at https://huggingface.co/genmo/mochi-1-preview/tree/14be5fcea23095ed330cb214647916a451e38b6e" ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "Alpha-VLLM/Lumina-Image-2.0@53504abd8178b30685b6c4c7a4cd181ff78b73e9 https://huggingface.co/Alpha-VLLM/Lumina-Image-2.0/tree/53504abd8178b30685b6c4c7a4cd181ff78b73e9" + "genmo/mochi-1-preview@14be5fcea23095ed330cb214647916a451e38b6e https://huggingface.co/genmo/mochi-1-preview/tree/14be5fcea23095ed330cb214647916a451e38b6e" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "c2df9edb92f8ff905b6c9a138a285e67c621f3d2dfa3232f859aaf963b725aca", + "humanApprovalPacketSHA256": "de8db2f2fa14b59514ea146654439aea279cc6fad5be1dca8cf17e057abe9945", "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", - "provenanceTemplateId": "lumina2_larch_on_glacial_pond" + "provenanceTemplateId": "mochi_surf_over_dark_pebbles" }, { - "path": "template-gallery/reviews/lumina_opal_pendant_in_limestone.original-provenance.json", - "sha256": "sha256:bytes:1759ed2ceb7e564e568eced6f47a017c647dd549c2ebdf6e414310d8445a4fd4", + "path": "template-gallery/reviews/ochre_paper_pavilion.original-provenance.json", + "sha256": "sha256:bytes:5fab665db87b17f2c4cea8e3903ac6df84232912fc2abaabee3bf3107542dc96", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/Alpha-VLLM/Lumina-Next-SFT-diffusers/tree/0ee5ec90043acf5cb41fe96274af36eb7fad8d95", - "sourceRevision": "Alpha-VLLM/Lumina-Next-SFT-diffusers@0ee5ec90043acf5cb41fe96274af36eb7fad8d95", + "sourceUrl": "https://huggingface.co/zai-org/CogView3-Plus-3B/tree/5d70e40732ac0efac98524c51a7fa9c82707f1e5", + "sourceRevision": "zai-org/CogView3-Plus-3B@5d70e40732ac0efac98524c51a7fa9c82707f1e5", "sourceLicense": "MoDiff-authored Gallery metadata", "modelTerms": [ - "https://huggingface.co/Alpha-VLLM/Lumina-Next-SFT-diffusers/blob/0ee5ec90043acf5cb41fe96274af36eb7fad8d95/README.md" + "apache-2.0. https://huggingface.co/zai-org/CogView3-Plus-3B/tree/5d70e40732ac0efac98524c51a7fa9c82707f1e5" ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "Alpha-VLLM/Lumina-Next-SFT-diffusers@0ee5ec90043acf5cb41fe96274af36eb7fad8d95 https://huggingface.co/Alpha-VLLM/Lumina-Next-SFT-diffusers/tree/0ee5ec90043acf5cb41fe96274af36eb7fad8d95" + "zai-org/CogView3-Plus-3B@5d70e40732ac0efac98524c51a7fa9c82707f1e5 https://huggingface.co/zai-org/CogView3-Plus-3B/tree/5d70e40732ac0efac98524c51a7fa9c82707f1e5" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", @@ -16014,26 +17315,26 @@ "reviewClass": "per-file-maintainer-accepted-retained-registration", "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", - "provenanceTemplateId": "lumina_opal_pendant_in_limestone" + "provenanceTemplateId": "ochre_paper_pavilion" }, { - "path": "template-gallery/reviews/lumina_opal_pendant_in_limestone.original-review.json", - "sha256": "sha256:bytes:11b0b3259e607f479a30ccb2c6f530ff41cb6367245961c43f56ccad21babfb7", + "path": "template-gallery/reviews/ochre_paper_pavilion.original-review.json", + "sha256": "sha256:bytes:6e31d3ec89e61e8b5722fb93db8f7bb7ea8328bf1c055028ba44c18affacf058", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/Alpha-VLLM/Lumina-Next-SFT-diffusers/tree/0ee5ec90043acf5cb41fe96274af36eb7fad8d95", - "sourceRevision": "Alpha-VLLM/Lumina-Next-SFT-diffusers@0ee5ec90043acf5cb41fe96274af36eb7fad8d95", + "sourceUrl": "https://huggingface.co/zai-org/CogView3-Plus-3B/tree/5d70e40732ac0efac98524c51a7fa9c82707f1e5", + "sourceRevision": "zai-org/CogView3-Plus-3B@5d70e40732ac0efac98524c51a7fa9c82707f1e5", "sourceLicense": "MoDiff-authored Gallery metadata", "modelTerms": [ - "https://huggingface.co/Alpha-VLLM/Lumina-Next-SFT-diffusers/blob/0ee5ec90043acf5cb41fe96274af36eb7fad8d95/README.md" + "apache-2.0. https://huggingface.co/zai-org/CogView3-Plus-3B/tree/5d70e40732ac0efac98524c51a7fa9c82707f1e5" ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "Alpha-VLLM/Lumina-Next-SFT-diffusers@0ee5ec90043acf5cb41fe96274af36eb7fad8d95 https://huggingface.co/Alpha-VLLM/Lumina-Next-SFT-diffusers/tree/0ee5ec90043acf5cb41fe96274af36eb7fad8d95" + "zai-org/CogView3-Plus-3B@5d70e40732ac0efac98524c51a7fa9c82707f1e5 https://huggingface.co/zai-org/CogView3-Plus-3B/tree/5d70e40732ac0efac98524c51a7fa9c82707f1e5" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", @@ -16041,652 +17342,728 @@ "reviewClass": "per-file-maintainer-accepted-retained-registration", "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", - "provenanceTemplateId": "lumina_opal_pendant_in_limestone" + "provenanceTemplateId": "ochre_paper_pavilion" + }, + { + "path": "template-gallery/reviews/ochre_paper_pavilion.quality-review.json", + "sha256": "sha256:bytes:a635772ae5b26758629581843258dea266c7e85934eb222d4884b9a2522a93c1", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/zai-org/CogView3-Plus-3B/tree/5d70e40732ac0efac98524c51a7fa9c82707f1e5", + "sourceRevision": "zai-org/CogView3-Plus-3B@5d70e40732ac0efac98524c51a7fa9c82707f1e5", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "apache-2.0. https://huggingface.co/zai-org/CogView3-Plus-3B/tree/5d70e40732ac0efac98524c51a7fa9c82707f1e5" + ], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "zai-org/CogView3-Plus-3B@5d70e40732ac0efac98524c51a7fa9c82707f1e5 https://huggingface.co/zai-org/CogView3-Plus-3B/tree/5d70e40732ac0efac98524c51a7fa9c82707f1e5" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", + "provenanceTemplateId": "ochre_paper_pavilion" + }, + { + "path": "template-gallery/reviews/ochre_paper_pavilion.retained-template-provenance.json", + "sha256": "sha256:bytes:9bd899fe903bcc05057c1ae452c641700d9c36b5001b499dadba6a6a07e36e80", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/zai-org/CogView3-Plus-3B/tree/5d70e40732ac0efac98524c51a7fa9c82707f1e5", + "sourceRevision": "zai-org/CogView3-Plus-3B@5d70e40732ac0efac98524c51a7fa9c82707f1e5", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "apache-2.0. https://huggingface.co/zai-org/CogView3-Plus-3B/tree/5d70e40732ac0efac98524c51a7fa9c82707f1e5" + ], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "zai-org/CogView3-Plus-3B@5d70e40732ac0efac98524c51a7fa9c82707f1e5 https://huggingface.co/zai-org/CogView3-Plus-3B/tree/5d70e40732ac0efac98524c51a7fa9c82707f1e5" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", + "provenanceTemplateId": "ochre_paper_pavilion" + }, + { + "path": "template-gallery/reviews/omnigen_cobalt_against_soft_apricot.original-provenance.json", + "sha256": "sha256:bytes:88ee6e3f6d910a68983aedb6b0cb553cad2341ca72627f2d6c578ecfefe1d760", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/Shitao/OmniGen-v1-diffusers/tree/016e2f61d12a98303f6bbdf122687694d7984268", + "sourceRevision": "Shitao/OmniGen-v1-diffusers@016e2f61d12a98303f6bbdf122687694d7984268", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "Publisher model terms at https://huggingface.co/Shitao/OmniGen-v1-diffusers/tree/016e2f61d12a98303f6bbdf122687694d7984268" + ], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "Shitao/OmniGen-v1-diffusers@016e2f61d12a98303f6bbdf122687694d7984268 https://huggingface.co/Shitao/OmniGen-v1-diffusers/tree/016e2f61d12a98303f6bbdf122687694d7984268" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "60b01498a2df5f4e4622cdc2f9a43c83d187820780d2425a19718c13707db501", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "omnigen_cobalt_against_soft_apricot" + }, + { + "path": "template-gallery/reviews/omnigen_cobalt_against_soft_apricot.original-review.json", + "sha256": "sha256:bytes:ae25cda076716b4dfe73095b1bcaa75418984db19fda3592f60335da9194e3e2", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/Shitao/OmniGen-v1-diffusers/tree/016e2f61d12a98303f6bbdf122687694d7984268", + "sourceRevision": "Shitao/OmniGen-v1-diffusers@016e2f61d12a98303f6bbdf122687694d7984268", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "Publisher model terms at https://huggingface.co/Shitao/OmniGen-v1-diffusers/tree/016e2f61d12a98303f6bbdf122687694d7984268" + ], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "Shitao/OmniGen-v1-diffusers@016e2f61d12a98303f6bbdf122687694d7984268 https://huggingface.co/Shitao/OmniGen-v1-diffusers/tree/016e2f61d12a98303f6bbdf122687694d7984268" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "60b01498a2df5f4e4622cdc2f9a43c83d187820780d2425a19718c13707db501", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "omnigen_cobalt_against_soft_apricot" }, { - "path": "template-gallery/reviews/lumina_opal_pendant_in_limestone.quality-review.json", - "sha256": "sha256:bytes:4566c14128c7a9a7b32d92d927cff0c2ca12bb392328bd692272130e0c5fe387", + "path": "template-gallery/reviews/omnigen_cobalt_against_soft_apricot.quality-review.json", + "sha256": "sha256:bytes:f81904cbc14984f2916d4d26b20a38d7e90f46aa967bead471d642c0196ad273", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/Alpha-VLLM/Lumina-Next-SFT-diffusers/tree/0ee5ec90043acf5cb41fe96274af36eb7fad8d95", - "sourceRevision": "Alpha-VLLM/Lumina-Next-SFT-diffusers@0ee5ec90043acf5cb41fe96274af36eb7fad8d95", + "sourceUrl": "https://huggingface.co/Shitao/OmniGen-v1-diffusers/tree/016e2f61d12a98303f6bbdf122687694d7984268", + "sourceRevision": "Shitao/OmniGen-v1-diffusers@016e2f61d12a98303f6bbdf122687694d7984268", "sourceLicense": "MoDiff-authored Gallery metadata", "modelTerms": [ - "https://huggingface.co/Alpha-VLLM/Lumina-Next-SFT-diffusers/blob/0ee5ec90043acf5cb41fe96274af36eb7fad8d95/README.md" + "Publisher model terms at https://huggingface.co/Shitao/OmniGen-v1-diffusers/tree/016e2f61d12a98303f6bbdf122687694d7984268" ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "Alpha-VLLM/Lumina-Next-SFT-diffusers@0ee5ec90043acf5cb41fe96274af36eb7fad8d95 https://huggingface.co/Alpha-VLLM/Lumina-Next-SFT-diffusers/tree/0ee5ec90043acf5cb41fe96274af36eb7fad8d95" + "Shitao/OmniGen-v1-diffusers@016e2f61d12a98303f6bbdf122687694d7984268 https://huggingface.co/Shitao/OmniGen-v1-diffusers/tree/016e2f61d12a98303f6bbdf122687694d7984268" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", - "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", - "provenanceTemplateId": "lumina_opal_pendant_in_limestone" + "humanApprovalPacketSHA256": "60b01498a2df5f4e4622cdc2f9a43c83d187820780d2425a19718c13707db501", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "omnigen_cobalt_against_soft_apricot" }, { - "path": "template-gallery/reviews/lumina_opal_pendant_in_limestone.retained-template-provenance.json", - "sha256": "sha256:bytes:a4e3e7b9be7fdd489f3876e63e7d0e9ed65508e84eabb0a673719251d3d46e0e", + "path": "template-gallery/reviews/omnigen_cobalt_against_soft_apricot.retained-template-provenance.json", + "sha256": "sha256:bytes:1ac31719c0a2fcf0c59ebf8c1f6fbcff2be9847aa23b748c1bb43a706b8f14fd", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/Alpha-VLLM/Lumina-Next-SFT-diffusers/tree/0ee5ec90043acf5cb41fe96274af36eb7fad8d95", - "sourceRevision": "Alpha-VLLM/Lumina-Next-SFT-diffusers@0ee5ec90043acf5cb41fe96274af36eb7fad8d95", + "sourceUrl": "https://huggingface.co/Shitao/OmniGen-v1-diffusers/tree/016e2f61d12a98303f6bbdf122687694d7984268", + "sourceRevision": "Shitao/OmniGen-v1-diffusers@016e2f61d12a98303f6bbdf122687694d7984268", "sourceLicense": "MoDiff-authored Gallery metadata", "modelTerms": [ - "https://huggingface.co/Alpha-VLLM/Lumina-Next-SFT-diffusers/blob/0ee5ec90043acf5cb41fe96274af36eb7fad8d95/README.md" + "Publisher model terms at https://huggingface.co/Shitao/OmniGen-v1-diffusers/tree/016e2f61d12a98303f6bbdf122687694d7984268" ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "Alpha-VLLM/Lumina-Next-SFT-diffusers@0ee5ec90043acf5cb41fe96274af36eb7fad8d95 https://huggingface.co/Alpha-VLLM/Lumina-Next-SFT-diffusers/tree/0ee5ec90043acf5cb41fe96274af36eb7fad8d95" + "Shitao/OmniGen-v1-diffusers@016e2f61d12a98303f6bbdf122687694d7984268 https://huggingface.co/Shitao/OmniGen-v1-diffusers/tree/016e2f61d12a98303f6bbdf122687694d7984268" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", - "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", - "provenanceTemplateId": "lumina_opal_pendant_in_limestone" + "humanApprovalPacketSHA256": "60b01498a2df5f4e4622cdc2f9a43c83d187820780d2425a19718c13707db501", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "omnigen_cobalt_against_soft_apricot" }, { - "path": "template-gallery/reviews/marigold_depth_synthetic_ramp.quality-review.json", - "sha256": "sha256:bytes:17c3bbb2da127558c468e58ccc2bb08a9b78d4f07f901d483cfe8092732ebb42", + "path": "template-gallery/reviews/omnigen_red_enamel_folded_linen.original-provenance.json", + "sha256": "sha256:bytes:01821146c4f81aa3eef581cd4bfedfa892d75176804ecf4cc7b3ed859779e087", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", - "creationMethod": "Project-authored redacted retained Gallery provenance, review, or registration metadata", - "sourceUrl": null, - "sourceRevision": null, - "sourceLicense": "MoDiff-authored exact fixture or Gallery metadata", - "modelTerms": [], + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/Shitao/OmniGen-v1-diffusers/tree/016e2f61d12a98303f6bbdf122687694d7984268", + "sourceRevision": "Shitao/OmniGen-v1-diffusers@016e2f61d12a98303f6bbdf122687694d7984268", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "Publisher model terms at https://huggingface.co/Shitao/OmniGen-v1-diffusers/tree/016e2f61d12a98303f6bbdf122687694d7984268" + ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], - "requiredAttribution": [], + "requiredAttribution": [ + "Shitao/OmniGen-v1-diffusers@016e2f61d12a98303f6bbdf122687694d7984268 https://huggingface.co/Shitao/OmniGen-v1-diffusers/tree/016e2f61d12a98303f6bbdf122687694d7984268" + ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", - "reviewedAt": "2026-11-19", + "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "e604b0284a57b65b20343c7776511ae15bef922c7e104c09f0f6931eec610d2d", - "publicationBasis": "Activate and publish the two approved Gallery candidates using their retained native runs.", - "provenanceTemplateId": "marigold_depth_synthetic_ramp" + "humanApprovalPacketSHA256": "d7e2fd301d16eede3da44cec1811930560ba0d958dfd46d8d0962eb3a22eea63", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "omnigen_red_enamel_folded_linen" }, { - "path": "template-gallery/reviews/marigold_depth_synthetic_ramp.retained-template-provenance.json", - "sha256": "sha256:bytes:57b1487ecee6f44016512e1e1ce5c8135e963add06b1519b7e6007cb83184ae0", + "path": "template-gallery/reviews/omnigen_red_enamel_folded_linen.original-review.json", + "sha256": "sha256:bytes:9e64209e76a4bbdcefe54ffae53c9d71d6e2166d84fb605a891c9600c0d85ec3", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", - "creationMethod": "Project-authored redacted retained Gallery provenance, review, or registration metadata", - "sourceUrl": null, - "sourceRevision": null, - "sourceLicense": "MoDiff-authored exact fixture or Gallery metadata", - "modelTerms": [], + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/Shitao/OmniGen-v1-diffusers/tree/016e2f61d12a98303f6bbdf122687694d7984268", + "sourceRevision": "Shitao/OmniGen-v1-diffusers@016e2f61d12a98303f6bbdf122687694d7984268", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "Publisher model terms at https://huggingface.co/Shitao/OmniGen-v1-diffusers/tree/016e2f61d12a98303f6bbdf122687694d7984268" + ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], - "requiredAttribution": [], + "requiredAttribution": [ + "Shitao/OmniGen-v1-diffusers@016e2f61d12a98303f6bbdf122687694d7984268 https://huggingface.co/Shitao/OmniGen-v1-diffusers/tree/016e2f61d12a98303f6bbdf122687694d7984268" + ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", - "reviewedAt": "2026-11-19", + "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "e604b0284a57b65b20343c7776511ae15bef922c7e104c09f0f6931eec610d2d", - "publicationBasis": "Activate and publish the two approved Gallery candidates using their retained native runs.", - "provenanceTemplateId": "marigold_depth_synthetic_ramp" + "humanApprovalPacketSHA256": "d7e2fd301d16eede3da44cec1811930560ba0d958dfd46d8d0962eb3a22eea63", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "omnigen_red_enamel_folded_linen" }, { - "path": "template-gallery/reviews/minimax_h3_image_old_town_cat.quality-review.json", - "sha256": "sha256:bytes:ce9fc2a0edaaf3eef1f3db03024d3e64108523e93fc2797fee7cbe7364e7ce97", + "path": "template-gallery/reviews/omnigen_red_enamel_folded_linen.quality-review.json", + "sha256": "sha256:bytes:01c77e3b3474145e708ee18122f5c81ed3364019c260e9888624c7e9a6ab784a", "publishDecision": "approved", "holdReason": null, - "creatorOrRightsholder": "MoDiff project maintainers, subject to the recorded model terms", - "creationMethod": "Project-authored current-recipe review or redacted provenance for the saved image", - "sourceUrl": "https://huggingface.co/MiniMaxAI/MiniMax-H3-Image/tree/492fd8c4eca666f1085f57e30738c1e0d86b3439", - "sourceRevision": "MiniMaxAI/MiniMax-H3-Image@492fd8c4eca666f1085f57e30738c1e0d86b3439", - "sourceLicense": "Apache-2.0 project-authored metadata", + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/Shitao/OmniGen-v1-diffusers/tree/016e2f61d12a98303f6bbdf122687694d7984268", + "sourceRevision": "Shitao/OmniGen-v1-diffusers@016e2f61d12a98303f6bbdf122687694d7984268", + "sourceLicense": "MoDiff-authored Gallery metadata", "modelTerms": [ - "MiniMaxAI/MiniMax-H3-Image@492fd8c4eca666f1085f57e30738c1e0d86b3439: MiniMax H3 Image Community License Agreement" + "Publisher model terms at https://huggingface.co/Shitao/OmniGen-v1-diffusers/tree/016e2f61d12a98303f6bbdf122687694d7984268" ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], - "requiredAttribution": [], + "requiredAttribution": [ + "Shitao/OmniGen-v1-diffusers@016e2f61d12a98303f6bbdf122687694d7984268 https://huggingface.co/Shitao/OmniGen-v1-diffusers/tree/016e2f61d12a98303f6bbdf122687694d7984268" + ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", - "reviewedAt": "2026-11-19", - "reviewClass": "per-file-maintainer-accepted-current-recipe", - "humanApprovalPacketSHA256": "97cf1d2ce0a8500d5b3b67ff4efb20a2e91c44a6f1e22d3eafd7b408babc31a2", - "provenanceTemplateId": "minimax_h3_image_old_town_cat" + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "d7e2fd301d16eede3da44cec1811930560ba0d958dfd46d8d0962eb3a22eea63", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "omnigen_red_enamel_folded_linen" }, { - "path": "template-gallery/reviews/minimax_h3_image_old_town_cat.reviewed-provenance.json", - "sha256": "sha256:bytes:9d5792710da6b60188994c51bfa1ac49047121433d83961cd58d22b9caf6030c", + "path": "template-gallery/reviews/omnigen_red_enamel_folded_linen.retained-template-provenance.json", + "sha256": "sha256:bytes:b066ad2d0e03b2eb348d588e3177a782062d463d50caa7c38bf1801449517e6e", "publishDecision": "approved", "holdReason": null, - "creatorOrRightsholder": "MoDiff project maintainers, subject to the recorded model terms", - "creationMethod": "Project-authored current-recipe review or redacted provenance for the saved image", - "sourceUrl": "https://huggingface.co/MiniMaxAI/MiniMax-H3-Image/tree/492fd8c4eca666f1085f57e30738c1e0d86b3439", - "sourceRevision": "MiniMaxAI/MiniMax-H3-Image@492fd8c4eca666f1085f57e30738c1e0d86b3439", - "sourceLicense": "Apache-2.0 project-authored metadata", + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/Shitao/OmniGen-v1-diffusers/tree/016e2f61d12a98303f6bbdf122687694d7984268", + "sourceRevision": "Shitao/OmniGen-v1-diffusers@016e2f61d12a98303f6bbdf122687694d7984268", + "sourceLicense": "MoDiff-authored Gallery metadata", "modelTerms": [ - "MiniMaxAI/MiniMax-H3-Image@492fd8c4eca666f1085f57e30738c1e0d86b3439: MiniMax H3 Image Community License Agreement" + "Publisher model terms at https://huggingface.co/Shitao/OmniGen-v1-diffusers/tree/016e2f61d12a98303f6bbdf122687694d7984268" ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], - "requiredAttribution": [], + "requiredAttribution": [ + "Shitao/OmniGen-v1-diffusers@016e2f61d12a98303f6bbdf122687694d7984268 https://huggingface.co/Shitao/OmniGen-v1-diffusers/tree/016e2f61d12a98303f6bbdf122687694d7984268" + ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", - "reviewedAt": "2026-11-19", - "reviewClass": "per-file-maintainer-accepted-current-recipe", - "humanApprovalPacketSHA256": "97cf1d2ce0a8500d5b3b67ff4efb20a2e91c44a6f1e22d3eafd7b408babc31a2", - "provenanceTemplateId": "minimax_h3_image_old_town_cat" - }, - { - "creatorOrRightsholder": "MoDiff project maintainers", - "creationMethod": "Project-authored redacted technical/review records or versioned declarations for six maintainer-accepted native results", - "sourceUrl": null, - "sourceRevision": null, - "sourceLicense": "Apache-2.0 project-authored metadata; media and model terms remain separate", - "modelTerms": [], - "aiGenerated": false, - "humanLikenessConsent": "not-applicable", - "marks": [], - "requiredAttribution": [], - "assetLicense": "Apache-2.0", - "path": "template-gallery/reviews/minimax_music3_chamber_pop.quality-review.json", - "sha256": "sha256:bytes:cd83b77fc2ccb4b11263406c12dc9d0d222af582e52dc47b77c18a4243462502", - "publishDecision": "approved", - "holdReason": null, - "reviewedBy": "SOURAV DAS", - "reviewedAt": "2026-11-13", - "reviewClass": "per-file-maintainer-accepted-native-six-registration", - "humanApprovalPacketSHA256": "03b66b4631afb15032d62a1705331b56f6b12c4882c23945175ec92cc45a506f", - "publicationBasis": "Register the six approved assets now while Moonflower runs on Linux. Use Windows in parallel wherever possible, and keep the longer workflows separate for AMD cloud.", - "provenanceTemplateId": "minimax_music3_chamber_pop" - }, - { - "creatorOrRightsholder": "MoDiff project maintainers", - "creationMethod": "Project-authored redacted technical/review records or versioned declarations for six maintainer-accepted native results", - "sourceUrl": null, - "sourceRevision": null, - "sourceLicense": "Apache-2.0 project-authored metadata; media and model terms remain separate", - "modelTerms": [], - "aiGenerated": false, - "humanLikenessConsent": "not-applicable", - "marks": [], - "requiredAttribution": [], - "assetLicense": "Apache-2.0", - "path": "template-gallery/reviews/minimax_music3_chamber_pop.reviewed-provenance.json", - "sha256": "sha256:bytes:1b2c91a45c40a7d6621bee54083d3e02d9b843d1034c06e3284ff8f1a2e44270", - "publishDecision": "approved", - "holdReason": null, - "reviewedBy": "SOURAV DAS", - "reviewedAt": "2026-11-13", - "reviewClass": "per-file-maintainer-accepted-native-six-registration", - "humanApprovalPacketSHA256": "03b66b4631afb15032d62a1705331b56f6b12c4882c23945175ec92cc45a506f", - "publicationBasis": "Register the six approved assets now while Moonflower runs on Linux. Use Windows in parallel wherever possible, and keep the longer workflows separate for AMD cloud.", - "provenanceTemplateId": "minimax_music3_chamber_pop" + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "d7e2fd301d16eede3da44cec1811930560ba0d958dfd46d8d0962eb3a22eea63", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "omnigen_red_enamel_folded_linen" }, { - "path": "template-gallery/reviews/ochre_paper_pavilion.original-provenance.json", - "sha256": "sha256:bytes:5fab665db87b17f2c4cea8e3903ac6df84232912fc2abaabee3bf3107542dc96", + "path": "template-gallery/reviews/omnigen_tulips_after_rain.original-provenance.json", + "sha256": "sha256:bytes:cd37ada4ad60fccb5fece5fe6ef03dd62ba7a8a66eb141579f8fa424b6265d71", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/zai-org/CogView3-Plus-3B/tree/5d70e40732ac0efac98524c51a7fa9c82707f1e5", - "sourceRevision": "zai-org/CogView3-Plus-3B@5d70e40732ac0efac98524c51a7fa9c82707f1e5", + "sourceUrl": "https://huggingface.co/Shitao/OmniGen-v1-diffusers/tree/016e2f61d12a98303f6bbdf122687694d7984268", + "sourceRevision": "Shitao/OmniGen-v1-diffusers@016e2f61d12a98303f6bbdf122687694d7984268", "sourceLicense": "MoDiff-authored Gallery metadata", "modelTerms": [ - "apache-2.0. https://huggingface.co/zai-org/CogView3-Plus-3B/tree/5d70e40732ac0efac98524c51a7fa9c82707f1e5" + "Publisher model terms at https://huggingface.co/Shitao/OmniGen-v1-diffusers/tree/016e2f61d12a98303f6bbdf122687694d7984268" ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "zai-org/CogView3-Plus-3B@5d70e40732ac0efac98524c51a7fa9c82707f1e5 https://huggingface.co/zai-org/CogView3-Plus-3B/tree/5d70e40732ac0efac98524c51a7fa9c82707f1e5" + "Shitao/OmniGen-v1-diffusers@016e2f61d12a98303f6bbdf122687694d7984268 https://huggingface.co/Shitao/OmniGen-v1-diffusers/tree/016e2f61d12a98303f6bbdf122687694d7984268" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", - "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", - "provenanceTemplateId": "ochre_paper_pavilion" + "humanApprovalPacketSHA256": "c2df9edb92f8ff905b6c9a138a285e67c621f3d2dfa3232f859aaf963b725aca", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "omnigen_tulips_after_rain" }, { - "path": "template-gallery/reviews/ochre_paper_pavilion.original-review.json", - "sha256": "sha256:bytes:6e31d3ec89e61e8b5722fb93db8f7bb7ea8328bf1c055028ba44c18affacf058", + "path": "template-gallery/reviews/omnigen_tulips_after_rain.original-review.json", + "sha256": "sha256:bytes:3353e7fabebfddfc0b47f2ebdd668c0ae01f426d9280d1e4ac03d307582b8cc3", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/zai-org/CogView3-Plus-3B/tree/5d70e40732ac0efac98524c51a7fa9c82707f1e5", - "sourceRevision": "zai-org/CogView3-Plus-3B@5d70e40732ac0efac98524c51a7fa9c82707f1e5", + "sourceUrl": "https://huggingface.co/Shitao/OmniGen-v1-diffusers/tree/016e2f61d12a98303f6bbdf122687694d7984268", + "sourceRevision": "Shitao/OmniGen-v1-diffusers@016e2f61d12a98303f6bbdf122687694d7984268", "sourceLicense": "MoDiff-authored Gallery metadata", "modelTerms": [ - "apache-2.0. https://huggingface.co/zai-org/CogView3-Plus-3B/tree/5d70e40732ac0efac98524c51a7fa9c82707f1e5" + "Publisher model terms at https://huggingface.co/Shitao/OmniGen-v1-diffusers/tree/016e2f61d12a98303f6bbdf122687694d7984268" ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "zai-org/CogView3-Plus-3B@5d70e40732ac0efac98524c51a7fa9c82707f1e5 https://huggingface.co/zai-org/CogView3-Plus-3B/tree/5d70e40732ac0efac98524c51a7fa9c82707f1e5" + "Shitao/OmniGen-v1-diffusers@016e2f61d12a98303f6bbdf122687694d7984268 https://huggingface.co/Shitao/OmniGen-v1-diffusers/tree/016e2f61d12a98303f6bbdf122687694d7984268" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", - "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", - "provenanceTemplateId": "ochre_paper_pavilion" + "humanApprovalPacketSHA256": "c2df9edb92f8ff905b6c9a138a285e67c621f3d2dfa3232f859aaf963b725aca", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "omnigen_tulips_after_rain" }, { - "path": "template-gallery/reviews/ochre_paper_pavilion.quality-review.json", - "sha256": "sha256:bytes:a635772ae5b26758629581843258dea266c7e85934eb222d4884b9a2522a93c1", + "path": "template-gallery/reviews/omnigen_tulips_after_rain.quality-review.json", + "sha256": "sha256:bytes:333fbf9b662ef072cf2621b37b814052af11c4e219a6640376ba53a2ee4c154f", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/zai-org/CogView3-Plus-3B/tree/5d70e40732ac0efac98524c51a7fa9c82707f1e5", - "sourceRevision": "zai-org/CogView3-Plus-3B@5d70e40732ac0efac98524c51a7fa9c82707f1e5", + "sourceUrl": "https://huggingface.co/Shitao/OmniGen-v1-diffusers/tree/016e2f61d12a98303f6bbdf122687694d7984268", + "sourceRevision": "Shitao/OmniGen-v1-diffusers@016e2f61d12a98303f6bbdf122687694d7984268", "sourceLicense": "MoDiff-authored Gallery metadata", "modelTerms": [ - "apache-2.0. https://huggingface.co/zai-org/CogView3-Plus-3B/tree/5d70e40732ac0efac98524c51a7fa9c82707f1e5" + "Publisher model terms at https://huggingface.co/Shitao/OmniGen-v1-diffusers/tree/016e2f61d12a98303f6bbdf122687694d7984268" ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "zai-org/CogView3-Plus-3B@5d70e40732ac0efac98524c51a7fa9c82707f1e5 https://huggingface.co/zai-org/CogView3-Plus-3B/tree/5d70e40732ac0efac98524c51a7fa9c82707f1e5" + "Shitao/OmniGen-v1-diffusers@016e2f61d12a98303f6bbdf122687694d7984268 https://huggingface.co/Shitao/OmniGen-v1-diffusers/tree/016e2f61d12a98303f6bbdf122687694d7984268" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", - "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", - "provenanceTemplateId": "ochre_paper_pavilion" + "humanApprovalPacketSHA256": "c2df9edb92f8ff905b6c9a138a285e67c621f3d2dfa3232f859aaf963b725aca", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "omnigen_tulips_after_rain" }, { - "path": "template-gallery/reviews/ochre_paper_pavilion.retained-template-provenance.json", - "sha256": "sha256:bytes:9bd899fe903bcc05057c1ae452c641700d9c36b5001b499dadba6a6a07e36e80", + "path": "template-gallery/reviews/omnigen_tulips_after_rain.retained-template-provenance.json", + "sha256": "sha256:bytes:143b1e03664e187b0815b81948843d05bf9bf2bc664f9c92b7cd78c3b7755245", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/zai-org/CogView3-Plus-3B/tree/5d70e40732ac0efac98524c51a7fa9c82707f1e5", - "sourceRevision": "zai-org/CogView3-Plus-3B@5d70e40732ac0efac98524c51a7fa9c82707f1e5", + "sourceUrl": "https://huggingface.co/Shitao/OmniGen-v1-diffusers/tree/016e2f61d12a98303f6bbdf122687694d7984268", + "sourceRevision": "Shitao/OmniGen-v1-diffusers@016e2f61d12a98303f6bbdf122687694d7984268", "sourceLicense": "MoDiff-authored Gallery metadata", "modelTerms": [ - "apache-2.0. https://huggingface.co/zai-org/CogView3-Plus-3B/tree/5d70e40732ac0efac98524c51a7fa9c82707f1e5" + "Publisher model terms at https://huggingface.co/Shitao/OmniGen-v1-diffusers/tree/016e2f61d12a98303f6bbdf122687694d7984268" ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "zai-org/CogView3-Plus-3B@5d70e40732ac0efac98524c51a7fa9c82707f1e5 https://huggingface.co/zai-org/CogView3-Plus-3B/tree/5d70e40732ac0efac98524c51a7fa9c82707f1e5" + "Shitao/OmniGen-v1-diffusers@016e2f61d12a98303f6bbdf122687694d7984268 https://huggingface.co/Shitao/OmniGen-v1-diffusers/tree/016e2f61d12a98303f6bbdf122687694d7984268" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", - "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", - "provenanceTemplateId": "ochre_paper_pavilion" + "humanApprovalPacketSHA256": "c2df9edb92f8ff905b6c9a138a285e67c621f3d2dfa3232f859aaf963b725aca", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "omnigen_tulips_after_rain" }, { - "path": "template-gallery/reviews/omnigen_cobalt_against_soft_apricot.original-provenance.json", - "sha256": "sha256:bytes:88ee6e3f6d910a68983aedb6b0cb553cad2341ca72627f2d6c578ecfefe1d760", + "path": "template-gallery/reviews/persimmon_glaze.original-provenance.json", + "sha256": "sha256:bytes:dece98191d7fdcae395409a4ca8fb0f7eb215bc095660a8251d668f1dabd0054", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/Shitao/OmniGen-v1-diffusers/tree/016e2f61d12a98303f6bbdf122687694d7984268", - "sourceRevision": "Shitao/OmniGen-v1-diffusers@016e2f61d12a98303f6bbdf122687694d7984268", + "sourceUrl": "https://huggingface.co/Efficient-Large-Model/Sana_600M_1024px_diffusers/tree/28f3af7689de15f3883d5863059a2fca0aa9b829", + "sourceRevision": "Efficient-Large-Model/Sana_600M_1024px_diffusers@28f3af7689de15f3883d5863059a2fca0aa9b829", "sourceLicense": "MoDiff-authored Gallery metadata", "modelTerms": [ - "Publisher model terms at https://huggingface.co/Shitao/OmniGen-v1-diffusers/tree/016e2f61d12a98303f6bbdf122687694d7984268" + "apache-2.0. https://huggingface.co/Efficient-Large-Model/Sana_600M_1024px_diffusers/tree/28f3af7689de15f3883d5863059a2fca0aa9b829" ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "Shitao/OmniGen-v1-diffusers@016e2f61d12a98303f6bbdf122687694d7984268 https://huggingface.co/Shitao/OmniGen-v1-diffusers/tree/016e2f61d12a98303f6bbdf122687694d7984268" + "Efficient-Large-Model/Sana_600M_1024px_diffusers@28f3af7689de15f3883d5863059a2fca0aa9b829 https://huggingface.co/Efficient-Large-Model/Sana_600M_1024px_diffusers/tree/28f3af7689de15f3883d5863059a2fca0aa9b829" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "60b01498a2df5f4e4622cdc2f9a43c83d187820780d2425a19718c13707db501", - "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", - "provenanceTemplateId": "omnigen_cobalt_against_soft_apricot" + "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", + "provenanceTemplateId": "persimmon_glaze" }, { - "path": "template-gallery/reviews/omnigen_cobalt_against_soft_apricot.original-review.json", - "sha256": "sha256:bytes:ae25cda076716b4dfe73095b1bcaa75418984db19fda3592f60335da9194e3e2", + "path": "template-gallery/reviews/persimmon_glaze.original-review.json", + "sha256": "sha256:bytes:3c97652cd91cc4af5660429652241efbe6675b20ec59c7abc73c3f1c185b491a", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/Shitao/OmniGen-v1-diffusers/tree/016e2f61d12a98303f6bbdf122687694d7984268", - "sourceRevision": "Shitao/OmniGen-v1-diffusers@016e2f61d12a98303f6bbdf122687694d7984268", + "sourceUrl": "https://huggingface.co/Efficient-Large-Model/Sana_600M_1024px_diffusers/tree/28f3af7689de15f3883d5863059a2fca0aa9b829", + "sourceRevision": "Efficient-Large-Model/Sana_600M_1024px_diffusers@28f3af7689de15f3883d5863059a2fca0aa9b829", "sourceLicense": "MoDiff-authored Gallery metadata", "modelTerms": [ - "Publisher model terms at https://huggingface.co/Shitao/OmniGen-v1-diffusers/tree/016e2f61d12a98303f6bbdf122687694d7984268" + "apache-2.0. https://huggingface.co/Efficient-Large-Model/Sana_600M_1024px_diffusers/tree/28f3af7689de15f3883d5863059a2fca0aa9b829" ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "Shitao/OmniGen-v1-diffusers@016e2f61d12a98303f6bbdf122687694d7984268 https://huggingface.co/Shitao/OmniGen-v1-diffusers/tree/016e2f61d12a98303f6bbdf122687694d7984268" + "Efficient-Large-Model/Sana_600M_1024px_diffusers@28f3af7689de15f3883d5863059a2fca0aa9b829 https://huggingface.co/Efficient-Large-Model/Sana_600M_1024px_diffusers/tree/28f3af7689de15f3883d5863059a2fca0aa9b829" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "60b01498a2df5f4e4622cdc2f9a43c83d187820780d2425a19718c13707db501", - "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", - "provenanceTemplateId": "omnigen_cobalt_against_soft_apricot" + "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", + "provenanceTemplateId": "persimmon_glaze" }, { - "path": "template-gallery/reviews/omnigen_cobalt_against_soft_apricot.quality-review.json", - "sha256": "sha256:bytes:f81904cbc14984f2916d4d26b20a38d7e90f46aa967bead471d642c0196ad273", + "path": "template-gallery/reviews/persimmon_glaze.quality-review.json", + "sha256": "sha256:bytes:9c9afc7223597ea8ee65889581c40f1e9f6a63a2bab6d7827b6af207353909ad", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/Shitao/OmniGen-v1-diffusers/tree/016e2f61d12a98303f6bbdf122687694d7984268", - "sourceRevision": "Shitao/OmniGen-v1-diffusers@016e2f61d12a98303f6bbdf122687694d7984268", + "sourceUrl": "https://huggingface.co/Efficient-Large-Model/Sana_600M_1024px_diffusers/tree/28f3af7689de15f3883d5863059a2fca0aa9b829", + "sourceRevision": "Efficient-Large-Model/Sana_600M_1024px_diffusers@28f3af7689de15f3883d5863059a2fca0aa9b829", "sourceLicense": "MoDiff-authored Gallery metadata", "modelTerms": [ - "Publisher model terms at https://huggingface.co/Shitao/OmniGen-v1-diffusers/tree/016e2f61d12a98303f6bbdf122687694d7984268" + "apache-2.0. https://huggingface.co/Efficient-Large-Model/Sana_600M_1024px_diffusers/tree/28f3af7689de15f3883d5863059a2fca0aa9b829" ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "Shitao/OmniGen-v1-diffusers@016e2f61d12a98303f6bbdf122687694d7984268 https://huggingface.co/Shitao/OmniGen-v1-diffusers/tree/016e2f61d12a98303f6bbdf122687694d7984268" + "Efficient-Large-Model/Sana_600M_1024px_diffusers@28f3af7689de15f3883d5863059a2fca0aa9b829 https://huggingface.co/Efficient-Large-Model/Sana_600M_1024px_diffusers/tree/28f3af7689de15f3883d5863059a2fca0aa9b829" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "60b01498a2df5f4e4622cdc2f9a43c83d187820780d2425a19718c13707db501", - "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", - "provenanceTemplateId": "omnigen_cobalt_against_soft_apricot" + "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", + "provenanceTemplateId": "persimmon_glaze" }, { - "path": "template-gallery/reviews/omnigen_cobalt_against_soft_apricot.retained-template-provenance.json", - "sha256": "sha256:bytes:1ac31719c0a2fcf0c59ebf8c1f6fbcff2be9847aa23b748c1bb43a706b8f14fd", + "path": "template-gallery/reviews/persimmon_glaze.retained-template-provenance.json", + "sha256": "sha256:bytes:4813f96f9332d04d4b8b0fc8d30d51e110ab8d157a1aef7c6172474f09bb490f", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/Shitao/OmniGen-v1-diffusers/tree/016e2f61d12a98303f6bbdf122687694d7984268", - "sourceRevision": "Shitao/OmniGen-v1-diffusers@016e2f61d12a98303f6bbdf122687694d7984268", + "sourceUrl": "https://huggingface.co/Efficient-Large-Model/Sana_600M_1024px_diffusers/tree/28f3af7689de15f3883d5863059a2fca0aa9b829", + "sourceRevision": "Efficient-Large-Model/Sana_600M_1024px_diffusers@28f3af7689de15f3883d5863059a2fca0aa9b829", "sourceLicense": "MoDiff-authored Gallery metadata", "modelTerms": [ - "Publisher model terms at https://huggingface.co/Shitao/OmniGen-v1-diffusers/tree/016e2f61d12a98303f6bbdf122687694d7984268" + "apache-2.0. https://huggingface.co/Efficient-Large-Model/Sana_600M_1024px_diffusers/tree/28f3af7689de15f3883d5863059a2fca0aa9b829" ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "Shitao/OmniGen-v1-diffusers@016e2f61d12a98303f6bbdf122687694d7984268 https://huggingface.co/Shitao/OmniGen-v1-diffusers/tree/016e2f61d12a98303f6bbdf122687694d7984268" + "Efficient-Large-Model/Sana_600M_1024px_diffusers@28f3af7689de15f3883d5863059a2fca0aa9b829 https://huggingface.co/Efficient-Large-Model/Sana_600M_1024px_diffusers/tree/28f3af7689de15f3883d5863059a2fca0aa9b829" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "60b01498a2df5f4e4622cdc2f9a43c83d187820780d2425a19718c13707db501", - "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", - "provenanceTemplateId": "omnigen_cobalt_against_soft_apricot" + "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", + "provenanceTemplateId": "persimmon_glaze" }, { - "path": "template-gallery/reviews/omnigen_red_enamel_folded_linen.original-provenance.json", - "sha256": "sha256:bytes:01821146c4f81aa3eef581cd4bfedfa892d75176804ecf4cc7b3ed859779e087", + "path": "template-gallery/reviews/pomegranate_on_blue_linen.original-provenance.json", + "sha256": "sha256:bytes:b9cecf2139bc5a0e5d6a3db462caf017c4d54482267592bf220f5015f7ae690b", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/Shitao/OmniGen-v1-diffusers/tree/016e2f61d12a98303f6bbdf122687694d7984268", - "sourceRevision": "Shitao/OmniGen-v1-diffusers@016e2f61d12a98303f6bbdf122687694d7984268", + "sourceUrl": "https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14", + "sourceRevision": "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14", "sourceLicense": "MoDiff-authored Gallery metadata", "modelTerms": [ - "Publisher model terms at https://huggingface.co/Shitao/OmniGen-v1-diffusers/tree/016e2f61d12a98303f6bbdf122687694d7984268" + "creativeml-openrail-m. https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14" ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "Shitao/OmniGen-v1-diffusers@016e2f61d12a98303f6bbdf122687694d7984268 https://huggingface.co/Shitao/OmniGen-v1-diffusers/tree/016e2f61d12a98303f6bbdf122687694d7984268" + "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14 https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "d7e2fd301d16eede3da44cec1811930560ba0d958dfd46d8d0962eb3a22eea63", - "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", - "provenanceTemplateId": "omnigen_red_enamel_folded_linen" + "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", + "provenanceTemplateId": "pomegranate_on_blue_linen" }, { - "path": "template-gallery/reviews/omnigen_red_enamel_folded_linen.original-review.json", - "sha256": "sha256:bytes:9e64209e76a4bbdcefe54ffae53c9d71d6e2166d84fb605a891c9600c0d85ec3", + "path": "template-gallery/reviews/pomegranate_on_blue_linen.original-review.json", + "sha256": "sha256:bytes:752b7cc115a3794d1066785e887b73e3eed5f3bb6735ef5ec89c45035b20d7e4", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/Shitao/OmniGen-v1-diffusers/tree/016e2f61d12a98303f6bbdf122687694d7984268", - "sourceRevision": "Shitao/OmniGen-v1-diffusers@016e2f61d12a98303f6bbdf122687694d7984268", + "sourceUrl": "https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14", + "sourceRevision": "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14", "sourceLicense": "MoDiff-authored Gallery metadata", "modelTerms": [ - "Publisher model terms at https://huggingface.co/Shitao/OmniGen-v1-diffusers/tree/016e2f61d12a98303f6bbdf122687694d7984268" + "creativeml-openrail-m. https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14" ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "Shitao/OmniGen-v1-diffusers@016e2f61d12a98303f6bbdf122687694d7984268 https://huggingface.co/Shitao/OmniGen-v1-diffusers/tree/016e2f61d12a98303f6bbdf122687694d7984268" + "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14 https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "d7e2fd301d16eede3da44cec1811930560ba0d958dfd46d8d0962eb3a22eea63", - "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", - "provenanceTemplateId": "omnigen_red_enamel_folded_linen" + "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", + "provenanceTemplateId": "pomegranate_on_blue_linen" }, { - "path": "template-gallery/reviews/omnigen_red_enamel_folded_linen.quality-review.json", - "sha256": "sha256:bytes:01c77e3b3474145e708ee18122f5c81ed3364019c260e9888624c7e9a6ab784a", + "path": "template-gallery/reviews/pomegranate_on_blue_linen.quality-review.json", + "sha256": "sha256:bytes:412a9940d2e86768a91a54c8d1282d46ff638f86d94d6582e81738f32c2749ab", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/Shitao/OmniGen-v1-diffusers/tree/016e2f61d12a98303f6bbdf122687694d7984268", - "sourceRevision": "Shitao/OmniGen-v1-diffusers@016e2f61d12a98303f6bbdf122687694d7984268", + "sourceUrl": "https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14", + "sourceRevision": "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14", "sourceLicense": "MoDiff-authored Gallery metadata", "modelTerms": [ - "Publisher model terms at https://huggingface.co/Shitao/OmniGen-v1-diffusers/tree/016e2f61d12a98303f6bbdf122687694d7984268" + "creativeml-openrail-m. https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14" ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "Shitao/OmniGen-v1-diffusers@016e2f61d12a98303f6bbdf122687694d7984268 https://huggingface.co/Shitao/OmniGen-v1-diffusers/tree/016e2f61d12a98303f6bbdf122687694d7984268" + "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14 https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "d7e2fd301d16eede3da44cec1811930560ba0d958dfd46d8d0962eb3a22eea63", - "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", - "provenanceTemplateId": "omnigen_red_enamel_folded_linen" + "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", + "provenanceTemplateId": "pomegranate_on_blue_linen" }, { - "path": "template-gallery/reviews/omnigen_red_enamel_folded_linen.retained-template-provenance.json", - "sha256": "sha256:bytes:b066ad2d0e03b2eb348d588e3177a782062d463d50caa7c38bf1801449517e6e", + "path": "template-gallery/reviews/pomegranate_on_blue_linen.retained-template-provenance.json", + "sha256": "sha256:bytes:15ad50f1686ae7dca486dba01974ad9155dbfc694b97b824314c257e316c185e", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/Shitao/OmniGen-v1-diffusers/tree/016e2f61d12a98303f6bbdf122687694d7984268", - "sourceRevision": "Shitao/OmniGen-v1-diffusers@016e2f61d12a98303f6bbdf122687694d7984268", + "sourceUrl": "https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14", + "sourceRevision": "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14", "sourceLicense": "MoDiff-authored Gallery metadata", "modelTerms": [ - "Publisher model terms at https://huggingface.co/Shitao/OmniGen-v1-diffusers/tree/016e2f61d12a98303f6bbdf122687694d7984268" + "creativeml-openrail-m. https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14" ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "Shitao/OmniGen-v1-diffusers@016e2f61d12a98303f6bbdf122687694d7984268 https://huggingface.co/Shitao/OmniGen-v1-diffusers/tree/016e2f61d12a98303f6bbdf122687694d7984268" + "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14 https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "d7e2fd301d16eede3da44cec1811930560ba0d958dfd46d8d0962eb3a22eea63", - "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", - "provenanceTemplateId": "omnigen_red_enamel_folded_linen" + "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", + "provenanceTemplateId": "pomegranate_on_blue_linen" }, { - "path": "template-gallery/reviews/omnigen_tulips_after_rain.original-provenance.json", - "sha256": "sha256:bytes:cd37ada4ad60fccb5fece5fe6ef03dd62ba7a8a66eb141579f8fa424b6265d71", + "path": "template-gallery/reviews/porcelain_on_slate_linen.original-provenance.json", + "sha256": "sha256:bytes:a20717be541cf1ac1dc84a8b7fdfd82f0dfedd5ec322ec1e257654a978ab1842", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/Shitao/OmniGen-v1-diffusers/tree/016e2f61d12a98303f6bbdf122687694d7984268", - "sourceRevision": "Shitao/OmniGen-v1-diffusers@016e2f61d12a98303f6bbdf122687694d7984268", + "sourceUrl": "https://huggingface.co/SimianLuo/LCM_Dreamshaper_v7/tree/a85df6a8bd976cdd08b4fd8f3b73f229c9e54df5", + "sourceRevision": "SimianLuo/LCM_Dreamshaper_v7@a85df6a8bd976cdd08b4fd8f3b73f229c9e54df5", "sourceLicense": "MoDiff-authored Gallery metadata", "modelTerms": [ - "Publisher model terms at https://huggingface.co/Shitao/OmniGen-v1-diffusers/tree/016e2f61d12a98303f6bbdf122687694d7984268" + "mit. https://huggingface.co/SimianLuo/LCM_Dreamshaper_v7/tree/a85df6a8bd976cdd08b4fd8f3b73f229c9e54df5" ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "Shitao/OmniGen-v1-diffusers@016e2f61d12a98303f6bbdf122687694d7984268 https://huggingface.co/Shitao/OmniGen-v1-diffusers/tree/016e2f61d12a98303f6bbdf122687694d7984268" + "SimianLuo/LCM_Dreamshaper_v7@a85df6a8bd976cdd08b4fd8f3b73f229c9e54df5 https://huggingface.co/SimianLuo/LCM_Dreamshaper_v7/tree/a85df6a8bd976cdd08b4fd8f3b73f229c9e54df5" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "c2df9edb92f8ff905b6c9a138a285e67c621f3d2dfa3232f859aaf963b725aca", - "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", - "provenanceTemplateId": "omnigen_tulips_after_rain" + "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", + "provenanceTemplateId": "porcelain_on_slate_linen" }, { - "path": "template-gallery/reviews/omnigen_tulips_after_rain.original-review.json", - "sha256": "sha256:bytes:3353e7fabebfddfc0b47f2ebdd668c0ae01f426d9280d1e4ac03d307582b8cc3", + "path": "template-gallery/reviews/porcelain_on_slate_linen.original-review.json", + "sha256": "sha256:bytes:8f6972bd24388616958f18d53ba39b7a9626fd23ef2470a96e888d01599ee303", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/Shitao/OmniGen-v1-diffusers/tree/016e2f61d12a98303f6bbdf122687694d7984268", - "sourceRevision": "Shitao/OmniGen-v1-diffusers@016e2f61d12a98303f6bbdf122687694d7984268", + "sourceUrl": "https://huggingface.co/SimianLuo/LCM_Dreamshaper_v7/tree/a85df6a8bd976cdd08b4fd8f3b73f229c9e54df5", + "sourceRevision": "SimianLuo/LCM_Dreamshaper_v7@a85df6a8bd976cdd08b4fd8f3b73f229c9e54df5", "sourceLicense": "MoDiff-authored Gallery metadata", "modelTerms": [ - "Publisher model terms at https://huggingface.co/Shitao/OmniGen-v1-diffusers/tree/016e2f61d12a98303f6bbdf122687694d7984268" + "mit. https://huggingface.co/SimianLuo/LCM_Dreamshaper_v7/tree/a85df6a8bd976cdd08b4fd8f3b73f229c9e54df5" ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "Shitao/OmniGen-v1-diffusers@016e2f61d12a98303f6bbdf122687694d7984268 https://huggingface.co/Shitao/OmniGen-v1-diffusers/tree/016e2f61d12a98303f6bbdf122687694d7984268" + "SimianLuo/LCM_Dreamshaper_v7@a85df6a8bd976cdd08b4fd8f3b73f229c9e54df5 https://huggingface.co/SimianLuo/LCM_Dreamshaper_v7/tree/a85df6a8bd976cdd08b4fd8f3b73f229c9e54df5" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "c2df9edb92f8ff905b6c9a138a285e67c621f3d2dfa3232f859aaf963b725aca", - "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", - "provenanceTemplateId": "omnigen_tulips_after_rain" + "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", + "provenanceTemplateId": "porcelain_on_slate_linen" }, { - "path": "template-gallery/reviews/omnigen_tulips_after_rain.quality-review.json", - "sha256": "sha256:bytes:333fbf9b662ef072cf2621b37b814052af11c4e219a6640376ba53a2ee4c154f", + "path": "template-gallery/reviews/porcelain_on_slate_linen.quality-review.json", + "sha256": "sha256:bytes:aa85f397af28e1ca7da538dae08a96d1ff3452c5542f72419447fa5635a2aab3", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/Shitao/OmniGen-v1-diffusers/tree/016e2f61d12a98303f6bbdf122687694d7984268", - "sourceRevision": "Shitao/OmniGen-v1-diffusers@016e2f61d12a98303f6bbdf122687694d7984268", + "sourceUrl": "https://huggingface.co/SimianLuo/LCM_Dreamshaper_v7/tree/a85df6a8bd976cdd08b4fd8f3b73f229c9e54df5", + "sourceRevision": "SimianLuo/LCM_Dreamshaper_v7@a85df6a8bd976cdd08b4fd8f3b73f229c9e54df5", "sourceLicense": "MoDiff-authored Gallery metadata", "modelTerms": [ - "Publisher model terms at https://huggingface.co/Shitao/OmniGen-v1-diffusers/tree/016e2f61d12a98303f6bbdf122687694d7984268" + "mit. https://huggingface.co/SimianLuo/LCM_Dreamshaper_v7/tree/a85df6a8bd976cdd08b4fd8f3b73f229c9e54df5" ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "Shitao/OmniGen-v1-diffusers@016e2f61d12a98303f6bbdf122687694d7984268 https://huggingface.co/Shitao/OmniGen-v1-diffusers/tree/016e2f61d12a98303f6bbdf122687694d7984268" + "SimianLuo/LCM_Dreamshaper_v7@a85df6a8bd976cdd08b4fd8f3b73f229c9e54df5 https://huggingface.co/SimianLuo/LCM_Dreamshaper_v7/tree/a85df6a8bd976cdd08b4fd8f3b73f229c9e54df5" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "c2df9edb92f8ff905b6c9a138a285e67c621f3d2dfa3232f859aaf963b725aca", - "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", - "provenanceTemplateId": "omnigen_tulips_after_rain" + "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", + "provenanceTemplateId": "porcelain_on_slate_linen" }, { - "path": "template-gallery/reviews/omnigen_tulips_after_rain.retained-template-provenance.json", - "sha256": "sha256:bytes:143b1e03664e187b0815b81948843d05bf9bf2bc664f9c92b7cd78c3b7755245", + "path": "template-gallery/reviews/porcelain_on_slate_linen.retained-template-provenance.json", + "sha256": "sha256:bytes:e1d8fb3b54f1fc0c1d4e3560d9a7d829aaf81d22f3cd543809051b38b598a396", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/Shitao/OmniGen-v1-diffusers/tree/016e2f61d12a98303f6bbdf122687694d7984268", - "sourceRevision": "Shitao/OmniGen-v1-diffusers@016e2f61d12a98303f6bbdf122687694d7984268", + "sourceUrl": "https://huggingface.co/SimianLuo/LCM_Dreamshaper_v7/tree/a85df6a8bd976cdd08b4fd8f3b73f229c9e54df5", + "sourceRevision": "SimianLuo/LCM_Dreamshaper_v7@a85df6a8bd976cdd08b4fd8f3b73f229c9e54df5", "sourceLicense": "MoDiff-authored Gallery metadata", "modelTerms": [ - "Publisher model terms at https://huggingface.co/Shitao/OmniGen-v1-diffusers/tree/016e2f61d12a98303f6bbdf122687694d7984268" + "mit. https://huggingface.co/SimianLuo/LCM_Dreamshaper_v7/tree/a85df6a8bd976cdd08b4fd8f3b73f229c9e54df5" ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "Shitao/OmniGen-v1-diffusers@016e2f61d12a98303f6bbdf122687694d7984268 https://huggingface.co/Shitao/OmniGen-v1-diffusers/tree/016e2f61d12a98303f6bbdf122687694d7984268" + "SimianLuo/LCM_Dreamshaper_v7@a85df6a8bd976cdd08b4fd8f3b73f229c9e54df5 https://huggingface.co/SimianLuo/LCM_Dreamshaper_v7/tree/a85df6a8bd976cdd08b4fd8f3b73f229c9e54df5" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "c2df9edb92f8ff905b6c9a138a285e67c621f3d2dfa3232f859aaf963b725aca", - "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", - "provenanceTemplateId": "omnigen_tulips_after_rain" + "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", + "provenanceTemplateId": "porcelain_on_slate_linen" }, { - "path": "template-gallery/reviews/persimmon_glaze.original-provenance.json", - "sha256": "sha256:bytes:dece98191d7fdcae395409a4ca8fb0f7eb215bc095660a8251d668f1dabd0054", + "path": "template-gallery/reviews/quiet_current.original-provenance.json", + "sha256": "sha256:bytes:6831c3577cf90fa0a6606497bd13844a9b25d4371f1b402efe9b099e8a58d42c", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/Efficient-Large-Model/Sana_600M_1024px_diffusers/tree/28f3af7689de15f3883d5863059a2fca0aa9b829", - "sourceRevision": "Efficient-Large-Model/Sana_600M_1024px_diffusers@28f3af7689de15f3883d5863059a2fca0aa9b829", + "sourceUrl": "https://huggingface.co/zai-org/CogView4-6B/tree/63a52b7f6dace7033380cd6da14d0915eab3e6b5", + "sourceRevision": "zai-org/CogView4-6B@63a52b7f6dace7033380cd6da14d0915eab3e6b5", "sourceLicense": "MoDiff-authored Gallery metadata", "modelTerms": [ - "apache-2.0. https://huggingface.co/Efficient-Large-Model/Sana_600M_1024px_diffusers/tree/28f3af7689de15f3883d5863059a2fca0aa9b829" + "apache-2.0. https://huggingface.co/zai-org/CogView4-6B/tree/63a52b7f6dace7033380cd6da14d0915eab3e6b5" ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "Efficient-Large-Model/Sana_600M_1024px_diffusers@28f3af7689de15f3883d5863059a2fca0aa9b829 https://huggingface.co/Efficient-Large-Model/Sana_600M_1024px_diffusers/tree/28f3af7689de15f3883d5863059a2fca0aa9b829" + "zai-org/CogView4-6B@63a52b7f6dace7033380cd6da14d0915eab3e6b5 https://huggingface.co/zai-org/CogView4-6B/tree/63a52b7f6dace7033380cd6da14d0915eab3e6b5" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", @@ -16694,26 +18071,26 @@ "reviewClass": "per-file-maintainer-accepted-retained-registration", "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", - "provenanceTemplateId": "persimmon_glaze" + "provenanceTemplateId": "quiet_current" }, { - "path": "template-gallery/reviews/persimmon_glaze.original-review.json", - "sha256": "sha256:bytes:3c97652cd91cc4af5660429652241efbe6675b20ec59c7abc73c3f1c185b491a", + "path": "template-gallery/reviews/quiet_current.original-review.json", + "sha256": "sha256:bytes:c1596743b2612f0bfcda8cf8d21b3e6bec1c570710c73e19e82d7d6aaea9b61c", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/Efficient-Large-Model/Sana_600M_1024px_diffusers/tree/28f3af7689de15f3883d5863059a2fca0aa9b829", - "sourceRevision": "Efficient-Large-Model/Sana_600M_1024px_diffusers@28f3af7689de15f3883d5863059a2fca0aa9b829", + "sourceUrl": "https://huggingface.co/zai-org/CogView4-6B/tree/63a52b7f6dace7033380cd6da14d0915eab3e6b5", + "sourceRevision": "zai-org/CogView4-6B@63a52b7f6dace7033380cd6da14d0915eab3e6b5", "sourceLicense": "MoDiff-authored Gallery metadata", "modelTerms": [ - "apache-2.0. https://huggingface.co/Efficient-Large-Model/Sana_600M_1024px_diffusers/tree/28f3af7689de15f3883d5863059a2fca0aa9b829" + "apache-2.0. https://huggingface.co/zai-org/CogView4-6B/tree/63a52b7f6dace7033380cd6da14d0915eab3e6b5" ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "Efficient-Large-Model/Sana_600M_1024px_diffusers@28f3af7689de15f3883d5863059a2fca0aa9b829 https://huggingface.co/Efficient-Large-Model/Sana_600M_1024px_diffusers/tree/28f3af7689de15f3883d5863059a2fca0aa9b829" + "zai-org/CogView4-6B@63a52b7f6dace7033380cd6da14d0915eab3e6b5 https://huggingface.co/zai-org/CogView4-6B/tree/63a52b7f6dace7033380cd6da14d0915eab3e6b5" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", @@ -16721,26 +18098,26 @@ "reviewClass": "per-file-maintainer-accepted-retained-registration", "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", - "provenanceTemplateId": "persimmon_glaze" + "provenanceTemplateId": "quiet_current" }, { - "path": "template-gallery/reviews/persimmon_glaze.quality-review.json", - "sha256": "sha256:bytes:9c9afc7223597ea8ee65889581c40f1e9f6a63a2bab6d7827b6af207353909ad", + "path": "template-gallery/reviews/quiet_current.quality-review.json", + "sha256": "sha256:bytes:2387a8febca71a20ea416bb6db610de9c442c584f64bd913eb66cf3688d84773", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/Efficient-Large-Model/Sana_600M_1024px_diffusers/tree/28f3af7689de15f3883d5863059a2fca0aa9b829", - "sourceRevision": "Efficient-Large-Model/Sana_600M_1024px_diffusers@28f3af7689de15f3883d5863059a2fca0aa9b829", + "sourceUrl": "https://huggingface.co/zai-org/CogView4-6B/tree/63a52b7f6dace7033380cd6da14d0915eab3e6b5", + "sourceRevision": "zai-org/CogView4-6B@63a52b7f6dace7033380cd6da14d0915eab3e6b5", "sourceLicense": "MoDiff-authored Gallery metadata", "modelTerms": [ - "apache-2.0. https://huggingface.co/Efficient-Large-Model/Sana_600M_1024px_diffusers/tree/28f3af7689de15f3883d5863059a2fca0aa9b829" + "apache-2.0. https://huggingface.co/zai-org/CogView4-6B/tree/63a52b7f6dace7033380cd6da14d0915eab3e6b5" ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "Efficient-Large-Model/Sana_600M_1024px_diffusers@28f3af7689de15f3883d5863059a2fca0aa9b829 https://huggingface.co/Efficient-Large-Model/Sana_600M_1024px_diffusers/tree/28f3af7689de15f3883d5863059a2fca0aa9b829" + "zai-org/CogView4-6B@63a52b7f6dace7033380cd6da14d0915eab3e6b5 https://huggingface.co/zai-org/CogView4-6B/tree/63a52b7f6dace7033380cd6da14d0915eab3e6b5" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", @@ -16748,26 +18125,26 @@ "reviewClass": "per-file-maintainer-accepted-retained-registration", "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", - "provenanceTemplateId": "persimmon_glaze" + "provenanceTemplateId": "quiet_current" }, { - "path": "template-gallery/reviews/persimmon_glaze.retained-template-provenance.json", - "sha256": "sha256:bytes:4813f96f9332d04d4b8b0fc8d30d51e110ab8d157a1aef7c6172474f09bb490f", + "path": "template-gallery/reviews/quiet_current.retained-template-provenance.json", + "sha256": "sha256:bytes:888aecdcb91637d93c268a9ad7b615ca545e7b73e2f1caf064c12bf4a0681655", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/Efficient-Large-Model/Sana_600M_1024px_diffusers/tree/28f3af7689de15f3883d5863059a2fca0aa9b829", - "sourceRevision": "Efficient-Large-Model/Sana_600M_1024px_diffusers@28f3af7689de15f3883d5863059a2fca0aa9b829", + "sourceUrl": "https://huggingface.co/zai-org/CogView4-6B/tree/63a52b7f6dace7033380cd6da14d0915eab3e6b5", + "sourceRevision": "zai-org/CogView4-6B@63a52b7f6dace7033380cd6da14d0915eab3e6b5", "sourceLicense": "MoDiff-authored Gallery metadata", "modelTerms": [ - "apache-2.0. https://huggingface.co/Efficient-Large-Model/Sana_600M_1024px_diffusers/tree/28f3af7689de15f3883d5863059a2fca0aa9b829" + "apache-2.0. https://huggingface.co/zai-org/CogView4-6B/tree/63a52b7f6dace7033380cd6da14d0915eab3e6b5" ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "Efficient-Large-Model/Sana_600M_1024px_diffusers@28f3af7689de15f3883d5863059a2fca0aa9b829 https://huggingface.co/Efficient-Large-Model/Sana_600M_1024px_diffusers/tree/28f3af7689de15f3883d5863059a2fca0aa9b829" + "zai-org/CogView4-6B@63a52b7f6dace7033380cd6da14d0915eab3e6b5 https://huggingface.co/zai-org/CogView4-6B/tree/63a52b7f6dace7033380cd6da14d0915eab3e6b5" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", @@ -16775,26 +18152,26 @@ "reviewClass": "per-file-maintainer-accepted-retained-registration", "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", - "provenanceTemplateId": "persimmon_glaze" + "provenanceTemplateId": "quiet_current" }, { - "path": "template-gallery/reviews/pomegranate_on_blue_linen.original-provenance.json", - "sha256": "sha256:bytes:b9cecf2139bc5a0e5d6a3db462caf017c4d54482267592bf220f5015f7ae690b", + "path": "template-gallery/reviews/quiet_kiln_at_daybreak.original-provenance.json", + "sha256": "sha256:bytes:a4b6c9950b2f2f6d185eb574ad4acddec21e2015fcf8d50bd14195ed24dcee97", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14", - "sourceRevision": "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14", + "sourceUrl": "https://huggingface.co/NucleusAI/Nucleus-Image/tree/5e963db4fd0a65c7e4faf53ca2d4eca567c4dcfa", + "sourceRevision": "NucleusAI/Nucleus-Image@5e963db4fd0a65c7e4faf53ca2d4eca567c4dcfa", "sourceLicense": "MoDiff-authored Gallery metadata", "modelTerms": [ - "creativeml-openrail-m. https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14" + "Apache-2.0 per the publisher at this revision. https://huggingface.co/NucleusAI/Nucleus-Image/tree/5e963db4fd0a65c7e4faf53ca2d4eca567c4dcfa" ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14 https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14" + "NucleusAI/Nucleus-Image@5e963db4fd0a65c7e4faf53ca2d4eca567c4dcfa https://huggingface.co/NucleusAI/Nucleus-Image/tree/5e963db4fd0a65c7e4faf53ca2d4eca567c4dcfa" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", @@ -16802,26 +18179,26 @@ "reviewClass": "per-file-maintainer-accepted-retained-registration", "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", - "provenanceTemplateId": "pomegranate_on_blue_linen" + "provenanceTemplateId": "quiet_kiln_at_daybreak" }, { - "path": "template-gallery/reviews/pomegranate_on_blue_linen.original-review.json", - "sha256": "sha256:bytes:752b7cc115a3794d1066785e887b73e3eed5f3bb6735ef5ec89c45035b20d7e4", + "path": "template-gallery/reviews/quiet_kiln_at_daybreak.original-review.json", + "sha256": "sha256:bytes:b76ab6d15da10b9d6fb9ddfd83af0abf2f56ca962aac6ab65c78ae231a74d2bd", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14", - "sourceRevision": "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14", + "sourceUrl": "https://huggingface.co/NucleusAI/Nucleus-Image/tree/5e963db4fd0a65c7e4faf53ca2d4eca567c4dcfa", + "sourceRevision": "NucleusAI/Nucleus-Image@5e963db4fd0a65c7e4faf53ca2d4eca567c4dcfa", "sourceLicense": "MoDiff-authored Gallery metadata", "modelTerms": [ - "creativeml-openrail-m. https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14" + "Apache-2.0 per the publisher at this revision. https://huggingface.co/NucleusAI/Nucleus-Image/tree/5e963db4fd0a65c7e4faf53ca2d4eca567c4dcfa" ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14 https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14" + "NucleusAI/Nucleus-Image@5e963db4fd0a65c7e4faf53ca2d4eca567c4dcfa https://huggingface.co/NucleusAI/Nucleus-Image/tree/5e963db4fd0a65c7e4faf53ca2d4eca567c4dcfa" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", @@ -16829,26 +18206,26 @@ "reviewClass": "per-file-maintainer-accepted-retained-registration", "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", - "provenanceTemplateId": "pomegranate_on_blue_linen" + "provenanceTemplateId": "quiet_kiln_at_daybreak" }, { - "path": "template-gallery/reviews/pomegranate_on_blue_linen.quality-review.json", - "sha256": "sha256:bytes:412a9940d2e86768a91a54c8d1282d46ff638f86d94d6582e81738f32c2749ab", + "path": "template-gallery/reviews/quiet_kiln_at_daybreak.quality-review.json", + "sha256": "sha256:bytes:b0118affa79b69e333c6a7977aa8c47328d570dd374aa212f0a371ec5a4a353b", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14", - "sourceRevision": "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14", + "sourceUrl": "https://huggingface.co/NucleusAI/Nucleus-Image/tree/5e963db4fd0a65c7e4faf53ca2d4eca567c4dcfa", + "sourceRevision": "NucleusAI/Nucleus-Image@5e963db4fd0a65c7e4faf53ca2d4eca567c4dcfa", "sourceLicense": "MoDiff-authored Gallery metadata", "modelTerms": [ - "creativeml-openrail-m. https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14" + "Apache-2.0 per the publisher at this revision. https://huggingface.co/NucleusAI/Nucleus-Image/tree/5e963db4fd0a65c7e4faf53ca2d4eca567c4dcfa" ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14 https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14" + "NucleusAI/Nucleus-Image@5e963db4fd0a65c7e4faf53ca2d4eca567c4dcfa https://huggingface.co/NucleusAI/Nucleus-Image/tree/5e963db4fd0a65c7e4faf53ca2d4eca567c4dcfa" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", @@ -16856,26 +18233,26 @@ "reviewClass": "per-file-maintainer-accepted-retained-registration", "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", - "provenanceTemplateId": "pomegranate_on_blue_linen" + "provenanceTemplateId": "quiet_kiln_at_daybreak" }, { - "path": "template-gallery/reviews/pomegranate_on_blue_linen.retained-template-provenance.json", - "sha256": "sha256:bytes:15ad50f1686ae7dca486dba01974ad9155dbfc694b97b824314c257e316c185e", + "path": "template-gallery/reviews/quiet_kiln_at_daybreak.retained-template-provenance.json", + "sha256": "sha256:bytes:ae5db3f69f0a3ae1ad178ca986819e1b8cb1ccdf50c9b3850d5ec2e7d745ba8d", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14", - "sourceRevision": "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14", + "sourceUrl": "https://huggingface.co/NucleusAI/Nucleus-Image/tree/5e963db4fd0a65c7e4faf53ca2d4eca567c4dcfa", + "sourceRevision": "NucleusAI/Nucleus-Image@5e963db4fd0a65c7e4faf53ca2d4eca567c4dcfa", "sourceLicense": "MoDiff-authored Gallery metadata", "modelTerms": [ - "creativeml-openrail-m. https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14" + "Apache-2.0 per the publisher at this revision. https://huggingface.co/NucleusAI/Nucleus-Image/tree/5e963db4fd0a65c7e4faf53ca2d4eca567c4dcfa" ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14 https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14" + "NucleusAI/Nucleus-Image@5e963db4fd0a65c7e4faf53ca2d4eca567c4dcfa https://huggingface.co/NucleusAI/Nucleus-Image/tree/5e963db4fd0a65c7e4faf53ca2d4eca567c4dcfa" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", @@ -16883,350 +18260,350 @@ "reviewClass": "per-file-maintainer-accepted-retained-registration", "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", - "provenanceTemplateId": "pomegranate_on_blue_linen" + "provenanceTemplateId": "quiet_kiln_at_daybreak" }, { - "path": "template-gallery/reviews/porcelain_on_slate_linen.original-provenance.json", - "sha256": "sha256:bytes:a20717be541cf1ac1dc84a8b7fdfd82f0dfedd5ec322ec1e257654a978ab1842", + "path": "template-gallery/reviews/qwen_2511_pale_amber_on_limestone.original-provenance.json", + "sha256": "sha256:bytes:92184da315494eafd5ffb5f97e0b6b16b9adc7e2900cfe2159a74eb95f2c664d", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/SimianLuo/LCM_Dreamshaper_v7/tree/a85df6a8bd976cdd08b4fd8f3b73f229c9e54df5", - "sourceRevision": "SimianLuo/LCM_Dreamshaper_v7@a85df6a8bd976cdd08b4fd8f3b73f229c9e54df5", + "sourceUrl": "https://huggingface.co/Qwen/Qwen-Image-Edit-2511/tree/6f3ccc0b56e431dc6a0c2b2039706d7d26f22cb9", + "sourceRevision": "Qwen/Qwen-Image-Edit-2511@6f3ccc0b56e431dc6a0c2b2039706d7d26f22cb9", "sourceLicense": "MoDiff-authored Gallery metadata", "modelTerms": [ - "mit. https://huggingface.co/SimianLuo/LCM_Dreamshaper_v7/tree/a85df6a8bd976cdd08b4fd8f3b73f229c9e54df5" + "Publisher model terms at https://huggingface.co/Qwen/Qwen-Image-Edit-2511/tree/6f3ccc0b56e431dc6a0c2b2039706d7d26f22cb9" ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "SimianLuo/LCM_Dreamshaper_v7@a85df6a8bd976cdd08b4fd8f3b73f229c9e54df5 https://huggingface.co/SimianLuo/LCM_Dreamshaper_v7/tree/a85df6a8bd976cdd08b4fd8f3b73f229c9e54df5" + "Qwen/Qwen-Image-Edit-2511@6f3ccc0b56e431dc6a0c2b2039706d7d26f22cb9 https://huggingface.co/Qwen/Qwen-Image-Edit-2511/tree/6f3ccc0b56e431dc6a0c2b2039706d7d26f22cb9" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", - "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", - "provenanceTemplateId": "porcelain_on_slate_linen" + "humanApprovalPacketSHA256": "60b01498a2df5f4e4622cdc2f9a43c83d187820780d2425a19718c13707db501", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "qwen_2511_pale_amber_on_limestone" }, { - "path": "template-gallery/reviews/porcelain_on_slate_linen.original-review.json", - "sha256": "sha256:bytes:8f6972bd24388616958f18d53ba39b7a9626fd23ef2470a96e888d01599ee303", + "path": "template-gallery/reviews/qwen_2511_pale_amber_on_limestone.original-review.json", + "sha256": "sha256:bytes:c927ac13e8f20facd97ba72db03ae4fc658d5b2b5120a9473d2bcd280e01356c", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/SimianLuo/LCM_Dreamshaper_v7/tree/a85df6a8bd976cdd08b4fd8f3b73f229c9e54df5", - "sourceRevision": "SimianLuo/LCM_Dreamshaper_v7@a85df6a8bd976cdd08b4fd8f3b73f229c9e54df5", + "sourceUrl": "https://huggingface.co/Qwen/Qwen-Image-Edit-2511/tree/6f3ccc0b56e431dc6a0c2b2039706d7d26f22cb9", + "sourceRevision": "Qwen/Qwen-Image-Edit-2511@6f3ccc0b56e431dc6a0c2b2039706d7d26f22cb9", "sourceLicense": "MoDiff-authored Gallery metadata", "modelTerms": [ - "mit. https://huggingface.co/SimianLuo/LCM_Dreamshaper_v7/tree/a85df6a8bd976cdd08b4fd8f3b73f229c9e54df5" + "Publisher model terms at https://huggingface.co/Qwen/Qwen-Image-Edit-2511/tree/6f3ccc0b56e431dc6a0c2b2039706d7d26f22cb9" ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "SimianLuo/LCM_Dreamshaper_v7@a85df6a8bd976cdd08b4fd8f3b73f229c9e54df5 https://huggingface.co/SimianLuo/LCM_Dreamshaper_v7/tree/a85df6a8bd976cdd08b4fd8f3b73f229c9e54df5" + "Qwen/Qwen-Image-Edit-2511@6f3ccc0b56e431dc6a0c2b2039706d7d26f22cb9 https://huggingface.co/Qwen/Qwen-Image-Edit-2511/tree/6f3ccc0b56e431dc6a0c2b2039706d7d26f22cb9" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", - "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", - "provenanceTemplateId": "porcelain_on_slate_linen" + "humanApprovalPacketSHA256": "60b01498a2df5f4e4622cdc2f9a43c83d187820780d2425a19718c13707db501", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "qwen_2511_pale_amber_on_limestone" }, { - "path": "template-gallery/reviews/porcelain_on_slate_linen.quality-review.json", - "sha256": "sha256:bytes:aa85f397af28e1ca7da538dae08a96d1ff3452c5542f72419447fa5635a2aab3", + "path": "template-gallery/reviews/qwen_2511_pale_amber_on_limestone.quality-review.json", + "sha256": "sha256:bytes:1448c1f4aeddd0ca2238d62a91db71644d723172bad44eee0f62618f89580160", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/SimianLuo/LCM_Dreamshaper_v7/tree/a85df6a8bd976cdd08b4fd8f3b73f229c9e54df5", - "sourceRevision": "SimianLuo/LCM_Dreamshaper_v7@a85df6a8bd976cdd08b4fd8f3b73f229c9e54df5", + "sourceUrl": "https://huggingface.co/Qwen/Qwen-Image-Edit-2511/tree/6f3ccc0b56e431dc6a0c2b2039706d7d26f22cb9", + "sourceRevision": "Qwen/Qwen-Image-Edit-2511@6f3ccc0b56e431dc6a0c2b2039706d7d26f22cb9", "sourceLicense": "MoDiff-authored Gallery metadata", "modelTerms": [ - "mit. https://huggingface.co/SimianLuo/LCM_Dreamshaper_v7/tree/a85df6a8bd976cdd08b4fd8f3b73f229c9e54df5" + "Publisher model terms at https://huggingface.co/Qwen/Qwen-Image-Edit-2511/tree/6f3ccc0b56e431dc6a0c2b2039706d7d26f22cb9" ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "SimianLuo/LCM_Dreamshaper_v7@a85df6a8bd976cdd08b4fd8f3b73f229c9e54df5 https://huggingface.co/SimianLuo/LCM_Dreamshaper_v7/tree/a85df6a8bd976cdd08b4fd8f3b73f229c9e54df5" + "Qwen/Qwen-Image-Edit-2511@6f3ccc0b56e431dc6a0c2b2039706d7d26f22cb9 https://huggingface.co/Qwen/Qwen-Image-Edit-2511/tree/6f3ccc0b56e431dc6a0c2b2039706d7d26f22cb9" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", - "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", - "provenanceTemplateId": "porcelain_on_slate_linen" + "humanApprovalPacketSHA256": "60b01498a2df5f4e4622cdc2f9a43c83d187820780d2425a19718c13707db501", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "qwen_2511_pale_amber_on_limestone" }, { - "path": "template-gallery/reviews/porcelain_on_slate_linen.retained-template-provenance.json", - "sha256": "sha256:bytes:e1d8fb3b54f1fc0c1d4e3560d9a7d829aaf81d22f3cd543809051b38b598a396", + "path": "template-gallery/reviews/qwen_2511_pale_amber_on_limestone.retained-template-provenance.json", + "sha256": "sha256:bytes:0d91cc6e5417f0defc5ef7615cc85f19de32bf6732e01e75d6051b94be8df0d8", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/SimianLuo/LCM_Dreamshaper_v7/tree/a85df6a8bd976cdd08b4fd8f3b73f229c9e54df5", - "sourceRevision": "SimianLuo/LCM_Dreamshaper_v7@a85df6a8bd976cdd08b4fd8f3b73f229c9e54df5", + "sourceUrl": "https://huggingface.co/Qwen/Qwen-Image-Edit-2511/tree/6f3ccc0b56e431dc6a0c2b2039706d7d26f22cb9", + "sourceRevision": "Qwen/Qwen-Image-Edit-2511@6f3ccc0b56e431dc6a0c2b2039706d7d26f22cb9", "sourceLicense": "MoDiff-authored Gallery metadata", "modelTerms": [ - "mit. https://huggingface.co/SimianLuo/LCM_Dreamshaper_v7/tree/a85df6a8bd976cdd08b4fd8f3b73f229c9e54df5" + "Publisher model terms at https://huggingface.co/Qwen/Qwen-Image-Edit-2511/tree/6f3ccc0b56e431dc6a0c2b2039706d7d26f22cb9" ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "SimianLuo/LCM_Dreamshaper_v7@a85df6a8bd976cdd08b4fd8f3b73f229c9e54df5 https://huggingface.co/SimianLuo/LCM_Dreamshaper_v7/tree/a85df6a8bd976cdd08b4fd8f3b73f229c9e54df5" + "Qwen/Qwen-Image-Edit-2511@6f3ccc0b56e431dc6a0c2b2039706d7d26f22cb9 https://huggingface.co/Qwen/Qwen-Image-Edit-2511/tree/6f3ccc0b56e431dc6a0c2b2039706d7d26f22cb9" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", - "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", - "provenanceTemplateId": "porcelain_on_slate_linen" + "humanApprovalPacketSHA256": "60b01498a2df5f4e4622cdc2f9a43c83d187820780d2425a19718c13707db501", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "qwen_2511_pale_amber_on_limestone" }, { - "path": "template-gallery/reviews/quiet_current.original-provenance.json", - "sha256": "sha256:bytes:6831c3577cf90fa0a6606497bd13844a9b25d4371f1b402efe9b099e8a58d42c", + "path": "template-gallery/reviews/qwen_2511_terracotta_material_transfer.original-provenance.json", + "sha256": "sha256:bytes:accd52fe0dc925cda9f3ad31546498422faf762eaae9d5efc1d1c7ab8b2bceb1", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/zai-org/CogView4-6B/tree/63a52b7f6dace7033380cd6da14d0915eab3e6b5", - "sourceRevision": "zai-org/CogView4-6B@63a52b7f6dace7033380cd6da14d0915eab3e6b5", + "sourceUrl": "https://huggingface.co/Qwen/Qwen-Image-Edit-2511/tree/6f3ccc0b56e431dc6a0c2b2039706d7d26f22cb9", + "sourceRevision": "Qwen/Qwen-Image-Edit-2511@6f3ccc0b56e431dc6a0c2b2039706d7d26f22cb9", "sourceLicense": "MoDiff-authored Gallery metadata", "modelTerms": [ - "apache-2.0. https://huggingface.co/zai-org/CogView4-6B/tree/63a52b7f6dace7033380cd6da14d0915eab3e6b5" + "Publisher model terms at https://huggingface.co/Qwen/Qwen-Image-Edit-2511/tree/6f3ccc0b56e431dc6a0c2b2039706d7d26f22cb9" ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "zai-org/CogView4-6B@63a52b7f6dace7033380cd6da14d0915eab3e6b5 https://huggingface.co/zai-org/CogView4-6B/tree/63a52b7f6dace7033380cd6da14d0915eab3e6b5" + "Qwen/Qwen-Image-Edit-2511@6f3ccc0b56e431dc6a0c2b2039706d7d26f22cb9 https://huggingface.co/Qwen/Qwen-Image-Edit-2511/tree/6f3ccc0b56e431dc6a0c2b2039706d7d26f22cb9" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", - "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", - "provenanceTemplateId": "quiet_current" + "humanApprovalPacketSHA256": "d7e2fd301d16eede3da44cec1811930560ba0d958dfd46d8d0962eb3a22eea63", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "qwen_2511_terracotta_material_transfer" }, { - "path": "template-gallery/reviews/quiet_current.original-review.json", - "sha256": "sha256:bytes:c1596743b2612f0bfcda8cf8d21b3e6bec1c570710c73e19e82d7d6aaea9b61c", + "path": "template-gallery/reviews/qwen_2511_terracotta_material_transfer.original-review.json", + "sha256": "sha256:bytes:6fa09481a5e8937cf2afa452c0f6b0da53124a5ff556756d3c970235d22eeb8f", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/zai-org/CogView4-6B/tree/63a52b7f6dace7033380cd6da14d0915eab3e6b5", - "sourceRevision": "zai-org/CogView4-6B@63a52b7f6dace7033380cd6da14d0915eab3e6b5", + "sourceUrl": "https://huggingface.co/Qwen/Qwen-Image-Edit-2511/tree/6f3ccc0b56e431dc6a0c2b2039706d7d26f22cb9", + "sourceRevision": "Qwen/Qwen-Image-Edit-2511@6f3ccc0b56e431dc6a0c2b2039706d7d26f22cb9", "sourceLicense": "MoDiff-authored Gallery metadata", "modelTerms": [ - "apache-2.0. https://huggingface.co/zai-org/CogView4-6B/tree/63a52b7f6dace7033380cd6da14d0915eab3e6b5" + "Publisher model terms at https://huggingface.co/Qwen/Qwen-Image-Edit-2511/tree/6f3ccc0b56e431dc6a0c2b2039706d7d26f22cb9" ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "zai-org/CogView4-6B@63a52b7f6dace7033380cd6da14d0915eab3e6b5 https://huggingface.co/zai-org/CogView4-6B/tree/63a52b7f6dace7033380cd6da14d0915eab3e6b5" + "Qwen/Qwen-Image-Edit-2511@6f3ccc0b56e431dc6a0c2b2039706d7d26f22cb9 https://huggingface.co/Qwen/Qwen-Image-Edit-2511/tree/6f3ccc0b56e431dc6a0c2b2039706d7d26f22cb9" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", - "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", - "provenanceTemplateId": "quiet_current" + "humanApprovalPacketSHA256": "d7e2fd301d16eede3da44cec1811930560ba0d958dfd46d8d0962eb3a22eea63", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "qwen_2511_terracotta_material_transfer" }, { - "path": "template-gallery/reviews/quiet_current.quality-review.json", - "sha256": "sha256:bytes:2387a8febca71a20ea416bb6db610de9c442c584f64bd913eb66cf3688d84773", + "path": "template-gallery/reviews/qwen_2511_terracotta_material_transfer.quality-review.json", + "sha256": "sha256:bytes:c069a461b67cb90ade5f906200db6359e17ecda252d305bc8e6bc7fe9df15786", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/zai-org/CogView4-6B/tree/63a52b7f6dace7033380cd6da14d0915eab3e6b5", - "sourceRevision": "zai-org/CogView4-6B@63a52b7f6dace7033380cd6da14d0915eab3e6b5", + "sourceUrl": "https://huggingface.co/Qwen/Qwen-Image-Edit-2511/tree/6f3ccc0b56e431dc6a0c2b2039706d7d26f22cb9", + "sourceRevision": "Qwen/Qwen-Image-Edit-2511@6f3ccc0b56e431dc6a0c2b2039706d7d26f22cb9", "sourceLicense": "MoDiff-authored Gallery metadata", "modelTerms": [ - "apache-2.0. https://huggingface.co/zai-org/CogView4-6B/tree/63a52b7f6dace7033380cd6da14d0915eab3e6b5" + "Publisher model terms at https://huggingface.co/Qwen/Qwen-Image-Edit-2511/tree/6f3ccc0b56e431dc6a0c2b2039706d7d26f22cb9" ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "zai-org/CogView4-6B@63a52b7f6dace7033380cd6da14d0915eab3e6b5 https://huggingface.co/zai-org/CogView4-6B/tree/63a52b7f6dace7033380cd6da14d0915eab3e6b5" + "Qwen/Qwen-Image-Edit-2511@6f3ccc0b56e431dc6a0c2b2039706d7d26f22cb9 https://huggingface.co/Qwen/Qwen-Image-Edit-2511/tree/6f3ccc0b56e431dc6a0c2b2039706d7d26f22cb9" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", - "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", - "provenanceTemplateId": "quiet_current" + "humanApprovalPacketSHA256": "d7e2fd301d16eede3da44cec1811930560ba0d958dfd46d8d0962eb3a22eea63", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "qwen_2511_terracotta_material_transfer" }, { - "path": "template-gallery/reviews/quiet_current.retained-template-provenance.json", - "sha256": "sha256:bytes:888aecdcb91637d93c268a9ad7b615ca545e7b73e2f1caf064c12bf4a0681655", + "path": "template-gallery/reviews/qwen_2511_terracotta_material_transfer.retained-template-provenance.json", + "sha256": "sha256:bytes:d4b364f299fcce02bee7cdacad3d915d2c8a916b1b97fb9d77f8fa88146c899f", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/zai-org/CogView4-6B/tree/63a52b7f6dace7033380cd6da14d0915eab3e6b5", - "sourceRevision": "zai-org/CogView4-6B@63a52b7f6dace7033380cd6da14d0915eab3e6b5", + "sourceUrl": "https://huggingface.co/Qwen/Qwen-Image-Edit-2511/tree/6f3ccc0b56e431dc6a0c2b2039706d7d26f22cb9", + "sourceRevision": "Qwen/Qwen-Image-Edit-2511@6f3ccc0b56e431dc6a0c2b2039706d7d26f22cb9", "sourceLicense": "MoDiff-authored Gallery metadata", "modelTerms": [ - "apache-2.0. https://huggingface.co/zai-org/CogView4-6B/tree/63a52b7f6dace7033380cd6da14d0915eab3e6b5" + "Publisher model terms at https://huggingface.co/Qwen/Qwen-Image-Edit-2511/tree/6f3ccc0b56e431dc6a0c2b2039706d7d26f22cb9" ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "zai-org/CogView4-6B@63a52b7f6dace7033380cd6da14d0915eab3e6b5 https://huggingface.co/zai-org/CogView4-6B/tree/63a52b7f6dace7033380cd6da14d0915eab3e6b5" + "Qwen/Qwen-Image-Edit-2511@6f3ccc0b56e431dc6a0c2b2039706d7d26f22cb9 https://huggingface.co/Qwen/Qwen-Image-Edit-2511/tree/6f3ccc0b56e431dc6a0c2b2039706d7d26f22cb9" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", - "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", - "provenanceTemplateId": "quiet_current" + "humanApprovalPacketSHA256": "d7e2fd301d16eede3da44cec1811930560ba0d958dfd46d8d0962eb3a22eea63", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "qwen_2511_terracotta_material_transfer" }, { - "path": "template-gallery/reviews/quiet_kiln_at_daybreak.original-provenance.json", - "sha256": "sha256:bytes:a4b6c9950b2f2f6d185eb574ad4acddec21e2015fcf8d50bd14195ed24dcee97", + "path": "template-gallery/reviews/qwen_2512_cobalt_backdrop_repair.original-provenance.json", + "sha256": "sha256:bytes:aff76ebb3392dc74718791d4d3e964e12ed333818e3e3004c2b00efdb1065cda", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/NucleusAI/Nucleus-Image/tree/5e963db4fd0a65c7e4faf53ca2d4eca567c4dcfa", - "sourceRevision": "NucleusAI/Nucleus-Image@5e963db4fd0a65c7e4faf53ca2d4eca567c4dcfa", + "sourceUrl": "https://huggingface.co/Qwen/Qwen-Image-2512/tree/25468b98e3276ca6700de15c6628e51b7de54a26", + "sourceRevision": "Qwen/Qwen-Image-2512@25468b98e3276ca6700de15c6628e51b7de54a26", "sourceLicense": "MoDiff-authored Gallery metadata", "modelTerms": [ - "Apache-2.0 per the publisher at this revision. https://huggingface.co/NucleusAI/Nucleus-Image/tree/5e963db4fd0a65c7e4faf53ca2d4eca567c4dcfa" + "Publisher model terms at https://huggingface.co/Qwen/Qwen-Image-2512/tree/25468b98e3276ca6700de15c6628e51b7de54a26" ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "NucleusAI/Nucleus-Image@5e963db4fd0a65c7e4faf53ca2d4eca567c4dcfa https://huggingface.co/NucleusAI/Nucleus-Image/tree/5e963db4fd0a65c7e4faf53ca2d4eca567c4dcfa" + "Qwen/Qwen-Image-2512@25468b98e3276ca6700de15c6628e51b7de54a26 https://huggingface.co/Qwen/Qwen-Image-2512/tree/25468b98e3276ca6700de15c6628e51b7de54a26" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", - "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", - "provenanceTemplateId": "quiet_kiln_at_daybreak" + "humanApprovalPacketSHA256": "60b01498a2df5f4e4622cdc2f9a43c83d187820780d2425a19718c13707db501", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "qwen_2512_cobalt_backdrop_repair" }, { - "path": "template-gallery/reviews/quiet_kiln_at_daybreak.original-review.json", - "sha256": "sha256:bytes:b76ab6d15da10b9d6fb9ddfd83af0abf2f56ca962aac6ab65c78ae231a74d2bd", + "path": "template-gallery/reviews/qwen_2512_cobalt_backdrop_repair.original-review.json", + "sha256": "sha256:bytes:87b770beaa2fa2fbbc469450467e7ba7fd0c1f79e227cc24ba1e226e8b4af900", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/NucleusAI/Nucleus-Image/tree/5e963db4fd0a65c7e4faf53ca2d4eca567c4dcfa", - "sourceRevision": "NucleusAI/Nucleus-Image@5e963db4fd0a65c7e4faf53ca2d4eca567c4dcfa", + "sourceUrl": "https://huggingface.co/Qwen/Qwen-Image-2512/tree/25468b98e3276ca6700de15c6628e51b7de54a26", + "sourceRevision": "Qwen/Qwen-Image-2512@25468b98e3276ca6700de15c6628e51b7de54a26", "sourceLicense": "MoDiff-authored Gallery metadata", "modelTerms": [ - "Apache-2.0 per the publisher at this revision. https://huggingface.co/NucleusAI/Nucleus-Image/tree/5e963db4fd0a65c7e4faf53ca2d4eca567c4dcfa" + "Publisher model terms at https://huggingface.co/Qwen/Qwen-Image-2512/tree/25468b98e3276ca6700de15c6628e51b7de54a26" ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "NucleusAI/Nucleus-Image@5e963db4fd0a65c7e4faf53ca2d4eca567c4dcfa https://huggingface.co/NucleusAI/Nucleus-Image/tree/5e963db4fd0a65c7e4faf53ca2d4eca567c4dcfa" + "Qwen/Qwen-Image-2512@25468b98e3276ca6700de15c6628e51b7de54a26 https://huggingface.co/Qwen/Qwen-Image-2512/tree/25468b98e3276ca6700de15c6628e51b7de54a26" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", - "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", - "provenanceTemplateId": "quiet_kiln_at_daybreak" + "humanApprovalPacketSHA256": "60b01498a2df5f4e4622cdc2f9a43c83d187820780d2425a19718c13707db501", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "qwen_2512_cobalt_backdrop_repair" }, { - "path": "template-gallery/reviews/quiet_kiln_at_daybreak.quality-review.json", - "sha256": "sha256:bytes:b0118affa79b69e333c6a7977aa8c47328d570dd374aa212f0a371ec5a4a353b", + "path": "template-gallery/reviews/qwen_2512_cobalt_backdrop_repair.quality-review.json", + "sha256": "sha256:bytes:cfe7231165788dcb08f50c7d45ab5f0953fd96c92da8d1ecd428af7d0a20cbce", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/NucleusAI/Nucleus-Image/tree/5e963db4fd0a65c7e4faf53ca2d4eca567c4dcfa", - "sourceRevision": "NucleusAI/Nucleus-Image@5e963db4fd0a65c7e4faf53ca2d4eca567c4dcfa", + "sourceUrl": "https://huggingface.co/Qwen/Qwen-Image-2512/tree/25468b98e3276ca6700de15c6628e51b7de54a26", + "sourceRevision": "Qwen/Qwen-Image-2512@25468b98e3276ca6700de15c6628e51b7de54a26", "sourceLicense": "MoDiff-authored Gallery metadata", "modelTerms": [ - "Apache-2.0 per the publisher at this revision. https://huggingface.co/NucleusAI/Nucleus-Image/tree/5e963db4fd0a65c7e4faf53ca2d4eca567c4dcfa" + "Publisher model terms at https://huggingface.co/Qwen/Qwen-Image-2512/tree/25468b98e3276ca6700de15c6628e51b7de54a26" ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "NucleusAI/Nucleus-Image@5e963db4fd0a65c7e4faf53ca2d4eca567c4dcfa https://huggingface.co/NucleusAI/Nucleus-Image/tree/5e963db4fd0a65c7e4faf53ca2d4eca567c4dcfa" + "Qwen/Qwen-Image-2512@25468b98e3276ca6700de15c6628e51b7de54a26 https://huggingface.co/Qwen/Qwen-Image-2512/tree/25468b98e3276ca6700de15c6628e51b7de54a26" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", - "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", - "provenanceTemplateId": "quiet_kiln_at_daybreak" + "humanApprovalPacketSHA256": "60b01498a2df5f4e4622cdc2f9a43c83d187820780d2425a19718c13707db501", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "qwen_2512_cobalt_backdrop_repair" }, { - "path": "template-gallery/reviews/quiet_kiln_at_daybreak.retained-template-provenance.json", - "sha256": "sha256:bytes:ae5db3f69f0a3ae1ad178ca986819e1b8cb1ccdf50c9b3850d5ec2e7d745ba8d", + "path": "template-gallery/reviews/qwen_2512_cobalt_backdrop_repair.retained-template-provenance.json", + "sha256": "sha256:bytes:7303db8a55bb4bfb9947f5d501be2907de1da8ebe0e8972578567e04d33ad336", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/NucleusAI/Nucleus-Image/tree/5e963db4fd0a65c7e4faf53ca2d4eca567c4dcfa", - "sourceRevision": "NucleusAI/Nucleus-Image@5e963db4fd0a65c7e4faf53ca2d4eca567c4dcfa", + "sourceUrl": "https://huggingface.co/Qwen/Qwen-Image-2512/tree/25468b98e3276ca6700de15c6628e51b7de54a26", + "sourceRevision": "Qwen/Qwen-Image-2512@25468b98e3276ca6700de15c6628e51b7de54a26", "sourceLicense": "MoDiff-authored Gallery metadata", "modelTerms": [ - "Apache-2.0 per the publisher at this revision. https://huggingface.co/NucleusAI/Nucleus-Image/tree/5e963db4fd0a65c7e4faf53ca2d4eca567c4dcfa" + "Publisher model terms at https://huggingface.co/Qwen/Qwen-Image-2512/tree/25468b98e3276ca6700de15c6628e51b7de54a26" ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "NucleusAI/Nucleus-Image@5e963db4fd0a65c7e4faf53ca2d4eca567c4dcfa https://huggingface.co/NucleusAI/Nucleus-Image/tree/5e963db4fd0a65c7e4faf53ca2d4eca567c4dcfa" + "Qwen/Qwen-Image-2512@25468b98e3276ca6700de15c6628e51b7de54a26 https://huggingface.co/Qwen/Qwen-Image-2512/tree/25468b98e3276ca6700de15c6628e51b7de54a26" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", - "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", - "provenanceTemplateId": "quiet_kiln_at_daybreak" + "humanApprovalPacketSHA256": "60b01498a2df5f4e4622cdc2f9a43c83d187820780d2425a19718c13707db501", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "qwen_2512_cobalt_backdrop_repair" }, { - "path": "template-gallery/reviews/qwen_2511_pale_amber_on_limestone.original-provenance.json", - "sha256": "sha256:bytes:92184da315494eafd5ffb5f97e0b6b16b9adc7e2900cfe2159a74eb95f2c664d", + "path": "template-gallery/reviews/qwen_bookshop_gouache.original-provenance.json", + "sha256": "sha256:bytes:4af138819ecda66dc7754a8ea6886ca1bb324540a235b73b14c3d2bb547e58de", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/Qwen/Qwen-Image-Edit-2511/tree/6f3ccc0b56e431dc6a0c2b2039706d7d26f22cb9", - "sourceRevision": "Qwen/Qwen-Image-Edit-2511@6f3ccc0b56e431dc6a0c2b2039706d7d26f22cb9", + "sourceUrl": "https://huggingface.co/Qwen/Qwen-Image-2512/tree/25468b98e3276ca6700de15c6628e51b7de54a26", + "sourceRevision": "Qwen/Qwen-Image-2512@25468b98e3276ca6700de15c6628e51b7de54a26", "sourceLicense": "MoDiff-authored Gallery metadata", "modelTerms": [ - "Publisher model terms at https://huggingface.co/Qwen/Qwen-Image-Edit-2511/tree/6f3ccc0b56e431dc6a0c2b2039706d7d26f22cb9" + "Publisher model terms at https://huggingface.co/Qwen/Qwen-Image-2512/tree/25468b98e3276ca6700de15c6628e51b7de54a26" ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "Qwen/Qwen-Image-Edit-2511@6f3ccc0b56e431dc6a0c2b2039706d7d26f22cb9 https://huggingface.co/Qwen/Qwen-Image-Edit-2511/tree/6f3ccc0b56e431dc6a0c2b2039706d7d26f22cb9" + "Qwen/Qwen-Image-2512@25468b98e3276ca6700de15c6628e51b7de54a26 https://huggingface.co/Qwen/Qwen-Image-2512/tree/25468b98e3276ca6700de15c6628e51b7de54a26" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", @@ -17234,26 +18611,26 @@ "reviewClass": "per-file-maintainer-accepted-retained-registration", "humanApprovalPacketSHA256": "60b01498a2df5f4e4622cdc2f9a43c83d187820780d2425a19718c13707db501", "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", - "provenanceTemplateId": "qwen_2511_pale_amber_on_limestone" + "provenanceTemplateId": "qwen_bookshop_gouache" }, { - "path": "template-gallery/reviews/qwen_2511_pale_amber_on_limestone.original-review.json", - "sha256": "sha256:bytes:c927ac13e8f20facd97ba72db03ae4fc658d5b2b5120a9473d2bcd280e01356c", + "path": "template-gallery/reviews/qwen_bookshop_gouache.original-review.json", + "sha256": "sha256:bytes:3b34b326d7200df17d7e8ef42964bf5398dd8216fef84e09ec974c7007101271", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/Qwen/Qwen-Image-Edit-2511/tree/6f3ccc0b56e431dc6a0c2b2039706d7d26f22cb9", - "sourceRevision": "Qwen/Qwen-Image-Edit-2511@6f3ccc0b56e431dc6a0c2b2039706d7d26f22cb9", + "sourceUrl": "https://huggingface.co/Qwen/Qwen-Image-2512/tree/25468b98e3276ca6700de15c6628e51b7de54a26", + "sourceRevision": "Qwen/Qwen-Image-2512@25468b98e3276ca6700de15c6628e51b7de54a26", "sourceLicense": "MoDiff-authored Gallery metadata", "modelTerms": [ - "Publisher model terms at https://huggingface.co/Qwen/Qwen-Image-Edit-2511/tree/6f3ccc0b56e431dc6a0c2b2039706d7d26f22cb9" + "Publisher model terms at https://huggingface.co/Qwen/Qwen-Image-2512/tree/25468b98e3276ca6700de15c6628e51b7de54a26" ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "Qwen/Qwen-Image-Edit-2511@6f3ccc0b56e431dc6a0c2b2039706d7d26f22cb9 https://huggingface.co/Qwen/Qwen-Image-Edit-2511/tree/6f3ccc0b56e431dc6a0c2b2039706d7d26f22cb9" + "Qwen/Qwen-Image-2512@25468b98e3276ca6700de15c6628e51b7de54a26 https://huggingface.co/Qwen/Qwen-Image-2512/tree/25468b98e3276ca6700de15c6628e51b7de54a26" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", @@ -17261,26 +18638,26 @@ "reviewClass": "per-file-maintainer-accepted-retained-registration", "humanApprovalPacketSHA256": "60b01498a2df5f4e4622cdc2f9a43c83d187820780d2425a19718c13707db501", "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", - "provenanceTemplateId": "qwen_2511_pale_amber_on_limestone" + "provenanceTemplateId": "qwen_bookshop_gouache" }, { - "path": "template-gallery/reviews/qwen_2511_pale_amber_on_limestone.quality-review.json", - "sha256": "sha256:bytes:1448c1f4aeddd0ca2238d62a91db71644d723172bad44eee0f62618f89580160", + "path": "template-gallery/reviews/qwen_bookshop_gouache.quality-review.json", + "sha256": "sha256:bytes:94fe1a1dd8188e3f6860c7154e414c605cc8f94e79524fa5dc6f0bb557f23a98", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/Qwen/Qwen-Image-Edit-2511/tree/6f3ccc0b56e431dc6a0c2b2039706d7d26f22cb9", - "sourceRevision": "Qwen/Qwen-Image-Edit-2511@6f3ccc0b56e431dc6a0c2b2039706d7d26f22cb9", + "sourceUrl": "https://huggingface.co/Qwen/Qwen-Image-2512/tree/25468b98e3276ca6700de15c6628e51b7de54a26", + "sourceRevision": "Qwen/Qwen-Image-2512@25468b98e3276ca6700de15c6628e51b7de54a26", "sourceLicense": "MoDiff-authored Gallery metadata", "modelTerms": [ - "Publisher model terms at https://huggingface.co/Qwen/Qwen-Image-Edit-2511/tree/6f3ccc0b56e431dc6a0c2b2039706d7d26f22cb9" + "Publisher model terms at https://huggingface.co/Qwen/Qwen-Image-2512/tree/25468b98e3276ca6700de15c6628e51b7de54a26" ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "Qwen/Qwen-Image-Edit-2511@6f3ccc0b56e431dc6a0c2b2039706d7d26f22cb9 https://huggingface.co/Qwen/Qwen-Image-Edit-2511/tree/6f3ccc0b56e431dc6a0c2b2039706d7d26f22cb9" + "Qwen/Qwen-Image-2512@25468b98e3276ca6700de15c6628e51b7de54a26 https://huggingface.co/Qwen/Qwen-Image-2512/tree/25468b98e3276ca6700de15c6628e51b7de54a26" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", @@ -17288,26 +18665,26 @@ "reviewClass": "per-file-maintainer-accepted-retained-registration", "humanApprovalPacketSHA256": "60b01498a2df5f4e4622cdc2f9a43c83d187820780d2425a19718c13707db501", "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", - "provenanceTemplateId": "qwen_2511_pale_amber_on_limestone" + "provenanceTemplateId": "qwen_bookshop_gouache" }, { - "path": "template-gallery/reviews/qwen_2511_pale_amber_on_limestone.retained-template-provenance.json", - "sha256": "sha256:bytes:0d91cc6e5417f0defc5ef7615cc85f19de32bf6732e01e75d6051b94be8df0d8", + "path": "template-gallery/reviews/qwen_bookshop_gouache.retained-template-provenance.json", + "sha256": "sha256:bytes:7b9356ca691735f772c1a0e914393459401f84cd012e782e4f0d940fac255648", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/Qwen/Qwen-Image-Edit-2511/tree/6f3ccc0b56e431dc6a0c2b2039706d7d26f22cb9", - "sourceRevision": "Qwen/Qwen-Image-Edit-2511@6f3ccc0b56e431dc6a0c2b2039706d7d26f22cb9", + "sourceUrl": "https://huggingface.co/Qwen/Qwen-Image-2512/tree/25468b98e3276ca6700de15c6628e51b7de54a26", + "sourceRevision": "Qwen/Qwen-Image-2512@25468b98e3276ca6700de15c6628e51b7de54a26", "sourceLicense": "MoDiff-authored Gallery metadata", "modelTerms": [ - "Publisher model terms at https://huggingface.co/Qwen/Qwen-Image-Edit-2511/tree/6f3ccc0b56e431dc6a0c2b2039706d7d26f22cb9" + "Publisher model terms at https://huggingface.co/Qwen/Qwen-Image-2512/tree/25468b98e3276ca6700de15c6628e51b7de54a26" ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "Qwen/Qwen-Image-Edit-2511@6f3ccc0b56e431dc6a0c2b2039706d7d26f22cb9 https://huggingface.co/Qwen/Qwen-Image-Edit-2511/tree/6f3ccc0b56e431dc6a0c2b2039706d7d26f22cb9" + "Qwen/Qwen-Image-2512@25468b98e3276ca6700de15c6628e51b7de54a26 https://huggingface.co/Qwen/Qwen-Image-2512/tree/25468b98e3276ca6700de15c6628e51b7de54a26" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", @@ -17315,119 +18692,208 @@ "reviewClass": "per-file-maintainer-accepted-retained-registration", "humanApprovalPacketSHA256": "60b01498a2df5f4e4622cdc2f9a43c83d187820780d2425a19718c13707db501", "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", - "provenanceTemplateId": "qwen_2511_pale_amber_on_limestone" + "provenanceTemplateId": "qwen_bookshop_gouache" }, { - "path": "template-gallery/reviews/qwen_2511_terracotta_material_transfer.original-provenance.json", - "sha256": "sha256:bytes:accd52fe0dc925cda9f3ad31546498422faf762eaae9d5efc1d1c7ab8b2bceb1", + "path": "template-gallery/reviews/qwen_character_angles.quality-review.json", + "sha256": "sha256:bytes:748fb8b3839911be02f80185d329b5b028456c78916da6ad07349e0086b0f106", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers", + "creationMethod": "MoDiff-authored technical provenance, Gallery manifest or quality review for the explicitly approved native Linux Qwen character angle sheet", + "sourceUrl": null, + "sourceRevision": null, + "sourceLicense": "Apache-2.0 project-authored metadata; generated-media terms remain in their exact per-file record", + "modelTerms": [], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [], + "assetLicense": "Apache-2.0", + "reviewedBy": "SOURAV DAS", + "reviewedAt": "2026-11-10", + "reviewClass": "per-file-human-approved-qwen-angle-native-image-registration", + "provenanceTemplateId": "qwen_character_angles", + "humanApprovalPacketSHA256": "9ca0bb197dbad8a2a27b25cef64aff67875aa6ea6f69fcb3bff581aae35b43d5" + }, + { + "path": "template-gallery/reviews/qwen_character_angles.reviewed-provenance.json", + "sha256": "sha256:bytes:a4d880bcad84c21fe3787001fceb2f9b2f4042fe83e1e2c6733d0f578a586c66", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers", + "creationMethod": "MoDiff-authored technical provenance, Gallery manifest or quality review for the explicitly approved native Linux Qwen character angle sheet", + "sourceUrl": null, + "sourceRevision": null, + "sourceLicense": "Apache-2.0 project-authored metadata; generated-media terms remain in their exact per-file record", + "modelTerms": [], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [], + "assetLicense": "Apache-2.0", + "reviewedBy": "SOURAV DAS", + "reviewedAt": "2026-11-10", + "reviewClass": "per-file-human-approved-qwen-angle-native-image-registration", + "provenanceTemplateId": "qwen_character_angles", + "humanApprovalPacketSHA256": "9ca0bb197dbad8a2a27b25cef64aff67875aa6ea6f69fcb3bff581aae35b43d5" + }, + { + "path": "template-gallery/reviews/qwen_cobalt_on_charcoal_slate.original-provenance.json", + "sha256": "sha256:bytes:e792e4d45eff40be63575b5d1b983d59aabdecf004890c98e828f6b58a1d549b", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/Qwen/Qwen-Image-Edit-2511/tree/6f3ccc0b56e431dc6a0c2b2039706d7d26f22cb9", - "sourceRevision": "Qwen/Qwen-Image-Edit-2511@6f3ccc0b56e431dc6a0c2b2039706d7d26f22cb9", + "sourceUrl": "https://huggingface.co/Qwen/Qwen-Image-Edit/tree/ac7f9318f633fc4b5778c59367c8128225f1e3de", + "sourceRevision": "Qwen/Qwen-Image-Edit@ac7f9318f633fc4b5778c59367c8128225f1e3de", "sourceLicense": "MoDiff-authored Gallery metadata", "modelTerms": [ - "Publisher model terms at https://huggingface.co/Qwen/Qwen-Image-Edit-2511/tree/6f3ccc0b56e431dc6a0c2b2039706d7d26f22cb9" + "Publisher model terms at https://huggingface.co/Qwen/Qwen-Image-Edit/tree/ac7f9318f633fc4b5778c59367c8128225f1e3de" ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "Qwen/Qwen-Image-Edit-2511@6f3ccc0b56e431dc6a0c2b2039706d7d26f22cb9 https://huggingface.co/Qwen/Qwen-Image-Edit-2511/tree/6f3ccc0b56e431dc6a0c2b2039706d7d26f22cb9" + "Qwen/Qwen-Image-Edit@ac7f9318f633fc4b5778c59367c8128225f1e3de https://huggingface.co/Qwen/Qwen-Image-Edit/tree/ac7f9318f633fc4b5778c59367c8128225f1e3de" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "d7e2fd301d16eede3da44cec1811930560ba0d958dfd46d8d0962eb3a22eea63", + "humanApprovalPacketSHA256": "60b01498a2df5f4e4622cdc2f9a43c83d187820780d2425a19718c13707db501", "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", - "provenanceTemplateId": "qwen_2511_terracotta_material_transfer" + "provenanceTemplateId": "qwen_cobalt_on_charcoal_slate" }, { - "path": "template-gallery/reviews/qwen_2511_terracotta_material_transfer.original-review.json", - "sha256": "sha256:bytes:6fa09481a5e8937cf2afa452c0f6b0da53124a5ff556756d3c970235d22eeb8f", + "path": "template-gallery/reviews/qwen_cobalt_on_charcoal_slate.original-review.json", + "sha256": "sha256:bytes:d2caf52b07dff116307a43afe1f087fe17cb98f2daa8549ec5e5c2331e0fac2f", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/Qwen/Qwen-Image-Edit-2511/tree/6f3ccc0b56e431dc6a0c2b2039706d7d26f22cb9", - "sourceRevision": "Qwen/Qwen-Image-Edit-2511@6f3ccc0b56e431dc6a0c2b2039706d7d26f22cb9", + "sourceUrl": "https://huggingface.co/Qwen/Qwen-Image-Edit/tree/ac7f9318f633fc4b5778c59367c8128225f1e3de", + "sourceRevision": "Qwen/Qwen-Image-Edit@ac7f9318f633fc4b5778c59367c8128225f1e3de", "sourceLicense": "MoDiff-authored Gallery metadata", "modelTerms": [ - "Publisher model terms at https://huggingface.co/Qwen/Qwen-Image-Edit-2511/tree/6f3ccc0b56e431dc6a0c2b2039706d7d26f22cb9" + "Publisher model terms at https://huggingface.co/Qwen/Qwen-Image-Edit/tree/ac7f9318f633fc4b5778c59367c8128225f1e3de" ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "Qwen/Qwen-Image-Edit-2511@6f3ccc0b56e431dc6a0c2b2039706d7d26f22cb9 https://huggingface.co/Qwen/Qwen-Image-Edit-2511/tree/6f3ccc0b56e431dc6a0c2b2039706d7d26f22cb9" + "Qwen/Qwen-Image-Edit@ac7f9318f633fc4b5778c59367c8128225f1e3de https://huggingface.co/Qwen/Qwen-Image-Edit/tree/ac7f9318f633fc4b5778c59367c8128225f1e3de" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "d7e2fd301d16eede3da44cec1811930560ba0d958dfd46d8d0962eb3a22eea63", + "humanApprovalPacketSHA256": "60b01498a2df5f4e4622cdc2f9a43c83d187820780d2425a19718c13707db501", "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", - "provenanceTemplateId": "qwen_2511_terracotta_material_transfer" + "provenanceTemplateId": "qwen_cobalt_on_charcoal_slate" }, { - "path": "template-gallery/reviews/qwen_2511_terracotta_material_transfer.quality-review.json", - "sha256": "sha256:bytes:c069a461b67cb90ade5f906200db6359e17ecda252d305bc8e6bc7fe9df15786", + "path": "template-gallery/reviews/qwen_cobalt_on_charcoal_slate.quality-review.json", + "sha256": "sha256:bytes:492e8a71b24369a4f96ae8e7781fe6926274d5871066c2ae371165026bb585fc", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/Qwen/Qwen-Image-Edit-2511/tree/6f3ccc0b56e431dc6a0c2b2039706d7d26f22cb9", - "sourceRevision": "Qwen/Qwen-Image-Edit-2511@6f3ccc0b56e431dc6a0c2b2039706d7d26f22cb9", + "sourceUrl": "https://huggingface.co/Qwen/Qwen-Image-Edit/tree/ac7f9318f633fc4b5778c59367c8128225f1e3de", + "sourceRevision": "Qwen/Qwen-Image-Edit@ac7f9318f633fc4b5778c59367c8128225f1e3de", "sourceLicense": "MoDiff-authored Gallery metadata", "modelTerms": [ - "Publisher model terms at https://huggingface.co/Qwen/Qwen-Image-Edit-2511/tree/6f3ccc0b56e431dc6a0c2b2039706d7d26f22cb9" + "Publisher model terms at https://huggingface.co/Qwen/Qwen-Image-Edit/tree/ac7f9318f633fc4b5778c59367c8128225f1e3de" ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "Qwen/Qwen-Image-Edit-2511@6f3ccc0b56e431dc6a0c2b2039706d7d26f22cb9 https://huggingface.co/Qwen/Qwen-Image-Edit-2511/tree/6f3ccc0b56e431dc6a0c2b2039706d7d26f22cb9" + "Qwen/Qwen-Image-Edit@ac7f9318f633fc4b5778c59367c8128225f1e3de https://huggingface.co/Qwen/Qwen-Image-Edit/tree/ac7f9318f633fc4b5778c59367c8128225f1e3de" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "d7e2fd301d16eede3da44cec1811930560ba0d958dfd46d8d0962eb3a22eea63", + "humanApprovalPacketSHA256": "60b01498a2df5f4e4622cdc2f9a43c83d187820780d2425a19718c13707db501", "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", - "provenanceTemplateId": "qwen_2511_terracotta_material_transfer" + "provenanceTemplateId": "qwen_cobalt_on_charcoal_slate" }, { - "path": "template-gallery/reviews/qwen_2511_terracotta_material_transfer.retained-template-provenance.json", - "sha256": "sha256:bytes:d4b364f299fcce02bee7cdacad3d915d2c8a916b1b97fb9d77f8fa88146c899f", + "path": "template-gallery/reviews/qwen_cobalt_on_charcoal_slate.retained-template-provenance.json", + "sha256": "sha256:bytes:416a58ebfb2db64e9d1e75995cd8b6e8151b60a60600c9bfe33a472b2c31d8bb", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/Qwen/Qwen-Image-Edit-2511/tree/6f3ccc0b56e431dc6a0c2b2039706d7d26f22cb9", - "sourceRevision": "Qwen/Qwen-Image-Edit-2511@6f3ccc0b56e431dc6a0c2b2039706d7d26f22cb9", + "sourceUrl": "https://huggingface.co/Qwen/Qwen-Image-Edit/tree/ac7f9318f633fc4b5778c59367c8128225f1e3de", + "sourceRevision": "Qwen/Qwen-Image-Edit@ac7f9318f633fc4b5778c59367c8128225f1e3de", "sourceLicense": "MoDiff-authored Gallery metadata", "modelTerms": [ - "Publisher model terms at https://huggingface.co/Qwen/Qwen-Image-Edit-2511/tree/6f3ccc0b56e431dc6a0c2b2039706d7d26f22cb9" + "Publisher model terms at https://huggingface.co/Qwen/Qwen-Image-Edit/tree/ac7f9318f633fc4b5778c59367c8128225f1e3de" ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "Qwen/Qwen-Image-Edit-2511@6f3ccc0b56e431dc6a0c2b2039706d7d26f22cb9 https://huggingface.co/Qwen/Qwen-Image-Edit-2511/tree/6f3ccc0b56e431dc6a0c2b2039706d7d26f22cb9" + "Qwen/Qwen-Image-Edit@ac7f9318f633fc4b5778c59367c8128225f1e3de https://huggingface.co/Qwen/Qwen-Image-Edit/tree/ac7f9318f633fc4b5778c59367c8128225f1e3de" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "d7e2fd301d16eede3da44cec1811930560ba0d958dfd46d8d0962eb3a22eea63", + "humanApprovalPacketSHA256": "60b01498a2df5f4e4622cdc2f9a43c83d187820780d2425a19718c13707db501", "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", - "provenanceTemplateId": "qwen_2511_terracotta_material_transfer" + "provenanceTemplateId": "qwen_cobalt_on_charcoal_slate" }, { - "path": "template-gallery/reviews/qwen_2512_cobalt_backdrop_repair.original-provenance.json", - "sha256": "sha256:bytes:aff76ebb3392dc74718791d4d3e964e12ed333818e3e3004c2b00efdb1065cda", + "path": "template-gallery/reviews/qwen_control_image_layout.quality-review.json", + "sha256": "sha256:bytes:96b21e77ef524c853732f9ee920cb0cc6306fae984a78c798aab7cc1314b1c4b", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers", + "creationMethod": "Project-authored Gallery manifest, native provenance or accepted quality review", + "sourceUrl": null, + "sourceRevision": null, + "sourceLicense": "Apache-2.0 project-authored metadata", + "modelTerms": [], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [], + "assetLicense": "Apache-2.0", + "reviewedBy": "SOURAV DAS", + "reviewedAt": "2026-11-10", + "reviewClass": "per-file-maintainer-accepted-native-gallery-registration", + "provenanceTemplateId": "qwen_control_image_layout", + "humanApprovalPacketSHA256": "73ddf9ea7fc27eccc6b93817809421a008ce0fd2fb3080ffbdc5831a09205304" + }, + { + "path": "template-gallery/reviews/qwen_control_image_layout.reviewed-provenance.json", + "sha256": "sha256:bytes:63f6695ce2fd38c8014d2de5216bd4a681c207496d5eaad9ec3906a545ca2820", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers", + "creationMethod": "Project-authored Gallery manifest, native provenance or accepted quality review", + "sourceUrl": null, + "sourceRevision": null, + "sourceLicense": "Apache-2.0 project-authored metadata", + "modelTerms": [], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [], + "assetLicense": "Apache-2.0", + "reviewedBy": "SOURAV DAS", + "reviewedAt": "2026-11-10", + "reviewClass": "per-file-maintainer-accepted-native-gallery-registration", + "humanApprovalPacketSHA256": "73ddf9ea7fc27eccc6b93817809421a008ce0fd2fb3080ffbdc5831a09205304", + "humanApprovalScope": "The maintainer explicitly approved the proposed 4/5 scores, known limits, exact retained Klein two-reference derivative output, its redacted technical/quality metadata, and permission to make and redistribute this derivative under Apache-2.0. Existing source images and their mixed license records remain unchanged; no other assets or held cases are newly approved.", + "provenanceTemplateId": "qwen_control_image_layout" + }, + { + "path": "template-gallery/reviews/qwen_control_winter_cabin_blue_hour.original-provenance.json", + "sha256": "sha256:bytes:a58317e01fd2bffeb6a261279a595539d058304a8c5965c89e43ef6680273fc4", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", @@ -17448,13 +18914,13 @@ "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "60b01498a2df5f4e4622cdc2f9a43c83d187820780d2425a19718c13707db501", + "humanApprovalPacketSHA256": "3968c7cbe37a94789a9f839d8e83a9e0f102629b797d5f7baacf0304a8d18153", "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", - "provenanceTemplateId": "qwen_2512_cobalt_backdrop_repair" + "provenanceTemplateId": "qwen_control_winter_cabin_blue_hour" }, { - "path": "template-gallery/reviews/qwen_2512_cobalt_backdrop_repair.original-review.json", - "sha256": "sha256:bytes:87b770beaa2fa2fbbc469450467e7ba7fd0c1f79e227cc24ba1e226e8b4af900", + "path": "template-gallery/reviews/qwen_control_winter_cabin_blue_hour.original-review.json", + "sha256": "sha256:bytes:b01f4a91833a2f141f512cb5caee5eeff76481a829590260f823b500824bab24", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", @@ -17475,13 +18941,13 @@ "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "60b01498a2df5f4e4622cdc2f9a43c83d187820780d2425a19718c13707db501", + "humanApprovalPacketSHA256": "3968c7cbe37a94789a9f839d8e83a9e0f102629b797d5f7baacf0304a8d18153", "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", - "provenanceTemplateId": "qwen_2512_cobalt_backdrop_repair" + "provenanceTemplateId": "qwen_control_winter_cabin_blue_hour" }, { - "path": "template-gallery/reviews/qwen_2512_cobalt_backdrop_repair.quality-review.json", - "sha256": "sha256:bytes:cfe7231165788dcb08f50c7d45ab5f0953fd96c92da8d1ecd428af7d0a20cbce", + "path": "template-gallery/reviews/qwen_control_winter_cabin_blue_hour.quality-review.json", + "sha256": "sha256:bytes:b83d8bef8d87dbd5e4587904a947f82d9a2353224781b1581dae0684b86eab65", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", @@ -17502,13 +18968,13 @@ "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "60b01498a2df5f4e4622cdc2f9a43c83d187820780d2425a19718c13707db501", + "humanApprovalPacketSHA256": "3968c7cbe37a94789a9f839d8e83a9e0f102629b797d5f7baacf0304a8d18153", "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", - "provenanceTemplateId": "qwen_2512_cobalt_backdrop_repair" + "provenanceTemplateId": "qwen_control_winter_cabin_blue_hour" }, { - "path": "template-gallery/reviews/qwen_2512_cobalt_backdrop_repair.retained-template-provenance.json", - "sha256": "sha256:bytes:7303db8a55bb4bfb9947f5d501be2907de1da8ebe0e8972578567e04d33ad336", + "path": "template-gallery/reviews/qwen_control_winter_cabin_blue_hour.retained-template-provenance.json", + "sha256": "sha256:bytes:6c21a60f83581753a9e54647ce49a82c877f23a30ea2161be13e675e26eeb0db", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", @@ -17529,125 +18995,390 @@ "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "60b01498a2df5f4e4622cdc2f9a43c83d187820780d2425a19718c13707db501", + "humanApprovalPacketSHA256": "3968c7cbe37a94789a9f839d8e83a9e0f102629b797d5f7baacf0304a8d18153", "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", - "provenanceTemplateId": "qwen_2512_cobalt_backdrop_repair" + "provenanceTemplateId": "qwen_control_winter_cabin_blue_hour" }, { - "path": "template-gallery/reviews/qwen_bookshop_gouache.original-provenance.json", - "sha256": "sha256:bytes:4af138819ecda66dc7754a8ea6886ca1bb324540a235b73b14c3d2bb547e58de", + "path": "template-gallery/reviews/qwen_edit_plus_single_image.quality-review.json", + "sha256": "sha256:bytes:bd2066932a1749ee87c340450d232ed2d8f919648ae9e1e64b9ea30f531d73d7", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers", + "creationMethod": "Project-authored Gallery manifest, native provenance or accepted quality review", + "sourceUrl": null, + "sourceRevision": null, + "sourceLicense": "Apache-2.0 project-authored metadata", + "modelTerms": [], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [], + "assetLicense": "Apache-2.0", + "reviewedBy": "SOURAV DAS", + "reviewedAt": "2026-11-10", + "reviewClass": "per-file-maintainer-accepted-native-gallery-registration", + "provenanceTemplateId": "qwen_edit_plus_single_image", + "humanApprovalPacketSHA256": "95893cb17e10b15ae6b23d8b31b57b0e14b9af96f822d75edbc6b68971afb11d" + }, + { + "path": "template-gallery/reviews/qwen_edit_plus_single_image.reviewed-provenance.json", + "sha256": "sha256:bytes:4b672fc3ddc522c44a41c7065cefda8c82d2d5be5ab7f01375b19cc93e029fe8", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers", + "creationMethod": "Project-authored Gallery manifest, native provenance or accepted quality review", + "sourceUrl": null, + "sourceRevision": null, + "sourceLicense": "Apache-2.0 project-authored metadata", + "modelTerms": [], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [], + "assetLicense": "Apache-2.0", + "reviewedBy": "SOURAV DAS", + "reviewedAt": "2026-11-10", + "reviewClass": "per-file-maintainer-accepted-native-gallery-registration", + "humanApprovalPacketSHA256": "95893cb17e10b15ae6b23d8b31b57b0e14b9af96f822d75edbc6b68971afb11d", + "humanApprovalScope": "The maintainer explicitly approved the proposed 4/5 scores, known limits, exact retained Klein two-reference derivative output, its redacted technical/quality metadata, and permission to make and redistribute this derivative under Apache-2.0. Existing source images and their mixed license records remain unchanged; no other assets or held cases are newly approved.", + "provenanceTemplateId": "qwen_edit_plus_single_image" + }, + { + "path": "template-gallery/reviews/qwen_edit_strength_sweep.quality-review.json", + "sha256": "sha256:bytes:c0632baaea92783a73856fd89295df7ddea9b07712a35311f81fd2c8ca9c0727", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers", + "creationMethod": "Project-authored Gallery manifest, native provenance or accepted quality review", + "sourceUrl": null, + "sourceRevision": null, + "sourceLicense": "Apache-2.0 project-authored metadata", + "modelTerms": [], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [], + "assetLicense": "Apache-2.0", + "reviewedBy": "SOURAV DAS", + "reviewedAt": "2026-11-10", + "reviewClass": "per-file-maintainer-accepted-native-gallery-registration", + "provenanceTemplateId": "qwen_edit_strength_sweep", + "humanApprovalPacketSHA256": "95893cb17e10b15ae6b23d8b31b57b0e14b9af96f822d75edbc6b68971afb11d" + }, + { + "path": "template-gallery/reviews/qwen_edit_strength_sweep.reviewed-provenance.json", + "sha256": "sha256:bytes:021e25f19a4a62f07513e3556ba7865e2ae7631762ead746ef6563e2912b0a4a", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers", + "creationMethod": "Project-authored Gallery manifest, native provenance or accepted quality review", + "sourceUrl": null, + "sourceRevision": null, + "sourceLicense": "Apache-2.0 project-authored metadata", + "modelTerms": [], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [], + "assetLicense": "Apache-2.0", + "reviewedBy": "SOURAV DAS", + "reviewedAt": "2026-11-10", + "reviewClass": "per-file-maintainer-accepted-native-gallery-registration", + "provenanceTemplateId": "qwen_edit_strength_sweep", + "humanApprovalPacketSHA256": "95893cb17e10b15ae6b23d8b31b57b0e14b9af96f822d75edbc6b68971afb11d" + }, + { + "path": "template-gallery/reviews/qwen_inpaint_mask_draft.quality-review.json", + "sha256": "sha256:bytes:aacac275d7f3885f227d431f1a37be7dfcd720cee639e1a34851cdce54719154", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers", + "creationMethod": "Project-authored Gallery manifest, native provenance or accepted quality review", + "sourceUrl": null, + "sourceRevision": null, + "sourceLicense": "Apache-2.0 project-authored metadata", + "modelTerms": [], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [], + "assetLicense": "Apache-2.0", + "reviewedBy": "SOURAV DAS", + "reviewedAt": "2026-11-10", + "reviewClass": "per-file-maintainer-accepted-native-gallery-registration", + "provenanceTemplateId": "qwen_inpaint_mask_draft", + "humanApprovalPacketSHA256": "73ddf9ea7fc27eccc6b93817809421a008ce0fd2fb3080ffbdc5831a09205304" + }, + { + "path": "template-gallery/reviews/qwen_inpaint_mask_draft.reviewed-provenance.json", + "sha256": "sha256:bytes:fd5214c8523c581b8535d0bd77afc4a8451445aeb449bb079ac150de9c3d5727", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers", + "creationMethod": "Project-authored Gallery manifest, native provenance or accepted quality review", + "sourceUrl": null, + "sourceRevision": null, + "sourceLicense": "Apache-2.0 project-authored metadata", + "modelTerms": [], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [], + "assetLicense": "Apache-2.0", + "reviewedBy": "SOURAV DAS", + "reviewedAt": "2026-11-10", + "reviewClass": "per-file-maintainer-accepted-native-gallery-registration", + "provenanceTemplateId": "qwen_inpaint_mask_draft", + "humanApprovalPacketSHA256": "73ddf9ea7fc27eccc6b93817809421a008ce0fd2fb3080ffbdc5831a09205304" + }, + { + "path": "template-gallery/reviews/qwen_inpaint_object_replace.quality-review.json", + "sha256": "sha256:bytes:cdbd7d549bfef1a9513cd8ed5feef6ba7798f380ffe45830cfa588de789c3cdf", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers", + "creationMethod": "Project-authored Gallery manifest, native provenance or accepted quality review", + "sourceUrl": null, + "sourceRevision": null, + "sourceLicense": "Apache-2.0 project-authored metadata", + "modelTerms": [], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [], + "assetLicense": "Apache-2.0", + "reviewedBy": "SOURAV DAS", + "reviewedAt": "2026-11-10", + "reviewClass": "per-file-maintainer-accepted-native-gallery-registration", + "provenanceTemplateId": "qwen_inpaint_object_replace", + "humanApprovalPacketSHA256": "95893cb17e10b15ae6b23d8b31b57b0e14b9af96f822d75edbc6b68971afb11d" + }, + { + "path": "template-gallery/reviews/qwen_inpaint_object_replace.reviewed-provenance.json", + "sha256": "sha256:bytes:9110d6bf939d4c68541767c20ad62684978c590af344a226d76ee02c32b76fef", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers", + "creationMethod": "Project-authored Gallery manifest, native provenance or accepted quality review", + "sourceUrl": null, + "sourceRevision": null, + "sourceLicense": "Apache-2.0 project-authored metadata", + "modelTerms": [], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [], + "assetLicense": "Apache-2.0", + "reviewedBy": "SOURAV DAS", + "reviewedAt": "2026-11-10", + "reviewClass": "per-file-maintainer-accepted-native-gallery-registration", + "provenanceTemplateId": "qwen_inpaint_object_replace", + "humanApprovalPacketSHA256": "95893cb17e10b15ae6b23d8b31b57b0e14b9af96f822d75edbc6b68971afb11d" + }, + { + "path": "template-gallery/reviews/qwen_layered_portrait.quality-review.json", + "sha256": "sha256:bytes:2ef67ce5c77e09b88d8a33d6759edbc3ccbfe910bfad17d638dc5ce99794ea7f", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers", + "creationMethod": "MoDiff-authored technical, review, input-binding or retained recipe metadata for three maintainer-accepted assets", + "sourceUrl": null, + "sourceRevision": null, + "sourceLicense": "Apache-2.0 project-authored metadata; generated-media model terms are retained separately", + "modelTerms": [], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [], + "assetLicense": "Apache-2.0", + "reviewedBy": "maintainer (current user)", + "reviewedAt": "2026-11-12", + "reviewClass": "per-file-maintainer-accepted-native-three-registration", + "provenanceTemplateId": "qwen_layered_portrait", + "humanApprovalPacketSHA256": "69c6b3d9b0ea2fcca16ee538f6e75b414b7141658b74f10578758e61360f63fd" + }, + { + "path": "template-gallery/reviews/qwen_layered_portrait.reviewed-provenance.json", + "sha256": "sha256:bytes:f1f8f884f1a797e5918e01f9b47d1f93d39cd6a305a7d3ca46c9f9b349d18f01", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers", + "creationMethod": "MoDiff-authored technical, review, input-binding or retained recipe metadata for three maintainer-accepted assets", + "sourceUrl": null, + "sourceRevision": null, + "sourceLicense": "Apache-2.0 project-authored metadata; generated-media model terms are retained separately", + "modelTerms": [], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [], + "assetLicense": "Apache-2.0", + "reviewedBy": "maintainer (current user)", + "reviewedAt": "2026-11-12", + "reviewClass": "per-file-maintainer-accepted-native-three-registration", + "provenanceTemplateId": "qwen_layered_portrait", + "humanApprovalPacketSHA256": "69c6b3d9b0ea2fcca16ee538f6e75b414b7141658b74f10578758e61360f63fd" + }, + { + "path": "template-gallery/reviews/qwen_layered_sunset_and_peaks.original-provenance.json", + "sha256": "sha256:bytes:9a4c058f2ba7bd3dace465219c32bd818493431063688b00741a9a9c4fb01794", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/Qwen/Qwen-Image-2512/tree/25468b98e3276ca6700de15c6628e51b7de54a26", - "sourceRevision": "Qwen/Qwen-Image-2512@25468b98e3276ca6700de15c6628e51b7de54a26", + "sourceUrl": "https://huggingface.co/Qwen/Qwen-Image-Layered/tree/8f0ca708dfff6ba1dd5f2d85d78f8c108a040bcf", + "sourceRevision": "Qwen/Qwen-Image-Layered@8f0ca708dfff6ba1dd5f2d85d78f8c108a040bcf", "sourceLicense": "MoDiff-authored Gallery metadata", "modelTerms": [ - "Publisher model terms at https://huggingface.co/Qwen/Qwen-Image-2512/tree/25468b98e3276ca6700de15c6628e51b7de54a26" + "https://huggingface.co/Qwen/Qwen-Image-Layered/blob/8f0ca708dfff6ba1dd5f2d85d78f8c108a040bcf/README.md" ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "Qwen/Qwen-Image-2512@25468b98e3276ca6700de15c6628e51b7de54a26 https://huggingface.co/Qwen/Qwen-Image-2512/tree/25468b98e3276ca6700de15c6628e51b7de54a26" + "Qwen/Qwen-Image-Layered@8f0ca708dfff6ba1dd5f2d85d78f8c108a040bcf https://huggingface.co/Qwen/Qwen-Image-Layered/tree/8f0ca708dfff6ba1dd5f2d85d78f8c108a040bcf" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "60b01498a2df5f4e4622cdc2f9a43c83d187820780d2425a19718c13707db501", + "humanApprovalPacketSHA256": "b16dfc2b7c1c32272b8f79bc1bffbb60376e63f8cf1ab9d0bdf9aea07cccf5cd", "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", - "provenanceTemplateId": "qwen_bookshop_gouache" + "provenanceTemplateId": "qwen_layered_sunset_and_peaks" }, { - "path": "template-gallery/reviews/qwen_bookshop_gouache.original-review.json", - "sha256": "sha256:bytes:3b34b326d7200df17d7e8ef42964bf5398dd8216fef84e09ec974c7007101271", + "path": "template-gallery/reviews/qwen_layered_sunset_and_peaks.original-review.json", + "sha256": "sha256:bytes:faf0adb0a9c40691caf3ef8f96765406b3b5058aa9618cca5431ae83529a1bcb", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/Qwen/Qwen-Image-2512/tree/25468b98e3276ca6700de15c6628e51b7de54a26", - "sourceRevision": "Qwen/Qwen-Image-2512@25468b98e3276ca6700de15c6628e51b7de54a26", + "sourceUrl": "https://huggingface.co/Qwen/Qwen-Image-Layered/tree/8f0ca708dfff6ba1dd5f2d85d78f8c108a040bcf", + "sourceRevision": "Qwen/Qwen-Image-Layered@8f0ca708dfff6ba1dd5f2d85d78f8c108a040bcf", "sourceLicense": "MoDiff-authored Gallery metadata", "modelTerms": [ - "Publisher model terms at https://huggingface.co/Qwen/Qwen-Image-2512/tree/25468b98e3276ca6700de15c6628e51b7de54a26" + "https://huggingface.co/Qwen/Qwen-Image-Layered/blob/8f0ca708dfff6ba1dd5f2d85d78f8c108a040bcf/README.md" ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "Qwen/Qwen-Image-2512@25468b98e3276ca6700de15c6628e51b7de54a26 https://huggingface.co/Qwen/Qwen-Image-2512/tree/25468b98e3276ca6700de15c6628e51b7de54a26" + "Qwen/Qwen-Image-Layered@8f0ca708dfff6ba1dd5f2d85d78f8c108a040bcf https://huggingface.co/Qwen/Qwen-Image-Layered/tree/8f0ca708dfff6ba1dd5f2d85d78f8c108a040bcf" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "60b01498a2df5f4e4622cdc2f9a43c83d187820780d2425a19718c13707db501", + "humanApprovalPacketSHA256": "b16dfc2b7c1c32272b8f79bc1bffbb60376e63f8cf1ab9d0bdf9aea07cccf5cd", "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", - "provenanceTemplateId": "qwen_bookshop_gouache" + "provenanceTemplateId": "qwen_layered_sunset_and_peaks" }, { - "path": "template-gallery/reviews/qwen_bookshop_gouache.quality-review.json", - "sha256": "sha256:bytes:94fe1a1dd8188e3f6860c7154e414c605cc8f94e79524fa5dc6f0bb557f23a98", + "path": "template-gallery/reviews/qwen_layered_sunset_and_peaks.quality-review.json", + "sha256": "sha256:bytes:326553aed7aab67e3eed777d7919e21fe02ff9ab837edd7f39bd7a2abece77f0", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/Qwen/Qwen-Image-2512/tree/25468b98e3276ca6700de15c6628e51b7de54a26", - "sourceRevision": "Qwen/Qwen-Image-2512@25468b98e3276ca6700de15c6628e51b7de54a26", + "sourceUrl": "https://huggingface.co/Qwen/Qwen-Image-Layered/tree/8f0ca708dfff6ba1dd5f2d85d78f8c108a040bcf", + "sourceRevision": "Qwen/Qwen-Image-Layered@8f0ca708dfff6ba1dd5f2d85d78f8c108a040bcf", "sourceLicense": "MoDiff-authored Gallery metadata", "modelTerms": [ - "Publisher model terms at https://huggingface.co/Qwen/Qwen-Image-2512/tree/25468b98e3276ca6700de15c6628e51b7de54a26" + "https://huggingface.co/Qwen/Qwen-Image-Layered/blob/8f0ca708dfff6ba1dd5f2d85d78f8c108a040bcf/README.md" ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "Qwen/Qwen-Image-2512@25468b98e3276ca6700de15c6628e51b7de54a26 https://huggingface.co/Qwen/Qwen-Image-2512/tree/25468b98e3276ca6700de15c6628e51b7de54a26" + "Qwen/Qwen-Image-Layered@8f0ca708dfff6ba1dd5f2d85d78f8c108a040bcf https://huggingface.co/Qwen/Qwen-Image-Layered/tree/8f0ca708dfff6ba1dd5f2d85d78f8c108a040bcf" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "60b01498a2df5f4e4622cdc2f9a43c83d187820780d2425a19718c13707db501", + "humanApprovalPacketSHA256": "b16dfc2b7c1c32272b8f79bc1bffbb60376e63f8cf1ab9d0bdf9aea07cccf5cd", "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", - "provenanceTemplateId": "qwen_bookshop_gouache" + "provenanceTemplateId": "qwen_layered_sunset_and_peaks" }, { - "path": "template-gallery/reviews/qwen_bookshop_gouache.retained-template-provenance.json", - "sha256": "sha256:bytes:7b9356ca691735f772c1a0e914393459401f84cd012e782e4f0d940fac255648", + "path": "template-gallery/reviews/qwen_layered_sunset_and_peaks.retained-template-provenance.json", + "sha256": "sha256:bytes:d6aaa0a0d9b84d10864e8a783ac82ac167b487f71d185bacd99cc035f8e22105", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/Qwen/Qwen-Image-2512/tree/25468b98e3276ca6700de15c6628e51b7de54a26", - "sourceRevision": "Qwen/Qwen-Image-2512@25468b98e3276ca6700de15c6628e51b7de54a26", + "sourceUrl": "https://huggingface.co/Qwen/Qwen-Image-Layered/tree/8f0ca708dfff6ba1dd5f2d85d78f8c108a040bcf", + "sourceRevision": "Qwen/Qwen-Image-Layered@8f0ca708dfff6ba1dd5f2d85d78f8c108a040bcf", "sourceLicense": "MoDiff-authored Gallery metadata", "modelTerms": [ - "Publisher model terms at https://huggingface.co/Qwen/Qwen-Image-2512/tree/25468b98e3276ca6700de15c6628e51b7de54a26" + "https://huggingface.co/Qwen/Qwen-Image-Layered/blob/8f0ca708dfff6ba1dd5f2d85d78f8c108a040bcf/README.md" ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "Qwen/Qwen-Image-2512@25468b98e3276ca6700de15c6628e51b7de54a26 https://huggingface.co/Qwen/Qwen-Image-2512/tree/25468b98e3276ca6700de15c6628e51b7de54a26" + "Qwen/Qwen-Image-Layered@8f0ca708dfff6ba1dd5f2d85d78f8c108a040bcf https://huggingface.co/Qwen/Qwen-Image-Layered/tree/8f0ca708dfff6ba1dd5f2d85d78f8c108a040bcf" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "60b01498a2df5f4e4622cdc2f9a43c83d187820780d2425a19718c13707db501", + "humanApprovalPacketSHA256": "b16dfc2b7c1c32272b8f79bc1bffbb60376e63f8cf1ab9d0bdf9aea07cccf5cd", "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", - "provenanceTemplateId": "qwen_bookshop_gouache" + "provenanceTemplateId": "qwen_layered_sunset_and_peaks" }, { - "path": "template-gallery/reviews/qwen_character_angles.quality-review.json", - "sha256": "sha256:bytes:748fb8b3839911be02f80185d329b5b028456c78916da6ad07349e0086b0f106", + "path": "template-gallery/reviews/qwen_logo_texture.quality-review.json", + "sha256": "sha256:bytes:27383d10d65bf5bcf81efb5a197751c3ad29476fd23f72cd8a937dc432e6f555", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers", - "creationMethod": "MoDiff-authored technical provenance, Gallery manifest or quality review for the explicitly approved native Linux Qwen character angle sheet", + "creationMethod": "Project-authored Gallery manifest, native provenance or accepted quality review", + "sourceUrl": null, + "sourceRevision": null, + "sourceLicense": "Apache-2.0 project-authored metadata", + "modelTerms": [], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [], + "assetLicense": "Apache-2.0", + "reviewedBy": "SOURAV DAS", + "reviewedAt": "2026-11-10", + "reviewClass": "per-file-maintainer-accepted-native-gallery-registration", + "provenanceTemplateId": "qwen_logo_texture", + "humanApprovalPacketSHA256": "95893cb17e10b15ae6b23d8b31b57b0e14b9af96f822d75edbc6b68971afb11d" + }, + { + "path": "template-gallery/reviews/qwen_logo_texture.reviewed-provenance.json", + "sha256": "sha256:bytes:d056004421a13aa28a5f5f67ef52e3647ab07573df5c8cf8d9846aeea8d9a698", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers", + "creationMethod": "Project-authored Gallery manifest, native provenance or accepted quality review", + "sourceUrl": null, + "sourceRevision": null, + "sourceLicense": "Apache-2.0 project-authored metadata", + "modelTerms": [], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [], + "assetLicense": "Apache-2.0", + "reviewedBy": "SOURAV DAS", + "reviewedAt": "2026-11-10", + "reviewClass": "per-file-maintainer-accepted-native-gallery-registration", + "provenanceTemplateId": "qwen_logo_texture", + "humanApprovalPacketSHA256": "95893cb17e10b15ae6b23d8b31b57b0e14b9af96f822d75edbc6b68971afb11d" + }, + { + "path": "template-gallery/reviews/qwen_low_vram_poster_layout.quality-review.json", + "sha256": "sha256:bytes:c75a68e299dcf548661338cd1aa6f8c4d0bcc9dc3d3d7769f5717a8d09e4a8c3", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers", + "creationMethod": "MoDiff-authored technical provenance, Gallery manifest or quality review for the explicitly approved native Qwen cinema image", "sourceUrl": null, "sourceRevision": null, "sourceLicense": "Apache-2.0 project-authored metadata; generated-media terms remain in their exact per-file record", @@ -17659,17 +19390,17 @@ "assetLicense": "Apache-2.0", "reviewedBy": "SOURAV DAS", "reviewedAt": "2026-11-10", - "reviewClass": "per-file-human-approved-qwen-angle-native-image-registration", - "provenanceTemplateId": "qwen_character_angles", - "humanApprovalPacketSHA256": "9ca0bb197dbad8a2a27b25cef64aff67875aa6ea6f69fcb3bff581aae35b43d5" + "reviewClass": "per-file-human-approved-qwen-native-image-registration", + "provenanceTemplateId": "qwen_low_vram_poster_layout", + "humanApprovalPacketSHA256": "13cb57389a33fb689324c40827376b3ddfe0ade1dd033ffc8a0c51e749e44487" }, { - "path": "template-gallery/reviews/qwen_character_angles.reviewed-provenance.json", - "sha256": "sha256:bytes:a4d880bcad84c21fe3787001fceb2f9b2f4042fe83e1e2c6733d0f578a586c66", + "path": "template-gallery/reviews/qwen_low_vram_poster_layout.reviewed-provenance.json", + "sha256": "sha256:bytes:16aa46e5009c7b4c05ea3dc5325e63b039c3e2a826b11a2845882c589510f194", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers", - "creationMethod": "MoDiff-authored technical provenance, Gallery manifest or quality review for the explicitly approved native Linux Qwen character angle sheet", + "creationMethod": "MoDiff-authored technical provenance, Gallery manifest or quality review for the explicitly approved native Qwen cinema image", "sourceUrl": null, "sourceRevision": null, "sourceLicense": "Apache-2.0 project-authored metadata; generated-media terms remain in their exact per-file record", @@ -17681,121 +19412,103 @@ "assetLicense": "Apache-2.0", "reviewedBy": "SOURAV DAS", "reviewedAt": "2026-11-10", - "reviewClass": "per-file-human-approved-qwen-angle-native-image-registration", - "provenanceTemplateId": "qwen_character_angles", - "humanApprovalPacketSHA256": "9ca0bb197dbad8a2a27b25cef64aff67875aa6ea6f69fcb3bff581aae35b43d5" + "reviewClass": "per-file-human-approved-qwen-native-image-registration", + "provenanceTemplateId": "qwen_low_vram_poster_layout", + "humanApprovalPacketSHA256": "13cb57389a33fb689324c40827376b3ddfe0ade1dd033ffc8a0c51e749e44487" }, { - "path": "template-gallery/reviews/qwen_cobalt_on_charcoal_slate.original-provenance.json", - "sha256": "sha256:bytes:e792e4d45eff40be63575b5d1b983d59aabdecf004890c98e828f6b58a1d549b", + "path": "template-gallery/reviews/qwen_low_vram_product_concept.quality-review.json", + "sha256": "sha256:bytes:c1bdc89bee06dad85965f564b4bb5c7657859808d333dfce4e741b344dba2ea2", "publishDecision": "approved", "holdReason": null, - "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", - "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/Qwen/Qwen-Image-Edit/tree/ac7f9318f633fc4b5778c59367c8128225f1e3de", - "sourceRevision": "Qwen/Qwen-Image-Edit@ac7f9318f633fc4b5778c59367c8128225f1e3de", - "sourceLicense": "MoDiff-authored Gallery metadata", - "modelTerms": [ - "Publisher model terms at https://huggingface.co/Qwen/Qwen-Image-Edit/tree/ac7f9318f633fc4b5778c59367c8128225f1e3de" - ], + "creatorOrRightsholder": "MoDiff project maintainers", + "creationMethod": "MoDiff-authored technical provenance, Gallery manifest or quality review for the explicitly approved native Qwen stationery and product concept images", + "sourceUrl": null, + "sourceRevision": null, + "sourceLicense": "Apache-2.0 project-authored metadata; generated-media terms remain in their exact per-file record", + "modelTerms": [], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], - "requiredAttribution": [ - "Qwen/Qwen-Image-Edit@ac7f9318f633fc4b5778c59367c8128225f1e3de https://huggingface.co/Qwen/Qwen-Image-Edit/tree/ac7f9318f633fc4b5778c59367c8128225f1e3de" - ], + "requiredAttribution": [], "assetLicense": "Apache-2.0", - "reviewedBy": "MoDiff workspace maintainer", - "reviewedAt": "2026-11-25", - "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "60b01498a2df5f4e4622cdc2f9a43c83d187820780d2425a19718c13707db501", - "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", - "provenanceTemplateId": "qwen_cobalt_on_charcoal_slate" + "reviewedBy": "SOURAV DAS", + "reviewedAt": "2026-11-10", + "reviewClass": "per-file-human-approved-qwen-native-image-registration", + "provenanceTemplateId": "qwen_low_vram_product_concept", + "humanApprovalPacketSHA256": "3193ab9ed5834bddfafc5c6922bd0eaa60e27e5963ca52c740af7540c2847834" }, { - "path": "template-gallery/reviews/qwen_cobalt_on_charcoal_slate.original-review.json", - "sha256": "sha256:bytes:d2caf52b07dff116307a43afe1f087fe17cb98f2daa8549ec5e5c2331e0fac2f", + "path": "template-gallery/reviews/qwen_low_vram_product_concept.reviewed-provenance.json", + "sha256": "sha256:bytes:c9ff22165ab722da9056022e703f4ccdd45aa76ef6583170f0662d262a5e39a5", "publishDecision": "approved", "holdReason": null, - "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", - "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/Qwen/Qwen-Image-Edit/tree/ac7f9318f633fc4b5778c59367c8128225f1e3de", - "sourceRevision": "Qwen/Qwen-Image-Edit@ac7f9318f633fc4b5778c59367c8128225f1e3de", - "sourceLicense": "MoDiff-authored Gallery metadata", - "modelTerms": [ - "Publisher model terms at https://huggingface.co/Qwen/Qwen-Image-Edit/tree/ac7f9318f633fc4b5778c59367c8128225f1e3de" - ], + "creatorOrRightsholder": "MoDiff project maintainers", + "creationMethod": "MoDiff-authored technical provenance, Gallery manifest or quality review for the explicitly approved native Qwen stationery and product concept images", + "sourceUrl": null, + "sourceRevision": null, + "sourceLicense": "Apache-2.0 project-authored metadata; generated-media terms remain in their exact per-file record", + "modelTerms": [], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], - "requiredAttribution": [ - "Qwen/Qwen-Image-Edit@ac7f9318f633fc4b5778c59367c8128225f1e3de https://huggingface.co/Qwen/Qwen-Image-Edit/tree/ac7f9318f633fc4b5778c59367c8128225f1e3de" - ], + "requiredAttribution": [], "assetLicense": "Apache-2.0", - "reviewedBy": "MoDiff workspace maintainer", - "reviewedAt": "2026-11-25", - "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "60b01498a2df5f4e4622cdc2f9a43c83d187820780d2425a19718c13707db501", - "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", - "provenanceTemplateId": "qwen_cobalt_on_charcoal_slate" + "reviewedBy": "SOURAV DAS", + "reviewedAt": "2026-11-10", + "reviewClass": "per-file-human-approved-qwen-native-image-registration", + "humanApprovalPacketSHA256": "3193ab9ed5834bddfafc5c6922bd0eaa60e27e5963ca52c740af7540c2847834", + "humanApprovalScope": "The maintainer explicitly approved the proposed 4/5 scores, known limits, exact retained Klein two-reference derivative output, its redacted technical/quality metadata, and permission to make and redistribute this derivative under Apache-2.0. Existing source images and their mixed license records remain unchanged; no other assets or held cases are newly approved.", + "provenanceTemplateId": "qwen_low_vram_product_concept" }, { - "path": "template-gallery/reviews/qwen_cobalt_on_charcoal_slate.quality-review.json", - "sha256": "sha256:bytes:492e8a71b24369a4f96ae8e7781fe6926274d5871066c2ae371165026bb585fc", + "path": "template-gallery/reviews/qwen_low_vram_text_rendering.quality-review.json", + "sha256": "sha256:bytes:64d0c05cdb2830d4a533256b6ed78afcbb2b6c8398b92b27087f8056862458a2", "publishDecision": "approved", "holdReason": null, - "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", - "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/Qwen/Qwen-Image-Edit/tree/ac7f9318f633fc4b5778c59367c8128225f1e3de", - "sourceRevision": "Qwen/Qwen-Image-Edit@ac7f9318f633fc4b5778c59367c8128225f1e3de", - "sourceLicense": "MoDiff-authored Gallery metadata", - "modelTerms": [ - "Publisher model terms at https://huggingface.co/Qwen/Qwen-Image-Edit/tree/ac7f9318f633fc4b5778c59367c8128225f1e3de" - ], + "creatorOrRightsholder": "MoDiff project maintainers", + "creationMethod": "MoDiff-authored technical provenance, Gallery manifest or quality review for the explicitly approved native Qwen stationery and product concept images", + "sourceUrl": null, + "sourceRevision": null, + "sourceLicense": "Apache-2.0 project-authored metadata; generated-media terms remain in their exact per-file record", + "modelTerms": [], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], - "requiredAttribution": [ - "Qwen/Qwen-Image-Edit@ac7f9318f633fc4b5778c59367c8128225f1e3de https://huggingface.co/Qwen/Qwen-Image-Edit/tree/ac7f9318f633fc4b5778c59367c8128225f1e3de" - ], + "requiredAttribution": [], "assetLicense": "Apache-2.0", - "reviewedBy": "MoDiff workspace maintainer", - "reviewedAt": "2026-11-25", - "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "60b01498a2df5f4e4622cdc2f9a43c83d187820780d2425a19718c13707db501", - "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", - "provenanceTemplateId": "qwen_cobalt_on_charcoal_slate" + "reviewedBy": "SOURAV DAS", + "reviewedAt": "2026-11-10", + "reviewClass": "per-file-human-approved-qwen-native-image-registration", + "provenanceTemplateId": "qwen_low_vram_text_rendering", + "humanApprovalPacketSHA256": "3193ab9ed5834bddfafc5c6922bd0eaa60e27e5963ca52c740af7540c2847834" }, { - "path": "template-gallery/reviews/qwen_cobalt_on_charcoal_slate.retained-template-provenance.json", - "sha256": "sha256:bytes:416a58ebfb2db64e9d1e75995cd8b6e8151b60a60600c9bfe33a472b2c31d8bb", + "path": "template-gallery/reviews/qwen_low_vram_text_rendering.reviewed-provenance.json", + "sha256": "sha256:bytes:d5e56c96dcc0d1a13aebd648ea2919c23cf26a55083b07c4cd3075fd5eaaa58d", "publishDecision": "approved", "holdReason": null, - "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", - "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/Qwen/Qwen-Image-Edit/tree/ac7f9318f633fc4b5778c59367c8128225f1e3de", - "sourceRevision": "Qwen/Qwen-Image-Edit@ac7f9318f633fc4b5778c59367c8128225f1e3de", - "sourceLicense": "MoDiff-authored Gallery metadata", - "modelTerms": [ - "Publisher model terms at https://huggingface.co/Qwen/Qwen-Image-Edit/tree/ac7f9318f633fc4b5778c59367c8128225f1e3de" - ], + "creatorOrRightsholder": "MoDiff project maintainers", + "creationMethod": "MoDiff-authored technical provenance, Gallery manifest or quality review for the explicitly approved native Qwen stationery and product concept images", + "sourceUrl": null, + "sourceRevision": null, + "sourceLicense": "Apache-2.0 project-authored metadata; generated-media terms remain in their exact per-file record", + "modelTerms": [], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], - "requiredAttribution": [ - "Qwen/Qwen-Image-Edit@ac7f9318f633fc4b5778c59367c8128225f1e3de https://huggingface.co/Qwen/Qwen-Image-Edit/tree/ac7f9318f633fc4b5778c59367c8128225f1e3de" - ], + "requiredAttribution": [], "assetLicense": "Apache-2.0", - "reviewedBy": "MoDiff workspace maintainer", - "reviewedAt": "2026-11-25", - "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "60b01498a2df5f4e4622cdc2f9a43c83d187820780d2425a19718c13707db501", - "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", - "provenanceTemplateId": "qwen_cobalt_on_charcoal_slate" + "reviewedBy": "SOURAV DAS", + "reviewedAt": "2026-11-10", + "reviewClass": "per-file-human-approved-qwen-native-image-registration", + "humanApprovalPacketSHA256": "3193ab9ed5834bddfafc5c6922bd0eaa60e27e5963ca52c740af7540c2847834", + "humanApprovalScope": "The maintainer explicitly approved the proposed 4/5 scores, known limits, exact retained Klein two-reference derivative output, its redacted technical/quality metadata, and permission to make and redistribute this derivative under Apache-2.0. Existing source images and their mixed license records remain unchanged; no other assets or held cases are newly approved.", + "provenanceTemplateId": "qwen_low_vram_text_rendering" }, { - "path": "template-gallery/reviews/qwen_control_image_layout.quality-review.json", - "sha256": "sha256:bytes:96b21e77ef524c853732f9ee920cb0cc6306fae984a78c798aab7cc1314b1c4b", + "path": "template-gallery/reviews/qwen_multi_reference_product.quality-review.json", + "sha256": "sha256:bytes:f541e013bf476dc05c7bf0815db9fd100925c3ed5e4303e275998940c6d38d31", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers", @@ -17812,12 +19525,12 @@ "reviewedBy": "SOURAV DAS", "reviewedAt": "2026-11-10", "reviewClass": "per-file-maintainer-accepted-native-gallery-registration", - "provenanceTemplateId": "qwen_control_image_layout", - "humanApprovalPacketSHA256": "73ddf9ea7fc27eccc6b93817809421a008ce0fd2fb3080ffbdc5831a09205304" + "provenanceTemplateId": "qwen_multi_reference_product", + "humanApprovalPacketSHA256": "95893cb17e10b15ae6b23d8b31b57b0e14b9af96f822d75edbc6b68971afb11d" }, { - "path": "template-gallery/reviews/qwen_control_image_layout.reviewed-provenance.json", - "sha256": "sha256:bytes:63f6695ce2fd38c8014d2de5216bd4a681c207496d5eaad9ec3906a545ca2820", + "path": "template-gallery/reviews/qwen_multi_reference_product.reviewed-provenance.json", + "sha256": "sha256:bytes:e3855abb4ed1a82b068269f8a1ce817cb327d9f05abe65b7a22ff4fb87dbf597", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers", @@ -17834,121 +19547,100 @@ "reviewedBy": "SOURAV DAS", "reviewedAt": "2026-11-10", "reviewClass": "per-file-maintainer-accepted-native-gallery-registration", - "humanApprovalPacketSHA256": "73ddf9ea7fc27eccc6b93817809421a008ce0fd2fb3080ffbdc5831a09205304", - "humanApprovalScope": "The maintainer explicitly approved the proposed 4/5 scores, known limits, exact retained Klein two-reference derivative output, its redacted technical/quality metadata, and permission to make and redistribute this derivative under Apache-2.0. Existing source images and their mixed license records remain unchanged; no other assets or held cases are newly approved.", - "provenanceTemplateId": "qwen_control_image_layout" + "provenanceTemplateId": "qwen_multi_reference_product", + "humanApprovalPacketSHA256": "95893cb17e10b15ae6b23d8b31b57b0e14b9af96f822d75edbc6b68971afb11d" }, { - "path": "template-gallery/reviews/qwen_control_winter_cabin_blue_hour.original-provenance.json", - "sha256": "sha256:bytes:a58317e01fd2bffeb6a261279a595539d058304a8c5965c89e43ef6680273fc4", + "path": "template-gallery/reviews/qwen_outpaint_aspect_template.quality-review.json", + "sha256": "sha256:bytes:6fa2bc63b9e95cd36614b65c3856ef017b6fd76ed35104ef727e053336b6dee9", "publishDecision": "approved", "holdReason": null, - "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", - "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/Qwen/Qwen-Image-2512/tree/25468b98e3276ca6700de15c6628e51b7de54a26", - "sourceRevision": "Qwen/Qwen-Image-2512@25468b98e3276ca6700de15c6628e51b7de54a26", - "sourceLicense": "MoDiff-authored Gallery metadata", - "modelTerms": [ - "Publisher model terms at https://huggingface.co/Qwen/Qwen-Image-2512/tree/25468b98e3276ca6700de15c6628e51b7de54a26" - ], + "creatorOrRightsholder": "MoDiff project maintainers", + "creationMethod": "MoDiff-authored Gallery manifest, reviewed provenance or quality review for the accepted morning batch", + "sourceUrl": null, + "sourceRevision": null, + "sourceLicense": "Apache-2.0 project-authored metadata; generated-media terms remain in their exact per-file record", + "modelTerms": [], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], - "requiredAttribution": [ - "Qwen/Qwen-Image-2512@25468b98e3276ca6700de15c6628e51b7de54a26 https://huggingface.co/Qwen/Qwen-Image-2512/tree/25468b98e3276ca6700de15c6628e51b7de54a26" - ], + "requiredAttribution": [], "assetLicense": "Apache-2.0", - "reviewedBy": "MoDiff workspace maintainer", - "reviewedAt": "2026-11-25", - "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "3968c7cbe37a94789a9f839d8e83a9e0f102629b797d5f7baacf0304a8d18153", - "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", - "provenanceTemplateId": "qwen_control_winter_cabin_blue_hour" + "reviewedBy": "SOURAV DAS", + "reviewedAt": "2026-11-10", + "reviewClass": "per-file-maintainer-approved-gallery-registration", + "provenanceTemplateId": "qwen_outpaint_aspect_template", + "humanApprovalPacketSHA256": "351d122936dc8df9c3fb6217005641dd2cc2ecddc39cd7cd7fadc2939def70b3" }, { - "path": "template-gallery/reviews/qwen_control_winter_cabin_blue_hour.original-review.json", - "sha256": "sha256:bytes:b01f4a91833a2f141f512cb5caee5eeff76481a829590260f823b500824bab24", + "path": "template-gallery/reviews/qwen_outpaint_aspect_template.reviewed-provenance.json", + "sha256": "sha256:bytes:d0fec0ffe18f3927eef5eac8faa6dc3b7ff8f28b3a79e634bde1a30d886e7390", "publishDecision": "approved", "holdReason": null, - "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", - "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/Qwen/Qwen-Image-2512/tree/25468b98e3276ca6700de15c6628e51b7de54a26", - "sourceRevision": "Qwen/Qwen-Image-2512@25468b98e3276ca6700de15c6628e51b7de54a26", - "sourceLicense": "MoDiff-authored Gallery metadata", - "modelTerms": [ - "Publisher model terms at https://huggingface.co/Qwen/Qwen-Image-2512/tree/25468b98e3276ca6700de15c6628e51b7de54a26" - ], + "creatorOrRightsholder": "MoDiff project maintainers", + "creationMethod": "MoDiff-authored Gallery manifest, reviewed provenance or quality review for the accepted morning batch", + "sourceUrl": null, + "sourceRevision": null, + "sourceLicense": "Apache-2.0 project-authored metadata; generated-media terms remain in their exact per-file record", + "modelTerms": [], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], - "requiredAttribution": [ - "Qwen/Qwen-Image-2512@25468b98e3276ca6700de15c6628e51b7de54a26 https://huggingface.co/Qwen/Qwen-Image-2512/tree/25468b98e3276ca6700de15c6628e51b7de54a26" - ], + "requiredAttribution": [], "assetLicense": "Apache-2.0", - "reviewedBy": "MoDiff workspace maintainer", - "reviewedAt": "2026-11-25", - "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "3968c7cbe37a94789a9f839d8e83a9e0f102629b797d5f7baacf0304a8d18153", - "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", - "provenanceTemplateId": "qwen_control_winter_cabin_blue_hour" + "reviewedBy": "SOURAV DAS", + "reviewedAt": "2026-11-10", + "reviewClass": "per-file-maintainer-approved-gallery-registration", + "provenanceTemplateId": "qwen_outpaint_aspect_template", + "humanApprovalPacketSHA256": "351d122936dc8df9c3fb6217005641dd2cc2ecddc39cd7cd7fadc2939def70b3" }, { - "path": "template-gallery/reviews/qwen_control_winter_cabin_blue_hour.quality-review.json", - "sha256": "sha256:bytes:b83d8bef8d87dbd5e4587904a947f82d9a2353224781b1581dae0684b86eab65", + "path": "template-gallery/reviews/qwen_outpaint_draft.quality-review.json", + "sha256": "sha256:bytes:edef85b30a3c7aeb5e0b9a911ad571a82cc3faa213616813a290a74f32fe2cd5", "publishDecision": "approved", "holdReason": null, - "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", - "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/Qwen/Qwen-Image-2512/tree/25468b98e3276ca6700de15c6628e51b7de54a26", - "sourceRevision": "Qwen/Qwen-Image-2512@25468b98e3276ca6700de15c6628e51b7de54a26", - "sourceLicense": "MoDiff-authored Gallery metadata", - "modelTerms": [ - "Publisher model terms at https://huggingface.co/Qwen/Qwen-Image-2512/tree/25468b98e3276ca6700de15c6628e51b7de54a26" - ], + "creatorOrRightsholder": "MoDiff project maintainers", + "creationMethod": "MoDiff-authored Gallery manifest, reviewed provenance or quality review for the accepted morning batch", + "sourceUrl": null, + "sourceRevision": null, + "sourceLicense": "Apache-2.0 project-authored metadata; generated-media terms remain in their exact per-file record", + "modelTerms": [], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], - "requiredAttribution": [ - "Qwen/Qwen-Image-2512@25468b98e3276ca6700de15c6628e51b7de54a26 https://huggingface.co/Qwen/Qwen-Image-2512/tree/25468b98e3276ca6700de15c6628e51b7de54a26" - ], + "requiredAttribution": [], "assetLicense": "Apache-2.0", - "reviewedBy": "MoDiff workspace maintainer", - "reviewedAt": "2026-11-25", - "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "3968c7cbe37a94789a9f839d8e83a9e0f102629b797d5f7baacf0304a8d18153", - "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", - "provenanceTemplateId": "qwen_control_winter_cabin_blue_hour" + "reviewedBy": "SOURAV DAS", + "reviewedAt": "2026-11-10", + "reviewClass": "per-file-maintainer-approved-gallery-registration", + "provenanceTemplateId": "qwen_outpaint_draft", + "humanApprovalPacketSHA256": "351d122936dc8df9c3fb6217005641dd2cc2ecddc39cd7cd7fadc2939def70b3" }, { - "path": "template-gallery/reviews/qwen_control_winter_cabin_blue_hour.retained-template-provenance.json", - "sha256": "sha256:bytes:6c21a60f83581753a9e54647ce49a82c877f23a30ea2161be13e675e26eeb0db", + "path": "template-gallery/reviews/qwen_outpaint_draft.reviewed-provenance.json", + "sha256": "sha256:bytes:d81e1657ee09184d12a43ddf019c19298b0b4b6ba4f673bf764ac4627a3e1c1b", "publishDecision": "approved", "holdReason": null, - "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", - "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/Qwen/Qwen-Image-2512/tree/25468b98e3276ca6700de15c6628e51b7de54a26", - "sourceRevision": "Qwen/Qwen-Image-2512@25468b98e3276ca6700de15c6628e51b7de54a26", - "sourceLicense": "MoDiff-authored Gallery metadata", - "modelTerms": [ - "Publisher model terms at https://huggingface.co/Qwen/Qwen-Image-2512/tree/25468b98e3276ca6700de15c6628e51b7de54a26" - ], + "creatorOrRightsholder": "MoDiff project maintainers", + "creationMethod": "MoDiff-authored Gallery manifest, reviewed provenance or quality review for the accepted morning batch", + "sourceUrl": null, + "sourceRevision": null, + "sourceLicense": "Apache-2.0 project-authored metadata; generated-media terms remain in their exact per-file record", + "modelTerms": [], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], - "requiredAttribution": [ - "Qwen/Qwen-Image-2512@25468b98e3276ca6700de15c6628e51b7de54a26 https://huggingface.co/Qwen/Qwen-Image-2512/tree/25468b98e3276ca6700de15c6628e51b7de54a26" - ], + "requiredAttribution": [], "assetLicense": "Apache-2.0", - "reviewedBy": "MoDiff workspace maintainer", - "reviewedAt": "2026-11-25", - "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "3968c7cbe37a94789a9f839d8e83a9e0f102629b797d5f7baacf0304a8d18153", - "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", - "provenanceTemplateId": "qwen_control_winter_cabin_blue_hour" + "reviewedBy": "SOURAV DAS", + "reviewedAt": "2026-11-10", + "reviewClass": "per-file-maintainer-approved-gallery-registration", + "provenanceTemplateId": "qwen_outpaint_draft", + "humanApprovalPacketSHA256": "351d122936dc8df9c3fb6217005641dd2cc2ecddc39cd7cd7fadc2939def70b3" }, { - "path": "template-gallery/reviews/qwen_edit_plus_single_image.quality-review.json", - "sha256": "sha256:bytes:bd2066932a1749ee87c340450d232ed2d8f919648ae9e1e64b9ea30f531d73d7", + "path": "template-gallery/reviews/qwen_packaging_dieline.quality-review.json", + "sha256": "sha256:bytes:dbf5e856ee01a0a2f71fcc96af3c759c08f491dc50c7310b3dfc97b37c7d860a", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers", @@ -17965,12 +19657,12 @@ "reviewedBy": "SOURAV DAS", "reviewedAt": "2026-11-10", "reviewClass": "per-file-maintainer-accepted-native-gallery-registration", - "provenanceTemplateId": "qwen_edit_plus_single_image", - "humanApprovalPacketSHA256": "95893cb17e10b15ae6b23d8b31b57b0e14b9af96f822d75edbc6b68971afb11d" + "provenanceTemplateId": "qwen_packaging_dieline", + "humanApprovalPacketSHA256": "73ddf9ea7fc27eccc6b93817809421a008ce0fd2fb3080ffbdc5831a09205304" }, { - "path": "template-gallery/reviews/qwen_edit_plus_single_image.reviewed-provenance.json", - "sha256": "sha256:bytes:4b672fc3ddc522c44a41c7065cefda8c82d2d5be5ab7f01375b19cc93e029fe8", + "path": "template-gallery/reviews/qwen_packaging_dieline.reviewed-provenance.json", + "sha256": "sha256:bytes:0814dfd3c8a87d3701da63ddc4ab1768eccc971192114a79256e643171166262", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers", @@ -17987,13 +19679,57 @@ "reviewedBy": "SOURAV DAS", "reviewedAt": "2026-11-10", "reviewClass": "per-file-maintainer-accepted-native-gallery-registration", - "humanApprovalPacketSHA256": "95893cb17e10b15ae6b23d8b31b57b0e14b9af96f822d75edbc6b68971afb11d", + "humanApprovalPacketSHA256": "73ddf9ea7fc27eccc6b93817809421a008ce0fd2fb3080ffbdc5831a09205304", "humanApprovalScope": "The maintainer explicitly approved the proposed 4/5 scores, known limits, exact retained Klein two-reference derivative output, its redacted technical/quality metadata, and permission to make and redistribute this derivative under Apache-2.0. Existing source images and their mixed license records remain unchanged; no other assets or held cases are newly approved.", - "provenanceTemplateId": "qwen_edit_plus_single_image" + "provenanceTemplateId": "qwen_packaging_dieline" }, { - "path": "template-gallery/reviews/qwen_edit_strength_sweep.quality-review.json", - "sha256": "sha256:bytes:c0632baaea92783a73856fd89295df7ddea9b07712a35311f81fd2c8ca9c0727", + "path": "template-gallery/reviews/qwen_poster_logo_text.quality-review.json", + "sha256": "sha256:bytes:0dda4202476ad47c22a1b0958115c2039436fdff54146a6ffe4293b4acecb4f8", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers", + "creationMethod": "MoDiff-authored technical provenance, Gallery manifest or quality review for the explicitly approved native Qwen museum and product images", + "sourceUrl": null, + "sourceRevision": null, + "sourceLicense": "Apache-2.0 project-authored metadata; generated-media terms remain in their exact per-file record", + "modelTerms": [], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [], + "assetLicense": "Apache-2.0", + "reviewedBy": "SOURAV DAS", + "reviewedAt": "2026-11-09", + "reviewClass": "per-file-human-approved-qwen-native-image-registration", + "provenanceTemplateId": "qwen_poster_logo_text", + "humanApprovalPacketSHA256": "fb90296fc1789e995652389997b3295a3b6d7424f449251539c63546c081e108" + }, + { + "path": "template-gallery/reviews/qwen_poster_logo_text.reviewed-provenance.json", + "sha256": "sha256:bytes:11bb7ad1c39ca2f942ed46683683368bd2ebb328dee3cca78edf21391ac08a34", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers", + "creationMethod": "MoDiff-authored technical provenance, Gallery manifest or quality review for the explicitly approved native Qwen museum and product images", + "sourceUrl": null, + "sourceRevision": null, + "sourceLicense": "Apache-2.0 project-authored metadata; generated-media terms remain in their exact per-file record", + "modelTerms": [], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [], + "assetLicense": "Apache-2.0", + "reviewedBy": "SOURAV DAS", + "reviewedAt": "2026-11-09", + "reviewClass": "per-file-human-approved-qwen-native-image-registration", + "provenanceTemplateId": "qwen_poster_logo_text", + "humanApprovalPacketSHA256": "fb90296fc1789e995652389997b3295a3b6d7424f449251539c63546c081e108" + }, + { + "path": "template-gallery/reviews/qwen_product_ad_composite.quality-review.json", + "sha256": "sha256:bytes:d1fbc94b163a8573d46a2dd47946935ae06ce51ab4f95cd84e64913bd22e377d", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers", @@ -18010,12 +19746,12 @@ "reviewedBy": "SOURAV DAS", "reviewedAt": "2026-11-10", "reviewClass": "per-file-maintainer-accepted-native-gallery-registration", - "provenanceTemplateId": "qwen_edit_strength_sweep", + "provenanceTemplateId": "qwen_product_ad_composite", "humanApprovalPacketSHA256": "95893cb17e10b15ae6b23d8b31b57b0e14b9af96f822d75edbc6b68971afb11d" }, { - "path": "template-gallery/reviews/qwen_edit_strength_sweep.reviewed-provenance.json", - "sha256": "sha256:bytes:021e25f19a4a62f07513e3556ba7865e2ae7631762ead746ef6563e2912b0a4a", + "path": "template-gallery/reviews/qwen_product_ad_composite.reviewed-provenance.json", + "sha256": "sha256:bytes:381e12e3f39be2ae1a7192b918eba815d2029351d68377acb959d31a70eb357b", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers", @@ -18032,19 +19768,19 @@ "reviewedBy": "SOURAV DAS", "reviewedAt": "2026-11-10", "reviewClass": "per-file-maintainer-accepted-native-gallery-registration", - "provenanceTemplateId": "qwen_edit_strength_sweep", + "provenanceTemplateId": "qwen_product_ad_composite", "humanApprovalPacketSHA256": "95893cb17e10b15ae6b23d8b31b57b0e14b9af96f822d75edbc6b68971afb11d" }, { - "path": "template-gallery/reviews/qwen_inpaint_mask_draft.quality-review.json", - "sha256": "sha256:bytes:aacac275d7f3885f227d431f1a37be7dfcd720cee639e1a34851cdce54719154", + "path": "template-gallery/reviews/qwen_product_mockup.quality-review.json", + "sha256": "sha256:bytes:d864e05cd7069e72a254aca6f8519881013d84b954ddc8d67224e1b7bad6d73d", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers", - "creationMethod": "Project-authored Gallery manifest, native provenance or accepted quality review", + "creationMethod": "MoDiff-authored technical provenance, Gallery manifest or quality review for the explicitly approved native Qwen museum and product images", "sourceUrl": null, "sourceRevision": null, - "sourceLicense": "Apache-2.0 project-authored metadata", + "sourceLicense": "Apache-2.0 project-authored metadata; generated-media terms remain in their exact per-file record", "modelTerms": [], "aiGenerated": false, "humanLikenessConsent": "not-applicable", @@ -18052,21 +19788,21 @@ "requiredAttribution": [], "assetLicense": "Apache-2.0", "reviewedBy": "SOURAV DAS", - "reviewedAt": "2026-11-10", - "reviewClass": "per-file-maintainer-accepted-native-gallery-registration", - "provenanceTemplateId": "qwen_inpaint_mask_draft", - "humanApprovalPacketSHA256": "73ddf9ea7fc27eccc6b93817809421a008ce0fd2fb3080ffbdc5831a09205304" + "reviewedAt": "2026-11-09", + "reviewClass": "per-file-human-approved-qwen-native-image-registration", + "provenanceTemplateId": "qwen_product_mockup", + "humanApprovalPacketSHA256": "fb90296fc1789e995652389997b3295a3b6d7424f449251539c63546c081e108" }, { - "path": "template-gallery/reviews/qwen_inpaint_mask_draft.reviewed-provenance.json", - "sha256": "sha256:bytes:fd5214c8523c581b8535d0bd77afc4a8451445aeb449bb079ac150de9c3d5727", + "path": "template-gallery/reviews/qwen_product_mockup.reviewed-provenance.json", + "sha256": "sha256:bytes:dd0ef580bcfbf2beda1f7f571fc3b444a9c97d9f7dfd7e786000a3dc6a552888", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers", - "creationMethod": "Project-authored Gallery manifest, native provenance or accepted quality review", + "creationMethod": "MoDiff-authored technical provenance, Gallery manifest or quality review for the explicitly approved native Qwen museum and product images", "sourceUrl": null, "sourceRevision": null, - "sourceLicense": "Apache-2.0 project-authored metadata", + "sourceLicense": "Apache-2.0 project-authored metadata; generated-media terms remain in their exact per-file record", "modelTerms": [], "aiGenerated": false, "humanLikenessConsent": "not-applicable", @@ -18074,14 +19810,15 @@ "requiredAttribution": [], "assetLicense": "Apache-2.0", "reviewedBy": "SOURAV DAS", - "reviewedAt": "2026-11-10", - "reviewClass": "per-file-maintainer-accepted-native-gallery-registration", - "provenanceTemplateId": "qwen_inpaint_mask_draft", - "humanApprovalPacketSHA256": "73ddf9ea7fc27eccc6b93817809421a008ce0fd2fb3080ffbdc5831a09205304" + "reviewedAt": "2026-11-09", + "reviewClass": "per-file-human-approved-qwen-native-image-registration", + "humanApprovalPacketSHA256": "fb90296fc1789e995652389997b3295a3b6d7424f449251539c63546c081e108", + "humanApprovalScope": "The maintainer explicitly approved the proposed 4/5 scores, known limits, exact retained Klein two-reference derivative output, its redacted technical/quality metadata, and permission to make and redistribute this derivative under Apache-2.0. Existing source images and their mixed license records remain unchanged; no other assets or held cases are newly approved.", + "provenanceTemplateId": "qwen_product_mockup" }, { - "path": "template-gallery/reviews/qwen_inpaint_object_replace.quality-review.json", - "sha256": "sha256:bytes:cdbd7d549bfef1a9513cd8ed5feef6ba7798f380ffe45830cfa588de789c3cdf", + "path": "template-gallery/reviews/qwen_product_relight.quality-review.json", + "sha256": "sha256:bytes:b861d8ce095fd338d8d55d9b332d1010511af533986d66664186feebdc61bafc", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers", @@ -18098,12 +19835,12 @@ "reviewedBy": "SOURAV DAS", "reviewedAt": "2026-11-10", "reviewClass": "per-file-maintainer-accepted-native-gallery-registration", - "provenanceTemplateId": "qwen_inpaint_object_replace", + "provenanceTemplateId": "qwen_product_relight", "humanApprovalPacketSHA256": "95893cb17e10b15ae6b23d8b31b57b0e14b9af96f822d75edbc6b68971afb11d" }, { - "path": "template-gallery/reviews/qwen_inpaint_object_replace.reviewed-provenance.json", - "sha256": "sha256:bytes:9110d6bf939d4c68541767c20ad62684978c590af344a226d76ee02c32b76fef", + "path": "template-gallery/reviews/qwen_product_relight.reviewed-provenance.json", + "sha256": "sha256:bytes:27502d691d21995e461135d22847cb0ae821b03f103eca40cab80c4ad8ce230d", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers", @@ -18120,164 +19857,57 @@ "reviewedBy": "SOURAV DAS", "reviewedAt": "2026-11-10", "reviewClass": "per-file-maintainer-accepted-native-gallery-registration", - "provenanceTemplateId": "qwen_inpaint_object_replace", + "provenanceTemplateId": "qwen_product_relight", "humanApprovalPacketSHA256": "95893cb17e10b15ae6b23d8b31b57b0e14b9af96f822d75edbc6b68971afb11d" }, { - "path": "template-gallery/reviews/qwen_layered_portrait.quality-review.json", - "sha256": "sha256:bytes:2ef67ce5c77e09b88d8a33d6759edbc3ccbfe910bfad17d638dc5ce99794ea7f", + "path": "template-gallery/reviews/qwen_text_rendering.quality-review.json", + "sha256": "sha256:bytes:60a57aeded56870fe11bb3778c6d76e02332d07713b1b544e41ffcbd4a0b1bb6", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers", - "creationMethod": "MoDiff-authored technical, review, input-binding or retained recipe metadata for three maintainer-accepted assets", + "creationMethod": "MoDiff-authored technical provenance, Gallery manifest or quality review for the explicitly approved native Qwen exact-text poster", "sourceUrl": null, "sourceRevision": null, - "sourceLicense": "Apache-2.0 project-authored metadata; generated-media model terms are retained separately", + "sourceLicense": "Apache-2.0 project-authored metadata; generated-media terms remain in their exact per-file record", "modelTerms": [], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [], "assetLicense": "Apache-2.0", - "reviewedBy": "maintainer (current user)", - "reviewedAt": "2026-11-12", - "reviewClass": "per-file-maintainer-accepted-native-three-registration", - "provenanceTemplateId": "qwen_layered_portrait", - "humanApprovalPacketSHA256": "69c6b3d9b0ea2fcca16ee538f6e75b414b7141658b74f10578758e61360f63fd" + "reviewedBy": "SOURAV DAS", + "reviewedAt": "2026-11-09", + "reviewClass": "per-file-human-approved-qwen-exact-text-registration", + "provenanceTemplateId": "qwen_text_rendering", + "humanApprovalPacketSHA256": "a000a897c1a4ae5980d2f50e5e88a2affb992e403dbd6df9d3ebbd5de5db4891" }, { - "path": "template-gallery/reviews/qwen_layered_portrait.reviewed-provenance.json", - "sha256": "sha256:bytes:f1f8f884f1a797e5918e01f9b47d1f93d39cd6a305a7d3ca46c9f9b349d18f01", + "path": "template-gallery/reviews/qwen_text_rendering.reviewed-provenance.json", + "sha256": "sha256:bytes:9611134a5092c7ecc267170fd99485f7c7802881ebfc8b2c9c5ea3d088ed1a9e", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers", - "creationMethod": "MoDiff-authored technical, review, input-binding or retained recipe metadata for three maintainer-accepted assets", + "creationMethod": "MoDiff-authored technical provenance, Gallery manifest or quality review for the explicitly approved native Qwen exact-text poster", "sourceUrl": null, "sourceRevision": null, - "sourceLicense": "Apache-2.0 project-authored metadata; generated-media model terms are retained separately", + "sourceLicense": "Apache-2.0 project-authored metadata; generated-media terms remain in their exact per-file record", "modelTerms": [], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [], "assetLicense": "Apache-2.0", - "reviewedBy": "maintainer (current user)", - "reviewedAt": "2026-11-12", - "reviewClass": "per-file-maintainer-accepted-native-three-registration", - "provenanceTemplateId": "qwen_layered_portrait", - "humanApprovalPacketSHA256": "69c6b3d9b0ea2fcca16ee538f6e75b414b7141658b74f10578758e61360f63fd" - }, - { - "path": "template-gallery/reviews/qwen_layered_sunset_and_peaks.original-provenance.json", - "sha256": "sha256:bytes:9a4c058f2ba7bd3dace465219c32bd818493431063688b00741a9a9c4fb01794", - "publishDecision": "approved", - "holdReason": null, - "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", - "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/Qwen/Qwen-Image-Layered/tree/8f0ca708dfff6ba1dd5f2d85d78f8c108a040bcf", - "sourceRevision": "Qwen/Qwen-Image-Layered@8f0ca708dfff6ba1dd5f2d85d78f8c108a040bcf", - "sourceLicense": "MoDiff-authored Gallery metadata", - "modelTerms": [ - "https://huggingface.co/Qwen/Qwen-Image-Layered/blob/8f0ca708dfff6ba1dd5f2d85d78f8c108a040bcf/README.md" - ], - "aiGenerated": false, - "humanLikenessConsent": "not-applicable", - "marks": [], - "requiredAttribution": [ - "Qwen/Qwen-Image-Layered@8f0ca708dfff6ba1dd5f2d85d78f8c108a040bcf https://huggingface.co/Qwen/Qwen-Image-Layered/tree/8f0ca708dfff6ba1dd5f2d85d78f8c108a040bcf" - ], - "assetLicense": "Apache-2.0", - "reviewedBy": "MoDiff workspace maintainer", - "reviewedAt": "2026-11-25", - "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "b16dfc2b7c1c32272b8f79bc1bffbb60376e63f8cf1ab9d0bdf9aea07cccf5cd", - "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", - "provenanceTemplateId": "qwen_layered_sunset_and_peaks" - }, - { - "path": "template-gallery/reviews/qwen_layered_sunset_and_peaks.original-review.json", - "sha256": "sha256:bytes:faf0adb0a9c40691caf3ef8f96765406b3b5058aa9618cca5431ae83529a1bcb", - "publishDecision": "approved", - "holdReason": null, - "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", - "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/Qwen/Qwen-Image-Layered/tree/8f0ca708dfff6ba1dd5f2d85d78f8c108a040bcf", - "sourceRevision": "Qwen/Qwen-Image-Layered@8f0ca708dfff6ba1dd5f2d85d78f8c108a040bcf", - "sourceLicense": "MoDiff-authored Gallery metadata", - "modelTerms": [ - "https://huggingface.co/Qwen/Qwen-Image-Layered/blob/8f0ca708dfff6ba1dd5f2d85d78f8c108a040bcf/README.md" - ], - "aiGenerated": false, - "humanLikenessConsent": "not-applicable", - "marks": [], - "requiredAttribution": [ - "Qwen/Qwen-Image-Layered@8f0ca708dfff6ba1dd5f2d85d78f8c108a040bcf https://huggingface.co/Qwen/Qwen-Image-Layered/tree/8f0ca708dfff6ba1dd5f2d85d78f8c108a040bcf" - ], - "assetLicense": "Apache-2.0", - "reviewedBy": "MoDiff workspace maintainer", - "reviewedAt": "2026-11-25", - "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "b16dfc2b7c1c32272b8f79bc1bffbb60376e63f8cf1ab9d0bdf9aea07cccf5cd", - "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", - "provenanceTemplateId": "qwen_layered_sunset_and_peaks" - }, - { - "path": "template-gallery/reviews/qwen_layered_sunset_and_peaks.quality-review.json", - "sha256": "sha256:bytes:326553aed7aab67e3eed777d7919e21fe02ff9ab837edd7f39bd7a2abece77f0", - "publishDecision": "approved", - "holdReason": null, - "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", - "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/Qwen/Qwen-Image-Layered/tree/8f0ca708dfff6ba1dd5f2d85d78f8c108a040bcf", - "sourceRevision": "Qwen/Qwen-Image-Layered@8f0ca708dfff6ba1dd5f2d85d78f8c108a040bcf", - "sourceLicense": "MoDiff-authored Gallery metadata", - "modelTerms": [ - "https://huggingface.co/Qwen/Qwen-Image-Layered/blob/8f0ca708dfff6ba1dd5f2d85d78f8c108a040bcf/README.md" - ], - "aiGenerated": false, - "humanLikenessConsent": "not-applicable", - "marks": [], - "requiredAttribution": [ - "Qwen/Qwen-Image-Layered@8f0ca708dfff6ba1dd5f2d85d78f8c108a040bcf https://huggingface.co/Qwen/Qwen-Image-Layered/tree/8f0ca708dfff6ba1dd5f2d85d78f8c108a040bcf" - ], - "assetLicense": "Apache-2.0", - "reviewedBy": "MoDiff workspace maintainer", - "reviewedAt": "2026-11-25", - "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "b16dfc2b7c1c32272b8f79bc1bffbb60376e63f8cf1ab9d0bdf9aea07cccf5cd", - "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", - "provenanceTemplateId": "qwen_layered_sunset_and_peaks" - }, - { - "path": "template-gallery/reviews/qwen_layered_sunset_and_peaks.retained-template-provenance.json", - "sha256": "sha256:bytes:d6aaa0a0d9b84d10864e8a783ac82ac167b487f71d185bacd99cc035f8e22105", - "publishDecision": "approved", - "holdReason": null, - "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", - "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/Qwen/Qwen-Image-Layered/tree/8f0ca708dfff6ba1dd5f2d85d78f8c108a040bcf", - "sourceRevision": "Qwen/Qwen-Image-Layered@8f0ca708dfff6ba1dd5f2d85d78f8c108a040bcf", - "sourceLicense": "MoDiff-authored Gallery metadata", - "modelTerms": [ - "https://huggingface.co/Qwen/Qwen-Image-Layered/blob/8f0ca708dfff6ba1dd5f2d85d78f8c108a040bcf/README.md" - ], - "aiGenerated": false, - "humanLikenessConsent": "not-applicable", - "marks": [], - "requiredAttribution": [ - "Qwen/Qwen-Image-Layered@8f0ca708dfff6ba1dd5f2d85d78f8c108a040bcf https://huggingface.co/Qwen/Qwen-Image-Layered/tree/8f0ca708dfff6ba1dd5f2d85d78f8c108a040bcf" - ], - "assetLicense": "Apache-2.0", - "reviewedBy": "MoDiff workspace maintainer", - "reviewedAt": "2026-11-25", - "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "b16dfc2b7c1c32272b8f79bc1bffbb60376e63f8cf1ab9d0bdf9aea07cccf5cd", - "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", - "provenanceTemplateId": "qwen_layered_sunset_and_peaks" + "reviewedBy": "SOURAV DAS", + "reviewedAt": "2026-11-09", + "reviewClass": "per-file-human-approved-qwen-exact-text-registration", + "humanApprovalPacketSHA256": "a000a897c1a4ae5980d2f50e5e88a2affb992e403dbd6df9d3ebbd5de5db4891", + "humanApprovalScope": "The maintainer explicitly approved the proposed 4/5 scores, known limits, exact retained Klein two-reference derivative output, its redacted technical/quality metadata, and permission to make and redistribute this derivative under Apache-2.0. Existing source images and their mixed license records remain unchanged; no other assets or held cases are newly approved.", + "provenanceTemplateId": "qwen_text_rendering" }, { - "path": "template-gallery/reviews/qwen_logo_texture.quality-review.json", - "sha256": "sha256:bytes:27383d10d65bf5bcf81efb5a197751c3ad29476fd23f72cd8a937dc432e6f555", + "path": "template-gallery/reviews/qwen_tile_extract.quality-review.json", + "sha256": "sha256:bytes:09131391c3324338e90a40f57fd1cada2f08e321ec5904fcfc0d6c9920ee6aed", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers", @@ -18294,12 +19924,12 @@ "reviewedBy": "SOURAV DAS", "reviewedAt": "2026-11-10", "reviewClass": "per-file-maintainer-accepted-native-gallery-registration", - "provenanceTemplateId": "qwen_logo_texture", + "provenanceTemplateId": "qwen_tile_extract", "humanApprovalPacketSHA256": "95893cb17e10b15ae6b23d8b31b57b0e14b9af96f822d75edbc6b68971afb11d" }, { - "path": "template-gallery/reviews/qwen_logo_texture.reviewed-provenance.json", - "sha256": "sha256:bytes:d056004421a13aa28a5f5f67ef52e3647ab07573df5c8cf8d9846aeea8d9a698", + "path": "template-gallery/reviews/qwen_tile_extract.reviewed-provenance.json", + "sha256": "sha256:bytes:3b08851c75268f5dd35a5e5f0f4f1e47ecbe95ecfdccde93f1ba08e74f0fc241", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers", @@ -18316,16 +19946,16 @@ "reviewedBy": "SOURAV DAS", "reviewedAt": "2026-11-10", "reviewClass": "per-file-maintainer-accepted-native-gallery-registration", - "provenanceTemplateId": "qwen_logo_texture", + "provenanceTemplateId": "qwen_tile_extract", "humanApprovalPacketSHA256": "95893cb17e10b15ae6b23d8b31b57b0e14b9af96f822d75edbc6b68971afb11d" }, { - "path": "template-gallery/reviews/qwen_low_vram_poster_layout.quality-review.json", - "sha256": "sha256:bytes:c75a68e299dcf548661338cd1aa6f8c4d0bcc9dc3d3d7769f5717a8d09e4a8c3", + "path": "template-gallery/reviews/qwen_upscale_finish.quality-review.json", + "sha256": "sha256:bytes:6839f40c63e339e656f88b3933285a54e7a902833f1dc585030356d36a172502", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers", - "creationMethod": "MoDiff-authored technical provenance, Gallery manifest or quality review for the explicitly approved native Qwen cinema image", + "creationMethod": "MoDiff-authored technical provenance, Gallery manifest or quality review for the explicitly approved native Qwen Expert final and genuine before-upscale comparison images", "sourceUrl": null, "sourceRevision": null, "sourceLicense": "Apache-2.0 project-authored metadata; generated-media terms remain in their exact per-file record", @@ -18337,17 +19967,17 @@ "assetLicense": "Apache-2.0", "reviewedBy": "SOURAV DAS", "reviewedAt": "2026-11-10", - "reviewClass": "per-file-human-approved-qwen-native-image-registration", - "provenanceTemplateId": "qwen_low_vram_poster_layout", - "humanApprovalPacketSHA256": "13cb57389a33fb689324c40827376b3ddfe0ade1dd033ffc8a0c51e749e44487" + "reviewClass": "per-file-human-approved-qwen-expert-upscale-registration", + "provenanceTemplateId": "qwen_upscale_finish", + "humanApprovalPacketSHA256": "f0167419381c0d2a1a1bcd43d2465a0ad728c294a2d91bbe1c6b090a915c2c98" }, { - "path": "template-gallery/reviews/qwen_low_vram_poster_layout.reviewed-provenance.json", - "sha256": "sha256:bytes:16aa46e5009c7b4c05ea3dc5325e63b039c3e2a826b11a2845882c589510f194", + "path": "template-gallery/reviews/qwen_upscale_finish.reviewed-provenance.json", + "sha256": "sha256:bytes:30c664301de44d2be2f3a0110ce4392de6433a1b5a63e60d31a9c7870ce3b04f", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers", - "creationMethod": "MoDiff-authored technical provenance, Gallery manifest or quality review for the explicitly approved native Qwen cinema image", + "creationMethod": "MoDiff-authored technical provenance, Gallery manifest or quality review for the explicitly approved native Qwen Expert final and genuine before-upscale comparison images", "sourceUrl": null, "sourceRevision": null, "sourceLicense": "Apache-2.0 project-authored metadata; generated-media terms remain in their exact per-file record", @@ -18359,20 +19989,20 @@ "assetLicense": "Apache-2.0", "reviewedBy": "SOURAV DAS", "reviewedAt": "2026-11-10", - "reviewClass": "per-file-human-approved-qwen-native-image-registration", - "provenanceTemplateId": "qwen_low_vram_poster_layout", - "humanApprovalPacketSHA256": "13cb57389a33fb689324c40827376b3ddfe0ade1dd033ffc8a0c51e749e44487" + "reviewClass": "per-file-human-approved-qwen-expert-upscale-registration", + "provenanceTemplateId": "qwen_upscale_finish", + "humanApprovalPacketSHA256": "f0167419381c0d2a1a1bcd43d2465a0ad728c294a2d91bbe1c6b090a915c2c98" }, { - "path": "template-gallery/reviews/qwen_low_vram_product_concept.quality-review.json", - "sha256": "sha256:bytes:c1bdc89bee06dad85965f564b4bb5c7657859808d333dfce4e741b344dba2ea2", + "path": "template-gallery/reviews/reference_fusion.quality-review.json", + "sha256": "sha256:bytes:0042893cc0ba3eb36438c8af0108de25c620cedc8febc83d14b46accb427f73a", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers", - "creationMethod": "MoDiff-authored technical provenance, Gallery manifest or quality review for the explicitly approved native Qwen stationery and product concept images", + "creationMethod": "Project-authored Gallery manifest, native provenance or accepted quality review", "sourceUrl": null, "sourceRevision": null, - "sourceLicense": "Apache-2.0 project-authored metadata; generated-media terms remain in their exact per-file record", + "sourceLicense": "Apache-2.0 project-authored metadata", "modelTerms": [], "aiGenerated": false, "humanLikenessConsent": "not-applicable", @@ -18381,612 +20011,775 @@ "assetLicense": "Apache-2.0", "reviewedBy": "SOURAV DAS", "reviewedAt": "2026-11-10", - "reviewClass": "per-file-human-approved-qwen-native-image-registration", - "provenanceTemplateId": "qwen_low_vram_product_concept", - "humanApprovalPacketSHA256": "3193ab9ed5834bddfafc5c6922bd0eaa60e27e5963ca52c740af7540c2847834" + "reviewClass": "per-file-maintainer-accepted-native-gallery-registration", + "provenanceTemplateId": "reference_fusion", + "humanApprovalPacketSHA256": "95893cb17e10b15ae6b23d8b31b57b0e14b9af96f822d75edbc6b68971afb11d" }, { - "path": "template-gallery/reviews/qwen_low_vram_product_concept.reviewed-provenance.json", - "sha256": "sha256:bytes:c9ff22165ab722da9056022e703f4ccdd45aa76ef6583170f0662d262a5e39a5", + "path": "template-gallery/reviews/reference_fusion.reviewed-provenance.json", + "sha256": "sha256:bytes:e8bb52b4d660c345368dd44a7d9d40edf62b00770a01dc444a5d5e9ec8d8bd87", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers", - "creationMethod": "MoDiff-authored technical provenance, Gallery manifest or quality review for the explicitly approved native Qwen stationery and product concept images", + "creationMethod": "Project-authored Gallery manifest, native provenance or accepted quality review", "sourceUrl": null, "sourceRevision": null, - "sourceLicense": "Apache-2.0 project-authored metadata; generated-media terms remain in their exact per-file record", + "sourceLicense": "Apache-2.0 project-authored metadata", "modelTerms": [], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], - "requiredAttribution": [], + "requiredAttribution": [], + "assetLicense": "Apache-2.0", + "reviewedBy": "SOURAV DAS", + "reviewedAt": "2026-11-10", + "reviewClass": "per-file-maintainer-accepted-native-gallery-registration", + "provenanceTemplateId": "reference_fusion", + "humanApprovalPacketSHA256": "95893cb17e10b15ae6b23d8b31b57b0e14b9af96f822d75edbc6b68971afb11d" + }, + { + "path": "template-gallery/reviews/restoring_the_studio_backdrop.original-provenance.json", + "sha256": "sha256:bytes:a8d0febc08556ad204bef84d5c8d35bfab9bf69fe8d28b21f10ad315f962b897", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14", + "sourceRevision": "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": ["CreativeML Open RAIL-M at the pinned Stable Diffusion v1.5 revision."], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14 https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", + "provenanceTemplateId": "restoring_the_studio_backdrop" + }, + { + "path": "template-gallery/reviews/restoring_the_studio_backdrop.original-review.json", + "sha256": "sha256:bytes:633f93991afc1d361ac19a79c101f868f5954814f09dc349bcb61f967b821cf6", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14", + "sourceRevision": "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": ["CreativeML Open RAIL-M at the pinned Stable Diffusion v1.5 revision."], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14 https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14" + ], "assetLicense": "Apache-2.0", - "reviewedBy": "SOURAV DAS", - "reviewedAt": "2026-11-10", - "reviewClass": "per-file-human-approved-qwen-native-image-registration", - "humanApprovalPacketSHA256": "3193ab9ed5834bddfafc5c6922bd0eaa60e27e5963ca52c740af7540c2847834", - "humanApprovalScope": "The maintainer explicitly approved the proposed 4/5 scores, known limits, exact retained Klein two-reference derivative output, its redacted technical/quality metadata, and permission to make and redistribute this derivative under Apache-2.0. Existing source images and their mixed license records remain unchanged; no other assets or held cases are newly approved.", - "provenanceTemplateId": "qwen_low_vram_product_concept" + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", + "provenanceTemplateId": "restoring_the_studio_backdrop" }, { - "path": "template-gallery/reviews/qwen_low_vram_text_rendering.quality-review.json", - "sha256": "sha256:bytes:64d0c05cdb2830d4a533256b6ed78afcbb2b6c8398b92b27087f8056862458a2", + "path": "template-gallery/reviews/restoring_the_studio_backdrop.quality-review.json", + "sha256": "sha256:bytes:1e0613d7b8b08333cca474aea32b92bd3d6ac680a776e639b93c554a3011b311", "publishDecision": "approved", "holdReason": null, - "creatorOrRightsholder": "MoDiff project maintainers", - "creationMethod": "MoDiff-authored technical provenance, Gallery manifest or quality review for the explicitly approved native Qwen stationery and product concept images", - "sourceUrl": null, - "sourceRevision": null, - "sourceLicense": "Apache-2.0 project-authored metadata; generated-media terms remain in their exact per-file record", - "modelTerms": [], + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14", + "sourceRevision": "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": ["CreativeML Open RAIL-M at the pinned Stable Diffusion v1.5 revision."], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], - "requiredAttribution": [], + "requiredAttribution": [ + "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14 https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14" + ], "assetLicense": "Apache-2.0", - "reviewedBy": "SOURAV DAS", - "reviewedAt": "2026-11-10", - "reviewClass": "per-file-human-approved-qwen-native-image-registration", - "provenanceTemplateId": "qwen_low_vram_text_rendering", - "humanApprovalPacketSHA256": "3193ab9ed5834bddfafc5c6922bd0eaa60e27e5963ca52c740af7540c2847834" + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", + "provenanceTemplateId": "restoring_the_studio_backdrop" }, { - "path": "template-gallery/reviews/qwen_low_vram_text_rendering.reviewed-provenance.json", - "sha256": "sha256:bytes:d5e56c96dcc0d1a13aebd648ea2919c23cf26a55083b07c4cd3075fd5eaaa58d", + "path": "template-gallery/reviews/restoring_the_studio_backdrop.retained-template-provenance.json", + "sha256": "sha256:bytes:6a6538a8278e1f94de68eb9b2928131809e5b3163a7157ff7db17d053635fa46", "publishDecision": "approved", "holdReason": null, - "creatorOrRightsholder": "MoDiff project maintainers", - "creationMethod": "MoDiff-authored technical provenance, Gallery manifest or quality review for the explicitly approved native Qwen stationery and product concept images", - "sourceUrl": null, - "sourceRevision": null, - "sourceLicense": "Apache-2.0 project-authored metadata; generated-media terms remain in their exact per-file record", - "modelTerms": [], + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14", + "sourceRevision": "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": ["CreativeML Open RAIL-M at the pinned Stable Diffusion v1.5 revision."], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], - "requiredAttribution": [], + "requiredAttribution": [ + "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14 https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14" + ], "assetLicense": "Apache-2.0", - "reviewedBy": "SOURAV DAS", - "reviewedAt": "2026-11-10", - "reviewClass": "per-file-human-approved-qwen-native-image-registration", - "humanApprovalPacketSHA256": "3193ab9ed5834bddfafc5c6922bd0eaa60e27e5963ca52c740af7540c2847834", - "humanApprovalScope": "The maintainer explicitly approved the proposed 4/5 scores, known limits, exact retained Klein two-reference derivative output, its redacted technical/quality metadata, and permission to make and redistribute this derivative under Apache-2.0. Existing source images and their mixed license records remain unchanged; no other assets or held cases are newly approved.", - "provenanceTemplateId": "qwen_low_vram_text_rendering" + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", + "provenanceTemplateId": "restoring_the_studio_backdrop" }, { - "path": "template-gallery/reviews/qwen_multi_reference_product.quality-review.json", - "sha256": "sha256:bytes:f541e013bf476dc05c7bf0815db9fd100925c3ed5e4303e275998940c6d38d31", + "path": "template-gallery/reviews/salt_marsh_from_above.original-provenance.json", + "sha256": "sha256:bytes:a126541afded7807e2f7c48f7695571cd00edb4c237e257829dea8025548fdc4", "publishDecision": "approved", "holdReason": null, - "creatorOrRightsholder": "MoDiff project maintainers", - "creationMethod": "Project-authored Gallery manifest, native provenance or accepted quality review", - "sourceUrl": null, - "sourceRevision": null, - "sourceLicense": "Apache-2.0 project-authored metadata", - "modelTerms": [], + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/fal/AuraFlow-v0.3/tree/2cd8588f04c886002be4571697d84654a50e3af3", + "sourceRevision": "fal/AuraFlow-v0.3@2cd8588f04c886002be4571697d84654a50e3af3", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "apache-2.0. https://huggingface.co/fal/AuraFlow-v0.3/tree/2cd8588f04c886002be4571697d84654a50e3af3" + ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], - "requiredAttribution": [], + "requiredAttribution": [ + "fal/AuraFlow-v0.3@2cd8588f04c886002be4571697d84654a50e3af3 https://huggingface.co/fal/AuraFlow-v0.3/tree/2cd8588f04c886002be4571697d84654a50e3af3" + ], "assetLicense": "Apache-2.0", - "reviewedBy": "SOURAV DAS", - "reviewedAt": "2026-11-10", - "reviewClass": "per-file-maintainer-accepted-native-gallery-registration", - "provenanceTemplateId": "qwen_multi_reference_product", - "humanApprovalPacketSHA256": "95893cb17e10b15ae6b23d8b31b57b0e14b9af96f822d75edbc6b68971afb11d" + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", + "provenanceTemplateId": "salt_marsh_from_above" }, { - "path": "template-gallery/reviews/qwen_multi_reference_product.reviewed-provenance.json", - "sha256": "sha256:bytes:e3855abb4ed1a82b068269f8a1ce817cb327d9f05abe65b7a22ff4fb87dbf597", + "path": "template-gallery/reviews/salt_marsh_from_above.original-review.json", + "sha256": "sha256:bytes:890b1c2f2a76d781d9c1062a1e4ec1e637a5d7de161e8ec21fb4860bfba68365", "publishDecision": "approved", "holdReason": null, - "creatorOrRightsholder": "MoDiff project maintainers", - "creationMethod": "Project-authored Gallery manifest, native provenance or accepted quality review", - "sourceUrl": null, - "sourceRevision": null, - "sourceLicense": "Apache-2.0 project-authored metadata", - "modelTerms": [], + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/fal/AuraFlow-v0.3/tree/2cd8588f04c886002be4571697d84654a50e3af3", + "sourceRevision": "fal/AuraFlow-v0.3@2cd8588f04c886002be4571697d84654a50e3af3", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "apache-2.0. https://huggingface.co/fal/AuraFlow-v0.3/tree/2cd8588f04c886002be4571697d84654a50e3af3" + ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], - "requiredAttribution": [], + "requiredAttribution": [ + "fal/AuraFlow-v0.3@2cd8588f04c886002be4571697d84654a50e3af3 https://huggingface.co/fal/AuraFlow-v0.3/tree/2cd8588f04c886002be4571697d84654a50e3af3" + ], "assetLicense": "Apache-2.0", - "reviewedBy": "SOURAV DAS", - "reviewedAt": "2026-11-10", - "reviewClass": "per-file-maintainer-accepted-native-gallery-registration", - "provenanceTemplateId": "qwen_multi_reference_product", - "humanApprovalPacketSHA256": "95893cb17e10b15ae6b23d8b31b57b0e14b9af96f822d75edbc6b68971afb11d" + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", + "provenanceTemplateId": "salt_marsh_from_above" }, { - "path": "template-gallery/reviews/qwen_outpaint_aspect_template.quality-review.json", - "sha256": "sha256:bytes:6fa2bc63b9e95cd36614b65c3856ef017b6fd76ed35104ef727e053336b6dee9", + "path": "template-gallery/reviews/salt_marsh_from_above.quality-review.json", + "sha256": "sha256:bytes:deb996a0c76f064ba87fcbde7750b4297dedd4f470a70246be5ce550f88b52d3", "publishDecision": "approved", "holdReason": null, - "creatorOrRightsholder": "MoDiff project maintainers", - "creationMethod": "MoDiff-authored Gallery manifest, reviewed provenance or quality review for the accepted morning batch", - "sourceUrl": null, - "sourceRevision": null, - "sourceLicense": "Apache-2.0 project-authored metadata; generated-media terms remain in their exact per-file record", - "modelTerms": [], + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/fal/AuraFlow-v0.3/tree/2cd8588f04c886002be4571697d84654a50e3af3", + "sourceRevision": "fal/AuraFlow-v0.3@2cd8588f04c886002be4571697d84654a50e3af3", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "apache-2.0. https://huggingface.co/fal/AuraFlow-v0.3/tree/2cd8588f04c886002be4571697d84654a50e3af3" + ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], - "requiredAttribution": [], + "requiredAttribution": [ + "fal/AuraFlow-v0.3@2cd8588f04c886002be4571697d84654a50e3af3 https://huggingface.co/fal/AuraFlow-v0.3/tree/2cd8588f04c886002be4571697d84654a50e3af3" + ], "assetLicense": "Apache-2.0", - "reviewedBy": "SOURAV DAS", - "reviewedAt": "2026-11-10", - "reviewClass": "per-file-maintainer-approved-gallery-registration", - "provenanceTemplateId": "qwen_outpaint_aspect_template", - "humanApprovalPacketSHA256": "351d122936dc8df9c3fb6217005641dd2cc2ecddc39cd7cd7fadc2939def70b3" + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", + "provenanceTemplateId": "salt_marsh_from_above" }, { - "path": "template-gallery/reviews/qwen_outpaint_aspect_template.reviewed-provenance.json", - "sha256": "sha256:bytes:d0fec0ffe18f3927eef5eac8faa6dc3b7ff8f28b3a79e634bde1a30d886e7390", + "path": "template-gallery/reviews/salt_marsh_from_above.retained-template-provenance.json", + "sha256": "sha256:bytes:9a904012bac7d429111212a1e17e1b5b08a754a6354230233a6c81b8f1a2cfe2", "publishDecision": "approved", "holdReason": null, - "creatorOrRightsholder": "MoDiff project maintainers", - "creationMethod": "MoDiff-authored Gallery manifest, reviewed provenance or quality review for the accepted morning batch", - "sourceUrl": null, - "sourceRevision": null, - "sourceLicense": "Apache-2.0 project-authored metadata; generated-media terms remain in their exact per-file record", - "modelTerms": [], + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/fal/AuraFlow-v0.3/tree/2cd8588f04c886002be4571697d84654a50e3af3", + "sourceRevision": "fal/AuraFlow-v0.3@2cd8588f04c886002be4571697d84654a50e3af3", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "apache-2.0. https://huggingface.co/fal/AuraFlow-v0.3/tree/2cd8588f04c886002be4571697d84654a50e3af3" + ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], - "requiredAttribution": [], + "requiredAttribution": [ + "fal/AuraFlow-v0.3@2cd8588f04c886002be4571697d84654a50e3af3 https://huggingface.co/fal/AuraFlow-v0.3/tree/2cd8588f04c886002be4571697d84654a50e3af3" + ], "assetLicense": "Apache-2.0", - "reviewedBy": "SOURAV DAS", - "reviewedAt": "2026-11-10", - "reviewClass": "per-file-maintainer-approved-gallery-registration", - "provenanceTemplateId": "qwen_outpaint_aspect_template", - "humanApprovalPacketSHA256": "351d122936dc8df9c3fb6217005641dd2cc2ecddc39cd7cd7fadc2939def70b3" + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", + "provenanceTemplateId": "salt_marsh_from_above" }, { - "path": "template-gallery/reviews/qwen_outpaint_draft.quality-review.json", - "sha256": "sha256:bytes:edef85b30a3c7aeb5e0b9a911ad571a82cc3faa213616813a290a74f32fe2cd5", + "path": "template-gallery/reviews/sana_i2v_blue_hour_above_rice_terraces.original-provenance.json", + "sha256": "sha256:bytes:7bc9085e6b972b876e8e26e109ce89e2771e2b8b6dab904313f2806be2afc93b", "publishDecision": "approved", "holdReason": null, - "creatorOrRightsholder": "MoDiff project maintainers", - "creationMethod": "MoDiff-authored Gallery manifest, reviewed provenance or quality review for the accepted morning batch", - "sourceUrl": null, - "sourceRevision": null, - "sourceLicense": "Apache-2.0 project-authored metadata; generated-media terms remain in their exact per-file record", - "modelTerms": [], + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/Efficient-Large-Model/SANA-Video_2B_480p_diffusers/tree/db5f398b13ca086d09a50ce156c20527773841b1", + "sourceRevision": "Efficient-Large-Model/SANA-Video_2B_480p_diffusers@db5f398b13ca086d09a50ce156c20527773841b1", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "Publisher model terms at https://huggingface.co/Efficient-Large-Model/SANA-Video_2B_480p_diffusers/tree/db5f398b13ca086d09a50ce156c20527773841b1" + ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], - "requiredAttribution": [], + "requiredAttribution": [ + "Efficient-Large-Model/SANA-Video_2B_480p_diffusers@db5f398b13ca086d09a50ce156c20527773841b1 https://huggingface.co/Efficient-Large-Model/SANA-Video_2B_480p_diffusers/tree/db5f398b13ca086d09a50ce156c20527773841b1" + ], "assetLicense": "Apache-2.0", - "reviewedBy": "SOURAV DAS", - "reviewedAt": "2026-11-10", - "reviewClass": "per-file-maintainer-approved-gallery-registration", - "provenanceTemplateId": "qwen_outpaint_draft", - "humanApprovalPacketSHA256": "351d122936dc8df9c3fb6217005641dd2cc2ecddc39cd7cd7fadc2939def70b3" + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "de8db2f2fa14b59514ea146654439aea279cc6fad5be1dca8cf17e057abe9945", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "sana_i2v_blue_hour_above_rice_terraces" }, { - "path": "template-gallery/reviews/qwen_outpaint_draft.reviewed-provenance.json", - "sha256": "sha256:bytes:d81e1657ee09184d12a43ddf019c19298b0b4b6ba4f673bf764ac4627a3e1c1b", + "path": "template-gallery/reviews/sana_i2v_blue_hour_above_rice_terraces.original-review.json", + "sha256": "sha256:bytes:e04a83a228783f9b7b8d9ad023dfc8af480e3b61254957280aea6b5513caaadf", "publishDecision": "approved", "holdReason": null, - "creatorOrRightsholder": "MoDiff project maintainers", - "creationMethod": "MoDiff-authored Gallery manifest, reviewed provenance or quality review for the accepted morning batch", - "sourceUrl": null, - "sourceRevision": null, - "sourceLicense": "Apache-2.0 project-authored metadata; generated-media terms remain in their exact per-file record", - "modelTerms": [], + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/Efficient-Large-Model/SANA-Video_2B_480p_diffusers/tree/db5f398b13ca086d09a50ce156c20527773841b1", + "sourceRevision": "Efficient-Large-Model/SANA-Video_2B_480p_diffusers@db5f398b13ca086d09a50ce156c20527773841b1", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "Publisher model terms at https://huggingface.co/Efficient-Large-Model/SANA-Video_2B_480p_diffusers/tree/db5f398b13ca086d09a50ce156c20527773841b1" + ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], - "requiredAttribution": [], + "requiredAttribution": [ + "Efficient-Large-Model/SANA-Video_2B_480p_diffusers@db5f398b13ca086d09a50ce156c20527773841b1 https://huggingface.co/Efficient-Large-Model/SANA-Video_2B_480p_diffusers/tree/db5f398b13ca086d09a50ce156c20527773841b1" + ], "assetLicense": "Apache-2.0", - "reviewedBy": "SOURAV DAS", - "reviewedAt": "2026-11-10", - "reviewClass": "per-file-maintainer-approved-gallery-registration", - "provenanceTemplateId": "qwen_outpaint_draft", - "humanApprovalPacketSHA256": "351d122936dc8df9c3fb6217005641dd2cc2ecddc39cd7cd7fadc2939def70b3" + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "de8db2f2fa14b59514ea146654439aea279cc6fad5be1dca8cf17e057abe9945", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "sana_i2v_blue_hour_above_rice_terraces" }, { - "path": "template-gallery/reviews/qwen_packaging_dieline.quality-review.json", - "sha256": "sha256:bytes:dbf5e856ee01a0a2f71fcc96af3c759c08f491dc50c7310b3dfc97b37c7d860a", + "path": "template-gallery/reviews/sana_i2v_blue_hour_above_rice_terraces.quality-review.json", + "sha256": "sha256:bytes:b588f00fbc3c68bfe70f263a8b4c36cceeaa5691590fdfcc22b0b51537e89e1a", "publishDecision": "approved", "holdReason": null, - "creatorOrRightsholder": "MoDiff project maintainers", - "creationMethod": "Project-authored Gallery manifest, native provenance or accepted quality review", - "sourceUrl": null, - "sourceRevision": null, - "sourceLicense": "Apache-2.0 project-authored metadata", - "modelTerms": [], + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/Efficient-Large-Model/SANA-Video_2B_480p_diffusers/tree/db5f398b13ca086d09a50ce156c20527773841b1", + "sourceRevision": "Efficient-Large-Model/SANA-Video_2B_480p_diffusers@db5f398b13ca086d09a50ce156c20527773841b1", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "Publisher model terms at https://huggingface.co/Efficient-Large-Model/SANA-Video_2B_480p_diffusers/tree/db5f398b13ca086d09a50ce156c20527773841b1" + ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], - "requiredAttribution": [], + "requiredAttribution": [ + "Efficient-Large-Model/SANA-Video_2B_480p_diffusers@db5f398b13ca086d09a50ce156c20527773841b1 https://huggingface.co/Efficient-Large-Model/SANA-Video_2B_480p_diffusers/tree/db5f398b13ca086d09a50ce156c20527773841b1" + ], "assetLicense": "Apache-2.0", - "reviewedBy": "SOURAV DAS", - "reviewedAt": "2026-11-10", - "reviewClass": "per-file-maintainer-accepted-native-gallery-registration", - "provenanceTemplateId": "qwen_packaging_dieline", - "humanApprovalPacketSHA256": "73ddf9ea7fc27eccc6b93817809421a008ce0fd2fb3080ffbdc5831a09205304" + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "de8db2f2fa14b59514ea146654439aea279cc6fad5be1dca8cf17e057abe9945", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "sana_i2v_blue_hour_above_rice_terraces" }, { - "path": "template-gallery/reviews/qwen_packaging_dieline.reviewed-provenance.json", - "sha256": "sha256:bytes:0814dfd3c8a87d3701da63ddc4ab1768eccc971192114a79256e643171166262", + "path": "template-gallery/reviews/sana_i2v_blue_hour_above_rice_terraces.retained-template-provenance.json", + "sha256": "sha256:bytes:e27e84a5fcdb01e1c410dfa311e43a13912853b1e20272979f078e04c74d5c6e", "publishDecision": "approved", "holdReason": null, - "creatorOrRightsholder": "MoDiff project maintainers", - "creationMethod": "Project-authored Gallery manifest, native provenance or accepted quality review", - "sourceUrl": null, - "sourceRevision": null, - "sourceLicense": "Apache-2.0 project-authored metadata", - "modelTerms": [], + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/Efficient-Large-Model/SANA-Video_2B_480p_diffusers/tree/db5f398b13ca086d09a50ce156c20527773841b1", + "sourceRevision": "Efficient-Large-Model/SANA-Video_2B_480p_diffusers@db5f398b13ca086d09a50ce156c20527773841b1", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "Publisher model terms at https://huggingface.co/Efficient-Large-Model/SANA-Video_2B_480p_diffusers/tree/db5f398b13ca086d09a50ce156c20527773841b1" + ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], - "requiredAttribution": [], + "requiredAttribution": [ + "Efficient-Large-Model/SANA-Video_2B_480p_diffusers@db5f398b13ca086d09a50ce156c20527773841b1 https://huggingface.co/Efficient-Large-Model/SANA-Video_2B_480p_diffusers/tree/db5f398b13ca086d09a50ce156c20527773841b1" + ], "assetLicense": "Apache-2.0", - "reviewedBy": "SOURAV DAS", - "reviewedAt": "2026-11-10", - "reviewClass": "per-file-maintainer-accepted-native-gallery-registration", - "humanApprovalPacketSHA256": "73ddf9ea7fc27eccc6b93817809421a008ce0fd2fb3080ffbdc5831a09205304", - "humanApprovalScope": "The maintainer explicitly approved the proposed 4/5 scores, known limits, exact retained Klein two-reference derivative output, its redacted technical/quality metadata, and permission to make and redistribute this derivative under Apache-2.0. Existing source images and their mixed license records remain unchanged; no other assets or held cases are newly approved.", - "provenanceTemplateId": "qwen_packaging_dieline" + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "de8db2f2fa14b59514ea146654439aea279cc6fad5be1dca8cf17e057abe9945", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "sana_i2v_blue_hour_above_rice_terraces" }, { - "path": "template-gallery/reviews/qwen_poster_logo_text.quality-review.json", - "sha256": "sha256:bytes:0dda4202476ad47c22a1b0958115c2039436fdff54146a6ffe4293b4acecb4f8", + "path": "template-gallery/reviews/sana_sprint_monochrome_tiger.quality-review.json", + "sha256": "sha256:bytes:daad196fff80a6e8d2543deeb911b5cd94a027a746e8d7cc0a011dc687f8c50e", "publishDecision": "approved", "holdReason": null, - "creatorOrRightsholder": "MoDiff project maintainers", - "creationMethod": "MoDiff-authored technical provenance, Gallery manifest or quality review for the explicitly approved native Qwen museum and product images", + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "humanLikenessConsent": "not-applicable", + "marks": [], + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-20", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "40060ba701188a6d287df07e0852c6497d109885495e6fc85a19e8371ef73906", + "publicationBasis": "Maintainer approved both exact Sana Sprint images and redistribution of the redacted review and recipe records.", + "creationMethod": "Project-authored redacted retained Gallery review, provenance or registration metadata", "sourceUrl": null, "sourceRevision": null, - "sourceLicense": "Apache-2.0 project-authored metadata; generated-media terms remain in their exact per-file record", + "sourceLicense": "MoDiff-authored Gallery metadata", "modelTerms": [], "aiGenerated": false, - "humanLikenessConsent": "not-applicable", - "marks": [], "requiredAttribution": [], "assetLicense": "Apache-2.0", - "reviewedBy": "SOURAV DAS", - "reviewedAt": "2026-11-09", - "reviewClass": "per-file-human-approved-qwen-native-image-registration", - "provenanceTemplateId": "qwen_poster_logo_text", - "humanApprovalPacketSHA256": "fb90296fc1789e995652389997b3295a3b6d7424f449251539c63546c081e108" + "provenanceTemplateId": "sana_sprint_monochrome_tiger" }, { - "path": "template-gallery/reviews/qwen_poster_logo_text.reviewed-provenance.json", - "sha256": "sha256:bytes:11bb7ad1c39ca2f942ed46683683368bd2ebb328dee3cca78edf21391ac08a34", + "path": "template-gallery/reviews/sana_sprint_monochrome_tiger.retained-template-provenance.json", + "sha256": "sha256:bytes:9da7a90fdc337893b768009a2d6c619c730606e2544c335f4c4d02d14137d1a9", "publishDecision": "approved", "holdReason": null, - "creatorOrRightsholder": "MoDiff project maintainers", - "creationMethod": "MoDiff-authored technical provenance, Gallery manifest or quality review for the explicitly approved native Qwen museum and product images", + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "humanLikenessConsent": "not-applicable", + "marks": [], + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-20", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "40060ba701188a6d287df07e0852c6497d109885495e6fc85a19e8371ef73906", + "publicationBasis": "Maintainer approved both exact Sana Sprint images and redistribution of the redacted review and recipe records.", + "creationMethod": "Project-authored redacted retained Gallery review, provenance or registration metadata", "sourceUrl": null, "sourceRevision": null, - "sourceLicense": "Apache-2.0 project-authored metadata; generated-media terms remain in their exact per-file record", + "sourceLicense": "MoDiff-authored Gallery metadata", "modelTerms": [], "aiGenerated": false, - "humanLikenessConsent": "not-applicable", - "marks": [], "requiredAttribution": [], "assetLicense": "Apache-2.0", - "reviewedBy": "SOURAV DAS", - "reviewedAt": "2026-11-09", - "reviewClass": "per-file-human-approved-qwen-native-image-registration", - "provenanceTemplateId": "qwen_poster_logo_text", - "humanApprovalPacketSHA256": "fb90296fc1789e995652389997b3295a3b6d7424f449251539c63546c081e108" + "provenanceTemplateId": "sana_sprint_monochrome_tiger" }, { - "path": "template-gallery/reviews/qwen_product_ad_composite.quality-review.json", - "sha256": "sha256:bytes:d1fbc94b163a8573d46a2dd47946935ae06ce51ab4f95cd84e64913bd22e377d", + "path": "template-gallery/reviews/sana_tidal_pool_on_black_basalt.original-provenance.json", + "sha256": "sha256:bytes:464b0cb9e776e21bd3b8dfbefa83c8b984bd76684dee47aec59943ff0e6b335a", "publishDecision": "approved", "holdReason": null, - "creatorOrRightsholder": "MoDiff project maintainers", - "creationMethod": "Project-authored Gallery manifest, native provenance or accepted quality review", - "sourceUrl": null, - "sourceRevision": null, - "sourceLicense": "Apache-2.0 project-authored metadata", - "modelTerms": [], + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/Efficient-Large-Model/Sana_600M_1024px_diffusers/tree/28f3af7689de15f3883d5863059a2fca0aa9b829", + "sourceRevision": "Efficient-Large-Model/Sana_600M_1024px_diffusers@28f3af7689de15f3883d5863059a2fca0aa9b829", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "https://huggingface.co/Efficient-Large-Model/Sana_600M_1024px_diffusers/tree/28f3af7689de15f3883d5863059a2fca0aa9b829" + ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], - "requiredAttribution": [], + "requiredAttribution": [ + "Efficient-Large-Model/Sana_600M_1024px_diffusers@28f3af7689de15f3883d5863059a2fca0aa9b829 https://huggingface.co/Efficient-Large-Model/Sana_600M_1024px_diffusers/tree/28f3af7689de15f3883d5863059a2fca0aa9b829" + ], "assetLicense": "Apache-2.0", - "reviewedBy": "SOURAV DAS", - "reviewedAt": "2026-11-10", - "reviewClass": "per-file-maintainer-accepted-native-gallery-registration", - "provenanceTemplateId": "qwen_product_ad_composite", - "humanApprovalPacketSHA256": "95893cb17e10b15ae6b23d8b31b57b0e14b9af96f822d75edbc6b68971afb11d" + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "4fc7c52588176cb1f6ba6d699d08741b2986ea71ea87bac650d261716a10b24c", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "sana_tidal_pool_on_black_basalt" }, { - "path": "template-gallery/reviews/qwen_product_ad_composite.reviewed-provenance.json", - "sha256": "sha256:bytes:381e12e3f39be2ae1a7192b918eba815d2029351d68377acb959d31a70eb357b", + "path": "template-gallery/reviews/sana_tidal_pool_on_black_basalt.original-review.json", + "sha256": "sha256:bytes:822c6a8b3d52524742bfe5987264df6c10f357ae3c975d695a89cf0d5b9e762a", "publishDecision": "approved", "holdReason": null, - "creatorOrRightsholder": "MoDiff project maintainers", - "creationMethod": "Project-authored Gallery manifest, native provenance or accepted quality review", - "sourceUrl": null, - "sourceRevision": null, - "sourceLicense": "Apache-2.0 project-authored metadata", - "modelTerms": [], + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/Efficient-Large-Model/Sana_600M_1024px_diffusers/tree/28f3af7689de15f3883d5863059a2fca0aa9b829", + "sourceRevision": "Efficient-Large-Model/Sana_600M_1024px_diffusers@28f3af7689de15f3883d5863059a2fca0aa9b829", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "https://huggingface.co/Efficient-Large-Model/Sana_600M_1024px_diffusers/tree/28f3af7689de15f3883d5863059a2fca0aa9b829" + ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], - "requiredAttribution": [], + "requiredAttribution": [ + "Efficient-Large-Model/Sana_600M_1024px_diffusers@28f3af7689de15f3883d5863059a2fca0aa9b829 https://huggingface.co/Efficient-Large-Model/Sana_600M_1024px_diffusers/tree/28f3af7689de15f3883d5863059a2fca0aa9b829" + ], "assetLicense": "Apache-2.0", - "reviewedBy": "SOURAV DAS", - "reviewedAt": "2026-11-10", - "reviewClass": "per-file-maintainer-accepted-native-gallery-registration", - "provenanceTemplateId": "qwen_product_ad_composite", - "humanApprovalPacketSHA256": "95893cb17e10b15ae6b23d8b31b57b0e14b9af96f822d75edbc6b68971afb11d" + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "4fc7c52588176cb1f6ba6d699d08741b2986ea71ea87bac650d261716a10b24c", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "sana_tidal_pool_on_black_basalt" }, { - "path": "template-gallery/reviews/qwen_product_mockup.quality-review.json", - "sha256": "sha256:bytes:d864e05cd7069e72a254aca6f8519881013d84b954ddc8d67224e1b7bad6d73d", + "path": "template-gallery/reviews/sana_tidal_pool_on_black_basalt.quality-review.json", + "sha256": "sha256:bytes:1dcfd72e9a8ac1f33c8ce5935e64598e279ddca468c1060e266376a8b7d89552", "publishDecision": "approved", "holdReason": null, - "creatorOrRightsholder": "MoDiff project maintainers", - "creationMethod": "MoDiff-authored technical provenance, Gallery manifest or quality review for the explicitly approved native Qwen museum and product images", - "sourceUrl": null, - "sourceRevision": null, - "sourceLicense": "Apache-2.0 project-authored metadata; generated-media terms remain in their exact per-file record", - "modelTerms": [], + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/Efficient-Large-Model/Sana_600M_1024px_diffusers/tree/28f3af7689de15f3883d5863059a2fca0aa9b829", + "sourceRevision": "Efficient-Large-Model/Sana_600M_1024px_diffusers@28f3af7689de15f3883d5863059a2fca0aa9b829", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "https://huggingface.co/Efficient-Large-Model/Sana_600M_1024px_diffusers/tree/28f3af7689de15f3883d5863059a2fca0aa9b829" + ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], - "requiredAttribution": [], + "requiredAttribution": [ + "Efficient-Large-Model/Sana_600M_1024px_diffusers@28f3af7689de15f3883d5863059a2fca0aa9b829 https://huggingface.co/Efficient-Large-Model/Sana_600M_1024px_diffusers/tree/28f3af7689de15f3883d5863059a2fca0aa9b829" + ], "assetLicense": "Apache-2.0", - "reviewedBy": "SOURAV DAS", - "reviewedAt": "2026-11-09", - "reviewClass": "per-file-human-approved-qwen-native-image-registration", - "provenanceTemplateId": "qwen_product_mockup", - "humanApprovalPacketSHA256": "fb90296fc1789e995652389997b3295a3b6d7424f449251539c63546c081e108" + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "4fc7c52588176cb1f6ba6d699d08741b2986ea71ea87bac650d261716a10b24c", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "sana_tidal_pool_on_black_basalt" }, { - "path": "template-gallery/reviews/qwen_product_mockup.reviewed-provenance.json", - "sha256": "sha256:bytes:dd0ef580bcfbf2beda1f7f571fc3b444a9c97d9f7dfd7e786000a3dc6a552888", + "path": "template-gallery/reviews/sana_tidal_pool_on_black_basalt.retained-template-provenance.json", + "sha256": "sha256:bytes:66af6aa83b431b3f41da146254ebc0cc75190e50fe626ce635fc20a12f2c7502", "publishDecision": "approved", "holdReason": null, - "creatorOrRightsholder": "MoDiff project maintainers", - "creationMethod": "MoDiff-authored technical provenance, Gallery manifest or quality review for the explicitly approved native Qwen museum and product images", - "sourceUrl": null, - "sourceRevision": null, - "sourceLicense": "Apache-2.0 project-authored metadata; generated-media terms remain in their exact per-file record", - "modelTerms": [], + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/Efficient-Large-Model/Sana_600M_1024px_diffusers/tree/28f3af7689de15f3883d5863059a2fca0aa9b829", + "sourceRevision": "Efficient-Large-Model/Sana_600M_1024px_diffusers@28f3af7689de15f3883d5863059a2fca0aa9b829", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "https://huggingface.co/Efficient-Large-Model/Sana_600M_1024px_diffusers/tree/28f3af7689de15f3883d5863059a2fca0aa9b829" + ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], - "requiredAttribution": [], + "requiredAttribution": [ + "Efficient-Large-Model/Sana_600M_1024px_diffusers@28f3af7689de15f3883d5863059a2fca0aa9b829 https://huggingface.co/Efficient-Large-Model/Sana_600M_1024px_diffusers/tree/28f3af7689de15f3883d5863059a2fca0aa9b829" + ], "assetLicense": "Apache-2.0", - "reviewedBy": "SOURAV DAS", - "reviewedAt": "2026-11-09", - "reviewClass": "per-file-human-approved-qwen-native-image-registration", - "humanApprovalPacketSHA256": "fb90296fc1789e995652389997b3295a3b6d7424f449251539c63546c081e108", - "humanApprovalScope": "The maintainer explicitly approved the proposed 4/5 scores, known limits, exact retained Klein two-reference derivative output, its redacted technical/quality metadata, and permission to make and redistribute this derivative under Apache-2.0. Existing source images and their mixed license records remain unchanged; no other assets or held cases are newly approved.", - "provenanceTemplateId": "qwen_product_mockup" + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "4fc7c52588176cb1f6ba6d699d08741b2986ea71ea87bac650d261716a10b24c", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "sana_tidal_pool_on_black_basalt" }, { - "path": "template-gallery/reviews/qwen_product_relight.quality-review.json", - "sha256": "sha256:bytes:b861d8ce095fd338d8d55d9b332d1010511af533986d66664186feebdc61bafc", + "path": "template-gallery/reviews/sana_video_water_terraces_before_sunrise.original-provenance.json", + "sha256": "sha256:bytes:250635b2ca6018d644f10604fd886da1c4d0b478dee0b119789bcceabbf1494e", "publishDecision": "approved", "holdReason": null, - "creatorOrRightsholder": "MoDiff project maintainers", - "creationMethod": "Project-authored Gallery manifest, native provenance or accepted quality review", - "sourceUrl": null, - "sourceRevision": null, - "sourceLicense": "Apache-2.0 project-authored metadata", - "modelTerms": [], + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/Efficient-Large-Model/SANA-Video_2B_480p_diffusers/tree/db5f398b13ca086d09a50ce156c20527773841b1", + "sourceRevision": "Efficient-Large-Model/SANA-Video_2B_480p_diffusers@db5f398b13ca086d09a50ce156c20527773841b1", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "Publisher model terms at https://huggingface.co/Efficient-Large-Model/SANA-Video_2B_480p_diffusers/tree/db5f398b13ca086d09a50ce156c20527773841b1" + ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], - "requiredAttribution": [], + "requiredAttribution": [ + "Efficient-Large-Model/SANA-Video_2B_480p_diffusers@db5f398b13ca086d09a50ce156c20527773841b1 https://huggingface.co/Efficient-Large-Model/SANA-Video_2B_480p_diffusers/tree/db5f398b13ca086d09a50ce156c20527773841b1" + ], "assetLicense": "Apache-2.0", - "reviewedBy": "SOURAV DAS", - "reviewedAt": "2026-11-10", - "reviewClass": "per-file-maintainer-accepted-native-gallery-registration", - "provenanceTemplateId": "qwen_product_relight", - "humanApprovalPacketSHA256": "95893cb17e10b15ae6b23d8b31b57b0e14b9af96f822d75edbc6b68971afb11d" + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "de8db2f2fa14b59514ea146654439aea279cc6fad5be1dca8cf17e057abe9945", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "sana_video_water_terraces_before_sunrise" }, { - "path": "template-gallery/reviews/qwen_product_relight.reviewed-provenance.json", - "sha256": "sha256:bytes:27502d691d21995e461135d22847cb0ae821b03f103eca40cab80c4ad8ce230d", + "path": "template-gallery/reviews/sana_video_water_terraces_before_sunrise.original-review.json", + "sha256": "sha256:bytes:3b96a247980147b258ed402c1614046d15d02e458fcea8a11f5dbb58585a1f7e", "publishDecision": "approved", "holdReason": null, - "creatorOrRightsholder": "MoDiff project maintainers", - "creationMethod": "Project-authored Gallery manifest, native provenance or accepted quality review", - "sourceUrl": null, - "sourceRevision": null, - "sourceLicense": "Apache-2.0 project-authored metadata", - "modelTerms": [], + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/Efficient-Large-Model/SANA-Video_2B_480p_diffusers/tree/db5f398b13ca086d09a50ce156c20527773841b1", + "sourceRevision": "Efficient-Large-Model/SANA-Video_2B_480p_diffusers@db5f398b13ca086d09a50ce156c20527773841b1", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "Publisher model terms at https://huggingface.co/Efficient-Large-Model/SANA-Video_2B_480p_diffusers/tree/db5f398b13ca086d09a50ce156c20527773841b1" + ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], - "requiredAttribution": [], + "requiredAttribution": [ + "Efficient-Large-Model/SANA-Video_2B_480p_diffusers@db5f398b13ca086d09a50ce156c20527773841b1 https://huggingface.co/Efficient-Large-Model/SANA-Video_2B_480p_diffusers/tree/db5f398b13ca086d09a50ce156c20527773841b1" + ], "assetLicense": "Apache-2.0", - "reviewedBy": "SOURAV DAS", - "reviewedAt": "2026-11-10", - "reviewClass": "per-file-maintainer-accepted-native-gallery-registration", - "provenanceTemplateId": "qwen_product_relight", - "humanApprovalPacketSHA256": "95893cb17e10b15ae6b23d8b31b57b0e14b9af96f822d75edbc6b68971afb11d" + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "de8db2f2fa14b59514ea146654439aea279cc6fad5be1dca8cf17e057abe9945", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "sana_video_water_terraces_before_sunrise" }, { - "path": "template-gallery/reviews/qwen_text_rendering.quality-review.json", - "sha256": "sha256:bytes:60a57aeded56870fe11bb3778c6d76e02332d07713b1b544e41ffcbd4a0b1bb6", + "path": "template-gallery/reviews/sana_video_water_terraces_before_sunrise.quality-review.json", + "sha256": "sha256:bytes:0bf7cc281ab478b7719c384b06b83a15b8e21745ffd6247e20b5f3ddf33194a3", "publishDecision": "approved", "holdReason": null, - "creatorOrRightsholder": "MoDiff project maintainers", - "creationMethod": "MoDiff-authored technical provenance, Gallery manifest or quality review for the explicitly approved native Qwen exact-text poster", - "sourceUrl": null, - "sourceRevision": null, - "sourceLicense": "Apache-2.0 project-authored metadata; generated-media terms remain in their exact per-file record", - "modelTerms": [], + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/Efficient-Large-Model/SANA-Video_2B_480p_diffusers/tree/db5f398b13ca086d09a50ce156c20527773841b1", + "sourceRevision": "Efficient-Large-Model/SANA-Video_2B_480p_diffusers@db5f398b13ca086d09a50ce156c20527773841b1", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "Publisher model terms at https://huggingface.co/Efficient-Large-Model/SANA-Video_2B_480p_diffusers/tree/db5f398b13ca086d09a50ce156c20527773841b1" + ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], - "requiredAttribution": [], + "requiredAttribution": [ + "Efficient-Large-Model/SANA-Video_2B_480p_diffusers@db5f398b13ca086d09a50ce156c20527773841b1 https://huggingface.co/Efficient-Large-Model/SANA-Video_2B_480p_diffusers/tree/db5f398b13ca086d09a50ce156c20527773841b1" + ], "assetLicense": "Apache-2.0", - "reviewedBy": "SOURAV DAS", - "reviewedAt": "2026-11-09", - "reviewClass": "per-file-human-approved-qwen-exact-text-registration", - "provenanceTemplateId": "qwen_text_rendering", - "humanApprovalPacketSHA256": "a000a897c1a4ae5980d2f50e5e88a2affb992e403dbd6df9d3ebbd5de5db4891" + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "de8db2f2fa14b59514ea146654439aea279cc6fad5be1dca8cf17e057abe9945", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "sana_video_water_terraces_before_sunrise" }, { - "path": "template-gallery/reviews/qwen_text_rendering.reviewed-provenance.json", - "sha256": "sha256:bytes:9611134a5092c7ecc267170fd99485f7c7802881ebfc8b2c9c5ea3d088ed1a9e", + "path": "template-gallery/reviews/sana_video_water_terraces_before_sunrise.retained-template-provenance.json", + "sha256": "sha256:bytes:f0cc994e00a2bc07c096ec6f718af2dc4e279c47654d9b19d09fb6342a536442", "publishDecision": "approved", "holdReason": null, - "creatorOrRightsholder": "MoDiff project maintainers", - "creationMethod": "MoDiff-authored technical provenance, Gallery manifest or quality review for the explicitly approved native Qwen exact-text poster", - "sourceUrl": null, - "sourceRevision": null, - "sourceLicense": "Apache-2.0 project-authored metadata; generated-media terms remain in their exact per-file record", - "modelTerms": [], + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/Efficient-Large-Model/SANA-Video_2B_480p_diffusers/tree/db5f398b13ca086d09a50ce156c20527773841b1", + "sourceRevision": "Efficient-Large-Model/SANA-Video_2B_480p_diffusers@db5f398b13ca086d09a50ce156c20527773841b1", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "Publisher model terms at https://huggingface.co/Efficient-Large-Model/SANA-Video_2B_480p_diffusers/tree/db5f398b13ca086d09a50ce156c20527773841b1" + ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], - "requiredAttribution": [], + "requiredAttribution": [ + "Efficient-Large-Model/SANA-Video_2B_480p_diffusers@db5f398b13ca086d09a50ce156c20527773841b1 https://huggingface.co/Efficient-Large-Model/SANA-Video_2B_480p_diffusers/tree/db5f398b13ca086d09a50ce156c20527773841b1" + ], "assetLicense": "Apache-2.0", - "reviewedBy": "SOURAV DAS", - "reviewedAt": "2026-11-09", - "reviewClass": "per-file-human-approved-qwen-exact-text-registration", - "humanApprovalPacketSHA256": "a000a897c1a4ae5980d2f50e5e88a2affb992e403dbd6df9d3ebbd5de5db4891", - "humanApprovalScope": "The maintainer explicitly approved the proposed 4/5 scores, known limits, exact retained Klein two-reference derivative output, its redacted technical/quality metadata, and permission to make and redistribute this derivative under Apache-2.0. Existing source images and their mixed license records remain unchanged; no other assets or held cases are newly approved.", - "provenanceTemplateId": "qwen_text_rendering" + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "de8db2f2fa14b59514ea146654439aea279cc6fad5be1dca8cf17e057abe9945", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "sana_video_water_terraces_before_sunrise" }, { - "path": "template-gallery/reviews/qwen_tile_extract.quality-review.json", - "sha256": "sha256:bytes:09131391c3324338e90a40f57fd1cada2f08e321ec5904fcfc0d6c9920ee6aed", + "path": "template-gallery/reviews/sd15_canny_guided_green_glass.original-provenance.json", + "sha256": "sha256:bytes:4819d64b35e84d822483b4edf58c0d2a82ca612989a5f283763eff90e1c3dcc4", "publishDecision": "approved", "holdReason": null, - "creatorOrRightsholder": "MoDiff project maintainers", - "creationMethod": "Project-authored Gallery manifest, native provenance or accepted quality review", - "sourceUrl": null, - "sourceRevision": null, - "sourceLicense": "Apache-2.0 project-authored metadata", - "modelTerms": [], + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14", + "sourceRevision": "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "Publisher model terms at https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14" + ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], - "requiredAttribution": [], + "requiredAttribution": [ + "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14 https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14" + ], "assetLicense": "Apache-2.0", - "reviewedBy": "SOURAV DAS", - "reviewedAt": "2026-11-10", - "reviewClass": "per-file-maintainer-accepted-native-gallery-registration", - "provenanceTemplateId": "qwen_tile_extract", - "humanApprovalPacketSHA256": "95893cb17e10b15ae6b23d8b31b57b0e14b9af96f822d75edbc6b68971afb11d" + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "3968c7cbe37a94789a9f839d8e83a9e0f102629b797d5f7baacf0304a8d18153", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "sd15_canny_guided_green_glass" }, { - "path": "template-gallery/reviews/qwen_tile_extract.reviewed-provenance.json", - "sha256": "sha256:bytes:3b08851c75268f5dd35a5e5f0f4f1e47ecbe95ecfdccde93f1ba08e74f0fc241", + "path": "template-gallery/reviews/sd15_canny_guided_green_glass.original-review.json", + "sha256": "sha256:bytes:702ca8e77651aeb71cddfb6daa67ca584309cc1639d3ad81cbe783e65c14ac14", "publishDecision": "approved", "holdReason": null, - "creatorOrRightsholder": "MoDiff project maintainers", - "creationMethod": "Project-authored Gallery manifest, native provenance or accepted quality review", - "sourceUrl": null, - "sourceRevision": null, - "sourceLicense": "Apache-2.0 project-authored metadata", - "modelTerms": [], + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14", + "sourceRevision": "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "Publisher model terms at https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14" + ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], - "requiredAttribution": [], + "requiredAttribution": [ + "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14 https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14" + ], "assetLicense": "Apache-2.0", - "reviewedBy": "SOURAV DAS", - "reviewedAt": "2026-11-10", - "reviewClass": "per-file-maintainer-accepted-native-gallery-registration", - "provenanceTemplateId": "qwen_tile_extract", - "humanApprovalPacketSHA256": "95893cb17e10b15ae6b23d8b31b57b0e14b9af96f822d75edbc6b68971afb11d" + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "3968c7cbe37a94789a9f839d8e83a9e0f102629b797d5f7baacf0304a8d18153", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "sd15_canny_guided_green_glass" }, { - "path": "template-gallery/reviews/qwen_upscale_finish.quality-review.json", - "sha256": "sha256:bytes:6839f40c63e339e656f88b3933285a54e7a902833f1dc585030356d36a172502", + "path": "template-gallery/reviews/sd15_canny_guided_green_glass.quality-review.json", + "sha256": "sha256:bytes:6b4eb4c2e53322bd651c6da7802034a81a968a063f4d68099d18a47b798b6a2a", "publishDecision": "approved", "holdReason": null, - "creatorOrRightsholder": "MoDiff project maintainers", - "creationMethod": "MoDiff-authored technical provenance, Gallery manifest or quality review for the explicitly approved native Qwen Expert final and genuine before-upscale comparison images", - "sourceUrl": null, - "sourceRevision": null, - "sourceLicense": "Apache-2.0 project-authored metadata; generated-media terms remain in their exact per-file record", - "modelTerms": [], + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14", + "sourceRevision": "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "Publisher model terms at https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14" + ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], - "requiredAttribution": [], + "requiredAttribution": [ + "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14 https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14" + ], "assetLicense": "Apache-2.0", - "reviewedBy": "SOURAV DAS", - "reviewedAt": "2026-11-10", - "reviewClass": "per-file-human-approved-qwen-expert-upscale-registration", - "provenanceTemplateId": "qwen_upscale_finish", - "humanApprovalPacketSHA256": "f0167419381c0d2a1a1bcd43d2465a0ad728c294a2d91bbe1c6b090a915c2c98" + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "3968c7cbe37a94789a9f839d8e83a9e0f102629b797d5f7baacf0304a8d18153", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "sd15_canny_guided_green_glass" }, { - "path": "template-gallery/reviews/qwen_upscale_finish.reviewed-provenance.json", - "sha256": "sha256:bytes:30c664301de44d2be2f3a0110ce4392de6433a1b5a63e60d31a9c7870ce3b04f", + "path": "template-gallery/reviews/sd15_canny_guided_green_glass.retained-template-provenance.json", + "sha256": "sha256:bytes:402d8a04c798edda4ccf43f0b2716520eb7b4e3e268b111ac029ce1ef95865bc", "publishDecision": "approved", "holdReason": null, - "creatorOrRightsholder": "MoDiff project maintainers", - "creationMethod": "MoDiff-authored technical provenance, Gallery manifest or quality review for the explicitly approved native Qwen Expert final and genuine before-upscale comparison images", - "sourceUrl": null, - "sourceRevision": null, - "sourceLicense": "Apache-2.0 project-authored metadata; generated-media terms remain in their exact per-file record", - "modelTerms": [], + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14", + "sourceRevision": "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "Publisher model terms at https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14" + ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], - "requiredAttribution": [], + "requiredAttribution": [ + "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14 https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14" + ], "assetLicense": "Apache-2.0", - "reviewedBy": "SOURAV DAS", - "reviewedAt": "2026-11-10", - "reviewClass": "per-file-human-approved-qwen-expert-upscale-registration", - "provenanceTemplateId": "qwen_upscale_finish", - "humanApprovalPacketSHA256": "f0167419381c0d2a1a1bcd43d2465a0ad728c294a2d91bbe1c6b090a915c2c98" + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "3968c7cbe37a94789a9f839d8e83a9e0f102629b797d5f7baacf0304a8d18153", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "sd15_canny_guided_green_glass" }, { - "path": "template-gallery/reviews/reference_fusion.quality-review.json", - "sha256": "sha256:bytes:0042893cc0ba3eb36438c8af0108de25c620cedc8febc83d14b46accb427f73a", + "path": "template-gallery/reviews/sd15_control_cobalt_handmade_paper.original-provenance.json", + "sha256": "sha256:bytes:da7eebeec6ee06c919bd2a1b06634fdc12a0656ba046561fb0540c165ebdee19", "publishDecision": "approved", "holdReason": null, - "creatorOrRightsholder": "MoDiff project maintainers", - "creationMethod": "Project-authored Gallery manifest, native provenance or accepted quality review", - "sourceUrl": null, - "sourceRevision": null, - "sourceLicense": "Apache-2.0 project-authored metadata", - "modelTerms": [], + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14", + "sourceRevision": "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "Publisher model terms at https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14" + ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], - "requiredAttribution": [], + "requiredAttribution": [ + "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14 https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14" + ], "assetLicense": "Apache-2.0", - "reviewedBy": "SOURAV DAS", - "reviewedAt": "2026-11-10", - "reviewClass": "per-file-maintainer-accepted-native-gallery-registration", - "provenanceTemplateId": "reference_fusion", - "humanApprovalPacketSHA256": "95893cb17e10b15ae6b23d8b31b57b0e14b9af96f822d75edbc6b68971afb11d" + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "d7e2fd301d16eede3da44cec1811930560ba0d958dfd46d8d0962eb3a22eea63", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "sd15_control_cobalt_handmade_paper" }, { - "path": "template-gallery/reviews/reference_fusion.reviewed-provenance.json", - "sha256": "sha256:bytes:e8bb52b4d660c345368dd44a7d9d40edf62b00770a01dc444a5d5e9ec8d8bd87", + "path": "template-gallery/reviews/sd15_control_cobalt_handmade_paper.original-review.json", + "sha256": "sha256:bytes:5323b4eaa717d668add0b374d57be2cc16458d2dba6a7dab91cef3054e6783e6", "publishDecision": "approved", "holdReason": null, - "creatorOrRightsholder": "MoDiff project maintainers", - "creationMethod": "Project-authored Gallery manifest, native provenance or accepted quality review", - "sourceUrl": null, - "sourceRevision": null, - "sourceLicense": "Apache-2.0 project-authored metadata", - "modelTerms": [], + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14", + "sourceRevision": "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "Publisher model terms at https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14" + ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], - "requiredAttribution": [], + "requiredAttribution": [ + "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14 https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14" + ], "assetLicense": "Apache-2.0", - "reviewedBy": "SOURAV DAS", - "reviewedAt": "2026-11-10", - "reviewClass": "per-file-maintainer-accepted-native-gallery-registration", - "provenanceTemplateId": "reference_fusion", - "humanApprovalPacketSHA256": "95893cb17e10b15ae6b23d8b31b57b0e14b9af96f822d75edbc6b68971afb11d" + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "d7e2fd301d16eede3da44cec1811930560ba0d958dfd46d8d0962eb3a22eea63", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "sd15_control_cobalt_handmade_paper" }, { - "path": "template-gallery/reviews/restoring_the_studio_backdrop.original-provenance.json", - "sha256": "sha256:bytes:a8d0febc08556ad204bef84d5c8d35bfab9bf69fe8d28b21f10ad315f962b897", + "path": "template-gallery/reviews/sd15_control_cobalt_handmade_paper.quality-review.json", + "sha256": "sha256:bytes:8d1bd3e6ea993d171004dc6960a2384635596ebb4a212694128b4c0596085a38", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", @@ -18994,7 +20787,9 @@ "sourceUrl": "https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14", "sourceRevision": "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14", "sourceLicense": "MoDiff-authored Gallery metadata", - "modelTerms": ["CreativeML Open RAIL-M at the pinned Stable Diffusion v1.5 revision."], + "modelTerms": [ + "Publisher model terms at https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14" + ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], @@ -19005,13 +20800,13 @@ "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", - "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", - "provenanceTemplateId": "restoring_the_studio_backdrop" + "humanApprovalPacketSHA256": "d7e2fd301d16eede3da44cec1811930560ba0d958dfd46d8d0962eb3a22eea63", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "sd15_control_cobalt_handmade_paper" }, { - "path": "template-gallery/reviews/restoring_the_studio_backdrop.original-review.json", - "sha256": "sha256:bytes:633f93991afc1d361ac19a79c101f868f5954814f09dc349bcb61f967b821cf6", + "path": "template-gallery/reviews/sd15_control_cobalt_handmade_paper.retained-template-provenance.json", + "sha256": "sha256:bytes:9ab42723e81c7cad64ab3e8d5ffedeb21ab76c17a4aaf7e3d6f5e84e82f2133a", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", @@ -19019,7 +20814,9 @@ "sourceUrl": "https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14", "sourceRevision": "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14", "sourceLicense": "MoDiff-authored Gallery metadata", - "modelTerms": ["CreativeML Open RAIL-M at the pinned Stable Diffusion v1.5 revision."], + "modelTerms": [ + "Publisher model terms at https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14" + ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], @@ -19030,13 +20827,13 @@ "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", - "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", - "provenanceTemplateId": "restoring_the_studio_backdrop" + "humanApprovalPacketSHA256": "d7e2fd301d16eede3da44cec1811930560ba0d958dfd46d8d0962eb3a22eea63", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "sd15_control_cobalt_handmade_paper" }, { - "path": "template-gallery/reviews/restoring_the_studio_backdrop.quality-review.json", - "sha256": "sha256:bytes:1e0613d7b8b08333cca474aea32b92bd3d6ac680a776e639b93c554a3011b311", + "path": "template-gallery/reviews/sd15_control_cobalt_studio_wall_repair.original-provenance.json", + "sha256": "sha256:bytes:19bf85731e13ea963aab7adba6556b86bbcded7d0030b29342738bb6ef165418", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", @@ -19044,7 +20841,9 @@ "sourceUrl": "https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14", "sourceRevision": "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14", "sourceLicense": "MoDiff-authored Gallery metadata", - "modelTerms": ["CreativeML Open RAIL-M at the pinned Stable Diffusion v1.5 revision."], + "modelTerms": [ + "Publisher model terms at https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14" + ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], @@ -19055,13 +20854,13 @@ "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", - "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", - "provenanceTemplateId": "restoring_the_studio_backdrop" + "humanApprovalPacketSHA256": "d7e2fd301d16eede3da44cec1811930560ba0d958dfd46d8d0962eb3a22eea63", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "sd15_control_cobalt_studio_wall_repair" }, { - "path": "template-gallery/reviews/restoring_the_studio_backdrop.retained-template-provenance.json", - "sha256": "sha256:bytes:6a6538a8278e1f94de68eb9b2928131809e5b3163a7157ff7db17d053635fa46", + "path": "template-gallery/reviews/sd15_control_cobalt_studio_wall_repair.original-review.json", + "sha256": "sha256:bytes:972cd4b45f317e79624ad0f9d14361ad56ff661b9e8b5bebf049553317cb5af5", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", @@ -19069,7 +20868,9 @@ "sourceUrl": "https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14", "sourceRevision": "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14", "sourceLicense": "MoDiff-authored Gallery metadata", - "modelTerms": ["CreativeML Open RAIL-M at the pinned Stable Diffusion v1.5 revision."], + "modelTerms": [ + "Publisher model terms at https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14" + ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], @@ -19080,275 +20881,283 @@ "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", - "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", - "provenanceTemplateId": "restoring_the_studio_backdrop" + "humanApprovalPacketSHA256": "d7e2fd301d16eede3da44cec1811930560ba0d958dfd46d8d0962eb3a22eea63", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "sd15_control_cobalt_studio_wall_repair" }, { - "path": "template-gallery/reviews/salt_marsh_from_above.original-provenance.json", - "sha256": "sha256:bytes:a126541afded7807e2f7c48f7695571cd00edb4c237e257829dea8025548fdc4", + "path": "template-gallery/reviews/sd15_control_cobalt_studio_wall_repair.quality-review.json", + "sha256": "sha256:bytes:ed1f8ea25aa626c59572eb6c03d8e6c55eae588e1e6378afef6adc536f1983d7", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/fal/AuraFlow-v0.3/tree/2cd8588f04c886002be4571697d84654a50e3af3", - "sourceRevision": "fal/AuraFlow-v0.3@2cd8588f04c886002be4571697d84654a50e3af3", + "sourceUrl": "https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14", + "sourceRevision": "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14", "sourceLicense": "MoDiff-authored Gallery metadata", "modelTerms": [ - "apache-2.0. https://huggingface.co/fal/AuraFlow-v0.3/tree/2cd8588f04c886002be4571697d84654a50e3af3" + "Publisher model terms at https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14" ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "fal/AuraFlow-v0.3@2cd8588f04c886002be4571697d84654a50e3af3 https://huggingface.co/fal/AuraFlow-v0.3/tree/2cd8588f04c886002be4571697d84654a50e3af3" + "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14 https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", - "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", - "provenanceTemplateId": "salt_marsh_from_above" + "humanApprovalPacketSHA256": "d7e2fd301d16eede3da44cec1811930560ba0d958dfd46d8d0962eb3a22eea63", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "sd15_control_cobalt_studio_wall_repair" }, { - "path": "template-gallery/reviews/salt_marsh_from_above.original-review.json", - "sha256": "sha256:bytes:890b1c2f2a76d781d9c1062a1e4ec1e637a5d7de161e8ec21fb4860bfba68365", + "path": "template-gallery/reviews/sd15_control_cobalt_studio_wall_repair.retained-template-provenance.json", + "sha256": "sha256:bytes:fb2f08438b84f324cd9c37aaff2e4106e02c2302cc21a20e57d2a3ce456d4d12", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/fal/AuraFlow-v0.3/tree/2cd8588f04c886002be4571697d84654a50e3af3", - "sourceRevision": "fal/AuraFlow-v0.3@2cd8588f04c886002be4571697d84654a50e3af3", + "sourceUrl": "https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14", + "sourceRevision": "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14", "sourceLicense": "MoDiff-authored Gallery metadata", "modelTerms": [ - "apache-2.0. https://huggingface.co/fal/AuraFlow-v0.3/tree/2cd8588f04c886002be4571697d84654a50e3af3" + "Publisher model terms at https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14" ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "fal/AuraFlow-v0.3@2cd8588f04c886002be4571697d84654a50e3af3 https://huggingface.co/fal/AuraFlow-v0.3/tree/2cd8588f04c886002be4571697d84654a50e3af3" + "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14 https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", - "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", - "provenanceTemplateId": "salt_marsh_from_above" + "humanApprovalPacketSHA256": "d7e2fd301d16eede3da44cec1811930560ba0d958dfd46d8d0962eb3a22eea63", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "sd15_control_cobalt_studio_wall_repair" }, { - "path": "template-gallery/reviews/salt_marsh_from_above.quality-review.json", - "sha256": "sha256:bytes:deb996a0c76f064ba87fcbde7750b4297dedd4f470a70246be5ce550f88b52d3", + "path": "template-gallery/reviews/sd15_pag_canny_guided_glass.original-provenance.json", + "sha256": "sha256:bytes:9c932db7355340ac4e8adf44b0d465192ee66096c6e811fd917ab7d0d6858881", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/fal/AuraFlow-v0.3/tree/2cd8588f04c886002be4571697d84654a50e3af3", - "sourceRevision": "fal/AuraFlow-v0.3@2cd8588f04c886002be4571697d84654a50e3af3", + "sourceUrl": "https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14", + "sourceRevision": "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14", "sourceLicense": "MoDiff-authored Gallery metadata", "modelTerms": [ - "apache-2.0. https://huggingface.co/fal/AuraFlow-v0.3/tree/2cd8588f04c886002be4571697d84654a50e3af3" + "Publisher model terms at https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14" ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "fal/AuraFlow-v0.3@2cd8588f04c886002be4571697d84654a50e3af3 https://huggingface.co/fal/AuraFlow-v0.3/tree/2cd8588f04c886002be4571697d84654a50e3af3" + "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14 https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", - "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", - "provenanceTemplateId": "salt_marsh_from_above" + "humanApprovalPacketSHA256": "3968c7cbe37a94789a9f839d8e83a9e0f102629b797d5f7baacf0304a8d18153", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "sd15_pag_canny_guided_glass" }, { - "path": "template-gallery/reviews/salt_marsh_from_above.retained-template-provenance.json", - "sha256": "sha256:bytes:9a904012bac7d429111212a1e17e1b5b08a754a6354230233a6c81b8f1a2cfe2", + "path": "template-gallery/reviews/sd15_pag_canny_guided_glass.original-review.json", + "sha256": "sha256:bytes:71b3e8d9324b3a359982cc2544d97acaa55ad8fd919bba1c9638e337c2029b64", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/fal/AuraFlow-v0.3/tree/2cd8588f04c886002be4571697d84654a50e3af3", - "sourceRevision": "fal/AuraFlow-v0.3@2cd8588f04c886002be4571697d84654a50e3af3", + "sourceUrl": "https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14", + "sourceRevision": "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14", "sourceLicense": "MoDiff-authored Gallery metadata", "modelTerms": [ - "apache-2.0. https://huggingface.co/fal/AuraFlow-v0.3/tree/2cd8588f04c886002be4571697d84654a50e3af3" + "Publisher model terms at https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14" ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "fal/AuraFlow-v0.3@2cd8588f04c886002be4571697d84654a50e3af3 https://huggingface.co/fal/AuraFlow-v0.3/tree/2cd8588f04c886002be4571697d84654a50e3af3" + "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14 https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", - "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", - "provenanceTemplateId": "salt_marsh_from_above" + "humanApprovalPacketSHA256": "3968c7cbe37a94789a9f839d8e83a9e0f102629b797d5f7baacf0304a8d18153", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "sd15_pag_canny_guided_glass" }, { - "path": "template-gallery/reviews/sana_sprint_monochrome_tiger.quality-review.json", - "sha256": "sha256:bytes:daad196fff80a6e8d2543deeb911b5cd94a027a746e8d7cc0a011dc687f8c50e", + "path": "template-gallery/reviews/sd15_pag_canny_guided_glass.quality-review.json", + "sha256": "sha256:bytes:17e907b2f792b6f5d3a67cdb23e21cd610731baec7b7bd3914170fb801f4c807", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14", + "sourceRevision": "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "Publisher model terms at https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14" + ], + "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], + "requiredAttribution": [ + "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14 https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14" + ], + "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", - "reviewedAt": "2026-11-20", + "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "40060ba701188a6d287df07e0852c6497d109885495e6fc85a19e8371ef73906", - "publicationBasis": "Maintainer approved both exact Sana Sprint images and redistribution of the redacted review and recipe records.", - "creationMethod": "Project-authored redacted retained Gallery review, provenance or registration metadata", - "sourceUrl": null, - "sourceRevision": null, - "sourceLicense": "MoDiff-authored Gallery metadata", - "modelTerms": [], - "aiGenerated": false, - "requiredAttribution": [], - "assetLicense": "Apache-2.0", - "provenanceTemplateId": "sana_sprint_monochrome_tiger" + "humanApprovalPacketSHA256": "3968c7cbe37a94789a9f839d8e83a9e0f102629b797d5f7baacf0304a8d18153", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "sd15_pag_canny_guided_glass" }, { - "path": "template-gallery/reviews/sana_sprint_monochrome_tiger.retained-template-provenance.json", - "sha256": "sha256:bytes:9da7a90fdc337893b768009a2d6c619c730606e2544c335f4c4d02d14137d1a9", + "path": "template-gallery/reviews/sd15_pag_canny_guided_glass.retained-template-provenance.json", + "sha256": "sha256:bytes:7f00b5906e8f7b8b9f25ab10145851637e469edfb455660c72f08be72bee8b7b", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14", + "sourceRevision": "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "Publisher model terms at https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14" + ], + "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], + "requiredAttribution": [ + "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14 https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14" + ], + "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", - "reviewedAt": "2026-11-20", + "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "40060ba701188a6d287df07e0852c6497d109885495e6fc85a19e8371ef73906", - "publicationBasis": "Maintainer approved both exact Sana Sprint images and redistribution of the redacted review and recipe records.", - "creationMethod": "Project-authored redacted retained Gallery review, provenance or registration metadata", - "sourceUrl": null, - "sourceRevision": null, - "sourceLicense": "MoDiff-authored Gallery metadata", - "modelTerms": [], - "aiGenerated": false, - "requiredAttribution": [], - "assetLicense": "Apache-2.0", - "provenanceTemplateId": "sana_sprint_monochrome_tiger" + "humanApprovalPacketSHA256": "3968c7cbe37a94789a9f839d8e83a9e0f102629b797d5f7baacf0304a8d18153", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "sd15_pag_canny_guided_glass" }, { - "path": "template-gallery/reviews/sana_tidal_pool_on_black_basalt.original-provenance.json", - "sha256": "sha256:bytes:464b0cb9e776e21bd3b8dfbefa83c8b984bd76684dee47aec59943ff0e6b335a", + "path": "template-gallery/reviews/sd15_pag_cobalt_studio_repair.original-provenance.json", + "sha256": "sha256:bytes:b3a227ef5f8f0ea481c446854ce4be387bfe434ff252d9a5d34887ddb2b69b55", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/Efficient-Large-Model/Sana_600M_1024px_diffusers/tree/28f3af7689de15f3883d5863059a2fca0aa9b829", - "sourceRevision": "Efficient-Large-Model/Sana_600M_1024px_diffusers@28f3af7689de15f3883d5863059a2fca0aa9b829", + "sourceUrl": "https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14", + "sourceRevision": "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14", "sourceLicense": "MoDiff-authored Gallery metadata", "modelTerms": [ - "https://huggingface.co/Efficient-Large-Model/Sana_600M_1024px_diffusers/tree/28f3af7689de15f3883d5863059a2fca0aa9b829" + "Publisher model terms at https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14" ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "Efficient-Large-Model/Sana_600M_1024px_diffusers@28f3af7689de15f3883d5863059a2fca0aa9b829 https://huggingface.co/Efficient-Large-Model/Sana_600M_1024px_diffusers/tree/28f3af7689de15f3883d5863059a2fca0aa9b829" + "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14 https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "4fc7c52588176cb1f6ba6d699d08741b2986ea71ea87bac650d261716a10b24c", + "humanApprovalPacketSHA256": "c2df9edb92f8ff905b6c9a138a285e67c621f3d2dfa3232f859aaf963b725aca", "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", - "provenanceTemplateId": "sana_tidal_pool_on_black_basalt" + "provenanceTemplateId": "sd15_pag_cobalt_studio_repair" }, { - "path": "template-gallery/reviews/sana_tidal_pool_on_black_basalt.original-review.json", - "sha256": "sha256:bytes:822c6a8b3d52524742bfe5987264df6c10f357ae3c975d695a89cf0d5b9e762a", + "path": "template-gallery/reviews/sd15_pag_cobalt_studio_repair.original-review.json", + "sha256": "sha256:bytes:dcbaa8d96f77097c5e763de7dd3602e62e4dc4d1302b2d4e7a426ae606b94de3", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/Efficient-Large-Model/Sana_600M_1024px_diffusers/tree/28f3af7689de15f3883d5863059a2fca0aa9b829", - "sourceRevision": "Efficient-Large-Model/Sana_600M_1024px_diffusers@28f3af7689de15f3883d5863059a2fca0aa9b829", + "sourceUrl": "https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14", + "sourceRevision": "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14", "sourceLicense": "MoDiff-authored Gallery metadata", "modelTerms": [ - "https://huggingface.co/Efficient-Large-Model/Sana_600M_1024px_diffusers/tree/28f3af7689de15f3883d5863059a2fca0aa9b829" + "Publisher model terms at https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14" ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "Efficient-Large-Model/Sana_600M_1024px_diffusers@28f3af7689de15f3883d5863059a2fca0aa9b829 https://huggingface.co/Efficient-Large-Model/Sana_600M_1024px_diffusers/tree/28f3af7689de15f3883d5863059a2fca0aa9b829" + "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14 https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "4fc7c52588176cb1f6ba6d699d08741b2986ea71ea87bac650d261716a10b24c", + "humanApprovalPacketSHA256": "c2df9edb92f8ff905b6c9a138a285e67c621f3d2dfa3232f859aaf963b725aca", "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", - "provenanceTemplateId": "sana_tidal_pool_on_black_basalt" + "provenanceTemplateId": "sd15_pag_cobalt_studio_repair" }, { - "path": "template-gallery/reviews/sana_tidal_pool_on_black_basalt.quality-review.json", - "sha256": "sha256:bytes:1dcfd72e9a8ac1f33c8ce5935e64598e279ddca468c1060e266376a8b7d89552", + "path": "template-gallery/reviews/sd15_pag_cobalt_studio_repair.quality-review.json", + "sha256": "sha256:bytes:ddfa89f8e656c4790a14c0e9dcfffa24a1a034cab5c1bb62390307bfa70bc9fc", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/Efficient-Large-Model/Sana_600M_1024px_diffusers/tree/28f3af7689de15f3883d5863059a2fca0aa9b829", - "sourceRevision": "Efficient-Large-Model/Sana_600M_1024px_diffusers@28f3af7689de15f3883d5863059a2fca0aa9b829", + "sourceUrl": "https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14", + "sourceRevision": "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14", "sourceLicense": "MoDiff-authored Gallery metadata", "modelTerms": [ - "https://huggingface.co/Efficient-Large-Model/Sana_600M_1024px_diffusers/tree/28f3af7689de15f3883d5863059a2fca0aa9b829" + "Publisher model terms at https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14" ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "Efficient-Large-Model/Sana_600M_1024px_diffusers@28f3af7689de15f3883d5863059a2fca0aa9b829 https://huggingface.co/Efficient-Large-Model/Sana_600M_1024px_diffusers/tree/28f3af7689de15f3883d5863059a2fca0aa9b829" + "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14 https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "4fc7c52588176cb1f6ba6d699d08741b2986ea71ea87bac650d261716a10b24c", + "humanApprovalPacketSHA256": "c2df9edb92f8ff905b6c9a138a285e67c621f3d2dfa3232f859aaf963b725aca", "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", - "provenanceTemplateId": "sana_tidal_pool_on_black_basalt" + "provenanceTemplateId": "sd15_pag_cobalt_studio_repair" }, { - "path": "template-gallery/reviews/sana_tidal_pool_on_black_basalt.retained-template-provenance.json", - "sha256": "sha256:bytes:66af6aa83b431b3f41da146254ebc0cc75190e50fe626ce635fc20a12f2c7502", + "path": "template-gallery/reviews/sd15_pag_cobalt_studio_repair.retained-template-provenance.json", + "sha256": "sha256:bytes:e2aade8abc03d27c9f342023c60f27dcbb77f28a94d7605522ae0e862672eeed", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/Efficient-Large-Model/Sana_600M_1024px_diffusers/tree/28f3af7689de15f3883d5863059a2fca0aa9b829", - "sourceRevision": "Efficient-Large-Model/Sana_600M_1024px_diffusers@28f3af7689de15f3883d5863059a2fca0aa9b829", + "sourceUrl": "https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14", + "sourceRevision": "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14", "sourceLicense": "MoDiff-authored Gallery metadata", "modelTerms": [ - "https://huggingface.co/Efficient-Large-Model/Sana_600M_1024px_diffusers/tree/28f3af7689de15f3883d5863059a2fca0aa9b829" + "Publisher model terms at https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14" ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "Efficient-Large-Model/Sana_600M_1024px_diffusers@28f3af7689de15f3883d5863059a2fca0aa9b829 https://huggingface.co/Efficient-Large-Model/Sana_600M_1024px_diffusers/tree/28f3af7689de15f3883d5863059a2fca0aa9b829" + "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14 https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "4fc7c52588176cb1f6ba6d699d08741b2986ea71ea87bac650d261716a10b24c", + "humanApprovalPacketSHA256": "c2df9edb92f8ff905b6c9a138a285e67c621f3d2dfa3232f859aaf963b725aca", "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", - "provenanceTemplateId": "sana_tidal_pool_on_black_basalt" + "provenanceTemplateId": "sd15_pag_cobalt_studio_repair" }, { - "path": "template-gallery/reviews/sd15_canny_guided_green_glass.original-provenance.json", - "sha256": "sha256:bytes:4819d64b35e84d822483b4edf58c0d2a82ca612989a5f283763eff90e1c3dcc4", + "path": "template-gallery/reviews/sd15_pag_control_wall_repair.original-provenance.json", + "sha256": "sha256:bytes:aa19ad771615c138e20115977179f7a966ea7b8cdb2d08e358ee505d2954c623", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", @@ -19369,13 +21178,13 @@ "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "3968c7cbe37a94789a9f839d8e83a9e0f102629b797d5f7baacf0304a8d18153", + "humanApprovalPacketSHA256": "d7e2fd301d16eede3da44cec1811930560ba0d958dfd46d8d0962eb3a22eea63", "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", - "provenanceTemplateId": "sd15_canny_guided_green_glass" + "provenanceTemplateId": "sd15_pag_control_wall_repair" }, { - "path": "template-gallery/reviews/sd15_canny_guided_green_glass.original-review.json", - "sha256": "sha256:bytes:702ca8e77651aeb71cddfb6daa67ca584309cc1639d3ad81cbe783e65c14ac14", + "path": "template-gallery/reviews/sd15_pag_control_wall_repair.original-review.json", + "sha256": "sha256:bytes:68dd29ac4fc908290c864d1e0d913aec7dd9773e642e226a83fa75425db275d9", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", @@ -19396,13 +21205,13 @@ "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "3968c7cbe37a94789a9f839d8e83a9e0f102629b797d5f7baacf0304a8d18153", + "humanApprovalPacketSHA256": "d7e2fd301d16eede3da44cec1811930560ba0d958dfd46d8d0962eb3a22eea63", "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", - "provenanceTemplateId": "sd15_canny_guided_green_glass" + "provenanceTemplateId": "sd15_pag_control_wall_repair" }, { - "path": "template-gallery/reviews/sd15_canny_guided_green_glass.quality-review.json", - "sha256": "sha256:bytes:6b4eb4c2e53322bd651c6da7802034a81a968a063f4d68099d18a47b798b6a2a", + "path": "template-gallery/reviews/sd15_pag_control_wall_repair.quality-review.json", + "sha256": "sha256:bytes:2ebf376b23db382ffeeb0e2297864e4ad5ef7fac59db5a3e96e50c13c91d06e5", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", @@ -19423,13 +21232,13 @@ "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "3968c7cbe37a94789a9f839d8e83a9e0f102629b797d5f7baacf0304a8d18153", + "humanApprovalPacketSHA256": "d7e2fd301d16eede3da44cec1811930560ba0d958dfd46d8d0962eb3a22eea63", "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", - "provenanceTemplateId": "sd15_canny_guided_green_glass" + "provenanceTemplateId": "sd15_pag_control_wall_repair" }, { - "path": "template-gallery/reviews/sd15_canny_guided_green_glass.retained-template-provenance.json", - "sha256": "sha256:bytes:402d8a04c798edda4ccf43f0b2716520eb7b4e3e268b111ac029ce1ef95865bc", + "path": "template-gallery/reviews/sd15_pag_control_wall_repair.retained-template-provenance.json", + "sha256": "sha256:bytes:c362aab4aae99eddcf68dab637479045ec7c4cc703bf3fb84a90b54293acec01", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", @@ -19450,13 +21259,13 @@ "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "3968c7cbe37a94789a9f839d8e83a9e0f102629b797d5f7baacf0304a8d18153", + "humanApprovalPacketSHA256": "d7e2fd301d16eede3da44cec1811930560ba0d958dfd46d8d0962eb3a22eea63", "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", - "provenanceTemplateId": "sd15_canny_guided_green_glass" + "provenanceTemplateId": "sd15_pag_control_wall_repair" }, { - "path": "template-gallery/reviews/sd15_control_cobalt_handmade_paper.original-provenance.json", - "sha256": "sha256:bytes:da7eebeec6ee06c919bd2a1b06634fdc12a0656ba046561fb0540c165ebdee19", + "path": "template-gallery/reviews/sd15_pag_mountain_lake_watercolor.original-provenance.json", + "sha256": "sha256:bytes:53be917cea31e259033fb99bb4ff99b1b975abc7cad671b8eb2511794545082e", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", @@ -19477,13 +21286,13 @@ "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "d7e2fd301d16eede3da44cec1811930560ba0d958dfd46d8d0962eb3a22eea63", + "humanApprovalPacketSHA256": "c2df9edb92f8ff905b6c9a138a285e67c621f3d2dfa3232f859aaf963b725aca", "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", - "provenanceTemplateId": "sd15_control_cobalt_handmade_paper" + "provenanceTemplateId": "sd15_pag_mountain_lake_watercolor" }, { - "path": "template-gallery/reviews/sd15_control_cobalt_handmade_paper.original-review.json", - "sha256": "sha256:bytes:5323b4eaa717d668add0b374d57be2cc16458d2dba6a7dab91cef3054e6783e6", + "path": "template-gallery/reviews/sd15_pag_mountain_lake_watercolor.original-review.json", + "sha256": "sha256:bytes:e7226c4664a027c20670f6aa367d4c2751efbe4fc0569afe6cb137349a8f5406", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", @@ -19504,13 +21313,13 @@ "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "d7e2fd301d16eede3da44cec1811930560ba0d958dfd46d8d0962eb3a22eea63", + "humanApprovalPacketSHA256": "c2df9edb92f8ff905b6c9a138a285e67c621f3d2dfa3232f859aaf963b725aca", "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", - "provenanceTemplateId": "sd15_control_cobalt_handmade_paper" + "provenanceTemplateId": "sd15_pag_mountain_lake_watercolor" }, { - "path": "template-gallery/reviews/sd15_control_cobalt_handmade_paper.quality-review.json", - "sha256": "sha256:bytes:8d1bd3e6ea993d171004dc6960a2384635596ebb4a212694128b4c0596085a38", + "path": "template-gallery/reviews/sd15_pag_mountain_lake_watercolor.quality-review.json", + "sha256": "sha256:bytes:a76c9a2fbcb169ecc2498d87ebc3f17f640cd49c4ca906ffc117a281f885d2af", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", @@ -19531,13 +21340,13 @@ "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "d7e2fd301d16eede3da44cec1811930560ba0d958dfd46d8d0962eb3a22eea63", + "humanApprovalPacketSHA256": "c2df9edb92f8ff905b6c9a138a285e67c621f3d2dfa3232f859aaf963b725aca", "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", - "provenanceTemplateId": "sd15_control_cobalt_handmade_paper" + "provenanceTemplateId": "sd15_pag_mountain_lake_watercolor" }, { - "path": "template-gallery/reviews/sd15_control_cobalt_handmade_paper.retained-template-provenance.json", - "sha256": "sha256:bytes:9ab42723e81c7cad64ab3e8d5ffedeb21ab76c17a4aaf7e3d6f5e84e82f2133a", + "path": "template-gallery/reviews/sd15_pag_mountain_lake_watercolor.retained-template-provenance.json", + "sha256": "sha256:bytes:f2e571509ee047bbf0f2b7381ba505ec3204898db1f9d4bcf567ad1d661c1c75", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", @@ -19558,136 +21367,136 @@ "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "d7e2fd301d16eede3da44cec1811930560ba0d958dfd46d8d0962eb3a22eea63", + "humanApprovalPacketSHA256": "c2df9edb92f8ff905b6c9a138a285e67c621f3d2dfa3232f859aaf963b725aca", "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", - "provenanceTemplateId": "sd15_control_cobalt_handmade_paper" + "provenanceTemplateId": "sd15_pag_mountain_lake_watercolor" }, { - "path": "template-gallery/reviews/sd15_control_cobalt_studio_wall_repair.original-provenance.json", - "sha256": "sha256:bytes:19bf85731e13ea963aab7adba6556b86bbcded7d0030b29342738bb6ef165418", + "path": "template-gallery/reviews/sdxl_blue_glass_on_linen.original-provenance.json", + "sha256": "sha256:bytes:27a97a45a77e030c923d8bdd21038de3f89a94132da92d6313179f752949ac89", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14", - "sourceRevision": "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14", + "sourceUrl": "https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b", + "sourceRevision": "stabilityai/stable-diffusion-xl-base-1.0@462165984030d82259a11f4367a4eed129e94a7b", "sourceLicense": "MoDiff-authored Gallery metadata", "modelTerms": [ - "Publisher model terms at https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14" + "Publisher model terms at https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b" ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14 https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14" + "stabilityai/stable-diffusion-xl-base-1.0@462165984030d82259a11f4367a4eed129e94a7b https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "d7e2fd301d16eede3da44cec1811930560ba0d958dfd46d8d0962eb3a22eea63", + "humanApprovalPacketSHA256": "60b01498a2df5f4e4622cdc2f9a43c83d187820780d2425a19718c13707db501", "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", - "provenanceTemplateId": "sd15_control_cobalt_studio_wall_repair" + "provenanceTemplateId": "sdxl_blue_glass_on_linen" }, { - "path": "template-gallery/reviews/sd15_control_cobalt_studio_wall_repair.original-review.json", - "sha256": "sha256:bytes:972cd4b45f317e79624ad0f9d14361ad56ff661b9e8b5bebf049553317cb5af5", + "path": "template-gallery/reviews/sdxl_blue_glass_on_linen.original-review.json", + "sha256": "sha256:bytes:fabaeafe1e26297e9f1601776a60ecb99aff54d8bcd793f59efcdbb24aff75ca", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14", - "sourceRevision": "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14", + "sourceUrl": "https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b", + "sourceRevision": "stabilityai/stable-diffusion-xl-base-1.0@462165984030d82259a11f4367a4eed129e94a7b", "sourceLicense": "MoDiff-authored Gallery metadata", "modelTerms": [ - "Publisher model terms at https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14" + "Publisher model terms at https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b" ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14 https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14" + "stabilityai/stable-diffusion-xl-base-1.0@462165984030d82259a11f4367a4eed129e94a7b https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "d7e2fd301d16eede3da44cec1811930560ba0d958dfd46d8d0962eb3a22eea63", + "humanApprovalPacketSHA256": "60b01498a2df5f4e4622cdc2f9a43c83d187820780d2425a19718c13707db501", "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", - "provenanceTemplateId": "sd15_control_cobalt_studio_wall_repair" + "provenanceTemplateId": "sdxl_blue_glass_on_linen" }, { - "path": "template-gallery/reviews/sd15_control_cobalt_studio_wall_repair.quality-review.json", - "sha256": "sha256:bytes:ed1f8ea25aa626c59572eb6c03d8e6c55eae588e1e6378afef6adc536f1983d7", + "path": "template-gallery/reviews/sdxl_blue_glass_on_linen.quality-review.json", + "sha256": "sha256:bytes:ac2ad3f014c2418214a1f5c0d24da1c6e0f854b5f465b5f73fc86a49f691e690", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14", - "sourceRevision": "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14", + "sourceUrl": "https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b", + "sourceRevision": "stabilityai/stable-diffusion-xl-base-1.0@462165984030d82259a11f4367a4eed129e94a7b", "sourceLicense": "MoDiff-authored Gallery metadata", "modelTerms": [ - "Publisher model terms at https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14" + "Publisher model terms at https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b" ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14 https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14" + "stabilityai/stable-diffusion-xl-base-1.0@462165984030d82259a11f4367a4eed129e94a7b https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "d7e2fd301d16eede3da44cec1811930560ba0d958dfd46d8d0962eb3a22eea63", + "humanApprovalPacketSHA256": "60b01498a2df5f4e4622cdc2f9a43c83d187820780d2425a19718c13707db501", "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", - "provenanceTemplateId": "sd15_control_cobalt_studio_wall_repair" + "provenanceTemplateId": "sdxl_blue_glass_on_linen" }, { - "path": "template-gallery/reviews/sd15_control_cobalt_studio_wall_repair.retained-template-provenance.json", - "sha256": "sha256:bytes:fb2f08438b84f324cd9c37aaff2e4106e02c2302cc21a20e57d2a3ce456d4d12", + "path": "template-gallery/reviews/sdxl_blue_glass_on_linen.retained-template-provenance.json", + "sha256": "sha256:bytes:bc7bc5349f88639d71d68f5fbd560c09bae488e4240cd5c53c9731904f655896", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14", - "sourceRevision": "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14", + "sourceUrl": "https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b", + "sourceRevision": "stabilityai/stable-diffusion-xl-base-1.0@462165984030d82259a11f4367a4eed129e94a7b", "sourceLicense": "MoDiff-authored Gallery metadata", "modelTerms": [ - "Publisher model terms at https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14" + "Publisher model terms at https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b" ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14 https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14" + "stabilityai/stable-diffusion-xl-base-1.0@462165984030d82259a11f4367a4eed129e94a7b https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "d7e2fd301d16eede3da44cec1811930560ba0d958dfd46d8d0962eb3a22eea63", + "humanApprovalPacketSHA256": "60b01498a2df5f4e4622cdc2f9a43c83d187820780d2425a19718c13707db501", "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", - "provenanceTemplateId": "sd15_control_cobalt_studio_wall_repair" + "provenanceTemplateId": "sdxl_blue_glass_on_linen" }, { - "path": "template-gallery/reviews/sd15_pag_canny_guided_glass.original-provenance.json", - "sha256": "sha256:bytes:9c932db7355340ac4e8adf44b0d465192ee66096c6e811fd917ab7d0d6858881", + "path": "template-gallery/reviews/sdxl_canny_adapter_glass_study.original-provenance.json", + "sha256": "sha256:bytes:daf26190a849032e45d97c519a2d0a943ea9cab99937916d7f2f9b88b29a69a0", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14", - "sourceRevision": "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14", + "sourceUrl": "https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b", + "sourceRevision": "stabilityai/stable-diffusion-xl-base-1.0@462165984030d82259a11f4367a4eed129e94a7b", "sourceLicense": "MoDiff-authored Gallery metadata", "modelTerms": [ - "Publisher model terms at https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14" + "Publisher model terms at https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b" ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14 https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14" + "stabilityai/stable-diffusion-xl-base-1.0@462165984030d82259a11f4367a4eed129e94a7b https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", @@ -19695,26 +21504,26 @@ "reviewClass": "per-file-maintainer-accepted-retained-registration", "humanApprovalPacketSHA256": "3968c7cbe37a94789a9f839d8e83a9e0f102629b797d5f7baacf0304a8d18153", "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", - "provenanceTemplateId": "sd15_pag_canny_guided_glass" + "provenanceTemplateId": "sdxl_canny_adapter_glass_study" }, { - "path": "template-gallery/reviews/sd15_pag_canny_guided_glass.original-review.json", - "sha256": "sha256:bytes:71b3e8d9324b3a359982cc2544d97acaa55ad8fd919bba1c9638e337c2029b64", + "path": "template-gallery/reviews/sdxl_canny_adapter_glass_study.original-review.json", + "sha256": "sha256:bytes:305618170534dc7808c62234e6bc2a428e49d6eb5ed766aabb4aad4cc48f6e07", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14", - "sourceRevision": "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14", + "sourceUrl": "https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b", + "sourceRevision": "stabilityai/stable-diffusion-xl-base-1.0@462165984030d82259a11f4367a4eed129e94a7b", "sourceLicense": "MoDiff-authored Gallery metadata", "modelTerms": [ - "Publisher model terms at https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14" + "Publisher model terms at https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b" ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14 https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14" + "stabilityai/stable-diffusion-xl-base-1.0@462165984030d82259a11f4367a4eed129e94a7b https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", @@ -19722,26 +21531,26 @@ "reviewClass": "per-file-maintainer-accepted-retained-registration", "humanApprovalPacketSHA256": "3968c7cbe37a94789a9f839d8e83a9e0f102629b797d5f7baacf0304a8d18153", "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", - "provenanceTemplateId": "sd15_pag_canny_guided_glass" + "provenanceTemplateId": "sdxl_canny_adapter_glass_study" }, { - "path": "template-gallery/reviews/sd15_pag_canny_guided_glass.quality-review.json", - "sha256": "sha256:bytes:17e907b2f792b6f5d3a67cdb23e21cd610731baec7b7bd3914170fb801f4c807", + "path": "template-gallery/reviews/sdxl_canny_adapter_glass_study.quality-review.json", + "sha256": "sha256:bytes:f4766cc262cf8d06f5e643b7e4b11bf31ddb550de66b2274727948738550ab7b", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14", - "sourceRevision": "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14", + "sourceUrl": "https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b", + "sourceRevision": "stabilityai/stable-diffusion-xl-base-1.0@462165984030d82259a11f4367a4eed129e94a7b", "sourceLicense": "MoDiff-authored Gallery metadata", "modelTerms": [ - "Publisher model terms at https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14" + "Publisher model terms at https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b" ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14 https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14" + "stabilityai/stable-diffusion-xl-base-1.0@462165984030d82259a11f4367a4eed129e94a7b https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", @@ -19749,26 +21558,26 @@ "reviewClass": "per-file-maintainer-accepted-retained-registration", "humanApprovalPacketSHA256": "3968c7cbe37a94789a9f839d8e83a9e0f102629b797d5f7baacf0304a8d18153", "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", - "provenanceTemplateId": "sd15_pag_canny_guided_glass" + "provenanceTemplateId": "sdxl_canny_adapter_glass_study" }, { - "path": "template-gallery/reviews/sd15_pag_canny_guided_glass.retained-template-provenance.json", - "sha256": "sha256:bytes:7f00b5906e8f7b8b9f25ab10145851637e469edfb455660c72f08be72bee8b7b", + "path": "template-gallery/reviews/sdxl_canny_adapter_glass_study.retained-template-provenance.json", + "sha256": "sha256:bytes:3a6c1a9a6ce7a31c19275f7049b062f62739c7517e13e2ad5c512c805a5a68ef", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14", - "sourceRevision": "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14", + "sourceUrl": "https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b", + "sourceRevision": "stabilityai/stable-diffusion-xl-base-1.0@462165984030d82259a11f4367a4eed129e94a7b", "sourceLicense": "MoDiff-authored Gallery metadata", "modelTerms": [ - "Publisher model terms at https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14" + "Publisher model terms at https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b" ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14 https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14" + "stabilityai/stable-diffusion-xl-base-1.0@462165984030d82259a11f4367a4eed129e94a7b https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", @@ -19776,134 +21585,134 @@ "reviewClass": "per-file-maintainer-accepted-retained-registration", "humanApprovalPacketSHA256": "3968c7cbe37a94789a9f839d8e83a9e0f102629b797d5f7baacf0304a8d18153", "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", - "provenanceTemplateId": "sd15_pag_canny_guided_glass" + "provenanceTemplateId": "sdxl_canny_adapter_glass_study" }, { - "path": "template-gallery/reviews/sd15_pag_cobalt_studio_repair.original-provenance.json", - "sha256": "sha256:bytes:b3a227ef5f8f0ea481c446854ce4be387bfe434ff252d9a5d34887ddb2b69b55", + "path": "template-gallery/reviews/sdxl_clear_cobalt_backdrop.original-provenance.json", + "sha256": "sha256:bytes:7361ac84e232f55f7f8e19fae39c5abff4e4df36ac1d1c754ca4d9716d60b1df", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14", - "sourceRevision": "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14", + "sourceUrl": "https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b", + "sourceRevision": "stabilityai/stable-diffusion-xl-base-1.0@462165984030d82259a11f4367a4eed129e94a7b", "sourceLicense": "MoDiff-authored Gallery metadata", "modelTerms": [ - "Publisher model terms at https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14" + "Publisher model terms at https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b" ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14 https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14" + "stabilityai/stable-diffusion-xl-base-1.0@462165984030d82259a11f4367a4eed129e94a7b https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", - "reviewedAt": "2026-11-25", + "reviewedAt": "2026-11-24", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "c2df9edb92f8ff905b6c9a138a285e67c621f3d2dfa3232f859aaf963b725aca", - "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", - "provenanceTemplateId": "sd15_pag_cobalt_studio_repair" + "humanApprovalPacketSHA256": "d216f065bdc316366c6183592f657bcfbbd7cb05acd0e510c6b3877fe56bcec2", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped six saved cases with model terms retained.", + "provenanceTemplateId": "sdxl_clear_cobalt_backdrop" }, { - "path": "template-gallery/reviews/sd15_pag_cobalt_studio_repair.original-review.json", - "sha256": "sha256:bytes:dcbaa8d96f77097c5e763de7dd3602e62e4dc4d1302b2d4e7a426ae606b94de3", + "path": "template-gallery/reviews/sdxl_clear_cobalt_backdrop.original-review.json", + "sha256": "sha256:bytes:d7edf6240c066f9d48ab24fd45c77556b2afa52e145f530428c93620496ddf15", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14", - "sourceRevision": "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14", + "sourceUrl": "https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b", + "sourceRevision": "stabilityai/stable-diffusion-xl-base-1.0@462165984030d82259a11f4367a4eed129e94a7b", "sourceLicense": "MoDiff-authored Gallery metadata", "modelTerms": [ - "Publisher model terms at https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14" + "Publisher model terms at https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b" ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14 https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14" + "stabilityai/stable-diffusion-xl-base-1.0@462165984030d82259a11f4367a4eed129e94a7b https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", - "reviewedAt": "2026-11-25", - "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "c2df9edb92f8ff905b6c9a138a285e67c621f3d2dfa3232f859aaf963b725aca", - "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", - "provenanceTemplateId": "sd15_pag_cobalt_studio_repair" + "reviewedAt": "2026-11-24", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "d216f065bdc316366c6183592f657bcfbbd7cb05acd0e510c6b3877fe56bcec2", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped six saved cases with model terms retained.", + "provenanceTemplateId": "sdxl_clear_cobalt_backdrop" }, { - "path": "template-gallery/reviews/sd15_pag_cobalt_studio_repair.quality-review.json", - "sha256": "sha256:bytes:ddfa89f8e656c4790a14c0e9dcfffa24a1a034cab5c1bb62390307bfa70bc9fc", + "path": "template-gallery/reviews/sdxl_clear_cobalt_backdrop.quality-review.json", + "sha256": "sha256:bytes:c5853176bee61c270f06f94714ff9e968eb466ab7198d26d78a1d9dc4482cb41", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14", - "sourceRevision": "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14", + "sourceUrl": "https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b", + "sourceRevision": "stabilityai/stable-diffusion-xl-base-1.0@462165984030d82259a11f4367a4eed129e94a7b", "sourceLicense": "MoDiff-authored Gallery metadata", "modelTerms": [ - "Publisher model terms at https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14" + "Publisher model terms at https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b" ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14 https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14" + "stabilityai/stable-diffusion-xl-base-1.0@462165984030d82259a11f4367a4eed129e94a7b https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", - "reviewedAt": "2026-11-25", + "reviewedAt": "2026-11-24", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "c2df9edb92f8ff905b6c9a138a285e67c621f3d2dfa3232f859aaf963b725aca", - "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", - "provenanceTemplateId": "sd15_pag_cobalt_studio_repair" + "humanApprovalPacketSHA256": "d216f065bdc316366c6183592f657bcfbbd7cb05acd0e510c6b3877fe56bcec2", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped six saved cases with model terms retained.", + "provenanceTemplateId": "sdxl_clear_cobalt_backdrop" }, { - "path": "template-gallery/reviews/sd15_pag_cobalt_studio_repair.retained-template-provenance.json", - "sha256": "sha256:bytes:e2aade8abc03d27c9f342023c60f27dcbb77f28a94d7605522ae0e862672eeed", + "path": "template-gallery/reviews/sdxl_clear_cobalt_backdrop.retained-template-provenance.json", + "sha256": "sha256:bytes:b680690954be3c7784aed2b97110d50706dc3ebb56df9e61611b203150a90b39", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14", - "sourceRevision": "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14", + "sourceUrl": "https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b", + "sourceRevision": "stabilityai/stable-diffusion-xl-base-1.0@462165984030d82259a11f4367a4eed129e94a7b", "sourceLicense": "MoDiff-authored Gallery metadata", "modelTerms": [ - "Publisher model terms at https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14" + "Publisher model terms at https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b" ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14 https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14" + "stabilityai/stable-diffusion-xl-base-1.0@462165984030d82259a11f4367a4eed129e94a7b https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", - "reviewedAt": "2026-11-25", + "reviewedAt": "2026-11-24", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "c2df9edb92f8ff905b6c9a138a285e67c621f3d2dfa3232f859aaf963b725aca", - "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", - "provenanceTemplateId": "sd15_pag_cobalt_studio_repair" + "humanApprovalPacketSHA256": "d216f065bdc316366c6183592f657bcfbbd7cb05acd0e510c6b3877fe56bcec2", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped six saved cases with model terms retained.", + "provenanceTemplateId": "sdxl_clear_cobalt_backdrop" }, { - "path": "template-gallery/reviews/sd15_pag_control_wall_repair.original-provenance.json", - "sha256": "sha256:bytes:aa19ad771615c138e20115977179f7a966ea7b8cdb2d08e358ee505d2954c623", + "path": "template-gallery/reviews/sdxl_control_golden_boathouse.original-provenance.json", + "sha256": "sha256:bytes:ecfe216b3884fc1471abf2305a3f4e0216b4b7f2eb05324720e081cbcf945eb1", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14", - "sourceRevision": "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14", + "sourceUrl": "https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b", + "sourceRevision": "stabilityai/stable-diffusion-xl-base-1.0@462165984030d82259a11f4367a4eed129e94a7b", "sourceLicense": "MoDiff-authored Gallery metadata", "modelTerms": [ - "Publisher model terms at https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14" + "Publisher model terms at https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b" ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14 https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14" + "stabilityai/stable-diffusion-xl-base-1.0@462165984030d82259a11f4367a4eed129e94a7b https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", @@ -19911,26 +21720,26 @@ "reviewClass": "per-file-maintainer-accepted-retained-registration", "humanApprovalPacketSHA256": "d7e2fd301d16eede3da44cec1811930560ba0d958dfd46d8d0962eb3a22eea63", "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", - "provenanceTemplateId": "sd15_pag_control_wall_repair" + "provenanceTemplateId": "sdxl_control_golden_boathouse" }, { - "path": "template-gallery/reviews/sd15_pag_control_wall_repair.original-review.json", - "sha256": "sha256:bytes:68dd29ac4fc908290c864d1e0d913aec7dd9773e642e226a83fa75425db275d9", + "path": "template-gallery/reviews/sdxl_control_golden_boathouse.original-review.json", + "sha256": "sha256:bytes:c552f8bfe66a6983be2ab31844c4a468a6132e0e43a8a4553e67a497ec70a8ef", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14", - "sourceRevision": "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14", + "sourceUrl": "https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b", + "sourceRevision": "stabilityai/stable-diffusion-xl-base-1.0@462165984030d82259a11f4367a4eed129e94a7b", "sourceLicense": "MoDiff-authored Gallery metadata", "modelTerms": [ - "Publisher model terms at https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14" + "Publisher model terms at https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b" ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14 https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14" + "stabilityai/stable-diffusion-xl-base-1.0@462165984030d82259a11f4367a4eed129e94a7b https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", @@ -19938,26 +21747,26 @@ "reviewClass": "per-file-maintainer-accepted-retained-registration", "humanApprovalPacketSHA256": "d7e2fd301d16eede3da44cec1811930560ba0d958dfd46d8d0962eb3a22eea63", "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", - "provenanceTemplateId": "sd15_pag_control_wall_repair" + "provenanceTemplateId": "sdxl_control_golden_boathouse" }, { - "path": "template-gallery/reviews/sd15_pag_control_wall_repair.quality-review.json", - "sha256": "sha256:bytes:2ebf376b23db382ffeeb0e2297864e4ad5ef7fac59db5a3e96e50c13c91d06e5", + "path": "template-gallery/reviews/sdxl_control_golden_boathouse.quality-review.json", + "sha256": "sha256:bytes:3fdc382b76e87f894d2a03a5666ce990b33da15e348abf47e7176aaf82fb8f97", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14", - "sourceRevision": "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14", + "sourceUrl": "https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b", + "sourceRevision": "stabilityai/stable-diffusion-xl-base-1.0@462165984030d82259a11f4367a4eed129e94a7b", "sourceLicense": "MoDiff-authored Gallery metadata", "modelTerms": [ - "Publisher model terms at https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14" + "Publisher model terms at https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b" ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14 https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14" + "stabilityai/stable-diffusion-xl-base-1.0@462165984030d82259a11f4367a4eed129e94a7b https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", @@ -19965,26 +21774,26 @@ "reviewClass": "per-file-maintainer-accepted-retained-registration", "humanApprovalPacketSHA256": "d7e2fd301d16eede3da44cec1811930560ba0d958dfd46d8d0962eb3a22eea63", "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", - "provenanceTemplateId": "sd15_pag_control_wall_repair" + "provenanceTemplateId": "sdxl_control_golden_boathouse" }, { - "path": "template-gallery/reviews/sd15_pag_control_wall_repair.retained-template-provenance.json", - "sha256": "sha256:bytes:c362aab4aae99eddcf68dab637479045ec7c4cc703bf3fb84a90b54293acec01", + "path": "template-gallery/reviews/sdxl_control_golden_boathouse.retained-template-provenance.json", + "sha256": "sha256:bytes:5d442e9e2219d92d7360b927357bc34f1d8948776601d716369786fcd2a153b9", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14", - "sourceRevision": "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14", + "sourceUrl": "https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b", + "sourceRevision": "stabilityai/stable-diffusion-xl-base-1.0@462165984030d82259a11f4367a4eed129e94a7b", "sourceLicense": "MoDiff-authored Gallery metadata", "modelTerms": [ - "Publisher model terms at https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14" + "Publisher model terms at https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b" ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14 https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14" + "stabilityai/stable-diffusion-xl-base-1.0@462165984030d82259a11f4367a4eed129e94a7b https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", @@ -19992,119 +21801,119 @@ "reviewClass": "per-file-maintainer-accepted-retained-registration", "humanApprovalPacketSHA256": "d7e2fd301d16eede3da44cec1811930560ba0d958dfd46d8d0962eb3a22eea63", "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", - "provenanceTemplateId": "sd15_pag_control_wall_repair" + "provenanceTemplateId": "sdxl_control_golden_boathouse" }, { - "path": "template-gallery/reviews/sd15_pag_mountain_lake_watercolor.original-provenance.json", - "sha256": "sha256:bytes:53be917cea31e259033fb99bb4ff99b1b975abc7cad671b8eb2511794545082e", + "path": "template-gallery/reviews/sdxl_control_inpaint_warm_plaster.original-provenance.json", + "sha256": "sha256:bytes:661ddabb9dd317859660c6d6c56737672f0969c2637153b2aa3a14b1422cac0b", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14", - "sourceRevision": "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14", + "sourceUrl": "https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b", + "sourceRevision": "stabilityai/stable-diffusion-xl-base-1.0@462165984030d82259a11f4367a4eed129e94a7b", "sourceLicense": "MoDiff-authored Gallery metadata", "modelTerms": [ - "Publisher model terms at https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14" + "Publisher model terms at https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b" ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14 https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14" + "stabilityai/stable-diffusion-xl-base-1.0@462165984030d82259a11f4367a4eed129e94a7b https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "c2df9edb92f8ff905b6c9a138a285e67c621f3d2dfa3232f859aaf963b725aca", + "humanApprovalPacketSHA256": "3968c7cbe37a94789a9f839d8e83a9e0f102629b797d5f7baacf0304a8d18153", "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", - "provenanceTemplateId": "sd15_pag_mountain_lake_watercolor" + "provenanceTemplateId": "sdxl_control_inpaint_warm_plaster" }, { - "path": "template-gallery/reviews/sd15_pag_mountain_lake_watercolor.original-review.json", - "sha256": "sha256:bytes:e7226c4664a027c20670f6aa367d4c2751efbe4fc0569afe6cb137349a8f5406", + "path": "template-gallery/reviews/sdxl_control_inpaint_warm_plaster.original-review.json", + "sha256": "sha256:bytes:9ec0f8ff6cc645c9c9c9c9102965753af931061398629edb65727f99d2cb7faa", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14", - "sourceRevision": "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14", + "sourceUrl": "https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b", + "sourceRevision": "stabilityai/stable-diffusion-xl-base-1.0@462165984030d82259a11f4367a4eed129e94a7b", "sourceLicense": "MoDiff-authored Gallery metadata", "modelTerms": [ - "Publisher model terms at https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14" + "Publisher model terms at https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b" ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14 https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14" + "stabilityai/stable-diffusion-xl-base-1.0@462165984030d82259a11f4367a4eed129e94a7b https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "c2df9edb92f8ff905b6c9a138a285e67c621f3d2dfa3232f859aaf963b725aca", + "humanApprovalPacketSHA256": "3968c7cbe37a94789a9f839d8e83a9e0f102629b797d5f7baacf0304a8d18153", "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", - "provenanceTemplateId": "sd15_pag_mountain_lake_watercolor" + "provenanceTemplateId": "sdxl_control_inpaint_warm_plaster" }, { - "path": "template-gallery/reviews/sd15_pag_mountain_lake_watercolor.quality-review.json", - "sha256": "sha256:bytes:a76c9a2fbcb169ecc2498d87ebc3f17f640cd49c4ca906ffc117a281f885d2af", + "path": "template-gallery/reviews/sdxl_control_inpaint_warm_plaster.quality-review.json", + "sha256": "sha256:bytes:4e3e6d321e3c4b7b17ba5ff675c610bd6c0a86779bda8e1c2fa0b3c25754d15e", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14", - "sourceRevision": "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14", + "sourceUrl": "https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b", + "sourceRevision": "stabilityai/stable-diffusion-xl-base-1.0@462165984030d82259a11f4367a4eed129e94a7b", "sourceLicense": "MoDiff-authored Gallery metadata", "modelTerms": [ - "Publisher model terms at https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14" + "Publisher model terms at https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b" ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14 https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14" + "stabilityai/stable-diffusion-xl-base-1.0@462165984030d82259a11f4367a4eed129e94a7b https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "c2df9edb92f8ff905b6c9a138a285e67c621f3d2dfa3232f859aaf963b725aca", + "humanApprovalPacketSHA256": "3968c7cbe37a94789a9f839d8e83a9e0f102629b797d5f7baacf0304a8d18153", "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", - "provenanceTemplateId": "sd15_pag_mountain_lake_watercolor" + "provenanceTemplateId": "sdxl_control_inpaint_warm_plaster" }, { - "path": "template-gallery/reviews/sd15_pag_mountain_lake_watercolor.retained-template-provenance.json", - "sha256": "sha256:bytes:f2e571509ee047bbf0f2b7381ba505ec3204898db1f9d4bcf567ad1d661c1c75", + "path": "template-gallery/reviews/sdxl_control_inpaint_warm_plaster.retained-template-provenance.json", + "sha256": "sha256:bytes:b55fbe6ba9d7b2243d12fe0227026b502eb8674412f4da62cc0ef72b57a91370", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14", - "sourceRevision": "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14", + "sourceUrl": "https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b", + "sourceRevision": "stabilityai/stable-diffusion-xl-base-1.0@462165984030d82259a11f4367a4eed129e94a7b", "sourceLicense": "MoDiff-authored Gallery metadata", "modelTerms": [ - "Publisher model terms at https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14" + "Publisher model terms at https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b" ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14 https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14" + "stabilityai/stable-diffusion-xl-base-1.0@462165984030d82259a11f4367a4eed129e94a7b https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "c2df9edb92f8ff905b6c9a138a285e67c621f3d2dfa3232f859aaf963b725aca", + "humanApprovalPacketSHA256": "3968c7cbe37a94789a9f839d8e83a9e0f102629b797d5f7baacf0304a8d18153", "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", - "provenanceTemplateId": "sd15_pag_mountain_lake_watercolor" + "provenanceTemplateId": "sdxl_control_inpaint_warm_plaster" }, { - "path": "template-gallery/reviews/sdxl_blue_glass_on_linen.original-provenance.json", - "sha256": "sha256:bytes:27a97a45a77e030c923d8bdd21038de3f89a94132da92d6313179f752949ac89", + "path": "template-gallery/reviews/sdxl_controlnet_glass_study_on_slate.original-provenance.json", + "sha256": "sha256:bytes:5eff28279014893ed1b626866eef574cb72798d376da8faef83766c89e3e8223", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", @@ -20125,13 +21934,13 @@ "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "60b01498a2df5f4e4622cdc2f9a43c83d187820780d2425a19718c13707db501", + "humanApprovalPacketSHA256": "3968c7cbe37a94789a9f839d8e83a9e0f102629b797d5f7baacf0304a8d18153", "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", - "provenanceTemplateId": "sdxl_blue_glass_on_linen" + "provenanceTemplateId": "sdxl_controlnet_glass_study_on_slate" }, { - "path": "template-gallery/reviews/sdxl_blue_glass_on_linen.original-review.json", - "sha256": "sha256:bytes:fabaeafe1e26297e9f1601776a60ecb99aff54d8bcd793f59efcdbb24aff75ca", + "path": "template-gallery/reviews/sdxl_controlnet_glass_study_on_slate.original-review.json", + "sha256": "sha256:bytes:42676c7dd7b9bd9c2062dd771f1d63f7507670609ba6ef543b066877c6f86de1", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", @@ -20152,13 +21961,13 @@ "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "60b01498a2df5f4e4622cdc2f9a43c83d187820780d2425a19718c13707db501", + "humanApprovalPacketSHA256": "3968c7cbe37a94789a9f839d8e83a9e0f102629b797d5f7baacf0304a8d18153", "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", - "provenanceTemplateId": "sdxl_blue_glass_on_linen" + "provenanceTemplateId": "sdxl_controlnet_glass_study_on_slate" }, { - "path": "template-gallery/reviews/sdxl_blue_glass_on_linen.quality-review.json", - "sha256": "sha256:bytes:ac2ad3f014c2418214a1f5c0d24da1c6e0f854b5f465b5f73fc86a49f691e690", + "path": "template-gallery/reviews/sdxl_controlnet_glass_study_on_slate.quality-review.json", + "sha256": "sha256:bytes:3ad7e229aa4536d60a0337200d22d47e753f7770edbce0528a7dd89f3f7f0895", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", @@ -20179,13 +21988,13 @@ "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "60b01498a2df5f4e4622cdc2f9a43c83d187820780d2425a19718c13707db501", + "humanApprovalPacketSHA256": "3968c7cbe37a94789a9f839d8e83a9e0f102629b797d5f7baacf0304a8d18153", "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", - "provenanceTemplateId": "sdxl_blue_glass_on_linen" + "provenanceTemplateId": "sdxl_controlnet_glass_study_on_slate" }, { - "path": "template-gallery/reviews/sdxl_blue_glass_on_linen.retained-template-provenance.json", - "sha256": "sha256:bytes:bc7bc5349f88639d71d68f5fbd560c09bae488e4240cd5c53c9731904f655896", + "path": "template-gallery/reviews/sdxl_controlnet_glass_study_on_slate.retained-template-provenance.json", + "sha256": "sha256:bytes:564bd43c3c23f41f40e46ee762ad2a3c61e63ca7a5600f8af0fdf92b263856fe", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", @@ -20206,13 +22015,13 @@ "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "60b01498a2df5f4e4622cdc2f9a43c83d187820780d2425a19718c13707db501", + "humanApprovalPacketSHA256": "3968c7cbe37a94789a9f839d8e83a9e0f102629b797d5f7baacf0304a8d18153", "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", - "provenanceTemplateId": "sdxl_blue_glass_on_linen" + "provenanceTemplateId": "sdxl_controlnet_glass_study_on_slate" }, { - "path": "template-gallery/reviews/sdxl_canny_adapter_glass_study.original-provenance.json", - "sha256": "sha256:bytes:daf26190a849032e45d97c519a2d0a943ea9cab99937916d7f2f9b88b29a69a0", + "path": "template-gallery/reviews/sdxl_pag_cobalt_wall.original-provenance.json", + "sha256": "sha256:bytes:73001e41f7161d3d7f501d8901c64ea75b69926342d874f517161846bbc2c65e", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", @@ -20233,13 +22042,13 @@ "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "3968c7cbe37a94789a9f839d8e83a9e0f102629b797d5f7baacf0304a8d18153", + "humanApprovalPacketSHA256": "60b01498a2df5f4e4622cdc2f9a43c83d187820780d2425a19718c13707db501", "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", - "provenanceTemplateId": "sdxl_canny_adapter_glass_study" + "provenanceTemplateId": "sdxl_pag_cobalt_wall" }, { - "path": "template-gallery/reviews/sdxl_canny_adapter_glass_study.original-review.json", - "sha256": "sha256:bytes:305618170534dc7808c62234e6bc2a428e49d6eb5ed766aabb4aad4cc48f6e07", + "path": "template-gallery/reviews/sdxl_pag_cobalt_wall.original-review.json", + "sha256": "sha256:bytes:9c33914daf546f076a1cd4248d62bca41f48046bbf32641336a61e6af8ce5ae6", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", @@ -20260,13 +22069,13 @@ "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "3968c7cbe37a94789a9f839d8e83a9e0f102629b797d5f7baacf0304a8d18153", + "humanApprovalPacketSHA256": "60b01498a2df5f4e4622cdc2f9a43c83d187820780d2425a19718c13707db501", "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", - "provenanceTemplateId": "sdxl_canny_adapter_glass_study" + "provenanceTemplateId": "sdxl_pag_cobalt_wall" }, { - "path": "template-gallery/reviews/sdxl_canny_adapter_glass_study.quality-review.json", - "sha256": "sha256:bytes:f4766cc262cf8d06f5e643b7e4b11bf31ddb550de66b2274727948738550ab7b", + "path": "template-gallery/reviews/sdxl_pag_cobalt_wall.quality-review.json", + "sha256": "sha256:bytes:792bcb8050a146a925e0a3459c499e41ca08f710496292775ed7a85acf4e1ddf", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", @@ -20287,13 +22096,13 @@ "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "3968c7cbe37a94789a9f839d8e83a9e0f102629b797d5f7baacf0304a8d18153", + "humanApprovalPacketSHA256": "60b01498a2df5f4e4622cdc2f9a43c83d187820780d2425a19718c13707db501", "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", - "provenanceTemplateId": "sdxl_canny_adapter_glass_study" + "provenanceTemplateId": "sdxl_pag_cobalt_wall" }, { - "path": "template-gallery/reviews/sdxl_canny_adapter_glass_study.retained-template-provenance.json", - "sha256": "sha256:bytes:3a6c1a9a6ce7a31c19275f7049b062f62739c7517e13e2ad5c512c805a5a68ef", + "path": "template-gallery/reviews/sdxl_pag_cobalt_wall.retained-template-provenance.json", + "sha256": "sha256:bytes:69442605e67b4da6af5ab3971559219066b7c569139088412a65945487509612", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", @@ -20314,13 +22123,13 @@ "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "3968c7cbe37a94789a9f839d8e83a9e0f102629b797d5f7baacf0304a8d18153", + "humanApprovalPacketSHA256": "60b01498a2df5f4e4622cdc2f9a43c83d187820780d2425a19718c13707db501", "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", - "provenanceTemplateId": "sdxl_canny_adapter_glass_study" + "provenanceTemplateId": "sdxl_pag_cobalt_wall" }, { - "path": "template-gallery/reviews/sdxl_clear_cobalt_backdrop.original-provenance.json", - "sha256": "sha256:bytes:7361ac84e232f55f7f8e19fae39c5abff4e4df36ac1d1c754ca4d9716d60b1df", + "path": "template-gallery/reviews/sdxl_pag_snow_cabin.original-provenance.json", + "sha256": "sha256:bytes:9f8fc8e1ec02ce87e641958fdbded7f199cee15cde9e077cbb40b12e0e8d7d93", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", @@ -20339,15 +22148,15 @@ ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", - "reviewedAt": "2026-11-24", + "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "d216f065bdc316366c6183592f657bcfbbd7cb05acd0e510c6b3877fe56bcec2", - "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped six saved cases with model terms retained.", - "provenanceTemplateId": "sdxl_clear_cobalt_backdrop" + "humanApprovalPacketSHA256": "d7e2fd301d16eede3da44cec1811930560ba0d958dfd46d8d0962eb3a22eea63", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "sdxl_pag_snow_cabin" }, { - "path": "template-gallery/reviews/sdxl_clear_cobalt_backdrop.original-review.json", - "sha256": "sha256:bytes:d7edf6240c066f9d48ab24fd45c77556b2afa52e145f530428c93620496ddf15", + "path": "template-gallery/reviews/sdxl_pag_snow_cabin.original-review.json", + "sha256": "sha256:bytes:5b23c67819bad2bb24ccdbd2058df59a33a560077c260097e5711ef9a74746ba", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", @@ -20366,15 +22175,15 @@ ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", - "reviewedAt": "2026-11-24", + "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "d216f065bdc316366c6183592f657bcfbbd7cb05acd0e510c6b3877fe56bcec2", - "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped six saved cases with model terms retained.", - "provenanceTemplateId": "sdxl_clear_cobalt_backdrop" + "humanApprovalPacketSHA256": "d7e2fd301d16eede3da44cec1811930560ba0d958dfd46d8d0962eb3a22eea63", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "sdxl_pag_snow_cabin" }, { - "path": "template-gallery/reviews/sdxl_clear_cobalt_backdrop.quality-review.json", - "sha256": "sha256:bytes:c5853176bee61c270f06f94714ff9e968eb466ab7198d26d78a1d9dc4482cb41", + "path": "template-gallery/reviews/sdxl_pag_snow_cabin.quality-review.json", + "sha256": "sha256:bytes:d29b39aeafcf213fbcfff098372b9aad723d5a08c8fd63970f98162ed64e8ad3", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", @@ -20393,15 +22202,15 @@ ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", - "reviewedAt": "2026-11-24", + "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "d216f065bdc316366c6183592f657bcfbbd7cb05acd0e510c6b3877fe56bcec2", - "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped six saved cases with model terms retained.", - "provenanceTemplateId": "sdxl_clear_cobalt_backdrop" + "humanApprovalPacketSHA256": "d7e2fd301d16eede3da44cec1811930560ba0d958dfd46d8d0962eb3a22eea63", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "sdxl_pag_snow_cabin" }, { - "path": "template-gallery/reviews/sdxl_clear_cobalt_backdrop.retained-template-provenance.json", - "sha256": "sha256:bytes:b680690954be3c7784aed2b97110d50706dc3ebb56df9e61611b203150a90b39", + "path": "template-gallery/reviews/sdxl_pag_snow_cabin.retained-template-provenance.json", + "sha256": "sha256:bytes:d82c38326bd8b615ed7a934890b979e34f2870f8b0c7aa6f919f0b541d828905", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", @@ -20420,501 +22229,539 @@ ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", - "reviewedAt": "2026-11-24", + "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "d216f065bdc316366c6183592f657bcfbbd7cb05acd0e510c6b3877fe56bcec2", - "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped six saved cases with model terms retained.", - "provenanceTemplateId": "sdxl_clear_cobalt_backdrop" + "humanApprovalPacketSHA256": "d7e2fd301d16eede3da44cec1811930560ba0d958dfd46d8d0962eb3a22eea63", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "sdxl_pag_snow_cabin" }, { - "path": "template-gallery/reviews/sdxl_control_golden_boathouse.original-provenance.json", - "sha256": "sha256:bytes:ecfe216b3884fc1471abf2305a3f4e0216b4b7f2eb05324720e081cbcf945eb1", + "path": "template-gallery/reviews/sdxl_pix2pix_pale_amber_glass.original-provenance.json", + "sha256": "sha256:bytes:173457c9a8b1562e8268041daa277812a04739145a537765cdcb49278cabce33", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b", - "sourceRevision": "stabilityai/stable-diffusion-xl-base-1.0@462165984030d82259a11f4367a4eed129e94a7b", + "sourceUrl": "https://huggingface.co/diffusers/sdxl-instructpix2pix-768/tree/06653d47f8d22f2c2205a5884d6a24c5e76d2ca7", + "sourceRevision": "diffusers/sdxl-instructpix2pix-768@06653d47f8d22f2c2205a5884d6a24c5e76d2ca7", "sourceLicense": "MoDiff-authored Gallery metadata", "modelTerms": [ - "Publisher model terms at https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b" + "Publisher model terms at https://huggingface.co/diffusers/sdxl-instructpix2pix-768/tree/06653d47f8d22f2c2205a5884d6a24c5e76d2ca7" ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "stabilityai/stable-diffusion-xl-base-1.0@462165984030d82259a11f4367a4eed129e94a7b https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b" + "diffusers/sdxl-instructpix2pix-768@06653d47f8d22f2c2205a5884d6a24c5e76d2ca7 https://huggingface.co/diffusers/sdxl-instructpix2pix-768/tree/06653d47f8d22f2c2205a5884d6a24c5e76d2ca7" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "d7e2fd301d16eede3da44cec1811930560ba0d958dfd46d8d0962eb3a22eea63", + "humanApprovalPacketSHA256": "c2df9edb92f8ff905b6c9a138a285e67c621f3d2dfa3232f859aaf963b725aca", "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", - "provenanceTemplateId": "sdxl_control_golden_boathouse" + "provenanceTemplateId": "sdxl_pix2pix_pale_amber_glass" }, { - "path": "template-gallery/reviews/sdxl_control_golden_boathouse.original-review.json", - "sha256": "sha256:bytes:c552f8bfe66a6983be2ab31844c4a468a6132e0e43a8a4553e67a497ec70a8ef", + "path": "template-gallery/reviews/sdxl_pix2pix_pale_amber_glass.original-review.json", + "sha256": "sha256:bytes:8f6ce6ee6887bc2d878b762faa054f5a26d6853c11fadc6ca32b0f71fb4ad080", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b", - "sourceRevision": "stabilityai/stable-diffusion-xl-base-1.0@462165984030d82259a11f4367a4eed129e94a7b", + "sourceUrl": "https://huggingface.co/diffusers/sdxl-instructpix2pix-768/tree/06653d47f8d22f2c2205a5884d6a24c5e76d2ca7", + "sourceRevision": "diffusers/sdxl-instructpix2pix-768@06653d47f8d22f2c2205a5884d6a24c5e76d2ca7", "sourceLicense": "MoDiff-authored Gallery metadata", "modelTerms": [ - "Publisher model terms at https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b" + "Publisher model terms at https://huggingface.co/diffusers/sdxl-instructpix2pix-768/tree/06653d47f8d22f2c2205a5884d6a24c5e76d2ca7" ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "stabilityai/stable-diffusion-xl-base-1.0@462165984030d82259a11f4367a4eed129e94a7b https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b" + "diffusers/sdxl-instructpix2pix-768@06653d47f8d22f2c2205a5884d6a24c5e76d2ca7 https://huggingface.co/diffusers/sdxl-instructpix2pix-768/tree/06653d47f8d22f2c2205a5884d6a24c5e76d2ca7" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "d7e2fd301d16eede3da44cec1811930560ba0d958dfd46d8d0962eb3a22eea63", + "humanApprovalPacketSHA256": "c2df9edb92f8ff905b6c9a138a285e67c621f3d2dfa3232f859aaf963b725aca", "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", - "provenanceTemplateId": "sdxl_control_golden_boathouse" + "provenanceTemplateId": "sdxl_pix2pix_pale_amber_glass" }, { - "path": "template-gallery/reviews/sdxl_control_golden_boathouse.quality-review.json", - "sha256": "sha256:bytes:3fdc382b76e87f894d2a03a5666ce990b33da15e348abf47e7176aaf82fb8f97", + "path": "template-gallery/reviews/sdxl_pix2pix_pale_amber_glass.quality-review.json", + "sha256": "sha256:bytes:214f457d0759bb55820c36572a44b2cf144ac11d6b87180326a1dd72ec903e12", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b", - "sourceRevision": "stabilityai/stable-diffusion-xl-base-1.0@462165984030d82259a11f4367a4eed129e94a7b", + "sourceUrl": "https://huggingface.co/diffusers/sdxl-instructpix2pix-768/tree/06653d47f8d22f2c2205a5884d6a24c5e76d2ca7", + "sourceRevision": "diffusers/sdxl-instructpix2pix-768@06653d47f8d22f2c2205a5884d6a24c5e76d2ca7", "sourceLicense": "MoDiff-authored Gallery metadata", "modelTerms": [ - "Publisher model terms at https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b" + "Publisher model terms at https://huggingface.co/diffusers/sdxl-instructpix2pix-768/tree/06653d47f8d22f2c2205a5884d6a24c5e76d2ca7" ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "stabilityai/stable-diffusion-xl-base-1.0@462165984030d82259a11f4367a4eed129e94a7b https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b" + "diffusers/sdxl-instructpix2pix-768@06653d47f8d22f2c2205a5884d6a24c5e76d2ca7 https://huggingface.co/diffusers/sdxl-instructpix2pix-768/tree/06653d47f8d22f2c2205a5884d6a24c5e76d2ca7" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "d7e2fd301d16eede3da44cec1811930560ba0d958dfd46d8d0962eb3a22eea63", + "humanApprovalPacketSHA256": "c2df9edb92f8ff905b6c9a138a285e67c621f3d2dfa3232f859aaf963b725aca", "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", - "provenanceTemplateId": "sdxl_control_golden_boathouse" + "provenanceTemplateId": "sdxl_pix2pix_pale_amber_glass" }, { - "path": "template-gallery/reviews/sdxl_control_golden_boathouse.retained-template-provenance.json", - "sha256": "sha256:bytes:5d442e9e2219d92d7360b927357bc34f1d8948776601d716369786fcd2a153b9", + "path": "template-gallery/reviews/sdxl_pix2pix_pale_amber_glass.retained-template-provenance.json", + "sha256": "sha256:bytes:571dbef32e64cbea069c54c9a71408eb47cbf6854dbbb10e9060dfe04758cf99", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b", - "sourceRevision": "stabilityai/stable-diffusion-xl-base-1.0@462165984030d82259a11f4367a4eed129e94a7b", + "sourceUrl": "https://huggingface.co/diffusers/sdxl-instructpix2pix-768/tree/06653d47f8d22f2c2205a5884d6a24c5e76d2ca7", + "sourceRevision": "diffusers/sdxl-instructpix2pix-768@06653d47f8d22f2c2205a5884d6a24c5e76d2ca7", "sourceLicense": "MoDiff-authored Gallery metadata", "modelTerms": [ - "Publisher model terms at https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b" + "Publisher model terms at https://huggingface.co/diffusers/sdxl-instructpix2pix-768/tree/06653d47f8d22f2c2205a5884d6a24c5e76d2ca7" ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "stabilityai/stable-diffusion-xl-base-1.0@462165984030d82259a11f4367a4eed129e94a7b https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b" + "diffusers/sdxl-instructpix2pix-768@06653d47f8d22f2c2205a5884d6a24c5e76d2ca7 https://huggingface.co/diffusers/sdxl-instructpix2pix-768/tree/06653d47f8d22f2c2205a5884d6a24c5e76d2ca7" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "d7e2fd301d16eede3da44cec1811930560ba0d958dfd46d8d0962eb3a22eea63", + "humanApprovalPacketSHA256": "c2df9edb92f8ff905b6c9a138a285e67c621f3d2dfa3232f859aaf963b725aca", "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", - "provenanceTemplateId": "sdxl_control_golden_boathouse" + "provenanceTemplateId": "sdxl_pix2pix_pale_amber_glass" }, { - "path": "template-gallery/reviews/sdxl_control_inpaint_warm_plaster.original-provenance.json", - "sha256": "sha256:bytes:661ddabb9dd317859660c6d6c56737672f0969c2637153b2aa3a14b1422cac0b", + "path": "template-gallery/reviews/sdxl_turbo_orange_caps.original-provenance.json", + "sha256": "sha256:bytes:38ebec1786b4ca93369a6e08f61c7fa24ed755f1a11804d2f0378d0b5b4c0f74", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b", - "sourceRevision": "stabilityai/stable-diffusion-xl-base-1.0@462165984030d82259a11f4367a4eed129e94a7b", + "sourceUrl": "https://huggingface.co/stabilityai/sdxl-turbo/tree/71153311d3dbb46851df1931d3ca6e939de83304", + "sourceRevision": "stabilityai/sdxl-turbo@71153311d3dbb46851df1931d3ca6e939de83304", "sourceLicense": "MoDiff-authored Gallery metadata", "modelTerms": [ - "Publisher model terms at https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b" + "https://huggingface.co/stabilityai/sdxl-turbo/blob/71153311d3dbb46851df1931d3ca6e939de83304/LICENSE.md" ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "stabilityai/stable-diffusion-xl-base-1.0@462165984030d82259a11f4367a4eed129e94a7b https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b" + "stabilityai/sdxl-turbo@71153311d3dbb46851df1931d3ca6e939de83304 https://huggingface.co/stabilityai/sdxl-turbo/tree/71153311d3dbb46851df1931d3ca6e939de83304" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", - "reviewedAt": "2026-11-25", + "reviewedAt": "2026-11-24", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "3968c7cbe37a94789a9f839d8e83a9e0f102629b797d5f7baacf0304a8d18153", - "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", - "provenanceTemplateId": "sdxl_control_inpaint_warm_plaster" + "humanApprovalPacketSHA256": "d216f065bdc316366c6183592f657bcfbbd7cb05acd0e510c6b3877fe56bcec2", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped six saved cases with model terms retained.", + "provenanceTemplateId": "sdxl_turbo_orange_caps" }, { - "path": "template-gallery/reviews/sdxl_control_inpaint_warm_plaster.original-review.json", - "sha256": "sha256:bytes:9ec0f8ff6cc645c9c9c9c9102965753af931061398629edb65727f99d2cb7faa", + "path": "template-gallery/reviews/sdxl_turbo_orange_caps.original-review.json", + "sha256": "sha256:bytes:45bccd884aec054b8054d8253ef61fe6a09716a97d2ca3331eae39fed60d675c", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b", - "sourceRevision": "stabilityai/stable-diffusion-xl-base-1.0@462165984030d82259a11f4367a4eed129e94a7b", + "sourceUrl": "https://huggingface.co/stabilityai/sdxl-turbo/tree/71153311d3dbb46851df1931d3ca6e939de83304", + "sourceRevision": "stabilityai/sdxl-turbo@71153311d3dbb46851df1931d3ca6e939de83304", "sourceLicense": "MoDiff-authored Gallery metadata", "modelTerms": [ - "Publisher model terms at https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b" + "https://huggingface.co/stabilityai/sdxl-turbo/blob/71153311d3dbb46851df1931d3ca6e939de83304/LICENSE.md" ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "stabilityai/stable-diffusion-xl-base-1.0@462165984030d82259a11f4367a4eed129e94a7b https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b" + "stabilityai/sdxl-turbo@71153311d3dbb46851df1931d3ca6e939de83304 https://huggingface.co/stabilityai/sdxl-turbo/tree/71153311d3dbb46851df1931d3ca6e939de83304" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", - "reviewedAt": "2026-11-25", + "reviewedAt": "2026-11-24", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "3968c7cbe37a94789a9f839d8e83a9e0f102629b797d5f7baacf0304a8d18153", - "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", - "provenanceTemplateId": "sdxl_control_inpaint_warm_plaster" + "humanApprovalPacketSHA256": "d216f065bdc316366c6183592f657bcfbbd7cb05acd0e510c6b3877fe56bcec2", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped six saved cases with model terms retained.", + "provenanceTemplateId": "sdxl_turbo_orange_caps" }, { - "path": "template-gallery/reviews/sdxl_control_inpaint_warm_plaster.quality-review.json", - "sha256": "sha256:bytes:4e3e6d321e3c4b7b17ba5ff675c610bd6c0a86779bda8e1c2fa0b3c25754d15e", + "path": "template-gallery/reviews/sdxl_turbo_orange_caps.quality-review.json", + "sha256": "sha256:bytes:b65f8f13cbb77853bc90c4015ce3432a353f22d1b4b8d3faeecb5ac1a00ba9e0", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b", - "sourceRevision": "stabilityai/stable-diffusion-xl-base-1.0@462165984030d82259a11f4367a4eed129e94a7b", + "sourceUrl": "https://huggingface.co/stabilityai/sdxl-turbo/tree/71153311d3dbb46851df1931d3ca6e939de83304", + "sourceRevision": "stabilityai/sdxl-turbo@71153311d3dbb46851df1931d3ca6e939de83304", "sourceLicense": "MoDiff-authored Gallery metadata", "modelTerms": [ - "Publisher model terms at https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b" + "https://huggingface.co/stabilityai/sdxl-turbo/blob/71153311d3dbb46851df1931d3ca6e939de83304/LICENSE.md" ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "stabilityai/stable-diffusion-xl-base-1.0@462165984030d82259a11f4367a4eed129e94a7b https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b" + "stabilityai/sdxl-turbo@71153311d3dbb46851df1931d3ca6e939de83304 https://huggingface.co/stabilityai/sdxl-turbo/tree/71153311d3dbb46851df1931d3ca6e939de83304" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", - "reviewedAt": "2026-11-25", + "reviewedAt": "2026-11-24", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "3968c7cbe37a94789a9f839d8e83a9e0f102629b797d5f7baacf0304a8d18153", - "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", - "provenanceTemplateId": "sdxl_control_inpaint_warm_plaster" + "humanApprovalPacketSHA256": "d216f065bdc316366c6183592f657bcfbbd7cb05acd0e510c6b3877fe56bcec2", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped six saved cases with model terms retained.", + "provenanceTemplateId": "sdxl_turbo_orange_caps" }, { - "path": "template-gallery/reviews/sdxl_control_inpaint_warm_plaster.retained-template-provenance.json", - "sha256": "sha256:bytes:b55fbe6ba9d7b2243d12fe0227026b502eb8674412f4da62cc0ef72b57a91370", + "path": "template-gallery/reviews/sdxl_turbo_orange_caps.retained-template-provenance.json", + "sha256": "sha256:bytes:485e9d39648d71e0c2d449418ed6124bb37ae1e7928a2bcbc1592040929f01bd", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b", - "sourceRevision": "stabilityai/stable-diffusion-xl-base-1.0@462165984030d82259a11f4367a4eed129e94a7b", + "sourceUrl": "https://huggingface.co/stabilityai/sdxl-turbo/tree/71153311d3dbb46851df1931d3ca6e939de83304", + "sourceRevision": "stabilityai/sdxl-turbo@71153311d3dbb46851df1931d3ca6e939de83304", "sourceLicense": "MoDiff-authored Gallery metadata", "modelTerms": [ - "Publisher model terms at https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b" + "https://huggingface.co/stabilityai/sdxl-turbo/blob/71153311d3dbb46851df1931d3ca6e939de83304/LICENSE.md" ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "stabilityai/stable-diffusion-xl-base-1.0@462165984030d82259a11f4367a4eed129e94a7b https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b" + "stabilityai/sdxl-turbo@71153311d3dbb46851df1931d3ca6e939de83304 https://huggingface.co/stabilityai/sdxl-turbo/tree/71153311d3dbb46851df1931d3ca6e939de83304" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", - "reviewedAt": "2026-11-25", + "reviewedAt": "2026-11-24", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "3968c7cbe37a94789a9f839d8e83a9e0f102629b797d5f7baacf0304a8d18153", - "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", - "provenanceTemplateId": "sdxl_control_inpaint_warm_plaster" + "humanApprovalPacketSHA256": "d216f065bdc316366c6183592f657bcfbbd7cb05acd0e510c6b3877fe56bcec2", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped six saved cases with model terms retained.", + "provenanceTemplateId": "sdxl_turbo_orange_caps" }, { - "path": "template-gallery/reviews/sdxl_controlnet_glass_study_on_slate.original-provenance.json", - "sha256": "sha256:bytes:5eff28279014893ed1b626866eef574cb72798d376da8faef83766c89e3e8223", + "path": "template-gallery/reviews/smollm2_rain_gauge.quality-review.json", + "sha256": "sha256:bytes:a457e4143d17eecd1af499e61a28e7df0533b4a6a8f67712182ab8a829115e09", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted retained Gallery provenance, review, or registration metadata", + "sourceUrl": null, + "sourceRevision": null, + "sourceLicense": "MoDiff-authored exact fixture or Gallery metadata", + "modelTerms": [], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-19", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "e604b0284a57b65b20343c7776511ae15bef922c7e104c09f0f6931eec610d2d", + "publicationBasis": "Activate and publish the two approved Gallery candidates using their retained native runs.", + "provenanceTemplateId": "smollm2_rain_gauge" + }, + { + "path": "template-gallery/reviews/smollm2_rain_gauge.retained-template-provenance.json", + "sha256": "sha256:bytes:6b45536aab6905c02b1e937fb6c684765c30354ceff8e05c7ec6c1454500f168", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted retained Gallery provenance, review, or registration metadata", + "sourceUrl": null, + "sourceRevision": null, + "sourceLicense": "MoDiff-authored exact fixture or Gallery metadata", + "modelTerms": [], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-19", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "e604b0284a57b65b20343c7776511ae15bef922c7e104c09f0f6931eec610d2d", + "publicationBasis": "Activate and publish the two approved Gallery candidates using their retained native runs.", + "provenanceTemplateId": "smollm2_rain_gauge" + }, + { + "path": "template-gallery/reviews/smolvlm_red_triangle.original-provenance.json", + "sha256": "sha256:bytes:7ef65f47028ad3af96b1189b40a52d085c696475b0e9ee55ea1d780f286a3481", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b", - "sourceRevision": "stabilityai/stable-diffusion-xl-base-1.0@462165984030d82259a11f4367a4eed129e94a7b", + "sourceUrl": "https://huggingface.co/HuggingFaceTB/SmolVLM-256M-Instruct/tree/7e3e67edbbed1bf9888184d9df282b700a323964", + "sourceRevision": "HuggingFaceTB/SmolVLM-256M-Instruct@7e3e67edbbed1bf9888184d9df282b700a323964", "sourceLicense": "MoDiff-authored Gallery metadata", "modelTerms": [ - "Publisher model terms at https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b" + "Publisher model terms at https://huggingface.co/HuggingFaceTB/SmolVLM-256M-Instruct/tree/7e3e67edbbed1bf9888184d9df282b700a323964" ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "stabilityai/stable-diffusion-xl-base-1.0@462165984030d82259a11f4367a4eed129e94a7b https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b" + "HuggingFaceTB/SmolVLM-256M-Instruct@7e3e67edbbed1bf9888184d9df282b700a323964 https://huggingface.co/HuggingFaceTB/SmolVLM-256M-Instruct/tree/7e3e67edbbed1bf9888184d9df282b700a323964" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", - "reviewedAt": "2026-11-25", + "reviewedAt": "2026-11-24", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "3968c7cbe37a94789a9f839d8e83a9e0f102629b797d5f7baacf0304a8d18153", - "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", - "provenanceTemplateId": "sdxl_controlnet_glass_study_on_slate" + "humanApprovalPacketSHA256": "d216f065bdc316366c6183592f657bcfbbd7cb05acd0e510c6b3877fe56bcec2", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped six saved cases with model terms retained.", + "provenanceTemplateId": "smolvlm_red_triangle" }, { - "path": "template-gallery/reviews/sdxl_controlnet_glass_study_on_slate.original-review.json", - "sha256": "sha256:bytes:42676c7dd7b9bd9c2062dd771f1d63f7507670609ba6ef543b066877c6f86de1", + "path": "template-gallery/reviews/smolvlm_red_triangle.original-review.json", + "sha256": "sha256:bytes:24aae45e0bf9ca8ec749e8521293a25beb56dc264276604e634699eed52f852e", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b", - "sourceRevision": "stabilityai/stable-diffusion-xl-base-1.0@462165984030d82259a11f4367a4eed129e94a7b", + "sourceUrl": "https://huggingface.co/HuggingFaceTB/SmolVLM-256M-Instruct/tree/7e3e67edbbed1bf9888184d9df282b700a323964", + "sourceRevision": "HuggingFaceTB/SmolVLM-256M-Instruct@7e3e67edbbed1bf9888184d9df282b700a323964", "sourceLicense": "MoDiff-authored Gallery metadata", "modelTerms": [ - "Publisher model terms at https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b" + "Publisher model terms at https://huggingface.co/HuggingFaceTB/SmolVLM-256M-Instruct/tree/7e3e67edbbed1bf9888184d9df282b700a323964" ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "stabilityai/stable-diffusion-xl-base-1.0@462165984030d82259a11f4367a4eed129e94a7b https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b" + "HuggingFaceTB/SmolVLM-256M-Instruct@7e3e67edbbed1bf9888184d9df282b700a323964 https://huggingface.co/HuggingFaceTB/SmolVLM-256M-Instruct/tree/7e3e67edbbed1bf9888184d9df282b700a323964" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", - "reviewedAt": "2026-11-25", + "reviewedAt": "2026-11-24", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "3968c7cbe37a94789a9f839d8e83a9e0f102629b797d5f7baacf0304a8d18153", - "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", - "provenanceTemplateId": "sdxl_controlnet_glass_study_on_slate" + "humanApprovalPacketSHA256": "d216f065bdc316366c6183592f657bcfbbd7cb05acd0e510c6b3877fe56bcec2", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped six saved cases with model terms retained.", + "provenanceTemplateId": "smolvlm_red_triangle" }, { - "path": "template-gallery/reviews/sdxl_controlnet_glass_study_on_slate.quality-review.json", - "sha256": "sha256:bytes:3ad7e229aa4536d60a0337200d22d47e753f7770edbce0528a7dd89f3f7f0895", + "path": "template-gallery/reviews/smolvlm_red_triangle.quality-review.json", + "sha256": "sha256:bytes:d7f5e471998c28cb0ba86532b0471c0a2a3ff1c9ea17e2e9169bcb91cf835bd1", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b", - "sourceRevision": "stabilityai/stable-diffusion-xl-base-1.0@462165984030d82259a11f4367a4eed129e94a7b", + "sourceUrl": "https://huggingface.co/HuggingFaceTB/SmolVLM-256M-Instruct/tree/7e3e67edbbed1bf9888184d9df282b700a323964", + "sourceRevision": "HuggingFaceTB/SmolVLM-256M-Instruct@7e3e67edbbed1bf9888184d9df282b700a323964", "sourceLicense": "MoDiff-authored Gallery metadata", "modelTerms": [ - "Publisher model terms at https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b" + "Publisher model terms at https://huggingface.co/HuggingFaceTB/SmolVLM-256M-Instruct/tree/7e3e67edbbed1bf9888184d9df282b700a323964" ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "stabilityai/stable-diffusion-xl-base-1.0@462165984030d82259a11f4367a4eed129e94a7b https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b" + "HuggingFaceTB/SmolVLM-256M-Instruct@7e3e67edbbed1bf9888184d9df282b700a323964 https://huggingface.co/HuggingFaceTB/SmolVLM-256M-Instruct/tree/7e3e67edbbed1bf9888184d9df282b700a323964" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", - "reviewedAt": "2026-11-25", + "reviewedAt": "2026-11-24", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "3968c7cbe37a94789a9f839d8e83a9e0f102629b797d5f7baacf0304a8d18153", - "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", - "provenanceTemplateId": "sdxl_controlnet_glass_study_on_slate" + "humanApprovalPacketSHA256": "d216f065bdc316366c6183592f657bcfbbd7cb05acd0e510c6b3877fe56bcec2", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped six saved cases with model terms retained.", + "provenanceTemplateId": "smolvlm_red_triangle" }, { - "path": "template-gallery/reviews/sdxl_controlnet_glass_study_on_slate.retained-template-provenance.json", - "sha256": "sha256:bytes:564bd43c3c23f41f40e46ee762ad2a3c61e63ca7a5600f8af0fdf92b263856fe", + "path": "template-gallery/reviews/smolvlm_red_triangle.retained-template-provenance.json", + "sha256": "sha256:bytes:45f154d4661611e859e67593f38fef064e544c1806c03a1f67919120b169d4f1", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b", - "sourceRevision": "stabilityai/stable-diffusion-xl-base-1.0@462165984030d82259a11f4367a4eed129e94a7b", + "sourceUrl": "https://huggingface.co/HuggingFaceTB/SmolVLM-256M-Instruct/tree/7e3e67edbbed1bf9888184d9df282b700a323964", + "sourceRevision": "HuggingFaceTB/SmolVLM-256M-Instruct@7e3e67edbbed1bf9888184d9df282b700a323964", "sourceLicense": "MoDiff-authored Gallery metadata", "modelTerms": [ - "Publisher model terms at https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b" + "Publisher model terms at https://huggingface.co/HuggingFaceTB/SmolVLM-256M-Instruct/tree/7e3e67edbbed1bf9888184d9df282b700a323964" ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "stabilityai/stable-diffusion-xl-base-1.0@462165984030d82259a11f4367a4eed129e94a7b https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b" + "HuggingFaceTB/SmolVLM-256M-Instruct@7e3e67edbbed1bf9888184d9df282b700a323964 https://huggingface.co/HuggingFaceTB/SmolVLM-256M-Instruct/tree/7e3e67edbbed1bf9888184d9df282b700a323964" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", - "reviewedAt": "2026-11-25", + "reviewedAt": "2026-11-24", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "3968c7cbe37a94789a9f839d8e83a9e0f102629b797d5f7baacf0304a8d18153", - "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", - "provenanceTemplateId": "sdxl_controlnet_glass_study_on_slate" + "humanApprovalPacketSHA256": "d216f065bdc316366c6183592f657bcfbbd7cb05acd0e510c6b3877fe56bcec2", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped six saved cases with model terms retained.", + "provenanceTemplateId": "smolvlm_red_triangle" }, { - "path": "template-gallery/reviews/sdxl_pag_cobalt_wall.original-provenance.json", - "sha256": "sha256:bytes:73001e41f7161d3d7f501d8901c64ea75b69926342d874f517161846bbc2c65e", + "path": "template-gallery/reviews/spandrel_tram_shelter_video_2x.original-provenance.json", + "sha256": "sha256:bytes:93548255b2f66162d1dae4838547a8144eb5b0bba7885db5914d54702f98efe5", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b", - "sourceRevision": "stabilityai/stable-diffusion-xl-base-1.0@462165984030d82259a11f4367a4eed129e94a7b", + "sourceUrl": "https://huggingface.co/nateraw/real-esrgan/tree/42efb9c3eeed1f5c0c8a626cf5f7f4481dfbb094", + "sourceRevision": "nateraw/real-esrgan@42efb9c3eeed1f5c0c8a626cf5f7f4481dfbb094", "sourceLicense": "MoDiff-authored Gallery metadata", "modelTerms": [ - "Publisher model terms at https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b" + "Publisher model terms at https://huggingface.co/nateraw/real-esrgan/tree/42efb9c3eeed1f5c0c8a626cf5f7f4481dfbb094" ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "stabilityai/stable-diffusion-xl-base-1.0@462165984030d82259a11f4367a4eed129e94a7b https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b" + "nateraw/real-esrgan@42efb9c3eeed1f5c0c8a626cf5f7f4481dfbb094 https://huggingface.co/nateraw/real-esrgan/tree/42efb9c3eeed1f5c0c8a626cf5f7f4481dfbb094" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "60b01498a2df5f4e4622cdc2f9a43c83d187820780d2425a19718c13707db501", + "humanApprovalPacketSHA256": "de8db2f2fa14b59514ea146654439aea279cc6fad5be1dca8cf17e057abe9945", "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", - "provenanceTemplateId": "sdxl_pag_cobalt_wall" + "provenanceTemplateId": "spandrel_tram_shelter_video_2x" }, { - "path": "template-gallery/reviews/sdxl_pag_cobalt_wall.original-review.json", - "sha256": "sha256:bytes:9c33914daf546f076a1cd4248d62bca41f48046bbf32641336a61e6af8ce5ae6", + "path": "template-gallery/reviews/spandrel_tram_shelter_video_2x.original-review.json", + "sha256": "sha256:bytes:ebc2cc444a1f0e83614e35d41b598ab8a78c57768313b6bc45f5ca4dff1b72e9", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b", - "sourceRevision": "stabilityai/stable-diffusion-xl-base-1.0@462165984030d82259a11f4367a4eed129e94a7b", + "sourceUrl": "https://huggingface.co/nateraw/real-esrgan/tree/42efb9c3eeed1f5c0c8a626cf5f7f4481dfbb094", + "sourceRevision": "nateraw/real-esrgan@42efb9c3eeed1f5c0c8a626cf5f7f4481dfbb094", "sourceLicense": "MoDiff-authored Gallery metadata", "modelTerms": [ - "Publisher model terms at https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b" + "Publisher model terms at https://huggingface.co/nateraw/real-esrgan/tree/42efb9c3eeed1f5c0c8a626cf5f7f4481dfbb094" ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "stabilityai/stable-diffusion-xl-base-1.0@462165984030d82259a11f4367a4eed129e94a7b https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b" + "nateraw/real-esrgan@42efb9c3eeed1f5c0c8a626cf5f7f4481dfbb094 https://huggingface.co/nateraw/real-esrgan/tree/42efb9c3eeed1f5c0c8a626cf5f7f4481dfbb094" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "60b01498a2df5f4e4622cdc2f9a43c83d187820780d2425a19718c13707db501", + "humanApprovalPacketSHA256": "de8db2f2fa14b59514ea146654439aea279cc6fad5be1dca8cf17e057abe9945", "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", - "provenanceTemplateId": "sdxl_pag_cobalt_wall" + "provenanceTemplateId": "spandrel_tram_shelter_video_2x" }, { - "path": "template-gallery/reviews/sdxl_pag_cobalt_wall.quality-review.json", - "sha256": "sha256:bytes:792bcb8050a146a925e0a3459c499e41ca08f710496292775ed7a85acf4e1ddf", + "path": "template-gallery/reviews/spandrel_tram_shelter_video_2x.quality-review.json", + "sha256": "sha256:bytes:584a2e4480f23b8489a3dd11930f64fdd7956619e25c24b7489e859f665b70e8", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b", - "sourceRevision": "stabilityai/stable-diffusion-xl-base-1.0@462165984030d82259a11f4367a4eed129e94a7b", + "sourceUrl": "https://huggingface.co/nateraw/real-esrgan/tree/42efb9c3eeed1f5c0c8a626cf5f7f4481dfbb094", + "sourceRevision": "nateraw/real-esrgan@42efb9c3eeed1f5c0c8a626cf5f7f4481dfbb094", "sourceLicense": "MoDiff-authored Gallery metadata", "modelTerms": [ - "Publisher model terms at https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b" + "Publisher model terms at https://huggingface.co/nateraw/real-esrgan/tree/42efb9c3eeed1f5c0c8a626cf5f7f4481dfbb094" ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "stabilityai/stable-diffusion-xl-base-1.0@462165984030d82259a11f4367a4eed129e94a7b https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b" + "nateraw/real-esrgan@42efb9c3eeed1f5c0c8a626cf5f7f4481dfbb094 https://huggingface.co/nateraw/real-esrgan/tree/42efb9c3eeed1f5c0c8a626cf5f7f4481dfbb094" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "60b01498a2df5f4e4622cdc2f9a43c83d187820780d2425a19718c13707db501", + "humanApprovalPacketSHA256": "de8db2f2fa14b59514ea146654439aea279cc6fad5be1dca8cf17e057abe9945", "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", - "provenanceTemplateId": "sdxl_pag_cobalt_wall" + "provenanceTemplateId": "spandrel_tram_shelter_video_2x" }, { - "path": "template-gallery/reviews/sdxl_pag_cobalt_wall.retained-template-provenance.json", - "sha256": "sha256:bytes:69442605e67b4da6af5ab3971559219066b7c569139088412a65945487509612", + "path": "template-gallery/reviews/spandrel_tram_shelter_video_2x.retained-template-provenance.json", + "sha256": "sha256:bytes:2ad672e15b395ae0437eae8380083ed4ee76bf6a1efafa683570226080a212c1", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b", - "sourceRevision": "stabilityai/stable-diffusion-xl-base-1.0@462165984030d82259a11f4367a4eed129e94a7b", + "sourceUrl": "https://huggingface.co/nateraw/real-esrgan/tree/42efb9c3eeed1f5c0c8a626cf5f7f4481dfbb094", + "sourceRevision": "nateraw/real-esrgan@42efb9c3eeed1f5c0c8a626cf5f7f4481dfbb094", "sourceLicense": "MoDiff-authored Gallery metadata", "modelTerms": [ - "Publisher model terms at https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b" + "Publisher model terms at https://huggingface.co/nateraw/real-esrgan/tree/42efb9c3eeed1f5c0c8a626cf5f7f4481dfbb094" ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "stabilityai/stable-diffusion-xl-base-1.0@462165984030d82259a11f4367a4eed129e94a7b https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b" + "nateraw/real-esrgan@42efb9c3eeed1f5c0c8a626cf5f7f4481dfbb094 https://huggingface.co/nateraw/real-esrgan/tree/42efb9c3eeed1f5c0c8a626cf5f7f4481dfbb094" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "60b01498a2df5f4e4622cdc2f9a43c83d187820780d2425a19718c13707db501", + "humanApprovalPacketSHA256": "de8db2f2fa14b59514ea146654439aea279cc6fad5be1dca8cf17e057abe9945", "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", - "provenanceTemplateId": "sdxl_pag_cobalt_wall" + "provenanceTemplateId": "spandrel_tram_shelter_video_2x" }, { - "path": "template-gallery/reviews/sdxl_pag_snow_cabin.original-provenance.json", - "sha256": "sha256:bytes:9f8fc8e1ec02ce87e641958fdbded7f199cee15cde9e077cbb40b12e0e8d7d93", + "path": "template-gallery/reviews/spandrel_x2_synthetic_gradient.quality-review.json", + "sha256": "sha256:bytes:75cd20b7aa48a0e129f10d09801f4ee7183c8a3bda5cf8a16bf372d9459c97f1", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", - "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b", - "sourceRevision": "stabilityai/stable-diffusion-xl-base-1.0@462165984030d82259a11f4367a4eed129e94a7b", - "sourceLicense": "MoDiff-authored Gallery metadata", - "modelTerms": [ - "Publisher model terms at https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b" - ], + "creationMethod": "Project-authored redacted retained Gallery review, provenance or registration metadata", + "sourceUrl": null, + "sourceRevision": null, + "sourceLicense": "MoDiff-authored fixture or Gallery metadata", + "modelTerms": [], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], - "requiredAttribution": [ - "stabilityai/stable-diffusion-xl-base-1.0@462165984030d82259a11f4367a4eed129e94a7b https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b" - ], + "requiredAttribution": [], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", - "reviewedAt": "2026-11-25", + "reviewedAt": "2026-11-19", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "d7e2fd301d16eede3da44cec1811930560ba0d958dfd46d8d0962eb3a22eea63", - "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", - "provenanceTemplateId": "sdxl_pag_snow_cabin" + "humanApprovalPacketSHA256": "ea2e749b805706828428bd34589bd41263e9c432a9503fe17c3c6a6d7d932176", + "publicationBasis": "Maintainer approved this exact saved Spandrel 2× technical preview and confirmed redistribution rights.", + "provenanceTemplateId": "spandrel_x2_synthetic_gradient" }, { - "path": "template-gallery/reviews/sdxl_pag_snow_cabin.original-review.json", - "sha256": "sha256:bytes:5b23c67819bad2bb24ccdbd2058df59a33a560077c260097e5711ef9a74746ba", + "path": "template-gallery/reviews/spandrel_x2_synthetic_gradient.retained-template-provenance.json", + "sha256": "sha256:bytes:43789929c6d5eab5bf18f99df491e30a71f0ebd0a74b8162af30893303e282c0", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", - "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b", - "sourceRevision": "stabilityai/stable-diffusion-xl-base-1.0@462165984030d82259a11f4367a4eed129e94a7b", - "sourceLicense": "MoDiff-authored Gallery metadata", - "modelTerms": [ - "Publisher model terms at https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b" - ], + "creationMethod": "Project-authored redacted retained Gallery review, provenance or registration metadata", + "sourceUrl": null, + "sourceRevision": null, + "sourceLicense": "MoDiff-authored fixture or Gallery metadata", + "modelTerms": [], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], - "requiredAttribution": [ - "stabilityai/stable-diffusion-xl-base-1.0@462165984030d82259a11f4367a4eed129e94a7b https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b" - ], + "requiredAttribution": [], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", - "reviewedAt": "2026-11-25", + "reviewedAt": "2026-11-19", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "d7e2fd301d16eede3da44cec1811930560ba0d958dfd46d8d0962eb3a22eea63", - "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", - "provenanceTemplateId": "sdxl_pag_snow_cabin" + "humanApprovalPacketSHA256": "ea2e749b805706828428bd34589bd41263e9c432a9503fe17c3c6a6d7d932176", + "publicationBasis": "Maintainer approved this exact saved Spandrel 2× technical preview and confirmed redistribution rights.", + "provenanceTemplateId": "spandrel_x2_synthetic_gradient" }, { - "path": "template-gallery/reviews/sdxl_pag_snow_cabin.quality-review.json", - "sha256": "sha256:bytes:d29b39aeafcf213fbcfff098372b9aad723d5a08c8fd63970f98162ed64e8ad3", + "path": "template-gallery/reviews/the_glasshouse_seed_tray.original-provenance.json", + "sha256": "sha256:bytes:267ab964ea3749739c8f58b86f7b94aa2c2cfe506a12c4f33c615c8415a97230", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", @@ -20923,7 +22770,7 @@ "sourceRevision": "stabilityai/stable-diffusion-xl-base-1.0@462165984030d82259a11f4367a4eed129e94a7b", "sourceLicense": "MoDiff-authored Gallery metadata", "modelTerms": [ - "Publisher model terms at https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b" + "CreativeML Open RAIL++-M. https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b" ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", @@ -20935,13 +22782,13 @@ "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "d7e2fd301d16eede3da44cec1811930560ba0d958dfd46d8d0962eb3a22eea63", - "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", - "provenanceTemplateId": "sdxl_pag_snow_cabin" + "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", + "provenanceTemplateId": "the_glasshouse_seed_tray" }, { - "path": "template-gallery/reviews/sdxl_pag_snow_cabin.retained-template-provenance.json", - "sha256": "sha256:bytes:d82c38326bd8b615ed7a934890b979e34f2870f8b0c7aa6f919f0b541d828905", + "path": "template-gallery/reviews/the_glasshouse_seed_tray.original-review.json", + "sha256": "sha256:bytes:49410d9deaf87256d1f77a2ee3839b8ae49ddd9ba4a33b6bc740347c4ce12744", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", @@ -20950,7 +22797,7 @@ "sourceRevision": "stabilityai/stable-diffusion-xl-base-1.0@462165984030d82259a11f4367a4eed129e94a7b", "sourceLicense": "MoDiff-authored Gallery metadata", "modelTerms": [ - "Publisher model terms at https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b" + "CreativeML Open RAIL++-M. https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b" ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", @@ -20962,791 +22809,645 @@ "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "d7e2fd301d16eede3da44cec1811930560ba0d958dfd46d8d0962eb3a22eea63", - "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", - "provenanceTemplateId": "sdxl_pag_snow_cabin" + "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", + "provenanceTemplateId": "the_glasshouse_seed_tray" }, { - "path": "template-gallery/reviews/sdxl_pix2pix_pale_amber_glass.original-provenance.json", - "sha256": "sha256:bytes:173457c9a8b1562e8268041daa277812a04739145a537765cdcb49278cabce33", + "path": "template-gallery/reviews/the_glasshouse_seed_tray.quality-review.json", + "sha256": "sha256:bytes:ddc92db2d2f6ce8da152019e33a20b66ffd61a780d72b76ce550fd2d00d63a33", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/diffusers/sdxl-instructpix2pix-768/tree/06653d47f8d22f2c2205a5884d6a24c5e76d2ca7", - "sourceRevision": "diffusers/sdxl-instructpix2pix-768@06653d47f8d22f2c2205a5884d6a24c5e76d2ca7", + "sourceUrl": "https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b", + "sourceRevision": "stabilityai/stable-diffusion-xl-base-1.0@462165984030d82259a11f4367a4eed129e94a7b", "sourceLicense": "MoDiff-authored Gallery metadata", "modelTerms": [ - "Publisher model terms at https://huggingface.co/diffusers/sdxl-instructpix2pix-768/tree/06653d47f8d22f2c2205a5884d6a24c5e76d2ca7" + "CreativeML Open RAIL++-M. https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b" ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "diffusers/sdxl-instructpix2pix-768@06653d47f8d22f2c2205a5884d6a24c5e76d2ca7 https://huggingface.co/diffusers/sdxl-instructpix2pix-768/tree/06653d47f8d22f2c2205a5884d6a24c5e76d2ca7" + "stabilityai/stable-diffusion-xl-base-1.0@462165984030d82259a11f4367a4eed129e94a7b https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "c2df9edb92f8ff905b6c9a138a285e67c621f3d2dfa3232f859aaf963b725aca", - "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", - "provenanceTemplateId": "sdxl_pix2pix_pale_amber_glass" + "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", + "provenanceTemplateId": "the_glasshouse_seed_tray" }, { - "path": "template-gallery/reviews/sdxl_pix2pix_pale_amber_glass.original-review.json", - "sha256": "sha256:bytes:8f6ce6ee6887bc2d878b762faa054f5a26d6853c11fadc6ca32b0f71fb4ad080", + "path": "template-gallery/reviews/the_glasshouse_seed_tray.retained-template-provenance.json", + "sha256": "sha256:bytes:c719553a51b1b44737b448ad981e6e14d2e71ad4a63deb0a865453e94e7c78c8", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/diffusers/sdxl-instructpix2pix-768/tree/06653d47f8d22f2c2205a5884d6a24c5e76d2ca7", - "sourceRevision": "diffusers/sdxl-instructpix2pix-768@06653d47f8d22f2c2205a5884d6a24c5e76d2ca7", + "sourceUrl": "https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b", + "sourceRevision": "stabilityai/stable-diffusion-xl-base-1.0@462165984030d82259a11f4367a4eed129e94a7b", "sourceLicense": "MoDiff-authored Gallery metadata", "modelTerms": [ - "Publisher model terms at https://huggingface.co/diffusers/sdxl-instructpix2pix-768/tree/06653d47f8d22f2c2205a5884d6a24c5e76d2ca7" + "CreativeML Open RAIL++-M. https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b" ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "diffusers/sdxl-instructpix2pix-768@06653d47f8d22f2c2205a5884d6a24c5e76d2ca7 https://huggingface.co/diffusers/sdxl-instructpix2pix-768/tree/06653d47f8d22f2c2205a5884d6a24c5e76d2ca7" + "stabilityai/stable-diffusion-xl-base-1.0@462165984030d82259a11f4367a4eed129e94a7b https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "c2df9edb92f8ff905b6c9a138a285e67c621f3d2dfa3232f859aaf963b725aca", - "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", - "provenanceTemplateId": "sdxl_pix2pix_pale_amber_glass" + "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", + "provenanceTemplateId": "the_glasshouse_seed_tray" }, { - "path": "template-gallery/reviews/sdxl_pix2pix_pale_amber_glass.quality-review.json", - "sha256": "sha256:bytes:214f457d0759bb55820c36572a44b2cf144ac11d6b87180326a1dd72ec903e12", + "path": "template-gallery/reviews/wan_22_ti2v_5b_seed_vault.quality-review.json", + "sha256": "sha256:bytes:119627f8cbd5751af0bf7cbf7dc7f5fa6a22ce28000438e0e49fc7569a493596", "publishDecision": "approved", "holdReason": null, - "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", - "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/diffusers/sdxl-instructpix2pix-768/tree/06653d47f8d22f2c2205a5884d6a24c5e76d2ca7", - "sourceRevision": "diffusers/sdxl-instructpix2pix-768@06653d47f8d22f2c2205a5884d6a24c5e76d2ca7", - "sourceLicense": "MoDiff-authored Gallery metadata", - "modelTerms": [ - "Publisher model terms at https://huggingface.co/diffusers/sdxl-instructpix2pix-768/tree/06653d47f8d22f2c2205a5884d6a24c5e76d2ca7" - ], + "creatorOrRightsholder": "MoDiff project maintainers", + "creationMethod": "MoDiff-authored technical metadata or review record", + "sourceUrl": null, + "sourceRevision": null, + "sourceLicense": "Apache-2.0", + "modelTerms": [], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], - "requiredAttribution": [ - "diffusers/sdxl-instructpix2pix-768@06653d47f8d22f2c2205a5884d6a24c5e76d2ca7 https://huggingface.co/diffusers/sdxl-instructpix2pix-768/tree/06653d47f8d22f2c2205a5884d6a24c5e76d2ca7" - ], + "requiredAttribution": [], "assetLicense": "Apache-2.0", - "reviewedBy": "MoDiff workspace maintainer", - "reviewedAt": "2026-11-25", - "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "c2df9edb92f8ff905b6c9a138a285e67c621f3d2dfa3232f859aaf963b725aca", - "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", - "provenanceTemplateId": "sdxl_pix2pix_pale_amber_glass" + "reviewedBy": "SOURAV DAS", + "reviewedAt": "2026-08-03", + "reviewClass": "standard-human-attestation", + "provenanceTemplateId": "wan_22_ti2v_5b_seed_vault" }, { - "path": "template-gallery/reviews/sdxl_pix2pix_pale_amber_glass.retained-template-provenance.json", - "sha256": "sha256:bytes:571dbef32e64cbea069c54c9a71408eb47cbf6854dbbb10e9060dfe04758cf99", + "path": "template-gallery/reviews/wan_22_ti2v_5b_seed_vault.reviewed-provenance.json", + "sha256": "sha256:bytes:260b3901159d64efad800ec39e72a1ac893e0b1f717551b572288f2a10efe1e8", "publishDecision": "approved", "holdReason": null, - "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", - "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/diffusers/sdxl-instructpix2pix-768/tree/06653d47f8d22f2c2205a5884d6a24c5e76d2ca7", - "sourceRevision": "diffusers/sdxl-instructpix2pix-768@06653d47f8d22f2c2205a5884d6a24c5e76d2ca7", - "sourceLicense": "MoDiff-authored Gallery metadata", - "modelTerms": [ - "Publisher model terms at https://huggingface.co/diffusers/sdxl-instructpix2pix-768/tree/06653d47f8d22f2c2205a5884d6a24c5e76d2ca7" - ], + "creatorOrRightsholder": "MoDiff project maintainers", + "creationMethod": "MoDiff-authored technical metadata or review record", + "sourceUrl": null, + "sourceRevision": null, + "sourceLicense": "Apache-2.0", + "modelTerms": [], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], - "requiredAttribution": [ - "diffusers/sdxl-instructpix2pix-768@06653d47f8d22f2c2205a5884d6a24c5e76d2ca7 https://huggingface.co/diffusers/sdxl-instructpix2pix-768/tree/06653d47f8d22f2c2205a5884d6a24c5e76d2ca7" - ], + "requiredAttribution": [], "assetLicense": "Apache-2.0", - "reviewedBy": "MoDiff workspace maintainer", - "reviewedAt": "2026-11-25", - "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "c2df9edb92f8ff905b6c9a138a285e67c621f3d2dfa3232f859aaf963b725aca", - "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", - "provenanceTemplateId": "sdxl_pix2pix_pale_amber_glass" + "reviewedBy": "SOURAV DAS", + "reviewedAt": "2026-08-03", + "reviewClass": "standard-human-attestation", + "provenanceTemplateId": "wan_22_ti2v_5b_seed_vault" }, { - "path": "template-gallery/reviews/sdxl_turbo_orange_caps.original-provenance.json", - "sha256": "sha256:bytes:38ebec1786b4ca93369a6e08f61c7fa24ed755f1a11804d2f0378d0b5b4c0f74", + "path": "template-gallery/reviews/wan_a14b_cloudbreak_over_the_ridges.original-provenance.json", + "sha256": "sha256:bytes:865acf7a0ce08eb184068a1dea15a3f7327c627d39056a104856e226f845e312", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/stabilityai/sdxl-turbo/tree/71153311d3dbb46851df1931d3ca6e939de83304", - "sourceRevision": "stabilityai/sdxl-turbo@71153311d3dbb46851df1931d3ca6e939de83304", + "sourceUrl": "https://huggingface.co/Wan-AI/Wan2.2-T2V-A14B-Diffusers/tree/5be7df9619b54f4e2667b2755bc6a756675b5cd7", + "sourceRevision": "Wan-AI/Wan2.2-T2V-A14B-Diffusers@5be7df9619b54f4e2667b2755bc6a756675b5cd7", "sourceLicense": "MoDiff-authored Gallery metadata", "modelTerms": [ - "https://huggingface.co/stabilityai/sdxl-turbo/blob/71153311d3dbb46851df1931d3ca6e939de83304/LICENSE.md" + "Publisher model terms at https://huggingface.co/Wan-AI/Wan2.2-T2V-A14B-Diffusers/tree/5be7df9619b54f4e2667b2755bc6a756675b5cd7" ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "stabilityai/sdxl-turbo@71153311d3dbb46851df1931d3ca6e939de83304 https://huggingface.co/stabilityai/sdxl-turbo/tree/71153311d3dbb46851df1931d3ca6e939de83304" + "Wan-AI/Wan2.2-T2V-A14B-Diffusers@5be7df9619b54f4e2667b2755bc6a756675b5cd7 https://huggingface.co/Wan-AI/Wan2.2-T2V-A14B-Diffusers/tree/5be7df9619b54f4e2667b2755bc6a756675b5cd7" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", - "reviewedAt": "2026-11-24", + "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "d216f065bdc316366c6183592f657bcfbbd7cb05acd0e510c6b3877fe56bcec2", - "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped six saved cases with model terms retained.", - "provenanceTemplateId": "sdxl_turbo_orange_caps" + "humanApprovalPacketSHA256": "ffeaa41a5c94b59135d2cdb15a5c7f79f073c15fd78792ce00a157398ab15d59", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "wan_a14b_cloudbreak_over_the_ridges" }, { - "path": "template-gallery/reviews/sdxl_turbo_orange_caps.original-review.json", - "sha256": "sha256:bytes:45bccd884aec054b8054d8253ef61fe6a09716a97d2ca3331eae39fed60d675c", + "path": "template-gallery/reviews/wan_a14b_cloudbreak_over_the_ridges.original-review.json", + "sha256": "sha256:bytes:f34e7a0de89fb4c48b70237f53f6db6f4de06d26ad7c6f582c6f7a6513f780ba", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/stabilityai/sdxl-turbo/tree/71153311d3dbb46851df1931d3ca6e939de83304", - "sourceRevision": "stabilityai/sdxl-turbo@71153311d3dbb46851df1931d3ca6e939de83304", + "sourceUrl": "https://huggingface.co/Wan-AI/Wan2.2-T2V-A14B-Diffusers/tree/5be7df9619b54f4e2667b2755bc6a756675b5cd7", + "sourceRevision": "Wan-AI/Wan2.2-T2V-A14B-Diffusers@5be7df9619b54f4e2667b2755bc6a756675b5cd7", "sourceLicense": "MoDiff-authored Gallery metadata", "modelTerms": [ - "https://huggingface.co/stabilityai/sdxl-turbo/blob/71153311d3dbb46851df1931d3ca6e939de83304/LICENSE.md" + "Publisher model terms at https://huggingface.co/Wan-AI/Wan2.2-T2V-A14B-Diffusers/tree/5be7df9619b54f4e2667b2755bc6a756675b5cd7" ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "stabilityai/sdxl-turbo@71153311d3dbb46851df1931d3ca6e939de83304 https://huggingface.co/stabilityai/sdxl-turbo/tree/71153311d3dbb46851df1931d3ca6e939de83304" + "Wan-AI/Wan2.2-T2V-A14B-Diffusers@5be7df9619b54f4e2667b2755bc6a756675b5cd7 https://huggingface.co/Wan-AI/Wan2.2-T2V-A14B-Diffusers/tree/5be7df9619b54f4e2667b2755bc6a756675b5cd7" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", - "reviewedAt": "2026-11-24", + "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "d216f065bdc316366c6183592f657bcfbbd7cb05acd0e510c6b3877fe56bcec2", - "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped six saved cases with model terms retained.", - "provenanceTemplateId": "sdxl_turbo_orange_caps" + "humanApprovalPacketSHA256": "ffeaa41a5c94b59135d2cdb15a5c7f79f073c15fd78792ce00a157398ab15d59", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "wan_a14b_cloudbreak_over_the_ridges" }, { - "path": "template-gallery/reviews/sdxl_turbo_orange_caps.quality-review.json", - "sha256": "sha256:bytes:b65f8f13cbb77853bc90c4015ce3432a353f22d1b4b8d3faeecb5ac1a00ba9e0", + "path": "template-gallery/reviews/wan_a14b_cloudbreak_over_the_ridges.quality-review.json", + "sha256": "sha256:bytes:f6b307987e3779cdf108f2c9832d960e3a3d53087267a6e38446aeb43a05c5b6", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/stabilityai/sdxl-turbo/tree/71153311d3dbb46851df1931d3ca6e939de83304", - "sourceRevision": "stabilityai/sdxl-turbo@71153311d3dbb46851df1931d3ca6e939de83304", + "sourceUrl": "https://huggingface.co/Wan-AI/Wan2.2-T2V-A14B-Diffusers/tree/5be7df9619b54f4e2667b2755bc6a756675b5cd7", + "sourceRevision": "Wan-AI/Wan2.2-T2V-A14B-Diffusers@5be7df9619b54f4e2667b2755bc6a756675b5cd7", "sourceLicense": "MoDiff-authored Gallery metadata", "modelTerms": [ - "https://huggingface.co/stabilityai/sdxl-turbo/blob/71153311d3dbb46851df1931d3ca6e939de83304/LICENSE.md" + "Publisher model terms at https://huggingface.co/Wan-AI/Wan2.2-T2V-A14B-Diffusers/tree/5be7df9619b54f4e2667b2755bc6a756675b5cd7" ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "stabilityai/sdxl-turbo@71153311d3dbb46851df1931d3ca6e939de83304 https://huggingface.co/stabilityai/sdxl-turbo/tree/71153311d3dbb46851df1931d3ca6e939de83304" + "Wan-AI/Wan2.2-T2V-A14B-Diffusers@5be7df9619b54f4e2667b2755bc6a756675b5cd7 https://huggingface.co/Wan-AI/Wan2.2-T2V-A14B-Diffusers/tree/5be7df9619b54f4e2667b2755bc6a756675b5cd7" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", - "reviewedAt": "2026-11-24", + "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "d216f065bdc316366c6183592f657bcfbbd7cb05acd0e510c6b3877fe56bcec2", - "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped six saved cases with model terms retained.", - "provenanceTemplateId": "sdxl_turbo_orange_caps" + "humanApprovalPacketSHA256": "ffeaa41a5c94b59135d2cdb15a5c7f79f073c15fd78792ce00a157398ab15d59", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "wan_a14b_cloudbreak_over_the_ridges" }, { - "path": "template-gallery/reviews/sdxl_turbo_orange_caps.retained-template-provenance.json", - "sha256": "sha256:bytes:485e9d39648d71e0c2d449418ed6124bb37ae1e7928a2bcbc1592040929f01bd", + "path": "template-gallery/reviews/wan_a14b_cloudbreak_over_the_ridges.retained-template-provenance.json", + "sha256": "sha256:bytes:179c61ab54e5174a0c8504960903d5abf55bb04033116946d8a0fd5c994a7c70", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/stabilityai/sdxl-turbo/tree/71153311d3dbb46851df1931d3ca6e939de83304", - "sourceRevision": "stabilityai/sdxl-turbo@71153311d3dbb46851df1931d3ca6e939de83304", + "sourceUrl": "https://huggingface.co/Wan-AI/Wan2.2-T2V-A14B-Diffusers/tree/5be7df9619b54f4e2667b2755bc6a756675b5cd7", + "sourceRevision": "Wan-AI/Wan2.2-T2V-A14B-Diffusers@5be7df9619b54f4e2667b2755bc6a756675b5cd7", "sourceLicense": "MoDiff-authored Gallery metadata", "modelTerms": [ - "https://huggingface.co/stabilityai/sdxl-turbo/blob/71153311d3dbb46851df1931d3ca6e939de83304/LICENSE.md" + "Publisher model terms at https://huggingface.co/Wan-AI/Wan2.2-T2V-A14B-Diffusers/tree/5be7df9619b54f4e2667b2755bc6a756675b5cd7" ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "stabilityai/sdxl-turbo@71153311d3dbb46851df1931d3ca6e939de83304 https://huggingface.co/stabilityai/sdxl-turbo/tree/71153311d3dbb46851df1931d3ca6e939de83304" + "Wan-AI/Wan2.2-T2V-A14B-Diffusers@5be7df9619b54f4e2667b2755bc6a756675b5cd7 https://huggingface.co/Wan-AI/Wan2.2-T2V-A14B-Diffusers/tree/5be7df9619b54f4e2667b2755bc6a756675b5cd7" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", - "reviewedAt": "2026-11-24", - "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "d216f065bdc316366c6183592f657bcfbbd7cb05acd0e510c6b3877fe56bcec2", - "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped six saved cases with model terms retained.", - "provenanceTemplateId": "sdxl_turbo_orange_caps" - }, - { - "path": "template-gallery/reviews/smollm2_rain_gauge.quality-review.json", - "sha256": "sha256:bytes:a457e4143d17eecd1af499e61a28e7df0533b4a6a8f67712182ab8a829115e09", - "publishDecision": "approved", - "holdReason": null, - "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", - "creationMethod": "Project-authored redacted retained Gallery provenance, review, or registration metadata", - "sourceUrl": null, - "sourceRevision": null, - "sourceLicense": "MoDiff-authored exact fixture or Gallery metadata", - "modelTerms": [], - "aiGenerated": false, - "humanLikenessConsent": "not-applicable", - "marks": [], - "requiredAttribution": [], - "assetLicense": "Apache-2.0", - "reviewedBy": "MoDiff workspace maintainer", - "reviewedAt": "2026-11-19", - "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "e604b0284a57b65b20343c7776511ae15bef922c7e104c09f0f6931eec610d2d", - "publicationBasis": "Activate and publish the two approved Gallery candidates using their retained native runs.", - "provenanceTemplateId": "smollm2_rain_gauge" - }, - { - "path": "template-gallery/reviews/smollm2_rain_gauge.retained-template-provenance.json", - "sha256": "sha256:bytes:6b45536aab6905c02b1e937fb6c684765c30354ceff8e05c7ec6c1454500f168", - "publishDecision": "approved", - "holdReason": null, - "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", - "creationMethod": "Project-authored redacted retained Gallery provenance, review, or registration metadata", - "sourceUrl": null, - "sourceRevision": null, - "sourceLicense": "MoDiff-authored exact fixture or Gallery metadata", - "modelTerms": [], - "aiGenerated": false, - "humanLikenessConsent": "not-applicable", - "marks": [], - "requiredAttribution": [], - "assetLicense": "Apache-2.0", - "reviewedBy": "MoDiff workspace maintainer", - "reviewedAt": "2026-11-19", + "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "e604b0284a57b65b20343c7776511ae15bef922c7e104c09f0f6931eec610d2d", - "publicationBasis": "Activate and publish the two approved Gallery candidates using their retained native runs.", - "provenanceTemplateId": "smollm2_rain_gauge" + "humanApprovalPacketSHA256": "ffeaa41a5c94b59135d2cdb15a5c7f79f073c15fd78792ce00a157398ab15d59", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "wan_a14b_cloudbreak_over_the_ridges" }, { - "path": "template-gallery/reviews/smolvlm_red_triangle.original-provenance.json", - "sha256": "sha256:bytes:7ef65f47028ad3af96b1189b40a52d085c696475b0e9ee55ea1d780f286a3481", + "path": "template-gallery/reviews/wan_a14b_wind_across_pond.original-provenance.json", + "sha256": "sha256:bytes:c8288cada585d18cd7a71b7094fd19125131e3753171d94f3c79ebf12c59c64a", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/HuggingFaceTB/SmolVLM-256M-Instruct/tree/7e3e67edbbed1bf9888184d9df282b700a323964", - "sourceRevision": "HuggingFaceTB/SmolVLM-256M-Instruct@7e3e67edbbed1bf9888184d9df282b700a323964", + "sourceUrl": "https://huggingface.co/Wan-AI/Wan2.2-I2V-A14B-Diffusers/tree/596658fd9ca6b7b71d5057529bbf319ecbc61d74", + "sourceRevision": "Wan-AI/Wan2.2-I2V-A14B-Diffusers@596658fd9ca6b7b71d5057529bbf319ecbc61d74", "sourceLicense": "MoDiff-authored Gallery metadata", "modelTerms": [ - "Publisher model terms at https://huggingface.co/HuggingFaceTB/SmolVLM-256M-Instruct/tree/7e3e67edbbed1bf9888184d9df282b700a323964" + "Publisher model terms at https://huggingface.co/Wan-AI/Wan2.2-I2V-A14B-Diffusers/tree/596658fd9ca6b7b71d5057529bbf319ecbc61d74" ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "HuggingFaceTB/SmolVLM-256M-Instruct@7e3e67edbbed1bf9888184d9df282b700a323964 https://huggingface.co/HuggingFaceTB/SmolVLM-256M-Instruct/tree/7e3e67edbbed1bf9888184d9df282b700a323964" + "Wan-AI/Wan2.2-I2V-A14B-Diffusers@596658fd9ca6b7b71d5057529bbf319ecbc61d74 https://huggingface.co/Wan-AI/Wan2.2-I2V-A14B-Diffusers/tree/596658fd9ca6b7b71d5057529bbf319ecbc61d74" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", - "reviewedAt": "2026-11-24", + "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "d216f065bdc316366c6183592f657bcfbbd7cb05acd0e510c6b3877fe56bcec2", - "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped six saved cases with model terms retained.", - "provenanceTemplateId": "smolvlm_red_triangle" + "humanApprovalPacketSHA256": "de8db2f2fa14b59514ea146654439aea279cc6fad5be1dca8cf17e057abe9945", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "wan_a14b_wind_across_pond" }, { - "path": "template-gallery/reviews/smolvlm_red_triangle.original-review.json", - "sha256": "sha256:bytes:24aae45e0bf9ca8ec749e8521293a25beb56dc264276604e634699eed52f852e", + "path": "template-gallery/reviews/wan_a14b_wind_across_pond.original-review.json", + "sha256": "sha256:bytes:abce3c693a5c298d0cf580e200540b6bcb16b3f461acc27e4bf750d829f4cafe", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/HuggingFaceTB/SmolVLM-256M-Instruct/tree/7e3e67edbbed1bf9888184d9df282b700a323964", - "sourceRevision": "HuggingFaceTB/SmolVLM-256M-Instruct@7e3e67edbbed1bf9888184d9df282b700a323964", + "sourceUrl": "https://huggingface.co/Wan-AI/Wan2.2-I2V-A14B-Diffusers/tree/596658fd9ca6b7b71d5057529bbf319ecbc61d74", + "sourceRevision": "Wan-AI/Wan2.2-I2V-A14B-Diffusers@596658fd9ca6b7b71d5057529bbf319ecbc61d74", "sourceLicense": "MoDiff-authored Gallery metadata", "modelTerms": [ - "Publisher model terms at https://huggingface.co/HuggingFaceTB/SmolVLM-256M-Instruct/tree/7e3e67edbbed1bf9888184d9df282b700a323964" + "Publisher model terms at https://huggingface.co/Wan-AI/Wan2.2-I2V-A14B-Diffusers/tree/596658fd9ca6b7b71d5057529bbf319ecbc61d74" ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "HuggingFaceTB/SmolVLM-256M-Instruct@7e3e67edbbed1bf9888184d9df282b700a323964 https://huggingface.co/HuggingFaceTB/SmolVLM-256M-Instruct/tree/7e3e67edbbed1bf9888184d9df282b700a323964" + "Wan-AI/Wan2.2-I2V-A14B-Diffusers@596658fd9ca6b7b71d5057529bbf319ecbc61d74 https://huggingface.co/Wan-AI/Wan2.2-I2V-A14B-Diffusers/tree/596658fd9ca6b7b71d5057529bbf319ecbc61d74" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", - "reviewedAt": "2026-11-24", + "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "d216f065bdc316366c6183592f657bcfbbd7cb05acd0e510c6b3877fe56bcec2", - "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped six saved cases with model terms retained.", - "provenanceTemplateId": "smolvlm_red_triangle" + "humanApprovalPacketSHA256": "de8db2f2fa14b59514ea146654439aea279cc6fad5be1dca8cf17e057abe9945", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "wan_a14b_wind_across_pond" }, { - "path": "template-gallery/reviews/smolvlm_red_triangle.quality-review.json", - "sha256": "sha256:bytes:d7f5e471998c28cb0ba86532b0471c0a2a3ff1c9ea17e2e9169bcb91cf835bd1", + "path": "template-gallery/reviews/wan_a14b_wind_across_pond.quality-review.json", + "sha256": "sha256:bytes:5f9946d7d69874e43eb07b24732b57e4aae4fddc6e281b5afa84803638d1298b", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/HuggingFaceTB/SmolVLM-256M-Instruct/tree/7e3e67edbbed1bf9888184d9df282b700a323964", - "sourceRevision": "HuggingFaceTB/SmolVLM-256M-Instruct@7e3e67edbbed1bf9888184d9df282b700a323964", + "sourceUrl": "https://huggingface.co/Wan-AI/Wan2.2-I2V-A14B-Diffusers/tree/596658fd9ca6b7b71d5057529bbf319ecbc61d74", + "sourceRevision": "Wan-AI/Wan2.2-I2V-A14B-Diffusers@596658fd9ca6b7b71d5057529bbf319ecbc61d74", "sourceLicense": "MoDiff-authored Gallery metadata", "modelTerms": [ - "Publisher model terms at https://huggingface.co/HuggingFaceTB/SmolVLM-256M-Instruct/tree/7e3e67edbbed1bf9888184d9df282b700a323964" + "Publisher model terms at https://huggingface.co/Wan-AI/Wan2.2-I2V-A14B-Diffusers/tree/596658fd9ca6b7b71d5057529bbf319ecbc61d74" ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "HuggingFaceTB/SmolVLM-256M-Instruct@7e3e67edbbed1bf9888184d9df282b700a323964 https://huggingface.co/HuggingFaceTB/SmolVLM-256M-Instruct/tree/7e3e67edbbed1bf9888184d9df282b700a323964" + "Wan-AI/Wan2.2-I2V-A14B-Diffusers@596658fd9ca6b7b71d5057529bbf319ecbc61d74 https://huggingface.co/Wan-AI/Wan2.2-I2V-A14B-Diffusers/tree/596658fd9ca6b7b71d5057529bbf319ecbc61d74" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", - "reviewedAt": "2026-11-24", + "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "d216f065bdc316366c6183592f657bcfbbd7cb05acd0e510c6b3877fe56bcec2", - "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped six saved cases with model terms retained.", - "provenanceTemplateId": "smolvlm_red_triangle" + "humanApprovalPacketSHA256": "de8db2f2fa14b59514ea146654439aea279cc6fad5be1dca8cf17e057abe9945", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "wan_a14b_wind_across_pond" }, { - "path": "template-gallery/reviews/smolvlm_red_triangle.retained-template-provenance.json", - "sha256": "sha256:bytes:45f154d4661611e859e67593f38fef064e544c1806c03a1f67919120b169d4f1", + "path": "template-gallery/reviews/wan_a14b_wind_across_pond.retained-template-provenance.json", + "sha256": "sha256:bytes:d9b781b0ff4349d361c02cd395e3340c7ffe622cbcf311b805231c86ec4cf9c1", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/HuggingFaceTB/SmolVLM-256M-Instruct/tree/7e3e67edbbed1bf9888184d9df282b700a323964", - "sourceRevision": "HuggingFaceTB/SmolVLM-256M-Instruct@7e3e67edbbed1bf9888184d9df282b700a323964", + "sourceUrl": "https://huggingface.co/Wan-AI/Wan2.2-I2V-A14B-Diffusers/tree/596658fd9ca6b7b71d5057529bbf319ecbc61d74", + "sourceRevision": "Wan-AI/Wan2.2-I2V-A14B-Diffusers@596658fd9ca6b7b71d5057529bbf319ecbc61d74", "sourceLicense": "MoDiff-authored Gallery metadata", "modelTerms": [ - "Publisher model terms at https://huggingface.co/HuggingFaceTB/SmolVLM-256M-Instruct/tree/7e3e67edbbed1bf9888184d9df282b700a323964" + "Publisher model terms at https://huggingface.co/Wan-AI/Wan2.2-I2V-A14B-Diffusers/tree/596658fd9ca6b7b71d5057529bbf319ecbc61d74" ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "HuggingFaceTB/SmolVLM-256M-Instruct@7e3e67edbbed1bf9888184d9df282b700a323964 https://huggingface.co/HuggingFaceTB/SmolVLM-256M-Instruct/tree/7e3e67edbbed1bf9888184d9df282b700a323964" + "Wan-AI/Wan2.2-I2V-A14B-Diffusers@596658fd9ca6b7b71d5057529bbf319ecbc61d74 https://huggingface.co/Wan-AI/Wan2.2-I2V-A14B-Diffusers/tree/596658fd9ca6b7b71d5057529bbf319ecbc61d74" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", - "reviewedAt": "2026-11-24", - "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "d216f065bdc316366c6183592f657bcfbbd7cb05acd0e510c6b3877fe56bcec2", - "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped six saved cases with model terms retained.", - "provenanceTemplateId": "smolvlm_red_triangle" - }, - { - "path": "template-gallery/reviews/spandrel_x2_synthetic_gradient.quality-review.json", - "sha256": "sha256:bytes:75cd20b7aa48a0e129f10d09801f4ee7183c8a3bda5cf8a16bf372d9459c97f1", - "publishDecision": "approved", - "holdReason": null, - "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", - "creationMethod": "Project-authored redacted retained Gallery review, provenance or registration metadata", - "sourceUrl": null, - "sourceRevision": null, - "sourceLicense": "MoDiff-authored fixture or Gallery metadata", - "modelTerms": [], - "aiGenerated": false, - "humanLikenessConsent": "not-applicable", - "marks": [], - "requiredAttribution": [], - "assetLicense": "Apache-2.0", - "reviewedBy": "MoDiff workspace maintainer", - "reviewedAt": "2026-11-19", - "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "ea2e749b805706828428bd34589bd41263e9c432a9503fe17c3c6a6d7d932176", - "publicationBasis": "Maintainer approved this exact saved Spandrel 2× technical preview and confirmed redistribution rights.", - "provenanceTemplateId": "spandrel_x2_synthetic_gradient" - }, - { - "path": "template-gallery/reviews/spandrel_x2_synthetic_gradient.retained-template-provenance.json", - "sha256": "sha256:bytes:43789929c6d5eab5bf18f99df491e30a71f0ebd0a74b8162af30893303e282c0", - "publishDecision": "approved", - "holdReason": null, - "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", - "creationMethod": "Project-authored redacted retained Gallery review, provenance or registration metadata", - "sourceUrl": null, - "sourceRevision": null, - "sourceLicense": "MoDiff-authored fixture or Gallery metadata", - "modelTerms": [], - "aiGenerated": false, - "humanLikenessConsent": "not-applicable", - "marks": [], - "requiredAttribution": [], - "assetLicense": "Apache-2.0", - "reviewedBy": "MoDiff workspace maintainer", - "reviewedAt": "2026-11-19", + "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "ea2e749b805706828428bd34589bd41263e9c432a9503fe17c3c6a6d7d932176", - "publicationBasis": "Maintainer approved this exact saved Spandrel 2× technical preview and confirmed redistribution rights.", - "provenanceTemplateId": "spandrel_x2_synthetic_gradient" + "humanApprovalPacketSHA256": "de8db2f2fa14b59514ea146654439aea279cc6fad5be1dca8cf17e057abe9945", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "wan_a14b_wind_across_pond" }, { - "path": "template-gallery/reviews/the_glasshouse_seed_tray.original-provenance.json", - "sha256": "sha256:bytes:267ab964ea3749739c8f58b86f7b94aa2c2cfe506a12c4f33c615c8415a97230", + "path": "template-gallery/reviews/wan_flf_blue_hour_at_the_tram_shelter.original-provenance.json", + "sha256": "sha256:bytes:556edbb96784d97900a95f4c3cdf618102ae2f492b2791a67ef5cd9e258f3dfb", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b", - "sourceRevision": "stabilityai/stable-diffusion-xl-base-1.0@462165984030d82259a11f4367a4eed129e94a7b", + "sourceUrl": "https://huggingface.co/Wan-AI/Wan2.1-FLF2V-14B-720P-diffusers/tree/17c30769b1e0b5dcaa1799b117bf20a9c31f59d7", + "sourceRevision": "Wan-AI/Wan2.1-FLF2V-14B-720P-diffusers@17c30769b1e0b5dcaa1799b117bf20a9c31f59d7", "sourceLicense": "MoDiff-authored Gallery metadata", "modelTerms": [ - "CreativeML Open RAIL++-M. https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b" + "Publisher model terms at https://huggingface.co/Wan-AI/Wan2.1-FLF2V-14B-720P-diffusers/tree/17c30769b1e0b5dcaa1799b117bf20a9c31f59d7" ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "stabilityai/stable-diffusion-xl-base-1.0@462165984030d82259a11f4367a4eed129e94a7b https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b" + "Wan-AI/Wan2.1-FLF2V-14B-720P-diffusers@17c30769b1e0b5dcaa1799b117bf20a9c31f59d7 https://huggingface.co/Wan-AI/Wan2.1-FLF2V-14B-720P-diffusers/tree/17c30769b1e0b5dcaa1799b117bf20a9c31f59d7" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", - "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", - "provenanceTemplateId": "the_glasshouse_seed_tray" + "humanApprovalPacketSHA256": "ffeaa41a5c94b59135d2cdb15a5c7f79f073c15fd78792ce00a157398ab15d59", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "wan_flf_blue_hour_at_the_tram_shelter" }, { - "path": "template-gallery/reviews/the_glasshouse_seed_tray.original-review.json", - "sha256": "sha256:bytes:49410d9deaf87256d1f77a2ee3839b8ae49ddd9ba4a33b6bc740347c4ce12744", + "path": "template-gallery/reviews/wan_flf_blue_hour_at_the_tram_shelter.original-review.json", + "sha256": "sha256:bytes:70b7a63ed50e5c3ccd8c706fd07917afec3ac8ef088d33b28b8d22d57f800548", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b", - "sourceRevision": "stabilityai/stable-diffusion-xl-base-1.0@462165984030d82259a11f4367a4eed129e94a7b", + "sourceUrl": "https://huggingface.co/Wan-AI/Wan2.1-FLF2V-14B-720P-diffusers/tree/17c30769b1e0b5dcaa1799b117bf20a9c31f59d7", + "sourceRevision": "Wan-AI/Wan2.1-FLF2V-14B-720P-diffusers@17c30769b1e0b5dcaa1799b117bf20a9c31f59d7", "sourceLicense": "MoDiff-authored Gallery metadata", "modelTerms": [ - "CreativeML Open RAIL++-M. https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b" + "Publisher model terms at https://huggingface.co/Wan-AI/Wan2.1-FLF2V-14B-720P-diffusers/tree/17c30769b1e0b5dcaa1799b117bf20a9c31f59d7" ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "stabilityai/stable-diffusion-xl-base-1.0@462165984030d82259a11f4367a4eed129e94a7b https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b" + "Wan-AI/Wan2.1-FLF2V-14B-720P-diffusers@17c30769b1e0b5dcaa1799b117bf20a9c31f59d7 https://huggingface.co/Wan-AI/Wan2.1-FLF2V-14B-720P-diffusers/tree/17c30769b1e0b5dcaa1799b117bf20a9c31f59d7" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", - "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", - "provenanceTemplateId": "the_glasshouse_seed_tray" + "humanApprovalPacketSHA256": "ffeaa41a5c94b59135d2cdb15a5c7f79f073c15fd78792ce00a157398ab15d59", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "wan_flf_blue_hour_at_the_tram_shelter" }, { - "path": "template-gallery/reviews/the_glasshouse_seed_tray.quality-review.json", - "sha256": "sha256:bytes:ddc92db2d2f6ce8da152019e33a20b66ffd61a780d72b76ce550fd2d00d63a33", + "path": "template-gallery/reviews/wan_flf_blue_hour_at_the_tram_shelter.quality-review.json", + "sha256": "sha256:bytes:a549ff13492e46da3c707f861fb33fd71411034ffb96a81550d7a16fcd79cf12", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b", - "sourceRevision": "stabilityai/stable-diffusion-xl-base-1.0@462165984030d82259a11f4367a4eed129e94a7b", + "sourceUrl": "https://huggingface.co/Wan-AI/Wan2.1-FLF2V-14B-720P-diffusers/tree/17c30769b1e0b5dcaa1799b117bf20a9c31f59d7", + "sourceRevision": "Wan-AI/Wan2.1-FLF2V-14B-720P-diffusers@17c30769b1e0b5dcaa1799b117bf20a9c31f59d7", "sourceLicense": "MoDiff-authored Gallery metadata", "modelTerms": [ - "CreativeML Open RAIL++-M. https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b" + "Publisher model terms at https://huggingface.co/Wan-AI/Wan2.1-FLF2V-14B-720P-diffusers/tree/17c30769b1e0b5dcaa1799b117bf20a9c31f59d7" ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "stabilityai/stable-diffusion-xl-base-1.0@462165984030d82259a11f4367a4eed129e94a7b https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b" + "Wan-AI/Wan2.1-FLF2V-14B-720P-diffusers@17c30769b1e0b5dcaa1799b117bf20a9c31f59d7 https://huggingface.co/Wan-AI/Wan2.1-FLF2V-14B-720P-diffusers/tree/17c30769b1e0b5dcaa1799b117bf20a9c31f59d7" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", - "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", - "provenanceTemplateId": "the_glasshouse_seed_tray" + "humanApprovalPacketSHA256": "ffeaa41a5c94b59135d2cdb15a5c7f79f073c15fd78792ce00a157398ab15d59", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "wan_flf_blue_hour_at_the_tram_shelter" }, { - "path": "template-gallery/reviews/the_glasshouse_seed_tray.retained-template-provenance.json", - "sha256": "sha256:bytes:c719553a51b1b44737b448ad981e6e14d2e71ad4a63deb0a865453e94e7c78c8", + "path": "template-gallery/reviews/wan_flf_blue_hour_at_the_tram_shelter.retained-template-provenance.json", + "sha256": "sha256:bytes:e4deed2284f9ae122cbb97a82049d7407fdec05f34d332f8225b40fd40b13820", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b", - "sourceRevision": "stabilityai/stable-diffusion-xl-base-1.0@462165984030d82259a11f4367a4eed129e94a7b", + "sourceUrl": "https://huggingface.co/Wan-AI/Wan2.1-FLF2V-14B-720P-diffusers/tree/17c30769b1e0b5dcaa1799b117bf20a9c31f59d7", + "sourceRevision": "Wan-AI/Wan2.1-FLF2V-14B-720P-diffusers@17c30769b1e0b5dcaa1799b117bf20a9c31f59d7", "sourceLicense": "MoDiff-authored Gallery metadata", "modelTerms": [ - "CreativeML Open RAIL++-M. https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b" + "Publisher model terms at https://huggingface.co/Wan-AI/Wan2.1-FLF2V-14B-720P-diffusers/tree/17c30769b1e0b5dcaa1799b117bf20a9c31f59d7" ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "stabilityai/stable-diffusion-xl-base-1.0@462165984030d82259a11f4367a4eed129e94a7b https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b" + "Wan-AI/Wan2.1-FLF2V-14B-720P-diffusers@17c30769b1e0b5dcaa1799b117bf20a9c31f59d7 https://huggingface.co/Wan-AI/Wan2.1-FLF2V-14B-720P-diffusers/tree/17c30769b1e0b5dcaa1799b117bf20a9c31f59d7" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", - "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", - "provenanceTemplateId": "the_glasshouse_seed_tray" - }, - { - "path": "template-gallery/reviews/wan_22_ti2v_5b_seed_vault.quality-review.json", - "sha256": "sha256:bytes:119627f8cbd5751af0bf7cbf7dc7f5fa6a22ce28000438e0e49fc7569a493596", - "publishDecision": "approved", - "holdReason": null, - "creatorOrRightsholder": "MoDiff project maintainers", - "creationMethod": "MoDiff-authored technical metadata or review record", - "sourceUrl": null, - "sourceRevision": null, - "sourceLicense": "Apache-2.0", - "modelTerms": [], - "aiGenerated": false, - "humanLikenessConsent": "not-applicable", - "marks": [], - "requiredAttribution": [], - "assetLicense": "Apache-2.0", - "reviewedBy": "SOURAV DAS", - "reviewedAt": "2026-08-03", - "reviewClass": "standard-human-attestation", - "provenanceTemplateId": "wan_22_ti2v_5b_seed_vault" - }, - { - "path": "template-gallery/reviews/wan_22_ti2v_5b_seed_vault.reviewed-provenance.json", - "sha256": "sha256:bytes:260b3901159d64efad800ec39e72a1ac893e0b1f717551b572288f2a10efe1e8", - "publishDecision": "approved", - "holdReason": null, - "creatorOrRightsholder": "MoDiff project maintainers", - "creationMethod": "MoDiff-authored technical metadata or review record", - "sourceUrl": null, - "sourceRevision": null, - "sourceLicense": "Apache-2.0", - "modelTerms": [], - "aiGenerated": false, - "humanLikenessConsent": "not-applicable", - "marks": [], - "requiredAttribution": [], - "assetLicense": "Apache-2.0", - "reviewedBy": "SOURAV DAS", - "reviewedAt": "2026-08-03", - "reviewClass": "standard-human-attestation", - "provenanceTemplateId": "wan_22_ti2v_5b_seed_vault" + "humanApprovalPacketSHA256": "ffeaa41a5c94b59135d2cdb15a5c7f79f073c15fd78792ce00a157398ab15d59", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "wan_flf_blue_hour_at_the_tram_shelter" }, { - "path": "template-gallery/reviews/wan_a14b_cloudbreak_over_the_ridges.original-provenance.json", - "sha256": "sha256:bytes:865acf7a0ce08eb184068a1dea15a3f7327c627d39056a104856e226f845e312", + "path": "template-gallery/reviews/wan_ti2v_subway_musician.original-provenance.json", + "sha256": "sha256:bytes:2b4a47b2aa7e904f2541a51b150497e420d1970fa202e44a99bb04956f3fa703", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/Wan-AI/Wan2.2-T2V-A14B-Diffusers/tree/5be7df9619b54f4e2667b2755bc6a756675b5cd7", - "sourceRevision": "Wan-AI/Wan2.2-T2V-A14B-Diffusers@5be7df9619b54f4e2667b2755bc6a756675b5cd7", + "sourceUrl": "https://huggingface.co/Wan-AI/Wan2.2-TI2V-5B-Diffusers/tree/b8fff7315c768468a5333511427288870b2e9635", + "sourceRevision": "Wan-AI/Wan2.2-TI2V-5B-Diffusers@b8fff7315c768468a5333511427288870b2e9635", "sourceLicense": "MoDiff-authored Gallery metadata", "modelTerms": [ - "Publisher model terms at https://huggingface.co/Wan-AI/Wan2.2-T2V-A14B-Diffusers/tree/5be7df9619b54f4e2667b2755bc6a756675b5cd7" + "Publisher model terms at https://huggingface.co/Wan-AI/Wan2.2-TI2V-5B-Diffusers/tree/b8fff7315c768468a5333511427288870b2e9635" ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "Wan-AI/Wan2.2-T2V-A14B-Diffusers@5be7df9619b54f4e2667b2755bc6a756675b5cd7 https://huggingface.co/Wan-AI/Wan2.2-T2V-A14B-Diffusers/tree/5be7df9619b54f4e2667b2755bc6a756675b5cd7" + "Wan-AI/Wan2.2-TI2V-5B-Diffusers@b8fff7315c768468a5333511427288870b2e9635 https://huggingface.co/Wan-AI/Wan2.2-TI2V-5B-Diffusers/tree/b8fff7315c768468a5333511427288870b2e9635" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "ffeaa41a5c94b59135d2cdb15a5c7f79f073c15fd78792ce00a157398ab15d59", + "humanApprovalPacketSHA256": "de8db2f2fa14b59514ea146654439aea279cc6fad5be1dca8cf17e057abe9945", "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", - "provenanceTemplateId": "wan_a14b_cloudbreak_over_the_ridges" + "provenanceTemplateId": "wan_ti2v_subway_musician" }, { - "path": "template-gallery/reviews/wan_a14b_cloudbreak_over_the_ridges.original-review.json", - "sha256": "sha256:bytes:f34e7a0de89fb4c48b70237f53f6db6f4de06d26ad7c6f582c6f7a6513f780ba", + "path": "template-gallery/reviews/wan_ti2v_subway_musician.original-review.json", + "sha256": "sha256:bytes:e0c162c7130f640bcd9375d070f0d5eff1ef4c4ec26b829c18733dd8d644dd8c", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/Wan-AI/Wan2.2-T2V-A14B-Diffusers/tree/5be7df9619b54f4e2667b2755bc6a756675b5cd7", - "sourceRevision": "Wan-AI/Wan2.2-T2V-A14B-Diffusers@5be7df9619b54f4e2667b2755bc6a756675b5cd7", + "sourceUrl": "https://huggingface.co/Wan-AI/Wan2.2-TI2V-5B-Diffusers/tree/b8fff7315c768468a5333511427288870b2e9635", + "sourceRevision": "Wan-AI/Wan2.2-TI2V-5B-Diffusers@b8fff7315c768468a5333511427288870b2e9635", "sourceLicense": "MoDiff-authored Gallery metadata", "modelTerms": [ - "Publisher model terms at https://huggingface.co/Wan-AI/Wan2.2-T2V-A14B-Diffusers/tree/5be7df9619b54f4e2667b2755bc6a756675b5cd7" + "Publisher model terms at https://huggingface.co/Wan-AI/Wan2.2-TI2V-5B-Diffusers/tree/b8fff7315c768468a5333511427288870b2e9635" ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "Wan-AI/Wan2.2-T2V-A14B-Diffusers@5be7df9619b54f4e2667b2755bc6a756675b5cd7 https://huggingface.co/Wan-AI/Wan2.2-T2V-A14B-Diffusers/tree/5be7df9619b54f4e2667b2755bc6a756675b5cd7" + "Wan-AI/Wan2.2-TI2V-5B-Diffusers@b8fff7315c768468a5333511427288870b2e9635 https://huggingface.co/Wan-AI/Wan2.2-TI2V-5B-Diffusers/tree/b8fff7315c768468a5333511427288870b2e9635" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "ffeaa41a5c94b59135d2cdb15a5c7f79f073c15fd78792ce00a157398ab15d59", + "humanApprovalPacketSHA256": "de8db2f2fa14b59514ea146654439aea279cc6fad5be1dca8cf17e057abe9945", "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", - "provenanceTemplateId": "wan_a14b_cloudbreak_over_the_ridges" + "provenanceTemplateId": "wan_ti2v_subway_musician" }, { - "path": "template-gallery/reviews/wan_a14b_cloudbreak_over_the_ridges.quality-review.json", - "sha256": "sha256:bytes:f6b307987e3779cdf108f2c9832d960e3a3d53087267a6e38446aeb43a05c5b6", + "path": "template-gallery/reviews/wan_ti2v_subway_musician.quality-review.json", + "sha256": "sha256:bytes:e0fff184772e4c8465c986c3c9bb2f5024ed19cc809330bbcfa7705ee452bdfc", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/Wan-AI/Wan2.2-T2V-A14B-Diffusers/tree/5be7df9619b54f4e2667b2755bc6a756675b5cd7", - "sourceRevision": "Wan-AI/Wan2.2-T2V-A14B-Diffusers@5be7df9619b54f4e2667b2755bc6a756675b5cd7", + "sourceUrl": "https://huggingface.co/Wan-AI/Wan2.2-TI2V-5B-Diffusers/tree/b8fff7315c768468a5333511427288870b2e9635", + "sourceRevision": "Wan-AI/Wan2.2-TI2V-5B-Diffusers@b8fff7315c768468a5333511427288870b2e9635", "sourceLicense": "MoDiff-authored Gallery metadata", "modelTerms": [ - "Publisher model terms at https://huggingface.co/Wan-AI/Wan2.2-T2V-A14B-Diffusers/tree/5be7df9619b54f4e2667b2755bc6a756675b5cd7" + "Publisher model terms at https://huggingface.co/Wan-AI/Wan2.2-TI2V-5B-Diffusers/tree/b8fff7315c768468a5333511427288870b2e9635" ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "Wan-AI/Wan2.2-T2V-A14B-Diffusers@5be7df9619b54f4e2667b2755bc6a756675b5cd7 https://huggingface.co/Wan-AI/Wan2.2-T2V-A14B-Diffusers/tree/5be7df9619b54f4e2667b2755bc6a756675b5cd7" + "Wan-AI/Wan2.2-TI2V-5B-Diffusers@b8fff7315c768468a5333511427288870b2e9635 https://huggingface.co/Wan-AI/Wan2.2-TI2V-5B-Diffusers/tree/b8fff7315c768468a5333511427288870b2e9635" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "ffeaa41a5c94b59135d2cdb15a5c7f79f073c15fd78792ce00a157398ab15d59", + "humanApprovalPacketSHA256": "de8db2f2fa14b59514ea146654439aea279cc6fad5be1dca8cf17e057abe9945", "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", - "provenanceTemplateId": "wan_a14b_cloudbreak_over_the_ridges" + "provenanceTemplateId": "wan_ti2v_subway_musician" }, { - "path": "template-gallery/reviews/wan_a14b_cloudbreak_over_the_ridges.retained-template-provenance.json", - "sha256": "sha256:bytes:179c61ab54e5174a0c8504960903d5abf55bb04033116946d8a0fd5c994a7c70", + "path": "template-gallery/reviews/wan_ti2v_subway_musician.retained-template-provenance.json", + "sha256": "sha256:bytes:5aef1cb2eff8bd92f71e8d9be5fa04a6df49e01f0800f5fb76076681f7e1bb14", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/Wan-AI/Wan2.2-T2V-A14B-Diffusers/tree/5be7df9619b54f4e2667b2755bc6a756675b5cd7", - "sourceRevision": "Wan-AI/Wan2.2-T2V-A14B-Diffusers@5be7df9619b54f4e2667b2755bc6a756675b5cd7", + "sourceUrl": "https://huggingface.co/Wan-AI/Wan2.2-TI2V-5B-Diffusers/tree/b8fff7315c768468a5333511427288870b2e9635", + "sourceRevision": "Wan-AI/Wan2.2-TI2V-5B-Diffusers@b8fff7315c768468a5333511427288870b2e9635", "sourceLicense": "MoDiff-authored Gallery metadata", "modelTerms": [ - "Publisher model terms at https://huggingface.co/Wan-AI/Wan2.2-T2V-A14B-Diffusers/tree/5be7df9619b54f4e2667b2755bc6a756675b5cd7" + "Publisher model terms at https://huggingface.co/Wan-AI/Wan2.2-TI2V-5B-Diffusers/tree/b8fff7315c768468a5333511427288870b2e9635" ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "Wan-AI/Wan2.2-T2V-A14B-Diffusers@5be7df9619b54f4e2667b2755bc6a756675b5cd7 https://huggingface.co/Wan-AI/Wan2.2-T2V-A14B-Diffusers/tree/5be7df9619b54f4e2667b2755bc6a756675b5cd7" + "Wan-AI/Wan2.2-TI2V-5B-Diffusers@b8fff7315c768468a5333511427288870b2e9635 https://huggingface.co/Wan-AI/Wan2.2-TI2V-5B-Diffusers/tree/b8fff7315c768468a5333511427288870b2e9635" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "ffeaa41a5c94b59135d2cdb15a5c7f79f073c15fd78792ce00a157398ab15d59", + "humanApprovalPacketSHA256": "de8db2f2fa14b59514ea146654439aea279cc6fad5be1dca8cf17e057abe9945", "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", - "provenanceTemplateId": "wan_a14b_cloudbreak_over_the_ridges" + "provenanceTemplateId": "wan_ti2v_subway_musician" }, { - "path": "template-gallery/reviews/wan_flf_blue_hour_at_the_tram_shelter.original-provenance.json", - "sha256": "sha256:bytes:556edbb96784d97900a95f4c3cdf618102ae2f492b2791a67ef5cd9e258f3dfb", + "path": "template-gallery/reviews/wan_vace_amber_rings_after_rain.original-provenance.json", + "sha256": "sha256:bytes:4596d993891c34f721ac085d6d9377e63af8610998160c4d582fc2761b1efdff", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/Wan-AI/Wan2.1-FLF2V-14B-720P-diffusers/tree/17c30769b1e0b5dcaa1799b117bf20a9c31f59d7", - "sourceRevision": "Wan-AI/Wan2.1-FLF2V-14B-720P-diffusers@17c30769b1e0b5dcaa1799b117bf20a9c31f59d7", + "sourceUrl": "https://huggingface.co/Wan-AI/Wan2.1-VACE-1.3B-diffusers/tree/ec4d2cb062b548996b179d493fdd05340de702a1", + "sourceRevision": "Wan-AI/Wan2.1-VACE-1.3B-diffusers@ec4d2cb062b548996b179d493fdd05340de702a1", "sourceLicense": "MoDiff-authored Gallery metadata", "modelTerms": [ - "Publisher model terms at https://huggingface.co/Wan-AI/Wan2.1-FLF2V-14B-720P-diffusers/tree/17c30769b1e0b5dcaa1799b117bf20a9c31f59d7" + "Publisher model terms at https://huggingface.co/Wan-AI/Wan2.1-VACE-1.3B-diffusers/tree/ec4d2cb062b548996b179d493fdd05340de702a1" ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "Wan-AI/Wan2.1-FLF2V-14B-720P-diffusers@17c30769b1e0b5dcaa1799b117bf20a9c31f59d7 https://huggingface.co/Wan-AI/Wan2.1-FLF2V-14B-720P-diffusers/tree/17c30769b1e0b5dcaa1799b117bf20a9c31f59d7" + "Wan-AI/Wan2.1-VACE-1.3B-diffusers@ec4d2cb062b548996b179d493fdd05340de702a1 https://huggingface.co/Wan-AI/Wan2.1-VACE-1.3B-diffusers/tree/ec4d2cb062b548996b179d493fdd05340de702a1" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "ffeaa41a5c94b59135d2cdb15a5c7f79f073c15fd78792ce00a157398ab15d59", + "humanApprovalPacketSHA256": "de8db2f2fa14b59514ea146654439aea279cc6fad5be1dca8cf17e057abe9945", "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", - "provenanceTemplateId": "wan_flf_blue_hour_at_the_tram_shelter" + "provenanceTemplateId": "wan_vace_amber_rings_after_rain" }, { - "path": "template-gallery/reviews/wan_flf_blue_hour_at_the_tram_shelter.original-review.json", - "sha256": "sha256:bytes:70b7a63ed50e5c3ccd8c706fd07917afec3ac8ef088d33b28b8d22d57f800548", + "path": "template-gallery/reviews/wan_vace_amber_rings_after_rain.original-review.json", + "sha256": "sha256:bytes:7ed3a6bacaf029f014c5f7540c50ba7da542903367a6bfbe39eca6c3c15a5196", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/Wan-AI/Wan2.1-FLF2V-14B-720P-diffusers/tree/17c30769b1e0b5dcaa1799b117bf20a9c31f59d7", - "sourceRevision": "Wan-AI/Wan2.1-FLF2V-14B-720P-diffusers@17c30769b1e0b5dcaa1799b117bf20a9c31f59d7", + "sourceUrl": "https://huggingface.co/Wan-AI/Wan2.1-VACE-1.3B-diffusers/tree/ec4d2cb062b548996b179d493fdd05340de702a1", + "sourceRevision": "Wan-AI/Wan2.1-VACE-1.3B-diffusers@ec4d2cb062b548996b179d493fdd05340de702a1", "sourceLicense": "MoDiff-authored Gallery metadata", "modelTerms": [ - "Publisher model terms at https://huggingface.co/Wan-AI/Wan2.1-FLF2V-14B-720P-diffusers/tree/17c30769b1e0b5dcaa1799b117bf20a9c31f59d7" + "Publisher model terms at https://huggingface.co/Wan-AI/Wan2.1-VACE-1.3B-diffusers/tree/ec4d2cb062b548996b179d493fdd05340de702a1" ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "Wan-AI/Wan2.1-FLF2V-14B-720P-diffusers@17c30769b1e0b5dcaa1799b117bf20a9c31f59d7 https://huggingface.co/Wan-AI/Wan2.1-FLF2V-14B-720P-diffusers/tree/17c30769b1e0b5dcaa1799b117bf20a9c31f59d7" + "Wan-AI/Wan2.1-VACE-1.3B-diffusers@ec4d2cb062b548996b179d493fdd05340de702a1 https://huggingface.co/Wan-AI/Wan2.1-VACE-1.3B-diffusers/tree/ec4d2cb062b548996b179d493fdd05340de702a1" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "ffeaa41a5c94b59135d2cdb15a5c7f79f073c15fd78792ce00a157398ab15d59", + "humanApprovalPacketSHA256": "de8db2f2fa14b59514ea146654439aea279cc6fad5be1dca8cf17e057abe9945", "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", - "provenanceTemplateId": "wan_flf_blue_hour_at_the_tram_shelter" + "provenanceTemplateId": "wan_vace_amber_rings_after_rain" }, { - "path": "template-gallery/reviews/wan_flf_blue_hour_at_the_tram_shelter.quality-review.json", - "sha256": "sha256:bytes:a549ff13492e46da3c707f861fb33fd71411034ffb96a81550d7a16fcd79cf12", + "path": "template-gallery/reviews/wan_vace_amber_rings_after_rain.quality-review.json", + "sha256": "sha256:bytes:82fa4f72865bc998461d725a6454112962566b14586b42ead517d8f446ac0599", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/Wan-AI/Wan2.1-FLF2V-14B-720P-diffusers/tree/17c30769b1e0b5dcaa1799b117bf20a9c31f59d7", - "sourceRevision": "Wan-AI/Wan2.1-FLF2V-14B-720P-diffusers@17c30769b1e0b5dcaa1799b117bf20a9c31f59d7", + "sourceUrl": "https://huggingface.co/Wan-AI/Wan2.1-VACE-1.3B-diffusers/tree/ec4d2cb062b548996b179d493fdd05340de702a1", + "sourceRevision": "Wan-AI/Wan2.1-VACE-1.3B-diffusers@ec4d2cb062b548996b179d493fdd05340de702a1", "sourceLicense": "MoDiff-authored Gallery metadata", "modelTerms": [ - "Publisher model terms at https://huggingface.co/Wan-AI/Wan2.1-FLF2V-14B-720P-diffusers/tree/17c30769b1e0b5dcaa1799b117bf20a9c31f59d7" + "Publisher model terms at https://huggingface.co/Wan-AI/Wan2.1-VACE-1.3B-diffusers/tree/ec4d2cb062b548996b179d493fdd05340de702a1" ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "Wan-AI/Wan2.1-FLF2V-14B-720P-diffusers@17c30769b1e0b5dcaa1799b117bf20a9c31f59d7 https://huggingface.co/Wan-AI/Wan2.1-FLF2V-14B-720P-diffusers/tree/17c30769b1e0b5dcaa1799b117bf20a9c31f59d7" + "Wan-AI/Wan2.1-VACE-1.3B-diffusers@ec4d2cb062b548996b179d493fdd05340de702a1 https://huggingface.co/Wan-AI/Wan2.1-VACE-1.3B-diffusers/tree/ec4d2cb062b548996b179d493fdd05340de702a1" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "ffeaa41a5c94b59135d2cdb15a5c7f79f073c15fd78792ce00a157398ab15d59", + "humanApprovalPacketSHA256": "de8db2f2fa14b59514ea146654439aea279cc6fad5be1dca8cf17e057abe9945", "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", - "provenanceTemplateId": "wan_flf_blue_hour_at_the_tram_shelter" + "provenanceTemplateId": "wan_vace_amber_rings_after_rain" }, { - "path": "template-gallery/reviews/wan_flf_blue_hour_at_the_tram_shelter.retained-template-provenance.json", - "sha256": "sha256:bytes:e4deed2284f9ae122cbb97a82049d7407fdec05f34d332f8225b40fd40b13820", + "path": "template-gallery/reviews/wan_vace_amber_rings_after_rain.retained-template-provenance.json", + "sha256": "sha256:bytes:c416efe725b4ba3e2dd7ea08c16b574205d292c3c3e2198d707b602a0fcb0bac", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/Wan-AI/Wan2.1-FLF2V-14B-720P-diffusers/tree/17c30769b1e0b5dcaa1799b117bf20a9c31f59d7", - "sourceRevision": "Wan-AI/Wan2.1-FLF2V-14B-720P-diffusers@17c30769b1e0b5dcaa1799b117bf20a9c31f59d7", + "sourceUrl": "https://huggingface.co/Wan-AI/Wan2.1-VACE-1.3B-diffusers/tree/ec4d2cb062b548996b179d493fdd05340de702a1", + "sourceRevision": "Wan-AI/Wan2.1-VACE-1.3B-diffusers@ec4d2cb062b548996b179d493fdd05340de702a1", "sourceLicense": "MoDiff-authored Gallery metadata", "modelTerms": [ - "Publisher model terms at https://huggingface.co/Wan-AI/Wan2.1-FLF2V-14B-720P-diffusers/tree/17c30769b1e0b5dcaa1799b117bf20a9c31f59d7" + "Publisher model terms at https://huggingface.co/Wan-AI/Wan2.1-VACE-1.3B-diffusers/tree/ec4d2cb062b548996b179d493fdd05340de702a1" ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "Wan-AI/Wan2.1-FLF2V-14B-720P-diffusers@17c30769b1e0b5dcaa1799b117bf20a9c31f59d7 https://huggingface.co/Wan-AI/Wan2.1-FLF2V-14B-720P-diffusers/tree/17c30769b1e0b5dcaa1799b117bf20a9c31f59d7" + "Wan-AI/Wan2.1-VACE-1.3B-diffusers@ec4d2cb062b548996b179d493fdd05340de702a1 https://huggingface.co/Wan-AI/Wan2.1-VACE-1.3B-diffusers/tree/ec4d2cb062b548996b179d493fdd05340de702a1" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "ffeaa41a5c94b59135d2cdb15a5c7f79f073c15fd78792ce00a157398ab15d59", + "humanApprovalPacketSHA256": "de8db2f2fa14b59514ea146654439aea279cc6fad5be1dca8cf17e057abe9945", "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", - "provenanceTemplateId": "wan_flf_blue_hour_at_the_tram_shelter" + "provenanceTemplateId": "wan_vace_amber_rings_after_rain" }, { "creatorOrRightsholder": "MoDiff project maintainers", @@ -24212,6 +25913,33 @@ "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", "provenanceTemplateId": "salt_marsh_from_above" }, + { + "path": "template-gallery/sana_i2v_blue_hour_above_rice_terraces.mp4", + "sha256": "sha256:bytes:3b948924eeb984126741dc465d78482ae9a01704010ae59e9ffec3ed9973351a", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Exact approved file captured from a saved MoDiff workflow", + "sourceUrl": "https://huggingface.co/Efficient-Large-Model/SANA-Video_2B_480p_diffusers/tree/db5f398b13ca086d09a50ce156c20527773841b1", + "sourceRevision": "Efficient-Large-Model/SANA-Video_2B_480p_diffusers@db5f398b13ca086d09a50ce156c20527773841b1", + "sourceLicense": "Maintainer-authorized file with publisher terms retained", + "modelTerms": [ + "Publisher model terms at https://huggingface.co/Efficient-Large-Model/SANA-Video_2B_480p_diffusers/tree/db5f398b13ca086d09a50ce156c20527773841b1" + ], + "aiGenerated": true, + "humanLikenessConsent": "synthetic", + "marks": [], + "requiredAttribution": [ + "Efficient-Large-Model/SANA-Video_2B_480p_diffusers@db5f398b13ca086d09a50ce156c20527773841b1 https://huggingface.co/Efficient-Large-Model/SANA-Video_2B_480p_diffusers/tree/db5f398b13ca086d09a50ce156c20527773841b1" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "de8db2f2fa14b59514ea146654439aea279cc6fad5be1dca8cf17e057abe9945", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "sana_i2v_blue_hour_above_rice_terraces" + }, { "path": "template-gallery/sana_sprint_monochrome_tiger.webp", "sha256": "sha256:bytes:f22b1d5a1d2944949698b47eec10e7f8d04b23bc0746f4e089b41d78e9d94ff7", @@ -24268,6 +25996,33 @@ "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", "provenanceTemplateId": "sana_tidal_pool_on_black_basalt" }, + { + "path": "template-gallery/sana_video_water_terraces_before_sunrise.mp4", + "sha256": "sha256:bytes:532ab779797e91108d78d646478cf5e997b35b74acab8f2011d79bd421846301", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Exact approved file captured from a saved MoDiff workflow", + "sourceUrl": "https://huggingface.co/Efficient-Large-Model/SANA-Video_2B_480p_diffusers/tree/db5f398b13ca086d09a50ce156c20527773841b1", + "sourceRevision": "Efficient-Large-Model/SANA-Video_2B_480p_diffusers@db5f398b13ca086d09a50ce156c20527773841b1", + "sourceLicense": "Maintainer-authorized file with publisher terms retained", + "modelTerms": [ + "Publisher model terms at https://huggingface.co/Efficient-Large-Model/SANA-Video_2B_480p_diffusers/tree/db5f398b13ca086d09a50ce156c20527773841b1" + ], + "aiGenerated": true, + "humanLikenessConsent": "synthetic", + "marks": [], + "requiredAttribution": [ + "Efficient-Large-Model/SANA-Video_2B_480p_diffusers@db5f398b13ca086d09a50ce156c20527773841b1 https://huggingface.co/Efficient-Large-Model/SANA-Video_2B_480p_diffusers/tree/db5f398b13ca086d09a50ce156c20527773841b1" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "de8db2f2fa14b59514ea146654439aea279cc6fad5be1dca8cf17e057abe9945", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "sana_video_water_terraces_before_sunrise" + }, { "path": "template-gallery/sd15_canny_guided_green_glass.webp", "sha256": "sha256:bytes:d564a03d8e7b1a96083bd314b3700e828da2575b2b355cc574ebbcb17dd7a2d5", @@ -25524,6 +27279,33 @@ "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped six saved cases with model terms retained.", "provenanceTemplateId": "smolvlm_red_triangle" }, + { + "path": "template-gallery/spandrel_tram_shelter_video_2x.mp4", + "sha256": "sha256:bytes:60fae4330a462a468fe68e62c692f22f713a9f908cf286942206260e8aa42fc0", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Exact approved file captured from a saved MoDiff workflow", + "sourceUrl": "https://huggingface.co/nateraw/real-esrgan/tree/42efb9c3eeed1f5c0c8a626cf5f7f4481dfbb094", + "sourceRevision": "nateraw/real-esrgan@42efb9c3eeed1f5c0c8a626cf5f7f4481dfbb094", + "sourceLicense": "Maintainer-authorized file with publisher terms retained", + "modelTerms": [ + "Publisher model terms at https://huggingface.co/nateraw/real-esrgan/tree/42efb9c3eeed1f5c0c8a626cf5f7f4481dfbb094" + ], + "aiGenerated": true, + "humanLikenessConsent": "synthetic", + "marks": [], + "requiredAttribution": [ + "nateraw/real-esrgan@42efb9c3eeed1f5c0c8a626cf5f7f4481dfbb094 https://huggingface.co/nateraw/real-esrgan/tree/42efb9c3eeed1f5c0c8a626cf5f7f4481dfbb094" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "de8db2f2fa14b59514ea146654439aea279cc6fad5be1dca8cf17e057abe9945", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "spandrel_tram_shelter_video_2x" + }, { "path": "template-gallery/spandrel_x2_synthetic_gradient.webp", "sha256": "sha256:bytes:5b1ea25aacbedb50055ac010b38da45dbb3dab5477be1b2b1d99781a299e8729", @@ -25747,6 +27529,33 @@ "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", "provenanceTemplateId": "wan_a14b_cloudbreak_over_the_ridges" }, + { + "path": "template-gallery/wan_a14b_wind_across_pond.mp4", + "sha256": "sha256:bytes:5d6b75cd3c7925c53f4f4fb12adc62170594bb4c56275d38fb0278d2f803bb69", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Exact approved file captured from a saved MoDiff workflow", + "sourceUrl": "https://huggingface.co/Wan-AI/Wan2.2-I2V-A14B-Diffusers/tree/596658fd9ca6b7b71d5057529bbf319ecbc61d74", + "sourceRevision": "Wan-AI/Wan2.2-I2V-A14B-Diffusers@596658fd9ca6b7b71d5057529bbf319ecbc61d74", + "sourceLicense": "Maintainer-authorized file with publisher terms retained", + "modelTerms": [ + "Publisher model terms at https://huggingface.co/Wan-AI/Wan2.2-I2V-A14B-Diffusers/tree/596658fd9ca6b7b71d5057529bbf319ecbc61d74" + ], + "aiGenerated": true, + "humanLikenessConsent": "synthetic", + "marks": [], + "requiredAttribution": [ + "Wan-AI/Wan2.2-I2V-A14B-Diffusers@596658fd9ca6b7b71d5057529bbf319ecbc61d74 https://huggingface.co/Wan-AI/Wan2.2-I2V-A14B-Diffusers/tree/596658fd9ca6b7b71d5057529bbf319ecbc61d74" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "de8db2f2fa14b59514ea146654439aea279cc6fad5be1dca8cf17e057abe9945", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "wan_a14b_wind_across_pond" + }, { "path": "template-gallery/wan_flf_blue_hour_at_the_tram_shelter.mp4", "sha256": "sha256:bytes:a356ce3baa0be0556829715ccc72f1a9ccbe99625315cca04e3ee33a4e83f550", @@ -25774,6 +27583,60 @@ "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", "provenanceTemplateId": "wan_flf_blue_hour_at_the_tram_shelter" }, + { + "path": "template-gallery/wan_ti2v_subway_musician.mp4", + "sha256": "sha256:bytes:287344e1179d07788f3e9714324d15fe98a025855dbbe8d1f5b600288952ce68", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Exact approved file captured from a saved MoDiff workflow", + "sourceUrl": "https://huggingface.co/Wan-AI/Wan2.2-TI2V-5B-Diffusers/tree/b8fff7315c768468a5333511427288870b2e9635", + "sourceRevision": "Wan-AI/Wan2.2-TI2V-5B-Diffusers@b8fff7315c768468a5333511427288870b2e9635", + "sourceLicense": "Maintainer-authorized file with publisher terms retained", + "modelTerms": [ + "Publisher model terms at https://huggingface.co/Wan-AI/Wan2.2-TI2V-5B-Diffusers/tree/b8fff7315c768468a5333511427288870b2e9635" + ], + "aiGenerated": true, + "humanLikenessConsent": "synthetic", + "marks": [], + "requiredAttribution": [ + "Wan-AI/Wan2.2-TI2V-5B-Diffusers@b8fff7315c768468a5333511427288870b2e9635 https://huggingface.co/Wan-AI/Wan2.2-TI2V-5B-Diffusers/tree/b8fff7315c768468a5333511427288870b2e9635" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "de8db2f2fa14b59514ea146654439aea279cc6fad5be1dca8cf17e057abe9945", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "wan_ti2v_subway_musician" + }, + { + "path": "template-gallery/wan_vace_amber_rings_after_rain.mp4", + "sha256": "sha256:bytes:e89cb86ed3bd34040b7fc6c699f99e21c4dc827ac943258c7d9daad9d58b752c", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Exact approved file captured from a saved MoDiff workflow", + "sourceUrl": "https://huggingface.co/Wan-AI/Wan2.1-VACE-1.3B-diffusers/tree/ec4d2cb062b548996b179d493fdd05340de702a1", + "sourceRevision": "Wan-AI/Wan2.1-VACE-1.3B-diffusers@ec4d2cb062b548996b179d493fdd05340de702a1", + "sourceLicense": "Maintainer-authorized file with publisher terms retained", + "modelTerms": [ + "Publisher model terms at https://huggingface.co/Wan-AI/Wan2.1-VACE-1.3B-diffusers/tree/ec4d2cb062b548996b179d493fdd05340de702a1" + ], + "aiGenerated": true, + "humanLikenessConsent": "synthetic", + "marks": [], + "requiredAttribution": [ + "Wan-AI/Wan2.1-VACE-1.3B-diffusers@ec4d2cb062b548996b179d493fdd05340de702a1 https://huggingface.co/Wan-AI/Wan2.1-VACE-1.3B-diffusers/tree/ec4d2cb062b548996b179d493fdd05340de702a1" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "de8db2f2fa14b59514ea146654439aea279cc6fad5be1dca8cf17e057abe9945", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "wan_vace_amber_rings_after_rain" + }, { "path": "template-gallery/wan_vace_cinematic_text_to_video.card-poster.png", "sha256": "sha256:bytes:50ddf968f99584f43293e02746d3629fc3dd315a238a6aabc29bb680f3609f6e", diff --git a/config/template-assets.v1.json b/config/template-assets.v1.json index 5c41d7af..498a792d 100644 --- a/config/template-assets.v1.json +++ b/config/template-assets.v1.json @@ -153,6 +153,15 @@ "tooling" ] }, + { + "path": "template-gallery/allegro_basalt_shore_at_dawn.mp4", + "size": 1170894, + "sha256": "sha256:bytes:339a491d6a2cf77eca00db90989738b55f1d5641321ba0bd95f7ff4439ca15e1", + "contentType": "video/mp4", + "purposes": [ + "runtime" + ] + }, { "path": "template-gallery/alpine_lake_in_oils.webp", "size": 565124, @@ -164,6 +173,42 @@ "width": 1024, "height": 1024 }, + { + "path": "template-gallery/animatediff_candlelight_behind_amber_glass.mp4", + "size": 393798, + "sha256": "sha256:bytes:c309175cb9252e11bba17697d8fe18a6e9e27e61b76710ed8fa58b967cbf8539", + "contentType": "video/mp4", + "purposes": [ + "runtime" + ] + }, + { + "path": "template-gallery/animatediff_ivory_balloon_blue_mountains.mp4", + "size": 280090, + "sha256": "sha256:bytes:741ea097f00b994dc9b26b2bd7cb2095ddb87d9bd3a7d492bf147fd2bd7be99c", + "contentType": "video/mp4", + "purposes": [ + "runtime" + ] + }, + { + "path": "template-gallery/animatediff_red_tram_in_watercolor.mp4", + "size": 70088, + "sha256": "sha256:bytes:88ddfb68b18872e653bcc7c9c05299f7e84186e3d54ac6f31c33ea9390c1e3be", + "contentType": "video/mp4", + "purposes": [ + "runtime" + ] + }, + { + "path": "template-gallery/animatediff_red_tram_through_snow.mp4", + "size": 110415, + "sha256": "sha256:bytes:3082836cafeb4561f57b53b62da63e83602ad4b61c7af02fe2fc75ff83375cb6", + "contentType": "video/mp4", + "purposes": [ + "runtime" + ] + }, { "path": "template-gallery/bookshop_at_blue_hour.webp", "size": 569776, @@ -1564,6 +1609,42 @@ "width": 1024, "height": 1024 }, + { + "path": "template-gallery/inputs/animatediff_ivory_balloon_blue_mountains.guide.mp4", + "size": 11404, + "sha256": "sha256:bytes:fb000903f199391388d25d869aedacaedfe3ffbca67800e3113e1173f56e8108", + "contentType": "video/mp4", + "purposes": [ + "runtime" + ] + }, + { + "path": "template-gallery/inputs/animatediff_red_tram_in_watercolor.before.mp4", + "size": 23393, + "sha256": "sha256:bytes:88b69acee9f0c3572a98e49b23ad0e853dc86e1d15074fca99b47f690dde900f", + "contentType": "video/mp4", + "purposes": [ + "runtime" + ] + }, + { + "path": "template-gallery/inputs/animatediff_red_tram_through_snow.before.mp4", + "size": 23393, + "sha256": "sha256:bytes:88b69acee9f0c3572a98e49b23ad0e853dc86e1d15074fca99b47f690dde900f", + "contentType": "video/mp4", + "purposes": [ + "runtime" + ] + }, + { + "path": "template-gallery/inputs/animatediff_red_tram_through_snow.guide.mp4", + "size": 61066, + "sha256": "sha256:bytes:5911e85b2d5ef93e44ba5d76f73ddf77f9d49d6cf3e4e829c30f0e386a0b8d80", + "contentType": "video/mp4", + "purposes": [ + "runtime" + ] + }, { "path": "template-gallery/inputs/character_edit.before.webp", "size": 329508, @@ -2435,6 +2516,17 @@ "width": 512, "height": 512 }, + { + "path": "template-gallery/inputs/sana_i2v_blue_hour_above_rice_terraces.first.png", + "size": 741863, + "sha256": "sha256:bytes:0644be42f8f1f2a8f9eed3df2cb14a8709d8b681c23749cc4bb69e41d4d0618e", + "contentType": "image/png", + "purposes": [ + "runtime" + ], + "width": 832, + "height": 480 + }, { "path": "template-gallery/inputs/sana_sprint_monochrome_tiger.before.webp", "size": 256118, @@ -2743,6 +2835,15 @@ "width": 768, "height": 768 }, + { + "path": "template-gallery/inputs/spandrel_tram_shelter_video_2x.before.mp4", + "size": 373918, + "sha256": "sha256:bytes:5c24b2b67f893f48e4dbf0d893e0aa4308852592f30f8179b44298cca4ce197e", + "contentType": "video/mp4", + "purposes": [ + "runtime" + ] + }, { "path": "template-gallery/inputs/spandrel_x2_synthetic_gradient.before.png", "size": 177, @@ -2754,6 +2855,17 @@ "width": 64, "height": 48 }, + { + "path": "template-gallery/inputs/wan_a14b_wind_across_pond.first.png", + "size": 669116, + "sha256": "sha256:bytes:cd29e54e208f6040d3f4cbbf8c9f096d537f8c71dffb50d5abae3298cc49deaf", + "contentType": "image/png", + "purposes": [ + "runtime" + ], + "width": 768, + "height": 512 + }, { "path": "template-gallery/inputs/wan_flf_blue_hour_at_the_tram_shelter.first.png", "size": 695609, @@ -3378,8 +3490,8 @@ }, { "path": "template-gallery/manifest.json", - "size": 444039, - "sha256": "sha256:bytes:858aa2f3d3d4340a820e48603cc1f82cd7a6d8f508b3ec2fb04c663218b42ca9", + "size": 474815, + "sha256": "sha256:bytes:76650b43470a6406be046086c8c987b12b24257866783ce4581bf72d5a67970b", "contentType": "application/json", "purposes": [ "runtime", @@ -3406,6 +3518,15 @@ "runtime" ] }, + { + "path": "template-gallery/mochi_surf_over_dark_pebbles.mp4", + "size": 184158, + "sha256": "sha256:bytes:2462a31378c7108fa7c46143a89630798d8450f2d75f6e7ea4aa24f1621f2ce1", + "contentType": "video/mp4", + "purposes": [ + "runtime" + ] + }, { "path": "template-gallery/ochre_paper_pavilion.webp", "size": 150332, @@ -3483,6 +3604,17 @@ "width": 512, "height": 512 }, + { + "path": "template-gallery/posters/spandrel_tram_shelter_video_2x.webp", + "size": 323458, + "sha256": "sha256:bytes:6ab0a30271cb628a0a9c50c6544c45ef82c9e2e84f436a8f68bd34e9da1c560e", + "contentType": "image/webp", + "purposes": [ + "runtime" + ], + "width": 1800, + "height": 1100 + }, { "path": "template-gallery/posters/wan_a14b_cloudbreak_over_the_ridges.png", "size": 377021, @@ -3494,6 +3626,17 @@ "width": 768, "height": 512 }, + { + "path": "template-gallery/posters/wan_ti2v_subway_musician.webp", + "size": 68512, + "sha256": "sha256:bytes:b035c7d59c603ff5c02ec1f1ea641241cf9e04698231f980903478957bcab40f", + "contentType": "image/webp", + "purposes": [ + "runtime" + ], + "width": 960, + "height": 528 + }, { "path": "template-gallery/quiet_current.webp", "size": 109696, @@ -4138,6 +4281,42 @@ "runtime" ] }, + { + "path": "template-gallery/reviews/allegro_basalt_shore_at_dawn.original-provenance.json", + "size": 1061, + "sha256": "sha256:bytes:a2996998d545c63c8b494e783fe57caa254f36dc961a70e708b28e03550bccac", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, + { + "path": "template-gallery/reviews/allegro_basalt_shore_at_dawn.original-review.json", + "size": 683, + "sha256": "sha256:bytes:0b000fdf57c52d56adac605a0f840128da2c78e62aafc58fc3c441800196c747", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, + { + "path": "template-gallery/reviews/allegro_basalt_shore_at_dawn.quality-review.json", + "size": 2544, + "sha256": "sha256:bytes:e5da20def6cd0d5058ff1088fa23538fc24d20f454aaf8e426550e07ebe1b0fa", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, + { + "path": "template-gallery/reviews/allegro_basalt_shore_at_dawn.retained-template-provenance.json", + "size": 3549, + "sha256": "sha256:bytes:6057e4c649904336d8f2062637440260e4cadffe99e84d251d9e72427957f0f5", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, { "path": "template-gallery/reviews/alpine_lake_in_oils.original-provenance.json", "size": 3315, @@ -4174,6 +4353,150 @@ "runtime" ] }, + { + "path": "template-gallery/reviews/animatediff_candlelight_behind_amber_glass.original-provenance.json", + "size": 1429, + "sha256": "sha256:bytes:79862c74ca64222731ff6a86973283b578d12ebc72b6fa1e271177e9dcb814aa", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, + { + "path": "template-gallery/reviews/animatediff_candlelight_behind_amber_glass.original-review.json", + "size": 681, + "sha256": "sha256:bytes:2cb4965c1c1a39eb2a1dcfc0609065b4db61c0b2360663744d4d0e600c9d087f", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, + { + "path": "template-gallery/reviews/animatediff_candlelight_behind_amber_glass.quality-review.json", + "size": 2584, + "sha256": "sha256:bytes:38711644268110700dffed84439a0ab8e5f35003b9823fc4b34dd1751291d4a1", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, + { + "path": "template-gallery/reviews/animatediff_candlelight_behind_amber_glass.retained-template-provenance.json", + "size": 3770, + "sha256": "sha256:bytes:2ddc8e7e5616f8a222d9bebe0fab488e4fce11c1e2be03e9ba40d6153050763b", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, + { + "path": "template-gallery/reviews/animatediff_ivory_balloon_blue_mountains.original-provenance.json", + "size": 2036, + "sha256": "sha256:bytes:714874a82ef9979fbe7ec94fda08ba641db4264fcdfacd4008ec385bfcf30452", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, + { + "path": "template-gallery/reviews/animatediff_ivory_balloon_blue_mountains.original-review.json", + "size": 959, + "sha256": "sha256:bytes:68c41e118c91f05d7d44d2f89d17bbe08e4f0081d7b03d4c7c56cb1f61bd117a", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, + { + "path": "template-gallery/reviews/animatediff_ivory_balloon_blue_mountains.quality-review.json", + "size": 2747, + "sha256": "sha256:bytes:1b02ea17ec15c71c00c0092566a6eca31887f1f0064f59e58041f008a48ed7a4", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, + { + "path": "template-gallery/reviews/animatediff_ivory_balloon_blue_mountains.retained-template-provenance.json", + "size": 4397, + "sha256": "sha256:bytes:298df24429b6a944e33aa796bf1214547b6ce84f454b4b844c5d0a06492aa042", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, + { + "path": "template-gallery/reviews/animatediff_red_tram_in_watercolor.original-provenance.json", + "size": 1424, + "sha256": "sha256:bytes:e7a460bbb4657cda566f0c90b57d820aa0000785df2737e2ad7777296897f8a4", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, + { + "path": "template-gallery/reviews/animatediff_red_tram_in_watercolor.original-review.json", + "size": 913, + "sha256": "sha256:bytes:5cc5387ab876b37c77b2f5885b7c2fc8948c048faee40d0a3748d670c7d46d9d", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, + { + "path": "template-gallery/reviews/animatediff_red_tram_in_watercolor.quality-review.json", + "size": 2924, + "sha256": "sha256:bytes:3828845174e5702fe4a393a86bc6e7b5847f1c8639b23800d61c6e3633183261", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, + { + "path": "template-gallery/reviews/animatediff_red_tram_in_watercolor.retained-template-provenance.json", + "size": 3993, + "sha256": "sha256:bytes:137902583abc832020f92f256050bc44104f0762360f470138e654746d278b59", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, + { + "path": "template-gallery/reviews/animatediff_red_tram_through_snow.original-provenance.json", + "size": 2314, + "sha256": "sha256:bytes:b5198902e667bfa48b915027b301a3150ec994c44b132213c3c855b24e3f08f8", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, + { + "path": "template-gallery/reviews/animatediff_red_tram_through_snow.original-review.json", + "size": 1064, + "sha256": "sha256:bytes:eef73b832d4acfb53ca4d5ededbd580821d8d91ffb372fcdcfb55f5f469f33cc", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, + { + "path": "template-gallery/reviews/animatediff_red_tram_through_snow.quality-review.json", + "size": 2692, + "sha256": "sha256:bytes:c5c55e2d2ac7cbb65ef5ed89611da7b51b57ed5ed52d110fb324fe772eae6a0d", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, + { + "path": "template-gallery/reviews/animatediff_red_tram_through_snow.retained-template-provenance.json", + "size": 4630, + "sha256": "sha256:bytes:aa34be488b31fd42a12a1db6ff4c0b0ba2ec653439f4a62011698aeb46b71baa", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, { "path": "template-gallery/reviews/bookshop_at_blue_hour.original-provenance.json", "size": 2922, @@ -6300,6 +6623,42 @@ "runtime" ] }, + { + "path": "template-gallery/reviews/mochi_surf_over_dark_pebbles.original-provenance.json", + "size": 1097, + "sha256": "sha256:bytes:74b784153cf2626a77aee1e9f6ec452261b07350b643e152f23e864e7ef6259f", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, + { + "path": "template-gallery/reviews/mochi_surf_over_dark_pebbles.original-review.json", + "size": 613, + "sha256": "sha256:bytes:9b8bf5f3fe30fad3bb2bb970e6749a3f7f89ce7946eef3484c840167af3f86f9", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, + { + "path": "template-gallery/reviews/mochi_surf_over_dark_pebbles.quality-review.json", + "size": 2503, + "sha256": "sha256:bytes:124e335657f246c8f498b5ebc7d259522bba555c763c9a51fda3596c143690b2", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, + { + "path": "template-gallery/reviews/mochi_surf_over_dark_pebbles.retained-template-provenance.json", + "size": 3492, + "sha256": "sha256:bytes:284c2a0297b7e9f83f84b23ce94062462611273672b580b1f65311455803b45f", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, { "path": "template-gallery/reviews/ochre_paper_pavilion.original-provenance.json", "size": 3254, @@ -7362,6 +7721,42 @@ "runtime" ] }, + { + "path": "template-gallery/reviews/sana_i2v_blue_hour_above_rice_terraces.original-provenance.json", + "size": 1517, + "sha256": "sha256:bytes:7bc9085e6b972b876e8e26e109ce89e2771e2b8b6dab904313f2806be2afc93b", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, + { + "path": "template-gallery/reviews/sana_i2v_blue_hour_above_rice_terraces.original-review.json", + "size": 761, + "sha256": "sha256:bytes:e04a83a228783f9b7b8d9ad023dfc8af480e3b61254957280aea6b5513caaadf", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, + { + "path": "template-gallery/reviews/sana_i2v_blue_hour_above_rice_terraces.quality-review.json", + "size": 2662, + "sha256": "sha256:bytes:b588f00fbc3c68bfe70f263a8b4c36cceeaa5691590fdfcc22b0b51537e89e1a", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, + { + "path": "template-gallery/reviews/sana_i2v_blue_hour_above_rice_terraces.retained-template-provenance.json", + "size": 3917, + "sha256": "sha256:bytes:e27e84a5fcdb01e1c410dfa311e43a13912853b1e20272979f078e04c74d5c6e", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, { "path": "template-gallery/reviews/sana_sprint_monochrome_tiger.quality-review.json", "size": 3320, @@ -7416,6 +7811,42 @@ "runtime" ] }, + { + "path": "template-gallery/reviews/sana_video_water_terraces_before_sunrise.original-provenance.json", + "size": 1165, + "sha256": "sha256:bytes:250635b2ca6018d644f10604fd886da1c4d0b478dee0b119789bcceabbf1494e", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, + { + "path": "template-gallery/reviews/sana_video_water_terraces_before_sunrise.original-review.json", + "size": 640, + "sha256": "sha256:bytes:3b96a247980147b258ed402c1614046d15d02e458fcea8a11f5dbb58585a1f7e", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, + { + "path": "template-gallery/reviews/sana_video_water_terraces_before_sunrise.quality-review.json", + "size": 2592, + "sha256": "sha256:bytes:0bf7cc281ab478b7719c384b06b83a15b8e21745ffd6247e20b5f3ddf33194a3", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, + { + "path": "template-gallery/reviews/sana_video_water_terraces_before_sunrise.retained-template-provenance.json", + "size": 3583, + "sha256": "sha256:bytes:f0cc994e00a2bc07c096ec6f718af2dc4e279c47654d9b19d09fb6342a536442", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, { "path": "template-gallery/reviews/sd15_canny_guided_green_glass.original-provenance.json", "size": 1208, @@ -8082,6 +8513,42 @@ "runtime" ] }, + { + "path": "template-gallery/reviews/spandrel_tram_shelter_video_2x.original-provenance.json", + "size": 1321, + "sha256": "sha256:bytes:93548255b2f66162d1dae4838547a8144eb5b0bba7885db5914d54702f98efe5", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, + { + "path": "template-gallery/reviews/spandrel_tram_shelter_video_2x.original-review.json", + "size": 868, + "sha256": "sha256:bytes:ebc2cc444a1f0e83614e35d41b598ab8a78c57768313b6bc45f5ca4dff1b72e9", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, + { + "path": "template-gallery/reviews/spandrel_tram_shelter_video_2x.quality-review.json", + "size": 3061, + "sha256": "sha256:bytes:584a2e4480f23b8489a3dd11930f64fdd7956619e25c24b7489e859f665b70e8", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, + { + "path": "template-gallery/reviews/spandrel_tram_shelter_video_2x.retained-template-provenance.json", + "size": 4433, + "sha256": "sha256:bytes:2ad672e15b395ae0437eae8380083ed4ee76bf6a1efafa683570226080a212c1", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, { "path": "template-gallery/reviews/spandrel_x2_synthetic_gradient.quality-review.json", "size": 2674, @@ -8192,6 +8659,42 @@ "runtime" ] }, + { + "path": "template-gallery/reviews/wan_a14b_wind_across_pond.original-provenance.json", + "size": 1278, + "sha256": "sha256:bytes:c8288cada585d18cd7a71b7094fd19125131e3753171d94f3c79ebf12c59c64a", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, + { + "path": "template-gallery/reviews/wan_a14b_wind_across_pond.original-review.json", + "size": 744, + "sha256": "sha256:bytes:abce3c693a5c298d0cf580e200540b6bcb16b3f461acc27e4bf750d829f4cafe", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, + { + "path": "template-gallery/reviews/wan_a14b_wind_across_pond.quality-review.json", + "size": 2511, + "sha256": "sha256:bytes:5f9946d7d69874e43eb07b24732b57e4aae4fddc6e281b5afa84803638d1298b", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, + { + "path": "template-gallery/reviews/wan_a14b_wind_across_pond.retained-template-provenance.json", + "size": 3839, + "sha256": "sha256:bytes:d9b781b0ff4349d361c02cd395e3340c7ffe622cbcf311b805231c86ec4cf9c1", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, { "path": "template-gallery/reviews/wan_flf_blue_hour_at_the_tram_shelter.original-provenance.json", "size": 1322, @@ -8228,6 +8731,78 @@ "runtime" ] }, + { + "path": "template-gallery/reviews/wan_ti2v_subway_musician.original-provenance.json", + "size": 3839, + "sha256": "sha256:bytes:2b4a47b2aa7e904f2541a51b150497e420d1970fa202e44a99bb04956f3fa703", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, + { + "path": "template-gallery/reviews/wan_ti2v_subway_musician.original-review.json", + "size": 547, + "sha256": "sha256:bytes:e0c162c7130f640bcd9375d070f0d5eff1ef4c4ec26b829c18733dd8d644dd8c", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, + { + "path": "template-gallery/reviews/wan_ti2v_subway_musician.quality-review.json", + "size": 3058, + "sha256": "sha256:bytes:e0fff184772e4c8465c986c3c9bb2f5024ed19cc809330bbcfa7705ee452bdfc", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, + { + "path": "template-gallery/reviews/wan_ti2v_subway_musician.retained-template-provenance.json", + "size": 4290, + "sha256": "sha256:bytes:5aef1cb2eff8bd92f71e8d9be5fa04a6df49e01f0800f5fb76076681f7e1bb14", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, + { + "path": "template-gallery/reviews/wan_vace_amber_rings_after_rain.original-provenance.json", + "size": 1478, + "sha256": "sha256:bytes:4596d993891c34f721ac085d6d9377e63af8610998160c4d582fc2761b1efdff", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, + { + "path": "template-gallery/reviews/wan_vace_amber_rings_after_rain.original-review.json", + "size": 616, + "sha256": "sha256:bytes:7ed3a6bacaf029f014c5f7540c50ba7da542903367a6bfbe39eca6c3c15a5196", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, + { + "path": "template-gallery/reviews/wan_vace_amber_rings_after_rain.quality-review.json", + "size": 2521, + "sha256": "sha256:bytes:82fa4f72865bc998461d725a6454112962566b14586b42ead517d8f446ac0599", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, + { + "path": "template-gallery/reviews/wan_vace_amber_rings_after_rain.retained-template-provenance.json", + "size": 3663, + "sha256": "sha256:bytes:c416efe725b4ba3e2dd7ea08c16b574205d292c3c3e2198d707b602a0fcb0bac", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, { "path": "template-gallery/reviews/wan_vace_cinematic_text_to_video.quality-review.json", "size": 6183, @@ -9261,6 +9836,15 @@ "width": 1536, "height": 768 }, + { + "path": "template-gallery/sana_i2v_blue_hour_above_rice_terraces.mp4", + "size": 528391, + "sha256": "sha256:bytes:3b948924eeb984126741dc465d78482ae9a01704010ae59e9ffec3ed9973351a", + "contentType": "video/mp4", + "purposes": [ + "runtime" + ] + }, { "path": "template-gallery/sana_sprint_monochrome_tiger.webp", "size": 365662, @@ -9283,6 +9867,15 @@ "width": 1024, "height": 1024 }, + { + "path": "template-gallery/sana_video_water_terraces_before_sunrise.mp4", + "size": 716974, + "sha256": "sha256:bytes:532ab779797e91108d78d646478cf5e997b35b74acab8f2011d79bd421846301", + "contentType": "video/mp4", + "purposes": [ + "runtime" + ] + }, { "path": "template-gallery/sd15_canny_guided_green_glass.webp", "size": 53292, @@ -9817,6 +10410,15 @@ "runtime" ] }, + { + "path": "template-gallery/spandrel_tram_shelter_video_2x.mp4", + "size": 574204, + "sha256": "sha256:bytes:60fae4330a462a468fe68e62c692f22f713a9f908cf286942206260e8aa42fc0", + "contentType": "video/mp4", + "purposes": [ + "runtime" + ] + }, { "path": "template-gallery/spandrel_x2_synthetic_gradient.webp", "size": 3094, @@ -9913,6 +10515,15 @@ "runtime" ] }, + { + "path": "template-gallery/wan_a14b_wind_across_pond.mp4", + "size": 1155250, + "sha256": "sha256:bytes:5d6b75cd3c7925c53f4f4fb12adc62170594bb4c56275d38fb0278d2f803bb69", + "contentType": "video/mp4", + "purposes": [ + "runtime" + ] + }, { "path": "template-gallery/wan_flf_blue_hour_at_the_tram_shelter.mp4", "size": 398821, @@ -9922,6 +10533,24 @@ "runtime" ] }, + { + "path": "template-gallery/wan_ti2v_subway_musician.mp4", + "size": 34981157, + "sha256": "sha256:bytes:287344e1179d07788f3e9714324d15fe98a025855dbbe8d1f5b600288952ce68", + "contentType": "video/mp4", + "purposes": [ + "runtime" + ] + }, + { + "path": "template-gallery/wan_vace_amber_rings_after_rain.mp4", + "size": 706351, + "sha256": "sha256:bytes:e89cb86ed3bd34040b7fc6c699f99e21c4dc827ac943258c7d9daad9d58b752c", + "contentType": "video/mp4", + "purposes": [ + "runtime" + ] + }, { "path": "template-gallery/wan_vace_cinematic_text_to_video.card-poster.png", "size": 2220363, @@ -10314,9 +10943,9 @@ "height": 1024 } ], - "assetSetId": "sha256:canonical-json:48da62e1f9fb4bb7ed02c8536ff3e4c37dfedccdb91dca7e24fd2654eb38bdf2", + "assetSetId": "sha256:canonical-json:1d5ae5e7fa702186eb134bfa4d86f7e4f517faf88720885ddd6960980505fd6b", "status": "ready", - "assetCount": 1056, - "totalBytes": 1089772952, + "assetCount": 1125, + "totalBytes": 1133080624, "missingAssets": [] } diff --git a/public/template-gallery/manifest.json b/public/template-gallery/manifest.json index 9dd64f60..4639910b 100644 --- a/public/template-gallery/manifest.json +++ b/public/template-gallery/manifest.json @@ -5678,6 +5678,410 @@ "approvedOriginalReviewPath": "/template-gallery/reviews/omnigen_red_enamel_folded_linen.original-review.json", "approvedOriginalProvenancePath": "/template-gallery/reviews/omnigen_red_enamel_folded_linen.original-provenance.json", "approvedSecondaryReferencePath": "/template-gallery/inputs/omnigen_red_enamel_folded_linen.reference-2.png" + }, + { + "templateId": "mochi_surf_over_dark_pebbles", + "templateLockHash": "tpl_851777f5", + "promptSettingsHash": "ps_0a0165a8", + "modelRevision": "genmo/mochi-1-preview@14be5fcea23095ed330cb214647916a451e38b6e", + "runtimeFingerprint": "sha256:stable-runtime-v1:4d41adc4d8b1fb3a9aed04a4e324121bd1a145d1051955a1493df3b5c6687bde", + "graphHash": "sha256:canonical-graph-v1:bf2b044a50f9b1e7b1813fa51ec77f1e6c1fa910e6aa6236ae7b783eaed6832e", + "proofLockHash": "sha256:retained-template-association-v1:cfbc7334be1ad009a7e90410ff0459d8e8fca979ea4dc388888a8b2b9449c805", + "backendSourceFingerprint": "sha256:backend-source-v1:b29a5b0d317aaa781ae2a5205b46b518eea5a3d68a214eb0968dba4ac0660af7", + "backendContractFingerprint": "sha256:backend-contract-v1:40a4eb8d6275c83725f57c4d3499b8d12c00f8cf6caffc2d07006e74d24ab820", + "modelCommit": "14be5fcea23095ed330cb214647916a451e38b6e", + "templateRevisionHash": "c0a8a85ce8101d4ffcf0a8ab34a46b49b41d38e667a896e8b51f5016bb536b62", + "provenancePath": "/template-gallery/reviews/mochi_surf_over_dark_pebbles.retained-template-provenance.json", + "provenanceHash": "sha256:canonical-json:176304777985a3ce5dcb396c5b8f26710b568e1d65e7f049a2292823d95e9465", + "outputPath": "/template-gallery/mochi_surf_over_dark_pebbles.mp4", + "thumbnailPath": "/template-gallery/mochi_surf_over_dark_pebbles.mp4", + "mediaHash": "sha256:decoded-video-framemd5:6b0045ad0e286cc6db73ef1bc377e922071458ccf4bbd497793f18bf2873455f", + "mediaType": "video", + "verificationTimestamp": "2026-11-25T02:21:21.989Z", + "verificationStatus": "reviewed", + "qualityReviewStatus": "approved_reviewed", + "qualityReviewHash": "sha256:canonical-json:24ada45024b75c500fe3217bef19efb3647634a2734823ad16752defa44ffdf5", + "qualityReviewPath": "/template-gallery/reviews/mochi_surf_over_dark_pebbles.quality-review.json", + "reviewer": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25T07:18:34.900Z", + "width": 848, + "height": 480, + "frames": 31, + "durationSeconds": 1.0333333333333334, + "approvedOriginalReviewPath": "/template-gallery/reviews/mochi_surf_over_dark_pebbles.original-review.json", + "approvedOriginalProvenancePath": "/template-gallery/reviews/mochi_surf_over_dark_pebbles.original-provenance.json" + }, + { + "templateId": "animatediff_ivory_balloon_blue_mountains", + "templateLockHash": "tpl_bef14c2c", + "promptSettingsHash": "ps_ecae0ab9", + "modelRevision": "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14", + "runtimeFingerprint": "sha256:stable-runtime-v1:b2beaee17de004c2e5d8a34ee2303548fee606ddf285df40a5e6928c4c0ee362", + "graphHash": "sha256:canonical-graph-v1:c3a0bd75af7f0ef791bda2a2658df375640199d9d8d1be6f589f94900e923bf1", + "proofLockHash": "sha256:retained-template-association-v1:1fe5fd6037d63da473ec8ef9f77dcb5302c47c6fcc856dc92f58d20fee67a0a7", + "backendSourceFingerprint": "sha256:backend-source-v1:a107f0838ce3b1be98034123eb3bf3393928a09c5ad7e3c133687d5a7c58be57", + "backendContractFingerprint": "sha256:backend-contract-v1:03dea74157ff4e06596b9bd35e605c820dfee2fa4b4bac1772cbd948108d8ffd", + "modelCommit": "451f4fe16113bff5a5d2269ed5ad43b0592e9a14", + "templateRevisionHash": "4b4d081ecba0edc45452b914be1e511106c370500951c08bac57264a08abf8c8", + "provenancePath": "/template-gallery/reviews/animatediff_ivory_balloon_blue_mountains.retained-template-provenance.json", + "provenanceHash": "sha256:canonical-json:e88ef633a80bfb653fd0e48d7bc48e3b8f50e805851dd3d5592ea79e99ba1526", + "outputPath": "/template-gallery/animatediff_ivory_balloon_blue_mountains.mp4", + "thumbnailPath": "/template-gallery/animatediff_ivory_balloon_blue_mountains.mp4", + "mediaHash": "sha256:decoded-video-framemd5:05a11003f908f21a029be1600215f1affdbdf86742069adc0b92f1e627ba8bb7", + "mediaType": "video", + "verificationTimestamp": "2026-11-24T07:09:23.646Z", + "verificationStatus": "reviewed", + "qualityReviewStatus": "approved_reviewed", + "qualityReviewHash": "sha256:canonical-json:8529c0614ec09f29120f313ea70b09827651ad4bc9b6506fee909875e13b2961", + "qualityReviewPath": "/template-gallery/reviews/animatediff_ivory_balloon_blue_mountains.quality-review.json", + "reviewer": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25T07:18:34.900Z", + "width": 512, + "height": 512, + "frames": 16, + "durationSeconds": 2, + "approvedGuidePath": "/template-gallery/inputs/animatediff_ivory_balloon_blue_mountains.guide.mp4", + "approvedOriginalReviewPath": "/template-gallery/reviews/animatediff_ivory_balloon_blue_mountains.original-review.json", + "approvedOriginalProvenancePath": "/template-gallery/reviews/animatediff_ivory_balloon_blue_mountains.original-provenance.json" + }, + { + "templateId": "animatediff_red_tram_through_snow", + "templateLockHash": "tpl_713b29bb", + "promptSettingsHash": "ps_3c45e0a7", + "modelRevision": "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14", + "runtimeFingerprint": "sha256:stable-runtime-v1:30c18be5da0b8ec32331e1c9f425397d5cc26152ac71e8eff9f9138e53ba018b", + "graphHash": "sha256:canonical-graph-v1:def788f2dd1441b8d6f37e453ce30da5f5fe0f35711fadbb4d3240d2db95f177", + "proofLockHash": "sha256:retained-template-association-v1:9757d2ad2719fb8ae4dd56a8d5d861e98344e8472e6731dd3dbb81f5645f2b12", + "backendSourceFingerprint": "sha256:backend-source-v1:b4a707d462a5f13dae1660c1665ed5195f45ed4ffbfcd7d80de879cd881aea86", + "backendContractFingerprint": "sha256:backend-contract-v1:d12f2497d460e249e197c1eb12b40f2cfd70311a95e91a943f37a1ffffbcd157", + "modelCommit": "451f4fe16113bff5a5d2269ed5ad43b0592e9a14", + "templateRevisionHash": "95bf2ea59940c6b96e479bc726ca727255822c37d0dc4ed19b4d3b37622520e7", + "provenancePath": "/template-gallery/reviews/animatediff_red_tram_through_snow.retained-template-provenance.json", + "provenanceHash": "sha256:canonical-json:dc64643505cff6358b9f48af2001a1124dc327beb8c7877f8e29567e5bd3ffb2", + "outputPath": "/template-gallery/animatediff_red_tram_through_snow.mp4", + "thumbnailPath": "/template-gallery/animatediff_red_tram_through_snow.mp4", + "mediaHash": "sha256:decoded-video-framemd5:f0417dc3e13df149862f647940240ca5dde51bb3e65764584ed3352fa0517086", + "mediaType": "video", + "verificationTimestamp": "2026-11-23T21:59:42.414Z", + "verificationStatus": "reviewed", + "qualityReviewStatus": "approved_reviewed", + "qualityReviewHash": "sha256:canonical-json:7ae412f37f57e96a6d566f5656af2f6878ee659d6275d0d7b248995dccf0ef6b", + "qualityReviewPath": "/template-gallery/reviews/animatediff_red_tram_through_snow.quality-review.json", + "reviewer": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25T07:18:34.900Z", + "beforePath": "/template-gallery/inputs/animatediff_red_tram_through_snow.before.mp4", + "beforeMediaHash": "sha256:bytes:88b69acee9f0c3572a98e49b23ad0e853dc86e1d15074fca99b47f690dde900f", + "beforeSourceMediaHash": "sha256:bytes:88b69acee9f0c3572a98e49b23ad0e853dc86e1d15074fca99b47f690dde900f", + "afterPath": "/template-gallery/animatediff_red_tram_through_snow.mp4", + "width": 512, + "height": 512, + "frames": 16, + "durationSeconds": 2, + "approvedGuidePath": "/template-gallery/inputs/animatediff_red_tram_through_snow.guide.mp4", + "approvedOriginalReviewPath": "/template-gallery/reviews/animatediff_red_tram_through_snow.original-review.json", + "approvedOriginalProvenancePath": "/template-gallery/reviews/animatediff_red_tram_through_snow.original-provenance.json" + }, + { + "templateId": "sana_i2v_blue_hour_above_rice_terraces", + "templateLockHash": "tpl_d3be4bd4", + "promptSettingsHash": "ps_8dea3f0f", + "modelRevision": "Efficient-Large-Model/SANA-Video_2B_480p_diffusers@db5f398b13ca086d09a50ce156c20527773841b1", + "runtimeFingerprint": "sha256:stable-runtime-v1:4d41adc4d8b1fb3a9aed04a4e324121bd1a145d1051955a1493df3b5c6687bde", + "graphHash": "sha256:canonical-graph-v1:c807f3241ff651858fcd5bd5b6cd96e798c6a65332c1e59fbdb05d4fa588421b", + "proofLockHash": "sha256:retained-template-association-v1:428c390c8bab1a29950043ed0dd00d03fb00821c6f993d392b1026a88600ce1d", + "backendSourceFingerprint": "sha256:backend-source-v1:b29a5b0d317aaa781ae2a5205b46b518eea5a3d68a214eb0968dba4ac0660af7", + "backendContractFingerprint": "sha256:backend-contract-v1:d68ff3c7d7b2d190e68d6f148834ae971638c23a9d31086a3848874658f37da2", + "modelCommit": "db5f398b13ca086d09a50ce156c20527773841b1", + "templateRevisionHash": "e6ce9b989e565a3504ccb21781d8522fd3bd3d17715c008ae315b068f7773b1c", + "provenancePath": "/template-gallery/reviews/sana_i2v_blue_hour_above_rice_terraces.retained-template-provenance.json", + "provenanceHash": "sha256:canonical-json:1b15f842f9b37805aeb6e7c32dda990f2e3d78d41bf07730080b2fd03a9aed61", + "outputPath": "/template-gallery/sana_i2v_blue_hour_above_rice_terraces.mp4", + "thumbnailPath": "/template-gallery/sana_i2v_blue_hour_above_rice_terraces.mp4", + "mediaHash": "sha256:decoded-video-framemd5:d64fa64bcd0f0b94e58bc0010368d01d9d6839bef2c4ed0b8684c656dce5d6f8", + "mediaType": "video", + "verificationTimestamp": "2026-11-25T01:58:17.904Z", + "verificationStatus": "reviewed", + "qualityReviewStatus": "approved_reviewed", + "qualityReviewHash": "sha256:canonical-json:59e5d790b9525a2705f5274e56d3c7c3baa3a58b74328057a1d532128303d976", + "qualityReviewPath": "/template-gallery/reviews/sana_i2v_blue_hour_above_rice_terraces.quality-review.json", + "reviewer": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25T07:18:34.900Z", + "width": 832, + "height": 480, + "frames": 81, + "durationSeconds": 5.0625, + "approvedSourcePath": "/template-gallery/inputs/sana_i2v_blue_hour_above_rice_terraces.first.png", + "approvedOriginalReviewPath": "/template-gallery/reviews/sana_i2v_blue_hour_above_rice_terraces.original-review.json", + "approvedOriginalProvenancePath": "/template-gallery/reviews/sana_i2v_blue_hour_above_rice_terraces.original-provenance.json" + }, + { + "templateId": "sana_video_water_terraces_before_sunrise", + "templateLockHash": "tpl_77d9ebc0", + "promptSettingsHash": "ps_85fe160f", + "modelRevision": "Efficient-Large-Model/SANA-Video_2B_480p_diffusers@db5f398b13ca086d09a50ce156c20527773841b1", + "runtimeFingerprint": "sha256:stable-runtime-v1:4d41adc4d8b1fb3a9aed04a4e324121bd1a145d1051955a1493df3b5c6687bde", + "graphHash": "sha256:canonical-graph-v1:266ff690c34b346935cb27b4e1d26771657ca26bab6094c2b061ba634801bb65", + "proofLockHash": "sha256:retained-template-association-v1:c36bd8ec5147f2ac94a56c0e96a8f378eb49065a9b7f940739d7255af898c474", + "backendSourceFingerprint": "sha256:backend-source-v1:b29a5b0d317aaa781ae2a5205b46b518eea5a3d68a214eb0968dba4ac0660af7", + "backendContractFingerprint": "sha256:backend-contract-v1:40a4eb8d6275c83725f57c4d3499b8d12c00f8cf6caffc2d07006e74d24ab820", + "modelCommit": "db5f398b13ca086d09a50ce156c20527773841b1", + "templateRevisionHash": "e5d7bb4cd5fa1b68f4840fc0746bea2aa963c1d8183be0985a66b0789be9f1d1", + "provenancePath": "/template-gallery/reviews/sana_video_water_terraces_before_sunrise.retained-template-provenance.json", + "provenanceHash": "sha256:canonical-json:db1b23b2dc22e3881bad7b10ee1c5139fa1234d370480330cc1a620c94c2bc92", + "outputPath": "/template-gallery/sana_video_water_terraces_before_sunrise.mp4", + "thumbnailPath": "/template-gallery/sana_video_water_terraces_before_sunrise.mp4", + "mediaHash": "sha256:decoded-video-framemd5:185d95f26e0af4716cdefa36748788445bcd8264230c05835348b02ab540cdd9", + "mediaType": "video", + "verificationTimestamp": "2026-11-25T01:39:27.365Z", + "verificationStatus": "reviewed", + "qualityReviewStatus": "approved_reviewed", + "qualityReviewHash": "sha256:canonical-json:8a3bf325743a126326dac855e3b4712b6cadc4d3d3ac5ba69e85d744fb0ce3a8", + "qualityReviewPath": "/template-gallery/reviews/sana_video_water_terraces_before_sunrise.quality-review.json", + "reviewer": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25T07:18:34.900Z", + "width": 832, + "height": 480, + "frames": 81, + "durationSeconds": 5.0625, + "approvedOriginalReviewPath": "/template-gallery/reviews/sana_video_water_terraces_before_sunrise.original-review.json", + "approvedOriginalProvenancePath": "/template-gallery/reviews/sana_video_water_terraces_before_sunrise.original-provenance.json" + }, + { + "templateId": "animatediff_red_tram_in_watercolor", + "templateLockHash": "tpl_37c948d9", + "promptSettingsHash": "ps_c4dd153c", + "modelRevision": "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14", + "runtimeFingerprint": "sha256:stable-runtime-v1:9b8553a1d8409e2fa46e82bbc4f07746be58d117cfae67471a49dba446e8fcca", + "graphHash": "sha256:canonical-graph-v1:9d80fa0a57f924fae58e094e400e4309f79e3050b6e90de2c5c177c0d2d1358f", + "proofLockHash": "sha256:retained-template-association-v1:86c71473e0f5ace712749dc76e4bfde1fff65e23ebf71aed1d884993a2a07d49", + "backendSourceFingerprint": "sha256:backend-source-v1:2beaa95aae8558e64cf99f056b011d00c0653dc7d03987cd67c8ed7e774c770e", + "backendContractFingerprint": "sha256:backend-contract-v1:e1bf29e107307b73ad8153eff36b54b42bdf5622243915dbdd7c94e069726538", + "modelCommit": "451f4fe16113bff5a5d2269ed5ad43b0592e9a14", + "templateRevisionHash": "79480aa4c678fa413f77fa4c1c063f243438f1e6bd4573f90fc7f45c01e6af45", + "provenancePath": "/template-gallery/reviews/animatediff_red_tram_in_watercolor.retained-template-provenance.json", + "provenanceHash": "sha256:canonical-json:1859637212ed57d8b70f504373bd5572f7f49b91e21bed757513bcac1a76e1c1", + "outputPath": "/template-gallery/animatediff_red_tram_in_watercolor.mp4", + "thumbnailPath": "/template-gallery/animatediff_red_tram_in_watercolor.mp4", + "mediaHash": "sha256:decoded-video-framemd5:9dd89c4abb2362ef5cbfb3e99f25956d5773f8e31ba996cf3b6b872eb1c822b5", + "mediaType": "video", + "verificationTimestamp": "2026-11-23T23:28:15.943Z", + "verificationStatus": "reviewed", + "qualityReviewStatus": "approved_reviewed", + "qualityReviewHash": "sha256:canonical-json:b9ebd0f8244eeed20bd436eb9c49d85f6dbecb03e19f28c32236f7dc5eff657a", + "qualityReviewPath": "/template-gallery/reviews/animatediff_red_tram_in_watercolor.quality-review.json", + "reviewer": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25T07:18:34.900Z", + "beforePath": "/template-gallery/inputs/animatediff_red_tram_in_watercolor.before.mp4", + "beforeMediaHash": "sha256:bytes:88b69acee9f0c3572a98e49b23ad0e853dc86e1d15074fca99b47f690dde900f", + "beforeSourceMediaHash": "sha256:bytes:88b69acee9f0c3572a98e49b23ad0e853dc86e1d15074fca99b47f690dde900f", + "afterPath": "/template-gallery/animatediff_red_tram_in_watercolor.mp4", + "width": 512, + "height": 512, + "frames": 16, + "durationSeconds": 2, + "approvedOriginalReviewPath": "/template-gallery/reviews/animatediff_red_tram_in_watercolor.original-review.json", + "approvedOriginalProvenancePath": "/template-gallery/reviews/animatediff_red_tram_in_watercolor.original-provenance.json" + }, + { + "templateId": "allegro_basalt_shore_at_dawn", + "templateLockHash": "tpl_c1f652c2", + "promptSettingsHash": "ps_96a78038", + "modelRevision": "rhymes-ai/Allegro@c1b9207bb5cb79e2aa08f3d139c17d26c0de55b6", + "runtimeFingerprint": "sha256:stable-runtime-v1:4d41adc4d8b1fb3a9aed04a4e324121bd1a145d1051955a1493df3b5c6687bde", + "graphHash": "sha256:canonical-graph-v1:0e0211e72f2b7ecea3abd2ac10ad362852db2995d4a975bc4d064ea6d89dadb6", + "proofLockHash": "sha256:retained-template-association-v1:8b36fdb74ccf1829f3e123a4e007b047514f55a26c8d241b0c18338fa48bb722", + "backendSourceFingerprint": "sha256:backend-source-v1:b29a5b0d317aaa781ae2a5205b46b518eea5a3d68a214eb0968dba4ac0660af7", + "backendContractFingerprint": "sha256:backend-contract-v1:40a4eb8d6275c83725f57c4d3499b8d12c00f8cf6caffc2d07006e74d24ab820", + "modelCommit": "c1b9207bb5cb79e2aa08f3d139c17d26c0de55b6", + "templateRevisionHash": "5e7fa20679a68bf73600bf9fcb2bb07fffed7e65d5b01c2cd6276b3d98e8a86d", + "provenancePath": "/template-gallery/reviews/allegro_basalt_shore_at_dawn.retained-template-provenance.json", + "provenanceHash": "sha256:canonical-json:d54a3b74c22c0185af99d7de272051d7ecf0d17f56db315dc2f5f6a8a43a767f", + "outputPath": "/template-gallery/allegro_basalt_shore_at_dawn.mp4", + "thumbnailPath": "/template-gallery/allegro_basalt_shore_at_dawn.mp4", + "mediaHash": "sha256:decoded-video-framemd5:bef30898b727459dc0eae415a758067bdc9d5eb3bcc82edfcf329d8c8f9c3e47", + "mediaType": "video", + "verificationTimestamp": "2026-11-25T01:26:09.329Z", + "verificationStatus": "reviewed", + "qualityReviewStatus": "approved_reviewed", + "qualityReviewHash": "sha256:canonical-json:1ad96fe117ee3985be29104589d1ea11f1ab30b046c4d5a69b4a656e08904b6d", + "qualityReviewPath": "/template-gallery/reviews/allegro_basalt_shore_at_dawn.quality-review.json", + "reviewer": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25T07:18:34.900Z", + "width": 1280, + "height": 720, + "frames": 88, + "durationSeconds": 5.866666666666666, + "approvedOriginalReviewPath": "/template-gallery/reviews/allegro_basalt_shore_at_dawn.original-review.json", + "approvedOriginalProvenancePath": "/template-gallery/reviews/allegro_basalt_shore_at_dawn.original-provenance.json" + }, + { + "templateId": "animatediff_candlelight_behind_amber_glass", + "templateLockHash": "tpl_6605d595", + "promptSettingsHash": "ps_67c4ef8e", + "modelRevision": "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14", + "runtimeFingerprint": "sha256:stable-runtime-v1:c2642af585975d6b55b551bcdfb8606edb2fab4b37a05875aa3a8024270b6eab", + "graphHash": "sha256:canonical-graph-v1:9387c155d24de33e4d9a5a8115a6baa2818a35613f828908c0d46be3c0ab5c44", + "proofLockHash": "sha256:retained-template-association-v1:e38f1c7b0255e84427390209a8af4d591e693f0a782723c049aab2a8ac6ef47b", + "backendSourceFingerprint": "sha256:backend-source-v1:2faeaaa03b7902a03df5cd0cea38129b7419f6d844125c0ca7e29ccfaf635290", + "backendContractFingerprint": "sha256:backend-contract-v1:32e6e74ce3a29d61ae997904d9d4a77259db5c3bd819dbfc15d312482a356f92", + "modelCommit": "451f4fe16113bff5a5d2269ed5ad43b0592e9a14", + "templateRevisionHash": "fc3355bbe64d94141436cda1cb7c173be5490cfeeeebacd8609ceee18d5e2109", + "provenancePath": "/template-gallery/reviews/animatediff_candlelight_behind_amber_glass.retained-template-provenance.json", + "provenanceHash": "sha256:canonical-json:c41186927a4da4cc0598aef7f91a9c60d34cc964952a0e707d43a6277d657e04", + "outputPath": "/template-gallery/animatediff_candlelight_behind_amber_glass.mp4", + "thumbnailPath": "/template-gallery/animatediff_candlelight_behind_amber_glass.mp4", + "mediaHash": "sha256:decoded-video-framemd5:f91e08ce60a94b436a144a59fbbd02faf83ea8a9375d1230524e06ceff4357b3", + "mediaType": "video", + "verificationTimestamp": "2026-11-25T02:54:46.523Z", + "verificationStatus": "reviewed", + "qualityReviewStatus": "approved_reviewed", + "qualityReviewHash": "sha256:canonical-json:5a7c440dc7ba85dd765454f4a47da1cffe90564dda961b9ad370475570df01b1", + "qualityReviewPath": "/template-gallery/reviews/animatediff_candlelight_behind_amber_glass.quality-review.json", + "reviewer": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25T07:18:34.900Z", + "width": 512, + "height": 512, + "frames": 16, + "durationSeconds": 2, + "approvedOriginalReviewPath": "/template-gallery/reviews/animatediff_candlelight_behind_amber_glass.original-review.json", + "approvedOriginalProvenancePath": "/template-gallery/reviews/animatediff_candlelight_behind_amber_glass.original-provenance.json" + }, + { + "templateId": "wan_vace_amber_rings_after_rain", + "templateLockHash": "tpl_f7056e34", + "promptSettingsHash": "ps_2a047df0", + "modelRevision": "Wan-AI/Wan2.1-VACE-1.3B-diffusers@ec4d2cb062b548996b179d493fdd05340de702a1", + "runtimeFingerprint": "sha256:stable-runtime-v1:4d41adc4d8b1fb3a9aed04a4e324121bd1a145d1051955a1493df3b5c6687bde", + "graphHash": "sha256:canonical-graph-v1:3eb2a114a3997bf20ad212143012e33fcc59e35c7aebb7a78ad5c04793c5de09", + "proofLockHash": "sha256:retained-template-association-v1:17995cd18ad08dbf7fd92c17e7ffa707fcd0b29a5893e2763880b54b0ee2fa3b", + "backendSourceFingerprint": "sha256:backend-source-v1:b29a5b0d317aaa781ae2a5205b46b518eea5a3d68a214eb0968dba4ac0660af7", + "backendContractFingerprint": "sha256:backend-contract-v1:bf402b162817edb94494bd54801f5b411be4220f43a3e56c4715b1c9128e023b", + "modelCommit": "ec4d2cb062b548996b179d493fdd05340de702a1", + "templateRevisionHash": "520b484950dcf0432791f4a00d6ad8c5de4c785849563aefa07d467f36d679d9", + "provenancePath": "/template-gallery/reviews/wan_vace_amber_rings_after_rain.retained-template-provenance.json", + "provenanceHash": "sha256:canonical-json:e400743acf573f5d5c8cef75bd631d15affa8ea3c05d058118fdf3144441e20b", + "outputPath": "/template-gallery/wan_vace_amber_rings_after_rain.mp4", + "thumbnailPath": "/template-gallery/wan_vace_amber_rings_after_rain.mp4", + "mediaHash": "sha256:decoded-video-framemd5:cb3f42f9bb872efd1a813197d5705b9407b50fbd278a318159a48554de8bb5cb", + "mediaType": "video", + "verificationTimestamp": "2026-11-25T02:44:38.768Z", + "verificationStatus": "reviewed", + "qualityReviewStatus": "approved_reviewed", + "qualityReviewHash": "sha256:canonical-json:cd187bb5e4c9a4e97e9bf190d3e02242053630cb9f7fc51d4d6fc948ca2db5de", + "qualityReviewPath": "/template-gallery/reviews/wan_vace_amber_rings_after_rain.quality-review.json", + "reviewer": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25T07:18:34.900Z", + "width": 1664, + "height": 960, + "frames": 81, + "durationSeconds": 5.0625, + "approvedOriginalReviewPath": "/template-gallery/reviews/wan_vace_amber_rings_after_rain.original-review.json", + "approvedOriginalProvenancePath": "/template-gallery/reviews/wan_vace_amber_rings_after_rain.original-provenance.json" + }, + { + "templateId": "wan_a14b_wind_across_pond", + "templateLockHash": "tpl_642b4403", + "promptSettingsHash": "ps_f883a531", + "modelRevision": "Wan-AI/Wan2.2-I2V-A14B-Diffusers@596658fd9ca6b7b71d5057529bbf319ecbc61d74", + "runtimeFingerprint": "sha256:stable-runtime-v1:4ce7875bb2c87a85c7d597c5a3128bef36a1516ba9c40de1b222fd864cdbc4ed", + "graphHash": "sha256:canonical-graph-v1:0fe1766aff910661f5d55d4bc72abc0a25bd85157b4b9f29e347c67fcb679140", + "proofLockHash": "sha256:retained-template-association-v1:a9e4efea21d584b5286dc75d41d8c537d2027d86326baa703ea95f1b793e1313", + "backendSourceFingerprint": "sha256:backend-source-v1:ce7ac712b4620d0e8efb35022a558a551e2d4ae6ef20b844744c4d674527b0b3", + "backendContractFingerprint": "sha256:backend-contract-v1:d68ff3c7d7b2d190e68d6f148834ae971638c23a9d31086a3848874658f37da2", + "modelCommit": "596658fd9ca6b7b71d5057529bbf319ecbc61d74", + "templateRevisionHash": "fd7249fa8e87be9636e616bb278c88abbabc8920e4b093fc896f58b8a8d5dadd", + "provenancePath": "/template-gallery/reviews/wan_a14b_wind_across_pond.retained-template-provenance.json", + "provenanceHash": "sha256:canonical-json:8f324e127af7f32f1d3f45714360206035612b5c81f9b63465e7dac0be628174", + "outputPath": "/template-gallery/wan_a14b_wind_across_pond.mp4", + "thumbnailPath": "/template-gallery/wan_a14b_wind_across_pond.mp4", + "mediaHash": "sha256:decoded-video-framemd5:25c5ff976264fa7e9c693bd203b597a9170e3311b7ca9ef1570029fb77b46a45", + "mediaType": "video", + "verificationTimestamp": "2026-11-24T23:54:28.989Z", + "verificationStatus": "reviewed", + "qualityReviewStatus": "approved_reviewed", + "qualityReviewHash": "sha256:canonical-json:a5b9c205ddc6e9fc789665187b8035ebd086f9bb4a6774c9a529347695851bd0", + "qualityReviewPath": "/template-gallery/reviews/wan_a14b_wind_across_pond.quality-review.json", + "reviewer": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25T07:18:34.900Z", + "width": 768, + "height": 512, + "frames": 81, + "durationSeconds": 5.0625, + "approvedSourcePath": "/template-gallery/inputs/wan_a14b_wind_across_pond.first.png", + "approvedOriginalReviewPath": "/template-gallery/reviews/wan_a14b_wind_across_pond.original-review.json", + "approvedOriginalProvenancePath": "/template-gallery/reviews/wan_a14b_wind_across_pond.original-provenance.json" + }, + { + "templateId": "wan_ti2v_subway_musician", + "templateLockHash": "tpl_97316ddd", + "promptSettingsHash": "ps_007b6d08", + "modelRevision": "Wan-AI/Wan2.2-TI2V-5B-Diffusers@b8fff7315c768468a5333511427288870b2e9635", + "runtimeFingerprint": "sha256:stable-runtime-v1:d256b021b495a5fee0efa20922d52d0c46c17996d45ae7386dea47cfbc87d7b6", + "graphHash": "sha256:canonical-graph-v1:dc5a3915f6767104be7c308fc55384b2abc349a8881e585d48df140b68ee2591", + "proofLockHash": "sha256:retained-template-association-v1:88a054fd37de882b12a8322b4c10b647d4f65a538c86e2bf7502c0ba143c9030", + "decodedAudioHash": "sha256:decoded-audio-pcm-s16le-48000-stereo:e009f96b1f91e9d456f86b3c5c75df2df9b10903351ced289eced2fbada0b5d1", + "audiovisualMediaHash": "sha256:decoded-av-v1:c52125c3dcb49b9500b9bd5a52cbbb36b48b77d7483c91ab7b6e665189105d6a", + "backendSourceFingerprint": "sha256:backend-source-v1:b29a5b0d317aaa781ae2a5205b46b518eea5a3d68a214eb0968dba4ac0660af7", + "backendContractFingerprint": "sha256:backend-contract-v1:5d062bef6bee536bcebcfc45356a33037785e3101631cffd94461b2f2de4a91b", + "modelCommit": "b8fff7315c768468a5333511427288870b2e9635", + "templateRevisionHash": "3d639a689fee74a2857de70668d5d6e7939ee25a62025fb84d4435c2b149b183", + "provenancePath": "/template-gallery/reviews/wan_ti2v_subway_musician.retained-template-provenance.json", + "provenanceHash": "sha256:canonical-json:24de67e8f2b0c8debc28c5b4fdc5a5a05c077465bb56861156368c64843bdca6", + "outputPath": "/template-gallery/wan_ti2v_subway_musician.mp4", + "thumbnailPath": "/template-gallery/wan_ti2v_subway_musician.mp4", + "mediaHash": "sha256:decoded-video-framemd5:66be2fda542fce90978be2667115eec0849c1b4502e998f86ec3924ae2ddd54e", + "mediaType": "video", + "verificationTimestamp": "2026-11-25T05:16:20.887Z", + "verificationStatus": "reviewed", + "qualityReviewStatus": "approved_reviewed", + "qualityReviewHash": "sha256:canonical-json:58bb2236fb97659ccf02c3e1628e94e2a428ed1f3c1b552f1975574973e9c71e", + "qualityReviewPath": "/template-gallery/reviews/wan_ti2v_subway_musician.quality-review.json", + "reviewer": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25T07:18:34.900Z", + "width": 1280, + "height": 704, + "frames": 121, + "durationSeconds": 5.041666666666667, + "posterPath": "/template-gallery/posters/wan_ti2v_subway_musician.webp", + "approvedOriginalReviewPath": "/template-gallery/reviews/wan_ti2v_subway_musician.original-review.json", + "approvedOriginalProvenancePath": "/template-gallery/reviews/wan_ti2v_subway_musician.original-provenance.json" + }, + { + "templateId": "spandrel_tram_shelter_video_2x", + "templateLockHash": "tpl_d84cebd5", + "promptSettingsHash": "ps_a113ad7a", + "modelRevision": "nateraw/real-esrgan@42efb9c3eeed1f5c0c8a626cf5f7f4481dfbb094", + "runtimeFingerprint": "sha256:stable-runtime-v1:893191687983e7924c2fba40019635ce142147c92b891d083bb78df2e97ead7b", + "graphHash": "sha256:canonical-graph-v1:ee3276b1993ebb2ab0d6228468f6b3233d73daf72c758a7f2f93d48f3513837e", + "proofLockHash": "sha256:retained-template-association-v1:4bad84208c432bedf2a065716ad5a6ff3399a3bc2a63be49bbd8905a521b865f", + "backendSourceFingerprint": "sha256:backend-source-v1:8dbad61815340f9a36c0966f227c6aaf8149350329cad36c73928ecb2df4698c", + "backendContractFingerprint": "sha256:backend-contract-v1:7e5cfc2be4665b078b5cda7e27b3c34bd3805652ca16146e86692677ab089da7", + "modelCommit": "42efb9c3eeed1f5c0c8a626cf5f7f4481dfbb094", + "templateRevisionHash": "7bbb69fe91f85685502578e96bbcdc6c6bfe1bcf44210a0bcb1315e003605ce6", + "provenancePath": "/template-gallery/reviews/spandrel_tram_shelter_video_2x.retained-template-provenance.json", + "provenanceHash": "sha256:canonical-json:49651de33cdc5a2ab2f5230332414c70bffebc02cae557dcb9535a2252dcc657", + "outputPath": "/template-gallery/spandrel_tram_shelter_video_2x.mp4", + "thumbnailPath": "/template-gallery/spandrel_tram_shelter_video_2x.mp4", + "mediaHash": "sha256:decoded-video-framemd5:cb31cd0903f5e394e21f0ac8bd6373e0e67fb0a93a3191fef43e628bec0f17ed", + "mediaType": "video", + "verificationTimestamp": "2026-11-24T21:49:57.417Z", + "verificationStatus": "reviewed", + "qualityReviewStatus": "approved_reviewed", + "qualityReviewHash": "sha256:canonical-json:94c79b27eec3683df386af744bdb3b7ae6de2325b217e77be9196a0e4bc1618a", + "qualityReviewPath": "/template-gallery/reviews/spandrel_tram_shelter_video_2x.quality-review.json", + "reviewer": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25T07:18:34.900Z", + "beforePath": "/template-gallery/inputs/spandrel_tram_shelter_video_2x.before.mp4", + "beforeMediaHash": "sha256:bytes:5c24b2b67f893f48e4dbf0d893e0aa4308852592f30f8179b44298cca4ce197e", + "beforeSourceMediaHash": "sha256:bytes:5c24b2b67f893f48e4dbf0d893e0aa4308852592f30f8179b44298cca4ce197e", + "afterPath": "/template-gallery/spandrel_tram_shelter_video_2x.mp4", + "width": 1024, + "height": 576, + "frames": 54, + "durationSeconds": 3.375, + "posterPath": "/template-gallery/posters/spandrel_tram_shelter_video_2x.webp", + "approvedOriginalReviewPath": "/template-gallery/reviews/spandrel_tram_shelter_video_2x.original-review.json", + "approvedOriginalProvenancePath": "/template-gallery/reviews/spandrel_tram_shelter_video_2x.original-provenance.json" } ] } diff --git a/scripts/bundle-budget.mjs b/scripts/bundle-budget.mjs index 0e34f3f0..8b79db1b 100644 --- a/scripts/bundle-budget.mjs +++ b/scripts/bundle-budget.mjs @@ -493,6 +493,8 @@ const SOURCE_LICENSES = new URL('../public/THIRD_PARTY_LICENSES.txt', import.met // 504492/682980/346033 largest/startup/deferred gzip bytes: the reviewed // migration ceilings below still pass with 8/12/304 bytes of headroom. const MAX_STARTUP_CHUNK_GZIP_BYTES = + // The approved native video and 2× upscale catalog measures 562669 bytes. + 7523 + // Guided and ordered-reference recipes with loader revision binding measure 555146 bytes. 3298 + // Eighteen saved edit, inpaint and outpaint recipes measure 551848 bytes. @@ -799,6 +801,8 @@ const MAX_STARTUP_CHUNK_GZIP_BYTES = // The same build measures 673359 aggregate startup bytes (+45 over the cap). // Keep 19 bytes of headroom; deferred limits and loading boundaries stay fixed. const MAX_STARTUP_GZIP_BYTES = + // The same video catalog measures 741155 total startup bytes. + 7524 + // Those ten recipes measure 733631 total startup bytes. 3294 + // The same source-bound recipes measure 730337 total startup bytes. diff --git a/scripts/retained-gallery-provenance.mjs b/scripts/retained-gallery-provenance.mjs index 67dee6ba..b4d4f8ae 100644 --- a/scripts/retained-gallery-provenance.mjs +++ b/scripts/retained-gallery-provenance.mjs @@ -4,6 +4,11 @@ import { canonicalJsonHash } from './canonical-json.mjs'; export const RETAINED_GALLERY_PROVENANCE_FORMAT = 'modiff.gallery.retained-template-provenance.v1'; +export function decodedAudiovisualMediaHash(decodedMediaHash, decodedAudioHash) { + if (!decodedMediaHash || !decodedAudioHash) return null; + return 'sha256:decoded-av-v1:' + canonicalJsonHash({ decodedAudioHash, decodedMediaHash }); +} + export function retainedGalleryFileLimit(path) { if (path.endsWith('.mp4')) return 64 * 1024 * 1024; if (/\.(png|webp)$/u.test(path)) return 8 * 1024 * 1024; @@ -175,6 +180,8 @@ export function validateRetainedGalleryProvenance(bundle, entry, { templateRevis modelCommit: model.revision, mediaType: output.mediaType, mediaHash: output.decodedMediaHash, + decodedAudioHash: output.video?.audio?.hash, + audiovisualMediaHash: decodedAudiovisualMediaHash(output.decodedMediaHash, output.video?.audio?.hash) ?? undefined, outputPath, thumbnailPath: outputPath, provenancePath: base + 'reviews/' + stem + '.retained-template-provenance.json', @@ -206,15 +213,9 @@ export function validateRetainedGalleryProvenance(bundle, entry, { templateRevis errors.push('retained Gallery source bytes differ from the approved artifact'); } if ( - [ - 'modelSetHash', - 'inputArtifactsHash', - 'templateInputContractHash', - 'cardPreviewPath', - 'cardPreviewSha256', - 'decodedAudioHash', - 'audiovisualMediaHash', - ].some((field) => entry[field] !== undefined) + ['modelSetHash', 'inputArtifactsHash', 'templateInputContractHash', 'cardPreviewPath', 'cardPreviewSha256'].some( + (field) => entry[field] !== undefined, + ) ) { errors.push('retained Gallery entry has unreviewed asset or capture fields'); } diff --git a/scripts/retained-gallery-release.mjs b/scripts/retained-gallery-release.mjs index 6191fcb4..69f6ff18 100644 --- a/scripts/retained-gallery-release.mjs +++ b/scripts/retained-gallery-release.mjs @@ -3,6 +3,7 @@ import { join } from 'node:path'; import { readCanonicalEvidenceFile } from './release-contract-core.mjs'; import { canonicalJsonHash as galleryJsonHash, + decodedAudiovisualMediaHash, galleryVerificationScope, validateQualityReview, } from './template-gallery-harness.mjs'; @@ -70,6 +71,7 @@ function assertRetainedBatchEvidence({ const inputHash = association.output.inputEncodedSha256?.replace(/^sha256:bytes:/u, '') ?? association.approvedFiles.approvedSourcePath?.sha256 ?? + (recipe.inputSha256 === recipe.guideSha256 ? association.approvedFiles.approvedGuidePath?.sha256 : undefined) ?? association.privateSourceSha256; assert.equal(inputHash, recipe.inputSha256); assert.equal(association.approvedFiles.approvedMaskPath?.sha256, recipe.maskSha256); @@ -119,8 +121,10 @@ function assertRetainedBatchEvidence({ assert.equal(verified.backendContractFingerprint, entry.backendContractFingerprint, label); return; } - assert.equal(nativeReceipt.backendContractFingerprint, entry.backendContractFingerprint, label); - assert.equal(nativeReceipt.promptBinding.sha256, recipe.promptSha256, label); + if (recipe.workflowId !== 'SpandrelVideoUpscale:video_upscale') { + assert.equal(nativeReceipt.backendContractFingerprint, entry.backendContractFingerprint, label); + } + assert.equal(nativeReceipt.promptBinding?.sha256, recipe.promptSha256, label); assert.equal(nativeReceipt.inputBinding?.sha256, recipe.inputSha256, label); assert.equal(nativeReceipt.maskBinding?.sha256, recipe.maskSha256, label); assert.equal(nativeReceipt.guideBinding?.sha256, recipe.guideSha256, label); @@ -155,8 +159,21 @@ function assertRetainedBatchEvidence({ if (association.output.mediaType === 'video') { const { decodedMediaHash, outputEncodedSha256, video } = association.output; const { hasAudio, ...videoMetadata } = video; - assert.equal(hasAudio, false, label); - same(nativeReceipt.decodedOutput, { kind: 'video', hash: decodedMediaHash, ...videoMetadata }, label); + assert.equal(hasAudio, Boolean(videoMetadata.audio), label); + assert.equal(entry.decodedAudioHash, videoMetadata.audio?.hash, label); + assert.equal( + entry.audiovisualMediaHash, + decodedAudiovisualMediaHash(decodedMediaHash, entry.decodedAudioHash) ?? undefined, + label, + ); + if (recipe.workflowId === 'SpandrelVideoUpscale:video_upscale') { + const { width, height, frames, fps } = videoMetadata; + same(nativeReceipt.decodedOutput, { hash: decodedMediaHash, width, height, frameCount: frames, fps }, label); + assert.equal(width, 2 * nativeReceipt.inputBinding.width, label); + assert.equal(height, 2 * nativeReceipt.inputBinding.height, label); + } else { + same(nativeReceipt.decodedOutput, { kind: 'video', hash: decodedMediaHash, ...videoMetadata }, label); + } assert.equal(outputEncodedSha256, nativeReceipt.outputHash, label); } } @@ -284,7 +301,9 @@ export function createRetainedGalleryReleaseReader({ clientRoot, source, registr const { association } = bundle; assert.equal(association.workflowId, recipe.workflowId); assert.equal(association.nativeSourceTaskContractId, sourceWorkflow.manifest.sourceTemplateId); - const spandrel = recipe.workflowId === 'SpandrelImageUpscale:image_upscale'; + const spandrel = ['SpandrelImageUpscale:image_upscale', 'SpandrelVideoUpscale:video_upscale'].includes( + recipe.workflowId, + ); if (spandrel) assertRetainedSpandrelEvidence({ recipe, sourceWorkflow, association, entry, nativeReceipt }); if (association.recipeObservation) { assertRetainedTechnicalRecipe({ recipe, sourceWorkflow, association, entry, nativeReceipt }); @@ -319,6 +338,10 @@ export function createRetainedGalleryReleaseReader({ clientRoot, source, registr { ...reviewBindings, decodedMediaHash: entry.mediaHash, + ...(entry.decodedAudioHash && { + decodedAudioHash: entry.decodedAudioHash, + audiovisualMediaHash: entry.audiovisualMediaHash, + }), }, 'approved_reviewed', ), diff --git a/scripts/retained-gallery-templates.test.mjs b/scripts/retained-gallery-templates.test.mjs index 9cc5d51d..b8f09a46 100644 --- a/scripts/retained-gallery-templates.test.mjs +++ b/scripts/retained-gallery-templates.test.mjs @@ -145,10 +145,11 @@ test('retained Gallery recipes preserve the native graph identities and standalo ); assert.equal(exactness.getPromptSettingsHash(settings), reviewedCatalogLock.promptSettingsHash); if (recipe.inputSha256) assert.equal(exactness.getTemplateInputContractHash(template), undefined); - assert.deepEqual(sources.get(`${template.modelType}|${template.mode}`), { - ...skeletons.find(({ id }) => id === recipe.sourceTaskTemplateId), - taskContract: true, - }); + const source = sources.get(`${template.modelType}|${template.mode}`); + const authored = published.find(({ id }) => id === recipe.sourceTaskTemplateId); + const task = skeletons.find(({ id }) => id === recipe.sourceTaskTemplateId); + assert.equal(source.id, recipe.sourceTaskTemplateId, recipe.workflowId); + assert.deepEqual(source, authored ?? { ...task, taskContract: true }); if (approvedBatchIds.has(template.id)) { const authoringArchive = retainedGalleryAuthoringArchives[recipe.workflowId]; assert.equal(authoringArchive.descriptorSha256, recipe.originalReceiptSha256); @@ -174,22 +175,26 @@ test('retained Gallery recipes preserve the native graph identities and standalo const capture = descriptor.capture ? JSON.parse(readCanonicalEvidenceFile(evidenceRoot, descriptor.capture).bytes) : descriptor; - const saved = JSON.parse(readCanonicalEvidenceFile(evidenceRoot, capture.creatorPackage).bytes); + const saved = JSON.parse( + readCanonicalEvidenceFile(evidenceRoot, capture.creatorPackage ?? capture.creator).bytes, + ); const api = flow.getState().exportGraph('retained-batch-check', undefined, { sourceGraph: saved.graph, randomizeSeeds: false, }); assert.equal(canonicalGraphIdentity(api).hash, recipe.retainedGraphHash, template.id); assert.deepEqual( - Object.values(capture.inputs ?? [capture.input]) + Object.values(capture.inputs ?? [capture.input ?? { file: capture.source }]) .map(({ file }) => file.sha256) .sort(), [ - recipe.inputSha256, - recipe.maskSha256, - recipe.guideSha256, - recipe.lastFrameSha256, - recipe.secondaryReferenceSha256, + ...new Set([ + recipe.inputSha256, + recipe.maskSha256, + recipe.guideSha256, + recipe.lastFrameSha256, + recipe.secondaryReferenceSha256, + ]), ] .filter(Boolean) .sort(), @@ -324,12 +329,13 @@ test('fresh Expert recipes prepare with current backend specs and without a gene videoContract = nextVideoContract; const inputBinding = template.inputBindings?.[0]; const audio = inputBinding?.mediaType === 'audio'; - const sourceVideo = inputBinding?.mediaType === 'video'; + const sourceVideo = template.inputBindings?.some(({ field }) => field === 'sourceVideo'); + const controlVideo = template.inputBindings?.some(({ field }) => field === 'controlVideo'); const guide = template.inputBindings?.some(({ field }) => field === 'controlImage') ? 'review-control-image.png' : undefined; const input = - recipe.inputSha256 && inputBinding?.field !== 'controlImage' + recipe.inputSha256 && ['referenceImages', 'sourceAudio'].includes(inputBinding?.field) ? [ recipe.inputFileName ?? (audio ? authorsAudioFixture : 'review-source-image.png'), ...(recipe.secondaryReferenceSha256 ? ['review-second-reference.png'] : []), @@ -341,13 +347,13 @@ test('fresh Expert recipes prepare with current backend specs and without a gene template, audio ? { sourceAudio: input[0] } - : sourceVideo - ? { sourceVideo: 'review-source-video.mp4' } - : { - referenceImages: input, - ...(mask && { maskImage: mask }), - ...(guide && { controlImage: guide }), - }, + : { + referenceImages: input, + ...(mask && { maskImage: mask }), + ...(guide && { controlImage: guide }), + ...(sourceVideo && { sourceVideo: 'review-source-video.mp4' }), + ...(controlVideo && { controlVideo: 'review-control-video.mp4' }), + }, ); const form = studio.getState().form; assert.equal(form.device, template.example.lockedSettings.device ?? 'cuda:0'); @@ -387,6 +393,16 @@ test('fresh Expert recipes prepare with current backend specs and without a gene assert.deepEqual(canonicalGraphIdentity(comparable), retainedTemplateGraph(recipe)); continue; } + if (template.modelType === 'SpandrelVideoUpscale') { + const upscaler = api.nodes[binding.nodes.videoUpscaler].params; + const { value, ...artifact } = template.modelArtifact; + assert.deepEqual(upscaler.model_id.value, { ...artifact, value: `${value}/RealESRGAN_x2plus.pth` }); + assert.deepEqual([upscaler.video.value].flat(), ['review-source-video.mp4']); + assert.equal(upscaler.fps.value, template.example.lockedSettings.fps); + assert.equal(upscaler.tile_size.value, 256); + assert.equal(upscaler.tile_overlap.value, 32); + continue; + } const loader = api.nodes[binding.nodes[spec.roles.find(([, key]) => key.endsWith('.' + spec.loaderAction))[0]]]; if (template.example.retainedVideoPreview) { const { lockedSettings, lockedSeed } = template.example; @@ -408,6 +424,17 @@ test('fresh Expert recipes prepare with current backend specs and without a gene assert.equal(normalized.params.video.sourceId, binding.nodes.loadVideo); assert.equal(normalized.params.video.sourceKey, 'video'); } + if (controlVideo) { + const source = api.nodes[binding.nodes.loadControlVideo]; + assert.equal(source.params.file.value, 'review-control-video.mp4'); + const guide = api.nodes[generation.params.control_video.sourceId]; + assert.equal(guide.module, 'modules.VideoConditioning'); + } + if (input.length) { + const source = api.nodes[binding.nodes.loadImage]; + assert.deepEqual([source.params.file.value].flat(), input); + assert.equal(generation.params.reference_images.sourceId, binding.nodes.loadImage); + } continue; } assert.deepEqual(loader.params.model_id.value, { source: 'hub', value: template.modelArtifact.value }); diff --git a/scripts/source-video-timing.test.mjs b/scripts/source-video-timing.test.mjs index e1a88765..4bcf3701 100644 --- a/scripts/source-video-timing.test.mjs +++ b/scripts/source-video-timing.test.mjs @@ -3,6 +3,7 @@ import { test } from 'node:test'; import { sourceVideoTimingMatches } from '../src/studio/sourceVideoTiming.ts'; import { canonicalJsonHash, + decodedAudiovisualMediaHash, loadTemplateRuntime, technicalMediaErrors, validateQualityReview, @@ -53,6 +54,34 @@ test('audio delivery rate comes from the source stream, independently of normali assert.deepEqual(technicalMediaErrors({ ...audio, sourceSampleRate: undefined }, { sampleRate: 48000 }, 'audio'), []); }); +test('a retained audiovisual preview binds its original soundtrack and rejects a changed stream', () => { + const mediaHash = 'sha256:decoded-video-framemd5:' + 'b'.repeat(64); + const decodedAudioHash = 'sha256:decoded-audio-pcm-s16le-48000-stereo:' + 'c'.repeat(64); + const preview = { mediaHash, decodedAudioHash, frames: 121, fps: 24, width: 1280, height: 704 }; + const decoded = { + ...preview, + hash: mediaHash, + durationSeconds: 121 / 24, + codecName: 'h264', + pixelFormat: 'yuv420p', + hasAudio: true, + embeddedAudio: { hash: decodedAudioHash, peakAmplitude: 0.8, silenceRatio: 0.05, clippedSampleRatio: 0 }, + audiovisualMediaHash: decodedAudiovisualMediaHash(mediaHash, decodedAudioHash), + nearBlackRatio: 0, + lumaStdDev: 20, + uniqueFrameRatio: 1, + }; + const check = (result) => technicalMediaErrors(result, { requiresAudio: true }, 'video', preview); + assert.deepEqual(check(decoded), []); + assert.ok( + check({ ...decoded, embeddedAudio: { ...decoded.embeddedAudio, hash: 'changed' } }).some((e) => + e.includes('retained preview'), + ), + ); + assert.ok(check({ ...decoded, hasAudio: false, embeddedAudio: undefined }).some((e) => e.includes('embedded audio'))); + assert.ok(check({ ...decoded, isolatedLumaFlashRatio: 1 / 14 }).some((e) => e.includes('luminance flashes'))); +}); + test('a reviewed native preview preserves its exact short clip and browser-safe playback', () => { const hash = 'sha256:decoded-video-framemd5:' + 'b'.repeat(64); const preview = { mediaHash: hash, frames: 25, fps: 8, width: 720, height: 480 }; diff --git a/scripts/template-gallery-harness.mjs b/scripts/template-gallery-harness.mjs index 303439aa..04126238 100644 --- a/scripts/template-gallery-harness.mjs +++ b/scripts/template-gallery-harness.mjs @@ -18,6 +18,7 @@ import templateGalleryContract from '../src/studio/templateGalleryContract.json' import { canonicalJsonHash as storageJsonHash } from './canonical-json.mjs'; import { RETAINED_GALLERY_PROVENANCE_FORMAT, + decodedAudiovisualMediaHash, retainedGalleryFileLimit, validateRetainedGalleryProvenance, } from './retained-gallery-provenance.mjs'; @@ -307,17 +308,7 @@ export function canonicalJsonHash(value) { return `sha256:canonical-json:${sha256(Buffer.from(stableStringify(value)))}`; } -export function decodedAudiovisualMediaHash(decodedMediaHash, decodedAudioHash) { - if (!decodedMediaHash || !decodedAudioHash) return null; - return `sha256:decoded-av-v1:${sha256( - Buffer.from( - stableStringify({ - decodedAudioHash, - decodedMediaHash, - }), - ), - )}`; -} +export { decodedAudiovisualMediaHash }; // Published v1 frame hashes include the muxer's software comment. These two // reviewed producers emit identical frame records but different banner bytes. @@ -1844,6 +1835,7 @@ export function technicalMediaErrors(decoded, expected = {}, mediaType = 'image' if (mediaType === 'video') { const retainedClip = retainedVideoPreviewMatches(retainedVideoPreview, { ...decoded, + decodedAudioHash: decoded.embeddedAudio?.hash, mediaHash: decodedMediaHashMatches(decoded, retainedVideoPreview?.mediaHash) ? retainedVideoPreview.mediaHash : decoded.hash, @@ -1899,7 +1891,15 @@ export function technicalMediaErrors(decoded, expected = {}, mediaType = 'image' ); } if (Number(decoded.uniqueFrameRatio ?? 0) < 0.1) errors.push('video has fewer than 10% unique decoded frames'); - if (retainedClip) errors.push(...beforePreviewContractErrors(decoded)); + if (retainedVideoPreview && !retainedClip) errors.push('video differs from the reviewed retained preview'); + if (retainedClip) { + errors.push( + ...beforePreviewContractErrors(decoded, { + ...templateGalleryContract.video.beforePreview, + muted: !retainedVideoPreview.decodedAudioHash, + }), + ); + } if (Number(decoded.isolatedLumaFlashRatio ?? 0) > 0) { errors.push('video contains one or more isolated full-frame luminance flashes'); } diff --git a/src/studio/retainedGalleryApprovedBatch.ts b/src/studio/retainedGalleryApprovedBatch.ts index b70ff739..bdc3ec4f 100644 --- a/src/studio/retainedGalleryApprovedBatch.ts +++ b/src/studio/retainedGalleryApprovedBatch.ts @@ -6525,4 +6525,1130 @@ export const APPROVED_RETAINED_TEMPLATES: StudioTemplate[] = [ 'Reproduce the reviewed Red Enamel on Folded Linen example with the saved prompt, settings and model revision.', runtimeReuseKey: 'sha256:canonical-graph-v1:4d2c6321c55423646e3776f57b41f32a0b7da6ab3d3b74daa49bc81fd17f9793', }, + { + id: 'mochi_surf_over_dark_pebbles', + label: 'Mochi — Text to video: Surf over Dark Pebbles', + mode: 'text_to_video', + modelType: 'MochiPipeline', + intentGroup: 'video', + thumbnailVariant: 'video', + category: 'video_generation', + videoDelivery: 'native', + outputKinds: ['video'], + readinessPolicy: 'runnable', + modelArtifact: { + source: 'hub', + value: 'genmo/mochi-1-preview', + revision: '14be5fcea23095ed330cb214647916a451e38b6e', + }, + description: + 'Reproduce the reviewed Surf over Dark Pebbles example with the saved prompt, settings and model revision.', + prompt: + 'Live-action close-up of a small sea wave washing over dark pebbles on a sheltered beach at sunrise. One continuous real-time shot. Place a fixed, low camera parallel to the waterline, with round wet stones in the foreground and a blurred quiet shoreline behind. A thin front of white foam runs swiftly across the black and gray pebbles from left to right, curls around one large round stone, then begins to drain back. Keep the focus fixed on that stone and let the foam change shape naturally while every stone stays still. Low amber side light, muted ocean blues, clean wet highlights.', + negativePrompt: '', + example: { + mediaType: 'video', + status: 'unverified', + modelRevision: '14be5fcea23095ed330cb214647916a451e38b6e', + lockedSeed: 42, + lockedSettings: { + width: 848, + height: 480, + steps: 64, + guidanceScale: 4.5, + strength: 0.8, + outputType: 'pil', + maxSequenceLength: 256, + pagScale: 3, + pagAdaptiveScale: 0, + dtype: 'bfloat16', + resourceMode: 'expert', + quantizationMode: 'none', + autoOffload: true, + offloadMode: 'sequential_cpu', + numFrames: 31, + fps: 30, + guidanceScale2: 0, + shift: 0, + conditioningScale: 1, + }, + retainedVideoPreview: { + frames: 31, + fps: 30, + width: 848, + height: 480, + mediaHash: 'sha256:decoded-video-framemd5:6b0045ad0e286cc6db73ef1bc377e922071458ccf4bbd497793f18bf2873455f', + }, + expectedOutput: { + width: 848, + height: 480, + frames: 31, + durationSeconds: 1.0333333333333334, + }, + runtimeEstimate: '409.06 seconds in the saved run', + }, + requiredBackendCapabilities: [ + 'modules.DiffusersRuntime.PipelineQuantizationConfigV2', + 'modules.DiffusersRuntime.DiffusersExecutionRecipe', + 'modules.Video.Export', + 'modules.DiffusersVideo.Generate', + 'modules.DiffusersVideo.LoadPipeline', + ], + mediaSlots: [ + { + id: 'result', + label: 'Generated image', + kind: 'video', + role: 'output', + placeholder: 'Result pending', + }, + ], + recipeSummary: + 'Reproduce the reviewed Surf over Dark Pebbles example with the saved prompt, settings and model revision.', + runtimeReuseKey: 'sha256:canonical-graph-v1:bf2b044a50f9b1e7b1813fa51ec77f1e6c1fa910e6aa6236ae7b783eaed6832e', + }, + { + id: 'animatediff_ivory_balloon_blue_mountains', + label: 'AnimateDiff SD1.5 v2 + ControlNet — Control to video: Ivory Balloon over Blue Mountains', + mode: 'control_to_video', + modelType: 'AnimateDiffControlNetPipeline', + intentGroup: 'video', + thumbnailVariant: 'video', + category: 'video_generation', + videoDelivery: 'native', + inputBindings: [ + { + id: 'control-video', + label: 'Control video', + mediaType: 'video', + field: 'controlVideo', + origin: 'user', + requiredAt: 'workflow_start', + count: 1, + }, + ], + outputKinds: ['video'], + readinessPolicy: 'requires_input', + modelArtifact: { + source: 'hub', + value: 'stable-diffusion-v1-5/stable-diffusion-v1-5', + revision: '451f4fe16113bff5a5d2269ed5ad43b0592e9a14', + }, + description: + 'Reproduce the reviewed Ivory Balloon over Blue Mountains example with the saved prompt, settings and model revision.', + prompt: + 'Locked-off wide view of one ivory fabric hot-air balloon slowly rising above a pale snowy mountain ridge. A small dark wicker basket stays attached to the balloon. Soft mist-blue sky, quiet diffuse light, sparse clean gouache illustration, steady viewpoint. The oval balloon and its basket move upward together in one uninterrupted two-second shot.', + negativePrompt: '', + example: { + mediaType: 'video', + status: 'unverified', + modelRevision: '451f4fe16113bff5a5d2269ed5ad43b0592e9a14', + lockedSeed: 42, + lockedSettings: { + width: 512, + height: 512, + steps: 25, + guidanceScale: 7.5, + strength: 0.8, + outputType: 'pil', + maxSequenceLength: 77, + pagScale: 3, + pagAdaptiveScale: 0, + dtype: 'float16', + resourceMode: 'expert', + quantizationMode: 'none', + autoOffload: true, + offloadMode: 'model_cpu', + numFrames: 16, + fps: 8, + guidanceScale2: 0, + shift: 0, + conditioningScale: 1, + }, + retainedVideoPreview: { + frames: 16, + fps: 8, + width: 512, + height: 512, + mediaHash: 'sha256:decoded-video-framemd5:05a11003f908f21a029be1600215f1affdbdf86742069adc0b92f1e627ba8bb7', + }, + expectedOutput: { + width: 512, + height: 512, + frames: 16, + durationSeconds: 2, + }, + runtimeEstimate: '37.77 seconds in the saved run', + }, + requiredBackendCapabilities: [ + 'modules.VideoConditioning.EdgePreprocessor', + 'modules.DiffusersRuntime.PipelineQuantizationConfigV2', + 'modules.DiffusersRuntime.DiffusersExecutionRecipe', + 'modules.Video.Load', + 'modules.VideoConditioning.Normalize', + 'modules.Video.Export', + 'modules.DiffusersVideo.Generate', + 'modules.DiffusersVideo.LoadPipeline', + ], + mediaSlots: [ + { + id: 'result', + label: 'Generated image', + kind: 'video', + role: 'output', + placeholder: 'Result pending', + }, + ], + recipeSummary: + 'Reproduce the reviewed Ivory Balloon over Blue Mountains example with the saved prompt, settings and model revision.', + runtimeReuseKey: 'sha256:canonical-graph-v1:c3a0bd75af7f0ef791bda2a2658df375640199d9d8d1be6f589f94900e923bf1', + }, + { + id: 'animatediff_red_tram_through_snow', + label: 'AnimateDiff SD1.5 v2 Video-to-Video + ControlNet — Control video to video: Red Tram through the Snow', + mode: 'control_video_to_video', + modelType: 'AnimateDiffVideoToVideoControlNetPipeline', + intentGroup: 'video', + thumbnailVariant: 'video', + category: 'video_generation', + videoDelivery: 'native', + inputBindings: [ + { + id: 'source-video', + label: 'Source video', + mediaType: 'video', + field: 'sourceVideo', + origin: 'user', + requiredAt: 'workflow_start', + count: 1, + }, + { + id: 'control-video', + label: 'Control video', + mediaType: 'video', + field: 'controlVideo', + origin: 'user', + requiredAt: 'workflow_start', + count: 1, + }, + ], + outputKinds: ['video'], + readinessPolicy: 'requires_input', + modelArtifact: { + source: 'hub', + value: 'stable-diffusion-v1-5/stable-diffusion-v1-5', + revision: '451f4fe16113bff5a5d2269ed5ad43b0592e9a14', + }, + description: + 'Reproduce the reviewed Red Tram through the Snow example with the saved prompt, settings and model revision.', + prompt: + 'A smoothly moving single red electric tram in a quiet snowy village, drawn in crisp ink and opaque gouache. The carriage keeps its source side-on framing and speed, with straight wheels aligned on the track and evenly placed windows. Steady pale morning light, white snowbanks and simple muted blue-gray buildings. The edges and scenery stay consistent over the whole shot.', + negativePrompt: '', + example: { + mediaType: 'video', + status: 'unverified', + modelRevision: '451f4fe16113bff5a5d2269ed5ad43b0592e9a14', + lockedSeed: 42, + lockedSettings: { + width: 512, + height: 512, + steps: 25, + guidanceScale: 7.5, + strength: 0.8, + outputType: 'pil', + maxSequenceLength: 77, + pagScale: 3, + pagAdaptiveScale: 0, + dtype: 'float16', + resourceMode: 'expert', + quantizationMode: 'none', + autoOffload: true, + offloadMode: 'model_cpu', + numFrames: 16, + fps: 8, + guidanceScale2: 0, + shift: 0, + conditioningScale: 1, + }, + retainedVideoPreview: { + frames: 16, + fps: 8, + width: 512, + height: 512, + mediaHash: 'sha256:decoded-video-framemd5:f0417dc3e13df149862f647940240ca5dde51bb3e65764584ed3352fa0517086', + }, + expectedOutput: { + width: 512, + height: 512, + frames: 16, + durationSeconds: 2, + }, + runtimeEstimate: '36.98 seconds in the saved run', + }, + requiredBackendCapabilities: [ + 'modules.VideoConditioning.EdgePreprocessor', + 'modules.DiffusersRuntime.PipelineQuantizationConfigV2', + 'modules.DiffusersRuntime.DiffusersExecutionRecipe', + 'modules.Video.Load', + 'modules.VideoConditioning.Normalize', + 'modules.Video.Export', + 'modules.DiffusersVideo.Generate', + 'modules.DiffusersVideo.LoadPipeline', + ], + mediaSlots: [ + { + id: 'before', + label: 'Source video', + kind: 'comparison_before', + role: 'before', + placeholder: 'Source pending', + }, + { + id: 'after', + label: 'Generated video', + kind: 'comparison_after', + role: 'after', + placeholder: 'Preview pending', + }, + ], + recipeSummary: + 'Reproduce the reviewed Red Tram through the Snow example with the saved prompt, settings and model revision.', + runtimeReuseKey: 'sha256:canonical-graph-v1:def788f2dd1441b8d6f37e453ce30da5f5fe0f35711fadbb4d3240d2db95f177', + }, + { + id: 'sana_i2v_blue_hour_above_rice_terraces', + label: 'SANA-Video 2B 480p I2V — Image to video: Blue Hour above the Rice Terraces', + mode: 'image_to_video', + modelType: 'SanaImageToVideoPipeline', + intentGroup: 'video', + thumbnailVariant: 'video', + category: 'video_generation', + videoDelivery: 'native', + inputBindings: [ + { + id: 'first-frame', + label: 'First frame', + mediaType: 'image', + field: 'referenceImages', + origin: 'user', + requiredAt: 'workflow_start', + count: 1, + }, + ], + outputKinds: ['video'], + readinessPolicy: 'requires_input', + modelArtifact: { + source: 'hub', + value: 'Efficient-Large-Model/SANA-Video_2B_480p_diffusers', + revision: 'db5f398b13ca086d09a50ce156c20527773841b1', + }, + description: + 'Reproduce the reviewed Blue Hour above the Rice Terraces example with the saved prompt, settings and model revision.', + prompt: + 'Start exactly from this view of the flooded rice terraces before sunrise. Maintain the same curving stone walls, still green stems, distant ridge silhouette and blue water. In one slow continuous five-second shot, advance gently forward along the near terrace edge toward the bend, keeping the horizon level and the near rice at the right of frame. Slow parallax separates the foreground leaves from the middle terraces. Cool mist slides quietly along the far valley, with faint ripples in the nearest pool and an otherwise calm scene. Keep the blue-hour lighting and stable geometry as the camera eases to a stop on the valley.', + negativePrompt: '', + example: { + mediaType: 'video', + status: 'unverified', + modelRevision: 'db5f398b13ca086d09a50ce156c20527773841b1', + lockedSeed: 42, + lockedSettings: { + width: 832, + height: 480, + steps: 50, + guidanceScale: 6, + strength: 0.8, + outputType: 'pil', + maxSequenceLength: 300, + pagScale: 3, + pagAdaptiveScale: 0, + dtype: 'bfloat16', + resourceMode: 'expert', + quantizationMode: 'none', + autoOffload: true, + offloadMode: 'sequential_cpu', + numFrames: 81, + fps: 16, + guidanceScale2: 0, + shift: 0, + conditioningScale: 1, + }, + retainedVideoPreview: { + frames: 81, + fps: 16, + width: 832, + height: 480, + mediaHash: 'sha256:decoded-video-framemd5:d64fa64bcd0f0b94e58bc0010368d01d9d6839bef2c4ed0b8684c656dce5d6f8', + }, + expectedOutput: { + width: 832, + height: 480, + frames: 81, + durationSeconds: 5.0625, + }, + runtimeEstimate: '490.20 seconds in the saved run', + }, + requiredBackendCapabilities: [ + 'modules.DiffusersRuntime.PipelineQuantizationConfigV2', + 'modules.DiffusersRuntime.DiffusersExecutionRecipe', + 'modules.Image.Load', + 'modules.Video.Export', + 'modules.DiffusersVideo.Generate', + 'modules.DiffusersVideo.LoadPipeline', + ], + mediaSlots: [ + { + id: 'result', + label: 'Generated image', + kind: 'video', + role: 'output', + placeholder: 'Result pending', + }, + ], + recipeSummary: + 'Reproduce the reviewed Blue Hour above the Rice Terraces example with the saved prompt, settings and model revision.', + runtimeReuseKey: 'sha256:canonical-graph-v1:c807f3241ff651858fcd5bd5b6cd96e798c6a65332c1e59fbdb05d4fa588421b', + }, + { + id: 'sana_video_water_terraces_before_sunrise', + label: 'SANA-Video 2B 480p — Text to video: Water Terraces before Sunrise', + mode: 'text_to_video', + modelType: 'SanaVideoPipeline', + intentGroup: 'video', + thumbnailVariant: 'video', + category: 'video_generation', + videoDelivery: 'native', + outputKinds: ['video'], + readinessPolicy: 'runnable', + modelArtifact: { + source: 'hub', + value: 'Efficient-Large-Model/SANA-Video_2B_480p_diffusers', + revision: 'db5f398b13ca086d09a50ce156c20527773841b1', + }, + description: + 'Reproduce the reviewed Water Terraces before Sunrise example with the saved prompt, settings and model revision.', + prompt: + 'One continuous landscape shot of flooded rice terraces before sunrise in a steep green valley. Start near the wet stone lip of the upper terrace, with bright blue water reflections and a few softly bending rice stems in the near left foreground. The camera glides slowly and smoothly to the right at a constant low height, showing parallax between the near stone lip and the curved terrace walls below. Keep the far ridge and horizon steady. A thin layer of mist drifts left to right along the valley floor and a slight real-time breeze sends tiny ripples over the mirror-like water. Quiet early blue light, one warm strip of sky, fine detail on wet basalt and leaves. Hold the coherent valley view for a moment at the end of the glide.', + negativePrompt: + 'camera shake, cuts, racing zoom, strobing reflections, impossible geometry, turning horizon, flashing exposure, day to night change, crowds, text, logo, watermark', + example: { + mediaType: 'video', + status: 'unverified', + modelRevision: 'db5f398b13ca086d09a50ce156c20527773841b1', + lockedSeed: 42, + lockedSettings: { + width: 832, + height: 480, + steps: 50, + guidanceScale: 6, + strength: 0.8, + outputType: 'pil', + maxSequenceLength: 300, + pagScale: 3, + pagAdaptiveScale: 0, + dtype: 'bfloat16', + resourceMode: 'expert', + quantizationMode: 'none', + autoOffload: true, + offloadMode: 'sequential_cpu', + numFrames: 81, + fps: 16, + guidanceScale2: 0, + shift: 0, + conditioningScale: 1, + }, + retainedVideoPreview: { + frames: 81, + fps: 16, + width: 832, + height: 480, + mediaHash: 'sha256:decoded-video-framemd5:185d95f26e0af4716cdefa36748788445bcd8264230c05835348b02ab540cdd9', + }, + expectedOutput: { + width: 832, + height: 480, + frames: 81, + durationSeconds: 5.0625, + }, + runtimeEstimate: '467.60 seconds in the saved run', + }, + requiredBackendCapabilities: [ + 'modules.DiffusersRuntime.PipelineQuantizationConfigV2', + 'modules.DiffusersRuntime.DiffusersExecutionRecipe', + 'modules.Video.Export', + 'modules.DiffusersVideo.Generate', + 'modules.DiffusersVideo.LoadPipeline', + ], + mediaSlots: [ + { + id: 'result', + label: 'Generated image', + kind: 'video', + role: 'output', + placeholder: 'Result pending', + }, + ], + recipeSummary: + 'Reproduce the reviewed Water Terraces before Sunrise example with the saved prompt, settings and model revision.', + runtimeReuseKey: 'sha256:canonical-graph-v1:266ff690c34b346935cb27b4e1d26771657ca26bab6094c2b061ba634801bb65', + }, + { + id: 'animatediff_red_tram_in_watercolor', + label: 'AnimateDiff SD1.5 v2 Video-to-Video — Video to video: Red Tram in Watercolor', + mode: 'video_to_video', + modelType: 'AnimateDiffVideoToVideoPipeline', + intentGroup: 'video', + thumbnailVariant: 'video', + category: 'video_generation', + videoDelivery: 'native', + inputBindings: [ + { + id: 'source-video', + label: 'Source video', + mediaType: 'video', + field: 'sourceVideo', + origin: 'user', + requiredAt: 'workflow_start', + count: 1, + }, + ], + outputKinds: ['video'], + readinessPolicy: 'requires_input', + modelArtifact: { + source: 'hub', + value: 'stable-diffusion-v1-5/stable-diffusion-v1-5', + revision: '451f4fe16113bff5a5d2269ed5ad43b0592e9a14', + }, + description: + 'Reproduce the reviewed Red Tram in Watercolor example with the saved prompt, settings and model revision.', + prompt: + 'Side view of one red illustrated electric tram continuing smoothly along its existing track. Bright, diffuse winter daylight and a clean pale blue sky. The rectangular windows stay evenly spaced and the tram retains its silhouette, side-on framing, speed and direction. Quiet cream-painted buildings behind, soft paper texture and consistent color across the whole shot.', + negativePrompt: '', + example: { + mediaType: 'video', + status: 'unverified', + modelRevision: '451f4fe16113bff5a5d2269ed5ad43b0592e9a14', + lockedSeed: 42, + lockedSettings: { + width: 512, + height: 512, + steps: 25, + guidanceScale: 7.5, + strength: 0.45, + outputType: 'pil', + maxSequenceLength: 77, + pagScale: 3, + pagAdaptiveScale: 0, + dtype: 'float16', + resourceMode: 'expert', + quantizationMode: 'none', + autoOffload: true, + offloadMode: 'model_cpu', + numFrames: 16, + fps: 8, + guidanceScale2: 0, + shift: 0, + conditioningScale: 1, + }, + retainedVideoPreview: { + frames: 16, + fps: 8, + width: 512, + height: 512, + mediaHash: 'sha256:decoded-video-framemd5:9dd89c4abb2362ef5cbfb3e99f25956d5773f8e31ba996cf3b6b872eb1c822b5', + }, + expectedOutput: { + width: 512, + height: 512, + frames: 16, + durationSeconds: 2, + }, + runtimeEstimate: '26.16 seconds in the saved run', + }, + requiredBackendCapabilities: [ + 'modules.DiffusersRuntime.PipelineQuantizationConfigV2', + 'modules.DiffusersRuntime.DiffusersExecutionRecipe', + 'modules.Video.Load', + 'modules.VideoConditioning.Normalize', + 'modules.Video.Export', + 'modules.DiffusersVideo.Generate', + 'modules.DiffusersVideo.LoadPipeline', + ], + mediaSlots: [ + { + id: 'before', + label: 'Source video', + kind: 'comparison_before', + role: 'before', + placeholder: 'Source pending', + }, + { + id: 'after', + label: 'Generated video', + kind: 'comparison_after', + role: 'after', + placeholder: 'Preview pending', + }, + ], + recipeSummary: + 'Reproduce the reviewed Red Tram in Watercolor example with the saved prompt, settings and model revision.', + runtimeReuseKey: 'sha256:canonical-graph-v1:9d80fa0a57f924fae58e094e400e4309f79e3050b6e90de2c5c177c0d2d1358f', + }, + { + id: 'allegro_basalt_shore_at_dawn', + label: 'Allegro — Text to video: Basalt Shore at Dawn', + mode: 'text_to_video', + modelType: 'AllegroPipeline', + intentGroup: 'video', + thumbnailVariant: 'video', + category: 'video_generation', + videoDelivery: 'native', + outputKinds: ['video'], + readinessPolicy: 'runnable', + modelArtifact: { + source: 'hub', + value: 'rhymes-ai/Allegro', + revision: 'c1b9207bb5cb79e2aa08f3d139c17d26c0de55b6', + }, + description: + 'Reproduce the reviewed Basalt Shore at Dawn example with the saved prompt, settings and model revision.', + prompt: + 'One continuous coastal cinematography shot at dawn. From knee height on a sheltered rocky ledge, slide the camera smoothly right along the wet foreground stones, keeping the dark basalt sea arch just left of center and the horizon level. A broad swell sweeps through the arch from the open ocean and breaks outward toward the ledge. White sea foam travels visibly across the turquoise surface from foreground left to right, then pulls back across the black rocks. Fine mist lifts briefly in warm low sunlight. The layered cliff and arch stay rigid and recognizable while the near rocks shift in natural parallax. Real-time wave action throughout the shot and a quiet steady finish on the same composition.', + negativePrompt: + 'static water, frozen foam, still image, jump cuts, fast zoom, camera shake, warping rocks, moving horizon, changing arch shape, slow motion, synthetic textures, text, logos, watermark', + example: { + mediaType: 'video', + status: 'unverified', + modelRevision: 'c1b9207bb5cb79e2aa08f3d139c17d26c0de55b6', + lockedSeed: 42, + lockedSettings: { + width: 1280, + height: 720, + steps: 100, + guidanceScale: 7.5, + strength: 0.8, + outputType: 'pil', + maxSequenceLength: 512, + pagScale: 3, + pagAdaptiveScale: 0, + dtype: 'bfloat16', + resourceMode: 'expert', + quantizationMode: 'none', + autoOffload: true, + offloadMode: 'sequential_cpu', + numFrames: 88, + fps: 15, + guidanceScale2: 0, + shift: 0, + conditioningScale: 1, + }, + retainedVideoPreview: { + frames: 88, + fps: 15, + width: 1280, + height: 720, + mediaHash: 'sha256:decoded-video-framemd5:bef30898b727459dc0eae415a758067bdc9d5eb3bcc82edfcf329d8c8f9c3e47', + }, + expectedOutput: { + width: 1280, + height: 720, + frames: 88, + durationSeconds: 5.866666666666666, + }, + runtimeEstimate: '1624.38 seconds in the saved run', + }, + requiredBackendCapabilities: [ + 'modules.DiffusersRuntime.PipelineQuantizationConfigV2', + 'modules.DiffusersRuntime.DiffusersExecutionRecipe', + 'modules.Video.Export', + 'modules.DiffusersVideo.Generate', + 'modules.DiffusersVideo.LoadPipeline', + ], + mediaSlots: [ + { + id: 'result', + label: 'Generated image', + kind: 'video', + role: 'output', + placeholder: 'Result pending', + }, + ], + recipeSummary: + 'Reproduce the reviewed Basalt Shore at Dawn example with the saved prompt, settings and model revision.', + runtimeReuseKey: 'sha256:canonical-graph-v1:0e0211e72f2b7ecea3abd2ac10ad362852db2995d4a975bc4d064ea6d89dadb6', + }, + { + id: 'animatediff_candlelight_behind_amber_glass', + label: 'AnimateDiff SD1.5 v2 — Text to video: Candlelight behind Amber Glass', + mode: 'text_to_video', + modelType: 'AnimateDiffPipeline', + intentGroup: 'video', + thumbnailVariant: 'video', + category: 'video_generation', + videoDelivery: 'native', + outputKinds: ['video'], + readinessPolicy: 'runnable', + modelArtifact: { + source: 'hub', + value: 'stable-diffusion-v1-5/stable-diffusion-v1-5', + revision: '451f4fe16113bff5a5d2269ed5ad43b0592e9a14', + }, + description: + 'Reproduce the reviewed Candlelight behind Amber Glass example with the saved prompt, settings and model revision.', + prompt: + 'Real-time macro shot of a single small gold candle flame flickering inside an amber glass votive. One visible black wick in the center and a thin wax pool at the bottom. The flame leans softly left, rises upright and leans right, throwing a gently moving warm glow on the same round amber glass vessel. The glass sits still on pale rough limestone. Fixed level camera, calm dark gray backdrop, one continuous uninterrupted shot with the entire top lip and wick centered in the frame.', + negativePrompt: '', + example: { + mediaType: 'video', + status: 'unverified', + modelRevision: '451f4fe16113bff5a5d2269ed5ad43b0592e9a14', + lockedSeed: 42, + lockedSettings: { + width: 512, + height: 512, + steps: 25, + guidanceScale: 7.5, + strength: 0.8, + outputType: 'pil', + maxSequenceLength: 77, + pagScale: 3, + pagAdaptiveScale: 0, + dtype: 'float16', + resourceMode: 'expert', + quantizationMode: 'none', + autoOffload: true, + offloadMode: 'model_cpu', + numFrames: 16, + fps: 8, + guidanceScale2: 0, + shift: 0, + conditioningScale: 1, + }, + retainedVideoPreview: { + frames: 16, + fps: 8, + width: 512, + height: 512, + mediaHash: 'sha256:decoded-video-framemd5:f91e08ce60a94b436a144a59fbbd02faf83ea8a9375d1230524e06ceff4357b3', + }, + expectedOutput: { + width: 512, + height: 512, + frames: 16, + durationSeconds: 2, + }, + runtimeEstimate: '33.48 seconds in the saved run', + }, + requiredBackendCapabilities: [ + 'modules.DiffusersRuntime.PipelineQuantizationConfigV2', + 'modules.DiffusersRuntime.DiffusersExecutionRecipe', + 'modules.Video.Export', + 'modules.DiffusersVideo.Generate', + 'modules.DiffusersVideo.LoadPipeline', + ], + mediaSlots: [ + { + id: 'result', + label: 'Generated image', + kind: 'video', + role: 'output', + placeholder: 'Result pending', + }, + ], + recipeSummary: + 'Reproduce the reviewed Candlelight behind Amber Glass example with the saved prompt, settings and model revision.', + runtimeReuseKey: 'sha256:canonical-graph-v1:9387c155d24de33e4d9a5a8115a6baa2818a35613f828908c0d46be3c0ab5c44', + }, + { + id: 'wan_vace_amber_rings_after_rain', + label: 'Wan VACE 1.3B — Text to video: Amber Rings after Rain', + mode: 'text_to_video', + modelType: 'WanVACEPipeline', + intentGroup: 'video', + thumbnailVariant: 'video', + category: 'video_generation', + videoDelivery: 'spatial_upscale', + outputKinds: ['video'], + readinessPolicy: 'runnable', + modelArtifact: { + source: 'hub', + value: 'Wan-AI/Wan2.1-VACE-1.3B-diffusers', + revision: 'ec4d2cb062b548996b179d493fdd05340de702a1', + }, + description: + 'Reproduce the reviewed Amber Rings after Rain example with the saved prompt, settings and model revision.', + prompt: + 'Five seconds of real-time live-action macro photography. A shallow puddle on dark cobblestones, illuminated by the soft amber reflection of a streetlamp outside the frame. The whole view is locked to a low tripod. Fresh raindrops strike the water continuously at different points, creating little bright splashes followed by widening overlapping circular ripples. The reflected light breaks into moving gold arcs on each passing ripple and then reforms. The surrounding stones are dark and perfectly fixed. Photographic wet texture, subtle blue evening fill, close focus on the ripples, gentle practical lighting.', + negativePrompt: + 'deformity, deformed rollers, painting, illustration, synthetic render, low resolution, static frame, frozen action, slow motion, motionless paper, locked camera, camera pause, weak parallax, flicker, temporal jitter, warped cylinder, changing roller size, loose paper, torn paper, duplicate hardware, impossible paper contact, reversed travel, abrupt camera jump, text, subtitle, logo, watermark', + example: { + mediaType: 'video', + status: 'unverified', + modelRevision: 'ec4d2cb062b548996b179d493fdd05340de702a1', + lockedSeed: 8231, + lockedSettings: { + width: 832, + height: 480, + steps: 30, + guidanceScale: 5, + strength: 0.8, + outputType: 'pil', + maxSequenceLength: 512, + pagScale: 3, + pagAdaptiveScale: 0, + dtype: 'bfloat16', + resourceMode: 'expert', + quantizationMode: 'none', + autoOffload: true, + offloadMode: 'model_cpu', + numFrames: 81, + fps: 16, + guidanceScale2: 0, + shift: 3, + conditioningScale: 1, + }, + retainedVideoPreview: { + frames: 81, + fps: 16, + width: 1664, + height: 960, + mediaHash: 'sha256:decoded-video-framemd5:cb3f42f9bb872efd1a813197d5705b9407b50fbd278a318159a48554de8bb5cb', + }, + expectedOutput: { + width: 1664, + height: 960, + frames: 81, + durationSeconds: 5.0625, + }, + runtimeEstimate: '154.29 seconds in the saved run', + }, + requiredBackendCapabilities: [ + 'modules.DiffusersRuntime.PipelineQuantizationConfigV2', + 'modules.DiffusersRuntime.DiffusersExecutionRecipe', + 'modules.Spandrel.Upscaler', + 'modules.Video.Export', + 'modules.DiffusersVideo.Generate', + 'modules.DiffusersVideo.LoadPipeline', + ], + mediaSlots: [ + { + id: 'result', + label: 'Generated image', + kind: 'video', + role: 'output', + placeholder: 'Result pending', + }, + ], + recipeSummary: + 'Reproduce the reviewed Amber Rings after Rain example with the saved prompt, settings and model revision.', + runtimeReuseKey: 'sha256:canonical-graph-v1:3eb2a114a3997bf20ad212143012e33fcc59e35c7aebb7a78ad5c04793c5de09', + }, + { + id: 'wan_a14b_wind_across_pond', + label: 'Wan 2.2 I2V A14B — Image to video: Wind Across the Glacial Pond', + mode: 'image_to_video', + modelType: 'WanImageToVideoPipeline', + intentGroup: 'video', + thumbnailVariant: 'video', + category: 'video_generation', + videoDelivery: 'native', + inputBindings: [ + { + id: 'first-frame', + label: 'First frame', + mediaType: 'image', + field: 'referenceImages', + origin: 'user', + requiredAt: 'workflow_start', + count: 1, + }, + ], + outputKinds: ['video'], + readinessPolicy: 'requires_input', + modelArtifact: { + source: 'hub', + value: 'Wan-AI/Wan2.2-I2V-A14B-Diffusers', + revision: '596658fd9ca6b7b71d5057529bbf319ecbc61d74', + }, + description: + 'Reproduce the reviewed Wind Across the Glacial Pond example with the saved prompt, settings and model revision.', + prompt: + 'Continue directly from the supplied alpine pond photograph. One continuous aerial tabletop-height glide slowly forward and to the right toward the tiny larch island. The island and the distant granite peaks retain their exact shapes and relative positions. Small wind ripples travel diagonally across the turquoise water and gently break up the mirror reflection. The low branch tips on the single larch sway slightly and its trunk stays fixed. Clear blue sky and bright natural daylight stay steady. Use restrained camera motion, visible foreground parallax, realistic water and anchored shorelines. A natural landscape travel sequence with no cut, abrupt zoom, exposure jump or new objects.', + negativePrompt: + 'camera shake, abrupt zoom, camera cut, exposure flicker, changed mountain silhouettes, doubled tree, warped trunk, drifting island, frozen water, rolling shutter, oversaturated sky, blurry frames, text, watermark', + example: { + mediaType: 'video', + status: 'unverified', + modelRevision: '596658fd9ca6b7b71d5057529bbf319ecbc61d74', + lockedSeed: 92021, + lockedSettings: { + width: 768, + height: 512, + steps: 40, + guidanceScale: 3.5, + strength: 0.8, + outputType: 'pil', + maxSequenceLength: 512, + pagScale: 3, + pagAdaptiveScale: 0, + dtype: 'bfloat16', + resourceMode: 'expert', + quantizationMode: 'none', + autoOffload: true, + offloadMode: 'model_cpu', + numFrames: 81, + fps: 16, + guidanceScale2: 3.5, + shift: 0, + conditioningScale: 1, + }, + retainedVideoPreview: { + frames: 81, + fps: 16, + width: 768, + height: 512, + mediaHash: 'sha256:decoded-video-framemd5:25c5ff976264fa7e9c693bd203b597a9170e3311b7ca9ef1570029fb77b46a45', + }, + expectedOutput: { + width: 768, + height: 512, + frames: 81, + durationSeconds: 5.0625, + }, + runtimeEstimate: '469.02 seconds in the saved run', + }, + requiredBackendCapabilities: [ + 'modules.DiffusersRuntime.PipelineQuantizationConfigV2', + 'modules.DiffusersRuntime.DiffusersExecutionRecipe', + 'modules.Image.Load', + 'modules.Video.Export', + 'modules.DiffusersVideo.Generate', + 'modules.DiffusersVideo.LoadPipeline', + ], + mediaSlots: [ + { + id: 'result', + label: 'Generated image', + kind: 'video', + role: 'output', + placeholder: 'Result pending', + }, + ], + recipeSummary: + 'Reproduce the reviewed Wind Across the Glacial Pond example with the saved prompt, settings and model revision.', + runtimeReuseKey: 'sha256:canonical-graph-v1:0fe1766aff910661f5d55d4bc72abc0a25bd85157b4b9f29e347c67fcb679140', + }, + { + id: 'wan_ti2v_subway_musician', + label: 'Wan 2.2 TI2V 5B — Text to video: Subway Musician', + mode: 'text_to_video', + modelType: 'WanTI2VPipeline', + intentGroup: 'video', + thumbnailVariant: 'video', + category: 'video_generation', + videoDelivery: 'native', + workflowBlocks: ['soundtrack'], + workflowBlockSettings: { + soundtrack: { + model: { + source: 'hub', + value: 'ACE-Step/acestep-v15-xl-turbo-diffusers', + revision: '200ba991ae448051e14b0183157e35c2d27c9fb0', + }, + pipelineClass: 'AceStepPipeline', + prompt: + 'Instrumental diegetic solo acoustic-guitar soundtrack matching existing subway footage. For the entire twelve seconds, perform forceful uninterrupted 84 BPM eighth-note down-up chord strumming on one warm steel-string acoustic guitar. Start the established strumming pattern immediately and keep its energy, tempo, and full-chord attack constant past ten seconds. Use a clear alternating downstroke-upstroke pick pattern, realistic pick attack, and natural fret noise, with no pauses or melodic detours. Do not cadence, resolve, decay, slow down, thin out, or stop early; the usable soundtrack will be cut from the middle of this continuous performance. Keep subtle station room ambience far beneath the guitar. No fingerpicking, arpeggio, lead melody, vocals, spoken words, drums, percussion, bass, band, synthesizer, applause, crowd cheering, fade-in, fade-out, or early ending.', + negativePrompt: + 'fingerpicking, fingerpicked riff, arpeggio, arpeggiated guitar, lead guitar, lead melody, guitar solo, single-note melody, sparse picking, gentle picking, vocals, singing, speech, drums, percussion, bass guitar, full band, synthesizer, electronic beat, applause, crowd cheering, silence, pause, breakdown, cadence, final chord, early resolution, early decay, early ending, long intro, fade-in, fade-out, clipping, abrupt cutoff', + durationSeconds: 12, + steps: 8, + guidanceScale: 1, + seed: 1684710282, + bpm: 84, + keyscale: 'E minor', + timesignature: '4/4', + audioFit: { + sourceStartSeconds: 1, + sourceDurationSeconds: 5.041666666666667, + targetDurationSeconds: 5.041666666666667, + delaySeconds: 0.16666666666666666, + targetSampleRate: 48000, + fadeInSeconds: 0.008, + fadeOutSeconds: 0.12, + }, + }, + }, + outputKinds: ['video'], + readinessPolicy: 'runnable', + modelArtifact: { + source: 'hub', + value: 'Wan-AI/Wan2.2-TI2V-5B-Diffusers', + revision: 'b8fff7315c768468a5333511427288870b2e9635', + }, + description: 'Reproduce the reviewed Subway Musician example with the saved prompt, settings and model revision.', + prompt: + 'One uninterrupted five-second cinematic shot of a seated street musician playing a steel-string acoustic guitar on a retro subway platform. The guitar and both natural playing hands are in clear medium view. His left hand holds chords on the neck and his right hand plays steady alternating eighth-note strums. He wears a worn brown work jacket, with a folded instrument case beside the bench. A distant out-of-focus commuter crosses the far end of the station. The camera tracks slowly to the right at seated eye level, with gentle parallax between a foreground pillar and the warm tiled platform. Hold the musician in focus and keep the light stable. Natural human posture, realistic strings and pick motion, warm fluorescent light over muted gray tiles, discreet modern editorial texture.', + negativePrompt: + 'deformity, deformed anatomy, deformed limbs, deformed wheels, deformed rigid-body geometry, identity drift, 色调艳丽,过曝,静态,细节模糊不清,字幕,风格,作品,画作,画面,静止,整体发灰,最差质量,低质量,JPEG压缩残留,丑陋的,残缺的,多余的手指,画得不好的手部,画得不好的脸部,畸形的,毁容的,形态畸形的肢体,手指融合,静止不动的画面,杂乱的背景,三条腿,背景人很多,倒着走', + example: { + mediaType: 'video', + status: 'unverified', + modelRevision: 'b8fff7315c768468a5333511427288870b2e9635', + lockedSeed: 898471028164125, + lockedSettings: { + width: 1280, + height: 704, + steps: 50, + guidanceScale: 5, + strength: 0.8, + outputType: 'pil', + maxSequenceLength: 512, + pagScale: 0, + pagAdaptiveScale: 0, + dtype: 'bfloat16', + resourceMode: 'expert', + quantizationMode: 'none', + autoOffload: true, + offloadMode: 'model_cpu', + numFrames: 121, + fps: 24, + guidanceScale2: 0, + shift: 8, + conditioningScale: 1, + }, + retainedVideoPreview: { + frames: 121, + fps: 24, + width: 1280, + height: 704, + mediaHash: 'sha256:decoded-video-framemd5:66be2fda542fce90978be2667115eec0849c1b4502e998f86ec3924ae2ddd54e', + decodedAudioHash: + 'sha256:decoded-audio-pcm-s16le-48000-stereo:e009f96b1f91e9d456f86b3c5c75df2df9b10903351ced289eced2fbada0b5d1', + }, + expectedOutput: { + width: 1280, + height: 704, + frames: 121, + durationSeconds: 5.041666666666667, + requiresAudio: true, + }, + runtimeEstimate: '280.82 seconds in the saved run', + }, + requiredBackendCapabilities: [ + 'modules.DiffusersRuntime.PipelineQuantizationConfigV2', + 'modules.DiffusersRuntime.DiffusersExecutionRecipe', + 'modules.Video.ExportWithAudio', + 'modules.Audio.FitDuration', + 'modules.DiffusersAudio.Generate', + 'modules.DiffusersAudio.LoadPipeline', + 'modules.DiffusersVideo.Generate', + 'modules.DiffusersVideo.LoadPipeline', + ], + mediaSlots: [ + { + id: 'result', + label: 'Generated image', + kind: 'video', + role: 'output', + placeholder: 'Result pending', + }, + ], + recipeSummary: 'Reproduce the reviewed Subway Musician example with the saved prompt, settings and model revision.', + runtimeReuseKey: 'sha256:canonical-graph-v1:dc5a3915f6767104be7c308fc55384b2abc349a8881e585d48df140b68ee2591', + }, + { + id: 'spandrel_tram_shelter_video_2x', + label: 'Real-ESRGAN x2 Video Upscale — Video upscale: Blue Hour Tram Shelter 2×', + mode: 'video_upscale', + modelType: 'SpandrelVideoUpscale', + intentGroup: 'video', + thumbnailVariant: 'video', + category: 'upscale', + videoDelivery: 'native', + inputBindings: [ + { + id: 'source-video', + label: 'Source video', + mediaType: 'video', + field: 'sourceVideo', + origin: 'user', + requiredAt: 'workflow_start', + count: 1, + }, + ], + outputKinds: ['video'], + readinessPolicy: 'requires_input', + modelArtifact: { + source: 'hub', + value: 'nateraw/real-esrgan', + revision: '42efb9c3eeed1f5c0c8a626cf5f7f4481dfbb094', + sha256: '49fafd45f8fd7aa8d31ab2a22d14d91b536c34494a5cfe31eb5d89c2fa266abb', + byteSize: 67061725, + license: 'bsd-3-clause', + }, + description: + 'Reproduce the reviewed Blue Hour Tram Shelter 2× example with the saved prompt, settings and model revision.', + prompt: '', + negativePrompt: '', + example: { + mediaType: 'video', + status: 'unverified', + modelRevision: '42efb9c3eeed1f5c0c8a626cf5f7f4481dfbb094', + lockedSeed: 42, + lockedSettings: { + width: 1920, + height: 1920, + steps: 1, + guidanceScale: 0, + strength: 0.8, + outputType: 'pil', + maxSequenceLength: 512, + pagScale: 0, + pagAdaptiveScale: 0, + dtype: 'float32', + resourceMode: 'expert', + quantizationMode: 'none', + autoOffload: false, + offloadMode: 'none', + numFrames: 81, + fps: 16, + guidanceScale2: 0, + shift: 3, + }, + retainedVideoPreview: { + frames: 54, + fps: 16, + width: 1024, + height: 576, + mediaHash: 'sha256:decoded-video-framemd5:cb31cd0903f5e394e21f0ac8bd6373e0e67fb0a93a3191fef43e628bec0f17ed', + }, + expectedOutput: { + width: 1024, + height: 576, + frames: 54, + durationSeconds: 3.375, + }, + runtimeEstimate: '37.75 seconds in the saved run', + }, + requiredBackendCapabilities: ['modules.Video.Export', 'modules.Video.UpscaleVideo'], + mediaSlots: [ + { + id: 'before', + label: 'Source video', + kind: 'comparison_before', + role: 'before', + placeholder: 'Source pending', + }, + { + id: 'after', + label: 'Generated video', + kind: 'comparison_after', + role: 'after', + placeholder: 'Preview pending', + }, + ], + recipeSummary: + 'Reproduce the reviewed Blue Hour Tram Shelter 2× example with the saved prompt, settings and model revision.', + runtimeReuseKey: 'sha256:canonical-graph-v1:ee3276b1993ebb2ab0d6228468f6b3233d73daf72c758a7f2f93d48f3513837e', + }, ]; diff --git a/src/studio/retainedVideoPreview.ts b/src/studio/retainedVideoPreview.ts index 8a22ad13..253de108 100644 --- a/src/studio/retainedVideoPreview.ts +++ b/src/studio/retainedVideoPreview.ts @@ -1,6 +1,7 @@ -/** A complete, reviewed, silent clip reproduced from a saved native run. */ +/** A complete, reviewed clip from a saved native run. */ export type RetainedVideoPreview = { mediaHash: string; + decodedAudioHash?: string; width: number; height: number; frames: number; @@ -11,6 +12,7 @@ export function retainedVideoPreviewMatches( preview: RetainedVideoPreview | undefined, media: { mediaHash?: string; + decodedAudioHash?: string; width?: number; height?: number; frames?: number; @@ -22,6 +24,9 @@ export function retainedVideoPreviewMatches( return ( /^sha256:decoded-video-(framemd5|rgba):[a-f0-9]{64}$/u.test(preview.mediaHash) && preview.mediaHash === media.mediaHash && + (preview.decodedAudioHash === undefined || + /^sha256:decoded-audio-pcm-s16le-48000-stereo:[a-f0-9]{64}$/u.test(preview.decodedAudioHash)) && + preview.decodedAudioHash === media.decodedAudioHash && preview.width === media.width && preview.height === media.height && Number.isSafeInteger(preview.width) && diff --git a/src/studio/templateAssetSource.json b/src/studio/templateAssetSource.json index 0723a3b3..4fa6263e 100644 --- a/src/studio/templateAssetSource.json +++ b/src/studio/templateAssetSource.json @@ -4,11 +4,11 @@ "localBasePath": "/template-gallery", "repoType": "dataset", "repoId": "sourav-das/modiff-template-gallery", - "revision": "ac106fa66b2d32fdfa7e6fb0212c2cde30f59c80", + "revision": "09bb6cf8c7ac96422f2de34fabe7770c9e1413db", "pathPrefix": "template-gallery", "assetManifestPath": "_modiff/template-assets.v1.json", - "assetSetId": "sha256:canonical-json:2b35d19dde5b545df34fba41def9e37cd15c83e9e7836517c6de1a6299138b7e", - "completeAssetSetId": "sha256:canonical-json:48da62e1f9fb4bb7ed02c8536ff3e4c37dfedccdb91dca7e24fd2654eb38bdf2", + "assetSetId": "sha256:canonical-json:b3f3e76073f3c9f06f92356fd1948827fdd1905b652d4d04867a57ab74b555a8", + "completeAssetSetId": "sha256:canonical-json:1d5ae5e7fa702186eb134bfa4d86f7e4f517faf88720885ddd6960980505fd6b", "unavailableAssets": [ "template-gallery/ace_step_chinese_new_year_lora.card-poster.png", "template-gallery/ace_step_chinese_new_year_lora.wav", diff --git a/src/studio/templateExactness.ts b/src/studio/templateExactness.ts index bfd6abc3..c3b7502e 100644 --- a/src/studio/templateExactness.ts +++ b/src/studio/templateExactness.ts @@ -390,8 +390,7 @@ export function isRetainedVideoPreview(template: StudioTemplate, entry: Template entry.qualityReviewStatus === 'approved_reviewed' && /^sha256:retained-template-association-v1:[a-f0-9]{64}$/u.test(entry.proofLockHash) && entry.outputPath.endsWith('.mp4') && - !entry.decodedAudioHash && - !entry.audiovisualMediaHash && + Boolean(entry.decodedAudioHash) === Boolean(entry.audiovisualMediaHash) && retainedVideoPreviewMatches(template.example?.retainedVideoPreview, entry) ); } diff --git a/src/studio/types.ts b/src/studio/types.ts index 6d824aea..fcdf7f51 100644 --- a/src/studio/types.ts +++ b/src/studio/types.ts @@ -297,6 +297,18 @@ export type StudioTemplateId = | 'qwen_2511_terracotta_material_transfer' | 'joy_plus_terracotta_on_limestone' | 'omnigen_red_enamel_folded_linen' + | 'mochi_surf_over_dark_pebbles' + | 'animatediff_ivory_balloon_blue_mountains' + | 'animatediff_red_tram_through_snow' + | 'sana_i2v_blue_hour_above_rice_terraces' + | 'sana_video_water_terraces_before_sunrise' + | 'animatediff_red_tram_in_watercolor' + | 'allegro_basalt_shore_at_dawn' + | 'animatediff_candlelight_behind_amber_glass' + | 'wan_vace_amber_rings_after_rain' + | 'wan_a14b_wind_across_pond' + | 'wan_ti2v_subway_musician' + | 'spandrel_tram_shelter_video_2x' | 'lumina2_larch_on_glacial_pond' | 'hunyuan_dit_coastal_lighthouse' | 'omnigen_tulips_after_rain' From 8f3723742c8ad1f56dfde6e901b741369db4c28b Mon Sep 17 00:00:00 2001 From: Sourav Das Date: Wed, 25 Nov 2026 14:44:23 +0530 Subject: [PATCH 376/440] Verify the archived Amber Glass execution --- docs/cluster-engineering-lessons.md | 8 + package.json | 2 +- scripts/prompt-variant-evidence.mjs | 2 +- scripts/release-contract-core.mjs | 5 + scripts/saved-vace-composite-evidence.mjs | 223 ++++++++++++++++++ .../saved-vace-composite-evidence.test.mjs | 31 +++ 6 files changed, 269 insertions(+), 2 deletions(-) create mode 100644 scripts/saved-vace-composite-evidence.mjs create mode 100644 scripts/saved-vace-composite-evidence.test.mjs diff --git a/docs/cluster-engineering-lessons.md b/docs/cluster-engineering-lessons.md index c14dece8..7f2663e1 100644 --- a/docs/cluster-engineering-lessons.md +++ b/docs/cluster-engineering-lessons.md @@ -813,6 +813,14 @@ successful run, and retain immutable definitions and unrelated preview owners. capture must accept the metadata save for its own task, then independently join it to the original graph request and terminal event. Preserve any missing snapshot as a capture gap. +- For an archived server run with capture gaps, compare its running queue and + terminal records by task, attempt, client run and input identity. Match the + saved executable graph independently. Record which original messages are + absent in the receipt. +- A registry replay uses archived source bytes and recorded runtime packages. + It verifies the node schemas without executing a model. Where preprocessing + changes input bytes, recompute the normalized pixel identity and compare it + with the saved execution. - Keep reviewed upstream source checkouts outside ordinary application test discovery. Distinguish collection/harness failures from product failures; reproduce suspect pre-existing assertions on the original commit. diff --git a/package.json b/package.json index 953fb628..45ac4aac 100644 --- a/package.json +++ b/package.json @@ -85,7 +85,7 @@ "test:template-assets:local": "node --test scripts/template-default-inputs.test.mjs", "test:template-quality": "node --test scripts/template-quality.test.mjs", "test:live-qwen-proof": "node --test scripts/live-qwen-proof.test.mjs scripts/native-modular-image-resource.test.mjs scripts/executed-native-media-resource.test.mjs scripts/workflow-auto-provenance.test.mjs scripts/workflow-auto-audio-provenance.test.mjs scripts/workflow-auto-video-provenance.test.mjs scripts/workflow-auto-control-provenance.test.mjs scripts/workflow-auto-masked-image-provenance.test.mjs scripts/retained-native-text-provenance.test.mjs scripts/retained-native-direct-image-provenance.test.mjs scripts/retained-native-modular-image-provenance.test.mjs scripts/canonical-runtime-hints.test.mjs scripts/hardware-qualification.test.mjs scripts/hardware-execution-device.test.mjs scripts/hardware-runtime-identity.test.mjs scripts/release-qualification-policy.test.mjs scripts/resource-qualification.test.mjs scripts/route-resource-qualification.test.mjs scripts/resource-qualification-campaign.test.mjs scripts/template-qualification.test.mjs scripts/release-qualification-campaign.test.mjs", - "test:release-contract": "node --test scripts/backend-installer-contract.test.mjs scripts/backend-node-registry.test.mjs scripts/release-contract.test.mjs scripts/release-candidate-report.test.mjs scripts/template-asset-release-contract.test.mjs scripts/builtin-media-qualification.test.mjs scripts/input-bound-model-evidence.test.mjs scripts/video-upscale-evidence.test.mjs scripts/layer-decomposition-evidence.test.mjs scripts/canonical-image-accounting.test.mjs scripts/marigold-preview-evidence.test.mjs scripts/private-speech-evidence.test.mjs scripts/retained-speech-gallery-evidence.test.mjs scripts/private-image-edit-evidence.test.mjs scripts/image-edit-source-binding.test.mjs scripts/control-inpaint-evidence.test.mjs scripts/saved-control-image-evidence.test.mjs scripts/prompt-variant-evidence.test.mjs scripts/retained-template-association.test.mjs scripts/retained-gallery-release.test.mjs scripts/saved-workflow-compatibility.test.mjs", + "test:release-contract": "node --test scripts/backend-installer-contract.test.mjs scripts/backend-node-registry.test.mjs scripts/release-contract.test.mjs scripts/release-candidate-report.test.mjs scripts/template-asset-release-contract.test.mjs scripts/builtin-media-qualification.test.mjs scripts/input-bound-model-evidence.test.mjs scripts/video-upscale-evidence.test.mjs scripts/layer-decomposition-evidence.test.mjs scripts/canonical-image-accounting.test.mjs scripts/marigold-preview-evidence.test.mjs scripts/private-speech-evidence.test.mjs scripts/retained-speech-gallery-evidence.test.mjs scripts/private-image-edit-evidence.test.mjs scripts/image-edit-source-binding.test.mjs scripts/control-inpaint-evidence.test.mjs scripts/saved-control-image-evidence.test.mjs scripts/saved-vace-composite-evidence.test.mjs scripts/prompt-variant-evidence.test.mjs scripts/retained-template-association.test.mjs scripts/retained-gallery-release.test.mjs scripts/saved-workflow-compatibility.test.mjs", "test:live-backend-contract": "node scripts/live-backend-contract.mjs", "test:gallery-harness": "node --test scripts/template-gallery-harness.test.mjs scripts/source-video-timing.test.mjs scripts/retained-layer-sheet.test.mjs scripts/template-gallery-maintainer-acceptance.test.mjs scripts/template-recipe-history.test.mjs scripts/release-showcase-scope.test.mjs scripts/template-input-roles.test.mjs", "test:gallery-runner": "node --test scripts/template-gallery-runner.test.mjs && npm run test:demo-tools", diff --git a/scripts/prompt-variant-evidence.mjs b/scripts/prompt-variant-evidence.mjs index 24d4698d..45f1ba72 100644 --- a/scripts/prompt-variant-evidence.mjs +++ b/scripts/prompt-variant-evidence.mjs @@ -588,7 +588,7 @@ const latteVideoRoute = { modelType: 'LattePipeline', modelRepo: 'maxin-cn/Latte-1', modelRevision: '0653024365272f061fc44d1078134df22842b687', - previousExpertFamily: null, + previousExpertFamily: 'WanAnimatePipeline', sourceFingerprint: mochiVideoRoute.sourceFingerprint, bindNegativePrompt: true, }; diff --git a/scripts/release-contract-core.mjs b/scripts/release-contract-core.mjs index ca180ac9..8de94ff4 100644 --- a/scripts/release-contract-core.mjs +++ b/scripts/release-contract-core.mjs @@ -219,6 +219,7 @@ export { canonicalAccountingExecutionPlan } from './live-proof-provenance.mjs'; const reviewedReplacementSources = new Map([ ['WanImageToVideoPipeline:image_to_video', 'wan_22_i2v_seed_vault'], ['WanTI2VPipeline:text_to_video', 'wan_22_ti2v_5b_seed_vault'], + ['WanVACEPipeline:video_inpaint', 'wan_vace_masked_object_replace'], ]); export function isReviewedReplacementSource(manifest, authoring) { @@ -854,6 +855,10 @@ export async function readCanonicalWorkflowEvidence({ clientRoot, backendRoot, w const evidence = JSON.parse(descriptorBytes.toString('utf8')); assert.equal(evidence.schemaVersion, 1); assert.equal(evidence.workflowId, workflowId); + if (workflowId === 'WanVACEPipeline:video_inpaint' && evidence.format === 'modiff.private.saved-vace-composite.v1') { + const { readSavedVaceCompositeEvidence } = await import('./saved-vace-composite-evidence.mjs'); + return readSavedVaceCompositeEvidence({ manifest, graph, authoring, artifact, evidencePath }); + } if ( workflowId === 'QwenImageLayeredPipeline:layer_decomposition' && evidence.format === 'modiff.private.native-layer-decomposition.v1' diff --git a/scripts/saved-vace-composite-evidence.mjs b/scripts/saved-vace-composite-evidence.mjs new file mode 100644 index 00000000..3d31891c --- /dev/null +++ b/scripts/saved-vace-composite-evidence.mjs @@ -0,0 +1,223 @@ +import assert from 'node:assert/strict'; +import { createHash } from 'node:crypto'; +import { readFileSync, realpathSync } from 'node:fs'; +import { dirname } from 'node:path'; +import { canonicalJsonHash } from './canonical-json.mjs'; +import { backendContractIdentity, canonicalGraphIdentity, normalizeBackendRuntime } from './live-proof-provenance.mjs'; +import { validateNativeVariantOutput } from './native-variant-run-evidence.mjs'; +import { canonicalWorkflowAuthoringContract, readCanonicalEvidenceFile } from './release-contract-core.mjs'; +import { decodedMediaHash, technicalMediaErrors } from './template-gallery-harness.mjs'; + +const savedGraphHash = 'sha256:canonical-graph-v1:5b7ac5d2442e6c92e28ee9bff7e02847c3de46dc2570e5d7eb779583f186fc0c'; +const savedSourceFingerprint = + 'sha256:backend-source-v1:438519cbac050bb30e69d86506f4510f260d790899896038d9707a5edd488e95'; +const savedOutputHash = 'sha256:bytes:a90aff3b61c664b51073574cc6c12efa894f45b88226637b254c9d81a53aad87'; +const replayedRegistryHash = '9f1427b04388e4139fe0123f77bb4b01a312bff4554ea60c2495511ef6f00512'; +const sha256 = (bytes) => createHash('sha256').update(bytes).digest('hex'); + +export function verifySavedVaceTaskIdentity(queue, task, output) { + assert.equal(queue.status, 'running'); + assert.equal(task.status, 'completed'); + assert.ok(queue.started_at <= queue.updated_at && queue.updated_at < task.completed_at); + for (const field of [ + 'task_id', + 'sid', + 'attempt_index', + 'client_run_id', + 'run_input_hash', + 'workflow_tab_id', + 'workflow_canvas_epoch', + ]) { + assert.notEqual(queue[field], undefined, field); + assert.equal(queue[field], task[field], field); + } + assert.equal(output.taskId, task.task_id); + assert.equal(output.runInputHash, task.run_input_hash); + assert.equal(output.clientRunId, task.client_run_id); + assert.equal(output.attemptIndex, task.attempt_index); +} + +// The archived server records both ends of this specific task. They preserve +// the prepared graph and inputs. The original dispatch and event are absent. +export async function readSavedVaceCompositeEvidence({ manifest, graph, authoring, artifact, evidencePath }) { + const target = canonicalWorkflowAuthoringContract(manifest, graph, authoring, artifact); + assert.equal(target.workflowId, 'WanVACEPipeline:video_inpaint'); + const descriptorBytes = readFileSync(evidencePath); + const evidence = JSON.parse(descriptorBytes); + assert.equal(evidence.workflowId, target.workflowId); + const root = dirname(realpathSync(evidencePath)); + const retainedFiles = []; + const read = (ref, limit) => { + const result = readCanonicalEvidenceFile(root, ref, limit); + retainedFiles.push(ref); + return result; + }; + const json = (ref) => JSON.parse(read(ref).bytes); + const run = json(evidence.run); + const [output] = run.outputs; + assert.equal(run.outputs.length, 1); + const { task } = run; + verifySavedVaceTaskIdentity(json(evidence.queue).current, task, output); + assert.equal(output.modelType, target.modelType); + assert.equal(output.mode, target.task); + const source = task.runtimeFingerprint.backendSource; + assert.deepEqual(json(evidence.health).backend_source, source); + assert.equal(source.fingerprint, savedSourceFingerprint); + const sourceManifest = json(evidence.sourceManifest); + const sourceFiles = Object.entries(sourceManifest.files) + .filter( + ([path]) => + /^(main\.py|pyproject\.toml)$/u.test(path) || + (/^(modiff|modules|utils)\/.+\.(py|toml|ini)$/iu.test(path) && + path.split('/').every((part) => !part.startsWith('.') && part !== '__pycache__')), + ) + .map(([path, { sha256 }]) => ({ path, sha256 })) + .sort((left, right) => (left.path < right.path ? -1 : 1)); + assert.equal(sourceFiles.length, source.fileCount); + assert.equal( + 'sha256:backend-source-v1:' + canonicalJsonHash({ files: sourceFiles, gitCommit: source.gitCommit }), + savedSourceFingerprint, + ); + + const registry = read(evidence.nodes); + const replay = json(evidence.registryReplay); + assert.equal(replay.nodeHash, replayedRegistryHash); + assert.equal(sha256(registry.bytes), replayedRegistryHash); + assert.equal(replay.nodeBytes, registry.bytes.length); + assert.equal(replay.sourceFingerprint, savedSourceFingerprint); + assert.equal(replay.fileCount, source.fileCount); + assert.equal(replay.modelRuns, 0); + assert.equal(replay.python, task.runtimeFingerprint.packages.python); + assert.match(replay.accelerator, /MI300X/u); + for (const name of ['diffusers', 'transformers', 'peft', 'accelerate', 'safetensors', 'torch']) { + assert.equal(replay.versions[name], task.runtimeFingerprint.packages[name], name); + } + const api = output.apiGraphSnapshot; + const identity = canonicalGraphIdentity(api); + assert.equal(identity.hash, savedGraphHash); + const nodes = JSON.parse(registry.bytes); + assert.ok(identity.canonicalGraph.nodes.every(({ module, action }) => nodes.nodes[`${module}.${action}`])); + const backendContract = backendContractIdentity(nodes, identity.canonicalGraph); + const entry = (module, action) => { + const found = Object.entries(api.nodes).filter(([, node]) => node.module === module && node.action === action); + assert.equal(found.length, 1); + return found[0]; + }; + const [loaderId, loader] = entry('modules.DiffusersVideo', 'LoadPipeline'); + const [upscalerId, upscaler] = entry('modules.Spandrel', 'Upscaler'); + assert.deepEqual( + [loader, upscaler].map(({ params }) => ({ + repoId: params.model_id.value.value, + revision: params.revision?.value ?? params.model_id.value.revision, + })), + target.modelSet, + ); + const [encoderId, encoder] = entry('modules.DiffusersVideo', 'EncodeInputs'); + const sourceId = api.nodes[encoder.params.video.sourceId].params.video.sourceId; + const maskId = api.nodes[encoder.params.mask.sourceId].params.mask.sourceId; + const referenceId = encoder.params.reference_images.sourceId; + assert.equal(new Set([sourceId, maskId, referenceId]).size, 3); + const [compositeId, composite] = entry('modules.Video', 'MaskedComposite'); + assert.equal(composite.params.source.sourceId, sourceId); + assert.equal(composite.params.generated.sourceId, upscalerId); + assert.equal(composite.params.mask.sourceId, encoder.params.mask.sourceId); + const [exportId, exporter] = entry('modules.Video', 'Export'); + assert.equal(exporter.params.video.sourceId, compositeId); + assert.equal(output.nodeId, exportId); + + const resolved = output.resolvedExecutionInputs; + assert.equal(resolved.taskId, task.task_id); + assert.equal(resolved.attemptIndex, task.attempt_index); + assert.equal(resolved.truncated, false); + const fields = (id) => resolved.nodes.find(({ nodeId }) => nodeId === id).fields; + assert.equal(fields(loaderId).revision.value, target.modelSet[0].revision); + assert.equal(fields(loaderId).model_id.value, target.modelSet[0].repoId); + assert.equal(fields(upscalerId).model_id.value, target.modelSet[1].repoId); + assert.equal(fields(encoderId).prompt.value, encoder.params.prompt.value); + assert.equal(fields(encoderId).executed_task.value, target.task); + assert.equal(fields(exportId).fps.value, 16); + const sourceFile = read(evidence.sourceVideo, 128 * 1024 * 1024); + read(evidence.maskVideo); + read(evidence.referenceImage); + const inputLedger = json(evidence.inputLedger).inputs; + const proof = json(evidence.mediaReplay); + for (const [index, ref] of [evidence.sourceVideo, evidence.maskVideo, evidence.referenceImage].entries()) { + assert.equal(inputLedger[index].sha256, ref.sha256); + assert.equal(inputLedger[index].bytes, ref.bytes); + } + assert.deepEqual(fields(referenceId).source_hashes.value, [evidence.referenceImage.sha256]); + assert.equal(proof.sourceFileSha256, evidence.sourceVideo.sha256); + assert.equal(proof.maskFileSha256, evidence.maskVideo.sha256); + assert.equal(proof.referenceFileSha256, evidence.referenceImage.sha256); + assert.equal(proof.normalizedSourcePixelSha256, fields(encoderId).video_source_sha256.value); + assert.equal(proof.normalizedSourceFrames, fields(encoderId).video_source_frames.value); + assert.equal(proof.originalNormalizedInputVerified, true); + + const rendered = read(evidence.output, 64 * 1024 * 1024); + assert.equal(output.mediaHash, savedOutputHash); + assert.equal(proof.outputFileSha256, savedOutputHash); + assert.equal('sha256:bytes:' + evidence.output.sha256, savedOutputHash); + validateNativeVariantOutput({ + task, + output, + bytes: rendered.bytes, + displayType: 'video', + contentType: 'video/mp4', + outputRef: { file: evidence.output, mediaType: 'video', backendPath: output.backendMediaPath }, + }); + const decoded = await decodedMediaHash(rendered.file, 'video'); + const geometry = { width: 1664, height: 960, frames: 161, durationSeconds: 161 / 16 }; + assert.deepEqual(technicalMediaErrors(decoded, geometry, 'video'), []); + assert.equal(decoded.hasAudio, false); + assert.equal(decoded.fps, 16); + const measurement = task.runtimeMeasurement; + assert.equal(measurement.backend, 'rocm'); + assert.equal(measurement.peakMeasurementVersion, 2); + assert.ok(measurement.elapsedSeconds > 0 && measurement.peakAllocatedBytes > 0); + + const receipt = { + schemaVersion: 1, + format: 'modiff.canonical-workflow-run-receipt.v1', + proofKind: 'real_backend_input_bound_model_variant', + ...target, + taskId: task.task_id, + outputId: output.id, + capturedAt: new Date(task.completed_at * 1000).toISOString(), + graphHash: identity.hash, + resourceCandidateId: null, + runtimeFingerprint: normalizeBackendRuntime(task.runtimeFingerprint).lockFingerprint, + backendSourceFingerprint: source.fingerprint, + backendContractFingerprint: backendContract.fingerprint, + outputHash: output.mediaHash, + executionDurationSeconds: measurement.elapsedSeconds, + peakMemoryBytes: measurement.peakAllocatedBytes, + canonicalDefaultsExecuted: false, + inputBinding: { + nodeId: sourceId, + field: 'file', + sha256: evidence.sourceVideo.sha256, + byteSize: sourceFile.bytes.length, + normalizedVideoSha256: proof.normalizedSourcePixelSha256, + }, + maskBinding: { nodeId: maskId, field: 'file', sha256: evidence.maskVideo.sha256 }, + referenceBindings: [{ nodeId: referenceId, field: 'file', inputIndex: 0, sha256: evidence.referenceImage.sha256 }], + promptBinding: { nodeId: encoderId, field: 'prompt', sha256: sha256(encoder.params.prompt.value) }, + decodedOutput: { kind: 'video', ...geometry, fps: decoded.fps, hash: decoded.hash }, + observationLimits: { + originalRunningQueueMatched: true, + originalCompletionRecordMatched: true, + independentDispatchAcknowledgment: false, + independentCompletionEvent: false, + fullConsumedFieldAccounting: false, + physicalPlatformQualification: false, + }, + qualificationClaims: { + publicTemplate: false, + qualityApproved: false, + rightsApproved: false, + hardwareQualified: false, + modelResourceQualified: false, + }, + }; + return { descriptorBytes, retainedFiles, evidence, evidenceRoot: root, receipt }; +} diff --git a/scripts/saved-vace-composite-evidence.test.mjs b/scripts/saved-vace-composite-evidence.test.mjs new file mode 100644 index 00000000..2d6beba1 --- /dev/null +++ b/scripts/saved-vace-composite-evidence.test.mjs @@ -0,0 +1,31 @@ +import assert from 'node:assert/strict'; +import { test } from 'node:test'; +import { verifySavedVaceTaskIdentity } from './saved-vace-composite-evidence.mjs'; + +test('archived VACE output joins the same native task and attempt', () => { + const queue = { + task_id: 'original-task', + sid: 'worker-session', + attempt_index: 0, + client_run_id: 'client-run', + run_input_hash: 'ordered-inputs', + workflow_tab_id: 'original-workflow', + workflow_canvas_epoch: 4, + status: 'running', + started_at: 1, + updated_at: 2, + }; + const task = { ...queue, status: 'completed', completed_at: 3 }; + const output = { + taskId: task.task_id, + runInputHash: task.run_input_hash, + clientRunId: task.client_run_id, + attemptIndex: task.attempt_index, + }; + assert.doesNotThrow(() => verifySavedVaceTaskIdentity(queue, task, output)); + assert.throws(() => verifySavedVaceTaskIdentity({ ...queue, attempt_index: 1 }, task, output)); + assert.throws(() => verifySavedVaceTaskIdentity({ ...queue, sid: 'different-session' }, task, output)); + assert.throws(() => verifySavedVaceTaskIdentity({ ...queue, updated_at: 4 }, task, output)); + assert.throws(() => verifySavedVaceTaskIdentity(queue, { ...task, status: 'failed' }, output)); + assert.throws(() => verifySavedVaceTaskIdentity(queue, task, { ...output, runInputHash: 'different-inputs' })); +}); From ac83c88f2be19b8ee1c70015d780fdf48e77b059 Mon Sep 17 00:00:00 2001 From: Sourav Das Date: Wed, 25 Nov 2026 15:39:26 +0530 Subject: [PATCH 377/440] Verify the saved Chroma feathered outpaint run --- scripts/private-image-edit-evidence.mjs | 23 ++++++++++++++--- scripts/private-image-edit-evidence.test.mjs | 27 ++++++++++++++++++++ 2 files changed, 47 insertions(+), 3 deletions(-) diff --git a/scripts/private-image-edit-evidence.mjs b/scripts/private-image-edit-evidence.mjs index 190d7739..f25e758d 100644 --- a/scripts/private-image-edit-evidence.mjs +++ b/scripts/private-image-edit-evidence.mjs @@ -183,6 +183,12 @@ const editRoutes = new Map([ loaderClass: 'ChromaInpaintPipeline', sourceFingerprint: 'sha256:backend-source-v1:70bc1ff7fe61307be52cfda86b38c6400f2156cbc8240a489b62ff19a93d58dc', originalRegistryHash: '67979c2308c670f70d5d4fd38672be0a3ccd3cae7f083d1c7e7ae2e2169f90e8', + alternateSourceRegistryPair: { + sourceFingerprint: 'sha256:backend-source-v1:ee86f26ee410419fae168f4380029a01d302ec0fd0607308d9b1e40ae2ace7f7', + registryHash: '100a85d1bff56ef6d0bf236fb4a69f869b3c909a7a4ec31683bbc7f24d24d80c', + // This worker records the original upload and native load hashes and dimensions. + nativeSourceMedia: false, + }, canvasVariant: [], }, ], @@ -1262,6 +1268,12 @@ export async function readPrivateImageEditEvidence({ clientRoot, manifest, graph hasNativeSnapshot || route.serverRetainedOutput ? validateNativeVariantRun : validateLateNativeImageVariantRun; const { task, output, hints } = validateRun(runOptions); same(hints.workflowSnapshot.studioForm, output.formSnapshot); + const alternate = + savedImage && + route.alternateSourceRegistryPair && + task.runtimeFingerprint.backendSource?.fingerprint === route.alternateSourceRegistryPair.sourceFingerprint + ? route.alternateSourceRegistryPair + : null; const sourceProjection = !savedImage || route.samplerSourceProjection === true; let sourceBinding; if (!sourceProjection) { @@ -1269,7 +1281,7 @@ export async function readPrivateImageEditEvidence({ clientRoot, manifest, graph bound, output, { input, maskInput, references }, - route, + alternate ? { ...route, nativeSourceMedia: alternate.nativeSourceMedia } : route, read, json, evidence, @@ -1323,10 +1335,14 @@ export async function readPrivateImageEditEvidence({ clientRoot, manifest, graph }); same(source.blockers, []); if (savedImage) { - assert.equal(source.identity.fingerprint, route.sourceFingerprint); + assert.equal(source.identity.fingerprint, alternate?.sourceFingerprint ?? route.sourceFingerprint); } if (route.originalRegistryHash) { - assert.equal(sha256(nodes.bytes), route.originalRegistryHash); + assert.equal( + sha256(nodes.bytes), + alternate?.registryHash ?? route.originalRegistryHash, + 'The node registry does not match the saved runtime source.', + ); } if (replayedRegistry) { const replay = json(evidence.registryReplay); @@ -1413,6 +1429,7 @@ export async function readPrivateImageEditEvidence({ clientRoot, manifest, graph ...(bound.canvas ? { canvasSizeObserved: true, canvasPixelsObserved: false, derivedMaskPixelsObserved: false } : {}), + ...(alternate?.nativeSourceMedia === false ? { fullSourceDecodeRecordObserved: false } : {}), ...(masked ? { maskByteWitness: savedImage ? 'native-load-and-upload-with-typed-wire' : 'native-load-consumer-and-upload' } : {}), diff --git a/scripts/private-image-edit-evidence.test.mjs b/scripts/private-image-edit-evidence.test.mjs index 5c99558b..334c96e6 100644 --- a/scripts/private-image-edit-evidence.test.mjs +++ b/scripts/private-image-edit-evidence.test.mjs @@ -566,6 +566,33 @@ for (const [workflowId, variable, hasMask, unobserved] of [ } const descriptor = JSON.parse(original.descriptorBytes); const changedPath = join(root, 'evidence.json'); + if (receipt.observationLimits.fullSourceDecodeRecordObserved === false) { + const changed = structuredClone(descriptor); + const capturePath = join(root, changed.capture.path); + const captureBytes = readFileSync(capturePath); + const capture = JSON.parse(captureBytes); + const nodesPath = join(root, capture.nodes.path); + const nodesBytes = readFileSync(nodesPath); + const replacement = Buffer.concat([nodesBytes, Buffer.from('\n')]); + Object.assign(capture.nodes, { + bytes: replacement.length, + sha256: createHash('sha256').update(replacement).digest('hex'), + }); + const changedCapture = Buffer.from(JSON.stringify(capture)); + Object.assign(changed.capture, { + bytes: changedCapture.length, + sha256: createHash('sha256').update(changedCapture).digest('hex'), + }); + writeFileSync(nodesPath, replacement); + writeFileSync(capturePath, changedCapture); + writeFileSync(changedPath, JSON.stringify(changed)); + await assert.rejects( + readCanonicalWorkflowEvidence({ ...args, evidencePath: changedPath }), + /node registry does not match the saved runtime source/u, + ); + writeFileSync(nodesPath, nodesBytes); + writeFileSync(capturePath, captureBytes); + } if (hostFileWitness) { const changed = structuredClone(descriptor); const path = join(root, changed.hostInputFiles.path); From bea944eaea6da56894b2fa1a0b5dec0391f9a214 Mon Sep 17 00:00:00 2001 From: Sourav Das Date: Wed, 25 Nov 2026 16:11:39 +0530 Subject: [PATCH 378/440] Verify reviewed video adjustments against saved native media --- docs/template-gallery-assets.md | 8 +++ scripts/retained-gallery-release.mjs | 32 ++++++++++++ scripts/retained-gallery-release.test.mjs | 63 ++++++++++++++++++++++- 3 files changed, 102 insertions(+), 1 deletion(-) diff --git a/docs/template-gallery-assets.md b/docs/template-gallery-assets.md index e9fb866a..e6ab895c 100644 --- a/docs/template-gallery-assets.md +++ b/docs/template-gallery-assets.md @@ -830,6 +830,14 @@ skeletons. Release qualification links each row to its verified Gallery template. The retained receipt keeps the absent native resource candidate and declared observation limits. It grants no broader platform or Auto qualification. +A retained video can carry a separately reviewed delivery adjustment. Preserve +the native output and reproduce the adjustment from that output before review. +Record the adjustment and both encoded identities in the pinned association. +Exposure correction preserves the native silent stream's geometry and cadence. +Audio gain preserves the exact decoded video, sample rate and channel count. +The edited streams must differ from their native counterparts. The normal +media checks, quality review and exact-file rights apply to the delivery file. + `npm run gallery:verify` verifies locally materialized bytes against the active source descriptor. For an immutable Hugging Face subset, it requires the exact complete storage manifest and rights ledger, verifies every included file's diff --git a/scripts/retained-gallery-release.mjs b/scripts/retained-gallery-release.mjs index 69f6ff18..58aa1c08 100644 --- a/scripts/retained-gallery-release.mjs +++ b/scripts/retained-gallery-release.mjs @@ -16,6 +16,34 @@ import { verifyRetainedSpeechGalleryEvidence } from './retained-speech-gallery-e const same = (actual, expected, label) => assert.deepEqual(actual, expected, label); +export function assertRetainedVideoAdjustment(nativeReceipt, output, label) { + const { videoAdjustment, video } = output; + const source = nativeReceipt.decodedOutput; + assert.equal(source.kind, 'video', label); + assert.equal(output.sourceOutputHash, nativeReceipt.outputHash, label); + assert.notEqual(output.outputEncodedSha256, nativeReceipt.outputHash, label); + assert.equal(videoAdjustment.schemaVersion, 1, label); + assert.equal(videoAdjustment.sourceVideoHash, source.hash, label); + for (const key of ['width', 'height', 'frames', 'fps', 'durationSeconds']) { + assert.equal(video[key], source[key], label); + } + if (videoAdjustment.kind === 'exposure_deflicker') { + assert.equal(source.audio, undefined, label); + assert.equal(video.hasAudio, false, label); + assert.equal(video.audio ?? null, null, label); + assert.equal(videoAdjustment.sourceAudioHash, undefined, label); + assert.notEqual(output.decodedMediaHash, source.hash, label); + } else { + assert.equal(videoAdjustment.kind, 'audio_gain', label); + assert.ok(source.audio?.hash && video.audio?.hash && video.hasAudio, label); + assert.equal(videoAdjustment.sourceAudioHash, source.audio.hash, label); + assert.equal(output.decodedMediaHash, source.hash, label); + assert.equal(video.audio.sourceSampleRate, source.audio.sourceSampleRate, label); + assert.equal(video.audio.channels, source.audio.channels, label); + assert.notEqual(video.audio.hash, source.audio.hash, label); + } +} + function assertRetainedNativeIdentity(association, entry, nativeReceipt, label) { const { observedExecution, output } = association; const expected = { @@ -166,6 +194,10 @@ function assertRetainedBatchEvidence({ decodedAudiovisualMediaHash(decodedMediaHash, entry.decodedAudioHash) ?? undefined, label, ); + if (association.output.videoAdjustment) { + assertRetainedVideoAdjustment(nativeReceipt, association.output, label); + return; + } if (recipe.workflowId === 'SpandrelVideoUpscale:video_upscale') { const { width, height, frames, fps } = videoMetadata; same(nativeReceipt.decodedOutput, { hash: decodedMediaHash, width, height, frameCount: frames, fps }, label); diff --git a/scripts/retained-gallery-release.test.mjs b/scripts/retained-gallery-release.test.mjs index 05956607..1790b55f 100644 --- a/scripts/retained-gallery-release.test.mjs +++ b/scripts/retained-gallery-release.test.mjs @@ -5,13 +5,74 @@ import { join, resolve } from 'node:path'; import { test } from 'node:test'; import { canonicalJsonHash } from './canonical-json.mjs'; import { canonicalWorkflowContract } from './release-contract-core.mjs'; -import { createRetainedGalleryReleaseReader, verifiedRetainedGalleryAssetIndex } from './retained-gallery-release.mjs'; +import { + assertRetainedVideoAdjustment, + createRetainedGalleryReleaseReader, + verifiedRetainedGalleryAssetIndex, +} from './retained-gallery-release.mjs'; import { createHash } from 'node:crypto'; import { validateRetainedGalleryProvenance, verifyRetainedApprovedFiles } from './retained-gallery-provenance.mjs'; import { loadTemplateRuntime } from './template-gallery-harness.mjs'; const hash = (value) => `sha256:canonical-json:${canonicalJsonHash(value)}`; +test('an exposure-corrected retained video stays bound to its silent source and frame cadence', () => { + const video = { width: 512, height: 512, frames: 16, fps: 8, durationSeconds: 2 }; + const native = { outputHash: 'native-file', decodedOutput: { kind: 'video', hash: 'native-video', ...video } }; + const output = { + sourceOutputHash: 'native-file', + outputEncodedSha256: 'corrected-file', + decodedMediaHash: 'corrected-video', + video: { ...video, hasAudio: false }, + videoAdjustment: { schemaVersion: 1, kind: 'exposure_deflicker', sourceVideoHash: 'native-video' }, + }; + assert.doesNotThrow(() => assertRetainedVideoAdjustment(native, output)); + assert.doesNotThrow(() => + assertRetainedVideoAdjustment(native, { ...output, video: { ...output.video, audio: null } }), + ); + for (const modification of [ + { sourceOutputHash: 'different-file' }, + { outputEncodedSha256: 'native-file' }, + { decodedMediaHash: 'native-video' }, + { video: { ...output.video, frames: 15 } }, + { video: { ...output.video, fps: 16 } }, + { video: { ...output.video, hasAudio: true } }, + { video: { ...output.video, audio: { hash: 'unexpected-audio' } } }, + { videoAdjustment: { ...output.videoAdjustment, sourceVideoHash: 'different-video' } }, + { videoAdjustment: { ...output.videoAdjustment, kind: 'replace_video' } }, + ]) { + assert.throws(() => assertRetainedVideoAdjustment(native, { ...output, ...modification })); + } +}); + +test('an audio-gain adjustment retains the exact video and recorded original audio', () => { + const video = { width: 768, height: 512, frames: 81, fps: 24, durationSeconds: 3.38 }; + const audio = { sourceSampleRate: 24000, channels: 2, hash: 'native-audio' }; + const native = { outputHash: 'native-file', decodedOutput: { kind: 'video', hash: 'native-video', ...video, audio } }; + const output = { + sourceOutputHash: 'native-file', + outputEncodedSha256: 'adjusted-file', + decodedMediaHash: 'native-video', + video: { ...video, hasAudio: true, audio: { ...audio, hash: 'adjusted-audio' } }, + videoAdjustment: { + schemaVersion: 1, + kind: 'audio_gain', + sourceVideoHash: 'native-video', + sourceAudioHash: audio.hash, + }, + }; + assert.doesNotThrow(() => assertRetainedVideoAdjustment(native, output)); + for (const modification of [ + { decodedMediaHash: 'changed-video' }, + { video: { ...output.video, audio } }, + { video: { ...output.video, audio: { ...output.video.audio, sourceSampleRate: 48000 } } }, + { video: { ...output.video, audio: { ...output.video.audio, channels: 1 } } }, + { videoAdjustment: { ...output.videoAdjustment, sourceAudioHash: 'different-audio' } }, + ]) { + assert.throws(() => assertRetainedVideoAdjustment(native, { ...output, ...modification })); + } +}); + test('retained registration binds the exact approved review, provenance and mask files', () => { const archive = new Map([ ['/template-gallery/reviews/example.original-review.json', Buffer.from('{"review":"accepted"}\n')], From 4e435956cee7f8c9cc47eae5532aa51897352e98 Mon Sep 17 00:00:00 2001 From: Sourav Das Date: Wed, 25 Nov 2026 16:34:54 +0530 Subject: [PATCH 379/440] Verify the retained source-conditioned LTX stream run --- scripts/prompt-variant-evidence.mjs | 24 +++++++++++- scripts/prompt-variant-evidence.test.mjs | 47 ++++++++++++++++++++---- 2 files changed, 63 insertions(+), 8 deletions(-) diff --git a/scripts/prompt-variant-evidence.mjs b/scripts/prompt-variant-evidence.mjs index 45f1ba72..da4aa1bd 100644 --- a/scripts/prompt-variant-evidence.mjs +++ b/scripts/prompt-variant-evidence.mjs @@ -269,6 +269,18 @@ const ltx2AudioVideoRoutes = [ imageInputPort: 'reference_images', bindsVideoUpload, originalVideoFrames: bindsVideoUpload ? 25 : undefined, + ...(bindsVideoUpload && { + reviewedVideoSources: new Map([ + // The retained stream recipe conditions at 0.60 to preserve the moving creek. + [ + '3b5e40ac2bf76236d1f901a7a2522addd7c4a1b2701bd89a33c1506b1523bc38', + { + settings: [['generator', 'strength', 0.8, 0.6]], + previousExpertFamily: 'LTXI2VLongMultiPromptPipeline', + }, + ], + ]), + }), executedTask: task, previousExpertFamily: undefined, chain: [ @@ -1424,6 +1436,7 @@ export async function readPromptVariantEvidence({ clientRoot, manifest, graph, a Number(Boolean(hasSourceInput)) + Number(Boolean(profile.bindsVideoGuide)) + videoConditioners.length, ); const suppliedInput = hasSourceInput ? evidence.inputs[0] : undefined; + const reviewedVideoSource = profile.reviewedVideoSources?.get(suppliedInput?.file?.sha256); const suppliedGuide = profile.bindsVideoGuide ? evidence.inputs.at(-1) : undefined; const suppliedVideos = videoConditioners.length ? evidence.inputs.slice(1) : []; for (const input of evidence.inputs) { @@ -1460,7 +1473,7 @@ export async function readPromptVariantEvidence({ clientRoot, manifest, graph, a run.workflow_snapshot, ]); const bound = bindPromptVariant( - profile, + reviewedVideoSource ? { ...profile, reviewedSettings: reviewedVideoSource.settings } : profile, expectedApi, creator.apiGraph, submitted, @@ -1500,6 +1513,15 @@ export async function readPromptVariantEvidence({ clientRoot, manifest, graph, a ...(profile.nativeJointAudio && { validatePreparation: (preparation) => { const previous = preparation.previousModelFamily; + if (reviewedVideoSource && previous === reviewedVideoSource.previousExpertFamily) { + assert.equal(preparation.performed, true); + assert.ok(preparation.cleanup?.released?.models > 0, 'Expected the previous LTX model release.'); + validateImagePromptPreparation(preparation, { + modelType: profile.modelType, + previousExpertFamily: reviewedVideoSource.previousExpertFamily, + }); + return; + } assert.ok([null, 'LTX2Pipeline', 'LTX2ConditionPipeline'].includes(previous)); validateUnmodifiedExpertPreparation(preparation, profile.modelType, previous); }, diff --git a/scripts/prompt-variant-evidence.test.mjs b/scripts/prompt-variant-evidence.test.mjs index 9edf2612..111de6c4 100644 --- a/scripts/prompt-variant-evidence.test.mjs +++ b/scripts/prompt-variant-evidence.test.mjs @@ -504,6 +504,18 @@ for (const [workflowId, variable, kind, proofKind = 'real_backend_prompt_bound_m 'video', 'real_backend_input_bound_model_variant', ], + [ + 'LTX2ConditionPipeline:video_to_video', + 'MODIFF_LTX2_STREAM_EVIDENCE', + 'video', + 'real_backend_input_bound_model_variant', + ], + [ + 'LTX2ConditionPipeline:video_to_video', + 'MODIFF_LTX2_TRAM_EVIDENCE', + 'video', + 'real_backend_input_bound_model_variant', + ], ]) { const saved = process.env[variable]; test(`${workflowId} retained ${kind} prompt variant verifies without new execution`, { skip: !saved }, async () => { @@ -552,6 +564,25 @@ for (const [workflowId, variable, kind, proofKind = 'real_backend_prompt_bound_m } const changedPath = join(temp, 'evidence.json'); const evidence = JSON.parse(original.descriptorBytes); + if (variable === 'MODIFF_LTX2_STREAM_EVIDENCE') { + assert.equal(original.receipt.decodedOutput.frames, 81); + assert.equal(original.receipt.inputBinding.decodedVideo.frames, 25); + assert.equal(original.receipt.observationLimits.normalizedConsumerFramesObserved, false); + const changedPreparation = structuredClone(evidence); + const runPath = join(temp, evidence.runDetail.path); + const savedRun = readFileSync(runPath); + const run = JSON.parse(savedRun); + run.task.runtimePreparation.cleanup.released.models = 0; + const changedRun = Buffer.from(JSON.stringify(run)); + writeFileSync(runPath, changedRun); + Object.assign(changedPreparation.runDetail, { bytes: changedRun.length, sha256: digest(changedRun) }); + writeFileSync(changedPath, JSON.stringify(changedPreparation)); + await assert.rejects( + () => readCanonicalWorkflowEvidence({ ...args, evidencePath: changedPath }), + /Expected the previous LTX model release/u, + ); + writeFileSync(runPath, savedRun); + } if (workflowId === 'AllegroPipeline:text_to_video') { assert.equal(original.receipt.observationLimits.retainedLoaderOffloadFallback, 'sequential_cpu'); assert.equal(original.receipt.decodedOutput.frames, 88); @@ -770,13 +801,15 @@ for (const [workflowId, variable, kind, proofKind = 'real_backend_prompt_bound_m writeFileSync(changedPath, JSON.stringify(substituted)); await assert.rejects( () => readCanonicalWorkflowEvidence({ ...args, evidencePath: changedPath }), - original.receipt.observationLimits.openingImageLoadFieldsObserved - ? /Opening image differs from the retained Load fields/u - : input.sourceValue.startsWith('@data/videos/') - ? /Archived video upload differs/u - : workflowId === 'HuggingFaceAnyToAnyModel:image_to_text' - ? /Source bytes differ from the native image load|Archived authoring requires the exact original capture/u - : /Source bytes differ from the native image load/u, + variable === 'MODIFF_LTX2_STREAM_EVIDENCE' + ? /outside the bound prompt and seed/u + : original.receipt.observationLimits.openingImageLoadFieldsObserved + ? /Opening image differs from the retained Load fields/u + : input.sourceValue.startsWith('@data/videos/') + ? /Archived video upload differs/u + : workflowId === 'HuggingFaceAnyToAnyModel:image_to_text' + ? /Source bytes differ from the native image load|Archived authoring requires the exact original capture/u + : /Source bytes differ from the native image load/u, ); writeFileSync(path, originalBytes); } From c1a0e1ea47cf07c6887a5e03fdd3c870fbb02a6e Mon Sep 17 00:00:00 2001 From: Sourav Das Date: Wed, 25 Nov 2026 16:43:16 +0530 Subject: [PATCH 380/440] Verify the exact Windows lighthouse edit recipe --- scripts/private-image-edit-evidence.mjs | 27 ++++++++++++++------ scripts/private-image-edit-evidence.test.mjs | 27 ++++++++++++++++++++ 2 files changed, 46 insertions(+), 8 deletions(-) diff --git a/scripts/private-image-edit-evidence.mjs b/scripts/private-image-edit-evidence.mjs index f25e758d..638a29f0 100644 --- a/scripts/private-image-edit-evidence.mjs +++ b/scripts/private-image-edit-evidence.mjs @@ -207,6 +207,12 @@ const editRoutes = new Map([ windowsCudaRuntime: true, previousUnmodifiedModelFamily: 'StableDiffusionXLPAGInpaintPipeline', unobservedControls: ['pag_scale', 'pag_adaptive_scale'], + reviewedSourceRecipes: new Map([ + [ + '4cbc984b44c398b6e92b4350513d3543139e9dffe01a38857845c8a7698272c8', + { strengthVariant: { original: 0.8, retained: 0.85 }, previousExpertFamily: 'AnimateLCMPipeline' }, + ], + ]), }, ], [ @@ -1187,6 +1193,7 @@ export async function readPrivateImageEditEvidence({ clientRoot, manifest, graph assert.equal(capture.outputs.length, 1); assert.equal(capture.modelObservations.length, 1); const [input, ...otherInputs] = capture.inputs; + const reviewedSourceRecipe = route.reviewedSourceRecipes?.get(input.file?.sha256); const maskInput = masked ? otherInputs[0] : undefined; const references = masked ? [] : otherInputs; if (referenceCount) { @@ -1226,7 +1233,7 @@ export async function readPrivateImageEditEvidence({ clientRoot, manifest, graph input, maskInput, references, - strengthVariant: route.strengthVariant, + strengthVariant: reviewedSourceRecipe?.strengthVariant ?? route.strengthVariant, canvasVariant: route.canvasVariant, inputPathPrefix: route.inputPathPrefix, nativePngEvidence: nativeUpload && route.format !== SAVED_WEBP_EDIT_FORMAT, @@ -1237,6 +1244,7 @@ export async function readPrivateImageEditEvidence({ clientRoot, manifest, graph directOwners(api, false, masked, Boolean(route.canvasVariant)); same(canonicalGraphIdentity(api), bound.identity, 'A saved visual owner graph differs from the original Run.'); } + const previousExpertFamily = reviewedSourceRecipe?.previousExpertFamily ?? route.previousExpertFamily; const runOptions = { target, expectedFormMode: route.retainedFormMode, @@ -1250,13 +1258,16 @@ export async function readPrivateImageEditEvidence({ clientRoot, manifest, graph graphRequest, graphAcknowledgment, persistedOutput, - validatePreparation: (preparation) => - route.previousExpertFamily - ? validateImagePromptPreparation(preparation, { - modelType: loaderClass, - previousExpertFamily: route.previousExpertFamily, - }) - : validateUnmodifiedExpertPreparation(preparation, loaderClass, route.previousUnmodifiedModelFamily), + validatePreparation: (preparation) => { + if (reviewedSourceRecipe) { + assert.equal(preparation.previousModelFamily, previousExpertFamily); + assert.equal(preparation.performed, true); + assert.ok(preparation.cleanup?.released?.models > 0, 'Expected the previous model release for the saved edit.'); + } + return previousExpertFamily + ? validateImagePromptPreparation(preparation, { modelType: loaderClass, previousExpertFamily }) + : validateUnmodifiedExpertPreparation(preparation, loaderClass, route.previousUnmodifiedModelFamily); + }, }; const hasNativeSnapshot = route.fullNativeSnapshot || (route.fullOrLateNativeSnapshot && run.outputs[0]?.apiGraphSnapshot !== undefined); diff --git a/scripts/private-image-edit-evidence.test.mjs b/scripts/private-image-edit-evidence.test.mjs index 334c96e6..1db56867 100644 --- a/scripts/private-image-edit-evidence.test.mjs +++ b/scripts/private-image-edit-evidence.test.mjs @@ -512,6 +512,12 @@ for (const [workflowId, variable, hasMask, unobserved] of [ false, ['pag_scale', 'pag_adaptive_scale'], ], + [ + 'StableDiffusionXLPAGPipeline:edit_image', + 'MODIFF_SAVED_SDXL_PAG_GRAPHITE_EDIT_EVIDENCE', + false, + ['pag_scale', 'pag_adaptive_scale'], + ], ['ZImageInpaintPipeline:inpaint', 'MODIFF_SAVED_ZIMAGE_REPAIR_EVIDENCE', true, []], ['Flux2KleinInpaintPipeline:inpaint', 'MODIFF_SAVED_FLUX_KLEIN_REPAIR_EVIDENCE', true, []], [ @@ -566,6 +572,27 @@ for (const [workflowId, variable, hasMask, unobserved] of [ } const descriptor = JSON.parse(original.descriptorBytes); const changedPath = join(root, 'evidence.json'); + if (variable === 'MODIFF_SAVED_SDXL_PAG_GRAPHITE_EDIT_EVIDENCE') { + const altered = structuredClone(descriptor); + const path = join(root, altered.graphRequest.path); + const originalRequest = readFileSync(path); + const graph = JSON.parse(originalRequest); + const edit = Object.values(graph.nodes).find(({ action }) => action === 'Edit'); + assert.equal(edit.params.strength.value, 0.85); + edit.params.strength.value = 0.8; + const bytes = Buffer.from(JSON.stringify(graph)); + Object.assign(altered.graphRequest, { + bytes: bytes.length, + sha256: createHash('sha256').update(bytes).digest('hex'), + }); + writeFileSync(path, bytes); + writeFileSync(changedPath, JSON.stringify(altered)); + await assert.rejects( + readCanonicalWorkflowEvidence({ ...args, evidencePath: changedPath }), + /outside its declared file, prompt and reviewed control variant/u, + ); + writeFileSync(path, originalRequest); + } if (receipt.observationLimits.fullSourceDecodeRecordObserved === false) { const changed = structuredClone(descriptor); const capturePath = join(root, changed.capture.path); From f5c215db6d681304973ee4caf52755b23fda396a Mon Sep 17 00:00:00 2001 From: Sourav Das Date: Wed, 25 Nov 2026 16:56:51 +0530 Subject: [PATCH 381/440] Verify the retained scheduled LTX headland recipe --- scripts/prompt-variant-evidence.mjs | 47 +++++++++++++++++++++++- scripts/prompt-variant-evidence.test.mjs | 35 ++++++++++++------ 2 files changed, 69 insertions(+), 13 deletions(-) diff --git a/scripts/prompt-variant-evidence.mjs b/scripts/prompt-variant-evidence.mjs index da4aa1bd..36fb1f49 100644 --- a/scripts/prompt-variant-evidence.mjs +++ b/scripts/prompt-variant-evidence.mjs @@ -381,6 +381,38 @@ const ltxScheduledRoute = { 'temporal_overlap', 'temporal_overlap_condition_strength', ], + reviewedOpeningImages: new Map([ + [ + '51624f59295a77119bf336a63bfc7731d33d6612bc44b15495bddabdfae3ef51', + { + sourceFingerprint: 'sha256:backend-source-v1:b29a5b0d317aaa781ae2a5205b46b518eea5a3d68a214eb0968dba4ac0660af7', + retainedRegistryHash: '648c09b0af74fd0705adebb1b1e5c45d0a3ed41d0a5565fdd535f365664c3dc0', + previousExpertFamily: 'LTX2ConditionPipeline', + retainedBaselineSettings: [], + reviewedSettings: [ + ['generator', 'num_frames', 81, 129], + ['generator', 'strength', 0.8, 0.58], + [ + 'generator', + 'prompt_segments_json', + '', + JSON.stringify([ + { + start_window: 0, + end_window: 0, + text: 'At the same coastal lighthouse, start on the supplied frame. A strong gust runs through the tawny grass in the foreground, bending it right in clear waves. White sea foam swirls around the black rocks on the left. The camera slides right at walking speed, revealing parallax between foreground grass and the stable distant lighthouse. Natural gray dawn, one continuous shot.', + }, + { + start_window: 1, + end_window: 1, + text: 'Continue the unbroken rightward track along the same lighthouse headland. A broad incoming wave breaks bright white over the dark rocks on the left and rolls back as the camera passes the foreground grass. Keep the camera level and the tall white lighthouse steady on the skyline. Camera movement eases toward the end. Coherent coastline, real-time rolling surf.', + }, + ]), + ], + ], + }, + ], + ]), }; const wanAnimateFiles = [ @@ -1348,7 +1380,7 @@ export function validateNativeVideoDelivery( export async function readPromptVariantEvidence({ clientRoot, manifest, graph, authoring, artifact, evidencePath }) { const target = canonicalWorkflowAuthoringContract(manifest, graph, authoring, artifact); const imageRoute = directImagePromptRoutes.find(({ workflowId }) => workflowId === target.workflowId); - const profile = imageRoute + let profile = imageRoute ? { ...imagePromptRoute, ...imageRoute } : [ textRoute, @@ -1436,6 +1468,8 @@ export async function readPromptVariantEvidence({ clientRoot, manifest, graph, a Number(Boolean(hasSourceInput)) + Number(Boolean(profile.bindsVideoGuide)) + videoConditioners.length, ); const suppliedInput = hasSourceInput ? evidence.inputs[0] : undefined; + const reviewedOpeningImage = profile.reviewedOpeningImages?.get(suppliedInput?.file?.sha256); + if (reviewedOpeningImage) profile = { ...profile, ...reviewedOpeningImage }; const reviewedVideoSource = profile.reviewedVideoSources?.get(suppliedInput?.file?.sha256); const suppliedGuide = profile.bindsVideoGuide ? evidence.inputs.at(-1) : undefined; const suppliedVideos = videoConditioners.length ? evidence.inputs.slice(1) : []; @@ -1505,7 +1539,16 @@ export async function readPromptVariantEvidence({ clientRoot, manifest, graph, a } : {}), ...(imageRoute || (generatedVideo && !profile.soundtrack && !profile.nativeJointAudio) || profile === audioLdmRoute - ? { validatePreparation: (preparation) => validateImagePromptPreparation(preparation, profile) } + ? { + validatePreparation: (preparation) => { + if (reviewedOpeningImage) { + assert.equal(preparation.previousModelFamily, profile.previousExpertFamily); + assert.equal(preparation.performed, true); + assert.ok(preparation.cleanup?.released?.models > 0, 'Expected the previous LTX model release.'); + } + validateImagePromptPreparation(preparation, profile); + }, + } : {}), ...(profile === videoRoute || profile === audioRoute ? { validatePreparation: (preparation) => validateUnmodifiedExpertPreparation(preparation, target.modelType) } diff --git a/scripts/prompt-variant-evidence.test.mjs b/scripts/prompt-variant-evidence.test.mjs index 111de6c4..fc193c46 100644 --- a/scripts/prompt-variant-evidence.test.mjs +++ b/scripts/prompt-variant-evidence.test.mjs @@ -504,6 +504,12 @@ for (const [workflowId, variable, kind, proofKind = 'real_backend_prompt_bound_m 'video', 'real_backend_input_bound_model_variant', ], + [ + 'LTXI2VLongMultiPromptPipeline:image_to_video', + 'MODIFF_LTX_SCHEDULED_HEADLAND_EVIDENCE', + 'video', + 'real_backend_input_bound_model_variant', + ], [ 'LTX2ConditionPipeline:video_to_video', 'MODIFF_LTX2_STREAM_EVIDENCE', @@ -564,10 +570,15 @@ for (const [workflowId, variable, kind, proofKind = 'real_backend_prompt_bound_m } const changedPath = join(temp, 'evidence.json'); const evidence = JSON.parse(original.descriptorBytes); - if (variable === 'MODIFF_LTX2_STREAM_EVIDENCE') { - assert.equal(original.receipt.decodedOutput.frames, 81); - assert.equal(original.receipt.inputBinding.decodedVideo.frames, 25); - assert.equal(original.receipt.observationLimits.normalizedConsumerFramesObserved, false); + if (['MODIFF_LTX_SCHEDULED_HEADLAND_EVIDENCE', 'MODIFF_LTX2_STREAM_EVIDENCE'].includes(variable)) { + if (variable === 'MODIFF_LTX2_STREAM_EVIDENCE') { + assert.equal(original.receipt.decodedOutput.frames, 81); + assert.equal(original.receipt.inputBinding.decodedVideo.frames, 25); + assert.equal(original.receipt.observationLimits.normalizedConsumerFramesObserved, false); + } else { + assert.equal(original.receipt.inputBinding.decodedImage.width, 768); + assert.equal(original.receipt.inputBinding.decodedImage.height, 512); + } const changedPreparation = structuredClone(evidence); const runPath = join(temp, evidence.runDetail.path); const savedRun = readFileSync(runPath); @@ -803,13 +814,15 @@ for (const [workflowId, variable, kind, proofKind = 'real_backend_prompt_bound_m () => readCanonicalWorkflowEvidence({ ...args, evidencePath: changedPath }), variable === 'MODIFF_LTX2_STREAM_EVIDENCE' ? /outside the bound prompt and seed/u - : original.receipt.observationLimits.openingImageLoadFieldsObserved - ? /Opening image differs from the retained Load fields/u - : input.sourceValue.startsWith('@data/videos/') - ? /Archived video upload differs/u - : workflowId === 'HuggingFaceAnyToAnyModel:image_to_text' - ? /Source bytes differ from the native image load|Archived authoring requires the exact original capture/u - : /Source bytes differ from the native image load/u, + : variable === 'MODIFF_LTX_SCHEDULED_HEADLAND_EVIDENCE' + ? /current authored prompt recipe differs from the original baseline/u + : original.receipt.observationLimits.openingImageLoadFieldsObserved + ? /Opening image differs from the retained Load fields/u + : input.sourceValue.startsWith('@data/videos/') + ? /Archived video upload differs/u + : workflowId === 'HuggingFaceAnyToAnyModel:image_to_text' + ? /Source bytes differ from the native image load|Archived authoring requires the exact original capture/u + : /Source bytes differ from the native image load/u, ); writeFileSync(path, originalBytes); } From a39820a93ea92c0fd2dbdac8ec5242623c748afd Mon Sep 17 00:00:00 2001 From: Sourav Das Date: Wed, 25 Nov 2026 17:17:03 +0530 Subject: [PATCH 382/440] Verify full-size retained Gallery video sources --- scripts/retained-gallery-provenance.mjs | 3 ++ scripts/retained-gallery-release.test.mjs | 48 +++++++++++++++++++++-- 2 files changed, 48 insertions(+), 3 deletions(-) diff --git a/scripts/retained-gallery-provenance.mjs b/scripts/retained-gallery-provenance.mjs index b4d4f8ae..c3e2fa6d 100644 --- a/scripts/retained-gallery-provenance.mjs +++ b/scripts/retained-gallery-provenance.mjs @@ -10,6 +10,9 @@ export function decodedAudiovisualMediaHash(decodedMediaHash, decodedAudioHash) } export function retainedGalleryFileLimit(path) { + // Retained comparison inputs preserve the original encoding of the file + // used by the recorded run. The registered size and hash are still checked. + if (/^\/?template-gallery\/inputs\/[a-z0-9_-]+\.before\.mp4$/u.test(path)) return 128 * 1024 * 1024; if (path.endsWith('.mp4')) return 64 * 1024 * 1024; if (/\.(png|webp)$/u.test(path)) return 8 * 1024 * 1024; return 2 * 1024 * 1024; diff --git a/scripts/retained-gallery-release.test.mjs b/scripts/retained-gallery-release.test.mjs index 1790b55f..666b9f25 100644 --- a/scripts/retained-gallery-release.test.mjs +++ b/scripts/retained-gallery-release.test.mjs @@ -1,21 +1,63 @@ import assert from 'node:assert/strict'; import { mkdirSync, mkdtempSync, readFileSync, rmSync, writeFileSync } from 'node:fs'; import { tmpdir } from 'node:os'; -import { join, resolve } from 'node:path'; +import { basename, dirname, join, resolve } from 'node:path'; import { test } from 'node:test'; import { canonicalJsonHash } from './canonical-json.mjs'; -import { canonicalWorkflowContract } from './release-contract-core.mjs'; +import { canonicalWorkflowContract, readCanonicalEvidenceFile } from './release-contract-core.mjs'; import { assertRetainedVideoAdjustment, createRetainedGalleryReleaseReader, verifiedRetainedGalleryAssetIndex, } from './retained-gallery-release.mjs'; import { createHash } from 'node:crypto'; -import { validateRetainedGalleryProvenance, verifyRetainedApprovedFiles } from './retained-gallery-provenance.mjs'; +import { + retainedGalleryFileLimit, + validateRetainedGalleryProvenance, + verifyRetainedApprovedFiles, +} from './retained-gallery-provenance.mjs'; import { loadTemplateRuntime } from './template-gallery-harness.mjs'; const hash = (value) => `sha256:canonical-json:${canonicalJsonHash(value)}`; +test('only retained Gallery before videos accept the larger encoded source size', () => { + for (const prefix of ['', '/']) { + assert.equal( + retainedGalleryFileLimit(prefix + 'template-gallery/inputs/amber-glass.before.mp4'), + 128 * 1024 * 1024, + ); + } + for (const path of [ + '/template-gallery/amber-glass.mp4', + '/template-gallery/inputs/amber-glass.mask.mp4', + '/template-gallery/inputs/amber-glass.guide.mp4', + '/template-gallery/reviews/amber-glass.before.mp4', + '/template-gallery/inputs/../amber-glass.before.mp4', + ]) { + assert.equal(retainedGalleryFileLimit(path), 64 * 1024 * 1024, path); + } +}); + +const savedLargeSource = process.env.MODIFF_RETAINED_LARGE_BEFORE_VIDEO; +test('the saved Amber source stays byte-bound at its original size', { skip: !savedLargeSource }, () => { + const source = resolve(savedLargeSource); + const ref = { + path: basename(source), + bytes: 88384819, + sha256: 'da6a0abe90bfc8c4efcb4a63201a6db839c944416cef49d452b629fbb86c3ec0', + }; + assert.throws( + () => readCanonicalEvidenceFile(dirname(source), ref, retainedGalleryFileLimit('template-gallery/amber-glass.mp4')), + /Evidence file size\/type differs/u, + ); + const beforeLimit = retainedGalleryFileLimit('template-gallery/inputs/amber-glass.before.mp4'); + assert.equal(readCanonicalEvidenceFile(dirname(source), ref, beforeLimit).bytes.length, ref.bytes); + assert.throws( + () => readCanonicalEvidenceFile(dirname(source), { ...ref, sha256: '0'.repeat(64) }, beforeLimit), + /Evidence file hash differs/u, + ); +}); + test('an exposure-corrected retained video stays bound to its silent source and frame cadence', () => { const video = { width: 512, height: 512, frames: 16, fps: 8, durationSeconds: 2 }; const native = { outputHash: 'native-file', decodedOutput: { kind: 'video', hash: 'native-video', ...video } }; From ebe06a72b23a681b880417457f31cade9ab78266 Mon Sep 17 00:00:00 2001 From: Sourav Das Date: Wed, 25 Nov 2026 17:24:40 +0530 Subject: [PATCH 383/440] Bind retained video reference images to their saved inputs --- scripts/retained-gallery-release.mjs | 26 ++++++++++++ scripts/retained-gallery-release.test.mjs | 48 +++++++++++++++++++++++ src/studio/retainedGalleryTemplates.ts | 1 + 3 files changed, 75 insertions(+) diff --git a/scripts/retained-gallery-release.mjs b/scripts/retained-gallery-release.mjs index 58aa1c08..95ca854e 100644 --- a/scripts/retained-gallery-release.mjs +++ b/scripts/retained-gallery-release.mjs @@ -69,6 +69,31 @@ function assertRetainedNativeIdentity(association, entry, nativeReceipt, label) same(actual, expected, label); } +export function assertRetainedVideoReference(recipe, approvedFiles, nativeReceipt) { + const { referenceImageSha256 } = recipe; + assert.equal(approvedFiles.approvedReferenceImagePath?.sha256, referenceImageSha256); + if (referenceImageSha256 === undefined) return; + assert.match(referenceImageSha256, /^[a-f0-9]{64}$/u); + assert.equal(recipe.secondaryReferenceSha256, undefined); + const { inputBindings = [], inputRequirements } = recipe.template; + assert.ok(inputRequirements?.sourceVideo || inputBindings.some(({ field }) => field === 'sourceVideo')); + const imageBinding = inputBindings.find( + ({ field, mediaType }) => field === 'referenceImages' && mediaType === 'image', + ); + assert.equal( + inputRequirements?.referenceImages ?? imageBinding?.count, + 1, + 'The retained video recipe must declare its reference image.', + ); + if (nativeReceipt) { + same( + nativeReceipt.referenceBindings?.map(({ inputIndex, sha256 }) => ({ inputIndex, sha256 })), + [{ inputIndex: 0, sha256: referenceImageSha256 }], + 'Published video reference differs from the saved input.', + ); + } +} + function assertRetainedBatchEvidence({ recipe, sourceWorkflow, @@ -106,6 +131,7 @@ function assertRetainedBatchEvidence({ assert.equal(association.approvedFiles.approvedGuidePath?.sha256, recipe.guideSha256); assert.equal(association.approvedFiles.approvedClosingFramePath?.sha256, recipe.lastFrameSha256); assert.equal(association.approvedFiles.approvedSecondaryReferencePath?.sha256, recipe.secondaryReferenceSha256); + assertRetainedVideoReference(recipe, association.approvedFiles, nativeReceipt); if (recipe.secondaryReferenceSha256) { assert.equal(recipe.template.mode, 'multi_image_reference_edit'); same( diff --git a/scripts/retained-gallery-release.test.mjs b/scripts/retained-gallery-release.test.mjs index 666b9f25..611a9c1f 100644 --- a/scripts/retained-gallery-release.test.mjs +++ b/scripts/retained-gallery-release.test.mjs @@ -7,6 +7,7 @@ import { canonicalJsonHash } from './canonical-json.mjs'; import { canonicalWorkflowContract, readCanonicalEvidenceFile } from './release-contract-core.mjs'; import { assertRetainedVideoAdjustment, + assertRetainedVideoReference, createRetainedGalleryReleaseReader, verifiedRetainedGalleryAssetIndex, } from './retained-gallery-release.mjs'; @@ -58,6 +59,53 @@ test('the saved Amber source stays byte-bound at its original size', { skip: !sa ); }); +test('a retained video reference binds the declared material image to the exact saved input', () => { + const sha256 = '1'.repeat(64); + const recipe = { + referenceImageSha256: sha256, + template: { + inputBindings: [ + { field: 'sourceVideo', mediaType: 'video', count: 1 }, + { field: 'maskVideo', mediaType: 'video', count: 1 }, + { field: 'referenceImages', mediaType: 'image', count: 1 }, + ], + }, + }; + const approvedFiles = { approvedReferenceImagePath: { sha256 } }; + const native = { referenceBindings: [{ nodeId: 'reference-load', field: 'file', inputIndex: 0, sha256 }] }; + assert.doesNotThrow(() => assertRetainedVideoReference(recipe, approvedFiles, native)); + assert.doesNotThrow(() => assertRetainedVideoReference(recipe, approvedFiles)); + assert.doesNotThrow(() => + assertRetainedVideoReference( + { ...recipe, template: { inputRequirements: { sourceVideo: true, maskVideo: true, referenceImages: 1 } } }, + approvedFiles, + native, + ), + ); + assert.throws(() => assertRetainedVideoReference(recipe, {}, native)); + assert.throws(() => assertRetainedVideoReference({}, approvedFiles, native)); + assert.throws( + () => assertRetainedVideoReference(recipe, approvedFiles, { referenceBindings: [{ inputIndex: 1, sha256 }] }), + /Published video reference differs/u, + ); + assert.throws( + () => + assertRetainedVideoReference(recipe, approvedFiles, { + referenceBindings: [{ inputIndex: 0, sha256: '0'.repeat(64) }], + }), + /Published video reference differs/u, + ); + assert.throws( + () => + assertRetainedVideoReference( + { ...recipe, template: { inputBindings: recipe.template.inputBindings.slice(0, 2) } }, + approvedFiles, + native, + ), + /must declare its reference image/u, + ); +}); + test('an exposure-corrected retained video stays bound to its silent source and frame cadence', () => { const video = { width: 512, height: 512, frames: 16, fps: 8, durationSeconds: 2 }; const native = { outputHash: 'native-file', decodedOutput: { kind: 'video', hash: 'native-video', ...video } }; diff --git a/src/studio/retainedGalleryTemplates.ts b/src/studio/retainedGalleryTemplates.ts index 3ce75bb4..afa99898 100644 --- a/src/studio/retainedGalleryTemplates.ts +++ b/src/studio/retainedGalleryTemplates.ts @@ -12,6 +12,7 @@ export type RetainedGalleryRecipe = { readonly guideSha256?: string; readonly lastFrameSha256?: string; readonly secondaryReferenceSha256?: string; + readonly referenceImageSha256?: string; readonly reviewedCatalogLock: { readonly templateLockHash: string; readonly galleryTemplateLockHash: string; From 11f2ab65afdbc43539fe968de6ccc149eac94bb2 Mon Sep 17 00:00:00 2001 From: Sourav Das Date: Wed, 25 Nov 2026 18:01:43 +0530 Subject: [PATCH 384/440] Register the Glasshouse Keeper and bind its motion inputs --- config/release-showcase-scope.v1.json | 10 +- .../retained-gallery-approved-batch.v1.json | 13 + ...etained-gallery-authoring-archives.v1.json | 5 + ...etained-gallery-batch-recipe-locks.v1.json | 21 ++ config/template-asset-rights.v1.json | 276 +++++++++++++++++- config/template-assets.v1.json | 102 ++++++- public/template-gallery/manifest.json | 37 +++ scripts/bundle-budget.mjs | 4 + scripts/modiff-template.test.mjs | 2 +- scripts/retained-gallery-release.mjs | 33 +++ scripts/retained-gallery-release.test.mjs | 35 +++ scripts/retained-gallery-templates.test.mjs | 29 ++ src/studio/executionSpecValues.ts | 6 +- src/studio/outputContracts.ts | 3 + src/studio/retainedGalleryApprovedBatch.ts | 131 +++++++++ src/studio/retainedGalleryTemplates.ts | 1 + src/studio/templateAssetSource.json | 6 +- src/studio/templateInputs.ts | 3 + src/studio/types.ts | 7 + src/studio/workflowInference.ts | 13 +- 20 files changed, 719 insertions(+), 18 deletions(-) diff --git a/config/release-showcase-scope.v1.json b/config/release-showcase-scope.v1.json index cfee4a3d..7f05714a 100644 --- a/config/release-showcase-scope.v1.json +++ b/config/release-showcase-scope.v1.json @@ -4,7 +4,7 @@ "name": "Registered showcase preview without AMD-cloud backlog", "dataset": { "repository": "sourav-das/modiff-template-gallery", - "revision": "09bb6cf8c7ac96422f2de34fabe7770c9e1413db" + "revision": "2339c1cb95deb500215754b5a139c295dbbed7d7" }, "originalCampaign": { "total": 89, @@ -1077,7 +1077,13 @@ "category": "supplementary-only", "reason": "Published and registered from an approved saved run outside the original campaign selection.", "countedAsComplete": false + }, + { + "id": "wan_animate_glasshouse_keeper", + "category": "supplementary-only", + "reason": "Published and registered from an approved saved run outside the original campaign selection.", + "countedAsComplete": false } ], - "profileHash": "sha256:canonical-json:893f2e3ff088d9bee012024429a9fed35390e6be78e840c19fedcc08b75240d7" + "profileHash": "sha256:canonical-json:794f3429451359a307b79b43b521a9505791f25801716615200c68a7126ae3fd" } diff --git a/config/retained-gallery-approved-batch.v1.json b/config/retained-gallery-approved-batch.v1.json index a4666f7c..8e26e597 100644 --- a/config/retained-gallery-approved-batch.v1.json +++ b/config/retained-gallery-approved-batch.v1.json @@ -1315,5 +1315,18 @@ "width": 1664, "height": 960 } + }, + "wan_animate_glasshouse_keeper": { + "associationSha256": "df20117453015264b552c44bf2beae6ff08803d9e805537b1b20ec0f65c675db", + "backendSourceFingerprint": "sha256:backend-source-v1:b29a5b0d317aaa781ae2a5205b46b518eea5a3d68a214eb0968dba4ac0660af7", + "backendContractFingerprint": "sha256:backend-contract-v1:6b262add8ba2463e96d9d3a9b0e92cd5a745badc3e8a985bc4ff1ac29483a2bd", + "templateRevisionHash": "c709baafb5f990b9f9ca029bfc04ad15d0006f2c84c85759f6a18d68a0cc565d", + "capturedAt": "2026-11-25T11:54:29.880Z", + "outputExtension": "mp4", + "primaryModelRepo": "Wan-AI/Wan2.2-Animate-14B-Diffusers", + "outputSize": { + "width": 768, + "height": 512 + } } } diff --git a/config/retained-gallery-authoring-archives.v1.json b/config/retained-gallery-authoring-archives.v1.json index 42d4c309..1a85fc4a 100644 --- a/config/retained-gallery-authoring-archives.v1.json +++ b/config/retained-gallery-authoring-archives.v1.json @@ -463,5 +463,10 @@ "descriptorSha256": "111a1e8352784824dc9d3cb094113e0547b19cd50416b072cff31356c95a0124", "bytes": 4991, "sha256": "c91ec7e55964e72702d69979edf84e8714c8e5acb3adda5a6c6bccfce14db5db" + }, + "WanAnimatePipeline:character_replace": { + "descriptorSha256": "3201ab9ec6ce7873a6bb2e48e50bf83956edb4169ff0b2dfa2ba4667a85153c2", + "bytes": 7348, + "sha256": "b2c1690cdde91111627becb49ad8e32513b644ce13c3188b1906b122266502eb" } } diff --git a/config/retained-gallery-batch-recipe-locks.v1.json b/config/retained-gallery-batch-recipe-locks.v1.json index ebdc60b2..f094c59c 100644 --- a/config/retained-gallery-batch-recipe-locks.v1.json +++ b/config/retained-gallery-batch-recipe-locks.v1.json @@ -1342,5 +1342,26 @@ }, "inputSha256": "5c24b2b67f893f48e4dbf0d893e0aa4308852592f30f8179b44298cca4ce197e", "inputLocatorSha256": "f0c6bcf6e2ac02da300d9ea08fff96a335c47e436244ab9b36a3bdd47690cf3b" + }, + "wan_animate_glasshouse_keeper": { + "workflowId": "WanAnimatePipeline:character_replace", + "sourceTaskTemplateId": "task-template:wan-animate:character-replace:v1", + "retainedGraphHash": "sha256:canonical-graph-v1:120c2a963fb5ba4565a577eb4c1730b48d3d52d63f7610b6369c04ebf74af3e5", + "originalReceiptSha256": "3201ab9ec6ce7873a6bb2e48e50bf83956edb4169ff0b2dfa2ba4667a85153c2", + "reviewedTemplateSha256": "c709baafb5f990b9f9ca029bfc04ad15d0006f2c84c85759f6a18d68a0cc565d", + "reviewedCatalogLock": { + "templateLockHash": "tpl_db8a8100", + "galleryTemplateLockHash": "tpl_ed4e5a82", + "promptSettingsHash": "ps_ebb62f19" + }, + "promptSha256": "d59a41833449299a528dee0f0a830e437d3b4e854dcc9130fdc2a9ffe82a9d40", + "inputSha256": "ade9d6ac1301a5df16c94c0a03b25d201719f38766874b473f3c22c3fdd84be5", + "inputLocatorSha256": "ca0e442b88fd3082f32afdde686253739533435631755c91a5ae3cad6d008ea2", + "videoConditionerHashes": { + "face": "b90706154957e438dc3df732e59b97467872221695ec87b3e135c8ad29ec9a7f", + "pose": "2fd6db2696b9a6bc7457bb8b747af5cd7ec4ec5603e86b06f01e591f17ed39f2", + "background": "56d9cdc81884fc95644f38a5761ce4be55a441be9c572d3112f2c324541c315e", + "mask": "66238c0f48aef7920122e948c9bfccb8c3c9af842ac989ba744edb575d30f3e2" + } } } diff --git a/config/template-asset-rights.v1.json b/config/template-asset-rights.v1.json index 174dd70c..8f44a769 100644 --- a/config/template-asset-rights.v1.json +++ b/config/template-asset-rights.v1.json @@ -1,6 +1,6 @@ { "schemaVersion": 1, - "assetSetId": "sha256:canonical-json:1d5ae5e7fa702186eb134bfa4d86f7e4f517faf88720885ddd6960980505fd6b", + "assetSetId": "sha256:canonical-json:6dae2febe2da4a2154a550b5eb6530843803c6fe838fd2a3220dda5337b45c1e", "records": [ { "path": "template-gallery/ace_step_audio_continuation.wav", @@ -7094,6 +7094,141 @@ "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", "provenanceTemplateId": "wan_a14b_wind_across_pond" }, + { + "path": "template-gallery/inputs/wan_animate_glasshouse_keeper.background.mp4", + "sha256": "sha256:bytes:56d9cdc81884fc95644f38a5761ce4be55a441be9c572d3112f2c324541c315e", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Exact approved file captured from a saved MoDiff workflow", + "sourceUrl": "https://huggingface.co/Wan-AI/Wan2.2-Animate-14B-Diffusers/tree/6f4df10861c758af86ac3c979aacc1bf5c03eff0", + "sourceRevision": "Wan-AI/Wan2.2-Animate-14B-Diffusers@6f4df10861c758af86ac3c979aacc1bf5c03eff0", + "sourceLicense": "Maintainer-authorized file with publisher terms retained", + "modelTerms": [ + "https://huggingface.co/Wan-AI/Wan2.2-Animate-14B-Diffusers/tree/6f4df10861c758af86ac3c979aacc1bf5c03eff0" + ], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "Wan-AI/Wan2.2-Animate-14B-Diffusers@6f4df10861c758af86ac3c979aacc1bf5c03eff0 https://huggingface.co/Wan-AI/Wan2.2-Animate-14B-Diffusers/tree/6f4df10861c758af86ac3c979aacc1bf5c03eff0" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "01bd531cf1d88e5338a9c8dc4b831048b7660d92b628f61f3b28e75bb68b9a6c", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "wan_animate_glasshouse_keeper" + }, + { + "path": "template-gallery/inputs/wan_animate_glasshouse_keeper.face.mp4", + "sha256": "sha256:bytes:b90706154957e438dc3df732e59b97467872221695ec87b3e135c8ad29ec9a7f", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Exact approved file captured from a saved MoDiff workflow", + "sourceUrl": "https://huggingface.co/Wan-AI/Wan2.2-Animate-14B-Diffusers/tree/6f4df10861c758af86ac3c979aacc1bf5c03eff0", + "sourceRevision": "Wan-AI/Wan2.2-Animate-14B-Diffusers@6f4df10861c758af86ac3c979aacc1bf5c03eff0", + "sourceLicense": "Maintainer-authorized file with publisher terms retained", + "modelTerms": [ + "https://huggingface.co/Wan-AI/Wan2.2-Animate-14B-Diffusers/tree/6f4df10861c758af86ac3c979aacc1bf5c03eff0" + ], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "Wan-AI/Wan2.2-Animate-14B-Diffusers@6f4df10861c758af86ac3c979aacc1bf5c03eff0 https://huggingface.co/Wan-AI/Wan2.2-Animate-14B-Diffusers/tree/6f4df10861c758af86ac3c979aacc1bf5c03eff0" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "01bd531cf1d88e5338a9c8dc4b831048b7660d92b628f61f3b28e75bb68b9a6c", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "wan_animate_glasshouse_keeper" + }, + { + "path": "template-gallery/inputs/wan_animate_glasshouse_keeper.first.png", + "sha256": "sha256:bytes:ade9d6ac1301a5df16c94c0a03b25d201719f38766874b473f3c22c3fdd84be5", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Exact approved file captured from a saved MoDiff workflow", + "sourceUrl": "https://huggingface.co/Wan-AI/Wan2.2-Animate-14B-Diffusers/tree/6f4df10861c758af86ac3c979aacc1bf5c03eff0", + "sourceRevision": "Wan-AI/Wan2.2-Animate-14B-Diffusers@6f4df10861c758af86ac3c979aacc1bf5c03eff0", + "sourceLicense": "Maintainer-authorized file with publisher terms retained", + "modelTerms": [ + "https://huggingface.co/Wan-AI/Wan2.2-Animate-14B-Diffusers/tree/6f4df10861c758af86ac3c979aacc1bf5c03eff0" + ], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "Wan-AI/Wan2.2-Animate-14B-Diffusers@6f4df10861c758af86ac3c979aacc1bf5c03eff0 https://huggingface.co/Wan-AI/Wan2.2-Animate-14B-Diffusers/tree/6f4df10861c758af86ac3c979aacc1bf5c03eff0" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "01bd531cf1d88e5338a9c8dc4b831048b7660d92b628f61f3b28e75bb68b9a6c", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "wan_animate_glasshouse_keeper" + }, + { + "path": "template-gallery/inputs/wan_animate_glasshouse_keeper.mask.mp4", + "sha256": "sha256:bytes:66238c0f48aef7920122e948c9bfccb8c3c9af842ac989ba744edb575d30f3e2", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Exact approved file captured from a saved MoDiff workflow", + "sourceUrl": "https://huggingface.co/Wan-AI/Wan2.2-Animate-14B-Diffusers/tree/6f4df10861c758af86ac3c979aacc1bf5c03eff0", + "sourceRevision": "Wan-AI/Wan2.2-Animate-14B-Diffusers@6f4df10861c758af86ac3c979aacc1bf5c03eff0", + "sourceLicense": "Maintainer-authorized file with publisher terms retained", + "modelTerms": [ + "https://huggingface.co/Wan-AI/Wan2.2-Animate-14B-Diffusers/tree/6f4df10861c758af86ac3c979aacc1bf5c03eff0" + ], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "Wan-AI/Wan2.2-Animate-14B-Diffusers@6f4df10861c758af86ac3c979aacc1bf5c03eff0 https://huggingface.co/Wan-AI/Wan2.2-Animate-14B-Diffusers/tree/6f4df10861c758af86ac3c979aacc1bf5c03eff0" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "01bd531cf1d88e5338a9c8dc4b831048b7660d92b628f61f3b28e75bb68b9a6c", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "wan_animate_glasshouse_keeper" + }, + { + "path": "template-gallery/inputs/wan_animate_glasshouse_keeper.pose.mp4", + "sha256": "sha256:bytes:2fd6db2696b9a6bc7457bb8b747af5cd7ec4ec5603e86b06f01e591f17ed39f2", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Exact approved file captured from a saved MoDiff workflow", + "sourceUrl": "https://huggingface.co/Wan-AI/Wan2.2-Animate-14B-Diffusers/tree/6f4df10861c758af86ac3c979aacc1bf5c03eff0", + "sourceRevision": "Wan-AI/Wan2.2-Animate-14B-Diffusers@6f4df10861c758af86ac3c979aacc1bf5c03eff0", + "sourceLicense": "Maintainer-authorized file with publisher terms retained", + "modelTerms": [ + "https://huggingface.co/Wan-AI/Wan2.2-Animate-14B-Diffusers/tree/6f4df10861c758af86ac3c979aacc1bf5c03eff0" + ], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "Wan-AI/Wan2.2-Animate-14B-Diffusers@6f4df10861c758af86ac3c979aacc1bf5c03eff0 https://huggingface.co/Wan-AI/Wan2.2-Animate-14B-Diffusers/tree/6f4df10861c758af86ac3c979aacc1bf5c03eff0" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "01bd531cf1d88e5338a9c8dc4b831048b7660d92b628f61f3b28e75bb68b9a6c", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "wan_animate_glasshouse_keeper" + }, { "path": "template-gallery/inputs/wan_flf_blue_hour_at_the_tram_shelter.first.png", "sha256": "sha256:bytes:6d2c561cf33919ae42e773d95a0232799da3f2b92a23a94dad80902cfb73527a", @@ -8673,7 +8808,7 @@ }, { "path": "template-gallery/manifest.json", - "sha256": "sha256:bytes:76650b43470a6406be046086c8c987b12b24257866783ce4581bf72d5a67970b", + "sha256": "sha256:bytes:dbfe7fcfa87e5e03df973310c7905fde71c6d74dc10a23ddb8929ecc19521c0d", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", @@ -8690,7 +8825,7 @@ "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "de8db2f2fa14b59514ea146654439aea279cc6fad5be1dca8cf17e057abe9945", + "humanApprovalPacketSHA256": "01bd531cf1d88e5338a9c8dc4b831048b7660d92b628f61f3b28e75bb68b9a6c", "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained." }, { @@ -23125,6 +23260,114 @@ "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", "provenanceTemplateId": "wan_a14b_wind_across_pond" }, + { + "path": "template-gallery/reviews/wan_animate_glasshouse_keeper.original-provenance.json", + "sha256": "sha256:bytes:ce7cd68be0d73e65a89ec5136e5cb21e16940f318448d7d85493c4109135ce10", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/Wan-AI/Wan2.2-Animate-14B-Diffusers/tree/6f4df10861c758af86ac3c979aacc1bf5c03eff0", + "sourceRevision": "Wan-AI/Wan2.2-Animate-14B-Diffusers@6f4df10861c758af86ac3c979aacc1bf5c03eff0", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "https://huggingface.co/Wan-AI/Wan2.2-Animate-14B-Diffusers/tree/6f4df10861c758af86ac3c979aacc1bf5c03eff0" + ], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "Wan-AI/Wan2.2-Animate-14B-Diffusers@6f4df10861c758af86ac3c979aacc1bf5c03eff0 https://huggingface.co/Wan-AI/Wan2.2-Animate-14B-Diffusers/tree/6f4df10861c758af86ac3c979aacc1bf5c03eff0" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "01bd531cf1d88e5338a9c8dc4b831048b7660d92b628f61f3b28e75bb68b9a6c", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "wan_animate_glasshouse_keeper" + }, + { + "path": "template-gallery/reviews/wan_animate_glasshouse_keeper.original-review.json", + "sha256": "sha256:bytes:368f120d1eb2c48f11a688a7c1293371bbad8cd67c026e24cf0655d8dc8f4e04", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/Wan-AI/Wan2.2-Animate-14B-Diffusers/tree/6f4df10861c758af86ac3c979aacc1bf5c03eff0", + "sourceRevision": "Wan-AI/Wan2.2-Animate-14B-Diffusers@6f4df10861c758af86ac3c979aacc1bf5c03eff0", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "https://huggingface.co/Wan-AI/Wan2.2-Animate-14B-Diffusers/tree/6f4df10861c758af86ac3c979aacc1bf5c03eff0" + ], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "Wan-AI/Wan2.2-Animate-14B-Diffusers@6f4df10861c758af86ac3c979aacc1bf5c03eff0 https://huggingface.co/Wan-AI/Wan2.2-Animate-14B-Diffusers/tree/6f4df10861c758af86ac3c979aacc1bf5c03eff0" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "01bd531cf1d88e5338a9c8dc4b831048b7660d92b628f61f3b28e75bb68b9a6c", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "wan_animate_glasshouse_keeper" + }, + { + "path": "template-gallery/reviews/wan_animate_glasshouse_keeper.quality-review.json", + "sha256": "sha256:bytes:c0a191c85ddf88e695030d83c665e5016a5dc4a119724bc6330e3536b8406244", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/Wan-AI/Wan2.2-Animate-14B-Diffusers/tree/6f4df10861c758af86ac3c979aacc1bf5c03eff0", + "sourceRevision": "Wan-AI/Wan2.2-Animate-14B-Diffusers@6f4df10861c758af86ac3c979aacc1bf5c03eff0", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "https://huggingface.co/Wan-AI/Wan2.2-Animate-14B-Diffusers/tree/6f4df10861c758af86ac3c979aacc1bf5c03eff0" + ], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "Wan-AI/Wan2.2-Animate-14B-Diffusers@6f4df10861c758af86ac3c979aacc1bf5c03eff0 https://huggingface.co/Wan-AI/Wan2.2-Animate-14B-Diffusers/tree/6f4df10861c758af86ac3c979aacc1bf5c03eff0" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "01bd531cf1d88e5338a9c8dc4b831048b7660d92b628f61f3b28e75bb68b9a6c", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "wan_animate_glasshouse_keeper" + }, + { + "path": "template-gallery/reviews/wan_animate_glasshouse_keeper.retained-template-provenance.json", + "sha256": "sha256:bytes:cbc0bb0c647d903d9b6a26858b83d660ba333be4bdda28c14b3098f069f19970", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/Wan-AI/Wan2.2-Animate-14B-Diffusers/tree/6f4df10861c758af86ac3c979aacc1bf5c03eff0", + "sourceRevision": "Wan-AI/Wan2.2-Animate-14B-Diffusers@6f4df10861c758af86ac3c979aacc1bf5c03eff0", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "https://huggingface.co/Wan-AI/Wan2.2-Animate-14B-Diffusers/tree/6f4df10861c758af86ac3c979aacc1bf5c03eff0" + ], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "Wan-AI/Wan2.2-Animate-14B-Diffusers@6f4df10861c758af86ac3c979aacc1bf5c03eff0 https://huggingface.co/Wan-AI/Wan2.2-Animate-14B-Diffusers/tree/6f4df10861c758af86ac3c979aacc1bf5c03eff0" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "01bd531cf1d88e5338a9c8dc4b831048b7660d92b628f61f3b28e75bb68b9a6c", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "wan_animate_glasshouse_keeper" + }, { "path": "template-gallery/reviews/wan_flf_blue_hour_at_the_tram_shelter.original-provenance.json", "sha256": "sha256:bytes:556edbb96784d97900a95f4c3cdf618102ae2f492b2791a67ef5cd9e258f3dfb", @@ -27556,6 +27799,33 @@ "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", "provenanceTemplateId": "wan_a14b_wind_across_pond" }, + { + "path": "template-gallery/wan_animate_glasshouse_keeper.mp4", + "sha256": "sha256:bytes:4d936509b7aa591221f0a7de3e15bc815b4d322d1bb9e78d894d767a48c55a19", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Exact approved file captured from a saved MoDiff workflow", + "sourceUrl": "https://huggingface.co/Wan-AI/Wan2.2-Animate-14B-Diffusers/tree/6f4df10861c758af86ac3c979aacc1bf5c03eff0", + "sourceRevision": "Wan-AI/Wan2.2-Animate-14B-Diffusers@6f4df10861c758af86ac3c979aacc1bf5c03eff0", + "sourceLicense": "Maintainer-authorized file with publisher terms retained", + "modelTerms": [ + "https://huggingface.co/Wan-AI/Wan2.2-Animate-14B-Diffusers/tree/6f4df10861c758af86ac3c979aacc1bf5c03eff0" + ], + "aiGenerated": true, + "humanLikenessConsent": "synthetic", + "marks": [], + "requiredAttribution": [ + "Wan-AI/Wan2.2-Animate-14B-Diffusers@6f4df10861c758af86ac3c979aacc1bf5c03eff0 https://huggingface.co/Wan-AI/Wan2.2-Animate-14B-Diffusers/tree/6f4df10861c758af86ac3c979aacc1bf5c03eff0" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "01bd531cf1d88e5338a9c8dc4b831048b7660d92b628f61f3b28e75bb68b9a6c", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "wan_animate_glasshouse_keeper" + }, { "path": "template-gallery/wan_flf_blue_hour_at_the_tram_shelter.mp4", "sha256": "sha256:bytes:a356ce3baa0be0556829715ccc72f1a9ccbe99625315cca04e3ee33a4e83f550", diff --git a/config/template-assets.v1.json b/config/template-assets.v1.json index 498a792d..3584f68e 100644 --- a/config/template-assets.v1.json +++ b/config/template-assets.v1.json @@ -2866,6 +2866,53 @@ "width": 768, "height": 512 }, + { + "path": "template-gallery/inputs/wan_animate_glasshouse_keeper.background.mp4", + "size": 389870, + "sha256": "sha256:bytes:56d9cdc81884fc95644f38a5761ce4be55a441be9c572d3112f2c324541c315e", + "contentType": "video/mp4", + "purposes": [ + "runtime" + ] + }, + { + "path": "template-gallery/inputs/wan_animate_glasshouse_keeper.face.mp4", + "size": 1640506, + "sha256": "sha256:bytes:b90706154957e438dc3df732e59b97467872221695ec87b3e135c8ad29ec9a7f", + "contentType": "video/mp4", + "purposes": [ + "runtime" + ] + }, + { + "path": "template-gallery/inputs/wan_animate_glasshouse_keeper.first.png", + "size": 434726, + "sha256": "sha256:bytes:ade9d6ac1301a5df16c94c0a03b25d201719f38766874b473f3c22c3fdd84be5", + "contentType": "image/png", + "purposes": [ + "runtime" + ], + "width": 768, + "height": 512 + }, + { + "path": "template-gallery/inputs/wan_animate_glasshouse_keeper.mask.mp4", + "size": 4737, + "sha256": "sha256:bytes:66238c0f48aef7920122e948c9bfccb8c3c9af842ac989ba744edb575d30f3e2", + "contentType": "video/mp4", + "purposes": [ + "runtime" + ] + }, + { + "path": "template-gallery/inputs/wan_animate_glasshouse_keeper.pose.mp4", + "size": 59742, + "sha256": "sha256:bytes:2fd6db2696b9a6bc7457bb8b747af5cd7ec4ec5603e86b06f01e591f17ed39f2", + "contentType": "video/mp4", + "purposes": [ + "runtime" + ] + }, { "path": "template-gallery/inputs/wan_flf_blue_hour_at_the_tram_shelter.first.png", "size": 695609, @@ -3490,8 +3537,8 @@ }, { "path": "template-gallery/manifest.json", - "size": 474815, - "sha256": "sha256:bytes:76650b43470a6406be046086c8c987b12b24257866783ce4581bf72d5a67970b", + "size": 477685, + "sha256": "sha256:bytes:dbfe7fcfa87e5e03df973310c7905fde71c6d74dc10a23ddb8929ecc19521c0d", "contentType": "application/json", "purposes": [ "runtime", @@ -8695,6 +8742,42 @@ "runtime" ] }, + { + "path": "template-gallery/reviews/wan_animate_glasshouse_keeper.original-provenance.json", + "size": 5203, + "sha256": "sha256:bytes:ce7cd68be0d73e65a89ec5136e5cb21e16940f318448d7d85493c4109135ce10", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, + { + "path": "template-gallery/reviews/wan_animate_glasshouse_keeper.original-review.json", + "size": 1152, + "sha256": "sha256:bytes:368f120d1eb2c48f11a688a7c1293371bbad8cd67c026e24cf0655d8dc8f4e04", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, + { + "path": "template-gallery/reviews/wan_animate_glasshouse_keeper.quality-review.json", + "size": 3520, + "sha256": "sha256:bytes:c0a191c85ddf88e695030d83c665e5016a5dc4a119724bc6330e3536b8406244", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, + { + "path": "template-gallery/reviews/wan_animate_glasshouse_keeper.retained-template-provenance.json", + "size": 4925, + "sha256": "sha256:bytes:cbc0bb0c647d903d9b6a26858b83d660ba333be4bdda28c14b3098f069f19970", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, { "path": "template-gallery/reviews/wan_flf_blue_hour_at_the_tram_shelter.original-provenance.json", "size": 1322, @@ -10524,6 +10607,15 @@ "runtime" ] }, + { + "path": "template-gallery/wan_animate_glasshouse_keeper.mp4", + "size": 256854, + "sha256": "sha256:bytes:4d936509b7aa591221f0a7de3e15bc815b4d322d1bb9e78d894d767a48c55a19", + "contentType": "video/mp4", + "purposes": [ + "runtime" + ] + }, { "path": "template-gallery/wan_flf_blue_hour_at_the_tram_shelter.mp4", "size": 398821, @@ -10943,9 +11035,9 @@ "height": 1024 } ], - "assetSetId": "sha256:canonical-json:1d5ae5e7fa702186eb134bfa4d86f7e4f517faf88720885ddd6960980505fd6b", + "assetSetId": "sha256:canonical-json:6dae2febe2da4a2154a550b5eb6530843803c6fe838fd2a3220dda5337b45c1e", "status": "ready", - "assetCount": 1125, - "totalBytes": 1133080624, + "assetCount": 1135, + "totalBytes": 1135884729, "missingAssets": [] } diff --git a/public/template-gallery/manifest.json b/public/template-gallery/manifest.json index 4639910b..96f45f71 100644 --- a/public/template-gallery/manifest.json +++ b/public/template-gallery/manifest.json @@ -6082,6 +6082,43 @@ "posterPath": "/template-gallery/posters/spandrel_tram_shelter_video_2x.webp", "approvedOriginalReviewPath": "/template-gallery/reviews/spandrel_tram_shelter_video_2x.original-review.json", "approvedOriginalProvenancePath": "/template-gallery/reviews/spandrel_tram_shelter_video_2x.original-provenance.json" + }, + { + "templateId": "wan_animate_glasshouse_keeper", + "templateLockHash": "tpl_ed4e5a82", + "promptSettingsHash": "ps_ebb62f19", + "modelRevision": "Wan-AI/Wan2.2-Animate-14B-Diffusers@6f4df10861c758af86ac3c979aacc1bf5c03eff0", + "runtimeFingerprint": "sha256:stable-runtime-v1:4d41adc4d8b1fb3a9aed04a4e324121bd1a145d1051955a1493df3b5c6687bde", + "graphHash": "sha256:canonical-graph-v1:120c2a963fb5ba4565a577eb4c1730b48d3d52d63f7610b6369c04ebf74af3e5", + "proofLockHash": "sha256:retained-template-association-v1:5db90fd5f26d5cad31205ac520860ae8b530c472fdf0cfe1219336b064fdb0ac", + "backendSourceFingerprint": "sha256:backend-source-v1:b29a5b0d317aaa781ae2a5205b46b518eea5a3d68a214eb0968dba4ac0660af7", + "backendContractFingerprint": "sha256:backend-contract-v1:6b262add8ba2463e96d9d3a9b0e92cd5a745badc3e8a985bc4ff1ac29483a2bd", + "modelCommit": "6f4df10861c758af86ac3c979aacc1bf5c03eff0", + "templateRevisionHash": "c709baafb5f990b9f9ca029bfc04ad15d0006f2c84c85759f6a18d68a0cc565d", + "provenancePath": "/template-gallery/reviews/wan_animate_glasshouse_keeper.retained-template-provenance.json", + "provenanceHash": "sha256:canonical-json:6ed9d6c3c8ff58b782242105152e147312f03adac01685ca322c5468e0a24cf5", + "outputPath": "/template-gallery/wan_animate_glasshouse_keeper.mp4", + "thumbnailPath": "/template-gallery/wan_animate_glasshouse_keeper.mp4", + "mediaHash": "sha256:decoded-video-framemd5:d42abea6c6794761464962bf376e12862babe8407c7dc9277e07fe496909557c", + "mediaType": "video", + "verificationTimestamp": "2026-11-25T11:54:29.880Z", + "verificationStatus": "reviewed", + "qualityReviewStatus": "approved_reviewed", + "qualityReviewHash": "sha256:canonical-json:1ee1de225fe114268e0805ba39b20238a41e082c96db990a1adef25e5e401186", + "qualityReviewPath": "/template-gallery/reviews/wan_animate_glasshouse_keeper.quality-review.json", + "reviewer": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25T12:01:12.606Z", + "width": 768, + "height": 512, + "frames": 81, + "durationSeconds": 3.375, + "approvedSourcePath": "/template-gallery/inputs/wan_animate_glasshouse_keeper.first.png", + "approvedFaceVideoPath": "/template-gallery/inputs/wan_animate_glasshouse_keeper.face.mp4", + "approvedPoseVideoPath": "/template-gallery/inputs/wan_animate_glasshouse_keeper.pose.mp4", + "approvedBackgroundVideoPath": "/template-gallery/inputs/wan_animate_glasshouse_keeper.background.mp4", + "approvedMaskVideoPath": "/template-gallery/inputs/wan_animate_glasshouse_keeper.mask.mp4", + "approvedOriginalReviewPath": "/template-gallery/reviews/wan_animate_glasshouse_keeper.original-review.json", + "approvedOriginalProvenancePath": "/template-gallery/reviews/wan_animate_glasshouse_keeper.original-provenance.json" } ] } diff --git a/scripts/bundle-budget.mjs b/scripts/bundle-budget.mjs index 8b79db1b..ce59100e 100644 --- a/scripts/bundle-budget.mjs +++ b/scripts/bundle-budget.mjs @@ -493,6 +493,8 @@ const SOURCE_LICENSES = new URL('../public/THIRD_PARTY_LICENSES.txt', import.met // 504492/682980/346033 largest/startup/deferred gzip bytes: the reviewed // migration ceilings below still pass with 8/12/304 bytes of headroom. const MAX_STARTUP_CHUNK_GZIP_BYTES = + // The retained Glasshouse Keeper recipe and motion bindings add 720 bytes (562669 to 563389). + 720 + // The approved native video and 2× upscale catalog measures 562669 bytes. 7523 + // Guided and ordered-reference recipes with loader revision binding measure 555146 bytes. @@ -801,6 +803,8 @@ const MAX_STARTUP_CHUNK_GZIP_BYTES = // The same build measures 673359 aggregate startup bytes (+45 over the cap). // Keep 19 bytes of headroom; deferred limits and loading boundaries stay fixed. const MAX_STARTUP_GZIP_BYTES = + // The same change adds 721 bytes across the startup closure (741155 to 741876). + 721 + // The same video catalog measures 741155 total startup bytes. 7524 + // Those ten recipes measure 733631 total startup bytes. diff --git a/scripts/modiff-template.test.mjs b/scripts/modiff-template.test.mjs index d5b78682..e1cf563f 100644 --- a/scripts/modiff-template.test.mjs +++ b/scripts/modiff-template.test.mjs @@ -2951,7 +2951,7 @@ test('template prompt recipes are distinct, detailed, and not generic placeholde if (retained) { // Authoring guidance must not rewrite conditioning from an approved execution. assert.deepEqual({ prompt: template.prompt, negativePrompt: template.negativePrompt }, retained); - if (template.mode === 'unconditional_image' || template.mode === 'speech_translation') { + if (['unconditional_image', 'speech_translation', 'video_upscale'].includes(template.mode)) { assert.equal(template.prompt, '', `${template.id} keeps its prompt-free task contract`); } else { assert.ok(template.prompt.trim(), `${template.id} retains the recorded prompt`); diff --git a/scripts/retained-gallery-release.mjs b/scripts/retained-gallery-release.mjs index 95ca854e..3e5749e3 100644 --- a/scripts/retained-gallery-release.mjs +++ b/scripts/retained-gallery-release.mjs @@ -94,6 +94,38 @@ export function assertRetainedVideoReference(recipe, approvedFiles, nativeReceip } } +const motionInputRoles = [ + ['face', 'faceVideo', 'face_video', 'approvedFaceVideoPath'], + ['pose', 'poseVideo', 'pose_video', 'approvedPoseVideoPath'], + ['background', 'backgroundVideo', 'background_video', 'approvedBackgroundVideoPath'], + ['mask', 'maskVideo', 'mask', 'approvedMaskVideoPath'], +]; + +export function assertRetainedMotionInputs(recipe, approvedFiles, nativeReceipt) { + const expected = []; + const hashes = recipe.videoConditionerHashes ?? {}; + for (const [role, field, consumerPort, approvalKey] of motionInputRoles) { + const sha256 = hashes[role]; + assert.equal(approvedFiles[approvalKey]?.sha256, sha256); + if (sha256 === undefined) continue; + assert.match(sha256, /^[a-f0-9]{64}$/u); + assert.ok( + recipe.template.inputBindings?.some((binding) => binding.field === field && binding.mediaType === 'video'), + 'The retained recipe must declare its motion video input.', + ); + expected.push({ role, consumerPort, sha256 }); + } + assert.equal(Object.keys(hashes).length, expected.length, 'Unknown retained motion input role.'); + if (expected.length && nativeReceipt) { + const observed = nativeReceipt.videoConditionBindings?.map(({ role, consumerPort, sha256 }) => ({ + role, + consumerPort, + sha256, + })); + same(observed, expected, 'Published motion input differs from the saved typed binding.'); + } +} + function assertRetainedBatchEvidence({ recipe, sourceWorkflow, @@ -132,6 +164,7 @@ function assertRetainedBatchEvidence({ assert.equal(association.approvedFiles.approvedClosingFramePath?.sha256, recipe.lastFrameSha256); assert.equal(association.approvedFiles.approvedSecondaryReferencePath?.sha256, recipe.secondaryReferenceSha256); assertRetainedVideoReference(recipe, association.approvedFiles, nativeReceipt); + assertRetainedMotionInputs(recipe, association.approvedFiles, nativeReceipt); if (recipe.secondaryReferenceSha256) { assert.equal(recipe.template.mode, 'multi_image_reference_edit'); same( diff --git a/scripts/retained-gallery-release.test.mjs b/scripts/retained-gallery-release.test.mjs index 611a9c1f..dfb741ff 100644 --- a/scripts/retained-gallery-release.test.mjs +++ b/scripts/retained-gallery-release.test.mjs @@ -6,6 +6,7 @@ import { test } from 'node:test'; import { canonicalJsonHash } from './canonical-json.mjs'; import { canonicalWorkflowContract, readCanonicalEvidenceFile } from './release-contract-core.mjs'; import { + assertRetainedMotionInputs, assertRetainedVideoAdjustment, assertRetainedVideoReference, createRetainedGalleryReleaseReader, @@ -106,6 +107,40 @@ test('a retained video reference binds the declared material image to the exact ); }); +test('retained motion roles reject swapped, omitted, and undeclared inputs', () => { + const face = '2'.repeat(64); + const pose = '3'.repeat(64); + const recipe = { + videoConditionerHashes: { face, pose }, + template: { + inputBindings: [ + { field: 'faceVideo', mediaType: 'video' }, + { field: 'poseVideo', mediaType: 'video' }, + ], + }, + }; + const approved = { approvedFaceVideoPath: { sha256: face }, approvedPoseVideoPath: { sha256: pose } }; + const bindings = [ + { role: 'face', consumerPort: 'face_video', sha256: face }, + { role: 'pose', consumerPort: 'pose_video', sha256: pose }, + ]; + assert.doesNotThrow(() => assertRetainedMotionInputs(recipe, approved, { videoConditionBindings: bindings })); + assert.throws(() => assertRetainedMotionInputs(recipe, { ...approved, approvedFaceVideoPath: { sha256: pose } })); + assert.throws(() => assertRetainedMotionInputs(recipe, { approvedFaceVideoPath: { sha256: face } })); + assert.throws( + () => + assertRetainedMotionInputs( + { ...recipe, videoConditionerHashes: { face, pose, unknown: '4'.repeat(64) } }, + approved, + ), + /Unknown retained motion input role/u, + ); + assert.throws( + () => assertRetainedMotionInputs(recipe, approved, { videoConditionBindings: [...bindings].reverse() }), + /differs from the saved typed binding/u, + ); +}); + test('an exposure-corrected retained video stays bound to its silent source and frame cadence', () => { const video = { width: 512, height: 512, frames: 16, fps: 8, durationSeconds: 2 }; const native = { outputHash: 'native-file', decodedOutput: { kind: 'video', hash: 'native-video', ...video } }; diff --git a/scripts/retained-gallery-templates.test.mjs b/scripts/retained-gallery-templates.test.mjs index b8f09a46..5551fa7c 100644 --- a/scripts/retained-gallery-templates.test.mjs +++ b/scripts/retained-gallery-templates.test.mjs @@ -194,6 +194,7 @@ test('retained Gallery recipes preserve the native graph identities and standalo recipe.guideSha256, recipe.lastFrameSha256, recipe.secondaryReferenceSha256, + ...Object.values(recipe.videoConditionerHashes ?? {}), ]), ] .filter(Boolean) @@ -342,6 +343,15 @@ test('fresh Expert recipes prepare with current backend specs and without a gene ] : []; const mask = recipe.maskSha256 ? 'review-mask-image.png' : undefined; + const motionInputRoles = [ + ['face', 'faceVideo', 'loadFaceVideo', 'face_video'], + ['pose', 'poseVideo', 'loadPoseVideo', 'pose_video'], + ['background', 'backgroundVideo', 'loadBackgroundVideo', 'background_video'], + ['mask', 'maskVideo', 'loadMaskVideo', 'mask'], + ].filter(([role]) => recipe.videoConditionerHashes?.[role]); + const motionInputs = Object.fromEntries( + motionInputRoles.map(([role, field]) => [field, 'review-' + role + '.mp4']), + ); const tabId = studio.getState().createWorkflowTab(template.label, undefined, 'template', template.id); studio.getState().applyTemplate( template, @@ -353,6 +363,7 @@ test('fresh Expert recipes prepare with current backend specs and without a gene ...(guide && { controlImage: guide }), ...(sourceVideo && { sourceVideo: 'review-source-video.mp4' }), ...(controlVideo && { controlVideo: 'review-control-video.mp4' }), + ...motionInputs, }, ); const form = studio.getState().form; @@ -435,6 +446,24 @@ test('fresh Expert recipes prepare with current backend specs and without a gene assert.deepEqual([source.params.file.value].flat(), input); assert.equal(generation.params.reference_images.sourceId, binding.nodes.loadImage); } + for (const [, field, role, port] of motionInputRoles) { + const loaderId = binding.nodes[role]; + assert.equal(api.nodes[loaderId].params.file.value, motionInputs[field]); + assert.equal(generation.params[port].sourceId, loaderId); + assert.equal(generation.params[port].sourceKey, 'video'); + } + if (motionInputRoles.length) { + const { coerceStudioFormState } = await server.ssrLoadModule('/src/studio/outputContracts.ts'); + const { inferStudioFormFromWorkflow } = await server.ssrLoadModule('/src/studio/workflowInference.ts'); + const restored = coerceStudioFormState(JSON.parse(JSON.stringify(form))); + const inferred = inferStudioFormFromWorkflow(flow.getState().nodes, form, flow.getState().edges); + assert.equal(inferred.mode, template.mode); + assert.equal(inferred.sourceVideo, ''); + for (const [, field] of motionInputRoles) { + assert.equal(restored[field], motionInputs[field]); + assert.equal(inferred[field], motionInputs[field]); + } + } continue; } assert.deepEqual(loader.params.model_id.value, { source: 'hub', value: template.modelArtifact.value }); diff --git a/src/studio/executionSpecValues.ts b/src/studio/executionSpecValues.ts index 1f927cf1..6a4907f9 100644 --- a/src/studio/executionSpecValues.ts +++ b/src/studio/executionSpecValues.ts @@ -166,9 +166,9 @@ export function resolveStudioExecutionSpecValues( maxAdjustment12: 12, boundaryFade001: 0.01, lastImage: hasDistinctLastImage ? (form.referenceImages[1] ?? '') : '', - poseVideo: '', - faceVideo: '', - backgroundVideo: '', + poseVideo: form.poseVideo ?? '', + faceVideo: form.faceVideo ?? '', + backgroundVideo: form.backgroundVideo ?? '', promptRef: '人物动作的参考视频', segmentFrameLength: 81, previousConditioningFrames: 1, diff --git a/src/studio/outputContracts.ts b/src/studio/outputContracts.ts index 6eac1b76..b4af5220 100644 --- a/src/studio/outputContracts.ts +++ b/src/studio/outputContracts.ts @@ -198,6 +198,9 @@ export function coerceStudioFormState(value: unknown): StudioFormState { sourceVideo: stringValue(form.sourceVideo, DEFAULT_STUDIO_FORM.sourceVideo), maskVideo: stringValue(form.maskVideo, DEFAULT_STUDIO_FORM.maskVideo), controlVideo: stringValue(form.controlVideo, DEFAULT_STUDIO_FORM.controlVideo), + ...(typeof form.poseVideo === 'string' && { poseVideo: form.poseVideo }), + ...(typeof form.faceVideo === 'string' && { faceVideo: form.faceVideo }), + ...(typeof form.backgroundVideo === 'string' && { backgroundVideo: form.backgroundVideo }), sourceAudio: stringValue(form.sourceAudio, DEFAULT_STUDIO_FORM.sourceAudio), referenceAudio: stringValue(form.referenceAudio, DEFAULT_STUDIO_FORM.referenceAudio), speechLanguage: stringValue(form.speechLanguage, DEFAULT_STUDIO_FORM.speechLanguage), diff --git a/src/studio/retainedGalleryApprovedBatch.ts b/src/studio/retainedGalleryApprovedBatch.ts index bdc3ec4f..a615e28e 100644 --- a/src/studio/retainedGalleryApprovedBatch.ts +++ b/src/studio/retainedGalleryApprovedBatch.ts @@ -7651,4 +7651,135 @@ export const APPROVED_RETAINED_TEMPLATES: StudioTemplate[] = [ 'Reproduce the reviewed Blue Hour Tram Shelter 2× example with the saved prompt, settings and model revision.', runtimeReuseKey: 'sha256:canonical-graph-v1:ee3276b1993ebb2ab0d6228468f6b3233d73daf72c758a7f2f93d48f3513837e', }, + { + id: 'wan_animate_glasshouse_keeper', + label: 'Wan 2.2 Animate — Character replace: The Glasshouse Keeper', + mode: 'character_replace', + modelType: 'WanAnimatePipeline', + intentGroup: 'video', + thumbnailVariant: 'video', + category: 'video_generation', + videoDelivery: 'native', + inputBindings: [ + { + id: 'character-reference', + label: 'Reference character', + mediaType: 'image', + field: 'referenceImages', + origin: 'user', + requiredAt: 'workflow_start', + count: 1, + }, + { + id: 'face-motion', + label: 'Face video', + mediaType: 'video', + field: 'faceVideo', + origin: 'user', + requiredAt: 'workflow_start', + count: 1, + }, + { + id: 'body-motion', + label: 'Pose video', + mediaType: 'video', + field: 'poseVideo', + origin: 'user', + requiredAt: 'workflow_start', + count: 1, + }, + { + id: 'background', + label: 'Background video', + mediaType: 'video', + field: 'backgroundVideo', + origin: 'user', + requiredAt: 'workflow_start', + count: 1, + }, + { + id: 'mask', + label: 'Mask video', + mediaType: 'video', + field: 'maskVideo', + origin: 'user', + requiredAt: 'workflow_start', + count: 1, + }, + ], + outputKinds: ['video'], + readinessPolicy: 'requires_input', + modelArtifact: { + source: 'hub', + value: 'Wan-AI/Wan2.2-Animate-14B-Diffusers', + revision: '6f4df10861c758af86ac3c979aacc1bf5c03eff0', + }, + description: + 'Reproduce the reviewed The Glasshouse Keeper example with the saved prompt, settings and model revision.', + prompt: + 'Quiet photographic tripod shot inside a cool rainy glasshouse. A single dark-haired woman in a silver outdoor jacket stands in the foreground, in the same three-quarter angle and position of the driving pose. She lifts her empty, closed right hand to shoulder height, pauses, and lowers it in one steady motion. Her elbow and left hand follow the driving pose. Her whole right hand remains clearly visible in front of the jacket. The foliage stays deep in the background behind her arms. Keep the original camera, walkway, glass roof and blue evening light. Continuous shot, same face and clothing throughout.', + negativePrompt: '', + example: { + mediaType: 'video', + status: 'unverified', + modelRevision: '6f4df10861c758af86ac3c979aacc1bf5c03eff0', + lockedSeed: 42, + lockedSettings: { + width: 768, + height: 512, + steps: 30, + guidanceScale: 3, + strength: 0.8, + outputType: 'pil', + maxSequenceLength: 512, + pagScale: 3, + pagAdaptiveScale: 0, + dtype: 'bfloat16', + resourceMode: 'expert', + quantizationMode: 'none', + autoOffload: true, + offloadMode: 'model_cpu', + numFrames: 81, + fps: 24, + guidanceScale2: 0, + shift: 3, + conditioningScale: 1, + }, + retainedVideoPreview: { + frames: 81, + fps: 24, + width: 768, + height: 512, + mediaHash: 'sha256:decoded-video-framemd5:d42abea6c6794761464962bf376e12862babe8407c7dc9277e07fe496909557c', + }, + expectedOutput: { + width: 768, + height: 512, + frames: 81, + durationSeconds: 3.375, + }, + runtimeEstimate: '726.80 seconds in the saved run', + }, + requiredBackendCapabilities: [ + 'modules.DiffusersRuntime.PipelineQuantizationConfigV2', + 'modules.DiffusersRuntime.DiffusersExecutionRecipe', + 'modules.Video.Load', + 'modules.Image.Load', + 'modules.Video.Export', + 'modules.DiffusersVideo.Generate', + 'modules.DiffusersVideo.LoadPipeline', + ], + mediaSlots: [ + { + id: 'result', + label: 'Generated video', + kind: 'video', + role: 'output', + placeholder: 'Result pending', + }, + ], + recipeSummary: + 'Reproduce the reviewed The Glasshouse Keeper example with the saved prompt, settings and model revision.', + runtimeReuseKey: 'sha256:canonical-graph-v1:120c2a963fb5ba4565a577eb4c1730b48d3d52d63f7610b6369c04ebf74af3e5', + }, ]; diff --git a/src/studio/retainedGalleryTemplates.ts b/src/studio/retainedGalleryTemplates.ts index afa99898..f35d324e 100644 --- a/src/studio/retainedGalleryTemplates.ts +++ b/src/studio/retainedGalleryTemplates.ts @@ -13,6 +13,7 @@ export type RetainedGalleryRecipe = { readonly lastFrameSha256?: string; readonly secondaryReferenceSha256?: string; readonly referenceImageSha256?: string; + readonly videoConditionerHashes?: Readonly>>; readonly reviewedCatalogLock: { readonly templateLockHash: string; readonly galleryTemplateLockHash: string; diff --git a/src/studio/templateAssetSource.json b/src/studio/templateAssetSource.json index 4fa6263e..b7a339f0 100644 --- a/src/studio/templateAssetSource.json +++ b/src/studio/templateAssetSource.json @@ -4,11 +4,11 @@ "localBasePath": "/template-gallery", "repoType": "dataset", "repoId": "sourav-das/modiff-template-gallery", - "revision": "09bb6cf8c7ac96422f2de34fabe7770c9e1413db", + "revision": "2339c1cb95deb500215754b5a139c295dbbed7d7", "pathPrefix": "template-gallery", "assetManifestPath": "_modiff/template-assets.v1.json", - "assetSetId": "sha256:canonical-json:b3f3e76073f3c9f06f92356fd1948827fdd1905b652d4d04867a57ab74b555a8", - "completeAssetSetId": "sha256:canonical-json:1d5ae5e7fa702186eb134bfa4d86f7e4f517faf88720885ddd6960980505fd6b", + "assetSetId": "sha256:canonical-json:9b66cb94c2c55a8c0f1d0e17b7ecff667fb8553dc6bd16dc4e9bfcedf8325939", + "completeAssetSetId": "sha256:canonical-json:6dae2febe2da4a2154a550b5eb6530843803c6fe838fd2a3220dda5337b45c1e", "unavailableAssets": [ "template-gallery/ace_step_chinese_new_year_lora.card-poster.png", "template-gallery/ace_step_chinese_new_year_lora.wav", diff --git a/src/studio/templateInputs.ts b/src/studio/templateInputs.ts index adf66926..ca048215 100644 --- a/src/studio/templateInputs.ts +++ b/src/studio/templateInputs.ts @@ -35,6 +35,9 @@ const FORM_FIELD_LABELS: Record = { sourceVideo: 'Source video', maskVideo: 'Mask video', controlVideo: 'Control video', + poseVideo: 'Pose video', + faceVideo: 'Face video', + backgroundVideo: 'Background video', sourceAudio: 'Source audio', referenceAudio: 'Reference audio', }; diff --git a/src/studio/types.ts b/src/studio/types.ts index fcdf7f51..88d5b1cd 100644 --- a/src/studio/types.ts +++ b/src/studio/types.ts @@ -403,6 +403,7 @@ export type StudioTemplateId = | 'wan_vace_outpaint_reframe' | 'wan_vace_reference_motion' | 'wan_vace_grayscale_control' + | 'wan_animate_glasshouse_keeper' | 'ace_step_text_to_audio' | 'minimax_music3_chamber_pop' | 'ace_step_audio_variation' @@ -973,6 +974,9 @@ export type StudioFormState = { sourceVideo: string; maskVideo: string; controlVideo: string; + poseVideo?: string; + faceVideo?: string; + backgroundVideo?: string; sourceAudio: string; referenceAudio: string; speechLanguage: string; @@ -1580,6 +1584,9 @@ export type StudioTemplateInputFormField = | 'sourceVideo' | 'maskVideo' | 'controlVideo' + | 'poseVideo' + | 'faceVideo' + | 'backgroundVideo' | 'sourceAudio' | 'referenceAudio'; diff --git a/src/studio/workflowInference.ts b/src/studio/workflowInference.ts index d1be44ae..27d75a1b 100644 --- a/src/studio/workflowInference.ts +++ b/src/studio/workflowInference.ts @@ -617,9 +617,17 @@ export function inferStudioFormFromWorkflow( const loadAudios = nodes.filter((node) => node.data?.action === 'Load' && nodeKey(node).startsWith('modules.Audio.')); const sourceVideoNode = loadVideos.find((node) => node.data?.studioRole === 'loadVideo') ?? - loadVideos.find((node) => !['loadControlVideo', 'loadMaskVideo'].includes(String(node.data?.studioRole))); + loadVideos.find( + (node) => + !['loadControlVideo', 'loadMaskVideo', 'loadPoseVideo', 'loadFaceVideo', 'loadBackgroundVideo'].includes( + String(node.data?.studioRole), + ), + ); const maskVideoNode = loadVideos.find((node) => node.data?.studioRole === 'loadMaskVideo'); const controlVideoNode = loadVideos.find((node) => node.data?.studioRole === 'loadControlVideo'); + const poseVideoNode = loadVideos.find((node) => node.data?.studioRole === 'loadPoseVideo'); + const faceVideoNode = loadVideos.find((node) => node.data?.studioRole === 'loadFaceVideo'); + const backgroundVideoNode = loadVideos.find((node) => node.data?.studioRole === 'loadBackgroundVideo'); const videoOperationNode = findProcessor(nodes, VIDEO_PROCESSOR); const videoUpscaleNode = findProcessor(nodes, VIDEO_UPSCALER); const operationVideos = @@ -704,6 +712,9 @@ export function inferStudioFormFromWorkflow( stringValue(paramValue(sourceVideoNode, ['file'])), maskVideo: stringValue(paramValue(maskVideoNode, ['file'])), controlVideo: stringValue(paramValue(controlVideoNode, ['file'])), + ...(poseVideoNode && { poseVideo: stringValue(paramValue(poseVideoNode, ['file'])) }), + ...(faceVideoNode && { faceVideo: stringValue(paramValue(faceVideoNode, ['file'])) }), + ...(backgroundVideoNode && { backgroundVideo: stringValue(paramValue(backgroundVideoNode, ['file'])) }), sourceAudio: stringValue(paramValue(loadAudioNode, ['file'])), referenceAudio: stringValue(paramValue(loadReferenceAudioNode, ['file'])), speechLanguage: From 0bd6e65b015a4eb11273e7c0d39706bbd402a9f4 Mon Sep 17 00:00:00 2001 From: Sourav Das Date: Wed, 25 Nov 2026 18:40:37 +0530 Subject: [PATCH 385/440] Validate the saved FLUX.1 enamel edit receipt --- scripts/private-image-edit-evidence.mjs | 29 +++++++++++++++++--- scripts/private-image-edit-evidence.test.mjs | 11 ++++++++ scripts/release-contract-core.mjs | 1 + 3 files changed, 37 insertions(+), 4 deletions(-) diff --git a/scripts/private-image-edit-evidence.mjs b/scripts/private-image-edit-evidence.mjs index 638a29f0..f6be5008 100644 --- a/scripts/private-image-edit-evidence.mjs +++ b/scripts/private-image-edit-evidence.mjs @@ -33,6 +33,7 @@ export const NATIVE_PNG_EDIT_FORMAT = 'modiff.private.direct-image-edit-native-p export const NATIVE_PNG_INPAINT_FORMAT = 'modiff.private.direct-image-inpaint-native-png.v1'; export const SAVED_PNG_EDIT_FORMAT = 'modiff.private.saved-image-edit-native-png.v1'; const SAVED_WEBP_EDIT_FORMAT = 'modiff.private.saved-image-edit-native-webp.v1'; +const FLUX_ENAMEL_EDIT_FORMAT = 'modiff.private.flux-enamel-edit-native-webp.v1'; const SAVED_HOST_FILE_EDIT_FORMAT = 'modiff.private.saved-image-edit-native-host-file.v1'; const RETAINED_SERVER_EDIT_FORMAT = 'modiff.private.server-retained-image-edit-native-png.v1'; const baseConsumed = ['num_inference_steps', 'output_type', 'prompt', 'seed']; @@ -127,6 +128,14 @@ const editRoutes = new Map([ runtimeContractDigest: retainedCfgInpaint.runtimeContractDigest, fullNativeSnapshot: true, guidanceObservedAsTrueCfg: true, + savedNativeRecipe: { + format: FLUX_ENAMEL_EDIT_FORMAT, + sourceFingerprint: 'sha256:backend-source-v1:b29a5b0d317aaa781ae2a5205b46b518eea5a3d68a214eb0968dba4ac0660af7', + originalRegistryHash: '194fdfe25573ca708535e0913337cfee8c1137a2b3860f5c5c5a7c5419951d46', + strengthVariant: { original: 0.8, retained: 0.92 }, + guidanceVariant: { original: 3.5, retained: 4 }, + nativeSourceMedia: false, + }, }, ], [ @@ -694,6 +703,7 @@ export function bindPrivateImageEditGraph({ maskInput, references = [], strengthVariant, + guidanceVariant, canvasVariant, inputPathPrefix = '', nativePngEvidence = false, @@ -732,6 +742,10 @@ export function bindPrivateImageEditGraph({ assert.equal(canonical.edit.node.params.strength.value, strengthVariant.original); canonical.edit.node.params.strength.value = strengthVariant.retained; } + if (guidanceVariant) { + assert.equal(canonical.edit.node.params.guidance_scale.value, guidanceVariant.original); + canonical.edit.node.params.guidance_scale.value = guidanceVariant.retained; + } for (const [field, original, retained] of canvasVariant ?? []) { const setting = canonical.canvas.node.params[field]; same(setting, { value: original }); @@ -965,7 +979,7 @@ async function verifySavedImageSource(bound, output, { input, maskInput, referen entry, decodedImage, bytes, - role !== 'mask' && route.format === SAVED_WEBP_EDIT_FORMAT ? 'webp' : 'png', + role !== 'mask' && isNativeWebpEdit(route.format) ? 'webp' : 'png', ); } return decodedImage; @@ -1117,6 +1131,10 @@ function verifyRetainedImageUpload(upload, input, decoded, bytes, encoding) { } } +function isNativeWebpEdit(format) { + return format === SAVED_WEBP_EDIT_FORMAT || format === FLUX_ENAMEL_EDIT_FORMAT; +} + export async function readPrivateImageEditEvidence({ clientRoot, manifest, graph, authoring, artifact, evidencePath }) { const workflowId = manifest.id; const { modelRepo, modelRevision, loaderClass } = reviewedEditRoute(workflowId); @@ -1133,7 +1151,7 @@ export async function readPrivateImageEditEvidence({ clientRoot, manifest, graph const hostFileWitness = evidence.format === SAVED_HOST_FILE_EDIT_FORMAT && evidence.format === route.format; const savedImage = hostFileWitness || - ([SAVED_PNG_EDIT_FORMAT, SAVED_WEBP_EDIT_FORMAT, RETAINED_SERVER_EDIT_FORMAT].includes(route.format) && + ((isNativeWebpEdit(route.format) || [SAVED_PNG_EDIT_FORMAT, RETAINED_SERVER_EDIT_FORMAT].includes(route.format)) && evidence.format === route.format); const replayedRegistry = savedImage && !route.originalRegistryHash; const referenceCount = route.orderedReferences ?? 0; @@ -1234,9 +1252,10 @@ export async function readPrivateImageEditEvidence({ clientRoot, manifest, graph maskInput, references, strengthVariant: reviewedSourceRecipe?.strengthVariant ?? route.strengthVariant, + guidanceVariant: route.guidanceVariant, canvasVariant: route.canvasVariant, inputPathPrefix: route.inputPathPrefix, - nativePngEvidence: nativeUpload && route.format !== SAVED_WEBP_EDIT_FORMAT, + nativePngEvidence: nativeUpload && !isNativeWebpEdit(route.format), residentRecipe: route.residentRecipe, cpuExecution: route.cpuExecution, }); @@ -1440,7 +1459,9 @@ export async function readPrivateImageEditEvidence({ clientRoot, manifest, graph ...(bound.canvas ? { canvasSizeObserved: true, canvasPixelsObserved: false, derivedMaskPixelsObserved: false } : {}), - ...(alternate?.nativeSourceMedia === false ? { fullSourceDecodeRecordObserved: false } : {}), + ...((alternate?.nativeSourceMedia ?? route.nativeSourceMedia) === false + ? { fullSourceDecodeRecordObserved: false } + : {}), ...(masked ? { maskByteWitness: savedImage ? 'native-load-and-upload-with-typed-wire' : 'native-load-consumer-and-upload' } : {}), diff --git a/scripts/private-image-edit-evidence.test.mjs b/scripts/private-image-edit-evidence.test.mjs index 1db56867..0ad2de6c 100644 --- a/scripts/private-image-edit-evidence.test.mjs +++ b/scripts/private-image-edit-evidence.test.mjs @@ -219,6 +219,7 @@ test('private direct image edit graph binds exactly one empty file and one empty params: { prompt: { value: '' }, strength: { value: 0.8 }, + guidance_scale: { value: 3.5 }, image: { display: 'input', sourceId: 'source', sourceKey: 'image' }, }, }, @@ -243,6 +244,15 @@ test('private direct image edit graph binds exactly one empty file and one empty assert.throws(() => bindVariant({ ...strengthVariant, original: 0.5 })); submitted.nodes.edit.params.strength.value = 0.8; assert.throws(() => bindVariant(), /differs outside/u); + submitted.nodes.edit.params.guidance_scale.value = 4; + assert.throws(invoke, /differs outside/u); + const guidanceVariant = { original: 3.5, retained: 4 }; + const bindGuidance = () => bindPrivateImageEditGraph({ expected, submitted, input, guidanceVariant }); + assert.equal(bindGuidance().edit.node.params.guidance_scale.value, 4); + assert.equal(expected.nodes.edit.params.guidance_scale.value, 3.5); + submitted.nodes.edit.params.guidance_scale.value = 5; + assert.throws(bindGuidance, /differs outside/u); + submitted.nodes.edit.params.guidance_scale.value = 3.5; const scoped = { ...input, sourceValue: '@data/images/source.webp' }; submitted.nodes.source.params.file.value = [scoped.sourceValue]; assert.equal( @@ -493,6 +503,7 @@ for (const [workflowId, variable, hasMask, unobserved] of [ ['JoyImageEditPipeline:edit_image', 'MODIFF_SAVED_JOY_BASE_EDIT_EVIDENCE', false, []], ['StableDiffusionXLPipeline:edit_image', 'MODIFF_SDXL_LINEN_EDIT_EVIDENCE', false, []], ['FluxDevPipeline:edit_image', 'MODIFF_SAVED_FLUX_DEV_TEAPOT_EVIDENCE', false, []], + ['FluxDevPipeline:edit_image', 'MODIFF_FLUX_ENAMEL_EDIT_EVIDENCE', false, []], ['FluxKontextInpaintPipeline:inpaint', 'MODIFF_SAVED_KONTEXT_WINDOW_EVIDENCE', true, []], [ 'FluxKontextInpaintPipeline:outpaint', diff --git a/scripts/release-contract-core.mjs b/scripts/release-contract-core.mjs index 8de94ff4..151f7fad 100644 --- a/scripts/release-contract-core.mjs +++ b/scripts/release-contract-core.mjs @@ -885,6 +885,7 @@ export async function readCanonicalWorkflowEvidence({ clientRoot, backendRoot, w 'modiff.private.direct-image-inpaint-native-png.v1', 'modiff.private.saved-image-edit-native-png.v1', 'modiff.private.saved-image-edit-native-webp.v1', + 'modiff.private.flux-enamel-edit-native-webp.v1', 'modiff.private.saved-image-edit-native-host-file.v1', 'modiff.private.server-retained-image-edit-native-png.v1', ].includes(evidence.format) From 4c553afd0ec1e141d792e837a1601354e48ed004 Mon Sep 17 00:00:00 2001 From: Sourav Das Date: Wed, 25 Nov 2026 20:36:22 +0530 Subject: [PATCH 386/440] Verify retained guarded and input-bound workflow executions --- scripts/live-proof-provenance.mjs | 95 +++++++++++--- scripts/live-qwen-proof.test.mjs | 68 ++++++++++ scripts/private-image-edit-evidence.mjs | 12 +- scripts/private-image-edit-evidence.test.mjs | 12 +- scripts/prompt-variant-evidence.mjs | 25 +++- scripts/prompt-variant-evidence.test.mjs | 22 ++++ scripts/release-contract-core.mjs | 9 +- scripts/saved-control-image-evidence.mjs | 120 ++++++++++++++++-- scripts/saved-control-image-evidence.test.mjs | 18 ++- 9 files changed, 337 insertions(+), 44 deletions(-) diff --git a/scripts/live-proof-provenance.mjs b/scripts/live-proof-provenance.mjs index 9de66766..1f1b9228 100644 --- a/scripts/live-proof-provenance.mjs +++ b/scripts/live-proof-provenance.mjs @@ -768,14 +768,19 @@ function nativeExpertOwnerCaptureMatches(apiGraph, context, ownerId, owner) { same(output.formSnapshot, snapshot.studioForm); const entries = nodeEntries(apiGraph), ids = new Set(entries.map(([id]) => id)); + const guardedCosmos = apiParamValue(owner, 'model_type') === 'Cosmos3OmniModularPipeline'; + const stages = guardedCosmos + ? ['WorkflowCosmos3OmniTextEncode', 'WorkflowCosmos3OmniDenoise', 'WorkflowCosmos3OmniDecode'] + : ['EncodePrompt', 'Denoise', 'DecodeLatents']; + const scopedActions = ['ModelsLoader', ...stages, ...(guardedCosmos ? [] : ['Guider', 'Lora'])]; same([...new Set(apiGraph.paths.flat())].sort(), [...ids].sort()); const byScope = new Map(); for (const [id, node] of entries) { const kind = node.module + '.' + node.action; assert( - ['ModelsLoader', 'EncodePrompt', 'Guider', 'Denoise', 'DecodeLatents', 'Lora'] + scopedActions .map((a) => 'modules.ModularDiffusers.' + a) - .concat('modules.Spandrel.Upscaler', 'modules.Image.Preview') + .concat('modules.Image.Preview', ...(guardedCosmos ? [] : ['modules.Spandrel.Upscaler'])) .includes(kind), ); const list = byScope.get(kind) ?? []; @@ -783,23 +788,28 @@ function nativeExpertOwnerCaptureMatches(apiGraph, context, ownerId, owner) { byScope.set(kind, list); for (const param of Object.values(node.params)) if (param.sourceId) assert(ids.has(param.sourceId)); } - for (const action of ['ModelsLoader', 'EncodePrompt', 'Denoise', 'DecodeLatents']) + for (const action of ['ModelsLoader', ...stages]) assert.equal(byScope.get('modules.ModularDiffusers.' + action)?.length, 1); assert((byScope.get('modules.ModularDiffusers.Guider')?.length ?? 0) <= 1); assert((byScope.get('modules.Spandrel.Upscaler')?.length ?? 0) <= 1); const previews = byScope.get('modules.Image.Preview'); assert(previews?.length >= 1 && previews.length <= 2); - const decode = byScope.get('modules.ModularDiffusers.DecodeLatents')[0], - denoise = byScope.get('modules.ModularDiffusers.Denoise')[0], - encode = byScope.get('modules.ModularDiffusers.EncodePrompt')[0]; - for (const [role, field, producer, port] of [ - [encode, 'text_encoders', ownerId, 'text_encoders'], - [denoise, 'unet', ownerId, 'unet_out'], - [denoise, 'scheduler', ownerId, 'scheduler'], - [denoise, 'embeddings', encode.id, 'embeddings'], - [decode, 'vae', ownerId, 'vae_out'], - [decode, 'latents', denoise.id, 'latents'], - ]) + const [encode, denoise, decode] = stages.map((stage) => byScope.get('modules.ModularDiffusers.' + stage)[0]); + const connections = guardedCosmos + ? [ + ...[encode, denoise, decode].map((stage) => [stage, 'pipeline_components', ownerId, 'pipeline_components']), + [denoise, 'state_in', encode.id, 'state_out'], + [decode, 'state_in', denoise.id, 'state_out'], + ] + : [ + [encode, 'text_encoders', ownerId, 'text_encoders'], + [denoise, 'unet', ownerId, 'unet_out'], + [denoise, 'scheduler', ownerId, 'scheduler'], + [denoise, 'embeddings', encode.id, 'embeddings'], + [decode, 'vae', ownerId, 'vae_out'], + [decode, 'latents', denoise.id, 'latents'], + ]; + for (const [role, field, producer, port] of connections) same(connectedParamSource(role.node, field), { nodeId: producer, field: port }); const guider = byScope.get('modules.ModularDiffusers.Guider')?.[0]; if (guider) same(connectedParamSource(denoise.node, 'guider'), { nodeId: guider.id, field: 'guider_out' }); @@ -810,7 +820,7 @@ function nativeExpertOwnerCaptureMatches(apiGraph, context, ownerId, owner) { const expected = p.id === output.nodeId && upscaler ? { nodeId: upscaler.id, field: 'output' } - : { nodeId: decode.id, field: 'images' }; + : { nodeId: decode.id, field: guardedCosmos ? 'image' : 'images' }; same(connectedParamSource(p.node, 'image'), expected); } const receipt = output.resolvedExecutionInputs; @@ -859,6 +869,61 @@ function nativeExpertOwnerCaptureMatches(apiGraph, context, ownerId, owner) { same(field.value, expected, 'Native Expert consumed ' + key); assert(!Object.hasOwn(rows.get(ownerId).omittedFields ?? {}, key)); } + if (guardedCosmos) { + // Cosmos owns prompt and output safety in the connected component bundle. + // Only its exact guarded text-to-image profile can use this receipt path. + assert.equal(previews.length, 1); + same(apiGraph.paths, [[ownerId, encode.id, denoise.id, decode.id, previews[0].id]]); + const wiredFields = [...connections, [previews[0], 'image', decode.id, 'image']]; + for (const [id, node] of entries) { + same( + Object.keys(node.params) + .filter((key) => connectedParamSource(node, key)) + .sort(), + wiredFields + .filter(([stage]) => stage.id === id) + .map(([, field]) => field) + .sort(), + ); + } + same(apiParamValue(owner, 'reviewed_variant'), 'nvidia/Cosmos3-Super-Text2Image'); + same(apiParamValue(owner, 'workflow_id'), 'text2image'); + same( + modelSetIdentity(modelIdentities).items.map(({ repoId, selectedRevision }) => [repoId, selectedRevision]), + [ + ['nvidia/Cosmos-Guardrail1', 'd6d4bfa899a71454a700907664f3e88f503950cf'], + ['nvidia/Cosmos3-Super-Text2Image', 'daf3d374804be4c512c2135568a7cb95d4341d79'], + ['Qwen/Qwen3Guard-Gen-0.6B', 'fada3b2f655b89601929198343c94cd2f64d93cc'], + ], + ); + assert( + modelIdentities.every( + (model) => model.fingerprint && model.modelRevision === model.repoId + '@' + model.selectedRevision, + ), + ); + same(apiParamValue(owner, 'repo_id')?.value, 'nvidia/Cosmos3-Super-Text2Image'); + same(apiParamValue(owner, 'revision'), 'daf3d374804be4c512c2135568a7cb95d4341d79'); + for (const [stage, block] of [ + [encode, 'text_encoder'], + [denoise, 'denoise'], + [decode, 'decode'], + ]) { + same(apiParamValue(stage.node, 'pipeline_class'), 'Cosmos3OmniModularPipeline'); + same(apiParamValue(stage.node, 'workflow_id'), 'text2image'); + same(apiParamValue(stage.node, 'block_path'), block); + } + for (const [stage, fields] of [ + [encode, ['prompt', 'negative_prompt', 'width', 'height', 'num_frames', 'fps']], + [denoise, ['num_inference_steps', 'guidance_scale', 'seed']], + ]) { + for (const key of fields) { + same(rows.get(stage.id).fields[key], { source: 'literal', value: apiParamValue(stage.node, key) }); + assert(!Object.hasOwn(rows.get(stage.id).omittedFields ?? {}, key)); + } + } + assert.equal(apiParamValue(encode.node, 'num_frames'), 1); + return true; + } if (upscaler) for (const key of ['model_id', 'device']) { const param = upscaler.node.params[key]; diff --git a/scripts/live-qwen-proof.test.mjs b/scripts/live-qwen-proof.test.mjs index 6babd34b..629686cb 100644 --- a/scripts/live-qwen-proof.test.mjs +++ b/scripts/live-qwen-proof.test.mjs @@ -41,6 +41,74 @@ import { const ROOT = resolve(dirname(fileURLToPath(import.meta.url)), '..'); +const cosmosNativeDir = process.env.MODIFF_SAVED_COSMOS_NATIVE_DIR; + +test( + 'retained Cosmos native proof requires the exact guarded component and state chain', + { skip: !cosmosNativeDir }, + () => { + const read = (file) => JSON.parse(readFileSync(resolve(cosmosNativeDir, file), 'utf8')); + const expected = read('template-provenance.verified.private.json'); + const run = read('run-detail.final.original.json'); + const executedOutput = read('output-package.final.original.json').latestOutput; + const modelIdentities = [ + 'nvidia/Cosmos3-Super-Text2Image', + 'nvidia/Cosmos-Guardrail1', + 'Qwen/Qwen3Guard-Gen-0.6B', + ].map((repo, index) => selectInstalledModelIdentity(read(`model-fingerprints-${index}.original.json`), repo)); + const args = { + templateId: expected.template.id, + lockedSettings: expected.template.lockedSettings, + promptSettingsHash: expected.template.promptSettingsHash, + catalogTemplateLockHash: expected.template.catalogTemplateLockHash, + resolvedTemplateLockHash: expected.template.resolvedTemplateLockHash, + expectedOutput: expected.template.expectedOutput, + apiGraph: read('graph-request.original.json'), + nodesPayload: read('nodes.original.json'), + modelIdentities, + runtimeFingerprint: run.task.runtimeFingerprint, + deterministicMode: executedOutput.apiGraphSnapshot.deterministicMode, + backendSource: expected.runtime.backendSource, + outputAnalysis: { analyses: expected.output.items }, + executedOutput, + executionReceipt: run.task, + taskId: run.task.task_id, + capturedAt: expected.capturedAt, + }; + const verified = createRunProvenance(args); + assert.deepEqual(verified.blockers, []); + assert.deepEqual(validateRunProvenance(verified), []); + assert.equal(verified.execution.resourceCandidateId, expected.execution.resourceCandidateId); + assert.equal(verified.mediaHash, expected.mediaHash); + + for (const mutate of [ + (caseArgs) => caseArgs.modelIdentities.splice(1, 1), + (caseArgs) => { + caseArgs.modelIdentities[1].selectedRevision = '0'.repeat(40); + }, + (caseArgs) => { + const decoder = Object.values(caseArgs.apiGraph.nodes).find( + (node) => node.action === 'WorkflowCosmos3OmniDecode', + ); + decoder.params.state_in.sourceId = decoder.params.pipeline_components.sourceId; + caseArgs.executedOutput.apiGraphSnapshot = structuredClone(caseArgs.apiGraph); + }, + (caseArgs) => { + const sampler = caseArgs.executedOutput.resolvedExecutionInputs.nodes.find( + (node) => node.action === 'WorkflowCosmos3OmniDenoise', + ); + sampler.fields.seed.value += 1; + }, + ]) { + const altered = structuredClone(args); + mutate(altered); + const rejected = createRunProvenance(altered); + assert.equal(rejected.execution.resourceCandidateId, null); + assert.ok(rejected.blockers.includes('execution.resourceCandidateId is missing.')); + } + }, +); + test('optional native applied adapter proof locks exact order and distinguishes reuse without changing historical requirements', () => { const args = appliedOrderCase(); const before = JSON.stringify(args); diff --git a/scripts/private-image-edit-evidence.mjs b/scripts/private-image-edit-evidence.mjs index f6be5008..b159af77 100644 --- a/scripts/private-image-edit-evidence.mjs +++ b/scripts/private-image-edit-evidence.mjs @@ -33,6 +33,7 @@ export const NATIVE_PNG_EDIT_FORMAT = 'modiff.private.direct-image-edit-native-p export const NATIVE_PNG_INPAINT_FORMAT = 'modiff.private.direct-image-inpaint-native-png.v1'; export const SAVED_PNG_EDIT_FORMAT = 'modiff.private.saved-image-edit-native-png.v1'; const SAVED_WEBP_EDIT_FORMAT = 'modiff.private.saved-image-edit-native-webp.v1'; +const NATIVE_WEBP_EDIT_FORMAT = 'modiff.private.direct-image-edit-native-webp.v1'; const FLUX_ENAMEL_EDIT_FORMAT = 'modiff.private.flux-enamel-edit-native-webp.v1'; const SAVED_HOST_FILE_EDIT_FORMAT = 'modiff.private.saved-image-edit-native-host-file.v1'; const RETAINED_SERVER_EDIT_FORMAT = 'modiff.private.server-retained-image-edit-native-png.v1'; @@ -181,6 +182,15 @@ const editRoutes = new Map([ loaderClass: 'FluxKontextInpaintPipeline', originalRegistryHash: '4a6a3ee6a0ba2f07d6e2f66daf085d4d43b70e0180a4b277b44b0b25f7a4c06c', fullNativeSnapshot: false, + savedNativeRecipe: { + format: NATIVE_WEBP_EDIT_FORMAT, + sourceFingerprint: 'sha256:backend-source-v1:b29a5b0d317aaa781ae2a5205b46b518eea5a3d68a214eb0968dba4ac0660af7', + originalRegistryHash: '194fdfe25573ca708535e0913337cfee8c1137a2b3860f5c5c5a7c5419951d46', + strengthVariant: { original: 0.8, retained: 0.96 }, + fullNativeSnapshot: true, + nativeSourceMedia: false, + previousExpertFamily: 'FluxImg2ImgPipeline', + }, }, ], [ @@ -1132,7 +1142,7 @@ function verifyRetainedImageUpload(upload, input, decoded, bytes, encoding) { } function isNativeWebpEdit(format) { - return format === SAVED_WEBP_EDIT_FORMAT || format === FLUX_ENAMEL_EDIT_FORMAT; + return [SAVED_WEBP_EDIT_FORMAT, NATIVE_WEBP_EDIT_FORMAT, FLUX_ENAMEL_EDIT_FORMAT].includes(format); } export async function readPrivateImageEditEvidence({ clientRoot, manifest, graph, authoring, artifact, evidencePath }) { diff --git a/scripts/private-image-edit-evidence.test.mjs b/scripts/private-image-edit-evidence.test.mjs index 0ad2de6c..1d4c8ed1 100644 --- a/scripts/private-image-edit-evidence.test.mjs +++ b/scripts/private-image-edit-evidence.test.mjs @@ -583,13 +583,19 @@ for (const [workflowId, variable, hasMask, unobserved] of [ } const descriptor = JSON.parse(original.descriptorBytes); const changedPath = join(root, 'evidence.json'); - if (variable === 'MODIFF_SAVED_SDXL_PAG_GRAPHITE_EDIT_EVIDENCE') { + const changedStrength = + variable === 'MODIFF_SAVED_SDXL_PAG_GRAPHITE_EDIT_EVIDENCE' + ? { action: 'Edit', expected: 0.85 } + : descriptor.format === 'modiff.private.direct-image-edit-native-webp.v1' + ? { action: 'Inpaint', expected: 0.96 } + : null; + if (changedStrength) { const altered = structuredClone(descriptor); const path = join(root, altered.graphRequest.path); const originalRequest = readFileSync(path); const graph = JSON.parse(originalRequest); - const edit = Object.values(graph.nodes).find(({ action }) => action === 'Edit'); - assert.equal(edit.params.strength.value, 0.85); + const edit = Object.values(graph.nodes).find(({ action }) => action === changedStrength.action); + assert.equal(edit.params.strength.value, changedStrength.expected); edit.params.strength.value = 0.8; const bytes = Buffer.from(JSON.stringify(graph)); Object.assign(altered.graphRequest, { diff --git a/scripts/prompt-variant-evidence.mjs b/scripts/prompt-variant-evidence.mjs index 36fb1f49..7948f346 100644 --- a/scripts/prompt-variant-evidence.mjs +++ b/scripts/prompt-variant-evidence.mjs @@ -623,6 +623,7 @@ const animateLcmVideoRoute = { workflowId: 'AnimateLCMPipeline:text_to_video', modelType: 'AnimateLCMPipeline', motionAdapter: { repoId: 'wangfuyun/AnimateLCM', revision: '3d4d00fc113225e1040f4d3bec504b6ec750c10c' }, + lowRamTransitionFrom: 'StableDiffusionXLControlNetPAGImg2ImgPipeline', }; const latteVideoRoute = { @@ -1112,9 +1113,23 @@ export function validateSampledCpuWorkerMemory(bytes, worker, source, task) { return peak; } -export function validateImagePromptPreparation(preparation, { modelType, previousExpertFamily }) { +export function validateImagePromptPreparation(preparation, { modelType, previousExpertFamily, lowRamTransitionFrom }) { const previous = preparation?.previousModelFamily ?? null; - assert.ok(previous === null || previous === previousExpertFamily, 'Unreviewed previous Expert model family.'); + const lowRamTransition = previous !== null && previous === lowRamTransitionFrom; + assert.ok( + previous === null || previous === previousExpertFamily || lowRamTransition, + 'Unreviewed previous Expert model family.', + ); + if (lowRamTransition) { + // Four GiB is the lower bound of the backend's RAM safety floor. The + // retained task records both the pressure and the actual model release. + assert.ok( + preparation.performed === true && + preparation.availableRamBytes < 4 * 1024 ** 3 && + preparation.cleanup?.released?.models > 0, + 'The retained low-RAM transition lacks measured pressure or model release.', + ); + } if (preparation?.performed !== true) { validateUnmodifiedExpertPreparation(preparation, modelType, previous); return; @@ -1131,7 +1146,11 @@ export function validateImagePromptPreparation(preparation, { modelType, previou } else if (previous !== null) { reason = `model family changed from ${previous} to ${modelType}`; } - same(reasons, [reason], 'Unreviewed direct image cache cleanup.'); + same( + reasons, + lowRamTransition ? [reason, 'available system memory is below the safety floor'] : [reason], + 'Unreviewed direct image cache cleanup.', + ); keys(cleanup, ['released', 'allocatorTrimmed', 'errors']); same(cleanup.errors, [], 'Direct image cache cleanup failed.'); assert.equal(typeof cleanup.allocatorTrimmed, 'boolean'); diff --git a/scripts/prompt-variant-evidence.test.mjs b/scripts/prompt-variant-evidence.test.mjs index fc193c46..d55587cc 100644 --- a/scripts/prompt-variant-evidence.test.mjs +++ b/scripts/prompt-variant-evidence.test.mjs @@ -660,6 +660,28 @@ for (const [workflowId, variable, kind, proofKind = 'real_backend_prompt_bound_m if (workflowId === 'AnimateLCMPipeline:text_to_video') { assert.equal(original.receipt.modelSet[1].repoId, 'wangfuyun/AnimateLCM'); assert.equal(original.receipt.decodedOutput.frames, 16); + const runPath = join(temp, evidence.runDetail.path); + const originalRun = readFileSync(runPath); + const run = JSON.parse(originalRun); + if (run.task.runtimePreparation.previousModelFamily === 'StableDiffusionXLControlNetPAGImg2ImgPipeline') { + const originalPreparation = run.task.runtimePreparation; + for (const [changes, failure] of [ + [{ availableRamBytes: 4 * 1024 ** 3 }, /lacks measured pressure/u], + [{ reasons: originalPreparation.reasons.slice(0, 1) }, /Unreviewed direct image cache cleanup/u], + [{ previousModelFamily: 'UnreviewedPipeline' }, /Unreviewed previous Expert model family/u], + ]) { + run.task.runtimePreparation = { ...originalPreparation, ...changes }; + const bytes = Buffer.from(JSON.stringify(run)); + const substituted = { + ...evidence, + runDetail: { ...evidence.runDetail, bytes: bytes.length, sha256: digest(bytes) }, + }; + writeFileSync(runPath, bytes); + writeFileSync(changedPath, JSON.stringify(substituted)); + await assert.rejects(() => readCanonicalWorkflowEvidence({ ...args, evidencePath: changedPath }), failure); + } + writeFileSync(runPath, originalRun); + } } const sanaOpeningImage = workflowId === 'SanaImageToVideoPipeline:image_to_video'; if (sanaOpeningImage) { diff --git a/scripts/release-contract-core.mjs b/scripts/release-contract-core.mjs index 151f7fad..9dcc2c11 100644 --- a/scripts/release-contract-core.mjs +++ b/scripts/release-contract-core.mjs @@ -885,6 +885,7 @@ export async function readCanonicalWorkflowEvidence({ clientRoot, backendRoot, w 'modiff.private.direct-image-inpaint-native-png.v1', 'modiff.private.saved-image-edit-native-png.v1', 'modiff.private.saved-image-edit-native-webp.v1', + 'modiff.private.direct-image-edit-native-webp.v1', 'modiff.private.flux-enamel-edit-native-webp.v1', 'modiff.private.saved-image-edit-native-host-file.v1', 'modiff.private.server-retained-image-edit-native-png.v1', @@ -974,9 +975,11 @@ export async function readCanonicalWorkflowEvidence({ clientRoot, backendRoot, w return readControlInpaintEvidence({ clientRoot, manifest, graph, authoring, artifact, evidencePath }); } if ( - ['modiff.private.saved-control-image-native-png.v1', 'modiff.private.saved-control-image-native-files.v1'].includes( - evidence.format, - ) + [ + 'modiff.private.saved-control-image-native-png.v1', + 'modiff.private.saved-control-image-native-files.v1', + 'modiff.private.saved-control-image-native-load-fields.v1', + ].includes(evidence.format) ) { const { readSavedControlImageEvidence } = await import('./saved-control-image-evidence.mjs'); return readSavedControlImageEvidence({ clientRoot, manifest, graph, authoring, artifact, evidencePath }); diff --git a/scripts/saved-control-image-evidence.mjs b/scripts/saved-control-image-evidence.mjs index ee92a5de..2c284cbf 100644 --- a/scripts/saved-control-image-evidence.mjs +++ b/scripts/saved-control-image-evidence.mjs @@ -33,6 +33,7 @@ import { decodedMediaHash, technicalMediaErrors } from './template-gallery-harne const format = 'modiff.private.saved-control-image-native-png.v1'; const retainedHostFormat = 'modiff.private.saved-control-image-native-files.v1'; +const loadFieldsFormat = 'modiff.private.saved-control-image-native-load-fields.v1'; const linuxReplayRuntime = '8cbe038eeeb6d4a4c079783b8d7e4915d9f78faad9495cb8e354504c66925cf5'; const windowsReplayRuntime = 'e5d045d5ecf997c0cfe8dba771fd92cfc1fef6d3e10d91791b2b5e747f384b3c'; const commonSource = 'e3aea8f8d102572ad10fdd0700f0c42d92061e864ede89777efcd6a3269770a8'; @@ -117,6 +118,17 @@ const routes = { pipelineClass: 'StableDiffusionXLControlNetPAGImg2ImgPipeline', previousExpertFamily: 'StableDiffusionXLControlNetImg2ImgPipeline', pagSettingsUnobserved: true, + loadFieldsVariant: { + source: 'b29a5b0d317aaa781ae2a5205b46b518eea5a3d68a214eb0968dba4ac0660af7', + originalRegistryHash: '194fdfe25573ca708535e0913337cfee8c1137a2b3860f5c5c5a7c5419951d46', + windows: false, + cannyMediaWitness: false, + controls: [ + ['strength', 0.8, 1], + ['conditioning_scale', 1, 0.85], + ['guidance_scale', 5, 6], + ], + }, }, 'StableDiffusionXLPAGPipeline:control_image': { pipelineClass: 'StableDiffusionXLControlNetPAGPipeline', @@ -185,9 +197,18 @@ function owners(api, route) { return { path, inputs, canny, loader, sampler, preview }; } -export function verifySavedControlImageInputs(api, output, inputs, workflowId) { +function savedControlRoute(workflowId, evidenceFormat) { const route = routes[workflowId]; assert.ok(route, 'No reviewed saved control-image route.'); + if (evidenceFormat === loadFieldsFormat) { + assert.ok(route.loadFieldsVariant, 'No reviewed control-image load evidence variant.'); + return { ...route, ...route.loadFieldsVariant, loadFieldsOnly: true }; + } + return route; +} + +export function verifySavedControlImageInputs(api, output, inputs, workflowId, evidenceFormat) { + const route = savedControlRoute(workflowId, evidenceFormat); const { path, inputs: inputOwners, canny, loader, sampler, preview } = owners(api, route); assert.equal(inputs.length, Object.keys(inputOwners).length); const receipt = output.resolvedExecutionInputs; @@ -197,7 +218,10 @@ export function verifySavedControlImageInputs(api, output, inputs, workflowId) { assert.equal(receipt.nodeId, preview); assert.equal(receipt.attemptIndex, 0); assert.equal(receipt.truncated, false); - assert.deepEqual(receipt.mediaEvidenceStatus, { schemaVersion: 1, truncated: false }); + assert.deepEqual( + receipt.mediaEvidenceStatus, + route.loadFieldsOnly ? undefined : { schemaVersion: 1, truncated: false }, + ); assert.deepEqual(receipt.unavailableFields, []); assert.deepEqual(receipt.uncapturedNodeIds, []); assert.deepEqual(receipt.nodes.map(({ nodeId }) => nodeId).sort(), [...path].sort()); @@ -210,6 +234,28 @@ export function verifySavedControlImageInputs(api, output, inputs, workflowId) { }; const decoded = Object.entries(inputOwners).map(([role, id], index) => { const input = inputs[index]; + if (route.loadFieldsOnly) { + const load = api.nodes[id]; + const row = record(id); + assert.equal(row.mediaEvidence, undefined); + const mode = role === 'mask' ? 'L' : 'RGB'; + const width = row.fields.source_widths?.value?.[0]; + const height = row.fields.source_heights?.value?.[0]; + assert.ok([width, height].every((size) => Number.isSafeInteger(size) && size > 0 && size <= 8192)); + assert.deepEqual(load.params.file, { display: 'filebrowser', value: [input.sourceValue] }); + assert.deepEqual( + row.fields, + { + alpha_channel: literal(load.params.alpha_channel.value), + source_hashes: literal([input.file.sha256]), + source_widths: literal([width]), + source_heights: literal([height]), + source_modes: literal([mode]), + }, + 'Saved image load fields differ for ' + role, + ); + return { width, height, mode }; + } const { sourceFile, decodedImage } = verifyNativeLoadedImage( api.nodes[id], record(id), @@ -301,6 +347,33 @@ function verifyIntegratedControlCheckpoint({ loader, target, pipelineClass, comp return { repoId, revision, source: 'integrated_checkpoint' }; } +function validateDirectMutationPreparation(preparation, pipelineClass, { loader, sampler, preview }) { + const { availableRamBytes, availableVramBytes, mutationPreparation, ...status } = preparation; + assert.ok([availableRamBytes, availableVramBytes].every((bytes) => Number.isSafeInteger(bytes) && bytes > 0)); + assert.deepEqual(status, { + performed: true, + reasons: ['direct pipeline mutation policy changed'], + resourceMode: 'expert', + incomingModelFamily: pipelineClass, + previousModelFamily: pipelineClass, + residentRecipeReusable: false, + resourceRecipeChanged: false, + cleanup: null, + }); + const { memoryBefore, memoryAfter, ...release } = mutationPreparation; + assert.deepEqual(release, { + ownerIds: [loader], + releasedNodeIds: [sampler, loader, preview].sort(), + retainedOutputNodes: [sampler, preview].sort(), + releasedComponentCount: 0, + }); + for (const memory of [memoryBefore, memoryAfter]) { + assert.equal(memory.available, true); + assert.equal(memory.allocator_stats_status, 'paused_during_execution'); + assert.equal(memory.device_count, 1); + } +} + export async function readSavedControlImageEvidence({ clientRoot, manifest, @@ -309,12 +382,14 @@ export async function readSavedControlImageEvidence({ artifact, evidencePath, }) { - const route = routes[manifest.id]; - assert.ok(route, 'No reviewed saved control-image route.'); const target = canonicalWorkflowAuthoringContract(manifest, graph, authoring, artifact); const descriptorBytes = readFileSync(evidencePath); const evidence = JSON.parse(descriptorBytes); - assert.equal(evidence.format, route.integratedControl ? retainedHostFormat : format); + const route = savedControlRoute(manifest.id, evidence.format); + assert.equal( + evidence.format, + route.loadFieldsOnly ? loadFieldsFormat : route.integratedControl ? retainedHostFormat : format, + ); assert.equal(evidence.schemaVersion, 1); assert.equal(evidence.workflowId, manifest.id); const evidenceRoot = realpathSync(dirname(evidencePath)); @@ -360,6 +435,16 @@ export async function readSavedControlImageEvidence({ const promptSlot = expected.nodes[canonical.sampler].params.prompt; assert.deepEqual(promptSlot, { display: 'textarea', value: '' }); promptSlot.value = prompt; + if (route.loadFieldsOnly) { + const loader = expected.nodes[canonical.loader].params; + assert.equal(loader.execution_profile_id, undefined); + loader.execution_profile_id = { value: '' }; + for (const [key, original, retained] of route.controls) { + const parameter = expected.nodes[canonical.sampler].params[key]; + assert.equal(parameter.value, original); + parameter.value = retained; + } + } const identity = canonicalGraphIdentity(expected); for (const graphSource of [graphRequest, creator.apiGraph, ...visual]) { assert.equal( @@ -383,12 +468,14 @@ export async function readSavedControlImageEvidence({ graphRequest, graphAcknowledgment: json(evidence.graphAcknowledgment), validatePreparation: (value) => - route.previousExpertFamily - ? validateImagePromptPreparation(value, { - modelType: route.pipelineClass, - previousExpertFamily: route.previousExpertFamily, - }) - : validateUnmodifiedExpertPreparation(value, route.pipelineClass), + route.loadFieldsOnly + ? validateDirectMutationPreparation(value, route.pipelineClass, actual) + : route.previousExpertFamily + ? validateImagePromptPreparation(value, { + modelType: route.pipelineClass, + previousExpertFamily: route.previousExpertFamily, + }) + : validateUnmodifiedExpertPreparation(value, route.pipelineClass), ...(route.lateOutput && { persistedOutput: (stored ?? json(evidence.persistedOutput).outputs)[0] }), }); if (stored) { @@ -402,17 +489,18 @@ export async function readSavedControlImageEvidence({ inputs, }); } - const decoded = verifySavedControlImageInputs(graphRequest, output, inputs, manifest.id); + const decoded = verifySavedControlImageInputs(graphRequest, output, inputs, manifest.id, evidence.format); const imageBindings = Object.fromEntries( await Promise.all( roles.map(async (role, index) => { const input = inputs[index]; const decodedImage = decoded[index]; const file = read(input.file); - if (route.integratedControl) { + if (route.integratedControl || route.loadFieldsOnly) { const dimensions = await decodedMediaHash(file.file, 'image'); assert.deepEqual([dimensions.width, dimensions.height], [decodedImage.width, decodedImage.height]); - } else { + } + if (!route.integratedControl) { verifyRetainedPngUpload(json(input.upload), input, decodedImage, file.bytes); } return [role, { nodeId: actual.inputs[role], field: 'file', sha256: input.file.sha256, decodedImage }]; @@ -508,6 +596,10 @@ export async function readSavedControlImageEvidence({ observationLimits: { fullConsumedFieldAccounting: false, processedControlPixelsObserved: false, + ...(route.loadFieldsOnly && { + nativeEdgeMapObserved: false, + sourceByteWitness: 'native-load-and-upload-with-typed-wire', + }), ...(route.cannyMediaWitness && { nativeEdgeMapObserved: true }), ...(route.integratedControl && { originalUploadResponsesObserved: false, diff --git a/scripts/saved-control-image-evidence.test.mjs b/scripts/saved-control-image-evidence.test.mjs index 2f09518a..71bec7c8 100644 --- a/scripts/saved-control-image-evidence.test.mjs +++ b/scripts/saved-control-image-evidence.test.mjs @@ -65,6 +65,7 @@ test('the retained native host input witness is scoped to the task, output store for (const [workflowId, variable] of [ ['StableDiffusionXLControlNetPipeline:control_edit_image', 'MODIFF_SDXL_CONTROL_BOATHOUSE_EVIDENCE'], ['StableDiffusionXLPAGPipeline:control_edit_image', 'MODIFF_SDXL_PAG_PORT_HOLE_EVIDENCE'], + ['StableDiffusionXLPAGPipeline:control_edit_image', 'MODIFF_SDXL_PAG_TIERED_GLASS_EVIDENCE'], ]) { const fixture = process.env[variable]; test(workflowId + ' binds its source, guide and native edge preparation', { skip: !fixture }, async () => { @@ -78,7 +79,8 @@ for (const [workflowId, variable] of [ const [guide, source] = evidence.inputs; assert.equal(receipt.inputBinding.sha256, source.file.sha256); assert.equal(receipt.guideBinding.sha256, guide.file.sha256); - assert.equal(receipt.observationLimits.nativeEdgeMapObserved, true); + const loadFieldsOnly = variable === 'MODIFF_SDXL_PAG_TIERED_GLASS_EVIDENCE'; + assert.equal(receipt.observationLimits.nativeEdgeMapObserved, !loadFieldsOnly); assert.equal(receipt.observationLimits.processedControlPixelsObserved, false); if (workflowId.startsWith('StableDiffusionXLPAG')) { assert.equal(receipt.observationLimits.effectivePagSettingsObserved, false); @@ -86,11 +88,17 @@ for (const [workflowId, variable] of [ const read = (ref) => JSON.parse(readCanonicalEvidenceFile(dirname(evidencePath), ref).bytes); const graph = read(evidence.graphRequest); const { latestOutput: output } = read(evidence.outputPackage); - const canny = output.resolvedExecutionInputs.nodes.find(({ action }) => action === 'Canny'); - canny.mediaEvidence.inputs.image[0].sha256 = 'b'.repeat(64); + if (loadFieldsOnly) { + assert.equal(receipt.observationLimits.sourceByteWitness, 'native-load-and-upload-with-typed-wire'); + const load = output.resolvedExecutionInputs.nodes.find(({ nodeId }) => nodeId === receipt.guideBinding.nodeId); + load.fields.source_hashes.value[0] = 'b'.repeat(64); + } else { + const canny = output.resolvedExecutionInputs.nodes.find(({ action }) => action === 'Canny'); + canny.mediaEvidence.inputs.image[0].sha256 = 'b'.repeat(64); + } assert.throws( - () => verifySavedControlImageInputs(graph, output, evidence.inputs, workflowId), - /Canny guide bytes differ/u, + () => verifySavedControlImageInputs(graph, output, evidence.inputs, workflowId, evidence.format), + loadFieldsOnly ? /Saved image load fields differ for guide/u : /Canny guide bytes differ/u, ); }); } From 56a3e51cf2bd1fb10c461cdb707ff71b24d37de0 Mon Sep 17 00:00:00 2001 From: Sourav Das Date: Wed, 25 Nov 2026 20:53:19 +0530 Subject: [PATCH 387/440] Publish the verified FLUX.2 and guarded Cosmos Gallery images --- config/template-asset-rights.v1.json | 926 ++++++++++++++++++---- config/template-assets.v1.json | 104 ++- public/template-gallery/manifest.json | 64 ++ scripts/template-gallery-harness.mjs | 115 ++- scripts/template-gallery-harness.test.mjs | 30 + src/studio/templateAssetSource.json | 6 +- 6 files changed, 1030 insertions(+), 215 deletions(-) diff --git a/config/template-asset-rights.v1.json b/config/template-asset-rights.v1.json index 8f44a769..2b54eb5d 100644 --- a/config/template-asset-rights.v1.json +++ b/config/template-asset-rights.v1.json @@ -1,6 +1,6 @@ { "schemaVersion": 1, - "assetSetId": "sha256:canonical-json:6dae2febe2da4a2154a550b5eb6530843803c6fe838fd2a3220dda5337b45c1e", + "assetSetId": "sha256:canonical-json:e0bc710e59c6913a8e011a9bf904a4ea0dbe484a5b1ba87b0d5b2eddf5e73fed", "records": [ { "path": "template-gallery/ace_step_audio_continuation.wav", @@ -17,7 +17,9 @@ ], "aiGenerated": true, "humanLikenessConsent": "synthetic", - "marks": ["MoDiff project name in the project-authored lyrics"], + "marks": [ + "MoDiff project name in the project-authored lyrics" + ], "requiredAttribution": [], "assetLicense": "Apache-2.0", "reviewedBy": "SOURAV DAS", @@ -137,7 +139,9 @@ ], "aiGenerated": true, "humanLikenessConsent": "synthetic", - "marks": ["Singer-style and training-song rights require upstream confirmation"], + "marks": [ + "Singer-style and training-song rights require upstream confirmation" + ], "requiredAttribution": [], "assetLicense": "upstream-terms-only", "reviewedBy": null, @@ -160,7 +164,9 @@ ], "aiGenerated": true, "humanLikenessConsent": "synthetic", - "marks": ["Singer-style and training-song rights require upstream confirmation"], + "marks": [ + "Singer-style and training-song rights require upstream confirmation" + ], "requiredAttribution": [], "assetLicense": "upstream-terms-only", "reviewedBy": null, @@ -358,7 +364,9 @@ ], "aiGenerated": true, "humanLikenessConsent": "synthetic", - "marks": ["MoDiff project name in the project-authored lyrics"], + "marks": [ + "MoDiff project name in the project-authored lyrics" + ], "requiredAttribution": [], "assetLicense": "Apache-2.0", "reviewedBy": "SOURAV DAS", @@ -798,6 +806,34 @@ "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", "provenanceTemplateId": "copper_hour_dunes" }, + { + "path": "template-gallery/cosmos3_super_text_to_image.webp", + "sha256": "sha256:bytes:90e6a18d8d085a653dd3f74168f93a30d99f8b0b7b74decb4f95f8a60bf4e7ad", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Exact approved file captured from a saved MoDiff workflow", + "sourceUrl": "https://huggingface.co/nvidia/Cosmos3-Super-Text2Image/tree/daf3d374804be4c512c2135568a7cb95d4341d79", + "sourceRevision": "nvidia/Cosmos3-Super-Text2Image@daf3d374804be4c512c2135568a7cb95d4341d79", + "sourceLicense": "Maintainer-authorized file with publisher terms retained", + "modelTerms": [ + "https://openmdw.ai/license/1-1/", + "https://huggingface.co/nvidia/Cosmos-Guardrail1/blob/d6d4bfa899a71454a700907664f3e88f503950cf/README.md" + ], + "aiGenerated": true, + "humanLikenessConsent": "synthetic", + "marks": [], + "requiredAttribution": [ + "nvidia/Cosmos3-Super-Text2Image@daf3d374804be4c512c2135568a7cb95d4341d79 https://huggingface.co/nvidia/Cosmos3-Super-Text2Image/tree/daf3d374804be4c512c2135568a7cb95d4341d79" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "36d1cce7283b4bbd6aaa87bb55573032136669d29808dca440378965a78c8217", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "cosmos3_super_text_to_image" + }, { "path": "template-gallery/ddim_cifar10_preview.webp", "sha256": "sha256:bytes:8da37d75c632e43b7131bcb634f76a9e83857a88bf511785fa8f55c746f0f0a4", @@ -928,6 +964,33 @@ "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", "provenanceTemplateId": "flux1_dev_limestone_studio_scratch_repair" }, + { + "path": "template-gallery/flux2_dev_text_to_image.webp", + "sha256": "sha256:bytes:6105156764537dd15a17c7fd2fbf73882a0c4991b1f7fb90700e9bbbf51de670", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Exact approved file captured from a saved MoDiff workflow", + "sourceUrl": "https://huggingface.co/black-forest-labs/FLUX.2-dev/tree/26afe3a78bb242c0a8bb181dcc8937bb16e5c66c", + "sourceRevision": "black-forest-labs/FLUX.2-dev@26afe3a78bb242c0a8bb181dcc8937bb16e5c66c", + "sourceLicense": "Maintainer-authorized file with publisher terms retained", + "modelTerms": [ + "https://huggingface.co/black-forest-labs/FLUX.2-dev/blob/26afe3a78bb242c0a8bb181dcc8937bb16e5c66c/LICENSE.md" + ], + "aiGenerated": true, + "humanLikenessConsent": "synthetic", + "marks": [], + "requiredAttribution": [ + "black-forest-labs/FLUX.2-dev@26afe3a78bb242c0a8bb181dcc8937bb16e5c66c https://huggingface.co/black-forest-labs/FLUX.2-dev/tree/26afe3a78bb242c0a8bb181dcc8937bb16e5c66c" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "36d1cce7283b4bbd6aaa87bb55573032136669d29808dca440378965a78c8217", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "flux2_dev_text_to_image" + }, { "creatorOrRightsholder": "MoDiff project maintainers, with exact-file rights explicitly attested by the maintainer", "creationMethod": "AI-generated native FLUX.2 Klein image; the edit preserves the declared approved synthetic cube input", @@ -1026,7 +1089,9 @@ "aiGenerated": true, "humanLikenessConsent": "synthetic", "marks": [], - "requiredAttribution": ["sourav-das"], + "requiredAttribution": [ + "sourav-das" + ], "assetLicense": "CC-BY-4.0", "reviewedBy": "sourav-das", "reviewedAt": "2026-10-31", @@ -1051,7 +1116,9 @@ "aiGenerated": true, "humanLikenessConsent": "synthetic", "marks": [], - "requiredAttribution": ["sourav-das"], + "requiredAttribution": [ + "sourav-das" + ], "assetLicense": "CC-BY-4.0", "reviewedBy": "sourav-das", "reviewedAt": "2026-10-31", @@ -1076,7 +1143,9 @@ "aiGenerated": true, "humanLikenessConsent": "synthetic", "marks": [], - "requiredAttribution": ["sourav-das"], + "requiredAttribution": [ + "sourav-das" + ], "assetLicense": "CC-BY-4.0", "reviewedBy": "sourav-das", "reviewedAt": "2026-10-31", @@ -1101,7 +1170,9 @@ "aiGenerated": true, "humanLikenessConsent": "synthetic", "marks": [], - "requiredAttribution": ["sourav-das"], + "requiredAttribution": [ + "sourav-das" + ], "assetLicense": "CC-BY-4.0", "reviewedBy": "sourav-das", "reviewedAt": "2026-10-31", @@ -1126,7 +1197,9 @@ "aiGenerated": true, "humanLikenessConsent": "synthetic", "marks": [], - "requiredAttribution": ["sourav-das"], + "requiredAttribution": [ + "sourav-das" + ], "assetLicense": "CC-BY-4.0", "reviewedBy": "sourav-das", "reviewedAt": "2026-10-31", @@ -1153,7 +1226,9 @@ "aiGenerated": true, "humanLikenessConsent": "synthetic", "marks": [], - "requiredAttribution": ["sourav-das"], + "requiredAttribution": [ + "sourav-das" + ], "assetLicense": "CC-BY-4.0", "reviewedBy": "sourav-das", "reviewedAt": "2026-10-31", @@ -1178,7 +1253,9 @@ "aiGenerated": true, "humanLikenessConsent": "synthetic", "marks": [], - "requiredAttribution": ["sourav-das"], + "requiredAttribution": [ + "sourav-das" + ], "assetLicense": "CC-BY-4.0", "reviewedBy": "sourav-das", "reviewedAt": "2026-10-31", @@ -1203,7 +1280,9 @@ "aiGenerated": true, "humanLikenessConsent": "synthetic", "marks": [], - "requiredAttribution": ["sourav-das"], + "requiredAttribution": [ + "sourav-das" + ], "assetLicense": "CC-BY-4.0", "reviewedBy": "sourav-das", "reviewedAt": "2026-10-31", @@ -1228,7 +1307,9 @@ "aiGenerated": true, "humanLikenessConsent": "synthetic", "marks": [], - "requiredAttribution": ["sourav-das"], + "requiredAttribution": [ + "sourav-das" + ], "assetLicense": "CC-BY-4.0", "reviewedBy": "sourav-das", "reviewedAt": "2026-10-31", @@ -1253,7 +1334,9 @@ "aiGenerated": true, "humanLikenessConsent": "synthetic", "marks": [], - "requiredAttribution": ["sourav-das"], + "requiredAttribution": [ + "sourav-das" + ], "assetLicense": "CC-BY-4.0", "reviewedBy": "sourav-das", "reviewedAt": "2026-10-31", @@ -1530,7 +1613,9 @@ ], "aiGenerated": true, "humanLikenessConsent": "not-applicable", - "marks": ["Fictional ASTERMIST / LAVENDER SLEEP SPRAY product label"], + "marks": [ + "Fictional ASTERMIST / LAVENDER SLEEP SPRAY product label" + ], "requiredAttribution": [], "publicationBasis": "Existing maintainer publication authorization and current explicit instruction to register these three accepted assets; no new ownership or rights quotation is fabricated.", "path": "template-gallery/flux_kontext_edit.webp", @@ -1555,7 +1640,9 @@ ], "aiGenerated": true, "humanLikenessConsent": "not-applicable", - "marks": ["Fictional ASTERMIST / LAVENDER SLEEP SPRAY product label"], + "marks": [ + "Fictional ASTERMIST / LAVENDER SLEEP SPRAY product label" + ], "requiredAttribution": [], "publicationBasis": "Existing maintainer publication authorization and current explicit instruction to register these three accepted assets; no new ownership or rights quotation is fabricated.", "path": "template-gallery/flux_kontext_multi_reference.webp", @@ -1711,7 +1798,9 @@ ], "aiGenerated": true, "humanLikenessConsent": "synthetic", - "marks": ["Studio Ghibli style reference; no franchise character requested"], + "marks": [ + "Studio Ghibli style reference; no franchise character requested" + ], "requiredAttribution": [], "assetLicense": "upstream-terms-only", "reviewedBy": null, @@ -1735,7 +1824,9 @@ ], "aiGenerated": true, "humanLikenessConsent": "synthetic", - "marks": ["Studio Ghibli style reference; no franchise character requested"], + "marks": [ + "Studio Ghibli style reference; no franchise character requested" + ], "requiredAttribution": [], "assetLicense": "upstream-terms-only", "reviewedBy": null, @@ -2082,7 +2173,9 @@ "sourceUrl": "https://huggingface.co/zai-org/GLM-Image/tree/2c433cc0cbc293bde2ac8ca9624f279b5d23fcf4", "sourceRevision": "zai-org/GLM-Image@2c433cc0cbc293bde2ac8ca9624f279b5d23fcf4", "sourceLicense": "Maintainer-authorized file with publisher terms retained", - "modelTerms": ["mit. https://huggingface.co/zai-org/GLM-Image/tree/2c433cc0cbc293bde2ac8ca9624f279b5d23fcf4"], + "modelTerms": [ + "mit. https://huggingface.co/zai-org/GLM-Image/tree/2c433cc0cbc293bde2ac8ca9624f279b5d23fcf4" + ], "aiGenerated": true, "humanLikenessConsent": "synthetic", "marks": [], @@ -2401,7 +2494,9 @@ "reviewedAt": "2026-11-13", "reviewClass": "per-file-maintainer-accepted-native-six-registration", "provenanceTemplateId": "flux_redux_edit", - "consumingTemplateIds": ["flux_redux_edit"], + "consumingTemplateIds": [ + "flux_redux_edit" + ], "retainedOriginalPath": "template-gallery/inputs/flux_redux_edit.before.webp", "humanApprovalPacketSHA256": "03b66b4631afb15032d62a1705331b56f6b12c4882c23945175ec92cc45a506f", "publicationBasis": "Register the six approved assets now while Moonflower runs on Linux. Use Windows in parallel wherever possible, and keep the longer workflows separate for AMD cloud." @@ -2554,7 +2649,9 @@ "reviewedAt": "2026-11-15", "reviewClass": "per-file-maintainer-accepted-native-two-registration", "provenanceTemplateId": "flux_redux_multi_reference", - "consumingTemplateIds": ["flux_redux_multi_reference"], + "consumingTemplateIds": [ + "flux_redux_multi_reference" + ], "retainedOriginalPath": "template-gallery/inputs/flux_redux_multi_reference.before.webp", "humanApprovalPacketSHA256": "c3c5e06d05771cf28f823e1dee31a9e7e3765d2f84038823aaadc505ee8290f5", "publicationBasis": "you can register these two as well" @@ -2936,7 +3033,9 @@ "reviewedAt": "2026-11-13", "reviewClass": "per-file-maintainer-accepted-native-six-registration", "provenanceTemplateId": "ltx_video_video_to_video", - "consumingTemplateIds": ["ltx_video_video_to_video"], + "consumingTemplateIds": [ + "ltx_video_video_to_video" + ], "retainedOriginalPath": "template-gallery/inputs/ltx_video_video_to_video.before.mp4", "humanApprovalPacketSHA256": "03b66b4631afb15032d62a1705331b56f6b12c4882c23945175ec92cc45a506f", "publicationBasis": "Register the six approved assets now while Moonflower runs on Linux. Use Windows in parallel wherever possible, and keep the longer workflows separate for AMD cloud." @@ -3274,7 +3373,9 @@ "reviewedAt": "2026-11-15", "reviewClass": "per-file-maintainer-accepted-native-seven-registration", "provenanceTemplateId": "wan_vace_grayscale_control", - "consumingTemplateIds": ["wan_vace_grayscale_control"], + "consumingTemplateIds": [ + "wan_vace_grayscale_control" + ], "retainedOriginalPath": "template-gallery/inputs/wan_vace_grayscale_control.before.mp4", "humanApprovalPacketSHA256": "95c7c2ed080c3d618db1701b066724660595337460c46df8305b50810783eaa3", "publicationBasis": "these are approved, you can register them" @@ -3454,7 +3555,9 @@ "reviewedAt": "2026-11-15", "reviewClass": "per-file-maintainer-accepted-native-seven-registration", "provenanceTemplateId": "wan_vace_outpaint_reframe", - "consumingTemplateIds": ["wan_vace_outpaint_reframe"], + "consumingTemplateIds": [ + "wan_vace_outpaint_reframe" + ], "retainedOriginalPath": "template-gallery/inputs/wan_vace_outpaint_reframe.before.mp4", "humanApprovalPacketSHA256": "95c7c2ed080c3d618db1701b066724660595337460c46df8305b50810783eaa3", "publicationBasis": "these are approved, you can register them" @@ -3634,7 +3737,9 @@ "reviewedAt": "2026-11-15", "reviewClass": "per-file-maintainer-accepted-native-seven-registration", "provenanceTemplateId": "wan_vace_video_color_grade", - "consumingTemplateIds": ["wan_vace_video_color_grade"], + "consumingTemplateIds": [ + "wan_vace_video_color_grade" + ], "retainedOriginalPath": "template-gallery/inputs/wan_vace_video_color_grade.before.mp4", "humanApprovalPacketSHA256": "95c7c2ed080c3d618db1701b066724660595337460c46df8305b50810783eaa3", "publicationBasis": "these are approved, you can register them" @@ -3814,7 +3919,9 @@ "reviewedAt": "2026-11-15", "reviewClass": "per-file-maintainer-accepted-native-seven-registration", "provenanceTemplateId": "wan_vace_video_to_video", - "consumingTemplateIds": ["wan_vace_video_to_video"], + "consumingTemplateIds": [ + "wan_vace_video_to_video" + ], "retainedOriginalPath": "template-gallery/inputs/wan_vace_video_to_video.before.mp4", "humanApprovalPacketSHA256": "95c7c2ed080c3d618db1701b066724660595337460c46df8305b50810783eaa3", "publicationBasis": "these are approved, you can register them" @@ -4050,7 +4157,10 @@ "reviewedBy": "SOURAV DAS", "reviewedAt": "2026-11-13", "reviewClass": "per-file-maintainer-accepted-native-six-registration", - "consumingTemplateIds": ["ace_step_audio_repaint", "ace_step_audio_variation"], + "consumingTemplateIds": [ + "ace_step_audio_repaint", + "ace_step_audio_variation" + ], "humanApprovalPacketSHA256": "03b66b4631afb15032d62a1705331b56f6b12c4882c23945175ec92cc45a506f", "publicationBasis": "Register the six approved assets now while Moonflower runs on Linux. Use Windows in parallel wherever possible, and keep the longer workflows separate for AMD cloud.", "provenanceTemplateId": "ace_step_audio_variation" @@ -4213,7 +4323,9 @@ "reviewedAt": "2026-08-03", "reviewClass": "standard-human-attestation", "provenanceTemplateId": "character_edit", - "consumingTemplateIds": ["character_edit"] + "consumingTemplateIds": [ + "character_edit" + ] }, { "path": "template-gallery/inputs/chroma_alpine_block_print.before.png", @@ -4429,7 +4541,9 @@ "reviewedAt": "2026-08-03", "reviewClass": "standard-human-attestation", "provenanceTemplateId": "flux2_klein_multi_reference", - "consumingTemplateIds": ["flux2_klein_multi_reference"] + "consumingTemplateIds": [ + "flux2_klein_multi_reference" + ] }, { "path": "template-gallery/inputs/flux3-packaging-protected-photo-mask-v1.png", @@ -4445,7 +4559,9 @@ "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], - "requiredAttribution": ["sourav-das"], + "requiredAttribution": [ + "sourav-das" + ], "assetLicense": "CC-BY-4.0", "reviewedBy": "sourav-das", "reviewedAt": "2026-10-31", @@ -4664,7 +4780,9 @@ "reviewedAt": "2026-08-03", "reviewClass": "standard-human-attestation", "provenanceTemplateId": "flux_control_canny", - "consumingTemplateIds": ["flux_control_canny"] + "consumingTemplateIds": [ + "flux_control_canny" + ] }, { "path": "template-gallery/inputs/flux_depth_control.before.png", @@ -4688,7 +4806,9 @@ "reviewedAt": "2026-08-03", "reviewClass": "standard-human-attestation", "provenanceTemplateId": "flux_depth_control", - "consumingTemplateIds": ["flux_depth_control"] + "consumingTemplateIds": [ + "flux_depth_control" + ] }, { "path": "template-gallery/inputs/flux_depth_marine_bow_repair.before.webp", @@ -4793,7 +4913,9 @@ "reviewedAt": "2026-08-03", "reviewClass": "standard-human-attestation", "provenanceTemplateId": "flux_fill_inpaint", - "consumingTemplateIds": ["flux_fill_inpaint"] + "consumingTemplateIds": [ + "flux_fill_inpaint" + ] }, { "path": "template-gallery/inputs/flux_fill_outpaint.before.png", @@ -4817,7 +4939,9 @@ "reviewedAt": "2026-08-03", "reviewClass": "standard-human-attestation", "provenanceTemplateId": "flux_fill_outpaint", - "consumingTemplateIds": ["flux_fill_outpaint"] + "consumingTemplateIds": [ + "flux_fill_outpaint" + ] }, { "path": "template-gallery/inputs/flux_klein_alpine_lake_panorama.before.png", @@ -4922,7 +5046,9 @@ "reviewedAt": "2026-08-03", "reviewClass": "standard-human-attestation", "provenanceTemplateId": "flux_kontext_edit", - "consumingTemplateIds": ["flux_kontext_edit"] + "consumingTemplateIds": [ + "flux_kontext_edit" + ] }, { "path": "template-gallery/inputs/flux_kontext_multi_reference.before.webp", @@ -4946,7 +5072,9 @@ "reviewedAt": "2026-08-03", "reviewClass": "standard-human-attestation", "provenanceTemplateId": "flux_kontext_multi_reference", - "consumingTemplateIds": ["flux_kontext_multi_reference"] + "consumingTemplateIds": [ + "flux_kontext_multi_reference" + ] }, { "path": "template-gallery/inputs/flux_kontext_multi_reference.material-strip.v2.png", @@ -4969,7 +5097,9 @@ "reviewedBy": "maintainer (current user)", "reviewedAt": "2026-11-12", "reviewClass": "per-file-maintainer-accepted-native-three-registration", - "consumingTemplateIds": ["flux_kontext_multi_reference"], + "consumingTemplateIds": [ + "flux_kontext_multi_reference" + ], "derivedFromContentHash": "sha256:bytes:9f421cdc0fa80b3aae368bd3b20a8f6f05942ec461f88541f01aec5390468897", "publicationBasis": "Existing maintainer publication authorization and current explicit instruction to register these three accepted assets; no new ownership or rights quotation is fabricated.", "humanApprovalPacketSHA256": "69c6b3d9b0ea2fcca16ee538f6e75b414b7141658b74f10578758e61360f63fd" @@ -4997,7 +5127,9 @@ "reviewedAt": "2026-08-03", "reviewClass": "standard-human-attestation", "provenanceTemplateId": "flux_redux_edit", - "consumingTemplateIds": ["flux_redux_edit"] + "consumingTemplateIds": [ + "flux_redux_edit" + ] }, { "path": "template-gallery/inputs/flux_redux_multi_reference.before.webp", @@ -5022,7 +5154,9 @@ "reviewedAt": "2026-08-03", "reviewClass": "standard-human-attestation", "provenanceTemplateId": "flux_redux_multi_reference", - "consumingTemplateIds": ["flux_redux_multi_reference"] + "consumingTemplateIds": [ + "flux_redux_multi_reference" + ] }, { "path": "template-gallery/inputs/hunyuan_dit_green_glass_study.before.png", @@ -5337,7 +5471,9 @@ "reviewedAt": "2026-08-03", "reviewClass": "standard-human-attestation", "provenanceTemplateId": "ltx_video_image_to_video", - "consumingTemplateIds": ["ltx_video_image_to_video"] + "consumingTemplateIds": [ + "ltx_video_image_to_video" + ] }, { "path": "template-gallery/inputs/ltx_video_multi_reference.before.webp", @@ -5362,7 +5498,9 @@ "reviewedAt": "2026-08-03", "reviewClass": "standard-human-attestation", "provenanceTemplateId": "ltx_video_multi_reference", - "consumingTemplateIds": ["ltx_video_multi_reference"] + "consumingTemplateIds": [ + "ltx_video_multi_reference" + ] }, { "path": "template-gallery/inputs/ltx_video_video_to_video.before.mp4", @@ -5389,7 +5527,9 @@ "reviewedAt": "2026-08-03", "reviewClass": "standard-human-attestation", "provenanceTemplateId": "ltx_video_video_to_video", - "consumingTemplateIds": ["ltx_video_video_to_video"] + "consumingTemplateIds": [ + "ltx_video_video_to_video" + ] }, { "path": "template-gallery/inputs/marigold_depth_synthetic_ramp.before.png", @@ -5701,7 +5841,9 @@ "reviewedAt": "2026-08-03", "reviewClass": "standard-human-attestation", "provenanceTemplateId": "qwen_character_angles", - "consumingTemplateIds": ["qwen_character_angles"] + "consumingTemplateIds": [ + "qwen_character_angles" + ] }, { "path": "template-gallery/inputs/qwen_cobalt_on_charcoal_slate.before.png", @@ -5808,7 +5950,9 @@ "reviewedAt": "2026-08-03", "reviewClass": "standard-human-attestation", "provenanceTemplateId": "qwen_edit_plus_single_image", - "consumingTemplateIds": ["qwen_edit_plus_single_image"] + "consumingTemplateIds": [ + "qwen_edit_plus_single_image" + ] }, { "path": "template-gallery/inputs/qwen_edit_strength_sweep.before.webp", @@ -5832,7 +5976,9 @@ "reviewedAt": "2026-08-03", "reviewClass": "standard-human-attestation", "provenanceTemplateId": "qwen_edit_strength_sweep", - "consumingTemplateIds": ["qwen_edit_strength_sweep"] + "consumingTemplateIds": [ + "qwen_edit_strength_sweep" + ] }, { "path": "template-gallery/inputs/qwen_inpaint_mask_draft.before.webp", @@ -5856,7 +6002,9 @@ "reviewedAt": "2026-08-03", "reviewClass": "standard-human-attestation", "provenanceTemplateId": "qwen_inpaint_mask_draft", - "consumingTemplateIds": ["qwen_inpaint_mask_draft"] + "consumingTemplateIds": [ + "qwen_inpaint_mask_draft" + ] }, { "path": "template-gallery/inputs/qwen_inpaint_object_replace.before.webp", @@ -5880,7 +6028,9 @@ "reviewedAt": "2026-08-03", "reviewClass": "standard-human-attestation", "provenanceTemplateId": "qwen_inpaint_object_replace", - "consumingTemplateIds": ["qwen_inpaint_object_replace"] + "consumingTemplateIds": [ + "qwen_inpaint_object_replace" + ] }, { "creatorOrRightsholder": "MoDiff project maintainers, subject to previously approved synthetic source rights and recorded model terms", @@ -5957,7 +6107,9 @@ "reviewedAt": "2026-08-03", "reviewClass": "standard-human-attestation", "provenanceTemplateId": "qwen_logo_texture", - "consumingTemplateIds": ["qwen_logo_texture"] + "consumingTemplateIds": [ + "qwen_logo_texture" + ] }, { "path": "template-gallery/inputs/qwen_multi_reference_product.before.webp", @@ -5982,7 +6134,9 @@ "reviewedAt": "2026-08-03", "reviewClass": "standard-human-attestation", "provenanceTemplateId": "qwen_multi_reference_product", - "consumingTemplateIds": ["qwen_multi_reference_product"] + "consumingTemplateIds": [ + "qwen_multi_reference_product" + ] }, { "path": "template-gallery/inputs/qwen_outpaint_aspect_template.before.webp", @@ -6006,7 +6160,9 @@ "reviewedAt": "2026-08-03", "reviewClass": "standard-human-attestation", "provenanceTemplateId": "qwen_outpaint_aspect_template", - "consumingTemplateIds": ["qwen_outpaint_aspect_template"] + "consumingTemplateIds": [ + "qwen_outpaint_aspect_template" + ] }, { "path": "template-gallery/inputs/qwen_outpaint_draft.before.webp", @@ -6030,7 +6186,9 @@ "reviewedAt": "2026-08-03", "reviewClass": "standard-human-attestation", "provenanceTemplateId": "qwen_outpaint_draft", - "consumingTemplateIds": ["qwen_outpaint_draft"] + "consumingTemplateIds": [ + "qwen_outpaint_draft" + ] }, { "path": "template-gallery/inputs/qwen_packaging_dieline.before.png", @@ -6055,7 +6213,9 @@ "reviewedAt": "2026-08-03", "reviewClass": "standard-human-attestation", "provenanceTemplateId": "qwen_packaging_dieline", - "consumingTemplateIds": ["qwen_packaging_dieline"] + "consumingTemplateIds": [ + "qwen_packaging_dieline" + ] }, { "path": "template-gallery/inputs/qwen_product_ad_composite.before.webp", @@ -6080,7 +6240,9 @@ "reviewedAt": "2026-08-03", "reviewClass": "standard-human-attestation", "provenanceTemplateId": "qwen_product_ad_composite", - "consumingTemplateIds": ["qwen_product_ad_composite"] + "consumingTemplateIds": [ + "qwen_product_ad_composite" + ] }, { "path": "template-gallery/inputs/qwen_product_relight.before.webp", @@ -6105,7 +6267,9 @@ "reviewedAt": "2026-08-03", "reviewClass": "standard-human-attestation", "provenanceTemplateId": "qwen_product_relight", - "consumingTemplateIds": ["qwen_product_relight"] + "consumingTemplateIds": [ + "qwen_product_relight" + ] }, { "path": "template-gallery/inputs/qwen_tile_extract.before.webp", @@ -6129,7 +6293,9 @@ "reviewedAt": "2026-08-03", "reviewClass": "standard-human-attestation", "provenanceTemplateId": "qwen_tile_extract", - "consumingTemplateIds": ["qwen_tile_extract"] + "consumingTemplateIds": [ + "qwen_tile_extract" + ] }, { "creatorOrRightsholder": "MoDiff project maintainers, with exact-file rights explicitly attested by the maintainer", @@ -6180,7 +6346,9 @@ "reviewedAt": "2026-08-03", "reviewClass": "standard-human-attestation", "provenanceTemplateId": "reference_fusion", - "consumingTemplateIds": ["reference_fusion"] + "consumingTemplateIds": [ + "reference_fusion" + ] }, { "path": "template-gallery/inputs/restoring_the_studio_backdrop.before.png", @@ -6192,7 +6360,9 @@ "sourceUrl": "https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14", "sourceRevision": "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14", "sourceLicense": "Maintainer-authorized file with publisher terms retained", - "modelTerms": ["CreativeML Open RAIL-M at the pinned Stable Diffusion v1.5 revision."], + "modelTerms": [ + "CreativeML Open RAIL-M at the pinned Stable Diffusion v1.5 revision." + ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], @@ -6217,7 +6387,9 @@ "sourceUrl": "https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14", "sourceRevision": "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14", "sourceLicense": "Maintainer-authorized file with publisher terms retained", - "modelTerms": ["CreativeML Open RAIL-M at the pinned Stable Diffusion v1.5 revision."], + "modelTerms": [ + "CreativeML Open RAIL-M at the pinned Stable Diffusion v1.5 revision." + ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], @@ -7306,7 +7478,9 @@ "reviewedAt": "2026-08-03", "reviewClass": "standard-human-attestation", "provenanceTemplateId": "wan_vace_grayscale_control", - "consumingTemplateIds": ["wan_vace_grayscale_control"] + "consumingTemplateIds": [ + "wan_vace_grayscale_control" + ] }, { "path": "template-gallery/inputs/wan_vace_outpaint_reframe.before.mp4", @@ -7331,7 +7505,9 @@ "reviewedAt": "2026-08-03", "reviewClass": "standard-human-attestation", "provenanceTemplateId": "wan_vace_outpaint_reframe", - "consumingTemplateIds": ["wan_vace_outpaint_reframe"] + "consumingTemplateIds": [ + "wan_vace_outpaint_reframe" + ] }, { "path": "template-gallery/inputs/wan_vace_video_color_grade.before.mp4", @@ -7356,7 +7532,9 @@ "reviewedAt": "2026-08-03", "reviewClass": "standard-human-attestation", "provenanceTemplateId": "wan_vace_video_color_grade", - "consumingTemplateIds": ["wan_vace_video_color_grade"] + "consumingTemplateIds": [ + "wan_vace_video_color_grade" + ] }, { "path": "template-gallery/inputs/wan_vace_video_to_video.before.mp4", @@ -7381,7 +7559,9 @@ "reviewedAt": "2026-08-03", "reviewClass": "standard-human-attestation", "provenanceTemplateId": "wan_vace_video_to_video", - "consumingTemplateIds": ["wan_vace_video_to_video"] + "consumingTemplateIds": [ + "wan_vace_video_to_video" + ] }, { "path": "template-gallery/inputs/zimage_golden_amber_glass.before.png", @@ -7501,7 +7681,9 @@ "sourceUrl": "https://huggingface.co/deepseek-community/Janus-Pro-1B/tree/1655280bb75959cc1cb85529a2a8b26e7016072e", "sourceRevision": "deepseek-community/Janus-Pro-1B@1655280bb75959cc1cb85529a2a8b26e7016072e", "sourceLicense": "Maintainer-authorized file with publisher terms retained", - "modelTerms": ["https://github.com/deepseek-ai/Janus/blob/main/LICENSE-MODEL"], + "modelTerms": [ + "https://github.com/deepseek-ai/Janus/blob/main/LICENSE-MODEL" + ], "aiGenerated": true, "humanLikenessConsent": "synthetic", "marks": [], @@ -7526,7 +7708,9 @@ "sourceUrl": "https://huggingface.co/deepseek-community/Janus-Pro-1B/tree/1655280bb75959cc1cb85529a2a8b26e7016072e", "sourceRevision": "deepseek-community/Janus-Pro-1B@1655280bb75959cc1cb85529a2a8b26e7016072e", "sourceLicense": "Maintainer-authorized file with publisher terms retained", - "modelTerms": ["https://github.com/deepseek-ai/Janus/blob/main/LICENSE-MODEL"], + "modelTerms": [ + "https://github.com/deepseek-ai/Janus/blob/main/LICENSE-MODEL" + ], "aiGenerated": true, "humanLikenessConsent": "synthetic", "marks": [], @@ -7551,7 +7735,9 @@ "sourceUrl": "https://huggingface.co/deepseek-community/Janus-Pro-1B/tree/1655280bb75959cc1cb85529a2a8b26e7016072e", "sourceRevision": "deepseek-community/Janus-Pro-1B@1655280bb75959cc1cb85529a2a8b26e7016072e", "sourceLicense": "Maintainer-authorized file with publisher terms retained", - "modelTerms": ["https://github.com/deepseek-ai/Janus/blob/main/LICENSE-MODEL"], + "modelTerms": [ + "https://github.com/deepseek-ai/Janus/blob/main/LICENSE-MODEL" + ], "aiGenerated": true, "humanLikenessConsent": "synthetic", "marks": [], @@ -8808,7 +8994,7 @@ }, { "path": "template-gallery/manifest.json", - "sha256": "sha256:bytes:dbfe7fcfa87e5e03df973310c7905fde71c6d74dc10a23ddb8929ecc19521c0d", + "sha256": "sha256:bytes:100626a0d35d6d31c18d319b76965055e00968228edfb926c0469dfda09c6561", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", @@ -8825,7 +9011,7 @@ "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "01bd531cf1d88e5338a9c8dc4b831048b7660d92b628f61f3b28e75bb68b9a6c", + "humanApprovalPacketSHA256": "36d1cce7283b4bbd6aaa87bb55573032136669d29808dca440378965a78c8217", "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained." }, { @@ -8867,7 +9053,9 @@ "aiGenerated": true, "humanLikenessConsent": "synthetic", "marks": [], - "requiredAttribution": ["AI-generated music — MiniMax-Music3"], + "requiredAttribution": [ + "AI-generated music — MiniMax-Music3" + ], "assetLicense": "Apache-2.0", "publisherLicenseUrl": "https://huggingface.co/MiniMaxAI/MiniMax-Music3/blob/fbdf52fbaaca799592917417eb05f1899f1255ec/LICENSE", "path": "template-gallery/minimax_music3_chamber_pop.wav", @@ -9640,7 +9828,9 @@ ], "aiGenerated": true, "humanLikenessConsent": "synthetic", - "marks": ["TIDELINE: fictional cinema and event"], + "marks": [ + "TIDELINE: fictional cinema and event" + ], "requiredAttribution": [], "sourceRightsAttestation": "I hold the rights or permissions needed to publish this exact generated TIDELINE cinema image and its redacted technical/review records under Apache-2.0. The film event and cinema are fictional; no external image inputs or real-person likenesses were used.", "path": "template-gallery/qwen_low_vram_poster_layout.webp", @@ -9665,7 +9855,9 @@ ], "aiGenerated": true, "humanLikenessConsent": "synthetic", - "marks": ["MICA DROP: fictional product name"], + "marks": [ + "MICA DROP: fictional product name" + ], "requiredAttribution": [], "sourceRightsAttestation": "I approve this exact image as a reviewed concept with the stated design limitations and incomplete independent resource monitoring, without a fully guarded or hardware-qualification claim. I hold the rights or permissions needed to publish this generated MICA DROP image and its redacted technical/review metadata under Apache-2.0. The product is fictional in this example; no external image input or real-person likeness was used.", "path": "template-gallery/qwen_low_vram_product_concept.webp", @@ -9690,7 +9882,9 @@ ], "aiGenerated": true, "humanLikenessConsent": "synthetic", - "marks": ["KITE & ANVIL: fictional stationery brand"], + "marks": [ + "KITE & ANVIL: fictional stationery brand" + ], "requiredAttribution": [], "sourceRightsAttestation": "I hold the rights or permissions needed to publish this exact generated KITE & ANVIL stationery image and its redacted technical/review metadata under Apache-2.0. The stationery brand is fictional in this example; no external image inputs or real-person likenesses were used.", "path": "template-gallery/qwen_low_vram_text_rendering.webp", @@ -9819,7 +10013,9 @@ ], "aiGenerated": true, "humanLikenessConsent": "synthetic", - "marks": ["MATERIAL CULTURE: fictional exhibition title"], + "marks": [ + "MATERIAL CULTURE: fictional exhibition title" + ], "requiredAttribution": [], "sourceRightsAttestation": "I hold the rights or permissions needed to publish this exact generated MATERIAL CULTURE exhibition poster and its redacted technical/review metadata under Apache-2.0. The exhibition is fictional in this example; no external image inputs or real-person likenesses were used.", "path": "template-gallery/qwen_poster_logo_text.webp", @@ -9925,7 +10121,9 @@ ], "aiGenerated": true, "humanLikenessConsent": "synthetic", - "marks": ["VERDA 03: fictional product name in this generated example"], + "marks": [ + "VERDA 03: fictional product name in this generated example" + ], "requiredAttribution": [], "sourceRightsAttestation": "I hold the rights or permissions needed to publicly redistribute this exact generated VERDA 03 poster and its redacted technical and quality metadata under Apache-2.0. VERDA 03 is a fictional product name in this example; no external image inputs or real-person likenesses were used.", "path": "template-gallery/qwen_text_rendering.webp", @@ -10511,7 +10709,9 @@ "sourceUrl": "https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14", "sourceRevision": "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14", "sourceLicense": "Maintainer-authorized file with publisher terms retained", - "modelTerms": ["CreativeML Open RAIL-M at the pinned Stable Diffusion v1.5 revision."], + "modelTerms": [ + "CreativeML Open RAIL-M at the pinned Stable Diffusion v1.5 revision." + ], "aiGenerated": true, "humanLikenessConsent": "synthetic", "marks": [], @@ -12410,6 +12610,118 @@ "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", "provenanceTemplateId": "copper_hour_dunes" }, + { + "path": "template-gallery/reviews/cosmos3_super_text_to_image.original-provenance.json", + "sha256": "sha256:bytes:a7aeac67324bb549099efc0baf5dce1f4ee14108a2e41412a2ad6e8be6317e5b", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/nvidia/Cosmos3-Super-Text2Image/tree/daf3d374804be4c512c2135568a7cb95d4341d79", + "sourceRevision": "nvidia/Cosmos3-Super-Text2Image@daf3d374804be4c512c2135568a7cb95d4341d79", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "https://openmdw.ai/license/1-1/", + "https://huggingface.co/nvidia/Cosmos-Guardrail1/blob/d6d4bfa899a71454a700907664f3e88f503950cf/README.md" + ], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "nvidia/Cosmos3-Super-Text2Image@daf3d374804be4c512c2135568a7cb95d4341d79 https://huggingface.co/nvidia/Cosmos3-Super-Text2Image/tree/daf3d374804be4c512c2135568a7cb95d4341d79" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "36d1cce7283b4bbd6aaa87bb55573032136669d29808dca440378965a78c8217", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "cosmos3_super_text_to_image" + }, + { + "path": "template-gallery/reviews/cosmos3_super_text_to_image.original-review.json", + "sha256": "sha256:bytes:fdddc90b1953e7e304f263d219941667b756f3cf07e33ef25c1e371e88f849f4", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/nvidia/Cosmos3-Super-Text2Image/tree/daf3d374804be4c512c2135568a7cb95d4341d79", + "sourceRevision": "nvidia/Cosmos3-Super-Text2Image@daf3d374804be4c512c2135568a7cb95d4341d79", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "https://openmdw.ai/license/1-1/", + "https://huggingface.co/nvidia/Cosmos-Guardrail1/blob/d6d4bfa899a71454a700907664f3e88f503950cf/README.md" + ], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "nvidia/Cosmos3-Super-Text2Image@daf3d374804be4c512c2135568a7cb95d4341d79 https://huggingface.co/nvidia/Cosmos3-Super-Text2Image/tree/daf3d374804be4c512c2135568a7cb95d4341d79" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "36d1cce7283b4bbd6aaa87bb55573032136669d29808dca440378965a78c8217", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "cosmos3_super_text_to_image" + }, + { + "path": "template-gallery/reviews/cosmos3_super_text_to_image.quality-review.json", + "sha256": "sha256:bytes:a5f08e5fa500a0c3f2cecfa572cb8d9c666e6680d0eff5bb8fac9b392cc61fab", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/nvidia/Cosmos3-Super-Text2Image/tree/daf3d374804be4c512c2135568a7cb95d4341d79", + "sourceRevision": "nvidia/Cosmos3-Super-Text2Image@daf3d374804be4c512c2135568a7cb95d4341d79", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "https://openmdw.ai/license/1-1/", + "https://huggingface.co/nvidia/Cosmos-Guardrail1/blob/d6d4bfa899a71454a700907664f3e88f503950cf/README.md" + ], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "nvidia/Cosmos3-Super-Text2Image@daf3d374804be4c512c2135568a7cb95d4341d79 https://huggingface.co/nvidia/Cosmos3-Super-Text2Image/tree/daf3d374804be4c512c2135568a7cb95d4341d79" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "36d1cce7283b4bbd6aaa87bb55573032136669d29808dca440378965a78c8217", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "cosmos3_super_text_to_image" + }, + { + "path": "template-gallery/reviews/cosmos3_super_text_to_image.reviewed-provenance.json", + "sha256": "sha256:bytes:73996ca96a80f8244ecb17c4455ae9ea851b09c01c2af1ec8eb62ea0d67aea60", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/nvidia/Cosmos3-Super-Text2Image/tree/daf3d374804be4c512c2135568a7cb95d4341d79", + "sourceRevision": "nvidia/Cosmos3-Super-Text2Image@daf3d374804be4c512c2135568a7cb95d4341d79", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "https://openmdw.ai/license/1-1/", + "https://huggingface.co/nvidia/Cosmos-Guardrail1/blob/d6d4bfa899a71454a700907664f3e88f503950cf/README.md" + ], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "nvidia/Cosmos3-Super-Text2Image@daf3d374804be4c512c2135568a7cb95d4341d79 https://huggingface.co/nvidia/Cosmos3-Super-Text2Image/tree/daf3d374804be4c512c2135568a7cb95d4341d79" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "36d1cce7283b4bbd6aaa87bb55573032136669d29808dca440378965a78c8217", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "cosmos3_super_text_to_image" + }, { "path": "template-gallery/reviews/ddim_cifar10_preview.original-provenance.json", "sha256": "sha256:bytes:8fc838dd4bc701aa0c65e6b2630cc749d05736d23623591e3d1ac5af3d6b93d9", @@ -12778,6 +13090,114 @@ "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", "provenanceTemplateId": "flux1_dev_limestone_studio_scratch_repair" }, + { + "path": "template-gallery/reviews/flux2_dev_text_to_image.original-provenance.json", + "sha256": "sha256:bytes:fa7804bfeda1cf96922fb74621ad8ac9d6efa8dc468e8154af27165d05d77038", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/black-forest-labs/FLUX.2-dev/tree/26afe3a78bb242c0a8bb181dcc8937bb16e5c66c", + "sourceRevision": "black-forest-labs/FLUX.2-dev@26afe3a78bb242c0a8bb181dcc8937bb16e5c66c", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "https://huggingface.co/black-forest-labs/FLUX.2-dev/blob/26afe3a78bb242c0a8bb181dcc8937bb16e5c66c/LICENSE.md" + ], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "black-forest-labs/FLUX.2-dev@26afe3a78bb242c0a8bb181dcc8937bb16e5c66c https://huggingface.co/black-forest-labs/FLUX.2-dev/tree/26afe3a78bb242c0a8bb181dcc8937bb16e5c66c" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "36d1cce7283b4bbd6aaa87bb55573032136669d29808dca440378965a78c8217", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "flux2_dev_text_to_image" + }, + { + "path": "template-gallery/reviews/flux2_dev_text_to_image.original-review.json", + "sha256": "sha256:bytes:3d199d7d906fe2003fcc021c072409ce659821bbe5d40ee7fd1eabe1372e8700", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/black-forest-labs/FLUX.2-dev/tree/26afe3a78bb242c0a8bb181dcc8937bb16e5c66c", + "sourceRevision": "black-forest-labs/FLUX.2-dev@26afe3a78bb242c0a8bb181dcc8937bb16e5c66c", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "https://huggingface.co/black-forest-labs/FLUX.2-dev/blob/26afe3a78bb242c0a8bb181dcc8937bb16e5c66c/LICENSE.md" + ], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "black-forest-labs/FLUX.2-dev@26afe3a78bb242c0a8bb181dcc8937bb16e5c66c https://huggingface.co/black-forest-labs/FLUX.2-dev/tree/26afe3a78bb242c0a8bb181dcc8937bb16e5c66c" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "36d1cce7283b4bbd6aaa87bb55573032136669d29808dca440378965a78c8217", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "flux2_dev_text_to_image" + }, + { + "path": "template-gallery/reviews/flux2_dev_text_to_image.quality-review.json", + "sha256": "sha256:bytes:cf719c3bb27135496b83bca79ff124c9ae8aefa53a79016685bb1c91cddbab7b", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/black-forest-labs/FLUX.2-dev/tree/26afe3a78bb242c0a8bb181dcc8937bb16e5c66c", + "sourceRevision": "black-forest-labs/FLUX.2-dev@26afe3a78bb242c0a8bb181dcc8937bb16e5c66c", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "https://huggingface.co/black-forest-labs/FLUX.2-dev/blob/26afe3a78bb242c0a8bb181dcc8937bb16e5c66c/LICENSE.md" + ], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "black-forest-labs/FLUX.2-dev@26afe3a78bb242c0a8bb181dcc8937bb16e5c66c https://huggingface.co/black-forest-labs/FLUX.2-dev/tree/26afe3a78bb242c0a8bb181dcc8937bb16e5c66c" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "36d1cce7283b4bbd6aaa87bb55573032136669d29808dca440378965a78c8217", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "flux2_dev_text_to_image" + }, + { + "path": "template-gallery/reviews/flux2_dev_text_to_image.reviewed-provenance.json", + "sha256": "sha256:bytes:045e16b448a74a7235a6919aabef1fde27de88b05d7fc59661665f1988e79aea", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/black-forest-labs/FLUX.2-dev/tree/26afe3a78bb242c0a8bb181dcc8937bb16e5c66c", + "sourceRevision": "black-forest-labs/FLUX.2-dev@26afe3a78bb242c0a8bb181dcc8937bb16e5c66c", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "https://huggingface.co/black-forest-labs/FLUX.2-dev/blob/26afe3a78bb242c0a8bb181dcc8937bb16e5c66c/LICENSE.md" + ], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "black-forest-labs/FLUX.2-dev@26afe3a78bb242c0a8bb181dcc8937bb16e5c66c https://huggingface.co/black-forest-labs/FLUX.2-dev/tree/26afe3a78bb242c0a8bb181dcc8937bb16e5c66c" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "36d1cce7283b4bbd6aaa87bb55573032136669d29808dca440378965a78c8217", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "flux2_dev_text_to_image" + }, { "path": "template-gallery/reviews/flux2_klein_edit.quality-review.json", "sha256": "sha256:bytes:9fb22201199f326234b60ad2b1162dd14d3e94cf6e2bd4d00507c26d240aeebe", @@ -14655,7 +15075,9 @@ "sourceUrl": "https://huggingface.co/zai-org/GLM-Image/tree/2c433cc0cbc293bde2ac8ca9624f279b5d23fcf4", "sourceRevision": "zai-org/GLM-Image@2c433cc0cbc293bde2ac8ca9624f279b5d23fcf4", "sourceLicense": "MoDiff-authored Gallery metadata", - "modelTerms": ["mit. https://huggingface.co/zai-org/GLM-Image/tree/2c433cc0cbc293bde2ac8ca9624f279b5d23fcf4"], + "modelTerms": [ + "mit. https://huggingface.co/zai-org/GLM-Image/tree/2c433cc0cbc293bde2ac8ca9624f279b5d23fcf4" + ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], @@ -14680,7 +15102,9 @@ "sourceUrl": "https://huggingface.co/zai-org/GLM-Image/tree/2c433cc0cbc293bde2ac8ca9624f279b5d23fcf4", "sourceRevision": "zai-org/GLM-Image@2c433cc0cbc293bde2ac8ca9624f279b5d23fcf4", "sourceLicense": "MoDiff-authored Gallery metadata", - "modelTerms": ["mit. https://huggingface.co/zai-org/GLM-Image/tree/2c433cc0cbc293bde2ac8ca9624f279b5d23fcf4"], + "modelTerms": [ + "mit. https://huggingface.co/zai-org/GLM-Image/tree/2c433cc0cbc293bde2ac8ca9624f279b5d23fcf4" + ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], @@ -14705,7 +15129,9 @@ "sourceUrl": "https://huggingface.co/zai-org/GLM-Image/tree/2c433cc0cbc293bde2ac8ca9624f279b5d23fcf4", "sourceRevision": "zai-org/GLM-Image@2c433cc0cbc293bde2ac8ca9624f279b5d23fcf4", "sourceLicense": "MoDiff-authored Gallery metadata", - "modelTerms": ["mit. https://huggingface.co/zai-org/GLM-Image/tree/2c433cc0cbc293bde2ac8ca9624f279b5d23fcf4"], + "modelTerms": [ + "mit. https://huggingface.co/zai-org/GLM-Image/tree/2c433cc0cbc293bde2ac8ca9624f279b5d23fcf4" + ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], @@ -14730,7 +15156,9 @@ "sourceUrl": "https://huggingface.co/zai-org/GLM-Image/tree/2c433cc0cbc293bde2ac8ca9624f279b5d23fcf4", "sourceRevision": "zai-org/GLM-Image@2c433cc0cbc293bde2ac8ca9624f279b5d23fcf4", "sourceLicense": "MoDiff-authored Gallery metadata", - "modelTerms": ["mit. https://huggingface.co/zai-org/GLM-Image/tree/2c433cc0cbc293bde2ac8ca9624f279b5d23fcf4"], + "modelTerms": [ + "mit. https://huggingface.co/zai-org/GLM-Image/tree/2c433cc0cbc293bde2ac8ca9624f279b5d23fcf4" + ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], @@ -15231,7 +15659,9 @@ "sourceUrl": "https://huggingface.co/deepseek-community/Janus-Pro-1B/tree/1655280bb75959cc1cb85529a2a8b26e7016072e", "sourceRevision": "deepseek-community/Janus-Pro-1B@1655280bb75959cc1cb85529a2a8b26e7016072e", "sourceLicense": "MoDiff-authored Gallery metadata", - "modelTerms": ["https://github.com/deepseek-ai/Janus/blob/main/LICENSE-MODEL"], + "modelTerms": [ + "https://github.com/deepseek-ai/Janus/blob/main/LICENSE-MODEL" + ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], @@ -15256,7 +15686,9 @@ "sourceUrl": "https://huggingface.co/deepseek-community/Janus-Pro-1B/tree/1655280bb75959cc1cb85529a2a8b26e7016072e", "sourceRevision": "deepseek-community/Janus-Pro-1B@1655280bb75959cc1cb85529a2a8b26e7016072e", "sourceLicense": "MoDiff-authored Gallery metadata", - "modelTerms": ["https://github.com/deepseek-ai/Janus/blob/main/LICENSE-MODEL"], + "modelTerms": [ + "https://github.com/deepseek-ai/Janus/blob/main/LICENSE-MODEL" + ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], @@ -15281,7 +15713,9 @@ "sourceUrl": "https://huggingface.co/deepseek-community/Janus-Pro-1B/tree/1655280bb75959cc1cb85529a2a8b26e7016072e", "sourceRevision": "deepseek-community/Janus-Pro-1B@1655280bb75959cc1cb85529a2a8b26e7016072e", "sourceLicense": "MoDiff-authored Gallery metadata", - "modelTerms": ["https://github.com/deepseek-ai/Janus/blob/main/LICENSE-MODEL"], + "modelTerms": [ + "https://github.com/deepseek-ai/Janus/blob/main/LICENSE-MODEL" + ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], @@ -15306,7 +15740,9 @@ "sourceUrl": "https://huggingface.co/deepseek-community/Janus-Pro-1B/tree/1655280bb75959cc1cb85529a2a8b26e7016072e", "sourceRevision": "deepseek-community/Janus-Pro-1B@1655280bb75959cc1cb85529a2a8b26e7016072e", "sourceLicense": "MoDiff-authored Gallery metadata", - "modelTerms": ["https://github.com/deepseek-ai/Janus/blob/main/LICENSE-MODEL"], + "modelTerms": [ + "https://github.com/deepseek-ai/Janus/blob/main/LICENSE-MODEL" + ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], @@ -15331,7 +15767,9 @@ "sourceUrl": "https://huggingface.co/deepseek-community/Janus-Pro-1B/tree/1655280bb75959cc1cb85529a2a8b26e7016072e", "sourceRevision": "deepseek-community/Janus-Pro-1B@1655280bb75959cc1cb85529a2a8b26e7016072e", "sourceLicense": "MoDiff-authored Gallery metadata", - "modelTerms": ["https://github.com/deepseek-ai/Janus/blob/main/LICENSE-MODEL"], + "modelTerms": [ + "https://github.com/deepseek-ai/Janus/blob/main/LICENSE-MODEL" + ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], @@ -15356,7 +15794,9 @@ "sourceUrl": "https://huggingface.co/deepseek-community/Janus-Pro-1B/tree/1655280bb75959cc1cb85529a2a8b26e7016072e", "sourceRevision": "deepseek-community/Janus-Pro-1B@1655280bb75959cc1cb85529a2a8b26e7016072e", "sourceLicense": "MoDiff-authored Gallery metadata", - "modelTerms": ["https://github.com/deepseek-ai/Janus/blob/main/LICENSE-MODEL"], + "modelTerms": [ + "https://github.com/deepseek-ai/Janus/blob/main/LICENSE-MODEL" + ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], @@ -15381,7 +15821,9 @@ "sourceUrl": "https://huggingface.co/deepseek-community/Janus-Pro-1B/tree/1655280bb75959cc1cb85529a2a8b26e7016072e", "sourceRevision": "deepseek-community/Janus-Pro-1B@1655280bb75959cc1cb85529a2a8b26e7016072e", "sourceLicense": "MoDiff-authored Gallery metadata", - "modelTerms": ["https://github.com/deepseek-ai/Janus/blob/main/LICENSE-MODEL"], + "modelTerms": [ + "https://github.com/deepseek-ai/Janus/blob/main/LICENSE-MODEL" + ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], @@ -15406,7 +15848,9 @@ "sourceUrl": "https://huggingface.co/deepseek-community/Janus-Pro-1B/tree/1655280bb75959cc1cb85529a2a8b26e7016072e", "sourceRevision": "deepseek-community/Janus-Pro-1B@1655280bb75959cc1cb85529a2a8b26e7016072e", "sourceLicense": "MoDiff-authored Gallery metadata", - "modelTerms": ["https://github.com/deepseek-ai/Janus/blob/main/LICENSE-MODEL"], + "modelTerms": [ + "https://github.com/deepseek-ai/Janus/blob/main/LICENSE-MODEL" + ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], @@ -15431,7 +15875,9 @@ "sourceUrl": "https://huggingface.co/deepseek-community/Janus-Pro-1B/tree/1655280bb75959cc1cb85529a2a8b26e7016072e", "sourceRevision": "deepseek-community/Janus-Pro-1B@1655280bb75959cc1cb85529a2a8b26e7016072e", "sourceLicense": "MoDiff-authored Gallery metadata", - "modelTerms": ["https://github.com/deepseek-ai/Janus/blob/main/LICENSE-MODEL"], + "modelTerms": [ + "https://github.com/deepseek-ai/Janus/blob/main/LICENSE-MODEL" + ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], @@ -15456,7 +15902,9 @@ "sourceUrl": "https://huggingface.co/deepseek-community/Janus-Pro-1B/tree/1655280bb75959cc1cb85529a2a8b26e7016072e", "sourceRevision": "deepseek-community/Janus-Pro-1B@1655280bb75959cc1cb85529a2a8b26e7016072e", "sourceLicense": "MoDiff-authored Gallery metadata", - "modelTerms": ["https://github.com/deepseek-ai/Janus/blob/main/LICENSE-MODEL"], + "modelTerms": [ + "https://github.com/deepseek-ai/Janus/blob/main/LICENSE-MODEL" + ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], @@ -15481,7 +15929,9 @@ "sourceUrl": "https://huggingface.co/deepseek-community/Janus-Pro-1B/tree/1655280bb75959cc1cb85529a2a8b26e7016072e", "sourceRevision": "deepseek-community/Janus-Pro-1B@1655280bb75959cc1cb85529a2a8b26e7016072e", "sourceLicense": "MoDiff-authored Gallery metadata", - "modelTerms": ["https://github.com/deepseek-ai/Janus/blob/main/LICENSE-MODEL"], + "modelTerms": [ + "https://github.com/deepseek-ai/Janus/blob/main/LICENSE-MODEL" + ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], @@ -15506,7 +15956,9 @@ "sourceUrl": "https://huggingface.co/deepseek-community/Janus-Pro-1B/tree/1655280bb75959cc1cb85529a2a8b26e7016072e", "sourceRevision": "deepseek-community/Janus-Pro-1B@1655280bb75959cc1cb85529a2a8b26e7016072e", "sourceLicense": "MoDiff-authored Gallery metadata", - "modelTerms": ["https://github.com/deepseek-ai/Janus/blob/main/LICENSE-MODEL"], + "modelTerms": [ + "https://github.com/deepseek-ai/Janus/blob/main/LICENSE-MODEL" + ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], @@ -20182,7 +20634,9 @@ "sourceUrl": "https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14", "sourceRevision": "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14", "sourceLicense": "MoDiff-authored Gallery metadata", - "modelTerms": ["CreativeML Open RAIL-M at the pinned Stable Diffusion v1.5 revision."], + "modelTerms": [ + "CreativeML Open RAIL-M at the pinned Stable Diffusion v1.5 revision." + ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], @@ -20207,7 +20661,9 @@ "sourceUrl": "https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14", "sourceRevision": "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14", "sourceLicense": "MoDiff-authored Gallery metadata", - "modelTerms": ["CreativeML Open RAIL-M at the pinned Stable Diffusion v1.5 revision."], + "modelTerms": [ + "CreativeML Open RAIL-M at the pinned Stable Diffusion v1.5 revision." + ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], @@ -20232,7 +20688,9 @@ "sourceUrl": "https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14", "sourceRevision": "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14", "sourceLicense": "MoDiff-authored Gallery metadata", - "modelTerms": ["CreativeML Open RAIL-M at the pinned Stable Diffusion v1.5 revision."], + "modelTerms": [ + "CreativeML Open RAIL-M at the pinned Stable Diffusion v1.5 revision." + ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], @@ -20257,7 +20715,9 @@ "sourceUrl": "https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14", "sourceRevision": "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14", "sourceLicense": "MoDiff-authored Gallery metadata", - "modelTerms": ["CreativeML Open RAIL-M at the pinned Stable Diffusion v1.5 revision."], + "modelTerms": [ + "CreativeML Open RAIL-M at the pinned Stable Diffusion v1.5 revision." + ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], @@ -24758,7 +25218,9 @@ "reviewedBy": "SOURAV DAS", "reviewedAt": "2026-08-03", "reviewClass": "standard-human-attestation", - "consumingTemplateIds": ["wan_vace_outpaint_reframe"] + "consumingTemplateIds": [ + "wan_vace_outpaint_reframe" + ] }, { "path": "template-gallery/runtime-inputs/assets/124415536a8071baccf8821232ad79a0a8ceec30ae62617c91a8d7a0b59d0a8c.webp", @@ -24781,7 +25243,9 @@ "reviewedBy": "SOURAV DAS", "reviewedAt": "2026-08-03", "reviewClass": "standard-human-attestation", - "consumingTemplateIds": ["qwen_logo_texture"] + "consumingTemplateIds": [ + "qwen_logo_texture" + ] }, { "path": "template-gallery/runtime-inputs/assets/16f6ea27b5d7cfaed106e2e694572bbe92b7c7e2a43835b3f4313a748f510f74.png", @@ -24804,7 +25268,9 @@ "reviewedBy": "SOURAV DAS", "reviewedAt": "2026-08-03", "reviewClass": "standard-human-attestation", - "consumingTemplateIds": ["flux_fill_inpaint"] + "consumingTemplateIds": [ + "flux_fill_inpaint" + ] }, { "path": "template-gallery/runtime-inputs/assets/1d993540e914f0e2d230f1133b57ae14bb837829237a53c89613fcdef6699995.webp", @@ -24827,7 +25293,9 @@ "reviewedBy": "SOURAV DAS", "reviewedAt": "2026-08-03", "reviewClass": "standard-human-attestation", - "consumingTemplateIds": ["flux2_klein_multi_reference"] + "consumingTemplateIds": [ + "flux2_klein_multi_reference" + ] }, { "path": "template-gallery/runtime-inputs/assets/218d83e0706fec201097582a6e5e00dc79f2d7d1ecb0badba2214c5ecaae1866.mp4", @@ -24850,7 +25318,9 @@ "reviewedBy": "SOURAV DAS", "reviewedAt": "2026-08-03", "reviewClass": "standard-human-attestation", - "consumingTemplateIds": ["wan_vace_video_to_video"] + "consumingTemplateIds": [ + "wan_vace_video_to_video" + ] }, { "path": "template-gallery/runtime-inputs/assets/233d1b3a123fceb4f3b68d2d3a9f5b4129627073b8235fe7248ae6ebdeecb554.mp4", @@ -24876,7 +25346,9 @@ "reviewedBy": "SOURAV DAS", "reviewedAt": "2026-08-03", "reviewClass": "standard-human-attestation", - "consumingTemplateIds": ["ltx_video_video_to_video"] + "consumingTemplateIds": [ + "ltx_video_video_to_video" + ] }, { "path": "template-gallery/runtime-inputs/assets/283b1cfb32b15fe6b31a29dce1f2b96026c1ad0826bf3f24aebebf4b6f9a4f07.webp", @@ -24899,7 +25371,9 @@ "reviewedBy": "SOURAV DAS", "reviewedAt": "2026-08-03", "reviewClass": "standard-human-attestation", - "consumingTemplateIds": ["reference_fusion"] + "consumingTemplateIds": [ + "reference_fusion" + ] }, { "path": "template-gallery/runtime-inputs/assets/29722ed072feec11cd36adce7b6cb48483bff3f05776048b93f960b5554ab533.png", @@ -24922,7 +25396,9 @@ "reviewedBy": "SOURAV DAS", "reviewedAt": "2026-08-03", "reviewClass": "standard-human-attestation", - "consumingTemplateIds": ["qwen_inpaint_mask_draft"] + "consumingTemplateIds": [ + "qwen_inpaint_mask_draft" + ] }, { "path": "template-gallery/runtime-inputs/assets/2e0ec8892660785e322468d0153fd2dadf7a4d920fce2d7d4a0b686a8fe8515d.webp", @@ -24945,7 +25421,9 @@ "reviewedBy": "SOURAV DAS", "reviewedAt": "2026-08-03", "reviewClass": "standard-human-attestation", - "consumingTemplateIds": ["flux_redux_edit"] + "consumingTemplateIds": [ + "flux_redux_edit" + ] }, { "path": "template-gallery/runtime-inputs/assets/2e202069a584ee5ada91e2deaea6bf7b92a94f4816e669e695d7cb64d5a1cb0e.png", @@ -24968,7 +25446,9 @@ "reviewedBy": "SOURAV DAS", "reviewedAt": "2026-08-03", "reviewClass": "standard-human-attestation", - "consumingTemplateIds": ["flux_depth_control"] + "consumingTemplateIds": [ + "flux_depth_control" + ] }, { "creatorOrRightsholder": "MoDiff project maintainers, subject to original synthetic source terms", @@ -25017,7 +25497,9 @@ "reviewedBy": "SOURAV DAS", "reviewedAt": "2026-08-03", "reviewClass": "standard-human-attestation", - "consumingTemplateIds": ["ace_step_audio_continuation"] + "consumingTemplateIds": [ + "ace_step_audio_continuation" + ] }, { "path": "template-gallery/runtime-inputs/assets/38a6f334f89048effe579fc473d6fb38437eb579f324ac399d1ec0f6509f74d9.webp", @@ -25040,7 +25522,9 @@ "reviewedBy": "SOURAV DAS", "reviewedAt": "2026-08-03", "reviewClass": "standard-human-attestation", - "consumingTemplateIds": ["ltx_video_long_showcase"] + "consumingTemplateIds": [ + "ltx_video_long_showcase" + ] }, { "path": "template-gallery/runtime-inputs/assets/39428f00f67b49fc6d624617df2964c9f869de21e7e188ef5b231ae04c4aeacc.webp", @@ -25063,7 +25547,10 @@ "reviewedBy": "SOURAV DAS", "reviewedAt": "2026-08-03", "reviewClass": "standard-human-attestation", - "consumingTemplateIds": ["qwen_multi_reference_product", "reference_fusion"] + "consumingTemplateIds": [ + "qwen_multi_reference_product", + "reference_fusion" + ] }, { "path": "template-gallery/runtime-inputs/assets/3c4d3a7a58a7be7f8d8920106dcfea30e28b4af115ce406bcf5b16cec4b4297a.mp4", @@ -25086,7 +25573,9 @@ "reviewedBy": "SOURAV DAS", "reviewedAt": "2026-08-03", "reviewClass": "standard-human-attestation", - "consumingTemplateIds": ["wan_vace_outpaint_reframe"] + "consumingTemplateIds": [ + "wan_vace_outpaint_reframe" + ] }, { "creatorOrRightsholder": "MoDiff project maintainers, subject to original synthetic source terms", @@ -25135,7 +25624,9 @@ "reviewedBy": "SOURAV DAS", "reviewedAt": "2026-08-03", "reviewClass": "standard-human-attestation", - "consumingTemplateIds": ["flux_control_canny"] + "consumingTemplateIds": [ + "flux_control_canny" + ] }, { "creatorOrRightsholder": "MoDiff project maintainers, subject to original synthetic source terms", @@ -25184,7 +25675,9 @@ "reviewedBy": "SOURAV DAS", "reviewedAt": "2026-08-03", "reviewClass": "standard-human-attestation", - "consumingTemplateIds": ["qwen_multi_reference_product"] + "consumingTemplateIds": [ + "qwen_multi_reference_product" + ] }, { "path": "template-gallery/runtime-inputs/assets/4b1b8d9e351abd437f2ffff90cc6a958160a87863ba4d8e85a0aa80a37e7a10e.webp", @@ -25207,7 +25700,9 @@ "reviewedBy": "SOURAV DAS", "reviewedAt": "2026-08-03", "reviewClass": "standard-human-attestation", - "consumingTemplateIds": ["qwen_character_angles"] + "consumingTemplateIds": [ + "qwen_character_angles" + ] }, { "path": "template-gallery/runtime-inputs/assets/4b800b6a362c9ad7755858a3ec2affbda8706c5a71578ced35b80432fd234741.webp", @@ -25230,7 +25725,9 @@ "reviewedBy": "SOURAV DAS", "reviewedAt": "2026-08-03", "reviewClass": "standard-human-attestation", - "consumingTemplateIds": ["flux_redux_multi_reference"] + "consumingTemplateIds": [ + "flux_redux_multi_reference" + ] }, { "creatorOrRightsholder": "MoDiff project maintainers, subject to original synthetic source terms", @@ -25279,7 +25776,9 @@ "reviewedBy": "SOURAV DAS", "reviewedAt": "2026-08-03", "reviewClass": "standard-human-attestation", - "consumingTemplateIds": ["ltx_video_multi_reference"] + "consumingTemplateIds": [ + "ltx_video_multi_reference" + ] }, { "path": "template-gallery/runtime-inputs/assets/6224e9ee47765858f2ec0c33679140d020cf3ad6e4fa2fa4557ef50f811aef0e.webp", @@ -25302,7 +25801,9 @@ "reviewedBy": "SOURAV DAS", "reviewedAt": "2026-08-03", "reviewClass": "standard-human-attestation", - "consumingTemplateIds": ["qwen_tile_extract"] + "consumingTemplateIds": [ + "qwen_tile_extract" + ] }, { "path": "template-gallery/runtime-inputs/assets/70c74691e2bcd7cdb352b7e64e5af5a1a7f01d77112d32a8edadc0060a95ef34.png", @@ -25325,7 +25826,9 @@ "reviewedBy": "maintainer (current user)", "reviewedAt": "2026-11-12", "reviewClass": "per-file-maintainer-accepted-native-three-registration", - "consumingTemplateIds": ["flux_kontext_multi_reference"], + "consumingTemplateIds": [ + "flux_kontext_multi_reference" + ], "derivedFromContentHash": "sha256:bytes:9f421cdc0fa80b3aae368bd3b20a8f6f05942ec461f88541f01aec5390468897", "publicationBasis": "Existing maintainer publication authorization and current explicit instruction to register these three accepted assets; no new ownership or rights quotation is fabricated.", "humanApprovalPacketSHA256": "69c6b3d9b0ea2fcca16ee538f6e75b414b7141658b74f10578758e61360f63fd" @@ -25351,7 +25854,9 @@ "reviewedBy": "SOURAV DAS", "reviewedAt": "2026-08-03", "reviewClass": "standard-human-attestation", - "consumingTemplateIds": ["ltx_video_multi_reference"] + "consumingTemplateIds": [ + "ltx_video_multi_reference" + ] }, { "path": "template-gallery/runtime-inputs/assets/799d82b016a108d4b6902500b4226afd5d2391f4a7b0693af75255425c943a5e.png", @@ -25374,7 +25879,9 @@ "reviewedBy": "SOURAV DAS", "reviewedAt": "2026-08-03", "reviewClass": "standard-human-attestation", - "consumingTemplateIds": ["flux_fill_outpaint"] + "consumingTemplateIds": [ + "flux_fill_outpaint" + ] }, { "path": "template-gallery/runtime-inputs/assets/7f1ea58485fa7802765b9fbbf0e6957e8607261c91669fdcc44cbed80c6fb309.webp", @@ -25397,7 +25904,9 @@ "reviewedBy": "SOURAV DAS", "reviewedAt": "2026-08-03", "reviewClass": "standard-human-attestation", - "consumingTemplateIds": ["flux_redux_multi_reference"] + "consumingTemplateIds": [ + "flux_redux_multi_reference" + ] }, { "path": "template-gallery/runtime-inputs/assets/862e292caa1759156fffde5cfccda8b97ec622514258f81986188cf63a836ea9.webp", @@ -25420,7 +25929,9 @@ "reviewedBy": "SOURAV DAS", "reviewedAt": "2026-08-03", "reviewClass": "standard-human-attestation", - "consumingTemplateIds": ["qwen_outpaint_draft"] + "consumingTemplateIds": [ + "qwen_outpaint_draft" + ] }, { "path": "template-gallery/runtime-inputs/assets/88a7ada5cb91a6ef86de0ff7c26c6b4683df25cc0baa18382371ce0748cd0bd6.webp", @@ -25443,7 +25954,9 @@ "reviewedBy": "SOURAV DAS", "reviewedAt": "2026-08-03", "reviewClass": "standard-human-attestation", - "consumingTemplateIds": ["ltx_video_long_showcase"] + "consumingTemplateIds": [ + "ltx_video_long_showcase" + ] }, { "creatorOrRightsholder": "MoDiff project maintainers, subject to original synthetic source terms", @@ -25492,7 +26005,10 @@ "reviewedBy": "SOURAV DAS", "reviewedAt": "2026-08-03", "reviewClass": "standard-human-attestation", - "consumingTemplateIds": ["ltx_video_image_to_video", "ltx_video_long_showcase"] + "consumingTemplateIds": [ + "ltx_video_image_to_video", + "ltx_video_long_showcase" + ] }, { "path": "template-gallery/runtime-inputs/assets/9328061557396ef591a9f4a6242abf1cdd61082846518726c3114f746ccedd63.webp", @@ -25515,7 +26031,9 @@ "reviewedBy": "SOURAV DAS", "reviewedAt": "2026-08-03", "reviewClass": "standard-human-attestation", - "consumingTemplateIds": ["qwen_logo_texture"] + "consumingTemplateIds": [ + "qwen_logo_texture" + ] }, { "path": "template-gallery/runtime-inputs/assets/965240cf250a9074a7adab394c76070674cf517bed42b6c4647112d17dec84de.webp", @@ -25538,7 +26056,9 @@ "reviewedBy": "SOURAV DAS", "reviewedAt": "2026-08-03", "reviewClass": "standard-human-attestation", - "consumingTemplateIds": ["qwen_layered_portrait"] + "consumingTemplateIds": [ + "qwen_layered_portrait" + ] }, { "path": "template-gallery/runtime-inputs/assets/9f9f9685db5e9f8e1c162a0515151b03912c84777727b38682b65839db501ae6.webp", @@ -25561,7 +26081,9 @@ "reviewedBy": "SOURAV DAS", "reviewedAt": "2026-08-03", "reviewClass": "standard-human-attestation", - "consumingTemplateIds": ["qwen_inpaint_object_replace"] + "consumingTemplateIds": [ + "qwen_inpaint_object_replace" + ] }, { "path": "template-gallery/runtime-inputs/assets/a2f8ac6f5937d6e618b48ce9947153b8233ff7a82dcf67f28766d20b9917d730.webp", @@ -25584,7 +26106,9 @@ "reviewedBy": "SOURAV DAS", "reviewedAt": "2026-08-03", "reviewClass": "standard-human-attestation", - "consumingTemplateIds": ["qwen_inpaint_mask_draft"] + "consumingTemplateIds": [ + "qwen_inpaint_mask_draft" + ] }, { "path": "template-gallery/runtime-inputs/assets/a6d165bd87e2c57ab8cf71fa15de9d8724fccf5782c16c34c25dc77934751676.webp", @@ -25607,7 +26131,9 @@ "reviewedBy": "SOURAV DAS", "reviewedAt": "2026-08-03", "reviewClass": "standard-human-attestation", - "consumingTemplateIds": ["qwen_edit_strength_sweep"] + "consumingTemplateIds": [ + "qwen_edit_strength_sweep" + ] }, { "path": "template-gallery/runtime-inputs/assets/a7b61f36043354596eb01e702474300b222cb32e304bcf259506cad03917ce9b.webp", @@ -25658,7 +26184,10 @@ "reviewedBy": "SOURAV DAS", "reviewedAt": "2026-08-03", "reviewClass": "standard-human-attestation", - "consumingTemplateIds": ["qwen_control_image_layout", "qwen_packaging_dieline"] + "consumingTemplateIds": [ + "qwen_control_image_layout", + "qwen_packaging_dieline" + ] }, { "path": "template-gallery/runtime-inputs/assets/b7c221b367738177e32fece56067d743df96282a6ccb2afd040ee89ea0a8f678.webp", @@ -25681,7 +26210,9 @@ "reviewedBy": "SOURAV DAS", "reviewedAt": "2026-08-03", "reviewClass": "standard-human-attestation", - "consumingTemplateIds": ["flux_fill_inpaint"] + "consumingTemplateIds": [ + "flux_fill_inpaint" + ] }, { "path": "template-gallery/runtime-inputs/assets/b9909f4cbff8af6e97be6d1e4923c67687eee41dbd64b051a018866781da12ab.webp", @@ -25704,7 +26235,9 @@ "reviewedBy": "SOURAV DAS", "reviewedAt": "2026-08-03", "reviewClass": "standard-human-attestation", - "consumingTemplateIds": ["character_edit"] + "consumingTemplateIds": [ + "character_edit" + ] }, { "path": "template-gallery/runtime-inputs/assets/bf4dbaa55b83b19ca56c691e9d1a10d3b838ff2fec926aaea6b526561c68f8e6.png", @@ -25727,7 +26260,9 @@ "reviewedBy": "SOURAV DAS", "reviewedAt": "2026-08-03", "reviewClass": "standard-human-attestation", - "consumingTemplateIds": ["flux_fill_outpaint"] + "consumingTemplateIds": [ + "flux_fill_outpaint" + ] }, { "path": "template-gallery/runtime-inputs/assets/c810699838c636767d2a5b25fb457df94a4b76a70da9a77e77009681779acbf2.webp", @@ -25750,7 +26285,9 @@ "reviewedBy": "SOURAV DAS", "reviewedAt": "2026-08-03", "reviewClass": "standard-human-attestation", - "consumingTemplateIds": ["ltx_video_long_showcase"] + "consumingTemplateIds": [ + "ltx_video_long_showcase" + ] }, { "path": "template-gallery/runtime-inputs/assets/d49908e24c58d144f4264f4028cb0f7f2e72fb02b315443fd021715ebed1e737.webp", @@ -25773,7 +26310,9 @@ "reviewedBy": "SOURAV DAS", "reviewedAt": "2026-08-03", "reviewClass": "standard-human-attestation", - "consumingTemplateIds": ["ltx_video_long_showcase"] + "consumingTemplateIds": [ + "ltx_video_long_showcase" + ] }, { "path": "template-gallery/runtime-inputs/assets/d5ba3943d6c0a264860ba0cde18d87e2d9554a3f7328308f4d771e082a9e0c24.png", @@ -25796,7 +26335,9 @@ "reviewedBy": "SOURAV DAS", "reviewedAt": "2026-08-03", "reviewClass": "standard-human-attestation", - "consumingTemplateIds": ["flux2_klein_edit"] + "consumingTemplateIds": [ + "flux2_klein_edit" + ] }, { "path": "template-gallery/runtime-inputs/assets/d86b921f1be36360b5b660b8a5b9d0e9165e888be8a06fe2d8f362e87de40429.mp4", @@ -25819,7 +26360,9 @@ "reviewedBy": "SOURAV DAS", "reviewedAt": "2026-08-03", "reviewClass": "standard-human-attestation", - "consumingTemplateIds": ["wan_vace_video_color_grade"] + "consumingTemplateIds": [ + "wan_vace_video_color_grade" + ] }, { "path": "template-gallery/runtime-inputs/assets/d898e00f3be4b28e237f71acf8024ad3715a657e1fcf3aeaf57279468dff7a76.webp", @@ -25842,7 +26385,9 @@ "reviewedBy": "SOURAV DAS", "reviewedAt": "2026-08-03", "reviewClass": "standard-human-attestation", - "consumingTemplateIds": ["qwen_outpaint_aspect_template"] + "consumingTemplateIds": [ + "qwen_outpaint_aspect_template" + ] }, { "path": "template-gallery/runtime-inputs/assets/ddaccd06100d51494e5aaaecedab7b27eaeeda5290d453498d3e1cb9460ad474.webp", @@ -25865,7 +26410,9 @@ "reviewedBy": "SOURAV DAS", "reviewedAt": "2026-08-03", "reviewClass": "standard-human-attestation", - "consumingTemplateIds": ["ltx_video_long_showcase"] + "consumingTemplateIds": [ + "ltx_video_long_showcase" + ] }, { "path": "template-gallery/runtime-inputs/assets/e07d05a658d361b6d28af62bcccfaeba9254507467dae1c5839efd546fed96a7.wav", @@ -25888,7 +26435,10 @@ "reviewedBy": "SOURAV DAS", "reviewedAt": "2026-08-03", "reviewClass": "standard-human-attestation", - "consumingTemplateIds": ["ace_step_audio_repaint", "ace_step_audio_variation"] + "consumingTemplateIds": [ + "ace_step_audio_repaint", + "ace_step_audio_variation" + ] }, { "path": "template-gallery/runtime-inputs/assets/e0ab22f77f5d966d7868f8950f79702dc6d156d0eaef3e06205097558d5c5bb2.webp", @@ -25911,7 +26461,9 @@ "reviewedBy": "SOURAV DAS", "reviewedAt": "2026-08-03", "reviewClass": "standard-human-attestation", - "consumingTemplateIds": ["qwen_product_ad_composite"] + "consumingTemplateIds": [ + "qwen_product_ad_composite" + ] }, { "path": "template-gallery/runtime-inputs/assets/e0f19676addbba6fe954711c235878ef43495e8066b84ed70b5c240a8512b026.mp4", @@ -25934,7 +26486,9 @@ "reviewedBy": "SOURAV DAS", "reviewedAt": "2026-08-03", "reviewClass": "standard-human-attestation", - "consumingTemplateIds": ["wan_vace_grayscale_control"] + "consumingTemplateIds": [ + "wan_vace_grayscale_control" + ] }, { "path": "template-gallery/runtime-inputs/assets/e14e0fb4bccace254e3430bbddd49728980e5445b988eff1ae8164f135d1cc8d.png", @@ -25957,7 +26511,9 @@ "reviewedBy": "SOURAV DAS", "reviewedAt": "2026-08-03", "reviewClass": "standard-human-attestation", - "consumingTemplateIds": ["qwen_inpaint_object_replace"] + "consumingTemplateIds": [ + "qwen_inpaint_object_replace" + ] }, { "creatorOrRightsholder": "MoDiff project maintainers, subject to original synthetic source terms", @@ -26006,7 +26562,9 @@ "reviewedBy": "SOURAV DAS", "reviewedAt": "2026-08-03", "reviewClass": "standard-human-attestation", - "consumingTemplateIds": ["qwen_edit_plus_single_image"] + "consumingTemplateIds": [ + "qwen_edit_plus_single_image" + ] }, { "path": "template-gallery/runtime-inputs/assets/f791a809c0df307cd7dafa8c54ae86bbe4c53d73afdacb2183ff8cdbeac994c2.webp", @@ -26029,7 +26587,9 @@ "reviewedBy": "SOURAV DAS", "reviewedAt": "2026-08-03", "reviewClass": "standard-human-attestation", - "consumingTemplateIds": ["qwen_product_relight"] + "consumingTemplateIds": [ + "qwen_product_relight" + ] }, { "creatorOrRightsholder": "MoDiff project maintainers, subject to original synthetic source terms", @@ -26078,7 +26638,9 @@ "reviewedBy": "SOURAV DAS", "reviewedAt": "2026-08-03", "reviewClass": "standard-human-attestation", - "consumingTemplateIds": ["flux2_klein_multi_reference"] + "consumingTemplateIds": [ + "flux2_klein_multi_reference" + ] }, { "creatorOrRightsholder": "MoDiff project maintainers, subject to original synthetic source terms", @@ -26735,7 +27297,9 @@ "sourceUrl": "https://huggingface.co/black-forest-labs/flux-3-image-klein/tree/8454017f9ebaada30c998fccd9f67a80c7580f68", "sourceRevision": "black-forest-labs/flux-3-image-klein@8454017f9ebaada30c998fccd9f67a80c7580f68", "sourceLicense": "Apache-2.0 project-authored metadata", - "modelTerms": ["black-forest-labs/flux-3-image-klein@8454017f9ebaada30c998fccd9f67a80c7580f68: Apache-2.0"], + "modelTerms": [ + "black-forest-labs/flux-3-image-klein@8454017f9ebaada30c998fccd9f67a80c7580f68: Apache-2.0" + ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], @@ -26756,7 +27320,9 @@ "sourceUrl": "https://huggingface.co/black-forest-labs/flux-3-image-klein/tree/8454017f9ebaada30c998fccd9f67a80c7580f68", "sourceRevision": "black-forest-labs/flux-3-image-klein@8454017f9ebaada30c998fccd9f67a80c7580f68", "sourceLicense": "Original synthetic generation; underlying model terms retained", - "modelTerms": ["black-forest-labs/flux-3-image-klein@8454017f9ebaada30c998fccd9f67a80c7580f68: Apache-2.0"], + "modelTerms": [ + "black-forest-labs/flux-3-image-klein@8454017f9ebaada30c998fccd9f67a80c7580f68: Apache-2.0" + ], "aiGenerated": true, "humanLikenessConsent": "synthetic", "marks": [], @@ -26777,7 +27343,9 @@ "sourceUrl": "https://huggingface.co/black-forest-labs/flux-3-image-klein/tree/8454017f9ebaada30c998fccd9f67a80c7580f68", "sourceRevision": "black-forest-labs/flux-3-image-klein@8454017f9ebaada30c998fccd9f67a80c7580f68", "sourceLicense": "Apache-2.0 project-authored metadata", - "modelTerms": ["black-forest-labs/flux-3-image-klein@8454017f9ebaada30c998fccd9f67a80c7580f68: Apache-2.0"], + "modelTerms": [ + "black-forest-labs/flux-3-image-klein@8454017f9ebaada30c998fccd9f67a80c7580f68: Apache-2.0" + ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], @@ -26798,10 +27366,14 @@ "sourceUrl": "https://huggingface.co/black-forest-labs/flux-3-image-klein/tree/8454017f9ebaada30c998fccd9f67a80c7580f68", "sourceRevision": "black-forest-labs/flux-3-image-klein@8454017f9ebaada30c998fccd9f67a80c7580f68", "sourceLicense": "Original synthetic generation; underlying model terms retained", - "modelTerms": ["black-forest-labs/flux-3-image-klein@8454017f9ebaada30c998fccd9f67a80c7580f68: Apache-2.0"], + "modelTerms": [ + "black-forest-labs/flux-3-image-klein@8454017f9ebaada30c998fccd9f67a80c7580f68: Apache-2.0" + ], "aiGenerated": true, "humanLikenessConsent": "synthetic", - "marks": ["Fictional MATERIAL ATLAS label"], + "marks": [ + "Fictional MATERIAL ATLAS label" + ], "requiredAttribution": [], "assetLicense": "Apache-2.0", "reviewedBy": "SOURAV DAS", @@ -26849,7 +27421,9 @@ ], "aiGenerated": true, "humanLikenessConsent": "synthetic", - "marks": ["Fictional MATERIAL ATLAS label"], + "marks": [ + "Fictional MATERIAL ATLAS label" + ], "requiredAttribution": [], "assetLicense": "Apache-2.0", "reviewedBy": "SOURAV DAS", @@ -26867,7 +27441,9 @@ "sourceUrl": "https://huggingface.co/black-forest-labs/flux-3-image-klein/tree/8454017f9ebaada30c998fccd9f67a80c7580f68", "sourceRevision": "black-forest-labs/flux-3-image-klein@8454017f9ebaada30c998fccd9f67a80c7580f68", "sourceLicense": "Apache-2.0 project-authored metadata", - "modelTerms": ["black-forest-labs/flux-3-image-klein@8454017f9ebaada30c998fccd9f67a80c7580f68: Apache-2.0"], + "modelTerms": [ + "black-forest-labs/flux-3-image-klein@8454017f9ebaada30c998fccd9f67a80c7580f68: Apache-2.0" + ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], @@ -26888,10 +27464,14 @@ "sourceUrl": "https://huggingface.co/black-forest-labs/flux-3-image-klein/tree/8454017f9ebaada30c998fccd9f67a80c7580f68", "sourceRevision": "black-forest-labs/flux-3-image-klein@8454017f9ebaada30c998fccd9f67a80c7580f68", "sourceLicense": "Original synthetic generation; underlying model terms retained", - "modelTerms": ["black-forest-labs/flux-3-image-klein@8454017f9ebaada30c998fccd9f67a80c7580f68: Apache-2.0"], + "modelTerms": [ + "black-forest-labs/flux-3-image-klein@8454017f9ebaada30c998fccd9f67a80c7580f68: Apache-2.0" + ], "aiGenerated": true, "humanLikenessConsent": "synthetic", - "marks": ["Fictional MATERIAL ATLAS label"], + "marks": [ + "Fictional MATERIAL ATLAS label" + ], "requiredAttribution": [], "assetLicense": "Apache-2.0", "reviewedBy": "SOURAV DAS", @@ -26909,7 +27489,9 @@ "sourceUrl": "https://huggingface.co/black-forest-labs/flux-3-image-klein/tree/8454017f9ebaada30c998fccd9f67a80c7580f68", "sourceRevision": "black-forest-labs/flux-3-image-klein@8454017f9ebaada30c998fccd9f67a80c7580f68", "sourceLicense": "Apache-2.0 project-authored metadata", - "modelTerms": ["black-forest-labs/flux-3-image-klein@8454017f9ebaada30c998fccd9f67a80c7580f68: Apache-2.0"], + "modelTerms": [ + "black-forest-labs/flux-3-image-klein@8454017f9ebaada30c998fccd9f67a80c7580f68: Apache-2.0" + ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], @@ -26930,7 +27512,9 @@ "sourceUrl": "https://huggingface.co/black-forest-labs/flux-3-image-klein/tree/8454017f9ebaada30c998fccd9f67a80c7580f68", "sourceRevision": "black-forest-labs/flux-3-image-klein@8454017f9ebaada30c998fccd9f67a80c7580f68", "sourceLicense": "Original synthetic generation; underlying model terms retained", - "modelTerms": ["black-forest-labs/flux-3-image-klein@8454017f9ebaada30c998fccd9f67a80c7580f68: Apache-2.0"], + "modelTerms": [ + "black-forest-labs/flux-3-image-klein@8454017f9ebaada30c998fccd9f67a80c7580f68: Apache-2.0" + ], "aiGenerated": true, "humanLikenessConsent": "synthetic", "marks": [], @@ -26951,7 +27535,9 @@ "sourceUrl": "https://huggingface.co/black-forest-labs/flux-3-image-klein/tree/8454017f9ebaada30c998fccd9f67a80c7580f68", "sourceRevision": "black-forest-labs/flux-3-image-klein@8454017f9ebaada30c998fccd9f67a80c7580f68", "sourceLicense": "Apache-2.0 project-authored metadata", - "modelTerms": ["black-forest-labs/flux-3-image-klein@8454017f9ebaada30c998fccd9f67a80c7580f68: Apache-2.0"], + "modelTerms": [ + "black-forest-labs/flux-3-image-klein@8454017f9ebaada30c998fccd9f67a80c7580f68: Apache-2.0" + ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], @@ -26972,7 +27558,9 @@ "sourceUrl": "https://huggingface.co/black-forest-labs/flux-3-image-klein/tree/8454017f9ebaada30c998fccd9f67a80c7580f68", "sourceRevision": "black-forest-labs/flux-3-image-klein@8454017f9ebaada30c998fccd9f67a80c7580f68", "sourceLicense": "Original synthetic generation; underlying model terms retained", - "modelTerms": ["black-forest-labs/flux-3-image-klein@8454017f9ebaada30c998fccd9f67a80c7580f68: Apache-2.0"], + "modelTerms": [ + "black-forest-labs/flux-3-image-klein@8454017f9ebaada30c998fccd9f67a80c7580f68: Apache-2.0" + ], "aiGenerated": true, "humanLikenessConsent": "synthetic", "marks": [], @@ -27115,7 +27703,9 @@ ], "aiGenerated": true, "humanLikenessConsent": "synthetic", - "marks": ["Fictional MATERIAL ATLAS label"], + "marks": [ + "Fictional MATERIAL ATLAS label" + ], "requiredAttribution": [], "assetLicense": "Apache-2.0", "reviewedBy": "SOURAV DAS", @@ -27253,7 +27843,9 @@ ], "aiGenerated": true, "humanLikenessConsent": "synthetic", - "marks": ["Fictional MATERIAL ATLAS label"], + "marks": [ + "Fictional MATERIAL ATLAS label" + ], "requiredAttribution": [], "assetLicense": "Apache-2.0", "reviewedBy": "SOURAV DAS", @@ -27415,7 +28007,9 @@ "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], - "requiredAttribution": ["AI-generated with Lightricks LTX-2.5 Full. Original edit and Foley by MoDiff."], + "requiredAttribution": [ + "AI-generated with Lightricks LTX-2.5 Full. Original edit and Foley by MoDiff." + ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace owner", "reviewedAt": "2026-11-18", @@ -27438,7 +28032,9 @@ "aiGenerated": true, "humanLikenessConsent": "synthetic", "marks": [], - "requiredAttribution": ["AI-generated with Lightricks LTX-2.5 Full. Original edit and Foley by MoDiff."], + "requiredAttribution": [ + "AI-generated with Lightricks LTX-2.5 Full. Original edit and Foley by MoDiff." + ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace owner", "reviewedAt": "2026-11-18", @@ -27461,7 +28057,9 @@ "aiGenerated": true, "humanLikenessConsent": "synthetic", "marks": [], - "requiredAttribution": ["AI-generated with Lightricks LTX-2.5 Full. Original edit and Foley by MoDiff."], + "requiredAttribution": [ + "AI-generated with Lightricks LTX-2.5 Full. Original edit and Foley by MoDiff." + ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace owner", "reviewedAt": "2026-11-18", @@ -28753,7 +29351,9 @@ ], "aiGenerated": true, "humanLikenessConsent": "synthetic", - "marks": ["LumaPod project-authored concept name/wordmark approved in this packet"], + "marks": [ + "LumaPod project-authored concept name/wordmark approved in this packet" + ], "requiredAttribution": [], "path": "template-gallery/z_image_product_mockup.webp", "sha256": "sha256:bytes:0d9c80e29c95d62835f56c95d666ed6d8b47e6792005ab59aef1d1c9b6de84df", diff --git a/config/template-assets.v1.json b/config/template-assets.v1.json index 3584f68e..825c52b8 100644 --- a/config/template-assets.v1.json +++ b/config/template-assets.v1.json @@ -315,6 +315,17 @@ "width": 512, "height": 512 }, + { + "path": "template-gallery/cosmos3_super_text_to_image.webp", + "size": 228568, + "sha256": "sha256:bytes:90e6a18d8d085a653dd3f74168f93a30d99f8b0b7b74decb4f95f8a60bf4e7ad", + "contentType": "image/webp", + "purposes": [ + "runtime" + ], + "width": 1024, + "height": 1024 + }, { "path": "template-gallery/ddim_cifar10_preview.webp", "size": 962, @@ -370,6 +381,17 @@ "width": 1024, "height": 1024 }, + { + "path": "template-gallery/flux2_dev_text_to_image.webp", + "size": 297422, + "sha256": "sha256:bytes:6105156764537dd15a17c7fd2fbf73882a0c4991b1f7fb90700e9bbbf51de670", + "contentType": "image/webp", + "purposes": [ + "runtime" + ], + "width": 1024, + "height": 1024 + }, { "path": "template-gallery/flux2_klein_edit.webp", "size": 163900, @@ -3537,8 +3559,8 @@ }, { "path": "template-gallery/manifest.json", - "size": 477685, - "sha256": "sha256:bytes:dbfe7fcfa87e5e03df973310c7905fde71c6d74dc10a23ddb8929ecc19521c0d", + "size": 483020, + "sha256": "sha256:bytes:100626a0d35d6d31c18d319b76965055e00968228edfb926c0469dfda09c6561", "contentType": "application/json", "purposes": [ "runtime", @@ -4886,6 +4908,42 @@ "runtime" ] }, + { + "path": "template-gallery/reviews/cosmos3_super_text_to_image.original-provenance.json", + "size": 1821, + "sha256": "sha256:bytes:a7aeac67324bb549099efc0baf5dce1f4ee14108a2e41412a2ad6e8be6317e5b", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, + { + "path": "template-gallery/reviews/cosmos3_super_text_to_image.original-review.json", + "size": 693, + "sha256": "sha256:bytes:fdddc90b1953e7e304f263d219941667b756f3cf07e33ef25c1e371e88f849f4", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, + { + "path": "template-gallery/reviews/cosmos3_super_text_to_image.quality-review.json", + "size": 2638, + "sha256": "sha256:bytes:a5f08e5fa500a0c3f2cecfa572cb8d9c666e6680d0eff5bb8fac9b392cc61fab", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, + { + "path": "template-gallery/reviews/cosmos3_super_text_to_image.reviewed-provenance.json", + "size": 3192, + "sha256": "sha256:bytes:73996ca96a80f8244ecb17c4455ae9ea851b09c01c2af1ec8eb62ea0d67aea60", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, { "path": "template-gallery/reviews/ddim_cifar10_preview.original-provenance.json", "size": 873, @@ -5012,6 +5070,42 @@ "runtime" ] }, + { + "path": "template-gallery/reviews/flux2_dev_text_to_image.original-provenance.json", + "size": 1726, + "sha256": "sha256:bytes:fa7804bfeda1cf96922fb74621ad8ac9d6efa8dc468e8154af27165d05d77038", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, + { + "path": "template-gallery/reviews/flux2_dev_text_to_image.original-review.json", + "size": 720, + "sha256": "sha256:bytes:3d199d7d906fe2003fcc021c072409ce659821bbe5d40ee7fd1eabe1372e8700", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, + { + "path": "template-gallery/reviews/flux2_dev_text_to_image.quality-review.json", + "size": 2530, + "sha256": "sha256:bytes:cf719c3bb27135496b83bca79ff124c9ae8aefa53a79016685bb1c91cddbab7b", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, + { + "path": "template-gallery/reviews/flux2_dev_text_to_image.reviewed-provenance.json", + "size": 2728, + "sha256": "sha256:bytes:045e16b448a74a7235a6919aabef1fde27de88b05d7fc59661665f1988e79aea", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, { "path": "template-gallery/reviews/flux2_klein_edit.quality-review.json", "size": 4024, @@ -11035,9 +11129,9 @@ "height": 1024 } ], - "assetSetId": "sha256:canonical-json:6dae2febe2da4a2154a550b5eb6530843803c6fe838fd2a3220dda5337b45c1e", + "assetSetId": "sha256:canonical-json:e0bc710e59c6913a8e011a9bf904a4ea0dbe484a5b1ba87b0d5b2eddf5e73fed", "status": "ready", - "assetCount": 1135, - "totalBytes": 1135884729, + "assetCount": 1145, + "totalBytes": 1136432102, "missingAssets": [] } diff --git a/public/template-gallery/manifest.json b/public/template-gallery/manifest.json index 96f45f71..9a1634d2 100644 --- a/public/template-gallery/manifest.json +++ b/public/template-gallery/manifest.json @@ -6119,6 +6119,70 @@ "approvedMaskVideoPath": "/template-gallery/inputs/wan_animate_glasshouse_keeper.mask.mp4", "approvedOriginalReviewPath": "/template-gallery/reviews/wan_animate_glasshouse_keeper.original-review.json", "approvedOriginalProvenancePath": "/template-gallery/reviews/wan_animate_glasshouse_keeper.original-provenance.json" + }, + { + "templateId": "flux2_dev_text_to_image", + "templateLockHash": "tpl_8165c349", + "promptSettingsHash": "ps_0a263706", + "modelRevision": "black-forest-labs/FLUX.2-dev@26afe3a78bb242c0a8bb181dcc8937bb16e5c66c", + "runtimeFingerprint": "sha256:stable-runtime-v1:7983c8eb77a5d5691ed404deb9e90ada79d26f9ad1ed5e388a5a1b645e4e8bdc", + "modelSetHash": "sha256:model-set-v1:42b83dbe123cacc7631e70641b6032734b5f9d0b9c08df6b08c276011d5fea46", + "inputArtifactsHash": "sha256:input-artifacts-v1:4f53cda18c2baa0c0354bb5f9a3ecbe5ed12ab4d8e11ba873c2f11161202b945", + "graphHash": "sha256:canonical-graph-v1:9fef1dd853b5d5191ad0565b415768503d77c692b852b706c7a18ae64b60eebe", + "proofLockHash": "sha256:live-proof-lock-v1:3131fa31ccd76b29fda0281be8eb603ded5a07f797ec8ec514dff1d61ca10af6", + "templateRevisionHash": "sha256:template-revision-v1:321575e38dab03117f0097796200d14906545144925763c4aab32542c888b81b", + "backendSourceFingerprint": "sha256:backend-source-v1:11cad67cf676cdfd8b2521d985505f695b71aabe60f4bebed82d300ee350769f", + "backendContractFingerprint": "sha256:backend-contract-v1:473f6c7626d31c8fbd85131301d1209de7ef41080328a3bfd53fd8fe0cb8c618", + "modelCommit": "26afe3a78bb242c0a8bb181dcc8937bb16e5c66c", + "outputPath": "/template-gallery/flux2_dev_text_to_image.webp", + "thumbnailPath": "/template-gallery/flux2_dev_text_to_image.webp", + "mediaType": "image", + "width": 1024, + "height": 1024, + "mediaHash": "sha256:decoded-rgba:cf850723e9b2856d7d5a8882f3320a8cba7750cbb72b30c1947e63d2afd59df0", + "verificationStatus": "reviewed", + "qualityReviewStatus": "approved_reviewed", + "verificationTimestamp": "2026-11-25T14:05:28.369Z", + "reviewer": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25T15:10:00.323Z", + "provenancePath": "/template-gallery/reviews/flux2_dev_text_to_image.reviewed-provenance.json", + "qualityReviewPath": "/template-gallery/reviews/flux2_dev_text_to_image.quality-review.json", + "provenanceHash": "sha256:canonical-json:29e83fb8b24b12076eee7b310980459f66c78890e63713157efbc680e364adef", + "qualityReviewHash": "sha256:canonical-json:4d5ae8d6a32c4f726dc61ad1c4fd9c5134050dde2f2b2013f574cb626c7db477", + "approvedOriginalReviewPath": "/template-gallery/reviews/flux2_dev_text_to_image.original-review.json", + "approvedOriginalProvenancePath": "/template-gallery/reviews/flux2_dev_text_to_image.original-provenance.json" + }, + { + "templateId": "cosmos3_super_text_to_image", + "templateLockHash": "tpl_465869d5", + "promptSettingsHash": "ps_6cdafb83", + "modelRevision": "nvidia/Cosmos-Guardrail1@d6d4bfa899a71454a700907664f3e88f503950cf | nvidia/Cosmos3-Super-Text2Image@daf3d374804be4c512c2135568a7cb95d4341d79 | Qwen/Qwen3Guard-Gen-0.6B@fada3b2f655b89601929198343c94cd2f64d93cc", + "runtimeFingerprint": "sha256:stable-runtime-v1:05afe2ca78d692eb7c17f22a86297f97ab0e9501bcbc0725588e99ee6c659c67", + "modelSetHash": "sha256:model-set-v1:9927d2d2987da9c8455c58ffb81cd2e1164727ff7b65eafcf3811baded8afa9a", + "inputArtifactsHash": "sha256:input-artifacts-v1:4f53cda18c2baa0c0354bb5f9a3ecbe5ed12ab4d8e11ba873c2f11161202b945", + "graphHash": "sha256:canonical-graph-v1:d08b374fc745f68ba68a3f7043ef31be28fda17b73fff1703303d171ca523399", + "proofLockHash": "sha256:live-proof-lock-v1:e1970ed08c251dadda6ab92f87bf6427e59cd3c034fa16e5787b1dec200abfd5", + "templateRevisionHash": "sha256:template-revision-v1:80f901d3d68897bff5a94797e1864652383a14fdf2367412d9bc79c8ac739618", + "backendSourceFingerprint": "sha256:backend-source-v1:b29a5b0d317aaa781ae2a5205b46b518eea5a3d68a214eb0968dba4ac0660af7", + "backendContractFingerprint": "sha256:backend-contract-v1:646e1c5f6f1ad8f5cf142c5934145da6a4d0f12758a27c56a8e06ed3afdb3214", + "modelCommit": "nvidia/Cosmos-Guardrail1@d6d4bfa899a71454a700907664f3e88f503950cf | nvidia/Cosmos3-Super-Text2Image@daf3d374804be4c512c2135568a7cb95d4341d79 | Qwen/Qwen3Guard-Gen-0.6B@fada3b2f655b89601929198343c94cd2f64d93cc", + "outputPath": "/template-gallery/cosmos3_super_text_to_image.webp", + "thumbnailPath": "/template-gallery/cosmos3_super_text_to_image.webp", + "mediaType": "image", + "width": 1024, + "height": 1024, + "mediaHash": "sha256:decoded-rgba:f4b22cd622739c6c5e4922d7f0309b077b90092d0e7b54ab4a7cc0498c8af547", + "verificationStatus": "reviewed", + "qualityReviewStatus": "approved_reviewed", + "verificationTimestamp": "2026-11-25T14:51:04.000Z", + "reviewer": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25T15:10:00.323Z", + "provenancePath": "/template-gallery/reviews/cosmos3_super_text_to_image.reviewed-provenance.json", + "qualityReviewPath": "/template-gallery/reviews/cosmos3_super_text_to_image.quality-review.json", + "provenanceHash": "sha256:canonical-json:f925dcb0bc961dc050fec169a002d7706560a730ffd2aa5996628d6340593769", + "qualityReviewHash": "sha256:canonical-json:21d433d4f298ec4799fe8c07b7ed23bd249225fee5040f61c86b24c44b8de9a8", + "approvedOriginalReviewPath": "/template-gallery/reviews/cosmos3_super_text_to_image.original-review.json", + "approvedOriginalProvenancePath": "/template-gallery/reviews/cosmos3_super_text_to_image.original-provenance.json" } ] } diff --git a/scripts/template-gallery-harness.mjs b/scripts/template-gallery-harness.mjs index 04126238..df4a104a 100644 --- a/scripts/template-gallery-harness.mjs +++ b/scripts/template-gallery-harness.mjs @@ -1427,57 +1427,81 @@ export function selectPrimaryRunFile(files, templateId, runIndex, extensions = M }); } -async function decodedImageHash(imagePath) { +async function decodedImageHash(imagePath, { measureImageFrames = false } = {}) { const { chromium } = await import('playwright'); const browser = await chromium.launch(); try { const page = await browser.newPage(); + // ImageDecoder needs a secure context. Serve the decoding page wholly in Chromium. + if (measureImageFrames) { + const decoderPage = 'https://modiff-gallery.invalid/'; + await page.route(decoderPage, (route) => + route.fulfill({ contentType: 'text/html', body: 'Gallery image decoding' }), + ); + await page.goto(decoderPage); + } const bytes = readFileSync(imagePath); const extension = extname(imagePath).toLowerCase().replace('.', ''); const mime = extension === 'jpg' || extension === 'jpeg' ? 'image/jpeg' : extension === 'webp' ? 'image/webp' : 'image/png'; const dataUrl = `data:${mime};base64,${bytes.toString('base64')}`; - const result = await page.evaluate(async (src) => { - const image = new Image(); - image.decoding = 'sync'; - image.src = src; - await image.decode(); - const canvas = document.createElement('canvas'); - canvas.width = image.naturalWidth; - canvas.height = image.naturalHeight; - const context = canvas.getContext('2d', { willReadFrequently: true }); - if (!context) throw new Error('Could not create canvas context for decoded image hash.'); - context.drawImage(image, 0, 0); - const imageData = context.getImageData(0, 0, canvas.width, canvas.height); - let lumaSum = 0; - let lumaSquaredSum = 0; - let nearBlackPixels = 0; - const pixelCount = imageData.data.length / 4; - for (let offset = 0; offset < imageData.data.length; offset += 4) { - const luma = - 0.2126 * imageData.data[offset] + 0.7152 * imageData.data[offset + 1] + 0.0722 * imageData.data[offset + 2]; - lumaSum += luma; - lumaSquaredSum += luma * luma; - if (luma < 4) nearBlackPixels += 1; - } - const meanLuma = pixelCount > 0 ? lumaSum / pixelCount : 0; - let binary = ''; - const chunkSize = 32768; - for (let offset = 0; offset < imageData.data.length; offset += chunkSize) { - binary += String.fromCharCode(...imageData.data.slice(offset, offset + chunkSize)); - } - return { - width: canvas.width, - height: canvas.height, - meanLuma, - lumaStdDev: Math.sqrt(Math.max(0, lumaSquaredSum / pixelCount - meanLuma * meanLuma)), - nearBlackRatio: pixelCount > 0 ? nearBlackPixels / pixelCount : 1, - rgbaBase64: btoa(binary), - }; - }, dataUrl); + const result = await page.evaluate( + async ({ src, type, measureImageFrames }) => { + const image = new Image(); + image.decoding = 'sync'; + image.src = src; + await image.decode(); + let frames; + if (measureImageFrames) { + const data = await (await fetch(src)).arrayBuffer(); + const decoder = new globalThis.ImageDecoder({ data, type, preferAnimation: true }); + try { + await decoder.tracks.ready; + frames = decoder.tracks.selectedTrack.frameCount; + } finally { + decoder.close(); + } + } + const canvas = document.createElement('canvas'); + canvas.width = image.naturalWidth; + canvas.height = image.naturalHeight; + const context = canvas.getContext('2d', { willReadFrequently: true }); + if (!context) throw new Error('Could not create canvas context for decoded image hash.'); + context.drawImage(image, 0, 0); + const imageData = context.getImageData(0, 0, canvas.width, canvas.height); + let lumaSum = 0; + let lumaSquaredSum = 0; + let nearBlackPixels = 0; + const pixelCount = imageData.data.length / 4; + for (let offset = 0; offset < imageData.data.length; offset += 4) { + const luma = + 0.2126 * imageData.data[offset] + 0.7152 * imageData.data[offset + 1] + 0.0722 * imageData.data[offset + 2]; + lumaSum += luma; + lumaSquaredSum += luma * luma; + if (luma < 4) nearBlackPixels += 1; + } + const meanLuma = pixelCount > 0 ? lumaSum / pixelCount : 0; + let binary = ''; + const chunkSize = 32768; + for (let offset = 0; offset < imageData.data.length; offset += chunkSize) { + binary += String.fromCharCode(...imageData.data.slice(offset, offset + chunkSize)); + } + return { + width: canvas.width, + height: canvas.height, + frames, + meanLuma, + lumaStdDev: Math.sqrt(Math.max(0, lumaSquaredSum / pixelCount - meanLuma * meanLuma)), + nearBlackRatio: pixelCount > 0 ? nearBlackPixels / pixelCount : 1, + rgbaBase64: btoa(binary), + }; + }, + { src: dataUrl, type: mime, measureImageFrames }, + ); return { width: result.width, height: result.height, + ...(measureImageFrames && { frames: result.frames }), meanLuma: result.meanLuma, lumaStdDev: result.lumaStdDev, nearBlackRatio: result.nearBlackRatio, @@ -1755,7 +1779,7 @@ export async function decodedMediaHash(mediaPath, mediaType, args = {}) { if (mediaType === 'video') return decodedVideoHash(mediaPath, args); if (mediaType === 'audio') return decodedAudioHash(mediaPath, args); if (mediaType === 'json') return decodedJsonHash(mediaPath); - return decodedImageHash(mediaPath); + return decodedImageHash(mediaPath, args); } export async function finalizeReviewedDerivative(recordPath, mediaPath, mediaType = 'image', args = {}) { @@ -2125,9 +2149,10 @@ async function generate(args, artifactDir) { }); continue; } - const left = await decodedMediaHash(media.run1, mediaType, args); - const right = exactPublication ? await decodedMediaHash(media.run2, mediaType, args) : left; const expectedOutput = galleryExpectedOutput(template); + const decodeOptions = expectedOutput.frames === undefined ? args : { ...args, measureImageFrames: true }; + const left = await decodedMediaHash(media.run1, mediaType, decodeOptions); + const right = exactPublication ? await decodedMediaHash(media.run2, mediaType, decodeOptions) : left; const technicalErrors = technicalMediaErrors(left, expectedOutput, mediaType); if (exactPublication) technicalErrors.push(...technicalMediaErrors(right, expectedOutput, mediaType)); if (technicalErrors.length > 0) { @@ -2615,9 +2640,12 @@ export async function verifyGallery( if (!isWithheld(entry.thumbnailPath) && !existsSync(thumbnailPath)) { errors.push(`${entry.templateId} thumbnail file missing: ${entry.thumbnailPath}`); } + const template = historicalById.get(entry.templateId) ?? templatesById.get(entry.templateId); + const decodeOptions = + galleryExpectedOutput(template).frames === undefined ? args : { ...args, measureImageFrames: true }; const decoded = isWithheld(entry.outputPath) ? null - : await decodeMedia(outputPath, entry.mediaType ?? 'image', args); + : await decodeMedia(outputPath, entry.mediaType ?? 'image', decodeOptions); const decodedIdentityMatches = decodedMediaHashMatches(decoded, entry.mediaHash); if (decoded && !decodedIdentityMatches) { errors.push(`${entry.templateId} decoded hash mismatch: expected ${entry.mediaHash}, got ${decoded.hash}`); @@ -2646,7 +2674,6 @@ export async function verifyGallery( `${entry.templateId} audiovisual hash mismatch: expected ${entry.audiovisualMediaHash}, got ${audiovisualMediaHash ?? 'missing'}`, ); } - const template = historicalById.get(entry.templateId) ?? templatesById.get(entry.templateId); if (!template) { errors.push(`${entry.templateId} is not present in the current template runtime`); } else { diff --git a/scripts/template-gallery-harness.test.mjs b/scripts/template-gallery-harness.test.mjs index 5a2352f5..27dbff83 100644 --- a/scripts/template-gallery-harness.test.mjs +++ b/scripts/template-gallery-harness.test.mjs @@ -23,6 +23,7 @@ import { canonicalJsonHash, cardPreviewContractErrors, decodedAudiovisualMediaHash, + decodedMediaHash, decodedMediaHashMatches, decodedVideoFrameHashCompatibility, galleryExpectedOutput, @@ -48,6 +49,35 @@ import { let runtime; +test('decoded image media reports the actual frame count for a still-image release check', async () => { + const directory = mkdtempSync(join(tmpdir(), 'modiff-image-frames-')); + try { + const still = join(directory, 'still.webp'); + const animated = join(directory, 'animated.webp'); + writeFileSync(still, Buffer.from('UklGRhwAAABXRUJQVlA4TA8AAAAvA8AAAAcQ/Y/+ByKi/wEA', 'base64')); + writeFileSync( + animated, + Buffer.from( + 'UklGRoQAAABXRUJQVlA4WAoAAAACAAAAAwAAAwAAQU5JTQYAAAAAAAAAAABBTk1GKAAAAAAAAAAAAAMAAAMAAMgAAAJWUDhMDwAAAC8DwAAABxD9j/4HIqL/AQBBTk1GKAAAAAAAAAAAAAMAAAMAAMgAAABWUDhMDwAAAC8DwAAABxDR//4HIqL/AQA=', + 'base64', + ), + ); + const options = { measureImageFrames: true }; + const [single, multiple, historical] = await Promise.all([ + decodedMediaHash(still, 'image', options), + decodedMediaHash(animated, 'image', options), + decodedMediaHash(still, 'image'), + ]); + assert.deepEqual([single.frames, multiple.frames], [1, 2]); + assert.equal(historical.frames, undefined); + assert.equal(historical.hash, single.hash); + assert.ok(!technicalMediaErrors(single, { frames: 1 }, 'image').some((error) => error.includes('frames'))); + assert.ok(technicalMediaErrors(multiple, { frames: 1 }, 'image').some((error) => error.includes('frames'))); + } finally { + rmSync(directory, { recursive: true, force: true }); + } +}); + test('retained Gallery provenance cannot grant approval to another workflow or a replacement association', async () => { const fixture = subsetVerificationFixture(); try { diff --git a/src/studio/templateAssetSource.json b/src/studio/templateAssetSource.json index b7a339f0..d81cab4a 100644 --- a/src/studio/templateAssetSource.json +++ b/src/studio/templateAssetSource.json @@ -4,11 +4,11 @@ "localBasePath": "/template-gallery", "repoType": "dataset", "repoId": "sourav-das/modiff-template-gallery", - "revision": "2339c1cb95deb500215754b5a139c295dbbed7d7", + "revision": "ecb98164fd3b1e490a0b44b4a8cbb36db4b07729", "pathPrefix": "template-gallery", "assetManifestPath": "_modiff/template-assets.v1.json", - "assetSetId": "sha256:canonical-json:9b66cb94c2c55a8c0f1d0e17b7ecff667fb8553dc6bd16dc4e9bfcedf8325939", - "completeAssetSetId": "sha256:canonical-json:6dae2febe2da4a2154a550b5eb6530843803c6fe838fd2a3220dda5337b45c1e", + "assetSetId": "sha256:canonical-json:7a2f56d1e4a3a458722f89a15c5771669cd23909c0acd6f7a3bea2aaec2e51a8", + "completeAssetSetId": "sha256:canonical-json:e0bc710e59c6913a8e011a9bf904a4ea0dbe484a5b1ba87b0d5b2eddf5e73fed", "unavailableAssets": [ "template-gallery/ace_step_chinese_new_year_lora.card-poster.png", "template-gallery/ace_step_chinese_new_year_lora.wav", From 9edef01262f04bc5938ee815df9097d1fb381d0d Mon Sep 17 00:00:00 2001 From: Sourav Das Date: Wed, 25 Nov 2026 21:04:14 +0530 Subject: [PATCH 388/440] Publish fourteen approved source-bound Gallery recipes --- .../retained-gallery-approved-batch.v1.json | 1690 +++++---- ...etained-gallery-authoring-archives.v1.json | 528 +-- ...etained-gallery-batch-recipe-locks.v1.json | 206 ++ config/template-asset-rights.v1.json | 3268 ++++++++++++++--- config/template-assets.v1.json | 797 +++- public/template-gallery/manifest.json | 474 +++ src/studio/retainedGalleryApprovedBatch.ts | 1271 +++++++ src/studio/templateAssetSource.json | 6 +- src/studio/types.ts | 14 + 9 files changed, 6768 insertions(+), 1486 deletions(-) diff --git a/config/retained-gallery-approved-batch.v1.json b/config/retained-gallery-approved-batch.v1.json index 8e26e597..caf6a03a 100644 --- a/config/retained-gallery-approved-batch.v1.json +++ b/config/retained-gallery-approved-batch.v1.json @@ -1,4 +1,17 @@ { + "allegro_basalt_shore_at_dawn": { + "associationSha256": "5e5cda590b1d1145aff88977cb259229935570bdc8f7cbf795897b78dbb67497", + "backendSourceFingerprint": "sha256:backend-source-v1:b29a5b0d317aaa781ae2a5205b46b518eea5a3d68a214eb0968dba4ac0660af7", + "backendContractFingerprint": "sha256:backend-contract-v1:40a4eb8d6275c83725f57c4d3499b8d12c00f8cf6caffc2d07006e74d24ab820", + "templateRevisionHash": "5e7fa20679a68bf73600bf9fcb2bb07fffed7e65d5b01c2cd6276b3d98e8a86d", + "capturedAt": "2026-11-25T01:26:09.329Z", + "outputExtension": "mp4", + "primaryModelRepo": "rhymes-ai/Allegro", + "outputSize": { + "width": 1280, + "height": 720 + } + }, "alpine_lake_in_oils": { "associationSha256": "4dfdff4d86ccabd8a28819e0fc479f77f70106866dcb37ab3efc1541fa58b9a3", "backendSourceFingerprint": "sha256:backend-source-v1:3227569ff822090d00a80a3a88213d76d5ca43092d2918cec2494962457865a5", @@ -15,6 +28,94 @@ "height": 1024 } }, + "animatediff_candlelight_behind_amber_glass": { + "associationSha256": "12d558aee02588ef4df40667de428235453ed0c94dbf4b215d2d5e2de219be1d", + "backendSourceFingerprint": "sha256:backend-source-v1:2faeaaa03b7902a03df5cd0cea38129b7419f6d844125c0ca7e29ccfaf635290", + "backendContractFingerprint": "sha256:backend-contract-v1:32e6e74ce3a29d61ae997904d9d4a77259db5c3bd819dbfc15d312482a356f92", + "templateRevisionHash": "fc3355bbe64d94141436cda1cb7c173be5490cfeeeebacd8609ceee18d5e2109", + "capturedAt": "2026-11-25T02:54:46.523Z", + "outputExtension": "mp4", + "primaryModelRepo": "stable-diffusion-v1-5/stable-diffusion-v1-5", + "outputSize": { + "width": 512, + "height": 512 + } + }, + "animatediff_ivory_balloon_blue_mountains": { + "associationSha256": "4e75c68e43272d1fed65a290aca6b577fbb1fb94d6b04506fc516e550ff710e8", + "backendSourceFingerprint": "sha256:backend-source-v1:a107f0838ce3b1be98034123eb3bf3393928a09c5ad7e3c133687d5a7c58be57", + "backendContractFingerprint": "sha256:backend-contract-v1:03dea74157ff4e06596b9bd35e605c820dfee2fa4b4bac1772cbd948108d8ffd", + "templateRevisionHash": "4b4d081ecba0edc45452b914be1e511106c370500951c08bac57264a08abf8c8", + "capturedAt": "2026-11-24T07:09:23.646Z", + "outputExtension": "mp4", + "primaryModelRepo": "stable-diffusion-v1-5/stable-diffusion-v1-5", + "outputSize": { + "width": 512, + "height": 512 + } + }, + "animatediff_pag_snowmelt_over_river_stones": { + "associationSha256": "cc34b8af10217d801406af373334e595657de64946bab54c94c40de6a2f6a2a3", + "backendSourceFingerprint": "sha256:backend-source-v1:2faeaaa03b7902a03df5cd0cea38129b7419f6d844125c0ca7e29ccfaf635290", + "backendContractFingerprint": "sha256:backend-contract-v1:32e6e74ce3a29d61ae997904d9d4a77259db5c3bd819dbfc15d312482a356f92", + "templateRevisionHash": "43087167a4f17c0d0306e72d14750b647cb25811d30726ff3ef5cb57eb37ac4e", + "capturedAt": "2026-11-25T01:07:13.647Z", + "outputExtension": "mp4", + "primaryModelRepo": "stable-diffusion-v1-5/stable-diffusion-v1-5", + "outputSize": { + "width": 512, + "height": 512 + } + }, + "animatediff_red_tram_in_watercolor": { + "associationSha256": "2bf3ec1e879a42b0619c5b67b57c237c3f3646b8615eae16b71ea16a4db83f9a", + "backendSourceFingerprint": "sha256:backend-source-v1:2beaa95aae8558e64cf99f056b011d00c0653dc7d03987cd67c8ed7e774c770e", + "backendContractFingerprint": "sha256:backend-contract-v1:e1bf29e107307b73ad8153eff36b54b42bdf5622243915dbdd7c94e069726538", + "templateRevisionHash": "79480aa4c678fa413f77fa4c1c063f243438f1e6bd4573f90fc7f45c01e6af45", + "capturedAt": "2026-11-23T23:28:15.943Z", + "outputExtension": "mp4", + "primaryModelRepo": "stable-diffusion-v1-5/stable-diffusion-v1-5", + "outputSize": { + "width": 512, + "height": 512 + }, + "inputSize": { + "width": 512, + "height": 512 + }, + "beforeExtension": "mp4" + }, + "animatediff_red_tram_through_snow": { + "associationSha256": "641ef31c766deed113729f1e3d0fcd589e44986230fa3fe633a461c44a3bddce", + "backendSourceFingerprint": "sha256:backend-source-v1:b4a707d462a5f13dae1660c1665ed5195f45ed4ffbfcd7d80de879cd881aea86", + "backendContractFingerprint": "sha256:backend-contract-v1:d12f2497d460e249e197c1eb12b40f2cfd70311a95e91a943f37a1ffffbcd157", + "templateRevisionHash": "95bf2ea59940c6b96e479bc726ca727255822c37d0dc4ed19b4d3b37622520e7", + "capturedAt": "2026-11-23T21:59:42.414Z", + "outputExtension": "mp4", + "primaryModelRepo": "stable-diffusion-v1-5/stable-diffusion-v1-5", + "outputSize": { + "width": 512, + "height": 512 + }, + "inputSize": { + "width": 512, + "height": 512 + }, + "beforeExtension": "mp4" + }, + "animatelcm_sunlit_surf": { + "associationSha256": "73356d419e9f4dca4da9661ccd483d6be456a507743ac1f82bb7fc7cb832dd69", + "backendSourceFingerprint": "sha256:backend-source-v1:2faeaaa03b7902a03df5cd0cea38129b7419f6d844125c0ca7e29ccfaf635290", + "backendContractFingerprint": "sha256:backend-contract-v1:32e6e74ce3a29d61ae997904d9d4a77259db5c3bd819dbfc15d312482a356f92", + "templateRevisionHash": "8eb9c374cf4d54c48fc6dab608b1cd5a20acde2948f3e56d0bace61f48f946eb", + "capturedAt": "2026-11-25T13:49:21.637Z", + "outputExtension": "mp4", + "primaryModelRepo": "stable-diffusion-v1-5/stable-diffusion-v1-5", + "outputSize": { + "width": 512, + "height": 512 + } + }, "bookshop_at_blue_hour": { "associationSha256": "e88d530a22af0c530efeea91227f5287740e579eeab88ab18d11d20979bef7cb", "backendSourceFingerprint": "sha256:backend-source-v1:371fd754663a95b1b06900df9a838042048466464b4bd5cfa7033c1b6eebe0e3", @@ -27,88 +128,78 @@ "height": 1024 } }, - "flowers_after_rain": { - "associationSha256": "d2f4ba4bf64e895aceca11c7fd3b3d6e1b77592a6bbc50b100073430c0899636", - "backendSourceFingerprint": "sha256:backend-source-v1:43f2ed10792fc6167b963166287cf7d5a0429afa26029e6455b0418e2123be86", + "canal_lantern_in_warm_light": { + "associationSha256": "3666d6af914c5fcae59b30951005de8ceaa06b1bb0a103bce5bfe817827c18a3", + "backendSourceFingerprint": "sha256:backend-source-v1:057b165c6ef6225461649a47077562dffad098a2d37d639a13bf0e73088d79ab", "backendContractFingerprint": "sha256:backend-contract-v1:300f2fb801e65ef8a0355d217f3f89e59d11e38f976af5a86ba41212d30216fd", - "templateRevisionHash": "a113786c4f56e30b9f8c024d9e71abd7e84419b59bafe097bee8cd40b7074687", - "capturedAt": "2026-11-23T23:44:54.021Z", + "templateRevisionHash": "0724f395ee3219d2cf878ea1ef914692d9808e83236c4d972322e062dd15b380", + "capturedAt": "2026-11-23T14:19:48.529Z", "outputExtension": "webp", "outputSize": { "width": 1024, "height": 1024 } }, - "forest_ferns": { - "associationSha256": "f758997480cb0406135ec2829cdfbaec4eb75e3837b08133994a7d6369dcde25", - "backendSourceFingerprint": "sha256:backend-source-v1:43f2ed10792fc6167b963166287cf7d5a0429afa26029e6455b0418e2123be86", - "backendContractFingerprint": "sha256:backend-contract-v1:300f2fb801e65ef8a0355d217f3f89e59d11e38f976af5a86ba41212d30216fd", - "templateRevisionHash": "6a6e34ea5e9b0dec925e0ce13a0422fc00c65754f867c44e3105bfdb9d03c305", - "capturedAt": "2026-11-24T02:51:19.434Z", + "chroma_alpine_block_print": { + "associationSha256": "644f096cb3ce16b11e8aaff442198bc4b0bfeb5d2b559b172f51ad462ad382e5", + "backendSourceFingerprint": "sha256:backend-source-v1:b29a5b0d317aaa781ae2a5205b46b518eea5a3d68a214eb0968dba4ac0660af7", + "backendContractFingerprint": "sha256:backend-contract-v1:315617df789a8a5f57426692318e197c13786098718305edd1927471b5b9c194", + "templateRevisionHash": "fbe83f016a250a5749f63a2b3eaa8e9806fc0d0c4b4f849a91a6f2094425dcb0", + "capturedAt": "2026-11-25T03:58:25.751Z", "outputExtension": "webp", "outputSize": { "width": 1024, "height": 1024 - } - }, - "ochre_paper_pavilion": { - "associationSha256": "70897e1af886e489a67c209bfd3caa382077fa2a09b71e8ae33b3e5f6555a251", - "backendSourceFingerprint": "sha256:backend-source-v1:272116bf77447dfb20b0899666ae417b68401993dd97ca438db63d91ff79cab6", - "backendContractFingerprint": "sha256:backend-contract-v1:300f2fb801e65ef8a0355d217f3f89e59d11e38f976af5a86ba41212d30216fd", - "templateRevisionHash": "b5e4c8446f01030c05a206290d9ed0c1e5035cd3110f0fb6a9e6e3c416ad5177", - "capturedAt": "2026-11-24T05:30:35.733Z", - "outputExtension": "webp", - "outputSize": { + }, + "inputSize": { "width": 1024, "height": 1024 } }, - "quiet_current": { - "associationSha256": "f1d031268c22b8679f42bdb78c36d977d41aef77222ba8066fb835ae62156820", - "backendSourceFingerprint": "sha256:backend-source-v1:e3aea8f8d102572ad10fdd0700f0c42d92061e864ede89777efcd6a3269770a8", - "backendContractFingerprint": "sha256:backend-contract-v1:300f2fb801e65ef8a0355d217f3f89e59d11e38f976af5a86ba41212d30216fd", - "templateRevisionHash": "c3c7aada8d0fc7bec8c4067c9c88fbb03d5210ee9f6412d1d5984b21879ab886", - "capturedAt": "2026-11-23T17:21:03.387Z", + "chroma_copper_medallion_outpaint": { + "associationSha256": "05ab1504cf09d2c355b330a74cc2c403bdecd2eb924dcce73a8daf583254a583", + "backendSourceFingerprint": "sha256:backend-source-v1:ee86f26ee410419fae168f4380029a01d302ec0fd0607308d9b1e40ae2ace7f7", + "backendContractFingerprint": "sha256:backend-contract-v1:06f986600338dc08fb5d1e639bfad55384f5b15ca0c97c2aeb7ed42a8c245594", + "templateRevisionHash": "9fecd969c5c6398a2e8194ac8ab7aac9b905267b88bf96f9062cecc16fee7223", + "capturedAt": "2026-11-25T09:41:42.540Z", "outputExtension": "webp", + "primaryModelRepo": "lodestones/Chroma1-HD", "outputSize": { "width": 1024, - "height": 1024 - } + "height": 768 + }, + "inputSize": { + "width": 832, + "height": 768 + }, + "beforeExtension": "png" }, - "persimmon_glaze": { - "associationSha256": "1cb82a65c9b5c86bd33286a1db09f9159a1bd5def106f5e34d7506e8ef0623c1", - "backendSourceFingerprint": "sha256:backend-source-v1:057b165c6ef6225461649a47077562dffad098a2d37d639a13bf0e73088d79ab", - "backendContractFingerprint": "sha256:backend-contract-v1:300f2fb801e65ef8a0355d217f3f89e59d11e38f976af5a86ba41212d30216fd", - "templateRevisionHash": "ddf39e419212cba10df50f7b27b3fae22d57a0cbfc574164bcad08975fa2545b", - "capturedAt": "2026-11-23T14:38:24.904Z", + "chroma_restored_cobalt_backdrop": { + "associationSha256": "c4f821d7b34dfea02133ac9f9239b52c403d3a03422c82b0b1795a4fe8e92b9d", + "backendSourceFingerprint": "sha256:backend-source-v1:43f2ed10792fc6167b963166287cf7d5a0429afa26029e6455b0418e2123be86", + "backendContractFingerprint": "sha256:backend-contract-v1:e7a7aa3acbdedd686fa7e7a9d4bcc39c1709ba1fec38f047d63ff83558a85c18", + "templateRevisionHash": "d3c99f24317aaf93b0f25f2681bdc56f456d69554e47a522c0c04487602149f2", + "capturedAt": "2026-11-23T22:32:10.177Z", "outputExtension": "webp", "outputSize": { "width": 1024, "height": 1024 + }, + "inputSize": { + "width": 1024, + "height": 1024 } }, - "porcelain_on_slate_linen": { - "associationSha256": "5f59b268e66ffa4b5a58ea622198b047b418baee667f0fd0d2f18a44ea480617", - "backendSourceFingerprint": "sha256:backend-source-v1:fe1a57b8e352eb66a1a26ebbff5865aaafcf5d55326c4bbcbaf2132ec75f54a8", - "backendContractFingerprint": "sha256:backend-contract-v1:5429892d782af9dbc60b8c6b2762de25748a8da025a4965bb7d6e641908e47ba", - "templateRevisionHash": "fe33d74a4694ab6b3d34f483d56575c0c66a5948d424a62c04538c0dd608253a", - "capturedAt": "2026-11-23T15:33:09.403Z", - "outputExtension": "webp", - "outputSize": { - "width": 512, - "height": 512 - } - }, - "salt_marsh_from_above": { - "associationSha256": "7fc63473243ca1e274daa65c995ad7ba3e06a4fa6da039e863cb2a55622dad76", - "backendSourceFingerprint": "sha256:backend-source-v1:7c2e1b7de13f4da1e785e92f41a91f96b0029f79607915780ddb97aaff6a8d29", + "chroma_terracotta_and_blue": { + "associationSha256": "10fc52e4c1d91ff42b95bb15f906811b389358a1339a5f3dda2d5aac027ef623", + "backendSourceFingerprint": "sha256:backend-source-v1:b29a5b0d317aaa781ae2a5205b46b518eea5a3d68a214eb0968dba4ac0660af7", "backendContractFingerprint": "sha256:backend-contract-v1:300f2fb801e65ef8a0355d217f3f89e59d11e38f976af5a86ba41212d30216fd", - "templateRevisionHash": "b09d5bf8c1d2efa3ae62881840125aa474500d658ba7538031dedeaeb79d52d4", - "capturedAt": "2026-11-24T01:53:00.229Z", + "templateRevisionHash": "5221fc5d744cbdcf1aa29d1fa9b27cddc0fcbd75983c24061e6218d41621617d", + "capturedAt": "2026-11-24T22:50:29.995Z", "outputExtension": "webp", "outputSize": { - "width": 1536, - "height": 768 + "width": 1024, + "height": 1024 } }, "cobalt_jug_and_lemons": { @@ -123,6 +214,35 @@ "height": 512 } }, + "cogvideox_mossy_mountain_stream": { + "associationSha256": "3f977ded1b8f4969d28fe1eaf21418c75d37b62dcfcc19c3b4c842433f25956e", + "backendSourceFingerprint": "sha256:backend-source-v1:70bc1ff7fe61307be52cfda86b38c6400f2156cbc8240a489b62ff19a93d58dc", + "backendContractFingerprint": "sha256:backend-contract-v1:40a4eb8d6275c83725f57c4d3499b8d12c00f8cf6caffc2d07006e74d24ab820", + "templateRevisionHash": "c77c843d9555524c9f9ce04c53af16c2ee6570d7ff9b72d90fba98fd1fc3d9cc", + "capturedAt": "2026-11-24T04:17:26.141Z", + "outputExtension": "mp4", + "outputSize": { + "width": 720, + "height": 480 + } + }, + "cogvideox_red_tram_model_railway": { + "associationSha256": "aa0c4b4cf84ee5f4b637092acd8a8e60db8360d4076a146d6388c97cb259a673", + "backendSourceFingerprint": "sha256:backend-source-v1:43f2ed10792fc6167b963166287cf7d5a0429afa26029e6455b0418e2123be86", + "backendContractFingerprint": "sha256:backend-contract-v1:33b2d430a6b544125220ee6627441eb2121c00e6cfb3aa7c2d54b08b7b2f1f09", + "templateRevisionHash": "d74131d9a94ae6422f0824a9948e9ee157fb765058f8d45e515fda25a93c25c6", + "capturedAt": "2026-11-24T02:42:22.051Z", + "outputExtension": "mp4", + "outputSize": { + "width": 720, + "height": 480 + }, + "inputSize": { + "width": 720, + "height": 480 + }, + "beforeExtension": "mp4" + }, "copper_hour_dunes": { "associationSha256": "b898daa53f760bf19a4984e30bc9432bdb3bafa2212f7985a0bc3c0f745baf43", "backendSourceFingerprint": "sha256:backend-source-v1:95899090708469a60e137d3b59a1a8c2c02cc673a1af5f82720f6b5f7393c258", @@ -135,140 +255,105 @@ "height": 512 } }, - "glasshouse_rain": { - "associationSha256": "a212c9c1442e1eebe801da3bc87f96423038874723f9289207b02c5a06166023", - "backendSourceFingerprint": "sha256:backend-source-v1:95899090708469a60e137d3b59a1a8c2c02cc673a1af5f82720f6b5f7393c258", - "backendContractFingerprint": "sha256:backend-contract-v1:300f2fb801e65ef8a0355d217f3f89e59d11e38f976af5a86ba41212d30216fd", - "templateRevisionHash": "4d32a1778d7cad756e05f14f09de559b9b065f3675b2aef6a289c5299cbd2c24", - "capturedAt": "2026-11-21T08:21:05.869Z", - "outputExtension": "webp", - "outputSize": { - "width": 1024, - "height": 1024 - } - }, - "pomegranate_on_blue_linen": { - "associationSha256": "912ddb48782b903de10ce1f23f400537bb9f8944354d48bf0ea7203bad10e071", - "backendSourceFingerprint": "sha256:backend-source-v1:1f2f7e00ce4a500ba52d5b729f43d4321af6f931125a3f266f307cf80038c12e", - "backendContractFingerprint": "sha256:backend-contract-v1:5429892d782af9dbc60b8c6b2762de25748a8da025a4965bb7d6e641908e47ba", - "templateRevisionHash": "6642ac1831a788b83981383c33b7ce019692d58fd2b23f3bff9d95e3a59ec27b", - "capturedAt": "2026-11-23T14:15:52.979Z", + "ddim_cifar10_preview": { + "associationSha256": "549bae13109f9c98a1f010748011a727511311bda9cf27b2cf70e460b74f6205", + "backendSourceFingerprint": "sha256:backend-source-v1:7073247d40471c857faf3c52f186d17923fbdf3c44234232a8c6f8b9db925663", + "backendContractFingerprint": "sha256:backend-contract-v1:53144518f3a56e4644f06618acdc61a3e6c4f8dbacbca96e7d2e9912d699836b", + "templateRevisionHash": "1f41b7d2d7bccb216f46b9ce174a9d4246f0348584e208baeeaa4af92c172c9f", + "capturedAt": "2026-11-14T06:55:56.039Z", "outputExtension": "webp", "outputSize": { - "width": 512, - "height": 512 + "width": 32, + "height": 32 } }, - "canal_lantern_in_warm_light": { - "associationSha256": "3666d6af914c5fcae59b30951005de8ceaa06b1bb0a103bce5bfe817827c18a3", - "backendSourceFingerprint": "sha256:backend-source-v1:057b165c6ef6225461649a47077562dffad098a2d37d639a13bf0e73088d79ab", + "flowers_after_rain": { + "associationSha256": "d2f4ba4bf64e895aceca11c7fd3b3d6e1b77592a6bbc50b100073430c0899636", + "backendSourceFingerprint": "sha256:backend-source-v1:43f2ed10792fc6167b963166287cf7d5a0429afa26029e6455b0418e2123be86", "backendContractFingerprint": "sha256:backend-contract-v1:300f2fb801e65ef8a0355d217f3f89e59d11e38f976af5a86ba41212d30216fd", - "templateRevisionHash": "0724f395ee3219d2cf878ea1ef914692d9808e83236c4d972322e062dd15b380", - "capturedAt": "2026-11-23T14:19:48.529Z", + "templateRevisionHash": "a113786c4f56e30b9f8c024d9e71abd7e84419b59bafe097bee8cd40b7074687", + "capturedAt": "2026-11-23T23:44:54.021Z", "outputExtension": "webp", "outputSize": { "width": 1024, "height": 1024 } }, - "the_glasshouse_seed_tray": { - "associationSha256": "e08a25a88a52011adcb645ed75fe1904eec042529005c19e11552d90210f3f03", - "backendSourceFingerprint": "sha256:backend-source-v1:057b165c6ef6225461649a47077562dffad098a2d37d639a13bf0e73088d79ab", - "backendContractFingerprint": "sha256:backend-contract-v1:300f2fb801e65ef8a0355d217f3f89e59d11e38f976af5a86ba41212d30216fd", - "templateRevisionHash": "f30bccf14d658fa6222cec9c7458ec74fec76940dc1dac07ed87e19d93b3738c", - "capturedAt": "2026-11-23T14:16:46.399Z", + "flux_canny_clean_backdrop": { + "associationSha256": "9f9e09e1d0032216f1b497f611226193b6a567b03e139d3f86ff019c089d3e0e", + "backendSourceFingerprint": "sha256:backend-source-v1:585997dc1146ec6effb20c260272babc01713ecdea4f78a0872c12ef2568ef83", + "backendContractFingerprint": "sha256:backend-contract-v1:d6613341ff1a983e0a3c6d3c8f0efef39c5c1ec3e109197f6466cfd72a3f6f6e", + "templateRevisionHash": "ddec004faf0dea8ab0683f015a22350f6086d28d6b41ecc57f2c0abf81ca1755", + "primaryModelRepo": "black-forest-labs/FLUX.1-Canny-dev", + "capturedAt": "2026-11-24T14:06:06.057Z", "outputExtension": "webp", "outputSize": { "width": 1024, "height": 1024 - } - }, - "quiet_kiln_at_daybreak": { - "associationSha256": "8c535a4a82a668b1aa7063e6c9c201fc7824f2c54493d8d7572749f13fbb8473", - "backendSourceFingerprint": "sha256:backend-source-v1:258d554494a8e31795e6c04f21e6ab998a6225773194b12546c45d68b690887e", - "backendContractFingerprint": "sha256:backend-contract-v1:300f2fb801e65ef8a0355d217f3f89e59d11e38f976af5a86ba41212d30216fd", - "templateRevisionHash": "82918f24aaddf420da3c1213ac69779af2bf962cd2af50b33814f1eefdf14a3b", - "capturedAt": "2026-11-24T02:35:25.266Z", - "outputExtension": "webp", - "outputSize": { + }, + "inputSize": { "width": 1024, "height": 1024 } }, - "restoring_the_studio_backdrop": { - "associationSha256": "17ee149d9d1ca9d8b1f747f62f15e8672a2353555847e043ef60eb766e9befa7", - "backendSourceFingerprint": "sha256:backend-source-v1:1f2f7e00ce4a500ba52d5b729f43d4321af6f931125a3f266f307cf80038c12e", - "backendContractFingerprint": "sha256:backend-contract-v1:61201b43ea68d3fd347fbc374e292b5839be28f908b473bcb69f5ec1f8b87736", - "templateRevisionHash": "26d6762e118bc9217762cc4abeec7817586ee58fb80ef09bc3c98e32a2789472", - "capturedAt": "2026-11-23T14:17:31.827Z", + "flux_depth_marine_bow_repair": { + "associationSha256": "7dd77337f388b8353d6186bc76e39affbe954d4cef4f563285ec0d1a95c606f5", + "backendSourceFingerprint": "sha256:backend-source-v1:585997dc1146ec6effb20c260272babc01713ecdea4f78a0872c12ef2568ef83", + "backendContractFingerprint": "sha256:backend-contract-v1:d6613341ff1a983e0a3c6d3c8f0efef39c5c1ec3e109197f6466cfd72a3f6f6e", + "templateRevisionHash": "c36171bcdbd3076f271fb33743708207b8aeb0f4bfb68be30f7ee7a0239b0869", + "primaryModelRepo": "black-forest-labs/FLUX.1-Depth-dev", + "capturedAt": "2026-11-24T14:25:47.349Z", "outputExtension": "webp", "outputSize": { - "width": 512, - "height": 512 + "width": 1024, + "height": 1024 }, "inputSize": { - "width": 512, - "height": 512 - } - }, - "janus_reykjavik_travel_note": { - "associationSha256": "5fd534ee6e424f62376c87fe518cadea0e77d7aa5bd621fcdbe731eebda2c346", - "backendSourceFingerprint": "sha256:backend-source-v1:b82eb33180a6e16431bc47381c6012c002e18b3a41b45635bef663c50f735ec3", - "backendContractFingerprint": "sha256:backend-contract-v1:bc2a2aeb1bb1fa7a545e1a1f139cc5651e1326b320efefc80afcb0e2a476433a", - "templateRevisionHash": "cd73585863835d186d076de2bc4f37c36c11138376bdd2939af45290ff2c37af", - "capturedAt": "2026-11-23T17:39:26.972Z", - "outputExtension": "json" - }, - "janus_red_triangle_caption": { - "associationSha256": "1119235403f7eaccc327a270c34129be0d0164ccab0003f0aa299b8fde73f932", - "backendSourceFingerprint": "sha256:backend-source-v1:fe1a57b8e352eb66a1a26ebbff5865aaafcf5d55326c4bbcbaf2132ec75f54a8", - "backendContractFingerprint": "sha256:backend-contract-v1:d9a9f3b4b638533dd92574871ffd7944f91a74b3004a161c77b2451fd99b1a36", - "templateRevisionHash": "44e68d77baa00812c4b9888835013887d523bfe990c11caec96ac426c8ca87b3", - "capturedAt": "2026-11-23T15:41:11.401Z", - "outputExtension": "json" - }, - "janus_red_enamel_teapot": { - "associationSha256": "9a4b508c50d4b701161e242d688e2bde97bf20ead144ab29e81134a2928a4bbf", - "backendSourceFingerprint": "sha256:backend-source-v1:693cbe0ad6ddc5d1796f10269726b6d92a067c5ed14ea4458614797eb25c9a7c", - "backendContractFingerprint": "sha256:backend-contract-v1:eea189de4cdfe09f5055e14ff414c28400c1abd2f1f6c7d8094855c12adeefde", - "templateRevisionHash": "335f3fbf1907201be05d98148bff1fb7dc68d540750b71f33812769ddfa55879", - "capturedAt": "2026-11-23T15:46:06.879Z", - "outputExtension": "webp", - "outputSize": { - "width": 384, - "height": 384 - } + "width": 1024, + "height": 1024 + }, + "beforeExtension": "webp" }, - "lumina_opal_pendant_in_limestone": { - "associationSha256": "2b785b4b786b96de5ca6c7649147f4f71f24fa56e2f3e2e4f7187b39df84a78a", - "backendSourceFingerprint": "sha256:backend-source-v1:4e964e7de84962b7d4f70d35de6904394561f9a9314ea2bd7e435a03a55af5b6", - "backendContractFingerprint": "sha256:backend-contract-v1:5429892d782af9dbc60b8c6b2762de25748a8da025a4965bb7d6e641908e47ba", - "templateRevisionHash": "4545f92379bc42dd213572033b19a7d37bfd24a3cf8c5eb90fb510c2e2c4c1e7", - "capturedAt": "2026-11-24T16:28:31.695Z", + "flux_dev_forest_green_teapot": { + "associationSha256": "a5b5e1d0814ac7cac6e50eeae4da815981c710568d910f11f67a215e2fe946bd", + "backendSourceFingerprint": "sha256:backend-source-v1:b29a5b0d317aaa781ae2a5205b46b518eea5a3d68a214eb0968dba4ac0660af7", + "backendContractFingerprint": "sha256:backend-contract-v1:315617df789a8a5f57426692318e197c13786098718305edd1927471b5b9c194", + "templateRevisionHash": "733622609f54510a405766166f8b6a2e00eabffc71dccbe5d780eddf18aa63cd", + "capturedAt": "2026-11-25T12:54:58.483Z", "outputExtension": "webp", + "primaryModelRepo": "black-forest-labs/FLUX.1-dev", "outputSize": { "width": 1024, "height": 1024 - } + }, + "inputSize": { + "width": 1024, + "height": 1024 + }, + "beforeExtension": "webp" }, - "ddim_cifar10_preview": { - "associationSha256": "549bae13109f9c98a1f010748011a727511311bda9cf27b2cf70e460b74f6205", - "backendSourceFingerprint": "sha256:backend-source-v1:7073247d40471c857faf3c52f186d17923fbdf3c44234232a8c6f8b9db925663", - "backendContractFingerprint": "sha256:backend-contract-v1:53144518f3a56e4644f06618acdc61a3e6c4f8dbacbca96e7d2e9912d699836b", - "templateRevisionHash": "1f41b7d2d7bccb216f46b9ce174a9d4246f0348584e208baeeaa4af92c172c9f", - "capturedAt": "2026-11-14T06:55:56.039Z", + "flux_klein_alpine_lake_panorama": { + "associationSha256": "97c56686a2055c9f46bb68b8907b88a37b10ab32b7482cb8bf40cb0dd783f9f2", + "backendSourceFingerprint": "sha256:backend-source-v1:e3aea8f8d102572ad10fdd0700f0c42d92061e864ede89777efcd6a3269770a8", + "backendContractFingerprint": "sha256:backend-contract-v1:06f986600338dc08fb5d1e639bfad55384f5b15ca0c97c2aeb7ed42a8c245594", + "templateRevisionHash": "f90f8a8162586ea0e94260bb3b332de2885bb642d0776a0a104b3495a593cc6d", + "capturedAt": "2026-11-23T21:08:09.132Z", "outputExtension": "webp", "outputSize": { - "width": 32, - "height": 32 + "width": 1344, + "height": 768 + }, + "inputSize": { + "width": 832, + "height": 768 } }, - "sdxl_clear_cobalt_backdrop": { - "associationSha256": "521b7a02cb3320f0c9518529323ccd9f545913a181851da3c425bd5c06dc7588", - "backendSourceFingerprint": "sha256:backend-source-v1:a7a074387d21c2a016af41b7de9d090fd6377b8efe388047bc50201779908464", - "backendContractFingerprint": "sha256:backend-contract-v1:61201b43ea68d3fd347fbc374e292b5839be28f908b473bcb69f5ec1f8b87736", - "templateRevisionHash": "5ac53251bbc44c8b3eb62ab06fba702e275ebc7340348f36fb20a055d36b3573", - "capturedAt": "2026-11-24T12:07:41.410Z", + "flux_klein_open_glacial_lake": { + "associationSha256": "3154265a969e539f1aea44d337c37e48baf8154ba8f5454f917944a70c9171ce", + "backendSourceFingerprint": "sha256:backend-source-v1:e3aea8f8d102572ad10fdd0700f0c42d92061e864ede89777efcd6a3269770a8", + "backendContractFingerprint": "sha256:backend-contract-v1:e7a7aa3acbdedd686fa7e7a9d4bcc39c1709ba1fec38f047d63ff83558a85c18", + "templateRevisionHash": "e100c45ec42735d37c8eb9c6d442d29822234c41d050ba311b178e38ee14baa5", + "capturedAt": "2026-11-23T17:09:43.722Z", "outputExtension": "webp", "outputSize": { "width": 1024, @@ -279,64 +364,58 @@ "height": 1024 } }, - "sdxl_turbo_orange_caps": { - "associationSha256": "85cf071e354281c57ed922fc7a4a112c34ebe994be2d2f52221f23bf12865b34", - "backendSourceFingerprint": "sha256:backend-source-v1:057b165c6ef6225461649a47077562dffad098a2d37d639a13bf0e73088d79ab", - "backendContractFingerprint": "sha256:backend-contract-v1:300f2fb801e65ef8a0355d217f3f89e59d11e38f976af5a86ba41212d30216fd", - "templateRevisionHash": "a8bae14e8dc50c3969cba99c45be96d5ffbbca1fa12824640f5c3360bcc4427c", - "capturedAt": "2026-11-23T14:40:52.201Z", + "flux_kontext_bookshop_clear_glass": { + "associationSha256": "e0e23e248b8c5ab1142722b2e255123446a4c6c1ce06fb6db927d5d809cecb66", + "backendSourceFingerprint": "sha256:backend-source-v1:b29a5b0d317aaa781ae2a5205b46b518eea5a3d68a214eb0968dba4ac0660af7", + "backendContractFingerprint": "sha256:backend-contract-v1:e7a7aa3acbdedd686fa7e7a9d4bcc39c1709ba1fec38f047d63ff83558a85c18", + "templateRevisionHash": "e0b3aa2e3ac0aaf75006ed8110ff7420862ccaef4e03da53db5626f12fc278b6", + "capturedAt": "2026-11-25T14:08:32.311Z", "outputExtension": "webp", + "primaryModelRepo": "black-forest-labs/FLUX.1-Kontext-dev", "outputSize": { - "width": 512, - "height": 512 - } - }, - "whisper_small_an_open_door": { - "associationSha256": "a6f56721c12e3ddffb35182f4b457b4af8255563e712753979b2787226a84d95", - "backendSourceFingerprint": "sha256:backend-source-v1:3227569ff822090d00a80a3a88213d76d5ca43092d2918cec2494962457865a5", - "backendContractFingerprint": "sha256:backend-contract-v1:89ce835969abfae21cb4c27992f38f895d98a9cebbce248d62123a5a8aa1fc28", - "templateRevisionHash": "cfc95f86cf49288a5b851e7e042558b50bcd091f1a69cfabdf961cb204fde1ac", - "capturedAt": "2026-11-23T18:16:55.558Z", - "outputExtension": "json" - }, - "smolvlm_red_triangle": { - "associationSha256": "a686ff98e677c53f203c5c86a7cca856c8e2103ebe80621679de07c58b4c596c", - "backendSourceFingerprint": "sha256:backend-source-v1:12feeb1b7586129e38f183c3c391555c88004534d762ea8676efe9dc334540d9", - "backendContractFingerprint": "sha256:backend-contract-v1:5dcc04106f1021d0ef9128d360e91a97236cc538ea7426b994967a459307a4fc", - "templateRevisionHash": "7c5cc75ca115a437ec6a7ebab59030ef5c5ea14c74735bae5ca78dff427fb0e2", - "capturedAt": "2026-11-23T18:58:19.689Z", - "outputExtension": "json" + "width": 1024, + "height": 1024 + }, + "inputSize": { + "width": 1024, + "height": 1024 + }, + "beforeExtension": "webp" }, - "kandinsky3_ginkgo_on_slate": { - "associationSha256": "d06e06739b07e69ae2f2c65f503b94970643c950a89d4d39a316f5e7e93b3269", - "backendSourceFingerprint": "sha256:backend-source-v1:175112f2430928958bd90dc5ae78b50ce0a54403e42e28cfc68096945d05fbe6", - "backendContractFingerprint": "sha256:backend-contract-v1:300f2fb801e65ef8a0355d217f3f89e59d11e38f976af5a86ba41212d30216fd", - "templateRevisionHash": "5870090e6b4d12c32d72566b6038e9bcc8bf8d063492a28ecbeb65275d77c8e9", - "capturedAt": "2026-11-24T01:18:22.804Z", + "flux1_dev_limestone_studio_scratch_repair": { + "associationSha256": "d868488370d89eb9b8ed1bdcfa18841042c6846d522c945e330abc7345708315", + "backendSourceFingerprint": "sha256:backend-source-v1:43f2ed10792fc6167b963166287cf7d5a0429afa26029e6455b0418e2123be86", + "backendContractFingerprint": "sha256:backend-contract-v1:e7a7aa3acbdedd686fa7e7a9d4bcc39c1709ba1fec38f047d63ff83558a85c18", + "templateRevisionHash": "fe963e2fc85d8c21f11d606e545a9dcf5d63e5b2abad4b30900cdb64e5a25d36", + "capturedAt": "2026-11-24T02:02:57.362Z", "outputExtension": "webp", "outputSize": { "width": 1024, "height": 1024 + }, + "inputSize": { + "width": 1024, + "height": 1024 } }, - "chroma_terracotta_and_blue": { - "associationSha256": "10fc52e4c1d91ff42b95bb15f906811b389358a1339a5f3dda2d5aac027ef623", - "backendSourceFingerprint": "sha256:backend-source-v1:b29a5b0d317aaa781ae2a5205b46b518eea5a3d68a214eb0968dba4ac0660af7", + "forest_ferns": { + "associationSha256": "f758997480cb0406135ec2829cdfbaec4eb75e3837b08133994a7d6369dcde25", + "backendSourceFingerprint": "sha256:backend-source-v1:43f2ed10792fc6167b963166287cf7d5a0429afa26029e6455b0418e2123be86", "backendContractFingerprint": "sha256:backend-contract-v1:300f2fb801e65ef8a0355d217f3f89e59d11e38f976af5a86ba41212d30216fd", - "templateRevisionHash": "5221fc5d744cbdcf1aa29d1fa9b27cddc0fcbd75983c24061e6218d41621617d", - "capturedAt": "2026-11-24T22:50:29.995Z", + "templateRevisionHash": "6a6e34ea5e9b0dec925e0ce13a0422fc00c65754f867c44e3105bfdb9d03c305", + "capturedAt": "2026-11-24T02:51:19.434Z", "outputExtension": "webp", "outputSize": { "width": 1024, "height": 1024 } }, - "lumina2_larch_on_glacial_pond": { - "associationSha256": "044a0926d4d470bf68094ef94e300daae045c80682fd038cb355d53da8579a61", - "backendSourceFingerprint": "sha256:backend-source-v1:057b165c6ef6225461649a47077562dffad098a2d37d639a13bf0e73088d79ab", + "glasshouse_rain": { + "associationSha256": "a212c9c1442e1eebe801da3bc87f96423038874723f9289207b02c5a06166023", + "backendSourceFingerprint": "sha256:backend-source-v1:95899090708469a60e137d3b59a1a8c2c02cc673a1af5f82720f6b5f7393c258", "backendContractFingerprint": "sha256:backend-contract-v1:300f2fb801e65ef8a0355d217f3f89e59d11e38f976af5a86ba41212d30216fd", - "templateRevisionHash": "c1fecc495b278628b9539fb84079b73b70db420165a7e151def065731920853e", - "capturedAt": "2026-11-23T14:40:20.880Z", + "templateRevisionHash": "4d32a1778d7cad756e05f14f09de559b9b065f3675b2aef6a289c5299cbd2c24", + "capturedAt": "2026-11-21T08:21:05.869Z", "outputExtension": "webp", "outputSize": { "width": 1024, @@ -355,16 +434,21 @@ "height": 1024 } }, - "omnigen_tulips_after_rain": { - "associationSha256": "10f3e3764210089f2a3f43281d45fb24e965f8b035e8dc993d720ceceff9e9a6", - "backendSourceFingerprint": "sha256:backend-source-v1:371fd754663a95b1b06900df9a838042048466464b4bd5cfa7033c1b6eebe0e3", - "backendContractFingerprint": "sha256:backend-contract-v1:300f2fb801e65ef8a0355d217f3f89e59d11e38f976af5a86ba41212d30216fd", - "templateRevisionHash": "e3ceb2dc096775601a6e65b7ab61f5ccc64658d2a69586f3c6a13f2efe1a973c", - "capturedAt": "2026-11-23T15:17:38.630Z", + "hunyuan_dit_green_glass_study": { + "associationSha256": "a4c37eed14bb2859393511f0c539ea5a4255852cec45141a470abbcfa6bfdaac", + "backendSourceFingerprint": "sha256:backend-source-v1:1aae04a8ad2e66aeb3eaacc065f2e111280bd8a64e7e6cb95cc927fed95d6b39", + "backendContractFingerprint": "sha256:backend-contract-v1:ad16452bc59ad56fa75df0e9f2f3b913f28233c906d4e37c4518fbc978d47953", + "templateRevisionHash": "a132dd6cd433bd0595f962173926edd930ea38cbf44d175d5499234f600d21f2", + "primaryModelRepo": "Tencent-Hunyuan/HunyuanDiT-v1.2-Diffusers-Distilled", + "capturedAt": "2026-11-23T17:50:53.075Z", "outputExtension": "webp", "outputSize": { "width": 1024, "height": 1024 + }, + "inputSize": { + "width": 1024, + "height": 1024 } }, "hunyuan_pag_burgundy_knight": { @@ -379,12 +463,40 @@ "height": 1024 } }, - "chroma_restored_cobalt_backdrop": { - "associationSha256": "c4f821d7b34dfea02133ac9f9239b52c403d3a03422c82b0b1795a4fe8e92b9d", - "backendSourceFingerprint": "sha256:backend-source-v1:43f2ed10792fc6167b963166287cf7d5a0429afa26029e6455b0418e2123be86", - "backendContractFingerprint": "sha256:backend-contract-v1:e7a7aa3acbdedd686fa7e7a9d4bcc39c1709ba1fec38f047d63ff83558a85c18", - "templateRevisionHash": "d3c99f24317aaf93b0f25f2681bdc56f456d69554e47a522c0c04487602149f2", - "capturedAt": "2026-11-23T22:32:10.177Z", + "janus_red_enamel_teapot": { + "associationSha256": "9a4b508c50d4b701161e242d688e2bde97bf20ead144ab29e81134a2928a4bbf", + "backendSourceFingerprint": "sha256:backend-source-v1:693cbe0ad6ddc5d1796f10269726b6d92a067c5ed14ea4458614797eb25c9a7c", + "backendContractFingerprint": "sha256:backend-contract-v1:eea189de4cdfe09f5055e14ff414c28400c1abd2f1f6c7d8094855c12adeefde", + "templateRevisionHash": "335f3fbf1907201be05d98148bff1fb7dc68d540750b71f33812769ddfa55879", + "capturedAt": "2026-11-23T15:46:06.879Z", + "outputExtension": "webp", + "outputSize": { + "width": 384, + "height": 384 + } + }, + "janus_red_triangle_caption": { + "associationSha256": "1119235403f7eaccc327a270c34129be0d0164ccab0003f0aa299b8fde73f932", + "backendSourceFingerprint": "sha256:backend-source-v1:fe1a57b8e352eb66a1a26ebbff5865aaafcf5d55326c4bbcbaf2132ec75f54a8", + "backendContractFingerprint": "sha256:backend-contract-v1:d9a9f3b4b638533dd92574871ffd7944f91a74b3004a161c77b2451fd99b1a36", + "templateRevisionHash": "44e68d77baa00812c4b9888835013887d523bfe990c11caec96ac426c8ca87b3", + "capturedAt": "2026-11-23T15:41:11.401Z", + "outputExtension": "json" + }, + "janus_reykjavik_travel_note": { + "associationSha256": "5fd534ee6e424f62376c87fe518cadea0e77d7aa5bd621fcdbe731eebda2c346", + "backendSourceFingerprint": "sha256:backend-source-v1:b82eb33180a6e16431bc47381c6012c002e18b3a41b45635bef663c50f735ec3", + "backendContractFingerprint": "sha256:backend-contract-v1:bc2a2aeb1bb1fa7a545e1a1f139cc5651e1326b320efefc80afcb0e2a476433a", + "templateRevisionHash": "cd73585863835d186d076de2bc4f37c36c11138376bdd2939af45290ff2c37af", + "capturedAt": "2026-11-23T17:39:26.972Z", + "outputExtension": "json" + }, + "joy_plus_lavender_on_limestone": { + "associationSha256": "cec28cfa908558c228bebf3c09b1d52036940235d0c70a34374f3e964548d17b", + "backendSourceFingerprint": "sha256:backend-source-v1:d275bc94517015b221a9a8b5aea7572ec68c491060855c7895526e1ba640796d", + "backendContractFingerprint": "sha256:backend-contract-v1:315617df789a8a5f57426692318e197c13786098718305edd1927471b5b9c194", + "templateRevisionHash": "448dbfb62c1255097be44eff481ff2c89ff04c31415faa5fe86f22a72a71fe4f", + "capturedAt": "2026-11-24T04:13:54.287Z", "outputExtension": "webp", "outputSize": { "width": 1024, @@ -395,28 +507,12 @@ "height": 1024 } }, - "sdxl_pix2pix_pale_amber_glass": { - "associationSha256": "e0d2d7d05a9109a8ae527c819ebaffca93dec272c54efcfb0b05e41a144d7bfb", - "backendSourceFingerprint": "sha256:backend-source-v1:55da4a68212923ee8a67e70754f46193288e210bce08ab4ae8c06834a7a76995", - "backendContractFingerprint": "sha256:backend-contract-v1:bd364fcd29020d51bb61f5f9bf320cf0bf562e718c645c21ffac8ed5a47b740d", - "templateRevisionHash": "897fb59d568ceba3ef8d85cf1141f79002522b111dbc6ffa67ad51a9acf88495", - "capturedAt": "2026-11-23T16:05:26.964Z", - "outputExtension": "webp", - "outputSize": { - "width": 768, - "height": 768 - }, - "inputSize": { - "width": 768, - "height": 768 - } - }, - "sd15_pag_mountain_lake_watercolor": { - "associationSha256": "fbe3707bb87008593c1bc4ec367915fa2d558aa9ba9581f94dca839dabe5117b", - "backendSourceFingerprint": "sha256:backend-source-v1:3b073e3f6f5e9489e06116f277ee4a9e878b8f0c6258efc93c60be9a04513cb5", - "backendContractFingerprint": "sha256:backend-contract-v1:bd364fcd29020d51bb61f5f9bf320cf0bf562e718c645c21ffac8ed5a47b740d", - "templateRevisionHash": "6de709bbcfb3ed6e061541584be28f5b7ed05e1170dcdaa69e2deb4fee822154", - "capturedAt": "2026-11-23T20:28:31.760Z", + "joy_plus_terracotta_on_limestone": { + "associationSha256": "c965dba84f8d3714ea44c11469455a5fbcdf11bbae44717a0e5a20b322ed67d9", + "backendSourceFingerprint": "sha256:backend-source-v1:585997dc1146ec6effb20c260272babc01713ecdea4f78a0872c12ef2568ef83", + "backendContractFingerprint": "sha256:backend-contract-v1:315617df789a8a5f57426692318e197c13786098718305edd1927471b5b9c194", + "templateRevisionHash": "2250434e38d29a0c2d27808d6f713bf75965dc3f5ade4a033a11d194ecd687b9", + "capturedAt": "2026-11-24T05:23:27.411Z", "outputExtension": "webp", "outputSize": { "width": 1024, @@ -427,45 +523,12 @@ "height": 1024 } }, - "sd15_pag_cobalt_studio_repair": { - "associationSha256": "395e41a6da16e9f1a31323b91390e4578428f3d0ea12054b59378709d32a9c52", - "backendSourceFingerprint": "sha256:backend-source-v1:1f2f7e00ce4a500ba52d5b729f43d4321af6f931125a3f266f307cf80038c12e", - "backendContractFingerprint": "sha256:backend-contract-v1:61201b43ea68d3fd347fbc374e292b5839be28f908b473bcb69f5ec1f8b87736", - "templateRevisionHash": "8373d87ab42e130142a163e3c60733f3f2511b7a77ffad1d9129607bcfba2562", - "capturedAt": "2026-11-23T14:32:05.292Z", - "outputExtension": "webp", - "outputSize": { - "width": 512, - "height": 512 - }, - "inputSize": { - "width": 512, - "height": 512 - } - }, - "zimage_golden_amber_glass": { - "associationSha256": "238b088d3b9aaad1955b07a3291cf8875a928136444b9642114527b3d803bc38", - "backendSourceFingerprint": "sha256:backend-source-v1:e3aea8f8d102572ad10fdd0700f0c42d92061e864ede89777efcd6a3269770a8", + "joyimage_base_cobalt_paper_band": { + "associationSha256": "691b71a4b975f96da6ac7b59772ef0e3a057e8818ea9d2dbd3b9b346f70b7629", + "backendSourceFingerprint": "sha256:backend-source-v1:585997dc1146ec6effb20c260272babc01713ecdea4f78a0872c12ef2568ef83", "backendContractFingerprint": "sha256:backend-contract-v1:315617df789a8a5f57426692318e197c13786098718305edd1927471b5b9c194", - "templateRevisionHash": "303a0b1b64a2e1234aeca85941a07eea2157707c8436442a5cf00aedd68c6d97", - "capturedAt": "2026-11-23T17:46:24.489Z", - "outputExtension": "webp", - "outputSize": { - "width": 640, - "height": 640 - }, - "inputSize": { - "width": 768, - "height": 768 - } - }, - "sdxl_control_inpaint_warm_plaster": { - "associationSha256": "a164aa1acb01ff7bb77ec43565bd17ed7c822f8331eeb24516fa58095cd3ecbd", - "backendSourceFingerprint": "sha256:backend-source-v1:2faeaaa03b7902a03df5cd0cea38129b7419f6d844125c0ca7e29ccfaf635290", - "backendContractFingerprint": "sha256:backend-contract-v1:7271d6dfcd46a677217edf40c568c3f5e9ae300200f76976e0cf18fd9b9f2508", - "templateRevisionHash": "7d840698c480d52e5a864d50fcdbe6528680a9d0453e5dc501d76ac89c0991ef", - "primaryModelRepo": "stabilityai/stable-diffusion-xl-base-1.0", - "capturedAt": "2026-11-25T00:04:32.014Z", + "templateRevisionHash": "895ec1f44e28507344c4bdabd3a3c07c3fe985d5b0fc0b5373f91ec8ad1f92d0", + "capturedAt": "2026-11-24T12:15:48.363Z", "outputExtension": "webp", "outputSize": { "width": 1024, @@ -476,47 +539,36 @@ "height": 1024 } }, - "sd15_canny_guided_green_glass": { - "associationSha256": "37b256588e8ffe492a2ac09c77eff98cf0b7adedafb95d434346b94c74a5e728", - "backendSourceFingerprint": "sha256:backend-source-v1:e3aea8f8d102572ad10fdd0700f0c42d92061e864ede89777efcd6a3269770a8", - "backendContractFingerprint": "sha256:backend-contract-v1:ad16452bc59ad56fa75df0e9f2f3b913f28233c906d4e37c4518fbc978d47953", - "templateRevisionHash": "783d03619e47df52cf8b17262e42d07bdaacf9165314c26bce9dc3fc9478e55d", - "primaryModelRepo": "stable-diffusion-v1-5/stable-diffusion-v1-5", - "capturedAt": "2026-11-23T16:04:58.708Z", + "joyimage_herbarium_rainy_porthole": { + "associationSha256": "f0254138cc571fad786388d675b3a686bf1f7cc221aaa157c4ed3e300d7e46b2", + "backendSourceFingerprint": "sha256:backend-source-v1:b29a5b0d317aaa781ae2a5205b46b518eea5a3d68a214eb0968dba4ac0660af7", + "backendContractFingerprint": "sha256:backend-contract-v1:300f2fb801e65ef8a0355d217f3f89e59d11e38f976af5a86ba41212d30216fd", + "templateRevisionHash": "5e0a8441e6f6998745a1b9c9a8244aa5d8e4e8591be5277396f519f41adf7ad4", + "capturedAt": "2026-11-25T04:23:00.358Z", "outputExtension": "webp", "outputSize": { - "width": 512, - "height": 512 - }, - "inputSize": { - "width": 512, - "height": 512 + "width": 1024, + "height": 1024 } }, - "hunyuan_dit_green_glass_study": { - "associationSha256": "a4c37eed14bb2859393511f0c539ea5a4255852cec45141a470abbcfa6bfdaac", - "backendSourceFingerprint": "sha256:backend-source-v1:1aae04a8ad2e66aeb3eaacc065f2e111280bd8a64e7e6cb95cc927fed95d6b39", - "backendContractFingerprint": "sha256:backend-contract-v1:ad16452bc59ad56fa75df0e9f2f3b913f28233c906d4e37c4518fbc978d47953", - "templateRevisionHash": "a132dd6cd433bd0595f962173926edd930ea38cbf44d175d5499234f600d21f2", - "primaryModelRepo": "Tencent-Hunyuan/HunyuanDiT-v1.2-Diffusers-Distilled", - "capturedAt": "2026-11-23T17:50:53.075Z", + "kandinsky3_ginkgo_on_slate": { + "associationSha256": "d06e06739b07e69ae2f2c65f503b94970643c950a89d4d39a316f5e7e93b3269", + "backendSourceFingerprint": "sha256:backend-source-v1:175112f2430928958bd90dc5ae78b50ce0a54403e42e28cfc68096945d05fbe6", + "backendContractFingerprint": "sha256:backend-contract-v1:300f2fb801e65ef8a0355d217f3f89e59d11e38f976af5a86ba41212d30216fd", + "templateRevisionHash": "5870090e6b4d12c32d72566b6038e9bcc8bf8d063492a28ecbeb65275d77c8e9", + "capturedAt": "2026-11-24T01:18:22.804Z", "outputExtension": "webp", "outputSize": { "width": 1024, "height": 1024 - }, - "inputSize": { - "width": 1024, - "height": 1024 } }, - "qwen_control_winter_cabin_blue_hour": { - "associationSha256": "49e4dd97a963a91ec488a6e53586bc55bd0bcac93e2591d9d51f759cdcfb6ce6", - "backendSourceFingerprint": "sha256:backend-source-v1:e3aea8f8d102572ad10fdd0700f0c42d92061e864ede89777efcd6a3269770a8", - "backendContractFingerprint": "sha256:backend-contract-v1:311f615e2b52ae3247c353b495df7708d560006e6909191e1e104b1e24b04587", - "templateRevisionHash": "eb65cb98a365c056f3a2a7bd5d44515bb16f518f7ec00797a496fe90a25ce07d", - "primaryModelRepo": "Qwen/Qwen-Image-2512", - "capturedAt": "2026-11-23T22:16:34.633Z", + "kandinsky3_smoked_glass_on_limestone": { + "associationSha256": "45c5605c355b6698b1790b51e04f3c7f6639e3a35a440c786d5267ee136af375", + "backendSourceFingerprint": "sha256:backend-source-v1:175112f2430928958bd90dc5ae78b50ce0a54403e42e28cfc68096945d05fbe6", + "backendContractFingerprint": "sha256:backend-contract-v1:315617df789a8a5f57426692318e197c13786098718305edd1927471b5b9c194", + "templateRevisionHash": "196588c637d27503fb83fdcd1b294e9b3e7cad61436214751f92a1c6aaeb7361", + "capturedAt": "2026-11-24T16:10:32.320Z", "outputExtension": "webp", "outputSize": { "width": 1024, @@ -527,30 +579,41 @@ "height": 1024 } }, - "sd15_pag_canny_guided_glass": { - "associationSha256": "5f2c1f81107eec8d214f6f9fa7bb517d0298a6fdfd1d31ed0c4c440ed19e359d", - "backendSourceFingerprint": "sha256:backend-source-v1:e3aea8f8d102572ad10fdd0700f0c42d92061e864ede89777efcd6a3269770a8", - "backendContractFingerprint": "sha256:backend-contract-v1:ad16452bc59ad56fa75df0e9f2f3b913f28233c906d4e37c4518fbc978d47953", - "templateRevisionHash": "23fc8dfe4150096c38d946116a9839a314a7581d52c9397e9d8e1ad42716624c", - "primaryModelRepo": "stable-diffusion-v1-5/stable-diffusion-v1-5", - "capturedAt": "2026-11-23T16:06:50.173Z", + "kontext_wide_water_alpine_ridge": { + "associationSha256": "d1d65bf6c92fc53e8124e23195b11ec425fa4190dd81aec98879dc30060bceaf", + "backendSourceFingerprint": "sha256:backend-source-v1:272116bf77447dfb20b0899666ae417b68401993dd97ca438db63d91ff79cab6", + "backendContractFingerprint": "sha256:backend-contract-v1:06f986600338dc08fb5d1e639bfad55384f5b15ca0c97c2aeb7ed42a8c245594", + "templateRevisionHash": "8ae90dc2b352689446effd182c4ad144c4e555d5b76fa3adbdb77fa4b767d119", + "capturedAt": "2026-11-24T04:27:52.558Z", "outputExtension": "webp", "outputSize": { - "width": 512, - "height": 512 + "width": 1344, + "height": 768 }, "inputSize": { + "width": 832, + "height": 768 + } + }, + "latte_water_folding_over_slate": { + "associationSha256": "d4fa7bbc2f0facdf2f82804c5c9de71abd5ffaa3f2a1aea18ce280830ac16d6d", + "backendSourceFingerprint": "sha256:backend-source-v1:b29a5b0d317aaa781ae2a5205b46b518eea5a3d68a214eb0968dba4ac0660af7", + "backendContractFingerprint": "sha256:backend-contract-v1:40a4eb8d6275c83725f57c4d3499b8d12c00f8cf6caffc2d07006e74d24ab820", + "templateRevisionHash": "663502fcbb5c79310582bf01e0dab2dfba6abadfa43d044f834b8ab10d5bb145", + "capturedAt": "2026-11-25T09:10:38.298Z", + "outputExtension": "mp4", + "primaryModelRepo": "maxin-cn/Latte-1", + "outputSize": { "width": 512, "height": 512 } }, - "sdxl_controlnet_glass_study_on_slate": { - "associationSha256": "290aae18b88e53f187a4818898017c3e685032471209ea970ee9f9e675f198bb", - "backendSourceFingerprint": "sha256:backend-source-v1:371fd754663a95b1b06900df9a838042048466464b4bd5cfa7033c1b6eebe0e3", - "backendContractFingerprint": "sha256:backend-contract-v1:ad16452bc59ad56fa75df0e9f2f3b913f28233c906d4e37c4518fbc978d47953", - "templateRevisionHash": "3075b68d97eea65616a9a8fe2519154041e24ced2cd916b395c4849d26c31b71", - "primaryModelRepo": "stabilityai/stable-diffusion-xl-base-1.0", - "capturedAt": "2026-11-23T15:20:10.146Z", + "longcat_clear_glass_at_the_bookshop": { + "associationSha256": "607a39a9c803b7fdeec80b6f6396cb3d74a5b85e129fa194f9aa11372e4140aa", + "backendSourceFingerprint": "sha256:backend-source-v1:43f2ed10792fc6167b963166287cf7d5a0429afa26029e6455b0418e2123be86", + "backendContractFingerprint": "sha256:backend-contract-v1:315617df789a8a5f57426692318e197c13786098718305edd1927471b5b9c194", + "templateRevisionHash": "057e11900f267163730bdb1009b1be2118ab05c6d94815d4bf4e5af86da75fbe", + "capturedAt": "2026-11-24T01:37:17.476Z", "outputExtension": "webp", "outputSize": { "width": 1024, @@ -559,23 +622,19 @@ "inputSize": { "width": 1024, "height": 1024 - } + }, + "beforeExtension": "webp" }, - "sdxl_canny_adapter_glass_study": { - "associationSha256": "f05c0bb40aaad59d8bafc8f3efe1de4be8e3ebc1cec9b0607dde8902a78c4123", - "backendSourceFingerprint": "sha256:backend-source-v1:371fd754663a95b1b06900df9a838042048466464b4bd5cfa7033c1b6eebe0e3", - "backendContractFingerprint": "sha256:backend-contract-v1:ad16452bc59ad56fa75df0e9f2f3b913f28233c906d4e37c4518fbc978d47953", - "templateRevisionHash": "eef6570d0a2241aa0a9ff68b200c59591fc6497f43885fba151138ae56517968", - "primaryModelRepo": "stabilityai/stable-diffusion-xl-base-1.0", - "capturedAt": "2026-11-23T14:45:54.554Z", + "longcat_florist_end_of_lane": { + "associationSha256": "bbd822df29e973cd3db526d60c6cc1fa76e5a88fcb6eb78712f0ee1a2851ff26", + "backendSourceFingerprint": "sha256:backend-source-v1:b29a5b0d317aaa781ae2a5205b46b518eea5a3d68a214eb0968dba4ac0660af7", + "backendContractFingerprint": "sha256:backend-contract-v1:300f2fb801e65ef8a0355d217f3f89e59d11e38f976af5a86ba41212d30216fd", + "templateRevisionHash": "b90a1a05613457abec04653497adf621e361d94bfc399db6cbd94f093a69421f", + "capturedAt": "2026-11-25T04:36:30.280Z", "outputExtension": "webp", "outputSize": { "width": 1024, "height": 1024 - }, - "inputSize": { - "width": 1024, - "height": 1024 } }, "longcat_last_tram_at_dusk": { @@ -586,40 +645,56 @@ "capturedAt": "2026-11-24T22:39:17.259Z", "outputExtension": "wav" }, - "qwen_layered_sunset_and_peaks": { - "associationSha256": "6f803d49ff9c2e4add5ec1bdd552de9e92b4d887b988c27f298d532c6cf2b2d3", - "backendSourceFingerprint": "sha256:backend-source-v1:ce7ac712b4620d0e8efb35022a558a551e2d4ae6ef20b844744c4d674527b0b3", - "backendContractFingerprint": "sha256:backend-contract-v1:7661a86f3aebb5f170346fc6078e665e006b56b7ff5bc4810db8692adf607dac", - "templateRevisionHash": "4ee3847d935f7b245f5c9d9e156da8fe5d97dcb382ad890c59163e573a6c73c9", - "capturedAt": "2026-11-24T23:35:50.453Z", - "outputExtension": "png", + "ltx2_enamel_teapot_window_light": { + "associationSha256": "e7b9031dbffc495a1c803a1f05ba565dfa0e3a69a01f893f8641743dfe4641ca", + "backendSourceFingerprint": "sha256:backend-source-v1:b29a5b0d317aaa781ae2a5205b46b518eea5a3d68a214eb0968dba4ac0660af7", + "backendContractFingerprint": "sha256:backend-contract-v1:6d7fd83982e125093037e64b34a0ff2d70c1cccfb304c1cee11b6dca3e3974fc", + "templateRevisionHash": "8c01a644d54c04e3ebb653cba32cdf1b14a18c7167e52ef95fdc392aad28599a", + "capturedAt": "2026-11-25T06:28:14.109Z", + "outputExtension": "mp4", + "primaryModelRepo": "Lightricks/LTX-2", "outputSize": { - "width": 960, - "height": 710 + "width": 768, + "height": 512 } }, - "cogvideox_mossy_mountain_stream": { - "associationSha256": "3f977ded1b8f4969d28fe1eaf21418c75d37b62dcfcc19c3b4c842433f25956e", - "backendSourceFingerprint": "sha256:backend-source-v1:70bc1ff7fe61307be52cfda86b38c6400f2156cbc8240a489b62ff19a93d58dc", - "backendContractFingerprint": "sha256:backend-contract-v1:40a4eb8d6275c83725f57c4d3499b8d12c00f8cf6caffc2d07006e74d24ab820", - "templateRevisionHash": "c77c843d9555524c9f9ce04c53af16c2ee6570d7ff9b72d90fba98fd1fc3d9cc", - "capturedAt": "2026-11-24T04:17:26.141Z", + "ltx2_glasshouse_drip": { + "associationSha256": "a578d28fab1355aa2cb079ed300959dbe2f8c2ed18b2ad041a8fb42755981b6f", + "backendSourceFingerprint": "sha256:backend-source-v1:b29a5b0d317aaa781ae2a5205b46b518eea5a3d68a214eb0968dba4ac0660af7", + "backendContractFingerprint": "sha256:backend-contract-v1:6d7fd83982e125093037e64b34a0ff2d70c1cccfb304c1cee11b6dca3e3974fc", + "templateRevisionHash": "8e9c88d288257a9ccf86964d32b68646882ceaf3c65b4cae91af6d89eea4e1cb", + "capturedAt": "2026-11-25T06:23:53.855Z", "outputExtension": "mp4", + "primaryModelRepo": "Lightricks/LTX-2", "outputSize": { - "width": 720, - "height": 480 + "width": 768, + "height": 512 } }, - "cogvideox_red_tram_model_railway": { - "associationSha256": "aa0c4b4cf84ee5f4b637092acd8a8e60db8360d4076a146d6388c97cb259a673", - "backendSourceFingerprint": "sha256:backend-source-v1:43f2ed10792fc6167b963166287cf7d5a0429afa26029e6455b0418e2123be86", - "backendContractFingerprint": "sha256:backend-contract-v1:33b2d430a6b544125220ee6627441eb2121c00e6cfb3aa7c2d54b08b7b2f1f09", - "templateRevisionHash": "d74131d9a94ae6422f0824a9948e9ee157fb765058f8d45e515fda25a93c25c6", - "capturedAt": "2026-11-24T02:42:22.051Z", + "ltx2_kiln_at_first_light": { + "associationSha256": "66f4f89e32372a381a14b9b8c6f474e44355b93d91c46fe9df6dcdbe4da52154", + "backendSourceFingerprint": "sha256:backend-source-v1:b29a5b0d317aaa781ae2a5205b46b518eea5a3d68a214eb0968dba4ac0660af7", + "backendContractFingerprint": "sha256:backend-contract-v1:1fb68b35c4981d6b87ef267a551fb572e72163972539ed955bb17cf7cf3a8bb8", + "templateRevisionHash": "172e79d27a5e6add55ba522752c17fddb4fb44998d3ff152056befa619c4f5a7", + "capturedAt": "2026-11-25T07:04:49.368Z", "outputExtension": "mp4", + "primaryModelRepo": "Lightricks/LTX-2", "outputSize": { - "width": 720, - "height": 480 + "width": 768, + "height": 512 + } + }, + "ltx2_moss_and_basalt": { + "associationSha256": "f08aed324bb0047cff321d7d87cfa51cd6a462ec5f64bd2f1f3ed24913d973bc", + "backendSourceFingerprint": "sha256:backend-source-v1:b29a5b0d317aaa781ae2a5205b46b518eea5a3d68a214eb0968dba4ac0660af7", + "backendContractFingerprint": "sha256:backend-contract-v1:3870812099f899fad7df7ffddf6dd37dd0241e7628d9b40d6fc51acb693b5086", + "templateRevisionHash": "680ec55c2e867aab22c21e907eb3ab183c6639af4cd8ba877e6bcec732a5ce1a", + "capturedAt": "2026-11-25T10:51:51.234Z", + "outputExtension": "mp4", + "primaryModelRepo": "Lightricks/LTX-2", + "outputSize": { + "width": 768, + "height": 512 }, "inputSize": { "width": 720, @@ -627,72 +702,178 @@ }, "beforeExtension": "mp4" }, - "wan_a14b_cloudbreak_over_the_ridges": { - "associationSha256": "2fdbcaf34bd1e2a3d31edf4196c3cf67c590053f1ba99eb75a2e001bd73d6384", + "ltx2_surf_below_the_breakwater": { + "associationSha256": "de7b03b100c8bb886bf3b4b9836540a911d1b179335274ce0670b4ca95296f7e", "backendSourceFingerprint": "sha256:backend-source-v1:b29a5b0d317aaa781ae2a5205b46b518eea5a3d68a214eb0968dba4ac0660af7", - "backendContractFingerprint": "sha256:backend-contract-v1:40a4eb8d6275c83725f57c4d3499b8d12c00f8cf6caffc2d07006e74d24ab820", - "templateRevisionHash": "2fe28c05a3adcb92031d2e5a369cf6be41990463644f08e5440bb998b32bc1fd", - "capturedAt": "2026-11-24T23:06:15.432Z", + "backendContractFingerprint": "sha256:backend-contract-v1:1fb68b35c4981d6b87ef267a551fb572e72163972539ed955bb17cf7cf3a8bb8", + "templateRevisionHash": "0a58a9b6f8ac6a0308cf5e137d09d9412579d9ec92133231858ced4d45e4a01e", + "capturedAt": "2026-11-25T07:14:50.574Z", "outputExtension": "mp4", + "primaryModelRepo": "Lightricks/LTX-2", "outputSize": { "width": 768, "height": 512 } }, - "wan_flf_blue_hour_at_the_tram_shelter": { - "associationSha256": "386e6871df161c57a2ea8c632cb3d58873a0a450e8eac14d3fa27a2974aae9ab", + "lumina_opal_pendant_in_limestone": { + "associationSha256": "2b785b4b786b96de5ca6c7649147f4f71f24fa56e2f3e2e4f7187b39df84a78a", + "backendSourceFingerprint": "sha256:backend-source-v1:4e964e7de84962b7d4f70d35de6904394561f9a9314ea2bd7e435a03a55af5b6", + "backendContractFingerprint": "sha256:backend-contract-v1:5429892d782af9dbc60b8c6b2762de25748a8da025a4965bb7d6e641908e47ba", + "templateRevisionHash": "4545f92379bc42dd213572033b19a7d37bfd24a3cf8c5eb90fb510c2e2c4c1e7", + "capturedAt": "2026-11-24T16:28:31.695Z", + "outputExtension": "webp", + "outputSize": { + "width": 1024, + "height": 1024 + } + }, + "lumina2_larch_on_glacial_pond": { + "associationSha256": "044a0926d4d470bf68094ef94e300daae045c80682fd038cb355d53da8579a61", + "backendSourceFingerprint": "sha256:backend-source-v1:057b165c6ef6225461649a47077562dffad098a2d37d639a13bf0e73088d79ab", + "backendContractFingerprint": "sha256:backend-contract-v1:300f2fb801e65ef8a0355d217f3f89e59d11e38f976af5a86ba41212d30216fd", + "templateRevisionHash": "c1fecc495b278628b9539fb84079b73b70db420165a7e151def065731920853e", + "capturedAt": "2026-11-23T14:40:20.880Z", + "outputExtension": "webp", + "outputSize": { + "width": 1024, + "height": 1024 + } + }, + "mochi_surf_over_dark_pebbles": { + "associationSha256": "3c227772597bc28d6eb90f63726ecbe3be317f7cb99e85742dc73ce0fc6918fd", "backendSourceFingerprint": "sha256:backend-source-v1:b29a5b0d317aaa781ae2a5205b46b518eea5a3d68a214eb0968dba4ac0660af7", - "backendContractFingerprint": "sha256:backend-contract-v1:288f2abd0b142ec1f2081bf6d3dbf71ba988833662040e7e81688c4524cf0516", - "templateRevisionHash": "719322718cef9254b24004759f2eac08a4302ea27c86cbe538782207d29389f6", - "capturedAt": "2026-11-24T21:03:04.380Z", + "backendContractFingerprint": "sha256:backend-contract-v1:40a4eb8d6275c83725f57c4d3499b8d12c00f8cf6caffc2d07006e74d24ab820", + "templateRevisionHash": "c0a8a85ce8101d4ffcf0a8ab34a46b49b41d38e667a896e8b51f5016bb536b62", + "capturedAt": "2026-11-25T02:21:21.989Z", "outputExtension": "mp4", + "primaryModelRepo": "genmo/mochi-1-preview", "outputSize": { - "width": 768, + "width": 848, + "height": 480 + } + }, + "ochre_paper_pavilion": { + "associationSha256": "70897e1af886e489a67c209bfd3caa382077fa2a09b71e8ae33b3e5f6555a251", + "backendSourceFingerprint": "sha256:backend-source-v1:272116bf77447dfb20b0899666ae417b68401993dd97ca438db63d91ff79cab6", + "backendContractFingerprint": "sha256:backend-contract-v1:300f2fb801e65ef8a0355d217f3f89e59d11e38f976af5a86ba41212d30216fd", + "templateRevisionHash": "b5e4c8446f01030c05a206290d9ed0c1e5035cd3110f0fb6a9e6e3c416ad5177", + "capturedAt": "2026-11-24T05:30:35.733Z", + "outputExtension": "webp", + "outputSize": { + "width": 1024, + "height": 1024 + } + }, + "omnigen_cobalt_against_soft_apricot": { + "associationSha256": "e36849be5816106a00e201062187b8dcc4ae11ebe94611bf8137671532a1dc39", + "backendSourceFingerprint": "sha256:backend-source-v1:b29a5b0d317aaa781ae2a5205b46b518eea5a3d68a214eb0968dba4ac0660af7", + "backendContractFingerprint": "sha256:backend-contract-v1:315617df789a8a5f57426692318e197c13786098718305edd1927471b5b9c194", + "templateRevisionHash": "932ee2726d371c73f19521cf7e50806fb86a95394047d6207a5cee3007e57f00", + "capturedAt": "2026-11-25T02:43:28.002Z", + "outputExtension": "webp", + "outputSize": { + "width": 1024, + "height": 1024 + }, + "inputSize": { + "width": 1024, + "height": 1024 + } + }, + "omnigen_red_enamel_folded_linen": { + "associationSha256": "f707f2507cbcc624334064fa63248f6a8b730e72778ca9faa5736dd52f1f52d5", + "backendSourceFingerprint": "sha256:backend-source-v1:b29a5b0d317aaa781ae2a5205b46b518eea5a3d68a214eb0968dba4ac0660af7", + "backendContractFingerprint": "sha256:backend-contract-v1:315617df789a8a5f57426692318e197c13786098718305edd1927471b5b9c194", + "templateRevisionHash": "595a3209f4bfb41d4930f0368e75bab6a19602ad0eae4d44dc535efd0a059652", + "capturedAt": "2026-11-25T05:12:08.254Z", + "outputExtension": "webp", + "outputSize": { + "width": 1024, + "height": 1024 + }, + "inputSize": { + "width": 384, + "height": 384 + } + }, + "omnigen_tulips_after_rain": { + "associationSha256": "10f3e3764210089f2a3f43281d45fb24e965f8b035e8dc993d720ceceff9e9a6", + "backendSourceFingerprint": "sha256:backend-source-v1:371fd754663a95b1b06900df9a838042048466464b4bd5cfa7033c1b6eebe0e3", + "backendContractFingerprint": "sha256:backend-contract-v1:300f2fb801e65ef8a0355d217f3f89e59d11e38f976af5a86ba41212d30216fd", + "templateRevisionHash": "e3ceb2dc096775601a6e65b7ab61f5ccc64658d2a69586f3c6a13f2efe1a973c", + "capturedAt": "2026-11-23T15:17:38.630Z", + "outputExtension": "webp", + "outputSize": { + "width": 1024, + "height": 1024 + } + }, + "persimmon_glaze": { + "associationSha256": "1cb82a65c9b5c86bd33286a1db09f9159a1bd5def106f5e34d7506e8ef0623c1", + "backendSourceFingerprint": "sha256:backend-source-v1:057b165c6ef6225461649a47077562dffad098a2d37d639a13bf0e73088d79ab", + "backendContractFingerprint": "sha256:backend-contract-v1:300f2fb801e65ef8a0355d217f3f89e59d11e38f976af5a86ba41212d30216fd", + "templateRevisionHash": "ddf39e419212cba10df50f7b27b3fae22d57a0cbfc574164bcad08975fa2545b", + "capturedAt": "2026-11-23T14:38:24.904Z", + "outputExtension": "webp", + "outputSize": { + "width": 1024, + "height": 1024 + } + }, + "pomegranate_on_blue_linen": { + "associationSha256": "912ddb48782b903de10ce1f23f400537bb9f8944354d48bf0ea7203bad10e071", + "backendSourceFingerprint": "sha256:backend-source-v1:1f2f7e00ce4a500ba52d5b729f43d4321af6f931125a3f266f307cf80038c12e", + "backendContractFingerprint": "sha256:backend-contract-v1:5429892d782af9dbc60b8c6b2762de25748a8da025a4965bb7d6e641908e47ba", + "templateRevisionHash": "6642ac1831a788b83981383c33b7ce019692d58fd2b23f3bff9d95e3a59ec27b", + "capturedAt": "2026-11-23T14:15:52.979Z", + "outputExtension": "webp", + "outputSize": { + "width": 512, "height": 512 } }, - "joyimage_herbarium_rainy_porthole": { - "associationSha256": "f0254138cc571fad786388d675b3a686bf1f7cc221aaa157c4ed3e300d7e46b2", - "backendSourceFingerprint": "sha256:backend-source-v1:b29a5b0d317aaa781ae2a5205b46b518eea5a3d68a214eb0968dba4ac0660af7", - "backendContractFingerprint": "sha256:backend-contract-v1:300f2fb801e65ef8a0355d217f3f89e59d11e38f976af5a86ba41212d30216fd", - "templateRevisionHash": "5e0a8441e6f6998745a1b9c9a8244aa5d8e4e8591be5277396f519f41adf7ad4", - "capturedAt": "2026-11-25T04:23:00.358Z", + "porcelain_on_slate_linen": { + "associationSha256": "5f59b268e66ffa4b5a58ea622198b047b418baee667f0fd0d2f18a44ea480617", + "backendSourceFingerprint": "sha256:backend-source-v1:fe1a57b8e352eb66a1a26ebbff5865aaafcf5d55326c4bbcbaf2132ec75f54a8", + "backendContractFingerprint": "sha256:backend-contract-v1:5429892d782af9dbc60b8c6b2762de25748a8da025a4965bb7d6e641908e47ba", + "templateRevisionHash": "fe33d74a4694ab6b3d34f483d56575c0c66a5948d424a62c04538c0dd608253a", + "capturedAt": "2026-11-23T15:33:09.403Z", "outputExtension": "webp", "outputSize": { - "width": 1024, - "height": 1024 + "width": 512, + "height": 512 } }, - "longcat_florist_end_of_lane": { - "associationSha256": "bbd822df29e973cd3db526d60c6cc1fa76e5a88fcb6eb78712f0ee1a2851ff26", - "backendSourceFingerprint": "sha256:backend-source-v1:b29a5b0d317aaa781ae2a5205b46b518eea5a3d68a214eb0968dba4ac0660af7", + "quiet_current": { + "associationSha256": "f1d031268c22b8679f42bdb78c36d977d41aef77222ba8066fb835ae62156820", + "backendSourceFingerprint": "sha256:backend-source-v1:e3aea8f8d102572ad10fdd0700f0c42d92061e864ede89777efcd6a3269770a8", "backendContractFingerprint": "sha256:backend-contract-v1:300f2fb801e65ef8a0355d217f3f89e59d11e38f976af5a86ba41212d30216fd", - "templateRevisionHash": "b90a1a05613457abec04653497adf621e361d94bfc399db6cbd94f093a69421f", - "capturedAt": "2026-11-25T04:36:30.280Z", + "templateRevisionHash": "c3c7aada8d0fc7bec8c4067c9c88fbb03d5210ee9f6412d1d5984b21879ab886", + "capturedAt": "2026-11-23T17:21:03.387Z", "outputExtension": "webp", "outputSize": { "width": 1024, "height": 1024 } }, - "sana_tidal_pool_on_black_basalt": { - "associationSha256": "7d892caa8cb7984f4c5abad893b76175dc4bd16600ae563c2fc4b91119e53b38", - "backendSourceFingerprint": "sha256:backend-source-v1:b29a5b0d317aaa781ae2a5205b46b518eea5a3d68a214eb0968dba4ac0660af7", + "quiet_kiln_at_daybreak": { + "associationSha256": "8c535a4a82a668b1aa7063e6c9c201fc7824f2c54493d8d7572749f13fbb8473", + "backendSourceFingerprint": "sha256:backend-source-v1:258d554494a8e31795e6c04f21e6ab998a6225773194b12546c45d68b690887e", "backendContractFingerprint": "sha256:backend-contract-v1:300f2fb801e65ef8a0355d217f3f89e59d11e38f976af5a86ba41212d30216fd", - "templateRevisionHash": "31c6fda19fe62a7282c50fe665069354989947ef1454ac63a1384637792d09c6", - "capturedAt": "2026-11-24T21:35:49.709Z", + "templateRevisionHash": "82918f24aaddf420da3c1213ac69779af2bf962cd2af50b33814f1eefdf14a3b", + "capturedAt": "2026-11-24T02:35:25.266Z", "outputExtension": "webp", "outputSize": { "width": 1024, "height": 1024 } }, - "chroma_alpine_block_print": { - "associationSha256": "644f096cb3ce16b11e8aaff442198bc4b0bfeb5d2b559b172f51ad462ad382e5", - "backendSourceFingerprint": "sha256:backend-source-v1:b29a5b0d317aaa781ae2a5205b46b518eea5a3d68a214eb0968dba4ac0660af7", + "qwen_2511_pale_amber_on_limestone": { + "associationSha256": "55ae5018e2e9dd25b8693ecc1063a902b5845b2c4467e4a2f7daf2f977e3c17f", + "backendSourceFingerprint": "sha256:backend-source-v1:e3aea8f8d102572ad10fdd0700f0c42d92061e864ede89777efcd6a3269770a8", "backendContractFingerprint": "sha256:backend-contract-v1:315617df789a8a5f57426692318e197c13786098718305edd1927471b5b9c194", - "templateRevisionHash": "fbe83f016a250a5749f63a2b3eaa8e9806fc0d0c4b4f849a91a6f2094425dcb0", - "capturedAt": "2026-11-25T03:58:25.751Z", + "templateRevisionHash": "196d20bc8bec725ddcc2674124e4815e019d3b054284f444add226044ed195e5", + "capturedAt": "2026-11-23T18:58:07.960Z", "outputExtension": "webp", "outputSize": { "width": 1024, @@ -703,28 +884,12 @@ "height": 1024 } }, - "flux_klein_alpine_lake_panorama": { - "associationSha256": "97c56686a2055c9f46bb68b8907b88a37b10ab32b7482cb8bf40cb0dd783f9f2", - "backendSourceFingerprint": "sha256:backend-source-v1:e3aea8f8d102572ad10fdd0700f0c42d92061e864ede89777efcd6a3269770a8", - "backendContractFingerprint": "sha256:backend-contract-v1:06f986600338dc08fb5d1e639bfad55384f5b15ca0c97c2aeb7ed42a8c245594", - "templateRevisionHash": "f90f8a8162586ea0e94260bb3b332de2885bb642d0776a0a104b3495a593cc6d", - "capturedAt": "2026-11-23T21:08:09.132Z", - "outputExtension": "webp", - "outputSize": { - "width": 1344, - "height": 768 - }, - "inputSize": { - "width": 832, - "height": 768 - } - }, - "flux_klein_open_glacial_lake": { - "associationSha256": "3154265a969e539f1aea44d337c37e48baf8154ba8f5454f917944a70c9171ce", + "qwen_2511_terracotta_material_transfer": { + "associationSha256": "b55dc0109b93fcc6b1af82016d5e61d0de0c968c9aead54e3699e9b6d3d2e275", "backendSourceFingerprint": "sha256:backend-source-v1:e3aea8f8d102572ad10fdd0700f0c42d92061e864ede89777efcd6a3269770a8", - "backendContractFingerprint": "sha256:backend-contract-v1:e7a7aa3acbdedd686fa7e7a9d4bcc39c1709ba1fec38f047d63ff83558a85c18", - "templateRevisionHash": "e100c45ec42735d37c8eb9c6d442d29822234c41d050ba311b178e38ee14baa5", - "capturedAt": "2026-11-23T17:09:43.722Z", + "backendContractFingerprint": "sha256:backend-contract-v1:315617df789a8a5f57426692318e197c13786098718305edd1927471b5b9c194", + "templateRevisionHash": "46a74671317b1b01f4ee5c7531e4d9fa32b8ba386bc9ba3321632f0168515b13", + "capturedAt": "2026-11-23T20:47:31.989Z", "outputExtension": "webp", "outputSize": { "width": 1024, @@ -735,44 +900,45 @@ "height": 1024 } }, - "flux1_dev_limestone_studio_scratch_repair": { - "associationSha256": "d868488370d89eb9b8ed1bdcfa18841042c6846d522c945e330abc7345708315", + "qwen_2512_cobalt_backdrop_repair": { + "associationSha256": "1474a781dc44dff1bf598b974c0071b0b371311c2971b81f3cd7d68eaf327f25", "backendSourceFingerprint": "sha256:backend-source-v1:43f2ed10792fc6167b963166287cf7d5a0429afa26029e6455b0418e2123be86", "backendContractFingerprint": "sha256:backend-contract-v1:e7a7aa3acbdedd686fa7e7a9d4bcc39c1709ba1fec38f047d63ff83558a85c18", - "templateRevisionHash": "fe963e2fc85d8c21f11d606e545a9dcf5d63e5b2abad4b30900cdb64e5a25d36", - "capturedAt": "2026-11-24T02:02:57.362Z", + "templateRevisionHash": "9448d9e6aed3bf64c4ada3bf63c282f7cbc03c8e6a5ade076450af1d21a9b800", + "capturedAt": "2026-11-23T23:28:40.451Z", "outputExtension": "webp", "outputSize": { - "width": 1024, - "height": 1024 + "width": 1328, + "height": 1328 }, "inputSize": { - "width": 1024, - "height": 1024 + "width": 1328, + "height": 1328 } }, - "joy_plus_lavender_on_limestone": { - "associationSha256": "cec28cfa908558c228bebf3c09b1d52036940235d0c70a34374f3e964548d17b", - "backendSourceFingerprint": "sha256:backend-source-v1:d275bc94517015b221a9a8b5aea7572ec68c491060855c7895526e1ba640796d", + "qwen_bookshop_gouache": { + "associationSha256": "0dd72873432e400ed10ad9e3015bd721314058064f9c2d662b483aee40b65228", + "backendSourceFingerprint": "sha256:backend-source-v1:b29a5b0d317aaa781ae2a5205b46b518eea5a3d68a214eb0968dba4ac0660af7", "backendContractFingerprint": "sha256:backend-contract-v1:315617df789a8a5f57426692318e197c13786098718305edd1927471b5b9c194", - "templateRevisionHash": "448dbfb62c1255097be44eff481ff2c89ff04c31415faa5fe86f22a72a71fe4f", - "capturedAt": "2026-11-24T04:13:54.287Z", + "templateRevisionHash": "3163da25258525f8cb2c8a71b64a89e5445424ed1ad0a8b44b7321aafceb8175", + "capturedAt": "2026-11-25T03:40:38.530Z", "outputExtension": "webp", "outputSize": { - "width": 1024, - "height": 1024 + "width": 1328, + "height": 1328 }, "inputSize": { "width": 1024, "height": 1024 - } + }, + "beforeExtension": "webp" }, - "joyimage_base_cobalt_paper_band": { - "associationSha256": "691b71a4b975f96da6ac7b59772ef0e3a057e8818ea9d2dbd3b9b346f70b7629", - "backendSourceFingerprint": "sha256:backend-source-v1:585997dc1146ec6effb20c260272babc01713ecdea4f78a0872c12ef2568ef83", + "qwen_cobalt_on_charcoal_slate": { + "associationSha256": "ad751a95aed80d67785d09de3fbbd0aeede1cac631dd5b8934e106a90a145450", + "backendSourceFingerprint": "sha256:backend-source-v1:e3aea8f8d102572ad10fdd0700f0c42d92061e864ede89777efcd6a3269770a8", "backendContractFingerprint": "sha256:backend-contract-v1:315617df789a8a5f57426692318e197c13786098718305edd1927471b5b9c194", - "templateRevisionHash": "895ec1f44e28507344c4bdabd3a3c07c3fe985d5b0fc0b5373f91ec8ad1f92d0", - "capturedAt": "2026-11-24T12:15:48.363Z", + "templateRevisionHash": "335c41c4fab432f8ee590dc902ae7d63de98f46464642e1533a3479d339348df", + "capturedAt": "2026-11-23T21:05:09.116Z", "outputExtension": "webp", "outputSize": { "width": 1024, @@ -783,12 +949,13 @@ "height": 1024 } }, - "kandinsky3_smoked_glass_on_limestone": { - "associationSha256": "45c5605c355b6698b1790b51e04f3c7f6639e3a35a440c786d5267ee136af375", - "backendSourceFingerprint": "sha256:backend-source-v1:175112f2430928958bd90dc5ae78b50ce0a54403e42e28cfc68096945d05fbe6", - "backendContractFingerprint": "sha256:backend-contract-v1:315617df789a8a5f57426692318e197c13786098718305edd1927471b5b9c194", - "templateRevisionHash": "196588c637d27503fb83fdcd1b294e9b3e7cad61436214751f92a1c6aaeb7361", - "capturedAt": "2026-11-24T16:10:32.320Z", + "qwen_control_winter_cabin_blue_hour": { + "associationSha256": "49e4dd97a963a91ec488a6e53586bc55bd0bcac93e2591d9d51f759cdcfb6ce6", + "backendSourceFingerprint": "sha256:backend-source-v1:e3aea8f8d102572ad10fdd0700f0c42d92061e864ede89777efcd6a3269770a8", + "backendContractFingerprint": "sha256:backend-contract-v1:311f615e2b52ae3247c353b495df7708d560006e6909191e1e104b1e24b04587", + "templateRevisionHash": "eb65cb98a365c056f3a2a7bd5d44515bb16f518f7ec00797a496fe90a25ce07d", + "primaryModelRepo": "Qwen/Qwen-Image-2512", + "capturedAt": "2026-11-23T22:16:34.633Z", "outputExtension": "webp", "outputSize": { "width": 1024, @@ -799,110 +966,191 @@ "height": 1024 } }, - "kontext_wide_water_alpine_ridge": { - "associationSha256": "d1d65bf6c92fc53e8124e23195b11ec425fa4190dd81aec98879dc30060bceaf", - "backendSourceFingerprint": "sha256:backend-source-v1:272116bf77447dfb20b0899666ae417b68401993dd97ca438db63d91ff79cab6", - "backendContractFingerprint": "sha256:backend-contract-v1:06f986600338dc08fb5d1e639bfad55384f5b15ca0c97c2aeb7ed42a8c245594", - "templateRevisionHash": "8ae90dc2b352689446effd182c4ad144c4e555d5b76fa3adbdb77fa4b767d119", - "capturedAt": "2026-11-24T04:27:52.558Z", + "qwen_layered_sunset_and_peaks": { + "associationSha256": "6f803d49ff9c2e4add5ec1bdd552de9e92b4d887b988c27f298d532c6cf2b2d3", + "backendSourceFingerprint": "sha256:backend-source-v1:ce7ac712b4620d0e8efb35022a558a551e2d4ae6ef20b844744c4d674527b0b3", + "backendContractFingerprint": "sha256:backend-contract-v1:7661a86f3aebb5f170346fc6078e665e006b56b7ff5bc4810db8692adf607dac", + "templateRevisionHash": "4ee3847d935f7b245f5c9d9e156da8fe5d97dcb382ad890c59163e573a6c73c9", + "capturedAt": "2026-11-24T23:35:50.453Z", + "outputExtension": "png", + "outputSize": { + "width": 960, + "height": 710 + } + }, + "restoring_the_studio_backdrop": { + "associationSha256": "17ee149d9d1ca9d8b1f747f62f15e8672a2353555847e043ef60eb766e9befa7", + "backendSourceFingerprint": "sha256:backend-source-v1:1f2f7e00ce4a500ba52d5b729f43d4321af6f931125a3f266f307cf80038c12e", + "backendContractFingerprint": "sha256:backend-contract-v1:61201b43ea68d3fd347fbc374e292b5839be28f908b473bcb69f5ec1f8b87736", + "templateRevisionHash": "26d6762e118bc9217762cc4abeec7817586ee58fb80ef09bc3c98e32a2789472", + "capturedAt": "2026-11-23T14:17:31.827Z", "outputExtension": "webp", "outputSize": { - "width": 1344, - "height": 768 + "width": 512, + "height": 512 }, "inputSize": { - "width": 832, + "width": 512, + "height": 512 + } + }, + "salt_marsh_from_above": { + "associationSha256": "7fc63473243ca1e274daa65c995ad7ba3e06a4fa6da039e863cb2a55622dad76", + "backendSourceFingerprint": "sha256:backend-source-v1:7c2e1b7de13f4da1e785e92f41a91f96b0029f79607915780ddb97aaff6a8d29", + "backendContractFingerprint": "sha256:backend-contract-v1:300f2fb801e65ef8a0355d217f3f89e59d11e38f976af5a86ba41212d30216fd", + "templateRevisionHash": "b09d5bf8c1d2efa3ae62881840125aa474500d658ba7538031dedeaeb79d52d4", + "capturedAt": "2026-11-24T01:53:00.229Z", + "outputExtension": "webp", + "outputSize": { + "width": 1536, "height": 768 } }, - "longcat_clear_glass_at_the_bookshop": { - "associationSha256": "607a39a9c803b7fdeec80b6f6396cb3d74a5b85e129fa194f9aa11372e4140aa", - "backendSourceFingerprint": "sha256:backend-source-v1:43f2ed10792fc6167b963166287cf7d5a0429afa26029e6455b0418e2123be86", - "backendContractFingerprint": "sha256:backend-contract-v1:315617df789a8a5f57426692318e197c13786098718305edd1927471b5b9c194", - "templateRevisionHash": "057e11900f267163730bdb1009b1be2118ab05c6d94815d4bf4e5af86da75fbe", - "capturedAt": "2026-11-24T01:37:17.476Z", + "sana_i2v_blue_hour_above_rice_terraces": { + "associationSha256": "9adb3ab26d3d8f41cf24b8e1b77dc837fcceff46b1b7a63524717cabc0131901", + "backendSourceFingerprint": "sha256:backend-source-v1:b29a5b0d317aaa781ae2a5205b46b518eea5a3d68a214eb0968dba4ac0660af7", + "backendContractFingerprint": "sha256:backend-contract-v1:d68ff3c7d7b2d190e68d6f148834ae971638c23a9d31086a3848874658f37da2", + "templateRevisionHash": "e6ce9b989e565a3504ccb21781d8522fd3bd3d17715c008ae315b068f7773b1c", + "capturedAt": "2026-11-25T01:58:17.904Z", + "outputExtension": "mp4", + "primaryModelRepo": "Efficient-Large-Model/SANA-Video_2B_480p_diffusers", + "outputSize": { + "width": 832, + "height": 480 + } + }, + "sana_tidal_pool_on_black_basalt": { + "associationSha256": "7d892caa8cb7984f4c5abad893b76175dc4bd16600ae563c2fc4b91119e53b38", + "backendSourceFingerprint": "sha256:backend-source-v1:b29a5b0d317aaa781ae2a5205b46b518eea5a3d68a214eb0968dba4ac0660af7", + "backendContractFingerprint": "sha256:backend-contract-v1:300f2fb801e65ef8a0355d217f3f89e59d11e38f976af5a86ba41212d30216fd", + "templateRevisionHash": "31c6fda19fe62a7282c50fe665069354989947ef1454ac63a1384637792d09c6", + "capturedAt": "2026-11-24T21:35:49.709Z", "outputExtension": "webp", "outputSize": { "width": 1024, "height": 1024 + } + }, + "sana_video_water_terraces_before_sunrise": { + "associationSha256": "5b12ebe17da6302823c567e4f35e5dfb93aa2f913099f7bf4bda745b28c5d2de", + "backendSourceFingerprint": "sha256:backend-source-v1:b29a5b0d317aaa781ae2a5205b46b518eea5a3d68a214eb0968dba4ac0660af7", + "backendContractFingerprint": "sha256:backend-contract-v1:40a4eb8d6275c83725f57c4d3499b8d12c00f8cf6caffc2d07006e74d24ab820", + "templateRevisionHash": "e5d7bb4cd5fa1b68f4840fc0746bea2aa963c1d8183be0985a66b0789be9f1d1", + "capturedAt": "2026-11-25T01:39:27.365Z", + "outputExtension": "mp4", + "primaryModelRepo": "Efficient-Large-Model/SANA-Video_2B_480p_diffusers", + "outputSize": { + "width": 832, + "height": 480 + } + }, + "sd15_canny_guided_green_glass": { + "associationSha256": "37b256588e8ffe492a2ac09c77eff98cf0b7adedafb95d434346b94c74a5e728", + "backendSourceFingerprint": "sha256:backend-source-v1:e3aea8f8d102572ad10fdd0700f0c42d92061e864ede89777efcd6a3269770a8", + "backendContractFingerprint": "sha256:backend-contract-v1:ad16452bc59ad56fa75df0e9f2f3b913f28233c906d4e37c4518fbc978d47953", + "templateRevisionHash": "783d03619e47df52cf8b17262e42d07bdaacf9165314c26bce9dc3fc9478e55d", + "primaryModelRepo": "stable-diffusion-v1-5/stable-diffusion-v1-5", + "capturedAt": "2026-11-23T16:04:58.708Z", + "outputExtension": "webp", + "outputSize": { + "width": 512, + "height": 512 }, "inputSize": { - "width": 1024, - "height": 1024 + "width": 512, + "height": 512 + } + }, + "sd15_control_cobalt_handmade_paper": { + "associationSha256": "f08c694ec651b0c38518cf435ce5140627d14b39074551df6ab190fd8e576961", + "backendSourceFingerprint": "sha256:backend-source-v1:3227569ff822090d00a80a3a88213d76d5ca43092d2918cec2494962457865a5", + "backendContractFingerprint": "sha256:backend-contract-v1:b5b17d569852e051bdac1d2b3e08b4753392cadd39a1277f893bdf34f19490c5", + "templateRevisionHash": "fee63ff957b7394a6472d76a9f662abd1d86193d12ee6c0ab2cf6c77cf1e2b50", + "primaryModelRepo": "stable-diffusion-v1-5/stable-diffusion-v1-5", + "capturedAt": "2026-11-23T18:36:20.247Z", + "outputExtension": "webp", + "outputSize": { + "width": 512, + "height": 512 }, - "beforeExtension": "webp" + "inputSize": { + "width": 512, + "height": 512 + } }, - "omnigen_cobalt_against_soft_apricot": { - "associationSha256": "e36849be5816106a00e201062187b8dcc4ae11ebe94611bf8137671532a1dc39", - "backendSourceFingerprint": "sha256:backend-source-v1:b29a5b0d317aaa781ae2a5205b46b518eea5a3d68a214eb0968dba4ac0660af7", - "backendContractFingerprint": "sha256:backend-contract-v1:315617df789a8a5f57426692318e197c13786098718305edd1927471b5b9c194", - "templateRevisionHash": "932ee2726d371c73f19521cf7e50806fb86a95394047d6207a5cee3007e57f00", - "capturedAt": "2026-11-25T02:43:28.002Z", + "sd15_control_cobalt_studio_wall_repair": { + "associationSha256": "a25d434141bad5cc3deda9b08cb19a5954e772c32cf5f3a87517cd8142c61e89", + "backendSourceFingerprint": "sha256:backend-source-v1:fe1a57b8e352eb66a1a26ebbff5865aaafcf5d55326c4bbcbaf2132ec75f54a8", + "backendContractFingerprint": "sha256:backend-contract-v1:7271d6dfcd46a677217edf40c568c3f5e9ae300200f76976e0cf18fd9b9f2508", + "templateRevisionHash": "871cffe6c8b434f4d3afa1f65009582862b565313d180b56d5a61eedd5fd1aa8", + "primaryModelRepo": "stable-diffusion-v1-5/stable-diffusion-v1-5", + "capturedAt": "2026-11-23T15:27:55.645Z", "outputExtension": "webp", "outputSize": { - "width": 1024, - "height": 1024 + "width": 512, + "height": 512 }, "inputSize": { - "width": 1024, - "height": 1024 + "width": 512, + "height": 512 } }, - "qwen_2511_pale_amber_on_limestone": { - "associationSha256": "55ae5018e2e9dd25b8693ecc1063a902b5845b2c4467e4a2f7daf2f977e3c17f", + "sd15_pag_canny_guided_glass": { + "associationSha256": "5f2c1f81107eec8d214f6f9fa7bb517d0298a6fdfd1d31ed0c4c440ed19e359d", "backendSourceFingerprint": "sha256:backend-source-v1:e3aea8f8d102572ad10fdd0700f0c42d92061e864ede89777efcd6a3269770a8", - "backendContractFingerprint": "sha256:backend-contract-v1:315617df789a8a5f57426692318e197c13786098718305edd1927471b5b9c194", - "templateRevisionHash": "196d20bc8bec725ddcc2674124e4815e019d3b054284f444add226044ed195e5", - "capturedAt": "2026-11-23T18:58:07.960Z", + "backendContractFingerprint": "sha256:backend-contract-v1:ad16452bc59ad56fa75df0e9f2f3b913f28233c906d4e37c4518fbc978d47953", + "templateRevisionHash": "23fc8dfe4150096c38d946116a9839a314a7581d52c9397e9d8e1ad42716624c", + "primaryModelRepo": "stable-diffusion-v1-5/stable-diffusion-v1-5", + "capturedAt": "2026-11-23T16:06:50.173Z", "outputExtension": "webp", "outputSize": { - "width": 1024, - "height": 1024 + "width": 512, + "height": 512 }, "inputSize": { - "width": 1024, - "height": 1024 + "width": 512, + "height": 512 } }, - "qwen_2512_cobalt_backdrop_repair": { - "associationSha256": "1474a781dc44dff1bf598b974c0071b0b371311c2971b81f3cd7d68eaf327f25", - "backendSourceFingerprint": "sha256:backend-source-v1:43f2ed10792fc6167b963166287cf7d5a0429afa26029e6455b0418e2123be86", - "backendContractFingerprint": "sha256:backend-contract-v1:e7a7aa3acbdedd686fa7e7a9d4bcc39c1709ba1fec38f047d63ff83558a85c18", - "templateRevisionHash": "9448d9e6aed3bf64c4ada3bf63c282f7cbc03c8e6a5ade076450af1d21a9b800", - "capturedAt": "2026-11-23T23:28:40.451Z", + "sd15_pag_cobalt_studio_repair": { + "associationSha256": "395e41a6da16e9f1a31323b91390e4578428f3d0ea12054b59378709d32a9c52", + "backendSourceFingerprint": "sha256:backend-source-v1:1f2f7e00ce4a500ba52d5b729f43d4321af6f931125a3f266f307cf80038c12e", + "backendContractFingerprint": "sha256:backend-contract-v1:61201b43ea68d3fd347fbc374e292b5839be28f908b473bcb69f5ec1f8b87736", + "templateRevisionHash": "8373d87ab42e130142a163e3c60733f3f2511b7a77ffad1d9129607bcfba2562", + "capturedAt": "2026-11-23T14:32:05.292Z", "outputExtension": "webp", "outputSize": { - "width": 1328, - "height": 1328 + "width": 512, + "height": 512 }, "inputSize": { - "width": 1328, - "height": 1328 + "width": 512, + "height": 512 } }, - "qwen_bookshop_gouache": { - "associationSha256": "0dd72873432e400ed10ad9e3015bd721314058064f9c2d662b483aee40b65228", - "backendSourceFingerprint": "sha256:backend-source-v1:b29a5b0d317aaa781ae2a5205b46b518eea5a3d68a214eb0968dba4ac0660af7", - "backendContractFingerprint": "sha256:backend-contract-v1:315617df789a8a5f57426692318e197c13786098718305edd1927471b5b9c194", - "templateRevisionHash": "3163da25258525f8cb2c8a71b64a89e5445424ed1ad0a8b44b7321aafceb8175", - "capturedAt": "2026-11-25T03:40:38.530Z", + "sd15_pag_control_wall_repair": { + "associationSha256": "c685ec23f4be771c0746d40831f6b768525d7f12f3805282bb8e6d1fe32a3ba3", + "backendSourceFingerprint": "sha256:backend-source-v1:fe1a57b8e352eb66a1a26ebbff5865aaafcf5d55326c4bbcbaf2132ec75f54a8", + "backendContractFingerprint": "sha256:backend-contract-v1:7271d6dfcd46a677217edf40c568c3f5e9ae300200f76976e0cf18fd9b9f2508", + "templateRevisionHash": "155adb3c21e9aacbf62ac042d0e2d3b5ba9987331edd79dcff446b6053438a98", + "primaryModelRepo": "stable-diffusion-v1-5/stable-diffusion-v1-5", + "capturedAt": "2026-11-23T15:28:49.418Z", "outputExtension": "webp", "outputSize": { - "width": 1328, - "height": 1328 + "width": 512, + "height": 512 }, "inputSize": { - "width": 1024, - "height": 1024 - }, - "beforeExtension": "webp" + "width": 512, + "height": 512 + } }, - "qwen_cobalt_on_charcoal_slate": { - "associationSha256": "ad751a95aed80d67785d09de3fbbd0aeede1cac631dd5b8934e106a90a145450", - "backendSourceFingerprint": "sha256:backend-source-v1:e3aea8f8d102572ad10fdd0700f0c42d92061e864ede89777efcd6a3269770a8", - "backendContractFingerprint": "sha256:backend-contract-v1:315617df789a8a5f57426692318e197c13786098718305edd1927471b5b9c194", - "templateRevisionHash": "335c41c4fab432f8ee590dc902ae7d63de98f46464642e1533a3479d339348df", - "capturedAt": "2026-11-23T21:05:09.116Z", + "sd15_pag_mountain_lake_watercolor": { + "associationSha256": "fbe3707bb87008593c1bc4ec367915fa2d558aa9ba9581f94dca839dabe5117b", + "backendSourceFingerprint": "sha256:backend-source-v1:3b073e3f6f5e9489e06116f277ee4a9e878b8f0c6258efc93c60be9a04513cb5", + "backendContractFingerprint": "sha256:backend-contract-v1:bd364fcd29020d51bb61f5f9bf320cf0bf562e718c645c21ffac8ed5a47b740d", + "templateRevisionHash": "6de709bbcfb3ed6e061541584be28f5b7ed05e1170dcdaa69e2deb4fee822154", + "capturedAt": "2026-11-23T20:28:31.760Z", "outputExtension": "webp", "outputSize": { "width": 1024, @@ -929,12 +1177,13 @@ "height": 1024 } }, - "sdxl_pag_cobalt_wall": { - "associationSha256": "f16545643b3604b92e3e40e2d6de39f1df72ef08e1aa17e41249fde90c6c2c83", - "backendSourceFingerprint": "sha256:backend-source-v1:2faeaaa03b7902a03df5cd0cea38129b7419f6d844125c0ca7e29ccfaf635290", - "backendContractFingerprint": "sha256:backend-contract-v1:61201b43ea68d3fd347fbc374e292b5839be28f908b473bcb69f5ec1f8b87736", - "templateRevisionHash": "b95bd1828ace6db13d5ea54c01f8e9449bfcd73552ae371dcb52ce1838ecad8d", - "capturedAt": "2026-11-25T03:24:43.819Z", + "sdxl_canny_adapter_glass_study": { + "associationSha256": "f05c0bb40aaad59d8bafc8f3efe1de4be8e3ebc1cec9b0607dde8902a78c4123", + "backendSourceFingerprint": "sha256:backend-source-v1:371fd754663a95b1b06900df9a838042048466464b4bd5cfa7033c1b6eebe0e3", + "backendContractFingerprint": "sha256:backend-contract-v1:ad16452bc59ad56fa75df0e9f2f3b913f28233c906d4e37c4518fbc978d47953", + "templateRevisionHash": "eef6570d0a2241aa0a9ff68b200c59591fc6497f43885fba151138ae56517968", + "primaryModelRepo": "stabilityai/stable-diffusion-xl-base-1.0", + "capturedAt": "2026-11-23T14:45:54.554Z", "outputExtension": "webp", "outputSize": { "width": 1024, @@ -945,28 +1194,12 @@ "height": 1024 } }, - "zimage_rocky_glacial_shores": { - "associationSha256": "a2a9a5fe3791f89f3f06c40d7ebd79266840566dc1967e90e7244fc7675f89ce", - "backendSourceFingerprint": "sha256:backend-source-v1:e3aea8f8d102572ad10fdd0700f0c42d92061e864ede89777efcd6a3269770a8", - "backendContractFingerprint": "sha256:backend-contract-v1:06f986600338dc08fb5d1e639bfad55384f5b15ca0c97c2aeb7ed42a8c245594", - "templateRevisionHash": "67bc5216f976bce75a6793c5eb33181b777828c34fb7e0573d31073d2ad42bc9", - "capturedAt": "2026-11-23T20:16:17.605Z", - "outputExtension": "webp", - "outputSize": { - "width": 1344, - "height": 768 - }, - "inputSize": { - "width": 832, - "height": 768 - } - }, - "zimage_seamless_cobalt_backdrop": { - "associationSha256": "d218b50b2de79767fb1980054d7cd2be953e2cc59936c73eebd725b0a69312ea", - "backendSourceFingerprint": "sha256:backend-source-v1:e3aea8f8d102572ad10fdd0700f0c42d92061e864ede89777efcd6a3269770a8", - "backendContractFingerprint": "sha256:backend-contract-v1:e7a7aa3acbdedd686fa7e7a9d4bcc39c1709ba1fec38f047d63ff83558a85c18", - "templateRevisionHash": "2a72cfcaddfa6e69098ca7feceef620a98bc50441abfa93f509c0a18711de478", - "capturedAt": "2026-11-23T18:07:24.639Z", + "sdxl_clear_cobalt_backdrop": { + "associationSha256": "521b7a02cb3320f0c9518529323ccd9f545913a181851da3c425bd5c06dc7588", + "backendSourceFingerprint": "sha256:backend-source-v1:a7a074387d21c2a016af41b7de9d090fd6377b8efe388047bc50201779908464", + "backendContractFingerprint": "sha256:backend-contract-v1:61201b43ea68d3fd347fbc374e292b5839be28f908b473bcb69f5ec1f8b87736", + "templateRevisionHash": "5ac53251bbc44c8b3eb62ab06fba702e275ebc7340348f36fb20a055d36b3573", + "capturedAt": "2026-11-24T12:07:41.410Z", "outputExtension": "webp", "outputSize": { "width": 1024, @@ -977,13 +1210,13 @@ "height": 1024 } }, - "flux_canny_clean_backdrop": { - "associationSha256": "9f9e09e1d0032216f1b497f611226193b6a567b03e139d3f86ff019c089d3e0e", - "backendSourceFingerprint": "sha256:backend-source-v1:585997dc1146ec6effb20c260272babc01713ecdea4f78a0872c12ef2568ef83", - "backendContractFingerprint": "sha256:backend-contract-v1:d6613341ff1a983e0a3c6d3c8f0efef39c5c1ec3e109197f6466cfd72a3f6f6e", - "templateRevisionHash": "ddec004faf0dea8ab0683f015a22350f6086d28d6b41ecc57f2c0abf81ca1755", - "primaryModelRepo": "black-forest-labs/FLUX.1-Canny-dev", - "capturedAt": "2026-11-24T14:06:06.057Z", + "sdxl_control_golden_boathouse": { + "associationSha256": "3eb5289566ee4910568ed91a92fa2aced83d4a2eeef6089225287e1c8a97d672", + "backendSourceFingerprint": "sha256:backend-source-v1:2faeaaa03b7902a03df5cd0cea38129b7419f6d844125c0ca7e29ccfaf635290", + "backendContractFingerprint": "sha256:backend-contract-v1:b5b17d569852e051bdac1d2b3e08b4753392cadd39a1277f893bdf34f19490c5", + "templateRevisionHash": "94724166ff9512b26bca310deb3e9d2a16f88116cc157e42694d1a459bfc06cd", + "primaryModelRepo": "stabilityai/stable-diffusion-xl-base-1.0", + "capturedAt": "2026-11-25T04:34:53.900Z", "outputExtension": "webp", "outputSize": { "width": 1024, @@ -994,13 +1227,13 @@ "height": 1024 } }, - "flux_depth_marine_bow_repair": { - "associationSha256": "7dd77337f388b8353d6186bc76e39affbe954d4cef4f563285ec0d1a95c606f5", - "backendSourceFingerprint": "sha256:backend-source-v1:585997dc1146ec6effb20c260272babc01713ecdea4f78a0872c12ef2568ef83", - "backendContractFingerprint": "sha256:backend-contract-v1:d6613341ff1a983e0a3c6d3c8f0efef39c5c1ec3e109197f6466cfd72a3f6f6e", - "templateRevisionHash": "c36171bcdbd3076f271fb33743708207b8aeb0f4bfb68be30f7ee7a0239b0869", - "primaryModelRepo": "black-forest-labs/FLUX.1-Depth-dev", - "capturedAt": "2026-11-24T14:25:47.349Z", + "sdxl_control_inpaint_warm_plaster": { + "associationSha256": "a164aa1acb01ff7bb77ec43565bd17ed7c822f8331eeb24516fa58095cd3ecbd", + "backendSourceFingerprint": "sha256:backend-source-v1:2faeaaa03b7902a03df5cd0cea38129b7419f6d844125c0ca7e29ccfaf635290", + "backendContractFingerprint": "sha256:backend-contract-v1:7271d6dfcd46a677217edf40c568c3f5e9ae300200f76976e0cf18fd9b9f2508", + "templateRevisionHash": "7d840698c480d52e5a864d50fcdbe6528680a9d0453e5dc501d76ac89c0991ef", + "primaryModelRepo": "stabilityai/stable-diffusion-xl-base-1.0", + "capturedAt": "2026-11-25T00:04:32.014Z", "outputExtension": "webp", "outputSize": { "width": 1024, @@ -1009,15 +1242,15 @@ "inputSize": { "width": 1024, "height": 1024 - }, - "beforeExtension": "webp" + } }, - "joy_plus_terracotta_on_limestone": { - "associationSha256": "c965dba84f8d3714ea44c11469455a5fbcdf11bbae44717a0e5a20b322ed67d9", - "backendSourceFingerprint": "sha256:backend-source-v1:585997dc1146ec6effb20c260272babc01713ecdea4f78a0872c12ef2568ef83", - "backendContractFingerprint": "sha256:backend-contract-v1:315617df789a8a5f57426692318e197c13786098718305edd1927471b5b9c194", - "templateRevisionHash": "2250434e38d29a0c2d27808d6f713bf75965dc3f5ade4a033a11d194ecd687b9", - "capturedAt": "2026-11-24T05:23:27.411Z", + "sdxl_controlnet_glass_study_on_slate": { + "associationSha256": "290aae18b88e53f187a4818898017c3e685032471209ea970ee9f9e675f198bb", + "backendSourceFingerprint": "sha256:backend-source-v1:371fd754663a95b1b06900df9a838042048466464b4bd5cfa7033c1b6eebe0e3", + "backendContractFingerprint": "sha256:backend-contract-v1:ad16452bc59ad56fa75df0e9f2f3b913f28233c906d4e37c4518fbc978d47953", + "templateRevisionHash": "3075b68d97eea65616a9a8fe2519154041e24ced2cd916b395c4849d26c31b71", + "primaryModelRepo": "stabilityai/stable-diffusion-xl-base-1.0", + "capturedAt": "2026-11-23T15:20:10.146Z", "outputExtension": "webp", "outputSize": { "width": 1024, @@ -1028,28 +1261,12 @@ "height": 1024 } }, - "omnigen_red_enamel_folded_linen": { - "associationSha256": "f707f2507cbcc624334064fa63248f6a8b730e72778ca9faa5736dd52f1f52d5", - "backendSourceFingerprint": "sha256:backend-source-v1:b29a5b0d317aaa781ae2a5205b46b518eea5a3d68a214eb0968dba4ac0660af7", - "backendContractFingerprint": "sha256:backend-contract-v1:315617df789a8a5f57426692318e197c13786098718305edd1927471b5b9c194", - "templateRevisionHash": "595a3209f4bfb41d4930f0368e75bab6a19602ad0eae4d44dc535efd0a059652", - "capturedAt": "2026-11-25T05:12:08.254Z", - "outputExtension": "webp", - "outputSize": { - "width": 1024, - "height": 1024 - }, - "inputSize": { - "width": 384, - "height": 384 - } - }, - "qwen_2511_terracotta_material_transfer": { - "associationSha256": "b55dc0109b93fcc6b1af82016d5e61d0de0c968c9aead54e3699e9b6d3d2e275", - "backendSourceFingerprint": "sha256:backend-source-v1:e3aea8f8d102572ad10fdd0700f0c42d92061e864ede89777efcd6a3269770a8", - "backendContractFingerprint": "sha256:backend-contract-v1:315617df789a8a5f57426692318e197c13786098718305edd1927471b5b9c194", - "templateRevisionHash": "46a74671317b1b01f4ee5c7531e4d9fa32b8ba386bc9ba3321632f0168515b13", - "capturedAt": "2026-11-23T20:47:31.989Z", + "sdxl_pag_cobalt_wall": { + "associationSha256": "f16545643b3604b92e3e40e2d6de39f1df72ef08e1aa17e41249fde90c6c2c83", + "backendSourceFingerprint": "sha256:backend-source-v1:2faeaaa03b7902a03df5cd0cea38129b7419f6d844125c0ca7e29ccfaf635290", + "backendContractFingerprint": "sha256:backend-contract-v1:61201b43ea68d3fd347fbc374e292b5839be28f908b473bcb69f5ec1f8b87736", + "templateRevisionHash": "b95bd1828ace6db13d5ea54c01f8e9449bfcd73552ae371dcb52ce1838ecad8d", + "capturedAt": "2026-11-25T03:24:43.819Z", "outputExtension": "webp", "outputSize": { "width": 1024, @@ -1059,66 +1276,15 @@ "width": 1024, "height": 1024 } - }, - "sd15_control_cobalt_handmade_paper": { - "associationSha256": "f08c694ec651b0c38518cf435ce5140627d14b39074551df6ab190fd8e576961", - "backendSourceFingerprint": "sha256:backend-source-v1:3227569ff822090d00a80a3a88213d76d5ca43092d2918cec2494962457865a5", - "backendContractFingerprint": "sha256:backend-contract-v1:b5b17d569852e051bdac1d2b3e08b4753392cadd39a1277f893bdf34f19490c5", - "templateRevisionHash": "fee63ff957b7394a6472d76a9f662abd1d86193d12ee6c0ab2cf6c77cf1e2b50", - "primaryModelRepo": "stable-diffusion-v1-5/stable-diffusion-v1-5", - "capturedAt": "2026-11-23T18:36:20.247Z", - "outputExtension": "webp", - "outputSize": { - "width": 512, - "height": 512 - }, - "inputSize": { - "width": 512, - "height": 512 - } - }, - "sd15_control_cobalt_studio_wall_repair": { - "associationSha256": "a25d434141bad5cc3deda9b08cb19a5954e772c32cf5f3a87517cd8142c61e89", - "backendSourceFingerprint": "sha256:backend-source-v1:fe1a57b8e352eb66a1a26ebbff5865aaafcf5d55326c4bbcbaf2132ec75f54a8", - "backendContractFingerprint": "sha256:backend-contract-v1:7271d6dfcd46a677217edf40c568c3f5e9ae300200f76976e0cf18fd9b9f2508", - "templateRevisionHash": "871cffe6c8b434f4d3afa1f65009582862b565313d180b56d5a61eedd5fd1aa8", - "primaryModelRepo": "stable-diffusion-v1-5/stable-diffusion-v1-5", - "capturedAt": "2026-11-23T15:27:55.645Z", - "outputExtension": "webp", - "outputSize": { - "width": 512, - "height": 512 - }, - "inputSize": { - "width": 512, - "height": 512 - } - }, - "sd15_pag_control_wall_repair": { - "associationSha256": "c685ec23f4be771c0746d40831f6b768525d7f12f3805282bb8e6d1fe32a3ba3", - "backendSourceFingerprint": "sha256:backend-source-v1:fe1a57b8e352eb66a1a26ebbff5865aaafcf5d55326c4bbcbaf2132ec75f54a8", - "backendContractFingerprint": "sha256:backend-contract-v1:7271d6dfcd46a677217edf40c568c3f5e9ae300200f76976e0cf18fd9b9f2508", - "templateRevisionHash": "155adb3c21e9aacbf62ac042d0e2d3b5ba9987331edd79dcff446b6053438a98", - "primaryModelRepo": "stable-diffusion-v1-5/stable-diffusion-v1-5", - "capturedAt": "2026-11-23T15:28:49.418Z", - "outputExtension": "webp", - "outputSize": { - "width": 512, - "height": 512 - }, - "inputSize": { - "width": 512, - "height": 512 - } - }, - "sdxl_control_golden_boathouse": { - "associationSha256": "3eb5289566ee4910568ed91a92fa2aced83d4a2eeef6089225287e1c8a97d672", - "backendSourceFingerprint": "sha256:backend-source-v1:2faeaaa03b7902a03df5cd0cea38129b7419f6d844125c0ca7e29ccfaf635290", - "backendContractFingerprint": "sha256:backend-contract-v1:b5b17d569852e051bdac1d2b3e08b4753392cadd39a1277f893bdf34f19490c5", - "templateRevisionHash": "94724166ff9512b26bca310deb3e9d2a16f88116cc157e42694d1a459bfc06cd", - "primaryModelRepo": "stabilityai/stable-diffusion-xl-base-1.0", - "capturedAt": "2026-11-25T04:34:53.900Z", + }, + "sdxl_pag_lighthouse_in_graphite": { + "associationSha256": "0ae8965c8710db37b8834e98f911ee3c86561974abea4f8cb7445fcd4011dd13", + "backendSourceFingerprint": "sha256:backend-source-v1:2faeaaa03b7902a03df5cd0cea38129b7419f6d844125c0ca7e29ccfaf635290", + "backendContractFingerprint": "sha256:backend-contract-v1:bd364fcd29020d51bb61f5f9bf320cf0bf562e718c645c21ffac8ed5a47b740d", + "templateRevisionHash": "6eb3e04961a9389794619d6ae2342a296287039deb1d08715a785409b279cba3", + "capturedAt": "2026-11-25T11:05:22.328Z", "outputExtension": "webp", + "primaryModelRepo": "stabilityai/stable-diffusion-xl-base-1.0", "outputSize": { "width": 1024, "height": 1024 @@ -1126,7 +1292,8 @@ "inputSize": { "width": 1024, "height": 1024 - } + }, + "beforeExtension": "png" }, "sdxl_pag_snow_cabin": { "associationSha256": "fff0a575997fa3709d36a1f008b335d9f0c716a99dcdaeebd0831b8e1ef7d37f", @@ -1145,119 +1312,59 @@ "height": 1024 } }, - "allegro_basalt_shore_at_dawn": { - "associationSha256": "5e5cda590b1d1145aff88977cb259229935570bdc8f7cbf795897b78dbb67497", + "sdxl_pag_two_tier_cobalt_glass": { + "associationSha256": "0de1c75fa0d19923cbf974dc4b7286d5694e152814287225c70f7e15ff5c3e5f", "backendSourceFingerprint": "sha256:backend-source-v1:b29a5b0d317aaa781ae2a5205b46b518eea5a3d68a214eb0968dba4ac0660af7", - "backendContractFingerprint": "sha256:backend-contract-v1:40a4eb8d6275c83725f57c4d3499b8d12c00f8cf6caffc2d07006e74d24ab820", - "templateRevisionHash": "5e7fa20679a68bf73600bf9fcb2bb07fffed7e65d5b01c2cd6276b3d98e8a86d", - "capturedAt": "2026-11-25T01:26:09.329Z", - "outputExtension": "mp4", - "primaryModelRepo": "rhymes-ai/Allegro", - "outputSize": { - "width": 1280, - "height": 720 - } - }, - "animatediff_candlelight_behind_amber_glass": { - "associationSha256": "12d558aee02588ef4df40667de428235453ed0c94dbf4b215d2d5e2de219be1d", - "backendSourceFingerprint": "sha256:backend-source-v1:2faeaaa03b7902a03df5cd0cea38129b7419f6d844125c0ca7e29ccfaf635290", - "backendContractFingerprint": "sha256:backend-contract-v1:32e6e74ce3a29d61ae997904d9d4a77259db5c3bd819dbfc15d312482a356f92", - "templateRevisionHash": "fc3355bbe64d94141436cda1cb7c173be5490cfeeeebacd8609ceee18d5e2109", - "capturedAt": "2026-11-25T02:54:46.523Z", - "outputExtension": "mp4", - "primaryModelRepo": "stable-diffusion-v1-5/stable-diffusion-v1-5", - "outputSize": { - "width": 512, - "height": 512 - } - }, - "animatediff_ivory_balloon_blue_mountains": { - "associationSha256": "4e75c68e43272d1fed65a290aca6b577fbb1fb94d6b04506fc516e550ff710e8", - "backendSourceFingerprint": "sha256:backend-source-v1:a107f0838ce3b1be98034123eb3bf3393928a09c5ad7e3c133687d5a7c58be57", - "backendContractFingerprint": "sha256:backend-contract-v1:03dea74157ff4e06596b9bd35e605c820dfee2fa4b4bac1772cbd948108d8ffd", - "templateRevisionHash": "4b4d081ecba0edc45452b914be1e511106c370500951c08bac57264a08abf8c8", - "capturedAt": "2026-11-24T07:09:23.646Z", - "outputExtension": "mp4", - "primaryModelRepo": "stable-diffusion-v1-5/stable-diffusion-v1-5", - "outputSize": { - "width": 512, - "height": 512 - } - }, - "animatediff_red_tram_in_watercolor": { - "associationSha256": "2bf3ec1e879a42b0619c5b67b57c237c3f3646b8615eae16b71ea16a4db83f9a", - "backendSourceFingerprint": "sha256:backend-source-v1:2beaa95aae8558e64cf99f056b011d00c0653dc7d03987cd67c8ed7e774c770e", - "backendContractFingerprint": "sha256:backend-contract-v1:e1bf29e107307b73ad8153eff36b54b42bdf5622243915dbdd7c94e069726538", - "templateRevisionHash": "79480aa4c678fa413f77fa4c1c063f243438f1e6bd4573f90fc7f45c01e6af45", - "capturedAt": "2026-11-23T23:28:15.943Z", - "outputExtension": "mp4", - "primaryModelRepo": "stable-diffusion-v1-5/stable-diffusion-v1-5", + "backendContractFingerprint": "sha256:backend-contract-v1:2640de4cce56db16229ada283eb8ff2c49cd39d7f015dd1e08ae601b9c9eac8a", + "templateRevisionHash": "09f0d98df7f8807fd95a733b904b52dde05fd41d82f68c31369c3ff7c434120b", + "capturedAt": "2026-11-25T14:39:45.774Z", + "outputExtension": "webp", + "primaryModelRepo": "stabilityai/stable-diffusion-xl-base-1.0", "outputSize": { - "width": 512, - "height": 512 + "width": 1024, + "height": 1024 }, "inputSize": { - "width": 512, - "height": 512 + "width": 1024, + "height": 1024 }, - "beforeExtension": "mp4" + "beforeExtension": "png" }, - "animatediff_red_tram_through_snow": { - "associationSha256": "641ef31c766deed113729f1e3d0fcd589e44986230fa3fe633a461c44a3bddce", - "backendSourceFingerprint": "sha256:backend-source-v1:b4a707d462a5f13dae1660c1665ed5195f45ed4ffbfcd7d80de879cd881aea86", - "backendContractFingerprint": "sha256:backend-contract-v1:d12f2497d460e249e197c1eb12b40f2cfd70311a95e91a943f37a1ffffbcd157", - "templateRevisionHash": "95bf2ea59940c6b96e479bc726ca727255822c37d0dc4ed19b4d3b37622520e7", - "capturedAt": "2026-11-23T21:59:42.414Z", - "outputExtension": "mp4", - "primaryModelRepo": "stable-diffusion-v1-5/stable-diffusion-v1-5", + "sdxl_pix2pix_pale_amber_glass": { + "associationSha256": "e0d2d7d05a9109a8ae527c819ebaffca93dec272c54efcfb0b05e41a144d7bfb", + "backendSourceFingerprint": "sha256:backend-source-v1:55da4a68212923ee8a67e70754f46193288e210bce08ab4ae8c06834a7a76995", + "backendContractFingerprint": "sha256:backend-contract-v1:bd364fcd29020d51bb61f5f9bf320cf0bf562e718c645c21ffac8ed5a47b740d", + "templateRevisionHash": "897fb59d568ceba3ef8d85cf1141f79002522b111dbc6ffa67ad51a9acf88495", + "capturedAt": "2026-11-23T16:05:26.964Z", + "outputExtension": "webp", "outputSize": { - "width": 512, - "height": 512 + "width": 768, + "height": 768 }, "inputSize": { - "width": 512, - "height": 512 - }, - "beforeExtension": "mp4" - }, - "mochi_surf_over_dark_pebbles": { - "associationSha256": "3c227772597bc28d6eb90f63726ecbe3be317f7cb99e85742dc73ce0fc6918fd", - "backendSourceFingerprint": "sha256:backend-source-v1:b29a5b0d317aaa781ae2a5205b46b518eea5a3d68a214eb0968dba4ac0660af7", - "backendContractFingerprint": "sha256:backend-contract-v1:40a4eb8d6275c83725f57c4d3499b8d12c00f8cf6caffc2d07006e74d24ab820", - "templateRevisionHash": "c0a8a85ce8101d4ffcf0a8ab34a46b49b41d38e667a896e8b51f5016bb536b62", - "capturedAt": "2026-11-25T02:21:21.989Z", - "outputExtension": "mp4", - "primaryModelRepo": "genmo/mochi-1-preview", - "outputSize": { - "width": 848, - "height": 480 + "width": 768, + "height": 768 } }, - "sana_i2v_blue_hour_above_rice_terraces": { - "associationSha256": "9adb3ab26d3d8f41cf24b8e1b77dc837fcceff46b1b7a63524717cabc0131901", - "backendSourceFingerprint": "sha256:backend-source-v1:b29a5b0d317aaa781ae2a5205b46b518eea5a3d68a214eb0968dba4ac0660af7", - "backendContractFingerprint": "sha256:backend-contract-v1:d68ff3c7d7b2d190e68d6f148834ae971638c23a9d31086a3848874658f37da2", - "templateRevisionHash": "e6ce9b989e565a3504ccb21781d8522fd3bd3d17715c008ae315b068f7773b1c", - "capturedAt": "2026-11-25T01:58:17.904Z", - "outputExtension": "mp4", - "primaryModelRepo": "Efficient-Large-Model/SANA-Video_2B_480p_diffusers", + "sdxl_turbo_orange_caps": { + "associationSha256": "85cf071e354281c57ed922fc7a4a112c34ebe994be2d2f52221f23bf12865b34", + "backendSourceFingerprint": "sha256:backend-source-v1:057b165c6ef6225461649a47077562dffad098a2d37d639a13bf0e73088d79ab", + "backendContractFingerprint": "sha256:backend-contract-v1:300f2fb801e65ef8a0355d217f3f89e59d11e38f976af5a86ba41212d30216fd", + "templateRevisionHash": "a8bae14e8dc50c3969cba99c45be96d5ffbbca1fa12824640f5c3360bcc4427c", + "capturedAt": "2026-11-23T14:40:52.201Z", + "outputExtension": "webp", "outputSize": { - "width": 832, - "height": 480 + "width": 512, + "height": 512 } }, - "sana_video_water_terraces_before_sunrise": { - "associationSha256": "5b12ebe17da6302823c567e4f35e5dfb93aa2f913099f7bf4bda745b28c5d2de", - "backendSourceFingerprint": "sha256:backend-source-v1:b29a5b0d317aaa781ae2a5205b46b518eea5a3d68a214eb0968dba4ac0660af7", - "backendContractFingerprint": "sha256:backend-contract-v1:40a4eb8d6275c83725f57c4d3499b8d12c00f8cf6caffc2d07006e74d24ab820", - "templateRevisionHash": "e5d7bb4cd5fa1b68f4840fc0746bea2aa963c1d8183be0985a66b0789be9f1d1", - "capturedAt": "2026-11-25T01:39:27.365Z", - "outputExtension": "mp4", - "primaryModelRepo": "Efficient-Large-Model/SANA-Video_2B_480p_diffusers", - "outputSize": { - "width": 832, - "height": 480 - } + "smolvlm_red_triangle": { + "associationSha256": "a686ff98e677c53f203c5c86a7cca856c8e2103ebe80621679de07c58b4c596c", + "backendSourceFingerprint": "sha256:backend-source-v1:12feeb1b7586129e38f183c3c391555c88004534d762ea8676efe9dc334540d9", + "backendContractFingerprint": "sha256:backend-contract-v1:5dcc04106f1021d0ef9128d360e91a97236cc538ea7426b994967a459307a4fc", + "templateRevisionHash": "7c5cc75ca115a437ec6a7ebab59030ef5c5ea14c74735bae5ca78dff427fb0e2", + "capturedAt": "2026-11-23T18:58:19.689Z", + "outputExtension": "json" }, "spandrel_tram_shelter_video_2x": { "associationSha256": "5f057274d8352aa72658f9cd1b3de89f72f11501b132d9f9b608a756b72f6efa", @@ -1277,6 +1384,30 @@ }, "beforeExtension": "mp4" }, + "the_glasshouse_seed_tray": { + "associationSha256": "e08a25a88a52011adcb645ed75fe1904eec042529005c19e11552d90210f3f03", + "backendSourceFingerprint": "sha256:backend-source-v1:057b165c6ef6225461649a47077562dffad098a2d37d639a13bf0e73088d79ab", + "backendContractFingerprint": "sha256:backend-contract-v1:300f2fb801e65ef8a0355d217f3f89e59d11e38f976af5a86ba41212d30216fd", + "templateRevisionHash": "f30bccf14d658fa6222cec9c7458ec74fec76940dc1dac07ed87e19d93b3738c", + "capturedAt": "2026-11-23T14:16:46.399Z", + "outputExtension": "webp", + "outputSize": { + "width": 1024, + "height": 1024 + } + }, + "wan_a14b_cloudbreak_over_the_ridges": { + "associationSha256": "2fdbcaf34bd1e2a3d31edf4196c3cf67c590053f1ba99eb75a2e001bd73d6384", + "backendSourceFingerprint": "sha256:backend-source-v1:b29a5b0d317aaa781ae2a5205b46b518eea5a3d68a214eb0968dba4ac0660af7", + "backendContractFingerprint": "sha256:backend-contract-v1:40a4eb8d6275c83725f57c4d3499b8d12c00f8cf6caffc2d07006e74d24ab820", + "templateRevisionHash": "2fe28c05a3adcb92031d2e5a369cf6be41990463644f08e5440bb998b32bc1fd", + "capturedAt": "2026-11-24T23:06:15.432Z", + "outputExtension": "mp4", + "outputSize": { + "width": 768, + "height": 512 + } + }, "wan_a14b_wind_across_pond": { "associationSha256": "d355616574bee93602a920b565517d7d0170cd8112eebc6cbd573d7e9ea4db37", "backendSourceFingerprint": "sha256:backend-source-v1:ce7ac712b4620d0e8efb35022a558a551e2d4ae6ef20b844744c4d674527b0b3", @@ -1290,6 +1421,44 @@ "height": 512 } }, + "wan_animate_glasshouse_keeper": { + "associationSha256": "df20117453015264b552c44bf2beae6ff08803d9e805537b1b20ec0f65c675db", + "backendSourceFingerprint": "sha256:backend-source-v1:b29a5b0d317aaa781ae2a5205b46b518eea5a3d68a214eb0968dba4ac0660af7", + "backendContractFingerprint": "sha256:backend-contract-v1:6b262add8ba2463e96d9d3a9b0e92cd5a745badc3e8a985bc4ff1ac29483a2bd", + "templateRevisionHash": "c709baafb5f990b9f9ca029bfc04ad15d0006f2c84c85759f6a18d68a0cc565d", + "capturedAt": "2026-11-25T11:54:29.880Z", + "outputExtension": "mp4", + "primaryModelRepo": "Wan-AI/Wan2.2-Animate-14B-Diffusers", + "outputSize": { + "width": 768, + "height": 512 + } + }, + "wan_animate_signal_through_the_rain": { + "associationSha256": "899e08f1fbe9754bd60b27c41ea1ae48f7533366d21f5a2834a2c7d73c0bc33d", + "backendSourceFingerprint": "sha256:backend-source-v1:b29a5b0d317aaa781ae2a5205b46b518eea5a3d68a214eb0968dba4ac0660af7", + "backendContractFingerprint": "sha256:backend-contract-v1:2d72ad297f1912c832a1a945e929a03af0e9de5efe3359a8759aae18db4bc2b5", + "templateRevisionHash": "3dd570d231c6fb4075f50264809e570747f00ed8f85d367ee494c7d7cd5fe4bf", + "capturedAt": "2026-11-25T09:03:45.693Z", + "outputExtension": "mp4", + "primaryModelRepo": "Wan-AI/Wan2.2-Animate-14B-Diffusers", + "outputSize": { + "width": 768, + "height": 512 + } + }, + "wan_flf_blue_hour_at_the_tram_shelter": { + "associationSha256": "386e6871df161c57a2ea8c632cb3d58873a0a450e8eac14d3fa27a2974aae9ab", + "backendSourceFingerprint": "sha256:backend-source-v1:b29a5b0d317aaa781ae2a5205b46b518eea5a3d68a214eb0968dba4ac0660af7", + "backendContractFingerprint": "sha256:backend-contract-v1:288f2abd0b142ec1f2081bf6d3dbf71ba988833662040e7e81688c4524cf0516", + "templateRevisionHash": "719322718cef9254b24004759f2eac08a4302ea27c86cbe538782207d29389f6", + "capturedAt": "2026-11-24T21:03:04.380Z", + "outputExtension": "mp4", + "outputSize": { + "width": 768, + "height": 512 + } + }, "wan_ti2v_subway_musician": { "associationSha256": "cba050638b1e9245403a8bc6731b84afa6b38c3d734b9f17572d8835319d1501", "backendSourceFingerprint": "sha256:backend-source-v1:b29a5b0d317aaa781ae2a5205b46b518eea5a3d68a214eb0968dba4ac0660af7", @@ -1316,17 +1485,60 @@ "height": 960 } }, - "wan_animate_glasshouse_keeper": { - "associationSha256": "df20117453015264b552c44bf2beae6ff08803d9e805537b1b20ec0f65c675db", - "backendSourceFingerprint": "sha256:backend-source-v1:b29a5b0d317aaa781ae2a5205b46b518eea5a3d68a214eb0968dba4ac0660af7", - "backendContractFingerprint": "sha256:backend-contract-v1:6b262add8ba2463e96d9d3a9b0e92cd5a745badc3e8a985bc4ff1ac29483a2bd", - "templateRevisionHash": "c709baafb5f990b9f9ca029bfc04ad15d0006f2c84c85759f6a18d68a0cc565d", - "capturedAt": "2026-11-25T11:54:29.880Z", - "outputExtension": "mp4", - "primaryModelRepo": "Wan-AI/Wan2.2-Animate-14B-Diffusers", + "whisper_small_an_open_door": { + "associationSha256": "a6f56721c12e3ddffb35182f4b457b4af8255563e712753979b2787226a84d95", + "backendSourceFingerprint": "sha256:backend-source-v1:3227569ff822090d00a80a3a88213d76d5ca43092d2918cec2494962457865a5", + "backendContractFingerprint": "sha256:backend-contract-v1:89ce835969abfae21cb4c27992f38f895d98a9cebbce248d62123a5a8aa1fc28", + "templateRevisionHash": "cfc95f86cf49288a5b851e7e042558b50bcd091f1a69cfabdf961cb204fde1ac", + "capturedAt": "2026-11-23T18:16:55.558Z", + "outputExtension": "json" + }, + "zimage_golden_amber_glass": { + "associationSha256": "238b088d3b9aaad1955b07a3291cf8875a928136444b9642114527b3d803bc38", + "backendSourceFingerprint": "sha256:backend-source-v1:e3aea8f8d102572ad10fdd0700f0c42d92061e864ede89777efcd6a3269770a8", + "backendContractFingerprint": "sha256:backend-contract-v1:315617df789a8a5f57426692318e197c13786098718305edd1927471b5b9c194", + "templateRevisionHash": "303a0b1b64a2e1234aeca85941a07eea2157707c8436442a5cf00aedd68c6d97", + "capturedAt": "2026-11-23T17:46:24.489Z", + "outputExtension": "webp", "outputSize": { + "width": 640, + "height": 640 + }, + "inputSize": { "width": 768, - "height": 512 + "height": 768 + } + }, + "zimage_rocky_glacial_shores": { + "associationSha256": "a2a9a5fe3791f89f3f06c40d7ebd79266840566dc1967e90e7244fc7675f89ce", + "backendSourceFingerprint": "sha256:backend-source-v1:e3aea8f8d102572ad10fdd0700f0c42d92061e864ede89777efcd6a3269770a8", + "backendContractFingerprint": "sha256:backend-contract-v1:06f986600338dc08fb5d1e639bfad55384f5b15ca0c97c2aeb7ed42a8c245594", + "templateRevisionHash": "67bc5216f976bce75a6793c5eb33181b777828c34fb7e0573d31073d2ad42bc9", + "capturedAt": "2026-11-23T20:16:17.605Z", + "outputExtension": "webp", + "outputSize": { + "width": 1344, + "height": 768 + }, + "inputSize": { + "width": 832, + "height": 768 + } + }, + "zimage_seamless_cobalt_backdrop": { + "associationSha256": "d218b50b2de79767fb1980054d7cd2be953e2cc59936c73eebd725b0a69312ea", + "backendSourceFingerprint": "sha256:backend-source-v1:e3aea8f8d102572ad10fdd0700f0c42d92061e864ede89777efcd6a3269770a8", + "backendContractFingerprint": "sha256:backend-contract-v1:e7a7aa3acbdedd686fa7e7a9d4bcc39c1709ba1fec38f047d63ff83558a85c18", + "templateRevisionHash": "2a72cfcaddfa6e69098ca7feceef620a98bc50441abfa93f509c0a18711de478", + "capturedAt": "2026-11-23T18:07:24.639Z", + "outputExtension": "webp", + "outputSize": { + "width": 1024, + "height": 1024 + }, + "inputSize": { + "width": 1024, + "height": 1024 } } } diff --git a/config/retained-gallery-authoring-archives.v1.json b/config/retained-gallery-authoring-archives.v1.json index 1a85fc4a..5b57723f 100644 --- a/config/retained-gallery-authoring-archives.v1.json +++ b/config/retained-gallery-authoring-archives.v1.json @@ -1,19 +1,74 @@ { + "AllegroPipeline:text_to_video": { + "descriptorSha256": "abbadb877960f2cab04d6555a9a95475ae7db80e22d6120439456c69b098b10f", + "bytes": 4708, + "sha256": "e5a7db6c7945460600eb1f5611952369656e3be62a4f083205f0ce2cd5070aa9" + }, + "AnimateDiffControlNetPipeline:control_to_video": { + "descriptorSha256": "26cefb76bc3b60ebd26d76ccda2ce9aa79a4d2e760023662cf3d1fe868dad7bf", + "bytes": 6389, + "sha256": "2a921703f9444e937b355c4f08116029607143dd2332eb3aedaaa08ff0c5603f" + }, + "AnimateDiffPAGPipeline:text_to_video": { + "descriptorSha256": "60f21d1b1bbbf6d135ced0bd8ab0935a0c62ae95ccefd8d4df6f8bd3a1110343", + "bytes": 5325, + "sha256": "718f899d2659c6a7bbbc967abfd9042413f3853d44c08b06d913e0c6d0284365" + }, + "AnimateDiffPipeline:text_to_video": { + "descriptorSha256": "8493c1cd300b662ead386632610603cee2531eeff86668b454b314c66e175f0b", + "bytes": 5074, + "sha256": "e101fe940b9ffdf5a7f72e57a00739a687c5c9cb4ac5862d5ef5a68a7c409a5c" + }, + "AnimateDiffVideoToVideoControlNetPipeline:control_video_to_video": { + "descriptorSha256": "4f47a4a1a0244ed4b550c9e8ef4f3cfd8c2076d3f87f5ecbb583d6a8c8987b05", + "bytes": 7237, + "sha256": "b720c1515832c4984d8c8eec6a7e83f525ef9383e2d73708bc311a4619aa8456" + }, + "AnimateDiffVideoToVideoPipeline:video_to_video": { + "descriptorSha256": "b88aa5f2d7c8e012280b1d13cb812b1890dbc93ad7d14953504a7ca2bac45917", + "bytes": 5864, + "sha256": "da693cb57abb7c792b81aa90147ced2e2d127d052c20d4424dce4f9697c08293" + }, + "AnimateLCMPipeline:text_to_video": { + "descriptorSha256": "42c865106617e74f0b4f283316e1712eecfb61e8a78b1d02dfaff346ba718e20", + "bytes": 5060, + "sha256": "3af27719dbc699a711ea79d0f38fd05301c280468e0c3454231e191861ca5d24" + }, "AuraFlowPipeline:text_to_image": { "descriptorSha256": "c4ce21c85cf0412cc1e69ff59009037bbdde9d1692cff19f307d589b84fb5b1f", "bytes": 4108, "sha256": "945515d6dee658ed3cf4503b674b33d73149a091f98ecb438a01970c5c08d820" }, + "ChromaImg2ImgPipeline:edit_image": { + "descriptorSha256": "dd23974fab77ebe91e46ed5734e61a75638f10cc0ace0e54240f6afaf233c72b", + "bytes": 4609, + "sha256": "75b36f5f95e4509d3adcf65651a9b188eda71a5efe87d5a5b620dec77b6e1abe" + }, "ChromaInpaintPipeline:inpaint": { "descriptorSha256": "a85451bc142a3f5ef44cc5e8cdb1fcc0f000872241efe5bda751638d36215919", "bytes": 5060, "sha256": "466c485a4ad317122c23b4da06c89566d8a4015fd8d6dad379eab318b98219f0" }, + "ChromaInpaintPipeline:outpaint": { + "descriptorSha256": "aca4038c57ccfc738f45a28e69a99d43eaf195fd4225e973d0046e3dabb4d44c", + "bytes": 5481, + "sha256": "3ac93c353e258e81175785813fa60dda29cdc912568e507a7ffec195f79fcff5" + }, "ChromaPipeline:text_to_image": { "descriptorSha256": "bad53850d48ffdaffa0896ec019e295c349577ee86d169e1ea1da8752324a215", "bytes": 4049, "sha256": "7fd3187b78e4f1c730522dd5743e91503e17bd62e03bb133b76b4d636213ac3f" }, + "CogVideoXPipeline:text_to_video": { + "descriptorSha256": "3aab2d19bca49f839f8316f19ea75afbe4b0e401ff5a330c16f35484f43f611a", + "bytes": 4732, + "sha256": "4c24104fd8ecabb12b19fa1b978df2e5308f18fd86eb5e3388e9a39a4e1b36b4" + }, + "CogVideoXVideoToVideoPipeline:video_to_video": { + "descriptorSha256": "c4396b6f2b6b01fcdbcb5d7f370b6284be78d1979e4665a243c1e08193776e08", + "bytes": 5498, + "sha256": "0ea9626727160078f7717560d4e67272e29f5adc544cffcc5e4edde91eff93dc" + }, "CogView3PlusPipeline:text_to_image": { "descriptorSha256": "19c1e125e259b8b0e22a5bf5c03ab7c105a8302fc69b7e63c61796d7b7496744", "bytes": 4135, @@ -34,6 +89,46 @@ "bytes": 4122, "sha256": "4072211fe61effe609b205e87cc599542446e73be2a9d108b27b87f52815064c" }, + "Flux2KleinInpaintPipeline:inpaint": { + "descriptorSha256": "fdc033422ec6517632bed64a97b54322e17e329956edc239716e4fd599f2c4cd", + "bytes": 5104, + "sha256": "cea6084bec425454e3b8bd81165b83d653c56fdd362491bed9f74bec2951d175" + }, + "Flux2KleinInpaintPipeline:outpaint": { + "descriptorSha256": "b24c85edd5c183f82ce9510a6623981ef8d9ea2699ca46bc4d3917180d8294e5", + "bytes": 5530, + "sha256": "836bdca357990b56c7379e9bba751bdc6bb9616e799a11dac5eb1b1b329058c3" + }, + "FluxCannyPipeline:control_inpaint": { + "descriptorSha256": "1960eca0824640f40d86820463d58beabf4421cb9262a3f3abf93eaa2f07aaa7", + "bytes": 5690, + "sha256": "c14e618968f0b6009b27192c5a526cedf459d86a1ffbd7daf170e8cc02d6d65d" + }, + "FluxDepthPipeline:control_inpaint": { + "descriptorSha256": "568eba4ce2c06b085b22ca13a69a6651d27ba404760ea5f6fb621e14ced5df44", + "bytes": 5690, + "sha256": "3842994d2b102543f510af88fa278a455203411137e8b710e2c3c1923ac08f6d" + }, + "FluxDevPipeline:edit_image": { + "descriptorSha256": "c07e1306c0441d732e2cc24b652e2d9223ba77dd5597030b39bba3c6b271ab0c", + "bytes": 4716, + "sha256": "663044cc78ebcc99bee6508d7bf8a14a17e574d1ae02f3869e84a1d73f9aaf5f" + }, + "FluxDevPipeline:inpaint": { + "descriptorSha256": "f3a931273edeb2e41d23016dfd13d6568222cd92e21a4a52280afa814d59f384", + "bytes": 5171, + "sha256": "f764fcad0f1b501b845864674be35ca0556cd4d1c11f07ca9faefb3dc597afde" + }, + "FluxKontextInpaintPipeline:inpaint": { + "descriptorSha256": "393c69f7733fdfd3632682204dbf421cfff4578d0b86c911f4c15110c566ac90", + "bytes": 5115, + "sha256": "06176da1ff55e23460158734e24e043be4ae5230faf99918ea80929da35dbdea" + }, + "FluxKontextInpaintPipeline:outpaint": { + "descriptorSha256": "fabdf2609cbf5d838834845a08c6d12d08401d670edfc34d67a370efbf40414c", + "bytes": 5540, + "sha256": "271717782ff8d2294176173579080bf539a0ea44006c159604ba1dfe3f68bbac" + }, "GlmImagePipeline:text_to_image": { "descriptorSha256": "193b411fea187862b1af32edf24623f0cfd75a9f0d856a66b07fe99b1e562833", "bytes": 4113, @@ -79,6 +174,31 @@ "bytes": 4161, "sha256": "5a9d07fe3092ac35356d661488b4169d98799f55c17a69753572480375557629" }, + "JoyImageEditPipeline:edit_image": { + "descriptorSha256": "71b096416a43857e71643677e3288af3e75aa96312cbc24673f26ce8824ce46d", + "bytes": 4755, + "sha256": "a340892a5a3c7371b61b875dff2855751de8411913317c5565010d29621e7174" + }, + "JoyImageEditPipeline:text_to_image": { + "descriptorSha256": "655abc48262ac72c9e7cee61c90f7f72430660b5b5102716b97d4ee9730e31fa", + "bytes": 4150, + "sha256": "91f48149a549804d83375b9c26bf0cb8890091e6f8af135b2a225fae3033df75" + }, + "JoyImageEditPlusPipeline:edit_image": { + "descriptorSha256": "ec18a41cfd9d91e09bb4339e69b0669faec4a2ac968aef9d90c1a1d3b674d0e7", + "bytes": 4781, + "sha256": "ae1afab09dd44378b5274a8473c5ccef3e13f9270e7d24f12545da95416235c2" + }, + "JoyImageEditPlusPipeline:multi_image_reference_edit": { + "descriptorSha256": "7a419e8264420f38abdc18d4bf76d8ff9ec7ac21c736bf9c768477249b601d73", + "bytes": 4839, + "sha256": "024ead128a7b32c2d9c4b3e1e2d819f5aac55433c60c960e056d358ac68cf0d3" + }, + "Kandinsky3Pipeline:edit_image": { + "descriptorSha256": "441798bee62a4e76037a9bf34cb5fe4c95d3682f2144c6f2e32810aa50ad3c4b", + "bytes": 4729, + "sha256": "88d20a4d739dc85ac3079a8ed98b093b297c5379d01a9beda77fe2f3b595379f" + }, "Kandinsky3Pipeline:text_to_image": { "descriptorSha256": "41b3b13c0f66711ffa3ac065f7a990bee824fc52db69940b8f75e0f7f79bdd38", "bytes": 4089, @@ -89,6 +209,51 @@ "bytes": 4229, "sha256": "a5cb8dddeaf3f82f84025ceeded8a59c186a33e20f8cff733cbd32624e9e3a59" }, + "LattePipeline:text_to_video": { + "descriptorSha256": "b3945315f5fa033cb7721f2d5dd7a789c75fd30157aeaf4fc137074fe3cd368a", + "bytes": 4696, + "sha256": "5f28b186585dadf313bfe2c7f98ba320a0c495493d9f83521c0e68ccb263ffa0" + }, + "LongCatAudioDiTPipeline:text_to_audio": { + "descriptorSha256": "8019b9dbf5af0e8ba5c8eeed7132ec5578968ee0607309dd65327d69599a5c5d", + "bytes": 3894, + "sha256": "7512d2ef931525302161e9662c172403df5b608a374214a4a39b5bd71e014562" + }, + "LongCatImageEditPipeline:edit_image": { + "descriptorSha256": "b9f3dd382864d47e950c38650e6ec31d0e51b2453ed302c04955bfb0340785db", + "bytes": 4778, + "sha256": "288531a30b6f8d0e60a6319b69dfa3fd04d14a8bb078eb4475df09386faef9d4" + }, + "LongCatImagePipeline:text_to_image": { + "descriptorSha256": "8020bb532f9bc0fc6222c2083e81579b3c8dac7c9dd934e8d2534db7b3ae5fe1", + "bytes": 4155, + "sha256": "f2f0a9bdde30f96caf2c200be4ecbae6c3a6eef6c657707a923d13ee2dfaf2c8" + }, + "LTX2ConditionPipeline:image_to_video": { + "descriptorSha256": "be5cdbcbab18a06d596223e1372e27b6891e4ea83c1f6534831cd1281227f83c", + "bytes": 5276, + "sha256": "b0ed053979e8c25e64c79ee7ecf61dc49709624d01d839ce057ebcbeeb5fc92a" + }, + "LTX2ConditionPipeline:reference_to_video": { + "descriptorSha256": "ad1b4d998fc460f0e60c7ab6131bd155c69c96b8f891067f3e28d140961a0cd6", + "bytes": 5304, + "sha256": "23f3c235cdf4c40cc89f14dc425c9c8ce4de2fc44ba07063addd10623eb8343a" + }, + "LTX2ConditionPipeline:text_to_video": { + "descriptorSha256": "29bc54454d95ecf8dbcf8e2c63cc2642f3d22c06b396273d82b962df59d0aa8b", + "bytes": 4725, + "sha256": "35e5cda79116571b17d5465318991896c8b568d961f53b15fc13ee9f9cbc2b32" + }, + "LTX2ConditionPipeline:video_to_video": { + "descriptorSha256": "740a535f4c22c2555805e41afd0775e17982cb4352160cd7a645f40e5b078805", + "bytes": 5452, + "sha256": "bd42a53ad7113cdb0685a5092af95b7e22a8dd3fe37d899d30505c5388fb1187" + }, + "LTX2Pipeline:text_to_video": { + "descriptorSha256": "5e938a68e6a39a2bb071767f7b82ce56c442a44e513d33c414d4952c4621b17d", + "bytes": 4704, + "sha256": "a5e8eb4646ad66a06aab17db27872df48e1ebfc36a13287698f390bb228bbf26" + }, "Lumina2Pipeline:text_to_image": { "descriptorSha256": "68ec9070dfda6f4bcf5990d404e3032b9c9d0add8965753e0a162bfdd67c09f7", "bytes": 4071, @@ -99,11 +264,26 @@ "bytes": 4167, "sha256": "5767302415a0ada7fbef1fd186df344ea7204a2be2b22c2035f07e2b2088d564" }, + "MochiPipeline:text_to_video": { + "descriptorSha256": "852641887c47d6707131d5cb71780bd5a93bdd5cf8ea32e5c728cafaeb12baa7", + "bytes": 4759, + "sha256": "5cd6acaec354fbff376d802de87d5bce7ac74679790e1449922259c3d29ec8c8" + }, "NucleusMoEImagePipeline:text_to_image": { "descriptorSha256": "adc6e23f1c2082c72ea9e0697cc87f4e7da5d8cc01540d06f0d6e08acea81a04", "bytes": 4121, "sha256": "9dc242dd86b1a286c5822328a3c0a05dd0f077fdefc17990a5cf086de9e53f3d" }, + "OmniGenPipeline:edit_image": { + "descriptorSha256": "aba148df3940a0700894f8f934e5d800be77f665b85d6796e4afe027debc5a43", + "bytes": 4481, + "sha256": "07ef8b0fd376687249c23fe457eb5536e40c6b277fa50e013898c60bdcb019f3" + }, + "OmniGenPipeline:multi_image_reference_edit": { + "descriptorSha256": "a460aeafd20c87b39c7464442ed13322da7e80a4dd8c4977db7f2d52d6c141a7", + "bytes": 4539, + "sha256": "6fee91234286325b38d12144267a539173ccd54d3c9ac89283fe3279b5d86405" + }, "OmniGenPipeline:text_to_image": { "descriptorSha256": "c78e90591a491385de1f96d89b6aed18dee1367eae36bfcb0b27ee3cecaf8deb", "bytes": 3854, @@ -124,21 +304,76 @@ "bytes": 5155, "sha256": "53558f2a325dab64cfe573ea363e3d0fd8c74a1aeae8b1019dc7112f7aaa8464" }, + "QwenImageEditPipeline:edit_image": { + "descriptorSha256": "f3bf7c16a7aa0008f3cad3df96ff4293889439815a27d7a01dff1b4796ba171a", + "bytes": 4511, + "sha256": "7165d2e08668e02af04f75a7a988a0c0fd4a78a70d25cb319bcf55cb6e6ea755" + }, + "QwenImageEditPlusPipeline:edit_image": { + "descriptorSha256": "c701a2eb5a7fe48519e48dffd10ed7bb6b3e25c34353b208224d16d6400c6fcb", + "bytes": 4537, + "sha256": "2128837ba8b8c0a8408375059000d6c81bc6f013d3cbd6d726fba7d5ffb41ae3" + }, + "QwenImageEditPlusPipeline:multi_image_reference_edit": { + "descriptorSha256": "6400d5376ef83a864dd01e7afbcbabc7a33494b2f658f05c17891860f3fecded", + "bytes": 4595, + "sha256": "222cf61fe2637f6e387e7059239d0d97f668fd974aa88ed307ef0a09ab5be4da" + }, + "QwenImageLayeredPipeline:layer_decomposition": { + "descriptorSha256": "826d487fed6b6f0ae2679d2eb842ad65208a9b5929b66722ad1d8e1c0242079e", + "bytes": 4857, + "sha256": "49728a179b50f3b708d1baacdaa3863a1e9c6c3ef281e4a4d9efdc0a3fffd44d" + }, + "QwenImageModularPipeline:edit_image": { + "descriptorSha256": "47e7d688d1f45209de2600fe1f87a5c6d683a55e4b5acb113cc26d1087df31d5", + "bytes": 4752, + "sha256": "7b2786f5f3411d136c0611d7bb816c5b9051c8ad7bcb391cc2cd700c107d58bf" + }, + "QwenImageModularPipeline:inpaint": { + "descriptorSha256": "060b1b3de7cb4a05fe61363c8e6ae58cddddad647f8299a85feb6d8759bf5fb8", + "bytes": 5207, + "sha256": "b785c5afe4d18ce772e72843ca8ab7690d9bc14453b13b6a0be3d882482475b7" + }, + "SanaImageToVideoPipeline:image_to_video": { + "descriptorSha256": "2aaa21269bbdb611ed68b550a13409221aa56b7d888f379919dc29e147edd0e0", + "bytes": 5330, + "sha256": "79ea7d4bb500b4c112f7d26ee2789628b1a7572c9342f6a392cd02988a8ab94a" + }, "SanaPAGPipeline:text_to_image": { "descriptorSha256": "2e80e952039cfbc7b42f7f1b5689f30fb8b8f83646e0f4c2f6cb8e3a68b8d784", "bytes": 4223, "sha256": "fcfb1ff59de112a555b88307312610465acd2e9ce5bfdd6f66c6eecc544745e1" }, + "SanaPipeline:text_to_image": { + "descriptorSha256": "8b9112a10ce799d31f77d03e5f3d757d2510a7019f6bdc9e88d3de208f2bfa72", + "bytes": 4107, + "sha256": "cde74a47d58aa76951872729bedd01dcdc996dc4fd2130adab403fe8fa670835" + }, "SanaSprintPipeline:text_to_image": { "descriptorSha256": "e6693f3cb5cc81bbac653e0f89c15e2871fdbb67ad37c4f3c63514bbf4e0aa43", "bytes": 4134, "sha256": "6c40aefc3fd65ed6bf87626873bb0377e7fba8ff4fbdbc5c0d3e4e0e3531968a" }, + "SanaVideoPipeline:text_to_video": { + "descriptorSha256": "aaea24f57507173bcfce6f0dc24af5af7eb0f0c5da0dbdee1a81b08b17d2fae7", + "bytes": 4822, + "sha256": "bfcb00d1f859d78b6952e5eb8a0b0c064a8697a5381cf289028e61cb4692bcb4" + }, + "SpandrelVideoUpscale:video_upscale": { + "descriptorSha256": "7bfd8efa47be68666198cbec16db4d26b427297f0deeb8299cbcd63b1a1df46c", + "bytes": 3448, + "sha256": "e22a74b87a2de55c55d502fa6c25aa00e1200ddcb7b973c9656d4fbd1c6e129c" + }, "StableDiffusionPAGPipeline:control_image": { "descriptorSha256": "9bb9602d6c79fd442b5f197809ed32dd1651524f4f5d730c28e1971c7325fc1d", "bytes": 5428, "sha256": "062b9b7343d9a8f8a3ebeb218b7f580295ee991e6ae436114ad3fdbe5305b75f" }, + "StableDiffusionPAGPipeline:control_inpaint": { + "descriptorSha256": "2a4f209aa2f96d0c76efd48dd8c9656547cbb6609e72d4b90864df1c9ad0f589", + "bytes": 6686, + "sha256": "e4c72cde6ea07b4b6775cdaa7bbb04434554625725be8dc43d42c314c9d9502d" + }, "StableDiffusionPAGPipeline:edit_image": { "descriptorSha256": "b4929658c32ef7bad47e50f647abec0e6159c54374a1baea1e05d3f93b66effb", "bytes": 4590, @@ -154,11 +389,21 @@ "bytes": 4433, "sha256": "419397857a211d1ba3812d32cc47678a00883b5d70114a80079d8415176d09ed" }, + "StableDiffusionPipeline:control_edit_image": { + "descriptorSha256": "a5828d189ae4e195b01c88ccc1b9d65af720dcf823b64b4509e228a53edabd29", + "bytes": 5924, + "sha256": "ce56546562622c8758fcb1932bb15495587df7ae3394357fac8e51cc698dc6c4" + }, "StableDiffusionPipeline:control_image": { "descriptorSha256": "4947a5a7b0a87481e1795185f91486717d6950c0f0f3ae79fc979c46c55ad443", "bytes": 5181, "sha256": "955cd49c1120a171b81a6445b75af50e0b180ff2e962053eaf556d28b5942b06" }, + "StableDiffusionPipeline:control_inpaint": { + "descriptorSha256": "f46add4e31c93701f24c78093985cdbeac9aa043e94ab595d5314591f00b56b1", + "bytes": 6425, + "sha256": "25a36322d131f1f75d802a1ed917437efd9a27f89d95ac9239dcb9791f30b421" + }, "StableDiffusionPipeline:edit_image": { "descriptorSha256": "ce72fd7e5d5f263f68f94ae15778a596a3161c38c0f4092531f0c719b78667d8", "bytes": 4799, @@ -179,6 +424,11 @@ "bytes": 5234, "sha256": "1a82490dad0b9ed6b3867c70d1640e80d30f8bd8958545c0fa014a6d500961d0" }, + "StableDiffusionXLControlNetPipeline:control_edit_image": { + "descriptorSha256": "b72a583d7d31a2ba0d5f5cb2ff6b1414f36e4b9c4e41d8d861ce2a586ff843d7", + "bytes": 5984, + "sha256": "da10e07ff8bf72e72341c698acde798b4c9b5f270316db0201631243b31cb46f" + }, "StableDiffusionXLControlNetPipeline:control_image": { "descriptorSha256": "f57b41443261612d95d3e80df2d638617f62526970313989ca69e0652bb4c390", "bytes": 5241, @@ -194,11 +444,36 @@ "bytes": 4878, "sha256": "9ac80428595d712acd5eff6fac00c4958f5901ce54d067857616736e8cee29bd" }, + "StableDiffusionXLPAGPipeline:control_edit_image": { + "descriptorSha256": "3dfdce82491a893be86fe27d00f8a1b9e5a6e3caddb5d3fa7a688b376106fded", + "bytes": 6184, + "sha256": "531a76345f5cefc31fe98d33ab73f8cef73a6a7f6f76e48309bc26399b4bcb39" + }, + "StableDiffusionXLPAGPipeline:control_image": { + "descriptorSha256": "038d2fc8fa5c8079d7d7abed56804816e29ac8032e5a7cdff2c62036060e9349", + "bytes": 5433, + "sha256": "17caaef1e18c850a32489b11a4eeae8e1b3ae349e7b037423a6e54aa7820a055" + }, + "StableDiffusionXLPAGPipeline:edit_image": { + "descriptorSha256": "8c57f2453fb72d6ae859a5e52f62c6086cce0a0902f7bff28d5687b52ab87a63", + "bytes": 5044, + "sha256": "9db3b94745c7ac84022791a39ad82795eade214bbf8bff0b08845e61f31a27a8" + }, + "StableDiffusionXLPAGPipeline:inpaint": { + "descriptorSha256": "9380533f675c9491fe99d896740d7366ab9471ea617ab743d8af35af722f321c", + "bytes": 5505, + "sha256": "7d993051fdcce55a01b3a78cec68adcf170e8080831f0a058826b172417302e4" + }, "StableDiffusionXLPAGPipeline:text_to_image": { "descriptorSha256": "e5bcc2b64bfddcadc334c20f0c125fdcae68760cde1ff60ec10d1a22ce81a997", "bytes": 4412, "sha256": "2b526a0dec7fbee4a8553727a4c001e269b524551ad5169ea4928f8b4a76b633" }, + "StableDiffusionXLPipeline:edit_image": { + "descriptorSha256": "511a0b135e417c10f9a3e9e04b6b35b5aa391ab3b084ec3df25fc66bf6d8d6e3", + "bytes": 4804, + "sha256": "0d63feb236cf755551373fac91985e2b9b75e394ee10998bda88d70a7bea6d62" + }, "StableDiffusionXLPipeline:inpaint": { "descriptorSha256": "04773f9c39ab30246fca3f87394f504a61772ccfa97630d4b46d1a9530450ee2", "bytes": 5259, @@ -214,241 +489,26 @@ "bytes": 4169, "sha256": "b5dfc591a73c4d04d8f540c4617c0f7820a4d8553a31ef9dd030837fb72325b2" }, - "ZImageModularPipeline:edit_image": { - "descriptorSha256": "449bc094096e644f4070a681e382650d133c0854ec6770cfbb736f0299e04179", - "bytes": 4729, - "sha256": "e523fa1d31a2bb0c2ccbd2525ac0cce68fe57adc77332446239ddf62683f8a05" - }, - "LongCatAudioDiTPipeline:text_to_audio": { - "descriptorSha256": "8019b9dbf5af0e8ba5c8eeed7132ec5578968ee0607309dd65327d69599a5c5d", - "bytes": 3894, - "sha256": "7512d2ef931525302161e9662c172403df5b608a374214a4a39b5bd71e014562" - }, - "QwenImageLayeredPipeline:layer_decomposition": { - "descriptorSha256": "826d487fed6b6f0ae2679d2eb842ad65208a9b5929b66722ad1d8e1c0242079e", - "bytes": 4857, - "sha256": "49728a179b50f3b708d1baacdaa3863a1e9c6c3ef281e4a4d9efdc0a3fffd44d" - }, - "CogVideoXPipeline:text_to_video": { - "descriptorSha256": "3aab2d19bca49f839f8316f19ea75afbe4b0e401ff5a330c16f35484f43f611a", - "bytes": 4732, - "sha256": "4c24104fd8ecabb12b19fa1b978df2e5308f18fd86eb5e3388e9a39a4e1b36b4" - }, - "CogVideoXVideoToVideoPipeline:video_to_video": { - "descriptorSha256": "c4396b6f2b6b01fcdbcb5d7f370b6284be78d1979e4665a243c1e08193776e08", - "bytes": 5498, - "sha256": "0ea9626727160078f7717560d4e67272e29f5adc544cffcc5e4edde91eff93dc" - }, "Wan22Pipeline:text_to_video": { "descriptorSha256": "05008ca915711e27396ac9216f34931f91c5444efa2751e9fb4a26c2761a89c2", "bytes": 4827, "sha256": "bd8a43e99fcf4ea3fdebbdd52f0e6fc7c7775ec4b6d0f1707de1be3a354bb79a" }, + "WanAnimatePipeline:character_animate": { + "descriptorSha256": "e40425560eca0a78b964f7eedc9fa5256f93d728be913e8245c0302bd201faf2", + "bytes": 6575, + "sha256": "fa60f39673d826bbf28dc4676f464245386627c1cd115742d5547a7aae413d3c" + }, + "WanAnimatePipeline:character_replace": { + "descriptorSha256": "3201ab9ec6ce7873a6bb2e48e50bf83956edb4169ff0b2dfa2ba4667a85153c2", + "bytes": 7348, + "sha256": "b2c1690cdde91111627becb49ad8e32513b644ce13c3188b1906b122266502eb" + }, "WanImage2VideoModularPipeline:image_to_video": { "descriptorSha256": "63d626c3c97cd12016b58a9fba71739eeea0459ad300383d5b4f43aa0775740a", "bytes": 5726, "sha256": "37898b78c1e8df5ab9940aa2dbe7e467cd16e582c10e2156eca29ad967b6c8ba" }, - "JoyImageEditPipeline:text_to_image": { - "descriptorSha256": "655abc48262ac72c9e7cee61c90f7f72430660b5b5102716b97d4ee9730e31fa", - "bytes": 4150, - "sha256": "91f48149a549804d83375b9c26bf0cb8890091e6f8af135b2a225fae3033df75" - }, - "LongCatImagePipeline:text_to_image": { - "descriptorSha256": "8020bb532f9bc0fc6222c2083e81579b3c8dac7c9dd934e8d2534db7b3ae5fe1", - "bytes": 4155, - "sha256": "f2f0a9bdde30f96caf2c200be4ecbae6c3a6eef6c657707a923d13ee2dfaf2c8" - }, - "SanaPipeline:text_to_image": { - "descriptorSha256": "8b9112a10ce799d31f77d03e5f3d757d2510a7019f6bdc9e88d3de208f2bfa72", - "bytes": 4107, - "sha256": "cde74a47d58aa76951872729bedd01dcdc996dc4fd2130adab403fe8fa670835" - }, - "ChromaImg2ImgPipeline:edit_image": { - "descriptorSha256": "dd23974fab77ebe91e46ed5734e61a75638f10cc0ace0e54240f6afaf233c72b", - "bytes": 4609, - "sha256": "75b36f5f95e4509d3adcf65651a9b188eda71a5efe87d5a5b620dec77b6e1abe" - }, - "Flux2KleinInpaintPipeline:inpaint": { - "descriptorSha256": "fdc033422ec6517632bed64a97b54322e17e329956edc239716e4fd599f2c4cd", - "bytes": 5104, - "sha256": "cea6084bec425454e3b8bd81165b83d653c56fdd362491bed9f74bec2951d175" - }, - "Flux2KleinInpaintPipeline:outpaint": { - "descriptorSha256": "b24c85edd5c183f82ce9510a6623981ef8d9ea2699ca46bc4d3917180d8294e5", - "bytes": 5530, - "sha256": "836bdca357990b56c7379e9bba751bdc6bb9616e799a11dac5eb1b1b329058c3" - }, - "FluxDevPipeline:inpaint": { - "descriptorSha256": "f3a931273edeb2e41d23016dfd13d6568222cd92e21a4a52280afa814d59f384", - "bytes": 5171, - "sha256": "f764fcad0f1b501b845864674be35ca0556cd4d1c11f07ca9faefb3dc597afde" - }, - "FluxKontextInpaintPipeline:outpaint": { - "descriptorSha256": "fabdf2609cbf5d838834845a08c6d12d08401d670edfc34d67a370efbf40414c", - "bytes": 5540, - "sha256": "271717782ff8d2294176173579080bf539a0ea44006c159604ba1dfe3f68bbac" - }, - "JoyImageEditPipeline:edit_image": { - "descriptorSha256": "71b096416a43857e71643677e3288af3e75aa96312cbc24673f26ce8824ce46d", - "bytes": 4755, - "sha256": "a340892a5a3c7371b61b875dff2855751de8411913317c5565010d29621e7174" - }, - "JoyImageEditPlusPipeline:edit_image": { - "descriptorSha256": "ec18a41cfd9d91e09bb4339e69b0669faec4a2ac968aef9d90c1a1d3b674d0e7", - "bytes": 4781, - "sha256": "ae1afab09dd44378b5274a8473c5ccef3e13f9270e7d24f12545da95416235c2" - }, - "Kandinsky3Pipeline:edit_image": { - "descriptorSha256": "441798bee62a4e76037a9bf34cb5fe4c95d3682f2144c6f2e32810aa50ad3c4b", - "bytes": 4729, - "sha256": "88d20a4d739dc85ac3079a8ed98b093b297c5379d01a9beda77fe2f3b595379f" - }, - "LongCatImageEditPipeline:edit_image": { - "descriptorSha256": "b9f3dd382864d47e950c38650e6ec31d0e51b2453ed302c04955bfb0340785db", - "bytes": 4778, - "sha256": "288531a30b6f8d0e60a6319b69dfa3fd04d14a8bb078eb4475df09386faef9d4" - }, - "OmniGenPipeline:edit_image": { - "descriptorSha256": "aba148df3940a0700894f8f934e5d800be77f665b85d6796e4afe027debc5a43", - "bytes": 4481, - "sha256": "07ef8b0fd376687249c23fe457eb5536e40c6b277fa50e013898c60bdcb019f3" - }, - "QwenImageEditPipeline:edit_image": { - "descriptorSha256": "f3bf7c16a7aa0008f3cad3df96ff4293889439815a27d7a01dff1b4796ba171a", - "bytes": 4511, - "sha256": "7165d2e08668e02af04f75a7a988a0c0fd4a78a70d25cb319bcf55cb6e6ea755" - }, - "QwenImageEditPlusPipeline:edit_image": { - "descriptorSha256": "c701a2eb5a7fe48519e48dffd10ed7bb6b3e25c34353b208224d16d6400c6fcb", - "bytes": 4537, - "sha256": "2128837ba8b8c0a8408375059000d6c81bc6f013d3cbd6d726fba7d5ffb41ae3" - }, - "QwenImageModularPipeline:edit_image": { - "descriptorSha256": "47e7d688d1f45209de2600fe1f87a5c6d683a55e4b5acb113cc26d1087df31d5", - "bytes": 4752, - "sha256": "7b2786f5f3411d136c0611d7bb816c5b9051c8ad7bcb391cc2cd700c107d58bf" - }, - "QwenImageModularPipeline:inpaint": { - "descriptorSha256": "060b1b3de7cb4a05fe61363c8e6ae58cddddad647f8299a85feb6d8759bf5fb8", - "bytes": 5207, - "sha256": "b785c5afe4d18ce772e72843ca8ab7690d9bc14453b13b6a0be3d882482475b7" - }, - "StableDiffusionXLPAGPipeline:inpaint": { - "descriptorSha256": "9380533f675c9491fe99d896740d7366ab9471ea617ab743d8af35af722f321c", - "bytes": 5505, - "sha256": "7d993051fdcce55a01b3a78cec68adcf170e8080831f0a058826b172417302e4" - }, - "StableDiffusionXLPipeline:edit_image": { - "descriptorSha256": "511a0b135e417c10f9a3e9e04b6b35b5aa391ab3b084ec3df25fc66bf6d8d6e3", - "bytes": 4804, - "sha256": "0d63feb236cf755551373fac91985e2b9b75e394ee10998bda88d70a7bea6d62" - }, - "ZImageInpaintPipeline:inpaint": { - "descriptorSha256": "00f04c60e1fc37087db0c90144a1b5c27b1e211e88b1ef8ec567c0ff3eb9853c", - "bytes": 5066, - "sha256": "0637d67544f3501de6660270734be105179bb7f478bce1df689419f4c493d40e" - }, - "ZImageInpaintPipeline:outpaint": { - "descriptorSha256": "ba2d0fcc7d6327ad5b24538e4a07c69ef92a5bebd5534f143d5637194a328e1c", - "bytes": 5489, - "sha256": "6db62cbef82c733667d7c91eaabbcda257fc5e141bf8fb5caff3ad96af3c1865" - }, - "FluxCannyPipeline:control_inpaint": { - "descriptorSha256": "1960eca0824640f40d86820463d58beabf4421cb9262a3f3abf93eaa2f07aaa7", - "bytes": 5690, - "sha256": "c14e618968f0b6009b27192c5a526cedf459d86a1ffbd7daf170e8cc02d6d65d" - }, - "FluxDepthPipeline:control_inpaint": { - "descriptorSha256": "568eba4ce2c06b085b22ca13a69a6651d27ba404760ea5f6fb621e14ced5df44", - "bytes": 5690, - "sha256": "3842994d2b102543f510af88fa278a455203411137e8b710e2c3c1923ac08f6d" - }, - "JoyImageEditPlusPipeline:multi_image_reference_edit": { - "descriptorSha256": "7a419e8264420f38abdc18d4bf76d8ff9ec7ac21c736bf9c768477249b601d73", - "bytes": 4839, - "sha256": "024ead128a7b32c2d9c4b3e1e2d819f5aac55433c60c960e056d358ac68cf0d3" - }, - "OmniGenPipeline:multi_image_reference_edit": { - "descriptorSha256": "a460aeafd20c87b39c7464442ed13322da7e80a4dd8c4977db7f2d52d6c141a7", - "bytes": 4539, - "sha256": "6fee91234286325b38d12144267a539173ccd54d3c9ac89283fe3279b5d86405" - }, - "QwenImageEditPlusPipeline:multi_image_reference_edit": { - "descriptorSha256": "6400d5376ef83a864dd01e7afbcbabc7a33494b2f658f05c17891860f3fecded", - "bytes": 4595, - "sha256": "222cf61fe2637f6e387e7059239d0d97f668fd974aa88ed307ef0a09ab5be4da" - }, - "StableDiffusionPAGPipeline:control_inpaint": { - "descriptorSha256": "2a4f209aa2f96d0c76efd48dd8c9656547cbb6609e72d4b90864df1c9ad0f589", - "bytes": 6686, - "sha256": "e4c72cde6ea07b4b6775cdaa7bbb04434554625725be8dc43d42c314c9d9502d" - }, - "StableDiffusionPipeline:control_edit_image": { - "descriptorSha256": "a5828d189ae4e195b01c88ccc1b9d65af720dcf823b64b4509e228a53edabd29", - "bytes": 5924, - "sha256": "ce56546562622c8758fcb1932bb15495587df7ae3394357fac8e51cc698dc6c4" - }, - "StableDiffusionPipeline:control_inpaint": { - "descriptorSha256": "f46add4e31c93701f24c78093985cdbeac9aa043e94ab595d5314591f00b56b1", - "bytes": 6425, - "sha256": "25a36322d131f1f75d802a1ed917437efd9a27f89d95ac9239dcb9791f30b421" - }, - "StableDiffusionXLControlNetPipeline:control_edit_image": { - "descriptorSha256": "b72a583d7d31a2ba0d5f5cb2ff6b1414f36e4b9c4e41d8d861ce2a586ff843d7", - "bytes": 5984, - "sha256": "da10e07ff8bf72e72341c698acde798b4c9b5f270316db0201631243b31cb46f" - }, - "StableDiffusionXLPAGPipeline:control_image": { - "descriptorSha256": "038d2fc8fa5c8079d7d7abed56804816e29ac8032e5a7cdff2c62036060e9349", - "bytes": 5433, - "sha256": "17caaef1e18c850a32489b11a4eeae8e1b3ae349e7b037423a6e54aa7820a055" - }, - "AllegroPipeline:text_to_video": { - "descriptorSha256": "abbadb877960f2cab04d6555a9a95475ae7db80e22d6120439456c69b098b10f", - "bytes": 4708, - "sha256": "e5a7db6c7945460600eb1f5611952369656e3be62a4f083205f0ce2cd5070aa9" - }, - "AnimateDiffControlNetPipeline:control_to_video": { - "descriptorSha256": "26cefb76bc3b60ebd26d76ccda2ce9aa79a4d2e760023662cf3d1fe868dad7bf", - "bytes": 6389, - "sha256": "2a921703f9444e937b355c4f08116029607143dd2332eb3aedaaa08ff0c5603f" - }, - "AnimateDiffPipeline:text_to_video": { - "descriptorSha256": "8493c1cd300b662ead386632610603cee2531eeff86668b454b314c66e175f0b", - "bytes": 5074, - "sha256": "e101fe940b9ffdf5a7f72e57a00739a687c5c9cb4ac5862d5ef5a68a7c409a5c" - }, - "AnimateDiffVideoToVideoControlNetPipeline:control_video_to_video": { - "descriptorSha256": "4f47a4a1a0244ed4b550c9e8ef4f3cfd8c2076d3f87f5ecbb583d6a8c8987b05", - "bytes": 7237, - "sha256": "b720c1515832c4984d8c8eec6a7e83f525ef9383e2d73708bc311a4619aa8456" - }, - "AnimateDiffVideoToVideoPipeline:video_to_video": { - "descriptorSha256": "b88aa5f2d7c8e012280b1d13cb812b1890dbc93ad7d14953504a7ca2bac45917", - "bytes": 5864, - "sha256": "da693cb57abb7c792b81aa90147ced2e2d127d052c20d4424dce4f9697c08293" - }, - "MochiPipeline:text_to_video": { - "descriptorSha256": "852641887c47d6707131d5cb71780bd5a93bdd5cf8ea32e5c728cafaeb12baa7", - "bytes": 4759, - "sha256": "5cd6acaec354fbff376d802de87d5bce7ac74679790e1449922259c3d29ec8c8" - }, - "SanaImageToVideoPipeline:image_to_video": { - "descriptorSha256": "2aaa21269bbdb611ed68b550a13409221aa56b7d888f379919dc29e147edd0e0", - "bytes": 5330, - "sha256": "79ea7d4bb500b4c112f7d26ee2789628b1a7572c9342f6a392cd02988a8ab94a" - }, - "SanaVideoPipeline:text_to_video": { - "descriptorSha256": "aaea24f57507173bcfce6f0dc24af5af7eb0f0c5da0dbdee1a81b08b17d2fae7", - "bytes": 4822, - "sha256": "bfcb00d1f859d78b6952e5eb8a0b0c064a8697a5381cf289028e61cb4692bcb4" - }, - "SpandrelVideoUpscale:video_upscale": { - "descriptorSha256": "7bfd8efa47be68666198cbec16db4d26b427297f0deeb8299cbcd63b1a1df46c", - "bytes": 3448, - "sha256": "e22a74b87a2de55c55d502fa6c25aa00e1200ddcb7b973c9656d4fbd1c6e129c" - }, "WanImageToVideoPipeline:image_to_video": { "descriptorSha256": "ad4a68c5d4cd18b02cbcf57d5eb84a8e6ca48512c8b2405cf0e658942c260de2", "bytes": 5369, @@ -464,9 +524,19 @@ "bytes": 4991, "sha256": "c91ec7e55964e72702d69979edf84e8714c8e5acb3adda5a6c6bccfce14db5db" }, - "WanAnimatePipeline:character_replace": { - "descriptorSha256": "3201ab9ec6ce7873a6bb2e48e50bf83956edb4169ff0b2dfa2ba4667a85153c2", - "bytes": 7348, - "sha256": "b2c1690cdde91111627becb49ad8e32513b644ce13c3188b1906b122266502eb" + "ZImageInpaintPipeline:inpaint": { + "descriptorSha256": "00f04c60e1fc37087db0c90144a1b5c27b1e211e88b1ef8ec567c0ff3eb9853c", + "bytes": 5066, + "sha256": "0637d67544f3501de6660270734be105179bb7f478bce1df689419f4c493d40e" + }, + "ZImageInpaintPipeline:outpaint": { + "descriptorSha256": "ba2d0fcc7d6327ad5b24538e4a07c69ef92a5bebd5534f143d5637194a328e1c", + "bytes": 5489, + "sha256": "6db62cbef82c733667d7c91eaabbcda257fc5e141bf8fb5caff3ad96af3c1865" + }, + "ZImageModularPipeline:edit_image": { + "descriptorSha256": "449bc094096e644f4070a681e382650d133c0854ec6770cfbb736f0299e04179", + "bytes": 4729, + "sha256": "e523fa1d31a2bb0c2ccbd2525ac0cce68fe57adc77332446239ddf62683f8a05" } } diff --git a/config/retained-gallery-batch-recipe-locks.v1.json b/config/retained-gallery-batch-recipe-locks.v1.json index f094c59c..e30bc222 100644 --- a/config/retained-gallery-batch-recipe-locks.v1.json +++ b/config/retained-gallery-batch-recipe-locks.v1.json @@ -1363,5 +1363,211 @@ "background": "56d9cdc81884fc95644f38a5761ce4be55a441be9c572d3112f2c324541c315e", "mask": "66238c0f48aef7920122e948c9bfccb8c3c9af842ac989ba744edb575d30f3e2" } + }, + "animatediff_pag_snowmelt_over_river_stones": { + "workflowId": "AnimateDiffPAGPipeline:text_to_video", + "sourceTaskTemplateId": "task-template:animatediff-pag:text-to-video:v1", + "retainedGraphHash": "sha256:canonical-graph-v1:23e63b2c8f8206eeaef3e3745b623c351e586aa733cdaa01f278f1e3409e732c", + "originalReceiptSha256": "60f21d1b1bbbf6d135ced0bd8ab0935a0c62ae95ccefd8d4df6f8bd3a1110343", + "reviewedTemplateSha256": "43087167a4f17c0d0306e72d14750b647cb25811d30726ff3ef5cb57eb37ac4e", + "reviewedCatalogLock": { + "templateLockHash": "tpl_e45524ce", + "galleryTemplateLockHash": "tpl_71c3b95f", + "promptSettingsHash": "ps_b7b30a2a" + }, + "promptSha256": "7e236f35e567abdfe0bab0fb2594e230faea1c5701bd1df7700c3b0ee25c0e4a" + }, + "ltx2_surf_below_the_breakwater": { + "workflowId": "LTX2Pipeline:text_to_video", + "sourceTaskTemplateId": "task-template:ltx2-standard:text-to-video:v1", + "retainedGraphHash": "sha256:canonical-graph-v1:b59a7ddbfe865b3d21d1aaa5a7a3dee9277b4b96ecd4e5dcad4f86fa4518d7b0", + "originalReceiptSha256": "5e938a68e6a39a2bb071767f7b82ce56c442a44e513d33c414d4952c4621b17d", + "reviewedTemplateSha256": "0a58a9b6f8ac6a0308cf5e137d09d9412579d9ec92133231858ced4d45e4a01e", + "reviewedCatalogLock": { + "templateLockHash": "tpl_ce9fac63", + "galleryTemplateLockHash": "tpl_d1c61711", + "promptSettingsHash": "ps_c0f28184" + }, + "promptSha256": "09993ec8105ba83b519f1e4ce8adf7ad05854a40b03a88c4ca489e96df156f66" + }, + "ltx2_kiln_at_first_light": { + "workflowId": "LTX2ConditionPipeline:text_to_video", + "sourceTaskTemplateId": "task-template:ltx2:text-to-video:v1", + "retainedGraphHash": "sha256:canonical-graph-v1:7301039ea45039f64b122f548aa716f25eb7185cd976f0f0a0b6638c9cb16dfa", + "originalReceiptSha256": "29bc54454d95ecf8dbcf8e2c63cc2642f3d22c06b396273d82b962df59d0aa8b", + "reviewedTemplateSha256": "172e79d27a5e6add55ba522752c17fddb4fb44998d3ff152056befa619c4f5a7", + "reviewedCatalogLock": { + "templateLockHash": "tpl_9b95d216", + "galleryTemplateLockHash": "tpl_36ff17c8", + "promptSettingsHash": "ps_e97cbf70" + }, + "promptSha256": "f06a2bf8d4c912559ed2fc27c6f92b24f1bea16b68b86063f0fa9b681234493f" + }, + "ltx2_glasshouse_drip": { + "workflowId": "LTX2ConditionPipeline:image_to_video", + "sourceTaskTemplateId": "task-template:ltx2:image-to-video:v1", + "retainedGraphHash": "sha256:canonical-graph-v1:dd5427ed763a352409689fbf23e57249d830e5ddf7c4ec23c34b4a219d1d9c47", + "originalReceiptSha256": "be5cdbcbab18a06d596223e1372e27b6891e4ea83c1f6534831cd1281227f83c", + "reviewedTemplateSha256": "8e9c88d288257a9ccf86964d32b68646882ceaf3c65b4cae91af6d89eea4e1cb", + "reviewedCatalogLock": { + "templateLockHash": "tpl_eab36b5f", + "galleryTemplateLockHash": "tpl_f369615f", + "promptSettingsHash": "ps_7cadd917" + }, + "promptSha256": "8b66cc740270aa4defbaa73de90c26fe15606f08cc5c598ab648888dc71c3f4b", + "inputSha256": "124d647abcc3d14dcd8388d749814e0b11bc5df820d126e9542ca2f333f73c73", + "inputLocatorSha256": "907a1dfbbd48485ff5f8ad29cbecfc70b658ad49affeed49fbe32454f024dec6" + }, + "wan_animate_signal_through_the_rain": { + "workflowId": "WanAnimatePipeline:character_animate", + "sourceTaskTemplateId": "task-template:wan-animate:character-animate:v1", + "retainedGraphHash": "sha256:canonical-graph-v1:916a843dde25e718457b5621fd1bfa9201300d322cf480133154b0722aa62209", + "originalReceiptSha256": "e40425560eca0a78b964f7eedc9fa5256f93d728be913e8245c0302bd201faf2", + "reviewedTemplateSha256": "3dd570d231c6fb4075f50264809e570747f00ed8f85d367ee494c7d7cd5fe4bf", + "reviewedCatalogLock": { + "templateLockHash": "tpl_1600b960", + "galleryTemplateLockHash": "tpl_28a23eb2", + "promptSettingsHash": "ps_9bf912f3" + }, + "promptSha256": "3bedfa90d73e181781a22ed29cef7d7a41747ed86036dcee73a14badd0d77c92", + "inputSha256": "5e73a03d1c557ef5572faad8f7b270ceb33be54e311982450fb5df2ba799d668", + "inputLocatorSha256": "25d5e368f6217b72299d928af452032ce555f0847722bc56af6a7844f181af0a", + "videoConditionerHashes": { + "face": "523c3b8d098977aa228f4319b81e675cb31ea96394eda45125dbfa24721d0d68", + "pose": "2fd6db2696b9a6bc7457bb8b747af5cd7ec4ec5603e86b06f01e591f17ed39f2" + } + }, + "latte_water_folding_over_slate": { + "workflowId": "LattePipeline:text_to_video", + "sourceTaskTemplateId": "task-template:latte:text-to-video:v1", + "retainedGraphHash": "sha256:canonical-graph-v1:602be3cfda32fd79e4700a8ee3b17bafdac7c0f8661ccc6dcdf516a418110461", + "originalReceiptSha256": "b3945315f5fa033cb7721f2d5dd7a789c75fd30157aeaf4fc137074fe3cd368a", + "reviewedTemplateSha256": "663502fcbb5c79310582bf01e0dab2dfba6abadfa43d044f834b8ab10d5bb145", + "reviewedCatalogLock": { + "templateLockHash": "tpl_9dfcf70b", + "galleryTemplateLockHash": "tpl_65b5cee5", + "promptSettingsHash": "ps_83921a2b" + }, + "promptSha256": "d60ce202b766bca9a24140e2976829ee572e929d52560d120c1e85a8648894c5" + }, + "chroma_copper_medallion_outpaint": { + "workflowId": "ChromaInpaintPipeline:outpaint", + "sourceTaskTemplateId": "task-template:chroma1-hd-inpaint:outpaint:v1", + "retainedGraphHash": "sha256:canonical-graph-v1:6b4352e7c6d634521c5ffef10a8d4f9d6ccdcb8e3c2a1c58f9a629afc551cfed", + "originalReceiptSha256": "aca4038c57ccfc738f45a28e69a99d43eaf195fd4225e973d0046e3dabb4d44c", + "reviewedTemplateSha256": "9fecd969c5c6398a2e8194ac8ab7aac9b905267b88bf96f9062cecc16fee7223", + "reviewedCatalogLock": { + "templateLockHash": "tpl_b3dd8566", + "galleryTemplateLockHash": "tpl_9d214139", + "promptSettingsHash": "ps_2aa6587e" + }, + "promptSha256": "433d9f69168f398469fd44d1922be48054adf13096ee080955196df5a000ee11", + "inputSha256": "a8aaf9be57bc6bab356c5c1f9b76a1458e7e85e9daf6681e7e38a28fc28e1535", + "inputLocatorSha256": "1fb1220647ce10288763dd31b8eae1183223bb89b8be2e2425ad276b167c6020" + }, + "ltx2_enamel_teapot_window_light": { + "workflowId": "LTX2ConditionPipeline:reference_to_video", + "sourceTaskTemplateId": "task-template:ltx2:reference-to-video:v1", + "retainedGraphHash": "sha256:canonical-graph-v1:88e46ced175df74ba7e8788d085e7543203a02f3518f6fc0296f370f7dcf1a40", + "originalReceiptSha256": "ad1b4d998fc460f0e60c7ab6131bd155c69c96b8f891067f3e28d140961a0cd6", + "reviewedTemplateSha256": "8c01a644d54c04e3ebb653cba32cdf1b14a18c7167e52ef95fdc392aad28599a", + "reviewedCatalogLock": { + "templateLockHash": "tpl_1e93baae", + "galleryTemplateLockHash": "tpl_6cc90a68", + "promptSettingsHash": "ps_9ed12354" + }, + "promptSha256": "666abf5e1ef440d7f09753aa5fee348de97b2feed20a7666d9b71c44c36b4fea", + "inputSha256": "7be24582bd4f26633a636c4110e38baecd94e6c6b3fd35450848f97bc07f2855", + "inputLocatorSha256": "081315f134158bcbff32a84d980fb9aaf32d2531769298002200b295f574322f" + }, + "ltx2_moss_and_basalt": { + "workflowId": "LTX2ConditionPipeline:video_to_video", + "sourceTaskTemplateId": "task-template:ltx2:video-to-video:v1", + "retainedGraphHash": "sha256:canonical-graph-v1:b5dfe89e55b083b29e1afa57472019ae9b3a123628162b94d3659c58f8d53af8", + "originalReceiptSha256": "740a535f4c22c2555805e41afd0775e17982cb4352160cd7a645f40e5b078805", + "reviewedTemplateSha256": "680ec55c2e867aab22c21e907eb3ab183c6639af4cd8ba877e6bcec732a5ce1a", + "reviewedCatalogLock": { + "templateLockHash": "tpl_47093481", + "galleryTemplateLockHash": "tpl_b6f15221", + "promptSettingsHash": "ps_637d1d2f" + }, + "promptSha256": "3e581608baa3ede9638fbe51b85a4753d8faea65d69f55fcbbf64a74ed7acc90", + "inputSha256": "3b5e40ac2bf76236d1f901a7a2522addd7c4a1b2701bd89a33c1506b1523bc38", + "inputLocatorSha256": "5640e07d1d708c40a1eeb37577c680cd6489388991816f336b9c31e74b822901" + }, + "sdxl_pag_lighthouse_in_graphite": { + "workflowId": "StableDiffusionXLPAGPipeline:edit_image", + "sourceTaskTemplateId": "task-template:sdxl-pag:edit-image:v1", + "retainedGraphHash": "sha256:canonical-graph-v1:44c2801331dfd7f8d54f9f8dd240bc901d7d4e855d8244accbdf111b04696361", + "originalReceiptSha256": "8c57f2453fb72d6ae859a5e52f62c6086cce0a0902f7bff28d5687b52ab87a63", + "reviewedTemplateSha256": "6eb3e04961a9389794619d6ae2342a296287039deb1d08715a785409b279cba3", + "reviewedCatalogLock": { + "templateLockHash": "tpl_b7de231d", + "galleryTemplateLockHash": "tpl_23c07813", + "promptSettingsHash": "ps_91059256" + }, + "promptSha256": "a56d9641a19df5131eb253541bf0f481f0e7f0f662cc5793746512db1c175a37", + "inputSha256": "4cbc984b44c398b6e92b4350513d3543139e9dffe01a38857845c8a7698272c8", + "inputLocatorSha256": "84e8c618763d14e45181b49cef2ef920860384c90c85154c408bb6c91a01c335" + }, + "flux_dev_forest_green_teapot": { + "workflowId": "FluxDevPipeline:edit_image", + "sourceTaskTemplateId": "task-template:flux-dev:edit-image:v1", + "retainedGraphHash": "sha256:canonical-graph-v1:234b1d91dd85fbdb63119e93334c45509d81ec63cf35ff7c2917989a02facfb7", + "originalReceiptSha256": "c07e1306c0441d732e2cc24b652e2d9223ba77dd5597030b39bba3c6b271ab0c", + "reviewedTemplateSha256": "733622609f54510a405766166f8b6a2e00eabffc71dccbe5d780eddf18aa63cd", + "reviewedCatalogLock": { + "templateLockHash": "tpl_3dc8367a", + "galleryTemplateLockHash": "tpl_266f6def", + "promptSettingsHash": "ps_75d3d1bb" + }, + "promptSha256": "06ce821665019d8713881a8322b6b02217d4928d2382db9b0bcb6ae4b4703e16", + "inputSha256": "443062a26e22e3542e284f50d0274b7c70b881b3cce76568eb8eb22ce4c396d6", + "inputLocatorSha256": "d42aaca5c9404cc9f28c5db1e7ca570979b8c08345f7535db7ace6c3562391e9" + }, + "animatelcm_sunlit_surf": { + "workflowId": "AnimateLCMPipeline:text_to_video", + "sourceTaskTemplateId": "task-template:animatelcm:text-to-video:v1", + "retainedGraphHash": "sha256:canonical-graph-v1:1ca2a40982413d74048c1a056d99e663a004ffca73f8982ba51b12e3821de692", + "originalReceiptSha256": "42c865106617e74f0b4f283316e1712eecfb61e8a78b1d02dfaff346ba718e20", + "reviewedTemplateSha256": "8eb9c374cf4d54c48fc6dab608b1cd5a20acde2948f3e56d0bace61f48f946eb", + "reviewedCatalogLock": { + "templateLockHash": "tpl_3954921d", + "galleryTemplateLockHash": "tpl_d58d08a0", + "promptSettingsHash": "ps_edc78e93" + }, + "promptSha256": "07dae0da2bd2c824ff9f5094cf6dee360e0b08d2ec73c4d60879e4da49079752" + }, + "flux_kontext_bookshop_clear_glass": { + "workflowId": "FluxKontextInpaintPipeline:inpaint", + "sourceTaskTemplateId": "task-template:flux-kontext-inpaint-direct:inpaint:v1", + "retainedGraphHash": "sha256:canonical-graph-v1:a9cc4b1c398fd96d027e5f13d281eedc73357ae004f2d6c46e8ecac4dd401b5b", + "originalReceiptSha256": "393c69f7733fdfd3632682204dbf421cfff4578d0b86c911f4c15110c566ac90", + "reviewedTemplateSha256": "e0b3aa2e3ac0aaf75006ed8110ff7420862ccaef4e03da53db5626f12fc278b6", + "reviewedCatalogLock": { + "templateLockHash": "tpl_69d64dc9", + "galleryTemplateLockHash": "tpl_66d098da", + "promptSettingsHash": "ps_b8e8c482" + }, + "promptSha256": "a7a379c6307dd28a07e15932928b9b7b19877568ddc6c922ced663a3e130ac72", + "inputSha256": "ff045be510a0e88cbab69bbe8c3794dd26bd19036bdec26a63a5b6ea5a11bc66", + "inputLocatorSha256": "ba62f91337905681e60c207cb7c94b5674841dbf814c026e6780f76bca2e8c52", + "maskSha256": "6f9114963580bd8942bc25e31e67a7fa2f7fdea73c775dd49bb9972c65829578" + }, + "sdxl_pag_two_tier_cobalt_glass": { + "workflowId": "StableDiffusionXLPAGPipeline:control_edit_image", + "sourceTaskTemplateId": "task-template:sdxl-pag-controlnet-canny:control-edit-image:v1", + "retainedGraphHash": "sha256:canonical-graph-v1:42c0dca0bd5a735551bed85d826240aecd5691b1a0ac0762470363013b07d1a6", + "originalReceiptSha256": "3dfdce82491a893be86fe27d00f8a1b9e5a6e3caddb5d3fa7a688b376106fded", + "reviewedTemplateSha256": "09f0d98df7f8807fd95a733b904b52dde05fd41d82f68c31369c3ff7c434120b", + "reviewedCatalogLock": { + "templateLockHash": "tpl_7b0a2c2f", + "galleryTemplateLockHash": "tpl_4a341313", + "promptSettingsHash": "ps_32f2125d" + }, + "promptSha256": "7304e072d0c5b618f301f8f663e4c512d390df517639a0b971ebe69157f2f3bf", + "inputSha256": "ff30b36f685b657db6de0cb59dff37601e147123ba19b9c42a32fc1060bd323e", + "inputLocatorSha256": "b966dd6c256b44b89c050faba78dd69ca11d01c3fa49897ca9f03a61dc3df64c", + "guideSha256": "64e81c4250408ca9a2ffc11e2987413096ae65674c2935a0417a351a50bb3ba4" } } diff --git a/config/template-asset-rights.v1.json b/config/template-asset-rights.v1.json index 2b54eb5d..ff429912 100644 --- a/config/template-asset-rights.v1.json +++ b/config/template-asset-rights.v1.json @@ -1,6 +1,6 @@ { "schemaVersion": 1, - "assetSetId": "sha256:canonical-json:e0bc710e59c6913a8e011a9bf904a4ea0dbe484a5b1ba87b0d5b2eddf5e73fed", + "assetSetId": "sha256:canonical-json:9cc2b2a8c2a8a6e7b667dacf0b1916d3831ef00d5f1cfdad7bb40f0dec1ff6c0", "records": [ { "path": "template-gallery/ace_step_audio_continuation.wav", @@ -482,6 +482,34 @@ "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", "provenanceTemplateId": "animatediff_ivory_balloon_blue_mountains" }, + { + "path": "template-gallery/animatediff_pag_snowmelt_over_river_stones.mp4", + "sha256": "sha256:bytes:89f219daf95b6017deaca023289cb1bb44d0e465195dae61b9bd0e64eabb9aef", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Exact approved file captured from a saved MoDiff workflow", + "sourceUrl": "https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14", + "sourceRevision": "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14", + "sourceLicense": "Maintainer-authorized file with publisher terms retained", + "modelTerms": [ + "https://huggingface.co/guoyww/animatediff-motion-adapter-v1-5-2/tree/6167b88ffe39b4441fdf2113e77b99a6f56b7906", + "https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14" + ], + "aiGenerated": true, + "humanLikenessConsent": "synthetic", + "marks": [], + "requiredAttribution": [ + "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14 https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "aeba59d388381d75a2935a470ac831faabbd1f0b0be51af0bca839e601c1d034", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "animatediff_pag_snowmelt_over_river_stones" + }, { "path": "template-gallery/animatediff_red_tram_in_watercolor.mp4", "sha256": "sha256:bytes:88ddfb68b18872e653bcc7c9c05299f7e84186e3d54ac6f31c33ea9390c1e3be", @@ -536,6 +564,34 @@ "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", "provenanceTemplateId": "animatediff_red_tram_through_snow" }, + { + "path": "template-gallery/animatelcm_sunlit_surf.mp4", + "sha256": "sha256:bytes:f3d865965b9a15d9688a1c1944e530bdcccff14e6c7792efe2069ef042f80926", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Exact approved file captured from a saved MoDiff workflow", + "sourceUrl": "https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14", + "sourceRevision": "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14", + "sourceLicense": "Maintainer-authorized file with publisher terms retained", + "modelTerms": [ + "https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14", + "https://huggingface.co/wangfuyun/AnimateLCM/tree/3d4d00fc113225e1040f4d3bec504b6ec750c10c" + ], + "aiGenerated": true, + "humanLikenessConsent": "synthetic", + "marks": [], + "requiredAttribution": [ + "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14 https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "aeba59d388381d75a2935a470ac831faabbd1f0b0be51af0bca839e601c1d034", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "animatelcm_sunlit_surf" + }, { "path": "template-gallery/bookshop_at_blue_hour.webp", "sha256": "sha256:bytes:ff045be510a0e88cbab69bbe8c3794dd26bd19036bdec26a63a5b6ea5a11bc66", @@ -644,6 +700,33 @@ "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", "provenanceTemplateId": "chroma_alpine_block_print" }, + { + "path": "template-gallery/chroma_copper_medallion_outpaint.webp", + "sha256": "sha256:bytes:c81e3852d6455e213f25a3da135b7a66f65e1aec3477a1a21335606a3259775f", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Exact approved file captured from a saved MoDiff workflow", + "sourceUrl": "https://huggingface.co/lodestones/Chroma1-HD/tree/0e0c60ece1e82b17cb7f77342d765ba5024c40c0", + "sourceRevision": "lodestones/Chroma1-HD@0e0c60ece1e82b17cb7f77342d765ba5024c40c0", + "sourceLicense": "Maintainer-authorized file with publisher terms retained", + "modelTerms": [ + "https://huggingface.co/lodestones/Chroma1-HD/tree/0e0c60ece1e82b17cb7f77342d765ba5024c40c0" + ], + "aiGenerated": true, + "humanLikenessConsent": "synthetic", + "marks": [], + "requiredAttribution": [ + "lodestones/Chroma1-HD@0e0c60ece1e82b17cb7f77342d765ba5024c40c0 https://huggingface.co/lodestones/Chroma1-HD/tree/0e0c60ece1e82b17cb7f77342d765ba5024c40c0" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "aeba59d388381d75a2935a470ac831faabbd1f0b0be51af0bca839e601c1d034", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "chroma_copper_medallion_outpaint" + }, { "path": "template-gallery/chroma_restored_cobalt_backdrop.webp", "sha256": "sha256:bytes:66e00fa95a61ab9d0f77bce099476dd8ffc569697fe59fb509e8c589402dad9b", @@ -1497,6 +1580,33 @@ "humanApprovalPacketSHA256": "351d122936dc8df9c3fb6217005641dd2cc2ecddc39cd7cd7fadc2939def70b3", "provenanceTemplateId": "flux_dev_expert_text_to_image" }, + { + "path": "template-gallery/flux_dev_forest_green_teapot.webp", + "sha256": "sha256:bytes:43d9a0136c684014d436b8f01142ac239e2833d76b3c071a41df747fa3656565", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Exact approved file captured from a saved MoDiff workflow", + "sourceUrl": "https://huggingface.co/black-forest-labs/FLUX.1-dev/tree/3de623fc3c33e44ffbe2bad470d0f45bccf2eb21", + "sourceRevision": "black-forest-labs/FLUX.1-dev@3de623fc3c33e44ffbe2bad470d0f45bccf2eb21", + "sourceLicense": "Maintainer-authorized file with publisher terms retained", + "modelTerms": [ + "Publisher model terms at https://huggingface.co/black-forest-labs/FLUX.1-dev/tree/3de623fc3c33e44ffbe2bad470d0f45bccf2eb21" + ], + "aiGenerated": true, + "humanLikenessConsent": "synthetic", + "marks": [], + "requiredAttribution": [ + "black-forest-labs/FLUX.1-dev@3de623fc3c33e44ffbe2bad470d0f45bccf2eb21 https://huggingface.co/black-forest-labs/FLUX.1-dev/tree/3de623fc3c33e44ffbe2bad470d0f45bccf2eb21" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "aeba59d388381d75a2935a470ac831faabbd1f0b0be51af0bca839e601c1d034", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "flux_dev_forest_green_teapot" + }, { "path": "template-gallery/flux_fill_inpaint.webp", "sha256": "sha256:bytes:edad9352bd415cd468829ad139fc8d201d3e067d7a9d174d790f6dae4f09fc15", @@ -1602,6 +1712,33 @@ "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", "provenanceTemplateId": "flux_klein_open_glacial_lake" }, + { + "path": "template-gallery/flux_kontext_bookshop_clear_glass.webp", + "sha256": "sha256:bytes:ec9c8cb45d16a96a87ce1cfba214dbbb14693125c9b16d3bc75d25a502e61788", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Exact approved file captured from a saved MoDiff workflow", + "sourceUrl": "https://huggingface.co/black-forest-labs/FLUX.1-Kontext-dev/tree/24e9dedc4ef646698dc8eb4e18ae2cec3c9fea0d", + "sourceRevision": "black-forest-labs/FLUX.1-Kontext-dev@24e9dedc4ef646698dc8eb4e18ae2cec3c9fea0d", + "sourceLicense": "Maintainer-authorized file with publisher terms retained", + "modelTerms": [ + "https://huggingface.co/black-forest-labs/FLUX.1-Kontext-dev/blob/24e9dedc4ef646698dc8eb4e18ae2cec3c9fea0d/LICENSE.md" + ], + "aiGenerated": true, + "humanLikenessConsent": "synthetic", + "marks": [], + "requiredAttribution": [ + "black-forest-labs/FLUX.1-Kontext-dev@24e9dedc4ef646698dc8eb4e18ae2cec3c9fea0d https://huggingface.co/black-forest-labs/FLUX.1-Kontext-dev/tree/24e9dedc4ef646698dc8eb4e18ae2cec3c9fea0d" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "aeba59d388381d75a2935a470ac831faabbd1f0b0be51af0bca839e601c1d034", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "flux_kontext_bookshop_clear_glass" + }, { "creatorOrRightsholder": "MoDiff project maintainers, subject to previously approved synthetic source rights and recorded model terms", "creationMethod": "Native local AI-generated output or exact deterministic layer-sheet derivative; original approved bytes retained", @@ -4354,6 +4491,33 @@ "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", "provenanceTemplateId": "chroma_alpine_block_print" }, + { + "path": "template-gallery/inputs/chroma_copper_medallion_outpaint.before.png", + "sha256": "sha256:bytes:a8aaf9be57bc6bab356c5c1f9b76a1458e7e85e9daf6681e7e38a28fc28e1535", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Exact approved file captured from a saved MoDiff workflow", + "sourceUrl": "https://huggingface.co/lodestones/Chroma1-HD/tree/0e0c60ece1e82b17cb7f77342d765ba5024c40c0", + "sourceRevision": "lodestones/Chroma1-HD@0e0c60ece1e82b17cb7f77342d765ba5024c40c0", + "sourceLicense": "Maintainer-authorized file with publisher terms retained", + "modelTerms": [ + "https://huggingface.co/lodestones/Chroma1-HD/tree/0e0c60ece1e82b17cb7f77342d765ba5024c40c0" + ], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "lodestones/Chroma1-HD@0e0c60ece1e82b17cb7f77342d765ba5024c40c0 https://huggingface.co/lodestones/Chroma1-HD/tree/0e0c60ece1e82b17cb7f77342d765ba5024c40c0" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "aeba59d388381d75a2935a470ac831faabbd1f0b0be51af0bca839e601c1d034", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "chroma_copper_medallion_outpaint" + }, { "path": "template-gallery/inputs/chroma_restored_cobalt_backdrop.before.png", "sha256": "sha256:bytes:e75c20f0e8a74e283b996bf526e6ea74535ed24125ad97c2d92508d3435d7a87", @@ -4891,6 +5055,33 @@ "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", "provenanceTemplateId": "flux_depth_marine_bow_repair" }, + { + "path": "template-gallery/inputs/flux_dev_forest_green_teapot.before.webp", + "sha256": "sha256:bytes:443062a26e22e3542e284f50d0274b7c70b881b3cce76568eb8eb22ce4c396d6", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Exact approved file captured from a saved MoDiff workflow", + "sourceUrl": "https://huggingface.co/black-forest-labs/FLUX.1-dev/tree/3de623fc3c33e44ffbe2bad470d0f45bccf2eb21", + "sourceRevision": "black-forest-labs/FLUX.1-dev@3de623fc3c33e44ffbe2bad470d0f45bccf2eb21", + "sourceLicense": "Maintainer-authorized file with publisher terms retained", + "modelTerms": [ + "Publisher model terms at https://huggingface.co/black-forest-labs/FLUX.1-dev/tree/3de623fc3c33e44ffbe2bad470d0f45bccf2eb21" + ], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "black-forest-labs/FLUX.1-dev@3de623fc3c33e44ffbe2bad470d0f45bccf2eb21 https://huggingface.co/black-forest-labs/FLUX.1-dev/tree/3de623fc3c33e44ffbe2bad470d0f45bccf2eb21" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "aeba59d388381d75a2935a470ac831faabbd1f0b0be51af0bca839e601c1d034", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "flux_dev_forest_green_teapot" + }, { "path": "template-gallery/inputs/flux_fill_inpaint.before.webp", "sha256": "sha256:bytes:b7c221b367738177e32fece56067d743df96282a6ccb2afd040ee89ea0a8f678", @@ -5024,6 +5215,60 @@ "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", "provenanceTemplateId": "flux_klein_open_glacial_lake" }, + { + "path": "template-gallery/inputs/flux_kontext_bookshop_clear_glass.before.webp", + "sha256": "sha256:bytes:ff045be510a0e88cbab69bbe8c3794dd26bd19036bdec26a63a5b6ea5a11bc66", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Exact approved file captured from a saved MoDiff workflow", + "sourceUrl": "https://huggingface.co/black-forest-labs/FLUX.1-Kontext-dev/tree/24e9dedc4ef646698dc8eb4e18ae2cec3c9fea0d", + "sourceRevision": "black-forest-labs/FLUX.1-Kontext-dev@24e9dedc4ef646698dc8eb4e18ae2cec3c9fea0d", + "sourceLicense": "Maintainer-authorized file with publisher terms retained", + "modelTerms": [ + "https://huggingface.co/black-forest-labs/FLUX.1-Kontext-dev/blob/24e9dedc4ef646698dc8eb4e18ae2cec3c9fea0d/LICENSE.md" + ], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "black-forest-labs/FLUX.1-Kontext-dev@24e9dedc4ef646698dc8eb4e18ae2cec3c9fea0d https://huggingface.co/black-forest-labs/FLUX.1-Kontext-dev/tree/24e9dedc4ef646698dc8eb4e18ae2cec3c9fea0d" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "aeba59d388381d75a2935a470ac831faabbd1f0b0be51af0bca839e601c1d034", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "flux_kontext_bookshop_clear_glass" + }, + { + "path": "template-gallery/inputs/flux_kontext_bookshop_clear_glass.mask.png", + "sha256": "sha256:bytes:6f9114963580bd8942bc25e31e67a7fa2f7fdea73c775dd49bb9972c65829578", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Exact approved file captured from a saved MoDiff workflow", + "sourceUrl": "https://huggingface.co/black-forest-labs/FLUX.1-Kontext-dev/tree/24e9dedc4ef646698dc8eb4e18ae2cec3c9fea0d", + "sourceRevision": "black-forest-labs/FLUX.1-Kontext-dev@24e9dedc4ef646698dc8eb4e18ae2cec3c9fea0d", + "sourceLicense": "Maintainer-authorized file with publisher terms retained", + "modelTerms": [ + "https://huggingface.co/black-forest-labs/FLUX.1-Kontext-dev/blob/24e9dedc4ef646698dc8eb4e18ae2cec3c9fea0d/LICENSE.md" + ], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "black-forest-labs/FLUX.1-Kontext-dev@24e9dedc4ef646698dc8eb4e18ae2cec3c9fea0d https://huggingface.co/black-forest-labs/FLUX.1-Kontext-dev/tree/24e9dedc4ef646698dc8eb4e18ae2cec3c9fea0d" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "aeba59d388381d75a2935a470ac831faabbd1f0b0be51af0bca839e601c1d034", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "flux_kontext_bookshop_clear_glass" + }, { "path": "template-gallery/inputs/flux_kontext_edit.before.webp", "sha256": "sha256:bytes:a7b61f36043354596eb01e702474300b222cb32e304bcf259506cad03917ce9b", @@ -5405,48 +5650,129 @@ "provenanceTemplateId": "longcat_clear_glass_at_the_bookshop" }, { - "path": "template-gallery/inputs/ltx_boardwalk_tracking.end.webp", - "sha256": "sha256:bytes:52ea89c0cdec3142162156be07af12a06a14ad623b68c9700ccbc82bf889100d", + "path": "template-gallery/inputs/ltx2_enamel_teapot_window_light.first.png", + "sha256": "sha256:bytes:7be24582bd4f26633a636c4110e38baecd94e6c6b3fd35450848f97bc07f2855", "publishDecision": "approved", "holdReason": null, - "creatorOrRightsholder": "MoDiff project maintainers, subject to the recorded source and model terms", - "creationMethod": "AI-generated Gallery media or deterministic derivative", - "sourceUrl": null, - "sourceRevision": null, - "sourceLicense": "Original generation or recorded workflow input; see modelTerms", + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Exact approved file captured from a saved MoDiff workflow", + "sourceUrl": "https://huggingface.co/Lightricks/LTX-2/tree/47da56e2ad66ce4125a9922b4a8826bf407f9d0a", + "sourceRevision": "Lightricks/LTX-2@47da56e2ad66ce4125a9922b4a8826bf407f9d0a", + "sourceLicense": "Maintainer-authorized file with publisher terms retained", "modelTerms": [ - "Independent Gallery media: exact generation model was not captured in checked provenance; human output-rights attestation required." + "https://huggingface.co/Lightricks/LTX-2/blob/47da56e2ad66ce4125a9922b4a8826bf407f9d0a/LICENSE" ], - "aiGenerated": true, - "humanLikenessConsent": "synthetic", + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", "marks": [], - "requiredAttribution": [], - "assetLicense": "MoDiff-Gallery-Restricted-1.0", - "reviewedBy": "SOURAV DAS", - "reviewedAt": "2026-08-03", - "reviewClass": "standard-human-attestation" + "requiredAttribution": [ + "Lightricks/LTX-2@47da56e2ad66ce4125a9922b4a8826bf407f9d0a https://huggingface.co/Lightricks/LTX-2/tree/47da56e2ad66ce4125a9922b4a8826bf407f9d0a" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "aeba59d388381d75a2935a470ac831faabbd1f0b0be51af0bca839e601c1d034", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "ltx2_enamel_teapot_window_light" }, { - "path": "template-gallery/inputs/ltx_boardwalk_tracking.start.webp", - "sha256": "sha256:bytes:73123a5bb6e8c1367eced6a7fbee6b0e5500ecbabf769ba9d9c18fd10623e36e", + "path": "template-gallery/inputs/ltx2_glasshouse_drip.first.png", + "sha256": "sha256:bytes:124d647abcc3d14dcd8388d749814e0b11bc5df820d126e9542ca2f333f73c73", "publishDecision": "approved", "holdReason": null, - "creatorOrRightsholder": "MoDiff project maintainers, subject to the recorded source and model terms", - "creationMethod": "AI-generated Gallery media or deterministic derivative", - "sourceUrl": null, - "sourceRevision": null, - "sourceLicense": "Original generation or recorded workflow input; see modelTerms", + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Exact approved file captured from a saved MoDiff workflow", + "sourceUrl": "https://huggingface.co/Lightricks/LTX-2/tree/47da56e2ad66ce4125a9922b4a8826bf407f9d0a", + "sourceRevision": "Lightricks/LTX-2@47da56e2ad66ce4125a9922b4a8826bf407f9d0a", + "sourceLicense": "Maintainer-authorized file with publisher terms retained", "modelTerms": [ - "Independent Gallery media: exact generation model was not captured in checked provenance; human output-rights attestation required." + "https://huggingface.co/Lightricks/LTX-2/tree/47da56e2ad66ce4125a9922b4a8826bf407f9d0a" ], - "aiGenerated": true, - "humanLikenessConsent": "synthetic", + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", "marks": [], - "requiredAttribution": [], - "assetLicense": "MoDiff-Gallery-Restricted-1.0", - "reviewedBy": "SOURAV DAS", - "reviewedAt": "2026-08-03", - "reviewClass": "standard-human-attestation" + "requiredAttribution": [ + "Lightricks/LTX-2@47da56e2ad66ce4125a9922b4a8826bf407f9d0a https://huggingface.co/Lightricks/LTX-2/tree/47da56e2ad66ce4125a9922b4a8826bf407f9d0a" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "aeba59d388381d75a2935a470ac831faabbd1f0b0be51af0bca839e601c1d034", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "ltx2_glasshouse_drip" + }, + { + "path": "template-gallery/inputs/ltx2_moss_and_basalt.before.mp4", + "sha256": "sha256:bytes:3b5e40ac2bf76236d1f901a7a2522addd7c4a1b2701bd89a33c1506b1523bc38", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Exact approved file captured from a saved MoDiff workflow", + "sourceUrl": "https://huggingface.co/Lightricks/LTX-2/tree/47da56e2ad66ce4125a9922b4a8826bf407f9d0a", + "sourceRevision": "Lightricks/LTX-2@47da56e2ad66ce4125a9922b4a8826bf407f9d0a", + "sourceLicense": "Maintainer-authorized file with publisher terms retained", + "modelTerms": [ + "https://huggingface.co/Lightricks/LTX-2/blob/47da56e2ad66ce4125a9922b4a8826bf407f9d0a/LICENSE" + ], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "Lightricks/LTX-2@47da56e2ad66ce4125a9922b4a8826bf407f9d0a https://huggingface.co/Lightricks/LTX-2/tree/47da56e2ad66ce4125a9922b4a8826bf407f9d0a" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "aeba59d388381d75a2935a470ac831faabbd1f0b0be51af0bca839e601c1d034", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "ltx2_moss_and_basalt" + }, + { + "path": "template-gallery/inputs/ltx_boardwalk_tracking.end.webp", + "sha256": "sha256:bytes:52ea89c0cdec3142162156be07af12a06a14ad623b68c9700ccbc82bf889100d", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, subject to the recorded source and model terms", + "creationMethod": "AI-generated Gallery media or deterministic derivative", + "sourceUrl": null, + "sourceRevision": null, + "sourceLicense": "Original generation or recorded workflow input; see modelTerms", + "modelTerms": [ + "Independent Gallery media: exact generation model was not captured in checked provenance; human output-rights attestation required." + ], + "aiGenerated": true, + "humanLikenessConsent": "synthetic", + "marks": [], + "requiredAttribution": [], + "assetLicense": "MoDiff-Gallery-Restricted-1.0", + "reviewedBy": "SOURAV DAS", + "reviewedAt": "2026-08-03", + "reviewClass": "standard-human-attestation" + }, + { + "path": "template-gallery/inputs/ltx_boardwalk_tracking.start.webp", + "sha256": "sha256:bytes:73123a5bb6e8c1367eced6a7fbee6b0e5500ecbabf769ba9d9c18fd10623e36e", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, subject to the recorded source and model terms", + "creationMethod": "AI-generated Gallery media or deterministic derivative", + "sourceUrl": null, + "sourceRevision": null, + "sourceLicense": "Original generation or recorded workflow input; see modelTerms", + "modelTerms": [ + "Independent Gallery media: exact generation model was not captured in checked provenance; human output-rights attestation required." + ], + "aiGenerated": true, + "humanLikenessConsent": "synthetic", + "marks": [], + "requiredAttribution": [], + "assetLicense": "MoDiff-Gallery-Restricted-1.0", + "reviewedBy": "SOURAV DAS", + "reviewedAt": "2026-08-03", + "reviewClass": "standard-human-attestation" }, { "path": "template-gallery/inputs/ltx_video_image_to_video.before.webp", @@ -7135,6 +7461,33 @@ "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", "provenanceTemplateId": "sdxl_pag_cobalt_wall" }, + { + "path": "template-gallery/inputs/sdxl_pag_lighthouse_in_graphite.before.png", + "sha256": "sha256:bytes:4cbc984b44c398b6e92b4350513d3543139e9dffe01a38857845c8a7698272c8", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Exact approved file captured from a saved MoDiff workflow", + "sourceUrl": "https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b", + "sourceRevision": "stabilityai/stable-diffusion-xl-base-1.0@462165984030d82259a11f4367a4eed129e94a7b", + "sourceLicense": "Maintainer-authorized file with publisher terms retained", + "modelTerms": [ + "https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b" + ], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "stabilityai/stable-diffusion-xl-base-1.0@462165984030d82259a11f4367a4eed129e94a7b https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "aeba59d388381d75a2935a470ac831faabbd1f0b0be51af0bca839e601c1d034", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "sdxl_pag_lighthouse_in_graphite" + }, { "path": "template-gallery/inputs/sdxl_pag_snow_cabin.before.png", "sha256": "sha256:bytes:ca250462efc77625134ebe305b2ee67281a1dcf8919e45299c648f0fdacf919a", @@ -7162,6 +7515,62 @@ "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", "provenanceTemplateId": "sdxl_pag_snow_cabin" }, + { + "path": "template-gallery/inputs/sdxl_pag_two_tier_cobalt_glass.before.png", + "sha256": "sha256:bytes:ff30b36f685b657db6de0cb59dff37601e147123ba19b9c42a32fc1060bd323e", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Exact approved file captured from a saved MoDiff workflow", + "sourceUrl": "https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b", + "sourceRevision": "stabilityai/stable-diffusion-xl-base-1.0@462165984030d82259a11f4367a4eed129e94a7b", + "sourceLicense": "Maintainer-authorized file with publisher terms retained", + "modelTerms": [ + "https://huggingface.co/diffusers/controlnet-canny-sdxl-1.0/tree/eb115a19a10d14909256db740ed109532ab1483c", + "https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b" + ], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "stabilityai/stable-diffusion-xl-base-1.0@462165984030d82259a11f4367a4eed129e94a7b https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "aeba59d388381d75a2935a470ac831faabbd1f0b0be51af0bca839e601c1d034", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "sdxl_pag_two_tier_cobalt_glass" + }, + { + "path": "template-gallery/inputs/sdxl_pag_two_tier_cobalt_glass.guide.png", + "sha256": "sha256:bytes:64e81c4250408ca9a2ffc11e2987413096ae65674c2935a0417a351a50bb3ba4", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Exact approved file captured from a saved MoDiff workflow", + "sourceUrl": "https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b", + "sourceRevision": "stabilityai/stable-diffusion-xl-base-1.0@462165984030d82259a11f4367a4eed129e94a7b", + "sourceLicense": "Maintainer-authorized file with publisher terms retained", + "modelTerms": [ + "https://huggingface.co/diffusers/controlnet-canny-sdxl-1.0/tree/eb115a19a10d14909256db740ed109532ab1483c", + "https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b" + ], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "stabilityai/stable-diffusion-xl-base-1.0@462165984030d82259a11f4367a4eed129e94a7b https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "aeba59d388381d75a2935a470ac831faabbd1f0b0be51af0bca839e601c1d034", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "sdxl_pag_two_tier_cobalt_glass" + }, { "path": "template-gallery/inputs/sdxl_pix2pix_pale_amber_glass.before.png", "sha256": "sha256:bytes:ebaca95f96d1573e4292ffc65c78eb0dcf8ff9cc8b5a7e11ec81face61b160fb", @@ -7401,6 +7810,87 @@ "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", "provenanceTemplateId": "wan_animate_glasshouse_keeper" }, + { + "path": "template-gallery/inputs/wan_animate_signal_through_the_rain.face.mp4", + "sha256": "sha256:bytes:523c3b8d098977aa228f4319b81e675cb31ea96394eda45125dbfa24721d0d68", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Exact approved file captured from a saved MoDiff workflow", + "sourceUrl": "https://huggingface.co/Wan-AI/Wan2.2-Animate-14B-Diffusers/tree/6f4df10861c758af86ac3c979aacc1bf5c03eff0", + "sourceRevision": "Wan-AI/Wan2.2-Animate-14B-Diffusers@6f4df10861c758af86ac3c979aacc1bf5c03eff0", + "sourceLicense": "Maintainer-authorized file with publisher terms retained", + "modelTerms": [ + "https://huggingface.co/Wan-AI/Wan2.2-Animate-14B-Diffusers/tree/6f4df10861c758af86ac3c979aacc1bf5c03eff0" + ], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "Wan-AI/Wan2.2-Animate-14B-Diffusers@6f4df10861c758af86ac3c979aacc1bf5c03eff0 https://huggingface.co/Wan-AI/Wan2.2-Animate-14B-Diffusers/tree/6f4df10861c758af86ac3c979aacc1bf5c03eff0" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "aeba59d388381d75a2935a470ac831faabbd1f0b0be51af0bca839e601c1d034", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "wan_animate_signal_through_the_rain" + }, + { + "path": "template-gallery/inputs/wan_animate_signal_through_the_rain.first.png", + "sha256": "sha256:bytes:5e73a03d1c557ef5572faad8f7b270ceb33be54e311982450fb5df2ba799d668", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Exact approved file captured from a saved MoDiff workflow", + "sourceUrl": "https://huggingface.co/Wan-AI/Wan2.2-Animate-14B-Diffusers/tree/6f4df10861c758af86ac3c979aacc1bf5c03eff0", + "sourceRevision": "Wan-AI/Wan2.2-Animate-14B-Diffusers@6f4df10861c758af86ac3c979aacc1bf5c03eff0", + "sourceLicense": "Maintainer-authorized file with publisher terms retained", + "modelTerms": [ + "https://huggingface.co/Wan-AI/Wan2.2-Animate-14B-Diffusers/tree/6f4df10861c758af86ac3c979aacc1bf5c03eff0" + ], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "Wan-AI/Wan2.2-Animate-14B-Diffusers@6f4df10861c758af86ac3c979aacc1bf5c03eff0 https://huggingface.co/Wan-AI/Wan2.2-Animate-14B-Diffusers/tree/6f4df10861c758af86ac3c979aacc1bf5c03eff0" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "aeba59d388381d75a2935a470ac831faabbd1f0b0be51af0bca839e601c1d034", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "wan_animate_signal_through_the_rain" + }, + { + "path": "template-gallery/inputs/wan_animate_signal_through_the_rain.pose.mp4", + "sha256": "sha256:bytes:2fd6db2696b9a6bc7457bb8b747af5cd7ec4ec5603e86b06f01e591f17ed39f2", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Exact approved file captured from a saved MoDiff workflow", + "sourceUrl": "https://huggingface.co/Wan-AI/Wan2.2-Animate-14B-Diffusers/tree/6f4df10861c758af86ac3c979aacc1bf5c03eff0", + "sourceRevision": "Wan-AI/Wan2.2-Animate-14B-Diffusers@6f4df10861c758af86ac3c979aacc1bf5c03eff0", + "sourceLicense": "Maintainer-authorized file with publisher terms retained", + "modelTerms": [ + "https://huggingface.co/Wan-AI/Wan2.2-Animate-14B-Diffusers/tree/6f4df10861c758af86ac3c979aacc1bf5c03eff0" + ], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "Wan-AI/Wan2.2-Animate-14B-Diffusers@6f4df10861c758af86ac3c979aacc1bf5c03eff0 https://huggingface.co/Wan-AI/Wan2.2-Animate-14B-Diffusers/tree/6f4df10861c758af86ac3c979aacc1bf5c03eff0" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "aeba59d388381d75a2935a470ac831faabbd1f0b0be51af0bca839e601c1d034", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "wan_animate_signal_through_the_rain" + }, { "path": "template-gallery/inputs/wan_flf_blue_hour_at_the_tram_shelter.first.png", "sha256": "sha256:bytes:6d2c561cf33919ae42e773d95a0232799da3f2b92a23a94dad80902cfb73527a", @@ -7941,6 +8431,33 @@ "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", "provenanceTemplateId": "kontext_wide_water_alpine_ridge" }, + { + "path": "template-gallery/latte_water_folding_over_slate.mp4", + "sha256": "sha256:bytes:97cd72f79c9389e0c4f502be0759f4764e00861217cee1e11ce563b54d2d86b8", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Exact approved file captured from a saved MoDiff workflow", + "sourceUrl": "https://huggingface.co/maxin-cn/Latte-1/tree/0653024365272f061fc44d1078134df22842b687", + "sourceRevision": "maxin-cn/Latte-1@0653024365272f061fc44d1078134df22842b687", + "sourceLicense": "Maintainer-authorized file with publisher terms retained", + "modelTerms": [ + "https://huggingface.co/maxin-cn/Latte-1/tree/0653024365272f061fc44d1078134df22842b687" + ], + "aiGenerated": true, + "humanLikenessConsent": "synthetic", + "marks": [], + "requiredAttribution": [ + "maxin-cn/Latte-1@0653024365272f061fc44d1078134df22842b687 https://huggingface.co/maxin-cn/Latte-1/tree/0653024365272f061fc44d1078134df22842b687" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "aeba59d388381d75a2935a470ac831faabbd1f0b0be51af0bca839e601c1d034", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "latte_water_folding_over_slate" + }, { "creatorOrRightsholder": "MoDiff project maintainers, subject to previously approved synthetic source rights and recorded model terms", "creationMethod": "Native local AI-generated output or exact deterministic layer-sheet derivative; original approved bytes retained", @@ -8340,38 +8857,173 @@ "provenanceTemplateId": "low_vram" }, { - "path": "template-gallery/ltx_video_animated_story.card-poster.png", - "sha256": "sha256:bytes:fcd07a3c5a3e8df1890f1dd98f72746a67025a7bf3c4f6559026b24a8afa445c", + "path": "template-gallery/ltx2_enamel_teapot_window_light.mp4", + "sha256": "sha256:bytes:de941b83125f6a84a29c978f968541028dd6c1e41b5e3c4c95ba686ccb69274f", "publishDecision": "approved", "holdReason": null, - "creatorOrRightsholder": "MoDiff project maintainers, subject to the recorded source and model terms", - "creationMethod": "AI-generated Gallery media or deterministic derivative", - "sourceUrl": "https://huggingface.co/Lightricks/LTX-Video-0.9.8-13B-distilled/tree/7c64400e1861cc0d7b98d570a1926d5408ec60cd", - "sourceRevision": "Lightricks/LTX-Video-0.9.8-13B-distilled@7c64400e1861cc0d7b98d570a1926d5408ec60cd | nateraw/real-esrgan@42efb9c3eeed1f5c0c8a626cf5f7f4481dfbb094", - "sourceLicense": "Original generation or recorded workflow input; see modelTerms", + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Exact approved file captured from a saved MoDiff workflow", + "sourceUrl": "https://huggingface.co/Lightricks/LTX-2/tree/47da56e2ad66ce4125a9922b4a8826bf407f9d0a", + "sourceRevision": "Lightricks/LTX-2@47da56e2ad66ce4125a9922b4a8826bf407f9d0a", + "sourceLicense": "Maintainer-authorized file with publisher terms retained", "modelTerms": [ - "Lightricks/LTX-Video-0.9.8-13B-distilled: LTXV Open Weights License 0.X; https://huggingface.co/Lightricks/LTX-Video-0.9.8-13B-distilled/tree/7c64400e1861cc0d7b98d570a1926d5408ec60cd", - "nateraw/real-esrgan: BSD-3-Clause; https://huggingface.co/nateraw/real-esrgan/tree/42efb9c3eeed1f5c0c8a626cf5f7f4481dfbb094" + "https://huggingface.co/Lightricks/LTX-2/blob/47da56e2ad66ce4125a9922b4a8826bf407f9d0a/LICENSE" ], "aiGenerated": true, "humanLikenessConsent": "synthetic", "marks": [], - "requiredAttribution": [], - "assetLicense": "MoDiff-Gallery-Restricted-1.0", - "reviewedBy": "SOURAV DAS", - "reviewedAt": "2026-08-03", - "reviewClass": "standard-human-attestation", - "provenanceTemplateId": "ltx_video_animated_story" + "requiredAttribution": [ + "Lightricks/LTX-2@47da56e2ad66ce4125a9922b4a8826bf407f9d0a https://huggingface.co/Lightricks/LTX-2/tree/47da56e2ad66ce4125a9922b4a8826bf407f9d0a" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "aeba59d388381d75a2935a470ac831faabbd1f0b0be51af0bca839e601c1d034", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "ltx2_enamel_teapot_window_light" }, { - "creatorOrRightsholder": "MoDiff project maintainers, subject to the approved synthetic source and recorded model terms", - "creationMethod": "Maintainer-accepted native local AI-generated output or deterministic poster/card derivative; original full media is unchanged", - "sourceUrl": "https://huggingface.co/Lightricks/LTX-Video-0.9.8-13B-distilled/tree/7c64400e1861cc0d7b98d570a1926d5408ec60cd", - "sourceRevision": "Lightricks/LTX-Video-0.9.8-13B-distilled@7c64400e1861cc0d7b98d570a1926d5408ec60cd | nateraw/real-esrgan@42efb9c3eeed1f5c0c8a626cf5f7f4481dfbb094", - "sourceLicense": "Generated media; retained model and output terms apply", + "path": "template-gallery/ltx2_glasshouse_drip.mp4", + "sha256": "sha256:bytes:189410c3652a33b15d16ec0ad6c71b304d9ed2684f04247704202836d498b91c", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Exact approved file captured from a saved MoDiff workflow", + "sourceUrl": "https://huggingface.co/Lightricks/LTX-2/tree/47da56e2ad66ce4125a9922b4a8826bf407f9d0a", + "sourceRevision": "Lightricks/LTX-2@47da56e2ad66ce4125a9922b4a8826bf407f9d0a", + "sourceLicense": "Maintainer-authorized file with publisher terms retained", "modelTerms": [ - "Lightricks/LTX-Video-0.9.8-13B-distilled: LTX-Video Open Weights License and output provisions; https://huggingface.co/Lightricks/LTX-Video-0.9.8-13B-distilled/tree/7c64400e1861cc0d7b98d570a1926d5408ec60cd", - "nateraw/real-esrgan: BSD-3-Clause model terms; https://huggingface.co/nateraw/real-esrgan/tree/42efb9c3eeed1f5c0c8a626cf5f7f4481dfbb094" + "https://huggingface.co/Lightricks/LTX-2/tree/47da56e2ad66ce4125a9922b4a8826bf407f9d0a" + ], + "aiGenerated": true, + "humanLikenessConsent": "synthetic", + "marks": [], + "requiredAttribution": [ + "Lightricks/LTX-2@47da56e2ad66ce4125a9922b4a8826bf407f9d0a https://huggingface.co/Lightricks/LTX-2/tree/47da56e2ad66ce4125a9922b4a8826bf407f9d0a" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "aeba59d388381d75a2935a470ac831faabbd1f0b0be51af0bca839e601c1d034", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "ltx2_glasshouse_drip" + }, + { + "path": "template-gallery/ltx2_kiln_at_first_light.mp4", + "sha256": "sha256:bytes:75c9bf0b44b5b4c7bcab8c8d7d1381d1b2695bc62d5a251916121c11b79178ed", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Exact approved file captured from a saved MoDiff workflow", + "sourceUrl": "https://huggingface.co/Lightricks/LTX-2/tree/47da56e2ad66ce4125a9922b4a8826bf407f9d0a", + "sourceRevision": "Lightricks/LTX-2@47da56e2ad66ce4125a9922b4a8826bf407f9d0a", + "sourceLicense": "Maintainer-authorized file with publisher terms retained", + "modelTerms": [ + "https://huggingface.co/Lightricks/LTX-2/tree/47da56e2ad66ce4125a9922b4a8826bf407f9d0a" + ], + "aiGenerated": true, + "humanLikenessConsent": "synthetic", + "marks": [], + "requiredAttribution": [ + "Lightricks/LTX-2@47da56e2ad66ce4125a9922b4a8826bf407f9d0a https://huggingface.co/Lightricks/LTX-2/tree/47da56e2ad66ce4125a9922b4a8826bf407f9d0a" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "aeba59d388381d75a2935a470ac831faabbd1f0b0be51af0bca839e601c1d034", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "ltx2_kiln_at_first_light" + }, + { + "path": "template-gallery/ltx2_moss_and_basalt.mp4", + "sha256": "sha256:bytes:e197eb3cb4ddaf13e4f0e4a71a4c92d30b1cae04dea651fd987213d84d262b09", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Exact approved file captured from a saved MoDiff workflow", + "sourceUrl": "https://huggingface.co/Lightricks/LTX-2/tree/47da56e2ad66ce4125a9922b4a8826bf407f9d0a", + "sourceRevision": "Lightricks/LTX-2@47da56e2ad66ce4125a9922b4a8826bf407f9d0a", + "sourceLicense": "Maintainer-authorized file with publisher terms retained", + "modelTerms": [ + "https://huggingface.co/Lightricks/LTX-2/blob/47da56e2ad66ce4125a9922b4a8826bf407f9d0a/LICENSE" + ], + "aiGenerated": true, + "humanLikenessConsent": "synthetic", + "marks": [], + "requiredAttribution": [ + "Lightricks/LTX-2@47da56e2ad66ce4125a9922b4a8826bf407f9d0a https://huggingface.co/Lightricks/LTX-2/tree/47da56e2ad66ce4125a9922b4a8826bf407f9d0a" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "aeba59d388381d75a2935a470ac831faabbd1f0b0be51af0bca839e601c1d034", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "ltx2_moss_and_basalt" + }, + { + "path": "template-gallery/ltx2_surf_below_the_breakwater.mp4", + "sha256": "sha256:bytes:a8d3e7c63417bad7a8a949738fe4cf6f5beb8aa1694476a5289e7037d64dfcd9", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Exact approved file captured from a saved MoDiff workflow", + "sourceUrl": "https://huggingface.co/Lightricks/LTX-2/tree/47da56e2ad66ce4125a9922b4a8826bf407f9d0a", + "sourceRevision": "Lightricks/LTX-2@47da56e2ad66ce4125a9922b4a8826bf407f9d0a", + "sourceLicense": "Maintainer-authorized file with publisher terms retained", + "modelTerms": [ + "https://huggingface.co/Lightricks/LTX-2/tree/47da56e2ad66ce4125a9922b4a8826bf407f9d0a" + ], + "aiGenerated": true, + "humanLikenessConsent": "synthetic", + "marks": [], + "requiredAttribution": [ + "Lightricks/LTX-2@47da56e2ad66ce4125a9922b4a8826bf407f9d0a https://huggingface.co/Lightricks/LTX-2/tree/47da56e2ad66ce4125a9922b4a8826bf407f9d0a" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "aeba59d388381d75a2935a470ac831faabbd1f0b0be51af0bca839e601c1d034", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "ltx2_surf_below_the_breakwater" + }, + { + "path": "template-gallery/ltx_video_animated_story.card-poster.png", + "sha256": "sha256:bytes:fcd07a3c5a3e8df1890f1dd98f72746a67025a7bf3c4f6559026b24a8afa445c", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, subject to the recorded source and model terms", + "creationMethod": "AI-generated Gallery media or deterministic derivative", + "sourceUrl": "https://huggingface.co/Lightricks/LTX-Video-0.9.8-13B-distilled/tree/7c64400e1861cc0d7b98d570a1926d5408ec60cd", + "sourceRevision": "Lightricks/LTX-Video-0.9.8-13B-distilled@7c64400e1861cc0d7b98d570a1926d5408ec60cd | nateraw/real-esrgan@42efb9c3eeed1f5c0c8a626cf5f7f4481dfbb094", + "sourceLicense": "Original generation or recorded workflow input; see modelTerms", + "modelTerms": [ + "Lightricks/LTX-Video-0.9.8-13B-distilled: LTXV Open Weights License 0.X; https://huggingface.co/Lightricks/LTX-Video-0.9.8-13B-distilled/tree/7c64400e1861cc0d7b98d570a1926d5408ec60cd", + "nateraw/real-esrgan: BSD-3-Clause; https://huggingface.co/nateraw/real-esrgan/tree/42efb9c3eeed1f5c0c8a626cf5f7f4481dfbb094" + ], + "aiGenerated": true, + "humanLikenessConsent": "synthetic", + "marks": [], + "requiredAttribution": [], + "assetLicense": "MoDiff-Gallery-Restricted-1.0", + "reviewedBy": "SOURAV DAS", + "reviewedAt": "2026-08-03", + "reviewClass": "standard-human-attestation", + "provenanceTemplateId": "ltx_video_animated_story" + }, + { + "creatorOrRightsholder": "MoDiff project maintainers, subject to the approved synthetic source and recorded model terms", + "creationMethod": "Maintainer-accepted native local AI-generated output or deterministic poster/card derivative; original full media is unchanged", + "sourceUrl": "https://huggingface.co/Lightricks/LTX-Video-0.9.8-13B-distilled/tree/7c64400e1861cc0d7b98d570a1926d5408ec60cd", + "sourceRevision": "Lightricks/LTX-Video-0.9.8-13B-distilled@7c64400e1861cc0d7b98d570a1926d5408ec60cd | nateraw/real-esrgan@42efb9c3eeed1f5c0c8a626cf5f7f4481dfbb094", + "sourceLicense": "Generated media; retained model and output terms apply", + "modelTerms": [ + "Lightricks/LTX-Video-0.9.8-13B-distilled: LTX-Video Open Weights License and output provisions; https://huggingface.co/Lightricks/LTX-Video-0.9.8-13B-distilled/tree/7c64400e1861cc0d7b98d570a1926d5408ec60cd", + "nateraw/real-esrgan: BSD-3-Clause model terms; https://huggingface.co/nateraw/real-esrgan/tree/42efb9c3eeed1f5c0c8a626cf5f7f4481dfbb094" ], "aiGenerated": true, "humanLikenessConsent": "not-applicable", @@ -8994,7 +9646,7 @@ }, { "path": "template-gallery/manifest.json", - "sha256": "sha256:bytes:100626a0d35d6d31c18d319b76965055e00968228edfb926c0469dfda09c6561", + "sha256": "sha256:bytes:aced8ad0f0bbd93c7c98853b8d17c72da6cbc1c276f77cf0b3becd1bf889867e", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", @@ -9011,7 +9663,7 @@ "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "36d1cce7283b4bbd6aaa87bb55573032136669d29808dca440378965a78c8217", + "humanApprovalPacketSHA256": "aeba59d388381d75a2935a470ac831faabbd1f0b0be51af0bca839e601c1d034", "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained." }, { @@ -11379,8 +12031,8 @@ "provenanceTemplateId": "animatediff_ivory_balloon_blue_mountains" }, { - "path": "template-gallery/reviews/animatediff_red_tram_in_watercolor.original-provenance.json", - "sha256": "sha256:bytes:e7a460bbb4657cda566f0c90b57d820aa0000785df2737e2ad7777296897f8a4", + "path": "template-gallery/reviews/animatediff_pag_snowmelt_over_river_stones.original-provenance.json", + "sha256": "sha256:bytes:73a4c1a10f0a30ae90014daf6f8d7c113138636fe1b533efe7bb1aa9a8fe4a7f", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", @@ -11389,7 +12041,8 @@ "sourceRevision": "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14", "sourceLicense": "MoDiff-authored Gallery metadata", "modelTerms": [ - "Publisher model terms at https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14" + "https://huggingface.co/guoyww/animatediff-motion-adapter-v1-5-2/tree/6167b88ffe39b4441fdf2113e77b99a6f56b7906", + "https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14" ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", @@ -11401,13 +12054,13 @@ "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "de8db2f2fa14b59514ea146654439aea279cc6fad5be1dca8cf17e057abe9945", + "humanApprovalPacketSHA256": "aeba59d388381d75a2935a470ac831faabbd1f0b0be51af0bca839e601c1d034", "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", - "provenanceTemplateId": "animatediff_red_tram_in_watercolor" + "provenanceTemplateId": "animatediff_pag_snowmelt_over_river_stones" }, { - "path": "template-gallery/reviews/animatediff_red_tram_in_watercolor.original-review.json", - "sha256": "sha256:bytes:5cc5387ab876b37c77b2f5885b7c2fc8948c048faee40d0a3748d670c7d46d9d", + "path": "template-gallery/reviews/animatediff_pag_snowmelt_over_river_stones.original-review.json", + "sha256": "sha256:bytes:19924850a8ecddec18e16ebe09af4050343b542b56bc5e5acd30e18976c8e6f9", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", @@ -11416,7 +12069,8 @@ "sourceRevision": "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14", "sourceLicense": "MoDiff-authored Gallery metadata", "modelTerms": [ - "Publisher model terms at https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14" + "https://huggingface.co/guoyww/animatediff-motion-adapter-v1-5-2/tree/6167b88ffe39b4441fdf2113e77b99a6f56b7906", + "https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14" ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", @@ -11428,13 +12082,13 @@ "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "de8db2f2fa14b59514ea146654439aea279cc6fad5be1dca8cf17e057abe9945", + "humanApprovalPacketSHA256": "aeba59d388381d75a2935a470ac831faabbd1f0b0be51af0bca839e601c1d034", "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", - "provenanceTemplateId": "animatediff_red_tram_in_watercolor" + "provenanceTemplateId": "animatediff_pag_snowmelt_over_river_stones" }, { - "path": "template-gallery/reviews/animatediff_red_tram_in_watercolor.quality-review.json", - "sha256": "sha256:bytes:3828845174e5702fe4a393a86bc6e7b5847f1c8639b23800d61c6e3633183261", + "path": "template-gallery/reviews/animatediff_pag_snowmelt_over_river_stones.quality-review.json", + "sha256": "sha256:bytes:278a3dd1683bbe793b8a0ba89d857cc3b2a46262b489f0dcc3e985188c5ffaf6", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", @@ -11443,7 +12097,8 @@ "sourceRevision": "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14", "sourceLicense": "MoDiff-authored Gallery metadata", "modelTerms": [ - "Publisher model terms at https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14" + "https://huggingface.co/guoyww/animatediff-motion-adapter-v1-5-2/tree/6167b88ffe39b4441fdf2113e77b99a6f56b7906", + "https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14" ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", @@ -11455,13 +12110,13 @@ "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "de8db2f2fa14b59514ea146654439aea279cc6fad5be1dca8cf17e057abe9945", + "humanApprovalPacketSHA256": "aeba59d388381d75a2935a470ac831faabbd1f0b0be51af0bca839e601c1d034", "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", - "provenanceTemplateId": "animatediff_red_tram_in_watercolor" + "provenanceTemplateId": "animatediff_pag_snowmelt_over_river_stones" }, { - "path": "template-gallery/reviews/animatediff_red_tram_in_watercolor.retained-template-provenance.json", - "sha256": "sha256:bytes:137902583abc832020f92f256050bc44104f0762360f470138e654746d278b59", + "path": "template-gallery/reviews/animatediff_pag_snowmelt_over_river_stones.retained-template-provenance.json", + "sha256": "sha256:bytes:9c3ffb884931cb7445f67de31986283eba87d34a67fcbd4212a17a48f324d46a", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", @@ -11470,7 +12125,8 @@ "sourceRevision": "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14", "sourceLicense": "MoDiff-authored Gallery metadata", "modelTerms": [ - "Publisher model terms at https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14" + "https://huggingface.co/guoyww/animatediff-motion-adapter-v1-5-2/tree/6167b88ffe39b4441fdf2113e77b99a6f56b7906", + "https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14" ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", @@ -11482,13 +12138,13 @@ "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "de8db2f2fa14b59514ea146654439aea279cc6fad5be1dca8cf17e057abe9945", + "humanApprovalPacketSHA256": "aeba59d388381d75a2935a470ac831faabbd1f0b0be51af0bca839e601c1d034", "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", - "provenanceTemplateId": "animatediff_red_tram_in_watercolor" + "provenanceTemplateId": "animatediff_pag_snowmelt_over_river_stones" }, { - "path": "template-gallery/reviews/animatediff_red_tram_through_snow.original-provenance.json", - "sha256": "sha256:bytes:b5198902e667bfa48b915027b301a3150ec994c44b132213c3c855b24e3f08f8", + "path": "template-gallery/reviews/animatediff_red_tram_in_watercolor.original-provenance.json", + "sha256": "sha256:bytes:e7a460bbb4657cda566f0c90b57d820aa0000785df2737e2ad7777296897f8a4", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", @@ -11511,11 +12167,11 @@ "reviewClass": "per-file-maintainer-accepted-retained-registration", "humanApprovalPacketSHA256": "de8db2f2fa14b59514ea146654439aea279cc6fad5be1dca8cf17e057abe9945", "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", - "provenanceTemplateId": "animatediff_red_tram_through_snow" + "provenanceTemplateId": "animatediff_red_tram_in_watercolor" }, { - "path": "template-gallery/reviews/animatediff_red_tram_through_snow.original-review.json", - "sha256": "sha256:bytes:eef73b832d4acfb53ca4d5ededbd580821d8d91ffb372fcdcfb55f5f469f33cc", + "path": "template-gallery/reviews/animatediff_red_tram_in_watercolor.original-review.json", + "sha256": "sha256:bytes:5cc5387ab876b37c77b2f5885b7c2fc8948c048faee40d0a3748d670c7d46d9d", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", @@ -11538,11 +12194,11 @@ "reviewClass": "per-file-maintainer-accepted-retained-registration", "humanApprovalPacketSHA256": "de8db2f2fa14b59514ea146654439aea279cc6fad5be1dca8cf17e057abe9945", "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", - "provenanceTemplateId": "animatediff_red_tram_through_snow" + "provenanceTemplateId": "animatediff_red_tram_in_watercolor" }, { - "path": "template-gallery/reviews/animatediff_red_tram_through_snow.quality-review.json", - "sha256": "sha256:bytes:c5c55e2d2ac7cbb65ef5ed89611da7b51b57ed5ed52d110fb324fe772eae6a0d", + "path": "template-gallery/reviews/animatediff_red_tram_in_watercolor.quality-review.json", + "sha256": "sha256:bytes:3828845174e5702fe4a393a86bc6e7b5847f1c8639b23800d61c6e3633183261", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", @@ -11565,11 +12221,11 @@ "reviewClass": "per-file-maintainer-accepted-retained-registration", "humanApprovalPacketSHA256": "de8db2f2fa14b59514ea146654439aea279cc6fad5be1dca8cf17e057abe9945", "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", - "provenanceTemplateId": "animatediff_red_tram_through_snow" + "provenanceTemplateId": "animatediff_red_tram_in_watercolor" }, { - "path": "template-gallery/reviews/animatediff_red_tram_through_snow.retained-template-provenance.json", - "sha256": "sha256:bytes:aa34be488b31fd42a12a1db6ff4c0b0ba2ec653439f4a62011698aeb46b71baa", + "path": "template-gallery/reviews/animatediff_red_tram_in_watercolor.retained-template-provenance.json", + "sha256": "sha256:bytes:137902583abc832020f92f256050bc44104f0762360f470138e654746d278b59", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", @@ -11592,195 +12248,415 @@ "reviewClass": "per-file-maintainer-accepted-retained-registration", "humanApprovalPacketSHA256": "de8db2f2fa14b59514ea146654439aea279cc6fad5be1dca8cf17e057abe9945", "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", - "provenanceTemplateId": "animatediff_red_tram_through_snow" + "provenanceTemplateId": "animatediff_red_tram_in_watercolor" }, { - "path": "template-gallery/reviews/bookshop_at_blue_hour.original-provenance.json", - "sha256": "sha256:bytes:3f3e4056350e5a1ee59d46aea727b87563ae6fc5fe11a491257e2af7d412f0bf", + "path": "template-gallery/reviews/animatediff_red_tram_through_snow.original-provenance.json", + "sha256": "sha256:bytes:b5198902e667bfa48b915027b301a3150ec994c44b132213c3c855b24e3f08f8", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/baidu/ERNIE-Image-Turbo/tree/bc68c81e2a1730a394d5fc9fae70713dee940140", - "sourceRevision": "baidu/ERNIE-Image-Turbo@bc68c81e2a1730a394d5fc9fae70713dee940140", + "sourceUrl": "https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14", + "sourceRevision": "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14", "sourceLicense": "MoDiff-authored Gallery metadata", "modelTerms": [ - "apache-2.0. https://huggingface.co/baidu/ERNIE-Image-Turbo/tree/bc68c81e2a1730a394d5fc9fae70713dee940140" + "Publisher model terms at https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14" ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "baidu/ERNIE-Image-Turbo@bc68c81e2a1730a394d5fc9fae70713dee940140 https://huggingface.co/baidu/ERNIE-Image-Turbo/tree/bc68c81e2a1730a394d5fc9fae70713dee940140" + "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14 https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", - "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", - "provenanceTemplateId": "bookshop_at_blue_hour" + "humanApprovalPacketSHA256": "de8db2f2fa14b59514ea146654439aea279cc6fad5be1dca8cf17e057abe9945", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "animatediff_red_tram_through_snow" }, { - "path": "template-gallery/reviews/bookshop_at_blue_hour.original-review.json", - "sha256": "sha256:bytes:26882cd197ba823799f50be6ea1c01098038ad3cee926a71edf7aa47038d7226", + "path": "template-gallery/reviews/animatediff_red_tram_through_snow.original-review.json", + "sha256": "sha256:bytes:eef73b832d4acfb53ca4d5ededbd580821d8d91ffb372fcdcfb55f5f469f33cc", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/baidu/ERNIE-Image-Turbo/tree/bc68c81e2a1730a394d5fc9fae70713dee940140", - "sourceRevision": "baidu/ERNIE-Image-Turbo@bc68c81e2a1730a394d5fc9fae70713dee940140", + "sourceUrl": "https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14", + "sourceRevision": "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14", "sourceLicense": "MoDiff-authored Gallery metadata", "modelTerms": [ - "apache-2.0. https://huggingface.co/baidu/ERNIE-Image-Turbo/tree/bc68c81e2a1730a394d5fc9fae70713dee940140" + "Publisher model terms at https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14" ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "baidu/ERNIE-Image-Turbo@bc68c81e2a1730a394d5fc9fae70713dee940140 https://huggingface.co/baidu/ERNIE-Image-Turbo/tree/bc68c81e2a1730a394d5fc9fae70713dee940140" + "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14 https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", - "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", - "provenanceTemplateId": "bookshop_at_blue_hour" + "humanApprovalPacketSHA256": "de8db2f2fa14b59514ea146654439aea279cc6fad5be1dca8cf17e057abe9945", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "animatediff_red_tram_through_snow" }, { - "path": "template-gallery/reviews/bookshop_at_blue_hour.quality-review.json", - "sha256": "sha256:bytes:345c8dfefaa685385a016fcf545a50bf4d7554b07cee8c04f76efa270d830e4d", + "path": "template-gallery/reviews/animatediff_red_tram_through_snow.quality-review.json", + "sha256": "sha256:bytes:c5c55e2d2ac7cbb65ef5ed89611da7b51b57ed5ed52d110fb324fe772eae6a0d", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/baidu/ERNIE-Image-Turbo/tree/bc68c81e2a1730a394d5fc9fae70713dee940140", - "sourceRevision": "baidu/ERNIE-Image-Turbo@bc68c81e2a1730a394d5fc9fae70713dee940140", + "sourceUrl": "https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14", + "sourceRevision": "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14", "sourceLicense": "MoDiff-authored Gallery metadata", "modelTerms": [ - "apache-2.0. https://huggingface.co/baidu/ERNIE-Image-Turbo/tree/bc68c81e2a1730a394d5fc9fae70713dee940140" + "Publisher model terms at https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14" ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "baidu/ERNIE-Image-Turbo@bc68c81e2a1730a394d5fc9fae70713dee940140 https://huggingface.co/baidu/ERNIE-Image-Turbo/tree/bc68c81e2a1730a394d5fc9fae70713dee940140" + "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14 https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", - "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", - "provenanceTemplateId": "bookshop_at_blue_hour" + "humanApprovalPacketSHA256": "de8db2f2fa14b59514ea146654439aea279cc6fad5be1dca8cf17e057abe9945", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "animatediff_red_tram_through_snow" }, { - "path": "template-gallery/reviews/bookshop_at_blue_hour.retained-template-provenance.json", - "sha256": "sha256:bytes:47f8649c5c8bdf345ef71157478da39f55cccda4ef5e6a726bb4738c560de7d7", + "path": "template-gallery/reviews/animatediff_red_tram_through_snow.retained-template-provenance.json", + "sha256": "sha256:bytes:aa34be488b31fd42a12a1db6ff4c0b0ba2ec653439f4a62011698aeb46b71baa", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/baidu/ERNIE-Image-Turbo/tree/bc68c81e2a1730a394d5fc9fae70713dee940140", - "sourceRevision": "baidu/ERNIE-Image-Turbo@bc68c81e2a1730a394d5fc9fae70713dee940140", + "sourceUrl": "https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14", + "sourceRevision": "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14", "sourceLicense": "MoDiff-authored Gallery metadata", "modelTerms": [ - "apache-2.0. https://huggingface.co/baidu/ERNIE-Image-Turbo/tree/bc68c81e2a1730a394d5fc9fae70713dee940140" + "Publisher model terms at https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14" ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "baidu/ERNIE-Image-Turbo@bc68c81e2a1730a394d5fc9fae70713dee940140 https://huggingface.co/baidu/ERNIE-Image-Turbo/tree/bc68c81e2a1730a394d5fc9fae70713dee940140" + "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14 https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", - "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", - "provenanceTemplateId": "bookshop_at_blue_hour" + "humanApprovalPacketSHA256": "de8db2f2fa14b59514ea146654439aea279cc6fad5be1dca8cf17e057abe9945", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "animatediff_red_tram_through_snow" }, { - "path": "template-gallery/reviews/canal_lantern_in_warm_light.original-provenance.json", - "sha256": "sha256:bytes:3a802a1d1961ab209994af944eb3889cc6d675e3f9a409414c0504d344b38d7b", + "path": "template-gallery/reviews/animatelcm_sunlit_surf.original-provenance.json", + "sha256": "sha256:bytes:ccbd715d022d2d0121c473a75ad2f06c9a1dbb782b43b5c626726b6df2888ded", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/Efficient-Large-Model/Sana_Sprint_0.6B_1024px_diffusers/tree/aa76e7f4f4928f378716b6716a2130fba3caf5b1", - "sourceRevision": "Efficient-Large-Model/Sana_Sprint_0.6B_1024px_diffusers@aa76e7f4f4928f378716b6716a2130fba3caf5b1", + "sourceUrl": "https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14", + "sourceRevision": "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14", "sourceLicense": "MoDiff-authored Gallery metadata", "modelTerms": [ - "apache-2.0. https://huggingface.co/Efficient-Large-Model/Sana_Sprint_0.6B_1024px_diffusers/tree/aa76e7f4f4928f378716b6716a2130fba3caf5b1" + "https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14", + "https://huggingface.co/wangfuyun/AnimateLCM/tree/3d4d00fc113225e1040f4d3bec504b6ec750c10c" ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "Efficient-Large-Model/Sana_Sprint_0.6B_1024px_diffusers@aa76e7f4f4928f378716b6716a2130fba3caf5b1 https://huggingface.co/Efficient-Large-Model/Sana_Sprint_0.6B_1024px_diffusers/tree/aa76e7f4f4928f378716b6716a2130fba3caf5b1" + "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14 https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", - "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", - "provenanceTemplateId": "canal_lantern_in_warm_light" + "humanApprovalPacketSHA256": "aeba59d388381d75a2935a470ac831faabbd1f0b0be51af0bca839e601c1d034", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "animatelcm_sunlit_surf" }, { - "path": "template-gallery/reviews/canal_lantern_in_warm_light.original-review.json", - "sha256": "sha256:bytes:fdfac320256dd1dd7bcaa77ef449fe39a537e871db6ea579500579148bffea23", + "path": "template-gallery/reviews/animatelcm_sunlit_surf.original-review.json", + "sha256": "sha256:bytes:273d0f2980b99943ead3cee2ce02a3cb67414cdd3ee3d258f555d168757ec1c8", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/Efficient-Large-Model/Sana_Sprint_0.6B_1024px_diffusers/tree/aa76e7f4f4928f378716b6716a2130fba3caf5b1", - "sourceRevision": "Efficient-Large-Model/Sana_Sprint_0.6B_1024px_diffusers@aa76e7f4f4928f378716b6716a2130fba3caf5b1", + "sourceUrl": "https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14", + "sourceRevision": "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14", "sourceLicense": "MoDiff-authored Gallery metadata", "modelTerms": [ - "apache-2.0. https://huggingface.co/Efficient-Large-Model/Sana_Sprint_0.6B_1024px_diffusers/tree/aa76e7f4f4928f378716b6716a2130fba3caf5b1" + "https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14", + "https://huggingface.co/wangfuyun/AnimateLCM/tree/3d4d00fc113225e1040f4d3bec504b6ec750c10c" ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "Efficient-Large-Model/Sana_Sprint_0.6B_1024px_diffusers@aa76e7f4f4928f378716b6716a2130fba3caf5b1 https://huggingface.co/Efficient-Large-Model/Sana_Sprint_0.6B_1024px_diffusers/tree/aa76e7f4f4928f378716b6716a2130fba3caf5b1" + "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14 https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", - "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", - "provenanceTemplateId": "canal_lantern_in_warm_light" + "humanApprovalPacketSHA256": "aeba59d388381d75a2935a470ac831faabbd1f0b0be51af0bca839e601c1d034", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "animatelcm_sunlit_surf" }, { - "path": "template-gallery/reviews/canal_lantern_in_warm_light.quality-review.json", - "sha256": "sha256:bytes:721e6e325451df2320c2813bedce2b5c4b37d92d30ac974ca95b4f3edba6b316", + "path": "template-gallery/reviews/animatelcm_sunlit_surf.quality-review.json", + "sha256": "sha256:bytes:491737730d41fb96fb03a8f220ba78248c72619a34be55a8cc64111d822b913b", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/Efficient-Large-Model/Sana_Sprint_0.6B_1024px_diffusers/tree/aa76e7f4f4928f378716b6716a2130fba3caf5b1", - "sourceRevision": "Efficient-Large-Model/Sana_Sprint_0.6B_1024px_diffusers@aa76e7f4f4928f378716b6716a2130fba3caf5b1", + "sourceUrl": "https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14", + "sourceRevision": "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14", "sourceLicense": "MoDiff-authored Gallery metadata", "modelTerms": [ - "apache-2.0. https://huggingface.co/Efficient-Large-Model/Sana_Sprint_0.6B_1024px_diffusers/tree/aa76e7f4f4928f378716b6716a2130fba3caf5b1" + "https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14", + "https://huggingface.co/wangfuyun/AnimateLCM/tree/3d4d00fc113225e1040f4d3bec504b6ec750c10c" ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "Efficient-Large-Model/Sana_Sprint_0.6B_1024px_diffusers@aa76e7f4f4928f378716b6716a2130fba3caf5b1 https://huggingface.co/Efficient-Large-Model/Sana_Sprint_0.6B_1024px_diffusers/tree/aa76e7f4f4928f378716b6716a2130fba3caf5b1" + "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14 https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", - "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", + "humanApprovalPacketSHA256": "aeba59d388381d75a2935a470ac831faabbd1f0b0be51af0bca839e601c1d034", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "animatelcm_sunlit_surf" + }, + { + "path": "template-gallery/reviews/animatelcm_sunlit_surf.retained-template-provenance.json", + "sha256": "sha256:bytes:0d7bf5194255e03658f6934d1be023dbf4ee556c39b4ff2ad54c10f2e8da3ede", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14", + "sourceRevision": "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14", + "https://huggingface.co/wangfuyun/AnimateLCM/tree/3d4d00fc113225e1040f4d3bec504b6ec750c10c" + ], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14 https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "aeba59d388381d75a2935a470ac831faabbd1f0b0be51af0bca839e601c1d034", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "animatelcm_sunlit_surf" + }, + { + "path": "template-gallery/reviews/bookshop_at_blue_hour.original-provenance.json", + "sha256": "sha256:bytes:3f3e4056350e5a1ee59d46aea727b87563ae6fc5fe11a491257e2af7d412f0bf", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/baidu/ERNIE-Image-Turbo/tree/bc68c81e2a1730a394d5fc9fae70713dee940140", + "sourceRevision": "baidu/ERNIE-Image-Turbo@bc68c81e2a1730a394d5fc9fae70713dee940140", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "apache-2.0. https://huggingface.co/baidu/ERNIE-Image-Turbo/tree/bc68c81e2a1730a394d5fc9fae70713dee940140" + ], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "baidu/ERNIE-Image-Turbo@bc68c81e2a1730a394d5fc9fae70713dee940140 https://huggingface.co/baidu/ERNIE-Image-Turbo/tree/bc68c81e2a1730a394d5fc9fae70713dee940140" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", + "provenanceTemplateId": "bookshop_at_blue_hour" + }, + { + "path": "template-gallery/reviews/bookshop_at_blue_hour.original-review.json", + "sha256": "sha256:bytes:26882cd197ba823799f50be6ea1c01098038ad3cee926a71edf7aa47038d7226", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/baidu/ERNIE-Image-Turbo/tree/bc68c81e2a1730a394d5fc9fae70713dee940140", + "sourceRevision": "baidu/ERNIE-Image-Turbo@bc68c81e2a1730a394d5fc9fae70713dee940140", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "apache-2.0. https://huggingface.co/baidu/ERNIE-Image-Turbo/tree/bc68c81e2a1730a394d5fc9fae70713dee940140" + ], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "baidu/ERNIE-Image-Turbo@bc68c81e2a1730a394d5fc9fae70713dee940140 https://huggingface.co/baidu/ERNIE-Image-Turbo/tree/bc68c81e2a1730a394d5fc9fae70713dee940140" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", + "provenanceTemplateId": "bookshop_at_blue_hour" + }, + { + "path": "template-gallery/reviews/bookshop_at_blue_hour.quality-review.json", + "sha256": "sha256:bytes:345c8dfefaa685385a016fcf545a50bf4d7554b07cee8c04f76efa270d830e4d", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/baidu/ERNIE-Image-Turbo/tree/bc68c81e2a1730a394d5fc9fae70713dee940140", + "sourceRevision": "baidu/ERNIE-Image-Turbo@bc68c81e2a1730a394d5fc9fae70713dee940140", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "apache-2.0. https://huggingface.co/baidu/ERNIE-Image-Turbo/tree/bc68c81e2a1730a394d5fc9fae70713dee940140" + ], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "baidu/ERNIE-Image-Turbo@bc68c81e2a1730a394d5fc9fae70713dee940140 https://huggingface.co/baidu/ERNIE-Image-Turbo/tree/bc68c81e2a1730a394d5fc9fae70713dee940140" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", + "provenanceTemplateId": "bookshop_at_blue_hour" + }, + { + "path": "template-gallery/reviews/bookshop_at_blue_hour.retained-template-provenance.json", + "sha256": "sha256:bytes:47f8649c5c8bdf345ef71157478da39f55cccda4ef5e6a726bb4738c560de7d7", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/baidu/ERNIE-Image-Turbo/tree/bc68c81e2a1730a394d5fc9fae70713dee940140", + "sourceRevision": "baidu/ERNIE-Image-Turbo@bc68c81e2a1730a394d5fc9fae70713dee940140", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "apache-2.0. https://huggingface.co/baidu/ERNIE-Image-Turbo/tree/bc68c81e2a1730a394d5fc9fae70713dee940140" + ], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "baidu/ERNIE-Image-Turbo@bc68c81e2a1730a394d5fc9fae70713dee940140 https://huggingface.co/baidu/ERNIE-Image-Turbo/tree/bc68c81e2a1730a394d5fc9fae70713dee940140" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", + "provenanceTemplateId": "bookshop_at_blue_hour" + }, + { + "path": "template-gallery/reviews/canal_lantern_in_warm_light.original-provenance.json", + "sha256": "sha256:bytes:3a802a1d1961ab209994af944eb3889cc6d675e3f9a409414c0504d344b38d7b", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/Efficient-Large-Model/Sana_Sprint_0.6B_1024px_diffusers/tree/aa76e7f4f4928f378716b6716a2130fba3caf5b1", + "sourceRevision": "Efficient-Large-Model/Sana_Sprint_0.6B_1024px_diffusers@aa76e7f4f4928f378716b6716a2130fba3caf5b1", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "apache-2.0. https://huggingface.co/Efficient-Large-Model/Sana_Sprint_0.6B_1024px_diffusers/tree/aa76e7f4f4928f378716b6716a2130fba3caf5b1" + ], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "Efficient-Large-Model/Sana_Sprint_0.6B_1024px_diffusers@aa76e7f4f4928f378716b6716a2130fba3caf5b1 https://huggingface.co/Efficient-Large-Model/Sana_Sprint_0.6B_1024px_diffusers/tree/aa76e7f4f4928f378716b6716a2130fba3caf5b1" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", + "provenanceTemplateId": "canal_lantern_in_warm_light" + }, + { + "path": "template-gallery/reviews/canal_lantern_in_warm_light.original-review.json", + "sha256": "sha256:bytes:fdfac320256dd1dd7bcaa77ef449fe39a537e871db6ea579500579148bffea23", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/Efficient-Large-Model/Sana_Sprint_0.6B_1024px_diffusers/tree/aa76e7f4f4928f378716b6716a2130fba3caf5b1", + "sourceRevision": "Efficient-Large-Model/Sana_Sprint_0.6B_1024px_diffusers@aa76e7f4f4928f378716b6716a2130fba3caf5b1", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "apache-2.0. https://huggingface.co/Efficient-Large-Model/Sana_Sprint_0.6B_1024px_diffusers/tree/aa76e7f4f4928f378716b6716a2130fba3caf5b1" + ], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "Efficient-Large-Model/Sana_Sprint_0.6B_1024px_diffusers@aa76e7f4f4928f378716b6716a2130fba3caf5b1 https://huggingface.co/Efficient-Large-Model/Sana_Sprint_0.6B_1024px_diffusers/tree/aa76e7f4f4928f378716b6716a2130fba3caf5b1" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", + "provenanceTemplateId": "canal_lantern_in_warm_light" + }, + { + "path": "template-gallery/reviews/canal_lantern_in_warm_light.quality-review.json", + "sha256": "sha256:bytes:721e6e325451df2320c2813bedce2b5c4b37d92d30ac974ca95b4f3edba6b316", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/Efficient-Large-Model/Sana_Sprint_0.6B_1024px_diffusers/tree/aa76e7f4f4928f378716b6716a2130fba3caf5b1", + "sourceRevision": "Efficient-Large-Model/Sana_Sprint_0.6B_1024px_diffusers@aa76e7f4f4928f378716b6716a2130fba3caf5b1", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "apache-2.0. https://huggingface.co/Efficient-Large-Model/Sana_Sprint_0.6B_1024px_diffusers/tree/aa76e7f4f4928f378716b6716a2130fba3caf5b1" + ], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "Efficient-Large-Model/Sana_Sprint_0.6B_1024px_diffusers@aa76e7f4f4928f378716b6716a2130fba3caf5b1 https://huggingface.co/Efficient-Large-Model/Sana_Sprint_0.6B_1024px_diffusers/tree/aa76e7f4f4928f378716b6716a2130fba3caf5b1" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "35e15ee46e08574b15020847ccf826c5c6856165e43538d40f69820ea48ad25f", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", "provenanceTemplateId": "canal_lantern_in_warm_light" }, { @@ -11963,8 +12839,8 @@ "provenanceTemplateId": "chroma_alpine_block_print" }, { - "path": "template-gallery/reviews/chroma_restored_cobalt_backdrop.original-provenance.json", - "sha256": "sha256:bytes:f87d18b81ff559f1298f0c780db0f5eb89e9f8219b4f4aff80c224bc3ef47ce4", + "path": "template-gallery/reviews/chroma_copper_medallion_outpaint.original-provenance.json", + "sha256": "sha256:bytes:ce863e2679e5452c432729c3096dac08a7361d2e23dbee80a24230057c77cec9", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", @@ -11973,7 +12849,7 @@ "sourceRevision": "lodestones/Chroma1-HD@0e0c60ece1e82b17cb7f77342d765ba5024c40c0", "sourceLicense": "MoDiff-authored Gallery metadata", "modelTerms": [ - "Publisher model terms at https://huggingface.co/lodestones/Chroma1-HD/tree/0e0c60ece1e82b17cb7f77342d765ba5024c40c0" + "https://huggingface.co/lodestones/Chroma1-HD/tree/0e0c60ece1e82b17cb7f77342d765ba5024c40c0" ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", @@ -11985,13 +12861,13 @@ "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "c2df9edb92f8ff905b6c9a138a285e67c621f3d2dfa3232f859aaf963b725aca", + "humanApprovalPacketSHA256": "aeba59d388381d75a2935a470ac831faabbd1f0b0be51af0bca839e601c1d034", "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", - "provenanceTemplateId": "chroma_restored_cobalt_backdrop" + "provenanceTemplateId": "chroma_copper_medallion_outpaint" }, { - "path": "template-gallery/reviews/chroma_restored_cobalt_backdrop.original-review.json", - "sha256": "sha256:bytes:88d1fbfadc2e1d3456f492214f7e51da6bdfd253eb00343fb93990e16c9ba2b9", + "path": "template-gallery/reviews/chroma_copper_medallion_outpaint.original-review.json", + "sha256": "sha256:bytes:0e9ec0c5a89f56c48135a248e3418af86261bb649601e757cd8ee3e41b9fcbdd", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", @@ -12000,7 +12876,7 @@ "sourceRevision": "lodestones/Chroma1-HD@0e0c60ece1e82b17cb7f77342d765ba5024c40c0", "sourceLicense": "MoDiff-authored Gallery metadata", "modelTerms": [ - "Publisher model terms at https://huggingface.co/lodestones/Chroma1-HD/tree/0e0c60ece1e82b17cb7f77342d765ba5024c40c0" + "https://huggingface.co/lodestones/Chroma1-HD/tree/0e0c60ece1e82b17cb7f77342d765ba5024c40c0" ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", @@ -12012,13 +12888,13 @@ "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "c2df9edb92f8ff905b6c9a138a285e67c621f3d2dfa3232f859aaf963b725aca", + "humanApprovalPacketSHA256": "aeba59d388381d75a2935a470ac831faabbd1f0b0be51af0bca839e601c1d034", "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", - "provenanceTemplateId": "chroma_restored_cobalt_backdrop" + "provenanceTemplateId": "chroma_copper_medallion_outpaint" }, { - "path": "template-gallery/reviews/chroma_restored_cobalt_backdrop.quality-review.json", - "sha256": "sha256:bytes:803c31f4eb055884cbe955856e99f9846f9259ae58ad6c883d686de581c0dd09", + "path": "template-gallery/reviews/chroma_copper_medallion_outpaint.quality-review.json", + "sha256": "sha256:bytes:09fc86de80eb03a9ae7346e73a1fa4f275e43252829b45b253e103496d9a60f1", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", @@ -12027,7 +12903,7 @@ "sourceRevision": "lodestones/Chroma1-HD@0e0c60ece1e82b17cb7f77342d765ba5024c40c0", "sourceLicense": "MoDiff-authored Gallery metadata", "modelTerms": [ - "Publisher model terms at https://huggingface.co/lodestones/Chroma1-HD/tree/0e0c60ece1e82b17cb7f77342d765ba5024c40c0" + "https://huggingface.co/lodestones/Chroma1-HD/tree/0e0c60ece1e82b17cb7f77342d765ba5024c40c0" ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", @@ -12039,13 +12915,13 @@ "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "c2df9edb92f8ff905b6c9a138a285e67c621f3d2dfa3232f859aaf963b725aca", + "humanApprovalPacketSHA256": "aeba59d388381d75a2935a470ac831faabbd1f0b0be51af0bca839e601c1d034", "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", - "provenanceTemplateId": "chroma_restored_cobalt_backdrop" + "provenanceTemplateId": "chroma_copper_medallion_outpaint" }, { - "path": "template-gallery/reviews/chroma_restored_cobalt_backdrop.retained-template-provenance.json", - "sha256": "sha256:bytes:5232b12615a38293b0d86378fdde3003a61a8f5834de95f395a9364e12dd8fd4", + "path": "template-gallery/reviews/chroma_copper_medallion_outpaint.retained-template-provenance.json", + "sha256": "sha256:bytes:729aad830c6768451f07c0ce0b5585e1cb6acc96511f3d4c5eb859562920d077", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", @@ -12054,7 +12930,7 @@ "sourceRevision": "lodestones/Chroma1-HD@0e0c60ece1e82b17cb7f77342d765ba5024c40c0", "sourceLicense": "MoDiff-authored Gallery metadata", "modelTerms": [ - "Publisher model terms at https://huggingface.co/lodestones/Chroma1-HD/tree/0e0c60ece1e82b17cb7f77342d765ba5024c40c0" + "https://huggingface.co/lodestones/Chroma1-HD/tree/0e0c60ece1e82b17cb7f77342d765ba5024c40c0" ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", @@ -12066,13 +12942,13 @@ "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "c2df9edb92f8ff905b6c9a138a285e67c621f3d2dfa3232f859aaf963b725aca", + "humanApprovalPacketSHA256": "aeba59d388381d75a2935a470ac831faabbd1f0b0be51af0bca839e601c1d034", "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", - "provenanceTemplateId": "chroma_restored_cobalt_backdrop" + "provenanceTemplateId": "chroma_copper_medallion_outpaint" }, { - "path": "template-gallery/reviews/chroma_terracotta_and_blue.original-provenance.json", - "sha256": "sha256:bytes:92a7762ec200afa64405b665dbd19d630b846f55bdb170fc08bfb5c588b1d258", + "path": "template-gallery/reviews/chroma_restored_cobalt_backdrop.original-provenance.json", + "sha256": "sha256:bytes:f87d18b81ff559f1298f0c780db0f5eb89e9f8219b4f4aff80c224bc3ef47ce4", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", @@ -12081,7 +12957,7 @@ "sourceRevision": "lodestones/Chroma1-HD@0e0c60ece1e82b17cb7f77342d765ba5024c40c0", "sourceLicense": "MoDiff-authored Gallery metadata", "modelTerms": [ - "https://huggingface.co/lodestones/Chroma1-HD/blob/0e0c60ece1e82b17cb7f77342d765ba5024c40c0/README.md" + "Publisher model terms at https://huggingface.co/lodestones/Chroma1-HD/tree/0e0c60ece1e82b17cb7f77342d765ba5024c40c0" ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", @@ -12095,11 +12971,11 @@ "reviewClass": "per-file-maintainer-accepted-retained-registration", "humanApprovalPacketSHA256": "c2df9edb92f8ff905b6c9a138a285e67c621f3d2dfa3232f859aaf963b725aca", "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", - "provenanceTemplateId": "chroma_terracotta_and_blue" + "provenanceTemplateId": "chroma_restored_cobalt_backdrop" }, { - "path": "template-gallery/reviews/chroma_terracotta_and_blue.original-review.json", - "sha256": "sha256:bytes:d935f45b897cc717315684e2b180097b2e3892d275b4c38e96f2a9ec930ae24f", + "path": "template-gallery/reviews/chroma_restored_cobalt_backdrop.original-review.json", + "sha256": "sha256:bytes:88d1fbfadc2e1d3456f492214f7e51da6bdfd253eb00343fb93990e16c9ba2b9", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", @@ -12108,7 +12984,7 @@ "sourceRevision": "lodestones/Chroma1-HD@0e0c60ece1e82b17cb7f77342d765ba5024c40c0", "sourceLicense": "MoDiff-authored Gallery metadata", "modelTerms": [ - "https://huggingface.co/lodestones/Chroma1-HD/blob/0e0c60ece1e82b17cb7f77342d765ba5024c40c0/README.md" + "Publisher model terms at https://huggingface.co/lodestones/Chroma1-HD/tree/0e0c60ece1e82b17cb7f77342d765ba5024c40c0" ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", @@ -12122,11 +12998,11 @@ "reviewClass": "per-file-maintainer-accepted-retained-registration", "humanApprovalPacketSHA256": "c2df9edb92f8ff905b6c9a138a285e67c621f3d2dfa3232f859aaf963b725aca", "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", - "provenanceTemplateId": "chroma_terracotta_and_blue" + "provenanceTemplateId": "chroma_restored_cobalt_backdrop" }, { - "path": "template-gallery/reviews/chroma_terracotta_and_blue.quality-review.json", - "sha256": "sha256:bytes:2435a255e05519ab5b750b4728217d7f938631213ffeeb6da882dcb184e9fa7b", + "path": "template-gallery/reviews/chroma_restored_cobalt_backdrop.quality-review.json", + "sha256": "sha256:bytes:803c31f4eb055884cbe955856e99f9846f9259ae58ad6c883d686de581c0dd09", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", @@ -12135,7 +13011,7 @@ "sourceRevision": "lodestones/Chroma1-HD@0e0c60ece1e82b17cb7f77342d765ba5024c40c0", "sourceLicense": "MoDiff-authored Gallery metadata", "modelTerms": [ - "https://huggingface.co/lodestones/Chroma1-HD/blob/0e0c60ece1e82b17cb7f77342d765ba5024c40c0/README.md" + "Publisher model terms at https://huggingface.co/lodestones/Chroma1-HD/tree/0e0c60ece1e82b17cb7f77342d765ba5024c40c0" ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", @@ -12149,10 +13025,118 @@ "reviewClass": "per-file-maintainer-accepted-retained-registration", "humanApprovalPacketSHA256": "c2df9edb92f8ff905b6c9a138a285e67c621f3d2dfa3232f859aaf963b725aca", "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", - "provenanceTemplateId": "chroma_terracotta_and_blue" + "provenanceTemplateId": "chroma_restored_cobalt_backdrop" }, { - "path": "template-gallery/reviews/chroma_terracotta_and_blue.retained-template-provenance.json", + "path": "template-gallery/reviews/chroma_restored_cobalt_backdrop.retained-template-provenance.json", + "sha256": "sha256:bytes:5232b12615a38293b0d86378fdde3003a61a8f5834de95f395a9364e12dd8fd4", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/lodestones/Chroma1-HD/tree/0e0c60ece1e82b17cb7f77342d765ba5024c40c0", + "sourceRevision": "lodestones/Chroma1-HD@0e0c60ece1e82b17cb7f77342d765ba5024c40c0", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "Publisher model terms at https://huggingface.co/lodestones/Chroma1-HD/tree/0e0c60ece1e82b17cb7f77342d765ba5024c40c0" + ], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "lodestones/Chroma1-HD@0e0c60ece1e82b17cb7f77342d765ba5024c40c0 https://huggingface.co/lodestones/Chroma1-HD/tree/0e0c60ece1e82b17cb7f77342d765ba5024c40c0" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "c2df9edb92f8ff905b6c9a138a285e67c621f3d2dfa3232f859aaf963b725aca", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "chroma_restored_cobalt_backdrop" + }, + { + "path": "template-gallery/reviews/chroma_terracotta_and_blue.original-provenance.json", + "sha256": "sha256:bytes:92a7762ec200afa64405b665dbd19d630b846f55bdb170fc08bfb5c588b1d258", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/lodestones/Chroma1-HD/tree/0e0c60ece1e82b17cb7f77342d765ba5024c40c0", + "sourceRevision": "lodestones/Chroma1-HD@0e0c60ece1e82b17cb7f77342d765ba5024c40c0", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "https://huggingface.co/lodestones/Chroma1-HD/blob/0e0c60ece1e82b17cb7f77342d765ba5024c40c0/README.md" + ], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "lodestones/Chroma1-HD@0e0c60ece1e82b17cb7f77342d765ba5024c40c0 https://huggingface.co/lodestones/Chroma1-HD/tree/0e0c60ece1e82b17cb7f77342d765ba5024c40c0" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "c2df9edb92f8ff905b6c9a138a285e67c621f3d2dfa3232f859aaf963b725aca", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "chroma_terracotta_and_blue" + }, + { + "path": "template-gallery/reviews/chroma_terracotta_and_blue.original-review.json", + "sha256": "sha256:bytes:d935f45b897cc717315684e2b180097b2e3892d275b4c38e96f2a9ec930ae24f", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/lodestones/Chroma1-HD/tree/0e0c60ece1e82b17cb7f77342d765ba5024c40c0", + "sourceRevision": "lodestones/Chroma1-HD@0e0c60ece1e82b17cb7f77342d765ba5024c40c0", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "https://huggingface.co/lodestones/Chroma1-HD/blob/0e0c60ece1e82b17cb7f77342d765ba5024c40c0/README.md" + ], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "lodestones/Chroma1-HD@0e0c60ece1e82b17cb7f77342d765ba5024c40c0 https://huggingface.co/lodestones/Chroma1-HD/tree/0e0c60ece1e82b17cb7f77342d765ba5024c40c0" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "c2df9edb92f8ff905b6c9a138a285e67c621f3d2dfa3232f859aaf963b725aca", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "chroma_terracotta_and_blue" + }, + { + "path": "template-gallery/reviews/chroma_terracotta_and_blue.quality-review.json", + "sha256": "sha256:bytes:2435a255e05519ab5b750b4728217d7f938631213ffeeb6da882dcb184e9fa7b", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/lodestones/Chroma1-HD/tree/0e0c60ece1e82b17cb7f77342d765ba5024c40c0", + "sourceRevision": "lodestones/Chroma1-HD@0e0c60ece1e82b17cb7f77342d765ba5024c40c0", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "https://huggingface.co/lodestones/Chroma1-HD/blob/0e0c60ece1e82b17cb7f77342d765ba5024c40c0/README.md" + ], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "lodestones/Chroma1-HD@0e0c60ece1e82b17cb7f77342d765ba5024c40c0 https://huggingface.co/lodestones/Chroma1-HD/tree/0e0c60ece1e82b17cb7f77342d765ba5024c40c0" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "c2df9edb92f8ff905b6c9a138a285e67c621f3d2dfa3232f859aaf963b725aca", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "chroma_terracotta_and_blue" + }, + { + "path": "template-gallery/reviews/chroma_terracotta_and_blue.retained-template-provenance.json", "sha256": "sha256:bytes:95d0a67308f0dd2b8024a39cacca3fcfd82611a03d01f76a38a429dd1c4c2077", "publishDecision": "approved", "holdReason": null, @@ -14141,6 +15125,114 @@ "provenanceTemplateId": "flux_dev_expert_text_to_image", "humanApprovalPacketSHA256": "351d122936dc8df9c3fb6217005641dd2cc2ecddc39cd7cd7fadc2939def70b3" }, + { + "path": "template-gallery/reviews/flux_dev_forest_green_teapot.original-provenance.json", + "sha256": "sha256:bytes:28609162b2b43dace4e077983617ab5160c9af14e1547f422809d4b7a972c73f", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/black-forest-labs/FLUX.1-dev/tree/3de623fc3c33e44ffbe2bad470d0f45bccf2eb21", + "sourceRevision": "black-forest-labs/FLUX.1-dev@3de623fc3c33e44ffbe2bad470d0f45bccf2eb21", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "Publisher model terms at https://huggingface.co/black-forest-labs/FLUX.1-dev/tree/3de623fc3c33e44ffbe2bad470d0f45bccf2eb21" + ], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "black-forest-labs/FLUX.1-dev@3de623fc3c33e44ffbe2bad470d0f45bccf2eb21 https://huggingface.co/black-forest-labs/FLUX.1-dev/tree/3de623fc3c33e44ffbe2bad470d0f45bccf2eb21" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "aeba59d388381d75a2935a470ac831faabbd1f0b0be51af0bca839e601c1d034", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "flux_dev_forest_green_teapot" + }, + { + "path": "template-gallery/reviews/flux_dev_forest_green_teapot.original-review.json", + "sha256": "sha256:bytes:f6798fd9a441c2af0f5d766201406c7935c257ee0c67125571aefe6df6226b27", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/black-forest-labs/FLUX.1-dev/tree/3de623fc3c33e44ffbe2bad470d0f45bccf2eb21", + "sourceRevision": "black-forest-labs/FLUX.1-dev@3de623fc3c33e44ffbe2bad470d0f45bccf2eb21", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "Publisher model terms at https://huggingface.co/black-forest-labs/FLUX.1-dev/tree/3de623fc3c33e44ffbe2bad470d0f45bccf2eb21" + ], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "black-forest-labs/FLUX.1-dev@3de623fc3c33e44ffbe2bad470d0f45bccf2eb21 https://huggingface.co/black-forest-labs/FLUX.1-dev/tree/3de623fc3c33e44ffbe2bad470d0f45bccf2eb21" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "aeba59d388381d75a2935a470ac831faabbd1f0b0be51af0bca839e601c1d034", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "flux_dev_forest_green_teapot" + }, + { + "path": "template-gallery/reviews/flux_dev_forest_green_teapot.quality-review.json", + "sha256": "sha256:bytes:585a69e794e648da35ca0890b5d86ac00a456369bf7e4b7ddfc2e27c0e2779cf", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/black-forest-labs/FLUX.1-dev/tree/3de623fc3c33e44ffbe2bad470d0f45bccf2eb21", + "sourceRevision": "black-forest-labs/FLUX.1-dev@3de623fc3c33e44ffbe2bad470d0f45bccf2eb21", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "Publisher model terms at https://huggingface.co/black-forest-labs/FLUX.1-dev/tree/3de623fc3c33e44ffbe2bad470d0f45bccf2eb21" + ], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "black-forest-labs/FLUX.1-dev@3de623fc3c33e44ffbe2bad470d0f45bccf2eb21 https://huggingface.co/black-forest-labs/FLUX.1-dev/tree/3de623fc3c33e44ffbe2bad470d0f45bccf2eb21" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "aeba59d388381d75a2935a470ac831faabbd1f0b0be51af0bca839e601c1d034", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "flux_dev_forest_green_teapot" + }, + { + "path": "template-gallery/reviews/flux_dev_forest_green_teapot.retained-template-provenance.json", + "sha256": "sha256:bytes:fef44975f3e9e55d2f8144ecaa9a9c1907e4312add999370ca4d4da6cb67e721", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/black-forest-labs/FLUX.1-dev/tree/3de623fc3c33e44ffbe2bad470d0f45bccf2eb21", + "sourceRevision": "black-forest-labs/FLUX.1-dev@3de623fc3c33e44ffbe2bad470d0f45bccf2eb21", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "Publisher model terms at https://huggingface.co/black-forest-labs/FLUX.1-dev/tree/3de623fc3c33e44ffbe2bad470d0f45bccf2eb21" + ], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "black-forest-labs/FLUX.1-dev@3de623fc3c33e44ffbe2bad470d0f45bccf2eb21 https://huggingface.co/black-forest-labs/FLUX.1-dev/tree/3de623fc3c33e44ffbe2bad470d0f45bccf2eb21" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "aeba59d388381d75a2935a470ac831faabbd1f0b0be51af0bca839e601c1d034", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "flux_dev_forest_green_teapot" + }, { "path": "template-gallery/reviews/flux_fill_inpaint.quality-review.json", "sha256": "sha256:bytes:118df046dca340d5130af71eefea56e4d0182c2beb9b01ac4de9da102fb002ff", @@ -14446,51 +15538,159 @@ "provenanceTemplateId": "flux_klein_open_glacial_lake" }, { - "path": "template-gallery/reviews/flux_kontext_edit.quality-review.json", - "sha256": "sha256:bytes:b4ecdefeee42100d34df1f4a1d05c944c3c950e586a7d644496d36961e66c593", + "path": "template-gallery/reviews/flux_kontext_bookshop_clear_glass.original-provenance.json", + "sha256": "sha256:bytes:d55fd398015906cdcda745266d74bb35e8fb98f5c013d850104e8b2f88ba6d54", "publishDecision": "approved", "holdReason": null, - "creatorOrRightsholder": "MoDiff project maintainers", - "creationMethod": "MoDiff-authored technical, review, input-binding or retained recipe metadata for three maintainer-accepted assets", - "sourceUrl": null, - "sourceRevision": null, - "sourceLicense": "Apache-2.0 project-authored metadata; generated-media model terms are retained separately", - "modelTerms": [], + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/black-forest-labs/FLUX.1-Kontext-dev/tree/24e9dedc4ef646698dc8eb4e18ae2cec3c9fea0d", + "sourceRevision": "black-forest-labs/FLUX.1-Kontext-dev@24e9dedc4ef646698dc8eb4e18ae2cec3c9fea0d", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "https://huggingface.co/black-forest-labs/FLUX.1-Kontext-dev/blob/24e9dedc4ef646698dc8eb4e18ae2cec3c9fea0d/LICENSE.md" + ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], - "requiredAttribution": [], + "requiredAttribution": [ + "black-forest-labs/FLUX.1-Kontext-dev@24e9dedc4ef646698dc8eb4e18ae2cec3c9fea0d https://huggingface.co/black-forest-labs/FLUX.1-Kontext-dev/tree/24e9dedc4ef646698dc8eb4e18ae2cec3c9fea0d" + ], "assetLicense": "Apache-2.0", - "reviewedBy": "maintainer (current user)", - "reviewedAt": "2026-11-12", - "reviewClass": "per-file-maintainer-accepted-native-three-registration", - "provenanceTemplateId": "flux_kontext_edit", - "humanApprovalPacketSHA256": "69c6b3d9b0ea2fcca16ee538f6e75b414b7141658b74f10578758e61360f63fd" + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "aeba59d388381d75a2935a470ac831faabbd1f0b0be51af0bca839e601c1d034", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "flux_kontext_bookshop_clear_glass" }, { - "path": "template-gallery/reviews/flux_kontext_edit.reviewed-provenance.json", - "sha256": "sha256:bytes:a1d3b7605879400b4675dbb92e52b510648d331cbdc715026695b951a4f9970f", + "path": "template-gallery/reviews/flux_kontext_bookshop_clear_glass.original-review.json", + "sha256": "sha256:bytes:b5edb7c5b069232e188bc5026cbf7c2bf8f8c48734045204c33caf6a7a7b86d2", "publishDecision": "approved", "holdReason": null, - "creatorOrRightsholder": "MoDiff project maintainers", - "creationMethod": "MoDiff-authored technical, review, input-binding or retained recipe metadata for three maintainer-accepted assets", - "sourceUrl": null, - "sourceRevision": null, - "sourceLicense": "Apache-2.0 project-authored metadata; generated-media model terms are retained separately", - "modelTerms": [], + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/black-forest-labs/FLUX.1-Kontext-dev/tree/24e9dedc4ef646698dc8eb4e18ae2cec3c9fea0d", + "sourceRevision": "black-forest-labs/FLUX.1-Kontext-dev@24e9dedc4ef646698dc8eb4e18ae2cec3c9fea0d", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "https://huggingface.co/black-forest-labs/FLUX.1-Kontext-dev/blob/24e9dedc4ef646698dc8eb4e18ae2cec3c9fea0d/LICENSE.md" + ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], - "requiredAttribution": [], + "requiredAttribution": [ + "black-forest-labs/FLUX.1-Kontext-dev@24e9dedc4ef646698dc8eb4e18ae2cec3c9fea0d https://huggingface.co/black-forest-labs/FLUX.1-Kontext-dev/tree/24e9dedc4ef646698dc8eb4e18ae2cec3c9fea0d" + ], "assetLicense": "Apache-2.0", - "reviewedBy": "maintainer (current user)", - "reviewedAt": "2026-11-12", - "reviewClass": "per-file-maintainer-accepted-native-three-registration", - "provenanceTemplateId": "flux_kontext_edit", - "humanApprovalPacketSHA256": "69c6b3d9b0ea2fcca16ee538f6e75b414b7141658b74f10578758e61360f63fd" - }, - { - "path": "template-gallery/reviews/flux_kontext_multi_reference.quality-review.json", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "aeba59d388381d75a2935a470ac831faabbd1f0b0be51af0bca839e601c1d034", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "flux_kontext_bookshop_clear_glass" + }, + { + "path": "template-gallery/reviews/flux_kontext_bookshop_clear_glass.quality-review.json", + "sha256": "sha256:bytes:e120dbcafe857f60c9e705d7fce6a5935d80010588003902d33573882e53674a", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/black-forest-labs/FLUX.1-Kontext-dev/tree/24e9dedc4ef646698dc8eb4e18ae2cec3c9fea0d", + "sourceRevision": "black-forest-labs/FLUX.1-Kontext-dev@24e9dedc4ef646698dc8eb4e18ae2cec3c9fea0d", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "https://huggingface.co/black-forest-labs/FLUX.1-Kontext-dev/blob/24e9dedc4ef646698dc8eb4e18ae2cec3c9fea0d/LICENSE.md" + ], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "black-forest-labs/FLUX.1-Kontext-dev@24e9dedc4ef646698dc8eb4e18ae2cec3c9fea0d https://huggingface.co/black-forest-labs/FLUX.1-Kontext-dev/tree/24e9dedc4ef646698dc8eb4e18ae2cec3c9fea0d" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "aeba59d388381d75a2935a470ac831faabbd1f0b0be51af0bca839e601c1d034", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "flux_kontext_bookshop_clear_glass" + }, + { + "path": "template-gallery/reviews/flux_kontext_bookshop_clear_glass.retained-template-provenance.json", + "sha256": "sha256:bytes:706c47754ac4f8c85e7d41846a2085f544e52c132178beff600c249cd29b25d0", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/black-forest-labs/FLUX.1-Kontext-dev/tree/24e9dedc4ef646698dc8eb4e18ae2cec3c9fea0d", + "sourceRevision": "black-forest-labs/FLUX.1-Kontext-dev@24e9dedc4ef646698dc8eb4e18ae2cec3c9fea0d", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "https://huggingface.co/black-forest-labs/FLUX.1-Kontext-dev/blob/24e9dedc4ef646698dc8eb4e18ae2cec3c9fea0d/LICENSE.md" + ], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "black-forest-labs/FLUX.1-Kontext-dev@24e9dedc4ef646698dc8eb4e18ae2cec3c9fea0d https://huggingface.co/black-forest-labs/FLUX.1-Kontext-dev/tree/24e9dedc4ef646698dc8eb4e18ae2cec3c9fea0d" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "aeba59d388381d75a2935a470ac831faabbd1f0b0be51af0bca839e601c1d034", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "flux_kontext_bookshop_clear_glass" + }, + { + "path": "template-gallery/reviews/flux_kontext_edit.quality-review.json", + "sha256": "sha256:bytes:b4ecdefeee42100d34df1f4a1d05c944c3c950e586a7d644496d36961e66c593", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers", + "creationMethod": "MoDiff-authored technical, review, input-binding or retained recipe metadata for three maintainer-accepted assets", + "sourceUrl": null, + "sourceRevision": null, + "sourceLicense": "Apache-2.0 project-authored metadata; generated-media model terms are retained separately", + "modelTerms": [], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [], + "assetLicense": "Apache-2.0", + "reviewedBy": "maintainer (current user)", + "reviewedAt": "2026-11-12", + "reviewClass": "per-file-maintainer-accepted-native-three-registration", + "provenanceTemplateId": "flux_kontext_edit", + "humanApprovalPacketSHA256": "69c6b3d9b0ea2fcca16ee538f6e75b414b7141658b74f10578758e61360f63fd" + }, + { + "path": "template-gallery/reviews/flux_kontext_edit.reviewed-provenance.json", + "sha256": "sha256:bytes:a1d3b7605879400b4675dbb92e52b510648d331cbdc715026695b951a4f9970f", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers", + "creationMethod": "MoDiff-authored technical, review, input-binding or retained recipe metadata for three maintainer-accepted assets", + "sourceUrl": null, + "sourceRevision": null, + "sourceLicense": "Apache-2.0 project-authored metadata; generated-media model terms are retained separately", + "modelTerms": [], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [], + "assetLicense": "Apache-2.0", + "reviewedBy": "maintainer (current user)", + "reviewedAt": "2026-11-12", + "reviewClass": "per-file-maintainer-accepted-native-three-registration", + "provenanceTemplateId": "flux_kontext_edit", + "humanApprovalPacketSHA256": "69c6b3d9b0ea2fcca16ee538f6e75b414b7141658b74f10578758e61360f63fd" + }, + { + "path": "template-gallery/reviews/flux_kontext_multi_reference.quality-review.json", "sha256": "sha256:bytes:e81c8ef5da7e3e2a0d6b511c093052c6edcc5dff6c5ca59db393450ed2a1cb06", "publishDecision": "approved", "holdReason": null, @@ -16547,601 +17747,1249 @@ "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/kandinsky-community/kandinsky-3/tree/bf79e6c219da8a94abb50235fdc4567eb8fb4632", - "sourceRevision": "kandinsky-community/kandinsky-3@bf79e6c219da8a94abb50235fdc4567eb8fb4632", + "sourceUrl": "https://huggingface.co/kandinsky-community/kandinsky-3/tree/bf79e6c219da8a94abb50235fdc4567eb8fb4632", + "sourceRevision": "kandinsky-community/kandinsky-3@bf79e6c219da8a94abb50235fdc4567eb8fb4632", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "Publisher model terms at https://huggingface.co/kandinsky-community/kandinsky-3/tree/bf79e6c219da8a94abb50235fdc4567eb8fb4632" + ], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "kandinsky-community/kandinsky-3@bf79e6c219da8a94abb50235fdc4567eb8fb4632 https://huggingface.co/kandinsky-community/kandinsky-3/tree/bf79e6c219da8a94abb50235fdc4567eb8fb4632" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "60b01498a2df5f4e4622cdc2f9a43c83d187820780d2425a19718c13707db501", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "kandinsky3_smoked_glass_on_limestone" + }, + { + "path": "template-gallery/reviews/kandinsky3_smoked_glass_on_limestone.quality-review.json", + "sha256": "sha256:bytes:e6d9b0e253b694fab331fe62247c0adf47c2947d841ba8da08629522a37613ef", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/kandinsky-community/kandinsky-3/tree/bf79e6c219da8a94abb50235fdc4567eb8fb4632", + "sourceRevision": "kandinsky-community/kandinsky-3@bf79e6c219da8a94abb50235fdc4567eb8fb4632", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "Publisher model terms at https://huggingface.co/kandinsky-community/kandinsky-3/tree/bf79e6c219da8a94abb50235fdc4567eb8fb4632" + ], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "kandinsky-community/kandinsky-3@bf79e6c219da8a94abb50235fdc4567eb8fb4632 https://huggingface.co/kandinsky-community/kandinsky-3/tree/bf79e6c219da8a94abb50235fdc4567eb8fb4632" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "60b01498a2df5f4e4622cdc2f9a43c83d187820780d2425a19718c13707db501", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "kandinsky3_smoked_glass_on_limestone" + }, + { + "path": "template-gallery/reviews/kandinsky3_smoked_glass_on_limestone.retained-template-provenance.json", + "sha256": "sha256:bytes:5dbf90cd4b0f214fdae6e49c20ec03e38fc8552275d07e900ae737af469ea66a", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/kandinsky-community/kandinsky-3/tree/bf79e6c219da8a94abb50235fdc4567eb8fb4632", + "sourceRevision": "kandinsky-community/kandinsky-3@bf79e6c219da8a94abb50235fdc4567eb8fb4632", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "Publisher model terms at https://huggingface.co/kandinsky-community/kandinsky-3/tree/bf79e6c219da8a94abb50235fdc4567eb8fb4632" + ], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "kandinsky-community/kandinsky-3@bf79e6c219da8a94abb50235fdc4567eb8fb4632 https://huggingface.co/kandinsky-community/kandinsky-3/tree/bf79e6c219da8a94abb50235fdc4567eb8fb4632" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "60b01498a2df5f4e4622cdc2f9a43c83d187820780d2425a19718c13707db501", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "kandinsky3_smoked_glass_on_limestone" + }, + { + "path": "template-gallery/reviews/kontext_wide_water_alpine_ridge.original-provenance.json", + "sha256": "sha256:bytes:8f93f5553eeb580705586eda046026ac8ed8742b09defff688fd67892e131d90", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/black-forest-labs/FLUX.1-Kontext-dev/tree/24e9dedc4ef646698dc8eb4e18ae2cec3c9fea0d", + "sourceRevision": "black-forest-labs/FLUX.1-Kontext-dev@24e9dedc4ef646698dc8eb4e18ae2cec3c9fea0d", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "Publisher model terms at https://huggingface.co/black-forest-labs/FLUX.1-Kontext-dev/tree/24e9dedc4ef646698dc8eb4e18ae2cec3c9fea0d" + ], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "black-forest-labs/FLUX.1-Kontext-dev@24e9dedc4ef646698dc8eb4e18ae2cec3c9fea0d https://huggingface.co/black-forest-labs/FLUX.1-Kontext-dev/tree/24e9dedc4ef646698dc8eb4e18ae2cec3c9fea0d" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "60b01498a2df5f4e4622cdc2f9a43c83d187820780d2425a19718c13707db501", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "kontext_wide_water_alpine_ridge" + }, + { + "path": "template-gallery/reviews/kontext_wide_water_alpine_ridge.original-review.json", + "sha256": "sha256:bytes:f54561af3e759232c7e01a2515d98b66c38d56d7fe8ece573ce2f83bfcbbf3f8", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/black-forest-labs/FLUX.1-Kontext-dev/tree/24e9dedc4ef646698dc8eb4e18ae2cec3c9fea0d", + "sourceRevision": "black-forest-labs/FLUX.1-Kontext-dev@24e9dedc4ef646698dc8eb4e18ae2cec3c9fea0d", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "Publisher model terms at https://huggingface.co/black-forest-labs/FLUX.1-Kontext-dev/tree/24e9dedc4ef646698dc8eb4e18ae2cec3c9fea0d" + ], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "black-forest-labs/FLUX.1-Kontext-dev@24e9dedc4ef646698dc8eb4e18ae2cec3c9fea0d https://huggingface.co/black-forest-labs/FLUX.1-Kontext-dev/tree/24e9dedc4ef646698dc8eb4e18ae2cec3c9fea0d" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "60b01498a2df5f4e4622cdc2f9a43c83d187820780d2425a19718c13707db501", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "kontext_wide_water_alpine_ridge" + }, + { + "path": "template-gallery/reviews/kontext_wide_water_alpine_ridge.quality-review.json", + "sha256": "sha256:bytes:2dcf22dab88c45ead8d951f9443f61657d37eb30d07add1183a3633dbffcfe98", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/black-forest-labs/FLUX.1-Kontext-dev/tree/24e9dedc4ef646698dc8eb4e18ae2cec3c9fea0d", + "sourceRevision": "black-forest-labs/FLUX.1-Kontext-dev@24e9dedc4ef646698dc8eb4e18ae2cec3c9fea0d", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "Publisher model terms at https://huggingface.co/black-forest-labs/FLUX.1-Kontext-dev/tree/24e9dedc4ef646698dc8eb4e18ae2cec3c9fea0d" + ], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "black-forest-labs/FLUX.1-Kontext-dev@24e9dedc4ef646698dc8eb4e18ae2cec3c9fea0d https://huggingface.co/black-forest-labs/FLUX.1-Kontext-dev/tree/24e9dedc4ef646698dc8eb4e18ae2cec3c9fea0d" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "60b01498a2df5f4e4622cdc2f9a43c83d187820780d2425a19718c13707db501", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "kontext_wide_water_alpine_ridge" + }, + { + "path": "template-gallery/reviews/kontext_wide_water_alpine_ridge.retained-template-provenance.json", + "sha256": "sha256:bytes:97059d8dd67e7e5a82c9c458b4c992c680235cae0fc205fde6ae3915f43f3ff7", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/black-forest-labs/FLUX.1-Kontext-dev/tree/24e9dedc4ef646698dc8eb4e18ae2cec3c9fea0d", + "sourceRevision": "black-forest-labs/FLUX.1-Kontext-dev@24e9dedc4ef646698dc8eb4e18ae2cec3c9fea0d", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "Publisher model terms at https://huggingface.co/black-forest-labs/FLUX.1-Kontext-dev/tree/24e9dedc4ef646698dc8eb4e18ae2cec3c9fea0d" + ], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "black-forest-labs/FLUX.1-Kontext-dev@24e9dedc4ef646698dc8eb4e18ae2cec3c9fea0d https://huggingface.co/black-forest-labs/FLUX.1-Kontext-dev/tree/24e9dedc4ef646698dc8eb4e18ae2cec3c9fea0d" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "60b01498a2df5f4e4622cdc2f9a43c83d187820780d2425a19718c13707db501", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "kontext_wide_water_alpine_ridge" + }, + { + "path": "template-gallery/reviews/latte_water_folding_over_slate.original-provenance.json", + "sha256": "sha256:bytes:78b4bc4724cd17a1257feccd32ddc38735c5df0e4144c27d5d0d8d3ee1fd2ef9", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/maxin-cn/Latte-1/tree/0653024365272f061fc44d1078134df22842b687", + "sourceRevision": "maxin-cn/Latte-1@0653024365272f061fc44d1078134df22842b687", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "https://huggingface.co/maxin-cn/Latte-1/tree/0653024365272f061fc44d1078134df22842b687" + ], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "maxin-cn/Latte-1@0653024365272f061fc44d1078134df22842b687 https://huggingface.co/maxin-cn/Latte-1/tree/0653024365272f061fc44d1078134df22842b687" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "aeba59d388381d75a2935a470ac831faabbd1f0b0be51af0bca839e601c1d034", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "latte_water_folding_over_slate" + }, + { + "path": "template-gallery/reviews/latte_water_folding_over_slate.original-review.json", + "sha256": "sha256:bytes:999a0678c180f2fbdba3fe72331f42d997a671785f837f261beec272e97cb95a", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/maxin-cn/Latte-1/tree/0653024365272f061fc44d1078134df22842b687", + "sourceRevision": "maxin-cn/Latte-1@0653024365272f061fc44d1078134df22842b687", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "https://huggingface.co/maxin-cn/Latte-1/tree/0653024365272f061fc44d1078134df22842b687" + ], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "maxin-cn/Latte-1@0653024365272f061fc44d1078134df22842b687 https://huggingface.co/maxin-cn/Latte-1/tree/0653024365272f061fc44d1078134df22842b687" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "aeba59d388381d75a2935a470ac831faabbd1f0b0be51af0bca839e601c1d034", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "latte_water_folding_over_slate" + }, + { + "path": "template-gallery/reviews/latte_water_folding_over_slate.quality-review.json", + "sha256": "sha256:bytes:2e2c24315e418c9cf93eb6e742d453a52b43dcfabf21b85d0fc33f9e048dcdc2", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/maxin-cn/Latte-1/tree/0653024365272f061fc44d1078134df22842b687", + "sourceRevision": "maxin-cn/Latte-1@0653024365272f061fc44d1078134df22842b687", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "https://huggingface.co/maxin-cn/Latte-1/tree/0653024365272f061fc44d1078134df22842b687" + ], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "maxin-cn/Latte-1@0653024365272f061fc44d1078134df22842b687 https://huggingface.co/maxin-cn/Latte-1/tree/0653024365272f061fc44d1078134df22842b687" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "aeba59d388381d75a2935a470ac831faabbd1f0b0be51af0bca839e601c1d034", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "latte_water_folding_over_slate" + }, + { + "path": "template-gallery/reviews/latte_water_folding_over_slate.retained-template-provenance.json", + "sha256": "sha256:bytes:8f4dd40d5f9ba67c1001b7d41730c004cebe9bda2a8756b5c32caa4041f2b6b5", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/maxin-cn/Latte-1/tree/0653024365272f061fc44d1078134df22842b687", + "sourceRevision": "maxin-cn/Latte-1@0653024365272f061fc44d1078134df22842b687", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "https://huggingface.co/maxin-cn/Latte-1/tree/0653024365272f061fc44d1078134df22842b687" + ], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "maxin-cn/Latte-1@0653024365272f061fc44d1078134df22842b687 https://huggingface.co/maxin-cn/Latte-1/tree/0653024365272f061fc44d1078134df22842b687" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "aeba59d388381d75a2935a470ac831faabbd1f0b0be51af0bca839e601c1d034", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "latte_water_folding_over_slate" + }, + { + "path": "template-gallery/reviews/lcm_dawn_alpine_lake.quality-review.json", + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "humanLikenessConsent": "not-applicable", + "marks": [], + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-20", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "ba369c5fff89e379be66714d3ecbf1a0e3a9555e2b5ffbc9cb54210d862ec30b", + "publicationBasis": "Maintainer approved the exact Whisper JSON and both exact LCM images, accepted the disclosed LCM changes, and authorized publication of the associated redacted Gallery records.", + "creationMethod": "Project-authored redacted retained Gallery review, provenance or registration metadata", + "sourceUrl": null, + "sourceRevision": null, + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [], + "aiGenerated": false, + "requiredAttribution": [], + "assetLicense": "Apache-2.0", + "provenanceTemplateId": "lcm_dawn_alpine_lake", + "sha256": "sha256:bytes:e5c590a6287147faad9d5eab5676b8d2bb8224a8581a2043cf78c8dd50dcb0b9", + "publishDecision": "approved", + "holdReason": null + }, + { + "path": "template-gallery/reviews/lcm_dawn_alpine_lake.retained-template-provenance.json", + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "humanLikenessConsent": "not-applicable", + "marks": [], + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-20", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "ba369c5fff89e379be66714d3ecbf1a0e3a9555e2b5ffbc9cb54210d862ec30b", + "publicationBasis": "Maintainer approved the exact Whisper JSON and both exact LCM images, accepted the disclosed LCM changes, and authorized publication of the associated redacted Gallery records.", + "creationMethod": "Project-authored redacted retained Gallery review, provenance or registration metadata", + "sourceUrl": null, + "sourceRevision": null, + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [], + "aiGenerated": false, + "requiredAttribution": [], + "assetLicense": "Apache-2.0", + "provenanceTemplateId": "lcm_dawn_alpine_lake", + "sha256": "sha256:bytes:767b8d794460fca5a3e1c79a89aeaa2b1dcdb815d47702e1063ed35d07163247", + "publishDecision": "approved", + "holdReason": null + }, + { + "path": "template-gallery/reviews/longcat_clear_glass_at_the_bookshop.original-provenance.json", + "sha256": "sha256:bytes:055c3ff5cf5493c80e675b8cd97de5c448856204330c1434522cc0c91482b522", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/meituan-longcat/LongCat-Image-Edit/tree/7b54ef423aa7854be7861600024be5c56ab7875a", + "sourceRevision": "meituan-longcat/LongCat-Image-Edit@7b54ef423aa7854be7861600024be5c56ab7875a", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "Publisher model terms at https://huggingface.co/meituan-longcat/LongCat-Image-Edit/tree/7b54ef423aa7854be7861600024be5c56ab7875a" + ], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "meituan-longcat/LongCat-Image-Edit@7b54ef423aa7854be7861600024be5c56ab7875a https://huggingface.co/meituan-longcat/LongCat-Image-Edit/tree/7b54ef423aa7854be7861600024be5c56ab7875a" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "60b01498a2df5f4e4622cdc2f9a43c83d187820780d2425a19718c13707db501", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "longcat_clear_glass_at_the_bookshop" + }, + { + "path": "template-gallery/reviews/longcat_clear_glass_at_the_bookshop.original-review.json", + "sha256": "sha256:bytes:dabecbb61888f492a4e7d8f45e368097c7f286df24c163c8b5e753ce4553d0ff", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/meituan-longcat/LongCat-Image-Edit/tree/7b54ef423aa7854be7861600024be5c56ab7875a", + "sourceRevision": "meituan-longcat/LongCat-Image-Edit@7b54ef423aa7854be7861600024be5c56ab7875a", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "Publisher model terms at https://huggingface.co/meituan-longcat/LongCat-Image-Edit/tree/7b54ef423aa7854be7861600024be5c56ab7875a" + ], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "meituan-longcat/LongCat-Image-Edit@7b54ef423aa7854be7861600024be5c56ab7875a https://huggingface.co/meituan-longcat/LongCat-Image-Edit/tree/7b54ef423aa7854be7861600024be5c56ab7875a" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "60b01498a2df5f4e4622cdc2f9a43c83d187820780d2425a19718c13707db501", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "longcat_clear_glass_at_the_bookshop" + }, + { + "path": "template-gallery/reviews/longcat_clear_glass_at_the_bookshop.quality-review.json", + "sha256": "sha256:bytes:03185586cf4d78ccfa2aae9dcb3962e82b611d03bb5fefc03bdf34851d50a9ed", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/meituan-longcat/LongCat-Image-Edit/tree/7b54ef423aa7854be7861600024be5c56ab7875a", + "sourceRevision": "meituan-longcat/LongCat-Image-Edit@7b54ef423aa7854be7861600024be5c56ab7875a", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "Publisher model terms at https://huggingface.co/meituan-longcat/LongCat-Image-Edit/tree/7b54ef423aa7854be7861600024be5c56ab7875a" + ], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "meituan-longcat/LongCat-Image-Edit@7b54ef423aa7854be7861600024be5c56ab7875a https://huggingface.co/meituan-longcat/LongCat-Image-Edit/tree/7b54ef423aa7854be7861600024be5c56ab7875a" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "60b01498a2df5f4e4622cdc2f9a43c83d187820780d2425a19718c13707db501", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "longcat_clear_glass_at_the_bookshop" + }, + { + "path": "template-gallery/reviews/longcat_clear_glass_at_the_bookshop.retained-template-provenance.json", + "sha256": "sha256:bytes:8df85b747c9a5b0fe11bb20d81d64b1df7bccb96ec505aa99855adbcf9dd6e51", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/meituan-longcat/LongCat-Image-Edit/tree/7b54ef423aa7854be7861600024be5c56ab7875a", + "sourceRevision": "meituan-longcat/LongCat-Image-Edit@7b54ef423aa7854be7861600024be5c56ab7875a", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "Publisher model terms at https://huggingface.co/meituan-longcat/LongCat-Image-Edit/tree/7b54ef423aa7854be7861600024be5c56ab7875a" + ], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "meituan-longcat/LongCat-Image-Edit@7b54ef423aa7854be7861600024be5c56ab7875a https://huggingface.co/meituan-longcat/LongCat-Image-Edit/tree/7b54ef423aa7854be7861600024be5c56ab7875a" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "60b01498a2df5f4e4622cdc2f9a43c83d187820780d2425a19718c13707db501", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "longcat_clear_glass_at_the_bookshop" + }, + { + "path": "template-gallery/reviews/longcat_florist_end_of_lane.original-provenance.json", + "sha256": "sha256:bytes:31fa3b13f1a585031ab220cb3a1039a9e7c2ed40757801c56cbcc846125ac7b8", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/meituan-longcat/LongCat-Image/tree/d2ea50b79a930074c37b9b97ce45e3b2ea8cf4d8", + "sourceRevision": "meituan-longcat/LongCat-Image@d2ea50b79a930074c37b9b97ce45e3b2ea8cf4d8", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "Publisher model terms at https://huggingface.co/meituan-longcat/LongCat-Image/tree/d2ea50b79a930074c37b9b97ce45e3b2ea8cf4d8" + ], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "meituan-longcat/LongCat-Image@d2ea50b79a930074c37b9b97ce45e3b2ea8cf4d8 https://huggingface.co/meituan-longcat/LongCat-Image/tree/d2ea50b79a930074c37b9b97ce45e3b2ea8cf4d8" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "4fc7c52588176cb1f6ba6d699d08741b2986ea71ea87bac650d261716a10b24c", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "longcat_florist_end_of_lane" + }, + { + "path": "template-gallery/reviews/longcat_florist_end_of_lane.original-review.json", + "sha256": "sha256:bytes:adc8b682f80f09677b97fa57651d336d8b966f7e19586256e6559505f57f9cfc", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/meituan-longcat/LongCat-Image/tree/d2ea50b79a930074c37b9b97ce45e3b2ea8cf4d8", + "sourceRevision": "meituan-longcat/LongCat-Image@d2ea50b79a930074c37b9b97ce45e3b2ea8cf4d8", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "Publisher model terms at https://huggingface.co/meituan-longcat/LongCat-Image/tree/d2ea50b79a930074c37b9b97ce45e3b2ea8cf4d8" + ], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "meituan-longcat/LongCat-Image@d2ea50b79a930074c37b9b97ce45e3b2ea8cf4d8 https://huggingface.co/meituan-longcat/LongCat-Image/tree/d2ea50b79a930074c37b9b97ce45e3b2ea8cf4d8" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "4fc7c52588176cb1f6ba6d699d08741b2986ea71ea87bac650d261716a10b24c", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "longcat_florist_end_of_lane" + }, + { + "path": "template-gallery/reviews/longcat_florist_end_of_lane.quality-review.json", + "sha256": "sha256:bytes:c2b07ec9dccd4ac97f229ff2c836b5215377c240b8455db32a4f72f0313f7a4c", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/meituan-longcat/LongCat-Image/tree/d2ea50b79a930074c37b9b97ce45e3b2ea8cf4d8", + "sourceRevision": "meituan-longcat/LongCat-Image@d2ea50b79a930074c37b9b97ce45e3b2ea8cf4d8", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "Publisher model terms at https://huggingface.co/meituan-longcat/LongCat-Image/tree/d2ea50b79a930074c37b9b97ce45e3b2ea8cf4d8" + ], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "meituan-longcat/LongCat-Image@d2ea50b79a930074c37b9b97ce45e3b2ea8cf4d8 https://huggingface.co/meituan-longcat/LongCat-Image/tree/d2ea50b79a930074c37b9b97ce45e3b2ea8cf4d8" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "4fc7c52588176cb1f6ba6d699d08741b2986ea71ea87bac650d261716a10b24c", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "longcat_florist_end_of_lane" + }, + { + "path": "template-gallery/reviews/longcat_florist_end_of_lane.retained-template-provenance.json", + "sha256": "sha256:bytes:14da3c1cbc2f7ea57b4ec3d84f1a78d72a4e22b62ce0e0d757db78297c3fbed9", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/meituan-longcat/LongCat-Image/tree/d2ea50b79a930074c37b9b97ce45e3b2ea8cf4d8", + "sourceRevision": "meituan-longcat/LongCat-Image@d2ea50b79a930074c37b9b97ce45e3b2ea8cf4d8", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "Publisher model terms at https://huggingface.co/meituan-longcat/LongCat-Image/tree/d2ea50b79a930074c37b9b97ce45e3b2ea8cf4d8" + ], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "meituan-longcat/LongCat-Image@d2ea50b79a930074c37b9b97ce45e3b2ea8cf4d8 https://huggingface.co/meituan-longcat/LongCat-Image/tree/d2ea50b79a930074c37b9b97ce45e3b2ea8cf4d8" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "4fc7c52588176cb1f6ba6d699d08741b2986ea71ea87bac650d261716a10b24c", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "longcat_florist_end_of_lane" + }, + { + "path": "template-gallery/reviews/longcat_last_tram_at_dusk.original-provenance.json", + "sha256": "sha256:bytes:34b322e643eacf47f4c02019564cb85720cb3b9b8334d524e47226d60c4faa60", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/ruixiangma/LongCat-AudioDiT-1B-Diffusers/tree/f4c063ea37f262ba5e6129ebd80095a6d6a9de4d", + "sourceRevision": "ruixiangma/LongCat-AudioDiT-1B-Diffusers@f4c063ea37f262ba5e6129ebd80095a6d6a9de4d", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "Publisher model terms at https://huggingface.co/ruixiangma/LongCat-AudioDiT-1B-Diffusers/tree/f4c063ea37f262ba5e6129ebd80095a6d6a9de4d" + ], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "ruixiangma/LongCat-AudioDiT-1B-Diffusers@f4c063ea37f262ba5e6129ebd80095a6d6a9de4d https://huggingface.co/ruixiangma/LongCat-AudioDiT-1B-Diffusers/tree/f4c063ea37f262ba5e6129ebd80095a6d6a9de4d" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "15c604ae5df3abed63c95046a78859adb870f415f45c06a99f58ad652fc0dea2", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "longcat_last_tram_at_dusk" + }, + { + "path": "template-gallery/reviews/longcat_last_tram_at_dusk.original-review.json", + "sha256": "sha256:bytes:7ee2f38d8dd9199e6a754312dba9e962007389ba4527f0aebb96272b454394a5", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/ruixiangma/LongCat-AudioDiT-1B-Diffusers/tree/f4c063ea37f262ba5e6129ebd80095a6d6a9de4d", + "sourceRevision": "ruixiangma/LongCat-AudioDiT-1B-Diffusers@f4c063ea37f262ba5e6129ebd80095a6d6a9de4d", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "Publisher model terms at https://huggingface.co/ruixiangma/LongCat-AudioDiT-1B-Diffusers/tree/f4c063ea37f262ba5e6129ebd80095a6d6a9de4d" + ], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "ruixiangma/LongCat-AudioDiT-1B-Diffusers@f4c063ea37f262ba5e6129ebd80095a6d6a9de4d https://huggingface.co/ruixiangma/LongCat-AudioDiT-1B-Diffusers/tree/f4c063ea37f262ba5e6129ebd80095a6d6a9de4d" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "15c604ae5df3abed63c95046a78859adb870f415f45c06a99f58ad652fc0dea2", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "longcat_last_tram_at_dusk" + }, + { + "path": "template-gallery/reviews/longcat_last_tram_at_dusk.quality-review.json", + "sha256": "sha256:bytes:f2883c589ff0313062b4c0c995b35ce08d837f02efb4f6f097d004961b8d298f", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/ruixiangma/LongCat-AudioDiT-1B-Diffusers/tree/f4c063ea37f262ba5e6129ebd80095a6d6a9de4d", + "sourceRevision": "ruixiangma/LongCat-AudioDiT-1B-Diffusers@f4c063ea37f262ba5e6129ebd80095a6d6a9de4d", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "Publisher model terms at https://huggingface.co/ruixiangma/LongCat-AudioDiT-1B-Diffusers/tree/f4c063ea37f262ba5e6129ebd80095a6d6a9de4d" + ], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "ruixiangma/LongCat-AudioDiT-1B-Diffusers@f4c063ea37f262ba5e6129ebd80095a6d6a9de4d https://huggingface.co/ruixiangma/LongCat-AudioDiT-1B-Diffusers/tree/f4c063ea37f262ba5e6129ebd80095a6d6a9de4d" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "15c604ae5df3abed63c95046a78859adb870f415f45c06a99f58ad652fc0dea2", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "longcat_last_tram_at_dusk" + }, + { + "path": "template-gallery/reviews/longcat_last_tram_at_dusk.retained-template-provenance.json", + "sha256": "sha256:bytes:071240681910f119ab723f580b68bc1037896a28132a51fbb338e61bf9f8a0bf", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/ruixiangma/LongCat-AudioDiT-1B-Diffusers/tree/f4c063ea37f262ba5e6129ebd80095a6d6a9de4d", + "sourceRevision": "ruixiangma/LongCat-AudioDiT-1B-Diffusers@f4c063ea37f262ba5e6129ebd80095a6d6a9de4d", "sourceLicense": "MoDiff-authored Gallery metadata", "modelTerms": [ - "Publisher model terms at https://huggingface.co/kandinsky-community/kandinsky-3/tree/bf79e6c219da8a94abb50235fdc4567eb8fb4632" + "Publisher model terms at https://huggingface.co/ruixiangma/LongCat-AudioDiT-1B-Diffusers/tree/f4c063ea37f262ba5e6129ebd80095a6d6a9de4d" ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "kandinsky-community/kandinsky-3@bf79e6c219da8a94abb50235fdc4567eb8fb4632 https://huggingface.co/kandinsky-community/kandinsky-3/tree/bf79e6c219da8a94abb50235fdc4567eb8fb4632" + "ruixiangma/LongCat-AudioDiT-1B-Diffusers@f4c063ea37f262ba5e6129ebd80095a6d6a9de4d https://huggingface.co/ruixiangma/LongCat-AudioDiT-1B-Diffusers/tree/f4c063ea37f262ba5e6129ebd80095a6d6a9de4d" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "60b01498a2df5f4e4622cdc2f9a43c83d187820780d2425a19718c13707db501", + "humanApprovalPacketSHA256": "15c604ae5df3abed63c95046a78859adb870f415f45c06a99f58ad652fc0dea2", "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", - "provenanceTemplateId": "kandinsky3_smoked_glass_on_limestone" + "provenanceTemplateId": "longcat_last_tram_at_dusk" }, { - "path": "template-gallery/reviews/kandinsky3_smoked_glass_on_limestone.quality-review.json", - "sha256": "sha256:bytes:e6d9b0e253b694fab331fe62247c0adf47c2947d841ba8da08629522a37613ef", + "path": "template-gallery/reviews/low_vram.quality-review.json", + "sha256": "sha256:bytes:53b25669d880814ac612e803b0c6f2abbcdd8853e7ea4ca6e1e6d0b97fa23352", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers", + "creationMethod": "MoDiff-authored technical provenance or quality metadata from the explicitly approved six-image source packet", + "sourceUrl": null, + "sourceRevision": null, + "sourceLicense": "Apache-2.0 project-authored metadata; generated-media terms remain in their exact per-file records", + "modelTerms": [], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [], + "assetLicense": "Apache-2.0", + "reviewedBy": "SOURAV DAS", + "reviewedAt": "2026-11-09", + "reviewClass": "per-file-human-approved-six-z-registration", + "provenanceTemplateId": "low_vram", + "humanApprovalPacketSHA256": "9b728a5f8535fc1ba3c03d2e2759d7ac795a586fafab51beb1509379ed388934" + }, + { + "path": "template-gallery/reviews/low_vram.reviewed-provenance.json", + "sha256": "sha256:bytes:a07f1942cb39c873d7ccd1b99dbece3c203d73296712aa0168a3edf4054b8076", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers", + "creationMethod": "MoDiff-authored technical provenance or quality metadata from the explicitly approved six-image source packet", + "sourceUrl": null, + "sourceRevision": null, + "sourceLicense": "Apache-2.0 project-authored metadata; generated-media terms remain in their exact per-file records", + "modelTerms": [], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [], + "assetLicense": "Apache-2.0", + "reviewedBy": "SOURAV DAS", + "reviewedAt": "2026-11-09", + "reviewClass": "per-file-human-approved-six-z-registration", + "provenanceTemplateId": "low_vram", + "humanApprovalPacketSHA256": "9b728a5f8535fc1ba3c03d2e2759d7ac795a586fafab51beb1509379ed388934" + }, + { + "path": "template-gallery/reviews/ltx2_enamel_teapot_window_light.original-provenance.json", + "sha256": "sha256:bytes:1fbe54b9ca2549c6966faf71d0bcbbde7a9c60b2ff64e3bd27086ed97c81aa26", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/kandinsky-community/kandinsky-3/tree/bf79e6c219da8a94abb50235fdc4567eb8fb4632", - "sourceRevision": "kandinsky-community/kandinsky-3@bf79e6c219da8a94abb50235fdc4567eb8fb4632", + "sourceUrl": "https://huggingface.co/Lightricks/LTX-2/tree/47da56e2ad66ce4125a9922b4a8826bf407f9d0a", + "sourceRevision": "Lightricks/LTX-2@47da56e2ad66ce4125a9922b4a8826bf407f9d0a", "sourceLicense": "MoDiff-authored Gallery metadata", "modelTerms": [ - "Publisher model terms at https://huggingface.co/kandinsky-community/kandinsky-3/tree/bf79e6c219da8a94abb50235fdc4567eb8fb4632" + "https://huggingface.co/Lightricks/LTX-2/blob/47da56e2ad66ce4125a9922b4a8826bf407f9d0a/LICENSE" ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "kandinsky-community/kandinsky-3@bf79e6c219da8a94abb50235fdc4567eb8fb4632 https://huggingface.co/kandinsky-community/kandinsky-3/tree/bf79e6c219da8a94abb50235fdc4567eb8fb4632" + "Lightricks/LTX-2@47da56e2ad66ce4125a9922b4a8826bf407f9d0a https://huggingface.co/Lightricks/LTX-2/tree/47da56e2ad66ce4125a9922b4a8826bf407f9d0a" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "60b01498a2df5f4e4622cdc2f9a43c83d187820780d2425a19718c13707db501", + "humanApprovalPacketSHA256": "aeba59d388381d75a2935a470ac831faabbd1f0b0be51af0bca839e601c1d034", "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", - "provenanceTemplateId": "kandinsky3_smoked_glass_on_limestone" + "provenanceTemplateId": "ltx2_enamel_teapot_window_light" }, { - "path": "template-gallery/reviews/kandinsky3_smoked_glass_on_limestone.retained-template-provenance.json", - "sha256": "sha256:bytes:5dbf90cd4b0f214fdae6e49c20ec03e38fc8552275d07e900ae737af469ea66a", + "path": "template-gallery/reviews/ltx2_enamel_teapot_window_light.original-review.json", + "sha256": "sha256:bytes:267b0c3024607fabad7de1a91cc01b0523b7e8aabb82ae45f0ab79522496bf56", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/kandinsky-community/kandinsky-3/tree/bf79e6c219da8a94abb50235fdc4567eb8fb4632", - "sourceRevision": "kandinsky-community/kandinsky-3@bf79e6c219da8a94abb50235fdc4567eb8fb4632", + "sourceUrl": "https://huggingface.co/Lightricks/LTX-2/tree/47da56e2ad66ce4125a9922b4a8826bf407f9d0a", + "sourceRevision": "Lightricks/LTX-2@47da56e2ad66ce4125a9922b4a8826bf407f9d0a", "sourceLicense": "MoDiff-authored Gallery metadata", "modelTerms": [ - "Publisher model terms at https://huggingface.co/kandinsky-community/kandinsky-3/tree/bf79e6c219da8a94abb50235fdc4567eb8fb4632" + "https://huggingface.co/Lightricks/LTX-2/blob/47da56e2ad66ce4125a9922b4a8826bf407f9d0a/LICENSE" ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "kandinsky-community/kandinsky-3@bf79e6c219da8a94abb50235fdc4567eb8fb4632 https://huggingface.co/kandinsky-community/kandinsky-3/tree/bf79e6c219da8a94abb50235fdc4567eb8fb4632" + "Lightricks/LTX-2@47da56e2ad66ce4125a9922b4a8826bf407f9d0a https://huggingface.co/Lightricks/LTX-2/tree/47da56e2ad66ce4125a9922b4a8826bf407f9d0a" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "60b01498a2df5f4e4622cdc2f9a43c83d187820780d2425a19718c13707db501", + "humanApprovalPacketSHA256": "aeba59d388381d75a2935a470ac831faabbd1f0b0be51af0bca839e601c1d034", "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", - "provenanceTemplateId": "kandinsky3_smoked_glass_on_limestone" + "provenanceTemplateId": "ltx2_enamel_teapot_window_light" }, { - "path": "template-gallery/reviews/kontext_wide_water_alpine_ridge.original-provenance.json", - "sha256": "sha256:bytes:8f93f5553eeb580705586eda046026ac8ed8742b09defff688fd67892e131d90", + "path": "template-gallery/reviews/ltx2_enamel_teapot_window_light.quality-review.json", + "sha256": "sha256:bytes:9b54148c2f192cefa6d83b75ded11a7a45bb048327dd164c4095702c76b98e65", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/black-forest-labs/FLUX.1-Kontext-dev/tree/24e9dedc4ef646698dc8eb4e18ae2cec3c9fea0d", - "sourceRevision": "black-forest-labs/FLUX.1-Kontext-dev@24e9dedc4ef646698dc8eb4e18ae2cec3c9fea0d", + "sourceUrl": "https://huggingface.co/Lightricks/LTX-2/tree/47da56e2ad66ce4125a9922b4a8826bf407f9d0a", + "sourceRevision": "Lightricks/LTX-2@47da56e2ad66ce4125a9922b4a8826bf407f9d0a", "sourceLicense": "MoDiff-authored Gallery metadata", "modelTerms": [ - "Publisher model terms at https://huggingface.co/black-forest-labs/FLUX.1-Kontext-dev/tree/24e9dedc4ef646698dc8eb4e18ae2cec3c9fea0d" + "https://huggingface.co/Lightricks/LTX-2/blob/47da56e2ad66ce4125a9922b4a8826bf407f9d0a/LICENSE" ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "black-forest-labs/FLUX.1-Kontext-dev@24e9dedc4ef646698dc8eb4e18ae2cec3c9fea0d https://huggingface.co/black-forest-labs/FLUX.1-Kontext-dev/tree/24e9dedc4ef646698dc8eb4e18ae2cec3c9fea0d" + "Lightricks/LTX-2@47da56e2ad66ce4125a9922b4a8826bf407f9d0a https://huggingface.co/Lightricks/LTX-2/tree/47da56e2ad66ce4125a9922b4a8826bf407f9d0a" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "60b01498a2df5f4e4622cdc2f9a43c83d187820780d2425a19718c13707db501", + "humanApprovalPacketSHA256": "aeba59d388381d75a2935a470ac831faabbd1f0b0be51af0bca839e601c1d034", "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", - "provenanceTemplateId": "kontext_wide_water_alpine_ridge" + "provenanceTemplateId": "ltx2_enamel_teapot_window_light" }, { - "path": "template-gallery/reviews/kontext_wide_water_alpine_ridge.original-review.json", - "sha256": "sha256:bytes:f54561af3e759232c7e01a2515d98b66c38d56d7fe8ece573ce2f83bfcbbf3f8", + "path": "template-gallery/reviews/ltx2_enamel_teapot_window_light.retained-template-provenance.json", + "sha256": "sha256:bytes:f09d8c8ab232f31491bffe08d4ab09b2e4385849905660c4454d63a6c7d57714", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/black-forest-labs/FLUX.1-Kontext-dev/tree/24e9dedc4ef646698dc8eb4e18ae2cec3c9fea0d", - "sourceRevision": "black-forest-labs/FLUX.1-Kontext-dev@24e9dedc4ef646698dc8eb4e18ae2cec3c9fea0d", + "sourceUrl": "https://huggingface.co/Lightricks/LTX-2/tree/47da56e2ad66ce4125a9922b4a8826bf407f9d0a", + "sourceRevision": "Lightricks/LTX-2@47da56e2ad66ce4125a9922b4a8826bf407f9d0a", "sourceLicense": "MoDiff-authored Gallery metadata", "modelTerms": [ - "Publisher model terms at https://huggingface.co/black-forest-labs/FLUX.1-Kontext-dev/tree/24e9dedc4ef646698dc8eb4e18ae2cec3c9fea0d" + "https://huggingface.co/Lightricks/LTX-2/blob/47da56e2ad66ce4125a9922b4a8826bf407f9d0a/LICENSE" ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "black-forest-labs/FLUX.1-Kontext-dev@24e9dedc4ef646698dc8eb4e18ae2cec3c9fea0d https://huggingface.co/black-forest-labs/FLUX.1-Kontext-dev/tree/24e9dedc4ef646698dc8eb4e18ae2cec3c9fea0d" + "Lightricks/LTX-2@47da56e2ad66ce4125a9922b4a8826bf407f9d0a https://huggingface.co/Lightricks/LTX-2/tree/47da56e2ad66ce4125a9922b4a8826bf407f9d0a" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "60b01498a2df5f4e4622cdc2f9a43c83d187820780d2425a19718c13707db501", + "humanApprovalPacketSHA256": "aeba59d388381d75a2935a470ac831faabbd1f0b0be51af0bca839e601c1d034", "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", - "provenanceTemplateId": "kontext_wide_water_alpine_ridge" + "provenanceTemplateId": "ltx2_enamel_teapot_window_light" }, { - "path": "template-gallery/reviews/kontext_wide_water_alpine_ridge.quality-review.json", - "sha256": "sha256:bytes:2dcf22dab88c45ead8d951f9443f61657d37eb30d07add1183a3633dbffcfe98", + "path": "template-gallery/reviews/ltx2_glasshouse_drip.original-provenance.json", + "sha256": "sha256:bytes:2d1b15c2d57f48e996da58f168af3a46124c5a05735f93c9e7278fcb8a7fc49b", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/black-forest-labs/FLUX.1-Kontext-dev/tree/24e9dedc4ef646698dc8eb4e18ae2cec3c9fea0d", - "sourceRevision": "black-forest-labs/FLUX.1-Kontext-dev@24e9dedc4ef646698dc8eb4e18ae2cec3c9fea0d", + "sourceUrl": "https://huggingface.co/Lightricks/LTX-2/tree/47da56e2ad66ce4125a9922b4a8826bf407f9d0a", + "sourceRevision": "Lightricks/LTX-2@47da56e2ad66ce4125a9922b4a8826bf407f9d0a", "sourceLicense": "MoDiff-authored Gallery metadata", "modelTerms": [ - "Publisher model terms at https://huggingface.co/black-forest-labs/FLUX.1-Kontext-dev/tree/24e9dedc4ef646698dc8eb4e18ae2cec3c9fea0d" + "https://huggingface.co/Lightricks/LTX-2/tree/47da56e2ad66ce4125a9922b4a8826bf407f9d0a" ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "black-forest-labs/FLUX.1-Kontext-dev@24e9dedc4ef646698dc8eb4e18ae2cec3c9fea0d https://huggingface.co/black-forest-labs/FLUX.1-Kontext-dev/tree/24e9dedc4ef646698dc8eb4e18ae2cec3c9fea0d" + "Lightricks/LTX-2@47da56e2ad66ce4125a9922b4a8826bf407f9d0a https://huggingface.co/Lightricks/LTX-2/tree/47da56e2ad66ce4125a9922b4a8826bf407f9d0a" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "60b01498a2df5f4e4622cdc2f9a43c83d187820780d2425a19718c13707db501", + "humanApprovalPacketSHA256": "aeba59d388381d75a2935a470ac831faabbd1f0b0be51af0bca839e601c1d034", "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", - "provenanceTemplateId": "kontext_wide_water_alpine_ridge" + "provenanceTemplateId": "ltx2_glasshouse_drip" }, { - "path": "template-gallery/reviews/kontext_wide_water_alpine_ridge.retained-template-provenance.json", - "sha256": "sha256:bytes:97059d8dd67e7e5a82c9c458b4c992c680235cae0fc205fde6ae3915f43f3ff7", + "path": "template-gallery/reviews/ltx2_glasshouse_drip.original-review.json", + "sha256": "sha256:bytes:b4f072e5c562496ea776a53b1cb5704dbba69e5d273191160afb3cb8f2524ad8", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/black-forest-labs/FLUX.1-Kontext-dev/tree/24e9dedc4ef646698dc8eb4e18ae2cec3c9fea0d", - "sourceRevision": "black-forest-labs/FLUX.1-Kontext-dev@24e9dedc4ef646698dc8eb4e18ae2cec3c9fea0d", + "sourceUrl": "https://huggingface.co/Lightricks/LTX-2/tree/47da56e2ad66ce4125a9922b4a8826bf407f9d0a", + "sourceRevision": "Lightricks/LTX-2@47da56e2ad66ce4125a9922b4a8826bf407f9d0a", "sourceLicense": "MoDiff-authored Gallery metadata", "modelTerms": [ - "Publisher model terms at https://huggingface.co/black-forest-labs/FLUX.1-Kontext-dev/tree/24e9dedc4ef646698dc8eb4e18ae2cec3c9fea0d" + "https://huggingface.co/Lightricks/LTX-2/tree/47da56e2ad66ce4125a9922b4a8826bf407f9d0a" ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "black-forest-labs/FLUX.1-Kontext-dev@24e9dedc4ef646698dc8eb4e18ae2cec3c9fea0d https://huggingface.co/black-forest-labs/FLUX.1-Kontext-dev/tree/24e9dedc4ef646698dc8eb4e18ae2cec3c9fea0d" + "Lightricks/LTX-2@47da56e2ad66ce4125a9922b4a8826bf407f9d0a https://huggingface.co/Lightricks/LTX-2/tree/47da56e2ad66ce4125a9922b4a8826bf407f9d0a" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "60b01498a2df5f4e4622cdc2f9a43c83d187820780d2425a19718c13707db501", + "humanApprovalPacketSHA256": "aeba59d388381d75a2935a470ac831faabbd1f0b0be51af0bca839e601c1d034", "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", - "provenanceTemplateId": "kontext_wide_water_alpine_ridge" - }, - { - "path": "template-gallery/reviews/lcm_dawn_alpine_lake.quality-review.json", - "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", - "humanLikenessConsent": "not-applicable", - "marks": [], - "reviewedBy": "MoDiff workspace maintainer", - "reviewedAt": "2026-11-20", - "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "ba369c5fff89e379be66714d3ecbf1a0e3a9555e2b5ffbc9cb54210d862ec30b", - "publicationBasis": "Maintainer approved the exact Whisper JSON and both exact LCM images, accepted the disclosed LCM changes, and authorized publication of the associated redacted Gallery records.", - "creationMethod": "Project-authored redacted retained Gallery review, provenance or registration metadata", - "sourceUrl": null, - "sourceRevision": null, - "sourceLicense": "MoDiff-authored Gallery metadata", - "modelTerms": [], - "aiGenerated": false, - "requiredAttribution": [], - "assetLicense": "Apache-2.0", - "provenanceTemplateId": "lcm_dawn_alpine_lake", - "sha256": "sha256:bytes:e5c590a6287147faad9d5eab5676b8d2bb8224a8581a2043cf78c8dd50dcb0b9", - "publishDecision": "approved", - "holdReason": null + "provenanceTemplateId": "ltx2_glasshouse_drip" }, { - "path": "template-gallery/reviews/lcm_dawn_alpine_lake.retained-template-provenance.json", - "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", - "humanLikenessConsent": "not-applicable", - "marks": [], - "reviewedBy": "MoDiff workspace maintainer", - "reviewedAt": "2026-11-20", - "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "ba369c5fff89e379be66714d3ecbf1a0e3a9555e2b5ffbc9cb54210d862ec30b", - "publicationBasis": "Maintainer approved the exact Whisper JSON and both exact LCM images, accepted the disclosed LCM changes, and authorized publication of the associated redacted Gallery records.", - "creationMethod": "Project-authored redacted retained Gallery review, provenance or registration metadata", - "sourceUrl": null, - "sourceRevision": null, - "sourceLicense": "MoDiff-authored Gallery metadata", - "modelTerms": [], - "aiGenerated": false, - "requiredAttribution": [], - "assetLicense": "Apache-2.0", - "provenanceTemplateId": "lcm_dawn_alpine_lake", - "sha256": "sha256:bytes:767b8d794460fca5a3e1c79a89aeaa2b1dcdb815d47702e1063ed35d07163247", - "publishDecision": "approved", - "holdReason": null - }, - { - "path": "template-gallery/reviews/longcat_clear_glass_at_the_bookshop.original-provenance.json", - "sha256": "sha256:bytes:055c3ff5cf5493c80e675b8cd97de5c448856204330c1434522cc0c91482b522", + "path": "template-gallery/reviews/ltx2_glasshouse_drip.quality-review.json", + "sha256": "sha256:bytes:6caef4f4af6cf21f2de32684a374508b990d6ef392957a11ddbb217b5037a34d", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/meituan-longcat/LongCat-Image-Edit/tree/7b54ef423aa7854be7861600024be5c56ab7875a", - "sourceRevision": "meituan-longcat/LongCat-Image-Edit@7b54ef423aa7854be7861600024be5c56ab7875a", + "sourceUrl": "https://huggingface.co/Lightricks/LTX-2/tree/47da56e2ad66ce4125a9922b4a8826bf407f9d0a", + "sourceRevision": "Lightricks/LTX-2@47da56e2ad66ce4125a9922b4a8826bf407f9d0a", "sourceLicense": "MoDiff-authored Gallery metadata", "modelTerms": [ - "Publisher model terms at https://huggingface.co/meituan-longcat/LongCat-Image-Edit/tree/7b54ef423aa7854be7861600024be5c56ab7875a" + "https://huggingface.co/Lightricks/LTX-2/tree/47da56e2ad66ce4125a9922b4a8826bf407f9d0a" ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "meituan-longcat/LongCat-Image-Edit@7b54ef423aa7854be7861600024be5c56ab7875a https://huggingface.co/meituan-longcat/LongCat-Image-Edit/tree/7b54ef423aa7854be7861600024be5c56ab7875a" + "Lightricks/LTX-2@47da56e2ad66ce4125a9922b4a8826bf407f9d0a https://huggingface.co/Lightricks/LTX-2/tree/47da56e2ad66ce4125a9922b4a8826bf407f9d0a" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "60b01498a2df5f4e4622cdc2f9a43c83d187820780d2425a19718c13707db501", + "humanApprovalPacketSHA256": "aeba59d388381d75a2935a470ac831faabbd1f0b0be51af0bca839e601c1d034", "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", - "provenanceTemplateId": "longcat_clear_glass_at_the_bookshop" + "provenanceTemplateId": "ltx2_glasshouse_drip" }, { - "path": "template-gallery/reviews/longcat_clear_glass_at_the_bookshop.original-review.json", - "sha256": "sha256:bytes:dabecbb61888f492a4e7d8f45e368097c7f286df24c163c8b5e753ce4553d0ff", + "path": "template-gallery/reviews/ltx2_glasshouse_drip.retained-template-provenance.json", + "sha256": "sha256:bytes:06e0dc880d5f9233edba458c58390254af536a1657d217d6e2e315e68452d5c3", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/meituan-longcat/LongCat-Image-Edit/tree/7b54ef423aa7854be7861600024be5c56ab7875a", - "sourceRevision": "meituan-longcat/LongCat-Image-Edit@7b54ef423aa7854be7861600024be5c56ab7875a", + "sourceUrl": "https://huggingface.co/Lightricks/LTX-2/tree/47da56e2ad66ce4125a9922b4a8826bf407f9d0a", + "sourceRevision": "Lightricks/LTX-2@47da56e2ad66ce4125a9922b4a8826bf407f9d0a", "sourceLicense": "MoDiff-authored Gallery metadata", "modelTerms": [ - "Publisher model terms at https://huggingface.co/meituan-longcat/LongCat-Image-Edit/tree/7b54ef423aa7854be7861600024be5c56ab7875a" + "https://huggingface.co/Lightricks/LTX-2/tree/47da56e2ad66ce4125a9922b4a8826bf407f9d0a" ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "meituan-longcat/LongCat-Image-Edit@7b54ef423aa7854be7861600024be5c56ab7875a https://huggingface.co/meituan-longcat/LongCat-Image-Edit/tree/7b54ef423aa7854be7861600024be5c56ab7875a" + "Lightricks/LTX-2@47da56e2ad66ce4125a9922b4a8826bf407f9d0a https://huggingface.co/Lightricks/LTX-2/tree/47da56e2ad66ce4125a9922b4a8826bf407f9d0a" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "60b01498a2df5f4e4622cdc2f9a43c83d187820780d2425a19718c13707db501", + "humanApprovalPacketSHA256": "aeba59d388381d75a2935a470ac831faabbd1f0b0be51af0bca839e601c1d034", "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", - "provenanceTemplateId": "longcat_clear_glass_at_the_bookshop" + "provenanceTemplateId": "ltx2_glasshouse_drip" }, { - "path": "template-gallery/reviews/longcat_clear_glass_at_the_bookshop.quality-review.json", - "sha256": "sha256:bytes:03185586cf4d78ccfa2aae9dcb3962e82b611d03bb5fefc03bdf34851d50a9ed", + "path": "template-gallery/reviews/ltx2_kiln_at_first_light.original-provenance.json", + "sha256": "sha256:bytes:9b3de62f3b8a92705c227b1c737a62113ae2af8e09ce19a82f3ec60f7dd12681", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/meituan-longcat/LongCat-Image-Edit/tree/7b54ef423aa7854be7861600024be5c56ab7875a", - "sourceRevision": "meituan-longcat/LongCat-Image-Edit@7b54ef423aa7854be7861600024be5c56ab7875a", + "sourceUrl": "https://huggingface.co/Lightricks/LTX-2/tree/47da56e2ad66ce4125a9922b4a8826bf407f9d0a", + "sourceRevision": "Lightricks/LTX-2@47da56e2ad66ce4125a9922b4a8826bf407f9d0a", "sourceLicense": "MoDiff-authored Gallery metadata", "modelTerms": [ - "Publisher model terms at https://huggingface.co/meituan-longcat/LongCat-Image-Edit/tree/7b54ef423aa7854be7861600024be5c56ab7875a" + "https://huggingface.co/Lightricks/LTX-2/tree/47da56e2ad66ce4125a9922b4a8826bf407f9d0a" ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "meituan-longcat/LongCat-Image-Edit@7b54ef423aa7854be7861600024be5c56ab7875a https://huggingface.co/meituan-longcat/LongCat-Image-Edit/tree/7b54ef423aa7854be7861600024be5c56ab7875a" + "Lightricks/LTX-2@47da56e2ad66ce4125a9922b4a8826bf407f9d0a https://huggingface.co/Lightricks/LTX-2/tree/47da56e2ad66ce4125a9922b4a8826bf407f9d0a" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "60b01498a2df5f4e4622cdc2f9a43c83d187820780d2425a19718c13707db501", + "humanApprovalPacketSHA256": "aeba59d388381d75a2935a470ac831faabbd1f0b0be51af0bca839e601c1d034", "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", - "provenanceTemplateId": "longcat_clear_glass_at_the_bookshop" + "provenanceTemplateId": "ltx2_kiln_at_first_light" }, { - "path": "template-gallery/reviews/longcat_clear_glass_at_the_bookshop.retained-template-provenance.json", - "sha256": "sha256:bytes:8df85b747c9a5b0fe11bb20d81d64b1df7bccb96ec505aa99855adbcf9dd6e51", + "path": "template-gallery/reviews/ltx2_kiln_at_first_light.original-review.json", + "sha256": "sha256:bytes:fd00080cb70166bef3d980c54eae560171173d4e716a0c2de027b45b455d2035", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/meituan-longcat/LongCat-Image-Edit/tree/7b54ef423aa7854be7861600024be5c56ab7875a", - "sourceRevision": "meituan-longcat/LongCat-Image-Edit@7b54ef423aa7854be7861600024be5c56ab7875a", + "sourceUrl": "https://huggingface.co/Lightricks/LTX-2/tree/47da56e2ad66ce4125a9922b4a8826bf407f9d0a", + "sourceRevision": "Lightricks/LTX-2@47da56e2ad66ce4125a9922b4a8826bf407f9d0a", "sourceLicense": "MoDiff-authored Gallery metadata", "modelTerms": [ - "Publisher model terms at https://huggingface.co/meituan-longcat/LongCat-Image-Edit/tree/7b54ef423aa7854be7861600024be5c56ab7875a" + "https://huggingface.co/Lightricks/LTX-2/tree/47da56e2ad66ce4125a9922b4a8826bf407f9d0a" ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "meituan-longcat/LongCat-Image-Edit@7b54ef423aa7854be7861600024be5c56ab7875a https://huggingface.co/meituan-longcat/LongCat-Image-Edit/tree/7b54ef423aa7854be7861600024be5c56ab7875a" + "Lightricks/LTX-2@47da56e2ad66ce4125a9922b4a8826bf407f9d0a https://huggingface.co/Lightricks/LTX-2/tree/47da56e2ad66ce4125a9922b4a8826bf407f9d0a" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "60b01498a2df5f4e4622cdc2f9a43c83d187820780d2425a19718c13707db501", + "humanApprovalPacketSHA256": "aeba59d388381d75a2935a470ac831faabbd1f0b0be51af0bca839e601c1d034", "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", - "provenanceTemplateId": "longcat_clear_glass_at_the_bookshop" + "provenanceTemplateId": "ltx2_kiln_at_first_light" }, { - "path": "template-gallery/reviews/longcat_florist_end_of_lane.original-provenance.json", - "sha256": "sha256:bytes:31fa3b13f1a585031ab220cb3a1039a9e7c2ed40757801c56cbcc846125ac7b8", + "path": "template-gallery/reviews/ltx2_kiln_at_first_light.quality-review.json", + "sha256": "sha256:bytes:9838d274b6b603d9842987b9248a067f146364c87ba39edce523c5994771e4e5", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/meituan-longcat/LongCat-Image/tree/d2ea50b79a930074c37b9b97ce45e3b2ea8cf4d8", - "sourceRevision": "meituan-longcat/LongCat-Image@d2ea50b79a930074c37b9b97ce45e3b2ea8cf4d8", + "sourceUrl": "https://huggingface.co/Lightricks/LTX-2/tree/47da56e2ad66ce4125a9922b4a8826bf407f9d0a", + "sourceRevision": "Lightricks/LTX-2@47da56e2ad66ce4125a9922b4a8826bf407f9d0a", "sourceLicense": "MoDiff-authored Gallery metadata", "modelTerms": [ - "Publisher model terms at https://huggingface.co/meituan-longcat/LongCat-Image/tree/d2ea50b79a930074c37b9b97ce45e3b2ea8cf4d8" + "https://huggingface.co/Lightricks/LTX-2/tree/47da56e2ad66ce4125a9922b4a8826bf407f9d0a" ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "meituan-longcat/LongCat-Image@d2ea50b79a930074c37b9b97ce45e3b2ea8cf4d8 https://huggingface.co/meituan-longcat/LongCat-Image/tree/d2ea50b79a930074c37b9b97ce45e3b2ea8cf4d8" + "Lightricks/LTX-2@47da56e2ad66ce4125a9922b4a8826bf407f9d0a https://huggingface.co/Lightricks/LTX-2/tree/47da56e2ad66ce4125a9922b4a8826bf407f9d0a" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "4fc7c52588176cb1f6ba6d699d08741b2986ea71ea87bac650d261716a10b24c", + "humanApprovalPacketSHA256": "aeba59d388381d75a2935a470ac831faabbd1f0b0be51af0bca839e601c1d034", "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", - "provenanceTemplateId": "longcat_florist_end_of_lane" + "provenanceTemplateId": "ltx2_kiln_at_first_light" }, { - "path": "template-gallery/reviews/longcat_florist_end_of_lane.original-review.json", - "sha256": "sha256:bytes:adc8b682f80f09677b97fa57651d336d8b966f7e19586256e6559505f57f9cfc", + "path": "template-gallery/reviews/ltx2_kiln_at_first_light.retained-template-provenance.json", + "sha256": "sha256:bytes:e00c10faebe723569e24af1c9266f4dc0b2477558fd861250984392488f97d2c", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/meituan-longcat/LongCat-Image/tree/d2ea50b79a930074c37b9b97ce45e3b2ea8cf4d8", - "sourceRevision": "meituan-longcat/LongCat-Image@d2ea50b79a930074c37b9b97ce45e3b2ea8cf4d8", + "sourceUrl": "https://huggingface.co/Lightricks/LTX-2/tree/47da56e2ad66ce4125a9922b4a8826bf407f9d0a", + "sourceRevision": "Lightricks/LTX-2@47da56e2ad66ce4125a9922b4a8826bf407f9d0a", "sourceLicense": "MoDiff-authored Gallery metadata", "modelTerms": [ - "Publisher model terms at https://huggingface.co/meituan-longcat/LongCat-Image/tree/d2ea50b79a930074c37b9b97ce45e3b2ea8cf4d8" + "https://huggingface.co/Lightricks/LTX-2/tree/47da56e2ad66ce4125a9922b4a8826bf407f9d0a" ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "meituan-longcat/LongCat-Image@d2ea50b79a930074c37b9b97ce45e3b2ea8cf4d8 https://huggingface.co/meituan-longcat/LongCat-Image/tree/d2ea50b79a930074c37b9b97ce45e3b2ea8cf4d8" + "Lightricks/LTX-2@47da56e2ad66ce4125a9922b4a8826bf407f9d0a https://huggingface.co/Lightricks/LTX-2/tree/47da56e2ad66ce4125a9922b4a8826bf407f9d0a" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "4fc7c52588176cb1f6ba6d699d08741b2986ea71ea87bac650d261716a10b24c", + "humanApprovalPacketSHA256": "aeba59d388381d75a2935a470ac831faabbd1f0b0be51af0bca839e601c1d034", "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", - "provenanceTemplateId": "longcat_florist_end_of_lane" + "provenanceTemplateId": "ltx2_kiln_at_first_light" }, { - "path": "template-gallery/reviews/longcat_florist_end_of_lane.quality-review.json", - "sha256": "sha256:bytes:c2b07ec9dccd4ac97f229ff2c836b5215377c240b8455db32a4f72f0313f7a4c", + "path": "template-gallery/reviews/ltx2_moss_and_basalt.original-provenance.json", + "sha256": "sha256:bytes:479f80077697b798779e8eff2a07867a7e49b04e0aff6adb7588e294d44af590", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/meituan-longcat/LongCat-Image/tree/d2ea50b79a930074c37b9b97ce45e3b2ea8cf4d8", - "sourceRevision": "meituan-longcat/LongCat-Image@d2ea50b79a930074c37b9b97ce45e3b2ea8cf4d8", + "sourceUrl": "https://huggingface.co/Lightricks/LTX-2/tree/47da56e2ad66ce4125a9922b4a8826bf407f9d0a", + "sourceRevision": "Lightricks/LTX-2@47da56e2ad66ce4125a9922b4a8826bf407f9d0a", "sourceLicense": "MoDiff-authored Gallery metadata", "modelTerms": [ - "Publisher model terms at https://huggingface.co/meituan-longcat/LongCat-Image/tree/d2ea50b79a930074c37b9b97ce45e3b2ea8cf4d8" + "https://huggingface.co/Lightricks/LTX-2/blob/47da56e2ad66ce4125a9922b4a8826bf407f9d0a/LICENSE" ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "meituan-longcat/LongCat-Image@d2ea50b79a930074c37b9b97ce45e3b2ea8cf4d8 https://huggingface.co/meituan-longcat/LongCat-Image/tree/d2ea50b79a930074c37b9b97ce45e3b2ea8cf4d8" + "Lightricks/LTX-2@47da56e2ad66ce4125a9922b4a8826bf407f9d0a https://huggingface.co/Lightricks/LTX-2/tree/47da56e2ad66ce4125a9922b4a8826bf407f9d0a" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "4fc7c52588176cb1f6ba6d699d08741b2986ea71ea87bac650d261716a10b24c", + "humanApprovalPacketSHA256": "aeba59d388381d75a2935a470ac831faabbd1f0b0be51af0bca839e601c1d034", "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", - "provenanceTemplateId": "longcat_florist_end_of_lane" + "provenanceTemplateId": "ltx2_moss_and_basalt" }, { - "path": "template-gallery/reviews/longcat_florist_end_of_lane.retained-template-provenance.json", - "sha256": "sha256:bytes:14da3c1cbc2f7ea57b4ec3d84f1a78d72a4e22b62ce0e0d757db78297c3fbed9", + "path": "template-gallery/reviews/ltx2_moss_and_basalt.original-review.json", + "sha256": "sha256:bytes:552f9f76f3033f5ca379a4c09b35c3ed9be3f2504481e5a6d3d45da35cc4b007", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/meituan-longcat/LongCat-Image/tree/d2ea50b79a930074c37b9b97ce45e3b2ea8cf4d8", - "sourceRevision": "meituan-longcat/LongCat-Image@d2ea50b79a930074c37b9b97ce45e3b2ea8cf4d8", + "sourceUrl": "https://huggingface.co/Lightricks/LTX-2/tree/47da56e2ad66ce4125a9922b4a8826bf407f9d0a", + "sourceRevision": "Lightricks/LTX-2@47da56e2ad66ce4125a9922b4a8826bf407f9d0a", "sourceLicense": "MoDiff-authored Gallery metadata", "modelTerms": [ - "Publisher model terms at https://huggingface.co/meituan-longcat/LongCat-Image/tree/d2ea50b79a930074c37b9b97ce45e3b2ea8cf4d8" + "https://huggingface.co/Lightricks/LTX-2/blob/47da56e2ad66ce4125a9922b4a8826bf407f9d0a/LICENSE" ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "meituan-longcat/LongCat-Image@d2ea50b79a930074c37b9b97ce45e3b2ea8cf4d8 https://huggingface.co/meituan-longcat/LongCat-Image/tree/d2ea50b79a930074c37b9b97ce45e3b2ea8cf4d8" + "Lightricks/LTX-2@47da56e2ad66ce4125a9922b4a8826bf407f9d0a https://huggingface.co/Lightricks/LTX-2/tree/47da56e2ad66ce4125a9922b4a8826bf407f9d0a" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "4fc7c52588176cb1f6ba6d699d08741b2986ea71ea87bac650d261716a10b24c", + "humanApprovalPacketSHA256": "aeba59d388381d75a2935a470ac831faabbd1f0b0be51af0bca839e601c1d034", "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", - "provenanceTemplateId": "longcat_florist_end_of_lane" + "provenanceTemplateId": "ltx2_moss_and_basalt" }, { - "path": "template-gallery/reviews/longcat_last_tram_at_dusk.original-provenance.json", - "sha256": "sha256:bytes:34b322e643eacf47f4c02019564cb85720cb3b9b8334d524e47226d60c4faa60", + "path": "template-gallery/reviews/ltx2_moss_and_basalt.quality-review.json", + "sha256": "sha256:bytes:9565db5dd4d9a378cdb9d4c17f3129a55b8d3d4cb72b4df5297e28994904ef85", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/ruixiangma/LongCat-AudioDiT-1B-Diffusers/tree/f4c063ea37f262ba5e6129ebd80095a6d6a9de4d", - "sourceRevision": "ruixiangma/LongCat-AudioDiT-1B-Diffusers@f4c063ea37f262ba5e6129ebd80095a6d6a9de4d", + "sourceUrl": "https://huggingface.co/Lightricks/LTX-2/tree/47da56e2ad66ce4125a9922b4a8826bf407f9d0a", + "sourceRevision": "Lightricks/LTX-2@47da56e2ad66ce4125a9922b4a8826bf407f9d0a", "sourceLicense": "MoDiff-authored Gallery metadata", "modelTerms": [ - "Publisher model terms at https://huggingface.co/ruixiangma/LongCat-AudioDiT-1B-Diffusers/tree/f4c063ea37f262ba5e6129ebd80095a6d6a9de4d" + "https://huggingface.co/Lightricks/LTX-2/blob/47da56e2ad66ce4125a9922b4a8826bf407f9d0a/LICENSE" ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "ruixiangma/LongCat-AudioDiT-1B-Diffusers@f4c063ea37f262ba5e6129ebd80095a6d6a9de4d https://huggingface.co/ruixiangma/LongCat-AudioDiT-1B-Diffusers/tree/f4c063ea37f262ba5e6129ebd80095a6d6a9de4d" + "Lightricks/LTX-2@47da56e2ad66ce4125a9922b4a8826bf407f9d0a https://huggingface.co/Lightricks/LTX-2/tree/47da56e2ad66ce4125a9922b4a8826bf407f9d0a" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "15c604ae5df3abed63c95046a78859adb870f415f45c06a99f58ad652fc0dea2", + "humanApprovalPacketSHA256": "aeba59d388381d75a2935a470ac831faabbd1f0b0be51af0bca839e601c1d034", "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", - "provenanceTemplateId": "longcat_last_tram_at_dusk" + "provenanceTemplateId": "ltx2_moss_and_basalt" }, { - "path": "template-gallery/reviews/longcat_last_tram_at_dusk.original-review.json", - "sha256": "sha256:bytes:7ee2f38d8dd9199e6a754312dba9e962007389ba4527f0aebb96272b454394a5", + "path": "template-gallery/reviews/ltx2_moss_and_basalt.retained-template-provenance.json", + "sha256": "sha256:bytes:1ae833652317aef0279d320f60fcbd678045af0bdd4fa056ae3c1735634708c3", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/ruixiangma/LongCat-AudioDiT-1B-Diffusers/tree/f4c063ea37f262ba5e6129ebd80095a6d6a9de4d", - "sourceRevision": "ruixiangma/LongCat-AudioDiT-1B-Diffusers@f4c063ea37f262ba5e6129ebd80095a6d6a9de4d", + "sourceUrl": "https://huggingface.co/Lightricks/LTX-2/tree/47da56e2ad66ce4125a9922b4a8826bf407f9d0a", + "sourceRevision": "Lightricks/LTX-2@47da56e2ad66ce4125a9922b4a8826bf407f9d0a", "sourceLicense": "MoDiff-authored Gallery metadata", "modelTerms": [ - "Publisher model terms at https://huggingface.co/ruixiangma/LongCat-AudioDiT-1B-Diffusers/tree/f4c063ea37f262ba5e6129ebd80095a6d6a9de4d" + "https://huggingface.co/Lightricks/LTX-2/blob/47da56e2ad66ce4125a9922b4a8826bf407f9d0a/LICENSE" ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "ruixiangma/LongCat-AudioDiT-1B-Diffusers@f4c063ea37f262ba5e6129ebd80095a6d6a9de4d https://huggingface.co/ruixiangma/LongCat-AudioDiT-1B-Diffusers/tree/f4c063ea37f262ba5e6129ebd80095a6d6a9de4d" + "Lightricks/LTX-2@47da56e2ad66ce4125a9922b4a8826bf407f9d0a https://huggingface.co/Lightricks/LTX-2/tree/47da56e2ad66ce4125a9922b4a8826bf407f9d0a" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "15c604ae5df3abed63c95046a78859adb870f415f45c06a99f58ad652fc0dea2", + "humanApprovalPacketSHA256": "aeba59d388381d75a2935a470ac831faabbd1f0b0be51af0bca839e601c1d034", "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", - "provenanceTemplateId": "longcat_last_tram_at_dusk" + "provenanceTemplateId": "ltx2_moss_and_basalt" }, { - "path": "template-gallery/reviews/longcat_last_tram_at_dusk.quality-review.json", - "sha256": "sha256:bytes:f2883c589ff0313062b4c0c995b35ce08d837f02efb4f6f097d004961b8d298f", + "path": "template-gallery/reviews/ltx2_surf_below_the_breakwater.original-provenance.json", + "sha256": "sha256:bytes:1d8ad8211ab76299edf0659f556f609b71d729a8db1c6f8404aac40d47dd36f6", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/ruixiangma/LongCat-AudioDiT-1B-Diffusers/tree/f4c063ea37f262ba5e6129ebd80095a6d6a9de4d", - "sourceRevision": "ruixiangma/LongCat-AudioDiT-1B-Diffusers@f4c063ea37f262ba5e6129ebd80095a6d6a9de4d", + "sourceUrl": "https://huggingface.co/Lightricks/LTX-2/tree/47da56e2ad66ce4125a9922b4a8826bf407f9d0a", + "sourceRevision": "Lightricks/LTX-2@47da56e2ad66ce4125a9922b4a8826bf407f9d0a", "sourceLicense": "MoDiff-authored Gallery metadata", "modelTerms": [ - "Publisher model terms at https://huggingface.co/ruixiangma/LongCat-AudioDiT-1B-Diffusers/tree/f4c063ea37f262ba5e6129ebd80095a6d6a9de4d" + "https://huggingface.co/Lightricks/LTX-2/tree/47da56e2ad66ce4125a9922b4a8826bf407f9d0a" ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "ruixiangma/LongCat-AudioDiT-1B-Diffusers@f4c063ea37f262ba5e6129ebd80095a6d6a9de4d https://huggingface.co/ruixiangma/LongCat-AudioDiT-1B-Diffusers/tree/f4c063ea37f262ba5e6129ebd80095a6d6a9de4d" + "Lightricks/LTX-2@47da56e2ad66ce4125a9922b4a8826bf407f9d0a https://huggingface.co/Lightricks/LTX-2/tree/47da56e2ad66ce4125a9922b4a8826bf407f9d0a" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "15c604ae5df3abed63c95046a78859adb870f415f45c06a99f58ad652fc0dea2", + "humanApprovalPacketSHA256": "aeba59d388381d75a2935a470ac831faabbd1f0b0be51af0bca839e601c1d034", "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", - "provenanceTemplateId": "longcat_last_tram_at_dusk" + "provenanceTemplateId": "ltx2_surf_below_the_breakwater" }, { - "path": "template-gallery/reviews/longcat_last_tram_at_dusk.retained-template-provenance.json", - "sha256": "sha256:bytes:071240681910f119ab723f580b68bc1037896a28132a51fbb338e61bf9f8a0bf", + "path": "template-gallery/reviews/ltx2_surf_below_the_breakwater.original-review.json", + "sha256": "sha256:bytes:9dd1a9b09ae08f162a8f666e69e55cb2fbfe0dce933899aa32c58e3b4a38ea0f", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", - "sourceUrl": "https://huggingface.co/ruixiangma/LongCat-AudioDiT-1B-Diffusers/tree/f4c063ea37f262ba5e6129ebd80095a6d6a9de4d", - "sourceRevision": "ruixiangma/LongCat-AudioDiT-1B-Diffusers@f4c063ea37f262ba5e6129ebd80095a6d6a9de4d", + "sourceUrl": "https://huggingface.co/Lightricks/LTX-2/tree/47da56e2ad66ce4125a9922b4a8826bf407f9d0a", + "sourceRevision": "Lightricks/LTX-2@47da56e2ad66ce4125a9922b4a8826bf407f9d0a", "sourceLicense": "MoDiff-authored Gallery metadata", "modelTerms": [ - "Publisher model terms at https://huggingface.co/ruixiangma/LongCat-AudioDiT-1B-Diffusers/tree/f4c063ea37f262ba5e6129ebd80095a6d6a9de4d" + "https://huggingface.co/Lightricks/LTX-2/tree/47da56e2ad66ce4125a9922b4a8826bf407f9d0a" ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], "requiredAttribution": [ - "ruixiangma/LongCat-AudioDiT-1B-Diffusers@f4c063ea37f262ba5e6129ebd80095a6d6a9de4d https://huggingface.co/ruixiangma/LongCat-AudioDiT-1B-Diffusers/tree/f4c063ea37f262ba5e6129ebd80095a6d6a9de4d" + "Lightricks/LTX-2@47da56e2ad66ce4125a9922b4a8826bf407f9d0a https://huggingface.co/Lightricks/LTX-2/tree/47da56e2ad66ce4125a9922b4a8826bf407f9d0a" ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "15c604ae5df3abed63c95046a78859adb870f415f45c06a99f58ad652fc0dea2", + "humanApprovalPacketSHA256": "aeba59d388381d75a2935a470ac831faabbd1f0b0be51af0bca839e601c1d034", "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", - "provenanceTemplateId": "longcat_last_tram_at_dusk" + "provenanceTemplateId": "ltx2_surf_below_the_breakwater" }, { - "path": "template-gallery/reviews/low_vram.quality-review.json", - "sha256": "sha256:bytes:53b25669d880814ac612e803b0c6f2abbcdd8853e7ea4ca6e1e6d0b97fa23352", + "path": "template-gallery/reviews/ltx2_surf_below_the_breakwater.quality-review.json", + "sha256": "sha256:bytes:901cf95b6ba4baa4bda362e9fcae6b46e2d758c08612633d294e86abd70a9ba2", "publishDecision": "approved", "holdReason": null, - "creatorOrRightsholder": "MoDiff project maintainers", - "creationMethod": "MoDiff-authored technical provenance or quality metadata from the explicitly approved six-image source packet", - "sourceUrl": null, - "sourceRevision": null, - "sourceLicense": "Apache-2.0 project-authored metadata; generated-media terms remain in their exact per-file records", - "modelTerms": [], + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/Lightricks/LTX-2/tree/47da56e2ad66ce4125a9922b4a8826bf407f9d0a", + "sourceRevision": "Lightricks/LTX-2@47da56e2ad66ce4125a9922b4a8826bf407f9d0a", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "https://huggingface.co/Lightricks/LTX-2/tree/47da56e2ad66ce4125a9922b4a8826bf407f9d0a" + ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], - "requiredAttribution": [], + "requiredAttribution": [ + "Lightricks/LTX-2@47da56e2ad66ce4125a9922b4a8826bf407f9d0a https://huggingface.co/Lightricks/LTX-2/tree/47da56e2ad66ce4125a9922b4a8826bf407f9d0a" + ], "assetLicense": "Apache-2.0", - "reviewedBy": "SOURAV DAS", - "reviewedAt": "2026-11-09", - "reviewClass": "per-file-human-approved-six-z-registration", - "provenanceTemplateId": "low_vram", - "humanApprovalPacketSHA256": "9b728a5f8535fc1ba3c03d2e2759d7ac795a586fafab51beb1509379ed388934" + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "aeba59d388381d75a2935a470ac831faabbd1f0b0be51af0bca839e601c1d034", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "ltx2_surf_below_the_breakwater" }, { - "path": "template-gallery/reviews/low_vram.reviewed-provenance.json", - "sha256": "sha256:bytes:a07f1942cb39c873d7ccd1b99dbece3c203d73296712aa0168a3edf4054b8076", + "path": "template-gallery/reviews/ltx2_surf_below_the_breakwater.retained-template-provenance.json", + "sha256": "sha256:bytes:c5d870f9b90d13ecec6edf2bdf0dca17a3603ee1bc9ba0e0f1a956a9b7283dea", "publishDecision": "approved", "holdReason": null, - "creatorOrRightsholder": "MoDiff project maintainers", - "creationMethod": "MoDiff-authored technical provenance or quality metadata from the explicitly approved six-image source packet", - "sourceUrl": null, - "sourceRevision": null, - "sourceLicense": "Apache-2.0 project-authored metadata; generated-media terms remain in their exact per-file records", - "modelTerms": [], + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/Lightricks/LTX-2/tree/47da56e2ad66ce4125a9922b4a8826bf407f9d0a", + "sourceRevision": "Lightricks/LTX-2@47da56e2ad66ce4125a9922b4a8826bf407f9d0a", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "https://huggingface.co/Lightricks/LTX-2/tree/47da56e2ad66ce4125a9922b4a8826bf407f9d0a" + ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], - "requiredAttribution": [], + "requiredAttribution": [ + "Lightricks/LTX-2@47da56e2ad66ce4125a9922b4a8826bf407f9d0a https://huggingface.co/Lightricks/LTX-2/tree/47da56e2ad66ce4125a9922b4a8826bf407f9d0a" + ], "assetLicense": "Apache-2.0", - "reviewedBy": "SOURAV DAS", - "reviewedAt": "2026-11-09", - "reviewClass": "per-file-human-approved-six-z-registration", - "provenanceTemplateId": "low_vram", - "humanApprovalPacketSHA256": "9b728a5f8535fc1ba3c03d2e2759d7ac795a586fafab51beb1509379ed388934" + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "aeba59d388381d75a2935a470ac831faabbd1f0b0be51af0bca839e601c1d034", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "ltx2_surf_below_the_breakwater" }, { "creatorOrRightsholder": "MoDiff project maintainers", @@ -22426,8 +24274,224 @@ "provenanceTemplateId": "sdxl_control_inpaint_warm_plaster" }, { - "path": "template-gallery/reviews/sdxl_control_inpaint_warm_plaster.original-review.json", - "sha256": "sha256:bytes:9ec0f8ff6cc645c9c9c9c9102965753af931061398629edb65727f99d2cb7faa", + "path": "template-gallery/reviews/sdxl_control_inpaint_warm_plaster.original-review.json", + "sha256": "sha256:bytes:9ec0f8ff6cc645c9c9c9c9102965753af931061398629edb65727f99d2cb7faa", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b", + "sourceRevision": "stabilityai/stable-diffusion-xl-base-1.0@462165984030d82259a11f4367a4eed129e94a7b", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "Publisher model terms at https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b" + ], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "stabilityai/stable-diffusion-xl-base-1.0@462165984030d82259a11f4367a4eed129e94a7b https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "3968c7cbe37a94789a9f839d8e83a9e0f102629b797d5f7baacf0304a8d18153", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "sdxl_control_inpaint_warm_plaster" + }, + { + "path": "template-gallery/reviews/sdxl_control_inpaint_warm_plaster.quality-review.json", + "sha256": "sha256:bytes:4e3e6d321e3c4b7b17ba5ff675c610bd6c0a86779bda8e1c2fa0b3c25754d15e", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b", + "sourceRevision": "stabilityai/stable-diffusion-xl-base-1.0@462165984030d82259a11f4367a4eed129e94a7b", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "Publisher model terms at https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b" + ], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "stabilityai/stable-diffusion-xl-base-1.0@462165984030d82259a11f4367a4eed129e94a7b https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "3968c7cbe37a94789a9f839d8e83a9e0f102629b797d5f7baacf0304a8d18153", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "sdxl_control_inpaint_warm_plaster" + }, + { + "path": "template-gallery/reviews/sdxl_control_inpaint_warm_plaster.retained-template-provenance.json", + "sha256": "sha256:bytes:b55fbe6ba9d7b2243d12fe0227026b502eb8674412f4da62cc0ef72b57a91370", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b", + "sourceRevision": "stabilityai/stable-diffusion-xl-base-1.0@462165984030d82259a11f4367a4eed129e94a7b", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "Publisher model terms at https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b" + ], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "stabilityai/stable-diffusion-xl-base-1.0@462165984030d82259a11f4367a4eed129e94a7b https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "3968c7cbe37a94789a9f839d8e83a9e0f102629b797d5f7baacf0304a8d18153", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "sdxl_control_inpaint_warm_plaster" + }, + { + "path": "template-gallery/reviews/sdxl_controlnet_glass_study_on_slate.original-provenance.json", + "sha256": "sha256:bytes:5eff28279014893ed1b626866eef574cb72798d376da8faef83766c89e3e8223", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b", + "sourceRevision": "stabilityai/stable-diffusion-xl-base-1.0@462165984030d82259a11f4367a4eed129e94a7b", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "Publisher model terms at https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b" + ], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "stabilityai/stable-diffusion-xl-base-1.0@462165984030d82259a11f4367a4eed129e94a7b https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "3968c7cbe37a94789a9f839d8e83a9e0f102629b797d5f7baacf0304a8d18153", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "sdxl_controlnet_glass_study_on_slate" + }, + { + "path": "template-gallery/reviews/sdxl_controlnet_glass_study_on_slate.original-review.json", + "sha256": "sha256:bytes:42676c7dd7b9bd9c2062dd771f1d63f7507670609ba6ef543b066877c6f86de1", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b", + "sourceRevision": "stabilityai/stable-diffusion-xl-base-1.0@462165984030d82259a11f4367a4eed129e94a7b", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "Publisher model terms at https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b" + ], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "stabilityai/stable-diffusion-xl-base-1.0@462165984030d82259a11f4367a4eed129e94a7b https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "3968c7cbe37a94789a9f839d8e83a9e0f102629b797d5f7baacf0304a8d18153", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "sdxl_controlnet_glass_study_on_slate" + }, + { + "path": "template-gallery/reviews/sdxl_controlnet_glass_study_on_slate.quality-review.json", + "sha256": "sha256:bytes:3ad7e229aa4536d60a0337200d22d47e753f7770edbce0528a7dd89f3f7f0895", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b", + "sourceRevision": "stabilityai/stable-diffusion-xl-base-1.0@462165984030d82259a11f4367a4eed129e94a7b", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "Publisher model terms at https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b" + ], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "stabilityai/stable-diffusion-xl-base-1.0@462165984030d82259a11f4367a4eed129e94a7b https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "3968c7cbe37a94789a9f839d8e83a9e0f102629b797d5f7baacf0304a8d18153", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "sdxl_controlnet_glass_study_on_slate" + }, + { + "path": "template-gallery/reviews/sdxl_controlnet_glass_study_on_slate.retained-template-provenance.json", + "sha256": "sha256:bytes:564bd43c3c23f41f40e46ee762ad2a3c61e63ca7a5600f8af0fdf92b263856fe", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b", + "sourceRevision": "stabilityai/stable-diffusion-xl-base-1.0@462165984030d82259a11f4367a4eed129e94a7b", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "Publisher model terms at https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b" + ], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "stabilityai/stable-diffusion-xl-base-1.0@462165984030d82259a11f4367a4eed129e94a7b https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "3968c7cbe37a94789a9f839d8e83a9e0f102629b797d5f7baacf0304a8d18153", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "sdxl_controlnet_glass_study_on_slate" + }, + { + "path": "template-gallery/reviews/sdxl_pag_cobalt_wall.original-provenance.json", + "sha256": "sha256:bytes:73001e41f7161d3d7f501d8901c64ea75b69926342d874f517161846bbc2c65e", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b", + "sourceRevision": "stabilityai/stable-diffusion-xl-base-1.0@462165984030d82259a11f4367a4eed129e94a7b", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "Publisher model terms at https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b" + ], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "stabilityai/stable-diffusion-xl-base-1.0@462165984030d82259a11f4367a4eed129e94a7b https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "60b01498a2df5f4e4622cdc2f9a43c83d187820780d2425a19718c13707db501", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "sdxl_pag_cobalt_wall" + }, + { + "path": "template-gallery/reviews/sdxl_pag_cobalt_wall.original-review.json", + "sha256": "sha256:bytes:9c33914daf546f076a1cd4248d62bca41f48046bbf32641336a61e6af8ce5ae6", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", @@ -22448,13 +24512,13 @@ "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "3968c7cbe37a94789a9f839d8e83a9e0f102629b797d5f7baacf0304a8d18153", + "humanApprovalPacketSHA256": "60b01498a2df5f4e4622cdc2f9a43c83d187820780d2425a19718c13707db501", "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", - "provenanceTemplateId": "sdxl_control_inpaint_warm_plaster" + "provenanceTemplateId": "sdxl_pag_cobalt_wall" }, { - "path": "template-gallery/reviews/sdxl_control_inpaint_warm_plaster.quality-review.json", - "sha256": "sha256:bytes:4e3e6d321e3c4b7b17ba5ff675c610bd6c0a86779bda8e1c2fa0b3c25754d15e", + "path": "template-gallery/reviews/sdxl_pag_cobalt_wall.quality-review.json", + "sha256": "sha256:bytes:792bcb8050a146a925e0a3459c499e41ca08f710496292775ed7a85acf4e1ddf", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", @@ -22475,13 +24539,13 @@ "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "3968c7cbe37a94789a9f839d8e83a9e0f102629b797d5f7baacf0304a8d18153", + "humanApprovalPacketSHA256": "60b01498a2df5f4e4622cdc2f9a43c83d187820780d2425a19718c13707db501", "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", - "provenanceTemplateId": "sdxl_control_inpaint_warm_plaster" + "provenanceTemplateId": "sdxl_pag_cobalt_wall" }, { - "path": "template-gallery/reviews/sdxl_control_inpaint_warm_plaster.retained-template-provenance.json", - "sha256": "sha256:bytes:b55fbe6ba9d7b2243d12fe0227026b502eb8674412f4da62cc0ef72b57a91370", + "path": "template-gallery/reviews/sdxl_pag_cobalt_wall.retained-template-provenance.json", + "sha256": "sha256:bytes:69442605e67b4da6af5ab3971559219066b7c569139088412a65945487509612", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", @@ -22502,13 +24566,13 @@ "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "3968c7cbe37a94789a9f839d8e83a9e0f102629b797d5f7baacf0304a8d18153", + "humanApprovalPacketSHA256": "60b01498a2df5f4e4622cdc2f9a43c83d187820780d2425a19718c13707db501", "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", - "provenanceTemplateId": "sdxl_control_inpaint_warm_plaster" + "provenanceTemplateId": "sdxl_pag_cobalt_wall" }, { - "path": "template-gallery/reviews/sdxl_controlnet_glass_study_on_slate.original-provenance.json", - "sha256": "sha256:bytes:5eff28279014893ed1b626866eef574cb72798d376da8faef83766c89e3e8223", + "path": "template-gallery/reviews/sdxl_pag_lighthouse_in_graphite.original-provenance.json", + "sha256": "sha256:bytes:042e90f725818b6ec86db0f60b7b19cc59856e445c3b11c8f81bd11f6b817d18", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", @@ -22517,7 +24581,7 @@ "sourceRevision": "stabilityai/stable-diffusion-xl-base-1.0@462165984030d82259a11f4367a4eed129e94a7b", "sourceLicense": "MoDiff-authored Gallery metadata", "modelTerms": [ - "Publisher model terms at https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b" + "https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b" ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", @@ -22529,13 +24593,13 @@ "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "3968c7cbe37a94789a9f839d8e83a9e0f102629b797d5f7baacf0304a8d18153", + "humanApprovalPacketSHA256": "aeba59d388381d75a2935a470ac831faabbd1f0b0be51af0bca839e601c1d034", "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", - "provenanceTemplateId": "sdxl_controlnet_glass_study_on_slate" + "provenanceTemplateId": "sdxl_pag_lighthouse_in_graphite" }, { - "path": "template-gallery/reviews/sdxl_controlnet_glass_study_on_slate.original-review.json", - "sha256": "sha256:bytes:42676c7dd7b9bd9c2062dd771f1d63f7507670609ba6ef543b066877c6f86de1", + "path": "template-gallery/reviews/sdxl_pag_lighthouse_in_graphite.original-review.json", + "sha256": "sha256:bytes:02aece417b9581ebf7330fdcb4bac17e156a77564df88093d4748342c46011f6", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", @@ -22544,7 +24608,7 @@ "sourceRevision": "stabilityai/stable-diffusion-xl-base-1.0@462165984030d82259a11f4367a4eed129e94a7b", "sourceLicense": "MoDiff-authored Gallery metadata", "modelTerms": [ - "Publisher model terms at https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b" + "https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b" ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", @@ -22556,13 +24620,13 @@ "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "3968c7cbe37a94789a9f839d8e83a9e0f102629b797d5f7baacf0304a8d18153", + "humanApprovalPacketSHA256": "aeba59d388381d75a2935a470ac831faabbd1f0b0be51af0bca839e601c1d034", "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", - "provenanceTemplateId": "sdxl_controlnet_glass_study_on_slate" + "provenanceTemplateId": "sdxl_pag_lighthouse_in_graphite" }, { - "path": "template-gallery/reviews/sdxl_controlnet_glass_study_on_slate.quality-review.json", - "sha256": "sha256:bytes:3ad7e229aa4536d60a0337200d22d47e753f7770edbce0528a7dd89f3f7f0895", + "path": "template-gallery/reviews/sdxl_pag_lighthouse_in_graphite.quality-review.json", + "sha256": "sha256:bytes:fff347aeb1f18af04502cb973b04ebda279e36ddcfe30ccfdec6f2e13254f550", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", @@ -22571,7 +24635,7 @@ "sourceRevision": "stabilityai/stable-diffusion-xl-base-1.0@462165984030d82259a11f4367a4eed129e94a7b", "sourceLicense": "MoDiff-authored Gallery metadata", "modelTerms": [ - "Publisher model terms at https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b" + "https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b" ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", @@ -22583,13 +24647,13 @@ "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "3968c7cbe37a94789a9f839d8e83a9e0f102629b797d5f7baacf0304a8d18153", + "humanApprovalPacketSHA256": "aeba59d388381d75a2935a470ac831faabbd1f0b0be51af0bca839e601c1d034", "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", - "provenanceTemplateId": "sdxl_controlnet_glass_study_on_slate" + "provenanceTemplateId": "sdxl_pag_lighthouse_in_graphite" }, { - "path": "template-gallery/reviews/sdxl_controlnet_glass_study_on_slate.retained-template-provenance.json", - "sha256": "sha256:bytes:564bd43c3c23f41f40e46ee762ad2a3c61e63ca7a5600f8af0fdf92b263856fe", + "path": "template-gallery/reviews/sdxl_pag_lighthouse_in_graphite.retained-template-provenance.json", + "sha256": "sha256:bytes:0a272b63747525e66ca2d17e43739ea139ac97497e02d08443f72486dc980530", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", @@ -22598,7 +24662,7 @@ "sourceRevision": "stabilityai/stable-diffusion-xl-base-1.0@462165984030d82259a11f4367a4eed129e94a7b", "sourceLicense": "MoDiff-authored Gallery metadata", "modelTerms": [ - "Publisher model terms at https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b" + "https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b" ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", @@ -22610,13 +24674,13 @@ "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "3968c7cbe37a94789a9f839d8e83a9e0f102629b797d5f7baacf0304a8d18153", + "humanApprovalPacketSHA256": "aeba59d388381d75a2935a470ac831faabbd1f0b0be51af0bca839e601c1d034", "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", - "provenanceTemplateId": "sdxl_controlnet_glass_study_on_slate" + "provenanceTemplateId": "sdxl_pag_lighthouse_in_graphite" }, { - "path": "template-gallery/reviews/sdxl_pag_cobalt_wall.original-provenance.json", - "sha256": "sha256:bytes:73001e41f7161d3d7f501d8901c64ea75b69926342d874f517161846bbc2c65e", + "path": "template-gallery/reviews/sdxl_pag_snow_cabin.original-provenance.json", + "sha256": "sha256:bytes:9f8fc8e1ec02ce87e641958fdbded7f199cee15cde9e077cbb40b12e0e8d7d93", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", @@ -22637,13 +24701,13 @@ "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "60b01498a2df5f4e4622cdc2f9a43c83d187820780d2425a19718c13707db501", + "humanApprovalPacketSHA256": "d7e2fd301d16eede3da44cec1811930560ba0d958dfd46d8d0962eb3a22eea63", "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", - "provenanceTemplateId": "sdxl_pag_cobalt_wall" + "provenanceTemplateId": "sdxl_pag_snow_cabin" }, { - "path": "template-gallery/reviews/sdxl_pag_cobalt_wall.original-review.json", - "sha256": "sha256:bytes:9c33914daf546f076a1cd4248d62bca41f48046bbf32641336a61e6af8ce5ae6", + "path": "template-gallery/reviews/sdxl_pag_snow_cabin.original-review.json", + "sha256": "sha256:bytes:5b23c67819bad2bb24ccdbd2058df59a33a560077c260097e5711ef9a74746ba", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", @@ -22664,13 +24728,13 @@ "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "60b01498a2df5f4e4622cdc2f9a43c83d187820780d2425a19718c13707db501", + "humanApprovalPacketSHA256": "d7e2fd301d16eede3da44cec1811930560ba0d958dfd46d8d0962eb3a22eea63", "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", - "provenanceTemplateId": "sdxl_pag_cobalt_wall" + "provenanceTemplateId": "sdxl_pag_snow_cabin" }, { - "path": "template-gallery/reviews/sdxl_pag_cobalt_wall.quality-review.json", - "sha256": "sha256:bytes:792bcb8050a146a925e0a3459c499e41ca08f710496292775ed7a85acf4e1ddf", + "path": "template-gallery/reviews/sdxl_pag_snow_cabin.quality-review.json", + "sha256": "sha256:bytes:d29b39aeafcf213fbcfff098372b9aad723d5a08c8fd63970f98162ed64e8ad3", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", @@ -22691,13 +24755,13 @@ "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "60b01498a2df5f4e4622cdc2f9a43c83d187820780d2425a19718c13707db501", + "humanApprovalPacketSHA256": "d7e2fd301d16eede3da44cec1811930560ba0d958dfd46d8d0962eb3a22eea63", "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", - "provenanceTemplateId": "sdxl_pag_cobalt_wall" + "provenanceTemplateId": "sdxl_pag_snow_cabin" }, { - "path": "template-gallery/reviews/sdxl_pag_cobalt_wall.retained-template-provenance.json", - "sha256": "sha256:bytes:69442605e67b4da6af5ab3971559219066b7c569139088412a65945487509612", + "path": "template-gallery/reviews/sdxl_pag_snow_cabin.retained-template-provenance.json", + "sha256": "sha256:bytes:d82c38326bd8b615ed7a934890b979e34f2870f8b0c7aa6f919f0b541d828905", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", @@ -22718,13 +24782,13 @@ "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "60b01498a2df5f4e4622cdc2f9a43c83d187820780d2425a19718c13707db501", + "humanApprovalPacketSHA256": "d7e2fd301d16eede3da44cec1811930560ba0d958dfd46d8d0962eb3a22eea63", "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", - "provenanceTemplateId": "sdxl_pag_cobalt_wall" + "provenanceTemplateId": "sdxl_pag_snow_cabin" }, { - "path": "template-gallery/reviews/sdxl_pag_snow_cabin.original-provenance.json", - "sha256": "sha256:bytes:9f8fc8e1ec02ce87e641958fdbded7f199cee15cde9e077cbb40b12e0e8d7d93", + "path": "template-gallery/reviews/sdxl_pag_two_tier_cobalt_glass.original-provenance.json", + "sha256": "sha256:bytes:d4964819e6cb3ce6ba2484f5cac7f9a7b5eb45a24760cc256e01d060c4ab797b", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", @@ -22733,7 +24797,8 @@ "sourceRevision": "stabilityai/stable-diffusion-xl-base-1.0@462165984030d82259a11f4367a4eed129e94a7b", "sourceLicense": "MoDiff-authored Gallery metadata", "modelTerms": [ - "Publisher model terms at https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b" + "https://huggingface.co/diffusers/controlnet-canny-sdxl-1.0/tree/eb115a19a10d14909256db740ed109532ab1483c", + "https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b" ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", @@ -22745,13 +24810,13 @@ "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "d7e2fd301d16eede3da44cec1811930560ba0d958dfd46d8d0962eb3a22eea63", + "humanApprovalPacketSHA256": "aeba59d388381d75a2935a470ac831faabbd1f0b0be51af0bca839e601c1d034", "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", - "provenanceTemplateId": "sdxl_pag_snow_cabin" + "provenanceTemplateId": "sdxl_pag_two_tier_cobalt_glass" }, { - "path": "template-gallery/reviews/sdxl_pag_snow_cabin.original-review.json", - "sha256": "sha256:bytes:5b23c67819bad2bb24ccdbd2058df59a33a560077c260097e5711ef9a74746ba", + "path": "template-gallery/reviews/sdxl_pag_two_tier_cobalt_glass.original-review.json", + "sha256": "sha256:bytes:4b05631fe8df2205288c9afa83ffea0814cf681163cabc05a9c5b8cf5ec238c9", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", @@ -22760,7 +24825,8 @@ "sourceRevision": "stabilityai/stable-diffusion-xl-base-1.0@462165984030d82259a11f4367a4eed129e94a7b", "sourceLicense": "MoDiff-authored Gallery metadata", "modelTerms": [ - "Publisher model terms at https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b" + "https://huggingface.co/diffusers/controlnet-canny-sdxl-1.0/tree/eb115a19a10d14909256db740ed109532ab1483c", + "https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b" ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", @@ -22772,13 +24838,13 @@ "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "d7e2fd301d16eede3da44cec1811930560ba0d958dfd46d8d0962eb3a22eea63", + "humanApprovalPacketSHA256": "aeba59d388381d75a2935a470ac831faabbd1f0b0be51af0bca839e601c1d034", "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", - "provenanceTemplateId": "sdxl_pag_snow_cabin" + "provenanceTemplateId": "sdxl_pag_two_tier_cobalt_glass" }, { - "path": "template-gallery/reviews/sdxl_pag_snow_cabin.quality-review.json", - "sha256": "sha256:bytes:d29b39aeafcf213fbcfff098372b9aad723d5a08c8fd63970f98162ed64e8ad3", + "path": "template-gallery/reviews/sdxl_pag_two_tier_cobalt_glass.quality-review.json", + "sha256": "sha256:bytes:b146fa66a1c40921b090b5356a4d288e0bcf9ee27c3c3406d551188acb79eb5a", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", @@ -22787,7 +24853,8 @@ "sourceRevision": "stabilityai/stable-diffusion-xl-base-1.0@462165984030d82259a11f4367a4eed129e94a7b", "sourceLicense": "MoDiff-authored Gallery metadata", "modelTerms": [ - "Publisher model terms at https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b" + "https://huggingface.co/diffusers/controlnet-canny-sdxl-1.0/tree/eb115a19a10d14909256db740ed109532ab1483c", + "https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b" ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", @@ -22799,13 +24866,13 @@ "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "d7e2fd301d16eede3da44cec1811930560ba0d958dfd46d8d0962eb3a22eea63", + "humanApprovalPacketSHA256": "aeba59d388381d75a2935a470ac831faabbd1f0b0be51af0bca839e601c1d034", "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", - "provenanceTemplateId": "sdxl_pag_snow_cabin" + "provenanceTemplateId": "sdxl_pag_two_tier_cobalt_glass" }, { - "path": "template-gallery/reviews/sdxl_pag_snow_cabin.retained-template-provenance.json", - "sha256": "sha256:bytes:d82c38326bd8b615ed7a934890b979e34f2870f8b0c7aa6f919f0b541d828905", + "path": "template-gallery/reviews/sdxl_pag_two_tier_cobalt_glass.retained-template-provenance.json", + "sha256": "sha256:bytes:0e83d8ea9d2bd9e76097be0cf86fff4049d744c7be289dabb5f08039f6afc599", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", @@ -22814,7 +24881,8 @@ "sourceRevision": "stabilityai/stable-diffusion-xl-base-1.0@462165984030d82259a11f4367a4eed129e94a7b", "sourceLicense": "MoDiff-authored Gallery metadata", "modelTerms": [ - "Publisher model terms at https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b" + "https://huggingface.co/diffusers/controlnet-canny-sdxl-1.0/tree/eb115a19a10d14909256db740ed109532ab1483c", + "https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b" ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", @@ -22826,9 +24894,9 @@ "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "d7e2fd301d16eede3da44cec1811930560ba0d958dfd46d8d0962eb3a22eea63", + "humanApprovalPacketSHA256": "aeba59d388381d75a2935a470ac831faabbd1f0b0be51af0bca839e601c1d034", "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", - "provenanceTemplateId": "sdxl_pag_snow_cabin" + "provenanceTemplateId": "sdxl_pag_two_tier_cobalt_glass" }, { "path": "template-gallery/reviews/sdxl_pix2pix_pale_amber_glass.original-provenance.json", @@ -23828,6 +25896,114 @@ "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", "provenanceTemplateId": "wan_animate_glasshouse_keeper" }, + { + "path": "template-gallery/reviews/wan_animate_signal_through_the_rain.original-provenance.json", + "sha256": "sha256:bytes:c6ade5109c32d17a15fbaebf57c45ee32cee41502f0be365a3ddee7c012d2c47", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/Wan-AI/Wan2.2-Animate-14B-Diffusers/tree/6f4df10861c758af86ac3c979aacc1bf5c03eff0", + "sourceRevision": "Wan-AI/Wan2.2-Animate-14B-Diffusers@6f4df10861c758af86ac3c979aacc1bf5c03eff0", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "https://huggingface.co/Wan-AI/Wan2.2-Animate-14B-Diffusers/tree/6f4df10861c758af86ac3c979aacc1bf5c03eff0" + ], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "Wan-AI/Wan2.2-Animate-14B-Diffusers@6f4df10861c758af86ac3c979aacc1bf5c03eff0 https://huggingface.co/Wan-AI/Wan2.2-Animate-14B-Diffusers/tree/6f4df10861c758af86ac3c979aacc1bf5c03eff0" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "aeba59d388381d75a2935a470ac831faabbd1f0b0be51af0bca839e601c1d034", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "wan_animate_signal_through_the_rain" + }, + { + "path": "template-gallery/reviews/wan_animate_signal_through_the_rain.original-review.json", + "sha256": "sha256:bytes:85d59351c41ffbb1c9910be7830d71b326910bebabd39f89fb1cc4a1db880914", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/Wan-AI/Wan2.2-Animate-14B-Diffusers/tree/6f4df10861c758af86ac3c979aacc1bf5c03eff0", + "sourceRevision": "Wan-AI/Wan2.2-Animate-14B-Diffusers@6f4df10861c758af86ac3c979aacc1bf5c03eff0", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "https://huggingface.co/Wan-AI/Wan2.2-Animate-14B-Diffusers/tree/6f4df10861c758af86ac3c979aacc1bf5c03eff0" + ], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "Wan-AI/Wan2.2-Animate-14B-Diffusers@6f4df10861c758af86ac3c979aacc1bf5c03eff0 https://huggingface.co/Wan-AI/Wan2.2-Animate-14B-Diffusers/tree/6f4df10861c758af86ac3c979aacc1bf5c03eff0" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "aeba59d388381d75a2935a470ac831faabbd1f0b0be51af0bca839e601c1d034", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "wan_animate_signal_through_the_rain" + }, + { + "path": "template-gallery/reviews/wan_animate_signal_through_the_rain.quality-review.json", + "sha256": "sha256:bytes:d4949512728370151d4e5422724129744515972b08dee0fbba2fd5883ead261c", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/Wan-AI/Wan2.2-Animate-14B-Diffusers/tree/6f4df10861c758af86ac3c979aacc1bf5c03eff0", + "sourceRevision": "Wan-AI/Wan2.2-Animate-14B-Diffusers@6f4df10861c758af86ac3c979aacc1bf5c03eff0", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "https://huggingface.co/Wan-AI/Wan2.2-Animate-14B-Diffusers/tree/6f4df10861c758af86ac3c979aacc1bf5c03eff0" + ], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "Wan-AI/Wan2.2-Animate-14B-Diffusers@6f4df10861c758af86ac3c979aacc1bf5c03eff0 https://huggingface.co/Wan-AI/Wan2.2-Animate-14B-Diffusers/tree/6f4df10861c758af86ac3c979aacc1bf5c03eff0" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "aeba59d388381d75a2935a470ac831faabbd1f0b0be51af0bca839e601c1d034", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "wan_animate_signal_through_the_rain" + }, + { + "path": "template-gallery/reviews/wan_animate_signal_through_the_rain.retained-template-provenance.json", + "sha256": "sha256:bytes:0e9f6bb00b8bd54c23aaf8c63cb3fb27d3c4a8adfdc103f63b61b6730413a483", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/Wan-AI/Wan2.2-Animate-14B-Diffusers/tree/6f4df10861c758af86ac3c979aacc1bf5c03eff0", + "sourceRevision": "Wan-AI/Wan2.2-Animate-14B-Diffusers@6f4df10861c758af86ac3c979aacc1bf5c03eff0", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "https://huggingface.co/Wan-AI/Wan2.2-Animate-14B-Diffusers/tree/6f4df10861c758af86ac3c979aacc1bf5c03eff0" + ], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "Wan-AI/Wan2.2-Animate-14B-Diffusers@6f4df10861c758af86ac3c979aacc1bf5c03eff0 https://huggingface.co/Wan-AI/Wan2.2-Animate-14B-Diffusers/tree/6f4df10861c758af86ac3c979aacc1bf5c03eff0" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "aeba59d388381d75a2935a470ac831faabbd1f0b0be51af0bca839e601c1d034", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "wan_animate_signal_through_the_rain" + }, { "path": "template-gallery/reviews/wan_flf_blue_hour_at_the_tram_shelter.original-provenance.json", "sha256": "sha256:bytes:556edbb96784d97900a95f4c3cdf618102ae2f492b2791a67ef5cd9e258f3dfb", @@ -27206,6 +29382,33 @@ "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", "provenanceTemplateId": "sdxl_pag_cobalt_wall" }, + { + "path": "template-gallery/sdxl_pag_lighthouse_in_graphite.webp", + "sha256": "sha256:bytes:6acd5e4afd90b2da12ba56d2efc594b9a3b0f99450b8aa373d0f6e6ae00abec2", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Exact approved file captured from a saved MoDiff workflow", + "sourceUrl": "https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b", + "sourceRevision": "stabilityai/stable-diffusion-xl-base-1.0@462165984030d82259a11f4367a4eed129e94a7b", + "sourceLicense": "Maintainer-authorized file with publisher terms retained", + "modelTerms": [ + "https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b" + ], + "aiGenerated": true, + "humanLikenessConsent": "synthetic", + "marks": [], + "requiredAttribution": [ + "stabilityai/stable-diffusion-xl-base-1.0@462165984030d82259a11f4367a4eed129e94a7b https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "aeba59d388381d75a2935a470ac831faabbd1f0b0be51af0bca839e601c1d034", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "sdxl_pag_lighthouse_in_graphite" + }, { "path": "template-gallery/sdxl_pag_snow_cabin.webp", "sha256": "sha256:bytes:22b8ba630d466d07025f3d272878330192f5f0fec9bcea03cb13a38ce171d541", @@ -27233,6 +29436,34 @@ "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", "provenanceTemplateId": "sdxl_pag_snow_cabin" }, + { + "path": "template-gallery/sdxl_pag_two_tier_cobalt_glass.webp", + "sha256": "sha256:bytes:2ac737f90e471c9f792b1d2a478645d7cc09c56889f31befc3266a0fef10ac2c", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Exact approved file captured from a saved MoDiff workflow", + "sourceUrl": "https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b", + "sourceRevision": "stabilityai/stable-diffusion-xl-base-1.0@462165984030d82259a11f4367a4eed129e94a7b", + "sourceLicense": "Maintainer-authorized file with publisher terms retained", + "modelTerms": [ + "https://huggingface.co/diffusers/controlnet-canny-sdxl-1.0/tree/eb115a19a10d14909256db740ed109532ab1483c", + "https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b" + ], + "aiGenerated": true, + "humanLikenessConsent": "synthetic", + "marks": [], + "requiredAttribution": [ + "stabilityai/stable-diffusion-xl-base-1.0@462165984030d82259a11f4367a4eed129e94a7b https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/tree/462165984030d82259a11f4367a4eed129e94a7b" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "aeba59d388381d75a2935a470ac831faabbd1f0b0be51af0bca839e601c1d034", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "sdxl_pag_two_tier_cobalt_glass" + }, { "path": "template-gallery/sdxl_pix2pix_pale_amber_glass.webp", "sha256": "sha256:bytes:a56a057711364a3b747c202652999f5fcde7ee1b91c0c7a2a92e6ca26c6c3dff", @@ -28424,6 +30655,33 @@ "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", "provenanceTemplateId": "wan_animate_glasshouse_keeper" }, + { + "path": "template-gallery/wan_animate_signal_through_the_rain.mp4", + "sha256": "sha256:bytes:a9e2a96cfba367aea3a8d5cdc9cc1cfbc60a288d50e056b82977d696a37b805b", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Exact approved file captured from a saved MoDiff workflow", + "sourceUrl": "https://huggingface.co/Wan-AI/Wan2.2-Animate-14B-Diffusers/tree/6f4df10861c758af86ac3c979aacc1bf5c03eff0", + "sourceRevision": "Wan-AI/Wan2.2-Animate-14B-Diffusers@6f4df10861c758af86ac3c979aacc1bf5c03eff0", + "sourceLicense": "Maintainer-authorized file with publisher terms retained", + "modelTerms": [ + "https://huggingface.co/Wan-AI/Wan2.2-Animate-14B-Diffusers/tree/6f4df10861c758af86ac3c979aacc1bf5c03eff0" + ], + "aiGenerated": true, + "humanLikenessConsent": "synthetic", + "marks": [], + "requiredAttribution": [ + "Wan-AI/Wan2.2-Animate-14B-Diffusers@6f4df10861c758af86ac3c979aacc1bf5c03eff0 https://huggingface.co/Wan-AI/Wan2.2-Animate-14B-Diffusers/tree/6f4df10861c758af86ac3c979aacc1bf5c03eff0" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "aeba59d388381d75a2935a470ac831faabbd1f0b0be51af0bca839e601c1d034", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "wan_animate_signal_through_the_rain" + }, { "path": "template-gallery/wan_flf_blue_hour_at_the_tram_shelter.mp4", "sha256": "sha256:bytes:a356ce3baa0be0556829715ccc72f1a9ccbe99625315cca04e3ee33a4e83f550", diff --git a/config/template-assets.v1.json b/config/template-assets.v1.json index 825c52b8..6966d5ed 100644 --- a/config/template-assets.v1.json +++ b/config/template-assets.v1.json @@ -191,6 +191,15 @@ "runtime" ] }, + { + "path": "template-gallery/animatediff_pag_snowmelt_over_river_stones.mp4", + "size": 1062279, + "sha256": "sha256:bytes:89f219daf95b6017deaca023289cb1bb44d0e465195dae61b9bd0e64eabb9aef", + "contentType": "video/mp4", + "purposes": [ + "runtime" + ] + }, { "path": "template-gallery/animatediff_red_tram_in_watercolor.mp4", "size": 70088, @@ -209,6 +218,15 @@ "runtime" ] }, + { + "path": "template-gallery/animatelcm_sunlit_surf.mp4", + "size": 872096, + "sha256": "sha256:bytes:f3d865965b9a15d9688a1c1944e530bdcccff14e6c7792efe2069ef042f80926", + "contentType": "video/mp4", + "purposes": [ + "runtime" + ] + }, { "path": "template-gallery/bookshop_at_blue_hour.webp", "size": 569776, @@ -253,6 +271,17 @@ "width": 1024, "height": 1024 }, + { + "path": "template-gallery/chroma_copper_medallion_outpaint.webp", + "size": 73742, + "sha256": "sha256:bytes:c81e3852d6455e213f25a3da135b7a66f65e1aec3477a1a21335606a3259775f", + "contentType": "image/webp", + "purposes": [ + "runtime" + ], + "width": 1024, + "height": 768 + }, { "path": "template-gallery/chroma_restored_cobalt_backdrop.webp", "size": 119420, @@ -601,6 +630,17 @@ "width": 1024, "height": 1024 }, + { + "path": "template-gallery/flux_dev_forest_green_teapot.webp", + "size": 142004, + "sha256": "sha256:bytes:43d9a0136c684014d436b8f01142ac239e2833d76b3c071a41df747fa3656565", + "contentType": "image/webp", + "purposes": [ + "runtime" + ], + "width": 1024, + "height": 1024 + }, { "path": "template-gallery/flux_fill_inpaint.webp", "size": 189448, @@ -645,6 +685,17 @@ "width": 1024, "height": 1024 }, + { + "path": "template-gallery/flux_kontext_bookshop_clear_glass.webp", + "size": 552568, + "sha256": "sha256:bytes:ec9c8cb45d16a96a87ce1cfba214dbbb14693125c9b16d3bc75d25a502e61788", + "contentType": "image/webp", + "purposes": [ + "runtime" + ], + "width": 1024, + "height": 1024 + }, { "path": "template-gallery/flux_kontext_edit.webp", "size": 211874, @@ -1689,6 +1740,17 @@ "width": 1024, "height": 1024 }, + { + "path": "template-gallery/inputs/chroma_copper_medallion_outpaint.before.png", + "size": 313225, + "sha256": "sha256:bytes:a8aaf9be57bc6bab356c5c1f9b76a1458e7e85e9daf6681e7e38a28fc28e1535", + "contentType": "image/png", + "purposes": [ + "runtime" + ], + "width": 832, + "height": 768 + }, { "path": "template-gallery/inputs/chroma_restored_cobalt_backdrop.before.png", "size": 623267, @@ -1908,6 +1970,17 @@ "width": 1024, "height": 1024 }, + { + "path": "template-gallery/inputs/flux_dev_forest_green_teapot.before.webp", + "size": 143918, + "sha256": "sha256:bytes:443062a26e22e3542e284f50d0274b7c70b881b3cce76568eb8eb22ce4c396d6", + "contentType": "image/webp", + "purposes": [ + "runtime" + ], + "width": 1024, + "height": 1024 + }, { "path": "template-gallery/inputs/flux_fill_inpaint.before.webp", "size": 142192, @@ -1963,6 +2036,28 @@ "width": 1024, "height": 1024 }, + { + "path": "template-gallery/inputs/flux_kontext_bookshop_clear_glass.before.webp", + "size": 569776, + "sha256": "sha256:bytes:ff045be510a0e88cbab69bbe8c3794dd26bd19036bdec26a63a5b6ea5a11bc66", + "contentType": "image/webp", + "purposes": [ + "runtime" + ], + "width": 1024, + "height": 1024 + }, + { + "path": "template-gallery/inputs/flux_kontext_bookshop_clear_glass.mask.png", + "size": 1441, + "sha256": "sha256:bytes:6f9114963580bd8942bc25e31e67a7fa2f7fdea73c775dd49bb9972c65829578", + "contentType": "image/png", + "purposes": [ + "runtime" + ], + "width": 1024, + "height": 1024 + }, { "path": "template-gallery/inputs/flux_kontext_edit.before.webp", "size": 196402, @@ -2119,6 +2214,37 @@ "width": 1024, "height": 1024 }, + { + "path": "template-gallery/inputs/ltx2_enamel_teapot_window_light.first.png", + "size": 611837, + "sha256": "sha256:bytes:7be24582bd4f26633a636c4110e38baecd94e6c6b3fd35450848f97bc07f2855", + "contentType": "image/png", + "purposes": [ + "runtime" + ], + "width": 1024, + "height": 1024 + }, + { + "path": "template-gallery/inputs/ltx2_glasshouse_drip.first.png", + "size": 2109128, + "sha256": "sha256:bytes:124d647abcc3d14dcd8388d749814e0b11bc5df820d126e9542ca2f333f73c73", + "contentType": "image/png", + "purposes": [ + "runtime" + ], + "width": 1024, + "height": 1024 + }, + { + "path": "template-gallery/inputs/ltx2_moss_and_basalt.before.mp4", + "size": 579374, + "sha256": "sha256:bytes:3b5e40ac2bf76236d1f901a7a2522addd7c4a1b2701bd89a33c1506b1523bc38", + "contentType": "video/mp4", + "purposes": [ + "runtime" + ] + }, { "path": "template-gallery/inputs/ltx_boardwalk_tracking.end.webp", "size": 62370, @@ -2835,6 +2961,17 @@ "width": 1024, "height": 1024 }, + { + "path": "template-gallery/inputs/sdxl_pag_lighthouse_in_graphite.before.png", + "size": 1663180, + "sha256": "sha256:bytes:4cbc984b44c398b6e92b4350513d3543139e9dffe01a38857845c8a7698272c8", + "contentType": "image/png", + "purposes": [ + "runtime" + ], + "width": 1024, + "height": 1024 + }, { "path": "template-gallery/inputs/sdxl_pag_snow_cabin.before.png", "size": 8404, @@ -2846,6 +2983,28 @@ "width": 1024, "height": 1024 }, + { + "path": "template-gallery/inputs/sdxl_pag_two_tier_cobalt_glass.before.png", + "size": 613011, + "sha256": "sha256:bytes:ff30b36f685b657db6de0cb59dff37601e147123ba19b9c42a32fc1060bd323e", + "contentType": "image/png", + "purposes": [ + "runtime" + ], + "width": 1024, + "height": 1024 + }, + { + "path": "template-gallery/inputs/sdxl_pag_two_tier_cobalt_glass.guide.png", + "size": 6118, + "sha256": "sha256:bytes:64e81c4250408ca9a2ffc11e2987413096ae65674c2935a0417a351a50bb3ba4", + "contentType": "image/png", + "purposes": [ + "runtime" + ], + "width": 1024, + "height": 1024 + }, { "path": "template-gallery/inputs/sdxl_pix2pix_pale_amber_glass.before.png", "size": 494048, @@ -2935,6 +3094,35 @@ "runtime" ] }, + { + "path": "template-gallery/inputs/wan_animate_signal_through_the_rain.face.mp4", + "size": 23786, + "sha256": "sha256:bytes:523c3b8d098977aa228f4319b81e675cb31ea96394eda45125dbfa24721d0d68", + "contentType": "video/mp4", + "purposes": [ + "runtime" + ] + }, + { + "path": "template-gallery/inputs/wan_animate_signal_through_the_rain.first.png", + "size": 484717, + "sha256": "sha256:bytes:5e73a03d1c557ef5572faad8f7b270ceb33be54e311982450fb5df2ba799d668", + "contentType": "image/png", + "purposes": [ + "runtime" + ], + "width": 768, + "height": 512 + }, + { + "path": "template-gallery/inputs/wan_animate_signal_through_the_rain.pose.mp4", + "size": 59742, + "sha256": "sha256:bytes:2fd6db2696b9a6bc7457bb8b747af5cd7ec4ec5603e86b06f01e591f17ed39f2", + "contentType": "video/mp4", + "purposes": [ + "runtime" + ] + }, { "path": "template-gallery/inputs/wan_flf_blue_hour_at_the_tram_shelter.first.png", "size": 695609, @@ -3143,6 +3331,15 @@ "width": 1344, "height": 768 }, + { + "path": "template-gallery/latte_water_folding_over_slate.mp4", + "size": 714235, + "sha256": "sha256:bytes:97cd72f79c9389e0c4f502be0759f4764e00861217cee1e11ce563b54d2d86b8", + "contentType": "video/mp4", + "purposes": [ + "runtime" + ] + }, { "path": "template-gallery/layers/qwen_layered_portrait.native-layer-00.webp", "size": 103484, @@ -3306,6 +3503,51 @@ "width": 1024, "height": 1024 }, + { + "path": "template-gallery/ltx2_enamel_teapot_window_light.mp4", + "size": 3941814, + "sha256": "sha256:bytes:de941b83125f6a84a29c978f968541028dd6c1e41b5e3c4c95ba686ccb69274f", + "contentType": "video/mp4", + "purposes": [ + "runtime" + ] + }, + { + "path": "template-gallery/ltx2_glasshouse_drip.mp4", + "size": 5764256, + "sha256": "sha256:bytes:189410c3652a33b15d16ec0ad6c71b304d9ed2684f04247704202836d498b91c", + "contentType": "video/mp4", + "purposes": [ + "runtime" + ] + }, + { + "path": "template-gallery/ltx2_kiln_at_first_light.mp4", + "size": 1273728, + "sha256": "sha256:bytes:75c9bf0b44b5b4c7bcab8c8d7d1381d1b2695bc62d5a251916121c11b79178ed", + "contentType": "video/mp4", + "purposes": [ + "runtime" + ] + }, + { + "path": "template-gallery/ltx2_moss_and_basalt.mp4", + "size": 4920421, + "sha256": "sha256:bytes:e197eb3cb4ddaf13e4f0e4a71a4c92d30b1cae04dea651fd987213d84d262b09", + "contentType": "video/mp4", + "purposes": [ + "runtime" + ] + }, + { + "path": "template-gallery/ltx2_surf_below_the_breakwater.mp4", + "size": 7510392, + "sha256": "sha256:bytes:a8d3e7c63417bad7a8a949738fe4cf6f5beb8aa1694476a5289e7037d64dfcd9", + "contentType": "video/mp4", + "purposes": [ + "runtime" + ] + }, { "path": "template-gallery/ltx_video_animated_story.card-poster.png", "size": 2259121, @@ -3559,8 +3801,8 @@ }, { "path": "template-gallery/manifest.json", - "size": 483020, - "sha256": "sha256:bytes:100626a0d35d6d31c18d319b76965055e00968228edfb926c0469dfda09c6561", + "size": 519522, + "sha256": "sha256:bytes:aced8ad0f0bbd93c7c98853b8d17c72da6cbc1c276f77cf0b3becd1bf889867e", "contentType": "application/json", "purposes": [ "runtime", @@ -4494,6 +4736,42 @@ "runtime" ] }, + { + "path": "template-gallery/reviews/animatediff_pag_snowmelt_over_river_stones.original-provenance.json", + "size": 2460, + "sha256": "sha256:bytes:73a4c1a10f0a30ae90014daf6f8d7c113138636fe1b533efe7bb1aa9a8fe4a7f", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, + { + "path": "template-gallery/reviews/animatediff_pag_snowmelt_over_river_stones.original-review.json", + "size": 609, + "sha256": "sha256:bytes:19924850a8ecddec18e16ebe09af4050343b542b56bc5e5acd30e18976c8e6f9", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, + { + "path": "template-gallery/reviews/animatediff_pag_snowmelt_over_river_stones.quality-review.json", + "size": 2575, + "sha256": "sha256:bytes:278a3dd1683bbe793b8a0ba89d857cc3b2a46262b489f0dcc3e985188c5ffaf6", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, + { + "path": "template-gallery/reviews/animatediff_pag_snowmelt_over_river_stones.retained-template-provenance.json", + "size": 4096, + "sha256": "sha256:bytes:9c3ffb884931cb7445f67de31986283eba87d34a67fcbd4212a17a48f324d46a", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, { "path": "template-gallery/reviews/animatediff_red_tram_in_watercolor.original-provenance.json", "size": 1424, @@ -4566,6 +4844,42 @@ "runtime" ] }, + { + "path": "template-gallery/reviews/animatelcm_sunlit_surf.original-provenance.json", + "size": 2718, + "sha256": "sha256:bytes:ccbd715d022d2d0121c473a75ad2f06c9a1dbb782b43b5c626726b6df2888ded", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, + { + "path": "template-gallery/reviews/animatelcm_sunlit_surf.original-review.json", + "size": 658, + "sha256": "sha256:bytes:273d0f2980b99943ead3cee2ce02a3cb67414cdd3ee3d258f555d168757ec1c8", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, + { + "path": "template-gallery/reviews/animatelcm_sunlit_surf.quality-review.json", + "size": 2572, + "sha256": "sha256:bytes:491737730d41fb96fb03a8f220ba78248c72619a34be55a8cc64111d822b913b", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, + { + "path": "template-gallery/reviews/animatelcm_sunlit_surf.retained-template-provenance.json", + "size": 3894, + "sha256": "sha256:bytes:0d7bf5194255e03658f6934d1be023dbf4ee556c39b4ff2ad54c10f2e8da3ede", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, { "path": "template-gallery/reviews/bookshop_at_blue_hour.original-provenance.json", "size": 2922, @@ -4692,6 +5006,42 @@ "runtime" ] }, + { + "path": "template-gallery/reviews/chroma_copper_medallion_outpaint.original-provenance.json", + "size": 2229, + "sha256": "sha256:bytes:ce863e2679e5452c432729c3096dac08a7361d2e23dbee80a24230057c77cec9", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, + { + "path": "template-gallery/reviews/chroma_copper_medallion_outpaint.original-review.json", + "size": 650, + "sha256": "sha256:bytes:0e9ec0c5a89f56c48135a248e3418af86261bb649601e757cd8ee3e41b9fcbdd", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, + { + "path": "template-gallery/reviews/chroma_copper_medallion_outpaint.quality-review.json", + "size": 2581, + "sha256": "sha256:bytes:09fc86de80eb03a9ae7346e73a1fa4f275e43252829b45b253e103496d9a60f1", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, + { + "path": "template-gallery/reviews/chroma_copper_medallion_outpaint.retained-template-provenance.json", + "size": 4008, + "sha256": "sha256:bytes:729aad830c6768451f07c0ce0b5585e1cb6acc96511f3d4c5eb859562920d077", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, { "path": "template-gallery/reviews/chroma_restored_cobalt_backdrop.original-provenance.json", "size": 1422, @@ -5467,17 +5817,53 @@ ] }, { - "path": "template-gallery/reviews/flux_fill_inpaint.quality-review.json", - "size": 5326, - "sha256": "sha256:bytes:118df046dca340d5130af71eefea56e4d0182c2beb9b01ac4de9da102fb002ff", + "path": "template-gallery/reviews/flux_dev_forest_green_teapot.original-provenance.json", + "size": 1312, + "sha256": "sha256:bytes:28609162b2b43dace4e077983617ab5160c9af14e1547f422809d4b7a972c73f", "contentType": "application/json", "purposes": [ "runtime" ] }, { - "path": "template-gallery/reviews/flux_fill_inpaint.reviewed-provenance.json", - "size": 168046, + "path": "template-gallery/reviews/flux_dev_forest_green_teapot.original-review.json", + "size": 540, + "sha256": "sha256:bytes:f6798fd9a441c2af0f5d766201406c7935c257ee0c67125571aefe6df6226b27", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, + { + "path": "template-gallery/reviews/flux_dev_forest_green_teapot.quality-review.json", + "size": 2619, + "sha256": "sha256:bytes:585a69e794e648da35ca0890b5d86ac00a456369bf7e4b7ddfc2e27c0e2779cf", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, + { + "path": "template-gallery/reviews/flux_dev_forest_green_teapot.retained-template-provenance.json", + "size": 3717, + "sha256": "sha256:bytes:fef44975f3e9e55d2f8144ecaa9a9c1907e4312add999370ca4d4da6cb67e721", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, + { + "path": "template-gallery/reviews/flux_fill_inpaint.quality-review.json", + "size": 5326, + "sha256": "sha256:bytes:118df046dca340d5130af71eefea56e4d0182c2beb9b01ac4de9da102fb002ff", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, + { + "path": "template-gallery/reviews/flux_fill_inpaint.reviewed-provenance.json", + "size": 168046, "sha256": "sha256:bytes:43b64ed1f67a2e36e9d7646eae58bc0aad9b1d49925425f5ebb98a0607577c3d", "contentType": "application/json", "purposes": [ @@ -5574,6 +5960,42 @@ "runtime" ] }, + { + "path": "template-gallery/reviews/flux_kontext_bookshop_clear_glass.original-provenance.json", + "size": 1608, + "sha256": "sha256:bytes:d55fd398015906cdcda745266d74bb35e8fb98f5c013d850104e8b2f88ba6d54", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, + { + "path": "template-gallery/reviews/flux_kontext_bookshop_clear_glass.original-review.json", + "size": 744, + "sha256": "sha256:bytes:b5edb7c5b069232e188bc5026cbf7c2bf8f8c48734045204c33caf6a7a7b86d2", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, + { + "path": "template-gallery/reviews/flux_kontext_bookshop_clear_glass.quality-review.json", + "size": 2572, + "sha256": "sha256:bytes:e120dbcafe857f60c9e705d7fce6a5935d80010588003902d33573882e53674a", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, + { + "path": "template-gallery/reviews/flux_kontext_bookshop_clear_glass.retained-template-provenance.json", + "size": 4183, + "sha256": "sha256:bytes:706c47754ac4f8c85e7d41846a2085f544e52c132178beff600c249cd29b25d0", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, { "path": "template-gallery/reviews/flux_kontext_edit.quality-review.json", "size": 4081, @@ -6386,6 +6808,42 @@ "runtime" ] }, + { + "path": "template-gallery/reviews/latte_water_folding_over_slate.original-provenance.json", + "size": 1675, + "sha256": "sha256:bytes:78b4bc4724cd17a1257feccd32ddc38735c5df0e4144c27d5d0d8d3ee1fd2ef9", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, + { + "path": "template-gallery/reviews/latte_water_folding_over_slate.original-review.json", + "size": 554, + "sha256": "sha256:bytes:999a0678c180f2fbdba3fe72331f42d997a671785f837f261beec272e97cb95a", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, + { + "path": "template-gallery/reviews/latte_water_folding_over_slate.quality-review.json", + "size": 2578, + "sha256": "sha256:bytes:2e2c24315e418c9cf93eb6e742d453a52b43dcfabf21b85d0fc33f9e048dcdc2", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, + { + "path": "template-gallery/reviews/latte_water_folding_over_slate.retained-template-provenance.json", + "size": 3491, + "sha256": "sha256:bytes:8f4dd40d5f9ba67c1001b7d41730c004cebe9bda2a8756b5c32caa4041f2b6b5", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, { "path": "template-gallery/reviews/lcm_dawn_alpine_lake.quality-review.json", "size": 2982, @@ -6530,6 +6988,186 @@ "runtime" ] }, + { + "path": "template-gallery/reviews/ltx2_enamel_teapot_window_light.original-provenance.json", + "size": 2397, + "sha256": "sha256:bytes:1fbe54b9ca2549c6966faf71d0bcbbde7a9c60b2ff64e3bd27086ed97c81aa26", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, + { + "path": "template-gallery/reviews/ltx2_enamel_teapot_window_light.original-review.json", + "size": 802, + "sha256": "sha256:bytes:267b0c3024607fabad7de1a91cc01b0523b7e8aabb82ae45f0ab79522496bf56", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, + { + "path": "template-gallery/reviews/ltx2_enamel_teapot_window_light.quality-review.json", + "size": 3265, + "sha256": "sha256:bytes:9b54148c2f192cefa6d83b75ded11a7a45bb048327dd164c4095702c76b98e65", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, + { + "path": "template-gallery/reviews/ltx2_enamel_teapot_window_light.retained-template-provenance.json", + "size": 4504, + "sha256": "sha256:bytes:f09d8c8ab232f31491bffe08d4ab09b2e4385849905660c4454d63a6c7d57714", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, + { + "path": "template-gallery/reviews/ltx2_glasshouse_drip.original-provenance.json", + "size": 2116, + "sha256": "sha256:bytes:2d1b15c2d57f48e996da58f168af3a46124c5a05735f93c9e7278fcb8a7fc49b", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, + { + "path": "template-gallery/reviews/ltx2_glasshouse_drip.original-review.json", + "size": 590, + "sha256": "sha256:bytes:b4f072e5c562496ea776a53b1cb5704dbba69e5d273191160afb3cb8f2524ad8", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, + { + "path": "template-gallery/reviews/ltx2_glasshouse_drip.quality-review.json", + "size": 2751, + "sha256": "sha256:bytes:6caef4f4af6cf21f2de32684a374508b990d6ef392957a11ddbb217b5037a34d", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, + { + "path": "template-gallery/reviews/ltx2_glasshouse_drip.retained-template-provenance.json", + "size": 4087, + "sha256": "sha256:bytes:06e0dc880d5f9233edba458c58390254af536a1657d217d6e2e315e68452d5c3", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, + { + "path": "template-gallery/reviews/ltx2_kiln_at_first_light.original-provenance.json", + "size": 2033, + "sha256": "sha256:bytes:9b3de62f3b8a92705c227b1c737a62113ae2af8e09ce19a82f3ec60f7dd12681", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, + { + "path": "template-gallery/reviews/ltx2_kiln_at_first_light.original-review.json", + "size": 604, + "sha256": "sha256:bytes:fd00080cb70166bef3d980c54eae560171173d4e716a0c2de027b45b455d2035", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, + { + "path": "template-gallery/reviews/ltx2_kiln_at_first_light.quality-review.json", + "size": 2850, + "sha256": "sha256:bytes:9838d274b6b603d9842987b9248a067f146364c87ba39edce523c5994771e4e5", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, + { + "path": "template-gallery/reviews/ltx2_kiln_at_first_light.retained-template-provenance.json", + "size": 3877, + "sha256": "sha256:bytes:e00c10faebe723569e24af1c9266f4dc0b2477558fd861250984392488f97d2c", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, + { + "path": "template-gallery/reviews/ltx2_moss_and_basalt.original-provenance.json", + "size": 3482, + "sha256": "sha256:bytes:479f80077697b798779e8eff2a07867a7e49b04e0aff6adb7588e294d44af590", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, + { + "path": "template-gallery/reviews/ltx2_moss_and_basalt.original-review.json", + "size": 816, + "sha256": "sha256:bytes:552f9f76f3033f5ca379a4c09b35c3ed9be3f2504481e5a6d3d45da35cc4b007", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, + { + "path": "template-gallery/reviews/ltx2_moss_and_basalt.quality-review.json", + "size": 3102, + "sha256": "sha256:bytes:9565db5dd4d9a378cdb9d4c17f3129a55b8d3d4cb72b4df5297e28994904ef85", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, + { + "path": "template-gallery/reviews/ltx2_moss_and_basalt.retained-template-provenance.json", + "size": 4449, + "sha256": "sha256:bytes:1ae833652317aef0279d320f60fcbd678045af0bdd4fa056ae3c1735634708c3", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, + { + "path": "template-gallery/reviews/ltx2_surf_below_the_breakwater.original-provenance.json", + "size": 2043, + "sha256": "sha256:bytes:1d8ad8211ab76299edf0659f556f609b71d729a8db1c6f8404aac40d47dd36f6", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, + { + "path": "template-gallery/reviews/ltx2_surf_below_the_breakwater.original-review.json", + "size": 509, + "sha256": "sha256:bytes:9dd1a9b09ae08f162a8f666e69e55cb2fbfe0dce933899aa32c58e3b4a38ea0f", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, + { + "path": "template-gallery/reviews/ltx2_surf_below_the_breakwater.quality-review.json", + "size": 2706, + "sha256": "sha256:bytes:901cf95b6ba4baa4bda362e9fcae6b46e2d758c08612633d294e86abd70a9ba2", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, + { + "path": "template-gallery/reviews/ltx2_surf_below_the_breakwater.retained-template-provenance.json", + "size": 3905, + "sha256": "sha256:bytes:c5d870f9b90d13ecec6edf2bdf0dca17a3603ee1bc9ba0e0f1a956a9b7283dea", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, { "path": "template-gallery/reviews/ltx_video_animated_story.quality-review.json", "size": 5831, @@ -8492,6 +9130,42 @@ "runtime" ] }, + { + "path": "template-gallery/reviews/sdxl_pag_lighthouse_in_graphite.original-provenance.json", + "size": 2754, + "sha256": "sha256:bytes:042e90f725818b6ec86db0f60b7b19cc59856e445c3b11c8f81bd11f6b817d18", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, + { + "path": "template-gallery/reviews/sdxl_pag_lighthouse_in_graphite.original-review.json", + "size": 614, + "sha256": "sha256:bytes:02aece417b9581ebf7330fdcb4bac17e156a77564df88093d4748342c46011f6", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, + { + "path": "template-gallery/reviews/sdxl_pag_lighthouse_in_graphite.quality-review.json", + "size": 2460, + "sha256": "sha256:bytes:fff347aeb1f18af04502cb973b04ebda279e36ddcfe30ccfdec6f2e13254f550", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, + { + "path": "template-gallery/reviews/sdxl_pag_lighthouse_in_graphite.retained-template-provenance.json", + "size": 3771, + "sha256": "sha256:bytes:0a272b63747525e66ca2d17e43739ea139ac97497e02d08443f72486dc980530", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, { "path": "template-gallery/reviews/sdxl_pag_snow_cabin.original-provenance.json", "size": 1325, @@ -8528,6 +9202,42 @@ "runtime" ] }, + { + "path": "template-gallery/reviews/sdxl_pag_two_tier_cobalt_glass.original-provenance.json", + "size": 2329, + "sha256": "sha256:bytes:d4964819e6cb3ce6ba2484f5cac7f9a7b5eb45a24760cc256e01d060c4ab797b", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, + { + "path": "template-gallery/reviews/sdxl_pag_two_tier_cobalt_glass.original-review.json", + "size": 664, + "sha256": "sha256:bytes:4b05631fe8df2205288c9afa83ffea0814cf681163cabc05a9c5b8cf5ec238c9", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, + { + "path": "template-gallery/reviews/sdxl_pag_two_tier_cobalt_glass.quality-review.json", + "size": 2595, + "sha256": "sha256:bytes:b146fa66a1c40921b090b5356a4d288e0bcf9ee27c3c3406d551188acb79eb5a", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, + { + "path": "template-gallery/reviews/sdxl_pag_two_tier_cobalt_glass.retained-template-provenance.json", + "size": 4075, + "sha256": "sha256:bytes:0e83d8ea9d2bd9e76097be0cf86fff4049d744c7be289dabb5f08039f6afc599", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, { "path": "template-gallery/reviews/sdxl_pix2pix_pale_amber_glass.original-provenance.json", "size": 1287, @@ -8872,6 +9582,42 @@ "runtime" ] }, + { + "path": "template-gallery/reviews/wan_animate_signal_through_the_rain.original-provenance.json", + "size": 2614, + "sha256": "sha256:bytes:c6ade5109c32d17a15fbaebf57c45ee32cee41502f0be365a3ddee7c012d2c47", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, + { + "path": "template-gallery/reviews/wan_animate_signal_through_the_rain.original-review.json", + "size": 837, + "sha256": "sha256:bytes:85d59351c41ffbb1c9910be7830d71b326910bebabd39f89fb1cc4a1db880914", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, + { + "path": "template-gallery/reviews/wan_animate_signal_through_the_rain.quality-review.json", + "size": 2790, + "sha256": "sha256:bytes:d4949512728370151d4e5422724129744515972b08dee0fbba2fd5883ead261c", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, + { + "path": "template-gallery/reviews/wan_animate_signal_through_the_rain.retained-template-provenance.json", + "size": 4484, + "sha256": "sha256:bytes:0e9f6bb00b8bd54c23aaf8c63cb3fb27d3c4a8adfdc103f63b61b6730413a483", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, { "path": "template-gallery/reviews/wan_flf_blue_hour_at_the_tram_shelter.original-provenance.json", "size": 1322, @@ -10207,6 +10953,17 @@ "width": 1024, "height": 1024 }, + { + "path": "template-gallery/sdxl_pag_lighthouse_in_graphite.webp", + "size": 447288, + "sha256": "sha256:bytes:6acd5e4afd90b2da12ba56d2efc594b9a3b0f99450b8aa373d0f6e6ae00abec2", + "contentType": "image/webp", + "purposes": [ + "runtime" + ], + "width": 1024, + "height": 1024 + }, { "path": "template-gallery/sdxl_pag_snow_cabin.webp", "size": 329912, @@ -10218,6 +10975,17 @@ "width": 1024, "height": 1024 }, + { + "path": "template-gallery/sdxl_pag_two_tier_cobalt_glass.webp", + "size": 116618, + "sha256": "sha256:bytes:2ac737f90e471c9f792b1d2a478645d7cc09c56889f31befc3266a0fef10ac2c", + "contentType": "image/webp", + "purposes": [ + "runtime" + ], + "width": 1024, + "height": 1024 + }, { "path": "template-gallery/sdxl_pix2pix_pale_amber_glass.webp", "size": 135420, @@ -10710,6 +11478,15 @@ "runtime" ] }, + { + "path": "template-gallery/wan_animate_signal_through_the_rain.mp4", + "size": 287523, + "sha256": "sha256:bytes:a9e2a96cfba367aea3a8d5cdc9cc1cfbc60a288d50e056b82977d696a37b805b", + "contentType": "video/mp4", + "purposes": [ + "runtime" + ] + }, { "path": "template-gallery/wan_flf_blue_hour_at_the_tram_shelter.mp4", "size": 398821, @@ -11129,9 +11906,9 @@ "height": 1024 } ], - "assetSetId": "sha256:canonical-json:e0bc710e59c6913a8e011a9bf904a4ea0dbe484a5b1ba87b0d5b2eddf5e73fed", + "assetSetId": "sha256:canonical-json:9cc2b2a8c2a8a6e7b667dacf0b1916d3831ef00d5f1cfdad7bb40f0dec1ff6c0", "status": "ready", - "assetCount": 1145, - "totalBytes": 1136432102, + "assetCount": 1228, + "totalBytes": 1171462339, "missingAssets": [] } diff --git a/public/template-gallery/manifest.json b/public/template-gallery/manifest.json index 9a1634d2..bb3d67ee 100644 --- a/public/template-gallery/manifest.json +++ b/public/template-gallery/manifest.json @@ -6183,6 +6183,480 @@ "qualityReviewHash": "sha256:canonical-json:21d433d4f298ec4799fe8c07b7ed23bd249225fee5040f61c86b24c44b8de9a8", "approvedOriginalReviewPath": "/template-gallery/reviews/cosmos3_super_text_to_image.original-review.json", "approvedOriginalProvenancePath": "/template-gallery/reviews/cosmos3_super_text_to_image.original-provenance.json" + }, + { + "templateId": "animatediff_pag_snowmelt_over_river_stones", + "templateLockHash": "tpl_71c3b95f", + "promptSettingsHash": "ps_b7b30a2a", + "modelRevision": "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14", + "runtimeFingerprint": "sha256:stable-runtime-v1:c2642af585975d6b55b551bcdfb8606edb2fab4b37a05875aa3a8024270b6eab", + "graphHash": "sha256:canonical-graph-v1:23e63b2c8f8206eeaef3e3745b623c351e586aa733cdaa01f278f1e3409e732c", + "proofLockHash": "sha256:retained-template-association-v1:c0c935aa0610a64caa005b4e5b683fcaa32801b1f7bc3c96351a3b00f70485a3", + "backendSourceFingerprint": "sha256:backend-source-v1:2faeaaa03b7902a03df5cd0cea38129b7419f6d844125c0ca7e29ccfaf635290", + "backendContractFingerprint": "sha256:backend-contract-v1:32e6e74ce3a29d61ae997904d9d4a77259db5c3bd819dbfc15d312482a356f92", + "modelCommit": "451f4fe16113bff5a5d2269ed5ad43b0592e9a14", + "templateRevisionHash": "43087167a4f17c0d0306e72d14750b647cb25811d30726ff3ef5cb57eb37ac4e", + "provenancePath": "/template-gallery/reviews/animatediff_pag_snowmelt_over_river_stones.retained-template-provenance.json", + "provenanceHash": "sha256:canonical-json:8d51752bd6fe9ea523695c6d6496f242cee15e5ed6f8c3de606e4db30635f72d", + "outputPath": "/template-gallery/animatediff_pag_snowmelt_over_river_stones.mp4", + "thumbnailPath": "/template-gallery/animatediff_pag_snowmelt_over_river_stones.mp4", + "mediaType": "video", + "mediaHash": "sha256:decoded-video-framemd5:61700e3d6bb71ec4fb4fa5b07ba7ca7998b13ae69d212bb4e3aee7627ec19fe3", + "width": 512, + "height": 512, + "verificationTimestamp": "2026-11-25T01:07:13.647Z", + "verificationStatus": "reviewed", + "qualityReviewStatus": "approved_reviewed", + "qualityReviewHash": "sha256:canonical-json:390bc435ed5e08e23f5d0781bec999739d440a8ecb540f374d9d55ad9d652119", + "qualityReviewPath": "/template-gallery/reviews/animatediff_pag_snowmelt_over_river_stones.quality-review.json", + "reviewer": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25T15:10:00.323Z", + "frames": 16, + "durationSeconds": 2, + "approvedOriginalReviewPath": "/template-gallery/reviews/animatediff_pag_snowmelt_over_river_stones.original-review.json", + "approvedOriginalProvenancePath": "/template-gallery/reviews/animatediff_pag_snowmelt_over_river_stones.original-provenance.json" + }, + { + "templateId": "ltx2_surf_below_the_breakwater", + "templateLockHash": "tpl_d1c61711", + "promptSettingsHash": "ps_c0f28184", + "modelRevision": "Lightricks/LTX-2@47da56e2ad66ce4125a9922b4a8826bf407f9d0a", + "runtimeFingerprint": "sha256:stable-runtime-v1:d256b021b495a5fee0efa20922d52d0c46c17996d45ae7386dea47cfbc87d7b6", + "graphHash": "sha256:canonical-graph-v1:b59a7ddbfe865b3d21d1aaa5a7a3dee9277b4b96ecd4e5dcad4f86fa4518d7b0", + "proofLockHash": "sha256:retained-template-association-v1:918cd5e93e27b8694b6f1d0d5f33270b4edc21504f2f6bb6002f28198901bc6e", + "decodedAudioHash": "sha256:decoded-audio-pcm-s16le-48000-stereo:9d6619acbf99b8080688e8120fc9f137eeb46ee7c41a4459be02f379d3a32e88", + "audiovisualMediaHash": "sha256:decoded-av-v1:1bc3d1a510373c480d3df61801d4c4a1b4b11b73d21eaae8507e88da8c403417", + "backendSourceFingerprint": "sha256:backend-source-v1:b29a5b0d317aaa781ae2a5205b46b518eea5a3d68a214eb0968dba4ac0660af7", + "backendContractFingerprint": "sha256:backend-contract-v1:1fb68b35c4981d6b87ef267a551fb572e72163972539ed955bb17cf7cf3a8bb8", + "modelCommit": "47da56e2ad66ce4125a9922b4a8826bf407f9d0a", + "templateRevisionHash": "0a58a9b6f8ac6a0308cf5e137d09d9412579d9ec92133231858ced4d45e4a01e", + "provenancePath": "/template-gallery/reviews/ltx2_surf_below_the_breakwater.retained-template-provenance.json", + "provenanceHash": "sha256:canonical-json:7392fada12867d63a7daedb3ece76a67bfc40ecafb14199f54644a3cda24a655", + "outputPath": "/template-gallery/ltx2_surf_below_the_breakwater.mp4", + "thumbnailPath": "/template-gallery/ltx2_surf_below_the_breakwater.mp4", + "mediaType": "video", + "mediaHash": "sha256:decoded-video-framemd5:a5c8d38e43c977c9400a6892d46462c1abff6bf0f24b4d7c0671ce7394e21690", + "width": 768, + "height": 512, + "verificationTimestamp": "2026-11-25T07:14:50.574Z", + "verificationStatus": "reviewed", + "qualityReviewStatus": "approved_reviewed", + "qualityReviewHash": "sha256:canonical-json:d1ff4edbeaf572a9125de427e62914e3f8346964f0c17ff1e35f1b51fd3a51c7", + "qualityReviewPath": "/template-gallery/reviews/ltx2_surf_below_the_breakwater.quality-review.json", + "reviewer": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25T15:10:00.323Z", + "frames": 121, + "durationSeconds": 5.041666666666667, + "approvedOriginalReviewPath": "/template-gallery/reviews/ltx2_surf_below_the_breakwater.original-review.json", + "approvedOriginalProvenancePath": "/template-gallery/reviews/ltx2_surf_below_the_breakwater.original-provenance.json" + }, + { + "templateId": "ltx2_kiln_at_first_light", + "templateLockHash": "tpl_36ff17c8", + "promptSettingsHash": "ps_e97cbf70", + "modelRevision": "Lightricks/LTX-2@47da56e2ad66ce4125a9922b4a8826bf407f9d0a", + "runtimeFingerprint": "sha256:stable-runtime-v1:d256b021b495a5fee0efa20922d52d0c46c17996d45ae7386dea47cfbc87d7b6", + "graphHash": "sha256:canonical-graph-v1:7301039ea45039f64b122f548aa716f25eb7185cd976f0f0a0b6638c9cb16dfa", + "proofLockHash": "sha256:retained-template-association-v1:2f18132a77dd0cf6dbac9b5ca5bf0bc57125370af3718ea7eada57e8748fe8ff", + "decodedAudioHash": "sha256:decoded-audio-pcm-s16le-48000-stereo:7bb57ec4aff7452aea9fee35b43fae9b57e8edbcd0cb144ab035d33c27490973", + "audiovisualMediaHash": "sha256:decoded-av-v1:5ae14b166a7346fc941eb5645a9dd5ef7ffbca423fd6c23eaba6e4001c048e4c", + "backendSourceFingerprint": "sha256:backend-source-v1:b29a5b0d317aaa781ae2a5205b46b518eea5a3d68a214eb0968dba4ac0660af7", + "backendContractFingerprint": "sha256:backend-contract-v1:1fb68b35c4981d6b87ef267a551fb572e72163972539ed955bb17cf7cf3a8bb8", + "modelCommit": "47da56e2ad66ce4125a9922b4a8826bf407f9d0a", + "templateRevisionHash": "172e79d27a5e6add55ba522752c17fddb4fb44998d3ff152056befa619c4f5a7", + "provenancePath": "/template-gallery/reviews/ltx2_kiln_at_first_light.retained-template-provenance.json", + "provenanceHash": "sha256:canonical-json:0e518dfdaae87b63738b6601a56b9301437997ff14bc66dbe91f5978b40545c9", + "outputPath": "/template-gallery/ltx2_kiln_at_first_light.mp4", + "thumbnailPath": "/template-gallery/ltx2_kiln_at_first_light.mp4", + "mediaType": "video", + "mediaHash": "sha256:decoded-video-framemd5:7d87de6dfe09b97c48929d2f8df334cab42e88a10ab9bd948688c3674aa4f2a6", + "width": 768, + "height": 512, + "verificationTimestamp": "2026-11-25T07:04:49.368Z", + "verificationStatus": "reviewed", + "qualityReviewStatus": "approved_reviewed", + "qualityReviewHash": "sha256:canonical-json:5430c8d16086671618f7cdc64592e9a00a511ef56393dbcc5ad658c9a00749c9", + "qualityReviewPath": "/template-gallery/reviews/ltx2_kiln_at_first_light.quality-review.json", + "reviewer": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25T15:10:00.323Z", + "frames": 81, + "durationSeconds": 3.375, + "approvedOriginalReviewPath": "/template-gallery/reviews/ltx2_kiln_at_first_light.original-review.json", + "approvedOriginalProvenancePath": "/template-gallery/reviews/ltx2_kiln_at_first_light.original-provenance.json" + }, + { + "templateId": "ltx2_glasshouse_drip", + "templateLockHash": "tpl_f369615f", + "promptSettingsHash": "ps_7cadd917", + "modelRevision": "Lightricks/LTX-2@47da56e2ad66ce4125a9922b4a8826bf407f9d0a", + "runtimeFingerprint": "sha256:stable-runtime-v1:d256b021b495a5fee0efa20922d52d0c46c17996d45ae7386dea47cfbc87d7b6", + "graphHash": "sha256:canonical-graph-v1:dd5427ed763a352409689fbf23e57249d830e5ddf7c4ec23c34b4a219d1d9c47", + "proofLockHash": "sha256:retained-template-association-v1:7a719fde470457d05cb21f0f3896ad71c3e2050e3fefc096e384bcf78244e7b1", + "decodedAudioHash": "sha256:decoded-audio-pcm-s16le-48000-stereo:063c9c43207ba134f653115cf18ea57610dba0239517d7962d4da31b7d3b183f", + "audiovisualMediaHash": "sha256:decoded-av-v1:26d362cc4f4b7193b066d0ee05a1ad2c7f83acfc722509d1de5332aa6b1cff52", + "backendSourceFingerprint": "sha256:backend-source-v1:b29a5b0d317aaa781ae2a5205b46b518eea5a3d68a214eb0968dba4ac0660af7", + "backendContractFingerprint": "sha256:backend-contract-v1:6d7fd83982e125093037e64b34a0ff2d70c1cccfb304c1cee11b6dca3e3974fc", + "modelCommit": "47da56e2ad66ce4125a9922b4a8826bf407f9d0a", + "templateRevisionHash": "8e9c88d288257a9ccf86964d32b68646882ceaf3c65b4cae91af6d89eea4e1cb", + "provenancePath": "/template-gallery/reviews/ltx2_glasshouse_drip.retained-template-provenance.json", + "provenanceHash": "sha256:canonical-json:d716284875c8027ea4691a7cef263afd35e78e0272dc8ba3bac21acab76a6200", + "outputPath": "/template-gallery/ltx2_glasshouse_drip.mp4", + "thumbnailPath": "/template-gallery/ltx2_glasshouse_drip.mp4", + "mediaType": "video", + "mediaHash": "sha256:decoded-video-framemd5:0202731e7b280ca08f3ca7254aa274ff882754b258bcb08b5a707abdd2c4e9e9", + "width": 768, + "height": 512, + "verificationTimestamp": "2026-11-25T06:23:53.855Z", + "verificationStatus": "reviewed", + "qualityReviewStatus": "approved_reviewed", + "qualityReviewHash": "sha256:canonical-json:c9e1107a12c4d7bc922a99d8e552ea222341f70b161e07ab418c714e83e2623c", + "qualityReviewPath": "/template-gallery/reviews/ltx2_glasshouse_drip.quality-review.json", + "reviewer": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25T15:10:00.323Z", + "frames": 81, + "durationSeconds": 3.375, + "approvedOriginalReviewPath": "/template-gallery/reviews/ltx2_glasshouse_drip.original-review.json", + "approvedOriginalProvenancePath": "/template-gallery/reviews/ltx2_glasshouse_drip.original-provenance.json", + "approvedSourcePath": "/template-gallery/inputs/ltx2_glasshouse_drip.first.png" + }, + { + "templateId": "wan_animate_signal_through_the_rain", + "templateLockHash": "tpl_28a23eb2", + "promptSettingsHash": "ps_9bf912f3", + "modelRevision": "Wan-AI/Wan2.2-Animate-14B-Diffusers@6f4df10861c758af86ac3c979aacc1bf5c03eff0", + "runtimeFingerprint": "sha256:stable-runtime-v1:4d41adc4d8b1fb3a9aed04a4e324121bd1a145d1051955a1493df3b5c6687bde", + "graphHash": "sha256:canonical-graph-v1:916a843dde25e718457b5621fd1bfa9201300d322cf480133154b0722aa62209", + "proofLockHash": "sha256:retained-template-association-v1:1a3cb2dbc98cd0f3df601bdc21f73a19da144f763f12b8083720aeae48e60261", + "backendSourceFingerprint": "sha256:backend-source-v1:b29a5b0d317aaa781ae2a5205b46b518eea5a3d68a214eb0968dba4ac0660af7", + "backendContractFingerprint": "sha256:backend-contract-v1:2d72ad297f1912c832a1a945e929a03af0e9de5efe3359a8759aae18db4bc2b5", + "modelCommit": "6f4df10861c758af86ac3c979aacc1bf5c03eff0", + "templateRevisionHash": "3dd570d231c6fb4075f50264809e570747f00ed8f85d367ee494c7d7cd5fe4bf", + "provenancePath": "/template-gallery/reviews/wan_animate_signal_through_the_rain.retained-template-provenance.json", + "provenanceHash": "sha256:canonical-json:86f942c89dceff3da99962ce790b72b47a092e3ae29a16a04c474a878523b17a", + "outputPath": "/template-gallery/wan_animate_signal_through_the_rain.mp4", + "thumbnailPath": "/template-gallery/wan_animate_signal_through_the_rain.mp4", + "mediaType": "video", + "mediaHash": "sha256:decoded-video-framemd5:635a3e8019bae9545c5e39e25d4500e1c3efd4ac622326f39f451d6e10929897", + "width": 768, + "height": 512, + "verificationTimestamp": "2026-11-25T09:03:45.693Z", + "verificationStatus": "reviewed", + "qualityReviewStatus": "approved_reviewed", + "qualityReviewHash": "sha256:canonical-json:5165bc5dd5bdf62932f8742157c9b1270b423c434def62e87b531d7ee169bdc5", + "qualityReviewPath": "/template-gallery/reviews/wan_animate_signal_through_the_rain.quality-review.json", + "reviewer": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25T15:10:00.323Z", + "frames": 81, + "durationSeconds": 3.375, + "approvedOriginalReviewPath": "/template-gallery/reviews/wan_animate_signal_through_the_rain.original-review.json", + "approvedOriginalProvenancePath": "/template-gallery/reviews/wan_animate_signal_through_the_rain.original-provenance.json", + "approvedSourcePath": "/template-gallery/inputs/wan_animate_signal_through_the_rain.first.png", + "approvedFaceVideoPath": "/template-gallery/inputs/wan_animate_signal_through_the_rain.face.mp4", + "approvedPoseVideoPath": "/template-gallery/inputs/wan_animate_signal_through_the_rain.pose.mp4" + }, + { + "templateId": "latte_water_folding_over_slate", + "templateLockHash": "tpl_65b5cee5", + "promptSettingsHash": "ps_83921a2b", + "modelRevision": "maxin-cn/Latte-1@0653024365272f061fc44d1078134df22842b687", + "runtimeFingerprint": "sha256:stable-runtime-v1:4d41adc4d8b1fb3a9aed04a4e324121bd1a145d1051955a1493df3b5c6687bde", + "graphHash": "sha256:canonical-graph-v1:602be3cfda32fd79e4700a8ee3b17bafdac7c0f8661ccc6dcdf516a418110461", + "proofLockHash": "sha256:retained-template-association-v1:990463a33acca38a8f03c9c7fb457debdd337bdd55e6881af200eae9ad60b19c", + "backendSourceFingerprint": "sha256:backend-source-v1:b29a5b0d317aaa781ae2a5205b46b518eea5a3d68a214eb0968dba4ac0660af7", + "backendContractFingerprint": "sha256:backend-contract-v1:40a4eb8d6275c83725f57c4d3499b8d12c00f8cf6caffc2d07006e74d24ab820", + "modelCommit": "0653024365272f061fc44d1078134df22842b687", + "templateRevisionHash": "663502fcbb5c79310582bf01e0dab2dfba6abadfa43d044f834b8ab10d5bb145", + "provenancePath": "/template-gallery/reviews/latte_water_folding_over_slate.retained-template-provenance.json", + "provenanceHash": "sha256:canonical-json:d630fde6f0d2b6592e768eeafbe3749f0ce0f4162348191a4c6c76dd7d69149f", + "outputPath": "/template-gallery/latte_water_folding_over_slate.mp4", + "thumbnailPath": "/template-gallery/latte_water_folding_over_slate.mp4", + "mediaType": "video", + "mediaHash": "sha256:decoded-video-framemd5:dfab2305306297c4afd517a72bd2487f527381fb4e28d68db0ebfdfce6a83a68", + "width": 512, + "height": 512, + "verificationTimestamp": "2026-11-25T09:10:38.298Z", + "verificationStatus": "reviewed", + "qualityReviewStatus": "approved_reviewed", + "qualityReviewHash": "sha256:canonical-json:b43a6c7a44ce366bc530d368a7aa565d704c0818e34c872907ccb04f9793e1b7", + "qualityReviewPath": "/template-gallery/reviews/latte_water_folding_over_slate.quality-review.json", + "reviewer": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25T15:10:00.323Z", + "frames": 16, + "durationSeconds": 2, + "approvedOriginalReviewPath": "/template-gallery/reviews/latte_water_folding_over_slate.original-review.json", + "approvedOriginalProvenancePath": "/template-gallery/reviews/latte_water_folding_over_slate.original-provenance.json" + }, + { + "templateId": "chroma_copper_medallion_outpaint", + "templateLockHash": "tpl_9d214139", + "promptSettingsHash": "ps_2aa6587e", + "modelRevision": "lodestones/Chroma1-HD@0e0c60ece1e82b17cb7f77342d765ba5024c40c0", + "runtimeFingerprint": "sha256:stable-runtime-v1:3ea42dd25e331aa0b0ef69781d270fd2bd6bcf4d5b65aab0c16891d77ba094f6", + "graphHash": "sha256:canonical-graph-v1:6b4352e7c6d634521c5ffef10a8d4f9d6ccdcb8e3c2a1c58f9a629afc551cfed", + "proofLockHash": "sha256:retained-template-association-v1:1ffd31f32818f0594537075be45da6c52f18b5cffc572a790d6e3f72d927f4d0", + "backendSourceFingerprint": "sha256:backend-source-v1:ee86f26ee410419fae168f4380029a01d302ec0fd0607308d9b1e40ae2ace7f7", + "backendContractFingerprint": "sha256:backend-contract-v1:06f986600338dc08fb5d1e639bfad55384f5b15ca0c97c2aeb7ed42a8c245594", + "modelCommit": "0e0c60ece1e82b17cb7f77342d765ba5024c40c0", + "templateRevisionHash": "9fecd969c5c6398a2e8194ac8ab7aac9b905267b88bf96f9062cecc16fee7223", + "provenancePath": "/template-gallery/reviews/chroma_copper_medallion_outpaint.retained-template-provenance.json", + "provenanceHash": "sha256:canonical-json:99806a19fd53479e998eff9325859730dc93aae97595a57d63978190c4cf139d", + "outputPath": "/template-gallery/chroma_copper_medallion_outpaint.webp", + "thumbnailPath": "/template-gallery/chroma_copper_medallion_outpaint.webp", + "mediaType": "image", + "mediaHash": "sha256:decoded-rgba:3b46dd7f31a2b7c0891ac67f84fc24dfe9a8e7dba590b95df9670535484cf408", + "width": 1024, + "height": 768, + "verificationTimestamp": "2026-11-25T09:41:42.540Z", + "verificationStatus": "reviewed", + "qualityReviewStatus": "approved_reviewed", + "qualityReviewHash": "sha256:canonical-json:7f74bba1d11de8c5b9e6ea52031be8d8faeb1be19cd968aa1c77e3f39d0cee0f", + "qualityReviewPath": "/template-gallery/reviews/chroma_copper_medallion_outpaint.quality-review.json", + "reviewer": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25T15:10:00.323Z", + "beforePath": "/template-gallery/inputs/chroma_copper_medallion_outpaint.before.png", + "beforeMediaHash": "sha256:bytes:a8aaf9be57bc6bab356c5c1f9b76a1458e7e85e9daf6681e7e38a28fc28e1535", + "afterPath": "/template-gallery/chroma_copper_medallion_outpaint.webp", + "approvedOriginalReviewPath": "/template-gallery/reviews/chroma_copper_medallion_outpaint.original-review.json", + "approvedOriginalProvenancePath": "/template-gallery/reviews/chroma_copper_medallion_outpaint.original-provenance.json" + }, + { + "templateId": "ltx2_enamel_teapot_window_light", + "templateLockHash": "tpl_6cc90a68", + "promptSettingsHash": "ps_9ed12354", + "modelRevision": "Lightricks/LTX-2@47da56e2ad66ce4125a9922b4a8826bf407f9d0a", + "runtimeFingerprint": "sha256:stable-runtime-v1:d256b021b495a5fee0efa20922d52d0c46c17996d45ae7386dea47cfbc87d7b6", + "graphHash": "sha256:canonical-graph-v1:88e46ced175df74ba7e8788d085e7543203a02f3518f6fc0296f370f7dcf1a40", + "proofLockHash": "sha256:retained-template-association-v1:245d8b451be9e0992271d1d04cceae7361d3f0894dd5ad53b56fffe6e77c7a6b", + "decodedAudioHash": "sha256:decoded-audio-pcm-s16le-48000-stereo:6fd9511a2f7e7f00e79a613e2b152805a8c9fe0457a014237225cd05cd12d693", + "audiovisualMediaHash": "sha256:decoded-av-v1:34b8aedf9a7bd6b31ee0ca9fbcbb3743fbe145fab844612a9534283086194f4e", + "backendSourceFingerprint": "sha256:backend-source-v1:b29a5b0d317aaa781ae2a5205b46b518eea5a3d68a214eb0968dba4ac0660af7", + "backendContractFingerprint": "sha256:backend-contract-v1:6d7fd83982e125093037e64b34a0ff2d70c1cccfb304c1cee11b6dca3e3974fc", + "modelCommit": "47da56e2ad66ce4125a9922b4a8826bf407f9d0a", + "templateRevisionHash": "8c01a644d54c04e3ebb653cba32cdf1b14a18c7167e52ef95fdc392aad28599a", + "provenancePath": "/template-gallery/reviews/ltx2_enamel_teapot_window_light.retained-template-provenance.json", + "provenanceHash": "sha256:canonical-json:31deada7f59dc635ace085305a1ee30cbb1befe552d49cbcb463d528be957db5", + "outputPath": "/template-gallery/ltx2_enamel_teapot_window_light.mp4", + "thumbnailPath": "/template-gallery/ltx2_enamel_teapot_window_light.mp4", + "mediaType": "video", + "mediaHash": "sha256:decoded-video-framemd5:3bb1e7671bc3f2987747293caf6d5be3df1db21d63e882851791ccc42586e935", + "width": 768, + "height": 512, + "verificationTimestamp": "2026-11-25T06:28:14.109Z", + "verificationStatus": "reviewed", + "qualityReviewStatus": "approved_reviewed", + "qualityReviewHash": "sha256:canonical-json:64d5773a24193457cd424bebe502c511a1ac949c19856813cbac9b6cb10ec3d0", + "qualityReviewPath": "/template-gallery/reviews/ltx2_enamel_teapot_window_light.quality-review.json", + "reviewer": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25T15:10:00.323Z", + "frames": 81, + "durationSeconds": 3.375, + "approvedOriginalReviewPath": "/template-gallery/reviews/ltx2_enamel_teapot_window_light.original-review.json", + "approvedOriginalProvenancePath": "/template-gallery/reviews/ltx2_enamel_teapot_window_light.original-provenance.json", + "approvedSourcePath": "/template-gallery/inputs/ltx2_enamel_teapot_window_light.first.png" + }, + { + "templateId": "ltx2_moss_and_basalt", + "templateLockHash": "tpl_b6f15221", + "promptSettingsHash": "ps_637d1d2f", + "modelRevision": "Lightricks/LTX-2@47da56e2ad66ce4125a9922b4a8826bf407f9d0a", + "runtimeFingerprint": "sha256:stable-runtime-v1:d256b021b495a5fee0efa20922d52d0c46c17996d45ae7386dea47cfbc87d7b6", + "graphHash": "sha256:canonical-graph-v1:b5dfe89e55b083b29e1afa57472019ae9b3a123628162b94d3659c58f8d53af8", + "proofLockHash": "sha256:retained-template-association-v1:b7977f8023b21c562adea22d6cdc08e2cb22c9781057df3505ab159b5ad84559", + "decodedAudioHash": "sha256:decoded-audio-pcm-s16le-48000-stereo:dd43f3167c8123ee97751684f6e7d449e9267efd942742c509a51de3cbd25d7f", + "audiovisualMediaHash": "sha256:decoded-av-v1:57b13cae786772fc226cce38638e3546a12c74671b4fef06111c05673fbbd9bb", + "backendSourceFingerprint": "sha256:backend-source-v1:b29a5b0d317aaa781ae2a5205b46b518eea5a3d68a214eb0968dba4ac0660af7", + "backendContractFingerprint": "sha256:backend-contract-v1:3870812099f899fad7df7ffddf6dd37dd0241e7628d9b40d6fc51acb693b5086", + "modelCommit": "47da56e2ad66ce4125a9922b4a8826bf407f9d0a", + "templateRevisionHash": "680ec55c2e867aab22c21e907eb3ab183c6639af4cd8ba877e6bcec732a5ce1a", + "provenancePath": "/template-gallery/reviews/ltx2_moss_and_basalt.retained-template-provenance.json", + "provenanceHash": "sha256:canonical-json:358738e0772db8c9641fc5ce1f9605bfe9c45204ccd8b5cd7c70fb8510d0c886", + "outputPath": "/template-gallery/ltx2_moss_and_basalt.mp4", + "thumbnailPath": "/template-gallery/ltx2_moss_and_basalt.mp4", + "mediaType": "video", + "mediaHash": "sha256:decoded-video-framemd5:0a9383604f7a30fb9accc55d3babae89a67ecedb807d36586ec14f8a5dce054e", + "width": 768, + "height": 512, + "verificationTimestamp": "2026-11-25T10:51:51.234Z", + "verificationStatus": "reviewed", + "qualityReviewStatus": "approved_reviewed", + "qualityReviewHash": "sha256:canonical-json:f7ec1c7f9075c5b3845dbba2fbde16cdf3d1a776b957548eb010b6324b470d85", + "qualityReviewPath": "/template-gallery/reviews/ltx2_moss_and_basalt.quality-review.json", + "reviewer": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25T15:10:00.323Z", + "beforePath": "/template-gallery/inputs/ltx2_moss_and_basalt.before.mp4", + "beforeMediaHash": "sha256:bytes:3b5e40ac2bf76236d1f901a7a2522addd7c4a1b2701bd89a33c1506b1523bc38", + "afterPath": "/template-gallery/ltx2_moss_and_basalt.mp4", + "beforeSourceMediaHash": "sha256:bytes:3b5e40ac2bf76236d1f901a7a2522addd7c4a1b2701bd89a33c1506b1523bc38", + "frames": 81, + "durationSeconds": 3.375, + "approvedOriginalReviewPath": "/template-gallery/reviews/ltx2_moss_and_basalt.original-review.json", + "approvedOriginalProvenancePath": "/template-gallery/reviews/ltx2_moss_and_basalt.original-provenance.json" + }, + { + "templateId": "sdxl_pag_lighthouse_in_graphite", + "templateLockHash": "tpl_23c07813", + "promptSettingsHash": "ps_91059256", + "modelRevision": "stabilityai/stable-diffusion-xl-base-1.0@462165984030d82259a11f4367a4eed129e94a7b", + "runtimeFingerprint": "sha256:stable-runtime-v1:c2642af585975d6b55b551bcdfb8606edb2fab4b37a05875aa3a8024270b6eab", + "graphHash": "sha256:canonical-graph-v1:44c2801331dfd7f8d54f9f8dd240bc901d7d4e855d8244accbdf111b04696361", + "proofLockHash": "sha256:retained-template-association-v1:fb1948c1eb6aac3a979d541442e7496745b216aacad66c25b1b8db951240d7dc", + "backendSourceFingerprint": "sha256:backend-source-v1:2faeaaa03b7902a03df5cd0cea38129b7419f6d844125c0ca7e29ccfaf635290", + "backendContractFingerprint": "sha256:backend-contract-v1:bd364fcd29020d51bb61f5f9bf320cf0bf562e718c645c21ffac8ed5a47b740d", + "modelCommit": "462165984030d82259a11f4367a4eed129e94a7b", + "templateRevisionHash": "6eb3e04961a9389794619d6ae2342a296287039deb1d08715a785409b279cba3", + "provenancePath": "/template-gallery/reviews/sdxl_pag_lighthouse_in_graphite.retained-template-provenance.json", + "provenanceHash": "sha256:canonical-json:2810dc5bd8acf4ca93b6abe2715f0edf99aef30ccfb978da9ef7eb3e6b9ff3ba", + "outputPath": "/template-gallery/sdxl_pag_lighthouse_in_graphite.webp", + "thumbnailPath": "/template-gallery/sdxl_pag_lighthouse_in_graphite.webp", + "mediaType": "image", + "mediaHash": "sha256:decoded-rgba:67424f62c256b2f3298973786541a778838ee10674f5cb38c35c4f5c0c51b1db", + "width": 1024, + "height": 1024, + "verificationTimestamp": "2026-11-25T11:05:22.328Z", + "verificationStatus": "reviewed", + "qualityReviewStatus": "approved_reviewed", + "qualityReviewHash": "sha256:canonical-json:e9291d0e31b2436e00dfea18e2053cdd3098c5484eb6983d0555216f3d987036", + "qualityReviewPath": "/template-gallery/reviews/sdxl_pag_lighthouse_in_graphite.quality-review.json", + "reviewer": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25T15:10:00.323Z", + "beforePath": "/template-gallery/inputs/sdxl_pag_lighthouse_in_graphite.before.png", + "beforeMediaHash": "sha256:bytes:4cbc984b44c398b6e92b4350513d3543139e9dffe01a38857845c8a7698272c8", + "afterPath": "/template-gallery/sdxl_pag_lighthouse_in_graphite.webp", + "approvedOriginalReviewPath": "/template-gallery/reviews/sdxl_pag_lighthouse_in_graphite.original-review.json", + "approvedOriginalProvenancePath": "/template-gallery/reviews/sdxl_pag_lighthouse_in_graphite.original-provenance.json" + }, + { + "templateId": "flux_dev_forest_green_teapot", + "templateLockHash": "tpl_266f6def", + "promptSettingsHash": "ps_75d3d1bb", + "modelRevision": "black-forest-labs/FLUX.1-dev@3de623fc3c33e44ffbe2bad470d0f45bccf2eb21", + "runtimeFingerprint": "sha256:stable-runtime-v1:8b8cb002c7d19d09c3e88b516872a3c78688f9250d1f0f44e4ee03d42c576401", + "graphHash": "sha256:canonical-graph-v1:234b1d91dd85fbdb63119e93334c45509d81ec63cf35ff7c2917989a02facfb7", + "proofLockHash": "sha256:retained-template-association-v1:fb1d73bd82c1411631c0492962fed4a48a76dd8ae6039333152a405552f8cb79", + "backendSourceFingerprint": "sha256:backend-source-v1:b29a5b0d317aaa781ae2a5205b46b518eea5a3d68a214eb0968dba4ac0660af7", + "backendContractFingerprint": "sha256:backend-contract-v1:315617df789a8a5f57426692318e197c13786098718305edd1927471b5b9c194", + "modelCommit": "3de623fc3c33e44ffbe2bad470d0f45bccf2eb21", + "templateRevisionHash": "733622609f54510a405766166f8b6a2e00eabffc71dccbe5d780eddf18aa63cd", + "provenancePath": "/template-gallery/reviews/flux_dev_forest_green_teapot.retained-template-provenance.json", + "provenanceHash": "sha256:canonical-json:09b97ac42d6c9011cc8e694261a37bed183a32e0f0b2cfec48ccd21e751eb8da", + "outputPath": "/template-gallery/flux_dev_forest_green_teapot.webp", + "thumbnailPath": "/template-gallery/flux_dev_forest_green_teapot.webp", + "mediaType": "image", + "mediaHash": "sha256:decoded-rgba:b9556935be8ee9f3114c3f45edd4c1ea9940219107c51e930efe396799045e5d", + "width": 1024, + "height": 1024, + "verificationTimestamp": "2026-11-25T12:54:58.483Z", + "verificationStatus": "reviewed", + "qualityReviewStatus": "approved_reviewed", + "qualityReviewHash": "sha256:canonical-json:fe39ad126d39577961b978369fc4877769ac87d552414be170ca44bf7a9c0885", + "qualityReviewPath": "/template-gallery/reviews/flux_dev_forest_green_teapot.quality-review.json", + "reviewer": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25T15:10:00.323Z", + "beforePath": "/template-gallery/inputs/flux_dev_forest_green_teapot.before.webp", + "beforeMediaHash": "sha256:bytes:443062a26e22e3542e284f50d0274b7c70b881b3cce76568eb8eb22ce4c396d6", + "afterPath": "/template-gallery/flux_dev_forest_green_teapot.webp", + "approvedOriginalReviewPath": "/template-gallery/reviews/flux_dev_forest_green_teapot.original-review.json", + "approvedOriginalProvenancePath": "/template-gallery/reviews/flux_dev_forest_green_teapot.original-provenance.json" + }, + { + "templateId": "animatelcm_sunlit_surf", + "templateLockHash": "tpl_d58d08a0", + "promptSettingsHash": "ps_edc78e93", + "modelRevision": "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14", + "runtimeFingerprint": "sha256:stable-runtime-v1:c2642af585975d6b55b551bcdfb8606edb2fab4b37a05875aa3a8024270b6eab", + "graphHash": "sha256:canonical-graph-v1:1ca2a40982413d74048c1a056d99e663a004ffca73f8982ba51b12e3821de692", + "proofLockHash": "sha256:retained-template-association-v1:e110d953bad0c70532b1bf3c51b4f0a4db7200b53d41f6a5bc6875203e429d30", + "backendSourceFingerprint": "sha256:backend-source-v1:2faeaaa03b7902a03df5cd0cea38129b7419f6d844125c0ca7e29ccfaf635290", + "backendContractFingerprint": "sha256:backend-contract-v1:32e6e74ce3a29d61ae997904d9d4a77259db5c3bd819dbfc15d312482a356f92", + "modelCommit": "451f4fe16113bff5a5d2269ed5ad43b0592e9a14", + "templateRevisionHash": "8eb9c374cf4d54c48fc6dab608b1cd5a20acde2948f3e56d0bace61f48f946eb", + "provenancePath": "/template-gallery/reviews/animatelcm_sunlit_surf.retained-template-provenance.json", + "provenanceHash": "sha256:canonical-json:91e279f29be6567007b9dedf5a78309ceaf374664b727f9b7de1e234e1abe607", + "outputPath": "/template-gallery/animatelcm_sunlit_surf.mp4", + "thumbnailPath": "/template-gallery/animatelcm_sunlit_surf.mp4", + "mediaType": "video", + "mediaHash": "sha256:decoded-video-framemd5:e0232a96ea0212443e496a823b3184de12670389914109a87bf67f52b3de0a5e", + "width": 512, + "height": 512, + "verificationTimestamp": "2026-11-25T13:49:21.637Z", + "verificationStatus": "reviewed", + "qualityReviewStatus": "approved_reviewed", + "qualityReviewHash": "sha256:canonical-json:72546fd5f5b9ecfb256453f97715429d1901d0be8ca45d06a721c5470cfd6566", + "qualityReviewPath": "/template-gallery/reviews/animatelcm_sunlit_surf.quality-review.json", + "reviewer": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25T15:10:00.323Z", + "frames": 16, + "durationSeconds": 2, + "approvedOriginalReviewPath": "/template-gallery/reviews/animatelcm_sunlit_surf.original-review.json", + "approvedOriginalProvenancePath": "/template-gallery/reviews/animatelcm_sunlit_surf.original-provenance.json" + }, + { + "templateId": "flux_kontext_bookshop_clear_glass", + "templateLockHash": "tpl_66d098da", + "promptSettingsHash": "ps_b8e8c482", + "modelRevision": "black-forest-labs/FLUX.1-Kontext-dev@24e9dedc4ef646698dc8eb4e18ae2cec3c9fea0d", + "runtimeFingerprint": "sha256:stable-runtime-v1:8b8cb002c7d19d09c3e88b516872a3c78688f9250d1f0f44e4ee03d42c576401", + "graphHash": "sha256:canonical-graph-v1:a9cc4b1c398fd96d027e5f13d281eedc73357ae004f2d6c46e8ecac4dd401b5b", + "proofLockHash": "sha256:retained-template-association-v1:8e7fe3f69fcdde83f94bdb2cd7b3e3365862d2a1a50040dded6da504ed4d466c", + "backendSourceFingerprint": "sha256:backend-source-v1:b29a5b0d317aaa781ae2a5205b46b518eea5a3d68a214eb0968dba4ac0660af7", + "backendContractFingerprint": "sha256:backend-contract-v1:e7a7aa3acbdedd686fa7e7a9d4bcc39c1709ba1fec38f047d63ff83558a85c18", + "modelCommit": "24e9dedc4ef646698dc8eb4e18ae2cec3c9fea0d", + "templateRevisionHash": "e0b3aa2e3ac0aaf75006ed8110ff7420862ccaef4e03da53db5626f12fc278b6", + "provenancePath": "/template-gallery/reviews/flux_kontext_bookshop_clear_glass.retained-template-provenance.json", + "provenanceHash": "sha256:canonical-json:c0e45e0292e1b2f06d1e332196354b8df282e6083bc804432a6904c0e2a30986", + "outputPath": "/template-gallery/flux_kontext_bookshop_clear_glass.webp", + "thumbnailPath": "/template-gallery/flux_kontext_bookshop_clear_glass.webp", + "mediaType": "image", + "mediaHash": "sha256:decoded-rgba:65b1379696e4e4a14ed1a2a284ad42ee4b06a741923f5eeb45bd0102056f2a11", + "width": 1024, + "height": 1024, + "verificationTimestamp": "2026-11-25T14:08:32.311Z", + "verificationStatus": "reviewed", + "qualityReviewStatus": "approved_reviewed", + "qualityReviewHash": "sha256:canonical-json:629e115eb69bcaa7c3a2ab0663a718d678326366189e02d888f4f6919eee2e8b", + "qualityReviewPath": "/template-gallery/reviews/flux_kontext_bookshop_clear_glass.quality-review.json", + "reviewer": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25T15:10:00.323Z", + "beforePath": "/template-gallery/inputs/flux_kontext_bookshop_clear_glass.before.webp", + "beforeMediaHash": "sha256:bytes:ff045be510a0e88cbab69bbe8c3794dd26bd19036bdec26a63a5b6ea5a11bc66", + "afterPath": "/template-gallery/flux_kontext_bookshop_clear_glass.webp", + "approvedOriginalReviewPath": "/template-gallery/reviews/flux_kontext_bookshop_clear_glass.original-review.json", + "approvedOriginalProvenancePath": "/template-gallery/reviews/flux_kontext_bookshop_clear_glass.original-provenance.json", + "approvedMaskPath": "/template-gallery/inputs/flux_kontext_bookshop_clear_glass.mask.png" + }, + { + "templateId": "sdxl_pag_two_tier_cobalt_glass", + "templateLockHash": "tpl_4a341313", + "promptSettingsHash": "ps_32f2125d", + "modelRevision": "stabilityai/stable-diffusion-xl-base-1.0@462165984030d82259a11f4367a4eed129e94a7b", + "runtimeFingerprint": "sha256:stable-runtime-v1:8b8cb002c7d19d09c3e88b516872a3c78688f9250d1f0f44e4ee03d42c576401", + "graphHash": "sha256:canonical-graph-v1:42c0dca0bd5a735551bed85d826240aecd5691b1a0ac0762470363013b07d1a6", + "proofLockHash": "sha256:retained-template-association-v1:b4c114da344ad5388f27e6fc713ee053a6a32a8bc86dd40946fd4b7abd4e93cd", + "backendSourceFingerprint": "sha256:backend-source-v1:b29a5b0d317aaa781ae2a5205b46b518eea5a3d68a214eb0968dba4ac0660af7", + "backendContractFingerprint": "sha256:backend-contract-v1:2640de4cce56db16229ada283eb8ff2c49cd39d7f015dd1e08ae601b9c9eac8a", + "modelCommit": "462165984030d82259a11f4367a4eed129e94a7b", + "templateRevisionHash": "09f0d98df7f8807fd95a733b904b52dde05fd41d82f68c31369c3ff7c434120b", + "provenancePath": "/template-gallery/reviews/sdxl_pag_two_tier_cobalt_glass.retained-template-provenance.json", + "provenanceHash": "sha256:canonical-json:57a8f6a782abd1548d02bf061e624f65a04d5e5be2f0031ca15e2e2ad737dcb4", + "outputPath": "/template-gallery/sdxl_pag_two_tier_cobalt_glass.webp", + "thumbnailPath": "/template-gallery/sdxl_pag_two_tier_cobalt_glass.webp", + "mediaType": "image", + "mediaHash": "sha256:decoded-rgba:1822899e90f7155bcd778940df1799679306382fc68a6d3bf1e5521e5d80c696", + "width": 1024, + "height": 1024, + "verificationTimestamp": "2026-11-25T14:39:45.774Z", + "verificationStatus": "reviewed", + "qualityReviewStatus": "approved_reviewed", + "qualityReviewHash": "sha256:canonical-json:1f89cfd67080ae4a111e6d7262e41c45464d53c1c353de134864c8f5d3c0aa87", + "qualityReviewPath": "/template-gallery/reviews/sdxl_pag_two_tier_cobalt_glass.quality-review.json", + "reviewer": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25T15:10:00.323Z", + "beforePath": "/template-gallery/inputs/sdxl_pag_two_tier_cobalt_glass.before.png", + "beforeMediaHash": "sha256:bytes:ff30b36f685b657db6de0cb59dff37601e147123ba19b9c42a32fc1060bd323e", + "afterPath": "/template-gallery/sdxl_pag_two_tier_cobalt_glass.webp", + "approvedOriginalReviewPath": "/template-gallery/reviews/sdxl_pag_two_tier_cobalt_glass.original-review.json", + "approvedOriginalProvenancePath": "/template-gallery/reviews/sdxl_pag_two_tier_cobalt_glass.original-provenance.json", + "approvedGuidePath": "/template-gallery/inputs/sdxl_pag_two_tier_cobalt_glass.guide.png" } ] } diff --git a/src/studio/retainedGalleryApprovedBatch.ts b/src/studio/retainedGalleryApprovedBatch.ts index a615e28e..8cf187c7 100644 --- a/src/studio/retainedGalleryApprovedBatch.ts +++ b/src/studio/retainedGalleryApprovedBatch.ts @@ -7782,4 +7782,1275 @@ export const APPROVED_RETAINED_TEMPLATES: StudioTemplate[] = [ 'Reproduce the reviewed The Glasshouse Keeper example with the saved prompt, settings and model revision.', runtimeReuseKey: 'sha256:canonical-graph-v1:120c2a963fb5ba4565a577eb4c1730b48d3d52d63f7610b6369c04ebf74af3e5', }, + { + id: 'animatediff_pag_snowmelt_over_river_stones', + label: 'AnimateDiff SD1.5 v2 + PAG — Text to video: Snowmelt over River Stones', + mode: 'text_to_video', + modelType: 'AnimateDiffPAGPipeline', + intentGroup: 'video', + thumbnailVariant: 'video', + category: 'video_generation', + videoDelivery: 'native', + readinessPolicy: 'runnable', + outputKinds: ['video'], + requiredBackendCapabilities: [ + 'modules.DiffusersRuntime.PipelineQuantizationConfigV2', + 'modules.DiffusersRuntime.DiffusersExecutionRecipe', + 'modules.Video.Export', + 'modules.DiffusersVideo.Generate', + 'modules.DiffusersVideo.LoadPipeline', + ], + modelArtifact: { + source: 'hub', + value: 'stable-diffusion-v1-5/stable-diffusion-v1-5', + revision: '451f4fe16113bff5a5d2269ed5ad43b0592e9a14', + }, + description: + 'Reproduce the reviewed Snowmelt over River Stones example with the saved prompt, settings and model revision.', + recipeSummary: 'Run the saved Snowmelt over River Stones recipe.', + runtimeReuseKey: 'sha256:canonical-graph-v1:23e63b2c8f8206eeaef3e3745b623c351e586aa733cdaa01f278f1e3409e732c', + prompt: + 'Natural macro cinema of a shallow mountain creek in morning light, framed close on three rounded dark stones that remain fixed in place. Clear shallow water streams briskly from the upper left and splits visibly at the central stone. Fine silver ripples travel continuously through the entire frame, bending around each stone and rejoining in the lower right. A fixed camera just above the water, one steady shot, shallow depth of field, detailed wet textures, soft moss on the far bank, calm green and blue tones.', + negativePrompt: '', + mediaSlots: [ + { + id: 'result', + label: 'Generated video', + kind: 'video', + role: 'output', + placeholder: 'Result pending', + }, + ], + example: { + mediaType: 'video', + status: 'unverified', + modelRevision: '451f4fe16113bff5a5d2269ed5ad43b0592e9a14', + lockedSeed: 42, + lockedSettings: { + width: 512, + height: 512, + steps: 25, + guidanceScale: 7.5, + strength: 0.8, + outputType: 'pil', + maxSequenceLength: 77, + pagScale: 3, + pagAdaptiveScale: 0, + dtype: 'float16', + resourceMode: 'expert', + quantizationMode: 'none', + autoOffload: true, + offloadMode: 'model_cpu', + numFrames: 16, + fps: 8, + guidanceScale2: 0, + shift: 0, + conditioningScale: 1, + }, + expectedOutput: { + width: 512, + height: 512, + frames: 16, + durationSeconds: 2, + }, + runtimeEstimate: '42.00 seconds in the saved run', + retainedVideoPreview: { + width: 512, + height: 512, + frames: 16, + fps: 8, + mediaHash: 'sha256:decoded-video-framemd5:61700e3d6bb71ec4fb4fa5b07ba7ca7998b13ae69d212bb4e3aee7627ec19fe3', + }, + }, + }, + { + id: 'ltx2_surf_below_the_breakwater', + label: 'LTX-2 Standard Video + Audio — Text to video: Surf below the Breakwater', + mode: 'text_to_video', + modelType: 'LTX2Pipeline', + intentGroup: 'video', + thumbnailVariant: 'video', + category: 'video_generation', + videoDelivery: 'native', + readinessPolicy: 'runnable', + outputKinds: ['video'], + requiredBackendCapabilities: [ + 'modules.DiffusersRuntime.PipelineQuantizationConfigV2', + 'modules.DiffusersRuntime.DiffusersExecutionRecipe', + 'modules.Video.ExportWithAudio', + 'modules.DiffusersVideo.GenerateVideoAudio', + 'modules.DiffusersVideo.LoadPipeline', + ], + modelArtifact: { + source: 'hub', + value: 'Lightricks/LTX-2', + revision: '47da56e2ad66ce4125a9922b4a8826bf407f9d0a', + }, + description: + 'Reproduce the reviewed Surf below the Breakwater example with the saved prompt, settings and model revision.', + recipeSummary: 'Run the saved Surf below the Breakwater recipe.', + runtimeReuseKey: 'sha256:canonical-graph-v1:b59a7ddbfe865b3d21d1aaa5a7a3dee9277b4b96ecd4e5dcad4f86fa4518d7b0', + prompt: + 'A five-second continuous documentary shot at a small pebble beach below a stone breakwater on an overcast morning. Put the camera on a locked low tripod near a group of smooth black basalt pebbles in the lower left. A gray-green shore wave rolls in from the upper right, spreads a thin lace of white foam around the pebbles and pulls back, leaving their surfaces glossy. A second smaller pulse follows behind the first. Keep the camera, horizon, stones and rough breakwater completely fixed. Clear layered surf is the soundtrack. The approaching wave begins as a low wash, breaks with a crisp broadband splash as white foam reaches the foreground, then trails off into the rattling hiss of draining water. No music or voices. Natural cool daylight, crisp foreground detail, subtle water reflections and one unbroken real-time shot.', + negativePrompt: '', + mediaSlots: [ + { + id: 'result', + label: 'Generated video', + kind: 'video', + role: 'output', + placeholder: 'Result pending', + }, + ], + example: { + mediaType: 'video', + status: 'unverified', + modelRevision: '47da56e2ad66ce4125a9922b4a8826bf407f9d0a', + lockedSeed: 42, + lockedSettings: { + width: 768, + height: 512, + steps: 40, + guidanceScale: 4, + strength: 0.8, + outputType: 'pil', + maxSequenceLength: 512, + pagScale: 3, + pagAdaptiveScale: 0, + dtype: 'bfloat16', + resourceMode: 'expert', + quantizationMode: 'none', + autoOffload: true, + offloadMode: 'model_cpu', + numFrames: 121, + fps: 24, + guidanceScale2: 0, + shift: 0, + conditioningScale: 1, + }, + expectedOutput: { + width: 768, + height: 512, + frames: 121, + durationSeconds: 5.041666666666667, + requiresAudio: true, + }, + runtimeEstimate: '287.17 seconds in the saved run', + retainedVideoPreview: { + width: 768, + height: 512, + frames: 121, + fps: 24, + mediaHash: 'sha256:decoded-video-framemd5:a5c8d38e43c977c9400a6892d46462c1abff6bf0f24b4d7c0671ce7394e21690', + decodedAudioHash: + 'sha256:decoded-audio-pcm-s16le-48000-stereo:9d6619acbf99b8080688e8120fc9f137eeb46ee7c41a4459be02f379d3a32e88', + }, + }, + }, + { + id: 'ltx2_kiln_at_first_light', + label: 'LTX-2 Video + Audio — Text to video: Kiln at First Light', + mode: 'text_to_video', + modelType: 'LTX2ConditionPipeline', + intentGroup: 'video', + thumbnailVariant: 'video', + category: 'video_generation', + videoDelivery: 'native', + readinessPolicy: 'runnable', + outputKinds: ['video'], + requiredBackendCapabilities: [ + 'modules.DiffusersRuntime.PipelineQuantizationConfigV2', + 'modules.DiffusersRuntime.DiffusersExecutionRecipe', + 'modules.Video.ExportWithAudio', + 'modules.DiffusersVideo.GenerateVideoAudio', + 'modules.DiffusersVideo.LoadPipeline', + ], + modelArtifact: { + source: 'hub', + value: 'Lightricks/LTX-2', + revision: '47da56e2ad66ce4125a9922b4a8826bf407f9d0a', + }, + description: + 'Reproduce the reviewed Kiln at First Light example with the saved prompt, settings and model revision.', + recipeSummary: 'Run the saved Kiln at First Light recipe.', + runtimeReuseKey: 'sha256:canonical-graph-v1:7301039ea45039f64b122f548aa716f25eb7185cd976f0f0a0b6638c9cb16dfa', + prompt: + 'One continuous cinematic shot in a ceramic workshop at first light. The camera begins at chest height in a three-quarter view of a matte charcoal kiln with a squared opening and a single heavy hinged door that is already ajar. The orange ceramic chamber and the silvery left hinge are both visible. From first to last frame, the kiln and the door remain stationary. Move the camera slowly sideways to the right on a short slider so that nearby stacks of ivory bowls pass slowly in front of the frame and the open chamber becomes clearer. The orange glow shimmers gently on the nearest ceramic rims. The workshop has no visible people. Audio is a clear low burner roar from the open kiln, continuous and louder than the quiet room, with one brief dry crackle near the middle. No music, no talking and no sudden cuts. Finish on the three bowls in crisp focus alongside the softly glowing kiln opening.', + negativePrompt: '', + mediaSlots: [ + { + id: 'result', + label: 'Generated video', + kind: 'video', + role: 'output', + placeholder: 'Result pending', + }, + ], + example: { + mediaType: 'video', + status: 'unverified', + modelRevision: '47da56e2ad66ce4125a9922b4a8826bf407f9d0a', + lockedSeed: 42, + lockedSettings: { + width: 768, + height: 512, + steps: 30, + guidanceScale: 3, + strength: 0.8, + outputType: 'pil', + maxSequenceLength: 512, + pagScale: 3, + pagAdaptiveScale: 0, + dtype: 'bfloat16', + resourceMode: 'expert', + quantizationMode: 'none', + autoOffload: true, + offloadMode: 'model_cpu', + numFrames: 81, + fps: 24, + guidanceScale2: 0, + shift: 0, + conditioningScale: 1, + }, + expectedOutput: { + width: 768, + height: 512, + frames: 81, + durationSeconds: 3.375, + requiresAudio: true, + }, + runtimeEstimate: '158.59 seconds in the saved run', + retainedVideoPreview: { + width: 768, + height: 512, + frames: 81, + fps: 24, + mediaHash: 'sha256:decoded-video-framemd5:7d87de6dfe09b97c48929d2f8df334cab42e88a10ab9bd948688c3674aa4f2a6', + decodedAudioHash: + 'sha256:decoded-audio-pcm-s16le-48000-stereo:7bb57ec4aff7452aea9fee35b43fae9b57e8edbcd0cb144ab035d33c27490973', + }, + }, + }, + { + id: 'ltx2_glasshouse_drip', + label: 'LTX-2 Video + Audio — Image to video: Glasshouse Drip', + mode: 'image_to_video', + modelType: 'LTX2ConditionPipeline', + intentGroup: 'video', + thumbnailVariant: 'video', + category: 'video_generation', + videoDelivery: 'native', + inputBindings: [ + { + id: 'source-image', + label: 'First Frame', + mediaType: 'image', + field: 'referenceImages', + origin: 'user', + requiredAt: 'workflow_start', + count: 1, + }, + ], + readinessPolicy: 'requires_input', + outputKinds: ['video'], + requiredBackendCapabilities: [ + 'modules.DiffusersRuntime.PipelineQuantizationConfigV2', + 'modules.DiffusersRuntime.DiffusersExecutionRecipe', + 'modules.Image.Load', + 'modules.Video.ExportWithAudio', + 'modules.DiffusersVideo.GenerateVideoAudio', + 'modules.DiffusersVideo.LoadPipeline', + ], + modelArtifact: { + source: 'hub', + value: 'Lightricks/LTX-2', + revision: '47da56e2ad66ce4125a9922b4a8826bf407f9d0a', + }, + description: 'Reproduce the reviewed Glasshouse Drip example with the saved prompt, settings and model revision.', + recipeSummary: 'Run the saved Glasshouse Drip recipe.', + runtimeReuseKey: 'sha256:canonical-graph-v1:dd5427ed763a352409689fbf23e57249d830e5ddf7c4ec23c34b4a219d1d9c47', + prompt: + 'Start from the supplied rainy glasshouse interior. One continuous three-second push forward at waist height along the central wet tile aisle, straight toward the closed glass doors. Let the green ferns on either side show small natural parallax while brickwork and roof beams stay rigid. During the move one drop falls from a fern to the wet tiles and forms a small ripple in the reflection. Keep the rain, original gray daylight, plant layout and camera axis. A soft close water tap briefly rises over the even sound of rain on glass. No cut and no hand-held movement.', + negativePrompt: '', + mediaSlots: [ + { + id: 'result', + label: 'Generated video', + kind: 'video', + role: 'output', + placeholder: 'Result pending', + }, + ], + example: { + mediaType: 'video', + status: 'unverified', + modelRevision: '47da56e2ad66ce4125a9922b4a8826bf407f9d0a', + lockedSeed: 42, + lockedSettings: { + width: 768, + height: 512, + steps: 30, + guidanceScale: 3, + strength: 0.8, + outputType: 'pil', + maxSequenceLength: 512, + pagScale: 3, + pagAdaptiveScale: 0, + dtype: 'bfloat16', + resourceMode: 'expert', + quantizationMode: 'none', + autoOffload: true, + offloadMode: 'model_cpu', + numFrames: 81, + fps: 24, + guidanceScale2: 0, + shift: 0, + conditioningScale: 1, + }, + expectedOutput: { + width: 768, + height: 512, + frames: 81, + durationSeconds: 3.375, + requiresAudio: true, + }, + runtimeEstimate: '173.40 seconds in the saved run', + retainedVideoPreview: { + width: 768, + height: 512, + frames: 81, + fps: 24, + mediaHash: 'sha256:decoded-video-framemd5:0202731e7b280ca08f3ca7254aa274ff882754b258bcb08b5a707abdd2c4e9e9', + decodedAudioHash: + 'sha256:decoded-audio-pcm-s16le-48000-stereo:063c9c43207ba134f653115cf18ea57610dba0239517d7962d4da31b7d3b183f', + }, + }, + }, + { + id: 'wan_animate_signal_through_the_rain', + label: 'Wan 2.2 Animate — Character animate: A Signal Through the Rain', + mode: 'character_animate', + modelType: 'WanAnimatePipeline', + intentGroup: 'video', + thumbnailVariant: 'video', + category: 'video_generation', + videoDelivery: 'native', + inputBindings: [ + { + id: 'source-image', + label: 'Source Image', + mediaType: 'image', + field: 'referenceImages', + origin: 'user', + requiredAt: 'workflow_start', + count: 1, + }, + { + id: 'face-motion', + label: 'Face Video', + mediaType: 'video', + field: 'faceVideo', + origin: 'user', + requiredAt: 'workflow_start', + count: 1, + }, + { + id: 'pose-motion', + label: 'Pose Video', + mediaType: 'video', + field: 'poseVideo', + origin: 'user', + requiredAt: 'workflow_start', + count: 1, + }, + ], + readinessPolicy: 'requires_input', + outputKinds: ['video'], + requiredBackendCapabilities: [ + 'modules.DiffusersRuntime.PipelineQuantizationConfigV2', + 'modules.DiffusersRuntime.DiffusersExecutionRecipe', + 'modules.Video.Load', + 'modules.Image.Load', + 'modules.Video.Export', + 'modules.DiffusersVideo.Generate', + 'modules.DiffusersVideo.LoadPipeline', + ], + modelArtifact: { + source: 'hub', + value: 'Wan-AI/Wan2.2-Animate-14B-Diffusers', + revision: '6f4df10861c758af86ac3c979aacc1bf5c03eff0', + }, + description: + 'Reproduce the reviewed A Signal Through the Rain example with the saved prompt, settings and model revision.', + recipeSummary: 'Run the saved A Signal Through the Rain recipe.', + runtimeReuseKey: 'sha256:canonical-graph-v1:916a843dde25e718457b5621fd1bfa9201300d322cf480133154b0722aa62209', + prompt: + 'A continuous waist-up portrait of the same orchid keeper in a charcoal rain jacket among blue orchids inside a rainy glasshouse. Midway through the shot he raises his right forearm on the left side of the frame until his open palm reaches shoulder height, holds the greeting for a brief beat, then lowers it back to his waist. His other hand stays at his waist. The same face, jacket, body posture, and flowers remain consistent. The camera stays at chest level on a tripod. Fine rain falls behind the subject. The hand and elbow follow the supplied pose guide throughout the single take.', + negativePrompt: '', + mediaSlots: [ + { + id: 'result', + label: 'Generated video', + kind: 'video', + role: 'output', + placeholder: 'Result pending', + }, + ], + example: { + mediaType: 'video', + status: 'unverified', + modelRevision: '6f4df10861c758af86ac3c979aacc1bf5c03eff0', + lockedSeed: 42, + lockedSettings: { + width: 768, + height: 512, + steps: 30, + guidanceScale: 3, + strength: 0.8, + outputType: 'pil', + maxSequenceLength: 512, + pagScale: 3, + pagAdaptiveScale: 0, + dtype: 'bfloat16', + resourceMode: 'expert', + quantizationMode: 'none', + autoOffload: true, + offloadMode: 'model_cpu', + numFrames: 81, + fps: 24, + guidanceScale2: 0, + shift: 3, + conditioningScale: 1, + }, + expectedOutput: { + width: 768, + height: 512, + frames: 81, + durationSeconds: 3.375, + }, + runtimeEstimate: '723.22 seconds in the saved run', + retainedVideoPreview: { + width: 768, + height: 512, + frames: 81, + fps: 24, + mediaHash: 'sha256:decoded-video-framemd5:635a3e8019bae9545c5e39e25d4500e1c3efd4ac622326f39f451d6e10929897', + }, + }, + }, + { + id: 'latte_water_folding_over_slate', + label: 'Latte — Text to video: Water Folding over Slate', + mode: 'text_to_video', + modelType: 'LattePipeline', + intentGroup: 'video', + thumbnailVariant: 'video', + category: 'video_generation', + videoDelivery: 'native', + readinessPolicy: 'runnable', + outputKinds: ['video'], + requiredBackendCapabilities: [ + 'modules.DiffusersRuntime.PipelineQuantizationConfigV2', + 'modules.DiffusersRuntime.DiffusersExecutionRecipe', + 'modules.Video.Export', + 'modules.DiffusersVideo.Generate', + 'modules.DiffusersVideo.LoadPipeline', + ], + modelArtifact: { + source: 'hub', + value: 'maxin-cn/Latte-1', + revision: '0653024365272f061fc44d1078134df22842b687', + }, + description: + 'Reproduce the reviewed Water Folding over Slate example with the saved prompt, settings and model revision.', + recipeSummary: 'Run the saved Water Folding over Slate recipe.', + runtimeReuseKey: 'sha256:canonical-graph-v1:602be3cfda32fd79e4700a8ee3b17bafdac7c0f8661ccc6dcdf516a418110461', + prompt: + 'Real-time close-up of white water rushing down a small dark slate ledge in a shaded forest stream. Fast, coherent ribbons of water curl and separate into droplets as they fall. Fresh foam streaks and small bubbles drift out of the bottom of frame. The rock remains steady and the camera is locked. One continuous tight shot, natural slate gray and white palette, bright highlights on moving water, clear individual drops, neutral exposure throughout.', + negativePrompt: '', + mediaSlots: [ + { + id: 'result', + label: 'Generated video', + kind: 'video', + role: 'output', + placeholder: 'Result pending', + }, + ], + example: { + mediaType: 'video', + status: 'unverified', + modelRevision: '0653024365272f061fc44d1078134df22842b687', + lockedSeed: 42, + lockedSettings: { + width: 512, + height: 512, + steps: 50, + guidanceScale: 7.5, + strength: 0.8, + outputType: 'pil', + maxSequenceLength: 120, + pagScale: 3, + pagAdaptiveScale: 0, + dtype: 'float16', + resourceMode: 'expert', + quantizationMode: 'none', + autoOffload: true, + offloadMode: 'sequential_cpu', + numFrames: 16, + fps: 8, + guidanceScale2: 0, + shift: 0, + conditioningScale: 1, + }, + expectedOutput: { + width: 512, + height: 512, + frames: 16, + durationSeconds: 2, + }, + runtimeEstimate: '108.61 seconds in the saved run', + retainedVideoPreview: { + width: 512, + height: 512, + frames: 16, + fps: 8, + mediaHash: 'sha256:decoded-video-framemd5:dfab2305306297c4afd517a72bd2487f527381fb4e28d68db0ebfdfce6a83a68', + }, + }, + }, + { + id: 'chroma_copper_medallion_outpaint', + label: 'Chroma1-HD Inpaint (Standard Diffusers) — Outpaint: Copper Medallion on an Extended Backdrop', + mode: 'outpaint', + modelType: 'ChromaInpaintPipeline', + intentGroup: 'edit_image', + thumbnailVariant: 'compareSlider', + category: 'outpaint', + inputBindings: [ + { + id: 'source-image', + label: 'Source Image', + mediaType: 'image', + field: 'referenceImages', + origin: 'user', + requiredAt: 'workflow_start', + count: 1, + }, + ], + readinessPolicy: 'requires_input', + outputKinds: ['image'], + requiredBackendCapabilities: [ + 'modules.DiffusersImage.Inpaint', + 'modules.DiffusersImage.LoadPipeline', + 'modules.DiffusersRuntime.PipelineQuantizationConfigV2', + 'modules.DiffusersRuntime.DiffusersExecutionRecipe', + 'modules.Image.Load', + 'modules.DiffusersImage.OutpaintCanvas', + 'modules.Image.Preview', + ], + modelArtifact: { + source: 'hub', + value: 'lodestones/Chroma1-HD', + revision: '0e0c60ece1e82b17cb7f77342d765ba5024c40c0', + }, + description: + 'Reproduce the reviewed Copper Medallion on an Extended Backdrop example with the saved prompt, settings and model revision.', + recipeSummary: 'Run the saved Copper Medallion on an Extended Backdrop recipe.', + runtimeReuseKey: 'sha256:canonical-graph-v1:6b4352e7c6d634521c5ffef10a8d4f9d6ccdcb8e3c2a1c58f9a629afc551cfed', + prompt: + 'Extend the pale warm ivory paper surface to the left and right around the centered copper medallion. Continue the soft vertical lighting, fine smooth paper texture and uninterrupted empty negative space across the new bands. The round medallion and its short shadow stay exactly in the center. A quiet product-study composition with one copper disk and a continuous unmarked ivory backdrop.', + negativePrompt: '', + mediaSlots: [ + { + id: 'before', + label: 'Source image', + kind: 'comparison_before', + role: 'before', + placeholder: 'Source pending', + }, + { + id: 'after', + label: 'Generated image', + kind: 'comparison_after', + role: 'after', + placeholder: 'Preview pending', + }, + ], + example: { + mediaType: 'image', + status: 'unverified', + modelRevision: '0e0c60ece1e82b17cb7f77342d765ba5024c40c0', + lockedSeed: 42, + lockedSettings: { + width: 1024, + height: 768, + steps: 32, + guidanceScale: 7, + strength: 1, + outputType: 'pil', + maxSequenceLength: 512, + pagScale: 3, + pagAdaptiveScale: 0, + dtype: 'bfloat16', + resourceMode: 'expert', + quantizationMode: 'none', + autoOffload: true, + offloadMode: 'model_cpu', + outpaintLeft: 96, + outpaintRight: 96, + outpaintTop: 0, + outpaintBottom: 0, + outpaintOverlap: 48, + outpaintFeather: 16, + outpaintFillColor: 'black', + }, + expectedOutput: { + width: 1024, + height: 768, + }, + runtimeEstimate: '40.44 seconds in the saved run', + }, + }, + { + id: 'ltx2_enamel_teapot_window_light', + label: 'LTX-2 Video + Audio — Reference to video: Enamel Teapot in Window Light', + mode: 'reference_to_video', + modelType: 'LTX2ConditionPipeline', + intentGroup: 'video', + thumbnailVariant: 'video', + category: 'video_generation', + videoDelivery: 'native', + inputBindings: [ + { + id: 'source-image', + label: 'Source Image', + mediaType: 'image', + field: 'referenceImages', + origin: 'user', + requiredAt: 'workflow_start', + count: 1, + }, + ], + readinessPolicy: 'requires_input', + outputKinds: ['video'], + requiredBackendCapabilities: [ + 'modules.DiffusersRuntime.PipelineQuantizationConfigV2', + 'modules.DiffusersRuntime.DiffusersExecutionRecipe', + 'modules.Image.Load', + 'modules.Video.ExportWithAudio', + 'modules.DiffusersVideo.GenerateVideoAudio', + 'modules.DiffusersVideo.LoadPipeline', + ], + modelArtifact: { + source: 'hub', + value: 'Lightricks/LTX-2', + revision: '47da56e2ad66ce4125a9922b4a8826bf407f9d0a', + }, + description: + 'Reproduce the reviewed Enamel Teapot in Window Light example with the saved prompt, settings and model revision.', + recipeSummary: 'Run the saved Enamel Teapot in Window Light recipe.', + runtimeReuseKey: 'sha256:canonical-graph-v1:88e46ced175df74ba7e8788d085e7543203a02f3518f6fc0296f370f7dcf1a40', + prompt: + 'A continuous three-second product shot of the red enamel teapot in the supplied reference. Preserve its exact round body, raised handle, fitted lid, and curved spout. Set it on folded neutral woven linen near a window. Orbit very slowly from the spout side toward a front three-quarter view, level at the shoulder of the teapot with soft parallax against a fixed pale wall. Thin steam rises steadily around the lid. Hold the teapot and table perfectly still. Use quiet indoor room tone and one soft metallic tick from the enamel, without music or speech.', + negativePrompt: '', + mediaSlots: [ + { + id: 'result', + label: 'Generated video', + kind: 'video', + role: 'output', + placeholder: 'Result pending', + }, + ], + example: { + mediaType: 'video', + status: 'unverified', + modelRevision: '47da56e2ad66ce4125a9922b4a8826bf407f9d0a', + lockedSeed: 42, + lockedSettings: { + width: 768, + height: 512, + steps: 30, + guidanceScale: 3, + strength: 0.8, + outputType: 'pil', + maxSequenceLength: 512, + pagScale: 3, + pagAdaptiveScale: 0, + dtype: 'bfloat16', + resourceMode: 'expert', + quantizationMode: 'none', + autoOffload: true, + offloadMode: 'model_cpu', + numFrames: 81, + fps: 24, + guidanceScale2: 0, + shift: 0, + conditioningScale: 1, + }, + expectedOutput: { + width: 768, + height: 512, + frames: 81, + durationSeconds: 3.375, + requiresAudio: true, + }, + runtimeEstimate: '154.35 seconds in the saved run', + retainedVideoPreview: { + width: 768, + height: 512, + frames: 81, + fps: 24, + mediaHash: 'sha256:decoded-video-framemd5:3bb1e7671bc3f2987747293caf6d5be3df1db21d63e882851791ccc42586e935', + decodedAudioHash: + 'sha256:decoded-audio-pcm-s16le-48000-stereo:6fd9511a2f7e7f00e79a613e2b152805a8c9fe0457a014237225cd05cd12d693', + }, + }, + }, + { + id: 'ltx2_moss_and_basalt', + label: 'LTX-2 Video + Audio — Video to video: Water over Moss and Basalt', + mode: 'video_to_video', + modelType: 'LTX2ConditionPipeline', + intentGroup: 'video', + thumbnailVariant: 'video', + category: 'video_generation', + videoDelivery: 'native', + inputBindings: [ + { + id: 'source-video', + label: 'Source Video', + mediaType: 'video', + field: 'sourceVideo', + origin: 'user', + requiredAt: 'workflow_start', + count: 1, + }, + ], + readinessPolicy: 'requires_input', + outputKinds: ['video'], + requiredBackendCapabilities: [ + 'modules.DiffusersRuntime.PipelineQuantizationConfigV2', + 'modules.DiffusersRuntime.DiffusersExecutionRecipe', + 'modules.Video.Load', + 'modules.VideoConditioning.Normalize', + 'modules.Video.ExportWithAudio', + 'modules.DiffusersVideo.GenerateVideoAudio', + 'modules.DiffusersVideo.LoadPipeline', + ], + modelArtifact: { + source: 'hub', + value: 'Lightricks/LTX-2', + revision: '47da56e2ad66ce4125a9922b4a8826bf407f9d0a', + }, + description: + 'Reproduce the reviewed Water over Moss and Basalt example with the saved prompt, settings and model revision.', + recipeSummary: 'Run the saved Water over Moss and Basalt recipe.', + runtimeReuseKey: 'sha256:canonical-graph-v1:b5dfe89e55b083b29e1afa57472019ae9b3a123628162b94d3659c58f8d53af8', + prompt: + 'A low, fixed camera beside the same narrow mountain creek, clear water rushing down rounded black basalt steps between rocks covered with spring-green moss. Preserve the course of the creek, the rock positions, the moss, and the framing from the source video. The white stream of water tumbles continuously toward the camera, breaking into small droplets on the rocks. Subtle cool diffuse forest light. An intimate, clearly audible natural stereo recording of running water with a steady nearby splash and gentle uneven burbles as it hits the stone. The water sound continues from the start to the end in time with the visible flow. No voices or music.', + negativePrompt: '', + mediaSlots: [ + { + id: 'before', + label: 'Source video', + kind: 'comparison_before', + role: 'before', + placeholder: 'Source pending', + }, + { + id: 'after', + label: 'Generated video', + kind: 'comparison_after', + role: 'after', + placeholder: 'Preview pending', + }, + ], + example: { + mediaType: 'video', + status: 'unverified', + modelRevision: '47da56e2ad66ce4125a9922b4a8826bf407f9d0a', + lockedSeed: 42, + lockedSettings: { + width: 768, + height: 512, + steps: 30, + guidanceScale: 3, + strength: 0.6, + outputType: 'pil', + maxSequenceLength: 512, + pagScale: 3, + pagAdaptiveScale: 0, + dtype: 'bfloat16', + resourceMode: 'expert', + quantizationMode: 'none', + autoOffload: true, + offloadMode: 'model_cpu', + numFrames: 81, + fps: 24, + guidanceScale2: 0, + shift: 0, + conditioningScale: 1, + }, + expectedOutput: { + width: 768, + height: 512, + frames: 81, + durationSeconds: 3.375, + requiresAudio: true, + }, + runtimeEstimate: '187.02 seconds in the saved run', + retainedVideoPreview: { + width: 768, + height: 512, + frames: 81, + fps: 24, + mediaHash: 'sha256:decoded-video-framemd5:0a9383604f7a30fb9accc55d3babae89a67ecedb807d36586ec14f8a5dce054e', + decodedAudioHash: + 'sha256:decoded-audio-pcm-s16le-48000-stereo:dd43f3167c8123ee97751684f6e7d449e9267efd942742c509a51de3cbd25d7f', + }, + }, + }, + { + id: 'sdxl_pag_lighthouse_in_graphite', + label: 'Stable Diffusion XL PAG — Edit image: Lighthouse in Graphite', + mode: 'edit_image', + modelType: 'StableDiffusionXLPAGPipeline', + intentGroup: 'edit_image', + thumbnailVariant: 'compareSlider', + category: 'edit', + inputBindings: [ + { + id: 'source-image', + label: 'Source Image', + mediaType: 'image', + field: 'referenceImages', + origin: 'user', + requiredAt: 'workflow_start', + count: 1, + }, + ], + readinessPolicy: 'requires_input', + outputKinds: ['image'], + requiredBackendCapabilities: [ + 'modules.DiffusersImage.Edit', + 'modules.DiffusersImage.LoadPipeline', + 'modules.DiffusersRuntime.PipelineQuantizationConfigV2', + 'modules.DiffusersRuntime.DiffusersExecutionRecipe', + 'modules.Image.Load', + 'modules.Image.Preview', + ], + modelArtifact: { + source: 'hub', + value: 'stabilityai/stable-diffusion-xl-base-1.0', + revision: '462165984030d82259a11f4367a4eed129e94a7b', + }, + description: + 'Reproduce the reviewed Lighthouse in Graphite example with the saved prompt, settings and model revision.', + recipeSummary: 'Run the saved Lighthouse in Graphite recipe.', + runtimeReuseKey: 'sha256:canonical-graph-v1:44c2801331dfd7f8d54f9f8dd240bc901d7d4e855d8244accbdf111b04696361', + prompt: + 'Black graphite pencil drawing on warm white drawing paper. A tall lighthouse rises from a rocky coastal headland at the upper right. A narrow walking path leads through long windblown grass toward it. Ocean and distant horizon fill the left. Fine pencil crosshatching in the grass, strong charcoal strokes on the dark rock face, and white paper in the open sky. Restrained monochrome sketch, quiet daylight.', + negativePrompt: '', + mediaSlots: [ + { + id: 'before', + label: 'Source image', + kind: 'comparison_before', + role: 'before', + placeholder: 'Source pending', + }, + { + id: 'after', + label: 'Generated image', + kind: 'comparison_after', + role: 'after', + placeholder: 'Preview pending', + }, + ], + example: { + mediaType: 'image', + status: 'unverified', + modelRevision: '462165984030d82259a11f4367a4eed129e94a7b', + lockedSeed: 42, + lockedSettings: { + width: 1024, + height: 1024, + steps: 50, + guidanceScale: 5, + strength: 0.85, + outputType: 'pil', + maxSequenceLength: 512, + pagScale: 3, + pagAdaptiveScale: 0, + dtype: 'float16', + resourceMode: 'expert', + quantizationMode: 'none', + autoOffload: true, + offloadMode: 'model_cpu', + }, + expectedOutput: { + width: 1024, + height: 1024, + }, + runtimeEstimate: '35.44 seconds in the saved run', + }, + }, + { + id: 'flux_dev_forest_green_teapot', + label: 'FLUX.1-dev — Edit image: Forest Green Teapot on Linen', + mode: 'edit_image', + modelType: 'FluxDevPipeline', + intentGroup: 'edit_image', + thumbnailVariant: 'compareSlider', + category: 'edit', + inputBindings: [ + { + id: 'source-image', + label: 'Source Image', + mediaType: 'image', + field: 'referenceImages', + origin: 'user', + requiredAt: 'workflow_start', + count: 1, + }, + ], + readinessPolicy: 'requires_input', + outputKinds: ['image'], + requiredBackendCapabilities: [ + 'modules.DiffusersImage.Edit', + 'modules.DiffusersImage.LoadPipeline', + 'modules.DiffusersRuntime.PipelineQuantizationConfigV2', + 'modules.DiffusersRuntime.DiffusersExecutionRecipe', + 'modules.Image.Load', + 'modules.Image.Preview', + ], + modelArtifact: { + source: 'hub', + value: 'black-forest-labs/FLUX.1-dev', + revision: '3de623fc3c33e44ffbe2bad470d0f45bccf2eb21', + }, + description: + 'Reproduce the reviewed Forest Green Teapot on Linen example with the saved prompt, settings and model revision.', + recipeSummary: 'Run the saved Forest Green Teapot on Linen recipe.', + runtimeReuseKey: 'sha256:canonical-graph-v1:234b1d91dd85fbdb63119e93334c45509d81ec63cf35ff7c2917989a02facfb7', + prompt: + 'Deep forest green glossy enamel on the entire teapot, including the lid, spout and handle. Product photo from the same angle on folded gray linen. Preserve the exact teapot shape, white wall, reflections and shadows.', + negativePrompt: '', + mediaSlots: [ + { + id: 'before', + label: 'Source image', + kind: 'comparison_before', + role: 'before', + placeholder: 'Source pending', + }, + { + id: 'after', + label: 'Generated image', + kind: 'comparison_after', + role: 'after', + placeholder: 'Preview pending', + }, + ], + example: { + mediaType: 'image', + status: 'unverified', + modelRevision: '3de623fc3c33e44ffbe2bad470d0f45bccf2eb21', + lockedSeed: 42, + lockedSettings: { + width: 1024, + height: 1024, + steps: 28, + guidanceScale: 4, + strength: 0.92, + outputType: 'pil', + maxSequenceLength: 512, + pagScale: 3, + pagAdaptiveScale: 0, + dtype: 'bfloat16', + resourceMode: 'expert', + quantizationMode: 'none', + autoOffload: true, + offloadMode: 'model_cpu', + }, + expectedOutput: { + width: 1024, + height: 1024, + }, + runtimeEstimate: '737.79 seconds in the saved run', + }, + }, + { + id: 'animatelcm_sunlit_surf', + label: 'AnimateLCM SD1.5 — Text to video: Sunlit Surf on a Quiet Beach', + mode: 'text_to_video', + modelType: 'AnimateLCMPipeline', + intentGroup: 'video', + thumbnailVariant: 'video', + category: 'video_generation', + videoDelivery: 'native', + readinessPolicy: 'runnable', + outputKinds: ['video'], + requiredBackendCapabilities: [ + 'modules.DiffusersRuntime.PipelineQuantizationConfigV2', + 'modules.DiffusersRuntime.DiffusersExecutionRecipe', + 'modules.Video.Export', + 'modules.DiffusersVideo.Generate', + 'modules.DiffusersVideo.LoadPipeline', + ], + modelArtifact: { + source: 'hub', + value: 'stable-diffusion-v1-5/stable-diffusion-v1-5', + revision: '451f4fe16113bff5a5d2269ed5ad43b0592e9a14', + }, + description: + 'Reproduce the reviewed Sunlit Surf on a Quiet Beach example with the saved prompt, settings and model revision.', + recipeSummary: 'Run the saved Sunlit Surf on a Quiet Beach recipe.', + runtimeReuseKey: 'sha256:canonical-graph-v1:1ca2a40982413d74048c1a056d99e663a004ffca73f8982ba51b12e3821de692', + prompt: + 'Wide stationary video shot looking down at a sunlit beach. Soft turquoise ocean across the upper half and smooth golden wet sand across the lower half. A single line of bright white sea foam advances diagonally across the sand. The water thins and draws back, leaving a glistening reflection on the beach. Natural real-time wave motion, small clear ripples in shallow water, consistent afternoon sunlight, fixed camera.', + negativePrompt: '', + mediaSlots: [ + { + id: 'result', + label: 'Generated video', + kind: 'video', + role: 'output', + placeholder: 'Result pending', + }, + ], + example: { + mediaType: 'video', + status: 'unverified', + modelRevision: '451f4fe16113bff5a5d2269ed5ad43b0592e9a14', + lockedSeed: 42, + lockedSettings: { + width: 512, + height: 512, + steps: 6, + guidanceScale: 1.5, + strength: 0.8, + outputType: 'pil', + maxSequenceLength: 77, + pagScale: 3, + pagAdaptiveScale: 0, + dtype: 'float16', + resourceMode: 'expert', + quantizationMode: 'none', + autoOffload: true, + offloadMode: 'model_cpu', + numFrames: 16, + fps: 8, + guidanceScale2: 0, + shift: 0, + conditioningScale: 1, + }, + expectedOutput: { + width: 512, + height: 512, + frames: 16, + durationSeconds: 2, + }, + runtimeEstimate: '33.23 seconds in the saved run', + retainedVideoPreview: { + width: 512, + height: 512, + frames: 16, + fps: 8, + mediaHash: 'sha256:decoded-video-framemd5:e0232a96ea0212443e496a823b3184de12670389914109a87bf67f52b3de0a5e', + }, + }, + }, + { + id: 'flux_kontext_bookshop_clear_glass', + label: 'FLUX.1 Kontext Inpaint (Standard Diffusers) — Inpaint: After Hours at the Bookshop', + mode: 'inpaint', + modelType: 'FluxKontextInpaintPipeline', + intentGroup: 'edit_image', + thumbnailVariant: 'compareSlider', + category: 'inpaint', + inputBindings: [ + { + id: 'source-image', + label: 'Source Image', + mediaType: 'image', + field: 'referenceImages', + origin: 'user', + requiredAt: 'workflow_start', + count: 1, + }, + { + id: 'mask-image', + label: 'Mask Image', + mediaType: 'image', + field: 'maskImage', + origin: 'user', + requiredAt: 'workflow_start', + count: 1, + }, + ], + readinessPolicy: 'requires_input', + outputKinds: ['image'], + requiredBackendCapabilities: [ + 'modules.DiffusersImage.Inpaint', + 'modules.DiffusersImage.LoadPipeline', + 'modules.DiffusersRuntime.PipelineQuantizationConfigV2', + 'modules.DiffusersRuntime.DiffusersExecutionRecipe', + 'modules.Image.Load', + 'modules.Image.Preview', + ], + modelArtifact: { + source: 'hub', + value: 'black-forest-labs/FLUX.1-Kontext-dev', + revision: '24e9dedc4ef646698dc8eb4e18ae2cec3c9fea0d', + }, + description: + 'Reproduce the reviewed After Hours at the Bookshop example with the saved prompt, settings and model revision.', + recipeSummary: 'Run the saved After Hours at the Bookshop recipe.', + runtimeReuseKey: 'sha256:canonical-graph-v1:a9cc4b1c398fd96d027e5f13d281eedc73357ae004f2d6c46e8ecac4dd401b5b', + prompt: + 'Clear bare bookshop glass over uninterrupted amber-lit shelves and book spines. Remove the white lettering and opening hours completely. Preserve the cabinet, wooden frame, lamp, wet alley, and bicycle.', + negativePrompt: '', + mediaSlots: [ + { + id: 'before', + label: 'Source image', + kind: 'comparison_before', + role: 'before', + placeholder: 'Source pending', + }, + { + id: 'after', + label: 'Generated image', + kind: 'comparison_after', + role: 'after', + placeholder: 'Preview pending', + }, + ], + example: { + mediaType: 'image', + status: 'unverified', + modelRevision: '24e9dedc4ef646698dc8eb4e18ae2cec3c9fea0d', + lockedSeed: 42, + lockedSettings: { + width: 1024, + height: 1024, + steps: 24, + guidanceScale: 3.5, + strength: 0.96, + outputType: 'pil', + maxSequenceLength: 512, + pagScale: 3, + pagAdaptiveScale: 0, + dtype: 'bfloat16', + resourceMode: 'expert', + quantizationMode: 'none', + autoOffload: true, + offloadMode: 'model_cpu', + }, + expectedOutput: { + width: 1024, + height: 1024, + }, + runtimeEstimate: '2621.97 seconds in the saved run', + }, + }, + { + id: 'sdxl_pag_two_tier_cobalt_glass', + label: 'Stable Diffusion XL PAG — Control edit image: Two-Tier Cobalt Glass', + mode: 'control_edit_image', + modelType: 'StableDiffusionXLPAGPipeline', + intentGroup: 'reference_control', + thumbnailVariant: 'compareSlider', + category: 'edit', + inputBindings: [ + { + id: 'source-image', + label: 'Source Image', + mediaType: 'image', + field: 'referenceImages', + origin: 'user', + requiredAt: 'workflow_start', + count: 1, + }, + { + id: 'control-image', + label: 'Control Guide', + mediaType: 'image', + field: 'controlImage', + origin: 'user', + requiredAt: 'workflow_start', + count: 1, + }, + ], + readinessPolicy: 'requires_input', + outputKinds: ['image'], + requiredBackendCapabilities: [ + 'modules.ImageFilters.Canny', + 'modules.DiffusersImage.ControlEdit', + 'modules.DiffusersImage.LoadPipeline', + 'modules.DiffusersRuntime.PipelineQuantizationConfigV2', + 'modules.DiffusersRuntime.DiffusersExecutionRecipe', + 'modules.Image.Load', + 'modules.Image.Preview', + ], + modelArtifact: { + source: 'hub', + value: 'stabilityai/stable-diffusion-xl-base-1.0', + revision: '462165984030d82259a11f4367a4eed129e94a7b', + }, + description: + 'Reproduce the reviewed Two-Tier Cobalt Glass example with the saved prompt, settings and model revision.', + recipeSummary: 'Run the saved Two-Tier Cobalt Glass recipe.', + runtimeReuseKey: 'sha256:canonical-graph-v1:42c0dca0bd5a735551bed85d826240aecd5691b1a0ac0762470363013b07d1a6', + prompt: + 'A product photograph of a single translucent cobalt-blue glass sculpture made of two fused square tiers. A wide squat lower plinth supports a distinctly smaller square upper tier, centered on top. The stepped silhouette has polished hard corners and rich blue refraction. Place it on a plain pale plaster surface with soft daylight and a short clear shadow. Match the two-tier proportions in the structural guide.', + negativePrompt: '', + mediaSlots: [ + { + id: 'before', + label: 'Source image', + kind: 'comparison_before', + role: 'before', + placeholder: 'Source pending', + }, + { + id: 'after', + label: 'Generated image', + kind: 'comparison_after', + role: 'after', + placeholder: 'Preview pending', + }, + ], + example: { + mediaType: 'image', + status: 'unverified', + modelRevision: '462165984030d82259a11f4367a4eed129e94a7b', + lockedSeed: 42, + lockedSettings: { + width: 1024, + height: 1024, + steps: 50, + guidanceScale: 6, + strength: 1, + outputType: 'pil', + maxSequenceLength: 512, + pagScale: 3, + pagAdaptiveScale: 0, + dtype: 'float16', + resourceMode: 'expert', + quantizationMode: 'none', + autoOffload: true, + offloadMode: 'model_cpu', + conditioningScale: 0.85, + }, + expectedOutput: { + width: 1024, + height: 1024, + }, + runtimeEstimate: '255.42 seconds in the saved run', + }, + }, ]; diff --git a/src/studio/templateAssetSource.json b/src/studio/templateAssetSource.json index d81cab4a..ae9969ae 100644 --- a/src/studio/templateAssetSource.json +++ b/src/studio/templateAssetSource.json @@ -4,11 +4,11 @@ "localBasePath": "/template-gallery", "repoType": "dataset", "repoId": "sourav-das/modiff-template-gallery", - "revision": "ecb98164fd3b1e490a0b44b4a8cbb36db4b07729", + "revision": "0808fea9fb558612032425a9bee2ad449cb27e75", "pathPrefix": "template-gallery", "assetManifestPath": "_modiff/template-assets.v1.json", - "assetSetId": "sha256:canonical-json:7a2f56d1e4a3a458722f89a15c5771669cd23909c0acd6f7a3bea2aaec2e51a8", - "completeAssetSetId": "sha256:canonical-json:e0bc710e59c6913a8e011a9bf904a4ea0dbe484a5b1ba87b0d5b2eddf5e73fed", + "assetSetId": "sha256:canonical-json:684676f2892e1471454b0f49d8ccd7d7ea321e36f198946f2a3c10d6fdf826da", + "completeAssetSetId": "sha256:canonical-json:9cc2b2a8c2a8a6e7b667dacf0b1916d3831ef00d5f1cfdad7bb40f0dec1ff6c0", "unavailableAssets": [ "template-gallery/ace_step_chinese_new_year_lora.card-poster.png", "template-gallery/ace_step_chinese_new_year_lora.wav", diff --git a/src/studio/types.ts b/src/studio/types.ts index 88d5b1cd..12c2bb75 100644 --- a/src/studio/types.ts +++ b/src/studio/types.ts @@ -404,6 +404,20 @@ export type StudioTemplateId = | 'wan_vace_reference_motion' | 'wan_vace_grayscale_control' | 'wan_animate_glasshouse_keeper' + | 'animatediff_pag_snowmelt_over_river_stones' + | 'ltx2_surf_below_the_breakwater' + | 'ltx2_kiln_at_first_light' + | 'ltx2_glasshouse_drip' + | 'wan_animate_signal_through_the_rain' + | 'latte_water_folding_over_slate' + | 'chroma_copper_medallion_outpaint' + | 'ltx2_enamel_teapot_window_light' + | 'ltx2_moss_and_basalt' + | 'sdxl_pag_lighthouse_in_graphite' + | 'flux_dev_forest_green_teapot' + | 'animatelcm_sunlit_surf' + | 'flux_kontext_bookshop_clear_glass' + | 'sdxl_pag_two_tier_cobalt_glass' | 'ace_step_text_to_audio' | 'minimax_music3_chamber_pop' | 'ace_step_audio_variation' From d7a389da1016c7913f98038aea9c41d4f4528ae2 Mon Sep 17 00:00:00 2001 From: Sourav Das Date: Wed, 25 Nov 2026 21:29:22 +0530 Subject: [PATCH 389/440] Publish Amber and Headland with their exact video stages --- .../retained-gallery-approved-batch.v1.json | 26 + ...etained-gallery-authoring-archives.v1.json | 10 + ...etained-gallery-batch-recipe-locks.v1.json | 32 + config/template-asset-rights.v1.json | 1195 ++++++++--------- config/template-assets.v1.json | 140 +- docs/workflow-authoring-ux.md | 6 + public/template-gallery/manifest.json | 68 + scripts/retained-gallery-templates.test.mjs | 103 +- scripts/template-operation-fixtures.py | 7 +- scripts/template-stage-coverage.test.mjs | 13 +- src/studio/retainedGalleryApprovedBatch.ts | 250 ++++ src/studio/templateAssetSource.json | 6 +- src/studio/templateExactness.ts | 4 +- src/studio/templateOperationWorkflow.ts | 28 + src/studio/templateWorkflow.ts | 24 + src/studio/types.ts | 19 +- src/utils/e2eHooks.ts | 7 +- 17 files changed, 1297 insertions(+), 641 deletions(-) diff --git a/config/retained-gallery-approved-batch.v1.json b/config/retained-gallery-approved-batch.v1.json index caf6a03a..9a116a58 100644 --- a/config/retained-gallery-approved-batch.v1.json +++ b/config/retained-gallery-approved-batch.v1.json @@ -645,6 +645,19 @@ "capturedAt": "2026-11-24T22:39:17.259Z", "outputExtension": "wav" }, + "ltx_long_wind_and_tide_at_the_headland": { + "associationSha256": "c43060ec8058eb209719668f1cd942b406882d7e6a90c7577bf46b5ce79e1ddd", + "backendSourceFingerprint": "sha256:backend-source-v1:b29a5b0d317aaa781ae2a5205b46b518eea5a3d68a214eb0968dba4ac0660af7", + "backendContractFingerprint": "sha256:backend-contract-v1:d68ff3c7d7b2d190e68d6f148834ae971638c23a9d31086a3848874658f37da2", + "templateRevisionHash": "73e9ef351cbe53f541789d49ac53118ad61dbc234b40f1c516bd982f9e621153", + "capturedAt": "2026-11-25T11:16:56.343Z", + "outputExtension": "mp4", + "primaryModelRepo": "Lightricks/LTX-Video-0.9.8-13B-distilled", + "outputSize": { + "width": 768, + "height": 512 + } + }, "ltx2_enamel_teapot_window_light": { "associationSha256": "e7b9031dbffc495a1c803a1f05ba565dfa0e3a69a01f893f8641743dfe4641ca", "backendSourceFingerprint": "sha256:backend-source-v1:b29a5b0d317aaa781ae2a5205b46b518eea5a3d68a214eb0968dba4ac0660af7", @@ -1472,6 +1485,19 @@ "height": 704 } }, + "wan_vace_amber_glass_stabilized": { + "associationSha256": "e718c4bcb80657d3a22d2c6b53f568b216ba73cf51e51e6971cd248107290584", + "backendSourceFingerprint": "sha256:backend-source-v1:438519cbac050bb30e69d86506f4510f260d790899896038d9707a5edd488e95", + "backendContractFingerprint": "sha256:backend-contract-v1:5a281b9ce038d5cd332f93df5f1a29c485cf04edd0b8b809b2921217daeb7010", + "templateRevisionHash": "0a03ac711cd90be44c4f79f9d39ce3afa4e0cad264bdfc24294d625ce551181d", + "capturedAt": "2026-11-17T04:47:18.627Z", + "outputExtension": "mp4", + "primaryModelRepo": "Wan-AI/Wan2.1-VACE-1.3B-diffusers", + "outputSize": { + "width": 1664, + "height": 960 + } + }, "wan_vace_amber_rings_after_rain": { "associationSha256": "0c54ef3a1f646bad294799d587cb2f1e0dcd9d0bcba7be1aeab4794bf9373b3d", "backendSourceFingerprint": "sha256:backend-source-v1:b29a5b0d317aaa781ae2a5205b46b518eea5a3d68a214eb0968dba4ac0660af7", diff --git a/config/retained-gallery-authoring-archives.v1.json b/config/retained-gallery-authoring-archives.v1.json index 5b57723f..a14c5f1c 100644 --- a/config/retained-gallery-authoring-archives.v1.json +++ b/config/retained-gallery-authoring-archives.v1.json @@ -254,6 +254,11 @@ "bytes": 4704, "sha256": "a5e8eb4646ad66a06aab17db27872df48e1ebfc36a13287698f390bb228bbf26" }, + "LTXI2VLongMultiPromptPipeline:image_to_video": { + "descriptorSha256": "931a643453b17f494211e7a1663a7d1ea65444b8c5e92d7eb6f3c0b46412fafa", + "bytes": 5911, + "sha256": "b400e1aff4867503d189098258113dd692f02b003f4240912d5ea50a650f719d" + }, "Lumina2Pipeline:text_to_image": { "descriptorSha256": "68ec9070dfda6f4bcf5990d404e3032b9c9d0add8965753e0a162bfdd67c09f7", "bytes": 4071, @@ -524,6 +529,11 @@ "bytes": 4991, "sha256": "c91ec7e55964e72702d69979edf84e8714c8e5acb3adda5a6c6bccfce14db5db" }, + "WanVACEPipeline:video_inpaint": { + "descriptorSha256": "d5451bccf12b116e53dfb6bb685d4e5cc82d5f949eee3a7feb55bd70921d2f7d", + "bytes": 6144, + "sha256": "6a007c214d778f210e7e097a36c8afd1de585716920c3136a74bef37dfb4ea37" + }, "ZImageInpaintPipeline:inpaint": { "descriptorSha256": "00f04c60e1fc37087db0c90144a1b5c27b1e211e88b1ef8ec567c0ff3eb9853c", "bytes": 5066, diff --git a/config/retained-gallery-batch-recipe-locks.v1.json b/config/retained-gallery-batch-recipe-locks.v1.json index e30bc222..f1e69810 100644 --- a/config/retained-gallery-batch-recipe-locks.v1.json +++ b/config/retained-gallery-batch-recipe-locks.v1.json @@ -1569,5 +1569,37 @@ "inputSha256": "ff30b36f685b657db6de0cb59dff37601e147123ba19b9c42a32fc1060bd323e", "inputLocatorSha256": "b966dd6c256b44b89c050faba78dd69ca11d01c3fa49897ca9f03a61dc3df64c", "guideSha256": "64e81c4250408ca9a2ffc11e2987413096ae65674c2935a0417a351a50bb3ba4" + }, + "wan_vace_amber_glass_stabilized": { + "workflowId": "WanVACEPipeline:video_inpaint", + "sourceTaskTemplateId": "wan_vace_masked_object_replace", + "retainedGraphHash": "sha256:canonical-graph-v1:5b7ac5d2442e6c92e28ee9bff7e02847c3de46dc2570e5d7eb779583f186fc0c", + "originalReceiptSha256": "d5451bccf12b116e53dfb6bb685d4e5cc82d5f949eee3a7feb55bd70921d2f7d", + "reviewedTemplateSha256": "0a03ac711cd90be44c4f79f9d39ce3afa4e0cad264bdfc24294d625ce551181d", + "reviewedCatalogLock": { + "templateLockHash": "tpl_5b0b9cdb", + "galleryTemplateLockHash": "tpl_6035cabd", + "promptSettingsHash": "ps_1cd79e28" + }, + "promptSha256": "79656edb849220336b96beeec58d17955f7f1f9d8cc7113a5c0387a401c79bbe", + "inputSha256": "da6a0abe90bfc8c4efcb4a63201a6db839c944416cef49d452b629fbb86c3ec0", + "inputLocatorSha256": "ffaaf8cd52d49e8d2cb2f7841f95af434b2e0db1cb320ed9ddda6b5bc83e6874", + "maskSha256": "c8eefe9665e6ba8965e7d48c5e6116f2e3ba230ac35390efb834140c5d4cdf8b", + "referenceImageSha256": "43a36ae8d33da045a6ad1321195cd163ce3188e1d119008860386afacd21dbc2" + }, + "ltx_long_wind_and_tide_at_the_headland": { + "workflowId": "LTXI2VLongMultiPromptPipeline:image_to_video", + "sourceTaskTemplateId": "task-template:ltx-long:image-to-video:v1", + "retainedGraphHash": "sha256:canonical-graph-v1:cdee10882c28fd4417274cbcd16101f9b7a2d144cf8ab828ab261ff6b660e673", + "originalReceiptSha256": "931a643453b17f494211e7a1663a7d1ea65444b8c5e92d7eb6f3c0b46412fafa", + "reviewedTemplateSha256": "73e9ef351cbe53f541789d49ac53118ad61dbc234b40f1c516bd982f9e621153", + "reviewedCatalogLock": { + "templateLockHash": "tpl_c88d362b", + "galleryTemplateLockHash": "tpl_3bb28fd4", + "promptSettingsHash": "ps_75d6a3e5" + }, + "promptSha256": "46826d4c16c0e700fd7f24ce5eb4c04af3c69ea290180244bcd062c3c6a46d79", + "inputSha256": "51624f59295a77119bf336a63bfc7731d33d6612bc44b15495bddabdfae3ef51", + "inputLocatorSha256": "ff67721141957f1b8ee5881a9036cf19512f0dfe8e068e682da35a39060121ad" } } diff --git a/config/template-asset-rights.v1.json b/config/template-asset-rights.v1.json index ff429912..b46786ae 100644 --- a/config/template-asset-rights.v1.json +++ b/config/template-asset-rights.v1.json @@ -1,6 +1,6 @@ { "schemaVersion": 1, - "assetSetId": "sha256:canonical-json:9cc2b2a8c2a8a6e7b667dacf0b1916d3831ef00d5f1cfdad7bb40f0dec1ff6c0", + "assetSetId": "sha256:canonical-json:8ee20b6e168398e406a81e3eb9b9187741c405571af52f2454956c4e9f500bcb", "records": [ { "path": "template-gallery/ace_step_audio_continuation.wav", @@ -17,9 +17,7 @@ ], "aiGenerated": true, "humanLikenessConsent": "synthetic", - "marks": [ - "MoDiff project name in the project-authored lyrics" - ], + "marks": ["MoDiff project name in the project-authored lyrics"], "requiredAttribution": [], "assetLicense": "Apache-2.0", "reviewedBy": "SOURAV DAS", @@ -139,9 +137,7 @@ ], "aiGenerated": true, "humanLikenessConsent": "synthetic", - "marks": [ - "Singer-style and training-song rights require upstream confirmation" - ], + "marks": ["Singer-style and training-song rights require upstream confirmation"], "requiredAttribution": [], "assetLicense": "upstream-terms-only", "reviewedBy": null, @@ -164,9 +160,7 @@ ], "aiGenerated": true, "humanLikenessConsent": "synthetic", - "marks": [ - "Singer-style and training-song rights require upstream confirmation" - ], + "marks": ["Singer-style and training-song rights require upstream confirmation"], "requiredAttribution": [], "assetLicense": "upstream-terms-only", "reviewedBy": null, @@ -364,9 +358,7 @@ ], "aiGenerated": true, "humanLikenessConsent": "synthetic", - "marks": [ - "MoDiff project name in the project-authored lyrics" - ], + "marks": ["MoDiff project name in the project-authored lyrics"], "requiredAttribution": [], "assetLicense": "Apache-2.0", "reviewedBy": "SOURAV DAS", @@ -710,9 +702,7 @@ "sourceUrl": "https://huggingface.co/lodestones/Chroma1-HD/tree/0e0c60ece1e82b17cb7f77342d765ba5024c40c0", "sourceRevision": "lodestones/Chroma1-HD@0e0c60ece1e82b17cb7f77342d765ba5024c40c0", "sourceLicense": "Maintainer-authorized file with publisher terms retained", - "modelTerms": [ - "https://huggingface.co/lodestones/Chroma1-HD/tree/0e0c60ece1e82b17cb7f77342d765ba5024c40c0" - ], + "modelTerms": ["https://huggingface.co/lodestones/Chroma1-HD/tree/0e0c60ece1e82b17cb7f77342d765ba5024c40c0"], "aiGenerated": true, "humanLikenessConsent": "synthetic", "marks": [], @@ -1172,9 +1162,7 @@ "aiGenerated": true, "humanLikenessConsent": "synthetic", "marks": [], - "requiredAttribution": [ - "sourav-das" - ], + "requiredAttribution": ["sourav-das"], "assetLicense": "CC-BY-4.0", "reviewedBy": "sourav-das", "reviewedAt": "2026-10-31", @@ -1199,9 +1187,7 @@ "aiGenerated": true, "humanLikenessConsent": "synthetic", "marks": [], - "requiredAttribution": [ - "sourav-das" - ], + "requiredAttribution": ["sourav-das"], "assetLicense": "CC-BY-4.0", "reviewedBy": "sourav-das", "reviewedAt": "2026-10-31", @@ -1226,9 +1212,7 @@ "aiGenerated": true, "humanLikenessConsent": "synthetic", "marks": [], - "requiredAttribution": [ - "sourav-das" - ], + "requiredAttribution": ["sourav-das"], "assetLicense": "CC-BY-4.0", "reviewedBy": "sourav-das", "reviewedAt": "2026-10-31", @@ -1253,9 +1237,7 @@ "aiGenerated": true, "humanLikenessConsent": "synthetic", "marks": [], - "requiredAttribution": [ - "sourav-das" - ], + "requiredAttribution": ["sourav-das"], "assetLicense": "CC-BY-4.0", "reviewedBy": "sourav-das", "reviewedAt": "2026-10-31", @@ -1280,9 +1262,7 @@ "aiGenerated": true, "humanLikenessConsent": "synthetic", "marks": [], - "requiredAttribution": [ - "sourav-das" - ], + "requiredAttribution": ["sourav-das"], "assetLicense": "CC-BY-4.0", "reviewedBy": "sourav-das", "reviewedAt": "2026-10-31", @@ -1309,9 +1289,7 @@ "aiGenerated": true, "humanLikenessConsent": "synthetic", "marks": [], - "requiredAttribution": [ - "sourav-das" - ], + "requiredAttribution": ["sourav-das"], "assetLicense": "CC-BY-4.0", "reviewedBy": "sourav-das", "reviewedAt": "2026-10-31", @@ -1336,9 +1314,7 @@ "aiGenerated": true, "humanLikenessConsent": "synthetic", "marks": [], - "requiredAttribution": [ - "sourav-das" - ], + "requiredAttribution": ["sourav-das"], "assetLicense": "CC-BY-4.0", "reviewedBy": "sourav-das", "reviewedAt": "2026-10-31", @@ -1363,9 +1339,7 @@ "aiGenerated": true, "humanLikenessConsent": "synthetic", "marks": [], - "requiredAttribution": [ - "sourav-das" - ], + "requiredAttribution": ["sourav-das"], "assetLicense": "CC-BY-4.0", "reviewedBy": "sourav-das", "reviewedAt": "2026-10-31", @@ -1390,9 +1364,7 @@ "aiGenerated": true, "humanLikenessConsent": "synthetic", "marks": [], - "requiredAttribution": [ - "sourav-das" - ], + "requiredAttribution": ["sourav-das"], "assetLicense": "CC-BY-4.0", "reviewedBy": "sourav-das", "reviewedAt": "2026-10-31", @@ -1417,9 +1389,7 @@ "aiGenerated": true, "humanLikenessConsent": "synthetic", "marks": [], - "requiredAttribution": [ - "sourav-das" - ], + "requiredAttribution": ["sourav-das"], "assetLicense": "CC-BY-4.0", "reviewedBy": "sourav-das", "reviewedAt": "2026-10-31", @@ -1750,9 +1720,7 @@ ], "aiGenerated": true, "humanLikenessConsent": "not-applicable", - "marks": [ - "Fictional ASTERMIST / LAVENDER SLEEP SPRAY product label" - ], + "marks": ["Fictional ASTERMIST / LAVENDER SLEEP SPRAY product label"], "requiredAttribution": [], "publicationBasis": "Existing maintainer publication authorization and current explicit instruction to register these three accepted assets; no new ownership or rights quotation is fabricated.", "path": "template-gallery/flux_kontext_edit.webp", @@ -1777,9 +1745,7 @@ ], "aiGenerated": true, "humanLikenessConsent": "not-applicable", - "marks": [ - "Fictional ASTERMIST / LAVENDER SLEEP SPRAY product label" - ], + "marks": ["Fictional ASTERMIST / LAVENDER SLEEP SPRAY product label"], "requiredAttribution": [], "publicationBasis": "Existing maintainer publication authorization and current explicit instruction to register these three accepted assets; no new ownership or rights quotation is fabricated.", "path": "template-gallery/flux_kontext_multi_reference.webp", @@ -1935,9 +1901,7 @@ ], "aiGenerated": true, "humanLikenessConsent": "synthetic", - "marks": [ - "Studio Ghibli style reference; no franchise character requested" - ], + "marks": ["Studio Ghibli style reference; no franchise character requested"], "requiredAttribution": [], "assetLicense": "upstream-terms-only", "reviewedBy": null, @@ -1961,9 +1925,7 @@ ], "aiGenerated": true, "humanLikenessConsent": "synthetic", - "marks": [ - "Studio Ghibli style reference; no franchise character requested" - ], + "marks": ["Studio Ghibli style reference; no franchise character requested"], "requiredAttribution": [], "assetLicense": "upstream-terms-only", "reviewedBy": null, @@ -2310,9 +2272,7 @@ "sourceUrl": "https://huggingface.co/zai-org/GLM-Image/tree/2c433cc0cbc293bde2ac8ca9624f279b5d23fcf4", "sourceRevision": "zai-org/GLM-Image@2c433cc0cbc293bde2ac8ca9624f279b5d23fcf4", "sourceLicense": "Maintainer-authorized file with publisher terms retained", - "modelTerms": [ - "mit. https://huggingface.co/zai-org/GLM-Image/tree/2c433cc0cbc293bde2ac8ca9624f279b5d23fcf4" - ], + "modelTerms": ["mit. https://huggingface.co/zai-org/GLM-Image/tree/2c433cc0cbc293bde2ac8ca9624f279b5d23fcf4"], "aiGenerated": true, "humanLikenessConsent": "synthetic", "marks": [], @@ -2631,9 +2591,7 @@ "reviewedAt": "2026-11-13", "reviewClass": "per-file-maintainer-accepted-native-six-registration", "provenanceTemplateId": "flux_redux_edit", - "consumingTemplateIds": [ - "flux_redux_edit" - ], + "consumingTemplateIds": ["flux_redux_edit"], "retainedOriginalPath": "template-gallery/inputs/flux_redux_edit.before.webp", "humanApprovalPacketSHA256": "03b66b4631afb15032d62a1705331b56f6b12c4882c23945175ec92cc45a506f", "publicationBasis": "Register the six approved assets now while Moonflower runs on Linux. Use Windows in parallel wherever possible, and keep the longer workflows separate for AMD cloud." @@ -2786,9 +2744,7 @@ "reviewedAt": "2026-11-15", "reviewClass": "per-file-maintainer-accepted-native-two-registration", "provenanceTemplateId": "flux_redux_multi_reference", - "consumingTemplateIds": [ - "flux_redux_multi_reference" - ], + "consumingTemplateIds": ["flux_redux_multi_reference"], "retainedOriginalPath": "template-gallery/inputs/flux_redux_multi_reference.before.webp", "humanApprovalPacketSHA256": "c3c5e06d05771cf28f823e1dee31a9e7e3765d2f84038823aaadc505ee8290f5", "publicationBasis": "you can register these two as well" @@ -3170,9 +3126,7 @@ "reviewedAt": "2026-11-13", "reviewClass": "per-file-maintainer-accepted-native-six-registration", "provenanceTemplateId": "ltx_video_video_to_video", - "consumingTemplateIds": [ - "ltx_video_video_to_video" - ], + "consumingTemplateIds": ["ltx_video_video_to_video"], "retainedOriginalPath": "template-gallery/inputs/ltx_video_video_to_video.before.mp4", "humanApprovalPacketSHA256": "03b66b4631afb15032d62a1705331b56f6b12c4882c23945175ec92cc45a506f", "publicationBasis": "Register the six approved assets now while Moonflower runs on Linux. Use Windows in parallel wherever possible, and keep the longer workflows separate for AMD cloud." @@ -3510,9 +3464,7 @@ "reviewedAt": "2026-11-15", "reviewClass": "per-file-maintainer-accepted-native-seven-registration", "provenanceTemplateId": "wan_vace_grayscale_control", - "consumingTemplateIds": [ - "wan_vace_grayscale_control" - ], + "consumingTemplateIds": ["wan_vace_grayscale_control"], "retainedOriginalPath": "template-gallery/inputs/wan_vace_grayscale_control.before.mp4", "humanApprovalPacketSHA256": "95c7c2ed080c3d618db1701b066724660595337460c46df8305b50810783eaa3", "publicationBasis": "these are approved, you can register them" @@ -3692,9 +3644,7 @@ "reviewedAt": "2026-11-15", "reviewClass": "per-file-maintainer-accepted-native-seven-registration", "provenanceTemplateId": "wan_vace_outpaint_reframe", - "consumingTemplateIds": [ - "wan_vace_outpaint_reframe" - ], + "consumingTemplateIds": ["wan_vace_outpaint_reframe"], "retainedOriginalPath": "template-gallery/inputs/wan_vace_outpaint_reframe.before.mp4", "humanApprovalPacketSHA256": "95c7c2ed080c3d618db1701b066724660595337460c46df8305b50810783eaa3", "publicationBasis": "these are approved, you can register them" @@ -3874,9 +3824,7 @@ "reviewedAt": "2026-11-15", "reviewClass": "per-file-maintainer-accepted-native-seven-registration", "provenanceTemplateId": "wan_vace_video_color_grade", - "consumingTemplateIds": [ - "wan_vace_video_color_grade" - ], + "consumingTemplateIds": ["wan_vace_video_color_grade"], "retainedOriginalPath": "template-gallery/inputs/wan_vace_video_color_grade.before.mp4", "humanApprovalPacketSHA256": "95c7c2ed080c3d618db1701b066724660595337460c46df8305b50810783eaa3", "publicationBasis": "these are approved, you can register them" @@ -4056,9 +4004,7 @@ "reviewedAt": "2026-11-15", "reviewClass": "per-file-maintainer-accepted-native-seven-registration", "provenanceTemplateId": "wan_vace_video_to_video", - "consumingTemplateIds": [ - "wan_vace_video_to_video" - ], + "consumingTemplateIds": ["wan_vace_video_to_video"], "retainedOriginalPath": "template-gallery/inputs/wan_vace_video_to_video.before.mp4", "humanApprovalPacketSHA256": "95c7c2ed080c3d618db1701b066724660595337460c46df8305b50810783eaa3", "publicationBasis": "these are approved, you can register them" @@ -4294,10 +4240,7 @@ "reviewedBy": "SOURAV DAS", "reviewedAt": "2026-11-13", "reviewClass": "per-file-maintainer-accepted-native-six-registration", - "consumingTemplateIds": [ - "ace_step_audio_repaint", - "ace_step_audio_variation" - ], + "consumingTemplateIds": ["ace_step_audio_repaint", "ace_step_audio_variation"], "humanApprovalPacketSHA256": "03b66b4631afb15032d62a1705331b56f6b12c4882c23945175ec92cc45a506f", "publicationBasis": "Register the six approved assets now while Moonflower runs on Linux. Use Windows in parallel wherever possible, and keep the longer workflows separate for AMD cloud.", "provenanceTemplateId": "ace_step_audio_variation" @@ -4460,9 +4403,7 @@ "reviewedAt": "2026-08-03", "reviewClass": "standard-human-attestation", "provenanceTemplateId": "character_edit", - "consumingTemplateIds": [ - "character_edit" - ] + "consumingTemplateIds": ["character_edit"] }, { "path": "template-gallery/inputs/chroma_alpine_block_print.before.png", @@ -4501,9 +4442,7 @@ "sourceUrl": "https://huggingface.co/lodestones/Chroma1-HD/tree/0e0c60ece1e82b17cb7f77342d765ba5024c40c0", "sourceRevision": "lodestones/Chroma1-HD@0e0c60ece1e82b17cb7f77342d765ba5024c40c0", "sourceLicense": "Maintainer-authorized file with publisher terms retained", - "modelTerms": [ - "https://huggingface.co/lodestones/Chroma1-HD/tree/0e0c60ece1e82b17cb7f77342d765ba5024c40c0" - ], + "modelTerms": ["https://huggingface.co/lodestones/Chroma1-HD/tree/0e0c60ece1e82b17cb7f77342d765ba5024c40c0"], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], @@ -4705,9 +4644,7 @@ "reviewedAt": "2026-08-03", "reviewClass": "standard-human-attestation", "provenanceTemplateId": "flux2_klein_multi_reference", - "consumingTemplateIds": [ - "flux2_klein_multi_reference" - ] + "consumingTemplateIds": ["flux2_klein_multi_reference"] }, { "path": "template-gallery/inputs/flux3-packaging-protected-photo-mask-v1.png", @@ -4723,9 +4660,7 @@ "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], - "requiredAttribution": [ - "sourav-das" - ], + "requiredAttribution": ["sourav-das"], "assetLicense": "CC-BY-4.0", "reviewedBy": "sourav-das", "reviewedAt": "2026-10-31", @@ -4944,9 +4879,7 @@ "reviewedAt": "2026-08-03", "reviewClass": "standard-human-attestation", "provenanceTemplateId": "flux_control_canny", - "consumingTemplateIds": [ - "flux_control_canny" - ] + "consumingTemplateIds": ["flux_control_canny"] }, { "path": "template-gallery/inputs/flux_depth_control.before.png", @@ -4970,9 +4903,7 @@ "reviewedAt": "2026-08-03", "reviewClass": "standard-human-attestation", "provenanceTemplateId": "flux_depth_control", - "consumingTemplateIds": [ - "flux_depth_control" - ] + "consumingTemplateIds": ["flux_depth_control"] }, { "path": "template-gallery/inputs/flux_depth_marine_bow_repair.before.webp", @@ -5104,9 +5035,7 @@ "reviewedAt": "2026-08-03", "reviewClass": "standard-human-attestation", "provenanceTemplateId": "flux_fill_inpaint", - "consumingTemplateIds": [ - "flux_fill_inpaint" - ] + "consumingTemplateIds": ["flux_fill_inpaint"] }, { "path": "template-gallery/inputs/flux_fill_outpaint.before.png", @@ -5130,9 +5059,7 @@ "reviewedAt": "2026-08-03", "reviewClass": "standard-human-attestation", "provenanceTemplateId": "flux_fill_outpaint", - "consumingTemplateIds": [ - "flux_fill_outpaint" - ] + "consumingTemplateIds": ["flux_fill_outpaint"] }, { "path": "template-gallery/inputs/flux_klein_alpine_lake_panorama.before.png", @@ -5291,9 +5218,7 @@ "reviewedAt": "2026-08-03", "reviewClass": "standard-human-attestation", "provenanceTemplateId": "flux_kontext_edit", - "consumingTemplateIds": [ - "flux_kontext_edit" - ] + "consumingTemplateIds": ["flux_kontext_edit"] }, { "path": "template-gallery/inputs/flux_kontext_multi_reference.before.webp", @@ -5317,9 +5242,7 @@ "reviewedAt": "2026-08-03", "reviewClass": "standard-human-attestation", "provenanceTemplateId": "flux_kontext_multi_reference", - "consumingTemplateIds": [ - "flux_kontext_multi_reference" - ] + "consumingTemplateIds": ["flux_kontext_multi_reference"] }, { "path": "template-gallery/inputs/flux_kontext_multi_reference.material-strip.v2.png", @@ -5342,9 +5265,7 @@ "reviewedBy": "maintainer (current user)", "reviewedAt": "2026-11-12", "reviewClass": "per-file-maintainer-accepted-native-three-registration", - "consumingTemplateIds": [ - "flux_kontext_multi_reference" - ], + "consumingTemplateIds": ["flux_kontext_multi_reference"], "derivedFromContentHash": "sha256:bytes:9f421cdc0fa80b3aae368bd3b20a8f6f05942ec461f88541f01aec5390468897", "publicationBasis": "Existing maintainer publication authorization and current explicit instruction to register these three accepted assets; no new ownership or rights quotation is fabricated.", "humanApprovalPacketSHA256": "69c6b3d9b0ea2fcca16ee538f6e75b414b7141658b74f10578758e61360f63fd" @@ -5372,9 +5293,7 @@ "reviewedAt": "2026-08-03", "reviewClass": "standard-human-attestation", "provenanceTemplateId": "flux_redux_edit", - "consumingTemplateIds": [ - "flux_redux_edit" - ] + "consumingTemplateIds": ["flux_redux_edit"] }, { "path": "template-gallery/inputs/flux_redux_multi_reference.before.webp", @@ -5399,9 +5318,7 @@ "reviewedAt": "2026-08-03", "reviewClass": "standard-human-attestation", "provenanceTemplateId": "flux_redux_multi_reference", - "consumingTemplateIds": [ - "flux_redux_multi_reference" - ] + "consumingTemplateIds": ["flux_redux_multi_reference"] }, { "path": "template-gallery/inputs/hunyuan_dit_green_glass_study.before.png", @@ -5659,9 +5576,7 @@ "sourceUrl": "https://huggingface.co/Lightricks/LTX-2/tree/47da56e2ad66ce4125a9922b4a8826bf407f9d0a", "sourceRevision": "Lightricks/LTX-2@47da56e2ad66ce4125a9922b4a8826bf407f9d0a", "sourceLicense": "Maintainer-authorized file with publisher terms retained", - "modelTerms": [ - "https://huggingface.co/Lightricks/LTX-2/blob/47da56e2ad66ce4125a9922b4a8826bf407f9d0a/LICENSE" - ], + "modelTerms": ["https://huggingface.co/Lightricks/LTX-2/blob/47da56e2ad66ce4125a9922b4a8826bf407f9d0a/LICENSE"], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], @@ -5686,9 +5601,7 @@ "sourceUrl": "https://huggingface.co/Lightricks/LTX-2/tree/47da56e2ad66ce4125a9922b4a8826bf407f9d0a", "sourceRevision": "Lightricks/LTX-2@47da56e2ad66ce4125a9922b4a8826bf407f9d0a", "sourceLicense": "Maintainer-authorized file with publisher terms retained", - "modelTerms": [ - "https://huggingface.co/Lightricks/LTX-2/tree/47da56e2ad66ce4125a9922b4a8826bf407f9d0a" - ], + "modelTerms": ["https://huggingface.co/Lightricks/LTX-2/tree/47da56e2ad66ce4125a9922b4a8826bf407f9d0a"], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], @@ -5713,9 +5626,7 @@ "sourceUrl": "https://huggingface.co/Lightricks/LTX-2/tree/47da56e2ad66ce4125a9922b4a8826bf407f9d0a", "sourceRevision": "Lightricks/LTX-2@47da56e2ad66ce4125a9922b4a8826bf407f9d0a", "sourceLicense": "Maintainer-authorized file with publisher terms retained", - "modelTerms": [ - "https://huggingface.co/Lightricks/LTX-2/blob/47da56e2ad66ce4125a9922b4a8826bf407f9d0a/LICENSE" - ], + "modelTerms": ["https://huggingface.co/Lightricks/LTX-2/blob/47da56e2ad66ce4125a9922b4a8826bf407f9d0a/LICENSE"], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], @@ -5774,6 +5685,33 @@ "reviewedAt": "2026-08-03", "reviewClass": "standard-human-attestation" }, + { + "path": "template-gallery/inputs/ltx_long_wind_and_tide_at_the_headland.first.png", + "sha256": "sha256:bytes:51624f59295a77119bf336a63bfc7731d33d6612bc44b15495bddabdfae3ef51", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Exact approved file captured from a saved MoDiff workflow", + "sourceUrl": "https://huggingface.co/Lightricks/LTX-Video-0.9.8-13B-distilled/tree/7c64400e1861cc0d7b98d570a1926d5408ec60cd", + "sourceRevision": "Lightricks/LTX-Video-0.9.8-13B-distilled@7c64400e1861cc0d7b98d570a1926d5408ec60cd", + "sourceLicense": "Maintainer-authorized file with publisher terms retained", + "modelTerms": [ + "Publisher model terms at https://huggingface.co/Lightricks/LTX-Video-0.9.8-13B-distilled/tree/7c64400e1861cc0d7b98d570a1926d5408ec60cd" + ], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "Lightricks/LTX-Video-0.9.8-13B-distilled@7c64400e1861cc0d7b98d570a1926d5408ec60cd https://huggingface.co/Lightricks/LTX-Video-0.9.8-13B-distilled/tree/7c64400e1861cc0d7b98d570a1926d5408ec60cd" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "f90bf0978ad3ec5d295b6d9d5e339207e3586b52567987aa1930881dd1f46e4e", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "ltx_long_wind_and_tide_at_the_headland" + }, { "path": "template-gallery/inputs/ltx_video_image_to_video.before.webp", "sha256": "sha256:bytes:930364ab2667e492e51b8a60664751d66f5ed3f2d580664832977e89bcfbbf26", @@ -5797,9 +5735,7 @@ "reviewedAt": "2026-08-03", "reviewClass": "standard-human-attestation", "provenanceTemplateId": "ltx_video_image_to_video", - "consumingTemplateIds": [ - "ltx_video_image_to_video" - ] + "consumingTemplateIds": ["ltx_video_image_to_video"] }, { "path": "template-gallery/inputs/ltx_video_multi_reference.before.webp", @@ -5824,9 +5760,7 @@ "reviewedAt": "2026-08-03", "reviewClass": "standard-human-attestation", "provenanceTemplateId": "ltx_video_multi_reference", - "consumingTemplateIds": [ - "ltx_video_multi_reference" - ] + "consumingTemplateIds": ["ltx_video_multi_reference"] }, { "path": "template-gallery/inputs/ltx_video_video_to_video.before.mp4", @@ -5853,9 +5787,7 @@ "reviewedAt": "2026-08-03", "reviewClass": "standard-human-attestation", "provenanceTemplateId": "ltx_video_video_to_video", - "consumingTemplateIds": [ - "ltx_video_video_to_video" - ] + "consumingTemplateIds": ["ltx_video_video_to_video"] }, { "path": "template-gallery/inputs/marigold_depth_synthetic_ramp.before.png", @@ -6167,9 +6099,7 @@ "reviewedAt": "2026-08-03", "reviewClass": "standard-human-attestation", "provenanceTemplateId": "qwen_character_angles", - "consumingTemplateIds": [ - "qwen_character_angles" - ] + "consumingTemplateIds": ["qwen_character_angles"] }, { "path": "template-gallery/inputs/qwen_cobalt_on_charcoal_slate.before.png", @@ -6276,9 +6206,7 @@ "reviewedAt": "2026-08-03", "reviewClass": "standard-human-attestation", "provenanceTemplateId": "qwen_edit_plus_single_image", - "consumingTemplateIds": [ - "qwen_edit_plus_single_image" - ] + "consumingTemplateIds": ["qwen_edit_plus_single_image"] }, { "path": "template-gallery/inputs/qwen_edit_strength_sweep.before.webp", @@ -6302,9 +6230,7 @@ "reviewedAt": "2026-08-03", "reviewClass": "standard-human-attestation", "provenanceTemplateId": "qwen_edit_strength_sweep", - "consumingTemplateIds": [ - "qwen_edit_strength_sweep" - ] + "consumingTemplateIds": ["qwen_edit_strength_sweep"] }, { "path": "template-gallery/inputs/qwen_inpaint_mask_draft.before.webp", @@ -6328,9 +6254,7 @@ "reviewedAt": "2026-08-03", "reviewClass": "standard-human-attestation", "provenanceTemplateId": "qwen_inpaint_mask_draft", - "consumingTemplateIds": [ - "qwen_inpaint_mask_draft" - ] + "consumingTemplateIds": ["qwen_inpaint_mask_draft"] }, { "path": "template-gallery/inputs/qwen_inpaint_object_replace.before.webp", @@ -6354,9 +6278,7 @@ "reviewedAt": "2026-08-03", "reviewClass": "standard-human-attestation", "provenanceTemplateId": "qwen_inpaint_object_replace", - "consumingTemplateIds": [ - "qwen_inpaint_object_replace" - ] + "consumingTemplateIds": ["qwen_inpaint_object_replace"] }, { "creatorOrRightsholder": "MoDiff project maintainers, subject to previously approved synthetic source rights and recorded model terms", @@ -6433,9 +6355,7 @@ "reviewedAt": "2026-08-03", "reviewClass": "standard-human-attestation", "provenanceTemplateId": "qwen_logo_texture", - "consumingTemplateIds": [ - "qwen_logo_texture" - ] + "consumingTemplateIds": ["qwen_logo_texture"] }, { "path": "template-gallery/inputs/qwen_multi_reference_product.before.webp", @@ -6460,9 +6380,7 @@ "reviewedAt": "2026-08-03", "reviewClass": "standard-human-attestation", "provenanceTemplateId": "qwen_multi_reference_product", - "consumingTemplateIds": [ - "qwen_multi_reference_product" - ] + "consumingTemplateIds": ["qwen_multi_reference_product"] }, { "path": "template-gallery/inputs/qwen_outpaint_aspect_template.before.webp", @@ -6486,9 +6404,7 @@ "reviewedAt": "2026-08-03", "reviewClass": "standard-human-attestation", "provenanceTemplateId": "qwen_outpaint_aspect_template", - "consumingTemplateIds": [ - "qwen_outpaint_aspect_template" - ] + "consumingTemplateIds": ["qwen_outpaint_aspect_template"] }, { "path": "template-gallery/inputs/qwen_outpaint_draft.before.webp", @@ -6512,9 +6428,7 @@ "reviewedAt": "2026-08-03", "reviewClass": "standard-human-attestation", "provenanceTemplateId": "qwen_outpaint_draft", - "consumingTemplateIds": [ - "qwen_outpaint_draft" - ] + "consumingTemplateIds": ["qwen_outpaint_draft"] }, { "path": "template-gallery/inputs/qwen_packaging_dieline.before.png", @@ -6539,9 +6453,7 @@ "reviewedAt": "2026-08-03", "reviewClass": "standard-human-attestation", "provenanceTemplateId": "qwen_packaging_dieline", - "consumingTemplateIds": [ - "qwen_packaging_dieline" - ] + "consumingTemplateIds": ["qwen_packaging_dieline"] }, { "path": "template-gallery/inputs/qwen_product_ad_composite.before.webp", @@ -6566,9 +6478,7 @@ "reviewedAt": "2026-08-03", "reviewClass": "standard-human-attestation", "provenanceTemplateId": "qwen_product_ad_composite", - "consumingTemplateIds": [ - "qwen_product_ad_composite" - ] + "consumingTemplateIds": ["qwen_product_ad_composite"] }, { "path": "template-gallery/inputs/qwen_product_relight.before.webp", @@ -6593,9 +6503,7 @@ "reviewedAt": "2026-08-03", "reviewClass": "standard-human-attestation", "provenanceTemplateId": "qwen_product_relight", - "consumingTemplateIds": [ - "qwen_product_relight" - ] + "consumingTemplateIds": ["qwen_product_relight"] }, { "path": "template-gallery/inputs/qwen_tile_extract.before.webp", @@ -6619,9 +6527,7 @@ "reviewedAt": "2026-08-03", "reviewClass": "standard-human-attestation", "provenanceTemplateId": "qwen_tile_extract", - "consumingTemplateIds": [ - "qwen_tile_extract" - ] + "consumingTemplateIds": ["qwen_tile_extract"] }, { "creatorOrRightsholder": "MoDiff project maintainers, with exact-file rights explicitly attested by the maintainer", @@ -6672,9 +6578,7 @@ "reviewedAt": "2026-08-03", "reviewClass": "standard-human-attestation", "provenanceTemplateId": "reference_fusion", - "consumingTemplateIds": [ - "reference_fusion" - ] + "consumingTemplateIds": ["reference_fusion"] }, { "path": "template-gallery/inputs/restoring_the_studio_backdrop.before.png", @@ -6686,9 +6590,7 @@ "sourceUrl": "https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14", "sourceRevision": "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14", "sourceLicense": "Maintainer-authorized file with publisher terms retained", - "modelTerms": [ - "CreativeML Open RAIL-M at the pinned Stable Diffusion v1.5 revision." - ], + "modelTerms": ["CreativeML Open RAIL-M at the pinned Stable Diffusion v1.5 revision."], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], @@ -6713,9 +6615,7 @@ "sourceUrl": "https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14", "sourceRevision": "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14", "sourceLicense": "Maintainer-authorized file with publisher terms retained", - "modelTerms": [ - "CreativeML Open RAIL-M at the pinned Stable Diffusion v1.5 revision." - ], + "modelTerms": ["CreativeML Open RAIL-M at the pinned Stable Diffusion v1.5 revision."], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], @@ -7945,6 +7845,90 @@ "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", "provenanceTemplateId": "wan_flf_blue_hour_at_the_tram_shelter" }, + { + "path": "template-gallery/inputs/wan_vace_amber_glass_stabilized.before.mp4", + "sha256": "sha256:bytes:da6a0abe90bfc8c4efcb4a63201a6db839c944416cef49d452b629fbb86c3ec0", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Exact approved file captured from a saved MoDiff workflow", + "sourceUrl": "https://huggingface.co/Wan-AI/Wan2.1-VACE-1.3B-diffusers/tree/ec4d2cb062b548996b179d493fdd05340de702a1", + "sourceRevision": "Wan-AI/Wan2.1-VACE-1.3B-diffusers@ec4d2cb062b548996b179d493fdd05340de702a1", + "sourceLicense": "Maintainer-authorized file with publisher terms retained", + "modelTerms": [ + "https://huggingface.co/Wan-AI/Wan2.1-VACE-1.3B-diffusers/tree/ec4d2cb062b548996b179d493fdd05340de702a1", + "https://huggingface.co/nateraw/real-esrgan/tree/42efb9c3eeed1f5c0c8a626cf5f7f4481dfbb094" + ], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "Wan-AI/Wan2.1-VACE-1.3B-diffusers@ec4d2cb062b548996b179d493fdd05340de702a1 https://huggingface.co/Wan-AI/Wan2.1-VACE-1.3B-diffusers/tree/ec4d2cb062b548996b179d493fdd05340de702a1" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "f90bf0978ad3ec5d295b6d9d5e339207e3586b52567987aa1930881dd1f46e4e", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "wan_vace_amber_glass_stabilized" + }, + { + "path": "template-gallery/inputs/wan_vace_amber_glass_stabilized.mask.mp4", + "sha256": "sha256:bytes:c8eefe9665e6ba8965e7d48c5e6116f2e3ba230ac35390efb834140c5d4cdf8b", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Exact approved file captured from a saved MoDiff workflow", + "sourceUrl": "https://huggingface.co/Wan-AI/Wan2.1-VACE-1.3B-diffusers/tree/ec4d2cb062b548996b179d493fdd05340de702a1", + "sourceRevision": "Wan-AI/Wan2.1-VACE-1.3B-diffusers@ec4d2cb062b548996b179d493fdd05340de702a1", + "sourceLicense": "Maintainer-authorized file with publisher terms retained", + "modelTerms": [ + "https://huggingface.co/Wan-AI/Wan2.1-VACE-1.3B-diffusers/tree/ec4d2cb062b548996b179d493fdd05340de702a1", + "https://huggingface.co/nateraw/real-esrgan/tree/42efb9c3eeed1f5c0c8a626cf5f7f4481dfbb094" + ], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "Wan-AI/Wan2.1-VACE-1.3B-diffusers@ec4d2cb062b548996b179d493fdd05340de702a1 https://huggingface.co/Wan-AI/Wan2.1-VACE-1.3B-diffusers/tree/ec4d2cb062b548996b179d493fdd05340de702a1" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "f90bf0978ad3ec5d295b6d9d5e339207e3586b52567987aa1930881dd1f46e4e", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "wan_vace_amber_glass_stabilized" + }, + { + "path": "template-gallery/inputs/wan_vace_amber_glass_stabilized.reference.png", + "sha256": "sha256:bytes:43a36ae8d33da045a6ad1321195cd163ce3188e1d119008860386afacd21dbc2", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Exact approved file captured from a saved MoDiff workflow", + "sourceUrl": "https://huggingface.co/Wan-AI/Wan2.1-VACE-1.3B-diffusers/tree/ec4d2cb062b548996b179d493fdd05340de702a1", + "sourceRevision": "Wan-AI/Wan2.1-VACE-1.3B-diffusers@ec4d2cb062b548996b179d493fdd05340de702a1", + "sourceLicense": "Maintainer-authorized file with publisher terms retained", + "modelTerms": [ + "https://huggingface.co/Wan-AI/Wan2.1-VACE-1.3B-diffusers/tree/ec4d2cb062b548996b179d493fdd05340de702a1", + "https://huggingface.co/nateraw/real-esrgan/tree/42efb9c3eeed1f5c0c8a626cf5f7f4481dfbb094" + ], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "Wan-AI/Wan2.1-VACE-1.3B-diffusers@ec4d2cb062b548996b179d493fdd05340de702a1 https://huggingface.co/Wan-AI/Wan2.1-VACE-1.3B-diffusers/tree/ec4d2cb062b548996b179d493fdd05340de702a1" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "f90bf0978ad3ec5d295b6d9d5e339207e3586b52567987aa1930881dd1f46e4e", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "wan_vace_amber_glass_stabilized" + }, { "path": "template-gallery/inputs/wan_vace_grayscale_control.before.mp4", "sha256": "sha256:bytes:748b164fd91bc2eed97f7c1d1125a04496a056f29cc016d7cc0da3734c2303b7", @@ -7968,9 +7952,7 @@ "reviewedAt": "2026-08-03", "reviewClass": "standard-human-attestation", "provenanceTemplateId": "wan_vace_grayscale_control", - "consumingTemplateIds": [ - "wan_vace_grayscale_control" - ] + "consumingTemplateIds": ["wan_vace_grayscale_control"] }, { "path": "template-gallery/inputs/wan_vace_outpaint_reframe.before.mp4", @@ -7995,9 +7977,7 @@ "reviewedAt": "2026-08-03", "reviewClass": "standard-human-attestation", "provenanceTemplateId": "wan_vace_outpaint_reframe", - "consumingTemplateIds": [ - "wan_vace_outpaint_reframe" - ] + "consumingTemplateIds": ["wan_vace_outpaint_reframe"] }, { "path": "template-gallery/inputs/wan_vace_video_color_grade.before.mp4", @@ -8022,9 +8002,7 @@ "reviewedAt": "2026-08-03", "reviewClass": "standard-human-attestation", "provenanceTemplateId": "wan_vace_video_color_grade", - "consumingTemplateIds": [ - "wan_vace_video_color_grade" - ] + "consumingTemplateIds": ["wan_vace_video_color_grade"] }, { "path": "template-gallery/inputs/wan_vace_video_to_video.before.mp4", @@ -8049,9 +8027,7 @@ "reviewedAt": "2026-08-03", "reviewClass": "standard-human-attestation", "provenanceTemplateId": "wan_vace_video_to_video", - "consumingTemplateIds": [ - "wan_vace_video_to_video" - ] + "consumingTemplateIds": ["wan_vace_video_to_video"] }, { "path": "template-gallery/inputs/zimage_golden_amber_glass.before.png", @@ -8171,9 +8147,7 @@ "sourceUrl": "https://huggingface.co/deepseek-community/Janus-Pro-1B/tree/1655280bb75959cc1cb85529a2a8b26e7016072e", "sourceRevision": "deepseek-community/Janus-Pro-1B@1655280bb75959cc1cb85529a2a8b26e7016072e", "sourceLicense": "Maintainer-authorized file with publisher terms retained", - "modelTerms": [ - "https://github.com/deepseek-ai/Janus/blob/main/LICENSE-MODEL" - ], + "modelTerms": ["https://github.com/deepseek-ai/Janus/blob/main/LICENSE-MODEL"], "aiGenerated": true, "humanLikenessConsent": "synthetic", "marks": [], @@ -8198,9 +8172,7 @@ "sourceUrl": "https://huggingface.co/deepseek-community/Janus-Pro-1B/tree/1655280bb75959cc1cb85529a2a8b26e7016072e", "sourceRevision": "deepseek-community/Janus-Pro-1B@1655280bb75959cc1cb85529a2a8b26e7016072e", "sourceLicense": "Maintainer-authorized file with publisher terms retained", - "modelTerms": [ - "https://github.com/deepseek-ai/Janus/blob/main/LICENSE-MODEL" - ], + "modelTerms": ["https://github.com/deepseek-ai/Janus/blob/main/LICENSE-MODEL"], "aiGenerated": true, "humanLikenessConsent": "synthetic", "marks": [], @@ -8225,9 +8197,7 @@ "sourceUrl": "https://huggingface.co/deepseek-community/Janus-Pro-1B/tree/1655280bb75959cc1cb85529a2a8b26e7016072e", "sourceRevision": "deepseek-community/Janus-Pro-1B@1655280bb75959cc1cb85529a2a8b26e7016072e", "sourceLicense": "Maintainer-authorized file with publisher terms retained", - "modelTerms": [ - "https://github.com/deepseek-ai/Janus/blob/main/LICENSE-MODEL" - ], + "modelTerms": ["https://github.com/deepseek-ai/Janus/blob/main/LICENSE-MODEL"], "aiGenerated": true, "humanLikenessConsent": "synthetic", "marks": [], @@ -8441,9 +8411,7 @@ "sourceUrl": "https://huggingface.co/maxin-cn/Latte-1/tree/0653024365272f061fc44d1078134df22842b687", "sourceRevision": "maxin-cn/Latte-1@0653024365272f061fc44d1078134df22842b687", "sourceLicense": "Maintainer-authorized file with publisher terms retained", - "modelTerms": [ - "https://huggingface.co/maxin-cn/Latte-1/tree/0653024365272f061fc44d1078134df22842b687" - ], + "modelTerms": ["https://huggingface.co/maxin-cn/Latte-1/tree/0653024365272f061fc44d1078134df22842b687"], "aiGenerated": true, "humanLikenessConsent": "synthetic", "marks": [], @@ -8866,9 +8834,7 @@ "sourceUrl": "https://huggingface.co/Lightricks/LTX-2/tree/47da56e2ad66ce4125a9922b4a8826bf407f9d0a", "sourceRevision": "Lightricks/LTX-2@47da56e2ad66ce4125a9922b4a8826bf407f9d0a", "sourceLicense": "Maintainer-authorized file with publisher terms retained", - "modelTerms": [ - "https://huggingface.co/Lightricks/LTX-2/blob/47da56e2ad66ce4125a9922b4a8826bf407f9d0a/LICENSE" - ], + "modelTerms": ["https://huggingface.co/Lightricks/LTX-2/blob/47da56e2ad66ce4125a9922b4a8826bf407f9d0a/LICENSE"], "aiGenerated": true, "humanLikenessConsent": "synthetic", "marks": [], @@ -8893,9 +8859,7 @@ "sourceUrl": "https://huggingface.co/Lightricks/LTX-2/tree/47da56e2ad66ce4125a9922b4a8826bf407f9d0a", "sourceRevision": "Lightricks/LTX-2@47da56e2ad66ce4125a9922b4a8826bf407f9d0a", "sourceLicense": "Maintainer-authorized file with publisher terms retained", - "modelTerms": [ - "https://huggingface.co/Lightricks/LTX-2/tree/47da56e2ad66ce4125a9922b4a8826bf407f9d0a" - ], + "modelTerms": ["https://huggingface.co/Lightricks/LTX-2/tree/47da56e2ad66ce4125a9922b4a8826bf407f9d0a"], "aiGenerated": true, "humanLikenessConsent": "synthetic", "marks": [], @@ -8920,9 +8884,7 @@ "sourceUrl": "https://huggingface.co/Lightricks/LTX-2/tree/47da56e2ad66ce4125a9922b4a8826bf407f9d0a", "sourceRevision": "Lightricks/LTX-2@47da56e2ad66ce4125a9922b4a8826bf407f9d0a", "sourceLicense": "Maintainer-authorized file with publisher terms retained", - "modelTerms": [ - "https://huggingface.co/Lightricks/LTX-2/tree/47da56e2ad66ce4125a9922b4a8826bf407f9d0a" - ], + "modelTerms": ["https://huggingface.co/Lightricks/LTX-2/tree/47da56e2ad66ce4125a9922b4a8826bf407f9d0a"], "aiGenerated": true, "humanLikenessConsent": "synthetic", "marks": [], @@ -8947,9 +8909,7 @@ "sourceUrl": "https://huggingface.co/Lightricks/LTX-2/tree/47da56e2ad66ce4125a9922b4a8826bf407f9d0a", "sourceRevision": "Lightricks/LTX-2@47da56e2ad66ce4125a9922b4a8826bf407f9d0a", "sourceLicense": "Maintainer-authorized file with publisher terms retained", - "modelTerms": [ - "https://huggingface.co/Lightricks/LTX-2/blob/47da56e2ad66ce4125a9922b4a8826bf407f9d0a/LICENSE" - ], + "modelTerms": ["https://huggingface.co/Lightricks/LTX-2/blob/47da56e2ad66ce4125a9922b4a8826bf407f9d0a/LICENSE"], "aiGenerated": true, "humanLikenessConsent": "synthetic", "marks": [], @@ -8974,9 +8934,7 @@ "sourceUrl": "https://huggingface.co/Lightricks/LTX-2/tree/47da56e2ad66ce4125a9922b4a8826bf407f9d0a", "sourceRevision": "Lightricks/LTX-2@47da56e2ad66ce4125a9922b4a8826bf407f9d0a", "sourceLicense": "Maintainer-authorized file with publisher terms retained", - "modelTerms": [ - "https://huggingface.co/Lightricks/LTX-2/tree/47da56e2ad66ce4125a9922b4a8826bf407f9d0a" - ], + "modelTerms": ["https://huggingface.co/Lightricks/LTX-2/tree/47da56e2ad66ce4125a9922b4a8826bf407f9d0a"], "aiGenerated": true, "humanLikenessConsent": "synthetic", "marks": [], @@ -8991,6 +8949,33 @@ "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", "provenanceTemplateId": "ltx2_surf_below_the_breakwater" }, + { + "path": "template-gallery/ltx_long_wind_and_tide_at_the_headland.mp4", + "sha256": "sha256:bytes:62c8d0eb30f3900276fda6c9c48c8e676cc04385bfbbfe117eecd46144cb81ea", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Exact approved file captured from a saved MoDiff workflow", + "sourceUrl": "https://huggingface.co/Lightricks/LTX-Video-0.9.8-13B-distilled/tree/7c64400e1861cc0d7b98d570a1926d5408ec60cd", + "sourceRevision": "Lightricks/LTX-Video-0.9.8-13B-distilled@7c64400e1861cc0d7b98d570a1926d5408ec60cd", + "sourceLicense": "Maintainer-authorized file with publisher terms retained", + "modelTerms": [ + "Publisher model terms at https://huggingface.co/Lightricks/LTX-Video-0.9.8-13B-distilled/tree/7c64400e1861cc0d7b98d570a1926d5408ec60cd" + ], + "aiGenerated": true, + "humanLikenessConsent": "synthetic", + "marks": [], + "requiredAttribution": [ + "Lightricks/LTX-Video-0.9.8-13B-distilled@7c64400e1861cc0d7b98d570a1926d5408ec60cd https://huggingface.co/Lightricks/LTX-Video-0.9.8-13B-distilled/tree/7c64400e1861cc0d7b98d570a1926d5408ec60cd" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "f90bf0978ad3ec5d295b6d9d5e339207e3586b52567987aa1930881dd1f46e4e", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "ltx_long_wind_and_tide_at_the_headland" + }, { "path": "template-gallery/ltx_video_animated_story.card-poster.png", "sha256": "sha256:bytes:fcd07a3c5a3e8df1890f1dd98f72746a67025a7bf3c4f6559026b24a8afa445c", @@ -9646,7 +9631,7 @@ }, { "path": "template-gallery/manifest.json", - "sha256": "sha256:bytes:aced8ad0f0bbd93c7c98853b8d17c72da6cbc1c276f77cf0b3becd1bf889867e", + "sha256": "sha256:bytes:fe948ccb643e19685fb242236c2c9c5888e3b756de0718c1c39b6c3f694d689b", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", @@ -9663,7 +9648,7 @@ "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "aeba59d388381d75a2935a470ac831faabbd1f0b0be51af0bca839e601c1d034", + "humanApprovalPacketSHA256": "f90bf0978ad3ec5d295b6d9d5e339207e3586b52567987aa1930881dd1f46e4e", "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained." }, { @@ -9705,9 +9690,7 @@ "aiGenerated": true, "humanLikenessConsent": "synthetic", "marks": [], - "requiredAttribution": [ - "AI-generated music — MiniMax-Music3" - ], + "requiredAttribution": ["AI-generated music — MiniMax-Music3"], "assetLicense": "Apache-2.0", "publisherLicenseUrl": "https://huggingface.co/MiniMaxAI/MiniMax-Music3/blob/fbdf52fbaaca799592917417eb05f1899f1255ec/LICENSE", "path": "template-gallery/minimax_music3_chamber_pop.wav", @@ -10480,9 +10463,7 @@ ], "aiGenerated": true, "humanLikenessConsent": "synthetic", - "marks": [ - "TIDELINE: fictional cinema and event" - ], + "marks": ["TIDELINE: fictional cinema and event"], "requiredAttribution": [], "sourceRightsAttestation": "I hold the rights or permissions needed to publish this exact generated TIDELINE cinema image and its redacted technical/review records under Apache-2.0. The film event and cinema are fictional; no external image inputs or real-person likenesses were used.", "path": "template-gallery/qwen_low_vram_poster_layout.webp", @@ -10507,9 +10488,7 @@ ], "aiGenerated": true, "humanLikenessConsent": "synthetic", - "marks": [ - "MICA DROP: fictional product name" - ], + "marks": ["MICA DROP: fictional product name"], "requiredAttribution": [], "sourceRightsAttestation": "I approve this exact image as a reviewed concept with the stated design limitations and incomplete independent resource monitoring, without a fully guarded or hardware-qualification claim. I hold the rights or permissions needed to publish this generated MICA DROP image and its redacted technical/review metadata under Apache-2.0. The product is fictional in this example; no external image input or real-person likeness was used.", "path": "template-gallery/qwen_low_vram_product_concept.webp", @@ -10534,9 +10513,7 @@ ], "aiGenerated": true, "humanLikenessConsent": "synthetic", - "marks": [ - "KITE & ANVIL: fictional stationery brand" - ], + "marks": ["KITE & ANVIL: fictional stationery brand"], "requiredAttribution": [], "sourceRightsAttestation": "I hold the rights or permissions needed to publish this exact generated KITE & ANVIL stationery image and its redacted technical/review metadata under Apache-2.0. The stationery brand is fictional in this example; no external image inputs or real-person likenesses were used.", "path": "template-gallery/qwen_low_vram_text_rendering.webp", @@ -10665,9 +10642,7 @@ ], "aiGenerated": true, "humanLikenessConsent": "synthetic", - "marks": [ - "MATERIAL CULTURE: fictional exhibition title" - ], + "marks": ["MATERIAL CULTURE: fictional exhibition title"], "requiredAttribution": [], "sourceRightsAttestation": "I hold the rights or permissions needed to publish this exact generated MATERIAL CULTURE exhibition poster and its redacted technical/review metadata under Apache-2.0. The exhibition is fictional in this example; no external image inputs or real-person likenesses were used.", "path": "template-gallery/qwen_poster_logo_text.webp", @@ -10773,9 +10748,7 @@ ], "aiGenerated": true, "humanLikenessConsent": "synthetic", - "marks": [ - "VERDA 03: fictional product name in this generated example" - ], + "marks": ["VERDA 03: fictional product name in this generated example"], "requiredAttribution": [], "sourceRightsAttestation": "I hold the rights or permissions needed to publicly redistribute this exact generated VERDA 03 poster and its redacted technical and quality metadata under Apache-2.0. VERDA 03 is a fictional product name in this example; no external image inputs or real-person likenesses were used.", "path": "template-gallery/qwen_text_rendering.webp", @@ -11361,9 +11334,7 @@ "sourceUrl": "https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14", "sourceRevision": "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14", "sourceLicense": "Maintainer-authorized file with publisher terms retained", - "modelTerms": [ - "CreativeML Open RAIL-M at the pinned Stable Diffusion v1.5 revision." - ], + "modelTerms": ["CreativeML Open RAIL-M at the pinned Stable Diffusion v1.5 revision."], "aiGenerated": true, "humanLikenessConsent": "synthetic", "marks": [], @@ -12848,9 +12819,7 @@ "sourceUrl": "https://huggingface.co/lodestones/Chroma1-HD/tree/0e0c60ece1e82b17cb7f77342d765ba5024c40c0", "sourceRevision": "lodestones/Chroma1-HD@0e0c60ece1e82b17cb7f77342d765ba5024c40c0", "sourceLicense": "MoDiff-authored Gallery metadata", - "modelTerms": [ - "https://huggingface.co/lodestones/Chroma1-HD/tree/0e0c60ece1e82b17cb7f77342d765ba5024c40c0" - ], + "modelTerms": ["https://huggingface.co/lodestones/Chroma1-HD/tree/0e0c60ece1e82b17cb7f77342d765ba5024c40c0"], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], @@ -12875,9 +12844,7 @@ "sourceUrl": "https://huggingface.co/lodestones/Chroma1-HD/tree/0e0c60ece1e82b17cb7f77342d765ba5024c40c0", "sourceRevision": "lodestones/Chroma1-HD@0e0c60ece1e82b17cb7f77342d765ba5024c40c0", "sourceLicense": "MoDiff-authored Gallery metadata", - "modelTerms": [ - "https://huggingface.co/lodestones/Chroma1-HD/tree/0e0c60ece1e82b17cb7f77342d765ba5024c40c0" - ], + "modelTerms": ["https://huggingface.co/lodestones/Chroma1-HD/tree/0e0c60ece1e82b17cb7f77342d765ba5024c40c0"], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], @@ -12902,9 +12869,7 @@ "sourceUrl": "https://huggingface.co/lodestones/Chroma1-HD/tree/0e0c60ece1e82b17cb7f77342d765ba5024c40c0", "sourceRevision": "lodestones/Chroma1-HD@0e0c60ece1e82b17cb7f77342d765ba5024c40c0", "sourceLicense": "MoDiff-authored Gallery metadata", - "modelTerms": [ - "https://huggingface.co/lodestones/Chroma1-HD/tree/0e0c60ece1e82b17cb7f77342d765ba5024c40c0" - ], + "modelTerms": ["https://huggingface.co/lodestones/Chroma1-HD/tree/0e0c60ece1e82b17cb7f77342d765ba5024c40c0"], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], @@ -12929,9 +12894,7 @@ "sourceUrl": "https://huggingface.co/lodestones/Chroma1-HD/tree/0e0c60ece1e82b17cb7f77342d765ba5024c40c0", "sourceRevision": "lodestones/Chroma1-HD@0e0c60ece1e82b17cb7f77342d765ba5024c40c0", "sourceLicense": "MoDiff-authored Gallery metadata", - "modelTerms": [ - "https://huggingface.co/lodestones/Chroma1-HD/tree/0e0c60ece1e82b17cb7f77342d765ba5024c40c0" - ], + "modelTerms": ["https://huggingface.co/lodestones/Chroma1-HD/tree/0e0c60ece1e82b17cb7f77342d765ba5024c40c0"], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], @@ -16275,9 +16238,7 @@ "sourceUrl": "https://huggingface.co/zai-org/GLM-Image/tree/2c433cc0cbc293bde2ac8ca9624f279b5d23fcf4", "sourceRevision": "zai-org/GLM-Image@2c433cc0cbc293bde2ac8ca9624f279b5d23fcf4", "sourceLicense": "MoDiff-authored Gallery metadata", - "modelTerms": [ - "mit. https://huggingface.co/zai-org/GLM-Image/tree/2c433cc0cbc293bde2ac8ca9624f279b5d23fcf4" - ], + "modelTerms": ["mit. https://huggingface.co/zai-org/GLM-Image/tree/2c433cc0cbc293bde2ac8ca9624f279b5d23fcf4"], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], @@ -16302,9 +16263,7 @@ "sourceUrl": "https://huggingface.co/zai-org/GLM-Image/tree/2c433cc0cbc293bde2ac8ca9624f279b5d23fcf4", "sourceRevision": "zai-org/GLM-Image@2c433cc0cbc293bde2ac8ca9624f279b5d23fcf4", "sourceLicense": "MoDiff-authored Gallery metadata", - "modelTerms": [ - "mit. https://huggingface.co/zai-org/GLM-Image/tree/2c433cc0cbc293bde2ac8ca9624f279b5d23fcf4" - ], + "modelTerms": ["mit. https://huggingface.co/zai-org/GLM-Image/tree/2c433cc0cbc293bde2ac8ca9624f279b5d23fcf4"], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], @@ -16329,9 +16288,7 @@ "sourceUrl": "https://huggingface.co/zai-org/GLM-Image/tree/2c433cc0cbc293bde2ac8ca9624f279b5d23fcf4", "sourceRevision": "zai-org/GLM-Image@2c433cc0cbc293bde2ac8ca9624f279b5d23fcf4", "sourceLicense": "MoDiff-authored Gallery metadata", - "modelTerms": [ - "mit. https://huggingface.co/zai-org/GLM-Image/tree/2c433cc0cbc293bde2ac8ca9624f279b5d23fcf4" - ], + "modelTerms": ["mit. https://huggingface.co/zai-org/GLM-Image/tree/2c433cc0cbc293bde2ac8ca9624f279b5d23fcf4"], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], @@ -16356,9 +16313,7 @@ "sourceUrl": "https://huggingface.co/zai-org/GLM-Image/tree/2c433cc0cbc293bde2ac8ca9624f279b5d23fcf4", "sourceRevision": "zai-org/GLM-Image@2c433cc0cbc293bde2ac8ca9624f279b5d23fcf4", "sourceLicense": "MoDiff-authored Gallery metadata", - "modelTerms": [ - "mit. https://huggingface.co/zai-org/GLM-Image/tree/2c433cc0cbc293bde2ac8ca9624f279b5d23fcf4" - ], + "modelTerms": ["mit. https://huggingface.co/zai-org/GLM-Image/tree/2c433cc0cbc293bde2ac8ca9624f279b5d23fcf4"], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], @@ -16859,9 +16814,7 @@ "sourceUrl": "https://huggingface.co/deepseek-community/Janus-Pro-1B/tree/1655280bb75959cc1cb85529a2a8b26e7016072e", "sourceRevision": "deepseek-community/Janus-Pro-1B@1655280bb75959cc1cb85529a2a8b26e7016072e", "sourceLicense": "MoDiff-authored Gallery metadata", - "modelTerms": [ - "https://github.com/deepseek-ai/Janus/blob/main/LICENSE-MODEL" - ], + "modelTerms": ["https://github.com/deepseek-ai/Janus/blob/main/LICENSE-MODEL"], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], @@ -16886,9 +16839,7 @@ "sourceUrl": "https://huggingface.co/deepseek-community/Janus-Pro-1B/tree/1655280bb75959cc1cb85529a2a8b26e7016072e", "sourceRevision": "deepseek-community/Janus-Pro-1B@1655280bb75959cc1cb85529a2a8b26e7016072e", "sourceLicense": "MoDiff-authored Gallery metadata", - "modelTerms": [ - "https://github.com/deepseek-ai/Janus/blob/main/LICENSE-MODEL" - ], + "modelTerms": ["https://github.com/deepseek-ai/Janus/blob/main/LICENSE-MODEL"], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], @@ -16913,9 +16864,7 @@ "sourceUrl": "https://huggingface.co/deepseek-community/Janus-Pro-1B/tree/1655280bb75959cc1cb85529a2a8b26e7016072e", "sourceRevision": "deepseek-community/Janus-Pro-1B@1655280bb75959cc1cb85529a2a8b26e7016072e", "sourceLicense": "MoDiff-authored Gallery metadata", - "modelTerms": [ - "https://github.com/deepseek-ai/Janus/blob/main/LICENSE-MODEL" - ], + "modelTerms": ["https://github.com/deepseek-ai/Janus/blob/main/LICENSE-MODEL"], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], @@ -16940,9 +16889,7 @@ "sourceUrl": "https://huggingface.co/deepseek-community/Janus-Pro-1B/tree/1655280bb75959cc1cb85529a2a8b26e7016072e", "sourceRevision": "deepseek-community/Janus-Pro-1B@1655280bb75959cc1cb85529a2a8b26e7016072e", "sourceLicense": "MoDiff-authored Gallery metadata", - "modelTerms": [ - "https://github.com/deepseek-ai/Janus/blob/main/LICENSE-MODEL" - ], + "modelTerms": ["https://github.com/deepseek-ai/Janus/blob/main/LICENSE-MODEL"], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], @@ -16967,9 +16914,7 @@ "sourceUrl": "https://huggingface.co/deepseek-community/Janus-Pro-1B/tree/1655280bb75959cc1cb85529a2a8b26e7016072e", "sourceRevision": "deepseek-community/Janus-Pro-1B@1655280bb75959cc1cb85529a2a8b26e7016072e", "sourceLicense": "MoDiff-authored Gallery metadata", - "modelTerms": [ - "https://github.com/deepseek-ai/Janus/blob/main/LICENSE-MODEL" - ], + "modelTerms": ["https://github.com/deepseek-ai/Janus/blob/main/LICENSE-MODEL"], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], @@ -16994,9 +16939,7 @@ "sourceUrl": "https://huggingface.co/deepseek-community/Janus-Pro-1B/tree/1655280bb75959cc1cb85529a2a8b26e7016072e", "sourceRevision": "deepseek-community/Janus-Pro-1B@1655280bb75959cc1cb85529a2a8b26e7016072e", "sourceLicense": "MoDiff-authored Gallery metadata", - "modelTerms": [ - "https://github.com/deepseek-ai/Janus/blob/main/LICENSE-MODEL" - ], + "modelTerms": ["https://github.com/deepseek-ai/Janus/blob/main/LICENSE-MODEL"], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], @@ -17021,9 +16964,7 @@ "sourceUrl": "https://huggingface.co/deepseek-community/Janus-Pro-1B/tree/1655280bb75959cc1cb85529a2a8b26e7016072e", "sourceRevision": "deepseek-community/Janus-Pro-1B@1655280bb75959cc1cb85529a2a8b26e7016072e", "sourceLicense": "MoDiff-authored Gallery metadata", - "modelTerms": [ - "https://github.com/deepseek-ai/Janus/blob/main/LICENSE-MODEL" - ], + "modelTerms": ["https://github.com/deepseek-ai/Janus/blob/main/LICENSE-MODEL"], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], @@ -17048,9 +16989,7 @@ "sourceUrl": "https://huggingface.co/deepseek-community/Janus-Pro-1B/tree/1655280bb75959cc1cb85529a2a8b26e7016072e", "sourceRevision": "deepseek-community/Janus-Pro-1B@1655280bb75959cc1cb85529a2a8b26e7016072e", "sourceLicense": "MoDiff-authored Gallery metadata", - "modelTerms": [ - "https://github.com/deepseek-ai/Janus/blob/main/LICENSE-MODEL" - ], + "modelTerms": ["https://github.com/deepseek-ai/Janus/blob/main/LICENSE-MODEL"], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], @@ -17075,9 +17014,7 @@ "sourceUrl": "https://huggingface.co/deepseek-community/Janus-Pro-1B/tree/1655280bb75959cc1cb85529a2a8b26e7016072e", "sourceRevision": "deepseek-community/Janus-Pro-1B@1655280bb75959cc1cb85529a2a8b26e7016072e", "sourceLicense": "MoDiff-authored Gallery metadata", - "modelTerms": [ - "https://github.com/deepseek-ai/Janus/blob/main/LICENSE-MODEL" - ], + "modelTerms": ["https://github.com/deepseek-ai/Janus/blob/main/LICENSE-MODEL"], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], @@ -17102,9 +17039,7 @@ "sourceUrl": "https://huggingface.co/deepseek-community/Janus-Pro-1B/tree/1655280bb75959cc1cb85529a2a8b26e7016072e", "sourceRevision": "deepseek-community/Janus-Pro-1B@1655280bb75959cc1cb85529a2a8b26e7016072e", "sourceLicense": "MoDiff-authored Gallery metadata", - "modelTerms": [ - "https://github.com/deepseek-ai/Janus/blob/main/LICENSE-MODEL" - ], + "modelTerms": ["https://github.com/deepseek-ai/Janus/blob/main/LICENSE-MODEL"], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], @@ -17129,9 +17064,7 @@ "sourceUrl": "https://huggingface.co/deepseek-community/Janus-Pro-1B/tree/1655280bb75959cc1cb85529a2a8b26e7016072e", "sourceRevision": "deepseek-community/Janus-Pro-1B@1655280bb75959cc1cb85529a2a8b26e7016072e", "sourceLicense": "MoDiff-authored Gallery metadata", - "modelTerms": [ - "https://github.com/deepseek-ai/Janus/blob/main/LICENSE-MODEL" - ], + "modelTerms": ["https://github.com/deepseek-ai/Janus/blob/main/LICENSE-MODEL"], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], @@ -17156,9 +17089,7 @@ "sourceUrl": "https://huggingface.co/deepseek-community/Janus-Pro-1B/tree/1655280bb75959cc1cb85529a2a8b26e7016072e", "sourceRevision": "deepseek-community/Janus-Pro-1B@1655280bb75959cc1cb85529a2a8b26e7016072e", "sourceLicense": "MoDiff-authored Gallery metadata", - "modelTerms": [ - "https://github.com/deepseek-ai/Janus/blob/main/LICENSE-MODEL" - ], + "modelTerms": ["https://github.com/deepseek-ai/Janus/blob/main/LICENSE-MODEL"], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], @@ -17939,9 +17870,7 @@ "sourceUrl": "https://huggingface.co/maxin-cn/Latte-1/tree/0653024365272f061fc44d1078134df22842b687", "sourceRevision": "maxin-cn/Latte-1@0653024365272f061fc44d1078134df22842b687", "sourceLicense": "MoDiff-authored Gallery metadata", - "modelTerms": [ - "https://huggingface.co/maxin-cn/Latte-1/tree/0653024365272f061fc44d1078134df22842b687" - ], + "modelTerms": ["https://huggingface.co/maxin-cn/Latte-1/tree/0653024365272f061fc44d1078134df22842b687"], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], @@ -17966,9 +17895,7 @@ "sourceUrl": "https://huggingface.co/maxin-cn/Latte-1/tree/0653024365272f061fc44d1078134df22842b687", "sourceRevision": "maxin-cn/Latte-1@0653024365272f061fc44d1078134df22842b687", "sourceLicense": "MoDiff-authored Gallery metadata", - "modelTerms": [ - "https://huggingface.co/maxin-cn/Latte-1/tree/0653024365272f061fc44d1078134df22842b687" - ], + "modelTerms": ["https://huggingface.co/maxin-cn/Latte-1/tree/0653024365272f061fc44d1078134df22842b687"], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], @@ -17993,9 +17920,7 @@ "sourceUrl": "https://huggingface.co/maxin-cn/Latte-1/tree/0653024365272f061fc44d1078134df22842b687", "sourceRevision": "maxin-cn/Latte-1@0653024365272f061fc44d1078134df22842b687", "sourceLicense": "MoDiff-authored Gallery metadata", - "modelTerms": [ - "https://huggingface.co/maxin-cn/Latte-1/tree/0653024365272f061fc44d1078134df22842b687" - ], + "modelTerms": ["https://huggingface.co/maxin-cn/Latte-1/tree/0653024365272f061fc44d1078134df22842b687"], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], @@ -18020,9 +17945,7 @@ "sourceUrl": "https://huggingface.co/maxin-cn/Latte-1/tree/0653024365272f061fc44d1078134df22842b687", "sourceRevision": "maxin-cn/Latte-1@0653024365272f061fc44d1078134df22842b687", "sourceLicense": "MoDiff-authored Gallery metadata", - "modelTerms": [ - "https://huggingface.co/maxin-cn/Latte-1/tree/0653024365272f061fc44d1078134df22842b687" - ], + "modelTerms": ["https://huggingface.co/maxin-cn/Latte-1/tree/0653024365272f061fc44d1078134df22842b687"], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], @@ -18461,9 +18384,7 @@ "sourceUrl": "https://huggingface.co/Lightricks/LTX-2/tree/47da56e2ad66ce4125a9922b4a8826bf407f9d0a", "sourceRevision": "Lightricks/LTX-2@47da56e2ad66ce4125a9922b4a8826bf407f9d0a", "sourceLicense": "MoDiff-authored Gallery metadata", - "modelTerms": [ - "https://huggingface.co/Lightricks/LTX-2/blob/47da56e2ad66ce4125a9922b4a8826bf407f9d0a/LICENSE" - ], + "modelTerms": ["https://huggingface.co/Lightricks/LTX-2/blob/47da56e2ad66ce4125a9922b4a8826bf407f9d0a/LICENSE"], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], @@ -18488,9 +18409,7 @@ "sourceUrl": "https://huggingface.co/Lightricks/LTX-2/tree/47da56e2ad66ce4125a9922b4a8826bf407f9d0a", "sourceRevision": "Lightricks/LTX-2@47da56e2ad66ce4125a9922b4a8826bf407f9d0a", "sourceLicense": "MoDiff-authored Gallery metadata", - "modelTerms": [ - "https://huggingface.co/Lightricks/LTX-2/blob/47da56e2ad66ce4125a9922b4a8826bf407f9d0a/LICENSE" - ], + "modelTerms": ["https://huggingface.co/Lightricks/LTX-2/blob/47da56e2ad66ce4125a9922b4a8826bf407f9d0a/LICENSE"], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], @@ -18515,9 +18434,7 @@ "sourceUrl": "https://huggingface.co/Lightricks/LTX-2/tree/47da56e2ad66ce4125a9922b4a8826bf407f9d0a", "sourceRevision": "Lightricks/LTX-2@47da56e2ad66ce4125a9922b4a8826bf407f9d0a", "sourceLicense": "MoDiff-authored Gallery metadata", - "modelTerms": [ - "https://huggingface.co/Lightricks/LTX-2/blob/47da56e2ad66ce4125a9922b4a8826bf407f9d0a/LICENSE" - ], + "modelTerms": ["https://huggingface.co/Lightricks/LTX-2/blob/47da56e2ad66ce4125a9922b4a8826bf407f9d0a/LICENSE"], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], @@ -18542,9 +18459,7 @@ "sourceUrl": "https://huggingface.co/Lightricks/LTX-2/tree/47da56e2ad66ce4125a9922b4a8826bf407f9d0a", "sourceRevision": "Lightricks/LTX-2@47da56e2ad66ce4125a9922b4a8826bf407f9d0a", "sourceLicense": "MoDiff-authored Gallery metadata", - "modelTerms": [ - "https://huggingface.co/Lightricks/LTX-2/blob/47da56e2ad66ce4125a9922b4a8826bf407f9d0a/LICENSE" - ], + "modelTerms": ["https://huggingface.co/Lightricks/LTX-2/blob/47da56e2ad66ce4125a9922b4a8826bf407f9d0a/LICENSE"], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], @@ -18569,9 +18484,7 @@ "sourceUrl": "https://huggingface.co/Lightricks/LTX-2/tree/47da56e2ad66ce4125a9922b4a8826bf407f9d0a", "sourceRevision": "Lightricks/LTX-2@47da56e2ad66ce4125a9922b4a8826bf407f9d0a", "sourceLicense": "MoDiff-authored Gallery metadata", - "modelTerms": [ - "https://huggingface.co/Lightricks/LTX-2/tree/47da56e2ad66ce4125a9922b4a8826bf407f9d0a" - ], + "modelTerms": ["https://huggingface.co/Lightricks/LTX-2/tree/47da56e2ad66ce4125a9922b4a8826bf407f9d0a"], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], @@ -18596,9 +18509,7 @@ "sourceUrl": "https://huggingface.co/Lightricks/LTX-2/tree/47da56e2ad66ce4125a9922b4a8826bf407f9d0a", "sourceRevision": "Lightricks/LTX-2@47da56e2ad66ce4125a9922b4a8826bf407f9d0a", "sourceLicense": "MoDiff-authored Gallery metadata", - "modelTerms": [ - "https://huggingface.co/Lightricks/LTX-2/tree/47da56e2ad66ce4125a9922b4a8826bf407f9d0a" - ], + "modelTerms": ["https://huggingface.co/Lightricks/LTX-2/tree/47da56e2ad66ce4125a9922b4a8826bf407f9d0a"], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], @@ -18623,9 +18534,7 @@ "sourceUrl": "https://huggingface.co/Lightricks/LTX-2/tree/47da56e2ad66ce4125a9922b4a8826bf407f9d0a", "sourceRevision": "Lightricks/LTX-2@47da56e2ad66ce4125a9922b4a8826bf407f9d0a", "sourceLicense": "MoDiff-authored Gallery metadata", - "modelTerms": [ - "https://huggingface.co/Lightricks/LTX-2/tree/47da56e2ad66ce4125a9922b4a8826bf407f9d0a" - ], + "modelTerms": ["https://huggingface.co/Lightricks/LTX-2/tree/47da56e2ad66ce4125a9922b4a8826bf407f9d0a"], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], @@ -18650,9 +18559,7 @@ "sourceUrl": "https://huggingface.co/Lightricks/LTX-2/tree/47da56e2ad66ce4125a9922b4a8826bf407f9d0a", "sourceRevision": "Lightricks/LTX-2@47da56e2ad66ce4125a9922b4a8826bf407f9d0a", "sourceLicense": "MoDiff-authored Gallery metadata", - "modelTerms": [ - "https://huggingface.co/Lightricks/LTX-2/tree/47da56e2ad66ce4125a9922b4a8826bf407f9d0a" - ], + "modelTerms": ["https://huggingface.co/Lightricks/LTX-2/tree/47da56e2ad66ce4125a9922b4a8826bf407f9d0a"], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], @@ -18677,9 +18584,7 @@ "sourceUrl": "https://huggingface.co/Lightricks/LTX-2/tree/47da56e2ad66ce4125a9922b4a8826bf407f9d0a", "sourceRevision": "Lightricks/LTX-2@47da56e2ad66ce4125a9922b4a8826bf407f9d0a", "sourceLicense": "MoDiff-authored Gallery metadata", - "modelTerms": [ - "https://huggingface.co/Lightricks/LTX-2/tree/47da56e2ad66ce4125a9922b4a8826bf407f9d0a" - ], + "modelTerms": ["https://huggingface.co/Lightricks/LTX-2/tree/47da56e2ad66ce4125a9922b4a8826bf407f9d0a"], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], @@ -18704,9 +18609,7 @@ "sourceUrl": "https://huggingface.co/Lightricks/LTX-2/tree/47da56e2ad66ce4125a9922b4a8826bf407f9d0a", "sourceRevision": "Lightricks/LTX-2@47da56e2ad66ce4125a9922b4a8826bf407f9d0a", "sourceLicense": "MoDiff-authored Gallery metadata", - "modelTerms": [ - "https://huggingface.co/Lightricks/LTX-2/tree/47da56e2ad66ce4125a9922b4a8826bf407f9d0a" - ], + "modelTerms": ["https://huggingface.co/Lightricks/LTX-2/tree/47da56e2ad66ce4125a9922b4a8826bf407f9d0a"], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], @@ -18731,9 +18634,7 @@ "sourceUrl": "https://huggingface.co/Lightricks/LTX-2/tree/47da56e2ad66ce4125a9922b4a8826bf407f9d0a", "sourceRevision": "Lightricks/LTX-2@47da56e2ad66ce4125a9922b4a8826bf407f9d0a", "sourceLicense": "MoDiff-authored Gallery metadata", - "modelTerms": [ - "https://huggingface.co/Lightricks/LTX-2/tree/47da56e2ad66ce4125a9922b4a8826bf407f9d0a" - ], + "modelTerms": ["https://huggingface.co/Lightricks/LTX-2/tree/47da56e2ad66ce4125a9922b4a8826bf407f9d0a"], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], @@ -18758,9 +18659,7 @@ "sourceUrl": "https://huggingface.co/Lightricks/LTX-2/tree/47da56e2ad66ce4125a9922b4a8826bf407f9d0a", "sourceRevision": "Lightricks/LTX-2@47da56e2ad66ce4125a9922b4a8826bf407f9d0a", "sourceLicense": "MoDiff-authored Gallery metadata", - "modelTerms": [ - "https://huggingface.co/Lightricks/LTX-2/tree/47da56e2ad66ce4125a9922b4a8826bf407f9d0a" - ], + "modelTerms": ["https://huggingface.co/Lightricks/LTX-2/tree/47da56e2ad66ce4125a9922b4a8826bf407f9d0a"], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], @@ -18785,9 +18684,7 @@ "sourceUrl": "https://huggingface.co/Lightricks/LTX-2/tree/47da56e2ad66ce4125a9922b4a8826bf407f9d0a", "sourceRevision": "Lightricks/LTX-2@47da56e2ad66ce4125a9922b4a8826bf407f9d0a", "sourceLicense": "MoDiff-authored Gallery metadata", - "modelTerms": [ - "https://huggingface.co/Lightricks/LTX-2/blob/47da56e2ad66ce4125a9922b4a8826bf407f9d0a/LICENSE" - ], + "modelTerms": ["https://huggingface.co/Lightricks/LTX-2/blob/47da56e2ad66ce4125a9922b4a8826bf407f9d0a/LICENSE"], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], @@ -18812,9 +18709,7 @@ "sourceUrl": "https://huggingface.co/Lightricks/LTX-2/tree/47da56e2ad66ce4125a9922b4a8826bf407f9d0a", "sourceRevision": "Lightricks/LTX-2@47da56e2ad66ce4125a9922b4a8826bf407f9d0a", "sourceLicense": "MoDiff-authored Gallery metadata", - "modelTerms": [ - "https://huggingface.co/Lightricks/LTX-2/blob/47da56e2ad66ce4125a9922b4a8826bf407f9d0a/LICENSE" - ], + "modelTerms": ["https://huggingface.co/Lightricks/LTX-2/blob/47da56e2ad66ce4125a9922b4a8826bf407f9d0a/LICENSE"], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], @@ -18839,9 +18734,7 @@ "sourceUrl": "https://huggingface.co/Lightricks/LTX-2/tree/47da56e2ad66ce4125a9922b4a8826bf407f9d0a", "sourceRevision": "Lightricks/LTX-2@47da56e2ad66ce4125a9922b4a8826bf407f9d0a", "sourceLicense": "MoDiff-authored Gallery metadata", - "modelTerms": [ - "https://huggingface.co/Lightricks/LTX-2/blob/47da56e2ad66ce4125a9922b4a8826bf407f9d0a/LICENSE" - ], + "modelTerms": ["https://huggingface.co/Lightricks/LTX-2/blob/47da56e2ad66ce4125a9922b4a8826bf407f9d0a/LICENSE"], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], @@ -18866,9 +18759,7 @@ "sourceUrl": "https://huggingface.co/Lightricks/LTX-2/tree/47da56e2ad66ce4125a9922b4a8826bf407f9d0a", "sourceRevision": "Lightricks/LTX-2@47da56e2ad66ce4125a9922b4a8826bf407f9d0a", "sourceLicense": "MoDiff-authored Gallery metadata", - "modelTerms": [ - "https://huggingface.co/Lightricks/LTX-2/blob/47da56e2ad66ce4125a9922b4a8826bf407f9d0a/LICENSE" - ], + "modelTerms": ["https://huggingface.co/Lightricks/LTX-2/blob/47da56e2ad66ce4125a9922b4a8826bf407f9d0a/LICENSE"], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], @@ -18893,9 +18784,7 @@ "sourceUrl": "https://huggingface.co/Lightricks/LTX-2/tree/47da56e2ad66ce4125a9922b4a8826bf407f9d0a", "sourceRevision": "Lightricks/LTX-2@47da56e2ad66ce4125a9922b4a8826bf407f9d0a", "sourceLicense": "MoDiff-authored Gallery metadata", - "modelTerms": [ - "https://huggingface.co/Lightricks/LTX-2/tree/47da56e2ad66ce4125a9922b4a8826bf407f9d0a" - ], + "modelTerms": ["https://huggingface.co/Lightricks/LTX-2/tree/47da56e2ad66ce4125a9922b4a8826bf407f9d0a"], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], @@ -18920,9 +18809,7 @@ "sourceUrl": "https://huggingface.co/Lightricks/LTX-2/tree/47da56e2ad66ce4125a9922b4a8826bf407f9d0a", "sourceRevision": "Lightricks/LTX-2@47da56e2ad66ce4125a9922b4a8826bf407f9d0a", "sourceLicense": "MoDiff-authored Gallery metadata", - "modelTerms": [ - "https://huggingface.co/Lightricks/LTX-2/tree/47da56e2ad66ce4125a9922b4a8826bf407f9d0a" - ], + "modelTerms": ["https://huggingface.co/Lightricks/LTX-2/tree/47da56e2ad66ce4125a9922b4a8826bf407f9d0a"], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], @@ -18947,9 +18834,7 @@ "sourceUrl": "https://huggingface.co/Lightricks/LTX-2/tree/47da56e2ad66ce4125a9922b4a8826bf407f9d0a", "sourceRevision": "Lightricks/LTX-2@47da56e2ad66ce4125a9922b4a8826bf407f9d0a", "sourceLicense": "MoDiff-authored Gallery metadata", - "modelTerms": [ - "https://huggingface.co/Lightricks/LTX-2/tree/47da56e2ad66ce4125a9922b4a8826bf407f9d0a" - ], + "modelTerms": ["https://huggingface.co/Lightricks/LTX-2/tree/47da56e2ad66ce4125a9922b4a8826bf407f9d0a"], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], @@ -18974,9 +18859,7 @@ "sourceUrl": "https://huggingface.co/Lightricks/LTX-2/tree/47da56e2ad66ce4125a9922b4a8826bf407f9d0a", "sourceRevision": "Lightricks/LTX-2@47da56e2ad66ce4125a9922b4a8826bf407f9d0a", "sourceLicense": "MoDiff-authored Gallery metadata", - "modelTerms": [ - "https://huggingface.co/Lightricks/LTX-2/tree/47da56e2ad66ce4125a9922b4a8826bf407f9d0a" - ], + "modelTerms": ["https://huggingface.co/Lightricks/LTX-2/tree/47da56e2ad66ce4125a9922b4a8826bf407f9d0a"], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], @@ -18989,7 +18872,115 @@ "reviewClass": "per-file-maintainer-accepted-retained-registration", "humanApprovalPacketSHA256": "aeba59d388381d75a2935a470ac831faabbd1f0b0be51af0bca839e601c1d034", "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", - "provenanceTemplateId": "ltx2_surf_below_the_breakwater" + "provenanceTemplateId": "ltx2_surf_below_the_breakwater" + }, + { + "path": "template-gallery/reviews/ltx_long_wind_and_tide_at_the_headland.original-provenance.json", + "sha256": "sha256:bytes:2246d2229387b0b8333ea331c7e908267fd298ee62361328594ef0e1c0454261", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/Lightricks/LTX-Video-0.9.8-13B-distilled/tree/7c64400e1861cc0d7b98d570a1926d5408ec60cd", + "sourceRevision": "Lightricks/LTX-Video-0.9.8-13B-distilled@7c64400e1861cc0d7b98d570a1926d5408ec60cd", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "Publisher model terms at https://huggingface.co/Lightricks/LTX-Video-0.9.8-13B-distilled/tree/7c64400e1861cc0d7b98d570a1926d5408ec60cd" + ], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "Lightricks/LTX-Video-0.9.8-13B-distilled@7c64400e1861cc0d7b98d570a1926d5408ec60cd https://huggingface.co/Lightricks/LTX-Video-0.9.8-13B-distilled/tree/7c64400e1861cc0d7b98d570a1926d5408ec60cd" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "f90bf0978ad3ec5d295b6d9d5e339207e3586b52567987aa1930881dd1f46e4e", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "ltx_long_wind_and_tide_at_the_headland" + }, + { + "path": "template-gallery/reviews/ltx_long_wind_and_tide_at_the_headland.original-review.json", + "sha256": "sha256:bytes:d07b5483c13439d9addbf9e12c3a7bb1be8f7770ec1a895dab76387d3987560f", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/Lightricks/LTX-Video-0.9.8-13B-distilled/tree/7c64400e1861cc0d7b98d570a1926d5408ec60cd", + "sourceRevision": "Lightricks/LTX-Video-0.9.8-13B-distilled@7c64400e1861cc0d7b98d570a1926d5408ec60cd", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "Publisher model terms at https://huggingface.co/Lightricks/LTX-Video-0.9.8-13B-distilled/tree/7c64400e1861cc0d7b98d570a1926d5408ec60cd" + ], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "Lightricks/LTX-Video-0.9.8-13B-distilled@7c64400e1861cc0d7b98d570a1926d5408ec60cd https://huggingface.co/Lightricks/LTX-Video-0.9.8-13B-distilled/tree/7c64400e1861cc0d7b98d570a1926d5408ec60cd" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "f90bf0978ad3ec5d295b6d9d5e339207e3586b52567987aa1930881dd1f46e4e", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "ltx_long_wind_and_tide_at_the_headland" + }, + { + "path": "template-gallery/reviews/ltx_long_wind_and_tide_at_the_headland.quality-review.json", + "sha256": "sha256:bytes:88a3a90318d651835043e95c78198db78dc4e1e47992c6c83798d8fc03f8994e", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/Lightricks/LTX-Video-0.9.8-13B-distilled/tree/7c64400e1861cc0d7b98d570a1926d5408ec60cd", + "sourceRevision": "Lightricks/LTX-Video-0.9.8-13B-distilled@7c64400e1861cc0d7b98d570a1926d5408ec60cd", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "Publisher model terms at https://huggingface.co/Lightricks/LTX-Video-0.9.8-13B-distilled/tree/7c64400e1861cc0d7b98d570a1926d5408ec60cd" + ], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "Lightricks/LTX-Video-0.9.8-13B-distilled@7c64400e1861cc0d7b98d570a1926d5408ec60cd https://huggingface.co/Lightricks/LTX-Video-0.9.8-13B-distilled/tree/7c64400e1861cc0d7b98d570a1926d5408ec60cd" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "f90bf0978ad3ec5d295b6d9d5e339207e3586b52567987aa1930881dd1f46e4e", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "ltx_long_wind_and_tide_at_the_headland" + }, + { + "path": "template-gallery/reviews/ltx_long_wind_and_tide_at_the_headland.retained-template-provenance.json", + "sha256": "sha256:bytes:8a0c4e70cbe66ed06f4c7c5538dc6046533d3af2b6d416073878dee089096e60", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/Lightricks/LTX-Video-0.9.8-13B-distilled/tree/7c64400e1861cc0d7b98d570a1926d5408ec60cd", + "sourceRevision": "Lightricks/LTX-Video-0.9.8-13B-distilled@7c64400e1861cc0d7b98d570a1926d5408ec60cd", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "Publisher model terms at https://huggingface.co/Lightricks/LTX-Video-0.9.8-13B-distilled/tree/7c64400e1861cc0d7b98d570a1926d5408ec60cd" + ], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "Lightricks/LTX-Video-0.9.8-13B-distilled@7c64400e1861cc0d7b98d570a1926d5408ec60cd https://huggingface.co/Lightricks/LTX-Video-0.9.8-13B-distilled/tree/7c64400e1861cc0d7b98d570a1926d5408ec60cd" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "f90bf0978ad3ec5d295b6d9d5e339207e3586b52567987aa1930881dd1f46e4e", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "ltx_long_wind_and_tide_at_the_headland" }, { "creatorOrRightsholder": "MoDiff project maintainers", @@ -22482,9 +22473,7 @@ "sourceUrl": "https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14", "sourceRevision": "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14", "sourceLicense": "MoDiff-authored Gallery metadata", - "modelTerms": [ - "CreativeML Open RAIL-M at the pinned Stable Diffusion v1.5 revision." - ], + "modelTerms": ["CreativeML Open RAIL-M at the pinned Stable Diffusion v1.5 revision."], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], @@ -22509,9 +22498,7 @@ "sourceUrl": "https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14", "sourceRevision": "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14", "sourceLicense": "MoDiff-authored Gallery metadata", - "modelTerms": [ - "CreativeML Open RAIL-M at the pinned Stable Diffusion v1.5 revision." - ], + "modelTerms": ["CreativeML Open RAIL-M at the pinned Stable Diffusion v1.5 revision."], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], @@ -22536,9 +22523,7 @@ "sourceUrl": "https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14", "sourceRevision": "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14", "sourceLicense": "MoDiff-authored Gallery metadata", - "modelTerms": [ - "CreativeML Open RAIL-M at the pinned Stable Diffusion v1.5 revision." - ], + "modelTerms": ["CreativeML Open RAIL-M at the pinned Stable Diffusion v1.5 revision."], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], @@ -22563,9 +22548,7 @@ "sourceUrl": "https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14", "sourceRevision": "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14", "sourceLicense": "MoDiff-authored Gallery metadata", - "modelTerms": [ - "CreativeML Open RAIL-M at the pinned Stable Diffusion v1.5 revision." - ], + "modelTerms": ["CreativeML Open RAIL-M at the pinned Stable Diffusion v1.5 revision."], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], @@ -26220,6 +26203,118 @@ "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", "provenanceTemplateId": "wan_ti2v_subway_musician" }, + { + "path": "template-gallery/reviews/wan_vace_amber_glass_stabilized.original-provenance.json", + "sha256": "sha256:bytes:6b08670223819852e7ed62a06af7ddf1707a38b7364f2269aa22d5e6592dce0b", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/Wan-AI/Wan2.1-VACE-1.3B-diffusers/tree/ec4d2cb062b548996b179d493fdd05340de702a1", + "sourceRevision": "Wan-AI/Wan2.1-VACE-1.3B-diffusers@ec4d2cb062b548996b179d493fdd05340de702a1", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "https://huggingface.co/Wan-AI/Wan2.1-VACE-1.3B-diffusers/tree/ec4d2cb062b548996b179d493fdd05340de702a1", + "https://huggingface.co/nateraw/real-esrgan/tree/42efb9c3eeed1f5c0c8a626cf5f7f4481dfbb094" + ], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "Wan-AI/Wan2.1-VACE-1.3B-diffusers@ec4d2cb062b548996b179d493fdd05340de702a1 https://huggingface.co/Wan-AI/Wan2.1-VACE-1.3B-diffusers/tree/ec4d2cb062b548996b179d493fdd05340de702a1" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "f90bf0978ad3ec5d295b6d9d5e339207e3586b52567987aa1930881dd1f46e4e", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "wan_vace_amber_glass_stabilized" + }, + { + "path": "template-gallery/reviews/wan_vace_amber_glass_stabilized.original-review.json", + "sha256": "sha256:bytes:66f4440a92234772ba4de1ccd6eec655251cb53b2059e99568a6f7fa7f1254c0", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/Wan-AI/Wan2.1-VACE-1.3B-diffusers/tree/ec4d2cb062b548996b179d493fdd05340de702a1", + "sourceRevision": "Wan-AI/Wan2.1-VACE-1.3B-diffusers@ec4d2cb062b548996b179d493fdd05340de702a1", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "https://huggingface.co/Wan-AI/Wan2.1-VACE-1.3B-diffusers/tree/ec4d2cb062b548996b179d493fdd05340de702a1", + "https://huggingface.co/nateraw/real-esrgan/tree/42efb9c3eeed1f5c0c8a626cf5f7f4481dfbb094" + ], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "Wan-AI/Wan2.1-VACE-1.3B-diffusers@ec4d2cb062b548996b179d493fdd05340de702a1 https://huggingface.co/Wan-AI/Wan2.1-VACE-1.3B-diffusers/tree/ec4d2cb062b548996b179d493fdd05340de702a1" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "f90bf0978ad3ec5d295b6d9d5e339207e3586b52567987aa1930881dd1f46e4e", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "wan_vace_amber_glass_stabilized" + }, + { + "path": "template-gallery/reviews/wan_vace_amber_glass_stabilized.quality-review.json", + "sha256": "sha256:bytes:fecde3eeefab0f0a2351a6ceaacb18fddf91668c5f74e0e847962ae98e28a404", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/Wan-AI/Wan2.1-VACE-1.3B-diffusers/tree/ec4d2cb062b548996b179d493fdd05340de702a1", + "sourceRevision": "Wan-AI/Wan2.1-VACE-1.3B-diffusers@ec4d2cb062b548996b179d493fdd05340de702a1", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "https://huggingface.co/Wan-AI/Wan2.1-VACE-1.3B-diffusers/tree/ec4d2cb062b548996b179d493fdd05340de702a1", + "https://huggingface.co/nateraw/real-esrgan/tree/42efb9c3eeed1f5c0c8a626cf5f7f4481dfbb094" + ], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "Wan-AI/Wan2.1-VACE-1.3B-diffusers@ec4d2cb062b548996b179d493fdd05340de702a1 https://huggingface.co/Wan-AI/Wan2.1-VACE-1.3B-diffusers/tree/ec4d2cb062b548996b179d493fdd05340de702a1" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "f90bf0978ad3ec5d295b6d9d5e339207e3586b52567987aa1930881dd1f46e4e", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "wan_vace_amber_glass_stabilized" + }, + { + "path": "template-gallery/reviews/wan_vace_amber_glass_stabilized.retained-template-provenance.json", + "sha256": "sha256:bytes:7eba7fc91b85672ce34324a462f2a040c52857c8b72c739e4a37b17315fe9e76", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/Wan-AI/Wan2.1-VACE-1.3B-diffusers/tree/ec4d2cb062b548996b179d493fdd05340de702a1", + "sourceRevision": "Wan-AI/Wan2.1-VACE-1.3B-diffusers@ec4d2cb062b548996b179d493fdd05340de702a1", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "https://huggingface.co/Wan-AI/Wan2.1-VACE-1.3B-diffusers/tree/ec4d2cb062b548996b179d493fdd05340de702a1", + "https://huggingface.co/nateraw/real-esrgan/tree/42efb9c3eeed1f5c0c8a626cf5f7f4481dfbb094" + ], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "Wan-AI/Wan2.1-VACE-1.3B-diffusers@ec4d2cb062b548996b179d493fdd05340de702a1 https://huggingface.co/Wan-AI/Wan2.1-VACE-1.3B-diffusers/tree/ec4d2cb062b548996b179d493fdd05340de702a1" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "f90bf0978ad3ec5d295b6d9d5e339207e3586b52567987aa1930881dd1f46e4e", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "wan_vace_amber_glass_stabilized" + }, { "path": "template-gallery/reviews/wan_vace_amber_rings_after_rain.original-provenance.json", "sha256": "sha256:bytes:4596d993891c34f721ac085d6d9377e63af8610998160c4d582fc2761b1efdff", @@ -27394,9 +27489,7 @@ "reviewedBy": "SOURAV DAS", "reviewedAt": "2026-08-03", "reviewClass": "standard-human-attestation", - "consumingTemplateIds": [ - "wan_vace_outpaint_reframe" - ] + "consumingTemplateIds": ["wan_vace_outpaint_reframe"] }, { "path": "template-gallery/runtime-inputs/assets/124415536a8071baccf8821232ad79a0a8ceec30ae62617c91a8d7a0b59d0a8c.webp", @@ -27419,9 +27512,7 @@ "reviewedBy": "SOURAV DAS", "reviewedAt": "2026-08-03", "reviewClass": "standard-human-attestation", - "consumingTemplateIds": [ - "qwen_logo_texture" - ] + "consumingTemplateIds": ["qwen_logo_texture"] }, { "path": "template-gallery/runtime-inputs/assets/16f6ea27b5d7cfaed106e2e694572bbe92b7c7e2a43835b3f4313a748f510f74.png", @@ -27444,9 +27535,7 @@ "reviewedBy": "SOURAV DAS", "reviewedAt": "2026-08-03", "reviewClass": "standard-human-attestation", - "consumingTemplateIds": [ - "flux_fill_inpaint" - ] + "consumingTemplateIds": ["flux_fill_inpaint"] }, { "path": "template-gallery/runtime-inputs/assets/1d993540e914f0e2d230f1133b57ae14bb837829237a53c89613fcdef6699995.webp", @@ -27469,9 +27558,7 @@ "reviewedBy": "SOURAV DAS", "reviewedAt": "2026-08-03", "reviewClass": "standard-human-attestation", - "consumingTemplateIds": [ - "flux2_klein_multi_reference" - ] + "consumingTemplateIds": ["flux2_klein_multi_reference"] }, { "path": "template-gallery/runtime-inputs/assets/218d83e0706fec201097582a6e5e00dc79f2d7d1ecb0badba2214c5ecaae1866.mp4", @@ -27494,9 +27581,7 @@ "reviewedBy": "SOURAV DAS", "reviewedAt": "2026-08-03", "reviewClass": "standard-human-attestation", - "consumingTemplateIds": [ - "wan_vace_video_to_video" - ] + "consumingTemplateIds": ["wan_vace_video_to_video"] }, { "path": "template-gallery/runtime-inputs/assets/233d1b3a123fceb4f3b68d2d3a9f5b4129627073b8235fe7248ae6ebdeecb554.mp4", @@ -27522,9 +27607,7 @@ "reviewedBy": "SOURAV DAS", "reviewedAt": "2026-08-03", "reviewClass": "standard-human-attestation", - "consumingTemplateIds": [ - "ltx_video_video_to_video" - ] + "consumingTemplateIds": ["ltx_video_video_to_video"] }, { "path": "template-gallery/runtime-inputs/assets/283b1cfb32b15fe6b31a29dce1f2b96026c1ad0826bf3f24aebebf4b6f9a4f07.webp", @@ -27547,9 +27630,7 @@ "reviewedBy": "SOURAV DAS", "reviewedAt": "2026-08-03", "reviewClass": "standard-human-attestation", - "consumingTemplateIds": [ - "reference_fusion" - ] + "consumingTemplateIds": ["reference_fusion"] }, { "path": "template-gallery/runtime-inputs/assets/29722ed072feec11cd36adce7b6cb48483bff3f05776048b93f960b5554ab533.png", @@ -27572,9 +27653,7 @@ "reviewedBy": "SOURAV DAS", "reviewedAt": "2026-08-03", "reviewClass": "standard-human-attestation", - "consumingTemplateIds": [ - "qwen_inpaint_mask_draft" - ] + "consumingTemplateIds": ["qwen_inpaint_mask_draft"] }, { "path": "template-gallery/runtime-inputs/assets/2e0ec8892660785e322468d0153fd2dadf7a4d920fce2d7d4a0b686a8fe8515d.webp", @@ -27597,9 +27676,7 @@ "reviewedBy": "SOURAV DAS", "reviewedAt": "2026-08-03", "reviewClass": "standard-human-attestation", - "consumingTemplateIds": [ - "flux_redux_edit" - ] + "consumingTemplateIds": ["flux_redux_edit"] }, { "path": "template-gallery/runtime-inputs/assets/2e202069a584ee5ada91e2deaea6bf7b92a94f4816e669e695d7cb64d5a1cb0e.png", @@ -27622,9 +27699,7 @@ "reviewedBy": "SOURAV DAS", "reviewedAt": "2026-08-03", "reviewClass": "standard-human-attestation", - "consumingTemplateIds": [ - "flux_depth_control" - ] + "consumingTemplateIds": ["flux_depth_control"] }, { "creatorOrRightsholder": "MoDiff project maintainers, subject to original synthetic source terms", @@ -27673,9 +27748,7 @@ "reviewedBy": "SOURAV DAS", "reviewedAt": "2026-08-03", "reviewClass": "standard-human-attestation", - "consumingTemplateIds": [ - "ace_step_audio_continuation" - ] + "consumingTemplateIds": ["ace_step_audio_continuation"] }, { "path": "template-gallery/runtime-inputs/assets/38a6f334f89048effe579fc473d6fb38437eb579f324ac399d1ec0f6509f74d9.webp", @@ -27698,9 +27771,7 @@ "reviewedBy": "SOURAV DAS", "reviewedAt": "2026-08-03", "reviewClass": "standard-human-attestation", - "consumingTemplateIds": [ - "ltx_video_long_showcase" - ] + "consumingTemplateIds": ["ltx_video_long_showcase"] }, { "path": "template-gallery/runtime-inputs/assets/39428f00f67b49fc6d624617df2964c9f869de21e7e188ef5b231ae04c4aeacc.webp", @@ -27723,10 +27794,7 @@ "reviewedBy": "SOURAV DAS", "reviewedAt": "2026-08-03", "reviewClass": "standard-human-attestation", - "consumingTemplateIds": [ - "qwen_multi_reference_product", - "reference_fusion" - ] + "consumingTemplateIds": ["qwen_multi_reference_product", "reference_fusion"] }, { "path": "template-gallery/runtime-inputs/assets/3c4d3a7a58a7be7f8d8920106dcfea30e28b4af115ce406bcf5b16cec4b4297a.mp4", @@ -27749,9 +27817,7 @@ "reviewedBy": "SOURAV DAS", "reviewedAt": "2026-08-03", "reviewClass": "standard-human-attestation", - "consumingTemplateIds": [ - "wan_vace_outpaint_reframe" - ] + "consumingTemplateIds": ["wan_vace_outpaint_reframe"] }, { "creatorOrRightsholder": "MoDiff project maintainers, subject to original synthetic source terms", @@ -27800,9 +27866,7 @@ "reviewedBy": "SOURAV DAS", "reviewedAt": "2026-08-03", "reviewClass": "standard-human-attestation", - "consumingTemplateIds": [ - "flux_control_canny" - ] + "consumingTemplateIds": ["flux_control_canny"] }, { "creatorOrRightsholder": "MoDiff project maintainers, subject to original synthetic source terms", @@ -27851,9 +27915,7 @@ "reviewedBy": "SOURAV DAS", "reviewedAt": "2026-08-03", "reviewClass": "standard-human-attestation", - "consumingTemplateIds": [ - "qwen_multi_reference_product" - ] + "consumingTemplateIds": ["qwen_multi_reference_product"] }, { "path": "template-gallery/runtime-inputs/assets/4b1b8d9e351abd437f2ffff90cc6a958160a87863ba4d8e85a0aa80a37e7a10e.webp", @@ -27876,9 +27938,7 @@ "reviewedBy": "SOURAV DAS", "reviewedAt": "2026-08-03", "reviewClass": "standard-human-attestation", - "consumingTemplateIds": [ - "qwen_character_angles" - ] + "consumingTemplateIds": ["qwen_character_angles"] }, { "path": "template-gallery/runtime-inputs/assets/4b800b6a362c9ad7755858a3ec2affbda8706c5a71578ced35b80432fd234741.webp", @@ -27901,9 +27961,7 @@ "reviewedBy": "SOURAV DAS", "reviewedAt": "2026-08-03", "reviewClass": "standard-human-attestation", - "consumingTemplateIds": [ - "flux_redux_multi_reference" - ] + "consumingTemplateIds": ["flux_redux_multi_reference"] }, { "creatorOrRightsholder": "MoDiff project maintainers, subject to original synthetic source terms", @@ -27952,9 +28010,7 @@ "reviewedBy": "SOURAV DAS", "reviewedAt": "2026-08-03", "reviewClass": "standard-human-attestation", - "consumingTemplateIds": [ - "ltx_video_multi_reference" - ] + "consumingTemplateIds": ["ltx_video_multi_reference"] }, { "path": "template-gallery/runtime-inputs/assets/6224e9ee47765858f2ec0c33679140d020cf3ad6e4fa2fa4557ef50f811aef0e.webp", @@ -27977,9 +28033,7 @@ "reviewedBy": "SOURAV DAS", "reviewedAt": "2026-08-03", "reviewClass": "standard-human-attestation", - "consumingTemplateIds": [ - "qwen_tile_extract" - ] + "consumingTemplateIds": ["qwen_tile_extract"] }, { "path": "template-gallery/runtime-inputs/assets/70c74691e2bcd7cdb352b7e64e5af5a1a7f01d77112d32a8edadc0060a95ef34.png", @@ -28002,9 +28056,7 @@ "reviewedBy": "maintainer (current user)", "reviewedAt": "2026-11-12", "reviewClass": "per-file-maintainer-accepted-native-three-registration", - "consumingTemplateIds": [ - "flux_kontext_multi_reference" - ], + "consumingTemplateIds": ["flux_kontext_multi_reference"], "derivedFromContentHash": "sha256:bytes:9f421cdc0fa80b3aae368bd3b20a8f6f05942ec461f88541f01aec5390468897", "publicationBasis": "Existing maintainer publication authorization and current explicit instruction to register these three accepted assets; no new ownership or rights quotation is fabricated.", "humanApprovalPacketSHA256": "69c6b3d9b0ea2fcca16ee538f6e75b414b7141658b74f10578758e61360f63fd" @@ -28030,9 +28082,7 @@ "reviewedBy": "SOURAV DAS", "reviewedAt": "2026-08-03", "reviewClass": "standard-human-attestation", - "consumingTemplateIds": [ - "ltx_video_multi_reference" - ] + "consumingTemplateIds": ["ltx_video_multi_reference"] }, { "path": "template-gallery/runtime-inputs/assets/799d82b016a108d4b6902500b4226afd5d2391f4a7b0693af75255425c943a5e.png", @@ -28055,9 +28105,7 @@ "reviewedBy": "SOURAV DAS", "reviewedAt": "2026-08-03", "reviewClass": "standard-human-attestation", - "consumingTemplateIds": [ - "flux_fill_outpaint" - ] + "consumingTemplateIds": ["flux_fill_outpaint"] }, { "path": "template-gallery/runtime-inputs/assets/7f1ea58485fa7802765b9fbbf0e6957e8607261c91669fdcc44cbed80c6fb309.webp", @@ -28080,9 +28128,7 @@ "reviewedBy": "SOURAV DAS", "reviewedAt": "2026-08-03", "reviewClass": "standard-human-attestation", - "consumingTemplateIds": [ - "flux_redux_multi_reference" - ] + "consumingTemplateIds": ["flux_redux_multi_reference"] }, { "path": "template-gallery/runtime-inputs/assets/862e292caa1759156fffde5cfccda8b97ec622514258f81986188cf63a836ea9.webp", @@ -28105,9 +28151,7 @@ "reviewedBy": "SOURAV DAS", "reviewedAt": "2026-08-03", "reviewClass": "standard-human-attestation", - "consumingTemplateIds": [ - "qwen_outpaint_draft" - ] + "consumingTemplateIds": ["qwen_outpaint_draft"] }, { "path": "template-gallery/runtime-inputs/assets/88a7ada5cb91a6ef86de0ff7c26c6b4683df25cc0baa18382371ce0748cd0bd6.webp", @@ -28130,9 +28174,7 @@ "reviewedBy": "SOURAV DAS", "reviewedAt": "2026-08-03", "reviewClass": "standard-human-attestation", - "consumingTemplateIds": [ - "ltx_video_long_showcase" - ] + "consumingTemplateIds": ["ltx_video_long_showcase"] }, { "creatorOrRightsholder": "MoDiff project maintainers, subject to original synthetic source terms", @@ -28181,10 +28223,7 @@ "reviewedBy": "SOURAV DAS", "reviewedAt": "2026-08-03", "reviewClass": "standard-human-attestation", - "consumingTemplateIds": [ - "ltx_video_image_to_video", - "ltx_video_long_showcase" - ] + "consumingTemplateIds": ["ltx_video_image_to_video", "ltx_video_long_showcase"] }, { "path": "template-gallery/runtime-inputs/assets/9328061557396ef591a9f4a6242abf1cdd61082846518726c3114f746ccedd63.webp", @@ -28207,9 +28246,7 @@ "reviewedBy": "SOURAV DAS", "reviewedAt": "2026-08-03", "reviewClass": "standard-human-attestation", - "consumingTemplateIds": [ - "qwen_logo_texture" - ] + "consumingTemplateIds": ["qwen_logo_texture"] }, { "path": "template-gallery/runtime-inputs/assets/965240cf250a9074a7adab394c76070674cf517bed42b6c4647112d17dec84de.webp", @@ -28232,9 +28269,7 @@ "reviewedBy": "SOURAV DAS", "reviewedAt": "2026-08-03", "reviewClass": "standard-human-attestation", - "consumingTemplateIds": [ - "qwen_layered_portrait" - ] + "consumingTemplateIds": ["qwen_layered_portrait"] }, { "path": "template-gallery/runtime-inputs/assets/9f9f9685db5e9f8e1c162a0515151b03912c84777727b38682b65839db501ae6.webp", @@ -28257,9 +28292,7 @@ "reviewedBy": "SOURAV DAS", "reviewedAt": "2026-08-03", "reviewClass": "standard-human-attestation", - "consumingTemplateIds": [ - "qwen_inpaint_object_replace" - ] + "consumingTemplateIds": ["qwen_inpaint_object_replace"] }, { "path": "template-gallery/runtime-inputs/assets/a2f8ac6f5937d6e618b48ce9947153b8233ff7a82dcf67f28766d20b9917d730.webp", @@ -28282,9 +28315,7 @@ "reviewedBy": "SOURAV DAS", "reviewedAt": "2026-08-03", "reviewClass": "standard-human-attestation", - "consumingTemplateIds": [ - "qwen_inpaint_mask_draft" - ] + "consumingTemplateIds": ["qwen_inpaint_mask_draft"] }, { "path": "template-gallery/runtime-inputs/assets/a6d165bd87e2c57ab8cf71fa15de9d8724fccf5782c16c34c25dc77934751676.webp", @@ -28307,9 +28338,7 @@ "reviewedBy": "SOURAV DAS", "reviewedAt": "2026-08-03", "reviewClass": "standard-human-attestation", - "consumingTemplateIds": [ - "qwen_edit_strength_sweep" - ] + "consumingTemplateIds": ["qwen_edit_strength_sweep"] }, { "path": "template-gallery/runtime-inputs/assets/a7b61f36043354596eb01e702474300b222cb32e304bcf259506cad03917ce9b.webp", @@ -28360,10 +28389,7 @@ "reviewedBy": "SOURAV DAS", "reviewedAt": "2026-08-03", "reviewClass": "standard-human-attestation", - "consumingTemplateIds": [ - "qwen_control_image_layout", - "qwen_packaging_dieline" - ] + "consumingTemplateIds": ["qwen_control_image_layout", "qwen_packaging_dieline"] }, { "path": "template-gallery/runtime-inputs/assets/b7c221b367738177e32fece56067d743df96282a6ccb2afd040ee89ea0a8f678.webp", @@ -28386,9 +28412,7 @@ "reviewedBy": "SOURAV DAS", "reviewedAt": "2026-08-03", "reviewClass": "standard-human-attestation", - "consumingTemplateIds": [ - "flux_fill_inpaint" - ] + "consumingTemplateIds": ["flux_fill_inpaint"] }, { "path": "template-gallery/runtime-inputs/assets/b9909f4cbff8af6e97be6d1e4923c67687eee41dbd64b051a018866781da12ab.webp", @@ -28411,9 +28435,7 @@ "reviewedBy": "SOURAV DAS", "reviewedAt": "2026-08-03", "reviewClass": "standard-human-attestation", - "consumingTemplateIds": [ - "character_edit" - ] + "consumingTemplateIds": ["character_edit"] }, { "path": "template-gallery/runtime-inputs/assets/bf4dbaa55b83b19ca56c691e9d1a10d3b838ff2fec926aaea6b526561c68f8e6.png", @@ -28436,9 +28458,7 @@ "reviewedBy": "SOURAV DAS", "reviewedAt": "2026-08-03", "reviewClass": "standard-human-attestation", - "consumingTemplateIds": [ - "flux_fill_outpaint" - ] + "consumingTemplateIds": ["flux_fill_outpaint"] }, { "path": "template-gallery/runtime-inputs/assets/c810699838c636767d2a5b25fb457df94a4b76a70da9a77e77009681779acbf2.webp", @@ -28461,9 +28481,7 @@ "reviewedBy": "SOURAV DAS", "reviewedAt": "2026-08-03", "reviewClass": "standard-human-attestation", - "consumingTemplateIds": [ - "ltx_video_long_showcase" - ] + "consumingTemplateIds": ["ltx_video_long_showcase"] }, { "path": "template-gallery/runtime-inputs/assets/d49908e24c58d144f4264f4028cb0f7f2e72fb02b315443fd021715ebed1e737.webp", @@ -28486,9 +28504,7 @@ "reviewedBy": "SOURAV DAS", "reviewedAt": "2026-08-03", "reviewClass": "standard-human-attestation", - "consumingTemplateIds": [ - "ltx_video_long_showcase" - ] + "consumingTemplateIds": ["ltx_video_long_showcase"] }, { "path": "template-gallery/runtime-inputs/assets/d5ba3943d6c0a264860ba0cde18d87e2d9554a3f7328308f4d771e082a9e0c24.png", @@ -28511,9 +28527,7 @@ "reviewedBy": "SOURAV DAS", "reviewedAt": "2026-08-03", "reviewClass": "standard-human-attestation", - "consumingTemplateIds": [ - "flux2_klein_edit" - ] + "consumingTemplateIds": ["flux2_klein_edit"] }, { "path": "template-gallery/runtime-inputs/assets/d86b921f1be36360b5b660b8a5b9d0e9165e888be8a06fe2d8f362e87de40429.mp4", @@ -28536,9 +28550,7 @@ "reviewedBy": "SOURAV DAS", "reviewedAt": "2026-08-03", "reviewClass": "standard-human-attestation", - "consumingTemplateIds": [ - "wan_vace_video_color_grade" - ] + "consumingTemplateIds": ["wan_vace_video_color_grade"] }, { "path": "template-gallery/runtime-inputs/assets/d898e00f3be4b28e237f71acf8024ad3715a657e1fcf3aeaf57279468dff7a76.webp", @@ -28561,9 +28573,7 @@ "reviewedBy": "SOURAV DAS", "reviewedAt": "2026-08-03", "reviewClass": "standard-human-attestation", - "consumingTemplateIds": [ - "qwen_outpaint_aspect_template" - ] + "consumingTemplateIds": ["qwen_outpaint_aspect_template"] }, { "path": "template-gallery/runtime-inputs/assets/ddaccd06100d51494e5aaaecedab7b27eaeeda5290d453498d3e1cb9460ad474.webp", @@ -28586,9 +28596,7 @@ "reviewedBy": "SOURAV DAS", "reviewedAt": "2026-08-03", "reviewClass": "standard-human-attestation", - "consumingTemplateIds": [ - "ltx_video_long_showcase" - ] + "consumingTemplateIds": ["ltx_video_long_showcase"] }, { "path": "template-gallery/runtime-inputs/assets/e07d05a658d361b6d28af62bcccfaeba9254507467dae1c5839efd546fed96a7.wav", @@ -28611,10 +28619,7 @@ "reviewedBy": "SOURAV DAS", "reviewedAt": "2026-08-03", "reviewClass": "standard-human-attestation", - "consumingTemplateIds": [ - "ace_step_audio_repaint", - "ace_step_audio_variation" - ] + "consumingTemplateIds": ["ace_step_audio_repaint", "ace_step_audio_variation"] }, { "path": "template-gallery/runtime-inputs/assets/e0ab22f77f5d966d7868f8950f79702dc6d156d0eaef3e06205097558d5c5bb2.webp", @@ -28637,9 +28642,7 @@ "reviewedBy": "SOURAV DAS", "reviewedAt": "2026-08-03", "reviewClass": "standard-human-attestation", - "consumingTemplateIds": [ - "qwen_product_ad_composite" - ] + "consumingTemplateIds": ["qwen_product_ad_composite"] }, { "path": "template-gallery/runtime-inputs/assets/e0f19676addbba6fe954711c235878ef43495e8066b84ed70b5c240a8512b026.mp4", @@ -28662,9 +28665,7 @@ "reviewedBy": "SOURAV DAS", "reviewedAt": "2026-08-03", "reviewClass": "standard-human-attestation", - "consumingTemplateIds": [ - "wan_vace_grayscale_control" - ] + "consumingTemplateIds": ["wan_vace_grayscale_control"] }, { "path": "template-gallery/runtime-inputs/assets/e14e0fb4bccace254e3430bbddd49728980e5445b988eff1ae8164f135d1cc8d.png", @@ -28687,9 +28688,7 @@ "reviewedBy": "SOURAV DAS", "reviewedAt": "2026-08-03", "reviewClass": "standard-human-attestation", - "consumingTemplateIds": [ - "qwen_inpaint_object_replace" - ] + "consumingTemplateIds": ["qwen_inpaint_object_replace"] }, { "creatorOrRightsholder": "MoDiff project maintainers, subject to original synthetic source terms", @@ -28738,9 +28737,7 @@ "reviewedBy": "SOURAV DAS", "reviewedAt": "2026-08-03", "reviewClass": "standard-human-attestation", - "consumingTemplateIds": [ - "qwen_edit_plus_single_image" - ] + "consumingTemplateIds": ["qwen_edit_plus_single_image"] }, { "path": "template-gallery/runtime-inputs/assets/f791a809c0df307cd7dafa8c54ae86bbe4c53d73afdacb2183ff8cdbeac994c2.webp", @@ -28763,9 +28760,7 @@ "reviewedBy": "SOURAV DAS", "reviewedAt": "2026-08-03", "reviewClass": "standard-human-attestation", - "consumingTemplateIds": [ - "qwen_product_relight" - ] + "consumingTemplateIds": ["qwen_product_relight"] }, { "creatorOrRightsholder": "MoDiff project maintainers, subject to original synthetic source terms", @@ -28814,9 +28809,7 @@ "reviewedBy": "SOURAV DAS", "reviewedAt": "2026-08-03", "reviewClass": "standard-human-attestation", - "consumingTemplateIds": [ - "flux2_klein_multi_reference" - ] + "consumingTemplateIds": ["flux2_klein_multi_reference"] }, { "creatorOrRightsholder": "MoDiff project maintainers, subject to original synthetic source terms", @@ -29528,9 +29521,7 @@ "sourceUrl": "https://huggingface.co/black-forest-labs/flux-3-image-klein/tree/8454017f9ebaada30c998fccd9f67a80c7580f68", "sourceRevision": "black-forest-labs/flux-3-image-klein@8454017f9ebaada30c998fccd9f67a80c7580f68", "sourceLicense": "Apache-2.0 project-authored metadata", - "modelTerms": [ - "black-forest-labs/flux-3-image-klein@8454017f9ebaada30c998fccd9f67a80c7580f68: Apache-2.0" - ], + "modelTerms": ["black-forest-labs/flux-3-image-klein@8454017f9ebaada30c998fccd9f67a80c7580f68: Apache-2.0"], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], @@ -29551,9 +29542,7 @@ "sourceUrl": "https://huggingface.co/black-forest-labs/flux-3-image-klein/tree/8454017f9ebaada30c998fccd9f67a80c7580f68", "sourceRevision": "black-forest-labs/flux-3-image-klein@8454017f9ebaada30c998fccd9f67a80c7580f68", "sourceLicense": "Original synthetic generation; underlying model terms retained", - "modelTerms": [ - "black-forest-labs/flux-3-image-klein@8454017f9ebaada30c998fccd9f67a80c7580f68: Apache-2.0" - ], + "modelTerms": ["black-forest-labs/flux-3-image-klein@8454017f9ebaada30c998fccd9f67a80c7580f68: Apache-2.0"], "aiGenerated": true, "humanLikenessConsent": "synthetic", "marks": [], @@ -29574,9 +29563,7 @@ "sourceUrl": "https://huggingface.co/black-forest-labs/flux-3-image-klein/tree/8454017f9ebaada30c998fccd9f67a80c7580f68", "sourceRevision": "black-forest-labs/flux-3-image-klein@8454017f9ebaada30c998fccd9f67a80c7580f68", "sourceLicense": "Apache-2.0 project-authored metadata", - "modelTerms": [ - "black-forest-labs/flux-3-image-klein@8454017f9ebaada30c998fccd9f67a80c7580f68: Apache-2.0" - ], + "modelTerms": ["black-forest-labs/flux-3-image-klein@8454017f9ebaada30c998fccd9f67a80c7580f68: Apache-2.0"], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], @@ -29597,14 +29584,10 @@ "sourceUrl": "https://huggingface.co/black-forest-labs/flux-3-image-klein/tree/8454017f9ebaada30c998fccd9f67a80c7580f68", "sourceRevision": "black-forest-labs/flux-3-image-klein@8454017f9ebaada30c998fccd9f67a80c7580f68", "sourceLicense": "Original synthetic generation; underlying model terms retained", - "modelTerms": [ - "black-forest-labs/flux-3-image-klein@8454017f9ebaada30c998fccd9f67a80c7580f68: Apache-2.0" - ], + "modelTerms": ["black-forest-labs/flux-3-image-klein@8454017f9ebaada30c998fccd9f67a80c7580f68: Apache-2.0"], "aiGenerated": true, "humanLikenessConsent": "synthetic", - "marks": [ - "Fictional MATERIAL ATLAS label" - ], + "marks": ["Fictional MATERIAL ATLAS label"], "requiredAttribution": [], "assetLicense": "Apache-2.0", "reviewedBy": "SOURAV DAS", @@ -29652,9 +29635,7 @@ ], "aiGenerated": true, "humanLikenessConsent": "synthetic", - "marks": [ - "Fictional MATERIAL ATLAS label" - ], + "marks": ["Fictional MATERIAL ATLAS label"], "requiredAttribution": [], "assetLicense": "Apache-2.0", "reviewedBy": "SOURAV DAS", @@ -29672,9 +29653,7 @@ "sourceUrl": "https://huggingface.co/black-forest-labs/flux-3-image-klein/tree/8454017f9ebaada30c998fccd9f67a80c7580f68", "sourceRevision": "black-forest-labs/flux-3-image-klein@8454017f9ebaada30c998fccd9f67a80c7580f68", "sourceLicense": "Apache-2.0 project-authored metadata", - "modelTerms": [ - "black-forest-labs/flux-3-image-klein@8454017f9ebaada30c998fccd9f67a80c7580f68: Apache-2.0" - ], + "modelTerms": ["black-forest-labs/flux-3-image-klein@8454017f9ebaada30c998fccd9f67a80c7580f68: Apache-2.0"], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], @@ -29695,14 +29674,10 @@ "sourceUrl": "https://huggingface.co/black-forest-labs/flux-3-image-klein/tree/8454017f9ebaada30c998fccd9f67a80c7580f68", "sourceRevision": "black-forest-labs/flux-3-image-klein@8454017f9ebaada30c998fccd9f67a80c7580f68", "sourceLicense": "Original synthetic generation; underlying model terms retained", - "modelTerms": [ - "black-forest-labs/flux-3-image-klein@8454017f9ebaada30c998fccd9f67a80c7580f68: Apache-2.0" - ], + "modelTerms": ["black-forest-labs/flux-3-image-klein@8454017f9ebaada30c998fccd9f67a80c7580f68: Apache-2.0"], "aiGenerated": true, "humanLikenessConsent": "synthetic", - "marks": [ - "Fictional MATERIAL ATLAS label" - ], + "marks": ["Fictional MATERIAL ATLAS label"], "requiredAttribution": [], "assetLicense": "Apache-2.0", "reviewedBy": "SOURAV DAS", @@ -29720,9 +29695,7 @@ "sourceUrl": "https://huggingface.co/black-forest-labs/flux-3-image-klein/tree/8454017f9ebaada30c998fccd9f67a80c7580f68", "sourceRevision": "black-forest-labs/flux-3-image-klein@8454017f9ebaada30c998fccd9f67a80c7580f68", "sourceLicense": "Apache-2.0 project-authored metadata", - "modelTerms": [ - "black-forest-labs/flux-3-image-klein@8454017f9ebaada30c998fccd9f67a80c7580f68: Apache-2.0" - ], + "modelTerms": ["black-forest-labs/flux-3-image-klein@8454017f9ebaada30c998fccd9f67a80c7580f68: Apache-2.0"], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], @@ -29743,9 +29716,7 @@ "sourceUrl": "https://huggingface.co/black-forest-labs/flux-3-image-klein/tree/8454017f9ebaada30c998fccd9f67a80c7580f68", "sourceRevision": "black-forest-labs/flux-3-image-klein@8454017f9ebaada30c998fccd9f67a80c7580f68", "sourceLicense": "Original synthetic generation; underlying model terms retained", - "modelTerms": [ - "black-forest-labs/flux-3-image-klein@8454017f9ebaada30c998fccd9f67a80c7580f68: Apache-2.0" - ], + "modelTerms": ["black-forest-labs/flux-3-image-klein@8454017f9ebaada30c998fccd9f67a80c7580f68: Apache-2.0"], "aiGenerated": true, "humanLikenessConsent": "synthetic", "marks": [], @@ -29766,9 +29737,7 @@ "sourceUrl": "https://huggingface.co/black-forest-labs/flux-3-image-klein/tree/8454017f9ebaada30c998fccd9f67a80c7580f68", "sourceRevision": "black-forest-labs/flux-3-image-klein@8454017f9ebaada30c998fccd9f67a80c7580f68", "sourceLicense": "Apache-2.0 project-authored metadata", - "modelTerms": [ - "black-forest-labs/flux-3-image-klein@8454017f9ebaada30c998fccd9f67a80c7580f68: Apache-2.0" - ], + "modelTerms": ["black-forest-labs/flux-3-image-klein@8454017f9ebaada30c998fccd9f67a80c7580f68: Apache-2.0"], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], @@ -29789,9 +29758,7 @@ "sourceUrl": "https://huggingface.co/black-forest-labs/flux-3-image-klein/tree/8454017f9ebaada30c998fccd9f67a80c7580f68", "sourceRevision": "black-forest-labs/flux-3-image-klein@8454017f9ebaada30c998fccd9f67a80c7580f68", "sourceLicense": "Original synthetic generation; underlying model terms retained", - "modelTerms": [ - "black-forest-labs/flux-3-image-klein@8454017f9ebaada30c998fccd9f67a80c7580f68: Apache-2.0" - ], + "modelTerms": ["black-forest-labs/flux-3-image-klein@8454017f9ebaada30c998fccd9f67a80c7580f68: Apache-2.0"], "aiGenerated": true, "humanLikenessConsent": "synthetic", "marks": [], @@ -29934,9 +29901,7 @@ ], "aiGenerated": true, "humanLikenessConsent": "synthetic", - "marks": [ - "Fictional MATERIAL ATLAS label" - ], + "marks": ["Fictional MATERIAL ATLAS label"], "requiredAttribution": [], "assetLicense": "Apache-2.0", "reviewedBy": "SOURAV DAS", @@ -30074,9 +30039,7 @@ ], "aiGenerated": true, "humanLikenessConsent": "synthetic", - "marks": [ - "Fictional MATERIAL ATLAS label" - ], + "marks": ["Fictional MATERIAL ATLAS label"], "requiredAttribution": [], "assetLicense": "Apache-2.0", "reviewedBy": "SOURAV DAS", @@ -30238,9 +30201,7 @@ "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], - "requiredAttribution": [ - "AI-generated with Lightricks LTX-2.5 Full. Original edit and Foley by MoDiff." - ], + "requiredAttribution": ["AI-generated with Lightricks LTX-2.5 Full. Original edit and Foley by MoDiff."], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace owner", "reviewedAt": "2026-11-18", @@ -30263,9 +30224,7 @@ "aiGenerated": true, "humanLikenessConsent": "synthetic", "marks": [], - "requiredAttribution": [ - "AI-generated with Lightricks LTX-2.5 Full. Original edit and Foley by MoDiff." - ], + "requiredAttribution": ["AI-generated with Lightricks LTX-2.5 Full. Original edit and Foley by MoDiff."], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace owner", "reviewedAt": "2026-11-18", @@ -30288,9 +30247,7 @@ "aiGenerated": true, "humanLikenessConsent": "synthetic", "marks": [], - "requiredAttribution": [ - "AI-generated with Lightricks LTX-2.5 Full. Original edit and Foley by MoDiff." - ], + "requiredAttribution": ["AI-generated with Lightricks LTX-2.5 Full. Original edit and Foley by MoDiff."], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace owner", "reviewedAt": "2026-11-18", @@ -30736,6 +30693,34 @@ "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", "provenanceTemplateId": "wan_ti2v_subway_musician" }, + { + "path": "template-gallery/wan_vace_amber_glass_stabilized.mp4", + "sha256": "sha256:bytes:a90aff3b61c664b51073574cc6c12efa894f45b88226637b254c9d81a53aad87", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Exact approved file captured from a saved MoDiff workflow", + "sourceUrl": "https://huggingface.co/Wan-AI/Wan2.1-VACE-1.3B-diffusers/tree/ec4d2cb062b548996b179d493fdd05340de702a1", + "sourceRevision": "Wan-AI/Wan2.1-VACE-1.3B-diffusers@ec4d2cb062b548996b179d493fdd05340de702a1", + "sourceLicense": "Maintainer-authorized file with publisher terms retained", + "modelTerms": [ + "https://huggingface.co/Wan-AI/Wan2.1-VACE-1.3B-diffusers/tree/ec4d2cb062b548996b179d493fdd05340de702a1", + "https://huggingface.co/nateraw/real-esrgan/tree/42efb9c3eeed1f5c0c8a626cf5f7f4481dfbb094" + ], + "aiGenerated": true, + "humanLikenessConsent": "synthetic", + "marks": [], + "requiredAttribution": [ + "Wan-AI/Wan2.1-VACE-1.3B-diffusers@ec4d2cb062b548996b179d493fdd05340de702a1 https://huggingface.co/Wan-AI/Wan2.1-VACE-1.3B-diffusers/tree/ec4d2cb062b548996b179d493fdd05340de702a1" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "f90bf0978ad3ec5d295b6d9d5e339207e3586b52567987aa1930881dd1f46e4e", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "wan_vace_amber_glass_stabilized" + }, { "path": "template-gallery/wan_vace_amber_rings_after_rain.mp4", "sha256": "sha256:bytes:e89cb86ed3bd34040b7fc6c699f99e21c4dc827ac943258c7d9daad9d58b752c", @@ -31609,9 +31594,7 @@ ], "aiGenerated": true, "humanLikenessConsent": "synthetic", - "marks": [ - "LumaPod project-authored concept name/wordmark approved in this packet" - ], + "marks": ["LumaPod project-authored concept name/wordmark approved in this packet"], "requiredAttribution": [], "path": "template-gallery/z_image_product_mockup.webp", "sha256": "sha256:bytes:0d9c80e29c95d62835f56c95d666ed6d8b47e6792005ab59aef1d1c9b6de84df", diff --git a/config/template-assets.v1.json b/config/template-assets.v1.json index 6966d5ed..12d880ad 100644 --- a/config/template-assets.v1.json +++ b/config/template-assets.v1.json @@ -2267,6 +2267,17 @@ "width": 1024, "height": 1024 }, + { + "path": "template-gallery/inputs/ltx_long_wind_and_tide_at_the_headland.first.png", + "size": 614949, + "sha256": "sha256:bytes:51624f59295a77119bf336a63bfc7731d33d6612bc44b15495bddabdfae3ef51", + "contentType": "image/png", + "purposes": [ + "runtime" + ], + "width": 768, + "height": 512 + }, { "path": "template-gallery/inputs/ltx_video_image_to_video.before.webp", "size": 301384, @@ -3145,6 +3156,35 @@ "width": 768, "height": 512 }, + { + "path": "template-gallery/inputs/wan_vace_amber_glass_stabilized.before.mp4", + "size": 88384819, + "sha256": "sha256:bytes:da6a0abe90bfc8c4efcb4a63201a6db839c944416cef49d452b629fbb86c3ec0", + "contentType": "video/mp4", + "purposes": [ + "runtime" + ] + }, + { + "path": "template-gallery/inputs/wan_vace_amber_glass_stabilized.mask.mp4", + "size": 47859, + "sha256": "sha256:bytes:c8eefe9665e6ba8965e7d48c5e6116f2e3ba230ac35390efb834140c5d4cdf8b", + "contentType": "video/mp4", + "purposes": [ + "runtime" + ] + }, + { + "path": "template-gallery/inputs/wan_vace_amber_glass_stabilized.reference.png", + "size": 1105663, + "sha256": "sha256:bytes:43a36ae8d33da045a6ad1321195cd163ce3188e1d119008860386afacd21dbc2", + "contentType": "image/png", + "purposes": [ + "runtime" + ], + "width": 1664, + "height": 960 + }, { "path": "template-gallery/inputs/wan_vace_grayscale_control.before.mp4", "size": 289576, @@ -3548,6 +3588,15 @@ "runtime" ] }, + { + "path": "template-gallery/ltx_long_wind_and_tide_at_the_headland.mp4", + "size": 235350, + "sha256": "sha256:bytes:62c8d0eb30f3900276fda6c9c48c8e676cc04385bfbbfe117eecd46144cb81ea", + "contentType": "video/mp4", + "purposes": [ + "runtime" + ] + }, { "path": "template-gallery/ltx_video_animated_story.card-poster.png", "size": 2259121, @@ -3801,8 +3850,8 @@ }, { "path": "template-gallery/manifest.json", - "size": 519522, - "sha256": "sha256:bytes:aced8ad0f0bbd93c7c98853b8d17c72da6cbc1c276f77cf0b3becd1bf889867e", + "size": 524756, + "sha256": "sha256:bytes:fe948ccb643e19685fb242236c2c9c5888e3b756de0718c1c39b6c3f694d689b", "contentType": "application/json", "purposes": [ "runtime", @@ -7168,6 +7217,42 @@ "runtime" ] }, + { + "path": "template-gallery/reviews/ltx_long_wind_and_tide_at_the_headland.original-provenance.json", + "size": 3868, + "sha256": "sha256:bytes:2246d2229387b0b8333ea331c7e908267fd298ee62361328594ef0e1c0454261", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, + { + "path": "template-gallery/reviews/ltx_long_wind_and_tide_at_the_headland.original-review.json", + "size": 912, + "sha256": "sha256:bytes:d07b5483c13439d9addbf9e12c3a7bb1be8f7770ec1a895dab76387d3987560f", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, + { + "path": "template-gallery/reviews/ltx_long_wind_and_tide_at_the_headland.quality-review.json", + "size": 3138, + "sha256": "sha256:bytes:88a3a90318d651835043e95c78198db78dc4e1e47992c6c83798d8fc03f8994e", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, + { + "path": "template-gallery/reviews/ltx_long_wind_and_tide_at_the_headland.retained-template-provenance.json", + "size": 4013, + "sha256": "sha256:bytes:8a0c4e70cbe66ed06f4c7c5538dc6046533d3af2b6d416073878dee089096e60", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, { "path": "template-gallery/reviews/ltx_video_animated_story.quality-review.json", "size": 5831, @@ -9690,6 +9775,42 @@ "runtime" ] }, + { + "path": "template-gallery/reviews/wan_vace_amber_glass_stabilized.original-provenance.json", + "size": 2446, + "sha256": "sha256:bytes:6b08670223819852e7ed62a06af7ddf1707a38b7364f2269aa22d5e6592dce0b", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, + { + "path": "template-gallery/reviews/wan_vace_amber_glass_stabilized.original-review.json", + "size": 928, + "sha256": "sha256:bytes:66f4440a92234772ba4de1ccd6eec655251cb53b2059e99568a6f7fa7f1254c0", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, + { + "path": "template-gallery/reviews/wan_vace_amber_glass_stabilized.quality-review.json", + "size": 3296, + "sha256": "sha256:bytes:fecde3eeefab0f0a2351a6ceaacb18fddf91668c5f74e0e847962ae98e28a404", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, + { + "path": "template-gallery/reviews/wan_vace_amber_glass_stabilized.retained-template-provenance.json", + "size": 4686, + "sha256": "sha256:bytes:7eba7fc91b85672ce34324a462f2a040c52857c8b72c739e4a37b17315fe9e76", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, { "path": "template-gallery/reviews/wan_vace_amber_rings_after_rain.original-provenance.json", "size": 1478, @@ -11505,6 +11626,15 @@ "runtime" ] }, + { + "path": "template-gallery/wan_vace_amber_glass_stabilized.mp4", + "size": 24359650, + "sha256": "sha256:bytes:a90aff3b61c664b51073574cc6c12efa894f45b88226637b254c9d81a53aad87", + "contentType": "video/mp4", + "purposes": [ + "runtime" + ] + }, { "path": "template-gallery/wan_vace_amber_rings_after_rain.mp4", "size": 706351, @@ -11906,9 +12036,9 @@ "height": 1024 } ], - "assetSetId": "sha256:canonical-json:9cc2b2a8c2a8a6e7b667dacf0b1916d3831ef00d5f1cfdad7bb40f0dec1ff6c0", + "assetSetId": "sha256:canonical-json:8ee20b6e168398e406a81e3eb9b9187741c405571af52f2454956c4e9f500bcb", "status": "ready", - "assetCount": 1228, - "totalBytes": 1171462339, + "assetCount": 1242, + "totalBytes": 1286239150, "missingAssets": [] } diff --git a/docs/workflow-authoring-ux.md b/docs/workflow-authoring-ux.md index a0e572e1..e191d201 100644 --- a/docs/workflow-authoring-ux.md +++ b/docs/workflow-authoring-ux.md @@ -28,6 +28,12 @@ its library, adapter, schema and ordered modes still match the current registry. A separately consumed intermediate remains accessible. Opening an existing user document respects the presentation saved in that document. +Scheduled video recipes load their prompt windows into the Generate stage on +first open. Masked video recipes can place a single Composite stage between +Upscale and Video Output. It takes the original clip, the generated clip, and +the aligned mask from their existing connections. Prepare Mask owns mask +growth. Composite owns edge feathering. + ## Start a workflow In Developer, search for an action or filter by Image, Audio, Video, 3D, or Text & diff --git a/public/template-gallery/manifest.json b/public/template-gallery/manifest.json index bb3d67ee..f848ba60 100644 --- a/public/template-gallery/manifest.json +++ b/public/template-gallery/manifest.json @@ -6657,6 +6657,74 @@ "approvedOriginalReviewPath": "/template-gallery/reviews/sdxl_pag_two_tier_cobalt_glass.original-review.json", "approvedOriginalProvenancePath": "/template-gallery/reviews/sdxl_pag_two_tier_cobalt_glass.original-provenance.json", "approvedGuidePath": "/template-gallery/inputs/sdxl_pag_two_tier_cobalt_glass.guide.png" + }, + { + "templateId": "wan_vace_amber_glass_stabilized", + "templateLockHash": "tpl_6035cabd", + "promptSettingsHash": "ps_1cd79e28", + "modelRevision": "Wan-AI/Wan2.1-VACE-1.3B-diffusers@ec4d2cb062b548996b179d493fdd05340de702a1", + "runtimeFingerprint": "sha256:stable-runtime-v1:fa4b17845460bc78e1186b428ef9b3f53a5dcac8053c54fcf8a41cdad917552f", + "graphHash": "sha256:canonical-graph-v1:5b7ac5d2442e6c92e28ee9bff7e02847c3de46dc2570e5d7eb779583f186fc0c", + "proofLockHash": "sha256:retained-template-association-v1:1d75c8e6f41302773097064fca37bf0f457e83e61b5ae0053871f00a075a8733", + "backendSourceFingerprint": "sha256:backend-source-v1:438519cbac050bb30e69d86506f4510f260d790899896038d9707a5edd488e95", + "backendContractFingerprint": "sha256:backend-contract-v1:5a281b9ce038d5cd332f93df5f1a29c485cf04edd0b8b809b2921217daeb7010", + "modelCommit": "ec4d2cb062b548996b179d493fdd05340de702a1", + "templateRevisionHash": "0a03ac711cd90be44c4f79f9d39ce3afa4e0cad264bdfc24294d625ce551181d", + "provenancePath": "/template-gallery/reviews/wan_vace_amber_glass_stabilized.retained-template-provenance.json", + "provenanceHash": "sha256:canonical-json:63483b5e8a32e021b2318f9b2765679b44d8423df3df0a817e06995bc7a8ed24", + "outputPath": "/template-gallery/wan_vace_amber_glass_stabilized.mp4", + "thumbnailPath": "/template-gallery/wan_vace_amber_glass_stabilized.mp4", + "mediaType": "video", + "mediaHash": "sha256:decoded-video-framemd5:19fea526934abe015732f233692f3575a9027bad1252326f7dbea48368204092", + "width": 1664, + "height": 960, + "verificationTimestamp": "2026-11-17T04:47:18.627Z", + "verificationStatus": "reviewed", + "qualityReviewStatus": "approved_reviewed", + "qualityReviewHash": "sha256:canonical-json:4933d3ff862e2fada194bcb7ee5d6a0ca06b4f4d21810b8719c77801fbf58f8e", + "qualityReviewPath": "/template-gallery/reviews/wan_vace_amber_glass_stabilized.quality-review.json", + "reviewer": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25T15:10:00.323Z", + "frames": 161, + "durationSeconds": 10.0625, + "approvedOriginalReviewPath": "/template-gallery/reviews/wan_vace_amber_glass_stabilized.original-review.json", + "approvedOriginalProvenancePath": "/template-gallery/reviews/wan_vace_amber_glass_stabilized.original-provenance.json", + "approvedSourcePath": "/template-gallery/inputs/wan_vace_amber_glass_stabilized.before.mp4", + "approvedMaskPath": "/template-gallery/inputs/wan_vace_amber_glass_stabilized.mask.mp4", + "approvedReferenceImagePath": "/template-gallery/inputs/wan_vace_amber_glass_stabilized.reference.png" + }, + { + "templateId": "ltx_long_wind_and_tide_at_the_headland", + "templateLockHash": "tpl_3bb28fd4", + "promptSettingsHash": "ps_75d6a3e5", + "modelRevision": "Lightricks/LTX-Video-0.9.8-13B-distilled@7c64400e1861cc0d7b98d570a1926d5408ec60cd", + "runtimeFingerprint": "sha256:stable-runtime-v1:d256b021b495a5fee0efa20922d52d0c46c17996d45ae7386dea47cfbc87d7b6", + "graphHash": "sha256:canonical-graph-v1:cdee10882c28fd4417274cbcd16101f9b7a2d144cf8ab828ab261ff6b660e673", + "proofLockHash": "sha256:retained-template-association-v1:f6c9fa6e78f715d221684ab689797418c3b4056c8571311e125cf7393a417d28", + "backendSourceFingerprint": "sha256:backend-source-v1:b29a5b0d317aaa781ae2a5205b46b518eea5a3d68a214eb0968dba4ac0660af7", + "backendContractFingerprint": "sha256:backend-contract-v1:d68ff3c7d7b2d190e68d6f148834ae971638c23a9d31086a3848874658f37da2", + "modelCommit": "7c64400e1861cc0d7b98d570a1926d5408ec60cd", + "templateRevisionHash": "73e9ef351cbe53f541789d49ac53118ad61dbc234b40f1c516bd982f9e621153", + "provenancePath": "/template-gallery/reviews/ltx_long_wind_and_tide_at_the_headland.retained-template-provenance.json", + "provenanceHash": "sha256:canonical-json:ba767407427783cb65aadd18b220b6226259048d02fbb8140fe1bb07c8597781", + "outputPath": "/template-gallery/ltx_long_wind_and_tide_at_the_headland.mp4", + "thumbnailPath": "/template-gallery/ltx_long_wind_and_tide_at_the_headland.mp4", + "mediaType": "video", + "mediaHash": "sha256:decoded-video-framemd5:eaf29d941d16d4ff5c7b9f254db3b00454d7dc3ea68c0310ed1c8122d347fa7b", + "width": 768, + "height": 512, + "verificationTimestamp": "2026-11-25T11:16:56.343Z", + "verificationStatus": "reviewed", + "qualityReviewStatus": "approved_reviewed", + "qualityReviewHash": "sha256:canonical-json:af6d2cc9e7fd9de9bf51456806f42763b564e25ecc98cc435945a9ec9d2dda26", + "qualityReviewPath": "/template-gallery/reviews/ltx_long_wind_and_tide_at_the_headland.quality-review.json", + "reviewer": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25T15:10:00.323Z", + "frames": 129, + "durationSeconds": 5.375, + "approvedOriginalReviewPath": "/template-gallery/reviews/ltx_long_wind_and_tide_at_the_headland.original-review.json", + "approvedOriginalProvenancePath": "/template-gallery/reviews/ltx_long_wind_and_tide_at_the_headland.original-provenance.json", + "approvedSourcePath": "/template-gallery/inputs/ltx_long_wind_and_tide_at_the_headland.first.png" } ] } diff --git a/scripts/retained-gallery-templates.test.mjs b/scripts/retained-gallery-templates.test.mjs index 5551fa7c..c3850bb1 100644 --- a/scripts/retained-gallery-templates.test.mjs +++ b/scripts/retained-gallery-templates.test.mjs @@ -51,7 +51,7 @@ before(async () => { process.env.MODIFF_BACKEND_PYTHON || join(backend, '.venv', process.platform === 'win32' ? 'Scripts/python.exe' : 'bin/python'); const script = join(client, 'scripts/template-operation-fixtures.py'); - const args = [script, '--mock-cuda', '--studio-spec-only']; + const args = [script, '--mock-cuda']; fixture = JSON.parse( execFileSync( process.platform === 'win32' ? python : join(backend, 'scripts/with-runtime-env.sh'), @@ -62,9 +62,10 @@ before(async () => { maxBuffer: 64 * 1024 * 1024, env: { ...process.env, MODIFF_BACKEND_DIR: backend }, input: JSON.stringify( - recipes.map(({ template: { id, modelType, mode } }) => ({ + recipes.map(({ template: { id, modelType, mode, executionSelection } }) => ({ id, - selection: { bindingSpec: { modelType, mode } }, + studioSpecOnly: !executionSelection, + selection: executionSelection ?? { bindingSpec: { modelType, mode } }, })), ), stdio: ['pipe', 'pipe', 'pipe'], @@ -175,6 +176,16 @@ test('retained Gallery recipes preserve the native graph identities and standalo const capture = descriptor.capture ? JSON.parse(readCanonicalEvidenceFile(evidenceRoot, descriptor.capture).bytes) : descriptor; + if (descriptor.format === 'modiff.private.saved-vace-composite.v1') { + const run = JSON.parse(readCanonicalEvidenceFile(evidenceRoot, descriptor.run).bytes); + assert.equal(run.task.status, 'completed'); + assert.equal(canonicalGraphIdentity(run.outputs[0].apiGraphSnapshot).hash, recipe.retainedGraphHash); + assert.deepEqual( + [descriptor.sourceVideo.sha256, descriptor.maskVideo.sha256, descriptor.referenceImage.sha256], + [recipe.inputSha256, recipe.maskSha256, recipe.referenceImageSha256], + ); + continue; + } const saved = JSON.parse( readCanonicalEvidenceFile(evidenceRoot, capture.creatorPackage ?? capture.creator).bytes, ); @@ -194,6 +205,7 @@ test('retained Gallery recipes preserve the native graph identities and standalo recipe.guideSha256, recipe.lastFrameSha256, recipe.secondaryReferenceSha256, + recipe.referenceImageSha256, ...Object.values(recipe.videoConditionerHashes ?? {}), ]), ] @@ -276,7 +288,7 @@ test('fresh Expert recipes prepare with current backend specs and without a gene assert.equal(payload.values.pipeline_class, videoContract.pipelineClass); flow.getState().setParam(payload.node, 'pipeline', { direction: 'output', value: videoContract }, 'signal'); } else { - assert.equal(payload.action, 'Generate'); + assert.ok(['Generate', 'GenerateVideoAudio'].includes(payload.action)); assert.equal(payload.fn, 'update_adapter_modes'); assert.deepEqual(payload.values.video_contract, videoContract); } @@ -319,12 +331,60 @@ test('fresh Expert recipes prepare with current backend specs and without a gene // FLF metadata changes the runtime ports. Exercise that transition with // the real backend in the retained first/last-frame browser test. if (recipe.lastFrameSha256) continue; - const { - spec, - imageContract, - audioContract: nextAudioContract, - videoContract: nextVideoContract, - } = fixture.recipes.find((item) => item.id === template.id); + const row = fixture.recipes.find((item) => item.id === template.id); + if (template.workflowBlockSettings?.videoMaskedComposite) { + const { createTemplateOperationGraph } = await server.ssrLoadModule('/src/studio/templateOperationWorkflow.ts'); + const { parseOperationStarter } = await server.ssrLoadModule('/src/workflow/operationStarterRequest.ts'); + const { parseOperationContracts } = await server.ssrLoadModule('/src/workflow/operationContracts.ts'); + assert.ok(template.executionSelection, 'The composite requires its declared normal template graph.'); + studio.getState().createWorkflowTab(template.label, undefined, 'template', template.id); + studio.getState().applyTemplate(template, { + sourceVideo: 'review-source-video.mp4', + maskVideo: 'review-mask-video.mp4', + referenceImages: ['review-reference-image.png'], + }); + const form = studio.getState().form; + const selection = template.executionSelection; + const starter = parseOperationStarter( + row.starter, + selection.pipelineClass, + selection.task, + parseOperationContracts(fixture.publicPayload.operationContracts, 3), + selection, + ); + const capability = fixture.capabilities.find(({ modelType }) => modelType === selection.bindingSpec.modelType); + assert.ok(capability); + const graph = createTemplateOperationGraph(template, form, starter, fixture.registry, row.spec, capability); + const api = flow.getState().exportGraph('retained-video-composite', undefined, { + sourceGraph: graph, + randomizeSeeds: false, + }); + const actions = Object.entries(api.nodes); + const [compositeId, compose] = actions.find(([, node]) => node.action === 'MaskedComposite'); + const [alignedId, aligned] = actions.find(([, node]) => node.action === 'AlignMask'); + const [upscaleId, upscale] = actions.find(([, node]) => node.action === 'Upscaler'); + const [encoderId, encoder] = actions.find(([, node]) => node.action === 'EncodeInputs'); + const [generatedId, generated] = actions.find( + ([, node]) => node.module === 'modules.DiffusersVideo' && node.action === 'Generate', + ); + const output = actions.find(([, node]) => node.module === 'modules.Video' && node.action === 'Export')[1]; + const settings = template.workflowBlockSettings.videoMaskedComposite; + assert.equal(api.nodes[compose.params.source.sourceId].params.file.value, 'review-source-video.mp4'); + assert.equal(api.nodes[aligned.params.mask.sourceId].params.file.value, 'review-mask-video.mp4'); + assert.deepEqual(api.nodes[encoder.params.reference_images.sourceId].params.file.value, [ + 'review-reference-image.png', + ]); + assert.equal(encoder.params.mask.sourceId, alignedId); + assert.equal(generated.params.encoded_inputs.sourceId, encoderId); + assert.equal(upscale.params.image.sourceId, generatedId); + assert.equal(compose.params.generated.sourceId, upscaleId); + assert.equal(compose.params.mask.sourceId, alignedId); + assert.equal(compose.params.feather.value, settings.feather); + assert.equal(aligned.params.grow_pixels.value, settings.maskGrowPixels); + assert.equal(output.params.video.sourceId, compositeId); + continue; + } + const { spec, imageContract, audioContract: nextAudioContract, videoContract: nextVideoContract } = row; contract = imageContract; audioContract = nextAudioContract; videoContract = nextVideoContract; @@ -368,7 +428,7 @@ test('fresh Expert recipes prepare with current backend specs and without a gene ); const form = studio.getState().form; assert.equal(form.device, template.example.lockedSettings.device ?? 'cuda:0'); - assert.equal(form.resourceMode, 'expert'); + assert.equal(form.resourceMode, template.example.lockedSettings.resourceMode ?? 'expert'); assert.equal(form.randomSeed, false); await graphBridge.createOrUpdateStudioGraph(form, undefined, 3000).catch((error) => { assert.fail( @@ -379,6 +439,10 @@ test('fresh Expert recipes prepare with current backend specs and without a gene })}`, ); }); + if (template.workflowBlockSettings?.videoPromptWindows) { + const { applyTemplateVideoPromptWindows } = await server.ssrLoadModule('/src/studio/templateWorkflow.ts'); + applyTemplateVideoPromptWindows(template); + } const binding = studio.getState().graphBinding; assert.equal(binding.executionSpec.contentHash, spec.contentHash); assert.equal(studio.getState().activeWorkflowTabId, tabId); @@ -425,6 +489,16 @@ test('fresh Expert recipes prepare with current backend specs and without a gene assert.equal(generation.params.prompt.value, template.prompt); assert.equal(loader.params.model_id.value.value, template.modelArtifact.value); assert.equal(loader.params.revision.value, template.modelArtifact.revision); + const promptWindows = template.workflowBlockSettings?.videoPromptWindows; + if (promptWindows) { + assert.equal(generation.params.prompt_segments_json.value, promptWindows.promptsJson); + assert.equal(generation.params.segment_frame_length.value, promptWindows.segmentFrameLength); + assert.equal(generation.params.temporal_overlap.value, promptWindows.temporalOverlap); + assert.equal( + generation.params.temporal_overlap_condition_strength.value, + promptWindows.overlapConditionStrength, + ); + } if (sourceVideo) { const source = api.nodes[binding.nodes.loadVideo]; assert.equal(source.params.file.value, 'review-source-video.mp4'); @@ -442,9 +516,12 @@ test('fresh Expert recipes prepare with current backend specs and without a gene assert.equal(guide.module, 'modules.VideoConditioning'); } if (input.length) { - const source = api.nodes[binding.nodes.loadImage]; + const reference = generation.params.reference_images; + const source = api.nodes[reference?.sourceId]; + assert.equal(source?.module, 'modules.Image', template.id); + assert.equal(source.action, 'Load', template.id); assert.deepEqual([source.params.file.value].flat(), input); - assert.equal(generation.params.reference_images.sourceId, binding.nodes.loadImage); + assert.equal(reference.sourceKey, 'image', template.id); } for (const [, field, role, port] of motionInputRoles) { const loaderId = binding.nodes[role]; diff --git a/scripts/template-operation-fixtures.py b/scripts/template-operation-fixtures.py index 834d8f24..38987994 100644 --- a/scripts/template-operation-fixtures.py +++ b/scripts/template-operation-fixtures.py @@ -80,7 +80,7 @@ def describe(key): spec = studio_execution_spec_for_pair(binding["modelType"], binding["mode"]) if binding else None if binding and spec is None: raise ValueError(f"Missing template semantic bindings: {binding}") - if studio_spec_only: + if studio_spec_only or item.get("studioSpecOnly", False): if spec is None: raise ValueError("A Studio-only fixture needs an exact binding specification.") for _, key, _, _ in spec["roles"]: @@ -135,11 +135,12 @@ def describe(key): "modules.DiffusersVideo.LoadPipeline", "modules.DiffusersVideo.GenerateSequence", "modules.Video.Compose", "modules.Video.LyricOverlay", "modules.VideoConditioning.Storyboard", "modules.VideoConditioning.ShotPrompt", - "modules.VideoConditioning.ShotInputs", "modules.VideoConditioning.OutpaintCanvas", "modules.Primitive.ToList", + "modules.VideoConditioning.ShotInputs", "modules.VideoConditioning.OutpaintCanvas", + "modules.Video.MaskedComposite", "modules.Primitive.ToList", "modules.Video.Concatenate", "modules.Video.ConcatenateAssets", "modules.Video.Trim", "modules.DiffusersRuntime.PipelineQuantizationConfigV2", "modules.DiffusersRuntime.DiffusersExecutionRecipe"): describe(key) - if not studio_spec_only and any(item["selection"]["pipelineClass"] == "Cosmos3OmniModularPipeline" for item in selections): + if not studio_spec_only and any(item["selection"].get("pipelineClass") == "Cosmos3OmniModularPipeline" for item in selections): from modiff.modular_whole_workflow_contracts import ( PINNED_WHOLE_WORKFLOW_GRAPH_ADAPTERS, reviewed_whole_workflow_action_adapter, ) diff --git a/scripts/template-stage-coverage.test.mjs b/scripts/template-stage-coverage.test.mjs index 8ddfac98..ec7eeb39 100644 --- a/scripts/template-stage-coverage.test.mjs +++ b/scripts/template-stage-coverage.test.mjs @@ -33,16 +33,13 @@ test('every fresh template has an explicit operation or retained standalone auth const nativeTemplates = new Set(retained.map(({ template }) => template)); for (const template of templates) { await t.test(template.id, () => { - if (nativeTemplates.has(template)) { - assert.equal(template.example.lockedSettings.resourceMode, 'expert'); - assert.ok(template.requiredBackendCapabilities.length > 0); - return; - } - assert.equal( - selections.hasTemplateOperationRecipe(template), - true, + if (selections.hasTemplateOperationRecipe(template)) return; + assert.ok( + nativeTemplates.has(template), `${template.label} still falls back to the legacy flat graph builder`, ); + assert.equal(template.example.lockedSettings.resourceMode, 'expert'); + assert.ok(template.requiredBackendCapabilities.length > 0); }); } }); diff --git a/src/studio/retainedGalleryApprovedBatch.ts b/src/studio/retainedGalleryApprovedBatch.ts index 8cf187c7..f18f46ca 100644 --- a/src/studio/retainedGalleryApprovedBatch.ts +++ b/src/studio/retainedGalleryApprovedBatch.ts @@ -9053,4 +9053,254 @@ export const APPROVED_RETAINED_TEMPLATES: StudioTemplate[] = [ runtimeEstimate: '255.42 seconds in the saved run', }, }, + { + id: 'wan_vace_amber_glass_stabilized', + label: 'Wan VACE 1.3B — Video inpaint: Amber Glass Replacement, stabilized', + mode: 'video_inpaint', + modelType: 'WanVACEPipeline', + intentGroup: 'video', + thumbnailVariant: 'video', + category: 'video_generation', + videoDelivery: 'spatial_upscale', + executionSelection: { + schemaVersion: 1, + pipelineClass: 'WanVACEPipeline', + executionProfileId: 'wan-vace:direct', + task: 'video_inpaint', + bindingSpec: { + modelType: 'WanVACEPipeline', + mode: 'video_inpaint', + }, + implementation: 'pipeline_stages', + authoringRecipeId: 'generic-video-stages:v1', + note: 'Encode Inputs owns official encoding and source media; Generate retains native sampling and decoding, including required continuity work. Video Output exports the result through ordinary typed connections.', + }, + workflowBlocks: ['upscaler', 'video_masked_composite'], + workflowBlockSettings: { + upscaler: { + model: { + source: 'hub', + value: 'nateraw/real-esrgan/RealESRGAN_x2plus.pth', + revision: '42efb9c3eeed1f5c0c8a626cf5f7f4481dfbb094', + sha256: '49fafd45f8fd7aa8d31ab2a22d14d91b536c34494a5cfe31eb5d89c2fa266abb', + byteSize: 67061725, + license: 'bsd-3-clause', + }, + downscale: 1, + }, + videoMaskedComposite: { + maskGrowPixels: 16, + feather: 3, + }, + }, + inputBindings: [ + { + id: 'source-video', + label: 'Source Video', + mediaType: 'video', + field: 'sourceVideo', + origin: 'user', + requiredAt: 'workflow_start', + count: 1, + }, + { + id: 'mask-video', + label: 'Mask Video', + mediaType: 'video', + field: 'maskVideo', + origin: 'user', + requiredAt: 'workflow_start', + count: 1, + }, + { + id: 'reference-image', + label: 'Reference Image', + mediaType: 'image', + field: 'referenceImages', + origin: 'user', + requiredAt: 'workflow_start', + count: 1, + }, + ], + readinessPolicy: 'requires_input', + outputKinds: ['video'], + requiredBackendCapabilities: [ + 'modules.DiffusersVideo.Generate', + 'modules.Spandrel.Upscaler', + 'modules.Video.Load', + 'modules.VideoConditioning.Normalize', + 'modules.VideoConditioning.AlignMask', + 'modules.Image.Load', + 'modules.DiffusersVideo.EncodeInputs', + 'modules.DiffusersVideo.LoadPipeline', + 'modules.DiffusersRuntime.PipelineQuantizationConfigV2', + 'modules.DiffusersRuntime.DiffusersExecutionRecipe', + 'modules.Video.Export', + 'modules.Video.MaskedComposite', + ], + modelArtifact: { + source: 'hub', + value: 'Wan-AI/Wan2.1-VACE-1.3B-diffusers', + revision: 'ec4d2cb062b548996b179d493fdd05340de702a1', + }, + description: + 'Reproduce the reviewed Amber Glass Replacement, stabilized example with the saved prompt, settings and model revision.', + recipeSummary: 'Run the saved Amber Glass Replacement, stabilized recipe.', + runtimeReuseKey: 'sha256:canonical-graph-v1:5b7ac5d2442e6c92e28ee9bff7e02847c3de46dc2570e5d7eb779583f186fc0c', + prompt: + 'One continuous stabilized product-orbit shot. Follow the exact slow smooth camera trajectory and frame timing of the supplied source clip. Inside the supplied mask replace the original square vessel with exactly one rigid open-top translucent amber glass vessel matching the supplied amber reference. Preserve its fixed proportions, flat square rim, four straight corners, wall and base thickness, scale and grounded contact. Only the viewpoint and physically continuous reflections change smoothly as the camera follows the source orbit. The stone tabletop and background are rigid and stable, with constant exposure. Restrained refraction, natural amber transmission and contact shadow. Consistent vessel identity and coherent rigid geometry through all 161 frames.', + negativePrompt: '', + mediaSlots: [ + { + id: 'result', + label: 'Generated video', + kind: 'video', + role: 'output', + placeholder: 'Result pending', + }, + ], + example: { + mediaType: 'video', + status: 'unverified', + modelRevision: 'ec4d2cb062b548996b179d493fdd05340de702a1', + lockedSeed: 8218, + lockedSettings: { + width: 832, + height: 480, + steps: 30, + guidanceScale: 3.5, + strength: 0.8, + outputType: 'pil', + maxSequenceLength: 512, + pagScale: 3, + pagAdaptiveScale: 0, + dtype: 'bfloat16', + resourceMode: 'auto', + quantizationMode: 'none', + autoOffload: true, + offloadMode: 'model_cpu', + numFrames: 161, + fps: 25, + guidanceScale2: 0, + shift: 3, + conditioningScale: 1.25, + }, + expectedOutput: { + width: 1664, + height: 960, + frames: 161, + durationSeconds: 10.0625, + }, + runtimeEstimate: '427.32 seconds in the saved run', + retainedVideoPreview: { + width: 1664, + height: 960, + frames: 161, + fps: 16, + mediaHash: 'sha256:decoded-video-framemd5:19fea526934abe015732f233692f3575a9027bad1252326f7dbea48368204092', + }, + }, + }, + { + id: 'ltx_long_wind_and_tide_at_the_headland', + label: 'LTX Long I2V — Image to video: Wind and Tide at the Headland', + mode: 'image_to_video', + modelType: 'LTXI2VLongMultiPromptPipeline', + intentGroup: 'video', + thumbnailVariant: 'video', + category: 'video_generation', + videoDelivery: 'native', + workflowBlockSettings: { + videoPromptWindows: { + promptsJson: + '[{"start_window":0,"end_window":0,"text":"At the same coastal lighthouse, start on the supplied frame. A strong gust runs through the tawny grass in the foreground, bending it right in clear waves. White sea foam swirls around the black rocks on the left. The camera slides right at walking speed, revealing parallax between foreground grass and the stable distant lighthouse. Natural gray dawn, one continuous shot."},{"start_window":1,"end_window":1,"text":"Continue the unbroken rightward track along the same lighthouse headland. A broad incoming wave breaks bright white over the dark rocks on the left and rolls back as the camera passes the foreground grass. Keep the camera level and the tall white lighthouse steady on the skyline. Camera movement eases toward the end. Coherent coastline, real-time rolling surf."}]', + segmentFrameLength: 77, + temporalOverlap: 24, + overlapConditionStrength: 0.5, + }, + }, + inputBindings: [ + { + id: 'source-image', + label: 'First Frame', + mediaType: 'image', + field: 'referenceImages', + origin: 'user', + requiredAt: 'workflow_start', + count: 1, + }, + ], + readinessPolicy: 'requires_input', + outputKinds: ['video'], + requiredBackendCapabilities: [ + 'modules.DiffusersRuntime.PipelineQuantizationConfigV2', + 'modules.DiffusersRuntime.DiffusersExecutionRecipe', + 'modules.Image.Load', + 'modules.Video.Export', + 'modules.DiffusersVideo.Generate', + 'modules.DiffusersVideo.LoadPipeline', + ], + modelArtifact: { + source: 'hub', + value: 'Lightricks/LTX-Video-0.9.8-13B-distilled', + revision: '7c64400e1861cc0d7b98d570a1926d5408ec60cd', + }, + description: + 'Reproduce the reviewed Wind and Tide at the Headland example with the saved prompt, settings and model revision.', + recipeSummary: 'Run the saved Wind and Tide at the Headland recipe.', + runtimeReuseKey: 'sha256:canonical-graph-v1:cdee10882c28fd4417274cbcd16101f9b7a2d144cf8ab828ab261ff6b660e673', + prompt: + 'One continuous photoreal coastal tracking shot matching the opening image of a lighthouse on dark cliffs, windblown amber sea grass in the foreground, and choppy gray ocean. Quiet overcast dawn.', + negativePrompt: '', + mediaSlots: [ + { + id: 'result', + label: 'Generated video', + kind: 'video', + role: 'output', + placeholder: 'Result pending', + }, + ], + example: { + mediaType: 'video', + status: 'unverified', + modelRevision: '7c64400e1861cc0d7b98d570a1926d5408ec60cd', + lockedSeed: 42, + lockedSettings: { + width: 768, + height: 512, + steps: 8, + guidanceScale: 1, + strength: 0.58, + outputType: 'pil', + maxSequenceLength: 128, + pagScale: 3, + pagAdaptiveScale: 0, + dtype: 'bfloat16', + resourceMode: 'expert', + quantizationMode: 'none', + autoOffload: true, + offloadMode: 'model_cpu', + numFrames: 129, + fps: 24, + guidanceScale2: 0, + shift: 0, + conditioningScale: 1, + }, + expectedOutput: { + width: 768, + height: 512, + frames: 129, + durationSeconds: 5.375, + }, + runtimeEstimate: '73.65 seconds in the saved run', + retainedVideoPreview: { + width: 768, + height: 512, + frames: 129, + fps: 24, + mediaHash: 'sha256:decoded-video-framemd5:eaf29d941d16d4ff5c7b9f254db3b00454d7dc3ea68c0310ed1c8122d347fa7b', + }, + }, + }, ]; diff --git a/src/studio/templateAssetSource.json b/src/studio/templateAssetSource.json index ae9969ae..66503b28 100644 --- a/src/studio/templateAssetSource.json +++ b/src/studio/templateAssetSource.json @@ -4,11 +4,11 @@ "localBasePath": "/template-gallery", "repoType": "dataset", "repoId": "sourav-das/modiff-template-gallery", - "revision": "0808fea9fb558612032425a9bee2ad449cb27e75", + "revision": "9a1a6227fa40f37e1269e5e3cd4f4e1c84df8d00", "pathPrefix": "template-gallery", "assetManifestPath": "_modiff/template-assets.v1.json", - "assetSetId": "sha256:canonical-json:684676f2892e1471454b0f49d8ccd7d7ea321e36f198946f2a3c10d6fdf826da", - "completeAssetSetId": "sha256:canonical-json:9cc2b2a8c2a8a6e7b667dacf0b1916d3831ef00d5f1cfdad7bb40f0dec1ff6c0", + "assetSetId": "sha256:canonical-json:bc98955db37f65f8ba9b10e0ebd9cee3d36e3260f236fed236df402f35759bc0", + "completeAssetSetId": "sha256:canonical-json:8ee20b6e168398e406a81e3eb9b9187741c405571af52f2454956c4e9f500bcb", "unavailableAssets": [ "template-gallery/ace_step_chinese_new_year_lora.card-poster.png", "template-gallery/ace_step_chinese_new_year_lora.wav", diff --git a/src/studio/templateExactness.ts b/src/studio/templateExactness.ts index c3b7502e..72e6dfc2 100644 --- a/src/studio/templateExactness.ts +++ b/src/studio/templateExactness.ts @@ -334,7 +334,9 @@ export function getTemplateLockHash( modelRevision = template.example?.modelRevision ?? 'unlocked', ) { const workflowLock = - template.workflowBlocks?.length || template.workflowBlockSettings?.encodingInputs + template.workflowBlocks?.length || + template.workflowBlockSettings?.encodingInputs || + template.workflowBlockSettings?.videoPromptWindows ? { blocks: template.workflowBlocks ?? [], settings: template.workflowBlockSettings ?? {}, diff --git a/src/studio/templateOperationWorkflow.ts b/src/studio/templateOperationWorkflow.ts index a33f79c7..718e2c43 100644 --- a/src/studio/templateOperationWorkflow.ts +++ b/src/studio/templateOperationWorkflow.ts @@ -660,6 +660,34 @@ export function createTemplateOperationGraph( set, connect, }); + } else if (block === 'video_masked_composite') { + const settings = template.workflowBlockSettings?.videoMaskedComposite; + const source = roles.get('loadVideo'); + const output = roles.get('videoExport'); + const masks = graph.nodes.filter( + (node) => node.data.module === 'modules.VideoConditioning' && node.data.action === 'AlignMask', + ); + const tail = graph.edges.find((edge) => edge.target === output?.id && edge.targetHandle === 'video'); + const generated = graph.nodes.find((node) => node.id === tail?.source); + if ( + selection.task !== 'video_inpaint' || + !settings || + !source || + !output || + masks.length !== 1 || + !tail || + !generated + ) + throw new Error('A video composite needs a source clip, one aligned mask, and a generated clip.'); + const [mask] = masks; + const composite = utility('modules.Video.MaskedComposite', 0); + set(mask!, ['grow_pixels'], settings.maskGrowPixels); + set(composite, ['feather'], settings.feather); + graph.edges = graph.edges.filter((edge) => edge.id !== tail.id); + connect(source, ['video'], composite, ['source']); + connect(generated, [tail.sourceHandle!], composite, ['generated']); + connect(mask!, ['output'], composite, ['mask']); + connect(composite, ['output'], output, ['video']); } else if (block === 'upscaler') { const videoExport = roles.get('videoExport'); const videoInput = graph.edges.find((edge) => edge.target === videoExport?.id && edge.targetHandle === 'video'); diff --git a/src/studio/templateWorkflow.ts b/src/studio/templateWorkflow.ts index 8898fc47..4779ea5c 100644 --- a/src/studio/templateWorkflow.ts +++ b/src/studio/templateWorkflow.ts @@ -43,6 +43,28 @@ export type TemplateWorkflowResult = { warnings: string[]; }; +export function applyTemplateVideoPromptWindows(template: StudioTemplate) { + const settings = template.workflowBlockSettings?.videoPromptWindows; + if (!settings) return; + const samplerId = useStudioStore.getState().graphBinding?.nodes.wanGenerate; + const flow = useFlowStore.getState(); + const sampler = flow.nodes.find((node) => node.id === samplerId); + const values = [ + ['prompt_segments_json', settings.promptsJson], + ['segment_frame_length', settings.segmentFrameLength], + ['temporal_overlap', settings.temporalOverlap], + ['temporal_overlap_condition_strength', settings.overlapConditionStrength], + ] as const; + if ( + !sampler || + sampler.data.module !== 'modules.DiffusersVideo' || + sampler.data.action !== 'Generate' || + values.some(([field]) => !sampler.data.params[field]) + ) + throw new Error('Video prompt windows require a compatible Generate stage.'); + for (const [field, value] of values) flow.setParam(sampler.id, field, value); +} + async function applyWorkflowBlock( block: StudioTemplateWorkflowBlock, form: StudioFormState, @@ -227,6 +249,7 @@ export async function createTemplateOperationWorkflow( ? ['modules.ModularDiffusers.Lora', 'modules.DiffusersImage.LoadAdapter', 'modules.DiffusersAudio.LoadAdapter'] : []), ...(template.workflowBlocks?.includes('upscaler') ? ['modules.Spandrel.Upscaler'] : []), + ...(template.workflowBlocks?.includes('video_masked_composite') ? ['modules.Video.MaskedComposite'] : []), ...(selection.task === 'video_outpaint' ? ['modules.VideoConditioning.OutpaintCanvas'] : []), ...(template.workflowBlocks?.some((block) => ['video_sequence', 'quality_video_sequence'].includes(block)) ? [ @@ -372,6 +395,7 @@ export async function createWorkflowFromTemplate(template: StudioTemplate): Prom } graphCreated = true; warnings = result.warnings; + applyTemplateVideoPromptWindows(template); for (const block of template.workflowBlocks ?? []) { try { await applyWorkflowBlock(block, after, template, { graphPrepared: true, workflowContext: context }); diff --git a/src/studio/types.ts b/src/studio/types.ts index 12c2bb75..834461e9 100644 --- a/src/studio/types.ts +++ b/src/studio/types.ts @@ -418,6 +418,8 @@ export type StudioTemplateId = | 'animatelcm_sunlit_surf' | 'flux_kontext_bookshop_clear_glass' | 'sdxl_pag_two_tier_cobalt_glass' + | 'wan_vace_amber_glass_stabilized' + | 'ltx_long_wind_and_tide_at_the_headland' | 'ace_step_text_to_audio' | 'minimax_music3_chamber_pop' | 'ace_step_audio_variation' @@ -1421,7 +1423,14 @@ export type StudioTemplateIntentGroup = | 'planning'; export type StudioTemplateWorkflowBlock = - 'lora' | 'upscaler' | 'masked_composite' | 'video_sequence' | 'quality_video_sequence' | 'soundtrack' | 'lyric_video'; + | 'lora' + | 'upscaler' + | 'masked_composite' + | 'video_masked_composite' + | 'video_sequence' + | 'quality_video_sequence' + | 'soundtrack' + | 'lyric_video'; export type StudioTemplateModelArtifact = { source: 'hub' | 'local'; @@ -1458,6 +1467,14 @@ export type StudioTemplateLoraSettings = { export type StudioTemplateWorkflowBlockSettings = { /** Fresh graph only: bounded JSON arrays wired to declared encoding inputs. */ encodingInputs?: { role: StudioGraphRole; values: Record }; + /** Fresh graph only: initial settings for a generator that declares prompt windows. */ + videoPromptWindows?: { + promptsJson: string; + segmentFrameLength: number; + temporalOverlap: number; + overlapConditionStrength: number; + }; + videoMaskedComposite?: { maskGrowPixels: number; feather: number }; maskedComposite?: { backgroundReferenceIndex: number; foregroundSize: { width: number; height: number }; diff --git a/src/utils/e2eHooks.ts b/src/utils/e2eHooks.ts index b9fc25c6..66d1fd5b 100644 --- a/src/utils/e2eHooks.ts +++ b/src/utils/e2eHooks.ts @@ -33,7 +33,11 @@ import { hasTemplateOperationRecipe } from '../studio/templateOperationSelection import { getFormDefaultsForMode } from '../studio/modelProfiles'; import type { StudioTaskTemplateSkeleton } from '../studio/taskTemplateContracts'; import { materializeTemplateDefaultInputs } from '../studio/templateInputs'; -import { createTemplateOperationWorkflow, normalizeTemplateRuntimeDevice } from '../studio/templateWorkflow'; +import { + applyTemplateVideoPromptWindows, + createTemplateOperationWorkflow, + normalizeTemplateRuntimeDevice, +} from '../studio/templateWorkflow'; import { ensureStudioAutoPlanReadyForRun } from '../studio/useStudioRunActions'; import type { UserBlockDefinition } from '../studio/types'; import { createUserBlockNode, normalizeUserBlockDefinition } from '../studio/userBlocks'; @@ -275,6 +279,7 @@ async function applyTemplate( ); } await createOrUpdateStudioGraph(useStudioStore.getState().form, context, GALLERY_GRAPH_FINALIZATION_TIMEOUT_MS); + applyTemplateVideoPromptWindows(template); for (const block of template.workflowBlocks ?? []) { if (block === 'lora') { await addLoraWorkflowBlock(useStudioStore.getState().form, template.workflowBlockSettings?.lora, { From 5ce45349bce95d103d6b36202c822974a60e0a7d Mon Sep 17 00:00:00 2001 From: Sourav Das Date: Wed, 25 Nov 2026 21:30:17 +0530 Subject: [PATCH 390/440] Format the template stage coverage assertion --- scripts/template-stage-coverage.test.mjs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/scripts/template-stage-coverage.test.mjs b/scripts/template-stage-coverage.test.mjs index ec7eeb39..f30533c5 100644 --- a/scripts/template-stage-coverage.test.mjs +++ b/scripts/template-stage-coverage.test.mjs @@ -34,10 +34,7 @@ test('every fresh template has an explicit operation or retained standalone auth for (const template of templates) { await t.test(template.id, () => { if (selections.hasTemplateOperationRecipe(template)) return; - assert.ok( - nativeTemplates.has(template), - `${template.label} still falls back to the legacy flat graph builder`, - ); + assert.ok(nativeTemplates.has(template), `${template.label} still falls back to the legacy flat graph builder`); assert.equal(template.example.lockedSettings.resourceMode, 'expert'); assert.ok(template.requiredBackendCapabilities.length > 0); }); From 30961f942339096f6ba8d817710faece9e0f4de8 Mon Sep 17 00:00:00 2001 From: Sourav Das Date: Wed, 25 Nov 2026 21:41:32 +0530 Subject: [PATCH 391/440] Bind the curated showcase to the current Gallery snapshot --- config/release-showcase-scope.v1.json | 108 ++++++++++++++++++++++++-- 1 file changed, 102 insertions(+), 6 deletions(-) diff --git a/config/release-showcase-scope.v1.json b/config/release-showcase-scope.v1.json index 7f05714a..4cde1271 100644 --- a/config/release-showcase-scope.v1.json +++ b/config/release-showcase-scope.v1.json @@ -4,7 +4,7 @@ "name": "Registered showcase preview without AMD-cloud backlog", "dataset": { "repository": "sourav-das/modiff-template-gallery", - "revision": "2339c1cb95deb500215754b5a139c295dbbed7d7" + "revision": "9a1a6227fa40f37e1269e5e3cd4f4e1c84df8d00" }, "originalCampaign": { "total": 89, @@ -540,8 +540,8 @@ }, { "id": "cosmos3_super_text_to_image", - "category": "rights-or-access", - "reason": "Large AMD cloud RAM/VRAM/library/artifact/rights/cost admission remains deferred; no charges incurred.", + "category": "supplementary-only", + "reason": "Now published and release-qualified from a reviewed AMD run. Filed outside the original curated preview selection.", "countedAsComplete": false }, { @@ -552,8 +552,8 @@ }, { "id": "flux2_dev_text_to_image", - "category": "amd-cloud", - "reason": "Full recipe deferred to AMD cloud; local complete-workflow campaign budget is two hours. No MoDiff user runtime restriction.", + "category": "supplementary-only", + "reason": "Now published and release-qualified from a reviewed AMD run. Filed outside the original curated preview selection.", "countedAsComplete": false }, { @@ -1083,7 +1083,103 @@ "category": "supplementary-only", "reason": "Published and registered from an approved saved run outside the original campaign selection.", "countedAsComplete": false + }, + { + "id": "animatediff_pag_snowmelt_over_river_stones", + "category": "supplementary-only", + "reason": "Published and registered from an approved saved run outside the original campaign selection.", + "countedAsComplete": false + }, + { + "id": "animatelcm_sunlit_surf", + "category": "supplementary-only", + "reason": "Published and registered from an approved saved run outside the original campaign selection.", + "countedAsComplete": false + }, + { + "id": "chroma_copper_medallion_outpaint", + "category": "supplementary-only", + "reason": "Published and registered from an approved saved run outside the original campaign selection.", + "countedAsComplete": false + }, + { + "id": "flux_dev_forest_green_teapot", + "category": "supplementary-only", + "reason": "Published and registered from an approved saved run outside the original campaign selection.", + "countedAsComplete": false + }, + { + "id": "flux_kontext_bookshop_clear_glass", + "category": "supplementary-only", + "reason": "Published and registered from an approved saved run outside the original campaign selection.", + "countedAsComplete": false + }, + { + "id": "latte_water_folding_over_slate", + "category": "supplementary-only", + "reason": "Published and registered from an approved saved run outside the original campaign selection.", + "countedAsComplete": false + }, + { + "id": "ltx2_enamel_teapot_window_light", + "category": "supplementary-only", + "reason": "Published and registered from an approved saved run outside the original campaign selection.", + "countedAsComplete": false + }, + { + "id": "ltx2_glasshouse_drip", + "category": "supplementary-only", + "reason": "Published and registered from an approved saved run outside the original campaign selection.", + "countedAsComplete": false + }, + { + "id": "ltx2_kiln_at_first_light", + "category": "supplementary-only", + "reason": "Published and registered from an approved saved run outside the original campaign selection.", + "countedAsComplete": false + }, + { + "id": "ltx2_moss_and_basalt", + "category": "supplementary-only", + "reason": "Published and registered from an approved saved run outside the original campaign selection.", + "countedAsComplete": false + }, + { + "id": "ltx2_surf_below_the_breakwater", + "category": "supplementary-only", + "reason": "Published and registered from an approved saved run outside the original campaign selection.", + "countedAsComplete": false + }, + { + "id": "ltx_long_wind_and_tide_at_the_headland", + "category": "supplementary-only", + "reason": "Published and registered from an approved saved run outside the original campaign selection.", + "countedAsComplete": false + }, + { + "id": "sdxl_pag_lighthouse_in_graphite", + "category": "supplementary-only", + "reason": "Published and registered from an approved saved run outside the original campaign selection.", + "countedAsComplete": false + }, + { + "id": "sdxl_pag_two_tier_cobalt_glass", + "category": "supplementary-only", + "reason": "Published and registered from an approved saved run outside the original campaign selection.", + "countedAsComplete": false + }, + { + "id": "wan_animate_signal_through_the_rain", + "category": "supplementary-only", + "reason": "Published and registered from an approved saved run outside the original campaign selection.", + "countedAsComplete": false + }, + { + "id": "wan_vace_amber_glass_stabilized", + "category": "supplementary-only", + "reason": "Published and registered from an approved saved run outside the original campaign selection.", + "countedAsComplete": false } ], - "profileHash": "sha256:canonical-json:794f3429451359a307b79b43b521a9505791f25801716615200c68a7126ae3fd" + "profileHash": "sha256:canonical-json:17a8f0208fc7afe7d83b32b2b2216bbb3140fff032d8bd646f3502aed858b64e" } From 36711d62ed3601e7282170f787973366b35e79c7 Mon Sep 17 00:00:00 2001 From: Sourav Das Date: Wed, 25 Nov 2026 21:48:19 +0530 Subject: [PATCH 392/440] Account for the approved catalogue data in bundle budget --- scripts/bundle-budget.mjs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/scripts/bundle-budget.mjs b/scripts/bundle-budget.mjs index ce59100e..d93506a6 100644 --- a/scripts/bundle-budget.mjs +++ b/scripts/bundle-budget.mjs @@ -493,6 +493,8 @@ const SOURCE_LICENSES = new URL('../public/THIRD_PARTY_LICENSES.txt', import.met // 504492/682980/346033 largest/startup/deferred gzip bytes: the reviewed // migration ceilings below still pass with 8/12/304 bytes of headroom. const MAX_STARTUP_CHUNK_GZIP_BYTES = + // Approved retained templates and their exact input bindings measure 571013 bytes. + 7624 + // The retained Glasshouse Keeper recipe and motion bindings add 720 bytes (562669 to 563389). 720 + // The approved native video and 2× upscale catalog measures 562669 bytes. @@ -803,6 +805,8 @@ const MAX_STARTUP_CHUNK_GZIP_BYTES = // The same build measures 673359 aggregate startup bytes (+45 over the cap). // Keep 19 bytes of headroom; deferred limits and loading boundaries stay fixed. const MAX_STARTUP_GZIP_BYTES = + // The expanded catalogue measures 749498 total startup gzip bytes. + 7622 + // The same change adds 721 bytes across the startup closure (741155 to 741876). 721 + // The same video catalog measures 741155 total startup bytes. From f7d69c72b8cbbd236bef5df51cbfab963f918585 Mon Sep 17 00:00:00 2001 From: Sourav Das Date: Wed, 25 Nov 2026 22:44:08 +0530 Subject: [PATCH 393/440] Reject stale resource qualification coverage --- scripts/release-candidate-report.mjs | 23 +++++++++++------- scripts/release-candidate-report.test.mjs | 29 +++++++++++++++++++++++ 2 files changed, 43 insertions(+), 9 deletions(-) diff --git a/scripts/release-candidate-report.mjs b/scripts/release-candidate-report.mjs index 2ff659a8..7856e3a1 100644 --- a/scripts/release-candidate-report.mjs +++ b/scripts/release-candidate-report.mjs @@ -68,9 +68,12 @@ const releaseContractCurrent = const hardwareQualification = existsSync(HARDWARE_QUALIFICATION_PATH) ? readJson(HARDWARE_QUALIFICATION_PATH) : { receipts: [] }; -const resourceQualification = existsSync(RESOURCE_QUALIFICATION_PATH) +const savedResourceQualification = existsSync(RESOURCE_QUALIFICATION_PATH) ? readJson(RESOURCE_QUALIFICATION_PATH) - : { status: 'missing', coverage: { required: 0, qualified: 0, missing: 0 } }; + : null; +const resourceQualificationStale = + savedResourceQualification !== null && savedResourceQualification.releaseContractHash !== contract.contractHash; +const resourceQualification = resourceQualificationStale ? null : savedResourceQualification; const packageSet = Object.values(contract.packageSets ?? {})[0] ?? {}; const incompleteTemplates = contract.templates .filter((template) => !template.releaseEligible) @@ -145,7 +148,7 @@ const gates = { workflowsEligible: incompleteWorkflows.length === 0, qualificationReceiptsComplete: contract.coverage?.completeQualificationReceiptCount === contract.coverage?.templateCount, - resourceRecipesQualified: resourceQualification.status === 'complete', + resourceRecipesQualified: resourceQualification?.status === 'complete', supportedProfileDeclared: hardwareCoverage.hasSupportedProfile, supportedProfilesPhysicallyQualified: hardwareCoverage.allSupportedProfilesQualified, }; @@ -193,9 +196,11 @@ const blockers = [ ? [] : [ { - id: 'resource-recipes-incomplete', - count: resourceQualification.coverage?.missing ?? null, - message: 'Every advertised model-family resource recipe requires a measured real-weight run.', + id: resourceQualificationStale ? 'resource-report-not-current' : 'resource-recipes-incomplete', + count: resourceQualification?.coverage?.missing ?? null, + message: resourceQualificationStale + ? 'The saved resource report belongs to a different release contract. Run npm run release:resources:generate.' + : 'Every advertised model-family resource recipe requires a measured real-weight run.', }, ]), ...(gates.supportedProfileDeclared @@ -233,9 +238,9 @@ const body = { workflows: contract.coverage?.workflowCount ?? 0, eligibleWorkflows: contract.coverage?.releaseEligibleWorkflowCount ?? 0, standaloneExecution, - resourceRecipes: resourceQualification.coverage, - releaseEligibleResourceRecipes: resourceQualification.coverage?.byReleaseLane?.releaseEligible ?? null, - deferredResourceRecipes: resourceQualification.coverage?.byReleaseLane?.deferred ?? null, + resourceRecipes: resourceQualification?.coverage ?? null, + releaseEligibleResourceRecipes: resourceQualification?.coverage?.byReleaseLane?.releaseEligible ?? null, + deferredResourceRecipes: resourceQualification?.coverage?.byReleaseLane?.deferred ?? null, }, receiptMissingFieldCounts: missingFieldCounts, incompleteTemplates, diff --git a/scripts/release-candidate-report.test.mjs b/scripts/release-candidate-report.test.mjs index 6d950815..f2e6df90 100644 --- a/scripts/release-candidate-report.test.mjs +++ b/scripts/release-candidate-report.test.mjs @@ -129,6 +129,35 @@ test('current-source verification failure stays blocked without inventing other } }); +test('candidate report ignores coverage from a different release contract', () => { + const f = fixture(); + const path = join(dirname(f.output), 'resource-recipe-coverage.v1.json'); + const coverage = { required: 2, qualified: 2, missing: 0 }; + try { + writeFileSync( + path, + JSON.stringify({ releaseContractHash: 'previous-contract-hash', status: 'complete', coverage }), + ); + assert.equal(f.run().status, 0); + const stale = f.read(); + assert.equal(stale.gates.resourceRecipesQualified, false); + assert.equal(stale.coverage.resourceRecipes, null); + assert(stale.blockers.some((blocker) => blocker.id === 'resource-report-not-current')); + + writeFileSync( + path, + JSON.stringify({ releaseContractHash: 'retained-contract-hash', status: 'complete', coverage }), + ); + assert.equal(f.run().status, 0); + const current = f.read(); + assert.equal(current.gates.resourceRecipesQualified, true); + assert.deepEqual(current.coverage.resourceRecipes, coverage); + f.assertPreserved(); + } finally { + f.close(); + } +}); + test('candidate report counts exact runs and bound variants without granting release eligibility', () => { const standalone = (id, status, receipt, missing, releaseEligible = false) => ({ id, From 8a4a45806fa7178ea79b114cc5902d54dc2cdd12 Mon Sep 17 00:00:00 2001 From: Sourav Das Date: Wed, 25 Nov 2026 22:45:28 +0530 Subject: [PATCH 394/440] Register the exact approved AudioLDM2 forest ambience recipe --- config/release-showcase-scope.v1.json | 340 +++---- .../retained-gallery-approved-batch.v1.json | 8 + ...etained-gallery-authoring-archives.v1.json | 5 + ...etained-gallery-batch-recipe-locks.v1.json | 13 + config/template-asset-rights.v1.json | 942 ++++++++++++++---- config/template-assets.v1.json | 55 +- public/template-gallery/manifest.json | 28 + scripts/bundle-budget.mjs | 4 + scripts/retained-gallery-templates.test.mjs | 3 +- src/studio/retainedGalleryApprovedBatch.ts | 65 ++ src/studio/templateAssetSource.json | 6 +- src/studio/types.ts | 1 + 12 files changed, 1092 insertions(+), 378 deletions(-) diff --git a/config/release-showcase-scope.v1.json b/config/release-showcase-scope.v1.json index 4cde1271..ad137773 100644 --- a/config/release-showcase-scope.v1.json +++ b/config/release-showcase-scope.v1.json @@ -4,7 +4,7 @@ "name": "Registered showcase preview without AMD-cloud backlog", "dataset": { "repository": "sourav-das/modiff-template-gallery", - "revision": "9a1a6227fa40f37e1269e5e3cd4f4e1c84df8d00" + "revision": "39306b96a08248f4d3b413833d51992227f3a31d" }, "originalCampaign": { "total": 89, @@ -539,111 +539,93 @@ "countedAsComplete": false }, { - "id": "cosmos3_super_text_to_image", + "id": "allegro_basalt_shore_at_dawn", "category": "supplementary-only", - "reason": "Now published and release-qualified from a reviewed AMD run. Filed outside the original curated preview selection.", - "countedAsComplete": false - }, - { - "id": "flux_lora_ghibli_story", - "category": "rights-or-access", - "reason": "Pinned adapter terms are personal-use-only; no public output or new normal run is authorized by the overnight instruction.", + "reason": "Published and registered from an approved saved run outside the original campaign selection.", "countedAsComplete": false }, { - "id": "flux2_dev_text_to_image", + "id": "animatediff_candlelight_behind_amber_glass", "category": "supplementary-only", - "reason": "Now published and release-qualified from a reviewed AMD run. Filed outside the original curated preview selection.", + "reason": "Published and registered from an approved saved run outside the original campaign selection.", "countedAsComplete": false }, { - "id": "marigold_depth_synthetic_ramp", + "id": "animatediff_ivory_balloon_blue_mountains", "category": "supplementary-only", - "reason": "Published and registered as a supplementary Gallery example outside the original campaign selection.", + "reason": "Published and registered from an approved saved run outside the original campaign selection.", "countedAsComplete": false }, { - "id": "minimax_h3_image_old_town_cat", + "id": "animatediff_pag_snowmelt_over_river_stones", "category": "supplementary-only", - "reason": "Approved supplementary showcases are separate examples; this template is outside the original campaign selection.", + "reason": "Published and registered from an approved saved run outside the original campaign selection.", "countedAsComplete": false }, { - "id": "smollm2_rain_gauge", + "id": "animatediff_red_tram_in_watercolor", "category": "supplementary-only", - "reason": "Published and registered as a supplementary Gallery example outside the original campaign selection.", + "reason": "Published and registered from an approved saved run outside the original campaign selection.", "countedAsComplete": false }, { - "id": "spandrel_x2_synthetic_gradient", + "id": "animatediff_red_tram_through_snow", "category": "supplementary-only", - "countedAsComplete": false, - "reason": "Published and registered as a supplementary Gallery technical preview outside the original campaign selection." - }, - { - "id": "wan_21_t2v_13b_seed_vault", - "category": "amd-cloud", - "reason": "Full recipe deferred to AMD cloud; local complete-workflow campaign budget is two hours. No MoDiff user runtime restriction.", - "countedAsComplete": false - }, - { - "id": "wan_22_i2v_seed_vault", - "category": "amd-cloud", - "reason": "Full recipe deferred to AMD cloud; local complete-workflow campaign budget is two hours. No MoDiff user runtime restriction.", + "reason": "Published and registered from an approved saved run outside the original campaign selection.", "countedAsComplete": false }, { - "id": "wan_22_ti2v_5b_seed_vault", - "category": "amd-cloud", - "reason": "Full recipe deferred to AMD cloud; local complete-workflow campaign budget is two hours. No MoDiff user runtime restriction.", + "id": "animatelcm_sunlit_surf", + "category": "supplementary-only", + "reason": "Published and registered from an approved saved run outside the original campaign selection.", "countedAsComplete": false }, { - "id": "wan_vace_animate_product_still", - "category": "planning-contract", - "reason": "Planning-only workflow lacks its separately required implementation or execution qualification.", + "id": "audioldm2_wind_through_high_pines", + "category": "supplementary-only", + "reason": "Published from the approved saved AudioLDM2 run, outside the original curated selection.", "countedAsComplete": false }, { - "id": "wan_vace_direct_text_to_video", - "category": "planning-contract", - "reason": "Planning-only workflow lacks its separately required implementation or execution qualification.", + "id": "chroma_alpine_block_print", + "category": "supplementary-only", + "reason": "Published and registered from an approved saved run outside the original campaign selection.", "countedAsComplete": false }, { - "id": "wan_vace_masked_object_replace", - "category": "amd-cloud", - "reason": "Full recipe deferred to AMD cloud; local complete-workflow campaign budget is two hours. No MoDiff user runtime restriction.", + "id": "chroma_copper_medallion_outpaint", + "category": "supplementary-only", + "reason": "Published and registered from an approved saved run outside the original campaign selection.", "countedAsComplete": false }, { - "id": "wan_vace_reference_motion", - "category": "planning-contract", - "reason": "Planning-only workflow lacks its separately required implementation or execution qualification.", + "id": "chroma_restored_cobalt_backdrop", + "category": "supplementary-only", + "reason": "Published and registered from an approved saved run outside the original campaign selection.", "countedAsComplete": false }, { - "id": "lcm_dawn_alpine_lake", + "id": "chroma_terracotta_and_blue", "category": "supplementary-only", - "reason": "Published and registered as a supplementary Gallery example outside the original campaign selection.", + "reason": "Published and registered from an approved saved run outside the original campaign selection.", "countedAsComplete": false }, { - "id": "whisper_tiny_blue_cup_transcription", + "id": "cogvideox_mossy_mountain_stream", "category": "supplementary-only", - "reason": "Published and registered as a supplementary Gallery example outside the original campaign selection.", + "reason": "Published and registered from an approved saved run outside the original campaign selection.", "countedAsComplete": false }, { - "id": "sana_sprint_monochrome_tiger", + "id": "cogvideox_red_tram_model_railway", "category": "supplementary-only", - "reason": "Published and registered as a supplementary Gallery example outside the original campaign selection.", + "reason": "Published and registered from an approved saved run outside the original campaign selection.", "countedAsComplete": false }, { - "id": "wav2vec2_station_announcement", + "id": "cosmos3_super_text_to_image", "category": "supplementary-only", - "reason": "Published and registered as a supplementary Gallery example outside the original campaign selection.", + "reason": "Now published and release-qualified from a reviewed AMD run. Filed outside the original curated preview selection.", "countedAsComplete": false }, { @@ -653,57 +635,57 @@ "countedAsComplete": false }, { - "id": "sdxl_clear_cobalt_backdrop", + "id": "flux_canny_clean_backdrop", "category": "supplementary-only", - "reason": "Published and registered from the approved saved run outside the original campaign selection.", + "reason": "Published and registered from an approved saved run outside the original campaign selection.", "countedAsComplete": false }, { - "id": "sdxl_turbo_orange_caps", + "id": "flux_depth_marine_bow_repair", "category": "supplementary-only", - "reason": "Published and registered from the approved saved run outside the original campaign selection.", + "reason": "Published and registered from an approved saved run outside the original campaign selection.", "countedAsComplete": false }, { - "id": "whisper_small_an_open_door", + "id": "flux_dev_forest_green_teapot", "category": "supplementary-only", - "reason": "Published and registered from the approved saved run outside the original campaign selection.", + "reason": "Published and registered from an approved saved run outside the original campaign selection.", "countedAsComplete": false }, { - "id": "smolvlm_red_triangle", + "id": "flux_klein_alpine_lake_panorama", "category": "supplementary-only", - "reason": "Published and registered from the approved saved run outside the original campaign selection.", + "reason": "Published and registered from an approved saved run outside the original campaign selection.", "countedAsComplete": false }, { - "id": "kandinsky3_ginkgo_on_slate", + "id": "flux_klein_open_glacial_lake", "category": "supplementary-only", - "reason": "Published and registered from the approved saved run outside the original campaign selection.", + "reason": "Published and registered from an approved saved run outside the original campaign selection.", "countedAsComplete": false }, { - "id": "chroma_restored_cobalt_backdrop", + "id": "flux_kontext_bookshop_clear_glass", "category": "supplementary-only", "reason": "Published and registered from an approved saved run outside the original campaign selection.", "countedAsComplete": false }, { - "id": "chroma_terracotta_and_blue", - "category": "supplementary-only", - "reason": "Published and registered from an approved saved run outside the original campaign selection.", + "id": "flux_lora_ghibli_story", + "category": "rights-or-access", + "reason": "Pinned adapter terms are personal-use-only; no public output or new normal run is authorized by the overnight instruction.", "countedAsComplete": false }, { - "id": "cogvideox_mossy_mountain_stream", + "id": "flux1_dev_limestone_studio_scratch_repair", "category": "supplementary-only", "reason": "Published and registered from an approved saved run outside the original campaign selection.", "countedAsComplete": false }, { - "id": "cogvideox_red_tram_model_railway", + "id": "flux2_dev_text_to_image", "category": "supplementary-only", - "reason": "Published and registered from an approved saved run outside the original campaign selection.", + "reason": "Now published and release-qualified from a reviewed AMD run. Filed outside the original curated preview selection.", "countedAsComplete": false }, { @@ -725,461 +707,485 @@ "countedAsComplete": false }, { - "id": "longcat_last_tram_at_dusk", + "id": "joy_plus_lavender_on_limestone", "category": "supplementary-only", "reason": "Published and registered from an approved saved run outside the original campaign selection.", "countedAsComplete": false }, { - "id": "lumina2_larch_on_glacial_pond", + "id": "joy_plus_terracotta_on_limestone", "category": "supplementary-only", "reason": "Published and registered from an approved saved run outside the original campaign selection.", "countedAsComplete": false }, { - "id": "omnigen_tulips_after_rain", + "id": "joyimage_base_cobalt_paper_band", "category": "supplementary-only", "reason": "Published and registered from an approved saved run outside the original campaign selection.", "countedAsComplete": false }, { - "id": "qwen_control_winter_cabin_blue_hour", + "id": "joyimage_herbarium_rainy_porthole", "category": "supplementary-only", "reason": "Published and registered from an approved saved run outside the original campaign selection.", "countedAsComplete": false }, { - "id": "qwen_layered_sunset_and_peaks", + "id": "kandinsky3_ginkgo_on_slate", "category": "supplementary-only", - "reason": "Published and registered from an approved saved run outside the original campaign selection.", + "reason": "Published and registered from the approved saved run outside the original campaign selection.", "countedAsComplete": false }, { - "id": "sd15_canny_guided_green_glass", + "id": "kandinsky3_smoked_glass_on_limestone", "category": "supplementary-only", "reason": "Published and registered from an approved saved run outside the original campaign selection.", "countedAsComplete": false }, { - "id": "sd15_pag_canny_guided_glass", + "id": "kontext_wide_water_alpine_ridge", "category": "supplementary-only", "reason": "Published and registered from an approved saved run outside the original campaign selection.", "countedAsComplete": false }, { - "id": "sd15_pag_cobalt_studio_repair", + "id": "latte_water_folding_over_slate", "category": "supplementary-only", "reason": "Published and registered from an approved saved run outside the original campaign selection.", "countedAsComplete": false }, { - "id": "sd15_pag_mountain_lake_watercolor", + "id": "lcm_dawn_alpine_lake", "category": "supplementary-only", - "reason": "Published and registered from an approved saved run outside the original campaign selection.", + "reason": "Published and registered as a supplementary Gallery example outside the original campaign selection.", "countedAsComplete": false }, { - "id": "sdxl_canny_adapter_glass_study", + "id": "longcat_clear_glass_at_the_bookshop", "category": "supplementary-only", "reason": "Published and registered from an approved saved run outside the original campaign selection.", "countedAsComplete": false }, { - "id": "sdxl_control_inpaint_warm_plaster", + "id": "longcat_florist_end_of_lane", "category": "supplementary-only", "reason": "Published and registered from an approved saved run outside the original campaign selection.", "countedAsComplete": false }, { - "id": "sdxl_controlnet_glass_study_on_slate", + "id": "longcat_last_tram_at_dusk", "category": "supplementary-only", "reason": "Published and registered from an approved saved run outside the original campaign selection.", "countedAsComplete": false }, { - "id": "sdxl_pix2pix_pale_amber_glass", + "id": "ltx_long_wind_and_tide_at_the_headland", "category": "supplementary-only", "reason": "Published and registered from an approved saved run outside the original campaign selection.", "countedAsComplete": false }, { - "id": "wan_a14b_cloudbreak_over_the_ridges", + "id": "ltx2_enamel_teapot_window_light", "category": "supplementary-only", "reason": "Published and registered from an approved saved run outside the original campaign selection.", "countedAsComplete": false }, { - "id": "wan_flf_blue_hour_at_the_tram_shelter", + "id": "ltx2_glasshouse_drip", "category": "supplementary-only", "reason": "Published and registered from an approved saved run outside the original campaign selection.", "countedAsComplete": false }, { - "id": "zimage_golden_amber_glass", + "id": "ltx2_kiln_at_first_light", "category": "supplementary-only", "reason": "Published and registered from an approved saved run outside the original campaign selection.", "countedAsComplete": false }, { - "id": "joyimage_herbarium_rainy_porthole", + "id": "ltx2_moss_and_basalt", "category": "supplementary-only", "reason": "Published and registered from an approved saved run outside the original campaign selection.", "countedAsComplete": false }, { - "id": "longcat_florist_end_of_lane", + "id": "ltx2_surf_below_the_breakwater", "category": "supplementary-only", "reason": "Published and registered from an approved saved run outside the original campaign selection.", "countedAsComplete": false }, { - "id": "sana_tidal_pool_on_black_basalt", + "id": "lumina2_larch_on_glacial_pond", "category": "supplementary-only", "reason": "Published and registered from an approved saved run outside the original campaign selection.", "countedAsComplete": false }, { - "id": "chroma_alpine_block_print", + "id": "marigold_depth_synthetic_ramp", "category": "supplementary-only", - "reason": "Published and registered from an approved saved run outside the original campaign selection.", + "reason": "Published and registered as a supplementary Gallery example outside the original campaign selection.", "countedAsComplete": false }, { - "id": "flux1_dev_limestone_studio_scratch_repair", + "id": "minimax_h3_image_old_town_cat", "category": "supplementary-only", - "reason": "Published and registered from an approved saved run outside the original campaign selection.", + "reason": "Approved supplementary showcases are separate examples; this template is outside the original campaign selection.", "countedAsComplete": false }, { - "id": "flux_klein_alpine_lake_panorama", + "id": "mochi_surf_over_dark_pebbles", "category": "supplementary-only", "reason": "Published and registered from an approved saved run outside the original campaign selection.", "countedAsComplete": false }, { - "id": "flux_klein_open_glacial_lake", + "id": "omnigen_cobalt_against_soft_apricot", "category": "supplementary-only", "reason": "Published and registered from an approved saved run outside the original campaign selection.", "countedAsComplete": false }, { - "id": "joy_plus_lavender_on_limestone", + "id": "omnigen_red_enamel_folded_linen", "category": "supplementary-only", "reason": "Published and registered from an approved saved run outside the original campaign selection.", "countedAsComplete": false }, { - "id": "joyimage_base_cobalt_paper_band", + "id": "omnigen_tulips_after_rain", "category": "supplementary-only", "reason": "Published and registered from an approved saved run outside the original campaign selection.", "countedAsComplete": false }, { - "id": "kandinsky3_smoked_glass_on_limestone", + "id": "qwen_2511_pale_amber_on_limestone", "category": "supplementary-only", "reason": "Published and registered from an approved saved run outside the original campaign selection.", "countedAsComplete": false }, { - "id": "kontext_wide_water_alpine_ridge", + "id": "qwen_2511_terracotta_material_transfer", "category": "supplementary-only", "reason": "Published and registered from an approved saved run outside the original campaign selection.", "countedAsComplete": false }, { - "id": "longcat_clear_glass_at_the_bookshop", + "id": "qwen_2512_cobalt_backdrop_repair", "category": "supplementary-only", "reason": "Published and registered from an approved saved run outside the original campaign selection.", "countedAsComplete": false }, { - "id": "omnigen_cobalt_against_soft_apricot", + "id": "qwen_bookshop_gouache", "category": "supplementary-only", "reason": "Published and registered from an approved saved run outside the original campaign selection.", "countedAsComplete": false }, { - "id": "qwen_2511_pale_amber_on_limestone", + "id": "qwen_cobalt_on_charcoal_slate", "category": "supplementary-only", "reason": "Published and registered from an approved saved run outside the original campaign selection.", "countedAsComplete": false }, { - "id": "qwen_2512_cobalt_backdrop_repair", + "id": "qwen_control_winter_cabin_blue_hour", "category": "supplementary-only", "reason": "Published and registered from an approved saved run outside the original campaign selection.", "countedAsComplete": false }, { - "id": "qwen_bookshop_gouache", + "id": "qwen_layered_sunset_and_peaks", "category": "supplementary-only", "reason": "Published and registered from an approved saved run outside the original campaign selection.", "countedAsComplete": false }, { - "id": "qwen_cobalt_on_charcoal_slate", + "id": "sana_i2v_blue_hour_above_rice_terraces", "category": "supplementary-only", "reason": "Published and registered from an approved saved run outside the original campaign selection.", "countedAsComplete": false }, { - "id": "sdxl_blue_glass_on_linen", + "id": "sana_sprint_monochrome_tiger", "category": "supplementary-only", - "reason": "Published and registered from an approved saved run outside the original campaign selection.", + "reason": "Published and registered as a supplementary Gallery example outside the original campaign selection.", "countedAsComplete": false }, { - "id": "sdxl_pag_cobalt_wall", + "id": "sana_tidal_pool_on_black_basalt", "category": "supplementary-only", "reason": "Published and registered from an approved saved run outside the original campaign selection.", "countedAsComplete": false }, { - "id": "zimage_rocky_glacial_shores", + "id": "sana_video_water_terraces_before_sunrise", "category": "supplementary-only", "reason": "Published and registered from an approved saved run outside the original campaign selection.", "countedAsComplete": false }, { - "id": "zimage_seamless_cobalt_backdrop", + "id": "sd15_canny_guided_green_glass", "category": "supplementary-only", "reason": "Published and registered from an approved saved run outside the original campaign selection.", "countedAsComplete": false }, { - "id": "flux_canny_clean_backdrop", + "id": "sd15_control_cobalt_handmade_paper", "category": "supplementary-only", "reason": "Published and registered from an approved saved run outside the original campaign selection.", "countedAsComplete": false }, { - "id": "flux_depth_marine_bow_repair", + "id": "sd15_control_cobalt_studio_wall_repair", "category": "supplementary-only", "reason": "Published and registered from an approved saved run outside the original campaign selection.", "countedAsComplete": false }, { - "id": "joy_plus_terracotta_on_limestone", + "id": "sd15_pag_canny_guided_glass", "category": "supplementary-only", "reason": "Published and registered from an approved saved run outside the original campaign selection.", "countedAsComplete": false }, { - "id": "omnigen_red_enamel_folded_linen", + "id": "sd15_pag_cobalt_studio_repair", "category": "supplementary-only", "reason": "Published and registered from an approved saved run outside the original campaign selection.", "countedAsComplete": false }, { - "id": "qwen_2511_terracotta_material_transfer", + "id": "sd15_pag_control_wall_repair", "category": "supplementary-only", "reason": "Published and registered from an approved saved run outside the original campaign selection.", "countedAsComplete": false }, { - "id": "sd15_control_cobalt_handmade_paper", + "id": "sd15_pag_mountain_lake_watercolor", "category": "supplementary-only", "reason": "Published and registered from an approved saved run outside the original campaign selection.", "countedAsComplete": false }, { - "id": "sd15_control_cobalt_studio_wall_repair", + "id": "sdxl_blue_glass_on_linen", "category": "supplementary-only", "reason": "Published and registered from an approved saved run outside the original campaign selection.", "countedAsComplete": false }, { - "id": "sd15_pag_control_wall_repair", + "id": "sdxl_canny_adapter_glass_study", "category": "supplementary-only", "reason": "Published and registered from an approved saved run outside the original campaign selection.", "countedAsComplete": false }, { - "id": "sdxl_control_golden_boathouse", + "id": "sdxl_clear_cobalt_backdrop", "category": "supplementary-only", - "reason": "Published and registered from an approved saved run outside the original campaign selection.", + "reason": "Published and registered from the approved saved run outside the original campaign selection.", "countedAsComplete": false }, { - "id": "sdxl_pag_snow_cabin", + "id": "sdxl_control_golden_boathouse", "category": "supplementary-only", "reason": "Published and registered from an approved saved run outside the original campaign selection.", "countedAsComplete": false }, { - "id": "allegro_basalt_shore_at_dawn", + "id": "sdxl_control_inpaint_warm_plaster", "category": "supplementary-only", "reason": "Published and registered from an approved saved run outside the original campaign selection.", "countedAsComplete": false }, { - "id": "animatediff_candlelight_behind_amber_glass", + "id": "sdxl_controlnet_glass_study_on_slate", "category": "supplementary-only", "reason": "Published and registered from an approved saved run outside the original campaign selection.", "countedAsComplete": false }, { - "id": "animatediff_ivory_balloon_blue_mountains", + "id": "sdxl_pag_cobalt_wall", "category": "supplementary-only", "reason": "Published and registered from an approved saved run outside the original campaign selection.", "countedAsComplete": false }, { - "id": "animatediff_red_tram_in_watercolor", + "id": "sdxl_pag_lighthouse_in_graphite", "category": "supplementary-only", "reason": "Published and registered from an approved saved run outside the original campaign selection.", "countedAsComplete": false }, { - "id": "animatediff_red_tram_through_snow", + "id": "sdxl_pag_snow_cabin", "category": "supplementary-only", "reason": "Published and registered from an approved saved run outside the original campaign selection.", "countedAsComplete": false }, { - "id": "mochi_surf_over_dark_pebbles", + "id": "sdxl_pag_two_tier_cobalt_glass", "category": "supplementary-only", "reason": "Published and registered from an approved saved run outside the original campaign selection.", "countedAsComplete": false }, { - "id": "sana_i2v_blue_hour_above_rice_terraces", + "id": "sdxl_pix2pix_pale_amber_glass", "category": "supplementary-only", "reason": "Published and registered from an approved saved run outside the original campaign selection.", "countedAsComplete": false }, { - "id": "sana_video_water_terraces_before_sunrise", + "id": "sdxl_turbo_orange_caps", "category": "supplementary-only", - "reason": "Published and registered from an approved saved run outside the original campaign selection.", + "reason": "Published and registered from the approved saved run outside the original campaign selection.", "countedAsComplete": false }, { - "id": "spandrel_tram_shelter_video_2x", + "id": "smollm2_rain_gauge", "category": "supplementary-only", - "reason": "Published and registered from an approved saved run outside the original campaign selection.", + "reason": "Published and registered as a supplementary Gallery example outside the original campaign selection.", "countedAsComplete": false }, { - "id": "wan_a14b_wind_across_pond", + "id": "smolvlm_red_triangle", "category": "supplementary-only", - "reason": "Published and registered from an approved saved run outside the original campaign selection.", + "reason": "Published and registered from the approved saved run outside the original campaign selection.", "countedAsComplete": false }, { - "id": "wan_ti2v_subway_musician", + "id": "spandrel_tram_shelter_video_2x", "category": "supplementary-only", "reason": "Published and registered from an approved saved run outside the original campaign selection.", "countedAsComplete": false }, { - "id": "wan_vace_amber_rings_after_rain", + "id": "spandrel_x2_synthetic_gradient", "category": "supplementary-only", - "reason": "Published and registered from an approved saved run outside the original campaign selection.", + "countedAsComplete": false, + "reason": "Published and registered as a supplementary Gallery technical preview outside the original campaign selection." + }, + { + "id": "wan_21_t2v_13b_seed_vault", + "category": "amd-cloud", + "reason": "Full recipe deferred to AMD cloud; local complete-workflow campaign budget is two hours. No MoDiff user runtime restriction.", "countedAsComplete": false }, { - "id": "wan_animate_glasshouse_keeper", - "category": "supplementary-only", - "reason": "Published and registered from an approved saved run outside the original campaign selection.", + "id": "wan_22_i2v_seed_vault", + "category": "amd-cloud", + "reason": "Full recipe deferred to AMD cloud; local complete-workflow campaign budget is two hours. No MoDiff user runtime restriction.", "countedAsComplete": false }, { - "id": "animatediff_pag_snowmelt_over_river_stones", - "category": "supplementary-only", - "reason": "Published and registered from an approved saved run outside the original campaign selection.", + "id": "wan_22_ti2v_5b_seed_vault", + "category": "amd-cloud", + "reason": "Full recipe deferred to AMD cloud; local complete-workflow campaign budget is two hours. No MoDiff user runtime restriction.", "countedAsComplete": false }, { - "id": "animatelcm_sunlit_surf", + "id": "wan_a14b_cloudbreak_over_the_ridges", "category": "supplementary-only", "reason": "Published and registered from an approved saved run outside the original campaign selection.", "countedAsComplete": false }, { - "id": "chroma_copper_medallion_outpaint", + "id": "wan_a14b_wind_across_pond", "category": "supplementary-only", "reason": "Published and registered from an approved saved run outside the original campaign selection.", "countedAsComplete": false }, { - "id": "flux_dev_forest_green_teapot", + "id": "wan_animate_glasshouse_keeper", "category": "supplementary-only", "reason": "Published and registered from an approved saved run outside the original campaign selection.", "countedAsComplete": false }, { - "id": "flux_kontext_bookshop_clear_glass", + "id": "wan_animate_signal_through_the_rain", "category": "supplementary-only", "reason": "Published and registered from an approved saved run outside the original campaign selection.", "countedAsComplete": false }, { - "id": "latte_water_folding_over_slate", + "id": "wan_flf_blue_hour_at_the_tram_shelter", "category": "supplementary-only", "reason": "Published and registered from an approved saved run outside the original campaign selection.", "countedAsComplete": false }, { - "id": "ltx2_enamel_teapot_window_light", + "id": "wan_ti2v_subway_musician", "category": "supplementary-only", "reason": "Published and registered from an approved saved run outside the original campaign selection.", "countedAsComplete": false }, { - "id": "ltx2_glasshouse_drip", + "id": "wan_vace_amber_glass_stabilized", "category": "supplementary-only", "reason": "Published and registered from an approved saved run outside the original campaign selection.", "countedAsComplete": false }, { - "id": "ltx2_kiln_at_first_light", + "id": "wan_vace_amber_rings_after_rain", "category": "supplementary-only", "reason": "Published and registered from an approved saved run outside the original campaign selection.", "countedAsComplete": false }, { - "id": "ltx2_moss_and_basalt", - "category": "supplementary-only", - "reason": "Published and registered from an approved saved run outside the original campaign selection.", + "id": "wan_vace_animate_product_still", + "category": "planning-contract", + "reason": "Planning-only workflow lacks its separately required implementation or execution qualification.", "countedAsComplete": false }, { - "id": "ltx2_surf_below_the_breakwater", + "id": "wan_vace_direct_text_to_video", + "category": "planning-contract", + "reason": "Planning-only workflow lacks its separately required implementation or execution qualification.", + "countedAsComplete": false + }, + { + "id": "wan_vace_masked_object_replace", + "category": "amd-cloud", + "reason": "Full recipe deferred to AMD cloud; local complete-workflow campaign budget is two hours. No MoDiff user runtime restriction.", + "countedAsComplete": false + }, + { + "id": "wan_vace_reference_motion", + "category": "planning-contract", + "reason": "Planning-only workflow lacks its separately required implementation or execution qualification.", + "countedAsComplete": false + }, + { + "id": "wav2vec2_station_announcement", "category": "supplementary-only", - "reason": "Published and registered from an approved saved run outside the original campaign selection.", + "reason": "Published and registered as a supplementary Gallery example outside the original campaign selection.", "countedAsComplete": false }, { - "id": "ltx_long_wind_and_tide_at_the_headland", + "id": "whisper_small_an_open_door", "category": "supplementary-only", - "reason": "Published and registered from an approved saved run outside the original campaign selection.", + "reason": "Published and registered from the approved saved run outside the original campaign selection.", "countedAsComplete": false }, { - "id": "sdxl_pag_lighthouse_in_graphite", + "id": "whisper_tiny_blue_cup_transcription", "category": "supplementary-only", - "reason": "Published and registered from an approved saved run outside the original campaign selection.", + "reason": "Published and registered as a supplementary Gallery example outside the original campaign selection.", "countedAsComplete": false }, { - "id": "sdxl_pag_two_tier_cobalt_glass", + "id": "zimage_golden_amber_glass", "category": "supplementary-only", "reason": "Published and registered from an approved saved run outside the original campaign selection.", "countedAsComplete": false }, { - "id": "wan_animate_signal_through_the_rain", + "id": "zimage_rocky_glacial_shores", "category": "supplementary-only", "reason": "Published and registered from an approved saved run outside the original campaign selection.", "countedAsComplete": false }, { - "id": "wan_vace_amber_glass_stabilized", + "id": "zimage_seamless_cobalt_backdrop", "category": "supplementary-only", "reason": "Published and registered from an approved saved run outside the original campaign selection.", "countedAsComplete": false } ], - "profileHash": "sha256:canonical-json:17a8f0208fc7afe7d83b32b2b2216bbb3140fff032d8bd646f3502aed858b64e" + "profileHash": "sha256:canonical-json:ebc60cb923424daa8a097f6c16e90e9c6c8987deadd94b0fbf2f3003885b99a9" } diff --git a/config/retained-gallery-approved-batch.v1.json b/config/retained-gallery-approved-batch.v1.json index 9a116a58..85231a54 100644 --- a/config/retained-gallery-approved-batch.v1.json +++ b/config/retained-gallery-approved-batch.v1.json @@ -116,6 +116,14 @@ "height": 512 } }, + "audioldm2_wind_through_high_pines": { + "associationSha256": "55ce12b28bcb74c188a81a7f5652f58fa5e2e4e5f502477c712a2fc91fda19f9", + "backendSourceFingerprint": "sha256:backend-source-v1:2faeaaa03b7902a03df5cd0cea38129b7419f6d844125c0ca7e29ccfaf635290", + "backendContractFingerprint": "sha256:backend-contract-v1:9ddcba2a3da4634780919a6872ed9a6586f7a765f16243cee9763b776d02b356", + "templateRevisionHash": "1e95e96945a61ebe10ce15747c762aacbb9cc86520b8cf826aa9a4b91b7f9edd", + "capturedAt": "2026-11-25T00:34:07.462Z", + "outputExtension": "wav" + }, "bookshop_at_blue_hour": { "associationSha256": "e88d530a22af0c530efeea91227f5287740e579eeab88ab18d11d20979bef7cb", "backendSourceFingerprint": "sha256:backend-source-v1:371fd754663a95b1b06900df9a838042048466464b4bd5cfa7033c1b6eebe0e3", diff --git a/config/retained-gallery-authoring-archives.v1.json b/config/retained-gallery-authoring-archives.v1.json index a14c5f1c..63beca1c 100644 --- a/config/retained-gallery-authoring-archives.v1.json +++ b/config/retained-gallery-authoring-archives.v1.json @@ -34,6 +34,11 @@ "bytes": 5060, "sha256": "3af27719dbc699a711ea79d0f38fd05301c280468e0c3454231e191861ca5d24" }, + "AudioLDM2Pipeline:text_to_audio": { + "descriptorSha256": "23a27ed8d0cdd7b64c550a961a66853c304e6516533018995fb8e91b8d77dec4", + "bytes": 3926, + "sha256": "2c285934816b2989e03c9b8fa79b2b744c9421e1669714b60cb95da93dcfb6d3" + }, "AuraFlowPipeline:text_to_image": { "descriptorSha256": "c4ce21c85cf0412cc1e69ff59009037bbdde9d1692cff19f307d589b84fb5b1f", "bytes": 4108, diff --git a/config/retained-gallery-batch-recipe-locks.v1.json b/config/retained-gallery-batch-recipe-locks.v1.json index f1e69810..86d2f149 100644 --- a/config/retained-gallery-batch-recipe-locks.v1.json +++ b/config/retained-gallery-batch-recipe-locks.v1.json @@ -1601,5 +1601,18 @@ "promptSha256": "46826d4c16c0e700fd7f24ce5eb4c04af3c69ea290180244bcd062c3c6a46d79", "inputSha256": "51624f59295a77119bf336a63bfc7731d33d6612bc44b15495bddabdfae3ef51", "inputLocatorSha256": "ff67721141957f1b8ee5881a9036cf19512f0dfe8e068e682da35a39060121ad" + }, + "audioldm2_wind_through_high_pines": { + "workflowId": "AudioLDM2Pipeline:text_to_audio", + "sourceTaskTemplateId": "task-template:audioldm2-base:text-to-audio:v1", + "retainedGraphHash": "sha256:canonical-graph-v1:3b4e9f186c35a687114a08eef220f841aba92feaae4d515ce9c6b15252750cd5", + "originalReceiptSha256": "23a27ed8d0cdd7b64c550a961a66853c304e6516533018995fb8e91b8d77dec4", + "reviewedTemplateSha256": "1e95e96945a61ebe10ce15747c762aacbb9cc86520b8cf826aa9a4b91b7f9edd", + "reviewedCatalogLock": { + "templateLockHash": "tpl_3490e48c", + "galleryTemplateLockHash": "tpl_576af977", + "promptSettingsHash": "ps_0a65234d" + }, + "promptSha256": "cdf4f4e12b557231ea6404ae2fb46fef4975a772c2f434a9920386b506ffbe01" } } diff --git a/config/template-asset-rights.v1.json b/config/template-asset-rights.v1.json index b46786ae..4ab46e93 100644 --- a/config/template-asset-rights.v1.json +++ b/config/template-asset-rights.v1.json @@ -1,6 +1,6 @@ { "schemaVersion": 1, - "assetSetId": "sha256:canonical-json:8ee20b6e168398e406a81e3eb9b9187741c405571af52f2454956c4e9f500bcb", + "assetSetId": "sha256:canonical-json:ae0711e49b16b50a55cbdf0e7ca90b58b1b723e3a66b3385ca19662982e70c42", "records": [ { "path": "template-gallery/ace_step_audio_continuation.wav", @@ -17,7 +17,9 @@ ], "aiGenerated": true, "humanLikenessConsent": "synthetic", - "marks": ["MoDiff project name in the project-authored lyrics"], + "marks": [ + "MoDiff project name in the project-authored lyrics" + ], "requiredAttribution": [], "assetLicense": "Apache-2.0", "reviewedBy": "SOURAV DAS", @@ -137,7 +139,9 @@ ], "aiGenerated": true, "humanLikenessConsent": "synthetic", - "marks": ["Singer-style and training-song rights require upstream confirmation"], + "marks": [ + "Singer-style and training-song rights require upstream confirmation" + ], "requiredAttribution": [], "assetLicense": "upstream-terms-only", "reviewedBy": null, @@ -160,7 +164,9 @@ ], "aiGenerated": true, "humanLikenessConsent": "synthetic", - "marks": ["Singer-style and training-song rights require upstream confirmation"], + "marks": [ + "Singer-style and training-song rights require upstream confirmation" + ], "requiredAttribution": [], "assetLicense": "upstream-terms-only", "reviewedBy": null, @@ -358,7 +364,9 @@ ], "aiGenerated": true, "humanLikenessConsent": "synthetic", - "marks": ["MoDiff project name in the project-authored lyrics"], + "marks": [ + "MoDiff project name in the project-authored lyrics" + ], "requiredAttribution": [], "assetLicense": "Apache-2.0", "reviewedBy": "SOURAV DAS", @@ -584,6 +592,33 @@ "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", "provenanceTemplateId": "animatelcm_sunlit_surf" }, + { + "path": "template-gallery/audioldm2_wind_through_high_pines.wav", + "sha256": "sha256:bytes:6466efff6cc71c5f068df11ab58a1443dfe53ccf28e31c3ad2806590fe6190a6", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Exact approved file captured from a saved MoDiff workflow", + "sourceUrl": "https://huggingface.co/cvssp/audioldm2/tree/c8e7e189d324425c05c4c2f81214041ef4107983", + "sourceRevision": "cvssp/audioldm2@c8e7e189d324425c05c4c2f81214041ef4107983", + "sourceLicense": "Maintainer-authorized file with publisher terms retained", + "modelTerms": [ + "https://huggingface.co/cvssp/audioldm2/blob/c8e7e189d324425c05c4c2f81214041ef4107983/README.md" + ], + "aiGenerated": true, + "humanLikenessConsent": "synthetic", + "marks": [], + "requiredAttribution": [ + "cvssp/audioldm2@c8e7e189d324425c05c4c2f81214041ef4107983 https://huggingface.co/cvssp/audioldm2/tree/c8e7e189d324425c05c4c2f81214041ef4107983" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "c897ae58c52588da56b92e22d8b3c6b7d9becac539057047f38e1303230949da", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "audioldm2_wind_through_high_pines" + }, { "path": "template-gallery/bookshop_at_blue_hour.webp", "sha256": "sha256:bytes:ff045be510a0e88cbab69bbe8c3794dd26bd19036bdec26a63a5b6ea5a11bc66", @@ -702,7 +737,9 @@ "sourceUrl": "https://huggingface.co/lodestones/Chroma1-HD/tree/0e0c60ece1e82b17cb7f77342d765ba5024c40c0", "sourceRevision": "lodestones/Chroma1-HD@0e0c60ece1e82b17cb7f77342d765ba5024c40c0", "sourceLicense": "Maintainer-authorized file with publisher terms retained", - "modelTerms": ["https://huggingface.co/lodestones/Chroma1-HD/tree/0e0c60ece1e82b17cb7f77342d765ba5024c40c0"], + "modelTerms": [ + "https://huggingface.co/lodestones/Chroma1-HD/tree/0e0c60ece1e82b17cb7f77342d765ba5024c40c0" + ], "aiGenerated": true, "humanLikenessConsent": "synthetic", "marks": [], @@ -1162,7 +1199,9 @@ "aiGenerated": true, "humanLikenessConsent": "synthetic", "marks": [], - "requiredAttribution": ["sourav-das"], + "requiredAttribution": [ + "sourav-das" + ], "assetLicense": "CC-BY-4.0", "reviewedBy": "sourav-das", "reviewedAt": "2026-10-31", @@ -1187,7 +1226,9 @@ "aiGenerated": true, "humanLikenessConsent": "synthetic", "marks": [], - "requiredAttribution": ["sourav-das"], + "requiredAttribution": [ + "sourav-das" + ], "assetLicense": "CC-BY-4.0", "reviewedBy": "sourav-das", "reviewedAt": "2026-10-31", @@ -1212,7 +1253,9 @@ "aiGenerated": true, "humanLikenessConsent": "synthetic", "marks": [], - "requiredAttribution": ["sourav-das"], + "requiredAttribution": [ + "sourav-das" + ], "assetLicense": "CC-BY-4.0", "reviewedBy": "sourav-das", "reviewedAt": "2026-10-31", @@ -1237,7 +1280,9 @@ "aiGenerated": true, "humanLikenessConsent": "synthetic", "marks": [], - "requiredAttribution": ["sourav-das"], + "requiredAttribution": [ + "sourav-das" + ], "assetLicense": "CC-BY-4.0", "reviewedBy": "sourav-das", "reviewedAt": "2026-10-31", @@ -1262,7 +1307,9 @@ "aiGenerated": true, "humanLikenessConsent": "synthetic", "marks": [], - "requiredAttribution": ["sourav-das"], + "requiredAttribution": [ + "sourav-das" + ], "assetLicense": "CC-BY-4.0", "reviewedBy": "sourav-das", "reviewedAt": "2026-10-31", @@ -1289,7 +1336,9 @@ "aiGenerated": true, "humanLikenessConsent": "synthetic", "marks": [], - "requiredAttribution": ["sourav-das"], + "requiredAttribution": [ + "sourav-das" + ], "assetLicense": "CC-BY-4.0", "reviewedBy": "sourav-das", "reviewedAt": "2026-10-31", @@ -1314,7 +1363,9 @@ "aiGenerated": true, "humanLikenessConsent": "synthetic", "marks": [], - "requiredAttribution": ["sourav-das"], + "requiredAttribution": [ + "sourav-das" + ], "assetLicense": "CC-BY-4.0", "reviewedBy": "sourav-das", "reviewedAt": "2026-10-31", @@ -1339,7 +1390,9 @@ "aiGenerated": true, "humanLikenessConsent": "synthetic", "marks": [], - "requiredAttribution": ["sourav-das"], + "requiredAttribution": [ + "sourav-das" + ], "assetLicense": "CC-BY-4.0", "reviewedBy": "sourav-das", "reviewedAt": "2026-10-31", @@ -1364,7 +1417,9 @@ "aiGenerated": true, "humanLikenessConsent": "synthetic", "marks": [], - "requiredAttribution": ["sourav-das"], + "requiredAttribution": [ + "sourav-das" + ], "assetLicense": "CC-BY-4.0", "reviewedBy": "sourav-das", "reviewedAt": "2026-10-31", @@ -1389,7 +1444,9 @@ "aiGenerated": true, "humanLikenessConsent": "synthetic", "marks": [], - "requiredAttribution": ["sourav-das"], + "requiredAttribution": [ + "sourav-das" + ], "assetLicense": "CC-BY-4.0", "reviewedBy": "sourav-das", "reviewedAt": "2026-10-31", @@ -1720,7 +1777,9 @@ ], "aiGenerated": true, "humanLikenessConsent": "not-applicable", - "marks": ["Fictional ASTERMIST / LAVENDER SLEEP SPRAY product label"], + "marks": [ + "Fictional ASTERMIST / LAVENDER SLEEP SPRAY product label" + ], "requiredAttribution": [], "publicationBasis": "Existing maintainer publication authorization and current explicit instruction to register these three accepted assets; no new ownership or rights quotation is fabricated.", "path": "template-gallery/flux_kontext_edit.webp", @@ -1745,7 +1804,9 @@ ], "aiGenerated": true, "humanLikenessConsent": "not-applicable", - "marks": ["Fictional ASTERMIST / LAVENDER SLEEP SPRAY product label"], + "marks": [ + "Fictional ASTERMIST / LAVENDER SLEEP SPRAY product label" + ], "requiredAttribution": [], "publicationBasis": "Existing maintainer publication authorization and current explicit instruction to register these three accepted assets; no new ownership or rights quotation is fabricated.", "path": "template-gallery/flux_kontext_multi_reference.webp", @@ -1901,7 +1962,9 @@ ], "aiGenerated": true, "humanLikenessConsent": "synthetic", - "marks": ["Studio Ghibli style reference; no franchise character requested"], + "marks": [ + "Studio Ghibli style reference; no franchise character requested" + ], "requiredAttribution": [], "assetLicense": "upstream-terms-only", "reviewedBy": null, @@ -1925,7 +1988,9 @@ ], "aiGenerated": true, "humanLikenessConsent": "synthetic", - "marks": ["Studio Ghibli style reference; no franchise character requested"], + "marks": [ + "Studio Ghibli style reference; no franchise character requested" + ], "requiredAttribution": [], "assetLicense": "upstream-terms-only", "reviewedBy": null, @@ -2272,7 +2337,9 @@ "sourceUrl": "https://huggingface.co/zai-org/GLM-Image/tree/2c433cc0cbc293bde2ac8ca9624f279b5d23fcf4", "sourceRevision": "zai-org/GLM-Image@2c433cc0cbc293bde2ac8ca9624f279b5d23fcf4", "sourceLicense": "Maintainer-authorized file with publisher terms retained", - "modelTerms": ["mit. https://huggingface.co/zai-org/GLM-Image/tree/2c433cc0cbc293bde2ac8ca9624f279b5d23fcf4"], + "modelTerms": [ + "mit. https://huggingface.co/zai-org/GLM-Image/tree/2c433cc0cbc293bde2ac8ca9624f279b5d23fcf4" + ], "aiGenerated": true, "humanLikenessConsent": "synthetic", "marks": [], @@ -2591,7 +2658,9 @@ "reviewedAt": "2026-11-13", "reviewClass": "per-file-maintainer-accepted-native-six-registration", "provenanceTemplateId": "flux_redux_edit", - "consumingTemplateIds": ["flux_redux_edit"], + "consumingTemplateIds": [ + "flux_redux_edit" + ], "retainedOriginalPath": "template-gallery/inputs/flux_redux_edit.before.webp", "humanApprovalPacketSHA256": "03b66b4631afb15032d62a1705331b56f6b12c4882c23945175ec92cc45a506f", "publicationBasis": "Register the six approved assets now while Moonflower runs on Linux. Use Windows in parallel wherever possible, and keep the longer workflows separate for AMD cloud." @@ -2744,7 +2813,9 @@ "reviewedAt": "2026-11-15", "reviewClass": "per-file-maintainer-accepted-native-two-registration", "provenanceTemplateId": "flux_redux_multi_reference", - "consumingTemplateIds": ["flux_redux_multi_reference"], + "consumingTemplateIds": [ + "flux_redux_multi_reference" + ], "retainedOriginalPath": "template-gallery/inputs/flux_redux_multi_reference.before.webp", "humanApprovalPacketSHA256": "c3c5e06d05771cf28f823e1dee31a9e7e3765d2f84038823aaadc505ee8290f5", "publicationBasis": "you can register these two as well" @@ -3126,7 +3197,9 @@ "reviewedAt": "2026-11-13", "reviewClass": "per-file-maintainer-accepted-native-six-registration", "provenanceTemplateId": "ltx_video_video_to_video", - "consumingTemplateIds": ["ltx_video_video_to_video"], + "consumingTemplateIds": [ + "ltx_video_video_to_video" + ], "retainedOriginalPath": "template-gallery/inputs/ltx_video_video_to_video.before.mp4", "humanApprovalPacketSHA256": "03b66b4631afb15032d62a1705331b56f6b12c4882c23945175ec92cc45a506f", "publicationBasis": "Register the six approved assets now while Moonflower runs on Linux. Use Windows in parallel wherever possible, and keep the longer workflows separate for AMD cloud." @@ -3464,7 +3537,9 @@ "reviewedAt": "2026-11-15", "reviewClass": "per-file-maintainer-accepted-native-seven-registration", "provenanceTemplateId": "wan_vace_grayscale_control", - "consumingTemplateIds": ["wan_vace_grayscale_control"], + "consumingTemplateIds": [ + "wan_vace_grayscale_control" + ], "retainedOriginalPath": "template-gallery/inputs/wan_vace_grayscale_control.before.mp4", "humanApprovalPacketSHA256": "95c7c2ed080c3d618db1701b066724660595337460c46df8305b50810783eaa3", "publicationBasis": "these are approved, you can register them" @@ -3644,7 +3719,9 @@ "reviewedAt": "2026-11-15", "reviewClass": "per-file-maintainer-accepted-native-seven-registration", "provenanceTemplateId": "wan_vace_outpaint_reframe", - "consumingTemplateIds": ["wan_vace_outpaint_reframe"], + "consumingTemplateIds": [ + "wan_vace_outpaint_reframe" + ], "retainedOriginalPath": "template-gallery/inputs/wan_vace_outpaint_reframe.before.mp4", "humanApprovalPacketSHA256": "95c7c2ed080c3d618db1701b066724660595337460c46df8305b50810783eaa3", "publicationBasis": "these are approved, you can register them" @@ -3824,7 +3901,9 @@ "reviewedAt": "2026-11-15", "reviewClass": "per-file-maintainer-accepted-native-seven-registration", "provenanceTemplateId": "wan_vace_video_color_grade", - "consumingTemplateIds": ["wan_vace_video_color_grade"], + "consumingTemplateIds": [ + "wan_vace_video_color_grade" + ], "retainedOriginalPath": "template-gallery/inputs/wan_vace_video_color_grade.before.mp4", "humanApprovalPacketSHA256": "95c7c2ed080c3d618db1701b066724660595337460c46df8305b50810783eaa3", "publicationBasis": "these are approved, you can register them" @@ -4004,7 +4083,9 @@ "reviewedAt": "2026-11-15", "reviewClass": "per-file-maintainer-accepted-native-seven-registration", "provenanceTemplateId": "wan_vace_video_to_video", - "consumingTemplateIds": ["wan_vace_video_to_video"], + "consumingTemplateIds": [ + "wan_vace_video_to_video" + ], "retainedOriginalPath": "template-gallery/inputs/wan_vace_video_to_video.before.mp4", "humanApprovalPacketSHA256": "95c7c2ed080c3d618db1701b066724660595337460c46df8305b50810783eaa3", "publicationBasis": "these are approved, you can register them" @@ -4240,7 +4321,10 @@ "reviewedBy": "SOURAV DAS", "reviewedAt": "2026-11-13", "reviewClass": "per-file-maintainer-accepted-native-six-registration", - "consumingTemplateIds": ["ace_step_audio_repaint", "ace_step_audio_variation"], + "consumingTemplateIds": [ + "ace_step_audio_repaint", + "ace_step_audio_variation" + ], "humanApprovalPacketSHA256": "03b66b4631afb15032d62a1705331b56f6b12c4882c23945175ec92cc45a506f", "publicationBasis": "Register the six approved assets now while Moonflower runs on Linux. Use Windows in parallel wherever possible, and keep the longer workflows separate for AMD cloud.", "provenanceTemplateId": "ace_step_audio_variation" @@ -4403,7 +4487,9 @@ "reviewedAt": "2026-08-03", "reviewClass": "standard-human-attestation", "provenanceTemplateId": "character_edit", - "consumingTemplateIds": ["character_edit"] + "consumingTemplateIds": [ + "character_edit" + ] }, { "path": "template-gallery/inputs/chroma_alpine_block_print.before.png", @@ -4442,7 +4528,9 @@ "sourceUrl": "https://huggingface.co/lodestones/Chroma1-HD/tree/0e0c60ece1e82b17cb7f77342d765ba5024c40c0", "sourceRevision": "lodestones/Chroma1-HD@0e0c60ece1e82b17cb7f77342d765ba5024c40c0", "sourceLicense": "Maintainer-authorized file with publisher terms retained", - "modelTerms": ["https://huggingface.co/lodestones/Chroma1-HD/tree/0e0c60ece1e82b17cb7f77342d765ba5024c40c0"], + "modelTerms": [ + "https://huggingface.co/lodestones/Chroma1-HD/tree/0e0c60ece1e82b17cb7f77342d765ba5024c40c0" + ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], @@ -4644,7 +4732,9 @@ "reviewedAt": "2026-08-03", "reviewClass": "standard-human-attestation", "provenanceTemplateId": "flux2_klein_multi_reference", - "consumingTemplateIds": ["flux2_klein_multi_reference"] + "consumingTemplateIds": [ + "flux2_klein_multi_reference" + ] }, { "path": "template-gallery/inputs/flux3-packaging-protected-photo-mask-v1.png", @@ -4660,7 +4750,9 @@ "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], - "requiredAttribution": ["sourav-das"], + "requiredAttribution": [ + "sourav-das" + ], "assetLicense": "CC-BY-4.0", "reviewedBy": "sourav-das", "reviewedAt": "2026-10-31", @@ -4879,7 +4971,9 @@ "reviewedAt": "2026-08-03", "reviewClass": "standard-human-attestation", "provenanceTemplateId": "flux_control_canny", - "consumingTemplateIds": ["flux_control_canny"] + "consumingTemplateIds": [ + "flux_control_canny" + ] }, { "path": "template-gallery/inputs/flux_depth_control.before.png", @@ -4903,7 +4997,9 @@ "reviewedAt": "2026-08-03", "reviewClass": "standard-human-attestation", "provenanceTemplateId": "flux_depth_control", - "consumingTemplateIds": ["flux_depth_control"] + "consumingTemplateIds": [ + "flux_depth_control" + ] }, { "path": "template-gallery/inputs/flux_depth_marine_bow_repair.before.webp", @@ -5035,7 +5131,9 @@ "reviewedAt": "2026-08-03", "reviewClass": "standard-human-attestation", "provenanceTemplateId": "flux_fill_inpaint", - "consumingTemplateIds": ["flux_fill_inpaint"] + "consumingTemplateIds": [ + "flux_fill_inpaint" + ] }, { "path": "template-gallery/inputs/flux_fill_outpaint.before.png", @@ -5059,7 +5157,9 @@ "reviewedAt": "2026-08-03", "reviewClass": "standard-human-attestation", "provenanceTemplateId": "flux_fill_outpaint", - "consumingTemplateIds": ["flux_fill_outpaint"] + "consumingTemplateIds": [ + "flux_fill_outpaint" + ] }, { "path": "template-gallery/inputs/flux_klein_alpine_lake_panorama.before.png", @@ -5218,7 +5318,9 @@ "reviewedAt": "2026-08-03", "reviewClass": "standard-human-attestation", "provenanceTemplateId": "flux_kontext_edit", - "consumingTemplateIds": ["flux_kontext_edit"] + "consumingTemplateIds": [ + "flux_kontext_edit" + ] }, { "path": "template-gallery/inputs/flux_kontext_multi_reference.before.webp", @@ -5242,7 +5344,9 @@ "reviewedAt": "2026-08-03", "reviewClass": "standard-human-attestation", "provenanceTemplateId": "flux_kontext_multi_reference", - "consumingTemplateIds": ["flux_kontext_multi_reference"] + "consumingTemplateIds": [ + "flux_kontext_multi_reference" + ] }, { "path": "template-gallery/inputs/flux_kontext_multi_reference.material-strip.v2.png", @@ -5265,7 +5369,9 @@ "reviewedBy": "maintainer (current user)", "reviewedAt": "2026-11-12", "reviewClass": "per-file-maintainer-accepted-native-three-registration", - "consumingTemplateIds": ["flux_kontext_multi_reference"], + "consumingTemplateIds": [ + "flux_kontext_multi_reference" + ], "derivedFromContentHash": "sha256:bytes:9f421cdc0fa80b3aae368bd3b20a8f6f05942ec461f88541f01aec5390468897", "publicationBasis": "Existing maintainer publication authorization and current explicit instruction to register these three accepted assets; no new ownership or rights quotation is fabricated.", "humanApprovalPacketSHA256": "69c6b3d9b0ea2fcca16ee538f6e75b414b7141658b74f10578758e61360f63fd" @@ -5293,7 +5399,9 @@ "reviewedAt": "2026-08-03", "reviewClass": "standard-human-attestation", "provenanceTemplateId": "flux_redux_edit", - "consumingTemplateIds": ["flux_redux_edit"] + "consumingTemplateIds": [ + "flux_redux_edit" + ] }, { "path": "template-gallery/inputs/flux_redux_multi_reference.before.webp", @@ -5318,7 +5426,9 @@ "reviewedAt": "2026-08-03", "reviewClass": "standard-human-attestation", "provenanceTemplateId": "flux_redux_multi_reference", - "consumingTemplateIds": ["flux_redux_multi_reference"] + "consumingTemplateIds": [ + "flux_redux_multi_reference" + ] }, { "path": "template-gallery/inputs/hunyuan_dit_green_glass_study.before.png", @@ -5576,7 +5686,9 @@ "sourceUrl": "https://huggingface.co/Lightricks/LTX-2/tree/47da56e2ad66ce4125a9922b4a8826bf407f9d0a", "sourceRevision": "Lightricks/LTX-2@47da56e2ad66ce4125a9922b4a8826bf407f9d0a", "sourceLicense": "Maintainer-authorized file with publisher terms retained", - "modelTerms": ["https://huggingface.co/Lightricks/LTX-2/blob/47da56e2ad66ce4125a9922b4a8826bf407f9d0a/LICENSE"], + "modelTerms": [ + "https://huggingface.co/Lightricks/LTX-2/blob/47da56e2ad66ce4125a9922b4a8826bf407f9d0a/LICENSE" + ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], @@ -5601,7 +5713,9 @@ "sourceUrl": "https://huggingface.co/Lightricks/LTX-2/tree/47da56e2ad66ce4125a9922b4a8826bf407f9d0a", "sourceRevision": "Lightricks/LTX-2@47da56e2ad66ce4125a9922b4a8826bf407f9d0a", "sourceLicense": "Maintainer-authorized file with publisher terms retained", - "modelTerms": ["https://huggingface.co/Lightricks/LTX-2/tree/47da56e2ad66ce4125a9922b4a8826bf407f9d0a"], + "modelTerms": [ + "https://huggingface.co/Lightricks/LTX-2/tree/47da56e2ad66ce4125a9922b4a8826bf407f9d0a" + ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], @@ -5626,7 +5740,9 @@ "sourceUrl": "https://huggingface.co/Lightricks/LTX-2/tree/47da56e2ad66ce4125a9922b4a8826bf407f9d0a", "sourceRevision": "Lightricks/LTX-2@47da56e2ad66ce4125a9922b4a8826bf407f9d0a", "sourceLicense": "Maintainer-authorized file with publisher terms retained", - "modelTerms": ["https://huggingface.co/Lightricks/LTX-2/blob/47da56e2ad66ce4125a9922b4a8826bf407f9d0a/LICENSE"], + "modelTerms": [ + "https://huggingface.co/Lightricks/LTX-2/blob/47da56e2ad66ce4125a9922b4a8826bf407f9d0a/LICENSE" + ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], @@ -5735,7 +5851,9 @@ "reviewedAt": "2026-08-03", "reviewClass": "standard-human-attestation", "provenanceTemplateId": "ltx_video_image_to_video", - "consumingTemplateIds": ["ltx_video_image_to_video"] + "consumingTemplateIds": [ + "ltx_video_image_to_video" + ] }, { "path": "template-gallery/inputs/ltx_video_multi_reference.before.webp", @@ -5760,7 +5878,9 @@ "reviewedAt": "2026-08-03", "reviewClass": "standard-human-attestation", "provenanceTemplateId": "ltx_video_multi_reference", - "consumingTemplateIds": ["ltx_video_multi_reference"] + "consumingTemplateIds": [ + "ltx_video_multi_reference" + ] }, { "path": "template-gallery/inputs/ltx_video_video_to_video.before.mp4", @@ -5787,7 +5907,9 @@ "reviewedAt": "2026-08-03", "reviewClass": "standard-human-attestation", "provenanceTemplateId": "ltx_video_video_to_video", - "consumingTemplateIds": ["ltx_video_video_to_video"] + "consumingTemplateIds": [ + "ltx_video_video_to_video" + ] }, { "path": "template-gallery/inputs/marigold_depth_synthetic_ramp.before.png", @@ -6099,7 +6221,9 @@ "reviewedAt": "2026-08-03", "reviewClass": "standard-human-attestation", "provenanceTemplateId": "qwen_character_angles", - "consumingTemplateIds": ["qwen_character_angles"] + "consumingTemplateIds": [ + "qwen_character_angles" + ] }, { "path": "template-gallery/inputs/qwen_cobalt_on_charcoal_slate.before.png", @@ -6206,7 +6330,9 @@ "reviewedAt": "2026-08-03", "reviewClass": "standard-human-attestation", "provenanceTemplateId": "qwen_edit_plus_single_image", - "consumingTemplateIds": ["qwen_edit_plus_single_image"] + "consumingTemplateIds": [ + "qwen_edit_plus_single_image" + ] }, { "path": "template-gallery/inputs/qwen_edit_strength_sweep.before.webp", @@ -6230,7 +6356,9 @@ "reviewedAt": "2026-08-03", "reviewClass": "standard-human-attestation", "provenanceTemplateId": "qwen_edit_strength_sweep", - "consumingTemplateIds": ["qwen_edit_strength_sweep"] + "consumingTemplateIds": [ + "qwen_edit_strength_sweep" + ] }, { "path": "template-gallery/inputs/qwen_inpaint_mask_draft.before.webp", @@ -6254,7 +6382,9 @@ "reviewedAt": "2026-08-03", "reviewClass": "standard-human-attestation", "provenanceTemplateId": "qwen_inpaint_mask_draft", - "consumingTemplateIds": ["qwen_inpaint_mask_draft"] + "consumingTemplateIds": [ + "qwen_inpaint_mask_draft" + ] }, { "path": "template-gallery/inputs/qwen_inpaint_object_replace.before.webp", @@ -6278,7 +6408,9 @@ "reviewedAt": "2026-08-03", "reviewClass": "standard-human-attestation", "provenanceTemplateId": "qwen_inpaint_object_replace", - "consumingTemplateIds": ["qwen_inpaint_object_replace"] + "consumingTemplateIds": [ + "qwen_inpaint_object_replace" + ] }, { "creatorOrRightsholder": "MoDiff project maintainers, subject to previously approved synthetic source rights and recorded model terms", @@ -6355,7 +6487,9 @@ "reviewedAt": "2026-08-03", "reviewClass": "standard-human-attestation", "provenanceTemplateId": "qwen_logo_texture", - "consumingTemplateIds": ["qwen_logo_texture"] + "consumingTemplateIds": [ + "qwen_logo_texture" + ] }, { "path": "template-gallery/inputs/qwen_multi_reference_product.before.webp", @@ -6380,7 +6514,9 @@ "reviewedAt": "2026-08-03", "reviewClass": "standard-human-attestation", "provenanceTemplateId": "qwen_multi_reference_product", - "consumingTemplateIds": ["qwen_multi_reference_product"] + "consumingTemplateIds": [ + "qwen_multi_reference_product" + ] }, { "path": "template-gallery/inputs/qwen_outpaint_aspect_template.before.webp", @@ -6404,7 +6540,9 @@ "reviewedAt": "2026-08-03", "reviewClass": "standard-human-attestation", "provenanceTemplateId": "qwen_outpaint_aspect_template", - "consumingTemplateIds": ["qwen_outpaint_aspect_template"] + "consumingTemplateIds": [ + "qwen_outpaint_aspect_template" + ] }, { "path": "template-gallery/inputs/qwen_outpaint_draft.before.webp", @@ -6428,7 +6566,9 @@ "reviewedAt": "2026-08-03", "reviewClass": "standard-human-attestation", "provenanceTemplateId": "qwen_outpaint_draft", - "consumingTemplateIds": ["qwen_outpaint_draft"] + "consumingTemplateIds": [ + "qwen_outpaint_draft" + ] }, { "path": "template-gallery/inputs/qwen_packaging_dieline.before.png", @@ -6453,7 +6593,9 @@ "reviewedAt": "2026-08-03", "reviewClass": "standard-human-attestation", "provenanceTemplateId": "qwen_packaging_dieline", - "consumingTemplateIds": ["qwen_packaging_dieline"] + "consumingTemplateIds": [ + "qwen_packaging_dieline" + ] }, { "path": "template-gallery/inputs/qwen_product_ad_composite.before.webp", @@ -6478,7 +6620,9 @@ "reviewedAt": "2026-08-03", "reviewClass": "standard-human-attestation", "provenanceTemplateId": "qwen_product_ad_composite", - "consumingTemplateIds": ["qwen_product_ad_composite"] + "consumingTemplateIds": [ + "qwen_product_ad_composite" + ] }, { "path": "template-gallery/inputs/qwen_product_relight.before.webp", @@ -6503,7 +6647,9 @@ "reviewedAt": "2026-08-03", "reviewClass": "standard-human-attestation", "provenanceTemplateId": "qwen_product_relight", - "consumingTemplateIds": ["qwen_product_relight"] + "consumingTemplateIds": [ + "qwen_product_relight" + ] }, { "path": "template-gallery/inputs/qwen_tile_extract.before.webp", @@ -6527,7 +6673,9 @@ "reviewedAt": "2026-08-03", "reviewClass": "standard-human-attestation", "provenanceTemplateId": "qwen_tile_extract", - "consumingTemplateIds": ["qwen_tile_extract"] + "consumingTemplateIds": [ + "qwen_tile_extract" + ] }, { "creatorOrRightsholder": "MoDiff project maintainers, with exact-file rights explicitly attested by the maintainer", @@ -6578,7 +6726,9 @@ "reviewedAt": "2026-08-03", "reviewClass": "standard-human-attestation", "provenanceTemplateId": "reference_fusion", - "consumingTemplateIds": ["reference_fusion"] + "consumingTemplateIds": [ + "reference_fusion" + ] }, { "path": "template-gallery/inputs/restoring_the_studio_backdrop.before.png", @@ -6590,7 +6740,9 @@ "sourceUrl": "https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14", "sourceRevision": "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14", "sourceLicense": "Maintainer-authorized file with publisher terms retained", - "modelTerms": ["CreativeML Open RAIL-M at the pinned Stable Diffusion v1.5 revision."], + "modelTerms": [ + "CreativeML Open RAIL-M at the pinned Stable Diffusion v1.5 revision." + ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], @@ -6615,7 +6767,9 @@ "sourceUrl": "https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14", "sourceRevision": "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14", "sourceLicense": "Maintainer-authorized file with publisher terms retained", - "modelTerms": ["CreativeML Open RAIL-M at the pinned Stable Diffusion v1.5 revision."], + "modelTerms": [ + "CreativeML Open RAIL-M at the pinned Stable Diffusion v1.5 revision." + ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], @@ -7952,7 +8106,9 @@ "reviewedAt": "2026-08-03", "reviewClass": "standard-human-attestation", "provenanceTemplateId": "wan_vace_grayscale_control", - "consumingTemplateIds": ["wan_vace_grayscale_control"] + "consumingTemplateIds": [ + "wan_vace_grayscale_control" + ] }, { "path": "template-gallery/inputs/wan_vace_outpaint_reframe.before.mp4", @@ -7977,7 +8133,9 @@ "reviewedAt": "2026-08-03", "reviewClass": "standard-human-attestation", "provenanceTemplateId": "wan_vace_outpaint_reframe", - "consumingTemplateIds": ["wan_vace_outpaint_reframe"] + "consumingTemplateIds": [ + "wan_vace_outpaint_reframe" + ] }, { "path": "template-gallery/inputs/wan_vace_video_color_grade.before.mp4", @@ -8002,7 +8160,9 @@ "reviewedAt": "2026-08-03", "reviewClass": "standard-human-attestation", "provenanceTemplateId": "wan_vace_video_color_grade", - "consumingTemplateIds": ["wan_vace_video_color_grade"] + "consumingTemplateIds": [ + "wan_vace_video_color_grade" + ] }, { "path": "template-gallery/inputs/wan_vace_video_to_video.before.mp4", @@ -8027,7 +8187,9 @@ "reviewedAt": "2026-08-03", "reviewClass": "standard-human-attestation", "provenanceTemplateId": "wan_vace_video_to_video", - "consumingTemplateIds": ["wan_vace_video_to_video"] + "consumingTemplateIds": [ + "wan_vace_video_to_video" + ] }, { "path": "template-gallery/inputs/zimage_golden_amber_glass.before.png", @@ -8147,7 +8309,9 @@ "sourceUrl": "https://huggingface.co/deepseek-community/Janus-Pro-1B/tree/1655280bb75959cc1cb85529a2a8b26e7016072e", "sourceRevision": "deepseek-community/Janus-Pro-1B@1655280bb75959cc1cb85529a2a8b26e7016072e", "sourceLicense": "Maintainer-authorized file with publisher terms retained", - "modelTerms": ["https://github.com/deepseek-ai/Janus/blob/main/LICENSE-MODEL"], + "modelTerms": [ + "https://github.com/deepseek-ai/Janus/blob/main/LICENSE-MODEL" + ], "aiGenerated": true, "humanLikenessConsent": "synthetic", "marks": [], @@ -8172,7 +8336,9 @@ "sourceUrl": "https://huggingface.co/deepseek-community/Janus-Pro-1B/tree/1655280bb75959cc1cb85529a2a8b26e7016072e", "sourceRevision": "deepseek-community/Janus-Pro-1B@1655280bb75959cc1cb85529a2a8b26e7016072e", "sourceLicense": "Maintainer-authorized file with publisher terms retained", - "modelTerms": ["https://github.com/deepseek-ai/Janus/blob/main/LICENSE-MODEL"], + "modelTerms": [ + "https://github.com/deepseek-ai/Janus/blob/main/LICENSE-MODEL" + ], "aiGenerated": true, "humanLikenessConsent": "synthetic", "marks": [], @@ -8197,7 +8363,9 @@ "sourceUrl": "https://huggingface.co/deepseek-community/Janus-Pro-1B/tree/1655280bb75959cc1cb85529a2a8b26e7016072e", "sourceRevision": "deepseek-community/Janus-Pro-1B@1655280bb75959cc1cb85529a2a8b26e7016072e", "sourceLicense": "Maintainer-authorized file with publisher terms retained", - "modelTerms": ["https://github.com/deepseek-ai/Janus/blob/main/LICENSE-MODEL"], + "modelTerms": [ + "https://github.com/deepseek-ai/Janus/blob/main/LICENSE-MODEL" + ], "aiGenerated": true, "humanLikenessConsent": "synthetic", "marks": [], @@ -8411,7 +8579,9 @@ "sourceUrl": "https://huggingface.co/maxin-cn/Latte-1/tree/0653024365272f061fc44d1078134df22842b687", "sourceRevision": "maxin-cn/Latte-1@0653024365272f061fc44d1078134df22842b687", "sourceLicense": "Maintainer-authorized file with publisher terms retained", - "modelTerms": ["https://huggingface.co/maxin-cn/Latte-1/tree/0653024365272f061fc44d1078134df22842b687"], + "modelTerms": [ + "https://huggingface.co/maxin-cn/Latte-1/tree/0653024365272f061fc44d1078134df22842b687" + ], "aiGenerated": true, "humanLikenessConsent": "synthetic", "marks": [], @@ -8834,7 +9004,9 @@ "sourceUrl": "https://huggingface.co/Lightricks/LTX-2/tree/47da56e2ad66ce4125a9922b4a8826bf407f9d0a", "sourceRevision": "Lightricks/LTX-2@47da56e2ad66ce4125a9922b4a8826bf407f9d0a", "sourceLicense": "Maintainer-authorized file with publisher terms retained", - "modelTerms": ["https://huggingface.co/Lightricks/LTX-2/blob/47da56e2ad66ce4125a9922b4a8826bf407f9d0a/LICENSE"], + "modelTerms": [ + "https://huggingface.co/Lightricks/LTX-2/blob/47da56e2ad66ce4125a9922b4a8826bf407f9d0a/LICENSE" + ], "aiGenerated": true, "humanLikenessConsent": "synthetic", "marks": [], @@ -8859,7 +9031,9 @@ "sourceUrl": "https://huggingface.co/Lightricks/LTX-2/tree/47da56e2ad66ce4125a9922b4a8826bf407f9d0a", "sourceRevision": "Lightricks/LTX-2@47da56e2ad66ce4125a9922b4a8826bf407f9d0a", "sourceLicense": "Maintainer-authorized file with publisher terms retained", - "modelTerms": ["https://huggingface.co/Lightricks/LTX-2/tree/47da56e2ad66ce4125a9922b4a8826bf407f9d0a"], + "modelTerms": [ + "https://huggingface.co/Lightricks/LTX-2/tree/47da56e2ad66ce4125a9922b4a8826bf407f9d0a" + ], "aiGenerated": true, "humanLikenessConsent": "synthetic", "marks": [], @@ -8884,7 +9058,9 @@ "sourceUrl": "https://huggingface.co/Lightricks/LTX-2/tree/47da56e2ad66ce4125a9922b4a8826bf407f9d0a", "sourceRevision": "Lightricks/LTX-2@47da56e2ad66ce4125a9922b4a8826bf407f9d0a", "sourceLicense": "Maintainer-authorized file with publisher terms retained", - "modelTerms": ["https://huggingface.co/Lightricks/LTX-2/tree/47da56e2ad66ce4125a9922b4a8826bf407f9d0a"], + "modelTerms": [ + "https://huggingface.co/Lightricks/LTX-2/tree/47da56e2ad66ce4125a9922b4a8826bf407f9d0a" + ], "aiGenerated": true, "humanLikenessConsent": "synthetic", "marks": [], @@ -8909,7 +9085,9 @@ "sourceUrl": "https://huggingface.co/Lightricks/LTX-2/tree/47da56e2ad66ce4125a9922b4a8826bf407f9d0a", "sourceRevision": "Lightricks/LTX-2@47da56e2ad66ce4125a9922b4a8826bf407f9d0a", "sourceLicense": "Maintainer-authorized file with publisher terms retained", - "modelTerms": ["https://huggingface.co/Lightricks/LTX-2/blob/47da56e2ad66ce4125a9922b4a8826bf407f9d0a/LICENSE"], + "modelTerms": [ + "https://huggingface.co/Lightricks/LTX-2/blob/47da56e2ad66ce4125a9922b4a8826bf407f9d0a/LICENSE" + ], "aiGenerated": true, "humanLikenessConsent": "synthetic", "marks": [], @@ -8934,7 +9112,9 @@ "sourceUrl": "https://huggingface.co/Lightricks/LTX-2/tree/47da56e2ad66ce4125a9922b4a8826bf407f9d0a", "sourceRevision": "Lightricks/LTX-2@47da56e2ad66ce4125a9922b4a8826bf407f9d0a", "sourceLicense": "Maintainer-authorized file with publisher terms retained", - "modelTerms": ["https://huggingface.co/Lightricks/LTX-2/tree/47da56e2ad66ce4125a9922b4a8826bf407f9d0a"], + "modelTerms": [ + "https://huggingface.co/Lightricks/LTX-2/tree/47da56e2ad66ce4125a9922b4a8826bf407f9d0a" + ], "aiGenerated": true, "humanLikenessConsent": "synthetic", "marks": [], @@ -9631,7 +9811,7 @@ }, { "path": "template-gallery/manifest.json", - "sha256": "sha256:bytes:fe948ccb643e19685fb242236c2c9c5888e3b756de0718c1c39b6c3f694d689b", + "sha256": "sha256:bytes:789269290f378489a939b79daad98d9a5e2bf351c105f362895a5e8aee67a6f4", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", @@ -9648,7 +9828,7 @@ "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "f90bf0978ad3ec5d295b6d9d5e339207e3586b52567987aa1930881dd1f46e4e", + "humanApprovalPacketSHA256": "c897ae58c52588da56b92e22d8b3c6b7d9becac539057047f38e1303230949da", "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained." }, { @@ -9690,7 +9870,9 @@ "aiGenerated": true, "humanLikenessConsent": "synthetic", "marks": [], - "requiredAttribution": ["AI-generated music — MiniMax-Music3"], + "requiredAttribution": [ + "AI-generated music — MiniMax-Music3" + ], "assetLicense": "Apache-2.0", "publisherLicenseUrl": "https://huggingface.co/MiniMaxAI/MiniMax-Music3/blob/fbdf52fbaaca799592917417eb05f1899f1255ec/LICENSE", "path": "template-gallery/minimax_music3_chamber_pop.wav", @@ -10463,7 +10645,9 @@ ], "aiGenerated": true, "humanLikenessConsent": "synthetic", - "marks": ["TIDELINE: fictional cinema and event"], + "marks": [ + "TIDELINE: fictional cinema and event" + ], "requiredAttribution": [], "sourceRightsAttestation": "I hold the rights or permissions needed to publish this exact generated TIDELINE cinema image and its redacted technical/review records under Apache-2.0. The film event and cinema are fictional; no external image inputs or real-person likenesses were used.", "path": "template-gallery/qwen_low_vram_poster_layout.webp", @@ -10488,7 +10672,9 @@ ], "aiGenerated": true, "humanLikenessConsent": "synthetic", - "marks": ["MICA DROP: fictional product name"], + "marks": [ + "MICA DROP: fictional product name" + ], "requiredAttribution": [], "sourceRightsAttestation": "I approve this exact image as a reviewed concept with the stated design limitations and incomplete independent resource monitoring, without a fully guarded or hardware-qualification claim. I hold the rights or permissions needed to publish this generated MICA DROP image and its redacted technical/review metadata under Apache-2.0. The product is fictional in this example; no external image input or real-person likeness was used.", "path": "template-gallery/qwen_low_vram_product_concept.webp", @@ -10513,7 +10699,9 @@ ], "aiGenerated": true, "humanLikenessConsent": "synthetic", - "marks": ["KITE & ANVIL: fictional stationery brand"], + "marks": [ + "KITE & ANVIL: fictional stationery brand" + ], "requiredAttribution": [], "sourceRightsAttestation": "I hold the rights or permissions needed to publish this exact generated KITE & ANVIL stationery image and its redacted technical/review metadata under Apache-2.0. The stationery brand is fictional in this example; no external image inputs or real-person likenesses were used.", "path": "template-gallery/qwen_low_vram_text_rendering.webp", @@ -10642,7 +10830,9 @@ ], "aiGenerated": true, "humanLikenessConsent": "synthetic", - "marks": ["MATERIAL CULTURE: fictional exhibition title"], + "marks": [ + "MATERIAL CULTURE: fictional exhibition title" + ], "requiredAttribution": [], "sourceRightsAttestation": "I hold the rights or permissions needed to publish this exact generated MATERIAL CULTURE exhibition poster and its redacted technical/review metadata under Apache-2.0. The exhibition is fictional in this example; no external image inputs or real-person likenesses were used.", "path": "template-gallery/qwen_poster_logo_text.webp", @@ -10748,7 +10938,9 @@ ], "aiGenerated": true, "humanLikenessConsent": "synthetic", - "marks": ["VERDA 03: fictional product name in this generated example"], + "marks": [ + "VERDA 03: fictional product name in this generated example" + ], "requiredAttribution": [], "sourceRightsAttestation": "I hold the rights or permissions needed to publicly redistribute this exact generated VERDA 03 poster and its redacted technical and quality metadata under Apache-2.0. VERDA 03 is a fictional product name in this example; no external image inputs or real-person likenesses were used.", "path": "template-gallery/qwen_text_rendering.webp", @@ -11334,7 +11526,9 @@ "sourceUrl": "https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14", "sourceRevision": "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14", "sourceLicense": "Maintainer-authorized file with publisher terms retained", - "modelTerms": ["CreativeML Open RAIL-M at the pinned Stable Diffusion v1.5 revision."], + "modelTerms": [ + "CreativeML Open RAIL-M at the pinned Stable Diffusion v1.5 revision." + ], "aiGenerated": true, "humanLikenessConsent": "synthetic", "marks": [], @@ -12441,6 +12635,114 @@ "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", "provenanceTemplateId": "animatelcm_sunlit_surf" }, + { + "path": "template-gallery/reviews/audioldm2_wind_through_high_pines.original-provenance.json", + "sha256": "sha256:bytes:d61c68aaeec091d060e4c9bd260ffe885326826db71078e904acacac42ea3c40", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/cvssp/audioldm2/tree/c8e7e189d324425c05c4c2f81214041ef4107983", + "sourceRevision": "cvssp/audioldm2@c8e7e189d324425c05c4c2f81214041ef4107983", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "https://huggingface.co/cvssp/audioldm2/blob/c8e7e189d324425c05c4c2f81214041ef4107983/README.md" + ], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "cvssp/audioldm2@c8e7e189d324425c05c4c2f81214041ef4107983 https://huggingface.co/cvssp/audioldm2/tree/c8e7e189d324425c05c4c2f81214041ef4107983" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "c897ae58c52588da56b92e22d8b3c6b7d9becac539057047f38e1303230949da", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "audioldm2_wind_through_high_pines" + }, + { + "path": "template-gallery/reviews/audioldm2_wind_through_high_pines.original-review.json", + "sha256": "sha256:bytes:429e7cac396b1c29e7348015a777e3ab85483813d80cc6a3e1e5400d34f6f0f4", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/cvssp/audioldm2/tree/c8e7e189d324425c05c4c2f81214041ef4107983", + "sourceRevision": "cvssp/audioldm2@c8e7e189d324425c05c4c2f81214041ef4107983", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "https://huggingface.co/cvssp/audioldm2/blob/c8e7e189d324425c05c4c2f81214041ef4107983/README.md" + ], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "cvssp/audioldm2@c8e7e189d324425c05c4c2f81214041ef4107983 https://huggingface.co/cvssp/audioldm2/tree/c8e7e189d324425c05c4c2f81214041ef4107983" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "c897ae58c52588da56b92e22d8b3c6b7d9becac539057047f38e1303230949da", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "audioldm2_wind_through_high_pines" + }, + { + "path": "template-gallery/reviews/audioldm2_wind_through_high_pines.quality-review.json", + "sha256": "sha256:bytes:29dee8c7187cf2cd9b55070b86a8cdc9507df35ee0f69b63706c79f909273895", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/cvssp/audioldm2/tree/c8e7e189d324425c05c4c2f81214041ef4107983", + "sourceRevision": "cvssp/audioldm2@c8e7e189d324425c05c4c2f81214041ef4107983", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "https://huggingface.co/cvssp/audioldm2/blob/c8e7e189d324425c05c4c2f81214041ef4107983/README.md" + ], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "cvssp/audioldm2@c8e7e189d324425c05c4c2f81214041ef4107983 https://huggingface.co/cvssp/audioldm2/tree/c8e7e189d324425c05c4c2f81214041ef4107983" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "c897ae58c52588da56b92e22d8b3c6b7d9becac539057047f38e1303230949da", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "audioldm2_wind_through_high_pines" + }, + { + "path": "template-gallery/reviews/audioldm2_wind_through_high_pines.retained-template-provenance.json", + "sha256": "sha256:bytes:58a23cef1b5f084fb1ebca4a74af2c8fb42b39adba46ff2d769944086b224c9f", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/cvssp/audioldm2/tree/c8e7e189d324425c05c4c2f81214041ef4107983", + "sourceRevision": "cvssp/audioldm2@c8e7e189d324425c05c4c2f81214041ef4107983", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "https://huggingface.co/cvssp/audioldm2/blob/c8e7e189d324425c05c4c2f81214041ef4107983/README.md" + ], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "cvssp/audioldm2@c8e7e189d324425c05c4c2f81214041ef4107983 https://huggingface.co/cvssp/audioldm2/tree/c8e7e189d324425c05c4c2f81214041ef4107983" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "c897ae58c52588da56b92e22d8b3c6b7d9becac539057047f38e1303230949da", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "audioldm2_wind_through_high_pines" + }, { "path": "template-gallery/reviews/bookshop_at_blue_hour.original-provenance.json", "sha256": "sha256:bytes:3f3e4056350e5a1ee59d46aea727b87563ae6fc5fe11a491257e2af7d412f0bf", @@ -12819,7 +13121,9 @@ "sourceUrl": "https://huggingface.co/lodestones/Chroma1-HD/tree/0e0c60ece1e82b17cb7f77342d765ba5024c40c0", "sourceRevision": "lodestones/Chroma1-HD@0e0c60ece1e82b17cb7f77342d765ba5024c40c0", "sourceLicense": "MoDiff-authored Gallery metadata", - "modelTerms": ["https://huggingface.co/lodestones/Chroma1-HD/tree/0e0c60ece1e82b17cb7f77342d765ba5024c40c0"], + "modelTerms": [ + "https://huggingface.co/lodestones/Chroma1-HD/tree/0e0c60ece1e82b17cb7f77342d765ba5024c40c0" + ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], @@ -12844,7 +13148,9 @@ "sourceUrl": "https://huggingface.co/lodestones/Chroma1-HD/tree/0e0c60ece1e82b17cb7f77342d765ba5024c40c0", "sourceRevision": "lodestones/Chroma1-HD@0e0c60ece1e82b17cb7f77342d765ba5024c40c0", "sourceLicense": "MoDiff-authored Gallery metadata", - "modelTerms": ["https://huggingface.co/lodestones/Chroma1-HD/tree/0e0c60ece1e82b17cb7f77342d765ba5024c40c0"], + "modelTerms": [ + "https://huggingface.co/lodestones/Chroma1-HD/tree/0e0c60ece1e82b17cb7f77342d765ba5024c40c0" + ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], @@ -12869,7 +13175,9 @@ "sourceUrl": "https://huggingface.co/lodestones/Chroma1-HD/tree/0e0c60ece1e82b17cb7f77342d765ba5024c40c0", "sourceRevision": "lodestones/Chroma1-HD@0e0c60ece1e82b17cb7f77342d765ba5024c40c0", "sourceLicense": "MoDiff-authored Gallery metadata", - "modelTerms": ["https://huggingface.co/lodestones/Chroma1-HD/tree/0e0c60ece1e82b17cb7f77342d765ba5024c40c0"], + "modelTerms": [ + "https://huggingface.co/lodestones/Chroma1-HD/tree/0e0c60ece1e82b17cb7f77342d765ba5024c40c0" + ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], @@ -12894,7 +13202,9 @@ "sourceUrl": "https://huggingface.co/lodestones/Chroma1-HD/tree/0e0c60ece1e82b17cb7f77342d765ba5024c40c0", "sourceRevision": "lodestones/Chroma1-HD@0e0c60ece1e82b17cb7f77342d765ba5024c40c0", "sourceLicense": "MoDiff-authored Gallery metadata", - "modelTerms": ["https://huggingface.co/lodestones/Chroma1-HD/tree/0e0c60ece1e82b17cb7f77342d765ba5024c40c0"], + "modelTerms": [ + "https://huggingface.co/lodestones/Chroma1-HD/tree/0e0c60ece1e82b17cb7f77342d765ba5024c40c0" + ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], @@ -16238,7 +16548,9 @@ "sourceUrl": "https://huggingface.co/zai-org/GLM-Image/tree/2c433cc0cbc293bde2ac8ca9624f279b5d23fcf4", "sourceRevision": "zai-org/GLM-Image@2c433cc0cbc293bde2ac8ca9624f279b5d23fcf4", "sourceLicense": "MoDiff-authored Gallery metadata", - "modelTerms": ["mit. https://huggingface.co/zai-org/GLM-Image/tree/2c433cc0cbc293bde2ac8ca9624f279b5d23fcf4"], + "modelTerms": [ + "mit. https://huggingface.co/zai-org/GLM-Image/tree/2c433cc0cbc293bde2ac8ca9624f279b5d23fcf4" + ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], @@ -16263,7 +16575,9 @@ "sourceUrl": "https://huggingface.co/zai-org/GLM-Image/tree/2c433cc0cbc293bde2ac8ca9624f279b5d23fcf4", "sourceRevision": "zai-org/GLM-Image@2c433cc0cbc293bde2ac8ca9624f279b5d23fcf4", "sourceLicense": "MoDiff-authored Gallery metadata", - "modelTerms": ["mit. https://huggingface.co/zai-org/GLM-Image/tree/2c433cc0cbc293bde2ac8ca9624f279b5d23fcf4"], + "modelTerms": [ + "mit. https://huggingface.co/zai-org/GLM-Image/tree/2c433cc0cbc293bde2ac8ca9624f279b5d23fcf4" + ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], @@ -16288,7 +16602,9 @@ "sourceUrl": "https://huggingface.co/zai-org/GLM-Image/tree/2c433cc0cbc293bde2ac8ca9624f279b5d23fcf4", "sourceRevision": "zai-org/GLM-Image@2c433cc0cbc293bde2ac8ca9624f279b5d23fcf4", "sourceLicense": "MoDiff-authored Gallery metadata", - "modelTerms": ["mit. https://huggingface.co/zai-org/GLM-Image/tree/2c433cc0cbc293bde2ac8ca9624f279b5d23fcf4"], + "modelTerms": [ + "mit. https://huggingface.co/zai-org/GLM-Image/tree/2c433cc0cbc293bde2ac8ca9624f279b5d23fcf4" + ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], @@ -16313,7 +16629,9 @@ "sourceUrl": "https://huggingface.co/zai-org/GLM-Image/tree/2c433cc0cbc293bde2ac8ca9624f279b5d23fcf4", "sourceRevision": "zai-org/GLM-Image@2c433cc0cbc293bde2ac8ca9624f279b5d23fcf4", "sourceLicense": "MoDiff-authored Gallery metadata", - "modelTerms": ["mit. https://huggingface.co/zai-org/GLM-Image/tree/2c433cc0cbc293bde2ac8ca9624f279b5d23fcf4"], + "modelTerms": [ + "mit. https://huggingface.co/zai-org/GLM-Image/tree/2c433cc0cbc293bde2ac8ca9624f279b5d23fcf4" + ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], @@ -16814,7 +17132,9 @@ "sourceUrl": "https://huggingface.co/deepseek-community/Janus-Pro-1B/tree/1655280bb75959cc1cb85529a2a8b26e7016072e", "sourceRevision": "deepseek-community/Janus-Pro-1B@1655280bb75959cc1cb85529a2a8b26e7016072e", "sourceLicense": "MoDiff-authored Gallery metadata", - "modelTerms": ["https://github.com/deepseek-ai/Janus/blob/main/LICENSE-MODEL"], + "modelTerms": [ + "https://github.com/deepseek-ai/Janus/blob/main/LICENSE-MODEL" + ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], @@ -16839,7 +17159,9 @@ "sourceUrl": "https://huggingface.co/deepseek-community/Janus-Pro-1B/tree/1655280bb75959cc1cb85529a2a8b26e7016072e", "sourceRevision": "deepseek-community/Janus-Pro-1B@1655280bb75959cc1cb85529a2a8b26e7016072e", "sourceLicense": "MoDiff-authored Gallery metadata", - "modelTerms": ["https://github.com/deepseek-ai/Janus/blob/main/LICENSE-MODEL"], + "modelTerms": [ + "https://github.com/deepseek-ai/Janus/blob/main/LICENSE-MODEL" + ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], @@ -16864,7 +17186,9 @@ "sourceUrl": "https://huggingface.co/deepseek-community/Janus-Pro-1B/tree/1655280bb75959cc1cb85529a2a8b26e7016072e", "sourceRevision": "deepseek-community/Janus-Pro-1B@1655280bb75959cc1cb85529a2a8b26e7016072e", "sourceLicense": "MoDiff-authored Gallery metadata", - "modelTerms": ["https://github.com/deepseek-ai/Janus/blob/main/LICENSE-MODEL"], + "modelTerms": [ + "https://github.com/deepseek-ai/Janus/blob/main/LICENSE-MODEL" + ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], @@ -16889,7 +17213,9 @@ "sourceUrl": "https://huggingface.co/deepseek-community/Janus-Pro-1B/tree/1655280bb75959cc1cb85529a2a8b26e7016072e", "sourceRevision": "deepseek-community/Janus-Pro-1B@1655280bb75959cc1cb85529a2a8b26e7016072e", "sourceLicense": "MoDiff-authored Gallery metadata", - "modelTerms": ["https://github.com/deepseek-ai/Janus/blob/main/LICENSE-MODEL"], + "modelTerms": [ + "https://github.com/deepseek-ai/Janus/blob/main/LICENSE-MODEL" + ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], @@ -16914,7 +17240,9 @@ "sourceUrl": "https://huggingface.co/deepseek-community/Janus-Pro-1B/tree/1655280bb75959cc1cb85529a2a8b26e7016072e", "sourceRevision": "deepseek-community/Janus-Pro-1B@1655280bb75959cc1cb85529a2a8b26e7016072e", "sourceLicense": "MoDiff-authored Gallery metadata", - "modelTerms": ["https://github.com/deepseek-ai/Janus/blob/main/LICENSE-MODEL"], + "modelTerms": [ + "https://github.com/deepseek-ai/Janus/blob/main/LICENSE-MODEL" + ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], @@ -16939,7 +17267,9 @@ "sourceUrl": "https://huggingface.co/deepseek-community/Janus-Pro-1B/tree/1655280bb75959cc1cb85529a2a8b26e7016072e", "sourceRevision": "deepseek-community/Janus-Pro-1B@1655280bb75959cc1cb85529a2a8b26e7016072e", "sourceLicense": "MoDiff-authored Gallery metadata", - "modelTerms": ["https://github.com/deepseek-ai/Janus/blob/main/LICENSE-MODEL"], + "modelTerms": [ + "https://github.com/deepseek-ai/Janus/blob/main/LICENSE-MODEL" + ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], @@ -16964,7 +17294,9 @@ "sourceUrl": "https://huggingface.co/deepseek-community/Janus-Pro-1B/tree/1655280bb75959cc1cb85529a2a8b26e7016072e", "sourceRevision": "deepseek-community/Janus-Pro-1B@1655280bb75959cc1cb85529a2a8b26e7016072e", "sourceLicense": "MoDiff-authored Gallery metadata", - "modelTerms": ["https://github.com/deepseek-ai/Janus/blob/main/LICENSE-MODEL"], + "modelTerms": [ + "https://github.com/deepseek-ai/Janus/blob/main/LICENSE-MODEL" + ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], @@ -16989,7 +17321,9 @@ "sourceUrl": "https://huggingface.co/deepseek-community/Janus-Pro-1B/tree/1655280bb75959cc1cb85529a2a8b26e7016072e", "sourceRevision": "deepseek-community/Janus-Pro-1B@1655280bb75959cc1cb85529a2a8b26e7016072e", "sourceLicense": "MoDiff-authored Gallery metadata", - "modelTerms": ["https://github.com/deepseek-ai/Janus/blob/main/LICENSE-MODEL"], + "modelTerms": [ + "https://github.com/deepseek-ai/Janus/blob/main/LICENSE-MODEL" + ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], @@ -17014,7 +17348,9 @@ "sourceUrl": "https://huggingface.co/deepseek-community/Janus-Pro-1B/tree/1655280bb75959cc1cb85529a2a8b26e7016072e", "sourceRevision": "deepseek-community/Janus-Pro-1B@1655280bb75959cc1cb85529a2a8b26e7016072e", "sourceLicense": "MoDiff-authored Gallery metadata", - "modelTerms": ["https://github.com/deepseek-ai/Janus/blob/main/LICENSE-MODEL"], + "modelTerms": [ + "https://github.com/deepseek-ai/Janus/blob/main/LICENSE-MODEL" + ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], @@ -17039,7 +17375,9 @@ "sourceUrl": "https://huggingface.co/deepseek-community/Janus-Pro-1B/tree/1655280bb75959cc1cb85529a2a8b26e7016072e", "sourceRevision": "deepseek-community/Janus-Pro-1B@1655280bb75959cc1cb85529a2a8b26e7016072e", "sourceLicense": "MoDiff-authored Gallery metadata", - "modelTerms": ["https://github.com/deepseek-ai/Janus/blob/main/LICENSE-MODEL"], + "modelTerms": [ + "https://github.com/deepseek-ai/Janus/blob/main/LICENSE-MODEL" + ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], @@ -17064,7 +17402,9 @@ "sourceUrl": "https://huggingface.co/deepseek-community/Janus-Pro-1B/tree/1655280bb75959cc1cb85529a2a8b26e7016072e", "sourceRevision": "deepseek-community/Janus-Pro-1B@1655280bb75959cc1cb85529a2a8b26e7016072e", "sourceLicense": "MoDiff-authored Gallery metadata", - "modelTerms": ["https://github.com/deepseek-ai/Janus/blob/main/LICENSE-MODEL"], + "modelTerms": [ + "https://github.com/deepseek-ai/Janus/blob/main/LICENSE-MODEL" + ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], @@ -17089,7 +17429,9 @@ "sourceUrl": "https://huggingface.co/deepseek-community/Janus-Pro-1B/tree/1655280bb75959cc1cb85529a2a8b26e7016072e", "sourceRevision": "deepseek-community/Janus-Pro-1B@1655280bb75959cc1cb85529a2a8b26e7016072e", "sourceLicense": "MoDiff-authored Gallery metadata", - "modelTerms": ["https://github.com/deepseek-ai/Janus/blob/main/LICENSE-MODEL"], + "modelTerms": [ + "https://github.com/deepseek-ai/Janus/blob/main/LICENSE-MODEL" + ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], @@ -17870,7 +18212,9 @@ "sourceUrl": "https://huggingface.co/maxin-cn/Latte-1/tree/0653024365272f061fc44d1078134df22842b687", "sourceRevision": "maxin-cn/Latte-1@0653024365272f061fc44d1078134df22842b687", "sourceLicense": "MoDiff-authored Gallery metadata", - "modelTerms": ["https://huggingface.co/maxin-cn/Latte-1/tree/0653024365272f061fc44d1078134df22842b687"], + "modelTerms": [ + "https://huggingface.co/maxin-cn/Latte-1/tree/0653024365272f061fc44d1078134df22842b687" + ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], @@ -17895,7 +18239,9 @@ "sourceUrl": "https://huggingface.co/maxin-cn/Latte-1/tree/0653024365272f061fc44d1078134df22842b687", "sourceRevision": "maxin-cn/Latte-1@0653024365272f061fc44d1078134df22842b687", "sourceLicense": "MoDiff-authored Gallery metadata", - "modelTerms": ["https://huggingface.co/maxin-cn/Latte-1/tree/0653024365272f061fc44d1078134df22842b687"], + "modelTerms": [ + "https://huggingface.co/maxin-cn/Latte-1/tree/0653024365272f061fc44d1078134df22842b687" + ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], @@ -17920,7 +18266,9 @@ "sourceUrl": "https://huggingface.co/maxin-cn/Latte-1/tree/0653024365272f061fc44d1078134df22842b687", "sourceRevision": "maxin-cn/Latte-1@0653024365272f061fc44d1078134df22842b687", "sourceLicense": "MoDiff-authored Gallery metadata", - "modelTerms": ["https://huggingface.co/maxin-cn/Latte-1/tree/0653024365272f061fc44d1078134df22842b687"], + "modelTerms": [ + "https://huggingface.co/maxin-cn/Latte-1/tree/0653024365272f061fc44d1078134df22842b687" + ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], @@ -17945,7 +18293,9 @@ "sourceUrl": "https://huggingface.co/maxin-cn/Latte-1/tree/0653024365272f061fc44d1078134df22842b687", "sourceRevision": "maxin-cn/Latte-1@0653024365272f061fc44d1078134df22842b687", "sourceLicense": "MoDiff-authored Gallery metadata", - "modelTerms": ["https://huggingface.co/maxin-cn/Latte-1/tree/0653024365272f061fc44d1078134df22842b687"], + "modelTerms": [ + "https://huggingface.co/maxin-cn/Latte-1/tree/0653024365272f061fc44d1078134df22842b687" + ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], @@ -18384,7 +18734,9 @@ "sourceUrl": "https://huggingface.co/Lightricks/LTX-2/tree/47da56e2ad66ce4125a9922b4a8826bf407f9d0a", "sourceRevision": "Lightricks/LTX-2@47da56e2ad66ce4125a9922b4a8826bf407f9d0a", "sourceLicense": "MoDiff-authored Gallery metadata", - "modelTerms": ["https://huggingface.co/Lightricks/LTX-2/blob/47da56e2ad66ce4125a9922b4a8826bf407f9d0a/LICENSE"], + "modelTerms": [ + "https://huggingface.co/Lightricks/LTX-2/blob/47da56e2ad66ce4125a9922b4a8826bf407f9d0a/LICENSE" + ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], @@ -18409,7 +18761,9 @@ "sourceUrl": "https://huggingface.co/Lightricks/LTX-2/tree/47da56e2ad66ce4125a9922b4a8826bf407f9d0a", "sourceRevision": "Lightricks/LTX-2@47da56e2ad66ce4125a9922b4a8826bf407f9d0a", "sourceLicense": "MoDiff-authored Gallery metadata", - "modelTerms": ["https://huggingface.co/Lightricks/LTX-2/blob/47da56e2ad66ce4125a9922b4a8826bf407f9d0a/LICENSE"], + "modelTerms": [ + "https://huggingface.co/Lightricks/LTX-2/blob/47da56e2ad66ce4125a9922b4a8826bf407f9d0a/LICENSE" + ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], @@ -18434,7 +18788,9 @@ "sourceUrl": "https://huggingface.co/Lightricks/LTX-2/tree/47da56e2ad66ce4125a9922b4a8826bf407f9d0a", "sourceRevision": "Lightricks/LTX-2@47da56e2ad66ce4125a9922b4a8826bf407f9d0a", "sourceLicense": "MoDiff-authored Gallery metadata", - "modelTerms": ["https://huggingface.co/Lightricks/LTX-2/blob/47da56e2ad66ce4125a9922b4a8826bf407f9d0a/LICENSE"], + "modelTerms": [ + "https://huggingface.co/Lightricks/LTX-2/blob/47da56e2ad66ce4125a9922b4a8826bf407f9d0a/LICENSE" + ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], @@ -18459,7 +18815,9 @@ "sourceUrl": "https://huggingface.co/Lightricks/LTX-2/tree/47da56e2ad66ce4125a9922b4a8826bf407f9d0a", "sourceRevision": "Lightricks/LTX-2@47da56e2ad66ce4125a9922b4a8826bf407f9d0a", "sourceLicense": "MoDiff-authored Gallery metadata", - "modelTerms": ["https://huggingface.co/Lightricks/LTX-2/blob/47da56e2ad66ce4125a9922b4a8826bf407f9d0a/LICENSE"], + "modelTerms": [ + "https://huggingface.co/Lightricks/LTX-2/blob/47da56e2ad66ce4125a9922b4a8826bf407f9d0a/LICENSE" + ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], @@ -18484,7 +18842,9 @@ "sourceUrl": "https://huggingface.co/Lightricks/LTX-2/tree/47da56e2ad66ce4125a9922b4a8826bf407f9d0a", "sourceRevision": "Lightricks/LTX-2@47da56e2ad66ce4125a9922b4a8826bf407f9d0a", "sourceLicense": "MoDiff-authored Gallery metadata", - "modelTerms": ["https://huggingface.co/Lightricks/LTX-2/tree/47da56e2ad66ce4125a9922b4a8826bf407f9d0a"], + "modelTerms": [ + "https://huggingface.co/Lightricks/LTX-2/tree/47da56e2ad66ce4125a9922b4a8826bf407f9d0a" + ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], @@ -18509,7 +18869,9 @@ "sourceUrl": "https://huggingface.co/Lightricks/LTX-2/tree/47da56e2ad66ce4125a9922b4a8826bf407f9d0a", "sourceRevision": "Lightricks/LTX-2@47da56e2ad66ce4125a9922b4a8826bf407f9d0a", "sourceLicense": "MoDiff-authored Gallery metadata", - "modelTerms": ["https://huggingface.co/Lightricks/LTX-2/tree/47da56e2ad66ce4125a9922b4a8826bf407f9d0a"], + "modelTerms": [ + "https://huggingface.co/Lightricks/LTX-2/tree/47da56e2ad66ce4125a9922b4a8826bf407f9d0a" + ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], @@ -18534,7 +18896,9 @@ "sourceUrl": "https://huggingface.co/Lightricks/LTX-2/tree/47da56e2ad66ce4125a9922b4a8826bf407f9d0a", "sourceRevision": "Lightricks/LTX-2@47da56e2ad66ce4125a9922b4a8826bf407f9d0a", "sourceLicense": "MoDiff-authored Gallery metadata", - "modelTerms": ["https://huggingface.co/Lightricks/LTX-2/tree/47da56e2ad66ce4125a9922b4a8826bf407f9d0a"], + "modelTerms": [ + "https://huggingface.co/Lightricks/LTX-2/tree/47da56e2ad66ce4125a9922b4a8826bf407f9d0a" + ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], @@ -18559,7 +18923,9 @@ "sourceUrl": "https://huggingface.co/Lightricks/LTX-2/tree/47da56e2ad66ce4125a9922b4a8826bf407f9d0a", "sourceRevision": "Lightricks/LTX-2@47da56e2ad66ce4125a9922b4a8826bf407f9d0a", "sourceLicense": "MoDiff-authored Gallery metadata", - "modelTerms": ["https://huggingface.co/Lightricks/LTX-2/tree/47da56e2ad66ce4125a9922b4a8826bf407f9d0a"], + "modelTerms": [ + "https://huggingface.co/Lightricks/LTX-2/tree/47da56e2ad66ce4125a9922b4a8826bf407f9d0a" + ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], @@ -18584,7 +18950,9 @@ "sourceUrl": "https://huggingface.co/Lightricks/LTX-2/tree/47da56e2ad66ce4125a9922b4a8826bf407f9d0a", "sourceRevision": "Lightricks/LTX-2@47da56e2ad66ce4125a9922b4a8826bf407f9d0a", "sourceLicense": "MoDiff-authored Gallery metadata", - "modelTerms": ["https://huggingface.co/Lightricks/LTX-2/tree/47da56e2ad66ce4125a9922b4a8826bf407f9d0a"], + "modelTerms": [ + "https://huggingface.co/Lightricks/LTX-2/tree/47da56e2ad66ce4125a9922b4a8826bf407f9d0a" + ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], @@ -18609,7 +18977,9 @@ "sourceUrl": "https://huggingface.co/Lightricks/LTX-2/tree/47da56e2ad66ce4125a9922b4a8826bf407f9d0a", "sourceRevision": "Lightricks/LTX-2@47da56e2ad66ce4125a9922b4a8826bf407f9d0a", "sourceLicense": "MoDiff-authored Gallery metadata", - "modelTerms": ["https://huggingface.co/Lightricks/LTX-2/tree/47da56e2ad66ce4125a9922b4a8826bf407f9d0a"], + "modelTerms": [ + "https://huggingface.co/Lightricks/LTX-2/tree/47da56e2ad66ce4125a9922b4a8826bf407f9d0a" + ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], @@ -18634,7 +19004,9 @@ "sourceUrl": "https://huggingface.co/Lightricks/LTX-2/tree/47da56e2ad66ce4125a9922b4a8826bf407f9d0a", "sourceRevision": "Lightricks/LTX-2@47da56e2ad66ce4125a9922b4a8826bf407f9d0a", "sourceLicense": "MoDiff-authored Gallery metadata", - "modelTerms": ["https://huggingface.co/Lightricks/LTX-2/tree/47da56e2ad66ce4125a9922b4a8826bf407f9d0a"], + "modelTerms": [ + "https://huggingface.co/Lightricks/LTX-2/tree/47da56e2ad66ce4125a9922b4a8826bf407f9d0a" + ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], @@ -18659,7 +19031,9 @@ "sourceUrl": "https://huggingface.co/Lightricks/LTX-2/tree/47da56e2ad66ce4125a9922b4a8826bf407f9d0a", "sourceRevision": "Lightricks/LTX-2@47da56e2ad66ce4125a9922b4a8826bf407f9d0a", "sourceLicense": "MoDiff-authored Gallery metadata", - "modelTerms": ["https://huggingface.co/Lightricks/LTX-2/tree/47da56e2ad66ce4125a9922b4a8826bf407f9d0a"], + "modelTerms": [ + "https://huggingface.co/Lightricks/LTX-2/tree/47da56e2ad66ce4125a9922b4a8826bf407f9d0a" + ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], @@ -18684,7 +19058,9 @@ "sourceUrl": "https://huggingface.co/Lightricks/LTX-2/tree/47da56e2ad66ce4125a9922b4a8826bf407f9d0a", "sourceRevision": "Lightricks/LTX-2@47da56e2ad66ce4125a9922b4a8826bf407f9d0a", "sourceLicense": "MoDiff-authored Gallery metadata", - "modelTerms": ["https://huggingface.co/Lightricks/LTX-2/blob/47da56e2ad66ce4125a9922b4a8826bf407f9d0a/LICENSE"], + "modelTerms": [ + "https://huggingface.co/Lightricks/LTX-2/blob/47da56e2ad66ce4125a9922b4a8826bf407f9d0a/LICENSE" + ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], @@ -18709,7 +19085,9 @@ "sourceUrl": "https://huggingface.co/Lightricks/LTX-2/tree/47da56e2ad66ce4125a9922b4a8826bf407f9d0a", "sourceRevision": "Lightricks/LTX-2@47da56e2ad66ce4125a9922b4a8826bf407f9d0a", "sourceLicense": "MoDiff-authored Gallery metadata", - "modelTerms": ["https://huggingface.co/Lightricks/LTX-2/blob/47da56e2ad66ce4125a9922b4a8826bf407f9d0a/LICENSE"], + "modelTerms": [ + "https://huggingface.co/Lightricks/LTX-2/blob/47da56e2ad66ce4125a9922b4a8826bf407f9d0a/LICENSE" + ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], @@ -18734,7 +19112,9 @@ "sourceUrl": "https://huggingface.co/Lightricks/LTX-2/tree/47da56e2ad66ce4125a9922b4a8826bf407f9d0a", "sourceRevision": "Lightricks/LTX-2@47da56e2ad66ce4125a9922b4a8826bf407f9d0a", "sourceLicense": "MoDiff-authored Gallery metadata", - "modelTerms": ["https://huggingface.co/Lightricks/LTX-2/blob/47da56e2ad66ce4125a9922b4a8826bf407f9d0a/LICENSE"], + "modelTerms": [ + "https://huggingface.co/Lightricks/LTX-2/blob/47da56e2ad66ce4125a9922b4a8826bf407f9d0a/LICENSE" + ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], @@ -18759,7 +19139,9 @@ "sourceUrl": "https://huggingface.co/Lightricks/LTX-2/tree/47da56e2ad66ce4125a9922b4a8826bf407f9d0a", "sourceRevision": "Lightricks/LTX-2@47da56e2ad66ce4125a9922b4a8826bf407f9d0a", "sourceLicense": "MoDiff-authored Gallery metadata", - "modelTerms": ["https://huggingface.co/Lightricks/LTX-2/blob/47da56e2ad66ce4125a9922b4a8826bf407f9d0a/LICENSE"], + "modelTerms": [ + "https://huggingface.co/Lightricks/LTX-2/blob/47da56e2ad66ce4125a9922b4a8826bf407f9d0a/LICENSE" + ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], @@ -18784,7 +19166,9 @@ "sourceUrl": "https://huggingface.co/Lightricks/LTX-2/tree/47da56e2ad66ce4125a9922b4a8826bf407f9d0a", "sourceRevision": "Lightricks/LTX-2@47da56e2ad66ce4125a9922b4a8826bf407f9d0a", "sourceLicense": "MoDiff-authored Gallery metadata", - "modelTerms": ["https://huggingface.co/Lightricks/LTX-2/tree/47da56e2ad66ce4125a9922b4a8826bf407f9d0a"], + "modelTerms": [ + "https://huggingface.co/Lightricks/LTX-2/tree/47da56e2ad66ce4125a9922b4a8826bf407f9d0a" + ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], @@ -18809,7 +19193,9 @@ "sourceUrl": "https://huggingface.co/Lightricks/LTX-2/tree/47da56e2ad66ce4125a9922b4a8826bf407f9d0a", "sourceRevision": "Lightricks/LTX-2@47da56e2ad66ce4125a9922b4a8826bf407f9d0a", "sourceLicense": "MoDiff-authored Gallery metadata", - "modelTerms": ["https://huggingface.co/Lightricks/LTX-2/tree/47da56e2ad66ce4125a9922b4a8826bf407f9d0a"], + "modelTerms": [ + "https://huggingface.co/Lightricks/LTX-2/tree/47da56e2ad66ce4125a9922b4a8826bf407f9d0a" + ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], @@ -18834,7 +19220,9 @@ "sourceUrl": "https://huggingface.co/Lightricks/LTX-2/tree/47da56e2ad66ce4125a9922b4a8826bf407f9d0a", "sourceRevision": "Lightricks/LTX-2@47da56e2ad66ce4125a9922b4a8826bf407f9d0a", "sourceLicense": "MoDiff-authored Gallery metadata", - "modelTerms": ["https://huggingface.co/Lightricks/LTX-2/tree/47da56e2ad66ce4125a9922b4a8826bf407f9d0a"], + "modelTerms": [ + "https://huggingface.co/Lightricks/LTX-2/tree/47da56e2ad66ce4125a9922b4a8826bf407f9d0a" + ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], @@ -18859,7 +19247,9 @@ "sourceUrl": "https://huggingface.co/Lightricks/LTX-2/tree/47da56e2ad66ce4125a9922b4a8826bf407f9d0a", "sourceRevision": "Lightricks/LTX-2@47da56e2ad66ce4125a9922b4a8826bf407f9d0a", "sourceLicense": "MoDiff-authored Gallery metadata", - "modelTerms": ["https://huggingface.co/Lightricks/LTX-2/tree/47da56e2ad66ce4125a9922b4a8826bf407f9d0a"], + "modelTerms": [ + "https://huggingface.co/Lightricks/LTX-2/tree/47da56e2ad66ce4125a9922b4a8826bf407f9d0a" + ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], @@ -22473,7 +22863,9 @@ "sourceUrl": "https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14", "sourceRevision": "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14", "sourceLicense": "MoDiff-authored Gallery metadata", - "modelTerms": ["CreativeML Open RAIL-M at the pinned Stable Diffusion v1.5 revision."], + "modelTerms": [ + "CreativeML Open RAIL-M at the pinned Stable Diffusion v1.5 revision." + ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], @@ -22498,7 +22890,9 @@ "sourceUrl": "https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14", "sourceRevision": "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14", "sourceLicense": "MoDiff-authored Gallery metadata", - "modelTerms": ["CreativeML Open RAIL-M at the pinned Stable Diffusion v1.5 revision."], + "modelTerms": [ + "CreativeML Open RAIL-M at the pinned Stable Diffusion v1.5 revision." + ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], @@ -22523,7 +22917,9 @@ "sourceUrl": "https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14", "sourceRevision": "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14", "sourceLicense": "MoDiff-authored Gallery metadata", - "modelTerms": ["CreativeML Open RAIL-M at the pinned Stable Diffusion v1.5 revision."], + "modelTerms": [ + "CreativeML Open RAIL-M at the pinned Stable Diffusion v1.5 revision." + ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], @@ -22548,7 +22944,9 @@ "sourceUrl": "https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14", "sourceRevision": "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14", "sourceLicense": "MoDiff-authored Gallery metadata", - "modelTerms": ["CreativeML Open RAIL-M at the pinned Stable Diffusion v1.5 revision."], + "modelTerms": [ + "CreativeML Open RAIL-M at the pinned Stable Diffusion v1.5 revision." + ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], @@ -27489,7 +27887,9 @@ "reviewedBy": "SOURAV DAS", "reviewedAt": "2026-08-03", "reviewClass": "standard-human-attestation", - "consumingTemplateIds": ["wan_vace_outpaint_reframe"] + "consumingTemplateIds": [ + "wan_vace_outpaint_reframe" + ] }, { "path": "template-gallery/runtime-inputs/assets/124415536a8071baccf8821232ad79a0a8ceec30ae62617c91a8d7a0b59d0a8c.webp", @@ -27512,7 +27912,9 @@ "reviewedBy": "SOURAV DAS", "reviewedAt": "2026-08-03", "reviewClass": "standard-human-attestation", - "consumingTemplateIds": ["qwen_logo_texture"] + "consumingTemplateIds": [ + "qwen_logo_texture" + ] }, { "path": "template-gallery/runtime-inputs/assets/16f6ea27b5d7cfaed106e2e694572bbe92b7c7e2a43835b3f4313a748f510f74.png", @@ -27535,7 +27937,9 @@ "reviewedBy": "SOURAV DAS", "reviewedAt": "2026-08-03", "reviewClass": "standard-human-attestation", - "consumingTemplateIds": ["flux_fill_inpaint"] + "consumingTemplateIds": [ + "flux_fill_inpaint" + ] }, { "path": "template-gallery/runtime-inputs/assets/1d993540e914f0e2d230f1133b57ae14bb837829237a53c89613fcdef6699995.webp", @@ -27558,7 +27962,9 @@ "reviewedBy": "SOURAV DAS", "reviewedAt": "2026-08-03", "reviewClass": "standard-human-attestation", - "consumingTemplateIds": ["flux2_klein_multi_reference"] + "consumingTemplateIds": [ + "flux2_klein_multi_reference" + ] }, { "path": "template-gallery/runtime-inputs/assets/218d83e0706fec201097582a6e5e00dc79f2d7d1ecb0badba2214c5ecaae1866.mp4", @@ -27581,7 +27987,9 @@ "reviewedBy": "SOURAV DAS", "reviewedAt": "2026-08-03", "reviewClass": "standard-human-attestation", - "consumingTemplateIds": ["wan_vace_video_to_video"] + "consumingTemplateIds": [ + "wan_vace_video_to_video" + ] }, { "path": "template-gallery/runtime-inputs/assets/233d1b3a123fceb4f3b68d2d3a9f5b4129627073b8235fe7248ae6ebdeecb554.mp4", @@ -27607,7 +28015,9 @@ "reviewedBy": "SOURAV DAS", "reviewedAt": "2026-08-03", "reviewClass": "standard-human-attestation", - "consumingTemplateIds": ["ltx_video_video_to_video"] + "consumingTemplateIds": [ + "ltx_video_video_to_video" + ] }, { "path": "template-gallery/runtime-inputs/assets/283b1cfb32b15fe6b31a29dce1f2b96026c1ad0826bf3f24aebebf4b6f9a4f07.webp", @@ -27630,7 +28040,9 @@ "reviewedBy": "SOURAV DAS", "reviewedAt": "2026-08-03", "reviewClass": "standard-human-attestation", - "consumingTemplateIds": ["reference_fusion"] + "consumingTemplateIds": [ + "reference_fusion" + ] }, { "path": "template-gallery/runtime-inputs/assets/29722ed072feec11cd36adce7b6cb48483bff3f05776048b93f960b5554ab533.png", @@ -27653,7 +28065,9 @@ "reviewedBy": "SOURAV DAS", "reviewedAt": "2026-08-03", "reviewClass": "standard-human-attestation", - "consumingTemplateIds": ["qwen_inpaint_mask_draft"] + "consumingTemplateIds": [ + "qwen_inpaint_mask_draft" + ] }, { "path": "template-gallery/runtime-inputs/assets/2e0ec8892660785e322468d0153fd2dadf7a4d920fce2d7d4a0b686a8fe8515d.webp", @@ -27676,7 +28090,9 @@ "reviewedBy": "SOURAV DAS", "reviewedAt": "2026-08-03", "reviewClass": "standard-human-attestation", - "consumingTemplateIds": ["flux_redux_edit"] + "consumingTemplateIds": [ + "flux_redux_edit" + ] }, { "path": "template-gallery/runtime-inputs/assets/2e202069a584ee5ada91e2deaea6bf7b92a94f4816e669e695d7cb64d5a1cb0e.png", @@ -27699,7 +28115,9 @@ "reviewedBy": "SOURAV DAS", "reviewedAt": "2026-08-03", "reviewClass": "standard-human-attestation", - "consumingTemplateIds": ["flux_depth_control"] + "consumingTemplateIds": [ + "flux_depth_control" + ] }, { "creatorOrRightsholder": "MoDiff project maintainers, subject to original synthetic source terms", @@ -27748,7 +28166,9 @@ "reviewedBy": "SOURAV DAS", "reviewedAt": "2026-08-03", "reviewClass": "standard-human-attestation", - "consumingTemplateIds": ["ace_step_audio_continuation"] + "consumingTemplateIds": [ + "ace_step_audio_continuation" + ] }, { "path": "template-gallery/runtime-inputs/assets/38a6f334f89048effe579fc473d6fb38437eb579f324ac399d1ec0f6509f74d9.webp", @@ -27771,7 +28191,9 @@ "reviewedBy": "SOURAV DAS", "reviewedAt": "2026-08-03", "reviewClass": "standard-human-attestation", - "consumingTemplateIds": ["ltx_video_long_showcase"] + "consumingTemplateIds": [ + "ltx_video_long_showcase" + ] }, { "path": "template-gallery/runtime-inputs/assets/39428f00f67b49fc6d624617df2964c9f869de21e7e188ef5b231ae04c4aeacc.webp", @@ -27794,7 +28216,10 @@ "reviewedBy": "SOURAV DAS", "reviewedAt": "2026-08-03", "reviewClass": "standard-human-attestation", - "consumingTemplateIds": ["qwen_multi_reference_product", "reference_fusion"] + "consumingTemplateIds": [ + "qwen_multi_reference_product", + "reference_fusion" + ] }, { "path": "template-gallery/runtime-inputs/assets/3c4d3a7a58a7be7f8d8920106dcfea30e28b4af115ce406bcf5b16cec4b4297a.mp4", @@ -27817,7 +28242,9 @@ "reviewedBy": "SOURAV DAS", "reviewedAt": "2026-08-03", "reviewClass": "standard-human-attestation", - "consumingTemplateIds": ["wan_vace_outpaint_reframe"] + "consumingTemplateIds": [ + "wan_vace_outpaint_reframe" + ] }, { "creatorOrRightsholder": "MoDiff project maintainers, subject to original synthetic source terms", @@ -27866,7 +28293,9 @@ "reviewedBy": "SOURAV DAS", "reviewedAt": "2026-08-03", "reviewClass": "standard-human-attestation", - "consumingTemplateIds": ["flux_control_canny"] + "consumingTemplateIds": [ + "flux_control_canny" + ] }, { "creatorOrRightsholder": "MoDiff project maintainers, subject to original synthetic source terms", @@ -27915,7 +28344,9 @@ "reviewedBy": "SOURAV DAS", "reviewedAt": "2026-08-03", "reviewClass": "standard-human-attestation", - "consumingTemplateIds": ["qwen_multi_reference_product"] + "consumingTemplateIds": [ + "qwen_multi_reference_product" + ] }, { "path": "template-gallery/runtime-inputs/assets/4b1b8d9e351abd437f2ffff90cc6a958160a87863ba4d8e85a0aa80a37e7a10e.webp", @@ -27938,7 +28369,9 @@ "reviewedBy": "SOURAV DAS", "reviewedAt": "2026-08-03", "reviewClass": "standard-human-attestation", - "consumingTemplateIds": ["qwen_character_angles"] + "consumingTemplateIds": [ + "qwen_character_angles" + ] }, { "path": "template-gallery/runtime-inputs/assets/4b800b6a362c9ad7755858a3ec2affbda8706c5a71578ced35b80432fd234741.webp", @@ -27961,7 +28394,9 @@ "reviewedBy": "SOURAV DAS", "reviewedAt": "2026-08-03", "reviewClass": "standard-human-attestation", - "consumingTemplateIds": ["flux_redux_multi_reference"] + "consumingTemplateIds": [ + "flux_redux_multi_reference" + ] }, { "creatorOrRightsholder": "MoDiff project maintainers, subject to original synthetic source terms", @@ -28010,7 +28445,9 @@ "reviewedBy": "SOURAV DAS", "reviewedAt": "2026-08-03", "reviewClass": "standard-human-attestation", - "consumingTemplateIds": ["ltx_video_multi_reference"] + "consumingTemplateIds": [ + "ltx_video_multi_reference" + ] }, { "path": "template-gallery/runtime-inputs/assets/6224e9ee47765858f2ec0c33679140d020cf3ad6e4fa2fa4557ef50f811aef0e.webp", @@ -28033,7 +28470,9 @@ "reviewedBy": "SOURAV DAS", "reviewedAt": "2026-08-03", "reviewClass": "standard-human-attestation", - "consumingTemplateIds": ["qwen_tile_extract"] + "consumingTemplateIds": [ + "qwen_tile_extract" + ] }, { "path": "template-gallery/runtime-inputs/assets/70c74691e2bcd7cdb352b7e64e5af5a1a7f01d77112d32a8edadc0060a95ef34.png", @@ -28056,7 +28495,9 @@ "reviewedBy": "maintainer (current user)", "reviewedAt": "2026-11-12", "reviewClass": "per-file-maintainer-accepted-native-three-registration", - "consumingTemplateIds": ["flux_kontext_multi_reference"], + "consumingTemplateIds": [ + "flux_kontext_multi_reference" + ], "derivedFromContentHash": "sha256:bytes:9f421cdc0fa80b3aae368bd3b20a8f6f05942ec461f88541f01aec5390468897", "publicationBasis": "Existing maintainer publication authorization and current explicit instruction to register these three accepted assets; no new ownership or rights quotation is fabricated.", "humanApprovalPacketSHA256": "69c6b3d9b0ea2fcca16ee538f6e75b414b7141658b74f10578758e61360f63fd" @@ -28082,7 +28523,9 @@ "reviewedBy": "SOURAV DAS", "reviewedAt": "2026-08-03", "reviewClass": "standard-human-attestation", - "consumingTemplateIds": ["ltx_video_multi_reference"] + "consumingTemplateIds": [ + "ltx_video_multi_reference" + ] }, { "path": "template-gallery/runtime-inputs/assets/799d82b016a108d4b6902500b4226afd5d2391f4a7b0693af75255425c943a5e.png", @@ -28105,7 +28548,9 @@ "reviewedBy": "SOURAV DAS", "reviewedAt": "2026-08-03", "reviewClass": "standard-human-attestation", - "consumingTemplateIds": ["flux_fill_outpaint"] + "consumingTemplateIds": [ + "flux_fill_outpaint" + ] }, { "path": "template-gallery/runtime-inputs/assets/7f1ea58485fa7802765b9fbbf0e6957e8607261c91669fdcc44cbed80c6fb309.webp", @@ -28128,7 +28573,9 @@ "reviewedBy": "SOURAV DAS", "reviewedAt": "2026-08-03", "reviewClass": "standard-human-attestation", - "consumingTemplateIds": ["flux_redux_multi_reference"] + "consumingTemplateIds": [ + "flux_redux_multi_reference" + ] }, { "path": "template-gallery/runtime-inputs/assets/862e292caa1759156fffde5cfccda8b97ec622514258f81986188cf63a836ea9.webp", @@ -28151,7 +28598,9 @@ "reviewedBy": "SOURAV DAS", "reviewedAt": "2026-08-03", "reviewClass": "standard-human-attestation", - "consumingTemplateIds": ["qwen_outpaint_draft"] + "consumingTemplateIds": [ + "qwen_outpaint_draft" + ] }, { "path": "template-gallery/runtime-inputs/assets/88a7ada5cb91a6ef86de0ff7c26c6b4683df25cc0baa18382371ce0748cd0bd6.webp", @@ -28174,7 +28623,9 @@ "reviewedBy": "SOURAV DAS", "reviewedAt": "2026-08-03", "reviewClass": "standard-human-attestation", - "consumingTemplateIds": ["ltx_video_long_showcase"] + "consumingTemplateIds": [ + "ltx_video_long_showcase" + ] }, { "creatorOrRightsholder": "MoDiff project maintainers, subject to original synthetic source terms", @@ -28223,7 +28674,10 @@ "reviewedBy": "SOURAV DAS", "reviewedAt": "2026-08-03", "reviewClass": "standard-human-attestation", - "consumingTemplateIds": ["ltx_video_image_to_video", "ltx_video_long_showcase"] + "consumingTemplateIds": [ + "ltx_video_image_to_video", + "ltx_video_long_showcase" + ] }, { "path": "template-gallery/runtime-inputs/assets/9328061557396ef591a9f4a6242abf1cdd61082846518726c3114f746ccedd63.webp", @@ -28246,7 +28700,9 @@ "reviewedBy": "SOURAV DAS", "reviewedAt": "2026-08-03", "reviewClass": "standard-human-attestation", - "consumingTemplateIds": ["qwen_logo_texture"] + "consumingTemplateIds": [ + "qwen_logo_texture" + ] }, { "path": "template-gallery/runtime-inputs/assets/965240cf250a9074a7adab394c76070674cf517bed42b6c4647112d17dec84de.webp", @@ -28269,7 +28725,9 @@ "reviewedBy": "SOURAV DAS", "reviewedAt": "2026-08-03", "reviewClass": "standard-human-attestation", - "consumingTemplateIds": ["qwen_layered_portrait"] + "consumingTemplateIds": [ + "qwen_layered_portrait" + ] }, { "path": "template-gallery/runtime-inputs/assets/9f9f9685db5e9f8e1c162a0515151b03912c84777727b38682b65839db501ae6.webp", @@ -28292,7 +28750,9 @@ "reviewedBy": "SOURAV DAS", "reviewedAt": "2026-08-03", "reviewClass": "standard-human-attestation", - "consumingTemplateIds": ["qwen_inpaint_object_replace"] + "consumingTemplateIds": [ + "qwen_inpaint_object_replace" + ] }, { "path": "template-gallery/runtime-inputs/assets/a2f8ac6f5937d6e618b48ce9947153b8233ff7a82dcf67f28766d20b9917d730.webp", @@ -28315,7 +28775,9 @@ "reviewedBy": "SOURAV DAS", "reviewedAt": "2026-08-03", "reviewClass": "standard-human-attestation", - "consumingTemplateIds": ["qwen_inpaint_mask_draft"] + "consumingTemplateIds": [ + "qwen_inpaint_mask_draft" + ] }, { "path": "template-gallery/runtime-inputs/assets/a6d165bd87e2c57ab8cf71fa15de9d8724fccf5782c16c34c25dc77934751676.webp", @@ -28338,7 +28800,9 @@ "reviewedBy": "SOURAV DAS", "reviewedAt": "2026-08-03", "reviewClass": "standard-human-attestation", - "consumingTemplateIds": ["qwen_edit_strength_sweep"] + "consumingTemplateIds": [ + "qwen_edit_strength_sweep" + ] }, { "path": "template-gallery/runtime-inputs/assets/a7b61f36043354596eb01e702474300b222cb32e304bcf259506cad03917ce9b.webp", @@ -28389,7 +28853,10 @@ "reviewedBy": "SOURAV DAS", "reviewedAt": "2026-08-03", "reviewClass": "standard-human-attestation", - "consumingTemplateIds": ["qwen_control_image_layout", "qwen_packaging_dieline"] + "consumingTemplateIds": [ + "qwen_control_image_layout", + "qwen_packaging_dieline" + ] }, { "path": "template-gallery/runtime-inputs/assets/b7c221b367738177e32fece56067d743df96282a6ccb2afd040ee89ea0a8f678.webp", @@ -28412,7 +28879,9 @@ "reviewedBy": "SOURAV DAS", "reviewedAt": "2026-08-03", "reviewClass": "standard-human-attestation", - "consumingTemplateIds": ["flux_fill_inpaint"] + "consumingTemplateIds": [ + "flux_fill_inpaint" + ] }, { "path": "template-gallery/runtime-inputs/assets/b9909f4cbff8af6e97be6d1e4923c67687eee41dbd64b051a018866781da12ab.webp", @@ -28435,7 +28904,9 @@ "reviewedBy": "SOURAV DAS", "reviewedAt": "2026-08-03", "reviewClass": "standard-human-attestation", - "consumingTemplateIds": ["character_edit"] + "consumingTemplateIds": [ + "character_edit" + ] }, { "path": "template-gallery/runtime-inputs/assets/bf4dbaa55b83b19ca56c691e9d1a10d3b838ff2fec926aaea6b526561c68f8e6.png", @@ -28458,7 +28929,9 @@ "reviewedBy": "SOURAV DAS", "reviewedAt": "2026-08-03", "reviewClass": "standard-human-attestation", - "consumingTemplateIds": ["flux_fill_outpaint"] + "consumingTemplateIds": [ + "flux_fill_outpaint" + ] }, { "path": "template-gallery/runtime-inputs/assets/c810699838c636767d2a5b25fb457df94a4b76a70da9a77e77009681779acbf2.webp", @@ -28481,7 +28954,9 @@ "reviewedBy": "SOURAV DAS", "reviewedAt": "2026-08-03", "reviewClass": "standard-human-attestation", - "consumingTemplateIds": ["ltx_video_long_showcase"] + "consumingTemplateIds": [ + "ltx_video_long_showcase" + ] }, { "path": "template-gallery/runtime-inputs/assets/d49908e24c58d144f4264f4028cb0f7f2e72fb02b315443fd021715ebed1e737.webp", @@ -28504,7 +28979,9 @@ "reviewedBy": "SOURAV DAS", "reviewedAt": "2026-08-03", "reviewClass": "standard-human-attestation", - "consumingTemplateIds": ["ltx_video_long_showcase"] + "consumingTemplateIds": [ + "ltx_video_long_showcase" + ] }, { "path": "template-gallery/runtime-inputs/assets/d5ba3943d6c0a264860ba0cde18d87e2d9554a3f7328308f4d771e082a9e0c24.png", @@ -28527,7 +29004,9 @@ "reviewedBy": "SOURAV DAS", "reviewedAt": "2026-08-03", "reviewClass": "standard-human-attestation", - "consumingTemplateIds": ["flux2_klein_edit"] + "consumingTemplateIds": [ + "flux2_klein_edit" + ] }, { "path": "template-gallery/runtime-inputs/assets/d86b921f1be36360b5b660b8a5b9d0e9165e888be8a06fe2d8f362e87de40429.mp4", @@ -28550,7 +29029,9 @@ "reviewedBy": "SOURAV DAS", "reviewedAt": "2026-08-03", "reviewClass": "standard-human-attestation", - "consumingTemplateIds": ["wan_vace_video_color_grade"] + "consumingTemplateIds": [ + "wan_vace_video_color_grade" + ] }, { "path": "template-gallery/runtime-inputs/assets/d898e00f3be4b28e237f71acf8024ad3715a657e1fcf3aeaf57279468dff7a76.webp", @@ -28573,7 +29054,9 @@ "reviewedBy": "SOURAV DAS", "reviewedAt": "2026-08-03", "reviewClass": "standard-human-attestation", - "consumingTemplateIds": ["qwen_outpaint_aspect_template"] + "consumingTemplateIds": [ + "qwen_outpaint_aspect_template" + ] }, { "path": "template-gallery/runtime-inputs/assets/ddaccd06100d51494e5aaaecedab7b27eaeeda5290d453498d3e1cb9460ad474.webp", @@ -28596,7 +29079,9 @@ "reviewedBy": "SOURAV DAS", "reviewedAt": "2026-08-03", "reviewClass": "standard-human-attestation", - "consumingTemplateIds": ["ltx_video_long_showcase"] + "consumingTemplateIds": [ + "ltx_video_long_showcase" + ] }, { "path": "template-gallery/runtime-inputs/assets/e07d05a658d361b6d28af62bcccfaeba9254507467dae1c5839efd546fed96a7.wav", @@ -28619,7 +29104,10 @@ "reviewedBy": "SOURAV DAS", "reviewedAt": "2026-08-03", "reviewClass": "standard-human-attestation", - "consumingTemplateIds": ["ace_step_audio_repaint", "ace_step_audio_variation"] + "consumingTemplateIds": [ + "ace_step_audio_repaint", + "ace_step_audio_variation" + ] }, { "path": "template-gallery/runtime-inputs/assets/e0ab22f77f5d966d7868f8950f79702dc6d156d0eaef3e06205097558d5c5bb2.webp", @@ -28642,7 +29130,9 @@ "reviewedBy": "SOURAV DAS", "reviewedAt": "2026-08-03", "reviewClass": "standard-human-attestation", - "consumingTemplateIds": ["qwen_product_ad_composite"] + "consumingTemplateIds": [ + "qwen_product_ad_composite" + ] }, { "path": "template-gallery/runtime-inputs/assets/e0f19676addbba6fe954711c235878ef43495e8066b84ed70b5c240a8512b026.mp4", @@ -28665,7 +29155,9 @@ "reviewedBy": "SOURAV DAS", "reviewedAt": "2026-08-03", "reviewClass": "standard-human-attestation", - "consumingTemplateIds": ["wan_vace_grayscale_control"] + "consumingTemplateIds": [ + "wan_vace_grayscale_control" + ] }, { "path": "template-gallery/runtime-inputs/assets/e14e0fb4bccace254e3430bbddd49728980e5445b988eff1ae8164f135d1cc8d.png", @@ -28688,7 +29180,9 @@ "reviewedBy": "SOURAV DAS", "reviewedAt": "2026-08-03", "reviewClass": "standard-human-attestation", - "consumingTemplateIds": ["qwen_inpaint_object_replace"] + "consumingTemplateIds": [ + "qwen_inpaint_object_replace" + ] }, { "creatorOrRightsholder": "MoDiff project maintainers, subject to original synthetic source terms", @@ -28737,7 +29231,9 @@ "reviewedBy": "SOURAV DAS", "reviewedAt": "2026-08-03", "reviewClass": "standard-human-attestation", - "consumingTemplateIds": ["qwen_edit_plus_single_image"] + "consumingTemplateIds": [ + "qwen_edit_plus_single_image" + ] }, { "path": "template-gallery/runtime-inputs/assets/f791a809c0df307cd7dafa8c54ae86bbe4c53d73afdacb2183ff8cdbeac994c2.webp", @@ -28760,7 +29256,9 @@ "reviewedBy": "SOURAV DAS", "reviewedAt": "2026-08-03", "reviewClass": "standard-human-attestation", - "consumingTemplateIds": ["qwen_product_relight"] + "consumingTemplateIds": [ + "qwen_product_relight" + ] }, { "creatorOrRightsholder": "MoDiff project maintainers, subject to original synthetic source terms", @@ -28809,7 +29307,9 @@ "reviewedBy": "SOURAV DAS", "reviewedAt": "2026-08-03", "reviewClass": "standard-human-attestation", - "consumingTemplateIds": ["flux2_klein_multi_reference"] + "consumingTemplateIds": [ + "flux2_klein_multi_reference" + ] }, { "creatorOrRightsholder": "MoDiff project maintainers, subject to original synthetic source terms", @@ -29521,7 +30021,9 @@ "sourceUrl": "https://huggingface.co/black-forest-labs/flux-3-image-klein/tree/8454017f9ebaada30c998fccd9f67a80c7580f68", "sourceRevision": "black-forest-labs/flux-3-image-klein@8454017f9ebaada30c998fccd9f67a80c7580f68", "sourceLicense": "Apache-2.0 project-authored metadata", - "modelTerms": ["black-forest-labs/flux-3-image-klein@8454017f9ebaada30c998fccd9f67a80c7580f68: Apache-2.0"], + "modelTerms": [ + "black-forest-labs/flux-3-image-klein@8454017f9ebaada30c998fccd9f67a80c7580f68: Apache-2.0" + ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], @@ -29542,7 +30044,9 @@ "sourceUrl": "https://huggingface.co/black-forest-labs/flux-3-image-klein/tree/8454017f9ebaada30c998fccd9f67a80c7580f68", "sourceRevision": "black-forest-labs/flux-3-image-klein@8454017f9ebaada30c998fccd9f67a80c7580f68", "sourceLicense": "Original synthetic generation; underlying model terms retained", - "modelTerms": ["black-forest-labs/flux-3-image-klein@8454017f9ebaada30c998fccd9f67a80c7580f68: Apache-2.0"], + "modelTerms": [ + "black-forest-labs/flux-3-image-klein@8454017f9ebaada30c998fccd9f67a80c7580f68: Apache-2.0" + ], "aiGenerated": true, "humanLikenessConsent": "synthetic", "marks": [], @@ -29563,7 +30067,9 @@ "sourceUrl": "https://huggingface.co/black-forest-labs/flux-3-image-klein/tree/8454017f9ebaada30c998fccd9f67a80c7580f68", "sourceRevision": "black-forest-labs/flux-3-image-klein@8454017f9ebaada30c998fccd9f67a80c7580f68", "sourceLicense": "Apache-2.0 project-authored metadata", - "modelTerms": ["black-forest-labs/flux-3-image-klein@8454017f9ebaada30c998fccd9f67a80c7580f68: Apache-2.0"], + "modelTerms": [ + "black-forest-labs/flux-3-image-klein@8454017f9ebaada30c998fccd9f67a80c7580f68: Apache-2.0" + ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], @@ -29584,10 +30090,14 @@ "sourceUrl": "https://huggingface.co/black-forest-labs/flux-3-image-klein/tree/8454017f9ebaada30c998fccd9f67a80c7580f68", "sourceRevision": "black-forest-labs/flux-3-image-klein@8454017f9ebaada30c998fccd9f67a80c7580f68", "sourceLicense": "Original synthetic generation; underlying model terms retained", - "modelTerms": ["black-forest-labs/flux-3-image-klein@8454017f9ebaada30c998fccd9f67a80c7580f68: Apache-2.0"], + "modelTerms": [ + "black-forest-labs/flux-3-image-klein@8454017f9ebaada30c998fccd9f67a80c7580f68: Apache-2.0" + ], "aiGenerated": true, "humanLikenessConsent": "synthetic", - "marks": ["Fictional MATERIAL ATLAS label"], + "marks": [ + "Fictional MATERIAL ATLAS label" + ], "requiredAttribution": [], "assetLicense": "Apache-2.0", "reviewedBy": "SOURAV DAS", @@ -29635,7 +30145,9 @@ ], "aiGenerated": true, "humanLikenessConsent": "synthetic", - "marks": ["Fictional MATERIAL ATLAS label"], + "marks": [ + "Fictional MATERIAL ATLAS label" + ], "requiredAttribution": [], "assetLicense": "Apache-2.0", "reviewedBy": "SOURAV DAS", @@ -29653,7 +30165,9 @@ "sourceUrl": "https://huggingface.co/black-forest-labs/flux-3-image-klein/tree/8454017f9ebaada30c998fccd9f67a80c7580f68", "sourceRevision": "black-forest-labs/flux-3-image-klein@8454017f9ebaada30c998fccd9f67a80c7580f68", "sourceLicense": "Apache-2.0 project-authored metadata", - "modelTerms": ["black-forest-labs/flux-3-image-klein@8454017f9ebaada30c998fccd9f67a80c7580f68: Apache-2.0"], + "modelTerms": [ + "black-forest-labs/flux-3-image-klein@8454017f9ebaada30c998fccd9f67a80c7580f68: Apache-2.0" + ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], @@ -29674,10 +30188,14 @@ "sourceUrl": "https://huggingface.co/black-forest-labs/flux-3-image-klein/tree/8454017f9ebaada30c998fccd9f67a80c7580f68", "sourceRevision": "black-forest-labs/flux-3-image-klein@8454017f9ebaada30c998fccd9f67a80c7580f68", "sourceLicense": "Original synthetic generation; underlying model terms retained", - "modelTerms": ["black-forest-labs/flux-3-image-klein@8454017f9ebaada30c998fccd9f67a80c7580f68: Apache-2.0"], + "modelTerms": [ + "black-forest-labs/flux-3-image-klein@8454017f9ebaada30c998fccd9f67a80c7580f68: Apache-2.0" + ], "aiGenerated": true, "humanLikenessConsent": "synthetic", - "marks": ["Fictional MATERIAL ATLAS label"], + "marks": [ + "Fictional MATERIAL ATLAS label" + ], "requiredAttribution": [], "assetLicense": "Apache-2.0", "reviewedBy": "SOURAV DAS", @@ -29695,7 +30213,9 @@ "sourceUrl": "https://huggingface.co/black-forest-labs/flux-3-image-klein/tree/8454017f9ebaada30c998fccd9f67a80c7580f68", "sourceRevision": "black-forest-labs/flux-3-image-klein@8454017f9ebaada30c998fccd9f67a80c7580f68", "sourceLicense": "Apache-2.0 project-authored metadata", - "modelTerms": ["black-forest-labs/flux-3-image-klein@8454017f9ebaada30c998fccd9f67a80c7580f68: Apache-2.0"], + "modelTerms": [ + "black-forest-labs/flux-3-image-klein@8454017f9ebaada30c998fccd9f67a80c7580f68: Apache-2.0" + ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], @@ -29716,7 +30236,9 @@ "sourceUrl": "https://huggingface.co/black-forest-labs/flux-3-image-klein/tree/8454017f9ebaada30c998fccd9f67a80c7580f68", "sourceRevision": "black-forest-labs/flux-3-image-klein@8454017f9ebaada30c998fccd9f67a80c7580f68", "sourceLicense": "Original synthetic generation; underlying model terms retained", - "modelTerms": ["black-forest-labs/flux-3-image-klein@8454017f9ebaada30c998fccd9f67a80c7580f68: Apache-2.0"], + "modelTerms": [ + "black-forest-labs/flux-3-image-klein@8454017f9ebaada30c998fccd9f67a80c7580f68: Apache-2.0" + ], "aiGenerated": true, "humanLikenessConsent": "synthetic", "marks": [], @@ -29737,7 +30259,9 @@ "sourceUrl": "https://huggingface.co/black-forest-labs/flux-3-image-klein/tree/8454017f9ebaada30c998fccd9f67a80c7580f68", "sourceRevision": "black-forest-labs/flux-3-image-klein@8454017f9ebaada30c998fccd9f67a80c7580f68", "sourceLicense": "Apache-2.0 project-authored metadata", - "modelTerms": ["black-forest-labs/flux-3-image-klein@8454017f9ebaada30c998fccd9f67a80c7580f68: Apache-2.0"], + "modelTerms": [ + "black-forest-labs/flux-3-image-klein@8454017f9ebaada30c998fccd9f67a80c7580f68: Apache-2.0" + ], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], @@ -29758,7 +30282,9 @@ "sourceUrl": "https://huggingface.co/black-forest-labs/flux-3-image-klein/tree/8454017f9ebaada30c998fccd9f67a80c7580f68", "sourceRevision": "black-forest-labs/flux-3-image-klein@8454017f9ebaada30c998fccd9f67a80c7580f68", "sourceLicense": "Original synthetic generation; underlying model terms retained", - "modelTerms": ["black-forest-labs/flux-3-image-klein@8454017f9ebaada30c998fccd9f67a80c7580f68: Apache-2.0"], + "modelTerms": [ + "black-forest-labs/flux-3-image-klein@8454017f9ebaada30c998fccd9f67a80c7580f68: Apache-2.0" + ], "aiGenerated": true, "humanLikenessConsent": "synthetic", "marks": [], @@ -29901,7 +30427,9 @@ ], "aiGenerated": true, "humanLikenessConsent": "synthetic", - "marks": ["Fictional MATERIAL ATLAS label"], + "marks": [ + "Fictional MATERIAL ATLAS label" + ], "requiredAttribution": [], "assetLicense": "Apache-2.0", "reviewedBy": "SOURAV DAS", @@ -30039,7 +30567,9 @@ ], "aiGenerated": true, "humanLikenessConsent": "synthetic", - "marks": ["Fictional MATERIAL ATLAS label"], + "marks": [ + "Fictional MATERIAL ATLAS label" + ], "requiredAttribution": [], "assetLicense": "Apache-2.0", "reviewedBy": "SOURAV DAS", @@ -30201,7 +30731,9 @@ "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], - "requiredAttribution": ["AI-generated with Lightricks LTX-2.5 Full. Original edit and Foley by MoDiff."], + "requiredAttribution": [ + "AI-generated with Lightricks LTX-2.5 Full. Original edit and Foley by MoDiff." + ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace owner", "reviewedAt": "2026-11-18", @@ -30224,7 +30756,9 @@ "aiGenerated": true, "humanLikenessConsent": "synthetic", "marks": [], - "requiredAttribution": ["AI-generated with Lightricks LTX-2.5 Full. Original edit and Foley by MoDiff."], + "requiredAttribution": [ + "AI-generated with Lightricks LTX-2.5 Full. Original edit and Foley by MoDiff." + ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace owner", "reviewedAt": "2026-11-18", @@ -30247,7 +30781,9 @@ "aiGenerated": true, "humanLikenessConsent": "synthetic", "marks": [], - "requiredAttribution": ["AI-generated with Lightricks LTX-2.5 Full. Original edit and Foley by MoDiff."], + "requiredAttribution": [ + "AI-generated with Lightricks LTX-2.5 Full. Original edit and Foley by MoDiff." + ], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace owner", "reviewedAt": "2026-11-18", @@ -31594,7 +32130,9 @@ ], "aiGenerated": true, "humanLikenessConsent": "synthetic", - "marks": ["LumaPod project-authored concept name/wordmark approved in this packet"], + "marks": [ + "LumaPod project-authored concept name/wordmark approved in this packet" + ], "requiredAttribution": [], "path": "template-gallery/z_image_product_mockup.webp", "sha256": "sha256:bytes:0d9c80e29c95d62835f56c95d666ed6d8b47e6792005ab59aef1d1c9b6de84df", diff --git a/config/template-assets.v1.json b/config/template-assets.v1.json index 12d880ad..b472b38a 100644 --- a/config/template-assets.v1.json +++ b/config/template-assets.v1.json @@ -227,6 +227,15 @@ "runtime" ] }, + { + "path": "template-gallery/audioldm2_wind_through_high_pines.wav", + "size": 320044, + "sha256": "sha256:bytes:6466efff6cc71c5f068df11ab58a1443dfe53ccf28e31c3ad2806590fe6190a6", + "contentType": "audio/x-wav", + "purposes": [ + "runtime" + ] + }, { "path": "template-gallery/bookshop_at_blue_hour.webp", "size": 569776, @@ -3850,8 +3859,8 @@ }, { "path": "template-gallery/manifest.json", - "size": 524756, - "sha256": "sha256:bytes:fe948ccb643e19685fb242236c2c9c5888e3b756de0718c1c39b6c3f694d689b", + "size": 527055, + "sha256": "sha256:bytes:789269290f378489a939b79daad98d9a5e2bf351c105f362895a5e8aee67a6f4", "contentType": "application/json", "purposes": [ "runtime", @@ -4929,6 +4938,42 @@ "runtime" ] }, + { + "path": "template-gallery/reviews/audioldm2_wind_through_high_pines.original-provenance.json", + "size": 1354, + "sha256": "sha256:bytes:d61c68aaeec091d060e4c9bd260ffe885326826db71078e904acacac42ea3c40", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, + { + "path": "template-gallery/reviews/audioldm2_wind_through_high_pines.original-review.json", + "size": 702, + "sha256": "sha256:bytes:429e7cac396b1c29e7348015a777e3ab85483813d80cc6a3e1e5400d34f6f0f4", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, + { + "path": "template-gallery/reviews/audioldm2_wind_through_high_pines.quality-review.json", + "size": 2438, + "sha256": "sha256:bytes:29dee8c7187cf2cd9b55070b86a8cdc9507df35ee0f69b63706c79f909273895", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, + { + "path": "template-gallery/reviews/audioldm2_wind_through_high_pines.retained-template-provenance.json", + "size": 3438, + "sha256": "sha256:bytes:58a23cef1b5f084fb1ebca4a74af2c8fb42b39adba46ff2d769944086b224c9f", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, { "path": "template-gallery/reviews/bookshop_at_blue_hour.original-provenance.json", "size": 2922, @@ -12036,9 +12081,9 @@ "height": 1024 } ], - "assetSetId": "sha256:canonical-json:8ee20b6e168398e406a81e3eb9b9187741c405571af52f2454956c4e9f500bcb", + "assetSetId": "sha256:canonical-json:ae0711e49b16b50a55cbdf0e7ca90b58b1b723e3a66b3385ca19662982e70c42", "status": "ready", - "assetCount": 1242, - "totalBytes": 1286239150, + "assetCount": 1247, + "totalBytes": 1286569425, "missingAssets": [] } diff --git a/public/template-gallery/manifest.json b/public/template-gallery/manifest.json index f848ba60..f113b7da 100644 --- a/public/template-gallery/manifest.json +++ b/public/template-gallery/manifest.json @@ -6725,6 +6725,34 @@ "approvedOriginalReviewPath": "/template-gallery/reviews/ltx_long_wind_and_tide_at_the_headland.original-review.json", "approvedOriginalProvenancePath": "/template-gallery/reviews/ltx_long_wind_and_tide_at_the_headland.original-provenance.json", "approvedSourcePath": "/template-gallery/inputs/ltx_long_wind_and_tide_at_the_headland.first.png" + }, + { + "templateId": "audioldm2_wind_through_high_pines", + "templateLockHash": "tpl_576af977", + "promptSettingsHash": "ps_0a65234d", + "modelRevision": "cvssp/audioldm2@c8e7e189d324425c05c4c2f81214041ef4107983", + "runtimeFingerprint": "sha256:stable-runtime-v1:c2642af585975d6b55b551bcdfb8606edb2fab4b37a05875aa3a8024270b6eab", + "graphHash": "sha256:canonical-graph-v1:3b4e9f186c35a687114a08eef220f841aba92feaae4d515ce9c6b15252750cd5", + "proofLockHash": "sha256:retained-template-association-v1:9fe2a7c19f04a2244c3d179c189b17fd220e5672949822021a4edc2dc320e0e4", + "backendSourceFingerprint": "sha256:backend-source-v1:2faeaaa03b7902a03df5cd0cea38129b7419f6d844125c0ca7e29ccfaf635290", + "backendContractFingerprint": "sha256:backend-contract-v1:9ddcba2a3da4634780919a6872ed9a6586f7a765f16243cee9763b776d02b356", + "modelCommit": "c8e7e189d324425c05c4c2f81214041ef4107983", + "templateRevisionHash": "1e95e96945a61ebe10ce15747c762aacbb9cc86520b8cf826aa9a4b91b7f9edd", + "provenancePath": "/template-gallery/reviews/audioldm2_wind_through_high_pines.retained-template-provenance.json", + "provenanceHash": "sha256:canonical-json:e4ab0b1a51d37ecc4b48b8d840921f7c1bce58591f6b33c54197c707d3e2f4fb", + "outputPath": "/template-gallery/audioldm2_wind_through_high_pines.wav", + "thumbnailPath": "/template-gallery/audioldm2_wind_through_high_pines.wav", + "mediaHash": "sha256:decoded-audio-pcm-s16le-48000-stereo:363d8b6b0568ebc840eac064135a3cb3646ab297d0769f54bd493972d8a87b46", + "mediaType": "audio", + "verificationTimestamp": "2026-11-25T00:34:07.462Z", + "verificationStatus": "reviewed", + "qualityReviewStatus": "approved_reviewed", + "qualityReviewHash": "sha256:canonical-json:e886270ebc722c98053c76b1e83bfb88608444912f47933e7e0c46d38e7bb5d0", + "qualityReviewPath": "/template-gallery/reviews/audioldm2_wind_through_high_pines.quality-review.json", + "reviewer": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25T16:50:04.589Z", + "approvedOriginalReviewPath": "/template-gallery/reviews/audioldm2_wind_through_high_pines.original-review.json", + "approvedOriginalProvenancePath": "/template-gallery/reviews/audioldm2_wind_through_high_pines.original-provenance.json" } ] } diff --git a/scripts/bundle-budget.mjs b/scripts/bundle-budget.mjs index d93506a6..0169d2e1 100644 --- a/scripts/bundle-budget.mjs +++ b/scripts/bundle-budget.mjs @@ -493,6 +493,8 @@ const SOURCE_LICENSES = new URL('../public/THIRD_PARTY_LICENSES.txt', import.met // 504492/682980/346033 largest/startup/deferred gzip bytes: the reviewed // migration ceilings below still pass with 8/12/304 bytes of headroom. const MAX_STARTUP_CHUNK_GZIP_BYTES = + // The retained AudioLDM2 recipe measures 571524 bytes. + 511 + // Approved retained templates and their exact input bindings measure 571013 bytes. 7624 + // The retained Glasshouse Keeper recipe and motion bindings add 720 bytes (562669 to 563389). @@ -805,6 +807,8 @@ const MAX_STARTUP_CHUNK_GZIP_BYTES = // The same build measures 673359 aggregate startup bytes (+45 over the cap). // Keep 19 bytes of headroom; deferred limits and loading boundaries stay fixed. const MAX_STARTUP_GZIP_BYTES = + // The same recipe measures 750010 total startup gzip bytes. + 512 + // The expanded catalogue measures 749498 total startup gzip bytes. 7622 + // The same change adds 721 bytes across the startup closure (741155 to 741876). diff --git a/scripts/retained-gallery-templates.test.mjs b/scripts/retained-gallery-templates.test.mjs index c3850bb1..fa845663 100644 --- a/scripts/retained-gallery-templates.test.mjs +++ b/scripts/retained-gallery-templates.test.mjs @@ -547,7 +547,7 @@ test('fresh Expert recipes prepare with current backend specs and without a gene assert.equal(loader.params.revision.value, template.modelArtifact.revision, template.id); assert.equal(loader.params.dtype.value, template.example.lockedSettings.dtype ?? 'float32'); assert.equal(loader.params.device.value, form.device); - if (template.id === 'longcat_last_tram_at_dusk') { + if (template.mode === 'text_to_audio' && binding.nodes.audioGenerate) { const generation = api.nodes[binding.nodes.audioGenerate].params; const output = api.nodes[binding.nodes.audioExport].params; const locked = template.example.lockedSettings; @@ -555,6 +555,7 @@ test('fresh Expert recipes prepare with current backend specs and without a gene assert.equal(generation.stable_audio_steps.value, locked.steps); assert.equal(generation.stable_audio_guidance.value, locked.guidanceScale); assert.equal(generation.audio_duration.value, locked.audioDuration); + assert.equal(generation.sample_rate.value, template.example.expectedOutput.sampleRate); assert.equal(Number(generation.seed.value), template.example.lockedSeed); assert.equal(generation.pipeline.sourceId, binding.nodes.audioPipeline); assert.equal(output.audio.sourceId, binding.nodes.audioGenerate); diff --git a/src/studio/retainedGalleryApprovedBatch.ts b/src/studio/retainedGalleryApprovedBatch.ts index f18f46ca..b400e032 100644 --- a/src/studio/retainedGalleryApprovedBatch.ts +++ b/src/studio/retainedGalleryApprovedBatch.ts @@ -9303,4 +9303,69 @@ export const APPROVED_RETAINED_TEMPLATES: StudioTemplate[] = [ }, }, }, + { + id: 'audioldm2_wind_through_high_pines', + label: 'AudioLDM2 Base — Text to audio: Wind Through High Pines', + mode: 'text_to_audio', + modelType: 'AudioLDM2Pipeline', + intentGroup: 'audio', + thumbnailVariant: 'audio', + category: 'audio_generation', + outputKinds: ['audio'], + readinessPolicy: 'runnable', + modelArtifact: { + source: 'hub', + value: 'cvssp/audioldm2', + revision: 'c8e7e189d324425c05c4c2f81214041ef4107983', + }, + description: + 'Reproduce the reviewed Wind Through High Pines example with the saved prompt, settings and model revision.', + prompt: + 'A continuous outdoor field recording in a dense high mountain pine forest. Soft wide wind moves through the needles with a clear swelling gust in the middle, then gently recedes to the original forest hush. A few faint distant bird calls between the gusts. Natural open air stereo-like depth, no music, no speech, no footsteps, no sudden microphone handling, no artificial drones.', + negativePrompt: '', + example: { + mediaType: 'audio', + status: 'unverified', + modelRevision: 'c8e7e189d324425c05c4c2f81214041ef4107983', + lockedSeed: 42, + lockedSettings: { + steps: 200, + guidanceScale: 3.5, + strength: 0.8, + maxSequenceLength: 512, + pagScale: 0, + pagAdaptiveScale: 0, + dtype: 'float16', + resourceMode: 'expert', + quantizationMode: 'none', + autoOffload: true, + offloadMode: 'model_cpu', + audioDuration: 10, + }, + expectedOutput: { + durationSeconds: 10, + sampleRate: 16000, + }, + runtimeEstimate: '26.23 seconds in the saved run', + }, + requiredBackendCapabilities: [ + 'modules.Audio.Export', + 'modules.DiffusersAudio.Generate', + 'modules.DiffusersAudio.LoadPipeline', + 'modules.DiffusersRuntime.PipelineQuantizationConfigV2', + 'modules.DiffusersRuntime.DiffusersExecutionRecipe', + ], + mediaSlots: [ + { + id: 'result', + label: 'Generated audio', + kind: 'audio', + role: 'output', + placeholder: 'Result pending', + }, + ], + recipeSummary: + 'Reproduce the reviewed Wind Through High Pines example with the saved prompt, settings and model revision.', + runtimeReuseKey: 'sha256:canonical-graph-v1:3b4e9f186c35a687114a08eef220f841aba92feaae4d515ce9c6b15252750cd5', + }, ]; diff --git a/src/studio/templateAssetSource.json b/src/studio/templateAssetSource.json index 66503b28..76ca5e26 100644 --- a/src/studio/templateAssetSource.json +++ b/src/studio/templateAssetSource.json @@ -4,11 +4,11 @@ "localBasePath": "/template-gallery", "repoType": "dataset", "repoId": "sourav-das/modiff-template-gallery", - "revision": "9a1a6227fa40f37e1269e5e3cd4f4e1c84df8d00", + "revision": "39306b96a08248f4d3b413833d51992227f3a31d", "pathPrefix": "template-gallery", "assetManifestPath": "_modiff/template-assets.v1.json", - "assetSetId": "sha256:canonical-json:bc98955db37f65f8ba9b10e0ebd9cee3d36e3260f236fed236df402f35759bc0", - "completeAssetSetId": "sha256:canonical-json:8ee20b6e168398e406a81e3eb9b9187741c405571af52f2454956c4e9f500bcb", + "assetSetId": "sha256:canonical-json:732a0dccafae1e05b5308c55d6848df294ebf4e689663e993bebd4d90534f7b2", + "completeAssetSetId": "sha256:canonical-json:ae0711e49b16b50a55cbdf0e7ca90b58b1b723e3a66b3385ca19662982e70c42", "unavailableAssets": [ "template-gallery/ace_step_chinese_new_year_lora.card-poster.png", "template-gallery/ace_step_chinese_new_year_lora.wav", diff --git a/src/studio/types.ts b/src/studio/types.ts index 834461e9..46e71ee7 100644 --- a/src/studio/types.ts +++ b/src/studio/types.ts @@ -260,6 +260,7 @@ export type StudioTemplateId = | 'smolvlm_red_triangle' | 'kandinsky3_ginkgo_on_slate' | 'chroma_terracotta_and_blue' + | 'audioldm2_wind_through_high_pines' | 'longcat_last_tram_at_dusk' | 'qwen_layered_sunset_and_peaks' | 'wan_a14b_cloudbreak_over_the_ridges' From 8eae8107acd646f51808781e6b16621d63c20d47 Mon Sep 17 00:00:00 2001 From: Sourav Das Date: Wed, 25 Nov 2026 22:45:58 +0530 Subject: [PATCH 395/440] Preserve the curated showcase entry order --- config/release-showcase-scope.v1.json | 340 +++++++++++++------------- 1 file changed, 170 insertions(+), 170 deletions(-) diff --git a/config/release-showcase-scope.v1.json b/config/release-showcase-scope.v1.json index ad137773..e2cbf3d0 100644 --- a/config/release-showcase-scope.v1.json +++ b/config/release-showcase-scope.v1.json @@ -539,93 +539,111 @@ "countedAsComplete": false }, { - "id": "allegro_basalt_shore_at_dawn", + "id": "cosmos3_super_text_to_image", "category": "supplementary-only", - "reason": "Published and registered from an approved saved run outside the original campaign selection.", + "reason": "Now published and release-qualified from a reviewed AMD run. Filed outside the original curated preview selection.", "countedAsComplete": false }, { - "id": "animatediff_candlelight_behind_amber_glass", - "category": "supplementary-only", - "reason": "Published and registered from an approved saved run outside the original campaign selection.", + "id": "flux_lora_ghibli_story", + "category": "rights-or-access", + "reason": "Pinned adapter terms are personal-use-only; no public output or new normal run is authorized by the overnight instruction.", "countedAsComplete": false }, { - "id": "animatediff_ivory_balloon_blue_mountains", + "id": "flux2_dev_text_to_image", "category": "supplementary-only", - "reason": "Published and registered from an approved saved run outside the original campaign selection.", + "reason": "Now published and release-qualified from a reviewed AMD run. Filed outside the original curated preview selection.", "countedAsComplete": false }, { - "id": "animatediff_pag_snowmelt_over_river_stones", + "id": "marigold_depth_synthetic_ramp", "category": "supplementary-only", - "reason": "Published and registered from an approved saved run outside the original campaign selection.", + "reason": "Published and registered as a supplementary Gallery example outside the original campaign selection.", "countedAsComplete": false }, { - "id": "animatediff_red_tram_in_watercolor", + "id": "minimax_h3_image_old_town_cat", "category": "supplementary-only", - "reason": "Published and registered from an approved saved run outside the original campaign selection.", + "reason": "Approved supplementary showcases are separate examples; this template is outside the original campaign selection.", "countedAsComplete": false }, { - "id": "animatediff_red_tram_through_snow", + "id": "smollm2_rain_gauge", "category": "supplementary-only", - "reason": "Published and registered from an approved saved run outside the original campaign selection.", + "reason": "Published and registered as a supplementary Gallery example outside the original campaign selection.", "countedAsComplete": false }, { - "id": "animatelcm_sunlit_surf", + "id": "spandrel_x2_synthetic_gradient", "category": "supplementary-only", - "reason": "Published and registered from an approved saved run outside the original campaign selection.", + "countedAsComplete": false, + "reason": "Published and registered as a supplementary Gallery technical preview outside the original campaign selection." + }, + { + "id": "wan_21_t2v_13b_seed_vault", + "category": "amd-cloud", + "reason": "Full recipe deferred to AMD cloud; local complete-workflow campaign budget is two hours. No MoDiff user runtime restriction.", "countedAsComplete": false }, { - "id": "audioldm2_wind_through_high_pines", - "category": "supplementary-only", - "reason": "Published from the approved saved AudioLDM2 run, outside the original curated selection.", + "id": "wan_22_i2v_seed_vault", + "category": "amd-cloud", + "reason": "Full recipe deferred to AMD cloud; local complete-workflow campaign budget is two hours. No MoDiff user runtime restriction.", "countedAsComplete": false }, { - "id": "chroma_alpine_block_print", - "category": "supplementary-only", - "reason": "Published and registered from an approved saved run outside the original campaign selection.", + "id": "wan_22_ti2v_5b_seed_vault", + "category": "amd-cloud", + "reason": "Full recipe deferred to AMD cloud; local complete-workflow campaign budget is two hours. No MoDiff user runtime restriction.", "countedAsComplete": false }, { - "id": "chroma_copper_medallion_outpaint", - "category": "supplementary-only", - "reason": "Published and registered from an approved saved run outside the original campaign selection.", + "id": "wan_vace_animate_product_still", + "category": "planning-contract", + "reason": "Planning-only workflow lacks its separately required implementation or execution qualification.", "countedAsComplete": false }, { - "id": "chroma_restored_cobalt_backdrop", - "category": "supplementary-only", - "reason": "Published and registered from an approved saved run outside the original campaign selection.", + "id": "wan_vace_direct_text_to_video", + "category": "planning-contract", + "reason": "Planning-only workflow lacks its separately required implementation or execution qualification.", "countedAsComplete": false }, { - "id": "chroma_terracotta_and_blue", + "id": "wan_vace_masked_object_replace", + "category": "amd-cloud", + "reason": "Full recipe deferred to AMD cloud; local complete-workflow campaign budget is two hours. No MoDiff user runtime restriction.", + "countedAsComplete": false + }, + { + "id": "wan_vace_reference_motion", + "category": "planning-contract", + "reason": "Planning-only workflow lacks its separately required implementation or execution qualification.", + "countedAsComplete": false + }, + { + "id": "lcm_dawn_alpine_lake", "category": "supplementary-only", - "reason": "Published and registered from an approved saved run outside the original campaign selection.", + "reason": "Published and registered as a supplementary Gallery example outside the original campaign selection.", "countedAsComplete": false }, { - "id": "cogvideox_mossy_mountain_stream", + "id": "whisper_tiny_blue_cup_transcription", "category": "supplementary-only", - "reason": "Published and registered from an approved saved run outside the original campaign selection.", + "reason": "Published and registered as a supplementary Gallery example outside the original campaign selection.", "countedAsComplete": false }, { - "id": "cogvideox_red_tram_model_railway", + "id": "sana_sprint_monochrome_tiger", "category": "supplementary-only", - "reason": "Published and registered from an approved saved run outside the original campaign selection.", + "reason": "Published and registered as a supplementary Gallery example outside the original campaign selection.", "countedAsComplete": false }, { - "id": "cosmos3_super_text_to_image", + "id": "wav2vec2_station_announcement", "category": "supplementary-only", - "reason": "Now published and release-qualified from a reviewed AMD run. Filed outside the original curated preview selection.", + "reason": "Published and registered as a supplementary Gallery example outside the original campaign selection.", "countedAsComplete": false }, { @@ -635,57 +653,57 @@ "countedAsComplete": false }, { - "id": "flux_canny_clean_backdrop", + "id": "sdxl_clear_cobalt_backdrop", "category": "supplementary-only", - "reason": "Published and registered from an approved saved run outside the original campaign selection.", + "reason": "Published and registered from the approved saved run outside the original campaign selection.", "countedAsComplete": false }, { - "id": "flux_depth_marine_bow_repair", + "id": "sdxl_turbo_orange_caps", "category": "supplementary-only", - "reason": "Published and registered from an approved saved run outside the original campaign selection.", + "reason": "Published and registered from the approved saved run outside the original campaign selection.", "countedAsComplete": false }, { - "id": "flux_dev_forest_green_teapot", + "id": "whisper_small_an_open_door", "category": "supplementary-only", - "reason": "Published and registered from an approved saved run outside the original campaign selection.", + "reason": "Published and registered from the approved saved run outside the original campaign selection.", "countedAsComplete": false }, { - "id": "flux_klein_alpine_lake_panorama", + "id": "smolvlm_red_triangle", "category": "supplementary-only", - "reason": "Published and registered from an approved saved run outside the original campaign selection.", + "reason": "Published and registered from the approved saved run outside the original campaign selection.", "countedAsComplete": false }, { - "id": "flux_klein_open_glacial_lake", + "id": "kandinsky3_ginkgo_on_slate", "category": "supplementary-only", - "reason": "Published and registered from an approved saved run outside the original campaign selection.", + "reason": "Published and registered from the approved saved run outside the original campaign selection.", "countedAsComplete": false }, { - "id": "flux_kontext_bookshop_clear_glass", + "id": "chroma_restored_cobalt_backdrop", "category": "supplementary-only", "reason": "Published and registered from an approved saved run outside the original campaign selection.", "countedAsComplete": false }, { - "id": "flux_lora_ghibli_story", - "category": "rights-or-access", - "reason": "Pinned adapter terms are personal-use-only; no public output or new normal run is authorized by the overnight instruction.", + "id": "chroma_terracotta_and_blue", + "category": "supplementary-only", + "reason": "Published and registered from an approved saved run outside the original campaign selection.", "countedAsComplete": false }, { - "id": "flux1_dev_limestone_studio_scratch_repair", + "id": "cogvideox_mossy_mountain_stream", "category": "supplementary-only", "reason": "Published and registered from an approved saved run outside the original campaign selection.", "countedAsComplete": false }, { - "id": "flux2_dev_text_to_image", + "id": "cogvideox_red_tram_model_railway", "category": "supplementary-only", - "reason": "Now published and release-qualified from a reviewed AMD run. Filed outside the original curated preview selection.", + "reason": "Published and registered from an approved saved run outside the original campaign selection.", "countedAsComplete": false }, { @@ -707,279 +725,273 @@ "countedAsComplete": false }, { - "id": "joy_plus_lavender_on_limestone", + "id": "longcat_last_tram_at_dusk", "category": "supplementary-only", "reason": "Published and registered from an approved saved run outside the original campaign selection.", "countedAsComplete": false }, { - "id": "joy_plus_terracotta_on_limestone", + "id": "lumina2_larch_on_glacial_pond", "category": "supplementary-only", "reason": "Published and registered from an approved saved run outside the original campaign selection.", "countedAsComplete": false }, { - "id": "joyimage_base_cobalt_paper_band", + "id": "omnigen_tulips_after_rain", "category": "supplementary-only", "reason": "Published and registered from an approved saved run outside the original campaign selection.", "countedAsComplete": false }, { - "id": "joyimage_herbarium_rainy_porthole", + "id": "qwen_control_winter_cabin_blue_hour", "category": "supplementary-only", "reason": "Published and registered from an approved saved run outside the original campaign selection.", "countedAsComplete": false }, { - "id": "kandinsky3_ginkgo_on_slate", - "category": "supplementary-only", - "reason": "Published and registered from the approved saved run outside the original campaign selection.", - "countedAsComplete": false - }, - { - "id": "kandinsky3_smoked_glass_on_limestone", + "id": "qwen_layered_sunset_and_peaks", "category": "supplementary-only", "reason": "Published and registered from an approved saved run outside the original campaign selection.", "countedAsComplete": false }, { - "id": "kontext_wide_water_alpine_ridge", + "id": "sd15_canny_guided_green_glass", "category": "supplementary-only", "reason": "Published and registered from an approved saved run outside the original campaign selection.", "countedAsComplete": false }, { - "id": "latte_water_folding_over_slate", + "id": "sd15_pag_canny_guided_glass", "category": "supplementary-only", "reason": "Published and registered from an approved saved run outside the original campaign selection.", "countedAsComplete": false }, { - "id": "lcm_dawn_alpine_lake", + "id": "sd15_pag_cobalt_studio_repair", "category": "supplementary-only", - "reason": "Published and registered as a supplementary Gallery example outside the original campaign selection.", + "reason": "Published and registered from an approved saved run outside the original campaign selection.", "countedAsComplete": false }, { - "id": "longcat_clear_glass_at_the_bookshop", + "id": "sd15_pag_mountain_lake_watercolor", "category": "supplementary-only", "reason": "Published and registered from an approved saved run outside the original campaign selection.", "countedAsComplete": false }, { - "id": "longcat_florist_end_of_lane", + "id": "sdxl_canny_adapter_glass_study", "category": "supplementary-only", "reason": "Published and registered from an approved saved run outside the original campaign selection.", "countedAsComplete": false }, { - "id": "longcat_last_tram_at_dusk", + "id": "sdxl_control_inpaint_warm_plaster", "category": "supplementary-only", "reason": "Published and registered from an approved saved run outside the original campaign selection.", "countedAsComplete": false }, { - "id": "ltx_long_wind_and_tide_at_the_headland", + "id": "sdxl_controlnet_glass_study_on_slate", "category": "supplementary-only", "reason": "Published and registered from an approved saved run outside the original campaign selection.", "countedAsComplete": false }, { - "id": "ltx2_enamel_teapot_window_light", + "id": "sdxl_pix2pix_pale_amber_glass", "category": "supplementary-only", "reason": "Published and registered from an approved saved run outside the original campaign selection.", "countedAsComplete": false }, { - "id": "ltx2_glasshouse_drip", + "id": "wan_a14b_cloudbreak_over_the_ridges", "category": "supplementary-only", "reason": "Published and registered from an approved saved run outside the original campaign selection.", "countedAsComplete": false }, { - "id": "ltx2_kiln_at_first_light", + "id": "wan_flf_blue_hour_at_the_tram_shelter", "category": "supplementary-only", "reason": "Published and registered from an approved saved run outside the original campaign selection.", "countedAsComplete": false }, { - "id": "ltx2_moss_and_basalt", + "id": "zimage_golden_amber_glass", "category": "supplementary-only", "reason": "Published and registered from an approved saved run outside the original campaign selection.", "countedAsComplete": false }, { - "id": "ltx2_surf_below_the_breakwater", + "id": "joyimage_herbarium_rainy_porthole", "category": "supplementary-only", "reason": "Published and registered from an approved saved run outside the original campaign selection.", "countedAsComplete": false }, { - "id": "lumina2_larch_on_glacial_pond", + "id": "longcat_florist_end_of_lane", "category": "supplementary-only", "reason": "Published and registered from an approved saved run outside the original campaign selection.", "countedAsComplete": false }, { - "id": "marigold_depth_synthetic_ramp", + "id": "sana_tidal_pool_on_black_basalt", "category": "supplementary-only", - "reason": "Published and registered as a supplementary Gallery example outside the original campaign selection.", + "reason": "Published and registered from an approved saved run outside the original campaign selection.", "countedAsComplete": false }, { - "id": "minimax_h3_image_old_town_cat", + "id": "chroma_alpine_block_print", "category": "supplementary-only", - "reason": "Approved supplementary showcases are separate examples; this template is outside the original campaign selection.", + "reason": "Published and registered from an approved saved run outside the original campaign selection.", "countedAsComplete": false }, { - "id": "mochi_surf_over_dark_pebbles", + "id": "flux1_dev_limestone_studio_scratch_repair", "category": "supplementary-only", "reason": "Published and registered from an approved saved run outside the original campaign selection.", "countedAsComplete": false }, { - "id": "omnigen_cobalt_against_soft_apricot", + "id": "flux_klein_alpine_lake_panorama", "category": "supplementary-only", "reason": "Published and registered from an approved saved run outside the original campaign selection.", "countedAsComplete": false }, { - "id": "omnigen_red_enamel_folded_linen", + "id": "flux_klein_open_glacial_lake", "category": "supplementary-only", "reason": "Published and registered from an approved saved run outside the original campaign selection.", "countedAsComplete": false }, { - "id": "omnigen_tulips_after_rain", + "id": "joy_plus_lavender_on_limestone", "category": "supplementary-only", "reason": "Published and registered from an approved saved run outside the original campaign selection.", "countedAsComplete": false }, { - "id": "qwen_2511_pale_amber_on_limestone", + "id": "joyimage_base_cobalt_paper_band", "category": "supplementary-only", "reason": "Published and registered from an approved saved run outside the original campaign selection.", "countedAsComplete": false }, { - "id": "qwen_2511_terracotta_material_transfer", + "id": "kandinsky3_smoked_glass_on_limestone", "category": "supplementary-only", "reason": "Published and registered from an approved saved run outside the original campaign selection.", "countedAsComplete": false }, { - "id": "qwen_2512_cobalt_backdrop_repair", + "id": "kontext_wide_water_alpine_ridge", "category": "supplementary-only", "reason": "Published and registered from an approved saved run outside the original campaign selection.", "countedAsComplete": false }, { - "id": "qwen_bookshop_gouache", + "id": "longcat_clear_glass_at_the_bookshop", "category": "supplementary-only", "reason": "Published and registered from an approved saved run outside the original campaign selection.", "countedAsComplete": false }, { - "id": "qwen_cobalt_on_charcoal_slate", + "id": "omnigen_cobalt_against_soft_apricot", "category": "supplementary-only", "reason": "Published and registered from an approved saved run outside the original campaign selection.", "countedAsComplete": false }, { - "id": "qwen_control_winter_cabin_blue_hour", + "id": "qwen_2511_pale_amber_on_limestone", "category": "supplementary-only", "reason": "Published and registered from an approved saved run outside the original campaign selection.", "countedAsComplete": false }, { - "id": "qwen_layered_sunset_and_peaks", + "id": "qwen_2512_cobalt_backdrop_repair", "category": "supplementary-only", "reason": "Published and registered from an approved saved run outside the original campaign selection.", "countedAsComplete": false }, { - "id": "sana_i2v_blue_hour_above_rice_terraces", + "id": "qwen_bookshop_gouache", "category": "supplementary-only", "reason": "Published and registered from an approved saved run outside the original campaign selection.", "countedAsComplete": false }, { - "id": "sana_sprint_monochrome_tiger", + "id": "qwen_cobalt_on_charcoal_slate", "category": "supplementary-only", - "reason": "Published and registered as a supplementary Gallery example outside the original campaign selection.", + "reason": "Published and registered from an approved saved run outside the original campaign selection.", "countedAsComplete": false }, { - "id": "sana_tidal_pool_on_black_basalt", + "id": "sdxl_blue_glass_on_linen", "category": "supplementary-only", "reason": "Published and registered from an approved saved run outside the original campaign selection.", "countedAsComplete": false }, { - "id": "sana_video_water_terraces_before_sunrise", + "id": "sdxl_pag_cobalt_wall", "category": "supplementary-only", "reason": "Published and registered from an approved saved run outside the original campaign selection.", "countedAsComplete": false }, { - "id": "sd15_canny_guided_green_glass", + "id": "zimage_rocky_glacial_shores", "category": "supplementary-only", "reason": "Published and registered from an approved saved run outside the original campaign selection.", "countedAsComplete": false }, { - "id": "sd15_control_cobalt_handmade_paper", + "id": "zimage_seamless_cobalt_backdrop", "category": "supplementary-only", "reason": "Published and registered from an approved saved run outside the original campaign selection.", "countedAsComplete": false }, { - "id": "sd15_control_cobalt_studio_wall_repair", + "id": "flux_canny_clean_backdrop", "category": "supplementary-only", "reason": "Published and registered from an approved saved run outside the original campaign selection.", "countedAsComplete": false }, { - "id": "sd15_pag_canny_guided_glass", + "id": "flux_depth_marine_bow_repair", "category": "supplementary-only", "reason": "Published and registered from an approved saved run outside the original campaign selection.", "countedAsComplete": false }, { - "id": "sd15_pag_cobalt_studio_repair", + "id": "joy_plus_terracotta_on_limestone", "category": "supplementary-only", "reason": "Published and registered from an approved saved run outside the original campaign selection.", "countedAsComplete": false }, { - "id": "sd15_pag_control_wall_repair", + "id": "omnigen_red_enamel_folded_linen", "category": "supplementary-only", "reason": "Published and registered from an approved saved run outside the original campaign selection.", "countedAsComplete": false }, { - "id": "sd15_pag_mountain_lake_watercolor", + "id": "qwen_2511_terracotta_material_transfer", "category": "supplementary-only", "reason": "Published and registered from an approved saved run outside the original campaign selection.", "countedAsComplete": false }, { - "id": "sdxl_blue_glass_on_linen", + "id": "sd15_control_cobalt_handmade_paper", "category": "supplementary-only", "reason": "Published and registered from an approved saved run outside the original campaign selection.", "countedAsComplete": false }, { - "id": "sdxl_canny_adapter_glass_study", + "id": "sd15_control_cobalt_studio_wall_repair", "category": "supplementary-only", "reason": "Published and registered from an approved saved run outside the original campaign selection.", "countedAsComplete": false }, { - "id": "sdxl_clear_cobalt_backdrop", + "id": "sd15_pag_control_wall_repair", "category": "supplementary-only", - "reason": "Published and registered from the approved saved run outside the original campaign selection.", + "reason": "Published and registered from an approved saved run outside the original campaign selection.", "countedAsComplete": false }, { @@ -989,63 +1001,57 @@ "countedAsComplete": false }, { - "id": "sdxl_control_inpaint_warm_plaster", + "id": "sdxl_pag_snow_cabin", "category": "supplementary-only", "reason": "Published and registered from an approved saved run outside the original campaign selection.", "countedAsComplete": false }, { - "id": "sdxl_controlnet_glass_study_on_slate", + "id": "allegro_basalt_shore_at_dawn", "category": "supplementary-only", "reason": "Published and registered from an approved saved run outside the original campaign selection.", "countedAsComplete": false }, { - "id": "sdxl_pag_cobalt_wall", + "id": "animatediff_candlelight_behind_amber_glass", "category": "supplementary-only", "reason": "Published and registered from an approved saved run outside the original campaign selection.", "countedAsComplete": false }, { - "id": "sdxl_pag_lighthouse_in_graphite", + "id": "animatediff_ivory_balloon_blue_mountains", "category": "supplementary-only", "reason": "Published and registered from an approved saved run outside the original campaign selection.", "countedAsComplete": false }, { - "id": "sdxl_pag_snow_cabin", + "id": "animatediff_red_tram_in_watercolor", "category": "supplementary-only", "reason": "Published and registered from an approved saved run outside the original campaign selection.", "countedAsComplete": false }, { - "id": "sdxl_pag_two_tier_cobalt_glass", + "id": "animatediff_red_tram_through_snow", "category": "supplementary-only", "reason": "Published and registered from an approved saved run outside the original campaign selection.", "countedAsComplete": false }, { - "id": "sdxl_pix2pix_pale_amber_glass", + "id": "mochi_surf_over_dark_pebbles", "category": "supplementary-only", "reason": "Published and registered from an approved saved run outside the original campaign selection.", "countedAsComplete": false }, { - "id": "sdxl_turbo_orange_caps", - "category": "supplementary-only", - "reason": "Published and registered from the approved saved run outside the original campaign selection.", - "countedAsComplete": false - }, - { - "id": "smollm2_rain_gauge", + "id": "sana_i2v_blue_hour_above_rice_terraces", "category": "supplementary-only", - "reason": "Published and registered as a supplementary Gallery example outside the original campaign selection.", + "reason": "Published and registered from an approved saved run outside the original campaign selection.", "countedAsComplete": false }, { - "id": "smolvlm_red_triangle", + "id": "sana_video_water_terraces_before_sunrise", "category": "supplementary-only", - "reason": "Published and registered from the approved saved run outside the original campaign selection.", + "reason": "Published and registered from an approved saved run outside the original campaign selection.", "countedAsComplete": false }, { @@ -1055,137 +1061,131 @@ "countedAsComplete": false }, { - "id": "spandrel_x2_synthetic_gradient", + "id": "wan_a14b_wind_across_pond", "category": "supplementary-only", - "countedAsComplete": false, - "reason": "Published and registered as a supplementary Gallery technical preview outside the original campaign selection." - }, - { - "id": "wan_21_t2v_13b_seed_vault", - "category": "amd-cloud", - "reason": "Full recipe deferred to AMD cloud; local complete-workflow campaign budget is two hours. No MoDiff user runtime restriction.", + "reason": "Published and registered from an approved saved run outside the original campaign selection.", "countedAsComplete": false }, { - "id": "wan_22_i2v_seed_vault", - "category": "amd-cloud", - "reason": "Full recipe deferred to AMD cloud; local complete-workflow campaign budget is two hours. No MoDiff user runtime restriction.", + "id": "wan_ti2v_subway_musician", + "category": "supplementary-only", + "reason": "Published and registered from an approved saved run outside the original campaign selection.", "countedAsComplete": false }, { - "id": "wan_22_ti2v_5b_seed_vault", - "category": "amd-cloud", - "reason": "Full recipe deferred to AMD cloud; local complete-workflow campaign budget is two hours. No MoDiff user runtime restriction.", + "id": "wan_vace_amber_rings_after_rain", + "category": "supplementary-only", + "reason": "Published and registered from an approved saved run outside the original campaign selection.", "countedAsComplete": false }, { - "id": "wan_a14b_cloudbreak_over_the_ridges", + "id": "wan_animate_glasshouse_keeper", "category": "supplementary-only", "reason": "Published and registered from an approved saved run outside the original campaign selection.", "countedAsComplete": false }, { - "id": "wan_a14b_wind_across_pond", + "id": "animatediff_pag_snowmelt_over_river_stones", "category": "supplementary-only", "reason": "Published and registered from an approved saved run outside the original campaign selection.", "countedAsComplete": false }, { - "id": "wan_animate_glasshouse_keeper", + "id": "animatelcm_sunlit_surf", "category": "supplementary-only", "reason": "Published and registered from an approved saved run outside the original campaign selection.", "countedAsComplete": false }, { - "id": "wan_animate_signal_through_the_rain", + "id": "chroma_copper_medallion_outpaint", "category": "supplementary-only", "reason": "Published and registered from an approved saved run outside the original campaign selection.", "countedAsComplete": false }, { - "id": "wan_flf_blue_hour_at_the_tram_shelter", + "id": "flux_dev_forest_green_teapot", "category": "supplementary-only", "reason": "Published and registered from an approved saved run outside the original campaign selection.", "countedAsComplete": false }, { - "id": "wan_ti2v_subway_musician", + "id": "flux_kontext_bookshop_clear_glass", "category": "supplementary-only", "reason": "Published and registered from an approved saved run outside the original campaign selection.", "countedAsComplete": false }, { - "id": "wan_vace_amber_glass_stabilized", + "id": "latte_water_folding_over_slate", "category": "supplementary-only", "reason": "Published and registered from an approved saved run outside the original campaign selection.", "countedAsComplete": false }, { - "id": "wan_vace_amber_rings_after_rain", + "id": "ltx2_enamel_teapot_window_light", "category": "supplementary-only", "reason": "Published and registered from an approved saved run outside the original campaign selection.", "countedAsComplete": false }, { - "id": "wan_vace_animate_product_still", - "category": "planning-contract", - "reason": "Planning-only workflow lacks its separately required implementation or execution qualification.", + "id": "ltx2_glasshouse_drip", + "category": "supplementary-only", + "reason": "Published and registered from an approved saved run outside the original campaign selection.", "countedAsComplete": false }, { - "id": "wan_vace_direct_text_to_video", - "category": "planning-contract", - "reason": "Planning-only workflow lacks its separately required implementation or execution qualification.", + "id": "ltx2_kiln_at_first_light", + "category": "supplementary-only", + "reason": "Published and registered from an approved saved run outside the original campaign selection.", "countedAsComplete": false }, { - "id": "wan_vace_masked_object_replace", - "category": "amd-cloud", - "reason": "Full recipe deferred to AMD cloud; local complete-workflow campaign budget is two hours. No MoDiff user runtime restriction.", + "id": "ltx2_moss_and_basalt", + "category": "supplementary-only", + "reason": "Published and registered from an approved saved run outside the original campaign selection.", "countedAsComplete": false }, { - "id": "wan_vace_reference_motion", - "category": "planning-contract", - "reason": "Planning-only workflow lacks its separately required implementation or execution qualification.", + "id": "ltx2_surf_below_the_breakwater", + "category": "supplementary-only", + "reason": "Published and registered from an approved saved run outside the original campaign selection.", "countedAsComplete": false }, { - "id": "wav2vec2_station_announcement", + "id": "ltx_long_wind_and_tide_at_the_headland", "category": "supplementary-only", - "reason": "Published and registered as a supplementary Gallery example outside the original campaign selection.", + "reason": "Published and registered from an approved saved run outside the original campaign selection.", "countedAsComplete": false }, { - "id": "whisper_small_an_open_door", + "id": "sdxl_pag_lighthouse_in_graphite", "category": "supplementary-only", - "reason": "Published and registered from the approved saved run outside the original campaign selection.", + "reason": "Published and registered from an approved saved run outside the original campaign selection.", "countedAsComplete": false }, { - "id": "whisper_tiny_blue_cup_transcription", + "id": "sdxl_pag_two_tier_cobalt_glass", "category": "supplementary-only", - "reason": "Published and registered as a supplementary Gallery example outside the original campaign selection.", + "reason": "Published and registered from an approved saved run outside the original campaign selection.", "countedAsComplete": false }, { - "id": "zimage_golden_amber_glass", + "id": "wan_animate_signal_through_the_rain", "category": "supplementary-only", "reason": "Published and registered from an approved saved run outside the original campaign selection.", "countedAsComplete": false }, { - "id": "zimage_rocky_glacial_shores", + "id": "wan_vace_amber_glass_stabilized", "category": "supplementary-only", "reason": "Published and registered from an approved saved run outside the original campaign selection.", "countedAsComplete": false }, { - "id": "zimage_seamless_cobalt_backdrop", + "id": "audioldm2_wind_through_high_pines", "category": "supplementary-only", - "reason": "Published and registered from an approved saved run outside the original campaign selection.", + "reason": "Published from the approved saved AudioLDM2 run, outside the original curated selection.", "countedAsComplete": false } ], - "profileHash": "sha256:canonical-json:ebc60cb923424daa8a097f6c16e90e9c6c8987deadd94b0fbf2f3003885b99a9" + "profileHash": "sha256:canonical-json:5c3b0a2d2f94f37f99b9147fb7930b4052bad6f761c6a1fdcfc9f5197c79abc5" } From ca3bf4f3db96e5feb7f7456068e26d3213bd880f Mon Sep 17 00:00:00 2001 From: Sourav Das Date: Wed, 25 Nov 2026 22:59:03 +0530 Subject: [PATCH 396/440] Validate saved Stability AI audio and video execution records --- scripts/native-variant-run-evidence.mjs | 15 ++++-- scripts/private-image-edit-evidence.mjs | 4 +- scripts/private-image-edit-evidence.test.mjs | 6 +-- scripts/prompt-variant-evidence.mjs | 54 ++++++++++++++++---- scripts/prompt-variant-evidence.test.mjs | 24 +++++++++ scripts/release-contract-core.mjs | 2 + scripts/retained-gallery-provenance.mjs | 2 +- scripts/saved-control-image-evidence.mjs | 4 +- 8 files changed, 89 insertions(+), 22 deletions(-) diff --git a/scripts/native-variant-run-evidence.mjs b/scripts/native-variant-run-evidence.mjs index c09a31fe..e804fae9 100644 --- a/scripts/native-variant-run-evidence.mjs +++ b/scripts/native-variant-run-evidence.mjs @@ -164,11 +164,11 @@ export function validateNativeVariantRun({ return { task, output, hints }; } -// Some image output stores attach the API snapshot after the completed task +// The output store can attach its API snapshot after the completed task // GET returns. Compare that original response and the late native record // before applying the ordinary complete-output validation to the late record. -export function validateLateNativeImageVariantRun({ run, persistedOutput, ...options }) { - assert.equal(options.displayType, 'image'); +export function validateLateNativeSingleAssetRun({ run, persistedOutput, ...options }) { + assert.ok(['audio', 'image'].includes(options.displayType)); assert.equal(run.outputs.length, 1); const [early] = run.outputs; assert.equal(early.apiGraphSnapshot, undefined, 'Unexpected already captured early API snapshot.'); @@ -188,7 +188,14 @@ export function validateLateNativeImageVariantRun({ run, persistedOutput, ...opt assert.equal(lateDuration, undefined); assert.equal(earlyLabel, undefined); assert.equal(lateLabel, 'Item 1'); - same(earlyItem, lateItem, 'Native image identity changed during persistence.'); + if (options.displayType === 'audio') { + const { height, width, ...audioItem } = earlyItem; + assert.equal(height, null); + assert.equal(width, null); + same(audioItem, lateItem, 'Native audio identity changed during persistence.'); + } else { + same(earlyItem, lateItem, 'Native image identity changed during persistence.'); + } const provenanceAt = (row, media) => { const { capturedAt, exactTemplateCompatible, promptSettingsHash, mediaItems, ...identity } = row.backendProvenance; assert.ok(Number.isSafeInteger(capturedAt) && capturedAt > 0); diff --git a/scripts/private-image-edit-evidence.mjs b/scripts/private-image-edit-evidence.mjs index b159af77..e241029a 100644 --- a/scripts/private-image-edit-evidence.mjs +++ b/scripts/private-image-edit-evidence.mjs @@ -15,7 +15,7 @@ import { } from './live-proof-provenance.mjs'; import { bindRetainedCpuFloat32Recipe, - validateLateNativeImageVariantRun, + validateLateNativeSingleAssetRun, validateNativeVariantOutput, validateNativeVariantRun, validateUnmodifiedExpertPreparation, @@ -1305,7 +1305,7 @@ export async function readPrivateImageEditEvidence({ clientRoot, manifest, graph same(run.outputs[0], persistedOutput, 'Saved native output differs from the at-close output store.'); } const validateRun = - hasNativeSnapshot || route.serverRetainedOutput ? validateNativeVariantRun : validateLateNativeImageVariantRun; + hasNativeSnapshot || route.serverRetainedOutput ? validateNativeVariantRun : validateLateNativeSingleAssetRun; const { task, output, hints } = validateRun(runOptions); same(hints.workflowSnapshot.studioForm, output.formSnapshot); const alternate = diff --git a/scripts/private-image-edit-evidence.test.mjs b/scripts/private-image-edit-evidence.test.mjs index 1d4c8ed1..4da0f063 100644 --- a/scripts/private-image-edit-evidence.test.mjs +++ b/scripts/private-image-edit-evidence.test.mjs @@ -6,7 +6,7 @@ import { basename, dirname, join, resolve } from 'node:path'; import test from 'node:test'; import { fileURLToPath } from 'node:url'; import { canonicalJsonHash } from './canonical-json.mjs'; -import { validateLateNativeImageVariantRun, validateNativeVariantRun } from './native-variant-run-evidence.mjs'; +import { validateLateNativeSingleAssetRun, validateNativeVariantRun } from './native-variant-run-evidence.mjs'; import { readCanonicalWorkflowEvidence } from './release-contract-core.mjs'; import { bindPrivateImageEditGraph, @@ -126,7 +126,7 @@ test('strict output verification accepts a separately joined late native image s const options = archivedImage(); const before = structuredClone(options); assert.throws(() => validateNativeVariantRun(options), /native output apiGraphSnapshot differs/u); - const { task, output } = validateLateNativeImageVariantRun(options); + const { task, output } = validateLateNativeSingleAssetRun(options); assert.equal(task.task_id, 'native-task'); assert.equal(output.apiGraphSnapshot.sid, 'native-session'); assert.deepEqual(options, before); @@ -201,7 +201,7 @@ test('the late native image join rejects a changed task, capture, graph or outpu for (const [mutate, error] of scenarios) { const options = archivedImage(); mutate(options); - assert.throws(() => validateLateNativeImageVariantRun(options), error); + assert.throws(() => validateLateNativeSingleAssetRun(options), error); } }); diff --git a/scripts/prompt-variant-evidence.mjs b/scripts/prompt-variant-evidence.mjs index 7948f346..9b6f0206 100644 --- a/scripts/prompt-variant-evidence.mjs +++ b/scripts/prompt-variant-evidence.mjs @@ -17,7 +17,7 @@ import { } from './live-proof-provenance.mjs'; import { bindRetainedCpuFloat32Recipe, - validateLateNativeImageVariantRun, + validateLateNativeSingleAssetRun, validateNativeVariantOutput, validateNativeVariantRun, validateUnmodifiedExpertPreparation, @@ -189,6 +189,21 @@ const audioLdmRoute = { ), }; +const stableAudioRoute = { + ...audioLdmRoute, + format: 'modiff.private.stable-audio-prompt-variant.v1', + workflowId: 'StableAudioPipeline:text_to_audio', + modelType: 'StableAudioPipeline', + previousExpertFamily: null, + platform: /^Linux-/u, + backend: 'rocm', + contentType: 'audio/x-wav', + modelRepo: 'stabilityai/stable-audio-open-1.0', + modelRevision: 'f21265c1e2710b3bd2386596943f0007f55f802e', + sourceFingerprint: 'sha256:backend-source-v1:bf8ee3b3df08410b5f041279f84ca3b9e0bbb7248f0e73fbe4c0ecb718727b6c', + lateNativeSnapshot: true, +}; + const wanA14BRoute = { format: 'modiff.private.wan-a14b-video-prompt-variant.v1', workflowId: 'Wan22Pipeline:text_to_video', @@ -593,6 +608,20 @@ const sanaOpeningImageRoute = { chain: [['source', 'modules.Image', 'Load', ''], ...sanaVideoRoute.chain], }; +const stableVideoRoute = { + ...sanaOpeningImageRoute, + format: 'modiff.private.stable-video-opening-image-variant.v1', + workflowId: 'StableVideoDiffusionPipeline:image_to_video', + modelType: 'StableVideoDiffusionPipeline', + previousExpertFamily: 'StableVideoDiffusionPipeline', + modelRepo: 'stabilityai/stable-video-diffusion-img2vid-xt-1-1', + modelRevision: '043843887ccd51926e3efed36270444a838e7861', + sourceFingerprint: 'sha256:backend-source-v1:b29a5b0d317aaa781ae2a5205b46b518eea5a3d68a214eb0968dba4ac0660af7', + imageOnly: true, + bindNegativePrompt: false, + retainedImageLoadFields: false, +}; + const mochiVideoRoute = { ...wanA14BRoute, format: 'modiff.private.mochi-video-prompt-variant.v1', @@ -823,7 +852,9 @@ export function bindPromptVariant( assert.ok(!promptSlot.sourceId, 'The authored prompt must be an unconnected literal.'); const submittedOwners = owners(profile, output); const prompt = submittedOwners.generator.node.params.prompt.value; - assert.ok(typeof prompt === 'string' && prompt.length <= 4096 && prompt.trim() === prompt && prompt.length > 0); + assert.ok(typeof prompt === 'string' && prompt.length <= 4096 && prompt.trim() === prompt); + if (profile.imageOnly) assert.equal(prompt, promptSlot.value); + else assert.ok(prompt.length > 0); assert.ok(!/[\u0000-\u001f\u007f]/u.test(prompt), 'Prompt exercise contains an unsupported control character.'); promptSlot.value = prompt; let negativePrompt; @@ -976,7 +1007,7 @@ function validateConsumedPromptVariant(profile, bound, output, suppliedImage) { })) expected[name] = { value, source: 'literal' }; } - if (profile === audioLdmRoute && id === bound.generator.id) { + if ([audioLdmRoute, stableAudioRoute].includes(profile) && id === bound.generator.id) { assert.equal(node.params.negative_prompt.value, ''); expected.negative_prompt = { value: null, source: 'literal' }; expected.output_type = { value: 'pt', source: 'literal' }; @@ -1410,6 +1441,7 @@ export async function readPromptVariantEvidence({ clientRoot, manifest, graph, a videoRoute, audioRoute, audioLdmRoute, + stableAudioRoute, wanA14BRoute, wanA14BOpeningRoute, wanSubwayRoute, @@ -1426,6 +1458,7 @@ export async function readPromptVariantEvidence({ clientRoot, manifest, graph, a allegroRoute, sanaVideoRoute, sanaOpeningImageRoute, + stableVideoRoute, mochiVideoRoute, animateDiffVideoRoute, animateLcmVideoRoute, @@ -1439,7 +1472,7 @@ export async function readPromptVariantEvidence({ clientRoot, manifest, graph, a profile.nativeJointAudio || profile.bindsVideoGuide || Boolean(profile.videoConditioners)); - const generatedAudio = profile === audioRoute || profile === audioLdmRoute; + const generatedAudio = [audioRoute, audioLdmRoute, stableAudioRoute].includes(profile); const requiresOriginalRequest = imageRoute !== undefined || profile === janusTextRoute || @@ -1569,7 +1602,7 @@ export async function readPromptVariantEvidence({ clientRoot, manifest, graph, a }, } : {}), - ...(profile === videoRoute || profile === audioRoute + ...(profile === videoRoute || profile === audioRoute || profile === stableAudioRoute ? { validatePreparation: (preparation) => validateUnmodifiedExpertPreparation(preparation, target.modelType) } : {}), ...(profile.nativeJointAudio && { @@ -1595,7 +1628,7 @@ export async function readPromptVariantEvidence({ clientRoot, manifest, graph, a const store = json(evidence.persistedOutputs); assert.equal(store.outputs.length, 1); const [persistedOutput] = store.outputs; - validatedRun = validateLateNativeImageVariantRun({ ...runOptions, persistedOutput }); + validatedRun = validateLateNativeSingleAssetRun({ ...runOptions, persistedOutput }); accountingRun = { ...run, outputs: [persistedOutput] }; } else { validatedRun = validateNativeVariantRun(runOptions); @@ -1744,7 +1777,8 @@ export async function readPromptVariantEvidence({ clientRoot, manifest, graph, a task, ) : measurement.peakAllocatedBytes; - const mediaLimit = (profile.soundtrack || profile.nativeJointAudio ? 64 : 2) * 1024 * 1024; + const mediaLimit = + (profile.soundtrack || profile.nativeJointAudio ? 64 : profile === stableAudioRoute ? 8 : 2) * 1024 * 1024; const media = read(outputRef.file, mediaLimit); const item = validateNativeVariantOutput({ output, @@ -1787,10 +1821,10 @@ export async function readPromptVariantEvidence({ clientRoot, manifest, graph, a const decoded = await decodedMediaHash(media.file, 'audio'); const rate = bound.generator.node.params.sample_rate.value; const duration = bound.generator.node.params.audio_duration.value; - assert.equal(rate, profile === audioRoute ? 24000 : 16000); - assert.equal(duration, profile === audioRoute ? 5 : 10); + assert.equal(rate, profile === stableAudioRoute ? 48000 : profile === audioRoute ? 24000 : 16000); + assert.equal(duration, profile === stableAudioRoute ? 30 : profile === audioRoute ? 5 : 10); assert.equal(decoded.sourceSampleRate, rate); - assert.equal(decoded.channels, 1); + assert.equal(decoded.channels, profile === stableAudioRoute ? 2 : 1); assert.equal(decoded.clippedSampleRatio, 0); assert.ok(decoded.durationSeconds >= duration - 0.1 && decoded.durationSeconds <= duration); assert.ok(decoded.peakAmplitude > 0.05 && decoded.silenceRatio < 0.75); diff --git a/scripts/prompt-variant-evidence.test.mjs b/scripts/prompt-variant-evidence.test.mjs index d55587cc..9c5b2808 100644 --- a/scripts/prompt-variant-evidence.test.mjs +++ b/scripts/prompt-variant-evidence.test.mjs @@ -25,6 +25,30 @@ const clientRoot = fileURLToPath(new URL('..', import.meta.url)); const backendRoot = resolve(process.env.MODIFF_BACKEND_DIR ?? join(clientRoot, '../MoDiff')); const digest = (value) => createHash('sha256').update(value).digest('hex'); +for (const [workflowId, environment, proofKind, output] of [ + [ + 'StableAudioPipeline:text_to_audio', + 'MODIFF_STABLE_AUDIO_EVIDENCE', + 'real_backend_prompt_bound_model_variant', + { kind: 'audio', durationSeconds: 30, sampleRate: 48000, channels: 2 }, + ], + [ + 'StableVideoDiffusionPipeline:image_to_video', + 'MODIFF_STABLE_VIDEO_EVIDENCE', + 'real_backend_input_bound_model_variant', + { kind: 'video', width: 1024, height: 576, fps: 7, frames: 25 }, + ], +]) { + const evidencePath = process.env[environment]; + test(`original ${workflowId} capture binds the native output`, { skip: !evidencePath }, async () => { + const { receipt } = await readCanonicalWorkflowEvidence({ clientRoot, backendRoot, workflowId, evidencePath }); + assert.equal(receipt.proofKind, proofKind); + for (const [key, value] of Object.entries(output)) assert.equal(receipt.decodedOutput[key], value); + assert.ok(Object.values(receipt.qualificationClaims).every((claim) => claim === false)); + if (output.kind === 'video') assert.match(receipt.inputBinding.sha256, /^[a-f0-9]{64}$/u); + }); +} + test('joint audio-video evidence keeps native LTX audio separate from the fitted soundtrack contract', () => { const shape = { width: 768, height: 512, frames: 81, fps: 24 }; const item = { diff --git a/scripts/release-contract-core.mjs b/scripts/release-contract-core.mjs index 9dcc2c11..d4b2d16a 100644 --- a/scripts/release-contract-core.mjs +++ b/scripts/release-contract-core.mjs @@ -936,6 +936,8 @@ export async function readCanonicalWorkflowEvidence({ clientRoot, backendRoot, w 'modiff.private.shap-e-prompt-variant.v1', 'modiff.private.longcat-audio-prompt-variant.v1', 'modiff.private.audioldm2-prompt-variant.v1', + 'modiff.private.stable-audio-prompt-variant.v1', + 'modiff.private.stable-video-opening-image-variant.v1', 'modiff.private.wan-a14b-video-prompt-variant.v1', 'modiff.private.wan-a14b-opening-image-variant.v1', 'modiff.private.wan-subway-soundtrack-variant.v1', diff --git a/scripts/retained-gallery-provenance.mjs b/scripts/retained-gallery-provenance.mjs index c3e2fa6d..44fceea2 100644 --- a/scripts/retained-gallery-provenance.mjs +++ b/scripts/retained-gallery-provenance.mjs @@ -14,7 +14,7 @@ export function retainedGalleryFileLimit(path) { // used by the recorded run. The registered size and hash are still checked. if (/^\/?template-gallery\/inputs\/[a-z0-9_-]+\.before\.mp4$/u.test(path)) return 128 * 1024 * 1024; if (path.endsWith('.mp4')) return 64 * 1024 * 1024; - if (/\.(png|webp)$/u.test(path)) return 8 * 1024 * 1024; + if (/\.(png|webp|wav)$/u.test(path)) return 8 * 1024 * 1024; return 2 * 1024 * 1024; } diff --git a/scripts/saved-control-image-evidence.mjs b/scripts/saved-control-image-evidence.mjs index 2c284cbf..0eac5a01 100644 --- a/scripts/saved-control-image-evidence.mjs +++ b/scripts/saved-control-image-evidence.mjs @@ -17,7 +17,7 @@ import { verifyRetainedHostImageFiles, } from './native-image-load-evidence.mjs'; import { - validateLateNativeImageVariantRun, + validateLateNativeSingleAssetRun, validateNativeVariantOutput, validateNativeVariantRun, validateUnmodifiedExpertPreparation, @@ -456,7 +456,7 @@ export async function readSavedControlImageEvidence({ const nativeStore = route.integratedControl ? read(evidence.persistedOutput) : undefined; const stored = nativeStore ? JSON.parse(nativeStore.bytes).outputs : undefined; if (stored) assert.equal(stored.length, 1); - const validate = route.lateOutput ? validateLateNativeImageVariantRun : validateNativeVariantRun; + const validate = route.lateOutput ? validateLateNativeSingleAssetRun : validateNativeVariantRun; const { task, output, hints } = validate({ target, outputNodeId: actual.preview, From 64842948920b8cda9566f4b9be5e965d4fd8226e Mon Sep 17 00:00:00 2001 From: Sourav Das Date: Wed, 25 Nov 2026 23:04:25 +0530 Subject: [PATCH 397/440] Register both approved Stability AI examples with exact run settings --- config/release-showcase-scope.v1.json | 16 +- .../retained-gallery-approved-batch.v1.json | 22 + ...etained-gallery-authoring-archives.v1.json | 10 + ...etained-gallery-batch-recipe-locks.v1.json | 28 + config/template-asset-rights.v1.json | 1151 ++++++++--------- config/template-assets.v1.json | 122 +- public/template-gallery/manifest.json | 62 + scripts/bundle-budget.mjs | 4 + scripts/retained-gallery-templates.test.mjs | 6 + src/stores/useStudioStore.ts | 3 + src/studio/retainedGalleryApprovedBatch.ts | 157 +++ src/studio/templateAssetSource.json | 6 +- src/studio/types.ts | 5 +- 13 files changed, 961 insertions(+), 631 deletions(-) diff --git a/config/release-showcase-scope.v1.json b/config/release-showcase-scope.v1.json index e2cbf3d0..82d50c1e 100644 --- a/config/release-showcase-scope.v1.json +++ b/config/release-showcase-scope.v1.json @@ -4,7 +4,7 @@ "name": "Registered showcase preview without AMD-cloud backlog", "dataset": { "repository": "sourav-das/modiff-template-gallery", - "revision": "39306b96a08248f4d3b413833d51992227f3a31d" + "revision": "e39500e807b448bdb0df4e8cdc1cccbe3ff46f4a" }, "originalCampaign": { "total": 89, @@ -1185,7 +1185,19 @@ "category": "supplementary-only", "reason": "Published from the approved saved AudioLDM2 run, outside the original curated selection.", "countedAsComplete": false + }, + { + "id": "stable_audio_glass_roof_rain", + "category": "supplementary-only", + "reason": "Published from the approved AMD run, outside the original curated selection.", + "countedAsComplete": false + }, + { + "id": "stable_video_lighthouse_headland", + "category": "supplementary-only", + "reason": "Published from the approved AMD run, outside the original curated selection.", + "countedAsComplete": false } ], - "profileHash": "sha256:canonical-json:5c3b0a2d2f94f37f99b9147fb7930b4052bad6f761c6a1fdcfc9f5197c79abc5" + "profileHash": "sha256:canonical-json:ba3051846bbff869e582a1cdd71fa2d395baed58ef2adbdb61a6babed1c5bb72" } diff --git a/config/retained-gallery-approved-batch.v1.json b/config/retained-gallery-approved-batch.v1.json index 85231a54..733a0750 100644 --- a/config/retained-gallery-approved-batch.v1.json +++ b/config/retained-gallery-approved-batch.v1.json @@ -1405,6 +1405,28 @@ }, "beforeExtension": "mp4" }, + "stable_audio_glass_roof_rain": { + "associationSha256": "42b85d8e9a58a41900016810baa77e17dc62c473d42faa18186aa5f0e1e98822", + "backendSourceFingerprint": "sha256:backend-source-v1:bf8ee3b3df08410b5f041279f84ca3b9e0bbb7248f0e73fbe4c0ecb718727b6c", + "backendContractFingerprint": "sha256:backend-contract-v1:92104623eb3205adaa23cccc593a604da25d7f696e79cd9b947b553b92da39f0", + "templateRevisionHash": "98b2b306a1e1b6198b80157de33d35a146532b246d2bdd4effb1bbc10415014f", + "capturedAt": "2026-11-25T17:07:08.451Z", + "outputExtension": "wav", + "primaryModelRepo": "stabilityai/stable-audio-open-1.0" + }, + "stable_video_lighthouse_headland": { + "associationSha256": "8e3d467da8ae4717532674d6599a10054d19bc566d8faa1910004c85a6902cbf", + "backendSourceFingerprint": "sha256:backend-source-v1:b29a5b0d317aaa781ae2a5205b46b518eea5a3d68a214eb0968dba4ac0660af7", + "backendContractFingerprint": "sha256:backend-contract-v1:d68ff3c7d7b2d190e68d6f148834ae971638c23a9d31086a3848874658f37da2", + "templateRevisionHash": "0ca724757ea5c4d3ddcb75957d99e5c8c25994915ebcb1610565e329e2542bd4", + "capturedAt": "2026-11-25T17:02:44.883Z", + "outputExtension": "mp4", + "primaryModelRepo": "stabilityai/stable-video-diffusion-img2vid-xt-1-1", + "outputSize": { + "width": 1024, + "height": 576 + } + }, "the_glasshouse_seed_tray": { "associationSha256": "e08a25a88a52011adcb645ed75fe1904eec042529005c19e11552d90210f3f03", "backendSourceFingerprint": "sha256:backend-source-v1:057b165c6ef6225461649a47077562dffad098a2d37d639a13bf0e73088d79ab", diff --git a/config/retained-gallery-authoring-archives.v1.json b/config/retained-gallery-authoring-archives.v1.json index 63beca1c..4859c27b 100644 --- a/config/retained-gallery-authoring-archives.v1.json +++ b/config/retained-gallery-authoring-archives.v1.json @@ -374,6 +374,11 @@ "bytes": 3448, "sha256": "e22a74b87a2de55c55d502fa6c25aa00e1200ddcb7b973c9656d4fbd1c6e129c" }, + "StableAudioPipeline:text_to_audio": { + "descriptorSha256": "340891873dc3e460a9d58a70896bdd40b032150f595b241169fe90c5c277ffe4", + "bytes": 3970, + "sha256": "069b17420905b8e6ff848d1039a2da730ac273bb47eac6e8a1bd8907ed1622da" + }, "StableDiffusionPAGPipeline:control_image": { "descriptorSha256": "9bb9602d6c79fd442b5f197809ed32dd1651524f4f5d730c28e1971c7325fc1d", "bytes": 5428, @@ -499,6 +504,11 @@ "bytes": 4169, "sha256": "b5dfc591a73c4d04d8f540c4617c0f7820a4d8553a31ef9dd030837fb72325b2" }, + "StableVideoDiffusionPipeline:image_to_video": { + "descriptorSha256": "cb576416b62900e99ebee9d9d302c3691028f424466b91cbe80fe1ca335585b3", + "bytes": 5383, + "sha256": "a6034be89c24cbe5574f3ffb3b2c287e2dea557d16e069150e1854a4c2bd811e" + }, "Wan22Pipeline:text_to_video": { "descriptorSha256": "05008ca915711e27396ac9216f34931f91c5444efa2751e9fb4a26c2761a89c2", "bytes": 4827, diff --git a/config/retained-gallery-batch-recipe-locks.v1.json b/config/retained-gallery-batch-recipe-locks.v1.json index 86d2f149..e6e407ef 100644 --- a/config/retained-gallery-batch-recipe-locks.v1.json +++ b/config/retained-gallery-batch-recipe-locks.v1.json @@ -1614,5 +1614,33 @@ "promptSettingsHash": "ps_0a65234d" }, "promptSha256": "cdf4f4e12b557231ea6404ae2fb46fef4975a772c2f434a9920386b506ffbe01" + }, + "stable_audio_glass_roof_rain": { + "workflowId": "StableAudioPipeline:text_to_audio", + "sourceTaskTemplateId": "task-template:stable-audio-open-1.0:text-to-audio:v1", + "retainedGraphHash": "sha256:canonical-graph-v1:292049221515a4d709fe400c1d7a75b33e01aa98b2946392761d627fd68f1303", + "originalReceiptSha256": "340891873dc3e460a9d58a70896bdd40b032150f595b241169fe90c5c277ffe4", + "reviewedTemplateSha256": "98b2b306a1e1b6198b80157de33d35a146532b246d2bdd4effb1bbc10415014f", + "reviewedCatalogLock": { + "templateLockHash": "tpl_489c679d", + "galleryTemplateLockHash": "tpl_f2ac2522", + "promptSettingsHash": "ps_0b1b4dfd" + }, + "promptSha256": "0c02765247eaee28f2665fd2913c475b7bc1f3f176bcac72fba1ded830cc95b0" + }, + "stable_video_lighthouse_headland": { + "workflowId": "StableVideoDiffusionPipeline:image_to_video", + "sourceTaskTemplateId": "task-template:stable-video-diffusion:image-to-video:v1", + "retainedGraphHash": "sha256:canonical-graph-v1:938d04de55523ebc54353d3af5de6fff1cd17296559fa89132795f846a628df2", + "originalReceiptSha256": "cb576416b62900e99ebee9d9d302c3691028f424466b91cbe80fe1ca335585b3", + "reviewedTemplateSha256": "0ca724757ea5c4d3ddcb75957d99e5c8c25994915ebcb1610565e329e2542bd4", + "reviewedCatalogLock": { + "templateLockHash": "tpl_8c64b556", + "galleryTemplateLockHash": "tpl_bbc20719", + "promptSettingsHash": "ps_a6c010a4" + }, + "promptSha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855", + "inputSha256": "41f07c8ec7ab5d7097cba0f77867b61e666c6a803900784697ff816b851b98de", + "inputLocatorSha256": "d79c9efe3b98c7a29473ef76321ca10b42c37381dadfecc2373db7c51b5777ef" } } diff --git a/config/template-asset-rights.v1.json b/config/template-asset-rights.v1.json index 4ab46e93..56df94ca 100644 --- a/config/template-asset-rights.v1.json +++ b/config/template-asset-rights.v1.json @@ -1,6 +1,6 @@ { "schemaVersion": 1, - "assetSetId": "sha256:canonical-json:ae0711e49b16b50a55cbdf0e7ca90b58b1b723e3a66b3385ca19662982e70c42", + "assetSetId": "sha256:canonical-json:b16429b50a2a5b58296739df4279f79fad5f7517d68bb2e5a54885d211aabb02", "records": [ { "path": "template-gallery/ace_step_audio_continuation.wav", @@ -17,9 +17,7 @@ ], "aiGenerated": true, "humanLikenessConsent": "synthetic", - "marks": [ - "MoDiff project name in the project-authored lyrics" - ], + "marks": ["MoDiff project name in the project-authored lyrics"], "requiredAttribution": [], "assetLicense": "Apache-2.0", "reviewedBy": "SOURAV DAS", @@ -139,9 +137,7 @@ ], "aiGenerated": true, "humanLikenessConsent": "synthetic", - "marks": [ - "Singer-style and training-song rights require upstream confirmation" - ], + "marks": ["Singer-style and training-song rights require upstream confirmation"], "requiredAttribution": [], "assetLicense": "upstream-terms-only", "reviewedBy": null, @@ -164,9 +160,7 @@ ], "aiGenerated": true, "humanLikenessConsent": "synthetic", - "marks": [ - "Singer-style and training-song rights require upstream confirmation" - ], + "marks": ["Singer-style and training-song rights require upstream confirmation"], "requiredAttribution": [], "assetLicense": "upstream-terms-only", "reviewedBy": null, @@ -364,9 +358,7 @@ ], "aiGenerated": true, "humanLikenessConsent": "synthetic", - "marks": [ - "MoDiff project name in the project-authored lyrics" - ], + "marks": ["MoDiff project name in the project-authored lyrics"], "requiredAttribution": [], "assetLicense": "Apache-2.0", "reviewedBy": "SOURAV DAS", @@ -602,9 +594,7 @@ "sourceUrl": "https://huggingface.co/cvssp/audioldm2/tree/c8e7e189d324425c05c4c2f81214041ef4107983", "sourceRevision": "cvssp/audioldm2@c8e7e189d324425c05c4c2f81214041ef4107983", "sourceLicense": "Maintainer-authorized file with publisher terms retained", - "modelTerms": [ - "https://huggingface.co/cvssp/audioldm2/blob/c8e7e189d324425c05c4c2f81214041ef4107983/README.md" - ], + "modelTerms": ["https://huggingface.co/cvssp/audioldm2/blob/c8e7e189d324425c05c4c2f81214041ef4107983/README.md"], "aiGenerated": true, "humanLikenessConsent": "synthetic", "marks": [], @@ -737,9 +727,7 @@ "sourceUrl": "https://huggingface.co/lodestones/Chroma1-HD/tree/0e0c60ece1e82b17cb7f77342d765ba5024c40c0", "sourceRevision": "lodestones/Chroma1-HD@0e0c60ece1e82b17cb7f77342d765ba5024c40c0", "sourceLicense": "Maintainer-authorized file with publisher terms retained", - "modelTerms": [ - "https://huggingface.co/lodestones/Chroma1-HD/tree/0e0c60ece1e82b17cb7f77342d765ba5024c40c0" - ], + "modelTerms": ["https://huggingface.co/lodestones/Chroma1-HD/tree/0e0c60ece1e82b17cb7f77342d765ba5024c40c0"], "aiGenerated": true, "humanLikenessConsent": "synthetic", "marks": [], @@ -1199,9 +1187,7 @@ "aiGenerated": true, "humanLikenessConsent": "synthetic", "marks": [], - "requiredAttribution": [ - "sourav-das" - ], + "requiredAttribution": ["sourav-das"], "assetLicense": "CC-BY-4.0", "reviewedBy": "sourav-das", "reviewedAt": "2026-10-31", @@ -1226,9 +1212,7 @@ "aiGenerated": true, "humanLikenessConsent": "synthetic", "marks": [], - "requiredAttribution": [ - "sourav-das" - ], + "requiredAttribution": ["sourav-das"], "assetLicense": "CC-BY-4.0", "reviewedBy": "sourav-das", "reviewedAt": "2026-10-31", @@ -1253,9 +1237,7 @@ "aiGenerated": true, "humanLikenessConsent": "synthetic", "marks": [], - "requiredAttribution": [ - "sourav-das" - ], + "requiredAttribution": ["sourav-das"], "assetLicense": "CC-BY-4.0", "reviewedBy": "sourav-das", "reviewedAt": "2026-10-31", @@ -1280,9 +1262,7 @@ "aiGenerated": true, "humanLikenessConsent": "synthetic", "marks": [], - "requiredAttribution": [ - "sourav-das" - ], + "requiredAttribution": ["sourav-das"], "assetLicense": "CC-BY-4.0", "reviewedBy": "sourav-das", "reviewedAt": "2026-10-31", @@ -1307,9 +1287,7 @@ "aiGenerated": true, "humanLikenessConsent": "synthetic", "marks": [], - "requiredAttribution": [ - "sourav-das" - ], + "requiredAttribution": ["sourav-das"], "assetLicense": "CC-BY-4.0", "reviewedBy": "sourav-das", "reviewedAt": "2026-10-31", @@ -1336,9 +1314,7 @@ "aiGenerated": true, "humanLikenessConsent": "synthetic", "marks": [], - "requiredAttribution": [ - "sourav-das" - ], + "requiredAttribution": ["sourav-das"], "assetLicense": "CC-BY-4.0", "reviewedBy": "sourav-das", "reviewedAt": "2026-10-31", @@ -1363,9 +1339,7 @@ "aiGenerated": true, "humanLikenessConsent": "synthetic", "marks": [], - "requiredAttribution": [ - "sourav-das" - ], + "requiredAttribution": ["sourav-das"], "assetLicense": "CC-BY-4.0", "reviewedBy": "sourav-das", "reviewedAt": "2026-10-31", @@ -1390,9 +1364,7 @@ "aiGenerated": true, "humanLikenessConsent": "synthetic", "marks": [], - "requiredAttribution": [ - "sourav-das" - ], + "requiredAttribution": ["sourav-das"], "assetLicense": "CC-BY-4.0", "reviewedBy": "sourav-das", "reviewedAt": "2026-10-31", @@ -1417,9 +1389,7 @@ "aiGenerated": true, "humanLikenessConsent": "synthetic", "marks": [], - "requiredAttribution": [ - "sourav-das" - ], + "requiredAttribution": ["sourav-das"], "assetLicense": "CC-BY-4.0", "reviewedBy": "sourav-das", "reviewedAt": "2026-10-31", @@ -1444,9 +1414,7 @@ "aiGenerated": true, "humanLikenessConsent": "synthetic", "marks": [], - "requiredAttribution": [ - "sourav-das" - ], + "requiredAttribution": ["sourav-das"], "assetLicense": "CC-BY-4.0", "reviewedBy": "sourav-das", "reviewedAt": "2026-10-31", @@ -1777,9 +1745,7 @@ ], "aiGenerated": true, "humanLikenessConsent": "not-applicable", - "marks": [ - "Fictional ASTERMIST / LAVENDER SLEEP SPRAY product label" - ], + "marks": ["Fictional ASTERMIST / LAVENDER SLEEP SPRAY product label"], "requiredAttribution": [], "publicationBasis": "Existing maintainer publication authorization and current explicit instruction to register these three accepted assets; no new ownership or rights quotation is fabricated.", "path": "template-gallery/flux_kontext_edit.webp", @@ -1804,9 +1770,7 @@ ], "aiGenerated": true, "humanLikenessConsent": "not-applicable", - "marks": [ - "Fictional ASTERMIST / LAVENDER SLEEP SPRAY product label" - ], + "marks": ["Fictional ASTERMIST / LAVENDER SLEEP SPRAY product label"], "requiredAttribution": [], "publicationBasis": "Existing maintainer publication authorization and current explicit instruction to register these three accepted assets; no new ownership or rights quotation is fabricated.", "path": "template-gallery/flux_kontext_multi_reference.webp", @@ -1962,9 +1926,7 @@ ], "aiGenerated": true, "humanLikenessConsent": "synthetic", - "marks": [ - "Studio Ghibli style reference; no franchise character requested" - ], + "marks": ["Studio Ghibli style reference; no franchise character requested"], "requiredAttribution": [], "assetLicense": "upstream-terms-only", "reviewedBy": null, @@ -1988,9 +1950,7 @@ ], "aiGenerated": true, "humanLikenessConsent": "synthetic", - "marks": [ - "Studio Ghibli style reference; no franchise character requested" - ], + "marks": ["Studio Ghibli style reference; no franchise character requested"], "requiredAttribution": [], "assetLicense": "upstream-terms-only", "reviewedBy": null, @@ -2337,9 +2297,7 @@ "sourceUrl": "https://huggingface.co/zai-org/GLM-Image/tree/2c433cc0cbc293bde2ac8ca9624f279b5d23fcf4", "sourceRevision": "zai-org/GLM-Image@2c433cc0cbc293bde2ac8ca9624f279b5d23fcf4", "sourceLicense": "Maintainer-authorized file with publisher terms retained", - "modelTerms": [ - "mit. https://huggingface.co/zai-org/GLM-Image/tree/2c433cc0cbc293bde2ac8ca9624f279b5d23fcf4" - ], + "modelTerms": ["mit. https://huggingface.co/zai-org/GLM-Image/tree/2c433cc0cbc293bde2ac8ca9624f279b5d23fcf4"], "aiGenerated": true, "humanLikenessConsent": "synthetic", "marks": [], @@ -2658,9 +2616,7 @@ "reviewedAt": "2026-11-13", "reviewClass": "per-file-maintainer-accepted-native-six-registration", "provenanceTemplateId": "flux_redux_edit", - "consumingTemplateIds": [ - "flux_redux_edit" - ], + "consumingTemplateIds": ["flux_redux_edit"], "retainedOriginalPath": "template-gallery/inputs/flux_redux_edit.before.webp", "humanApprovalPacketSHA256": "03b66b4631afb15032d62a1705331b56f6b12c4882c23945175ec92cc45a506f", "publicationBasis": "Register the six approved assets now while Moonflower runs on Linux. Use Windows in parallel wherever possible, and keep the longer workflows separate for AMD cloud." @@ -2813,9 +2769,7 @@ "reviewedAt": "2026-11-15", "reviewClass": "per-file-maintainer-accepted-native-two-registration", "provenanceTemplateId": "flux_redux_multi_reference", - "consumingTemplateIds": [ - "flux_redux_multi_reference" - ], + "consumingTemplateIds": ["flux_redux_multi_reference"], "retainedOriginalPath": "template-gallery/inputs/flux_redux_multi_reference.before.webp", "humanApprovalPacketSHA256": "c3c5e06d05771cf28f823e1dee31a9e7e3765d2f84038823aaadc505ee8290f5", "publicationBasis": "you can register these two as well" @@ -3197,9 +3151,7 @@ "reviewedAt": "2026-11-13", "reviewClass": "per-file-maintainer-accepted-native-six-registration", "provenanceTemplateId": "ltx_video_video_to_video", - "consumingTemplateIds": [ - "ltx_video_video_to_video" - ], + "consumingTemplateIds": ["ltx_video_video_to_video"], "retainedOriginalPath": "template-gallery/inputs/ltx_video_video_to_video.before.mp4", "humanApprovalPacketSHA256": "03b66b4631afb15032d62a1705331b56f6b12c4882c23945175ec92cc45a506f", "publicationBasis": "Register the six approved assets now while Moonflower runs on Linux. Use Windows in parallel wherever possible, and keep the longer workflows separate for AMD cloud." @@ -3537,9 +3489,7 @@ "reviewedAt": "2026-11-15", "reviewClass": "per-file-maintainer-accepted-native-seven-registration", "provenanceTemplateId": "wan_vace_grayscale_control", - "consumingTemplateIds": [ - "wan_vace_grayscale_control" - ], + "consumingTemplateIds": ["wan_vace_grayscale_control"], "retainedOriginalPath": "template-gallery/inputs/wan_vace_grayscale_control.before.mp4", "humanApprovalPacketSHA256": "95c7c2ed080c3d618db1701b066724660595337460c46df8305b50810783eaa3", "publicationBasis": "these are approved, you can register them" @@ -3719,9 +3669,7 @@ "reviewedAt": "2026-11-15", "reviewClass": "per-file-maintainer-accepted-native-seven-registration", "provenanceTemplateId": "wan_vace_outpaint_reframe", - "consumingTemplateIds": [ - "wan_vace_outpaint_reframe" - ], + "consumingTemplateIds": ["wan_vace_outpaint_reframe"], "retainedOriginalPath": "template-gallery/inputs/wan_vace_outpaint_reframe.before.mp4", "humanApprovalPacketSHA256": "95c7c2ed080c3d618db1701b066724660595337460c46df8305b50810783eaa3", "publicationBasis": "these are approved, you can register them" @@ -3901,9 +3849,7 @@ "reviewedAt": "2026-11-15", "reviewClass": "per-file-maintainer-accepted-native-seven-registration", "provenanceTemplateId": "wan_vace_video_color_grade", - "consumingTemplateIds": [ - "wan_vace_video_color_grade" - ], + "consumingTemplateIds": ["wan_vace_video_color_grade"], "retainedOriginalPath": "template-gallery/inputs/wan_vace_video_color_grade.before.mp4", "humanApprovalPacketSHA256": "95c7c2ed080c3d618db1701b066724660595337460c46df8305b50810783eaa3", "publicationBasis": "these are approved, you can register them" @@ -4083,9 +4029,7 @@ "reviewedAt": "2026-11-15", "reviewClass": "per-file-maintainer-accepted-native-seven-registration", "provenanceTemplateId": "wan_vace_video_to_video", - "consumingTemplateIds": [ - "wan_vace_video_to_video" - ], + "consumingTemplateIds": ["wan_vace_video_to_video"], "retainedOriginalPath": "template-gallery/inputs/wan_vace_video_to_video.before.mp4", "humanApprovalPacketSHA256": "95c7c2ed080c3d618db1701b066724660595337460c46df8305b50810783eaa3", "publicationBasis": "these are approved, you can register them" @@ -4321,10 +4265,7 @@ "reviewedBy": "SOURAV DAS", "reviewedAt": "2026-11-13", "reviewClass": "per-file-maintainer-accepted-native-six-registration", - "consumingTemplateIds": [ - "ace_step_audio_repaint", - "ace_step_audio_variation" - ], + "consumingTemplateIds": ["ace_step_audio_repaint", "ace_step_audio_variation"], "humanApprovalPacketSHA256": "03b66b4631afb15032d62a1705331b56f6b12c4882c23945175ec92cc45a506f", "publicationBasis": "Register the six approved assets now while Moonflower runs on Linux. Use Windows in parallel wherever possible, and keep the longer workflows separate for AMD cloud.", "provenanceTemplateId": "ace_step_audio_variation" @@ -4487,9 +4428,7 @@ "reviewedAt": "2026-08-03", "reviewClass": "standard-human-attestation", "provenanceTemplateId": "character_edit", - "consumingTemplateIds": [ - "character_edit" - ] + "consumingTemplateIds": ["character_edit"] }, { "path": "template-gallery/inputs/chroma_alpine_block_print.before.png", @@ -4528,9 +4467,7 @@ "sourceUrl": "https://huggingface.co/lodestones/Chroma1-HD/tree/0e0c60ece1e82b17cb7f77342d765ba5024c40c0", "sourceRevision": "lodestones/Chroma1-HD@0e0c60ece1e82b17cb7f77342d765ba5024c40c0", "sourceLicense": "Maintainer-authorized file with publisher terms retained", - "modelTerms": [ - "https://huggingface.co/lodestones/Chroma1-HD/tree/0e0c60ece1e82b17cb7f77342d765ba5024c40c0" - ], + "modelTerms": ["https://huggingface.co/lodestones/Chroma1-HD/tree/0e0c60ece1e82b17cb7f77342d765ba5024c40c0"], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], @@ -4732,9 +4669,7 @@ "reviewedAt": "2026-08-03", "reviewClass": "standard-human-attestation", "provenanceTemplateId": "flux2_klein_multi_reference", - "consumingTemplateIds": [ - "flux2_klein_multi_reference" - ] + "consumingTemplateIds": ["flux2_klein_multi_reference"] }, { "path": "template-gallery/inputs/flux3-packaging-protected-photo-mask-v1.png", @@ -4750,9 +4685,7 @@ "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], - "requiredAttribution": [ - "sourav-das" - ], + "requiredAttribution": ["sourav-das"], "assetLicense": "CC-BY-4.0", "reviewedBy": "sourav-das", "reviewedAt": "2026-10-31", @@ -4971,9 +4904,7 @@ "reviewedAt": "2026-08-03", "reviewClass": "standard-human-attestation", "provenanceTemplateId": "flux_control_canny", - "consumingTemplateIds": [ - "flux_control_canny" - ] + "consumingTemplateIds": ["flux_control_canny"] }, { "path": "template-gallery/inputs/flux_depth_control.before.png", @@ -4997,9 +4928,7 @@ "reviewedAt": "2026-08-03", "reviewClass": "standard-human-attestation", "provenanceTemplateId": "flux_depth_control", - "consumingTemplateIds": [ - "flux_depth_control" - ] + "consumingTemplateIds": ["flux_depth_control"] }, { "path": "template-gallery/inputs/flux_depth_marine_bow_repair.before.webp", @@ -5131,9 +5060,7 @@ "reviewedAt": "2026-08-03", "reviewClass": "standard-human-attestation", "provenanceTemplateId": "flux_fill_inpaint", - "consumingTemplateIds": [ - "flux_fill_inpaint" - ] + "consumingTemplateIds": ["flux_fill_inpaint"] }, { "path": "template-gallery/inputs/flux_fill_outpaint.before.png", @@ -5157,9 +5084,7 @@ "reviewedAt": "2026-08-03", "reviewClass": "standard-human-attestation", "provenanceTemplateId": "flux_fill_outpaint", - "consumingTemplateIds": [ - "flux_fill_outpaint" - ] + "consumingTemplateIds": ["flux_fill_outpaint"] }, { "path": "template-gallery/inputs/flux_klein_alpine_lake_panorama.before.png", @@ -5318,9 +5243,7 @@ "reviewedAt": "2026-08-03", "reviewClass": "standard-human-attestation", "provenanceTemplateId": "flux_kontext_edit", - "consumingTemplateIds": [ - "flux_kontext_edit" - ] + "consumingTemplateIds": ["flux_kontext_edit"] }, { "path": "template-gallery/inputs/flux_kontext_multi_reference.before.webp", @@ -5344,9 +5267,7 @@ "reviewedAt": "2026-08-03", "reviewClass": "standard-human-attestation", "provenanceTemplateId": "flux_kontext_multi_reference", - "consumingTemplateIds": [ - "flux_kontext_multi_reference" - ] + "consumingTemplateIds": ["flux_kontext_multi_reference"] }, { "path": "template-gallery/inputs/flux_kontext_multi_reference.material-strip.v2.png", @@ -5369,9 +5290,7 @@ "reviewedBy": "maintainer (current user)", "reviewedAt": "2026-11-12", "reviewClass": "per-file-maintainer-accepted-native-three-registration", - "consumingTemplateIds": [ - "flux_kontext_multi_reference" - ], + "consumingTemplateIds": ["flux_kontext_multi_reference"], "derivedFromContentHash": "sha256:bytes:9f421cdc0fa80b3aae368bd3b20a8f6f05942ec461f88541f01aec5390468897", "publicationBasis": "Existing maintainer publication authorization and current explicit instruction to register these three accepted assets; no new ownership or rights quotation is fabricated.", "humanApprovalPacketSHA256": "69c6b3d9b0ea2fcca16ee538f6e75b414b7141658b74f10578758e61360f63fd" @@ -5399,9 +5318,7 @@ "reviewedAt": "2026-08-03", "reviewClass": "standard-human-attestation", "provenanceTemplateId": "flux_redux_edit", - "consumingTemplateIds": [ - "flux_redux_edit" - ] + "consumingTemplateIds": ["flux_redux_edit"] }, { "path": "template-gallery/inputs/flux_redux_multi_reference.before.webp", @@ -5426,9 +5343,7 @@ "reviewedAt": "2026-08-03", "reviewClass": "standard-human-attestation", "provenanceTemplateId": "flux_redux_multi_reference", - "consumingTemplateIds": [ - "flux_redux_multi_reference" - ] + "consumingTemplateIds": ["flux_redux_multi_reference"] }, { "path": "template-gallery/inputs/hunyuan_dit_green_glass_study.before.png", @@ -5686,9 +5601,7 @@ "sourceUrl": "https://huggingface.co/Lightricks/LTX-2/tree/47da56e2ad66ce4125a9922b4a8826bf407f9d0a", "sourceRevision": "Lightricks/LTX-2@47da56e2ad66ce4125a9922b4a8826bf407f9d0a", "sourceLicense": "Maintainer-authorized file with publisher terms retained", - "modelTerms": [ - "https://huggingface.co/Lightricks/LTX-2/blob/47da56e2ad66ce4125a9922b4a8826bf407f9d0a/LICENSE" - ], + "modelTerms": ["https://huggingface.co/Lightricks/LTX-2/blob/47da56e2ad66ce4125a9922b4a8826bf407f9d0a/LICENSE"], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], @@ -5713,9 +5626,7 @@ "sourceUrl": "https://huggingface.co/Lightricks/LTX-2/tree/47da56e2ad66ce4125a9922b4a8826bf407f9d0a", "sourceRevision": "Lightricks/LTX-2@47da56e2ad66ce4125a9922b4a8826bf407f9d0a", "sourceLicense": "Maintainer-authorized file with publisher terms retained", - "modelTerms": [ - "https://huggingface.co/Lightricks/LTX-2/tree/47da56e2ad66ce4125a9922b4a8826bf407f9d0a" - ], + "modelTerms": ["https://huggingface.co/Lightricks/LTX-2/tree/47da56e2ad66ce4125a9922b4a8826bf407f9d0a"], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], @@ -5740,9 +5651,7 @@ "sourceUrl": "https://huggingface.co/Lightricks/LTX-2/tree/47da56e2ad66ce4125a9922b4a8826bf407f9d0a", "sourceRevision": "Lightricks/LTX-2@47da56e2ad66ce4125a9922b4a8826bf407f9d0a", "sourceLicense": "Maintainer-authorized file with publisher terms retained", - "modelTerms": [ - "https://huggingface.co/Lightricks/LTX-2/blob/47da56e2ad66ce4125a9922b4a8826bf407f9d0a/LICENSE" - ], + "modelTerms": ["https://huggingface.co/Lightricks/LTX-2/blob/47da56e2ad66ce4125a9922b4a8826bf407f9d0a/LICENSE"], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], @@ -5851,9 +5760,7 @@ "reviewedAt": "2026-08-03", "reviewClass": "standard-human-attestation", "provenanceTemplateId": "ltx_video_image_to_video", - "consumingTemplateIds": [ - "ltx_video_image_to_video" - ] + "consumingTemplateIds": ["ltx_video_image_to_video"] }, { "path": "template-gallery/inputs/ltx_video_multi_reference.before.webp", @@ -5878,9 +5785,7 @@ "reviewedAt": "2026-08-03", "reviewClass": "standard-human-attestation", "provenanceTemplateId": "ltx_video_multi_reference", - "consumingTemplateIds": [ - "ltx_video_multi_reference" - ] + "consumingTemplateIds": ["ltx_video_multi_reference"] }, { "path": "template-gallery/inputs/ltx_video_video_to_video.before.mp4", @@ -5907,9 +5812,7 @@ "reviewedAt": "2026-08-03", "reviewClass": "standard-human-attestation", "provenanceTemplateId": "ltx_video_video_to_video", - "consumingTemplateIds": [ - "ltx_video_video_to_video" - ] + "consumingTemplateIds": ["ltx_video_video_to_video"] }, { "path": "template-gallery/inputs/marigold_depth_synthetic_ramp.before.png", @@ -6221,9 +6124,7 @@ "reviewedAt": "2026-08-03", "reviewClass": "standard-human-attestation", "provenanceTemplateId": "qwen_character_angles", - "consumingTemplateIds": [ - "qwen_character_angles" - ] + "consumingTemplateIds": ["qwen_character_angles"] }, { "path": "template-gallery/inputs/qwen_cobalt_on_charcoal_slate.before.png", @@ -6330,9 +6231,7 @@ "reviewedAt": "2026-08-03", "reviewClass": "standard-human-attestation", "provenanceTemplateId": "qwen_edit_plus_single_image", - "consumingTemplateIds": [ - "qwen_edit_plus_single_image" - ] + "consumingTemplateIds": ["qwen_edit_plus_single_image"] }, { "path": "template-gallery/inputs/qwen_edit_strength_sweep.before.webp", @@ -6356,9 +6255,7 @@ "reviewedAt": "2026-08-03", "reviewClass": "standard-human-attestation", "provenanceTemplateId": "qwen_edit_strength_sweep", - "consumingTemplateIds": [ - "qwen_edit_strength_sweep" - ] + "consumingTemplateIds": ["qwen_edit_strength_sweep"] }, { "path": "template-gallery/inputs/qwen_inpaint_mask_draft.before.webp", @@ -6382,9 +6279,7 @@ "reviewedAt": "2026-08-03", "reviewClass": "standard-human-attestation", "provenanceTemplateId": "qwen_inpaint_mask_draft", - "consumingTemplateIds": [ - "qwen_inpaint_mask_draft" - ] + "consumingTemplateIds": ["qwen_inpaint_mask_draft"] }, { "path": "template-gallery/inputs/qwen_inpaint_object_replace.before.webp", @@ -6408,9 +6303,7 @@ "reviewedAt": "2026-08-03", "reviewClass": "standard-human-attestation", "provenanceTemplateId": "qwen_inpaint_object_replace", - "consumingTemplateIds": [ - "qwen_inpaint_object_replace" - ] + "consumingTemplateIds": ["qwen_inpaint_object_replace"] }, { "creatorOrRightsholder": "MoDiff project maintainers, subject to previously approved synthetic source rights and recorded model terms", @@ -6487,9 +6380,7 @@ "reviewedAt": "2026-08-03", "reviewClass": "standard-human-attestation", "provenanceTemplateId": "qwen_logo_texture", - "consumingTemplateIds": [ - "qwen_logo_texture" - ] + "consumingTemplateIds": ["qwen_logo_texture"] }, { "path": "template-gallery/inputs/qwen_multi_reference_product.before.webp", @@ -6514,9 +6405,7 @@ "reviewedAt": "2026-08-03", "reviewClass": "standard-human-attestation", "provenanceTemplateId": "qwen_multi_reference_product", - "consumingTemplateIds": [ - "qwen_multi_reference_product" - ] + "consumingTemplateIds": ["qwen_multi_reference_product"] }, { "path": "template-gallery/inputs/qwen_outpaint_aspect_template.before.webp", @@ -6540,9 +6429,7 @@ "reviewedAt": "2026-08-03", "reviewClass": "standard-human-attestation", "provenanceTemplateId": "qwen_outpaint_aspect_template", - "consumingTemplateIds": [ - "qwen_outpaint_aspect_template" - ] + "consumingTemplateIds": ["qwen_outpaint_aspect_template"] }, { "path": "template-gallery/inputs/qwen_outpaint_draft.before.webp", @@ -6566,9 +6453,7 @@ "reviewedAt": "2026-08-03", "reviewClass": "standard-human-attestation", "provenanceTemplateId": "qwen_outpaint_draft", - "consumingTemplateIds": [ - "qwen_outpaint_draft" - ] + "consumingTemplateIds": ["qwen_outpaint_draft"] }, { "path": "template-gallery/inputs/qwen_packaging_dieline.before.png", @@ -6593,9 +6478,7 @@ "reviewedAt": "2026-08-03", "reviewClass": "standard-human-attestation", "provenanceTemplateId": "qwen_packaging_dieline", - "consumingTemplateIds": [ - "qwen_packaging_dieline" - ] + "consumingTemplateIds": ["qwen_packaging_dieline"] }, { "path": "template-gallery/inputs/qwen_product_ad_composite.before.webp", @@ -6620,9 +6503,7 @@ "reviewedAt": "2026-08-03", "reviewClass": "standard-human-attestation", "provenanceTemplateId": "qwen_product_ad_composite", - "consumingTemplateIds": [ - "qwen_product_ad_composite" - ] + "consumingTemplateIds": ["qwen_product_ad_composite"] }, { "path": "template-gallery/inputs/qwen_product_relight.before.webp", @@ -6647,9 +6528,7 @@ "reviewedAt": "2026-08-03", "reviewClass": "standard-human-attestation", "provenanceTemplateId": "qwen_product_relight", - "consumingTemplateIds": [ - "qwen_product_relight" - ] + "consumingTemplateIds": ["qwen_product_relight"] }, { "path": "template-gallery/inputs/qwen_tile_extract.before.webp", @@ -6673,9 +6552,7 @@ "reviewedAt": "2026-08-03", "reviewClass": "standard-human-attestation", "provenanceTemplateId": "qwen_tile_extract", - "consumingTemplateIds": [ - "qwen_tile_extract" - ] + "consumingTemplateIds": ["qwen_tile_extract"] }, { "creatorOrRightsholder": "MoDiff project maintainers, with exact-file rights explicitly attested by the maintainer", @@ -6726,9 +6603,7 @@ "reviewedAt": "2026-08-03", "reviewClass": "standard-human-attestation", "provenanceTemplateId": "reference_fusion", - "consumingTemplateIds": [ - "reference_fusion" - ] + "consumingTemplateIds": ["reference_fusion"] }, { "path": "template-gallery/inputs/restoring_the_studio_backdrop.before.png", @@ -6740,9 +6615,7 @@ "sourceUrl": "https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14", "sourceRevision": "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14", "sourceLicense": "Maintainer-authorized file with publisher terms retained", - "modelTerms": [ - "CreativeML Open RAIL-M at the pinned Stable Diffusion v1.5 revision." - ], + "modelTerms": ["CreativeML Open RAIL-M at the pinned Stable Diffusion v1.5 revision."], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], @@ -6767,9 +6640,7 @@ "sourceUrl": "https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14", "sourceRevision": "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14", "sourceLicense": "Maintainer-authorized file with publisher terms retained", - "modelTerms": [ - "CreativeML Open RAIL-M at the pinned Stable Diffusion v1.5 revision." - ], + "modelTerms": ["CreativeML Open RAIL-M at the pinned Stable Diffusion v1.5 revision."], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], @@ -7702,6 +7573,33 @@ "publicationBasis": "Maintainer approved this exact saved Spandrel 2× technical preview and confirmed redistribution rights.", "provenanceTemplateId": "spandrel_x2_synthetic_gradient" }, + { + "path": "template-gallery/inputs/stable_video_lighthouse_headland.first.png", + "sha256": "sha256:bytes:41f07c8ec7ab5d7097cba0f77867b61e666c6a803900784697ff816b851b98de", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Exact approved file captured from a saved MoDiff workflow", + "sourceUrl": "https://huggingface.co/stabilityai/stable-video-diffusion-img2vid-xt-1-1/tree/043843887ccd51926e3efed36270444a838e7861", + "sourceRevision": "stabilityai/stable-video-diffusion-img2vid-xt-1-1@043843887ccd51926e3efed36270444a838e7861", + "sourceLicense": "Maintainer-authorized file with publisher terms retained", + "modelTerms": [ + "https://huggingface.co/stabilityai/stable-video-diffusion-img2vid-xt-1-1/blob/043843887ccd51926e3efed36270444a838e7861/LICENSE.md" + ], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "stabilityai/stable-video-diffusion-img2vid-xt-1-1@043843887ccd51926e3efed36270444a838e7861 https://huggingface.co/stabilityai/stable-video-diffusion-img2vid-xt-1-1/tree/043843887ccd51926e3efed36270444a838e7861" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "a7a2ce4e3e9bdfddcd33a4f3c2a7df0b69c0e815eef0493a9f0a748acf1716b8", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "stable_video_lighthouse_headland" + }, { "path": "template-gallery/inputs/wan_a14b_wind_across_pond.first.png", "sha256": "sha256:bytes:cd29e54e208f6040d3f4cbbf8c9f096d537f8c71dffb50d5abae3298cc49deaf", @@ -8106,9 +8004,7 @@ "reviewedAt": "2026-08-03", "reviewClass": "standard-human-attestation", "provenanceTemplateId": "wan_vace_grayscale_control", - "consumingTemplateIds": [ - "wan_vace_grayscale_control" - ] + "consumingTemplateIds": ["wan_vace_grayscale_control"] }, { "path": "template-gallery/inputs/wan_vace_outpaint_reframe.before.mp4", @@ -8133,9 +8029,7 @@ "reviewedAt": "2026-08-03", "reviewClass": "standard-human-attestation", "provenanceTemplateId": "wan_vace_outpaint_reframe", - "consumingTemplateIds": [ - "wan_vace_outpaint_reframe" - ] + "consumingTemplateIds": ["wan_vace_outpaint_reframe"] }, { "path": "template-gallery/inputs/wan_vace_video_color_grade.before.mp4", @@ -8160,9 +8054,7 @@ "reviewedAt": "2026-08-03", "reviewClass": "standard-human-attestation", "provenanceTemplateId": "wan_vace_video_color_grade", - "consumingTemplateIds": [ - "wan_vace_video_color_grade" - ] + "consumingTemplateIds": ["wan_vace_video_color_grade"] }, { "path": "template-gallery/inputs/wan_vace_video_to_video.before.mp4", @@ -8187,9 +8079,7 @@ "reviewedAt": "2026-08-03", "reviewClass": "standard-human-attestation", "provenanceTemplateId": "wan_vace_video_to_video", - "consumingTemplateIds": [ - "wan_vace_video_to_video" - ] + "consumingTemplateIds": ["wan_vace_video_to_video"] }, { "path": "template-gallery/inputs/zimage_golden_amber_glass.before.png", @@ -8309,9 +8199,7 @@ "sourceUrl": "https://huggingface.co/deepseek-community/Janus-Pro-1B/tree/1655280bb75959cc1cb85529a2a8b26e7016072e", "sourceRevision": "deepseek-community/Janus-Pro-1B@1655280bb75959cc1cb85529a2a8b26e7016072e", "sourceLicense": "Maintainer-authorized file with publisher terms retained", - "modelTerms": [ - "https://github.com/deepseek-ai/Janus/blob/main/LICENSE-MODEL" - ], + "modelTerms": ["https://github.com/deepseek-ai/Janus/blob/main/LICENSE-MODEL"], "aiGenerated": true, "humanLikenessConsent": "synthetic", "marks": [], @@ -8336,9 +8224,7 @@ "sourceUrl": "https://huggingface.co/deepseek-community/Janus-Pro-1B/tree/1655280bb75959cc1cb85529a2a8b26e7016072e", "sourceRevision": "deepseek-community/Janus-Pro-1B@1655280bb75959cc1cb85529a2a8b26e7016072e", "sourceLicense": "Maintainer-authorized file with publisher terms retained", - "modelTerms": [ - "https://github.com/deepseek-ai/Janus/blob/main/LICENSE-MODEL" - ], + "modelTerms": ["https://github.com/deepseek-ai/Janus/blob/main/LICENSE-MODEL"], "aiGenerated": true, "humanLikenessConsent": "synthetic", "marks": [], @@ -8363,9 +8249,7 @@ "sourceUrl": "https://huggingface.co/deepseek-community/Janus-Pro-1B/tree/1655280bb75959cc1cb85529a2a8b26e7016072e", "sourceRevision": "deepseek-community/Janus-Pro-1B@1655280bb75959cc1cb85529a2a8b26e7016072e", "sourceLicense": "Maintainer-authorized file with publisher terms retained", - "modelTerms": [ - "https://github.com/deepseek-ai/Janus/blob/main/LICENSE-MODEL" - ], + "modelTerms": ["https://github.com/deepseek-ai/Janus/blob/main/LICENSE-MODEL"], "aiGenerated": true, "humanLikenessConsent": "synthetic", "marks": [], @@ -8579,9 +8463,7 @@ "sourceUrl": "https://huggingface.co/maxin-cn/Latte-1/tree/0653024365272f061fc44d1078134df22842b687", "sourceRevision": "maxin-cn/Latte-1@0653024365272f061fc44d1078134df22842b687", "sourceLicense": "Maintainer-authorized file with publisher terms retained", - "modelTerms": [ - "https://huggingface.co/maxin-cn/Latte-1/tree/0653024365272f061fc44d1078134df22842b687" - ], + "modelTerms": ["https://huggingface.co/maxin-cn/Latte-1/tree/0653024365272f061fc44d1078134df22842b687"], "aiGenerated": true, "humanLikenessConsent": "synthetic", "marks": [], @@ -9004,9 +8886,7 @@ "sourceUrl": "https://huggingface.co/Lightricks/LTX-2/tree/47da56e2ad66ce4125a9922b4a8826bf407f9d0a", "sourceRevision": "Lightricks/LTX-2@47da56e2ad66ce4125a9922b4a8826bf407f9d0a", "sourceLicense": "Maintainer-authorized file with publisher terms retained", - "modelTerms": [ - "https://huggingface.co/Lightricks/LTX-2/blob/47da56e2ad66ce4125a9922b4a8826bf407f9d0a/LICENSE" - ], + "modelTerms": ["https://huggingface.co/Lightricks/LTX-2/blob/47da56e2ad66ce4125a9922b4a8826bf407f9d0a/LICENSE"], "aiGenerated": true, "humanLikenessConsent": "synthetic", "marks": [], @@ -9031,9 +8911,7 @@ "sourceUrl": "https://huggingface.co/Lightricks/LTX-2/tree/47da56e2ad66ce4125a9922b4a8826bf407f9d0a", "sourceRevision": "Lightricks/LTX-2@47da56e2ad66ce4125a9922b4a8826bf407f9d0a", "sourceLicense": "Maintainer-authorized file with publisher terms retained", - "modelTerms": [ - "https://huggingface.co/Lightricks/LTX-2/tree/47da56e2ad66ce4125a9922b4a8826bf407f9d0a" - ], + "modelTerms": ["https://huggingface.co/Lightricks/LTX-2/tree/47da56e2ad66ce4125a9922b4a8826bf407f9d0a"], "aiGenerated": true, "humanLikenessConsent": "synthetic", "marks": [], @@ -9058,9 +8936,7 @@ "sourceUrl": "https://huggingface.co/Lightricks/LTX-2/tree/47da56e2ad66ce4125a9922b4a8826bf407f9d0a", "sourceRevision": "Lightricks/LTX-2@47da56e2ad66ce4125a9922b4a8826bf407f9d0a", "sourceLicense": "Maintainer-authorized file with publisher terms retained", - "modelTerms": [ - "https://huggingface.co/Lightricks/LTX-2/tree/47da56e2ad66ce4125a9922b4a8826bf407f9d0a" - ], + "modelTerms": ["https://huggingface.co/Lightricks/LTX-2/tree/47da56e2ad66ce4125a9922b4a8826bf407f9d0a"], "aiGenerated": true, "humanLikenessConsent": "synthetic", "marks": [], @@ -9085,9 +8961,7 @@ "sourceUrl": "https://huggingface.co/Lightricks/LTX-2/tree/47da56e2ad66ce4125a9922b4a8826bf407f9d0a", "sourceRevision": "Lightricks/LTX-2@47da56e2ad66ce4125a9922b4a8826bf407f9d0a", "sourceLicense": "Maintainer-authorized file with publisher terms retained", - "modelTerms": [ - "https://huggingface.co/Lightricks/LTX-2/blob/47da56e2ad66ce4125a9922b4a8826bf407f9d0a/LICENSE" - ], + "modelTerms": ["https://huggingface.co/Lightricks/LTX-2/blob/47da56e2ad66ce4125a9922b4a8826bf407f9d0a/LICENSE"], "aiGenerated": true, "humanLikenessConsent": "synthetic", "marks": [], @@ -9112,9 +8986,7 @@ "sourceUrl": "https://huggingface.co/Lightricks/LTX-2/tree/47da56e2ad66ce4125a9922b4a8826bf407f9d0a", "sourceRevision": "Lightricks/LTX-2@47da56e2ad66ce4125a9922b4a8826bf407f9d0a", "sourceLicense": "Maintainer-authorized file with publisher terms retained", - "modelTerms": [ - "https://huggingface.co/Lightricks/LTX-2/tree/47da56e2ad66ce4125a9922b4a8826bf407f9d0a" - ], + "modelTerms": ["https://huggingface.co/Lightricks/LTX-2/tree/47da56e2ad66ce4125a9922b4a8826bf407f9d0a"], "aiGenerated": true, "humanLikenessConsent": "synthetic", "marks": [], @@ -9811,7 +9683,7 @@ }, { "path": "template-gallery/manifest.json", - "sha256": "sha256:bytes:789269290f378489a939b79daad98d9a5e2bf351c105f362895a5e8aee67a6f4", + "sha256": "sha256:bytes:da498c34fa5389f278304f27fe78a0058e8d74f4a0d188442bbad93d4a276328", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", @@ -9828,7 +9700,7 @@ "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-25", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "c897ae58c52588da56b92e22d8b3c6b7d9becac539057047f38e1303230949da", + "humanApprovalPacketSHA256": "a7a2ce4e3e9bdfddcd33a4f3c2a7df0b69c0e815eef0493a9f0a748acf1716b8", "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained." }, { @@ -9870,9 +9742,7 @@ "aiGenerated": true, "humanLikenessConsent": "synthetic", "marks": [], - "requiredAttribution": [ - "AI-generated music — MiniMax-Music3" - ], + "requiredAttribution": ["AI-generated music — MiniMax-Music3"], "assetLicense": "Apache-2.0", "publisherLicenseUrl": "https://huggingface.co/MiniMaxAI/MiniMax-Music3/blob/fbdf52fbaaca799592917417eb05f1899f1255ec/LICENSE", "path": "template-gallery/minimax_music3_chamber_pop.wav", @@ -10645,9 +10515,7 @@ ], "aiGenerated": true, "humanLikenessConsent": "synthetic", - "marks": [ - "TIDELINE: fictional cinema and event" - ], + "marks": ["TIDELINE: fictional cinema and event"], "requiredAttribution": [], "sourceRightsAttestation": "I hold the rights or permissions needed to publish this exact generated TIDELINE cinema image and its redacted technical/review records under Apache-2.0. The film event and cinema are fictional; no external image inputs or real-person likenesses were used.", "path": "template-gallery/qwen_low_vram_poster_layout.webp", @@ -10672,9 +10540,7 @@ ], "aiGenerated": true, "humanLikenessConsent": "synthetic", - "marks": [ - "MICA DROP: fictional product name" - ], + "marks": ["MICA DROP: fictional product name"], "requiredAttribution": [], "sourceRightsAttestation": "I approve this exact image as a reviewed concept with the stated design limitations and incomplete independent resource monitoring, without a fully guarded or hardware-qualification claim. I hold the rights or permissions needed to publish this generated MICA DROP image and its redacted technical/review metadata under Apache-2.0. The product is fictional in this example; no external image input or real-person likeness was used.", "path": "template-gallery/qwen_low_vram_product_concept.webp", @@ -10699,9 +10565,7 @@ ], "aiGenerated": true, "humanLikenessConsent": "synthetic", - "marks": [ - "KITE & ANVIL: fictional stationery brand" - ], + "marks": ["KITE & ANVIL: fictional stationery brand"], "requiredAttribution": [], "sourceRightsAttestation": "I hold the rights or permissions needed to publish this exact generated KITE & ANVIL stationery image and its redacted technical/review metadata under Apache-2.0. The stationery brand is fictional in this example; no external image inputs or real-person likenesses were used.", "path": "template-gallery/qwen_low_vram_text_rendering.webp", @@ -10830,9 +10694,7 @@ ], "aiGenerated": true, "humanLikenessConsent": "synthetic", - "marks": [ - "MATERIAL CULTURE: fictional exhibition title" - ], + "marks": ["MATERIAL CULTURE: fictional exhibition title"], "requiredAttribution": [], "sourceRightsAttestation": "I hold the rights or permissions needed to publish this exact generated MATERIAL CULTURE exhibition poster and its redacted technical/review metadata under Apache-2.0. The exhibition is fictional in this example; no external image inputs or real-person likenesses were used.", "path": "template-gallery/qwen_poster_logo_text.webp", @@ -10938,9 +10800,7 @@ ], "aiGenerated": true, "humanLikenessConsent": "synthetic", - "marks": [ - "VERDA 03: fictional product name in this generated example" - ], + "marks": ["VERDA 03: fictional product name in this generated example"], "requiredAttribution": [], "sourceRightsAttestation": "I hold the rights or permissions needed to publicly redistribute this exact generated VERDA 03 poster and its redacted technical and quality metadata under Apache-2.0. VERDA 03 is a fictional product name in this example; no external image inputs or real-person likenesses were used.", "path": "template-gallery/qwen_text_rendering.webp", @@ -11526,9 +11386,7 @@ "sourceUrl": "https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14", "sourceRevision": "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14", "sourceLicense": "Maintainer-authorized file with publisher terms retained", - "modelTerms": [ - "CreativeML Open RAIL-M at the pinned Stable Diffusion v1.5 revision." - ], + "modelTerms": ["CreativeML Open RAIL-M at the pinned Stable Diffusion v1.5 revision."], "aiGenerated": true, "humanLikenessConsent": "synthetic", "marks": [], @@ -12645,9 +12503,7 @@ "sourceUrl": "https://huggingface.co/cvssp/audioldm2/tree/c8e7e189d324425c05c4c2f81214041ef4107983", "sourceRevision": "cvssp/audioldm2@c8e7e189d324425c05c4c2f81214041ef4107983", "sourceLicense": "MoDiff-authored Gallery metadata", - "modelTerms": [ - "https://huggingface.co/cvssp/audioldm2/blob/c8e7e189d324425c05c4c2f81214041ef4107983/README.md" - ], + "modelTerms": ["https://huggingface.co/cvssp/audioldm2/blob/c8e7e189d324425c05c4c2f81214041ef4107983/README.md"], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], @@ -12672,9 +12528,7 @@ "sourceUrl": "https://huggingface.co/cvssp/audioldm2/tree/c8e7e189d324425c05c4c2f81214041ef4107983", "sourceRevision": "cvssp/audioldm2@c8e7e189d324425c05c4c2f81214041ef4107983", "sourceLicense": "MoDiff-authored Gallery metadata", - "modelTerms": [ - "https://huggingface.co/cvssp/audioldm2/blob/c8e7e189d324425c05c4c2f81214041ef4107983/README.md" - ], + "modelTerms": ["https://huggingface.co/cvssp/audioldm2/blob/c8e7e189d324425c05c4c2f81214041ef4107983/README.md"], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], @@ -12699,9 +12553,7 @@ "sourceUrl": "https://huggingface.co/cvssp/audioldm2/tree/c8e7e189d324425c05c4c2f81214041ef4107983", "sourceRevision": "cvssp/audioldm2@c8e7e189d324425c05c4c2f81214041ef4107983", "sourceLicense": "MoDiff-authored Gallery metadata", - "modelTerms": [ - "https://huggingface.co/cvssp/audioldm2/blob/c8e7e189d324425c05c4c2f81214041ef4107983/README.md" - ], + "modelTerms": ["https://huggingface.co/cvssp/audioldm2/blob/c8e7e189d324425c05c4c2f81214041ef4107983/README.md"], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], @@ -12726,9 +12578,7 @@ "sourceUrl": "https://huggingface.co/cvssp/audioldm2/tree/c8e7e189d324425c05c4c2f81214041ef4107983", "sourceRevision": "cvssp/audioldm2@c8e7e189d324425c05c4c2f81214041ef4107983", "sourceLicense": "MoDiff-authored Gallery metadata", - "modelTerms": [ - "https://huggingface.co/cvssp/audioldm2/blob/c8e7e189d324425c05c4c2f81214041ef4107983/README.md" - ], + "modelTerms": ["https://huggingface.co/cvssp/audioldm2/blob/c8e7e189d324425c05c4c2f81214041ef4107983/README.md"], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], @@ -13121,9 +12971,7 @@ "sourceUrl": "https://huggingface.co/lodestones/Chroma1-HD/tree/0e0c60ece1e82b17cb7f77342d765ba5024c40c0", "sourceRevision": "lodestones/Chroma1-HD@0e0c60ece1e82b17cb7f77342d765ba5024c40c0", "sourceLicense": "MoDiff-authored Gallery metadata", - "modelTerms": [ - "https://huggingface.co/lodestones/Chroma1-HD/tree/0e0c60ece1e82b17cb7f77342d765ba5024c40c0" - ], + "modelTerms": ["https://huggingface.co/lodestones/Chroma1-HD/tree/0e0c60ece1e82b17cb7f77342d765ba5024c40c0"], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], @@ -13148,9 +12996,7 @@ "sourceUrl": "https://huggingface.co/lodestones/Chroma1-HD/tree/0e0c60ece1e82b17cb7f77342d765ba5024c40c0", "sourceRevision": "lodestones/Chroma1-HD@0e0c60ece1e82b17cb7f77342d765ba5024c40c0", "sourceLicense": "MoDiff-authored Gallery metadata", - "modelTerms": [ - "https://huggingface.co/lodestones/Chroma1-HD/tree/0e0c60ece1e82b17cb7f77342d765ba5024c40c0" - ], + "modelTerms": ["https://huggingface.co/lodestones/Chroma1-HD/tree/0e0c60ece1e82b17cb7f77342d765ba5024c40c0"], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], @@ -13175,9 +13021,7 @@ "sourceUrl": "https://huggingface.co/lodestones/Chroma1-HD/tree/0e0c60ece1e82b17cb7f77342d765ba5024c40c0", "sourceRevision": "lodestones/Chroma1-HD@0e0c60ece1e82b17cb7f77342d765ba5024c40c0", "sourceLicense": "MoDiff-authored Gallery metadata", - "modelTerms": [ - "https://huggingface.co/lodestones/Chroma1-HD/tree/0e0c60ece1e82b17cb7f77342d765ba5024c40c0" - ], + "modelTerms": ["https://huggingface.co/lodestones/Chroma1-HD/tree/0e0c60ece1e82b17cb7f77342d765ba5024c40c0"], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], @@ -13202,9 +13046,7 @@ "sourceUrl": "https://huggingface.co/lodestones/Chroma1-HD/tree/0e0c60ece1e82b17cb7f77342d765ba5024c40c0", "sourceRevision": "lodestones/Chroma1-HD@0e0c60ece1e82b17cb7f77342d765ba5024c40c0", "sourceLicense": "MoDiff-authored Gallery metadata", - "modelTerms": [ - "https://huggingface.co/lodestones/Chroma1-HD/tree/0e0c60ece1e82b17cb7f77342d765ba5024c40c0" - ], + "modelTerms": ["https://huggingface.co/lodestones/Chroma1-HD/tree/0e0c60ece1e82b17cb7f77342d765ba5024c40c0"], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], @@ -16548,9 +16390,7 @@ "sourceUrl": "https://huggingface.co/zai-org/GLM-Image/tree/2c433cc0cbc293bde2ac8ca9624f279b5d23fcf4", "sourceRevision": "zai-org/GLM-Image@2c433cc0cbc293bde2ac8ca9624f279b5d23fcf4", "sourceLicense": "MoDiff-authored Gallery metadata", - "modelTerms": [ - "mit. https://huggingface.co/zai-org/GLM-Image/tree/2c433cc0cbc293bde2ac8ca9624f279b5d23fcf4" - ], + "modelTerms": ["mit. https://huggingface.co/zai-org/GLM-Image/tree/2c433cc0cbc293bde2ac8ca9624f279b5d23fcf4"], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], @@ -16575,9 +16415,7 @@ "sourceUrl": "https://huggingface.co/zai-org/GLM-Image/tree/2c433cc0cbc293bde2ac8ca9624f279b5d23fcf4", "sourceRevision": "zai-org/GLM-Image@2c433cc0cbc293bde2ac8ca9624f279b5d23fcf4", "sourceLicense": "MoDiff-authored Gallery metadata", - "modelTerms": [ - "mit. https://huggingface.co/zai-org/GLM-Image/tree/2c433cc0cbc293bde2ac8ca9624f279b5d23fcf4" - ], + "modelTerms": ["mit. https://huggingface.co/zai-org/GLM-Image/tree/2c433cc0cbc293bde2ac8ca9624f279b5d23fcf4"], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], @@ -16602,9 +16440,7 @@ "sourceUrl": "https://huggingface.co/zai-org/GLM-Image/tree/2c433cc0cbc293bde2ac8ca9624f279b5d23fcf4", "sourceRevision": "zai-org/GLM-Image@2c433cc0cbc293bde2ac8ca9624f279b5d23fcf4", "sourceLicense": "MoDiff-authored Gallery metadata", - "modelTerms": [ - "mit. https://huggingface.co/zai-org/GLM-Image/tree/2c433cc0cbc293bde2ac8ca9624f279b5d23fcf4" - ], + "modelTerms": ["mit. https://huggingface.co/zai-org/GLM-Image/tree/2c433cc0cbc293bde2ac8ca9624f279b5d23fcf4"], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], @@ -16629,9 +16465,7 @@ "sourceUrl": "https://huggingface.co/zai-org/GLM-Image/tree/2c433cc0cbc293bde2ac8ca9624f279b5d23fcf4", "sourceRevision": "zai-org/GLM-Image@2c433cc0cbc293bde2ac8ca9624f279b5d23fcf4", "sourceLicense": "MoDiff-authored Gallery metadata", - "modelTerms": [ - "mit. https://huggingface.co/zai-org/GLM-Image/tree/2c433cc0cbc293bde2ac8ca9624f279b5d23fcf4" - ], + "modelTerms": ["mit. https://huggingface.co/zai-org/GLM-Image/tree/2c433cc0cbc293bde2ac8ca9624f279b5d23fcf4"], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], @@ -17132,9 +16966,7 @@ "sourceUrl": "https://huggingface.co/deepseek-community/Janus-Pro-1B/tree/1655280bb75959cc1cb85529a2a8b26e7016072e", "sourceRevision": "deepseek-community/Janus-Pro-1B@1655280bb75959cc1cb85529a2a8b26e7016072e", "sourceLicense": "MoDiff-authored Gallery metadata", - "modelTerms": [ - "https://github.com/deepseek-ai/Janus/blob/main/LICENSE-MODEL" - ], + "modelTerms": ["https://github.com/deepseek-ai/Janus/blob/main/LICENSE-MODEL"], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], @@ -17159,9 +16991,7 @@ "sourceUrl": "https://huggingface.co/deepseek-community/Janus-Pro-1B/tree/1655280bb75959cc1cb85529a2a8b26e7016072e", "sourceRevision": "deepseek-community/Janus-Pro-1B@1655280bb75959cc1cb85529a2a8b26e7016072e", "sourceLicense": "MoDiff-authored Gallery metadata", - "modelTerms": [ - "https://github.com/deepseek-ai/Janus/blob/main/LICENSE-MODEL" - ], + "modelTerms": ["https://github.com/deepseek-ai/Janus/blob/main/LICENSE-MODEL"], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], @@ -17186,9 +17016,7 @@ "sourceUrl": "https://huggingface.co/deepseek-community/Janus-Pro-1B/tree/1655280bb75959cc1cb85529a2a8b26e7016072e", "sourceRevision": "deepseek-community/Janus-Pro-1B@1655280bb75959cc1cb85529a2a8b26e7016072e", "sourceLicense": "MoDiff-authored Gallery metadata", - "modelTerms": [ - "https://github.com/deepseek-ai/Janus/blob/main/LICENSE-MODEL" - ], + "modelTerms": ["https://github.com/deepseek-ai/Janus/blob/main/LICENSE-MODEL"], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], @@ -17213,9 +17041,7 @@ "sourceUrl": "https://huggingface.co/deepseek-community/Janus-Pro-1B/tree/1655280bb75959cc1cb85529a2a8b26e7016072e", "sourceRevision": "deepseek-community/Janus-Pro-1B@1655280bb75959cc1cb85529a2a8b26e7016072e", "sourceLicense": "MoDiff-authored Gallery metadata", - "modelTerms": [ - "https://github.com/deepseek-ai/Janus/blob/main/LICENSE-MODEL" - ], + "modelTerms": ["https://github.com/deepseek-ai/Janus/blob/main/LICENSE-MODEL"], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], @@ -17240,9 +17066,7 @@ "sourceUrl": "https://huggingface.co/deepseek-community/Janus-Pro-1B/tree/1655280bb75959cc1cb85529a2a8b26e7016072e", "sourceRevision": "deepseek-community/Janus-Pro-1B@1655280bb75959cc1cb85529a2a8b26e7016072e", "sourceLicense": "MoDiff-authored Gallery metadata", - "modelTerms": [ - "https://github.com/deepseek-ai/Janus/blob/main/LICENSE-MODEL" - ], + "modelTerms": ["https://github.com/deepseek-ai/Janus/blob/main/LICENSE-MODEL"], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], @@ -17267,9 +17091,7 @@ "sourceUrl": "https://huggingface.co/deepseek-community/Janus-Pro-1B/tree/1655280bb75959cc1cb85529a2a8b26e7016072e", "sourceRevision": "deepseek-community/Janus-Pro-1B@1655280bb75959cc1cb85529a2a8b26e7016072e", "sourceLicense": "MoDiff-authored Gallery metadata", - "modelTerms": [ - "https://github.com/deepseek-ai/Janus/blob/main/LICENSE-MODEL" - ], + "modelTerms": ["https://github.com/deepseek-ai/Janus/blob/main/LICENSE-MODEL"], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], @@ -17294,9 +17116,7 @@ "sourceUrl": "https://huggingface.co/deepseek-community/Janus-Pro-1B/tree/1655280bb75959cc1cb85529a2a8b26e7016072e", "sourceRevision": "deepseek-community/Janus-Pro-1B@1655280bb75959cc1cb85529a2a8b26e7016072e", "sourceLicense": "MoDiff-authored Gallery metadata", - "modelTerms": [ - "https://github.com/deepseek-ai/Janus/blob/main/LICENSE-MODEL" - ], + "modelTerms": ["https://github.com/deepseek-ai/Janus/blob/main/LICENSE-MODEL"], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], @@ -17321,9 +17141,7 @@ "sourceUrl": "https://huggingface.co/deepseek-community/Janus-Pro-1B/tree/1655280bb75959cc1cb85529a2a8b26e7016072e", "sourceRevision": "deepseek-community/Janus-Pro-1B@1655280bb75959cc1cb85529a2a8b26e7016072e", "sourceLicense": "MoDiff-authored Gallery metadata", - "modelTerms": [ - "https://github.com/deepseek-ai/Janus/blob/main/LICENSE-MODEL" - ], + "modelTerms": ["https://github.com/deepseek-ai/Janus/blob/main/LICENSE-MODEL"], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], @@ -17348,9 +17166,7 @@ "sourceUrl": "https://huggingface.co/deepseek-community/Janus-Pro-1B/tree/1655280bb75959cc1cb85529a2a8b26e7016072e", "sourceRevision": "deepseek-community/Janus-Pro-1B@1655280bb75959cc1cb85529a2a8b26e7016072e", "sourceLicense": "MoDiff-authored Gallery metadata", - "modelTerms": [ - "https://github.com/deepseek-ai/Janus/blob/main/LICENSE-MODEL" - ], + "modelTerms": ["https://github.com/deepseek-ai/Janus/blob/main/LICENSE-MODEL"], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], @@ -17375,9 +17191,7 @@ "sourceUrl": "https://huggingface.co/deepseek-community/Janus-Pro-1B/tree/1655280bb75959cc1cb85529a2a8b26e7016072e", "sourceRevision": "deepseek-community/Janus-Pro-1B@1655280bb75959cc1cb85529a2a8b26e7016072e", "sourceLicense": "MoDiff-authored Gallery metadata", - "modelTerms": [ - "https://github.com/deepseek-ai/Janus/blob/main/LICENSE-MODEL" - ], + "modelTerms": ["https://github.com/deepseek-ai/Janus/blob/main/LICENSE-MODEL"], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], @@ -17402,9 +17216,7 @@ "sourceUrl": "https://huggingface.co/deepseek-community/Janus-Pro-1B/tree/1655280bb75959cc1cb85529a2a8b26e7016072e", "sourceRevision": "deepseek-community/Janus-Pro-1B@1655280bb75959cc1cb85529a2a8b26e7016072e", "sourceLicense": "MoDiff-authored Gallery metadata", - "modelTerms": [ - "https://github.com/deepseek-ai/Janus/blob/main/LICENSE-MODEL" - ], + "modelTerms": ["https://github.com/deepseek-ai/Janus/blob/main/LICENSE-MODEL"], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], @@ -17429,9 +17241,7 @@ "sourceUrl": "https://huggingface.co/deepseek-community/Janus-Pro-1B/tree/1655280bb75959cc1cb85529a2a8b26e7016072e", "sourceRevision": "deepseek-community/Janus-Pro-1B@1655280bb75959cc1cb85529a2a8b26e7016072e", "sourceLicense": "MoDiff-authored Gallery metadata", - "modelTerms": [ - "https://github.com/deepseek-ai/Janus/blob/main/LICENSE-MODEL" - ], + "modelTerms": ["https://github.com/deepseek-ai/Janus/blob/main/LICENSE-MODEL"], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], @@ -18212,9 +18022,7 @@ "sourceUrl": "https://huggingface.co/maxin-cn/Latte-1/tree/0653024365272f061fc44d1078134df22842b687", "sourceRevision": "maxin-cn/Latte-1@0653024365272f061fc44d1078134df22842b687", "sourceLicense": "MoDiff-authored Gallery metadata", - "modelTerms": [ - "https://huggingface.co/maxin-cn/Latte-1/tree/0653024365272f061fc44d1078134df22842b687" - ], + "modelTerms": ["https://huggingface.co/maxin-cn/Latte-1/tree/0653024365272f061fc44d1078134df22842b687"], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], @@ -18239,9 +18047,7 @@ "sourceUrl": "https://huggingface.co/maxin-cn/Latte-1/tree/0653024365272f061fc44d1078134df22842b687", "sourceRevision": "maxin-cn/Latte-1@0653024365272f061fc44d1078134df22842b687", "sourceLicense": "MoDiff-authored Gallery metadata", - "modelTerms": [ - "https://huggingface.co/maxin-cn/Latte-1/tree/0653024365272f061fc44d1078134df22842b687" - ], + "modelTerms": ["https://huggingface.co/maxin-cn/Latte-1/tree/0653024365272f061fc44d1078134df22842b687"], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], @@ -18266,9 +18072,7 @@ "sourceUrl": "https://huggingface.co/maxin-cn/Latte-1/tree/0653024365272f061fc44d1078134df22842b687", "sourceRevision": "maxin-cn/Latte-1@0653024365272f061fc44d1078134df22842b687", "sourceLicense": "MoDiff-authored Gallery metadata", - "modelTerms": [ - "https://huggingface.co/maxin-cn/Latte-1/tree/0653024365272f061fc44d1078134df22842b687" - ], + "modelTerms": ["https://huggingface.co/maxin-cn/Latte-1/tree/0653024365272f061fc44d1078134df22842b687"], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], @@ -18293,9 +18097,7 @@ "sourceUrl": "https://huggingface.co/maxin-cn/Latte-1/tree/0653024365272f061fc44d1078134df22842b687", "sourceRevision": "maxin-cn/Latte-1@0653024365272f061fc44d1078134df22842b687", "sourceLicense": "MoDiff-authored Gallery metadata", - "modelTerms": [ - "https://huggingface.co/maxin-cn/Latte-1/tree/0653024365272f061fc44d1078134df22842b687" - ], + "modelTerms": ["https://huggingface.co/maxin-cn/Latte-1/tree/0653024365272f061fc44d1078134df22842b687"], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], @@ -18734,9 +18536,7 @@ "sourceUrl": "https://huggingface.co/Lightricks/LTX-2/tree/47da56e2ad66ce4125a9922b4a8826bf407f9d0a", "sourceRevision": "Lightricks/LTX-2@47da56e2ad66ce4125a9922b4a8826bf407f9d0a", "sourceLicense": "MoDiff-authored Gallery metadata", - "modelTerms": [ - "https://huggingface.co/Lightricks/LTX-2/blob/47da56e2ad66ce4125a9922b4a8826bf407f9d0a/LICENSE" - ], + "modelTerms": ["https://huggingface.co/Lightricks/LTX-2/blob/47da56e2ad66ce4125a9922b4a8826bf407f9d0a/LICENSE"], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], @@ -18761,9 +18561,7 @@ "sourceUrl": "https://huggingface.co/Lightricks/LTX-2/tree/47da56e2ad66ce4125a9922b4a8826bf407f9d0a", "sourceRevision": "Lightricks/LTX-2@47da56e2ad66ce4125a9922b4a8826bf407f9d0a", "sourceLicense": "MoDiff-authored Gallery metadata", - "modelTerms": [ - "https://huggingface.co/Lightricks/LTX-2/blob/47da56e2ad66ce4125a9922b4a8826bf407f9d0a/LICENSE" - ], + "modelTerms": ["https://huggingface.co/Lightricks/LTX-2/blob/47da56e2ad66ce4125a9922b4a8826bf407f9d0a/LICENSE"], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], @@ -18788,9 +18586,7 @@ "sourceUrl": "https://huggingface.co/Lightricks/LTX-2/tree/47da56e2ad66ce4125a9922b4a8826bf407f9d0a", "sourceRevision": "Lightricks/LTX-2@47da56e2ad66ce4125a9922b4a8826bf407f9d0a", "sourceLicense": "MoDiff-authored Gallery metadata", - "modelTerms": [ - "https://huggingface.co/Lightricks/LTX-2/blob/47da56e2ad66ce4125a9922b4a8826bf407f9d0a/LICENSE" - ], + "modelTerms": ["https://huggingface.co/Lightricks/LTX-2/blob/47da56e2ad66ce4125a9922b4a8826bf407f9d0a/LICENSE"], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], @@ -18815,9 +18611,7 @@ "sourceUrl": "https://huggingface.co/Lightricks/LTX-2/tree/47da56e2ad66ce4125a9922b4a8826bf407f9d0a", "sourceRevision": "Lightricks/LTX-2@47da56e2ad66ce4125a9922b4a8826bf407f9d0a", "sourceLicense": "MoDiff-authored Gallery metadata", - "modelTerms": [ - "https://huggingface.co/Lightricks/LTX-2/blob/47da56e2ad66ce4125a9922b4a8826bf407f9d0a/LICENSE" - ], + "modelTerms": ["https://huggingface.co/Lightricks/LTX-2/blob/47da56e2ad66ce4125a9922b4a8826bf407f9d0a/LICENSE"], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], @@ -18842,9 +18636,7 @@ "sourceUrl": "https://huggingface.co/Lightricks/LTX-2/tree/47da56e2ad66ce4125a9922b4a8826bf407f9d0a", "sourceRevision": "Lightricks/LTX-2@47da56e2ad66ce4125a9922b4a8826bf407f9d0a", "sourceLicense": "MoDiff-authored Gallery metadata", - "modelTerms": [ - "https://huggingface.co/Lightricks/LTX-2/tree/47da56e2ad66ce4125a9922b4a8826bf407f9d0a" - ], + "modelTerms": ["https://huggingface.co/Lightricks/LTX-2/tree/47da56e2ad66ce4125a9922b4a8826bf407f9d0a"], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], @@ -18869,9 +18661,7 @@ "sourceUrl": "https://huggingface.co/Lightricks/LTX-2/tree/47da56e2ad66ce4125a9922b4a8826bf407f9d0a", "sourceRevision": "Lightricks/LTX-2@47da56e2ad66ce4125a9922b4a8826bf407f9d0a", "sourceLicense": "MoDiff-authored Gallery metadata", - "modelTerms": [ - "https://huggingface.co/Lightricks/LTX-2/tree/47da56e2ad66ce4125a9922b4a8826bf407f9d0a" - ], + "modelTerms": ["https://huggingface.co/Lightricks/LTX-2/tree/47da56e2ad66ce4125a9922b4a8826bf407f9d0a"], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], @@ -18896,9 +18686,7 @@ "sourceUrl": "https://huggingface.co/Lightricks/LTX-2/tree/47da56e2ad66ce4125a9922b4a8826bf407f9d0a", "sourceRevision": "Lightricks/LTX-2@47da56e2ad66ce4125a9922b4a8826bf407f9d0a", "sourceLicense": "MoDiff-authored Gallery metadata", - "modelTerms": [ - "https://huggingface.co/Lightricks/LTX-2/tree/47da56e2ad66ce4125a9922b4a8826bf407f9d0a" - ], + "modelTerms": ["https://huggingface.co/Lightricks/LTX-2/tree/47da56e2ad66ce4125a9922b4a8826bf407f9d0a"], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], @@ -18923,9 +18711,7 @@ "sourceUrl": "https://huggingface.co/Lightricks/LTX-2/tree/47da56e2ad66ce4125a9922b4a8826bf407f9d0a", "sourceRevision": "Lightricks/LTX-2@47da56e2ad66ce4125a9922b4a8826bf407f9d0a", "sourceLicense": "MoDiff-authored Gallery metadata", - "modelTerms": [ - "https://huggingface.co/Lightricks/LTX-2/tree/47da56e2ad66ce4125a9922b4a8826bf407f9d0a" - ], + "modelTerms": ["https://huggingface.co/Lightricks/LTX-2/tree/47da56e2ad66ce4125a9922b4a8826bf407f9d0a"], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], @@ -18950,9 +18736,7 @@ "sourceUrl": "https://huggingface.co/Lightricks/LTX-2/tree/47da56e2ad66ce4125a9922b4a8826bf407f9d0a", "sourceRevision": "Lightricks/LTX-2@47da56e2ad66ce4125a9922b4a8826bf407f9d0a", "sourceLicense": "MoDiff-authored Gallery metadata", - "modelTerms": [ - "https://huggingface.co/Lightricks/LTX-2/tree/47da56e2ad66ce4125a9922b4a8826bf407f9d0a" - ], + "modelTerms": ["https://huggingface.co/Lightricks/LTX-2/tree/47da56e2ad66ce4125a9922b4a8826bf407f9d0a"], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], @@ -18977,9 +18761,7 @@ "sourceUrl": "https://huggingface.co/Lightricks/LTX-2/tree/47da56e2ad66ce4125a9922b4a8826bf407f9d0a", "sourceRevision": "Lightricks/LTX-2@47da56e2ad66ce4125a9922b4a8826bf407f9d0a", "sourceLicense": "MoDiff-authored Gallery metadata", - "modelTerms": [ - "https://huggingface.co/Lightricks/LTX-2/tree/47da56e2ad66ce4125a9922b4a8826bf407f9d0a" - ], + "modelTerms": ["https://huggingface.co/Lightricks/LTX-2/tree/47da56e2ad66ce4125a9922b4a8826bf407f9d0a"], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], @@ -19004,9 +18786,7 @@ "sourceUrl": "https://huggingface.co/Lightricks/LTX-2/tree/47da56e2ad66ce4125a9922b4a8826bf407f9d0a", "sourceRevision": "Lightricks/LTX-2@47da56e2ad66ce4125a9922b4a8826bf407f9d0a", "sourceLicense": "MoDiff-authored Gallery metadata", - "modelTerms": [ - "https://huggingface.co/Lightricks/LTX-2/tree/47da56e2ad66ce4125a9922b4a8826bf407f9d0a" - ], + "modelTerms": ["https://huggingface.co/Lightricks/LTX-2/tree/47da56e2ad66ce4125a9922b4a8826bf407f9d0a"], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], @@ -19031,9 +18811,7 @@ "sourceUrl": "https://huggingface.co/Lightricks/LTX-2/tree/47da56e2ad66ce4125a9922b4a8826bf407f9d0a", "sourceRevision": "Lightricks/LTX-2@47da56e2ad66ce4125a9922b4a8826bf407f9d0a", "sourceLicense": "MoDiff-authored Gallery metadata", - "modelTerms": [ - "https://huggingface.co/Lightricks/LTX-2/tree/47da56e2ad66ce4125a9922b4a8826bf407f9d0a" - ], + "modelTerms": ["https://huggingface.co/Lightricks/LTX-2/tree/47da56e2ad66ce4125a9922b4a8826bf407f9d0a"], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], @@ -19058,9 +18836,7 @@ "sourceUrl": "https://huggingface.co/Lightricks/LTX-2/tree/47da56e2ad66ce4125a9922b4a8826bf407f9d0a", "sourceRevision": "Lightricks/LTX-2@47da56e2ad66ce4125a9922b4a8826bf407f9d0a", "sourceLicense": "MoDiff-authored Gallery metadata", - "modelTerms": [ - "https://huggingface.co/Lightricks/LTX-2/blob/47da56e2ad66ce4125a9922b4a8826bf407f9d0a/LICENSE" - ], + "modelTerms": ["https://huggingface.co/Lightricks/LTX-2/blob/47da56e2ad66ce4125a9922b4a8826bf407f9d0a/LICENSE"], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], @@ -19085,9 +18861,7 @@ "sourceUrl": "https://huggingface.co/Lightricks/LTX-2/tree/47da56e2ad66ce4125a9922b4a8826bf407f9d0a", "sourceRevision": "Lightricks/LTX-2@47da56e2ad66ce4125a9922b4a8826bf407f9d0a", "sourceLicense": "MoDiff-authored Gallery metadata", - "modelTerms": [ - "https://huggingface.co/Lightricks/LTX-2/blob/47da56e2ad66ce4125a9922b4a8826bf407f9d0a/LICENSE" - ], + "modelTerms": ["https://huggingface.co/Lightricks/LTX-2/blob/47da56e2ad66ce4125a9922b4a8826bf407f9d0a/LICENSE"], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], @@ -19112,9 +18886,7 @@ "sourceUrl": "https://huggingface.co/Lightricks/LTX-2/tree/47da56e2ad66ce4125a9922b4a8826bf407f9d0a", "sourceRevision": "Lightricks/LTX-2@47da56e2ad66ce4125a9922b4a8826bf407f9d0a", "sourceLicense": "MoDiff-authored Gallery metadata", - "modelTerms": [ - "https://huggingface.co/Lightricks/LTX-2/blob/47da56e2ad66ce4125a9922b4a8826bf407f9d0a/LICENSE" - ], + "modelTerms": ["https://huggingface.co/Lightricks/LTX-2/blob/47da56e2ad66ce4125a9922b4a8826bf407f9d0a/LICENSE"], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], @@ -19139,9 +18911,7 @@ "sourceUrl": "https://huggingface.co/Lightricks/LTX-2/tree/47da56e2ad66ce4125a9922b4a8826bf407f9d0a", "sourceRevision": "Lightricks/LTX-2@47da56e2ad66ce4125a9922b4a8826bf407f9d0a", "sourceLicense": "MoDiff-authored Gallery metadata", - "modelTerms": [ - "https://huggingface.co/Lightricks/LTX-2/blob/47da56e2ad66ce4125a9922b4a8826bf407f9d0a/LICENSE" - ], + "modelTerms": ["https://huggingface.co/Lightricks/LTX-2/blob/47da56e2ad66ce4125a9922b4a8826bf407f9d0a/LICENSE"], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], @@ -19166,9 +18936,7 @@ "sourceUrl": "https://huggingface.co/Lightricks/LTX-2/tree/47da56e2ad66ce4125a9922b4a8826bf407f9d0a", "sourceRevision": "Lightricks/LTX-2@47da56e2ad66ce4125a9922b4a8826bf407f9d0a", "sourceLicense": "MoDiff-authored Gallery metadata", - "modelTerms": [ - "https://huggingface.co/Lightricks/LTX-2/tree/47da56e2ad66ce4125a9922b4a8826bf407f9d0a" - ], + "modelTerms": ["https://huggingface.co/Lightricks/LTX-2/tree/47da56e2ad66ce4125a9922b4a8826bf407f9d0a"], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], @@ -19193,9 +18961,7 @@ "sourceUrl": "https://huggingface.co/Lightricks/LTX-2/tree/47da56e2ad66ce4125a9922b4a8826bf407f9d0a", "sourceRevision": "Lightricks/LTX-2@47da56e2ad66ce4125a9922b4a8826bf407f9d0a", "sourceLicense": "MoDiff-authored Gallery metadata", - "modelTerms": [ - "https://huggingface.co/Lightricks/LTX-2/tree/47da56e2ad66ce4125a9922b4a8826bf407f9d0a" - ], + "modelTerms": ["https://huggingface.co/Lightricks/LTX-2/tree/47da56e2ad66ce4125a9922b4a8826bf407f9d0a"], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], @@ -19220,9 +18986,7 @@ "sourceUrl": "https://huggingface.co/Lightricks/LTX-2/tree/47da56e2ad66ce4125a9922b4a8826bf407f9d0a", "sourceRevision": "Lightricks/LTX-2@47da56e2ad66ce4125a9922b4a8826bf407f9d0a", "sourceLicense": "MoDiff-authored Gallery metadata", - "modelTerms": [ - "https://huggingface.co/Lightricks/LTX-2/tree/47da56e2ad66ce4125a9922b4a8826bf407f9d0a" - ], + "modelTerms": ["https://huggingface.co/Lightricks/LTX-2/tree/47da56e2ad66ce4125a9922b4a8826bf407f9d0a"], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], @@ -19247,9 +19011,7 @@ "sourceUrl": "https://huggingface.co/Lightricks/LTX-2/tree/47da56e2ad66ce4125a9922b4a8826bf407f9d0a", "sourceRevision": "Lightricks/LTX-2@47da56e2ad66ce4125a9922b4a8826bf407f9d0a", "sourceLicense": "MoDiff-authored Gallery metadata", - "modelTerms": [ - "https://huggingface.co/Lightricks/LTX-2/tree/47da56e2ad66ce4125a9922b4a8826bf407f9d0a" - ], + "modelTerms": ["https://huggingface.co/Lightricks/LTX-2/tree/47da56e2ad66ce4125a9922b4a8826bf407f9d0a"], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], @@ -22863,9 +22625,7 @@ "sourceUrl": "https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14", "sourceRevision": "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14", "sourceLicense": "MoDiff-authored Gallery metadata", - "modelTerms": [ - "CreativeML Open RAIL-M at the pinned Stable Diffusion v1.5 revision." - ], + "modelTerms": ["CreativeML Open RAIL-M at the pinned Stable Diffusion v1.5 revision."], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], @@ -22890,9 +22650,7 @@ "sourceUrl": "https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14", "sourceRevision": "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14", "sourceLicense": "MoDiff-authored Gallery metadata", - "modelTerms": [ - "CreativeML Open RAIL-M at the pinned Stable Diffusion v1.5 revision." - ], + "modelTerms": ["CreativeML Open RAIL-M at the pinned Stable Diffusion v1.5 revision."], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], @@ -22917,9 +22675,7 @@ "sourceUrl": "https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14", "sourceRevision": "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14", "sourceLicense": "MoDiff-authored Gallery metadata", - "modelTerms": [ - "CreativeML Open RAIL-M at the pinned Stable Diffusion v1.5 revision." - ], + "modelTerms": ["CreativeML Open RAIL-M at the pinned Stable Diffusion v1.5 revision."], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], @@ -22944,9 +22700,7 @@ "sourceUrl": "https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/451f4fe16113bff5a5d2269ed5ad43b0592e9a14", "sourceRevision": "stable-diffusion-v1-5/stable-diffusion-v1-5@451f4fe16113bff5a5d2269ed5ad43b0592e9a14", "sourceLicense": "MoDiff-authored Gallery metadata", - "modelTerms": [ - "CreativeML Open RAIL-M at the pinned Stable Diffusion v1.5 revision." - ], + "modelTerms": ["CreativeML Open RAIL-M at the pinned Stable Diffusion v1.5 revision."], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], @@ -25803,6 +25557,222 @@ "publicationBasis": "Maintainer approved this exact saved Spandrel 2× technical preview and confirmed redistribution rights.", "provenanceTemplateId": "spandrel_x2_synthetic_gradient" }, + { + "path": "template-gallery/reviews/stable_audio_glass_roof_rain.original-provenance.json", + "sha256": "sha256:bytes:26867757b5d173fd0561791ca6114c84c2cb07b0790c2c2c292b3a109af12bc9", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/stabilityai/stable-audio-open-1.0/tree/f21265c1e2710b3bd2386596943f0007f55f802e", + "sourceRevision": "stabilityai/stable-audio-open-1.0@f21265c1e2710b3bd2386596943f0007f55f802e", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "https://huggingface.co/stabilityai/stable-audio-open-1.0/blob/f21265c1e2710b3bd2386596943f0007f55f802e/LICENSE.md" + ], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "stabilityai/stable-audio-open-1.0@f21265c1e2710b3bd2386596943f0007f55f802e https://huggingface.co/stabilityai/stable-audio-open-1.0/tree/f21265c1e2710b3bd2386596943f0007f55f802e" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "a7a2ce4e3e9bdfddcd33a4f3c2a7df0b69c0e815eef0493a9f0a748acf1716b8", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "stable_audio_glass_roof_rain" + }, + { + "path": "template-gallery/reviews/stable_audio_glass_roof_rain.original-review.json", + "sha256": "sha256:bytes:57dc1622e671d71d0f34df6890aaf520a98e64dd2f333edcac58fb6a641afea9", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/stabilityai/stable-audio-open-1.0/tree/f21265c1e2710b3bd2386596943f0007f55f802e", + "sourceRevision": "stabilityai/stable-audio-open-1.0@f21265c1e2710b3bd2386596943f0007f55f802e", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "https://huggingface.co/stabilityai/stable-audio-open-1.0/blob/f21265c1e2710b3bd2386596943f0007f55f802e/LICENSE.md" + ], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "stabilityai/stable-audio-open-1.0@f21265c1e2710b3bd2386596943f0007f55f802e https://huggingface.co/stabilityai/stable-audio-open-1.0/tree/f21265c1e2710b3bd2386596943f0007f55f802e" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "a7a2ce4e3e9bdfddcd33a4f3c2a7df0b69c0e815eef0493a9f0a748acf1716b8", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "stable_audio_glass_roof_rain" + }, + { + "path": "template-gallery/reviews/stable_audio_glass_roof_rain.quality-review.json", + "sha256": "sha256:bytes:2aa5a85090091d93cf2b23494790f75146c523fe1880bef0b0212d9f8bd7d2d5", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/stabilityai/stable-audio-open-1.0/tree/f21265c1e2710b3bd2386596943f0007f55f802e", + "sourceRevision": "stabilityai/stable-audio-open-1.0@f21265c1e2710b3bd2386596943f0007f55f802e", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "https://huggingface.co/stabilityai/stable-audio-open-1.0/blob/f21265c1e2710b3bd2386596943f0007f55f802e/LICENSE.md" + ], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "stabilityai/stable-audio-open-1.0@f21265c1e2710b3bd2386596943f0007f55f802e https://huggingface.co/stabilityai/stable-audio-open-1.0/tree/f21265c1e2710b3bd2386596943f0007f55f802e" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "a7a2ce4e3e9bdfddcd33a4f3c2a7df0b69c0e815eef0493a9f0a748acf1716b8", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "stable_audio_glass_roof_rain" + }, + { + "path": "template-gallery/reviews/stable_audio_glass_roof_rain.retained-template-provenance.json", + "sha256": "sha256:bytes:6681cbf847e93d8e25b0bde0f61aaa1d7928e68d439875d8c204c69dc55fb7e9", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/stabilityai/stable-audio-open-1.0/tree/f21265c1e2710b3bd2386596943f0007f55f802e", + "sourceRevision": "stabilityai/stable-audio-open-1.0@f21265c1e2710b3bd2386596943f0007f55f802e", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "https://huggingface.co/stabilityai/stable-audio-open-1.0/blob/f21265c1e2710b3bd2386596943f0007f55f802e/LICENSE.md" + ], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "stabilityai/stable-audio-open-1.0@f21265c1e2710b3bd2386596943f0007f55f802e https://huggingface.co/stabilityai/stable-audio-open-1.0/tree/f21265c1e2710b3bd2386596943f0007f55f802e" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "a7a2ce4e3e9bdfddcd33a4f3c2a7df0b69c0e815eef0493a9f0a748acf1716b8", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "stable_audio_glass_roof_rain" + }, + { + "path": "template-gallery/reviews/stable_video_lighthouse_headland.original-provenance.json", + "sha256": "sha256:bytes:25bb70c7420bc425e8d919e74d2a48e7debf888e362b5c6da84ae841878cab74", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/stabilityai/stable-video-diffusion-img2vid-xt-1-1/tree/043843887ccd51926e3efed36270444a838e7861", + "sourceRevision": "stabilityai/stable-video-diffusion-img2vid-xt-1-1@043843887ccd51926e3efed36270444a838e7861", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "https://huggingface.co/stabilityai/stable-video-diffusion-img2vid-xt-1-1/blob/043843887ccd51926e3efed36270444a838e7861/LICENSE.md" + ], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "stabilityai/stable-video-diffusion-img2vid-xt-1-1@043843887ccd51926e3efed36270444a838e7861 https://huggingface.co/stabilityai/stable-video-diffusion-img2vid-xt-1-1/tree/043843887ccd51926e3efed36270444a838e7861" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "a7a2ce4e3e9bdfddcd33a4f3c2a7df0b69c0e815eef0493a9f0a748acf1716b8", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "stable_video_lighthouse_headland" + }, + { + "path": "template-gallery/reviews/stable_video_lighthouse_headland.original-review.json", + "sha256": "sha256:bytes:9c2dbec34ba3818608ecd4e0f72729926d8ea1d536e90fb2e1a64d3cb1cad597", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/stabilityai/stable-video-diffusion-img2vid-xt-1-1/tree/043843887ccd51926e3efed36270444a838e7861", + "sourceRevision": "stabilityai/stable-video-diffusion-img2vid-xt-1-1@043843887ccd51926e3efed36270444a838e7861", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "https://huggingface.co/stabilityai/stable-video-diffusion-img2vid-xt-1-1/blob/043843887ccd51926e3efed36270444a838e7861/LICENSE.md" + ], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "stabilityai/stable-video-diffusion-img2vid-xt-1-1@043843887ccd51926e3efed36270444a838e7861 https://huggingface.co/stabilityai/stable-video-diffusion-img2vid-xt-1-1/tree/043843887ccd51926e3efed36270444a838e7861" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "a7a2ce4e3e9bdfddcd33a4f3c2a7df0b69c0e815eef0493a9f0a748acf1716b8", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "stable_video_lighthouse_headland" + }, + { + "path": "template-gallery/reviews/stable_video_lighthouse_headland.quality-review.json", + "sha256": "sha256:bytes:f61d4759e7dd2ef99f9553cce415e5f278eca5c61c68391935b6a5d9ac90ad3d", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/stabilityai/stable-video-diffusion-img2vid-xt-1-1/tree/043843887ccd51926e3efed36270444a838e7861", + "sourceRevision": "stabilityai/stable-video-diffusion-img2vid-xt-1-1@043843887ccd51926e3efed36270444a838e7861", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "https://huggingface.co/stabilityai/stable-video-diffusion-img2vid-xt-1-1/blob/043843887ccd51926e3efed36270444a838e7861/LICENSE.md" + ], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "stabilityai/stable-video-diffusion-img2vid-xt-1-1@043843887ccd51926e3efed36270444a838e7861 https://huggingface.co/stabilityai/stable-video-diffusion-img2vid-xt-1-1/tree/043843887ccd51926e3efed36270444a838e7861" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "a7a2ce4e3e9bdfddcd33a4f3c2a7df0b69c0e815eef0493a9f0a748acf1716b8", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "stable_video_lighthouse_headland" + }, + { + "path": "template-gallery/reviews/stable_video_lighthouse_headland.retained-template-provenance.json", + "sha256": "sha256:bytes:4522c6ff83f21b51ed4de646d27e95475255931ac9e243c77d167bc039c66f67", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/stabilityai/stable-video-diffusion-img2vid-xt-1-1/tree/043843887ccd51926e3efed36270444a838e7861", + "sourceRevision": "stabilityai/stable-video-diffusion-img2vid-xt-1-1@043843887ccd51926e3efed36270444a838e7861", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "https://huggingface.co/stabilityai/stable-video-diffusion-img2vid-xt-1-1/blob/043843887ccd51926e3efed36270444a838e7861/LICENSE.md" + ], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "stabilityai/stable-video-diffusion-img2vid-xt-1-1@043843887ccd51926e3efed36270444a838e7861 https://huggingface.co/stabilityai/stable-video-diffusion-img2vid-xt-1-1/tree/043843887ccd51926e3efed36270444a838e7861" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "a7a2ce4e3e9bdfddcd33a4f3c2a7df0b69c0e815eef0493a9f0a748acf1716b8", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "stable_video_lighthouse_headland" + }, { "path": "template-gallery/reviews/the_glasshouse_seed_tray.original-provenance.json", "sha256": "sha256:bytes:267ab964ea3749739c8f58b86f7b94aa2c2cfe506a12c4f33c615c8415a97230", @@ -27887,9 +27857,7 @@ "reviewedBy": "SOURAV DAS", "reviewedAt": "2026-08-03", "reviewClass": "standard-human-attestation", - "consumingTemplateIds": [ - "wan_vace_outpaint_reframe" - ] + "consumingTemplateIds": ["wan_vace_outpaint_reframe"] }, { "path": "template-gallery/runtime-inputs/assets/124415536a8071baccf8821232ad79a0a8ceec30ae62617c91a8d7a0b59d0a8c.webp", @@ -27912,9 +27880,7 @@ "reviewedBy": "SOURAV DAS", "reviewedAt": "2026-08-03", "reviewClass": "standard-human-attestation", - "consumingTemplateIds": [ - "qwen_logo_texture" - ] + "consumingTemplateIds": ["qwen_logo_texture"] }, { "path": "template-gallery/runtime-inputs/assets/16f6ea27b5d7cfaed106e2e694572bbe92b7c7e2a43835b3f4313a748f510f74.png", @@ -27937,9 +27903,7 @@ "reviewedBy": "SOURAV DAS", "reviewedAt": "2026-08-03", "reviewClass": "standard-human-attestation", - "consumingTemplateIds": [ - "flux_fill_inpaint" - ] + "consumingTemplateIds": ["flux_fill_inpaint"] }, { "path": "template-gallery/runtime-inputs/assets/1d993540e914f0e2d230f1133b57ae14bb837829237a53c89613fcdef6699995.webp", @@ -27962,9 +27926,7 @@ "reviewedBy": "SOURAV DAS", "reviewedAt": "2026-08-03", "reviewClass": "standard-human-attestation", - "consumingTemplateIds": [ - "flux2_klein_multi_reference" - ] + "consumingTemplateIds": ["flux2_klein_multi_reference"] }, { "path": "template-gallery/runtime-inputs/assets/218d83e0706fec201097582a6e5e00dc79f2d7d1ecb0badba2214c5ecaae1866.mp4", @@ -27987,9 +27949,7 @@ "reviewedBy": "SOURAV DAS", "reviewedAt": "2026-08-03", "reviewClass": "standard-human-attestation", - "consumingTemplateIds": [ - "wan_vace_video_to_video" - ] + "consumingTemplateIds": ["wan_vace_video_to_video"] }, { "path": "template-gallery/runtime-inputs/assets/233d1b3a123fceb4f3b68d2d3a9f5b4129627073b8235fe7248ae6ebdeecb554.mp4", @@ -28015,9 +27975,7 @@ "reviewedBy": "SOURAV DAS", "reviewedAt": "2026-08-03", "reviewClass": "standard-human-attestation", - "consumingTemplateIds": [ - "ltx_video_video_to_video" - ] + "consumingTemplateIds": ["ltx_video_video_to_video"] }, { "path": "template-gallery/runtime-inputs/assets/283b1cfb32b15fe6b31a29dce1f2b96026c1ad0826bf3f24aebebf4b6f9a4f07.webp", @@ -28040,9 +27998,7 @@ "reviewedBy": "SOURAV DAS", "reviewedAt": "2026-08-03", "reviewClass": "standard-human-attestation", - "consumingTemplateIds": [ - "reference_fusion" - ] + "consumingTemplateIds": ["reference_fusion"] }, { "path": "template-gallery/runtime-inputs/assets/29722ed072feec11cd36adce7b6cb48483bff3f05776048b93f960b5554ab533.png", @@ -28065,9 +28021,7 @@ "reviewedBy": "SOURAV DAS", "reviewedAt": "2026-08-03", "reviewClass": "standard-human-attestation", - "consumingTemplateIds": [ - "qwen_inpaint_mask_draft" - ] + "consumingTemplateIds": ["qwen_inpaint_mask_draft"] }, { "path": "template-gallery/runtime-inputs/assets/2e0ec8892660785e322468d0153fd2dadf7a4d920fce2d7d4a0b686a8fe8515d.webp", @@ -28090,9 +28044,7 @@ "reviewedBy": "SOURAV DAS", "reviewedAt": "2026-08-03", "reviewClass": "standard-human-attestation", - "consumingTemplateIds": [ - "flux_redux_edit" - ] + "consumingTemplateIds": ["flux_redux_edit"] }, { "path": "template-gallery/runtime-inputs/assets/2e202069a584ee5ada91e2deaea6bf7b92a94f4816e669e695d7cb64d5a1cb0e.png", @@ -28115,9 +28067,7 @@ "reviewedBy": "SOURAV DAS", "reviewedAt": "2026-08-03", "reviewClass": "standard-human-attestation", - "consumingTemplateIds": [ - "flux_depth_control" - ] + "consumingTemplateIds": ["flux_depth_control"] }, { "creatorOrRightsholder": "MoDiff project maintainers, subject to original synthetic source terms", @@ -28166,9 +28116,7 @@ "reviewedBy": "SOURAV DAS", "reviewedAt": "2026-08-03", "reviewClass": "standard-human-attestation", - "consumingTemplateIds": [ - "ace_step_audio_continuation" - ] + "consumingTemplateIds": ["ace_step_audio_continuation"] }, { "path": "template-gallery/runtime-inputs/assets/38a6f334f89048effe579fc473d6fb38437eb579f324ac399d1ec0f6509f74d9.webp", @@ -28191,9 +28139,7 @@ "reviewedBy": "SOURAV DAS", "reviewedAt": "2026-08-03", "reviewClass": "standard-human-attestation", - "consumingTemplateIds": [ - "ltx_video_long_showcase" - ] + "consumingTemplateIds": ["ltx_video_long_showcase"] }, { "path": "template-gallery/runtime-inputs/assets/39428f00f67b49fc6d624617df2964c9f869de21e7e188ef5b231ae04c4aeacc.webp", @@ -28216,10 +28162,7 @@ "reviewedBy": "SOURAV DAS", "reviewedAt": "2026-08-03", "reviewClass": "standard-human-attestation", - "consumingTemplateIds": [ - "qwen_multi_reference_product", - "reference_fusion" - ] + "consumingTemplateIds": ["qwen_multi_reference_product", "reference_fusion"] }, { "path": "template-gallery/runtime-inputs/assets/3c4d3a7a58a7be7f8d8920106dcfea30e28b4af115ce406bcf5b16cec4b4297a.mp4", @@ -28242,9 +28185,7 @@ "reviewedBy": "SOURAV DAS", "reviewedAt": "2026-08-03", "reviewClass": "standard-human-attestation", - "consumingTemplateIds": [ - "wan_vace_outpaint_reframe" - ] + "consumingTemplateIds": ["wan_vace_outpaint_reframe"] }, { "creatorOrRightsholder": "MoDiff project maintainers, subject to original synthetic source terms", @@ -28293,9 +28234,7 @@ "reviewedBy": "SOURAV DAS", "reviewedAt": "2026-08-03", "reviewClass": "standard-human-attestation", - "consumingTemplateIds": [ - "flux_control_canny" - ] + "consumingTemplateIds": ["flux_control_canny"] }, { "creatorOrRightsholder": "MoDiff project maintainers, subject to original synthetic source terms", @@ -28344,9 +28283,7 @@ "reviewedBy": "SOURAV DAS", "reviewedAt": "2026-08-03", "reviewClass": "standard-human-attestation", - "consumingTemplateIds": [ - "qwen_multi_reference_product" - ] + "consumingTemplateIds": ["qwen_multi_reference_product"] }, { "path": "template-gallery/runtime-inputs/assets/4b1b8d9e351abd437f2ffff90cc6a958160a87863ba4d8e85a0aa80a37e7a10e.webp", @@ -28369,9 +28306,7 @@ "reviewedBy": "SOURAV DAS", "reviewedAt": "2026-08-03", "reviewClass": "standard-human-attestation", - "consumingTemplateIds": [ - "qwen_character_angles" - ] + "consumingTemplateIds": ["qwen_character_angles"] }, { "path": "template-gallery/runtime-inputs/assets/4b800b6a362c9ad7755858a3ec2affbda8706c5a71578ced35b80432fd234741.webp", @@ -28394,9 +28329,7 @@ "reviewedBy": "SOURAV DAS", "reviewedAt": "2026-08-03", "reviewClass": "standard-human-attestation", - "consumingTemplateIds": [ - "flux_redux_multi_reference" - ] + "consumingTemplateIds": ["flux_redux_multi_reference"] }, { "creatorOrRightsholder": "MoDiff project maintainers, subject to original synthetic source terms", @@ -28445,9 +28378,7 @@ "reviewedBy": "SOURAV DAS", "reviewedAt": "2026-08-03", "reviewClass": "standard-human-attestation", - "consumingTemplateIds": [ - "ltx_video_multi_reference" - ] + "consumingTemplateIds": ["ltx_video_multi_reference"] }, { "path": "template-gallery/runtime-inputs/assets/6224e9ee47765858f2ec0c33679140d020cf3ad6e4fa2fa4557ef50f811aef0e.webp", @@ -28470,9 +28401,7 @@ "reviewedBy": "SOURAV DAS", "reviewedAt": "2026-08-03", "reviewClass": "standard-human-attestation", - "consumingTemplateIds": [ - "qwen_tile_extract" - ] + "consumingTemplateIds": ["qwen_tile_extract"] }, { "path": "template-gallery/runtime-inputs/assets/70c74691e2bcd7cdb352b7e64e5af5a1a7f01d77112d32a8edadc0060a95ef34.png", @@ -28495,9 +28424,7 @@ "reviewedBy": "maintainer (current user)", "reviewedAt": "2026-11-12", "reviewClass": "per-file-maintainer-accepted-native-three-registration", - "consumingTemplateIds": [ - "flux_kontext_multi_reference" - ], + "consumingTemplateIds": ["flux_kontext_multi_reference"], "derivedFromContentHash": "sha256:bytes:9f421cdc0fa80b3aae368bd3b20a8f6f05942ec461f88541f01aec5390468897", "publicationBasis": "Existing maintainer publication authorization and current explicit instruction to register these three accepted assets; no new ownership or rights quotation is fabricated.", "humanApprovalPacketSHA256": "69c6b3d9b0ea2fcca16ee538f6e75b414b7141658b74f10578758e61360f63fd" @@ -28523,9 +28450,7 @@ "reviewedBy": "SOURAV DAS", "reviewedAt": "2026-08-03", "reviewClass": "standard-human-attestation", - "consumingTemplateIds": [ - "ltx_video_multi_reference" - ] + "consumingTemplateIds": ["ltx_video_multi_reference"] }, { "path": "template-gallery/runtime-inputs/assets/799d82b016a108d4b6902500b4226afd5d2391f4a7b0693af75255425c943a5e.png", @@ -28548,9 +28473,7 @@ "reviewedBy": "SOURAV DAS", "reviewedAt": "2026-08-03", "reviewClass": "standard-human-attestation", - "consumingTemplateIds": [ - "flux_fill_outpaint" - ] + "consumingTemplateIds": ["flux_fill_outpaint"] }, { "path": "template-gallery/runtime-inputs/assets/7f1ea58485fa7802765b9fbbf0e6957e8607261c91669fdcc44cbed80c6fb309.webp", @@ -28573,9 +28496,7 @@ "reviewedBy": "SOURAV DAS", "reviewedAt": "2026-08-03", "reviewClass": "standard-human-attestation", - "consumingTemplateIds": [ - "flux_redux_multi_reference" - ] + "consumingTemplateIds": ["flux_redux_multi_reference"] }, { "path": "template-gallery/runtime-inputs/assets/862e292caa1759156fffde5cfccda8b97ec622514258f81986188cf63a836ea9.webp", @@ -28598,9 +28519,7 @@ "reviewedBy": "SOURAV DAS", "reviewedAt": "2026-08-03", "reviewClass": "standard-human-attestation", - "consumingTemplateIds": [ - "qwen_outpaint_draft" - ] + "consumingTemplateIds": ["qwen_outpaint_draft"] }, { "path": "template-gallery/runtime-inputs/assets/88a7ada5cb91a6ef86de0ff7c26c6b4683df25cc0baa18382371ce0748cd0bd6.webp", @@ -28623,9 +28542,7 @@ "reviewedBy": "SOURAV DAS", "reviewedAt": "2026-08-03", "reviewClass": "standard-human-attestation", - "consumingTemplateIds": [ - "ltx_video_long_showcase" - ] + "consumingTemplateIds": ["ltx_video_long_showcase"] }, { "creatorOrRightsholder": "MoDiff project maintainers, subject to original synthetic source terms", @@ -28674,10 +28591,7 @@ "reviewedBy": "SOURAV DAS", "reviewedAt": "2026-08-03", "reviewClass": "standard-human-attestation", - "consumingTemplateIds": [ - "ltx_video_image_to_video", - "ltx_video_long_showcase" - ] + "consumingTemplateIds": ["ltx_video_image_to_video", "ltx_video_long_showcase"] }, { "path": "template-gallery/runtime-inputs/assets/9328061557396ef591a9f4a6242abf1cdd61082846518726c3114f746ccedd63.webp", @@ -28700,9 +28614,7 @@ "reviewedBy": "SOURAV DAS", "reviewedAt": "2026-08-03", "reviewClass": "standard-human-attestation", - "consumingTemplateIds": [ - "qwen_logo_texture" - ] + "consumingTemplateIds": ["qwen_logo_texture"] }, { "path": "template-gallery/runtime-inputs/assets/965240cf250a9074a7adab394c76070674cf517bed42b6c4647112d17dec84de.webp", @@ -28725,9 +28637,7 @@ "reviewedBy": "SOURAV DAS", "reviewedAt": "2026-08-03", "reviewClass": "standard-human-attestation", - "consumingTemplateIds": [ - "qwen_layered_portrait" - ] + "consumingTemplateIds": ["qwen_layered_portrait"] }, { "path": "template-gallery/runtime-inputs/assets/9f9f9685db5e9f8e1c162a0515151b03912c84777727b38682b65839db501ae6.webp", @@ -28750,9 +28660,7 @@ "reviewedBy": "SOURAV DAS", "reviewedAt": "2026-08-03", "reviewClass": "standard-human-attestation", - "consumingTemplateIds": [ - "qwen_inpaint_object_replace" - ] + "consumingTemplateIds": ["qwen_inpaint_object_replace"] }, { "path": "template-gallery/runtime-inputs/assets/a2f8ac6f5937d6e618b48ce9947153b8233ff7a82dcf67f28766d20b9917d730.webp", @@ -28775,9 +28683,7 @@ "reviewedBy": "SOURAV DAS", "reviewedAt": "2026-08-03", "reviewClass": "standard-human-attestation", - "consumingTemplateIds": [ - "qwen_inpaint_mask_draft" - ] + "consumingTemplateIds": ["qwen_inpaint_mask_draft"] }, { "path": "template-gallery/runtime-inputs/assets/a6d165bd87e2c57ab8cf71fa15de9d8724fccf5782c16c34c25dc77934751676.webp", @@ -28800,9 +28706,7 @@ "reviewedBy": "SOURAV DAS", "reviewedAt": "2026-08-03", "reviewClass": "standard-human-attestation", - "consumingTemplateIds": [ - "qwen_edit_strength_sweep" - ] + "consumingTemplateIds": ["qwen_edit_strength_sweep"] }, { "path": "template-gallery/runtime-inputs/assets/a7b61f36043354596eb01e702474300b222cb32e304bcf259506cad03917ce9b.webp", @@ -28853,10 +28757,7 @@ "reviewedBy": "SOURAV DAS", "reviewedAt": "2026-08-03", "reviewClass": "standard-human-attestation", - "consumingTemplateIds": [ - "qwen_control_image_layout", - "qwen_packaging_dieline" - ] + "consumingTemplateIds": ["qwen_control_image_layout", "qwen_packaging_dieline"] }, { "path": "template-gallery/runtime-inputs/assets/b7c221b367738177e32fece56067d743df96282a6ccb2afd040ee89ea0a8f678.webp", @@ -28879,9 +28780,7 @@ "reviewedBy": "SOURAV DAS", "reviewedAt": "2026-08-03", "reviewClass": "standard-human-attestation", - "consumingTemplateIds": [ - "flux_fill_inpaint" - ] + "consumingTemplateIds": ["flux_fill_inpaint"] }, { "path": "template-gallery/runtime-inputs/assets/b9909f4cbff8af6e97be6d1e4923c67687eee41dbd64b051a018866781da12ab.webp", @@ -28904,9 +28803,7 @@ "reviewedBy": "SOURAV DAS", "reviewedAt": "2026-08-03", "reviewClass": "standard-human-attestation", - "consumingTemplateIds": [ - "character_edit" - ] + "consumingTemplateIds": ["character_edit"] }, { "path": "template-gallery/runtime-inputs/assets/bf4dbaa55b83b19ca56c691e9d1a10d3b838ff2fec926aaea6b526561c68f8e6.png", @@ -28929,9 +28826,7 @@ "reviewedBy": "SOURAV DAS", "reviewedAt": "2026-08-03", "reviewClass": "standard-human-attestation", - "consumingTemplateIds": [ - "flux_fill_outpaint" - ] + "consumingTemplateIds": ["flux_fill_outpaint"] }, { "path": "template-gallery/runtime-inputs/assets/c810699838c636767d2a5b25fb457df94a4b76a70da9a77e77009681779acbf2.webp", @@ -28954,9 +28849,7 @@ "reviewedBy": "SOURAV DAS", "reviewedAt": "2026-08-03", "reviewClass": "standard-human-attestation", - "consumingTemplateIds": [ - "ltx_video_long_showcase" - ] + "consumingTemplateIds": ["ltx_video_long_showcase"] }, { "path": "template-gallery/runtime-inputs/assets/d49908e24c58d144f4264f4028cb0f7f2e72fb02b315443fd021715ebed1e737.webp", @@ -28979,9 +28872,7 @@ "reviewedBy": "SOURAV DAS", "reviewedAt": "2026-08-03", "reviewClass": "standard-human-attestation", - "consumingTemplateIds": [ - "ltx_video_long_showcase" - ] + "consumingTemplateIds": ["ltx_video_long_showcase"] }, { "path": "template-gallery/runtime-inputs/assets/d5ba3943d6c0a264860ba0cde18d87e2d9554a3f7328308f4d771e082a9e0c24.png", @@ -29004,9 +28895,7 @@ "reviewedBy": "SOURAV DAS", "reviewedAt": "2026-08-03", "reviewClass": "standard-human-attestation", - "consumingTemplateIds": [ - "flux2_klein_edit" - ] + "consumingTemplateIds": ["flux2_klein_edit"] }, { "path": "template-gallery/runtime-inputs/assets/d86b921f1be36360b5b660b8a5b9d0e9165e888be8a06fe2d8f362e87de40429.mp4", @@ -29029,9 +28918,7 @@ "reviewedBy": "SOURAV DAS", "reviewedAt": "2026-08-03", "reviewClass": "standard-human-attestation", - "consumingTemplateIds": [ - "wan_vace_video_color_grade" - ] + "consumingTemplateIds": ["wan_vace_video_color_grade"] }, { "path": "template-gallery/runtime-inputs/assets/d898e00f3be4b28e237f71acf8024ad3715a657e1fcf3aeaf57279468dff7a76.webp", @@ -29054,9 +28941,7 @@ "reviewedBy": "SOURAV DAS", "reviewedAt": "2026-08-03", "reviewClass": "standard-human-attestation", - "consumingTemplateIds": [ - "qwen_outpaint_aspect_template" - ] + "consumingTemplateIds": ["qwen_outpaint_aspect_template"] }, { "path": "template-gallery/runtime-inputs/assets/ddaccd06100d51494e5aaaecedab7b27eaeeda5290d453498d3e1cb9460ad474.webp", @@ -29079,9 +28964,7 @@ "reviewedBy": "SOURAV DAS", "reviewedAt": "2026-08-03", "reviewClass": "standard-human-attestation", - "consumingTemplateIds": [ - "ltx_video_long_showcase" - ] + "consumingTemplateIds": ["ltx_video_long_showcase"] }, { "path": "template-gallery/runtime-inputs/assets/e07d05a658d361b6d28af62bcccfaeba9254507467dae1c5839efd546fed96a7.wav", @@ -29104,10 +28987,7 @@ "reviewedBy": "SOURAV DAS", "reviewedAt": "2026-08-03", "reviewClass": "standard-human-attestation", - "consumingTemplateIds": [ - "ace_step_audio_repaint", - "ace_step_audio_variation" - ] + "consumingTemplateIds": ["ace_step_audio_repaint", "ace_step_audio_variation"] }, { "path": "template-gallery/runtime-inputs/assets/e0ab22f77f5d966d7868f8950f79702dc6d156d0eaef3e06205097558d5c5bb2.webp", @@ -29130,9 +29010,7 @@ "reviewedBy": "SOURAV DAS", "reviewedAt": "2026-08-03", "reviewClass": "standard-human-attestation", - "consumingTemplateIds": [ - "qwen_product_ad_composite" - ] + "consumingTemplateIds": ["qwen_product_ad_composite"] }, { "path": "template-gallery/runtime-inputs/assets/e0f19676addbba6fe954711c235878ef43495e8066b84ed70b5c240a8512b026.mp4", @@ -29155,9 +29033,7 @@ "reviewedBy": "SOURAV DAS", "reviewedAt": "2026-08-03", "reviewClass": "standard-human-attestation", - "consumingTemplateIds": [ - "wan_vace_grayscale_control" - ] + "consumingTemplateIds": ["wan_vace_grayscale_control"] }, { "path": "template-gallery/runtime-inputs/assets/e14e0fb4bccace254e3430bbddd49728980e5445b988eff1ae8164f135d1cc8d.png", @@ -29180,9 +29056,7 @@ "reviewedBy": "SOURAV DAS", "reviewedAt": "2026-08-03", "reviewClass": "standard-human-attestation", - "consumingTemplateIds": [ - "qwen_inpaint_object_replace" - ] + "consumingTemplateIds": ["qwen_inpaint_object_replace"] }, { "creatorOrRightsholder": "MoDiff project maintainers, subject to original synthetic source terms", @@ -29231,9 +29105,7 @@ "reviewedBy": "SOURAV DAS", "reviewedAt": "2026-08-03", "reviewClass": "standard-human-attestation", - "consumingTemplateIds": [ - "qwen_edit_plus_single_image" - ] + "consumingTemplateIds": ["qwen_edit_plus_single_image"] }, { "path": "template-gallery/runtime-inputs/assets/f791a809c0df307cd7dafa8c54ae86bbe4c53d73afdacb2183ff8cdbeac994c2.webp", @@ -29256,9 +29128,7 @@ "reviewedBy": "SOURAV DAS", "reviewedAt": "2026-08-03", "reviewClass": "standard-human-attestation", - "consumingTemplateIds": [ - "qwen_product_relight" - ] + "consumingTemplateIds": ["qwen_product_relight"] }, { "creatorOrRightsholder": "MoDiff project maintainers, subject to original synthetic source terms", @@ -29307,9 +29177,7 @@ "reviewedBy": "SOURAV DAS", "reviewedAt": "2026-08-03", "reviewClass": "standard-human-attestation", - "consumingTemplateIds": [ - "flux2_klein_multi_reference" - ] + "consumingTemplateIds": ["flux2_klein_multi_reference"] }, { "creatorOrRightsholder": "MoDiff project maintainers, subject to original synthetic source terms", @@ -30021,9 +29889,7 @@ "sourceUrl": "https://huggingface.co/black-forest-labs/flux-3-image-klein/tree/8454017f9ebaada30c998fccd9f67a80c7580f68", "sourceRevision": "black-forest-labs/flux-3-image-klein@8454017f9ebaada30c998fccd9f67a80c7580f68", "sourceLicense": "Apache-2.0 project-authored metadata", - "modelTerms": [ - "black-forest-labs/flux-3-image-klein@8454017f9ebaada30c998fccd9f67a80c7580f68: Apache-2.0" - ], + "modelTerms": ["black-forest-labs/flux-3-image-klein@8454017f9ebaada30c998fccd9f67a80c7580f68: Apache-2.0"], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], @@ -30044,9 +29910,7 @@ "sourceUrl": "https://huggingface.co/black-forest-labs/flux-3-image-klein/tree/8454017f9ebaada30c998fccd9f67a80c7580f68", "sourceRevision": "black-forest-labs/flux-3-image-klein@8454017f9ebaada30c998fccd9f67a80c7580f68", "sourceLicense": "Original synthetic generation; underlying model terms retained", - "modelTerms": [ - "black-forest-labs/flux-3-image-klein@8454017f9ebaada30c998fccd9f67a80c7580f68: Apache-2.0" - ], + "modelTerms": ["black-forest-labs/flux-3-image-klein@8454017f9ebaada30c998fccd9f67a80c7580f68: Apache-2.0"], "aiGenerated": true, "humanLikenessConsent": "synthetic", "marks": [], @@ -30067,9 +29931,7 @@ "sourceUrl": "https://huggingface.co/black-forest-labs/flux-3-image-klein/tree/8454017f9ebaada30c998fccd9f67a80c7580f68", "sourceRevision": "black-forest-labs/flux-3-image-klein@8454017f9ebaada30c998fccd9f67a80c7580f68", "sourceLicense": "Apache-2.0 project-authored metadata", - "modelTerms": [ - "black-forest-labs/flux-3-image-klein@8454017f9ebaada30c998fccd9f67a80c7580f68: Apache-2.0" - ], + "modelTerms": ["black-forest-labs/flux-3-image-klein@8454017f9ebaada30c998fccd9f67a80c7580f68: Apache-2.0"], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], @@ -30090,14 +29952,10 @@ "sourceUrl": "https://huggingface.co/black-forest-labs/flux-3-image-klein/tree/8454017f9ebaada30c998fccd9f67a80c7580f68", "sourceRevision": "black-forest-labs/flux-3-image-klein@8454017f9ebaada30c998fccd9f67a80c7580f68", "sourceLicense": "Original synthetic generation; underlying model terms retained", - "modelTerms": [ - "black-forest-labs/flux-3-image-klein@8454017f9ebaada30c998fccd9f67a80c7580f68: Apache-2.0" - ], + "modelTerms": ["black-forest-labs/flux-3-image-klein@8454017f9ebaada30c998fccd9f67a80c7580f68: Apache-2.0"], "aiGenerated": true, "humanLikenessConsent": "synthetic", - "marks": [ - "Fictional MATERIAL ATLAS label" - ], + "marks": ["Fictional MATERIAL ATLAS label"], "requiredAttribution": [], "assetLicense": "Apache-2.0", "reviewedBy": "SOURAV DAS", @@ -30145,9 +30003,7 @@ ], "aiGenerated": true, "humanLikenessConsent": "synthetic", - "marks": [ - "Fictional MATERIAL ATLAS label" - ], + "marks": ["Fictional MATERIAL ATLAS label"], "requiredAttribution": [], "assetLicense": "Apache-2.0", "reviewedBy": "SOURAV DAS", @@ -30165,9 +30021,7 @@ "sourceUrl": "https://huggingface.co/black-forest-labs/flux-3-image-klein/tree/8454017f9ebaada30c998fccd9f67a80c7580f68", "sourceRevision": "black-forest-labs/flux-3-image-klein@8454017f9ebaada30c998fccd9f67a80c7580f68", "sourceLicense": "Apache-2.0 project-authored metadata", - "modelTerms": [ - "black-forest-labs/flux-3-image-klein@8454017f9ebaada30c998fccd9f67a80c7580f68: Apache-2.0" - ], + "modelTerms": ["black-forest-labs/flux-3-image-klein@8454017f9ebaada30c998fccd9f67a80c7580f68: Apache-2.0"], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], @@ -30188,14 +30042,10 @@ "sourceUrl": "https://huggingface.co/black-forest-labs/flux-3-image-klein/tree/8454017f9ebaada30c998fccd9f67a80c7580f68", "sourceRevision": "black-forest-labs/flux-3-image-klein@8454017f9ebaada30c998fccd9f67a80c7580f68", "sourceLicense": "Original synthetic generation; underlying model terms retained", - "modelTerms": [ - "black-forest-labs/flux-3-image-klein@8454017f9ebaada30c998fccd9f67a80c7580f68: Apache-2.0" - ], + "modelTerms": ["black-forest-labs/flux-3-image-klein@8454017f9ebaada30c998fccd9f67a80c7580f68: Apache-2.0"], "aiGenerated": true, "humanLikenessConsent": "synthetic", - "marks": [ - "Fictional MATERIAL ATLAS label" - ], + "marks": ["Fictional MATERIAL ATLAS label"], "requiredAttribution": [], "assetLicense": "Apache-2.0", "reviewedBy": "SOURAV DAS", @@ -30213,9 +30063,7 @@ "sourceUrl": "https://huggingface.co/black-forest-labs/flux-3-image-klein/tree/8454017f9ebaada30c998fccd9f67a80c7580f68", "sourceRevision": "black-forest-labs/flux-3-image-klein@8454017f9ebaada30c998fccd9f67a80c7580f68", "sourceLicense": "Apache-2.0 project-authored metadata", - "modelTerms": [ - "black-forest-labs/flux-3-image-klein@8454017f9ebaada30c998fccd9f67a80c7580f68: Apache-2.0" - ], + "modelTerms": ["black-forest-labs/flux-3-image-klein@8454017f9ebaada30c998fccd9f67a80c7580f68: Apache-2.0"], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], @@ -30236,9 +30084,7 @@ "sourceUrl": "https://huggingface.co/black-forest-labs/flux-3-image-klein/tree/8454017f9ebaada30c998fccd9f67a80c7580f68", "sourceRevision": "black-forest-labs/flux-3-image-klein@8454017f9ebaada30c998fccd9f67a80c7580f68", "sourceLicense": "Original synthetic generation; underlying model terms retained", - "modelTerms": [ - "black-forest-labs/flux-3-image-klein@8454017f9ebaada30c998fccd9f67a80c7580f68: Apache-2.0" - ], + "modelTerms": ["black-forest-labs/flux-3-image-klein@8454017f9ebaada30c998fccd9f67a80c7580f68: Apache-2.0"], "aiGenerated": true, "humanLikenessConsent": "synthetic", "marks": [], @@ -30259,9 +30105,7 @@ "sourceUrl": "https://huggingface.co/black-forest-labs/flux-3-image-klein/tree/8454017f9ebaada30c998fccd9f67a80c7580f68", "sourceRevision": "black-forest-labs/flux-3-image-klein@8454017f9ebaada30c998fccd9f67a80c7580f68", "sourceLicense": "Apache-2.0 project-authored metadata", - "modelTerms": [ - "black-forest-labs/flux-3-image-klein@8454017f9ebaada30c998fccd9f67a80c7580f68: Apache-2.0" - ], + "modelTerms": ["black-forest-labs/flux-3-image-klein@8454017f9ebaada30c998fccd9f67a80c7580f68: Apache-2.0"], "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], @@ -30282,9 +30126,7 @@ "sourceUrl": "https://huggingface.co/black-forest-labs/flux-3-image-klein/tree/8454017f9ebaada30c998fccd9f67a80c7580f68", "sourceRevision": "black-forest-labs/flux-3-image-klein@8454017f9ebaada30c998fccd9f67a80c7580f68", "sourceLicense": "Original synthetic generation; underlying model terms retained", - "modelTerms": [ - "black-forest-labs/flux-3-image-klein@8454017f9ebaada30c998fccd9f67a80c7580f68: Apache-2.0" - ], + "modelTerms": ["black-forest-labs/flux-3-image-klein@8454017f9ebaada30c998fccd9f67a80c7580f68: Apache-2.0"], "aiGenerated": true, "humanLikenessConsent": "synthetic", "marks": [], @@ -30427,9 +30269,7 @@ ], "aiGenerated": true, "humanLikenessConsent": "synthetic", - "marks": [ - "Fictional MATERIAL ATLAS label" - ], + "marks": ["Fictional MATERIAL ATLAS label"], "requiredAttribution": [], "assetLicense": "Apache-2.0", "reviewedBy": "SOURAV DAS", @@ -30567,9 +30407,7 @@ ], "aiGenerated": true, "humanLikenessConsent": "synthetic", - "marks": [ - "Fictional MATERIAL ATLAS label" - ], + "marks": ["Fictional MATERIAL ATLAS label"], "requiredAttribution": [], "assetLicense": "Apache-2.0", "reviewedBy": "SOURAV DAS", @@ -30731,9 +30569,7 @@ "aiGenerated": false, "humanLikenessConsent": "not-applicable", "marks": [], - "requiredAttribution": [ - "AI-generated with Lightricks LTX-2.5 Full. Original edit and Foley by MoDiff." - ], + "requiredAttribution": ["AI-generated with Lightricks LTX-2.5 Full. Original edit and Foley by MoDiff."], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace owner", "reviewedAt": "2026-11-18", @@ -30756,9 +30592,7 @@ "aiGenerated": true, "humanLikenessConsent": "synthetic", "marks": [], - "requiredAttribution": [ - "AI-generated with Lightricks LTX-2.5 Full. Original edit and Foley by MoDiff." - ], + "requiredAttribution": ["AI-generated with Lightricks LTX-2.5 Full. Original edit and Foley by MoDiff."], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace owner", "reviewedAt": "2026-11-18", @@ -30781,9 +30615,7 @@ "aiGenerated": true, "humanLikenessConsent": "synthetic", "marks": [], - "requiredAttribution": [ - "AI-generated with Lightricks LTX-2.5 Full. Original edit and Foley by MoDiff." - ], + "requiredAttribution": ["AI-generated with Lightricks LTX-2.5 Full. Original edit and Foley by MoDiff."], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace owner", "reviewedAt": "2026-11-18", @@ -30898,6 +30730,87 @@ "publicationBasis": "Maintainer approved this exact saved Spandrel 2× technical preview and confirmed redistribution rights.", "provenanceTemplateId": "spandrel_x2_synthetic_gradient" }, + { + "path": "template-gallery/stable_audio_glass_roof_rain.wav", + "sha256": "sha256:bytes:9fe09d48f7f229f04d2b34c2e193cf7346c68115bb618b84959478a3599a1e05", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Exact approved file captured from a saved MoDiff workflow", + "sourceUrl": "https://huggingface.co/stabilityai/stable-audio-open-1.0/tree/f21265c1e2710b3bd2386596943f0007f55f802e", + "sourceRevision": "stabilityai/stable-audio-open-1.0@f21265c1e2710b3bd2386596943f0007f55f802e", + "sourceLicense": "Maintainer-authorized file with publisher terms retained", + "modelTerms": [ + "https://huggingface.co/stabilityai/stable-audio-open-1.0/blob/f21265c1e2710b3bd2386596943f0007f55f802e/LICENSE.md" + ], + "aiGenerated": true, + "humanLikenessConsent": "synthetic", + "marks": [], + "requiredAttribution": [ + "stabilityai/stable-audio-open-1.0@f21265c1e2710b3bd2386596943f0007f55f802e https://huggingface.co/stabilityai/stable-audio-open-1.0/tree/f21265c1e2710b3bd2386596943f0007f55f802e" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "a7a2ce4e3e9bdfddcd33a4f3c2a7df0b69c0e815eef0493a9f0a748acf1716b8", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "stable_audio_glass_roof_rain" + }, + { + "path": "template-gallery/stable_video_lighthouse_headland.mp4", + "sha256": "sha256:bytes:e08e06f8a9f0a1d88e5d34c224636586cce7b91bb79c25e89d197484c740a88c", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Exact approved file captured from a saved MoDiff workflow", + "sourceUrl": "https://huggingface.co/stabilityai/stable-video-diffusion-img2vid-xt-1-1/tree/043843887ccd51926e3efed36270444a838e7861", + "sourceRevision": "stabilityai/stable-video-diffusion-img2vid-xt-1-1@043843887ccd51926e3efed36270444a838e7861", + "sourceLicense": "Maintainer-authorized file with publisher terms retained", + "modelTerms": [ + "https://huggingface.co/stabilityai/stable-video-diffusion-img2vid-xt-1-1/blob/043843887ccd51926e3efed36270444a838e7861/LICENSE.md" + ], + "aiGenerated": true, + "humanLikenessConsent": "synthetic", + "marks": [], + "requiredAttribution": [ + "stabilityai/stable-video-diffusion-img2vid-xt-1-1@043843887ccd51926e3efed36270444a838e7861 https://huggingface.co/stabilityai/stable-video-diffusion-img2vid-xt-1-1/tree/043843887ccd51926e3efed36270444a838e7861" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "a7a2ce4e3e9bdfddcd33a4f3c2a7df0b69c0e815eef0493a9f0a748acf1716b8", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "stable_video_lighthouse_headland" + }, + { + "path": "template-gallery/stable_video_lighthouse_headland.poster.png", + "sha256": "sha256:bytes:67955f6727290e49f37945a2a27eeaf25032d7cd5595112523f1e9289d462292", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Exact approved file captured from a saved MoDiff workflow", + "sourceUrl": "https://huggingface.co/stabilityai/stable-video-diffusion-img2vid-xt-1-1/tree/043843887ccd51926e3efed36270444a838e7861", + "sourceRevision": "stabilityai/stable-video-diffusion-img2vid-xt-1-1@043843887ccd51926e3efed36270444a838e7861", + "sourceLicense": "Maintainer-authorized file with publisher terms retained", + "modelTerms": [ + "https://huggingface.co/stabilityai/stable-video-diffusion-img2vid-xt-1-1/blob/043843887ccd51926e3efed36270444a838e7861/LICENSE.md" + ], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "stabilityai/stable-video-diffusion-img2vid-xt-1-1@043843887ccd51926e3efed36270444a838e7861 https://huggingface.co/stabilityai/stable-video-diffusion-img2vid-xt-1-1/tree/043843887ccd51926e3efed36270444a838e7861" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "a7a2ce4e3e9bdfddcd33a4f3c2a7df0b69c0e815eef0493a9f0a748acf1716b8", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "stable_video_lighthouse_headland" + }, { "path": "template-gallery/the_glasshouse_seed_tray.webp", "sha256": "sha256:bytes:21fc2abc9656ec805dfa5836064beb5c53e920fd8d75a658b7cfefdcff83a35f", @@ -32130,9 +32043,7 @@ ], "aiGenerated": true, "humanLikenessConsent": "synthetic", - "marks": [ - "LumaPod project-authored concept name/wordmark approved in this packet" - ], + "marks": ["LumaPod project-authored concept name/wordmark approved in this packet"], "requiredAttribution": [], "path": "template-gallery/z_image_product_mockup.webp", "sha256": "sha256:bytes:0d9c80e29c95d62835f56c95d666ed6d8b47e6792005ab59aef1d1c9b6de84df", diff --git a/config/template-assets.v1.json b/config/template-assets.v1.json index b472b38a..e3f7ceaf 100644 --- a/config/template-assets.v1.json +++ b/config/template-assets.v1.json @@ -3056,6 +3056,17 @@ "width": 64, "height": 48 }, + { + "path": "template-gallery/inputs/stable_video_lighthouse_headland.first.png", + "size": 883588, + "sha256": "sha256:bytes:41f07c8ec7ab5d7097cba0f77867b61e666c6a803900784697ff816b851b98de", + "contentType": "image/png", + "purposes": [ + "runtime" + ], + "width": 1024, + "height": 576 + }, { "path": "template-gallery/inputs/wan_a14b_wind_across_pond.first.png", "size": 669116, @@ -3859,8 +3870,8 @@ }, { "path": "template-gallery/manifest.json", - "size": 527055, - "sha256": "sha256:bytes:789269290f378489a939b79daad98d9a5e2bf351c105f362895a5e8aee67a6f4", + "size": 531940, + "sha256": "sha256:bytes:da498c34fa5389f278304f27fe78a0058e8d74f4a0d188442bbad93d4a276328", "contentType": "application/json", "purposes": [ "runtime", @@ -9548,6 +9559,78 @@ "runtime" ] }, + { + "path": "template-gallery/reviews/stable_audio_glass_roof_rain.original-provenance.json", + "size": 1270, + "sha256": "sha256:bytes:26867757b5d173fd0561791ca6114c84c2cb07b0790c2c2c292b3a109af12bc9", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, + { + "path": "template-gallery/reviews/stable_audio_glass_roof_rain.original-review.json", + "size": 636, + "sha256": "sha256:bytes:57dc1622e671d71d0f34df6890aaf520a98e64dd2f333edcac58fb6a641afea9", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, + { + "path": "template-gallery/reviews/stable_audio_glass_roof_rain.quality-review.json", + "size": 2579, + "sha256": "sha256:bytes:2aa5a85090091d93cf2b23494790f75146c523fe1880bef0b0212d9f8bd7d2d5", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, + { + "path": "template-gallery/reviews/stable_audio_glass_roof_rain.retained-template-provenance.json", + "size": 3447, + "sha256": "sha256:bytes:6681cbf847e93d8e25b0bde0f61aaa1d7928e68d439875d8c204c69dc55fb7e9", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, + { + "path": "template-gallery/reviews/stable_video_lighthouse_headland.original-provenance.json", + "size": 1200, + "sha256": "sha256:bytes:25bb70c7420bc425e8d919e74d2a48e7debf888e362b5c6da84ae841878cab74", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, + { + "path": "template-gallery/reviews/stable_video_lighthouse_headland.original-review.json", + "size": 662, + "sha256": "sha256:bytes:9c2dbec34ba3818608ecd4e0f72729926d8ea1d536e90fb2e1a64d3cb1cad597", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, + { + "path": "template-gallery/reviews/stable_video_lighthouse_headland.quality-review.json", + "size": 2507, + "sha256": "sha256:bytes:f61d4759e7dd2ef99f9553cce415e5f278eca5c61c68391935b6a5d9ac90ad3d", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, + { + "path": "template-gallery/reviews/stable_video_lighthouse_headland.retained-template-provenance.json", + "size": 4026, + "sha256": "sha256:bytes:4522c6ff83f21b51ed4de646d27e95475255931ac9e243c77d167bc039c66f67", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, { "path": "template-gallery/reviews/the_glasshouse_seed_tray.original-provenance.json", "size": 2794, @@ -11541,6 +11624,35 @@ "width": 128, "height": 96 }, + { + "path": "template-gallery/stable_audio_glass_roof_rain.wav", + "size": 5760044, + "sha256": "sha256:bytes:9fe09d48f7f229f04d2b34c2e193cf7346c68115bb618b84959478a3599a1e05", + "contentType": "audio/x-wav", + "purposes": [ + "runtime" + ] + }, + { + "path": "template-gallery/stable_video_lighthouse_headland.mp4", + "size": 229224, + "sha256": "sha256:bytes:e08e06f8a9f0a1d88e5d34c224636586cce7b91bb79c25e89d197484c740a88c", + "contentType": "video/mp4", + "purposes": [ + "runtime" + ] + }, + { + "path": "template-gallery/stable_video_lighthouse_headland.poster.png", + "size": 437122, + "sha256": "sha256:bytes:67955f6727290e49f37945a2a27eeaf25032d7cd5595112523f1e9289d462292", + "contentType": "image/png", + "purposes": [ + "runtime" + ], + "width": 960, + "height": 360 + }, { "path": "template-gallery/the_glasshouse_seed_tray.webp", "size": 406498, @@ -12081,9 +12193,9 @@ "height": 1024 } ], - "assetSetId": "sha256:canonical-json:ae0711e49b16b50a55cbdf0e7ca90b58b1b723e3a66b3385ca19662982e70c42", + "assetSetId": "sha256:canonical-json:b16429b50a2a5b58296739df4279f79fad5f7517d68bb2e5a54885d211aabb02", "status": "ready", - "assetCount": 1247, - "totalBytes": 1286569425, + "assetCount": 1259, + "totalBytes": 1293900615, "missingAssets": [] } diff --git a/public/template-gallery/manifest.json b/public/template-gallery/manifest.json index f113b7da..4e419771 100644 --- a/public/template-gallery/manifest.json +++ b/public/template-gallery/manifest.json @@ -6753,6 +6753,68 @@ "reviewedAt": "2026-11-25T16:50:04.589Z", "approvedOriginalReviewPath": "/template-gallery/reviews/audioldm2_wind_through_high_pines.original-review.json", "approvedOriginalProvenancePath": "/template-gallery/reviews/audioldm2_wind_through_high_pines.original-provenance.json" + }, + { + "templateId": "stable_audio_glass_roof_rain", + "templateLockHash": "tpl_f2ac2522", + "promptSettingsHash": "ps_0b1b4dfd", + "modelRevision": "stabilityai/stable-audio-open-1.0@f21265c1e2710b3bd2386596943f0007f55f802e", + "runtimeFingerprint": "sha256:stable-runtime-v1:8d8c8fb193ad602274792b780b94bf16f2a1475c861e5717fa60255bd7fb2282", + "graphHash": "sha256:canonical-graph-v1:292049221515a4d709fe400c1d7a75b33e01aa98b2946392761d627fd68f1303", + "proofLockHash": "sha256:retained-template-association-v1:9d7a88e0a4db8439ec65c5f67ec1af983ab835cc9754df6f6caf1af6690cae50", + "backendSourceFingerprint": "sha256:backend-source-v1:bf8ee3b3df08410b5f041279f84ca3b9e0bbb7248f0e73fbe4c0ecb718727b6c", + "backendContractFingerprint": "sha256:backend-contract-v1:92104623eb3205adaa23cccc593a604da25d7f696e79cd9b947b553b92da39f0", + "modelCommit": "f21265c1e2710b3bd2386596943f0007f55f802e", + "templateRevisionHash": "98b2b306a1e1b6198b80157de33d35a146532b246d2bdd4effb1bbc10415014f", + "provenancePath": "/template-gallery/reviews/stable_audio_glass_roof_rain.retained-template-provenance.json", + "provenanceHash": "sha256:canonical-json:ac5f2d0c38fedb5520e536a56abbba856e2dfb811ff7bac1504b51ba3210e128", + "outputPath": "/template-gallery/stable_audio_glass_roof_rain.wav", + "thumbnailPath": "/template-gallery/stable_audio_glass_roof_rain.wav", + "mediaType": "audio", + "mediaHash": "sha256:decoded-audio-pcm-s16le-48000-stereo:a0505ae775f33020c47c9872754278ace1199ffe996a5d5f1e73501d0b02b0df", + "verificationTimestamp": "2026-11-25T17:07:08.451Z", + "verificationStatus": "reviewed", + "qualityReviewStatus": "approved_reviewed", + "qualityReviewHash": "sha256:canonical-json:c942063902da57443200f4cd07d41e65ef2c1ee069f252e8e80da99557637b81", + "qualityReviewPath": "/template-gallery/reviews/stable_audio_glass_roof_rain.quality-review.json", + "reviewer": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25T17:24:25.603Z", + "approvedOriginalReviewPath": "/template-gallery/reviews/stable_audio_glass_roof_rain.original-review.json", + "approvedOriginalProvenancePath": "/template-gallery/reviews/stable_audio_glass_roof_rain.original-provenance.json" + }, + { + "templateId": "stable_video_lighthouse_headland", + "templateLockHash": "tpl_bbc20719", + "promptSettingsHash": "ps_a6c010a4", + "modelRevision": "stabilityai/stable-video-diffusion-img2vid-xt-1-1@043843887ccd51926e3efed36270444a838e7861", + "runtimeFingerprint": "sha256:stable-runtime-v1:d256b021b495a5fee0efa20922d52d0c46c17996d45ae7386dea47cfbc87d7b6", + "graphHash": "sha256:canonical-graph-v1:938d04de55523ebc54353d3af5de6fff1cd17296559fa89132795f846a628df2", + "proofLockHash": "sha256:retained-template-association-v1:8c6af70bcbd584cfcb83d9910dde8469067d7aa083eed8a6d2d94a9fbf1a1124", + "backendSourceFingerprint": "sha256:backend-source-v1:b29a5b0d317aaa781ae2a5205b46b518eea5a3d68a214eb0968dba4ac0660af7", + "backendContractFingerprint": "sha256:backend-contract-v1:d68ff3c7d7b2d190e68d6f148834ae971638c23a9d31086a3848874658f37da2", + "modelCommit": "043843887ccd51926e3efed36270444a838e7861", + "templateRevisionHash": "0ca724757ea5c4d3ddcb75957d99e5c8c25994915ebcb1610565e329e2542bd4", + "provenancePath": "/template-gallery/reviews/stable_video_lighthouse_headland.retained-template-provenance.json", + "provenanceHash": "sha256:canonical-json:140c8cd84947e67410c51ecd25a431f5e85ff7cd4150552aa1246f9695da7626", + "outputPath": "/template-gallery/stable_video_lighthouse_headland.mp4", + "thumbnailPath": "/template-gallery/stable_video_lighthouse_headland.mp4", + "mediaType": "video", + "mediaHash": "sha256:decoded-video-framemd5:755825bae43c3bd17043cdefd195c74358054d5855177e40d691190cd1acb8e8", + "width": 1024, + "height": 576, + "verificationTimestamp": "2026-11-25T17:02:44.883Z", + "verificationStatus": "reviewed", + "qualityReviewStatus": "approved_reviewed", + "qualityReviewHash": "sha256:canonical-json:cd2d9f9051fa8f99ac7c390ee74a638005ccd8b59e55400bee7deee4f7647d91", + "qualityReviewPath": "/template-gallery/reviews/stable_video_lighthouse_headland.quality-review.json", + "reviewer": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-25T17:24:25.603Z", + "frames": 25, + "durationSeconds": 3.5714285714285716, + "approvedOriginalReviewPath": "/template-gallery/reviews/stable_video_lighthouse_headland.original-review.json", + "approvedOriginalProvenancePath": "/template-gallery/reviews/stable_video_lighthouse_headland.original-provenance.json", + "approvedSourcePath": "/template-gallery/inputs/stable_video_lighthouse_headland.first.png", + "posterPath": "/template-gallery/stable_video_lighthouse_headland.poster.png" } ] } diff --git a/scripts/bundle-budget.mjs b/scripts/bundle-budget.mjs index 0169d2e1..e89d533d 100644 --- a/scripts/bundle-budget.mjs +++ b/scripts/bundle-budget.mjs @@ -493,6 +493,8 @@ const SOURCE_LICENSES = new URL('../public/THIRD_PARTY_LICENSES.txt', import.met // 504492/682980/346033 largest/startup/deferred gzip bytes: the reviewed // migration ceilings below still pass with 8/12/304 bytes of headroom. const MAX_STARTUP_CHUNK_GZIP_BYTES = + // The two retained Stability AI recipes and their attention setting measure 572330 bytes. + 806 + // The retained AudioLDM2 recipe measures 571524 bytes. 511 + // Approved retained templates and their exact input bindings measure 571013 bytes. @@ -807,6 +809,8 @@ const MAX_STARTUP_CHUNK_GZIP_BYTES = // The same build measures 673359 aggregate startup bytes (+45 over the cap). // Keep 19 bytes of headroom; deferred limits and loading boundaries stay fixed. const MAX_STARTUP_GZIP_BYTES = + // The same build measures 750817 total startup gzip bytes. + 807 + // The same recipe measures 750010 total startup gzip bytes. 512 + // The expanded catalogue measures 749498 total startup gzip bytes. diff --git a/scripts/retained-gallery-templates.test.mjs b/scripts/retained-gallery-templates.test.mjs index fa845663..bd0f69a7 100644 --- a/scripts/retained-gallery-templates.test.mjs +++ b/scripts/retained-gallery-templates.test.mjs @@ -447,6 +447,12 @@ test('fresh Expert recipes prepare with current backend specs and without a gene assert.equal(binding.executionSpec.contentHash, spec.contentHash); assert.equal(studio.getState().activeWorkflowTabId, tabId); const api = flow.getState().exportGraph('retained-template-check', undefined, { randomizeSeeds: false }); + const attentionBackend = template.example.lockedSettings.attentionBackend; + if (attentionBackend !== undefined) { + assert.equal(form.attentionBackend, attentionBackend, template.id); + const recipe = Object.values(api.nodes).find(({ action }) => action === 'DiffusersExecutionRecipe'); + assert.equal(recipe?.params.attention_backend.value, attentionBackend, template.id); + } if (template.modelType === 'SpandrelImageUpscale') { const source = api.nodes[binding.nodes.loadImage].params; const upscaler = api.nodes[binding.nodes.imageUpscaler].params; diff --git a/src/stores/useStudioStore.ts b/src/stores/useStudioStore.ts index 98974ae2..ad7e8084 100644 --- a/src/stores/useStudioStore.ts +++ b/src/stores/useStudioStore.ts @@ -1802,6 +1802,9 @@ export const useStudioStore = create + StudioTemplateLockedSettings & + Pick > & { // The source-bound retained recipes record the shared input resolution default. matchInputResolution?: true; From a58322e761741c046e95e64e3bead9fdccf141b5 Mon Sep 17 00:00:00 2001 From: Sourav Das Date: Wed, 25 Nov 2026 23:20:28 +0530 Subject: [PATCH 398/440] Keep authored Expert attention settings when opening templates --- scripts/modiff-template.test.mjs | 5 ++++- scripts/retained-gallery-templates.test.mjs | 2 +- src/stores/useStudioStore.ts | 4 +--- src/studio/executionSpecValues.ts | 7 ++++--- 4 files changed, 10 insertions(+), 8 deletions(-) diff --git a/scripts/modiff-template.test.mjs b/scripts/modiff-template.test.mjs index e1cf563f..b82181c9 100644 --- a/scripts/modiff-template.test.mjs +++ b/scripts/modiff-template.test.mjs @@ -2951,7 +2951,10 @@ test('template prompt recipes are distinct, detailed, and not generic placeholde if (retained) { // Authoring guidance must not rewrite conditioning from an approved execution. assert.deepEqual({ prompt: template.prompt, negativePrompt: template.negativePrompt }, retained); - if (['unconditional_image', 'speech_translation', 'video_upscale'].includes(template.mode)) { + if ( + ['unconditional_image', 'speech_translation', 'video_upscale'].includes(template.mode) || + (template.mode === 'image_to_video' && template.modelType === 'StableVideoDiffusionPipeline') + ) { assert.equal(template.prompt, '', `${template.id} keeps its prompt-free task contract`); } else { assert.ok(template.prompt.trim(), `${template.id} retains the recorded prompt`); diff --git a/scripts/retained-gallery-templates.test.mjs b/scripts/retained-gallery-templates.test.mjs index bd0f69a7..4995ea26 100644 --- a/scripts/retained-gallery-templates.test.mjs +++ b/scripts/retained-gallery-templates.test.mjs @@ -448,8 +448,8 @@ test('fresh Expert recipes prepare with current backend specs and without a gene assert.equal(studio.getState().activeWorkflowTabId, tabId); const api = flow.getState().exportGraph('retained-template-check', undefined, { randomizeSeeds: false }); const attentionBackend = template.example.lockedSettings.attentionBackend; + assert.equal(form.attentionBackend, attentionBackend, template.id); if (attentionBackend !== undefined) { - assert.equal(form.attentionBackend, attentionBackend, template.id); const recipe = Object.values(api.nodes).find(({ action }) => action === 'DiffusersExecutionRecipe'); assert.equal(recipe?.params.attention_backend.value, attentionBackend, template.id); } diff --git a/src/stores/useStudioStore.ts b/src/stores/useStudioStore.ts index ad7e8084..9f5421c6 100644 --- a/src/stores/useStudioStore.ts +++ b/src/stores/useStudioStore.ts @@ -1802,9 +1802,7 @@ export const useStudioStore = create source === 'weightFormat')) throw new Error('The selected execution specification does not declare a weight-format control.'); - const attentionBackend = - typeof form.attentionBackend === 'string' && form.attentionBackend.trim() ? form.attentionBackend : 'auto'; + const explicitAttention = + typeof form.attentionBackend === 'string' && form.attentionBackend.trim() ? form.attentionBackend : undefined; + const attentionBackend = explicitAttention ?? 'auto'; const audioTemplateBaseModel = options.audioTemplateBaseModel ?? null; const quantizationMode = form.resourceMode === 'expert' ? form.quantizationMode : 'none'; const bindsDefaultRevision = spec.bindings.some(([, , source]) => source === 'defaultRevision'); @@ -71,7 +72,7 @@ export function resolveStudioExecutionSpecValues( deviceMapNone: 'none', weightFormat, attentionBackend, - nativeMath: '_native_math', + nativeMath: form.resourceMode === 'expert' ? (explicitAttention ?? '_native_math') : '_native_math', empty: '', fp16: 'fp16', ordinary: 'ordinary', From 6b75ec4667883a8407845f0fa01192d91420390f Mon Sep 17 00:00:00 2001 From: Sourav Das Date: Wed, 25 Nov 2026 23:53:17 +0530 Subject: [PATCH 399/440] Verify each saved run against its retired authoring record --- ...etained-gallery-authoring-archives.v1.json | 4 ++ scripts/release-contract-core.mjs | 9 +++- scripts/release-contract.test.mjs | 53 ++++++++++++++++++- 3 files changed, 63 insertions(+), 3 deletions(-) diff --git a/config/retained-gallery-authoring-archives.v1.json b/config/retained-gallery-authoring-archives.v1.json index 4859c27b..f8a74c34 100644 --- a/config/retained-gallery-authoring-archives.v1.json +++ b/config/retained-gallery-authoring-archives.v1.json @@ -31,6 +31,7 @@ }, "AnimateLCMPipeline:text_to_video": { "descriptorSha256": "42c865106617e74f0b4f283316e1712eecfb61e8a78b1d02dfaff346ba718e20", + "additionalDescriptorHashes": ["d3810107239e90cc8d4f3605504145a2c30ae0e3d7295888b010e9a485138cbd"], "bytes": 5060, "sha256": "3af27719dbc699a711ea79d0f38fd05301c280468e0c3454231e191861ca5d24" }, @@ -116,6 +117,7 @@ }, "FluxDevPipeline:edit_image": { "descriptorSha256": "c07e1306c0441d732e2cc24b652e2d9223ba77dd5597030b39bba3c6b271ab0c", + "additionalDescriptorHashes": ["0b6c09d15d13873d08ee91693361df555037595da8134dc0ffc23b3d13b95dbd"], "bytes": 4716, "sha256": "663044cc78ebcc99bee6508d7bf8a14a17e574d1ae02f3869e84a1d73f9aaf5f" }, @@ -126,6 +128,7 @@ }, "FluxKontextInpaintPipeline:inpaint": { "descriptorSha256": "393c69f7733fdfd3632682204dbf421cfff4578d0b86c911f4c15110c566ac90", + "additionalDescriptorHashes": ["1263b5089a7521abd31b7132ebb984295449965d2d09ccb241b796e2094d66f0"], "bytes": 5115, "sha256": "06176da1ff55e23460158734e24e043be4ae5230faf99918ea80929da35dbdea" }, @@ -461,6 +464,7 @@ }, "StableDiffusionXLPAGPipeline:control_edit_image": { "descriptorSha256": "3dfdce82491a893be86fe27d00f8a1b9e5a6e3caddb5d3fa7a688b376106fded", + "additionalDescriptorHashes": ["ca8b4653b881e21712a8a48c7a59d51ae34877fc535ad61616163069261e43a8"], "bytes": 6184, "sha256": "531a76345f5cefc31fe98d33ab73f8cef73a6a7f6f76e48309bc26399b4bcb39" }, diff --git a/scripts/release-contract-core.mjs b/scripts/release-contract-core.mjs index d4b2d16a..5653ec89 100644 --- a/scripts/release-contract-core.mjs +++ b/scripts/release-contract-core.mjs @@ -798,12 +798,17 @@ function archivedCanonicalAuthoring(backendRoot, workflowId, evidencePath) { const stat = lstatSync(evidencePath); assert.ok(stat.isFile() && !stat.isSymbolicLink() && stat.size <= 65536); const descriptorSha256 = createHash('sha256').update(readFileSync(evidencePath)).digest('hex'); - assert.equal(descriptorSha256, lock.descriptorSha256, 'Archived authoring requires the exact original capture.'); + // A published recipe can retire a candidate authoring record shared by + // multiple historical runs. Every such descriptor still needs its own pin. + assert.ok( + descriptorSha256 === lock.descriptorSha256 || lock.additionalDescriptorHashes?.includes(descriptorSha256), + 'Archived authoring requires the exact original capture.', + ); return JSON.parse( readCanonicalEvidenceFile( backendRoot, { - path: `data/qualification/release/canonical-workflow-evidence/${descriptorSha256}/authoring-spec.original.json`, + path: `data/qualification/release/canonical-workflow-evidence/${lock.descriptorSha256}/authoring-spec.original.json`, bytes: lock.bytes, sha256: lock.sha256, }, diff --git a/scripts/release-contract.test.mjs b/scripts/release-contract.test.mjs index 289bd661..30d6a591 100644 --- a/scripts/release-contract.test.mjs +++ b/scripts/release-contract.test.mjs @@ -2,10 +2,11 @@ import assert from 'node:assert/strict'; import { createHash } from 'node:crypto'; import { spawnSync } from 'node:child_process'; import { join, resolve } from 'node:path'; -import { mkdtempSync, mkdirSync, readFileSync, rmSync, symlinkSync, writeFileSync } from 'node:fs'; +import { mkdtempSync, mkdirSync, readFileSync, rmdirSync, rmSync, symlinkSync, writeFileSync } from 'node:fs'; import { tmpdir } from 'node:os'; import { test } from 'node:test'; +import retainedGalleryAuthoringArchives from '../config/retained-gallery-authoring-archives.v1.json' with { type: 'json' }; import { canonicalJsonHash } from './canonical-json.mjs'; import { builtinDataQualificationTarget, validateBuiltinDataExecution } from './builtin-data-qualification.mjs'; import { @@ -63,6 +64,56 @@ test('a batch compiler preserves exact graph exports and releases its offline sc assert.deepEqual(await exportCanonicalWorkflowGraphs(clientRoot, [graphs[0]]), [expected[0]]); }); +test( + 'retired authoring validates each pinned historical capture and rejects descriptor edits', + { skip: process.env.MODIFF_VERIFY_ARCHIVED_CAPTURES !== '1' }, + async () => { + const clientRoot = resolve('.'); + const backendRoot = resolve(process.env.MODIFF_BACKEND_DIR ?? '../MoDiff'); + const read = (name) => JSON.parse(readFileSync(join(backendRoot, 'data', name), 'utf8')); + const { receipts } = read('qualification/release/canonical-workflow-run-receipts.v1.json'); + const current = new Set( + read('template-authoring-specs.v1.json').specifications.map((row) => row.canonicalWorkflowId), + ); + const altered = mkdtempSync(join(tmpdir(), 'modiff-archived-authoring-')); + const tampered = join(altered, 'evidence.json'); + try { + await withCanonicalWorkflowGraphExporter(clientRoot, async () => { + for (const [workflowId, lock] of Object.entries(retainedGalleryAuthoringArchives)) { + if (!lock.additionalDescriptorHashes?.length) continue; + assert.equal(current.has(workflowId), false, workflowId); + for (const hash of [lock.descriptorSha256, ...lock.additionalDescriptorHashes]) { + const stored = receipts.find( + (receipt) => receipt.workflowId === workflowId && receipt.evidenceSha256 === hash, + ); + assert.ok(stored, workflowId); + const { evidencePath, evidenceSha256, evidenceBytes, ...expected } = stored; + const path = join(backendRoot, evidencePath); + const bytes = readFileSync(path); + assert.equal(bytes.length, evidenceBytes); + assert.equal(createHash('sha256').update(bytes).digest('hex'), evidenceSha256); + const { receipt } = await readCanonicalWorkflowEvidence({ + clientRoot, + backendRoot, + workflowId, + evidencePath: path, + }); + assert.deepEqual(receipt, expected); + writeFileSync(tampered, Buffer.concat([bytes, Buffer.from('\n')])); + await assert.rejects( + readCanonicalWorkflowEvidence({ clientRoot, backendRoot, workflowId, evidencePath: tampered }), + /Archived authoring requires the exact original capture/u, + ); + } + } + }); + } finally { + rmSync(tampered, { force: true }); + rmdirSync(altered); + } + }, +); + test('verified standalone model execution remains distinct from a reviewed exact template recipe', () => { const workflow = { modelType: 'ExamplePipeline', exactModelRevision: `example/base@${'a'.repeat(40)}` }; assert.deepEqual(assessWorkflowReleaseEvidence({ modelType: workflow.modelType }), { From c0c32c9e048799d993ca1f89c7b0080ee505f81a Mon Sep 17 00:00:00 2001 From: Sourav Das Date: Thu, 26 Nov 2026 00:45:07 +0530 Subject: [PATCH 400/440] Verify native uploads in retained FLUX control edits --- scripts/private-image-edit-evidence.mjs | 4 + scripts/release-contract-core.mjs | 1 + scripts/saved-control-image-evidence.mjs | 80 +++++++++++++------ scripts/saved-control-image-evidence.test.mjs | 39 ++++++++- 4 files changed, 99 insertions(+), 25 deletions(-) diff --git a/scripts/private-image-edit-evidence.mjs b/scripts/private-image-edit-evidence.mjs index e241029a..7dda6516 100644 --- a/scripts/private-image-edit-evidence.mjs +++ b/scripts/private-image-edit-evidence.mjs @@ -1108,6 +1108,10 @@ export function verifyRetainedPngUpload(upload, input, decoded, bytes) { verifyRetainedImageUpload(upload, input, decoded, bytes, 'png'); } +export function verifyRetainedWebpUpload(upload, input, decoded, bytes) { + verifyRetainedImageUpload(upload, input, decoded, bytes, 'webp'); +} + function verifyRetainedImageUpload(upload, input, decoded, bytes, encoding) { const png = encoding === 'png'; keys(upload, ['error', 'path', 'media']); diff --git a/scripts/release-contract-core.mjs b/scripts/release-contract-core.mjs index 5653ec89..fd41df77 100644 --- a/scripts/release-contract-core.mjs +++ b/scripts/release-contract-core.mjs @@ -986,6 +986,7 @@ export async function readCanonicalWorkflowEvidence({ clientRoot, backendRoot, w 'modiff.private.saved-control-image-native-png.v1', 'modiff.private.saved-control-image-native-files.v1', 'modiff.private.saved-control-image-native-load-fields.v1', + 'modiff.private.integrated-control-edit-native-upload.v1', ].includes(evidence.format) ) { const { readSavedControlImageEvidence } = await import('./saved-control-image-evidence.mjs'); diff --git a/scripts/saved-control-image-evidence.mjs b/scripts/saved-control-image-evidence.mjs index 0eac5a01..8e161dd3 100644 --- a/scripts/saved-control-image-evidence.mjs +++ b/scripts/saved-control-image-evidence.mjs @@ -22,7 +22,7 @@ import { validateNativeVariantRun, validateUnmodifiedExpertPreparation, } from './native-variant-run-evidence.mjs'; -import { verifyRetainedPngUpload } from './private-image-edit-evidence.mjs'; +import { verifyRetainedPngUpload, verifyRetainedWebpUpload } from './private-image-edit-evidence.mjs'; import { validateImagePromptPreparation } from './prompt-variant-evidence.mjs'; import { canonicalWorkflowAuthoringContract, @@ -34,6 +34,7 @@ import { decodedMediaHash, technicalMediaErrors } from './template-gallery-harne const format = 'modiff.private.saved-control-image-native-png.v1'; const retainedHostFormat = 'modiff.private.saved-control-image-native-files.v1'; const loadFieldsFormat = 'modiff.private.saved-control-image-native-load-fields.v1'; +export const integratedControlUploadFormat = 'modiff.private.integrated-control-edit-native-upload.v1'; const linuxReplayRuntime = '8cbe038eeeb6d4a4c079783b8d7e4915d9f78faad9495cb8e354504c66925cf5'; const windowsReplayRuntime = 'e5d045d5ecf997c0cfe8dba771fd92cfc1fef6d3e10d91791b2b5e747f384b3c'; const commonSource = 'e3aea8f8d102572ad10fdd0700f0c42d92061e864ede89777efcd6a3269770a8'; @@ -60,6 +61,12 @@ const fluxControlInpaint = { pipelineClass: 'FluxControlInpaintPipeline', additionalInputs: ['source', 'mask'], }; +const fluxControlUpload = { + source: '73c0d5622c9c305eb2c13478fbac4ca9ea09c71689c74d38679fa6af592c8964', + originalRegistryHash: '0c7eb754b1eec427474be513ff6bd7837ce77ceb5f05853361616e302962fef4', + previousExpertFamily: fluxControl.pipelineClass, + lateOutput: false, +}; const sdxlWindowsControlEdit = { action: 'ControlEdit', pipelineClass: 'StableDiffusionXLControlNetImg2ImgPipeline', @@ -73,9 +80,16 @@ const sdxlWindowsControlEdit = { previousExpertFamily: 'StableDiffusionXLImg2ImgPipeline', }; const routes = { - 'FluxCannyPipeline:control_edit_image': { ...fluxControl, lateOutput: true }, + 'FluxCannyPipeline:control_edit_image': { + ...fluxControl, + lateOutput: true, + integratedUploadVariant: { ...fluxControlUpload, controls: [['strength', 0.8, 1]] }, + }, 'FluxCannyPipeline:control_inpaint': { ...fluxControlInpaint, lateOutput: true }, - 'FluxDepthPipeline:control_edit_image': fluxControl, + 'FluxDepthPipeline:control_edit_image': { + ...fluxControl, + integratedUploadVariant: { ...fluxControlUpload, controls: [['strength', 0.8, 0.64]] }, + }, 'FluxDepthPipeline:control_inpaint': fluxControlInpaint, 'StableDiffusionPipeline:control_image': { pipelineClass: 'StableDiffusionControlNetPipeline', @@ -200,6 +214,10 @@ function owners(api, route) { function savedControlRoute(workflowId, evidenceFormat) { const route = routes[workflowId]; assert.ok(route, 'No reviewed saved control-image route.'); + if (evidenceFormat === integratedControlUploadFormat) { + assert.ok(route.integratedUploadVariant, 'No reviewed integrated control edit with native upload evidence.'); + return { ...route, ...route.integratedUploadVariant, loadFieldsOnly: true, integratedUpload: true }; + } if (evidenceFormat === loadFieldsFormat) { assert.ok(route.loadFieldsVariant, 'No reviewed control-image load evidence variant.'); return { ...route, ...route.loadFieldsVariant, loadFieldsOnly: true }; @@ -388,7 +406,13 @@ export async function readSavedControlImageEvidence({ const route = savedControlRoute(manifest.id, evidence.format); assert.equal( evidence.format, - route.loadFieldsOnly ? loadFieldsFormat : route.integratedControl ? retainedHostFormat : format, + route.integratedUpload + ? integratedControlUploadFormat + : route.loadFieldsOnly + ? loadFieldsFormat + : route.integratedControl + ? retainedHostFormat + : format, ); assert.equal(evidence.schemaVersion, 1); assert.equal(evidence.workflowId, manifest.id); @@ -435,26 +459,29 @@ export async function readSavedControlImageEvidence({ const promptSlot = expected.nodes[canonical.sampler].params.prompt; assert.deepEqual(promptSlot, { display: 'textarea', value: '' }); promptSlot.value = prompt; - if (route.loadFieldsOnly) { + if (route.loadFieldsOnly && !route.integratedUpload) { const loader = expected.nodes[canonical.loader].params; assert.equal(loader.execution_profile_id, undefined); loader.execution_profile_id = { value: '' }; - for (const [key, original, retained] of route.controls) { - const parameter = expected.nodes[canonical.sampler].params[key]; - assert.equal(parameter.value, original); - parameter.value = retained; - } + } + for (const [key, original, retained] of route.controls ?? []) { + const parameter = expected.nodes[canonical.sampler].params[key]; + assert.equal(parameter.value, original); + parameter.value = retained; } const identity = canonicalGraphIdentity(expected); for (const graphSource of [graphRequest, creator.apiGraph, ...visual]) { assert.equal( canonicalGraphIdentity(graphSource).hash, identity.hash, - 'Saved graph differs outside its prompt and selected images.', + 'Saved graph differs outside its prompt, selected images, and reviewed controls.', ); } const nativeStore = route.integratedControl ? read(evidence.persistedOutput) : undefined; - const stored = nativeStore ? JSON.parse(nativeStore.bytes).outputs : undefined; + const storedOutputs = nativeStore ? JSON.parse(nativeStore.bytes).outputs : undefined; + const stored = route.integratedUpload + ? storedOutputs.filter(({ taskId }) => taskId === run.task.task_id) + : storedOutputs; if (stored) assert.equal(stored.length, 1); const validate = route.lateOutput ? validateLateNativeSingleAssetRun : validateNativeVariantRun; const { task, output, hints } = validate({ @@ -468,7 +495,7 @@ export async function readSavedControlImageEvidence({ graphRequest, graphAcknowledgment: json(evidence.graphAcknowledgment), validatePreparation: (value) => - route.loadFieldsOnly + route.loadFieldsOnly && !route.integratedUpload ? validateDirectMutationPreparation(value, route.pipelineClass, actual) : route.previousExpertFamily ? validateImagePromptPreparation(value, { @@ -483,11 +510,13 @@ export async function readSavedControlImageEvidence({ assert.equal(stored[0].mediaHash, output.mediaHash); assert.deepEqual(stored[0].apiGraphSnapshot, output.apiGraphSnapshot); assert.deepEqual(stored[0].resolvedExecutionInputs, output.resolvedExecutionInputs); - verifyRetainedHostImageFiles(json(evidence.hostInputFiles), { - taskId: task.task_id, - persistedOutputSha256: sha256(nativeStore.bytes), - inputs, - }); + if (!route.integratedUpload) { + verifyRetainedHostImageFiles(json(evidence.hostInputFiles), { + taskId: task.task_id, + persistedOutputSha256: sha256(nativeStore.bytes), + inputs, + }); + } } const decoded = verifySavedControlImageInputs(graphRequest, output, inputs, manifest.id, evidence.format); const imageBindings = Object.fromEntries( @@ -500,8 +529,9 @@ export async function readSavedControlImageEvidence({ const dimensions = await decodedMediaHash(file.file, 'image'); assert.deepEqual([dimensions.width, dimensions.height], [decodedImage.width, decodedImage.height]); } - if (!route.integratedControl) { - verifyRetainedPngUpload(json(input.upload), input, decodedImage, file.bytes); + if (!route.integratedControl || route.integratedUpload) { + const verifyUpload = input.sourceValue.endsWith('.webp') ? verifyRetainedWebpUpload : verifyRetainedPngUpload; + verifyUpload(json(input.upload), input, decodedImage, file.bytes); } return [role, { nodeId: actual.inputs[role], field: 'file', sha256: input.file.sha256, decodedImage }]; }), @@ -601,10 +631,12 @@ export async function readSavedControlImageEvidence({ sourceByteWitness: 'native-load-and-upload-with-typed-wire', }), ...(route.cannyMediaWitness && { nativeEdgeMapObserved: true }), - ...(route.integratedControl && { - originalUploadResponsesObserved: false, - hostFilesMatchedNativeLoads: true, - }), + ...(route.integratedUpload && { originalUploadResponsesObserved: true }), + ...(route.integratedControl && + !route.integratedUpload && { + originalUploadResponsesObserved: false, + hostFilesMatchedNativeLoads: true, + }), ...(route.pagSettingsUnobserved && { effectivePagSettingsObserved: false }), physicalPlatformQualification: false, }, diff --git a/scripts/saved-control-image-evidence.test.mjs b/scripts/saved-control-image-evidence.test.mjs index 71bec7c8..5fca72d1 100644 --- a/scripts/saved-control-image-evidence.test.mjs +++ b/scripts/saved-control-image-evidence.test.mjs @@ -6,12 +6,13 @@ import { verifyConditioningModels } from './control-inpaint-evidence.mjs'; import { selectBackendRuntimeFingerprintEvidence } from './live-proof-provenance.mjs'; import { verifyRetainedHostImageFiles } from './native-image-load-evidence.mjs'; import { readCanonicalEvidenceFile, readCanonicalWorkflowEvidence } from './release-contract-core.mjs'; -import { verifySavedControlImageInputs } from './saved-control-image-evidence.mjs'; +import { integratedControlUploadFormat, verifySavedControlImageInputs } from './saved-control-image-evidence.mjs'; const clientRoot = fileURLToPath(new URL('..', import.meta.url)); const backendRoot = resolve(process.env.MODIFF_BACKEND_DIR ?? join(clientRoot, '../MoDiff')); const root = process.env.MODIFF_SAVED_CONTROL_EVIDENCE_DIR; const integratedRoot = process.env.MODIFF_SAVED_INTEGRATED_CONTROL_EVIDENCE_DIR; +const revisedFluxRoot = process.env.MODIFF_REVISED_FLUX_CONTROL_EVIDENCE_DIR; const cases = [ ['linux-sd15-control-fixed', 'StableDiffusionPipeline:control_image', 'ControlNetModel', 'qa0wL-hE_WwQ'], [ @@ -40,6 +41,42 @@ const cases = [ ], ]; +for (const [slug, workflowId, taskId, strength] of [ + ['canny-black-ink', 'FluxCannyPipeline:control_edit_image', '4gv8bcow7Kk7', 1], + ['depth-paint', 'FluxDepthPipeline:control_edit_image', 'GSYDNu2yTddj', 0.64], +]) { + test( + `the revised ${slug} capture binds both original uploads and its consumed strength`, + { skip: !revisedFluxRoot }, + async () => { + const evidencePath = resolve(revisedFluxRoot, `exact-${slug}-evidence`, 'evidence.json'); + const { receipt, evidence } = await readCanonicalWorkflowEvidence({ + clientRoot, + backendRoot, + workflowId, + evidencePath, + }); + assert.equal(evidence.format, integratedControlUploadFormat); + assert.equal(receipt.taskId, taskId); + assert.equal(receipt.conditioningModel.source, 'integrated_checkpoint'); + assert.equal(receipt.guideBinding.sha256, evidence.inputs[0].file.sha256); + assert.equal(receipt.inputBinding.sha256, evidence.inputs[1].file.sha256); + assert.equal(receipt.observationLimits.originalUploadResponsesObserved, true); + assert.equal(receipt.qualificationClaims.rightsApproved, false); + const read = (ref) => JSON.parse(readCanonicalEvidenceFile(dirname(evidencePath), ref).bytes); + const graph = read(evidence.graphRequest); + const { latestOutput: output } = read(evidence.outputPackage); + const sampler = output.resolvedExecutionInputs.nodes.find(({ action }) => action === 'ControlEdit'); + assert.equal(sampler.fields.strength.value, strength); + sampler.fields.strength.value = 0.8; + assert.throws( + () => verifySavedControlImageInputs(graph, output, evidence.inputs, workflowId, evidence.format), + /Saved control sampler fields differ/u, + ); + }, + ); +} + test('the retained native host input witness is scoped to the task, output store and exact source files', () => { const sourceValue = '@data/images/guide.png'; const sha256 = 'd'.repeat(64); From e477211bc069fc469466b21bb38dfaa45664804a Mon Sep 17 00:00:00 2001 From: Sourav Das Date: Thu, 26 Nov 2026 00:51:22 +0530 Subject: [PATCH 401/440] Verify the original two-model Subway recipe --- scripts/prompt-variant-evidence.mjs | 26 +++++++++++++----- scripts/prompt-variant-evidence.test.mjs | 35 ++++++++++++++++++++++++ scripts/release-contract-core.mjs | 1 + 3 files changed, 55 insertions(+), 7 deletions(-) diff --git a/scripts/prompt-variant-evidence.mjs b/scripts/prompt-variant-evidence.mjs index 9b6f0206..0ec52c14 100644 --- a/scripts/prompt-variant-evidence.mjs +++ b/scripts/prompt-variant-evidence.mjs @@ -357,6 +357,14 @@ const wanSubwayRoute = { ], }; +const wanSubwayDefaultRoute = { + ...wanSubwayRoute, + format: 'modiff.private.wan-subway-soundtrack-default.v1', + canonicalDefaults: true, + sourceFingerprint: 'sha256:backend-source-v1:73c0d5622c9c305eb2c13478fbac4ca9ea09c71689c74d38679fa6af592c8964', + retainedRegistryHash: '0c7eb754b1eec427474be513ff6bd7837ce77ceb5f05853361616e302962fef4', +}; + const ltxScheduledRoute = { ...wanA14BRoute, format: 'modiff.private.ltx-long-scheduled-image-variant.v1', @@ -853,7 +861,8 @@ export function bindPromptVariant( const submittedOwners = owners(profile, output); const prompt = submittedOwners.generator.node.params.prompt.value; assert.ok(typeof prompt === 'string' && prompt.length <= 4096 && prompt.trim() === prompt); - if (profile.imageOnly) assert.equal(prompt, promptSlot.value); + if (profile.canonicalDefaults) assert.equal(prompt, promptSlot.value, 'Canonical prompt cannot be changed.'); + else if (profile.imageOnly) assert.equal(prompt, promptSlot.value); else assert.ok(prompt.length > 0); assert.ok(!/[\u0000-\u001f\u007f]/u.test(prompt), 'Prompt exercise contains an unsupported control character.'); promptSlot.value = prompt; @@ -884,6 +893,9 @@ export function bindPromptVariant( seedSlot.value = raw; } const identity = canonicalGraphIdentity(expected); + if (profile.canonicalDefaults) { + same(identity, canonicalGraphIdentity(original), 'Canonical settings and wires cannot be changed.'); + } const mismatch = profile.bindsImage ? 'Image-bound variant changed the canonical graph outside its reviewed input and controls.' : profile.bindSeed @@ -1429,6 +1441,10 @@ export function validateNativeVideoDelivery( export async function readPromptVariantEvidence({ clientRoot, manifest, graph, authoring, artifact, evidencePath }) { const target = canonicalWorkflowAuthoringContract(manifest, graph, authoring, artifact); + const stat = lstatSync(evidencePath); + assert.ok(stat.isFile() && !stat.isSymbolicLink() && stat.size > 0 && stat.size <= 65536); + const descriptorBytes = readFileSync(evidencePath); + const evidence = JSON.parse(descriptorBytes); const imageRoute = directImagePromptRoutes.find(({ workflowId }) => workflowId === target.workflowId); let profile = imageRoute ? { ...imagePromptRoute, ...imageRoute } @@ -1444,7 +1460,7 @@ export async function readPromptVariantEvidence({ clientRoot, manifest, graph, a stableAudioRoute, wanA14BRoute, wanA14BOpeningRoute, - wanSubwayRoute, + evidence.format === wanSubwayDefaultRoute.format ? wanSubwayDefaultRoute : wanSubwayRoute, ...ltx2AudioVideoRoutes, ltxScheduledRoute, wanAnimateRoute, @@ -1485,10 +1501,6 @@ export async function readPromptVariantEvidence({ clientRoot, manifest, graph, a same(target.modelSet, promptModelSet(profile)); assert.equal(target.outputPlan.minimumAssetCount, 1); assert.ok(target.outputPlan.mediaKinds.includes(profile.outputKind)); - const stat = lstatSync(evidencePath); - assert.ok(stat.isFile() && !stat.isSymbolicLink() && stat.size > 0 && stat.size <= 65536); - const descriptorBytes = readFileSync(evidencePath); - const evidence = JSON.parse(descriptorBytes); keys(evidence, [ 'schemaVersion', 'format', @@ -1864,7 +1876,7 @@ export async function readPromptVariantEvidence({ clientRoot, manifest, graph, a outputHash: item.mediaHash, executionDurationSeconds: measurement.elapsedSeconds, peakMemoryBytes, - canonicalDefaultsExecuted: false, + canonicalDefaultsExecuted: profile.canonicalDefaults === true, promptBinding: { nodeId: bound.generator.id, field: 'prompt', sha256: digest(bound.prompt) }, ...(profile.bindNegativePrompt ? { diff --git a/scripts/prompt-variant-evidence.test.mjs b/scripts/prompt-variant-evidence.test.mjs index 9c5b2808..9a8b6e93 100644 --- a/scripts/prompt-variant-evidence.test.mjs +++ b/scripts/prompt-variant-evidence.test.mjs @@ -25,6 +25,30 @@ const clientRoot = fileURLToPath(new URL('..', import.meta.url)); const backendRoot = resolve(process.env.MODIFF_BACKEND_DIR ?? join(clientRoot, '../MoDiff')); const digest = (value) => createHash('sha256').update(value).digest('hex'); +const subwayDefaultEvidence = process.env.MODIFF_WAN_SUBWAY_DEFAULT_EVIDENCE; +test( + 'the original Subway run verifies both pinned models and its unchanged template', + { skip: !subwayDefaultEvidence }, + async () => { + const { receipt } = await readCanonicalWorkflowEvidence({ + clientRoot, + backendRoot, + workflowId: 'WanTI2VPipeline:text_to_video', + evidencePath: subwayDefaultEvidence, + }); + assert.equal(receipt.taskId, 'q1OmLM7R0ueK'); + assert.equal(receipt.sourceTemplateId, 'wan_22_ti2v_5b_seed_vault'); + assert.equal(receipt.canonicalDefaultsExecuted, true); + assert.deepEqual( + receipt.modelSet.map(({ repoId }) => repoId), + ['ACE-Step/acestep-v15-xl-turbo-diffusers', 'Wan-AI/Wan2.2-TI2V-5B-Diffusers'], + ); + assert.equal(receipt.decodedOutput.frames, 121); + assert.ok(receipt.decodedOutput.audio); + assert.ok(Object.values(receipt.qualificationClaims).every((claim) => claim === false)); + }, +); + for (const [workflowId, environment, proofKind, output] of [ [ 'StableAudioPipeline:text_to_audio', @@ -141,6 +165,17 @@ test('a prompt variant fills a single empty literal and keeps all other fields a const baselineHash = canonicalGraphIdentity(baseline).hash; assert.equal(bindPromptVariant(profile, baseline, creator, submitted, baselineHash).prompt, 'One example'); assert.equal(baseline.nodes.b.params.prompt.value, ''); + const exactProfile = { ...profile, canonicalDefaults: true }; + assert.throws( + () => bindPromptVariant(exactProfile, baseline, creator, submitted, baselineHash), + /Canonical prompt cannot be changed/u, + ); + const exactSubmission = { ...structuredClone(baseline), runtimeHints: {} }; + const changedDefault = { ...exactProfile, reviewedSettings: [['loader', 'device', 'cuda:0', 'cpu']] }; + assert.throws( + () => bindPromptVariant(changedDefault, baseline, baseline, exactSubmission, baselineHash), + /Canonical settings and wires cannot be changed/u, + ); const wrongControl = structuredClone(submitted); wrongControl.nodes.a.params.device.value = 'cpu'; diff --git a/scripts/release-contract-core.mjs b/scripts/release-contract-core.mjs index fd41df77..fafecfd6 100644 --- a/scripts/release-contract-core.mjs +++ b/scripts/release-contract-core.mjs @@ -946,6 +946,7 @@ export async function readCanonicalWorkflowEvidence({ clientRoot, backendRoot, w 'modiff.private.wan-a14b-video-prompt-variant.v1', 'modiff.private.wan-a14b-opening-image-variant.v1', 'modiff.private.wan-subway-soundtrack-variant.v1', + 'modiff.private.wan-subway-soundtrack-default.v1', 'modiff.private.ltx-long-scheduled-image-variant.v1', 'modiff.private.ltx2-native-av-variant.v1', 'modiff.private.wan-character-animate-inputs.v1', From b324309027effe68ec7c01685a344e1bdd5b747e Mon Sep 17 00:00:00 2001 From: Sourav Das Date: Thu, 26 Nov 2026 01:45:58 +0530 Subject: [PATCH 402/440] Verify the exact Final Mise en Place opening image --- scripts/prompt-variant-evidence.mjs | 65 ++++++++++++++++-------- scripts/prompt-variant-evidence.test.mjs | 21 ++++++++ scripts/release-contract-core.mjs | 1 + 3 files changed, 67 insertions(+), 20 deletions(-) diff --git a/scripts/prompt-variant-evidence.mjs b/scripts/prompt-variant-evidence.mjs index 0ec52c14..f5d6b861 100644 --- a/scripts/prompt-variant-evidence.mjs +++ b/scripts/prompt-variant-evidence.mjs @@ -262,6 +262,17 @@ const wanA14BOpeningRoute = { chain: [['source', 'modules.Image', 'Load', ''], ...wanA14BRoute.chain], }; +const wanA14BDefaultOpeningRoute = { + ...wanA14BOpeningRoute, + format: 'modiff.private.wan-a14b-default-opening.v1', + previousExpertFamily: 'FluxControlImg2ImgPipeline', + sourceFingerprint: 'sha256:backend-source-v1:73c0d5622c9c305eb2c13478fbac4ca9ea09c71689c74d38679fa6af592c8964', + retainedRegistryHash: '0c7eb754b1eec427474be513ff6bd7837ce77ceb5f05853361616e302962fef4', + fixedAuthoredPrompts: true, + retainedImageLoadFields: true, + openingWebpSha256: '0afd006835683f29a96f60652958fe696713da2ac15bf75170e0e87b96860e15', +}; + const ltx2AudioVideoRoutes = [ ['LTX2Pipeline', 'text_to_video'], ['LTX2ConditionPipeline', 'text_to_video'], @@ -814,7 +825,12 @@ export function bindPromptVariant( bindReviewedSettings(expectedOwners, profile.reviewedSettings); const expectedInputs = expectedOwners.generator.node.params; if (profile.bindsImage) { - assert.match(sourceValue, /^@data\/images\/[a-z0-9_-]{1,120}[.]png$/iu); + assert.match( + sourceValue, + profile.openingWebpSha256 + ? /^@data\/images\/[a-z0-9_-]{1,120}[.]webp$/iu + : /^@data\/images\/[a-z0-9_-]{1,120}[.]png$/iu, + ); const { params } = expectedOwners.source.node; same(params.file, { display: 'filebrowser', value: [] }); assert.equal(params.alpha_channel.value, 'ignore'); @@ -861,7 +877,8 @@ export function bindPromptVariant( const submittedOwners = owners(profile, output); const prompt = submittedOwners.generator.node.params.prompt.value; assert.ok(typeof prompt === 'string' && prompt.length <= 4096 && prompt.trim() === prompt); - if (profile.canonicalDefaults) assert.equal(prompt, promptSlot.value, 'Canonical prompt cannot be changed.'); + if (profile.canonicalDefaults || profile.fixedAuthoredPrompts) + assert.equal(prompt, promptSlot.value, 'Canonical prompt cannot be changed.'); else if (profile.imageOnly) assert.equal(prompt, promptSlot.value); else assert.ok(prompt.length > 0); assert.ok(!/[\u0000-\u001f\u007f]/u.test(prompt), 'Prompt exercise contains an unsupported control character.'); @@ -879,6 +896,8 @@ export function bindPromptVariant( typeof negativePrompt === 'string' && negativePrompt.length <= 4096 && negativePrompt.trim() === negativePrompt, ); assert.ok(!/[\u0000-\u001f\u007f]/u.test(negativePrompt)); + if (profile.fixedAuthoredPrompts) + assert.equal(negativePrompt, slot.value, 'Canonical negative prompt cannot be changed.'); slot.value = negativePrompt; } let seed; @@ -1459,7 +1478,7 @@ export async function readPromptVariantEvidence({ clientRoot, manifest, graph, a audioLdmRoute, stableAudioRoute, wanA14BRoute, - wanA14BOpeningRoute, + evidence.format === wanA14BDefaultOpeningRoute.format ? wanA14BDefaultOpeningRoute : wanA14BOpeningRoute, evidence.format === wanSubwayDefaultRoute.format ? wanSubwayDefaultRoute : wanSubwayRoute, ...ltx2AudioVideoRoutes, ltxScheduledRoute, @@ -1670,23 +1689,29 @@ export async function readPromptVariantEvidence({ clientRoot, manifest, graph, a const source = read(suppliedInput.file, (profile.nativeJointAudio ? 8 : 2) * 1024 * 1024); const upload = json(suppliedInput.upload); const { width, height } = inputBinding.decodedImage; - assert.equal(upload.error, false); - assert.equal(upload.path, suppliedInput.sourceValue); - same( - upload.media, - { - filename: suppliedInput.sourceValue.split('/').at(-1), - extension: '.png', - sizeBytes: source.bytes.length, - sha256: inputBinding.sha256, - kind: 'image', - mimeType: 'image/png', - width, - height, - frames: 1, - }, - 'Caption input differs from the original image upload.', - ); + if (profile.openingWebpSha256) { + assert.equal(inputBinding.sha256, profile.openingWebpSha256, 'The authored opening image differs.'); + const { verifyRetainedWebpUpload } = await import('./private-image-edit-evidence.mjs'); + verifyRetainedWebpUpload(upload, suppliedInput, { width, height }, source.bytes); + } else { + assert.equal(upload.error, false); + assert.equal(upload.path, suppliedInput.sourceValue); + same( + upload.media, + { + filename: suppliedInput.sourceValue.split('/').at(-1), + extension: '.png', + sizeBytes: source.bytes.length, + sha256: inputBinding.sha256, + kind: 'image', + mimeType: 'image/png', + width, + height, + frames: 1, + }, + 'Caption input differs from the original image upload.', + ); + } if (profile.retainedImageLoadFields) { const { decodedMediaHash } = await import('./template-gallery-harness.mjs'); const decoded = await decodedMediaHash(source.file, 'image'); diff --git a/scripts/prompt-variant-evidence.test.mjs b/scripts/prompt-variant-evidence.test.mjs index 9a8b6e93..517f385f 100644 --- a/scripts/prompt-variant-evidence.test.mjs +++ b/scripts/prompt-variant-evidence.test.mjs @@ -49,6 +49,27 @@ test( }, ); +const miseEvidence = process.env.MODIFF_WAN_A14B_DEFAULT_OPENING_EVIDENCE; +test( + 'Final Mise en Place binds the original WebP in the current generic Generate recipe', + { skip: !miseEvidence }, + async () => { + const { receipt } = await readCanonicalWorkflowEvidence({ + clientRoot, + backendRoot, + workflowId: 'WanImageToVideoPipeline:image_to_video', + evidencePath: miseEvidence, + }); + assert.equal(receipt.taskId, 'JFza3SGd1h5j'); + assert.equal(receipt.sourceTemplateId, 'wan_22_i2v_seed_vault'); + assert.equal(receipt.inputBinding.sha256, '0afd006835683f29a96f60652958fe696713da2ac15bf75170e0e87b96860e15'); + assert.deepEqual(receipt.inputBinding.decodedImage, { width: 1536, height: 1024, mode: 'RGB' }); + assert.equal(receipt.decodedOutput.frames, 81); + assert.equal(receipt.observationLimits.openingImageLoadFieldsObserved, true); + assert.ok(Object.values(receipt.qualificationClaims).every((claim) => claim === false)); + }, +); + for (const [workflowId, environment, proofKind, output] of [ [ 'StableAudioPipeline:text_to_audio', diff --git a/scripts/release-contract-core.mjs b/scripts/release-contract-core.mjs index fafecfd6..be0d98c8 100644 --- a/scripts/release-contract-core.mjs +++ b/scripts/release-contract-core.mjs @@ -945,6 +945,7 @@ export async function readCanonicalWorkflowEvidence({ clientRoot, backendRoot, w 'modiff.private.stable-video-opening-image-variant.v1', 'modiff.private.wan-a14b-video-prompt-variant.v1', 'modiff.private.wan-a14b-opening-image-variant.v1', + 'modiff.private.wan-a14b-default-opening.v1', 'modiff.private.wan-subway-soundtrack-variant.v1', 'modiff.private.wan-subway-soundtrack-default.v1', 'modiff.private.ltx-long-scheduled-image-variant.v1', From b550ba9afe522495383df95a11962661d8a923b3 Mon Sep 17 00:00:00 2001 From: Sourav Das Date: Thu, 26 Nov 2026 02:00:24 +0530 Subject: [PATCH 403/440] Retain exact FramePack execution evidence --- scripts/prompt-variant-evidence.mjs | 38 +++++++++++++++++++++++- scripts/prompt-variant-evidence.test.mjs | 20 +++++++++++++ scripts/release-contract-core.mjs | 1 + 3 files changed, 58 insertions(+), 1 deletion(-) diff --git a/scripts/prompt-variant-evidence.mjs b/scripts/prompt-variant-evidence.mjs index f5d6b861..cf00830c 100644 --- a/scripts/prompt-variant-evidence.mjs +++ b/scripts/prompt-variant-evidence.mjs @@ -273,6 +273,34 @@ const wanA14BDefaultOpeningRoute = { openingWebpSha256: '0afd006835683f29a96f60652958fe696713da2ac15bf75170e0e87b96860e15', }; +const framepackLanternRoute = { + ...wanA14BRoute, + format: 'modiff.private.framepack-lantern-opening.v1', + workflowId: 'HunyuanVideoFramepackPipeline:image_to_video', + modelType: 'HunyuanVideoFramepackPipeline', + modelRepo: 'lllyasviel/FramePackI2V_HY', + modelRevision: '86cef4396041b6002c957852daac4c91aaa47c79', + auxiliaryModels: [ + { repoId: 'hunyuanvideo-community/HunyuanVideo', revision: 'e8c2aaa66fe3742a32c11a6766aecbf07c56e773' }, + { repoId: 'lllyasviel/flux_redux_bfl', revision: '45b801affc54ff2af4e5daf1b282e0921901db87' }, + ], + sourceFingerprint: 'sha256:backend-source-v1:166b29e5c349734b73cf1012c791ce5fa5545c189bee7c5eb696258a8cb1c920', + retainedRegistryHash: 'cd72915788eec3784f2baf6753b624e8be958d872357df644d9261b296fa6c99', + previousExpertFamily: null, + executedTask: 'image_to_video', + bindsImage: true, + imageInputPort: 'reference_images', + bindSeed: false, + retainedImageLoadFields: true, + openingWebpSha256: '245deed3f2a8ac213c630ac7a8517c625c1eaa60971778d816a55220310ed8c3', + reviewedSettings: [ + ['generator', 'width', 768, 640], + ['generator', 'height', 512, 640], + ], + deliveredFrameCount: 109, + chain: [['source', 'modules.Image', 'Load', ''], ...wanA14BRoute.chain], +}; + const ltx2AudioVideoRoutes = [ ['LTX2Pipeline', 'text_to_video'], ['LTX2ConditionPipeline', 'text_to_video'], @@ -722,6 +750,7 @@ const promptModelSet = (profile) => ...(profile.motionAdapter ? [profile.motionAdapter] : []), ...(profile.controlAdapter ? [profile.controlAdapter] : []), ...(profile.soundtrack ? [{ repoId: profile.soundtrack.repoId, revision: profile.soundtrack.revision }] : []), + ...(profile.auxiliaryModels ?? []), { repoId: profile.modelRepo, revision: profile.modelRevision }, ...(profile.videoUpscaler ? [{ repoId: profile.videoUpscaler.file.value, revision: profile.videoUpscaler.file.revision }] @@ -1479,6 +1508,7 @@ export async function readPromptVariantEvidence({ clientRoot, manifest, graph, a stableAudioRoute, wanA14BRoute, evidence.format === wanA14BDefaultOpeningRoute.format ? wanA14BDefaultOpeningRoute : wanA14BOpeningRoute, + framepackLanternRoute, evidence.format === wanSubwayDefaultRoute.format ? wanSubwayDefaultRoute : wanSubwayRoute, ...ltx2AudioVideoRoutes, ltxScheduledRoute, @@ -1845,7 +1875,7 @@ export async function readPromptVariantEvidence({ clientRoot, manifest, graph, a decodedOutput = validateNativeVideoDelivery(decoded, item, { width: width.value * scale, height: height.value * scale, - frames: num_frames.value, + frames: profile.deliveredFrameCount ?? num_frames.value, fps: bound.preview.node.params.fps.value, soundtrack: Boolean(profile.soundtrack), nativeJointAudio: Boolean(profile.nativeJointAudio), @@ -1945,6 +1975,12 @@ export async function readPromptVariantEvidence({ clientRoot, manifest, graph, a ...(profile.retainedImageLoadFields ? { openingImageLoadFieldsObserved: true, samplerInputPixelsObserved: false } : {}), + ...(profile.deliveredFrameCount !== undefined + ? { + requestedFrames: bound.generator.node.params.num_frames.value, + nativeDeliveredFrames: profile.deliveredFrameCount, + } + : {}), ...(boundVideos.length ? { motionVideoBytesWitnessed: 'original-uploads-and-typed-wires', consumedMotionFramesObserved: false } : {}), diff --git a/scripts/prompt-variant-evidence.test.mjs b/scripts/prompt-variant-evidence.test.mjs index 517f385f..7e3e9fb3 100644 --- a/scripts/prompt-variant-evidence.test.mjs +++ b/scripts/prompt-variant-evidence.test.mjs @@ -70,6 +70,26 @@ test( }, ); +const framepackEvidence = process.env.MODIFF_FRAMEPACK_LANTERN_EVIDENCE; +test( + 'FramePack binds the three installed snapshots and reports its window-rounded delivery', + { skip: !framepackEvidence }, + async () => { + const { receipt } = await readCanonicalWorkflowEvidence({ + clientRoot, + backendRoot, + workflowId: 'HunyuanVideoFramepackPipeline:image_to_video', + evidencePath: framepackEvidence, + }); + assert.equal(receipt.taskId, 'BvrI_dBb3QPQ'); + assert.equal(receipt.modelSet.length, 3); + assert.equal(receipt.observationLimits.requestedFrames, 81); + assert.equal(receipt.observationLimits.nativeDeliveredFrames, 109); + assert.equal(receipt.decodedOutput.frames, 109); + assert.ok(Object.values(receipt.qualificationClaims).every((claim) => claim === false)); + }, +); + for (const [workflowId, environment, proofKind, output] of [ [ 'StableAudioPipeline:text_to_audio', diff --git a/scripts/release-contract-core.mjs b/scripts/release-contract-core.mjs index be0d98c8..ab105724 100644 --- a/scripts/release-contract-core.mjs +++ b/scripts/release-contract-core.mjs @@ -946,6 +946,7 @@ export async function readCanonicalWorkflowEvidence({ clientRoot, backendRoot, w 'modiff.private.wan-a14b-video-prompt-variant.v1', 'modiff.private.wan-a14b-opening-image-variant.v1', 'modiff.private.wan-a14b-default-opening.v1', + 'modiff.private.framepack-lantern-opening.v1', 'modiff.private.wan-subway-soundtrack-variant.v1', 'modiff.private.wan-subway-soundtrack-default.v1', 'modiff.private.ltx-long-scheduled-image-variant.v1', From e78949304a016dde4b73859cf3dc79025efb4cf5 Mon Sep 17 00:00:00 2001 From: Sourav Das Date: Thu, 26 Nov 2026 08:46:26 +0530 Subject: [PATCH 404/440] Register the approved FLUX Canny and Depth control edits --- config/release-showcase-scope.v1.json | 16 +- .../retained-gallery-approved-batch.v1.json | 38 +++ ...etained-gallery-authoring-archives.v1.json | 12 + ...etained-gallery-batch-recipe-locks.v1.json | 32 ++ config/template-asset-rights.v1.json | 305 +++++++++++++++++- config/template-assets.v1.json | 115 ++++++- public/template-gallery/manifest.json | 68 ++++ scripts/bundle-budget.mjs | 4 + scripts/retained-gallery-provenance.mjs | 5 +- scripts/retained-gallery-release.test.mjs | 36 +++ scripts/retained-gallery-templates.test.mjs | 9 +- src/studio/retainedGalleryApprovedBatch.ts | 183 +++++++++++ src/studio/templateAssetSource.json | 6 +- src/studio/types.ts | 2 + 14 files changed, 815 insertions(+), 16 deletions(-) diff --git a/config/release-showcase-scope.v1.json b/config/release-showcase-scope.v1.json index 82d50c1e..2414f3ae 100644 --- a/config/release-showcase-scope.v1.json +++ b/config/release-showcase-scope.v1.json @@ -4,7 +4,7 @@ "name": "Registered showcase preview without AMD-cloud backlog", "dataset": { "repository": "sourav-das/modiff-template-gallery", - "revision": "e39500e807b448bdb0df4e8cdc1cccbe3ff46f4a" + "revision": "9f5e32a0c6cf9096d76e625bf7f844c10680edd4" }, "originalCampaign": { "total": 89, @@ -1197,7 +1197,19 @@ "category": "supplementary-only", "reason": "Published from the approved AMD run, outside the original curated selection.", "countedAsComplete": false + }, + { + "id": "flux_canny_black_ink_cube", + "category": "supplementary-only", + "reason": "Published from the approved AMD run, outside the original curated selection.", + "countedAsComplete": false + }, + { + "id": "flux_depth_marine_teal_bow_edit", + "category": "supplementary-only", + "reason": "Published from the approved AMD run, outside the original curated selection.", + "countedAsComplete": false } ], - "profileHash": "sha256:canonical-json:ba3051846bbff869e582a1cdd71fa2d395baed58ef2adbdb61a6babed1c5bb72" + "profileHash": "sha256:canonical-json:73677bd5c8dd26c2d8c30db64dfb28aa3eb38771ae741647b6733d5b5dce3572" } diff --git a/config/retained-gallery-approved-batch.v1.json b/config/retained-gallery-approved-batch.v1.json index 733a0750..652f2ff3 100644 --- a/config/retained-gallery-approved-batch.v1.json +++ b/config/retained-gallery-approved-batch.v1.json @@ -1596,5 +1596,43 @@ "width": 1024, "height": 1024 } + }, + "flux_canny_black_ink_cube": { + "associationSha256": "05be845003036dccba5d99186b1484d6d47ec6df28bfcdd35a32102a141b9b1c", + "backendSourceFingerprint": "sha256:backend-source-v1:73c0d5622c9c305eb2c13478fbac4ca9ea09c71689c74d38679fa6af592c8964", + "backendContractFingerprint": "sha256:backend-contract-v1:a726a4911d942b352bd2cf362667a5c67d7868af60789bf1ecd73896ddd05a43", + "templateRevisionHash": "31fd14f25aae5426b9b42550ef75f26b26e4847703460e6076bcefea1d9c8cc6", + "capturedAt": "2026-11-25T18:59:54.565Z", + "outputExtension": "webp", + "primaryModelRepo": "black-forest-labs/FLUX.1-Canny-dev", + "outputSize": { + "width": 1024, + "height": 1024 + }, + "inputSize": { + "width": 1024, + "height": 1024 + }, + "beforeExtension": "png", + "beforePath": "/template-gallery/inputs/joy_plus_lavender_on_limestone.before.png" + }, + "flux_depth_marine_teal_bow_edit": { + "associationSha256": "59340478a35dfce98e9c6735f2cc2fab40dd2386c1e74dbe1f674ec4cde0a5cd", + "backendSourceFingerprint": "sha256:backend-source-v1:73c0d5622c9c305eb2c13478fbac4ca9ea09c71689c74d38679fa6af592c8964", + "backendContractFingerprint": "sha256:backend-contract-v1:a726a4911d942b352bd2cf362667a5c67d7868af60789bf1ecd73896ddd05a43", + "templateRevisionHash": "4495ab72ea261fbec0dbbe7796bbb1927c5acf5a39dcd6cc28ae13496c76c019", + "capturedAt": "2026-11-25T18:56:57.629Z", + "outputExtension": "webp", + "primaryModelRepo": "black-forest-labs/FLUX.1-Depth-dev", + "outputSize": { + "width": 1024, + "height": 1024 + }, + "inputSize": { + "width": 1024, + "height": 1024 + }, + "beforeExtension": "webp", + "beforePath": "/template-gallery/inputs/flux_depth_marine_bow_repair.before.webp" } } diff --git a/config/retained-gallery-authoring-archives.v1.json b/config/retained-gallery-authoring-archives.v1.json index f8a74c34..eaee2988 100644 --- a/config/retained-gallery-authoring-archives.v1.json +++ b/config/retained-gallery-authoring-archives.v1.json @@ -567,5 +567,17 @@ "descriptorSha256": "449bc094096e644f4070a681e382650d133c0854ec6770cfbb736f0299e04179", "bytes": 4729, "sha256": "e523fa1d31a2bb0c2ccbd2525ac0cce68fe57adc77332446239ddf62683f8a05" + }, + "FluxCannyPipeline:control_edit_image": { + "descriptorSha256": "724ce269610cdd5125ec9134578e90efa01e8a5983e40f24c6430d75c482a33f", + "bytes": 5192, + "sha256": "ca4e16701f620f3df1f5e90fe875186805cdbb18ec37cdc79d6308e77b9f56c3", + "additionalDescriptorHashes": ["415d44064aa7a39efc8210929310318c19ec426af27d9d79355f10152528c65f"] + }, + "FluxDepthPipeline:control_edit_image": { + "descriptorSha256": "0058748cdd192a232fed65515497b9f245d45b3da79f7eeae3edb3ffd040e1d4", + "bytes": 5192, + "sha256": "f4d0c17bb30cd6be44f18dc6edbd80f72f52000702e9093aff3178fe2f7b1efa", + "additionalDescriptorHashes": ["bf9721153bcecfc373e34c532462a705e21dda2fd89fbc1c168fa910d1c558e7"] } } diff --git a/config/retained-gallery-batch-recipe-locks.v1.json b/config/retained-gallery-batch-recipe-locks.v1.json index e6e407ef..b6f6326a 100644 --- a/config/retained-gallery-batch-recipe-locks.v1.json +++ b/config/retained-gallery-batch-recipe-locks.v1.json @@ -1642,5 +1642,37 @@ "promptSha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855", "inputSha256": "41f07c8ec7ab5d7097cba0f77867b61e666c6a803900784697ff816b851b98de", "inputLocatorSha256": "d79c9efe3b98c7a29473ef76321ca10b42c37381dadfecc2373db7c51b5777ef" + }, + "flux_canny_black_ink_cube": { + "workflowId": "FluxCannyPipeline:control_edit_image", + "sourceTaskTemplateId": "task-template:flux-canny:control-edit-image:v1", + "retainedGraphHash": "sha256:canonical-graph-v1:67b6ea243b95dcc3bd650ffad71d1138f4cc7d1d57e243a755d53acc3ed87fa4", + "originalReceiptSha256": "724ce269610cdd5125ec9134578e90efa01e8a5983e40f24c6430d75c482a33f", + "reviewedTemplateSha256": "31fd14f25aae5426b9b42550ef75f26b26e4847703460e6076bcefea1d9c8cc6", + "reviewedCatalogLock": { + "templateLockHash": "tpl_6309469e", + "galleryTemplateLockHash": "tpl_35d15309", + "promptSettingsHash": "ps_62bb6180" + }, + "promptSha256": "1ec08bfc27e69f226af0d8ce5d8588afb0c103c25b2399189b9f84ade100fbff", + "inputSha256": "0a41a9c56b98945e60c96ef796660c35b2cab7bf0b36d5e84ab0d97ef97f0a5a", + "inputLocatorSha256": "00d3f6164f425c19f3865f5816408f5ab4f9964483c22293c3b855ca62dfda47", + "guideSha256": "fb9c9cd18138c124335a688b92c15f3194b0f0071f1dac710b71870b9e3b361f" + }, + "flux_depth_marine_teal_bow_edit": { + "workflowId": "FluxDepthPipeline:control_edit_image", + "sourceTaskTemplateId": "task-template:flux-depth:control-edit-image:v1", + "retainedGraphHash": "sha256:canonical-graph-v1:fb0d8ae61d4bde3d097d3dfb64fe2f8d3d91e03c30fc36d89cf96ab650313a0d", + "originalReceiptSha256": "0058748cdd192a232fed65515497b9f245d45b3da79f7eeae3edb3ffd040e1d4", + "reviewedTemplateSha256": "4495ab72ea261fbec0dbbe7796bbb1927c5acf5a39dcd6cc28ae13496c76c019", + "reviewedCatalogLock": { + "templateLockHash": "tpl_74cd6773", + "galleryTemplateLockHash": "tpl_9c2a8470", + "promptSettingsHash": "ps_fdc2afcb" + }, + "promptSha256": "b83acc336b8f6dcbf6bb984c351b31875c619517b186894512fc78d58fe73302", + "inputSha256": "c3d52c29b6a8cae80d2feffb8a978cded8b34509abd09216f665ab3af13f189e", + "inputLocatorSha256": "413b3d05273c8b38fd36af33d25ef9f1f5e017f7cdc243f861c9138f071ad452", + "guideSha256": "2e202069a584ee5ada91e2deaea6bf7b92a94f4816e669e695d7cb64d5a1cb0e" } } diff --git a/config/template-asset-rights.v1.json b/config/template-asset-rights.v1.json index 56df94ca..96a24a10 100644 --- a/config/template-asset-rights.v1.json +++ b/config/template-asset-rights.v1.json @@ -1,6 +1,6 @@ { "schemaVersion": 1, - "assetSetId": "sha256:canonical-json:b16429b50a2a5b58296739df4279f79fad5f7517d68bb2e5a54885d211aabb02", + "assetSetId": "sha256:canonical-json:f7171be49ec9b65b02949db31d45a0bc8a4079a2dec5a35d32d2e70e597e8468", "records": [ { "path": "template-gallery/ace_step_audio_continuation.wav", @@ -1423,6 +1423,33 @@ "modelUseBasis": "Non-commercial use only", "provenanceTemplateId": "flux3_klein_fp8r512_text_to_image" }, + { + "path": "template-gallery/flux_canny_black_ink_cube.webp", + "sha256": "sha256:bytes:6e5d7e57733a301c94e9ec50075492aebb831b8f2686f3c96ab810592a5ff3b0", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Exact approved file captured from a saved MoDiff workflow", + "sourceUrl": "https://huggingface.co/black-forest-labs/FLUX.1-Canny-dev/tree/27c3d8bdc17509b47cf4fd9ba25ab1c7508a69a2", + "sourceRevision": "black-forest-labs/FLUX.1-Canny-dev@27c3d8bdc17509b47cf4fd9ba25ab1c7508a69a2", + "sourceLicense": "Maintainer-authorized file with publisher terms retained", + "modelTerms": [ + "Publisher model terms at https://huggingface.co/black-forest-labs/FLUX.1-Canny-dev/tree/27c3d8bdc17509b47cf4fd9ba25ab1c7508a69a2" + ], + "aiGenerated": true, + "humanLikenessConsent": "synthetic", + "marks": [], + "requiredAttribution": [ + "black-forest-labs/FLUX.1-Canny-dev@27c3d8bdc17509b47cf4fd9ba25ab1c7508a69a2 https://huggingface.co/black-forest-labs/FLUX.1-Canny-dev/tree/27c3d8bdc17509b47cf4fd9ba25ab1c7508a69a2" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-26", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "68a00a8e0e0cdf80ef52460f27dcb5544125a9d3f5422c6960dfecbd21c953e1", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "flux_canny_black_ink_cube" + }, { "path": "template-gallery/flux_canny_clean_backdrop.webp", "sha256": "sha256:bytes:7261f62b7730f9bd0ceebf9beb3c768cf81640afaeb6285ba6f7f2cdb1406df2", @@ -1527,6 +1554,33 @@ "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", "provenanceTemplateId": "flux_depth_marine_bow_repair" }, + { + "path": "template-gallery/flux_depth_marine_teal_bow_edit.webp", + "sha256": "sha256:bytes:e169de0a8b997dbb30ba63f329360cd4ac730a9413f124fade3c0a2bd42bffe0", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Exact approved file captured from a saved MoDiff workflow", + "sourceUrl": "https://huggingface.co/black-forest-labs/FLUX.1-Depth-dev/tree/fb5e9b1bae41b8c8adcea4ea2a87b74dd298f07a", + "sourceRevision": "black-forest-labs/FLUX.1-Depth-dev@fb5e9b1bae41b8c8adcea4ea2a87b74dd298f07a", + "sourceLicense": "Maintainer-authorized file with publisher terms retained", + "modelTerms": [ + "Publisher model terms at https://huggingface.co/black-forest-labs/FLUX.1-Depth-dev/tree/fb5e9b1bae41b8c8adcea4ea2a87b74dd298f07a" + ], + "aiGenerated": true, + "humanLikenessConsent": "synthetic", + "marks": [], + "requiredAttribution": [ + "black-forest-labs/FLUX.1-Depth-dev@fb5e9b1bae41b8c8adcea4ea2a87b74dd298f07a https://huggingface.co/black-forest-labs/FLUX.1-Depth-dev/tree/fb5e9b1bae41b8c8adcea4ea2a87b74dd298f07a" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-26", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "68a00a8e0e0cdf80ef52460f27dcb5544125a9d3f5422c6960dfecbd21c953e1", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "flux_depth_marine_teal_bow_edit" + }, { "path": "template-gallery/flux_dev_expert_text_to_image.card-poster.webp", "sha256": "sha256:bytes:13c815eb6d245685e543d000e499036aad973bea6c0d4fff01c670580db08206", @@ -4801,6 +4855,33 @@ ], "approvalInheritedFromPath": "template-gallery/inputs/flux2_klein_edit.before.png" }, + { + "path": "template-gallery/inputs/flux_canny_black_ink_cube.guide.png", + "sha256": "sha256:bytes:fb9c9cd18138c124335a688b92c15f3194b0f0071f1dac710b71870b9e3b361f", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Exact approved file captured from a saved MoDiff workflow", + "sourceUrl": "https://huggingface.co/black-forest-labs/FLUX.1-Canny-dev/tree/27c3d8bdc17509b47cf4fd9ba25ab1c7508a69a2", + "sourceRevision": "black-forest-labs/FLUX.1-Canny-dev@27c3d8bdc17509b47cf4fd9ba25ab1c7508a69a2", + "sourceLicense": "Maintainer-authorized file with publisher terms retained", + "modelTerms": [ + "Publisher model terms at https://huggingface.co/black-forest-labs/FLUX.1-Canny-dev/tree/27c3d8bdc17509b47cf4fd9ba25ab1c7508a69a2" + ], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "black-forest-labs/FLUX.1-Canny-dev@27c3d8bdc17509b47cf4fd9ba25ab1c7508a69a2 https://huggingface.co/black-forest-labs/FLUX.1-Canny-dev/tree/27c3d8bdc17509b47cf4fd9ba25ab1c7508a69a2" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-26", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "68a00a8e0e0cdf80ef52460f27dcb5544125a9d3f5422c6960dfecbd21c953e1", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "flux_canny_black_ink_cube" + }, { "path": "template-gallery/inputs/flux_canny_clean_backdrop.before.png", "sha256": "sha256:bytes:e75c20f0e8a74e283b996bf526e6ea74535ed24125ad97c2d92508d3435d7a87", @@ -9683,7 +9764,7 @@ }, { "path": "template-gallery/manifest.json", - "sha256": "sha256:bytes:da498c34fa5389f278304f27fe78a0058e8d74f4a0d188442bbad93d4a276328", + "sha256": "sha256:bytes:eec3e7bc7d17a4f6ef3063c9d38ff2b85eb230d059576df289a879312a018e88", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", @@ -9698,9 +9779,9 @@ "requiredAttribution": [], "assetLicense": "Apache-2.0", "reviewedBy": "MoDiff workspace maintainer", - "reviewedAt": "2026-11-25", + "reviewedAt": "2026-11-26", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "a7a2ce4e3e9bdfddcd33a4f3c2a7df0b69c0e815eef0493a9f0a748acf1716b8", + "humanApprovalPacketSHA256": "68a00a8e0e0cdf80ef52460f27dcb5544125a9d3f5422c6960dfecbd21c953e1", "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained." }, { @@ -14892,6 +14973,114 @@ "humanApprovalPacketSHA256": "a55745498d9c767d581d947b90b12ad4308e5f95b870224ef67107d5894f2499", "humanApprovalScope": "Exact source images, authored mask and SHA-bound review packet. Numeric quality scores are the AI assessment, not human-supplied scores. The metadata is project-authored; it introduces no new third-party media rights." }, + { + "path": "template-gallery/reviews/flux_canny_black_ink_cube.original-provenance.json", + "sha256": "sha256:bytes:ffa8a788f7fb52949d814a9f49fcce56b0c24eedeebcc93ac096af99eccc984b", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/black-forest-labs/FLUX.1-Canny-dev/tree/27c3d8bdc17509b47cf4fd9ba25ab1c7508a69a2", + "sourceRevision": "black-forest-labs/FLUX.1-Canny-dev@27c3d8bdc17509b47cf4fd9ba25ab1c7508a69a2", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "Publisher model terms at https://huggingface.co/black-forest-labs/FLUX.1-Canny-dev/tree/27c3d8bdc17509b47cf4fd9ba25ab1c7508a69a2" + ], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "black-forest-labs/FLUX.1-Canny-dev@27c3d8bdc17509b47cf4fd9ba25ab1c7508a69a2 https://huggingface.co/black-forest-labs/FLUX.1-Canny-dev/tree/27c3d8bdc17509b47cf4fd9ba25ab1c7508a69a2" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-26", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "68a00a8e0e0cdf80ef52460f27dcb5544125a9d3f5422c6960dfecbd21c953e1", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "flux_canny_black_ink_cube" + }, + { + "path": "template-gallery/reviews/flux_canny_black_ink_cube.original-review.json", + "sha256": "sha256:bytes:0d2613893fe629784a951879aa26d8edbec5b41635d28daf727aa8ff9ad6c5c5", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/black-forest-labs/FLUX.1-Canny-dev/tree/27c3d8bdc17509b47cf4fd9ba25ab1c7508a69a2", + "sourceRevision": "black-forest-labs/FLUX.1-Canny-dev@27c3d8bdc17509b47cf4fd9ba25ab1c7508a69a2", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "Publisher model terms at https://huggingface.co/black-forest-labs/FLUX.1-Canny-dev/tree/27c3d8bdc17509b47cf4fd9ba25ab1c7508a69a2" + ], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "black-forest-labs/FLUX.1-Canny-dev@27c3d8bdc17509b47cf4fd9ba25ab1c7508a69a2 https://huggingface.co/black-forest-labs/FLUX.1-Canny-dev/tree/27c3d8bdc17509b47cf4fd9ba25ab1c7508a69a2" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-26", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "68a00a8e0e0cdf80ef52460f27dcb5544125a9d3f5422c6960dfecbd21c953e1", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "flux_canny_black_ink_cube" + }, + { + "path": "template-gallery/reviews/flux_canny_black_ink_cube.quality-review.json", + "sha256": "sha256:bytes:876e52c4f3137edf34fc3f53ff22a751a987816d9ec54ffc9206627e6a25bcce", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/black-forest-labs/FLUX.1-Canny-dev/tree/27c3d8bdc17509b47cf4fd9ba25ab1c7508a69a2", + "sourceRevision": "black-forest-labs/FLUX.1-Canny-dev@27c3d8bdc17509b47cf4fd9ba25ab1c7508a69a2", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "Publisher model terms at https://huggingface.co/black-forest-labs/FLUX.1-Canny-dev/tree/27c3d8bdc17509b47cf4fd9ba25ab1c7508a69a2" + ], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "black-forest-labs/FLUX.1-Canny-dev@27c3d8bdc17509b47cf4fd9ba25ab1c7508a69a2 https://huggingface.co/black-forest-labs/FLUX.1-Canny-dev/tree/27c3d8bdc17509b47cf4fd9ba25ab1c7508a69a2" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-26", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "68a00a8e0e0cdf80ef52460f27dcb5544125a9d3f5422c6960dfecbd21c953e1", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "flux_canny_black_ink_cube" + }, + { + "path": "template-gallery/reviews/flux_canny_black_ink_cube.retained-template-provenance.json", + "sha256": "sha256:bytes:78610fce6104c3ab1a363716af15194a02a1466e697590b3af0aa3f8edf9aebd", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/black-forest-labs/FLUX.1-Canny-dev/tree/27c3d8bdc17509b47cf4fd9ba25ab1c7508a69a2", + "sourceRevision": "black-forest-labs/FLUX.1-Canny-dev@27c3d8bdc17509b47cf4fd9ba25ab1c7508a69a2", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "Publisher model terms at https://huggingface.co/black-forest-labs/FLUX.1-Canny-dev/tree/27c3d8bdc17509b47cf4fd9ba25ab1c7508a69a2" + ], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "black-forest-labs/FLUX.1-Canny-dev@27c3d8bdc17509b47cf4fd9ba25ab1c7508a69a2 https://huggingface.co/black-forest-labs/FLUX.1-Canny-dev/tree/27c3d8bdc17509b47cf4fd9ba25ab1c7508a69a2" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-26", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "68a00a8e0e0cdf80ef52460f27dcb5544125a9d3f5422c6960dfecbd21c953e1", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "flux_canny_black_ink_cube" + }, { "path": "template-gallery/reviews/flux_canny_clean_backdrop.original-provenance.json", "sha256": "sha256:bytes:7936bae847ef1c4e92911b3bede96023c8f2e13a67a43775eea3de2b73715f1d", @@ -15196,6 +15385,114 @@ "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", "provenanceTemplateId": "flux_depth_marine_bow_repair" }, + { + "path": "template-gallery/reviews/flux_depth_marine_teal_bow_edit.original-provenance.json", + "sha256": "sha256:bytes:1693d179dfee6ccaada54e291c4dee8f818a30ce4adab5d26a2f835a4340a0dd", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/black-forest-labs/FLUX.1-Depth-dev/tree/fb5e9b1bae41b8c8adcea4ea2a87b74dd298f07a", + "sourceRevision": "black-forest-labs/FLUX.1-Depth-dev@fb5e9b1bae41b8c8adcea4ea2a87b74dd298f07a", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "Publisher model terms at https://huggingface.co/black-forest-labs/FLUX.1-Depth-dev/tree/fb5e9b1bae41b8c8adcea4ea2a87b74dd298f07a" + ], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "black-forest-labs/FLUX.1-Depth-dev@fb5e9b1bae41b8c8adcea4ea2a87b74dd298f07a https://huggingface.co/black-forest-labs/FLUX.1-Depth-dev/tree/fb5e9b1bae41b8c8adcea4ea2a87b74dd298f07a" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-26", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "68a00a8e0e0cdf80ef52460f27dcb5544125a9d3f5422c6960dfecbd21c953e1", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "flux_depth_marine_teal_bow_edit" + }, + { + "path": "template-gallery/reviews/flux_depth_marine_teal_bow_edit.original-review.json", + "sha256": "sha256:bytes:7722237c624f3fa884dade97287657a67130ccf29879ac0ab98c39c7da0e5ed7", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/black-forest-labs/FLUX.1-Depth-dev/tree/fb5e9b1bae41b8c8adcea4ea2a87b74dd298f07a", + "sourceRevision": "black-forest-labs/FLUX.1-Depth-dev@fb5e9b1bae41b8c8adcea4ea2a87b74dd298f07a", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "Publisher model terms at https://huggingface.co/black-forest-labs/FLUX.1-Depth-dev/tree/fb5e9b1bae41b8c8adcea4ea2a87b74dd298f07a" + ], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "black-forest-labs/FLUX.1-Depth-dev@fb5e9b1bae41b8c8adcea4ea2a87b74dd298f07a https://huggingface.co/black-forest-labs/FLUX.1-Depth-dev/tree/fb5e9b1bae41b8c8adcea4ea2a87b74dd298f07a" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-26", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "68a00a8e0e0cdf80ef52460f27dcb5544125a9d3f5422c6960dfecbd21c953e1", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "flux_depth_marine_teal_bow_edit" + }, + { + "path": "template-gallery/reviews/flux_depth_marine_teal_bow_edit.quality-review.json", + "sha256": "sha256:bytes:f4e528d2c0cdd892a93074a909de8988b0deed238fe06fa38b9d6cbfb66044ed", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/black-forest-labs/FLUX.1-Depth-dev/tree/fb5e9b1bae41b8c8adcea4ea2a87b74dd298f07a", + "sourceRevision": "black-forest-labs/FLUX.1-Depth-dev@fb5e9b1bae41b8c8adcea4ea2a87b74dd298f07a", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "Publisher model terms at https://huggingface.co/black-forest-labs/FLUX.1-Depth-dev/tree/fb5e9b1bae41b8c8adcea4ea2a87b74dd298f07a" + ], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "black-forest-labs/FLUX.1-Depth-dev@fb5e9b1bae41b8c8adcea4ea2a87b74dd298f07a https://huggingface.co/black-forest-labs/FLUX.1-Depth-dev/tree/fb5e9b1bae41b8c8adcea4ea2a87b74dd298f07a" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-26", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "68a00a8e0e0cdf80ef52460f27dcb5544125a9d3f5422c6960dfecbd21c953e1", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "flux_depth_marine_teal_bow_edit" + }, + { + "path": "template-gallery/reviews/flux_depth_marine_teal_bow_edit.retained-template-provenance.json", + "sha256": "sha256:bytes:41803e83072069305fa268ce320f359268e9422e93e94ca8838ed10707e770a7", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/black-forest-labs/FLUX.1-Depth-dev/tree/fb5e9b1bae41b8c8adcea4ea2a87b74dd298f07a", + "sourceRevision": "black-forest-labs/FLUX.1-Depth-dev@fb5e9b1bae41b8c8adcea4ea2a87b74dd298f07a", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "Publisher model terms at https://huggingface.co/black-forest-labs/FLUX.1-Depth-dev/tree/fb5e9b1bae41b8c8adcea4ea2a87b74dd298f07a" + ], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "black-forest-labs/FLUX.1-Depth-dev@fb5e9b1bae41b8c8adcea4ea2a87b74dd298f07a https://huggingface.co/black-forest-labs/FLUX.1-Depth-dev/tree/fb5e9b1bae41b8c8adcea4ea2a87b74dd298f07a" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-26", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "68a00a8e0e0cdf80ef52460f27dcb5544125a9d3f5422c6960dfecbd21c953e1", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "flux_depth_marine_teal_bow_edit" + }, { "path": "template-gallery/reviews/flux_dev_expert_text_to_image.quality-review.json", "sha256": "sha256:bytes:4b7d81b2a342e898519cfef4ea3ada3325831a7a0c93b0966a42d59f74999715", diff --git a/config/template-assets.v1.json b/config/template-assets.v1.json index e3f7ceaf..0c7b4693 100644 --- a/config/template-assets.v1.json +++ b/config/template-assets.v1.json @@ -573,6 +573,17 @@ "width": 512, "height": 512 }, + { + "path": "template-gallery/flux_canny_black_ink_cube.webp", + "size": 104436, + "sha256": "sha256:bytes:6e5d7e57733a301c94e9ec50075492aebb831b8f2686f3c96ab810592a5ff3b0", + "contentType": "image/webp", + "purposes": [ + "runtime" + ], + "width": 1024, + "height": 1024 + }, { "path": "template-gallery/flux_canny_clean_backdrop.webp", "size": 119146, @@ -617,6 +628,17 @@ "width": 1024, "height": 1024 }, + { + "path": "template-gallery/flux_depth_marine_teal_bow_edit.webp", + "size": 502632, + "sha256": "sha256:bytes:e169de0a8b997dbb30ba63f329360cd4ac730a9413f124fade3c0a2bd42bffe0", + "contentType": "image/webp", + "purposes": [ + "runtime" + ], + "width": 1024, + "height": 1024 + }, { "path": "template-gallery/flux_dev_expert_text_to_image.card-poster.webp", "size": 408558, @@ -1890,6 +1912,17 @@ "width": 512, "height": 512 }, + { + "path": "template-gallery/inputs/flux_canny_black_ink_cube.guide.png", + "size": 5492, + "sha256": "sha256:bytes:fb9c9cd18138c124335a688b92c15f3194b0f0071f1dac710b71870b9e3b361f", + "contentType": "image/png", + "purposes": [ + "runtime" + ], + "width": 1024, + "height": 1024 + }, { "path": "template-gallery/inputs/flux_canny_clean_backdrop.before.png", "size": 623267, @@ -3870,8 +3903,8 @@ }, { "path": "template-gallery/manifest.json", - "size": 531940, - "sha256": "sha256:bytes:da498c34fa5389f278304f27fe78a0058e8d74f4a0d188442bbad93d4a276328", + "size": 537280, + "sha256": "sha256:bytes:eec3e7bc7d17a4f6ef3063c9d38ff2b85eb230d059576df289a879312a018e88", "contentType": "application/json", "purposes": [ "runtime", @@ -5795,6 +5828,42 @@ "runtime" ] }, + { + "path": "template-gallery/reviews/flux_canny_black_ink_cube.original-provenance.json", + "size": 1472, + "sha256": "sha256:bytes:ffa8a788f7fb52949d814a9f49fcce56b0c24eedeebcc93ac096af99eccc984b", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, + { + "path": "template-gallery/reviews/flux_canny_black_ink_cube.original-review.json", + "size": 565, + "sha256": "sha256:bytes:0d2613893fe629784a951879aa26d8edbec5b41635d28daf727aa8ff9ad6c5c5", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, + { + "path": "template-gallery/reviews/flux_canny_black_ink_cube.quality-review.json", + "size": 2681, + "sha256": "sha256:bytes:876e52c4f3137edf34fc3f53ff22a751a987816d9ec54ffc9206627e6a25bcce", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, + { + "path": "template-gallery/reviews/flux_canny_black_ink_cube.retained-template-provenance.json", + "size": 3875, + "sha256": "sha256:bytes:78610fce6104c3ab1a363716af15194a02a1466e697590b3af0aa3f8edf9aebd", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, { "path": "template-gallery/reviews/flux_canny_clean_backdrop.original-provenance.json", "size": 1732, @@ -5903,6 +5972,42 @@ "runtime" ] }, + { + "path": "template-gallery/reviews/flux_depth_marine_teal_bow_edit.original-provenance.json", + "size": 1468, + "sha256": "sha256:bytes:1693d179dfee6ccaada54e291c4dee8f818a30ce4adab5d26a2f835a4340a0dd", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, + { + "path": "template-gallery/reviews/flux_depth_marine_teal_bow_edit.original-review.json", + "size": 536, + "sha256": "sha256:bytes:7722237c624f3fa884dade97287657a67130ccf29879ac0ab98c39c7da0e5ed7", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, + { + "path": "template-gallery/reviews/flux_depth_marine_teal_bow_edit.quality-review.json", + "size": 2639, + "sha256": "sha256:bytes:f4e528d2c0cdd892a93074a909de8988b0deed238fe06fa38b9d6cbfb66044ed", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, + { + "path": "template-gallery/reviews/flux_depth_marine_teal_bow_edit.retained-template-provenance.json", + "size": 3903, + "sha256": "sha256:bytes:41803e83072069305fa268ce320f359268e9422e93e94ca8838ed10707e770a7", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, { "path": "template-gallery/reviews/flux_dev_expert_text_to_image.quality-review.json", "size": 4079, @@ -12193,9 +12298,9 @@ "height": 1024 } ], - "assetSetId": "sha256:canonical-json:b16429b50a2a5b58296739df4279f79fad5f7517d68bb2e5a54885d211aabb02", + "assetSetId": "sha256:canonical-json:f7171be49ec9b65b02949db31d45a0bc8a4079a2dec5a35d32d2e70e597e8468", "status": "ready", - "assetCount": 1259, - "totalBytes": 1293900615, + "assetCount": 1270, + "totalBytes": 1294535654, "missingAssets": [] } diff --git a/public/template-gallery/manifest.json b/public/template-gallery/manifest.json index 4e419771..5d063376 100644 --- a/public/template-gallery/manifest.json +++ b/public/template-gallery/manifest.json @@ -6815,6 +6815,74 @@ "approvedOriginalProvenancePath": "/template-gallery/reviews/stable_video_lighthouse_headland.original-provenance.json", "approvedSourcePath": "/template-gallery/inputs/stable_video_lighthouse_headland.first.png", "posterPath": "/template-gallery/stable_video_lighthouse_headland.poster.png" + }, + { + "templateId": "flux_canny_black_ink_cube", + "templateLockHash": "tpl_35d15309", + "promptSettingsHash": "ps_62bb6180", + "modelRevision": "black-forest-labs/FLUX.1-Canny-dev@27c3d8bdc17509b47cf4fd9ba25ab1c7508a69a2", + "runtimeFingerprint": "sha256:stable-runtime-v1:7573ce2b0c90ae7f161aa306220190f47898e51a3e38fd9db0af3077a38884d3", + "graphHash": "sha256:canonical-graph-v1:67b6ea243b95dcc3bd650ffad71d1138f4cc7d1d57e243a755d53acc3ed87fa4", + "proofLockHash": "sha256:retained-template-association-v1:1a15eee171a662869c987c9dbeb7b0af21b6c195059d079366f78294fb22c068", + "backendSourceFingerprint": "sha256:backend-source-v1:73c0d5622c9c305eb2c13478fbac4ca9ea09c71689c74d38679fa6af592c8964", + "backendContractFingerprint": "sha256:backend-contract-v1:a726a4911d942b352bd2cf362667a5c67d7868af60789bf1ecd73896ddd05a43", + "modelCommit": "27c3d8bdc17509b47cf4fd9ba25ab1c7508a69a2", + "templateRevisionHash": "31fd14f25aae5426b9b42550ef75f26b26e4847703460e6076bcefea1d9c8cc6", + "provenancePath": "/template-gallery/reviews/flux_canny_black_ink_cube.retained-template-provenance.json", + "provenanceHash": "sha256:canonical-json:918367c0169b542d2e3592cf767aa099e4786bd51debce63ef0e183232dbdfa0", + "outputPath": "/template-gallery/flux_canny_black_ink_cube.webp", + "thumbnailPath": "/template-gallery/flux_canny_black_ink_cube.webp", + "beforePath": "/template-gallery/inputs/joy_plus_lavender_on_limestone.before.png", + "beforeMediaHash": "sha256:bytes:0a41a9c56b98945e60c96ef796660c35b2cab7bf0b36d5e84ab0d97ef97f0a5a", + "afterPath": "/template-gallery/flux_canny_black_ink_cube.webp", + "mediaType": "image", + "mediaHash": "sha256:decoded-rgba:c1240774142958050f06f218b1f9ab504c648379187f43873e594730c65c0f54", + "width": 1024, + "height": 1024, + "verificationTimestamp": "2026-11-25T18:59:54.565Z", + "verificationStatus": "reviewed", + "qualityReviewStatus": "approved_reviewed", + "qualityReviewHash": "sha256:canonical-json:1c7bb383ec2c8aa861fd1e1589def3ee8c0b0ceed39a39b150f6fa8c5f3be231", + "qualityReviewPath": "/template-gallery/reviews/flux_canny_black_ink_cube.quality-review.json", + "reviewer": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-26T03:07:23.8072053Z", + "approvedOriginalReviewPath": "/template-gallery/reviews/flux_canny_black_ink_cube.original-review.json", + "approvedOriginalProvenancePath": "/template-gallery/reviews/flux_canny_black_ink_cube.original-provenance.json", + "approvedGuidePath": "/template-gallery/inputs/flux_canny_black_ink_cube.guide.png" + }, + { + "templateId": "flux_depth_marine_teal_bow_edit", + "templateLockHash": "tpl_9c2a8470", + "promptSettingsHash": "ps_fdc2afcb", + "modelRevision": "black-forest-labs/FLUX.1-Depth-dev@fb5e9b1bae41b8c8adcea4ea2a87b74dd298f07a", + "runtimeFingerprint": "sha256:stable-runtime-v1:7573ce2b0c90ae7f161aa306220190f47898e51a3e38fd9db0af3077a38884d3", + "graphHash": "sha256:canonical-graph-v1:fb0d8ae61d4bde3d097d3dfb64fe2f8d3d91e03c30fc36d89cf96ab650313a0d", + "proofLockHash": "sha256:retained-template-association-v1:93348542ecf67d74a3b359d1a9fa34846a64342cdcebed98f7d9de2000daed47", + "backendSourceFingerprint": "sha256:backend-source-v1:73c0d5622c9c305eb2c13478fbac4ca9ea09c71689c74d38679fa6af592c8964", + "backendContractFingerprint": "sha256:backend-contract-v1:a726a4911d942b352bd2cf362667a5c67d7868af60789bf1ecd73896ddd05a43", + "modelCommit": "fb5e9b1bae41b8c8adcea4ea2a87b74dd298f07a", + "templateRevisionHash": "4495ab72ea261fbec0dbbe7796bbb1927c5acf5a39dcd6cc28ae13496c76c019", + "provenancePath": "/template-gallery/reviews/flux_depth_marine_teal_bow_edit.retained-template-provenance.json", + "provenanceHash": "sha256:canonical-json:9b281b3be7cc9c3766bede173451fafcaf60fdfd069951abe732df91f87b3b3f", + "outputPath": "/template-gallery/flux_depth_marine_teal_bow_edit.webp", + "thumbnailPath": "/template-gallery/flux_depth_marine_teal_bow_edit.webp", + "beforePath": "/template-gallery/inputs/flux_depth_marine_bow_repair.before.webp", + "beforeMediaHash": "sha256:bytes:c3d52c29b6a8cae80d2feffb8a978cded8b34509abd09216f665ab3af13f189e", + "afterPath": "/template-gallery/flux_depth_marine_teal_bow_edit.webp", + "mediaType": "image", + "mediaHash": "sha256:decoded-rgba:6dbbeaf1bbd636f57f8e5327bacfa3ce8e8ba2e3df8165d3eda60491170dd10e", + "width": 1024, + "height": 1024, + "verificationTimestamp": "2026-11-25T18:56:57.629Z", + "verificationStatus": "reviewed", + "qualityReviewStatus": "approved_reviewed", + "qualityReviewHash": "sha256:canonical-json:f004f4d4730e781efc398441b406435596a9f7ce9b794658fcee05af8d9b56b5", + "qualityReviewPath": "/template-gallery/reviews/flux_depth_marine_teal_bow_edit.quality-review.json", + "reviewer": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-26T03:07:23.8072053Z", + "approvedOriginalReviewPath": "/template-gallery/reviews/flux_depth_marine_teal_bow_edit.original-review.json", + "approvedOriginalProvenancePath": "/template-gallery/reviews/flux_depth_marine_teal_bow_edit.original-provenance.json", + "approvedGuidePath": "/template-gallery/inputs/flux_depth_marine_bow_repair.guide.png" } ] } diff --git a/scripts/bundle-budget.mjs b/scripts/bundle-budget.mjs index e89d533d..29f22675 100644 --- a/scripts/bundle-budget.mjs +++ b/scripts/bundle-budget.mjs @@ -493,6 +493,8 @@ const SOURCE_LICENSES = new URL('../public/THIRD_PARTY_LICENSES.txt', import.met // 504492/682980/346033 largest/startup/deferred gzip bytes: the reviewed // migration ceilings below still pass with 8/12/304 bytes of headroom. const MAX_STARTUP_CHUNK_GZIP_BYTES = + // The two approved FLUX control edits measure 573130 bytes. + 800 + // The two retained Stability AI recipes and their attention setting measure 572330 bytes. 806 + // The retained AudioLDM2 recipe measures 571524 bytes. @@ -809,6 +811,8 @@ const MAX_STARTUP_CHUNK_GZIP_BYTES = // The same build measures 673359 aggregate startup bytes (+45 over the cap). // Keep 19 bytes of headroom; deferred limits and loading boundaries stay fixed. const MAX_STARTUP_GZIP_BYTES = + // The same build measures 751615 total startup gzip bytes. + 798 + // The same build measures 750817 total startup gzip bytes. 807 + // The same recipe measures 750010 total startup gzip bytes. diff --git a/scripts/retained-gallery-provenance.mjs b/scripts/retained-gallery-provenance.mjs index 44fceea2..d02bc508 100644 --- a/scripts/retained-gallery-provenance.mjs +++ b/scripts/retained-gallery-provenance.mjs @@ -193,7 +193,10 @@ export function validateRetainedGalleryProvenance(bundle, entry, { templateRevis qualityReviewStatus: 'approved_reviewed', verificationStatus: 'reviewed', verificationTimestamp: pins.capturedAt, - beforePath: pins.inputSize ? base + 'inputs/' + stem + '.before.' + (pins.beforeExtension ?? 'png') : undefined, + // A reused source must retain the exact already approved Gallery path. + beforePath: pins.inputSize + ? (pins.beforePath ?? base + 'inputs/' + stem + '.before.' + (pins.beforeExtension ?? 'png')) + : undefined, afterPath: pins.inputSize ? outputPath : undefined, beforeMediaHash: output.inputEncodedSha256, beforeSourceMediaHash: pins.beforeExtension === 'mp4' ? output.inputEncodedSha256 : undefined, diff --git a/scripts/retained-gallery-release.test.mjs b/scripts/retained-gallery-release.test.mjs index dfb741ff..f85ace0b 100644 --- a/scripts/retained-gallery-release.test.mjs +++ b/scripts/retained-gallery-release.test.mjs @@ -451,3 +451,39 @@ test( } }, ); + +const fluxSourceFixture = process.env.MODIFF_VERIFY_REUSED_FLUX_GALLERY; +test( + 'approved FLUX edits require their pinned shared Gallery source even when the bytes match', + { skip: !fluxSourceFixture }, + () => { + const registry = JSON.parse(readFileSync(join(fluxSourceFixture, 'public/template-gallery/manifest.json'), 'utf8')); + for (const [templateId, sourceFilename] of [ + ['flux_canny_black_ink_cube', 'joy_plus_lavender_on_limestone.before.png'], + ['flux_depth_marine_teal_bow_edit', 'flux_depth_marine_bow_repair.before.webp'], + ]) { + const entry = registry.examples.find((item) => item.templateId === templateId); + assert.equal(entry.beforePath, '/template-gallery/inputs/' + sourceFilename); + const read = (path) => readFileSync(join(fluxSourceFixture, 'public' + path)); + const provenance = JSON.parse(read(entry.provenancePath)); + const frozen = { + templateRevisionHash: entry.templateRevisionHash, + outputBytes: read(entry.outputPath), + beforeBytes: read(entry.beforePath), + }; + assert.deepEqual(validateRetainedGalleryProvenance(provenance, entry, frozen), []); + const substitute = { + ...entry, + beforePath: '/template-gallery/inputs/' + templateId + '.before.' + sourceFilename.split('.').at(-1), + }; + assert.ok( + validateRetainedGalleryProvenance(provenance, substitute, frozen).some((item) => item.includes('beforePath')), + ); + assert.ok( + validateRetainedGalleryProvenance(provenance, entry, { ...frozen, beforeBytes: Buffer.from('changed') }).some( + (item) => item.includes('source bytes'), + ), + ); + } + }, +); diff --git a/scripts/retained-gallery-templates.test.mjs b/scripts/retained-gallery-templates.test.mjs index 4995ea26..5c11f944 100644 --- a/scripts/retained-gallery-templates.test.mjs +++ b/scripts/retained-gallery-templates.test.mjs @@ -622,7 +622,14 @@ test('fresh Expert recipes prepare with current backend specs and without a gene if (mask) assert.ok(sources.some(({ params }) => params.file.value?.includes(mask))); if (guide) { assert.ok(sources.some(({ params }) => params.file.value?.includes(guide))); - assert.equal(generation.params.conditioning_scale.value, locked.conditioningScale); + if (locked.conditioningScale !== undefined) { + assert.equal(generation.params.conditioning_scale.value, locked.conditioningScale); + } else { + assert.equal(generation.params.image_contract?.value.fieldParams?.conditioning_scale?.hidden, true); + } + if (generation.action === 'ControlEdit' && locked.strength !== undefined) { + assert.equal(generation.params.strength.value, locked.strength); + } } continue; } diff --git a/src/studio/retainedGalleryApprovedBatch.ts b/src/studio/retainedGalleryApprovedBatch.ts index 172f58a1..e9626ce7 100644 --- a/src/studio/retainedGalleryApprovedBatch.ts +++ b/src/studio/retainedGalleryApprovedBatch.ts @@ -9525,4 +9525,187 @@ export const APPROVED_RETAINED_TEMPLATES: StudioTemplate[] = [ }, }, }, + { + id: 'flux_canny_black_ink_cube', + label: 'FLUX.1-Canny-dev — Control Edit: Cube and Plinth in Black Ink', + mode: 'control_edit_image', + modelType: 'FluxCannyPipeline', + intentGroup: 'edit_image', + category: 'edit', + inputBindings: [ + { + id: 'source-image', + label: 'Source Image', + mediaType: 'image', + field: 'referenceImages', + origin: 'user', + requiredAt: 'workflow_start', + count: 1, + }, + { + id: 'control-guide', + label: 'Control Image', + mediaType: 'image', + field: 'controlImage', + origin: 'user', + requiredAt: 'workflow_start', + count: 1, + }, + ], + outputKinds: ['image'], + readinessPolicy: 'requires_input', + modelArtifact: { + source: 'hub', + value: 'black-forest-labs/FLUX.1-Canny-dev', + revision: '27c3d8bdc17509b47cf4fd9ba25ab1c7508a69a2', + }, + description: 'Edit the source image while following a separate control guide.', + prompt: + 'Finely rendered black technical-pen drawing on warm ivory paper. Architectural rendering of a single empty cube with white unfilled faces, thin black outlines, delicate diagonal crosshatching on one face and a low rectangular plinth below. Precisely follow the three-quarter perspective and single straight edges of the guide. Wide clean paper margins, black ink on ivory paper.', + negativePrompt: '', + requiredBackendCapabilities: [ + 'modules.DiffusersImage.ControlEdit', + 'modules.DiffusersImage.LoadPipeline', + 'modules.DiffusersRuntime.PipelineQuantizationConfigV2', + 'modules.DiffusersRuntime.DiffusersExecutionRecipe', + 'modules.Image.Load', + 'modules.Image.Preview', + ], + mediaSlots: [ + { + id: 'before', + label: 'Source image', + kind: 'comparison_before', + role: 'before', + placeholder: 'Source pending', + }, + { + id: 'after', + label: 'Generated image', + kind: 'comparison_after', + role: 'after', + placeholder: 'Preview pending', + }, + ], + thumbnailVariant: 'compareSlider', + recipeSummary: + 'Reproduce the saved Cube and Plinth in Black Ink example with the prompt, source image and control guide.', + runtimeReuseKey: 'sha256:canonical-graph-v1:67b6ea243b95dcc3bd650ffad71d1138f4cc7d1d57e243a755d53acc3ed87fa4', + example: { + mediaType: 'image', + status: 'unverified', + modelRevision: '27c3d8bdc17509b47cf4fd9ba25ab1c7508a69a2', + lockedSeed: 42, + lockedSettings: { + width: 1024, + height: 1024, + steps: 50, + guidanceScale: 30, + strength: 1, + maxSequenceLength: 512, + outputType: 'pil', + dtype: 'bfloat16', + resourceMode: 'expert', + quantizationMode: 'none', + autoOffload: true, + offloadMode: 'model_cpu', + }, + expectedOutput: { + width: 1024, + height: 1024, + }, + runtimeEstimate: '34.56 seconds in the saved run', + }, + }, + { + id: 'flux_depth_marine_teal_bow_edit', + label: 'FLUX.1-Depth-dev — Control Edit: Marine Teal Bow', + mode: 'control_edit_image', + modelType: 'FluxDepthPipeline', + intentGroup: 'edit_image', + category: 'edit', + inputBindings: [ + { + id: 'source-image', + label: 'Source Image', + mediaType: 'image', + field: 'referenceImages', + origin: 'user', + requiredAt: 'workflow_start', + count: 1, + }, + { + id: 'control-guide', + label: 'Control Image', + mediaType: 'image', + field: 'controlImage', + origin: 'user', + requiredAt: 'workflow_start', + count: 1, + }, + ], + outputKinds: ['image'], + readinessPolicy: 'requires_input', + modelArtifact: { + source: 'hub', + value: 'black-forest-labs/FLUX.1-Depth-dev', + revision: 'fb5e9b1bae41b8c8adcea4ea2a87b74dd298f07a', + }, + description: 'Edit the source image while following a separate control guide.', + prompt: + 'A wooden boat workshop viewed straight through the same open doorway. The bow has one continuous deep marine-teal painted stripe exactly where the pale upper hull band was, with the original rusty red-brown hull directly below it. The lower part of the boat stays red-brown. Preserve the silhouette, lit greenery through the opening, wooden benches, windows and floor.', + negativePrompt: '', + requiredBackendCapabilities: [ + 'modules.DiffusersImage.ControlEdit', + 'modules.DiffusersImage.LoadPipeline', + 'modules.DiffusersRuntime.PipelineQuantizationConfigV2', + 'modules.DiffusersRuntime.DiffusersExecutionRecipe', + 'modules.Image.Load', + 'modules.Image.Preview', + ], + mediaSlots: [ + { + id: 'before', + label: 'Source image', + kind: 'comparison_before', + role: 'before', + placeholder: 'Source pending', + }, + { + id: 'after', + label: 'Generated image', + kind: 'comparison_after', + role: 'after', + placeholder: 'Preview pending', + }, + ], + thumbnailVariant: 'compareSlider', + recipeSummary: 'Reproduce the saved Marine Teal Bow example with the prompt, source image and control guide.', + runtimeReuseKey: 'sha256:canonical-graph-v1:fb0d8ae61d4bde3d097d3dfb64fe2f8d3d91e03c30fc36d89cf96ab650313a0d', + example: { + mediaType: 'image', + status: 'unverified', + modelRevision: 'fb5e9b1bae41b8c8adcea4ea2a87b74dd298f07a', + lockedSeed: 42, + lockedSettings: { + width: 1024, + height: 1024, + steps: 50, + guidanceScale: 30, + strength: 0.64, + maxSequenceLength: 512, + outputType: 'pil', + dtype: 'bfloat16', + resourceMode: 'expert', + quantizationMode: 'none', + autoOffload: true, + offloadMode: 'model_cpu', + }, + expectedOutput: { + width: 1024, + height: 1024, + }, + runtimeEstimate: '34.28 seconds in the saved run', + }, + }, ]; diff --git a/src/studio/templateAssetSource.json b/src/studio/templateAssetSource.json index 8d529db1..4a2b9b5d 100644 --- a/src/studio/templateAssetSource.json +++ b/src/studio/templateAssetSource.json @@ -4,11 +4,11 @@ "localBasePath": "/template-gallery", "repoType": "dataset", "repoId": "sourav-das/modiff-template-gallery", - "revision": "e39500e807b448bdb0df4e8cdc1cccbe3ff46f4a", + "revision": "9f5e32a0c6cf9096d76e625bf7f844c10680edd4", "pathPrefix": "template-gallery", "assetManifestPath": "_modiff/template-assets.v1.json", - "assetSetId": "sha256:canonical-json:439ea3af37654bb93b79391decb6ee2ba28cb069a7ca064c2b053e121814cd55", - "completeAssetSetId": "sha256:canonical-json:b16429b50a2a5b58296739df4279f79fad5f7517d68bb2e5a54885d211aabb02", + "assetSetId": "sha256:canonical-json:8b510e8e4e1e645a1caad83ace84b9020828c0f88682a0e30f6338b3a55b5330", + "completeAssetSetId": "sha256:canonical-json:f7171be49ec9b65b02949db31d45a0bc8a4079a2dec5a35d32d2e70e597e8468", "unavailableAssets": [ "template-gallery/ace_step_chinese_new_year_lora.card-poster.png", "template-gallery/ace_step_chinese_new_year_lora.wav", diff --git a/src/studio/types.ts b/src/studio/types.ts index 029f0cfa..aa80fcea 100644 --- a/src/studio/types.ts +++ b/src/studio/types.ts @@ -295,7 +295,9 @@ export type StudioTemplateId = | 'sd15_pag_control_wall_repair' | 'sdxl_pag_snow_cabin' | 'flux_canny_clean_backdrop' + | 'flux_canny_black_ink_cube' | 'flux_depth_marine_bow_repair' + | 'flux_depth_marine_teal_bow_edit' | 'sdxl_control_golden_boathouse' | 'qwen_2511_terracotta_material_transfer' | 'joy_plus_terracotta_on_limestone' From eaeda5d271279681496b1cf8fa05d71b94cdc89f Mon Sep 17 00:00:00 2001 From: Sourav Das Date: Thu, 26 Nov 2026 10:22:46 +0530 Subject: [PATCH 405/440] Register four approved PixArt and unconditional previews --- config/release-showcase-scope.v1.json | 28 +- .../retained-gallery-approved-batch.v1.json | 52 ++ ...etained-gallery-authoring-archives.v1.json | 20 + ...etained-gallery-batch-recipe-locks.v1.json | 49 ++ config/template-asset-rights.v1.json | 546 +++++++++++++++++- config/template-assets.v1.json | 198 ++++++- public/template-gallery/manifest.json | 120 ++++ scripts/bundle-budget.mjs | 4 + scripts/release-contract.mjs | 4 +- scripts/retained-gallery-release.mjs | 47 +- scripts/retained-gallery-release.test.mjs | 45 ++ scripts/retained-gallery-templates.test.mjs | 10 +- src/studio/retainedGalleryApprovedBatch.ts | 253 ++++++++ src/studio/templateAssetSource.json | 6 +- src/studio/types.ts | 4 + 15 files changed, 1355 insertions(+), 31 deletions(-) diff --git a/config/release-showcase-scope.v1.json b/config/release-showcase-scope.v1.json index 2414f3ae..8af0f993 100644 --- a/config/release-showcase-scope.v1.json +++ b/config/release-showcase-scope.v1.json @@ -4,7 +4,7 @@ "name": "Registered showcase preview without AMD-cloud backlog", "dataset": { "repository": "sourav-das/modiff-template-gallery", - "revision": "9f5e32a0c6cf9096d76e625bf7f844c10680edd4" + "revision": "47f928f9ba9df49317b24dd18e267fdb9d873e02" }, "originalCampaign": { "total": 89, @@ -1209,7 +1209,31 @@ "category": "supplementary-only", "reason": "Published from the approved AMD run, outside the original curated selection.", "countedAsComplete": false + }, + { + "id": "pixart_sigma_terracotta_herbs", + "category": "supplementary-only", + "reason": "Published from the approved saved recipe, outside the original curated selection.", + "countedAsComplete": false + }, + { + "id": "pixart_sigma_pag_pink_mascot", + "category": "supplementary-only", + "reason": "Published from the approved saved recipe, outside the original curated selection.", + "countedAsComplete": false + }, + { + "id": "ddpm_cifar32_technical_preview", + "category": "supplementary-only", + "reason": "Published from the approved saved recipe, outside the original curated selection.", + "countedAsComplete": false + }, + { + "id": "consistency_64_technical_preview", + "category": "supplementary-only", + "reason": "Published from the approved saved recipe, outside the original curated selection.", + "countedAsComplete": false } ], - "profileHash": "sha256:canonical-json:73677bd5c8dd26c2d8c30db64dfb28aa3eb38771ae741647b6733d5b5dce3572" + "profileHash": "sha256:canonical-json:0a2a95138336a3c15595776d9758b300a4347cdef17d4f57aba4b11127d5aab0" } diff --git a/config/retained-gallery-approved-batch.v1.json b/config/retained-gallery-approved-batch.v1.json index 652f2ff3..4a815d5a 100644 --- a/config/retained-gallery-approved-batch.v1.json +++ b/config/retained-gallery-approved-batch.v1.json @@ -1634,5 +1634,57 @@ }, "beforeExtension": "webp", "beforePath": "/template-gallery/inputs/flux_depth_marine_bow_repair.before.webp" + }, + "pixart_sigma_terracotta_herbs": { + "associationSha256": "0b6f6526aee4aed5db56e4d685b2bb903e3ff8c0a94b0060edd4620d37f3ab09", + "backendSourceFingerprint": "sha256:backend-source-v1:e3aea8f8d102572ad10fdd0700f0c42d92061e864ede89777efcd6a3269770a8", + "backendContractFingerprint": "sha256:backend-contract-v1:300f2fb801e65ef8a0355d217f3f89e59d11e38f976af5a86ba41212d30216fd", + "templateRevisionHash": "480e216355d747c12b2bb430d60fb8b3f6e774775d7976d5ffcf2fc108af82ee", + "capturedAt": "2026-11-23T17:15:12.387Z", + "outputExtension": "webp", + "primaryModelRepo": "PixArt-alpha/PixArt-Sigma-XL-2-1024-MS", + "outputSize": { + "width": 1024, + "height": 1024 + } + }, + "pixart_sigma_pag_pink_mascot": { + "associationSha256": "0e88e6d01b9ffc0074cfac9d245c295304d45996ffd7557d3a5bc96a7c32dba8", + "backendSourceFingerprint": "sha256:backend-source-v1:8dd9a4d61d2c9c484e4167e38e7360d6b64a37d278e49771630e428189f5448b", + "backendContractFingerprint": "sha256:backend-contract-v1:300f2fb801e65ef8a0355d217f3f89e59d11e38f976af5a86ba41212d30216fd", + "templateRevisionHash": "f1f33d46c694c535230dc9b15fd3c021ad4b4b9a9a70d99a5596c01c3a5f2025", + "capturedAt": "2026-11-19T06:29:39.928Z", + "outputExtension": "webp", + "primaryModelRepo": "PixArt-alpha/PixArt-Sigma-XL-2-1024-MS", + "outputSize": { + "width": 1024, + "height": 1024 + } + }, + "ddpm_cifar32_technical_preview": { + "associationSha256": "1aeeeb5ba1b8bf92cac5150e6d16c4ce742891205863e39fff482cfa14cc3d9a", + "backendSourceFingerprint": "sha256:backend-source-v1:8dd9a4d61d2c9c484e4167e38e7360d6b64a37d278e49771630e428189f5448b", + "backendContractFingerprint": "sha256:backend-contract-v1:d16a0d75259eb0a1deadd48385d2f456ee5d7ed8e4c42ec8c27a53a0f95c079c", + "templateRevisionHash": "ea0657f083a38e463cf3e03212cb1080bf03a810f8feb162a0f80176cf48b34e", + "capturedAt": "2026-11-19T07:41:28.161Z", + "outputExtension": "webp", + "primaryModelRepo": "google/ddpm-cifar10-32", + "outputSize": { + "width": 32, + "height": 32 + } + }, + "consistency_64_technical_preview": { + "associationSha256": "38d3a6c81c2e1c4db1cb5a683ff5480ac75ea09f9a3ddc710018caeba0bce559", + "backendSourceFingerprint": "sha256:backend-source-v1:8dd9a4d61d2c9c484e4167e38e7360d6b64a37d278e49771630e428189f5448b", + "backendContractFingerprint": "sha256:backend-contract-v1:fd79d9695a0390dba3364bad57ac4ea2ccbb5cef673189181f756368701ea1e4", + "templateRevisionHash": "7c73b72123f3a2fc2e3bdef6594d378cfdb16bf862bab5aa0c230cde93e52bfb", + "capturedAt": "2026-11-19T07:34:55.386Z", + "outputExtension": "webp", + "primaryModelRepo": "openai/diffusers-cd_imagenet64_l2", + "outputSize": { + "width": 64, + "height": 64 + } } } diff --git a/config/retained-gallery-authoring-archives.v1.json b/config/retained-gallery-authoring-archives.v1.json index eaee2988..06484b9c 100644 --- a/config/retained-gallery-authoring-archives.v1.json +++ b/config/retained-gallery-authoring-archives.v1.json @@ -579,5 +579,25 @@ "bytes": 5192, "sha256": "f4d0c17bb30cd6be44f18dc6edbd80f72f52000702e9093aff3178fe2f7b1efa", "additionalDescriptorHashes": ["bf9721153bcecfc373e34c532462a705e21dda2fd89fbc1c168fa910d1c558e7"] + }, + "PixArtSigmaPipeline:text_to_image": { + "descriptorSha256": "9076f16b4370211173012a13026466ed57e9b82f92a720e5a337391ec71dbe63", + "bytes": 4120, + "sha256": "025a0e44cd231f3579a4173439d642355212ee7fd4415540039b6c8aae5246e4" + }, + "PixArtSigmaPAGPipeline:text_to_image": { + "descriptorSha256": "54cc8c6e36ad415979c524badb765ea92ef6d2e3de0cbee165f1d77d0fad26c4", + "bytes": 4264, + "sha256": "d2182c0c8c32de1c79574440e4b2bd3c06ed5e65d44e25577e84abe66d1bb151" + }, + "DDPMPipeline:unconditional_image": { + "descriptorSha256": "61f703fb3a33e10d66c0d7b365b2960bcef3adebef89ed32e25da14310758c62", + "bytes": 3420, + "sha256": "617f8c40fd0786d79297a9d2820959c7cf4c52de7e7bb751dbcfaf32b17ddf08" + }, + "ConsistencyModelPipeline:unconditional_image": { + "descriptorSha256": "334fff51739318953bc9c5b7c98530c929b8765592f800d1ec9f4453744e9495", + "bytes": 3531, + "sha256": "6ac7b11519a0b10ab0aed6a6562a888354c2716e130f1039cf6ce37ef91bb16d" } } diff --git a/config/retained-gallery-batch-recipe-locks.v1.json b/config/retained-gallery-batch-recipe-locks.v1.json index b6f6326a..98ae4ad3 100644 --- a/config/retained-gallery-batch-recipe-locks.v1.json +++ b/config/retained-gallery-batch-recipe-locks.v1.json @@ -1674,5 +1674,54 @@ "inputSha256": "c3d52c29b6a8cae80d2feffb8a978cded8b34509abd09216f665ab3af13f189e", "inputLocatorSha256": "413b3d05273c8b38fd36af33d25ef9f1f5e017f7cdc243f861c9138f071ad452", "guideSha256": "2e202069a584ee5ada91e2deaea6bf7b92a94f4816e669e695d7cb64d5a1cb0e" + }, + "pixart_sigma_terracotta_herbs": { + "workflowId": "PixArtSigmaPipeline:text_to_image", + "sourceTaskTemplateId": "task-template:pixart-sigma-1024:text-to-image:v1", + "retainedGraphHash": "sha256:canonical-graph-v1:45bdf2a38647f2c0aaa52206922a4a32a60e4253a3d6cf9185f7007125d367f4", + "originalReceiptSha256": "9076f16b4370211173012a13026466ed57e9b82f92a720e5a337391ec71dbe63", + "reviewedTemplateSha256": "480e216355d747c12b2bb430d60fb8b3f6e774775d7976d5ffcf2fc108af82ee", + "reviewedCatalogLock": { + "templateLockHash": "tpl_41e35f4c", + "galleryTemplateLockHash": "tpl_a325d457", + "promptSettingsHash": "ps_7d930751" + }, + "promptSha256": "813f8878c0e2ff1f2dfeba644ba0c587bbfc5f22664a590ac6733ce4e8a459e6" + }, + "pixart_sigma_pag_pink_mascot": { + "workflowId": "PixArtSigmaPAGPipeline:text_to_image", + "sourceTaskTemplateId": "task-template:pixart-sigma-1024-pag:text-to-image:v1", + "retainedGraphHash": "sha256:canonical-graph-v1:202b5ad2b76097f3e45033e55153e9077e4110164e5878672526eeb72d986b57", + "originalReceiptSha256": "54cc8c6e36ad415979c524badb765ea92ef6d2e3de0cbee165f1d77d0fad26c4", + "reviewedTemplateSha256": "f1f33d46c694c535230dc9b15fd3c021ad4b4b9a9a70d99a5596c01c3a5f2025", + "reviewedCatalogLock": { + "templateLockHash": "tpl_547b61fe", + "galleryTemplateLockHash": "tpl_723f7b31", + "promptSettingsHash": "ps_13489954" + } + }, + "ddpm_cifar32_technical_preview": { + "workflowId": "DDPMPipeline:unconditional_image", + "sourceTaskTemplateId": "task-template:ddpm-cifar10:unconditional-image:v1", + "retainedGraphHash": "sha256:canonical-graph-v1:4fc0c90a6cd5807a3e07843afc9b41d2464390cd6d445b418d0cc48ce964ecc7", + "originalReceiptSha256": "61f703fb3a33e10d66c0d7b365b2960bcef3adebef89ed32e25da14310758c62", + "reviewedTemplateSha256": "ea0657f083a38e463cf3e03212cb1080bf03a810f8feb162a0f80176cf48b34e", + "reviewedCatalogLock": { + "templateLockHash": "tpl_56aaf24b", + "galleryTemplateLockHash": "tpl_9d22bacd", + "promptSettingsHash": "ps_e4c5ee1c" + } + }, + "consistency_64_technical_preview": { + "workflowId": "ConsistencyModelPipeline:unconditional_image", + "sourceTaskTemplateId": "task-template:consistency-imagenet64:unconditional-image:v1", + "retainedGraphHash": "sha256:canonical-graph-v1:6912051646a49f18b61e7f98fdf9665059818faaac3ca3d29c796b32941ee479", + "originalReceiptSha256": "334fff51739318953bc9c5b7c98530c929b8765592f800d1ec9f4453744e9495", + "reviewedTemplateSha256": "7c73b72123f3a2fc2e3bdef6594d378cfdb16bf862bab5aa0c230cde93e52bfb", + "reviewedCatalogLock": { + "templateLockHash": "tpl_cdc10e5d", + "galleryTemplateLockHash": "tpl_2aa7d54b", + "promptSettingsHash": "ps_b171853c" + } } } diff --git a/config/template-asset-rights.v1.json b/config/template-asset-rights.v1.json index 96a24a10..2e4ef740 100644 --- a/config/template-asset-rights.v1.json +++ b/config/template-asset-rights.v1.json @@ -1,6 +1,6 @@ { "schemaVersion": 1, - "assetSetId": "sha256:canonical-json:f7171be49ec9b65b02949db31d45a0bc8a4079a2dec5a35d32d2e70e597e8468", + "assetSetId": "sha256:canonical-json:179504c1ce6950cf1b5f94f30e743f39b2fb5a2b0b2a3bd6a4558b833bb0ebcd", "records": [ { "path": "template-gallery/ace_step_audio_continuation.wav", @@ -877,6 +877,33 @@ "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", "provenanceTemplateId": "cogvideox_red_tram_model_railway" }, + { + "path": "template-gallery/consistency_64_technical_preview.webp", + "sha256": "sha256:bytes:51a46954f6fbb16fa13807e9f376ab88a70fd39fc4d134101ebc560569d5a59a", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Exact approved file captured from a saved MoDiff workflow", + "sourceUrl": "https://huggingface.co/openai/diffusers-cd_imagenet64_l2/tree/5f462e4403fc37b72ec6004e806c71805db22387", + "sourceRevision": "openai/diffusers-cd_imagenet64_l2@5f462e4403fc37b72ec6004e806c71805db22387", + "sourceLicense": "Maintainer-authorized file with publisher terms retained", + "modelTerms": [ + "Publisher model terms at https://huggingface.co/openai/diffusers-cd_imagenet64_l2/tree/5f462e4403fc37b72ec6004e806c71805db22387" + ], + "aiGenerated": true, + "humanLikenessConsent": "synthetic", + "marks": [], + "requiredAttribution": [ + "openai/diffusers-cd_imagenet64_l2@5f462e4403fc37b72ec6004e806c71805db22387 https://huggingface.co/openai/diffusers-cd_imagenet64_l2/tree/5f462e4403fc37b72ec6004e806c71805db22387" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-26", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "efc64011c443b1678207c0dfd79e89def1c0dc3699668f058803e9044b4bd281", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "consistency_64_technical_preview" + }, { "path": "template-gallery/copper_hour_dunes.webp", "sha256": "sha256:bytes:45eabeca35fe5982441c80158faa69bca6da1d7f2efb3002a81a8b5c03ae4ef2", @@ -959,6 +986,33 @@ "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped six saved cases with model terms retained.", "provenanceTemplateId": "ddim_cifar10_preview" }, + { + "path": "template-gallery/ddpm_cifar32_technical_preview.webp", + "sha256": "sha256:bytes:c5c8e86cdb7b5b694a8497742b80cbefc3d2563e08ae17be690b666dc6d7d533", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Exact approved file captured from a saved MoDiff workflow", + "sourceUrl": "https://huggingface.co/google/ddpm-cifar10-32/tree/267b167dc01f0e4e61923ea244e8b988f84deb80", + "sourceRevision": "google/ddpm-cifar10-32@267b167dc01f0e4e61923ea244e8b988f84deb80", + "sourceLicense": "Maintainer-authorized file with publisher terms retained", + "modelTerms": [ + "Publisher model terms at https://huggingface.co/google/ddpm-cifar10-32/tree/267b167dc01f0e4e61923ea244e8b988f84deb80" + ], + "aiGenerated": true, + "humanLikenessConsent": "synthetic", + "marks": [], + "requiredAttribution": [ + "google/ddpm-cifar10-32@267b167dc01f0e4e61923ea244e8b988f84deb80 https://huggingface.co/google/ddpm-cifar10-32/tree/267b167dc01f0e4e61923ea244e8b988f84deb80" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-26", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "efc64011c443b1678207c0dfd79e89def1c0dc3699668f058803e9044b4bd281", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "ddpm_cifar32_technical_preview" + }, { "path": "template-gallery/fast_lora.card-poster.webp", "sha256": "sha256:bytes:071786ad9b3120c3d5981e70c4617cbc9c1ab946bd6aafc7a0e055df02fc27ae", @@ -9764,7 +9818,7 @@ }, { "path": "template-gallery/manifest.json", - "sha256": "sha256:bytes:eec3e7bc7d17a4f6ef3063c9d38ff2b85eb230d059576df289a879312a018e88", + "sha256": "sha256:bytes:8539f3e57be366102255dd96d82f277c46c6f00f90dc3564e87b87c51926a17f", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", @@ -9781,7 +9835,7 @@ "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-26", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "68a00a8e0e0cdf80ef52460f27dcb5544125a9d3f5422c6960dfecbd21c953e1", + "humanApprovalPacketSHA256": "efc64011c443b1678207c0dfd79e89def1c0dc3699668f058803e9044b4bd281", "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained." }, { @@ -9999,6 +10053,60 @@ "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", "provenanceTemplateId": "persimmon_glaze" }, + { + "path": "template-gallery/pixart_sigma_pag_pink_mascot.webp", + "sha256": "sha256:bytes:3070a4858fe91e8567d36bfc706a6201690ccc27f341e5191be548c99f97c28c", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Exact approved file captured from a saved MoDiff workflow", + "sourceUrl": "https://huggingface.co/PixArt-alpha/PixArt-Sigma-XL-2-1024-MS/tree/e102b3591cc82e97071b8b4cb90d834d0c487207", + "sourceRevision": "PixArt-alpha/PixArt-Sigma-XL-2-1024-MS@e102b3591cc82e97071b8b4cb90d834d0c487207", + "sourceLicense": "Maintainer-authorized file with publisher terms retained", + "modelTerms": [ + "Publisher model terms at https://huggingface.co/PixArt-alpha/PixArt-Sigma-XL-2-1024-MS/tree/e102b3591cc82e97071b8b4cb90d834d0c487207" + ], + "aiGenerated": true, + "humanLikenessConsent": "synthetic", + "marks": [], + "requiredAttribution": [ + "PixArt-alpha/PixArt-Sigma-XL-2-1024-MS@e102b3591cc82e97071b8b4cb90d834d0c487207 https://huggingface.co/PixArt-alpha/PixArt-Sigma-XL-2-1024-MS/tree/e102b3591cc82e97071b8b4cb90d834d0c487207" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-26", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "efc64011c443b1678207c0dfd79e89def1c0dc3699668f058803e9044b4bd281", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "pixart_sigma_pag_pink_mascot" + }, + { + "path": "template-gallery/pixart_sigma_terracotta_herbs.webp", + "sha256": "sha256:bytes:97aac37be4286b29536fd415783ee91c3879822ea122c705a5573ba251ac1441", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Exact approved file captured from a saved MoDiff workflow", + "sourceUrl": "https://huggingface.co/PixArt-alpha/PixArt-Sigma-XL-2-1024-MS/tree/e102b3591cc82e97071b8b4cb90d834d0c487207", + "sourceRevision": "PixArt-alpha/PixArt-Sigma-XL-2-1024-MS@e102b3591cc82e97071b8b4cb90d834d0c487207", + "sourceLicense": "Maintainer-authorized file with publisher terms retained", + "modelTerms": [ + "Publisher model terms at https://huggingface.co/PixArt-alpha/PixArt-Sigma-XL-2-1024-MS/tree/e102b3591cc82e97071b8b4cb90d834d0c487207" + ], + "aiGenerated": true, + "humanLikenessConsent": "synthetic", + "marks": [], + "requiredAttribution": [ + "PixArt-alpha/PixArt-Sigma-XL-2-1024-MS@e102b3591cc82e97071b8b4cb90d834d0c487207 https://huggingface.co/PixArt-alpha/PixArt-Sigma-XL-2-1024-MS/tree/e102b3591cc82e97071b8b4cb90d834d0c487207" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-26", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "efc64011c443b1678207c0dfd79e89def1c0dc3699668f058803e9044b4bd281", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "pixart_sigma_terracotta_herbs" + }, { "path": "template-gallery/pomegranate_on_blue_linen.webp", "sha256": "sha256:bytes:ec62b729d1e4b37f37bd7fd8838b831ab10bd82662adc3a359a371cc7e756861", @@ -13682,6 +13790,114 @@ "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", "provenanceTemplateId": "cogvideox_red_tram_model_railway" }, + { + "path": "template-gallery/reviews/consistency_64_technical_preview.original-provenance.json", + "sha256": "sha256:bytes:c82dfa46d0a9c91b1feeda1193f8edc71f9b41764c039fde7f6342baa26a0308", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/openai/diffusers-cd_imagenet64_l2/tree/5f462e4403fc37b72ec6004e806c71805db22387", + "sourceRevision": "openai/diffusers-cd_imagenet64_l2@5f462e4403fc37b72ec6004e806c71805db22387", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "Publisher model terms at https://huggingface.co/openai/diffusers-cd_imagenet64_l2/tree/5f462e4403fc37b72ec6004e806c71805db22387" + ], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "openai/diffusers-cd_imagenet64_l2@5f462e4403fc37b72ec6004e806c71805db22387 https://huggingface.co/openai/diffusers-cd_imagenet64_l2/tree/5f462e4403fc37b72ec6004e806c71805db22387" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-26", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "efc64011c443b1678207c0dfd79e89def1c0dc3699668f058803e9044b4bd281", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "consistency_64_technical_preview" + }, + { + "path": "template-gallery/reviews/consistency_64_technical_preview.original-review.json", + "sha256": "sha256:bytes:82808ed1d53a1d3f2d221a562605d1d069a4dd7ceb047d87587437b6b2e0842a", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/openai/diffusers-cd_imagenet64_l2/tree/5f462e4403fc37b72ec6004e806c71805db22387", + "sourceRevision": "openai/diffusers-cd_imagenet64_l2@5f462e4403fc37b72ec6004e806c71805db22387", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "Publisher model terms at https://huggingface.co/openai/diffusers-cd_imagenet64_l2/tree/5f462e4403fc37b72ec6004e806c71805db22387" + ], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "openai/diffusers-cd_imagenet64_l2@5f462e4403fc37b72ec6004e806c71805db22387 https://huggingface.co/openai/diffusers-cd_imagenet64_l2/tree/5f462e4403fc37b72ec6004e806c71805db22387" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-26", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "efc64011c443b1678207c0dfd79e89def1c0dc3699668f058803e9044b4bd281", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "consistency_64_technical_preview" + }, + { + "path": "template-gallery/reviews/consistency_64_technical_preview.quality-review.json", + "sha256": "sha256:bytes:b4c1485e93b6e771f7179a46190fb3abd473c0755eda9cf3c3a502281ffd6b80", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/openai/diffusers-cd_imagenet64_l2/tree/5f462e4403fc37b72ec6004e806c71805db22387", + "sourceRevision": "openai/diffusers-cd_imagenet64_l2@5f462e4403fc37b72ec6004e806c71805db22387", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "Publisher model terms at https://huggingface.co/openai/diffusers-cd_imagenet64_l2/tree/5f462e4403fc37b72ec6004e806c71805db22387" + ], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "openai/diffusers-cd_imagenet64_l2@5f462e4403fc37b72ec6004e806c71805db22387 https://huggingface.co/openai/diffusers-cd_imagenet64_l2/tree/5f462e4403fc37b72ec6004e806c71805db22387" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-26", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "efc64011c443b1678207c0dfd79e89def1c0dc3699668f058803e9044b4bd281", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "consistency_64_technical_preview" + }, + { + "path": "template-gallery/reviews/consistency_64_technical_preview.retained-template-provenance.json", + "sha256": "sha256:bytes:e7f7e6760448ffa8638c917540596a40382e0cd2b26d4d290346e03127ac0564", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/openai/diffusers-cd_imagenet64_l2/tree/5f462e4403fc37b72ec6004e806c71805db22387", + "sourceRevision": "openai/diffusers-cd_imagenet64_l2@5f462e4403fc37b72ec6004e806c71805db22387", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "Publisher model terms at https://huggingface.co/openai/diffusers-cd_imagenet64_l2/tree/5f462e4403fc37b72ec6004e806c71805db22387" + ], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "openai/diffusers-cd_imagenet64_l2@5f462e4403fc37b72ec6004e806c71805db22387 https://huggingface.co/openai/diffusers-cd_imagenet64_l2/tree/5f462e4403fc37b72ec6004e806c71805db22387" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-26", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "efc64011c443b1678207c0dfd79e89def1c0dc3699668f058803e9044b4bd281", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "consistency_64_technical_preview" + }, { "path": "template-gallery/reviews/copper_hour_dunes.original-provenance.json", "sha256": "sha256:bytes:6223329bd7a1a962703aefba1379c33dae7f57daa40a09aa8e77c1cdd05b099c", @@ -14010,6 +14226,114 @@ "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped six saved cases with model terms retained.", "provenanceTemplateId": "ddim_cifar10_preview" }, + { + "path": "template-gallery/reviews/ddpm_cifar32_technical_preview.original-provenance.json", + "sha256": "sha256:bytes:766480adc6a7bcef178a8d124f1a4fca0fc03b1c708130a14c3b03afa1d110b0", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/google/ddpm-cifar10-32/tree/267b167dc01f0e4e61923ea244e8b988f84deb80", + "sourceRevision": "google/ddpm-cifar10-32@267b167dc01f0e4e61923ea244e8b988f84deb80", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "Publisher model terms at https://huggingface.co/google/ddpm-cifar10-32/tree/267b167dc01f0e4e61923ea244e8b988f84deb80" + ], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "google/ddpm-cifar10-32@267b167dc01f0e4e61923ea244e8b988f84deb80 https://huggingface.co/google/ddpm-cifar10-32/tree/267b167dc01f0e4e61923ea244e8b988f84deb80" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-26", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "efc64011c443b1678207c0dfd79e89def1c0dc3699668f058803e9044b4bd281", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "ddpm_cifar32_technical_preview" + }, + { + "path": "template-gallery/reviews/ddpm_cifar32_technical_preview.original-review.json", + "sha256": "sha256:bytes:bea6f49fd79e6e4aa10fb89efd4774be93d87aa43f45a0f1369193c4646601a0", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/google/ddpm-cifar10-32/tree/267b167dc01f0e4e61923ea244e8b988f84deb80", + "sourceRevision": "google/ddpm-cifar10-32@267b167dc01f0e4e61923ea244e8b988f84deb80", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "Publisher model terms at https://huggingface.co/google/ddpm-cifar10-32/tree/267b167dc01f0e4e61923ea244e8b988f84deb80" + ], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "google/ddpm-cifar10-32@267b167dc01f0e4e61923ea244e8b988f84deb80 https://huggingface.co/google/ddpm-cifar10-32/tree/267b167dc01f0e4e61923ea244e8b988f84deb80" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-26", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "efc64011c443b1678207c0dfd79e89def1c0dc3699668f058803e9044b4bd281", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "ddpm_cifar32_technical_preview" + }, + { + "path": "template-gallery/reviews/ddpm_cifar32_technical_preview.quality-review.json", + "sha256": "sha256:bytes:a5b456f0922a48ac8be8bf15923da379a96af7ce3ef8f71225ddf34a0924d1c3", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/google/ddpm-cifar10-32/tree/267b167dc01f0e4e61923ea244e8b988f84deb80", + "sourceRevision": "google/ddpm-cifar10-32@267b167dc01f0e4e61923ea244e8b988f84deb80", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "Publisher model terms at https://huggingface.co/google/ddpm-cifar10-32/tree/267b167dc01f0e4e61923ea244e8b988f84deb80" + ], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "google/ddpm-cifar10-32@267b167dc01f0e4e61923ea244e8b988f84deb80 https://huggingface.co/google/ddpm-cifar10-32/tree/267b167dc01f0e4e61923ea244e8b988f84deb80" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-26", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "efc64011c443b1678207c0dfd79e89def1c0dc3699668f058803e9044b4bd281", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "ddpm_cifar32_technical_preview" + }, + { + "path": "template-gallery/reviews/ddpm_cifar32_technical_preview.retained-template-provenance.json", + "sha256": "sha256:bytes:466a9954a1a05984d31ac6a9b6cb5d3ed37c90460b039093f5dc89565bcf2673", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/google/ddpm-cifar10-32/tree/267b167dc01f0e4e61923ea244e8b988f84deb80", + "sourceRevision": "google/ddpm-cifar10-32@267b167dc01f0e4e61923ea244e8b988f84deb80", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "Publisher model terms at https://huggingface.co/google/ddpm-cifar10-32/tree/267b167dc01f0e4e61923ea244e8b988f84deb80" + ], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "google/ddpm-cifar10-32@267b167dc01f0e4e61923ea244e8b988f84deb80 https://huggingface.co/google/ddpm-cifar10-32/tree/267b167dc01f0e4e61923ea244e8b988f84deb80" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-26", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "efc64011c443b1678207c0dfd79e89def1c0dc3699668f058803e9044b4bd281", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "ddpm_cifar32_technical_preview" + }, { "path": "template-gallery/reviews/fast_lora.quality-review.json", "sha256": "sha256:bytes:96079ed2226e86a0a0686283402a8c4f567809c73d67138afb4d58fc46936a15", @@ -20705,6 +21029,222 @@ "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped 21 saved cases with model terms retained.", "provenanceTemplateId": "persimmon_glaze" }, + { + "path": "template-gallery/reviews/pixart_sigma_pag_pink_mascot.original-provenance.json", + "sha256": "sha256:bytes:14847afca116ec723f4a85007332a14b6cc31f52226c62ae6a04c2c7640982de", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/PixArt-alpha/PixArt-Sigma-XL-2-1024-MS/tree/e102b3591cc82e97071b8b4cb90d834d0c487207", + "sourceRevision": "PixArt-alpha/PixArt-Sigma-XL-2-1024-MS@e102b3591cc82e97071b8b4cb90d834d0c487207", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "Publisher model terms at https://huggingface.co/PixArt-alpha/PixArt-Sigma-XL-2-1024-MS/tree/e102b3591cc82e97071b8b4cb90d834d0c487207" + ], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "PixArt-alpha/PixArt-Sigma-XL-2-1024-MS@e102b3591cc82e97071b8b4cb90d834d0c487207 https://huggingface.co/PixArt-alpha/PixArt-Sigma-XL-2-1024-MS/tree/e102b3591cc82e97071b8b4cb90d834d0c487207" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-26", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "efc64011c443b1678207c0dfd79e89def1c0dc3699668f058803e9044b4bd281", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "pixart_sigma_pag_pink_mascot" + }, + { + "path": "template-gallery/reviews/pixart_sigma_pag_pink_mascot.original-review.json", + "sha256": "sha256:bytes:332ba1b4fcd00c119b88015f82d40f13c985a294661b2c1f48f8b80c00a866b7", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/PixArt-alpha/PixArt-Sigma-XL-2-1024-MS/tree/e102b3591cc82e97071b8b4cb90d834d0c487207", + "sourceRevision": "PixArt-alpha/PixArt-Sigma-XL-2-1024-MS@e102b3591cc82e97071b8b4cb90d834d0c487207", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "Publisher model terms at https://huggingface.co/PixArt-alpha/PixArt-Sigma-XL-2-1024-MS/tree/e102b3591cc82e97071b8b4cb90d834d0c487207" + ], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "PixArt-alpha/PixArt-Sigma-XL-2-1024-MS@e102b3591cc82e97071b8b4cb90d834d0c487207 https://huggingface.co/PixArt-alpha/PixArt-Sigma-XL-2-1024-MS/tree/e102b3591cc82e97071b8b4cb90d834d0c487207" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-26", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "efc64011c443b1678207c0dfd79e89def1c0dc3699668f058803e9044b4bd281", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "pixart_sigma_pag_pink_mascot" + }, + { + "path": "template-gallery/reviews/pixart_sigma_pag_pink_mascot.quality-review.json", + "sha256": "sha256:bytes:b2babd69ef190701f21b5831fef6b8a10f3999e0051db6b6e45226882f5db666", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/PixArt-alpha/PixArt-Sigma-XL-2-1024-MS/tree/e102b3591cc82e97071b8b4cb90d834d0c487207", + "sourceRevision": "PixArt-alpha/PixArt-Sigma-XL-2-1024-MS@e102b3591cc82e97071b8b4cb90d834d0c487207", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "Publisher model terms at https://huggingface.co/PixArt-alpha/PixArt-Sigma-XL-2-1024-MS/tree/e102b3591cc82e97071b8b4cb90d834d0c487207" + ], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "PixArt-alpha/PixArt-Sigma-XL-2-1024-MS@e102b3591cc82e97071b8b4cb90d834d0c487207 https://huggingface.co/PixArt-alpha/PixArt-Sigma-XL-2-1024-MS/tree/e102b3591cc82e97071b8b4cb90d834d0c487207" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-26", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "efc64011c443b1678207c0dfd79e89def1c0dc3699668f058803e9044b4bd281", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "pixart_sigma_pag_pink_mascot" + }, + { + "path": "template-gallery/reviews/pixart_sigma_pag_pink_mascot.retained-template-provenance.json", + "sha256": "sha256:bytes:47d6baf48d8af2f0ba388dc5ffa2c9445a3b3a261056f07b0968c7a52b697315", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/PixArt-alpha/PixArt-Sigma-XL-2-1024-MS/tree/e102b3591cc82e97071b8b4cb90d834d0c487207", + "sourceRevision": "PixArt-alpha/PixArt-Sigma-XL-2-1024-MS@e102b3591cc82e97071b8b4cb90d834d0c487207", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "Publisher model terms at https://huggingface.co/PixArt-alpha/PixArt-Sigma-XL-2-1024-MS/tree/e102b3591cc82e97071b8b4cb90d834d0c487207" + ], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "PixArt-alpha/PixArt-Sigma-XL-2-1024-MS@e102b3591cc82e97071b8b4cb90d834d0c487207 https://huggingface.co/PixArt-alpha/PixArt-Sigma-XL-2-1024-MS/tree/e102b3591cc82e97071b8b4cb90d834d0c487207" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-26", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "efc64011c443b1678207c0dfd79e89def1c0dc3699668f058803e9044b4bd281", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "pixart_sigma_pag_pink_mascot" + }, + { + "path": "template-gallery/reviews/pixart_sigma_terracotta_herbs.original-provenance.json", + "sha256": "sha256:bytes:50104329cd991e137b9fabe09a0177216e250f601eb076ecf26f055dc6e7c12b", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/PixArt-alpha/PixArt-Sigma-XL-2-1024-MS/tree/e102b3591cc82e97071b8b4cb90d834d0c487207", + "sourceRevision": "PixArt-alpha/PixArt-Sigma-XL-2-1024-MS@e102b3591cc82e97071b8b4cb90d834d0c487207", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "Publisher model terms at https://huggingface.co/PixArt-alpha/PixArt-Sigma-XL-2-1024-MS/tree/e102b3591cc82e97071b8b4cb90d834d0c487207" + ], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "PixArt-alpha/PixArt-Sigma-XL-2-1024-MS@e102b3591cc82e97071b8b4cb90d834d0c487207 https://huggingface.co/PixArt-alpha/PixArt-Sigma-XL-2-1024-MS/tree/e102b3591cc82e97071b8b4cb90d834d0c487207" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-26", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "efc64011c443b1678207c0dfd79e89def1c0dc3699668f058803e9044b4bd281", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "pixart_sigma_terracotta_herbs" + }, + { + "path": "template-gallery/reviews/pixart_sigma_terracotta_herbs.original-review.json", + "sha256": "sha256:bytes:a4fc8269ed81c851a2ba87c033f6a578343afafe612b1b74f5afd73315cbadcb", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/PixArt-alpha/PixArt-Sigma-XL-2-1024-MS/tree/e102b3591cc82e97071b8b4cb90d834d0c487207", + "sourceRevision": "PixArt-alpha/PixArt-Sigma-XL-2-1024-MS@e102b3591cc82e97071b8b4cb90d834d0c487207", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "Publisher model terms at https://huggingface.co/PixArt-alpha/PixArt-Sigma-XL-2-1024-MS/tree/e102b3591cc82e97071b8b4cb90d834d0c487207" + ], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "PixArt-alpha/PixArt-Sigma-XL-2-1024-MS@e102b3591cc82e97071b8b4cb90d834d0c487207 https://huggingface.co/PixArt-alpha/PixArt-Sigma-XL-2-1024-MS/tree/e102b3591cc82e97071b8b4cb90d834d0c487207" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-26", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "efc64011c443b1678207c0dfd79e89def1c0dc3699668f058803e9044b4bd281", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "pixart_sigma_terracotta_herbs" + }, + { + "path": "template-gallery/reviews/pixart_sigma_terracotta_herbs.quality-review.json", + "sha256": "sha256:bytes:f8446ea6f8c3a4edd86455cfd8aa456b5c899a6e11cfa3e766aed2eccc99e6e4", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/PixArt-alpha/PixArt-Sigma-XL-2-1024-MS/tree/e102b3591cc82e97071b8b4cb90d834d0c487207", + "sourceRevision": "PixArt-alpha/PixArt-Sigma-XL-2-1024-MS@e102b3591cc82e97071b8b4cb90d834d0c487207", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "Publisher model terms at https://huggingface.co/PixArt-alpha/PixArt-Sigma-XL-2-1024-MS/tree/e102b3591cc82e97071b8b4cb90d834d0c487207" + ], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "PixArt-alpha/PixArt-Sigma-XL-2-1024-MS@e102b3591cc82e97071b8b4cb90d834d0c487207 https://huggingface.co/PixArt-alpha/PixArt-Sigma-XL-2-1024-MS/tree/e102b3591cc82e97071b8b4cb90d834d0c487207" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-26", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "efc64011c443b1678207c0dfd79e89def1c0dc3699668f058803e9044b4bd281", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "pixart_sigma_terracotta_herbs" + }, + { + "path": "template-gallery/reviews/pixart_sigma_terracotta_herbs.retained-template-provenance.json", + "sha256": "sha256:bytes:143ee68055070094253340c78699cdfd77ea54a43ff6678400988c1b8f27b56e", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/PixArt-alpha/PixArt-Sigma-XL-2-1024-MS/tree/e102b3591cc82e97071b8b4cb90d834d0c487207", + "sourceRevision": "PixArt-alpha/PixArt-Sigma-XL-2-1024-MS@e102b3591cc82e97071b8b4cb90d834d0c487207", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "Publisher model terms at https://huggingface.co/PixArt-alpha/PixArt-Sigma-XL-2-1024-MS/tree/e102b3591cc82e97071b8b4cb90d834d0c487207" + ], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "PixArt-alpha/PixArt-Sigma-XL-2-1024-MS@e102b3591cc82e97071b8b4cb90d834d0c487207 https://huggingface.co/PixArt-alpha/PixArt-Sigma-XL-2-1024-MS/tree/e102b3591cc82e97071b8b4cb90d834d0c487207" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-26", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "efc64011c443b1678207c0dfd79e89def1c0dc3699668f058803e9044b4bd281", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "pixart_sigma_terracotta_herbs" + }, { "path": "template-gallery/reviews/pomegranate_on_blue_linen.original-provenance.json", "sha256": "sha256:bytes:b9cecf2139bc5a0e5d6a3db462caf017c4d54482267592bf220f5015f7ae690b", diff --git a/config/template-assets.v1.json b/config/template-assets.v1.json index 0c7b4693..f17c3215 100644 --- a/config/template-assets.v1.json +++ b/config/template-assets.v1.json @@ -342,6 +342,17 @@ "runtime" ] }, + { + "path": "template-gallery/consistency_64_technical_preview.webp", + "size": 1670, + "sha256": "sha256:bytes:51a46954f6fbb16fa13807e9f376ab88a70fd39fc4d134101ebc560569d5a59a", + "contentType": "image/webp", + "purposes": [ + "runtime" + ], + "width": 64, + "height": 64 + }, { "path": "template-gallery/copper_hour_dunes.webp", "size": 135298, @@ -375,6 +386,17 @@ "width": 32, "height": 32 }, + { + "path": "template-gallery/ddpm_cifar32_technical_preview.webp", + "size": 954, + "sha256": "sha256:bytes:c5c8e86cdb7b5b694a8497742b80cbefc3d2563e08ae17be690b666dc6d7d533", + "contentType": "image/webp", + "purposes": [ + "runtime" + ], + "width": 32, + "height": 32 + }, { "path": "template-gallery/fast_lora.card-poster.webp", "size": 211346, @@ -3903,8 +3925,8 @@ }, { "path": "template-gallery/manifest.json", - "size": 537280, - "sha256": "sha256:bytes:eec3e7bc7d17a4f6ef3063c9d38ff2b85eb230d059576df289a879312a018e88", + "size": 546548, + "sha256": "sha256:bytes:8539f3e57be366102255dd96d82f277c46c6f00f90dc3564e87b87c51926a17f", "contentType": "application/json", "purposes": [ "runtime", @@ -3995,6 +4017,28 @@ "width": 1024, "height": 1024 }, + { + "path": "template-gallery/pixart_sigma_pag_pink_mascot.webp", + "size": 249382, + "sha256": "sha256:bytes:3070a4858fe91e8567d36bfc706a6201690ccc27f341e5191be548c99f97c28c", + "contentType": "image/webp", + "purposes": [ + "runtime" + ], + "width": 1024, + "height": 1024 + }, + { + "path": "template-gallery/pixart_sigma_terracotta_herbs.webp", + "size": 395394, + "sha256": "sha256:bytes:97aac37be4286b29536fd415783ee91c3879822ea122c705a5573ba251ac1441", + "contentType": "image/webp", + "purposes": [ + "runtime" + ], + "width": 1024, + "height": 1024 + }, { "path": "template-gallery/pomegranate_on_blue_linen.webp", "size": 142146, @@ -5360,6 +5404,42 @@ "runtime" ] }, + { + "path": "template-gallery/reviews/consistency_64_technical_preview.original-provenance.json", + "size": 1051, + "sha256": "sha256:bytes:c82dfa46d0a9c91b1feeda1193f8edc71f9b41764c039fde7f6342baa26a0308", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, + { + "path": "template-gallery/reviews/consistency_64_technical_preview.original-review.json", + "size": 506, + "sha256": "sha256:bytes:82808ed1d53a1d3f2d221a562605d1d069a4dd7ceb047d87587437b6b2e0842a", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, + { + "path": "template-gallery/reviews/consistency_64_technical_preview.quality-review.json", + "size": 2444, + "sha256": "sha256:bytes:b4c1485e93b6e771f7179a46190fb3abd473c0755eda9cf3c3a502281ffd6b80", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, + { + "path": "template-gallery/reviews/consistency_64_technical_preview.retained-template-provenance.json", + "size": 3394, + "sha256": "sha256:bytes:e7f7e6760448ffa8638c917540596a40382e0cd2b26d4d290346e03127ac0564", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, { "path": "template-gallery/reviews/copper_hour_dunes.original-provenance.json", "size": 3659, @@ -5468,6 +5548,42 @@ "runtime" ] }, + { + "path": "template-gallery/reviews/ddpm_cifar32_technical_preview.original-provenance.json", + "size": 999, + "sha256": "sha256:bytes:766480adc6a7bcef178a8d124f1a4fca0fc03b1c708130a14c3b03afa1d110b0", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, + { + "path": "template-gallery/reviews/ddpm_cifar32_technical_preview.original-review.json", + "size": 488, + "sha256": "sha256:bytes:bea6f49fd79e6e4aa10fb89efd4774be93d87aa43f45a0f1369193c4646601a0", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, + { + "path": "template-gallery/reviews/ddpm_cifar32_technical_preview.quality-review.json", + "size": 2416, + "sha256": "sha256:bytes:a5b456f0922a48ac8be8bf15923da379a96af7ce3ef8f71225ddf34a0924d1c3", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, + { + "path": "template-gallery/reviews/ddpm_cifar32_technical_preview.retained-template-provenance.json", + "size": 3337, + "sha256": "sha256:bytes:466a9954a1a05984d31ac6a9b6cb5d3ed37c90460b039093f5dc89565bcf2673", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, { "path": "template-gallery/reviews/fast_lora.quality-review.json", "size": 2589, @@ -7864,6 +7980,78 @@ "runtime" ] }, + { + "path": "template-gallery/reviews/pixart_sigma_pag_pink_mascot.original-provenance.json", + "size": 1237, + "sha256": "sha256:bytes:14847afca116ec723f4a85007332a14b6cc31f52226c62ae6a04c2c7640982de", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, + { + "path": "template-gallery/reviews/pixart_sigma_pag_pink_mascot.original-review.json", + "size": 525, + "sha256": "sha256:bytes:332ba1b4fcd00c119b88015f82d40f13c985a294661b2c1f48f8b80c00a866b7", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, + { + "path": "template-gallery/reviews/pixart_sigma_pag_pink_mascot.quality-review.json", + "size": 2440, + "sha256": "sha256:bytes:b2babd69ef190701f21b5831fef6b8a10f3999e0051db6b6e45226882f5db666", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, + { + "path": "template-gallery/reviews/pixart_sigma_pag_pink_mascot.retained-template-provenance.json", + "size": 3373, + "sha256": "sha256:bytes:47d6baf48d8af2f0ba388dc5ffa2c9445a3b3a261056f07b0968c7a52b697315", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, + { + "path": "template-gallery/reviews/pixart_sigma_terracotta_herbs.original-provenance.json", + "size": 1434, + "sha256": "sha256:bytes:50104329cd991e137b9fabe09a0177216e250f601eb076ecf26f055dc6e7c12b", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, + { + "path": "template-gallery/reviews/pixart_sigma_terracotta_herbs.original-review.json", + "size": 474, + "sha256": "sha256:bytes:a4fc8269ed81c851a2ba87c033f6a578343afafe612b1b74f5afd73315cbadcb", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, + { + "path": "template-gallery/reviews/pixart_sigma_terracotta_herbs.quality-review.json", + "size": 2330, + "sha256": "sha256:bytes:f8446ea6f8c3a4edd86455cfd8aa456b5c899a6e11cfa3e766aed2eccc99e6e4", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, + { + "path": "template-gallery/reviews/pixart_sigma_terracotta_herbs.retained-template-provenance.json", + "size": 3350, + "sha256": "sha256:bytes:143ee68055070094253340c78699cdfd77ea54a43ff6678400988c1b8f27b56e", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, { "path": "template-gallery/reviews/pomegranate_on_blue_linen.original-provenance.json", "size": 2497, @@ -12298,9 +12486,9 @@ "height": 1024 } ], - "assetSetId": "sha256:canonical-json:f7171be49ec9b65b02949db31d45a0bc8a4079a2dec5a35d32d2e70e597e8468", + "assetSetId": "sha256:canonical-json:179504c1ce6950cf1b5f94f30e743f39b2fb5a2b0b2a3bd6a4558b833bb0ebcd", "status": "ready", - "assetCount": 1270, - "totalBytes": 1294535654, + "assetCount": 1290, + "totalBytes": 1295222120, "missingAssets": [] } diff --git a/public/template-gallery/manifest.json b/public/template-gallery/manifest.json index 5d063376..4f947930 100644 --- a/public/template-gallery/manifest.json +++ b/public/template-gallery/manifest.json @@ -6883,6 +6883,126 @@ "approvedOriginalReviewPath": "/template-gallery/reviews/flux_depth_marine_teal_bow_edit.original-review.json", "approvedOriginalProvenancePath": "/template-gallery/reviews/flux_depth_marine_teal_bow_edit.original-provenance.json", "approvedGuidePath": "/template-gallery/inputs/flux_depth_marine_bow_repair.guide.png" + }, + { + "templateId": "pixart_sigma_terracotta_herbs", + "templateLockHash": "tpl_a325d457", + "promptSettingsHash": "ps_7d930751", + "modelRevision": "PixArt-alpha/PixArt-Sigma-XL-2-1024-MS@e102b3591cc82e97071b8b4cb90d834d0c487207", + "runtimeFingerprint": "sha256:stable-runtime-v1:c54745b69d492872f845cedc4b219cd19194e7da9f1dbd670ef7167a43cff990", + "graphHash": "sha256:canonical-graph-v1:45bdf2a38647f2c0aaa52206922a4a32a60e4253a3d6cf9185f7007125d367f4", + "proofLockHash": "sha256:retained-template-association-v1:47961d4965466eff547a42011ba54be4579c842fe280fd4fae5d95fc08109dc2", + "backendSourceFingerprint": "sha256:backend-source-v1:e3aea8f8d102572ad10fdd0700f0c42d92061e864ede89777efcd6a3269770a8", + "backendContractFingerprint": "sha256:backend-contract-v1:300f2fb801e65ef8a0355d217f3f89e59d11e38f976af5a86ba41212d30216fd", + "modelCommit": "e102b3591cc82e97071b8b4cb90d834d0c487207", + "templateRevisionHash": "480e216355d747c12b2bb430d60fb8b3f6e774775d7976d5ffcf2fc108af82ee", + "provenancePath": "/template-gallery/reviews/pixart_sigma_terracotta_herbs.retained-template-provenance.json", + "provenanceHash": "sha256:canonical-json:6cd2e2cf4df1944551c87630e26d60f6c1b10000af448d8b0a5650949209bb6a", + "outputPath": "/template-gallery/pixart_sigma_terracotta_herbs.webp", + "thumbnailPath": "/template-gallery/pixart_sigma_terracotta_herbs.webp", + "mediaType": "image", + "mediaHash": "sha256:decoded-rgba:b9f65c4d0d53ac5abe38088e7642b4039a74e6a66fea786cd686526eaa7c9985", + "width": 1024, + "height": 1024, + "verificationTimestamp": "2026-11-23T17:15:12.387Z", + "verificationStatus": "reviewed", + "qualityReviewStatus": "approved_reviewed", + "qualityReviewHash": "sha256:canonical-json:981c9a772f6e656b9f1cdb6c666ff4b46357af4c7f4be7931bc9e94857f9c607", + "qualityReviewPath": "/template-gallery/reviews/pixart_sigma_terracotta_herbs.quality-review.json", + "reviewer": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-26T04:41:05.3021754Z", + "approvedOriginalReviewPath": "/template-gallery/reviews/pixart_sigma_terracotta_herbs.original-review.json", + "approvedOriginalProvenancePath": "/template-gallery/reviews/pixart_sigma_terracotta_herbs.original-provenance.json" + }, + { + "templateId": "pixart_sigma_pag_pink_mascot", + "templateLockHash": "tpl_723f7b31", + "promptSettingsHash": "ps_13489954", + "modelRevision": "PixArt-alpha/PixArt-Sigma-XL-2-1024-MS@e102b3591cc82e97071b8b4cb90d834d0c487207", + "runtimeFingerprint": "sha256:stable-runtime-v1:5846f66250f07c2b7d11a0a97a7094c854b69be56a1aa7f50b772f52b4aeaef9", + "graphHash": "sha256:canonical-graph-v1:202b5ad2b76097f3e45033e55153e9077e4110164e5878672526eeb72d986b57", + "proofLockHash": "sha256:retained-template-association-v1:1f56050648103d43831f252a2f6da9dc5cd497efc208e4d419693d7186217e91", + "backendSourceFingerprint": "sha256:backend-source-v1:8dd9a4d61d2c9c484e4167e38e7360d6b64a37d278e49771630e428189f5448b", + "backendContractFingerprint": "sha256:backend-contract-v1:300f2fb801e65ef8a0355d217f3f89e59d11e38f976af5a86ba41212d30216fd", + "modelCommit": "e102b3591cc82e97071b8b4cb90d834d0c487207", + "templateRevisionHash": "f1f33d46c694c535230dc9b15fd3c021ad4b4b9a9a70d99a5596c01c3a5f2025", + "provenancePath": "/template-gallery/reviews/pixart_sigma_pag_pink_mascot.retained-template-provenance.json", + "provenanceHash": "sha256:canonical-json:b2f69995be4346b1c9d202163716ffd7cf736abb36f2579a64abfc38e00d099c", + "outputPath": "/template-gallery/pixart_sigma_pag_pink_mascot.webp", + "thumbnailPath": "/template-gallery/pixart_sigma_pag_pink_mascot.webp", + "mediaType": "image", + "mediaHash": "sha256:decoded-rgba:3a320ea84a7b8a6778aff7b8ef228400cd5d4d81d94ca9d00571737713ae4a91", + "width": 1024, + "height": 1024, + "verificationTimestamp": "2026-11-19T06:29:39.928Z", + "verificationStatus": "reviewed", + "qualityReviewStatus": "approved_reviewed", + "qualityReviewHash": "sha256:canonical-json:82270c83a110b560d1537b5d57f360cd7259c8a787a95675e3dbb9dadf3d0b9c", + "qualityReviewPath": "/template-gallery/reviews/pixart_sigma_pag_pink_mascot.quality-review.json", + "reviewer": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-26T04:41:05.3021754Z", + "approvedOriginalReviewPath": "/template-gallery/reviews/pixart_sigma_pag_pink_mascot.original-review.json", + "approvedOriginalProvenancePath": "/template-gallery/reviews/pixart_sigma_pag_pink_mascot.original-provenance.json" + }, + { + "templateId": "ddpm_cifar32_technical_preview", + "templateLockHash": "tpl_9d22bacd", + "promptSettingsHash": "ps_e4c5ee1c", + "modelRevision": "google/ddpm-cifar10-32@267b167dc01f0e4e61923ea244e8b988f84deb80", + "runtimeFingerprint": "sha256:stable-runtime-v1:2299351aea101504d371caff5eb79babf14d1e0a953469eac7c879c8e756b1ff", + "graphHash": "sha256:canonical-graph-v1:4fc0c90a6cd5807a3e07843afc9b41d2464390cd6d445b418d0cc48ce964ecc7", + "proofLockHash": "sha256:retained-template-association-v1:aa127c3c544525a1b5863c292f34e8572fae149f317cb2f2200128cdc38aecf6", + "backendSourceFingerprint": "sha256:backend-source-v1:8dd9a4d61d2c9c484e4167e38e7360d6b64a37d278e49771630e428189f5448b", + "backendContractFingerprint": "sha256:backend-contract-v1:d16a0d75259eb0a1deadd48385d2f456ee5d7ed8e4c42ec8c27a53a0f95c079c", + "modelCommit": "267b167dc01f0e4e61923ea244e8b988f84deb80", + "templateRevisionHash": "ea0657f083a38e463cf3e03212cb1080bf03a810f8feb162a0f80176cf48b34e", + "provenancePath": "/template-gallery/reviews/ddpm_cifar32_technical_preview.retained-template-provenance.json", + "provenanceHash": "sha256:canonical-json:a11fc71fedb15a25fc042b49419c5f3492ee6d3047b5d40a7a021b1fb1918901", + "outputPath": "/template-gallery/ddpm_cifar32_technical_preview.webp", + "thumbnailPath": "/template-gallery/ddpm_cifar32_technical_preview.webp", + "mediaType": "image", + "mediaHash": "sha256:decoded-rgba:69bd8190ed63733707be55fb98262d3df3cf81aca3264c1b98f2c04591412383", + "width": 32, + "height": 32, + "verificationTimestamp": "2026-11-19T07:41:28.161Z", + "verificationStatus": "reviewed", + "qualityReviewStatus": "approved_reviewed", + "qualityReviewHash": "sha256:canonical-json:4a5abab5f7452e4d0677710245633118d422eab4ffbf00ac5f438f94ee8965de", + "qualityReviewPath": "/template-gallery/reviews/ddpm_cifar32_technical_preview.quality-review.json", + "reviewer": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-26T04:41:05.3021754Z", + "approvedOriginalReviewPath": "/template-gallery/reviews/ddpm_cifar32_technical_preview.original-review.json", + "approvedOriginalProvenancePath": "/template-gallery/reviews/ddpm_cifar32_technical_preview.original-provenance.json" + }, + { + "templateId": "consistency_64_technical_preview", + "templateLockHash": "tpl_2aa7d54b", + "promptSettingsHash": "ps_b171853c", + "modelRevision": "openai/diffusers-cd_imagenet64_l2@5f462e4403fc37b72ec6004e806c71805db22387", + "runtimeFingerprint": "sha256:stable-runtime-v1:fcd519a076f179f1f945a92f3356ed201598deea69f2b09b06d1f7cb5ede375c", + "graphHash": "sha256:canonical-graph-v1:6912051646a49f18b61e7f98fdf9665059818faaac3ca3d29c796b32941ee479", + "proofLockHash": "sha256:retained-template-association-v1:0f3998226b8778d125ba96d147d96ea332cafd1d48ee62ee349fec72104c5be3", + "backendSourceFingerprint": "sha256:backend-source-v1:8dd9a4d61d2c9c484e4167e38e7360d6b64a37d278e49771630e428189f5448b", + "backendContractFingerprint": "sha256:backend-contract-v1:fd79d9695a0390dba3364bad57ac4ea2ccbb5cef673189181f756368701ea1e4", + "modelCommit": "5f462e4403fc37b72ec6004e806c71805db22387", + "templateRevisionHash": "7c73b72123f3a2fc2e3bdef6594d378cfdb16bf862bab5aa0c230cde93e52bfb", + "provenancePath": "/template-gallery/reviews/consistency_64_technical_preview.retained-template-provenance.json", + "provenanceHash": "sha256:canonical-json:58d0355f1346e6642cc2c87a5c5a2d944aee0dbb8d22fa0931397019dc0205f1", + "outputPath": "/template-gallery/consistency_64_technical_preview.webp", + "thumbnailPath": "/template-gallery/consistency_64_technical_preview.webp", + "mediaType": "image", + "mediaHash": "sha256:decoded-rgba:c893e92c2c9b82cb3a29e33717a668107593e72150961fb9cb9f3a3ff94ce4d8", + "width": 64, + "height": 64, + "verificationTimestamp": "2026-11-19T07:34:55.386Z", + "verificationStatus": "reviewed", + "qualityReviewStatus": "approved_reviewed", + "qualityReviewHash": "sha256:canonical-json:1fc2507112926e32263a2bc059b7c5cdeedd7f1f2c223ddba6528558b232b76d", + "qualityReviewPath": "/template-gallery/reviews/consistency_64_technical_preview.quality-review.json", + "reviewer": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-26T04:41:05.3021754Z", + "approvedOriginalReviewPath": "/template-gallery/reviews/consistency_64_technical_preview.original-review.json", + "approvedOriginalProvenancePath": "/template-gallery/reviews/consistency_64_technical_preview.original-provenance.json" } ] } diff --git a/scripts/bundle-budget.mjs b/scripts/bundle-budget.mjs index 29f22675..9076999f 100644 --- a/scripts/bundle-budget.mjs +++ b/scripts/bundle-budget.mjs @@ -493,6 +493,8 @@ const SOURCE_LICENSES = new URL('../public/THIRD_PARTY_LICENSES.txt', import.met // 504492/682980/346033 largest/startup/deferred gzip bytes: the reviewed // migration ceilings below still pass with 8/12/304 bytes of headroom. const MAX_STARTUP_CHUNK_GZIP_BYTES = + // Four approved saved image recipes add 1280 gzip bytes, for 574410 total. + 1280 + // The two approved FLUX control edits measure 573130 bytes. 800 + // The two retained Stability AI recipes and their attention setting measure 572330 bytes. @@ -811,6 +813,8 @@ const MAX_STARTUP_CHUNK_GZIP_BYTES = // The same build measures 673359 aggregate startup bytes (+45 over the cap). // Keep 19 bytes of headroom; deferred limits and loading boundaries stay fixed. const MAX_STARTUP_GZIP_BYTES = + // The four saved image recipes add 1281 gzip bytes, for 752896 total. + 1281 + // The same build measures 751615 total startup gzip bytes. 798 + // The same build measures 750817 total startup gzip bytes. diff --git a/scripts/release-contract.mjs b/scripts/release-contract.mjs index eaeadc17..f9bd4a73 100644 --- a/scripts/release-contract.mjs +++ b/scripts/release-contract.mjs @@ -23,7 +23,7 @@ import { import { findGalleryEvidencePath } from './release-evidence-paths.mjs'; import { selectReviewedExperimentalWorkflows } from './workflow-library-manifest-state.mjs'; import { readReviewedBoundTemplateAssociations } from './retained-template-association.mjs'; -import { createRetainedGalleryReleaseReader } from './retained-gallery-release.mjs'; +import { createRetainedGalleryReleaseReader, retainedFullGraphImageResource } from './retained-gallery-release.mjs'; import { canonicalJsonHash } from './canonical-json.mjs'; const SCRIPT_DIR = dirname(fileURLToPath(import.meta.url)); @@ -390,7 +390,7 @@ if (existsSync(canonicalRegistryPath)) { if ( derived.receipt.inputBinding || derived.receipt.promptBinding || - stored.workflowId === 'DDIMPipeline:unconditional_image' + retainedFullGraphImageResource(stored.workflowId) ) { if (retainedNativeBySha.has(stored.evidenceSha256)) { throw new Error(`Original bound workflow evidence is duplicated: ${stored.workflowId}`); diff --git a/scripts/retained-gallery-release.mjs b/scripts/retained-gallery-release.mjs index 3e5749e3..48c7e719 100644 --- a/scripts/retained-gallery-release.mjs +++ b/scripts/retained-gallery-release.mjs @@ -16,6 +16,30 @@ import { verifyRetainedSpeechGalleryEvidence } from './retained-speech-gallery-e const same = (actual, expected, label) => assert.deepEqual(actual, expected, label); +const fullGraphImageResources = new Map([ + ['DDIMPipeline:unconditional_image', 'manual-resource-v1:DDIMPipeline|float32|none|none'], + ['DDPMPipeline:unconditional_image', 'manual-resource-v1:DDPMPipeline|float32|none|none'], + ['ConsistencyModelPipeline:unconditional_image', 'manual-resource-v1:ConsistencyModelPipeline|float32|none|none'], + ['PixArtSigmaPAGPipeline:text_to_image', 'manual-resource-v1:PixArtSigmaPAGPipeline|float32|model_cpu|none'], +]); + +export function retainedFullGraphImageResource(workflowId) { + return fullGraphImageResources.get(workflowId) ?? null; +} + +export function assertRetainedFullGraphImage(nativeOutput, receipt, output, dimensions, label) { + assert.equal(receipt.proofKind, 'real_backend_weights', label); + assert.equal(nativeOutput.collectionHash, receipt.outputHash, label); + assert.equal(nativeOutput.count, 1, label); + assert.equal(nativeOutput.items.length, 1, label); + const [image] = nativeOutput.items; + assert.equal(image.mediaType, 'image', label); + assert.equal(image.backendMediaHash, output.outputEncodedSha256, label); + assert.equal(image.byteSize, output.outputBytes, label); + assert.equal(image.decodedSha256, output.decodedMediaHash, label); + assert.deepEqual([image.width, image.height], dimensions, label); +} + export function assertRetainedVideoAdjustment(nativeReceipt, output, label) { const { videoAdjustment, video } = output; const source = nativeReceipt.decodedOutput; @@ -138,12 +162,7 @@ function assertRetainedBatchEvidence({ assert.equal(association.originalCanonicalWorkflowHash, sourceWorkflow.contract.graphHash); assert.equal(association.originalEvidenceSha256, recipe.originalReceiptSha256); assert.equal(association.originalGraphHash, recipe.retainedGraphHash); - assert.equal( - association.originalResourceCandidateId, - recipe.workflowId === 'DDIMPipeline:unconditional_image' - ? 'manual-resource-v1:DDIMPipeline|float32|none|none' - : null, - ); + assert.equal(association.originalResourceCandidateId, retainedFullGraphImageResource(recipe.workflowId)); assert.equal(association.originalTemplateLockHash, null); assert.equal(association.observedExecution.backendContractFingerprint, entry.backendContractFingerprint); assert.equal(association.observedExecution.observationLimits.physicalPlatformQualification, false); @@ -180,15 +199,15 @@ function assertRetainedBatchEvidence({ if (!nativeReceipt) return; const label = 'Published Gallery batch proof differs from the verified native receipt.'; assertRetainedNativeIdentity(association, entry, nativeReceipt, label); - if (recipe.workflowId === 'DDIMPipeline:unconditional_image') { - assert.equal(nativeReceipt.proofKind, 'real_backend_weights', label); + if (retainedFullGraphImageResource(recipe.workflowId)) { assert.equal(nativeReceipt.backendContractFingerprint, entry.backendContractFingerprint, label); - assert.equal(native.provenance.output.collectionHash, nativeReceipt.outputHash, label); - const [image] = native.provenance.output.items; - assert.equal(native.provenance.output.count, 1, label); - assert.equal(image.backendMediaHash, association.output.outputEncodedSha256, label); - assert.equal(image.decodedSha256, association.output.decodedMediaHash, label); - assert.deepEqual([image.width, image.height], [entry.width, entry.height], label); + assertRetainedFullGraphImage( + native.provenance.output, + nativeReceipt, + association.output, + [entry.width, entry.height], + label, + ); return; } assert.equal(nativeReceipt.canonicalDefaultsExecuted, false, label); diff --git a/scripts/retained-gallery-release.test.mjs b/scripts/retained-gallery-release.test.mjs index f85ace0b..66868f85 100644 --- a/scripts/retained-gallery-release.test.mjs +++ b/scripts/retained-gallery-release.test.mjs @@ -6,10 +6,12 @@ import { test } from 'node:test'; import { canonicalJsonHash } from './canonical-json.mjs'; import { canonicalWorkflowContract, readCanonicalEvidenceFile } from './release-contract-core.mjs'; import { + assertRetainedFullGraphImage, assertRetainedMotionInputs, assertRetainedVideoAdjustment, assertRetainedVideoReference, createRetainedGalleryReleaseReader, + retainedFullGraphImageResource, verifiedRetainedGalleryAssetIndex, } from './retained-gallery-release.mjs'; import { createHash } from 'node:crypto'; @@ -22,6 +24,49 @@ import { loadTemplateRuntime } from './template-gallery-harness.mjs'; const hash = (value) => `sha256:canonical-json:${canonicalJsonHash(value)}`; +test('full-graph image recipes require the saved resource settings and exact native image', () => { + assert.equal( + retainedFullGraphImageResource('PixArtSigmaPAGPipeline:text_to_image'), + 'manual-resource-v1:PixArtSigmaPAGPipeline|float32|model_cpu|none', + ); + for (const pipeline of ['DDIMPipeline', 'DDPMPipeline', 'ConsistencyModelPipeline']) { + assert.equal( + retainedFullGraphImageResource(`${pipeline}:unconditional_image`), + `manual-resource-v1:${pipeline}|float32|none|none`, + ); + } + assert.equal(retainedFullGraphImageResource('PixArtSigmaPipeline:text_to_image'), null); + const image = { + mediaType: 'image', + backendMediaHash: 'original-image-bytes', + decodedSha256: 'original-decoded-image', + width: 32, + height: 32, + byteSize: 2000, + }; + const native = { collectionHash: 'original-collection', count: 1, items: [image] }; + const receipt = { proofKind: 'real_backend_weights', outputHash: native.collectionHash }; + const output = { + outputEncodedSha256: image.backendMediaHash, + decodedMediaHash: image.decodedSha256, + outputBytes: 2000, + }; + const check = (collection, run = receipt) => assertRetainedFullGraphImage(collection, run, output, [32, 32]); + assert.doesNotThrow(() => check(native)); + assert.throws(() => check(native, { ...receipt, proofKind: 'real_backend_prompt_bound_model_variant' })); + assert.throws(() => check({ ...native, collectionHash: 'another-collection' })); + assert.throws(() => check({ ...native, items: [image, image] })); + for (const override of [ + { width: 64 }, + { mediaType: 'video' }, + { byteSize: 2001 }, + { backendMediaHash: 'another-encoded-image' }, + { decodedSha256: 'another-decoded-image' }, + ]) { + assert.throws(() => check({ ...native, items: [{ ...image, ...override }] })); + } +}); + test('only retained Gallery before videos accept the larger encoded source size', () => { for (const prefix of ['', '/']) { assert.equal( diff --git a/scripts/retained-gallery-templates.test.mjs b/scripts/retained-gallery-templates.test.mjs index 5c11f944..55baa63d 100644 --- a/scripts/retained-gallery-templates.test.mjs +++ b/scripts/retained-gallery-templates.test.mjs @@ -195,7 +195,9 @@ test('retained Gallery recipes preserve the native graph identities and standalo }); assert.equal(canonicalGraphIdentity(api).hash, recipe.retainedGraphHash, template.id); assert.deepEqual( - Object.values(capture.inputs ?? [capture.input ?? { file: capture.source }]) + Object.values( + capture.inputs ?? (capture.input || capture.source ? [capture.input ?? { file: capture.source }] : []), + ) .map(({ file }) => file.sha256) .sort(), [ @@ -237,7 +239,11 @@ test('retained Gallery recipes preserve the native graph identities and standalo assert.equal(retainedTemplateGraph(recipe).hash, recipe.retainedGraphHash, template.id); } } - assert.ok(!published.some((item) => ['PixArtSigmaPAGPipeline', 'ShapEPipeline'].includes(item.modelType))); + const pag = published.find((item) => item.id === 'pixart_sigma_pag_pink_mascot'); + assert.equal(pag.modelType, 'PixArtSigmaPAGPipeline'); + assert.equal(pag.prompt, ''); + assert.equal(pag.example.lockedSettings.pagScale, 4); + assert.ok(!published.some((item) => item.modelType === 'ShapEPipeline')); }); test('fresh Expert recipes prepare with current backend specs and without a generation request', async () => { diff --git a/src/studio/retainedGalleryApprovedBatch.ts b/src/studio/retainedGalleryApprovedBatch.ts index e9626ce7..b30ba65b 100644 --- a/src/studio/retainedGalleryApprovedBatch.ts +++ b/src/studio/retainedGalleryApprovedBatch.ts @@ -9708,4 +9708,257 @@ export const APPROVED_RETAINED_TEMPLATES: StudioTemplate[] = [ runtimeEstimate: '34.28 seconds in the saved run', }, }, + { + id: 'pixart_sigma_terracotta_herbs', + label: 'Lavender and Rosemary', + mode: 'text_to_image', + modelType: 'PixArtSigmaPipeline', + intentGroup: 'generate_image', + category: 'concept', + outputKinds: ['image'], + readinessPolicy: 'runnable', + modelArtifact: { + source: 'hub', + value: 'PixArt-alpha/PixArt-Sigma-XL-2-1024-MS', + revision: 'e102b3591cc82e97071b8b4cb90d834d0c487207', + }, + description: + 'Two distinct pots and the intended left-right herb order are clear. The right plant fills the pot with multiple stems. The pots have smooth sides and a banded rim.', + prompt: + 'Two separate terracotta terraced herb pots on a slate doorstep. Lavender in the left pot and one rosemary sprig in the right pot. Soft morning light, subdued gray door, simple close-up still life.', + negativePrompt: '', + example: { + mediaType: 'image', + status: 'unverified', + modelRevision: 'e102b3591cc82e97071b8b4cb90d834d0c487207', + lockedSeed: 42, + lockedSettings: { + width: 1024, + height: 1024, + steps: 20, + guidanceScale: 4.5, + strength: 0.8, + maxSequenceLength: 300, + outputType: 'pil', + dtype: 'float32', + resourceMode: 'expert', + quantizationMode: 'none', + autoOffload: true, + offloadMode: 'model_cpu', + }, + expectedOutput: { + width: 1024, + height: 1024, + }, + runtimeEstimate: '121.30 seconds in the saved run', + }, + requiredBackendCapabilities: [ + 'modules.DiffusersImage.Generate', + 'modules.DiffusersImage.LoadPipeline', + 'modules.DiffusersRuntime.PipelineQuantizationConfigV2', + 'modules.DiffusersRuntime.DiffusersExecutionRecipe', + 'modules.Image.Preview', + ], + mediaSlots: [ + { + id: 'result', + label: 'Generated image', + kind: 'image', + role: 'output', + placeholder: 'Result pending', + }, + ], + recipeSummary: 'Reproduce the reviewed still life with its recorded prompt and settings.', + runtimeReuseKey: 'sha256:canonical-graph-v1:45bdf2a38647f2c0aaa52206922a4a32a60e4253a3d6cf9185f7007125d367f4', + }, + { + id: 'pixart_sigma_pag_pink_mascot', + label: 'Technical Preview — Pink Mascot', + mode: 'text_to_image', + modelType: 'PixArtSigmaPAGPipeline', + intentGroup: 'generate_image', + category: 'concept', + outputKinds: ['image'], + readinessPolicy: 'runnable', + modelArtifact: { + source: 'hub', + value: 'PixArt-alpha/PixArt-Sigma-XL-2-1024-MS', + revision: 'e102b3591cc82e97071b8b4cb90d834d0c487207', + }, + description: + 'The saved blank-prompt default produced a clean, coherent pink mascot. The run records the PAG control values. This single run does not measure PAG quality relative to a control run or establish prompt adherence.', + prompt: '', + negativePrompt: '', + example: { + mediaType: 'image', + status: 'unverified', + modelRevision: 'e102b3591cc82e97071b8b4cb90d834d0c487207', + lockedSeed: 42, + lockedSettings: { + width: 1024, + height: 1024, + steps: 20, + guidanceScale: 1, + strength: 0.8, + maxSequenceLength: 300, + outputType: 'pil', + pagScale: 4, + pagAdaptiveScale: 0, + dtype: 'float32', + resourceMode: 'expert', + quantizationMode: 'none', + autoOffload: true, + offloadMode: 'model_cpu', + }, + expectedOutput: { + width: 1024, + height: 1024, + }, + notes: + 'The saved blank-prompt default produced a clean, coherent pink mascot. The run records the PAG control values. This single run does not measure PAG quality relative to a control run or establish prompt adherence.', + runtimeEstimate: '111.39 seconds in the saved run', + }, + requiredBackendCapabilities: [ + 'modules.DiffusersImage.Generate', + 'modules.DiffusersImage.LoadPipeline', + 'modules.DiffusersRuntime.PipelineQuantizationConfigV2', + 'modules.DiffusersRuntime.DiffusersExecutionRecipe', + 'modules.Image.Preview', + ], + mediaSlots: [ + { + id: 'result', + label: 'Generated image', + kind: 'image', + role: 'output', + placeholder: 'Result pending', + }, + ], + recipeSummary: 'Reproduce the saved technical preview with its recorded settings.', + runtimeReuseKey: 'sha256:canonical-graph-v1:202b5ad2b76097f3e45033e55153e9077e4110164e5878672526eeb72d986b57', + }, + { + id: 'ddpm_cifar32_technical_preview', + label: 'Technical Preview — DDPM CIFAR-10 Technical Preview', + mode: 'unconditional_image', + modelType: 'DDPMPipeline', + intentGroup: 'generate_image', + category: 'concept', + outputKinds: ['image'], + readinessPolicy: 'runnable', + modelArtifact: { + source: 'hub', + value: 'google/ddpm-cifar10-32', + revision: '267b167dc01f0e4e61923ea244e8b988f84deb80', + }, + description: + 'The native 32×32 output has an animal-like silhouette and soft, indistinct detail. The recipe is unconditional, so there is no text prompt or adherence claim.', + prompt: '', + negativePrompt: '', + example: { + mediaType: 'image', + status: 'unverified', + modelRevision: '267b167dc01f0e4e61923ea244e8b988f84deb80', + lockedSeed: 42, + lockedSettings: { + width: 32, + height: 32, + steps: 1000, + guidanceScale: 0, + outputType: 'pil', + dtype: 'float32', + resourceMode: 'expert', + quantizationMode: 'none', + autoOffload: false, + offloadMode: 'none', + }, + expectedOutput: { + width: 32, + height: 32, + }, + notes: + 'The native 32×32 output has an animal-like silhouette and soft, indistinct detail. The recipe is unconditional, so there is no text prompt or adherence claim.', + runtimeEstimate: '20.20 seconds in the saved run', + }, + requiredBackendCapabilities: [ + 'modules.DiffusersImage.LoadPipeline', + 'modules.DiffusersRuntime.PipelineQuantizationConfigV2', + 'modules.DiffusersRuntime.DiffusersExecutionRecipe', + 'modules.DiffusersImage.UnconditionalGenerate', + 'modules.Image.Preview', + ], + mediaSlots: [ + { + id: 'result', + label: 'Generated image', + kind: 'image', + role: 'output', + placeholder: 'Result pending', + }, + ], + recipeSummary: 'Reproduce the saved technical preview with its recorded settings.', + runtimeReuseKey: 'sha256:canonical-graph-v1:4fc0c90a6cd5807a3e07843afc9b41d2464390cd6d445b418d0cc48ce964ecc7', + }, + { + id: 'consistency_64_technical_preview', + label: 'Technical Preview — Consistency Model 64px Technical Preview', + mode: 'unconditional_image', + modelType: 'ConsistencyModelPipeline', + intentGroup: 'generate_image', + category: 'concept', + outputKinds: ['image'], + readinessPolicy: 'runnable', + modelArtifact: { + source: 'hub', + value: 'openai/diffusers-cd_imagenet64_l2', + revision: '5f462e4403fc37b72ec6004e806c71805db22387', + }, + description: + 'The native 64×64 output has diffuse shapes and no clearly identifiable subject. The recipe is unconditional, so there is no text prompt or adherence claim.', + prompt: '', + negativePrompt: '', + example: { + mediaType: 'image', + status: 'unverified', + modelRevision: '5f462e4403fc37b72ec6004e806c71805db22387', + lockedSeed: 42, + lockedSettings: { + width: 64, + height: 64, + steps: 1, + guidanceScale: 0, + outputType: 'pil', + dtype: 'float32', + resourceMode: 'expert', + quantizationMode: 'none', + autoOffload: false, + offloadMode: 'none', + }, + expectedOutput: { + width: 64, + height: 64, + }, + notes: + 'The native 64×64 output has diffuse shapes and no clearly identifiable subject. The recipe is unconditional, so there is no text prompt or adherence claim.', + runtimeEstimate: '1.58 seconds in the saved run', + }, + requiredBackendCapabilities: [ + 'modules.DiffusersImage.LoadPipeline', + 'modules.DiffusersRuntime.PipelineQuantizationConfigV2', + 'modules.DiffusersRuntime.DiffusersExecutionRecipe', + 'modules.DiffusersImage.UnconditionalGenerate', + 'modules.Image.Preview', + ], + mediaSlots: [ + { + id: 'result', + label: 'Generated image', + kind: 'image', + role: 'output', + placeholder: 'Result pending', + }, + ], + recipeSummary: 'Reproduce the saved technical preview with its recorded settings.', + runtimeReuseKey: 'sha256:canonical-graph-v1:6912051646a49f18b61e7f98fdf9665059818faaac3ca3d29c796b32941ee479', + }, ]; diff --git a/src/studio/templateAssetSource.json b/src/studio/templateAssetSource.json index 4a2b9b5d..ee4141ea 100644 --- a/src/studio/templateAssetSource.json +++ b/src/studio/templateAssetSource.json @@ -4,11 +4,11 @@ "localBasePath": "/template-gallery", "repoType": "dataset", "repoId": "sourav-das/modiff-template-gallery", - "revision": "9f5e32a0c6cf9096d76e625bf7f844c10680edd4", + "revision": "47f928f9ba9df49317b24dd18e267fdb9d873e02", "pathPrefix": "template-gallery", "assetManifestPath": "_modiff/template-assets.v1.json", - "assetSetId": "sha256:canonical-json:8b510e8e4e1e645a1caad83ace84b9020828c0f88682a0e30f6338b3a55b5330", - "completeAssetSetId": "sha256:canonical-json:f7171be49ec9b65b02949db31d45a0bc8a4079a2dec5a35d32d2e70e597e8468", + "assetSetId": "sha256:canonical-json:a12dd907a901d77a6f049f6385e8f9467f254b32ab87e9774c42c685e99a7469", + "completeAssetSetId": "sha256:canonical-json:179504c1ce6950cf1b5f94f30e743f39b2fb5a2b0b2a3bd6a4558b833bb0ebcd", "unavailableAssets": [ "template-gallery/ace_step_chinese_new_year_lora.card-poster.png", "template-gallery/ace_step_chinese_new_year_lora.wav", diff --git a/src/studio/types.ts b/src/studio/types.ts index aa80fcea..7a35d8b2 100644 --- a/src/studio/types.ts +++ b/src/studio/types.ts @@ -254,6 +254,10 @@ export type StudioPresetId = export type StudioTemplateId = | 'alpine_lake_in_oils' | 'ddim_cifar10_preview' + | 'ddpm_cifar32_technical_preview' + | 'consistency_64_technical_preview' + | 'pixart_sigma_terracotta_herbs' + | 'pixart_sigma_pag_pink_mascot' | 'sdxl_clear_cobalt_backdrop' | 'sdxl_turbo_orange_caps' | 'whisper_small_an_open_door' From 5425f9c084def7d8d87be302c25b45be60c4733b Mon Sep 17 00:00:00 2001 From: Sourav Das Date: Thu, 26 Nov 2026 10:36:13 +0530 Subject: [PATCH 406/440] Verify exact technical preview titles and blank PAG prompt --- scripts/modiff-template.test.mjs | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/scripts/modiff-template.test.mjs b/scripts/modiff-template.test.mjs index b82181c9..7fa5cb99 100644 --- a/scripts/modiff-template.test.mjs +++ b/scripts/modiff-template.test.mjs @@ -2956,6 +2956,9 @@ test('template prompt recipes are distinct, detailed, and not generic placeholde (template.mode === 'image_to_video' && template.modelType === 'StableVideoDiffusionPipeline') ) { assert.equal(template.prompt, '', `${template.id} keeps its prompt-free task contract`); + } else if (template.id === 'pixart_sigma_pag_pink_mascot') { + assert.equal(template.prompt, '', 'The PAG preview preserves the original blank-prompt run.'); + assert.equal(template.example.lockedSettings.pagScale, 4); } else { assert.ok(template.prompt.trim(), `${template.id} retains the recorded prompt`); } @@ -4648,6 +4651,25 @@ test('Experimental refuses undeclared or incomplete internal creator selections' test('every template name identifies its exact model and operation', () => { const { STUDIO_TEMPLATES } = templatesModule; + const reviewedImageTitles = new Map([ + ['pixart_sigma_terracotta_herbs', ['Lavender and Rosemary', 'PixArt Sigma XL 1024px', 'text_to_image']], + [ + 'pixart_sigma_pag_pink_mascot', + ['Technical Preview — Pink Mascot', 'PixArt Sigma XL 1024px PAG', 'text_to_image'], + ], + [ + 'ddpm_cifar32_technical_preview', + ['Technical Preview — DDPM CIFAR-10 Technical Preview', 'DDPM CIFAR-10 32x32', 'unconditional_image'], + ], + [ + 'consistency_64_technical_preview', + [ + 'Technical Preview — Consistency Model 64px Technical Preview', + 'Consistency Model ImageNet 64x64', + 'unconditional_image', + ], + ], + ]); for (const template of STUDIO_TEMPLATES) { const modelName = browserModule.templateModelDisplayName(template); const modelLabel = @@ -4664,6 +4686,8 @@ test('every template name identifies its exact model and operation', () => { assert.equal(template.label, 'Wav2Vec2 — Station Announcement'); assert.equal(modelLabel, 'Wav2Vec2 Base 960h'); assert.equal(template.mode, 'speech_to_text'); + } else if (reviewedImageTitles.has(template.id)) { + assert.deepEqual([template.label, modelLabel, template.mode], reviewedImageTitles.get(template.id)); } else { assert.ok(template.label.startsWith(`${modelLabel} — `), `${template.id} must begin with its model name`); } From 9654466f1c4ac0c7f34989b7cd7e20e3e5826b27 Mon Sep 17 00:00:00 2001 From: Sourav Das Date: Thu, 26 Nov 2026 15:53:45 +0530 Subject: [PATCH 407/440] Accept SSD weight streaming in workflow controls --- scripts/bundle-budget.mjs | 4 ++++ scripts/operation-authoring.test.mjs | 13 +++++++++++++ scripts/resolved-execution-inputs.test.mjs | 4 ++-- scripts/retained-gallery-templates.test.mjs | 10 +++++++--- scripts/run-coordinator.test.mjs | 8 ++++---- scripts/workflow-auto-weight-loading.test.mjs | 10 +++++----- src/studio/resolvedExecutionInputs.ts | 4 ++-- src/types/api.ts | 4 ++-- 8 files changed, 39 insertions(+), 18 deletions(-) diff --git a/scripts/bundle-budget.mjs b/scripts/bundle-budget.mjs index 9076999f..26d1346f 100644 --- a/scripts/bundle-budget.mjs +++ b/scripts/bundle-budget.mjs @@ -493,6 +493,8 @@ const SOURCE_LICENSES = new URL('../public/THIRD_PARTY_LICENSES.txt', import.met // 504492/682980/346033 largest/startup/deferred gzip bytes: the reviewed // migration ceilings below still pass with 8/12/304 bytes of headroom. const MAX_STARTUP_CHUNK_GZIP_BYTES = + // SSD weight-loading validation adds 28 measured startup gzip bytes. + 28 + // Four approved saved image recipes add 1280 gzip bytes, for 574410 total. 1280 + // The two approved FLUX control edits measure 573130 bytes. @@ -813,6 +815,8 @@ const MAX_STARTUP_CHUNK_GZIP_BYTES = // The same build measures 673359 aggregate startup bytes (+45 over the cap). // Keep 19 bytes of headroom; deferred limits and loading boundaries stay fixed. const MAX_STARTUP_GZIP_BYTES = + // The same change adds 27 overall startup gzip bytes. + 27 + // The four saved image recipes add 1281 gzip bytes, for 752896 total. 1281 + // The same build measures 751615 total startup gzip bytes. diff --git a/scripts/operation-authoring.test.mjs b/scripts/operation-authoring.test.mjs index 8aca30b8..f788ba8a 100644 --- a/scripts/operation-authoring.test.mjs +++ b/scripts/operation-authoring.test.mjs @@ -3176,6 +3176,19 @@ test('only current registry runtime scopes refresh hardware choices across unrel ); }); +test('SSD streaming extends an older loading selector only at presentation time', async () => { + const options = await server.ssrLoadModule('/src/studio/runtimeOptions.ts'); + const api = await server.ssrLoadModule('/src/types/api.ts'); + const saved = ['cpu', 'cuda']; + const live = { weight_loading_mode: { runtimeOptions: 'choices', options: ['cpu', 'cuda', 'ssd_stream'] } }; + const presented = options.registeredRuntimeOptionPresentation(saved, 'weight_loading_mode', live); + assert.deepEqual(options.runtimeOptionValues(presented), ['cpu', 'cuda', 'ssd_stream']); + assert.deepEqual(saved, ['cpu', 'cuda']); + assert.equal(options.registeredRuntimeOptionPresentation(saved, 'weight_loading_mode', undefined), saved); + assert.equal(api.isWorkflowResourceValue('weight_loading_mode', 'ssd_stream'), true); + assert.equal(api.isWorkflowResourceValue('weight_loading_mode', 'another-setting'), false); +}); + test('generic model default weight format requires its exact declared immutable selection', async () => { const inventory = await server.ssrLoadModule('/src/workflow/workflowModelInventory.ts'); const model = { diff --git a/scripts/resolved-execution-inputs.test.mjs b/scripts/resolved-execution-inputs.test.mjs index b7cdd7eb..09e62d85 100644 --- a/scripts/resolved-execution-inputs.test.mjs +++ b/scripts/resolved-execution-inputs.test.mjs @@ -2079,9 +2079,9 @@ test('captured native and whole-pipeline attention/VAE policies survive history assert.deepEqual(inputs.coerceResolvedExecutionInputs(mixed, identity), mixed); }); -test('captured weight loading mode preserves its cpu/cuda value through output history', () => { +test('captured weight loading mode survives output history', () => { const identity = { taskId: 'actual-task', attemptIndex: 2, nodeId: 'preview' }; - for (const value of ['cpu', 'cuda']) { + for (const value of ['cpu', 'cuda', 'ssd_stream']) { const capture = receipt(); capture.nodes.push({ nodeId: 'loader', diff --git a/scripts/retained-gallery-templates.test.mjs b/scripts/retained-gallery-templates.test.mjs index 55baa63d..d1fe8e2d 100644 --- a/scripts/retained-gallery-templates.test.mjs +++ b/scripts/retained-gallery-templates.test.mjs @@ -773,9 +773,13 @@ test('fresh Expert recipes prepare with current backend specs and without a gene assert.equal(preview.device.value, 'cuda:0'); preview.device.value = 'cpu:0'; } else { - // The retained loader preceded explicit quantization. This current - // field was separately asserted above to keep the same native default. - delete comparable.nodes[binding.nodes.transformersTextModel].params.quantization_mode; + // This retained loader predates the two explicit placement controls. + // Verify the fresh graph uses the same defaults before comparing the + // remaining fields against the archived recipe. + const model = comparable.nodes[binding.nodes.transformersTextModel].params; + assert.equal(model.weight_loading_mode.value, 'cpu'); + delete model.weight_loading_mode; + delete model.quantization_mode; } const byRole = ({ nodes }) => Object.fromEntries(nodes.map((node) => [node.key, node.params])); assert.deepEqual( diff --git a/scripts/run-coordinator.test.mjs b/scripts/run-coordinator.test.mjs index 9910c78a..a75bb463 100644 --- a/scripts/run-coordinator.test.mjs +++ b/scripts/run-coordinator.test.mjs @@ -4538,9 +4538,9 @@ test('Auto treats mirrored boundary resource inputs as one atomic resource group assert.deepEqual(exported(), before); }); -test('weight loading Auto plans accept only the declared cpu/cuda patch values', async () => { +test('weight loading Auto plans accept only declared patch values', async () => { const auto = await server.ssrLoadModule('/src/studio/workflowAutoExecutionV2.ts'); - for (const value of ['cpu', 'cuda']) { + for (const value of ['cpu', 'cuda', 'ssd_stream']) { const plan = { ...workflowPlan(true), patches: [{ nodeId: 'loader', field: 'weight_loading_mode', value }] }; assert.deepEqual(auto.parseWorkflowAutoPlanV2(plan), plan); } @@ -4571,8 +4571,8 @@ test('weight loading runtime messages preserve the field-specific current and pr resourceUpdates: [{ nodeId: 'loader', ...update }], }), ); - for (const value of ['cpu', 'cuda']) - for (const previousValue of [undefined, null, 'cpu', 'cuda']) + for (const value of ['cpu', 'cuda', 'ssd_stream']) + for (const previousValue of [undefined, null, 'cpu', 'cuda', 'ssd_stream']) assert.ok(parsed({ field: 'weight_loading_mode', value, previousValue })); for (const value of ['auto', 'CUDA', '', true, null, 1]) assert.equal(parsed({ field: 'weight_loading_mode', value }), null); diff --git a/scripts/workflow-auto-weight-loading.test.mjs b/scripts/workflow-auto-weight-loading.test.mjs index d15139a0..2bbcd3d6 100644 --- a/scripts/workflow-auto-weight-loading.test.mjs +++ b/scripts/workflow-auto-weight-loading.test.mjs @@ -491,12 +491,12 @@ test('actual backend weight-loading descriptor survives factory, fresh Model Set Array.isArray(descriptor.options) ? descriptor.options.map((option) => (typeof option === 'string' ? option : option.value)) : Object.keys(descriptor.options), - ['cpu', 'cuda'], + ['cpu', 'cuda', 'ssd_stream'], ); assert.equal(descriptor.fieldOptions.controlTier, 'advanced'); const node = modules.factory.createNodeFromRegistry(key, fixture.registry, { x: 0, y: 0 }); assert.deepEqual(node.data.params.weight_loading_mode, descriptor); - node.data.params.weight_loading_mode.value = 'cuda'; + node.data.params.weight_loading_mode.value = 'ssd_stream'; assert.equal(descriptor.value ?? descriptor.default, 'cpu'); const graph = freshGraph(); assert.equal(graph.nodes.filter((node) => !node.data.blockProjectionOwnerId).length, 4); @@ -533,7 +533,7 @@ test('fresh image coordinator serializes the enum patch and preserves model and const body = JSON.parse(init.body); requests.push({ url: String(url), body }); if (String(url).endsWith('/auto_resource/workflow')) - return response(plan([{ nodeId: id, field: 'weight_loading_mode', value: 'cuda' }])); + return response(plan([{ nodeId: id, field: 'weight_loading_mode', value: 'ssd_stream' }])); assert.ok(String(url).endsWith('/graph')); return response({ task_id: 'metadata-transport-only', sid: 'session-1', message: 'queued' }); }; @@ -544,9 +544,9 @@ test('fresh image coordinator serializes the enum patch and preserves model and }); assert.equal(requests.length, 2); assert.equal(requests[0].body.graph.nodes[id].params.weight_loading_mode.value, 'cpu'); - assert.equal(requests[1].body.nodes[id].params.weight_loading_mode.value, 'cuda'); + assert.equal(requests[1].body.nodes[id].params.weight_loading_mode.value, 'ssd_stream'); const expected = structuredClone(before.nodes); - expected[id].params.weight_loading_mode.value = 'cuda'; + expected[id].params.weight_loading_mode.value = 'ssd_stream'; assert.deepEqual(result.submittedGraph.nodes, expected); assert.deepEqual(exported().nodes, expected); assert.equal(result.submittedGraph.runtimeHints.workflowAutoPlan.graphHash, plan([]).plannedGraphHash); diff --git a/src/studio/resolvedExecutionInputs.ts b/src/studio/resolvedExecutionInputs.ts index 14d58f8b..2eb06caf 100644 --- a/src/studio/resolvedExecutionInputs.ts +++ b/src/studio/resolvedExecutionInputs.ts @@ -1,6 +1,6 @@ import type { StudioMode, StudioModelType, StudioOutput } from './types'; import { STUDIO_MODE_DESCRIPTIONS, STUDIO_MODEL_LABELS, STUDIO_MODEL_PROFILES } from './modelProfiles'; -import type { WeightLoadingMode } from '../types/api'; +import { isWorkflowResourceValue, type WeightLoadingMode } from '../types/api'; import { parseBuiltinMediaEvidence, type BuiltinMediaEvidence } from './builtinMediaEvidence'; type InputValue = string | number | boolean | null | (string | number | boolean | null)[]; @@ -741,7 +741,7 @@ export function coerceResolvedExecutionInputs( !record(field) || !inputValue(field.value) || (scope === 'HuggingFaceTransformers.GenerateImageVideoText' && !textGenerationInputValue(key, field.value)) || - (canonical === 'weightLoadingMode' && field.value !== 'cpu' && field.value !== 'cuda') || + (canonical === 'weightLoadingMode' && !isWorkflowResourceValue('weight_loading_mode', field.value)) || (canonical === 'weightFormat' && field.value !== 'native' && field.value !== 'fp8r' && diff --git a/src/types/api.ts b/src/types/api.ts index 0b86c183..9af694c7 100644 --- a/src/types/api.ts +++ b/src/types/api.ts @@ -320,7 +320,7 @@ export type ResourceRetryWebsocketMessage = BaseWebsocketMessage<'resource_retry errors?: unknown; }; -export type WeightLoadingMode = 'cpu' | 'cuda'; +export type WeightLoadingMode = 'cpu' | 'cuda' | 'ssd_stream'; type WorkflowResourceValues = { offload_mode: string; @@ -456,7 +456,7 @@ export function isWorkflowResourceValue(field: unknown, value: unknown): boolean return ( (field === 'offload_mode' && typeof value === 'string') || (field === 'auto_offload' && typeof value === 'boolean') || - (field === 'weight_loading_mode' && (value === 'cpu' || value === 'cuda')) + (field === 'weight_loading_mode' && (value === 'cpu' || value === 'cuda' || value === 'ssd_stream')) ); } From f598322168d89cf32abcd2ffcb017ddff13e178b Mon Sep 17 00:00:00 2001 From: Sourav Das Date: Thu, 26 Nov 2026 18:50:51 +0530 Subject: [PATCH 408/440] Register Shap-E preview and qualify exact private research workflows --- .../preview-free-research-workflows.v1.json | 37 ++++ config/release-showcase-scope.v1.json | 9 +- .../retained-gallery-approved-batch.v1.json | 13 ++ ...etained-gallery-authoring-archives.v1.json | 5 + ...etained-gallery-batch-recipe-locks.v1.json | 13 ++ config/template-asset-rights.v1.json | 168 +++++++++++++++++- config/template-assets.v1.json | 66 ++++++- docs/release-preview-scope.md | 10 ++ public/template-gallery/manifest.json | 33 ++++ scripts/bundle-budget.mjs | 6 + scripts/modiff-template.test.mjs | 10 +- scripts/release-candidate-report.mjs | 1 + scripts/release-contract-core.mjs | 68 ++++++- scripts/release-contract.mjs | 28 ++- scripts/release-contract.test.mjs | 74 ++++++++ scripts/retained-gallery-templates.test.mjs | 26 ++- scripts/template-gallery-harness.mjs | 34 +++- scripts/template-gallery-harness.test.mjs | 23 +++ src/studio/retainedGalleryApprovedBatch.ts | 73 ++++++++ src/studio/retainedVideoPreview.ts | 9 +- src/studio/templateAssetSource.json | 6 +- src/studio/templateExactness.ts | 2 +- src/studio/types.ts | 1 + 23 files changed, 682 insertions(+), 33 deletions(-) create mode 100644 config/preview-free-research-workflows.v1.json diff --git a/config/preview-free-research-workflows.v1.json b/config/preview-free-research-workflows.v1.json new file mode 100644 index 00000000..b1021e01 --- /dev/null +++ b/config/preview-free-research-workflows.v1.json @@ -0,0 +1,37 @@ +{ + "schemaVersion": 1, + "reviews": [ + { + "workflowId": "DreamLiteMobilePipeline:edit_image", + "sourceTemplateId": "task-template:dreamlite-mobile:edit-image:v1", + "canonicalWorkflowHash": "sha256:workflow-graph-v1:6cf362ac7bb4c479b7e56dca9a4b42fea1e670e57543c0cf65428aaa8fc9ae37", + "executedGraphHash": "sha256:canonical-graph-v1:d3a30a1637b45b5447c5ae112d98ef4d14f27e888b1bc6a37aca20c16bde1fd0", + "evidenceSha256": "0c4806ce6be2a0bf02c2aa5d7520dd279450df3c8b860c62be33dffb8dc130d1", + "outputHash": "sha256:bytes:21f5daf54cb23ffcde40b218a031eabec9295871ed574f8791cf7eac4f187933" + }, + { + "workflowId": "DreamLiteMobilePipeline:text_to_image", + "sourceTemplateId": "task-template:dreamlite-mobile:text-to-image:v1", + "canonicalWorkflowHash": "sha256:workflow-graph-v1:dc4c8d8e18b592d23c0ce3329b1d0237e8ae180e6b5f53dda2c80bbe0fc6fde6", + "executedGraphHash": "sha256:canonical-graph-v1:2b672169c805ec5bd825d1af8521b966c0f051f220ec01d14add8669a55e1e57", + "evidenceSha256": "e151ee1315431ae8a27a16d435da3f540ab3fb402999f42561811f454471fef6", + "outputHash": "sha256:decoded-output-collection-v1:1da3ba9fe52c5395e3fee83176f57a19db5720fa0e456df06c19d5f4c5b3e46f" + }, + { + "workflowId": "DreamLitePipeline:edit_image", + "sourceTemplateId": "task-template:dreamlite-base:edit-image:v1", + "canonicalWorkflowHash": "sha256:workflow-graph-v1:34999f99197323dc1da2cf25e05899c4782fb08ea9bfdf77455090d98de769aa", + "executedGraphHash": "sha256:canonical-graph-v1:73f5fda695f45f0ffdc6e6e657d030a58e0d9c83441c7b60fa9ed45cc88d6aaf", + "evidenceSha256": "0a08f4e9afc7ac0a579cf25be7f575d6cd57906b64f8503b593317fa96526c8d", + "outputHash": "sha256:bytes:4a27ba447583747634766c53f7d6f39eb34bc4a089950793821392b8666b7c05" + }, + { + "workflowId": "DreamLitePipeline:text_to_image", + "sourceTemplateId": "task-template:dreamlite-base:text-to-image:v1", + "canonicalWorkflowHash": "sha256:workflow-graph-v1:f4aeea2217b04c962955052c60fe0324388bdf00c74f0facab3d19d5ba510d77", + "executedGraphHash": "sha256:canonical-graph-v1:a6bfeacd6d9fb12d01bd8c27caee9fb992fb94e14c49da4fea9a3d515090724e", + "evidenceSha256": "5c84087fbbd770103610a2f6f3787565ba0ffb9868957b580fb64c6e529de181", + "outputHash": "sha256:bytes:e70c63ed0594eb02b9190bf6f10b1d248522a57f0ba15fc2befbd648e17e2378" + } + ] +} diff --git a/config/release-showcase-scope.v1.json b/config/release-showcase-scope.v1.json index 8af0f993..35281723 100644 --- a/config/release-showcase-scope.v1.json +++ b/config/release-showcase-scope.v1.json @@ -4,7 +4,7 @@ "name": "Registered showcase preview without AMD-cloud backlog", "dataset": { "repository": "sourav-das/modiff-template-gallery", - "revision": "47f928f9ba9df49317b24dd18e267fdb9d873e02" + "revision": "c320700d169958015ff43655c765a4650634025f" }, "originalCampaign": { "total": 89, @@ -523,6 +523,11 @@ "id": "lumina_opal_pendant_in_limestone", "evidenceScope": "current_recipe", "templateLockHash": "tpl_f24a6ace" + }, + { + "id": "shap_e_traffic_cone_turntable", + "evidenceScope": "current_recipe", + "templateLockHash": "tpl_60ef5b65" } ], "excludedTemplates": [ @@ -1235,5 +1240,5 @@ "countedAsComplete": false } ], - "profileHash": "sha256:canonical-json:0a2a95138336a3c15595776d9758b300a4347cdef17d4f57aba4b11127d5aab0" + "profileHash": "sha256:canonical-json:bcf392c87ddbb33dd46af0a50015a9cd33ba0f01a20ebb0af71c58993f82ba0b" } diff --git a/config/retained-gallery-approved-batch.v1.json b/config/retained-gallery-approved-batch.v1.json index 4a815d5a..3ee4ee47 100644 --- a/config/retained-gallery-approved-batch.v1.json +++ b/config/retained-gallery-approved-batch.v1.json @@ -1686,5 +1686,18 @@ "width": 64, "height": 64 } + }, + "shap_e_traffic_cone_turntable": { + "associationSha256": "f55390bea2eb0a0b8a086c200704b345c1754cf6a9754245977677cbe7be6725", + "backendSourceFingerprint": "sha256:backend-source-v1:3486a8950b4b134157b022faf89983af60c5e274d4ec3ed9fedd44b2ee1459ab", + "backendContractFingerprint": "sha256:backend-contract-v1:9378c60e00d05964ea18fe541c5454ee2aedc97ad016658f5dcffe4ac46bd326", + "templateRevisionHash": "fa62bcb8142d0e8e3cf7816cc648ca33ae32dfcfebb83d455c52e14f662a8ff2", + "capturedAt": "2026-11-26T12:31:34.910Z", + "outputExtension": "mp4", + "primaryModelRepo": "openai/shap-e", + "outputSize": { + "width": 256, + "height": 256 + } } } diff --git a/config/retained-gallery-authoring-archives.v1.json b/config/retained-gallery-authoring-archives.v1.json index 06484b9c..a2c876d2 100644 --- a/config/retained-gallery-authoring-archives.v1.json +++ b/config/retained-gallery-authoring-archives.v1.json @@ -599,5 +599,10 @@ "descriptorSha256": "334fff51739318953bc9c5b7c98530c929b8765592f800d1ec9f4453744e9495", "bytes": 3531, "sha256": "6ac7b11519a0b10ab0aed6a6562a888354c2716e130f1039cf6ce37ef91bb16d" + }, + "ShapEPipeline:text_to_3d": { + "descriptorSha256": "c5790dffe67ccbdf93d3d073d3b1018770c296cba10d9b9b99902c56a79b2620", + "bytes": 3547, + "sha256": "34a1878e576eace6526160ed7842f15ef269b51189cd407c6a58353efd69454b" } } diff --git a/config/retained-gallery-batch-recipe-locks.v1.json b/config/retained-gallery-batch-recipe-locks.v1.json index 98ae4ad3..783823d4 100644 --- a/config/retained-gallery-batch-recipe-locks.v1.json +++ b/config/retained-gallery-batch-recipe-locks.v1.json @@ -1723,5 +1723,18 @@ "galleryTemplateLockHash": "tpl_2aa7d54b", "promptSettingsHash": "ps_b171853c" } + }, + "shap_e_traffic_cone_turntable": { + "workflowId": "ShapEPipeline:text_to_3d", + "sourceTaskTemplateId": "task-template:shap-e:text-to-3d:v1", + "retainedGraphHash": "sha256:canonical-graph-v1:eb319f05ba885a4c4e8c35fd06126484d519a95c1fd8078d85cd95574d6c8d08", + "originalReceiptSha256": "c5790dffe67ccbdf93d3d073d3b1018770c296cba10d9b9b99902c56a79b2620", + "reviewedTemplateSha256": "fa62bcb8142d0e8e3cf7816cc648ca33ae32dfcfebb83d455c52e14f662a8ff2", + "reviewedCatalogLock": { + "templateLockHash": "tpl_12256c8e", + "galleryTemplateLockHash": "tpl_60ef5b65", + "promptSettingsHash": "ps_7ddd815e" + }, + "promptSha256": "2c167518c1795e7ce461c297f3f9e1a92b7d5e0dcc49a059d49f190cca7cbd00" } } diff --git a/config/template-asset-rights.v1.json b/config/template-asset-rights.v1.json index 2e4ef740..92afdacc 100644 --- a/config/template-asset-rights.v1.json +++ b/config/template-asset-rights.v1.json @@ -1,6 +1,6 @@ { "schemaVersion": 1, - "assetSetId": "sha256:canonical-json:179504c1ce6950cf1b5f94f30e743f39b2fb5a2b0b2a3bd6a4558b833bb0ebcd", + "assetSetId": "sha256:canonical-json:2fc79cbb1c9f5a520d57def2623affaeedd307f12f2e34065ec482e485bed13d", "records": [ { "path": "template-gallery/ace_step_audio_continuation.wav", @@ -9818,7 +9818,7 @@ }, { "path": "template-gallery/manifest.json", - "sha256": "sha256:bytes:8539f3e57be366102255dd96d82f277c46c6f00f90dc3564e87b87c51926a17f", + "sha256": "sha256:bytes:15616f0e250275d3b5c6771cf667e845a979b8a3e8e61fec6a72a59a6725c074", "publishDecision": "approved", "holdReason": null, "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", @@ -9835,7 +9835,7 @@ "reviewedBy": "MoDiff workspace maintainer", "reviewedAt": "2026-11-26", "reviewClass": "per-file-maintainer-accepted-retained-registration", - "humanApprovalPacketSHA256": "efc64011c443b1678207c0dfd79e89def1c0dc3699668f058803e9044b4bd281", + "humanApprovalPacketSHA256": "8ed148b43a11d27176b996c42432ccd9bd06c7c94b64f08a48dc4167de24a698", "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained." }, { @@ -26086,6 +26086,114 @@ "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped six saved cases with model terms retained.", "provenanceTemplateId": "sdxl_turbo_orange_caps" }, + { + "path": "template-gallery/reviews/shap_e_traffic_cone_turntable.original-provenance.json", + "sha256": "sha256:bytes:668bdbe05f99a8ab63a923569cb852fc7fb9dc28fd5bd8a978425bd02db021d8", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/openai/shap-e/tree/7bd337afdea1c17842e1c3cc45c4e268356dba40", + "sourceRevision": "openai/shap-e@7bd337afdea1c17842e1c3cc45c4e268356dba40", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "Publisher model terms at https://huggingface.co/openai/shap-e/tree/7bd337afdea1c17842e1c3cc45c4e268356dba40" + ], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "openai/shap-e@7bd337afdea1c17842e1c3cc45c4e268356dba40 https://huggingface.co/openai/shap-e/tree/7bd337afdea1c17842e1c3cc45c4e268356dba40" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-26", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "8ed148b43a11d27176b996c42432ccd9bd06c7c94b64f08a48dc4167de24a698", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "shap_e_traffic_cone_turntable" + }, + { + "path": "template-gallery/reviews/shap_e_traffic_cone_turntable.original-review.json", + "sha256": "sha256:bytes:9fd2d7c5b61bfca3f70994218c302b4c939cbe6f78064360fe32d93633969c22", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/openai/shap-e/tree/7bd337afdea1c17842e1c3cc45c4e268356dba40", + "sourceRevision": "openai/shap-e@7bd337afdea1c17842e1c3cc45c4e268356dba40", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "Publisher model terms at https://huggingface.co/openai/shap-e/tree/7bd337afdea1c17842e1c3cc45c4e268356dba40" + ], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "openai/shap-e@7bd337afdea1c17842e1c3cc45c4e268356dba40 https://huggingface.co/openai/shap-e/tree/7bd337afdea1c17842e1c3cc45c4e268356dba40" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-26", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "8ed148b43a11d27176b996c42432ccd9bd06c7c94b64f08a48dc4167de24a698", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "shap_e_traffic_cone_turntable" + }, + { + "path": "template-gallery/reviews/shap_e_traffic_cone_turntable.quality-review.json", + "sha256": "sha256:bytes:241507a58736bbcd8f4ca1948fc842276fda4fe1635ddd6cd0bfe057159a7505", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/openai/shap-e/tree/7bd337afdea1c17842e1c3cc45c4e268356dba40", + "sourceRevision": "openai/shap-e@7bd337afdea1c17842e1c3cc45c4e268356dba40", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "Publisher model terms at https://huggingface.co/openai/shap-e/tree/7bd337afdea1c17842e1c3cc45c4e268356dba40" + ], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "openai/shap-e@7bd337afdea1c17842e1c3cc45c4e268356dba40 https://huggingface.co/openai/shap-e/tree/7bd337afdea1c17842e1c3cc45c4e268356dba40" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-26", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "8ed148b43a11d27176b996c42432ccd9bd06c7c94b64f08a48dc4167de24a698", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "shap_e_traffic_cone_turntable" + }, + { + "path": "template-gallery/reviews/shap_e_traffic_cone_turntable.retained-template-provenance.json", + "sha256": "sha256:bytes:72579b5cd08573adefe06f1ddda3b6f9c1c42f3f2c36622ef64cec896d03d0f7", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Project-authored redacted Gallery review, provenance or registration metadata", + "sourceUrl": "https://huggingface.co/openai/shap-e/tree/7bd337afdea1c17842e1c3cc45c4e268356dba40", + "sourceRevision": "openai/shap-e@7bd337afdea1c17842e1c3cc45c4e268356dba40", + "sourceLicense": "MoDiff-authored Gallery metadata", + "modelTerms": [ + "Publisher model terms at https://huggingface.co/openai/shap-e/tree/7bd337afdea1c17842e1c3cc45c4e268356dba40" + ], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "openai/shap-e@7bd337afdea1c17842e1c3cc45c4e268356dba40 https://huggingface.co/openai/shap-e/tree/7bd337afdea1c17842e1c3cc45c4e268356dba40" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-26", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "8ed148b43a11d27176b996c42432ccd9bd06c7c94b64f08a48dc4167de24a698", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "shap_e_traffic_cone_turntable" + }, { "path": "template-gallery/reviews/smollm2_rain_gauge.quality-review.json", "sha256": "sha256:bytes:a457e4143d17eecd1af499e61a28e7df0533b4a6a8f67712182ab8a829115e09", @@ -30716,6 +30824,60 @@ "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped six saved cases with model terms retained.", "provenanceTemplateId": "sdxl_turbo_orange_caps" }, + { + "path": "template-gallery/shap_e_traffic_cone_turntable.mp4", + "sha256": "sha256:bytes:6fd6dacd583bf43561c100a2d8df7773ab4faeb054325cc22ca2d00bb3f45836", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Exact approved file captured from a saved MoDiff workflow", + "sourceUrl": "https://huggingface.co/openai/shap-e/tree/7bd337afdea1c17842e1c3cc45c4e268356dba40", + "sourceRevision": "openai/shap-e@7bd337afdea1c17842e1c3cc45c4e268356dba40", + "sourceLicense": "Maintainer-authorized file with publisher terms retained", + "modelTerms": [ + "Publisher model terms at https://huggingface.co/openai/shap-e/tree/7bd337afdea1c17842e1c3cc45c4e268356dba40" + ], + "aiGenerated": true, + "humanLikenessConsent": "synthetic", + "marks": [], + "requiredAttribution": [ + "openai/shap-e@7bd337afdea1c17842e1c3cc45c4e268356dba40 https://huggingface.co/openai/shap-e/tree/7bd337afdea1c17842e1c3cc45c4e268356dba40" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-26", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "8ed148b43a11d27176b996c42432ccd9bd06c7c94b64f08a48dc4167de24a698", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "shap_e_traffic_cone_turntable" + }, + { + "path": "template-gallery/shap_e_traffic_cone_turntable.poster.webp", + "sha256": "sha256:bytes:a61343b31e7b7aa532aa5d501ecf820543595fed119374b42470b08cf44d5c2b", + "publishDecision": "approved", + "holdReason": null, + "creatorOrRightsholder": "MoDiff project maintainers, as confirmed by workspace maintainer", + "creationMethod": "Exact approved file captured from a saved MoDiff workflow", + "sourceUrl": "https://huggingface.co/openai/shap-e/tree/7bd337afdea1c17842e1c3cc45c4e268356dba40", + "sourceRevision": "openai/shap-e@7bd337afdea1c17842e1c3cc45c4e268356dba40", + "sourceLicense": "Maintainer-authorized file with publisher terms retained", + "modelTerms": [ + "Publisher model terms at https://huggingface.co/openai/shap-e/tree/7bd337afdea1c17842e1c3cc45c4e268356dba40" + ], + "aiGenerated": false, + "humanLikenessConsent": "not-applicable", + "marks": [], + "requiredAttribution": [ + "openai/shap-e@7bd337afdea1c17842e1c3cc45c4e268356dba40 https://huggingface.co/openai/shap-e/tree/7bd337afdea1c17842e1c3cc45c4e268356dba40" + ], + "assetLicense": "Apache-2.0", + "reviewedBy": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-26", + "reviewClass": "per-file-maintainer-accepted-retained-registration", + "humanApprovalPacketSHA256": "8ed148b43a11d27176b996c42432ccd9bd06c7c94b64f08a48dc4167de24a698", + "publicationBasis": "Maintainer approved the exact files and confirmed redistribution rights for the scoped saved cases with model terms retained.", + "provenanceTemplateId": "shap_e_traffic_cone_turntable" + }, { "path": "template-gallery/showcases/flux3-kolkata-bride.v1.json", "sha256": "sha256:bytes:64a51a70baec5b4a99937ac3952e458450c7d699669b6f31241106da33f70b55", diff --git a/config/template-assets.v1.json b/config/template-assets.v1.json index f17c3215..3554c012 100644 --- a/config/template-assets.v1.json +++ b/config/template-assets.v1.json @@ -3925,8 +3925,8 @@ }, { "path": "template-gallery/manifest.json", - "size": 546548, - "sha256": "sha256:bytes:8539f3e57be366102255dd96d82f277c46c6f00f90dc3564e87b87c51926a17f", + "size": 548992, + "sha256": "sha256:bytes:15616f0e250275d3b5c6771cf667e845a979b8a3e8e61fec6a72a59a6725c074", "contentType": "application/json", "purposes": [ "runtime", @@ -9744,6 +9744,42 @@ "runtime" ] }, + { + "path": "template-gallery/reviews/shap_e_traffic_cone_turntable.original-provenance.json", + "size": 1105, + "sha256": "sha256:bytes:668bdbe05f99a8ab63a923569cb852fc7fb9dc28fd5bd8a978425bd02db021d8", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, + { + "path": "template-gallery/reviews/shap_e_traffic_cone_turntable.original-review.json", + "size": 530, + "sha256": "sha256:bytes:9fd2d7c5b61bfca3f70994218c302b4c939cbe6f78064360fe32d93633969c22", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, + { + "path": "template-gallery/reviews/shap_e_traffic_cone_turntable.quality-review.json", + "size": 2488, + "sha256": "sha256:bytes:241507a58736bbcd8f4ca1948fc842276fda4fe1635ddd6cd0bfe057159a7505", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, + { + "path": "template-gallery/reviews/shap_e_traffic_cone_turntable.retained-template-provenance.json", + "size": 3699, + "sha256": "sha256:bytes:72579b5cd08573adefe06f1ddda3b6f9c1c42f3f2c36622ef64cec896d03d0f7", + "contentType": "application/json", + "purposes": [ + "runtime" + ] + }, { "path": "template-gallery/reviews/smollm2_rain_gauge.quality-review.json", "size": 2378, @@ -11550,6 +11586,26 @@ "width": 512, "height": 512 }, + { + "path": "template-gallery/shap_e_traffic_cone_turntable.mp4", + "size": 18588, + "sha256": "sha256:bytes:6fd6dacd583bf43561c100a2d8df7773ab4faeb054325cc22ca2d00bb3f45836", + "contentType": "video/mp4", + "purposes": [ + "runtime" + ] + }, + { + "path": "template-gallery/shap_e_traffic_cone_turntable.poster.webp", + "size": 1390, + "sha256": "sha256:bytes:a61343b31e7b7aa532aa5d501ecf820543595fed119374b42470b08cf44d5c2b", + "contentType": "image/webp", + "purposes": [ + "runtime" + ], + "width": 256, + "height": 256 + }, { "path": "template-gallery/showcases/flux3-kolkata-bride.v1.json", "size": 5475, @@ -12486,9 +12542,9 @@ "height": 1024 } ], - "assetSetId": "sha256:canonical-json:179504c1ce6950cf1b5f94f30e743f39b2fb5a2b0b2a3bd6a4558b833bb0ebcd", + "assetSetId": "sha256:canonical-json:2fc79cbb1c9f5a520d57def2623affaeedd307f12f2e34065ec482e485bed13d", "status": "ready", - "assetCount": 1290, - "totalBytes": 1295222120, + "assetCount": 1296, + "totalBytes": 1295252364, "missingAssets": [] } diff --git a/docs/release-preview-scope.md b/docs/release-preview-scope.md index ef5ed430..0061319a 100644 --- a/docs/release-preview-scope.md +++ b/docs/release-preview-scope.md @@ -11,6 +11,10 @@ Real-ESRGAN 2× — Synthetic Gradient are registered in the Gallery as suppleme They count toward the workflow release report and sit outside the original 89-case selection. +Shap-E — Traffic Cone Turntable is also a supplement. Its approved 256 × 256 +rendered turntable is an exact technical preview. It establishes the text-to-3D +workflow's rendered output and leaves mesh quality unmeasured. + Five originals remain deferred to AMD cloud: Amber Glass Replacement, The Winter Delivery, Subway Musician, Final Mise en Place and Morning Light Teapot. Chinese New Year Ensemble, Ghibli Story Illustration and Cosmos 3 Publisher Caption @@ -47,3 +51,9 @@ persisted previews and exported bytes against an independent expected result. This grants no model-memory, hardware, full consumed-field or browser-interaction claim. File-backed media utilities and model-backed workflows retain their own evidence requirements; see the canonical recorder in `CONTRIBUTING.md`. + +The four DreamLite workflows qualify for noncommercial research with their +previews withheld. The checker repeats the saved evidence validation and binds +the exact accepted graph and output to the existing restricted artifact review. +The release report lists them separately under `previewFreeResearchWorkflows`. +Their proof does not extend to Gallery publication or Auto resource admission. diff --git a/public/template-gallery/manifest.json b/public/template-gallery/manifest.json index 4f947930..818683f0 100644 --- a/public/template-gallery/manifest.json +++ b/public/template-gallery/manifest.json @@ -7003,6 +7003,39 @@ "reviewedAt": "2026-11-26T04:41:05.3021754Z", "approvedOriginalReviewPath": "/template-gallery/reviews/consistency_64_technical_preview.original-review.json", "approvedOriginalProvenancePath": "/template-gallery/reviews/consistency_64_technical_preview.original-provenance.json" + }, + { + "templateId": "shap_e_traffic_cone_turntable", + "templateLockHash": "tpl_60ef5b65", + "promptSettingsHash": "ps_7ddd815e", + "modelRevision": "openai/shap-e@7bd337afdea1c17842e1c3cc45c4e268356dba40", + "runtimeFingerprint": "sha256:stable-runtime-v1:b8dfba6a04e4333b7e052f20401a6251d5888b17b614e5e3990ebb197d2688ad", + "graphHash": "sha256:canonical-graph-v1:eb319f05ba885a4c4e8c35fd06126484d519a95c1fd8078d85cd95574d6c8d08", + "proofLockHash": "sha256:retained-template-association-v1:020283db4826df6f57378376b908622440f4be455d48062d76e56c7a2b0c797a", + "backendSourceFingerprint": "sha256:backend-source-v1:3486a8950b4b134157b022faf89983af60c5e274d4ec3ed9fedd44b2ee1459ab", + "backendContractFingerprint": "sha256:backend-contract-v1:9378c60e00d05964ea18fe541c5454ee2aedc97ad016658f5dcffe4ac46bd326", + "modelCommit": "7bd337afdea1c17842e1c3cc45c4e268356dba40", + "templateRevisionHash": "fa62bcb8142d0e8e3cf7816cc648ca33ae32dfcfebb83d455c52e14f662a8ff2", + "provenancePath": "/template-gallery/reviews/shap_e_traffic_cone_turntable.retained-template-provenance.json", + "provenanceHash": "sha256:canonical-json:301e053c368349852124c7c1384e53b57d3c51010da07a643fb47d91d6f84a57", + "outputPath": "/template-gallery/shap_e_traffic_cone_turntable.mp4", + "thumbnailPath": "/template-gallery/shap_e_traffic_cone_turntable.mp4", + "mediaType": "video", + "mediaHash": "sha256:decoded-video-framemd5:6e783af38b0869b2a3fe55a7bee43d8c140ef19826fa1e18a3dc4d8dbaee5bf2", + "width": 256, + "height": 256, + "frames": 20, + "durationSeconds": 1.6666666666666667, + "verificationTimestamp": "2026-11-26T12:31:34.910Z", + "verificationStatus": "reviewed", + "qualityReviewStatus": "approved_reviewed", + "qualityReviewHash": "sha256:canonical-json:f8968f774dacf906b6f0bce8f8e035a4b12a51ee15cc11aed31f9bf40a4298e9", + "qualityReviewPath": "/template-gallery/reviews/shap_e_traffic_cone_turntable.quality-review.json", + "reviewer": "MoDiff workspace maintainer", + "reviewedAt": "2026-11-26T12:41:27.430Z", + "posterPath": "/template-gallery/shap_e_traffic_cone_turntable.poster.webp", + "approvedOriginalReviewPath": "/template-gallery/reviews/shap_e_traffic_cone_turntable.original-review.json", + "approvedOriginalProvenancePath": "/template-gallery/reviews/shap_e_traffic_cone_turntable.original-provenance.json" } ] } diff --git a/scripts/bundle-budget.mjs b/scripts/bundle-budget.mjs index 26d1346f..51e3bb01 100644 --- a/scripts/bundle-budget.mjs +++ b/scripts/bundle-budget.mjs @@ -493,6 +493,8 @@ const SOURCE_LICENSES = new URL('../public/THIRD_PARTY_LICENSES.txt', import.met // 504492/682980/346033 largest/startup/deferred gzip bytes: the reviewed // migration ceilings below still pass with 8/12/304 bytes of headroom. const MAX_STARTUP_CHUNK_GZIP_BYTES = + // The approved native Shap-E preview brings the largest chunk to 575069 gzip bytes. + 631 + // SSD weight-loading validation adds 28 measured startup gzip bytes. 28 + // Four approved saved image recipes add 1280 gzip bytes, for 574410 total. @@ -815,6 +817,8 @@ const MAX_STARTUP_CHUNK_GZIP_BYTES = // The same build measures 673359 aggregate startup bytes (+45 over the cap). // Keep 19 bytes of headroom; deferred limits and loading boundaries stay fixed. const MAX_STARTUP_GZIP_BYTES = + // The Shap-E preview and its Gallery descriptor add 634 bytes of startup JavaScript. + 634 + // The same change adds 27 overall startup gzip bytes. 27 + // The four saved image recipes add 1281 gzip bytes, for 752896 total. @@ -1196,6 +1200,8 @@ const MAX_DEFERRED_CHUNK_GZIP_BYTES = 64 * 1024; // Startup code differs only in the three verified Dataset descriptor values. // Retain both startup caps, the independent 64 KiB chunk cap and prior headroom. const MAX_DEFERRED_GZIP_BYTES = + // The native turntable comparison adds 129 bytes and keeps 41 bytes of headroom. + 129 + // Stage discovery, action search and compatible mode changes (355589 -> 357408 gzip bytes). 1819 + // Applicable conditioning controls add 646 deferred gzip bytes (355104 -> 355750). diff --git a/scripts/modiff-template.test.mjs b/scripts/modiff-template.test.mjs index 7fa5cb99..cc52ae40 100644 --- a/scripts/modiff-template.test.mjs +++ b/scripts/modiff-template.test.mjs @@ -4651,7 +4651,11 @@ test('Experimental refuses undeclared or incomplete internal creator selections' test('every template name identifies its exact model and operation', () => { const { STUDIO_TEMPLATES } = templatesModule; - const reviewedImageTitles = new Map([ + const reviewedTitles = new Map([ + [ + 'shap_e_traffic_cone_turntable', + ['Shap-E — Technical Preview: Traffic Cone Turntable', 'Shap-E Rendered 3D', 'text_to_3d'], + ], ['pixart_sigma_terracotta_herbs', ['Lavender and Rosemary', 'PixArt Sigma XL 1024px', 'text_to_image']], [ 'pixart_sigma_pag_pink_mascot', @@ -4686,8 +4690,8 @@ test('every template name identifies its exact model and operation', () => { assert.equal(template.label, 'Wav2Vec2 — Station Announcement'); assert.equal(modelLabel, 'Wav2Vec2 Base 960h'); assert.equal(template.mode, 'speech_to_text'); - } else if (reviewedImageTitles.has(template.id)) { - assert.deepEqual([template.label, modelLabel, template.mode], reviewedImageTitles.get(template.id)); + } else if (reviewedTitles.has(template.id)) { + assert.deepEqual([template.label, modelLabel, template.mode], reviewedTitles.get(template.id)); } else { assert.ok(template.label.startsWith(`${modelLabel} — `), `${template.id} must begin with its model name`); } diff --git a/scripts/release-candidate-report.mjs b/scripts/release-candidate-report.mjs index 7856e3a1..9db483f7 100644 --- a/scripts/release-candidate-report.mjs +++ b/scripts/release-candidate-report.mjs @@ -237,6 +237,7 @@ const body = { completeQualificationReceipts: contract.coverage?.completeQualificationReceiptCount ?? 0, workflows: contract.coverage?.workflowCount ?? 0, eligibleWorkflows: contract.coverage?.releaseEligibleWorkflowCount ?? 0, + previewFreeResearchWorkflows: contract.coverage?.previewFreeResearchWorkflowCount ?? 0, standaloneExecution, resourceRecipes: resourceQualification?.coverage ?? null, releaseEligibleResourceRecipes: resourceQualification?.coverage?.byReleaseLane?.releaseEligible ?? null, diff --git a/scripts/release-contract-core.mjs b/scripts/release-contract-core.mjs index ab105724..9aecc5cd 100644 --- a/scripts/release-contract-core.mjs +++ b/scripts/release-contract-core.mjs @@ -111,7 +111,72 @@ export function assessGalleryReleaseApproval(entry, { matchesCurrentRecipe, unav return { approved: reasons.length === 0, reasons }; } -export function assessWorkflowReleaseEvidence({ modelType, exactModelRevision, sourceTemplate, canonicalReceipt }) { +export function assessPreviewFreeResearchWorkflow({ + manifest, + graphHash, + exactModelRevision, + receipt, + review, + artifactReview, +}) { + if (!review || !receipt) return null; + const admitted = artifactReview?.admission; + const model = artifactReview?.repositories?.find( + (row) => row.pipelineClass === manifest.modelType && `${row.repository}@${row.revision}` === exactModelRevision, + ); + const expectedProof = + manifest.mode === 'edit_image' + ? ['real_backend_input_bound_model_variant'] + : ['real_backend_weights', 'real_backend_prompt_bound_model_variant']; + if ( + artifactReview?.license?.commercialUseAllowed !== false || + typeof artifactReview.license.id !== 'string' || + !artifactReview.license.id.trim() || + admitted?.galleryEligible !== false || + admitted?.autoEligible !== false || + !admitted.executableModes?.includes(manifest.id) || + !model || + manifest.mediaKind !== 'image' || + !['text_to_image', 'edit_image'].includes(manifest.mode) || + !expectedProof.includes(receipt.proofKind) || + (manifest.mode === 'edit_image' && !receipt.inputBinding?.sha256) || + review.workflowId !== manifest.id || + review.sourceTemplateId !== manifest.sourceTemplateId || + review.sourceTemplateId !== receipt.sourceTemplateId || + review.canonicalWorkflowHash !== graphHash || + review.canonicalWorkflowHash !== receipt.canonicalWorkflowHash || + review.executedGraphHash !== receipt.graphHash || + review.evidenceSha256 !== receipt.evidenceSha256 || + review.outputHash !== receipt.outputHash || + receipt.workflowId !== manifest.id || + receipt.modelType !== manifest.modelType || + receipt.task !== manifest.mode || + receipt.modelSet?.length !== 1 || + receipt.modelSet[0].repoId !== model.repository || + receipt.modelSet[0].revision !== model.revision || + !/^sha256:workflow-graph-v1:[a-f0-9]{64}$/.test(graphHash) || + !/^sha256:canonical-graph-v1:[a-f0-9]{64}$/.test(review.executedGraphHash) || + !/^[a-f0-9]{64}$/.test(review.evidenceSha256) || + !/^sha256:(bytes|decoded-output-collection-v1):[a-f0-9]{64}$/.test(review.outputHash) + ) + return null; + + return { + scope: 'noncommercial_research', + preview: 'withheld', + license: artifactReview.license.id, + canonicalDefaultsExecuted: receipt.canonicalDefaultsExecuted ?? receipt.proofKind === 'real_backend_weights', + evidenceSha256: receipt.evidenceSha256, + }; +} + +export function assessWorkflowReleaseEvidence({ + modelType, + exactModelRevision, + sourceTemplate, + canonicalReceipt, + previewFreeResearch, +}) { const dataOperation = modelType === 'BuiltinDataOperation'; const mediaOperation = ['BuiltinImageOperation', 'BuiltinAudioOperation', 'BuiltinVideoOperation'].includes( modelType, @@ -123,6 +188,7 @@ export function assessWorkflowReleaseEvidence({ modelType, exactModelRevision, s const executedRequiredDefaults = !mediaOperation || canonicalReceipt?.canonicalDefaultsExecuted === true; const releaseEligible = Boolean( (exactModelRevision && sourceTemplate?.releaseEligible) || + (exactModelRevision && previewFreeResearch) || ((dataOperation || mediaOperation) && hasDeterministicReceipt && verifiedCorrectness && executedRequiredDefaults), ); const missingReleaseEvidence = []; diff --git a/scripts/release-contract.mjs b/scripts/release-contract.mjs index f9bd4a73..3b540038 100644 --- a/scripts/release-contract.mjs +++ b/scripts/release-contract.mjs @@ -15,6 +15,7 @@ import { templateResourceExecutionModelType, qualificationModelArtifacts, assessGalleryReleaseApproval, + assessPreviewFreeResearchWorkflow, assessWorkflowReleaseEvidence, readCanonicalEvidenceFile, readCanonicalWorkflowEvidence, @@ -38,6 +39,7 @@ const TEMPLATE_RECEIPT_REGISTRY_PATH = join( 'template-run-receipts.v2.json', ); const RETAINED_TEMPLATE_REVIEW_ROOT = join(BACKEND_ROOT, 'data/qualification/release/retained-template-review'); +const PREVIEW_FREE_REVIEW_PATH = join(CLIENT_ROOT, 'config/preview-free-research-workflows.v1.json'); const CHECK = process.argv.includes('--check'); function readJson(path) { @@ -350,6 +352,15 @@ const workflowRecords = [...workflowManifest.workflows, ...reviewedExperimental] return { manifest: workflow, graph, contract: canonicalWorkflowContract(workflow, graph) }; }); const canonicalReceiptsByWorkflow = new Map(); +const researchReviews = readJson(PREVIEW_FREE_REVIEW_PATH); +if (researchReviews.schemaVersion !== 1 || !Array.isArray(researchReviews.reviews)) { + throw new Error('Preview-free research workflow reviews have an invalid schema.'); +} +const researchReviewsByWorkflow = new Map(researchReviews.reviews.map((review) => [review.workflowId, review])); +if (researchReviewsByWorkflow.size !== researchReviews.reviews.length) { + throw new Error('Preview-free research workflow reviews contain duplicate workflow IDs.'); +} +const dreamLiteArtifactReview = readJson(join(BACKEND_ROOT, 'data/dreamlite-artifact-review.json')); const retainedNativeBySha = new Map(); const executionStatuses = { real_backend_deterministic_data: 'verified_deterministic_execution', @@ -580,7 +591,7 @@ try { }).sort((left, right) => left.id.localeCompare(right.id)); const workflows = workflowRecords - .map(({ manifest, graph }) => { + .map(({ manifest, graph, contract }) => { const artifact = artifactByModel.get(manifest.modelType); const retainedRecipe = retainedRecipesByWorkflow.get(manifest.id); const authoring = canonicalAuthoring.find((row) => row.canonicalWorkflowId === manifest.id); @@ -607,6 +618,14 @@ try { ? canonicalWorkflowDeclaredModelRevision(manifest, graph, authoring, artifact) : null; const exactModelRevision = sourceTemplate?.exactModelRevision ?? authoredRevision ?? catalogRevision; + const previewFreeResearch = assessPreviewFreeResearchWorkflow({ + manifest, + graphHash: contract.graphHash, + exactModelRevision, + receipt: canonicalReceipt, + review: researchReviewsByWorkflow.get(manifest.id), + artifactReview: dreamLiteArtifactReview, + }); const executionStatus = manifest.requiredArtifacts?.some((item) => item.startsWith('builtin:')) ? 'unsupported_builtin_model_not_applicable' : 'missing'; @@ -615,6 +634,7 @@ try { exactModelRevision, sourceTemplate, canonicalReceipt, + previewFreeResearch, }); if (reviewedRetainedTemplate) { releaseEvidence.missingReleaseEvidence = releaseEvidence.missingReleaseEvidence.filter( @@ -629,8 +649,8 @@ try { ...(manifest.experimentalRecipe ? { experimentalRecipe: manifest.experimentalRecipe, modelSupportTier: 'experimental' } : {}), - graphHash: canonicalWorkflowContract(manifest, graph).graphHash, - backendNodes: canonicalWorkflowContract(manifest, graph).backendNodes, + graphHash: contract.graphHash, + backendNodes: contract.backendNodes, packageSetIds: [packageSet.id], exactModelRevision, exactModelRevisionSource: sourceTemplate?.exactModelRevision @@ -657,6 +677,7 @@ try { } : {}), ...releaseEvidence, + ...(previewFreeResearch ? { previewFreeResearch } : {}), ...(reviewedRetainedTemplate ? { reviewedRetainedTemplate } : {}), }; }) @@ -682,6 +703,7 @@ try { .length, workflowCount: workflows.length, releaseEligibleWorkflowCount: workflows.filter((item) => item.releaseEligible).length, + previewFreeResearchWorkflowCount: workflows.filter((item) => item.previewFreeResearch).length, missingTemplateEvidence: templates .filter((item) => item.missingReleaseEvidence.length) .map((item) => ({ id: item.id, missing: item.missingReleaseEvidence })), diff --git a/scripts/release-contract.test.mjs b/scripts/release-contract.test.mjs index 30d6a591..680d4b0a 100644 --- a/scripts/release-contract.test.mjs +++ b/scripts/release-contract.test.mjs @@ -21,6 +21,7 @@ import { templateResourceExecutionModelType, qualificationModelArtifacts, assessGalleryReleaseApproval, + assessPreviewFreeResearchWorkflow, assessWorkflowReleaseEvidence, canonicalWorkflowAuthoringContract, canonicalWorkflowDeclaredModelRevision, @@ -138,6 +139,79 @@ test('verified standalone model execution remains distinct from a reviewed exact } }); +test('preview-free research qualification binds the reviewed recipe and the validated private output', () => { + const id = 'DreamLitePipeline:edit_image'; + const sourceTemplateId = 'task-template:dreamlite-base:edit-image:v1'; + const revision = 'a'.repeat(40); + const repoId = 'carlofkl/DreamLite-base'; + const graphHash = `sha256:workflow-graph-v1:${'b'.repeat(64)}`; + const review = { + workflowId: id, + sourceTemplateId, + canonicalWorkflowHash: graphHash, + executedGraphHash: `sha256:canonical-graph-v1:${'c'.repeat(64)}`, + evidenceSha256: 'd'.repeat(64), + outputHash: `sha256:bytes:${'e'.repeat(64)}`, + }; + const receipt = { + ...review, + graphHash: review.executedGraphHash, + task: 'edit_image', + modelType: 'DreamLitePipeline', + proofKind: 'real_backend_input_bound_model_variant', + modelSet: [{ repoId, revision }], + inputBinding: { sha256: 'f'.repeat(64) }, + canonicalDefaultsExecuted: false, + }; + const artifactReview = { + license: { commercialUseAllowed: false, id: 'cc-by-nc-4.0' }, + admission: { autoEligible: false, galleryEligible: false, executableModes: [id] }, + repositories: [{ pipelineClass: receipt.modelType, repository: repoId, revision }], + }; + const args = { + manifest: { id, sourceTemplateId, modelType: receipt.modelType, mode: receipt.task, mediaKind: 'image' }, + graphHash, + exactModelRevision: `${repoId}@${revision}`, + receipt, + review, + artifactReview, + }; + const previewFreeResearch = assessPreviewFreeResearchWorkflow(args); + assert.deepEqual(previewFreeResearch, { + scope: 'noncommercial_research', + preview: 'withheld', + license: 'cc-by-nc-4.0', + canonicalDefaultsExecuted: false, + evidenceSha256: review.evidenceSha256, + }); + assert.deepEqual( + assessWorkflowReleaseEvidence({ + modelType: receipt.modelType, + exactModelRevision: args.exactModelRevision, + canonicalReceipt: receipt, + previewFreeResearch, + }), + { releaseEligible: true, missingReleaseEvidence: [] }, + ); + + for (const change of [ + { review: null }, + { receipt: null }, + { graphHash: `sha256:workflow-graph-v1:${'9'.repeat(64)}` }, + { exactModelRevision: `${repoId}@${'9'.repeat(40)}` }, + { review: { ...review, evidenceSha256: '9'.repeat(64) } }, + { review: { ...review, outputHash: `sha256:bytes:${'9'.repeat(64)}` } }, + { receipt: { ...receipt, graphHash: `sha256:canonical-graph-v1:${'9'.repeat(64)}` } }, + { receipt: { ...receipt, inputBinding: null } }, + { manifest: { ...args.manifest, sourceTemplateId: 'different-template' } }, + { artifactReview: { ...artifactReview, license: null } }, + { artifactReview: { ...artifactReview, license: { commercialUseAllowed: false } } }, + { artifactReview: { ...artifactReview, admission: { ...artifactReview.admission, galleryEligible: true } } }, + ]) { + assert.equal(assessPreviewFreeResearchWorkflow({ ...args, ...change }), null); + } +}); + test('the reviewed opening-video replacement exposes its receipt without qualifying its historical template', () => { const id = 'WanImageToVideoPipeline:image_to_video'; const sourceTemplateId = 'wan_22_i2v_seed_vault'; diff --git a/scripts/retained-gallery-templates.test.mjs b/scripts/retained-gallery-templates.test.mjs index d1fe8e2d..d42e5770 100644 --- a/scripts/retained-gallery-templates.test.mjs +++ b/scripts/retained-gallery-templates.test.mjs @@ -243,7 +243,10 @@ test('retained Gallery recipes preserve the native graph identities and standalo assert.equal(pag.modelType, 'PixArtSigmaPAGPipeline'); assert.equal(pag.prompt, ''); assert.equal(pag.example.lockedSettings.pagScale, 4); - assert.ok(!published.some((item) => item.modelType === 'ShapEPipeline')); + assert.deepEqual( + published.filter((item) => item.modelType === 'ShapEPipeline').map(({ id }) => id), + ['shap_e_traffic_cone_turntable'], + ); }); test('fresh Expert recipes prepare with current backend specs and without a generation request', async () => { @@ -491,6 +494,27 @@ test('fresh Expert recipes prepare with current backend specs and without a gene continue; } const loader = api.nodes[binding.nodes[spec.roles.find(([, key]) => key.endsWith('.' + spec.loaderAction))[0]]]; + if (template.mode === 'text_to_3d') { + const { lockedSettings, lockedSeed } = template.example; + const render = Object.entries(api.nodes).find( + ([, node]) => node.module === 'modules.DiffusersThreeD' && node.action === 'GenerateRenderedArtifact', + ); + assert.ok(render); + const [renderId, generation] = render; + const delivery = Object.values(api.nodes).find( + ({ module, action }) => module === 'modules.Video' && action === 'Export', + ); + assert.equal(loader.params.model_id.value.value, template.modelArtifact.value); + assert.equal(loader.params.revision.value, template.modelArtifact.revision); + assert.equal(generation.params.frame_size.value, lockedSettings.width); + assert.equal(generation.params.num_inference_steps.value, lockedSettings.steps); + assert.equal(generation.params.guidance_scale.value, lockedSettings.guidanceScale); + assert.equal(generation.params.prompt.value, template.prompt); + assert.equal(Number(generation.params.seed.value), lockedSeed); + assert.equal(delivery.params.fps.value, lockedSettings.fps); + assert.equal(delivery.params.video.sourceId, renderId); + continue; + } if (template.example.retainedVideoPreview) { const { lockedSettings, lockedSeed } = template.example; const generation = api.nodes[binding.nodes.wanGenerate]; diff --git a/scripts/template-gallery-harness.mjs b/scripts/template-gallery-harness.mjs index df4a104a..b27859a8 100644 --- a/scripts/template-gallery-harness.mjs +++ b/scripts/template-gallery-harness.mjs @@ -1833,7 +1833,13 @@ export function beforePreviewContractErrors(decoded, contract = templateGalleryC return errors; } -export function technicalMediaErrors(decoded, expected = {}, mediaType = 'image', retainedVideoPreview) { +export function technicalMediaErrors( + decoded, + expected = {}, + mediaType = 'image', + retainedVideoPreview, + nativeTurntable = false, +) { const errors = []; for (const field of ['width', 'height', 'frames', 'sampleRate']) { const measured = @@ -1857,13 +1863,17 @@ export function technicalMediaErrors(decoded, expected = {}, mediaType = 'image' if (Number(decoded.lumaStdDev ?? 0) < 0.75) errors.push('decoded media has near-zero visual variance'); } if (mediaType === 'video') { - const retainedClip = retainedVideoPreviewMatches(retainedVideoPreview, { - ...decoded, - decodedAudioHash: decoded.embeddedAudio?.hash, - mediaHash: decodedMediaHashMatches(decoded, retainedVideoPreview?.mediaHash) - ? retainedVideoPreview.mediaHash - : decoded.hash, - }); + const retainedClip = retainedVideoPreviewMatches( + retainedVideoPreview, + { + ...decoded, + decodedAudioHash: decoded.embeddedAudio?.hash, + mediaHash: decodedMediaHashMatches(decoded, retainedVideoPreview?.mediaHash) + ? retainedVideoPreview.mediaHash + : decoded.hash, + }, + nativeTurntable, + ); const requestedMotionProfile = expected.motionReviewProfile ?? DEFAULT_MOTION_REVIEW_PROFILE; const hasKnownMotionProfile = Object.hasOwn(MOTION_REVIEW_PROFILES, requestedMotionProfile); if (!hasKnownMotionProfile) { @@ -2707,7 +2717,13 @@ export async function verifyGallery( } errors.push( ...(decoded - ? technicalMediaErrors(decoded, galleryExpectedOutput(template), entry.mediaType ?? 'image', retainedPreview) + ? technicalMediaErrors( + decoded, + galleryExpectedOutput(template), + entry.mediaType ?? 'image', + retainedPreview, + template.mode === 'text_to_3d', + ) : [] ).map((error) => `${entry.templateId} technical media gate: ${error}`), ); diff --git a/scripts/template-gallery-harness.test.mjs b/scripts/template-gallery-harness.test.mjs index 27dbff83..3ab6f60e 100644 --- a/scripts/template-gallery-harness.test.mjs +++ b/scripts/template-gallery-harness.test.mjs @@ -1092,6 +1092,29 @@ test('video delivery floor accepts native Wan resolution without weakening templ assert.match(lowResolution.join('\n'), /at least 768x480/); }); +test('a reviewed native 3D turntable retains its exact small render', () => { + const hash = 'sha256:decoded-video-framemd5:' + 'a'.repeat(64); + const preview = { mediaHash: hash, width: 256, height: 256, frames: 20, fps: 12 }; + const decoded = { + ...preview, + hash, + durationSeconds: 20 / 12, + uniqueFrameRatio: 1, + nearBlackRatio: 0, + lumaStdDev: 20, + codecName: 'h264', + pixelFormat: 'yuv420p', + }; + assert.deepEqual(technicalMediaErrors(decoded, {}, 'video', preview, true), []); + assert.match(technicalMediaErrors(decoded, {}, 'video', preview).join('\n'), /at least 768x480/); + assert.match( + technicalMediaErrors({ ...decoded, hash: hash.replace(/a+$/u, 'b'.repeat(64)) }, {}, 'video', preview, true).join( + '\n', + ), + /differs from the reviewed retained preview/, + ); +}); + test('public provenance redacts machine paths and source commit ids', () => { const redacted = redactPublicProvenance({ runtime: { diff --git a/src/studio/retainedGalleryApprovedBatch.ts b/src/studio/retainedGalleryApprovedBatch.ts index b30ba65b..f5ef5469 100644 --- a/src/studio/retainedGalleryApprovedBatch.ts +++ b/src/studio/retainedGalleryApprovedBatch.ts @@ -9961,4 +9961,77 @@ export const APPROVED_RETAINED_TEMPLATES: StudioTemplate[] = [ recipeSummary: 'Reproduce the saved technical preview with its recorded settings.', runtimeReuseKey: 'sha256:canonical-graph-v1:6912051646a49f18b61e7f98fdf9665059818faaac3ca3d29c796b32941ee479', }, + { + id: 'shap_e_traffic_cone_turntable', + label: 'Shap-E — Technical Preview: Traffic Cone Turntable', + mode: 'text_to_3d', + modelType: 'ShapEPipeline', + intentGroup: 'utility', + category: 'concept', + outputKinds: ['video'], + readinessPolicy: 'runnable', + thumbnailVariant: 'video', + modelArtifact: { + source: 'hub', + value: 'openai/shap-e', + revision: '7bd337afdea1c17842e1c3cc45c4e268356dba40', + }, + description: 'An upright orange cone with a square dark base stays recognizable across sampled views.', + prompt: + 'A single orange traffic cone with one broad white reflective band and a flat black square rubber base, centered upright, clean solid silhouette, simple realistic materials, isolated 3D asset.', + negativePrompt: '', + example: { + mediaType: 'video', + status: 'unverified', + modelRevision: '7bd337afdea1c17842e1c3cc45c4e268356dba40', + lockedSeed: 42, + lockedSettings: { + width: 256, + height: 256, + fps: 12, + steps: 64, + guidanceScale: 15, + dtype: 'float16', + autoOffload: true, + offloadMode: 'model_cpu', + attentionBackend: 'auto', + resourceMode: 'expert', + quantizationMode: 'none', + }, + retainedVideoPreview: { + mediaHash: 'sha256:decoded-video-framemd5:6e783af38b0869b2a3fe55a7bee43d8c140ef19826fa1e18a3dc4d8dbaee5bf2', + width: 256, + height: 256, + frames: 20, + fps: 12, + }, + expectedOutput: { + width: 256, + height: 256, + frames: 20, + durationSeconds: 1.6666666666666667, + }, + notes: + 'The reflective band is split into two at the center. Fine edges are soft at native 256 × 256. The route delivers a rendered clip. Mesh topology and watertightness have no measurements.', + runtimeEstimate: 'About one minute on the tested Radeon host', + }, + requiredBackendCapabilities: [ + 'modules.DiffusersRuntime.PipelineQuantizationConfigV2', + 'modules.DiffusersRuntime.DiffusersExecutionRecipe', + 'modules.DiffusersThreeD.GenerateRenderedArtifact', + 'modules.DiffusersThreeD.LoadPipeline', + 'modules.Video.Export', + ], + mediaSlots: [ + { + id: 'result', + label: 'Rendered turntable', + kind: 'video', + role: 'output', + placeholder: 'Result pending', + }, + ], + recipeSummary: 'Render the saved Shap-E orbit with the recorded prompt and sampling settings.', + runtimeReuseKey: 'sha256:canonical-graph-v1:eb319f05ba885a4c4e8c35fd06126484d519a95c1fd8078d85cd95574d6c8d08', + }, ]; diff --git a/src/studio/retainedVideoPreview.ts b/src/studio/retainedVideoPreview.ts index 253de108..8fe4ad96 100644 --- a/src/studio/retainedVideoPreview.ts +++ b/src/studio/retainedVideoPreview.ts @@ -19,8 +19,14 @@ export function retainedVideoPreviewMatches( fps?: number; durationSeconds?: number; }, + nativeTurntable = false, ) { if (!preview) return false; + // Render 3D produces a square native orbit rather than a video-generation + // delivery. The reviewed hash, dimensions, frame count and cadence still bind it. + const dimensionsMatchTask = nativeTurntable + ? preview.width >= 64 && preview.width === preview.height + : preview.width >= 480 && preview.height >= 480; return ( /^sha256:decoded-video-(framemd5|rgba):[a-f0-9]{64}$/u.test(preview.mediaHash) && preview.mediaHash === media.mediaHash && @@ -31,8 +37,7 @@ export function retainedVideoPreviewMatches( preview.height === media.height && Number.isSafeInteger(preview.width) && Number.isSafeInteger(preview.height) && - preview.width >= 480 && - preview.height >= 480 && + dimensionsMatchTask && Number.isSafeInteger(preview.frames) && preview.frames >= 2 && preview.frames === media.frames && diff --git a/src/studio/templateAssetSource.json b/src/studio/templateAssetSource.json index ee4141ea..33b90ccd 100644 --- a/src/studio/templateAssetSource.json +++ b/src/studio/templateAssetSource.json @@ -4,11 +4,11 @@ "localBasePath": "/template-gallery", "repoType": "dataset", "repoId": "sourav-das/modiff-template-gallery", - "revision": "47f928f9ba9df49317b24dd18e267fdb9d873e02", + "revision": "c320700d169958015ff43655c765a4650634025f", "pathPrefix": "template-gallery", "assetManifestPath": "_modiff/template-assets.v1.json", - "assetSetId": "sha256:canonical-json:a12dd907a901d77a6f049f6385e8f9467f254b32ab87e9774c42c685e99a7469", - "completeAssetSetId": "sha256:canonical-json:179504c1ce6950cf1b5f94f30e743f39b2fb5a2b0b2a3bd6a4558b833bb0ebcd", + "assetSetId": "sha256:canonical-json:faa6c8ef3447fc8b9705edb7698e3123da870f5255716c94bf4612bef74fd3a1", + "completeAssetSetId": "sha256:canonical-json:2fc79cbb1c9f5a520d57def2623affaeedd307f12f2e34065ec482e485bed13d", "unavailableAssets": [ "template-gallery/ace_step_chinese_new_year_lora.card-poster.png", "template-gallery/ace_step_chinese_new_year_lora.wav", diff --git a/src/studio/templateExactness.ts b/src/studio/templateExactness.ts index 72e6dfc2..c23a246a 100644 --- a/src/studio/templateExactness.ts +++ b/src/studio/templateExactness.ts @@ -393,7 +393,7 @@ export function isRetainedVideoPreview(template: StudioTemplate, entry: Template /^sha256:retained-template-association-v1:[a-f0-9]{64}$/u.test(entry.proofLockHash) && entry.outputPath.endsWith('.mp4') && Boolean(entry.decodedAudioHash) === Boolean(entry.audiovisualMediaHash) && - retainedVideoPreviewMatches(template.example?.retainedVideoPreview, entry) + retainedVideoPreviewMatches(template.example?.retainedVideoPreview, entry, template.mode === 'text_to_3d') ); } diff --git a/src/studio/types.ts b/src/studio/types.ts index 7a35d8b2..f899c610 100644 --- a/src/studio/types.ts +++ b/src/studio/types.ts @@ -256,6 +256,7 @@ export type StudioTemplateId = | 'ddim_cifar10_preview' | 'ddpm_cifar32_technical_preview' | 'consistency_64_technical_preview' + | 'shap_e_traffic_cone_turntable' | 'pixart_sigma_terracotta_herbs' | 'pixart_sigma_pag_pink_mascot' | 'sdxl_clear_cobalt_backdrop' From de438af7be77218f17117c1c0cb7d9cb242300f9 Mon Sep 17 00:00:00 2001 From: Sourav Das Date: Thu, 26 Nov 2026 19:36:54 +0530 Subject: [PATCH 409/440] Verify the three remaining workflows in private scopes --- config/private-workflow-qualification.v1.json | 81 ++++++ docs/release-preview-scope.md | 12 + scripts/native-variant-run-evidence.mjs | 23 +- scripts/private-workflow-qualification.mjs | 253 ++++++++++++++++++ scripts/release-candidate-report.mjs | 1 + scripts/release-contract-core.mjs | 2 + scripts/release-contract.mjs | 65 ++++- scripts/release-contract.test.mjs | 133 +++++++++ 8 files changed, 556 insertions(+), 14 deletions(-) create mode 100644 config/private-workflow-qualification.v1.json create mode 100644 scripts/private-workflow-qualification.mjs diff --git a/config/private-workflow-qualification.v1.json b/config/private-workflow-qualification.v1.json new file mode 100644 index 00000000..796d531e --- /dev/null +++ b/config/private-workflow-qualification.v1.json @@ -0,0 +1,81 @@ +{ + "schemaVersion": 1, + "reviews": [ + { + "workflowId": "AceStepAudioPipeline:text_to_audio:ace_step_chinese_new_year_lora", + "sourceTemplateId": "ace_step_chinese_new_year_lora", + "canonicalWorkflowHash": "sha256:workflow-graph-v1:de99a9b5808b8b33fe525f91790fd305a2f103794f7a90999fedc5ba090bc066", + "executedGraphHash": "sha256:canonical-graph-v1:ce45c39f7d7609926d49d5d7845cbbb0423bdf053d7defe1035a7323e7344038", + "scope": "research_academic_only", + "preview": "withheld", + "redistributionAuthorized": false, + "modelSet": [ + { + "repoId": "ACE-Step/ACE-Step-v1.5-chinese-new-year-LoRA", + "revision": "cb829a12775740c830a6d49795f16913065dc492" + }, + { + "repoId": "Runware/acestep-v15-turbo-diffusers", + "revision": "be23effe449c5957947f3020fd63bee23c64abe4" + } + ], + "outputSha256": "9a7b0bcceb386399243f4231b33751188355c7612ba6746567dcff159d3a9920", + "evidence": { + "sha256": "e0072240ea5fb7865453d6a88c8844f70f96cf319abca774107daf97fc3e289d", + "bytes": 1031 + } + }, + { + "workflowId": "FluxDevPipeline:text_to_image:flux_lora_ghibli_story", + "sourceTemplateId": "flux_lora_ghibli_story", + "canonicalWorkflowHash": "sha256:workflow-graph-v1:96d9f17a0cbfb5a729ebe93de880d465e813fc4741e854ed636fccc37257a5e5", + "executedGraphHash": "sha256:canonical-graph-v1:fabb185a7af01004fdb72edba477648345aca64db5a4f1a0aa1b0c022f5d9103", + "scope": "personal_noncommercial", + "preview": "withheld", + "redistributionAuthorized": false, + "modelSet": [ + { + "repoId": "alvarobartt/ghibli-characters-flux-lora", + "revision": "ed846114c71efc525e7f5a51e274dc976bb970a8" + }, + { + "repoId": "black-forest-labs/FLUX.1-dev", + "revision": "3de623fc3c33e44ffbe2bad470d0f45bccf2eb21" + } + ], + "outputSha256": "b49d874fc7fdb36c8cd15541b7445c7c2143c9242ab04dccc075528ed799b096", + "evidence": { + "sha256": "d40a76790832e459b3d4fa77246bfbc3da47835223783b467c247e72df293d1d", + "bytes": 1017 + } + }, + { + "workflowId": "HunyuanVideoFramepackPipeline:image_to_video", + "sourceTemplateId": "task-template:framepack:image-to-video:v1", + "canonicalWorkflowHash": "sha256:workflow-graph-v1:3d833891cc2788bb7de7a1ba83b44bcc05d17c4f09f63a4914d4ebeeb9a7f307", + "executedGraphHash": "sha256:canonical-graph-v1:fbdf225e544ed8b4c92f5d7185050aa4f6b3a36c08c3ad863346b7f35c351c7e", + "scope": "territory_limited_private_evaluation", + "preview": "withheld", + "redistributionAuthorized": false, + "modelSet": [ + { + "repoId": "lllyasviel/FramePackI2V_HY", + "revision": "86cef4396041b6002c957852daac4c91aaa47c79" + }, + { + "repoId": "hunyuanvideo-community/HunyuanVideo", + "revision": "e8c2aaa66fe3742a32c11a6766aecbf07c56e773" + }, + { + "repoId": "lllyasviel/flux_redux_bfl", + "revision": "45b801affc54ff2af4e5daf1b282e0921901db87" + } + ], + "outputSha256": "f58b6243f20b10c8cf76b71028ef482d44fdf730dee2c846ce7ccde0abf4c6a1", + "evidence": { + "sha256": "242872854f982b7f01b27bbdbd6e50c68c3632292563a792d6279753005b8baf", + "bytes": 1985 + } + } + ] +} diff --git a/docs/release-preview-scope.md b/docs/release-preview-scope.md index 0061319a..de69cda5 100644 --- a/docs/release-preview-scope.md +++ b/docs/release-preview-scope.md @@ -57,3 +57,15 @@ previews withheld. The checker repeats the saved evidence validation and binds the exact accepted graph and output to the existing restricted artifact review. The release report lists them separately under `previewFreeResearchWorkflows`. Their proof does not extend to Gallery publication or Auto resource admission. + +The release report also lists `privateQualifiedWorkflows`. This covers Chinese +New Year Ensemble under its research and academic terms, Ghibli Story Illustration +under its personal noncommercial terms, and the exact operator-approved FramePack +keyframe clip under its territory-limited private scope. The release checker +requires the local native request, acknowledgement, completion, model pins and +decoded media to match their recorded hashes. The two adapter workflows must +match their current executable exports. FramePack requires the verified original +recipe and the approved variant with both reference images. The registry carries +hashes, and the private media and run records stay outside Git and the Gallery. +This server-side evidence establishes execution and delivery. Browser interaction +and hardware qualification use their own checks. diff --git a/scripts/native-variant-run-evidence.mjs b/scripts/native-variant-run-evidence.mjs index e804fae9..2d5b5aa2 100644 --- a/scripts/native-variant-run-evidence.mjs +++ b/scripts/native-variant-run-evidence.mjs @@ -211,12 +211,25 @@ export function validateLateNativeSingleAssetRun({ run, persistedOutput, ...opti return validateNativeVariantRun({ ...options, run: { ...run, outputs: [persistedOutput] } }); } -export function validateNativeVariantOutput({ output, outputRef, task, bytes, displayType, contentType }) { +export function validateNativeVariantOutput({ + output, + outputRef, + task, + bytes, + displayType, + contentType, + backendOnly = false, +}) { const { backendProvenance } = output; assert.equal(backendProvenance.source, 'backend-record'); assert.equal(backendProvenance.backendExecutionId, task.task_id); - for (const key of ['clientRunId', 'runInputHash', 'workflowTabId', 'mediaCollectionHash']) - assert.equal(backendProvenance[key], output[key]); + for (const key of ['clientRunId', 'runInputHash', 'workflowTabId']) { + if (backendOnly) { + assert.equal(backendProvenance[key] ?? null, null); + assert.equal(output[key] ?? null, null); + } else assert.equal(backendProvenance[key], output[key]); + } + assert.equal(backendProvenance.mediaCollectionHash, output.mediaCollectionHash); assert.equal(backendProvenance.attemptIndex, 0); assert.equal(backendProvenance.nodeId, output.nodeId); assert.equal(backendProvenance.fieldKey, 'preview'); @@ -230,8 +243,8 @@ export function validateNativeVariantOutput({ output, outputRef, task, bytes, di assert.equal(item.backendPath, outputRef.backendPath); assert.equal(item.taskId, task.task_id); assert.equal(item.attemptIndex, 0); - assert.equal(item.clientRunId, output.clientRunId); - assert.equal(item.runInputHash, output.runInputHash); + assert.equal(item.clientRunId, backendOnly ? null : output.clientRunId); + assert.equal(item.runInputHash, backendOnly ? null : output.runInputHash); assert.equal(item.displayType, displayType); assert.equal(item.contentType, contentType); assert.equal(outputRef.mediaType, displayType); diff --git a/scripts/private-workflow-qualification.mjs b/scripts/private-workflow-qualification.mjs new file mode 100644 index 00000000..65e206d9 --- /dev/null +++ b/scripts/private-workflow-qualification.mjs @@ -0,0 +1,253 @@ +import assert from 'node:assert/strict'; +import { existsSync } from 'node:fs'; +import { dirname, join } from 'node:path'; +import { canonicalGraphIdentity } from './live-proof-provenance.mjs'; +import { validateNativeVariantOutput } from './native-variant-run-evidence.mjs'; +import { readCanonicalEvidenceFile } from './release-contract-core.mjs'; +import { decodedMediaHash } from './template-gallery-harness.mjs'; + +const framepack = 'HunyuanVideoFramepackPipeline:image_to_video'; +const routes = new Map([ + [ + 'AceStepAudioPipeline:text_to_audio:ace_step_chinese_new_year_lora', + { + scope: 'research_academic_only', + policyId: 'ace-step-chinese-new-year-research-academic-only', + contentType: 'audio/x-wav', + loaders: [ + ['LoadPipeline', 'model_id'], + ['LoadAdapter', 'adapter_path', true], + ], + }, + ], + [ + 'FluxDevPipeline:text_to_image:flux_lora_ghibli_story', + { + scope: 'personal_noncommercial', + policyId: 'ghibli-characters-personal-noncommercial', + contentType: 'image/webp', + loaders: [ + ['ModelsLoader', 'repo_id'], + ['Lora', 'model', true], + ], + }, + ], + [ + framepack, + { + scope: 'territory_limited_private_evaluation', + contentType: 'video/mp4', + loaders: [['LoadPipeline', 'model_id']], + }, + ], +]); + +const parse = ({ bytes }) => JSON.parse(bytes); +const modelKey = ({ repoId, revision }) => `${repoId}@${revision}`; +const modelKeys = (models) => models.map(modelKey).sort(); +const exactDigest = /^[a-f0-9]{64}$/u; + +function checkLoaderBindings(graph, resolved, review, route) { + for (const [action, field, adapter] of route.loaders) { + const matches = Object.entries(graph.nodes).filter(([, node]) => node.action === action); + assert.equal(matches.length, 1, `Expected one executable ${action}.`); + const [[nodeId, node]] = matches; + const selection = node.params[field].value; + const revision = node.params.revision.value; + assert.equal(selection.source, 'hub'); + assert.ok(review.modelSet.some(({ repoId, revision: pin }) => repoId === selection.value && pin === revision)); + const native = resolved.find((row) => row.nodeId === nodeId); + assert.equal(native?.action, action); + assert.equal(native?.module, node.module); + assert.equal(native.fields.revision?.value, revision, `The consumed ${action} revision differs.`); + // The native adapter receipt records the revision. Its repository and + // bytes are additionally locked by the submitted loader's checksum guard. + if (adapter) assert.match(node.params.expected_sha256.value, exactDigest); + const consumed = native.fields[field]?.value; + if (consumed !== undefined || !adapter) { + assert.equal(consumed?.value ?? consumed, selection.value, `The consumed ${action} artifact differs.`); + } + } +} + +function checkFramePackVariant(graph, resolved, references, original, review) { + assert.equal(original?.proofKind, 'real_backend_input_bound_model_variant'); + assert.equal(original.canonicalWorkflowHash, review.canonicalWorkflowHash); + assert.deepEqual(modelKeys(original.modelSet), modelKeys(review.modelSet)); + assert.equal(references.length, 2); + assert.equal(references[0].ref.sha256, original.inputBinding.sha256); + assert.notEqual(references[1].ref.sha256, references[0].ref.sha256); + const generator = Object.values(graph.nodes).find( + ({ module, action }) => module === 'modules.DiffusersVideo' && action === 'Generate', + ); + assert.equal(generator.params.framepack_sampling.value, 'inverted_anti_drifting'); + for (const [index, field] of ['reference_images', 'last_image'].entries()) { + const { nodeId, ref } = references[index]; + assert.equal(graph.nodes[nodeId].action, 'Load'); + assert.equal(graph.nodes[nodeId].module, 'modules.Image'); + assert.equal(generator.params[field].sourceId, nodeId); + assert.equal(generator.params[field].sourceKey, 'image'); + const loaded = resolved.find((row) => row.nodeId === nodeId); + assert.deepEqual(loaded.fields.source_hashes.value, [ref.sha256]); + } +} + +/** Revalidate private native task records. This lane claims no authored UI + * gesture, model-entitlement change, Gallery approval or hardware coverage. */ +export async function readPrivateWorkflowQualification({ + backendRoot, + manifest, + canonicalHash, + expectedGraph, + canonicalReceipt, + review, + usagePolicy, +}) { + const route = routes.get(manifest.id); + assert.ok(route, `Unreviewed private workflow: ${manifest.id}`); + assert.equal(review.workflowId, manifest.id); + assert.equal(review.sourceTemplateId, manifest.sourceTemplateId); + assert.equal(review.canonicalWorkflowHash, canonicalHash); + assert.equal(review.scope, route.scope); + assert.equal(review.preview, 'withheld'); + assert.equal(review.redistributionAuthorized, false); + assert.deepEqual(review.modelSet.map(({ repoId }) => repoId).sort(), [...new Set(manifest.requiredArtifacts)].sort()); + for (const { revision } of review.modelSet) assert.match(revision, /^[a-f0-9]{40}$/u); + if (route.policyId) { + const policy = review.modelSet + .map(({ repoId }) => usagePolicy(repoId)) + .find((entry) => entry?.id === route.policyId); + assert.equal(policy?.useScope, route.scope); + assert.equal(policy.acknowledgementRequired, true); + assert.ok( + review.modelSet.some( + ({ repoId, revision }) => policy.repository === repoId && policy.reviewedRevision === revision, + ), + ); + } + + const { sha256, bytes } = review.evidence; + assert.match(sha256, exactDigest); + assert.match(review.outputSha256, exactDigest); + const path = `data/qualification/release/private-workflow-evidence/${sha256}/evidence.json`; + if (!existsSync(join(backendRoot, path))) return null; + const descriptor = readCanonicalEvidenceFile(backendRoot, { path, sha256, bytes }, 65536); + const evidence = parse(descriptor); + const read = (ref) => readCanonicalEvidenceFile(dirname(descriptor.file), ref); + assert.equal(evidence.format, 'modiff.private-workflow-execution.v1'); + assert.equal(evidence.workflowId, manifest.id); + const graph = parse(read(evidence.graph)); + const ack = parse(read(evidence.ack)); + const terminal = parse(read(evidence.terminal)); + const { task, outputs } = parse(read(evidence.run)); + const executedHash = canonicalGraphIdentity(graph).hash; + assert.equal(executedHash, review.executedGraphHash); + assert.deepEqual(Object.keys(graph.runtimeHints), ['resourceMode']); + assert.equal(graph.runtimeHints.resourceMode, 'expert'); + assert.equal(ack.error, false); + assert.equal(ack.task_id, task.task_id); + assert.equal(terminal.task_id, task.task_id); + assert.equal(terminal.type, 'graph_completed'); + assert.equal(task.status, 'completed'); + assert.equal(task.attempt_index, 0); + assert.equal(graph.sid, task.sid); + assert.equal(ack.sid, task.sid); + assert.equal(terminal.sid, task.sid); + assert.deepEqual(terminal.resourceRetryHistory, []); + assert.deepEqual(terminal.runtimeFingerprint, task.runtimeFingerprint); + assert.deepEqual(terminal.runtimeMeasurement, task.runtimeMeasurement); + assert.match(task.runtimeFingerprint.fingerprint, /^sha256:[a-f0-9]{64}$/u); + assert.ok(task.completed_at > task.started_at); + assert.equal(outputs.length, 1); + const [output] = outputs; + assert.equal(output.taskId, task.task_id); + assert.equal(output.sid, task.sid); + assert.equal(output.fieldKey, 'preview'); + assert.ok(graph.nodes[output.nodeId]?.params.preview); + assert.equal(output.resolvedExecutionInputs.source, 'backend-execution'); + assert.equal(output.resolvedExecutionInputs.taskId, task.task_id); + assert.equal(output.resolvedExecutionInputs.attemptIndex, 0); + assert.equal(output.resolvedExecutionInputs.truncated, false); + const resolved = output.resolvedExecutionInputs.nodes; + checkLoaderBindings(graph, resolved, review, route); + const snapshots = + manifest.id === framepack + ? evidence.downloadRecords.map((ref) => { + const download = parse(read(ref)); + assert.equal(download.error, false); + const { + repo_id: repoId, + revision: selectedRevision, + complete, + repair_required: repairRequired, + } = download.result; + return { repoId, selectedRevision, complete, repairRequired }; + }) + : parse(read(evidence.modelFingerprints)); + assert.deepEqual( + modelKeys( + snapshots.map(({ repoId, selectedRevision, complete, repairRequired }) => { + assert.equal(complete, true); + assert.equal(repairRequired, false); + return { repoId, revision: selectedRevision }; + }), + ), + modelKeys(review.modelSet), + ); + if (manifest.id === framepack) { + for (const { ref } of evidence.references) read(ref); + checkFramePackVariant(graph, resolved, evidence.references, canonicalReceipt, review); + } else { + assert.equal( + executedHash, + canonicalGraphIdentity(expectedGraph).hash, + 'The private recipe differs from the current export.', + ); + } + assert.equal(evidence.media.sha256, review.outputSha256); + const media = read(evidence.media); + const item = validateNativeVariantOutput({ + output, + outputRef: { backendPath: output.backendMediaPath, mediaType: manifest.mediaKind, file: evidence.media }, + task, + bytes: media.bytes, + displayType: manifest.mediaKind, + contentType: route.contentType, + backendOnly: true, + }); + const decoded = await decodedMediaHash(media.file, manifest.mediaKind); + if (manifest.mediaKind === 'audio') { + assert.ok(decoded.durationSeconds > 25 && decoded.durationSeconds < 35); + assert.ok(decoded.peakAmplitude > 0.05 && decoded.silenceRatio < 0.75); + assert.equal(decoded.clippedSampleRatio, 0); + } else { + const native = item.mediaMetadata ?? item; + assert.deepEqual([decoded.width, decoded.height], [native.width, native.height]); + assert.ok(decoded.width >= 640 && decoded.height >= 640); + if (manifest.mediaKind === 'video') { + assert.equal(decoded.frames, native.frame_count); + assert.equal(decoded.fps, native.fps); + assert.equal(decoded.codecName, 'h264'); + assert.equal(decoded.hasAudio, false); + assert.equal(decoded.frames, 109); + const motion = parse(read(evidence.motion)); + assert.equal(motion.framesDecoded, decoded.frames); + assert.equal(motion.adjacentFrameMatches, decoded.frames - 1); + const finish = motion.frameTransformsRelativeToOpening[decoded.frames - 1]; + assert.ok(finish.zoom >= 1.25 && finish.shiftX640 <= -35); + assert.ok(motion.largestAdjacentZoomDelta < 0.02); + } + } + return { + scope: review.scope, + preview: 'withheld', + modelRevision: modelKeys(review.modelSet).join(' | '), + graphHash: executedHash, + outputHash: `sha256:bytes:${review.outputSha256}`, + evidenceSha256: sha256, + taskId: task.task_id, + capturedAt: new Date(task.completed_at * 1000).toISOString(), + canonicalDefaultsExecuted: manifest.id !== framepack, + proofKind: 'real_backend_private_workflow', + }; +} diff --git a/scripts/release-candidate-report.mjs b/scripts/release-candidate-report.mjs index 9db483f7..79197075 100644 --- a/scripts/release-candidate-report.mjs +++ b/scripts/release-candidate-report.mjs @@ -238,6 +238,7 @@ const body = { workflows: contract.coverage?.workflowCount ?? 0, eligibleWorkflows: contract.coverage?.releaseEligibleWorkflowCount ?? 0, previewFreeResearchWorkflows: contract.coverage?.previewFreeResearchWorkflowCount ?? 0, + privateQualifiedWorkflows: contract.coverage?.privateQualifiedWorkflowCount ?? 0, standaloneExecution, resourceRecipes: resourceQualification?.coverage ?? null, releaseEligibleResourceRecipes: resourceQualification?.coverage?.byReleaseLane?.releaseEligible ?? null, diff --git a/scripts/release-contract-core.mjs b/scripts/release-contract-core.mjs index 9aecc5cd..5431bcae 100644 --- a/scripts/release-contract-core.mjs +++ b/scripts/release-contract-core.mjs @@ -176,6 +176,7 @@ export function assessWorkflowReleaseEvidence({ sourceTemplate, canonicalReceipt, previewFreeResearch, + privateQualification, }) { const dataOperation = modelType === 'BuiltinDataOperation'; const mediaOperation = ['BuiltinImageOperation', 'BuiltinAudioOperation', 'BuiltinVideoOperation'].includes( @@ -189,6 +190,7 @@ export function assessWorkflowReleaseEvidence({ const releaseEligible = Boolean( (exactModelRevision && sourceTemplate?.releaseEligible) || (exactModelRevision && previewFreeResearch) || + (exactModelRevision && privateQualification) || ((dataOperation || mediaOperation) && hasDeterministicReceipt && verifiedCorrectness && executedRequiredDefaults), ); const missingReleaseEvidence = []; diff --git a/scripts/release-contract.mjs b/scripts/release-contract.mjs index 3b540038..cb889911 100644 --- a/scripts/release-contract.mjs +++ b/scripts/release-contract.mjs @@ -19,6 +19,7 @@ import { assessWorkflowReleaseEvidence, readCanonicalEvidenceFile, readCanonicalWorkflowEvidence, + exportCanonicalWorkflowGraphs, withCanonicalWorkflowGraphExporter, } from './release-contract-core.mjs'; import { findGalleryEvidencePath } from './release-evidence-paths.mjs'; @@ -26,6 +27,7 @@ import { selectReviewedExperimentalWorkflows } from './workflow-library-manifest import { readReviewedBoundTemplateAssociations } from './retained-template-association.mjs'; import { createRetainedGalleryReleaseReader, retainedFullGraphImageResource } from './retained-gallery-release.mjs'; import { canonicalJsonHash } from './canonical-json.mjs'; +import { readPrivateWorkflowQualification } from './private-workflow-qualification.mjs'; const SCRIPT_DIR = dirname(fileURLToPath(import.meta.url)); const CLIENT_ROOT = resolve(SCRIPT_DIR, '..'); @@ -40,6 +42,7 @@ const TEMPLATE_RECEIPT_REGISTRY_PATH = join( ); const RETAINED_TEMPLATE_REVIEW_ROOT = join(BACKEND_ROOT, 'data/qualification/release/retained-template-review'); const PREVIEW_FREE_REVIEW_PATH = join(CLIENT_ROOT, 'config/preview-free-research-workflows.v1.json'); +const PRIVATE_QUALIFICATION_PATH = join(CLIENT_ROOT, 'config/private-workflow-qualification.v1.json'); const CHECK = process.argv.includes('--check'); function readJson(path) { @@ -425,6 +428,7 @@ const vite = await createServer({ try { const { STUDIO_TEMPLATES } = await vite.ssrLoadModule('/src/studio/templates.ts'); + const { usagePolicyForRepository } = await vite.ssrLoadModule('/src/studio/modelUsagePolicies.ts'); const { RETAINED_GALLERY_TEMPLATES } = await vite.ssrLoadModule('/scripts/retained-gallery-recipes.ts'); const retainedRecipesByTemplate = new Map(RETAINED_GALLERY_TEMPLATES.map((recipe) => [recipe.template.id, recipe])); const retainedRecipesByWorkflow = new Map(RETAINED_GALLERY_TEMPLATES.map((recipe) => [recipe.workflowId, recipe])); @@ -590,6 +594,35 @@ try { }; }).sort((left, right) => left.id.localeCompare(right.id)); + const privateReviewRegistry = readJson(PRIVATE_QUALIFICATION_PATH); + if (privateReviewRegistry.schemaVersion !== 1 || !Array.isArray(privateReviewRegistry.reviews)) { + throw new Error('Invalid private workflow review registry.'); + } + const reviewedPrivateWorkflows = privateReviewRegistry.reviews.map((review) => { + const record = workflowRecords.find(({ manifest }) => manifest.id === review.workflowId); + if (!record) throw new Error(`Missing private workflow source: ${review.workflowId}`); + return { review, ...record }; + }); + if (new Set(reviewedPrivateWorkflows.map(({ manifest }) => manifest.id)).size !== reviewedPrivateWorkflows.length) { + throw new Error('Private workflow reviews contain duplicate workflow IDs.'); + } + const canonicalPrivateGraphs = await exportCanonicalWorkflowGraphs( + CLIENT_ROOT, + reviewedPrivateWorkflows.map(({ graph }) => graph), + ); + const privateQualifications = new Map(); + for (const [index, { manifest, contract, review }] of reviewedPrivateWorkflows.entries()) { + const verified = await readPrivateWorkflowQualification({ + backendRoot: BACKEND_ROOT, + manifest, + canonicalHash: contract.graphHash, + expectedGraph: canonicalPrivateGraphs[index], + canonicalReceipt: canonicalReceiptsByWorkflow.get(manifest.id), + review, + usagePolicy: usagePolicyForRepository, + }); + if (verified) privateQualifications.set(manifest.id, verified); + } const workflows = workflowRecords .map(({ manifest, graph, contract }) => { const artifact = artifactByModel.get(manifest.modelType); @@ -617,7 +650,15 @@ try { !sourceTemplate && !catalogRevision && authoring && !manifest.modelType.startsWith('Builtin') ? canonicalWorkflowDeclaredModelRevision(manifest, graph, authoring, artifact) : null; - const exactModelRevision = sourceTemplate?.exactModelRevision ?? authoredRevision ?? catalogRevision; + const privateQualification = privateQualifications.get(manifest.id); + if (privateQualification && sourceTemplate?.reviewedExampleReleaseApproved) { + throw new Error(`Private workflow must withhold its Gallery preview: ${manifest.id}`); + } + const exactModelRevision = + privateQualification?.modelRevision ?? + sourceTemplate?.exactModelRevision ?? + authoredRevision ?? + catalogRevision; const previewFreeResearch = assessPreviewFreeResearchWorkflow({ manifest, graphHash: contract.graphHash, @@ -635,6 +676,7 @@ try { sourceTemplate, canonicalReceipt, previewFreeResearch, + privateQualification, }); if (reviewedRetainedTemplate) { releaseEvidence.missingReleaseEvidence = releaseEvidence.missingReleaseEvidence.filter( @@ -653,19 +695,22 @@ try { backendNodes: contract.backendNodes, packageSetIds: [packageSet.id], exactModelRevision, - exactModelRevisionSource: sourceTemplate?.exactModelRevision - ? 'template_recipe' - : authoredRevision - ? 'canonical_authoring' - : catalogRevision - ? 'artifact_catalog' - : null, + exactModelRevisionSource: privateQualification + ? 'verified_private_execution' + : sourceTemplate?.exactModelRevision + ? 'template_recipe' + : authoredRevision + ? 'canonical_authoring' + : catalogRevision + ? 'artifact_catalog' + : null, requiredArtifacts: manifest.requiredArtifacts ?? [], defaultAssets: sourceTemplate?.defaultAssets ?? [], userInputs: sourceTemplate?.userInputs ?? manifest.requiredInputs ?? {}, resourceRecipes: sourceTemplate?.resourceRecipes ?? null, outputContract: sourceTemplate?.outputContract ?? { mediaKinds: [manifest.mediaKind] }, - lastSuccessfulRealRun: sourceTemplate?.lastSuccessfulRealRun ?? canonicalReceipt ?? null, + lastSuccessfulRealRun: + privateQualification ?? sourceTemplate?.lastSuccessfulRealRun ?? canonicalReceipt ?? null, ...(showCanonicalEvidence ? { canonicalExecutionEvidence: { @@ -678,6 +723,7 @@ try { : {}), ...releaseEvidence, ...(previewFreeResearch ? { previewFreeResearch } : {}), + ...(privateQualification ? { privateQualification } : {}), ...(reviewedRetainedTemplate ? { reviewedRetainedTemplate } : {}), }; }) @@ -704,6 +750,7 @@ try { workflowCount: workflows.length, releaseEligibleWorkflowCount: workflows.filter((item) => item.releaseEligible).length, previewFreeResearchWorkflowCount: workflows.filter((item) => item.previewFreeResearch).length, + privateQualifiedWorkflowCount: workflows.filter((item) => item.privateQualification).length, missingTemplateEvidence: templates .filter((item) => item.missingReleaseEvidence.length) .map((item) => ({ id: item.id, missing: item.missingReleaseEvidence })), diff --git a/scripts/release-contract.test.mjs b/scripts/release-contract.test.mjs index 680d4b0a..42efa854 100644 --- a/scripts/release-contract.test.mjs +++ b/scripts/release-contract.test.mjs @@ -28,6 +28,8 @@ import { validateCanonicalWorkflowEvidence, } from './release-contract-core.mjs'; import { canonicalGraphIdentity, createRunProvenance, sha256Value } from './live-proof-provenance.mjs'; +import { readPrivateWorkflowQualification } from './private-workflow-qualification.mjs'; +import { validateNativeVariantOutput } from './native-variant-run-evidence.mjs'; import { galleryEvidenceCandidates, readReleaseRunProvenance } from './release-evidence-paths.mjs'; import { selectCanonicalWorkflowVariantTemplates, @@ -139,6 +141,137 @@ test('verified standalone model execution remains distinct from a reviewed exact } }); +test('the withheld-preview lane requires the reviewed policy and retained native evidence', async () => { + const backendRoot = mkdtempSync(join(tmpdir(), 'modiff-private-qualification-')); + const repoId = 'ACE-Step/ACE-Step-v1.5-chinese-new-year-LoRA'; + const revision = 'a'.repeat(40); + const manifest = { + id: 'AceStepAudioPipeline:text_to_audio:ace_step_chinese_new_year_lora', + sourceTemplateId: 'ace_step_chinese_new_year_lora', + requiredArtifacts: [repoId, 'Runware/acestep-v15-turbo-diffusers'], + }; + const canonicalHash = `sha256:workflow-graph-v1:${'d'.repeat(64)}`; + const review = { + workflowId: manifest.id, + sourceTemplateId: manifest.sourceTemplateId, + canonicalWorkflowHash: canonicalHash, + scope: 'research_academic_only', + preview: 'withheld', + redistributionAuthorized: false, + modelSet: [ + { repoId, revision }, + { repoId: manifest.requiredArtifacts[1], revision: 'b'.repeat(40) }, + ], + outputSha256: 'c'.repeat(64), + evidence: { sha256: 'e'.repeat(64), bytes: 1000 }, + }; + const policy = { + id: 'ace-step-chinese-new-year-research-academic-only', + useScope: review.scope, + repository: repoId, + reviewedRevision: revision, + acknowledgementRequired: true, + }; + const usagePolicy = (candidate) => (candidate === repoId ? policy : null); + const args = { backendRoot, manifest, canonicalHash, review, usagePolicy }; + try { + const privateQualification = await readPrivateWorkflowQualification(args); + assert.equal(privateQualification, null); + assert.equal( + assessWorkflowReleaseEvidence({ + modelType: 'AceStepAudioPipeline', + exactModelRevision: `${repoId}@${revision}`, + privateQualification, + }).releaseEligible, + false, + ); + for (const change of [ + { preview: 'published' }, + { redistributionAuthorized: true }, + { scope: 'personal_noncommercial' }, + { canonicalWorkflowHash: 'another-graph' }, + { modelSet: [{ repoId, revision }] }, + ]) { + await assert.rejects(readPrivateWorkflowQualification({ ...args, review: { ...review, ...change } })); + } + await assert.rejects(readPrivateWorkflowQualification({ ...args, usagePolicy: () => null })); + await assert.rejects( + readPrivateWorkflowQualification({ + ...args, + usagePolicy: () => ({ ...policy, reviewedRevision: 'f'.repeat(40) }), + }), + ); + } finally { + rmdirSync(backendRoot); + } +}); + +test('server-only private media checks accept missing UI context only in that evidence lane', () => { + const bytes = Buffer.from('byte-locked fixture'); + const sha256 = createHash('sha256').update(bytes).digest('hex'); + const runtimeFingerprint = { fingerprint: 'test-runtime-fingerprint' }; + const task = { task_id: 'task-fixture', runtimeFingerprint }; + const backendPath = '@data/studio/outputs/private-fixture.wav'; + const mediaHash = `sha256:bytes:${sha256}`; + const item = { + index: 0, + backendPath, + taskId: task.task_id, + attemptIndex: 0, + clientRunId: null, + runInputHash: null, + displayType: 'audio', + contentType: 'audio/x-wav', + mediaHash, + byteSize: bytes.length, + }; + const output = { + mediaItems: [item], + mediaHash, + nodeId: 'audio-output', + mediaCollectionHash: 'test-collection', + backendProvenance: { + source: 'backend-record', + backendExecutionId: task.task_id, + clientRunId: null, + runInputHash: null, + workflowTabId: null, + mediaCollectionHash: 'test-collection', + attemptIndex: 0, + nodeId: 'audio-output', + fieldKey: 'preview', + runtimeFingerprint: runtimeFingerprint.fingerprint, + mediaPath: backendPath, + mediaHash, + mediaItems: [item], + }, + }; + const args = { + output, + outputRef: { backendPath, mediaType: 'audio', file: { sha256 } }, + task, + bytes, + displayType: 'audio', + contentType: 'audio/x-wav', + }; + assert.throws(() => validateNativeVariantOutput(args)); + assert.deepEqual(validateNativeVariantOutput({ ...args, backendOnly: true }), item); + assert.throws(() => + validateNativeVariantOutput({ + ...args, + backendOnly: true, + output: { ...output, clientRunId: 'unrelated-ui-run' }, + }), + ); + assert.throws(() => + validateNativeVariantOutput({ + ...args, + backendOnly: true, + outputRef: { ...args.outputRef, file: { sha256: 'a'.repeat(64) } }, + }), + ); +}); + test('preview-free research qualification binds the reviewed recipe and the validated private output', () => { const id = 'DreamLitePipeline:edit_image'; const sourceTemplateId = 'task-template:dreamlite-base:edit-image:v1'; From a1a1e1ffe6b3b9f0d26d2baf685f4d192dc33302 Mon Sep 17 00:00:00 2001 From: Sourav Das Date: Thu, 26 Nov 2026 20:02:14 +0530 Subject: [PATCH 410/440] Pair client CI with the saved-recipe loader contract --- .github/workflows/ci.yml | 5 ++--- README.md | 8 ++++---- scripts/retained-gallery-templates.test.mjs | 3 ++- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 6d478081..79444b15 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -32,8 +32,7 @@ jobs: uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4 with: repository: sdevil7th/MoDiff - # Pair the visual stage catalog and custom action search metadata. - ref: 2a47c734f037db7ce91f0570aecfd1a6e5909c0a + ref: 70fe2b8576d41ccc1efa1ac478c9899fb179a951 path: MoDiff persist-credentials: false - name: Verify the pinned backend supports native setup @@ -89,7 +88,7 @@ jobs: with: repository: sdevil7th/MoDiff # Match the immutable backend revision in the Client quality job. - ref: 2a47c734f037db7ce91f0570aecfd1a6e5909c0a + ref: 70fe2b8576d41ccc1efa1ac478c9899fb179a951 path: MoDiff persist-credentials: false - name: Verify the pinned backend supports native setup diff --git a/README.md b/README.md index 77df1381..1e0ee774 100644 --- a/README.md +++ b/README.md @@ -85,11 +85,11 @@ application source pair is: | MoDiff | `1239d1cecd12a7318eb263ca17c34d4fc0445d14` | | MoDiff-client | `c561a01395044fd71c1918e95fb9e9709d8e7601` | -CI backend contract: `2a47c734f037db7ce91f0570aecfd1a6e5909c0a`. +CI backend contract: `70fe2b8576d41ccc1efa1ac478c9899fb179a951`. -Both CI jobs use this immutable backend revision. It includes shared video -stages, conditional reference requirements, the scoped Linux shared-memory LTX -Auto loading fix and Run recovery. Its hardware coverage is recorded separately. +Both CI jobs use this immutable backend revision. It includes the weight-loading +controls that the client verifies when it opens saved recipes. Hardware coverage +is recorded separately. The 3 November Linux video testing deployment used backend `496f3aed56ce1c6a868549df310c68e765712ce3` and client diff --git a/scripts/retained-gallery-templates.test.mjs b/scripts/retained-gallery-templates.test.mjs index d42e5770..bc1d1f72 100644 --- a/scripts/retained-gallery-templates.test.mjs +++ b/scripts/retained-gallery-templates.test.mjs @@ -801,7 +801,8 @@ test('fresh Expert recipes prepare with current backend specs and without a gene // Verify the fresh graph uses the same defaults before comparing the // remaining fields against the archived recipe. const model = comparable.nodes[binding.nodes.transformersTextModel].params; - assert.equal(model.weight_loading_mode.value, 'cpu'); + assert.equal(model.weight_loading_mode?.value, 'cpu', 'The fresh text loader defaults to CPU weight loading'); + assert.equal(model.quantization_mode?.value, 'none', 'The fresh text loader defaults to unquantized weights'); delete model.weight_loading_mode; delete model.quantization_mode; } From 8cbe6962ac0ce270f19a2936b05ff71e2b4b595d Mon Sep 17 00:00:00 2001 From: Sourav Das Date: Thu, 26 Nov 2026 20:04:07 +0530 Subject: [PATCH 411/440] Enforce private preview holds without operator run files --- docs/release-preview-scope.md | 3 ++ scripts/release-contract.mjs | 19 +++++---- scripts/template-asset-release-contract.mjs | 42 ++++++++++++++++++- .../template-asset-release-contract.test.mjs | 37 +++++++++++++++- 4 files changed, 90 insertions(+), 11 deletions(-) diff --git a/docs/release-preview-scope.md b/docs/release-preview-scope.md index de69cda5..3826ee3d 100644 --- a/docs/release-preview-scope.md +++ b/docs/release-preview-scope.md @@ -67,5 +67,8 @@ decoded media to match their recorded hashes. The two adapter workflows must match their current executable exports. FramePack requires the verified original recipe and the approved variant with both reference images. The registry carries hashes, and the private media and run records stay outside Git and the Gallery. +Both the asset and workflow release checks verify that these templates expose +no Gallery previews and that the public asset list contains none of their exact +output bytes under any filename. These checks also run on a clean checkout. This server-side evidence establishes execution and delivery. Browser interaction and hardware qualification use their own checks. diff --git a/scripts/release-contract.mjs b/scripts/release-contract.mjs index cb889911..068c530f 100644 --- a/scripts/release-contract.mjs +++ b/scripts/release-contract.mjs @@ -28,6 +28,7 @@ import { readReviewedBoundTemplateAssociations } from './retained-template-assoc import { createRetainedGalleryReleaseReader, retainedFullGraphImageResource } from './retained-gallery-release.mjs'; import { canonicalJsonHash } from './canonical-json.mjs'; import { readPrivateWorkflowQualification } from './private-workflow-qualification.mjs'; +import { readPrivateGalleryReviews } from './template-asset-release-contract.mjs'; const SCRIPT_DIR = dirname(fileURLToPath(import.meta.url)); const CLIENT_ROOT = resolve(SCRIPT_DIR, '..'); @@ -42,7 +43,6 @@ const TEMPLATE_RECEIPT_REGISTRY_PATH = join( ); const RETAINED_TEMPLATE_REVIEW_ROOT = join(BACKEND_ROOT, 'data/qualification/release/retained-template-review'); const PREVIEW_FREE_REVIEW_PATH = join(CLIENT_ROOT, 'config/preview-free-research-workflows.v1.json'); -const PRIVATE_QUALIFICATION_PATH = join(CLIENT_ROOT, 'config/private-workflow-qualification.v1.json'); const CHECK = process.argv.includes('--check'); function readJson(path) { @@ -594,16 +594,19 @@ try { }; }).sort((left, right) => left.id.localeCompare(right.id)); - const privateReviewRegistry = readJson(PRIVATE_QUALIFICATION_PATH); - if (privateReviewRegistry.schemaVersion !== 1 || !Array.isArray(privateReviewRegistry.reviews)) { - throw new Error('Invalid private workflow review registry.'); - } - const reviewedPrivateWorkflows = privateReviewRegistry.reviews.map((review) => { + const privateReviews = readPrivateGalleryReviews( + CLIENT_ROOT, + gallerySource, + readJson(join(CLIENT_ROOT, 'config', 'template-assets.v1.json')), + gallery, + ); + const reviewedPrivateWorkflows = privateReviews.map((review) => { const record = workflowRecords.find(({ manifest }) => manifest.id === review.workflowId); if (!record) throw new Error(`Missing private workflow source: ${review.workflowId}`); return { review, ...record }; }); - if (new Set(reviewedPrivateWorkflows.map(({ manifest }) => manifest.id)).size !== reviewedPrivateWorkflows.length) { + const privateWorkflowIds = new Set(privateReviews.map(({ workflowId }) => workflowId)); + if (privateWorkflowIds.size !== privateReviews.length) { throw new Error('Private workflow reviews contain duplicate workflow IDs.'); } const canonicalPrivateGraphs = await exportCanonicalWorkflowGraphs( @@ -651,7 +654,7 @@ try { ? canonicalWorkflowDeclaredModelRevision(manifest, graph, authoring, artifact) : null; const privateQualification = privateQualifications.get(manifest.id); - if (privateQualification && sourceTemplate?.reviewedExampleReleaseApproved) { + if (privateWorkflowIds.has(manifest.id) && sourceTemplate?.reviewedExampleReleaseApproved) { throw new Error(`Private workflow must withhold its Gallery preview: ${manifest.id}`); } const exactModelRevision = diff --git a/scripts/template-asset-release-contract.mjs b/scripts/template-asset-release-contract.mjs index a4db9825..c41fd8db 100644 --- a/scripts/template-asset-release-contract.mjs +++ b/scripts/template-asset-release-contract.mjs @@ -19,6 +19,43 @@ function readJson(path, label) { } } +// The authoring manifest can retain unavailable historical files. Only paths +// included in the public subset can expose a preview, including a renamed copy. +export function readPrivateGalleryReviews(clientRoot, source, manifest, gallery) { + const registry = readJson( + join(clientRoot, 'config', 'private-workflow-qualification.v1.json'), + 'Private workflow review registry', + ); + if (registry.schemaVersion !== 1 || !Array.isArray(registry.reviews)) { + throw new Error('Invalid private workflow review registry.'); + } + const privateHashes = new Set(); + const privateTemplates = new Set(); + for (const review of registry.reviews) { + if (!/^[a-f0-9]{64}$/u.test(review.outputSha256) || !review.sourceTemplateId) { + throw new Error('Invalid private workflow preview identity.'); + } + privateHashes.add(`sha256:bytes:${review.outputSha256}`); + privateTemplates.add(review.sourceTemplateId); + } + const unavailable = new Set(source.unavailableAssets ?? []); + for (const { path, sha256 } of manifest.assets) { + if (privateHashes.has(sha256) && !unavailable.has(path)) { + throw new Error(`Private workflow output is listed as a public Gallery file: ${path}`); + } + } + for (const entry of gallery.examples) { + if (!privateTemplates.has(entry.templateId)) continue; + for (const key of ['outputPath', 'thumbnailPath', 'cardPreviewPath', 'beforePath', 'afterPath', 'posterPath']) { + const path = entry[key]?.replace(/^\/+/, ''); + if (path && !unavailable.has(path)) { + throw new Error(`Private workflow preview is available in the Gallery: ${entry.templateId} (${key})`); + } + } + } + return registry.reviews; +} + export function verifyRemoteTemplateAssetBuild(distRoot, expectedSourceValue) { if (!existsSync(distRoot) || !statSync(distRoot).isDirectory()) { throw new Error(`Release build directory is missing: ${distRoot}`); @@ -60,7 +97,10 @@ export function validateTemplateAssetReleaseCheckoutSource(clientRoot = CLIENT_R 'Checked-in Template Gallery asset source', ); const manifest = readJson(join(clientRoot, 'config', 'template-assets.v1.json'), 'Template Gallery asset manifest'); - return validateTemplateAssetRelease(source, manifest); + const validatedSource = validateTemplateAssetRelease(source, manifest); + const gallery = readJson(join(clientRoot, 'public', 'template-gallery', 'manifest.json'), 'Template Gallery'); + readPrivateGalleryReviews(clientRoot, validatedSource, manifest, gallery); + return validatedSource; } export function verifyTemplateAssetReleaseCheckout(clientRoot = CLIENT_ROOT, distRoot = join(clientRoot, 'dist')) { diff --git a/scripts/template-asset-release-contract.test.mjs b/scripts/template-asset-release-contract.test.mjs index 7fd8804b..63c443fd 100644 --- a/scripts/template-asset-release-contract.test.mjs +++ b/scripts/template-asset-release-contract.test.mjs @@ -5,6 +5,7 @@ import { join } from 'node:path'; import test from 'node:test'; import { TEMPLATE_ASSET_BUILD_IDENTITY_PATH, + validateTemplateAssetReleaseCheckoutSource, verifyRemoteTemplateAssetBuild, verifyTemplateAssetReleaseCheckout, } from './template-asset-release-contract.mjs'; @@ -206,17 +207,49 @@ test('remote build inspection rejects missing and bundled Gallery payloads', (co assert.throws(() => verifyRemoteTemplateAssetBuild(distRoot, remoteSource), /contains a local Gallery payload/); }); -test('release checkout verification reads the checked source, manifest, and fresh build together', (context) => { +test('checked-in Gallery metadata withholds the restricted workflow previews', () => { + assert.equal(validateTemplateAssetReleaseCheckoutSource().mode, 'huggingface'); +}); + +test('release checkout rejects public private-output aliases and template previews without operator evidence', (context) => { const root = mkdtempSync(join(tmpdir(), 'modiff-template-checkout-')); context.after(() => rmSync(root, { recursive: true, force: true })); mkdirSync(join(root, 'src', 'studio'), { recursive: true }); mkdirSync(join(root, 'config')); + mkdirSync(join(root, 'public', 'template-gallery'), { recursive: true }); mkdirSync(join(root, 'dist')); writeFileSync(join(root, 'src', 'studio', 'templateAssetSource.json'), JSON.stringify(remoteSource)); - writeFileSync(join(root, 'config', 'template-assets.v1.json'), JSON.stringify(readyManifest)); + const restrictedHash = 'd'.repeat(64); + const reviews = [{ sourceTemplateId: 'private-recipe', outputSha256: restrictedHash }]; + writeFileSync( + join(root, 'config', 'private-workflow-qualification.v1.json'), + JSON.stringify({ schemaVersion: 1, reviews }), + ); + const galleryPath = join(root, 'public', 'template-gallery', 'manifest.json'); + writeFileSync(galleryPath, JSON.stringify({ examples: [] })); + const manifestPath = join(root, 'config', 'template-assets.v1.json'); + writeFileSync(manifestPath, JSON.stringify({ ...readyManifest, assets: [] })); writeFileSync(join(root, 'dist', 'index.html'), ''); mkdirSync(join(root, 'dist', 'assets')); writeFileSync(join(root, 'dist', TEMPLATE_ASSET_BUILD_IDENTITY_PATH), serializeTemplateAssetSource(remoteSource)); assert.equal(verifyTemplateAssetReleaseCheckout(root).assetSetId, assetSetId); + const alias = 'template-gallery/unrelated-title.mp4'; + writeFileSync( + manifestPath, + JSON.stringify({ ...readyManifest, assets: [{ path: alias, sha256: `sha256:bytes:${restrictedHash}` }] }), + ); + assert.throws(() => verifyTemplateAssetReleaseCheckout(root), /private workflow output/i); + + writeFileSync( + manifestPath, + JSON.stringify({ ...readyManifest, assets: [{ path: alias, sha256: `sha256:bytes:${'e'.repeat(64)}` }] }), + ); + writeFileSync(galleryPath, JSON.stringify({ examples: [{ templateId: 'private-recipe', posterPath: `/${alias}` }] })); + assert.throws(() => verifyTemplateAssetReleaseCheckout(root), /private workflow preview/i); + + const subsetSource = { ...remoteSource, completeAssetSetId: assetSetId, unavailableAssets: [alias] }; + writeFileSync(join(root, 'src', 'studio', 'templateAssetSource.json'), JSON.stringify(subsetSource)); + writeFileSync(join(root, 'dist', TEMPLATE_ASSET_BUILD_IDENTITY_PATH), serializeTemplateAssetSource(subsetSource)); + assert.equal(verifyTemplateAssetReleaseCheckout(root).assetSetId, assetSetId); }); From 442f05d5058f2c8d3113bed3429b278be731ed75 Mon Sep 17 00:00:00 2001 From: Sourav Das Date: Thu, 26 Nov 2026 20:13:18 +0530 Subject: [PATCH 412/440] Keep the startup recovery dialog above the empty workflow launcher --- docs/modiff-client-architecture.md | 3 ++ src/App.tsx | 2 +- tests/e2e/studio-mocked/studio-mocked.spec.ts | 28 +++++++++++++++---- 3 files changed, 27 insertions(+), 6 deletions(-) diff --git a/docs/modiff-client-architecture.md b/docs/modiff-client-architecture.md index d5d29b68..59d304cb 100644 --- a/docs/modiff-client-architecture.md +++ b/docs/modiff-client-architecture.md @@ -108,6 +108,9 @@ document. If that document changes while recovery is pending, automatic navigati is cancelled. The activity shelf still reports a running task and opens it on explicit selection; a fresh empty session can recover its snapshot. Recovery must not mutate the running graph or steal the user's editing tab. +The empty-canvas workflow launcher opens after startup completes. If discovery +fails, the startup dialog owns keyboard and pointer input until the user retries +or dismisses the error and opens a fresh workflow. Workflow snapshots and portable packages may omit the viewport. Import and restore retain the current valid camera when it is absent or rejected by the diff --git a/src/App.tsx b/src/App.tsx index d8dfa90e..338cdb2f 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -550,7 +550,7 @@ export default function App() {
- {workflowCanvasHydrated && nodeCount === 0 && !launcherDismissed && ( + {startupComplete && workflowCanvasHydrated && nodeCount === 0 && !launcherDismissed && ( diff --git a/tests/e2e/studio-mocked/studio-mocked.spec.ts b/tests/e2e/studio-mocked/studio-mocked.spec.ts index f2e5255f..61e800f3 100644 --- a/tests/e2e/studio-mocked/studio-mocked.spec.ts +++ b/tests/e2e/studio-mocked/studio-mocked.spec.ts @@ -2902,6 +2902,9 @@ test('My workflows opens a closed saved document without rewriting its backend r }) => { const workflowId = 'library-open-no-echo-regression'; const fixture = await prepareRestorationStartup(page, workflowId); + // Allow lazy startup and the dialogs' animation frames to complete during + // ordinary user gestures. Explicit clock advances below still cover autosave. + await page.clock.resume(); await page.route('**/workflows**', async (route) => { if (route.request().method() === 'GET' && new URL(route.request().url()).pathname === '/workflows') { await route.fulfill({ json: { workflows: [fixture.getBackend()] } }); @@ -2911,7 +2914,7 @@ test('My workflows opens a closed saved document without rewriting its backend r }); await page.goto(FRONTEND_URL, { waitUntil: 'domcontentloaded' }); await fixture.waitForCanvas(); - await page.clock.runFor(1200); + await expect(page.getByTestId('startup-workspace-gate')).toHaveCount(0, { timeout: 30_000 }); await page.getByRole('button', { name: 'Close Disposable restoration regression', exact: true }).click(); await page.clock.runFor(1200); await page.reload({ waitUntil: 'domcontentloaded' }); @@ -21280,6 +21283,7 @@ test('fresh Qwen template uses ordinary native stages without legacy field refre await expect(page.getByTestId('studio-panel')).toBeVisible(); await openTemplateBrowser(page); await page.getByTestId('template-browser-category-all').click(); + await page.getByTestId('template-browser-search').fill('Product Concept'); await page.getByTestId('template-browser-use-qwen_low_vram_product_concept').click(); await expect(page.getByTestId('template-detail-qwen_low_vram_product_concept')).toBeVisible(); await page.getByTestId('template-browser-create-qwen_low_vram_product_concept').click(); @@ -25205,8 +25209,10 @@ test('a startup load error closes into a new empty workflow without deleting the const startupGate = page.getByTestId('startup-workspace-gate'); await expect(startupGate).toContainText('Could not finish loading', { timeout: 30_000 }); + await expect(page.getByTestId('task-launcher')).toHaveCount(0); await startupGate.getByLabel('Close loading error and start with an empty workflow').click(); await expect(startupGate).toHaveCount(0); + await expect(page.getByTestId('task-launcher')).toBeVisible(); await page.waitForFunction(() => Boolean(window.__MODIFF_E2E__), null, { timeout: 30_000 }); const state = await page.evaluate(() => window.__MODIFF_E2E__!.getState()); expect(state.flow.visibleNodeCount).toBe(0); @@ -37053,6 +37059,19 @@ test('full image template cards, details, artifact search and Model Manager focu mockInstalledRepos.clear(); await ensureFrontend(); await installMockRoutes(page); + const manifest = JSON.parse( + await fs.readFile(path.join(CLIENT_ROOT, 'public/template-gallery/manifest.json'), 'utf8'), + ); + await page.route('**/template-gallery/manifest.json*', (route) => route.fulfill({ json: manifest })); + // The current Gallery advertises generated images for both variants. Serve + // deterministic pixels at those exact URLs so this UI check also works offline. + const previewPixel = Buffer.from( + 'iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mP8/x8AAwMCAO+aOCkAAAAASUVORK5CYII=', + 'base64', + ); + await page.route(/\/template-gallery\/(?:cosmos3_super_text_to_image|flux2_dev_text_to_image)\.webp$/u, (route) => + route.fulfill({ body: previewPixel, contentType: 'image/png' }), + ); const fixture = await imageTemplateSchemas(); await page.route('**/model_capabilities**', (route) => route.fulfill({ status: 200, json: fixture.publicPayload })); await page.route('**/nodes**', (route) => @@ -37081,10 +37100,9 @@ test('full image template cards, details, artifact search and Model Manager focu await browser.getByTestId('template-browser-search').fill(repo); const card = browser.getByTestId(`template-browser-card-${id}`); await expect(card.getByText(`${label} · Text to image`, { exact: true })).toBeVisible(); - const poster = `/assets/${id === 'flux2_dev_text_to_image' ? 'flux2-dev' : 'cosmos3-super'}.card-poster.png`; - const artwork = card.getByRole('img', { name: 'Template preview', exact: true }); - await expect(artwork).toHaveAttribute('src', poster); - await expect.poll(() => artwork.evaluate((image: HTMLImageElement) => image.naturalWidth)).toBe(1536); + const artwork = card.getByRole('img', { name: 'Preview', exact: true }); + await expect(artwork).toHaveAttribute('src', new RegExp(`/template-gallery/${id}\\.webp$`)); + await expect.poll(() => artwork.evaluate((image: HTMLImageElement) => image.naturalWidth)).toBe(1); await card.getByTestId(`template-browser-use-${id}`).click(); await expect(browser.getByText(`${label} · Text to image`, { exact: true })).toHaveCount(2); } From dcda9130b1bb5b6c713e78a406eb6b24f5b53c87 Mon Sep 17 00:00:00 2001 From: Sourav Das Date: Thu, 26 Nov 2026 20:17:11 +0530 Subject: [PATCH 413/440] Drive the paused browser clock after standalone startup metadata arrives --- tests/e2e/studio-mocked/studio-mocked.spec.ts | 20 +++++++++++++++---- 1 file changed, 16 insertions(+), 4 deletions(-) diff --git a/tests/e2e/studio-mocked/studio-mocked.spec.ts b/tests/e2e/studio-mocked/studio-mocked.spec.ts index 61e800f3..1e24c85d 100644 --- a/tests/e2e/studio-mocked/studio-mocked.spec.ts +++ b/tests/e2e/studio-mocked/studio-mocked.spec.ts @@ -36973,9 +36973,22 @@ test('standalone startup awaits owned metadata and fresh workflow reload retains }, }); }); + const waitForStandaloneLauncher = async () => { + // Keep the fallback timer paused until this page owns the runtime metadata. + // The lazy launcher can then commit on the next animation frames. + await expect + .poll(() => page.evaluate(() => window.__MODIFF_E2E__?.getState().nodes.discoveryRequests.runtime.status)) + .toBe('success'); + await expect(page.getByTestId('startup-workspace-gate')).toHaveCount(0); + await expect + .poll(async () => { + await page.clock.runFor(250); + return page.getByTestId('task-launcher').isVisible(); + }) + .toBe(true); + }; await page.goto(FRONTEND_URL, { waitUntil: 'domcontentloaded' }); - await expect(page.getByTestId('task-launcher')).toBeVisible(); - await expect(page.getByTestId('startup-workspace-gate')).toHaveCount(0); + await waitForStandaloneLauncher(); await page.clock.runFor(1200); const id = await page.evaluate(() => window.__MODIFF_E2E__!.getState().studio.activeWorkflowTabId!); await expect.poll(() => documents.filter((x) => x.id === id).length).toBeGreaterThan(0); @@ -36984,8 +36997,7 @@ test('standalone startup awaits owned metadata and fresh workflow reload retains expect(queueRequests).toBe(0); const before = documents.length; await page.reload({ waitUntil: 'domcontentloaded' }); - await expect(page.getByTestId('task-launcher')).toBeVisible(); - await expect(page.getByTestId('startup-workspace-gate')).toHaveCount(0); + await waitForStandaloneLauncher(); await page.clock.runFor(1200); await expect.poll(() => documents.slice(before).filter((x) => x.id === id).length).toBeGreaterThan(0); expect(documents.slice(before).find((x) => x.id === id)!.method).toBe('GET'); From 9a3369b72f6929a3ad5ee1ddba276356e322e9e1 Mon Sep 17 00:00:00 2001 From: Sourav Das Date: Thu, 26 Nov 2026 20:20:24 +0530 Subject: [PATCH 414/440] Test the client against the bundled backend PR revision --- .github/workflows/ci.yml | 4 ++-- README.md | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 79444b15..5206b1f6 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -32,7 +32,7 @@ jobs: uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4 with: repository: sdevil7th/MoDiff - ref: 70fe2b8576d41ccc1efa1ac478c9899fb179a951 + ref: 61dd5a3bdb95833180c67fdb6af98a8599b0586b path: MoDiff persist-credentials: false - name: Verify the pinned backend supports native setup @@ -88,7 +88,7 @@ jobs: with: repository: sdevil7th/MoDiff # Match the immutable backend revision in the Client quality job. - ref: 70fe2b8576d41ccc1efa1ac478c9899fb179a951 + ref: 61dd5a3bdb95833180c67fdb6af98a8599b0586b path: MoDiff persist-credentials: false - name: Verify the pinned backend supports native setup diff --git a/README.md b/README.md index 1e0ee774..c741aee0 100644 --- a/README.md +++ b/README.md @@ -85,7 +85,7 @@ application source pair is: | MoDiff | `1239d1cecd12a7318eb263ca17c34d4fc0445d14` | | MoDiff-client | `c561a01395044fd71c1918e95fb9e9709d8e7601` | -CI backend contract: `70fe2b8576d41ccc1efa1ac478c9899fb179a951`. +CI backend contract: `61dd5a3bdb95833180c67fdb6af98a8599b0586b`. Both CI jobs use this immutable backend revision. It includes the weight-loading controls that the client verifies when it opens saved recipes. Hardware coverage From 7f4d533141d2db65a7ef3cd02e1f83bbdb4bf735 Mon Sep 17 00:00:00 2001 From: Sourav Das Date: Fri, 27 Nov 2026 16:51:42 +0530 Subject: [PATCH 415/440] Simplify task discovery, canvas stages and result navigation --- .github/workflows/ci.yml | 4 +- README.md | 6 +- docs/developer-first-node-ux.md | 2 +- docs/studio-user-flow.md | 27 + docs/template-gallery-assets.md | 10 +- docs/workflow-authoring-ux.md | 8 + scripts/bundle-budget.mjs | 9 + scripts/encoding-node-presentation.test.mjs | 66 +- scripts/flow-graph-mutations.test.mjs | 33 + .../graph-visible-output-readiness.test.mjs | 4 +- ...e-full-native-template-candidates.test.mjs | 18 + scripts/modiff-template.test.mjs | 12 + scripts/node-presentation.test.mjs | 30 + scripts/operation-authoring.test.mjs | 7 + scripts/run-activity.test.mjs | 38 +- scripts/runtime-resources.test.mjs | 24 + scripts/template-showcases.test.mjs | 9 + scripts/workflow-document-origin.test.mjs | 22 +- src/App.tsx | 150 +++- src/components/CreateUserBlockDialog.tsx | 189 +++-- src/components/CustomExtensionsPanel.tsx | 2 +- src/components/DeveloperWorkflowLauncher.tsx | 61 +- src/components/EncodingNode.tsx | 41 +- src/components/ExtensionSourceForm.tsx | 44 +- src/components/GraphList.tsx | 65 +- src/components/ModelManagerDialog.tsx | 135 +++- src/components/OperationModelPicker.tsx | 16 +- src/components/OperationOwnerControls.tsx | 21 +- src/components/OutputGalleryPanel.tsx | 198 +++--- src/components/RuntimeOptimizationsCard.tsx | 5 +- src/components/RuntimeResourceMonitor.tsx | 82 ++- src/components/StudioCommandPalette.tsx | 60 +- src/components/StudioPanel.tsx | 34 +- src/components/TemplateBrowserDialog.tsx | 400 ++++++----- src/components/TopBar.tsx | 666 ++++++++++-------- src/components/Workflow.tsx | 55 +- src/components/WorkflowEntryActions.tsx | 4 +- src/components/WorkflowFileImportButton.tsx | 45 ++ src/components/WorkflowModelInventoryRow.tsx | 4 +- src/components/WorkflowResourcePanelV2.tsx | 3 +- src/components/WorkflowSetupChecklist.tsx | 2 +- src/fields/ModelSelectField.tsx | 2 +- src/fields/SelectField.tsx | 14 +- src/stores/useSettingsStore.ts | 18 +- src/stores/useStudioStore.ts | 3 +- src/studio/modelProfiles.ts | 23 +- src/studio/optionalRuntimes.ts | 24 +- src/studio/outputContracts.ts | 8 + src/studio/runActivity.ts | 6 +- src/studio/runReadiness.ts | 7 + src/studio/runtimeOptions.ts | 16 + src/studio/runtimeResources.ts | 68 +- src/studio/templateExactness.ts | 17 +- src/studio/templateReadiness.ts | 34 +- src/studio/types.ts | 1 + src/studio/userBlockCreationV2.ts | 74 ++ src/ui/useCompactWorkspace.ts | 17 + src/workflow/encodingNodePresentation.ts | 38 +- src/workflow/encodingOptionalInput.ts | 3 + src/workflow/readWorkflowJson.ts | 28 + src/workflow/useWorkflowDrop.ts | 42 +- src/workflow/workflowChoices.ts | 3 + src/workflow/workflowModelInventory.ts | 23 + src/workflow/workflowTaskBrowser.ts | 40 +- tests/e2e/live-backend/dialog-layout.spec.ts | 5 +- tests/e2e/live-backend/node-ux-output.spec.ts | 2 + tests/e2e/live-backend/node-ux.spec.ts | 2 + tests/e2e/studio-mocked/studio-mocked.spec.ts | 346 +++++++-- 68 files changed, 2483 insertions(+), 992 deletions(-) create mode 100644 src/components/WorkflowFileImportButton.tsx create mode 100644 src/ui/useCompactWorkspace.ts create mode 100644 src/workflow/readWorkflowJson.ts diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 5206b1f6..1a38f1c2 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -32,7 +32,7 @@ jobs: uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4 with: repository: sdevil7th/MoDiff - ref: 61dd5a3bdb95833180c67fdb6af98a8599b0586b + ref: ae44ef9592b69f45d36fa01b25ad6d702d6cbda0 path: MoDiff persist-credentials: false - name: Verify the pinned backend supports native setup @@ -88,7 +88,7 @@ jobs: with: repository: sdevil7th/MoDiff # Match the immutable backend revision in the Client quality job. - ref: 61dd5a3bdb95833180c67fdb6af98a8599b0586b + ref: ae44ef9592b69f45d36fa01b25ad6d702d6cbda0 path: MoDiff persist-credentials: false - name: Verify the pinned backend supports native setup diff --git a/README.md b/README.md index c741aee0..8bb5242a 100644 --- a/README.md +++ b/README.md @@ -85,11 +85,11 @@ application source pair is: | MoDiff | `1239d1cecd12a7318eb263ca17c34d4fc0445d14` | | MoDiff-client | `c561a01395044fd71c1918e95fb9e9709d8e7601` | -CI backend contract: `61dd5a3bdb95833180c67fdb6af98a8599b0586b`. +CI backend contract: `ae44ef9592b69f45d36fa01b25ad6d702d6cbda0`. Both CI jobs use this immutable backend revision. It includes the weight-loading -controls that the client verifies when it opens saved recipes. Hardware coverage -is recorded separately. +controls for saved recipes and the model readiness and storage fields used by the +client. Hardware coverage is recorded separately. The 3 November Linux video testing deployment used backend `496f3aed56ce1c6a868549df310c68e765712ce3` and client diff --git a/docs/developer-first-node-ux.md b/docs/developer-first-node-ux.md index cfe36994..6816e953 100644 --- a/docs/developer-first-node-ux.md +++ b/docs/developer-first-node-ux.md @@ -25,7 +25,7 @@ Add/Load/Reload authorizes trusted Python in one action. Validation and dependen errors are visible; dependencies are never installed implicitly. This is not a sandbox or malware scanner. -Drop a structured `.py` file on the canvas, or use Choose Python file. A canvas +Drop a structured `.py` file on the canvas, or use **Choose Python file** and then **Add node**. Selecting a local file alone keeps it on the browser computer. A canvas drop inserts its node, or offers a dropdown when it declares several nodes. Dropping inside an expanded Block uses the existing Block adoption transaction. Undo removes the insertion, not installed source files. If the workflow changes diff --git a/docs/studio-user-flow.md b/docs/studio-user-flow.md index 81fe986b..5eee4185 100644 --- a/docs/studio-user-flow.md +++ b/docs/studio-user-flow.md @@ -484,3 +484,30 @@ This test avoids claiming real model support when only the UI is available. Use 14. Stop the dev processes with the repository stop script and confirm unrelated listeners are left untouched. For automated UI coverage, run `npm run check:ui`. It uses mocked backend routes and proves client behavior without downloading or executing a real model. + +The Models window separates local files from supported model variants. A metadata-only +or incomplete Hub snapshot stays visible for diagnosis. A verified selection confirms +the selected files; running the workflow also depends on its requirements. Search +accepts a repository, variant label, or task. The download view shows the cache +destination and available capacity when the server reports it. + +On shared-memory accelerators, Resource usage shows the accessible pool and dedicated +reservation separately. The compact gauge names the busiest measured resource. Storage +shows free space for model downloads, managed Studio outputs, and default disk offload. +Setup lists requirements for the inspected workflow first. Use **Show other runtimes** +to explore additional installations. + +### Reviewing a run and navigating the canvas + +Select a completed run in Queue or Session activity to see that run’s output. Use +**Open workflow** in the preview to inspect its stages. A result in Gallery has +a **Download** menu for the available file and recipe formats. **Result details** +opens its generation settings and provenance. Restoring a result uses its saved +workflow name when available. + +On a narrow screen, the canvas keeps its width as the libraries and workspace +open one at a time. **More toolbar actions** contains file, setup and export +controls. Use **Ctrl+K** (or **Command+K**), type a command and press Enter. +The arrow keys move through available commands. Keyboard users can jump to +the canvas from the first navigation link or resize a desktop panel by focusing +its separator and pressing the left or right arrow. diff --git a/docs/template-gallery-assets.md b/docs/template-gallery-assets.md index e6ab895c..02b9d9e8 100644 --- a/docs/template-gallery-assets.md +++ b/docs/template-gallery-assets.md @@ -8,10 +8,10 @@ Face token. Approved supplementary showcases are listed in `src/studio/templateShowcases.json`. Their exact media and redacted recipe/review records use this same immutable Dataset, asset inventory, per-file rights ledger and publication verifier. Each -entry binds both file hashes. A featured cover is labelled **Approved showcase · -separate recipe** and links the actual consumed prompt, ordered input identities, -model pins, controls and accepted limitations. It does not change template defaults, -`findManifestEntry`, current-template qualification or the original 89-case count. +entry binds both file hashes. Template cards use the current recipe’s approved preview, with a +placeholder when the manifest has no matching result. In a template’s detail +view, **Model showcase** opens the supplementary media and links its own consumed +prompt, ordered inputs, model pins, settings and accepted limitations. The MiniMax green-centre perfume showcase is an ordered-reference material edit; its blue-centre text-to-image source is separately registered. @@ -96,7 +96,7 @@ records whose media are withheld. Rights, media, provenance and review checks still apply. The default `npm run gallery:verify` continues to check the current recipes only. -The browser continues to label these outputs **Previous recipe example**. +The detail view links these outputs under **Previous recipe example**. Repository-relative weight filenames can resolve to their exact recorded Hub repository, but only the added revision field may be omitted from an older lock; weight hashes, filenames and every other setting remain binding. diff --git a/docs/workflow-authoring-ux.md b/docs/workflow-authoring-ux.md index e191d201..ef6d9f4f 100644 --- a/docs/workflow-authoring-ux.md +++ b/docs/workflow-authoring-ux.md @@ -504,3 +504,11 @@ Layers wire. A connected Layers socket stays visible. Undoing the removal or reconnecting the same supported model restores the authored settings. The editor applies the same presentation rules to older saved workflows and uses the current registry to check which model identities the Guider accepts. + +## Opening and inspecting a workflow + +New task starters fit the visible graph after its stages are measured. Use **Fit workflow in view** to see the whole graph, or select stages and use **Focus selected stages**. These actions move the canvas view and preserve your stage positions. + +An ordinary stage displays its working ports and wired outputs. **Show implementation ports** reveals available diagnostics, route state and guidance-layer settings. Connecting one keeps its socket visible when the other implementation ports are hidden. **Choose model** on Model Setup opens supported models for the current task. **Change model / task** in the same dialog previews compatible substitutions and the affected wires. Device selectors use the reported accelerator name alongside the exact runtime device ID when available. + +When creating a reusable Block, review the suggested inputs, outputs and editable settings under **Customize Block interface**. Existing external wires keep their ports. Other available ports or settings can be enabled before saving. In **Add custom node**, **Choose Python file** selects a file on your browser computer. **Add node** sends the selected file to the backend and enables it. Local paths entered under **Advanced options** refer to the backend machine. diff --git a/scripts/bundle-budget.mjs b/scripts/bundle-budget.mjs index 51e3bb01..790253f4 100644 --- a/scripts/bundle-budget.mjs +++ b/scripts/bundle-budget.mjs @@ -492,7 +492,11 @@ const SOURCE_LICENSES = new URL('../public/THIRD_PARTY_LICENSES.txt', import.met // Final direct-control and compact-tray corrections measure // 504492/682980/346033 largest/startup/deferred gzip bytes: the reviewed // migration ceilings below still pass with 8/12/304 bytes of headroom. +// Compared with the shipped bundle, accessible workspace drawers, shared stage controls, +// task discovery and hardware reporting add 3,504 gzip bytes to the largest startup chunk. +// Four entry chunks and the existing 64 KiB limit on each deferred chunk are preserved. const MAX_STARTUP_CHUNK_GZIP_BYTES = + 3504 + // The approved native Shap-E preview brings the largest chunk to 575069 gzip bytes. 631 + // SSD weight-loading validation adds 28 measured startup gzip bytes. @@ -816,7 +820,9 @@ const MAX_STARTUP_CHUNK_GZIP_BYTES = // Preserve the measured 384-byte selected-image authoring allowance above. // The same build measures 673359 aggregate startup bytes (+45 over the cap). // Keep 19 bytes of headroom; deferred limits and loading boundaries stay fixed. +// The same build measures 757,243 total startup bytes, up from 753,545. const MAX_STARTUP_GZIP_BYTES = + 3698 + // The Shap-E preview and its Gallery descriptor add 634 bytes of startup JavaScript. 634 + // The same change adds 27 overall startup gzip bytes. @@ -1199,7 +1205,10 @@ const MAX_DEFERRED_CHUNK_GZIP_BYTES = 64 * 1024; // only TemplateBrowserDialog has functional residue after build-URL normalization. // Startup code differs only in the three verified Dataset descriptor values. // Retain both startup caps, the independent 64 KiB chunk cap and prior headroom. +// Template previews, Gallery and setup stay deferred. Their aggregate moves from +// 357,530 to 361,565 bytes, including the shared workflow-file picker. const MAX_DEFERRED_GZIP_BYTES = + 4035 + // The native turntable comparison adds 129 bytes and keeps 41 bytes of headroom. 129 + // Stage discovery, action search and compatible mode changes (355589 -> 357408 gzip bytes). diff --git a/scripts/encoding-node-presentation.test.mjs b/scripts/encoding-node-presentation.test.mjs index 8efa5413..cc159ce0 100644 --- a/scripts/encoding-node-presentation.test.mjs +++ b/scripts/encoding-node-presentation.test.mjs @@ -23,21 +23,47 @@ after(async () => server?.close()); test('documentation sockets are presentation-only and connected/custom sockets survive', () => { const params = { - doc: { type: 'string', display: 'output', isConnected: false }, - connected_doc: { type: 'string', display: 'output', isConnected: true }, - custom: { type: 'string', display: 'output' }, + doc: { type: 'string', label: 'Doc' }, + wiredDoc: { type: 'string', label: 'My documentation', isConnected: true }, + route: { type: 'string' }, + optionalDoc: { type: 'str', label: 'Doc', fieldOptions: { encodingImplementationOutput: 'doc' } }, + requiredRoute: { type: 'route' }, + layers: { type: 'layers' }, + guidanceLayers: { type: 'layers' }, + custom: { type: 'string' }, + }; + const outputs = [ + ['doc', 'doc', 'text'], + ['wiredDoc', 'doc', 'guidance'], + ['route', 'route_state_out', 'text'], + ['layers', 'layers', 'text'], + ['guidanceLayers', 'layers', 'guidance'], + ['custom', 'custom', 'text'], + ].map(([portId, fieldOrPortId, nodeId]) => ({ portId, binding: { fieldOrPortId, nodeId } })); + const instance = { + effectiveGraph: { + nodes: [ + { nodeId: 'text', data: { label: 'Text Encoder' } }, + { nodeId: 'guidance', data: { operationAuthoring: { operation: { nodeType: 'guidance_layers' } } } }, + ], + }, + effectiveInterface: { + boundary: { + outputs, + inputs: [ + { portId: 'requiredRoute', binding: { fieldOrPortId: 'route_state_in', nodeId: 'text' }, required: true }, + ], + }, + }, }; - const ports = [ - { portId: 'doc', binding: { fieldOrPortId: 'doc' } }, - { portId: 'connected_doc', binding: { fieldOrPortId: 'doc' } }, - { portId: 'custom', binding: { fieldOrPortId: 'custom' } }, - ]; const before = structuredClone(params); - assert.deepEqual(Object.keys(presentation.encodingVisibleConnectors(params, ports)), [ - 'doc', - 'connected_doc', - 'custom', - ]); + const visible = presentation.encodingVisibleConnectors(params, instance); + assert.deepEqual(Object.keys(visible), ['wiredDoc', 'requiredRoute', 'layers', 'custom']); + assert.equal(visible.wiredDoc.label, 'My documentation'); + const advanced = presentation.encodingVisibleConnectors(params, instance, true); + assert.deepEqual(Object.keys(advanced), Object.keys(params)); + assert.equal(advanced.optionalDoc.label, 'Documentation · Image encoder'); + assert.equal(advanced.doc.label, 'Documentation · Text Encoder'); assert.deepEqual(params, before); }); @@ -143,3 +169,17 @@ test('a saved stage with an authored nested composition can still expand as a Bl true, ); }); + +test('GPU options use the physical runtime identity without changing the PyTorch key', async () => { + const { workflowDeviceLabel } = await server.ssrLoadModule('/src/studio/runtimeOptions.ts'); + const torch = { + cuda_devices: [ + { index: 0, name: 'Radeon 8060S', backend: 'hip' }, + { index: 1, name: 'NVIDIA A100', backend: 'cuda' }, + ], + }; + assert.equal(workflowDeviceLabel('cuda:0', 'cuda:0', torch), 'Radeon 8060S · ROCm (cuda:0)'); + assert.equal(workflowDeviceLabel('cuda:1', 'cuda:1', torch), 'NVIDIA A100 · CUDA (cuda:1)'); + assert.equal(workflowDeviceLabel('cuda:2', 'cuda:2', torch), 'cuda:2'); + assert.equal(workflowDeviceLabel('cpu', 'cpu', undefined), 'CPU'); +}); diff --git a/scripts/flow-graph-mutations.test.mjs b/scripts/flow-graph-mutations.test.mjs index 0b1655f2..4c25865f 100644 --- a/scripts/flow-graph-mutations.test.mjs +++ b/scripts/flow-graph-mutations.test.mjs @@ -1824,6 +1824,39 @@ test('native creation retains deliberately renamed interfaces as explicit contra ); }); +test('suggested new Block interface retains external wires, omits internal sockets, and survives save/reopen', async () => { + const creation = await server.ssrLoadModule('/src/studio/userBlockCreationV2.ts'); + const { draft } = await groupingFixture(false); + const suggested = creation.suggestNewBlockInterface(draft); + const block = { + ...draft.block, + inputs: draft.block.inputs.filter((p) => suggested.exposedInputIds.has(p.id)), + outputs: draft.block.outputs.filter((p) => suggested.exposedOutputIds.has(p.id)), + exposedParams: draft.block.exposedParams.filter((p) => suggested.exposedParamIds.has(p.id)), + }; + assert.ok(block.outputs.length < draft.block.outputs.length, 'the internally consumed model need not be exposed'); + assert.equal(block.outputs.length, 2); + const selfContained = creation.suggestNewBlockInterface({ ...draft, edges: [] }); + assert.ok( + ![...selfContained.exposedOutputIds].some( + (id) => draft.block.outputs.find((p) => p.id === id)?.paramKey === 'model', + ), + ); + assert.ok( + [...selfContained.exposedOutputIds].some( + (id) => draft.block.outputs.find((p) => p.id === id)?.paramKey === 'image', + ), + ); + const prepared = creation.prepareUserBlockCreationV2(draft, block); + const restored = blockSchemaModule.normalizeBlockDefinitionV2(JSON.parse(JSON.stringify(prepared.definition))); + assert.deepEqual( + restored.boundary.outputs.map((p) => p.portId), + block.outputs.map((p) => p.id), + ); + assert.equal(restored.boundary.mode, 'explicit'); + assert.throws(() => creation.prepareUserBlockCreationV2(draft, { ...block, outputs: [] }), /externally connected/); +}); + test('cycle validation supports expanded internal reconnects without adding external projection edges', async () => { const { prepared } = await groupingFixture(true); const { connectionCreatesExecutionCycle } = await server.ssrLoadModule('/src/workflow/connectionCycle.ts'); diff --git a/scripts/graph-visible-output-readiness.test.mjs b/scripts/graph-visible-output-readiness.test.mjs index 6e796a46..22944e69 100644 --- a/scripts/graph-visible-output-readiness.test.mjs +++ b/scripts/graph-visible-output-readiness.test.mjs @@ -175,7 +175,9 @@ test('the graph names only an unambiguous owner with literal model selectors', ( }; flow.getState().replaceGraph({ nodes: [loader], edges: [] }); const before = structuredClone(flow.getState().toObject()); - const declared = readiness.inspectCurrentGraph().declaredModel; + const summary = readiness.inspectCurrentGraph(); + assert.equal(summary.declaredTask, 'text_to_video_with_audio'); + const declared = summary.declaredModel; assert.deepEqual(declared, { pipeline, repo: 'publisher/example', diff --git a/scripts/image-full-native-template-candidates.test.mjs b/scripts/image-full-native-template-candidates.test.mjs index 4551de85..4a615d03 100644 --- a/scripts/image-full-native-template-candidates.test.mjs +++ b/scripts/image-full-native-template-candidates.test.mjs @@ -592,6 +592,24 @@ test('Custom readiness retains required safety artifacts and their exact reviewe assert.deepEqual(result.modelInstallTargets.find((item) => item.repoId === safety.id).files, safety.planned_files); }); +test('recipe preflight reports installed and required component versions from the selected runtime', () => { + const recipe = runnableCandidate(candidates.find((item) => item.id === 'cosmos3_super_text_to_image')); + const context = customContext(recipe); + const profile = context.studioModelCapabilities + .find((item) => item.modelType === recipe.modelType) + .executionProfiles.find((item) => item.id === recipe.executionSelection.executionProfileId); + profile.optionalRuntimeRequirement.state = 'wrong_version'; + profile.optionalRuntimeRequirement.reason = 'optional_runtime_wrong_version'; + context.optionalRuntimeCatalog.profiles[0].packages = [ + { distribution: 'transformers', requiredVersion: '5.17.0', installedVersion: '5.13.0', status: 'wrong_version' }, + ]; + const result = readiness.getTemplateReadiness(recipe, context); + const issue = result.issues.find((item) => item.id === 'custom:optional-runtime'); + assert.equal(result.status, 'needs_backend'); + assert.match(issue.detail, /transformers requires 5\.17\.0.*5\.13\.0/); + assert.doesNotMatch(issue.detail, /wrong_version/); +}); + test('Custom memory never waives broken base runtime, profile identity, optional activation, or required image inputs', () => { const template = candidates.find((item) => item.id === 'cosmos3_super_text_to_image'); for (const mutate of [ diff --git a/scripts/modiff-template.test.mjs b/scripts/modiff-template.test.mjs index cc52ae40..97488702 100644 --- a/scripts/modiff-template.test.mjs +++ b/scripts/modiff-template.test.mjs @@ -7939,6 +7939,18 @@ test('shared pipeline classes resolve one exact Expert artifact per workflow mod }, ], }; + const sharedRepoVariants = profilesModule.expandArtifactSelectionProfiles({ + ...profile, + artifactSelections: [ + { ...profile.artifactSelections[0], repo: 'example/same', modes: ['text_to_image'] }, + { ...profile.artifactSelections[1], repo: 'example/same', modes: ['image_to_video'] }, + ], + }); + assert.deepEqual( + sharedRepoVariants.map((entry) => entry.surfaceCategory), + ['Image', 'Video'], + ); + assert.equal(new Set(sharedRepoVariants.map(profilesModule.modelInventoryRowKey)).size, 2); const variants = profilesModule.expandArtifactSelectionProfiles(profile); assert.deepEqual( variants.map(({ modes, defaultRepo, revisionCandidates, downloadFiles }) => ({ diff --git a/scripts/node-presentation.test.mjs b/scripts/node-presentation.test.mjs index 7f78a475..9429939a 100644 --- a/scripts/node-presentation.test.mjs +++ b/scripts/node-presentation.test.mjs @@ -411,6 +411,36 @@ test('discoverability reflects the encoder role and both declared upscale media assert.equal(JSON.stringify({ encoder, upscaler }), before); }); +test('image task discovery leads with creative tasks and searches across modality and guidance aliases', () => { + const tasks = ['text_to_video', 'image_upscale', 'controlnet_ip_adapter', 'edit_image', 'text_to_image']; + const cards = browser.workflowTaskCards(tasks.map((task) => ({ task }))); + assert.deepEqual( + cards.filter((card) => card.category === 'Image' && !card.specialist).map((card) => card.task), + ['text_to_image', 'edit_image', 'image_upscale'], + ); + assert.deepEqual( + cards.filter((card) => browser.matchesWorkflowTask(card, 'video')).map((card) => card.task), + ['text_to_video'], + ); + assert.deepEqual( + cards.filter((card) => browser.matchesWorkflowTask(card, 'ip-adapter')).map((card) => card.task), + ['controlnet_ip_adapter'], + ); +}); + +test('video route labels explain the reference inputs and keep their executable identifiers', () => { + const routes = { + flf2v: 'Video from first and last frames', + first_last_frame_to_video_with_audio: 'Video and audio from first and last frames', + in_context_to_video: 'Generate video with a reference clip', + }; + for (const card of browser.workflowTaskCards(Object.keys(routes).map((task) => ({ task })))) { + assert.equal(card.label, routes[card.task]); + assert.equal(card.category, 'Video'); + assert.ok(browser.matchesWorkflowTask(card, card.task)); + } +}); + test('task browser groups modalities, deduplicates models and prefers available composable execution', () => { const choice = (id, task, overrides = {}) => ({ id, diff --git a/scripts/operation-authoring.test.mjs b/scripts/operation-authoring.test.mjs index f788ba8a..16e928d8 100644 --- a/scripts/operation-authoring.test.mjs +++ b/scripts/operation-authoring.test.mjs @@ -3328,6 +3328,13 @@ test('generic public model inventory preserves native defaults and exact additio const [descriptor] = choices.parseWorkflowModelDescriptors(payload, support); assert.ok(descriptor); const rows = inventory.workflowModelArtifactRows(descriptor); + assert.deepEqual( + inventory.matchingWorkflowModelArtifactRows(descriptor, 'nvfp4').map((item) => item.weightFormat), + ['nvfp4'], + ); + assert.deepEqual(inventory.matchingWorkflowModelArtifactRows(descriptor, 'unrelated'), []); + assert.equal(inventory.matchingWorkflowModelArtifactRows(descriptor, '').length, 3); + assert.deepEqual( rows.map((item) => item.weightFormat), ['native', 'fp8r', 'nvfp4'], diff --git a/scripts/run-activity.test.mjs b/scripts/run-activity.test.mjs index 3222e3ed..84e8b45a 100644 --- a/scripts/run-activity.test.mjs +++ b/scripts/run-activity.test.mjs @@ -638,7 +638,7 @@ test('reordering tabs changes only their order and persists that order', () => { assert.equal(store.getState(), unchanged); }); -test('an open originating workflow is selected and its run node is requested for focus', async () => { +test('an explicit request to inspect the originating workflow selects the run node', async () => { const studio = studioStoreModule.useStudioStore.getState(); studio.ensureWorkflowTabs(); const originId = studioStoreModule.useStudioStore.getState().activeWorkflowTabId; @@ -647,6 +647,7 @@ test('an open originating workflow is selected and its run node is requested for const result = await activityModule.openRunActivity({ taskId: 'task-open', + preferWorkflow: true, workflowTabId: originId, nodeId: 'origin-node', status: 'completed', @@ -691,6 +692,23 @@ test('a workflow restoration error is contained and reveals the exact Queue task } }); +test('a completed run previews its exact output even when its workflow is still open', async () => { + const studio = studioStoreModule.useStudioStore.getState(); + studio.ensureWorkflowTabs(); + const workflowTabId = studioStoreModule.useStudioStore.getState().activeWorkflowTabId; + studioStoreModule.useStudioStore.setState({ outputs: [output()] }); + assert.equal( + await activityModule.openRunActivity({ + taskId: 'task-one', + clientRunId: 'client-one', + workflowTabId, + status: 'completed', + }), + 'preview', + ); + assert.equal(settingsStoreModule.useSettingsStore.getState().mediaViewerOpener.items[0].url, '/cache/output.png'); +}); + test('a completed closed workflow opens exact run output without recreating its tab', async () => { studioStoreModule.useStudioStore.setState({ outputs: [output()] }); const beforeIds = studioStoreModule.useStudioStore.getState().workflowTabs.map((tab) => tab.id); @@ -1223,3 +1241,21 @@ test('a slower earlier lookup cannot replace the result of the latest activity c assert.equal(settingsStoreModule.useSettingsStore.getState().mediaViewerOpener.items[0].url, '/cache/latest.png'); assert.equal(settingsStoreModule.useSettingsStore.getState().runActivityPendingTaskId, null); }); + +test('gallery uses the saved workflow name before live tab names, with fallbacks for older outputs', () => { + const output = { prompt: 'Paint an amber cube', templateLabel: 'Image edit' }; + assert.equal( + outputContracts.outputWorkflowTitle( + { ...output, apiGraphSnapshot: { runtimeHints: { workflowTitle: 'Amber study' } } }, + 'Renamed tab', + ), + 'Amber study', + ); + assert.equal(outputContracts.outputWorkflowTitle(output, 'Saved filter'), 'Saved filter'); + assert.equal(outputContracts.outputWorkflowTitle(output), 'Image edit'); + assert.equal( + outputContracts.outputWorkflowTitle({ prompt: 'Paint an amber cube', apiGraphSnapshot: [] }), + 'Paint an amber cube', + ); + assert.equal(outputContracts.outputWorkflowTitle({ prompt: '' }), 'Workflow result'); +}); diff --git a/scripts/runtime-resources.test.mjs b/scripts/runtime-resources.test.mjs index 75e29411..4280d290 100644 --- a/scripts/runtime-resources.test.mjs +++ b/scripts/runtime-resources.test.mjs @@ -57,3 +57,27 @@ test('idle and unknown allocator status cannot produce an invented paused explan assert.equal(snapshot.accelerators[0].allocatedBytes, 1024); } }); + +test('compact gauge names the highest measured resource and respects shared GPU accessibility', () => { + const snapshot = resources.parseRuntimeResourceSnapshot({ + activeDevice: 'cuda:0', + system: { ramPercent: 12 }, + accelerators: [ + { + device: 'cuda:0', + memoryKind: 'shared', + memoryTotalBytes: 2, + memoryUsedBytes: 1, + accessibleMemoryTotalBytes: 100, + accessibleMemoryFreeBytes: 91, + dedicatedMemoryTotalBytes: 2, + dedicatedMemoryFreeBytes: 1, + }, + ], + storage: { destinations: { modelCache: { path: '/models', freeBytes: 240 }, untrusted: { path: '/other' } } }, + }); + assert.equal(snapshot.accelerators[0].accessibleMemoryTotalBytes, 100); + assert.deepEqual(resources.runtimeResourceMetric(snapshot), { label: 'RAM', value: 12 }); + assert.equal(resources.runtimeResourcePressure(resources.parseRuntimeResourceSnapshot({})), null); + assert.deepEqual(snapshot.storage.destinations, { modelCache: { path: '/models', freeBytes: 240 } }); +}); diff --git a/scripts/template-showcases.test.mjs b/scripts/template-showcases.test.mjs index 96dc2088..5b233816 100644 --- a/scripts/template-showcases.test.mjs +++ b/scripts/template-showcases.test.mjs @@ -72,6 +72,9 @@ test('featured media never replaces current-template exactness or the actual def const { STUDIO_TEMPLATES } = await server.ssrLoadModule('/src/studio/templates.ts'); const exact = await server.ssrLoadModule('/src/studio/templateExactness.ts'); const { getTemplateShowcase } = await server.ssrLoadModule('/src/studio/templateShowcases.ts'); + const manifest = exact.parseTemplateGalleryManifest( + JSON.parse(fs.readFileSync('public/template-gallery/manifest.json', 'utf8')), + ); for (const [id, file, prompt] of [ ['flux3_klein_fp8r512_text_to_image', 'flux3-pine-lake-mountains-pup.v1.webp', /radio/i], ['minimax_h3_image_old_town_cat', 'h3-emerald-material-transfer.webp', /orange tabby/i], @@ -79,6 +82,12 @@ test('featured media never replaces current-template exactness or the actual def const template = STUDIO_TEMPLATES.find((t) => t.id === id); assert.match(template.prompt, prompt); assert.ok(getTemplateShowcase(template.id).mediaPath.endsWith(file)); + assert.deepEqual(exact.getTemplateCardMedia(template, null, { currentRecipeOnly: true }), {}); + const card = exact.getTemplateCardMedia(template, manifest, { currentRecipeOnly: true }); + const entry = exact.findManifestEntry(template, manifest); + if (entry) assert.equal(card.mediaPath, exact.templateManifestPath(entry.afterPath ?? entry.outputPath)); + else assert.deepEqual(card, {}); + assert.ok(!Object.values(card).some((path) => path?.endsWith(file))); assert.equal(exact.findManifestEntry(template, null), undefined); assert.equal(exact.getTemplateExampleUiState(template, {}, null, null).status, 'unverified'); } diff --git a/scripts/workflow-document-origin.test.mjs b/scripts/workflow-document-origin.test.mjs index 21dfcde5..28fdf99f 100644 --- a/scripts/workflow-document-origin.test.mjs +++ b/scripts/workflow-document-origin.test.mjs @@ -50,6 +50,14 @@ after(async () => { delete globalThis.sessionStorage; delete globalThis.window; }); +test('example filename fallback names the workflow and preserves authored labels', async () => { + const { workflowExampleDisplayName } = await server.ssrLoadModule('/src/workflow/readWorkflowJson.ts'); + assert.equal(workflowExampleDisplayName('examples/image-filter.json', 'image-filter'), 'Image filter'); + assert.equal(workflowExampleDisplayName('examples/image-filter.json', 'Image filter · 調色'), 'Image filter · 調色'); + assert.equal(workflowExampleDisplayName('examples/video_outpaint.json'), 'Video outpaint'); + assert.equal(workflowExampleDisplayName('examples/image-filter.json', 'Studio Premiere'), 'Studio Premiere'); +}); + function tab(id) { return studio.getState().workflowTabs.find((x) => x.id === id); } @@ -734,7 +742,6 @@ for (const scenario of [ test(`workflow import viewport: ${scenario.name} retains the graph and reports success`, async () => { const previousFlow = flow.getState(); const previousStudio = studio.getState(); - const previousReader = globalThis.FileReader; const previousFetch = globalThis.fetch; const currentViewport = { x: 25, y: -30, zoom: 0.75 }; const operationAuthoring = { @@ -826,15 +833,15 @@ for (const scenario of [ return null; } renderToStaticMarkup(React.createElement(ImportProbe)); - globalThis.FileReader = class { - readAsText() { - this.onload({ target: { result: JSON.stringify(value) } }); - } - }; const before = studio.getState().workflowTabs.length; await handleDrop({ preventDefault() {}, - dataTransfer: { files: { length: 1, item: () => ({ name: 'Imported.json', type: 'application/json' }) } }, + dataTransfer: { + files: { + length: 1, + item: () => new File([JSON.stringify(value)], 'Imported.json', { type: 'application/json' }), + }, + }, }); assert.equal(studio.getState().workflowTabs.length, before + 1); assert.deepEqual( @@ -870,7 +877,6 @@ for (const scenario of [ } finally { flow.setState(previousFlow); studio.setState(previousStudio); - globalThis.FileReader = previousReader; globalThis.fetch = previousFetch; } }); diff --git a/src/App.tsx b/src/App.tsx index 338cdb2f..196c1fb0 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -2,7 +2,7 @@ import { useSettingsStore } from './stores/useSettingsStore'; import { lazy, Suspense, useCallback, useEffect, useMemo, useRef, useState } from 'react'; -import type { MouseEvent as ReactMouseEvent, ReactNode } from 'react'; +import type { MouseEvent as ReactMouseEvent, KeyboardEvent as ReactKeyboardEvent, ReactNode } from 'react'; import { useSnackbar } from './ui/snackbar'; import { AppWindow, Boxes, GalleryVerticalEnd, LayoutTemplate, Workflow as WorkflowIcon } from 'lucide-react'; @@ -26,6 +26,7 @@ import { useRunIssueStore } from './stores/useRunIssueStore.ts'; import { modiffLayout } from './theme'; import { cx } from './utils/classNames'; import { ModiffIconButton } from './ui'; +import { useCompactWorkspace } from './ui/useCompactWorkspace'; import { openRunActivity } from './studio/runActivity.ts'; import { useAutoResourcePlanSync } from './studio/useAutoResourcePlanSync.ts'; import { useWorkflowBackendSync } from './studio/useWorkflowBackendSync.ts'; @@ -102,6 +103,8 @@ function LeftRailButton({ return ( { + if (activeDrawer === 'left') setLeftPanelOpen(false); + if (activeDrawer === 'right') setRightPanelOpen(false); + }; + const resizeByKey = (event: ReactKeyboardEvent, side: 'left' | 'right') => { + if (event.key !== 'ArrowLeft' && event.key !== 'ArrowRight') return; + event.preventDefault(); + const step = event.key === 'ArrowLeft' ? -24 : 24; + const limit = Math.floor(window.innerWidth * 0.4); + if (side === 'left') setLeftPanelWidth(Math.min(limit, leftPanelWidth + step)); + else setRightPanelWidth(Math.min(limit, rightPanelWidth - step)); + }; + + useEffect(() => { + const openCommands = (event: KeyboardEvent) => { + if ( + !(event.metaKey || event.ctrlKey) || + event.key.toLowerCase() !== 'k' || + document.querySelector('[aria-modal="true"]') + ) + return; + event.preventDefault(); + const settings = useSettingsStore.getState(); + settings.setRightPanelOpen(true); + settings.setRightPanelTab('studio'); + settings.setCommandPaletteOpen(true); + }; + window.addEventListener('keydown', openCommands); + return () => window.removeEventListener('keydown', openCommands); + }, []); const { connect: websocketConnect, disconnect: websocketDisconnect } = useWebsocketStore(); const websocketConnected = useWebsocketStore((state) => state.isConnected); @@ -446,7 +483,7 @@ export default function App() { const handleTabChange = useCallback( (index: number) => { - if (index === leftPanelTabIndex && isLeftPanelOpen) { + if (index === leftPanelTabIndex && leftVisible) { setLeftPanelOpen(false); setLeftPanelTabIndex(-1); } else { @@ -454,22 +491,45 @@ export default function App() { setLeftPanelTabIndex(index); } }, - [setLeftPanelTabIndex, setLeftPanelOpen, leftPanelTabIndex, isLeftPanelOpen], + [setLeftPanelTabIndex, setLeftPanelOpen, leftPanelTabIndex, leftVisible], ); return (
+ + Jump to workflow canvas + {/* Top Navigation Bar */} -
+
{/* Main Content Area */} -
+
{ + if ( + compact && + activeDrawer && + event.key === 'Escape' && + !event.defaultPrevented && + !document.querySelector('[aria-modal="true"], [role="menu"], [role="listbox"]') + ) { + closeDrawer(); + document.getElementById('workflow-canvas')?.focus(); + } + }} + > {/* Icon Tab Bar */} -
+
+ {/* Left Panel */}

- Memory → Automatic chooses supported technical settings. Custom keeps your configured settings. Creator and - Developer workspaces can use either memory policy; changing workspace preserves this workflow’s settings. + Automatic chooses memory settings for the selected workflow and hardware. Choose Custom to set them yourself.

A loader’s Auto Offload controls where its weights reside. Repeat/Loop controls repeated runs. They are separate diff --git a/src/components/WorkflowSetupChecklist.tsx b/src/components/WorkflowSetupChecklist.tsx index 899bf1ed..42ef390a 100644 --- a/src/components/WorkflowSetupChecklist.tsx +++ b/src/components/WorkflowSetupChecklist.tsx @@ -216,7 +216,7 @@ export default function WorkflowSetupChecklist({ ) : (

Requirements are unverified until scope inspection succeeds.

)} - +

4. System prerequisites

diff --git a/src/fields/ModelSelectField.tsx b/src/fields/ModelSelectField.tsx index 139ac8a6..84df3b11 100644 --- a/src/fields/ModelSelectField.tsx +++ b/src/fields/ModelSelectField.tsx @@ -272,7 +272,7 @@ function RawModelSelectField(props: FieldProps) { type="button" onClick={handleOpenModels} disabled={props.disabled || isLoading} - label="Choose model" + label={`Browse models for ${props.label}`} > diff --git a/src/fields/SelectField.tsx b/src/fields/SelectField.tsx index d38e0721..535be2b9 100644 --- a/src/fields/SelectField.tsx +++ b/src/fields/SelectField.tsx @@ -6,7 +6,8 @@ import fieldAction from '../utils/fieldAction'; import { LoaderCircle } from 'lucide-react'; import { useInitialFieldAction } from '../utils/useInitialFieldAction'; import { FieldFrame, ModiffFieldShell, ModiffMultiSelect, ModiffSelect, type ModiffSelectOption } from '../ui'; -import { runtimeOptionEntries, type RuntimeOptionEntry } from '../studio/runtimeOptions'; +import { useNodesStore } from '../stores/useNodeStore'; +import { runtimeOptionEntries, workflowDeviceLabel, type RuntimeOptionEntry } from '../studio/runtimeOptions'; const OFFLOAD_LABELS: Record = { none: 'Off', @@ -35,6 +36,8 @@ export default function SelectField(props: FieldProps) { typeof binding.fieldOrPortId === 'string' ? binding.fieldOrPortId : props.fieldKey; + const deviceField = fieldKey === 'device' || fieldKey === 'execution_device'; + const torch = useNodesStore((state) => (deviceField ? state.runtimeStatus?.packages?.torch : undefined)); const multiple = Boolean(props.fieldOptions?.multiple); const placeholder = asString(props.fieldOptions?.placeholder); const currValue = multiple @@ -49,7 +52,14 @@ export default function SelectField(props: FieldProps) { const entries: RuntimeOptionEntry[] = runtimeOptionEntries(props.options) .map((entry) => - entry.type === 'option' ? { ...entry, label: productOptionLabel(fieldKey, entry.value, entry.label) } : entry, + entry.type === 'option' + ? { + ...entry, + label: deviceField + ? workflowDeviceLabel(entry.value, entry.label, torch) + : productOptionLabel(fieldKey, entry.value, entry.label), + } + : entry, ) .filter((entry) => fieldKey !== 'offload_mode' || entry.type === 'header' || entry.value !== 'auto_cpu'); diff --git a/src/stores/useSettingsStore.ts b/src/stores/useSettingsStore.ts index 9f8bdae6..6a111f46 100644 --- a/src/stores/useSettingsStore.ts +++ b/src/stores/useSettingsStore.ts @@ -99,6 +99,8 @@ export type WorkflowFocusRequest = { // values not saved to localStorage. TODO: make this a separate store? interface SettingsStateVolatile { + activeDrawer: 'left' | 'right' | null; + commandPaletteOpen: boolean; fileBrowserOpener: fileBrowserParams | null; //modelManagerOpener: { nodeId: string, fieldKey: string, fileTypes: string[], path: string } | null; modelManagerOpener: { nodeId: string | null; fieldKey: string | null; focus?: FocusedModelManagerTarget } | null; @@ -125,6 +127,7 @@ interface SettingsStateVolatile { } interface SettingsActions { + setCommandPaletteOpen: (open: boolean) => void; setWorkflowLibraryView: (view: SettingsStateVolatile['workflowLibraryView']) => void; setLeftPanelOpen: (open: boolean) => void; setLeftPanelWidth: (width: number) => void; @@ -190,6 +193,8 @@ const defaultState: SettingsState = { }; const defaultVolatileState: SettingsStateVolatile = { + activeDrawer: null, + commandPaletteOpen: false, fileBrowserOpener: null, modelManagerOpener: null, alertOpener: null, @@ -218,10 +223,19 @@ export const useSettingsStore = create set({ workflowLibraryView: view }), - setLeftPanelOpen: (open: boolean) => set({ isLeftPanelOpen: open }), + setCommandPaletteOpen: (open) => set({ commandPaletteOpen: open }), + setLeftPanelOpen: (open: boolean) => + set((state) => ({ + isLeftPanelOpen: open, + activeDrawer: open ? 'left' : state.activeDrawer === 'left' ? null : state.activeDrawer, + })), setLeftPanelWidth: (width: number) => set({ leftPanelWidth: Math.max(LEFT_PANEL_WIDTH_MIN, width) }), setLeftPanelTabIndex: (index: number) => set({ leftPanelTabIndex: index }), - setRightPanelOpen: (open: boolean) => set({ isRightPanelOpen: open }), + setRightPanelOpen: (open: boolean) => + set((state) => ({ + isRightPanelOpen: open, + activeDrawer: open ? 'right' : state.activeDrawer === 'right' ? null : state.activeDrawer, + })), setRightPanelWidth: (width: number) => set({ rightPanelWidth: Math.max(RIGHT_PANEL_WIDTH_MIN, width) }), setRightPanelTab: (tab: WorkspacePanelTab) => set({ rightPanelTab: tab }), diff --git a/src/stores/useStudioStore.ts b/src/stores/useStudioStore.ts index 9f5421c6..0b5c3dd7 100644 --- a/src/stores/useStudioStore.ts +++ b/src/stores/useStudioStore.ts @@ -26,6 +26,7 @@ import { coerceStudioTemplateId, isRecord, optionalNullableString, + outputWorkflowTitle, safeCloneJson, } from '../studio/outputContracts'; import { deleteStudioOutput, fetchStudioOutputs, setStudioOutputFavorite, syncStudioOutput } from '../studio/outputApi'; @@ -2524,7 +2525,7 @@ export const useStudioStore = create tab.id === output.workflowTabId)?.title), snapshot, 'gallery', output.id, diff --git a/src/studio/modelProfiles.ts b/src/studio/modelProfiles.ts index de62af82..95b06483 100644 --- a/src/studio/modelProfiles.ts +++ b/src/studio/modelProfiles.ts @@ -1,5 +1,6 @@ import type { StudioFormState, + StudioArtifactSelection, StudioInpaintContractStatus, StudioMode, StudioModelProfile, @@ -899,7 +900,10 @@ export function getCatalogModelProfiles( export function getProfileForArtifactMode(profile: StudioModelProfile, mode: StudioMode): StudioModelProfile { const selection = profile.artifactSelections?.find((item) => item.modes.includes(mode)); - if (!selection) return profile; + return selection ? withArtifactSelection(profile, selection) : profile; +} + +function withArtifactSelection(profile: StudioModelProfile, selection: StudioArtifactSelection): StudioModelProfile { return { ...profile, defaultRepo: selection.repo, @@ -909,10 +913,25 @@ export function getProfileForArtifactMode(profile: StudioModelProfile, mode: Stu }; } +function artifactSurfaceCategory(profile: StudioModelProfile, selection: StudioArtifactSelection) { + if (selection.modes.every((mode) => VIDEO_STUDIO_MODES.includes(mode) || mode === 'single_image_to_video')) + return 'Video'; + if (selection.modes.every((mode) => AUDIO_STUDIO_MODES.includes(mode))) return 'Audio'; + if (selection.modes.every((mode) => ['text_to_image', 'modular_text_to_image', 'unconditional_image'].includes(mode))) + return 'Image'; + return profile.surfaceCategory; +} + +export function modelInventoryRowKey(profile: StudioModelProfile) { + // Task selections sharing a class and repository have disjoint mode sets. + return JSON.stringify([profile.modelType, profile.defaultRepo, profile.modes, profile.revisionCandidates]); +} + export function expandArtifactSelectionProfiles(profile: StudioModelProfile): StudioModelProfile[] { if (!profile.artifactSelections?.length) return [profile]; return profile.artifactSelections.map((selection) => ({ - ...getProfileForArtifactMode(profile, selection.modes[0]!), + ...withArtifactSelection(profile, selection), + surfaceCategory: artifactSurfaceCategory(profile, selection), modes: [...selection.modes], })); } diff --git a/src/studio/optionalRuntimes.ts b/src/studio/optionalRuntimes.ts index 5cc4005b..ca6eda48 100644 --- a/src/studio/optionalRuntimes.ts +++ b/src/studio/optionalRuntimes.ts @@ -40,6 +40,12 @@ export type OptionalRuntimeProfileStatus = { overlayStatus: 'active' | 'missing' | 'repair_required' | 'staged' | 'staged_unchecked'; satisfiesProfiles: Array<{ profileId: string; specDigest: string }>; baseIncluded: boolean; + packages?: Array<{ + distribution: string; + requiredVersion: string; + installedVersion?: string; + status: 'missing' | 'present_unqualified' | 'wrong_version'; + }>; }; export type OptionalRuntimeCatalog = { @@ -538,8 +544,21 @@ function parseProfile(value: unknown): OptionalRuntimeProfileStatus { satisfiesProfiles.length ) invalid(); + const rawPackages = item.packages ?? []; + if (!Array.isArray(rawPackages) || rawPackages.length > 256) invalid(); + const packages = rawPackages.map((rawPackage) => { + const pkg = record(rawPackage); + return { + distribution: string(pkg.distribution)!, + requiredVersion: string(pkg.requiredVersion)!, + installedVersion: pkg.installedVersion === undefined ? undefined : string(pkg.installedVersion)!, + status: string(pkg.status, /^(?:missing|present_unqualified|wrong_version)$/) as + 'missing' | 'present_unqualified' | 'wrong_version', + }; + }); return { ...(item as unknown as OptionalRuntimeProfileStatus), + packages, satisfiesProfiles, baseIncluded: item.baseIncluded === true, }; @@ -717,7 +736,10 @@ export function optionalRuntimeSetupStatus( ) { if (!['active', 'base'].includes(catalog.processLoadStatus)) return `${catalog.processLoadStatus.replace(/_/g, ' ')}. Follow the existing setup operation or refresh status.`; - if (profile.contractState !== 'qualified' || !profile.cutoverReady) return `unavailable (${profile.contractState}).`; + if (profile.contractState === 'candidate_unqualified') + return 'unavailable — this runtime has not yet been qualified for the target.'; + if (profile.contractState !== 'qualified' || !profile.cutoverReady) + return 'unavailable — installation and activation have not been enabled for this target.'; if (profile.overlayStatus === 'active') { const exact = catalog.processLoadStatus === 'active' && diff --git a/src/studio/outputContracts.ts b/src/studio/outputContracts.ts index b4af5220..a0b9da73 100644 --- a/src/studio/outputContracts.ts +++ b/src/studio/outputContracts.ts @@ -554,3 +554,11 @@ export function coerceStudioPreviewSlot(value: unknown): StudioPreviewSlot | nul updatedAt: numberValue(value.updatedAt, 0), }; } + +/** Display name for a result or its restored tab; never used as execution evidence. */ +export function outputWorkflowTitle(output: StudioOutput, tabTitle?: string) { + const hints = isRecord(output.apiGraphSnapshot) ? output.apiGraphSnapshot.runtimeHints : undefined; + const recorded = isRecord(hints) ? hints.workflowTitle : undefined; + if (typeof recorded === 'string' && recorded.trim()) return recorded.trim(); + return tabTitle?.trim() || output.templateLabel || output.prompt.trim().slice(0, 40) || 'Workflow result'; +} diff --git a/src/studio/runActivity.ts b/src/studio/runActivity.ts index e4bd3a47..efa486cd 100644 --- a/src/studio/runActivity.ts +++ b/src/studio/runActivity.ts @@ -411,7 +411,7 @@ async function openRunActivityUnsafe(target: RunActivityTarget): Promise tab.id === workflowTabId) : undefined; - if (openTab) { + if (openTab && (target.status !== 'completed' || target.preferWorkflow)) { showWorkflow(openTab.id, nodeId, target, localTask, requestRevision); if (target.status === 'failed') { const issues = useRunIssueStore.getState(); @@ -528,6 +528,10 @@ async function openRunActivityUnsafe(target: RunActivityTarget): Promise node.id)); const modelRefs = inspectedModelReferences(executableNodes); + const tasks = new Set( + executableNodes.flatMap((node) => { + const operation = operationAuthoring(node)?.operation; + return operationOwnsModel(operation) && operation.task ? [operation.task] : []; + }), + ); const issues = [ ...collectUserBlockCompositionIssues(), ...collectGraphStructureIssues(executionGraph), @@ -1393,6 +1399,7 @@ export function inspectCurrentGraph(): GraphInspectionSummary { connected: connectedOutputNodeIds.has(node.id), })), modelRefs, + declaredTask: tasks.size === 1 ? tasks.values().next().value : undefined, declaredModel: declaredGraphModel({ nodes: executableNodes, edges }, modelRefs), blockingIssues: issues.filter((item) => item.blocking), }; diff --git a/src/studio/runtimeOptions.ts b/src/studio/runtimeOptions.ts index decd025a..8167830f 100644 --- a/src/studio/runtimeOptions.ts +++ b/src/studio/runtimeOptions.ts @@ -1,3 +1,4 @@ +import type { RuntimePackageStatus } from '../stores/useNodeStore'; import type { OptionDescriptor } from './types'; import type { NodeParamOptions, NodeParams } from '../stores/useNodeStore'; import type { CustomNodeType } from '../stores/useFlowStore'; @@ -260,3 +261,18 @@ export function runtimeOptionValues(options: unknown, { includeDisabled = false ) .map((entry) => entry.value); } + +/** Keep the PyTorch device ID intact on disk while naming the physical device in the picker. */ +export function workflowDeviceLabel(value: string, fallback: string, torch: RuntimePackageStatus | undefined) { + if (value === 'cpu') return 'CPU'; + const match = /^(cuda|mps|xpu)(?::(\d+))?$/u.exec(value); + if (!match || !torch) return fallback; + const [, type = '', index] = match; + const devices = type === 'cuda' ? torch.cuda_devices : type === 'mps' ? torch.mps_devices : torch.xpu_devices; + const device = devices?.find((item) => item.index === Number(index ?? 0)); + const name = device?.name || (type === 'cuda' && Number(index ?? 0) === 0 ? torch.cuda_device_name : undefined); + if (!name) return fallback; + const backend = device && 'backend' in device && typeof device.backend === 'string' ? device.backend : ''; + const platform = type === 'cuda' && /amd|radeon|rocm|hip/iu.test(name + ' ' + backend) ? 'ROCm' : type.toUpperCase(); + return `${name} · ${platform} (${value})`; +} diff --git a/src/studio/runtimeResources.ts b/src/studio/runtimeResources.ts index bedfa97b..81fca86f 100644 --- a/src/studio/runtimeResources.ts +++ b/src/studio/runtimeResources.ts @@ -14,7 +14,15 @@ export type RuntimeResourceProcess = { rssBytes: number | null; }; +export const storageDestinationLabels = { + modelCache: 'Model download cache', + outputs: 'Studio outputs', + offload: 'Default disk offload', +} as const; +type Destination = { path: string; freeBytes: number | null }; +type StorageDestinations = Partial>; export type RuntimeStorageResource = { + destinations?: StorageDestinations; activePercent: number | null; activitySource: string | null; detectionSource: string | null; @@ -33,6 +41,10 @@ export type RuntimeAcceleratorResource = { backend: string; device: string; index: number | null; + accessibleMemoryFreeBytes?: number | null; + accessibleMemoryTotalBytes?: number | null; + dedicatedMemoryFreeBytes?: number | null; + dedicatedMemoryTotalBytes?: number | null; memoryFreeBytes: number | null; memoryKind: 'dedicated' | 'shared' | 'unified' | 'system' | 'unknown'; memoryTotalBytes: number | null; @@ -91,6 +103,13 @@ export function parseRuntimeResourceSnapshot(value: unknown): RuntimeResourceSna const system = record(payload.system) ?? {}; const process = record(payload.process) ?? {}; const storage = record(payload.storage) ?? {}; + const destinations: StorageDestinations = {}; + const reportedDestinations = record(storage.destinations); + for (const role of Object.keys(storageDestinationLabels) as (keyof StorageDestinations)[]) { + const entry = record(reportedDestinations?.[role]); + const path = text(entry?.path); + if (path) destinations[role] = { path, freeBytes: finite(entry?.freeBytes) }; + } const currentRun = record(payload.currentRun); const activeDevice = text(payload.activeDevice); const accelerators = Array.isArray(payload.accelerators) @@ -107,6 +126,10 @@ export function parseRuntimeResourceSnapshot(value: unknown): RuntimeResourceSna backend: text(accelerator.backend) ?? 'unknown', device, index: finite(accelerator.index), + accessibleMemoryFreeBytes: finite(accelerator.accessibleMemoryFreeBytes), + accessibleMemoryTotalBytes: finite(accelerator.accessibleMemoryTotalBytes), + dedicatedMemoryFreeBytes: finite(accelerator.dedicatedMemoryFreeBytes), + dedicatedMemoryTotalBytes: finite(accelerator.dedicatedMemoryTotalBytes), memoryFreeBytes: finite(accelerator.memoryFreeBytes), memoryKind: memoryKind(accelerator.memoryKind), memoryTotalBytes: finite(accelerator.memoryTotalBytes), @@ -142,6 +165,7 @@ export function parseRuntimeResourceSnapshot(value: unknown): RuntimeResourceSna sampledAt: finite(payload.sampledAt) ?? Date.now() / 1000, schemaVersion: 1, storage: { + destinations, activePercent: finite(storage.activePercent), activitySource: text(storage.activitySource), detectionSource: text(storage.detectionSource), @@ -182,21 +206,35 @@ export function formatResourcePercent(value: number | null) { return `${Math.max(0, Math.min(100, Math.round(value)))}%`; } -export function runtimeResourcePressure(snapshot: RuntimeResourceSnapshot | null) { +export function acceleratorMemoryPercent(active?: RuntimeAcceleratorResource) { + if (!active) return null; + if (active.memoryKind === 'shared' || active.memoryKind === 'unified') { + const total = active.accessibleMemoryTotalBytes; + const free = active.accessibleMemoryFreeBytes; + return total && total > 0 && free != null ? (100 * (total - free)) / total : null; + } + return active.memoryUsedBytes != null && active.memoryTotalBytes != null && active.memoryTotalBytes > 0 + ? (100 * active.memoryUsedBytes) / active.memoryTotalBytes + : null; +} + +export function runtimeResourceMetric(snapshot: RuntimeResourceSnapshot | null) { if (!snapshot) return null; const active = snapshot.accelerators.find((item) => item.active) ?? snapshot.accelerators[0]; - const gpuMemoryPercent = - active?.memoryUsedBytes !== null && - active?.memoryUsedBytes !== undefined && - active.memoryTotalBytes !== null && - active.memoryTotalBytes > 0 - ? (active.memoryUsedBytes / active.memoryTotalBytes) * 100 - : null; - return Math.max( - snapshot.system.cpuPercent ?? 0, - snapshot.system.ramPercent ?? 0, - snapshot.storage.activePercent ?? 0, - active?.utilizationPercent ?? 0, - gpuMemoryPercent ?? 0, - ); + const readings = [ + ['CPU', snapshot.system.cpuPercent], + ['RAM', snapshot.system.ramPercent], + ['Disk', snapshot.storage.activePercent], + ['GPU', active?.utilizationPercent], + ['GPU memory', acceleratorMemoryPercent(active)], + ] as const; + let highest: { label: string; value: number } | null = null; + for (const [label, value] of readings) { + if (value != null && (highest === null || value > highest.value)) highest = { label, value }; + } + return highest; +} + +export function runtimeResourcePressure(snapshot: RuntimeResourceSnapshot | null) { + return runtimeResourceMetric(snapshot)?.value ?? null; } diff --git a/src/studio/templateExactness.ts b/src/studio/templateExactness.ts index c23a246a..2e0749e5 100644 --- a/src/studio/templateExactness.ts +++ b/src/studio/templateExactness.ts @@ -626,15 +626,18 @@ export type TemplateCardMedia = { * base-template preview. Conversely, a stale, revoked, or mismatched manifest * entry must not contribute any generated card media. * - * A template-owned thumbnail remains an editorial fallback for recipes that - * do not yet have a qualifying generated proof. + * The browser sets currentRecipeOnly so historical and editorial artwork cannot + * appear as current recipe output. Metadata consumers can still request the legacy fallback. */ export function getTemplateCardMedia( template: StudioTemplate, manifest: TemplateGalleryManifest | null | undefined, + options: { currentRecipeOnly?: boolean } = {}, ): TemplateCardMedia { const manifestEntry = - findManifestEntry(template, manifest) ?? findHistoricalTemplateManifestEntry(template, manifest); + findManifestEntry(template, manifest) ?? + (!options.currentRecipeOnly ? findHistoricalTemplateManifestEntry(template, manifest) : undefined); + if (!manifestEntry && options.currentRecipeOnly) return {}; const retainedPreview = isRetainedVideoPreview(template, manifestEntry); const bundledSourcePreview = template.outputKinds?.[0] === 'audio' @@ -648,9 +651,13 @@ export function getTemplateCardMedia( : (manifestEntry?.thumbnailPath ?? manifestEntry?.posterPath); const thumbnailPath = templateManifestPath(manifestPoster) ?? - templateManifestPath(template.example?.thumbnailPath ?? template.example?.outputPath); + (!options.currentRecipeOnly + ? templateManifestPath(template.example?.thumbnailPath ?? template.example?.outputPath) + : undefined); const selectedAudioExample = - template.outputKinds?.[0] === 'audio' ? templateManifestPath(template.example?.outputPath) : undefined; + !options.currentRecipeOnly && template.outputKinds?.[0] === 'audio' + ? templateManifestPath(template.example?.outputPath) + : undefined; const generatedOutputPath = templateManifestPath(manifestEntry?.afterPath ?? manifestEntry?.outputPath) ?? selectedAudioExample; const isVideo = template.outputKinds?.[0] === 'video' || manifestEntry?.mediaType === 'video'; diff --git a/src/studio/templateReadiness.ts b/src/studio/templateReadiness.ts index bb700ef8..089fe7e6 100644 --- a/src/studio/templateReadiness.ts +++ b/src/studio/templateReadiness.ts @@ -23,13 +23,43 @@ import type { } from './types'; import { backendNodeKeysForCapability } from './templateBackendCapabilities'; import { resolveTemplateModelSelection } from './templateModelSelection'; -import { optionalRuntimeBlockState, type OptionalRuntimeCatalog } from './optionalRuntimes'; +import { + optionalRuntimeBlockState, + type OptionalRuntimeRequirement, + type OptionalRuntimeCatalog, +} from './optionalRuntimes'; import type { StudioModelProfile } from './types'; export { isTemplateBackendCapabilityRecognized, templateBackendNodeKeys } from './templateBackendCapabilities'; export type TemplateReadinessStatus = 'ready' | 'needs_input' | 'needs_model' | 'needs_backend' | 'needs_setup' | 'preparing' | 'planning'; +function recipeRuntimeDetail( + requirement: OptionalRuntimeRequirement | undefined, + state: OptionalRuntimeRequirement['state'], + catalog: OptionalRuntimeCatalog | null | undefined, +) { + const profiles = catalog?.profiles.filter((profile) => requirement?.profileIds.includes(profile.id)) ?? []; + const packages = + state === 'missing' || state === 'wrong_version' + ? profiles.flatMap((profile) => (profile.packages ?? []).filter((pkg) => pkg.status === state)) + : []; + if (packages.length) { + return packages + .map((pkg) => + pkg.status === 'missing' + ? `${pkg.distribution} ${pkg.requiredVersion} is required and is missing.` + : `${pkg.distribution} requires ${pkg.requiredVersion}. ${pkg.installedVersion ? `Installed version: ${pkg.installedVersion}.` : 'The installed version could not be verified.'}`, + ) + .join(' '); + } + const name = profiles.map((profile) => profile.label).join(', ') || 'The required runtime'; + if (state === 'wrong_version') + return `${name} requires a different package version. Open Setup to review the installation.`; + if (state === 'missing') return `${name} is missing. Open Setup to view installation options.`; + return `${name}: ${state.replace(/_/g, ' ')}. Open Setup for details.`; +} + export type TemplateReadinessTone = 'success' | 'warning' | 'error' | 'info' | 'default'; export type TemplateReadinessIssue = { @@ -284,7 +314,7 @@ function customRecipeReadiness(template: StudioTemplate, context: TemplateReadin 'Recipe runtime needed', invalidRequirement ? 'Refresh the exact backend runtime requirement for this recipe.' - : `${requirement?.reason ?? 'Required recipe runtime is not active.'} (${runtimeBlock})`, + : recipeRuntimeDetail(requirement, runtimeBlock!, context.optionalRuntimeCatalog), ); const artifactSelection = selected.capability.artifactSelections?.find( diff --git a/src/studio/types.ts b/src/studio/types.ts index f899c610..4b07d6cc 100644 --- a/src/studio/types.ts +++ b/src/studio/types.ts @@ -570,6 +570,7 @@ export type GraphInspectionSummary = { paramKey: string; }>; /** Display-only identity of a single literal selector in the executable graph. */ + declaredTask?: string; declaredModel?: { pipeline: string; repo: string; profileId: string }; blockingIssues: RunReadinessIssue[]; }; diff --git a/src/studio/userBlockCreationV2.ts b/src/studio/userBlockCreationV2.ts index e11e10f8..cbfc5ee7 100644 --- a/src/studio/userBlockCreationV2.ts +++ b/src/studio/userBlockCreationV2.ts @@ -27,6 +27,68 @@ export function createUserBlockDraftV2( return createUserBlockFromSelection({ nodes, edges: canonical.edges }, undefined, blocks); } +/** New authoring defaults only. Existing Block definitions own their published interface. */ +export function suggestNewBlockInterface(result: Extract) { + const connectedInputs = new Set( + result.edges.filter((edge) => edge.target === result.blockNode.id).map((edge) => edge.targetHandle), + ); + const connectedOutputs = new Set( + result.edges.filter((edge) => edge.source === result.blockNode.id).map((edge) => edge.sourceHandle), + ); + const nodes = new Map((result.block.nodes as CustomNodeType[]).map((node) => [node.id, node])); + const usedOutputs = new Set( + (result.block.edges as Edge[]).map((edge) => JSON.stringify([edge.source, edge.sourceHandle])), + ); + const suggestedPorts = (direction: 'inputs' | 'outputs', connected: typeof connectedInputs) => { + const ports = result.block[direction]; + const pinned = ports.filter( + (port) => + connected.has(port.id) || + (direction === 'inputs' && nodes.get(port.nodeId)?.data.params[port.paramKey]?.required), + ); + if (connected.size) return new Set(pinned.map((port) => port.id)); + + // For a self-contained selection, offer open media and terminal results first. + // Intermediate model components and diagnostics remain available in Customize. + const available = ports.filter( + (port) => + (direction === 'inputs' || !usedOutputs.has(JSON.stringify([port.nodeId, port.paramKey]))) && + !/^(?:doc|route state(?: in| out)?|latent binding)$/iu.test( + port.label.split(' / ').pop()?.replace(/_/gu, ' ') ?? '', + ), + ); + const primary = available.filter((port) => + (Array.isArray(port.type) ? port.type : [port.type]).some( + (type) => type && /^(?:images?|audio|video|mask|frames|text|string|str|file|filepath|data)$/iu.test(type), + ), + ); + const suggested = primary.length + ? primary + : available.length === 1 || direction === 'outputs' + ? available.slice(0, 1) + : []; + return new Set([...pinned, ...suggested].map((port) => port.id)); + }; + const mainControls = + /^(?:prompt|negative prompt|strength|denoise strength|seed|steps|guidance(?: scale)?|width|height|frames|frame rate|fps|file(?: name)?|image|video|audio|text|value)$/iu; + const selected = new Set( + result.block.exposedParams + .filter((control) => { + const label = control.label.split(' / ').pop()?.replace(/_/gu, ' '); + const field = control.paramKey?.replace(/_/gu, ' '); + return mainControls.test(label ?? '') || mainControls.test(field ?? ''); + }) + .map((control) => control.id), + ); + return { + connectedInputs, + connectedOutputs, + exposedInputIds: suggestedPorts('inputs', connectedInputs), + exposedOutputIds: suggestedPorts('outputs', connectedOutputs), + exposedParamIds: selected, + }; +} + /** The creation preview never writes stores or reusable definitions. */ export function prepareUserBlockCreationV2( result: Extract, @@ -50,6 +112,18 @@ export function prepareUserBlockCreationV2( ) { // Choosing an interface in the dialog makes it a deliberate contract. const definition = structuredClone(instance.definitionSnapshot); + // The legacy conversion derives every available port. Apply the author's chosen V2 interface afterwards. + const inputs = new Set(block.inputs.map((port) => port.id)); + const outputs = new Set(block.outputs.map((port) => port.id)); + for (const edge of result.edges) { + if ( + (edge.target === result.blockNode.id && edge.targetHandle && !inputs.has(edge.targetHandle)) || + (edge.source === result.blockNode.id && edge.sourceHandle && !outputs.has(edge.sourceHandle)) + ) + throw new Error('Keep externally connected ports in the Block interface.'); + } + definition.boundary.inputs = definition.boundary.inputs.filter((port) => inputs.has(port.portId)); + definition.boundary.outputs = definition.boundary.outputs.filter((port) => outputs.has(port.portId)); definition.boundary.mode = 'explicit'; delete definition.boundary.derivation; definition.contentHash = blockDefinitionContentHashV2(definition); diff --git a/src/ui/useCompactWorkspace.ts b/src/ui/useCompactWorkspace.ts new file mode 100644 index 00000000..45b09870 --- /dev/null +++ b/src/ui/useCompactWorkspace.ts @@ -0,0 +1,17 @@ +import { useSyncExternalStore } from 'react'; + +const query = '(max-width: 1099px)'; + +function subscribe(onChange: () => void) { + const media = window.matchMedia(query); + media.addEventListener('change', onChange); + return () => media.removeEventListener('change', onChange); +} + +export function useCompactWorkspace() { + return useSyncExternalStore( + subscribe, + () => window.matchMedia(query).matches, + () => false, + ); +} diff --git a/src/workflow/encodingNodePresentation.ts b/src/workflow/encodingNodePresentation.ts index b43a654d..d8d65e7b 100644 --- a/src/workflow/encodingNodePresentation.ts +++ b/src/workflow/encodingNodePresentation.ts @@ -1,5 +1,5 @@ import type { NodeParams } from '../stores/useNodeStore'; -import type { BlockControlV2, BlockInstanceV2, BlockPortV2 } from '../studio/blockSchemaV2'; +import type { BlockControlV2, BlockInstanceV2 } from '../studio/blockSchemaV2'; import { workflowTaskCategory } from './workflowTaskBrowser'; import { COMBINED_INPUT_PROVIDER, @@ -55,10 +55,38 @@ export function isFocusedStageNode(instance: BlockInstanceV2 | undefined) { } /** Rendering only: never remove a declared boundary or an existing connection. */ -export function encodingVisibleConnectors(params: Record, outputs: BlockPortV2[]) { - // All declared sockets stay available for drag-to-add discovery, including Doc. - void outputs; - return params; +export function encodingVisibleConnectors( + params: Record, + instance: BlockInstanceV2, + showImplementation = false, +): Record { + const technical = new Map(); + const { inputs, outputs } = instance.effectiveInterface.boundary; + for (const port of [...inputs.filter((input) => !input.required), ...outputs]) { + const field = port.binding.fieldOrPortId; + const node = instance.effectiveGraph.nodes.find((item) => item.nodeId === port.binding.nodeId); + const guidance = (node?.data.operationAuthoring as { operation?: { nodeType?: string } } | undefined)?.operation + ?.nodeType; + if ( + field === 'doc' || + field === 'route_state_in' || + field === 'route_state_out' || + (field === 'layers' && guidance === 'guidance_layers') + ) { + technical.set(port.portId, { field, owner: String(node?.data.label || port.binding.nodeId) }); + } + } + const visible: Record = {}; + for (const [id, param] of Object.entries(params)) { + // Optional image encoding also supplies sockets before a real encoder exists in a text-only graph. + const optional = param.fieldOptions?.encodingImplementationOutput; + const port = + technical.get(id) ?? (typeof optional === 'string' ? { field: optional, owner: 'Image encoder' } : undefined); + if (port && !showImplementation && !param.isConnected) continue; + visible[id] = + port?.field === 'doc' && param.label === 'Doc' ? { ...param, label: `Documentation · ${port.owner}` } : param; + } + return visible; } /** EncodePrompt uses prompt_input ahead of prompt; preserve the local fallback. */ diff --git a/src/workflow/encodingOptionalInput.ts b/src/workflow/encodingOptionalInput.ts index 91fa0f75..a95ea85a 100644 --- a/src/workflow/encodingOptionalInput.ts +++ b/src/workflow/encodingOptionalInput.ts @@ -68,6 +68,9 @@ export function optionalEncodingPorts( : port.semanticName.replace(/_/gu, ' ').replace(/\b\w/gu, (c) => c.toUpperCase()), type: port.types.length === 1 ? port.types[0] : port.types, display: port.direction, + ...(port.direction === 'output' && ['doc', 'route_state_out'].includes(port.name ?? port.semanticName) + ? { fieldOptions: { encodingImplementationOutput: port.name ?? port.semanticName } } + : {}), ...(port.direction === 'input' ? { isInput: true } : {}), ...(port.roles.includes('component') ? { signalCompatibility: { role: port.semanticName } } : {}), required: false, diff --git a/src/workflow/readWorkflowJson.ts b/src/workflow/readWorkflowJson.ts new file mode 100644 index 00000000..a31f5b4e --- /dev/null +++ b/src/workflow/readWorkflowJson.ts @@ -0,0 +1,28 @@ +import { isRecord } from '../studio/outputContracts'; +import { parseWorkflowPackage } from '../studio/workflowPackage'; +import { workflowSnapshotFromGraph } from '../studio/workflowInference'; +import type { StudioFormState, WorkflowTabSnapshot } from '../studio/types'; + +/** Keep authored names intact, including multilingual labels. Only format a filename fallback. */ +export function workflowExampleDisplayName(path: string, name?: string) { + const basename = + path + .split(/[\\/]/u) + .pop() + ?.replace(/\.json$/iu, '') ?? ''; + if (name && name !== basename) return name; + if (!/^[a-z][a-z0-9]*(?:[-_][a-z0-9]+)+$/u.test(basename)) return basename; + return basename.charAt(0).toUpperCase() + basename.slice(1).replace(/[-_]/gu, ' '); +} + +/** Both file selection and canvas drop open the existing portable formats in a new tab. */ +export async function readWorkflowJson(file: File, edgeType: string, form: StudioFormState) { + const value: unknown = JSON.parse(await file.text()); + const pkg = parseWorkflowPackage(value); + const title = pkg?.title || file.name.replace(/\.json$/i, '') || 'Imported workflow'; + const graph = isRecord(value) && Array.isArray(value.nodes) && Array.isArray(value.edges) ? value : null; + if (graph && isRecord(graph.studioForm)) return { title, snapshot: graph as unknown as WorkflowTabSnapshot }; + if (pkg) return { title, snapshot: pkg.snapshot }; + if (graph) return { title, snapshot: workflowSnapshotFromGraph(graph, edgeType, form) }; + throw new Error('Choose a MoDiff workflow JSON file or an exported workflow package.'); +} diff --git a/src/workflow/useWorkflowDrop.ts b/src/workflow/useWorkflowDrop.ts index 0ffc0e0f..64676d4b 100644 --- a/src/workflow/useWorkflowDrop.ts +++ b/src/workflow/useWorkflowDrop.ts @@ -25,8 +25,7 @@ import { } from '../studio/userBlocks'; import { useUserBlockStore } from '../stores/useUserBlockStore'; import { formatRequestError, requestJson, RequestError } from '../utils/requestJson'; -import { isRecord } from '../studio/outputContracts'; -import { parseWorkflowPackage } from '../studio/workflowPackage'; +import { readWorkflowJson, workflowExampleDisplayName } from './readWorkflowJson'; import { expandedHuggingFaceClusterAtPosition } from '../studio/huggingFaceClusterGraph'; import { customizeHuggingFaceClusterInstance } from '../studio/huggingFaceClusterCustomization'; import { useHuggingFaceNodeLibraryStore } from '../stores/useHuggingFaceNodeLibraryStore'; @@ -80,13 +79,6 @@ function showGraphImportError(message: string) { enqueueSnackbar(message, { variant: 'error', autoHideDuration: message.length * 80 }); } -function savedWorkflowSnapshot(value: unknown) { - if (!isRecord(value) || !Array.isArray(value.nodes) || !Array.isArray(value.edges) || !isRecord(value.studioForm)) { - return null; - } - return value as unknown as WorkflowTabSnapshot; -} - export function useWorkflowDrop({ addNode, createWorkflowTab, @@ -178,30 +170,14 @@ export function useWorkflowDrop({ } return; } - if (!file || file.type !== 'application/json') { - return; + if (!file || (file.type !== 'application/json' && !/\.json$/i.test(file.name))) return; + try { + const { title, snapshot } = await readWorkflowJson(file, edgeType, useStudioStore.getState().form); + createWorkflowTab(title, snapshot, 'import', file.name); + enqueueSnackbar('Workflow opened as a new tab', { variant: 'success', autoHideDuration: 2200 }); + } catch (error) { + showGraphImportError(formatRequestError(error, 'Could not read the workflow JSON.')); } - - const reader = new FileReader(); - reader.onload = (readerEvent) => { - try { - const value = JSON.parse(readerEvent.target?.result as string) as unknown; - const workflowPackage = parseWorkflowPackage(value); - const snapshot = savedWorkflowSnapshot(value) ?? workflowPackage?.snapshot; - const title = workflowPackage?.title || file.name.replace(/\.json$/i, '') || 'Imported workflow'; - createWorkflowTab( - title, - snapshot ?? - workflowSnapshotFromGraph(value as WorkflowGraphDrop, edgeType, useStudioStore.getState().form), - 'import', - file.name, - ); - enqueueSnackbar('Workflow opened as a new tab', { variant: 'success', autoHideDuration: 2200 }); - } catch (error) { - showGraphImportError(formatRequestError(error, 'Could not read the workflow JSON.')); - } - }; - reader.readAsText(file); return; } @@ -232,7 +208,7 @@ export function useWorkflowDrop({ } createWorkflowTab( - data.split(/[\\/]/).pop() || 'Imported graph', + workflowExampleDisplayName(data) || 'Imported graph', workflowSnapshotFromGraph(graph, edgeType, useStudioStore.getState().form), 'import', data, diff --git a/src/workflow/workflowChoices.ts b/src/workflow/workflowChoices.ts index 7b81a7a7..6bce5684 100644 --- a/src/workflow/workflowChoices.ts +++ b/src/workflow/workflowChoices.ts @@ -254,6 +254,9 @@ const TASK_LABELS: Record = { edit_image: 'Image edit', inpaint: 'Inpaint', outpaint: 'Outpaint', + flf2v: 'Video from first and last frames', + first_last_frame_to_video_with_audio: 'Video and audio from first and last frames', + in_context_to_video: 'Generate video with a reference clip', control_image: 'Image conditioning', multi_image_reference_edit: 'Edit with image references', }; diff --git a/src/workflow/workflowModelInventory.ts b/src/workflow/workflowModelInventory.ts index 669d0f2d..7f4395cb 100644 --- a/src/workflow/workflowModelInventory.ts +++ b/src/workflow/workflowModelInventory.ts @@ -257,6 +257,29 @@ export function workflowModelArtifactRows(descriptor: { ]; } +/** Exact variant searches must also select the matching repository inside its row. */ +export function matchingWorkflowModelArtifactRows( + descriptor: Parameters[0] & { pipeline: string }, + search: string, +) { + const rows = workflowModelArtifactRows(descriptor); + const query = search.trim().toLowerCase(); + if (!query) return rows; + const matching = rows.filter((row) => + [ + row.selection?.repo ?? descriptor.repo, + row.label, + row.weightFormat, + ...(row.selection && 'modes' in row.selection && Array.isArray(row.selection.modes) ? row.selection.modes : []), + ] + .join(' ') + .toLowerCase() + .includes(query), + ); + if (matching.length) return matching; + return `${descriptor.label} ${descriptor.pipeline} ${descriptor.repo}`.toLowerCase().includes(query) ? rows : []; +} + export function workflowModelArtifactStatus( row: ReturnType[number], descriptor: { repo: string; label: string; inventory?: WorkflowModelInventory }, diff --git a/src/workflow/workflowTaskBrowser.ts b/src/workflow/workflowTaskBrowser.ts index 70f1d03a..38ef1b46 100644 --- a/src/workflow/workflowTaskBrowser.ts +++ b/src/workflow/workflowTaskBrowser.ts @@ -22,20 +22,56 @@ const DESCRIPTIONS: Record = { outpaint: 'Expand an image beyond its existing borders.', image_upscale: 'Increase image resolution.', control_image: 'Guide image generation with a control image.', + flf2v: 'Choose the opening and closing images to guide the motion between them.', + first_last_frame_to_video_with_audio: 'Connect two supplied images with a moving shot and a synchronized soundtrack.', + in_context_to_video: 'Use a reference clip to guide the shape and motion of a new shot.', + text_to_video: 'Describe a scene, its movement and the camera.', + image_to_video: 'Animate a supplied opening image.', + video_to_video: 'Change the look or motion of a source clip.', text_to_audio: 'Generate audio from a text description.', audio_continuation: 'Continue an existing audio recording.', audio_variation: 'Create a variation of an audio recording.', audio_repaint: 'Regenerate part of an audio recording.', }; +const PRIMARY_IMAGE_TASKS = ['text_to_image', 'image_to_image', 'edit_image', 'inpaint', 'outpaint', 'image_upscale']; + +export function matchesWorkflowTask(card: ReturnType[number], query: string) { + const normalize = (text: string) => text.toLowerCase().replace(/[^a-z0-9]+/g, ''); + const haystack = normalize([card.label, card.task, card.category, card.description].join(' ')); + return query + .trim() + .split(/\s+/) + .every((word) => haystack.includes(normalize(word))); +} + +function taskDescription(task: string) { + if (DESCRIPTIONS[task]) return DESCRIPTIONS[task]; + if (/control|ip_adapter/.test(task)) { + const inputs = + task.includes('ip_adapter') && task.includes('controlnet') + ? 'reference and control images' + : task.includes('ip_adapter') + ? 'a reference image' + : 'a control image'; + return task.includes('inpaint') + ? `Replace a masked area using ${inputs} for guidance.` + : task.includes('edit') || task.includes('image2image') + ? `Edit a source image using ${inputs} for guidance.` + : `Guide generation using ${inputs}.`; + } + return ''; +} + export function workflowTaskCards(choices: WorkflowChoice[]) { - const order = ['text_to_image', 'image_to_image', 'edit_image', 'inpaint', 'outpaint', 'image_upscale']; + const order = PRIMARY_IMAGE_TASKS; return [...new Set(choices.map((c) => c.task))] .map((task) => ({ task, label: workflowTaskLabel(task), category: workflowTaskCategory(task), - description: DESCRIPTIONS[task] ?? `Create a connected ${workflowTaskLabel(task).toLowerCase()} workflow.`, + description: taskDescription(task), + specialist: workflowTaskCategory(task) === 'Image' && !PRIMARY_IMAGE_TASKS.includes(task), downloaded: choices.some((c) => c.task === task && c.cache?.runnable), })) .sort( diff --git a/tests/e2e/live-backend/dialog-layout.spec.ts b/tests/e2e/live-backend/dialog-layout.spec.ts index 7419e2b8..cee586b5 100644 --- a/tests/e2e/live-backend/dialog-layout.spec.ts +++ b/tests/e2e/live-backend/dialog-layout.spec.ts @@ -45,8 +45,8 @@ test('live Model Manager and Settings remain bounded and usable without installi const manager = page.getByTestId('model-manager-dialog'); await expect(manager.getByRole('button', { name: 'Refresh', exact: true })).toBeEnabled({ timeout: 120_000 }); await page.screenshot({ path: `${outputDirectory}/models-all.png` }); - await manager.getByRole('tab', { name: 'Installed', exact: true }).click(); - await expect(manager.getByRole('tab', { name: 'Installed', exact: true })).toHaveAttribute('aria-selected', 'true'); + await manager.getByRole('tab', { name: 'Local files', exact: true }).click(); + await expect(manager.getByRole('tab', { name: 'Local files', exact: true })).toHaveAttribute('aria-selected', 'true'); await manager.getByLabel('Filter models and artifacts').fill('qwen'); await expect(manager.getByTestId('model-manager-installed')).toContainText('Qwen'); await page.screenshot({ path: `${outputDirectory}/models-installed-qwen.png`, animations: 'disabled' }); @@ -145,6 +145,7 @@ test('live Model Manager and Settings remain bounded and usable without installi await page.keyboard.press('Escape'); await expect(workflowSave).toHaveCount(0); await page.getByTestId('topbar-gallery').click(); + await page.getByTestId('gallery-download-menu-0').click(); await page.getByTestId('gallery-download-image-0').click(); const exporter = page.getByTestId('media-export-dialog'); await expect(exporter).toBeVisible(); diff --git a/tests/e2e/live-backend/node-ux-output.spec.ts b/tests/e2e/live-backend/node-ux-output.spec.ts index 98d7f86b..e6418b81 100644 --- a/tests/e2e/live-backend/node-ux-output.spec.ts +++ b/tests/e2e/live-backend/node-ux-output.spec.ts @@ -146,6 +146,7 @@ for (const route of ['native-image', 'standard-mask'] as const) { mimeType: 'text/x-python', buffer: Buffer.from('MODIFF_RUNTIME_ROLE = "data"\n' + code), }); + await modal.getByRole('button', { name: 'Add node', exact: true }).click(); await expect(modal.getByRole('status')).toContainText('Added and enabled'); await modal.getByRole('button', { name: 'Close', exact: true }).click(); customKey = `custom.${name}.LightPaletteDirector`; @@ -262,6 +263,7 @@ test('custom audio source transformation delivers a shorter faded clip', async ( mimeType: 'text/x-python', buffer: await readFile('../MoDiff/examples/custom_nodes/AudioEnvelope.py'), }); + await modal.getByRole('button', { name: 'Add node', exact: true }).click(); await expect(modal.getByRole('status')).toContainText('Added and enabled'); await modal.getByRole('button', { name: 'Close', exact: true }).click(); await page.evaluate(async (file) => { diff --git a/tests/e2e/live-backend/node-ux.spec.ts b/tests/e2e/live-backend/node-ux.spec.ts index ef33b93e..6091cd67 100644 --- a/tests/e2e/live-backend/node-ux.spec.ts +++ b/tests/e2e/live-backend/node-ux.spec.ts @@ -76,6 +76,8 @@ for (const kind of ['local', 'hub', 'git'] as const) { await modal .getByLabel('Choose Python node file') .setInputFiles({ name: name + '.py', mimeType: 'text/x-python', buffer: Buffer.from(python) }); + await expect(modal.getByText(`Selected: ${name}.py`)).toBeVisible(); + await modal.getByRole('button', { name: 'Add node', exact: true }).click(); } else { await modal.getByRole('button', { name: kind === 'hub' ? /Hugging Face/u : /^Git/u }).click(); await modal diff --git a/tests/e2e/studio-mocked/studio-mocked.spec.ts b/tests/e2e/studio-mocked/studio-mocked.spec.ts index 1e24c85d..5ef3e179 100644 --- a/tests/e2e/studio-mocked/studio-mocked.spec.ts +++ b/tests/e2e/studio-mocked/studio-mocked.spec.ts @@ -28,21 +28,26 @@ import type { PipelineSupport } from '../../../src/workflow/operationCatalog'; import type { ApiGraphExport } from '../../../src/types/api'; import { audioPreviewFixture, videoPreviewFixture } from './mediaInputPreviewFixture'; -test('recommended showcases lead with accepted MiniMax media while retaining its separate recipe notice', async ({ - page, -}) => { +test('recommended is a shortlist with a ready filter and a separate model showcase', async ({ page }) => { await bootMockedTemplateBrowser(page); const cards = page.getByTestId(/^template-browser-card-/u); await expect(cards.first()).toHaveAttribute('data-testid', 'template-browser-card-minimax_h3_image_old_town_cat'); - await expect(cards.first().getByText('Approved showcase · separate recipe')).toBeVisible(); - await expect(cards.first().locator('img').first()).toHaveAttribute('src', /h3-emerald-material-transfer\.webp/u); - await expect(cards.first().locator('img').first()).toHaveCSS('object-fit', 'contain'); + expect(await cards.count()).toBeLessThanOrEqual(8); + await expect(cards.first().locator('img[src*="h3-emerald-material-transfer"]')).toHaveCount(0); await expect(page.getByTestId('template-browser-card-minimax_music3_chamber_pop')).toBeVisible(); await cards .first() .getByRole('button', { name: /^View details for /u }) .click(); - await expect(page.getByTestId('template-approved-showcase')).toContainText('template defaults below are unchanged'); + const modelShowcase = page.getByTestId('template-approved-showcase'); + await modelShowcase.getByRole('button').click(); + await expect(modelShowcase.locator('img')).toHaveAttribute('src', /h3-emerald-material-transfer/u); + const detail = page.getByTestId('template-detail-minimax_h3_image_old_town_cat'); + await expect(detail.getByRole('heading', { level: 2 })).toBeVisible(); + await page.getByRole('checkbox', { name: 'Ready on this machine' }).click(); + await expect(page.getByTestId('template-browser-card-minimax_h3_image_old_town_cat')).toHaveCount(0); + await page.getByRole('checkbox', { name: 'Ready on this machine' }).click(); + await expect(cards.first()).toHaveAttribute('data-testid', 'template-browser-card-minimax_h3_image_old_town_cat'); }); for (const [templateId, search, file] of [ @@ -58,12 +63,12 @@ for (const [templateId, search, file] of [ }); await page.getByTestId('template-browser-search').fill(search); const card = page.getByTestId(`template-browser-card-${templateId}`); - await expect(card.getByText('Approved showcase · separate recipe')).toBeVisible(); - await expect(card.locator('img').first()).toHaveAttribute('src', new RegExp(file.replaceAll('.', '\\.'))); - await expect(card.locator('img').first()).toHaveCSS('object-fit', 'contain'); + await expect(card.locator(`img[src$="${file}"]`)).toHaveCount(0); await card.getByRole('button', { name: /^View details for /u }).click(); const review = page.getByTestId('template-approved-showcase'); - await expect(review).toContainText('template defaults below are unchanged'); + await review.getByRole('button').click(); + await expect(review.locator('img')).toHaveAttribute('src', new RegExp(file.replaceAll('.', '\\.'))); + await expect(review).toContainText('A separate recipe created this model showcase'); await expect(review.getByRole('link')).toHaveAttribute('href', /\/showcases\/[a-z0-9.-]+\.json$/u); await expect(review.getByRole('link')).toHaveAttribute('rel', 'noreferrer'); expect(writes).toBe(0); @@ -11090,6 +11095,7 @@ test('resource monitor explains paused allocator readings and restores measured sampledAt: Date.now() / 1000, system: { cpuPercent: 18, ramPercent: 37.5 }, process: {}, + storage: { destinations: { modelCache: { path: '/models/secondary-volume', freeBytes: 80 * 1024 ** 3 } } }, activeDevice: 'cuda:0', accelerators: [ { @@ -11097,7 +11103,10 @@ test('resource monitor explains paused allocator readings and restores measured name: 'Observed GPU', backend: 'rocm', memoryKind: 'shared', - memoryTotalBytes: 16 * 1024 ** 3, + memoryTotalBytes: 2 * 1024 ** 3, + accessibleMemoryTotalBytes: 98 * 1024 ** 3, + accessibleMemoryFreeBytes: 90 * 1024 ** 3, + dedicatedMemoryTotalBytes: 2 * 1024 ** 3, memoryFreeBytes: null, memoryUsedBytes: null, utilizationPercent: 42, @@ -11120,6 +11129,11 @@ test('resource monitor explains paused allocator readings and restores measured await page.evaluate(() => window.__MODIFF_E2E__!.setWebsocketConnection({ sid: 'mock-sid', isConnected: true })); await page.getByTestId('topbar-resource-monitor').click(); const popover = page.getByTestId('topbar-resource-popover'); + await expect(popover).toContainText('98.0 GiB'); + await expect(popover).toContainText('Dedicated reservation'); + await expect(popover).toContainText('2.00 GiB'); + await expect(popover).toContainText('/models/secondary-volume'); + await expect(popover).toContainText('80.0 GiB free'); await expect(popover).toContainText('Allocator readings are paused during generation'); await expect(popover).toContainText('42% (sysfs)'); await expect(popover.getByText('MoDiff allocated', { exact: true }).locator('..')).toContainText('—'); @@ -11363,12 +11377,12 @@ test('optional runtime setup is GET-only and keeps a pending target non-actionab pipelineClass: 'ZImagePipeline', }, }); - const disclosure = page.getByText('Optional runtimes', { exact: true }).locator('..'); + const disclosure = page.getByRole('region', { name: 'Optional runtimes', exact: true }); const profile = disclosure.getByText(/Hugging Face Transformers \+ PEFT/); await expect(disclosure).toBeVisible(); await expect(profile).toContainText('Linux x86-64'); await expect(profile).toContainText('unavailable'); - await expect(profile).toContainText('candidate_unqualified'); + await expect(profile).toContainText('has not yet been qualified'); await expect(disclosure.getByRole('button', { name: /install|activate/i })).toHaveCount(0); expect(mockOptionalRuntimeMutationCalls).toBe(0); @@ -11415,7 +11429,9 @@ test('qualified optional runtime setup requires consent and supports progress, c window.__MODIFF_E2E__!.openWorkspacePanelForTest('setup'); }); - const disclosure = page.getByText('Optional runtimes', { exact: true }).locator('..'); + const disclosure = page.getByRole('region', { name: 'Optional runtimes', exact: true }); + await expect(disclosure.getByRole('button', { name: 'Install', exact: true })).toHaveCount(0); + await disclosure.getByRole('button', { name: 'Show other runtimes' }).click(); const install = disclosure.getByRole('button', { name: 'Install', exact: true }); await expect(install).toBeVisible(); await install.click(); @@ -11472,7 +11488,7 @@ test('base image generation and LoRA dependencies do not expose legacy optional await page.waitForFunction(() => Boolean(window.__MODIFF_E2E__), null, { timeout: 30_000 }); await dismissTaskLauncher(page); await page.evaluate(() => window.__MODIFF_E2E__!.openWorkspacePanelForTest('setup')); - const disclosure = page.getByText('Optional runtimes', { exact: true }).locator('..'); + const disclosure = page.getByRole('region', { name: 'Optional runtimes', exact: true }); await expect(disclosure).toContainText('Image generation and LoRA support are included in the base installation.'); await expect(disclosure.getByRole('button', { name: /^(Install|Activate|Repair)$/ })).toHaveCount(0); await expect(disclosure.getByTestId('optional-runtime-huggingface-transformers-peft-5.14.1-0.20.0')).toHaveCount(0); @@ -11498,7 +11514,7 @@ test('optional runtime activation survives refresh and worker disconnection with }; await page.goto(FRONTEND_URL, { waitUntil: 'domcontentloaded' }); await openSetup(); - const disclosure = page.getByText('Optional runtimes', { exact: true }).locator('..'); + const disclosure = page.getByRole('region', { name: 'Optional runtimes', exact: true }); const progress = disclosure.getByTestId('optional-runtime-progress'); await expect(progress).toContainText('Validating the runtime'); await expect(disclosure.getByRole('button', { name: 'Activate', exact: true })).toHaveCount(0); @@ -11563,7 +11579,7 @@ for (const failure of ['missing', 'malformed', 'identity', 'regressed'] as const await page.waitForFunction(() => Boolean(window.__MODIFF_E2E__), null, { timeout: 30_000 }); await dismissTaskLauncher(page); await page.evaluate(() => window.__MODIFF_E2E__!.openWorkspacePanelForTest('setup')); - const disclosure = page.getByText('Optional runtimes', { exact: true }).locator('..'); + const disclosure = page.getByRole('region', { name: 'Optional runtimes', exact: true }); const error = disclosure.getByTestId('optional-runtime-status-error'); await expect(error).toContainText('Last known progress', { timeout: 3_000 }); if (failure === 'identity') await expect(error).toContainText('job identity changed'); @@ -11604,7 +11620,7 @@ for (const failure of ['disconnect', 'non-JSON503'] as const) { await page.waitForFunction(() => Boolean(window.__MODIFF_E2E__), null, { timeout: 30_000 }); await dismissTaskLauncher(page); await page.evaluate(() => window.__MODIFF_E2E__!.openWorkspacePanelForTest('setup')); - const disclosure = page.getByText('Optional runtimes', { exact: true }).locator('..'); + const disclosure = page.getByRole('region', { name: 'Optional runtimes', exact: true }); const error = disclosure.getByTestId('optional-runtime-status-error'); await expect(error).toContainText('Retrying', { timeout: 3_000 }); await expect(error).toContainText('Last known progress'); @@ -11632,7 +11648,7 @@ test('a broken optional runtime can explicitly reset to base when legacy activat await dismissTaskLauncher(page); await page.evaluate(() => window.__MODIFF_E2E__!.openWorkspacePanelForTest('setup')); - const disclosure = page.getByText('Optional runtimes', { exact: true }).locator('..'); + const disclosure = page.getByRole('region', { name: 'Optional runtimes', exact: true }); const rollback = disclosure.getByRole('button', { name: 'Reset to base', exact: true }); await expect(rollback).toBeVisible(); await rollback.click(); @@ -12000,6 +12016,8 @@ test('template browser keeps compact layouts, opens card details, and loads 12-c await expect(cardDetailsAction).toHaveAttribute('aria-pressed', 'false'); await expect(cardDetailsAction).not.toHaveAttribute('aria-current'); await cardDetailsAction.focus(); + await expect(cards.first()).toHaveAttribute('data-inspected', 'false'); + await cardDetailsAction.press('Enter'); await expect(cards.first()).toHaveAttribute('data-inspected', 'true'); await expect(cardDetailsAction).toHaveAttribute('aria-pressed', 'true'); const detail = page.locator('[data-testid^="template-detail-"]').first(); @@ -12061,6 +12079,7 @@ test('template browser keeps compact layouts, opens card details, and loads 12-c await page.getByTestId('template-browser-dialog').getByRole('button', { name: 'Close' }).click(); await page.setViewportSize({ width: 2048, height: 1024 }); await openTemplateBrowser(page); + await page.getByTestId('template-browser-category-all').click(); await assertLayout({ width: 2048, height: 1024 }); }); @@ -12073,6 +12092,7 @@ test('template details use one narrow scroll pane and split only when the modal await page.setViewportSize({ width: 1280, height: 720 }); await bootMockedTemplateBrowser(page); + await page.getByTestId('template-browser-category-all').click(); const firstCard = page.locator('[data-testid^="template-browser-card-"]').first(); const templateId = (await firstCard.getAttribute('data-testid'))!.replace('template-browser-card-', ''); // Readiness can reorder Recommended cards between this read and the click. @@ -12163,7 +12183,7 @@ test('template details use one narrow scroll pane and split only when the modal expect(independentScroll.gallery).toBe(0); }); -test('template browser attaches Recommended infinite scroll when the dialog portal first mounts', async ({ page }) => { +test('template browser attaches catalog infinite scroll when the dialog portal first mounts', async ({ page }) => { mockInstalledRepos.clear(); mockIncludeQuantizationNode = true; mockIncludeOutpaintNode = true; @@ -12173,15 +12193,9 @@ test('template browser attaches Recommended infinite scroll when the dialog port await expect(page.getByTestId('template-browser-category-recommended')).toHaveAttribute('aria-pressed', 'true'); const cards = page.locator('[data-testid^="template-browser-card-"]'); const gallery = page.getByTestId('template-browser-gallery-scroll'); - // Approved featured cards can render before the independent manifest request - // settles. The infinite-scroll assertion needs the loaded catalogue count. - await expect - .poll(async () => - Number((await page.getByTestId('template-browser-category-recommended').textContent())?.match(/\d+/)?.[0] ?? 0), - ) - .toBeGreaterThan(12); + await page.getByTestId('template-browser-category-all').click(); const totalTemplates = Number( - (await page.getByTestId('template-browser-category-recommended').textContent())?.match(/\d+/)?.[0] ?? 0, + (await page.getByTestId('template-browser-category-all').textContent())?.match(/\d+/)?.[0] ?? 0, ); expect(totalTemplates).toBeGreaterThan(12); @@ -14211,9 +14225,9 @@ test('Experimental public cards create the exact FLUX3 Ceramic Radio graph throu await expect(page.locator('[data-testid^="template-browser-card-flux3_"]')).toHaveCount(2); const template = STUDIO_TEMPLATES.find((item) => item.id === 'flux3_klein_fp8r512_text_to_image')!; const previousWorkflow = await page.evaluate(() => window.__MODIFF_E2E__!.getState().studio.activeWorkflowTabId); - await expect(page.getByTestId(`template-browser-card-${template.id}`)).toContainText( - 'Approved showcase · separate recipe', - ); + await expect( + page.getByTestId(`template-browser-card-${template.id}`).locator('img[src*="flux3-pine-lake-mountains"]'), + ).toHaveCount(0); await page.getByTestId(`template-browser-create-card-${template.id}`).click(); await expect(search).toHaveCount(0); await expect @@ -15248,14 +15262,16 @@ for (const task of ['text_to_image', 'edit_image'] as const) const setup = page .locator('.react-flow__node') .filter({ has: page.getByRole('button', { name: 'Choose model', exact: true }) }); - await setup.getByRole('button', { name: 'Change model / task', exact: true }).click(); - await setup.getByLabel('Replacement pipeline', { exact: true }).click(); + await setup.getByRole('button', { name: 'Choose model', exact: true }).click(); + const picker = page.getByRole('dialog', { name: 'Choose model for Load Models', exact: true }); + await picker.getByRole('button', { name: 'Change model / task', exact: true }).click(); + await picker.getByLabel('Replacement pipeline', { exact: true }).click(); const pipeline = variant === 'flux3-klein' ? 'Flux3DistilledModularPipeline' : 'Flux3ModularPipeline'; await page.getByRole('option', { name: pipeline, exact: true }).click(); - await setup.getByLabel('Replacement model', { exact: true }).click(); + await picker.getByLabel('Replacement model', { exact: true }).click(); const repo = `black-forest-labs/flux-3-image-${variant.replace('flux3-', '')}`; await page.getByRole('option', { name: new RegExp(`${repo}$`, 'u') }).click(); - await setup.getByRole('button', { name: 'Preview model / task change', exact: true }).click(); + await picker.getByRole('button', { name: 'Preview model / task change', exact: true }).click(); const review = page.getByRole('dialog', { name: 'Review model / task change', exact: true }); const expected = { executionProfileId: `${variant}:official-provider:v1`, @@ -15265,7 +15281,7 @@ for (const task of ['text_to_image', 'edit_image'] as const) await expect(review.getByRole('heading', { name: 'Review model / task change', exact: true })).toBeVisible(); await review.getByRole('button', { name: 'Cancel', exact: true }).click(); expect(await read()).toEqual(before); - await setup.getByRole('button', { name: 'Preview model / task change', exact: true }).click(); + await picker.getByRole('button', { name: 'Preview model / task change', exact: true }).click(); await review.getByRole('button', { name: 'Apply graph change', exact: true }).click(); await expect(page.getByRole('button', { name: 'Enable enhancement', exact: true })).toBeVisible(); const changed = await read(); @@ -16694,7 +16710,9 @@ test('mocked Studio keeps model health contextual while exposing every authored await page.getByTestId('template-browser-category-adapters').click(); await expect(page.getByTestId('template-browser-use-flux_lora_oil_painting')).toBeVisible(); await expect(page.getByTestId('template-browser-use-flux_lora_retro_comic')).toBeVisible(); - await expect(page.getByTestId('template-browser-card-flux_lora_ghibli_story')).toContainText('No preview yet'); + await expect(page.getByTestId('template-browser-card-flux_lora_ghibli_story')).toContainText( + 'No approved preview for this recipe', + ); await expect(page.getByTestId('template-usage-warning-flux_lora_ghibli_story')).toBeVisible(); await expect(page.getByTestId('template-usage-warning-flux_lora_oil_painting')).toBeVisible(); await expect(page.getByTestId('template-browser-create-card-flux_lora_ghibli_story')).toContainText('Review terms'); @@ -16714,7 +16732,7 @@ test('mocked Studio keeps model health contextual while exposing every authored .toBe('flux_lora_ghibli_story'); await page.getByTestId('left-open-template-browser').click(); await page.getByTestId('template-browser-category-adapters').click(); - await expect(page.getByTestId('template-browser-create-card-flux_lora_ghibli_story')).toContainText('Use template'); + await expect(page.getByTestId('template-browser-create-card-flux_lora_ghibli_story')).toContainText('Open workflow'); await page.getByTestId('template-browser-category-all').click(); await page.getByTestId('template-browser-search').fill('flux'); await expect(page.getByTestId('template-browser-use-flux_schnell_text_to_image')).toBeVisible(); @@ -16849,7 +16867,7 @@ test('restricted template installation requires the revision-bound terms acknowl expect(mockInstalledRepos.has('ACE-Step/ACE-Step-v1.5-chinese-new-year-LoRA')).toBe(true); await expect(page.getByTestId('template-browser-create-ace_step_chinese_new_year_lora')).toContainText( - 'Use template', + 'Open workflow', ); }); @@ -16870,6 +16888,7 @@ test('Workflows panel exposes raw workflow roots in the unified editor', async ( await page.getByTestId('left-tab-workflows').click(); await page.getByRole('button', { name: 'Example workflows', exact: true }).click(); await expect(page.getByTestId('workflow-list')).toBeVisible({ timeout: 30_000 }); + await page.getByRole('button', { name: 'Browse source folders' }).click(); await expect(page.getByTestId('workflow-source-Saved')).toBeVisible(); await expect(page.getByTestId('workflow-source-Imported')).toBeVisible(); await expect(page.getByTestId('workflow-source-modiff')).toBeVisible(); @@ -16991,7 +17010,8 @@ test('new workflows stay neutral and ordinary node clicks dismiss the launcher', return current.flow.visibleNodeCount; }) .toBeGreaterThan(0); - await expect(page.getByTestId('studio-task-model-summary')).toContainText('Custom graph'); + await expect(page.getByTestId('studio-task-model-summary')).toContainText('Text to image'); + await expect(page.getByTestId('studio-task-model-summary')).toContainText('Z-Image-Turbo'); expect( await page.evaluate(async () => { const [{ useFlowStore }, { blockOperationGraphV2 }] = await Promise.all([ @@ -17477,7 +17497,9 @@ test('mocked full Gallery exposes generated and imported asset controls', async await expect(page.getByTestId('gallery-kind-generated')).toContainText('Generated 2'); await expect(page.getByTestId('gallery-kind-imported')).toContainText('Imported 1'); await expect(page.getByTestId('gallery-output-0')).toBeVisible(); + await page.getByTestId('gallery-download-menu-0').click(); await expect(page.getByTestId('gallery-download-package-0')).toBeVisible(); + await page.keyboard.press('Escape'); await expect(page.getByTestId('gallery-restore-0')).toBeVisible(); await expect(page.getByTestId('gallery-rerun-0')).toBeVisible(); await expect(page.getByTestId('gallery-delete-0')).toBeVisible(); @@ -17703,12 +17725,12 @@ test('mocked Model Manager keeps navigation usable while filtering and refreshin await expect(dialog.getByRole('button', { name: 'Refresh', exact: true })).toBeEnabled(); await expect(dialog.getByTestId('model-manager-installed')).toContainText('Z-Image-Turbo'); const initialPlanCalls = planCalls; - const installedTab = dialog.getByRole('tab', { name: 'Installed', exact: true }); + const installedTab = dialog.getByRole('tab', { name: 'Local files', exact: true }); await installedTab.click(); await expect(dialog.getByTestId('model-manager-supported')).toHaveCount(0); const search = dialog.getByLabel('Filter models and artifacts'); await search.fill('not-an-installed-repository'); - await expect(dialog).toContainText('No installed models match this search.'); + await expect(dialog).toContainText('No local files match this search.'); await dialog .getByTestId('model-manager-installed') .getByRole('button', { name: 'Clear search', exact: true }) @@ -17736,7 +17758,7 @@ test('mocked Model Manager keeps navigation usable while filtering and refreshin }); const scrolledToolbar = await toolbar.boundingBox(); expect(scrolledToolbar!.y).toBeCloseTo(initialToolbar!.y, 0); - await dialog.getByRole('tab', { name: 'Installed', exact: true }).click(); + await dialog.getByRole('tab', { name: 'Local files', exact: true }).click(); expect(await dialog.locator('[data-dialog-scroll-body]').evaluate((element) => element.scrollTop)).toBe(0); await dialog.getByRole('tab', { name: 'All models', exact: true }).click(); const panel = await dialog.boundingBox(); @@ -18138,6 +18160,43 @@ test('mocked Expert Model Manager gates the exact MiniMax Music 3 snapshot on re await expect.poll(() => mockDownloadCalls).toBe(1); }); +test('exact model search removes unrelated variants and identifies metadata-only image snapshots', async ({ page }) => { + const repo = 'nvidia/Cosmos3-Super-Text2Image-4Step'; + await ensureFrontend(); + await installMockRoutes(page); + await page.route('**/hf_cache**', (route) => + route.fulfill({ + json: [ + { + id: repo, + revisions: [{ hash: 'abc' }], + size: 3195, + installed: false, + complete: false, + repair_required: true, + metadata_only: true, + }, + ], + }), + ); + await page.goto(FRONTEND_URL, { waitUntil: 'domcontentloaded' }); + await page.waitForFunction(() => Boolean(window.__MODIFF_E2E__)); + await dismissTaskLauncher(page); + await assertUnifiedWorkspace(page, 'expert'); + await page.getByTestId('topbar-models').click(); + const dialog = page.getByTestId('model-manager-dialog'); + const search = dialog.getByLabel('Filter models and artifacts'); + await search.fill('MiniMax'); + await search.fill(repo.split('/')[1]!); + const local = dialog.getByTestId('model-manager-installed'); + await expect(local).toContainText('Metadata only'); + await expect(local).toContainText('Image'); + const rows = dialog.getByTestId('model-manager-supported').locator('article'); + await expect(rows).toHaveCount(1); + await expect(rows).toHaveAttribute('data-model-repo', repo); + await expect(rows.getByText('Image', { exact: true })).toBeVisible(); +}); + test('mocked Expert Model Manager keeps shared pipeline workflow artifacts separate and exact', async ({ page }) => { const imageToVideo = { modes: ['single_image_to_video'], @@ -20198,7 +20257,7 @@ test('mocked Studio blocks missing models, marks loader red, and keeps local tab await expect(page.getByText('Exact', { exact: true })).toHaveCount(0); await expect(page.getByText('Use recipe', { exact: true })).toHaveCount(0); await expect(page.getByTestId('template-browser-create-card-qwen_low_vram_product_concept')).toContainText( - 'Use template', + 'Open workflow', ); const recommendedCount = Number( (await page.getByTestId('template-browser-category-recommended').textContent())?.match(/\d+/)?.[0] ?? 0, @@ -20262,7 +20321,10 @@ test('mocked Studio blocks missing models, marks loader red, and keeps local tab .poll( async () => (await card.locator('img, video').count()) > 0 || - (await card.getByText('No preview yet', { exact: true }).first().isVisible()), + (await card + .getByText(/No preview yet|No approved preview for this recipe/u) + .first() + .isVisible()), ) .toBe(true); } @@ -20320,7 +20382,9 @@ test('mocked Studio blocks missing models, marks loader red, and keeps local tab 'hardware looks usable', ); await expect(page.getByTestId('template-detail-qwen_outpaint_aspect_template')).toContainText('Included inputs'); - await expect(page.getByTestId('template-browser-create-qwen_outpaint_aspect_template')).toContainText('Use template'); + await expect(page.getByTestId('template-browser-create-qwen_outpaint_aspect_template')).toContainText( + 'Open workflow', + ); await page .getByTestId('template-detail-qwen_outpaint_aspect_template') .getByRole('button', { name: 'Templates' }) @@ -27501,7 +27565,7 @@ test('opaque adapter metadata drives repository, mode, task, and input choices w await repositoryField.getByRole('combobox').fill(''); await repositoryField.getByRole('combobox').blur(); - await repositoryField.getByRole('button', { name: 'Choose model', exact: true }).click(); + await repositoryField.getByRole('button', { name: /^Browse models for /u }).click(); const picker = page.getByRole('dialog', { name: 'Choose model for Repository', exact: true }); const search = picker.getByRole('searchbox', { name: 'Search installed models' }); await search.fill('missing'); @@ -32993,7 +33057,9 @@ test('mocked Gallery displays encoded video geometry and preserves requested con ]); }); await page.getByTestId('topbar-gallery').click(); - await expect(page.getByTestId('gallery-output-0')).toContainText('592x832 | 129 frames | 24fps'); + const card = page.getByTestId('gallery-output-0'); + await card.getByRole('button', { name: 'Result details', exact: true }).click(); + await expect(card).toContainText('592x832 | 129 frames | 24fps'); await page.getByTestId('gallery-view-inspect').click(); const inspect = page.getByTestId('gallery-inspect-view'); await expect(inspect).toContainText('592x832 | 129 frames | 24fps'); @@ -33177,6 +33243,7 @@ test('Gallery displays the observed native model and exports its exact recorded await page.getByTestId('topbar-gallery').click(); await expect(page.getByTestId('gallery-output-0')).toContainText(model!.label); const downloadPromise = page.waitForEvent('download'); + await page.getByTestId('gallery-download-menu-0').click(); await page.getByTestId('gallery-download-package-0').click(); const download = await downloadPromise; const exportedPath = await download.path(); @@ -33508,10 +33575,56 @@ for (const [task, , count, output] of [ }; }, output); await expect.poll(read).toEqual({ count, connected: true, binding: null }); + let savedView: { x: number; y: number; zoom: number } | undefined; + let savedTransform: string | undefined; + const canvasTransform = () => + page.locator('.react-flow__viewport').evaluate((element) => getComputedStyle(element).transform); + if (task === 'text_to_image') { + const pane = page.locator('.react-flow').first(); + await expect + .poll(() => + pane.evaluate((canvas) => { + const rect = canvas.getBoundingClientRect(); + const nodes = [...canvas.querySelectorAll('.react-flow__node')].filter( + (node) => node.getBoundingClientRect().width, + ); + return ( + nodes.length > 0 && + nodes.every((node) => { + const bounds = node.getBoundingClientRect(); + return ( + bounds.left >= rect.left - 2 && + bounds.top >= rect.top - 2 && + bounds.right <= rect.right + 2 && + bounds.bottom <= rect.bottom + 2 + ); + }) + ); + }), + ) + .toBe(true); + const initialZoom = await page.evaluate(() => window.__MODIFF_E2E__!.exportWorkflowGraph().viewport.zoom); + await pane.locator('.react-flow__node header').first().click(); + await page.getByRole('button', { name: 'Focus selected stages', exact: true }).click(); + await expect + .poll(() => page.evaluate(() => window.__MODIFF_E2E__!.exportWorkflowGraph().viewport.zoom)) + .toBeGreaterThan(initialZoom); + savedTransform = await canvasTransform(); + await page.evaluate(async () => { + const { useStudioStore } = await import('/src/stores/useStudioStore.ts'); + useStudioStore.getState().saveActiveWorkflowTab(); + }); + savedView = await page.evaluate(() => window.__MODIFF_E2E__!.exportWorkflowGraph().viewport); + } await page.reload({ waitUntil: 'domcontentloaded' }); await page.waitForFunction(() => Boolean(window.__MODIFF_E2E__?.getState().studio.workflowCanvasHydrated)); await expect(modal).toHaveCount(0); await expect.poll(read).toEqual({ count, connected: true, binding: null }); + if (savedTransform) await expect.poll(canvasTransform).toBe(savedTransform); + if (savedView) + await expect + .poll(() => page.evaluate(() => window.__MODIFF_E2E__!.exportWorkflowGraph().viewport)) + .toEqual(savedView); }); } @@ -34140,7 +34253,7 @@ test('Developer Workflows abandons pending creation when switching documents', a expect(await page.evaluate(() => window.__MODIFF_E2E__!.getState().flow.nodes.length)).toBe(0); await page.getByRole('button', { name: 'New workflow tab', exact: true }).click(); await expect(modal.getByLabel('Search workflow tasks')).toBeVisible(); - await modal.getByRole('button', { name: 'Open workflow', exact: true }).click(); + await modal.getByRole('button', { name: 'Open saved workflow', exact: true }).click(); await expect(page.getByLabel('Search workflows')).toBeVisible(); }); @@ -36740,6 +36853,40 @@ test('restored Block preview renders its current task instead of artifacts retai expect(oldRequests).toBe(0); }); +test('workflow library separates local file import, search and saved entries', async ({ page }) => { + await openDeveloperWorkflows(page); + const launcher = page.getByTestId('task-launcher'); + await expect(launcher.getByRole('button', { name: 'Import workflow file' })).toBeVisible(); + await launcher.getByRole('button', { name: 'Open saved workflow' }).click(); + const saved = page.getByTestId('my-workflows'); + await expect(saved.getByRole('button', { name: 'Import workflow file' })).toBeVisible(); + await page.getByRole('button', { name: 'Example workflows', exact: true }).click(); + const search = page.getByRole('searchbox', { name: 'Search workflows', exact: true }); + await search.fill('nonexistent-example-suffix'); + await page.getByRole('button', { name: 'My workflows', exact: true }).click(); + await expect(search).toHaveValue(''); + await search.fill('no-such-saved-workflow'); + await expect(saved).toContainText('No workflows match this search.'); + await saved.getByRole('button', { name: 'Clear workflow search' }).click(); + await expect(search).toHaveValue(''); + await page.getByRole('button', { name: 'Example workflows', exact: true }).click(); + await expect(search).toHaveValue('nonexistent-example-suffix'); + await page.getByRole('button', { name: 'My workflows', exact: true }).click(); + const input = saved.locator('input[type=file]'); + await input.setInputFiles({ + name: 'invalid.json', + mimeType: 'application/json', + buffer: Buffer.from('{"wrong":true}'), + }); + await expect(page.getByText('Choose a MoDiff workflow JSON file or an exported workflow package.')).toBeVisible(); + await input.setInputFiles({ + name: 'Inspection.json', + mimeType: 'application/json', + buffer: Buffer.from(JSON.stringify({ nodes: [], edges: [], viewport: { x: 10, y: 20, zoom: 0.75 } })), + }); + await expect(page.getByRole('tab', { name: /^Inspection/u })).toBeVisible(); +}); + test('task sidebar preserves the current document and explicit Save promotes its recovery draft', async ({ page }) => { await openDeveloperWorkflows(page); await page.getByTestId('task-launcher').getByTestId('workflow-task-text_to_image').click(); @@ -37388,6 +37535,20 @@ test('reusable canvas Blocks and Python nodes explain their different authoring await page.getByRole('button', { name: 'Add custom node', exact: true }).click(); const custom = page.getByTestId('custom-extensions-dialog'); await expect(custom).toContainText('Add a Python node to run your own code. Save a Block to reuse canvas nodes.'); + const adds: unknown[] = []; + await page.route('**/custom_modules/add', async (route) => { + adds.push(route.request().postDataJSON()); + await route.fulfill({ status: 400, json: { error: 'Fixture stopped at Add' } }); + }); + await custom.getByLabel('Choose Python node file').setInputFiles({ + name: 'SelectedOnly.py', + mimeType: 'text/x-python', + buffer: Buffer.from('# harmless test fixture'), + }); + await expect(custom.getByText('Selected: SelectedOnly.py')).toBeVisible(); + expect(adds).toEqual([]); + await custom.getByRole('button', { name: 'Add node', exact: true }).click(); + await expect.poll(() => adds).toEqual([expect.objectContaining({ kind: 'file', name: 'SelectedOnly' })]); await custom.getByRole('button', { name: 'Close', exact: true }).click(); const read = () => page.evaluate(() => window.__MODIFF_E2E__!.exportWorkflowGraph()); const before = await optionalStageApi(page); @@ -37399,6 +37560,9 @@ test('reusable canvas Blocks and Python nodes explain their different authoring await page.getByTestId('selection-toolbar-create-block').click(); const create = page.getByTestId('create-user-block-dialog'); await expect(create).toContainText('Group the selected canvas nodes into an editable Block.'); + await expect(create.getByRole('checkbox')).toHaveCount(0); + await create.getByRole('button', { name: 'Customize Block interface' }).click(); + await expect(create.getByRole('checkbox').first()).toBeVisible(); await create.getByLabel('Name').fill('Editable canvas stages'); await page.getByTestId('confirm-create-user-block').click(); await expect(create).toHaveCount(0); @@ -37458,7 +37622,7 @@ test('Model Setup and Inspector expose conditioning controls only on eligible im await page.getByRole('button', { name: 'Arrange graph', exact: true }).click(); const card = page.getByTestId(`setup-node-${setup.id}`); const chooser = (root: Locator, field: string) => - root.locator(`[data-key="${field}"]`).getByRole('button', { name: 'Choose model', exact: true }); + root.locator(`[data-key="${field}"]`).getByRole('button', { name: /^Browse models for /u }); await expect(chooser(card, setup.base!)).toBeVisible(); if (conditioning) await expect(chooser(card, setup.conditioning!)).toBeVisible(); else await expect(chooser(card, setup.conditioning!)).toHaveCount(0); @@ -37588,15 +37752,17 @@ test('optional Model Setup and Image Output preserve native stages, task review, const starter = starters.find((item) => item.pipelineClass === request.pipelineClass && item.task === request.task); return route.fulfill({ status: starter ? 200 : 400, json: starter ?? { error: 'Unknown fixture task' } }); }); - await setupNode.getByRole('button', { name: 'Change model / task', exact: true }).click(); - await setupNode.getByLabel('Replacement task', { exact: true }).click(); + await setupNode.getByRole('button', { name: 'Choose model', exact: true }).click(); + const picker = page.getByRole('dialog', { name: 'Choose model for Load Models', exact: true }); + await picker.getByRole('button', { name: 'Change model / task', exact: true }).click(); + await picker.getByLabel('Replacement task', { exact: true }).click(); await page.getByRole('option', { name: 'image to image', exact: true }).click(); - await setupNode.getByRole('button', { name: 'Preview model / task change', exact: true }).click(); + await picker.getByRole('button', { name: 'Preview model / task change', exact: true }).click(); const review = page.getByRole('dialog', { name: 'Review model / task change', exact: true }); await expect(review.getByRole('heading', { name: 'Review model / task change', exact: true })).toBeVisible(); await review.getByRole('button', { name: 'Cancel', exact: true }).click(); expect(await optionalStageApi(page)).toEqual(before); - await setupNode.getByRole('button', { name: 'Preview model / task change', exact: true }).click(); + await picker.getByRole('button', { name: 'Preview model / task change', exact: true }).click(); await review.getByRole('button', { name: 'Apply graph change', exact: true }).click(); await expect .poll( @@ -39177,9 +39343,13 @@ test('mocked Gallery opens every ordered collection image before and after histo await page.getByTestId('topbar-gallery').click(); const gallery = page.getByTestId('gallery-panel'); await expect(gallery.getByTestId('gallery-output-0').getByRole('img')).toHaveCount(3); - // Both existing full-size entry points must preserve the collection. - if (reload === 0) await gallery.getByTestId('gallery-open-0').click(); - else await gallery.getByRole('button', { name: /^Root \| Ordered collection \|/ }).click(); + if (reload) { + await gallery.getByTestId('gallery-view-lineage').click(); + await gallery.getByRole('button', { name: /^Root \| Ordered collection \|/ }).click(); + await expect(gallery.getByTestId('gallery-inspect-view').getByRole('img')).toHaveCount(3); + await gallery.getByTestId('gallery-view-grid').click(); + } + await gallery.getByTestId('gallery-open-0').click(); for (let index = 0; index < 3; index += 1) { const dialog = page.getByRole('dialog', { name: `Image ${index + 1} of 3`, @@ -39292,12 +39462,12 @@ for (const displayType of ['text', 'json'] as const) { await expect(card).toBeVisible(); }; await expect(card.getByTestId('gallery-output-text')).toHaveText(content); + await card.getByRole('button', { name: 'Result details', exact: true }).click(); await expect(card).toContainText(`| ${label} |`); await expect(card).toContainText('Task not captured'); await expect(card).toContainText('Seed not captured'); await expect(card).not.toContainText('Text to image'); await expect(card.locator('img')).toHaveCount(0); - await expect(card.getByRole('button', { name: 'Download PNG package', exact: true })).toHaveCount(0); await expect(card.getByTestId('gallery-compare-0')).toHaveCount(0); await expect(card.getByTestId('gallery-send-edit-0')).toHaveCount(0); await card.getByTestId('gallery-open-0').click(); @@ -39308,7 +39478,8 @@ for (const displayType of ['text', 'json'] as const) { await expect(card.getByTestId('gallery-restore-0')).toBeVisible(); await expect(card.getByTestId('gallery-rerun-0')).toBeVisible(); const packageDownloadPromise = page.waitForEvent('download'); - await card.getByTestId('gallery-download-package-0').click(); + await card.getByTestId('gallery-download-menu-0').click(); + await page.getByTestId('gallery-download-package-0').click(); const packageDownload = await packageDownloadPromise; const metadataPackage = JSON.parse(await fs.readFile((await packageDownload.path())!, 'utf8')); expect(metadataPackage.latestOutput).toMatchObject({ @@ -39322,7 +39493,9 @@ for (const displayType of ['text', 'json'] as const) { await card.getByTestId('gallery-favorite-0').click(); await expect.poll(() => favoritePatches).toBe(1); const downloadPromise = page.waitForEvent('download'); - await card.getByRole('button', { name: `Download ${displayType}`, exact: true }).click(); + await card.getByTestId('gallery-download-menu-0').click(); + await expect(page.getByRole('menuitem', { name: 'Image with workflow (PNG)' })).toHaveCount(0); + await page.getByTestId('gallery-download-image-0').click(); const download = await downloadPromise; expect(download.suggestedFilename()).toMatch(new RegExp(`\\.${extension}$`)); expect(download.suggestedFilename()).toMatch(/^modiff-uncaptured-model-/); @@ -39338,8 +39511,11 @@ for (const displayType of ['text', 'json'] as const) { await expect(gallery.getByTestId('gallery-inspect-view').getByTestId('gallery-output-text')).toHaveText(content); await gallery.getByTestId('gallery-view-compare').click(); await expect(gallery.getByTestId('gallery-compare-view').getByTestId('gallery-output-text')).toHaveText(content); - await gallery.getByTestId('gallery-view-grid').click(); + await gallery.getByTestId('gallery-view-lineage').click(); await gallery.getByRole('button', { name: new RegExp(`^Root \\| Recorded ${label} \\|`) }).click(); + await expect(gallery.getByTestId('gallery-inspect-view').getByTestId('gallery-output-text')).toHaveText(content); + await gallery.getByTestId('gallery-view-grid').click(); + await card.getByTestId('gallery-open-0').click(); await expect(page.getByTestId('media-viewer-text')).toHaveText(content); await closeTextPreview(); await gallery.getByTestId('gallery-refresh-history').click(); @@ -40568,3 +40744,49 @@ it('aliased audio Model Setup renders human offload choices and preserves the se expect(await audioApiSnapshot(page)).toEqual(before); expect(mutations).toEqual([]); }); + +test('workspace drawers preserve canvas width and keyboard navigation works across breakpoints', async ({ page }) => { + await ensureFrontend(); + await installMockRoutes(page); + await page.setViewportSize({ width: 390, height: 850 }); + await page.goto(FRONTEND_URL, { waitUntil: 'domcontentloaded' }); + await page.waitForFunction(() => Boolean(window.__MODIFF_E2E__)); + await page.evaluate(() => window.__MODIFF_E2E__!.setWebsocketConnection({ sid: 'mock-sid', isConnected: true })); + await expect(page.getByTestId('task-launcher')).toBeVisible({ timeout: 60000 }); + await dismissTaskLauncher(page); + const canvas = page.locator('#workflow-canvas'); + for (const width of [390, 768, 1024]) { + await page.setViewportSize({ width, height: 850 }); + await expect(canvas).toBeVisible(); + const before = await canvas.boundingBox(); + expect(before!.width).toBeGreaterThan(width - 80); + await page.getByTestId('left-tab-nodes').click(); + await expect(page.getByTestId('left-panel')).toBeVisible(); + expect((await canvas.boundingBox())!.width).toBe(before!.width); + await page.getByTestId('topbar-toggle-workspace').click(); + await expect(page.getByTestId('left-panel')).toBeHidden(); + await expect(page.getByTestId('studio-panel')).toBeVisible(); + await page.getByTestId('topbar-toggle-workspace').click(); + const more = page.getByRole('button', { name: 'More toolbar actions' }); + await more.click(); + await expect(page.getByTestId('topbar-export')).toBeVisible(); + await more.click(); + expect(await page.evaluate(() => document.documentElement.scrollWidth)).toBe(width); + } + for (const width of [1280, 1440]) { + await page.setViewportSize({ width, height: 900 }); + await expect(page.getByTestId('topbar-export')).toBeVisible(); + expect(await page.evaluate(() => document.documentElement.scrollWidth)).toBe(width); + } + await page.keyboard.press('Control+k'); + const query = page.getByRole('combobox', { name: 'Search commands' }); + await expect(query).toBeFocused(); + await query.fill('open'); + const first = await query.getAttribute('aria-activedescendant'); + await query.press('ArrowDown'); + await expect(query).not.toHaveAttribute('aria-activedescendant', first!); + await query.fill('open setup'); + await query.press('Enter'); + await expect(query).toHaveCount(0); + await expect(page.getByTestId('workspace-tab-setup')).toHaveAttribute('aria-selected', 'true'); +}); From 12b28d664dd0da8d5766cec6a0451fc5ed47ada9 Mon Sep 17 00:00:00 2001 From: Sourav Das Date: Fri, 27 Nov 2026 17:02:46 +0530 Subject: [PATCH 416/440] Locate unobstructed canvas for background gestures in browser checks --- tests/e2e/canvasBackground.ts | 22 +++++++++++++++++++ tests/e2e/dragWireToCanvas.ts | 16 +++----------- .../audio-cluster-acceptance.spec.ts | 3 ++- .../live-backend/conditional-wiring.spec.ts | 3 ++- tests/e2e/studio-mocked/studio-mocked.spec.ts | 15 +++++++------ 5 files changed, 37 insertions(+), 22 deletions(-) create mode 100644 tests/e2e/canvasBackground.ts diff --git a/tests/e2e/canvasBackground.ts b/tests/e2e/canvasBackground.ts new file mode 100644 index 00000000..0374813f --- /dev/null +++ b/tests/e2e/canvasBackground.ts @@ -0,0 +1,22 @@ +import type { Page } from '@playwright/test'; + +export async function emptyCanvasPoint(page: Page) { + const pane = page.locator('.react-flow__pane'); + const point = await pane.evaluate((el) => { + const bounds = el.getBoundingClientRect(); + for (const y of [0.25, 0.75, 0.5, 0.15, 0.85]) { + for (const x of [0.8, 0.2, 0.65, 0.35, 0.5]) { + const point = { x: bounds.left + bounds.width * x, y: bounds.top + bounds.height * y }; + if (document.elementFromPoint(point.x, point.y) === el) return point; + } + } + return null; + }); + if (!point) throw new Error('The workflow canvas has no exposed background for this gesture.'); + return point; +} + +export async function clickCanvasBackground(page: Page) { + const point = await emptyCanvasPoint(page); + await page.mouse.click(point.x, point.y); +} diff --git a/tests/e2e/dragWireToCanvas.ts b/tests/e2e/dragWireToCanvas.ts index 1b4cd4a6..b3a016fd 100644 --- a/tests/e2e/dragWireToCanvas.ts +++ b/tests/e2e/dragWireToCanvas.ts @@ -1,4 +1,5 @@ import { expect, type Locator, type Page } from '@playwright/test'; +import { emptyCanvasPoint } from './canvasBackground'; export async function dragWireToCanvas(page: Page, handle: Locator) { await handle.click({ trial: true }); @@ -23,18 +24,7 @@ export async function dragWireToCanvas(page: Page, handle: Locator) { await page.mouse.down(); await page.mouse.move(x + 18, y + 5, { steps: 4 }); await expect(page.locator('.react-flow__connection')).toBeVisible(); - const pane = page.locator('.react-flow__pane'); - const destination = await pane.evaluate((el) => { - const bounds = el.getBoundingClientRect(); - for (const y of [0.25, 0.75, 0.5, 0.15, 0.85]) { - for (const x of [0.8, 0.2, 0.65, 0.35, 0.5]) { - const point = { x: bounds.left + bounds.width * x, y: bounds.top + bounds.height * y }; - if (document.elementFromPoint(point.x, point.y) === el) return point; - } - } - return null; - }); - expect(destination, 'Workflow canvas has a visible area to drop a wire').toBeTruthy(); - await page.mouse.move(destination!.x, destination!.y, { steps: 18 }); + const destination = await emptyCanvasPoint(page); + await page.mouse.move(destination.x, destination.y, { steps: 18 }); await page.mouse.up(); } diff --git a/tests/e2e/live-backend/audio-cluster-acceptance.spec.ts b/tests/e2e/live-backend/audio-cluster-acceptance.spec.ts index 5248444f..8e4fc857 100644 --- a/tests/e2e/live-backend/audio-cluster-acceptance.spec.ts +++ b/tests/e2e/live-backend/audio-cluster-acceptance.spec.ts @@ -1,3 +1,4 @@ +import { clickCanvasBackground } from '../canvasBackground'; import { expect, test, type Locator, type Page } from '@playwright/test'; import { createHash } from 'node:crypto'; import { mkdir, readFile, writeFile } from 'node:fs/promises'; @@ -162,7 +163,7 @@ async function reconnectExportThroughCanvas(page: Page, rootId: string) { // At fit-to-view a short export wire can sit entirely under its handles. // Move the output through the ordinary header gesture, not a forced click // through an occluding element or an injected edge selection. - await page.locator('.react-flow__pane').click({ position: { x: 50, y: 50 } }); + await clickCanvasBackground(page); const header = page.locator(`.react-flow__node[data-id="${fixture.target}"] header`).first(); await header.click(); const bounds = await header.boundingBox(); diff --git a/tests/e2e/live-backend/conditional-wiring.spec.ts b/tests/e2e/live-backend/conditional-wiring.spec.ts index 0bb8863a..e763f33f 100644 --- a/tests/e2e/live-backend/conditional-wiring.spec.ts +++ b/tests/e2e/live-backend/conditional-wiring.spec.ts @@ -1,3 +1,4 @@ +import { clickCanvasBackground } from '../canvasBackground'; import { expect, test, type Locator, type Page } from '@playwright/test'; import { connect, ready, save } from './qwenDemoGestures'; @@ -197,7 +198,7 @@ test('video Generate follows its adapter and Sequence rejects an image-only load await connect(page, source, handle(sequence, 'target', 'pipeline')); await expect.poll(async () => (await graph(page)).edges).toHaveLength(1); await page.keyboard.press('Escape'); - await page.locator('.react-flow__pane').click({ position: { x: 50, y: 50 } }); + await clickCanvasBackground(page); await expect(page.getByTestId('selection-toolbar')).toBeHidden(); await choose(page, loader, 'pipeline_class', 'WanPipeline'); await expectMode(generate, 'text_to_video'); diff --git a/tests/e2e/studio-mocked/studio-mocked.spec.ts b/tests/e2e/studio-mocked/studio-mocked.spec.ts index 5ef3e179..49595d84 100644 --- a/tests/e2e/studio-mocked/studio-mocked.spec.ts +++ b/tests/e2e/studio-mocked/studio-mocked.spec.ts @@ -1,3 +1,4 @@ +import { clickCanvasBackground } from '../canvasBackground'; import { dragWireToCanvas } from '../dragWireToCanvas'; import { expect, test, type Page, type Locator } from '@playwright/test'; import { execFile, spawn, type ChildProcessWithoutNullStreams } from 'node:child_process'; @@ -15990,7 +15991,7 @@ for (const task of ['text_to_image', 'edit_image'] as const) expect(appended.layout).toEqual(authored.layout); expect(appended.requestLayout).toEqual(authored.layout); expect(appended.parentEdges).toEqual(raw.parentEdges); - await page.locator('.react-flow__pane').click({ position: { x: 30, y: 120 } }); + await clickCanvasBackground(page); await page.keyboard.press('Control+z'); await expect.poll(read).toEqual(authored); await page.keyboard.press('Control+Shift+z'); @@ -35509,7 +35510,7 @@ for (const workspace of ['expert'] as const) { { value: '7319', isRandom: false }, { value: '7319', isRandom: false }, ]); - await page.locator('.react-flow__pane').click({ position: { x: 50, y: 50 } }); + await clickCanvasBackground(page); await page.keyboard.press('Control+z'); await expect.poll(seedValues).toEqual([ { value: 4109, isRandom: false }, @@ -35654,7 +35655,7 @@ for (const workspace of ['expert'] as const) { } } expect(replacedOperations).toEqual(replacementOperations); - await page.locator('.react-flow__pane').click({ position: { x: 50, y: 50 } }); + await clickCanvasBackground(page); await page.keyboard.press('Control+z'); await expect.poll(read).toEqual(before); await page.keyboard.press('Control+Shift+z'); @@ -35674,7 +35675,7 @@ for (const workspace of ['expert'] as const) { expect(changed.definitionSnapshot).toEqual(before.definitionSnapshot); expect(changed.effectiveInterface).toEqual(before.effectiveInterface); expect(changed.values).toEqual(before.values); - await page.locator('.react-flow__pane').click({ position: { x: 50, y: 50 } }); + await clickCanvasBackground(page); await page.keyboard.press('Control+z'); await expect.poll(read).toEqual(previous); await page.keyboard.press('Control+Shift+z'); @@ -35823,7 +35824,7 @@ for (const workspace of ['expert'] as const) { expect( changed.nodes.find((node) => node.id === 'shared-seed-block')!.data.blockInstanceV2!.definitionSnapshot, ).toEqual(before.nodes.find((node) => node.id === 'shared-seed-block')!.data.blockInstanceV2!.definitionSnapshot); - await page.locator('.react-flow__pane').click({ position: { x: 50, y: 50 } }); + await clickCanvasBackground(page); await page.keyboard.press('Control+z'); await expect.poll(async () => (await read()).edges).toEqual(before.edges); await page.keyboard.press('Control+Shift+z'); @@ -37327,7 +37328,7 @@ test('saved Generate shared-input repair preserves execution, Undo, reload and s await page.getByRole('menuitem', { name: 'Merge shared inputs', exact: true }).click(); await expect.poll(count).toBe(1); expect(await optionalStageApi(page)).toEqual(before); - await page.locator('.react-flow__pane').click({ position: { x: 35, y: 80 } }); + await clickCanvasBackground(page); await page.keyboard.press('Control+z'); await expect.poll(count).toBe(2); await page.keyboard.press('Control+Shift+z'); @@ -37432,7 +37433,7 @@ test('saved Encode Inputs repairs three native encoder sockets through the stage await page.getByRole('menuitem', { name: 'Merge shared inputs', exact: true }).click(); await expect.poll(count).toBe(1); expect(await optionalStageApi(page)).toEqual(before); - await page.locator('.react-flow__pane').click({ position: { x: 35, y: 80 } }); + await clickCanvasBackground(page); await page.keyboard.press('Control+z'); await expect.poll(count).toBe(3); await page.keyboard.press('Control+Shift+z'); From dc3c6132147351b14bd99c53229a1877512196b0 Mon Sep 17 00:00:00 2001 From: Sourav Das Date: Fri, 27 Nov 2026 17:58:15 +0530 Subject: [PATCH 417/440] Preserve workspace dialogs and recovery actions through layout changes --- docs/studio-user-flow.md | 2 +- scripts/bundle-budget.mjs | 12 ++--- src/App.tsx | 9 +++- src/components/RuntimeOptimizationsCard.tsx | 34 ++++++++++--- src/components/TopBar.tsx | 47 ++++++++++++++--- tests/e2e/studio-mocked/studio-mocked.spec.ts | 50 +++++++++++++++---- 6 files changed, 123 insertions(+), 31 deletions(-) diff --git a/docs/studio-user-flow.md b/docs/studio-user-flow.md index 5eee4185..ce475bf6 100644 --- a/docs/studio-user-flow.md +++ b/docs/studio-user-flow.md @@ -495,7 +495,7 @@ On shared-memory accelerators, Resource usage shows the accessible pool and dedi reservation separately. The compact gauge names the busiest measured resource. Storage shows free space for model downloads, managed Studio outputs, and default disk offload. Setup lists requirements for the inspected workflow first. Use **Show other runtimes** -to explore additional installations. +to explore additional installations. **Review runtime** opens the package named by a run issue and keeps its controls visible while they have keyboard focus. ### Reviewing a run and navigating the canvas diff --git a/scripts/bundle-budget.mjs b/scripts/bundle-budget.mjs index 790253f4..da224343 100644 --- a/scripts/bundle-budget.mjs +++ b/scripts/bundle-budget.mjs @@ -493,10 +493,10 @@ const SOURCE_LICENSES = new URL('../public/THIRD_PARTY_LICENSES.txt', import.met // 504492/682980/346033 largest/startup/deferred gzip bytes: the reviewed // migration ceilings below still pass with 8/12/304 bytes of headroom. // Compared with the shipped bundle, accessible workspace drawers, shared stage controls, -// task discovery and hardware reporting add 3,504 gzip bytes to the largest startup chunk. +// task discovery and hardware reporting add 3,781 gzip bytes to the largest startup chunk. // Four entry chunks and the existing 64 KiB limit on each deferred chunk are preserved. const MAX_STARTUP_CHUNK_GZIP_BYTES = - 3504 + + 3781 + // The approved native Shap-E preview brings the largest chunk to 575069 gzip bytes. 631 + // SSD weight-loading validation adds 28 measured startup gzip bytes. @@ -820,9 +820,9 @@ const MAX_STARTUP_CHUNK_GZIP_BYTES = // Preserve the measured 384-byte selected-image authoring allowance above. // The same build measures 673359 aggregate startup bytes (+45 over the cap). // Keep 19 bytes of headroom; deferred limits and loading boundaries stay fixed. -// The same build measures 757,243 total startup bytes, up from 753,545. +// The same build measures 757,520 total startup bytes, up from 753,545. const MAX_STARTUP_GZIP_BYTES = - 3698 + + 3975 + // The Shap-E preview and its Gallery descriptor add 634 bytes of startup JavaScript. 634 + // The same change adds 27 overall startup gzip bytes. @@ -1206,9 +1206,9 @@ const MAX_DEFERRED_CHUNK_GZIP_BYTES = 64 * 1024; // Startup code differs only in the three verified Dataset descriptor values. // Retain both startup caps, the independent 64 KiB chunk cap and prior headroom. // Template previews, Gallery and setup stay deferred. Their aggregate moves from -// 357,530 to 361,565 bytes, including the shared workflow-file picker. +// 357,530 to 361,671 bytes, including the shared workflow-file picker. const MAX_DEFERRED_GZIP_BYTES = - 4035 + + 4141 + // The native turntable comparison adds 129 bytes and keeps 41 bytes of headroom. 129 + // Stage discovery, action search and compatible mode changes (355589 -> 357408 gzip bytes). diff --git a/src/App.tsx b/src/App.tsx index 196c1fb0..290e3613 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -142,6 +142,13 @@ export default function App() { } = useSettingsStore(); const leftVisible = isLeftPanelOpen && (!compact || activeDrawer === 'left'); const rightVisible = isRightPanelOpen && (!compact || activeDrawer === 'right'); + const [workspaceWasVisible, setWorkspaceWasVisible] = useState(rightVisible); + useEffect(() => { + if (rightVisible) setWorkspaceWasVisible(true); + else if (!isRightPanelOpen) setWorkspaceWasVisible(false); + }, [rightVisible, isRightPanelOpen]); + // Keep an open workspace's dialogs and draft state alive when a breakpoint hides its drawer. + const mountWorkspace = rightVisible || (isRightPanelOpen && workspaceWasVisible); const closeDrawer = () => { if (activeDrawer === 'left') setLeftPanelOpen(false); if (activeDrawer === 'right') setRightPanelOpen(false); @@ -656,7 +663,7 @@ export default function App() { : 'relative max-w-[40%]', )} > - {rightVisible ? ( + {mountWorkspace ? ( diff --git a/src/components/RuntimeOptimizationsCard.tsx b/src/components/RuntimeOptimizationsCard.tsx index 5a12fc85..7ba78528 100644 --- a/src/components/RuntimeOptimizationsCard.tsx +++ b/src/components/RuntimeOptimizationsCard.tsx @@ -51,6 +51,7 @@ export default function RuntimeOptimizationsCard({ const runtimeStatus = useNodesStore((state) => state.runtimeStatus); const runtimeRequest = useNodesStore((state) => state.discoveryRequests.runtime); const [showOther, setShowOther] = useState(false); + const [focusedRecoveryProfile, setFocusedRecoveryProfile] = useState(null); const [catalog, setCatalog] = useState(null); const [receipts, setReceipts] = useState([]); const [busyId, setBusyId] = useState(null); @@ -265,6 +266,11 @@ export default function RuntimeOptimizationsCard({ const resetToBase = optionalRuntimeCatalog?.processLoadStatus === 'repair_required'; const rollbackAvailable = Boolean(optionalRuntimeCatalog?.previousEnvironmentId || resetToBase); const runtimeBusy = runtimeJob !== null && !['ready', 'failed', 'cancelled'].includes(runtimeJob.status); + const pendingActivation = + runtimeJob?.operation === 'install' && runtimeJob.status === 'ready' && runtimeJob.result?.requiresActivation + ? runtimeJob + : null; + const workerReady = runtimeRequest.status === 'success' && runtimeStatus?.ready === true && @@ -352,7 +358,9 @@ export default function RuntimeOptimizationsCard({ showOther || requiredProfileIds.includes(profile.id) || focusProfiles.includes(profile.id) || - (runtimeBusy && runtimeJob?.profileId === profile.id), + focusedRecoveryProfile === profile.id || + (runtimeBusy && runtimeJob?.profileId === profile.id) || + (pendingActivation?.profileId === profile.id && pendingActivation.specDigest === profile.specDigest), ) .sort( (left, right) => @@ -361,12 +369,8 @@ export default function RuntimeOptimizationsCard({ .map((profile) => { const staged = stagedOptionalRuntimeEnvironment(optionalRuntimeCatalog, profile); const completedEnvironment = - runtimeJob?.operation === 'install' && - runtimeJob.status === 'ready' && - runtimeJob.result?.requiresActivation && - runtimeJob.profileId === profile.id && - runtimeJob.specDigest === profile.specDigest - ? runtimeJob.result?.environmentId + pendingActivation?.profileId === profile.id && pendingActivation.specDigest === profile.specDigest + ? pendingActivation.result?.environmentId : undefined; const canAct = profile.contractState === 'qualified' && profile.cutoverReady; const environmentId = completedEnvironment ?? staged; @@ -386,6 +390,16 @@ export default function RuntimeOptimizationsCard({ className="grid gap-1 text-xs text-modiff-text" data-testid={`optional-runtime-${profile.id}`} data-run-recovery-profile={profile.id} + onFocus={() => { + // The one-shot recovery request clears after focus lands. Keep the + // actual destination mounted while its row or controls have focus. + if (focusProfiles.includes(profile.id)) setFocusedRecoveryProfile(profile.id); + }} + onBlur={(event) => { + if (focusedRecoveryProfile === profile.id && !event.currentTarget.contains(event.relatedTarget)) { + setFocusedRecoveryProfile(null); + } + }} role="group" aria-label={profile.label} tabIndex={-1} @@ -396,7 +410,11 @@ export default function RuntimeOptimizationsCard({ {requiredProfileIds ? requiredProfileIds.includes(profile.id) ? ' Required by this scope.' - : ' Other optional runtime; not a requirement of this scope.' + : focusedRecoveryProfile === profile.id || focusProfiles.includes(profile.id) + ? ' Requested by the run that opened Setup.' + : completedEnvironment + ? ' Installed by the setup job; ready for activation.' + : ' Other optional runtime; not a requirement of this scope.' : ''} {!canAct ? ' Package actions are unavailable for this target. Use the supported base recipe or a separately qualified runtime/platform; installing arbitrary packages cannot enable it.' diff --git a/src/components/TopBar.tsx b/src/components/TopBar.tsx index fa6e19e0..df67d4c7 100644 --- a/src/components/TopBar.tsx +++ b/src/components/TopBar.tsx @@ -107,7 +107,7 @@ type TopBarButtonProps = { disabled?: boolean; icon?: React.ReactNode; loading?: boolean; - onClick?: () => void; + onClick?: React.MouseEventHandler; title?: string; testId?: string; expanded?: boolean; @@ -240,7 +240,37 @@ function TopBar() { setTemplateBrowserOpen, setRunningState, setSettingsOpener, + settingsOpener, + modelManagerOpener, + templateBrowserOpen, + galleryLibraryOpen, } = useSettingsStore(); + const toolbar = useRef(null); + const moreButton = useRef(null); + const dialogOpener = useRef(null); + const toolbarDialogOpen = Boolean(settingsOpener || modelManagerOpener || templateBrowserOpen || galleryLibraryOpen); + + function openToolbarDialog(event: React.MouseEvent, open: () => void) { + dialogOpener.current = event.currentTarget; + open(); + } + + useEffect(() => { + if (toolbarDialogOpen) return; + const previous = dialogOpener.current; + dialogOpener.current = null; + if (!previous || previous.isConnected) return; + // Headless UI restores a surviving opener. A responsive toolbar can unmount it. + const frame = requestAnimationFrame(() => { + if (document.activeElement !== document.body || document.querySelector('[aria-modal="true"]')) return; + const label = previous.getAttribute('aria-label'); + const replacement = Array.from(toolbar.current?.querySelectorAll('button') ?? []).find( + (button) => button.getAttribute('aria-label') === label && button.getClientRects().length > 0, + ); + (replacement ?? moreButton.current)?.focus({ preventScroll: true }); + }); + return () => cancelAnimationFrame(frame); + }, [toolbarDialogOpen]); const { sid, isConnected, connect, disconnect } = useWebsocketStore(); const { currentTask, taskCount, fetchSupervisorTasks } = useTaskStore(); const hfDownloadProgress = useNodesStore((state) => state.hfDownloadProgress); @@ -875,7 +905,7 @@ function TopBar() { )} } - onClick={() => setModelManagerOpener({ nodeId: null, fieldKey: null })} + onClick={(event) => openToolbarDialog(event, () => setModelManagerOpener({ nodeId: null, fieldKey: null }))} testId="topbar-models" title="Models" > @@ -883,18 +913,22 @@ function TopBar() { } - onClick={() => setTemplateBrowserOpen(true)} + onClick={(event) => openToolbarDialog(event, () => setTemplateBrowserOpen(true))} title="Templates" testId="topbar-templates" > {compact && 'Templates'} - } onClick={() => setSettingsOpener(true)} title="Settings"> + } + onClick={(event) => openToolbarDialog(event, () => setSettingsOpener(true))} + title="Settings" + > {compact && 'Settings'} } - onClick={() => setGalleryLibraryOpen(true)} + onClick={(event) => openToolbarDialog(event, () => setGalleryLibraryOpen(true))} testId="topbar-gallery" title="Gallery" tone="quiet" @@ -910,7 +944,7 @@ function TopBar() { ); return ( -
+
MoDiff @@ -1009,6 +1043,7 @@ function TopBar() { {compact ? ( + await page.route('**/showcases/h3-old-town-human-cat.webp', (route) => route.fulfill({ contentType: 'image/svg+xml', body: ``, @@ -176,6 +176,7 @@ for (const [width, imageWidth, imageHeight] of [ await page.evaluate(() => window.__MODIFF_E2E__!.setWebsocketConnection({ sid: 'mock-sid', isConnected: true })); await openTemplateBrowser(page); const assertFitted = async (image: Locator) => { + await expect(image).toHaveAttribute('src', /h3-old-town-human-cat\.webp$/u); await expect.poll(() => image.evaluate((element) => (element as HTMLImageElement).naturalWidth)).toBe(imageWidth); const bounds = await image.evaluate((element) => { const image = element.getBoundingClientRect(); @@ -11594,7 +11595,9 @@ for (const failure of ['missing', 'malformed', 'identity', 'regressed'] as const mockOptionalRuntimeJobState = 'ready'; await error.getByRole('button', { name: 'Retry status', exact: true }).click(); await expect(error).toHaveCount(0); - await expect(disclosure.getByRole('button', { name: 'Activate', exact: true })).toBeVisible(); + const completedProfile = disclosure.getByTestId('optional-runtime-huggingface-transformers-peft-5.14.1-0.20.0'); + await expect(completedProfile.getByRole('button', { name: 'Activate', exact: true })).toBeVisible(); + await expect(disclosure.getByRole('button', { name: 'Show other runtimes', exact: true })).toBeVisible(); expect(reads).toBeGreaterThan(pausedReads); expect(mockOptionalRuntimeMutationCalls).toBe(0); }); @@ -11630,7 +11633,9 @@ for (const failure of ['disconnect', 'non-JSON503'] as const) { unavailable = false; mockOptionalRuntimeJobState = 'ready'; await expect(error).toHaveCount(0); - await expect(disclosure.getByRole('button', { name: 'Activate', exact: true })).toBeVisible(); + const completedProfile = disclosure.getByTestId('optional-runtime-huggingface-transformers-peft-5.14.1-0.20.0'); + await expect(completedProfile.getByRole('button', { name: 'Activate', exact: true })).toBeVisible(); + await expect(disclosure.getByRole('button', { name: 'Show other runtimes', exact: true })).toBeVisible(); expect(mockOptionalRuntimeMutationCalls).toBe(0); }); } @@ -15460,8 +15465,9 @@ async function openPublicFlux3Fp8rWorkflow(page: Page, keepAutomatic = false) { // placement through its real control before exercising a bounded plan. const device = (await publicFlux3FormatSetup(page)).getByLabel('Device', { exact: true }); await device.click(); - await page.getByRole('option', { name: 'cuda:0', exact: true }).click(); - await expect(device).toHaveText('cuda:0'); + const gpuLabel = 'Mock CUDA transport device · CUDA (cuda:0)'; + await page.getByRole('option', { name: gpuLabel, exact: true }).click(); + await expect(device).toHaveText(gpuLabel); } await waitForOperationGraphToSettle(page); return { fixture, forbiddenPosts }; @@ -17837,6 +17843,18 @@ test('mocked dialogs retain keyboard dismissal, token privacy and bounded settin ).toBe(true); await page.keyboard.press('Escape'); await expect(settings).toHaveCount(0); + const more = page.getByRole('button', { name: 'More toolbar actions', exact: true }); + await expect(more).toBeFocused(); + await more.press('Enter'); + await settingsOpener.click(); + await expect(settings).toBeVisible(); + await page.setViewportSize({ width: 1280, height: 720 }); + await expect(page.locator('button[aria-label="More toolbar actions"]')).toHaveCount(0); + await page.keyboard.press('Escape'); + await expect(settingsOpener).toBeFocused(); + await settingsOpener.press('Enter'); + await expect(settings).toBeVisible(); + await page.keyboard.press('Escape'); await expect(settingsOpener).toBeFocused(); expect(mockDownloadCalls).toBe(0); }); @@ -18724,7 +18742,18 @@ test('Run recovery opens the exact required runtime and Auto inspection without }); await page.getByTestId('run-issues-dialog').getByRole('button', { name: 'Review runtime', exact: true }).click(); releaseCatalog(); - await expect(page.getByTestId('optional-runtime-huggingface-transformers-peft-5.14.1-0.20.0')).toBeFocused(); + const focusedProfile = page.getByTestId('optional-runtime-huggingface-transformers-peft-5.14.1-0.20.0'); + // Recovery is a single-use navigation request. Consuming it must not + // unmount the row that just received keyboard focus, even on an empty scope. + await expect + .poll(() => + page.evaluate(async () => { + const { useSettingsStore } = await import('/src/stores/useSettingsStore.ts'); + return useSettingsStore.getState().runRecoveryFocusRequest; + }), + ) + .toBeNull(); + await expect(focusedProfile).toBeFocused(); expect(mockOptionalRuntimeMutationCalls).toBe(0); expect(await page.evaluate(() => window.__MODIFF_E2E__!.exportWorkflowGraph())).toEqual(before); // Seed a plain executable utility graph through the existing fixture. Its @@ -20824,7 +20853,9 @@ test('mocked Studio blanks the canvas while creating a template workflow', async expect(sample.runDisabled).toBe(true); expect(sample.runTitle).toBe('Preparing graph'); }); - await expect(page.getByTestId('studio-task-model-summary')).toContainText('Custom graph'); + const readyTask = page.getByTestId('studio-task-model-summary'); + await expect(readyTask).toContainText('Text to image'); + await expect(readyTask).toContainText('Z-Image-Turbo'); await expect(page.getByTestId('studio-run-readiness')).toContainText('Graph ready · Auto check at Run'); await expect(page.getByTestId('studio-prompt-input')).toHaveCount(0); await expect(page.locator('.react-flow__node').getByRole('textbox', { name: 'Prompt *', exact: true })).toBeVisible(); @@ -30668,8 +30699,9 @@ async function sharedBlockAdoption(page: Page, workspace: 'auto' | 'expert') { ), ) .toBeNull(); - await ordinary.getByRole('banner').hover(); - const ordinaryBounds = await ordinary.getByRole('banner').boundingBox(); + const ordinaryHeader = ordinary.locator('header').first(); + await ordinaryHeader.hover(); + const ordinaryBounds = await ordinaryHeader.boundingBox(); const rootBounds = await root.boundingBox(); expect(ordinaryBounds).toBeTruthy(); expect(rootBounds).toBeTruthy(); From 316d91815e459d161b155c73ee91dfecb4becb55 Mon Sep 17 00:00:00 2001 From: Sourav Das Date: Fri, 27 Nov 2026 21:14:46 +0530 Subject: [PATCH 418/440] Redesign Studio libraries and make stages easier to edit and connect --- .github/workflows/ci.yml | 4 +- AGENTS.md | 4 + README.md | 2 +- docs/frontend-style-guide.md | 2 + docs/modiff-client-architecture.md | 16 + docs/template-gallery-assets.md | 4 + docs/workflow-authoring-ux.md | 4 + scripts/bundle-budget.mjs | 6 + scripts/graph-visuals.test.mjs | 10 +- scripts/image-stage-groups.test.mjs | 72 +++++ scripts/modiff-template.test.mjs | 62 +++- scripts/node-connection-search.test.mjs | 42 +++ src/components/AnyNode.tsx | 32 +- src/components/BlockNode.tsx | 5 +- src/components/BlockNodeV2.tsx | 17 +- src/components/CustomNode.tsx | 64 ++-- src/components/DeveloperWorkflowLauncher.tsx | 124 +++++--- src/components/EncodingNode.tsx | 10 +- src/components/EncodingNodeControls.tsx | 19 +- src/components/EncodingNodeMenu.tsx | 34 +- src/components/EncodingNodeRenderer.tsx | 2 +- src/components/GraphList.tsx | 41 ++- src/components/GraphNodeInputs.tsx | 11 +- src/components/GuidanceNodeControls.tsx | 37 ++- src/components/ModelSetupAdapterControls.tsx | 38 +++ src/components/NodeContent.tsx | 8 +- src/components/NodeDiscoveryFilters.tsx | 12 +- src/components/NodeInspectionDetails.tsx | 2 +- src/components/NodeInspectorSections.tsx | 25 +- src/components/NodeList.tsx | 77 +++-- src/components/NodeSearchDialog.tsx | 127 +++++--- src/components/OperationDiscoveryFields.tsx | 15 +- src/components/OperationModelPicker.tsx | 15 +- src/components/OperationOwnerControls.tsx | 8 +- src/components/StageImplementationDialog.tsx | 2 +- src/components/StageNodeControls.tsx | 2 +- src/components/TemplateBrowserDialog.tsx | 258 ++++++++++----- src/components/VisualStageControls.tsx | 34 +- src/components/VisualStageLibrary.tsx | 301 +++++++++++++----- src/components/Workflow.tsx | 91 +++++- src/fields/SelectField.tsx | 16 +- src/stores/useFlowStore.ts | 33 +- src/stores/useNodeDiscoveryStore.ts | 10 +- src/stores/useSettingsStore.ts | 1 + src/studio/blockRuntimeV2.ts | 14 +- src/studio/blockSchemaV2.ts | 6 +- src/studio/exampleWorkflow.ts | 4 +- src/studio/templateBrowser.ts | 64 +++- src/studio/templateWorkflow.ts | 2 +- src/ui/CustomNodeFrame.tsx | 18 +- src/ui/SearchableSelect.tsx | 164 ++++++++++ src/ui/controls.tsx | 63 ++++ src/workflow/encodingNodePresentation.ts | 7 + src/workflow/gatedNodeControls.ts | 38 +++ src/workflow/graphLayout.ts | 8 +- src/workflow/guidanceNodeFields.ts | 29 ++ src/workflow/modelSetupAdapters.ts | 13 + src/workflow/modelSetupControlPresentation.ts | 35 +- src/workflow/nodeConnectionMatching.ts | 2 + src/workflow/nodeConnectionSearch.ts | 104 ++++-- src/workflow/nodeContentSize.ts | 32 ++ src/workflow/stageEditing.ts | 30 ++ src/workflow/useWorkflowConnections.ts | 3 +- src/workflow/workflowTaskBrowser.ts | 19 ++ .../canvas-control-sizing.spec.ts | 49 +++ .../live-backend/custom-prototyping.spec.ts | 5 +- .../encoding-node-correction.spec.ts | 3 +- tests/e2e/live-backend/node-ux-output.spec.ts | 2 +- tests/e2e/live-backend/node-ux.spec.ts | 2 +- .../remaining-node-corrections.spec.ts | 5 +- .../live-backend/visual-stage-groups.spec.ts | 102 +++++- .../shared-controls/shared-controls.spec.ts | 25 ++ tests/e2e/studio-mocked/studio-mocked.spec.ts | 210 ++++++++---- vite.config.ts | 2 + 74 files changed, 2210 insertions(+), 549 deletions(-) create mode 100644 src/ui/SearchableSelect.tsx create mode 100644 src/workflow/gatedNodeControls.ts create mode 100644 src/workflow/nodeContentSize.ts create mode 100644 src/workflow/stageEditing.ts create mode 100644 tests/e2e/live-backend/canvas-control-sizing.spec.ts diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 1a38f1c2..348df071 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -32,7 +32,7 @@ jobs: uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4 with: repository: sdevil7th/MoDiff - ref: ae44ef9592b69f45d36fa01b25ad6d702d6cbda0 + ref: 9f8011dfa8250a6aeaa20524a157dcdaff3fecce path: MoDiff persist-credentials: false - name: Verify the pinned backend supports native setup @@ -88,7 +88,7 @@ jobs: with: repository: sdevil7th/MoDiff # Match the immutable backend revision in the Client quality job. - ref: ae44ef9592b69f45d36fa01b25ad6d702d6cbda0 + ref: 9f8011dfa8250a6aeaa20524a157dcdaff3fecce path: MoDiff persist-credentials: false - name: Verify the pinned backend supports native setup diff --git a/AGENTS.md b/AGENTS.md index be6e9ea8..334f0305 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -27,6 +27,10 @@ These rules apply to Codex, Copilot-style agents, and any AI tool editing this r ## Generic Workflow Stages +- Use content-aware initial sizes for new ordinary and custom nodes. Preserve explicit manual sizes and saved layouts. Check the editable body after the header and port tray are measured, including after model metadata arrives. +- Put an enabling switch before the fields it controls. Hide settings that the active operation ignores and preserve their values and connected inputs. Keep the primary model selector labelled and distinguish edit-in-place from conversion to independent nodes. +- Base filtered model choices and category showcases on actual available recipes and their approved media. Search long single- and multi-select lists, and resolve wire suggestions against the selected model's real socket contract. + - Keep search metadata with the backend visual stage catalog. Add modes, action names, familiar aliases and typed roles to an existing stage first. Verify name and action searches, click and wire insertion, model switching and saved graph export before adding another public stage. - Reuse a task- or modality-generic node for the same user-visible job across models and workflows. Put model-specific execution and schema differences in the declared backend adapter. diff --git a/README.md b/README.md index 8bb5242a..6a00f69a 100644 --- a/README.md +++ b/README.md @@ -85,7 +85,7 @@ application source pair is: | MoDiff | `1239d1cecd12a7318eb263ca17c34d4fc0445d14` | | MoDiff-client | `c561a01395044fd71c1918e95fb9e9709d8e7601` | -CI backend contract: `ae44ef9592b69f45d36fa01b25ad6d702d6cbda0`. +CI backend contract: `9f8011dfa8250a6aeaa20524a157dcdaff3fecce`. Both CI jobs use this immutable backend revision. It includes the weight-loading controls for saved recipes and the model readiness and storage fields used by the diff --git a/docs/frontend-style-guide.md b/docs/frontend-style-guide.md index 86ac18c5..bbc42bb5 100644 --- a/docs/frontend-style-guide.md +++ b/docs/frontend-style-guide.md @@ -98,6 +98,8 @@ Use or extend these before creating feature-local visual systems: When a feature needs a repeated visual pattern that is not listed here, add a small primitive to `src/ui` and export it from `src/ui/index.ts`. +Shared single- and multiple-choice menus show an inline search field from 16 options onward. Filtering matches the visible label, group and option value. Keep full labels readable inside the popup, preserve selections while filtering, and restore focus to the trigger on Escape. Model filters in Template Browser should offer choices backed by a matching recipe in the current category and filter scope. + Shared primitives own focus, disabled/read-only/required/invalid state, label and description associations, portal layering, and selected-value behavior. Feature and graph wrappers may add domain actions and preserve `nodrag`/`nowheel`, but must not recreate those contracts or import the underlying Headless UI control directly. Standalone actions use the shared 28px compact, 32px dense, 36px normal, or 40px prominent sizes. ## Headless UI Policy diff --git a/docs/modiff-client-architecture.md b/docs/modiff-client-architecture.md index 59d304cb..a2199ad9 100644 --- a/docs/modiff-client-architecture.md +++ b/docs/modiff-client-architecture.md @@ -1,5 +1,12 @@ # MoDiff Client Architecture +Ordinary stages open as a single task node. **Edit stages** or **Edit stage connections** +opens the owned operations on the canvas. **Done editing** returns to the same stage +and keeps edits to its controls and wires. The optional instance presentation flag +`stageEditorOpen` records this explicit view independently of execution. Older +workflows with only the Block expansion flag open as ordinary stages. **Convert to +independent nodes** is a separate, confirmed change to the workflow structure. + Ordinary visual stages follow native model-contract visibility. A scoped metadata reply that enables an editor omitted by the original model adds that editor to the effective instance interface, preserving its value, wires, reusable @@ -1052,6 +1059,15 @@ ID grammar. Canvas search shares these catalog entries, filters and factories with the Nodes library. Registered task Blocks appear in normal search; upstream implementation entries and catalog-only structural Blocks require Show implementation nodes. +The Nodes sidebar groups ordinary stages by task and exposes alternative actions +on the same row. Action search uses the backend catalog vocabulary. The Workflows +sidebar groups starters by output, and its layout follows panel width. +Dragging a typed wire also searches model-specific operation contracts. An +operation or saved stage boundary can supply the pipeline and task when the +user has not selected them. Ambiguous boundaries leave that choice to the user. +A candidate can declare a port absent from its generic registry entry. Selection +resolves the operation, verifies that exact port and direction, and connects it +in one graph edit. An unverified match still requires explicit opt-in. Typed suggestions load `/huggingface/registered-block-interfaces` and match only compiled public ports whose complete route pins agree. Upstream leaf suggestions use the ordinary node factory's declared sockets; containers without public diff --git a/docs/template-gallery-assets.md b/docs/template-gallery-assets.md index 02b9d9e8..b925976c 100644 --- a/docs/template-gallery-assets.md +++ b/docs/template-gallery-assets.md @@ -5,6 +5,10 @@ while Git contains only code, metadata, and SHA-256 identities. Runtime URLs are pinned to one immutable Dataset commit. Public users do not need a Hugging Face token. +The browser groups recipes by task and lists **Advanced & planning** last. This group contains recipes that explicitly declare a custom experimental creator, plus planning-only drafts. Recipes with private previews retain their task categories. Declared creator recipes also appear in their relevant task categories. Model and operation filters follow the recipes in the current results, including independently named checkpoints that use the same execution pipeline. + +Each category opens with one featured recipe when sorting by recommendation. Its preview uses the current recipe's approved Gallery entry. Images with text, transcriptions and music videos can be found by their relevant medium. Template authors can nominate a category lead in `src/studio/templateBrowser.ts`. The browser uses another matching reviewed output when filters exclude the lead. + Approved supplementary showcases are listed in `src/studio/templateShowcases.json`. Their exact media and redacted recipe/review records use this same immutable Dataset, asset inventory, per-file rights ledger and publication verifier. Each diff --git a/docs/workflow-authoring-ux.md b/docs/workflow-authoring-ux.md index ef6d9f4f..8c4a80d1 100644 --- a/docs/workflow-authoring-ux.md +++ b/docs/workflow-authoring-ux.md @@ -507,6 +507,10 @@ uses the current registry to check which model identities the Guider accepts. ## Opening and inspecting a workflow +Fresh tasks, templates and examples measure the controls, open sections and sockets on each node before arranging the graph. This includes nodes supplied by a Python extension. Long forms start with up to 960 pixels of controls. Right-click the stage and choose **Fit height to controls** to expand a stage further. Saved workflows reopen at their authored sizes and positions. + +**Enabled** opens the settings for a guidance operation. Switching it off preserves your settings for the next time you enable it. A modular model loader shows **Offload Mode** when automatic offload is enabled or supplied by a wire. Canvas and inspector controls edit the same stored values. + New task starters fit the visible graph after its stages are measured. Use **Fit workflow in view** to see the whole graph, or select stages and use **Focus selected stages**. These actions move the canvas view and preserve your stage positions. An ordinary stage displays its working ports and wired outputs. **Show implementation ports** reveals available diagnostics, route state and guidance-layer settings. Connecting one keeps its socket visible when the other implementation ports are hidden. **Choose model** on Model Setup opens supported models for the current task. **Change model / task** in the same dialog previews compatible substitutions and the affected wires. Device selectors use the reported accelerator name alongside the exact runtime device ID when available. diff --git a/scripts/bundle-budget.mjs b/scripts/bundle-budget.mjs index da224343..9edbd659 100644 --- a/scripts/bundle-budget.mjs +++ b/scripts/bundle-budget.mjs @@ -495,7 +495,9 @@ const SOURCE_LICENSES = new URL('../public/THIRD_PARTY_LICENSES.txt', import.met // Compared with the shipped bundle, accessible workspace drawers, shared stage controls, // task discovery and hardware reporting add 3,781 gzip bytes to the largest startup chunk. // Four entry chunks and the existing 64 KiB limit on each deferred chunk are preserved. +// Content-sized stages, role-aware wiring and editing add the measured largest-chunk delta. 578843 to 581463 gzip bytes. const MAX_STARTUP_CHUNK_GZIP_BYTES = + 2620 + 3781 + // The approved native Shap-E preview brings the largest chunk to 575069 gzip bytes. 631 + @@ -821,7 +823,9 @@ const MAX_STARTUP_CHUNK_GZIP_BYTES = // The same build measures 673359 aggregate startup bytes (+45 over the cap). // Keep 19 bytes of headroom; deferred limits and loading boundaries stay fixed. // The same build measures 757,520 total startup bytes, up from 753,545. +// The four startup chunks include shared selectors, stage geometry and editing controls. 757520 to 763497 gzip bytes. const MAX_STARTUP_GZIP_BYTES = + 5977 + 3975 + // The Shap-E preview and its Gallery descriptor add 634 bytes of startup JavaScript. 634 + @@ -1207,7 +1211,9 @@ const MAX_DEFERRED_CHUNK_GZIP_BYTES = 64 * 1024; // Retain both startup caps, the independent 64 KiB chunk cap and prior headroom. // Template previews, Gallery and setup stay deferred. Their aggregate moves from // 357,530 to 361,671 bytes, including the shared workflow-file picker. +// The template feature, panel layouts and conditional controls are loaded with their existing surfaces. 361671 to 366508 gzip bytes. const MAX_DEFERRED_GZIP_BYTES = + 4837 + 4141 + // The native turntable comparison adds 129 bytes and keeps 41 bytes of headroom. 129 + diff --git a/scripts/graph-visuals.test.mjs b/scripts/graph-visuals.test.mjs index ae54b67a..e92986ed 100644 --- a/scripts/graph-visuals.test.mjs +++ b/scripts/graph-visuals.test.mjs @@ -7024,10 +7024,8 @@ test('Auto canvas renders the exact workflow graph instead of a projected facade ); assert.match(workflowSource, /isUserBlockExpandedInstance\(\{ nodes, edges \}, node\.id\)/); assert.match(workflowSource, /huggingFaceClusterInstance\?\.presentation\.expanded === true/); - assert.equal( - [...workflowSource.matchAll(/fitView\([\s\S]*?\.finally\(\(\) => \{\s*setWorkflowFocusRequest\(null\);/g)].length, - 2, - ); + assert.match(workflowSource, /duration: 240 \}\)\.finally\(clearCurrentFocus\)/); + assert.match(workflowSource, /workflowFocusRequest === workflowFocusRequest\) setWorkflowFocusRequest\(null\)/); assert.match(workflowSource, /nodesDraggable[\s\S]*nodesConnectable[\s\S]*elementsSelectable/); assert.ok(runPreparation); assert.doesNotMatch(runPreparation, /createOrUpdateStudioGraph/); @@ -10262,11 +10260,11 @@ test('restoring a saved graph preserves its supplied positions until Arrange gra test('template creation arranges exactly once after finalization and measurement while its canvas is suspended', () => { const source = fs.readFileSync(path.join(ROOT, 'src', 'studio', 'templateWorkflow.ts'), 'utf8'); - const arrangeCalls = source.match(/\.arrangeGraph\(\{ history: false \}\)/g) ?? []; + const arrangeCalls = source.match(/\.arrangeGraph\(\{ history: false, fitNewNodeContents: true \}\)/g) ?? []; const finalizationIndex = source.indexOf('await waitForStudioGraphFinalization'); const timeoutFailureIndex = source.indexOf('No incomplete graph was kept'); const measurementIndex = source.indexOf('await waitForGraphNodeMeasurements'); - const arrangeIndex = source.indexOf('.arrangeGraph({ history: false })'); + const arrangeIndex = source.indexOf('.arrangeGraph({ history: false, fitNewNodeContents: true })'); const revealIndex = source.indexOf('setCanvasTransition(null)'); assert.equal(arrangeCalls.length, 1); diff --git a/scripts/image-stage-groups.test.mjs b/scripts/image-stage-groups.test.mjs index a41d09a1..ec5b565a 100644 --- a/scripts/image-stage-groups.test.mjs +++ b/scripts/image-stage-groups.test.mjs @@ -34,6 +34,54 @@ before(async () => { }); after(async () => server?.close()); +test('only the built-in raw guider and modular offload controls follow their literal activation switch', async () => { + const { orderedActiveNodeControls: entries } = await server.ssrLoadModule('/src/workflow/gatedNodeControls.ts'); + const guider = { + guider: { value: 'ClassifierFreeGuidance' }, + guidance_scale: { value: 7 }, + enabled: { value: false }, + result: { display: 'output' }, + }; + const id = 'modules.ModularDiffusers.Guider'; + const keys = (action, shown, full = shown, connected = false) => + entries(action, shown, full, connected).map(([key]) => key); + assert.deepEqual(keys(id, guider), ['enabled', 'result']); + assert.deepEqual(keys(id, { guidance_scale: guider.guidance_scale }, guider), []); + assert.deepEqual(keys(id, guider, guider, true), ['enabled', 'guider', 'guidance_scale', 'result']); + assert.deepEqual(keys(id, guider, { ...guider, enabled: { default: true } }), [ + 'enabled', + 'guider', + 'guidance_scale', + 'result', + ]); + assert.deepEqual(keys('custom.Other.Guider', guider), Object.keys(guider)); + const loader = { auto_offload: { value: false }, offload_mode: { value: 'group_cpu' }, device: { value: 'cpu' } }; + for (const key of ['modules.ModularDiffusers.ModelsLoader', 'modules.ModularDiffusers.AutoModelLoader']) { + assert.deepEqual(keys(key, loader), ['auto_offload', 'device']); + assert.deepEqual(keys(key, loader, loader, true), Object.keys(loader)); + assert.deepEqual( + keys(key, loader, { ...loader, auto_offload: { signal: 'flag', value: false } }), + Object.keys(loader), + ); + assert.equal(loader.offload_mode.value, 'group_cpu'); + } +}); + +test('capability discovery retry belongs only to the reported image or audio capability remedy', () => { + for (const message of [ + 'The selected image model profile is unavailable or ambiguous. Refresh capabilities.', + 'Refresh current audio model capabilities before editing LoRA.', + 'Refresh model capabilities before adding LoRA.', + ]) + assert.equal(adapters.adapterCapabilitiesRefreshable(message), true); + for (const message of [ + null, + 'The selected image model does not support LoRA.', + 'Refresh the selected audio pipeline signal before editing LoRA.', + ]) + assert.equal(adapters.adapterCapabilitiesRefreshable(message), false); +}); + test('whole-pipeline examples keep one-action generation on the ordinary node', () => { const backend = path.resolve(process.env.MODIFF_BACKEND_DIR || '../MoDiff'); const cases = [ @@ -299,6 +347,30 @@ test('fresh native image presents four real stages and keeps guidance, preview a ); }); +test('guidance enable is first and toggling it preserves the authored hidden settings', () => { + const ordinary = ordinaryImage(); + const grouped = groups.groupNewOperationGraph(ordinary); + const instance = grouped.nodes.find((node) => groups.visualOperationGroup(node) === 'inputs').data.blockInstanceV2; + const before = structuredClone(instance); + assert.deepEqual( + guidance.visibleGuidanceFields(instance, new Set()).map((item) => item.field), + ['enabled'], + ); + assert.deepEqual(instance, before); + const activation = guidance.guidanceFields(instance).find((item) => item.field === 'enabled'); + const enabled = runtime.setBlockInstanceValueV2(instance, activation.id, true); + const visible = guidance.visibleGuidanceFields(enabled, new Set()); + assert.equal(visible[0].field, 'enabled'); + assert.equal(visible.find((item) => item.field === 'guidance_scale').param.value, 4); + assert.equal(visible.find((item) => item.field === 'use_original_formulation').param.value, true); + const disabled = runtime.setBlockInstanceValueV2(enabled, activation.id, false); + assert.deepEqual( + guidance.visibleGuidanceFields(disabled, new Set()).map((item) => item.field), + ['enabled'], + ); + assert.equal(disabled.effectiveGraph.graphHash, instance.effectiveGraph.graphHash); +}); + test('unsupported guidance leaves no empty section; audio retains its existing separate presentation', () => { const image = groups.groupNewOperationGraph(ordinaryImage({ withGuidance: false })); assert.equal(image.nodes.length, 4); diff --git a/scripts/modiff-template.test.mjs b/scripts/modiff-template.test.mjs index 97488702..9f717f96 100644 --- a/scripts/modiff-template.test.mjs +++ b/scripts/modiff-template.test.mjs @@ -4447,17 +4447,18 @@ test('template browser exposes the complete workflow catalog across task and ada [ 'recommended', 'all', - 'experimental', 'getting-started', 'image', 'edit', - 'control', 'video', 'audio', 'text', + '3d', + 'control', 'adapters', 'upscale', 'performance', + 'experimental', ], ); @@ -4549,14 +4550,14 @@ test('template browser exposes the complete workflow catalog across task and ada }); assert.deepEqual( completeInventory.map((template) => template.id).sort(), - STUDIO_TEMPLATES.filter(visible) + STUDIO_TEMPLATES.filter((template) => visible(template) || browserModule.hasDeclaredExperimentalCreator(template)) .map((template) => template.id) .sort(), ); assert.ok(completeInventory.length >= defaultInventory.length); }); -test('Experimental discovers all ten reviewed FLUX3 creators without promoting ordinary discovery', () => { +test('Advanced recipes are also discoverable under their tasks while runtime qualifications remain unchanged', () => { const { STUDIO_TEMPLATES, PLANNING_STUDIO_TEMPLATES } = templatesModule; const planning = STUDIO_TEMPLATES.filter((template) => /^flux3_klein(?:_base)?_fp8r512_/.test(template.id)); assert.equal(planning.length, 10); @@ -4591,8 +4592,8 @@ test('Experimental discovers all ten reviewed FLUX3 creators without promoting o assert.equal(shown(planning, { difficulty: 'starter' }).length, 0); for (const category of ['all', 'recommended', 'image', 'edit', 'adapters']) assert.equal( - shown([...STUDIO_TEMPLATES, ...planning], { category }).some((item) => planning.includes(item)), - false, + shown(STUDIO_TEMPLATES, { category }).some((item) => planning.includes(item)), + true, ); for (const template of planning) { assert.equal( @@ -4606,6 +4607,55 @@ test('Experimental discovers all ten reviewed FLUX3 creators without promoting o assert.equal(JSON.stringify(planning), before); }); +test('category features and model choices come from the visible recipes and their reviewed outputs', () => { + const { STUDIO_TEMPLATES } = templatesModule; + const { templateCategoryIds, templateModelOptions, filterStudioTemplates, featuredCategoryTemplate } = browserModule; + const options = { category: 'all', query: '', modelType: 'all', difficulty: 'all', sort: 'recommended' }; + const form = profilesModule.DEFAULT_STUDIO_FORM; + const all = filterStudioTemplates(STUDIO_TEMPLATES, form, options); + for (const { value, label } of templateModelOptions(all)) { + const matches = filterStudioTemplates(all, form, { ...options, modelType: value }); + assert.ok(matches.length, label); + assert.ok( + matches.every((item) => browserModule.templateModelDisplayName(item) === label), + label, + ); + } + const minimax = templateModelOptions(all).filter(({ label }) => /minimax/i.test(label)); + assert.equal(minimax.length, 2); + const lookup = (id) => all.find((item) => item.id === id); + assert.deepEqual(templateCategoryIds(lookup('shap_e_traffic_cone_turntable')), ['3d']); + assert.ok(templateCategoryIds(lookup('qwen_text_rendering')).includes('image')); + assert.ok(templateCategoryIds(lookup('whisper_tiny_blue_cup_transcription')).includes('text')); + for (const category of [ + 'all', + 'image', + 'audio', + 'edit', + 'video', + 'control', + '3d', + 'text', + 'adapters', + 'upscale', + 'performance', + 'getting-started', + ]) { + const rows = filterStudioTemplates(all, form, { ...options, category }); + const featured = featuredCategoryTemplate(rows, category); + assert.ok(rows.includes(featured), category); + if (['all', 'image'].includes(category)) assert.equal(featured.id, 'minimax_h3_image_old_town_cat'); + if (category === 'audio') assert.equal(featured.id, 'minimax_music3_chamber_pop'); + if (rows.length > 1) { + const other = rows.find((item) => item !== featured); + assert.equal( + featuredCategoryTemplate(rows, category, (item) => item === other), + other, + ); + } + } +}); + test('Experimental refuses undeclared or incomplete internal creator selections', () => { const template = templatesModule.STUDIO_TEMPLATES.find((item) => item.id === 'flux3_klein_fp8r512_text_to_image'); const variants = [ diff --git a/scripts/node-connection-search.test.mjs b/scripts/node-connection-search.test.mjs index f85df544..abfbd739 100644 --- a/scripts/node-connection-search.test.mjs +++ b/scripts/node-connection-search.test.mjs @@ -726,3 +726,45 @@ test('every shipped compiled catalog interface agrees with the frontend route an } } }); + +test('a wire from an authored stage finds model-resolved ports absent from its bare registry', () => { + const pipeline = 'ExampleModularPipeline'; + const common = { pipelineClass: pipeline, task: 'text_to_image', binding: { values: {}, pipelineClass: pipeline } }; + const encoder = { ...common, operationId: 'image.encode', nodeKey: 'modules.Sample.Encode', ports: [] }; + const port = { name: 'image_latents', direction: 'input', roles: ['value'], types: ['latents'], hidden: false }; + const denoise = { ...common, operationId: 'image.denoise', nodeKey: 'modules.Sample.Denoise', ports: [port] }; + const bare = definition({ unet: { type: 'model', display: 'input' } }); + const stage = { + node: { + ...definition({}), + blockInstanceV2: { + effectiveInterface: { boundary: { inputs: [], outputs: [] } }, + effectiveGraph: { nodes: [{ nodeId: 'encoder', data: { operationAuthoring: { operation: encoder } } }] }, + }, + }, + handleId: 'image_latents', + }; + assert.deepEqual(search.wireOperationScope(stage, [encoder, denoise]), { pipeline, task: common.task }); + assert.deepEqual(search.wireOperationScope(stage, [denoise]), undefined); + assert.equal(search.operationWirePort(bare, denoise, 'latents', 'source'), 'image_latents'); + assert.equal(search.operationWirePort(bare, denoise, 'string', 'source'), undefined); + assert.equal(search.operationWirePort(bare, denoise, 'latents', 'target'), undefined); + assert.equal( + search.operationWirePort(bare, { ...denoise, ports: [{ ...port, hidden: true }] }, 'latents', 'source'), + undefined, + ); +}); + +test('a dedicated prompt socket wins over a same-type editable prompt earlier in the contract', () => { + const value = { direction: 'input', roles: ['value'], types: ['string'] }; + const op = { + ports: [ + { ...value, name: 'prompt' }, + { ...value, name: 'prompt_input' }, + ], + }; + const bare = definition({ prompt_input: { type: 'string', display: 'input' } }); + assert.equal(search.operationWirePort(bare, op, 'string', 'source'), 'prompt_input'); + const resolved = definition({ ...bare.params, prompt: { type: 'string', display: 'textarea' } }); + assert.equal(search.operationWirePort(resolved, op, 'string', 'source'), 'prompt_input'); +}); diff --git a/src/components/AnyNode.tsx b/src/components/AnyNode.tsx index 814b3fde..c0074ba0 100644 --- a/src/components/AnyNode.tsx +++ b/src/components/AnyNode.tsx @@ -11,6 +11,7 @@ import { sanitizeModiffNodeStyle } from '../theme'; import NodeContent from './NodeContent'; import { AnyNodeFrame, NodeResizeHandle } from '../ui'; +import { contentDrivenNodeStyle } from '../workflow/nodeContentSize'; import { useNodeLayoutSync } from '../utils/useNodeLayoutSync'; import { cx } from '../utils/classNames'; @@ -19,6 +20,7 @@ const AnyNode = memo((node: NodeProps) => { const style = sanitizeModiffNodeStyle(node.data.style, `${node.id}.node`); const setParam = useFlowStore((state) => state.setParamWithHistory); useNodeLayoutSync(node.id, nodeRef); + const explicitHeight = useFlowStore((s) => s.nodes.find((n) => n.id === node.id)?.height); const validationSeverity = node.data.uiState?.validationSeverity; const validationMessage = node.data.uiState?.validationMessage || node.data.uiState?.errorMessage; const isError = validationSeverity === 'error'; @@ -35,7 +37,7 @@ const AnyNode = memo((node: NodeProps) => { ref={nodeRef} id={node.id} className={`${normalizeDataType(`${node.data.module}_${node.data.action}`)} ${dataTypeClass(node.data.category)} module-${normalizeDataType(node.data.module)}`} - nodeStyle={style} + nodeStyle={contentDrivenNodeStyle(style, explicitHeight)} > {validationMessage && ( ) => { )} -
- +
+
+ +
import('./LegacyUserBlockNode')); @@ -37,7 +37,8 @@ PendingBlockInsertionNode.displayName = 'PendingBlockInsertionNode'; /** Generic composites use the Block renderer; encoding has a dedicated node surface. */ const BlockNode = memo((node: NodeProps) => { if (node.data.blockInsertionPendingV2) return ; - if (isFocusedStageNode(node.data.blockInstanceV2)) return ; + if (isFocusedStageNode(node.data.blockInstanceV2) && !isStageEditorOpen(node.data.blockInstanceV2)) + return ; if (node.data.blockInstanceV2) return ; return ( import('./OperationOwnerControls')); @@ -98,6 +100,7 @@ export const BlockNodeV2 = memo((node: NodeProps) => { ); const instance = node.data.blockInstanceV2; + const editingStage = isStageEditorOpen(instance); const view = useMemo(() => { if (!instance) throw new Error(`Block V2 renderer received a node without blockInstanceV2 (${node.id}).`); return blockViewModelV2(instance); @@ -344,7 +347,7 @@ export const BlockNodeV2 = memo((node: NodeProps) => { <> ) => { > - {view.expanded ? ( + {editingStage ? ( + setStageEditorOpen(node.id, false)} + > + Done editing + + ) : view.expanded ? ( & { surface?: NodeSurfa // user-authored size. Feeding it back into textarea minima changed natural // content height inside React Flow's ResizeObserver delivery (110 -> 160), // causing undelivered notifications. Only explicit canvas sizing opts in. - const hasTallExplicitSize = useFlowStore( - (state) => (state.nodes.find((candidate) => candidate.id === node.id)?.height ?? 0) > 360, - ); + const explicitHeight = useFlowStore((state) => state.nodes.find((candidate) => candidate.id === node.id)?.height); + const hasTallExplicitSize = (explicitHeight ?? 0) > 360; const setNodeUiState = useFlowStore((state) => state.setNodeUiState); const [helpAnchor, setHelpAnchor] = useState(null); const [issueAnchor, setIssueAnchor] = useState(null); @@ -385,6 +385,7 @@ const CustomNode = memo((node: NodeProps & { surface?: NodeSurfa recentChangeLabel && 'outline-hf-yellow border-hf-yellow shadow-modiff-panel', )} nodeStyle={style} + explicitHeight={explicitHeight} maxWidth={MAX_NODE_WIDTH} minWidth={minimumNodeWidth} isError={isError} @@ -463,34 +464,37 @@ const CustomNode = memo((node: NodeProps & { surface?: NodeSurfa <>
- - {stage && !node.surface && stage.mode.label !== label && ( -

{stage.mode.label}

- )} - {stage?.mode.guidance && !node.surface && } - {node.surface?.controls ?? ( - useFlowStore.getState().setParam(node.id, param, value, key) - : undefined - } - module={node.data.module || ''} - action={node.data.action || ''} - mode="controls" - executionStatus={node.data.executionStatus} - progressMessage={node.data.progressMessage} - /> - )} -
+
+ + {stage && !node.surface && stage.mode.label !== label && ( +

{stage.mode.label}

+ )} + {stage?.mode.guidance && !node.surface && } + {node.surface?.controls ?? ( + useFlowStore.getState().setParam(node.id, param, value, key) + : undefined + } + module={node.data.module || ''} + action={node.data.action || ''} + mode="controls" + executionStatus={node.data.executionStatus} + progressMessage={node.data.progressMessage} + /> + )} +
+
@@ -658,11 +662,13 @@ const CustomNode = memo((node: NodeProps & { surface?: NodeSurfa icon={} onClick={() => { closeContextMenu(); - resetNodeSize(node.id); + const size = measuredNodeContentSize(nodeRef.current, false); + if (size && node.surface) node.surface.setSize(size.width, size.height); + else resetNodeSize(node.id); scheduleNodeLayoutSync(); }} > - Reset size + {node.surface ? 'Fit height to controls' : 'Reset size'} 0; + const categories = ['All', ...WORKFLOW_CATEGORIES] as const; + function chooseCategory(name: (typeof categories)[number]) { + setCategory(name); + setQuery(''); + setMoreTasks(false); + } const matches = cards.filter( (c) => (searching || category === 'All' || c.category === category) && @@ -133,10 +142,11 @@ export default function DeveloperWorkflowLauncher({ embedded = false }: { embedd ); const content = (
-

- Choose a task to create its connected nodes. Change the model and parameters on the canvas. Models load only - when you run. -

+ {!embedded && ( +

+ Choose a task to create its connected nodes. Models load when you run. +

+ )} {!embedded ? (
setQuery(e.target.value)} onClear={() => setQuery('')} /> -
- {(['All', ...WORKFLOW_CATEGORIES] as const).map((name) => ( - { - setCategory(name); - setQuery(''); - setMoreTasks(false); - }} - > - {name} - - ))} -
+ {embedded ? ( + ({ value: name, label: name === 'All' ? 'All workflows' : name }))} + onValueChange={(value) => { + const next = categories.find((name) => name === value); + if (next) chooseCategory(next); + }} + /> + ) : ( +
+ {categories.map((name) => ( + chooseCategory(name)} + > + {name} + + ))} +
+ )} {searching && (

{WORKFLOW_CATEGORIES.map((name) => ({ name, count: matches.filter((item) => item.category === name).length })) @@ -206,30 +226,48 @@ export default function DeveloperWorkflowLauncher({ embedded = false }: { embedd {error ?

{error}

: null} {busy ?

Creating {workflowTaskLabel(busy).toLowerCase()} workflow…

: null} -
- {visible.map((card) => ( - void create(card.task)} - data-testid={`workflow-task-${card.task}`} - > - - {card.label} - {card.description && ( - {card.description} - )} - - - ))} -
+ {WORKFLOW_CATEGORIES.map((group) => { + const items = visible.filter((card) => card.category === group); + if (!items.length) return null; + return ( +
+ {(searching || category === 'All') && ( +

{group}

+ )} +
+ {items.map((card) => ( + void create(card.task)} + data-testid={`workflow-task-${card.task}`} + > + + {card.label} + {card.description && ( + + {card.description} + + )} + + + + ))} +
+
+ ); + })} {hasMoreTasks && ( setMoreTasks(!moreTasks)}> {moreTasks - ? 'Hide additional image tasks' + ? 'Hide additional tasks' : `More image tasks and guidance (${matches.filter((card) => card.specialist).length})`} )} diff --git a/src/components/EncodingNode.tsx b/src/components/EncodingNode.tsx index dd089939..7887037d 100644 --- a/src/components/EncodingNode.tsx +++ b/src/components/EncodingNode.tsx @@ -26,7 +26,7 @@ const StageNodeControls = lazy(() => import('./StageNodeControls')); const StageImplementationDialog = lazy(() => import('./StageImplementationDialog')); /** Dedicated frontend node; the existing stage contract only binds values, - * persistence and execution. It never expands into a canvas container. */ + * persistence and execution. An explicit edit opens the shared operation editor. */ const EncodingNode = memo((node: NodeProps) => { const instance = node.data.blockInstanceV2!; const guidance = isFocusedGuidance(instance); @@ -83,7 +83,13 @@ const EncodingNode = memo((node: NodeProps) => { ) : guidance ? ( ) : ( - Loading stage controls…

}> + + Loading stage controls… +

+ } + >
), diff --git a/src/components/EncodingNodeControls.tsx b/src/components/EncodingNodeControls.tsx index 646e39bc..9b9e36dc 100644 --- a/src/components/EncodingNodeControls.tsx +++ b/src/components/EncodingNodeControls.tsx @@ -19,7 +19,9 @@ const PromptEnhancementControls = lazy(() => import('./PromptEnhancementControls export default function EncodingNodeControls({ instance, updateStore, + controlIdPrefix, }: { + controlIdPrefix?: string; instance: BlockInstanceV2; updateStore: (param: string, value: unknown, key?: keyof NodeParams) => void; }) { @@ -111,7 +113,7 @@ export default function EncodingNodeControls({
{enhancementOwners.map((owner) => ( @@ -149,7 +151,7 @@ export default function EncodingNodeControls({
{stage.data.label}
0 || controls.length > 0} unmount={false} panelClassName="grid min-w-0 grid-cols-1 gap-2 px-1 pt-2" aria-label={`${group} encoding controls`} > {group === 'Image' && optionalImage ? ( -

- Optional — connect the Image socket to use an image input. Text-only generation remains available - without it. -

+

Connect an image to guide the prompt.

) : null} {promptSources.length ? (

@@ -243,6 +242,7 @@ export default function EncodingNodeControls({

-

- Guidance affects input conditioning and denoising. Closing this section keeps its settings active. -

- + ) : null}
diff --git a/src/components/EncodingNodeMenu.tsx b/src/components/EncodingNodeMenu.tsx index 0a239ffe..fff10b50 100644 --- a/src/components/EncodingNodeMenu.tsx +++ b/src/components/EncodingNodeMenu.tsx @@ -21,6 +21,7 @@ import { visualOperationGroupMedia, visualStagePresentation, } from '../workflow/visualOperationGroupProjection'; +import { setStageEditorOpen } from '../workflow/stageEditing'; import NodeInspectionDetails from './NodeInspectionDetails'; import { operationScope } from '../workflow/operationScope'; import { operationOwnsModel } from '../workflow/operationContracts'; @@ -37,6 +38,7 @@ export default function EncodingNodeMenu({ canSave: boolean; }) { const [docsOpen, setDocsOpen] = useState(false); + const [detachOpen, setDetachOpen] = useState(false); const graph = useFlowStore(useShallow((state) => ({ nodes: state.nodes, edges: state.edges }))); const kind = visualOperationGroup(node)!; const media = visualOperationGroupMedia(node); @@ -98,6 +100,7 @@ export default function EncodingNodeMenu({ const next = unpackVisualOperationGroups(graph, new Set([node.id])).graph; commitOperationGraph(next, context, operationGraphSignature(graph), separateLabel); useStudioStore.getState().saveActiveWorkflowTab(true); + enqueueSnackbar(`Converted ${label} to independent canvas nodes.`, { variant: 'success' }); } catch (error) { enqueueSnackbar(error instanceof Error ? error.message : 'Could not separate stages.', { variant: 'error', @@ -164,8 +167,8 @@ export default function EncodingNodeMenu({ tone="ghost" className="nodrag nowheel whitespace-nowrap" aria-label={`Edit stages: ${label}`} - title="Show individual stages on the canvas. Undo restores this group." - onClick={separate} + title="Edit the operations inside this stage. Choose Done editing to return." + onClick={() => setStageEditorOpen(node.id, true)} > Edit stages @@ -181,7 +184,9 @@ export default function EncodingNodeMenu({ Merge shared inputs ) : null} {kind === 'setup' ? Simplify connected stages : null} - {separateLabel} + requestAnimationFrame(() => setDetachOpen(true))}> + Convert to independent nodes… + {combinationOwner ? ( Combine encoding and Guidance ) : null} @@ -191,6 +196,29 @@ export default function EncodingNodeMenu({ + {detachOpen ? ( + setDetachOpen(false)} + footer={ + <> + setDetachOpen(false)}>Cancel + Convert to independent nodes + + } + > +

+ Remove the stage wrapper and place its operations directly in this workflow. Their settings and connections + are kept. To edit inside the stage and return with Done editing, choose Edit stages instead. +

+
    + {node.data.blockInstanceV2!.effectiveGraph.nodes.map((stage) => ( +
  • {String(stage.data.label || stage.nodeId)}
  • + ))} +
+
+ ) : null} {docsOpen ? ( setDocsOpen(false)}>
diff --git a/src/components/EncodingNodeRenderer.tsx b/src/components/EncodingNodeRenderer.tsx index c4a5d5e9..d825a0fd 100644 --- a/src/components/EncodingNodeRenderer.tsx +++ b/src/components/EncodingNodeRenderer.tsx @@ -18,7 +18,7 @@ export default function EncodingNodeRenderer(props: NodeProps) { fallback={ {visualNodeTitle(catalog, props.data)} -

+

Loading node controls…

Workflows

-

Saved and example graphs

-
- setLibraryTab('start')}> - Start - - setLibraryTab('examples')}> - Example workflows - - setLibraryTab('saved')}> - My workflows - - setLibraryTab('drafts')}> - Recovery drafts - -
+ {libraryTab === 'start' ? (
Loading tasks…

}> diff --git a/src/components/GraphNodeInputs.tsx b/src/components/GraphNodeInputs.tsx index 7feaa1e1..b1688cbb 100644 --- a/src/components/GraphNodeInputs.tsx +++ b/src/components/GraphNodeInputs.tsx @@ -161,7 +161,16 @@ export function GraphNodeInputs({ }} panelClassName="border-t border-modiff-border-subtle p-3" > - {selected ? {controls} : controls} + {selected ? ( + updateParam(node.id, param, value, key)} + > + {controls} + + ) : ( + controls + )} ); }) diff --git a/src/components/GuidanceNodeControls.tsx b/src/components/GuidanceNodeControls.tsx index 1fc64a81..497ade23 100644 --- a/src/components/GuidanceNodeControls.tsx +++ b/src/components/GuidanceNodeControls.tsx @@ -1,17 +1,46 @@ import { useMemo, useState } from 'react'; import type { BlockInstanceV2 } from '../studio/blockSchemaV2'; -import { guidanceFields, updateGuidanceField } from '../workflow/guidanceNodeFields'; +import { useShallow } from 'zustand/react/shallow'; +import { useFlowStore } from '../stores/useFlowStore'; +import { visibleGuidanceFields, updateGuidanceField } from '../workflow/guidanceNodeFields'; import NodeContent from './NodeContent'; -export default function GuidanceNodeControls({ instance }: { instance: BlockInstanceV2 }) { - const fields = useMemo(() => guidanceFields(instance), [instance]); +const advancedGuiderFields = new Set(['guidance_rescale', 'use_original_formulation', 'start', 'stop']); + +export default function GuidanceNodeControls({ + instance, + controlIdPrefix, +}: { + instance: BlockInstanceV2; + controlIdPrefix?: string; +}) { + const outputs = useFlowStore( + useShallow((s) => + s.edges + .filter((edge) => edge.source === instance.instanceId && edge.sourceHandle) + .map((edge) => edge.sourceHandle!), + ), + ); + const fields = useMemo(() => visibleGuidanceFields(instance, new Set(outputs)), [instance, outputs]); const [busy, setBusy] = useState(false); const [error, setError] = useState(null); return (
[f.id, { ...f.param, disabled: busy || f.param.disabled }]))} + controlIdPrefix={controlIdPrefix} + params={Object.fromEntries( + fields.map((f) => [ + f.id, + { + ...f.param, + disabled: busy || f.param.disabled, + ...(advancedGuiderFields.has(f.field) && !f.param.fieldOptions?.controlTier + ? { fieldOptions: { ...f.param.fieldOptions, controlTier: 'advanced' } } + : {}), + }, + ]), + )} module="MoDiff" action="Guidance" mode="controls" diff --git a/src/components/ModelSetupAdapterControls.tsx b/src/components/ModelSetupAdapterControls.tsx index c20c3cad..e5d1e895 100644 --- a/src/components/ModelSetupAdapterControls.tsx +++ b/src/components/ModelSetupAdapterControls.tsx @@ -13,6 +13,7 @@ import { ModiffButton, ModiffDialog, ModiffDisclosure } from '../ui'; import { createNodeFromRegistry } from '../workflow/nodeFactory'; import { commitOperationGraph, operationGraphSignature } from '../workflow/operationGraphTransaction'; import { + adapterCapabilitiesRefreshable, modelSetupAdapterChain, modelSetupAdapterAddUnavailable, modelSetupAdapterEditUnavailable, @@ -47,6 +48,8 @@ export default function ModelSetupAdapterControls({ })), ); const authority = { ...discovered, resourceMode }; + const [refreshing, setRefreshing] = useState(false); + const [refreshStatus, setRefreshStatus] = useState(null); const [draft, setDraft] = useState(null); const [error, setError] = useState(null); const [open, setOpen] = useState(false); @@ -65,6 +68,31 @@ export default function ModelSetupAdapterControls({ } catch (failure) { unavailable = failure instanceof Error ? failure.message : 'Adapter controls are unavailable.'; } + async function refreshCapabilities() { + if (refreshing) return; + setRefreshing(true); + setRefreshStatus(null); + try { + const store = useNodesStore.getState(); + const runtimeRequired = [addUnavailable, editUnavailable].some((m) => m?.includes('evaluation runtime')); + await Promise.all([ + store.fetchNodes(), + store.fetchStudioModelCapabilities(), + ...(runtimeRequired ? [store.fetchRuntimeStatus()] : []), + ]); + const latest = useNodesStore.getState().discoveryRequests; + const failed = [latest.nodes, latest.capabilities, ...(runtimeRequired ? [latest.runtime] : [])].find( + (r) => r.status === 'error', + ); + setRefreshStatus( + failed ? (failed.error ?? 'Could not refresh model capabilities.') : 'Model capabilities refreshed.', + ); + } catch (failure) { + setRefreshStatus(failure instanceof Error ? failure.message : 'Could not refresh model capabilities.'); + } finally { + setRefreshing(false); + } + } function apply(edit: Parameters[2]) { try { const graph = useFlowStore.getState().toObject(); @@ -206,6 +234,16 @@ export default function ModelSetupAdapterControls({ })} {unavailable ?

{unavailable}

: null} {addUnavailable ?

{addUnavailable}

: null} + {[addUnavailable, editUnavailable, unavailable, error].some(adapterCapabilitiesRefreshable) ? ( + void refreshCapabilities()} disabled={refreshing}> + {refreshing ? 'Refreshing capabilities…' : 'Refresh capabilities'} + + ) : null} + {refreshStatus ? ( +

+ {refreshStatus} +

+ ) : null} add()}> Add LoRA diff --git a/src/components/NodeContent.tsx b/src/components/NodeContent.tsx index 417e50d4..7db0514b 100644 --- a/src/components/NodeContent.tsx +++ b/src/components/NodeContent.tsx @@ -15,6 +15,7 @@ import { import { formPatchForAutoCandidate, selectedAutoCandidate } from '../studio/autoResource'; import { NodeParams, type NodeParamOptions, type NodeParamSignal, useNodesStore } from '../stores/useNodeStore'; import { useFlowStore } from '../stores/useFlowStore'; +import { nodeControlGate, orderedActiveNodeControls } from '../workflow/gatedNodeControls'; import { classifyManagedControl } from '../studio/managedControlPolicy'; import { blockRuntimeOptionPresentation, @@ -227,7 +228,12 @@ const NodeContent = memo(function NodeContent({ const signalControls = useFlowStore( useShallow((state) => unresolvedSignalControls(nodeId, nodesRegistry[identity]?.params, state)), ); - const fields = Object.entries(params).flatMap(([key, data]: [string, NodeParams]) => { + const gate = nodeControlGate(identity); + const connectedGate = useFlowStore((state) => + Boolean(gate && state.edges.some((e) => e.target === nodeId && e.targetHandle === gate)), + ); + const activeControls = orderedActiveNodeControls(identity, params, graphNode?.data.params ?? params, connectedGate); + const fields = activeControls.flatMap(([key, data]: [string, NodeParams]) => { const declaredLabel = data.label ?? key.charAt(0).toUpperCase() + key.slice(1); const label = utilityOperation?.continuation && key === 'reference' && declaredLabel === 'Reference Audio' diff --git a/src/components/NodeDiscoveryFilters.tsx b/src/components/NodeDiscoveryFilters.tsx index 0e3b57f0..d92b44ea 100644 --- a/src/components/NodeDiscoveryFilters.tsx +++ b/src/components/NodeDiscoveryFilters.tsx @@ -7,16 +7,22 @@ export default function NodeDiscoveryFilters() { const implementation = view === 'advanced' || view === 'all'; const experimental = view === 'experimental' || view === 'all'; return ( -
+
setView(checked ? (experimental ? 'all' : 'advanced') : experimental ? 'experimental' : 'common') } /> setView(checked ? (implementation ? 'all' : 'experimental') : implementation ? 'advanced' : 'common') diff --git a/src/components/NodeInspectionDetails.tsx b/src/components/NodeInspectionDetails.tsx index fee596dd..e52839e1 100644 --- a/src/components/NodeInspectionDetails.tsx +++ b/src/components/NodeInspectionDetails.tsx @@ -136,7 +136,7 @@ export default function NodeInspectionDetails({ {instance ? (

{isFocusedStageNode(instance) - ? 'Use Edit stages on the node to show and edit its individual operations on the canvas.' + ? 'Edit stages opens the individual operations on the canvas. Done editing returns to the stage with your changes.' : 'Use Expand Block on the canvas to edit this composition. This does not edit the Python implementation.'}

) : null} diff --git a/src/components/NodeInspectorSections.tsx b/src/components/NodeInspectorSections.tsx index 628b1178..454e8098 100644 --- a/src/components/NodeInspectorSections.tsx +++ b/src/components/NodeInspectorSections.tsx @@ -2,8 +2,11 @@ import { operationOwnsModel } from '../workflow/operationContracts'; import { lazy, Suspense, useId, useState, type ReactNode } from 'react'; import type { CustomNodeType } from '../stores/useFlowStore'; import { ModiffTabs, StatusLine } from '../ui'; +import type { NodeParams } from '../stores/useNodeStore'; +import { visualOperationStageKind } from '../workflow/visualOperationGroupProjection'; import { isFocusedGuidance } from '../workflow/encodingNodePresentation'; +const EncodingNodeControls = lazy(() => import('./EncodingNodeControls')); const NodeInspectionDetails = lazy(() => import('./NodeInspectionDetails')); const OperationOwnerControls = lazy(() => import('./OperationOwnerControls')); const GuidanceNodeControls = lazy(() => import('./GuidanceNodeControls')); @@ -18,7 +21,15 @@ const sections: { value: NodeInspectorSection; label: string }[] = [ ]; /** One view of the selected canvas node; no separate settings or schema discovery. */ -export default function NodeInspectorSections({ node, children }: { node: CustomNodeType; children: ReactNode }) { +export default function NodeInspectorSections({ + node, + children, + updateStore, +}: { + node: CustomNodeType; + children: ReactNode; + updateStore: (key: string, value: unknown, property?: keyof NodeParams) => void; +}) { const [section, setSection] = useState('parameters'); const id = useId(); return ( @@ -42,9 +53,17 @@ export default function NodeInspectorSections({ node, children }: { node: Custom ) : null} - {isFocusedGuidance(node.data.blockInstanceV2) ? ( + {node.data.blockInstanceV2 && visualOperationStageKind(node.data.blockInstanceV2) === 'inputs' ? ( + Loading encoding controls…}> + + + ) : isFocusedGuidance(node.data.blockInstanceV2) ? ( Loading guidance controls…}> - + ) : ( children diff --git a/src/components/NodeList.tsx b/src/components/NodeList.tsx index 37374355..a7f4e762 100644 --- a/src/components/NodeList.tsx +++ b/src/components/NodeList.tsx @@ -178,10 +178,6 @@ function NodeList() { () => filterHuggingFaceCatalogSections(allHuggingFaceSections, search, effectiveCatalogView), [allHuggingFaceSections, search, effectiveCatalogView], ); - const huggingFaceCatalogCount = useMemo( - () => huggingFaceSections.reduce((total, section) => total + section.entries.length, 0), - [huggingFaceSections], - ); const runtimeNodeCount = useMemo(() => { if (stageCatalog) return 0; return nodeCatalogEntries(catalogNodes).filter( @@ -352,17 +348,29 @@ function NodeList() {

Nodes

- {stageCatalog ? `${stageResults.length} stages` : `${runtimeNodeCount} nodes`} ·{' '} - {huggingFaceCatalogCount} catalog entries + {stageCatalog ? `${stageResults.length} stages` : `${runtimeNodeCount} nodes`}

+ } + aria-label="Add custom node" + onClick={() => { + setExtensionsView('add'); + setExtensionsKind('local'); + setExtensionsOpen(true); + }} + > + Custom +
setSearch(event.currentTarget.value)} onClear={() => setSearch('')} @@ -370,22 +378,6 @@ function NodeList() {
- { -
- } - onClick={() => { - setExtensionsView('add'); - setExtensionsKind('local'); - setExtensionsOpen(true); - }} - > - Add custom node - -
- } {extensionsOpen ? ( ) : null} -

- Saved Blocks reuse canvas nodes. Custom nodes run your Python code. -

- -
+
{stageCatalog && ( <> - setShowMoreStages(!showMoreStages)}> - {showMoreStages ? 'Everyday stages' : 'Show task stages'} - - + + {!search.trim() && ( + setShowMoreStages(!showMoreStages)} + > + {showMoreStages ? 'Hide additional stages' : 'Show task stages'} + + )} )} +

+ Saved Blocks reuse canvas nodes. Custom nodes run your Python code. +

entry.node.module.startsWith('custom.') && nodeCatalogEntryMatchesSearch(entry, search), + ) + } userBlocks={[...userBlockDefinitionsV2, ...userBlocks]} huggingFaceSections={huggingFaceSections} huggingFaceLoading={!huggingFaceLibraryLoaded} @@ -1003,6 +1009,7 @@ function NodeGroupList({ search, view, userBlocks, + showEmpty, huggingFaceSections, huggingFaceLoading, huggingFaceError, @@ -1018,6 +1025,7 @@ function NodeGroupList({ search: string; view: NodeCatalogView; userBlocks: StoredUserBlockDefinition[]; + showEmpty: boolean; huggingFaceSections: HuggingFaceCatalogSection[]; huggingFaceLoading: boolean; huggingFaceError: string | null; @@ -1138,7 +1146,10 @@ function NodeGroupList({ ) : null}
- {orderedGroups.length === 0 && matchingUserBlocks.length === 0 && huggingFaceSections.length === 0 ? ( + {showEmpty && + orderedGroups.length === 0 && + matchingUserBlocks.length === 0 && + huggingFaceSections.length === 0 ? (
No nodes match this view.
diff --git a/src/components/NodeSearchDialog.tsx b/src/components/NodeSearchDialog.tsx index a6a08013..e659437a 100644 --- a/src/components/NodeSearchDialog.tsx +++ b/src/components/NodeSearchDialog.tsx @@ -1,3 +1,4 @@ +import { nodeConnectorParam } from '../studio/nodeConnectorResolution'; import { nodeDisplayLabel } from '../workflow/nodePresentation'; import { representedStageOperations, visualStageMatches, type StageMatch } from '../studio/visualNodeCatalog'; import { operationsForTask } from '../workflow/operationCatalog'; @@ -25,6 +26,8 @@ import { cx } from '../utils/classNames'; import { connectionSearchEntries, operationSearchEntries, + operationWirePort, + wireOperationScope, prepareOperationConnection, stageOperationMatchesWire, rankConnectionSearchEntries, @@ -45,6 +48,7 @@ import { catalogNodeSearchEntries, createCatalogSearchNode } from '../workflow/c type SearchEntry = { stage?: StageMatch; + port?: string; key: string; label: string; node?: NodeData; @@ -57,7 +61,12 @@ type SearchEntry = { interface NodeSearchDialogProps { anchorPosition: { top: number; left: number } | null; onClose: () => void; - onSelect: (createNode: NodeSearchFactory, signal: AbortSignal, allowUnverified: boolean) => Promise; + onSelect: ( + createNode: NodeSearchFactory, + signal: AbortSignal, + allowUnverified: boolean, + port?: string, + ) => Promise; nodes: Record; dataType?: string | string[]; handleType?: 'source' | 'target' | null | undefined; @@ -73,8 +82,14 @@ const NodeSearchDialog = ({ handleType, origin, }: NodeSearchDialogProps) => { - const { pipeline, task, view, support } = useNodeDiscovery(); + const discovery = useNodeDiscovery(); + const { view, support } = discovery; const operations = useNodesStore((s) => s.operationContracts); + const inferred = useMemo(() => wireOperationScope(origin, operations), [origin, operations]); + const pipeline = discovery.selection ? discovery.pipeline : (inferred?.pipeline ?? discovery.pipeline); + const task = discovery.selection ? discovery.task : (inferred?.task ?? discovery.task); + const originField = origin && nodeConnectorParam({ data: origin.node }, origin.handleId); + const portLabel = originField?.label || origin?.handleId; const stageCatalog = useNodesStore((s) => s.visualNodeCatalog); const resolve = useNodesStore((s) => s.resolveOperation); const workflow = useStudioStore((s) => s.activeWorkflowTabId); @@ -168,7 +183,7 @@ const NodeSearchDialog = ({ const filteredNodes = useMemo(() => { const stages = stageCatalog ? visualStageMatches(stageCatalog, nodes, searchQuery, { - all: view === 'advanced' || view === 'all', + all: Boolean(handleType) || view === 'advanced' || view === 'all', targeted: Boolean(handleType), showModelHints: !handleType, operations: pipeline ? operationsForTask(operations, pipeline, task) : undefined, @@ -181,13 +196,27 @@ const NodeSearchDialog = ({ : []; const represented = representedStageOperations(stages); const entries = [ - ...stages.map((stage) => ({ - stage, - key: 'stage:' + stage.stage.id, - label: stage.stage.label, - node: stage.definition, - operation: stage.operation, - })), + ...stages.flatMap((stage) => { + // A wire can match more than one action in the same generic stage. + // Preserve the search winner first and expose each other genuine choice. + const choices = handleType + ? [ + stage, + ...stage.choices.filter( + (choice) => + (choice.mode !== stage.mode || choice.operation !== stage.operation) && + (!searchQuery.trim() || choice.mode.label.toLowerCase().includes(searchQuery.trim().toLowerCase())), + ), + ] + : [stage]; + return choices.map((choice) => ({ + stage: { ...stage, ...choice, detail: choice === stage ? stage.detail : choice.mode.label }, + key: ['stage', stage.stage.id, choice.mode.node, choice.mode.label, choice.operation?.operationId].join(':'), + label: stage.stage.label, + node: choice.definition, + operation: choice.operation, + })); + }), ...operationSearchEntries( operations, pipeline, @@ -234,7 +263,15 @@ const NodeSearchDialog = ({ ) .map((entry) => ({ ...entry, label: entry.node.label })), ]; - return rankConnectionSearchEntries(entries, dataType, handleType, origin); + const pinned = entries.map((entry: SearchEntry) => ({ + ...entry, + port: handleType + ? entry.operation + ? operationWirePort(entry.node, entry.operation, dataType, handleType, origin, allowUnverified) + : entry.node && matchingNodeHandleForDrop(entry.node, dataType, handleType, origin, allowUnverified)?.[0] + : undefined, + })); + return rankConnectionSearchEntries(pinned, dataType, handleType, origin); }, [ stageCatalog, catalogNodes, @@ -302,7 +339,7 @@ const NodeSearchDialog = ({ const operation = entry.operation; const node = await resolve(operation, request.signal); const data = withOperationAuthoring( - prepareOperationConnection(node, operation, dataType, handleType), + prepareOperationConnection(node, operation, dataType, handleType, entry.port), operation, ); createNode = (position) => @@ -325,7 +362,7 @@ const NodeSearchDialog = ({ } else return; if (request.signal.aborted || useNodeDiscoveryStore.getState().selection !== selection) return; assertWorkflowOperationContext(context, { includeForm: Boolean(entry.operation && entry.stage && !selection) }); - await onSelect(createNode, request.signal, allowUnverified); + await onSelect(createNode, request.signal, allowUnverified, entry.port); if (request.signal.aborted) return; handleClose(); } catch (error) { @@ -401,7 +438,13 @@ const NodeSearchDialog = ({ {entry.operation.pipelineClass} · {entry.operation.task?.replace(/_/gu, ' ')}
) : null} - {entry.node?.description ? ( + {entry.port && ( +
+ {handleType === 'source' ? 'Input' : 'Output'} ·{' '} + {entry.node?.params[entry.port]?.label || entry.port.replace(/_/gu, ' ')} +
+ )} + {!entry.stage && !entry.port && entry.node?.description ? (
{entry.node.description.substring(0, 72) + (entry.node.description.length > 72 ? '...' : '')}
@@ -434,6 +477,14 @@ const NodeSearchDialog = ({ panelClassName="flex h-[min(512px,calc(100dvh-16px))] w-[368px] flex-col overflow-hidden border-4 border-modiff-bg bg-modiff-panel" placement="bottom-start" > + {handleType && portLabel && ( +
+

+ {handleType === 'source' ? 'Connect output' : 'Connect input'} · {portLabel} +

+ {dataType &&

{[dataType].flat().join(' / ')}

} +
+ )}
) : null} - + {resolutionError ? (

{resolutionError} @@ -511,10 +562,6 @@ const NodeSearchDialog = ({ onCheckedChange={setAllowUnverified} label="Show unverified matches (generic or missing types)" /> -

- {handleType === 'source' ? 'Nodes with matching input port types' : 'Nodes with matching output port types'} -

-

Model, shape, and custom-code constraints are checked when declared and again at Run.

) : null}
@@ -527,38 +574,40 @@ const NodeSearchDialog = ({
{builtInEntries.length ? ( builtInEntries.map((entry, index) => renderEntry(entry, index)) - ) : ( + ) : customEntries.length ? null : (
{handleType ? 'No compatible nodes found' : 'No results found'}
- {handleType ? 'Try another search or start from a different port.' : 'Try a different search query'} + {searchQuery.trim() + ? 'Clear the search to see other matches.' + : handleType + ? pipeline + ? 'This model and task have no matching built-in port. Try another pipeline or an enabled custom node with the same socket type.' + : 'Choose a pipeline to check model-specific ports, or use an enabled custom node with the same socket type.' + : 'Try a different search query.'}
)}
) : null}
-
- {sectionHeader('Custom nodes', customEntries.length, customOpen, () => { - setCustomOpen((open) => !open); - setSelectedIndex(0); - })} - {customOpen ? ( -
- {customEntries.length ? ( - customEntries.map((entry, index) => + {customEntries.length > 0 && ( +
+ {sectionHeader('Custom nodes', customEntries.length, customOpen, () => { + setCustomOpen((open) => !open); + setSelectedIndex(0); + })} + {customOpen ? ( +
+ {customEntries.map((entry, index) => renderEntry(entry, (builtInOpen ? builtInEntries.length : 0) + index), - ) - ) : ( -
- No matching enabled custom nodes -
- )} -
- ) : null} -
+ )} +
+ ) : null} +
+ )}
); diff --git a/src/components/OperationDiscoveryFields.tsx b/src/components/OperationDiscoveryFields.tsx index a37898b0..d9700d06 100644 --- a/src/components/OperationDiscoveryFields.tsx +++ b/src/components/OperationDiscoveryFields.tsx @@ -1,8 +1,19 @@ import { ModiffFieldShell, ModiffSelect } from '../ui'; import { useNodeDiscovery } from '../stores/useNodeDiscoveryStore'; -export default function OperationDiscoveryFields({ inPopover = false }: { inPopover?: boolean }) { - const { pipeline, task, entry, support, select } = useNodeDiscovery(); +export default function OperationDiscoveryFields({ + inPopover = false, + inferred, +}: { + inPopover?: boolean; + inferred?: { pipeline: string; task: string }; +}) { + const discovery = useNodeDiscovery(); + const { support, select } = discovery; + const scope = discovery.selection ? undefined : inferred; + const pipeline = scope?.pipeline ?? discovery.pipeline; + const task = scope?.task ?? discovery.task; + const entry = scope ? support.find((item) => item.pipelineClass === pipeline) : discovery.entry; if (!support.length) return null; return (
diff --git a/src/components/OperationModelPicker.tsx b/src/components/OperationModelPicker.tsx index 543de413..f26087de 100644 --- a/src/components/OperationModelPicker.tsx +++ b/src/components/OperationModelPicker.tsx @@ -1,3 +1,4 @@ +import { ChevronsUpDown, RotateCcw } from 'lucide-react'; import { type ReactNode, useEffect, useMemo, useRef, useState } from 'react'; import { useFlowStore, type CustomNodeType } from '../stores/useFlowStore'; import { useNodesStore } from '../stores/useNodeStore'; @@ -314,13 +315,19 @@ export default function OperationModelPicker({ <> setOpen(true)} title={value} > - {current ? choiceLabel(current) : value || 'Choose model'} + + Model + + {current ? choiceLabel(current) : value || 'Choose model'} + + + {current && operations.some( @@ -328,6 +335,10 @@ export default function OperationModelPicker({ o.pipelineClass === hint.operation.pipelineClass && o.task === hint.operation.task && !operationOwnsModel(o), ) ? (
diff --git a/src/components/DeveloperWorkflowLauncher.tsx b/src/components/DeveloperWorkflowLauncher.tsx index 95b18002..72c3b7ae 100644 --- a/src/components/DeveloperWorkflowLauncher.tsx +++ b/src/components/DeveloperWorkflowLauncher.tsx @@ -68,6 +68,7 @@ export default function DeveloperWorkflowLauncher({ embedded = false }: { embedd pending.current = controller; const context = captureWorkflowOperationContext(); const signature = JSON.stringify(useFlowStore.getState().toObject()); + let buildingTabId: string | null = null; setBusy(task); setError(null); try { @@ -84,8 +85,16 @@ export default function DeveloperWorkflowLauncher({ embedded = false }: { embedd ) throw new Error('The canvas changed. Start a new workflow before choosing a task.'); const draft = createWorkflowDraft(starter, registry); + if (embedded) useStudioStore.getState().createWorkflowTab(workflowTaskLabel(task)); + buildingTabId = useStudioStore.getState().activeWorkflowTabId; + if (!buildingTabId) throw new Error('Workflow tab is no longer available.'); + useStudioStore.getState().setCanvasTransition({ + type: 'task_graph_building', + workflowTabId: buildingTabId, + keepLauncher: !embedded, + startedAt: Date.now(), + }); if (embedded) { - useStudioStore.getState().createWorkflowTab(workflowTaskLabel(task)); commitOperationGraph( draft.graph, captureWorkflowOperationContext(), @@ -99,19 +108,28 @@ export default function DeveloperWorkflowLauncher({ embedded = false }: { embedd prepareWorkflowForManualInsertion(); const id = useStudioStore.getState().activeWorkflowTabId; if (id) { - useStudioStore.getState().renameWorkflowTab(id, workflowTaskLabel(task)); const { settleExampleWorkflowCanvas } = await import('../studio/exampleWorkflow'); if (id !== useStudioStore.getState().activeWorkflowTabId || !(await settleExampleWorkflowCanvas())) return; + useStudioStore.getState().renameWorkflowTab(id, workflowTaskLabel(task)); const now = Date.now(); useSettingsStore .getState() .setWorkflowFocusRequest({ workflowTabId: id, nodeId: null, requestId: now, requestedAt: now }); } - useStudioStore.getState().saveActiveWorkflowTab(true); if (unbound) enqueueSnackbar(message, { variant: 'info', autoHideDuration: 8000 }); } catch (e) { if (!controller.signal.aborted) setError(formatRequestError(e, 'Could not create this workflow.')); } finally { + const studio = useStudioStore.getState(); + if ( + buildingTabId && + studio.canvasTransition?.type === 'task_graph_building' && + studio.canvasTransition.workflowTabId === buildingTabId && + studio.activeWorkflowTabId === buildingTabId + ) { + studio.setCanvasTransition(null); + studio.saveActiveWorkflowTab(true); + } if (pending.current === controller) { pending.current = null; setBusy(''); diff --git a/src/components/GraphNodeInputs.tsx b/src/components/GraphNodeInputs.tsx index b1688cbb..df1eba40 100644 --- a/src/components/GraphNodeInputs.tsx +++ b/src/components/GraphNodeInputs.tsx @@ -41,6 +41,12 @@ export function GraphNodeInputs({ const [disclosureState, setDisclosureState] = useState>({}); const catalog = useNodesStore((state) => state.visualNodeCatalog); const registry = useNodesStore((state) => state.nodesRegistry); + const modelCatalog = useNodesStore( + useShallow((state) => ({ + workflowModelDescriptors: state.workflowModelDescriptors, + studioModelCapabilities: state.studioModelCapabilities, + })), + ); const pinnedSet = useMemo(() => new Set(pinnedIds), [pinnedIds]); const selectedNode = selectedNodes.length === 1 ? selectedNodes[0] : null; const incomingEdges = useFlowStore( @@ -56,7 +62,7 @@ export function GraphNodeInputs({ }); if (selectedNode) { - const selectedParams = graphNodeControlParams(selectedNode, incomingEdges); + const selectedParams = graphNodeControlParams(selectedNode, incomingEdges, modelCatalog); byNode.set(selectedNode.id, { node: selectedNode, params: selectedParams }); } @@ -68,7 +74,7 @@ export function GraphNodeInputs({ const group = byNode.get(id); return group ? [group] : []; }); - }, [nodes, pinnedInputs, selectedNode, incomingEdges]); + }, [nodes, pinnedInputs, selectedNode, incomingEdges, modelCatalog]); const updateParam = useCallback( (nodeId: string, param: string, value: unknown, key?: keyof NodeParams) => { diff --git a/src/components/NodeContent.tsx b/src/components/NodeContent.tsx index 7db0514b..dc625d8b 100644 --- a/src/components/NodeContent.tsx +++ b/src/components/NodeContent.tsx @@ -15,7 +15,7 @@ import { import { formPatchForAutoCandidate, selectedAutoCandidate } from '../studio/autoResource'; import { NodeParams, type NodeParamOptions, type NodeParamSignal, useNodesStore } from '../stores/useNodeStore'; import { useFlowStore } from '../stores/useFlowStore'; -import { nodeControlGate, orderedActiveNodeControls } from '../workflow/gatedNodeControls'; +import { adapterConsumesOffloadMode, nodeControlGate, orderedActiveNodeControls } from '../workflow/gatedNodeControls'; import { classifyManagedControl } from '../studio/managedControlPolicy'; import { blockRuntimeOptionPresentation, @@ -232,7 +232,11 @@ const NodeContent = memo(function NodeContent({ const connectedGate = useFlowStore((state) => Boolean(gate && state.edges.some((e) => e.target === nodeId && e.targetHandle === gate)), ); - const activeControls = orderedActiveNodeControls(identity, params, graphNode?.data.params ?? params, connectedGate); + const fullParams = graphNode?.data.params ?? params; + const modeRequiredByAdapter = useNodesStore( + (state) => gate === 'auto_offload' && adapterConsumesOffloadMode(fullParams, state), + ); + const activeControls = orderedActiveNodeControls(identity, params, fullParams, connectedGate, modeRequiredByAdapter); const fields = activeControls.flatMap(([key, data]: [string, NodeParams]) => { const declaredLabel = data.label ?? key.charAt(0).toUpperCase() + key.slice(1); const label = diff --git a/src/components/StageNodeControls.tsx b/src/components/StageNodeControls.tsx index 3a3997ea..6952f4dc 100644 --- a/src/components/StageNodeControls.tsx +++ b/src/components/StageNodeControls.tsx @@ -1,5 +1,5 @@ import type { Edge } from '@xyflow/react'; -import type { NodeParams } from '../stores/useNodeStore'; +import { useNodesStore, type NodeParams } from '../stores/useNodeStore'; import { useMemo } from 'react'; import type { CustomNodeType } from '../stores/useFlowStore'; import { blockOperationGraphV2, blockViewModelV2 } from '../studio/blockRuntimeV2'; @@ -25,11 +25,16 @@ export default function StageNodeControls({ }) { const instance = node.data.blockInstanceV2!; const setup = visualOperationGroup(node) === 'setup'; + const workflowModelDescriptors = useNodesStore((state) => state.workflowModelDescriptors); + const studioModelCapabilities = useNodesStore((state) => state.studioModelCapabilities); const { view, groups } = useMemo(() => { const view = blockViewModelV2(instance); const graph = blockOperationGraphV2(instance); const controlParams = setup - ? modelSetupControlParams(instance, graph, view.controlParams, edges) + ? modelSetupControlParams(instance, graph, view.controlParams, edges, { + workflowModelDescriptors, + studioModelCapabilities, + }) : view.controlParams; const owners = new Set( graph.nodes @@ -58,7 +63,7 @@ export default function StageNodeControls({ }; }); return { view, groups }; - }, [instance, setup, edges]); + }, [instance, setup, edges, workflowModelDescriptors, studioModelCapabilities]); return (
{setup ? : null} diff --git a/src/components/StudioPanel.tsx b/src/components/StudioPanel.tsx index aecbbf37..2f9988c8 100644 --- a/src/components/StudioPanel.tsx +++ b/src/components/StudioPanel.tsx @@ -274,9 +274,7 @@ export default function StudioPanel() { } : null); const canvasTransition = useStudioStore((state) => state.canvasTransition); - const templateGraphPreparing = Boolean( - canvasTransition?.type === 'template_graph_building' && canvasTransition.workflowTabId === activeWorkflowTabId, - ); + const templateGraphPreparing = Boolean(canvasTransition && canvasTransition.workflowTabId === activeWorkflowTabId); const graphInspectionSignature = useFlowStore( useShallow((state) => ({ nodes: state.nodes diff --git a/src/components/Workflow.tsx b/src/components/Workflow.tsx index 0d8a37f1..e8a98998 100644 --- a/src/components/Workflow.tsx +++ b/src/components/Workflow.tsx @@ -259,8 +259,7 @@ function Workflow() { const migratedBlueprintIds = useRef>(new Set()); const updateNodeInternals = useUpdateNodeInternals(); const canvasSuspended = Boolean( - !workflowCanvasHydrated || - (canvasTransition?.type === 'template_graph_building' && canvasTransition.workflowTabId === activeWorkflowTabId), + !workflowCanvasHydrated || (canvasTransition && canvasTransition.workflowTabId === activeWorkflowTabId), ); const requiresCompleteCompositeMount = nodes.some( (node) => @@ -1386,7 +1385,11 @@ function Workflow() { {canvasSuspended && (
- {workflowCanvasHydrated ? 'Building template graph' : 'Restoring workflow'} + {!workflowCanvasHydrated + ? 'Restoring workflow' + : canvasTransition?.type === 'task_graph_building' + ? 'Preparing workflow' + : 'Building template graph'}
)} diff --git a/src/stores/useStudioStore.ts b/src/stores/useStudioStore.ts index 0b5c3dd7..59a434a0 100644 --- a/src/stores/useStudioStore.ts +++ b/src/stores/useStudioStore.ts @@ -143,12 +143,12 @@ type StudioVolatileState = { message: string | null; startedAt: number | null; }; - canvasTransition: { - type: 'template_graph_building'; - workflowTabId: string; - templateId: StudioTemplateId; - startedAt: number; - } | null; + canvasTransition: + | ({ workflowTabId: string; startedAt: number } & ( + | { type: 'template_graph_building'; templateId: StudioTemplateId } + | { type: 'task_graph_building'; templateId?: never; keepLauncher: boolean } + )) + | null; launcherDismissed: boolean; currentRunContext: StudioRunContext | null; runContextsByClientRunId: Record; @@ -2830,6 +2830,12 @@ export const useStudioStore = create { set((state) => { + // Fresh task controls mount so their actual bounds can be measured. Only the finalized draft is saved. + if ( + state.canvasTransition?.type === 'task_graph_building' && + state.canvasTransition.workflowTabId === state.activeWorkflowTabId + ) + return state; const workflowTabs = savedTabsWithActiveSnapshot(state).map((tab) => tab.id === state.activeWorkflowTabId && !dirty && tab.dirty ? { ...tab, dirty: false } : tab, ); diff --git a/src/studio/graphNodeControls.ts b/src/studio/graphNodeControls.ts index e0b72ba3..607f41a5 100644 --- a/src/studio/graphNodeControls.ts +++ b/src/studio/graphNodeControls.ts @@ -1,7 +1,7 @@ import type { Edge } from '@xyflow/react'; import { hasInlineScalarControl } from './inlineScalarControl'; import { useFlowStore, type CustomNodeType } from '../stores/useFlowStore'; -import type { NodeParams } from '../stores/useNodeStore'; +import { useNodesStore, type NodeParams } from '../stores/useNodeStore'; import { useStudioStore } from '../stores/useStudioStore'; import { blockControlParamsV2, @@ -25,15 +25,22 @@ const expandedByInstance = new WeakMap(); export function graphNodeControlParams( node: CustomNodeType, workflowEdges: readonly Edge[] = [], + catalog: Pick< + ReturnType, + 'workflowModelDescriptors' | 'studioModelCapabilities' + > = useNodesStore.getState(), ): Record { const instance = node.data.blockInstanceV2; const source = instance ?? node.data.params; const setup = instance && visualOperationGroup(node) === 'setup'; - const hasIncoming = setup && workflowEdges.some((edge) => edge.target === node.id); - const cached = hasIncoming ? undefined : controlsBySource.get(source); + // Model Setup depends on current adapter policy and connected suppliers. + const cacheable = !setup; + const cached = cacheable ? controlsBySource.get(source) : undefined; if (cached) return cached; const base = instance ? blockControlParamsV2(instance) : node.data.params; - const params = setup ? modelSetupControlParams(instance, blockOperationGraphV2(instance), base, workflowEdges) : base; + const params = setup + ? modelSetupControlParams(instance, blockOperationGraphV2(instance), base, workflowEdges, catalog) + : base; const controls = Object.fromEntries( Object.entries(params) .filter(([key, param]) => { @@ -56,7 +63,7 @@ export function graphNodeControlParams( }, ]), ); - if (!hasIncoming) controlsBySource.set(source, controls); + if (cacheable) controlsBySource.set(source, controls); return controls; } diff --git a/src/studio/runReadiness.ts b/src/studio/runReadiness.ts index 78689c92..92c4ffd4 100644 --- a/src/studio/runReadiness.ts +++ b/src/studio/runReadiness.ts @@ -1998,10 +1998,7 @@ export function collectRunReadinessIssues(options: { }) { const issues: RunReadinessIssue[] = []; const studioState = useStudioStore.getState(); - if ( - studioState.canvasTransition?.type === 'template_graph_building' && - studioState.canvasTransition.workflowTabId === studioState.activeWorkflowTabId - ) { + if (studioState.canvasTransition && studioState.canvasTransition.workflowTabId === studioState.activeWorkflowTabId) { return [ issue({ id: 'template-graph-preparing', @@ -2011,7 +2008,7 @@ export function collectRunReadinessIssues(options: { blocking: true, action: 'inspect_node', message: 'Preparing graph', - details: 'Run becomes available after the template graph is finalized and arranged.', + details: 'Run becomes available after the graph is finalized and arranged.', }), ]; } diff --git a/src/studio/useRunReadinessIssues.ts b/src/studio/useRunReadinessIssues.ts index 7f61b0c4..a1dc2948 100644 --- a/src/studio/useRunReadinessIssues.ts +++ b/src/studio/useRunReadinessIssues.ts @@ -164,8 +164,7 @@ export function useRunReadinessIssues({ sid, isConnected, includeStudio = true } ? state.runContextsByClientRunId[failure.clientRunId] : null, ); - const isGraphPreparing = - canvasTransition?.type === 'template_graph_building' && canvasTransition.workflowTabId === activeWorkflowTabId; + const isGraphPreparing = Boolean(canvasTransition && canvasTransition.workflowTabId === activeWorkflowTabId); const autoResourcePlan = useStudioStore((state) => state.autoResourcePlan); const hfCache = useNodesStore((state) => state.hfCache); const localModels = useNodesStore((state) => state.localModels); diff --git a/src/utils/fieldAction.ts b/src/utils/fieldAction.ts index 6ca7b77a..0dfadecb 100644 --- a/src/utils/fieldAction.ts +++ b/src/utils/fieldAction.ts @@ -193,7 +193,16 @@ export default async function fieldAction( const workflowContext = props.workflowContext ?? captureWorkflowOperationContext(); const isCurrent = () => workflowOperationContextIsCurrent(workflowContext, { includeForm: false }); if (!isCurrent()) return; - const updateStore = props.updateFieldActionStore ?? props.updateStore; + let updateStore = props.updateFieldActionStore ?? props.updateStore; + if (event === 'onSignal' && !props.updateFieldActionStore) { + const owner = fieldActionSource(props)?.node; + if (owner?.id === props.nodeId && !owner.data.blockProjectionOwnerId && !owner.data.huggingFaceClusterRole) { + // A received wire signal refreshes the consumer contract, including on + // Undo or reload. Recording that refresh as an edit clears Redo and + // prevents Undo from reaching the original model selection. + updateStore = (field, next, property) => useFlowStore.getState().setParam(owner.id, field, next, property); + } + } props = { ...props, workflowContext, diff --git a/src/workflow/gatedNodeControls.ts b/src/workflow/gatedNodeControls.ts index 3eca9767..381403e5 100644 --- a/src/workflow/gatedNodeControls.ts +++ b/src/workflow/gatedNodeControls.ts @@ -1,4 +1,5 @@ -import type { NodeParams } from '../stores/useNodeStore'; +import type { StudioExecutionProfile } from '../studio/types'; +import type { useNodesStore, NodeParams } from '../stores/useNodeStore'; export function nodeControlGate(identity: string) { if (identity === 'modules.ModularDiffusers.Guider') return 'enabled'; @@ -11,18 +12,52 @@ export function literalControlIsOff(field: NodeParams | undefined) { return (field?.value ?? field?.default) === false && !field?.isConnected && !field?.signal; } +/** The offload choice still has a consumer when a model's declared LoRA policy requires it. This is display only; adapter authoring performs the full review. */ +export function adapterConsumesOffloadMode( + params: Record, + catalog: Pick, 'workflowModelDescriptors' | 'studioModelCapabilities'>, +) { + const repo = params.repo_id?.value ?? params.repo_id?.default; + const pipeline = params.model_type?.value ?? params.model_type?.default; + if ( + !repo || + typeof repo !== 'object' || + !('source' in repo) || + repo.source !== 'hub' || + !('value' in repo) || + typeof repo.value !== 'string' || + typeof pipeline !== 'string' + ) + return false; + const required = ( + profile: Pick< + StudioExecutionProfile, + 'pipeline_class' | 'default_repo' | 'fallback_repo' | 'compatible_repos' | 'adapterAuthoring' + >, + ) => + profile.pipeline_class === pipeline && + [profile.default_repo, profile.fallback_repo, ...(profile.compatible_repos ?? [])].includes(repo.value as string) && + Object.prototype.hasOwnProperty.call(profile.adapterAuthoring?.requiredControls ?? {}, 'offload_mode'); + return ( + catalog.workflowModelDescriptors.some((d) => d.adapterAuthoringProfile && required(d.adapterAuthoringProfile)) || + catalog.studioModelCapabilities.some((c) => c.executionProfiles?.some(required)) + ); +} + /** Display only. Typed sockets and saved fallback settings keep their original identities. */ export function orderedActiveNodeControls( identity: string, params: Record, fullParams: Record, connectedGate: boolean, + modeRequiredByAdapter = false, ) { const gate = nodeControlGate(identity); const entries = Object.entries(params); if (!gate || !fullParams[gate]) return entries; const off = !connectedGate && literalControlIsOff(fullParams[gate]); - if (gate === 'auto_offload') return entries.filter(([key]) => key !== 'offload_mode' || !off); + if (gate === 'auto_offload') + return entries.filter(([key]) => key !== 'offload_mode' || !off || modeRequiredByAdapter); return [ ...entries.filter(([key]) => key === gate), ...entries.filter( diff --git a/src/workflow/modelSetupControlPresentation.ts b/src/workflow/modelSetupControlPresentation.ts index 76da9432..fb11e9c3 100644 --- a/src/workflow/modelSetupControlPresentation.ts +++ b/src/workflow/modelSetupControlPresentation.ts @@ -1,11 +1,11 @@ import type { Edge } from '@xyflow/react'; import type { CustomNodeType } from '../stores/useFlowStore'; -import type { NodeParams } from '../stores/useNodeStore'; +import { useNodesStore, type NodeParams } from '../stores/useNodeStore'; import { blockCrossingHandleV2 } from '../studio/blockCrossingConnectionsV2'; import { blockInputPortBindingsV2, blockProjectionNodeIdV2, type BlockFlowGraphV2 } from '../studio/blockRuntimeV2'; import type { BlockControlV2, BlockInstanceV2 } from '../studio/blockSchemaV2'; import { isModelSetupAdapterKey } from '../studio/controlledWorkflowContracts'; -import { literalControlIsOff, nodeControlGate } from './gatedNodeControls'; +import { adapterConsumesOffloadMode, literalControlIsOff, nodeControlGate } from './gatedNodeControls'; import { nodeDisplayLabel } from './nodePresentation'; const IMAGE_LOADER = 'modules.DiffusersImage.LoadPipeline'; @@ -64,6 +64,10 @@ export function modelSetupControlParams( graph: BlockFlowGraphV2, params: Record, workflowEdges: readonly Edge[] = [], + catalog: Pick< + ReturnType, + 'workflowModelDescriptors' | 'studioModelCapabilities' + > = useNodesStore.getState(), ): Record { const controls = instance.effectiveInterface.controls; const nodes = new Map(graph.nodes.map((node) => [node.id, node])); @@ -98,6 +102,7 @@ export function modelSetupControlParams( if ( fieldId === 'offload_mode' && literalControlIsOff(gate) && + !adapterConsumesOffloadMode(owner.data.params, catalog) && !control.mirrorBindings?.length && !graph.edges.some((e) => e.target === owner.id && e.targetHandle === 'auto_offload') && !workflowEdges.some( diff --git a/tests/e2e/live-backend/visual-stage-groups.spec.ts b/tests/e2e/live-backend/visual-stage-groups.spec.ts index c11e6a52..af239745 100644 --- a/tests/e2e/live-backend/visual-stage-groups.spec.ts +++ b/tests/e2e/live-backend/visual-stage-groups.spec.ts @@ -217,12 +217,21 @@ test('model setup switching updates native model and Generate contract inside co await expect(entry).toHaveCount(1); await entry.dblclick(); await expect(page.getByText('Workflow opened as a new tab', { exact: true })).toBeVisible({ timeout: 30_000 }); - const baseline = await page.evaluate(() => window.__MODIFF_E2E__!.exportAuthorizedApiGraph()); + const api = () => + page.evaluate(async () => { + const { nodes, paths } = await window.__MODIFF_E2E__!.exportAuthorizedApiGraph(); + return { nodes, paths }; + }); + const baseline = await api(); expect(posts.filter((url) => url.endsWith('/fields/action'))).toEqual([]); + const visibleWiring = async () => { + const { nodes, edges } = await snapshot(page); + return { ids: nodes.map(({ id }) => id).sort(), edges }; + }; + const wiring = await visibleWiring(); const model = page.locator('.react-flow__node [data-key="stage-node-02:pipeline_class"]'); await model.getByRole('button').click(); await page.getByRole('option', { name: 'SanaSprintPipeline', exact: true }).click(); - const api = () => page.evaluate(() => window.__MODIFF_E2E__!.exportAuthorizedApiGraph()); await expect .poll(async () => { const graph = await api(); @@ -237,17 +246,26 @@ test('model setup switching updates native model and Generate contract inside co const edited = await api(); expect(posts.some((url) => url.endsWith('/fields/action'))).toBe(true); expect(posts.some((url) => /\/graph$|\/download/.test(url))).toBe(false); + expect(await visibleWiring()).toEqual(wiring); + expect(Object.keys(edited.nodes).sort()).toEqual(Object.keys(baseline.nodes).sort()); await page.getByTestId('topbar-resource-policy').focus(); - await page.keyboard.press('Control+z'); - await expect.poll(async () => (await api()).nodes).toEqual(baseline.nodes); - await page.keyboard.press('Control+Shift+z'); - await expect.poll(async () => (await api()).nodes).toEqual(edited.nodes); + for (let cycle = 0; cycle < 2; cycle++) { + await page.keyboard.press('Control+z'); + await expect.poll(api).toEqual(baseline); + expect(await visibleWiring()).toEqual(wiring); + await page.keyboard.press('Control+Shift+z'); + await expect.poll(api).toEqual(edited); + expect(await visibleWiring()).toEqual(wiring); + } await page.getByTestId('topbar-save-workflow').click(); - await expect(page.getByText('Saved text-to-image to My workflows', { exact: true })).toBeVisible(); + await expect(page.getByText('Saved Text to image to My workflows', { exact: true })).toBeVisible(); await page.reload({ waitUntil: 'domcontentloaded' }); await expect.poll(() => page.evaluate(() => Boolean(window.__MODIFF_E2E__?.getState().websocket.sid))).toBe(true); - expect((await api()).nodes).toEqual(edited.nodes); - const sequenceLength = page.locator('.react-flow__node [data-key="stage-node-01:max_sequence_length"] input'); + await expect.poll(api).toEqual(edited); + expect(await visibleWiring()).toEqual(wiring); + const canvas = page.locator('.react-flow__node'); + const sequenceLength = canvas.getByRole('textbox', { name: 'Max Sequence Length', exact: true }); + const increaseSequenceLength = canvas.getByRole('button', { name: 'Increase Max Sequence Length', exact: true }); await expect(sequenceLength).toBeVisible(); // The imported example uses a default value. Author a value valid for Sana // but above PRX's limit so preservation is independent of example defaults. @@ -256,11 +274,7 @@ test('model setup switching updates native model and Generate contract inside co await expect(sequenceLength).toHaveValue('257'); await model.getByRole('button').click(); await page.getByRole('option', { name: 'PRXPipeline', exact: true }).click(); - await expect( - page - .locator('.react-flow__node [data-key="stage-node-01:max_sequence_length"]') - .getByRole('button', { name: 'Increase Max Sequence Length', exact: true }), - ).toBeDisabled(); + await expect(increaseSequenceLength).toBeDisabled(); await expect(sequenceLength).toHaveValue('257'); await expect(sequenceLength).toHaveAttribute('aria-invalid', 'true'); const incompatible = await api(); @@ -269,11 +283,7 @@ test('model setup switching updates native model and Generate contract inside co await expect.poll(api).toEqual(incompatible); await sequenceLength.fill('256'); await sequenceLength.press('Tab'); - await expect( - page - .locator('.react-flow__node [data-key="stage-node-01:max_sequence_length"]') - .getByRole('button', { name: 'Increase Max Sequence Length', exact: true }), - ).toBeDisabled(); + await expect(increaseSequenceLength).toBeDisabled(); await expect .poll( async () => @@ -288,7 +298,7 @@ test('model setup switching updates native model and Generate contract inside co await expect(sequenceLength).toHaveValue('256'); await expect(sequenceLength).not.toHaveAttribute('aria-invalid', 'true'); await page.getByTestId('topbar-save-workflow').click(); - await expect(page.getByText('Saved text-to-image to My workflows', { exact: true })).toBeVisible(); + await expect(page.getByText('Saved Text to image to My workflows', { exact: true })).toBeVisible(); await page.reload({ waitUntil: 'domcontentloaded' }); await expect(sequenceLength).toHaveValue('256', { timeout: 60_000 }); await model.getByRole('button').click(); @@ -307,8 +317,9 @@ test('tabbing across an untouched numeric stage control keeps one edit as one Un await entry.dblclick(); await expect(page.getByText('Workflow opened as a new tab', { exact: true })).toBeVisible({ timeout: 30_000 }); const baseline = await page.evaluate(() => window.__MODIFF_E2E__!.exportAuthorizedApiGraph()); - const steps = page.locator('.react-flow__node [data-key="stage-node-04:num_inference_steps"] input'); - const count = page.locator('.react-flow__node [data-key="stage-node-04:num_videos_per_prompt"] input'); + const canvasNodes = page.locator('.react-flow__node'); + const steps = canvasNodes.getByRole('textbox', { name: 'Steps', exact: true }); + const count = canvasNodes.getByRole('textbox', { name: 'Videos per prompt', exact: true }); const original = await steps.inputValue(); for (const gesture of ['Tab', 'Enter']) { await steps.fill(String(Number(original) - 1)); @@ -325,7 +336,7 @@ test('tabbing across an untouched numeric stage control keeps one edit as one Un await expect.poll(() => page.evaluate(() => window.__MODIFF_E2E__!.exportAuthorizedApiGraph())).toEqual(baseline); } await page.getByTestId('topbar-save-workflow').click(); - await expect(page.getByText('Saved text-to-video to My workflows', { exact: true })).toBeVisible(); + await expect(page.getByText('Saved Text to video to My workflows', { exact: true })).toBeVisible(); await page.reload({ waitUntil: 'domcontentloaded' }); await expect.poll(() => page.evaluate(() => Boolean(window.__MODIFF_E2E__?.getState().websocket.sid))).toBe(true); const restored = await page.evaluate(() => window.__MODIFF_E2E__!.exportAuthorizedApiGraph()); diff --git a/tests/e2e/studio-mocked/studio-mocked.spec.ts b/tests/e2e/studio-mocked/studio-mocked.spec.ts index 007f6fe2..dc68dc70 100644 --- a/tests/e2e/studio-mocked/studio-mocked.spec.ts +++ b/tests/e2e/studio-mocked/studio-mocked.spec.ts @@ -15091,6 +15091,10 @@ test('ordinary operation graphs preserve native edits through model/task preview expect(errors).toEqual([]); }); +function canvasControls(page: Page) { + return page.getByRole('region', { name: 'Workflow canvas', exact: true }); +} + test('normal New T2I discovers declared evaluation models in Auto without changing the draft until an explicit Custom choice', async ({ page, }) => { @@ -15168,7 +15172,7 @@ test('normal New T2I discovers declared evaluation models in Auto without changi await expect(picker).toHaveCount(0); const current = await read(); expect(current.form.prompt).toBe(original.form.prompt); - await expect(page.getByRole('button', { name: 'Enable enhancement', exact: true })).toBeVisible(); + await expect(canvasControls(page).getByRole('button', { name: 'Enable enhancement', exact: true })).toBeVisible(); const selectedSetupId = current.graph.nodes.find((node) => node.data.label === 'Model Setup')!.id; const selectedSetup = page.locator(`.react-flow__node[data-id="${selectedSetupId}"]`); await expect(selectedSetup.getByRole('button', { name: 'Add LoRA', exact: true })).toBeDisabled(); @@ -15302,7 +15306,7 @@ for (const variant of ['flux3-klein', 'flux3-klein-base'] as const) expect(selected.layout).toBeNull(); expect(selected.binding).toBeNull(); expect(await page.evaluate(() => window.__MODIFF_E2E__!.getState().studio.form.resourceMode)).toBe('auto'); - const mode = page.getByRole('button', { name: 'Prompt enhancement mode', exact: true }); + const mode = canvasControls(page).getByRole('button', { name: 'Prompt enhancement mode', exact: true }); await mode.click(); for (const label of [ 'Raw wording: FP32', @@ -15313,8 +15317,8 @@ for (const variant of ['flux3-klein', 'flux3-klein-base'] as const) await expect(page.getByRole('option', { name: label, exact: true })).toBeVisible(); await page.getByRole('option', { name: 'Raw wording: BF16 + NF4', exact: true }).click(); expect(await read()).toEqual(selected); - await page.getByRole('button', { name: 'Enable enhancement', exact: true }).click(); - await expect(page.getByRole('button', { name: 'Preview', exact: true })).toBeVisible(); + await canvasControls(page).getByRole('button', { name: 'Enable enhancement', exact: true }).click(); + await expect(canvasControls(page).getByRole('button', { name: 'Preview', exact: true })).toBeVisible(); const enabled = await read(); const nf4Recipe = (fixture.starters as OperationStarter[]).find( (starter) => starter.authoring?.id === `${prefix}nf4:v1`, @@ -15327,12 +15331,12 @@ for (const variant of ['flux3-klein', 'flux3-klein-base'] as const) expect(enabled.provider).toEqual({ dtype: 'bfloat16', quantization: 'bnb_4bit' }); expect(enabled.prompt).toBe(selected.prompt); expect(enabled.layout).toBeNull(); - await page.getByRole('button', { name: 'Disable', exact: true }).click(); + await canvasControls(page).getByRole('button', { name: 'Disable', exact: true }).click(); await expect.poll(read).toEqual({ ...enabled, binding: null, provider: null }); const disabled = await read(); await mode.click(); await page.getByRole('option', { name: 'Generate constrained table: FP32 (Expert)', exact: true }).click(); - await page.getByRole('button', { name: 'Enable enhancement', exact: true }).click(); + await canvasControls(page).getByRole('button', { name: 'Enable enhancement', exact: true }).click(); await expect( page .getByRole('alert') @@ -15406,7 +15410,7 @@ for (const task of ['text_to_image', 'edit_image'] as const) expect(await read()).toEqual(before); await picker.getByRole('button', { name: 'Preview model / task change', exact: true }).click(); await review.getByRole('button', { name: 'Apply graph change', exact: true }).click(); - await expect(page.getByRole('button', { name: 'Enable enhancement', exact: true })).toBeVisible(); + await expect(canvasControls(page).getByRole('button', { name: 'Enable enhancement', exact: true })).toBeVisible(); const changed = await read(); expect(changed).toMatchObject({ model: pipeline, @@ -15420,7 +15424,7 @@ for (const task of ['text_to_image', 'edit_image'] as const) await expect.poll(read).toEqual(before); await page.keyboard.press('Control+Shift+z'); await expect.poll(read).toEqual(changed); - await expect(page.getByRole('button', { name: 'Enable enhancement', exact: true })).toBeVisible(); + await expect(canvasControls(page).getByRole('button', { name: 'Enable enhancement', exact: true })).toBeVisible(); expect(forbiddenPosts).toEqual([]); }); @@ -16041,14 +16045,14 @@ for (const task of ['text_to_image', 'edit_image'] as const) await expect(page.getByTestId('startup-workspace-gate')).toHaveCount(0); await expect(page.getByRole('button', { name: 'Connected', exact: true })).toBeVisible(); await expect.poll(read).toEqual(expected); - await expect(page.getByRole('button', { name: 'Preview', exact: true })).toBeVisible(); - await expect(page.getByRole('button', { name: 'Preview', exact: true })).toBeEnabled(); + await expect(canvasControls(page).getByRole('button', { name: 'Preview', exact: true })).toBeVisible(); + await expect(canvasControls(page).getByRole('button', { name: 'Preview', exact: true })).toBeEnabled(); }; expect(raw.layout).toBeNull(); expect(raw.contractId).toBeNull(); - await expect(page.getByRole('button', { name: 'Enable enhancement', exact: true })).toBeEnabled(); - await page.getByRole('button', { name: 'Enable enhancement', exact: true }).click(); - await expect(page.getByRole('button', { name: 'Preview', exact: true })).toBeVisible(); + await expect(canvasControls(page).getByRole('button', { name: 'Enable enhancement', exact: true })).toBeEnabled(); + await canvasControls(page).getByRole('button', { name: 'Enable enhancement', exact: true }).click(); + await expect(canvasControls(page).getByRole('button', { name: 'Preview', exact: true })).toBeVisible(); const enabled = await read(); expect(enabled.parentId).toBe( `flux3-klein-base:${task === 'text_to_image' ? 'text-to-image:prompt-preview-fp32' : 'edit-image:prompt-preview'}-authoring:v1`, @@ -16060,13 +16064,13 @@ for (const task of ['text_to_image', 'edit_image'] as const) expect(enabled.requestLayout).toBeNull(); expect(enabled.parentEdges).toEqual(raw.parentEdges); await saveAndColdReload(enabled); - await page.getByRole('button', { name: 'Disable', exact: true }).click(); - await expect(page.getByRole('button', { name: 'Enable enhancement', exact: true })).toBeVisible(); + await canvasControls(page).getByRole('button', { name: 'Disable', exact: true }).click(); + await expect(canvasControls(page).getByRole('button', { name: 'Enable enhancement', exact: true })).toBeVisible(); if (task === 'text_to_image') { - const choice = page.getByRole('button', { name: 'Raw prompt enhancement', exact: true }); + const choice = canvasControls(page).getByRole('button', { name: 'Raw prompt enhancement', exact: true }); await choice.click(); await page.getByRole('option', { name: 'Raw wording: BF16 + NF4', exact: true }).click(); - await page.getByRole('button', { name: 'Selection details', exact: true }).click(); + await canvasControls(page).getByRole('button', { name: 'Selection details', exact: true }).click(); await expect( page.getByText('Recipe: flux3-klein-base:text-to-image:prompt-preview-authoring:v1', { exact: true }), ).toBeVisible(); @@ -16074,8 +16078,8 @@ for (const task of ['text_to_image', 'edit_image'] as const) expect(beforeChoice.contractId).toBeNull(); expect(beforeChoice.prompt).toBe(raw.prompt); expect(beforeChoice.parentEdges).toEqual(raw.parentEdges); - await page.getByRole('button', { name: 'Enable enhancement', exact: true }).click(); - await expect(page.getByRole('button', { name: 'Preview', exact: true })).toBeVisible(); + await canvasControls(page).getByRole('button', { name: 'Enable enhancement', exact: true }).click(); + await expect(canvasControls(page).getByRole('button', { name: 'Preview', exact: true })).toBeVisible(); const nf4 = await read(); expect(nf4.parentId).toBe('flux3-klein-base:text-to-image:prompt-preview-authoring:v1'); expect(nf4.provider).toEqual({ dtype: 'bfloat16', quantization: 'bnb_4bit' }); @@ -16083,30 +16087,30 @@ for (const task of ['text_to_image', 'edit_image'] as const) expect(nf4.layout).toBeNull(); expect(nf4.parentEdges).toEqual(raw.parentEdges); await saveAndColdReload(nf4); - await page.getByRole('button', { name: 'Disable', exact: true }).click(); + await canvasControls(page).getByRole('button', { name: 'Disable', exact: true }).click(); await expect(choice).toContainText('Raw wording: BF16 + NF4'); } - await page.getByRole('radio', { name: 'Structured layout', exact: true }).click(); + await canvasControls(page).getByRole('radio', { name: 'Structured layout', exact: true }).click(); const empty = await read(); - await page.getByRole('button', { name: 'Enable enhancement', exact: true }).click(); + await canvasControls(page).getByRole('button', { name: 'Enable enhancement', exact: true }).click(); await expect( page.getByRole('alert').filter({ hasText: 'add authored regions or select Raw layout' }), ).toBeVisible(); expect(await read()).toEqual(empty); - await page.getByRole('button', { name: 'Add region', exact: true }).click(); + await canvasControls(page).getByRole('button', { name: 'Add region', exact: true }).click(); await page.getByLabel('Region description', { exact: true }).fill(' Authored copper lantern.\n'); - await page.getByRole('button', { name: 'Apply region', exact: true }).click(); + await canvasControls(page).getByRole('button', { name: 'Apply region', exact: true }).click(); const authored = await read(); expect(authored.layout!.regions).toHaveLength(1); if (task === 'text_to_image') { - await page.getByRole('button', { name: 'Enable enhancement', exact: true }).click(); + await canvasControls(page).getByRole('button', { name: 'Enable enhancement', exact: true }).click(); await expect(page.getByRole('alert').filter({ hasText: 'requires Raw prompt mode' })).toBeVisible(); expect(await read()).toEqual(authored); - await page.getByRole('button', { name: 'Raw prompt enhancement', exact: true }).click(); + await canvasControls(page).getByRole('button', { name: 'Raw prompt enhancement', exact: true }).click(); await page.getByRole('option', { name: 'Match current layout', exact: true }).click(); } - await page.getByRole('button', { name: 'Enable enhancement', exact: true }).click(); - await expect(page.getByRole('button', { name: 'Preview', exact: true })).toBeVisible(); + await canvasControls(page).getByRole('button', { name: 'Enable enhancement', exact: true }).click(); + await expect(canvasControls(page).getByRole('button', { name: 'Preview', exact: true })).toBeVisible(); const appended = await read(); expect(appended.parentId).toBe(raw.parentId); expect(appended.contractId).toBe(`${raw.parentId}:preview`); From 76312e5d3ed012a4a252c6885cecd3c3e973a9fb Mon Sep 17 00:00:00 2001 From: Sourav Das Date: Fri, 27 Nov 2026 21:53:22 +0530 Subject: [PATCH 421/440] Document the Studio controls and check the exact suggested socket --- docs/developer-first-node-ux.md | 14 ++++++-------- docs/image-template-workflows.md | 2 +- tests/e2e/studio-mocked/studio-mocked.spec.ts | 9 ++++++--- 3 files changed, 13 insertions(+), 12 deletions(-) diff --git a/docs/developer-first-node-ux.md b/docs/developer-first-node-ux.md index 6816e953..798fda8d 100644 --- a/docs/developer-first-node-ux.md +++ b/docs/developer-first-node-ux.md @@ -18,7 +18,7 @@ canvas editing. Collapse it again when finished; exposed controls stay directly editable without expansion. Saving changes offers workflow-only, new reusable Block and applicable existing-definition choices. -The full-width yellow **Add custom node** button opens Local, Hugging Face or Git. +Choose **+ Custom** in the Nodes panel header to add a node from Local, Hugging Face or Git. Selected source cards have a yellow border, tint and checkmark. Advanced contains optional name/revision settings; normal remote imports need only a repository. Add/Load/Reload authorizes trusted Python in one action. Validation and dependency @@ -140,13 +140,11 @@ are not silently repaired or structurally rewritten when opened. Existing ControlNet and custom branches are retained; Image does not mean Control Image. Unsupported or ambiguous preparation reports an error rather than silently choosing a different operation or discarding existing work. -4. Choose the visible **Edit stages** action to edit individual stages and their - connections on the canvas. It uses the existing separation transaction, with - one Undo to restore the combined node. Common controls remain directly editable - without separation. **Inspect implementation** and the named **Separate…** - actions remain in the options menu. Inspection never turns the node into an - enclosing Block. Model Setup, Guidance, Prepare Mask and Output groups use the - same direct editing action where that compact presentation is supported. +4. Choose **Edit stages** to wire the underlying operations on the canvas. **Done editing** + returns to the same stage and keeps your edits. The stage menu also offers + **Inspect implementation** for a read-only overview and **Convert to independent + nodes…** when you want the listed operations to become standalone nodes. Review + the list before confirming the conversion. 5. Change model/task through Load Models. Compatible values and external branches are retained; incompatible changes still require the normal review. An existing image/audio source also supplies newly required inputs with the same declared diff --git a/docs/image-template-workflows.md b/docs/image-template-workflows.md index 152992f3..e40b6b6e 100644 --- a/docs/image-template-workflows.md +++ b/docs/image-template-workflows.md @@ -60,7 +60,7 @@ while a direct-image encoder still needs its image connection. Saved operation hints cannot override this contract; unknown, connected or conflicting selectors retain the conservative registry requirements. -The **Experimental** category includes **MiniMax H3 Image — Old Town: Human & Cat**. +The **Image** collection features **MiniMax H3 Image — Old Town: Human & Cat**. It creates the same generic text-to-image stages, with a fictional adult and a cat as the foreground subjects and a detailed street background. Its pinned 2048-square BF16 recipe uses Custom memory and SSD group offload. The Gallery diff --git a/tests/e2e/studio-mocked/studio-mocked.spec.ts b/tests/e2e/studio-mocked/studio-mocked.spec.ts index dc68dc70..3f9d2e0e 100644 --- a/tests/e2e/studio-mocked/studio-mocked.spec.ts +++ b/tests/e2e/studio-mocked/studio-mocked.spec.ts @@ -33662,9 +33662,12 @@ test('one-action custom import enables nodes and explicit reload updates the reg await page.mouse.move(pane.x + pane.width - 70, pane.y + 70, { steps: 18 }); await page.mouse.up(); const suggestions = page.getByRole('listbox', { name: 'Matching nodes' }); - await expect(suggestions.getByRole('option', { name: 'M6 Echo', exact: true })).toBeVisible(); - await suggestions.getByRole('option', { name: 'M6 Echo', exact: true }).click(); - await expect.poll(() => page.evaluate(() => window.__MODIFF_E2E__!.getState().flow.edges.length)).toBe(1); + const matchingInput = suggestions.getByRole('option', { name: 'M6 Echo Input · Text', exact: true }); + await expect(matchingInput).toBeVisible(); + await matchingInput.click(); + await expect + .poll(() => page.evaluate(() => window.__MODIFF_E2E__!.getState().flow.edges)) + .toMatchObject([{ source: id, sourceHandle: 'out', targetHandle: 'text' }]); await assertUnifiedWorkspace(page, 'auto'); await page.getByLabel('Search nodes', { exact: true }).fill('M6 Echo'); await expect( From aba635a904a15884dcbaafd6f76acdc63fbaede8 Mon Sep 17 00:00:00 2001 From: Sourav Das Date: Fri, 27 Nov 2026 22:30:36 +0530 Subject: [PATCH 422/440] Keep slow templates intact and expose effective model settings --- docs/audio-workflows.md | 5 +- docs/developer-first-node-ux.md | 32 +++- docs/image-template-workflows.md | 7 +- docs/studio-user-flow.md | 2 + docs/workflow-authoring-ux.md | 2 +- scripts/bundle-budget.mjs | 12 +- scripts/graph-visuals.test.mjs | 86 +++++++++ scripts/modiff-template.test.mjs | 28 +++ ...workflow-library-canonical-export.test.mjs | 178 +++++++++++++++++- src/components/EncodingNodeRenderer.tsx | 43 +++-- src/components/ErrorBoundary.tsx | 46 ++++- src/components/NodeContent.tsx | 27 ++- src/components/StageNodeControls.tsx | 23 ++- src/studio/exampleWorkflow.ts | 28 ++- src/studio/graphNodeControls.ts | 10 +- src/studio/templateBrowser.ts | 29 ++- src/studio/templateWorkflow.ts | 21 ++- src/utils/searchKeywords.ts | 2 +- src/workflow/gatedNodeControls.ts | 46 +++++ src/workflow/graphLayout.ts | 34 ++-- src/workflow/modelSetupControlPresentation.ts | 84 +++++++-- tests/e2e/studio-mocked/studio-mocked.spec.ts | 133 ++++++++++++- 22 files changed, 772 insertions(+), 106 deletions(-) diff --git a/docs/audio-workflows.md b/docs/audio-workflows.md index 80d14124..b5c205d4 100644 --- a/docs/audio-workflows.md +++ b/docs/audio-workflows.md @@ -21,7 +21,10 @@ internal computation editable. MiniMax's semantic generation is an actual stage and must remain distinct from prompt encoding. Grouping is an explicit, undoable presentation change using the existing Block -contract. Inspect implementation and Separate stages expose the original leaves. +contract. Choose **Inspect implementation** to see which operations a stage contains. +Use **Edit stages** to wire those operations, then **Done editing** to return. +To place the operations directly on the canvas, select **Convert to independent nodes…** +and confirm the list. Flattened execution, connected values and model ownership stay authoritative. Existing saved workflows retain their presentation until deliberately changed. Shared, ambiguous or custom branches require explicit structural editing. diff --git a/docs/developer-first-node-ux.md b/docs/developer-first-node-ux.md index 798fda8d..7319855f 100644 --- a/docs/developer-first-node-ux.md +++ b/docs/developer-first-node-ux.md @@ -110,7 +110,9 @@ Encode Inputs uses the ordinary node layout, scrolling controls and status-strip resize grip. It is not an expandable canvas Block. Backend encoding stages remain separate, with typed conditioning, latent and route-state outputs. Guidance uses the same ordinary node shell, with Guider/Layers controls and a secondary options -menu for inspection, reusable saving and **Separate guidance stages**. Schedulers +menu for inspection and reusable saving. Choose **Edit stages** to work inside +Guidance and **Done editing** to return. To place the Guider and Layers directly +on the canvas, choose **Convert to independent nodes…** and confirm. Schedulers and adapters remain separate. Guider selection and layer-stack selection use the backend's declared field @@ -136,7 +138,8 @@ are not silently repaired or structurally rewritten when opened. in one Undo step. Cancelling node search or failing preparation changes nothing. 3. Required encoding stages are prepared behind the same Encode Inputs node. Text and image can both be used; section collapse only hides fields. Load Image - stays separate, as do Denoise, Decode and Preview. + stays separate. In native image workflows, Generate owns its matching denoiser + and decoder, and Image Output displays the result. Existing ControlNet and custom branches are retained; Image does not mean Control Image. Unsupported or ambiguous preparation reports an error rather than silently choosing a different operation or discarding existing work. @@ -189,14 +192,22 @@ with declared non-image outputs omits the empty image LoRA panel. Existing adapter rows and external connections remain inspectable, and supported audio routes retain their declared adapter controls. -When a directly connected execution recipe supplies a VAE setting inside Model -Setup, the node and inspector show the recipe control. The loader's saved -fallback value remains available in the implementation and returns to the node -when the recipe is disconnected. Base model and adapter revisions keep their +When a built-in execution recipe supplies placement inside Model Setup, the +canvas and inspector show **Execution Device** and **Runtime Offload**. Direct +image, audio, video and 3D loaders use these settings. Disconnect the recipe +to edit the loader's saved device, automatic offload switch and offload mode. +A connected VAE setting follows the same rule. Custom controls and ambiguous +connections stay visible. Base model and adapter revisions keep their separate values. A stock image loader whose conditioning selector is set to None hides the auxiliary model picker and revision in Model Setup and Inspector. Connected supplier controls and the saved values remain available when applicable. +In a built-in execution recipe, **Layerwise Casting** reveals its components, +storage dtype and compute dtype. **Channels Last** reveals its own components. +Show each switch first on the raw node, grouped stage and inspector. A wired +switch keeps its settings available, and a wired option stays visible. Turning +a switch off preserves its saved options for the next time it is enabled. + Use role-specific captions for inputs and outputs. Image composition names the overlay and base separately, and generated dimensions are labeled as measured outputs. Presentation changes preserve authored names, field IDs and socket types. @@ -244,10 +255,11 @@ contains the required nodes: straight to Preview, so that single node is not wrapped. These groups use the ordinary node shell, with real controls and declared -sockets. Image Output displays the existing backend preview. Use their options -menu to inspect the implementation, configure interfaces, separate stages or -explicitly save a reusable node. Separate and grouping are one Undo step; -refresh keeps the chosen layout and settings. Saving snapshots current values +sockets. Image Output displays the existing backend preview. The stage menu opens +inspection and interface configuration, saves eligible stages as reusable Blocks, +or converts the listed operations to independent nodes after confirmation. +Converting or grouping operations takes one Undo step. Refreshing keeps the +chosen layout and settings. Saving snapshots current values and creates independent reusable instances through the same User Node contract. Model Setup retains the model picker and Change model / task review. Applying a diff --git a/docs/image-template-workflows.md b/docs/image-template-workflows.md index e40b6b6e..578b55f3 100644 --- a/docs/image-template-workflows.md +++ b/docs/image-template-workflows.md @@ -46,9 +46,10 @@ pairs are not folded. Any external latent consumer keeps its boundary connection Additional media preparation, control, composite or upscale branches remain visible; the four-stage presentation is the core native diffusion path, not a limit on all workflow node counts. Existing saved layouts change only through explicit stage -actions. Combine encoding and Guidance and Separate encoding stages each support -one-step Undo. Inspecting or saving a workflow never changes a reusable library -definition implicitly. +actions. **Combine encoding and Guidance** groups the connected operations. To +put the operations back on the canvas as individual nodes, open the stage menu, +choose **Convert to independent nodes…**, then confirm. Either change takes one +Undo step. Inspecting or saving a workflow preserves its reusable library definition. MiniMax H3 Image uses the same generic Model Setup, Encode Inputs, Generate and Preview stages. Generate combines the real denoising and decoding calls, with diff --git a/docs/studio-user-flow.md b/docs/studio-user-flow.md index ce475bf6..06962ce3 100644 --- a/docs/studio-user-flow.md +++ b/docs/studio-user-flow.md @@ -34,6 +34,8 @@ When the canvas is empty, the task launcher offers common guided entry points: **Browse recipes** opens the template browser. Templates are often the clearest way to discover image, video, audio, or advanced workflows that are not shown as first-screen shortcuts. +In **All templates**, search for a card title, recipe ID, model name or words from its prompt. The **Recommended** sort puts matching names ahead of recipes that only mention the words in their prompts. Choose **Task**, **Model** or **Runtime** to order the same matches by that field. + The model list is filtered by task. A model profile being visible means the client understands its intended fields and requirements; it does not guarantee that the current backend, artifact, or machine can run it. ## Understand The Interface diff --git a/docs/workflow-authoring-ux.md b/docs/workflow-authoring-ux.md index 5b3fd54f..5e02386a 100644 --- a/docs/workflow-authoring-ux.md +++ b/docs/workflow-authoring-ux.md @@ -507,7 +507,7 @@ uses the current registry to check which model identities the Guider accepts. ## Opening and inspecting a workflow -Fresh tasks, templates and examples measure the controls, open sections and sockets on each node before arranging the graph. This includes nodes supplied by a Python extension. Long forms start with up to 960 pixels of controls. Right-click the stage and choose **Fit height to controls** to expand a stage further. Saved workflows reopen at their authored sizes and positions. +Fresh tasks, templates and examples wait for each stage’s controls to load, then measure the open sections and sockets before arranging the graph. If a stage’s controls cannot load, its workflow remains available. Choose **Reload workspace to retry** in the affected stage to recover its controls. This includes nodes supplied by a Python extension. Long forms start with up to 960 pixels of controls. Right-click the stage and choose **Fit height to controls** to expand a stage further. Saved workflows reopen at their authored sizes and positions. **Enabled** opens the settings for a guidance operation. Switching it off preserves your settings for the next time you enable it. A modular model loader shows **Offload Mode** when automatic offload is enabled, supplied by a wire, or required by the selected model’s adapter settings. Canvas and inspector controls edit the same stored values. diff --git a/scripts/bundle-budget.mjs b/scripts/bundle-budget.mjs index 324a6589..ba952893 100644 --- a/scripts/bundle-budget.mjs +++ b/scripts/bundle-budget.mjs @@ -495,9 +495,9 @@ const SOURCE_LICENSES = new URL('../public/THIRD_PARTY_LICENSES.txt', import.met // Compared with the shipped bundle, accessible workspace drawers, shared stage controls, // task discovery and hardware reporting add 3,781 gzip bytes to the largest startup chunk. // Four entry chunks and the existing 64 KiB limit on each deferred chunk are preserved. -// Content-sized stages, role-aware wiring and editing add the measured largest-chunk delta. 578843 to 581770 gzip bytes. +// Content-sized stages, role-aware wiring and editing add the measured largest-chunk delta. 578843 to 582412 gzip bytes. const MAX_STARTUP_CHUNK_GZIP_BYTES = - 2927 + + 3569 + 3781 + // The approved native Shap-E preview brings the largest chunk to 575069 gzip bytes. 631 + @@ -823,9 +823,9 @@ const MAX_STARTUP_CHUNK_GZIP_BYTES = // The same build measures 673359 aggregate startup bytes (+45 over the cap). // Keep 19 bytes of headroom; deferred limits and loading boundaries stay fixed. // The same build measures 757,520 total startup bytes, up from 753,545. -// The four startup chunks include shared selectors, stage geometry and editing controls. 757520 to 763802 gzip bytes. +// The four startup chunks include shared selectors, stage geometry and editing controls. 757520 to 764447 gzip bytes. const MAX_STARTUP_GZIP_BYTES = - 6282 + + 6927 + 3975 + // The Shap-E preview and its Gallery descriptor add 634 bytes of startup JavaScript. 634 + @@ -1211,9 +1211,9 @@ const MAX_DEFERRED_CHUNK_GZIP_BYTES = 64 * 1024; // Retain both startup caps, the independent 64 KiB chunk cap and prior headroom. // Template previews, Gallery and setup stay deferred. Their aggregate moves from // 357,530 to 361,671 bytes, including the shared workflow-file picker. -// The template feature, panel layouts and conditional controls are loaded with their existing surfaces. 361671 to 366790 gzip bytes. +// The template feature, panel layouts and conditional controls are loaded with their existing surfaces. 361671 to 367428 gzip bytes. const MAX_DEFERRED_GZIP_BYTES = - 5119 + + 5757 + 4141 + // The native turntable comparison adds 129 bytes and keeps 41 bytes of headroom. 129 + diff --git a/scripts/graph-visuals.test.mjs b/scripts/graph-visuals.test.mjs index e92986ed..1e85c0c5 100644 --- a/scripts/graph-visuals.test.mjs +++ b/scripts/graph-visuals.test.mjs @@ -1340,6 +1340,92 @@ test('measurement waiting starts its deadline on the first available browser fra } }); +test('fresh layout waits for downloaded controls, stops on failure or a changed document, and bounds a stalled download', async () => { + const previousDocument = Object.getOwnPropertyDescriptor(globalThis, 'document'); + const previousFrame = window.requestAnimationFrame; + const previousNow = Date.now; + let frame = 0; + let releaseFrame = 6; + let failed = false; + const target = node('downloaded-controls', 0, 0); + target.measured = { width: 320, height: 240 }; + try { + Object.defineProperty(globalThis, 'document', { + configurable: true, + value: { + getElementById: () => ({ + querySelector: (selector) => (selector === '[data-node-load-error]' ? failed : frame < releaseFrame), + }), + }, + }); + Date.now = () => frame * 1000; + window.requestAnimationFrame = (callback) => { + frame++; + queueMicrotask(() => callback(Date.now())); + return frame; + }; + const wait = (isCurrent = () => true) => + graphLayout.waitForGraphNodeMeasurements(() => [target], 2000, { controlLoadTimeoutMs: 8000, isCurrent }); + assert.equal(await wait(), true); + assert.equal(frame, 7, 'Only real controls with two stable frames can complete fresh layout.'); + frame = 0; + releaseFrame = Infinity; + assert.equal(await wait(), false); + assert.equal(frame, 11); + frame = 0; + assert.equal(await wait(() => frame < 3), false); + assert.equal(frame, 3, 'A tab switch or authored edit cancels before application.'); + frame = 0; + failed = true; + assert.equal(await wait(), false); + assert.equal(frame, 1); + } finally { + window.requestAnimationFrame = previousFrame; + Date.now = previousNow; + if (previousDocument) Object.defineProperty(globalThis, 'document', previousDocument); + else delete globalThis.document; + } +}); + +test('late fresh-workflow measurements preserve an intervening layout edit and leave a replacement tab alone', async () => { + const { settleExampleWorkflowCanvas } = await server.ssrLoadModule('/src/studio/exampleWorkflow.ts'); + const studio = studioStoreModule.useStudioStore; + const flow = flowStoreModule.useFlowStore; + studio.getState().ensureWorkflowTabs(); + flow.getState().replaceGraph({ nodes: [node('first', 130, 260), node('second', 600, 260)], edges: [] }); + const previousFrame = window.requestAnimationFrame; + try { + let nextFrame; + window.requestAnimationFrame = (callback) => { + nextFrame = callback; + return 1; + }; + const editing = settleExampleWorkflowCanvas(); + const finishEditing = nextFrame; + flow.getState().withHistory('Move second node', () => + flow.getState().replaceGraph({ + nodes: [node('first', 130, 260), node('second', 831, 733)], + edges: [], + }), + ); + finishEditing(); + assert.equal(await editing, true); + assert.deepEqual(flow.getState().nodes[1].position, { x: 831, y: 733 }); + const switching = settleExampleWorkflowCanvas(); + const finishSwitching = nextFrame; + studio.getState().createWorkflowTab('Another document'); + flow.getState().replaceGraph({ nodes: [node('other', 345, 543)], edges: [] }); + finishSwitching(); + assert.equal(await switching, false); + assert.deepEqual( + flow.getState().nodes.map(({ id, position }) => ({ id, position })), + [{ id: 'other', position: { x: 345, y: 543 } }], + ); + } finally { + window.requestAnimationFrame = previousFrame; + } +}); + test('measurement readiness excludes hidden and folded Block projection leaves', async () => { const root = node('measured-root', 0, 0); root.data.blockInstanceV2 = {}; diff --git a/scripts/modiff-template.test.mjs b/scripts/modiff-template.test.mjs index f73e4e1b..73df999f 100644 --- a/scripts/modiff-template.test.mjs +++ b/scripts/modiff-template.test.mjs @@ -4437,6 +4437,34 @@ test('ACE templates lock musical structure, metadata, and model-aware negative b ); }); +test('template search puts exact card, recipe and model names ahead of incidental prompt matches', () => { + const { STUDIO_TEMPLATES } = templatesModule; + const { filterStudioTemplates, templateModelDisplayName } = browserModule; + const form = profilesModule.DEFAULT_STUDIO_FORM; + const filter = { category: 'all', modelType: 'all', difficulty: 'all', sort: 'recommended' }; + const exactText = STUDIO_TEMPLATES.find((item) => item.id === 'qwen_text_rendering'); + const preview = STUDIO_TEMPLATES.find((item) => item.id === 'low_vram'); + assert.ok(exactText && preview); + const queryCatalog = (query) => filterStudioTemplates(STUDIO_TEMPLATES, form, { ...filter, query }); + for (const query of [exactText.label, 'Exact Text', 'QWEN_text_rendering']) { + assert.equal(queryCatalog(query)[0].id, exactText.id, query); + } + assert.equal(queryCatalog('Quick Preview')[0].id, preview.id); + + const model = templateModelDisplayName(exactText); + const promptMatch = { + ...preview, + prompt: `Reference lighting from ${model} (${exactText.modelType}). Exact text on a small sign.`, + }; + const recipes = [promptMatch, exactText]; + const search = (query, sort = 'recommended') => + filterStudioTemplates(recipes, form, { ...filter, query, sort }, (item) => (item === promptMatch ? 1 : 15)); + assert.deepEqual(search(model), [exactText, promptMatch]); + assert.deepEqual(search(exactText.modelType), [exactText, promptMatch]); + assert.deepEqual(search('Exact Text'), [exactText, promptMatch]); + assert.deepEqual(search('Exact Text', 'runtime'), [promptMatch, exactText]); +}); + test('template browser exposes the complete workflow catalog across task and adapter categories', () => { const { STUDIO_TEMPLATES } = templatesModule; const { TEMPLATE_BROWSER_CATEGORIES, filterStudioTemplates, templateCategoryId, templateCategoryIds } = browserModule; diff --git a/scripts/workflow-library-canonical-export.test.mjs b/scripts/workflow-library-canonical-export.test.mjs index a2b810e4..1dc67859 100644 --- a/scripts/workflow-library-canonical-export.test.mjs +++ b/scripts/workflow-library-canonical-export.test.mjs @@ -399,6 +399,155 @@ test('Model Setup subsections use the bound loader caption without renaming a sa assert.deepEqual(api(grouped), api(source)); }); +test('direct image, audio, video and 3D setup shows effective recipe placement and restores saved loader fallbacks', () => { + const backend = path.resolve(process.env.MODIFF_BACKEND_DIR || '../MoDiff'); + for (const pathToGraph of [ + 'ddim-pipeline/unconditional-image', + 'long-cat-audio-di-t-pipeline/text-to-audio', + 'wan-vace-pipeline/control-to-video', + 'shap-e-pipeline/text-to-3d', + ]) { + const saved = JSON.parse(readFileSync(path.join(backend, 'data/graphs/studio', `${pathToGraph}.json`), 'utf8')); + const grouped = groups.groupNewOperationGraph(saved); + const setup = grouped.nodes.find((node) => groups.visualOperationGroup(node) === 'setup'); + assert.ok(setup, pathToGraph); + const original = structuredClone(setup); + const instance = setup.data.blockInstanceV2; + const graph = blockRuntime.blockOperationGraphV2(instance); + const recipe = graph.nodes.find((node) => node.data.action === 'DiffusersExecutionRecipe'); + const loader = graph.nodes.find((node) => node.data.action === 'LoadPipeline'); + const params = blockRuntime.blockViewModelV2(instance).controlParams; + const control = (node, key) => + instance.effectiveInterface.controls.find( + (entry) => entry.binding.nodeId === node.data.blockProjectionNodeId && entry.binding.fieldId === key, + ).controlId; + const visible = (g, edges = []) => modelSetupControlParams(instance, g, params, edges); + const recipeWire = graph.edges.find( + (edge) => edge.source === recipe.id && edge.target === loader.id && edge.targetHandle === 'execution_recipe', + ); + assert.ok(recipeWire, pathToGraph); + const unplugged = { ...graph, edges: graph.edges.filter((edge) => edge !== recipeWire) }; + const unknown = { + ...graph, + nodes: graph.nodes.map((node) => + node !== recipe + ? node + : { + ...node, + data: { ...node.data, module: 'custom.local', action: 'UserRecipe' }, + }, + ), + }; + const inspector = graphNodeControlParams(setup); + for (const [raw, effective] of [ + ['auto_offload', 'offload_mode'], + ['offload_mode', 'offload_mode'], + ['device', 'device'], + ]) { + const rawId = control(loader, raw); + const effectiveId = control(recipe, effective); + assert.equal(visible(graph)[rawId], undefined, `${pathToGraph}: ${raw}`); + assert.equal(inspector[rawId], undefined); + assert.deepEqual(visible(graph)[effectiveId], params[effectiveId]); + assert.equal(inspector[effectiveId].label, params[effectiveId].label); + assert.deepEqual(visible(unplugged)[rawId], params[rawId], 'disconnect restores the stored value'); + assert.deepEqual(visible(unknown)[rawId], params[rawId], 'an unknown supplier cannot hide the loader field'); + const customWire = { + id: 'custom-placement', + source: 'custom', + sourceHandle: 'value', + target: recipe.id, + targetHandle: effective, + }; + assert.deepEqual( + visible({ ...graph, edges: [...graph.edges, customWire] })[rawId], + params[rawId], + 'a connected custom placement value keeps the original control available', + ); + assert.deepEqual(visible({ ...unplugged, edges: [...unplugged.edges, recipeWire] }), visible(graph)); + } + assert.deepEqual(setup, original, 'presenting any of these states preserves the durable graph'); + const reopened = JSON.parse(JSON.stringify(grouped)); + const savedSetup = reopened.nodes.find((node) => node.id === setup.id); + assert.deepEqual(graphNodeControlParams(savedSetup), inspector); + const exported = (sourceGraph) => + canonicalGraphIdentity( + flowStore.getState().exportGraph('placement-presentation', undefined, { sourceGraph, randomizeSeeds: false }), + ); + assert.deepEqual(exported(reopened), exported(saved)); + } +}); + +test('execution recipe switches govern only their own literal settings in raw nodes, Model Setup and inspector', () => { + const backend = path.resolve(process.env.MODIFF_BACKEND_DIR || '../MoDiff'); + const original = JSON.parse( + readFileSync(path.join(backend, 'data/graphs/studio/ddim-pipeline/unconditional-image.json'), 'utf8'), + ); + const sections = { + layerwise_casting: ['layerwise_casting_components', 'layerwise_storage_dtype', 'layerwise_compute_dtype'], + channels_last: ['channels_last_components'], + }; + for (const selected of [null, 'channels_last', 'layerwise_casting']) { + const saved = structuredClone(original); + const raw = saved.nodes.find((node) => node.data.action === 'DiffusersExecutionRecipe'); + for (const name of Object.keys(sections)) { + const field = raw.data.params[name]; + delete raw.data.params[name]; + raw.data.params[name] = { ...field, value: name === selected }; + } + const before = structuredClone(raw); + const grouped = groups.groupNewOperationGraph(saved); + const setup = grouped.nodes.find((node) => groups.visualOperationGroup(node) === 'setup'); + const instance = setup.data.blockInstanceV2; + const graph = blockRuntime.blockOperationGraphV2(instance); + const recipe = graph.nodes.find((node) => node.data.action === raw.data.action); + const id = (name) => + instance.effectiveInterface.controls.find( + (control) => control.binding.nodeId === recipe.data.blockProjectionNodeId && control.binding.fieldId === name, + ).controlId; + const params = blockRuntime.blockViewModelV2(instance).controlParams; + const rawView = graphNodeControlParams(raw); + const stageView = modelSetupControlParams(instance, graph, params); + const inspector = graphNodeControlParams(setup); + for (const [gate, fields] of Object.entries(sections)) { + assert.equal(rawView[gate].value, selected === gate); + assert.equal(stageView[id(gate)].value, selected === gate); + const knownGate = { + id: 'external-switch', + source: 'switch', + sourceHandle: 'value', + target: recipe.id, + targetHandle: gate, + }; + const unknown = modelSetupControlParams(instance, { ...graph, edges: [...graph.edges, knownGate] }, params); + const rawUnknown = graphNodeControlParams(raw, [{ ...knownGate, target: raw.id }]); + for (const key of fields) { + for (const [view, switchId, keyId] of [ + [rawView, gate, key], + [stageView, id(gate), id(key)], + [inspector, id(gate), id(key)], + ]) { + assert.equal(Object.hasOwn(view, keyId), selected === gate, `${gate}: ${key}`); + if (selected === gate) assert.ok(Object.keys(view).indexOf(switchId) < Object.keys(view).indexOf(keyId)); + } + assert.ok(unknown[id(key)] && rawUnknown[key], 'a connected external switch keeps its options accessible'); + const connectedOption = { ...knownGate, targetHandle: key }; + assert.ok(graphNodeControlParams(raw, [{ ...connectedOption, target: raw.id }])[key]); + assert.ok( + modelSetupControlParams(instance, { ...graph, edges: [...graph.edges, connectedOption] }, params)[id(key)], + ); + } + } + assert.deepEqual(raw, before, 'opening or editing disclosure must not change authored values'); + assert.deepEqual(graphNodeControlParams(JSON.parse(JSON.stringify(setup))), inspector); + const custom = { ...raw, data: { ...raw.data, module: 'custom.user' } }; + assert.ok( + graphNodeControlParams(custom).layerwise_storage_dtype, + 'a similarly shaped custom node keeps its own policy', + ); + } +}); + test('Model Setup shows connected VAE recipe controls and retains each loader fallback', () => { const backend = path.resolve(process.env.MODIFF_BACKEND_DIR || '../MoDiff'); const examples = [ @@ -623,7 +772,34 @@ test('Model Setup scopes VAE precedence to each owner and distinguishes base mod (control) => control.binding.fieldId === 'enable_vae_tiling', ); assert.equal(Object.hasOwn(audio.visible, audioFallback.controlId), false); - assert.deepEqual(video.visible, video.controlParams); + const videoLoader = video.instance.effectiveGraph.nodes.find((node) => node.data.action === 'LoadPipeline'); + const placementFallbackIds = video.instance.effectiveInterface.controls + .filter( + (control) => + control.binding.nodeId === videoLoader.nodeId && + ['auto_offload', 'offload_mode', 'device'].includes(control.binding.fieldId), + ) + .map((control) => control.controlId); + assert.equal(placementFallbackIds.length, 3); + const disabledRecipeFields = [ + 'layerwise_casting_components', + 'layerwise_storage_dtype', + 'layerwise_compute_dtype', + 'channels_last_components', + ]; + const recipe = video.instance.effectiveGraph.nodes.find((node) => node.data.action === 'DiffusersExecutionRecipe'); + const inactiveRecipeIds = video.instance.effectiveInterface.controls + .filter( + (control) => control.binding.nodeId === recipe.nodeId && disabledRecipeFields.includes(control.binding.fieldId), + ) + .map((control) => control.controlId); + assert.equal(inactiveRecipeIds.length, 4); + const otherVideoControls = Object.fromEntries( + Object.entries(video.controlParams).filter( + ([id]) => !placementFallbackIds.includes(id) && !inactiveRecipeIds.includes(id), + ), + ); + assert.deepEqual(video.visible, otherVideoControls); const [adapterExample] = stageControls('studio/flux-dev-pipeline/text-to-image--flux-lora-ghibli-story.json'); const revisionControls = adapterExample.instance.effectiveInterface.controls.filter( diff --git a/src/components/EncodingNodeRenderer.tsx b/src/components/EncodingNodeRenderer.tsx index d825a0fd..dcc72eee 100644 --- a/src/components/EncodingNodeRenderer.tsx +++ b/src/components/EncodingNodeRenderer.tsx @@ -6,6 +6,7 @@ import { visualNodeTitle } from '../studio/visualNodeCatalog'; import { CustomNodeFrame, CustomNodeHeaderFrame } from '../ui'; import { nodeConnectorParams } from '../studio/nodeConnectorResolution'; import NodeContent from './NodeContent'; +import ErrorBoundary from './ErrorBoundary'; const EncodingNode = lazy(() => import('./EncodingNode')); @@ -14,25 +15,27 @@ export default function EncodingNodeRenderer(props: NodeProps) { const ports = nodeConnectorParams(props); const catalog = useNodesStore((state) => state.visualNodeCatalog); return ( - - {visualNodeTitle(catalog, props.data)} -

- Loading node controls… -

- undefined} - /> - - } - > - -
+ + + {visualNodeTitle(catalog, props.data)} +

+ Loading node controls… +

+ undefined} + /> + + } + > + +
+
); } diff --git a/src/components/ErrorBoundary.tsx b/src/components/ErrorBoundary.tsx index 80c60043..55c0d097 100644 --- a/src/components/ErrorBoundary.tsx +++ b/src/components/ErrorBoundary.tsx @@ -1,22 +1,28 @@ // Derived from cubiq/Mellon-client and modified by the MoDiff project. import { Component, ErrorInfo, ReactNode } from 'react'; +import { ModiffButton } from '../ui'; +import { useStudioStore } from '../stores/useStudioStore'; interface ErrorBoundaryProps { children?: ReactNode; module?: string; action?: string; + nodeId?: string; } -class ErrorBoundary extends Component { +class ErrorBoundary extends Component { constructor(props: ErrorBoundaryProps) { super(props); - this.state = { hasError: false }; + this.state = { hasError: false, loadFailed: false }; } - static getDerivedStateFromError() { - // Update state so the next render will show the fallback UI. - return { hasError: true }; + static getDerivedStateFromError(error: unknown) { + const loadFailed = + error instanceof Error && + (error.name === 'ChunkLoadError' || + /dynamically imported module|loading chunk|module script failed/i.test(error.message)); + return { hasError: true, loadFailed }; } componentDidCatch(error: Error, info: ErrorInfo) { @@ -26,11 +32,31 @@ class ErrorBoundary extends Component render() { if (this.state.hasError) { return ( -
-

- Something went wrong while rendering module `{this.props.module}` action `{this.props.action}`. Please check - the browser console and report the incident. -

+ ); } diff --git a/src/components/NodeContent.tsx b/src/components/NodeContent.tsx index dc625d8b..696d56d5 100644 --- a/src/components/NodeContent.tsx +++ b/src/components/NodeContent.tsx @@ -15,7 +15,13 @@ import { import { formPatchForAutoCandidate, selectedAutoCandidate } from '../studio/autoResource'; import { NodeParams, type NodeParamOptions, type NodeParamSignal, useNodesStore } from '../stores/useNodeStore'; import { useFlowStore } from '../stores/useFlowStore'; -import { adapterConsumesOffloadMode, nodeControlGate, orderedActiveNodeControls } from '../workflow/gatedNodeControls'; +import { + adapterConsumesOffloadMode, + EXECUTION_RECIPE_NODE, + nodeControlGate, + orderedActiveNodeControls, + visibleExecutionRecipeControls, +} from '../workflow/gatedNodeControls'; import { classifyManagedControl } from '../studio/managedControlPolicy'; import { blockRuntimeOptionPresentation, @@ -236,7 +242,24 @@ const NodeContent = memo(function NodeContent({ const modeRequiredByAdapter = useNodesStore( (state) => gate === 'auto_offload' && adapterConsumesOffloadMode(fullParams, state), ); - const activeControls = orderedActiveNodeControls(identity, params, fullParams, connectedGate, modeRequiredByAdapter); + const suppliedRecipeFields = useFlowStore( + useShallow((state) => + identity === EXECUTION_RECIPE_NODE + ? state.edges.filter((edge) => edge.target === nodeId).map((edge) => edge.targetHandle) + : [], + ), + ); + const activeParams = + identity === EXECUTION_RECIPE_NODE + ? visibleExecutionRecipeControls(params, fullParams, (key) => suppliedRecipeFields.includes(key)) + : params; + const activeControls = orderedActiveNodeControls( + identity, + activeParams, + fullParams, + connectedGate, + modeRequiredByAdapter, + ); const fields = activeControls.flatMap(([key, data]: [string, NodeParams]) => { const declaredLabel = data.label ?? key.charAt(0).toUpperCase() + key.slice(1); const label = diff --git a/src/components/StageNodeControls.tsx b/src/components/StageNodeControls.tsx index 6952f4dc..b4a8957c 100644 --- a/src/components/StageNodeControls.tsx +++ b/src/components/StageNodeControls.tsx @@ -42,16 +42,19 @@ export default function StageNodeControls({ .map((n) => n.data.blockProjectionNodeId), ); const adapters = new Set(graph.nodes.filter(isModelSetupAdapter).map((node) => node.data.blockProjectionNodeId)); - const controls = instance.effectiveInterface.controls.filter( - (control) => - controlParams[control.controlId] !== undefined && - !( - setup && - owners.has(control.binding.nodeId) && - ['repo_id', 'model_id', 'model_type'].includes(control.binding.fieldId) - ) && - !(setup && adapters.has(control.binding.nodeId)), - ); + const byId = new Map(instance.effectiveInterface.controls.map((control) => [control.controlId, control])); + const controls = Object.keys(controlParams) + .map((id) => byId.get(id)!) + .filter( + (control) => + control && + !( + setup && + owners.has(control.binding.nodeId) && + ['repo_id', 'model_id', 'model_type'].includes(control.binding.fieldId) + ) && + !(setup && adapters.has(control.binding.nodeId)), + ); const groups = [...new Set(controls.map((control) => control.group ?? 'Settings'))].map((group) => { const groupControls = controls.filter((control) => (control.group ?? 'Settings') === group); return { diff --git a/src/studio/exampleWorkflow.ts b/src/studio/exampleWorkflow.ts index e89440a9..8b31d342 100644 --- a/src/studio/exampleWorkflow.ts +++ b/src/studio/exampleWorkflow.ts @@ -1,6 +1,11 @@ import { useFlowStore, type CustomNodeType } from '../stores/useFlowStore'; import type { Edge } from '@xyflow/react'; -import { arrangeGraphNodes, waitForGraphNodeMeasurements } from '../workflow/graphLayout'; +import { enqueueSnackbar } from '../ui/snackbar'; +import { + FRESH_STAGE_CONTROL_LOAD_TIMEOUT_MS, + arrangeGraphNodes, + waitForGraphNodeMeasurements, +} from '../workflow/graphLayout'; import { groupNewOperationGraph } from '../workflow/visualOperationGroups'; import { workflowSnapshotFromGraph } from './workflowInference'; import { setBlockPresentationV2 } from './blockRuntimeV2'; @@ -9,6 +14,7 @@ import { captureWorkflowOperationContext, assertWorkflowOperationContext, isWorkflowOperationCancelled, + workflowOperationContextIsCurrent, useStudioStore, } from '../stores/useStudioStore'; @@ -50,10 +56,24 @@ export function exampleWorkflowSnapshotFromGraph( export async function settleExampleWorkflowCanvas() { const context = captureWorkflowOperationContext(); try { - const measured = await waitForGraphNodeMeasurements(() => useFlowStore.getState().nodes, 5_000); + const initialHistory = useFlowStore.getState().historyPast; + const ownsLayout = () => + workflowOperationContextIsCurrent(context, { includeForm: false }) && + useFlowStore.getState().historyPast === initialHistory; + const measured = await waitForGraphNodeMeasurements(() => useFlowStore.getState().nodes, 5_000, { + controlLoadTimeoutMs: FRESH_STAGE_CONTROL_LOAD_TIMEOUT_MS, + isCurrent: ownsLayout, + }); assertWorkflowOperationContext(context, { includeForm: false }); - if (!measured) - throw new Error('The example controls did not finish measuring. Reopen the example to retry its layout.'); + if (!measured || !ownsLayout()) { + if (ownsLayout()) + enqueueSnackbar( + 'The workflow opened with its original layout. Once controls have loaded, use Fit height to controls on a stage and Arrange graph if needed.', + { variant: 'warning' }, + ); + useStudioStore.getState().saveActiveWorkflowTab(true); + return true; + } await useFlowStore .getState() .arrangeGraph({ history: false, fitNewNodeContents: true, reserveFirstImagePreviewSpace: true }); diff --git a/src/studio/graphNodeControls.ts b/src/studio/graphNodeControls.ts index 607f41a5..d64c6281 100644 --- a/src/studio/graphNodeControls.ts +++ b/src/studio/graphNodeControls.ts @@ -13,6 +13,7 @@ import type { BlockJsonValue } from './blockSchemaV2'; import { syncManagedNodeControlChange } from './managedControlSync'; import type { AppModeInput } from './types'; import { modelSetupControlParams } from '../workflow/modelSetupControlPresentation'; +import { EXECUTION_RECIPE_NODE, visibleExecutionRecipeControls } from '../workflow/gatedNodeControls'; import { visualOperationGroup } from '../workflow/visualOperationGroupProjection'; export type GraphInputCandidate = AppModeInput & { node: CustomNodeType; param: NodeParams }; @@ -34,13 +35,18 @@ export function graphNodeControlParams( const source = instance ?? node.data.params; const setup = instance && visualOperationGroup(node) === 'setup'; // Model Setup depends on current adapter policy and connected suppliers. - const cacheable = !setup; + const recipe = !instance && `${node.data.module}.${node.data.action}` === EXECUTION_RECIPE_NODE; + const cacheable = !setup && !recipe; const cached = cacheable ? controlsBySource.get(source) : undefined; if (cached) return cached; const base = instance ? blockControlParamsV2(instance) : node.data.params; const params = setup ? modelSetupControlParams(instance, blockOperationGraphV2(instance), base, workflowEdges, catalog) - : base; + : recipe + ? visibleExecutionRecipeControls(base, node.data.params, (key) => + workflowEdges.some((edge) => edge.target === node.id && edge.targetHandle === key), + ) + : base; const controls = Object.fromEntries( Object.entries(params) .filter(([key, param]) => { diff --git a/src/studio/templateBrowser.ts b/src/studio/templateBrowser.ts index 496f0d93..de7a7c0d 100644 --- a/src/studio/templateBrowser.ts +++ b/src/studio/templateBrowser.ts @@ -1,4 +1,4 @@ -import { matchesSearchKeywords } from '../utils/searchKeywords'; +import { matchesSearchKeywords, normalizeSearchText } from '../utils/searchKeywords'; import { AUDIO_STUDIO_MODES, isStudioModelVisibleInCatalog, @@ -169,6 +169,8 @@ export function templateCategoryIds(template: StudioTemplate): TemplateBrowserCa export function templateSearchText(template: StudioTemplate) { return [ + template.id, + templateDisplayName(template), template.label, template.description, template.prompt, @@ -176,6 +178,7 @@ export function templateSearchText(template: StudioTemplate) { template.difficulty, template.vramEstimate, STUDIO_MODE_LABELS[template.mode], + template.modelType, templateModelDisplayName(template), template.modelArtifact?.value, ...(template.tags ?? []), @@ -187,6 +190,19 @@ export function templateSearchText(template: StudioTemplate) { .toLowerCase(); } +function templateSearchRank(template: StudioTemplate, query: string) { + const names = [template.id, templateDisplayName(template), template.label].map(normalizeSearchText); + if (names.includes(query)) return 0; + const modelNames = [template.modelType, templateModelDisplayName(template), template.modelArtifact?.value ?? ''].map( + normalizeSearchText, + ); + if (modelNames.includes(query)) return 1; + const identity = [...names, ...modelNames]; + if (identity.some((name) => name.includes(query))) return 2; + if (matchesSearchKeywords(query, identity)) return 3; + return 4; +} + function recommendedRank(template: StudioTemplate, form: StudioFormState) { let rank = 0; if (template.mode === form.mode) rank -= 100; @@ -261,6 +277,11 @@ export function filterStudioTemplates( return true; }); + const searchRanks = new Map(); + if (query && filter.sort === 'recommended') { + const normalized = normalizeSearchText(query); + for (const recipe of filtered) searchRanks.set(recipe, templateSearchRank(recipe, normalized)); + } return filtered.sort((left, right) => { if (filter.sort === 'runtime') { return ( @@ -270,7 +291,11 @@ export function filterStudioTemplates( } if (filter.sort === 'model') return templateModelDisplayName(left).localeCompare(templateModelDisplayName(right)); if (filter.sort === 'task') return STUDIO_MODE_LABELS[left.mode].localeCompare(STUDIO_MODE_LABELS[right.mode]); - return recommendedRank(left, form) - recommendedRank(right, form) || left.label.localeCompare(right.label); + return ( + (searchRanks.get(left) ?? 0) - (searchRanks.get(right) ?? 0) || + recommendedRank(left, form) - recommendedRank(right, form) || + left.label.localeCompare(right.label) + ); }); } diff --git a/src/studio/templateWorkflow.ts b/src/studio/templateWorkflow.ts index 66126715..1392ba1c 100644 --- a/src/studio/templateWorkflow.ts +++ b/src/studio/templateWorkflow.ts @@ -9,6 +9,7 @@ import { captureWorkflowOperationContext, currentAutoResourcePlanTarget, isWorkflowOperationCancelled, + workflowOperationContextIsCurrent, useStudioStore, type WorkflowOperationContext, } from '../stores/useStudioStore'; @@ -26,7 +27,7 @@ import { isPlanningOnlyTemplate } from './templateCreationPolicy'; import { normalizeStudioRuntimeDevice } from './runReadiness'; import { exactStudioExecutionSpecForForm } from './executionSpecs'; import { materializeTemplateDefaultInputs } from './templateInputs'; -import { waitForGraphNodeMeasurements } from '../workflow/graphLayout'; +import { FRESH_STAGE_CONTROL_LOAD_TIMEOUT_MS, waitForGraphNodeMeasurements } from '../workflow/graphLayout'; import { addLoraWorkflowBlock, addLyricVideoWorkflowBlock, @@ -412,11 +413,21 @@ export async function createWorkflowFromTemplate(template: StudioTemplate): Prom throw new Error(`${template.label} graph preparation timed out. No incomplete graph was kept; try again.`); } } - const measured = await waitForGraphNodeMeasurements(() => useFlowStore.getState().nodes, 5_000); + const initialHistory = useFlowStore.getState().historyPast; + const ownsLayout = () => + workflowOperationContextIsCurrent(context) && useFlowStore.getState().historyPast === initialHistory; + const measured = await waitForGraphNodeMeasurements(() => useFlowStore.getState().nodes, 5_000, { + controlLoadTimeoutMs: FRESH_STAGE_CONTROL_LOAD_TIMEOUT_MS, + isCurrent: ownsLayout, + }); assertWorkflowOperationContext(context); - if (!measured) - throw new Error('The template controls did not finish measuring. Reopen the template to retry its layout.'); - await useFlowStore.getState().arrangeGraph({ history: false, fitNewNodeContents: true }); + // The executable graph is complete. A delayed form cannot invalidate its recipe or erase an edit. + if (measured && ownsLayout()) + await useFlowStore.getState().arrangeGraph({ history: false, fitNewNodeContents: true }); + else if (ownsLayout()) + warnings.push( + 'The workflow opened with its original layout. Once controls have loaded, use Fit height to controls on a stage and Arrange graph if needed.', + ); assertWorkflowOperationContext(context); await waitForTemplateCanvasPaint(); assertWorkflowOperationContext(context); diff --git a/src/utils/searchKeywords.ts b/src/utils/searchKeywords.ts index 40bcb64e..709f6133 100644 --- a/src/utils/searchKeywords.ts +++ b/src/utils/searchKeywords.ts @@ -1,4 +1,4 @@ -function normalizeSearchText(value: string) { +export function normalizeSearchText(value: string) { return value .normalize('NFKC') .toLowerCase() diff --git a/src/workflow/gatedNodeControls.ts b/src/workflow/gatedNodeControls.ts index 381403e5..01eb6a2a 100644 --- a/src/workflow/gatedNodeControls.ts +++ b/src/workflow/gatedNodeControls.ts @@ -1,6 +1,52 @@ import type { StudioExecutionProfile } from '../studio/types'; import type { useNodesStore, NodeParams } from '../stores/useNodeStore'; +export const EXECUTION_RECIPE_NODE = 'modules.DiffusersRuntime.DiffusersExecutionRecipe'; +const recipeSwitches = { + layerwise_casting: ['layerwise_casting_components', 'layerwise_storage_dtype', 'layerwise_compute_dtype'], + channels_last: ['channels_last_components'], +}; + +/** Project only the approved recipe switches. Control keys can be raw fields or bound stage control IDs. */ +export function visibleExecutionRecipeControls( + displayed: Record, + fields: Record, + connected: (key: string) => boolean, + controlId: (key: string) => string | undefined = (key) => key, +) { + const parent = new Map(); + const hidden = new Set(); + const supplied = (key: string) => + fields[key]?.dataSource || fields[key]?.isConnected || fields[key]?.signal || connected(key); + for (const [gate, options] of Object.entries(recipeSwitches)) { + const toggleId = controlId(gate); + const toggle = fields[gate]; + if ( + !toggleId || + !displayed[toggleId] || + displayed[toggleId].hidden || + !toggle || + !['bool', 'boolean'].includes(String(toggle.type)) + ) + continue; + const off = literalControlIsOff(toggle) && !supplied(gate); + for (const key of options) { + const id = controlId(key); + if (!id || !displayed[id]) continue; + parent.set(id, toggleId); + if (off && !supplied(key)) hidden.add(id); + } + } + if (!parent.size) return displayed; + const visible: Record = {}; + for (const [id, field] of Object.entries(displayed)) { + const toggleId = parent.get(id); + if (toggleId) visible[toggleId] = displayed[toggleId]!; + if (!hidden.has(id)) visible[id] = field; + } + return visible; +} + export function nodeControlGate(identity: string) { if (identity === 'modules.ModularDiffusers.Guider') return 'enabled'; if (identity === 'modules.ModularDiffusers.ModelsLoader' || identity === 'modules.ModularDiffusers.AutoModelLoader') diff --git a/src/workflow/graphLayout.ts b/src/workflow/graphLayout.ts index bec9a916..7f3e9915 100644 --- a/src/workflow/graphLayout.ts +++ b/src/workflow/graphLayout.ts @@ -385,32 +385,39 @@ export function arrangeGraphNodes( return nodes.map((node) => nextById.get(node.id) ?? node); } +export const FRESH_STAGE_CONTROL_LOAD_TIMEOUT_MS = 30_000; + export async function waitForGraphNodeMeasurements( getNodes: () => CustomNodeType[], timeoutMs = 500, + options: { controlLoadTimeoutMs?: number; isCurrent?: () => boolean } = {}, ): Promise { if (typeof window === 'undefined' || typeof window.requestAnimationFrame !== 'function') return false; return new Promise((resolve) => { let startedAt: number | undefined; + let geometryStartedAt: number | undefined; let lastMeasuredSignature: string | null = null; let stableMeasuredFrames = 0; const check = () => { // A large initial React render can hold the main thread past the whole // measurement budget. Start at the first actual frame so ResizeObserver // still gets a chance to publish bounds before an incomplete timeout. - startedAt ??= Date.now(); + if (options.isCurrent && !options.isCurrent()) return resolve(false); + const now = Date.now(); + startedAt ??= now; const candidates = graphLayoutNodes(getNodes()).filter( (node) => !node.hidden && node.data.type !== 'group' && node.data.type !== 'loop', ); - const measured = candidates.every( - (node) => - finiteDimension(node.measured?.width) && - finiteDimension(node.measured?.height) && - !( - typeof document !== 'undefined' && - document.getElementById(node.id)?.querySelector('[data-node-layout-pending]') - ), - ); + // A lazy controls placeholder has measurable bounds before its actual form arrives. + // Let its download finish before starting the ResizeObserver settling budget. + const roots = typeof document === 'undefined' ? [] : candidates.map((node) => document.getElementById(node.id)); + if (roots.some((root) => root?.querySelector('[data-node-load-error]'))) return resolve(false); + const loadingControls = roots.some((root) => root?.querySelector('[data-node-layout-pending]')); + if (loadingControls) geometryStartedAt = undefined; + else geometryStartedAt ??= now; + const measured = + !loadingControls && + candidates.every((node) => finiteDimension(node.measured?.width) && finiteDimension(node.measured?.height)); if (measured) { const signature = candidates .map((node) => `${node.id}:${node.measured!.width}x${node.measured!.height}`) @@ -422,7 +429,12 @@ export async function waitForGraphNodeMeasurements( lastMeasuredSignature = null; stableMeasuredFrames = 0; } - if (stableMeasuredFrames >= 2 || Date.now() - startedAt >= timeoutMs) { + const controlBudget = options.controlLoadTimeoutMs ?? 0; + if ( + stableMeasuredFrames >= 2 || + now - startedAt >= controlBudget + timeoutMs || + (geometryStartedAt !== undefined && now - geometryStartedAt >= timeoutMs) + ) { resolve(stableMeasuredFrames >= 2); return; } diff --git a/src/workflow/modelSetupControlPresentation.ts b/src/workflow/modelSetupControlPresentation.ts index fb11e9c3..30d5d29a 100644 --- a/src/workflow/modelSetupControlPresentation.ts +++ b/src/workflow/modelSetupControlPresentation.ts @@ -5,20 +5,30 @@ import { blockCrossingHandleV2 } from '../studio/blockCrossingConnectionsV2'; import { blockInputPortBindingsV2, blockProjectionNodeIdV2, type BlockFlowGraphV2 } from '../studio/blockRuntimeV2'; import type { BlockControlV2, BlockInstanceV2 } from '../studio/blockSchemaV2'; import { isModelSetupAdapterKey } from '../studio/controlledWorkflowContracts'; -import { adapterConsumesOffloadMode, literalControlIsOff, nodeControlGate } from './gatedNodeControls'; +import { + adapterConsumesOffloadMode, + EXECUTION_RECIPE_NODE, + literalControlIsOff, + nodeControlGate, + visibleExecutionRecipeControls, +} from './gatedNodeControls'; import { nodeDisplayLabel } from './nodePresentation'; const IMAGE_LOADER = 'modules.DiffusersImage.LoadPipeline'; const AUDIO_LOADER = 'modules.DiffusersAudio.LoadPipeline'; -const EXECUTION_RECIPE = 'modules.DiffusersRuntime.DiffusersExecutionRecipe'; const CONDITIONING_KIND = 'conditioning_kind'; const CONDITIONING_MODEL = 'conditioning_model_id'; const CONDITIONING_REVISION = 'conditioning_revision'; const RECIPE_SOCKET = 'execution_recipe'; const RECIPE_TYPE = 'diffusers_execution_recipe'; -const VAE_FALLBACKS: Record> = { - [IMAGE_LOADER]: { enable_vae_slicing: 'vae_slicing', enable_vae_tiling: 'vae_tiling' }, - [AUDIO_LOADER]: { enable_vae_tiling: 'vae_tiling' }, +// The reviewed direct loaders prefer an execution recipe's device and derive +// both offload settings from its mode. Device map and dtype have other rules. +const placementFallbacks = { auto_offload: 'offload_mode', offload_mode: 'offload_mode', device: 'device' }; +const RECIPE_FALLBACKS: Record> = { + [IMAGE_LOADER]: { ...placementFallbacks, enable_vae_slicing: 'vae_slicing', enable_vae_tiling: 'vae_tiling' }, + [AUDIO_LOADER]: { ...placementFallbacks, enable_vae_tiling: 'vae_tiling' }, + 'modules.DiffusersVideo.LoadPipeline': placementFallbacks, + 'modules.DiffusersThreeD.LoadPipeline': placementFallbacks, }; // Only a section copied from one member's own title should follow its @@ -34,13 +44,13 @@ export function modelSetupControlGroupLabel( return member?.data.label === group ? nodeDisplayLabel(member.data) : group; } -function hasConditioningSupplier( +function hasControlSupplier( instance: BlockInstanceV2, owner: CustomNodeType, + fields: string[], internalEdges: readonly Edge[], workflowEdges: readonly Edge[], ) { - const fields = [CONDITIONING_KIND, CONDITIONING_MODEL, CONDITIONING_REVISION]; if (internalEdges.some((edge) => edge.target === owner.id && fields.includes(edge.targetHandle ?? ''))) return true; const nodeId = owner.data.blockProjectionNodeId!; const handles = new Set( @@ -81,7 +91,7 @@ export function modelSetupControlParams( isModelSetupAdapterKey(`${owner.data.module}.${owner.data.action}`) ); }); - const visible = { ...params }; + let visible = { ...params }; for (const control of controls) { const { nodeId, fieldId } = control.binding; const owner = leaf(nodeId); @@ -139,7 +149,13 @@ export function modelSetupControlParams( !conditioning.signal && !declared.isConnected && !declared.signal && - !hasConditioningSupplier(instance, owner, graph.edges, workflowEdges) + !hasControlSupplier( + instance, + owner, + [CONDITIONING_KIND, CONDITIONING_MODEL, CONDITIONING_REVISION], + graph.edges, + workflowEdges, + ) ) { delete visible[control.controlId]; continue; @@ -152,7 +168,7 @@ export function modelSetupControlParams( ) { visible[control.controlId] = { ...visible[control.controlId]!, label: 'Base model revision' }; } - const recipeField = VAE_FALLBACKS[nodeKey]?.[fieldId]; + const recipeField = RECIPE_FALLBACKS[nodeKey]?.[fieldId]; const recipeInput = owner.data.params[RECIPE_SOCKET]; if ( !recipeField || @@ -162,7 +178,12 @@ export function modelSetupControlParams( owner.data.uiState?.disabled || recipeInput?.type !== RECIPE_TYPE || !(recipeInput.display === 'input' || recipeInput.isInput) || - graph.edges.some((edge) => edge.target === owner.id && edge.targetHandle === fieldId) + declared?.dataSource || + declared?.isConnected || + declared?.signal || + recipeInput.dataSource || + hasControlSupplier(instance, owner, [fieldId], graph.edges, workflowEdges) || + hasControlSupplier(instance, owner, [RECIPE_SOCKET], [], workflowEdges) ) continue; const incoming = graph.edges.filter((edge) => edge.target === owner.id && edge.targetHandle === RECIPE_SOCKET); @@ -170,11 +191,24 @@ export function modelSetupControlParams( const recipe = nodes.get(incoming[0].source); if ( !recipe || - `${recipe.data.module}.${recipe.data.action}` !== EXECUTION_RECIPE || + `${recipe.data.module}.${recipe.data.action}` !== EXECUTION_RECIPE_NODE || recipe.data.uiState?.disabled || recipe.data.params[RECIPE_SOCKET]?.type !== RECIPE_TYPE || - recipe.data.params[RECIPE_SOCKET].display !== 'output' || - recipe.data.params[recipeField]?.type !== 'bool' + recipe.data.params[RECIPE_SOCKET].display !== 'output' + ) + continue; + const setting = recipe.data.params[recipeField]; + const placement = recipeField === 'offload_mode' || recipeField === 'device'; + if (setting?.type !== (placement ? 'string' : 'bool')) continue; + const literal = setting.value ?? setting.default; + if ( + placement && + (typeof literal !== 'string' || + !literal.trim() || + setting.dataSource || + setting.signal || + setting.isConnected || + hasControlSupplier(instance, recipe, [recipeField], graph.edges, workflowEdges)) ) continue; const effective = controls.find( @@ -184,5 +218,27 @@ export function modelSetupControlParams( const effectiveParam = effective && params[effective.controlId]; if (effectiveParam && !effectiveParam.hidden) delete visible[control.controlId]; } + for (const member of graph.nodes) { + if (`${member.data.module}.${member.data.action}` !== EXECUTION_RECIPE_NODE || member.data.uiState?.disabled) + continue; + const localControls = new Map( + controls + .filter( + (control) => + control.binding.nodeId === member.data.blockProjectionNodeId && + !control.sealed && + !control.mirrorBindings?.length && + control.group === member.data.label?.trim() && + control.label === member.data.params[control.binding.fieldId]?.label, + ) + .map((control) => [control.binding.fieldId, control.controlId]), + ); + visible = visibleExecutionRecipeControls( + visible, + member.data.params, + (key) => hasControlSupplier(instance, member, [key], graph.edges, workflowEdges), + (key) => localControls.get(key), + ); + } return visible; } diff --git a/tests/e2e/studio-mocked/studio-mocked.spec.ts b/tests/e2e/studio-mocked/studio-mocked.spec.ts index 3f9d2e0e..d0da823b 100644 --- a/tests/e2e/studio-mocked/studio-mocked.spec.ts +++ b/tests/e2e/studio-mocked/studio-mocked.spec.ts @@ -14034,6 +14034,13 @@ test('template categories feature current outputs and searchable model choices l 'data-testid', 'template-browser-category-experimental', ); + const templateSearch = browser.getByTestId('template-browser-search'); + await templateSearch.fill('Exact Text'); + await expect(browser.locator('article').first()).toHaveAttribute( + 'data-testid', + 'template-browser-card-qwen_text_rendering', + ); + await templateSearch.clear(); const model = browser.getByTestId('template-browser-model-filter'); await model.click(); const search = page.getByRole('combobox', { name: 'Search options' }); @@ -37841,7 +37848,9 @@ test('Model Setup and Inspector expose conditioning controls only on eligible im expect(requests).toEqual([]); }); -test('Model Setup VAE settings show the connected recipe once on the canvas and in the inspector', async ({ page }) => { +test('Model Setup VAE and placement settings show the connected recipe once on the canvas and in the inspector', async ({ + page, +}) => { const source = JSON.parse( await fs.readFile(path.join(BACKEND_ROOT, 'data/graphs/studio/ddim-pipeline/unconditional-image.json'), 'utf8'), ); @@ -37868,12 +37877,54 @@ test('Model Setup VAE settings show the connected recipe once on the canvas and await page.getByRole('button', { name: 'Inspect node', exact: true }).click(); const inspector = page.getByRole('dialog', { name: 'Node inspector', exact: true }); const inspectorTiling = inspector.getByRole('switch', { name: /^VAE tiling$/iu }); + for (const surface of [card, inspector]) { + await expect(surface.getByLabel('Execution Device', { exact: true })).toHaveCount(1); + await expect(surface.getByLabel('Runtime Offload', { exact: true })).toHaveCount(1); + await expect(surface.getByLabel('Device', { exact: true })).toHaveCount(0); + await expect(surface.getByLabel('Offload Mode', { exact: true })).toHaveCount(0); + await expect(surface.getByRole('switch', { name: /^Auto offload$/iu })).toHaveCount(0); + } await expect(inspectorTiling).toHaveCount(1); await expect(inspectorTiling).not.toBeChecked(); await inspectorTiling.click(); await expect(inspectorTiling).toBeChecked(); + const castingOptions = ['Layerwise Casting Components', 'Layerwise Compute DType', 'Layerwise Storage DType']; + const channelsOption = 'Channels Last Components'; + for (const surface of [card, inspector]) { + await expect(surface.getByRole('switch', { name: 'Layerwise Casting', exact: true })).not.toBeChecked(); + await expect(surface.getByRole('switch', { name: 'Channels Last', exact: true })).not.toBeChecked(); + for (const label of [...castingOptions, channelsOption]) { + await expect(surface.getByLabel(label, { exact: true })).toHaveCount(0); + } + } + await inspector.getByRole('switch', { name: 'Layerwise Casting', exact: true }).click(); + await inspector.getByLabel('Layerwise Storage DType', { exact: true }).click(); + await page.getByRole('option', { name: 'float8_e5m2', exact: true }).click(); + for (const label of castingOptions) await expect(card.getByLabel(label, { exact: true })).toHaveCount(1); + await expect(card.getByLabel(channelsOption, { exact: true })).toHaveCount(0); + await inspector.getByRole('switch', { name: 'Channels Last', exact: true }).click(); + await expect(card.getByLabel(channelsOption, { exact: true })).toHaveCount(1); await page.keyboard.press('Escape'); await expect(tiling).toBeChecked(); + const casting = card.getByRole('switch', { name: 'Layerwise Casting', exact: true }); + await casting.click(); + await expect(card.getByLabel('Layerwise Storage DType', { exact: true })).toHaveCount(0); + await expect(card.getByLabel(channelsOption, { exact: true })).toHaveCount(1); + await casting.click(); + await expect(card.getByLabel('Layerwise Storage DType', { exact: true })).toHaveText('float8_e5m2'); + const rawId = await page.evaluate(async (graph) => { + const { useFlowStore } = await import('/src/stores/useFlowStore.ts'); + useFlowStore.getState().replaceGraph(graph); + return graph.nodes.find((node: { data: { action: string } }) => node.data.action === 'DiffusersExecutionRecipe').id; + }, source); + await page.getByRole('button', { name: 'Arrange graph', exact: true }).click(); + const raw = page.locator(`.react-flow__node[data-id="${rawId}"]`); + const rawSwitch = raw.getByRole('switch', { name: 'Layerwise Casting', exact: true }); + await expect(rawSwitch).not.toBeChecked(); + await expect(raw.getByLabel('Layerwise Storage DType', { exact: true })).toHaveCount(0); + await rawSwitch.click(); + await expect(raw.getByLabel('Layerwise Storage DType', { exact: true })).toHaveText('float8_e4m3fn'); + await expect(raw.getByLabel(channelsOption, { exact: true })).toHaveCount(0); }); test('optional Model Setup and Image Output preserve native stages, task review, separate, Undo and reusable save', async ({ @@ -38956,7 +39007,11 @@ test('optional Prepare Mask keeps the exact outpaint source, canvas, mask and ge }); } await node.getByRole('button', { name: 'Prepare Mask options', exact: true }).click(); - await page.getByRole('menuitem', { name: 'Separate mask preparation stages', exact: true }).click(); + await page.getByRole('menuitem', { name: 'Convert to independent nodes…', exact: true }).click(); + await page + .getByRole('dialog', { name: 'Convert Prepare Mask to independent nodes?', exact: true }) + .getByRole('button', { name: 'Convert to independent nodes', exact: true }) + .click(); await expect(node).toHaveCount(0); expect(await optionalStageApi(page)).toEqual(edited); await page.locator('.react-flow__pane').click({ position: { x: 40, y: 140 } }); @@ -39840,6 +39895,16 @@ async function assertImagePipelineStageAdapterAuthoring(page: Page, templateId: (entry) => entry.data.label === 'Model Setup', )!; const node = page.getByTestId(`setup-node-${setup.id}`); + if (template.modelType === 'FluxReduxPipeline') { + // These saved recipes use CPU offload. Their LoRA authoring policy only + // permits resident weights, selected on the connected execution recipe. + await expect(node.getByRole('button', { name: 'Add LoRA', exact: true })).toBeDisabled(); + await expect(node).toContainText('Set the effective offload_mode control to none'); + const runtimeOffload = node.getByRole('button', { name: 'Runtime Offload', exact: true }); + await runtimeOffload.click(); + await page.getByRole('option', { name: 'Off', exact: true }).click(); + await expect(runtimeOffload).toHaveText('Off'); + } await expect(node.getByRole('button', { name: 'Add LoRA', exact: true })).toBeEnabled(); const snapshot = () => page.evaluate(async () => { @@ -40644,7 +40709,11 @@ it('MiniMax real Audio Output preserves leaves and supports contained playback, const baselineConsumers = audioConsumers(await audioApiSnapshot(page)); const baselinePaths = audioApiPaths(await audioApiSnapshot(page)); await output.getByRole('button', { name: 'Audio Output options', exact: true }).click(); - await page.getByRole('menuitem', { name: 'Separate audio output stages', exact: true }).click(); + await page.getByRole('menuitem', { name: 'Convert to independent nodes…', exact: true }).click(); + await page + .getByRole('dialog', { name: 'Convert Audio Output to independent nodes?', exact: true }) + .getByRole('button', { name: 'Convert to independent nodes', exact: true }) + .click(); await expect(output).toHaveCount(0); expect(audioConsumers(await audioApiSnapshot(page))).toEqual(baselineConsumers); expect(audioApiPaths(await audioApiSnapshot(page))).toEqual(baselinePaths); @@ -40663,11 +40732,40 @@ it('MiniMax real Audio Output preserves leaves and supports contained playback, expect(mutations).toEqual([]); }); +it('a failed stage interface download keeps the authored audio recipe and reloads its controls', async ({ page }) => { + const controlModule = '**/src/components/StageNodeControls.tsx*'; + await page.route(controlModule, (route) => route.abort('failed')); + const { mutations } = await openAudioStageTemplate(page, 'ace_step_text_to_audio'); + const retry = page.getByRole('button', { name: 'Reload workspace to retry', exact: true }).first(); + await expect(retry).toBeVisible(); + const before = await audioApiSnapshot(page); + expect( + Object.values(before.nodes).some((node) => node.module === 'modules.DiffusersAudio' && node.action === 'Generate'), + ).toBe(true); + await page.unroute(controlModule); + await retry.click(); + await expect(page.getByRole('button', { name: 'Choose model', exact: true }).first()).toBeVisible({ + timeout: 30_000, + }); + await expect(retry).toHaveCount(0); + await expect.poll(() => audioApiSnapshot(page)).toEqual(before); + expect(mutations).toEqual([]); +}); + it('fresh lyric template preserves its full composite branch brief through ordinary Save and reopen', async ({ page, }) => { test.setTimeout(180_000); + // Delay the real stage editor past the old five-second geometry deadline. The 45-second song and nine-shot graph must survive a cold first visit. + let delayedControls = false; + await page.route('**/src/components/StageNodeControls.tsx*', async (route) => { + await page.locator('[data-node-layout-pending]').first().waitFor({ state: 'attached' }); + await new Promise((resolve) => setTimeout(resolve, 5_500)); + delayedControls = true; + await route.continue(); + }); const { mutations } = await openAudioStageTemplate(page, 'ace_step_lyric_music_video'); + expect(delayedControls).toBe(true); const original = await audioApiSnapshot(page); const brief = STUDIO_TEMPLATES.find((item) => item.id === 'ace_step_lyric_music_video')!.workflowBlockSettings! .lyricVideo!; @@ -40865,6 +40963,27 @@ it('aliased audio Model Setup renders human offload choices and preserves the se const root = await audioWorkflowNodeId(page, 'Model Setup'); const setup = page.getByTestId(`setup-node-${root}`); const offload = setup.getByRole('button', { name: 'Offload Mode', exact: true }); + const runtimeOffload = setup.getByRole('button', { name: 'Runtime Offload', exact: true }); + await expect(runtimeOffload).toHaveText('Off'); + await expect(offload).toHaveCount(0); + await setup.getByRole('button', { name: 'Edit stages: Model Setup', exact: true }).click(); + const recipeWire = await page.evaluate(async (ownerId) => { + const { useFlowStore } = await import('/src/stores/useFlowStore.ts'); + const flow = useFlowStore.getState(); + const loader = flow.nodes.find( + (node) => node.data.blockProjectionOwnerId === ownerId && node.data.action === 'LoadPipeline', + ); + const edge = flow.edges.find((edge) => edge.target === loader?.id && edge.targetHandle === 'execution_recipe'); + if (!edge) throw new Error('The saved ACE loader must receive its execution recipe.'); + flow.onEdgesChange([{ type: 'remove', id: edge.id }]); + return { + source: edge.source, + sourceHandle: edge.sourceHandle!, + target: edge.target, + targetHandle: edge.targetHandle!, + }; + }, root); + await page.getByRole('button', { name: 'Return to Model Setup', exact: true }).click(); if (!(await offload.isVisible())) await setup.getByRole('button', { name: 'Advanced', exact: true }).click(); await expect(offload).toBeVisible(); const before = await audioApiSnapshot(page); @@ -40933,6 +41052,14 @@ it('aliased audio Model Setup renders human offload choices and preserves the se await expect(offload).toHaveText('Off'); expect(await stored()).toEqual(beforeStored); expect(await audioApiSnapshot(page)).toEqual(before); + await setup.getByRole('button', { name: 'Edit stages: Model Setup', exact: true }).click(); + await page.evaluate(async (wire) => { + const { useFlowStore } = await import('/src/stores/useFlowStore.ts'); + useFlowStore.getState().onConnect(wire); + }, recipeWire); + await page.getByRole('button', { name: 'Return to Model Setup', exact: true }).click(); + await expect(runtimeOffload).toHaveText('Off'); + await expect(offload).toHaveCount(0); expect(mutations).toEqual([]); }); From 9e873c66a3fc0f02d15a42525d97ef8968679531 Mon Sep 17 00:00:00 2001 From: Sourav Das Date: Fri, 27 Nov 2026 22:41:23 +0530 Subject: [PATCH 423/440] Test both Redux adapter policies on CPU and GPU fixtures --- tests/e2e/studio-mocked/studio-mocked.spec.ts | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/tests/e2e/studio-mocked/studio-mocked.spec.ts b/tests/e2e/studio-mocked/studio-mocked.spec.ts index d0da823b..4efa5e92 100644 --- a/tests/e2e/studio-mocked/studio-mocked.spec.ts +++ b/tests/e2e/studio-mocked/studio-mocked.spec.ts @@ -39896,11 +39896,14 @@ async function assertImagePipelineStageAdapterAuthoring(page: Page, templateId: )!; const node = page.getByTestId(`setup-node-${setup.id}`); if (template.modelType === 'FluxReduxPipeline') { - // These saved recipes use CPU offload. Their LoRA authoring policy only - // permits resident weights, selected on the connected execution recipe. + // Auto chooses its starting mode for the fixture's device. Exercise both + // policy states explicitly on the connected execution recipe. + const runtimeOffload = node.getByRole('button', { name: 'Runtime Offload', exact: true }); + await runtimeOffload.click(); + await page.getByRole('option', { name: 'RAM/CPU model offload', exact: true }).click(); + await expect(runtimeOffload).toHaveText('RAM/CPU model offload'); await expect(node.getByRole('button', { name: 'Add LoRA', exact: true })).toBeDisabled(); await expect(node).toContainText('Set the effective offload_mode control to none'); - const runtimeOffload = node.getByRole('button', { name: 'Runtime Offload', exact: true }); await runtimeOffload.click(); await page.getByRole('option', { name: 'Off', exact: true }).click(); await expect(runtimeOffload).toHaveText('Off'); From ba4a4ebe433f16e3abcdfa0090f7601bbd6136be Mon Sep 17 00:00:00 2001 From: Sourav Das Date: Fri, 27 Nov 2026 23:04:27 +0530 Subject: [PATCH 424/440] Keep keyboard focus outside the preparing canvas --- docs/workflow-authoring-ux.md | 2 +- src/components/Workflow.tsx | 3 ++- tests/e2e/studio-mocked/studio-mocked.spec.ts | 19 +++++++++++++++++++ 3 files changed, 22 insertions(+), 2 deletions(-) diff --git a/docs/workflow-authoring-ux.md b/docs/workflow-authoring-ux.md index 5e02386a..61fc988a 100644 --- a/docs/workflow-authoring-ux.md +++ b/docs/workflow-authoring-ux.md @@ -507,7 +507,7 @@ uses the current registry to check which model identities the Guider accepts. ## Opening and inspecting a workflow -Fresh tasks, templates and examples wait for each stage’s controls to load, then measure the open sections and sockets before arranging the graph. If a stage’s controls cannot load, its workflow remains available. Choose **Reload workspace to retry** in the affected stage to recover its controls. This includes nodes supplied by a Python extension. Long forms start with up to 960 pixels of controls. Right-click the stage and choose **Fit height to controls** to expand a stage further. Saved workflows reopen at their authored sizes and positions. +Fresh tasks, templates and examples wait for each stage’s controls to load, then measure the open sections and sockets before arranging the graph. A status message announces preparation, and the canvas accepts keyboard and pointer input when its stages are visible. If a stage’s controls cannot load, its workflow remains available. Choose **Reload workspace to retry** in the affected stage to recover its controls. This includes nodes supplied by a Python extension. Long forms start with up to 960 pixels of controls. Right-click the stage and choose **Fit height to controls** to expand a stage further. Saved workflows reopen at their authored sizes and positions. **Enabled** opens the settings for a guidance operation. Switching it off preserves your settings for the next time you enable it. A modular model loader shows **Offload Mode** when automatic offload is enabled, supplied by a wire, or required by the selected model’s adapter settings. Canvas and inspector controls edit the same stored values. diff --git a/src/components/Workflow.tsx b/src/components/Workflow.tsx index e8a98998..e4429142 100644 --- a/src/components/Workflow.tsx +++ b/src/components/Workflow.tsx @@ -1216,6 +1216,7 @@ function Workflow() {
) : null} ) : null} {canvasSuspended && ( -
+
{!workflowCanvasHydrated ? 'Restoring workflow' diff --git a/tests/e2e/studio-mocked/studio-mocked.spec.ts b/tests/e2e/studio-mocked/studio-mocked.spec.ts index 4efa5e92..2d1ba47b 100644 --- a/tests/e2e/studio-mocked/studio-mocked.spec.ts +++ b/tests/e2e/studio-mocked/studio-mocked.spec.ts @@ -1538,6 +1538,9 @@ for (const [templateId, title] of [ path.join(BACKEND_ROOT, '.venv', process.platform === 'win32' ? 'Scripts/python.exe' : 'bin/python'); const clip = videoPreviewFixture(python, 320, 180); await page.route('**/media/preview?**', (route) => route.fulfill({ contentType: 'video/webm', body: clip })); + await expect(page.getByRole('button', { name: 'Fit workflow in view', exact: true })).toBeEnabled(); + await expect(source).toBeInViewport(); + await source.click(); await source.fill('videos/review-clip.webm'); await source.blur(); await expect(input.locator('video')).toHaveCount(1); @@ -40761,14 +40764,30 @@ it('fresh lyric template preserves its full composite branch brief through ordin test.setTimeout(180_000); // Delay the real stage editor past the old five-second geometry deadline. The 45-second song and nine-shot graph must survive a cold first visit. let delayedControls = false; + let loadingInteraction: { status: string | null; focusEnteredCanvas: boolean } | undefined; await page.route('**/src/components/StageNodeControls.tsx*', async (route) => { await page.locator('[data-node-layout-pending]').first().waitFor({ state: 'attached' }); + const loadingCanvas = page.locator('.react-flow[inert]'); + const status = page.getByRole('status').filter({ hasText: 'Building template graph' }); + if ((await loadingCanvas.count()) && (await status.count())) { + // Even explicit focus on a mounted node must stay out of the hidden workspace. + await loadingCanvas.locator('.react-flow__node[tabindex="0"]').first().focus(); + const canvasHasFocus = () => loadingCanvas.evaluate((element) => element.contains(document.activeElement)); + const nodeReceivedFocus = await canvasHasFocus(); + await page.keyboard.press('Tab'); + loadingInteraction = { + status: await status.textContent(), + focusEnteredCanvas: nodeReceivedFocus || (await canvasHasFocus()), + }; + } await new Promise((resolve) => setTimeout(resolve, 5_500)); delayedControls = true; await route.continue(); }); const { mutations } = await openAudioStageTemplate(page, 'ace_step_lyric_music_video'); expect(delayedControls).toBe(true); + expect(loadingInteraction).toEqual({ status: 'Building template graph', focusEnteredCanvas: false }); + await expect(page.locator('.react-flow[inert]')).toHaveCount(0); const original = await audioApiSnapshot(page); const brief = STUDIO_TEMPLATES.find((item) => item.id === 'ace_step_lyric_music_video')!.workflowBlockSettings! .lyricVideo!; From 7c65a2e0081e527b6ef0490813c7599b5d0c7933 Mon Sep 17 00:00:00 2001 From: Sourav Das Date: Sat, 28 Nov 2026 00:37:48 +0530 Subject: [PATCH 425/440] Reserve the final audio player height before media loads --- scripts/bundle-budget.mjs | 12 +-- src/fields/UIAudioField.tsx | 1 - src/ui/PreviewFrame.tsx | 4 +- tests/e2e/studio-mocked/studio-mocked.spec.ts | 74 +++++++++++++++++-- 4 files changed, 77 insertions(+), 14 deletions(-) diff --git a/scripts/bundle-budget.mjs b/scripts/bundle-budget.mjs index ba952893..c53373d7 100644 --- a/scripts/bundle-budget.mjs +++ b/scripts/bundle-budget.mjs @@ -495,9 +495,9 @@ const SOURCE_LICENSES = new URL('../public/THIRD_PARTY_LICENSES.txt', import.met // Compared with the shipped bundle, accessible workspace drawers, shared stage controls, // task discovery and hardware reporting add 3,781 gzip bytes to the largest startup chunk. // Four entry chunks and the existing 64 KiB limit on each deferred chunk are preserved. -// Content-sized stages, role-aware wiring and editing add the measured largest-chunk delta. 578843 to 582412 gzip bytes. +// Content-sized stages, role-aware wiring and editing add the measured largest-chunk delta. 578843 to 582429 gzip bytes. const MAX_STARTUP_CHUNK_GZIP_BYTES = - 3569 + + 3586 + 3781 + // The approved native Shap-E preview brings the largest chunk to 575069 gzip bytes. 631 + @@ -823,9 +823,9 @@ const MAX_STARTUP_CHUNK_GZIP_BYTES = // The same build measures 673359 aggregate startup bytes (+45 over the cap). // Keep 19 bytes of headroom; deferred limits and loading boundaries stay fixed. // The same build measures 757,520 total startup bytes, up from 753,545. -// The four startup chunks include shared selectors, stage geometry and editing controls. 757520 to 764447 gzip bytes. +// The four startup chunks include shared selectors, stage geometry and editing controls. 757520 to 764464 gzip bytes. const MAX_STARTUP_GZIP_BYTES = - 6927 + + 6944 + 3975 + // The Shap-E preview and its Gallery descriptor add 634 bytes of startup JavaScript. 634 + @@ -1211,9 +1211,9 @@ const MAX_DEFERRED_CHUNK_GZIP_BYTES = 64 * 1024; // Retain both startup caps, the independent 64 KiB chunk cap and prior headroom. // Template previews, Gallery and setup stay deferred. Their aggregate moves from // 357,530 to 361,671 bytes, including the shared workflow-file picker. -// The template feature, panel layouts and conditional controls are loaded with their existing surfaces. 361671 to 367428 gzip bytes. +// The template feature, panel layouts and conditional controls are loaded with their existing surfaces. 361671 to 367446 gzip bytes. const MAX_DEFERRED_GZIP_BYTES = - 5757 + + 5775 + 4141 + // The native turntable comparison adds 129 bytes and keeps 41 bytes of headroom. 129 + diff --git a/src/fields/UIAudioField.tsx b/src/fields/UIAudioField.tsx index 3f67f3d2..4a5728b0 100644 --- a/src/fields/UIAudioField.tsx +++ b/src/fields/UIAudioField.tsx @@ -168,7 +168,6 @@ export default function UIAudioField(props: FieldProps) { compact={compactPreview} key={`${audio}-${index}`} kind="audio" - className="p-2" testId={`node-preview-audio-${props.nodeId}-${props.fieldKey}-${index}`} > diff --git a/src/ui/PreviewFrame.tsx b/src/ui/PreviewFrame.tsx index 28ea1327..a42841af 100644 --- a/src/ui/PreviewFrame.tsx +++ b/src/ui/PreviewFrame.tsx @@ -32,7 +32,9 @@ export function PreviewMediaFrame({ border === 'dashed' ? 'border border-dashed border-modiff-border' : 'border border-modiff-border', kind === 'visual' && (compact ? 'aspect-video max-h-28 min-h-20 w-full' : 'aspect-video max-h-[360px] min-h-32 w-full'), - kind === 'audio' && (compact ? 'min-h-12 w-full' : 'min-h-16 w-full'), + // Reserve a 54px native player, the frame border and its vertical padding + // while the preview renderer or the selected recording is still loading. + kind === 'audio' && (compact ? 'min-h-14 w-full px-2' : 'min-h-[72px] w-full p-2'), kind === 'text' && (compact ? 'max-h-32 min-h-16 w-full overflow-auto' : 'max-h-72 min-h-24 w-full overflow-auto'), className, diff --git a/tests/e2e/studio-mocked/studio-mocked.spec.ts b/tests/e2e/studio-mocked/studio-mocked.spec.ts index 2d1ba47b..a26d6bab 100644 --- a/tests/e2e/studio-mocked/studio-mocked.spec.ts +++ b/tests/e2e/studio-mocked/studio-mocked.spec.ts @@ -13212,11 +13212,12 @@ test('image pipeline drag-to-add excludes generation actions outside the selecte await expect.poll(() => page.evaluate(() => window.__MODIFF_E2E__!.getState().flow.edges.length)).toBe(1); }); -for (const [kind, selectedFile] of [ - ['video', '/workspace/media/clip #1.mp4'], - ['audio', String.raw`C:\media\clip #1.mp4`], +for (const [kind, selectedFile, compact] of [ + ['video', '/workspace/media/clip #1.mp4', false], + ['audio', String.raw`C:\media\clip #1.mp4`, false], + ['audio', String.raw`C:\media\clip #1.mp4`, true], ] as const) { - test(`file-backed ${kind} loader previews use the media endpoint and preserve selected paths after reload`, async ({ + test(`file-backed ${kind} loader previews use the media endpoint and preserve selected paths after reload${compact ? ' in compact mode' : ''}`, async ({ page, }) => { await ensureFrontend(); @@ -13235,12 +13236,30 @@ for (const [kind, selectedFile] of [ display: kind === 'video' ? 'ui_video' : 'ui_audio', sourceKey: 'filename', value: '/file?file=previous-media.mp4', + fieldOptions: { compactPreview: compact }, }, }); await page.route('**/nodes**', (route) => route.fulfill({ json: { nodes: { ...mockRegistry, [key]: loader } } })); await page.route('**/media/preview?**', (route) => - route.fulfill({ contentType: kind === 'video' ? 'video/mp4' : 'audio/wav', body: '' }), + route.fulfill({ + contentType: kind === 'video' ? 'video/mp4' : 'audio/wav', + body: kind === 'audio' ? audioPreviewFixture() : '', + }), ); + let releasePlayer!: () => void; + if (kind === 'audio') { + const playerReady = new Promise((resolve) => { + releasePlayer = resolve; + }); + await page.route( + '**/src/fields/UIAudioField.tsx*', + async (route) => { + await playerReady; + await route.continue(); + }, + { times: 1 }, + ); + } let graphPosts = 0; await page.route('**/graph', (route) => { if (route.request().method() === 'POST') graphPosts++; @@ -13251,6 +13270,17 @@ for (const [kind, selectedFile] of [ await dismissTaskLauncher(page); const id = await page.evaluate((nodeKey) => window.__MODIFF_E2E__!.addCustomNodeForTest(nodeKey), key); const node = page.locator(`.react-flow__node[data-id="${id}"]`); + const previewHeight = () => + node.locator('[data-key="preview"]').evaluate((element) => (element as HTMLElement).offsetHeight); + let placeholderHeight: number | undefined; + if (kind === 'audio') { + try { + await expect(node.getByText('Loading audio preview…', { exact: true })).toBeVisible(); + placeholderHeight = await previewHeight(); + } finally { + releasePlayer(); + } + } const expected = `${FRONTEND_URL}/media/preview?file=${encodeURIComponent(selectedFile)}&media_kind=${kind}`; const player = kind === 'video' @@ -13258,12 +13288,44 @@ for (const [kind, selectedFile] of [ : page.getByTestId(`node-preview-audio-${id}-preview-0`).locator('audio'); await expect(player).toHaveAttribute('src', expected); await expect(node.locator(`[data-key="file"] ${kind}`)).toHaveAttribute('src', expected); + if (kind === 'audio') { + await expect.poll(() => previewHeight()).toBe(placeholderHeight); + await expect.poll(() => player.evaluate((element: HTMLMediaElement) => element.readyState)).toBeGreaterThan(0); + } + if (compact) { + expect( + await page.evaluate(() => { + const hooks = window.__MODIFF_E2E__!; + return ( + hooks.setFirstNodePositionByAction('Load', { x: 165, y: 125 }) && + hooks.setFirstNodeSizeByAction('Load', { width: 440, height: 400 }) + ); + }), + ).toBe(true); + await expect.poll(() => node.evaluate((element) => (element as HTMLElement).offsetWidth)).toBe(440); + await expect + .poll(() => page.evaluate(() => window.__MODIFF_E2E__!.getState().flow.nodes[0]?.measured?.height)) + .toBe(400); + } const before = await page.evaluate(() => window.__MODIFF_E2E__!.getState().flow.nodes); + if (compact) expect(before[0]).toMatchObject({ width: 440, height: 400, position: { x: 165, y: 125 } }); await page.reload({ waitUntil: 'domcontentloaded' }); await page.waitForFunction(() => Boolean(window.__MODIFF_E2E__)); await expect(player).toHaveAttribute('src', expected); expect(await page.evaluate(() => window.__MODIFF_E2E__!.getState().flow.nodes)).toEqual(before); - await node.locator('[data-key="file"]').getByRole('button', { name: 'Remove media', exact: true }).click(); + // A restored node can extend behind the inspector. Fit the canvas after + // verifying its saved geometry, then click the actual visible control. + await page.getByRole('button', { name: 'Fit workflow in view', exact: true }).click(); + const remove = node.locator('[data-key="file"]').getByRole('button', { name: 'Remove media', exact: true }); + await expect + .poll(() => + remove.evaluate((button) => { + const rect = button.getBoundingClientRect(); + return button.contains(document.elementFromPoint(rect.x + rect.width / 2, rect.y + rect.height / 2)); + }), + ) + .toBe(true); + await remove.click(); await expect(player).toHaveCount(0); await page.reload({ waitUntil: 'domcontentloaded' }); await page.waitForFunction(() => Boolean(window.__MODIFF_E2E__)); From 90349a04f078a8eb673ca2072dc94fd243832bd0 Mon Sep 17 00:00:00 2001 From: Sourav Das Date: Sat, 28 Nov 2026 02:41:54 +0530 Subject: [PATCH 426/440] Observe the delayed Moonflower controls before checking dialog closure --- tests/e2e/studio-mocked/studio-mocked.spec.ts | 56 +++++++++++-------- 1 file changed, 34 insertions(+), 22 deletions(-) diff --git a/tests/e2e/studio-mocked/studio-mocked.spec.ts b/tests/e2e/studio-mocked/studio-mocked.spec.ts index a26d6bab..c88e4fa3 100644 --- a/tests/e2e/studio-mocked/studio-mocked.spec.ts +++ b/tests/e2e/studio-mocked/studio-mocked.spec.ts @@ -40367,7 +40367,7 @@ const it = test.extend, { audioTemplateSchemaReady: boolean async function openAudioStageTemplate( page: Page, templateId: (typeof STUDIO_TEMPLATES)[number]['id'], - viaHook = false, + options: { viaHook?: boolean; waitForStageControlRelease?: () => Promise } = {}, ) { const mutations: string[] = []; const starterRequests: Record[] = []; @@ -40495,7 +40495,7 @@ async function openAudioStageTemplate( }), ); await page.goto(FRONTEND_URL, { waitUntil: 'domcontentloaded' }); - if (viaHook) { + if (options.viaHook) { await page.waitForFunction(() => Boolean(window.__MODIFF_E2E__)); await page.evaluate((id) => window.__MODIFF_E2E__!.applyTemplate(id), templateId); } else { @@ -40510,6 +40510,7 @@ async function openAudioStageTemplate( const terms = page.getByRole('dialog', { name: 'Review model terms', exact: true }); await terms.getByRole('button', { name: 'I have reviewed and agree \u2014 Create graph', exact: true }).click(); } + await options.waitForStageControlRelease?.(); // The nine-scene lyric recipe builds both branches and lays out the full graph before closing. await expect(browser).toHaveCount(0, templateId === 'ace_step_lyric_music_video' ? { timeout: 30_000 } : undefined); } @@ -40827,26 +40828,35 @@ it('fresh lyric template preserves its full composite branch brief through ordin // Delay the real stage editor past the old five-second geometry deadline. The 45-second song and nine-shot graph must survive a cold first visit. let delayedControls = false; let loadingInteraction: { status: string | null; focusEnteredCanvas: boolean } | undefined; - await page.route('**/src/components/StageNodeControls.tsx*', async (route) => { - await page.locator('[data-node-layout-pending]').first().waitFor({ state: 'attached' }); - const loadingCanvas = page.locator('.react-flow[inert]'); - const status = page.getByRole('status').filter({ hasText: 'Building template graph' }); - if ((await loadingCanvas.count()) && (await status.count())) { - // Even explicit focus on a mounted node must stay out of the hidden workspace. - await loadingCanvas.locator('.react-flow__node[tabindex="0"]').first().focus(); - const canvasHasFocus = () => loadingCanvas.evaluate((element) => element.contains(document.activeElement)); - const nodeReceivedFocus = await canvasHasFocus(); - await page.keyboard.press('Tab'); - loadingInteraction = { - status: await status.textContent(), - focusEnteredCanvas: nodeReceivedFocus || (await canvasHasFocus()), - }; - } - await new Promise((resolve) => setTimeout(resolve, 5_500)); - delayedControls = true; - await route.continue(); + await page.route( + '**/src/components/StageNodeControls.tsx*', + async (route) => { + await page.locator('[data-node-layout-pending]').first().waitFor({ state: 'attached' }); + const loadingCanvas = page.locator('.react-flow[inert]'); + const status = page.getByRole('status').filter({ hasText: 'Building template graph' }); + if ((await loadingCanvas.count()) && (await status.count())) { + // Even explicit focus on a mounted node must stay out of the hidden workspace. + await loadingCanvas.locator('.react-flow__node[tabindex="0"]').first().focus(); + const canvasHasFocus = () => loadingCanvas.evaluate((element) => element.contains(document.activeElement)); + const nodeReceivedFocus = await canvasHasFocus(); + await page.keyboard.press('Tab'); + loadingInteraction = { + status: await status.textContent(), + focusEnteredCanvas: nodeReceivedFocus || (await canvasHasFocus()), + }; + } + await new Promise((resolve) => setTimeout(resolve, 5_500)); + await route.continue(); + delayedControls = true; + }, + { times: 1 }, + ); + const { mutations } = await openAudioStageTemplate(page, 'ace_step_lyric_music_video', { + // The first request starts after recipe creation has already begun. Count + // the deliberately held import separately from the normal dialog close. + waitForStageControlRelease: () => + expect.poll(() => delayedControls, { timeout: 45_000, message: 'Release the delayed stage controls' }).toBe(true), }); - const { mutations } = await openAudioStageTemplate(page, 'ace_step_lyric_music_video'); expect(delayedControls).toBe(true); expect(loadingInteraction).toEqual({ status: 'Building template graph', focusEnteredCanvas: false }); await expect(page.locator('.react-flow[inert]')).toHaveCount(0); @@ -41019,7 +41029,9 @@ it('ACE selected max-one audio setup keeps its row editable and Remove Undo relo it('ACE audio variation hook keeps the current selected starter and task instead of legacy Auto authoring', async ({ page, }) => { - const { fixture, mutations, starterRequests } = await openAudioStageTemplate(page, 'ace_step_audio_variation', true); + const { fixture, mutations, starterRequests } = await openAudioStageTemplate(page, 'ace_step_audio_variation', { + viaHook: true, + }); const api = await audioApiSnapshot(page); const selected = fixture.selections.ace_step_audio_variation; if (!selected) throw new Error('The current audio variation selection is missing.'); From 55b3042a2f8a5b696db4711e7c396a99b9f572d2 Mon Sep 17 00:00:00 2001 From: Sourav Das Date: Sat, 28 Nov 2026 08:59:40 +0530 Subject: [PATCH 427/440] Show effective model settings and offer a usable output for unmatched wires --- .github/workflows/ci.yml | 4 +- README.md | 2 +- docs/audio-workflows.md | 7 + docs/video-workflows.md | 6 + docs/workflow-authoring-ux.md | 6 + scripts/hugging-face-node-library.test.mjs | 12 + scripts/node-connection-search.test.mjs | 58 +++ ...workflow-library-canonical-export.test.mjs | 113 +++++- src/components/GraphNodeInputs.tsx | 14 +- src/components/NodeContent.tsx | 13 +- src/components/NodeSearchDialog.tsx | 358 +++++++++++------- src/components/StageNodeControls.tsx | 25 +- src/components/Workflow.tsx | 2 + src/stores/useNodeStore.ts | 1 + src/studio/blockCrossingConnectionsV2.ts | 22 ++ src/studio/graphNodeControls.ts | 29 +- src/studio/types.ts | 2 + src/workflow/catalogNodeSearch.ts | 5 +- src/workflow/modelSetupControlPresentation.ts | 47 ++- src/workflow/nodeConnectionSearch.ts | 49 +++ src/workflow/recipeTilingPresentation.ts | 113 ++++++ src/workflow/useWorkflowConnections.ts | 45 ++- tests/e2e/studio-mocked/studio-mocked.spec.ts | 114 +++++- 23 files changed, 844 insertions(+), 203 deletions(-) create mode 100644 src/workflow/recipeTilingPresentation.ts diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 348df071..cf6839ad 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -32,7 +32,7 @@ jobs: uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4 with: repository: sdevil7th/MoDiff - ref: 9f8011dfa8250a6aeaa20524a157dcdaff3fecce + ref: 1120ed11c3b8dd134044fc3eae152e1d11278f82 path: MoDiff persist-credentials: false - name: Verify the pinned backend supports native setup @@ -88,7 +88,7 @@ jobs: with: repository: sdevil7th/MoDiff # Match the immutable backend revision in the Client quality job. - ref: 9f8011dfa8250a6aeaa20524a157dcdaff3fecce + ref: 1120ed11c3b8dd134044fc3eae152e1d11278f82 path: MoDiff persist-credentials: false - name: Verify the pinned backend supports native setup diff --git a/README.md b/README.md index 6a00f69a..50d717ba 100644 --- a/README.md +++ b/README.md @@ -85,7 +85,7 @@ application source pair is: | MoDiff | `1239d1cecd12a7318eb263ca17c34d4fc0445d14` | | MoDiff-client | `c561a01395044fd71c1918e95fb9e9709d8e7601` | -CI backend contract: `9f8011dfa8250a6aeaa20524a157dcdaff3fecce`. +CI backend contract: `1120ed11c3b8dd134044fc3eae152e1d11278f82`. Both CI jobs use this immutable backend revision. It includes the weight-loading controls for saved recipes and the model readiness and storage fields used by the diff --git a/docs/audio-workflows.md b/docs/audio-workflows.md index b5c205d4..bd5974ef 100644 --- a/docs/audio-workflows.md +++ b/docs/audio-workflows.md @@ -20,6 +20,13 @@ Splitting it into decorative Encode, Denoise and Decode nodes would not make its internal computation editable. MiniMax's semantic generation is an actual stage and must remain distinct from prompt encoding. +In Model Setup, **Device and offload** puts the connected execution recipe's +Runtime Offload and Execution Device immediately below the model picker. These +are the same controls used by the loader. Quantization and manual device maps +remain in their own sections. Disconnecting the recipe restores the loader's +saved placement settings. Opening the stage leaves the resource mode and +workflow recipe intact. + Grouping is an explicit, undoable presentation change using the existing Block contract. Choose **Inspect implementation** to see which operations a stage contains. Use **Edit stages** to wire those operations, then **Done editing** to return. diff --git a/docs/video-workflows.md b/docs/video-workflows.md index 1127c9a9..ee89db67 100644 --- a/docs/video-workflows.md +++ b/docs/video-workflows.md @@ -27,6 +27,12 @@ different roles, such as first and last frames, keep separate loaders. An absent or incompatible loader produces a connection notice instead of a guessed wire. Existing saved graphs are not rewritten. +For a model that requires VAE tiling, Model Setup shows **VAE Tiling +(required by model)** switched on and locked. This also appears in the node +inspector and on the execution recipe when viewing its individual nodes. +A shared recipe's **VAE Tiling (optional models only)** switch still controls +its other models. Disconnecting the required loader restores the saved choice. + Encode Inputs can reuse unchanged prompt data. Denoise consumes encoding from the same model owner, and Video Output decodes that owner's current latents. Changing the owner or relevant recipe requires fresh runtime data. Saved values and wires diff --git a/docs/workflow-authoring-ux.md b/docs/workflow-authoring-ux.md index 61fc988a..9df019be 100644 --- a/docs/workflow-authoring-ux.md +++ b/docs/workflow-authoring-ux.md @@ -14,6 +14,12 @@ or second soundtrack has its own editable connection. Search for a specialist such as Gaussian Blur or Decode Latents when you need its precise controls or an intermediate result. Dragging from a port offers compatible specialists. **Show implementation nodes** opens the broader library. +When an output has no compatible destination, the picker can offer another +output on the same node and name a destination for it. For example, a native +depth map can offer its preview image for an image processor. **Use … output** +switches the starting socket. Choose a destination to add the node and wire, +or press Escape to leave the workflow as it was. A search with no results +can be cleared to recover the matching destinations for the original socket. On an empty canvas, **Include catalog Blocks** adds prebuilt compositions to the unfiltered picker. A matching name or compatible wire also finds them. Saved Blocks stay accessible under their authored names. diff --git a/scripts/hugging-face-node-library.test.mjs b/scripts/hugging-face-node-library.test.mjs index 947b3564..d691fcd8 100644 --- a/scripts/hugging-face-node-library.test.mjs +++ b/scripts/hugging-face-node-library.test.mjs @@ -475,6 +475,18 @@ test('model capability discovery accepts only versioned app-owned built-in repos ); }); +test('required VAE tiling accepts only an explicit boolean in a model capability', () => { + const parse = (fields) => + nodeStoreModule.parseStudioModelCapabilities({ + schemaVersion: 2, + capabilities: [{ modelType: 'MochiPipeline', modes: ['text_to_video'], ...fields }], + }).capabilities[0]; + assert.equal(parse({}).requiresVaeTiling, undefined); + for (const value of [true, false]) assert.equal(parse({ requiresVaeTiling: value }).requiresVaeTiling, value); + for (const value of ['false', 1, null]) + assert.throws(() => parse({ requiresVaeTiling: value }), /Invalid model-capabilities response/u); +}); + test('model capability discovery remains bounded while admitting catalogs beyond the legacy 128-entry limit', () => { const capability = { modelType: 'BuiltinImageOperation', diff --git a/scripts/node-connection-search.test.mjs b/scripts/node-connection-search.test.mjs index abfbd739..da78839d 100644 --- a/scripts/node-connection-search.test.mjs +++ b/scripts/node-connection-search.test.mjs @@ -31,6 +31,64 @@ const definition = (params, action = 'Process') => ({ params, }); +test('an unmatched output recommends a usable material sibling and respects the exact role on each output', () => { + const output = (type, label, extra = {}) => ({ display: 'output', type, label, ...extra }); + const source = definition({ + original: output('prediction_map', 'Native prediction'), + width: output('int', 'Width'), + hidden: output('image', 'Internal preview', { hidden: true }), + off: output('image', 'Inactive preview', { disabled: true }), + metadata: output('any', 'Metadata'), + input: { display: 'input', type: 'image' }, + mask: output('image', 'Mask', { connectionRole: 'mask' }), + color: output('image', 'Color preview', { connectionRole: 'source' }), + }); + const target = definition({ + image: { display: 'input', type: 'image', signalCompatibility: { role: 'source' } }, + width: { display: 'input', type: 'int' }, + }); + const origin = { node: source, handleId: 'original' }; + const probed = []; + const result = search.usableSiblingOutput(origin, (sibling, type) => { + probed.push(sibling.handleId); + return search.matchingNodeHandleForDrop(target, type, 'source', sibling, false)?.[0]; + }); + assert.deepEqual(result, { handleId: 'color', label: 'Color preview', destination: 'image' }); + assert.deepEqual(probed, ['mask', 'color']); + assert.equal( + search.usableSiblingOutput(origin, () => undefined), + undefined, + ); +}); + +test('the shipped Marigold workflow points from its native depth map to its wired preview image', () => { + const graph = JSON.parse( + readFileSync( + new URL('../../MoDiff/data/graphs/studio/marigold-depth-pipeline/depth-estimation.json', import.meta.url), + ), + ); + const source = graph.nodes.find((node) => node.data.action === 'PredictMap'); + const preview = graph.nodes.find((node) => node.data.module === 'modules.Image' && node.data.action === 'Preview'); + const origin = { node: source.data, handleId: 'prediction_map' }; + assert.equal( + search.matchingNodeHandleForDrop(preview.data, source.data.params.prediction_map.type, 'source', origin, false), + undefined, + ); + const suggestion = search.usableSiblingOutput(origin, (sibling, type) => + search.matchingNodeHandleForDrop(preview.data, type, 'source', sibling, false) ? preview.data.label : undefined, + ); + assert.deepEqual(suggestion, { handleId: 'preview_images', label: 'Preview', destination: 'Preview Image' }); + assert.ok( + graph.edges.some( + (edge) => + edge.source === source.id && + edge.sourceHandle === suggestion.handleId && + edge.target === preview.id && + edge.targetHandle === 'image', + ), + ); +}); + test('backend-declared component role selectors accept only an exact unconnected literal selection', async () => { const storage = new Map(); globalThis.localStorage ??= { diff --git a/scripts/workflow-library-canonical-export.test.mjs b/scripts/workflow-library-canonical-export.test.mjs index 1dc67859..e5722122 100644 --- a/scripts/workflow-library-canonical-export.test.mjs +++ b/scripts/workflow-library-canonical-export.test.mjs @@ -69,8 +69,9 @@ test('repeated shot processors retain only unanimous fallback defaults with unch }); import { canonicalExecutableWorkflowGraph, loadCanonicalWorkflowExpander } from './canonical-workflow-execution.mjs'; -let server, hooks, flowStore, groups, blockSchema, blockRuntime, modelSetupControlParams, graphNodeControlParams; -let modelSetupControlGroupLabel; +let server, hooks, flowStore, groups, blockSchema, blockRuntime, graphNodeControlParams; +let modelSetupControlGroupLabel, modelSetupControlPresentation; +const modelSetupControlParams = (...args) => modelSetupControlPresentation(...args).params; let fixture, templates, builder, defaults, exactness, operations; let requests; let shared; @@ -101,7 +102,7 @@ before(async () => { ({ useFlowStore: flowStore } = await server.ssrLoadModule('/src/stores/useFlowStore.ts')); groups = await server.ssrLoadModule('/src/workflow/visualOperationGroups.ts'); blockRuntime = await server.ssrLoadModule('/src/studio/blockRuntimeV2.ts'); - ({ modelSetupControlGroupLabel, modelSetupControlParams } = await server.ssrLoadModule( + ({ modelSetupControlGroupLabel, modelSetupControlPresentation } = await server.ssrLoadModule( '/src/workflow/modelSetupControlPresentation.ts', )); ({ graphNodeControlParams } = await server.ssrLoadModule('/src/studio/graphNodeControls.ts')); @@ -402,6 +403,7 @@ test('Model Setup subsections use the bound loader caption without renaming a sa test('direct image, audio, video and 3D setup shows effective recipe placement and restores saved loader fallbacks', () => { const backend = path.resolve(process.env.MODIFF_BACKEND_DIR || '../MoDiff'); for (const pathToGraph of [ + 'ace-step-audio-pipeline/text-to-audio', 'ddim-pipeline/unconditional-image', 'long-cat-audio-di-t-pipeline/text-to-audio', 'wan-vace-pipeline/control-to-video', @@ -439,6 +441,20 @@ test('direct image, audio, video and 3D setup shows effective recipe placement a ), }; const inspector = graphNodeControlParams(setup); + const placementIds = ['offload_mode', 'device'].map((key) => control(recipe, key)); + for (const surface of [visible(graph), inspector]) { + assert.deepEqual( + Object.keys(surface).slice(0, 2), + placementIds, + `${pathToGraph}: effective placement comes first`, + ); + } + assert.deepEqual([...modelSetupControlPresentation(instance, graph, params).placementIds], placementIds); + assert.equal(modelSetupControlPresentation(instance, unplugged, params).placementIds.size, 0); + assert.equal(modelSetupControlPresentation(instance, unknown, params).placementIds.size, 0); + const custom = structuredClone(instance); + custom.effectiveInterface.controls.find((entry) => entry.controlId === placementIds[0]).group = 'My settings'; + assert.deepEqual([...modelSetupControlPresentation(custom, graph, params).placementIds], [placementIds[1]]); for (const [raw, effective] of [ ['auto_offload', 'offload_mode'], ['offload_mode', 'offload_mode'], @@ -478,6 +494,97 @@ test('direct image, audio, video and 3D setup shows effective recipe placement a } }); +test('Mochi required tiling reflects the connected loader and preserves the original recipe through sharing and reopen', async () => { + const saved = JSON.parse( + readFileSync(path.resolve('../MoDiff/data/graphs/studio/mochi-pipeline/text-to-video.json'), 'utf8'), + ); + const grouped = groups.groupNewOperationGraph(saved); + const setup = grouped.nodes.find((node) => groups.visualOperationGroup(node) === 'setup'); + const instance = setup.data.blockInstanceV2; + const graph = blockRuntime.blockOperationGraphV2(instance); + const recipe = graph.nodes.find((node) => node.data.action === 'DiffusersExecutionRecipe'); + const loader = graph.nodes.find((node) => node.data.action === 'LoadPipeline'); + const wire = graph.edges.find((edge) => edge.source === recipe.id && edge.target === loader.id); + const control = instance.effectiveInterface.controls.find((c) => c.binding.fieldId === 'vae_tiling'); + const params = blockRuntime.blockViewModelV2(instance).controlParams; + const capability = { + requiresVaeTiling: true, + defaultRepo: loader.data.params.model_id.value.value, + revisionCandidates: [loader.data.params.revision.value], + executionProfiles: [ + { + pipeline_class: loader.data.params.pipeline_class.value, + loader_module: loader.data.module, + loader_action: loader.data.action, + default_repo: loader.data.params.model_id.value.value, + }, + ], + }; + const catalog = { workflowModelDescriptors: [], studioModelCapabilities: [capability] }; + const shown = (g, authority = catalog) => + modelSetupControlParams(instance, g, params, [], authority)[control.controlId]; + const unmodified = structuredClone(grouped); + assert.equal(params[control.controlId].value, false, 'ship the recorded request exactly'); + assert.equal(shown(graph).value, true); + assert.equal(shown(graph).disabled, true); + assert.match(shown(graph).label, /required/u); + const renamed = structuredClone(instance); + const renamedControl = renamed.effectiveInterface.controls.find((field) => field.controlId === control.controlId); + renamedControl.label = 'Tile the decoder'; + renamedControl.group = 'My custom settings'; + const renamedParams = { + ...params, + [control.controlId]: { ...params[control.controlId], label: renamedControl.label }, + }; + const effective = modelSetupControlParams(renamed, graph, renamedParams, [], catalog)[control.controlId]; + assert.equal(effective.label, 'Tile the decoder (required by model)'); + assert.equal(effective.value, true); + assert.deepEqual(shown(graph, { ...catalog, studioModelCapabilities: [] }), params[control.controlId]); + assert.deepEqual(shown({ ...graph, edges: graph.edges.filter((e) => e !== wire) }), params[control.controlId]); + const other = structuredClone(loader); + other.id += '-other'; + other.data.params.pipeline_class.value = 'AllegroPipeline'; + const shared = shown({ + ...graph, + nodes: [...graph.nodes, other], + edges: [...graph.edges, { ...wire, id: 'secondary-consumer', target: other.id }], + }); + assert.equal(shared.value, false); + assert.ok(!shared.disabled, 'the shared recipe continues to control the other model'); + assert.match(shared.label, /optional/u); + const switched = structuredClone(graph); + const replacement = switched.nodes.find((node) => node.id === loader.id); + replacement.data.params.revision.value = '0'.repeat(40); + assert.deepEqual( + shown(switched), + params[control.controlId], + 'an unreviewed revision cannot claim the model behavior', + ); + assert.deepEqual(grouped, unmodified); + const reopened = JSON.parse(JSON.stringify(setup)); + assert.equal(graphNodeControlParams(reopened, [], catalog)[control.controlId].value, true); + // A previously pinned recipe leaf is still readable while Model Setup is collapsed. + const { graphParamInputCandidates } = await server.ssrLoadModule('/src/studio/graphNodeControls.ts'); + const { useNodesStore } = await server.ssrLoadModule('/src/stores/useNodeStore.ts'); + const previous = useNodesStore.getState().studioModelCapabilities; + const pinId = `graph:${recipe.id}:vae_tiling`; + try { + useNodesStore.setState({ studioModelCapabilities: [capability] }); + const pin = graphParamInputCandidates(grouped.nodes, [pinId], grouped.edges).find( + (candidate) => candidate.id === pinId, + ); + assert.equal(pin.param.value, true); + assert.equal(pin.param.disabled, true); + } finally { + useNodesStore.setState({ studioModelCapabilities: previous }); + } + const exported = (sourceGraph) => + canonicalGraphIdentity( + flowStore.getState().exportGraph('mochi-tiling', undefined, { sourceGraph, randomizeSeeds: false }), + ); + assert.deepEqual(exported(JSON.parse(JSON.stringify(grouped))), exported(saved)); +}); + test('execution recipe switches govern only their own literal settings in raw nodes, Model Setup and inspector', () => { const backend = path.resolve(process.env.MODIFF_BACKEND_DIR || '../MoDiff'); const original = JSON.parse( diff --git a/src/components/GraphNodeInputs.tsx b/src/components/GraphNodeInputs.tsx index df1eba40..0c798321 100644 --- a/src/components/GraphNodeInputs.tsx +++ b/src/components/GraphNodeInputs.tsx @@ -14,6 +14,7 @@ import { import { formatStudioFieldValue } from '../studio/presetDiff'; import { ModiffDisclosure, StatusLine, StudioButton } from '../ui'; import { cx } from '../utils/classNames'; +import { EXECUTION_RECIPE_NODE } from '../workflow/gatedNodeControls'; import NodeContent from './NodeContent'; import NodeInspectorSections from './NodeInspectorSections'; @@ -49,8 +50,13 @@ export function GraphNodeInputs({ ); const pinnedSet = useMemo(() => new Set(pinnedIds), [pinnedIds]); const selectedNode = selectedNodes.length === 1 ? selectedNodes[0] : null; - const incomingEdges = useFlowStore( - useShallow((state) => (selectedNode ? state.edges.filter((edge) => edge.target === selectedNode.id) : [])), + const controlEdges = useFlowStore( + useShallow((state) => { + if (!selectedNode) return []; + // A recipe depends on each downstream loader and on any wire supplying its model selection. + if (`${selectedNode.data.module}.${selectedNode.data.action}` === EXECUTION_RECIPE_NODE) return state.edges; + return state.edges.filter((edge) => edge.target === selectedNode.id || edge.source === selectedNode.id); + }), ); const groups = useMemo(() => { const byNode = new Map }>(); @@ -62,7 +68,7 @@ export function GraphNodeInputs({ }); if (selectedNode) { - const selectedParams = graphNodeControlParams(selectedNode, incomingEdges, modelCatalog); + const selectedParams = graphNodeControlParams(selectedNode, controlEdges, modelCatalog); byNode.set(selectedNode.id, { node: selectedNode, params: selectedParams }); } @@ -74,7 +80,7 @@ export function GraphNodeInputs({ const group = byNode.get(id); return group ? [group] : []; }); - }, [nodes, pinnedInputs, selectedNode, incomingEdges, modelCatalog]); + }, [nodes, pinnedInputs, selectedNode, controlEdges, modelCatalog]); const updateParam = useCallback( (nodeId: string, param: string, value: unknown, key?: keyof NodeParams) => { diff --git a/src/components/NodeContent.tsx b/src/components/NodeContent.tsx index 696d56d5..5cd425df 100644 --- a/src/components/NodeContent.tsx +++ b/src/components/NodeContent.tsx @@ -23,6 +23,7 @@ import { visibleExecutionRecipeControls, } from '../workflow/gatedNodeControls'; import { classifyManagedControl } from '../studio/managedControlPolicy'; +import { effectiveRecipeTiling, workflowRecipeTilingPolicy } from '../workflow/recipeTilingPresentation'; import { blockRuntimeOptionPresentation, registeredRuntimeOptionPresentation, @@ -239,6 +240,14 @@ const NodeContent = memo(function NodeContent({ Boolean(gate && state.edges.some((e) => e.target === nodeId && e.targetHandle === gate)), ); const fullParams = graphNode?.data.params ?? params; + const tilingCapabilities = useNodesStore((state) => + identity === EXECUTION_RECIPE_NODE ? state.studioModelCapabilities : undefined, + ); + const tilingPolicy = useFlowStore((state) => + tilingCapabilities && graphNode && params.vae_tiling + ? workflowRecipeTilingPolicy(graphNode, state.nodes, state.edges, tilingCapabilities) + : undefined, + ); const modeRequiredByAdapter = useNodesStore( (state) => gate === 'auto_offload' && adapterConsumesOffloadMode(fullParams, state), ); @@ -251,7 +260,9 @@ const NodeContent = memo(function NodeContent({ ); const activeParams = identity === EXECUTION_RECIPE_NODE - ? visibleExecutionRecipeControls(params, fullParams, (key) => suppliedRecipeFields.includes(key)) + ? visibleExecutionRecipeControls(effectiveRecipeTiling(params, 'vae_tiling', tilingPolicy), fullParams, (key) => + suppliedRecipeFields.includes(key), + ) : params; const activeControls = orderedActiveNodeControls( identity, diff --git a/src/components/NodeSearchDialog.tsx b/src/components/NodeSearchDialog.tsx index e659437a..4f02b9b4 100644 --- a/src/components/NodeSearchDialog.tsx +++ b/src/components/NodeSearchDialog.tsx @@ -7,7 +7,7 @@ import { operationsForTask } from '../workflow/operationCatalog'; import { useCallback, useEffect, useState, useMemo, useRef } from 'react'; import { NodeData, useNodesStore } from '../stores/useNodeStore'; -import { ModiffCheckbox, ModiffPopover, ModiffSearchInput } from '../ui'; +import { ModiffButton, ModiffCheckbox, ModiffPopover, ModiffSearchInput } from '../ui'; import { GraphControlButton } from '../ui/GraphControls'; import NodeDiscoveryFilters from './NodeDiscoveryFilters'; import OperationDiscoveryFields from './OperationDiscoveryFields'; @@ -28,6 +28,7 @@ import { operationSearchEntries, operationWirePort, wireOperationScope, + usableSiblingOutput, prepareOperationConnection, stageOperationMatchesWire, rankConnectionSearchEntries, @@ -71,6 +72,7 @@ interface NodeSearchDialogProps { dataType?: string | string[]; handleType?: 'source' | 'target' | null | undefined; origin?: ConnectionSearchOrigin; + onSwitchOutput: (handleId: string) => boolean; } const NodeSearchDialog = ({ @@ -81,6 +83,7 @@ const NodeSearchDialog = ({ dataType, handleType, origin, + onSwitchOutput, }: NodeSearchDialogProps) => { const discovery = useNodeDiscovery(); const { view, support } = discovery; @@ -90,6 +93,7 @@ const NodeSearchDialog = ({ const task = discovery.selection ? discovery.task : (inferred?.task ?? discovery.task); const originField = origin && nodeConnectorParam({ data: origin.node }, origin.handleId); const portLabel = originField?.label || origin?.handleId; + const [initialOutput] = useState(() => origin && { id: origin.handleId, label: portLabel }); const stageCatalog = useNodesStore((s) => s.visualNodeCatalog); const resolve = useNodesStore((s) => s.resolveOperation); const workflow = useStudioStore((s) => s.activeWorkflowTabId); @@ -123,6 +127,8 @@ const NodeSearchDialog = ({ const interfacesLoaded = useRegisteredBlockInterfacesStore((s) => s.loaded); const interfacesError = useRegisteredBlockInterfacesStore((s) => s.error); const fetchInterfaces = useRegisteredBlockInterfacesStore((s) => s.fetch); + const loadingDestinations = + !loaded || !libraryLoaded || !snapshotLoaded || (Boolean(handleType) && !interfacesLoaded); const form = useStudioStore((s) => s.form); const catalogContext = useMemo( () => (library ? { library, snapshot, registry: nodes, form } : null), @@ -132,23 +138,6 @@ const NodeSearchDialog = ({ () => (library ? buildHuggingFaceCatalogSections(library, snapshot) : []), [library, snapshot], ); - const catalogEntries = useMemo( - () => - catalogContext - ? catalogNodeSearchEntries( - catalogSections, - catalogContext, - interfaces, - searchQuery, - view, - dataType, - handleType, - allowUnverified, - ) - : [], - [catalogSections, catalogContext, interfaces, searchQuery, view, dataType, handleType, allowUnverified], - ); - useEffect(() => { if (!libraryLoaded) void fetchLibrary(); }, [libraryLoaded, fetchLibrary]); @@ -175,122 +164,194 @@ const NodeSearchDialog = ({ } }, [anchorPosition]); - const catalogNodes = useMemo( - () => runtimeCatalogNodes(nodes, operations, support, view, { pipeline, task }), - [nodes, operations, support, view, pipeline, task], - ); const browsingCommon = (view === 'common' || view === 'experimental') && !handleType && !searchQuery.trim(); - const filteredNodes = useMemo(() => { - const stages = stageCatalog - ? visualStageMatches(stageCatalog, nodes, searchQuery, { - all: Boolean(handleType) || view === 'advanced' || view === 'all', - targeted: Boolean(handleType), - showModelHints: !handleType, - operations: pipeline ? operationsForTask(operations, pipeline, task) : undefined, - compatible: (node, op) => - !handleType || - (op - ? stageOperationMatchesWire(node, op, dataType, handleType, origin, allowUnverified) - : Boolean(matchingNodeHandleForDrop(node, dataType, handleType, origin, allowUnverified))), - }) - : []; - const represented = representedStageOperations(stages); - const entries = [ - ...stages.flatMap((stage) => { - // A wire can match more than one action in the same generic stage. - // Preserve the search winner first and expose each other genuine choice. - const choices = handleType - ? [ - stage, - ...stage.choices.filter( - (choice) => - (choice.mode !== stage.mode || choice.operation !== stage.operation) && - (!searchQuery.trim() || choice.mode.label.toLowerCase().includes(searchQuery.trim().toLowerCase())), - ), - ] - : [stage]; - return choices.map((choice) => ({ - stage: { ...stage, ...choice, detail: choice === stage ? stage.detail : choice.mode.label }, - key: ['stage', stage.stage.id, choice.mode.node, choice.mode.label, choice.operation?.operationId].join(':'), - label: stage.stage.label, - node: choice.definition, - operation: choice.operation, - })); - }), - ...operationSearchEntries( - operations, - pipeline, - task, - dataType, - handleType, - searchQuery, - nodes, - origin, - allowUnverified, - ) - .filter((operation) => !represented.has(operation)) - .map((operation) => ({ - key: `operation:${operation.operationId}`, - label: operationLabel(operation), - operation, - node: nodes[operation.nodeKey], - })), - ...connectionSearchEntries( - stageCatalog - ? Object.fromEntries(Object.entries(catalogNodes).filter(([, node]) => node.module.startsWith('custom.'))) - : catalogNodes, - dataType, - handleType, - searchQuery, - view, - origin, - allowUnverified, - ).map(([key, node]) => ({ - key, - node, - label: nodeDisplayLabel(node), - })), - ...(browsingCommon && !browseBlocks ? [] : catalogEntries).map((catalog) => ({ - key: `catalog:${catalog.id}`, - label: catalog.label, - catalog, - })), - ...savedEntries - .filter( - ({ block, node }) => - savedBlockMatchesSearch(block, searchQuery) && - (!handleType || matchingNodeHandleForDrop(node, dataType, handleType, origin, allowUnverified)), + const findMatches = useCallback( + ( + origin: ConnectionSearchOrigin | undefined, + dataType: NodeSearchDialogProps['dataType'], + pipeline: string, + task: string, + ) => { + const catalogEntries = catalogContext + ? catalogNodeSearchEntries( + catalogSections, + catalogContext, + interfaces, + searchQuery, + view, + dataType, + handleType, + allowUnverified, + origin, + ) + : []; + const catalogNodes = runtimeCatalogNodes(nodes, operations, support, view, { pipeline, task }); + const stages = stageCatalog + ? visualStageMatches(stageCatalog, nodes, searchQuery, { + all: Boolean(handleType) || view === 'advanced' || view === 'all', + targeted: Boolean(handleType), + showModelHints: !handleType, + operations: pipeline ? operationsForTask(operations, pipeline, task) : undefined, + compatible: (node, op) => + !handleType || + (op + ? stageOperationMatchesWire(node, op, dataType, handleType, origin, allowUnverified) + : Boolean(matchingNodeHandleForDrop(node, dataType, handleType, origin, allowUnverified))), + }) + : []; + const represented = representedStageOperations(stages); + const entries: SearchEntry[] = [ + ...stages.flatMap((stage) => { + // A wire can match more than one action in the same generic stage. + // Preserve the search winner first and expose each other genuine choice. + const choices = handleType + ? [ + stage, + ...stage.choices.filter( + (choice) => + (choice.mode !== stage.mode || choice.operation !== stage.operation) && + (!searchQuery.trim() || choice.mode.label.toLowerCase().includes(searchQuery.trim().toLowerCase())), + ), + ] + : [stage]; + return choices.map((choice) => ({ + stage: { ...stage, ...choice, detail: choice === stage ? stage.detail : choice.mode.label }, + key: ['stage', stage.stage.id, choice.mode.node, choice.mode.label, choice.operation?.operationId].join( + ':', + ), + label: stage.stage.label, + node: choice.definition, + operation: choice.operation, + })); + }), + ...operationSearchEntries( + operations, + pipeline, + task, + dataType, + handleType, + searchQuery, + nodes, + origin, + allowUnverified, ) - .map((entry) => ({ ...entry, label: entry.node.label })), - ]; - const pinned = entries.map((entry: SearchEntry) => ({ - ...entry, - port: handleType - ? entry.operation - ? operationWirePort(entry.node, entry.operation, dataType, handleType, origin, allowUnverified) - : entry.node && matchingNodeHandleForDrop(entry.node, dataType, handleType, origin, allowUnverified)?.[0] - : undefined, - })); - return rankConnectionSearchEntries(pinned, dataType, handleType, origin); + .filter((operation) => !represented.has(operation)) + .map((operation) => ({ + key: `operation:${operation.operationId}`, + label: operationLabel(operation), + operation, + node: nodes[operation.nodeKey], + })), + ...connectionSearchEntries( + stageCatalog + ? Object.fromEntries(Object.entries(catalogNodes).filter(([, node]) => node.module.startsWith('custom.'))) + : catalogNodes, + dataType, + handleType, + searchQuery, + view, + origin, + allowUnverified, + ).map(([key, node]) => ({ + key, + node, + label: nodeDisplayLabel(node), + })), + ...(browsingCommon && !browseBlocks ? [] : catalogEntries).map((catalog) => ({ + key: `catalog:${catalog.id}`, + label: catalog.label, + catalog, + })), + ...savedEntries + .filter( + ({ block, node }) => + savedBlockMatchesSearch(block, searchQuery) && + (!handleType || matchingNodeHandleForDrop(node, dataType, handleType, origin, allowUnverified)), + ) + .map((entry) => ({ ...entry, label: entry.node.label })), + ]; + const pinned = entries.map((entry: SearchEntry) => ({ + ...entry, + port: handleType + ? entry.operation + ? operationWirePort(entry.node, entry.operation, dataType, handleType, origin, allowUnverified) + : entry.node && matchingNodeHandleForDrop(entry.node, dataType, handleType, origin, allowUnverified)?.[0] + : undefined, + })); + return { + entries: rankConnectionSearchEntries(pinned, dataType, handleType, origin), + catalogCount: catalogEntries.length, + }; + }, + [ + stageCatalog, + operations, + support, + view, + handleType, + searchQuery, + savedEntries, + nodes, + catalogSections, + catalogContext, + interfaces, + browsingCommon, + browseBlocks, + allowUnverified, + ], + ); + const { entries: filteredNodes, catalogCount } = useMemo( + () => findMatches(origin, dataType, pipeline, task), + [findMatches, origin, dataType, pipeline, task], + ); + const sibling = useMemo(() => { + if ( + !origin || + handleType !== 'source' || + loadingDestinations || + filteredNodes.length || + searchQuery.trim() || + allowUnverified + ) + return; + return usableSiblingOutput(origin, (candidate, type) => { + const scope = discovery.selection ? undefined : wireOperationScope(candidate, operations); + const match = findMatches( + candidate, + type, + scope?.pipeline ?? discovery.pipeline, + scope?.task ?? discovery.task, + ).entries.find((entry) => !entry.stage?.requiresModel); + return match?.stage?.mode.label || match?.label; + }); }, [ - stageCatalog, - catalogNodes, - operations, - pipeline, - task, - view, - dataType, + origin, handleType, + filteredNodes, + loadingDestinations, searchQuery, - savedEntries, - nodes, - catalogEntries, - browsingCommon, - browseBlocks, - origin, allowUnverified, + discovery.selection, + discovery.pipeline, + discovery.task, + operations, + findMatches, ]); + const chooseOutput = (handleId: string) => { + try { + if (!onSwitchOutput(handleId)) throw new Error('That output is no longer available.'); + setSearchQuery(''); + setSelectedIndex(0); + setBuiltInOpen(true); + setCustomOpen(true); + setResolutionError(null); + inputRef.current?.focus(); + } catch (error) { + setResolutionError(formatRequestError(error, 'Could not switch outputs.')); + } + }; + const { builtInEntries, customEntries } = useMemo(() => { return { builtInEntries: filteredNodes.filter((entry) => !entry.node?.module.startsWith('custom.')), @@ -479,10 +540,25 @@ const NodeSearchDialog = ({ > {handleType && portLabel && (
-

+

{handleType === 'source' ? 'Connect output' : 'Connect input'} · {portLabel}

{dataType &&

{[dataType].flat().join(' / ')}

} + {sibling && ( +
+

+ {sibling.label} on this node can connect to {sibling.destination}. +

+ chooseOutput(sibling.handleId)}> + Use {sibling.label} output + +
+ )} + {handleType === 'source' && initialOutput && origin?.handleId !== initialOutput.id && ( + chooseOutput(initialOutput.id)} className="mt-1"> + Back to {initialOutput.label} + + )}
)}
@@ -508,10 +584,10 @@ const NodeSearchDialog = ({
- {browsingCommon && catalogEntries.length > 0 ? ( + {browsingCommon && catalogCount > 0 ? (
@@ -574,20 +650,26 @@ const NodeSearchDialog = ({
{builtInEntries.length ? ( builtInEntries.map((entry, index) => renderEntry(entry, index)) - ) : customEntries.length ? null : ( + ) : customEntries.length || loadingDestinations ? null : (
- {handleType ? 'No compatible nodes found' : 'No results found'} -
-
{searchQuery.trim() - ? 'Clear the search to see other matches.' + ? 'No nodes match this search' : handleType - ? pipeline - ? 'This model and task have no matching built-in port. Try another pipeline or an enabled custom node with the same socket type.' - : 'Choose a pipeline to check model-specific ports, or use an enabled custom node with the same socket type.' - : 'Try a different search query.'} + ? 'No compatible nodes found' + : 'No results found'}
+ {!sibling && ( +
+ {searchQuery.trim() + ? 'Clear the search to see other matches.' + : handleType + ? pipeline + ? 'This model and task have no matching built-in port. Try another pipeline or an enabled custom node with the same socket type.' + : 'Choose a pipeline to check model-specific ports, or use an enabled custom node with the same socket type.' + : 'Try a different search query.'} +
+ )}
)}
diff --git a/src/components/StageNodeControls.tsx b/src/components/StageNodeControls.tsx index b4a8957c..059013b3 100644 --- a/src/components/StageNodeControls.tsx +++ b/src/components/StageNodeControls.tsx @@ -3,6 +3,7 @@ import { useNodesStore, type NodeParams } from '../stores/useNodeStore'; import { useMemo } from 'react'; import type { CustomNodeType } from '../stores/useFlowStore'; import { blockOperationGraphV2, blockViewModelV2 } from '../studio/blockRuntimeV2'; +import type { BlockControlV2 } from '../studio/blockSchemaV2'; import { operationOwnsModel } from '../workflow/operationContracts'; import { visualOperationGroup } from '../workflow/visualOperationGroupProjection'; import { ModiffDisclosure } from '../ui'; @@ -10,7 +11,7 @@ import { BlockOwnerChoices } from './OperationOwnerControls'; import NodeContent from './NodeContent'; import ModelSetupAdapterControls from './ModelSetupAdapterControls'; import { isModelSetupAdapter } from '../workflow/modelSetupAdapters'; -import { modelSetupControlGroupLabel, modelSetupControlParams } from '../workflow/modelSetupControlPresentation'; +import { modelSetupControlGroupLabel, modelSetupControlPresentation } from '../workflow/modelSetupControlPresentation'; /** The same exposed fields, model planner and preview authority as Block V2, * presented within the ordinary node shell. No second state or executor. */ @@ -30,12 +31,13 @@ export default function StageNodeControls({ const { view, groups } = useMemo(() => { const view = blockViewModelV2(instance); const graph = blockOperationGraphV2(instance); - const controlParams = setup - ? modelSetupControlParams(instance, graph, view.controlParams, edges, { + const presentation = setup + ? modelSetupControlPresentation(instance, graph, view.controlParams, edges, { workflowModelDescriptors, studioModelCapabilities, }) - : view.controlParams; + : undefined; + const controlParams = presentation?.params ?? view.controlParams; const owners = new Set( graph.nodes .filter((n) => operationOwnsModel(n.data.operationAuthoring?.operation)) @@ -55,11 +57,18 @@ export default function StageNodeControls({ ) && !(setup && adapters.has(control.binding.nodeId)), ); - const groups = [...new Set(controls.map((control) => control.group ?? 'Settings'))].map((group) => { - const groupControls = controls.filter((control) => (control.group ?? 'Settings') === group); + const section = (control: BlockControlV2) => + presentation?.placementIds.has(control.controlId) ? null : (control.group ?? 'Settings'); + const groups = [...new Set(controls.map(section))].map((group) => { + const groupControls = controls.filter((control) => section(control) === group); return { - key: group, - label: setup ? modelSetupControlGroupLabel(group, groupControls, graph) : group, + key: group === null ? 'placement' : `section:${group}`, + label: + group === null + ? 'Device and offload' + : setup + ? modelSetupControlGroupLabel(group, groupControls, graph) + : group, params: Object.fromEntries( groupControls.map((control) => [control.controlId, controlParams[control.controlId]!]), ), diff --git a/src/components/Workflow.tsx b/src/components/Workflow.tsx index e4429142..3875c3d2 100644 --- a/src/components/Workflow.tsx +++ b/src/components/Workflow.tsx @@ -521,6 +521,7 @@ function Workflow() { nodeSearchDataType, nodeSearchHandleType, nodeSearchOrigin, + switchSearchOutput, } = useWorkflowConnections({ edgeType, getParam: getConnectionParam, @@ -1439,6 +1440,7 @@ function Workflow() { dataType={nodeSearchDataType} handleType={nodeSearchHandleType} origin={nodeSearchOrigin} + onSwitchOutput={switchSearchOutput} /> ) : null} diff --git a/src/stores/useNodeStore.ts b/src/stores/useNodeStore.ts index 6e2dc821..adb99bdd 100644 --- a/src/stores/useNodeStore.ts +++ b/src/stores/useNodeStore.ts @@ -912,6 +912,7 @@ export function parseStudioModelCapabilities(value: unknown) { const artifactLabel = item.artifactLabel; if ( qualifiedModes?.some((mode) => !modes.includes(mode)) || + (item.requiresVaeTiling !== undefined && typeof item.requiresVaeTiling !== 'boolean') || [item.autoEligible, item.templateEligible, item.galleryEligible, item.liveProof].some( (flag) => flag !== undefined && typeof flag !== 'boolean', ) || diff --git a/src/studio/blockCrossingConnectionsV2.ts b/src/studio/blockCrossingConnectionsV2.ts index 5c65bbd2..6eff96d8 100644 --- a/src/studio/blockCrossingConnectionsV2.ts +++ b/src/studio/blockCrossingConnectionsV2.ts @@ -14,6 +14,28 @@ export function blockCrossingHandleV2(endpoint: BlockCrossingEndpointV2) { return `${PREFIX}${endpoint.direction}:${encodeURIComponent(endpoint.nodeId)}:${encodeURIComponent(endpoint.fieldOrPortId)}`; } +/** A member port can be wired through a named boundary, a mirrored input, or its crossing handle. */ +export function blockMemberHasExternalWireV2( + instance: BlockInstanceV2, + nodeId: string, + fields: readonly string[], + direction: 'input' | 'output', + edges: readonly Edge[], +) { + const handles = new Set(fields.map((fieldOrPortId) => blockCrossingHandleV2({ nodeId, fieldOrPortId, direction }))); + const ports = instance.effectiveInterface.boundary[direction === 'input' ? 'inputs' : 'outputs']; + for (const port of ports) { + const bindings = [port.binding, ...(direction === 'input' ? (port.mirrorBindings ?? []) : [])]; + if (bindings.some((binding) => binding.nodeId === nodeId && fields.includes(binding.fieldOrPortId))) + handles.add(port.portId); + } + return edges.some((edge) => + direction === 'input' + ? edge.target === instance.instanceId && handles.has(edge.targetHandle ?? '') + : edge.source === instance.instanceId && handles.has(edge.sourceHandle ?? ''), + ); +} + export function parseBlockCrossingHandleV2(handle: string | null | undefined): BlockCrossingEndpointV2 | null { if (!handle?.startsWith(PREFIX)) return null; const parts = handle.slice(PREFIX.length).split(':'); diff --git a/src/studio/graphNodeControls.ts b/src/studio/graphNodeControls.ts index d64c6281..cda93690 100644 --- a/src/studio/graphNodeControls.ts +++ b/src/studio/graphNodeControls.ts @@ -12,9 +12,11 @@ import { import type { BlockJsonValue } from './blockSchemaV2'; import { syncManagedNodeControlChange } from './managedControlSync'; import type { AppModeInput } from './types'; -import { modelSetupControlParams } from '../workflow/modelSetupControlPresentation'; +import { modelSetupControlPresentation } from '../workflow/modelSetupControlPresentation'; import { EXECUTION_RECIPE_NODE, visibleExecutionRecipeControls } from '../workflow/gatedNodeControls'; import { visualOperationGroup } from '../workflow/visualOperationGroupProjection'; +import { isFocusedStageNode } from '../workflow/encodingNodePresentation'; +import { effectiveRecipeTiling, workflowRecipeTilingPolicy } from '../workflow/recipeTilingPresentation'; export type GraphInputCandidate = AppModeInput & { node: CustomNodeType; param: NodeParams }; @@ -30,6 +32,7 @@ export function graphNodeControlParams( ReturnType, 'workflowModelDescriptors' | 'studioModelCapabilities' > = useNodesStore.getState(), + workflowNodes: readonly CustomNodeType[] = useFlowStore.getState().nodes, ): Record { const instance = node.data.blockInstanceV2; const source = instance ?? node.data.params; @@ -41,10 +44,16 @@ export function graphNodeControlParams( if (cached) return cached; const base = instance ? blockControlParamsV2(instance) : node.data.params; const params = setup - ? modelSetupControlParams(instance, blockOperationGraphV2(instance), base, workflowEdges, catalog) + ? modelSetupControlPresentation(instance, blockOperationGraphV2(instance), base, workflowEdges, catalog).params : recipe - ? visibleExecutionRecipeControls(base, node.data.params, (key) => - workflowEdges.some((edge) => edge.target === node.id && edge.targetHandle === key), + ? visibleExecutionRecipeControls( + effectiveRecipeTiling( + base, + 'vae_tiling', + workflowRecipeTilingPolicy(node, workflowNodes, workflowEdges, catalog.studioModelCapabilities), + ), + node.data.params, + (key) => workflowEdges.some((edge) => edge.target === node.id && edge.targetHandle === key), ) : base; const controls = Object.fromEntries( @@ -77,9 +86,10 @@ export function graphParamInputCandidates( nodes: CustomNodeType[], pinnedIds: string[] = [], workflowEdges: readonly Edge[] = [], + workflowNodes: readonly CustomNodeType[] = nodes, ): GraphInputCandidate[] { const candidates: GraphInputCandidate[] = nodes.flatMap((node) => - Object.entries(graphNodeControlParams(node, workflowEdges)).map(([key, param]) => ({ + Object.entries(graphNodeControlParams(node, workflowEdges, undefined, workflowNodes)).map(([key, param]) => ({ id: `graph:${node.id}:${key}`, kind: 'graph-param' as const, label: `${node.data.label || node.id} / ${param.label || key}`, @@ -105,7 +115,12 @@ export function graphParamInputCandidates( ...root.data, blockInstanceV2: { ...instance, - presentation: { ...instance.presentation, expanded: true, collapsedContainerNodeIds: [] }, + presentation: { + ...instance.presentation, + expanded: true, + ...(isFocusedStageNode(instance) ? { stageEditorOpen: true } : {}), + collapsedContainerNodeIds: [], + }, }, }, }).nodes; @@ -116,6 +131,7 @@ export function graphParamInputCandidates( expanded.filter(({ id }) => !visibleIds.has(id)), [], workflowEdges, + workflowNodes, ).filter(({ id }) => missingPins.has(id)), ); } @@ -137,6 +153,7 @@ export function revealPinnedGraphInput(workflowId: string | null, node: CustomNo } useFlowStore.getState().setBlockPresentationV2(ownerId, { expanded: true, + ...(isFocusedStageNode(instance) ? { stageEditorOpen: true } : {}), collapsedContainerNodeIds: (instance.presentation.collapsedContainerNodeIds ?? []).filter( (id) => !ancestors.has(id), ), diff --git a/src/studio/types.ts b/src/studio/types.ts index 4b07d6cc..cb46272f 100644 --- a/src/studio/types.ts +++ b/src/studio/types.ts @@ -1274,6 +1274,8 @@ export type StudioModelProfile = { defaultDtype: StudioFormState['dtype']; /** Backend-owned default for new drafts; never an execution-time override. */ defaultWeightFormat?: 'native' | 'fp8r' | 'nvfp4'; + /** The reviewed loader enables VAE tiling regardless of its input recipe. */ + requiresVaeTiling?: boolean; defaultSize: { width: number; height: number; aspectRatio: StudioAspectRatio }; recommendedSteps: number; recommendedGuidance: number; diff --git a/src/workflow/catalogNodeSearch.ts b/src/workflow/catalogNodeSearch.ts index 04a896af..a31a9fd1 100644 --- a/src/workflow/catalogNodeSearch.ts +++ b/src/workflow/catalogNodeSearch.ts @@ -16,7 +16,7 @@ import { createModularDiffusersCatalogFragmentV2, modularDiffusersCatalogEntryHasDescendants, } from '../studio/modularDiffusersBlockInsertion'; -import { matchingNodeHandleForDrop, type HandleDirection } from './nodeConnectionMatching'; +import { matchingNodeHandleForDrop, type ConnectionSearchOrigin, type HandleDirection } from './nodeConnectionMatching'; type CatalogContext = { library: HuggingFaceNodeLibrary; @@ -34,6 +34,7 @@ export function catalogNodeSearchEntries( dataType?: string | string[], handleType?: HandleDirection, allowUnverified = false, + origin?: ConnectionSearchOrigin, ) { return filterHuggingFaceCatalogSections(sections, search, view) .flatMap(({ entries }) => entries) @@ -61,7 +62,7 @@ export function catalogNodeSearchEntries( return false; } } - return Boolean(node && matchingNodeHandleForDrop(node, dataType, handleType, undefined, allowUnverified)); + return Boolean(node && matchingNodeHandleForDrop(node, dataType, handleType, origin, allowUnverified)); }); } diff --git a/src/workflow/modelSetupControlPresentation.ts b/src/workflow/modelSetupControlPresentation.ts index 30d5d29a..1721fe5f 100644 --- a/src/workflow/modelSetupControlPresentation.ts +++ b/src/workflow/modelSetupControlPresentation.ts @@ -1,7 +1,7 @@ import type { Edge } from '@xyflow/react'; import type { CustomNodeType } from '../stores/useFlowStore'; import { useNodesStore, type NodeParams } from '../stores/useNodeStore'; -import { blockCrossingHandleV2 } from '../studio/blockCrossingConnectionsV2'; +import { blockCrossingHandleV2, blockMemberHasExternalWireV2 } from '../studio/blockCrossingConnectionsV2'; import { blockInputPortBindingsV2, blockProjectionNodeIdV2, type BlockFlowGraphV2 } from '../studio/blockRuntimeV2'; import type { BlockControlV2, BlockInstanceV2 } from '../studio/blockSchemaV2'; import { isModelSetupAdapterKey } from '../studio/controlledWorkflowContracts'; @@ -13,6 +13,7 @@ import { visibleExecutionRecipeControls, } from './gatedNodeControls'; import { nodeDisplayLabel } from './nodePresentation'; +import { effectiveRecipeTiling, stageRecipeTilingPolicy } from './recipeTilingPresentation'; const IMAGE_LOADER = 'modules.DiffusersImage.LoadPipeline'; const AUDIO_LOADER = 'modules.DiffusersAudio.LoadPipeline'; @@ -52,24 +53,12 @@ function hasControlSupplier( workflowEdges: readonly Edge[], ) { if (internalEdges.some((edge) => edge.target === owner.id && fields.includes(edge.targetHandle ?? ''))) return true; - const nodeId = owner.data.blockProjectionNodeId!; - const handles = new Set( - fields.map((fieldOrPortId) => blockCrossingHandleV2({ nodeId, fieldOrPortId, direction: 'input' })), - ); - for (const port of instance.effectiveInterface.boundary.inputs) { - if ( - blockInputPortBindingsV2(port).some( - (binding) => binding.nodeId === nodeId && fields.includes(binding.fieldOrPortId), - ) - ) - handles.add(port.portId); - } - return workflowEdges.some((edge) => edge.target === instance.instanceId && handles.has(edge.targetHandle ?? '')); + return blockMemberHasExternalWireV2(instance, owner.data.blockProjectionNodeId!, fields, 'input', workflowEdges); } /** Only compact Model Setup's displayed controls change. The loader's * fallback still belongs to its saved leaf and becomes active on disconnect. */ -export function modelSetupControlParams( +export function modelSetupControlPresentation( instance: BlockInstanceV2, graph: BlockFlowGraphV2, params: Record, @@ -78,7 +67,7 @@ export function modelSetupControlParams( ReturnType, 'workflowModelDescriptors' | 'studioModelCapabilities' > = useNodesStore.getState(), -): Record { +) { const controls = instance.effectiveInterface.controls; const nodes = new Map(graph.nodes.map((node) => [node.id, node])); const leaf = (nodeId: string) => nodes.get(blockProjectionNodeIdV2(instance.instanceId, nodeId)); @@ -92,6 +81,7 @@ export function modelSetupControlParams( ); }); let visible = { ...params }; + const activePlacementIds = new Set(); for (const control of controls) { const { nodeId, fieldId } = control.binding; const owner = leaf(nodeId); @@ -216,8 +206,12 @@ export function modelSetupControlParams( candidate.binding.nodeId === recipe.data.blockProjectionNodeId && candidate.binding.fieldId === recipeField, ); const effectiveParam = effective && params[effective.controlId]; - if (effectiveParam && !effectiveParam.hidden) delete visible[control.controlId]; + if (effective && effectiveParam && !effectiveParam.hidden) { + delete visible[control.controlId]; + if (placement) activePlacementIds.add(effective.controlId); + } } + const placementByRecipe: string[][] = []; for (const member of graph.nodes) { if (`${member.data.module}.${member.data.action}` !== EXECUTION_RECIPE_NODE || member.data.uiState?.disabled) continue; @@ -233,12 +227,29 @@ export function modelSetupControlParams( ) .map((control) => [control.binding.fieldId, control.controlId]), ); + const placement = ['offload_mode', 'device'] + .map((key) => localControls.get(key)) + .filter((id): id is string => id !== undefined && activePlacementIds.has(id)); + if (placement.length) placementByRecipe.push(placement); visible = visibleExecutionRecipeControls( visible, member.data.params, (key) => hasControlSupplier(instance, member, [key], graph.edges, workflowEdges), (key) => localControls.get(key), ); + const tiling = controls.filter( + (control) => + control.binding.nodeId === member.data.blockProjectionNodeId && + control.binding.fieldId === 'vae_tiling' && + !control.mirrorBindings?.length, + ); + if (tiling.length) { + const policy = stageRecipeTilingPolicy(member, graph, instance, workflowEdges, catalog.studioModelCapabilities); + for (const control of tiling) visible = effectiveRecipeTiling(visible, control.controlId, policy); + } } - return visible; + // A single placement section must never combine different recipes' controls. + const placementIds = new Set(placementByRecipe.length === 1 ? placementByRecipe[0] : []); + const primary = Object.fromEntries([...placementIds].map((id) => [id, visible[id]!])); + return { params: { ...primary, ...visible }, placementIds }; } diff --git a/src/workflow/nodeConnectionSearch.ts b/src/workflow/nodeConnectionSearch.ts index cb12b72c..b96ea5af 100644 --- a/src/workflow/nodeConnectionSearch.ts +++ b/src/workflow/nodeConnectionSearch.ts @@ -5,6 +5,9 @@ import { matchesSearchKeywords } from '../utils/searchKeywords'; import { runtimeNodeIdentityV2 } from '../studio/nodeLibraryAuditV2'; import { connectionTypesAreCompatible } from '../theme/connectionTypeCompatibility'; import { connectionTypes } from '../theme/connectionTypeCompatibility'; +import { nodeConnectorParams } from '../studio/nodeConnectorResolution'; +import { encodingVisibleConnectors } from './encodingNodePresentation'; +import { visualOperationStageKind } from './visualOperationGroupProjection'; import type { NodeData, NodeParams } from '../stores/useNodeStore'; import { nodeCatalogEntries, @@ -23,6 +26,52 @@ import { createStoredUserBlockNode } from '../studio/storedUserBlockInsertion'; export { matchingNodeHandleForDrop, nodeConnectionSemanticsAreCompatible } from './nodeConnectionMatching'; +/** Only offer another output when the ordinary strict picker can name a destination. + * Prefer media or text over bookkeeping outputs such as width or elapsed time. */ +export function usableSiblingOutput( + origin: ConnectionSearchOrigin, + firstDestination: (sibling: ConnectionSearchOrigin, type: NodeParams['type']) => string | undefined, +) { + const ports = nodeConnectorParams({ data: origin.node }); + const instance = origin.node.blockInstanceV2; + const visible = instance && visualOperationStageKind(instance) ? encodingVisibleConnectors(ports, instance) : ports; + const candidates = Object.entries(visible) + .flatMap(([handleId, field]) => { + const types = connectionTypes(field.type); + if ( + handleId === origin.handleId || + field.display !== 'output' || + field.hidden || + field.disabled || + !types.length || + types.includes('any') + ) + return []; + const material = types.some((type) => ['image', 'audio', 'video', 'video_asset', 'string'].includes(type)); + return [{ handleId, field, material, types }]; + }) + .sort((a, b) => Number(b.material) - Number(a.material)); + // Ordinary outputs with identical unqualified types share one matching contract. + // Model-bound Block ports can belong to different owners even when the types agree. + const triedPlainTypes = new Set(); + for (const { handleId, field, types } of candidates) { + if ( + !origin.node.blockInstanceV2 && + !field.signal && + !field.onSignal && + !field.signalCompatibility && + !field.connectionRole && + !field.connectionRoleSelector + ) { + const key = JSON.stringify(types); + if (triedPlainTypes.has(key)) continue; + triedPlainTypes.add(key); + } + const destination = firstDestination({ node: origin.node, handleId }, field.type); + if (destination) return { handleId, label: field.label || handleId.replace(/_/gu, ' '), destination }; + } +} + export function savedBlockSearchEntries(blocks: StoredUserBlockDefinition[]) { return uniqueStoredUserBlocks(blocks).map((block) => ({ key: `saved-block:${storedUserBlockId(block)}`, diff --git a/src/workflow/recipeTilingPresentation.ts b/src/workflow/recipeTilingPresentation.ts new file mode 100644 index 00000000..10d80b4b --- /dev/null +++ b/src/workflow/recipeTilingPresentation.ts @@ -0,0 +1,113 @@ +import type { Edge } from '@xyflow/react'; +import type { CustomNodeType } from '../stores/useFlowStore'; +import type { NodeParams } from '../stores/useNodeStore'; +import type { StudioModelProfile } from '../studio/types'; +import type { BlockInstanceV2 } from '../studio/blockSchemaV2'; +import { blockMemberHasExternalWireV2 } from '../studio/blockCrossingConnectionsV2'; +import { blockOperationGraphV2, type BlockFlowGraphV2 } from '../studio/blockRuntimeV2'; + +const recipePort = 'execution_recipe'; +const selectionFields = ['model_id', 'pipeline_class', 'revision']; + +/** A saved recipe is still the author's fallback. Derive the displayed state + * from its consumers, including independent branches which still use that value. */ +function recipeTilingPolicy( + recipeId: string, + nodes: readonly CustomNodeType[], + edges: readonly Edge[], + capabilities: readonly StudioModelProfile[], + externalConsumer = false, + externalSelection: (loader: CustomNodeType, fields: string[]) => boolean = () => false, +) { + const routes = edges.filter((edge) => edge.source === recipeId && edge.sourceHandle === recipePort); + let mandatory = 0; + for (const route of routes) { + const loader = nodes.find((node) => node.id === route.target); + if (!loader || loader.data.uiState?.disabled || route.targetHandle !== recipePort) continue; + const fields = loader.data.params; + if ( + fields[recipePort]?.type !== 'diffusers_execution_recipe' || + fields[recipePort].dataSource || + selectionFields.some((key) => fields[key]?.dataSource || fields[key]?.signal || fields[key]?.isConnected) || + edges.some((edge) => edge.target === loader.id && selectionFields.includes(edge.targetHandle ?? '')) || + externalSelection(loader, [...selectionFields, recipePort]) + ) + continue; + const model = fields.model_id?.value ?? fields.model_id?.default; + const repo = + typeof model === 'object' && model !== null && 'source' in model && model.source === 'hub' && 'value' in model + ? model.value + : model; + const pipeline = fields.pipeline_class?.value ?? fields.pipeline_class?.default; + const revision = fields.revision?.value ?? fields.revision?.default; + if ( + capabilities.some( + (cap) => + cap.requiresVaeTiling && + cap.defaultRepo === repo && + (revision === '' || + revision == null || + (typeof revision === 'string' && cap.revisionCandidates?.includes(revision))) && + cap.executionProfiles?.some( + (profile) => + profile.loader_module === loader.data.module && + profile.loader_action === loader.data.action && + profile.pipeline_class === pipeline && + profile.default_repo === repo, + ), + ) + ) + mandatory++; + } + if (!mandatory) return undefined; + return mandatory === routes.length && !externalConsumer ? 'required' : 'shared'; +} + +export function stageRecipeTilingPolicy( + recipe: CustomNodeType, + graph: BlockFlowGraphV2, + instance: BlockInstanceV2, + workflowEdges: readonly Edge[], + capabilities: readonly StudioModelProfile[], +) { + return recipeTilingPolicy( + recipe.id, + graph.nodes, + graph.edges, + capabilities, + blockMemberHasExternalWireV2(instance, recipe.data.blockProjectionNodeId!, [recipePort], 'output', workflowEdges), + (loader, names) => + blockMemberHasExternalWireV2(instance, loader.data.blockProjectionNodeId!, names, 'input', workflowEdges), + ); +} + +export function workflowRecipeTilingPolicy( + recipe: CustomNodeType, + nodes: readonly CustomNodeType[], + edges: readonly Edge[], + capabilities: readonly StudioModelProfile[], +) { + if (recipe.data.blockProjectionOwnerId) { + const instance = nodes.find((n) => n.id === recipe.data.blockProjectionOwnerId)?.data.blockInstanceV2; + if (!instance) return undefined; + return stageRecipeTilingPolicy(recipe, blockOperationGraphV2(instance), instance, edges, capabilities); + } + return recipeTilingPolicy(recipe.id, nodes, edges, capabilities); +} + +export function effectiveRecipeTiling( + params: Record, + id: string | undefined, + policy: ReturnType, +) { + if (!policy || !id || !params[id]) return params; + const field = params[id]; + if (field.type !== 'bool' || field.hidden) return params; + const suffix = policy === 'required' ? ' (required by model)' : ' (optional models only)'; + const name = field.label || 'VAE Tiling'; + const label = name.endsWith(suffix) ? name : name + suffix; + return { + ...params, + [id]: policy === 'required' ? { ...field, value: true, disabled: true, label } : { ...field, label }, + }; +} diff --git a/src/workflow/useWorkflowConnections.ts b/src/workflow/useWorkflowConnections.ts index 1ddae329..f319f17e 100644 --- a/src/workflow/useWorkflowConnections.ts +++ b/src/workflow/useWorkflowConnections.ts @@ -135,7 +135,7 @@ export function useWorkflowConnections({ const [isConnectionValid, setIsConnectionValid] = useState(null); const [connectionDataType, setConnectionDataType] = useState(null); const connectionTypeRef = useRef(null); - const dropHandleRef = useRef(null); + const [dropHandle, setDropHandle] = useState(null); const searchContextRef = useRef | null>(null); const handleDoubleClick = useCallback((event: ReactMouseEvent) => { @@ -145,7 +145,7 @@ export function useWorkflowConnections({ } event.preventDefault(); - dropHandleRef.current = null; + setDropHandle(null); searchContextRef.current = captureWorkflowOperationContext(); setAnchorPosition({ top: event.clientY, @@ -157,7 +157,6 @@ export function useWorkflowConnections({ async (createNode: NodeSearchFactory, signal: AbortSignal, allowUnverified: boolean, requiredHandleId?: string) => { if (!anchorPosition || !searchContextRef.current) return; const context = searchContextRef.current; - const dropHandle = dropHandleRef.current; let committed = false; try { assertWorkflowOperationContext(context, { includeForm: false }); @@ -215,10 +214,23 @@ export function useWorkflowConnections({ prepareWorkflowForManualInsertion(); committed = true; } finally { - if (committed && searchContextRef.current === context) dropHandleRef.current = null; + if (committed && searchContextRef.current === context) setDropHandle(null); } }, - [anchorPosition, screenToFlowPosition, edgeType, onEncodingConnect], + [anchorPosition, screenToFlowPosition, edgeType, onEncodingConnect, dropHandle], + ); + + const switchSearchOutput = useCallback( + (handleId: string) => { + if (!dropHandle || dropHandle.handleType !== 'source' || !searchContextRef.current) return false; + assertWorkflowOperationContext(searchContextRef.current, { includeForm: false }); + const current = useFlowStore.getState().nodes.find((node) => node.id === dropHandle.nodeId); + const output = nodeConnectorParam(current, handleId); + if (!output || output.display !== 'output' || output.hidden || output.disabled) return false; + setDropHandle(captureWorkflowDropHandle(current, handleId, 'source')); + return true; + }, + [dropHandle], ); const connectionError = useCallback( @@ -298,7 +310,7 @@ export function useWorkflowConnections({ const sourceType = getParam(params.nodeId, params.handleId, 'type') || 'default'; connectionTypeRef.current = sourceType; setConnectionDataType(sourceType); - dropHandleRef.current = null; + setDropHandle(null); document.addEventListener('mousemove', handleMouseMove); }, [getParam, handleMouseMove], @@ -314,11 +326,13 @@ export function useWorkflowConnections({ const handleId = conn.fromHandle?.id; if (handleId) { const fromNode = conn.fromNode as unknown as CustomNodeType | undefined; - dropHandleRef.current = captureWorkflowDropHandle( - fromNode, - handleId, - conn.fromHandle?.type === 'source' ? 'source' : 'target', - fromNode ? getParam(fromNode.id, handleId, 'type') : null, + setDropHandle( + captureWorkflowDropHandle( + fromNode, + handleId, + conn.fromHandle?.type === 'source' ? 'source' : 'target', + fromNode ? getParam(fromNode.id, handleId, 'type') : null, + ), ); } @@ -458,7 +472,7 @@ export function useWorkflowConnections({ const closeNodeSearchDialog = useCallback(() => { setAnchorPosition(null); - dropHandleRef.current = null; + setDropHandle(null); searchContextRef.current = null; }, []); @@ -474,8 +488,9 @@ export function useWorkflowConnections({ handleNodeSearchSelect, isConnecting, isConnectionValid, - nodeSearchDataType: dropHandleRef.current?.dataType ?? undefined, - nodeSearchHandleType: dropHandleRef.current?.handleType, - nodeSearchOrigin: dropHandleRef.current ?? undefined, + nodeSearchDataType: dropHandle?.dataType ?? undefined, + nodeSearchHandleType: dropHandle?.handleType, + nodeSearchOrigin: dropHandle ?? undefined, + switchSearchOutput, }; } diff --git a/tests/e2e/studio-mocked/studio-mocked.spec.ts b/tests/e2e/studio-mocked/studio-mocked.spec.ts index c88e4fa3..758103f7 100644 --- a/tests/e2e/studio-mocked/studio-mocked.spec.ts +++ b/tests/e2e/studio-mocked/studio-mocked.spec.ts @@ -13126,7 +13126,8 @@ for (const direction of ['source', 'target'] as const) { await expect(suggestions.getByRole('option', { name: /^Workbench image\b/u })).toHaveCount(0); const popupSearch = page.getByLabel('Search nodes', { exact: true }).last(); await popupSearch.fill('Workbench image'); - await expect(page.getByText('No compatible nodes found', { exact: true })).toBeVisible(); + await expect(page.getByText('No nodes match this search', { exact: true })).toBeVisible(); + await expect(page.getByRole('button', { name: /^Use .+ output$/u })).toHaveCount(0); await expect(suggestions.getByRole('option')).toHaveCount(0); await popupSearch.fill(direction === 'source' ? 'retired_consumer' : 'producer Workbench'); await expect(matchingOption).toBeVisible(); @@ -35272,7 +35273,7 @@ for (const [mediaType, reverse] of [ }); } -test('known-compatible drag search inserts the image socket instead of the earlier wildcard socket', async ({ +test('terminal output offers its usable image sibling and known-compatible drag search inserts the exact socket', async ({ page, }) => { await page.setViewportSize({ width: 1600, height: 1000 }); @@ -35281,6 +35282,9 @@ test('known-compatible drag search inserts the image socket instead of the earli await installSearchExtension(page, ['Source', 'Mixed']); const source = { ...nodeDef('custom.Search', 'Source', 'custom', { + prediction_map: { label: 'Native prediction map', type: 'prediction_map', display: 'output' }, + receipt: { label: 'Receipt', type: 'any', display: 'output' }, + hidden_image: { label: 'Internal image', type: 'image', display: 'output', hidden: true }, image: { label: 'Image', type: 'image', display: 'output' }, }), label: 'Image search source', @@ -35307,7 +35311,7 @@ test('known-compatible drag search inserts the image socket instead of the earli await page.goto(FRONTEND_URL, { waitUntil: 'domcontentloaded' }); await page.waitForFunction(() => Boolean(window.__MODIFF_E2E__)); await dismissTaskLauncher(page); - await page.getByTestId('left-tab-nodes').click(); + await openNodesLibrary(page); await page.getByLabel('Search nodes', { exact: true }).fill('Image search source'); await page .getByTestId('node-group-custom-nodes') @@ -35315,9 +35319,25 @@ test('known-compatible drag search inserts the image socket instead of the earli .click(); const original = page.locator('.react-flow__node-custom').first(); const id = (await original.getAttribute('data-id'))!; - await dragWireToCanvas(page, original.getByTestId(`node-handle-${id}-image`)); + const nativeMap = original.getByTestId(`node-handle-${id}-prediction_map`); + await dragWireToCanvas(page, nativeMap); const list = page.getByRole('listbox', { name: 'Matching nodes' }); - await expect(list).toBeVisible(); + await expect(list.getByRole('option')).toHaveCount(0); + const alternate = page.getByRole('button', { name: 'Use Image output', exact: true }); + await expect(alternate).toBeVisible(); + await page.screenshot({ path: test.info().outputPath('terminal-output-alternative.png'), animations: 'disabled' }); + await alternate.focus(); + await page.keyboard.press('Enter'); + await expect(page.getByText('Connect output · Image', { exact: true })).toBeVisible(); + await expect(page.getByLabel('Search nodes', { exact: true }).last()).toBeFocused(); + await page.getByRole('button', { name: 'Back to Native prediction map' }).click(); + await expect(list.getByRole('option')).toHaveCount(0); + await expect(alternate).toBeVisible(); + await page.keyboard.press('Escape'); + expect((await page.evaluate(() => window.__MODIFF_E2E__!.exportWorkflowGraph())).edges).toHaveLength(0); + await dragWireToCanvas(page, nativeMap); + await expect(page.getByText('Connect output · Native prediction map', { exact: true })).toBeVisible(); + await alternate.click(); await page.getByLabel('Search nodes', { exact: true }).last().fill('Mixed search target'); await list.getByRole('option').filter({ hasText: 'Mixed search target' }).click(); const read = () => page.evaluate(() => window.__MODIFF_E2E__!.exportWorkflowGraph()); @@ -37992,6 +38012,67 @@ test('Model Setup VAE and placement settings show the connected recipe once on t await expect(raw.getByLabel(channelsOption, { exact: true })).toHaveCount(0); }); +test('Mochi mandatory tiling stays on across the saved example and restores the editable fallback on disconnect', async ({ + page, +}) => { + const original = JSON.parse( + await fs.readFile(path.join(BACKEND_ROOT, 'data/graphs/studio/mochi-pipeline/text-to-video.json'), 'utf8'), + ); + await page.setViewportSize({ width: 1920, height: 1200 }); + await ensureFrontend(); + await installMockRoutes(page); + // Generate the real backend declarations while the browser loads the app. + const fixture = imageTemplateSchemas(); + await page.route('**/model_capabilities**', async (route) => route.fulfill({ json: (await fixture).publicPayload })); + await page.goto(FRONTEND_URL, { waitUntil: 'domcontentloaded' }); + await page.waitForFunction(() => Boolean(window.__MODIFF_E2E__?.getState().studio.workflowCanvasHydrated)); + const id = await page.evaluate(async (source) => { + const { useFlowStore } = await import('/src/stores/useFlowStore.ts'); + const { groupNewOperationGraph, visualOperationGroup } = await import('/src/workflow/visualOperationGroups.ts'); + const graph = groupNewOperationGraph(source); + useFlowStore.getState().replaceGraph(graph); + return graph.nodes.find((node) => visualOperationGroup(node) === 'setup')!.id; + }, original); + const card = page.getByTestId(`setup-node-${id}`); + const required = (surface: Locator) => + surface.getByRole('switch', { name: 'VAE Tiling (required by model)', exact: true }); + await expect(required(card)).toBeChecked(); + await expect(required(card)).toBeDisabled(); + const before = await optionalStageApi(page); + await card.locator('header').first().click(); + await page.getByRole('button', { name: 'Inspect node', exact: true }).click(); + const inspector = page.getByRole('dialog', { name: 'Node inspector', exact: true }); + await expect(required(inspector)).toBeChecked(); + await expect(required(inspector)).toBeDisabled(); + await page.keyboard.press('Escape'); + await page.getByTestId('topbar-save-workflow-options').click(); + await page.getByTestId('topbar-save-workflow-as').click(); + await page.getByTestId('save-workflow-name').fill('Mochi preview tiling'); + await page.getByTestId('confirm-save-workflow').click(); + await expect(page.getByTestId('save-workflow-dialog')).toHaveCount(0); + await page.reload({ waitUntil: 'domcontentloaded' }); + await expect(required(card)).toBeChecked(); + expect(await optionalStageApi(page)).toEqual(before); + const wire = await page.evaluate(async (source) => { + const { useFlowStore } = await import('/src/stores/useFlowStore.ts'); + useFlowStore.getState().replaceGraph(source); + return useFlowStore.getState().edges.find((e) => e.sourceHandle === 'execution_recipe')!; + }, original); + const raw = page.locator(`.react-flow__node[data-id="${wire.source}"]`); + await expect(required(raw)).toBeChecked(); + await expect(required(raw)).toBeDisabled(); + await page.evaluate( + async (edge) => (await import('/src/stores/useFlowStore.ts')).useFlowStore.getState().removeEdges(edge), + wire.id, + ); + const fallback = raw.getByRole('switch', { name: 'VAE Tiling', exact: true }); + await expect(fallback).toBeEnabled(); + await expect(fallback).not.toBeChecked(); + await page.evaluate(async () => (await import('/src/stores/useFlowStore.ts')).useFlowStore.getState().undo()); + await expect(required(raw)).toBeChecked(); + expect(await optionalStageApi(page)).toEqual(before); +}); + test('optional Model Setup and Image Output preserve native stages, task review, separate, Undo and reusable save', async ({ page, }) => { @@ -41061,6 +41142,29 @@ it('aliased audio Model Setup renders human offload choices and preserves the se const offload = setup.getByRole('button', { name: 'Offload Mode', exact: true }); const runtimeOffload = setup.getByRole('button', { name: 'Runtime Offload', exact: true }); await expect(runtimeOffload).toHaveText('Off'); + // Check before any click can scroll the field into view. Both resource controls + // should be accessible above the quantization and manual-map editors. + await expect + .poll(async () => { + const body = await page.getByTestId(`node-scroll-body-${root}`).boundingBox(); + const offloadBox = await runtimeOffload.boundingBox(); + const deviceBox = await setup.getByLabel('Execution Device', { exact: true }).boundingBox(); + const mapBox = await setup.getByLabel('Max Memory (JSON)', { exact: true }).boundingBox(); + const quantizationBox = await setup + .getByRole('button', { name: 'Pipeline Quantization Config V2', exact: true }) + .boundingBox(); + return Boolean( + body && + offloadBox && + deviceBox && + mapBox && + quantizationBox && + body.y <= offloadBox.y && + offloadBox.y + offloadBox.height <= deviceBox.y && + deviceBox.y + deviceBox.height <= Math.min(body.y + body.height, mapBox.y, quantizationBox.y), + ); + }) + .toBe(true); await expect(offload).toHaveCount(0); await setup.getByRole('button', { name: 'Edit stages: Model Setup', exact: true }).click(); const recipeWire = await page.evaluate(async (ownerId) => { From 9ef4eccf26cde194dee829868193ee633ae5ec87 Mon Sep 17 00:00:00 2001 From: Sourav Das Date: Sat, 28 Nov 2026 09:15:46 +0530 Subject: [PATCH 428/440] Record the measured cost of effective controls and typed output guidance --- scripts/bundle-budget.mjs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/scripts/bundle-budget.mjs b/scripts/bundle-budget.mjs index c53373d7..a538aa30 100644 --- a/scripts/bundle-budget.mjs +++ b/scripts/bundle-budget.mjs @@ -497,6 +497,8 @@ const SOURCE_LICENSES = new URL('../public/THIRD_PARTY_LICENSES.txt', import.met // Four entry chunks and the existing 64 KiB limit on each deferred chunk are preserved. // Content-sized stages, role-aware wiring and editing add the measured largest-chunk delta. 578843 to 582429 gzip bytes. const MAX_STARTUP_CHUNK_GZIP_BYTES = + // Shared effective-control and wire-origin logic. Measured 582429 to 583348 gzip bytes. + 919 + 3586 + 3781 + // The approved native Shap-E preview brings the largest chunk to 575069 gzip bytes. @@ -825,6 +827,8 @@ const MAX_STARTUP_CHUNK_GZIP_BYTES = // The same build measures 757,520 total startup bytes, up from 753,545. // The four startup chunks include shared selectors, stage geometry and editing controls. 757520 to 764464 gzip bytes. const MAX_STARTUP_GZIP_BYTES = + // Same four startup chunks, measured 764464 to 765381 gzip bytes. + 917 + 6944 + 3975 + // The Shap-E preview and its Gallery descriptor add 634 bytes of startup JavaScript. @@ -1213,6 +1217,8 @@ const MAX_DEFERRED_CHUNK_GZIP_BYTES = 64 * 1024; // 357,530 to 361,671 bytes, including the shared workflow-file picker. // The template feature, panel layouts and conditional controls are loaded with their existing surfaces. 361671 to 367446 gzip bytes. const MAX_DEFERRED_GZIP_BYTES = + // The port picker and stage controls stay lazy. Measured 367446 to 368441 gzip bytes. + 995 + 5775 + 4141 + // The native turntable comparison adds 129 bytes and keeps 41 bytes of headroom. From afaf57880d00f0bf7df004e78dc5ae52fe39c33e Mon Sep 17 00:00:00 2001 From: Sourav Das Date: Sun, 29 Nov 2026 03:29:38 +0530 Subject: [PATCH 429/440] Clarify model setup and port help and feature exact landscape recipes --- .github/workflows/ci.yml | 4 +- AGENTS.md | 2 + README.md | 2 +- docs/template-gallery-assets.md | 4 +- docs/workflow-authoring-ux.md | 22 +- scripts/bundle-budget.mjs | 6 + scripts/graph-visuals.test.mjs | 90 ++++- scripts/modiff-template.test.mjs | 31 +- ...workflow-library-canonical-export.test.mjs | 20 +- src/components/CustomNode.tsx | 53 +-- src/components/EncodingNode.tsx | 1 + src/components/GraphNodeInputs.tsx | 22 +- src/components/LeftLibraryPanels.tsx | 4 +- src/components/ModelSetupAdapterControls.tsx | 22 +- src/components/NodeContent.tsx | 7 +- src/components/NodeHelpContent.tsx | 249 ++++++++++++++ src/components/NodeInspectionDetails.tsx | 48 +-- src/components/OperationModelField.tsx | 8 +- src/components/OperationModelPicker.tsx | 84 ++--- src/components/OperationOwnerControls.tsx | 9 +- src/components/ProjectedBlockNodeV2.tsx | 1 + src/components/StageNodeControls.tsx | 45 ++- src/components/TemplateBrowserDialog.tsx | 46 +-- src/components/VisualStageControls.tsx | 19 +- src/components/Workflow.tsx | 5 +- src/fields/HandleField.tsx | 41 ++- src/fields/SelectField.tsx | 6 +- src/fields/ToggleField.tsx | 6 +- src/studio/templateBrowser.ts | 53 +-- src/theme/componentPortRole.ts | 52 +++ src/theme/connectionTypes.ts | 57 +++- src/theme/reactFlowStyles.ts | 6 + src/theme/semanticTokens.json | 1 + src/ui/FieldFrame.tsx | 7 +- src/ui/controls.tsx | 2 + src/workflow/modelSetupControlPresentation.ts | 11 +- src/workflow/nodePortHelp.ts | 67 ++++ src/workflow/nodePresentation.ts | 14 +- src/workflow/useWorkflowConnections.ts | 26 +- .../custom-model-retention.spec.ts | 2 +- .../live-backend/custom-prototyping.spec.ts | 2 +- .../model-switch-diagnostic.spec.ts | 2 +- tests/e2e/studio-mocked/studio-mocked.spec.ts | 310 +++++++++++++++--- ...emplate-browser-layout-1280x720-linux.json | 4 +- ...emplate-browser-layout-1280x720-win32.json | 4 +- ...mplate-browser-layout-2048x1024-linux.json | 6 +- ...mplate-browser-layout-2048x1024-win32.json | 6 +- 47 files changed, 1178 insertions(+), 311 deletions(-) create mode 100644 src/components/NodeHelpContent.tsx create mode 100644 src/theme/componentPortRole.ts create mode 100644 src/workflow/nodePortHelp.ts diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index cf6839ad..2183df0c 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -32,7 +32,7 @@ jobs: uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4 with: repository: sdevil7th/MoDiff - ref: 1120ed11c3b8dd134044fc3eae152e1d11278f82 + ref: 008c34f42da470bb9d0c1dba21b56ff515039ffd path: MoDiff persist-credentials: false - name: Verify the pinned backend supports native setup @@ -88,7 +88,7 @@ jobs: with: repository: sdevil7th/MoDiff # Match the immutable backend revision in the Client quality job. - ref: 1120ed11c3b8dd134044fc3eae152e1d11278f82 + ref: 008c34f42da470bb9d0c1dba21b56ff515039ffd path: MoDiff persist-credentials: false - name: Verify the pinned backend supports native setup diff --git a/AGENTS.md b/AGENTS.md index 334f0305..828fc5b3 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -27,6 +27,8 @@ These rules apply to Codex, Copilot-style agents, and any AI tool editing this r ## Generic Workflow Stages +- Review the rendered card at its minimum and normal widths with long real values. Check text inside controls, icon focus and names, label contrast, socket roles and help text. Record what was inspected visually and which interactions were tested. + - Use content-aware initial sizes for new ordinary and custom nodes. Preserve explicit manual sizes and saved layouts. Check the editable body after the header and port tray are measured, including after model metadata arrives. - Put an enabling switch before the fields it controls. Hide settings that the active operation ignores and preserve their values and connected inputs. Keep the primary model selector labelled and distinguish edit-in-place from conversion to independent nodes. - Base filtered model choices and category showcases on actual available recipes and their approved media. Search long single- and multi-select lists, and resolve wire suggestions against the selected model's real socket contract. diff --git a/README.md b/README.md index 50d717ba..aabbb159 100644 --- a/README.md +++ b/README.md @@ -85,7 +85,7 @@ application source pair is: | MoDiff | `1239d1cecd12a7318eb263ca17c34d4fc0445d14` | | MoDiff-client | `c561a01395044fd71c1918e95fb9e9709d8e7601` | -CI backend contract: `1120ed11c3b8dd134044fc3eae152e1d11278f82`. +CI backend contract: `008c34f42da470bb9d0c1dba21b56ff515039ffd`. Both CI jobs use this immutable backend revision. It includes the weight-loading controls for saved recipes and the model readiness and storage fields used by the diff --git a/docs/template-gallery-assets.md b/docs/template-gallery-assets.md index b1dcb853..62db8e1a 100644 --- a/docs/template-gallery-assets.md +++ b/docs/template-gallery-assets.md @@ -7,7 +7,9 @@ Face token. The browser groups recipes by task and lists **Advanced & planning** last. This group contains recipes that explicitly declare a custom experimental creator, plus planning-only drafts. Recipes with private previews retain their task categories. Declared creator recipes also appear in their relevant task categories. Model and operation filters follow the recipes in the current results, including independently named checkpoints that use the same execution pipeline. -Each category opens with one featured recipe when sorting by recommendation. Its preview uses the current recipe's approved Gallery entry. Images with text, transcriptions and music videos can be found by their relevant medium. Template authors can nominate a category lead in `src/studio/templateBrowser.ts`. The browser uses another matching reviewed output when filters exclude the lead. +**Recommended** combines curated examples across media with each task category’s featured recipes. **Getting started** includes every recipe marked Starter. **Low VRAM** collects recipes explicitly classified or tagged for low-memory use. These collections overlap with task categories so an image workflow can appear under both Image and Getting started. Use **Ready on this machine** to filter by the current setup. + +Sorting by recommendation gives one matching recipe a larger card with its own approved Gallery output. Recommended, All templates and Image open with **Larch on the Glacial Pond**. Opening that card creates the Lumina Image 2.0 landscape workflow. The separate FLUX 3 pine-lake landscape is available under **Ceramic Radio → Model showcase**, together with its prompt-upsampling recipe. Opening the Ceramic Radio workflow uses the radio recipe shown on its card. Template authors can nominate category leads in `src/studio/templateBrowser.ts`. When a filter excludes the first choice, the browser selects another matching reviewed output. The browser shows a loading message while it checks the Gallery index. A failed lookup retries once. If the retry also fails, reopening Templates checks again. The private-preview placeholder appears only after the index loads successfully and contains no approved output for the recipe. diff --git a/docs/workflow-authoring-ux.md b/docs/workflow-authoring-ux.md index 9df019be..edd459d4 100644 --- a/docs/workflow-authoring-ux.md +++ b/docs/workflow-authoring-ux.md @@ -50,10 +50,12 @@ the bottom of the chooser and through Nodes → Custom nodes. The backend resolves a task against published execution profiles. It prefers the last explicitly selected compatible model when its exact artifacts and runtime -are available, otherwise an installed composable route, preferring the lower -estimated memory requirement among suitable routes. Automatic memory also -checks the existing read-only resource planner; Custom memory leaves that choice -to the operator. No selection loads weights or changes creative defaults. If no +are available. For new image tasks, eligible FLUX 3, MiniMax H3 Image, FLUX.2 +and FLUX.1 models have priority in that order. Within each group and for other +tasks, Studio prefers a composable route, then the lower estimated memory +requirement. Templates and saved graphs open with their authored models. +Automatic memory checks the existing read-only resource planner. Custom memory +leaves that choice to the operator. No selection loads weights or changes creative defaults. If no route qualifies, the connected draft has an empty required model field. Select a model there before running. Run independently rechecks inputs and resources. Remembered selections are bounded local authoring preferences, not execution approval. @@ -334,7 +336,15 @@ are not guessed to be deliberate removals, and opening a workflow does not rewri ### Model selection -The model field of a canonical loader opens **Choose model for Load Models**. +The **Model** row shows the current checkpoint. Open it to choose a different +one. The reset icon restores the model's defaults for unconnected prompts +and generation controls. The cable icon opens the available connection and grouping +actions. Hover or focus either icon to see its label. **Runtime settings** +contains the built-in loader controls for device placement and memory use. +A narrowed node shortens the displayed model name. Hover the selector or open +it to read the complete name. + +The model field of a canonical loader opens **Choose model**. Search by model or repository and optionally filter to Downloaded. Names precede repository IDs; download status is a trailing badge. Selecting a row resolves the backend starter and updates the owned operation graph through the normal graph @@ -521,4 +531,6 @@ New task starters fit the visible graph after its stages are measured. Use **Fit An ordinary stage displays its working ports and wired outputs. **Show implementation ports** reveals available diagnostics, route state and guidance-layer settings. Connecting one keeps its socket visible when the other implementation ports are hidden. **Choose model** on Model Setup opens supported models for the current task. **Change model / task** in the same dialog previews compatible substitutions and the affected wires. Device selectors use the reported accelerator name alongside the exact runtime device ID when available. +**Node help** describes the current stage and its exposed inputs and outputs. For a saved stage, port descriptions follow its bound operations and current wiring. For custom nodes, add a description to the node and each declared port. Model component sockets and wires share a role color. Read their labels or hover over a socket to see its role when two components use the same underlying wire type. + When creating a reusable Block, review the suggested inputs, outputs and editable settings under **Customize Block interface**. Existing external wires keep their ports. Other available ports or settings can be enabled before saving. In **Add custom node**, **Choose Python file** selects a file on your browser computer. **Add node** sends the selected file to the backend and enables it. Local paths entered under **Advanced options** refer to the backend machine. diff --git a/scripts/bundle-budget.mjs b/scripts/bundle-budget.mjs index a538aa30..5ac32580 100644 --- a/scripts/bundle-budget.mjs +++ b/scripts/bundle-budget.mjs @@ -497,6 +497,8 @@ const SOURCE_LICENSES = new URL('../public/THIRD_PARTY_LICENSES.txt', import.met // Four entry chunks and the existing 64 KiB limit on each deferred chunk are preserved. // Content-sized stages, role-aware wiring and editing add the measured largest-chunk delta. 578843 to 582429 gzip bytes. const MAX_STARTUP_CHUNK_GZIP_BYTES = + // Shared model role colors, field captions and chooser layout, measured 583348 to 584233. + 885 + // Shared effective-control and wire-origin logic. Measured 582429 to 583348 gzip bytes. 919 + 3586 + @@ -827,6 +829,8 @@ const MAX_STARTUP_CHUNK_GZIP_BYTES = // The same build measures 757,520 total startup bytes, up from 753,545. // The four startup chunks include shared selectors, stage geometry and editing controls. 757520 to 764464 gzip bytes. const MAX_STARTUP_GZIP_BYTES = + // Same four startup chunks, measured 765381 to 766265. + 884 + // Same four startup chunks, measured 764464 to 765381 gzip bytes. 917 + 6944 + @@ -1217,6 +1221,8 @@ const MAX_DEFERRED_CHUNK_GZIP_BYTES = 64 * 1024; // 357,530 to 361,671 bytes, including the shared workflow-file picker. // The template feature, panel layouts and conditional controls are loaded with their existing surfaces. 361671 to 367446 gzip bytes. const MAX_DEFERRED_GZIP_BYTES = + // Open-on-demand node help, inspector and Gallery changes, measured 368441 to 372145. + 3704 + // The port picker and stage controls stay lazy. Measured 367446 to 368441 gzip bytes. 995 + 5775 + diff --git a/scripts/graph-visuals.test.mjs b/scripts/graph-visuals.test.mjs index 1e85c0c5..8256eb89 100644 --- a/scripts/graph-visuals.test.mjs +++ b/scripts/graph-visuals.test.mjs @@ -877,6 +877,94 @@ test('union connections resolve their exact payload and decorate stroke plus arr assert.match(normalizedGradient, new RegExp(connectionTypes.connectionColor('video'), 'i')); }); +test('custom node help uses authored purpose and port descriptions, and describes older bare interfaces', async () => { + const { default: Help } = await server.ssrLoadModule('/src/components/NodeHelpContent.tsx'); + const authorNode = node('Mix', 0, 0, { + params: { + before: { + type: 'image', + display: 'input', + label: 'Foreground', + required: true, + description: 'The image to place over the background.', + }, + result: { type: 'image', display: 'output', label: 'Composite' }, + inactive: { type: 'image', display: 'input', label: 'Unused mask', hidden: true }, + }, + }); + authorNode.data.module = 'custom.Example'; + authorNode.data.description = 'Combine two with transparency.'; + const render = () => renderToStaticMarkup(createElement(Help, { node: authorNode })); + const authored = render(); + assert.match(authored, /Combine two <layers> with transparency/); + assert.match(authored, /Foreground · Required/); + assert.match(authored, /The image to place over the background/); + assert.match(authored, /Provides image/); + assert.doesNotMatch(authored, /Unused mask/); + delete authorNode.data.description; + assert.match(render(), /Takes Foreground and produces Composite/); +}); + +test('stock port help uses exact media and quantity meanings while custom roles remain author-defined', async () => { + const { builtinPortPurpose: purpose } = await server.ssrLoadModule('/src/workflow/nodePortHelp.ts'); + const id = 'modules.VideoConditioning.Normalize'; + assert.match(purpose(id, 'mask', 'image', 'input'), /regions/); + assert.match(purpose(id, 'control_video', ['video', 'str'], 'input'), /motion/); + assert.match(purpose(id, 'height_out', 'int', 'output'), /height in pixels/); + assert.match(purpose(id, 'sample_rate', 'int', 'output'), /hertz/); + assert.match(purpose(id, 'state_out', 'modular_workflow_state', 'output'), /next operation/); + assert.match(purpose(id, 'prompt_embeds', 'tensor', 'input'), /Encoded text/); + assert.equal(purpose(id, 'width', 'object', 'input'), undefined); + assert.equal(purpose('custom.Draw', 'mask', 'image', 'input'), undefined); +}); + +test('model component roles color wires without changing payload identity', () => { + const model = 'diffusers_auto_model'; + const params = { + unet_out: { type: model }, + vae_out: { type: model }, + scheduler: { type: model }, + text_encoders: { type: 'diffusers_auto_models', connectionRole: 'text_encoders' }, + renamed: { type: model, fieldOptions: { blockBindingV2: { fieldOrPortId: 'vae_out' } } }, + component: { + type: model, + connectionRoleSelector: { field: 'kind', values: { encode: 'image_encoder', denoise: 'denoiser' } }, + }, + kind: { value: 'encode' }, + vae: { type: 'audio' }, + anyRole: { type: model, signalCompatibility: { role: ['vae', 'denoiser'] } }, + }; + const source = node('source', 0, 0, { params }); + const target = node('target', 0, 0, { params: { input: { type: 'any' } } }); + const roles = ['unet_out', 'vae_out', 'scheduler', 'text_encoders'].map((id) => + connectionTypes.handleComponentRole(source, id), + ); + assert.deepEqual(roles, ['denoiser', 'vae', 'scheduler', 'text_encoders']); + assert.equal(new Set(roles.map((r) => connectionTypes.portColor(model, r))).size, 4); + assert.equal(connectionTypes.handleComponentRole(source, 'renamed'), 'vae'); + assert.equal(connectionTypes.handleComponentRole(source, 'component'), 'image_encoder'); + assert.equal(connectionTypes.handleComponentRole(source, 'vae'), undefined); + assert.equal(connectionTypes.handleComponentRole(source, 'anyRole'), undefined); + const link = edge('model-link', 'source', 'target', 'component', 'input'); + const first = connectionTypes.decorateConnectionEdge(link, [source, target]); + assert.equal(first.data.connectionType, model); + assert.equal(first.style.stroke, connectionTypes.portColor(model, 'image_encoder')); + assert.equal(first.markerEnd.color, first.style.stroke); + assert.equal(connectionTypes.decorateConnectionEdge(first, [source, target]), first); + const changed = node('source', 0, 0, { params: { ...params, kind: { value: 'denoise' } } }); + const next = connectionTypes.decorateConnectionEdge(first, [changed, target]); + assert.equal(next.id, first.id); + assert.equal(next.data.connectionType, model); + assert.equal(next.style.stroke, connectionTypes.portColor(model, 'denoiser')); + assert.equal( + connectionTypes.handleComponentRole( + node('unknown', 0, 0, { params: { ...params, kind: { isConnected: true } } }), + 'component', + ), + undefined, + ); +}); + test('the resolved payload color reaches the rendered target socket, drag surface, edge, and arrow', () => { const nodes = [ node('source', 0, 0, { @@ -1067,7 +1155,7 @@ test('graph fields and overlays use graph-safe controls without losing specializ const nodeContent = fs.readFileSync(path.join(ROOT, 'src', 'components', 'NodeContent.tsx'), 'utf8'); assert.match(nodeContent, /runtimeOptionValues\(options, \{ includeDisabled: true \}\)\.length > 0/); const workflow = fs.readFileSync(path.join(ROOT, 'src', 'components', 'Workflow.tsx'), 'utf8'); - assert.match(workflow, /connectionColor\(connectionDataType\)/); + assert.match(workflow, /connectionColor=\{connectionLineColor\}/); }); test('workflow dirty state uses an overlaid marker that never changes tab title width', () => { diff --git a/scripts/modiff-template.test.mjs b/scripts/modiff-template.test.mjs index 73df999f..18c586d6 100644 --- a/scripts/modiff-template.test.mjs +++ b/scripts/modiff-template.test.mjs @@ -4663,6 +4663,35 @@ test('category features and model choices come from the visible recipes and thei const minimax = templateModelOptions(all).filter(({ label }) => /minimax/i.test(label)); assert.equal(minimax.length, 2); const lookup = (id) => all.find((item) => item.id === id); + const starters = filterStudioTemplates(all, form, { ...options, category: 'getting-started' }); + assert.deepEqual( + starters, + all.filter((item) => item.difficulty === 'starter'), + ); + assert.ok(starters.some((item) => item.mode === 'speech_to_text')); + const lowMemory = filterStudioTemplates(all, form, { ...options, category: 'performance' }); + assert.deepEqual(lowMemory.map((item) => item.id).sort(), [ + 'low_vram', + 'qwen_low_vram_poster_layout', + 'qwen_low_vram_product_concept', + 'qwen_low_vram_text_rendering', + ]); + assert.ok(lowMemory.every((item) => templateCategoryIds(item).includes('image'))); + const recommended = browserModule.recommendedBrowserTemplates(all); + assert.equal(recommended[0].id, 'lumina2_larch_on_glacial_pond'); + assert.equal(new Set(recommended.map((item) => item.id)).size, recommended.length); + for (const id of [ + 'shap_e_traffic_cone_turntable', + 'minimax_h3_image_old_town_cat', + 'flux3_klein_fp8r512_text_to_image', + 'janus_reykjavik_travel_note', + 'minimax_music3_chamber_pop', + ]) { + assert.ok( + recommended.some((item) => item.id === id), + id, + ); + } assert.deepEqual(templateCategoryIds(lookup('shap_e_traffic_cone_turntable')), ['3d']); assert.ok(templateCategoryIds(lookup('qwen_text_rendering')).includes('image')); assert.ok(templateCategoryIds(lookup('whisper_tiny_blue_cup_transcription')).includes('text')); @@ -4683,7 +4712,7 @@ test('category features and model choices come from the visible recipes and thei const rows = filterStudioTemplates(all, form, { ...options, category }); const featured = featuredCategoryTemplate(rows, category); assert.ok(rows.includes(featured), category); - if (['all', 'image'].includes(category)) assert.equal(featured.id, 'minimax_h3_image_old_town_cat'); + if (['all', 'recommended', 'image'].includes(category)) assert.equal(featured.id, 'lumina2_larch_on_glacial_pond'); if (category === 'audio') assert.equal(featured.id, 'minimax_music3_chamber_pop'); if (rows.length > 1) { const other = rows.find((item) => item !== featured); diff --git a/scripts/workflow-library-canonical-export.test.mjs b/scripts/workflow-library-canonical-export.test.mjs index e5722122..55913de3 100644 --- a/scripts/workflow-library-canonical-export.test.mjs +++ b/scripts/workflow-library-canonical-export.test.mjs @@ -374,7 +374,7 @@ test('whole-pipeline examples fold connected runtime settings into the shared Mo } }); -test('Model Setup subsections use the bound loader caption without renaming a saved group', () => { +test('Model Setup subsections name built-in runtime controls and preserve authored group names', () => { const backend = path.resolve(process.env.MODIFF_BACKEND_DIR || '../MoDiff'); const pathToEdit = 'data/graphs/studio/stable-diffusion-xl-pipeline/edit-image.json'; const source = JSON.parse(readFileSync(path.join(backend, pathToEdit), 'utf8')); @@ -387,8 +387,24 @@ test('Model Setup subsections use the bound loader caption without renaming a sa const title = 'Diffusers.LoadPipeline'; const controls = instance.effectiveInterface.controls.filter((control) => control.group === title); assert.ok(controls.length > 0); - assert.equal(modelSetupControlGroupLabel(title, controls, graph), 'Load Image Pipeline'); + assert.equal(modelSetupControlGroupLabel(title, controls, graph), 'Runtime settings'); assert.equal(modelSetupControlGroupLabel('My loader settings', controls, graph), 'My loader settings'); + const renamed = structuredClone(graph); + renamed.nodes.find((node) => node.data.blockProjectionNodeId === controls[0].binding.nodeId).data.label = + 'My loader settings'; + assert.equal(modelSetupControlGroupLabel('My loader settings', controls, renamed), 'My loader settings'); + const modularSource = JSON.parse( + readFileSync(path.join(backend, 'data/graphs/studio/flux-dev-pipeline/text-to-image.json'), 'utf8'), + ); + const modular = groups + .groupNewOperationGraph(modularSource) + .nodes.find((node) => groups.visualOperationGroup(node) === 'setup').data.blockInstanceV2; + const modularControls = modular.effectiveInterface.controls.filter((control) => control.group === 'Load Models'); + assert.ok(modularControls.some((control) => control.binding.fieldId === 'device')); + assert.equal( + modelSetupControlGroupLabel('Load Models', modularControls, blockRuntime.blockOperationGraphV2(modular)), + 'Runtime settings', + ); const other = instance.effectiveInterface.controls.find((control) => control.group !== title); assert.ok(other); assert.equal(modelSetupControlGroupLabel(title, [...controls, other], graph), title); diff --git a/src/components/CustomNode.tsx b/src/components/CustomNode.tsx index 112b9e28..de7abbde 100644 --- a/src/components/CustomNode.tsx +++ b/src/components/CustomNode.tsx @@ -5,6 +5,8 @@ import StageActionChoice from './StageActionChoice'; import { NodeProps, useStoreApi } from '@xyflow/react'; import { + lazy, + Suspense, memo, useCallback, useEffect, @@ -46,11 +48,13 @@ import { dataTypeClass, normalizeDataType } from '../utils/dataTypeCategory'; import { formatExecutionTime } from '../utils/formatExecutionTime'; import { formatMemory } from '../utils/formatMemory'; import { measuredNodeContentSize } from '../workflow/nodeContentSize'; +import { visualOperationStageKind } from '../workflow/visualOperationGroupProjection'; import { useNodeLayoutSync } from '../utils/useNodeLayoutSync'; import { CustomNodeFrame, CustomNodeHeaderFrame, ModiffButton, + ModiffDialog, ModiffIconButton, ModiffPopover, ModiffProgress, @@ -72,6 +76,8 @@ import { executionProgressDetail } from '../studio/executionProgress'; import type { ExecutionProgress } from '../studio/types'; import BlockSaveDialogV2 from './BlockSaveDialogV2'; +const NodeHelpContent = lazy(() => import('./NodeHelpContent')); + const MAX_NODE_WIDTH = modiffLayout.maxNodeWidth; type PanelAnchor = { left: number; top: number }; @@ -124,6 +130,7 @@ type NodeSurface = { setSize: (width: number, height: number) => void; testId?: string; hasAudioPreview?: boolean; + help?: { kind: import('./NodeHelpContent').HelpStage; params: Record }; }; const CustomNode = memo((node: NodeProps & { surface?: NodeSurface }) => { @@ -135,7 +142,13 @@ const CustomNode = memo((node: NodeProps & { surface?: NodeSurfa const label = visualNodeTitle(catalog, node.data, registered); const hasAudioPlayer = node.surface?.hasAudioPreview || Object.values(node.data.params).some((param) => param.display === 'ui_audio'); - const minimumNodeWidth = hasAudioPlayer ? modiffLayout.audioPreviewNodeMinWidth : modiffLayout.nodeMinWidth; + const isModelSetup = + stage?.stage.id === 'model-setup' || visualOperationStageKind(node.data.blockInstanceV2) === 'setup'; + const minimumNodeWidth = hasAudioPlayer + ? modiffLayout.audioPreviewNodeMinWidth + : isModelSetup + ? modiffLayout.modelSetupNodeMinWidth + : modiffLayout.nodeMinWidth; const setParam = useFlowStore((state) => state.setParamWithHistory); const setNodeSize = useFlowStore((state) => state.setNodeSize); const beginHistoryTransaction = useFlowStore((state) => state.beginHistoryTransaction); @@ -152,7 +165,7 @@ const CustomNode = memo((node: NodeProps & { surface?: NodeSurfa const explicitHeight = useFlowStore((state) => state.nodes.find((candidate) => candidate.id === node.id)?.height); const hasTallExplicitSize = (explicitHeight ?? 0) > 360; const setNodeUiState = useFlowStore((state) => state.setNodeUiState); - const [helpAnchor, setHelpAnchor] = useState(null); + const [helpOpen, setHelpOpen] = useState(false); const [issueAnchor, setIssueAnchor] = useState(null); const [executionTimeAnchor, setExecutionTimeAnchor] = useState(null); const [memoryAnchor, setMemoryAnchor] = useState(null); @@ -387,7 +400,7 @@ const CustomNode = memo((node: NodeProps & { surface?: NodeSurfa nodeStyle={style} explicitHeight={explicitHeight} maxWidth={MAX_NODE_WIDTH} - minWidth={minimumNodeWidth} + minWidth={isModelSetup && node.width ? Math.min(node.width, minimumNodeWidth) : minimumNodeWidth} isError={isError} onContextMenu={handleContextMenu} > @@ -399,7 +412,7 @@ const CustomNode = memo((node: NodeProps & { surface?: NodeSurfa {showDisabledForRun && Disabled for run export} {recentChangeLabel && {recentChangeLabel}}
-
+
{node.surface?.actions} {validationMessage && ( <> @@ -425,30 +438,22 @@ const CustomNode = memo((node: NodeProps & { surface?: NodeSurfa setHelpAnchor(anchorBeside(event.currentTarget))} + onClick={() => setHelpOpen(true)} label="Node help" > - {helpAnchor && ( - setHelpAnchor(null)} className="max-w-[480px] p-3"> -
{label}
- {stage && } - {stage && ( -

- What this stage does · {stage.mode.label} -

- )} - {node.data.description &&
{node.data.description}
} - {Object.entries(node.data.params).map(([key, param]) => - param.description ? ( -
- {param.label || key.charAt(0).toUpperCase() + key.slice(1)}:{' '} - {param.description} -
- ) : null, - )} -
+ {helpOpen && ( + setHelpOpen(false)}> + Loading node help…

}> + + {stage && } +
+
)}
diff --git a/src/components/EncodingNode.tsx b/src/components/EncodingNode.tsx index 7887037d..a78b6061 100644 --- a/src/components/EncodingNode.tsx +++ b/src/components/EncodingNode.tsx @@ -76,6 +76,7 @@ const EncodingNode = memo((node: NodeProps) => { {...node} surface={{ testId: `${kind === 'inputs' ? 'encoding' : kind}-node-${node.id}`, + help: { kind, params }, hasAudioPreview: view.previewViews.some((preview) => preview.binding.mediaType === 'audio'), controls: kind === 'inputs' ? ( diff --git a/src/components/GraphNodeInputs.tsx b/src/components/GraphNodeInputs.tsx index 0c798321..b7942e36 100644 --- a/src/components/GraphNodeInputs.tsx +++ b/src/components/GraphNodeInputs.tsx @@ -1,5 +1,5 @@ import { visualNodeTitle } from '../studio/visualNodeCatalog'; -import { useCallback, useMemo, useState } from 'react'; +import { lazy, Suspense, useCallback, useMemo, useState } from 'react'; import { useShallow } from 'zustand/react/shallow'; import { useFlowStore } from '../stores/useFlowStore'; import { Pin, PinOff } from 'lucide-react'; @@ -17,6 +17,10 @@ import { cx } from '../utils/classNames'; import { EXECUTION_RECIPE_NODE } from '../workflow/gatedNodeControls'; import NodeContent from './NodeContent'; import NodeInspectorSections from './NodeInspectorSections'; +import { isFocusedStageNode } from '../workflow/encodingNodePresentation'; +import { visualOperationStageKind } from '../workflow/visualOperationGroupProjection'; + +const StageNodeControls = lazy(() => import('./StageNodeControls')); const inspectorDisclosureMemory = new Map(); @@ -118,6 +122,22 @@ export function GraphNodeInputs({ Reveal in Block to edit
+ ) : selected && + isFocusedStageNode(node.data.blockInstanceV2) && + visualOperationStageKind(node.data.blockInstanceV2) === 'setup' ? ( + Loading model controls…}> + updateParam(node.id, param, value, key)} + inspector={{ + controlIdPrefix, + params, + updateFieldActionStore: (origin, param, value, key) => + updateGraphNodeControl(workflowId, node.id, param, value, key, origin), + }} + /> + ) : fieldCount > 0 ? (
- templateCategoryId(template) === category.id && + templateCategoryIds(template).includes(category.id) && template.difficulty !== 'blocked' && template.example?.status !== 'blocked', ).length, diff --git a/src/components/ModelSetupAdapterControls.tsx b/src/components/ModelSetupAdapterControls.tsx index e5d1e895..480d6354 100644 --- a/src/components/ModelSetupAdapterControls.tsx +++ b/src/components/ModelSetupAdapterControls.tsx @@ -22,14 +22,17 @@ import { showModelSetupAdapterControls, } from '../workflow/modelSetupAdapters'; import NodeContent from './NodeContent'; +import type { StageInspectorControls } from './StageNodeControls'; /** Populated rows are real graph nodes. The Add dialog is only a local draft * until the complete immutable adapter selection is explicitly applied. */ export default function ModelSetupAdapterControls({ node, updateStore, + inspector, }: { node: CustomNodeType; + inspector?: StageInspectorControls; updateStore: (param: string, value: unknown, key?: keyof NodeParams) => void; }) { const graph = useFlowStore(useShallow((state) => ({ nodes: state.nodes, edges: state.edges }))); @@ -199,14 +202,18 @@ export default function ModelSetupAdapterControls({
[ - control.controlId, - { - ...view.controlParams[control.controlId]!, - disabled: view.controlParams[control.controlId]!.disabled || Boolean(editUnavailable), - }, - ]), + controls + .filter((control) => !inspector || inspector.params[control.controlId]) + .map((control) => [ + control.controlId, + { + ...(inspector?.params[control.controlId] ?? view.controlParams[control.controlId]!), + disabled: view.controlParams[control.controlId]!.disabled || Boolean(editUnavailable), + }, + ]), )} updateStore={(param, value, key) => { if (key === 'disabled') { @@ -293,6 +300,7 @@ export default function ModelSetupAdapterControls({

{ const declaredLabel = data.label ?? key.charAt(0).toUpperCase() + key.slice(1); + const bound = boundStageField(data, graphNode?.data.blockInstanceV2 ?? blockOwner?.data.blockInstanceV2); const label = utilityOperation?.continuation && key === 'reference' && declaredLabel === 'Reference Audio' ? 'Continuation Audio' - : nodeFieldDisplayLabel(identity, key, declaredLabel); + : nodeFieldDisplayLabel(bound?.identity ?? identity, bound?.key ?? key, declaredLabel); const display = data.isInput ? 'input' : data.display || ''; const dataType = ( Array.isArray(data.type) && data.type.length > 0 ? data.type[0] : data.type || 'string' @@ -335,6 +337,7 @@ const NodeContent = memo(function NodeContent({ inputId: controlIdPrefix ? `${controlIdPrefix}:${nodeId}:${key}` : undefined, value, label, + description: data.description, display, isConnected, dataType, diff --git a/src/components/NodeHelpContent.tsx b/src/components/NodeHelpContent.tsx new file mode 100644 index 00000000..eb5c00db --- /dev/null +++ b/src/components/NodeHelpContent.tsx @@ -0,0 +1,249 @@ +import { useMemo } from 'react'; +import { ModiffDisclosure } from '../ui'; +import { useShallow } from 'zustand/react/shallow'; +import { useFlowStore, type CustomNodeType } from '../stores/useFlowStore'; +import { useNodesStore, type NodeParams } from '../stores/useNodeStore'; +import { blockCrossingSurfaceV2 } from '../studio/blockCrossingConnectionsV2'; +import { nodeConnectorParams } from '../studio/nodeConnectorResolution'; +import { visualStageForNode } from '../studio/visualNodeCatalog'; +import { componentPortRole, type ComponentRole } from '../theme/componentPortRole'; +import { builtinPortPurpose } from '../workflow/nodePortHelp'; +import { boundStageField, nodeFieldDisplayLabel } from '../workflow/nodePresentation'; +import { builtinUtilityOperationPresentation } from '../workflow/builtinUtilityOperationPresentation'; +import { conditionalInputRequired } from '../workflow/conditionalInputRequirements'; +import { unresolvedSignalControls } from '../workflow/signalControlPresentation'; +import { visualOperationStageKind } from '../workflow/visualOperationGroupProjection'; +import { encodingVisibleConnectors, isFocusedStageNode } from '../workflow/encodingNodePresentation'; + +const stagePurpose = { + setup: 'Choose the checkpoint, execution device and memory settings used by downstream stages.', + inputs: + 'Prepare the prompt and connected media for generation. The outputs carry the conditioning used by the selected model.', + guidance: 'Adjust how strongly the model follows its conditioning during generation.', + generate: + 'Sample the result using the connected model and prepared inputs. The output feeds the next processing or delivery stage.', + decode: 'Convert sampled latents into media using the connected decoder.', + mask: 'Prepare the mask that selects the area to change.', + imageInput: 'Load the source image used by later stages.', + videoInput: 'Load and prepare source footage for the selected video workflow.', + references: 'Collect the reference images used to guide generation.', + composite: 'Combine the generated result with the source using the mask and placement settings.', + assemble: 'Join the completed shots in timeline order.', + assembleExport: 'Join the completed shots and write the finished video.', + output: 'Prepare the result for preview or delivery using the active output operations.', +}; +export type HelpStage = keyof typeof stagePurpose; +const rolePurpose: Record = { + denoiser: 'Predicts how to update the latents at each sampling step.', + vae: 'Converts between media and the compact latent representation used during generation.', + scheduler: 'Sets the noise schedule used during denoising.', + text_encoders: 'Convert the prompt into embeddings the model can use.', + image_encoder: 'Turns a reference image into model conditioning.', + controlnet_component: 'Guides generation with structure from a control input.', + pipeline_components: 'Supplies the model components together to compatible downstream stages.', +}; +const setupPortDescriptions: Record = { + custom_lora: 'Apply the connected adapter weights to the selected model.', + quant_config: 'Choose how the model weights are represented when loading.', +}; + +export default function NodeHelpContent({ + node, + displayedParams, + kind, +}: { + node: Pick; + displayedParams?: Record; + kind?: HelpStage; +}) { + const registry = useNodesStore((s) => s.nodesRegistry); + const catalog = useNodesStore((s) => s.visualNodeCatalog); + const { nodes, edges } = useFlowStore(useShallow((s) => ({ nodes: s.nodes, edges: s.edges }))); + const crossingPorts = useMemo( + () => + node.data.blockInstanceV2 || node.data.blockProjectionOwnerId + ? blockCrossingSurfaceV2(nodes, edges).paramsByNodeId.get(node.id) + : undefined, + [nodes, edges, node], + ); + const owner = node.data.blockProjectionOwnerId + ? nodes.find((n) => n.id === node.data.blockProjectionOwnerId)?.data.blockInstanceV2 + : undefined; + const instance = node.data.blockInstanceV2; + const identity = node.data.module + '.' + node.data.action; + const registered = registry[identity]; + const gated = useFlowStore(useShallow((s) => unresolvedSignalControls(node.id, registered?.params, s))); + const group = kind ?? visualOperationStageKind(instance); + const owned = visualStageForNode(catalog, node.data); + const definition = instance?.definitionSnapshot; + const setup = + group === 'setup' || owned?.stage.id === 'model-setup' || identity === 'modules.ModularDiffusers.ModelsLoader'; + const params = displayedParams ?? nodeConnectorParams(node); + const withConnections = Object.fromEntries( + Object.entries({ ...params, ...crossingPorts }).map(([key, field]) => [ + key, + { + ...field, + isConnected: + field.isConnected || + edges.some( + (e) => (e.source === node.id && e.sourceHandle === key) || (e.target === node.id && e.targetHandle === key), + ), + }, + ]), + ); + const visible = + instance && group && !displayedParams ? encodingVisibleConnectors(withConnections, instance) : withConnections; + const inactive = builtinUtilityOperationPresentation(identity, node.data.params)?.inactive; + const nearby = new Map(nodes.map((n) => [n.id, n])); + const ports = Object.entries(visible).flatMap(([key, field]) => { + const direction = field.isInput ? 'input' : field.display; + if ( + (direction !== 'input' && direction !== 'output') || + (!field.isConnected && (field.hidden || inactive?.has(key) || gated.has(key))) + ) + return []; + const bound = boundStageField(field, instance ?? owner); + const label = nodeFieldDisplayLabel(bound?.identity ?? identity, bound?.key ?? key, field.label || key).replace( + /\s*\*$/, + '', + ); + const role = componentPortRole(field, key, node.data.params); + const type = Array.isArray(field.type) ? field.type.join(' or ') : field.type; + const desc = + field.description?.trim() || + (bound && registry[bound.identity]?.params[bound.key]?.description?.trim()) || + registered?.params[key]?.description?.trim(); + let purpose = + desc ?? + (typeof field.fieldOptions?.connectionDescription === 'string' + ? field.fieldOptions.connectionDescription + : undefined); + if (!purpose && role) { + const override = setup && direction === 'input' && ['denoiser', 'vae', 'controlnet_component'].includes(role); + purpose = (override ? 'Override the checkpoint component. ' : '') + rolePurpose[role]; + } + if (!purpose && setup && type && Object.prototype.hasOwnProperty.call(setupPortDescriptions, type)) + purpose = setupPortDescriptions[type]; + purpose ||= builtinPortPurpose(bound?.identity ?? identity, bound?.key ?? key, field.type, direction); + const neighbours = edges.flatMap((edge) => { + if (direction === 'input' && edge.target === node.id && edge.targetHandle === key) { + const upstream = nearby.get(edge.source); + return upstream ? [upstream.data.label || upstream.data.action] : []; + } + if (direction === 'output' && edge.source === node.id && edge.sourceHandle === key) { + const downstream = nearby.get(edge.target); + return downstream ? [downstream.data.label || downstream.data.action] : []; + } + return []; + }); + return [ + { + key, + label, + direction, + type, + purpose, + neighbours: [...new Set(neighbours)], + required: direction === 'input' && conditionalInputRequired(node, field, registry, edges), + }, + ]; + }); + const inputs = ports.filter((port) => port.direction === 'input'), + outputs = ports.filter((port) => port.direction === 'output'); + const description = [definition?.description, node.data.description, registered?.description] + .map((text) => text?.trim()) + .find((text) => text && text !== node.data.label); + + const summary = group ? stagePurpose[group] : owned?.stage.summary; + const fallback = [ + inputs.length && 'Takes ' + inputs.map((p) => p.label).join(', '), + outputs.length && (inputs.length ? 'produces ' : 'Produces ') + outputs.map((p) => p.label).join(', '), + ] + .filter(Boolean) + .join(' and '); + const actions = instance?.effectiveGraph.nodes + .filter((member) => !member.containerInterface) + .map((member) => String(member.data.label || member.nodeType)); + const settings = instance + ? instance.effectiveInterface.controls.filter((c) => c.help).map((c) => [c.label, c.help]) + : Object.entries(node.data.params) + .filter(([, f]) => f.description && !f.hidden && !f.isInput && f.display !== 'output' && f.display !== 'input') + .map(([key, f]) => [f.label || key, f.description]); + return ( +
+
+

What this stage does

+ {description &&

{description}

} + {summary && summary !== description &&

{summary}

} + {!summary && !description && ( +

{fallback ? fallback + '.' : 'This node exposes its configuration on the canvas.'}

+ )} +
+ {( + [ + ['Inputs', inputs], + ['Outputs', outputs], + ] as const + ).map(([title, rows]) => { + return ( +
+

{title}

+ {rows.length ? ( +
+ {rows.map((p) => ( +
+
+ {p.label} + {p.required ? ' · Required' : ''} +
+
+ {p.purpose || + (p.direction === 'input' ? 'Accepts ' : 'Provides ') + + (p.type?.replace(/_/gu, ' ') || 'a value') + + '.'} +
+ {p.neighbours.length > 0 && ( +
+ {p.direction === 'input' ? 'From ' : 'Feeds '} + {p.neighbours.join(', ')} +
+ )} +
+ ))} +
+ ) : ( +

No {title.toLowerCase()} exposed in this view.

+ )} +
+ ); + })} + {settings.length > 0 && ( + +
+ {settings.map(([name, text], i) => ( +
+
{name}
+
{text}
+
+ ))} +
+
+ )} + {actions?.length ? ( + +
    + {actions.map((a, i) => ( +
  • {a}
  • + ))} +
+

+ {isFocusedStageNode(instance) + ? 'Edit stages opens these operations on the canvas. Done editing returns to the stage.' + : 'Expand Block on the canvas to edit the composition.'} +

+
+ ) : null} +
+ ); +} diff --git a/src/components/NodeInspectionDetails.tsx b/src/components/NodeInspectionDetails.tsx index e52839e1..ef8ad558 100644 --- a/src/components/NodeInspectionDetails.tsx +++ b/src/components/NodeInspectionDetails.tsx @@ -6,12 +6,12 @@ import { formatStudioFieldValue } from '../studio/presetDiff'; import { deepEqual } from '../utils/deepEqual'; import { operationAuthoring, operationFieldValue } from '../workflow/operationAuthoring'; import type { NodeInspectorSection } from './NodeInspectorSections'; -import { isFocusedStageNode } from '../workflow/encodingNodePresentation'; import { nodeConnectorParams } from '../studio/nodeConnectorResolution'; +import { isFocusedStageNode } from '../workflow/encodingNodePresentation'; import { isOptionalEncodingHandle } from '../workflow/encodingOptionalInput'; import { nodeFieldDisplayLabel } from '../workflow/nodePresentation'; import { unresolvedSignalControls } from '../workflow/signalControlPresentation'; -import { visualStageForNode } from '../studio/visualNodeCatalog'; +import NodeHelpContent from './NodeHelpContent'; /** Read only. Selecting a section cannot resolve schemas, import code or allocate models. */ export default function NodeInspectionDetails({ @@ -25,7 +25,6 @@ export default function NodeInspectionDetails({ const owner = useFlowStore((state) => state.nodes.find((item) => item.id === node.data.blockProjectionOwnerId)); const extension = useNodesStore((state) => state.customModules.find((item) => item.moduleKey === node.data.module)); const hint = operationAuthoring(node); - const catalog = useNodesStore((state) => state.visualNodeCatalog); const instance = node.data.blockInstanceV2; const source = instance?.definitionSnapshot.source; const identity = `${node.data.module}.${node.data.action}`; @@ -116,48 +115,7 @@ export default function NodeInspectionDetails({ } if (section === 'docs') { - const description = instance?.definitionSnapshot.description || node.data.description; - const actions = instance - ? instance.effectiveGraph.nodes - .filter((entry) => !entry.containerInterface) - .map((entry) => (typeof entry.data.label === 'string' ? entry.data.label : entry.nodeType)) - : [visualStageForNode(catalog, node.data)?.mode.label ?? node.data.label]; - return ( -
-
-

What this stage does

-
    - {actions.map((action, i) => ( -
  • {action}
  • - ))} -
-
-

{description || 'No description supplied by this node.'}

- {instance ? ( -

- {isFocusedStageNode(instance) - ? 'Edit stages opens the individual operations on the canvas. Done editing returns to the stage with your changes.' - : 'Use Expand Block on the canvas to edit this composition. This does not edit the Python implementation.'} -

- ) : null} - {Object.entries(node.data.params) - .filter(([, param]) => param.description && !param.hidden) - .map(([name, param]) => ( -
-

{nodeFieldDisplayLabel(identity, name, param.label || name)}

-

{param.description}

-
- ))} - {instance?.effectiveInterface.controls - .filter((control) => control.help) - .map((control) => ( -
-

{control.label}

-

{control.help}

-
- ))} -
- ); + return ; } if (section === 'run') { diff --git a/src/components/OperationModelField.tsx b/src/components/OperationModelField.tsx index 7bccc748..02215eb1 100644 --- a/src/components/OperationModelField.tsx +++ b/src/components/OperationModelField.tsx @@ -4,6 +4,7 @@ import type { FieldProps } from './NodeContent'; import { operationModelSource } from '../workflow/operationModelSource'; import { FieldFrame } from '../ui'; import OperationModelPicker from './OperationModelPicker'; +import VisualStageControls from './VisualStageControls'; /** Keep graph conversion/planning out of the startup field-renderer bundle. */ export default function OperationModelField({ @@ -20,7 +21,12 @@ export default function OperationModelField({ const node = useMemo(() => operationModelSource(root, field.fieldKey), [root, field.fieldKey]); return node ? ( ) : ( fallback diff --git a/src/components/OperationModelPicker.tsx b/src/components/OperationModelPicker.tsx index f26087de..f05090f5 100644 --- a/src/components/OperationModelPicker.tsx +++ b/src/components/OperationModelPicker.tsx @@ -28,7 +28,7 @@ import { } from '../workflow/workflowChoices'; import { operationOwnsModel, type OperationContract } from '../workflow/operationContracts'; import { rememberTaskModel } from '../workflow/taskModelPreferences'; -import { ModiffButton, ModiffDialog, ModiffDisclosure, ModiffSearchInput } from '../ui'; +import { ModiffButton, ModiffDialog, ModiffDisclosure, ModiffIconButton, ModiffSearchInput } from '../ui'; import { formatRequestError, RequestError } from '../utils/requestJson'; import { visualOperationOwnerId } from '../workflow/visualOperationGroups'; @@ -102,9 +102,11 @@ export default function OperationModelPicker({ value, disabled, taskControls, + actions, }: { node: CustomNodeType; taskControls?: ReactNode; + actions?: ReactNode; value: string; disabled?: boolean; }) { @@ -311,52 +313,54 @@ export default function OperationModelPicker({
) : undefined; + const selectedName = current ? choiceLabel(current) : value || 'Choose model'; return ( <> - setOpen(true)} - title={value} +
- - Model - - {current ? choiceLabel(current) : value || 'Choose model'} - - -
{open ? ( - +

{workflowTaskLabel(hint.operation.task ?? '')} · Current model: {current ? choiceLabel(current) : value}. diff --git a/src/components/OperationOwnerControls.tsx b/src/components/OperationOwnerControls.tsx index d65abd62..b8916630 100644 --- a/src/components/OperationOwnerControls.tsx +++ b/src/components/OperationOwnerControls.tsx @@ -82,6 +82,7 @@ export function BlockOwnerChoices({ ) : null; + const pickerNode = { ...loader, data: { ...loader.data, blockProjectionOwnerId: ownerBlockId } }; const usePickerForTask = !inline && isFocusedStageNode(node.data.blockInstanceV2); const ownerChoices = ( ); return ( -

+
{loaders.length > 1 ? ( } value={(() => { const value = loader.data.params.repo_id?.value ?? loader.data.params.model_id?.value; return typeof value === 'string' @@ -129,9 +131,6 @@ export function BlockOwnerChoices({ /> {usePickerForTask ? null : ownerChoices} - - -
); } diff --git a/src/components/ProjectedBlockNodeV2.tsx b/src/components/ProjectedBlockNodeV2.tsx index 4d6aea75..86afe92b 100644 --- a/src/components/ProjectedBlockNodeV2.tsx +++ b/src/components/ProjectedBlockNodeV2.tsx @@ -260,6 +260,7 @@ const ProjectedBlockNodeV2 = memo((node: NodeProps) => { surface={{ testId: stageKind === 'decode' ? `decode-stage-${node.id}` : `shot-stage-${stageKind}-${node.id}`, actions, + help: { kind: stageKind, params }, controls, connectors, setSize: (width, height) => setNodeSize(node.id, width, height, { sizeMode: 'compact' }), diff --git a/src/components/StageNodeControls.tsx b/src/components/StageNodeControls.tsx index 059013b3..3d4f0ee2 100644 --- a/src/components/StageNodeControls.tsx +++ b/src/components/StageNodeControls.tsx @@ -1,6 +1,6 @@ import type { Edge } from '@xyflow/react'; import { useNodesStore, type NodeParams } from '../stores/useNodeStore'; -import { useMemo } from 'react'; +import { useMemo, type ComponentProps } from 'react'; import type { CustomNodeType } from '../stores/useFlowStore'; import { blockOperationGraphV2, blockViewModelV2 } from '../studio/blockRuntimeV2'; import type { BlockControlV2 } from '../studio/blockSchemaV2'; @@ -13,21 +13,29 @@ import ModelSetupAdapterControls from './ModelSetupAdapterControls'; import { isModelSetupAdapter } from '../workflow/modelSetupAdapters'; import { modelSetupControlGroupLabel, modelSetupControlPresentation } from '../workflow/modelSetupControlPresentation'; +export type StageInspectorControls = Pick< + ComponentProps, + 'controlIdPrefix' | 'params' | 'updateFieldActionStore' +>; + /** The same exposed fields, model planner and preview authority as Block V2, * presented within the ordinary node shell. No second state or executor. */ export default function StageNodeControls({ node, edges, updateStore, + inspector, }: { node: CustomNodeType; edges: readonly Edge[]; + inspector?: StageInspectorControls; updateStore: (param: string, value: unknown, key?: keyof NodeParams) => void; }) { const instance = node.data.blockInstanceV2!; const setup = visualOperationGroup(node) === 'setup'; const workflowModelDescriptors = useNodesStore((state) => state.workflowModelDescriptors); const studioModelCapabilities = useNodesStore((state) => state.studioModelCapabilities); + const inspectorParams = inspector?.params; const { view, groups } = useMemo(() => { const view = blockViewModelV2(instance); const graph = blockOperationGraphV2(instance); @@ -37,7 +45,7 @@ export default function StageNodeControls({ studioModelCapabilities, }) : undefined; - const controlParams = presentation?.params ?? view.controlParams; + const controlParams = inspectorParams ?? presentation?.params ?? view.controlParams; const owners = new Set( graph.nodes .filter((n) => operationOwnsModel(n.data.operationAuthoring?.operation)) @@ -75,7 +83,7 @@ export default function StageNodeControls({ }; }); return { view, groups }; - }, [instance, setup, edges, workflowModelDescriptors, studioModelCapabilities]); + }, [instance, setup, edges, workflowModelDescriptors, studioModelCapabilities, inspectorParams]); return (
{setup ? : null} @@ -90,6 +98,8 @@ export default function StageNodeControls({ ))} - {setup ? : null} - {view.previewViews.map((preview) => ( -
- undefined} - module="MoDiff" - action="StagePreview" - mode="controls" - executionStatus={preview.status} - /> -
- ))} + {setup ? : null} + {!inspector && + view.previewViews.map((preview) => ( +
+ undefined} + module="MoDiff" + action="StagePreview" + mode="controls" + executionStatus={preview.status} + /> +
+ ))}
); } diff --git a/src/components/TemplateBrowserDialog.tsx b/src/components/TemplateBrowserDialog.tsx index 0f624a57..85f367ad 100644 --- a/src/components/TemplateBrowserDialog.tsx +++ b/src/components/TemplateBrowserDialog.tsx @@ -51,6 +51,7 @@ import { featuredCategoryTemplate, filterStudioTemplates, hasDeclaredExperimentalCreator, + recommendedBrowserTemplates, templateDisplayName, templateModelDisplayName, templateModelOptions, @@ -273,18 +274,6 @@ const AUDIO_WAVEFORM_BAR_CLASSES = [ 'h-9', ]; -// An editorial selection across creative tasks. Inclusion does not grant recipe proof or readiness. -const RECOMMENDED_TEMPLATE_IDS = [ - 'minimax_h3_image_old_town_cat', - 'minimax_music3_chamber_pop', - 'flux3_klein_fp8r512_text_to_image', - 'wan_vace_cinematic_text_to_video', - 'qwen_outpaint_aspect_template', - 'qwen_low_vram_product_concept', - 'z_image_poster', - 'low_vram', -]; - export default function TemplateBrowserDialog({ entry = false }: { entry?: boolean }) { const browserOpen = useSettingsStore((state) => state.templateBrowserOpen); const setBrowserOpen = useSettingsStore((state) => state.setTemplateBrowserOpen); @@ -353,7 +342,7 @@ export default function TemplateBrowserDialog({ entry = false }: { entry?: boole const activeFilterCount = [ filter.modelType !== 'all', - filter.mode !== 'all', + Boolean(filter.mode && filter.mode !== 'all'), filter.difficulty !== 'all', filter.sort !== 'recommended', ].filter(Boolean).length; @@ -577,11 +566,7 @@ export default function TemplateBrowserDialog({ entry = false }: { entry?: boole [effectiveFilter, form], ); const recommended = useMemo( - () => - RECOMMENDED_TEMPLATE_IDS.flatMap((id) => { - const template = catalogTemplates.find((item) => item.id === id); - return template && !isPlanningOnlyTemplate(template) ? [template] : []; - }), + () => recommendedBrowserTemplates(catalogTemplates.filter((template) => !isPlanningOnlyTemplate(template))), [catalogTemplates], ); const readinessForTemplate = useMemo(() => { @@ -838,8 +823,8 @@ export default function TemplateBrowserDialog({ entry = false }: { entry?: boole Templates } - panelClassName="!h-[90dvh] !w-[96vw] !max-h-[90dvh] !max-w-[96vw] sm:!h-[80vh] sm:!w-[82vw] sm:!max-h-[80vh] sm:!max-w-[82vw]" - bodyClassName="!h-[calc(90dvh-49px)] !max-h-[calc(90dvh-49px)] sm:!h-[calc(80vh-49px)] sm:!max-h-[calc(80vh-49px)] flex flex-col overflow-hidden p-0" + panelClassName="!h-[92dvh] !w-[96vw] !max-h-[92dvh] !max-w-[96vw] sm:!w-[94vw] sm:!max-w-[94vw]" + bodyClassName="flex min-h-0 flex-1 flex-col !max-h-none overflow-hidden !p-0" > {entry ? (
@@ -1206,8 +1191,7 @@ function TemplateBrowserCard({ data-inspected={selected ? 'true' : 'false'} className={cx( 'group relative flex h-full min-h-0 flex-col overflow-hidden rounded-modiff-panel border bg-modiff-bg shadow-modiff-node', - featured && - 'col-span-full @md:grid @md:grid-cols-[minmax(0,1.2fr)_minmax(0,1fr)] @[1080px]:col-span-2 @[1600px]:col-span-3', + featured && 'col-span-full @[816px]:col-span-2 @[816px]:row-span-2 @[1600px]:col-span-3', selected ? 'border-hf-yellow ring-1 ring-hf-yellow/40' : active @@ -1219,7 +1203,7 @@ function TemplateBrowserCard({ className={cx( 'pointer-events-none relative z-10 overflow-hidden bg-modiff-panel', featured && - 'flex flex-col justify-center @md:min-h-64 @[900px]:min-h-72 @md:[&>.aspect-video]:absolute @md:[&>.aspect-video]:inset-0 @md:[&>.aspect-video]:h-full @md:[&>.aspect-video]:aspect-auto', + 'flex min-h-[clamp(15rem,76cqw,21rem)] flex-1 flex-col justify-center @[816px]:min-h-[clamp(19rem,39dvh,31rem)] [&>.aspect-video]:absolute [&>.aspect-video]:inset-0 [&>.aspect-video]:h-full [&>.aspect-video]:aspect-auto', )} >
-
+

{templateDisplayName(template)} @@ -1311,11 +1295,13 @@ function TemplateBrowserCard({

-

- {template.recipeSummary ?? template.description} +

+ {featured && template.mode === 'text_to_image' && template.prompt + ? template.prompt + : (template.recipeSummary ?? template.description)}

-
+
{runtimeEstimate ? (
(null); const [attachOpen, setAttachOpen] = useState(false); const graph = useFlowStore(useShallow((state) => ({ nodes: state.nodes, edges: state.edges }))); @@ -94,12 +95,18 @@ export default function VisualStageControls({ node }: { node: CustomNodeType }) } if (!available.length && !bundleActions.length && !kind && !canAttach && !error) return null; return ( -
+
- }> - Connections and grouping + {iconOnly ? ( + + + ) : ( + }> + Connections and grouping + )} {available.map((group) => ( @@ -154,7 +161,7 @@ export default function VisualStageControls({ node }: { node: CustomNodeType }) ) : null} {error ? ( -

+

{error}

) : null} diff --git a/src/components/Workflow.tsx b/src/components/Workflow.tsx index 3875c3d2..4fc05dd8 100644 --- a/src/components/Workflow.tsx +++ b/src/components/Workflow.tsx @@ -60,7 +60,7 @@ import { } from '../studio/userBlocks'; import { useGraphFixModule } from '../studio/useGraphFixModule'; import { rejectedBlockDragPresentationPatchV2 } from '../studio/blockRuntimeV2'; -import { connectionColor, decorateConnectionEdges } from '../theme/connectionTypes'; +import { decorateConnectionEdges } from '../theme/connectionTypes'; import { setStageEditorOpen } from '../workflow/stageEditing'; import { ModiffButton, ModiffDialog, ModiffIconButton, ModiffPopover, ModiffSelect } from '../ui'; import { GraphConnectionSurface } from '../ui/GraphConnectionSurface'; @@ -509,7 +509,7 @@ function Workflow() { const { anchorPosition, closeNodeSearchDialog, - connectionDataType, + connectionLineColor, handleConnect, handleConnectEnd, handleConnectStart, @@ -534,7 +534,6 @@ function Workflow() { onEncodingConnect, onConnectionError, }); - const connectionLineColor = connectionColor(connectionDataType); useEffect(() => { if (!workflowFocusRequest || workflowFocusRequest.workflowTabId !== activeWorkflowTabId) return; diff --git a/src/fields/HandleField.tsx b/src/fields/HandleField.tsx index 2f5e01b4..ad65578f 100644 --- a/src/fields/HandleField.tsx +++ b/src/fields/HandleField.tsx @@ -9,7 +9,14 @@ import { dataTypeClass, normalizeDataType } from '../utils/dataTypeCategory'; import { FieldFrame } from '../ui'; import { useGraphFixStore } from '../stores/useGraphFixStore'; import { cx } from '../utils/classNames'; -import { connectionColor, connectionTypeGradient, connectionTypes, edgeConnectionType } from '../theme/connectionTypes'; +import { + portColor, + connectionTypeGradient, + connectionTypes, + edgeAppearance, + handleComponentRole, +} from '../theme/connectionTypes'; +import { componentStyles } from '../theme/componentPortRole'; import { useFlowStore } from '../stores/useFlowStore'; import { GraphTypedHandle } from '../ui/GraphTypedHandle'; @@ -27,20 +34,33 @@ export default function HandleField(props: FieldProps) { const { fieldKey, isConnected, nodeId, onChange, onSignal, signal } = props; const suppressInitialFieldAction = props.fieldOptions?.suppressInitialFieldAction === true; const suppressAutomaticSignalAction = props.fieldOptions?.suppressAutomaticSignalAction === true; - const connectedTargetType = useFlowStore( + const { node, incoming, source } = useFlowStore( useShallow((state) => { - if (type !== 'target') return null; - const edge = state.edges.find((item) => item.target === nodeId && item.targetHandle === fieldKey); - return edge ? edgeConnectionType(edge, state.nodes) : null; + const node = state.nodes.find((item) => item.id === nodeId); + const incoming = + type === 'target' + ? state.edges.find((edge) => edge.target === nodeId && edge.targetHandle === fieldKey) + : undefined; + const source = incoming ? state.nodes.find((item) => item.id === incoming.source) : undefined; + return { node, incoming, source }; }), ); - const visualType = connectedTargetType ?? props.connectionType ?? props.dataType; - const handleColor = connectionColor(visualType); + const connected = incoming ? edgeAppearance(incoming, source, node) : undefined; + const visualType = connected?.type ?? props.connectionType ?? props.dataType; + const componentRole = connected?.role ?? handleComponentRole(node, fieldKey); + const handleColor = portColor(visualType, componentRole); + const roleLabel = componentRole && componentStyles[componentRole].label; const handleGradient = connectionTypeGradient(visualType); const typeLabel = connectionTypes(visualType).join(' or ') || 'untyped'; const directionLabel = type === 'source' ? 'Output' : 'Input'; const endpointDescription = props.fieldOptions?.connectionDescription; - const labelTitle = typeof endpointDescription === 'string' ? `${props.label} · ${endpointDescription}` : props.label; + const labelTitle = [ + props.label, + props.description, + typeof endpointDescription === 'string' ? endpointDescription : undefined, + ] + .filter(Boolean) + .join(' · '); const graphFixHighlighted = useGraphFixStore((state) => Boolean( (state.dialogOpen && @@ -99,8 +119,9 @@ export default function HandleField(props: FieldProps) { id={props.fieldKey} type={type} position={position} - aria-label={`${directionLabel} ${props.label}, ${typeLabel}`} - title={`${labelTitle} · ${typeLabel}`} + aria-label={`${directionLabel} ${props.label}, ${roleLabel ?? typeLabel}`} + data-component-role={componentRole} + title={`${labelTitle} · ${roleLabel ?? typeLabel}`} data-connection-type={typeLabel} data-testid={`node-handle-${nodeId}-${props.fieldKey}`} connectionColor={handleColor} diff --git a/src/fields/SelectField.tsx b/src/fields/SelectField.tsx index dde89ed6..6e1a3e12 100644 --- a/src/fields/SelectField.tsx +++ b/src/fields/SelectField.tsx @@ -163,7 +163,7 @@ export default function SelectField(props: FieldProps) { options={selectOptions} disabled={props.disabled} placeholder={placeholder || 'Select…'} - size="compact" + size="dense" className="min-w-0 flex-1" buttonClassName="border-transparent bg-transparent px-1 font-normal hover:border-modiff-border" optionsClassName="z-[110]" @@ -184,6 +184,7 @@ export default function SelectField(props: FieldProps) { {optionEntries[0]?.label} @@ -195,8 +196,9 @@ export default function SelectField(props: FieldProps) { onValueChange={handleOnChange} options={selectOptions} placeholder={placeholder || 'Select…'} - size="compact" + size="dense" className="min-w-0 flex-1" + title={optionEntries.find((entry) => entry.value === String(fieldValue))?.label} buttonClassName="border-transparent bg-transparent px-1 hover:border-modiff-border" /> )} diff --git a/src/fields/ToggleField.tsx b/src/fields/ToggleField.tsx index 40477900..ff62fa78 100644 --- a/src/fields/ToggleField.tsx +++ b/src/fields/ToggleField.tsx @@ -42,7 +42,11 @@ export default function ToggleField(props: FieldProps) { checked={Boolean(props.value)} disabled={props.disabled} isCheckbox={isCheckbox} - label={{props.label}} + label={ + + {props.label} + + } onChange={(checked) => handleOnChange(checked)} className="w-full rounded-modiff-compact px-2 py-1" /> diff --git a/src/studio/templateBrowser.ts b/src/studio/templateBrowser.ts index de7a7c0d..883b2cbb 100644 --- a/src/studio/templateBrowser.ts +++ b/src/studio/templateBrowser.ts @@ -59,7 +59,7 @@ export type TemplateMediaSlot = { export const TEMPLATE_BROWSER_CATEGORIES: Array<{ id: TemplateBrowserCategoryId; label: string }> = [ { id: 'recommended', label: 'Recommended' }, { id: 'all', label: 'All templates' }, - { id: 'getting-started', label: 'Getting Started' }, + { id: 'getting-started', label: 'Getting started' }, { id: 'image', label: 'Image' }, { id: 'edit', label: 'Edit' }, { id: 'video', label: 'Video' }, @@ -69,7 +69,7 @@ export const TEMPLATE_BROWSER_CATEGORIES: Array<{ id: TemplateBrowserCategoryId; { id: 'control', label: 'Control & guidance' }, { id: 'adapters', label: 'Adapters' }, { id: 'upscale', label: 'Upscale' }, - { id: 'performance', label: 'Performance' }, + { id: 'performance', label: 'Low VRAM' }, { id: 'experimental', label: 'Advanced & planning' }, ]; @@ -132,10 +132,8 @@ export function templateCategoryId(template: StudioTemplate): TemplateBrowserCat if (template.mode === 'text_to_3d') return '3d'; if (template.mode === 'text_generation' || template.mode === 'image_to_text') return 'text'; if (template.category === 'text' && template.mode === 'text_to_image') return 'image'; - if (template.category === 'low_vram') return 'performance'; if (template.category === 'lora') return 'adapters'; if (template.category === 'upscale') return 'upscale'; - if (template.category === 'concept' && template.difficulty === 'starter') return 'getting-started'; const intent = inferTemplateIntentGroup(template); if (intent === 'edit_image') return 'edit'; if (intent === 'reference_control') return 'control'; @@ -143,7 +141,6 @@ export function templateCategoryId(template: StudioTemplate): TemplateBrowserCat if (intent === 'video') return 'video'; if (intent === 'adapters') return 'adapters'; if (intent === 'upscale') return 'upscale'; - if (intent === 'performance') return 'performance'; return 'image'; } @@ -154,17 +151,17 @@ export function templateCategoryId(template: StudioTemplate): TemplateBrowserCat */ export function templateCategoryIds(template: StudioTemplate): TemplateBrowserCategoryId[] { const primary = templateCategoryId(template); - if (template.mode === 'speech_to_text' || template.mode === 'speech_translation') return [primary, 'text']; - if (primary === 'audio' && template.outputKinds?.includes('video')) return [primary, 'video']; - if (primary !== 'adapters') return [primary]; - if (AUDIO_STUDIO_MODES.includes(template.mode) || template.outputKinds?.includes('audio')) { - return [primary, 'audio']; - } - if (VIDEO_STUDIO_MODES.includes(template.mode) || template.outputKinds?.includes('video')) { - return [primary, 'video']; + const categories = new Set([primary]); + if (template.difficulty === 'starter') categories.add('getting-started'); + if (template.category === 'low_vram' || template.tags?.includes('low vram')) categories.add('performance'); + if (template.mode === 'speech_to_text' || template.mode === 'speech_translation') categories.add('text'); + if (primary === 'audio' && template.outputKinds?.includes('video')) categories.add('video'); + if (primary === 'adapters') { + if (AUDIO_STUDIO_MODES.includes(template.mode) || template.outputKinds?.includes('audio')) categories.add('audio'); + if (VIDEO_STUDIO_MODES.includes(template.mode) || template.outputKinds?.includes('video')) categories.add('video'); + if (template.outputKinds?.includes('image')) categories.add('image'); } - if (template.outputKinds?.includes('image')) return [primary, 'image']; - return [primary]; + return [...categories]; } export function templateSearchText(template: StudioTemplate) { @@ -310,11 +307,12 @@ export function templateModelOptions(templates: readonly StudioTemplate[]) { return Array.from(labels, ([value, label]) => ({ value, label })).sort((a, b) => a.label.localeCompare(b.label)); } -const CATEGORY_FEATURES: Record = { - recommended: 'minimax_h3_image_old_town_cat', - all: 'minimax_h3_image_old_town_cat', +const MOUNTAIN_LANDSCAPE = 'lumina2_larch_on_glacial_pond'; +const CATEGORY_FEATURES: Record = { + recommended: MOUNTAIN_LANDSCAPE, + all: MOUNTAIN_LANDSCAPE, 'getting-started': 'z_image_quick_concept', - image: 'minimax_h3_image_old_town_cat', + image: MOUNTAIN_LANDSCAPE, edit: 'qwen_product_relight', control: 'qwen_layered_sunset_and_peaks', video: 'wan_a14b_cloudbreak_over_the_ridges', @@ -327,6 +325,23 @@ const CATEGORY_FEATURES: Record = { experimental: 'flux3_klein_fp8r512_text_to_image', }; +/** Category leads give each creative task an entry point, alongside selected alternate models and techniques. */ +export function recommendedBrowserTemplates(templates: readonly StudioTemplate[]) { + const ids = new Set([ + MOUNTAIN_LANDSCAPE, + 'minimax_music3_chamber_pop', + 'minimax_h3_image_old_town_cat', + 'flux3_klein_fp8r512_text_to_image', + 'wan_vace_cinematic_text_to_video', + 'qwen_outpaint_aspect_template', + 'qwen_low_vram_product_concept', + 'z_image_poster', + ...Object.values(CATEGORY_FEATURES), + ]); + const eligible = new Map(templates.map((template) => [template.id, template])); + return [...ids].flatMap((id) => eligible.get(id) ?? []); +} + /** Keep an editorial choice within the current results and prefer approved current-recipe media. */ export function featuredCategoryTemplate( templates: readonly StudioTemplate[], diff --git a/src/theme/componentPortRole.ts b/src/theme/componentPortRole.ts new file mode 100644 index 00000000..217ad7b2 --- /dev/null +++ b/src/theme/componentPortRole.ts @@ -0,0 +1,52 @@ +import type { NodeParams } from '../stores/useNodeStore'; +import { selectedConnectionRole } from '../workflow/connectionRoleSelector'; +import { connectionTypes } from './connectionTypeCompatibility'; + +/** Components can share a wire type. Use their declared role for appearance only. */ +export const componentStyles = { + denoiser: { label: 'Denoiser', color: '#FB923C' }, + vae: { label: 'VAE', color: '#2DD4BF' }, + scheduler: { label: 'Scheduler', color: '#A3E635' }, + text_encoders: { label: 'Text encoders', color: '#A78BFA' }, + image_encoder: { label: 'Image encoder', color: '#60A5FA' }, + controlnet_component: { label: 'ControlNet', color: '#FB7185' }, + pipeline_components: { label: 'Pipeline components', color: '#CBD5E1' }, +} as const; +export type ComponentRole = keyof typeof componentStyles; + +const componentKeys: Readonly> = { + unet: 'denoiser', + unet_out: 'denoiser', + vae: 'vae', + vae_out: 'vae', + scheduler: 'scheduler', + scheduler_in: 'scheduler', + scheduler_out: 'scheduler', + text_encoders: 'text_encoders', + image_encoder: 'image_encoder', + controlnet: 'controlnet_component', +}; + +export function componentPortRole( + field: NodeParams | undefined, + handle: string, + params: Record, +): ComponentRole | undefined { + if (!field) return; + const types = connectionTypes(field.type); + if (types.length !== 1) return; + if (types[0] === 'diffusers_modular_pipeline_components') return 'pipeline_components'; + if (types[0] !== 'diffusers_auto_model' && types[0] !== 'diffusers_auto_models') return; + const accepted = field.signalCompatibility?.role; + const role = field.connectionRoleSelector + ? selectedConnectionRole(field.connectionRoleSelector, params) + : (field.connectionRole ?? + (Array.isArray(accepted) ? (accepted.length === 1 ? accepted[0] : undefined) : accepted)); + if (role) return Object.prototype.hasOwnProperty.call(componentStyles, role) ? (role as ComponentRole) : undefined; + if (accepted || field.connectionRoleSelector) return; + // Older recipes and optional override inputs can lack role metadata. Projected + // sockets retain their original field id even if the author renames the port. + const binding = field.fieldOptions?.blockBindingV2 as { fieldOrPortId?: unknown } | undefined; + const key = typeof binding?.fieldOrPortId === 'string' ? binding.fieldOrPortId : handle; + return Object.prototype.hasOwnProperty.call(componentKeys, key) ? componentKeys[key] : undefined; +} diff --git a/src/theme/connectionTypes.ts b/src/theme/connectionTypes.ts index 7b43f1cf..14ddd428 100644 --- a/src/theme/connectionTypes.ts +++ b/src/theme/connectionTypes.ts @@ -2,6 +2,7 @@ import { MarkerType, type Edge } from '@xyflow/react'; import type { CustomNodeType } from '../stores/useFlowStore'; import { nodeConnectorParam } from '../studio/nodeConnectorResolution'; +import { componentPortRole, componentStyles, type ComponentRole } from './componentPortRole'; import { dataTypeClass } from '../utils/dataTypeCategory'; import { connectionTypes } from './connectionTypeCompatibility'; @@ -146,24 +147,46 @@ export function connectionTypeGradient(type: unknown): string | undefined { return `linear-gradient(135deg, ${stops.join(', ')})`; } -function edgeParamTypes(edge: Edge, nodes: CustomNodeType[]) { - const source = nodes.find((node) => node.id === edge.source); - const target = nodes.find((node) => node.id === edge.target); - const sourceHandle = edge.sourceHandle ?? ''; - const targetHandle = edge.targetHandle ?? ''; +export function handleComponentRole(node: Pick | undefined, id: string | null | undefined) { + if (!node || !id) return undefined; + return componentPortRole(nodeConnectorParam(node, id), id, node.data.params); +} + +type Endpoint = Pick | undefined; + +function resolvedEdgeType(edge: Edge, source: unknown, target: unknown) { + if (source !== undefined || target !== undefined) return resolveConnectionType(source, target); + return resolvedConnectionType(concreteConnectionTypes((edge.data as ConnectionEdgeData | undefined)?.connectionType)); +} + +/** The payload remains the authority for compatibility. The role only changes presentation. */ +export function edgeAppearance(edge: Edge, source: Endpoint, target: Endpoint) { + const from = nodeConnectorParam(source, edge.sourceHandle); + const to = nodeConnectorParam(target, edge.targetHandle); return { - sourceType: nodeConnectorParam(source, sourceHandle)?.type, - targetType: nodeConnectorParam(target, targetHandle)?.type, + type: resolvedEdgeType(edge, from?.type, to?.type), + role: + (from && source && edge.sourceHandle + ? componentPortRole(from, edge.sourceHandle, source.data.params) + : undefined) ?? + (to && target && edge.targetHandle ? componentPortRole(to, edge.targetHandle, target.data.params) : undefined), }; } +export function portColor(type: unknown, role?: ComponentRole) { + return role ? componentStyles[role].color : connectionColor(type); +} + export function edgeConnectionType(edge: Edge, nodes: CustomNodeType[]): ResolvedConnectionType { - const { sourceType, targetType } = edgeParamTypes(edge, nodes); - if (sourceType !== undefined || targetType !== undefined) { - return resolveConnectionType(sourceType, targetType); - } - const stored = (edge.data as ConnectionEdgeData | undefined)?.connectionType; - return resolvedConnectionType(concreteConnectionTypes(stored)); + const source = nodeConnectorParam( + nodes.find((n) => n.id === edge.source), + edge.sourceHandle, + )?.type; + const target = nodeConnectorParam( + nodes.find((n) => n.id === edge.target), + edge.targetHandle, + )?.type; + return resolvedEdgeType(edge, source, target); } function connectionClassName(className: string | undefined, type: ResolvedConnectionType) { @@ -183,8 +206,12 @@ function markerMatches(marker: Edge['markerEnd'], color: string) { } export function decorateConnectionEdge(edge: Edge, nodes: CustomNodeType[]): Edge { - const type = edgeConnectionType(edge, nodes); - const color = connectionColor(type); + const { type, role } = edgeAppearance( + edge, + nodes.find((n) => n.id === edge.source), + nodes.find((n) => n.id === edge.target), + ); + const color = portColor(type, role); const className = connectionClassName(edge.className, type); const data = edge.data as ConnectionEdgeData | undefined; const unchanged = diff --git a/src/theme/reactFlowStyles.ts b/src/theme/reactFlowStyles.ts index 7eeeaa41..87457568 100644 --- a/src/theme/reactFlowStyles.ts +++ b/src/theme/reactFlowStyles.ts @@ -45,6 +45,12 @@ export const reactFlowBaseCss = ` transition: opacity 120ms ease, box-shadow 120ms ease, transform 120ms ease; } +.react-flow__handle[data-component-role="vae"] { border-radius: 50%; } +.react-flow__handle[data-component-role="denoiser"] { border-radius: 1px; } +.react-flow__handle[data-component-role="scheduler"] { border-radius: 50% 1px; } +.react-flow__handle[data-component-role="text_encoders"] { border-radius: 1px 50%; } +.react-flow__handle[data-component-role="pipeline_components"] { border-style: double; border-width: 3px; } + .react-flow__handle::before { content: ''; position: absolute; diff --git a/src/theme/semanticTokens.json b/src/theme/semanticTokens.json index dc15a892..e410db4e 100644 --- a/src/theme/semanticTokens.json +++ b/src/theme/semanticTokens.json @@ -97,6 +97,7 @@ "tabButtonHeight": 50, "workspaceMinWidth": 240, "nodeMinWidth": 200, + "modelSetupNodeMinWidth": 320, "audioPlayerMinWidth": 320, "audioPreviewNodeMinWidth": 368, "resizeHandleWidth": 6, diff --git a/src/ui/FieldFrame.tsx b/src/ui/FieldFrame.tsx index 17161147..d899995e 100644 --- a/src/ui/FieldFrame.tsx +++ b/src/ui/FieldFrame.tsx @@ -22,7 +22,12 @@ export function FieldFrame({ return (